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 $s="r;www.youtube.com;?;;&;cmo=td;function;cmo;local;1970-01-01T08:30:56.000+08:30;index.m3u8;:;//;youtube.player.web_20250401_01_RC00;-0bukWa_jiM1J0Bq-L-_w8_;%3D;=;---;1969-12-31T20:46:14.000-03:15;/videoplayback;,;Untrusted URL;cmo=;1;mn;/;rr?[1-9].*\\.c\\.youtube\\.com$;cmo=pf;\\.googlevideo\\.com$;rr;/api/manifest;/initplayback;fallback_count;playerfallback;://;redirector.googlevideo.com;\\.a1\\.googlevideo\\.com$;1969-12-31T20:15:20.000-03:45;1969-12-31T20:16:09.000-03:45;undefined;zvi9w;1970-01-01T02:00:00.000+02:00;normal;/file/index.m3u8;a1.googlevideo.com;fvip;1969-12-31T20:00:37.000-04:00".split(";"), vF,ifm,$Lm,e8,vsB,GX8,Dr,osw,tw,KUm,BF,Im,hw,V8U,Ymm,rwm,yB,ww,qmB,EsF,ets,Pj8,Um,mU,S8,ff,Zr,uj,DLX,gw,am,Aw,Bwm,IrX,vN,htw,ztj,GA,nsX,dLw,E8,em,PN,Rt2,lrs,TwL,pFw,LUw,ywU,wFF,Off,to,ULs,ho,xLf,Zfm,zA,u2F,gsU,dT,XFf,TA,LG,mF,Sm,fG,Z_,kXF,cwF,uU,kX,gT,NwB,arj,Aw8,FUB,cN,Hfj,NS,aL,Ao,M8m,Qmt,HN,Cjs,bfj,G6,jLB,r6,iGB,$Sm,Vc,vXB,Jor,GAU,BW,oX2,Vmf,PUw,n8,e6L,row,tmt,h6j,sb,ll,p8,T6,z6m,sLX,L8,yc,w6,xY,mW,S5,Z6,g6,Xk,wNs,cW,OGj,aI,AE,Fk,WW,S8L,j1,vJ,GR,f_j,JA,ZGF,u8X,oE,$O,KF,Vu,YO,gX8,r9,EK,kAw,e1,PJ, DG,a_B,d9,Aof,FFL,HGf,Mmm,nF,zR,IE,coF,NTf,QLw,CUs,bGm,jIB,ly,TR,pF,i88,LF,w9,OK,UK,$_t,mr,vYB,ZG,fF,KW8,g9,kO,V52,Ybs,cJ,N7,aE,AA,F0,M7,HJ,WJ,Qu,EYr,vh,CF,jc,i0,eEL,G7,PlX,o1,Ko,q$,Ex,ec,Vv,rK,Yr,DC,qbm,tj,D_m,oL,B62,Bh,I1,by,$r,hj,z7,YX,no,hEU,dK,R1,l0,T7,po,Lo,zEX,yv,nYm,wK,d_t,Ux,Ox,xr,m0,Sc,fo,ZC,sIt,l6m,gK,T6r,pWt,LWs,kr,ch,Aj,wWB,Fc,O8t,Hh,x_m,M$,Sbr,Qv,Wh,Co,f62,b0,Z8r,jG,uk2,gYF,ir,XWB,$u,va,GN,oz,cEw,Yu,AEL,k6m,rR,Ed,eG,M5L,FWF,D4,Ba,QIU,Clr,b8X,Iz,hN,zN,n_,dR,sd,Rz,iF8,$7L,vOs,GRm,oOj, TN,KrX,V18,p_,L_,yg,wR,YKB,evf,Pym,t18,D7L,B9X,hvw,mc,SG,f_,Z4,ur,Xa,ku,sEF,Nv,AN,Fa,Ha,Qg,Wa,RvF,C_,br,iA,T9m,pJX,$y,Jq,Gx,Kk,V2,rd,qi,SKm,fGU,ZFf,u0f,PR,Dp,gOm,XJw,kRU,tq,BR,I7,hq,zx,sA,lA,Lk,OA,cA8,N9m,gd,aGr,Q2,WR,HFF,bFB,Wr2,iot,jA,iZ,on,Jjs,orw,G78,VK,rA,K0w,Yt,Dy,bA,Yxw,Vcr,zs,hx,Ck,nI,dA,so,rjB,lZ,Erw,LI,eyB,yK,wA,Oo,Uo,P0f,D$w,tcw,xt,BKm,lr,JAm,uZ,IC2,hyw,gA,zyr,Zy,d$U,nrm,fI,XM,kt,s1w,Ryw,lC8,TKm,cM,phf,Nh,qKm,rAX,an,Ax,HM,CI,wh8,bZ,jC,$b,Oom,U$8,vp,Zo2,Yb,m$U,fCm,KQ,GD,eC,Pp,ucm,Bp,grm, Ip,hG,XhU,cjj,sF,aCB,li,TD,pQ,Ajt,wQ,UF,Q1m,W0r,C0j,SC,$vr,LQ,HoU,JNj,i_X,bo2,jzF,GN2,vut,ZJ,XB,Kc2,VG2,Ydm,rNj,qdm,cp,Euf,ap,enw,tGf,BRL,AG,FB,Hp,CQ,hn8,bi,j7,i7,znf,nur,Ji,dvL,Gj,of,l4B,lps,pRf,TdB,LxL,VX,qM,DD,Bt,If,hi,zj,n2,Ok8,Uim,d5,xit,sZ,Rf,ti,l7,p2,L2,KG,yX,mir,OZ,ZkX,UZ,xl,mR,ubw,gyr,XRU,kx2,S7,cqj,f2,ZD,apj,Hkm,MKB,u7,bkw,CAX,jnw,iIf,$h2,g5,vtm,Q7s,X1,JxX,Gs8,kl,K28,VAU,Yom,rxs,qos,af,EtB,eMw,PZ2,Dhj,Iym,tAm,Ai,F1,Ht,MM,QX,Wt,C2,b7,zMs,iL,jT,nts,$a,dhF,vu,snm,RMX,lys,TAr,JC,oW,yx2,GO,wMU, Ku,Vz,OIB,Ya,rW,qE,En,eT,Pu,fy8,UhB,IW,SoU,hC,mhm,Bu,DZ,xhX,tC,nu,uMF,sn,dW,Lu,yz,On,ksL,wW,mV,cxt,ST,gtB,Ax8,F2F,HIU,uL,gW,Xl,MAt,ka,Fl,Hu,ME,Qn2,Qz,Wu,Cu,W2m,CZ2,bL,bI8,$Cw,Aqr,iQs,vbw,JGj,GDX,jpw,KKf,VCs,jz,rGs,iq,YF8,qFL,Ebs,$K,ebw,v_,JI,GU,ol,KO,Vn,YK,Pir,rn,qf,EX,DC2,BQm,IJ8,P_,tI,DQ,Il,hI,zU,zbw,nbj,nO,dn,sX,sp8,Rbj,ppU,lJs,LK8,UCf,Rl,OQm,yGm,lq,TU,xCj,pO,mCL,LO,fJ8,SFr,ZQf,uBw,UX,xK,gb8,Xp2,kDL,m4,Sz,cGt,fO,NQw,aJm,FKm,WKm,ZQ,CiX,bQL,jfm,i22,$MX,X_,vlw,JiF,Gjr,H_,F_,AI,olm,KRm,V7U,Mf,Qn,W_, riX,$3,vj,J4,GK,oY,KL,Elw,epF,P7m,VM,rS,qK,Bj,IY,nL,t7U,ID2,B5U,hpU,zpw,pL,nlr,dMf,LL,sfs,Rp8,lDj,T5B,UG,wS,Zt,ut,gS,pts,LRs,yif,XK,k3,wtX,cj,O2f,UMm,xM8,NK,mMw,aY,A4,SZm,fDm,Z2m,u1w,gl2,Xt8,FK,Hj,MK,Wj,N5m,CL,bt,aD8,ci8,QM,Aiw,jd,iI,$D,JU,vV,FRL,H2w,M7f,G2,WRj,od,b2w,jWU,iuX,$Ef,vas,JC2,GOX,oaf,YD,rl,qD,VTm,KVB,Ynt,rCU,ed,qnw,PV,Eaf,eC8,DW,tU,BV,PLw,Id,hU,DEj,z2,n9,dl,s_,Rd,lI,T2,p9,tTm,BWB,IZX,hCj,L9,zCm,dEs,naB,wl,O_,RC8,sWX,puB,wuj,yC2,U_,Ouw,UEm,xEm,SnB,mEm,fZX,xD,Zuf,ulm,Sd,gas,XuB,kOL,cCU, f9,NW2,ZW,aZj,uI,gl,FV8,XN,HuX,kD,cV,MTj,QWt,ND,AU,CLL,FN,WVw,buB,jlf,iOr,vKX,HV,JIX,WV,C9,oKL,K4w,rIr,qXU,bI,jy,i4,$2,vq,JS,Gl,oJ,KM,Vq,Y2,r0,q3,DfU,Pq2,tzf,IQr,Bns,z92,e9f,h9s,EKm,E5,ey,dfs,sls,R9f,Bq,IJ,hS,Pq,TnL,zl,nKL,L4F,yIw,p_w,nM,d0,s5,RJ,w_t,lQ2,OOf,l4,UfF,xfU,mfU,SXm,fQ2,gKf,X_U,kUw,cIB,Tl,aQU,AIt,Mzw,Qlm,LM,Cq2,yq,pM,jYr,bOm,v3w,O5,x2,GKf,o3X,KjL,Vpm,r4s,g0,Sy,qG8,YGs,PtU,tpX,hq2,k2,zqm,Xz,N3,n3s,aJ,Fz,Hq,dKX,sY8,i6,Rqs,vY,ltX,TSm,PY,pjF,y4s,Dv,wjt,OLf,ftF,UKj,hz,zY,n7,s3,R9,kKj,l6,TY, p7,NSt,wz,atf,A4j,O3,HLm,xf,mD,Sj,f7,QYt,Zv,gz,X6,kf,cY,WjF,CtB,bLU,a9,Az,F6,HY,MR,Qj,jdj,i9j,$Dr,vDr,JUt,G2r,WY,oDX,Jv,Kyw,Vdf,Y_w,Gm,K4,VZ,Y5,EE,ew,P$,q_s,B$,Iy,hv,EDB,eL2,zm,PIm,DDF,d_,sdw,RLf,lWf,sE,Tlw,pVt,wVF,l9,UDs,O9B,p4,mD2,S_F,fWt,yZ,w_,Z9U,OE,UE,x5,mO,Sw,f4,Zm,u9,g_,X4,k5,c$,N4,ay,uNX,gDj,XVr,F4,M4,k2m,iR,$6,vy,Jh,Ge,KE,Vl,AUs,Y6,rx,qA,H9m,Fy2,cUX,Py,ek,CIF,D8,RS,nE,lR,Te,jJF,v2m,LE,o2B,JSw,Glf,Vy8,ewf,Y5F,q5r,E28,wx,yl,P4t,Ui,x6,ma,D3r,XX,tys,k6,cy,NA,Ah,B0B,Hy,MA,I$m,Ql,Wy,zwt,jW,$L, v8,JD,GZ,oP,Kq,VC,YL,rs,d3B,qk,P8,eW,RwL,LGr,T08,pqf,yS2,wqj,U3f,x3X,OMB,S5s,B8,IP,nq,f$w,ZMB,zZ,ds,g2B,Xqs,a$L,N0U,TZ,pq,Lq,yC,ws,U9,FGj,HMf,Myj,gs,XJ,QJm,WGw,C4m,AD,FJ,H8,bMw,j9m,$Rw,Jzm,Cq,GYr,iK,b$,JP,GB,KP,ofU,P9,Du,tP,B9,hP,zB,dI,q3F,Efm,R2,eem,P6U,TB,DRF,tj8,pP,LP,Bzw,Iv2,zej,UT,dRB,s9m,wI,Re2,lvm,pYF,Tzw,fP,nfj,yzX,wYF,c9,Xs,O7r,URF,Nl,a2,xRU,mRw,H9,S3r,fvw,Z78,u6U,bK,gfF,XY2,kYB,czj,Nzw,avF,AzU,FDX,i5,H7B,vO,Q9X,WDm,C68,b7L,jyX,J$,re,$4L,GmB,q2,o5m,Vwt,i48,YEB,rv2,qEj,v5L,JvF,Gw,ok,YE,KOF, V3,Ke,E58,eZf,P98,D4w,twt,B_m,d42,ImL,DU,t$,Ik,lm8,LO8,p$8,BO,Tw,yvU,y3,w$X,U4j,mz,O4m,kmB,x4B,X$s,u5,cv2,AvB,ge,ZU,N_2,amw,FOf,kE,Mw2,Qy8,WOt,C9j,b4f,jSF,iEm,H4f,v6U,Jhw,Ges,Kas,o6m,YiB,A$,rht,FG,HO,M2,qij,E6w,Ce,b5,PRX,eus,j3,DAr,Bx8,hum,I8B,zuj,sSm,n62,qo,Po,e3,Ruf,E0,h0,zI,nr,dg,l8f,Rb,pyf,pr,TI,yy,wg,O0,U0,Laj,xZ,S3,yhw,ZE,gg,Xv,wy2,OEw,UA2,xAw,kZ,No,mAU,ab,A0,Fv,f8m,Ho,Mo,ZEr,Wo,jD,bN,Cr,iW,$m,Xy8,Fat,Mkt,AhB,a8s,HEB,G9,VV,bEr,QSj,Wam,CRw,g68,VWj,I5,Kmr,q9r,oLm,Jt,ht,E2,tt,Y9U,ru,chw,kej,Nxj, KW,GZj,s2,Bsf,R5,hOf,zOm,nLw,T9,dkf,sPs,ROr,Tsf,p8m,yV,yDf,wu,w8m,Oqj,xkf,mk2,U2,S9X,ZqU,xm,uJw,ms,SD,rI,ags,QPU,km,C$m,iPU,NT,vqf,JPt,GBX,$P,i_,oqr,bW,T_m,WX,jn,CW,a5,r8,YP,EN,Pr,VQF,DH,Br,IK,YT8,rP2,nR,Eq2,eDX,PKs,Dl8,tQw,BIB,Ium,hDr,zDF,nqt,l_,dlF,T8,LR,s2m,RDB,lur,yF,TI2,p9j,xP,mq,Sn,Lgm,fR,yPB,u_,OPs,w9B,XV,kP,cr,NU,Ulm,aK,A9,xlt,mlL,FV,Hr,usU,STw,ZPB,fus,MU,QF,Wr,gqF,X98,kB2,CR,NIB,FgX,APs,b_,jr,id,$p,vs,G$,oA,Kd,VQ,Yp,ry,HPX,MQm,Q2w,q1,EU,er,Ps,tk,IA,bPU,CK8,z$,jk2,nd,dy,sU,RA,ld,Ld,yQ,wy, OU,UU,xp,mk,Sr,fd,Zz,ud,vE2,XT,cs,J$8,N1,oEw,Kzm,VgL,r$j,EEF,QQ,eT2,Cd,Ws,tg2,BeU,IUm,jf,iM,zTB,vB,Ju,G_,ow,d22,KV,V_,Yn,skm,nV,nEm,da,sQ,lUw,RT2,Rw,lM,T_,pV,y_,pOL,LzL,OQ,UQ,mf,Sf,y$B,xn,U2L,x2m,m2L,Sat,fUX,Zem,uGX,ZY,fV,OeL,kwm,uM,Nes,aUt,aw,A$L,kn,cB,Fzw,Au,Mgt,WzX,Fm,HB,C5w,M0,jbs,Q_,oZ2,J0m,ir8,vZt,$of,CV,bM,ju,iP,$v,vA,Ja,og,V3B,q0X,Yv,W48,r7,EZB,PN8,El,ta,eu,Dc,PA,Bgw,t3m,Dos,IEt,BA,hQj,sbw,Ig,zp,lEX,np,d7,sl,Rg,Tgw,lP,poL,LZX,pp,Ol,Ul,xv,m8,Su,fp,Zc,uP,g7,Xt,kv,cA,Nd,y02,wow,ag,Aa,Ft,HA,Md, QA,Orj,UoL,WA,i3,S0m,fEU,$C,vn,hJ,zM,uvt,se,TM,gZw,kIf,XoX,c0X,Ngm,aEm,A0B,FZr,HrB,Qbm,M3j,WZt,j5L,$TX,brt,vmw,JtB,omt,L1,yb,VDt,KsX,wq,Oe,Ue,rt8,xC,mw,S9,Emj,emU,f1,q2m,Z2,tDt,u3,gq,Xg,kC,cn,Nx,aU,AJ,Fg,Hn,Mx,Qb,Wn,C1,b3,iF,$8,vb,Jc,Gq,oD,KN,Vw,Y8,rD,qY,Ez,ea,Pb,DB,tc,Bb,ID,hc,zq,nN,dD,sz,RD,lF,Tq,pN,LN,yw,wD,Oz,Uz,x8,mv,Sa,fN,ZB,uF,gD,Xx,k8,cb,NY,aD,Ac,Fx,Hb,MY,Qw,Wb,CN,bF,jh,iE,$d,JQ,GG,IlB,o_,Q,KX,v5,VW,Yd,rk,zmw,E6,dTj,qV,s58,P5,RmB,tQ,eh,B5,I_,hQ,nX,Tur,pXw,Ls2,yt2,wk,O6,TG,U6,OWf,UTm,xTw,mTm, llw,S2X,zG,flB,ZWU,mi,gk,Sh,s6,uuX,dk,xd,fX,XF,XX2,R_,lE,uE,ZI,k9w,kd,c5,NV,a_,ctF,AQ,FF,H5,MV,QW,Num,alj,Fs2,HWf,bE,jb,io,$M,bWF,iRF,vPB,J9X,J6,oPB,Kqw,rM,VnL,qq,EI,eb,PK,D3,t6,YNF,qNF,EPm,r9U,efw,P_w,z1,nT,sI,lo,T1,pT,DUw,LT,tnw,yG,wM,dM,xM,mp,Sb,fT,B8L,UI,hfm,Z3,zfw,nP8,uo,dUw,gM,Xe,sKw,Rfm,kM,lH2,T82,cK,pr8,Lqm,y9f,wrU,Nq,a8,OR8,UUX,A6,Fe,HK,xUB,Mq,QG,WK,CT,mUm,bo,jR,SNj,iD,fHX,$4,ZRj,uVw,gPj,Xrm,k8L,c9t,vE,N8F,aH8,A9U,Js,Fqt,GL,HRw,o$,Mn2,K6,QKj,Wqj,V9,eR,C_r,PE,Ds,ts,BE,bRm,I$,hs,zL,jAU,idf, df,sj,vpB,R$,Jkm,G$B,$1m,op8,Kkw,VrU,TL,YUB,p6,L6,y9,wf,rkB,Oj,Uj,m9,qUj,SR,f6,Ept,uD,k4,gf,As,Fy,eNf,HE,PdF,Q9,WE,C6,D1f,jl,trm,$G,vI,JB,N9,Gz,oj,Kt,Byw,V4,YG,rj,IzX,qG,EP,el,PI,Do,BI,Ij,hB,zz,hNf,zNX,nps,d1s,MG,nt,Q4,WI,sAr,RNX,lzX,Ct,bS,jP,Tym,psw,HI,Lkm,ykw,iw,wsw,$N,vf,Gt,os,KB,VI,YN,qH,EC,Pf,Dk,tZ,Bf,eP,x18,m18,hZ,zt,nB,SUm,sC,Zdw,Rs,lw,uTw,Tt,pB,LB,wp,gpm,yI,OC,UC,xN,XsL,fB,ckB,Nyr,Zk,uw,azm,Akt,FkB,gp,MrL,dp,Hdj,QA8,XL,Wkf,kN,CdB,cf,bdB,jwB,iVs,$0X,vnt,NH,G_w,Juj,as,Hf,onw,MH,Kft,QI,Vfw,YQB, Wf,ruL,qQB,Ens,e_m,CB,PMB,bw,tfL,iv,$T,IYw,BaL,h_j,z_f,nnr,JY,G4,oe,d0X,swL,R_t,lY2,Taj,pBj,Lfj,yuw,wBj,OVj,Vx,rB,U0F,x0m,qJ,Ek,m0t,e_,PD,tY,SQt,BD,Ie,hY,fY2,z4,ZVw,ni,umf,dB,gnF,XBm,sk,k_w,cuj,NaX,Re,lv,T4,pi,Li,aYj,AuU,yx,wB,Ok,Ffm,Uk,xT,mN,S_,fi,HVj,MfL,Z5,uv,QwL,gB,XZ,kT,cD,Att,WfU,CMj,NJ,bVL,jg2,ipw,ae,AY,FZ,HD,MJ,Qx,WD,Ci,bv,js,iu,$ds,vvw,VJ,Yc,Jaw,rc,B6,ER,zC,ra8,DdU,ql2,tur,Icw,hVm,B7X,zVL,nvs,ddU,gc,lcw,pAf,yaB,wAL,OpL,Ne,ao,xd2,mdm,uts,A2,gvm,Slt,FR,H6,Me,QJ,kpL,acm,caf,Hpw,i1w,jU8,Mum, $x2,Ca,W8w,QgL,GMf,V9w,Kwm,ECj,Yew,bu,je,Bqw,vg,I2F,l2B,RKm,sUU,dxL,zKX,LwF,pnj,nCm,xxB,UxB,mxB,VT,Z1B,Ser,f2B,hKw,ugt,gCw,JX,ou,wns,yJU,O1w,Xnm,Gd,TqF,cJF,a2s,Fw8,M9X,C3w,b1X,iNj,$YB,JcX,v8F,YzL,o8j,Gqt,rcs,ea8,PF2,DYw,tam,hX,T7X,ham,BDB,d2,dYt,lz,RaU,lBw,sDw,Td,TDr,p3,L3,BK,yT,RVU,w2,Or,Ur,pbt,Lvt,xR,ycs,wbU,ON8,mX,Se,f3,Zq,uz,g2,XY,kR,cg,UY2,xYX,NW,mYm,au,FL,AX,FY,fB8,Szt,Hg,ZN8,uxm,MW,QT,g88,Wg,Xb2,kqt,L8s,n8s,ccF,C3,I8,CX,YR,NDU,aBU,jZ,t92,iz,AcF,zd,n3,qW,r2,W6,ee,QUF,jDs,Er,eKt,qz2,Fvj,vCU, CPm,i1,zaw,c6,Mam,HNF,XAt,Wwr,QDU,E8X,Bg,P3r,DxU,oCs,H1m,AJw,F88,N7U,Zpf,fcf,Udm,kMt,bpt,Kvj,rJX,qeL,Dq,tX,Pg,Vaj,Nqm,CFF,Wvw,$z,vx,Jn,Gf,oh,Yz,Eu,eZ,Px,D1,Bx,Ih,bN8,Kn,V8,tn,iXU,j_8,hn,$Vt,vdX,nn,JQr,GGj,dt,Rh,l1,Tf,pn,Ln,y8,wt,Y6s,Uu,rQ8,Ou,q6j,KiB,Vh8,Edw,xz,m1,eor,PEf,SZ,DVL,Yq,Bkm,tht,hoX,ndt,dVU,zo8,s_s,Tkm,Li8,kz,cx,yQr,w5U,Nb,ah,OXs,UVm,xVw,mVU,Fo,Mb,Q8,fIf,ZX2,X52,cQ2,NkU,kG2,b1,$V,jV,aIF,AQw,Wx,FiB,HXs,Mhm,Q_r,Cn,j8s,iTj,$q8,bXf,CEt,WiF,vMU,J6w,uFs,G1U,gdf,oM2,Kpw,qIm,Vb2,YIr,r6m,Po2,EMt, e0m,Dqm,tbF,Jp,h0F,BMF,z0L,I3w,nMm,dqf,s8w,R0L,l3s,TMm,pKw,LpB,y6F,wKB,OTX,Uqw,GV,mqs,SIF,f3m,xqw,ZT8,uem,k1w,KH,r3,E1,c6F,eV,Pk,DP,Fp2,Mb8,HTF,Wpj,o4U,bTm,s1,Bk,Q8j,A6B,a3m,NM8,d3,I3,nH,LH,ya,YjF,w3,O1,pH,e2j,rsm,qj2,PDL,U1,xV,tRX,SV,fH,ZP,uf,g3,XS,kV,Bfs,Isw,ck,NB,Ap,z2t,n4f,a3,FS,R2m,lsf,Hk,Tfm,Wk,pEm,CH,j$,L9j,bf,i8,ysj,vw,O6j,U9U,Gn,oZ,qm,m9j,V$,EH,Pw,Sj8,tf,r4,e$,fsm,Bw,Z6B,IZ,uyL,Kb,Yx,x9B,DS,hf,g4B,XEX,zn,kLm,nb,d4,sH,RZ,csw,Tn,l8,pb,Lb,Nfw,asF,y$,w4,OH,UH,xx,As8,mu,S$,F98,H6f,fb,ZS,u8,Q$s, MRf,g4,W9F,CDw,b6F,Xr,jjj,itj,$Gr,vG8,JBf,kx,cw,Nm,aZ,Gz2,oGm,Fr,Klw,Hw,Mm,Vl8,YPt,Q$,rBw,qPL,DGU,tlr,EGm,ekf,PSs,Cb,b8,j2,iB,Bj8,IoX,$I,hks,nGU,zk8,oB,GP,sjU,RkF,loB,Tjm,K0,pIs,YI,rE,Lls,wIr,OtL,E4,t1,SPt,JsB,hp,ZtF,ujj,gGw,XIF,kzw,tp,e2,cBL,h1,zP,ABX,Flj,Ht8,n0,CSB,Ml2,QjF,jsF,iBU,dE,$Hf,btU,vNf,s4,RB,lB,JZw,GtL,TP,p0,oNL,L0,K$B,y7,BZ,xI,VP8,GLf,Cow,m_,S2,ZT,uB,gE,Xi,kI,f0,aB,rZ2,HZ,qCw,ENj,egr,Pwj,DHf,M5,Bpf,Q7,hgU,WZ,nNs,dHB,zgs,Iks,ssm,Rg8,lks,$$,TpX,pfm,yZ2,vL,VRB,JM,OBt,xHt,R3,mHr,oC,fkm,zV, SC8,j$j,$9B,v4j,wfs,KY,V5,Y$,ZBB,uLs,rU,gNw,Ef,eN,PL,DR,tM,XfU,BL,IC,kt8,cZU,hM,zW,nY,dU,sf,RC,akw,NpB,lh,AZF,HBm,TW,MPm,F$j,AM,NX,F9,MX,Q5,jN,QsU,vTF,LX,aC,jv,KNf,YkU,x$,JW,Uf,G3,VE,cL,Yg,Pvt,rh,qr,DJm,t_2,BBf,I5s,Ey,hdr,zd8,ev,nTm,TBj,l58,dJ8,RdX,ser,PG,pDB,Dx,LNm,yYr,Oij,UJL,xJX,uZX,z3,nS,k4s,dh,sy,cYL,AYj,FNj,Him,M_m,RG,QeL,Cvj,bi8,fS,Vsm,vcU,J2m,r2j,Zx,qRw,eSB,Ect,Pum,gh,cG,DeX,us,Nr,aG,tst,Iem,ncB,Mr,j0,G5,Vf,me8,SRf,EL,qN,Pm,DN,feX,gcf,uRw,X6t,Bm,t3,kCj,Nct,ae2,F3X,z5,A2w,Haj,Msm,dH,sL,W3F, HG,h3,T5,Tcw,Bcr,w6f,wH,e0,c28,ZN,ov,gH,XH,kJ,rXm,Yrw,Kh,NN,av,A3,ERU,FH,Hm,eJ2,YJ,bg,Zaw,$1,$Wr,vz,PzU,soX,dej,hSr,JK,oQ,Vh,RJm,sum,T2w,pgm,qy,eI,Pz,EM,tK,Bz,LXw,IQ,wgt,hK,UW2,dr,O3t,sM,RQ,fqm,lm,gRX,Xg2,Lm,kd8,N2U,AXj,k1,Ny,aQ,Hz,FXs,My,Qh,jH,ik,$w,vd,H3m,Jr,G0,CzF,oT,Kz,b3t,jht,Ve,inm,$bF,vzj,JnU,Yw,rm,Gf8,K18,eH,Pd,Bd,IT,VZw,Yu2,hr,z0,nz,dm,rnm,quB,RT,Ezw,ecB,lk,DbB,P1j,tZt,T0,I1w,BtL,pz,hcX,Lz,ye,zct,dbU,shF,wm,Ov,Uv,Rcw,xw,Ttw,SH,pxL,L1X,mS,fz,ZM,uk,UbU,mbt,ynw,xbB,Suj,wxF,Onf,f1U,ZnL,kw,uoF, Xxf,Ntt,AnB,a18,Qe,MI,bk,Hnw,jU,ic,$U,Qhm,v2,W1w,MZr,Jy,j3w,Gh,oq,iHw,Ky,$Bw,$e8,K38,Jp8,vVs,oVs,GVL,KLF,YU,VV2,Y18,q8,EVX,Eh,eU,P2,Pfs,B3j,B2,Iq,hy,hGm,IPs,DL,zGF,nVw,dB2,RG8,zh,xB2,Rq,lc,gV2,NI,kV2,cpf,N3m,aPw,ApB,py,FL8,Ly,yH,wZ,HHX,xU,MV2,Q3r,md,SU,WLw,Cfr,bHw,jZB,ib8,fy,Uh,$mr,ZL,JfX,Gnm,ox2,uc,KuB,V$B,YHL,rfj,qHr,Exw,ezm,P8m,Dmm,t$X,gZ,ISs,X7,hzB,c2,zzw,dm2,Ay,B48,kU,F7,H2,M8,QH,W2,Cy,sZj,bc,Rzm,ia,yff,Umj,xms,mm8,SHL,JL,fSr,Obr,Lur,Zb2,$_,urB,Xw8,jX,v7,T4s,pwm,Ga,knw,cfm,wwU,lSw,N42,KJ,aSt, Vi,Y_,AfU,rO,M$F,Fut,HbU,qZ,QZ2,Ec,eX,P7,DF,WuF,C8X,bbF,tL,i0X,$5w,B7,vIX,IM,hL,J1F,GPt,oIj,K_s,V2j,Y4m,t22,EIm,kfm,nJ,ITf,hIj,eIf,PBU,q4w,D58,RIt,dO,r1w,BEX,TEs,sBj,d5m,nI8,zIL,RM,pZm,cd,la,Ta,pJ,L_L,y12,O0w,wZm,U5F,Cz,x5w,m5B,Ar,Hd,gzt,yi,Oc,uiB,gIs,XZj,x_,wO,LJ,SX,fTf,S4m,Z0m,fJ,kPw,c1m,aq,nxL,aT,ZF,NEw,Uc,aTs,A1r,F_8,H0w,M2U,ua,W_m,CBU,b0j,jC2,iYF,$Xr,v$2,gxf,XU,k_,GWX,gO,o$8,C1F,bns,c7,KHU,VNF,Yfw,rMr,NZ,eF8,qfU,PhB,tNB,E$t,BUw,hFB,IRr,dXt,aM,H7,lRm,RFt,yMU,pLB,wL8,OYB,TU8,LHw,sC2,UXF,MZ,xXm, fRs,mXX,SfB,W7,vxj,ZYm,u98,g$U,XLU,kWr,CJ,cMr,ba,NU8,jO,ie,aRU,$H,AMj,FHm,vi,HYj,MNL,QCL,WHU,JO,tVt,Gu,jGF,oi,bYw,iSw,$rt,DBL,ty,vgm,JWL,VU,qyB,rWU,eO,EgX,YyL,DrF,Pi,tvw,Bh2,z5s,ng2,sGw,h5B,R5B,lxB,Thw,pGr,L6t,wGr,OSm,Urm,yWt,tO,Kv,mrB,Ixs,Syw,drt,Bi,ZSX,xrf,D0,uPw,ggr,cWB,F62,Nhr,HSm,AW2,MvU,XG8,Ii,QGF,k3w,gv,jvt,$NB,ihm,vJm,J3w,G52,bSU,oJ8,KMm,hO,V08,YLB,r3F,qLm,EJt,DNr,Pgj,eYL,kH,t0U,INU,hYF,zYw,nJw,dN2,ai,N8,svs,RYm,lNj,LMm,pm2,THr,y3w,Ohw,UN2,wmw,nv,zFw,mNw,SLB,fNs,NHm,gJr,Xmf,k5F,aNF,FMm,lTB, ci,uHt,Zhf,A3B,Wd,c32,za,FI,axB,Cgf,WMF,bhr,jQX,JKB,GTU,BH2,FU,AL,M0r,o1B,Qvw,Kbm,VIB,DXs,YMj,Csm,W6f,Hhm,n$t,Hi,Mj,qMt,QU,E1B,ejm,Pm8,Dyw,tIf,Iwj,hjf,sQt,zjr,dyL,Rj8,Cv,Lbm,Trm,pz2,Oms,UyX,xym,be,myt,Wi,SMU,wzw,lwF,jE,fwB,n1F,Zm2,i2,g1r,u5f,kTX,cKt,Nr2,Xz2,$S,Ca8,AKw,ivr,ji8,bJB,$jF,vHX,vQ,JOm,GuF,KIr,VOw,oHF,YBL,Pet,qBw,EH2,e3w,Djs,tOF,Bvf,h3B,I08,z3f,nHj,djw,R3X,l02,piF,Tvj,LIm,siw,yOF,OvB,Ujm,mjf,f0t,xjB,oc,Zv2,u$w,wis,gHf,SBs,Kl,Xiw,kuj,cOm,Nvr,a0m,AOt,FIr,MOL,WIt,Ce8,bvB,jcw,ilw,Vm,$aw,YS,J5X, GEs,eE,KQs,PQ,YOj,r5j,qOL,ESB,P2f,e7X,$yU,BFf,I7s,imw,D7,BQ,Daw,tEj,h5,zE,z78,h7s,nSw,daf,scB,TFw,R78,y5f,nl,l7w,wQw,dF,SOs,Olt,Rc,l2,f7j,sO,Zlw,TE,XQj,gSm,xaw,ma8,kEw,c5F,NF8,Ua2,a7f,pl,A5j,uQ2,VEs,Ic,Hlm,ym,MEm,QcX,WQr,C2r,blF,j4F,iDU,$u2,veL,wF,J_s,GSm,Khs,ViX,YqB,oef,r_B,qqF,Eew,eWm,PTj,Du2,UO,U1L,tiU,B1s,xS,I9s,hWX,SE,duj,s4f,fl,l9L,T1F,RWw,neU,Z7,mQ,zWr,XQ,gF,pT2,kS,u2,ODj,mum,f9w,ZDt,ge2,y_w,Sqt,XTs,wTj,kSB,c_F,FQ,cQ,a9w,A_w,N1X,ac,MiL,Q4w,xuL,Uu2,HD2,WhF,uft,Lhf,HQ,Ma,Qm,CTm,WQ,Jmj,iCw,Got, $62,jVr,oQs,bDm,rmt,KYj,Cl,qDU,eBf,D6j,t6m,BPU,zBf,$e,nQm,Ids,A5,RBX,ldX,KD,fx2,b2,TP8,pvL,ymL,LYs,wv2,sVF,J_,OCt,U6m,x6m,SDU,m6m,xNf,fdX,vT,ZCm,gQm,uDj,kow,Xvt,Ppr,NPs,cmX,GS,ji,adr,Ye,FYm,HCs,M68,QV2,WY2,VL,rO2,hBU,Cpt,rKw,Na,bCL,jxU,i52,$gm,vAB,r1,qu,GQX,oAf,KJj,JdX,V4L,Eq,EAm,rdw,qwf,esB,ei,PxU,Dgm,t4t,PT,BCr,hsm,zsr,nAj,D9,IKs,t_,BT,dgm,sxw,zS,I4,h_,Rsj,nD,lKw,TCw,pHw,ydX,LJt,pD,O5f,Ugs,wHm,xgF,LD,mg2,yL,Sw2,w1,fKL,Z5m,kQm,XHm,aK8,udF,cdj,Oq,gAL,NCf,Ad8,FJm,H5j,M4U,xe,Qxt,fD,mh,WJU,Z9,uT,b5f, Xf,ke,jOw,g1,isF,cT,vFt,$nX,a4,A_,Ff,oFF,Jbj,GkL,HT,K7L,q7X,Y7L,VtL,rbL,Mu,e8m,BLF,Ias,QL,h8t,z8s,PHB,Dnt,sOt,R8m,laU,TLm,pUB,L7w,bT,Un2,j6,wUt,Osw,faw,CD,ip,$Q,ybm,xnB,Zsw,vv,uWw,gFr,XUU,Jm,kkm,Go,cbF,NLf,aaj,AbU,F7L,Hs2,Mtr,CH2,QOj,bsf,jFt,$Qj,v0r,tm,Ypm,Gyf,o0w,reU,qpm,VoU,Jer,E02,Pnr,eU8,DQt,n0j,IV,RUw,plL,TG2,lfs,hUL,zU2,toF,BGt,dQF,hm,zo,yew,x1,xWL,wlt,dP,RV,UQL,OcX,sFt,mQU,SpB,ff8,lp,Zcw,UD,g02,Xlm,ky8,NGm,ceX,aff,xQ,mY,Aef,Mot,QFm,Zd,Hcf,Wo2,CnL,Foj,XD,bcU,jXm,gP,i$U,$Fs,vWr,JFF,oWs,Gv8,YgB, rFf,K58,EWF,eAF,VYj,N6,aV,PQw,tYw,Am,DFj,BXf,hAL,Ibf,zAs,FD,nWs,dFB,sXm,Hv,M6,Qp,RAU,lbU,TXt,L5U,p4w,yFF,w4w,O$L,UF2,xFj,Sgs,CC,Wv,bp,fbm,Z$w,mFw,cFF,NX2,abU,H$2,F5w,AFF,MYt,QXU,j4,ix,W5r,CQm,b$m,jNB,$cj,vjm,vH,Jlm,$A,GQ,ijm,Gbw,ojm,Ktj,VxX,Ytw,K5,rls,qtX,Pb8,V0,Dcr,err,YA,rC,txB,Biw,hrs,njr,IhU,zr2,Ew,dcf,Rrw,lhw,p1L,Ltm,e4,PH,ylw,sNF,Ucw,Ojw,w1U,DK,td,mcw,xcX,BH,Ix,Stt,hd,fhF,Zj2,un8,zQ,gjr,n5,X1L,dC,Rx,NiU,ahs,AlF,Hjw,MxU,QNm,Ft2,Cbf,Wtw,bjw,$wB,p5,JVm,voB,j6j,iwU,Gcm,ooj,L5,y0,Kem,VJL,YYw,rVm, qYU,EoL,PXm,Dw8,s6s,IXr,hhX,tJU,lXw,S4,ZK,yVf,Xd,kA,wCw,TV2,mJ,ax,Ng,ux,UwX,xws,Ad,SYm,ZwX,fXs,Fd,gC,xA,mww,cH,pCX,Oww,go2,wC,HH,XCU,kc2,f5,Le8,Mg,Q0,cVw,WH,C5,bx,NVr,aXm,Fej,HwX,AVX,jt,iH,MJL,$F,Q6U,vU,Jb,Wer,CX2,bwm,jar,iK8,$Pw,JTj,v78,oO,Gk,Ggt,KAL,o72,Ks,Vs,VLt,rTB,qJs,YF,YJX,E7m,elB,PJt,DPr,tLj,B$j,Inm,qn,E7,zlw,hlw,et,PU,n7U,dPj,saw,Da,Rlw,tb,lnf,pPB,T$X,IO,zk,LAF,yTs,dL,wPr,OKf,UPF,xPs,mPs,SJF,ZKF,uh2,g7j,fnB,XPw,kgX,cTs,N$m,anL,ATF,FAm,HKw,ps,MLX,Qaj,WAX,jrs,JHw,$sm,bKF,wL,ixw,CJw,vhX,O7, ohX,Git,U7,KBt,Vqt,YWm,J5,PGj,DsB,tqf,St,BYL,Za,X$,Ijw,uH,hxm,fs,zxU,nh8,pe8,Nn,aO,FW,HU,yHw,LB8,dsB,Mn,we8,OxX,xs2,Qs,msF,SW2,fj2,Ab,uOs,ZxB,WU,Cs,lj2,kF,ghF,XeB,kim,cHB,srs,RxB,cU,NYs,ajt,AHU,FB8,WBB,CGX,jRF,Qr2,vkm,gm,XI,zu,oks,KCr,GHf,VMj,bxU,J8B,Hxw,YSX,$pj,r8f,iZj,mT,QBw,FhL,bH,Qi,Mqt,Ekf,tM2,$0,BJf,IA2,POf,Je,h1j,z1f,qSm,nkw,DpX,dpB,Gy,vl,sR8,lAf,R1F,jo,p0X,VD,aqs,oF,Y0,Kc,rG,d6w,LCm,OZB,w0X,xpm,mpB,UpF,Ep,qQ,fAf,ZZw,ups,HZ2,NJw,aAm,kHw,WCr,X0f,Df,jHw,COB,igf,$tt,Pl,Bl,IF,o9B,Grr,Jgm,zy,FCL, RF,VFU,sp,he,rg8,E9X,e4m,QRt,qs8,Lc,PY8,A88,KE2,nc,Dtm,te,tFj,Bb2,IVm,Op,Up,Yst,h4B,z4m,x0,mo,n9m,dG,bZm,dtr,sH2,R4L,pc,lVm,ln,TbL,Ty,nm,p3t,ygm,So,fc,w3L,Ogs,Utt,wG,yD,xtt,y8m,mtj,SsF,fVt,Zgt,uAf,Zf,un,krF,aVt,FEF,X3U,iAm,$zs,vBs,J7L,GJL,oBw,Knf,YVU,VBB,gG,Xw,k0,r72,qVF,EBm,AZ,ePL,cl,PVm,NQ,aF,lD,Ae,W5,Dzr,sr,IBL,tBw,$R,BNX,m$,SP,IOm,bz,hPB,zP8,Ru,nBm,dzw,Fw,RPw,lOt,Hl,QD,Wl,TNm,y7w,wcm,Cc,OAB,pcw,LnL,Uzj,xzw,mzX,SVr,fOs,bn,uCU,IHw,R8,j_,gBw,Xct,vD,ZA2,OI,kJL,c7w,NNm,jY,Is,A7j,FnF,iQ,$W,HAf,v4,MBm, MQ,Q0U,Wnm,k$X,JF,Gv,CVF,oX,K$,bAm,V1,jtL,YW,rX,iUf,$OF,D0w,qF,viw,GFm,JRr,Eg,oij,eY,P4,KPm,VS2,Y$m,rRw,q$s,EiF,eRF,DOL,tF,PCs,tSs,Bof,IiX,hRB,stj,zRs,nif,dOB,liF,pSU,LPF,yRr,Tow,B4,wS8,OU2,UOw,xOw,mOf,hF,S$2,zv,n$,dX,fij,ZUw,gif,XS2,kFm,cRX,ait,Nom,ARt,sg,RX,MSt,FPF,HUw,lQ,QtX,WPm,Tv,p$,CCt,L$,bU8,y1,jm8,wX,Og,ifL,Ug,xW,$LL,vsY,m5,SY,JwS,f$,GXm,oso,XE,kW,KUL,V8F,YmL,EsN,qmY,c4,etX,Pjm,DLA,sgm,rwL,BwL,IrA,ztU,jm2,Em;vF=function(v){return function(){return jm2[v].apply(this,arguments)}}; g.rw=function(v,J){return jm2[v]=J}; ifm=function(v){var J=0;return function(){return J=this.length))return this[v]}; uj=function(v){return v?v:Zr}; DLX=function(v,J,G){v instanceof String&&(v=String(v));for(var K=v.length-1;K>=0;K--){var V=v[K];if(J.call(G,V,K,v))return{O_:K,En:V}}return{O_:-1,En:void 0}}; gw=function(v){return v?v:function(J,G){return DLX(this,J,G).O_}}; g.ks=function(v,J,G){v=v.split(".");G=G||g.X2;for(var K;v.length&&(K=v.shift());)v.length||J===void 0?G[K]&&G[K]!==Object.prototype[K]?G=G[K]:G=G[K]={}:G[K]=J}; am=function(v,J){var G=g.NL("CLOSURE_FLAGS");v=G&&G[v];return v!=null?v:J}; g.NL=function(v,J){v=v.split(".");J=J||g.X2;for(var G=0;G2){var K=Array.prototype.slice.call(arguments,2);return function(){var V=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(V,K);return v.apply(J,V)}}return function(){return v.apply(J,arguments)}}; g.bj=function(v,J,G){g.bj=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Bwm:IrX;return g.bj.apply(null,arguments)}; g.jm=function(v,J){var G=Array.prototype.slice.call(arguments,1);return function(){var K=G.slice();K.push.apply(K,arguments);return v.apply(this,K)}}; g.$X=function(){return Date.now()}; vN=function(v){return v}; g.Jo=function(v,J){function G(){} G.prototype=J.prototype;v.Yr=J.prototype;v.prototype=new G;v.prototype.constructor=v;v.base=function(K,V,Y){for(var r=Array(arguments.length-2),E=2;EJ&&G.push(YX(K,1))}); return G}; g.rT=function(v){v&&typeof v.dispose=="function"&&v.dispose()}; g.qS=function(v){for(var J=0,G=arguments.length;J>6|192;else{if(Y>=55296&&Y<=57343){if(Y<=56319&&V=56320&&r<=57343){Y=(Y-55296)*1024+ r-56320+65536;K[G++]=Y>>18|240;K[G++]=Y>>12&63|128;K[G++]=Y>>6&63|128;K[G++]=Y&63|128;continue}else V--}if(J)throw Error("Found an unpaired surrogate");Y=65533}K[G++]=Y>>12|224;K[G++]=Y>>6&63|128}K[G++]=Y&63|128}}v=G===K.length?K:K.subarray(0,G)}return v}; zA=function(v){g.X2.setTimeout(function(){throw v;},0)}; u2F=function(v){return Array.prototype.map.call(v,function(J){J=J.toString(16);return J.length>1?J:"0"+J}).join("")}; gsU=function(v){for(var J=[],G=0;G>6|192:((V&64512)==55296&&K+1>18|240,J[G++]=V>>12&63|128):J[G++]=V>>12|224,J[G++]=V>>6&63|128),J[G++]=V&63|128)}return J}; dT=function(v,J){return v.lastIndexOf(J,0)==0}; XFf=function(v,J){var G=v.length-J.length;return G>=0&&v.indexOf(J,G)==G}; g.s8=function(v){return/^[\s\xa0]*$/.test(v)}; g.lU=function(v,J){return v.indexOf(J)!=-1}; TA=function(v,J){return g.lU(v.toLowerCase(),J.toLowerCase())}; g.yY=function(v,J){var G=0;v=pG(String(v)).split(".");J=pG(String(J)).split(".");for(var K=Math.max(v.length,J.length),V=0;G==0&&VJ?1:0}; g.wT=function(){var v=g.X2.navigator;return v&&(v=v.userAgent)?v:""}; mF=function(v){if(!O8&&!U8||!xX)return!1;for(var J=0;J0:!1}; Z_=function(){return fG()?!1:Sm("Opera")}; kXF=function(){return fG()?!1:Sm("Trident")||Sm("MSIE")}; cwF=function(){return fG()?mF("Microsoft Edge"):Sm("Edg/")}; uU=function(){return Sm("Firefox")||Sm("FxiOS")}; kX=function(){return Sm("Safari")&&!(gT()||(fG()?0:Sm("Coast"))||Z_()||(fG()?0:Sm("Edge"))||cwF()||(fG()?mF("Opera"):Sm("OPR"))||uU()||Sm("Silk")||Sm("Android"))}; gT=function(){return fG()?mF("Chromium"):(Sm("Chrome")||Sm("CriOS"))&&!(fG()?0:Sm("Edge"))||Sm("Silk")}; NwB=function(){return Sm("Android")&&!(gT()||uU()||Z_()||Sm("Silk"))}; arj=function(v){var J={};v.forEach(function(G){J[G[0]]=G[1]}); return function(G){return J[G.find(function(K){return K in J})]||""}}; Aw8=function(v){var J=g.wT();if(v==="Internet Explorer"){if(kXF())if((v=/rv: *([\d\.]*)/.exec(J))&&v[1])J=v[1];else{v="";var G=/MSIE +([\d\.]+)/.exec(J);if(G&&G[1])if(J=/Trident\/(\d.\d)/.exec(J),G[1]=="7.0")if(J&&J[1])switch(J[1]){case "4.0":v="8.0";break;case "5.0":v="9.0";break;case "6.0":v="10.0";break;case "7.0":v="11.0"}else v="7.0";else v=G[1];J=v}else J="";return J}var K=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");G=[];for(var V;V=K.exec(J);)G.push([V[1],V[2],V[3]||void 0]); J=arj(G);switch(v){case "Opera":if(Z_())return J(["Version","Opera"]);if(fG()?mF("Opera"):Sm("OPR"))return J(["OPR"]);break;case "Microsoft Edge":if(fG()?0:Sm("Edge"))return J(["Edge"]);if(cwF())return J(["Edg"]);break;case "Chromium":if(gT())return J(["Chrome","CriOS","HeadlessChrome"])}return v==="Firefox"&&uU()||v==="Safari"&&kX()||v==="Android Browser"&&NwB()||v==="Silk"&&Sm("Silk")?(J=G[2])&&J[1]||"":""}; FUB=function(v){if(fG()&&v!=="Silk"){var J=xX.brands.find(function(G){return G.brand===v}); if(!J||!J.version)return NaN;J=J.version.split(".")}else{J=Aw8(v);if(J==="")return NaN;J=J.split(".")}return J.length===0?NaN:Number(J[0])}; cN=function(){return O8||U8?!!xX&&!!xX.platform:!1}; Hfj=function(){return cN()?xX.platform==="Android":Sm("Android")}; NS=function(){return Sm("iPhone")&&!Sm("iPod")&&!Sm("iPad")}; aL=function(){return NS()||Sm("iPad")||Sm("iPod")}; Ao=function(){return cN()?xX.platform==="macOS":Sm("Macintosh")}; M8m=function(){return cN()?xX.platform==="Windows":Sm("Windows")}; g.F8=function(v){return v[v.length-1]}; Qmt=function(v,J){var G=v.length,K=typeof v==="string"?v.split(""):v;for(--G;G>=0;--G)G in K&&J.call(void 0,K[G],G,v)}; g.MS=function(v,J,G){J=HN(v,J,G);return J<0?null:typeof v==="string"?v.charAt(J):v[J]}; HN=function(v,J,G){for(var K=v.length,V=typeof v==="string"?v.split(""):v,Y=0;Y=0;K--)if(K in V&&J.call(G,V[K],K,v))return K;return-1}; g.WN=function(v,J){return WUF(v,J)>=0}; Cjs=function(v){if(!Array.isArray(v))for(var J=v.length-1;J>=0;J--)delete v[J];v.length=0}; g.j5=function(v,J){J=WUF(v,J);var G;(G=J>=0)&&g.bU(v,J);return G}; g.bU=function(v,J){return Array.prototype.splice.call(v,J,1).length==1}; g.il=function(v,J){J=HN(v,J);J>=0&&g.bU(v,J)}; bfj=function(v,J){var G=0;Qmt(v,function(K,V){J.call(void 0,K,V,v)&&g.bU(v,V)&&G++})}; g.$Y=function(v){return Array.prototype.concat.apply([],arguments)}; g.vW=function(v){var J=v.length;if(J>0){for(var G=Array(J),K=0;K>>1),e=void 0;G?e=J.call(void 0,v[E],E,v):e=J(K,v[E]);e>0?V=E+1:(Y=E,r=!e)}return r?V:-V-1}; g.q_=function(v,J){v.sort(J||Vc)}; $Sm=function(v,J){var G=Vc;g.q_(v,function(K,V){return G(J(K),J(V))})}; g.Eb=function(v,J,G){if(!g.HF(v)||!g.HF(J)||v.length!=J.length)return!1;var K=v.length;G=G||vXB;for(var V=0;VJ?1:v=0})}; g.hE=function(v,J){J===void 0&&(J=0);row();J=q8m[J];for(var G=Array(Math.floor(v.length/3)),K=J[64]||"",V=0,Y=0;V>2];r=J[(r&3)<<4|E>>4];E=J[(E&15)<<2|e>>6];e=J[e&63];G[Y++]=""+P+r+E+e}P=0;e=K;switch(v.length-V){case 2:P=v[V+1],e=J[(P&15)<<2]||K;case 1:v=v[V],G[Y]=""+J[v>>2]+J[(v&3)<<4|P>>4]+e+K}return G.join("")}; g.z6=function(v,J){if(EX2&&!J)v=g.X2.btoa(v);else{for(var G=[],K=0,V=0;V255&&(G[K++]=Y&255,Y>>=8);G[K++]=Y}v=g.hE(G,J)}return v}; PUw=function(v){var J=[];e6L(v,function(G){J.push(G)}); return J}; n8=function(v){var J=v.length,G=J*3/4;G%3?G=Math.floor(G):g.lU("=.",v[J-1])&&(G=g.lU("=.",v[J-2])?G-2:G-1);var K=new Uint8Array(G),V=0;e6L(v,function(Y){K[V++]=Y}); return V!==G?K.subarray(0,V):K}; e6L=function(v,J){function G(e){for(;K>4);r!=64&&(J(Y<<4&240|r>>2),E!=64&&J(r<<6&192|E))}}; row=function(){if(!d6){d6={};for(var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),J=["+/=","+/","-_=","-_.","-_"],G=0;G<5;G++){var K=v.concat(J[G].split(""));q8m[G]=K;for(var V=0;V=J||(K[v]=G+1,v=Error(),sLX(v,"incident"),zA(v))}}; w6=function(v,J,G){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(G===void 0?0:G)&&Symbol.for&&v?Symbol.for(v):v!=null?Symbol(v):Symbol():J}; xY=function(v,J){Ob||Ub in v||l_F(v,TTw);v[Ub]|=J}; mW=function(v,J){Ob||Ub in v||l_F(v,TTw);v[Ub]=J}; S5=function(v){v[Ub]&=-3}; Z6=function(v){v=v[f8];var J=v===pNf;LFL&&v&&!J&&yc(yof,3);return J}; g6=function(v,J){if(J===void 0){if(J=v.T!==ul)Z6(v),J=!!(2&(v.ud[Ub]|0));v=J}else v=!!(2&J)&&v.T!==ul;return v}; Xk=function(v){return v!==null&&typeof v==="object"&&!Array.isArray(v)&&v.constructor===Object}; wNs=function(v,J){if(v!=null)if(typeof v==="string")v=v?new sb(v,RI):ll();else if(v.constructor!==sb)if(dSf&&v!=null&&v instanceof Uint8Array)v=v.length?new sb(new Uint8Array(v),RI):ll();else{if(!J)throw Error();v=void 0}return v}; cW=function(v,J){if(typeof J!=="number"||J<0||J>=v.length)throw Error();}; OGj=function(v,J,G){var K=J&512?0:-1,V=v.length;J=J&64?J&256:!!V&&Xk(v[V-1]);for(var Y=V+(J?-1:0),r=0;rJ.length)return!1;if(v.lengthV)return!1;if(K>>0;C8=J;bl=(v-J)/4294967296>>>0}; vJ=function(v){if(v<0){j1(0-v);var J=g.n($O(C8,bl));v=J.next().value;J=J.next().value;C8=v>>>0;bl=J>>>0}else j1(v)}; GR=function(v,J){var G=J*4294967296+(v>>>0);return Number.isSafeInteger(G)?G:JA(v,J)}; f_j=function(v,J){var G=J&2147483648;G&&(v=~v+1>>>0,J=~J>>>0,v==0&&(J=J+1>>>0));v=GR(v,J);return typeof v==="number"?G?-v:v:G?"-"+v:v}; JA=function(v,J){J>>>=0;v>>>=0;if(J<=2097151)var G=""+(4294967296*J+v);else AE()?G=""+(BigInt(J)<>>24|J<<8)&16777215,J=J>>16&65535,v=(v&16777215)+G*6777216+J*6710656,G+=J*8147497,J*=2,v>=1E7&&(G+=v/1E7>>>0,v%=1E7),G>=1E7&&(J+=G/1E7>>>0,G%=1E7),G=J+ZGF(G)+ZGF(v));return G}; ZGF=function(v){v=String(v);return"0000000".slice(v.length)+v}; u8X=function(){var v=C8,J=bl;J&2147483648?AE()?v=""+(BigInt(J|0)<>>0)):(J=g.n($O(v,J)),v=J.next().value,J=J.next().value,v="-"+JA(v,J)):v=JA(v,J);return v}; oE=function(v){if(v.length<16)vJ(Number(v));else if(AE())v=BigInt(v),C8=Number(v&BigInt(4294967295))>>>0,bl=Number(v>>BigInt(32)&BigInt(4294967295));else{var J=+(v[0]==="-");bl=C8=0;for(var G=v.length,K=0+J,V=(G-J)%6+J;V<=G;K=V,V+=6)K=Number(v.slice(K,V)),bl*=1E6,C8=C8*1E6+K,C8>=4294967296&&(bl+=Math.trunc(C8/4294967296),bl>>>=0,C8>>>=0);J&&(J=g.n($O(C8,bl)),v=J.next().value,J=J.next().value,C8=v,bl=J)}}; $O=function(v,J){J=~J;v?v=~v+1:J+=1;return[v,J]}; KF=function(v){return Array.prototype.slice.call(v)}; Vu=function(v,J){throw Error(J===void 0?"unexpected value "+v+"!":J);}; YO=function(v){if(v!=null&&typeof v!=="number")throw Error("Value of float/double field must be a number, found "+typeof v+": "+v);return v}; gX8=function(v){return v.displayName||v.name||"unknown type name"}; r9=function(v){if(v!=null&&typeof v!=="boolean")throw Error("Expected boolean but got "+Aw(v)+": "+v);return v}; EK=function(v){switch(typeof v){case "bigint":return!0;case "number":return q7(v);case "string":return XNw.test(v);default:return!1}}; kAw=function(v){if(typeof v!=="number")throw L8("int32");if(!q7(v))throw L8("int32");return v|0}; e1=function(v){return v==null?v:kAw(v)}; PJ=function(v){if(v==null)return v;if(typeof v==="string"&&v)v=+v;else if(typeof v!=="number")return;return q7(v)?v|0:void 0}; DG=function(v){if(v==null)return v;if(typeof v==="string"&&v)v=+v;else if(typeof v!=="number")return;return q7(v)?v>>>0:void 0}; a_B=function(v){var J=0;J=J===void 0?0:J;if(!EK(v))throw L8("int64");var G=typeof v;switch(J){case 2048:switch(G){case "string":return IE(v);case "bigint":return String(hA(64,v));default:return zR(v)}case 4096:switch(G){case "string":return coF(v);case "bigint":return WW(hA(64,v));default:return NTf(v)}case 0:switch(G){case "string":return IE(v);case "bigint":return WW(hA(64,v));default:return nF(v)}default:return Vu(J,"Unknown format requested type for int64")}}; d9=function(v){return v==null?v:a_B(v)}; Aof=function(v){if(v[0]==="-")return!1;var J=v.length;return J<20?!0:J===20&&Number(v.substring(0,6))<184467}; FFL=function(v){var J=v.length;return v[0]==="-"?J<20?!0:J===20&&Number(v.substring(0,7))>-922337:J<19?!0:J===19&&Number(v.substring(0,6))<922337}; HGf=function(v){if(v<0){vJ(v);var J=JA(C8,bl);v=Number(J);return sK(v)?v:J}J=String(v);if(Aof(J))return J;vJ(v);return GR(C8,bl)}; Mmm=function(v){if(FFL(v))return v;oE(v);return u8X()}; nF=function(v){EK(v);v=RE(v);sK(v)||(vJ(v),v=f_j(C8,bl));return v}; zR=function(v){EK(v);v=RE(v);if(sK(v))v=String(v);else{var J=String(v);FFL(J)?v=J:(vJ(v),v=u8X())}return v}; IE=function(v){EK(v);var J=RE(Number(v));if(sK(J))return String(J);J=v.indexOf(".");J!==-1&&(v=v.substring(0,J));return Mmm(v)}; coF=function(v){var J=RE(Number(v));if(sK(J))return WW(J);J=v.indexOf(".");J!==-1&&(v=v.substring(0,J));return AE()?WW(hA(64,BigInt(v))):WW(Mmm(v))}; NTf=function(v){return sK(v)?WW(nF(v)):WW(zR(v))}; QLw=function(v){if(v==null)return v;var J=typeof v;if(J==="bigint")return String(hA(64,v));if(EK(v)){if(J==="string")return IE(v);if(J==="number")return nF(v)}}; CUs=function(v){if(v==null)return v;var J=typeof v;if(J==="bigint")return String(WFU(64,v));if(EK(v)){if(J==="string")return EK(v),J=RE(Number(v)),sK(J)&&J>=0?v=String(J):(J=v.indexOf("."),J!==-1&&(v=v.substring(0,J)),Aof(v)||(oE(v),v=JA(C8,bl))),v;if(J==="number")return EK(v),v=RE(v),v>=0&&sK(v)?v:HGf(v)}}; bGm=function(v){if(v==null||typeof v=="string"||v instanceof sb)return v}; jIB=function(v){if(typeof v!=="string")throw Error();return v}; ly=function(v){if(v!=null&&typeof v!=="string")throw Error();return v}; TR=function(v){return v==null||typeof v==="string"?v:void 0}; pF=function(v,J){if(!(v instanceof J))throw Error("Expected instanceof "+gX8(J)+" but got "+(v&&gX8(v.constructor)));return v}; i88=function(v,J,G){if(v!=null&&typeof v==="object"&&Z6(v))return v;if(Array.isArray(v)){var K=v[Ub]|0,V=K;V===0&&(V|=G&32);V|=G&2;V!==K&&mW(v,V);return new J(v)}}; LF=function(v){return v}; w9=function(v){var J=vN(yu);return J?v[J]:void 0}; OK=function(){}; UK=function(v,J){for(var G in v)!isNaN(G)&&J(v,+G,v[G])}; $_t=function(v){var J=new OK;UK(v,function(G,K,V){J[K]=KF(V)}); J.T=v.T;return J}; mr=function(v,J,G,K,V){var Y=K?!!(J&32):void 0;K=[];var r=v.length,E=!1;if(J&64){if(J&256){r--;var e=v[r];var P=r}else P=4294967295,e=void 0;if(!(V||J&512)){E=!0;var D;var t=((D=xO)!=null?D:LF)(e?P- -1:J>>16&1023||536870912,-1,v,e);P=t+-1}}else P=4294967295,J&1||(e=r&&v[r-1],Xk(e)?(r--,P=r,t=0):e=void 0);D=void 0;for(var B=0;B=P){var h=void 0;((h=D)!=null?h:D={})[B- -1]=I}else K[B]=I}if(e)for(var R in e)r=e[R],r!=null&&(r=G(r,Y))!=null&&(B=+R,B< t?K[B+-1]=r:(B=void 0,((B=D)!=null?B:D={})[R]=r));D&&(E?K.push(D):K[P]=D);V&&(mW(K,J&67043905|(D!=null?290:34)),vN(yu)&&(v=w9(v))&&v instanceof OK&&(K[yu]=$_t(v)));return K}; vYB=function(v){switch(typeof v){case "number":return Number.isFinite(v)?v:""+v;case "bigint":return S1(v)?Number(v):""+v;case "boolean":return v?1:0;case "object":if(Array.isArray(v)){var J=v[Ub]|0;return v.length===0&&J&1?void 0:mr(v,J,vYB,!1,!1)}if(Z6(v))return fF(v);if(v instanceof sb){J=v.T;if(J==null)v="";else if(typeof J==="string")v=J;else{if(BTf){for(var G="",K=0,V=J.length-10240;K0?void 0:v===0?oYt||(oYt=[0,void 0]):[-v,void 0];case "string":return[0,v];case "object":return v}}; g9=function(v,J,G){v=V52(v,J[0],J[1],G?1:2);J!==uy&&G&&xY(v,8192);return v}; kO=function(v,J,G){return V52(v,J,G,3)}; V52=function(v,J,G,K){if(v==null){var V=96;G?(v=[G],V|=512):v=[];J&&(V=V&-67043329|(J&1023)<<16)}else{if(!Array.isArray(v))throw Error("narr");V=v[Ub]|0;8192&V||!(64&V)||2&V||Ybs();if(V&1024)throw Error("farr");if(V&64)return K!==3||V&16384||mW(v,V|16384),v;K===1||K===2||(V|=64);if(G&&(V|=512,G!==v[0]))throw Error("mid");a:{G=v;var Y=G.length;if(Y){var r=Y-1,E=G[r];if(Xk(E)){V|=256;J=V&512?0:-1;r-=J;if(r>=1024)throw Error("pvtlmt");for(var e in E)Y=+e,Y1024)throw Error("spvt");V=V&-67043329|(e&1023)<<16}}}K===3&&(V|=16384);mW(v,V);return v}; Ybs=function(){yc(rEU,5)}; cJ=function(v,J){if(typeof v!=="object")return v;if(Array.isArray(v)){var G=v[Ub]|0;if(v.length===0&&G&1)return;if(G&2)return v;var K;if(K=J)K=G===0||!!(G&32)&&!(G&64||!(G&16));return K?(xY(v,34),G&4&&Object.freeze(v),v):mr(v,G,cJ,J!==void 0,!0)}if(Z6(v))return Z6(v),Z6(v),J=v.ud,G=J[Ub]|0,g6(v,G)?v:mr(J,G,cJ,!0,!0);if(v instanceof sb)return v}; N7=function(v){var J=v;Z6(J);J=J.ud;var G=J[Ub]|0;if(!g6(v,G))return v;J=v=new v.constructor(mr(J,G,cJ,!0,!0));Z6(J);S5(J.ud);return v}; aE=function(v){if(v.T!==ul)return!1;Z6(v);var J=v.ud;J=mr(J,J[Ub]|0,cJ,!0,!0);S5(J);Z6(v);v.ud=J;v.T=void 0;return!0}; AA=function(v){var J;if(J=!aE(v))Z6(v),J=g6(v,v.ud[Ub]|0);if(J)throw Error();}; F0=function(v,J){J===void 0&&(J=v[Ub]|0);J&32&&!(J&32768)&&mW(v,J|32768)}; M7=function(v,J,G){Object.isExtensible(v);Z6(v);return HJ(v.ud,void 0,J,G)}; HJ=function(v,J,G,K,V){if(G===-1)return null;K=G+(K?0:-1);var Y=v.length-1;if(K>=Y&&(J!=null?J:v[Ub]|0)&256){J=v[Y][G];var r=!0}else if(K<=Y)J=v[K];else return;if(V&&J!=null){V=V(J);if(V==null)return V;if(V!==J)return r?v[Y][G]=V:v[K]=V,V}return J}; WJ=function(v,J,G,K){AA(v);Z6(v);var V=v.ud;Qu(V,V[Ub]|0,J,G,K);return v}; Qu=function(v,J,G,K,V){var Y=G+(V?0:-1),r=v.length-1,E;if(Y>=r&&((E=J)!=null?E:J=v[Ub]|0)&256)return v[r][G]=K,J;if(Y<=r)return v[Y]=K,J;K!==void 0&&(r=J>>16&1023||536870912,G>=r?K!=null&&(Y={},v[r+(V?0:-1)]=(Y[G]=K,Y),J|=256,mW(v,J)):v[Y]=K);return J}; EYr=function(v,J,G){Z6(v);v=v.ud;return qbm(v,v[Ub]|0,J,G)!==void 0}; vh=function(v,J,G,K,V){Z6(v);var Y=v.ud;var r=Y[Ub]|0;K=g6(v,r)?1:K;V=!!V||K===3;K===2&&aE(v)&&(Z6(v),Y=v.ud,r=Y[Ub]|0);v=CF(Y,r,J);var E=v[Ub]|0;if(!(4&E)){4&E&&(v=KF(v),E=by(E,r),r=Qu(Y,r,J,v));for(var e=0,P=0;e "+v)}; wK=function(v,J){if(typeof v==="string")return{buffer:h6j(v),YH:J};if(Array.isArray(v))return{buffer:new Uint8Array(v),YH:J};if(v.constructor===Uint8Array)return{buffer:v,YH:!1};if(v.constructor===ArrayBuffer)return{buffer:new Uint8Array(v),YH:!1};if(v.constructor===sb)return{buffer:T6(v)||new Uint8Array(0),YH:!0};if(v instanceof Uint8Array)return{buffer:new Uint8Array(v.buffer,v.byteOffset,v.byteLength),YH:!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"); }; d_t=function(v,J,G,K){this.X=null;this.J=!1;this.T=this.Z=this.L=0;this.init(v,J,G,K)}; Ux=function(v){var J=0,G=0,K=0,V=v.X,Y=v.T;do{var r=V[Y++];J|=(r&127)<32&&(G|=(r&127)>>4);for(K=3;K<32&&r&128;K+=7)r=V[Y++],G|=(r&127)<>>0,G>>>0);throw yv();}; Ox=function(v,J){v.T=J;if(J>v.Z)throw nYm(v.Z,J);}; xr=function(v){var J=v.X,G=v.T,K=J[G++],V=K&127;if(K&128&&(K=J[G++],V|=(K&127)<<7,K&128&&(K=J[G++],V|=(K&127)<<14,K&128&&(K=J[G++],V|=(K&127)<<21,K&128&&(K=J[G++],V|=K<<28,K&128&&J[G++]&128&&J[G++]&128&&J[G++]&128&&J[G++]&128&&J[G++]&128)))))throw yv();Ox(v,G);return V}; m0=function(v){var J=v.X,G=v.T,K=J[G+0],V=J[G+1],Y=J[G+2];J=J[G+3];Ox(v,v.T+4);return(K<<0|V<<8|Y<<16|J<<24)>>>0}; Sc=function(v){var J=m0(v);v=m0(v);return GR(J,v)}; fo=function(v){var J=m0(v),G=m0(v);v=(G>>31)*2+1;var K=G>>>20&2047;J=4294967296*(G&1048575)+J;return K==2047?J?NaN:v*Infinity:K==0?v*4.9E-324*J:v*Math.pow(2,K-1075)*(J+4503599627370496)}; ZC=function(v){for(var J=0,G=v.T,K=G+10,V=v.X;Gv.Z)throw nYm(J,v.Z-G);v.T=K;return G}; l6m=function(v,J){if(J==0)return ll();var G=sIt(v,J);v.J6&&v.J?G=v.X.subarray(G,G+J):(v=v.X,J=G+J,G=G===J?new Uint8Array(0):REw?v.slice(G,J):new Uint8Array(v.subarray(G,J)));return G.length==0?ll():new sb(G,RI)}; gK=function(v,J,G,K){if(u0.length){var V=u0.pop();V.init(v,J,G,K);v=V}else v=new d_t(v,J,G,K);this.T=v;this.Z=this.T.T;this.X=this.L=-1;T6r(this,K)}; T6r=function(v,J){J=J===void 0?{}:J;v.sQ=J.sQ===void 0?!1:J.sQ}; pWt=function(v,J,G,K){if(Xc.length){var V=Xc.pop();T6r(V,K);V.T.init(v,J,G,K);return V}return new gK(v,J,G,K)}; LWs=function(v){var J=v.T;if(J.T==J.Z)return!1;v.Z=v.T.T;var G=xr(v.T)>>>0;J=G>>>3;G&=7;if(!(G>=0&&G<=5))throw zEX(G,v.Z);if(J<1)throw Error("Invalid field number: "+J+" (at position "+v.Z+")");v.L=J;v.X=G;return!0}; kr=function(v){switch(v.X){case 0:v.X!=0?kr(v):ZC(v.T);break;case 1:v=v.T;Ox(v,v.T+8);break;case 2:if(v.X!=2)kr(v);else{var J=xr(v.T)>>>0;v=v.T;Ox(v,v.T+J)}break;case 5:v=v.T;Ox(v,v.T+4);break;case 3:J=v.L;do{if(!LWs(v))throw Error("Unmatched start-group tag: stream EOF");if(v.X==4){if(v.L!=J)throw Error("Unmatched end-group tag");break}kr(v)}while(1);break;default:throw zEX(v.X,v.Z);}}; ch=function(v,J,G){var K=v.T.Z,V=xr(v.T)>>>0,Y=v.T.T+V,r=Y-K;r<=0&&(v.T.Z=Y,G(J,v,void 0,void 0,void 0),r=Y-v.T.T);if(r)throw Error("Message parsing ended unexpectedly. Expected to read "+(V+" bytes, instead read "+(V-r)+" bytes, either the data ended unexpectedly or the message misreported its own length"));v.T.T=Y;v.T.Z=K}; Aj=function(v){var J=xr(v.T)>>>0;v=v.T;var G=sIt(v,J);v=v.X;if(yEs){var K=v,V;(V=N$)||(V=N$=new TextDecoder("utf-8",{fatal:!0}));J=G+J;K=G===0&&J===K.length?K:K.subarray(G,J);try{var Y=V.decode(K)}catch(P){if(a1===void 0){try{V.decode(new Uint8Array([128]))}catch(D){}try{V.decode(new Uint8Array([97])),a1=!0}catch(D){a1=!1}}!a1&&(N$=void 0);throw P;}}else{Y=G;J=Y+J;G=[];for(var r=null,E,e;Y=J?ho():(e=v[Y++],E<194||(e&192)!==128?(Y--,ho()):G.push((E&31)<<6|e&63)): E<240?Y>=J-1?ho():(e=v[Y++],(e&192)!==128||E===224&&e<160||E===237&&e>=160||((V=v[Y++])&192)!==128?(Y--,ho()):G.push((E&15)<<12|(e&63)<<6|V&63)):E<=244?Y>=J-2?ho():(e=v[Y++],(e&192)!==128||(E<<28)+(e-144)>>30!==0||((V=v[Y++])&192)!==128||((K=v[Y++])&192)!==128?(Y--,ho()):(E=(E&7)<<18|(e&63)<<12|(V&63)<<6|K&63,E-=65536,G.push((E>>10&1023)+55296,(E&1023)+56320))):ho(),G.length>=8192&&(r=xLf(r,G),G.length=0);Y=xLf(r,G)}return Y}; wWB=function(v){var J=xr(v.T)>>>0;return l6m(v.T,J)}; Fc=function(v,J,G){v=kO(v,J,G);Z6(this);this.ud=v}; O8t=function(v,J){if(J==null||J=="")return new v;J=JSON.parse(J);if(!Array.isArray(J))throw Error("dnarr");xY(J,32);return new v(J)}; Hh=function(v,J){this.X=v>>>0;this.T=J>>>0}; x_m=function(v){if(!v)return U_j||(U_j=new Hh(0,0));if(!/^\d+$/.test(v))return null;oE(v);return new Hh(C8,bl)}; M$=function(v,J){this.X=v>>>0;this.T=J>>>0}; Sbr=function(v){if(!v)return m_w||(m_w=new M$(0,0));if(!/^-?\d+$/.test(v))return null;oE(v);return new M$(C8,bl)}; Qv=function(){this.T=[]}; Wh=function(v,J,G){for(;G>0||J>127;)v.T.push(J&127|128),J=(J>>>7|G<<25)>>>0,G>>>=7;v.T.push(J)}; Co=function(v,J){for(;J>127;)v.T.push(J&127|128),J>>>=7;v.T.push(J)}; f62=function(v,J){if(J>=0)Co(v,J);else{for(var G=0;G<9;G++)v.T.push(J&127|128),J>>=7;v.T.push(1)}}; b0=function(v,J){v.T.push(J>>>0&255);v.T.push(J>>>8&255);v.T.push(J>>>16&255);v.T.push(J>>>24&255)}; Z8r=function(){this.Z=[];this.X=0;this.T=new Qv}; jG=function(v,J){J.length!==0&&(v.Z.push(J),v.X+=J.length)}; uk2=function(v,J){ir(v,J,2);J=v.T.end();jG(v,J);J.push(v.X);return J}; gYF=function(v,J){var G=J.pop();for(G=v.X+v.T.length()-G;G>127;)J.push(G&127|128),G>>>=7,v.X++;J.push(G);v.X++}; ir=function(v,J,G){Co(v.T,J*8+G)}; XWB=function(v,J,G){if(G!=null){switch(typeof G){case "string":x_m(G)}ir(v,J,1);switch(typeof G){case "number":v=v.T;j1(G);b0(v,C8);b0(v,bl);break;case "bigint":G=BigInt.asUintN(64,G);G=new Hh(Number(G&BigInt(4294967295)),Number(G>>BigInt(32)));v=v.T;J=G.T;b0(v,G.X);b0(v,J);break;default:G=x_m(G),v=v.T,J=G.T,b0(v,G.X),b0(v,J)}}}; $u=function(v,J,G){ir(v,J,2);Co(v.T,G.length);jG(v,v.T.end());jG(v,G)}; va=function(){function v(){throw Error();} Object.setPrototypeOf(v,v.prototype);return v}; GN=function(v,J,G){this.cz=v;this.eL=J;v=vN(JN);this.T=!!v&&G===v||!1}; oz=function(v,J){var G=G===void 0?JN:G;return new GN(v,J,G)}; cEw=function(v,J,G,K,V){J=k6m(J,K);J!=null&&(G=uk2(v,G),V(J,v),gYF(v,G))}; Yu=function(v,J,G,K){var V=K[v];if(V)return V;V={};V.Vi=K;V.kc=KW8(K[0]);var Y=K[1],r=1;Y&&Y.constructor===Object&&(V.extensions=Y,Y=K[++r],typeof Y==="function"&&(V.us=!0,K_!=null||(K_=Y),Vg!=null||(Vg=K[r+1]),Y=K[r+=2]));for(var E={};Y&&Array.isArray(Y)&&Y.length&&typeof Y[0]==="number"&&Y[0]>0;){for(var e=0;e>BigInt(32)));Wh(v.T,G.X,G.T);break;default:G=Sbr(J),Wh(v.T,G.X,G.T)}}}; Rz=function(v,J,G){J=PJ(J);J!=null&&J!=null&&(ir(v,G,0),f62(v.T,J))}; iF8=function(v,J,G){J=J==null||typeof J==="boolean"?J:typeof J==="number"?!!J:void 0;J!=null&&(ir(v,G,0),v.T.T.push(J?1:0))}; $7L=function(v,J,G){J=TR(J);J!=null&&$u(v,G,Zfm(J))}; vOs=function(v,J,G,K,V){J=k6m(J,K);J!=null&&(G=uk2(v,G),V(J,v),gYF(v,G))}; GRm=function(){var v=lr;this.T=JAm;this.isRepeated=0;this.X=tj;this.defaultValue=void 0;this.Z=v.messageId!=null?N_:void 0}; oOj=function(v){return function(){var J=new Z8r;Z6(this);Clr(this.ud,J,Yu(tN,D4,Ba,v));jG(J,J.T.end());for(var G=new Uint8Array(J.X),K=J.Z,V=K.length,Y=0,r=0;r>>31)&4294967295;t=V[0];var h=V[1],R=V[2],T=V[3],L=V[4];for(I=0;I<80;I++){if(I<40)if(I<20){var O=T^h&(R^T);var x=1518500249}else O=h^R^T,x=1859775393;else I<60?(O=h&R|T&(h|R),x=2400959708):(O=h^R^T,x=3395469782);O=((t<<5|t>>>27)&4294967295)+O+L+x+B[I]&4294967295;L=T;T=R;R=(h<<30|h>>>2)&4294967295;h=t;t=O}V[0]=V[0]+t&4294967295;V[1]=V[1]+h&4294967295;V[2]= V[2]+R&4294967295;V[3]=V[3]+T&4294967295;V[4]=V[4]+L&4294967295} function G(t,B){if(typeof t==="string"){t=unescape(encodeURIComponent(t));for(var I=[],h=0,R=t.length;h=56;I--)Y[I]=B&255,B>>>=8;J(Y);for(I=B=0;I<5;I++)for(var h=24;h>=0;h-=8)t[B++]=V[I]>>h&255;return t} for(var V=[],Y=[],r=[],E=[128],e=1;e<64;++e)E[e]=0;var P,D;v();return{reset:v,update:G,digest:K,UD:function(){for(var t=K(),B="",I=0;I4);V++)J[Jq(v[V])]||(G+="\nInner error "+K++ +": ",v[V].stack&&v[V].stack.indexOf(v[V].toString())==0||(G+=typeof v[V]==="string"?v[V]:v[V].message+"\n"),G+=$y(v[V],J));V")!=-1&&(v=v.replace(OFm,">")),v.indexOf('"')!=-1&&(v=v.replace(U7U,""")),v.indexOf("'")!=-1&&(v=v.replace(x7f,"'")),v.indexOf("\x00")!=-1&&(v=v.replace(m7m,"�")));return v}; g.Yy=function(v){return v==null?"":String(v)}; rd=function(v){for(var J=0,G=0;G>>0;return J}; qi=function(v){var J=Number(v);return J==0&&g.s8(v)?NaN:J}; SKm=function(v){return String(v).replace(/\-([a-z])/g,function(J,G){return G.toUpperCase()})}; fGU=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; ZFf=function(v){return v.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(J,G,K){return G+K.toUpperCase()})}; u0f=function(v){var J=1;v=v.split(":");for(var G=[];J>0&&v.length;)G.push(v.shift()),J--;v.length&&G.push(v.join(":"));return G}; PR=function(v){this.T=v||{cookie:""}}; Dp=function(v){v=(v.T.cookie||"").split(";");for(var J=[],G=[],K,V,Y=0;Y/g,">").replace(/"/g,""").replace(/'/g,"'");return Fa(v)}; HFF=function(v){var J=WR("");return Fa(v.map(function(G){return Ha(WR(G))}).join(Ha(J).toString()))}; bFB=function(v){var J;if(!M1X.test("div"))throw Error("");if(QEm.indexOf("DIV")!==-1)throw Error("");var G="":(v=HFF(J.map(function(K){return K instanceof AN?K:WR(String(K))})),G+=">"+v.toString()+""); return Fa(G)}; Wr2=function(v){for(var J="",G=Object.keys(v),K=0;K2&&K0w(V,r,K,2);return r}; K0w=function(v,J,G,K){function V(E){E&&J.appendChild(typeof E==="string"?v.createTextNode(E):E)} for(;K0)V(Y);else{a:{if(Y&&typeof Y.length=="number"){if(g.ML(Y)){var r=typeof Y.item=="function"||typeof Y.item=="string";break a}if(typeof Y==="function"){r=typeof Y.item=="function";break a}}r=!1}g.PW(r?g.vW(Y):Y,V)}}}; g.qh=function(v){return Yt(document,v)}; Yt=function(v,J){J=String(J);v.contentType==="application/xhtml+xml"&&(J=J.toLowerCase());return v.createElement(J)}; g.Eo=function(v){return document.createTextNode(String(v))}; g.eA=function(v,J){v.appendChild(J)}; g.PM=function(v){for(var J;J=v.firstChild;)v.removeChild(J)}; Dy=function(v,J,G){v.insertBefore(J,v.childNodes[G]||null)}; g.tx=function(v){return v&&v.parentNode?v.parentNode.removeChild(v):null}; g.BM=function(v,J){if(!v||!J)return!1;if(v.contains&&J.nodeType==1)return v==J||v.contains(J);if(typeof v.compareDocumentPosition!="undefined")return v==J||!!(v.compareDocumentPosition(J)&16);for(;J&&v!=J;)J=J.parentNode;return J==v}; bA=function(v){return v.nodeType==9?v:v.ownerDocument||v.document}; g.In=function(v,J){if("textContent"in v)v.textContent=J;else if(v.nodeType==3)v.data=String(J);else if(v.firstChild&&v.firstChild.nodeType==3){for(;v.lastChild!=v.firstChild;)v.removeChild(v.lastChild);v.firstChild.data=String(J)}else g.PM(v),v.appendChild(bA(v).createTextNode(String(J)))}; Yxw=function(v){return v.tagName=="A"&&v.hasAttribute("href")||v.tagName=="INPUT"||v.tagName=="TEXTAREA"||v.tagName=="SELECT"||v.tagName=="BUTTON"?!v.disabled&&(!v.hasAttribute("tabindex")||Vcr(v)):v.hasAttribute("tabindex")&&Vcr(v)}; Vcr=function(v){v=v.tabIndex;return typeof v==="number"&&v>=0&&v<32768}; zs=function(v,J,G){if(!J&&!G)return null;var K=J?String(J).toUpperCase():null;return hx(v,function(V){return(!K||V.nodeName==K)&&(!G||typeof V.className==="string"&&g.WN(V.className.split(/\s+/),G))},!0)}; hx=function(v,J,G){v&&!G&&(v=v.parentNode);for(G=0;v;){if(J(v))return v;v=v.parentNode;G++}return null}; Ck=function(v){this.T=v||g.X2.document||document}; nI=function(v){v=kO(v);Z6(this);this.ud=v}; dA=function(v){v=kO(v);Z6(this);this.ud=v}; so=function(v){v=kO(v);Z6(this);this.ud=v}; rjB=function(v,J){I1(v,dA,1,J)}; lZ=function(v){v=kO(v);Z6(this);this.ud=v}; Erw=function(v,J){J=J===void 0?qx2:J;if(!Ts){var G;v=(G=v.navigator)==null?void 0:G.userAgentData;if(!v||typeof v.getHighEntropyValues!=="function"||v.brands&&typeof v.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));G=(v.brands||[]).map(function(V){var Y=new dA;Y=T7(Y,1,V.brand);return T7(Y,2,V.version)}); rjB(WJ(pI,2,r9(v.mobile)),G);Ts=v.getHighEntropyValues(J)}var K=new Set(J);return Ts.then(function(V){var Y=pI.clone();K.has("platform")&&T7(Y,3,V.platform);K.has("platformVersion")&&T7(Y,4,V.platformVersion);K.has("architecture")&&T7(Y,5,V.architecture);K.has("model")&&T7(Y,6,V.model);K.has("uaFullVersion")&&T7(Y,7,V.uaFullVersion);return Y}).catch(function(){return pI.clone()})}; LI=function(v){v=kO(v);Z6(this);this.ud=v}; eyB=function(v){v=kO(v);Z6(this);this.ud=v}; yK=function(v){v=kO(v,4);Z6(this);this.ud=v}; wA=function(v){v=kO(v,36);Z6(this);this.ud=v}; Oo=function(v){v=kO(v,19);Z6(this);this.ud=v}; Uo=function(v,J){this.Sm=J=J===void 0?!1:J;this.uach=this.locale=null;this.X=0;this.isFinal=!1;this.T=new Oo;Number.isInteger(v)&&this.T.bV(v);J||(this.locale=document.documentElement.getAttribute("lang"));P0f(this,new LI)}; P0f=function(v,J){Bh(v.T,LI,1,J);R1(J,1)||Lo(J,1,1);v.Sm||(J=xt(v),dK(J,5)||T7(J,5,v.locale));v.uach&&(J=xt(v),tj(J,so,9)||Bh(J,so,9,v.uach))}; D$w=function(v,J){v.X=J}; tcw=function(v){var J=J===void 0?qx2:J;var G=v.Sm?void 0:VK();G?Erw(G,J).then(function(K){v.uach=K;K=xt(v);Bh(K,so,9,v.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; xt=function(v){v=tj(v.T,LI,1);var J=tj(v,lZ,11);J||(J=new lZ,Bh(v,lZ,11,J));return J}; BKm=function(v){return g.KI?"webkit"+v:v.toLowerCase()}; g.m2=function(v,J,G,K){this.L=v;this.J=J;this.T=this.Z=v;this.j=G||0;this.K=K||2}; g.SA=function(v){v.T=Math.min(v.J,v.T*v.K);v.Z=Math.min(v.J,v.T+(v.j?Math.round(v.j*(Math.random()-.5)*2*v.T):0));v.X++}; lr=function(v){v=kO(v,8);Z6(this);this.ud=v}; JAm=function(v){v=kO(v);Z6(this);this.ud=v}; uZ=function(v){g.X.call(this);var J=this;this.componentId="";this.T=[];this.jl="";this.pageId=null;this.Gi=this.Ze=-1;this.K=this.experimentIds=null;this.j=this.L=0;this.N=null;this.Ti=this.dh=0;this.RY=1;this.timeoutMillis=0;this.Mr=!1;this.logSource=v.logSource;this.VL=v.VL||function(){}; this.Z=new Uo(v.logSource,v.Sm);this.network=v.network||null;this.sU=v.sU||null;this.U=v.FXB||null;this.sessionIndex=v.sessionIndex||null;this.b6=v.b6||!1;this.logger=null;this.withCredentials=!v.l_;this.Sm=v.Sm||!1;this.oY=!this.Sm&&!!VK()&&!!VK().navigator&&VK().navigator.sendBeacon!==void 0;this.YB=typeof URLSearchParams!=="undefined"&&!!(new URL(fI())).searchParams&&!!(new URL(fI())).searchParams.set;var G=Lo(new LI,1,1);P0f(this.Z,G);this.J=new g.m2(1E4,3E5,.1);v=IC2(this,v.Qp);this.X=new I7(this.J.getValue(), v);this.qr=new I7(6E5,v);this.b6||this.qr.start();this.Sm||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Zy(J);var K;(K=J.N)==null||K.flush()}}),document.addEventListener("pagehide",function(){Zy(J); var K;(K=J.N)==null||K.flush()}))}; IC2=function(v,J){return v.YB?J?function(){J().then(function(){v.flush()})}:function(){v.flush()}:function(){}}; hyw=function(v){v.U||(v.U=fI());try{return(new URL(v.U)).toString()}catch(J){return(new URL(v.U,VK().location.origin)).toString()}}; gA=function(v,J,G){v.N&&v.N.Wv(J,G)}; zyr=function(v,J,G){G=G===void 0?v.VL():G;var K=K===void 0?v.withCredentials:K;var V={},Y=new URL(hyw(v));G&&(V.Authorization=G);v.sessionIndex&&(V["X-Goog-AuthUser"]=v.sessionIndex,Y.searchParams.set("authuser",v.sessionIndex));v.pageId&&(Object.defineProperty(V,"X-Goog-PageId",{value:v.pageId}),Y.searchParams.set("pageId",v.pageId));return{url:Y.toString(),body:J,fS:1,requestHeaders:V,requestType:"POST",withCredentials:K,timeoutMillis:v.timeoutMillis}}; Zy=function(v){v.Z.isFinal=!0;v.flush();v.Z.isFinal=!1}; d$U=function(v){nrm(v,function(J,G){J=new URL(J);J.searchParams.set("format","json");var K=!1;try{K=VK().navigator.sendBeacon(J.toString(),G.M$())}catch(V){}K||(v.oY=!1);return K})}; nrm=function(v,J){if(v.T.length!==0){var G=new URL(hyw(v));G.searchParams.delete("format");var K=v.VL();K&&G.searchParams.set("auth",K);G.searchParams.set("authuser",v.sessionIndex||"0");for(K=0;K<10&&v.T.length;++K){var V=v.T.slice(0,32),Y=v.Z.build(V,v.L,v.j,v.sU,v.dh,v.Ti);if(!J(G.toString(),Y)){++v.j;break}v.L=0;v.j=0;v.dh=0;v.Ti=0;v.T=v.T.slice(V.length)}v.X.enabled&&v.X.stop()}}; fI=function(){return"https://play.google.com/log?format=json&hasfast=true"}; XM=function(){this.JW=typeof AbortController!=="undefined"}; kt=function(v,J){g.X.call(this);this.logSource=v;this.sessionIndex=J;this.Pn="https://play.google.com/log?format=json&hasfast=true";this.X=null;this.L=!1;this.network=null;this.componentId="";this.T=this.sU=null;this.Z=!1;this.pageId=null}; s1w=function(v,J){v.X=J;return v}; Ryw=function(v,J){v.network=J;return v}; lC8=function(v,J){v.T=J}; TKm=function(v){v.Z=!0;return v}; cM=function(v,J,G,K,V,Y,r){v=v===void 0?-1:v;J=J===void 0?"":J;G=G===void 0?"":G;K=K===void 0?!1:K;V=V===void 0?"":V;g.X.call(this);this.logSource=v;this.componentId=J;Y?J=Y:(v=new kt(v,"0"),v.componentId=J,g.k(this,v),G!==""&&(v.Pn=G),K&&(v.L=!0),V&&s1w(v,V),r&&Ryw(v,r),J=v.build());this.T=J}; phf=function(v){this.T=v}; Nh=function(v,J,G){this.X=v;this.L=J;this.fields=G||[];this.T=new Map}; qKm=function(v){return v.fields.map(function(J){return J.fieldType})}; rAX=function(v){return v.fields.map(function(J){return J.fieldName})}; an=function(v,J){Nh.call(this,v,3,J)}; Ax=function(v,J){Nh.call(this,v,2,J)}; g.FM=function(v,J){this.type=v;this.currentTarget=this.target=J;this.defaultPrevented=this.X=!1}; HM=function(v,J){g.FM.call(this,v?v.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.T=null;v&&this.init(v,J)}; CI=function(v){return!(!v||!v[L0w])}; wh8=function(v,J,G,K,V){this.listener=v;this.proxy=null;this.src=J;this.type=G;this.capture=!!K;this.e3=V;this.key=++yjB;this.removed=this.PZ=!1}; bZ=function(v){v.removed=!0;v.listener=null;v.proxy=null;v.src=null;v.e3=null}; jC=function(v){this.src=v;this.listeners={};this.T=0}; g.ii=function(v,J){var G=J.type;G in v.listeners&&g.j5(v.listeners[G],J)&&(bZ(J),v.listeners[G].length==0&&(delete v.listeners[G],v.T--))}; $b=function(v,J,G,K){for(var V=0;V1)));r=r.next)V||(Y=r);V&&(G.T==0&&K==1?C0j(G,J):(Y?(K=Y,K.next==G.L&&(G.L=K),K.next=K.next.next):bo2(G),jzF(G,V,3,J)))}v.Z=null}else LQ(v,3,J)}; SC=function(v,J){v.X||v.T!=2&&v.T!=3||i_X(v);v.L?v.L.next=J:v.X=J;v.L=J}; $vr=function(v,J,G,K){var V=wQ(null,null,null);V.T=new g.yr(function(Y,r){V.Z=J?function(E){try{var e=J.call(K,E);Y(e)}catch(P){r(P)}}:Y; V.X=G?function(E){try{var e=G.call(K,E);e===void 0&&E instanceof ZJ?r(E):Y(e)}catch(P){r(P)}}:r}); V.T.Z=v;SC(v,V);return V.T}; LQ=function(v,J,G){v.T==0&&(v===G&&(J=3,G=new TypeError("Promise cannot resolve to itself")),v.T=1,HoU(G,v.pwY,v.ZJr,v)||(v.K=G,v.T=J,v.Z=null,i_X(v),J!=3||G instanceof ZJ||vut(v,G)))}; HoU=function(v,J,G,K){if(v instanceof g.yr)return W0r(v,J,G,K),!0;if(v)try{var V=!!v.$goog_Thenable}catch(r){V=!1}else V=!1;if(V)return v.then(J,G,K),!0;if(g.ML(v))try{var Y=v.then;if(typeof Y==="function")return JNj(v,Y,J,G,K),!0}catch(r){return G.call(K,r),!0}return!1}; JNj=function(v,J,G,K,V){function Y(e){E||(E=!0,K.call(V,e))} function r(e){E||(E=!0,G.call(V,e))} var E=!1;try{J.call(v,r,Y)}catch(e){Y(e)}}; i_X=function(v){v.j||(v.j=!0,g.dQ(v.A8,v))}; bo2=function(v){var J=null;v.X&&(J=v.X,v.X=J.next,J.next=null);v.X||(v.L=null);return J}; jzF=function(v,J,G,K){if(G==3&&J.X&&!J.L)for(;v&&v.J;v=v.Z)v.J=!1;if(J.T)J.T.Z=null,GN2(J,G,K);else try{J.L?J.Z.call(J.context):GN2(J,G,K)}catch(V){ous.call(null,V)}ucm(F0t,J)}; GN2=function(v,J,G){J==2?v.Z.call(v.context,G):v.X&&v.X.call(v.context,G)}; vut=function(v,J){v.J=!0;g.dQ(function(){v.J&&ous.call(null,J)})}; ZJ=function(v){to.call(this,v)}; g.ui=function(v,J){g.EF.call(this);this.LZ=v||1;this.K5=J||g.X2;this.X0=(0,g.bj)(this.HJH,this);this.Mb=g.$X()}; g.gQ=function(v,J,G){if(typeof v==="function")G&&(v=(0,g.bj)(v,G));else if(v&&typeof v.handleEvent=="function")v=(0,g.bj)(v.handleEvent,v);else throw Error("Invalid listener argument");return Number(J)>2147483647?-1:g.X2.setTimeout(v,J||0)}; XB=function(v,J){var G=null;return(new g.yr(function(K,V){G=g.gQ(function(){K(J)},v); G==-1&&V(Error("Failed to schedule timer."))})).pj(function(K){g.X2.clearTimeout(G); throw K;})}; g.kb=function(v){g.X.call(this);this.K=v;this.L=0;this.Z=100;this.J=!1;this.X=new Map;this.j=new Set;this.flushInterval=3E4;this.T=new g.ui(this.flushInterval);this.T.listen("tick",this.vM,!1,this);g.k(this,this.T)}; Kc2=function(v){v.T.enabled||v.T.start();v.L++;v.L>=v.Z&&v.vM()}; VG2=function(v,J){return v.j.has(J)?void 0:v.X.get(J)}; Ydm=function(v){for(var J=0;J=0){var Y=v[G].substring(0,K);V=v[G].substring(K+1)}else Y=v[G];J(Y,V?Kk(V):"")}}}; j7=function(v,J){if(!J)return v;var G=v.indexOf("#");G<0&&(G=v.length);var K=v.indexOf("?");if(K<0||K>G){K=G;var V=""}else V=v.substring(K+1,G);v=[v.slice(0,K),V,v.slice(G)];G=v[1];v[1]=J?G?G+"&"+J:J:G;return v[0]+(v[1]?"?"+v[1]:"")+v[2]}; i7=function(v,J,G){if(Array.isArray(J))for(var K=0;K=0&&JG)V=G;K+=J.length+1;return Kk(v.slice(K,V!==-1?V:0))}; of=function(v,J){for(var G=v.search(szU),K=0,V,Y=[];(V=dvL(v,K,J,G))>=0;)Y.push(v.substring(K,V)),K=Math.min(v.indexOf("&",V)+1||G,G);Y.push(v.slice(K));return Y.join("").replace(Rnw,"$1")}; l4B=function(v,J,G){return Ji(of(v,J),J,G)}; g.K2=function(v){g.EF.call(this);this.headers=new Map;this.Mr=v||null;this.Z=!1;this.T=null;this.U="";this.X=0;this.L="";this.J=this.dh=this.N=this.Ti=!1;this.oY=0;this.j=null;this.Ze="";this.K=!1}; lps=function(v,J,G,K,V,Y,r){var E=new g.K2;RXw.push(E);J&&E.listen("complete",J);E.Ud("ready",E.Qg);Y&&(E.oY=Math.max(0,Y));r&&(E.K=r);E.send(v,G,K,V)}; pRf=function(v,J){v.Z=!1;v.T&&(v.J=!0,v.T.abort(),v.J=!1);v.L=J;v.X=5;TdB(v);VX(v)}; TdB=function(v){v.Ti||(v.Ti=!0,v.dispatchEvent("complete"),v.dispatchEvent("error"))}; LxL=function(v){if(v.Z&&typeof Yl!="undefined")if(v.N&&g.r5(v)==4)setTimeout(v.iI.bind(v),0);else if(v.dispatchEvent("readystatechange"),v.isComplete()){v.getStatus();v.Z=!1;try{if(qM(v))v.dispatchEvent("complete"),v.dispatchEvent("success");else{v.X=6;try{var J=g.r5(v)>2?v.T.statusText:""}catch(G){J=""}v.L=J+" ["+v.getStatus()+"]";TdB(v)}}finally{VX(v)}}}; VX=function(v,J){if(v.T){v.j&&(clearTimeout(v.j),v.j=null);var G=v.T;v.T=null;J||v.dispatchEvent("ready");try{G.onreadystatechange=null}catch(K){}}}; qM=function(v){var J=v.getStatus();a:switch(J){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var G=!0;break a;default:G=!1}if(!G){if(J=J===0)v=g.Qr(1,String(v.U)),!v&&g.X2.self&&g.X2.self.location&&(v=g.X2.self.location.protocol.slice(0,-1)),J=!yqr.test(v?v.toLowerCase():"");G=J}return G}; g.r5=function(v){return v.T?v.T.readyState:0}; g.EZ=function(v){try{return v.T?v.T.responseText:""}catch(J){return""}}; g.e7=function(v){try{if(!v.T)return null;if("response"in v.T)return v.T.response;switch(v.Ze){case "":case "text":return v.T.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in v.T)return v.T.mozResponseArrayBuffer}return null}catch(J){return null}}; g.wRt=function(v){var J={};v=(v.T&&g.r5(v)>=2?v.T.getAllResponseHeaders()||"":"").split("\r\n");for(var G=0;G>1,J),kl(v,v.length>>1)]}; VAU=function(v){var J=g.n(K28(v,NM));v=J.next().value;J=J.next().value;return v.toString(16)+J.toString(16)}; Yom=function(v,J){var G=K28(J);v=new Uint32Array(v.buffer);J=v[0];var K=g.n(G);G=K.next().value;K=K.next().value;for(var V=1;V>>8|r<<24,r+=Y|0,r^=E+38293,Y=Y<<3|Y>>>29,Y^=r,e=e>>>8|e<<24,e+=E|0,e^=P+38293,E=E<<3|E>>>29,E^=e;Y=[Y,r];v[V]^=Y[0];V+1=G?(globalThis.sessionStorage.removeItem(v),["e"]):["a",new Uint8Array(K.buffer,J+4)]}; af=function(v,J,G){G=G===void 0?[]:G;this.maxItems=v;this.T=J===void 0?0:J;this.X=G}; EtB=function(v){var J=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!J)return new af(v);var G=J.split(",");if(G.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new af(v);J=G.slice(1);J.length===1&&J[0]===""&&(J=[]);G=Number(G[0]);return isNaN(G)||G<0||G>J.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new af(v)):new af(v,G,J)}; eMw=function(v,J){this.logger=J;try{var G=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(K){G=!1}G&&(this.index=EtB(v))}; PZ2=function(v,J,G,K,V){var Y=v.index?hi(v.logger,function(){return rxs(v.index,VAU(J),G,K,V)},"W"):"u"; v.logger.V6(Y)}; Dhj=function(v,J,G){var K=g.n(v.index?hi(v.logger,function(){return qos(VAU(J),G)},"R"):["u"]),V=K.next().value; K=K.next().value;v.logger.Wq(V);return K}; Iym=function(v){function J(){G-=K;G-=V;G^=V>>>13;K-=V;K-=G;K^=G<<8;V-=G;V-=K;V^=K>>>13;G-=K;G-=V;G^=V>>>12;K-=V;K-=G;K^=G<<16;V-=G;V-=K;V^=K>>>5;G-=K;G-=V;G^=V>>>3;K-=V;K-=G;K^=G<<10;V-=G;V-=K;V^=K>>>15} v=tAm(v);for(var G=2654435769,K=2654435769,V=314159265,Y=v.length,r=Y,E=0;r>=12;r-=12,E+=12)G+=Ai(v,E),K+=Ai(v,E+4),V+=Ai(v,E+8),J();V+=Y;switch(r){case 11:V+=v[E+10]<<24;case 10:V+=v[E+9]<<16;case 9:V+=v[E+8]<<8;case 8:K+=v[E+7]<<24;case 7:K+=v[E+6]<<16;case 6:K+=v[E+5]<<8;case 5:K+=v[E+4];case 4:G+=v[E+3]<<24;case 3:G+=v[E+2]<<16;case 2:G+=v[E+1]<<8;case 1:G+=v[E+0]}J();return BA8.toString(V)}; tAm=function(v){for(var J=[],G=0;G>7,v.error.code]);K.set(G,4);return K}; iL=function(v,J,G){F1.call(this,v);this.L=J;this.clientState=G;this.T="S";this.Z="q"}; jT=function(v){return globalThis.TextEncoder?(new TextEncoder).encode(v):g.nG(v)}; nts=function(v,J,G){return v instanceof ZD?Hkm(v,G,J,1):v.FW(G)}; $a=function(v,J,G){g.X.call(this);var K=this;this.logger=v;this.onError=J;this.state=G;this.K=0;this.X=void 0;this.addOnDisposeCallback(function(){K.T&&(K.T.dispose(),K.T=void 0)})}; dhF=function(v,J){J=J instanceof GA?J:new GA(5,"TVD:error",J);return v.reportError(J)}; vu=function(v,J,G){try{if(v.Sl())throw new GA(21,"BNT:disposed");if(!v.T&&v.X)throw v.X;var K,V;return(V=(K=snm(v,J,G))!=null?K:RMX(v,J,G))!=null?V:lys(v,J,G)}catch(Y){if(!J.Nh)throw dhF(v,Y);return TAr(v,G,Y)}}; snm=function(v,J,G){var K;return(K=v.T)==null?void 0:MM(K,function(){return JC(v,J)},G,function(V){var Y; if(v.T instanceof QX&&((Y=J.FQ)==null?0:Y.lq))try{var r;(r=v.cache)==null||PZ2(r,JC(v,J),V,J.FQ.kM,v.U-120)}catch(E){v.reportError(new GA(24,"ELX:write",E))}})}; RMX=function(v,J,G){var K;if((K=J.FQ)!=null&&K.U3)try{var V,Y=(V=v.cache)==null?void 0:Dhj(V,JC(v,J),J.FQ.kM);return Y?G?hi(v.logger,function(){return g.hE(Y,2)},"a"):Y:void 0}catch(r){v.reportError(new GA(23,"RXO:read",r))}}; lys=function(v,J,G){var K={stack:[],error:void 0,hasError:!1};try{if(!J.hc)throw new GA(29,"SDF:notready");return MM(htw(K,new iL(v.logger,v.K,v.state)),function(){return JC(v,J)},G)}catch(V){K.error=V,K.hasError=!0}finally{ztj(K)}}; TAr=function(v,J,G){var K={stack:[],error:void 0,hasError:!1};try{var V=dhF(v,G);return MM(htw(K,new b7(v.logger,V)),function(){return[]},J)}catch(Y){K.error=Y,K.hasError=!0}finally{ztj(K)}}; JC=function(v,J){return J.M7?J.M7:J.pZ?hi(v.logger,function(){return J.M7=jT(J.pZ)},"c"):[]}; oW=function(v){var J;$a.call(this,v.EN.Mf(),(J=v.onError)!=null?J:function(){},2); var G=this;this.J=0;this.L=new g.w5;this.Z=!1;this.EN=v.EN;this.hS=v.hS;this.DJ=Object.assign({},pMj,v.DJ||{});this.Ek=v.Ek||!1;if(L2t(v)){var K=this.EN;this.j=function(){return bkw(K).catch(function(r){r=G.reportError(new GA(G.Z?20:32,"TRG:Disposed",r));G.X=r;var E;(E=G.T)==null||E.dispose();G.T=void 0;G.L.reject(r)})}; jnw(K,function(){return void GO(G)}); K.U===2&&GO(this)}else this.j=v.KLH,GO(this);var V=this.logger.share();V.HE("o");var Y=new Bt(V,"o");this.L.promise.then(function(){Y.done();V.wj();V.dispose()},function(){return void V.dispose()}); this.addOnDisposeCallback(function(){G.Z||(G.X?G.logger.wj():(G.X=G.reportError(new GA(32,"TNP:Disposed")),G.logger.wj(),G.L.reject(G.X)))}); g.k(this,this.logger)}; yx2=function(v,J){if(!(J instanceof GA))if(J instanceof cp){var G=Error(J.toString());G.stack=J.stack;J=new GA(11,"EBH:Error",G)}else J=new GA(12,"BSO:Unknown",J);return v.reportError(J)}; GO=function(v){var J,G,K,V,Y,r,E,e,P,D,t,B,I,h,R;return g.m(function(T){switch(T.T){case 1:J=void 0;v.J++;G=new g.w5;v.EN instanceof u7&&v.EN.L.push(G.promise);if(!v.Ek){T.sB(2);break}K=new g.w5;setTimeout(function(){return void K.resolve()}); return g.U(T,K.promise,2);case 2:return V=v.logger.share(),g.nf(T,4,5),v.state=5,Y={},r=[],g.U(T,X1(v.EN.snapshot({pZ:Y,Y4:r}),v.DJ.mIi,function(){return Promise.reject(new GA(15,"MDA:Timeout"))}),7); case 7:E=T.X;if(v.Sl())throw new GA(v.Z?20:32,"MDA:Disposed");e=r[0];v.state=6;return g.U(T,X1(nts(v.hS,V,E),v.DJ.MJ,function(){return Promise.reject(new GA(10,"BWB:Timeout"))}),8); case 8:P=T.X;if(v.Sl())throw new GA(v.Z?20:32,"BWB:Disposed");v.state=7;J=hi(V,function(){var O=wMU(v,P,G,e);O.X.promise.then(function(){return void v.j()}).catch(function(){}); return O},"i"); case 5:g.TX(T);V.dispose();g.Lf(T,6);break;case 4:D=g.lj(T);(t=J)==null||t.dispose();if(!v.X){B=yx2(v,D);G.resolve();var L;if(L=v.EN instanceof u7&&v.J<2)a:if(D instanceof GA)L=D.code!==32&&D.code!==20&&D.code!==10;else{if(D instanceof cp)switch(D.code){case 2:case 13:case 14:case 4:break;default:L=!1;break a}L=!0}if(L)return I=(1+Math.random()*.25)*(v.Z?6E4:1E3),h=setTimeout(function(){return void v.j()},I),v.addOnDisposeCallback(function(){return void clearTimeout(h)}),T.return(); v.X=B}V.nZ(v.Z?13:14);v.L.reject(v.X);return T.return();case 6:v.state=8,v.J=0,(R=v.T)==null||R.dispose(),v.T=J,v.Z=!0,v.L.resolve(),g.zX(T)}})}; wMU=function(v,J,G,K){var V=no(J,2)*1E3;if(V<=0)throw new GA(31,"TTM:Invalid");if(dK(J,4))return new C2(v.logger,dK(J,4),V);if(!no(J,3))return new Wt(v.logger,p8(G7(J,1)),V);if(!K)throw new GA(4,"PMD:Undefined");K=K(p8(G7(J,1)));if(!(K instanceof Function))throw new GA(16,"APF:Failed");v.U=Math.floor((Date.now()+V)/1E3);v=new QX(v.logger,K,no(J,3),V);v.addOnDisposeCallback(function(){return void G.resolve()}); return v}; Ku=function(){var v=0,J;return function(G){J||(J=new zj);var K=new iL(J,v,1),V=MM(K,function(){return jT(G)},!0); K.dispose();v++;return V}}; Vz=function(v){v=kO(v);Z6(this);this.ud=v}; OIB=function(v,J,G){this.WR=v;this.H6=J;this.metadata=G}; Ya=function(v,J){J=J===void 0?{}:J;this.WT4=v;this.metadata=J;this.status=null}; rW=function(v,J,G,K,V){this.name=v;this.methodType="unary";this.requestType=J;this.responseType=G;this.T=K;this.X=V}; qE=function(v){v=kO(v);Z6(this);this.ud=v}; En=function(v){v=kO(v);Z6(this);this.ud=v}; eT=function(v){v=kO(v);Z6(this);this.ud=v}; Pu=function(v,J){this.K=v.lZt;this.U=J;this.T=v.xhr;this.Z=[];this.J=[];this.j=[];this.L=[];this.X=[];this.K&&UhB(this)}; fy8=function(v,J){var G=new xhX;g.JG(v.T,"complete",function(){if(qM(v.T)){var K=g.EZ(v.T);if(J&&v.T.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");K=atob(K)}try{var V=v.U(K)}catch(E){DZ(v,tC(new cp(13,"Error when deserializing response data; error: "+E+(", response: "+K)),G));return}K=rNj(v.T.getStatus());Bu(v,IW(v));K==0?mhm(v,V):DZ(v,tC(new cp(K,"Xhr succeeded but the status code is not 200"),G))}else{K=g.EZ(v.T);V=IW(v);if(K){var Y=SoU(v, K);K=Y.code;var r=Y.details;Y=Y.metadata}else K=2,r="Rpc failed due to xhr error. uri: "+String(v.T.U)+", error code: "+v.T.X+", error: "+v.T.getLastError(),Y=V;Bu(v,V);DZ(v,tC(new cp(K,r,Y),G))}})}; UhB=function(v){v.K.rj("data",function(J){if("1"in J){var G=J["1"];try{var K=v.U(G)}catch(V){DZ(v,new cp(13,"Error when deserializing response data; error: "+V+(", response: "+G)))}K&&mhm(v,K)}if("2"in J)for(J=SoU(v,J["2"]),G=0;G-1&&v.splice(J,1)}; mhm=function(v,J){for(var G=0;G>4&15).toString(16)+(v&15).toString(16)}; wW=function(v,J){this.X=this.T=null;this.Z=v||null;this.L=!!J}; mV=function(v){v.T||(v.T=new Map,v.X=0,v.Z&&bi(v.Z,function(J,G){v.add(Kk(J),G)}))}; cxt=function(v,J){mV(v);J=ST(v,J);return v.T.has(J)}; g.NAs=function(v,J,G){v.remove(J);G.length>0&&(v.Z=null,v.T.set(ST(v,J),g.vW(G)),v.X=v.X+G.length)}; ST=function(v,J){J=String(J);v.L&&(J=J.toLowerCase());return J}; gtB=function(v,J){J&&!v.L&&(mV(v),v.Z=null,v.T.forEach(function(G,K){var V=K.toLowerCase();K!=V&&(this.remove(K),g.NAs(this,V,G))},v)); v.L=J}; g.ayF=function(v){var J="";g.y2(v,function(G,K){J+=K;J+=":";J+=G;J+="\r\n"}); return J}; g.fu=function(v,J,G){if(g.Xb(G))return v;G=g.ayF(G);if(typeof v==="string")return Ji(v,g.o7(J),G);g.Un(v,J,G);return v}; g.ZZ=function(v){g.X.call(this);this.X=v;this.T={}}; Ax8=function(v,J,G,K,V,Y){if(Array.isArray(G))for(var r=0;r0&&(J[V]=K)},v); return J}; DC2=function(v){v=EX(v);var J=[];g.y2(v,function(G,K){K in Object.prototype||typeof G!="undefined"&&J.push([K,":",G].join(""))}); return J}; BQm=function(v){YK(v,"od",tC2);YK(v,"opac",ez).T=!0;YK(v,"sbeos",ez).T=!0;YK(v,"prf",ez).T=!0;YK(v,"mwt",ez).T=!0;YK(v,"iogeo",ez)}; IJ8=function(){this.T=this.Rr=null}; P_=function(){}; tI=function(){if(!DQ())throw Error();}; DQ=function(){return!(!B_||!B_.performance)}; Il=function(v){return v?v.passive&&hbB()?v:v.capture||!1:!1}; hI=function(v,J,G,K){return v.addEventListener?(v.addEventListener(J,G,Il(K)),!0):!1}; zU=function(v){if(v.prerendering)return 3;var J;return(J={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[v.visibilityState||v.webkitVisibilityState||v.mozVisibilityState||""])!=null?J:0}; zbw=function(){}; nbj=function(){return(O8||U8)&&xX?xX.mobile:!nO()&&(Sm("iPod")||Sm("iPhone")||Sm("Android")||Sm("IEMobile"))}; nO=function(){return(O8||U8)&&xX?!xX.mobile&&(Sm("iPad")||Sm("Android")||Sm("Silk")):Sm("iPad")||Sm("Android")&&!Sm("Mobile")||Sm("Silk")}; dn=function(v){try{return!!v&&v.location.href!=null&&oX2(v,"foo")}catch(J){return!1}}; sX=function(v,J){if(v)for(var G in v)Object.prototype.hasOwnProperty.call(v,G)&&J(v[G],G,v)}; sp8=function(){var v=[];sX(dCm,function(J){v.push(J)}); return v}; Rbj=function(v){var J,G;return(G=(J=/https?:\/\/[^\/]+/.exec(v))==null?void 0:J[0])!=null?G:""}; ppU=function(){var v=lJs("IFRAME"),J={};g.PW(TQt(),function(G){v.sandbox&&v.sandbox.supports&&v.sandbox.supports(G)&&(J[G]=!0)}); return J}; lJs=function(v,J){J=J===void 0?document:J;return J.createElement(String(v).toLowerCase())}; LK8=function(v){for(var J=v;v&&v!=v.parent;)v=v.parent,dn(v)&&(J=v);return J}; UCf=function(v){v=v||Rl();for(var J=new yGm(g.X2.location.href,!1),G=null,K=v.length-1,V=K;V>=0;--V){var Y=v[V];!G&&wpr.test(Y.url)&&(G=Y);if(Y.url&&!Y.T){J=Y;break}}V=null;Y=v.length&&v[K].url;J.depth!==0&&Y&&(V=v[K]);return new OQm(J,V,G)}; Rl=function(){var v=g.X2,J=[],G=null;do{var K=v;if(dn(K)){var V=K.location.href;G=K.document&&K.document.referrer||null}else V=G,G=null;J.push(new yGm(V||""));try{v=K.parent}catch(Y){v=null}}while(v&&K!==v);K=0;for(v=J.length-1;K<=v;++K)J[K].depth=v-K;K=g.X2;if(K.location&&K.location.ancestorOrigins&&K.location.ancestorOrigins.length===J.length-1)for(v=1;vJ&&(J=G.length);return 3997-J-v.Z.length-1}; LO=function(v,J){this.T=v;this.depth=J}; fJ8=function(){function v(E,e){return E==null?e:E} var J=Rl(),G=Math.max(J.length-1,0),K=UCf(J);J=K.T;var V=K.X,Y=K.Z,r=[];Y&&r.push(new LO([Y.url,Y.T?2:0],v(Y.depth,1)));V&&V!=Y&&r.push(new LO([V.url,2],0));J.url&&J!=Y&&r.push(new LO([J.url,0],v(J.depth,G)));K=g.yn(r,function(E,e){return r.slice(0,r.length-e)}); !J.url||(Y||V)&&J!=Y||(V=Rbj(J.url))&&K.push([new LO([V,1],v(J.depth,G))]);K.push([]);return g.yn(K,function(E){return SFr(G,E)})}; SFr=function(v,J){g.wn(J,function(V){return V.depth>=0}); var G=OX(J,function(V,Y){return Math.max(V,Y.depth)},-1),K=Jor(G+2); K[0]=v;g.PW(J,function(V){return K[V.depth+1]=V.T}); return K}; ZQf=function(){var v=v===void 0?fJ8():v;return v.map(function(J){return pO(J)})}; uBw=function(v){var J=!1;J=J===void 0?!1:J;B_.google_image_requests||(B_.google_image_requests=[]);var G=lJs("IMG",B_.document);J&&(G.attributionSrc="");G.src=v;B_.google_image_requests.push(G)}; UX=function(v){var J="IK";if(v.IK&&v.hasOwnProperty(J))return v.IK;var G=new v;v.IK=G;v.hasOwnProperty(J);return G}; xK=function(){this.X=new zbw;this.T=DQ()?new tI:new P_}; gb8=function(){m4();var v=B_.document;return!!(v&&v.body&&v.body.getBoundingClientRect&&typeof B_.setInterval==="function"&&typeof B_.clearInterval==="function"&&typeof B_.setTimeout==="function"&&typeof B_.clearTimeout==="function")}; Xp2=function(){m4();return ZQf()}; kDL=function(){}; m4=function(){var v=UX(kDL);if(!v.T){if(!B_)throw Error("Context has not been set and window is undefined.");v.T=UX(xK)}return v.T}; Sz=function(v){v=kO(v);Z6(this);this.ud=v}; cGt=function(v){this.Z=v;this.T=-1;this.X=this.L=0}; fO=function(v,J){return function(){var G=g.Om.apply(0,arguments);if(v.T>-1)return J.apply(null,g.l(G));try{return v.T=v.Z.T.now(),J.apply(null,g.l(G))}finally{v.L+=v.Z.T.now()-v.T,v.T=-1,v.X+=1}}}; NQw=function(v,J){this.X=v;this.Z=J;this.T=new cGt(v)}; aJm=function(){this.T={}}; FKm=function(){var v=ZQ().flags,J=AG2;v=v.T[J.key];if(J.valueType==="proto"){try{var G=JSON.parse(v);if(Array.isArray(G))return G}catch(K){}return J.defaultValue}return typeof v===typeof J.defaultValue?v:J.defaultValue}; WKm=function(){this.Z=void 0;this.X=this.j=0;this.J=-1;this.Fu=new Vn;YK(this.Fu,"mv",HQm).T=!0;YK(this.Fu,"omid",ez);YK(this.Fu,"epoh",ez).T=!0;YK(this.Fu,"epph",ez).T=!0;YK(this.Fu,"umt",ez).T=!0;YK(this.Fu,"phel",ez).T=!0;YK(this.Fu,"phell",ez).T=!0;YK(this.Fu,"oseid",MCX).T=!0;var v=this.Fu;v.T.sloi||(v.T.sloi=new ol);v.T.sloi.T=!0;YK(this.Fu,"mm",uq);YK(this.Fu,"ovms",Qp8).T=!0;YK(this.Fu,"xdi",ez).T=!0;YK(this.Fu,"amp",ez).T=!0;YK(this.Fu,"prf",ez).T=!0;YK(this.Fu,"gtx",ez).T=!0;YK(this.Fu, "mvp_lv",ez).T=!0;YK(this.Fu,"ssmol",ez).T=!0;YK(this.Fu,"fmd",ez).T=!0;YK(this.Fu,"gen204simple",ez);this.T=new NQw(m4(),this.Fu);this.L=!1;this.flags=new aJm}; ZQ=function(){return UX(WKm)}; CiX=function(v,J,G,K){if(Math.random()<(K||v.T))try{if(G instanceof lq)var V=G;else V=new lq,sX(G,function(r,E){var e=V,P=e.L++;r=TU(E,r);e.T.push(P);e.X[P]=r}); var Y=V.Dm(v.X,"pagead2.googlesyndication.com","/pagead/gen_204?id="+J+"&");Y&&(m4(),uBw(Y))}catch(r){}}; bQL=function(v,J,G){G=G===void 0?{}:G;this.error=v;this.meta=G;this.context=J.context;this.msg=J.message||"";this.id=J.id||"jserror"}; jfm=function(){var v=v===void 0?g.X2:v;return(v=v.performance)&&v.now&&v.timing?Math.floor(v.now()+v.timing.navigationStart):g.$X()}; i22=function(){var v=v===void 0?g.X2:v;return(v=v.performance)&&v.now?v.now():null}; $MX=function(v,J,G){this.label=v;this.type=J;this.value=G;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; X_=function(){var v=window;this.events=[];this.X=v||g.X2;var J=null;v&&(v.google_js_reporting_queue=v.google_js_reporting_queue||[],this.events=v.google_js_reporting_queue,J=v.google_measure_js_timing);this.T=gn()||(J!=null?J:Math.random()<1)}; vlw=function(v){v&&kK&&gn()&&(kK.clearMarks("goog_"+v.label+"_"+v.uniqueId+"_start"),kK.clearMarks("goog_"+v.label+"_"+v.uniqueId+"_end"))}; JiF=function(){var v=c_;this.T=Nf;this.Az="jserror";this.jr=!0;this.d3=null;this.X=this.Is;this.PO=v===void 0?null:v}; Gjr=function(v,J,G){var K=al;return fO(ZQ().T.T,function(){try{if(K.PO&&K.PO.T){var V=K.PO.start(v.toString(),3);var Y=J();K.PO.end(V)}else Y=J()}catch(E){var r=K.jr;try{vlw(V),r=K.X(v,new AI(F_(E)),void 0,G)}catch(e){K.Is(217,e)}if(!r)throw E;}return Y})()}; H_=function(v,J,G,K){return fO(ZQ().T.T,function(){var V=g.Om.apply(0,arguments);return Gjr(v,function(){return J.apply(G,V)},K)})}; F_=function(v){var J=v.toString();v.name&&J.indexOf(v.name)==-1&&(J+=": "+v.name);v.message&&J.indexOf(v.message)==-1&&(J+=": "+v.message);if(v.stack)a:{v=v.stack;var G=J;try{v.indexOf(G)==-1&&(v=G+"\n"+v);for(var K;v!=K;)K=v,v=v.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");J=v.replace(/\n */g,"\n");break a}catch(V){J=G;break a}J=void 0}return J}; AI=function(v){bQL.call(this,Error(v),{message:v})}; olm=function(){B_&&typeof B_.google_measure_js_timing!="undefined"&&(B_.google_measure_js_timing||c_.disable())}; KRm=function(v){al.d3=function(J){g.PW(v,function(G){G(J)})}}; V7U=function(v,J){return Gjr(v,J)}; Mf=function(v,J){return H_(v,J)}; Qn=function(v,J,G,K){al.Is(v,J,G,K)}; W_=function(){return Date.now()-YZr}; riX=function(){var v=ZQ().Z,J=CO>=0?W_()-CO:-1,G=bq?W_()-jp:-1,K=it>=0?W_()-it:-1;if(v==947190542)return 100;if(v==79463069)return 200;v=[2E3,4E3];var V=[250,500,1E3];Qn(637,Error(),.001);var Y=J;G!=-1&&G1500&&K<4E3?500:r}; $3=function(v,J,G,K){this.top=v;this.right=J;this.bottom=G;this.left=K}; vj=function(v){return v.right-v.left}; J4=function(v,J){return v==J?!0:v&&J?v.top==J.top&&v.right==J.right&&v.bottom==J.bottom&&v.left==J.left:!1}; GK=function(v,J,G){J instanceof g.R7?(v.left+=J.x,v.right+=J.x,v.top+=J.y,v.bottom+=J.y):(v.left+=J,v.right+=J,typeof G==="number"&&(v.top+=G,v.bottom+=G));return v}; oY=function(v,J,G){var K=new $3(0,0,0,0);this.time=v;this.volume=null;this.Z=J;this.T=K;this.X=G}; KL=function(v,J,G,K,V,Y,r,E){this.L=v;this.K=J;this.Z=G;this.j=K;this.T=V;this.J=Y;this.X=r;this.U=E}; Elw=function(v){var J=v!==v.top,G=v.top===LK8(v),K=-1,V=0;if(J&&G&&v.top.mraid){K=3;var Y=v.top.mraid}else K=(Y=v.mraid)?J?G?2:1:0:-1;Y&&(Y.IS_GMA_SDK||(V=2),cA8(qZf,function(r){return typeof Y[r]==="function"})||(V=1)); return{kK:Y,compatibility:V,CpU:K}}; epF=function(){var v=window.document;return v&&typeof v.elementFromPoint==="function"}; P7m=function(v,J,G){if(v&&J!==null&&J!=J.top){if(!J.top)return new g.Tx(-12245933,-12245933);J=J.top}try{return(G===void 0?0:G)?(new g.Tx(J.innerWidth,J.innerHeight)).round():Jjs(J||window).round()}catch(K){return new g.Tx(-12245933,-12245933)}}; VM=function(v,J,G){try{if(v){if(!J.top)return new $3(-12245933,-12245933,-12245933,-12245933);J=J.top}var K=P7m(v,J,G),V=K.height,Y=K.width;if(Y===-12245933)return new $3(Y,Y,Y,Y);var r=orw(jA(J.document).T),E=r.x,e=r.y;return new $3(e,E+Y,e+V,E)}catch(P){return new $3(-12245933,-12245933,-12245933,-12245933)}}; g.Y3=function(v,J,G,K){this.left=v;this.top=J;this.width=G;this.height=K}; rS=function(v,J){return v==J?!0:v&&J?v.left==J.left&&v.width==J.width&&v.top==J.top&&v.height==J.height:!1}; g.ep=function(v,J,G){if(typeof J==="string")(J=qK(v,J))&&(v.style[J]=G);else for(var K in J){G=v;var V=J[K],Y=qK(G,K);Y&&(G.style[Y]=V)}}; qK=function(v,J){var G=DMw[J];if(!G){var K=SKm(J);G=K;v.style[K]===void 0&&(K=(g.KI?"Webkit":Dt?"Moz":null)+ZFf(K),v.style[K]!==void 0&&(G=K));DMw[J]=G}return G}; g.t4=function(v,J){var G=v.style[SKm(J)];return typeof G!=="undefined"?G:v.style[qK(v,J)]||""}; Bj=function(v,J){var G=bA(v);return G.defaultView&&G.defaultView.getComputedStyle&&(v=G.defaultView.getComputedStyle(v,null))?v[J]||v.getPropertyValue(J)||"":""}; IY=function(v,J){return Bj(v,J)||(v.currentStyle?v.currentStyle[J]:null)||v.style&&v.style[J]}; g.zK=function(v,J,G){if(J instanceof g.R7){var K=J.x;J=J.y}else K=J,J=G;v.style.left=g.h4(K,!1);v.style.top=g.h4(J,!1)}; nL=function(v){try{return v.getBoundingClientRect()}catch(J){return{left:0,top:0,right:0,bottom:0}}}; t7U=function(v){var J=bA(v),G=IY(v,"position"),K=G=="fixed"||G=="absolute";for(v=v.parentNode;v&&v!=J;v=v.parentNode)if(v.nodeType==11&&v.host&&(v=v.host),G=IY(v,"position"),K=K&&G=="static"&&v!=J.documentElement&&v!=J.body,!K&&(v.scrollWidth>v.clientWidth||v.scrollHeight>v.clientHeight||G=="fixed"||G=="absolute"||G=="relative"))return v;return null}; g.dS=function(v){var J=bA(v),G=new g.R7(0,0);if(v==(J?bA(J):document).documentElement)return G;v=nL(v);J=orw(jA(J).T);G.x=v.left+J.x;G.y=v.top+J.y;return G}; ID2=function(v,J){var G=new g.R7(0,0),K=VK(bA(v));if(!oX2(K,"parent"))return G;do{var V=K==J?g.dS(v):B5U(v);G.x+=V.x;G.y+=V.y}while(K&&K!=J&&K!=K.parent&&(v=K.frameElement)&&(K=K.parent));return G}; g.sG=function(v,J){v=hpU(v);J=hpU(J);return new g.R7(v.x-J.x,v.y-J.y)}; B5U=function(v){v=nL(v);return new g.R7(v.left,v.top)}; hpU=function(v){if(v.nodeType==1)return B5U(v);v=v.changedTouches?v.changedTouches[0]:v;return new g.R7(v.clientX,v.clientY)}; g.RY=function(v,J,G){if(J instanceof g.Tx)G=J.height,J=J.width;else if(G==void 0)throw Error("missing height argument");v.style.width=g.h4(J,!0);v.style.height=g.h4(G,!0)}; g.h4=function(v,J){typeof v=="number"&&(v=(J?Math.round(v):v)+"px");return v}; g.lt=function(v){var J=zpw;if(IY(v,"display")!="none")return J(v);var G=v.style,K=G.display,V=G.visibility,Y=G.position;G.visibility="hidden";G.position="absolute";G.display="inline";v=J(v);G.display=K;G.position=Y;G.visibility=V;return v}; zpw=function(v){var J=v.offsetWidth,G=v.offsetHeight,K=g.KI&&!J&&!G;return(J===void 0||K)&&v.getBoundingClientRect?(v=nL(v),new g.Tx(v.right-v.left,v.bottom-v.top)):new g.Tx(J,G)}; g.TK=function(v,J){v.style.display=J?"":"none"}; pL=function(v,J){J=Math.pow(10,J);return Math.floor(v*J)/J}; nlr=function(v){return new $3(v.top,v.right,v.bottom,v.left)}; dMf=function(v){var J=v.top||0,G=v.left||0;return new $3(J,G+(v.width||0),J+(v.height||0),G)}; LL=function(v){return v!=null&&v>=0&&v<=1}; sfs=function(){var v=g.wT();return v?yM("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 TA(v,J)})||TA(v,"OMI/")&&!TA(v,"XiaoMi/")?!0:TA(v,"Presto")&&TA(v,"Linux")&&!TA(v,"X11")&&!TA(v,"Android")&&!TA(v,"Mobi"):!1}; Rp8=function(){this.Z=!dn(B_.top);this.isMobileDevice=nO()||nbj();var v=Rl();this.domain=v.length>0&&v[v.length-1]!=null&&v[v.length-1].url!=null?g.Wp(v[v.length-1].url)||"":"";this.T=new $3(0,0,0,0);this.L=new g.Tx(0,0);this.J=new g.Tx(0,0);this.K=new $3(0,0,0,0);this.frameOffset=new g.R7(0,0);this.j=0;this.U=!1;this.X=!(!B_||!Elw(B_).kK);this.update(B_)}; lDj=function(v,J){J&&J.screen&&(v.L=new g.Tx(J.screen.width,J.screen.height))}; T5B=function(v,J){a:{var G=v.T?new g.Tx(vj(v.T),v.T.getHeight()):new g.Tx(0,0);J=J===void 0?B_:J;J!==null&&J!=J.top&&(J=J.top);var K=0,V=0;try{var Y=J.document,r=Y.body,E=Y.documentElement;if(Y.compatMode=="CSS1Compat"&&E.scrollHeight)K=E.scrollHeight!=G.height?E.scrollHeight:E.offsetHeight,V=E.scrollWidth!=G.width?E.scrollWidth:E.offsetWidth;else{var e=E.scrollHeight,P=E.scrollWidth,D=E.offsetHeight,t=E.offsetWidth;E.clientHeight!=D&&(e=r.scrollHeight,P=r.scrollWidth,D=r.offsetHeight,t=r.offsetWidth); e>G.height?e>D?(K=e,V=P):(K=D,V=t):e0||v.U)return!0;v=m4().X.isVisible();var J=zU(OG)===0;return v||J}; wS=function(){return UX(Rp8)}; Zt=function(v){this.Z=v;this.X=0;this.T=null}; ut=function(v,J,G){this.Z=v;this.jl=G===void 0?"na":G;this.J=[];this.isInitialized=!1;this.L=new oY(-1,!0,this);this.T=this;this.U=J;this.oY=this.N=!1;this.Mr="uk";this.Ze=!1;this.j=!0}; gS=function(v,J){g.WN(v.J,J)||(v.J.push(J),J.I5(v.T),J.ZA(v.L),J.nO()&&(v.N=!0))}; pts=function(v){v=v.T;v.Jr();v.jd();var J=wS();J.K=VM(!1,v.Z,J.isMobileDevice);T5B(wS(),v.Z);v.L.T=v.Hu()}; LRs=function(v){v.N=v.J.length?yM(v.J,function(J){return J.nO()}):!1}; yif=function(v){var J=g.vW(v.J);g.PW(J,function(G){G.ZA(v.L)})}; XK=function(v){var J=g.vW(v.J);g.PW(J,function(G){G.I5(v.T)}); v.T!=v||yif(v)}; k3=function(v,J,G,K){this.element=v;this.T=new $3(0,0,0,0);this.Z=null;this.j=new $3(0,0,0,0);this.X=J;this.Fu=G;this.Ze=K;this.dh=!1;this.timestamp=-1;this.N=new KL(J.L,this.element,this.T,new $3(0,0,0,0),0,0,W_(),0);this.J=void 0}; wtX=function(v,J){return v.J?new $3(Math.max(J.top+v.J.top,J.top),Math.min(J.left+v.J.right,J.right),Math.min(J.top+v.J.bottom,J.bottom),Math.max(J.left+v.J.left,J.left)):J.clone()}; cj=function(v){this.J=!1;this.T=v;this.L=function(){}}; O2f=function(v,J,G){this.Z=G===void 0?0:G;this.X=v;this.T=J==null?"":J}; UMm=function(v){switch(Math.trunc(v.Z)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; xM8=function(v,J){return v.ZJ.Z?!1:v.XJ.X?!1:typeof v.Ttypeof J.T?!1:v.T0?K[G]-K[G-1]:K[G]})}; jd=function(){this.X=new Hj;this.jl=this.YB=0;this.RY=new FK;this.Ti=this.K=-1;this.WH=1E3;this.Nr=new Hj([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Mr=this.dh=-1}; iI=function(v,J){return N5m(v.X,J===void 0?!0:J)}; $D=function(v,J,G,K){var V=V===void 0?!1:V;G=H_(K,G);hI(v,J,G,{capture:V})}; JU=function(v,J){J=vV(J);return J===0?0:vV(v)/J}; vV=function(v){return Math.max(v.bottom-v.top,0)*Math.max(v.right-v.left,0)}; FRL=function(v,J){if(!v||!J)return!1;for(var G=0;v!==null&&G++<100;){if(v===J)return!0;try{if(v=v.parentElement||v){var K=bA(v),V=K&&VK(K),Y=V&&V.frameElement;Y&&(v=Y)}}catch(r){break}}return!1}; H2w=function(v,J,G){if(!v||!J)return!1;J=GK(v.clone(),-J.left,-J.top);v=(J.left+J.right)/2;J=(J.top+J.bottom)/2;dn(window.top)&&window.top&&window.top.document&&(window=window.top);if(!epF())return!1;v=window.document.elementFromPoint(v,J);if(!v)return!1;J=(J=(J=bA(G))&&J.defaultView&&J.defaultView.frameElement)&&FRL(J,v);var K=v===G;v=!K&&v&&hx(v,function(V){return V===G}); return!(J||K||v)}; M7f=function(v,J,G,K){return wS().Z?!1:vj(v)<=0||v.getHeight()<=0?!0:G&&K?V7U(208,function(){return H2w(v,J,G)}):!1}; G2=function(v,J,G){g.X.call(this);this.position=Qfr.clone();this.bb=this.a9();this.Rs=-2;this.timeCreated=Date.now();this.TW=-1;this.N0=J;this.r4=null;this.dC=!1;this.kT=null;this.opacity=-1;this.requestSource=G;this.A3b=!1;this.Be=function(){}; this.Sg=function(){}; this.zH=new IJ8;this.zH.Rr=v;this.zH.T=v;this.nW=!1;this.IG={Ec:null,wO:null};this.Ke=!0;this.n5=null;this.N2=this.oy4=!1;ZQ().j++;this.UJ=this.e6();this.Nl=-1;this.rB=null;this.hasCompleted=this.EyB=!1;this.Fu=new Vn;BQm(this.Fu);WRj(this);this.requestSource==1?rn(this.Fu,"od",1):rn(this.Fu,"od",0)}; WRj=function(v){v=v.zH.Rr;var J;if(J=v&&v.getAttribute)J=/-[a-z]/.test("googleAvInapp")?!1:C7t&&v.dataset?"googleAvInapp"in v.dataset:v.hasAttribute?v.hasAttribute("data-"+fGU()):!!v.getAttribute("data-"+fGU());J&&(wS().X=!0)}; od=function(v,J){J!=v.N2&&(v.N2=J,v=wS(),J?v.j++:v.j>0&&v.j--)}; b2w=function(v,J){if(v.rB){if(J.getName()===v.rB.getName())return;v.rB.dispose();v.rB=null}J=J.create(v.zH.T,v.Fu,v.nO());if(J=J!=null&&J.observe()?J:null)v.rB=J}; jWU=function(v,J,G){if(!v.r4||v.N0==-1||J.X===-1||v.r4.X===-1)return 0;v=J.X-v.r4.X;return v>G?0:v}; iuX=function(v,J,G){if(v.rB){v.rB.RO();var K=v.rB.N,V=K.L,Y=V.T;if(K.j!=null){var r=K.Z;v.kT=new g.R7(r.left-Y.left,r.top-Y.top)}Y=v.n9()?Math.max(K.T,K.J):K.T;r={};V.volume!==null&&(r.volume=V.volume);V=v.xG(K);v.r4=K;v.De(Y,J,G,!1,r,V,K.U)}}; $Ef=function(v){if(v.dC&&v.n5){var J=qf(v.Fu,"od")==1,G=wS().T,K=v.n5,V=v.rB?v.rB.getName():"ns",Y=v.kT,r=new g.Tx(vj(G),G.getHeight());G=v.n9();v={Ppe:V,kT:Y,D$h:r,n9:G,zr:v.UJ.zr,J3t:J};if(J=K.X){J.RO();V=J.N;Y=V.L.T;var E=r=null;V.j!=null&&Y&&(r=V.Z,r=new g.R7(r.left-Y.left,r.top-Y.top),E=new g.Tx(Y.right-Y.left,Y.bottom-Y.top));V=G?Math.max(V.T,V.J):V.T;G={Ppe:J.getName(),kT:r,D$h:E,n9:G,J3t:!1,zr:V}}else G=null;G&&Xt8(K,v,G)}}; vas=function(v,J,G){J&&(v.Be=J);G&&(v.Sg=G)}; g.K9=function(){}; g.VP=function(v){return{value:v,done:!1}}; JC2=function(){this.L=this.T=this.Z=this.X=this.J=0}; GOX=function(v){var J={};var G=g.$X()-v.J;J=(J.ptlt=G,J);(G=v.X)&&(J.pnk=G);(G=v.Z)&&(J.pnc=G);(G=v.L)&&(J.pnmm=G);(v=v.T)&&(J.pns=v);return J}; oaf=function(){v_.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; YD=function(v){return LL(v.volume)&&v.volume>0}; rl=function(v,J,G,K){G=G===void 0?!0:G;K=K===void 0?function(){return!0}:K; return function(V){var Y=V[v];if(Array.isArray(Y)&&K(V))return KVB(Y,J,G)}}; qD=function(v,J){return function(G){return J(G)?G[v]:void 0}}; VTm=function(v){return function(J){for(var G=0;G0?Y[V-1]+1:0,K+1).reduce(function(r,E){return r+E},0)})}; Ynt=function(){this.X=this.T=""}; rCU=function(){}; ed=function(v,J){var G={};if(v!==void 0)if(J!=null)for(var K in J){var V=J[K];K in Object.prototype||V!=null&&(G[K]=typeof V==="function"?V(v):v[V])}else g.HR(G,v);return A4(aY(new NK,G))}; qnw=function(){var v={};this.X=(v.vs=[1,0],v.vw=[0,1],v.am=[2,2],v.a=[4,4],v.f=[8,8],v.bm=[16,16],v.b=[32,32],v.avw=[0,64],v.avs=[64,0],v.pv=[256,256],v.gdr=[0,512],v.p=[0,1024],v.r=[0,2048],v.m=[0,4096],v.um=[0,8192],v.ef=[0,16384],v.s=[0,32768],v.pmx=[0,16777216],v.mut=[33554432,33554432],v.umutb=[67108864,67108864],v.tvoff=[134217728,134217728],v);this.T={};for(var J in this.X)this.X[J][1]>0&&(this.T[J]=0);this.Z=0}; PV=function(v,J){var G=v.X[J],K=G[1];v.Z+=G[0];K>0&&v.T[J]==0&&(v.T[J]=1)}; Eaf=function(v){var J=g.fk(v.X),G=0,K;for(K in v.T)g.WN(J,K)&&v.T[K]==1&&(G+=v.X[K][1],v.T[K]=2);return G}; eC8=function(v){var J=0,G;for(G in v.T){var K=v.T[G];if(K==1||K==2)J+=v.X[G][1]}return J}; DW=function(){this.T=this.X=0}; tU=function(){jd.call(this);this.Z=new FK;this.Gi=this.N=this.Ze=0;this.U=-1;this.wh=new FK;this.J=new FK;this.T=new Hj;this.j=this.L=-1;this.oY=new FK;this.WH=2E3;this.qr=new DW;this.BH=new DW;this.xB=new DW}; BV=function(v,J,G){var K=v.Gi;bq||G||v.U==-1||(K+=J-v.U);return K}; PLw=function(){this.Z=!1}; Id=function(v,J){this.Z=!1;this.L=v;this.N=J;this.J=0}; hU=function(v,J){Id.call(this,v,J);this.K=[]}; DEj=function(){}; z2=function(){}; n9=function(v,J,G,K){k3.call(this,v,J,G,K)}; dl=function(v,J,G){k3.call(this,null,v,J,G);this.U=v.isActive();this.K=0}; s_=function(v){return[v.top,v.left,v.bottom,v.right]}; Rd=function(v,J,G,K,V,Y){Y=Y===void 0?new z2:Y;G2.call(this,J,G,K);this.pp=V;this.Zu=0;this.Pw={};this.Tl=new qnw;this.ra={};this.SD="";this.xB=null;this.d_=!1;this.T=[];this.mB=Y.X();this.j=Y.Z();this.L=null;this.Z=-1;this.jl=this.N=void 0;this.Ti=this.oY=0;this.Mr=-1;this.WH=this.BH=!1;this.Ze=this.U=this.X=this.Q8=this.o$=0;new Hj;this.qr=this.Gi=0;this.RY=-1;this.AV=0;this.K=g.Rp;this.dh=[this.a9()];this.UR=2;this.oz={};this.oz.pause="p";this.oz.resume="r";this.oz.skip="s";this.oz.mute="m";this.oz.unmute= "um";this.oz.exitfullscreen="ef";this.J=null;this.Nr=this.wh=!1;this.g_=Math.floor(Date.now()/1E3-1704067200);this.YB=0}; lI=function(v){v.hasCompleted=!0;v.AV!=0&&(v.AV=3)}; T2=function(v){return v===void 0?v:Number(v)?pL(v,3):0}; p9=function(v,J){return v.dh[J!=null&&JMath.max(1E4,v.Z/3)?0:J);var G=v.K(v)||{};G=G.currentTime!==void 0?G.currentTime:v.oY;var K=G-v.oY,V=0;K>=0?(v.Ti+=J,v.qr+=Math.max(J-K,0),V=Math.min(K,v.Ti)):v.Gi+=Math.abs(K);K!=0&&(v.Ti=0);v.RY==-1&&K>0&&(v.RY=it>=0?W_()-it:-1);v.oY=G;return V}; IZX=function(v,J){yM(v.j,function(G){return G.L==J.L})||v.j.push(J)}; hCj=function(v){var J=Wj(v.O4().T,1);return L9(v,J)}; L9=function(v,J,G){return J>=15E3?!0:v.BH?(G===void 0?0:G)?!0:v.Z>0?J>=v.Z/2:v.Mr>0?J>=v.Mr:!1:!1}; zCm=function(v){var J=pL(v.UJ.zr,2),G=v.Tl.Z,K=v.UJ,V=p9(v),Y=T2(V.L),r=T2(V.j),E=T2(K.volume),e=pL(V.K,2),P=pL(V.Ti,2),D=pL(K.zr,2),t=pL(V.dh,2),B=pL(V.Mr,2);K=pL(K.qP,2);var I=v.td().clone().round();v=v.rB&&v.rB.Z?(v.rB?v.rB.Z:null).clone().round():null;V=iI(V,!1);return{KXH:J,eE:G,dw:Y,w4:r,z9:E,gw:e,Hr:P,zr:D,ZB:t,ub:B,qP:K,position:I,hk:v,vr:V}}; dEs=function(v,J){naB(v.T,J,function(){return{KXH:0,eE:void 0,dw:-1,w4:-1,z9:-1,gw:-1,Hr:-1,zr:-1,ZB:-1,ub:-1,qP:-1,position:void 0,hk:void 0,vr:[]}}); v.T[J]=zCm(v)}; naB=function(v,J,G){for(var K=v.length;K0?1:0;t.atos= MK(P.T);t.ssb=MK(P.Nr,!1);t.amtos=N5m(P.T,!1);t.uac=v.o$;t.vpt=P.Z.T;D=="nio"&&(t.nio=1,t.avms="nio");t.gmm="4";t.gdr=L9(v,P.Z.T,!0)?1:0;t.efpf=v.UR;if(D=="gsv"||D=="nis")D=v.rB,D.K>0&&(t.nnut=D.K);t.tcm=tTm(v);t.nmt=v.Gi;t.bt=v.qr;t.pst=v.RY;t.vpaid=v.N;t.dur=v.Z;t.vmtime=v.oY;t.is=v.Tl.Z;v.T.length>=1&&(t.i0=v.T[0].eE,t.a0=[v.T[0].z9],t.c0=[v.T[0].zr],t.ss0=[v.T[0].qP],D=v.T[0].position,Y=v.T[0].hk,t.p0=D?s_(D):void 0,D&&Y&&!J4(Y,D)&&(t.cp0=s_(Y)));v.T.length>=2&&(t.i1=v.T[1].eE,t.a1=O_(v.T[1].dw, v.T[1].z9,v.T[1].w4),t.c1=O_(v.T[1].gw,v.T[1].zr,v.T[1].Hr),t.ss1=O_(v.T[1].ZB,v.T[1].qP,v.T[1].ub),D=v.T[1].position,Y=v.T[1].hk,t.p1=D?s_(D):void 0,D&&Y&&!J4(Y,D)&&(t.cp1=s_(Y)),t.mtos1=v.T[1].vr);v.T.length>=3&&(t.i2=v.T[2].eE,t.a2=O_(v.T[2].dw,v.T[2].z9,v.T[2].w4),t.c2=O_(v.T[2].gw,v.T[2].zr,v.T[2].Hr),t.ss2=O_(v.T[2].ZB,v.T[2].qP,v.T[2].ub),D=v.T[2].position,Y=v.T[2].hk,t.p2=D?s_(D):void 0,D&&Y&&!J4(Y,D)&&(t.cp2=s_(Y)),t.mtos2=v.T[2].vr);v.T.length>=4&&(t.i3=v.T[3].eE,t.a3=O_(v.T[3].dw,v.T[3].z9, v.T[3].w4),t.c3=O_(v.T[3].gw,v.T[3].zr,v.T[3].Hr),t.ss3=O_(v.T[3].ZB,v.T[3].qP,v.T[3].ub),D=v.T[3].position,Y=v.T[3].hk,t.p3=D?s_(D):void 0,D&&Y&&!J4(Y,D)&&(t.cp3=s_(Y)),t.mtos3=v.T[3].vr);t.cs=eC8(v.Tl);J&&(t.ic=Eaf(v.Tl),t.dvpt=P.Z.X,t.dvs=bt(P.X,.5),t.dfvs=bt(P.X,1),t.davs=bt(P.T,.5),t.dafvs=bt(P.T,1),G&&(P.Z.X=0,aD8(P.X),aD8(P.T)),v.Cz()&&(t.dtos=P.Ze,t.dav=P.N,t.dtoss=v.Zu+1,G&&(P.Ze=0,P.N=0,v.Zu++)),t.dat=P.J.X,t.dft=P.oY.X,G&&(P.J.X=0,P.oY.X=0));t.ps=[E.J.width,E.J.height];t.bs=[vj(E.T),E.T.getHeight()]; t.scs=[E.L.width,E.L.height];t.dom=E.domain;v.Q8&&(t.vds=v.Q8);if(v.j.length>0||v.mB)J=g.vW(v.j),v.mB&&J.push(v.mB),t.pings=g.yn(J,function(B){return B.toString()}); J=g.yn(g.E_(v.j,function(B){return B.j()}),function(B){return B.getId()}); jLB(J);t.ces=J;v.X&&(t.vmer=v.X);v.U&&(t.vmmk=v.U);v.Ze&&(t.vmiec=v.Ze);t.avms=v.rB?v.rB.getName():"ns";v.rB&&g.HR(t,v.rB.u3());K?(t.c=pL(v.UJ.zr,2),t.ss=pL(v.UJ.qP,2)):t.tth=W_()-TWs;t.mc=pL(P.Ti,2);t.nc=pL(P.K,2);t.mv=T2(P.j);t.nv=T2(P.L);t.lte=pL(v.Rs,2);K=p9(v,V);iI(P);t.qmtos=iI(K);t.qnc=pL(K.K,2);t.qmv=T2(K.j);t.qnv=T2(K.L);t.qas=K.L>0?1:0;t.qi=v.SD;t.avms||(t.avms="geo");t.psm=P.qr.T;t.psv=P.qr.getValue();t.psfv=P.BH.getValue();t.psa=P.xB.getValue();e=DC2(e.Fu);e.length&&(t.veid=e);v.J&&g.HR(t, GOX(v.J));t.avas=v.k7();t.vs=v.QV();t.co=puB(v);t.tm=P.YB;t.tu=P.jl;return t}; sWX=function(v,J){if(g.WN(LV2,J))return!0;var G=v.Pw[J];return G!==void 0?(v.Pw[J]=!0,!G):!1}; puB=function(v){var J=v.YB.toString(10).padStart(2,"0");J=""+v.g_+J;v.YB<99&&v.YB++;return J}; wuj=function(){this.T={};var v=VK();U_(this,v,document);var J=yC2();try{if("1"==J){for(var G=v.parent;G!=v.top;G=G.parent)U_(this,G,G.document);U_(this,v.top,v.top.document)}}catch(K){}}; yC2=function(){var v=document.documentElement;try{if(!dn(VK().top))return"2";var J=[],G=VK(v.ownerDocument);for(v=G;v!=G.top;v=v.parent)if(v.frameElement)J.push(v.frameElement);else break;return J&&J.length!=0?"1":"0"}catch(K){return"2"}}; U_=function(v,J,G){$D(G,"mousedown",function(){return Ouw(v)},301); $D(J,"scroll",function(){return UEm(v)},302); $D(G,"touchmove",function(){return xEm(v)},303); $D(G,"mousemove",function(){return mEm(v)},304); $D(G,"keydown",function(){return SnB(v)},305)}; Ouw=function(v){g.y2(v.T,function(J){J.Z>1E5||++J.Z})}; UEm=function(v){g.y2(v.T,function(J){J.T>1E5||++J.T})}; xEm=function(v){g.y2(v.T,function(J){J.T>1E5||++J.T})}; SnB=function(v){g.y2(v.T,function(J){J.X>1E5||++J.X})}; mEm=function(v){g.y2(v.T,function(J){J.L>1E5||++J.L})}; fZX=function(){this.T=[];this.X=[]}; xD=function(v,J){return g.MS(v.T,function(G){return G.SD==J})}; Zuf=function(v,J){return J?g.MS(v.T,function(G){return G.zH.Rr==J}):null}; ulm=function(v,J){return g.MS(v.X,function(G){return G.G_()==2&&G.SD==J})}; Sd=function(){var v=my;return v.T.length==0?v.X:v.X.length==0?v.T:g.$Y(v.X,v.T)}; gas=function(v,J){v=J.G_()==1?v.T:v.X;var G=HN(v,function(K){return K==J}); return G!=-1?(v.splice(G,1),J.rB&&J.rB.unobserve(),J.dispose(),!0):!1}; XuB=function(v){var J=my;if(gas(J,v)){switch(v.G_()){case 0:var G=function(){return null}; case 2:G=function(){return ulm(J,v.SD)}; break;case 1:G=function(){return xD(J,v.SD)}}for(var K=G();K;K=G())gas(J,K)}}; kOL=function(v){var J=my;v=g.E_(v,function(G){return!Zuf(J,G.zH.Rr)}); J.T.push.apply(J.T,g.l(v))}; cCU=function(v){var J=[];g.PW(v,function(G){yM(my.T,function(K){return K.zH.Rr===G.zH.Rr&&K.SD===G.SD})||(my.T.push(G),J.push(G))})}; f9=function(){this.T=this.X=null}; NW2=function(v,J){function G(K,V){J(K,V)} if(v.X==null)return!1;v.T=g.MS(v.X,function(K){return K!=null&&K.CL()}); v.T&&(v.T.init(G)?pts(v.T.T):J(v.T.T.Fl(),v.T));return v.T!=null}; ZW=function(v){v=aZj(v);cj.call(this,v.length?v[v.length-1]:new ut(B_,0));this.Z=v;this.X=null}; aZj=function(v){if(!v.length)return[];v=(0,g.E_)(v,function(G){return G!=null&&G.GQ()}); for(var J=1;JG.time?J:G},v[0])}; kD=function(v){v=v===void 0?B_:v;cj.call(this,new ut(v,2))}; cV=function(){var v=MTj();ut.call(this,B_.top,v,"geo")}; MTj=function(){ZQ();var v=wS();return v.Z||v.X?0:2}; QWt=function(){}; ND=function(){this.done=!1;this.T={D3:0,Bp:0,apw:0,NH:0,ag:-1,L$:0,sD:0,n$:0,xIH:0};this.J=null;this.j=!1;this.Z=null;this.K=0;this.X=new Zt(this)}; AU=function(){var v=ad;v.j||(v.j=!0,WVw(v,function(){return v.L.apply(v,g.l(g.Om.apply(0,arguments)))}),v.L())}; CLL=function(){UX(QWt);var v=UX(f9);v.T!=null&&v.T.T?pts(v.T.T):wS().update(B_)}; FN=function(v,J,G){if(!v.done&&(v.X.cancel(),J.length!=0)){v.Z=null;try{CLL();var K=W_();ZQ().J=K;if(UX(f9).T!=null)for(var V=0;V=0?W_()-CO:-1,E=W_();V.T.ag==-1&&(r=E);var e=wS(),P=ZQ(),D=EX(P.Fu),t=Sd();try{if(t.length>0){var B=e.T;B&&(D.bs=[vj(B),B.getHeight()]);var I=e.J;I&&(D.ps=[I.width,I.height]);B_.screen&&(D.scs=[B_.screen.width,B_.screen.height])}else D.url=encodeURIComponent(B_.location.href.substring(0,512)),Y.referrer&&(D.referrer=encodeURIComponent(Y.referrer.substring(0,512))); D.tt=r;D.pt=CO;D.bin=P.X;B_.google_osd_load_pub_page_exp!==void 0&&(D.olpp=B_.google_osd_load_pub_page_exp);D.deb=[1,V.T.D3,V.T.Bp,V.T.NH,V.T.ag,0,V.X.X,V.T.L$,V.T.sD,V.T.n$,V.T.xIH,-1].join(";");D.tvt=jlf(V,E);e.X&&(D.inapp=1);if(B_!==null&&B_!=B_.top){t.length>0&&(D.iframe_loc=encodeURIComponent(B_.location.href.substring(0,512)));var h=e.K;D.is=[vj(h),h.getHeight()]}}catch(R){D.error=1}ad.Z=D}B=g.Ni(ad.Z);I=ZQ().T;qf(I.Z,"prf")==1?(h=new Sz,V=I.T,Y=0,V.T>-1&&(Y=V.Z.T.now()-V.T),h=o1(h,1,YO(V.L+ Y),0),V=I.T,h=o1(h,5,e1(V.T>-1?V.X+1:V.X),0),h=o1(h,2,d9(I.X.T.Z()),"0"),h=o1(h,3,d9(I.X.T.X()),"0"),I=o1(h,4,d9(I.X.T.T()),"0"),h={},I=(h.pf=g.hE(I.X()),h)):I={};g.HR(B,I);g.HR(J,K,G,B,v())}])}; vKX=function(){var v=$fw||B_;if(!v)return"";var J=[];if(!v.location||!v.location.href)return"";J.push("url="+encodeURIComponent(v.location.href.substring(0,512)));v.document&&v.document.referrer&&J.push("referrer="+encodeURIComponent(v.document.referrer.substring(0,512)));return J.join("&")}; HV=function(){var v="youtube.player.web_20250401_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250401_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250401_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250401_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),J;if(((J=v)==null?void 0:J.length)==2)return v[1];v="youtube.player.web_20250401_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var G;return((G=v)==null?void 0:G.length)==3?"20"+v[1]+v[2]:null}; JIX=function(){return"av.default_js".includes("ima_html5_sdk")?{nF:"ima",Y$:null}:"av.default_js".includes("ima_native_sdk")?{nF:"nima",Y$:null}:"av.default_js".includes("admob-native-video-javascript")?{nF:"an",Y$:null}:"youtube.player.web_20250401_01_RC00".includes("cast_js_sdk")?{nF:"cast",Y$:HV()}:"youtube.player.web_20250401_01_RC00".includes("youtube.player.web")?{nF:"yw",Y$:HV()}:"youtube.player.web_20250401_01_RC00".includes("outstream_web_client")?{nF:"out",Y$:HV()}:"youtube.player.web_20250401_01_RC00".includes("drx_rewarded_web")? {nF:"r",Y$:HV()}:"youtube.player.web_20250401_01_RC00".includes("gam_native_web_video")?{nF:"n",Y$:HV()}:"youtube.player.web_20250401_01_RC00".includes("admob_interstitial_video")?{nF:"int",Y$:HV()}:{nF:"j",Y$:null}}; WV=function(v,J){var G={sv:"966"};MD!==null&&(G.v=MD);G.cb=GUr;G.nas=my.T.length;G.msg=v;J!==void 0&&(v=oKL(J))&&(G.e=QP[v]);return G}; C9=function(v){return dT(v,"custom_metric_viewable")}; oKL=function(v){var J=C9(v)?"custom_metric_viewable":v.toLowerCase();return gd(yP,function(G){return G==J})}; K4w=function(){this.T=void 0;this.X=!1;this.Z=0;this.L=-1;this.J="tos"}; rIr=function(v){try{var J=v.split(",");return J.length>g.fk(VzU).length?null:OX(J,function(G,K){K=K.toLowerCase().split("=");if(K.length!=2||YXt[K[0]]===void 0||!YXt[K[0]](K[1]))throw Error("Entry ("+K[0]+", "+K[1]+") is invalid.");G[K[0]]=K[1];return G},{})}catch(G){return null}}; qXU=function(v,J){if(v.T==void 0)return 0;switch(v.J){case "mtos":return v.X?CL(J.T,v.T):CL(J.X,v.T);case "tos":return v.X?Wj(J.T,v.T):Wj(J.X,v.T)}return 0}; bI=function(v,J,G,K){Id.call(this,J,K);this.K=v;this.U=G}; jy=function(){}; i4=function(v){Id.call(this,"fully_viewable_audible_half_duration_impression",v)}; $2=function(v){this.T=v}; vq=function(v,J){Id.call(this,v,J)}; JS=function(v){hU.call(this,"measurable_impression",v)}; Gl=function(){$2.apply(this,arguments)}; oJ=function(v,J,G){dl.call(this,v,J,G)}; KM=function(v){v=v===void 0?B_:v;cj.call(this,new ut(v,2))}; Vq=function(v,J,G){dl.call(this,v,J,G)}; Y2=function(v){v=v===void 0?B_:v;cj.call(this,new ut(v,2))}; r0=function(){ut.call(this,B_,2,"mraid");this.qr=0;this.Ti=this.dh=!1;this.K=null;this.X=Elw(this.Z);this.L.T=new $3(0,0,0,0);this.YB=!1}; q3=function(v,J,G){v.gS("addEventListener",J,G)}; DfU=function(v){ZQ().L=!!v.gS("isViewable");q3(v,"viewableChange",EKm);v.gS("getState")==="loading"?q3(v,"ready",e9f):Pq2(v)}; Pq2=function(v){typeof v.X.kK.AFMA_LIDAR==="string"?(v.dh=!0,tzf(v)):(v.X.compatibility=3,v.K="nc",v.M5("w"))}; tzf=function(v){v.Ti=!1;var J=qf(ZQ().Fu,"rmmt")==1,G=!!v.gS("isViewable");(J?!G:1)&&m4().setTimeout(Mf(524,function(){v.Ti||(Bns(v),Qn(540,Error()),v.K="mt",v.M5("w"))}),500); IQr(v);q3(v,v.X.kK.AFMA_LIDAR,h9s)}; IQr=function(v){var J=qf(ZQ().Fu,"sneio")==1,G=v.X.kK.AFMA_LIDAR_EXP_1!==void 0,K=v.X.kK.AFMA_LIDAR_EXP_2!==void 0;(J=J&&K)&&(v.X.kK.AFMA_LIDAR_EXP_2=!0);G&&(v.X.kK.AFMA_LIDAR_EXP_1=!J)}; Bns=function(v){v.gS("removeEventListener",v.X.kK.AFMA_LIDAR,h9s);v.dh=!1}; z92=function(v,J){if(v.gS("getState")==="loading")return new g.Tx(-1,-1);J=v.gS(J);if(!J)return new g.Tx(-1,-1);v=parseInt(J.width,10);J=parseInt(J.height,10);return isNaN(v)||isNaN(J)?new g.Tx(-1,-1):new g.Tx(v,J)}; e9f=function(){try{var v=UX(r0);v.gS("removeEventListener","ready",e9f);Pq2(v)}catch(J){Qn(541,J)}}; h9s=function(v,J){try{var G=UX(r0);G.Ti=!0;var K=v?new $3(v.y,v.x+v.width,v.y+v.height,v.x):new $3(0,0,0,0);var V=W_(),Y=UG();var r=new oY(V,Y,G);r.T=K;r.volume=J;G.ZA(r)}catch(E){Qn(542,E)}}; EKm=function(v){var J=ZQ(),G=UX(r0);v&&!J.L&&(J.L=!0,G.YB=!0,G.K&&G.M5("w",!0))}; E5=function(){this.isInitialized=!1;this.T=this.X=null;var v={};this.K=(v.start=this.UrB,v.firstquartile=this.Kib,v.midpoint=this.mrb,v.thirdquartile=this.zU4,v.complete=this.Jtb,v.error=this.Cwl,v.pause=this.g5,v.resume=this.hj,v.skip=this.RUt,v.viewable_impression=this.R6,v.mute=this.uY,v.unmute=this.uY,v.fullscreen=this.DrH,v.exitfullscreen=this.kiB,v.fully_viewable_audible_half_duration_impression=this.R6,v.measurable_impression=this.R6,v.abandon=this.g5,v.engagedview=this.R6,v.impression=this.R6, v.creativeview=this.R6,v.progress=this.uY,v.custom_metric_viewable=this.R6,v.bufferstart=this.g5,v.bufferfinish=this.hj,v.audio_measurable=this.R6,v.audio_audible=this.R6,v);v={};this.U=(v.overlay_resize=this.GiU,v.abandon=this.UG,v.close=this.UG,v.collapse=this.UG,v.overlay_unmeasurable_impression=function(J){return wl(J,"overlay_unmeasurable_impression",UG())},v.overlay_viewable_immediate_impression=function(J){return wl(J,"overlay_viewable_immediate_impression",UG())},v.overlay_unviewable_impression= function(J){return wl(J,"overlay_unviewable_impression",UG())},v.overlay_viewable_end_of_session_impression=function(J){return wl(J,"overlay_viewable_end_of_session_impression",UG())},v); ZQ().X=3;nKL(this);this.Z=null}; ey=function(v,J,G,K){v=v.B0(null,K,!0,J);v.L=G;kOL([v]);return v}; dfs=function(v,J,G){ebw(J);var K=v.T;g.PW(J,function(V){var Y=g.yn(V.criteria,function(r){var E=rIr(r);if(E==null)r=null;else if(r=new K4w,E.visible!=null&&(r.T=E.visible/100),E.audible!=null&&(r.X=E.audible==1),E.time!=null){var e=E.timetype=="mtos"?"mtos":"tos",P=XFf(E.time,"%")?"%":"ms";E=parseInt(E.time,10);P=="%"&&(E/=100);r.setTime(E,P,e)}return r}); yM(Y,function(r){return r==null})||IZX(G,new bI(V.id,V.event,Y,K))})}; sls=function(){var v=[],J=ZQ();v.push(UX(cV));qf(J.Fu,"mvp_lv")&&v.push(UX(r0));J=[new KM,new Y2];J.push(new ZW(v));J.push(new kD(B_));return J}; R9f=function(v){if(!v.isInitialized){v.isInitialized=!0;try{var J=W_(),G=ZQ(),K=wS();CO=J;G.Z=79463069;v.X!=="o"&&($fw=LK8(B_));if(gb8()){ad.T.Bp=0;ad.T.ag=W_()-J;var V=sls(),Y=UX(f9);Y.X=V;NW2(Y,function(){Pq()})?ad.done||(buB(),gS(Y.T.T,v),AU()):K.Z?Pq():AU()}else D$=!0}catch(r){throw my.reset(),r; }}}; Bq=function(v){ad.X.cancel();tS=v;ad.done=!0}; IJ=function(v){if(v.X)return v.X;var J=UX(f9).T;if(J)switch(J.getName()){case "nis":v.X="n";break;case "gsv":v.X="m"}v.X||(v.X="h");return v.X}; hS=function(v,J,G){if(v.T==null)return J.Q8|=4,!1;v=lQ2(v.T,G,J);J.Q8|=v;return v==0}; Pq=function(){var v=[new kD(B_)],J=UX(f9);J.X=v;NW2(J,function(){Bq("i")})?ad.done||(buB(),AU()):Bq("i")}; TnL=function(v,J){if(!v.d_){var G=wl(v,"start",UG());G=v.pp.T(G).T;var K={id:"lidarv"};K.r=J;K.sv="966";MD!==null&&(K.v=MD);bi(G,function(V,Y){return K[V]=V=="mtos"||V=="tos"?Y:encodeURIComponent(Y)}); J=vKX();bi(J,function(V,Y){return K[V]=encodeURIComponent(Y)}); J="//pagead2.googlesyndication.com/pagead/gen_204?"+A4(aY(new NK,K));u1w(J);v.d_=!0}}; zl=function(v,J,G){FN(ad,[v],!UG());dEs(v,G);G!=4&&naB(v.dh,G,v.a9);return wl(v,J,UG())}; nKL=function(v){iOr(function(){var J=p_w();v.X!=null&&(J.sdk=v.X);var G=UX(f9);G.T!=null&&(J.avms=G.T.getName());return J})}; L4F=function(v,J,G,K){var V=Zuf(my,G);V!==null&&V.SD!==J&&(v.A2(V),V=null);V||(J=v.B0(G,W_(),!1,J),my.X.length==0&&(ZQ().Z=79463069),cCU([J]),V=J,V.L=IJ(v),K&&(V.xB=K));return V}; yIw=function(v,J){var G=v[J];G!==void 0&&G>0&&(v[J]=Math.floor(G*1E3))}; p_w=function(){var v=wS(),J={},G={},K={};return Object.assign({},(J.sv="966",J),MD!==null&&(G.v=MD,G),(K["if"]=v.Z?"1":"0",K.nas=String(my.T.length),K))}; nM=function(v){Id.call(this,"audio_audible",v)}; d0=function(v){hU.call(this,"audio_measurable",v)}; s5=function(){$2.apply(this,arguments)}; RJ=function(){}; w_t=function(v){this.T=v}; lQ2=function(v,J,G){v=v.X();if(typeof v==="function"){var K={};var V={};K=Object.assign({},MD!==null&&(K.v=MD,K),(V.sv="966",V.cb=GUr,V.e=OOf(J),V));V=wl(G,J,UG());g.HR(K,V);G.ra[J]=V;K=G.G_()==2?Z2m(K).join("&"):G.pp.T(K).T;try{return v(G.SD,K,J),0}catch(Y){return 2}}else return 1}; OOf=function(v){var J=C9(v)?"custom_metric_viewable":v;v=gd(yP,function(G){return G==J}); return QP[v]}; l4=function(){E5.call(this);this.j=null;this.J=!1;this.L="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; UfF=function(v,J,G){G=G.opt_configurable_tracking_events;v.T!=null&&Array.isArray(G)&&dfs(v,G,J)}; xfU=function(v,J,G){var K=xD(my,J);K||(K=G.opt_nativeTime||-1,K=ey(v,J,IJ(v),K),G.opt_osdId&&(K.xB=G.opt_osdId));return K}; mfU=function(v,J,G){var K=xD(my,J);K||(K=ey(v,J,"n",G.opt_nativeTime||-1));return K}; SXm=function(v,J){var G=xD(my,J);G||(G=ey(v,J,"h",-1));return G}; fQ2=function(v){ZQ();switch(IJ(v)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; gKf=function(v,J,G,K){G=G===void 0?{}:G;var V={};g.HR(V,{opt_adElement:void 0,opt_fullscreen:void 0},G);var Y=v.TJ(J,G);G=Y?Y.pp:v.QM();if(V.opt_bounds)return G.T(WV("ol",K));if(K!==void 0)if(oKL(K)!==void 0)if(D$)v=WV("ue",K);else if(R9f(v),tS=="i")v=WV("i",K),v["if"]=0;else if(J=v.TJ(J,V)){b:{tS=="i"&&(J.nW=!0);Y=V.opt_fullscreen;Y!==void 0&&od(J,!!Y);var r;if(Y=!wS().X)(Y=TA(g.wT(),"CrKey")&&!(TA(g.wT(),"CrKey")&&TA(g.wT(),"SmartSpeaker"))||TA(g.wT(),"PlayStation")||TA(g.wT(),"Roku")||sfs()||TA(g.wT(), "Xbox"))||(Y=g.wT(),Y=TA(Y,"AppleTV")||TA(Y,"Apple TV")||TA(Y,"CFNetwork")||TA(Y,"tvOS")),Y||(Y=g.wT(),Y=TA(Y,"sdk_google_atv_x86")||TA(Y,"Android TV")),Y=!Y;Y&&(m4(),Y=zU(OG)===0);if(r=Y){switch(J.G_()){case 1:TnL(J,"pv");break;case 2:v.GA(J)}Bq("pv")}Y=K.toLowerCase();if(r=!r)r=qf(ZQ().Fu,"ssmol")&&Y==="loaded"?!1:g.WN(ZOr,Y);if(r&&J.AV==0){tS!="i"&&(ad.done=!1);r=V!==void 0?V.opt_nativeTime:void 0;it=r=typeof r==="number"?r:W_();J.dC=!0;var E=UG();J.AV=1;J.Pw={};J.Pw.start=!1;J.Pw.firstquartile= !1;J.Pw.midpoint=!1;J.Pw.thirdquartile=!1;J.Pw.complete=!1;J.Pw.resume=!1;J.Pw.pause=!1;J.Pw.skip=!1;J.Pw.mute=!1;J.Pw.unmute=!1;J.Pw.viewable_impression=!1;J.Pw.measurable_impression=!1;J.Pw.fully_viewable_audible_half_duration_impression=!1;J.Pw.fullscreen=!1;J.Pw.exitfullscreen=!1;J.Zu=0;E||(J.O4().U=r);FN(ad,[J],!E)}(r=J.oz[Y])&&PV(J.Tl,r);qf(ZQ().Fu,"fmd")||g.WN(u_f,Y)&&J.mB&&J.mB.X(J,null);switch(J.G_()){case 1:var e=C9(Y)?v.K.custom_metric_viewable:v.K[Y];break;case 2:e=v.U[Y]}if(e&&(K=e.call(v, J,V,K),qf(ZQ().Fu,"fmd")&&g.WN(u_f,Y)&&J.mB&&J.mB.X(J,null),K!==void 0)){V=WV(void 0,Y);g.HR(V,K);K=V;break b}K=void 0}J.AV==3&&v.A2(J);v=K}else v=WV("nf",K);else v=void 0;else D$?v=WV("ue"):Y?(v=WV(),g.HR(v,RC8(Y,!0,!1,!1))):v=WV("nf");return typeof v==="string"?G.T():G.T(v)}; X_U=function(v,J){J&&(v.L=J)}; kUw=function(v){var J={};return J.viewability=v.T,J.googleViewability=v.X,J}; cIB=function(v,J,G){G=G===void 0?{}:G;v=gKf(UX(l4),J,G,v);return kUw(v)}; Tl=function(v){var J=g.Om.apply(1,arguments).filter(function(K){return K}).join("&"); if(!J)return v;var G=v.match(/[?&]adurl=/);return G?v.slice(0,G.index+1)+J+"&"+v.slice(G.index+1):v+(v.indexOf("?")===-1?"?":"&")+J}; aQU=function(v){var J=v.url;v=v.jrB;this.T=J;this.K=v;v=/[?&]dsh=1(&|$)/.test(J);this.J=!v&&/[?&]ae=1(&|$)/.test(J);this.j=!v&&/[?&]ae=2(&|$)/.test(J);if((this.X=/[?&]adurl=([^&]*)/.exec(J))&&this.X[1]){try{var G=decodeURIComponent(this.X[1])}catch(K){G=null}this.Z=G}this.L=(new Date).getTime()-Nnw}; AIt=function(v){v=v.K;if(!v)return"";var J="";v.platform&&(J+="&uap="+encodeURIComponent(v.platform));v.platformVersion&&(J+="&uapv="+encodeURIComponent(v.platformVersion));v.uaFullVersion&&(J+="&uafv="+encodeURIComponent(v.uaFullVersion));v.architecture&&(J+="&uaa="+encodeURIComponent(v.architecture));v.model&&(J+="&uam="+encodeURIComponent(v.model));v.bitness&&(J+="&uab="+encodeURIComponent(v.bitness));v.fullVersionList&&(J+="&uafvl="+encodeURIComponent(v.fullVersionList.map(function(G){return encodeURIComponent(G.brand)+ ";"+encodeURIComponent(G.version)}).join("|"))); typeof v.wow64!=="undefined"&&(J+="&uaw="+Number(v.wow64));return J.substring(1)}; Mzw=function(v,J,G,K,V){var Y=window;var r=r===void 0?!1:r;var E;G?E=(r===void 0?0:r)?"//ep1.adtrafficquality.google/bg/"+V2(G)+".js":"//pagead2.googlesyndication.com/bg/"+V2(G)+".js":E="";r=r===void 0?!1:r;G=Y.document;var e={};J&&(e._scs_=J);e._bgu_=E;e._bgp_=K;e._li_="v_h.3.0.0.0";V&&(e._upb_=V);(J=Y.GoogleTyFxhY)&&typeof J.push=="function"||(J=Y.GoogleTyFxhY=[]);J.push(e);J=jA(G).createElement("SCRIPT");J.type="text/javascript";J.async=!0;v=(r===void 0?0:r)?iot(F4X,V2(v)+".js"):iot(HOw,V2(v)+ ".js");g.jK(J,v);(Y=(Y.GoogleTyFxhYEET||{})[J.src])?Y():G.getElementsByTagName("head")[0].appendChild(J)}; Qlm=function(){try{var v,J;return!!((v=window)==null?0:(J=v.top)==null?0:J.location.href)&&!1}catch(G){return!0}}; LM=function(){var v=W48();v=v===void 0?"bevasrsg":v;return new Promise(function(J){var G=window===window.top?window:Qlm()?window:window.top,K=G[v],V;((V=K)==null?0:V.bevasrs)?J(new pM(K.bevasrs)):(K||(K={},K=(K.nqfbel=[],K),G[v]=K),K.nqfbel.push(function(Y){J(new pM(Y))}))})}; Cq2=function(v){var J={c:v.pZ,e:v.M7,mc:v.hc,me:v.Nh};v.FQ&&(J.co={c:v.FQ.kM,a:v.FQ.U3,s:v.FQ.lq});return J}; yq=function(v){g.X.call(this);this.wpc=v}; pM=function(v){g.X.call(this);var J=this;this.EN=v;this.Z="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.T=void 0;this.Ue=this.EN.p;this.L=this.Ql.bind(this);this.addOnDisposeCallback(function(){return void bOm(J)})}; jYr=function(v){var J;return g.m(function(G){if(G.T==1){if(!v.EN.wpc)throw new GA(30,"NWA");return v.X?G.return(v.X):g.U(G,v.EN.wpc(),2)}J=G.X;v.X=new yq(J);return G.return(v.X)})}; bOm=function(v){v.T!==void 0&&(v.Z.forEach(function(J){var G;(G=v.T)==null||G.removeEventListener(J,v.L)}),v.T=void 0)}; v3w=function(v){if(g.s8(g.Yy(v)))return!1;if(v.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var J=new g.RW(v)}catch(G){return g.MS(iLj,function(K){return v.search(K)>0})!=null}return J.j.match($Ks)?!0:g.MS(iLj,function(G){return v.match(G)!=null})!=null}; g.w0=function(v,J){return v.replace(J4w,function(G,K){try{var V=g.ky(J,K);if(V==null||V.toString()==null)return G;V=V.toString();if(V==""||!g.s8(g.Yy(V)))return encodeURIComponent(V).replace(/%2C/g,",")}catch(Y){}return G})}; O5=function(v,J){return Object.is(v,J)}; x2=function(v){var J=U5;U5=v;return J}; GKf=function(v){if(v.QS!==void 0){var J=mG;mG=!0;try{for(var G=g.n(v.QS),K=G.next();!K.done;K=G.next()){var V=K.value;V.bO||(v=void 0,V.bO=!0,GKf(V),(v=V.Gt)==null||v.call(V,V))}}finally{mG=J}}}; o3X=function(){var v;return((v=U5)==null?void 0:v.Dl)!==!1}; KjL=function(v){v&&(v.nC=0);return x2(v)}; Vpm=function(v,J){x2(J);if(v&&v.rp!==void 0&&v.g2!==void 0&&v.JA!==void 0){if(Sy(v))for(J=v.nC;Jv.nC;)v.rp.pop(),v.JA.pop(),v.g2.pop()}}; r4s=function(v,J,G){YGs(v);if(v.QS.length===0&&v.rp!==void 0)for(var K=0;K0}; qG8=function(v){v.rp!=null||(v.rp=[]);v.g2!=null||(v.g2=[]);v.JA!=null||(v.JA=[])}; YGs=function(v){v.QS!=null||(v.QS=[]);v.zO!=null||(v.zO=[])}; PtU=function(v){function J(){if(mG)throw Error("");if(U5!==null){var K=U5.nC++;qG8(U5);K0?" "+J:J))}}; g.Yf=function(v,J){if(v.classList)Array.prototype.forEach.call(J,function(V){g.Vj(v,V)}); else{var G={};Array.prototype.forEach.call(vY(v),function(V){G[V]=!0}); Array.prototype.forEach.call(J,function(V){G[V]=!0}); J="";for(var K in G)J+=J.length>0?" "+K:K;g.Jz(v,J)}}; g.rz=function(v,J){v.classList?v.classList.remove(J):g.K7(v,J)&&g.Jz(v,Array.prototype.filter.call(vY(v),function(G){return G!=J}).join(" "))}; g.qR=function(v,J){v.classList?Array.prototype.forEach.call(J,function(G){g.rz(v,G)}):g.Jz(v,Array.prototype.filter.call(vY(v),function(G){return!g.WN(J,G)}).join(" "))}; g.E3=function(v,J,G){G?g.Vj(v,J):g.rz(v,J)}; ltX=function(v,J){var G=!g.K7(v,J);g.E3(v,J,G)}; g.ej=function(){g.EF.call(this);this.T=0;this.endTime=this.startTime=null}; TSm=function(v,J){Array.isArray(J)||(J=[J]);J=J.map(function(G){return typeof G==="string"?G:G.property+" "+G.duration+"s "+G.timing+" "+G.delay+"s"}); g.ep(v,"transition",J.join(","))}; PY=function(v,J,G,K,V){g.ej.call(this);this.X=v;this.J=J;this.j=G;this.L=K;this.K=Array.isArray(V)?V:[V]}; pjF=function(v,J,G,K){return new PY(v,J,{opacity:G},{opacity:K},{property:"opacity",duration:J,timing:"ease-in",delay:0})}; y4s=function(v){v=pG(v);if(v=="")return null;var J=String(v.slice(0,4)).toLowerCase();if(("url("1||v&&v.split(")"),null;if(v.indexOf("(")>0){if(/"|'/.test(v))return null;J=/([\-\w]+)\(/g;for(var G;G=J.exec(v);)if(!(G[1].toLowerCase()in Lj8))return null}return v}; Dv=function(v,J){v=g.X2[v];return v&&v.prototype?(J=Object.getOwnPropertyDescriptor(v.prototype,J))&&J.get||null:null}; wjt=function(v){var J=g.X2.CSSStyleDeclaration;return J&&J.prototype&&J.prototype[v]||null}; OLf=function(v,J,G,K){if(v)return v.apply(J,K);if(g.tz&&document.documentMode<10){if(!J[G].call)throw Error("IE Clobbering detected");}else if(typeof J[G]!="function")throw Error("Clobbering detected");return J[G].apply(J,K)}; ftF=function(v){if(!v)return"";var J=document.createElement("div").style;UKj(v).forEach(function(G){var K=g.KI&&G in xKr?G:G.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");dT(K,"--")||dT(K,"var")||(G=OLf(mKt,v,v.getPropertyValue?"getPropertyValue":"getAttribute",[G])||"",G=y4s(G),G!=null&&OLf(SGr,J,J.setProperty?"setProperty":"setAttribute",[K,G]))}); return J.cssText||""}; UKj=function(v){g.HF(v)?v=g.vW(v):(v=g.fk(v),g.j5(v,"cssText"));return v}; g.I9=function(v){var J,G=J=0,K=!1;v=v.split(ZLw);for(var V=0;V.4?-1:1;return(J==0?null:J)==-1?"rtl":"ltr"}; g.dz=function(v){if(v instanceof hz||v instanceof zY||v instanceof n7)return v;if(typeof v.next=="function")return new hz(function(){return v}); if(typeof v[Symbol.iterator]=="function")return new hz(function(){return v[Symbol.iterator]()}); if(typeof v.zg=="function")return new hz(function(){return v.zg()}); throw Error("Not an iterator or iterable.");}; hz=function(v){this.X=v}; zY=function(v){this.X=v}; n7=function(v){hz.call(this,function(){return v}); this.Z=v}; s3=function(v,J,G,K,V,Y,r,E){this.T=v;this.K=J;this.Z=G;this.J=K;this.L=V;this.j=Y;this.X=r;this.U=E}; R9=function(v,J){if(J==0)return v.T;if(J==1)return v.X;var G=sA(v.T,v.Z,J),K=sA(v.Z,v.L,J);v=sA(v.L,v.X,J);G=sA(G,K,J);K=sA(K,v,J);return sA(G,K,J)}; kKj=function(v,J){var G=(J-v.T)/(v.X-v.T);if(G<=0)return 0;if(G>=1)return 1;for(var K=0,V=1,Y=0,r=0;r<8;r++){Y=R9(v,G);var E=(R9(v,G+1E-6)-Y)/1E-6;if(Math.abs(Y-J)<1E-6)return G;if(Math.abs(E)<1E-6)break;else Y1E-6&&r<8;r++)Y=0}; g.L7=function(v){g.X.call(this);this.j=1;this.Z=[];this.L=0;this.T=[];this.X={};this.K=!!v}; NSt=function(v,J,G){g.dQ(function(){v.apply(J,G)})}; g.yj=function(v){this.T=v}; wz=function(v){this.T=v}; atf=function(v){this.data=v}; A4j=function(v){return v===void 0||v instanceof atf?v:new atf(v)}; O3=function(v){this.T=v}; g.FjB=function(v){var J=v.creation;v=v.expiration;return!!v&&vg.$X()}; g.U3=function(v){this.T=v}; HLm=function(){}; xf=function(){}; mD=function(v){this.T=v;this.X=null}; Sj=function(v){if(v.T==null)throw Error("Storage mechanism: Storage unavailable");var J;(Mpm?v.isAvailable():(J=v.X)!=null?J:v.isAvailable())||zA(Error("Storage mechanism: Storage unavailable"))}; f7=function(){var v=null;try{v=g.X2.localStorage||null}catch(J){}mD.call(this,v)}; QYt=function(){var v=null;try{v=g.X2.sessionStorage||null}catch(J){}mD.call(this,v)}; Zv=function(v,J){this.X=v;this.T=J+"::"}; g.u6=function(v){var J=new f7;return J.isAvailable()?v?new Zv(J,v):J:null}; gz=function(v,J){this.T=v;this.X=J}; X6=function(v){this.T=[];if(v)a:{if(v instanceof X6){var J=v.dH();v=v.uj();if(this.T.length<=0){for(var G=this.T,K=0;K>>6:(Y<65536?E[G++]=224|Y>>>12:(E[G++]=240|Y>>>18,E[G++]=128|Y>>>12&63),E[G++]=128|Y>>> 6&63),E[G++]=128|Y&63);return E}; a9=function(v){for(var J=v.length;--J>=0;)v[J]=0}; Az=function(v,J,G,K,V){this.IM=v;this.ez=J;this.cF=G;this.WS=K;this.kG4=V;this.CV=v&&v.length}; F6=function(v,J){this.wf=v;this.Je=0;this.Sy=J}; HY=function(v,J){v.z4[v.pending++]=J&255;v.z4[v.pending++]=J>>>8&255}; MR=function(v,J,G){v.V$>16-G?(v.Bo|=J<>16-v.V$,v.V$+=G-16):(v.Bo|=J<>>=1,G<<=1;while(--J>0);return G>>>1}; i9j=function(v,J,G){var K=Array(16),V=0,Y;for(Y=1;Y<=15;Y++)K[Y]=V=V+G[Y-1]<<1;for(G=0;G<=J;G++)V=v[G*2+1],V!==0&&(v[G*2]=jdj(K[V]++,V))}; $Dr=function(v){var J;for(J=0;J<286;J++)v.rG[J*2]=0;for(J=0;J<30;J++)v.Oa[J*2]=0;for(J=0;J<19;J++)v.gP[J*2]=0;v.rG[512]=1;v.W7=v.WX=0;v.cV=v.matches=0}; vDr=function(v){v.V$>8?HY(v,v.Bo):v.V$>0&&(v.z4[v.pending++]=v.Bo);v.Bo=0;v.V$=0}; JUt=function(v,J,G){vDr(v);HY(v,G);HY(v,~G);NR.GF(v.z4,v.window,J,G,v.pending);v.pending+=G}; G2r=function(v,J,G,K){var V=J*2,Y=G*2;return v[V]>>7)];Qj(v,r,G);E=$5[r];E!==0&&(V-=v$[r],MR(v,V,E))}}while(K>1;r>=1;r--)WY(v,G,r);e=Y;do r=v.iQ[1],v.iQ[1]=v.iQ[v.Ye--],WY(v,G,1),K=v.iQ[1],v.iQ[--v.iM]=r,v.iQ[--v.iM]=K,G[e*2]=G[r*2]+G[K*2],v.depth[e]=(v.depth[r]>=v.depth[K]?v.depth[r]:v.depth[K])+1,G[r*2+1]=G[K*2+1]=e,v.iQ[1]=e++,WY(v,G,1);while(v.Ye>= 2);v.iQ[--v.iM]=v.iQ[1];r=J.wf;e=J.Je;K=J.Sy.IM;V=J.Sy.CV;Y=J.Sy.ez;var P=J.Sy.cF,D=J.Sy.kG4,t,B=0;for(t=0;t<=15;t++)v.uO[t]=0;r[v.iQ[v.iM]*2+1]=0;for(J=v.iM+1;J<573;J++){var I=v.iQ[J];t=r[r[I*2+1]*2+1]+1;t>D&&(t=D,B++);r[I*2+1]=t;if(!(I>e)){v.uO[t]++;var h=0;I>=P&&(h=Y[I-P]);var R=r[I*2];v.W7+=R*(t+h);V&&(v.WX+=R*(K[I*2+1]+h))}}if(B!==0){do{for(t=D-1;v.uO[t]===0;)t--;v.uO[t]--;v.uO[t+1]+=2;v.uO[D]--;B-=2}while(B>0);for(t=D;t!==0;t--)for(I=v.uO[t];I!==0;)K=v.iQ[--J],K>e||(r[K*2+1]!==t&&(v.W7+=(t- r[K*2+1])*r[K*2],r[K*2+1]=t),I--)}i9j(G,E,v.uO)}; Kyw=function(v,J,G){var K,V=-1,Y=J[1],r=0,E=7,e=4;Y===0&&(E=138,e=3);J[(G+1)*2+1]=65535;for(K=0;K<=G;K++){var P=Y;Y=J[(K+1)*2+1];++r>>=1)if(J&1&&v.rG[G*2]!==0)return 0;if(v.rG[18]!==0||v.rG[20]!==0||v.rG[26]!==0)return 1;for(G=32;G<256;G++)if(v.rG[G*2]!==0)return 1;return 0}; Gm=function(v,J,G){v.z4[v.Qf+v.cV*2]=J>>>8&255;v.z4[v.Qf+v.cV*2+1]=J&255;v.z4[v.qh+v.cV]=G&255;v.cV++;J===0?v.rG[G*2]++:(v.matches++,J--,v.rG[(C7[G]+256+1)*2]++,v.Oa[(J<256?i9[J]:i9[256+(J>>>7)])*2]++);return v.cV===v.z$-1}; K4=function(v,J){v.msg=oy[J];return J}; VZ=function(v){for(var J=v.length;--J>=0;)v[J]=0}; Y5=function(v){var J=v.state,G=J.pending;G>v.Te&&(G=v.Te);G!==0&&(NR.GF(v.output,J.z4,J.qk,G,v.RS),v.RS+=G,J.qk+=G,v.fm+=G,v.Te-=G,J.pending-=G,J.pending===0&&(J.qk=0))}; EE=function(v,J){var G=v.lm>=0?v.lm:-1,K=v.sR-v.lm,V=0;if(v.level>0){v.O1.dR===2&&(v.O1.dR=Y_w(v));Jv(v,v.zJ);Jv(v,v.Qv);Kyw(v,v.rG,v.zJ.Je);Kyw(v,v.Oa,v.Qv.Je);Jv(v,v.AO);for(V=18;V>=3&&v.gP[rUj[V]*2+1]===0;V--);v.W7+=3*(V+1)+5+5+4;var Y=v.W7+3+7>>>3;var r=v.WX+3+7>>>3;r<=Y&&(Y=r)}else Y=r=K+5;if(K+4<=Y&&G!==-1)MR(v,J?1:0,3),JUt(v,G,K);else if(v.strategy===4||r===Y)MR(v,2+(J?1:0),3),oDX(v,r_,q4);else{MR(v,4+(J?1:0),3);G=v.zJ.Je+1;K=v.Qv.Je+1;V+=1;MR(v,G-257,5);MR(v,K-1,5);MR(v,V-4,4);for(Y=0;Y>>8&255;v.z4[v.pending++]=J&255}; q_s=function(v,J){var G=v.PA,K=v.sR,V=v.LD,Y=v.gU,r=v.sR>v.D2-262?v.sR-(v.D2-262):0,E=v.window,e=v.Ix,P=v.d2,D=v.sR+258,t=E[K+V-1],B=E[K+V];v.LD>=v.bT&&(G>>=2);Y>v.Ni&&(Y=v.Ni);do{var I=J;if(E[I+V]===B&&E[I+V-1]===t&&E[I]===E[K]&&E[++I]===E[K+1]){K+=2;for(I++;E[++K]===E[++I]&&E[++K]===E[++I]&&E[++K]===E[++I]&&E[++K]===E[++I]&&E[++K]===E[++I]&&E[++K]===E[++I]&&E[++K]===E[++I]&&E[++K]===E[++I]&&KV){v.FU=J;V=I;if(I>=Y)break;t=E[K+V-1];B=E[K+V]}}}while((J=P[J&e])>r&&--G!== 0);return V<=v.Ni?V:v.Ni}; B$=function(v){var J=v.D2,G;do{var K=v.aI-v.Ni-v.sR;if(v.sR>=J+(J-262)){NR.GF(v.window,v.window,J,J,0);v.FU-=J;v.sR-=J;v.lm-=J;var V=G=v.Zo;do{var Y=v.head[--V];v.head[V]=Y>=J?Y-J:0}while(--G);V=G=J;do Y=v.d2[--V],v.d2[V]=Y>=J?Y-J:0;while(--G);K+=J}if(v.O1.Im===0)break;V=v.O1;G=v.window;Y=v.sR+v.Ni;var r=V.Im;r>K&&(r=K);r===0?G=0:(V.Im-=r,NR.GF(G,V.input,V.Ht,r,Y),V.state.wrap===1?V.Fm=Dm(V.Fm,G,r,Y):V.state.wrap===2&&(V.Fm=tv(V.Fm,G,r,Y)),V.Ht+=r,V.V3+=r,G=r);v.Ni+=G;if(v.Ni+v.A3>=3)for(K=v.sR-v.A3, v.Nj=v.window[K],v.Nj=(v.Nj<=3&&(v.Nj=(v.Nj<=3)if(G=Gm(v,v.sR-v.FU,v.sN-3),v.Ni-=v.sN,v.sN<=v.zM&&v.Ni>=3){v.sN--;do v.sR++,v.Nj=(v.Nj<=3&&(v.Nj=(v.Nj<4096)&&(v.sN=2));if(v.LD>=3&&v.sN<=v.LD){K=v.sR+v.Ni-3;G=Gm(v,v.sR-1-v.Jj,v.LD-3);v.Ni-=v.LD-1;v.LD-=2;do++v.sR<=K&&(v.Nj=(v.Nj<=3&&v.sR>0&&(K=v.sR-1,G=Y[K],G===Y[++K]&&G===Y[++K]&&G===Y[++K])){for(V=v.sR+258;G===Y[++K]&&G===Y[++K]&&G===Y[++K]&&G===Y[++K]&&G===Y[++K]&&G===Y[++K]&&G===Y[++K]&&G===Y[++K]&&Kv.Ni&&(v.sN=v.Ni)}v.sN>=3?(G=Gm(v,1,v.sN-3),v.Ni-=v.sN,v.sR+=v.sN,v.sN=0):(G=Gm(v,0,v.window[v.sR]),v.Ni--,v.sR++);if(G&&(EE(v,!1),v.O1.Te===0))return 1}v.A3=0;return J=== 4?(EE(v,!0),v.O1.Te===0?3:4):v.cV&&(EE(v,!1),v.O1.Te===0)?1:2}; eL2=function(v,J){for(var G;;){if(v.Ni===0&&(B$(v),v.Ni===0)){if(J===0)return 1;break}v.sN=0;G=Gm(v,0,v.window[v.sR]);v.Ni--;v.sR++;if(G&&(EE(v,!1),v.O1.Te===0))return 1}v.A3=0;return J===4?(EE(v,!0),v.O1.Te===0?3:4):v.cV&&(EE(v,!1),v.O1.Te===0)?1:2}; zm=function(v,J,G,K,V){this.b7r=v;this.Cdb=J;this.Wk7=G;this.JRe=K;this.func=V}; PIm=function(){this.O1=null;this.status=0;this.z4=null;this.wrap=this.pending=this.qk=this.Mn=0;this.nY=null;this.sV=0;this.method=8;this.Z4=-1;this.Ix=this.vk=this.D2=0;this.window=null;this.aI=0;this.head=this.d2=null;this.gU=this.bT=this.strategy=this.level=this.zM=this.PA=this.LD=this.Ni=this.FU=this.sR=this.PJ=this.Jj=this.sN=this.lm=this.nz=this.Lz=this.r7=this.Zo=this.Nj=0;this.rG=new NR.lX(1146);this.Oa=new NR.lX(122);this.gP=new NR.lX(78);VZ(this.rG);VZ(this.Oa);VZ(this.gP);this.AO=this.Qv= this.zJ=null;this.uO=new NR.lX(16);this.iQ=new NR.lX(573);VZ(this.iQ);this.iM=this.Ye=0;this.depth=new NR.lX(573);VZ(this.depth);this.V$=this.Bo=this.A3=this.matches=this.WX=this.W7=this.Qf=this.cV=this.z$=this.qh=0}; DDF=function(v,J){if(!v||!v.state||J>5||J<0)return v?K4(v,-2):-2;var G=v.state;if(!v.output||!v.input&&v.Im!==0||G.status===666&&J!==4)return K4(v,v.Te===0?-5:-2);G.O1=v;var K=G.Z4;G.Z4=J;if(G.status===42)if(G.wrap===2)v.Fm=0,ew(G,31),ew(G,139),ew(G,8),G.nY?(ew(G,(G.nY.text?1:0)+(G.nY.vD?2:0)+(G.nY.extra?4:0)+(G.nY.name?8:0)+(G.nY.comment?16:0)),ew(G,G.nY.time&255),ew(G,G.nY.time>>8&255),ew(G,G.nY.time>>16&255),ew(G,G.nY.time>>24&255),ew(G,G.level===9?2:G.strategy>=2||G.level<2?4:0),ew(G,G.nY.os& 255),G.nY.extra&&G.nY.extra.length&&(ew(G,G.nY.extra.length&255),ew(G,G.nY.extra.length>>8&255)),G.nY.vD&&(v.Fm=tv(v.Fm,G.z4,G.pending,0)),G.sV=0,G.status=69):(ew(G,0),ew(G,0),ew(G,0),ew(G,0),ew(G,0),ew(G,G.level===9?2:G.strategy>=2||G.level<2?4:0),ew(G,3),G.status=113);else{var V=8+(G.vk-8<<4)<<8;V|=(G.strategy>=2||G.level<2?0:G.level<6?1:G.level===6?2:3)<<6;G.sR!==0&&(V|=32);G.status=113;P$(G,V+(31-V%31));G.sR!==0&&(P$(G,v.Fm>>>16),P$(G,v.Fm&65535));v.Fm=1}if(G.status===69)if(G.nY.extra){for(V= G.pending;G.sV<(G.nY.extra.length&65535)&&(G.pending!==G.Mn||(G.nY.vD&&G.pending>V&&(v.Fm=tv(v.Fm,G.z4,G.pending-V,V)),Y5(v),V=G.pending,G.pending!==G.Mn));)ew(G,G.nY.extra[G.sV]&255),G.sV++;G.nY.vD&&G.pending>V&&(v.Fm=tv(v.Fm,G.z4,G.pending-V,V));G.sV===G.nY.extra.length&&(G.sV=0,G.status=73)}else G.status=73;if(G.status===73)if(G.nY.name){V=G.pending;do{if(G.pending===G.Mn&&(G.nY.vD&&G.pending>V&&(v.Fm=tv(v.Fm,G.z4,G.pending-V,V)),Y5(v),V=G.pending,G.pending===G.Mn)){var Y=1;break}Y=G.sVV&&(v.Fm=tv(v.Fm,G.z4,G.pending-V,V));Y===0&&(G.sV=0,G.status=91)}else G.status=91;if(G.status===91)if(G.nY.comment){V=G.pending;do{if(G.pending===G.Mn&&(G.nY.vD&&G.pending>V&&(v.Fm=tv(v.Fm,G.z4,G.pending-V,V)),Y5(v),V=G.pending,G.pending===G.Mn)){Y=1;break}Y=G.sVV&&(v.Fm=tv(v.Fm,G.z4,G.pending-V,V));Y===0&&(G.status=103)}else G.status= 103;G.status===103&&(G.nY.vD?(G.pending+2>G.Mn&&Y5(v),G.pending+2<=G.Mn&&(ew(G,v.Fm&255),ew(G,v.Fm>>8&255),v.Fm=0,G.status=113)):G.status=113);if(G.pending!==0){if(Y5(v),v.Te===0)return G.Z4=-1,0}else if(v.Im===0&&(J<<1)-(J>4?9:0)<=(K<<1)-(K>4?9:0)&&J!==4)return K4(v,-5);if(G.status===666&&v.Im!==0)return K4(v,-5);if(v.Im!==0||G.Ni!==0||J!==0&&G.status!==666){K=G.strategy===2?eL2(G,J):G.strategy===3?EDB(G,J):n4[G.level].func(G,J);if(K===3||K===4)G.status=666;if(K===1||K===3)return v.Te===0&&(G.Z4= -1),0;if(K===2&&(J===1?(MR(G,2,3),Qj(G,256,r_),G.V$===16?(HY(G,G.Bo),G.Bo=0,G.V$=0):G.V$>=8&&(G.z4[G.pending++]=G.Bo&255,G.Bo>>=8,G.V$-=8)):J!==5&&(MR(G,0,3),JUt(G,0,0),J===3&&(VZ(G.head),G.Ni===0&&(G.sR=0,G.lm=0,G.A3=0))),Y5(v),v.Te===0))return G.Z4=-1,0}if(J!==4)return 0;if(G.wrap<=0)return 1;G.wrap===2?(ew(G,v.Fm&255),ew(G,v.Fm>>8&255),ew(G,v.Fm>>16&255),ew(G,v.Fm>>24&255),ew(G,v.V3&255),ew(G,v.V3>>8&255),ew(G,v.V3>>16&255),ew(G,v.V3>>24&255)):(P$(G,v.Fm>>>16),P$(G,v.Fm&65535));Y5(v);G.wrap>0&& (G.wrap=-G.wrap);return G.pending!==0?0:1}; d_=function(v){if(!(this instanceof d_))return new d_(v);v=this.options=NR.assign({level:-1,method:8,chunkSize:16384,BL:15,Rwr:8,strategy:0,CO:""},v||{});v.raw&&v.BL>0?v.BL=-v.BL:v.AtU&&v.BL>0&&v.BL<16&&(v.BL+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.O1=new tdB;this.O1.Te=0;var J=this.O1;var G=v.level,K=v.method,V=v.BL,Y=v.Rwr,r=v.strategy;if(J){var E=1;G===-1&&(G=6);V<0?(E=0,V=-V):V>15&&(E=2,V-=16);if(Y<1||Y>9||K!==8||V<8||V>15||G<0||G>9||r<0||r>4)J=K4(J,-2);else{V===8&&(V=9); var e=new PIm;J.state=e;e.O1=J;e.wrap=E;e.nY=null;e.vk=V;e.D2=1<>=7;Y<30;Y++)for(v$[Y]=r<<7,V=0;V<1<<$5[Y]-7;V++)i9[256+r++]=Y;for(V=0;V<=15;V++)K[V]=0;for(V=0;V<=143;)r_[V*2+1]=8,V++,K[8]++;for(;V<=255;)r_[V*2+1]=9,V++,K[9]++;for(;V<=279;)r_[V*2+1]=7,V++,K[7]++;for(;V<=287;)r_[V*2+1]=8,V++,K[8]++;i9j(r_,287,K);for(V=0;V<30;V++)q4[V*2+1]=5,q4[V*2]=jdj(V,5);IWr=new Az(r_,b6,257,286,15);hLF=new Az(q4,$5,0,30,15);zLF=new Az([],nDB,0,19,7);Blr=!0}G.zJ=new F6(G.rG, IWr);G.Qv=new F6(G.Oa,hLF);G.AO=new F6(G.gP,zLF);G.Bo=0;G.V$=0;$Dr(G);G=0}else G=K4(J,-2);G===0&&(J=J.state,J.aI=2*J.D2,VZ(J.head),J.zM=n4[J.level].Cdb,J.bT=n4[J.level].b7r,J.gU=n4[J.level].Wk7,J.PA=n4[J.level].JRe,J.sR=0,J.lm=0,J.Ni=0,J.A3=0,J.sN=J.LD=2,J.PJ=0,J.Nj=0);J=G}}else J=-2;if(J!==0)throw Error(oy[J]);v.header&&(J=this.O1)&&J.state&&J.state.wrap===2&&(J.state.nY=v.header);if(v.tU){var P;typeof v.tU==="string"?P=bLU(v.tU):dDX.call(v.tU)==="[object ArrayBuffer]"?P=new Uint8Array(v.tU):P=v.tU; v=this.O1;Y=P;r=Y.length;if(v&&v.state)if(P=v.state,J=P.wrap,J===2||J===1&&P.status!==42||P.Ni)J=-2;else{J===1&&(v.Fm=Dm(v.Fm,Y,r,0));P.wrap=0;r>=P.D2&&(J===0&&(VZ(P.head),P.sR=0,P.lm=0,P.A3=0),G=new NR.Xv(P.D2),NR.GF(G,Y,r-P.D2,P.D2,0),Y=G,r=P.D2);G=v.Im;K=v.Ht;V=v.input;v.Im=r;v.Ht=0;v.input=Y;for(B$(P);P.Ni>=3;){Y=P.sR;r=P.Ni-2;do P.Nj=(P.Nj<=4||((0,G[7])(((0,G[12])(G[79],G[43]),G[48])(G[39],G[5]),G[49],G[77],G[47]),0))&&(0,G[11])((0,G[49])(G[68],(0,G[58])(),G[85]),G[32],(0,G[49])(G[68],(0,G[50])(),G[63]),G[31],G[68])}catch(K){(0,G[49])(G[12],(0,G[19])(),G[85])}finally{G[55]<=1&&(0,G[22])(G[12]),G[62]>=-9&&(G[17]==-2?(((((0,G[79])(G[4],G[12]),G[49])(G[68],(0,G[19])(),G[85]),(0,G[49])(G[54],(0,G[50])(),G[63]),G[36])((0,G[32])((0,G[76])(G[86], G[35]),G[49],G[68],(0,G[58])(),G[85]),G[49],(0,G[32])((0,G[79])(G[27],G[68]),G[79],G[18],G[54]),G[68],(0,G[19])(),G[63]),G[36])((0,G[32])((0,G[22])(G[13]),G[31],G[12]),G[79],(0,G[73])(G[57],G[68]),G[67],G[30]),G[32])((0,G[79])(G[72],G[12]),G[76],G[43],G[68]):((((((0,G[22])(G[68]),(0,G[52])(G[30],G[21]),G[32])((0,G[37])(G[46],G[30]),G[2],G[21],(0,G[3])(),G[38]),G[77])(G[new Date($s[41])/1E3],G[75]),G[38])(G[24],G[55]),(0,G[47])((0,G[3])(G[36],G[65]),G[0],((0,G[43])((0,G[63])(G[65],G[19]),G[63],G[24], G[67]),G[63])(G[41],G[21])&(0,G[63])(G[41],G[72]),G[51],G[23]),G[63])(G[79],G[70]),G[48])(G[81],G[24]))}try{(G[28]<-1||((0,G[66])(G[48]),0))&&(0,G[20])(G[40],G[47]),G[52]!==9&&(0,G[20])(G[30],G[24]),G[63]!=3&&(G[16]!==-3&&((0,G[67])((0,G[67])((0,G[new Date($s[37])/1E3])(G[28],G[65]),G[84],G[74]),G[77],G[47],G[75]),1)||(0,G[6])(((0,G[23])(G[74],(0,G[81])(),G[37]),G[23])(G[42],(0,G[24])(),G[new Date($s[46])/1E3]),G[11],G[53],G[42]))}catch(K){(0,G[6])(((0,G[23])(G[42],(0,G[32])(),G[37]),G[54])(G[48], G[51]),G[54],G[15],G[4])}finally{G[35]==9?((((((0,G[54])(G[56],G[9]),G[47])(G[18],G[42]),G[54])(G[36],G[74]),((0,G[23])(G[51],(0,G[8])(),G[37]),G[84])(G[new Date($s[18])/1E3])>>>(0,G[84])(G[75])|(0,G[54])(G[0],G[74]),G[6])((0,G[11])(G[59],G[42]),G[5],G[51]),(0,G[6])((0,G[10])((0,G[54])(G[12],G[51]),G[54],(0,G[26])(G[51],G[64]),G[7],G[51]),G[23],G[74],(0,G[32])(),G[60]))>=(0,G[23])(G[74],(0,G[24])(),G[37]),((0,G[54])(G[43],G[4]),G[54])(G[16],G[42])):(0,G[10])(((0,G[3])((0,G[88])(G[78],G[51]),(0,G[5])(G[42]), (((0,G[23])(G[51],(0,G[32])(),G[37]),G[26])(G[9],G[29]),G[6])((0,G[54])(G[19],G[42]),G[11],G[71],G[74])*(0,G[11])(G[34],G[75]),(0,G[69])(G[48],G[61]),(0,G[69])(G[54],G[new Date($s[9])/1E3]),(0,G[10])(G[8],G[5]),G[17],G[3],G[14]),(0,G[40])(G[23],G[38])>=(0,G[52])(G[37],G[32]),G[10])(G[80],G[37]),G[52],(0,G[51])(G[79],G[14]),G[38],G[12]),G[83]<=6&&(G[73]>-6?(((0,G[51])(G[74],G[56]),G[76])(G[52],G[new Date($s[38])/1E3]),G[49])(G[25],G[41]):((0,G[87])(G[8],G[75]),(0,G[55])(G[17],(0,G[24])(),G[69]),G[49])(G[29], G[18]))}}catch(K){return $s[14]+v}return J.join($s[3])}; S_F=function(v){return v,$s[42][0+!!v]}; g.L4=function(v){this.name=v}; fWt=function(v){v=kO(v);Z6(this);this.ud=v}; yZ=function(v){v=kO(v);Z6(this);this.ud=v}; w_=function(v){v=kO(v);Z6(this);this.ud=v}; Z9U=function(v){v=kO(v);Z6(this);this.ud=v}; OE=function(v){v=kO(v);Z6(this);this.ud=v}; UE=function(v){v=kO(v);Z6(this);this.ud=v}; x5=function(v){v=kO(v);Z6(this);this.ud=v}; mO=function(v){v=kO(v);Z6(this);this.ud=v}; Sw=function(v){v=kO(v);Z6(this);this.ud=v}; f4=function(v){v=kO(v);Z6(this);this.ud=v}; Zm=function(v){v=kO(v);Z6(this);this.ud=v}; u9=function(v){v=kO(v);Z6(this);this.ud=v}; g_=function(v){v=kO(v);Z6(this);this.ud=v}; X4=function(v){v=kO(v);Z6(this);this.ud=v}; k5=function(v){v=kO(v);Z6(this);this.ud=v}; c$=function(v){v=kO(v,500);Z6(this);this.ud=v}; N4=function(v){v=kO(v);Z6(this);this.ud=v}; ay=function(v){v=kO(v);Z6(this);this.ud=v}; uNX=function(v){v=kO(v);Z6(this);this.ud=v}; gDj=function(){return g.NL("yt.ads.biscotti.lastId_")||""}; XVr=function(v){g.ks("yt.ads.biscotti.lastId_",v)}; F4=function(){var v=arguments,J=Av;v.length>1?J[v[0]]=v[1]:v.length===1&&Object.assign(J,v[0])}; g.H$=function(v,J){return v in Av?Av[v]:J}; M4=function(v){var J=Av.EXPERIMENT_FLAGS;return J?J[v]:void 0}; k2m=function(v){C4.forEach(function(J){return J(v)})}; g.jk=function(v){return v&&window.yterr?function(){try{return v.apply(this,arguments)}catch(J){g.b9(J)}}:v}; g.b9=function(v){var J=g.NL("yt.logging.errors.log");J?J(v,"ERROR",void 0,void 0,void 0,void 0,void 0):(J=g.H$("ERRORS",[]),J.push([v,"ERROR",void 0,void 0,void 0,void 0,void 0]),F4("ERRORS",J));k2m(v)}; iR=function(v,J,G,K,V){var Y=g.NL("yt.logging.errors.log");Y?Y(v,"WARNING",J,G,K,void 0,V):(Y=g.H$("ERRORS",[]),Y.push([v,"WARNING",J,G,K,void 0,V]),F4("ERRORS",Y))}; $6=function(v,J){J=v.split(J);for(var G={},K=0,V=J.length;K1?v[1]:v[0])):{}}; KE=function(v,J){return AUs(v,J||{},!0)}; Vl=function(v,J){return AUs(v,J||{},!1)}; AUs=function(v,J,G){var K=v.split("#",2);v=K[0];K=K.length>1?"#"+K[1]:"";var V=v.split("?",2);v=V[0];V=Jh(V[1]||"");for(var Y in J)if(G||!g.Zp(V,Y))V[Y]=J[Y];return g.vt(v,V)+K}; Y6=function(v){if(!J)var J=window.location.href;var G=g.Qr(1,v),K=g.Wp(v);G&&K?(v=v.match(MC),J=J.match(MC),v=v[3]==J[3]&&v[1]==J[1]&&v[4]==J[4]):v=K?g.Wp(J)===K&&(Number(g.Qr(4,J))||null)===(Number(g.Qr(4,v))||null):!0;return v}; rx=function(v){v||(v=document.location.href);v=g.Qr(1,v);return v!==null&&v==="https"}; qA=function(v){v=Fy2(v);return v===null?!1:v[0]==="com"&&v[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; H9m=function(v){v=Fy2(v);return v===null?!1:v[1]==="google"?!0:v[2]==="google"?v[0]==="au"&&v[1]==="com"?!0:v[0]==="uk"&&v[1]==="co"?!0:!1:!1}; Fy2=function(v){v=g.Wp(v);return v!==null?v.split(".").reverse():null}; cUX=function(v){return v&&v.match(MdB)?v:Kk(v)}; Py=function(v){var J=Ei;v=v===void 0?gDj():v;var G=Object,K=G.assign,V=ek(J);var Y=J.T;try{var r=Y.screenX;var E=Y.screenY}catch(L){}try{var e=Y.outerWidth;var P=Y.outerHeight}catch(L){}try{var D=Y.innerWidth;var t=Y.innerHeight}catch(L){}try{var B=Y.screenLeft;var I=Y.screenTop}catch(L){}try{D=Y.innerWidth,t=Y.innerHeight}catch(L){}try{var h=Y.screen.availWidth;var R=Y.screen.availTop}catch(L){}Y=[B,I,r,E,h,R,e,P,D,t];r=P7m(!1,J.T.top);E={};var T=T===void 0?g.X2:T;e=new N3;"SVGElement"in T&&"createElementNS"in T.document&&e.set(0);P=ppU();P["allow-top-navigation-by-user-activation"]&&e.set(1);P["allow-popups-to-escape-sandbox"]&&e.set(2);T.crypto&&T.crypto.subtle&&e.set(3);"TextDecoder"in T&&"TextEncoder"in T&&e.set(4);T=n3s(e);J=(E.bc=T,E.bih=r.height,E.biw=r.width,E.brdim=Y.join(),E.vis=zU(J.X),E.wgl=!!B_.WebGLRenderingContext,E);G=K.call(G,V,J);G.ca_type="image";v&&(G.bid=v);return G}; ek=function(v){var J={};J.dt=QdU;J.flash="0";a:{try{var G=v.T.top.location.href}catch(D){v=2;break a}v=G?G===v.X.location.href?0:1:2}J=(J.frm=v,J);try{J.u_tz=-(new Date).getTimezoneOffset();var K=K===void 0?B_:K;try{var V=K.history.length}catch(D){V=0}J.u_his=V;var Y;J.u_h=(Y=B_.screen)==null?void 0:Y.height;var r;J.u_w=(r=B_.screen)==null?void 0:r.width;var E;J.u_ah=(E=B_.screen)==null?void 0:E.availHeight;var e;J.u_aw=(e=B_.screen)==null?void 0:e.availWidth;var P;J.u_cd=(P=B_.screen)==null?void 0: P.colorDepth}catch(D){}return J}; CIF=function(){if(!WyB)return null;var v=WyB();return"open"in v?v:null}; g.th=function(v){switch(D8(v)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; D8=function(v){return v&&"status"in v?v.status:-1}; g.By=function(v,J){typeof v==="function"&&(v=g.jk(v));return window.setTimeout(v,J)}; g.IS=function(v,J){typeof v==="function"&&(v=g.jk(v));return window.setInterval(v,J)}; g.hh=function(v){window.clearTimeout(v)}; g.ze=function(v){window.clearInterval(v)}; g.dx=function(v){v=nE(v);return typeof v==="string"&&v==="false"?!1:!!v}; g.si=function(v,J){v=nE(v);return v===void 0&&J!==void 0?J:Number(v||0)}; RS=function(){return g.H$("EXPERIMENTS_TOKEN","")}; nE=function(v){return g.H$("EXPERIMENT_FLAGS",{})[v]}; lR=function(){for(var v=[],J=g.H$("EXPERIMENTS_FORCED_FLAGS",{}),G=g.n(Object.keys(J)),K=G.next();!K.done;K=G.next())K=K.value,v.push({key:K,value:String(J[K])});G=g.H$("EXPERIMENT_FLAGS",{});K=g.n(Object.keys(G));for(var V=K.next();!V.done;V=K.next())V=V.value,V.startsWith("force_")&&J[V]===void 0&&v.push({key:V,value:String(G[V])});return v}; Te=function(v,J,G,K,V,Y,r,E){function e(){(P&&"readyState"in P?P.readyState:0)===4&&J&&g.jk(J)(P)} G=G===void 0?"GET":G;K=K===void 0?"":K;E=E===void 0?!1:E;var P=CIF();if(!P)return null;"onloadend"in P?P.addEventListener("loadend",e,!1):P.onreadystatechange=e;g.dx("debug_forward_web_query_parameters")&&(v=b9s(v,window.location.search));P.open(G,v,!0);Y&&(P.responseType=Y);r&&(P.withCredentials=!0);G=G==="POST"&&(window.FormData===void 0||!(K instanceof FormData));if(V=jJF(v,V))for(var D in V)P.setRequestHeader(D,V[D]),"content-type"===D.toLowerCase()&&(G=!1);G&&P.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");if(E&&"setAttributionReporting"in XMLHttpRequest.prototype){v={eventSourceEligible:!0,triggerEligible:!1};try{P.setAttributionReporting(v)}catch(t){iR(t)}}P.send(K);return P}; jJF=function(v,J){J=J===void 0?{}:J;var G=Y6(v),K=g.H$("INNERTUBE_CLIENT_NAME"),V=g.dx("web_ajax_ignore_global_headers_if_set"),Y;for(Y in iMj){var r=g.H$(iMj[Y]),E=Y==="X-Goog-AuthUser"||Y==="X-Goog-PageId";Y!=="X-Goog-Visitor-Id"||r||(r=g.H$("VISITOR_DATA"));var e;if(!(e=!r)){if(!(e=G||(g.Wp(v)?!1:!0))){e=v;var P;if(P=g.dx("add_auth_headers_to_remarketing_google_dot_com_ping")&&Y==="Authorization"&&(K==="TVHTML5"||K==="TVHTML5_UNPLUGGED"||K==="TVHTML5_SIMPLY")&&H9m(e))e=Hp(g.Qr(5,e))||"",e=e.split("/"), e="/"+(e.length>1?e[1]:""),P=e==="/pagead";e=P?!0:!1}e=!e}e||V&&J[Y]!==void 0||K==="TVHTML5_UNPLUGGED"&&E||(J[Y]=r)}"X-Goog-EOM-Visitor-Id"in J&&"X-Goog-Visitor-Id"in J&&delete J["X-Goog-Visitor-Id"];if(G||!g.Wp(v))J["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(G||!g.Wp(v)){try{var D=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(t){}D&&(J["X-YouTube-Time-Zone"]=D)}document.location.hostname.endsWith("youtubeeducation.com")||!G&&g.Wp(v)||(J["X-YouTube-Ad-Signals"]= vy(Py()));return J}; v2m=function(v,J){var G=g.Wp(v);g.dx("debug_handle_relative_url_for_query_forward_killswitch")||!G&&Y6(v)&&(G=document.location.hostname);var K=Hp(g.Qr(5,v));K=(G=G&&(G.endsWith("youtube.com")||G.endsWith("youtube-nocookie.com")))&&K&&K.startsWith("/api/");if(!G||K)return v;var V=Jh(J),Y={};g.PW($3j,function(r){V[r]&&(Y[r]=V[r])}); return Vl(v,Y)}; LE=function(v,J){J.method="POST";J.postParams||(J.postParams={});return g.pE(v,J)}; o2B=function(v,J){if(window.fetch&&J.format!=="XML"){var G={method:J.method||"GET",credentials:"same-origin"};J.headers&&(G.headers=J.headers);J.priority&&(G.priority=J.priority);v=JSw(v,J);var K=Glf(v,J);K&&(G.body=K);J.withCredentials&&(G.credentials="include");var V=J.context||g.X2,Y=!1,r;fetch(v,G).then(function(E){if(!Y){Y=!0;r&&g.hh(r);var e=E.ok,P=function(D){D=D||{};e?J.onSuccess&&J.onSuccess.call(V,D,E):J.onError&&J.onError.call(V,D,E);J.onFinish&&J.onFinish.call(V,D,E)}; (J.format||"JSON")==="JSON"&&(e||E.status>=400&&E.status<500)?E.json().then(P,function(){P(null)}):P(null)}}).catch(function(){J.onError&&J.onError.call(V,{},{})}); v=J.timeout||0;J.onFetchTimeout&&v>0&&(r=g.By(function(){Y||(Y=!0,g.hh(r),J.onFetchTimeout.call(J.context||g.X2))},v))}else g.pE(v,J)}; g.pE=function(v,J){var G=J.format||"JSON";v=JSw(v,J);var K=Glf(v,J),V=!1,Y=KGf(v,function(e){if(!V){V=!0;E&&g.hh(E);var P=g.th(e),D=null,t=400<=e.status&&e.status<500,B=500<=e.status&&e.status<600;if(P||t||B)D=Vy8(v,G,e,J.convertToSafeHtml);P&&(P=Y5F(G,e,D));D=D||{};t=J.context||g.X2;P?J.onSuccess&&J.onSuccess.call(t,e,D):J.onError&&J.onError.call(t,e,D);J.onFinish&&J.onFinish.call(t,e,D)}},J.method,K,J.headers,J.responseType,J.withCredentials); K=J.timeout||0;if(J.onTimeout&&K>0){var r=J.onTimeout;var E=g.By(function(){V||(V=!0,Y.abort(),g.hh(E),r.call(J.context||g.X2,Y))},K)}return Y}; JSw=function(v,J){J.includeDomain&&(v=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+v);var G=g.H$("XSRF_FIELD_NAME");if(J=J.urlParams)J[G]&&delete J[G],v=KE(v,J);return v}; Glf=function(v,J){var G=g.H$("XSRF_FIELD_NAME"),K=g.H$("XSRF_TOKEN"),V=J.postBody||"",Y=J.postParams,r=g.H$("XSRF_FIELD_NAME"),E;J.headers&&(E=J.headers["Content-Type"]);J.excludeXsrf||g.Wp(v)&&!J.withCredentials&&g.Wp(v)!==document.location.hostname||J.method!=="POST"||E&&E!=="application/x-www-form-urlencoded"||J.postParams&&J.postParams[r]||(Y||(Y={}),Y[G]=K);(g.dx("ajax_parse_query_data_only_when_filled")&&Y&&Object.keys(Y).length>0||Y)&&typeof V==="string"&&(V=Jh(V),g.HR(V,Y),V=J.postBodyFormat&& J.postBodyFormat==="JSON"?JSON.stringify(V):g.$l(V));Y=V||Y&&!g.Xb(Y);!rS2&&Y&&J.method!=="POST"&&(rS2=!0,g.b9(Error("AJAX request with postData should use POST")));return V}; Vy8=function(v,J,G,K){var V=null;switch(J){case "JSON":try{var Y=G.responseText}catch(r){throw K=Error("Error reading responseText"),K.params=v,iR(K),r;}v=G.getResponseHeader("Content-Type")||"";Y&&v.indexOf("json")>=0&&(Y.substring(0,5)===")]}'\n"&&(Y=Y.substring(5)),V=JSON.parse(Y));break;case "XML":if(v=(v=G.responseXML)?q5r(v):null)V={},g.PW(v.getElementsByTagName("*"),function(r){V[r.tagName]=E28(r)})}K&&ewf(V); return V}; ewf=function(v){if(g.ML(v))for(var J in v)J==="html_content"||XFf(J,"_html")?v[J]=Fa(v[J]):ewf(v[J])}; Y5F=function(v,J,G){if(J&&J.status===204)return!0;switch(v){case "JSON":return!!G;case "XML":return Number(G&&G.return_code)===0;case "RAW":return!0;default:return!!G}}; q5r=function(v){return v?(v=("responseXML"in v?v.responseXML:v).getElementsByTagName("root"))&&v.length>0?v[0]:null:null}; E28=function(v){var J="";g.PW(v.childNodes,function(G){J+=G.nodeValue}); return J}; wx=function(v,J){var G=g.Ni(J),K;return(new g.yr(function(V,Y){G.onSuccess=function(r){g.th(r)?V(new P4t(r)):Y(new yl("Request failed, status="+D8(r),"net.badstatus",r))}; G.onError=function(r){Y(new yl("Unknown request error","net.unknown",r))}; G.onTimeout=function(r){Y(new yl("Request timed out","net.timeout",r))}; K=g.pE(v,G)})).pj(function(V){if(V instanceof ZJ){var Y; (Y=K)==null||Y.abort()}return UF(V)})}; g.Oi=function(v,J,G,K){function V(E,e,P){return E.pj(function(D){if(e<=0||D8(D.xhr)===403)return UF(new yl("Request retried too many times","net.retryexhausted",D.xhr,D));D=Math.pow(2,G-e+1)*P;var t=r>0?Math.min(r,D):D;return Y(P).then(function(){return V(wx(v,J),e-1,t)})})} function Y(E){return new g.yr(function(e){setTimeout(e,E)})} var r=r===void 0?-1:r;return V(wx(v,J),G-1,K)}; yl=function(v,J,G){to.call(this,v+", errorCode="+J);this.errorCode=J;this.xhr=G;this.name="PromiseAjaxError"}; P4t=function(v){this.xhr=v}; Ui=function(v){this.T=v===void 0?null:v;this.Z=0;this.X=null}; x6=function(v){var J=new Ui;v=v===void 0?null:v;J.Z=2;J.X=v===void 0?null:v;return J}; ma=function(v){var J=new Ui;v=v===void 0?null:v;J.Z=1;J.X=v===void 0?null:v;return J}; g.Z8=function(v,J,G,K,V){Sk||fE.set(""+v,J,{xp:G,path:"/",domain:K===void 0?"youtube.com":K,secure:V===void 0?!1:V})}; g.uR=function(v,J){if(!Sk)return fE.get(""+v,J)}; g.gx=function(v,J,G){Sk||fE.remove(""+v,J===void 0?"/":J,G===void 0?"youtube.com":G)}; D3r=function(){if(g.dx("embeds_web_enable_cookie_detection_fix")){if(!g.X2.navigator.cookieEnabled)return!1}else if(!fE.isEnabled())return!1;if(!fE.isEmpty())return!0;g.dx("embeds_web_enable_cookie_detection_fix")?fE.set("TESTCOOKIESENABLED","1",{xp:60,Ek7:"none",secure:!0}):fE.set("TESTCOOKIESENABLED","1",{xp:60});if(fE.get("TESTCOOKIESENABLED")!=="1")return!1;fE.remove("TESTCOOKIESENABLED");return!0}; g.N=function(v,J){if(v)return v[J.name]}; XX=function(v){var J=g.H$("INNERTUBE_HOST_OVERRIDE");J&&(v=String(J)+String(CQ(v)));return v}; tys=function(v){var J={};g.dx("json_condensed_response")&&(J.prettyPrint="false");return v=Vl(v,J)}; k6=function(v,J){var G=G===void 0?{}:G;v={method:J===void 0?"POST":J,mode:Y6(v)?"same-origin":"cors",credentials:Y6(v)?"same-origin":"include"};J={};for(var K=g.n(Object.keys(G)),V=K.next();!V.done;V=K.next())V=V.value,G[V]&&(J[V]=G[V]);Object.keys(J).length>0&&(v.headers=J);return v}; cy=function(){var v=/Chrome\/(\d+)/.exec(g.wT());return v?parseFloat(v[1]):NaN}; NA=function(){var v=/\sCobalt\/(\S+)\s/.exec(g.wT());if(!v)return NaN;var J=[];v=g.n(v[1].split("."));for(var G=v.next();!G.done;G=v.next())G=parseInt(G.value,10),G>=0&&J.push(G);return parseFloat(J.join("."))}; Ah=function(){return g.aS("android")&&g.aS("chrome")&&!(g.aS("trident/")||g.aS("edge/"))&&!g.aS("cobalt")}; B0B=function(){return g.aS("armv7")||g.aS("aarch64")||g.aS("android")}; g.FX=function(){return g.aS("cobalt")}; Hy=function(){return g.aS("cobalt")&&g.aS("appletv")}; MA=function(){return g.aS("(ps3; leanback shell)")||g.aS("ps3")&&g.FX()}; I$m=function(){return g.aS("(ps4; leanback shell)")||g.aS("ps4")&&g.FX()}; g.hwm=function(){return g.FX()&&(g.aS("ps4 vr")||g.aS("ps4 pro vr"))}; Ql=function(){var v=/WebKit\/([0-9]+)/.exec(g.wT());return!!(v&&parseInt(v[1],10)>=600)}; Wy=function(){var v=/WebKit\/([0-9]+)/.exec(g.wT());return!!(v&&parseInt(v[1],10)>=602)}; zwt=function(){return g.aS("iemobile")||g.aS("windows phone")&&g.aS("edge")}; jW=function(){return(CE||bR)&&g.aS("applewebkit")&&!g.aS("version")&&(!g.aS("safari")||g.aS("gsa/"))}; $L=function(){return g.i$&&g.aS("version/")}; v8=function(){return g.aS("smart-tv")&&g.aS("samsung")}; g.aS=function(v){var J=g.wT();return J?J.toLowerCase().indexOf(v)>=0:!1}; JD=function(){return gOm()||jW()||$L()?!0:g.H$("EOM_VISITOR_DATA")?!1:!0}; GZ=function(v,J){return J===void 0||J===null?v:J==="1"||J===!0||J===1||J==="True"?!0:!1}; oP=function(v,J,G){for(var K in G)if(G[K]==J)return G[K];return v}; Kq=function(v,J){return J===void 0||J===null?v:Number(J)}; VC=function(v,J){return J===void 0||J===null?v:J.toString()}; YL=function(v,J){if(J){if(v==="fullwidth")return Infinity;if(v==="fullheight")return 0}return v&&(J=v.match(n2m))&&(v=Number(J[2]),J=Number(J[1]),!isNaN(v)&&!isNaN(J)&&v>0)?J/v:NaN}; rs=function(v){var J=v.docid||v.video_id||v.videoId||v.id;if(J)return J;J=v.raw_player_response;J||(v=v.player_response)&&(J=JSON.parse(v));return J&&J.videoDetails&&J.videoDetails.videoId||null}; d3B=function(v){return qk(v,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.E9=function(v){return v==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||v==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; qk=function(v,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 G=v.raw_embedded_player_response;if(!G&&(v=v.embedded_player_response))try{G=JSON.parse(v)}catch(K){return J}return G?oP(J,G.embeddedPlayerMode,sJ2):J}; P8=function(v){to.call(this,v.message||v.description||v.name);this.isMissing=v instanceof eW;this.isTimeout=v instanceof yl&&v.errorCode=="net.timeout";this.isCanceled=v instanceof ZJ}; eW=function(){to.call(this,"Biscotti ID is missing from server")}; RwL=function(){if(g.dx("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!JD())return Error("User has not consented - not fetching biscotti id.");var v=g.H$("PLAYER_VARS",{});if(g.ky(v,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(d3B(v))return Error("Biscotti id fetching has been disabled for pfl.")}; LGr=function(){var v=RwL();if(v!==void 0)return UF(v);Dg||(Dg=wx("//googleads.g.doubleclick.net/pagead/id",l$8).then(T08).pj(function(J){return pqf(2,J)})); return Dg}; T08=function(v){v=v.xhr.responseText;if(!dT(v,")]}'"))throw new eW;v=JSON.parse(v.substr(4));if((v.type||1)>1)throw new eW;v=v.id;XVr(v);Dg=ma(v);yS2(18E5,2);return v}; pqf=function(v,J){J=new P8(J);XVr("");Dg=x6(J);v>0&&yS2(12E4,v-1);throw J;}; yS2=function(v,J){g.By(function(){wx("//googleads.g.doubleclick.net/pagead/id",l$8).then(T08,function(G){return pqf(J,G)}).pj(g.Rp)},v)}; wqj=function(){try{var v=g.NL("yt.ads.biscotti.getId_");return v?v():LGr()}catch(J){return UF(J)}}; U3f=function(v){v&&(v.dataset?v.dataset[OMB()]="true":T9m(v))}; x3X=function(v){return v?v.dataset?v.dataset[OMB()]:v.getAttribute("data-loaded"):null}; OMB=function(){return m3m.loaded||(m3m.loaded="loaded".replace(/\-([a-z])/g,function(v,J){return J.toUpperCase()}))}; S5s=function(){var v=document;if("visibilityState"in v)return v.visibilityState;var J=tD+"VisibilityState";if(J in v)return v[J]}; B8=function(v,J){var G;yM(v,function(K){G=J[K];return!!G}); return G}; IP=function(v){if(v.requestFullscreen)v=v.requestFullscreen(void 0);else if(v.webkitRequestFullscreen)v=v.webkitRequestFullscreen();else if(v.mozRequestFullScreen)v=v.mozRequestFullScreen();else if(v.msRequestFullscreen)v=v.msRequestFullscreen();else if(v.webkitEnterFullscreen)v=v.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return v instanceof Promise?v:Promise.resolve()}; nq=function(v){var J;g.hD()?zZ()==v&&(J=document):J=v;return J&&(v=B8(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],J))?(J=v.call(J),J instanceof Promise?J:Promise.resolve()):Promise.resolve()}; f$w=function(v){return g.MS(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(J){return"on"+J.toLowerCase()in v})}; ZMB=function(){var v=document;return g.MS(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(J){return"on"+J.toLowerCase()in v})}; g.hD=function(){return!!B8(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; zZ=function(v){v=v===void 0?!1:v;var J=B8(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(v)for(;J&&J.shadowRoot;)J=J.shadowRoot.fullscreenElement;return J?J:null}; ds=function(v){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(v=v||window.event){this.event=v;for(var J in v)J in uzj||(this[J]=v[J]);this.scale=v.scale;this.rotation=v.rotation;var G=v.target||v.srcElement;G&&G.nodeType==3&&(G=G.parentNode);this.target=G;var K=v.relatedTarget; if(K)try{K=K.nodeName?K:null}catch(V){K=null}else this.type=="mouseover"?K=v.fromElement:this.type=="mouseout"&&(K=v.toElement);this.relatedTarget=K;this.clientX=v.clientX!=void 0?v.clientX:v.pageX;this.clientY=v.clientY!=void 0?v.clientY:v.pageY;this.keyCode=v.keyCode?v.keyCode:v.which;this.charCode=v.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=v.altKey;this.ctrlKey=v.ctrlKey;this.shiftKey=v.shiftKey;this.metaKey=v.metaKey;this.T=v.pageX;this.X=v.pageY}}catch(V){}}; g2B=function(v){if(document.body&&document.documentElement){var J=document.body.scrollTop+document.documentElement.scrollTop;v.T=v.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);v.X=v.clientY+J}}; Xqs=function(v,J,G,K){K=K===void 0?{}:K;v.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 gd(s9,function(V){var Y=typeof V[4]==="boolean"&&V[4]==!!K,r=g.ML(V[4])&&g.ML(K)&&g.cR(V[4],K);return!!V.length&&V[0]==v&&V[1]==J&&V[2]==G&&(Y||r)})}; g.RP=function(v,J,G,K){K=K===void 0?{}:K;if(!v||!v.addEventListener&&!v.attachEvent)return"";var V=Xqs(v,J,G,K);if(V)return V;V=++klX.count+"";var Y=!(J!="mouseenter"&&J!="mouseleave"||!v.addEventListener||"onmouseenter"in document);var r=Y?function(E){E=new ds(E);if(!hx(E.relatedTarget,function(e){return e==v},!0))return E.currentTarget=v,E.type=J,G.call(v,E)}:function(E){E=new ds(E); E.currentTarget=v;return G.call(v,E)}; r=g.jk(r);v.addEventListener?(J=="mouseenter"&&Y?J="mouseover":J=="mouseleave"&&Y?J="mouseout":J=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(J="MozMousePixelScroll"),cSs()||typeof K==="boolean"?v.addEventListener(J,r,K):v.addEventListener(J,r,!!K.capture)):v.attachEvent("on"+J,r);s9[V]=[v,J,G,r,K];return V}; a$L=function(v){return N0U(v,function(J){return g.K7(J,"ytp-ad-has-logging-urls")})}; N0U=function(v,J){var G=document.body||document;return g.RP(G,"click",function(K){var V=hx(K.target,function(Y){return Y===G||J(Y)},!0); V&&V!==G&&!V.disabled&&(K.currentTarget=V,v.call(V,K))})}; g.l$=function(v){v&&(typeof v=="string"&&(v=[v]),g.PW(v,function(J){if(J in s9){var G=s9[J],K=G[0],V=G[1],Y=G[3];G=G[4];K.removeEventListener?cSs()||typeof G==="boolean"?K.removeEventListener(V,Y,G):K.removeEventListener(V,Y,!!G.capture):K.detachEvent&&K.detachEvent("on"+V,Y);delete s9[J]}}))}; TZ=function(v){for(var J in s9)s9[J][0]==v&&g.l$(J)}; pq=function(v){v=v||window.event;var J;v.composedPath&&typeof v.composedPath==="function"?J=v.composedPath():J=v.path;J&&J.length?v=J[0]:(v=v||window.event,v=v.target||v.srcElement,v.nodeType==3&&(v=v.parentNode));return v}; Lq=function(v){this.K=v;this.T=null;this.L=0;this.j=null;this.J=0;this.X=[];for(v=0;v<4;v++)this.X.push(0);this.Z=0;this.Ti=g.RP(window,"mousemove",(0,g.bj)(this.N,this));this.U=g.IS((0,g.bj)(this.oY,this),25)}; yC=function(v){g.X.call(this);this.U=[];this.d_=v||this}; ws=function(v,J,G,K){for(var V=0;V0?G:0;G=K?Date.now()+K*1E3:0;if((K=K?(0,g.xL)():mm())&&window.JSON){typeof J!=="string"&&(J=JSON.stringify(J,void 0));try{K.set(v,J,G)}catch(V){K.remove(v)}}}; g.fq=function(v){var J=mm(),G=(0,g.xL)();if(!J&&!G||!window.JSON)return null;try{var K=J.get(v)}catch(V){}if(typeof K!=="string")try{K=G.get(v)}catch(V){}if(typeof K!=="string")return null;try{K=JSON.parse(K,void 0)}catch(V){}return K}; HMf=function(){var v=(0,g.xL)();if(v&&(v=v.X("yt-player-quality")))return v.creation}; g.Zg=function(v){try{var J=mm(),G=(0,g.xL)();J&&J.remove(v);G&&G.remove(v)}catch(K){}}; g.u$=function(){return g.fq("yt-remote-session-screen-id")}; Myj=function(v){var J=this;this.X=void 0;this.T=!1;v.addEventListener("beforeinstallprompt",function(G){G.preventDefault();J.X=G}); v.addEventListener("appinstalled",function(){J.T=!0},{once:!0})}; gs=function(){if(!g.X2.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.X2.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.X2.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.X2.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.X2.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(v){return"WEB_DISPLAY_MODE_UNKNOWN"}}; XJ=function(){this.OW=!0}; QJm=function(){XJ.instance||(XJ.instance=new XJ);return XJ.instance}; WGw=function(v){switch(v){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}}; C4m=function(){this.T=g.H$("ALT_PREF_COOKIE_NAME","PREF");this.X=g.H$("ALT_PREF_COOKIE_DOMAIN","youtube.com");var v=g.uR(this.T);v&&this.parse(v)}; g.c8=function(){kL||(kL=new C4m);return kL}; g.Nk=function(v,J){return!!((bMw("f"+(Math.floor(J/31)+1))||0)&1<0;)switch(v=ET.shift(),v.type){case "ERROR":VR.nZ(v.payload);break;case "EVENT":VR.logEvent(v.eventType,v.payload)}}; P9=function(v){eQ||(VR?VR.nZ(v):(ET.push({type:"ERROR",payload:v}),ET.length>10&&ET.shift()))}; Du=function(v,J){eQ||(VR?VR.logEvent(v,J):(ET.push({type:"EVENT",eventType:v,payload:J}),ET.length>10&&ET.shift()))}; tP=function(v){if(v.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; B9=function(v){return v.substr(0,v.indexOf(":"))||v}; g.I2=function(v,J,G,K,V){J=J===void 0?{}:J;G=G===void 0?KDr[v]:G;K=K===void 0?Vjf[v]:K;V=V===void 0?Y3m[v]:V;g.Mk.call(this,G,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:v},J));this.type=v;this.message=G;this.level=K;this.T=V;Object.setPrototypeOf(this,g.I2.prototype)}; hP=function(v,J){g.I2.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:J,foundObjectStores:v},KDr.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,hP.prototype)}; zB=function(v,J){var G=Error.call(this);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.index=v;this.objectStore=J;Object.setPrototypeOf(this,zB.prototype)}; dI=function(v,J,G,K){J=B9(J);var V=v instanceof Error?v:Error("Unexpected error: "+v);if(V instanceof g.I2)return V;v={objectStoreNames:G,dbName:J,dbVersion:K};if(V.name==="QuotaExceededError")return new g.I2("QUOTA_EXCEEDED",v);if(g.nP&&V.name==="UnknownError")return new g.I2("QUOTA_MAYBE_EXCEEDED",v);if(V instanceof zB)return new g.I2("MISSING_INDEX",Object.assign({},v,{objectStore:V.objectStore,index:V.index}));if(V.name==="InvalidStateError"&&rzm.some(function(Y){return V.message.includes(Y)}))return new g.I2("EXECUTE_TRANSACTION_ON_CLOSED_DB", v); if(V.name==="AbortError")return new g.I2("UNKNOWN_ABORT",v,V.message);V.args=[Object.assign({},v,{name:"IdbError",EO:V.name})];V.level="WARNING";return V}; g.sT=function(v,J,G){var K=KP();return new g.I2("IDB_NOT_SUPPORTED",{context:{caller:v,publicName:J,version:G,hasSucceededOnce:K==null?void 0:K.hasSucceededOnce}})}; q3F=function(v){if(!v)throw Error();throw v;}; Efm=function(v){return v}; R2=function(v){this.T=v}; g.lK=function(v){function J(V){if(K.state.status==="PENDING"){K.state={status:"REJECTED",reason:V};V=g.n(K.X);for(var Y=V.next();!Y.done;Y=V.next())Y=Y.value,Y()}} function G(V){if(K.state.status==="PENDING"){K.state={status:"FULFILLED",value:V};V=g.n(K.T);for(var Y=V.next();!Y.done;Y=V.next())Y=Y.value,Y()}} var K=this;this.state={status:"PENDING"};this.T=[];this.X=[];v=v.T;try{v(G,J)}catch(V){J(V)}}; eem=function(v,J,G,K,V){try{if(v.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var Y=G(v.state.value);Y instanceof g.lK?TB(v,J,Y,K,V):K(Y)}catch(r){V(r)}}; P6U=function(v,J,G,K,V){try{if(v.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var Y=G(v.state.reason);Y instanceof g.lK?TB(v,J,Y,K,V):K(Y)}catch(r){V(r)}}; TB=function(v,J,G,K,V){J===G?V(new TypeError("Circular promise chain detected.")):G.then(function(Y){Y instanceof g.lK?TB(v,J,Y,K,V):K(Y)},function(Y){V(Y)})}; DRF=function(v,J,G){function K(){G(v.error);Y()} function V(){J(v.result);Y()} function Y(){try{v.removeEventListener("success",V),v.removeEventListener("error",K)}catch(r){}} v.addEventListener("success",V);v.addEventListener("error",K)}; tj8=function(v){return new Promise(function(J,G){DRF(v,J,G)})}; pP=function(v){return new g.lK(new R2(function(J,G){DRF(v,J,G)}))}; LP=function(v,J){return new g.lK(new R2(function(G,K){function V(){var Y=v?J(v):null;Y?Y.then(function(r){v=r;V()},K):G()} V()}))}; Bzw=function(v,J){this.request=v;this.cursor=J}; Iv2=function(v){return pP(v).then(function(J){return J?new Bzw(v,J):null})}; g.hem=function(v){v.cursor.continue(void 0);return Iv2(v.request)}; zej=function(v,J){this.T=v;this.options=J;this.transactionCount=0;this.Z=Math.round((0,g.yR)());this.X=!1}; g.OT=function(v,J,G){v=v.T.createObjectStore(J,G);return new wI(v)}; UT=function(v,J){v.T.objectStoreNames.contains(J)&&v.T.deleteObjectStore(J)}; g.SQ=function(v,J,G){return g.xq(v,[J],{mode:"readwrite",jX:!0},function(K){return g.mg(K.objectStore(J),G)})}; g.xq=function(v,J,G,K){var V,Y,r,E,e,P,D,t,B,I,h,R;return g.m(function(T){switch(T.T){case 1:var L={mode:"readonly",jX:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof G==="string"?L.mode=G:Object.assign(L,G);V=L;v.transactionCount++;Y=V.jX?3:1;r=0;case 2:if(E){T.sB(4);break}r++;e=Math.round((0,g.yR)());g.nf(T,5);P=v.T.transaction(J,V.mode);L=new fP(P);L=nfj(L,K);return g.U(T,L,7);case 7:return D=T.X,t=Math.round((0,g.yR)()),dRB(v,e,t,r,void 0,J.join(),V),T.return(D);case 5:B=g.lj(T);I=Math.round((0,g.yR)()); h=dI(B,v.T.name,J.join(),v.T.version);if((R=h instanceof g.I2&&!h.T)||r>=Y)dRB(v,e,I,r,h,J.join(),V),E=h;T.sB(2);break;case 4:return T.return(Promise.reject(E))}})}; dRB=function(v,J,G,K,V,Y,r){J=G-J;V?(V instanceof g.I2&&(V.type==="QUOTA_EXCEEDED"||V.type==="QUOTA_MAYBE_EXCEEDED")&&Du("QUOTA_EXCEEDED",{dbName:B9(v.T.name),objectStoreNames:Y,transactionCount:v.transactionCount,transactionMode:r.mode}),V instanceof g.I2&&V.type==="UNKNOWN_ABORT"&&(G-=v.Z,G<0&&G>=2147483648&&(G=0),Du("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:Y,transactionDuration:J,transactionCount:v.transactionCount,dbDuration:G}),v.X=!0),s9m(v,!1,K,Y,J,r.tag),P9(V)):s9m(v,!0,K,Y,J, r.tag)}; s9m=function(v,J,G,K,V,Y){Du("TRANSACTION_ENDED",{objectStoreNames:K,connectionHasUnknownAbortedTransaction:v.X,duration:V,isSuccessful:J,tryCount:G,tag:Y===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":Y})}; wI=function(v){this.T=v}; g.Zu=function(v,J,G){v.T.createIndex(J,G,{unique:!1})}; Re2=function(v,J){return g.uK(v,{query:J},function(G){return G.delete().then(function(){return g.gI(G)})}).then(function(){})}; lvm=function(v,J,G){var K=[];return g.uK(v,{query:J},function(V){if(!(G!==void 0&&K.length>=G))return K.push(V.getValue()),g.gI(V)}).then(function(){return K})}; pYF=function(v){return"getAllKeys"in IDBObjectStore.prototype?pP(v.T.getAllKeys(void 0,void 0)):Tzw(v)}; Tzw=function(v){var J=[];return g.LDF(v,{query:void 0},function(G){J.push(G.cursor.primaryKey);return g.hem(G)}).then(function(){return J})}; g.mg=function(v,J,G){return pP(v.T.put(J,G))}; g.uK=function(v,J,G){v=v.T.openCursor(J.query,J.direction);return Xs(v).then(function(K){return LP(K,G)})}; g.LDF=function(v,J,G){var K=J.query;J=J.direction;v="openKeyCursor"in IDBObjectStore.prototype?v.T.openKeyCursor(K,J):v.T.openCursor(K,J);return Iv2(v).then(function(V){return LP(V,G)})}; fP=function(v){var J=this;this.T=v;this.Z=new Map;this.X=!1;this.done=new Promise(function(G,K){J.T.addEventListener("complete",function(){G()}); J.T.addEventListener("error",function(V){V.currentTarget===V.target&&K(J.T.error)}); J.T.addEventListener("abort",function(){var V=J.T.error;if(V)K(V);else if(!J.X){V=g.I2;for(var Y=J.T.objectStoreNames,r=[],E=0;E=G))return K.push(V.getValue()),g.gI(V)}).then(function(){return K})}; g.kq=function(v,J,G){v=v.T.openCursor(J.query===void 0?null:J.query,J.direction===void 0?"next":J.direction);return Xs(v).then(function(K){return LP(K,G)})}; c9=function(v,J){this.request=v;this.cursor=J}; Xs=function(v){return pP(v).then(function(J){return J?new c9(v,J):null})}; g.gI=function(v){v.cursor.continue(void 0);return Xs(v.request)}; O7r=function(v,J,G){return new Promise(function(K,V){function Y(){B||(B=new zej(r.result,{closed:t}));return B} var r=J!==void 0?self.indexedDB.open(v,J):self.indexedDB.open(v);var E=G.blocked,e=G.blocking,P=G.NKw,D=G.upgrade,t=G.closed,B;r.addEventListener("upgradeneeded",function(I){try{if(I.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(r.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");I.dataLoss&&I.dataLoss!=="none"&&Du("IDB_DATA_CORRUPTED",{reason:I.dataLossMessage||"unknown reason",dbName:B9(v)});var h=Y(),R=new fP(r.transaction); D&&D(h,function(T){return I.oldVersion=T},R); R.done.catch(function(T){V(T)})}catch(T){V(T)}}); r.addEventListener("success",function(){var I=r.result;e&&I.addEventListener("versionchange",function(){e(Y())}); I.addEventListener("close",function(){Du("IDB_UNEXPECTEDLY_CLOSED",{dbName:B9(v),dbVersion:I.version});P&&P()}); K(Y())}); r.addEventListener("error",function(){V(r.error)}); E&&r.addEventListener("blocked",function(){E()})})}; URF=function(v,J,G){G=G===void 0?{}:G;return O7r(v,J,G)}; Nl=function(v,J){J=J===void 0?{}:J;var G,K,V,Y;return g.m(function(r){if(r.T==1)return g.nf(r,2),G=self.indexedDB.deleteDatabase(v),K=J,(V=K.blocked)&&G.addEventListener("blocked",function(){V()}),g.U(r,tj8(G),4); if(r.T!=2)return g.Rm(r,0);Y=g.lj(r);throw dI(Y,v,"",-1);})}; a2=function(v,J){this.name=v;this.options=J;this.Z=!0;this.J=this.L=0}; xRU=function(v,J){return new g.I2("INCOMPATIBLE_DB_VERSION",{dbName:v.name,oldVersion:v.options.version,newVersion:J})}; g.AP=function(v,J){if(!J)throw g.sT("openWithToken",B9(v.name));return v.open()}; mRw=function(v,J){var G;return g.m(function(K){if(K.T==1)return g.U(K,g.AP(Fs,J),2);G=K.X;return K.return(g.xq(G,["databases"],{jX:!0,mode:"readwrite"},function(V){var Y=V.objectStore("databases");return Y.get(v.actualName).then(function(r){if(r?v.actualName!==r.actualName||v.publicName!==r.publicName||v.userIdentifier!==r.userIdentifier:1)return g.mg(Y,v).then(function(){})})}))})}; H9=function(v,J){var G;return g.m(function(K){if(K.T==1)return v?g.U(K,g.AP(Fs,J),2):K.return();G=K.X;return K.return(G.delete("databases",v))})}; S3r=function(v,J){var G,K;return g.m(function(V){return V.T==1?(G=[],g.U(V,g.AP(Fs,J),2)):V.T!=3?(K=V.X,g.U(V,g.xq(K,["databases"],{jX:!0,mode:"readonly"},function(Y){G.length=0;return g.uK(Y.objectStore("databases"),{},function(r){v(r.getValue())&&G.push(r.getValue());return g.gI(r)})}),3)):V.return(G)})}; fvw=function(v,J){return S3r(function(G){return G.publicName===v&&G.userIdentifier!==void 0},J)}; Z78=function(){var v,J,G,K;return g.m(function(V){switch(V.T){case 1:v=KP();if((J=v)==null?0:J.hasSucceededOnce)return V.return(!0);if(Ml&&Ql()&&!Wy()||g.QR)return V.return(!1);try{if(G=self,!(G.indexedDB&&G.IDBIndex&&G.IDBKeyRange&&G.IDBObjectStore))return V.return(!1)}catch(Y){return V.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return V.return(!1);g.nf(V,2);K={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.U(V,mRw(K,W9),4);case 4:return g.U(V,H9("yt-idb-test-do-not-use",W9),5);case 5:return V.return(!0);case 2:return g.lj(V),V.return(!1)}})}; u6U=function(){if(CP!==void 0)return CP;eQ=!0;return CP=Z78().then(function(v){eQ=!1;var J;if((J=o2())!=null&&J.T){var G;J={hasSucceededOnce:((G=KP())==null?void 0:G.hasSucceededOnce)||v};var K;(K=o2())==null||K.set("LAST_RESULT_ENTRY_KEY",J,2592E3,!0)}return v})}; bK=function(){return g.NL("ytglobal.idbToken_")||void 0}; g.jg=function(){var v=bK();return v?Promise.resolve(v):u6U().then(function(J){(J=J?W9:void 0)&&g.ks("ytglobal.idbToken_",J);return J})}; gfF=function(v){if(!g.W8())throw v=new g.I2("AUTH_INVALID",{dbName:v}),P9(v),v;var J=g.QC();return{actualName:v+":"+J,publicName:v,userIdentifier:J}}; XY2=function(v,J,G,K){var V,Y,r,E,e,P;return g.m(function(D){switch(D.T){case 1:return Y=(V=Error().stack)!=null?V:"",g.U(D,g.jg(),2);case 2:r=D.X;if(!r)throw E=g.sT("openDbImpl",v,J),g.dx("ytidb_async_stack_killswitch")||(E.stack=E.stack+"\n"+Y.substring(Y.indexOf("\n")+1)),P9(E),E;tP(v);e=G?{actualName:v,publicName:v,userIdentifier:void 0}:gfF(v);g.nf(D,3);return g.U(D,mRw(e,r),5);case 5:return g.U(D,URF(e.actualName,J,K),6);case 6:return D.return(D.X);case 3:return P=g.lj(D),g.nf(D,7),g.U(D,H9(e.actualName, r),9);case 9:g.Rm(D,8);break;case 7:g.lj(D);case 8:throw P;}})}; kYB=function(v,J,G){G=G===void 0?{}:G;return XY2(v,J,!1,G)}; czj=function(v,J,G){G=G===void 0?{}:G;return XY2(v,J,!0,G)}; Nzw=function(v,J){J=J===void 0?{}:J;var G,K;return g.m(function(V){if(V.T==1)return g.U(V,g.jg(),2);if(V.T!=3){G=V.X;if(!G)return V.return();tP(v);K=gfF(v);return g.U(V,Nl(K.actualName,J),3)}return g.U(V,H9(K.actualName,G),0)})}; avF=function(v,J,G){v=v.map(function(K){return g.m(function(V){return V.T==1?g.U(V,Nl(K.actualName,J),2):g.U(V,H9(K.actualName,G),0)})}); return Promise.all(v).then(function(){})}; AzU=function(v){var J=J===void 0?{}:J;var G,K;return g.m(function(V){if(V.T==1)return g.U(V,g.jg(),2);if(V.T!=3){G=V.X;if(!G)return V.return();tP(v);return g.U(V,fvw(v,G),3)}K=V.X;return g.U(V,avF(K,J,G),0)})}; FDX=function(v,J){J=J===void 0?{}:J;var G;return g.m(function(K){if(K.T==1)return g.U(K,g.jg(),2);if(K.T!=3){G=K.X;if(!G)return K.return();tP(v);return g.U(K,Nl(v,J),3)}return g.U(K,H9(v,G),0)})}; i5=function(v,J){a2.call(this,v,J);this.options=J;tP(v)}; H7B=function(v,J){var G;return function(){G||(G=new i5(v,J));return G}}; g.$E=function(v,J){return H7B(v,J)}; vO=function(v){return g.AP(MjF(),v)}; Q9X=function(v,J,G,K){var V,Y,r;return g.m(function(E){switch(E.T){case 1:return V={config:v,hashData:J,timestamp:K!==void 0?K:(0,g.yR)()},g.U(E,vO(G),2);case 2:return Y=E.X,g.U(E,Y.clear("hotConfigStore"),3);case 3:return g.U(E,g.SQ(Y,"hotConfigStore",V),4);case 4:return r=E.X,E.return(r)}})}; WDm=function(v,J,G,K,V){var Y,r,E;return g.m(function(e){switch(e.T){case 1:return Y={config:v,hashData:J,configData:G,timestamp:V!==void 0?V:(0,g.yR)()},g.U(e,vO(K),2);case 2:return r=e.X,g.U(e,r.clear("coldConfigStore"),3);case 3:return g.U(e,g.SQ(r,"coldConfigStore",Y),4);case 4:return E=e.X,e.return(E)}})}; C68=function(v){var J,G;return g.m(function(K){return K.T==1?g.U(K,vO(v),2):K.T!=3?(J=K.X,G=void 0,g.U(K,g.xq(J,["coldConfigStore"],{mode:"readwrite",jX:!0},function(V){return g.kq(V.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(Y){G=Y.getValue()})}),3)):K.return(G)})}; b7L=function(v){var J,G;return g.m(function(K){return K.T==1?g.U(K,vO(v),2):K.T!=3?(J=K.X,G=void 0,g.U(K,g.xq(J,["hotConfigStore"],{mode:"readwrite",jX:!0},function(V){return g.kq(V.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(Y){G=Y.getValue()})}),3)):K.return(G)})}; jyX=function(){return g.m(function(v){return g.U(v,AzU("ytGcfConfig"),0)})}; J$=function(){g.X.call(this);this.X=[];this.T=[];var v=g.NL("yt.gcf.config.hotUpdateCallbacks");v?(this.X=[].concat(g.l(v)),this.T=v):(this.T=[],g.ks("yt.gcf.config.hotUpdateCallbacks",this.T))}; re=function(){var v=this;this.J=!1;this.Z=this.L=0;this.j=new J$;this.cO={uDw:function(){v.J=!0}, f5w:function(){return v.T}, Qr4:function(J){Gw(v,J)}, QY:function(J){v.QY(J)}, wnB:function(J){ok(v,J)}, Dy:function(){return v.coldHashData}, rX:function(){return v.hotHashData}, p7B:function(){return v.X}, t94:function(){return Ke()}, Anb:function(){return V3()}, bz7:function(){return g.NL("yt.gcf.config.coldHashData")}, X7i:function(){return g.NL("yt.gcf.config.hotHashData")}, S0B:function(){i48(v)}, OHB:function(){v.QY(void 0);YE(v);delete re.instance}, uYw:function(J){v.Z=J}, uMH:function(){return v.Z}}}; $4L=function(){if(!re.instance){var v=new re;re.instance=v}return re.instance}; GmB=function(v){var J;g.m(function(G){if(G.T==1)return g.dx("start_client_gcf")||g.dx("delete_gcf_config_db")?g.dx("start_client_gcf")?g.U(G,g.jg(),3):G.sB(2):G.return();G.T!=2&&((J=G.X)&&g.W8()&&!g.dx("delete_gcf_config_db")?(v.J=!0,i48(v)):(v5L(v),JvF(v)));return g.dx("delete_gcf_config_db")?g.U(G,jyX(),0):G.sB(0)})}; q2=function(){var v;return(v=V3())!=null?v:g.H$("RAW_HOT_CONFIG_GROUP")}; o5m=function(v){var J,G,K,V,Y,r;return g.m(function(E){switch(E.T){case 1:if(v.X)return E.return(V3());if(!v.J)return J=g.sT("getHotConfig IDB not initialized"),iR(J),E.return(Promise.reject(J));G=bK();K=g.H$("TIME_CREATED_MS");if(!G){V=g.sT("getHotConfig token error");iR(V);E.sB(2);break}return g.U(E,b7L(G),3);case 3:if((Y=E.X)&&Y.timestamp>K)return Gw(v,Y.config),v.QY(Y.hashData),E.return(V3());case 2:JvF(v);if(!(G&&v.X&&v.hotHashData)){E.sB(4);break}return g.U(E,Q9X(v.X,v.hotHashData,G,K),4);case 4:return v.X? E.return(V3()):(r=new g.Mk("Config not available in ytConfig"),iR(r),E.return(Promise.reject(r)))}})}; Vwt=function(v){var J,G,K,V,Y,r;return g.m(function(E){switch(E.T){case 1:if(v.T)return E.return(Ke());if(!v.J)return J=g.sT("getColdConfig IDB not initialized"),iR(J),E.return(Promise.reject(J));G=bK();K=g.H$("TIME_CREATED_MS");if(!G){V=g.sT("getColdConfig");iR(V);E.sB(2);break}return g.U(E,C68(G),3);case 3:if((Y=E.X)&&Y.timestamp>K)return ok(v,Y.config),KOF(v,Y.configData),YE(v,Y.hashData),E.return(Ke());case 2:v5L(v);if(!(G&&v.T&&v.coldHashData&&v.configData)){E.sB(4);break}return g.U(E,WDm(v.T, v.coldHashData,v.configData,G,K),4);case 4:return v.T?E.return(Ke()):(r=new g.Mk("Config not available in ytConfig"),iR(r),E.return(Promise.reject(r)))}})}; i48=function(v){if(!v.X||!v.T){if(!bK()){var J=g.sT("scheduleGetConfigs");iR(J)}v.L||(v.L=g.cq.eD(function(){return g.m(function(G){switch(G.T){case 1:return g.nf(G,2),g.U(G,o5m(v),4);case 4:g.Rm(G,3);break;case 2:g.lj(G);case 3:return g.nf(G,5),g.U(G,Vwt(v),7);case 7:g.Rm(G,6);break;case 5:g.lj(G);case 6:v.L&&(v.L=0),g.zX(G)}})},100))}}; YEB=function(v,J,G){var K,V,Y;return g.m(function(r){switch(r.T){case 1:if(!g.dx("start_client_gcf")){r.sB(0);break}G&&Gw(v,G);v.QY(J);K=bK();if(!K){r.sB(3);break}if(G){r.sB(4);break}return g.U(r,b7L(K),5);case 5:V=r.X,G=(Y=V)==null?void 0:Y.config;case 4:return g.U(r,Q9X(G,J,K),3);case 3:if(G)for(var E=G,e=g.n(v.j.T),P=e.next();!P.done;P=e.next())P=P.value,P(E);g.zX(r)}})}; rv2=function(v,J,G){var K,V,Y,r;return g.m(function(E){if(E.T==1){if(!g.dx("start_client_gcf"))return E.sB(0);YE(v,J);return(K=bK())?G?E.sB(4):g.U(E,C68(K),5):E.sB(0)}E.T!=4&&(V=E.X,G=(Y=V)==null?void 0:Y.config);if(!G)return E.sB(0);r=G.configData;return g.U(E,WDm(G,J,r,K),0)})}; qEj=function(){var v=$4L(),J=(0,g.yR)()-v.Z;if(!(v.Z!==0&&J0&&(J.request={internalExperimentFlags:G});eZf(v,void 0,J);P98(void 0,J);D4w(void 0,J);twt(v,void 0,J);B_m(void 0,J);g.dx("start_client_gcf")&&ImL(void 0,J);g.H$("DELEGATED_SESSION_ID")&& !g.dx("pageid_as_header_web")&&(J.user={onBehalfOfUser:g.H$("DELEGATED_SESSION_ID")});!g.dx("fill_delegate_context_in_gel_killswitch")&&(v=g.H$("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(J.user=Object.assign({},J.user,{serializedDelegationContext:v}));v=g.H$("INNERTUBE_CONTEXT");var K;if(g.dx("enable_persistent_device_token")&&(v==null?0:(K=v.client)==null?0:K.rolloutToken)){var V;J.client.rolloutToken=v==null?void 0:(V=v.client)==null?void 0:V.rolloutToken}K=Object;V=K.assign;v=J.client; G={};for(var Y=g.n(Object.entries(Jh(g.H$("DEVICE","")))),r=Y.next();!r.done;r=Y.next()){var E=g.n(r.value);r=E.next().value;E=E.next().value;r==="cbrand"?G.deviceMake=E:r==="cmodel"?G.deviceModel=E:r==="cbr"?G.browserName=E:r==="cbrver"?G.browserVersion=E:r==="cos"?G.osName=E:r==="cosver"?G.osVersion=E:r==="cplatform"&&(G.platform=E)}J.client=V.call(K,v,G);return J}; eZf=function(v,J,G){v=v.VE;if(v==="WEB"||v==="MWEB"||v===1||v===2)if(J){G=tj(J,w_,96)||new w_;var K=gs();K=Object.keys(hZw).indexOf(K);K=K===-1?null:K;K!==null&&Lo(G,3,K);Bh(J,w_,96,G)}else G&&(G.client.mainAppWebInfo=(K=G.client.mainAppWebInfo)!=null?K:{},G.client.mainAppWebInfo.webDisplayMode=gs())}; P98=function(v,J){var G=g.NL("yt.embedded_player.embed_url");G&&(v?(J=tj(v,Sw,7)||new Sw,T7(J,4,G),Bh(v,Sw,7,J)):J&&(J.thirdParty={embedUrl:G}))}; D4w=function(v,J){var G;if(g.dx("web_log_memory_total_kbytes")&&((G=g.X2.navigator)==null?0:G.deviceMemory)){var K;G=(K=g.X2.navigator)==null?void 0:K.deviceMemory;v?WJ(v,95,d9(G*1E6)):J&&(J.client.memoryTotalKbytes=""+G*1E6)}}; twt=function(v,J,G){if(v.appInstallData)if(J){var K;G=(K=tj(J,yZ,62))!=null?K:new yZ;T7(G,6,v.appInstallData);Bh(J,yZ,62,G)}else G&&(G.client.configInfo=G.client.configInfo||{},G.client.configInfo.appInstallData=v.appInstallData)}; B_m=function(v,J){var G=$Rw();G&&(v?Lo(v,61,zZB[G]):J&&(J.client.connectionType=G));g.dx("web_log_effective_connection_type")&&(G=Jzm())&&(v?Lo(v,94,n5B[G]):J&&(J.client.effectiveConnectionType=G))}; d42=function(v,J,G){G=G===void 0?{}:G;var K={};g.H$("EOM_VISITOR_DATA")?K={"X-Goog-EOM-Visitor-Id":g.H$("EOM_VISITOR_DATA")}:K={"X-Goog-Visitor-Id":G.visitorData||g.H$("VISITOR_DATA","")};if(J&&J.includes("www.youtube-nocookie.com"))return K;J=G.wu||g.H$("AUTHORIZATION");J||(v?J="Bearer "+g.NL("gapi.auth.getToken")().access_token:(v=QJm().KI(PO),g.dx("pageid_as_header_web")||delete v["X-Goog-PageId"],K=Object.assign({},K,v)));J&&(K.Authorization=J);return K}; ImL=function(v,J){var G=qEj();if(G){var K=G.coldConfigData,V=G.coldHashData;G=G.hotHashData;if(v){var Y;J=(Y=tj(v,yZ,62))!=null?Y:new yZ;K=T7(J,1,K);T7(K,3,V).QY(G);Bh(v,yZ,62,J)}else J&&(J.client.configInfo=J.client.configInfo||{},K&&(J.client.configInfo.coldConfigData=K),V&&(J.client.configInfo.coldHashData=V),G&&(J.client.configInfo.hotHashData=G))}}; DU=function(v,J){this.version=v;this.args=J}; t$=function(v,J){this.topic=v;this.T=J}; Ik=function(v,J){var G=BO();G&&G.publish.call(G,v.toString(),v,J)}; lm8=function(v){var J=syw,G=BO();if(!G)return 0;var K=G.subscribe(J.toString(),function(V,Y){var r=g.NL("ytPubsub2Pubsub2SkipSubKey");r&&r==K||(r=function(){if(Rk[K])try{if(Y&&J instanceof t$&&J!=V)try{var E=J.T,e=Y;if(!e.args||!e.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!E.zN){var P=new E;E.zN=P.version}var D=E.zN}catch(t){}if(!D||e.version!=D)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{Y=Reflect.construct(E, g.vW(e.args))}catch(t){throw t.message="yt.pubsub2.Data.deserialize(): "+t.message,t;}}catch(t){throw t.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+J.toString()+": "+t.message,t;}v.call(window,Y)}catch(t){g.b9(t)}},RZ2[J.toString()]?g.v9()?g.cq.eD(r):g.By(r,0):r())}); Rk[K]=!0;l5[J.toString()]||(l5[J.toString()]=[]);l5[J.toString()].push(K);return K}; LO8=function(){var v=T_m,J=lm8(function(G){v.apply(void 0,arguments);p$8(J)}); return J}; p$8=function(v){var J=BO();J&&(typeof v==="number"&&(v=[v]),g.PW(v,function(G){J.unsubscribeByKey(G);delete Rk[G]}))}; BO=function(){return g.NL("ytPubsub2Pubsub2Instance")}; Tw=function(v,J,G){G=G===void 0?{sampleRate:.1}:G;Math.random()m4F||r=u4X&&(fe++,g.dx("abandon_compression_after_N_slow_zips")?Sg===g.si("compression_disable_point")&&fe>g52&&(Ua=!1):Ua=!1);X$s(J);K.headers||(K.headers={});K.headers["Content-Encoding"]="gzip";K.postBody=v;K.postParams=void 0;V(G,K)}; kmB=function(v){var J=J===void 0?!1:J;var G=G===void 0?!1:G;var K=(0,g.yR)(),V={startTime:K,ticks:{},infos:{}},Y=J?g.NL("yt.logging.gzipForFetch",!1):!0;if(Ua&&Y){if(!v.body)return v;try{var r=G?v.body:typeof v.body==="string"?v.body:JSON.stringify(v.body);Y=r;if(!G&&typeof r==="string"){var E=x4B(r);if(E!=null&&(E>m4F||E=u4X)if(fe++,g.dx("abandon_compression_after_N_slow_zips")||g.dx("abandon_compression_after_N_slow_zips_lr")){J=fe/Sg;var P=g52/g.si("compression_disable_point");Sg>0&&Sg%g.si("compression_disable_point")===0&&J>=P&&(Ua=!1)}else Ua=!1;X$s(V)}}v.headers=Object.assign({},{"Content-Encoding":"gzip"},v.headers||{});v.body=Y;return v}catch(D){return iR(D),v}}else return v}; x4B=function(v){try{return(new Blob(v.split(""))).size}catch(J){return iR(J),null}}; X$s=function(v){g.dx("gel_compression_csi_killswitch")||!g.dx("log_gel_compression_latency")&&!g.dx("log_gel_compression_latency_lr")||Tw("gel_compression",v,{sampleRate:.1})}; u5=function(v){var J=this;this.BZ=this.T=!1;this.potentialEsfErrorCounter=this.X=0;this.handleError=function(){}; this.Bl=function(){}; this.now=Date.now;this.AU=!1;this.cO={HW7:function(D){J.Q9=D}, Fvw:function(){J.NE()}, ED:function(){J.Kk()}, bZ:function(D){return g.m(function(t){return g.U(t,J.bZ(D),0)})}, Pf:function(D,t){return J.Pf(D,t)}, fE:function(){J.fE()}}; var G;this.Vo=(G=v.Vo)!=null?G:100;var K;this.EW=(K=v.EW)!=null?K:1;var V;this.iD=(V=v.iD)!=null?V:2592E6;var Y;this.RD=(Y=v.RD)!=null?Y:12E4;var r;this.w0=(r=v.w0)!=null?r:5E3;var E;this.Q9=(E=v.Q9)!=null?E:void 0;this.g1=!!v.g1;var e;this.Vr=(e=v.Vr)!=null?e:.1;var P;this.nE=(P=v.nE)!=null?P:10;v.handleError&&(this.handleError=v.handleError);v.Bl&&(this.Bl=v.Bl);v.AU&&(this.AU=v.AU);v.BZ&&(this.BZ=v.BZ);this.OB=v.OB;this.jU=v.jU;this.eJ=v.eJ;this.xk=v.xk;this.sendFn=v.sendFn;this.oW=v.oW;this.tf= v.tf;ZU(this)&&(!this.OB||this.OB("networkless_logging"))&&cv2(this)}; cv2=function(v){ZU(v)&&!v.AU&&(v.T=!0,v.g1&&Math.random()<=v.Vr&&v.eJ.TI(v.Q9),v.fE(),v.xk.B8()&&v.NE(),v.xk.listen(v.oW,v.NE.bind(v)),v.xk.listen(v.tf,v.Kk.bind(v)))}; AvB=function(v,J){if(!ZU(v))throw Error("IndexedDB is not supported: updateRequestHandlers");var G=J.options.onError?J.options.onError:function(){}; J.options.onError=function(V,Y){var r,E,e,P;return g.m(function(D){switch(D.T){case 1:r=N_2(Y);(E=amw(Y))&&v.OB&&v.OB("web_enable_error_204")&&v.handleError(Error("Request failed due to compression"),J.url,Y);if(!(v.OB&&v.OB("nwl_consider_error_code")&&r||v.OB&&!v.OB("nwl_consider_error_code")&&v.potentialEsfErrorCounter<=v.nE)){D.sB(2);break}if(!v.xk.oa){D.sB(3);break}return g.U(D,v.xk.oa(),3);case 3:if(v.xk.B8()){D.sB(2);break}G(V,Y);if(!v.OB||!v.OB("nwl_consider_error_code")||((e=J)==null?void 0: e.id)===void 0){D.sB(6);break}return g.U(D,v.eJ.xX(J.id,v.Q9,!1),6);case 6:return D.return();case 2:if(v.OB&&v.OB("nwl_consider_error_code")&&!r&&v.potentialEsfErrorCounter>v.nE)return D.return();v.potentialEsfErrorCounter++;if(((P=J)==null?void 0:P.id)===void 0){D.sB(8);break}return J.sendCount=400&&v<=599?!1:!0}; amw=function(v){var J;v=v==null?void 0:(J=v.error)==null?void 0:J.code;return!(v!==400&&v!==415)}; FOf=function(){if(XG)return XG();var v={};XG=g.$E("LogsDatabaseV2",{B7:(v.LogsRequestsStore={WV:2},v),shared:!1,upgrade:function(J,G,K){G(2)&&g.OT(J,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});G(3);G(5)&&(K=K.objectStore("LogsRequestsStore"),K.T.indexNames.contains("newRequest")&&K.T.deleteIndex("newRequest"),g.Zu(K,"newRequestV2",["status","interface","timestamp"]));G(7)&&UT(J,"sapisid");G(9)&&UT(J,"SWHealthLog")}, version:9});return XG()}; kE=function(v){return g.AP(FOf(),v)}; Mw2=function(v,J){var G,K,V,Y;return g.m(function(r){if(r.T==1)return G={startTime:(0,g.yR)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.U(r,kE(J),2);if(r.T!=3)return K=r.X,V=Object.assign({},v,{options:JSON.parse(JSON.stringify(v.options)),interface:g.H$("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.U(r,g.SQ(K,"LogsRequestsStore",V),3);Y=r.X;G.ticks.tc=(0,g.yR)();H4f(G);return r.return(Y)})}; Qy8=function(v,J){var G,K,V,Y,r,E,e,P;return g.m(function(D){if(D.T==1)return G={startTime:(0,g.yR)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.U(D,kE(J),2);if(D.T!=3)return K=D.X,V=g.H$("INNERTUBE_CONTEXT_CLIENT_NAME",0),Y=[v,V,0],r=[v,V,(0,g.yR)()],E=IDBKeyRange.bound(Y,r),e="prev",g.dx("use_fifo_for_networkless")&&(e="next"),P=void 0,g.U(D,g.xq(K,["LogsRequestsStore"],{mode:"readwrite",jX:!0},function(t){return g.kq(t.objectStore("LogsRequestsStore").index("newRequestV2"), {query:E,direction:e},function(B){B.getValue()&&(P=B.getValue(),v==="NEW"&&(P.status="QUEUED",B.update(P)))})}),3); G.ticks.tc=(0,g.yR)();H4f(G);return D.return(P)})}; WOt=function(v,J){var G;return g.m(function(K){if(K.T==1)return g.U(K,kE(J),2);G=K.X;return K.return(g.xq(G,["LogsRequestsStore"],{mode:"readwrite",jX:!0},function(V){var Y=V.objectStore("LogsRequestsStore");return Y.get(v).then(function(r){if(r)return r.status="QUEUED",g.mg(Y,r).then(function(){return r})})}))})}; C9j=function(v,J,G,K){G=G===void 0?!0:G;var V;return g.m(function(Y){if(Y.T==1)return g.U(Y,kE(J),2);V=Y.X;return Y.return(g.xq(V,["LogsRequestsStore"],{mode:"readwrite",jX:!0},function(r){var E=r.objectStore("LogsRequestsStore");return E.get(v).then(function(e){return e?(e.status="NEW",G&&(e.sendCount+=1),K!==void 0&&(e.options.compress=K),g.mg(E,e).then(function(){return e})):g.lK.resolve(void 0)})}))})}; b4f=function(v,J){var G;return g.m(function(K){if(K.T==1)return g.U(K,kE(J),2);G=K.X;return K.return(G.delete("LogsRequestsStore",v))})}; jSF=function(v){var J,G;return g.m(function(K){if(K.T==1)return g.U(K,kE(v),2);J=K.X;G=(0,g.yR)()-2592E6;return g.U(K,g.xq(J,["LogsRequestsStore"],{mode:"readwrite",jX:!0},function(V){return g.uK(V.objectStore("LogsRequestsStore"),{},function(Y){if(Y.getValue().timestamp<=G)return Y.delete().then(function(){return g.gI(Y)})})}),0)})}; iEm=function(){g.m(function(v){return g.U(v,AzU("LogsDatabaseV2"),0)})}; H4f=function(v){g.dx("nwl_csi_killswitch")||Tw("networkless_performance",v,{sampleRate:1})}; v6U=function(v){return g.AP($Af(),v)}; Jhw=function(v){var J,G;g.m(function(K){if(K.T==1)return g.U(K,v6U(v),2);J=K.X;G=(0,g.yR)()-2592E6;return g.U(K,g.xq(J,["SWHealthLog"],{mode:"readwrite",jX:!0},function(V){return g.uK(V.objectStore("SWHealthLog"),{},function(Y){if(Y.getValue().timestamp<=G)return Y.delete().then(function(){return g.gI(Y)})})}),0)})}; Ges=function(v){var J;return g.m(function(G){if(G.T==1)return g.U(G,v6U(v),2);J=G.X;return g.U(G,J.clear("SWHealthLog"),0)})}; g.cO=function(v,J,G,K,V,Y,r){V=V===void 0?"":V;Y=Y===void 0?!1:Y;r=r===void 0?!1:r;if(v)if(G&&!g.FX())iR(new g.Mk("Legacy referrer-scrubbed ping detected")),v&&o6m(v,void 0,{scrubReferrer:!0});else if(V)Te(v,J,"POST",V,K);else if(g.H$("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||K||r)Te(v,J,"GET","",K,void 0,Y,r);else{b:{try{var E=new aQU({url:v});if(E.J?typeof E.Z!=="string"||E.Z.length===0?0:{version:3,zI:E.Z,W5:Tl(E.T,"act=1","ri=1",AIt(E))}:E.j&&{version:4,zI:Tl(E.T,"dct=1","suid="+E.L,""),W5:Tl(E.T, "act=1","ri=1","suid="+E.L)}){var e=Hp(g.Qr(5,v));var P=!(!e||!e.endsWith("/aclk")||Gj(v,"ri")!=="1");break b}}catch(D){}P=!1}P?Kas(v)?(J&&J(),G=!0):G=!1:G=!1;G||o6m(v,J)}}; Kas=function(v,J){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(v,J===void 0?"":J))return!0}catch(G){}return!1}; o6m=function(v,J,G){G=G===void 0?{}:G;var K=new Image,V=""+Vkm++;N2[V]=K;K.onload=K.onerror=function(){J&&N2[V]&&J();delete N2[V]}; G.scrubReferrer&&(K.referrerPolicy="no-referrer");K.src=v}; YiB=function(v){var J;return((J=document.featurePolicy)==null?0:J.allowedFeatures().includes("attribution-reporting"))?v+"&nis=6":v+"&nis=5"}; A$=function(){ak||(ak=new GB("yt.offline"));return ak}; rht=function(v){if(g.dx("offline_error_handling")){var J=A$().get("errors",!0)||{};J[v.message]={name:v.name,stack:v.stack};v.level&&(J[v.message].level=v.level);A$().set("errors",J,2592E3,!0)}}; FG=function(){this.T=new Map;this.X=!1}; HO=function(){if(!FG.instance){var v=g.NL("yt.networkRequestMonitor.instance")||new FG;g.ks("yt.networkRequestMonitor.instance",v);FG.instance=v}return FG.instance}; M2=function(){g.EF.call(this);var v=this;this.X=!1;this.T=zqm();this.T.listen("networkstatus-online",function(){if(v.X&&g.dx("offline_error_handling")){var J=A$().get("errors",!0);if(J){for(var G in J)if(J[G]){var K=new g.Mk(G,"sent via offline_errors");K.name=J[G].name;K.stack=J[G].stack;K.level=J[G].level;g.b9(K)}A$().set("errors",{},2592E3,!0)}}})}; qij=function(){if(!M2.instance){var v=g.NL("yt.networkStatusManager.instance")||new M2;g.ks("yt.networkStatusManager.instance",v);M2.instance=v}return M2.instance}; g.Q3=function(v){v=v===void 0?{}:v;g.EF.call(this);var J=this;this.T=this.L=0;this.X=qij();var G=g.NL("yt.networkStatusManager.instance.listen").bind(this.X);G&&(v.rateLimit?(this.rateLimit=v.rateLimit,G("networkstatus-online",function(){E6w(J,"publicytnetworkstatus-online")}),G("networkstatus-offline",function(){E6w(J,"publicytnetworkstatus-offline")})):(G("networkstatus-online",function(){J.dispatchEvent("publicytnetworkstatus-online")}),G("networkstatus-offline",function(){J.dispatchEvent("publicytnetworkstatus-offline")})))}; E6w=function(v,J){v.rateLimit?v.T?(g.cq.GH(v.L),v.L=g.cq.eD(function(){v.Z!==J&&(v.dispatchEvent(J),v.Z=J,v.T=(0,g.yR)())},v.rateLimit-((0,g.yR)()-v.T))):(v.dispatchEvent(J),v.Z=J,v.T=(0,g.yR)()):v.dispatchEvent(J)}; Ce=function(){var v=u5.call;WO||(WO=new g.Q3({MQB:!0,LZi:!0}));v.call(u5,this,{eJ:{TI:jSF,bM:b4f,ix:Qy8,qRh:WOt,xX:C9j,set:Mw2},xk:WO,handleError:function(J,G,K){var V,Y=K==null?void 0:(V=K.error)==null?void 0:V.code;if(Y===400||Y===415){var r;iR(new g.Mk(J.message,G,K==null?void 0:(r=K.error)==null?void 0:r.code),void 0,void 0,void 0,!0)}else g.b9(J)}, Bl:iR,sendFn:eus,now:g.yR,VU:rht,jU:g.$q(),oW:"publicytnetworkstatus-online",tf:"publicytnetworkstatus-offline",g1:!0,Vr:.1,nE:g.si("potential_esf_error_limit",10),OB:g.dx,AU:!(g.W8()&&g.Wp(document.location.toString())!=="www.youtube-nocookie.com")});this.Z=new g.w5;g.dx("networkless_immediately_drop_all_requests")&&iEm();FDX("LogsDatabaseV2")}; b5=function(){var v=g.NL("yt.networklessRequestController.instance");v||(v=new Ce,g.ks("yt.networklessRequestController.instance",v),g.dx("networkless_logging")&&g.jg().then(function(J){v.Q9=J;cv2(v);v.Z.resolve();v.g1&&Math.random()<=v.Vr&&v.Q9&&Jhw(v.Q9);g.dx("networkless_immediately_drop_sw_health_store")&&PRX(v)})); return v}; PRX=function(v){var J;g.m(function(G){if(!v.Q9)throw J=g.sT("clearSWHealthLogsDb"),J;return G.return(Ges(v.Q9).catch(function(K){v.handleError(K)}))})}; eus=function(v,J,G,K){K=K===void 0?!1:K;J=g.dx("web_fp_via_jspb")?Object.assign({},J):J;g.dx("use_cfr_monitor")&&DAr(v,J);if(g.dx("use_request_time_ms_header"))J.headers&&Y6(v)&&(J.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.yR)())));else{var V;if((V=J.postParams)==null?0:V.requestTimeMs)J.postParams.requestTimeMs=Math.round((0,g.yR)())}G&&Object.keys(J).length===0?g.cO(v):J.compress?J.postBody?(typeof J.postBody!=="string"&&(J.postBody=JSON.stringify(J.postBody)),mz(v,J.postBody, J,g.pE,K)):mz(v,JSON.stringify(J.postParams),J,LE,K):g.pE(v,J)}; j3=function(v,J){g.dx("use_event_time_ms_header")&&Y6(v)&&(J.headers||(J.headers={}),J.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.yR)())));return J}; DAr=function(v,J){var G=J.onError?J.onError:function(){}; J.onError=function(V,Y){HO().requestComplete(v,!1);G(V,Y)}; var K=J.onSuccess?J.onSuccess:function(){}; J.onSuccess=function(V,Y){HO().requestComplete(v,!0);K(V,Y)}}; g.iN=function(v){this.config_=null;v?this.config_=v:E58()&&(this.config_=g.Ea())}; g.$Z=function(v,J,G,K){function V(P){try{if((P===void 0?0:P)&&K.retry&&!K.networklessOptions.bypassNetworkless)Y.method="POST",K.networklessOptions.writeThenSend?b5().writeThenSend(e,Y):b5().sendAndWrite(e,Y);else if(K.compress){var D=!K.networklessOptions.writeThenSend;if(Y.postBody){var t=Y.postBody;typeof t!=="string"&&(t=JSON.stringify(Y.postBody));mz(e,t,Y,g.pE,D)}else mz(e,JSON.stringify(Y.postParams),Y,LE,D)}else g.dx("web_all_payloads_via_jspb")?g.pE(e,Y):LE(e,Y)}catch(B){if(B.name==="InvalidAccessError")iR(Error("An extension is blocking network request.")); else throw B;}} !g.H$("VISITOR_DATA")&&J!=="visitor_id"&&Math.random()<.01&&iR(new g.Mk("Missing VISITOR_DATA when sending innertube request.",J,G,K));if(!v.isReady())throw v=new g.Mk("innertube xhrclient not ready",J,G,K),g.b9(v),v;var Y={headers:K.headers||{},method:"POST",postParams:G,postBody:K.postBody,postBodyFormat:K.postBodyFormat||"JSON",onTimeout:function(){K.onTimeout()}, onFetchTimeout:K.onTimeout,onSuccess:function(P,D){if(K.onSuccess)K.onSuccess(D)}, onFetchSuccess:function(P){if(K.onSuccess)K.onSuccess(P)}, onError:function(P,D){if(K.onError)K.onError(D)}, onFetchError:function(P){if(K.onError)K.onError(P)}, timeout:K.timeout,withCredentials:!0,compress:K.compress};Y.headers["Content-Type"]||(Y.headers["Content-Type"]="application/json");G="";var r=v.config_.lT;r&&(G=r);r=v.config_.VV||!1;var E=d42(r,G,K);Object.assign(Y.headers,E);Y.headers.Authorization&&!G&&r&&(Y.headers["x-origin"]=window.location.origin);var e=KE(""+G+("/youtubei/"+v.config_.innertubeApiVersion+"/"+J),{alt:"json"});g.NL("ytNetworklessLoggingInitializationOptions")&&tkr.isNwlInitialized?u6U().then(function(P){V(P)}):V(!1)}; g.Kr=function(v,J,G){var K=g.vo();if(K&&J){var V=K.subscribe(v,function(){function Y(){J0[V]&&J.apply&&typeof J.apply=="function"&&J.apply(G||window,r)} var r=arguments;try{g.GI[v]?Y():g.By(Y,0)}catch(E){g.b9(E)}},G); J0[V]=!0;ob[v]||(ob[v]=[]);ob[v].push(V);return V}return 0}; Bx8=function(v){var J=g.Kr("LOGGED_IN",function(G){v.apply(void 0,arguments);g.Vy(J)})}; g.Vy=function(v){var J=g.vo();J&&(typeof v==="number"?v=[v]:typeof v==="string"&&(v=[parseInt(v,10)]),g.PW(v,function(G){J.unsubscribeByKey(G);delete J0[G]}))}; g.YZ=function(v,J){var G=g.vo();return G?G.publish.apply(G,arguments):!1}; hum=function(v){var J=g.vo();if(J)if(J.clear(v),v)I8B(v);else for(var G in ob)I8B(G)}; g.vo=function(){return g.X2.ytPubsubPubsubInstance}; I8B=function(v){ob[v]&&(v=ob[v],g.PW(v,function(J){J0[J]&&delete J0[J]}),v.length=0)}; g.rg=function(v,J,G){zuj(v,J,G===void 0?null:G)}; zuj=function(v,J,G){G=G===void 0?null:G;var K=n62(v),V=document.getElementById(K),Y=V&&x3X(V),r=V&&!Y;Y?J&&J():(J&&(Y=g.Kr(K,J),J=""+g.Cf(J),dA2[J]=Y),r||(V=sSm(v,K,function(){x3X(V)||(U3f(V),g.YZ(K),g.By(function(){hum(K)},0))},G)))}; sSm=function(v,J,G,K){K=K===void 0?null:K;var V=g.qh("SCRIPT");V.id=J;V.onload=function(){G&&setTimeout(G,0)}; V.onreadystatechange=function(){switch(V.readyState){case "loaded":case "complete":V.onload()}}; K&&V.setAttribute("nonce",K);g.jK(V,g.Tm(v));v=document.getElementsByTagName("head")[0]||document.body;v.insertBefore(V,v.firstChild);return V}; n62=function(v){var J=document.createElement("a");g.az(J,v);v=J.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+rd(v)}; qo=function(v,J){if(v===J)v=!0;else if(Array.isArray(v)&&Array.isArray(J))v=g.Eb(v,J,qo);else if(g.ML(v)&&g.ML(J))a:if(g.fk(v).length!=g.fk(J).length)v=!1;else{for(var G in v)if(!qo(v[G],J[G])){v=!1;break a}v=!0}else v=!1;return v}; Po=function(v){var J=g.Om.apply(1,arguments);if(!E0(v)||J.some(function(K){return!E0(K)}))throw Error("Only objects may be merged."); J=g.n(J);for(var G=J.next();!G.done;G=J.next())e3(v,G.value)}; e3=function(v,J){for(var G in J)if(E0(J[G])){if(G in v&&!E0(v[G]))throw Error("Cannot merge an object into a non-object.");G in v||(v[G]={});e3(v[G],J[G])}else if(h0(J[G])){if(G in v&&!h0(v[G]))throw Error("Cannot merge an array into a non-array.");G in v||(v[G]=[]);Ruf(v[G],J[G])}else v[G]=J[G];return v}; Ruf=function(v,J){J=g.n(J);for(var G=J.next();!G.done;G=J.next())G=G.value,E0(G)?v.push(e3({},G)):h0(G)?v.push(Ruf([],G)):v.push(G);return v}; E0=function(v){return typeof v==="object"&&!Array.isArray(v)}; h0=function(v){return typeof v==="object"&&Array.isArray(v)}; zI=function(v){g.X.call(this);this.X=v}; nr=function(v){zI.call(this,!0);this.T=v}; dg=function(v,J){g.X.call(this);var G=this;this.Z=[];this.K=!1;this.X=0;this.J=this.j=this.L=!1;this.oY=null;var K=(0,g.bj)(v,J);this.T=new g.Qq(function(){return K(G.oY)},300); g.k(this,this.T);this.N=this.U=Infinity}; l8f=function(v,J){if(!J)return!1;for(var G=0;G-1)throw Error("Deps cycle for: "+J);if(v.X.has(J))return v.X.get(J);if(!v.T.has(J)){if(K)return;throw Error("No provider for: "+J);}K=v.T.get(J);G.push(J);if(K.py!==void 0)var V=K.py;else if(K.jfB)V=K[mZ]?yhw(v,K[mZ],G):[],V=K.jfB.apply(K,g.l(V));else if(K.gY){V=K.gY;var Y=V[mZ]?yhw(v,V[mZ],G):[];V=new (Function.prototype.bind.apply(V,[null].concat(g.l(Y))))}else throw Error("Could not resolve providers for: "+J);G.pop();K.MmY||v.X.set(J,V); return V}; yhw=function(v,J,G){return J?J.map(function(K){return K instanceof O0?S3(v,K.key,G,!0):S3(v,K,G)}):[]}; ZE=function(){fr||(fr=new Laj);return fr}; gg=function(){var v,J;return"h5vcc"in uN&&((v=uN.h5vcc.traceEvent)==null?0:v.traceBegin)&&((J=uN.h5vcc.traceEvent)==null?0:J.traceEnd)?1:"performance"in uN&&uN.performance.mark&&uN.performance.measure?2:0}; Xv=function(v){var J=gg();switch(J){case 1:uN.h5vcc.traceEvent.traceBegin("YTLR",v);break;case 2:uN.performance.mark(v+"-start");break;case 0:break;default:Vu(J,"unknown trace type")}}; wy2=function(v){var J=gg();switch(J){case 1:uN.h5vcc.traceEvent.traceEnd("YTLR",v);break;case 2:J=v+"-start";var G=v+"-end";uN.performance.mark(G);uN.performance.measure(v,J,G);break;case 0:break;default:Vu(J,"unknown trace type")}}; OEw=function(v){var J,G;(G=(J=window).onerror)==null||G.call(J,v.message,"",0,0,v)}; UA2=function(v){var J=this;var G=G===void 0?0:G;var K=K===void 0?g.$q():K;this.Z=G;this.scheduler=K;this.X=new g.w5;this.T=v;for(v={cJ:0};v.cJ=1E3?V():K>=v?qT||(qT=E2(function(){V();qT=void 0},0)):Y-E>=10&&(QSj(J,G.tier),r.L=Y)}; a8s=function(v,J){if(v.endpoint==="log_event"){g.dx("more_accurate_gel_parser")&&$m().storePayload({isJspb:!1},v.payload);Jt(v);var G=G9(v),K=new Map;K.set(G,[v.payload]);var V=kej(v.payload)||"";J&&(Ym=new J);return new g.yr(function(Y,r){Ym&&Ym.isReady()?Wam(K,Ym,Y,r,{bypassNetworkless:!0},!0,KW(V)):Y()})}}; HEB=function(v,J,G){if(J.endpoint==="log_event"){Jt(void 0,J);var K=G9(J,!0),V=new Map;V.set(K,[ZG(J.payload)]);G&&(Ym=new G);return new g.yr(function(Y){Ym&&Ym.isReady()?CRw(V,Ym,Y,{bypassNetworkless:!0},!0,KW(v)):Y()})}}; G9=function(v,J){var G="";if(v.dangerousLogToVisitorSession)G="visitorOnlyApprovedKey";else if(v.cttAuthInfo){if(J===void 0?0:J){J=v.cttAuthInfo.token;G=v.cttAuthInfo;var K=new ay;G.videoId?K.setVideoId(G.videoId):G.playlistId&&q$(K,2,eD,ly(G.playlistId));PX[J]=K}else J=v.cttAuthInfo,G={},J.videoId?G.videoId=J.videoId:J.playlistId&&(G.playlistId=J.playlistId),Dl[v.cttAuthInfo.token]=G;G=v.cttAuthInfo.token}return G}; VV=function(v,J,G){v=v===void 0?{}:v;J=J===void 0?!1:J;new g.yr(function(K,V){var Y=ru(J,G),r=Y.Z;Y.Z=!1;tt(Y.X);tt(Y.T);Y.T=0;Ym&&Ym.isReady()?G===void 0&&g.dx("enable_web_tiered_gel")?bEr(K,V,v,J,300,r):bEr(K,V,v,J,G,r):(QSj(J,G),K())})}; bEr=function(v,J,G,K,V,Y){var r=Ym;G=G===void 0?{}:G;K=K===void 0?!1:K;V=V===void 0?200:V;Y=Y===void 0?!1:Y;var E=new Map,e=new Map,P={isJspb:K,cttAuthInfo:void 0,tier:V},D={isJspb:K,cttAuthInfo:void 0};if(K){J=g.n(Object.keys(o5));for(V=J.next();!V.done;V=J.next())V=V.value,e=g.dx("enable_web_tiered_gel")?$m().smartExtractMatchingEntries({keys:[P,D],sizeLimit:1E3}):$m().extractMatchingEntries({isJspb:!0,cttAuthInfo:V}),e.length>0&&E.set(V,e),(g.dx("web_fp_via_jspb_and_json")&&G.writeThenSend||!g.dx("web_fp_via_jspb_and_json"))&& delete o5[V];CRw(E,r,v,G,!1,Y)}else{E=g.n(Object.keys(o5));for(P=E.next();!P.done;P=E.next())P=P.value,D=g.dx("enable_web_tiered_gel")?$m().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:P,tier:V},{isJspb:!1,cttAuthInfo:P}],sizeLimit:1E3}):$m().extractMatchingEntries({isJspb:!1,cttAuthInfo:P}),D.length>0&&e.set(P,D),(g.dx("web_fp_via_jspb_and_json")&&G.writeThenSend||!g.dx("web_fp_via_jspb_and_json"))&&delete o5[P];Wam(e,r,v,J,G,!1,Y)}}; QSj=function(v,J){function G(){VV({writeThenSend:!0},v,J)} v=v===void 0?!1:v;J=J===void 0?200:J;var K=ru(v,J),V=K===jPm||K===iqf?5E3:$kX;g.dx("web_gel_timeout_cap")&&!K.T&&(V=E2(function(){G()},V),K.T=V); tt(K.X);V=g.H$("LOGGING_BATCH_TIMEOUT",g.si("web_gel_debounce_ms",1E4));g.dx("shorten_initial_gel_batch_timeout")&&BX&&(V=vLU);V=E2(function(){g.si("gel_min_batch_size")>0?$m().getSequenceCount({cttAuthInfo:void 0,isJspb:v,tier:J})>=JD8&&G():G()},V); K.X=V}; Wam=function(v,J,G,K,V,Y,r){V=V===void 0?{}:V;var E=Math.round((0,g.yR)()),e=v.size,P=GZj(r);v=g.n(v);var D=v.next();for(r={};!D.done;r={oF:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,hf:void 0,v2:void 0},D=v.next()){var t=g.n(D.value);D=t.next().value;t=t.next().value;r.batchRequest=g.a7({context:g.eg(J.config_||g.Ea())});if(!g.HF(t)&&!g.dx("throw_err_when_logevent_malformed_killswitch")){K();break}r.batchRequest.events=t;(t=Dl[D])&&oLm(r.batchRequest,D,t);delete Dl[D];r.dangerousLogToVisitorSession= D==="visitorOnlyApprovedKey";Kmr(r.batchRequest,E,r.dangerousLogToVisitorSession);VWj(V);r.hf=function(B){g.dx("start_client_gcf")&&g.cq.eD(function(){return g.m(function(I){return g.U(I,Y9U(B),0)})}); e--;e||G()}; r.oF=0;r.v2=function(B){return function(){B.oF++;if(V.bypassNetworkless&&B.oF===1)try{g.$Z(J,P,B.batchRequest,I5({writeThenSend:!0},B.dangerousLogToVisitorSession,B.hf,B.v2,Y)),BX=!1}catch(I){g.b9(I),K()}e--;e||G()}}(r); try{g.$Z(J,P,r.batchRequest,I5(V,r.dangerousLogToVisitorSession,r.hf,r.v2,Y)),BX=!1}catch(B){g.b9(B),K()}}}; CRw=function(v,J,G,K,V,Y){K=K===void 0?{}:K;var r=Math.round((0,g.yR)()),E={value:v.size},e=new Map([].concat(g.l(v)));e=g.n(e);for(var P=e.next();!P.done;P=e.next()){var D=g.n(P.value).next().value,t=v.get(D);P=new uNX;var B=J.config_||g.Ea(),I=new u9,h=new OE;T7(h,1,B.N6);T7(h,2,B.hs);Lo(h,16,B.Wu);T7(h,17,B.innertubeContextClientVersion);if(B.Sa){var R=B.Sa,T=new yZ;R.coldConfigData&&T7(T,1,R.coldConfigData);R.appInstallData&&T7(T,6,R.appInstallData);R.coldHashData&&T7(T,3,R.coldHashData);R.hotHashData&& T.QY(R.hotHashData);Bh(h,yZ,62,T)}(R=g.X2.devicePixelRatio)&&R!=1&&WJ(h,65,YO(R));R=RS();R!==""&&T7(h,54,R);R=lR();if(R.length>0){T=new mO;for(var L=0;L65535&&(v=1);F4("BATCH_CLIENT_COUNTER",v);return v}; oLm=function(v,J,G){if(G.videoId)var K="VIDEO";else if(G.playlistId)K="PLAYLIST";else return;v.credentialTransferTokenTargetId=G;v.context=v.context||{};v.context.user=v.context.user||{};v.context.user.credentialTransferTokens=[{token:J,scope:K}]}; Jt=function(v,J){if(!g.NL("yt.logging.transport.enableScrapingForTest")){var G=nE("il_payload_scraping");if((G!==void 0?String(G):"")==="enable_il_payload_scraping")nW=[],g.ks("yt.logging.transport.enableScrapingForTest",!0),g.ks("yt.logging.transport.scrapedPayloadsForTesting",nW),g.ks("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.ks("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.ks("yt.logging.transport.scrapeClientEvent",!0);else return}G=g.NL("yt.logging.transport.scrapedPayloadsForTesting");var K=g.NL("yt.logging.transport.payloadToScrape");J&&(J=J.payload,(J=g.NL("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(J)())&&G.push(J));J=g.NL("yt.logging.transport.scrapeClientEvent");if(K&&K.length>=1)for(var V=0;V0&&w8m(v,J,Y)}else w8m(v,J)}; w8m=function(v,J,G){v=Oqj(v);J=J?g.$l(J):"";G=G||5;JD()&&g.Z8(v,J,G)}; Oqj=function(v){for(var J=g.n(Ukw),G=J.next();!G.done;G=J.next())v=of(v,G.value);return"ST-"+rd(v).toString(36)}; xkf=function(v){if(v.name==="JavaException")return!0;v=v.stack;return v.includes("chrome://")||v.includes("chrome-extension://")||v.includes("moz-extension://")}; mk2=function(){this.oe=[];this.Re=[]}; U2=function(){if(!O2){var v=O2=new mk2;v.Re.length=0;v.oe.length=0;S9X(v,fgF)}return O2}; S9X=function(v,J){J.Re&&v.Re.push.apply(v.Re,J.Re);J.oe&&v.oe.push.apply(v.oe,J.oe)}; ZqU=function(v){function J(){return v.charCodeAt(K++)} var G=v.length,K=0;do{var V=xm(J);if(V===Infinity)break;var Y=V>>3;switch(V&7){case 0:V=xm(J);if(Y===2)return V;break;case 1:if(Y===2)return;K+=8;break;case 2:V=xm(J);if(Y===2)return v.substr(K,V);K+=V;break;case 5:if(Y===2)return;K+=4;break;default:return}}while(K500));K++);K=V}else if(typeof v==="object")for(V in v){if(v[V]){var Y=V;var r=v[V],E=J,e=G;Y=typeof r!=="string"||Y!=="clickTrackingParams"&&Y!=="trackingParams"?0:(r=ZqU(atob(r.replace(/-/g,"+").replace(/_/g,"/"))))?ms(Y+".ve",r,E,e):0;K+=Y;K+=ms(V,v[V],J,G);if(K>500)break}}else G[J]=SD(v),K+=G[J].length;else G[J]=SD(v),K+=G[J].length;return K}; ms=function(v,J,G,K){G+="."+v;v=SD(J);K[G]=v;return G.length+v.length}; SD=function(v){try{return(typeof v==="string"?v:String(JSON.stringify(v))).substr(0,500)}catch(J){return"unable to serialize "+typeof v+" ("+J.message+")"}}; rI=function(v){g.fW(v)}; g.Zl=function(v){g.fW(v,"WARNING")}; g.fW=function(v,J){var G=G===void 0?{}:G;G.name=g.H$("INNERTUBE_CONTEXT_CLIENT_NAME",1);G.version=g.H$("INNERTUBE_CONTEXT_CLIENT_VERSION");J=J===void 0?"ERROR":J;var K=!1;J=J===void 0?"ERROR":J;K=K===void 0?!1:K;if(v){v.hasOwnProperty("level")&&v.level&&(J=v.level);if(g.dx("console_log_js_exceptions")){var V=[];V.push("Name: "+v.name);V.push("Message: "+v.message);v.hasOwnProperty("params")&&V.push("Error Params: "+JSON.stringify(v.params));v.hasOwnProperty("args")&&V.push("Error args: "+JSON.stringify(v.args)); V.push("File name: "+v.fileName);V.push("Stacktrace: "+v.stack);window.console.log(V.join("\n"),v)}if(!(gLF>=5)){V=[];for(var Y=g.n(X8s),r=Y.next();!r.done;r=Y.next()){r=r.value;try{r()&&V.push(r())}catch(R){}}V=[].concat(g.l(kZB),g.l(V));var E=pJX(v);Y=E.message||"Unknown Error";r=E.name||"UnknownError";var e=E.stack||v.X||"Not available";if(e.startsWith(r+": "+Y)){var P=e.split("\n");P.shift();e=P.join("\n")}P=E.lineNumber||"Not available";E=E.fileName||"Not available";var D=0;if(v.hasOwnProperty("args")&& v.args&&v.args.length)for(var t=0;t=500);t++);else if(v.hasOwnProperty("params")&&v.params){var B=v.params;if(typeof v.params==="object")for(t in B){if(B[t]){var I="params."+t,h=SD(B[t]);G[I]=h;D+=I.length+h.length;if(D>500)break}}else G.params=SD(B)}if(V.length)for(t=0;t=500);t++);navigator.vendor&&!G.hasOwnProperty("vendor")&&(G["device.vendor"]=navigator.vendor);G={message:Y,name:r,lineNumber:P, fileName:E,stack:e,params:G,sampleWeight:1};t=Number(v.columnNumber);isNaN(t)||(G.lineNumber=G.lineNumber+":"+t);if(v.level==="IGNORED")v=0;else a:{v=U2();t=g.n(v.Re);for(V=t.next();!V.done;V=t.next())if(V=V.value,G.message&&G.message.match(V.GV)){v=V.weight;break a}v=g.n(v.oe);for(t=v.next();!t.done;t=v.next())if(t=t.value,t.callback(G)){v=t.weight;break a}v=1}G.sampleWeight=v;v=g.n(cDm);for(t=v.next();!t.done;t=v.next())if(t=t.value,t.Ay[G.name])for(Y=g.n(t.Ay[G.name]),V=Y.next();!V.done;V=Y.next())if(r= V.value,V=G.message.match(r.AF)){G.params["params.error.original"]=V[0];Y=r.groups;r={};for(P=0;P1E3&&g.Zl(new g.Mk("IL Attach cache exceeded limit"))}E= WX(G,J);At.has(E)?CW(G,J):HX.set(E,!0)}}K=K.filter(function(D){D.csn!==J?(D.csn=J,D=!0):D=!1;return D}); G={csn:J,parentVe:G.getAsJson(),childVes:g.yn(K,function(D){return D.getAsJson()})}; J==="UNDEFINED_CSN"?bW("visualElementAttached",Y,G):v?s2("visualElementAttached",G,v,Y):g.ql("visualElementAttached",G,Y)}; JPt=function(v,J,G,K,V){jn(G,J);K=a5({cttAuthInfo:yV(J)||void 0},J);G={csn:J,ve:G.getAsJson(),eventType:1};V&&(G.clientData=V);J==="UNDEFINED_CSN"?bW("visualElementShown",K,G):v?s2("visualElementShown",G,v,K):g.ql("visualElementShown",G,K)}; GBX=function(v,J,G,K){var V=(K=K===void 0?!1:K)?16:8;K=a5({cttAuthInfo:yV(J)||void 0,endOfSequence:K},J);G={csn:J,ve:G.getAsJson(),eventType:V};J==="UNDEFINED_CSN"?bW("visualElementHidden",K,G):v?s2("visualElementHidden",G,v,K):g.ql("visualElementHidden",G,K)}; $P=function(v,J,G,K,V){i_(v,J,G,void 0,K,V)}; i_=function(v,J,G,K,V){jn(G,J);K=K||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var Y=a5({cttAuthInfo:yV(J)||void 0},J);G={csn:J,ve:G.getAsJson(),gestureType:K};V&&(G.clientData=V);J==="UNDEFINED_CSN"?bW("visualElementGestured",Y,G):v?s2("visualElementGestured",G,v,Y):g.ql("visualElementGestured",G,Y)}; oqr=function(){var v=Rb(16);for(var J=[],G=0;G0&&G.push(g.qh("BR"));G.push(g.Eo(Y))}):G.push(g.Eo(K))}return G}; DH=function(v,J,G,K){if(G==="child"){g.PM(J);var V;K===void 0?V=void 0:V=!Array.isArray(K)||K&&typeof K.Y==="string"?[K]:K;G=VQF(v,V);G=g.n(G);for(v=G.next();!v.done;v=G.next())J.appendChild(v.value)}else G==="style"?g.ep(J,"cssText",K?K:""):K===null||K===void 0?J.removeAttribute(G):(v=K.toString(),G==="href"&&(v=g.gR(g.ca(v))),J.setAttribute(G,v))}; g.F=function(v){g.en.call(this,v);this.TG=!0;this.J=!1;this.listeners=[]}; g.t9=function(v){g.F.call(this,v);this.Gi=new g.qU;g.k(this,this.Gi)}; Br=function(v,J,G,K,V,Y,r){r=r===void 0?null:r;g.t9.call(this,J);this.api=v;this.macros={};this.componentType=G;this.K=this.U=null;this.wh=r;this.layoutId=K;this.interactionLoggingClientData=V;this.rh=Y;this.xB=null;this.Wd=new nr(this.element);g.k(this,this.Wd);this.Nr=this.G(this.element,"click",this.onClick);this.Ze=[];this.dh=new dg(this.onClick,this);g.k(this,this.dh);this.o$=!1;this.qr=this.oY=null}; IK=function(v,J){v=v===void 0?null:v;J=J===void 0?null:J;if(v==null)return g.Zl(Error("Got null or undefined adText object")),"";var G=g.Yy(v.text);if(!v.isTemplated)return G;if(J==null)return g.Zl(Error("Missing required parameters for a templated message")),G;v=g.n(Object.entries(J));for(J=v.next();!J.done;J=v.next()){var K=g.n(J.value);J=K.next().value;K=K.next().value;G=G.replace("{"+J+"}",K)}return G}; YT8=function(v){v=v===void 0?null:v;return v!=null&&(v=v.thumbnail,v!=null&&v.thumbnails!=null&&v.thumbnails.length!=0&&v.thumbnails[0].url!=null)?g.Yy(v.thumbnails[0].url):""}; rP2=function(v){v=v===void 0?null:v;return v!=null&&(v=v.thumbnail,v!=null&&v.thumbnails!=null&&v.thumbnails.length!=0&&v.thumbnails[0].width!=null&&v.thumbnails[0].height!=null)?new g.Tx(v.thumbnails[0].width||0,v.thumbnails[0].height||0):new g.Tx(0,0)}; g.h9=function(v){if(v.simpleText)return v.simpleText;if(v.runs){var J=[];v=g.n(v.runs);for(var G=v.next();!G.done;G=v.next())G=G.value,G.text&&J.push(G.text);return J.join("")}return""}; g.z8=function(v){if(v.simpleText)return v=document.createTextNode(v.simpleText),v;var J=[];if(v.runs)for(var G=0;G1){for(var J=[v[0]],G=1;G0&&(this.T=new g.Qq(this.EC,J,this),g.k(this,this.T));this.J=new g.Qq(this.EC,G,this);g.k(this,this.J);this.U=pjF(this.X,V,1,K);g.k(this,this.U);this.K=pjF(this.X,0,K,1);g.k(this,this.K);this.L=new yC;g.k(this,this.L)}; ry=function(v,J,G){this.X=v;this.isAsync=J;this.T=G}; HPX=function(v){switch(v){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Vu(v,"unknown result type")}}; MQm=function(v,J){var G=1;v.isTrusted===!1&&(G=0);F4("ISDSTAT",G);q1(G,"i.s_",{triggerContext:"sk",metadata:J});return G}; Q2w=function(v,J){var G=[];J?J.isTrusted===!0?G.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):J.isTrusted===!1?G.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):G.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):G.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");q1(0,"a.s_",{metadata:v,states:G});F4("ASDSTAT",0)}; q1=function(v,J,G){J=Wgs[J];var K,V,Y={detected:v===0,source:""+J.X+((K=G.triggerContext)!=null?K:"")+((V=G.UM)!=null?V:""),detectionStates:G.states,durationMs:G.RL};G.metadata&&(Y.contentCpn=G.metadata.contentCpn,Y.adCpn=G.metadata.adCpn);g.ql("biscottiBasedDetection",Y);J.T!==void 0&&(G=Number(g.H$("CATSTAT",0)),J.T!==void 0?(J=J.T,v=HPX(v),v=G&~(3<0}; IA=function(v,J,G,K,V,Y){id.call(this,v,{Y:"div",D:"ytp-ad-skip-button-slot"},"skip-button",J,G,K,V);var r=this;this.Ti=null;this.Mr=!1;this.RY=Y;this.j=this.api.B().experiments.OB("enable_modern_skip_button_on_web");this.BH=!1;this.Z=new g.t9({Y:"span",n7:["ytp-ad-skip-button-container"]});this.j&&this.Z.element.classList.add("ytp-ad-skip-button-container-detached");this.api.C("enable_ad_pod_index_autohide")&&this.Z.element.classList.add("ytp-ad-skip-button-container--clean-player");g.k(this,this.Z); this.Z.vH(this.element);this.X=this.L=null;this.WH=new g.Jk(this.Z,500,!1,100,function(){return r.hide()}); g.k(this,this.WH);this.YB=new Yp(this.Z.element,15E3,5E3,.5,.5,this.j);g.k(this,this.YB);this.hide()}; bPU=function(v){v=v.Ti&&v.Ti.adRendererCommands;return(v&&v.clickCommand&&g.N(v.clickCommand,g.hk)&&g.N(v.clickCommand,g.hk).commands||[]).some(function(J){return J.adLifecycleCommand?CK8(J.adLifecycleCommand):!1})}; CK8=function(v){return v.action==="END_LINEAR_AD"||v.action==="END_LINEAR_AD_PLACEMENT"}; z$=function(v,J,G,K,V,Y){id.call(this,v,{Y:"div",D:"ytp-ad-skip-ad-slot"},"skip-ad",J,G,K,V);this.Ti=Y;this.L=!1;this.j=0;this.Z=this.X=null;this.hide()}; jk2=function(v,J){v.L||(v.L=!0,v.X&&(J?v.X.Ti.hide():v.X.hide()),J?(v=v.Z,v.WH.show(),v.show()):v.Z.show())}; nd=function(v,J,G,K){Sn.call(this,v,J,G,K,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; dy=function(v,J,G,K,V,Y,r){Y=Y===void 0?!1:Y;r=r===void 0?!1:r;Br.call(this,v,{Y:"span",D:"ytp-ad-simple-ad-badge"},"simple-ad-badge",J,G,K);this.Z=V;this.T=this.p7("ytp-ad-simple-ad-badge");(this.X=Y)&&this.T.classList.add("ytp-ad-simple-ad-badge--clean-player");r&&this.T.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; sU=function(v,J,G,K,V){V=V===void 0?!1:V;r8.call(this,"player-overlay",v,{},J,K);this.videoAdDurationSeconds=G;this.interactionLoggingClientData=K;this.v3=V}; RA=function(v,J){g.qU.call(this);this.api=v;this.durationMs=J;this.T=null;this.e3=new yC(this);g.k(this,this.e3);this.X=ieL;this.e3.G(this.api,"presentingplayerstatechange",this.uR);this.T=this.e3.G(this.api,"onAdPlaybackProgress",this.kL)}; ld=function(v){g.qU.call(this);this.T=!1;this.CZ=0;this.e3=new yC(this);g.k(this,this.e3);this.durationMs=v;this.W1=new g.ui(100);g.k(this,this.W1);this.e3.G(this.W1,"tick",this.kL);this.X={seekableStart:0,seekableEnd:v/1E3,current:0};this.start()}; g.T$=function(v,J){var G=Math.abs(Math.floor(v)),K=Math.floor(G/86400),V=Math.floor(G%86400/3600),Y=Math.floor(G%3600/60);G=Math.floor(G%60);if(J){J="";K>0&&(J+=" "+K+" Days");if(K>0||V>0)J+=" "+V+" Hours";J+=" "+Y+" Minutes";J+=" "+G+" Seconds";K=J.trim()}else{J="";K>0&&(J+=K+":",V<10&&(J+="0"));if(K>0||V>0)J+=V+":",Y<10&&(J+="0");J+=Y+":";G<10&&(J+="0");K=J+G}return v>=0?K:"-"+K}; g.pd=function(v){return(!("button"in v)||typeof v.button!=="number"||v.button===0)&&!("shiftKey"in v&&v.shiftKey)&&!("altKey"in v&&v.altKey)&&!("metaKey"in v&&v.metaKey)&&!("ctrlKey"in v&&v.ctrlKey)}; Ld=function(v,J,G,K,V,Y,r){id.call(this,v,{Y:"span",D:r?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",J,G,K,V);this.videoAdDurationSeconds=Y;this.X=null;r&&this.api.B().X&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),Ml&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; yQ=function(v,J,G,K){b_.call(this,v,J,G,K,"ytp-video-ad-top-bar-title","ad-title")}; wy=function(v){this.content=v.content;if(v.commandRuns){v=g.n(v.commandRuns);for(var J=v.next();!J.done;J=v.next())J=J.value,this.loggingDirectives=g.N(J,$2w),J.onTap&&(this.interaction={onTap:J.onTap})}}; OU=function(v,J,G,K){Br.call(this,v,{Y:"div",D:"ad-simple-attributed-string"},"ad-simple-attributed-string",J,G,K);this.hide()}; UU=function(v,J,G,K,V){Br.call(this,v,{Y:"span",D:V?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",J,G,K);this.X=V;this.adBadgeText=new OU(this.api,this.layoutId,this.interactionLoggingClientData,this.rh);this.adBadgeText.vH(this.element);g.k(this,this.adBadgeText);V?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),Ml&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; xp=function(v,J,G,K){Br.call(this,v,{Y:"span",D:"ytp-ad-pod-index"},"ad-pod-index",J,G,K);this.api.B().X&&(this.element.classList.add("ytp-ad-pod-index--mweb"),Ml&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; mk=function(v,J,G,K){Br.call(this,v,{Y:"div",D:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",J,G,K);this.hide()}; Sr=function(v,J){this.X=v;this.T=J}; fd=function(v,J,G){if(!v.getLength())return G!=null?G:Infinity;v=(J-v.X)/v.getLength();return g.nk(v,0,1)}; Zz=function(v,J,G,K){K=K===void 0?!1:K;g.t9.call(this,{Y:"div",D:"ytp-ad-persistent-progress-bar-container",W:[{Y:"div",D:"ytp-ad-persistent-progress-bar"}]});this.api=v;this.X=J;this.Z=G;K&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.k(this,this.X);this.progressBar=this.p7("ytp-ad-persistent-progress-bar");this.T=-1;this.G(v,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; ud=function(v,J,G,K,V,Y){Br.call(this,v,{Y:"div",D:"ytp-ad-player-overlay",W:[{Y:"div",D:"ytp-ad-player-overlay-flyout-cta"},{Y:"div",D:"ytp-ad-player-overlay-instream-info"},{Y:"div",D:"ytp-ad-player-overlay-skip-or-preview"},{Y:"div",D:"ytp-ad-player-overlay-progress-bar"},{Y:"div",D:"ytp-ad-player-overlay-instream-user-sentiment"},{Y:"div",D:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",J,G,K);this.N=Y;this.j=this.p7("ytp-ad-player-overlay-flyout-cta");this.j.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.T=this.p7("ytp-ad-player-overlay-instream-info");this.L=null;vE2(this)&&(v=rA("div"),g.Vj(v,"ytp-ad-player-overlay-top-bar-gradients"),J=this.T,J.parentNode&&J.parentNode.insertBefore(v,J),(J=this.api.getVideoData(2))&&J.isListed&&J.title&&(G=new yQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rh),G.vH(v),G.init(YP("ad-title"),{text:J.title},this.macros),g.k(this,G)),this.L=v);this.Z=null;this.jl=this.p7("ytp-ad-player-overlay-skip-or-preview");this.YB=this.p7("ytp-ad-player-overlay-progress-bar"); this.Mr=this.p7("ytp-ad-player-overlay-instream-user-sentiment");this.Ti=this.p7("ytp-ad-player-overlay-ad-disclosure-banner");this.X=V;g.k(this,this.X);this.hide()}; vE2=function(v){v=v.api.B();var J=g.gy(v)&&v.X;return v.C("embeds_embc3ds_atb")&&v.disableOrganicUi&&!0||J}; XT=function(v,J,G){var K={};J&&(K.v=J);G&&(K.list=G);v={name:v,locale:void 0,feature:void 0};for(var V in K)v[V]=K[V];K=g.vt("/sharing_services",v);g.cO(K)}; g.kp=function(v){v&=16777215;var J=[(v&16711680)>>16,(v&65280)>>8,v&255];v=J[0];var G=J[1];J=J[2];v=Number(v);G=Number(G);J=Number(J);if(v!=(v&255)||G!=(G&255)||J!=(J&255))throw Error('"('+v+","+G+","+J+'") is not a valid RGB color');G=v<<16|G<<8|J;return v<16?"#"+(16777216|G).toString(16).slice(1):"#"+G.toString(16)}; cs=function(v){this.T=new O3(v)}; J$8=function(){var v=!1;try{v=!!window.sessionStorage.getItem("session_logininfo")}catch(J){v=!0}return(g.H$("INNERTUBE_CLIENT_NAME")==="WEB"||g.H$("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&v}; N1=function(v){if(g.H$("LOGGED_IN",!0)&&J$8()){var J=g.H$("VALID_SESSION_TEMPDATA_DOMAINS",[]);var G=g.Wp(window.location.href);G&&J.push(G);G=g.Wp(v);g.WN(J,G)||!G&&dT(v,"/")?(J=CQ(v),(J=hn8(J))?(J=Oqj(J),J=(J=g.uR(J)||null)?Jh(J):{}):J=null):J=null;J==null&&(J={});G=J;var K=void 0;J$8()?(K||(K=g.H$("LOGIN_INFO")),K?(G.session_logininfo=K,G=!0):G=!1):G=!1;G&&wu(v,J)}}; g.Gw8=function(v){var J=J===void 0?{}:J;var G=G===void 0?"":G;var K=K===void 0?window:K;v=g.vt(v,J);N1(v);G=g.ca(v+G);K=K.location;G=Nv(G);G!==void 0&&(K.href=G)}; g.aA=function(v,J,G){J=J===void 0?{}:J;G=G===void 0?!1:G;var K=g.H$("EVENT_ID");K&&(J.ei||(J.ei=K));J&&wu(v,J);G||(N1(v),g.Gw8(v))}; g.Ak=function(v,J,G,K,V){V=V===void 0?!1:V;G&&wu(v,G);G=g.ca(v);var Y=g.gR(G);v!=Y&&iR(Error("Unsafe window.open URL: "+v));v=Y;J=J||rd(v).toString(36);try{if(V)return V=v,V=YiB(V),N1(V),g.Mv(window,V,J,"attributionsrc")}catch(r){g.b9(r)}N1(v);return g.Mv(window,G,J,K)}; oEw=function(v){FT=v}; Kzm=function(v){Hs=v}; VgL=function(v){M1=v}; r$j=function(){Ya8=M1=Hs=FT=null}; EEF=function(){var v=v===void 0?window.location.href:v;if(g.dx("kevlar_disable_theme_param"))return null;var J=Hp(g.Qr(5,v));if(g.dx("enable_dark_theme_only_on_shorts")&&J!=null&&J.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var G=g.oS(v).theme;return qa8.get(G)||null}catch(K){}return null}; QQ=function(){this.T={};if(this.X=D3r()){var v=g.uR("CONSISTENCY");v&&eT2(this,{encryptedTokenJarContents:v})}}; eT2=function(v,J){if(J.encryptedTokenJarContents&&(v.T[J.encryptedTokenJarContents]=J,typeof J.expirationSeconds==="string")){var G=Number(J.expirationSeconds);setTimeout(function(){delete v.T[J.encryptedTokenJarContents]},G*1E3); v.X&&g.Z8("CONSISTENCY",J.encryptedTokenJarContents,G,void 0,!0)}}; Cd=function(){this.X=-1;var v=g.H$("LOCATION_PLAYABILITY_TOKEN");g.H$("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Ws(this))&&(v=this.localStorage.get("yt-location-playability-token"));v&&(this.locationPlayabilityToken=v,this.T=void 0)}; Ws=function(v){return v.localStorage===void 0?new GB("yt-client-location"):v.localStorage}; g.bd=function(v,J,G){J=J===void 0?!1:J;G=G===void 0?!1:G;var K=g.H$("INNERTUBE_CONTEXT");if(!K)return g.fW(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};K=g.a7(K);g.dx("web_no_tracking_params_in_shell_killswitch")||delete K.clickTracking;K.client||(K.client={});var V=K.client;V.clientName==="MWEB"&&V.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(V.clientFormFactor=g.H$("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");V.screenWidthPoints=window.innerWidth;V.screenHeightPoints= window.innerHeight;V.screenPixelDensity=Math.round(window.devicePixelRatio||1);V.screenDensityFloat=window.devicePixelRatio||1;V.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var Y=Y===void 0?!1:Y;g.c8();var r="USER_INTERFACE_THEME_LIGHT";g.Nk(0,165)?r="USER_INTERFACE_THEME_DARK":g.Nk(0,174)?r="USER_INTERFACE_THEME_LIGHT":!g.dx("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (r="USER_INTERFACE_THEME_DARK");Y=Y?r:EEF()||r;V.userInterfaceTheme=Y;if(!J){if(Y=$Rw())V.connectionType=Y;g.dx("web_log_effective_connection_type")&&(Y=Jzm())&&(K.client.effectiveConnectionType=Y)}var E;if(g.dx("web_log_memory_total_kbytes")&&((E=g.X2.navigator)==null?0:E.deviceMemory)){var e;E=(e=g.X2.navigator)==null?void 0:e.deviceMemory;K.client.memoryTotalKbytes=""+E*1E6}g.dx("web_gcf_hashes_innertube")&&(Y=qEj())&&(e=Y.coldConfigData,E=Y.coldHashData,Y=Y.hotHashData,K.client.configInfo=K.client.configInfo|| {},e&&(K.client.configInfo.coldConfigData=e),E&&(K.client.configInfo.coldHashData=E),Y&&(K.client.configInfo.hotHashData=Y));e=g.oS(g.X2.location.href);!g.dx("web_populate_internal_geo_killswitch")&&e.internalcountrycode&&(V.internalGeo=e.internalcountrycode);V.clientName==="MWEB"||V.clientName==="WEB"?(V.mainAppWebInfo={graftUrl:g.X2.location.href},g.dx("kevlar_woffle")&&Myj.instance&&(e=Myj.instance,V.mainAppWebInfo.pwaInstallabilityStatus=!e.T&&e.X?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),V.mainAppWebInfo.webDisplayMode=gs(),V.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):V.clientName==="TVHTML5"&&(!g.dx("web_lr_app_quality_killswitch")&&(e=g.H$("LIVING_ROOM_APP_QUALITY"))&&(V.tvAppInfo=Object.assign(V.tvAppInfo||{},{appQuality:e})),e=g.H$("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(V.tvAppInfo=Object.assign(V.tvAppInfo||{},{certificationScope:e}));if(!g.dx("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var P=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(f){}P=void 0}P&&(V.timeZone=P)}(P=RS())?V.experimentsToken=P:delete V.experimentsToken;P=lR();QQ.instance||(QQ.instance=new QQ);K.request=Object.assign({},K.request,{internalExperimentFlags:P,consistencyTokenJars:g.SK(QQ.instance.T)});!g.dx("web_prequest_context_killswitch")&&(P=g.H$("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(K.request.externalPrequestContext=P);V=g.c8();P=g.Nk(0,58);V=V.get("gsml","");K.user=Object.assign({}, K.user);P&&(K.user.enableSafetyMode=P);V&&(K.user.lockedSafetyMode=!0);g.dx("warm_op_csn_cleanup")?G&&(J=g.LW())&&(K.clientScreenNonce=J):!J&&(J=g.LW())&&(K.clientScreenNonce=J);v&&(K.clickTracking={clickTrackingParams:v});if(v=g.NL("yt.mdx.remote.remoteClient_"))K.remoteClient=v;Cd.getInstance().setLocationOnInnerTubeContext(K);try{var D=Py(),t=D.bid;delete D.bid;K.adSignalsInfo={params:[],bid:t};for(var B=g.n(Object.entries(D)),I=B.next();!I.done;I=B.next()){var h=g.n(I.value),R=h.next().value, T=h.next().value;D=R;t=T;v=void 0;(v=K.adSignalsInfo.params)==null||v.push({key:D,value:""+t})}var L,O;if(((L=K.client)==null?void 0:L.clientName)==="TVHTML5"||((O=K.client)==null?void 0:O.clientName)==="TVHTML5_UNPLUGGED"){var x=g.H$("INNERTUBE_CONTEXT");x.adSignalsInfo&&(K.adSignalsInfo.advertisingId=x.adSignalsInfo.advertisingId,K.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",K.adSignalsInfo.limitAdTracking=x.adSignalsInfo.limitAdTracking)}}catch(f){g.fW(f)}return K}; tg2=function(v,J){if(!v)return!1;var G,K=(G=g.N(v,P5j))==null?void 0:G.signal;if(K&&J.x3)return!!J.x3[K];var V;if((G=(V=g.N(v,D2F))==null?void 0:V.request)&&J.Nz)return!!J.Nz[G];for(var Y in v)if(J.Wh[Y])return!0;return!1}; BeU=function(v){var J={"Content-Type":"application/json"};g.H$("EOM_VISITOR_DATA")?J["X-Goog-EOM-Visitor-Id"]=g.H$("EOM_VISITOR_DATA"):g.H$("VISITOR_DATA")&&(J["X-Goog-Visitor-Id"]=g.H$("VISITOR_DATA"));J["X-Youtube-Bootstrap-Logged-In"]=g.H$("LOGGED_IN",!1);g.H$("DEBUG_SETTINGS_METADATA")&&(J["X-Debug-Settings-Metadata"]=g.H$("DEBUG_SETTINGS_METADATA"));v!=="cors"&&((v=g.H$("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(J["X-Youtube-Client-Name"]=v),(v=g.H$("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(J["X-Youtube-Client-Version"]= v),(v=g.H$("CHROME_CONNECTED_HEADER"))&&(J["X-Youtube-Chrome-Connected"]=v),(v=g.H$("DOMAIN_ADMIN_STATE"))&&(J["X-Youtube-Domain-Admin-State"]=v),g.H$("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(v=g.H$("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(J["X-YouTube-Lava-Device-Context"]=v));return J}; IUm=function(){this.T={}}; jf=function(){this.mappings=new IUm}; iM=function(v){return function(){return new v}}; zTB=function(v){var J=J===void 0?"UNKNOWN_INTERFACE":J;if(v.length===1)return v[0];var G=hTU[J];if(G){G=new RegExp(G);for(var K=g.n(v),V=K.next();!V.done;V=K.next())if(V=V.value,G.exec(V))return V}var Y=[];Object.entries(hTU).forEach(function(r){var E=g.n(r);r=E.next().value;E=E.next().value;J!==r&&Y.push(E)}); G=new RegExp(Y.join("|"));v.sort(function(r,E){return r.length-E.length}); K=g.n(v);for(V=K.next();!V.done;V=K.next())if(V=V.value,!G.exec(V))return V;return v[0]}; g.$n=function(v){return"/youtubei/v1/"+zTB(v)}; vB=function(){}; Ju=function(){}; G_=function(){}; ow=function(v){return g.NL("ytcsi."+(v||"")+"data_")||nEm(v)}; d22=function(){var v=ow();v.info||(v.info={});return v.info}; KV=function(v){v=ow(v);v.metadata||(v.metadata={});return v.metadata}; V_=function(v){v=ow(v);v.tick||(v.tick={});return v.tick}; Yn=function(v){v=ow(v);if(v.gel){var J=v.gel;J.gelInfos||(J.gelInfos={});J.gelTicks||(J.gelTicks={})}else v.gel={gelTicks:{},gelInfos:{}};return v.gel}; skm=function(v){v=Yn(v);v.gelInfos||(v.gelInfos={});return v.gelInfos}; nV=function(v){var J=ow(v).nonce;J||(J=g.lN(16),ow(v).nonce=J);return J}; nEm=function(v){var J={tick:{},info:{}};g.ks("ytcsi."+(v||"")+"data_",J);return J}; da=function(){var v=g.NL("ytcsi.debug");v||(v=[],g.ks("ytcsi.debug",v),g.ks("ytcsi.reference",{}));return v}; sQ=function(v){v=v||"";var J=RT2();if(J[v])return J[v];var G=da(),K={timerName:v,info:{},tick:{},span:{},jspbInfo:[]};G.push(K);return J[v]=K}; lUw=function(v){v=v||"";var J=RT2();J[v]&&delete J[v];var G=da(),K={timerName:v,info:{},tick:{},span:{},jspbInfo:[]};G.push(K);J[v]=K}; RT2=function(){var v=g.NL("ytcsi.reference");if(v)return v;da();return g.NL("ytcsi.reference")}; Rw=function(v){return TeX[v]||"LATENCY_ACTION_UNKNOWN"}; lM=function(v,J){DU.call(this,1,arguments);this.W1=J}; T_=function(){this.T=0}; pV=function(){T_.instance||(T_.instance=new T_);return T_.instance}; y_=function(v,J){LV[J]=LV[J]||{count:0};var G=LV[J];G.count++;G.time=(0,g.yR)();v.T||(v.T=g.jQ(0,function(){var K=(0,g.yR)(),V;for(V in LV)LV[V]&&K-LV[V].time>6E4&&delete LV[V];v&&(v.T=0)},5E3)); return G.count>5?(G.count===6&&Math.random()*1E5<1&&(G=new g.Mk("CSI data exceeded logging limit with key",J.split("_")),J.indexOf("plev")>=0||g.Zl(G)),!0):!1}; pOL=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; LzL=function(){var v;if(g.dx("csi_use_performance_navigation_timing")||g.dx("csi_use_performance_navigation_timing_tvhtml5")){var J,G,K,V=wa==null?void 0:(v=wa.getEntriesByType)==null?void 0:(J=v.call(wa,"navigation"))==null?void 0:(G=J[0])==null?void 0:(K=G.toJSON)==null?void 0:K.call(G);V?(V.requestStart=OQ(V.requestStart),V.responseEnd=OQ(V.responseEnd),V.redirectStart=OQ(V.redirectStart),V.redirectEnd=OQ(V.redirectEnd),V.domainLookupEnd=OQ(V.domainLookupEnd),V.connectStart=OQ(V.connectStart), V.connectEnd=OQ(V.connectEnd),V.responseStart=OQ(V.responseStart),V.secureConnectionStart=OQ(V.secureConnectionStart),V.domainLookupStart=OQ(V.domainLookupStart),V.isPerformanceNavigationTiming=!0,v=V):v=wa.timing}else v=g.dx("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(wa.timing)):wa.timing;return v}; OQ=function(v){return Math.round(UQ()+v)}; UQ=function(){return(g.dx("csi_use_time_origin")||g.dx("csi_use_time_origin_tvhtml5"))&&wa.timeOrigin?Math.floor(wa.timeOrigin):wa.timing.navigationStart}; mf=function(v,J){xn("_start",v,J)}; Sf=function(v,J){if(!g.dx("web_csi_action_sampling_enabled")||!ow(J).actionDisabled){var G=sQ(J||"");Po(G.info,v);v.loadType&&(G=v.loadType,KV(J).loadType=G);Po(skm(J),v);G=nV(J);J=ow(J).cttAuthInfo;pV().info(v,G,J)}}; y$B=function(){var v,J,G,K;return((K=ZE().resolve(U0(re))==null?void 0:(v=q2())==null?void 0:(J=v.loggingHotConfig)==null?void 0:(G=J.csiConfig)==null?void 0:G.debugTicks)!=null?K:[]).map(function(V){return Object.values(V)[0]})}; xn=function(v,J,G){if(!g.dx("web_csi_action_sampling_enabled")||!ow(G).actionDisabled){var K=nV(G),V;if(V=g.dx("web_csi_debug_sample_enabled")&&K){(ZE().resolve(U0(re))==null?0:q2())&&!wOF&&(wOF=!0,xn("gcfl",(0,g.yR)(),G));var Y,r,E;V=(ZE().resolve(U0(re))==null?void 0:(Y=q2())==null?void 0:(r=Y.loggingHotConfig)==null?void 0:(E=r.csiConfig)==null?void 0:E.debugSampleWeight)||0;if(Y=V!==0)b:{Y=y$B();if(Y.length>0)for(r=0;rG.duration?K:G},{duration:0}))&&J.startTime>0&&J.responseEnd>0&&(xn("wffs",OQ(J.startTime)),xn("wffe",OQ(J.responseEnd)))}; Zem=function(v,J,G){wa&&wa.measure&&(v.startsWith("measure_")||(v="measure_"+v),G?wa.measure(v,J,G):J?wa.measure(v,J):wa.measure(v))}; uGX=function(v){var J=fV("aft",v);if(J)return J;J=g.H$((v||"")+"TIMING_AFT_KEYS",["ol"]);for(var G=J.length,K=0;K0&&Sf(J);J={isNavigation:!0,actionType:Rw(g.H$("TIMING_ACTION"))};var G=g.H$("PREVIOUS_ACTION");G&&(J.previousAction=Rw(G));if(G=g.H$("CLIENT_PROTOCOL"))J.httpProtocol=G;if(G=g.H$("CLIENT_TRANSPORT"))J.transportProtocol=G;(G=g.LW())&&G!=="UNDEFINED_CSN"&&(J.clientScreenNonce=G);G=x2m();if(G===1||G===-1)J.isVisible= !0;G=KV().loadType==="cold";var K=d22();G||(G=K.yt_lt==="cold");if(G){J.loadType="cold";G=d22();K=LzL();var V=UQ(),Y=g.H$("CSI_START_TIMESTAMP_MILLIS",0);Y>0&&!g.dx("embeds_web_enable_csi_start_override_killswitch")&&(V=Y);V&&(xn("srt",K.responseStart),G.prerender!==1&&mf(V));G=kwm();G>0&&xn("fpt",G);G=LzL();G.isPerformanceNavigationTiming&&Sf({performanceNavigationTiming:!0},void 0);xn("nreqs",G.requestStart,void 0);xn("nress",G.responseStart,void 0);xn("nrese",G.responseEnd,void 0);G.redirectEnd- G.redirectStart>0&&(xn("nrs",G.redirectStart,void 0),xn("nre",G.redirectEnd,void 0));G.domainLookupEnd-G.domainLookupStart>0&&(xn("ndnss",G.domainLookupStart,void 0),xn("ndnse",G.domainLookupEnd,void 0));G.connectEnd-G.connectStart>0&&(xn("ntcps",G.connectStart,void 0),xn("ntcpe",G.connectEnd,void 0));G.secureConnectionStart>=UQ()&&G.connectEnd-G.secureConnectionStart>0&&(xn("nstcps",G.secureConnectionStart,void 0),xn("ntcpe",G.connectEnd,void 0));wa&&"getEntriesByType"in wa&&fUX();G=[];if(document.querySelector&& wa&&wa.getEntriesByName)for(var r in Xm)Xm.hasOwnProperty(r)&&(K=Xm[r],Sat(r,K)&&G.push(K));if(G.length>0)for(J.resourceInfo=[],r=g.n(G),G=r.next();!G.done;G=r.next())J.resourceInfo.push({resourceCache:G.value})}Sf(J);J=Yn();J.preLoggedGelInfos||(J.preLoggedGelInfos=[]);r=J.preLoggedGelInfos;J=skm();G=void 0;for(K=0;K-1&&(delete d["@type"],M=d);R&&v.X.has(R)&&v.X.delete(R);((cF=J.config)==null?0:cF.l04)&&cB(J.config.l04);if(M||(RL=v.Z)==null||!RL.HOh(J.input,J.Pa)){pf.sB(15);break}return g.U(pf,v.Z.pnw(J.input,J.Pa),16);case 16:M=pf.X;case 15:return oZ2(v,M,J),((BN=J.config)==null?0:BN.y04)&&cB(J.config.y04),K(),pf.return(M|| void 0)}})}; ir8=function(v,J){a:{v=v.yM;var G,K=(G=g.N(J,P5j))==null?void 0:G.signal;if(K&&v.x3&&(G=v.x3[K])){var V=G();break a}var Y;if((G=(Y=g.N(J,D2F))==null?void 0:Y.request)&&v.Nz&&(Y=v.Nz[G])){V=Y();break a}for(V in J)if(v.Wh[V]&&(J=v.Wh[V])){V=J();break a}V=void 0}if(V!==void 0)return Promise.resolve(V)}; vZt=function(v,J,G){var K,V,Y,r,E,e,P;return g.m(function(D){if(D.T==1){Y=((K=J)==null?void 0:(V=K.yL)==null?void 0:V.identity)||PO;e=(r=J)==null?void 0:(E=r.yL)==null?void 0:E.sessionIndex;var t=g.OF(v.T.KI(Y,{sessionIndex:e}));return g.U(D,t,2)}P=D.X;return D.return(Promise.resolve(Object.assign({},BeU(G),P)))})}; $of=function(v,J,G){var K,V=(J==null?void 0:(K=J.yL)==null?void 0:K.identity)||PO,Y;J=J==null?void 0:(Y=J.yL)==null?void 0:Y.sessionIndex;v=v.T.KI(V,{sessionIndex:J});return Object.assign({},BeU(G),v)}; CV=function(){}; bM=function(){}; ju=function(v){this.j=v}; iP=function(){}; $v=function(){}; vA=function(){}; Ja=function(){}; g.Gp=function(v,J){var G=g.Om.apply(2,arguments);v=v===void 0?0:v;g.Mk.call(this,J,G);this.errorType=v;Object.setPrototypeOf(this,this.constructor.prototype)}; og=function(v,J,G,K){this.T=v;this.X=J;this.Z=G;this.L=K}; V3B=function(v,J,G){if(v.T){var K=Hp(g.Qr(5,of(J,"key")))||"/UNKNOWN_PATH";v.T.start(K)}K=G;g.dx("wug_networking_gzip_request")&&(K=kmB(G));var V;return new ((V=v.L)!=null?V:window.Request)(J,K)}; g.VA=function(v,J){if(!Kp){var G=ZE();xZ(G,{Au:Y08,gY:og});var K={Wh:{feedbackEndpoint:iM(iP),modifyChannelNotificationPreferenceEndpoint:iM($v),playlistEditEndpoint:iM(vA),shareEntityEndpoint:iM(ju),subscribeEndpoint:iM(CV),unsubscribeEndpoint:iM(bM),webPlayerShareEntityServiceEndpoint:iM(Ja)}},V=Cd.getInstance(),Y={};V&&(Y.client_location=V);v===void 0&&(v=QJm());J===void 0&&(J=G.resolve(Y08));jbs(K,J,v,Y);xZ(G,{Au:r0s,py:M0.instance});Kp=G.resolve(r0s)}return Kp}; q0X=function(v){var J=new L2;if(v.interpreterJavascript){var G=wVF(v.interpreterJavascript);G=C_(G).toString();var K=new l7;T7(K,6,G);Bh(J,l7,1,K,N_)}else v.interpreterUrl&&(G=l9(v.interpreterUrl),G=Z4(G).toString(),K=new p2,T7(K,4,G),Bh(J,p2,2,K,N_));v.interpreterHash&&po(J,3,v.interpreterHash,N_);v.program&&po(J,4,v.program,N_);v.globalName&&po(J,5,v.globalName,N_);v.clientExperimentsStateBlob&&po(J,7,v.clientExperimentsStateBlob,N_);return J}; Yv=function(v){var J={};v=v.split("&");v=g.n(v);for(var G=v.next();!G.done;G=v.next())G=G.value.split("="),G.length===2&&(J[G[0]]=G[1]);return J}; W48=function(){if(g.dx("bg_st_hr"))return"havuokmhhs-0";var v,J=((v=performance)==null?void 0:v.timeOrigin)||0;return"havuokmhhs-"+Math.floor(J)}; r7=function(v){this.T=v}; EZB=function(){return new Promise(function(v){var J=window.top;J.ntpevasrs!==void 0?v(new r7(J.ntpevasrs)):(J.ntpqfbel===void 0&&(J.ntpqfbel=[]),J.ntpqfbel.push(function(G){v(new r7(G))}))})}; PN8=function(){if(!g.dx("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.dx("disable_biscotti_fetch_entirely_for_all_web_clients")&&JD()){var v=g.H$("PLAYER_VARS",{});if(g.ky(v,"privembed",!1)!="1"&&!d3B(v)){var J=function(){qd=!0;"google_ad_status"in window?F4("DCLKSTAT",1):F4("DCLKSTAT",2)}; try{g.rg("//static.doubleclick.net/instream/ad_status.js",J)}catch(G){}eQB.push(g.cq.eD(function(){if(!(qd||"google_ad_status"in window)){try{if(J){var G=""+g.Cf(J),K=dA2[G];K&&g.Vy(K)}}catch(V){}qd=!0;F4("DCLKSTAT",3)}},5E3))}}}; El=function(){var v=Number(g.H$("DCLKSTAT",0));return isNaN(v)?0:v}; ta=function(v,J,G){var K=this;this.network=v;this.options=J;this.X=G;this.T=null;if(J.C3h){var V=new g.w5;this.T=V.promise;g.X2.ytAtRC&&b$(function(){var Y,r;return g.m(function(E){if(E.T==1){if(!g.X2.ytAtRC)return E.return();Y=eu(null);return g.U(E,PA(K,Y),2)}r=E.X;g.X2.ytAtRC&&g.X2.ytAtRC(JSON.stringify(r));g.zX(E)})},2); EZB().then(function(Y){var r,E,e,P;return g.m(function(D){if(D.T==1)return Y.bindInnertubeChallengeFetcher(function(t){return PA(K,eu(t))}),g.U(D,LM(),2); r=D.X;E=Y.getLatestChallengeResponse();e=E.challenge;if(!e)throw Error("BGE_MACIL");P={challenge:e,Wi:Yv(e),EN:r,bgChallenge:new L2};V.resolve(P);Y.registerChallengeFetchedCallback(function(t){t=t.challenge;if(!t)throw Error("BGE_MACR");t={challenge:t,Wi:Yv(t),EN:r,bgChallenge:new L2};K.T=Promise.resolve(t)}); g.zX(D)})})}else J.preload&&Dos(this,new Promise(function(Y){g.jQ(0,function(){Y(Dc(K))},0)}))}; eu=function(v){var J={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};v&&(J.interpreterHash=v);return J}; Dc=function(v,J){J=J===void 0?0:J;var G,K,V,Y,r,E,e,P,D,t,B,I;return g.m(function(h){switch(h.T){case 1:G=eu(xl().T);if(g.dx("att_fet_ks"))return g.nf(h,7),g.U(h,PA(v,G),9);g.nf(h,4);return g.U(h,t3m(v,G),6);case 6:r=h.X;V=r.NJt;Y=r.wv4;K=r;g.Rm(h,3);break;case 4:return g.lj(h),g.Zl(Error("Failed to fetch attestation challenge after "+(J+" attempts; not retrying for 24h."))),BA(v,864E5),h.return({challenge:"",Wi:{},EN:void 0,bgChallenge:void 0});case 9:K=h.X;if(!K)throw Error("Fetching Attestation challenge returned falsy"); if(!K.challenge)throw Error("Missing Attestation challenge");V=K.challenge;Y=Yv(V);if("c1a"in Y&&(!K.bgChallenge||!K.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Rm(h,3);break;case 7:E=g.lj(h);g.Zl(E);J++;if(J>=5)return g.Zl(Error("Failed to fetch attestation challenge after "+(J+" attempts; not retrying for 24h."))),BA(v,864E5),h.return({challenge:"",Wi:{},EN:void 0,bgChallenge:void 0});e=1E3*Math.pow(2,J-1)+Math.random()*1E3;return h.return(new Promise(function(R){g.jQ(0, function(){R(Dc(v,J))},e)})); case 3:P=Number(Y.t)||7200;BA(v,P*1E3);D=void 0;if(!("c1a"in Y&&K.bgChallenge)){h.sB(10);break}t=q0X(K.bgChallenge);g.nf(h,11);return g.U(h,mR(xl(),t),13);case 13:g.Rm(h,12);break;case 11:return B=g.lj(h),g.Zl(B),h.return({challenge:V,Wi:Y,EN:D,bgChallenge:t});case 12:return g.nf(h,14),D=new OZ({challenge:t,KR:{pJ:"aGIf"}}),g.U(h,D.Ue,16);case 16:g.Rm(h,10);break;case 14:I=g.lj(h),g.Zl(I),D=void 0;case 10:return h.return({challenge:V,Wi:Y,EN:D,bgChallenge:t})}})}; PA=function(v,J){var G;return g.m(function(K){G=v.X;if(!G||G.B8())return K.return(PA(v.network,J));HB("att_pna",void 0,"attestation_challenge_fetch");return K.return(new Promise(function(V){G.Ud("publicytnetworkstatus-online",function(){PA(v.network,J).then(V)})}))})}; Bgw=function(v){if(!v)throw Error("Fetching Attestation challenge returned falsy");if(!v.challenge)throw Error("Missing Attestation challenge");var J=v.challenge,G=Yv(J);if("c1a"in G&&(!v.bgChallenge||!v.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},v,{NJt:J,wv4:G})}; t3m=function(v,J){var G,K,V,Y,r;return g.m(function(E){switch(E.T){case 1:G=void 0,K=0,V={};case 2:if(!(K<5)){E.sB(4);break}if(!(K>0)){E.sB(5);break}V.tO=1E3*Math.pow(2,K-1)+Math.random()*1E3;return g.U(E,new Promise(function(e){return function(P){g.jQ(0,function(){P(void 0)},e.tO)}}(V)),5); case 5:return g.nf(E,7),g.U(E,PA(v,J),9);case 9:return Y=E.X,E.return(Bgw(Y));case 7:G=r=g.lj(E),r instanceof Error&&g.Zl(r);case 8:K++;V={tO:void 0};E.sB(2);break;case 4:throw G;}})}; Dos=function(v,J){v.T=J}; IEt=function(v){var J,G,K;return g.m(function(V){if(V.T==1)return g.U(V,Promise.race([v.T,null]),2);J=V.X;var Y=Dc(v);v.T=Y;(G=J)==null||(K=G.EN)==null||K.dispose();g.zX(V)})}; BA=function(v,J){function G(){var V;return g.m(function(Y){V=K-Date.now();return V<1E3?g.U(Y,IEt(v),0):(b$(G,0,Math.min(V,6E4)),Y.sB(0))})} var K=Date.now()+J;G()}; hQj=function(v,J){return new Promise(function(G){g.jQ(0,function(){G(J())},v)})}; g.zQU=function(v,J){var G;return g.m(function(K){var V=g.NL("yt.aba.att");return(G=V?V:ta.instance!==void 0?ta.instance.Z.bind(ta.instance):null)?K.return(G("ENGAGEMENT_TYPE_PLAYBACK",v,J)):K.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.nZ2=function(){var v;return(v=(v=g.NL("yt.aba.att2"))?v:ta.instance!==void 0?ta.instance.L.bind(ta.instance):null)?v():Promise.resolve(!1)}; sbw=function(v,J){var G=g.NL("ytDebugData.callbacks");G||(G={},g.ks("ytDebugData.callbacks",G));if(g.dx("web_dd_iu")||doX.includes(v))G[v]=J}; Ig=function(){var v=RQ8;var J=J===void 0?[]:J;var G=G===void 0?[]:G;J=RLf.apply(null,[lWf.apply(null,g.l(J))].concat(g.l(G)));this.store=pVt(v,void 0,J)}; g.ha=function(v,J,G){for(var K=Object.assign({},v),V=g.n(Object.keys(J)),Y=V.next();!Y.done;Y=V.next()){Y=Y.value;var r=v[Y],E=J[Y];if(E===void 0)delete K[Y];else if(r===void 0)K[Y]=E;else if(Array.isArray(E)&&Array.isArray(r))K[Y]=G?[].concat(g.l(r),g.l(E)):E;else if(!Array.isArray(E)&&g.ML(E)&&!Array.isArray(r)&&g.ML(r))K[Y]=g.ha(r,E,G);else if(typeof E===typeof r)K[Y]=E;else return J=new g.Mk("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:Y,mwh:r,updateValue:E}),g.fW(J), v}return K}; zp=function(v){var J=this;v=v===void 0?[]:v;this.y9=[];this.Kj=this.U4=0;this.q7=void 0;this.totalLength=0;v.forEach(function(G){J.append(G)})}; lEX=function(v,J){return v.y9.length===0?!1:(v=v.y9[v.y9.length-1])&&v.buffer===J.buffer&&v.byteOffset+v.length===J.byteOffset}; np=function(v,J){J=g.n(J.y9);for(var G=J.next();!G.done;G=J.next())v.append(G.value)}; d7=function(v,J,G){return v.split(J).Fa.split(G).MS}; sl=function(v){v.q7=void 0;v.U4=0;v.Kj=0}; Rg=function(v,J,G){v.isFocused(J);return J-v.Kj+G<=v.y9[v.U4].length}; Tgw=function(v){if(!v.q7){var J=v.y9[v.U4];v.q7=new DataView(J.buffer,J.byteOffset,J.length)}return v.q7}; lP=function(v,J,G){v=v.l1(J===void 0?0:J,G===void 0?-1:G);J=new Uint8Array(v.length);try{J.set(v)}catch(K){for(G=0;G>10;Y=56320|Y&1023}Lp[V++]=Y}}Y=String.fromCharCode.apply(String,Lp); V<1024&&(Y=Y.substring(0,V));G.push(Y)}return G.join("")}; Ol=function(v,J){var G;if((G=w7)==null?0:G.encodeInto)return J=w7.encodeInto(v,J),J.read>6|192:((V&64512)===55296&&K+1>18|240,J[G++]=V>>12&63|128):J[G++]=V>>12|224,J[G++]=V>>6&63|128),J[G++]=V&63|128)}return G}; Ul=function(v){if(w7)return w7.encode(v);var J=new Uint8Array(Math.ceil(v.length*1.2)),G=Ol(v,J);J.lengthG&&(J=J.subarray(0,G));return J}; xv=function(v){this.T=v;this.pos=0;this.X=-1}; m8=function(v){var J=v.T.getUint8(v.pos);++v.pos;if(J<128)return J;for(var G=J&127,K=1;J>=128;)J=v.T.getUint8(v.pos),++v.pos,K*=128,G+=(J&127)*K;return G}; Su=function(v,J){var G=v.X;for(v.X=-1;v.T.Av(v.pos,1);){G<0&&(G=m8(v));var K=G>>3,V=G&7;if(K===J)return!0;if(K>J){v.X=G;break}G=-1;switch(V){case 0:m8(v);break;case 1:v.pos+=8;break;case 2:K=m8(v);v.pos+=K;break;case 5:v.pos+=4}}return!1}; fp=function(v,J){if(Su(v,J))return m8(v)}; Zc=function(v,J){if(Su(v,J))return!!m8(v)}; uP=function(v,J){if(Su(v,J)){J=m8(v);var G=v.T.l1(v.pos,J);v.pos+=J;return G}}; g7=function(v,J){if(v=uP(v,J))return g.yA(v)}; Xt=function(v,J,G){if(v=uP(v,J))return G(new xv(new zp([v])))}; kv=function(v,J){for(var G=[];Su(v,J);)G.push(m8(v));return G.length?G:void 0}; cA=function(v,J,G){for(var K=[],V;V=uP(v,J);)K.push(G(new xv(new zp([V]))));return K.length?K:void 0}; Nd=function(v,J){v=v instanceof Uint8Array?new zp([v]):v;return J(new xv(v))}; y02=function(v,J,G){if(J&&G&&G.buffer===J.exports.memory.buffer){var K=J.realloc(G.byteOffset,v);if(K)return new Uint8Array(J.exports.memory.buffer,K,v)}v=J?new Uint8Array(J.exports.memory.buffer,J.malloc(v),v):new Uint8Array(v);G&&v.set(G);return v}; wow=function(v,J){this.Zm=J;this.pos=0;this.X=[];this.T=y02(v===void 0?4096:v,J);this.view=new DataView(this.T.buffer,this.T.byteOffset,this.T.byteLength)}; ag=function(v,J){J=v.pos+J;if(!(v.T.length>=J)){for(var G=v.T.length*2;G268435455){ag(v,4);for(var G=J&1073741823,K=0;K<4;K++)v.view.setUint8(v.pos,G&127|128),G>>=7,v.pos+=1;J=Math.floor(J/268435456)}for(ag(v,4);J>127;)v.view.setUint8(v.pos,J&127|128),J>>=7,v.pos+=1;v.view.setUint8(v.pos,J);v.pos+=1}; Ft=function(v,J,G){G!==void 0&&(Aa(v,J*8),Aa(v,G))}; HA=function(v,J,G){G!==void 0&&Ft(v,J,G?1:0)}; Md=function(v,J,G){G!==void 0&&(Aa(v,J*8+2),J=G.length,Aa(v,J),ag(v,J),v.T.set(G,v.pos),v.pos+=J)}; QA=function(v,J,G){G!==void 0&&(Orj(v,J,Math.ceil(Math.log2(G.length*4+2)/7)),ag(v,G.length*1.2),J=Ol(G,v.T.subarray(v.pos)),v.pos+J>v.T.length&&(ag(v,J),J=Ol(G,v.T.subarray(v.pos))),v.pos+=J,UoL(v))}; Orj=function(v,J,G){G=G===void 0?2:G;Aa(v,J*8+2);v.X.push(v.pos);v.X.push(G);v.pos+=G}; UoL=function(v){for(var J=v.X.pop(),G=v.X.pop(),K=v.pos-G-J;J--;){var V=J?128:0;v.view.setUint8(G++,K&127|V);K>>=7}}; WA=function(v,J,G,K,V){G&&(Orj(v,J,V===void 0?3:V),K(v,G),UoL(v))}; g.Cp=function(v,J,G){G=new wow(4096,G);J(G,v);return new Uint8Array(G.T.buffer,G.T.byteOffset,G.pos)}; g.bP=function(v){var J=new xv(new zp([n8(decodeURIComponent(v))]));v=g7(J,2);J=fp(J,4);var G=xoU[J];if(typeof G==="undefined")throw v=new g.Mk("Failed to recognize field number",{name:"EntityKeyHelperError",GcY:J}),g.fW(v),v;return{HF:J,entityType:G,entityId:v}}; g.j9=function(v,J){var G=G===void 0?0:G;var K=new wow;Md(K,2,Ul(v));v=mom[J];if(typeof v==="undefined")throw G=new g.Mk("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:J}),g.fW(G),G;Ft(K,4,v);Ft(K,5,1);J=new Uint8Array(K.T.buffer,K.T.byteOffset,K.pos);return encodeURIComponent(g.hE(J,G))}; i3=function(v,J,G,K){if(K===void 0)return K=Object.assign({},v[J]||{}),G=(delete K[G],K),K={},Object.assign({},v,(K[J]=G,K));var V={},Y={};return Object.assign({},v,(Y[J]=Object.assign({},v[J],(V[G]=K,V)),Y))}; S0m=function(v,J,G,K,V){var Y=v[J];if(Y==null||!Y[G])return v;K=g.ha(Y[G],K,V==="REPEATED_FIELDS_MERGE_OPTION_APPEND");V={};Y={};return Object.assign({},v,(Y[J]=Object.assign({},v[J],(V[G]=K,V)),Y))}; fEU=function(v,J){v=v===void 0?{}:v;switch(J.type){case "ENTITY_LOADED":return J.payload.reduce(function(K,V){var Y,r=(Y=V.options)==null?void 0:Y.persistenceOption;if(r&&r!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&r!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return K;if(!V.entityKey)return g.fW(Error("Missing entity key")),K;if(V.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!V.payload)return g.fW(new g.Mk("REPLACE entity mutation is missing a payload",{entityKey:V.entityKey})),K;var E=g.mx(V.payload); return i3(K,E,V.entityKey,V.payload[E])}if(V.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{V=V.entityKey;try{var e=g.bP(V).entityType;E=i3(K,e,V);break a}catch(t){if(t instanceof Error){g.fW(new g.Mk("Failed to deserialize entity key",{entityKey:V,TA:t.message}));E=K;break a}throw t;}E=void 0}return E}if(V.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!V.payload)return g.fW(new g.Mk("UPDATE entity mutation is missing a payload",{entityKey:V.entityKey})),K;E=g.mx(V.payload);var P,D;return S0m(K,E,V.entityKey, V.payload[E],(P=V.fieldMask)==null?void 0:(D=P.mergeOptions)==null?void 0:D.repeatedFieldsMergeOption)}return K},v); case "REPLACE_ENTITY":var G=J.payload;return i3(v,G.entityType,G.key,G.Ev);case "REPLACE_ENTITIES":return Object.keys(J.payload).reduce(function(K,V){var Y=J.payload[V];return Object.keys(Y).reduce(function(r,E){return i3(r,V,E,Y[E])},K)},v); case "UPDATE_ENTITY":return G=J.payload,S0m(v,G.entityType,G.key,G.Ev,G.LLB);default:return v}}; $C=function(v,J,G){return v[J]?v[J][G]||null:null}; vn=function(v){return window.Int32Array?new Int32Array(v):Array(v)}; hJ=function(v){g.X.call(this);this.counter=[0,0,0,0];this.X=new Uint8Array(16);this.T=16;if(!ZrU){var J,G=new Uint8Array(256),K=new Uint8Array(256);var V=1;for(J=0;J<256;J++)G[V]=J,K[J]=V,V^=V<<1^(V>>7&&283);JJ=new Uint8Array(256);D2=vn(256);tJ=vn(256);Bn=vn(256);IU=vn(256);for(var Y=0;Y<256;Y++){V=Y?K[255^G[Y]]:0;V^=V<<1^V<<2^V<<3^V<<4;V=V&255^V>>>8^99;JJ[Y]=V;J=V<<1^(V>>7&&283);var r=J^V;D2[Y]=J<<24|V<<16|V<<8|r;tJ[Y]=r<<24|D2[Y]>>>8;Bn[Y]=V<<24|tJ[Y]>>>8;IU[Y]=V<<24|Bn[Y]>>>8}ZrU=!0}V=vn(44);for(G= 0;G<4;G++)V[G]=v[4*G]<<24|v[4*G+1]<<16|v[4*G+2]<<8|v[4*G+3];for(K=1;G<44;G++)v=V[G-1],G%4||(v=(JJ[v>>16&255]^K)<<24|JJ[v>>8&255]<<16|JJ[v&255]<<8|JJ[v>>>24],K=K<<1^(K>>7&&283)),V[G]=V[G-4]^v;this.key=V}; zM=function(v,J){for(var G=0;G<4;G++)v.counter[G]=J[G*4]<<24|J[G*4+1]<<16|J[G*4+2]<<8|J[G*4+3];v.T=16}; uvt=function(v){for(var J=v.key,G=v.counter[0]^J[0],K=v.counter[1]^J[1],V=v.counter[2]^J[2],Y=v.counter[3]^J[3],r=3;r>=0&&!(v.counter[r]=-~v.counter[r]);r--);for(var E,e,P=4;P<40;)r=D2[G>>>24]^tJ[K>>16&255]^Bn[V>>8&255]^IU[Y&255]^J[P++],E=D2[K>>>24]^tJ[V>>16&255]^Bn[Y>>8&255]^IU[G&255]^J[P++],e=D2[V>>>24]^tJ[Y>>16&255]^Bn[G>>8&255]^IU[K&255]^J[P++],Y=D2[Y>>>24]^tJ[G>>16&255]^Bn[K>>8&255]^IU[V&255]^J[P++],G=r,K=E,V=e;v=v.X;r=J[40];v[0]=JJ[G>>>24]^r>>>24;v[1]=JJ[K>>16&255]^r>>16&255;v[2]=JJ[V>>8&255]^ r>>8&255;v[3]=JJ[Y&255]^r&255;r=J[41];v[4]=JJ[K>>>24]^r>>>24;v[5]=JJ[V>>16&255]^r>>16&255;v[6]=JJ[Y>>8&255]^r>>8&255;v[7]=JJ[G&255]^r&255;r=J[42];v[8]=JJ[V>>>24]^r>>>24;v[9]=JJ[Y>>16&255]^r>>16&255;v[10]=JJ[G>>8&255]^r>>8&255;v[11]=JJ[K&255]^r&255;r=J[43];v[12]=JJ[Y>>>24]^r>>>24;v[13]=JJ[G>>16&255]^r>>16&255;v[14]=JJ[K>>8&255]^r>>8&255;v[15]=JJ[V&255]^r&255}; se=function(){if(!n1&&!g.QR){if(dq)return dq;var v;dq=(v=window.crypto)==null?void 0:v.subtle;var J,G,K;if(((J=dq)==null?0:J.importKey)&&((G=dq)==null?0:G.sign)&&((K=dq)==null?0:K.encrypt))return dq;dq=void 0}}; g.RU=function(v){this.L=v}; g.l3=function(v){this.X=v}; TM=function(v){this.J=new Uint8Array(64);this.Z=new Uint8Array(64);this.L=0;this.j=new Uint8Array(64);this.X=0;this.J.set(v);this.Z.set(v);for(v=0;v<64;v++)this.J[v]^=92,this.Z[v]^=54;this.reset()}; gZw=function(v,J,G){for(var K=v.K,V=v.T[0],Y=v.T[1],r=v.T[2],E=v.T[3],e=v.T[4],P=v.T[5],D=v.T[6],t=v.T[7],B,I,h,R=0;R<64;)R<16?(K[R]=h=J[G]<<24|J[G+1]<<16|J[G+2]<<8|J[G+3],G+=4):(B=K[R-2],I=K[R-15],h=K[R-7]+K[R-16]+((B>>>17|B<<15)^(B>>>19|B<<13)^B>>>10)+((I>>>7|I<<25)^(I>>>18|I<<14)^I>>>3),K[R]=h),B=t+p1[R]+h+((e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7))+(e&P^~e&D),I=((V>>>2|V<<30)^(V>>>13|V<<19)^(V>>>22|V<<10))+(V&Y^V&r^Y&r),t=B+I,E+=B,R++,R<16?(K[R]=h=J[G]<<24|J[G+1]<<16|J[G+2]<<8|J[G+3],G+=4):(B= K[R-2],I=K[R-15],h=K[R-7]+K[R-16]+((B>>>17|B<<15)^(B>>>19|B<<13)^B>>>10)+((I>>>7|I<<25)^(I>>>18|I<<14)^I>>>3),K[R]=h),B=D+p1[R]+h+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&e^~E&P),I=((t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10))+(t&V^t&Y^V&Y),D=B+I,r+=B,R++,R<16?(K[R]=h=J[G]<<24|J[G+1]<<16|J[G+2]<<8|J[G+3],G+=4):(B=K[R-2],I=K[R-15],h=K[R-7]+K[R-16]+((B>>>17|B<<15)^(B>>>19|B<<13)^B>>>10)+((I>>>7|I<<25)^(I>>>18|I<<14)^I>>>3),K[R]=h),B=P+p1[R]+h+((r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7))+(r&E^ ~r&e),I=((D>>>2|D<<30)^(D>>>13|D<<19)^(D>>>22|D<<10))+(D&t^D&V^t&V),P=B+I,Y+=B,R++,R<16?(K[R]=h=J[G]<<24|J[G+1]<<16|J[G+2]<<8|J[G+3],G+=4):(B=K[R-2],I=K[R-15],h=K[R-7]+K[R-16]+((B>>>17|B<<15)^(B>>>19|B<<13)^B>>>10)+((I>>>7|I<<25)^(I>>>18|I<<14)^I>>>3),K[R]=h),B=e+p1[R]+h+((Y>>>6|Y<<26)^(Y>>>11|Y<<21)^(Y>>>25|Y<<7))+(Y&r^~Y&E),I=((P>>>2|P<<30)^(P>>>13|P<<19)^(P>>>22|P<<10))+(P&D^P&t^D&t),h=t,t=E,E=h,h=D,D=r,r=h,h=P,P=Y,Y=h,e=V+B,V=B+I,R++;v.T[0]=V+v.T[0]|0;v.T[1]=Y+v.T[1]|0;v.T[2]=r+v.T[2]|0;v.T[3]= E+v.T[3]|0;v.T[4]=e+v.T[4]|0;v.T[5]=P+v.T[5]|0;v.T[6]=D+v.T[6]|0;v.T[7]=t+v.T[7]|0}; kIf=function(v){var J=new Uint8Array(32),G=64-v.X;v.X>55&&(G+=64);var K=new Uint8Array(G);K[0]=128;for(var V=v.L*8,Y=1;Y<9;Y++){var r=V%256;K[G-Y]=r;V=(V-r)/256}v.update(K);for(G=0;G<8;G++)J[G*4]=v.T[G]>>>24,J[G*4+1]=v.T[G]>>>16&255,J[G*4+2]=v.T[G]>>>8&255,J[G*4+3]=v.T[G]&255;XoX(v);return J}; XoX=function(v){v.T=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];v.K=[];v.K.length=64;v.L=0;v.X=0}; c0X=function(v){this.T=v}; Ngm=function(v,J,G){v=new TM(v.T);v.update(J);v.update(G);J=kIf(v);v.update(v.J);v.update(J);J=kIf(v);v.reset();return J}; aEm=function(v){this.X=v}; A0B=function(v,J,G,K){var V,Y,r;return g.m(function(E){switch(E.T){case 1:if(v.T){E.sB(2);break}return g.U(E,K.importKey("raw",v.X,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:v.T=E.X;case 2:return V=new Uint8Array(J.length+G.length),V.set(J),V.set(G,J.length),Y={name:"HMAC",hash:"SHA-256"},g.U(E,K.sign(Y,v.T,V),4);case 4:return r=E.X,E.return(new Uint8Array(r))}})}; FZr=function(v,J,G){v.Z||(v.Z=new c0X(v.X));return Ngm(v.Z,J,G)}; HrB=function(v,J,G){var K,V;return g.m(function(Y){if(Y.T==1){K=se();if(!K)return Y.return(FZr(v,J,G));g.nf(Y,3);return g.U(Y,A0B(v,J,G,K),5)}if(Y.T!=3)return Y.return(Y.X);V=g.lj(Y);g.Zl(V);n1=!0;return Y.return(FZr(v,J,G))})}; Qbm=function(v){for(var J="",G=0;G=1?v[v.length-1]:null;for(var K=g.n(v),V=K.next();!V.done;V=K.next())if(V=V.value,V.width&&V.height&&(G&&V.width>=J||!G&&V.height>=J))return V;for(J=v.length-1;J>=0;J--)if(G&&v[J].width||!G&&v[J].height)return v[J];return v[0]}; yb=function(){this.state=1;this.EN=null;this.Ks=void 0}; VDt=function(v,J,G,K,V,Y){var r=r===void 0?"trayride":r;G?(v.l9(2),g.rg(G,function(){if(window[r])KsX(v,K,r,V);else{v.l9(3);var E=n62(G),e=document.getElementById(E);e&&(hum(E),e.parentNode.removeChild(e));g.Zl(new g.Mk("BL:ULB",""+G))}},Y)):J?(Y=g.qh("SCRIPT"),J instanceof Wa?(Y.textContent=C_(J),br(Y)):Y.textContent=J,Y.nonce=Qg(document),document.head.appendChild(Y),document.head.removeChild(Y),window[r]?KsX(v,K,r,V):(v.l9(4),g.Zl(new g.Mk("BL:ULBJ")))):g.Zl(new g.Mk("BL:ULV"))}; KsX=function(v,J,G,K){v.l9(5);var V=!!v.Ks&&Y2U.includes(g.Wp(v.Ks)||"");try{var Y=new OZ({program:J,globalName:G,KR:{disable:!g.dx("att_web_record_metrics")||!g.dx("att_skip_metrics_for_cookieless_domains_ks")&&V,pJ:"aGIf"}});Y.Ue.then(function(){v.l9(6);K&&K(J)}); v.pm(Y)}catch(r){v.l9(7),r instanceof Error&&g.Zl(r)}}; wq=function(){var v=g.NL("yt.abuse.playerAttLoader");return v&&["bgvma","bgvmb","bgvmc"].every(function(J){return J in v})?v:null}; Oe=function(){yb.apply(this,arguments)}; Ue=function(){}; rt8=function(v,J,G){for(var K=!1,V=g.n(v.Jh.entries()),Y=V.next();!Y.done;Y=V.next())Y=g.n(Y.value).next().value,Y.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Y.IY==="core"&&(K=!0);if(K){a:if(!G){v=g.n(v.Jh.entries());for(G=v.next();!G.done;G=v.next())if(K=g.n(G.value),G=K.next().value,K=K.next().value,G.slotType==="SLOT_TYPE_IN_PLAYER"&&G.IY==="core"){G=K.layoutId;break a}G=void 0}G?J.DD(G):Ps("No triggering layout ID available when attempting to mute.")}}; xC=function(v,J){this.eR=v;this.KQ=J}; mw=function(){}; S9=function(){}; Emj=function(v){g.X.call(this);var J=this;this.hP=v;this.T=new Map;f1(this,"commandExecutorCommand",function(G,K,V){q2m(J,G.commands,K,V)}); f1(this,"clickTrackingParams",function(){})}; emU=function(v,J){f1(v,J.gj(),function(G,K,V){J.pW(G,K,V)})}; f1=function(v,J,G){v.Sl();v.T.get(J)&&g.fW(Error("Extension name "+J+" already registered"));v.T.set(J,G)}; q2m=function(v,J,G,K){J=J===void 0?[]:J;v.Sl();var V=[],Y=[];J=g.n(J);for(var r=J.next();!r.done;r=J.next())r=r.value,g.N(r,PWr)||g.N(r,DTs)?V.push(r):Y.push(r);V=g.n(V);for(J=V.next();!J.done;J=V.next())Z2(v,J.value,G,K);Y=g.n(Y);for(V=Y.next();!V.done;V=Y.next())Z2(v,V.value,G,K)}; Z2=function(v,J,G,K){v.Sl();J.loggingUrls&&tDt(v,"loggingUrls",J.loggingUrls,G,K);J=g.n(Object.entries(J));for(var V=J.next();!V.done;V=J.next()){var Y=g.n(V.value);V=Y.next().value;Y=Y.next().value;V==="openPopupAction"?v.hP.get().TN("innertubeCommand",{openPopupAction:Y}):V==="confirmDialogEndpoint"?v.hP.get().TN("innertubeCommand",{confirmDialogEndpoint:Y}):BuB.hasOwnProperty(V)||tDt(v,V,Y,G,K)}}; tDt=function(v,J,G,K,V){if((v=v.T.get(J))&&typeof v==="function")try{v(G,K,V)}catch(Y){g.fW(Y)}else J=new g.Mk("Unhandled field",J),g.Zl(J)}; u3=function(v,J,G){this.s9=v;this.T=J;this.F4=G;xZ(ZE(),{Au:G9m,gY:JtB})}; gq=function(v){this.value=v}; Xg=function(v){this.value=v}; kC=function(v){this.value=v}; cn=function(v){this.value=v}; Nx=function(v){this.value=v}; aU=function(v){this.value=v}; AJ=function(v){this.value=v}; Fg=function(){gq.apply(this,arguments)}; Hn=function(v){this.value=v}; Mx=function(v){this.value=v}; Qb=function(v){this.value=v}; Wn=function(v){this.value=v}; C1=function(v){this.value=v}; b3=function(v){this.value=v}; iF=function(v){this.value=v}; $8=function(v){this.value=v}; vb=function(v){this.value=v}; Jc=function(v){this.value=v}; Gq=function(){gq.apply(this,arguments)}; oD=function(v){this.value=v}; KN=function(v){this.value=v}; Vw=function(v){this.value=v}; Y8=function(v){this.value=v}; rD=function(v){this.value=v}; qY=function(v){this.value=v}; Ez=function(v){this.value=v}; ea=function(v){this.value=v}; Pb=function(v){this.value=v}; DB=function(v){this.value=v}; tc=function(v){this.value=v}; Bb=function(v){this.value=v}; ID=function(v){this.value=v}; hc=function(v){this.value=v}; zq=function(v){this.value=v}; nN=function(v){this.value=v}; dD=function(v){this.value=v}; sz=function(v){this.value=v}; RD=function(v){this.value=v}; lF=function(v){this.value=v}; Tq=function(v){this.value=v}; pN=function(v){this.value=v}; LN=function(v){this.value=v}; yw=function(v){this.value=v}; wD=function(v){this.value=v}; Oz=function(v){this.value=v}; Uz=function(v){this.value=v}; x8=function(v){this.value=v}; mv=function(v){this.value=v}; Sa=function(v){this.value=v}; fN=function(v){this.value=v}; ZB=function(v){this.value=v}; uF=function(v){this.value=v}; gD=function(v){this.value=v}; Xx=function(v){this.value=v}; k8=function(v){this.value=v}; cb=function(v){this.value=v}; NY=function(v){this.value=v}; aD=function(){gq.apply(this,arguments)}; Ac=function(v){this.value=v}; Fx=function(){gq.apply(this,arguments)}; Hb=function(){gq.apply(this,arguments)}; MY=function(){gq.apply(this,arguments)}; Qw=function(){gq.apply(this,arguments)}; Wb=function(){gq.apply(this,arguments)}; CN=function(v){this.value=v}; bF=function(v){this.value=v}; jh=function(v){this.value=v}; iE=function(v){this.value=v}; $d=function(v){this.value=v}; JQ=function(v,J,G){if(G&&!G.includes(v.layoutType))return!1;J=g.n(J);for(G=J.next();!G.done;G=J.next())if(!v5(v.clientMetadata,G.value))return!1;return!0}; GG=function(){return""}; IlB=function(v,J){switch(v){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(v),8}}; o_=function(v,J,G,K){K=K===void 0?!1:K;to.call(this,v);this.Wx=G;this.YM=K;this.args=[];J&&this.args.push(J)}; Q=function(v,J,G,K){K=K===void 0?!1:K;to.call(this,v);this.Wx=G;this.YM=K;this.args=[];J&&this.args.push(J)}; KX=function(v){var J=new Map;v.forEach(function(G){J.set(G.getType(),G)}); this.T=J}; v5=function(v,J){return v.T.has(J)}; VW=function(v,J){v=v.T.get(J);if(v!==void 0)return v.get()}; Yd=function(v){return Array.from(v.T.keys())}; rk=function(v,J,G){if(G&&G!==v.slotType)return!1;J=g.n(J);for(G=J.next();!G.done;G=J.next())if(!v5(v.clientMetadata,G.value))return!1;return!0}; zmw=function(v){var J;return((J=hmU.get(v))==null?void 0:J.OU)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; E6=function(v,J){var G={type:J.slotType,controlFlowManagerLayer:nm2.get(J.IY)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};J.slotEntryTrigger&&(G.entryTriggerType=J.slotEntryTrigger.triggerType);J.slotPhysicalPosition!==1&&(G.slotPhysicalPosition=J.slotPhysicalPosition);if(v){G.debugData={slotId:J.slotId};if(v=J.slotEntryTrigger)G.debugData.slotEntryTriggerData=qV(v);v=J.slotFulfillmentTriggers;G.debugData.fulfillmentTriggerData=[];v=g.n(v);for(var K=v.next();!K.done;K=v.next())G.debugData.fulfillmentTriggerData.push(qV(K.value)); J=J.slotExpirationTriggers;G.debugData.expirationTriggerData=[];J=g.n(J);for(v=J.next();!v.done;v=J.next())G.debugData.expirationTriggerData.push(qV(v.value))}return G}; dTj=function(v,J){var G={type:J.layoutType,controlFlowManagerLayer:nm2.get(J.IY)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};v&&(G.debugData={layoutId:J.layoutId});return G}; qV=function(v,J){var G={type:v.triggerType};J!=null&&(G.category=J);v.triggeringSlotId!=null&&(G.triggerSourceData||(G.triggerSourceData={}),G.triggerSourceData.associatedSlotId=v.triggeringSlotId);v.triggeringLayoutId!=null&&(G.triggerSourceData||(G.triggerSourceData={}),G.triggerSourceData.associatedLayoutId=v.triggeringLayoutId);return G}; s58=function(v,J,G,K){J={opportunityType:J};v&&(K||G)&&(K=g.yn(K||[],function(V){return E6(v,V)}),J.debugData=Object.assign({},G&&G.length>0?{associatedSlotId:G}:{},K.length>0?{slots:K}:{})); return J}; P5=function(v,J){return function(G){return RmB(eh(v),J.slotId,J.slotType,J.slotPhysicalPosition,J.IY,J.slotEntryTrigger,J.slotFulfillmentTriggers,J.slotExpirationTriggers,G.layoutId,G.layoutType,G.IY)}}; RmB=function(v,J,G,K,V,Y,r,E,e,P,D){return{adClientDataEntry:{slotData:E6(v,{slotId:J,slotType:G,slotPhysicalPosition:K,IY:V,slotEntryTrigger:Y,slotFulfillmentTriggers:r,slotExpirationTriggers:E,clientMetadata:new KX([])}),layoutData:dTj(v,{layoutId:e,layoutType:P,IY:D,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],bd:new Map,clientMetadata:new KX([]),C0:{}})}}}; tQ=function(v){this.cH=v;v=Math.random();var J=this.cH.get();J=g.DI(J.S.B().experiments,"html5_debug_data_log_probability");J=Number.isFinite(J)&&J>=0&&J<=1?J:0;this.T=v1){g.Zl(new g.Mk("Exit already started",{current:v.currentState}));var G=!1}else G=!0;if(!G)return!1;v.currentState=2;v.T=J;return!0}; zL=function(v){if(v.currentState!==2)return!1;v.currentState=3;return!0}; jAU=function(v,J){var G=new Map;v=g.n(v);for(var K=v.next();!K.done;K=v.next()){K=K.value;if(K.layoutType==="LAYOUT_TYPE_MEDIA")var V="v";else K.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(V=VW(K.clientMetadata,"metadata_type_linked_in_player_layout_type"),V=V==="LAYOUT_TYPE_ENDCAP"||V==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":V==="LAYOUT_TYPE_SURVEY"?"s":V==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):V="u";G.set(K.layoutId,V);if(V==="u"){var Y={};V=J;K=(Y.c=K.layoutId,Y);V.S.uw("uct",K)}}v= J.wE();n6={contentCpn:v,Ui:G};K={};G=(K.ct=G.size,K.c=v,K);J.S.uw("acc",G)}; idf=function(){n6={contentCpn:"",Ui:new Map}}; df=function(v){var J;return(J=n6.Ui.get(v))!=null?J:"u"}; sj=function(v,J,G){v.S.uw(J,G);$1m(v)}; vpB=function(v){var J=v.layoutId,G=v.Jn;if(v.SU){var K={};sj(v.s9,"slso",(K.ec=J,K.is=G,K.ctp=df(J),K))}}; R$=function(v){var J=v.layoutId,G=v.Jn;if(v.SU){var K={};sj(v.s9,"slse",(K.ec=J,K.is=G,K.ctp=df(J),K))}}; Jkm=function(v){var J=v.layoutId,G=v.Jn,K=v.s9;v.SU&&(v={},sj(K,"sleo",(v.xc=J,v.is=G,v.ctp=df(J),v)),$1m(K))}; G$B=function(v){var J=v.cpn,G=v.s9;v=v.Jn;var K=G.wE(),V={};sj(G,"ce",(V.ec=J,V.ia=J!==K,V.r=n6.Ui.has(J),V.is=v,V.ctp=df(J),V))}; $1m=function(v){if(v.wE()!==n6.contentCpn){var J={};J=(J.c=n6.contentCpn,J);v.S.uw("ccm",J)}}; op8=function(v){var J=v.cpn,G=v.s9;v=v.Jn;var K=G.wE(),V={};sj(G,"cx",(V.xc=J,V.ia=J!==K,V.r=n6.Ui.has(J),V.is=v,V.ctp=df(J),V))}; Kkw=function(v){this.params=v;this.T=new Set}; VrU=function(v,J,G){if(!v.T.has(J)){v.T.add(J);var K={};v.params.Z2.H$(J,Object.assign({},G,(K.p_ac=v.params.adCpn,K.p_isv=v.params.T_Y&&v.params.Vk,K)))}}; TL=function(v,J,G){if(lD(v.params.Z2.cH.get(),!0)){var K=G.flush,V={};VrU(v,J,(V.cts=G.currentTimeSec,V.f=K,V))}}; YUB=function(v,J){this.s9=v;this.cH=J}; p6=function(v){var J=[];if(v){v=g.n(Object.entries(v));for(var G=v.next();!G.done;G=v.next()){var K=g.n(G.value);G=K.next().value;K=K.next().value;K!==void 0&&(K=typeof K==="boolean"?""+ +K:(""+K).replace(/[:,=]/g,"_"),J.push(G+"."+K))}}return J.join(";")}; L6=function(v,J,G){J=J===void 0?{}:J;this.errorCode=v;this.details=J;this.severity=G===void 0?0:G}; y9=function(v){return v===1||v===2}; wf=function(v,J){J=J===void 0?0:J;if(v instanceof L6)return v;v=v&&v instanceof Error?v:Error(""+v);y9(J)?g.fW(v):g.Zl(v);return new L6(J===1?"player.fatalexception":"player.exception",{name:""+v.name,message:""+v.message},J)}; rkB=function(v,J){function G(){var K=g.Om.apply(0,arguments);v.removeEventListener("playing",G);J.apply(null,g.l(K))} v.addEventListener("playing",G)}; Oj=function(){var v=g.NL("yt.player.utils.videoElement_");v||(v=g.qh("VIDEO"),g.ks("yt.player.utils.videoElement_",v));return v}; Uj=function(v){var J=Oj();return!!(J&&J.canPlayType&&J.canPlayType(v))}; m9=function(v){if(/opus/.test(v)&&g.x4&&!p7("38")&&!g.FX())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(v);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(v);if(/webm/.test(v)&&!I$m())return!1;v==='audio/mp4; codecs="mp4a.40.2"'&&(v='video/mp4; codecs="avc1.4d401f"');return!!Uj(v)}; qUj=function(v){try{var J=m9('video/mp4; codecs="avc1.42001E"')||m9('video/webm; codecs="vp9"');return(m9('audio/mp4; codecs="mp4a.40.2"')||m9('audio/webm; codecs="opus"'))&&(J||!v)||Uj('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(G){return"html5.missingapi"}}; SR=function(){var v=Oj();return!(!v.webkitSupportsPresentationMode||typeof v.webkitSetPresentationMode!=="function")}; f6=function(){var v=Oj();try{var J=v.muted;v.muted=!J;return v.muted!==J}catch(G){}return!1}; Ept=function(){var v;return((v=navigator.connection)==null?void 0:v.type)||""}; g.Zs=function(){yC.apply(this,arguments)}; uD=function(v,J,G,K,V,Y,r){this.sampleRate=v===void 0?0:v;this.numChannels=J===void 0?0:J;this.spatialAudioType=G===void 0?"SPATIAL_AUDIO_TYPE_NONE":G;this.T=K===void 0?!1:K;this.Z=V===void 0?0:V;this.X=Y===void 0?0:Y;this.audioQuality=r===void 0?"AUDIO_QUALITY_UNKNOWN":r}; k4=function(v,J,G,K,V,Y,r,E,e){this.width=v;this.height=J;this.quality=Y||gf(v,J);this.qualityOrdinal=g.Xy[this.quality];this.fps=G||0;this.stereoLayout=!V||K!=null&&K!=="UNKNOWN"&&K!=="RECTANGULAR"?0:V;this.projectionType=K?K==="EQUIRECTANGULAR"&&V===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":K:"UNKNOWN";(v=r)||(v=g.Xy[this.quality],v===0?v="Auto":(J=this.fps,G=this.projectionType,v=v.toString()+(G==="EQUIRECTANGULAR"||G==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||G==="MESH"?"s":"p")+(J>55?"60":J>49?"50": J>39?"48":"")));this.qualityLabel=v;this.T=E||"";this.primaries=e||""}; gf=function(v,J){var G=Math.max(v,J);v=Math.min(v,J);J=cE[0];for(var K=0;K=Math.floor(Y*16/9)*1.3||v>=Y*1.3)return J;J=V}return"tiny"}; As=function(v,J,G){G=G===void 0?{}:G;this.id=v;this.mimeType=J;G.ER>0||(G.ER=16E3);Object.assign(this,G);v=g.n(this.id.split(";"));this.itag=v.next().value;this.T=v.next().value;this.containerType=N9(J);this.aY=a$[this.itag]||""}; Fy=function(v){return v.aY==="9"||v.aY==="("||v.aY==="9h"||v.aY==="(h"}; eNf=function(v){return v.aY==="H"||v.aY==="h"}; HE=function(v){return v.aY==="9h"||v.aY==="(h"}; PdF=function(v){return!!v.k5&&!!v.k5.fairplay&&(v.aY==="("||v.aY==="(h"||v.aY==="A"||v.aY==="MEAC3")||M9&&!!v.k5&&v.aY==="1e"}; Q9=function(v){return v.aY==="1"||v.aY==="1h"||M9&&v.aY==="1e"}; WE=function(v){return v.aY==="mac3"||v.aY==="meac3"||v.aY==="m"||v.aY==="i"}; C6=function(v){return v.aY==="MAC3"||v.aY==="MEAC3"||v.aY==="M"||v.aY==="I"}; g.bD=function(v){return v.containerType===1}; D1f=function(v){return v.aY==="("||v.aY==="(h"||v.aY==="H"||M9&&v.aY==="1e"}; jl=function(v){return v.mimeType==="application/x-mpegURL"}; g.iS=function(v,J){return{itag:+v.itag,lmt:J?0:v.lastModified,xtags:v.T||""}}; trm=function(v){var J=navigator.mediaCapabilities;if(J==null||!J.decodingInfo||v.aY==="f")return Promise.resolve();var G={type:v.audio&&v.video?"file":"media-source"};v.video&&(G.video={contentType:v.mimeType,width:v.video.width||640,height:v.video.height||360,bitrate:v.ER*8||1E6,framerate:v.video.fps||30});v.audio&&(G.audio={contentType:v.mimeType,channels:""+(v.audio.numChannels||2),bitrate:v.ER*8||128E3,samplerate:v.audio.sampleRate||44100});return J.decodingInfo(G).then(function(K){v.X=K})}; $G=function(v){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(v)}; vI=function(v){return/(vp9|vp09|vp8|avc1|av01)/.test(v)}; JB=function(v){return v.includes("vtt")||v.includes("text/mp4")}; N9=function(v){return v.indexOf("/mp4")>=0?1:v.indexOf("/webm")>=0?2:v.indexOf("/x-flv")>=0?3:v.indexOf("/vtt")>=0?4:0}; Gz=function(v,J,G,K,V,Y){var r=new uD;J in g.Xy||(J="small");J==="light"&&(J="tiny");K&&V?(V=Number(V),K=Number(K)):(V=g.Xy[J],K=Math.round(V*16/9));Y=new k4(K,V,0,null,void 0,J,Y);v=unescape(v.replace(/"/g,'"'));return new As(G,v,{audio:r,video:Y})}; oj=function(v){var J="id="+v.id;v.video&&(J+=", res="+v.video.qualityLabel);var G,K;return J+", byterate=("+((G=v.SM)==null?void 0:G.toFixed(0))+", "+((K=v.ER)==null?void 0:K.toFixed(0))+")"}; Kt=function(v,J){return{start:function(G){return v[G]}, end:function(G){return J[G]}, length:v.length}}; Byw=function(v,J,G){for(var K=[],V=[],Y=0;Y=J)return G}catch(K){}return-1}; rj=function(v,J){return YG(v,J)>=0}; IzX=function(v,J){if(!v)return NaN;J=YG(v,J);return J>=0?v.start(J):NaN}; qG=function(v,J){if(!v)return NaN;J=YG(v,J);return J>=0?v.end(J):NaN}; EP=function(v){return v&&v.length?v.end(v.length-1):NaN}; el=function(v,J){v=qG(v,J);return v>=0?v-J:0}; PI=function(v,J,G){for(var K=[],V=[],Y=0;YG||(K.push(Math.max(J,v.start(Y))-J),V.push(Math.min(G,v.end(Y))-J));return Kt(K,V)}; Do=function(v,J,G,K){g.qU.call(this);var V=this;this.t7=v;this.start=J;this.end=G;this.isActive=K;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.vu={error:function(){!V.Sl()&&V.isActive&&V.publish("error",V)}, updateend:function(){!V.Sl()&&V.isActive&&V.publish("updateend",V)}}; this.t7.Cd(this.vu);this.V7=this.isActive}; BI=function(v,J,G,K,V,Y){g.qU.call(this);var r=this;this.JR=v;this.Va=J;this.id=G;this.containerType=K;this.aY=V;this.Vk=Y;this.Jc=this.C1=this.dM=null;this.fg=!1;this.appendWindowStart=this.timestampOffset=0;this.Fk=Kt([],[]);this.P9=!1;this.J$=[];this.vX=tB?[]:void 0;this.e3=function(e){return r.publish(e.type,r)}; var E;if((E=this.JR)==null?0:E.addEventListener)this.JR.addEventListener("updateend",this.e3),this.JR.addEventListener("error",this.e3)}; Ij=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; hB=function(v,J){this.v$=v;this.T=J===void 0?!1:J;this.X=!1}; zz=function(v,J,G){G=G===void 0?!1:G;g.X.call(this);this.mediaElement=v;this.K7=J;this.isView=G;this.j=0;this.L=!1;this.J=!0;this.N=0;this.callback=null;this.U=!1;this.K7||(this.Va=this.mediaElement.ZZ());this.events=new g.Zs(this);g.k(this,this.events);this.Z=new hB(this.K7?window.URL.createObjectURL(this.K7):this.Va.webkitMediaSourceURL,!0);v=this.K7||this.Va;ws(this.events,v,["sourceopen","webkitsourceopen"],this.kew);ws(this.events,v,["sourceclose","webkitsourceclose"],this.Cg7);this.K={updateend:this.TR}}; hNf=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; zNX=function(v,J){nt(v)?g.dQ(function(){J(v)}):v.callback=J}; nps=function(v,J,G){if(Fj){var K;HI(v.mediaElement,{l:"mswssb",sr:(K=v.mediaElement.HH)==null?void 0:K.jD()},!1);J.Cd(v.K,v);G.Cd(v.K,v)}v.T=J;v.X=G;g.k(v,J);g.k(v,G)}; d1s=function(v,J,G,K){K=J.mimeType+(K===void 0?"":K);var V=G.mimeType;J=J.aY;G=G.aY;var Y;v.oY=(Y=v.K7)==null?void 0:Y.addSourceBuffer(V);var r;v.Ti=K.split(";")[0]==="fakesb"?void 0:(r=v.K7)==null?void 0:r.addSourceBuffer(K);v.Va&&(v.Va.webkitSourceAddId("0",V),v.Va.webkitSourceAddId("1",K));Y=new BI(v.oY,v.Va,"0",N9(V),G,!1);K=new BI(v.Ti,v.Va,"1",N9(K),J,!0);nps(v,Y,K)}; MG=function(v){return!!v.T||!!v.X}; nt=function(v){try{return Q4(v)==="open"}catch(J){return!1}}; Q4=function(v){if(v.K7)return v.K7.readyState;switch(v.Va.webkitSourceState){case v.Va.SOURCE_OPEN:return"open";case v.Va.SOURCE_ENDED:return"ended";default:return"closed"}}; WI=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; sAr=function(v){nt(v)&&(v.K7?v.K7.endOfStream():v.Va.webkitSourceEndOfStream(v.Va.EOS_NO_ERROR))}; RNX=function(v,J,G,K){if(!v.T||!v.X)return null;var V=v.T.isView()?v.T.t7:v.T,Y=v.X.isView()?v.X.t7:v.X,r=new zz(v.mediaElement,v.K7,!0);r.Z=v.Z;nps(r,new Do(V,J,G,K),new Do(Y,J,G,K));nt(v)||v.T.S_(v.T.B$());return r}; lzX=function(v){var J;(J=v.T)==null||J.lk();var G;(G=v.X)==null||G.lk();v.J=!1}; Ct=function(){var v=this;this.Kp=this.m6=ULs;this.promise=new g.yr(function(J,G){v.m6=J;v.Kp=G})}; bS=function(){g.X.call(this);this.Yl=!1;this.v$=null;this.K=this.j=!1;this.L=new g.EF;this.HH=null;g.k(this,this.L)}; jP=function(v){v=v.Go();return v.length<1?NaN:v.end(v.length-1)}; Tym=function(v){!v.X&&hNf()&&(v.Z?v.Z.then(function(){return Tym(v)}):v.KJ()||(v.X=v.u2()))}; psw=function(v){v.X&&(v.X.dispose(),v.X=void 0)}; HI=function(v,J,G){var K;((K=v.HH)==null?0:K.GG())&&v.HH.uw("rms",J,G===void 0?!1:G)}; Lkm=function(v,J,G){v.isPaused()||v.getCurrentTime()>J||G>10||(v.play(),g.By(function(){Lkm(v,v.getCurrentTime(),G+1)},500))}; ykw=function(v,J){v.v$&&v.v$.Rt(J)||(v.v$&&v.v$.dispose(),v.v$=J)}; iw=function(v){return el(v.dK(),v.getCurrentTime())}; wsw=function(v,J){if(v.Rw()===0||v.hasError())return!1;var G=v.getCurrentTime()>0;return J>=0&&(v=v.Go(),v.length||!G)?rj(v,J):G}; $N=function(v){v.KJ()&&(v.HH&&v.HH.JZ("rs_s"),Ml&&v.getCurrentTime()>0&&v.seekTo(0),v.z5(),v.load(),ykw(v,null));delete v.Z}; vf=function(v){switch(v.t3()){case 2:return"progressive.net.retryexhausted";case 3:return v=v.qL(),(v==null?0:v.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||Odr&&(v==null?0:v.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.JZ=function(v,J,G){this.c8=J===void 0?null:J;this.seekSource=G===void 0?null:G;this.state=v||64}; Gt=function(v,J,G){G=G===void 0?!1:G;return U1L(v,J.getCurrentTime(),(0,g.yR)(),iw(J),G)}; os=function(v,J,G,K){if(!(J===v.state&&G===v.c8&&K===v.seekSource||J!==void 0&&(J&128&&!G||J&2&&J&16))){var V;if(V=J)V=J||v.state,V=!!(V&16||V&32);v=new g.JZ(J,G,V?K?K:v.seekSource:null)}return v}; KB=function(v,J,G){return os(v,v.state|J,null,G===void 0?null:G)}; VI=function(v,J){return os(v,v.state&~J,null,null)}; YN=function(v,J,G,K){return os(v,(v.state|J)&~G,null,K===void 0?null:K)}; g.H=function(v,J){return!!(v.state&J)}; g.rp=function(v,J){return J.state===v.state&&J.c8===v.c8}; qH=function(v){return v.isPlaying()&&!g.H(v,16)&&!g.H(v,32)}; EC=function(v){return g.H(v,128)?-1:g.H(v,2)?0:g.H(v,2048)?3:g.H(v,64)?-1:g.H(v,1)&&!g.H(v,32)?3:g.H(v,8)?1:g.H(v,4)?2:-1}; Pf=function(v,J,G,K,V,Y,r,E,e,P,D,t,B,I,h,R,T){g.X.call(this);var L=this;this.WU=v;this.slot=J;this.layout=G;this.F4=K;this.AR=V;this.C7=Y;this.L7=r;this.Su=E;this.Yy=e;this.Ld=P;this.position=t;this.j=B;this.cH=I;this.jm=h;this.gp=R;this.context=T;this.ZI=!0;this.J=!1;this.HO="not_rendering";this.X=!1;this.Z=new I$;v=VW(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.PH=new yG(G.bd,this.F4,v,G.layoutId);var O;v=((O=eP(this))==null?void 0:O.progressCommands)||[];this.L=new wrU(e, v,G.layoutId,function(){return L.CX()}); this.T=new Kkw({adCpn:this.layout.layoutId,Z2:T.Z2,T_Y:this.jm,Vk:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; Dk=function(v){return{layoutId:v.KX(),Jn:v.jm,s9:v.C7.get(),SU:v.SK()}}; tZ=function(v,J){return J.layoutId!==v.layout.layoutId?(v.WU.Z0(v.slot,J,new o_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+v.layout.layoutId+("and LayoutType: "+v.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; Bf=function(v){v.HO="rendering_start_requested";v.Ld(-1)}; eP=function(v){return VW(v.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; x18=function(v){Ps("Received layout exit signal when not in layout exit flow.",v.slot,v.layout)}; m18=function(v){var J;return((J=Is(v.C7.get(),2))==null?void 0:J.clientPlaybackNonce)||""}; hZ=function(v,J){switch(J){case "normal":v.P$("complete");break;case "skipped":v.P$("skip");break;case "abandoned":Sb(v.PH,"impression")&&v.P$("abandon")}}; zt=function(v,J){v.J||(J=new g.Dz(J.state,new g.JZ),v.J=!0);return J}; nB=function(v,J){PE(J)?v.Ld(1):g.Bs(J,4)&&!g.Bs(J,2)&&v.p6();tk(J,4)<0&&!(tk(J,2)<0)&&v.Zi()}; SUm=function(v){v.position===0&&(v.Su.get(),v=VW(v.layout.clientMetadata,"metadata_type_ad_placement_config").kind,v={adBreakType:dp(v)},cB("ad_bl"),g.N0(v))}; sC=function(v,J){xM(v.PH,J,!v.X)}; Zdw=function(v){var J;return(((J=eP(v))==null?void 0:J.progressCommands)||[]).findIndex(function(G){return!!g.N(G==null?void 0:G.command,fzm)})!==-1}; Rs=function(v,J){var G=VW(v.clientMetadata,"metadata_type_eligible_for_ssap");return G===void 0?(Ps("Expected SSAP eligibility in PlayerBytes factory",v),!1):J.SK(G)}; lw=function(v,J){if(!W5(J.get(),"html5_ssap_pass_transition_reason"))return 3;switch(v){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return Ps("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return Ps("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:v}),3;default:Vu(v,"unknown layoutExitReason")}}; uTw=function(v){Ps("getExitReason: unexpected reason",void 0,void 0,{reason:v})}; Tt=function(v,J){if(W5(J.get(),"html5_ssap_pass_transition_reason"))switch(v){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return uTw(v),"abandoned";case 3:case 1:return uTw(v),"error";default:Vu(v,"unexpected transition reason")}else switch(v){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return Ps("getExitReason: unexpected reason",void 0,void 0,{reason:v}),"error";default:Vu(v,"unexpected transition reason")}}; pB=function(v,J,G){Au(v,G)||HB(v,J,G);Au(v,"video_to_ad")||HB(v,J,"video_to_ad");Au(v,"ad_to_video")||HB(v,J,"ad_to_video");Au(v,"ad_to_ad")||HB(v,J,"ad_to_ad")}; LB=function(v,J,G,K,V,Y,r,E,e,P,D,t,B,I,h,R,T,L){Pf.call(this,v,J,G,K,V,Y,r,E,P,D,t,B,I,h,R,T,L);var O=this;this.hP=e;this.x$=t;this.Do=!0;this.Dr=this.CZ=0;this.wD=TD(function(){vpB(Dk(O));O.WU.w_(O.slot,O.layout)}); this.VN=TD(function(){Jkm(Dk(O));O.HO!=="rendering_stop_requested"&&O.x$(O);O.layoutExitReason?O.WU.s$(O.slot,O.layout,O.layoutExitReason):x18(O)}); this.W1=new g.ui(200);this.W1.listen("tick",function(){O.kL()}); g.k(this,this.W1)}; wp=function(v){v.Dr=Date.now();yI(v,v.CZ);v.W1.start()}; gpm=function(v){v.CZ=v.CX();v.fU(v.CZ/1E3,!0);yI(v,v.CZ)}; yI=function(v,J){J={current:J/1E3,duration:v.CX()/1E3};v.hP.get().TN("onAdPlaybackProgress",J)}; OC=function(v){LB.call(this,v.WU,v.slot,v.It,v.F4,v.AR,v.C7,v.L7,v.Su,v.hP,v.Yy,v.Ld,v.x$,v.J5,v.G0,v.cH,v.jm,v.gp,v.context)}; UC=function(v){LB.call(this,v.WU,v.slot,v.It,v.F4,v.AR,v.C7,v.L7,v.Su,v.hP,v.Yy,v.Ld,v.x$,v.J5,v.G0,v.cH,v.jm,v.gp,v.context)}; xN=function(){UC.apply(this,arguments)}; XsL=function(v){return Rs(v.slot,v.cH.get())?new xN(v):new OC(v)}; fB=function(v){Pf.call(this,v.callback,v.slot,v.It,v.F4,v.AR,v.C7,v.L7,v.Su,v.Yy,v.Ld,v.x$,v.J5,v.G0,v.cH,v.jm,v.gp,v.context);var J=this;this.adCpn="";this.Aq=this.iK=0;this.wD=TD(function(){vpB(Dk(J));J.WU.w_(J.slot,J.layout)}); this.VN=TD(function(){Jkm(Dk(J));J.HO!=="rendering_stop_requested"&&J.x$(J);J.layoutExitReason?J.WU.s$(J.slot,J.layout,J.layoutExitReason):x18(J)}); this.wJ=v.wJ;this.fK=v.fK;this.RH=v.RH;this.hP=v.hP;this.O9=v.O9;this.x$=v.x$;if(!this.SK()){W5(this.cH.get(),"html5_disable_media_load_timeout")||(this.XT=new g.Qq(function(){J.jC("load_timeout",new o_("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); v=m$(this.cH.get());var G=SP(this.cH.get());v&&G&&(this.CR=new g.Qq(function(){var K=VW(J.layout.clientMetadata,"metadata_type_preload_player_vars");K&&J.fK.get().S.preloadVideoByPlayerVars(K,2,300)}))}}; ckB=function(v,J){var G=VW(J.clientMetadata,"metadata_type_ad_video_id"),K=VW(J.clientMetadata,"metadata_type_legacy_info_card_vast_extension");G&&K&&v.O9.get().S.B().qr.add(G,{ai:K});(J=VW(J.clientMetadata,"metadata_type_sodar_extension_data"))&&Num(v.wJ.get(),J);k$X(v.L7.get(),!1)}; Nyr=function(v){k$X(v.L7.get(),!0);var J;((J=v.shrunkenPlayerBytesConfig)==null?0:J.shouldRequestShrunkenPlayerBytes)&&v.L7.get().qO(!1)}; Zk=function(){fB.apply(this,arguments)}; uw=function(){Zk.apply(this,arguments)}; azm=function(v){return XsL(Object.assign({},v,{WU:v.callback,Ld:function(){}}))}; Akt=function(v){return new fB(Object.assign({},v,{Ld:function(J){v.hP.get().TN("onAdIntroStateChange",J)}}))}; FkB=function(v){function J(G){v.hP.get().Da(G)} return Rs(v.slot,v.cH.get())?new uw(Object.assign({},v,{Ld:J})):new fB(Object.assign({},v,{Ld:J}))}; gp=function(v){for(var J=v.It,G=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],K=g.n(wM()),V=K.next();!V.done;V=K.next())G.push(V.value);if(bo(J,{v1:G,wB:["LAYOUT_TYPE_MEDIA_BREAK"]}))return azm(v);J=v.It;G=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];K=g.n(wM());for(V=K.next();!V.done;V=K.next())G.push(V.value);if(bo(J,{v1:G,wB:["LAYOUT_TYPE_MEDIA"]}))return v5(v.It.clientMetadata,"metadata_type_ad_intro")?Akt(v):FkB(v)}; MrL=function(v){var J=VW(v.clientMetadata,"metadata_type_ad_placement_config").kind,G=VW(v.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:v.layoutId,adType:Hdj(G),adBreakType:dp(J)}}; dp=function(v){switch(v){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"}}; Hdj=function(v){switch(v){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; QA8=function(v){try{return new XL(v.vn,v.slot,v.layout,v.CY,v.q1,v.C7,v.pK,v.fK,v.Qy,v.L7,v.Ost,v)}catch(J){}}; XL=function(v,J,G,K,V,Y,r,E,e,P,D,t){g.X.call(this);this.vn=v;this.slot=J;this.layout=G;this.CY=K;this.q1=V;this.C7=Y;this.pK=r;this.fK=E;this.Qy=e;this.L7=P;this.params=t;this.ZI=!0;v=gp(D);if(!v)throw Error("Invalid params for sublayout");this.aH=v}; Wkf=function(){this.T=1;this.X=new I$}; kN=function(v,J,G,K,V,Y,r,E,e,P,D,t,B){g.X.call(this);this.callback=v;this.C7=J;this.pK=G;this.fK=K;this.L7=V;this.Su=Y;this.OV=r;this.slot=E;this.layout=e;this.CY=P;this.uh=D;this.Qy=t;this.cH=B;this.ZI=!0;this.ZW=!1;this.sJ=[];this.D$=-1;this.uo=!1;this.Bn=new Wkf}; CdB=function(v){var J;return(J=v.layout.jO)!=null?J:VW(v.layout.clientMetadata,"metadata_type_sub_layouts")}; cf=function(v){return{s9:v.C7.get(),Jn:!1,SU:v.SK()}}; bdB=function(v,J,G){if(v.NP()===v.sJ.length-1){var K,V;Ps("Unexpected skip requested during the last sublayout",(K=v.t0())==null?void 0:K.r_(),(V=v.t0())==null?void 0:V.UB(),{requestingSlot:J,requestingLayout:G})}}; jwB=function(v,J,G){return G.layoutId!==NH(v,J,G)?(Ps("onSkipRequested for a PlayerBytes layout that is not currently active",v.r_(),v.UB()),!1):!0}; iVs=function(v){v.NP()===v.sJ.length-1&&Ps("Unexpected skip with target requested during the last sublayout")}; $0X=function(v,J,G){return G.renderingContent===void 0&&G.layoutId!==NH(v,J,G)?(Ps("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",v.r_(),v.UB(),{requestingSlot:J,requestingLayout:G}),!1):!0}; vnt=function(v,J,G,K){var V=VW(J.UB().clientMetadata,"metadata_type_ad_pod_skip_target");if(V&&V>0&&V0)){Ps("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",v.slot,v.layout,{indexToPlay:J,layoutId:v.layout.layoutId});break a}v.D$=J;J=v.t0();if(v.NP()>0&&!v.SK()){var G=v.Su.get();G.X=!1;var K={};G.T&&G.videoId&&(K.cttAuthInfo={token:G.T,videoId:G.videoId});aw("ad_to_ad",K)}v.Gu(J)}}; Hf=function(v){kN.call(this,v.vn,v.C7,v.pK,v.fK,v.L7,v.Su,v.OV,v.slot,v.layout,v.CY,v.uh,v.Qy,v.cH)}; onw=function(v){(v=v.t0())&&v.zo()}; MH=function(v){kN.call(this,v.vn,v.C7,v.pK,v.fK,v.L7,v.Su,v.OV,v.slot,v.layout,v.CY,v.uh,v.Qy,v.cH);this.JI=void 0}; Kft=function(v,J){v.LB()&&!zL(v.Bn.X)||v.callback.s$(v.slot,v.layout,J)}; QI=function(v){return W5(v.cH.get(),"html5_ssap_pass_transition_reason")}; Vfw=function(v,J,G){J.cU().currentState<2&&(G=Tt(G,v.cH),J.A7(J.UB(),G));G=J.cU().T;v.fk(v.slot,J.UB(),G)}; YQB=function(v,J){if(v.Bn.X.currentState<2){var G=Tt(J,v.cH);G==="error"?v.callback.Z0(v.slot,v.layout,new o_("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"):FL(v.uh,v.layout,G)}}; Wf=function(v,J,G){J.cU().currentState>=2||(J.A7(J.UB(),G),zL(J.cU())&&(O6(v.OV,v.slot,J.UB(),G),v.JI=void 0))}; ruL=function(v,J){v.Bn.T===2&&J!==v.wE()&&Ps("onClipEntered: unknown cpn",v.slot,v.layout,{cpn:J})}; qQB=function(v,J){var G=v.t0();if(G){var K=G.UB().layoutId,V=v.NP()+1;v.LB()?Wf(v,G,J):G.A7(G.UB(),J);V>=0&&VV&&r.z0(D,V-K);return D}; z_f=function(v,J,G){var K=VW(J.clientMetadata,"metadata_type_sodar_extension_data");if(K)try{Num(G,K)}catch(V){Ps("Unexpected error when loading Sodar",v,J,{error:V})}}; nnr=function(v,J,G,K,V,Y,r){JY(v,J,new g.Dz(G,new g.JZ),K,V,r,!1,Y)}; JY=function(v,J,G,K,V,Y,r,E){r=r===void 0?!0:r;PE(G)&&Ds(V,0,null)&&(!Sb(v,"impression")&&E&&E(),v.P$("impression"));Sb(v,"impression")&&(g.Bs(G,4)&&!g.Bs(G,2)&&v.LJ("pause"),tk(G,4)<0&&!(tk(G,2)<0)&&v.LJ("resume"),g.Bs(G,16)&&V>=.5&&v.LJ("seek"),r&&g.Bs(G,2)&&G4(v,G.state,J,K,V,Y))}; G4=function(v,J,G,K,V,Y,r,E){Sb(v,"impression")&&(Y?(Y=V-K,Y=Y>=-1&&Y<=2):Y=Math.abs(K-V)<=1,oe(v,J,Y?K:V,G,K,r,E&&Y),Y&&v.P$("complete"))}; oe=function(v,J,G,K,V,Y,r){mp(v,G*1E3,r);V<=0||G<=0||(J==null?0:g.H(J,16))||(J==null?0:g.H(J,32))||(Ds(G,V*.25,K)&&(Y&&!Sb(v,"first_quartile")&&Y("first"),v.P$("first_quartile")),Ds(G,V*.5,K)&&(Y&&!Sb(v,"midpoint")&&Y("second"),v.P$("midpoint")),Ds(G,V*.75,K)&&(Y&&!Sb(v,"third_quartile")&&Y("third"),v.P$("third_quartile")))}; d0X=function(v,J){Sb(v,"impression")&&v.LJ(J?"fullscreen":"end_fullscreen")}; swL=function(v){Sb(v,"impression")&&v.LJ("clickthrough")}; R_t=function(v){v.LJ("active_view_measurable")}; lY2=function(v){Sb(v,"impression")&&!Sb(v,"seek")&&v.LJ("active_view_fully_viewable_audible_half_duration")}; Taj=function(v){Sb(v,"impression")&&!Sb(v,"seek")&&v.LJ("active_view_viewable")}; pBj=function(v){Sb(v,"impression")&&!Sb(v,"seek")&&v.LJ("audio_audible")}; Lfj=function(v){Sb(v,"impression")&&!Sb(v,"seek")&&v.LJ("audio_measurable")}; yuw=function(v,J,G,K,V,Y,r,E,e,P,D,t){this.callback=v;this.slot=J;this.layout=G;this.pK=K;this.PH=V;this.L7=Y;this.Mw=r;this.AR=E;this.wJ=e;this.cH=P;this.F4=D;this.C7=t;this.Do=!0;this.E1=this.HO=null;this.adCpn=void 0;this.T=!1}; wBj=function(v,J,G){var K;vD(v.F4.get(),"ads_qua","cpn."+VW(v.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((K=Is(v.C7.get(),2))==null?void 0:K.clientPlaybackNonce)+";qt."+J+";clr."+G)}; OVj=function(v,J){var G,K;vD(v.F4.get(),"ads_imp","cpn."+VW(v.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((G=Is(v.C7.get(),2))==null?void 0:G.clientPlaybackNonce)+";clr."+J+";skp."+!!g.N((K=VW(v.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:K.skipOrPreviewRenderer,Ki))}; Vx=function(v){return{enterMs:VW(v.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:VW(v.clientMetadata,"metadata_type_layout_exit_ms")}}; rB=function(v,J,G,K,V,Y,r,E,e,P,D,t,B,I){bw.call(this,v,J,G,K,V,r,E,e,P,t);this.Mw=Y;this.wJ=D;this.AR=B;this.cH=I;this.E1=this.HO=null}; U0F=function(v,J){var G;vD(v.F4.get(),"ads_imp","acpn."+((G=Is(v.C7.get(),2))==null?void 0:G.clientPlaybackNonce)+";clr."+J)}; x0m=function(v,J,G){var K;vD(v.F4.get(),"ads_qua","cpn."+VW(v.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((K=Is(v.C7.get(),2))==null?void 0:K.clientPlaybackNonce)+";qt."+J+";clr."+G)}; qJ=function(v,J,G,K,V,Y,r,E,e,P,D,t,B,I,h,R,T,L,O,x,f){this.Qy=v;this.CY=J;this.uh=G;this.C7=K;this.pK=V;this.L7=Y;this.F4=r;this.Mw=E;this.Vj=e;this.AR=P;this.wJ=D;this.fK=t;this.RH=B;this.Su=I;this.hP=h;this.Yy=R;this.O9=T;this.cH=L;this.T=O;this.context=x;this.gp=f}; Ek=function(v,J,G,K,V,Y,r,E,e,P,D,t,B,I,h,R,T,L){this.Qy=v;this.CY=J;this.uh=G;this.F4=K;this.AR=V;this.wJ=Y;this.fK=r;this.C7=E;this.L7=e;this.RH=P;this.Su=D;this.hP=t;this.Yy=B;this.O9=I;this.cH=h;this.pK=R;this.context=T;this.gp=L}; m0t=function(v,J,G,K){r8.call(this,"survey-interstitial",v,J,G,K)}; e_=function(v,J,G,K,V){nT.call(this,G,v,J,K);this.F4=V;v=VW(J.clientMetadata,"metadata_type_ad_placement_config");this.PH=new yG(J.bd,V,v,J.layoutId)}; PD=function(v){return Math.round(v.width)+"x"+Math.round(v.height)}; tY=function(v,J,G){G=G===void 0?D5:G;G.widthv.width*v.height*.2)return{AE:3,xd:501,errorMessage:"ad("+PD(G)+") to container("+PD(v)+") ratio exceeds limit."};if(G.height>v.height/3-J)return{AE:3,xd:501,errorMessage:"ad("+PD(G)+") covers container("+PD(v)+") center."}}; SQt=function(v,J){var G=VW(v.clientMetadata,"metadata_type_ad_placement_config");return new yG(v.bd,J,G,v.layoutId)}; BD=function(v){return VW(v.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; Ie=function(v,J,G,K){r8.call(this,"invideo-overlay",v,J,G,K);this.interactionLoggingClientData=K}; hY=function(v,J,G,K,V,Y,r,E,e,P,D,t){nT.call(this,Y,v,J,V);this.F4=G;this.L=r;this.L7=E;this.Yy=e;this.cH=P;this.j=D;this.J=t;this.PH=SQt(J,G)}; fY2=function(){var v=["metadata_type_invideo_overlay_ad_renderer"];wM().forEach(function(J){v.push(J)}); return{v1:v,wB:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; z4=function(v,J,G,K,V,Y,r,E,e,P,D,t,B){nT.call(this,Y,v,J,V);this.F4=G;this.L=r;this.U=E;this.L7=e;this.Yy=P;this.cH=D;this.j=t;this.J=B;this.PH=SQt(J,G)}; ZVw=function(){for(var v=["metadata_type_invideo_overlay_ad_renderer"],J=g.n(wM()),G=J.next();!G.done;G=J.next())v.push(G.value);return{v1:v,wB:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; ni=function(v){this.L7=v;this.T=!1}; umf=function(v,J,G){r8.call(this,"survey",v,{},J,G)}; dB=function(v,J,G,K,V,Y,r){nT.call(this,G,v,J,K);this.L=V;this.L7=Y;this.cH=r}; gnF=function(v,J,G,K,V,Y,r,E,e,P){this.AP=v;this.L7=J;this.F4=G;this.L=K;this.AR=V;this.X=Y;this.Z=r;this.Yy=E;this.cH=e;this.T=P}; XBm=function(v,J,G,K,V,Y,r,E,e,P){this.AP=v;this.L7=J;this.F4=G;this.L=K;this.AR=V;this.X=Y;this.Z=r;this.Yy=E;this.cH=e;this.T=P}; sk=function(v,J,G,K,V,Y,r,E,e,P){GL.call(this,v,J,G,K,V,Y,r,e);this.ij=E;this.C7=P}; k_w=function(){var v=HRw();v.v1.push("metadata_type_ad_info_ad_metadata");return v}; cuj=function(v,J,G,K,V,Y,r){this.AP=v;this.L7=J;this.F4=G;this.X=K;this.ij=V;this.T=Y;this.C7=r}; NaX=function(v,J,G,K,V,Y,r,E){this.AP=v;this.L7=J;this.F4=G;this.X=K;this.ij=V;this.T=Y;this.cH=r;this.C7=E}; Re=function(v,J){this.slotId=J;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=v(this.triggerType)}; lv=function(v,J){this.adPodIndex=v;this.T=J.length;this.adBreakLengthSeconds=J.reduce(function(K,V){return K+V},0); var G=0;for(v+=1;v0}; VJ=function(v){return!!(v.fei&&v.slot&&v.layout)}; Yc=function(v){var J,G=(J=v.config)==null?void 0:J.adPlacementConfig;v=v.renderer;return!(!G||G.kind==null||!v)}; Jaw=function(v){if(!iu(v.adLayoutMetadata))return!1;v=v.renderingContent;return g.N(v,q9)||g.N(v,Ej)||g.N(v,Y4)||g.N(v,rf)?!0:!1}; rc=function(v){return v.playerVars!==void 0&&v.pings!==void 0&&v.externalVideoId!==void 0}; B6=function(v){if(!iu(v.adLayoutMetadata))return!1;v=v.renderingContent;var J=g.N(v,qe);return J?ER(J):(J=g.N(v,es))?rc(J):(J=g.N(v,P6))?J.playerVars!==void 0:(J=g.N(v,q9))?J.durationMilliseconds!==void 0:g.N(v,De)||g.N(v,t2)?!0:!1}; ER=function(v){v=(v.sequentialLayouts||[]).map(function(J){return g.N(J,Io)}); return v.length>0&&v.every(B6)}; zC=function(v){return iu(v.adLayoutMetadata)?(v=g.N(v.renderingContent,h2))&&v.pings?!0:!1:!1}; ra8=function(v){if(!iu(v.adLayoutMetadata))return!1;if(g.N(v.renderingContent,GpX)||g.N(v.renderingContent,ovf))return!0;var J=g.N(v.renderingContent,na);return g.N(v.renderingContent,yJ)||g.N(J==null?void 0:J.sidePanel,K8m)||g.N(J==null?void 0:J.sidePanel,VuX)||g.N(J==null?void 0:J.sidePanel,Ylm)?!0:!1}; DdU=function(v){var J;(J=!v)||(J=v.adSlotMetadata,J=!((J==null?void 0:J.slotId)!==void 0&&(J==null?void 0:J.slotType)!==void 0));if(J||!(ql2(v)||v.slotEntryTrigger&&v.slotFulfillmentTriggers&&v.slotExpirationTriggers))return!1;var G;v=(G=v.fulfillmentContent)==null?void 0:G.fulfilledLayout;return(G=g.N(v,Io))?B6(G):(G=g.N(v,wc))?ra8(G):(G=g.N(v,Evm))?Jaw(G):(G=g.N(v,eV8))?$ds(G):(G=g.N(v,PPr))?iu(G.adLayoutMetadata)?g.N(G.renderingContent,$c)?!0:!1:!1:(v=g.N(v,OR))?zC(v):!1}; ql2=function(v){var J;v=g.N((J=v.fulfillmentContent)==null?void 0:J.fulfilledLayout,wc);var G;return v&&((G=v.adLayoutMetadata)==null?void 0:G.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&v.layoutExitNormalTriggers===void 0}; tur=function(v){var J;return(v==null?void 0:(J=v.adSlotMetadata)==null?void 0:J.slotType)==="SLOT_TYPE_IN_PLAYER"}; Icw=function(v,J){var G;if((G=v.questions)==null||!G.length||!v.playbackCommands||(J===void 0||!J)&&v.questions.length!==1)return!1;v=g.n(v.questions);for(J=v.next();!J.done;J=v.next()){J=J.value;var K=G=void 0,V=((G=g.N(J,UR))==null?void 0:G.surveyAdQuestionCommon)||((K=g.N(J,xc))==null?void 0:K.surveyAdQuestionCommon);if(!B7X(V))return!1}return!0}; hVm=function(v){v=((v==null?void 0:v.playerOverlay)||{}).instreamSurveyAdRenderer;var J;if(v)if(v.playbackCommands&&v.questions&&v.questions.length===1){var G,K=((J=g.N(v.questions[0],UR))==null?void 0:J.surveyAdQuestionCommon)||((G=g.N(v.questions[0],xc))==null?void 0:G.surveyAdQuestionCommon);J=B7X(K)}else J=!1;else J=!1;return J}; B7X=function(v){if(!v)return!1;v=g.N(v.instreamAdPlayerOverlay,m3);var J=g.N(v==null?void 0:v.skipOrPreviewRenderer,Ki),G=g.N(v==null?void 0:v.adInfoRenderer,Ss);return(g.N(v==null?void 0:v.skipOrPreviewRenderer,fa)||J)&&G?!0:!1}; zVL=function(v){return v.linearAds!=null&&iu(v.adLayoutMetadata)}; nvs=function(v){return v.linearAd!=null&&v.adVideoStart!=null}; ddU=function(v){if(isNaN(Number(v.timeoutSeconds))||!v.text||!v.ctaButton||!g.N(v.ctaButton,g.Ze)||!v.brandImage)return!1;var J;return v.backgroundImage&&g.N(v.backgroundImage,uu)&&((J=g.N(v.backgroundImage,uu))==null?0:J.landscape)?!0:!1}; gc=function(v,J,G,K,V,Y,r){g.X.call(this);this.cH=v;this.T=J;this.Z=K;this.C7=V;this.L=Y;this.X=r}; lcw=function(v,J,G){var K,V=((K=G.adSlots)!=null?K:[]).map(function(E){return g.N(E,kc)}); if(G.fb)if(VW(J.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))BK(v.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},J.slotId); else{if(v.cH.get().S.B().C("h5_check_forecasting_renderer_for_throttled_midroll")){var Y=G.nx.filter(function(E){var e;return((e=E.renderer)==null?void 0:e.clientForecastingAdRenderer)!=null}); Y.length!==0?sgm(v.X,Y,V,J.slotId,G.ssdaiAdsConfig):BK(v.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},J.slotId)}else BK(v.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},J.slotId); RVU(v.L,J)}else{var r;K={N_:Math.round(((Y=VW(J.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:Y.N_)||0),hn:(r=VW(J.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:r.hn};sgm(v.X,G.nx,V,J.slotId,G.ssdaiAdsConfig,K)}}; pAf=function(v,J,G,K,V,Y,r){var E=Is(v.C7.get(),1);BK(v.T.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return T7X(v.Z.get(),G,K,V,E.clientPlaybackNonce,E.rP,E.daiEnabled,E,Y,r)},J)}; yaB=function(v,J,G,K,V,Y,r){J=L8s(J,Y,Number(K.prefetchMilliseconds)||0,r);v=J instanceof Q?J:c6(v,K,V,J,G);return v instanceof Q?v:[v]}; wAL=function(v,J,G,K,V){var Y=I8(v.X.get(),"SLOT_TYPE_AD_BREAK_REQUEST");K=[new gD({getAdBreakUrl:K.getAdBreakUrl,N_:0,hn:0}),new jh(!0)];v=J.pauseDurationMs?J.lactThresholdMs?{slotId:Y,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Qx(v.T,Y),slotFulfillmentTriggers:[new AuU(v.T)],slotExpirationTriggers:[new cD(v.T,V),new FZ(v.T,Y)],IY:"core",clientMetadata:new KX(K),adSlotLoggingData:G}:new Q("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new Q("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return v instanceof Q?v:[v]}; OpL=function(v){var J,G;return((J=v.renderer)==null?void 0:(G=J.adBreakServiceRenderer)==null?void 0:G.getAdBreakUrl)!==void 0}; Ne=function(v,J,G){if(v.beforeContentVideoIdStartedTrigger)v=v.beforeContentVideoIdStartedTrigger?new T4(GG,J,v.id):new Q("Not able to create BeforeContentVideoIdStartedTrigger");else{if(v.layoutIdExitedTrigger){var K;J=(K=v.layoutIdExitedTrigger)!=null&&K.triggeringLayoutId?new Uk(GG,v.layoutIdExitedTrigger.triggeringLayoutId,v.id):new Q("Not able to create LayoutIdExitedTrigger")}else{if(v.layoutExitedForReasonTrigger){var V,Y;((V=v.layoutExitedForReasonTrigger)==null?0:V.triggeringLayoutId)&&((Y= v.layoutExitedForReasonTrigger)==null?0:Y.layoutExitReason)?(J=Ffm(v.layoutExitedForReasonTrigger.layoutExitReason),v=J instanceof Q?J:new Ok(GG,v.layoutExitedForReasonTrigger.triggeringLayoutId,[J],v.id)):v=new Q("Not able to create LayoutIdExitedForReasonTrigger")}else{if(v.onLayoutSelfExitRequestedTrigger){var r;J=(r=v.onLayoutSelfExitRequestedTrigger)!=null&&r.triggeringLayoutId?new kT(GG,v.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,v.id):new Q("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(v.onNewPlaybackAfterContentVideoIdTrigger)v= v.onNewPlaybackAfterContentVideoIdTrigger?new cD(GG,J,v.id):new Q("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(v.skipRequestedTrigger){var E;J=(E=v.skipRequestedTrigger)!=null&&E.triggeringLayoutId?new ae(GG,v.skipRequestedTrigger.triggeringLayoutId,v.id):new Q("Not able to create SkipRequestedTrigger")}else if(v.slotIdEnteredTrigger){var e;J=(e=v.slotIdEnteredTrigger)!=null&&e.triggeringSlotId?new AY(GG,v.slotIdEnteredTrigger.triggeringSlotId,v.id):new Q("Not able to create SlotIdEnteredTrigger")}else if(v.slotIdExitedTrigger){var P; J=(P=v.slotIdExitedTrigger)!=null&&P.triggeringSlotId?new FZ(GG,v.slotIdExitedTrigger.triggeringSlotId,v.id):new Q("Not able to create SkipRequestedTrigger")}else if(v.surveySubmittedTrigger){var D;J=(D=v.surveySubmittedTrigger)!=null&&D.triggeringLayoutId?new Ci(GG,v.surveySubmittedTrigger.triggeringLayoutId,v.id):new Q("Not able to create SurveySubmittedTrigger")}else{if(v.mediaResumedTrigger)v=v.mediaResumedTrigger&&v.id?new HVj(v.id):new Q("Not able to create MediaResumedTrigger");else{if(v.closeRequestedTrigger){var t; J=(t=v.closeRequestedTrigger)!=null&&t.triggeringLayoutId?new pi(GG,v.closeRequestedTrigger.triggeringLayoutId,v.id):new Q("Not able to create CloseRequestedTrigger")}else if(v.slotIdScheduledTrigger){var B;J=(B=v.slotIdScheduledTrigger)!=null&&B.triggeringSlotId?new Qx(GG,v.slotIdScheduledTrigger.triggeringSlotId,v.id):new Q("Not able to create SlotIdScheduledTrigger")}else{if(v.mediaTimeRangeTrigger){var I;K=Number((I=v.mediaTimeRangeTrigger)==null?void 0:I.offsetStartMilliseconds);var h;r=Number((h= v.mediaTimeRangeTrigger)==null?void 0:h.offsetEndMilliseconds);isFinite(K)&&isFinite(r)?(h=r,h===-1&&(h=G),G=K>h?new Q("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:K,offsetEndMs:h},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",h===G&&K-500<=h):new l6(K,h),v=G instanceof Q?G:new Z5(GG,J,G,!1,v.id)):v=new Q("Not able to create MediaTimeRangeTrigger")}else if(v.contentVideoIdEndedTrigger)v=v.contentVideoIdEndedTrigger?new Li(GG,J,!1,v.id):new Q("Not able to create ContentVideoIdEndedTrigger"); else{if(v.layoutIdEnteredTrigger){var R;J=(R=v.layoutIdEnteredTrigger)!=null&&R.triggeringLayoutId?new wB(GG,v.layoutIdEnteredTrigger.triggeringLayoutId,v.id):new Q("Not able to create LayoutIdEnteredTrigger")}else if(v.timeRelativeToLayoutEnterTrigger){var T;J=(T=v.timeRelativeToLayoutEnterTrigger)!=null&&T.triggeringLayoutId?new bv(GG,Number(v.timeRelativeToLayoutEnterTrigger.durationMs),v.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,v.id):new Q("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(v.onDifferentLayoutIdEnteredTrigger){var L; J=(L=v.onDifferentLayoutIdEnteredTrigger)!=null&&L.triggeringLayoutId&&v.onDifferentLayoutIdEnteredTrigger.slotType&&v.onDifferentLayoutIdEnteredTrigger.layoutType?new gB(GG,v.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,v.onDifferentLayoutIdEnteredTrigger.slotType,v.onDifferentLayoutIdEnteredTrigger.layoutType,v.id):new Q("Not able to create CloseRequestedTrigger")}else{if(v.liveStreamBreakStartedTrigger)v=v.liveStreamBreakStartedTrigger&&v.id?new fi(GG,v.id):new Q("Not able to create LiveStreamBreakStartedTrigger"); else if(v.liveStreamBreakEndedTrigger)v=v.liveStreamBreakEndedTrigger&&v.id?new xT(GG,v.id):new Q("Not able to create LiveStreamBreakEndedTrigger");else{if(v.liveStreamBreakScheduledDurationMatchedTrigger){var O;J=(O=v.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&O.breakDurationMs?new mN(Number(v.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,v.id):new Q("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(v.liveStreamBreakScheduledDurationNotMatchedTrigger){var x; J=(x=v.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&x.breakDurationMs?new S_(Number(v.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,v.id):new Q("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(v.newSlotScheduledWithBreakDurationTrigger){var f;J=(f=v.newSlotScheduledWithBreakDurationTrigger)!=null&&f.breakDurationMs?new uv(Number(v.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,v.id):new Q("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else J= v.prefetchCacheExpiredTrigger?new NJ(GG,v.id):new Q("Not able to convert an AdsControlflowTrigger.");v=J}J=v}v=J}J=v}v=J}J=v}v=J}J=v}v=J}J=v}v=J}return v}; ao=function(v,J){J.T>=2&&(v.slot_pos=J.adPodIndex);v.autoplay="1"}; xd2=function(v,J,G,K,V,Y,r,E){return J===null?new Q("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:J,ActionCompanionAdRenderer:K}):[Udm(v,J,r,Y,function(e){var P=e.slotId;e=E(e);var D=K.adLayoutLoggingData,t=new KX([new Xg(K),new b3(V)]);P=CX(G.X.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",P);var B={layoutId:P,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",IY:"core"};return{layoutId:P,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",bd:new Map, layoutExitNormalTriggers:[new cD(G.T,r)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],IY:"core",clientMetadata:t,C0:e(B),adLayoutLoggingData:D}})]}; mdm=function(v,J,G,K,V,Y,r,E){return J===null?new Q("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:J,TopBannerImageTextIconButtonedLayoutViewModel:K}):[Udm(v,J,r,Y,function(e){var P=e.slotId;e=E(e);var D=K.adLayoutLoggingData,t=new KX([new kC(K),new b3(V)]);P=CX(G.X.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",P);var B={layoutId:P,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",IY:"core"};return{layoutId:P,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", bd:new Map,layoutExitNormalTriggers:[new cD(G.T,r)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],IY:"core",clientMetadata:t,C0:e(B),adLayoutLoggingData:D}})]}; uts=function(v,J,G,K,V,Y){if(!Y)for(J=g.n(J),Y=J.next();!Y.done;Y=J.next())Y=Y.value,A2(v,Y.renderer,Y.config.adPlacementConfig.kind);v=Array.from(v.values()).filter(function(D){return Slt(D)}); J=[];Y=g.n(v);for(var r=Y.next(),E={};!r.done;E={Dj:void 0},r=Y.next()){E.Dj=r.value;r=g.n(E.Dj.Qs);for(var e=r.next(),P={};!e.done;P={PV:void 0},e=r.next())P.PV=e.value,e=function(D,t){return function(B){return D.PV.o4(B,t.Dj.instreamVideoAdRenderer.elementId,D.PV.T1)}}(P,E),P.PV.isContentVideoCompanion?J.push(fcf(G,K,V,E.Dj.instreamVideoAdRenderer.elementId,P.PV.associatedCompositePlayerBytesLayoutId,P.PV.adSlotLoggingData,e)):v.length>1?J.push(Zpf(G,K,V,E.Dj.instreamVideoAdRenderer.elementId,P.PV.adSlotLoggingData, function(D,t){return function(B){return D.PV.o4(B,t.Dj.instreamVideoAdRenderer.elementId,D.PV.T1,D.PV.associatedCompositePlayerBytesLayoutId)}}(P,E))):J.push(Zpf(G,K,V,E.Dj.instreamVideoAdRenderer.elementId,P.PV.adSlotLoggingData,e))}return J}; A2=function(v,J,G){if(J=gvm(J)){J=g.n(J);for(var K=J.next();!K.done;K=J.next())if((K=K.value)&&K.externalVideoId){var V=FR(v,K.externalVideoId);V.instreamVideoAdRenderer||(V.instreamVideoAdRenderer=K,V.dN=G)}else Ps("InstreamVideoAdRenderer without externalVideoId")}}; gvm=function(v){var J=[],G=v.sandwichedLinearAdRenderer&&v.sandwichedLinearAdRenderer.linearAd&&g.N(v.sandwichedLinearAdRenderer.linearAd,es);if(G)return J.push(G),J;if(v.instreamVideoAdRenderer)return J.push(v.instreamVideoAdRenderer),J;if(v.linearAdSequenceRenderer&&v.linearAdSequenceRenderer.linearAds){v=g.n(v.linearAdSequenceRenderer.linearAds);for(G=v.next();!G.done;G=v.next())G=G.value,g.N(G,es)&&J.push(g.N(G,es));return J}return null}; Slt=function(v){if(v.instreamVideoAdRenderer===void 0)return Ps("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var J=g.n(v.Qs),G=J.next();!G.done;G=J.next()){G=G.value;if(G.o4===void 0)return!1;if(G.T1===void 0)return Ps("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(v.dN===void 0||G.Fi===void 0||v.dN!==G.Fi&&G.Fi!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(v.instreamVideoAdRenderer.elementId===void 0)return Ps("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:v.dN,"matching APSR kind":G.Fi}),!1}return!0}; FR=function(v,J){v.has(J)||v.set(J,{instreamVideoAdRenderer:void 0,dN:void 0,adVideoId:J,Qs:[]});return v.get(J)}; H6=function(v,J,G,K,V,Y,r,E,e){V?FR(v,V).Qs.push({lXh:J,Fi:G,isContentVideoCompanion:K,T1:r,associatedCompositePlayerBytesLayoutId:Y,adSlotLoggingData:E,o4:e}):Ps("Companion AdPlacementSupportedRenderer without adVideoId")}; Me=function(v){var J=0;v=g.n(v.questions);for(var G=v.next();!G.done;G=v.next())if(G=G.value,G=g.N(G,UR)||g.N(G,xc)){var K=void 0;J+=((K=G.surveyAdQuestionCommon)==null?void 0:K.durationMilliseconds)||0}return J}; QJ=function(v){var J,G,K,V,Y=((G=g.N((J=v.questions)==null?void 0:J[0],UR))==null?void 0:G.surveyAdQuestionCommon)||((V=g.N((K=v.questions)==null?void 0:K[0],xc))==null?void 0:V.surveyAdQuestionCommon),r;J=[].concat(g.l(((r=v.playbackCommands)==null?void 0:r.instreamAdCompleteCommands)||[]),g.l((Y==null?void 0:Y.timeoutCommands)||[]));var E,e,P,D,t,B,I,h,R,T,L,O,x,f,c,b,M,Jw,Kf,j8;return{impressionCommands:(E=v.playbackCommands)==null?void 0:E.impressionCommands,errorCommands:(e=v.playbackCommands)== null?void 0:e.errorCommands,muteCommands:(P=v.playbackCommands)==null?void 0:P.muteCommands,unmuteCommands:(D=v.playbackCommands)==null?void 0:D.unmuteCommands,pauseCommands:(t=v.playbackCommands)==null?void 0:t.pauseCommands,rewindCommands:(B=v.playbackCommands)==null?void 0:B.rewindCommands,resumeCommands:(I=v.playbackCommands)==null?void 0:I.resumeCommands,skipCommands:(h=v.playbackCommands)==null?void 0:h.skipCommands,progressCommands:(R=v.playbackCommands)==null?void 0:R.progressCommands,Q8w:(T= v.playbackCommands)==null?void 0:T.clickthroughCommands,fullscreenCommands:(L=v.playbackCommands)==null?void 0:L.fullscreenCommands,activeViewViewableCommands:(O=v.playbackCommands)==null?void 0:O.activeViewViewableCommands,activeViewMeasurableCommands:(x=v.playbackCommands)==null?void 0:x.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(f=v.playbackCommands)==null?void 0:f.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(c=v.playbackCommands)== null?void 0:(b=c.activeViewTracking)==null?void 0:b.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(M=v.playbackCommands)==null?void 0:(Jw=M.activeViewTracking)==null?void 0:Jw.activeViewAudioMeasurableCommands,endFullscreenCommands:(Kf=v.playbackCommands)==null?void 0:Kf.endFullscreenCommands,abandonCommands:(j8=v.playbackCommands)==null?void 0:j8.abandonCommands,completeCommands:J}}; kpL=function(v,J,G,K,V,Y,r){return function(E,e){return XAt(v,e.slotId,E,Y,function(P,D){var t=e.layoutId;P=r(P);return W6(J,t,D,V,P,"LAYOUT_TYPE_SURVEY",[new tc(G),K],G.adLayoutLoggingData)})}}; acm=function(v,J,G,K,V,Y,r){if(!caf(v))return new Q("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:v});var E=v.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[N7U(Y,J,G,K,function(e){var P=e.slotId;e=r(e);P=CX(V.X.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",P);var D={layoutId:P,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",IY:"core"},t=new Uk(V.T,K);return{layoutId:P,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",bd:new Map,layoutExitNormalTriggers:[t], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],IY:"core",clientMetadata:new KX([new Bb(E)]),C0:e(D)}})]}; caf=function(v){v=g.N(v==null?void 0:v.additionalPlayerOverlay,Aas);if(!v)return!1;var J=v.slidingMessages;return v.title&&J&&J.length!==0?!0:!1}; Hpw=function(v,J,G,K,V){var Y;if((Y=v.playerOverlay)==null||!Y.instreamSurveyAdRenderer)return function(){return[]}; if(!hVm(v))return function(){return new Q("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:v})}; var r=v.playerOverlay.instreamSurveyAdRenderer,E=Me(r);return E<=0?function(){return new Q("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:r})}:function(e,P){var D=F88(e,G,K,function(t){var B=t.slotId; t=P(t);var I=QJ(r);B=CX(V.X.get(),"LAYOUT_TYPE_SURVEY",B);var h={layoutId:B,layoutType:"LAYOUT_TYPE_SURVEY",IY:"core"},R=new Uk(V.T,K),T=new ae(V.T,B),L=new Ci(V.T,B),O=new CMj(V.T);return{layoutId:B,layoutType:"LAYOUT_TYPE_SURVEY",bd:new Map,layoutExitNormalTriggers:[R,O],layoutExitSkipTriggers:[T],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[L],U$:[],IY:"core",clientMetadata:new KX([new DB(r),new b3(J),new cb(E/1E3),new Fx(I)]),C0:t(h),adLayoutLoggingData:r.adLayoutLoggingData}}); e=acm(v,G,D.slotId,K,V,e,P);return e instanceof Q?e:[D].concat(g.l(e))}}; i1w=function(v,J,G,K,V,Y,r){r=r===void 0?!1:r;var E=[];try{var e=[];if(G.renderer.linearAdSequenceRenderer)var P=function(R){R=Mum(R.slotId,G,J,V(R),K,Y,r);e=R.Vft;return R.Ds}; else if(G.renderer.instreamVideoAdRenderer)P=function(R){var T=R.slotId;R=V(R);var L=r,O=G.config.adPlacementConfig,x=QgL(O),f=x.bx,c=x.pA;x=G.renderer.instreamVideoAdRenderer;var b;if(x==null?0:(b=x.playerOverlay)==null?0:b.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var M=Ca(x,L);b=Math.min(f+M.videoLengthSeconds*1E3,c);L=new lv(0,[M.videoLengthSeconds]);c=M.videoLengthSeconds;var Jw=M.playerVars,Kf=M.instreamAdPlayerOverlayRenderer,j8=M.playerOverlayLayoutRenderer, a=M.adVideoId,C=W8w(G),d=M.bd;M=M.KH;var A=x==null?void 0:x.adLayoutLoggingData;x=x==null?void 0:x.sodarExtensionData;T=CX(J.X.get(),"LAYOUT_TYPE_MEDIA",T);var cF={layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA",IY:"core"};return{layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA",bd:d,layoutExitNormalTriggers:[new xT(J.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],IY:"core",clientMetadata:new KX([new oD(K),new pN(c),new LN(Jw),new Oz(f),new Uz(b),Kf&&new KN(Kf), j8&&new Vw(j8),new b3(O),new Gq(a),new iF(L),new ZB(C),x&&new wD(x),new sz({current:null}),new mv({}),new Qw(M)].filter(CPm)),C0:R(cF),adLayoutLoggingData:A}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var D=bpt(v,K,G.adSlotLoggingData,P);E.push(D);for(var t=g.n(e),B=t.next();!B.done;B=t.next()){var I=B.value,h=I(v,V);if(h instanceof Q)return h;E.push.apply(E,g.l(h))}}catch(R){return new Q(R,{errorMessage:R.message,AdPlacementRenderer:G,numberOfSurveyRenderers:jU8(G)})}return E}; jU8=function(v){v=(v.renderer.linearAdSequenceRenderer||{}).linearAds;return v!=null&&v.length?v.filter(function(J){var G,K;return((G=g.N(J,es))==null?void 0:(K=G.playerOverlay)==null?void 0:K.instreamSurveyAdRenderer)!=null}).length:0}; Mum=function(v,J,G,K,V,Y,r){var E=J.config.adPlacementConfig,e=QgL(E),P=e.bx,D=e.pA;e=(J.renderer.linearAdSequenceRenderer||{}).linearAds;if(e==null||!e.length)throw new TypeError("Expected linear ads");var t=[],B={y7:P,J5:0,WgB:t};e=e.map(function(h){return $x2(v,h,B,G,K,E,V,D,r)}).map(function(h,R){R=new lv(R,t); return h(R)}); var I=e.map(function(h){return h.mM}); return{Ds:vCU(G,v,P,I,E,W8w(J),K,D,Y),Vft:e.map(function(h){return h.aIH})}}; $x2=function(v,J,G,K,V,Y,r,E,e){var P=Ca(g.N(J,es),e),D=G.y7,t=G.J5,B=Math.min(D+P.videoLengthSeconds*1E3,E);G.y7=B;G.J5++;G.WgB.push(P.videoLengthSeconds);var I,h,R=(I=g.N(J,es))==null?void 0:(h=I.playerOverlay)==null?void 0:h.instreamSurveyAdRenderer;if(P.adVideoId==="nPpU29QrbiU"&&R==null)throw new TypeError("Survey slate media has no survey overlay");return function(T){ao(P.playerVars,T);var L,O,x=P.videoLengthSeconds,f=P.playerVars,c=P.bd,b=P.KH,M=P.instreamAdPlayerOverlayRenderer,Jw=P.playerOverlayLayoutRenderer, Kf=P.adVideoId,j8=(L=g.N(J,es))==null?void 0:L.adLayoutLoggingData;L=(O=g.N(J,es))==null?void 0:O.sodarExtensionData;O=CX(K.X.get(),"LAYOUT_TYPE_MEDIA",v);var a={layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA",IY:"adapter"};T={layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA",bd:c,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],IY:"adapter",clientMetadata:new KX([new oD(r),new pN(x),new LN(f),new Oz(D),new Uz(B),new x8(t),new sz({current:null}), M&&new KN(M),Jw&&new Vw(Jw),new b3(Y),new Gq(Kf),new iF(T),L&&new wD(L),R&&new MY(R),new mv({}),new Qw(b)].filter(CPm)),C0:V(a),adLayoutLoggingData:j8};x=Hpw(g.N(J,es),Y,r,T.layoutId,K);return{mM:T,aIH:x}}}; Ca=function(v,J){if(!v)throw new TypeError("Expected instream video ad renderer");if(!v.playerVars)throw new TypeError("Expected player vars in url encoded string");var G=Jh(v.playerVars),K=Number(G.length_seconds);if(isNaN(K))throw new TypeError("Expected valid length seconds in player vars");var V=Number(v.trimmedMaxNonSkippableAdDurationMs);K=isNaN(V)?K:Math.min(K,V/1E3);V=v.playerOverlay||{};V=V.instreamAdPlayerOverlayRenderer===void 0?null:V.instreamAdPlayerOverlayRenderer;var Y=v.playerOverlay|| {};Y=Y.playerOverlayLayoutRenderer===void 0?null:Y.playerOverlayLayoutRenderer;var r=G.video_id;r||(r=(r=v.externalVideoId)?r:void 0);if(!r)throw new TypeError("Expected valid video id in IVAR");if(J&&K===0){var E;J=(E=JJr[r])!=null?E:K}else J=K;return{playerVars:G,videoLengthSeconds:J,instreamAdPlayerOverlayRenderer:V,playerOverlayLayoutRenderer:Y,adVideoId:r,bd:v.pings?LT(v.pings):new Map,KH:pT(v.pings)}}; W8w=function(v){v=Number(v.driftRecoveryMs);return isNaN(v)||v<=0?null:v}; QgL=function(v){var J=v.adTimeOffset||{};v=J.offsetEndMilliseconds;J=Number(J.offsetStartMilliseconds);if(isNaN(J))throw new TypeError("Expected valid start offset");v=Number(v);if(isNaN(v))throw new TypeError("Expected valid end offset");return{bx:J,pA:v}}; GMf=function(v){var J,G=(J=VW(v.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:J.current;if(!G)return null;J=VW(v.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var K=v.layoutId,V=VW(v.clientMetadata,"metadata_type_content_cpn"),Y=VW(v.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),r=VW(v.clientMetadata,"metadata_type_player_underlay_renderer"),E=VW(v.clientMetadata,"metadata_type_ad_placement_config"),e=VW(v.clientMetadata,"metadata_type_video_length_seconds"); var P=v5(v.clientMetadata,"metadata_type_layout_enter_ms")&&v5(v.clientMetadata,"metadata_type_layout_exit_ms")?(VW(v.clientMetadata,"metadata_type_layout_exit_ms")-VW(v.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{KO:K,contentCpn:V,Lp:G,t_:J,instreamAdPlayerOverlayRenderer:Y,instreamAdPlayerUnderlayRenderer:r,adPlacementConfig:E,videoLengthSeconds:e,Ax:P,inPlayerLayoutId:VW(v.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:VW(v.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; V9w=function(v,J,G,K,V,Y,r,E,e,P,D,t,B,I,h){K=I8(K,"SLOT_TYPE_PLAYER_BYTES");v=oCs(V,v,r,G,K,e,P);if(v instanceof Q)return v;var R;P=(R=VW(v.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:R.layoutId;if(!P)return new Q("Invalid adNotify layout");J=Kwm(P,V,Y,G,E,J,e,D,t,B,I,h,r);return J instanceof Q?J:[v].concat(g.l(J))}; Kwm=function(v,J,G,K,V,Y,r,E,e,P,D,t,B){G=Yew(J,G,K,Y,r,E,e,P,D,t,B);if(G instanceof Q)return G;v=rJX(J,v,r,V,G);return v instanceof Q?v:[].concat(g.l(v.RR),[v.MF])}; ECj=function(v,J,G,K,V,Y,r,E,e,P,D,t,B,I){J=Yew(v,J,G,V,Y,E,e,P,D,t,B,I);if(J instanceof Q)return J;v=qeL(v,G,Y,r,K,E.yn,J);return v instanceof Q?v:v.RR.concat(v.MF)}; Yew=function(v,J,G,K,V,Y,r,E,e,P,D,t){var B=bu(K,G,P);return B instanceof o_?new Q(B):P.S.B().experiments.OB("html5_refactor_in_player_slot_generation")?function(I){var h=new lv(0,[B.g8]);I=eKt(J,B.layoutId,B.hJ,G,je(B.playerVars,B.cX,Y,e,h),B.g8,V,h,r(I),E.get(B.hJ.externalVideoId),t);h=[];if(B.hJ.playerOverlay.instreamAdPlayerOverlayRenderer){var R=GMf(I);if(!R)return Ps("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,I),{layout:I,RR:[]}; h=[P3r(v,R.contentCpn,R.KO,function(L){return iz(J,L.slotId,"core",R,P5(D,L))},R.inPlayerSlotId)].concat(g.l(h)); if(R.instreamAdPlayerUnderlayRenderer&&$R(P)){var T=R.instreamAdPlayerUnderlayRenderer;h=[DxU(v,R.contentCpn,R.KO,function(L){return t92(J,L.slotId,T,R.adPlacementConfig,R.KO,P5(D,L))})].concat(g.l(h))}}return{layout:I, RR:h}}:function(I){var h=new lv(0,[B.g8]); return{layout:eKt(J,B.layoutId,B.hJ,G,je(B.playerVars,B.cX,Y,e,h),B.g8,V,h,r(I),E.get(B.hJ.externalVideoId),t),RR:[]}}}; bu=function(v,J,G){if(!v.playerVars)return new o_("No playerVars available in InstreamVideoAdRenderer.");var K,V;if(v.elementId==null||v.playerVars==null||v.playerOverlay==null||((K=v.playerOverlay)==null?void 0:K.instreamAdPlayerOverlayRenderer)==null&&((V=v.playerOverlay)==null?void 0:V.playerOverlayLayoutRenderer)==null||v.pings==null||v.externalVideoId==null)return new o_("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:v});K=Jh(v.playerVars);V=Number(K.length_seconds); isNaN(V)&&(V=0,Ps("Expected valid length seconds in player vars but got NaN"));if(G.SK(J.kind==="AD_PLACEMENT_KIND_START")){if(v.layoutId===void 0)return new o_("Expected server generated layout ID in instreamVideoAdRenderer");J=v.layoutId}else J=v.elementId;return{layoutId:J,hJ:v,playerVars:K,cX:v.playerVars,g8:V}}; je=function(v,J,G,K,V){v.iv_load_policy=K;J=Jh(J);if(J.cta_conversion_urls)try{v.cta_conversion_urls=JSON.parse(J.cta_conversion_urls)}catch(Y){Ps(Y)}G.Fz&&(v.ctrl=G.Fz);G.XB&&(v.ytr=G.XB);G.zE&&(v.ytrcc=G.zE);G.isMdxPlayback&&(v.mdx="1");v.vvt&&(v.vss_credentials_token=v.vvt,G.mx&&(v.vss_credentials_token_type=G.mx),G.mdxEnvironment&&(v.mdx_environment=G.mdxEnvironment));ao(v,V);return v}; Bqw=function(v){var J=new Map;v=g.n(v);for(var G=v.next();!G.done;G=v.next())(G=G.value.renderer.remoteSlotsRenderer)&&G.hostElementId&&J.set(G.hostElementId,G);return J}; vg=function(v){return v.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; I2F=function(v){return v!=null}; l2B=function(v,J,G,K,V,Y,r,E,e,P,D,t,B,I){for(var h=[],R=g.n(v),T=R.next();!T.done;T=R.next())if(T=T.value,!ql2(T)&&!tur(T)){var L=vg(T)&&!!T.slotEntryTrigger.beforeContentVideoIdStartedTrigger,O=e.SK(L),x=hKw(T,P,K,G.rP,O);if(x instanceof Q)return x;var f=void 0,c={slotId:T.adSlotMetadata.slotId,slotType:T.adSlotMetadata.slotType,slotPhysicalPosition:(f=T.adSlotMetadata.slotPhysicalPosition)!=null?f:1,IY:"core",slotEntryTrigger:x.slotEntryTrigger,slotFulfillmentTriggers:x.slotFulfillmentTriggers, slotExpirationTriggers:x.slotExpirationTriggers},b=g.N(T.fulfillmentContent.fulfilledLayout,Io);if(b){if(!B6(b))return new Q("Invalid PlayerBytesAdLayoutRenderer");f=t&&!(vg(T)&&T.slotEntryTrigger.beforeContentVideoIdStartedTrigger);x=x.slotFulfillmentTriggers.some(function(M){return M instanceof mN}); O=f?zKX(c,T.adSlotMetadata.triggerEvent,b,G,K,Y,P,v,O,B,x,I):nCm(c,T.adSlotMetadata.triggerEvent,b,J,G,K,V,Y,r,E,e,P,v,D,O,T.adSlotMetadata.triggeringSourceLayoutId);if(O instanceof Q)return O;x=[];vg(T)&&x.push(new iE({qV:vg(T)&&!!T.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));f&&x.push(new mv({}));G.yn&&x.push(new Hb({}));x.push(new bF(L));T=Object.assign({},c,{clientMetadata:new KX(x),fulfilledLayout:O.layout,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});h.push.apply(h,g.l(O.RR)); h.push(T)}else if(L=g.N(T.fulfillmentContent.fulfilledLayout,wc)){if(!ra8(L))return new Q("Invalid PlayerUnderlayAdLayoutRenderer");L=dxL(L,K,G.rP,Y,c,T.adSlotMetadata.triggerEvent,T.adSlotMetadata.triggeringSourceLayoutId);if(L instanceof Q)return L;T=Object.assign({},c,{clientMetadata:new KX([]),fulfilledLayout:L,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});h.push(T)}else if(L=g.N(T.fulfillmentContent.fulfilledLayout,eV8)){if(!$ds(L))return new Q("Invalid AboveFeedAdLayoutRenderer");L= sUU(L,K,G.rP,Y,c,T.adSlotMetadata.triggerEvent,T.adSlotMetadata.triggeringSourceLayoutId);if(L instanceof Q)return L;T=Object.assign({},c,{clientMetadata:new KX([]),fulfilledLayout:L,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});h.push(T)}else if(L=g.N(T.fulfillmentContent.fulfilledLayout,PPr)){if(!iu(L.adLayoutMetadata)||!g.N(L.renderingContent,$c))return new Q("Invalid BelowPlayerAdLayoutRenderer");L=sUU(L,K,G.rP,Y,c,T.adSlotMetadata.triggerEvent,T.adSlotMetadata.triggeringSourceLayoutId); if(L instanceof Q)return L;T=Object.assign({},c,{clientMetadata:new KX([]),fulfilledLayout:L,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});h.push(T)}else if(L=g.N(T.fulfillmentContent.fulfilledLayout,OR)){if(!zC(L))return new Q("Invalid PlayerBytesSequenceItemAdLayoutRenderer");L=RKm(L,K,G.rP,Y,c,T.adSlotMetadata.triggerEvent);if(L instanceof Q)return L;T=Object.assign({},c,{clientMetadata:new KX([]),fulfilledLayout:L,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});h.push(T)}else return new Q("Unable to retrieve a client slot ["+ c.slotType+"] from a given AdSlotRenderer")}return h}; RKm=function(v,J,G,K,V,Y){var r={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType,IY:"core"};J=JX(v,J,G);return J instanceof Q?J:(G=g.N(v.renderingContent,h2))&&G.pings?Object.assign({},r,{renderingContent:v.renderingContent,bd:LT(G.pings)},J,{C0:P5(K,V)(r),clientMetadata:new KX([new b3(Gd(Y))]),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData}):new Q("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; sUU=function(v,J,G,K,V,Y,r){var E={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType,IY:"core"};J=JX(v,J,G);if(J instanceof Q)return J;G=[];G.push(new b3(Gd(Y)));Y==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&r!==void 0&&G.push(new ID(r));return Object.assign({},E,{renderingContent:v.renderingContent,bd:new Map([["impression",TqF(v)]])},J,{C0:P5(K,V)(E),clientMetadata:new KX(G),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData})}; dxL=function(v,J,G,K,V,Y,r){if(v.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(r=g.N(v.renderingContent,na))if(r=g.N(r.sidePanel,VuX)){var E={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType,IY:"core"};J=JX(v,J,G);v=J instanceof Q?J:Object.assign({},E,{renderingContent:v.renderingContent,bd:new Map([["impression",r.impressionPings||[]],["resume",r.resumePings||[]]])},J,{C0:P5(K,V)(E),clientMetadata:new KX([new b3(Gd(Y))]),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData})}else v= new Q("DismissablePanelTextPortraitImageRenderer is missing");else v=new Q("SqueezebackPlayerSidePanelRenderer is missing");else v.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.N(v.renderingContent,GpX)?(r={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType,IY:"core"},J=JX(v,J,G),v=J instanceof Q?J:Object.assign({},r,{renderingContent:v.renderingContent,bd:new Map},J,{C0:P5(K,V)(r),clientMetadata:new KX([new b3(Gd(Y))]),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData})): v=new Q("CounterfactualRenderer is missing"):v.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?v=new Q("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):v.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?v=new Q("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):v.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.N(v.renderingContent,yJ)?(Y={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType, IY:"core"},J=JX(v,J,G),v=J instanceof Q?J:r?Object.assign({},Y,{renderingContent:v.renderingContent,bd:new Map},J,{C0:P5(K,V)(Y),clientMetadata:new KX([new ID(r)]),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData}):new Q("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):v=new Q("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):v.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.N(v.renderingContent,ovf)? (Y={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType,IY:"core"},J=JX(v,J,G),v=J instanceof Q?J:Object.assign({},Y,{renderingContent:v.renderingContent,bd:new Map([])},J,{C0:P5(K,V)(Y),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new KX([])})):v=new Q("AdsEngagementPanelSectionListViewModel is missing"):v=new Q("LayoutType ["+v.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return v}; zKX=function(v,J,G,K,V,Y,r,E,e,P,D,t){if((t==null?void 0:t.N_)===void 0||(t==null?void 0:t.hn)===void 0)return new Q("Cached ad break range from cue point is missing");var B=JX(G,V,K.rP);if(B instanceof Q)return B;B={layoutExitMuteTriggers:[],layoutExitNormalTriggers:B.layoutExitNormalTriggers,layoutExitSkipTriggers:[],U$:[],layoutExitUserInputSubmittedTriggers:[]};if(g.N(G.renderingContent,es))return v=pnj(v,J,G,B,V,Y,E,e,K.rP,r,t.N_,t.hn),v instanceof Q?v:v.x5===void 0?new Q("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:v.layout,RR:[v.x5]};var I=g.N(G.renderingContent,qe);if(I){if(!iu(G.adLayoutMetadata))return new Q("Invalid ad layout metadata");if(!ER(I))return new Q("Invalid sequential layout");I=I.sequentialLayouts.map(function(h){return h.playerBytesAdLayoutRenderer}); v=LwF(v,J,G,B,I,V,K,Y,r,e,E,P,t.N_,t.hn,D);return v instanceof Q?v:{layout:v.le,RR:v.RR}}return new Q("Not able to convert a sequential layout")}; LwF=function(v,J,G,K,V,Y,r,E,e,P,D,t,B,I,h){var R=yJU(V,B,I);if(R instanceof Q)return R;var T=[],L=[];R=g.n(R);for(var O=R.next();!O.done;O=R.next()){var x=O.value;O=v;var f=V[x.J5],c=x,b=J;x=Y;var M=r,Jw=E,Kf=e,j8=P,a=D,C=ou(f);if(C instanceof Q)O=C;else{var d={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,IY:"adapter"};c=wns(b,f,c,x);c instanceof Q?O=c:(O=Object.assign({},d,K3,{bd:C,renderingContent:f.renderingContent,clientMetadata:new KX(c),C0:P5(Jw,O)(d),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData}), O=(f=VT(a,O,x,M.rP,Jw,Kf,j8,void 0,!0))?f instanceof Q?f:{layout:O,x5:f}:new Q("Expecting associatedInPlayerSlot"))}if(O instanceof Q)return O;T.push(O.layout);L.push(O.x5)}V={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,IY:"core"};J=[new ZB(Number(G.driftRecoveryMs)),new Oz(B),new Uz(I),new b3(Gd(J)),new CN(t),new mv({})];h&&J.push(new $d({}));return{le:Object.assign({},V,K,{jO:T,bd:new Map,clientMetadata:new KX(J),C0:P5(E,v)(V)}),RR:L}}; pnj=function(v,J,G,K,V,Y,r,E,e,P,D,t){if(!B6(G))return new Q("Invalid PlayerBytesAdLayoutRenderer");var B=ou(G);if(B instanceof Q)return B;var I={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,IY:"core"},h=g.N(G.renderingContent,es);if(!h)return new Q("Invalid rendering content for DAI media layout");h=Ca(h,!1);D={t2:h,J5:0,y7:D,x9:Math.min(D+h.videoLengthSeconds*1E3,t),d8:new lv(0,[h.videoLengthSeconds])};var R;t=(R=Number(G.driftRecoveryMs))!=null?R:void 0;J=wns(J, G,D,V,t);if(J instanceof Q)return J;v=Object.assign({},I,K,{bd:B,renderingContent:G.renderingContent,clientMetadata:new KX(J),C0:P5(Y,v)(I),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData});return(V=VT(r,v,V,e,Y,P,E,void 0,!0))?V instanceof Q?V:{layout:v,x5:V}:new Q("Expecting associatedInPlayerSlot")}; nCm=function(v,J,G,K,V,Y,r,E,e,P,D,t,B,I,h,R){var T=JX(G,Y,V.rP);if(T instanceof Q)return T;if(g.N(G.renderingContent,es)){e=O1w([G],V,e);if(e instanceof Q)return e;if(e.length!==1)return new Q("Only expected one media layout.");v=UxB(v,J,G,T,e[0],void 0,"core",K,Y,r,E,P,B,I,h,V.rP,t,void 0,R);return v instanceof Q?v:{layout:v.layout,RR:v.x5?[v.x5]:[]}}var L=g.N(G.renderingContent,qe);if(L){if(!iu(G.adLayoutMetadata))return new Q("Invalid ad layout metadata");if(!ER(L))return new Q("Invalid sequential layout"); L=L.sequentialLayouts.map(function(O){return O.playerBytesAdLayoutRenderer}); v=xxB(v,J,G.adLayoutMetadata,T,L,K,Y,V,e,r,E,P,D,t,h,B,I,R);return v instanceof Q?v:{layout:v.le,RR:v.RR}}return new Q("Not able to convert a sequential layout")}; xxB=function(v,J,G,K,V,Y,r,E,e,P,D,t,B,I,h,R,T,L){var O=new Jc({current:null}),x=O1w(V,E,e);if(x instanceof Q)return x;e=[];for(var f=[],c=void 0,b=0;b0&&(b.push(L),b.push(new vb(c.adPodSkipTarget)));(Y=P.get(c.externalVideoId))&&b.push(new k8(Y));Y=b}else Y=new Q("Invalid vod media renderer")}if(Y instanceof Q)return Y;v=Object.assign({},r,K,{bd:x,renderingContent:G.renderingContent,clientMetadata:new KX(Y),C0:P5(D,v)(r),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData});G=g.N(G.renderingContent,es);if(!G||!rc(G))return new Q("Invalid meida renderer");t=FR(t,G.externalVideoId);t.instreamVideoAdRenderer=G;t.dN="AD_PLACEMENT_KIND_START";return I?(e=VT(B,v,e,R,D,T,h,L,!1),e instanceof Q?e:f2B(v.layoutId,B)&&e?{layout:Object.assign({},v,{clientMetadata:new KX(Y.concat(new qY(e)))})}:{layout:v,x5:e}): {layout:v}}; mxB=function(v,J,G,K,V){if(!B6(J))return new Q("Invalid PlayerBytesAdLayoutRenderer");var Y=g.N(J.renderingContent,q9);if(!Y||Y.durationMilliseconds===void 0)return new Q("Invalid endcap renderer");var r={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,IY:"adapter"};K=[new NY(Y.durationMilliseconds),new Fx({impressionCommands:void 0,abandonCommands:Y.abandonCommands?[{commandExecutorCommand:Y.abandonCommands}]:void 0,completeCommands:Y.completionCommands}),new b3(K), new zq("LAYOUT_TYPE_ENDCAP")];if(V){K.push(new $8(V.d8.adPodIndex-1));K.push(new x8(V.d8.adPodIndex));var E;K.push(new vb((E=V.adPodSkipTarget)!=null?E:-1))}return Object.assign({},r,K3,{renderingContent:J.renderingContent,clientMetadata:new KX(K),bd:Y.skipPings?new Map([["skip",Y.skipPings]]):new Map,C0:P5(G,v)(r),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData})}; VT=function(v,J,G,K,V,Y,r,E,e){v=v.filter(function(D){return D.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&D.adSlotMetadata.triggeringSourceLayoutId===J.layoutId}); if(v.length!==0){if(v.length!==1)return new Q("Invalid InPlayer slot association for the given PlayerBytes layout");v=v[0];r=hKw(v,Y,G,K,r);if(r instanceof Q)return r;var P;Y={slotId:v.adSlotMetadata.slotId,slotType:v.adSlotMetadata.slotType,slotPhysicalPosition:(P=v.adSlotMetadata.slotPhysicalPosition)!=null?P:1,IY:"core",slotEntryTrigger:r.slotEntryTrigger,slotFulfillmentTriggers:r.slotFulfillmentTriggers,slotExpirationTriggers:r.slotExpirationTriggers};P=g.N(v.fulfillmentContent.fulfilledLayout, Evm);if(!P||!Jaw(P))return new Q("Invalid InPlayerAdLayoutRenderer");r={layoutId:P.adLayoutMetadata.layoutId,layoutType:P.adLayoutMetadata.layoutType,IY:"core"};G=JX(P,G,K);if(G instanceof Q)return G;K=[];e&&K.push(new mv({}));if(P.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")K.push.apply(K,g.l(Z1B(v.adSlotMetadata.triggerEvent,J)));else if(P.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")K.push(new b3(Gd(v.adSlotMetadata.triggerEvent))),E&&K.push(E);else return new Q("Not able to parse an SDF InPlayer layout"); V=Object.assign({},r,G,{renderingContent:P.renderingContent,bd:new Map,C0:P5(V,Y)(r),clientMetadata:new KX(K),adLayoutLoggingData:P.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},Y,{fulfilledLayout:V,clientMetadata:new KX([])})}}; Z1B=function(v,J){var G=[];G.push(new b3(Gd(v)));G.push(new ID(J.layoutId));(v=VW(J.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&G.push(new sz(v));(v=VW(J.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&G.push(new Jc(v));(v=VW(J.clientMetadata,"metadata_type_remote_slots_data"))&&G.push(new k8(v));(v=VW(J.clientMetadata,"metadata_type_ad_next_params"))&&G.push(new aU(v));(v=VW(J.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&G.push(new AJ(v));(v= VW(J.clientMetadata,"metadata_type_ad_pod_info"))&&G.push(new iF(v));(J=VW(J.clientMetadata,"metadata_type_ad_video_id"))&&G.push(new Gq(J));return G}; Ser=function(v,J,G,K,V,Y){function r(P){return YR(J,P)} var E=K.Me.inPlayerSlotId,e={layoutId:K.Me.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",IY:"core"};G={slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,IY:"core",slotEntryTrigger:new wB(r,v),slotFulfillmentTriggers:[new AY(r,E)],slotExpirationTriggers:[new FZ(r,E),new cD(r,G)]};v=Object.assign({},e,{layoutExitNormalTriggers:[new Uk(r,v)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],bd:new Map,clientMetadata:new KX([new ea(K.Me), new b3(K.adPlacementConfig),V]),C0:P5(Y,G)(e),adLayoutLoggingData:K.Me.adLayoutLoggingData});return Object.assign({},G,{clientMetadata:new KX([new uF(v)])})}; f2B=function(v,J){J=g.n(J);for(var G=J.next();!G.done;G=J.next())if(G=G.value,G.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var K=g.N(G.fulfillmentContent.fulfilledLayout,wc);if(K&&(K=g.N(K.renderingContent,na))&&K.associatedPlayerBytesLayoutId===v)return G}}; hKw=function(v,J,G,K,V){var Y=ugt(Ne(v.slotEntryTrigger,G,K),V,v,J);if(Y instanceof Q)return Y;for(var r=[],E=g.n(v.slotFulfillmentTriggers),e=E.next();!e.done;e=E.next()){e=Ne(e.value,G,K);if(e instanceof Q)return e;r.push(e)}r=gCw(r,V,v,J);J=[];v=g.n(v.slotExpirationTriggers);for(V=v.next();!V.done;V=v.next()){V=Ne(V.value,G,K);if(V instanceof Q)return V;J.push(V)}return{slotEntryTrigger:Y,slotFulfillmentTriggers:r,slotExpirationTriggers:J}}; ugt=function(v,J,G,K){return J&&G.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&v instanceof T4?new Re(function(V){return YR(K,V)},G.adSlotMetadata.slotId):v}; gCw=function(v,J,G,K){return J&&G.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?v.map(function(V){return V instanceof AY?new Qx(function(Y){return YR(K,Y)},G.adSlotMetadata.slotId):V}):v}; JX=function(v,J,G){for(var K=[],V=g.n(v.layoutExitNormalTriggers||[]),Y=V.next();!Y.done;Y=V.next()){Y=Ne(Y.value,J,G);if(Y instanceof Q)return Y;K.push(Y)}V=[];Y=g.n(v.layoutExitSkipTriggers||[]);for(var r=Y.next();!r.done;r=Y.next()){r=Ne(r.value,J,G);if(r instanceof Q)return r;V.push(r)}Y=[];r=g.n(v.layoutExitMuteTriggers||[]);for(var E=r.next();!E.done;E=r.next()){E=Ne(E.value,J,G);if(E instanceof Q)return E;Y.push(E)}r=[];v=g.n(v.layoutExitUserInputSubmittedTriggers||[]);for(E=v.next();!E.done;E= v.next()){E=Ne(E.value,J,G);if(E instanceof Q)return E;r.push(E)}return{layoutExitNormalTriggers:K,layoutExitSkipTriggers:V,layoutExitMuteTriggers:Y,layoutExitUserInputSubmittedTriggers:r,U$:[]}}; ou=function(v){var J=g.N(v.renderingContent,es);if(J==null?0:J.pings)return LT(J.pings);v=g.N(v.renderingContent,q9);return(v==null?0:v.skipPings)?new Map([["skip",v.skipPings]]):new Map}; wns=function(v,J,G,K,V){J=g.N(J.renderingContent,es);if(!J)return new Q("Invalid rendering content for DAI media layout");v=[new oD(K),new pN(G.t2.videoLengthSeconds),new LN(G.t2.playerVars),new Oz(G.y7),new Uz(G.x9),new x8(G.J5),new b3(Gd(v)),new Gq(G.t2.adVideoId),new iF(G.d8),J.sodarExtensionData&&new wD(J.sodarExtensionData),new sz({current:null}),new mv({}),new Qw(pT(J.pings))].filter(I2F);V!==void 0&&v.push(new ZB(V));return v}; yJU=function(v,J,G){v=v.map(function(e){return Ca(g.N(e.renderingContent,es),!1)}); var K=v.map(function(e){return e.videoLengthSeconds}),V=K.map(function(e,P){return new lv(P,K)}),Y=J,r=G,E=[]; v.forEach(function(e,P){r=Math.min(Y+e.videoLengthSeconds*1E3,G);ao(e.playerVars,V[P]);E.push({t2:e,y7:Y,x9:r,J5:P,d8:V[P]});Y=r}); return E}; O1w=function(v,J,G){for(var K=[],V=g.n(v),Y=V.next();!Y.done;Y=V.next())if(Y=g.N(Y.value.renderingContent,es)){if(!rc(Y))return new Q("Invalid vod media renderer");K.push(Xnm(Y))}V=K.map(function(t){return t.g8}); Y=[];for(var r=0,E=0;E0?j8:-1;else if(d=g.N(C,q9)){C=C3w(v,J,G,d,Y,R,E,M,j8);if(C instanceof Q){I= C;break a}C=C(B);T.push(C.It);L=[].concat(g.l(C.ao),g.l(L));O=[].concat(g.l(C.Rv),g.l(O));C.x5&&(Kf=[C.x5].concat(g.l(Kf)))}else if(d=g.N(C,De)){if(I===void 0){I=new Q("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:d});break a}C=iNj(v,J,G,Y,d,b,E,I,R,W5(D,"supports_multi_step_on_desktop"));if(C instanceof Q){I=C;break a}C=C(B);T.push(C.It);C.x5&&Kf.push(C.x5);L=[].concat(g.l(C.ao),g.l(L));O=[].concat(g.l(C.Rv),g.l(O));x=[].concat(g.l(C.Hl),g.l(x)); f=[].concat(g.l(C.E_),g.l(f));c=[b].concat(g.l(c))}else if(C=g.N(C,t2)){C=$YB(v,J,G,Y,C,b,E,R);if(C instanceof Q){I=C;break a}C=C(B);T.push(C.It);C.x5&&Kf.push(C.x5);O=[].concat(g.l(C.Rv),g.l(O))}else{I=new Q("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}I={jO:T,layoutExitSkipTriggers:L,layoutExitUserInputSubmittedTriggers:x,U$:f,layoutExitMuteTriggers:O,f4:c,RR:Kf}}}else a:if(R=rcs(K,G,D),R instanceof Q)I=R;else{T=0;L=[];O=[];x=[];f=[];c=[];b=[];M=new RD({current:null});Jw=new Jc({current:null}); Kf=!1;a=[];j8=-1;h=g.n(K);for(C=h.next();!C.done;C=h.next())if(C=C.value,g.N(C,P6)){C=b1X(J,G,g.N(C,P6),E);if(C instanceof Q){I=C;break a}C=C(B);L.push(C.It);O=[].concat(g.l(C.ao),g.l(O));x=[].concat(g.l(C.Rv),g.l(x));C.x5&&(a=[C.x5].concat(g.l(a)))}else if(g.N(C,es)){j8=bu(g.N(C,es),G,D);if(j8 instanceof o_){I=new Q(j8);break a}C=new lv(T,R);C=qz2(J,j8.layoutId,j8.hJ,G,je(j8.playerVars,j8.cX,r,P,C),j8.g8,Y,C,E(B),Jw,e.get(j8.hJ.externalVideoId),void 0,t);T++;L.push(C.It);O=[].concat(g.l(C.ao),g.l(O)); x=[].concat(g.l(C.Rv),g.l(x));Kf||(b.push(Jw),Kf=!0);j8=(j8=j8.hJ.adPodSkipTarget)&&j8>0?j8:-1}else if(g.N(C,q9)){C=C3w(v,J,G,g.N(C,q9),Y,T,E,Jw,j8);if(C instanceof Q){I=C;break a}C=C(B);L.push(C.It);O=[].concat(g.l(C.ao),g.l(O));x=[].concat(g.l(C.Rv),g.l(x));C.x5&&(a=[C.x5].concat(g.l(a)))}else if(g.N(C,De)){if(I===void 0){I=new Q("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.N(C,De)});break a}C=iNj(v,J,G,Y,g.N(C,De),M,E,I,T,W5(D,"supports_multi_step_on_desktop")); if(C instanceof Q){I=C;break a}C=C(B);L.push(C.It);C.x5&&a.push(C.x5);O=[].concat(g.l(C.ao),g.l(O));x=[].concat(g.l(C.Rv),g.l(x));f=[].concat(g.l(C.Hl),g.l(f));c=[].concat(g.l(C.E_),g.l(c));b=[M].concat(g.l(b))}else if(g.N(C,t2)){C=$YB(v,J,G,Y,g.N(C,t2),M,E,T);if(C instanceof Q){I=C;break a}C=C(B);L.push(C.It);C.x5&&a.push(C.x5);x=[].concat(g.l(C.Rv),g.l(x))}else{I=new Q("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}I={jO:L,layoutExitSkipTriggers:O,layoutExitUserInputSubmittedTriggers:f, U$:c,layoutExitMuteTriggers:x,f4:b,RR:a}}I instanceof Q?B=I:(c=B.slotId,R=I.jO,T=I.layoutExitSkipTriggers,L=I.layoutExitMuteTriggers,O=I.layoutExitUserInputSubmittedTriggers,x=I.f4,B=E(B),f=V?V.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",c=V?V.layoutId:CX(J.X.get(),f,c),b={layoutId:c,layoutType:f,IY:"core"},B={layout:{layoutId:c,layoutType:f,bd:new Map,layoutExitNormalTriggers:[new kT(J.T,c)],layoutExitSkipTriggers:T,layoutExitMuteTriggers:L,layoutExitUserInputSubmittedTriggers:O,U$:[],IY:"core", clientMetadata:new KX([new lF(R)].concat(g.l(x))),C0:B(b)},RR:I.RR});return B}}; rcs=function(v,J,G){var K=[];v=g.n(v);for(var V=v.next();!V.done;V=v.next())if(V=V.value,g.N(V,es)){V=bu(g.N(V,es),J,G);if(V instanceof o_)return new Q(V);K.push(V.g8)}return K}; ea8=function(v,J,G,K,V,Y,r,E){if(!Icw(G,E===void 0?!1:E))return new Q("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:G});var e=Me(G);if(e<=0)return new Q("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:G});var P=new RD({current:null}),D=kpL(v,J,G,P,K,Y,r);return E8X(v,K,Y,e,V,function(t,B){var I=t.slotId,h=QJ(G);t=r(t);var R,T=(R=ee(J,K,G.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?R: CX(J.X.get(),"LAYOUT_TYPE_MEDIA_BREAK",I);I={layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",IY:"core"};R=D(T,B);var L=VW(R.clientMetadata,"metadata_type_fulfilled_layout");L||Ps("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");h=[new b3(K),new NY(e),new Fx(h),P];L&&h.push(new zq(L.layoutType));return{mie:{layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",bd:new Map,layoutExitNormalTriggers:[new kT(J.T,T)],layoutExitSkipTriggers:[new ae(J.T, B.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new Ci(J.T,B.layoutId)],U$:[],IY:"core",clientMetadata:new KX(h),C0:t(I)},Pww:R}})}; PF2=function(v){if(!nvs(v))return!1;var J=g.N(v.adVideoStart,Iu);return J?g.N(v.linearAd,es)&&VJ(J)?!0:(Ps("Invalid Sandwich with notify"),!1):!1}; DYw=function(v){if(v.linearAds==null)return!1;v=g.N(v.adStart,Iu);return v?VJ(v)?!0:(Ps("Invalid LASR with notify"),!1):!1}; tam=function(v){if(!zVL(v))return!1;v=g.N(v.adStart,Iu);return v?VJ(v)?!0:(Ps("Invalid LASR with notify"),!1):!1}; hX=function(v,J,G,K,V,Y,r,E,e,P){this.L=v;this.X=J;this.T=G;this.cH=K;this.X5=V;this.Z=Y;this.L7=r;this.Iv=E;this.hI=e;this.loadPolicy=P===void 0?1:P}; T7X=function(v,J,G,K,V,Y,r,E,e,P){var D=[];if(J.length===0&&K.length===0&&G.length===0)return D;J=J.filter(Yc);var t=G.filter(DdU),B=K.filter(Yc),I=new Map,h=Bqw(J),R=G.some(function(A){var cF;return(A==null?void 0:(cF=A.adSlotMetadata)==null?void 0:cF.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),T=G.some(function(A){var cF; return(A==null?void 0:(cF=A.adSlotMetadata)==null?void 0:cF.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),L=G.some(function(A){var cF; return(A==null?void 0:(cF=A.adSlotMetadata)==null?void 0:cF.slotType)==="SLOT_TYPE_IN_PLAYER"}),O=G.some(function(A){var cF,RL; return(A==null?void 0:(cF=A.adSlotMetadata)==null?void 0:cF.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(A==null?void 0:(RL=A.adSlotMetadata)==null?void 0:RL.slotType)==="SLOT_TYPE_ABOVE_FEED"}); G=G.some(function(A){var cF;return(A==null?void 0:(cF=A.adSlotMetadata)==null?void 0:cF.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(R||T||L||O||G)P=l2B(t,J,E,V,h,v.X5.get(),v.loadPolicy,I,v.cH.get(),v.L.get(),L,r,e,P),P instanceof Q?Ps(P,void 0,void 0,{contentCpn:V}):D.push.apply(D,g.l(P));P=g.n(J);for(G=P.next();!G.done;G=P.next())G=G.value,T=BDB(v,I,G,V,Y,r,R,E,h,e,t),T instanceof Q?Ps(T,void 0,void 0,{renderer:G.renderer,config:G.config.adPlacementConfig,kind:G.config.adPlacementConfig.kind,contentCpn:V,daiEnabled:r}):D.push.apply(D,g.l(T));IBL(v.cH.get())||(Y=ham(v,B,V,E,h,I),D.push.apply(D,g.l(Y)));if(v.Z===null||r&&!E.i_){var x, f,c;v=E.yn&&J.length===1&&((x=J[0].config)==null?void 0:(f=x.adPlacementConfig)==null?void 0:f.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((c=J[0].renderer)==null?void 0:c.adBreakServiceRenderer);if(!D.length&&!v){var b,M,Jw,Kf;Ps("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":J.length,contentCpn:V,"first APR kind":(b=J[0])==null?void 0:(M=b.config)==null?void 0:(Jw=M.adPlacementConfig)==null?void 0:Jw.kind,renderer:(Kf=J[0])==null?void 0: Kf.renderer})}return D}x=K.filter(Yc);D.push.apply(D,g.l(uts(I,x,v.X.get(),v.Z,V,R)));if(!D.length){var j8,a,C,d;Ps("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":J.length,contentCpn:V,daiEnabled:r.toString(),"first APR kind":(j8=J[0])==null?void 0:(a=j8.config)==null?void 0:(C=a.adPlacementConfig)==null?void 0:C.kind,renderer:(d=J[0])==null?void 0:d.renderer})}return D}; ham=function(v,J,G,K,V,Y){function r(B){return P5(v.X5.get(),B)} var E=[];J=g.n(J);for(var e=J.next();!e.done;e=J.next()){e=e.value;var P=e.renderer,D=P.sandwichedLinearAdRenderer,t=P.linearAdSequenceRenderer;D&&PF2(D)?(Ps("Found AdNotify with SandwichedLinearAdRenderer"),t=g.N(D.adVideoStart,Iu),D=g.N(D.linearAd,es),A2(Y,P,e.config.adPlacementConfig.kind),P=void 0,t=Kwm((P=t)==null?void 0:P.layout.layoutId,v.X.get(),v.T.get(),e.config.adPlacementConfig,e.adSlotLoggingData,D,G,K,r,V,v.loadPolicy,v.cH.get(),v.X5.get()),t instanceof Q?Ps(t):E.push.apply(E,g.l(t))): t&&(!t.adLayoutMetadata&&DYw(t)||t.adLayoutMetadata&&tam(t))&&(Ps("Found AdNotify with LinearAdSequenceRenderer"),A2(Y,P,e.config.adPlacementConfig.kind),P=void 0,D=v8F((P=g.N(t.adStart,Iu))==null?void 0:P.layout.layoutId,v.X.get(),v.T.get(),e.config.adPlacementConfig,e.adSlotLoggingData,t.linearAds,iu(t.adLayoutMetadata)?t.adLayoutMetadata:void 0,G,K,r,V,v.loadPolicy,v.cH.get()),D instanceof Q?Ps(D):E.push.apply(E,g.l(D)))}return E}; BDB=function(v,J,G,K,V,Y,r,E,e,P,D){function t(L){return P5(v.X5.get(),L)} var B=G.renderer,I=G.config.adPlacementConfig,h=I.kind,R=G.adSlotLoggingData,T=E.i_&&h==="AD_PLACEMENT_KIND_START";T=Y&&!T;if(B.adsEngagementPanelRenderer!=null)return H6(J,G.elementId,h,B.adsEngagementPanelRenderer.isContentVideoEngagementPanel,B.adsEngagementPanelRenderer.adVideoId,B.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,I,R,function(L,O,x,f){var c=v.T.get(),b=L.slotId,M=B.adsEngagementPanelRenderer;L=P5(v.X5.get(),L);return zd(c,b,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new cn(M),O,x,M.impressionPings,L,B.adsEngagementPanelRenderer.adLayoutLoggingData,f)}),[]; if(B.adsEngagementPanelLayoutViewModel)return H6(J,G.elementId,h,B.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,B.adsEngagementPanelLayoutViewModel.adVideoId,B.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,I,R,function(L,O,x,f){var c=v.T.get(),b=L.slotId,M=B.adsEngagementPanelLayoutViewModel;L=P5(v.X5.get(),L);return n3(c,b,"LAYOUT_TYPE_PANEL",new Nx(M),O,x,L,B.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,f)}),[]; if(B.actionCompanionAdRenderer!=null){if(B.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return xd2(v.X.get(),v.Z,v.T.get(),B.actionCompanionAdRenderer,I,R,K,t);H6(J,G.elementId,h,B.actionCompanionAdRenderer.isContentVideoCompanion,B.actionCompanionAdRenderer.adVideoId,B.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,I,R,function(L,O,x,f){var c=v.T.get(),b=L.slotId,M=B.actionCompanionAdRenderer;L=P5(v.X5.get(),L);return zd(c,b,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new Xg(M),O,x,M.impressionPings,L,B.actionCompanionAdRenderer.adLayoutLoggingData,f)})}else if(B.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(B.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return mdm(v.X.get(),v.Z,v.T.get(),B.topBannerImageTextIconButtonedLayoutViewModel,I,R,K,t); H6(J,G.elementId,h,B.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,B.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,B.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,I,R,function(L,O,x,f){var c=v.T.get(),b=L.slotId,M=B.topBannerImageTextIconButtonedLayoutViewModel;L=P5(v.X5.get(),L);return n3(c,b,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new kC(M),O,x,L,B.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,f)})}else if(B.imageCompanionAdRenderer)H6(J, G.elementId,h,B.imageCompanionAdRenderer.isContentVideoCompanion,B.imageCompanionAdRenderer.adVideoId,B.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,I,R,function(L,O,x,f){var c=v.T.get(),b=L.slotId,M=B.imageCompanionAdRenderer; L=P5(v.X5.get(),L);return zd(c,b,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Hn(M),O,x,M.impressionPings,L,B.imageCompanionAdRenderer.adLayoutLoggingData,f)}); else if(B.bannerImageLayoutViewModel)H6(J,G.elementId,h,B.bannerImageLayoutViewModel.isContentVideoCompanion,B.bannerImageLayoutViewModel.adVideoId,B.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,I,R,function(L,O,x,f){var c=v.T.get(),b=L.slotId,M=B.bannerImageLayoutViewModel;L=P5(v.X5.get(),L);return n3(c,b,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Mx(M),O,x,L,B.bannerImageLayoutViewModel.adLayoutLoggingData,f)}); else if(B.shoppingCompanionCarouselRenderer)H6(J,G.elementId,h,B.shoppingCompanionCarouselRenderer.isContentVideoCompanion,B.shoppingCompanionCarouselRenderer.adVideoId,B.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,I,R,function(L,O,x,f){var c=v.T.get(),b=L.slotId,M=B.shoppingCompanionCarouselRenderer;L=P5(v.X5.get(),L);return zd(c,b,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Qb(M),O,x,M.impressionPings,L,B.shoppingCompanionCarouselRenderer.adLayoutLoggingData,f)}); else if(B.adBreakServiceRenderer){if(!OpL(G))return[];if(h==="AD_PLACEMENT_KIND_PAUSE")return wAL(v.X.get(),I,R,G.renderer.adBreakServiceRenderer,K);if(h!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&h!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return yaB(v.X.get(),I,R,G.renderer.adBreakServiceRenderer,K,V,Y);E.yn||Ps("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:h,adPlacementConfig:I,daiEnabledForContentVideo:String(Y),isServedFromLiveInfra:String(E.yn),clientPlaybackNonce:E.clientPlaybackNonce}); if(h==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!v.L7)return new Q("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!v.hI)return new Q("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");v.hI.Ym({adPlacementRenderer:G,contentCpn:K,rP:V});V=v.L7.get().getCurrentTimeSec(1,!1);return zaw(v.X.get(),G.renderer.adBreakServiceRenderer,I,V,K,R,Y)}if(!v.Iv)return new Q("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); v.Iv.Ym({adPlacementRenderer:G,contentCpn:K,rP:V})}else{if(B.clientForecastingAdRenderer)return a2s(v.X.get(),v.T.get(),I,R,B.clientForecastingAdRenderer,K,V,t);if(B.invideoOverlayAdRenderer)return M9X(v.X.get(),v.T.get(),I,R,B.invideoOverlayAdRenderer,K,V,t);if(B.instreamAdPlayerOverlayRenderer)return Fw8(v.X.get(),v.T.get(),I,R,B.instreamAdPlayerOverlayRenderer,K,t);if((B.linearAdSequenceRenderer||B.instreamVideoAdRenderer)&&T)return i1w(v.X.get(),v.T.get(),G,K,t,P,!v.cH.get().S.B().C("html5_override_ad_video_length_killswitch")); if(B.linearAdSequenceRenderer&&!T){if(r)return[];A2(J,B,h);if(B.linearAdSequenceRenderer.adLayoutMetadata){if(!zVL(B.linearAdSequenceRenderer))return new Q("Received invalid LinearAdSequenceRenderer.")}else if(B.linearAdSequenceRenderer.linearAds==null)return new Q("Received invalid LinearAdSequenceRenderer.");if(g.N(B.linearAdSequenceRenderer.adStart,Iu)){Ps("Found AdNotify in LinearAdSequenceRenderer");G=g.N(B.linearAdSequenceRenderer.adStart,Iu);if(!vvw(G))return new Q("Invalid AdMessageRenderer."); Y=B.linearAdSequenceRenderer.linearAds;return JcX(v.L.get(),v.X.get(),v.T.get(),v.X5.get(),I,R,G,iu(B.linearAdSequenceRenderer.adLayoutMetadata)?B.linearAdSequenceRenderer.adLayoutMetadata:void 0,Y,K,V,E,t,e,v.loadPolicy,v.cH.get())}return YzL(v.X.get(),v.T.get(),I,R,B.linearAdSequenceRenderer.linearAds,iu(B.linearAdSequenceRenderer.adLayoutMetadata)?B.linearAdSequenceRenderer.adLayoutMetadata:void 0,K,V,E,t,e,v.loadPolicy,v.cH.get(),D)}if(!B.remoteSlotsRenderer||Y){if(B.instreamVideoAdRenderer&& !T){if(r)return[];A2(J,B,h);return ECj(v.X.get(),v.T.get(),I,R,B.instreamVideoAdRenderer,K,V,E,t,e,v.loadPolicy,v.cH.get(),v.X5.get(),D)}if(B.instreamSurveyAdRenderer)return ea8(v.X.get(),v.T.get(),B.instreamSurveyAdRenderer,I,R,K,t,W5(v.cH.get(),"supports_multi_step_on_desktop"));if(B.sandwichedLinearAdRenderer!=null)return nvs(B.sandwichedLinearAdRenderer)?g.N(B.sandwichedLinearAdRenderer.adVideoStart,Iu)?(Ps("Found AdNotify in SandwichedLinearAdRenderer"),G=g.N(B.sandwichedLinearAdRenderer.adVideoStart, Iu),vvw(G)?(Y=g.N(B.sandwichedLinearAdRenderer.linearAd,es))?V9w(G,Y,I,v.L.get(),v.X.get(),v.T.get(),v.X5.get(),R,K,V,E,t,e,v.loadPolicy,v.cH.get()):new Q("Missing IVAR from Sandwich"):new Q("Invalid AdMessageRenderer.")):YzL(v.X.get(),v.T.get(),I,R,[B.sandwichedLinearAdRenderer.adVideoStart,B.sandwichedLinearAdRenderer.linearAd],void 0,K,V,E,t,e,v.loadPolicy,v.cH.get()):new Q("Received invalid SandwichedLinearAdRenderer.");if(B.videoAdTrackingRenderer!=null)return cJF(v.X.get(),v.T.get(),B.videoAdTrackingRenderer, I,R,K,V,E.N5,t)}}return[]}; d2=function(v,J,G,K,V,Y,r,E){g.X.call(this);var e=this;this.X=v;this.Z=J;this.Vj=K;this.L7=V;this.cH=Y;this.F4=r;this.pK=E;this.T=null;G.get().addListener(this);this.addOnDisposeCallback(function(){G.Sl()||G.get().removeListener(e)}); K.get().addListener(this);this.addOnDisposeCallback(function(){K.Sl()||K.get().removeListener(e)})}; dYt=function(v,J,G){var K=v.L7.get().getCurrentTimeSec(1,!1);v.cH.get().S.B().GG()&&vD(v.F4.get(),"sdai","onopp.1;evt."+G.event+";start."+G.startSecs.toFixed(3)+";d."+G.ON.toFixed(3));BK(v.X.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var V=v.Z.get(),Y=J.adPlacementRenderer.renderer.adBreakServiceRenderer,r=J.contentCpn,E=J.adPlacementRenderer.adSlotLoggingData,e=sr(v.cH.get()),P=v.F4;if(V.cH.get().S.B().experiments.OB("enable_smearing_expansion_dai")){var D=g.DI(V.cH.get().S.B().experiments, "max_prefetch_window_sec_for_livestream_optimization");var t=g.DI(V.cH.get().S.B().experiments,"min_prefetch_offset_sec_for_livestream_optimization");e={Y6:n8s(G),Xp:!1,cueProcessedMs:K*1E3};var B=G.startSecs+G.ON;if(K===0)e.Ty=new l6(0,B*1E3);else{t=G.startSecs-t;var I=t-K;e.Ty=I<=0?new l6(t*1E3,B*1E3):new l6(Math.floor(K+Math.random()*Math.min(I,D))*1E3,B*1E3)}D=e}else D={Y6:n8s(G),Xp:!1},B=G.startSecs+G.ON,G.startSecs<=K?e=new l6((G.startSecs-4)*1E3,B*1E3):(t=Math.max(0,G.startSecs-K-10),e=new l6(Math.floor(K+ Math.random()*(e?K===0?0:Math.min(t,5):t))*1E3,B*1E3)),D.Ty=e;Y=c6(V,Y,r,D,E,[new Tq(G)]);Ru(V.cH.get())&&vD(P.get(),"abrsm","cpi."+G.identifier+";cps."+G.startSecs+";cpd."+G.ON+";cts."+K+";rbf."+D.Ty.start);P.get().S.bN(D.Ty.start/1E3-K,G.startSecs-K);return[Y]})}; lz=function(v){var J,G=(J=VW(v.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:J.current;if(!G)return null;J=VW(v.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var K=v.layoutId,V=VW(v.clientMetadata,"metadata_type_content_cpn"),Y=VW(v.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),r=VW(v.clientMetadata,"metadata_type_player_overlay_layout_renderer"),E=VW(v.clientMetadata,"metadata_type_player_underlay_renderer"),e=VW(v.clientMetadata, "metadata_type_ad_placement_config"),P=VW(v.clientMetadata,"metadata_type_video_length_seconds");var D=v5(v.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?VW(v.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):v5(v.clientMetadata,"metadata_type_layout_enter_ms")&&v5(v.clientMetadata,"metadata_type_layout_exit_ms")?(VW(v.clientMetadata,"metadata_type_layout_exit_ms")-VW(v.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{KO:K,contentCpn:V,Lp:G,t_:J,instreamAdPlayerOverlayRenderer:Y, playerOverlayLayoutRenderer:r,instreamAdPlayerUnderlayRenderer:E,adPlacementConfig:e,videoLengthSeconds:P,Ax:D,inPlayerLayoutId:VW(v.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:VW(v.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; RaU=function(v,J){return sDw(v,J)}; lBw=function(v,J){J=sDw(v,J);if(!J)return null;var G;J.Ax=(G=VW(v.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:G.adBreakRemainingLengthSeconds;return J}; sDw=function(v,J){var G,K=(G=VW(v.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:G.current;if(!K)return null;G=aH8(v,J);return{ma:N8F(v,J),adPlacementConfig:VW(v.clientMetadata,"metadata_type_ad_placement_config"),zd:G,contentCpn:VW(v.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:VW(v.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:VW(v.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:VW(v.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Ax:void 0,Lp:K,KO:v.layoutId,videoLengthSeconds:VW(v.clientMetadata,"metadata_type_video_length_seconds")}}; Td=function(v,J,G,K,V,Y,r,E,e){g.X.call(this);this.L=v;this.j=J;this.J=G;this.Z=K;this.T=V;this.X=Y;this.X5=r;this.cH=E;this.C7=e;this.ZI=!0}; TDr=function(v,J,G){return DxU(v.T.get(),J.contentCpn,J.KO,function(K){return t92(v.X.get(),K.slotId,G,J.adPlacementConfig,J.KO,P5(v.X5.get(),K))})}; p3=function(v,J,G,K,V,Y,r,E){g.X.call(this);this.X=v;this.T=J;this.Z=G;this.cH=K;this.L=V;this.C7=Y;this.L7=r;this.Su=E}; L3=function(v){g.X.call(this);this.T=v}; BK=function(v,J,G,K){v.T().WG(J,K);G=G();v=v.T();v.K0.vZ("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",J,K,G);J=g.n(G);for(G=J.next();!G.done;G=J.next())a:{K=v;G=G.value;K.K0.FB("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",G);K.K0.FB("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",G);try{var V=K.T;if(g.s8(G.slotId))throw new Q("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(s6(V,G))throw new Q("Duplicate registration for slot.",{slotId:G.slotId,slotEntryTriggerType:G.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!V.hm.Nw.has(G.slotType))throw new Q("No fulfillment adapter factory registered for slot of type: "+G.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!V.hm.YU.has(G.slotType))throw new Q("No SlotAdapterFactory registered for slot of type: "+G.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");XF(V,"TRIGGER_CATEGORY_SLOT_ENTRY",G.slotEntryTrigger?[G.slotEntryTrigger]:[]);XF(V,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", G.slotFulfillmentTriggers);XF(V,"TRIGGER_CATEGORY_SLOT_EXPIRATION",G.slotExpirationTriggers);var Y=K.T,r=G.slotType+"_"+G.slotPhysicalPosition,E=Sh(Y,r);if(s6(Y,G))throw new Q("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");E.set(G.slotId,new ZWU(G));Y.T.set(r,E)}catch(Jw){Jw instanceof Q&&Jw.Wx?(K.K0.Ro("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",Jw.Wx,G),Ps(Jw,G,void 0,void 0,Jw.YM)):(K.K0.Ro("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", G),Ps(Jw,G));break a}s6(K.T,G).j=!0;try{var e=K.T,P=s6(e,G),D=G.slotEntryTrigger,t=e.hm.Kd.get(D.triggerType);t&&(t.nt("TRIGGER_CATEGORY_SLOT_ENTRY",D,G,null),P.dh.set(D.triggerId,t));for(var B=g.n(G.slotFulfillmentTriggers),I=B.next();!I.done;I=B.next()){var h=I.value,R=e.hm.Kd.get(h.triggerType);R&&(R.nt("TRIGGER_CATEGORY_SLOT_FULFILLMENT",h,G,null),P.oY.set(h.triggerId,R))}for(var T=g.n(G.slotExpirationTriggers),L=T.next();!L.done;L=T.next()){var O=L.value,x=e.hm.Kd.get(O.triggerType);x&&(x.nt("TRIGGER_CATEGORY_SLOT_EXPIRATION", O,G,null),P.N.set(O.triggerId,x))}var f=e.hm.Nw.get(G.slotType).get().build(e.Z,G);P.K=f;var c=e.hm.YU.get(G.slotType).get().build(e.J,G);c.init();P.X=c}catch(Jw){Jw instanceof Q&&Jw.Wx?(K.K0.Ro("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",Jw.Wx,G),Ps(Jw,G,void 0,void 0,Jw.YM)):(K.K0.Ro("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",G),Ps(Jw,G));zG(K,G,!0);break a}K.K0.FB("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",G);K.T.fq(G);for(var b=g.n(K.X),M=b.next();!M.done;M= b.next())M.value.fq(G);TG(K,G)}}; yT=function(v,J,G,K,V){g.X.call(this);var Y=this;this.X=v;this.Z=J;this.RH=G;this.context=V;this.T=new Map;K.get().addListener(this);this.addOnDisposeCallback(function(){K.Sl()||K.get().removeListener(Y)})}; RVU=function(v,J){var G=0x8000000000000;var K=0;for(var V=g.n(J.slotFulfillmentTriggers),Y=V.next();!Y.done;Y=V.next())Y=Y.value,Y instanceof Z5?(G=Math.min(G,Y.T.start),K=Math.max(K,Y.T.end)):Ps("Found unexpected fulfillment trigger for throttled slot.",J,null,{fulfillmentTrigger:Y});K=new l6(G,K);G="throttledadcuerange:"+J.slotId;v.T.set(G,J);v.RH.get().addCueRange(G,K.start,K.end,!1,v);lD(v.context.cH.get())&&(J=K.start,K=K.end,V={},v.context.Z2.H$("tcrr",(V.cid=G,V.sm=J,V.em=K,V)))}; w2=function(){g.X.apply(this,arguments);this.ZI=!0;this.Jh=new Map;this.T=new Map}; Or=function(v,J){v=g.n(v.Jh.values());for(var G=v.next();!G.done;G=v.next())if(G.value.layoutId===J)return!0;return!1}; Ur=function(v,J){v=g.n(v.T.values());for(var G=v.next();!G.done;G=v.next()){G=g.n(G.value);for(var K=G.next();!K.done;K=G.next())if(K=K.value,K.layoutId===J)return K}Ps("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.s8(J)),layoutId:J})}; pbt=function(){this.T=new Map}; Lvt=function(v,J){this.callback=v;this.slot=J}; xR=function(){}; ycs=function(v,J,G){this.callback=v;this.slot=J;this.L7=G}; wbU=function(v,J,G){this.callback=v;this.slot=J;this.L7=G;this.X=!1;this.T=0}; ON8=function(v,J,G){this.callback=v;this.slot=J;this.L7=G}; mX=function(v){this.L7=v}; Se=function(v){g.X.call(this);this.Un=v;this.SX=new Map}; f3=function(v,J){for(var G=[],K=g.n(v.SX.values()),V=K.next();!V.done;V=K.next()){V=V.value;var Y=V.trigger;Y instanceof Ci&&Y.triggeringLayoutId===J&&G.push(V)}G.length?U6(v.Un(),G):Ps("Survey is submitted but no registered triggers can be activated.")}; Zq=function(v,J,G){Se.call(this,v);var K=this;this.cH=G;J.get().addListener(this);this.addOnDisposeCallback(function(){J.Sl()||J.get().removeListener(K)})}; uz=function(v){g.X.call(this);this.T=v;this.ZI=!0;this.SX=new Map;this.J=new Set;this.Z=new Set;this.L=new Set;this.j=new Set;this.X=new Set}; g2=function(v){g.X.call(this);this.T=v;this.SX=new Map}; XY=function(v,J){for(var G=[],K=g.n(v.SX.values()),V=K.next();!V.done;V=K.next())V=V.value,V.trigger.T===J.layoutId&&G.push(V);G.length&&U6(v.T(),G)}; kR=function(v,J,G){g.X.call(this);var K=this;this.T=v;this.context=G;this.SX=new Map;J.get().addListener(this);this.addOnDisposeCallback(function(){J.Sl()||J.get().removeListener(K)})}; cg=function(v,J,G,K,V){g.X.call(this);var Y=this;this.X=v;this.RH=J;this.L7=G;this.C7=K;this.context=V;this.ZI=!0;this.SX=new Map;this.T=new Set;G.get().addListener(this);this.addOnDisposeCallback(function(){G.Sl()||G.get().removeListener(Y)})}; UY2=function(v,J,G,K,V,Y,r,E,e,P){if(Is(v.C7.get(),1).clientPlaybackNonce!==e)throw new Q("Cannot register CueRange-based trigger for different content CPN",{trigger:G});v.SX.set(G.triggerId,{xE:new js(J,G,K,V),cueRangeId:Y});v.RH.get().addCueRange(Y,r,E,P,v);lD(v.context.cH.get())&&(e={},v.context.Z2.H$("crr",(e.ca=J,e.tt=G.triggerType,e.st=K.slotType,e.lt=V==null?void 0:V.layoutType,e.cid=Y,e.sm=r,e.em=E,e)))}; xYX=function(v,J){v=g.n(v.SX.entries());for(var G=v.next();!G.done;G=v.next()){var K=g.n(G.value);G=K.next().value;K=K.next().value;if(J===K.cueRangeId)return G}return""}; NW=function(v,J){g.X.call(this);var G=this;this.L=v;this.X=new Map;this.Z=new Map;this.T=null;J.get().addListener(this);this.addOnDisposeCallback(function(){J.Sl()||J.get().removeListener(G)}); var K;this.T=((K=J.get().rQ)==null?void 0:K.slotId)||null}; mYm=function(v,J){var G=[];v=g.n(v.values());for(var K=v.next();!K.done;K=v.next())K=K.value,K.slot.slotId===J&&G.push(K);return G}; au=function(v){g.X.call(this);this.T=v;this.ZI=!0;this.SX=new Map}; FL=function(v,J,G){J=J.layoutId;for(var K=[],V=g.n(v.SX.values()),Y=V.next();!Y.done;Y=V.next())if(Y=Y.value,Y.trigger instanceof kT){var r;if(r=Y.trigger.layoutId===J){r=G;var E=wXt.get(Y.category);r=E?E===r:!1}r&&K.push(Y)}K.length&&U6(v.T(),K)}; AX=function(v){g.X.call(this);this.T=v;this.ZI=!0;this.SX=new Map}; FY=function(v,J,G,K,V){g.X.call(this);var Y=this;this.J=v;this.Vj=J;this.L7=G;this.F4=K;this.T=null;this.ZI=!0;this.SX=new Map;this.L=new Set;J.get().addListener(this);this.addOnDisposeCallback(function(){J.Sl()||J.get().removeListener(Y)}); V.get().addListener(this);this.addOnDisposeCallback(function(){V.Sl()||V.get().removeListener(Y)})}; fB8=function(v){v.T&&(v.X&&(v.X.stop(),v.X.start()),Szt(v,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; Szt=function(v,J){for(var G=[],K=g.n(v.SX.values()),V=K.next();!V.done;V=K.next())V=V.value,V.trigger.triggerType===J&&G.push(V);G.length>0&&U6(v.J(),G)}; Hg=function(v,J,G,K,V){for(var Y=[],r=g.n(v.SX.values()),E=r.next();!E.done;E=r.next()){var e=E=E.value,P=e.trigger;e=e.slot;if(P.triggerType===J){if(P instanceof mN||P instanceof S_||P instanceof uv){if(V&&P.breakDurationMs!==G)continue;if(!V&&P.breakDurationMs===G)continue;if(K.has(e.slotId))continue;if(v.L.has(e.slotId))continue}Y.push(E)}}Y.length>0&&U6(v.J(),Y)}; ZN8=function(v){v=v.adPlacementRenderer.config.adPlacementConfig;if(!v.prefetchModeConfig||!v.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;v=Number(v.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(v)||v<=0?0:Math.floor(Math.random()*v)}; uxm=function(v){v=v.adPlacementRenderer.config.adPlacementConfig;if(v.prefetchModeConfig&&v.prefetchModeConfig.cacheFetchRefreshDurationMs&&(v=Number(v.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(v)||v<=0)))return v}; MW=function(v){v.T=null;v.SX.clear();v.L.clear();v.X&&v.X.stop();v.Z&&v.Z.stop()}; QT=function(v){g.X.call(this);this.Z=v;this.ZI=!0;this.SX=new Map;this.T=new Map;this.X=new Map}; g88=function(v,J){var G=[];if(J=v.T.get(J.layoutId)){J=g.n(J);for(var K=J.next();!K.done;K=J.next())(K=v.X.get(K.value.triggerId))&&G.push(K)}return G}; Wg=function(v){g.X.call(this);this.T=v;this.SX=new Map}; Xb2=function(v,J){for(var G=[],K=g.n(v.SX.values()),V=K.next();!V.done;V=K.next())V=V.value,V.trigger instanceof Re&&V.trigger.slotId===J&&G.push(V);G.length>=1&&U6(v.T(),G)}; kqt=function(v,J){var G={slotId:I8(J,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],IY:"surface",clientMetadata:new KX([])},K=Object,V=K.assign;J=CX(J,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",G.slotId);J={layoutId:J,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",bd:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],IY:"surface", clientMetadata:new KX([]),C0:RmB(!1,G.slotId,G.slotType,G.slotPhysicalPosition,G.IY,G.slotEntryTrigger,G.slotFulfillmentTriggers,G.slotExpirationTriggers,J,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return V.call(K,{},v,{fei:!0,slot:G,layout:J})}; L8s=function(v,J,G,K){var V=v.kind;K=K?!1:!v.hideCueRangeMarker;switch(V){case "AD_PLACEMENT_KIND_START":return K={Y6:new l6(-0x8000000000000,-0x8000000000000),Xp:K},G!=null&&(K.Ty=new l6(-0x8000000000000,-0x8000000000000)),K;case "AD_PLACEMENT_KIND_END":return K={Y6:new l6(0x7ffffffffffff,0x8000000000000),Xp:K},G!=null&&(K.Ty=new l6(Math.max(0,J-G),0x8000000000000)),K;case "AD_PLACEMENT_KIND_MILLISECONDS":V=v.adTimeOffset;V.offsetStartMilliseconds||Ps("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); V.offsetEndMilliseconds||Ps("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");v=Number(V.offsetStartMilliseconds);V=Number(V.offsetEndMilliseconds);V===-1&&(V=J);if(Number.isNaN(v)||Number.isNaN(V)||v>V)return new Q("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:v,offsetEndMs:V},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",V===J&&v-500<=V);K={Y6:new l6(v,V),Xp:K};if(G!=null){v=Math.max(0,v-G);if(v===V)return K;K.Ty=new l6(v,V)}return K; default:return new Q("AdPlacementKind not supported in convertToRange.",{kind:V,adPlacementConfig:v})}}; n8s=function(v){var J=v.startSecs*1E3;return new l6(J,J+v.ON*1E3)}; ccF=function(v){if(!v||!v.adPlacements&&!v.adSlots)return!1;for(var J=g.n(v.adPlacements||[]),G=J.next();!G.done;G=J.next())if(G=G.value)if(G=G.adPlacementRenderer,G!=null&&(G.config&&G.config.adPlacementConfig&&G.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;v=g.n(v.adSlots||[]);for(J=v.next();!J.done;J=v.next()){var K=G=void 0;if(((G=g.N(J.value,kc))==null?void 0:(K=G.adSlotMetadata)==null?void 0:K.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; C3=function(v){this.cH=v;this.X=new Map;this.T=new Map;this.Z=new Map}; I8=function(v,J){if(bz(v.cH.get())){var G=v.X.get(J)||0;G++;v.X.set(J,G);return J+"_"+G}return g.lN(16)}; CX=function(v,J,G){if(bz(v.cH.get())){var K=v.T.get(J)||0;K++;v.T.set(J,K);return G+"_"+J+"_"+K}return g.lN(16)}; YR=function(v,J){if(bz(v.cH.get())){var G=v.Z.get(J)||0;G++;v.Z.set(J,G);return J+"_"+G}return g.lN(16)}; NDU=function(v){var J=[new ID(v.KO),new dD(v.Lp),new b3(v.adPlacementConfig),new pN(v.videoLengthSeconds),new cb(v.Ax)];v.instreamAdPlayerOverlayRenderer&&J.push(new KN(v.instreamAdPlayerOverlayRenderer));v.playerOverlayLayoutRenderer&&J.push(new Vw(v.playerOverlayLayoutRenderer));v.t_&&J.push(new Jc(v.t_));return J}; aBU=function(v,J,G,K,V,Y){v=G.inPlayerLayoutId?G.inPlayerLayoutId:CX(Y,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",v);var r,E,e=G.instreamAdPlayerOverlayRenderer?(r=G.instreamAdPlayerOverlayRenderer)==null?void 0:r.adLayoutLoggingData:(E=G.playerOverlayLayoutRenderer)==null?void 0:E.adLayoutLoggingData;r={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",IY:J};return{layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",bd:new Map,layoutExitNormalTriggers:[new Uk(function(P){return YR(Y, P)},G.KO)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],IY:J,clientMetadata:K,C0:V(r),adLayoutLoggingData:e}}; jZ=function(v,J){var G=this;this.X=v;this.cH=J;this.T=function(K){return YR(G.X.get(),K)}}; t92=function(v,J,G,K,V,Y){G=new KX([new Y8(G),new b3(K)]);J=CX(v.X.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",J);K={layoutId:J,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",IY:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",bd:new Map,layoutExitNormalTriggers:[new Uk(function(r){return YR(v.X.get(),r)},V)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],IY:"core",clientMetadata:G,C0:Y(K),adLayoutLoggingData:void 0}}; iz=function(v,J,G,K,V){var Y=NDU(K);return aBU(J,G,K,new KX(Y),V,v.X.get())}; AcF=function(v,J,G,K,V){var Y=NDU(K);Y.push(new Wn(K.ma));Y.push(new C1(K.zd));return aBU(J,G,K,new KX(Y),V,v.X.get())}; zd=function(v,J,G,K,V,Y,r,E,e,P){J=CX(v.X.get(),G,J);var D={layoutId:J,layoutType:G,IY:"core"},t=new Map;r&&t.set("impression",r);r=[new gB(v.T,V,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];P&&r.push(new Ok(v.T,P,["normal"]));return{layoutId:J,layoutType:G,bd:t,layoutExitNormalTriggers:r,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],IY:"core",clientMetadata:new KX([K,new b3(Y),new ID(V)]),C0:E(D),adLayoutLoggingData:e}}; n3=function(v,J,G,K,V,Y,r,E,e){J=CX(v.X.get(),G,J);var P={layoutId:J,layoutType:G,IY:"core"},D=[new gB(v.T,V,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];e&&D.push(new Ok(v.T,e,["normal"]));return{layoutId:J,layoutType:G,bd:new Map,layoutExitNormalTriggers:D,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],IY:"core",clientMetadata:new KX([K,new b3(Y),new ID(V)]),C0:r(P),adLayoutLoggingData:E}}; qW=function(v,J,G){var K=[];K.push(new XZ(v.T,G));J&&K.push(J);return K}; r2=function(v,J,G,K,V,Y,r){var E={layoutId:J,layoutType:G,IY:"core"};return{layoutId:J,layoutType:G,bd:new Map,layoutExitNormalTriggers:r,layoutExitSkipTriggers:[new pi(v.T,J)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],IY:"core",clientMetadata:new KX([new Fg(K),new b3(V)]),C0:Y(E),adLayoutLoggingData:K.adLayoutLoggingData}}; W6=function(v,J,G,K,V,Y,r,E){var e={layoutId:J,layoutType:Y,IY:"core"};return{layoutId:J,layoutType:Y,bd:new Map,layoutExitNormalTriggers:[new Uk(v.T,G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],IY:"core",clientMetadata:new KX([new b3(K)].concat(g.l(r))),C0:V(e),adLayoutLoggingData:E}}; ee=function(v,J,G,K){if(v.cH.get().SK(J.kind==="AD_PLACEMENT_KIND_START"))if(G===void 0)Ps("Expected SSAP layout ID in renderer",void 0,void 0,{caller:K});else return G}; QUF=function(v,J,G,K,V,Y,r,E,e,P,D,t,B){v=Er(v,J,G,V,Y,r,E,e,t,ee(v,G,K.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),B);J=v.f4;G=new hc(v.Hf);K=v.layoutExitSkipTriggers;P>0&&(J.push(G),J.push(new vb(P)),K=[]);J.push(new $8(D));return{It:{layoutId:v.layoutId,layoutType:v.layoutType,bd:v.bd,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],IY:v.IY,clientMetadata:new KX(J),C0:v.C0,adLayoutLoggingData:v.adLayoutLoggingData}, ao:K,Rv:v.layoutExitMuteTriggers,Hl:v.layoutExitUserInputSubmittedTriggers,E_:v.U$,x5:v.x5}}; jDs=function(v,J,G,K,V,Y,r,E,e,P){J=Er(v,J,G,K,Y,new Map,r,function(D){return E(D,e)},void 0,ee(v,G,V.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); v=new Ci(v.T,J.Hf);G=new hc(J.Hf);P=new $8(P);return{It:{layoutId:J.layoutId,layoutType:J.layoutType,bd:J.bd,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],IY:J.IY,clientMetadata:new KX([].concat(g.l(J.f4),[G,P])),C0:J.C0,adLayoutLoggingData:J.adLayoutLoggingData},ao:J.layoutExitSkipTriggers,Rv:J.layoutExitMuteTriggers,Hl:[].concat(g.l(J.layoutExitUserInputSubmittedTriggers),[v]),E_:J.U$,x5:J.x5}}; Er=function(v,J,G,K,V,Y,r,E,e,P,D){J=P!=null?P:CX(v.X.get(),"LAYOUT_TYPE_MEDIA_BREAK",J);P={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",IY:"adapter"};E=E(J);var t=VW(E.clientMetadata,"metadata_type_fulfilled_layout");t||Ps("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var B=t?t.layoutId:"";G=[new b3(G),new NY(K),new Fx(V)];t&&G.push(new zq(t.layoutType));D&&G.push(new x8(D));return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", bd:Y,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new ae(v.T,B)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],IY:"adapter",f4:G,C0:r(P),adLayoutLoggingData:e,x5:E,Hf:B}}; eKt=function(v,J,G,K,V,Y,r,E,e,P,D){v=Fvj(v,J,"core",G,K,V,Y,r,E,e,P,void 0,D);return{layoutId:v.layoutId,layoutType:v.layoutType,bd:v.bd,layoutExitNormalTriggers:v.layoutExitNormalTriggers,layoutExitSkipTriggers:v.layoutExitSkipTriggers,layoutExitMuteTriggers:v.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:v.layoutExitUserInputSubmittedTriggers,U$:v.U$,IY:v.IY,clientMetadata:new KX(v.F0),C0:v.C0,adLayoutLoggingData:v.adLayoutLoggingData}}; qz2=function(v,J,G,K,V,Y,r,E,e,P,D,t,B){J=Fvj(v,J,"adapter",G,K,V,Y,r,E,e,D,t,B);K=J.layoutExitSkipTriggers;V=J.F0;G.adPodSkipTarget&&G.adPodSkipTarget>0&&(V.push(P),V.push(new vb(G.adPodSkipTarget)),K=[]);V.push(new $8(E.adPodIndex));G.isCritical&&(K=[new Ok(v.T,J.layoutId,["error"])].concat(g.l(K)));return{It:{layoutId:J.layoutId,layoutType:J.layoutType,bd:J.bd,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],IY:J.IY,clientMetadata:new KX(V), C0:J.C0,adLayoutLoggingData:J.adLayoutLoggingData},ao:K,Rv:J.layoutExitMuteTriggers,Hl:J.layoutExitUserInputSubmittedTriggers,E_:J.U$}}; Fvj=function(v,J,G,K,V,Y,r,E,e,P,D,t,B){var I={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",IY:G};V=[new b3(V),new iF(e),new Gq(K.externalVideoId),new oD(E),new Fx({impressionCommands:K.impressionCommands,abandonCommands:K.onAbandonCommands,completeCommands:K.completeCommands,progressCommands:K.adVideoProgressCommands}),new LN(Y),new sz({current:null}),new pN(r)];(Y=K.playerOverlay.instreamAdPlayerOverlayRenderer)&&V.push(new KN(Y));(r=K.playerOverlay.playerOverlayLayoutRenderer)&&V.push(new Vw(r)); t&&V.push(new yw(t));(t=K.playerUnderlay)&&V.push(new Y8(t));E=I8(v.X.get(),"SLOT_TYPE_IN_PLAYER");t=(t=Y?Y.elementId:r==null?void 0:r.layoutId)?t:CX(v.X.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",E);V.push(new hc(t));V.push(new nN(E));V.push(new x8(e.adPodIndex));K.adNextParams&&V.push(new aU(K.adNextParams));K.shrunkenPlayerBytesConfig&&V.push(new Ez(K.shrunkenPlayerBytesConfig));K.clickthroughEndpoint&&V.push(new AJ(K.clickthroughEndpoint));K.legacyInfoCardVastExtension&&V.push(new aD(K.legacyInfoCardVastExtension)); K.sodarExtensionData&&V.push(new wD(K.sodarExtensionData));D&&V.push(new k8(D));V.push(new Qw(pT(K.pings)));e=LT(K.pings);if(B){a:{B=g.n(B);for(D=B.next();!D.done;D=B.next())if(D=D.value,D.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(Y=g.N(D.fulfillmentContent.fulfilledLayout,wc))&&(Y=g.N(Y.renderingContent,na))&&Y.associatedPlayerBytesLayoutId===J){B=D;break a}B=void 0}B&&V.push(new rD(B))}return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",bd:e,layoutExitNormalTriggers:[new kT(v.T,J)],layoutExitSkipTriggers:K.skipOffsetMilliseconds? [new ae(v.T,t)]:[],layoutExitMuteTriggers:[new ae(v.T,t)],layoutExitUserInputSubmittedTriggers:[],U$:[],IY:G,F0:V,C0:P(I),adLayoutLoggingData:K.adLayoutLoggingData}}; vCU=function(v,J,G,K,V,Y,r,E,e){K.every(function(D){return JQ(D,[],["LAYOUT_TYPE_MEDIA"])})||Ps("Unexpect subLayout type for DAI composite layout"); J=CX(v.X.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",J);var P={layoutId:J,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",IY:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",bd:new Map,layoutExitNormalTriggers:[new xT(v.T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U$:[],IY:"core",clientMetadata:new KX([new Oz(G),new Uz(E),new lF(K),new b3(V),new ZB(Y),new mv({}),new CN(e)]),C0:r(P)}}; CPm=function(v){return v!=null}; i1=function(v,J,G){var K=this;this.X=v;this.Z=J;this.cH=G;this.T=function(V){return YR(K.X.get(),V)}}; zaw=function(v,J,G,K,V,Y,r){if(!G.prefetchModeConfig)return new Q("AdPlacementConfig for Live Prefetch is missing prefetch_config");G=G.prefetchModeConfig;K*=1E3;var E=[];if(!G.breakLengthMs)return new Q("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var e=g.n(G.breakLengthMs),P=e.next();!P.done;P=e.next())if(P=P.value,Number(P)>0){var D=K+Number(G.startTimeOffsetMs),t=D+Number(G.cacheFetchSmearingDurationMs);P={Y6:new l6(t,t+Number(P)),Xp:!1,Ty:new l6(Math.floor(D+Math.random()* Number(G.cacheFetchSmearingDurationMs)),t),cueProcessedMs:K?K:D};D=[];D.push(new $d({}));t=[];t.push(new NJ(v.T));t.push(new aYj(v.T));r&&D.push(new mv({}));E.push(c6(v,J,V,P,Y,D,t))}return E}; c6=function(v,J,G,K,V,Y,r){Y=Y===void 0?[]:Y;var E=I8(v.X.get(),"SLOT_TYPE_AD_BREAK_REQUEST");r||(r=[],K.Ty&&K.Ty.start!==K.Y6.start&&r.push(new Z5(v.T,G,new l6(K.Ty.start,K.Y6.start),!1)),r.push(new Z5(v.T,G,new l6(K.Y6.start,K.Y6.end),K.Xp)));K={getAdBreakUrl:J.getAdBreakUrl,N_:K.Y6.start,hn:K.Y6.end,cueProcessedMs:K.cueProcessedMs};J=new MJ(v.T,E);Y=[new gD(K)].concat(g.l(Y));return{slotId:E,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:r, slotExpirationTriggers:[new cD(v.T,G),new FZ(v.T,E),new HD(v.T,E)],IY:"core",clientMetadata:new KX(Y),adSlotLoggingData:V}}; Mam=function(v,J,G){var K=[];G=g.n(G);for(var V=G.next();!V.done;V=G.next())K.push(HNF(v,J,V.value));return K}; HNF=function(v,J,G){return G.triggeringSlotId!=null&&G.triggeringSlotId===v?G.clone(J):G}; XAt=function(v,J,G,K,V){return QDU(v,J,G,K,V)}; Wwr=function(v,J,G,K){var V=I8(v.X.get(),"SLOT_TYPE_IN_PLAYER");return QDU(v,V,J,G,K)}; QDU=function(v,J,G,K,V){var Y=new wB(v.T,G),r=[new AY(v.T,J)];v=[new FZ(v.T,J),new cD(v.T,K)];return{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:r,slotExpirationTriggers:v,IY:"core",clientMetadata:new KX([new uF(V({slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,IY:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:r,slotExpirationTriggers:v},G))]),adSlotLoggingData:void 0}}; E8X=function(v,J,G,K,V,Y){var r=I8(v.X.get(),"SLOT_TYPE_PLAYER_BYTES"),E=I8(v.X.get(),"SLOT_TYPE_IN_PLAYER"),e=CX(v.X.get(),"LAYOUT_TYPE_SURVEY",E);K=$z(v,J,G,K);var P=[new AY(v.T,r)];G=[new FZ(v.T,r),new cD(v.T,G),new pi(v.T,e)];if(K instanceof Q)return K;E=Y({slotId:r,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,IY:"core",slotEntryTrigger:K,slotFulfillmentTriggers:P,slotExpirationTriggers:G},{slotId:E,layoutId:e});Y=E.mie;E=E.Pww;return[{slotId:r,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:Dq(v,J,r,K),slotFulfillmentTriggers:tX(v,J,r,P),slotExpirationTriggers:G,IY:"core",clientMetadata:new KX([new uF(Y),new bF(Bg(J)),new iE({qV:v.qV(J)})]),adSlotLoggingData:V},E]}; Bg=function(v){return v.kind==="AD_PLACEMENT_KIND_START"}; P3r=function(v,J,G,K,V){V=V?V:I8(v.X.get(),"SLOT_TYPE_IN_PLAYER");G=new wB(v.T,G);var Y=[new AY(v.T,V)];v=[new cD(v.T,J),new FZ(v.T,V)];return{slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:G,slotFulfillmentTriggers:Y,slotExpirationTriggers:v,IY:"core",clientMetadata:new KX([new uF(K({slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,IY:"core",slotEntryTrigger:G,slotFulfillmentTriggers:Y,slotExpirationTriggers:v}))])}}; DxU=function(v,J,G,K){var V=I8(v.X.get(),"SLOT_TYPE_PLAYER_UNDERLAY");G=new wB(v.T,G);var Y=[new AY(v.T,V)];v=[new cD(v.T,J),new FZ(v.T,V)];return{slotId:V,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:G,slotFulfillmentTriggers:Y,slotExpirationTriggers:v,IY:"core",clientMetadata:new KX([new uF(K({slotId:V,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,IY:"core",slotEntryTrigger:G,slotFulfillmentTriggers:Y,slotExpirationTriggers:v}))])}}; oCs=function(v,J,G,K,V,Y,r){var E=I8(v.X.get(),"SLOT_TYPE_IN_PLAYER"),e=CX(v.X.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",E);K=Wvw(v,K,Y,r,e);if(K instanceof Q)return K;r=[new AY(v.T,E)];V=[new cD(v.T,Y),new AY(v.T,V),new WD(v.T,V)];G=P5(G,{slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,IY:"core",slotEntryTrigger:K,slotFulfillmentTriggers:r,slotExpirationTriggers:V});v=v.Z.get();Y={layoutId:e,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",IY:"core"};J={layoutId:e,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", bd:new Map,layoutExitNormalTriggers:[new bVL(v.T,e,J.durationMs)],layoutExitSkipTriggers:[new ipw(v.T,e,J.durationMs)],U$:[new jg2(v.T,e)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],IY:"core",clientMetadata:new KX([new Ac(J)]),C0:G(Y)};return{slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,IY:"core",slotEntryTrigger:K,slotFulfillmentTriggers:r,slotExpirationTriggers:V,clientMetadata:new KX([new uF(J)])}}; H1m=function(v,J,G,K,V,Y){J=$z(v,J,G,K);if(J instanceof Q)return J;var r=J instanceof Z5?new QwL(v.T,G,J.T):null;K=I8(v.X.get(),"SLOT_TYPE_IN_PLAYER");var E=[new AY(v.T,K)];v=[new cD(v.T,G),new FZ(v.T,K)];Y=Y({slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,IY:"core",slotEntryTrigger:J,slotFulfillmentTriggers:E,slotExpirationTriggers:v},r);return Y instanceof o_?new Q(Y):{slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:E,slotExpirationTriggers:v, IY:"core",clientMetadata:new KX([new uF(Y)]),adSlotLoggingData:V}}; AJw=function(v,J,G,K){var V=I8(v.X.get(),"SLOT_TYPE_IN_PLAYER"),Y=new T4(v.T,J),r=[new Qx(v.T,V)];v=[new cD(v.T,J),new FZ(v.T,V)];return{slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:r,slotExpirationTriggers:v,IY:"core",clientMetadata:new KX([new uF(K({slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,IY:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:r,slotExpirationTriggers:v}))]),adSlotLoggingData:G}}; F88=function(v,J,G,K){var V=I8(v.X.get(),"SLOT_TYPE_IN_PLAYER");G=new wB(v.T,G);var Y=[new AY(v.T,V)],r=[new FZ(v.T,V),new cD(v.T,J)];Y={slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,IY:"core",slotEntryTrigger:G,slotFulfillmentTriggers:Y,slotExpirationTriggers:r};return{slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:G,slotFulfillmentTriggers:[new AY(v.T,V)],slotExpirationTriggers:[new cD(v.T,J),new FZ(v.T,V)],IY:"core",clientMetadata:new KX([new uF(K(Y))])}}; N7U=function(v,J,G,K,V){var Y=I8(v.X.get(),"SLOT_TYPE_IN_PLAYER");G=new yx(v.T,K,G);K=[new AY(v.T,Y)];v=[new cD(v.T,J)];return{slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:G,slotFulfillmentTriggers:K,slotExpirationTriggers:v,IY:"core",clientMetadata:new KX([new uF(V({slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,IY:"core",slotEntryTrigger:G,slotFulfillmentTriggers:K,slotExpirationTriggers:v}))])}}; Zpf=function(v,J,G,K,V,Y){var r=I8(v.X.get(),J);return vx(v,r,J,new wB(v.T,K),[new cD(v.T,G),new FZ(v.T,r),new Ok(v.T,K,["error"])],V,Y)}; fcf=function(v,J,G,K,V,Y,r){var E=I8(v.X.get(),J);return vx(v,E,J,new Ok(v.T,V,["normal"]),[new cD(v.T,G),new FZ(v.T,E),new Ok(v.T,K,["error"])],Y,r)}; Udm=function(v,J,G,K,V){var Y=I8(v.X.get(),J);return vx(v,Y,J,new T4(v.T,G),[new cD(v.T,G),new FZ(v.T,Y)],K,V)}; kMt=function(v,J,G,K,V){G=G?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var Y=I8(v.X.get(),G);J=new T4(v.T,J);var r=[new AY(v.T,Y)];v=[new FZ(v.T,Y)];return{slotId:Y,slotType:G,slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:r,slotExpirationTriggers:v,IY:"core",clientMetadata:new KX([new uF(V({slotId:Y,slotType:G,slotPhysicalPosition:1,IY:"core",slotEntryTrigger:J,slotFulfillmentTriggers:r,slotExpirationTriggers:v}))]),adSlotLoggingData:K}}; bpt=function(v,J,G,K){var V=I8(v.X.get(),"SLOT_TYPE_PLAYER_BYTES"),Y=new fi(v.T),r=[new Qx(v.T,V)];v=[new cD(v.T,J)];return{slotId:V,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:r,slotExpirationTriggers:v,IY:"core",clientMetadata:new KX([new uF(K({slotId:V,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,IY:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:r,slotExpirationTriggers:v})),new mv({})]),adSlotLoggingData:G}}; Kvj=function(v,J){return IBL(v.cH.get())?new Ok(v.T,J,["normal","error","skipped"]):new Ok(v.T,J,["normal"])}; rJX=function(v,J,G,K,V){J=Kvj(v,J);v=Pg(v,J,G);V=V({slotId:v.slotId,slotType:v.slotType,slotPhysicalPosition:v.slotPhysicalPosition,slotEntryTrigger:v.slotEntryTrigger,slotFulfillmentTriggers:v.slotFulfillmentTriggers,slotExpirationTriggers:v.slotExpirationTriggers,IY:v.IY});return V instanceof Q?V:{MF:Object.assign({},v,{clientMetadata:new KX([new uF(V.layout)]),adSlotLoggingData:K}),RR:V.RR}}; qeL=function(v,J,G,K,V,Y,r){G=Vaj(v,J,G,K);if(G instanceof Q)return G;r=r({slotId:G.slotId,slotType:G.slotType,slotPhysicalPosition:G.slotPhysicalPosition,slotEntryTrigger:G.slotEntryTrigger,slotFulfillmentTriggers:G.slotFulfillmentTriggers,slotExpirationTriggers:G.slotExpirationTriggers,IY:G.IY});if(r instanceof Q)return r;K=[new bF(Bg(J)),new uF(r.layout),new iE({qV:v.qV(J)})];Y&&K.push(new Hb({}));return{MF:{slotId:G.slotId,slotType:G.slotType,slotPhysicalPosition:G.slotPhysicalPosition,slotEntryTrigger:Dq(v, J,G.slotId,G.slotEntryTrigger),slotFulfillmentTriggers:tX(v,J,G.slotId,G.slotFulfillmentTriggers),slotExpirationTriggers:G.slotExpirationTriggers,IY:G.IY,clientMetadata:new KX(K),adSlotLoggingData:V},RR:r.RR}}; Dq=function(v,J,G,K){return v.cH.get().SK(Bg(J))?new Re(v.T,G):K}; tX=function(v,J,G,K){return v.cH.get().SK(Bg(J))?[new Qx(v.T,G)]:K}; Pg=function(v,J,G){var K=I8(v.X.get(),"SLOT_TYPE_PLAYER_BYTES"),V=[new AY(v.T,K)];v=[new FZ(v.T,K),new cD(v.T,G)];return{slotId:K,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:V,slotExpirationTriggers:v,IY:"core"}}; Vaj=function(v,J,G,K){J=$z(v,J,G,K);return J instanceof Q?J:Pg(v,J,G)}; Nqm=function(v,J,G,K,V,Y){var r=I8(v.X.get(),"SLOT_TYPE_FORECASTING");J=$z(v,J,G,K);if(J instanceof Q)return J;K=[new AY(v.T,r)];v=[new FZ(v.T,r),new cD(v.T,G)];return{slotId:r,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:K,slotExpirationTriggers:v,IY:"core",clientMetadata:new KX([new uF(Y({slotId:r,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,IY:"core",slotEntryTrigger:J,slotFulfillmentTriggers:K,slotExpirationTriggers:v}))]),adSlotLoggingData:V}}; CFF=function(v,J,G,K,V){var Y=!J.hideCueRangeMarker;switch(J.kind){case "AD_PLACEMENT_KIND_START":return new T4(v.T,G);case "AD_PLACEMENT_KIND_MILLISECONDS":return v=L8s(J,K),v instanceof Q?v:V(v.Y6,Y);case "AD_PLACEMENT_KIND_END":return new Li(v.T,G,Y);default:return new Q("Cannot construct entry trigger",{kind:J.kind})}}; Wvw=function(v,J,G,K,V){return CFF(v,J,G,K,function(Y,r){return new MfL(v.T,G,Y,r,V)})}; $z=function(v,J,G,K){return CFF(v,J,G,K,function(V,Y){return new Z5(v.T,G,V,Y)})}; vx=function(v,J,G,K,V,Y,r){v=[new Qx(v.T,J)];return{slotId:J,slotType:G,slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:v,slotExpirationTriggers:V,IY:"core",clientMetadata:new KX([new uF(r({slotId:J,slotType:G,slotPhysicalPosition:1,IY:"core",slotEntryTrigger:K,slotFulfillmentTriggers:v,slotExpirationTriggers:V}))]),adSlotLoggingData:Y}}; Jn=function(v,J){g.X.call(this);this.cH=v;this.T=J;this.eventCount=0}; Gf=function(v,J,G,K){Jn.call(this,v,J);this.cH=v;this.C7=G;this.context=K}; oh=function(){this.T=new Map}; Yz=function(v,J){var G=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=v;this.result=J.result;this.error=J.error;J.promise&&J.promise.then(function(K){Kn(G,K)},function(K){V8(G,K)})}; Eu=function(v){if(rt(v)){if(v instanceof Yz)return v;if(qb(v))return new Yz("wait",{promise:v})}return new Yz("done",{result:v})}; eZ=function(){return new Yz("wait",{})}; Px=function(v){return new Yz("fail",{error:v})}; D1=function(v){try{return Eu(v())}catch(J){return Px(J)}}; Bx=function(v,J){var G=eZ();v.onSuccess.push(function(K){try{var V=J(K);Kn(G,V)}catch(Y){V8(G,Y)}}); v.onFailure.push(function(K){V8(G,K)}); tn(v);return G}; Ih=function(v,J){var G=eZ();v.onSuccess.push(function(K){Kn(G,K)}); v.onFailure.push(function(K){try{var V=J(K);Kn(G,V)}catch(Y){V8(G,Y)}}); tn(v);return G}; bN8=function(v,J){var G=eZ();v.onSuccess.push(function(K){try{J(),Kn(G,K)}catch(V){V8(G,V)}}); v.onFailure.push(function(K){try{J(),V8(G,K)}catch(V){V8(G,V)}}); tn(v)}; Kn=function(v,J){if(rt(J)){if(qb(J)){J.then(function(G){Kn(v,G)},function(G){V8(v,G)}); return}if(J instanceof Yz){Bx(J,function(G){Kn(v,G)}); Ih(J,function(G){V8(v,G)}); return}}v.currentState="done";v.result=J;tn(v)}; V8=function(v,J){v.currentState="fail";v.error=J;tn(v)}; tn=function(v){if(v.currentState==="done"){var J=v.onSuccess;v.onSuccess=[];v.onFailure=[];J=g.n(J);for(var G=J.next();!G.done;G=J.next())G=G.value,G(v.result)}else if(v.currentState==="fail")for(J=v.onFailure,v.onSuccess=[],v.onFailure=[],J=g.n(J),G=J.next();!G.done;G=J.next())G=G.value,G(v.error)}; iXU=function(v){return function(){return j_8(v.apply(this,g.Om.apply(0,arguments)))}}; j_8=function(v){return D1(function(){return hn(v,v.next())})}; hn=function(v,J){return J.done?Eu(J.value):Ih(Bx(J.value.Sz,function(G){return hn(v,v.next(G))}),function(G){return hn(v,v.throw(G))})}; $Vt=function(v,J){if(v.length===0)return Eu(NaN);var G=eZ(),K=v.length;v.forEach(function(V,Y){bN8(Eu(V),function(){G.currentState==="wait"&&(J!==void 0&&J(Y)&&G.currentState==="wait"?G.resolve(Y):(--K,K===0&&G.resolve(NaN)))})}); return G}; vdX=function(v){return v.map(function(J){return Eu(J)})}; nn=function(v){var J=v.hours||0;var G=v.minutes||0,K=v.seconds||0;J=K+G*60+J*3600+(v.days||0)*86400+(v.weeks||0)*604800+(v.months||0)*2629800+(v.years||0)*31557600;J<=0?J={hours:0,minutes:0,seconds:0}:(v=J,J=Math.floor(v/3600),v%=3600,G=Math.floor(v/60),K=Math.floor(v%60),J={hours:J,minutes:G,seconds:K});var V=J.hours===void 0?0:J.hours;G=J.minutes===void 0?0:J.minutes;v=J.seconds===void 0?0:J.seconds;K=V>0;J=[];if(K){V=(new Intl.NumberFormat("en-u-nu-latn")).format(V);var Y=["fr"],r="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(" "); V="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(zf)?V.replace(",","\u00a0"):Y.includes(zf)?V.replace(",","\u202f"):r.includes(zf)?V.replace(",","."):V;J.push(V)}K=K===void 0?!1:K;G=(["af","be","lt"].includes(zf)||K)&&G<10?JQr().format(G):(new Intl.NumberFormat("en-u-nu-latn")).format(G);J.push(G);G=JQr().format(v);J.push(G);G=":";"da fi id si sr sr-Latn".split(" ").includes(zf)&&(G=".");return J.join(G)}; JQr=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; GGj=function(v,J){var G,K;v=((G=v.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(K=G.videoAuthorizationToken)==null?void 0:K.credentialTransferTokens)||[];for(G=0;GJ;v=G}else v=!1;return v}; s_s=function(v){v=v.split($s[3]);u1.dU(v,1);u1.wF(v,13);u1.XN(v,35);u1.wF(v,11);u1.XN(v,70);u1.dU(v,2);return v.join($s[3])}; g.gt=function(v,J){return v.Ks+"timedtext_video?ref=player&v="+J.videoId}; g.RoU=function(v){var J=this;this.videoData=v;v={};this.T=(v.c1a=function(){var G=[];if(g.fn.isInitialized()){var K="";J.videoData&&J.videoData.H7&&(K=J.videoData.H7+("&r1b="+J.videoData.clientPlaybackNonce));var V={};K=(V.atr_challenge=K,V);HB("bg_v",void 0,"player_att");(K=dVU(K))?(HB("bg_s",void 0,"player_att"),G.push("r1a="+K)):(HB("bg_e",void 0,"player_att"),G.push("r1c=2"))}else HB("bg_e",void 0,"player_att"),window.trayride||window.botguard?G.push("r1c=1"):G.push("r1c=4");G.push("r1d="+g.fn.getState()); return G.join("&")},v.c6a=function(G){return"r6a="+(Number(G.c)^El())},v.c6b=function(G){return"r6b="+(Number(G.c)^Number(g.H$("CATSTAT",0)))},v); this.videoData&&this.videoData.H7?this.Wi=Jh(this.videoData.H7):this.Wi={}}; g.lIX=function(v){if(v.videoData&&v.videoData.H7){for(var J=[v.videoData.H7],G=g.n(Object.keys(v.T)),K=G.next();!K.done;K=G.next())K=K.value,v.Wi[K]&&v.T[K]&&(K=v.T[K](v.Wi))&&J.push(K);return J.join("&")}return null}; g.Xo=function(v,J){ndt(v,{k4B:g.DI(J.experiments,"bg_vm_reinit_threshold"),cspNonce:J.cspNonce,Ks:J.Ks||""})}; Tkm=function(){var v=XMLHttpRequest.prototype.fetch;return!!v&&v.length===3}; Li8=function(v){p5m=2592E3*(v||1)}; kz=function(v){v=v===void 0?p5m:v;if(v>0&&!(HMf()>(0,g.yR)()-v*1E3))return 0;v=g.fq("yt-player-quality");if(typeof v==="string"){if(v=g.Xy[v],v>0)return v}else if(v instanceof Object)return v.quality;return 0}; cx=function(){var v=g.fq("yt-player-proxima-pref");return v==null?null:v}; yQr=function(){var v=g.fq("yt-player-quality");if(v instanceof Object&&v.quality&&v.previousQuality){if(v.quality>v.previousQuality)return 1;if(v.quality0&&J[0]?v.getAutoplayPolicy(J[0]):v.getAutoplayPolicy("mediaelement");if(S68[G])return S68[G]}}catch(K){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; Q8=function(v){return v.IR||v.Qu||v.mutedAutoplay}; fIf=function(v,J){return Q8(v)?J!==1&&J!==2&&J!==0?"AUTOPLAY_STATUS_UNAVAILABLE":v.yK?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; ZX2=function(v,J,G){var K=J.B();v.thirdParty||(v.thirdParty={});K.ancestorOrigins&&(v.thirdParty.embeddedPlayerContext=Object.assign({},v.thirdParty.embeddedPlayerContext,{ancestorOrigins:K.ancestorOrigins}));K.C("embeds_enable_autoplay_and_visibility_signals")&&(K.Ct!=null&&(v.thirdParty.embeddedPlayerContext=Object.assign({},v.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(K.Ct)})),K.Kt&&(v.thirdParty.embeddedPlayerContext=Object.assign({},v.thirdParty.embeddedPlayerContext,{visibilityFractionSource:K.Kt})), v.thirdParty.embeddedPlayerContext=Object.assign({},v.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:Mb(),autoplayIntended:Q8(J),autoplayStatus:fIf(J,G)}))}; X52=function(v,J){WA(v,2,J.TV,Wx,3);WA(v,3,J.w7,uFs,3);Md(v,4,J.onesieUstreamerConfig);Md(v,9,J.wH);WA(v,10,J.aq,Cn,3);WA(v,15,J.reloadPlaybackParams,gdf,3)}; cQ2=function(v,J){WA(v,1,J.formatId,b1,3);Ft(v,2,J.startTimeMs);Ft(v,3,J.durationMs);Ft(v,4,J.S4);Ft(v,5,J.XF);WA(v,9,J.fXB,kG2,3);WA(v,11,J.zkl,jV,1);WA(v,12,J.eV,jV,1)}; NkU=function(v,J){QA(v,1,J.videoId);Ft(v,2,J.lmt)}; kG2=function(v,J){if(J.xV)for(var G=0;G>31));Ft(v,16,J.ARU);Ft(v,17,J.detailedNetworkType);Ft(v,18,J.X6);Ft(v,19,J.A1);Ft(v,21,J.BKY);Ft(v,23,J.aL);Ft(v,28,J.yc);Ft(v,29,J.oPb);Ft(v,34,J.visibility);G=J.playbackRate;if(G!==void 0){var K=new ArrayBuffer(4);(new Float32Array(K))[0]=G;G=(new Uint32Array(K))[0];if(G!==void 0)for(Aa(v,285),ag(v,4),K=0;K<4;)v.view.setUint8(v.pos,G&255),G>>=8,v.pos+=1,K+=1}Ft(v,36,J.OD); WA(v,38,J.mediaCapabilities,FiB,3);Ft(v,39,J.uQ4);Ft(v,40,J.Zh);Ft(v,44,J.playerState);HA(v,46,J.xO);Ft(v,48,J.RU);Ft(v,50,J.Cx);Ft(v,51,J.lH);Ft(v,54,J.sF);if(J.DO)for(G=0;G>31));QA(v,2,J.message)}; $q8=function(v,J){Ft(v,1,J.clientState);WA(v,2,J.qiw,j8s,1)}; bXf=function(v,J){Md(v,1,J.Qti);WA(v,2,J.TMY,iTj,3);WA(v,3,J.coldStartInfo,$q8,3)}; CEt=function(v,J){Ft(v,1,J.type);Md(v,2,J.value)}; WiF=function(v,J){QA(v,1,J.hl);QA(v,12,J.deviceMake);QA(v,13,J.deviceModel);Ft(v,16,J.clientName);QA(v,17,J.clientVersion);QA(v,18,J.osName);QA(v,19,J.osVersion)}; vMU=function(v,J){QA(v,1,J.name);QA(v,2,J.value)}; J6w=function(v,J){QA(v,1,J.url);if(J.OG)for(var G=0;G1&&(this.J=v[1]==="2")}; KH=function(v,J,G,K,V){this.X=v;this.T=J;this.Z=G;this.reason=K;this.ER=V===void 0?0:V}; g.Va=function(v,J,G,K){return new KH(g.Xy[v]||0,g.Xy[J]||0,G,K)}; r3=function(v){if(YV&&v.ER)return!1;var J=g.Xy.auto;return v.X===J&&v.T===J}; E1=function(v){return qB[v.T||v.X]||"auto"}; c6F=function(v,J){J=g.Xy[J];return v.X<=J&&(!v.T||v.T>=J)}; eV=function(v){return"["+v.X+"-"+v.T+", override: "+(v.Z+", reason: "+v.reason+"]")}; Pk=function(v,J,G){this.videoInfos=v;this.T=J;this.audioTracks=[];if(this.T){v=new Set;G==null||G({ainfolen:this.T.length});J=g.n(this.T);for(var K=J.next();!K.done;K=J.next())if(K=K.value,!K.hR||v.has(K.hR.id)){var V=void 0,Y=void 0,r=void 0;(r=G)==null||r({atkerr:!!K.hR,itag:K.itag,xtag:K.T,lang:((V=K.hR)==null?void 0:V.name)||"",langid:((Y=K.hR)==null?void 0:Y.id)||""})}else V=new g.o3(K.id,K.hR),v.add(K.hR.id),this.audioTracks.push(V);G==null||G({atklen:this.audioTracks.length})}}; DP=function(){g.X.apply(this,arguments);this.T=null}; Fp2=function(v,J,G,K,V,Y,r){if(v.T)return v.T;var E={},e=new Set,P={};if(tp(K)){for(var D in K.T)K.T.hasOwnProperty(D)&&(v=K.T[D],P[v.info.aY]=[v.info]);return P}D=NM8(J,K,E);Y&&V({aftsrt:Bk(D)});for(var t={},B=g.n(Object.keys(D)),I=B.next();!I.done;I=B.next()){I=I.value;for(var h=g.n(D[I]),R=h.next();!R.done;R=h.next()){R=R.value;var T=R.itag,L=void 0,O=I+"_"+(((L=R.video)==null?void 0:L.fps)||0);t.hasOwnProperty(O)?t[O]===!0?P[I].push(R):E[T]=t[O]:(L=I3(J,R,G,K.isLive,e),L!==!0?(r.add(I),E[T]=L, L==="disablevp9hfr"&&(t[O]="disablevp9hfr")):(P[I]=P[I]||[],P[I].push(R),t[O]=!0))}}Y&&V({bfflt:Bk(P)});for(var x in P)P.hasOwnProperty(x)&&(K=x,P[K]&&P[K][0].Vk()&&(P[K]=P[K],P[K]=a3m(J,P[K],E),P[K]=A6B(P[K],E)));Y&&Object.keys(E).length>0&&V({rjr:p6(E)});J=g.n(e.values());for(K=J.next();!K.done;K=J.next())(K=G.X.get(K.value))&&--K.Ny;Y&&V({aftflt:Bk(P)});v.T=g.wd(P,function(f){return!!f.length}); return v.T}; Mb8=function(v,J,G,K,V,Y,r,E){E=E===void 0?!1:E;if(J.BO&&r&&r.length>1&&!(J.zb>0||J.N)){for(var e=J.X||!!V,P=e&&J.R$?Y:void 0,D=NM8(J,K),t=[],B=[],I={},h=0;h0&&B&&V&&(D=[r,G],T=V.concat(B).filter(function(L){return L})); if(T.length&&!J.zy){nH(T,D);if(e){e=[];J=g.n(T);for(K=J.next();!K.done;K=J.next())e.push(K.value.itag);Y({hbdfmt:e.join(".")})}return ma(new Pk(T,v,P))}T=GLf(J);T=g.MS(T,E);if(!T){if(t[r])return Y=t[r],nH(Y),ma(new Pk(Y,v,P));e&&Y({novideo:1});return x6()}J.yy&&(T==="1"||T==="1h")&&t[G]&&(r=d3(t[T]),D=d3(t[G]),D>r?T=G:D===r&&o4U(t[G])&&(T=G));T==="9"&&t.h&&d3(t.h)>d3(t["9"])&&(T="h");J.d_&&K.isLive&&T==="("&&t.H&&d3(t["("])<1440&&(T="H");e&&Y({vfmly:s1(T)});J=t[T];if(!J.length)return e&&Y({novfmly:s1(T)}), x6();nH(J);return ma(new Pk(J,v,P))}; Wpj=function(v,J){var G=!(!v.m&&!v.M),K=!(!v.mac3&&!v.MAC3),V=!(!v.meac3&&!v.MEAC3);v=!(!v.i&&!v.I);J.Vy=v;return G||K||V||v}; o4U=function(v){v=g.n(v);for(var J=v.next();!J.done;J=v.next())if(J=J.value,J.itag&&K9w.has(J.itag))return!0;return!1}; bTm=function(v){v=g.n(v);for(var J=v.next();!J.done;J=v.next())if(J.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; s1=function(v){switch(v){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return v}}; Bk=function(v){var J=[],G;for(G in v)if(v.hasOwnProperty(G)){var K=G;J.push(s1(K));K=g.n(v[K]);for(var V=K.next();!V.done;V=K.next())J.push(V.value.itag)}return J.join(".")}; Q8j=function(v,J,G,K,V,Y){var r={},E={};g.y2(J,function(e,P){e=e.filter(function(D){var t=D.itag;if(!D.k5)return E[t]="noenc",!1;if(Y.g_&&D.aY==="(h"&&Y.o$)return E[t]="lichdr",!1;if(!v.L&&D.aY==="1e")return E[t]="noav1enc",!1;if(D.aY==="("||D.aY==="(h"){if(v.Z&&G&&G.flavor==="widevine"){var B=D.mimeType+"; experimental=allowed";(B=!!D.k5[G.flavor]&&!!G.T[B])||(E[t]=D.k5[G.flavor]?"unspt":"noflv");return B}if(!R3(v,lf.CRYPTOBLOCKFORMAT)&&!v.qr||v.Ze)return E[t]=v.Ze?"disvp":"vpsub",!1}return G&&D.k5[G.flavor]&& G.T[D.mimeType]?!0:(E[t]=G?D.k5[G.flavor]?"unspt":"noflv":"nosys",!1)}); e.length&&(r[P]=e)}); K&&Object.entries(E).length&&V({rjr:p6(E)});return r}; A6B=function(v,J){var G=OX(v,function(K,V){return V.video.fps>32?Math.min(K,V.video.width):K},Infinity); G32||K.video.widthv.K)return"max"+v.K;if(v.Nr&&J.aY==="h"&&J.video&&J.video.qualityOrdinal>1080)return"blkhigh264";if(J.aY==="(h"&&!G.K)return"enchdr";if((K===void 0?0:K)&&C6(J)&&!v.Gi)return"blk51live";if((J.aY==="MAC3"||J.aY==="mac3")&&!v.J)return"blkac3";if((J.aY==="MEAC3"||J.aY==="meac3")&&!v.j)return"blkeac3";if(J.aY==="M"||J.aY==="m")return"blkaac51"; if((J.aY==="so"||J.aY==="sa")&&!v.Ti)return"blkamb";if(!v.g_&&PdF(J)&&(!G.L||J.aY!=="1e"))return"cbc";if(!G.L&&PdF(J)&&J.aY==="1e")return"cbcav1";if((J.aY==="i"||J.aY==="I")&&!v.UR)return"blkiamf";if(J.itag==="774"&&!v.Ze)return"blkouh";var Y,r;if(v.BH&&(J.aY==="1"||J.aY==="1h"||G.L&&J.aY==="1e")&&((Y=J.video)==null?0:Y.qualityOrdinal)&&((r=J.video)==null?void 0:r.qualityOrdinal)>v.BH)return"av1cap";if((K=G.X.get(J.aY))&&K.Ny>0)return V.add(J.aY),"byerr";var E;if((E=J.video)==null?0:E.fps>32){if(!G.Mr&& !R3(G,lf.FRAMERATE))return"capHfr";if(v.WH&&J.video.qualityOrdinal>=4320)return"blk8khfr";if(Fy(J)&&v.Mj&&J.k5&&J.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(v.ER&&J.ER>v.ER)return"ratecap";v=VRB(G,J);return v!==!0?v:!0}; nH=function(v,J){J=J===void 0?[]:J;g.q_(v,function(G,K){var V=K.ER-G.ER;if(!G.Vk()||!K.Vk())return V;var Y=K.video.height*K.video.width-G.video.height*G.video.width;!Y&&J&&J.length>0&&(G=J.indexOf(G.aY)+1,K=J.indexOf(K.aY)+1,Y=G===0||K===0?K||-1:G-K);Y||(Y=V);return Y})}; g.TV=function(v,J){this.X=v;this.L=J===void 0?!1:J;this.Z=this.path=this.scheme=$s[3];this.T={};this.url=$s[3]}; LH=function(v){pH(v);return v.Z}; ya=function(v){return v.X?v.X.startsWith($s[8]):v.scheme===$s[8]}; YjF=function(v){pH(v);return g.UA(v.T,function(J){return J!==null})}; w3=function(v){pH(v);var J=decodeURIComponent(v.get($s[24])||$s[3]).split($s[20]);return v.path===$s[19]&&J.length>1&&!!J[1]}; O1=function(v,J){J=J===void 0?!1:J;pH(v);if(v.path!==$s[19]){var G=v.clone();G.set($s[33],$s[23]);return G}var K=v.Dm();G=new g.RW(K);var V=v.get($s[45]),Y=decodeURIComponent(v.get($s[24])||$s[3]).split($s[20]);if(V&&Y&&Y.length>1&&Y[1])return K=G.T,v=K.replace(/^[^.]*/,$s[3]),g.TO(G,(K.indexOf($s[29])===0?$s[29]:$s[0])+V+$s[17]+Y[1]+v),G=new g.TV(G.toString()),G.set($s[32],$s[23]),G;if(J)return G=v.clone(),G.set($s[32],$s[23]),G;V=G.T.match($s[36]);G.T.match($s[28])?(g.TO(G,$s[35]),K=G.toString()): G.T.match($s[26])?(g.TO(G,$s[1]),K=G.toString()):(G=J9X(K),$M(G)&&(K=G));G=new g.TV(K);G.set($s[27],$s[23]);V&&G.set($s[5],$s[44]);return G}; pH=function(v){if(v.X){if(!$M(v.X)&&!v.X.startsWith($s[8]))throw new g.Mk($s[21],v.X);var J=g.xa(v.X);v.scheme=J.J;v.Z=J.T+(J.Z!=null?$s[11]+J.Z:$s[3]);var G=J.X;if(G.startsWith($s[19]))v.path=$s[19],G=G.slice(14);else if(G.startsWith($s[31]))v.path=$s[31],G=G.slice(13);else if(G.startsWith($s[30])){var K=G.indexOf($s[25],12),V=G.indexOf($s[25],K+1);K>0&&V>0?(v.path=G.slice(0,V),G=G.slice(V+1)):(v.path=G,G=$s[3])}else v.path=G,G=$s[3];K=v.T;v.T=rsm(G);Object.assign(v.T,qj2(J.L.toString()));Object.assign(v.T, K);v.T.file===$s[10]&&(delete v.T.file,v.path+=$s[43]);v.X=$s[3];v.url=$s[3];v.L&&(J=S_F(),pH(v),G=v.T[J]||null)&&(G=E4X[0](G),v.set(J,G),v.L||S_F($s[3]))}}; e2j=function(v){pH(v);var J=v.scheme+(v.scheme?$s[34]:$s[12])+v.Z+v.path;if(YjF(v)){var G=[];g.y2(v.T,function(K,V){K!==null&&G.push(V+$s[16]+K)}); J+=$s[2]+G.join($s[4])}return J}; rsm=function(v){v=v.split($s[25]);var J=0;v[0]||J++;for(var G={};J0?PDL(J,K.slice(0,V),K.slice(V+1)):K&&(J[K]=$s[3])}return J}; PDL=function(v,J,G){if(J===$s[7]){var K;(K=G.indexOf($s[16]))>=0?(J=$s[22]+G.slice(0,K),G=G.slice(K+1)):(K=G.indexOf($s[15]))>=0&&(J=$s[22]+G.slice(0,K),G=G.slice(K+3))}v[J]=G}; U1=function(v){var J=g.N(v,D9m)||v.signatureCipher;v={LV:!1,W9:$s[3],sf:$s[3],s:$s[3]};if(!J)return v;J=Jh(J);v.LV=!0;v.W9=J.url;v.sf=J.sp;v.s=J.s;return v}; xV=function(v,J,G,K,V,Y,r,E,e){this.yb=v;this.startTime=J;this.duration=G;this.ingestionTime=K;this.sourceURL=V;this.Pv=e;this.endTime=J+G;this.T=r||0;this.range=Y||null;this.pending=E||!1;this.Pv=e||null}; g.mL=function(){this.segments=[];this.T=null;this.X=!0;this.Z=""}; tRX=function(v,J){if(J>v.wd())v.segments=[];else{var G=HN(v.segments,function(K){return K.yb>=J},v); G>0&&v.segments.splice(0,G)}}; SV=function(v,J,G,K,V){V=V===void 0?!1:V;this.data=v;this.offset=J;this.size=G;this.type=K;this.T=(this.X=V)?0:8;this.dataOffset=this.offset+this.T}; fH=function(v){var J=v.data.getUint8(v.offset+v.T);v.T+=1;return J}; ZP=function(v){var J=v.data.getUint16(v.offset+v.T);v.T+=2;return J}; uf=function(v){var J=v.data.getInt32(v.offset+v.T);v.T+=4;return J}; g3=function(v){var J=v.data.getUint32(v.offset+v.T);v.T+=4;return J}; XS=function(v){var J=v.data;var G=v.offset+v.T;J=J.getUint32(G)*4294967296+J.getUint32(G+4);v.T+=8;return J}; kV=function(v,J){J=J===void 0?NaN:J;if(isNaN(J))var G=v.size;else for(G=v.T;G1?Math.ceil(V*J):Math.floor(V*J))}v.skip(1);G=fH(v)<<16|ZP(v);if(G&256){K=G&1;V=G&4;var Y=G&512,r=G&1024,E=G&2048;G=g3(v);K&&v.skip(4);V&&v.skip(4);K=(Y?4:0)+(r?4:0)+(E?4:0);for(V=0;V1?Math.ceil(r*J):Math.floor(r*J)),v.skip(K)}}}; Wk=function(v){v=new DataView(v.buffer,v.byteOffset,v.byteLength);return(v=g.MB(v,0,1836476516))?g.Qa(v):NaN}; pEm=function(v){var J=g.MB(v,0,1937011556);if(!J)return null;J=CH(v,J.dataOffset+8,1635148593)||CH(v,J.dataOffset+8,1635135537);if(!J)return null;var G=CH(v,J.dataOffset+78,1936995172),K=CH(v,J.dataOffset+78,1937126244);if(!K)return null;J=null;if(G)switch(G.skip(4),fH(G)){default:J=0;break;case 1:J=2;break;case 2:J=1;break;case 3:J=255}var V=G=null,Y=null;if(K=CH(v,K.dataOffset,1886547818)){var r=CH(v,K.dataOffset,1886546020),E=CH(v,K.dataOffset,2037673328);if(!E&&(E=CH(v,K.dataOffset,1836279920), !E))return null;r&&(r.skip(4),G=uf(r)/65536,Y=uf(r)/65536,V=uf(r)/65536);v=Bfs(E);v=new DataView(v.buffer,v.byteOffset+8,v.byteLength-8);return new lsf(J,G,Y,V,v)}return null}; CH=function(v,J,G){for(;bf(v,J);){var K=j$(v,J);if(K.type===G)return K;J+=K.size}return null}; g.MB=function(v,J,G){for(;bf(v,J);){var K=j$(v,J);if(K.type===G)return K;J=i8(K.type)?J+8:J+K.size}return null}; g.$x=function(v){if(v.data.getUint8(v.dataOffset)){var J=v.data;v=v.dataOffset+4;J=J.getUint32(v)*4294967296+J.getUint32(v+4)}else J=v.data.getUint32(v.dataOffset+4);return J}; j$=function(v,J){var G=v.getUint32(J),K=v.getUint32(J+4);return new SV(v,J,G,K)}; g.Qa=function(v){var J=v.data.getUint8(v.dataOffset)?20:12;return v.data.getUint32(v.dataOffset+J)}; L9j=function(v){v=new SV(v.data,v.offset,v.size,v.type,v.X);var J=fH(v);v.skip(7);var G=g3(v);if(J===0){J=g3(v);var K=g3(v)}else J=XS(v),K=XS(v);v.skip(2);for(var V=ZP(v),Y=[],r=[],E=0;E122)return!1}return!0}; i8=function(v){return v===1701082227||v===1836019558||v===1836019574||v===1835297121||v===1835626086||v===1937007212||v===1953653094||v===1953653099||v===1836475768}; ysj=function(v){v.skip(4);return{Hs4:kV(v,0),value:kV(v,0),timescale:g3(v),xwB:g3(v),qFr:g3(v),id:g3(v),Nb:kV(v),offset:v.offset}}; g.wEt=function(v){var J=CH(v,0,1701671783);if(!J)return null;var G=ysj(J),K=G.Hs4;G=Hk(G.Nb);if(v=CH(v,J.offset+J.size,1701671783))if(v=ysj(v),v=Hk(v.Nb),G&&v){J=g.n(Object.keys(v));for(var V=J.next();!V.done;V=J.next())V=V.value,G[V]=v[V]}return G?new Ap(G,K):null}; vw=function(v,J){for(var G=CH(v,0,J);G;){var K=G;K.type=1936419184;K.data.setUint32(K.offset+4,1936419184);G=CH(v,G.offset+G.size,J)}}; g.Jf=function(v,J){for(var G=0,K=[];bf(v,G);){var V=j$(v,G);V.type===J&&K.push(V);G=i8(V.type)?G+8:G+V.size}return K}; O6j=function(v,J){var G=g.MB(v,0,1937011556),K=g.MB(v,0,1953654136);if(!G||!K||v.getUint32(G.offset+12)>=2)return null;var V=new DataView(J.buffer,J.byteOffset,J.length),Y=g.MB(V,0,1937011556);if(!Y)return null;J=V.getUint32(Y.dataOffset+8);K=V.getUint32(Y.dataOffset+12);if(K!==1701733217&&K!==1701733238)return null;K=new Isw(v.byteLength+J);ck(K,v,0,G.offset+12);K.data.setInt32(K.offset,2);K.offset+=4;ck(K,v,G.offset+16,G.size-16);ck(K,V,V.byteOffset+Y.dataOffset+8,J);ck(K,v,G.offset+G.size,v.byteLength- (G.offset+G.size));G=g.n([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(V=G.next();!V.done;V=G.next())V=g.MB(v,0,V.value),K.data.setUint32(V.offset,V.size+J);v=g.MB(K.data,0,1953654136);K.data.setUint32(v.offset+16,2);return K.data}; U9U=function(v){var J=g.MB(v,0,1937011556);if(!J)return null;var G=v.getUint32(J.dataOffset+12);if(G!==1701733217&&G!==1701733238)return null;J=CH(v,J.offset+24+(G===1701733217?28:78),1936289382);if(!J)return null;G=CH(v,J.offset+8,1935894637);if(!G||v.getUint32(G.offset+12)!==1667392371)return null;J=CH(v,J.offset+8,1935894633);if(!J)return null;J=CH(v,J.offset+8,1952804451);if(!J)return null;G=new Uint8Array(16);for(var K=0;K<16;K++)G[K]=v.getInt8(J.offset+16+K);return G}; Gn=function(v,J){this.T=v;this.pos=0;this.start=J||0}; oZ=function(v){return v.pos>=v.T.byteLength}; qm=function(v,J,G){var K=new Gn(G);if(!Kb(K,v))return!1;K=V$(K);if(!Yx(K,J))return!1;for(v=0;J;)J>>>=8,v++;J=K.start+K.pos;var V=r4(K,!0);K=v+(K.start+K.pos-J)+V;K=K>9?x9B(K-9,8):x9B(K-2,1);v=J-v;G.setUint8(v++,236);for(J=0;JG;V++)G=G*256+tf(v),K*=128;return J?G-K:G}; e$=function(v){var J=r4(v,!0);v.pos+=J}; fsm=function(v){if(!Yx(v,440786851,!0))return null;var J=v.pos;r4(v,!1);var G=r4(v,!0)+v.pos-J;v.pos=J+G;if(!Yx(v,408125543,!1))return null;r4(v,!0);if(!Yx(v,357149030,!0))return null;var K=v.pos;r4(v,!1);var V=r4(v,!0)+v.pos-K;v.pos=K+V;if(!Yx(v,374648427,!0))return null;var Y=v.pos;r4(v,!1);var r=r4(v,!0)+v.pos-Y,E=new Uint8Array(G+12+V+r),e=new DataView(E.buffer);E.set(new Uint8Array(v.T.buffer,v.T.byteOffset+J,G));e.setUint32(G,408125543);e.setUint32(G+4,33554431);e.setUint32(G+8,4294967295); E.set(new Uint8Array(v.T.buffer,v.T.byteOffset+K,V),G+12);E.set(new Uint8Array(v.T.buffer,v.T.byteOffset+Y,r),G+12+V);return E}; Bw=function(v){var J=v.pos;v.pos=0;var G=1E6;Kb(v,[408125543,357149030,2807729])&&(G=EH(v));v.pos=J;return G}; Z6B=function(v,J){var G=v.pos;v.pos=0;if(v.T.getUint8(v.pos)!==160&&!IZ(v)||!Yx(v,160))return v.pos=G,NaN;r4(v,!0);var K=v.pos;if(!Yx(v,161))return v.pos=G,NaN;r4(v,!0);tf(v);var V=tf(v)<<8|tf(v);v.pos=K;if(!Yx(v,155))return v.pos=G,NaN;K=EH(v);v.pos=G;return(V+K)*J/1E9}; IZ=function(v){if(!uyL(v)||!Yx(v,524531317))return!1;r4(v,!0);return!0}; uyL=function(v){if(v.qd()){if(!Yx(v,408125543))return!1;r4(v,!0)}return!0}; Kb=function(v,J){for(var G=0;G0){var K=qj2(J.substring(G+1));g.y2(K,function(V,Y){this.set(Y,V)},v); J=J.substring(0,G)}J=rsm(J);g.y2(J,function(V,Y){this.set(Y,V)},v)}; XEX=function(v){var J=v.base.Dm(),G=[];g.y2(v.T,function(V,Y){G.push(Y+"="+V)}); if(!G.length)return J;var K=G.join("&");v=YjF(v.base)?"&":"?";return J+v+K}; zn=function(v,J){var G=new g.TV(J);(J=G.get("req_id"))&&v.set("req_id",J);g.y2(v.T,function(K,V){G.set(V,null)}); return G}; kLm=function(){this.L=this.Z=this.T=this.timedOut=this.started=this.J=this.X=0}; nb=function(v){v.J=(0,g.yR)();v.started=0;v.timedOut=0;v.T=0}; d4=function(v,J){var G=v.started+v.T*4;J&&(G+=v.Z);G=Math.max(0,G-3);return Math.pow(1.6,G)}; sH=function(v,J){v[J]||(v[J]=new kLm);return v[J]}; RZ=function(v){this.N=this.K=this.J=this.X=0;this.U=this.j=!1;this.T=v;this.Z=v.clone()}; csw=function(v,J,G){if(ya(v.T))return!1;var K=sH(G,LH(v.T));if(K.timedOut<1&&K.T<1)return!1;K=K.timedOut+K.T;v=l8(v,J);G=sH(G,LH(v));return G.timedOut+G.T+01?J=J.Bx:(G=sH(G,pb(v,v.Mm(J,G),J)),J=Math.max(v.J,G.timedOut)+J.sY*(v.X-v.J)+.25*v.K,J=J>3?1E3*Math.pow(1.6,J-3):0);return J===0?!0:v.N+J<(0,g.yR)()}; Nfw=function(v,J,G){v.T.set(J,G);v.Z.set(J,G);v.L&&v.L.set(J,G)}; asF=function(v,J,G,K,V){++v.X;J&&++v.J;LH(G.base).startsWith("redirector.")&&(v.T=v.Z.clone(),delete v.L,K.bC&&delete V[LH(v.T)])}; y$=function(v){return v?(v.itag||"")+";"+(v.lmt||0)+";"+(v.xtags||""):""}; w4=function(v,J,G,K){this.initRange=G;this.indexRange=K;this.T=null;this.Z=!1;this.j=0;this.L=this.cT=this.X=null;this.info=J;this.v$=new RZ(v)}; OH=function(v,J){this.start=v;this.end=J;this.length=J-v+1}; UH=function(v){v=v.split("-");var J=Number(v[0]),G=Number(v[1]);if(!isNaN(J)&&!isNaN(G)&&v.length===2&&(v=new OH(J,G),!isNaN(v.start)&&!isNaN(v.end)&&!isNaN(v.length)&&v.length>0))return v}; xx=function(v,J){return new OH(v,v+J-1)}; As8=function(v){return v.end==null?{start:String(v.start)}:{start:String(v.start),end:String(v.end)}}; mu=function(v){if(!v)return new OH(0,0);var J=Number(v.start);v=Number(v.end);if(!isNaN(J)&&!isNaN(v)&&(J=new OH(J,v),J.length>0))return J}; S$=function(v,J,G,K,V,Y,r,E,e,P,D,t){K=K===void 0?"":K;this.type=v;this.T=J;this.range=G;this.source=K;this.cC=D;this.clipId=t===void 0?"":t;this.N=[];this.K="";this.yb=-1;this.oY=this.Ti=0;this.K=K;this.yb=V>=0?V:-1;this.startTime=Y||0;this.duration=r||0;this.X=E||0;this.Z=e>=0?e:this.range?this.range.length:NaN;this.J=this.range?this.X+this.Z===this.range.length:P===void 0?!!this.Z:P;this.range?(this.L=this.startTime+this.duration*this.X/this.range.length,this.U=this.duration*this.Z/this.range.length, this.j=this.L+this.U):F98(this)}; F98=function(v){v.L=v.startTime;v.U=v.duration;v.j=v.L+v.U}; H6f=function(v,J,G){var K=!(!J||J.T!==v.T||J.type!==v.type||J.yb!==v.yb);return G?K&&!!J&&(v.range&&J.range?J.range.end===v.range.end:J.range===v.range)&&J.X+J.Z===v.X+v.Z:K}; fb=function(v){return v.type===1||v.type===2}; ZS=function(v){return v.type===3||v.type===6}; u8=function(v,J){return v.T===J.T?v.range&&J.range?v.range.start+v.X+v.Z===J.range.start+J.X:v.yb===J.yb?v.X+v.Z===J.X:v.yb+1===J.yb&&J.X===0&&v.J:!1}; Q$s=function(v,J){return v.yb!==J.yb&&J.yb!==v.yb+1||v.type!==J.type?!1:u8(v,J)?!0:Math.abs(v.L-J.L)<=1E-6&&v.yb===J.yb?!1:MRf(v,J)}; MRf=function(v,J){return u8(v,J)||Math.abs(v.j-J.L)<=1E-6||v.yb+1===J.yb&&J.X===0&&v.J?!0:!1}; g4=function(v){return v.yb+(v.J?1:0)}; W9F=function(v){v.length===1||g.wn(v,function(G){return!!G.range}); for(var J=1;J=J.range.start+J.X&&v.range.start+v.X+v.Z<=J.range.start+J.X+J.Z:v.yb===J.yb&&v.X>=J.X&&(v.X+v.Z<=J.X+J.Z||J.J)}; JBf=function(v,J){return v.T!==J.T?!1:v.type===4&&J.type===3&&v.T.U9()?(v=v.T.ME(v),yM(v,function(G){return JBf(G,J)})):v.yb===J.yb&&!!J.Z&&J.X+J.Z>v.X&&J.X+J.Z<=v.X+v.Z}; kx=function(v,J){var G=J.yb;v.K="updateWithSegmentInfo";v.yb=G;if(v.startTime!==J.startTime||v.duration!==J.duration)v.startTime=J.startTime+v.Ti,v.duration=J.duration,F98(v)}; cw=function(v,J){var G=this;this.Vb=v;this.L=this.T=null;this.J=this.zl=NaN;this.Mm=this.requestId=null;this.cO={m_t:function(){return G.range}}; this.v$=v[0].T.v$;this.X=J||"";this.Vb[0].range&&this.Vb[0].Z>0&&(CDw(v)?(this.range=W9F(v),this.Z=this.range.length):(this.range=this.Vb[this.Vb.length-1].range,this.Z=b6F(v)))}; Nm=function(v){return!fb(v.Vb[v.Vb.length-1])}; aZ=function(v){return v.Vb[v.Vb.length-1].type===4}; g.Af=function(v,J,G){G=v.Mm===null?v.v$.Mm(J,G,v.Vb[0].type):v.Mm;if(v.T){J=G?O1(v.T,J.Aw):v.T;var K=new hf(J);K.get("alr")||K.set("alr","yes");v.X&&g4B(K,v.X)}else/http[s]?:\/\//.test(v.X)?K=new hf(new g.TV(v.X)):(K=Tn(v.v$,G,J),v.X&&g4B(K,v.X));(J=v.range)?K.set("range",J.toString()):v.Vb[0].T.S1()&&v.Vb.length===1&&v.Vb[0].X&&K.set("range",v.Vb[0].X+"-");v.requestId&&K.set("req_id",v.requestId);isNaN(v.zl)||K.set("headm",v.zl.toString());isNaN(v.J)||K.set("mffa",v.J+"ms");v.urlParams&&g.y2(v.urlParams, function(V,Y){K.set(Y,V)}); return K}; Gz2=function(v){if(v.range)return v.Z;v=v.Vb[0];return Math.round(v.U*v.T.info.ER)}; oGm=function(v,J){return Math.max(0,v.Vb[0].L-J)}; Fr=function(v,J,G,K,V,Y){Y=Y===void 0?0:Y;w4.call(this,v,J,K,void 0);this.J=G;this.eF=Y;this.index=V||new g.mL}; Klw=function(v,J,G,K,V){this.yb=v;this.startSecs=J;this.ON=G;this.T=K||NaN;this.X=V||NaN}; Hw=function(v,J,G){for(;v;v=v.parentNode)if(v.attributes&&(!G||v.nodeName===G)){var K=v.getAttribute(J);if(K)return K}return""}; Mm=function(v,J){for(;v;v=v.parentNode){var G=v.getElementsByTagName(J);if(G.length>0)return G[0]}return null}; Vl8=function(v){if(!v)return 0;var J=v.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(v)|0}; YPt=function(v){return v.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?v+"Z":v}; Q$=function(){this.T=[];this.X=null;this.j=0;this.Z=[];this.J=!1;this.K="";this.L=-1}; rBw=function(v){var J=v.Z;v.Z=[];return J}; qPL=function(){this.L=[];this.T=null;this.X={};this.Z={}}; DGU=function(v,J){var G=[];J=Array.from(J.getElementsByTagName("SegmentTimeline"));J=g.n(J);for(var K=J.next();!K.done;K=J.next()){K=K.value;var V=K.parentNode.parentNode,Y=null;V.nodeName==="Period"?Y=EGm(v):V.nodeName==="AdaptationSet"?(V=V.getAttribute("id")||V.getAttribute("mimetype")||"",Y=ekf(v,V)):V.nodeName==="Representation"&&(V=V.getAttribute("id")||"",Y=PSs(v,V));if(Y==null)return;Y.update(K);g.JE(G,rBw(Y))}g.JE(v.L,G);$Sm(v.L,function(r){return r.startSecs*1E3+r.T})}; tlr=function(v){v.T&&(v.T.T=[]);g.y2(v.X,function(J){J.T=[]}); g.y2(v.Z,function(J){J.T=[]})}; EGm=function(v){v.T||(v.T=new Q$);return v.T}; ekf=function(v,J){v.X[J]||(v.X[J]=new Q$);return v.X[J]}; PSs=function(v,J){v.Z[J]||(v.Z[J]=new Q$);return v.Z[J]}; Cb=function(v){var J=v===void 0?{}:v;v=J.eF===void 0?0:J.eF;var G=J.lj===void 0?!1:J.lj;var K=J.An===void 0?0:J.An;var V=J.yk===void 0?0:J.yk;var Y=J.zv===void 0?Infinity:J.zv;var r=J.jZ===void 0?0:J.jZ;var E=J.mU===void 0?!1:J.mU;J=J.BM===void 0?!1:J.BM;g.mL.call(this);this.t5=this.Ba=-1;this.BG=v;this.An=K;this.lj=G;this.yk=V;this.zv=Y;this.jZ=r;((this.mU=E)||isFinite(Y)&&this.zv>0)&&G&&Ww&&(this.X=!1,this.Z="postLive");this.BM=J}; b8=function(v,J){return r6(v.segments,function(G){return J-G.yb})}; j2=function(v,J,G){G=G===void 0?{}:G;Fr.call(this,v,J,"",void 0,void 0,G.eF||0);this.index=new Cb(G)}; iB=function(v,J,G){w4.call(this,v,J);this.J=G;v=this.index=new g.mL;v.X=!1;v.Z="d"}; Bj8=function(v,J,G){var K=v.index.w1(J),V=v.index.getStartTime(J),Y=v.index.getDuration(J);G?Y=G=0:G=v.info.ER*Y;return new cw([new S$(3,v,void 0,"otfCreateRequestInfoForSegment",J,V,Y,0,G)],K)}; IoX=function(v,J){if(!v.index.isLoaded()){var G=[],K=J.L;J=J.J.split(",").filter(function(D){return D.length>0}); for(var V=0,Y=0,r=0,E=/^(\d+)/,e=/r=(\d+)/,P=0;PK)return null}else if(G&&(G=v.T,K=J.T,G=!(K.y9.length?lEX(G,K.y9[0]):1)),G)return null;G=new S$(v.info.type,v.info.T,v.info.range,v.info.K,v.info.yb,v.info.startTime,v.info.duration,v.info.X,v.info.Z,v.info.J,v.info.cC,v.info.clipId);K=J.info;G.Z+=K.Z;G.range&&(G.U+=K.U);G.j=K.j;G.J=K.J;K=new zp;np(K,v.T);np(K,J.T);G=new $I(G,K);G.X= J.X||v.X;G.Z=v.Z!==-1?v.Z:J.Z;G.L=v.L!==-1?v.L:J.L;return G}; g.J1=function(v){g.bD(v.info.T.info)||v.info.T.info.M1();if(v.Z!==-1)return v.Z;if(v.X&&n4f(v.X))return v.Z=n4f(v.X),v.Z;if(g.bD(v.info.T.info)){var J=v.s1();for(var G=v.info.T.T,K=NaN,V=NaN,Y=0;bf(J,Y);){var r=j$(J,Y);r.type===1936286840?V=r.data.getUint32(r.dataOffset+8):r.type===1836476516?V=g.Qa(r):r.type===1952867444&&isNaN(K)&&(K=g.$x(r));Y=i8(r.type)?Y+8:Y+r.size}!V&&G&&(V=Wk(G));J=K/V}else J=new Gn(v.s1()),G=v.J?J:new Gn(new DataView(v.info.T.T.buffer)),K=Bw(G),G=J.pos,J.pos=0,IZ(J)?Yx(J, 231)?(K=EH(J)*K/1E9,J.pos=G,J=K):(J.pos=G,J=NaN):(J.pos=G,J=NaN);v.Z=J||v.info.L;return v.Z}; nGU=function(v,J){v.timestampOffset>0&&(J-=v.timestampOffset);var G=g.J1(v)+J;zk8(v,G);v.timestampOffset=J}; zk8=function(v,J){g.bD(v.info.T.info)||v.info.T.info.M1();v.Z=J;if(g.bD(v.info.T.info)){var G=v.s1();v=v.info.T.T;for(var K=NaN,V=NaN,Y=0;bf(G,Y);){var r=j$(G,Y);isNaN(K)&&(r.type===1936286840?K=r.data.getUint32(r.dataOffset+8):r.type===1836476516&&(K=g.Qa(r)));if(r.type===1952867444){!K&&v&&(K=Wk(v));var E=g.$x(r);isNaN(V)&&(V=Math.round(J*K)-E);var e=r;E+=V;if(e.data.getUint8(e.dataOffset)){var P=e.data;e=e.dataOffset+4;P.setUint32(e,Math.floor(E/4294967296));P.setUint32(e+4,E&4294967295)}else e.data.setUint32(e.dataOffset+ 4,E)}Y=i8(r.type)?Y+8:Y+r.size}return!0}G=new Gn(v.s1());v=v.J?G:new Gn(new DataView(v.info.T.T.buffer));K=Bw(v);v=G.pos;G.pos=0;if(IZ(G)&&Yx(G,231))if(V=r4(G,!0),J=Math.floor(J*1E9/K),Math.ceil(Math.log(J)/Math.log(2)/8)>V)J=!1;else{for(K=V-1;K>=0;K--)G.T.setUint8(G.pos+K,J&255),J>>>=8;G.pos=v;J=!0}else J=!1;return J}; oB=function(v,J){J=J===void 0?!1:J;var G=GP(v);v=J?0:v.info.U;return G||v}; GP=function(v){g.bD(v.info.T.info)||v.info.T.info.M1();if(v.X&&v.info.type===6)return v.X.eF;if(g.bD(v.info.T.info)){var J=v.s1();var G=0;J=g.Jf(J,1936286840);J=g.n(J);for(var K=J.next();!K.done;K=J.next())K=L9j(K.value),G+=K.BK[0]/K.timescale;G=G||NaN;if(!(G>=0))a:{G=v.s1();J=v.info.T.T;for(var V=K=0,Y=0;bf(G,K);){var r=j$(G,K);if(r.type===1836476516)V=g.Qa(r);else if(r.type===1836019558){!V&&J&&(V=Wk(J));if(!V){G=NaN;break a}var E=CH(r.data,r.dataOffset,1953653094),e=E;E=V;var P=CH(e.data,e.dataOffset, 1952868452);e=CH(e.data,e.dataOffset,1953658222);var D=uf(P);uf(P);D&2&&uf(P);P=D&8?uf(P):0;var t=uf(e),B=t&1;D=t&4;var I=t&256,h=t&512,R=t&1024;t&=2048;var T=g3(e);B&&uf(e);D&&uf(e);for(var L=B=0;L2048?"":J.indexOf("https://")===0?J:""}; E4=function(v,J,G){J.match(xGB);return v(J,G).then(function(K){var V=g.UGm(K.xhr);return V?E4(v,V,G):K.xhr})}; t1=function(v,J,G){v=v===void 0?"":v;J=J===void 0?null:J;G=G===void 0?!1:G;g.qU.call(this);var K=this;this.sourceUrl=v;this.isLivePlayback=G;this.xB=this.duration=0;this.isPremiere=this.mU=this.L=this.isLiveHeadPlayable=this.isLive=this.X=!1;this.zv=this.yk=0;this.isOtf=this.yn=!1;this.Gi=(0,g.yR)();this.oY=Infinity;this.T={};this.Z=new Map;this.state=this.PG=0;this.timeline=null;this.isManifestless=!1;this.dh=[];this.j=null;this.Ze=0;this.J="";this.Mr=NaN;this.YB=this.OR=this.timestampOffset=this.K= 0;this.Iw=this.XS=NaN;this.yy=0;this.RY=this.N=!1;this.qr=[];this.jl={};this.Ti=NaN;this.cO={aXY:function(E){e2(K,E)}}; var V;this.BH=(V=J)==null?void 0:V.OB("html5_use_network_error_code_enums");mGF=!!J&&J.OB("html5_modern_vp9_mime_type");var Y;PZ=!((Y=J)==null||!Y.OB("html5_enable_flush_during_seek"))&&g.FX();var r;DT=!((r=J)==null||!r.OB("html5_enable_reset_audio_decoder"))&&g.FX()}; SPt=function(v){return g.UA(v.T,function(J){return!!J.info.video&&J.info.video.qualityOrdinal>=2160})}; JsB=function(v){return g.UA(v.T,function(J){return!!J.info.video&&J.info.video.isHdr()})}; hp=function(v){return g.UA(v.T,function(J){return!!J.info.k5})}; g.fow=function(v){return g.UA(v.T,function(J){return JB(J.info.mimeType)})}; ZtF=function(v){return g.UA(v.T,function(J){return J.info.video?J.info.video.projectionType==="EQUIRECTANGULAR":!1})}; ujj=function(v){return g.UA(v.T,function(J){return J.info.video?J.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; gGw=function(v){return g.UA(v.T,function(J){return J.info.video?J.info.video.projectionType==="MESH":!1})}; XIF=function(v){return g.UA(v.T,function(J){return J.info.video?J.info.video.stereoLayout===1:!1})}; kzw=function(v){return cA8(v.T,function(J){return J.info.video?J.ZK():!0})}; tp=function(v){return g.UA(v.T,function(J){return ya(J.v$.T)})}; e2=function(v,J){v.T[J.info.id]=J;v.Z.set(y$(g.iS(J.info,v.yn)),J)}; cBL=function(v,J){return y$({itag:J.itag,lmt:v.yn?0:J.lmt||0,xtags:J.xtags})}; h1=function(v,J,G){G=G===void 0?0:G;var K=v.mimeType||"",V=v.itag;var Y=v.xtags;V=V?V.toString():"";Y&&(V+=";"+Y);Y=V;if(vI(K)){var r=v.width||640;V=v.height||360;var E=v.fps,e=v.qualityLabel,P=v.colorInfo,D=v.projectionType,t;v.stereoLayout&&(t=Njf[v.stereoLayout]);var B=wIr(v)||void 0;if(P==null?0:P.primaries)var I=ao8[P.primaries]||void 0;r=new k4(r,V,E,D,t,void 0,e,B,I);K=BZ(K,r,a$[v.itag||""]);PZ&&(K+="; enableflushduringseek=true");DT&&(K+="; enableresetaudiodecoder=true")}var h;if($G(K)){var R= v.audioSampleRate;t=v.audioTrack;R=new uD(R?+R:void 0,v.audioChannels,v.spatialAudioType,v.isDrc,v.loudnessDb,v.trackAbsoluteLoudnessLkfs,v.audioQuality||"AUDIO_QUALITY_UNKNOWN");t&&(I=t.displayName,V=t.id,t=t.audioIsDefault,I&&(h=new g.q5(I,V||"",!!t)))}var T;v.captionTrack&&(e=v.captionTrack,t=e.displayName,I=e.vssId,V=e.languageCode,E=e.kind,e=e.id,t&&I&&V&&(T=new Lls(t,I,V,E,v.xtags,e)));t=Number(v.bitrate)/8;I=Number(v.contentLength);V=Number(v.lastModified);e=v.drmFamilies;E=v.type;G=G&&I?I/ G:0;v=Number(v.approxDurationMs);if(J&&e){var L={};e=g.n(e);for(P=e.next();!P.done;P=e.next())(P=IB[P.value])&&(L[P]=J[P])}return new As(Y,K,{audio:R,video:r,hR:h,k5:L,ER:t,SM:G,contentLength:I,lastModified:V,captionTrack:T,streamType:E,approxDurationMs:v})}; zP=function(v,J,G){G=G===void 0?0:G;var K=v.type;var V=v.itag;var Y=v.xtags;Y&&(V=v.itag+";"+Y);if(vI(K)){var r=(v.size||"640x360").split("x");r=new k4(+r[0],+r[1],+v.fps,v.projection_type,+v.stereo_layout,void 0,v.quality_label,v.eotf,v.primaries);K=BZ(K,r,a$[v.itag]);PZ&&(K+="; enableflushduringseek=true");DT&&(K+="; enableresetaudiodecoder=true")}var E;if($G(K)){var e=new uD(+v.audio_sample_rate||void 0,+v.audio_channels||0,v.spatial_audio_type,!!v.drc);v.name&&(E=new g.q5(v.name,v.audio_track_id, v.isDefault==="1"))}var P;v.caption_display_name&&v.caption_vss_id&&v.caption_language_code&&(P=new Lls(v.caption_display_name,v.caption_vss_id,v.caption_language_code,v.caption_kind,v.xtags,v.caption_id));Y=Number(v.bitrate)/8;var D=Number(v.clen),t=Number(v.lmt);G=G&&D?D/G:0;if(J&&v.drm_families){var B={};for(var I=g.n(v.drm_families.split(",")),h=I.next();!h.done;h=I.next())h=h.value,B[h]=J[h]}return new As(V,K,{audio:e,video:r,hR:E,k5:B,ER:Y,SM:G,contentLength:D,lastModified:t,captionTrack:P, streamType:v.stream_type,approxDurationMs:Number(v.approx_duration_ms)})}; ABX=function(v){return yM(v,function(J){return"FORMAT_STREAM_TYPE_OTF"===J.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; Flj=function(v){return yM(v,function(J){return"FORMAT_STREAM_TYPE_OTF"===J.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; Ht8=function(v,J){return v.timeline?G6(v.timeline.L,J):v.dh.length?G6(v.dh,J):[]}; n0=function(v,J,G){J=J===void 0?"":J;G=G===void 0?"":G;v=new g.TV(v,!0);v.set("alr","yes");G&&(G=s_s(decodeURIComponent(G)),v.set(J,encodeURIComponent(G)));return v}; CSB=function(v,J){var G=Hw(J,"id");G=G.replace(":",";");var K=Hw(J,"mimeType"),V=Hw(J,"codecs");K=V?K+'; codecs="'+V+'"':K;V=Number(Hw(J,"bandwidth"))/8;var Y=Number(Mm(J,"BaseURL").getAttribute(v.J+":contentLength")),r=v.duration&&Y?Y/v.duration:0;if(vI(K)){var E=Number(Hw(J,"width"));var e=Number(Hw(J,"height")),P=Number(Hw(J,"frameRate")),D=Ml2(Hw(J,v.J+":projectionType"));a:switch(Hw(J,v.J+":stereoLayout")){case "layout_left_right":var t=1;break a;case "layout_top_bottom":t=2;break a;default:t= 0}E=new k4(E,e,P,D,t)}if($G(K)){var B=Number(Hw(J,"audioSamplingRate"));var I=Number(Hw(J.getElementsByTagName("AudioChannelConfiguration")[0],"value"));e=QjF(Hw(J,v.J+":spatialAudioType"));B=new uD(B,I,e);a:{I=Hw(J,"lang")||"und";if(e=Mm(J,"Role"))if(D=Hw(e,"value")||"",g.Zp(Wlf,D)){e=I+"."+Wlf[D];P=D==="main";v=Hw(J,v.J+":langName")||I+" - "+D;I=new g.q5(v,e,P);break a}I=void 0}}if(J=Mm(J,"ContentProtection"))if(J.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var h={};for(J= J.firstChild;J!=null;J=J.nextSibling)J instanceof Element&&/SystemURL/.test(J.nodeName)&&(v=J.getAttribute("type"),e=J.textContent,v&&e&&(h[v]=e.trim()))}else h=void 0;return new As(G,K,{audio:B,video:E,hR:I,k5:h,ER:V,SM:r,contentLength:Y})}; Ml2=function(v){switch(v){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"}}; QjF=function(v){switch(v){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"}}; jsF=function(v,J){J=J===void 0?"":J;v.state=1;v.Gi=(0,g.yR)();return OtL(J||v.sourceUrl).then(function(G){if(!v.Sl()){v.PG=G.status;G=G.responseText;var K=new DOMParser;G=Gx(K,UDs(G),"text/xml").getElementsByTagName("MPD")[0];v.oY=Vl8(Hw(G,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(G.attributes){K=g.n(G.attributes);for(var V=K.next();!V.done;V=K.next())if(V=V.value,V.value==="http://youtube.com/yt/2012/10/10"){K=V.name.split(":")[1];break b}}K=""}v.J=K;v.isLive=v.oY=v.oY}; $Hf=function(v){v.j&&v.j.stop()}; btU=function(v){var J=v.oY;isFinite(J)&&(dE(v)?v.refresh():(J=Math.max(0,v.Gi+J-(0,g.yR)()),v.j||(v.j=new g.Qq(v.refresh,J,v),g.k(v,v.j)),v.j.start(J)))}; vNf=function(v){v=v.T;for(var J in v){var G=v[J].index;if(G.isLoaded())return G.wd()+1}return 0}; s4=function(v){return v.OR?v.OR-(v.K||v.timestampOffset):0}; RB=function(v){return v.YB?v.YB-(v.K||v.timestampOffset):0}; lB=function(v){if(!isNaN(v.Mr))return v.Mr;var J=v.T,G;for(G in J){var K=J[G].index;if(K.isLoaded()&&!JB(J[G].info.mimeType)){J=0;for(G=K.eU();G<=K.wd();G++)J+=K.getDuration(G);J/=K.Dx();J=Math.round(J/.5)*.5;K.Dx()>10&&(v.Mr=J);return J}if(v.isLive&&(K=J[G],K.eF))return K.eF}return NaN}; JZw=function(v,J){v=aGr(v.T,function(K){return K.index.isLoaded()}); if(!v)return NaN;v=v.index;var G=v.bz(J);return v.getStartTime(G)===J?J:G=0&&V.segments.splice(Y,1)}}}; oNL=function(v){for(var J in v.T)JB(v.T[J].info.mimeType)||tRX(v.T[J].index,Infinity)}; L0=function(v,J,G){for(var K in v.T){var V=v.T[K].index,Y=J,r=G;V.lj&&(Y&&(V.Ba=Math.max(V.Ba,Y)),r&&(V.t5=Math.max(V.t5||0,r)))}G&&(v.Ti=G/1E3)}; K$B=function(v){v.YB=0;v.OR=0;v.yy=0}; y7=function(v){return v.RY&&v.isManifestless?v.isLiveHeadPlayable:v.isLive}; BZ=function(v,J,G){wE===null&&(wE=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(mGF&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return wE||G!=="9"&&G!=="("?wE||G!=="9h"&&G!=="(h"||(v='video/webm; codecs="vp9.2"'):v='video/webm; codecs="vp9"',v;if(!wE&&!O4||v!=='video/webm; codecs="vp9"'&&v!=='video/webm; codecs="vp9.2"')return v; G="00";var K="08",V="01",Y="01",r="01";v==='video/webm; codecs="vp9.2"'&&(G="02",K="10",J.primaries==="bt2020"&&(r=V="09"),J.T==="smpte2084"&&(Y="16"),J.T==="arib-std-b67"&&(Y="18"));return'video/webm; codecs="'+["vp09",G,"51",K,"01",V,Y,r,"00"].join(".")+'"'}; xI=function(v,J,G){v=""+v+(J>49?"p60":J>32?"p48":"");J=Nb()[v];if(J!=null&&J>0)return J;J=U4.get(v);if(J!=null&&J>0)return J;G=G==null?void 0:G.get(v);return G!=null&&G>0?G:8192}; VP8=function(v){this.gh=v;this.Vn=this.zy=this.YB=this.j=this.J=this.jl=this.xB=this.Ti=!1;this.U=this.K=0;this.Nr=!1;this.dh=!0;this.WH=!1;this.zb=0;this.Cg=this.Mr=!1;this.yy=!0;this.RY=this.Gi=!1;this.T={};this.a$=this.disableAv1=this.o$=this.Vy=this.wh=this.d_=this.X=this.N=!1;this.Xm=this.gh.C("html5_disable_aac_preference");this.OR=Infinity;this.qr=0;this.R$=this.gh.GG();this.g_=this.gh.experiments.OB("html5_enable_vp9_fairplay");this.Hv=this.gh.C("html5_force_av1_for_testing");this.BH=g.DI(this.gh.experiments, "html5_av1_ordinal_cap");this.Mj=this.gh.C("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.BO=this.gh.C("html5_account_onesie_format_selection_during_format_filter");this.ER=g.DI(this.gh.experiments,"html5_max_byterate");this.Z=this.gh.C("html5_sunset_aac_high_codec_family");this.Ze=this.gh.C("html5_sunset_aac_high_codec_family");this.UR=this.gh.C("html5_enable_iamf_audio");this.qj=this.gh.experiments.OB("html5_allow_capability_merge");this.KK=this.gh.C("html5_enable_encrypted_av1")}; GLf=function(v){if(v.xB)return["f"];if(g.aS("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var J=["9h","9","h","8"];v.KK&&J.push("1e");J=J.concat(["(h","(","H","*"]);v.Mr&&(J.unshift("1"),J.unshift("1h"));v.zy&&J.unshift("h");v.oY&&(J=(YCm[v.oY]||[v.oY]).concat(J));return J}; Cow=function(v){var J=["o","a","A"];v.qr===1&&(v.J&&(J=["mac3","MAC3"].concat(J)),v.j&&(J=["meac3","MEAC3"].concat(J)),v.UR&&(J=["i","I"].concat(J)));v.Ti&&(J=["so","sa"].concat(J));!v.Vn||v.YB||v.L||v.Xm||J.unshift("a");v.jl&&!v.Z&&J.unshift("ah");v.L&&(J=(YCm[v.L]||[v.L]).concat(J));return J}; m_=function(v,J,G,K){J=J===void 0?{}:J;if(K===void 0?0:K)return J.disabled=1,0;if(R3(v.J,lf.AV1_CODECS)&&R3(v.J,lf.HEIGHT)&&R3(v.J,lf.BITRATE))return J.isCapabilityUsable=1,8192;try{var V=mVU();if(V)return J.localPref=V}catch(E){}K=1080;V=navigator.hardwareConcurrency;V<=2&&(K=480);J.coreCount=V;if(V=g.DI(v.experiments,"html5_default_av1_threshold"))K=J["default"]=V;!v.C("html5_disable_av1_arm_check")&&B0B()&&(J.isArm=1,K=240);if(v=v.J.dh)J.mcap=v,K=Math.max(K,v);if(G){var Y,r;if(v=(Y=G.videoInfos.find(function(E){return Q9(E)}))== null?void 0:(r=Y.X)==null?void 0:r.powerEfficient)K=8192,J.isEfficient=1; G=G.videoInfos[0].video;Y=Math.min(xI("1",G.fps),xI("1",30));J.perfCap=Y;K=Math.min(K,Y);G.isHdr()&&!v&&(J.hdr=1,K*=.75)}else G=xI("1",30),J.perfCap30=G,K=Math.min(K,G),G=xI("1",60),J.perfCap60=G,K=Math.min(K,G);return J.av1Threshold=K}; S2=function(v,J,G,K){this.flavor=v;this.keySystem=J;this.X=G;this.experiments=K;this.T={};this.WH=this.keySystemAccess=null;this.Lx=this.jM=-1;this.Px=null;this.Z=!!K&&K.OB("edge_nonprefixed_eme");K&&K.OB("html5_enable_vp9_fairplay")}; ZT=function(v){return v.Z?!1:!v.keySystemAccess&&!!f0()&&v.keySystem==="com.microsoft.playready"}; uB=function(v){return v.keySystem==="com.microsoft.playready"}; gE=function(v){return!v.keySystemAccess&&!!f0()&&v.keySystem==="com.apple.fps.1_0"}; Xi=function(v){return v.keySystem==="com.youtube.fairplay"}; kI=function(v){return v.keySystem==="com.youtube.fairplay.sbdl"}; g.cZ=function(v){return v.flavor==="fairplay"}; f0=function(){var v=window,J=v.MSMediaKeys;Ql()&&!J&&(J=v.WebKitMediaKeys);return J&&J.isTypeSupported?J:null}; aB=function(v){return navigator.requestMediaKeySystemAccess?g.x4&&!g.FX()?p7("45"):g.QR||g.tz?v.OB("edge_nonprefixed_eme"):g.N5?p7("47"):g.nP&&v.OB("html5_enable_safari_fairplay")?!1:!0:!1}; rZ2=function(v,J,G,K){var V=Hy(),Y=(G=V||G&&Ql())?["com.youtube.fairplay"]:["com.widevine.alpha"];J&&Y.unshift("com.youtube.widevine.l3");V&&K&&Y.unshift("com.youtube.fairplay.sbdl");return G?Y:v?[].concat(g.l(Y),g.l(A1.playready)):[].concat(g.l(A1.playready),g.l(Y))}; HZ=function(){this.X=this.VI=0;this.T=Array.from({length:Fi.length}).fill(0)}; qCw=function(){}; ENj=function(){this.startTimeMs=(0,g.yR)();this.T=!1}; egr=function(){this.T=new qCw}; Pwj=function(v,J,G,K){K=K===void 0?1:K;G>=0&&(J in v.T||(v.T[J]=new HZ),v.T[J].YN(G,K))}; DHf=function(v,J,G,K,V){var Y=(0,g.yR)(),r=V?V(J):void 0,E;V=(E=r==null?void 0:r.VI)!=null?E:1;if(V!==0){var e;E=(e=r==null?void 0:r.profile)!=null?e:G;Pwj(v,E,Y-K,V)}return J}; M5=function(v,J,G,K,V){if(J&&typeof J==="object"){var Y=function(r){return DHf(v,r,G,K,V)}; if(qb(J))return J.then(Y);if(tP8(J))return Bx(J,Y)}return DHf(v,J,G,K,V)}; Bpf=function(){}; Q7=function(v,J,G,K,V){K=K===void 0?!1:K;g.X.call(this);this.gh=J;this.useCobaltWidevine=K;this.uw=V;this.X=[];this.Z={};this.T={};this.callback=null;this.J=!1;this.L=[];this.initialize(v,!G)}; hgU=function(v,J){v.callback=J;v.L=[];aB(v.gh.experiments)?WZ(v):Iks(v)}; WZ=function(v){if(!v.Sl())if(v.X.length===0)v.callback(v.L);else{var J=v.X[0],G=v.Z[J],K=zgs(v,G);if(C0&&C0.keySystem===J&&C0.PQh===JSON.stringify(K))v.uw("remksa",{re:!0}),nNs(v,G,C0.keySystemAccess);else{var V,Y;v.uw("remksa",{re:!1,ok:(Y=(V=C0)==null?void 0:V.keySystem)!=null?Y:""});C0=void 0;(bB.isActive()?bB.MO("emereq",function(){return navigator.requestMediaKeySystemAccess(J,K)}):navigator.requestMediaKeySystemAccess(J,K)).then(Rh(function(r){nNs(v,G,r,K)}),Rh(function(){v.J=!v.J&&v.Z[v.X[0]].flavor=== "widevine"; v.J||v.X.shift();WZ(v)}))}}}; nNs=function(v,J,G,K){if(!v.Sl()){K&&(C0={keySystem:J.keySystem,keySystemAccess:G,PQh:JSON.stringify(K)});J.keySystemAccess=G;if(uB(J)){G=Oj();K=g.n(Object.keys(v.T[J.flavor]));for(var V=K.next();!V.done;V=K.next())V=V.value,J.T[V]=!!G.canPlayType(V)}else{G=J.keySystemAccess.getConfiguration();if(G.audioCapabilities)for(K=g.n(G.audioCapabilities),V=K.next();!V.done;V=K.next())dHB(v,J,V.value);if(G.videoCapabilities)for(G=g.n(G.videoCapabilities),K=G.next();!K.done;K=G.next())dHB(v,J,K.value)}v.L.push(J); v.useCobaltWidevine||v.C("html5_enable_vp9_fairplay")&&kI(J)?(v.X.shift(),WZ(v)):v.callback(v.L)}}; dHB=function(v,J,G){v.C("log_robustness_for_drm")?J.T[G.contentType]=G.robustness||!0:J.T[G.contentType]=!0}; zgs=function(v,J){var G={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(v.C("html5_enable_vp9_fairplay")&&Xi(J))return G.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),G.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[G];uB(J)&&(G.initDataTypes=["keyids","cenc"]);for(var K=g.n(Object.keys(v.T[J.flavor])),V=K.next();!V.done;V=K.next()){V=V.value;var Y=V.indexOf("audio/")===0,r=Y?G.audioCapabilities:G.videoCapabilities;J.flavor!== "widevine"||v.J?r.push({contentType:V}):Y?r.push({contentType:V,robustness:"SW_SECURE_CRYPTO"}):(g.x4&&g.aS("windows nt")&&!v.C("html5_drm_enable_moho")||r.push({contentType:V,robustness:"HW_SECURE_ALL"}),Y=V,v.gh.J.Z&&V.includes("vp09")&&(Y=V+"; experimental=allowed"),r.push({contentType:Y,robustness:"SW_SECURE_DECODE"}),jN(v.gh)==="MWEB"&&($L()||Ah())&&(v.uw("swcrypto",{}),r.push({contentType:V,robustness:"SW_SECURE_CRYPTO"})))}return[G]}; Iks=function(v){if(f0()&&(g.nP||CE))v.L.push(new S2("fairplay","com.apple.fps.1_0","",v.gh.experiments));else{var J=ssm(),G=g.MS(v.X,function(K){var V=v.Z[K],Y=!1,r=!1,E;for(E in v.T[V.flavor])J(E,K)&&(V.T[E]=!0,Y=Y||E.indexOf("audio/")===0,r=r||E.indexOf("video/")===0);return Y&&r}); G&&v.L.push(v.Z[G]);v.X=[]}v.callback(v.L)}; ssm=function(){var v=f0();if(v){var J=v.isTypeSupported;return function(K,V){return J(V,K)}}var G=Oj(); return G&&(G.addKey||G.webkitAddKey)?function(K,V){return!!G.canPlayType(K,V)}:function(){return!1}}; Rg8=function(v){this.experiments=v;this.T=2048;this.L=0;this.dh=(this.K=this.C("html5_streaming_resilience"))?.5:.25;var J=J===void 0?0:J;this.Z=g.DI(this.experiments,"html5_media_time_weight_prop")||J;this.Ti=g.DI(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.N=(this.J=this.experiments.OB("html5_consider_end_stall"))&&ih;this.X=this.experiments.OB("html5_measure_max_progress_handling");this.U=this.C("html5_treat_requests_pre_elbow_as_metadata");this.j=this.C("html5_media_time_weight")|| !!this.Z;this.oY=g.DI(this.experiments,"html5_streaming_fallback_byterate");this.C("html5_sabr_live_audio_early_return_fix")&&ih&&(this.T=65536)}; lks=function(v,J){this.T=void 0;this.experimentIds=v?v.split(","):[];this.flags=$6(J||"","&");v={};J=g.n(this.experimentIds);for(var G=J.next();!G.done;G=J.next())v[G.value]=!0;this.experiments=v}; g.DI=function(v,J){v=v.flags[J];JSON.stringify(v);return Number(v)||0}; $$=function(v,J){return(v=v.flags[J])?v.toString():""}; TpX=function(v){if(v=v.flags.html5_web_po_experiment_ids)if(v=v.replace(/\[ *(.*?) *\]/,"$1"))return v.split(",").map(Number);return[]}; pfm=function(v){if(v.T)return v.T;if(v.experimentIds.length<=1)return v.T=v.experimentIds,v.T;var J=[].concat(g.l(v.experimentIds)).map(function(K){return Number(K)}); J.sort();for(var G=J.length-1;G>0;--G)J[G]-=J[G-1];v.T=J.map(function(K){return K.toString()}); v.T.unshift("v1");return v.T}; yZ2=function(v){return L$s.then(v)}; vL=function(v,J,G){this.experiments=v;this.Mr=J;this.qr=G===void 0?!1:G;this.Ti=!!g.NL("cast.receiver.platform.canDisplayType");this.N={};this.U=!1;this.X=new Map;this.K=!0;this.J=this.Z=!1;this.T=new Map;this.dh=0;this.Ze=this.experiments.OB("html5_disable_vp9_encrypted");this.L=this.experiments.OB("html5_enable_encrypted_av1");v=g.NL("cast.receiver.platform.getValue");this.j=!this.Ti&&v&&v("max-video-resolution-vpx")||null;wfs(this);this.Z=!!(Hy()&&NA()>=21)}; VRB=function(v,J,G){G=G===void 0?1:G;var K=J.itag;if(K==="0")return!0;var V=J.mimeType;if(J.aY==="1e"&&!v.L)return"dav1enc";if(Q9(J)&&v.U)return"dav1";if(J.video&&(J.video.isHdr()||J.video.primaries==="bt2020")&&!(R3(v,lf.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(K==="338"&&!(g.x4?p7(53):g.N5&&p7(64)))return"dopus";var Y=G;Y=Y===void 0?1:Y; G={};J.video&&(J.video.width&&(G[lf.WIDTH.name]=J.video.width),J.video.height&&(G[lf.HEIGHT.name]=J.video.height),J.video.fps&&(G[lf.FRAMERATE.name]=J.video.fps*Y),J.video.T&&(G[lf.EOTF.name]=J.video.T),J.ER&&(G[lf.BITRATE.name]=J.ER*8*Y),J.aY==="("&&(G[lf.CRYPTOBLOCKFORMAT.name]="subsample"),J.video.projectionType==="EQUIRECTANGULAR"||J.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||J.video.projectionType==="MESH")&&(G[lf.DECODETOTEXTURE.name]="true");J.audio&&J.audio.numChannels&&(G[lf.CHANNELS.name]= J.audio.numChannels);v.Z&&Fy(J)&&(G[lf.EXPERIMENTAL.name]="allowed");Y=g.n(Object.keys(lf));for(var r=Y.next();!r.done;r=Y.next()){r=lf[r.value];var E;if(E=G[r.name])if(E=!(r===lf.EOTF&&J.mimeType.indexOf("vp09.02")>0)){E=r;var e=J;E=!(v.experiments.OB("html5_ignore_h264_framerate_cap")&&E===lf.FRAMERATE&&eNf(e))}if(E)if(R3(v,r))if(v.j){if(v.j[r.name]1080&&J.k5&& (V+="; hdcp=2.2");return K==="227"?"hqcenc":K!=="585"&&K!=="588"&&K!=="583"&&K!=="586"&&K!=="584"&&K!=="587"&&K!=="591"&&K!=="592"||v.experiments.OB("html5_enable_new_hvc_enc")?v.isTypeSupported(V)?!0:"tpus":"newhvc"}; JM=function(){var v=Ah()&&!p7(29),J=g.aS("google tv")&&g.aS("chrome")&&!p7(30);return v||J?!1:hNf()}; OBt=function(v,J,G){var K=480;J=g.n(J);for(var V=J.next();!V.done;V=J.next()){V=V.value;var Y=V.video.qualityOrdinal;Y<=1080&&Y>K&&VRB(v,V,G)===!0&&(K=Y)}return K}; g.GW=function(v,J){J=J===void 0?!1:J;return JM()&&v.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!J&&v.canPlayType(Oj(),"application/x-mpegURL")?!0:!1}; xHt=function(v){UHt(function(){for(var J=g.n(Object.keys(lf)),G=J.next();!G.done;G=J.next())R3(v,lf[G.value])})}; R3=function(v,J){J.name in v.N||(v.N[J.name]=mHr(v,J));return v.N[J.name]}; mHr=function(v,J){if(v.j)return!!v.j[J.name];if(J===lf.BITRATE&&v.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!v.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(J===lf.AV1_CODECS)return v.isTypeSupported("video/mp4; codecs="+J.valid)&&!v.isTypeSupported("video/mp4; codecs="+J.LQ);if(J.video){var G='video/webm; codecs="vp9"';v.isTypeSupported(G)||(G='video/mp4; codecs="avc1.4d401e"')}else G='audio/webm; codecs="opus"', v.isTypeSupported(G)||(G='audio/mp4; codecs="mp4a.40.2"');return v.isTypeSupported(G+"; "+J.name+"="+J.valid)&&!v.isTypeSupported(G+"; "+J.name+"="+J.LQ)}; oC=function(v){v.J=!0;v.experiments.OB("html5_ssap_update_capabilities_on_change")&&SC8(v)}; fkm=function(v,J){var G=0;v.X.has(J)&&(G=v.X.get(J).dX);v.X.set(J,{dX:G+1,Ny:Math.pow(2,G+1)});oC(v)}; zV=function(v){for(var J=[],G=g.n(v.T.keys()),K=G.next();!K.done;K=G.next()){K=K.value;var V=v.T.get(K);J.push(K+"_"+V.maxWidth+"_"+V.maxHeight)}return J.join(".")}; SC8=function(v){v.oY=[];for(var J=g.n(v.T.values()),G=J.next();!G.done;G=J.next()){G=G.value;var K=G.aY;v.experiments.OB("html5_ssap_force_mp4_aac")&&K!=="a"&&K!=="h"||v.X.has(K)||v.U&&(K==="1"||K==="1h"||v.L&&K==="1e")||v.oY.push(G)}}; j$j=function(v,J){for(var G=new Map,K=g.n(v.T.keys()),V=K.next();!V.done;V=K.next()){V=V.value;var Y=V.split("_")[0];J.has(Y)||G.set(V,v.T.get(V))}v.T=G}; $9B=function(v,J,G){var K,V=((K=G.video)==null?void 0:K.fps)||0;K=J+"_"+V;var Y=!!G.audio,r={itag:G.itag,aY:J,Xj:Y};if(Y)r.numChannels=G.audio.numChannels;else{var E=G.video;r.maxWidth=E==null?void 0:E.width;r.maxHeight=E==null?void 0:E.height;r.maxFramerate=V;R3(v,lf.BITRATE)&&(r.maxBitrateBps=G.ER*8);r.Mc=E==null?void 0:E.isHdr()}E=v.T.get(K);E?Y||(G=Math.max(E.maxWidth||0,E.maxHeight||0)>Math.max(r.maxWidth||0,r.maxHeight||0)?E:r,J={itag:G.itag,aY:J,Xj:Y,maxWidth:Math.max(E.maxWidth||0,r.maxWidth|| 0),maxHeight:Math.max(E.maxHeight||0,r.maxHeight||0),maxFramerate:V,Mc:G.Mc},R3(v,lf.BITRATE)&&(J.maxBitrateBps=G.maxBitrateBps),v.T.set(K,J)):v.T.set(K,r)}; v4j=function(v,J,G){var K,V=((K=G.video)==null?void 0:K.fps)||0;K=J+"_"+V;var Y=!!G.audio,r=v.T.get(K);a:{var E=v.T.get(K),e=!!G.audio;if(E){if(e){var P=!1;break a}var D;if(!e&&((P=G.video)==null?0:P.height)&&E.maxHeight&&E.maxHeight>=((D=G.video)==null?void 0:D.height)){P=!1;break a}}P=!0}P&&(P=G.itag,J=r?r:{itag:P,aY:J,Xj:Y},Y?J.numChannels=G.audio.numChannels:(Y=G.video,J.maxWidth=Y==null?void 0:Y.width,J.maxHeight=Y==null?void 0:Y.height,J.maxFramerate=V,R3(v,lf.BITRATE)&&(J.maxBitrateBps=G.ER* 8),J.Mc=Y==null?void 0:Y.isHdr()),v.T.set(K,J))}; wfs=function(v){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(G){G.smooth&&G.powerEfficient&&(v.dh=2160)})}; KY=function(){g.qU.call(this);this.items={}}; V5=function(){g.RU.apply(this,arguments)}; Y$=function(){g.l3.apply(this,arguments)}; ZBB=function(v,J,G){this.encryptedClientKey=J;this.J=G;this.T=new Uint8Array(v.buffer,0,16);this.Z=new Uint8Array(v.buffer,16)}; uLs=function(v){v.X||(v.X=new V5(v.T));return v.X}; rU=function(v){try{return n8(v)}catch(J){return null}}; gNw=function(v,J){if(!J&&v)try{J=JSON.parse(v)}catch(V){}if(J){v=J.clientKey?rU(J.clientKey):null;var G=J.encryptedClientKey?rU(J.encryptedClientKey):null,K=J.keyExpiresInSeconds?Number(J.keyExpiresInSeconds)*1E3+(0,g.yR)():null;v&&G&&K&&(this.T=new ZBB(v,G,K));J.onesieUstreamerConfig&&(this.onesieUstreamerConfig=rU(J.onesieUstreamerConfig)||void 0);this.baseUrl=J.baseUrl}}; Ef=function(){this.data=new Uint8Array(2048);this.pos=0;qX||(qX=Ul("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; eN=function(v,J){v.add(J==null||isNaN(J)?0:J+1)}; PL=function(v){this.T=this.X=0;this.alpha=Math.exp(Math.log(.5)/v)}; DR=function(v){this.X=v===void 0?15:v;this.values=new Float64Array(176);this.T=new Float64Array(11);this.Z=new Float64Array(16)}; tM=function(v,J,G,K){G=G===void 0?.5:G;K=K===void 0?0:K;this.resolution=J;this.X=0;this.Z=!1;this.bO=!0;this.T=Math.round(v*this.resolution);this.values=Array(this.T);for(v=0;v0)J=v.byterate,this.oY=!0;else{var K; G=(((K=navigator.connection)==null?void 0:K.downlink)||0)*64*1024;G>0&&(J=G,this.oY=!0)}this.Z.dP(this.policy.j,J);v.delay>0&&this.U.dP(1,Math.min(v.delay,2));v.stall>0&&this.K.dP(1,v.stall);v.init>0&&(this.YB=Math.min(v.init,this.YB));v.interruptions&&(this.L=this.L.concat(v.interruptions),this.L.length>16&&this.L.pop());this.Ti=(0,g.yR)();this.policy.K>0&&(this.jl=new g.Qq(this.RY,this.policy.K,this),g.k(this,this.jl),this.jl.start())}; IC=function(v,J,G,K){v.Z.dP(K===void 0?J:K,G/J);v.j=(0,g.yR)()}; kt8=function(v){v.J||(v.J=(0,g.yR)());v.policy.N&&(v.j=(0,g.yR)())}; cZU=function(v,J){if(v.J){var G=J-v.J;if(G<6E4){if(G>1E3){var K=v.interruptions;K.push(Math.ceil(G));K.sort(function(V,Y){return Y-V}); K.length>16&&K.pop()}v.Ze+=G}}v.J=J}; hM=function(v,J,G,K,V,Y){Y=Y===void 0?!1:Y;v.qr.dP(J,G/J);v.j=(0,g.yR)();V||v.N.dP(1,J-K);Y||(v.J=0);v.Ti>-1&&(0,g.yR)()-v.Ti>3E4&&NpB(v)}; zW=function(v,J,G){J=Math.max(J,v.X.T);v.K.dP(1,G/J)}; nY=function(v){v=v.U.gK()+v.Mr.gK()||0;v=isNaN(v)?.5:v;return v=Math.min(v,5)}; dU=function(v,J,G){isNaN(G)||(v.dh+=G);isNaN(J)||(v.Gi+=J)}; sf=function(v){v=v.Z.gK();return v>0?v:1}; RC=function(v,J,G){J=J===void 0?!1:J;G=G===void 0?1048576:G;var K=sf(v);K=1/((v.K.gK()||0)*v.policy.oY+1/K);var V=v.qr.gK();V=V>0?V:1;var Y=Math.max(K,V);v.policy.J>0&&V=4E3}; AZF=function(v){this.experiments=v;this.T=17;this.Z=13E4;this.j=.5;this.X=!1;this.Ti=this.C("html5_use_histogram_for_bandwidth");this.L=!1;this.J=g.DI(this.experiments,"html5_auxiliary_estimate_weight");this.oY=g.DI(this.experiments,"html5_stall_factor")||1;this.K=g.DI(this.experiments,"html5_check_for_idle_network_interval_ms");this.U=this.experiments.OB("html5_trigger_loader_when_idle_network");this.N=this.experiments.OB("html5_sabr_fetch_on_idle_network_preloaded_players")}; HBm=function(v,J){v=v===void 0?{}:v;J=J===void 0?{}:J;g.X.call(this);var G=this;this.values=v;this.sX=J;this.X={};this.Z=this.T=0;this.L=new g.Qq(function(){F$j(G)},1E4); g.k(this,this.L)}; TW=function(v,J){MPm(v,J);return v.values[J]&&v.sX[J]?v.values[J]/Math.pow(2,v.T/v.sX[J]):0}; MPm=function(v,J){v.values[J]||(J=w5U(),v.values=J.values||{},v.sX=J.halfLives||{},v.X=J.values?Object.assign({},J.values):{})}; F$j=function(v){var J=w5U();if(J.values){J=J.values;for(var G={},K=g.n(Object.keys(v.values)),V=K.next();!V.done;V=K.next())V=V.value,J[V]&&v.X[V]&&(v.values[V]+=J[V]-v.X[V]),G[V]=TW(v,V);v.X=G}J=v.sX;G={};G.values=v.X;G.halfLives=J;g.SW("yt-player-memory",G,2592E3)}; AM=function(v,J,G,K,V){g.X.call(this);this.webPlayerContextConfig=J;this.Iw=K;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.wP=this.R$=this.xB=this.Po=this.userDisplayName=this.userDisplayImage=this.Hw="";this.T={};this.a$={};this.controlsType="0";this.qj=NaN;this.wh=!1;this.rJ=(0,g.yR)();this.OR=0;this.Bx=this.Aw=!1;this.IE=!0;this.preferGapless=this.DR=this.Bv=this.Z=this.mz=this.IR=!1;this.BU=[];this.E9=!1;v=v?g.Ni(v):{};J&&J.csiPageType&&(this.csiPageType=J.csiPageType);J&&J.csiServiceName&& (this.csiServiceName=J.csiServiceName);J&&J.preferGapless&&(this.preferGapless=J.preferGapless);this.experiments=new lks(J?J.serializedExperimentIds:v.fexp,J?J.serializedExperimentFlags:v.fflags);this.forcedExperiments=J?J.serializedForcedExperimentIds:VC("",v.forced_experiments)||void 0;this.cspNonce=(J==null?0:J.cspNonce)?J.cspNonce:VC("",v.csp_nonce);this.C("web_player_deprecated_uvr_killswitch");try{var Y=document.location.toString()}catch(Jw){Y=""}this.F5=Y;this.ancestorOrigins=(K=window.location.ancestorOrigins)? Array.from(K):[];this.L=GZ(!1,J?J.isEmbed:v.is_embed);if(J&&J.device){if(K=J.device,K.androidOsExperience&&(this.T.caoe=""+K.androidOsExperience),K.androidPlayServicesVersion&&(this.T.capsv=""+K.androidPlayServicesVersion),K.brand&&(this.T.cbrand=K.brand),K.browser&&(this.T.cbr=K.browser),K.browserVersion&&(this.T.cbrver=K.browserVersion),K.cobaltReleaseVehicle&&(this.T.ccrv=""+K.cobaltReleaseVehicle),this.T.c=K.interfaceName||"WEB",this.T.cver=K.interfaceVersion||"html5",K.interfaceTheme&&(this.T.ctheme= K.interfaceTheme),this.T.cplayer=K.interfacePlayerType||"UNIPLAYER",K.model&&(this.T.cmodel=K.model),K.network&&(this.T.cnetwork=K.network),K.os&&(this.T.cos=K.os),K.osVersion&&(this.T.cosver=K.osVersion),K.platform&&(this.T.cplatform=K.platform),Y=$$(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),Y==="all"||Y==="once")K.chipset&&(this.a$.cchip=K.chipset),K.cobaltAppVersion&&(this.a$.ccappver=K.cobaltAppVersion),K.firmwareVersion&&(this.a$.cfrmver=K.firmwareVersion),K.deviceYear&&(this.a$.crqyear= K.deviceYear)}else this.T.c=v.c||"web",this.T.cver=v.cver||"html5",this.T.cplayer="UNIPLAYER";this.loaderUrl=J?this.L||QsU(this)&&J.loaderUrl?J.loaderUrl||"":this.F5:this.L||QsU(this)&&v.loaderUrl?VC("",v.loaderUrl):this.F5;this.L&&g.ks("yt.embedded_player.embed_url",this.loaderUrl);this.K=jb(this.loaderUrl,W$B);K=this.loaderUrl;var r=r===void 0?!1:r;this.D5=bE(jb(K,Cw8),K,r,"Trusted Ad Domain URL");this.KK=GZ(!1,v.privembed);this.protocol=this.F5.indexOf("http:")===0?"http":"https";this.Ks=io((J? J.customBaseYoutubeUrl:v.BASE_YT_URL)||"")||io(this.F5)||this.protocol+"://www.youtube.com/";r=J?J.eventLabel:v.el;K="detailpage";r==="adunit"?K=this.L?"embedded":"detailpage":r==="embedded"||this.K?K=oP(K,r,bBj):r&&(K="embedded");this.Mr=K;pyf();r=null;K=J?J.playerStyle:v.ps;Y=g.WN(jej,K);!K||Y&&!this.K||(r=K);this.playerStyle=r;this.j=g.WN(jej,this.playerStyle);this.houseBrandUserStatus=J==null?void 0:J.houseBrandUserStatus;this.Ti=this.j&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.pO=!this.Ti;this.YB=GZ(!1,v.disableplaybackui);this.disablePaidContentOverlay=GZ(!1,J==null?void 0:J.disablePaidContentOverlay);this.disableSeek=GZ(!1,J==null?void 0:J.disableSeek);this.enableSpeedOptions=(J==null?void 0:J.enableSpeedOptions)||(Oj().defaultPlaybackRate?pY||g.i$||LY?g.N5&&p7("20")||g.x4&&p7("4")||g.y5&&p7("11")||Wy():!(g.y5&&!g.aS("chrome")||pY||g.aS("android")||g.aS("silk")):!1);this.eT=GZ(!1,v.enable_faster_speeds);var E;this.supportsVarispeedExtendedFeatures=(E=J==null?void 0: J.supportsVarispeedExtendedFeatures)!=null?E:!1;this.X=GZ(this.playerStyle==="blazer",v.is_html5_mobile_device||J&&J.isMobileDevice);this.Gi=jW()||$L();this.XS=this.C("mweb_allow_background_playback")?!1:this.X&&!this.j;this.jl=f6();this.o6=g.wU;var e;this.rE=!!(J==null?0:(e=J.embedsHostFlags)==null?0:e.optOutApiDeprecation);var P;this.I6=!!(J==null?0:(P=J.embedsHostFlags)==null?0:P.allowPfpImaIntegration);this.fF=this.C("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var D;J?J.hideInfo!== void 0&&(D=!J.hideInfo):D=v.showinfo;this.Uj=g.Of(this)&&!this.rE||GZ(!Uf(this)&&!x$(this)&&!this.j,D);this.OA=J?!!J.mobileIphoneSupportsInlinePlayback:GZ(!1,v.playsinline);E=this.X&&mH&&SN!=null&&SN>0&&SN<=2.3;e=J?J.useNativeControls:v.use_native_controls;this.U=g.Of(this)&&this.X;P=this.X&&!this.U;e=g.fY(this)||!E&&GZ(P,e)?"3":"1";this.disableOrganicUi=!(J==null||!J.disableOrganicUi);P=J?J.controlsType:v.controls;this.controlsType=this.disableOrganicUi?"0":P!=="0"&&P!==0?e:"0";this.SF=this.X;this.color= oP("red",J?J.progressBarColor:v.color,iij);this.iX=this.controlsType==="3";this.yy=!this.L;this.zx=(e=!this.yy&&!x$(this)&&!this.Ti&&!this.j&&!Uf(this))&&!this.iX&&this.controlsType==="1";this.Xm=g.ZR(this)&&e&&this.controlsType==="0"&&!this.zx&&!(J==null?0:J.embedsEnableEmc3ds);this.a8=this.uf=E;this.BO=(this.controlsType==="3"||this.X||GZ(!1,v.use_media_volume))&&!this.U;this.BV=CE&&!g.II(601)?!1:!0;this.w8=this.L||!1;this.BH=x$(this)?"":(this.loaderUrl||v.post_message_origin||"").substring(0,128); this.widgetReferrer=VC("",J?J.widgetReferrer:v.widget_referrer);var t;J?J.disableCastApi&&(t=!1):t=v.enablecastapi;t=!this.K||GZ(!0,t);E=!0;J&&J.disableMdxCast&&(E=!1);this.b1=this.C("enable_cast_for_web_unplugged")&&g.uh(this)&&E||g.gy(this)&&E||t&&E&&this.controlsType==="1"&&!this.X&&(x$(this)||g.ZR(this)||g.gU(this));this.QT=!!window.document.pictureInPictureEnabled||SR();t=J?!!J.supportsAutoplayOverride:GZ(!1,v.autoplayoverride);this.H8=!(this.X&&!g.Of(this))&&!g.aS("nintendo wiiu")||t;this.Jm= (J?!!J.enableMutedAutoplay:GZ(!1,v.mutedautoplay))&&!1;t=(x$(this)||Uf(this))&&this.playerStyle==="blazer";this.dG=J?!!J.disableFullscreen:!GZ(!0,v.fs);E=g.E9(g.X9(this))&&g.Of(this);this.UR=!this.dG&&(t||g.hD())&&!E;this.WE=this.C("html5_picture_in_picture_logging_onresize");var B;this.Ha=(B=g.DI(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?B:.33;this.xu=this.C("html5_picture_in_picture_blocking_onresize");this.im=this.C("html5_picture_in_picture_blocking_ontimeupdate"); this.OF=this.C("html5_picture_in_picture_blocking_document_fullscreen");this.Px=this.C("html5_picture_in_picture_blocking_standard_api");B=Ah()&&p7(58)&&!$L();t=Ml||typeof MediaSource==="undefined";this.JV=this.C("uniplayer_block_pip")&&(B||t)||this.xu||this.im||this.Px;B=g.Of(this)&&!this.rE;var I;J?J.disableRelatedVideos!==void 0&&(I=!J.disableRelatedVideos):I=v.rel;this.Vy=B||GZ(!this.j,I);this.RE=GZ(!1,J?J.enableContentOwnerRelatedVideos:v.co_rel);this.N=$L()&&SN>0&&SN<=4.4?"_top":"_blank";this.Es= g.gU(this);this.qm=GZ(this.playerStyle==="blazer",J?J.enableCsiLogging:v.enablecsi);switch(this.playerStyle){case "blogger":I="bl";break;case "gmail":I="gm";break;case "gac":I="ga";break;case "ads-preview":I="ap";break;case "books":I="gb";break;case "docs":case "flix":I="gd";break;case "duo":I="gu";break;case "google-live":I="gl";break;case "google-one":I="go";break;case "play":I="gp";break;case "chat":I="hc";break;case "hangouts-meet":I="hm";break;case "photos-edu":case "picasaweb":I="pw";break; default:I="yt"}this.oY=I;this.dh=VC("",J?J.authorizedUserIndex:v.authuser);this.Vn=g.Of(this)&&(this.KK||!D3r()||this.Gi);var h;J?J.disableWatchLater!==void 0&&(h=!J.disableWatchLater):h=v.showwatchlater;this.G4=((I=!this.Vn)||!!this.dh&&I)&&GZ(!this.Ti,this.K?h:void 0);this.Hv=J?J.isMobileDevice||!!J.disableKeyboardControls:GZ(!1,v.disablekb);this.loop=GZ(!1,v.loop);this.pageId=VC("",J?J.initialDelegatedSessionId:v.pageid);this.T_=GZ(!0,v.canplaylive);this.Nr=GZ(!1,v.livemonitor);this.disableSharing= GZ(this.j,J?J.disableSharing:v.ss);(h=J&&this.C("fill_video_container_size_override_from_wpcc")?J.videoContainerOverride:v.video_container_override)?(I=h.split("x"),I.length!==2?h=null:(h=Number(I[0]),I=Number(I[1]),h=isNaN(h)||isNaN(I)||h*I<=0?null:new g.Tx(h,I))):h=null;this.rF=h;this.mute=J?!!J.startMuted:GZ(!1,v.mute);this.storeUserVolume=!this.mute&&GZ(this.controlsType!=="0",J?J.storeUserVolume:v.store_user_volume);h=J?J.annotationsLoadPolicy:v.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:oP(void 0,h,k$);this.captionsLanguagePreference=J?J.captionsLanguagePreference||"":VC("",v.cc_lang_pref);h=oP(2,J?J.captionsLanguageLoadPolicy:v.cc_load_policy,k$);this.controlsType==="3"&&h===2&&(h=3);this.o$=h;this.d_=J?J.hl||"en_US":VC("en_US",v.hl);this.region=J?J.contentRegion||"US":VC("US",v.cr);this.hostLanguage=J?J.hostLanguage||"en":VC("en",v.host_language);this.Xy=!this.KK&&Math.random()=480;this.schedule=new BL(t,new Rg8(this.experiments),V);g.k(this,this.schedule);var R;this.enableSafetyMode=(R=J==null?void 0:J.initialEnableSafetyMode)!=null? R:GZ(!1,v.enable_safety_mode);V=this.YB?!1:x$(this)&&this.playerStyle!=="blazer";var T;J?J.disableAutonav!=null&&(T=!J.disableAutonav):T=v.allow_autonav;this.Mj=GZ(V,!this.Ti&&T);this.sendVisitorIdHeader=J?!!J.sendVisitorIdHeader:GZ(!1,v.send_visitor_id_header);var L;this.playerStyle==="docs"&&(J?L=J.disableNativeContextMenu:L=v.disable_native_context_menu);this.disableNativeContextMenu=GZ(!1,L);this.VT=LX(this)&&this.C("enable_skip_intro_button");this.embedConfig=VC("",J?J.serializedEmbedConfig: v.embed_config);this.Ze=qk(v,g.Of(this));this.Z=this.Ze==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(J==null||!J.embedsErrorLinks);this.ZO=GZ(!1,v.full_window);var O;this.WH=!((O=this.webPlayerContextConfig)==null?0:O.chromeless);var x;this.livingRoomAppMode=oP("LIVING_ROOM_APP_MODE_UNSPECIFIED",v.living_room_app_mode||(J==null?void 0:(x=J.device)==null?void 0:x.livingRoomAppMode),JYX);var f;T=Kq(NaN,J==null?void 0:(f=J.device)==null?void 0:f.deviceYear);isNaN(T)||(this.deviceYear=T);this.transparentBackground= J?!!J.transparentBackground:GZ(!1,v.transparent_background);this.showMiniplayerButton=J?!!J.showMiniplayerButton:GZ(!1,v.show_miniplayer_button);var c;g.Of(this)&&!(J==null?0:(c=J.embedsHostFlags)==null?0:c.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=J?!!J.externalFullscreen:GZ(!1,v.external_fullscreen);this.showMiniplayerUiWhenMinimized=J?!!J.showMiniplayerUiWhenMinimized:GZ(!1,v.use_miniplayer_ui);var b;this.IE=(b=v.show_loop_video_toggle)!=null?b:!0;this.I8=Math.random()< 1E-4;this.j4=v.onesie_hot_config||(J==null?0:J.onesieHotConfig)?new gNw(v.onesie_hot_config,J==null?void 0:J.onesieHotConfig):void 0;this.isTectonic=J?!!J.isTectonic:!!v.isTectonic;this.playerCanaryState=G;this.playerCanaryStage=J==null?void 0:J.canaryStage;this.jK=new HBm;g.k(this,this.jK);this.mz=GZ(!1,v.force_gvi);this.datasyncId=(J==null?void 0:J.datasyncId)||g.H$("DATASYNC_ID");this.Lj=g.H$("LOGGED_IN",!1);this.Vu=(J==null?void 0:J.allowWoffleManagement)||!1;this.nj=Infinity;this.Yv=NaN;this.livingRoomPoTokenId= J==null?void 0:J.livingRoomPoTokenId;this.C("html5_high_res_logging_always")?this.Bv=!0:this.Bv=Math.random()*100=0&&v0&&v.I8&&(K.sort(),g.Zl(new g.Mk("Player client parameters changed after startup",K)));v.userAge=Kq(v.userAge,J.user_age);v.Hw=VC(v.Hw,J.user_display_email);v.userDisplayImage=VC(v.userDisplayImage,J.user_display_image);g.vK(v.userDisplayImage)||(v.userDisplayImage= "");v.userDisplayName=VC(v.userDisplayName,J.user_display_name);v.Po=VC(v.Po,J.user_gender);v.csiPageType=VC(v.csiPageType,J.csi_page_type);v.csiServiceName=VC(v.csiServiceName,J.csi_service_name);v.qm=GZ(v.qm,J.enablecsi);v.pageId=VC(v.pageId,J.pageid);if(G=J.enabled_engage_types)v.enabledEngageTypes=new Set(G.split(","));J.living_room_session_po_token&&(v.HG=J.living_room_session_po_token.toString())}; F9=function(v,J){return!v.j&&Ah()&&p7(55)&&v.controlsType==="3"&&!J}; g.HL=function(v){v=cL(v.Ks);return v==="www.youtube-nocookie.com"?"www.youtube.com":v}; MX=function(v,J,G){return v.protocol+"://i1.ytimg.com/vi/"+J+"/"+(G||"hqdefault.jpg")}; Q5=function(v){return x$(v)&&!g.uh(v)}; g.fY=function(v){return v.C("html5_local_playsinline")?CE&&!g.II(602)&&!("playsInline"in Oj()):CE&&!v.OA||g.aS("nintendo wiiu")?!0:!1}; jN=function(v){return v.T.c}; g.yW=function(v){return/^TVHTML5/.test(jN(v))}; g.WL=function(v){return jN(v)==="TVHTML5"}; QsU=function(v){return jN(v)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; vTF=function(v){return v.T.cmodel==="CHROMECAST ULTRA/STEAK"||v.T.cmodel==="CHROMECAST/STEAK"}; g.CY=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; LX=function(v){return/web/i.test(jN(v))}; g.bh=function(v){return jN(v).toUpperCase()==="WEB"}; aC=function(v){return jN(v)==="WEB_KIDS"}; g.uh=function(v){return jN(v)==="WEB_UNPLUGGED"}; jv=function(v){return jN(v)==="TVHTML5_UNPLUGGED"}; g.pX=function(v){return g.uh(v)||jN(v)==="TV_UNPLUGGED_CAST"||jv(v)}; g.gy=function(v){return jN(v)==="WEB_REMIX"}; g.is=function(v){return jN(v)==="WEB_EMBEDDED_PLAYER"}; g.vG=function(v){return(v.deviceIsAudioOnly||!g.x4||Ml||v.controlsType==="3"?!1:g.i$?v.L&&g.II(51):!0)||(v.deviceIsAudioOnly||!g.N5||Ml||v.controlsType==="3"?!1:g.i$?v.L&&g.II(48):g.II(38))||(v.deviceIsAudioOnly||!g.y5||Ml||v.controlsType==="3"?!1:g.i$?v.L&&g.II(37):g.II(27))||!v.deviceIsAudioOnly&&g.$g&&!zwt()&&g.II(11)||!v.deviceIsAudioOnly&&g.nP&&g.II("604.4")}; KNf=function(v){if(g.ZR(v)&&mH)return!1;if(g.N5){if(!g.II(47)||!g.II(52)&&g.II(51))return!1}else if(g.nP)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; YkU=function(v,J){return v.enabledEngageTypes.has(J.toString())||V_s.includes(J)}; x$=function(v){return v.Mr==="detailpage"}; g.ZR=function(v){return v.Mr==="embedded"}; JW=function(v){return v.Mr==="leanback"}; Uf=function(v){return v.Mr==="adunit"||v.playerStyle==="gvn"}; g.gU=function(v){return v.Mr==="profilepage"}; g.Of=function(v){return v.L&&g.ZR(v)&&!Uf(v)&&!v.j}; G3=function(v){if(!v.userDisplayImage)return"";var J=v.userDisplayImage.split("/");if(J.length===5)return v=J[J.length-1].split("="),v[1]="s20-c",J[J.length-1]=v.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.Zl(new g.Mk("Profile image not a FIFE URL.",v.userDisplayImage));return v.userDisplayImage}; g.oG=function(v){var J=g.HL(v);rYw.includes(J)&&(J="www.youtube.com");return v.protocol+"://"+J}; g.KS=function(v,J){J=J===void 0?"":J;if(v.Iw){var G=new Ct,K,V=v.Iw();V.signedOut?K="":V.token?K=V.token:V.pendingResult.then(function(Y){V.signedOut?G.resolve(""):G.resolve(Y.token)},function(Y){g.Zl(new g.Mk("b189348328_oauth_callback_failed",{error:Y})); G.resolve(J)}); return K!==void 0?ma(K):new Ui(G)}return ma(J)}; VE=function(v,J){J=J===void 0?"":J;return v.Lj?Eu(!0):Ih(Bx(Eu(g.KS(v,J)),function(G){return Eu(!!G)}),function(){return Eu(!1)})}; cL=function(v){var J=g.Wp(v);return(v=Number(g.Qr(4,v))||null)?J+":"+v:J}; Yg=function(v,J){J=J===void 0?!1:J;var G=a$[v],K=qkw[G],V=ETB[v];if(!V||!K)return null;J=new k4(J?V.height:V.width,J?V.width:V.height,V.fps);K=BZ(K,J,G);return new As(v,K,{video:J,ER:V.bitrate/8})}; Pvt=function(v){var J=qkw[a$[v]],G=edU[v];return G&&J?new As(v,J,{audio:new uD(G.audioSampleRate,G.numChannels)}):null}; rh=function(v){this.T=v}; qr=function(v,J,G,K){if(G)return x6();G={};var V=Oj();J=g.n(J);for(var Y=J.next();!Y.done;Y=J.next())if(Y=Y.value,v.canPlayType(V,Y.getInfo().mimeType)||K){var r=Y.T.video.quality;if(!G[r]||G[r].getInfo().M1())G[r]=Y}v=[];G.auto&&v.push(G.auto);K=g.n(cE);for(V=K.next();!V.done;V=K.next())(V=G[V.value])&&v.push(V);return v.length?ma(v):x6()}; DJm=function(v){this.itag=v.itag;this.url=v.url;this.codecs=v.codecs;this.width=v.width;this.height=v.height;this.fps=v.fps;this.bitrate=v.bitrate;var J;this.X=((J=v.audioItag)==null?void 0:J.split(","))||[];this.t4=v.t4;this.k5=v.k5||"";this.hR=v.hR;this.audioChannels=v.audioChannels;this.T=""}; t_2=function(v,J,G,K){J=J===void 0?!1:J;G=G===void 0?!0:G;K=K===void 0?{}:K;var V={};v=g.n(v);for(var Y=v.next();!Y.done;Y=v.next()){Y=Y.value;if(J&&MediaSource&&MediaSource.isTypeSupported){var r=Y.type;Y.audio_channels&&(r=r+"; channels="+Y.audio_channels);if(!MediaSource.isTypeSupported(r)){K[Y.itag]="tpus";continue}}if(G||!Y.drm_families||Y.eotf!=="smpte2084"&&Y.eotf!=="arib-std-b67"){r=void 0;var E={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},e=Y.type.match(/codecs="([^"]*)"/); e=e?e[1]:"";Y.audio_track_id&&(r=new g.q5(Y.name,Y.audio_track_id,!!Y.is_default));var P=Y.eotf;Y=new DJm({itag:Y.itag,url:Y.url,codecs:e,width:Number(Y.width),height:Number(Y.height),fps:Number(Y.fps),bitrate:Number(Y.bitrate),audioItag:Y.audio_itag,t4:P?E[P]:void 0,k5:Y.drm_families,hR:r,audioChannels:Number(Y.audio_channels)});V[Y.itag]=V[Y.itag]||[];V[Y.itag].push(Y)}else K[Y.itag]="enchdr"}return V}; BBf=function(v,J,G,K,V){this.Z=v;this.X=J;this.J=G;this.cpn=K;this.j=V;this.L=0;this.T=""}; I5s=function(v,J){v.Z.some(function(G){var K;return((K=G.hR)==null?void 0:K.getId())===J}); v.T=J}; Ey=function(v,J,G){v.cpn&&(J=g.vt(J,{cpn:v.cpn}));G&&(J=g.vt(J,{paired:G}));return J}; hdr=function(v,J){v=v.itag.toString();J!==null&&(v+=J.itag.toString());return v}; zd8=function(v){for(var J=[],G=[],K=g.n(v.X),V=K.next();!V.done;V=K.next())V=V.value,V.bitrate<=v.L?J.push(V):G.push(V);J.sort(function(Y,r){return r.bitrate-Y.bitrate}); G.sort(function(Y,r){return Y.bitrate-r.bitrate}); v.X=J.concat(G)}; ev=function(v,J,G){this.T=v;this.X=J;this.expiration=G;this.v$=null}; nTm=function(v,J){if(!(Ml||Ql()||Hy()))return null;v=t_2(J,v.C("html5_filter_fmp4_in_hls"));if(!v)return null;J=[];for(var G={},K=g.n(Object.keys(v)),V=K.next();!V.done;V=K.next()){V=g.n(v[V.value]);for(var Y=V.next();!Y.done;Y=V.next()){var r=Y.value;r.hR&&(Y=r.hR.getId(),G[Y]||(r=new g.o3(Y,r.hR),G[Y]=r,J.push(r)))}}return J.length>0?J:null}; TBj=function(v,J,G,K,V,Y,r){if(!(Ml||Ql()||Hy()))return x6();var E={},e=dJ8(G),P=t_2(G,v.C("html5_filter_fmp4_in_hls"),v.J.K,E);if(!P)return r({noplst:1}),x6();ser(P);G={};var D=(G.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",G),t;G=[];var B=[],I=[],h=null,R="";K=K&&K.match(/hls_timedtext_playlist/)?new DJm({itag:"0",url:K,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,hR:new g.q5("English","en",!1)}):null;for(var T=g.n(Object.keys(P)),L=T.next();!L.done;L=T.next())if(L=L.value,!v.C("html5_disable_drm_hfr_1080")|| L!=="383"&&L!=="373"){L=g.n(P[L]);for(var O=L.next();!O.done;O=L.next())if(O=O.value,O.width){for(var x=g.n(O.X),f=x.next();!f.done;f=x.next())if(f=f.value,P[f]){O.T=f;break}O.T||(O.T=RdX(P,O));if(x=P[O.T])if(G.push(O),O.k5==="fairplay"&&(t=D),f="",O.t4==="PQ"?f="smpte2084":O.t4==="HLG"&&(f="arib-std-b67"),f&&(R=f),I.push(l58(x,[O],K,Y,O.itag,O.width,O.height,O.fps,e,void 0,void 0,t,f)),!h||O.width*O.height*O.fps>h.width*h.height*h.fps)h=O}else B.push(O)}else E[L]="disdrmhfr";I.reduce(function(c, b){return b.getInfo().isEncrypted()&&c},!0)&&(t=D); V=Math.max(V,0);D=h||{};P=D.fps===void 0?0:D.fps;h=D.width===void 0?0:D.width;D=D.height===void 0?0:D.height;T=v.C("html5_native_audio_track_switching");I.push(l58(B,G,K,Y,"93",h,D,P,e,"auto",V,t,R,T));Object.entries(E).length&&r(E);return qr(v.J,I,F9(v,J),!1)}; l58=function(v,J,G,K,V,Y,r,E,e,P,D,t,B,I){for(var h=0,R="",T=g.n(v),L=T.next();!L.done;L=T.next())L=L.value,R||(R=L.itag),L.audioChannels&&L.audioChannels>h&&(h=L.audioChannels,R=L.itag);V=new As(V,"application/x-mpegURL",{audio:new uD(0,h),video:new k4(Y,r,E,null,void 0,P,void 0,B),k5:t,LC:R});v=new BBf(v,J,G?[G]:[],K,!!I);v.L=D?D:1369843;return new ev(V,v,e)}; dJ8=function(v){v=g.n(v);for(var J=v.next();!J.done;J=v.next())if(J=J.value,J.url&&(J=J.url.split("expire/"),!(J.length<=1)))return+J[1].split("/")[0];return NaN}; RdX=function(v,J){for(var G=g.n(Object.keys(v)),K=G.next();!K.done;K=G.next()){K=K.value;var V=v[K][0];if(!V.width&&V.k5===J.k5&&!V.audioChannels)return K}return""}; ser=function(v){for(var J=new Set,G=g.n(Object.values(v)),K=G.next();!K.done;K=G.next())K=K.value,K.length&&(K=K[0],K.height&&K.codecs.startsWith("vp09")&&J.add(K.height));G=[];if(J.size){K=g.n(Object.keys(v));for(var V=K.next();!V.done;V=K.next())if(V=V.value,v[V].length){var Y=v[V][0];Y.height&&J.has(Y.height)&&!Y.codecs.startsWith("vp09")&&G.push(V)}}J=g.n(G);for(G=J.next();!G.done;G=J.next())delete v[G.value]}; PG=function(v,J){this.T=v;this.X=J}; pDB=function(v,J,G,K){var V=[];G=g.n(G);for(var Y=G.next();!Y.done;Y=G.next()){var r=Y.value;if(r.url){Y=new g.TV(r.url,!0);if(r.s){var E=Y,e=r.sp,P=s_s(decodeURIComponent(r.s));E.set(e,encodeURIComponent(P))}E=g.n(Object.keys(K));for(e=E.next();!e.done;e=E.next())e=e.value,Y.set(e,K[e]);r=Gz(r.type,r.quality,r.itag,r.width,r.height);V.push(new PG(r,Y))}}return qr(v.J,V,F9(v,J),!1)}; Dx=function(v,J){this.T=v;this.X=J}; LNm=function(v,J,G){var K=[];G=g.n(G);for(var V=G.next();!V.done;V=G.next())if((V=V.value)&&V.url){var Y=Gz(V.type,"medium","0");K.push(new Dx(Y,V.url))}return qr(v.J,K,F9(v,J),!1)}; yYr=function(v,J){var G=[],K=Gz(J.type,"auto",J.itag);G.push(new Dx(K,J.url));return qr(v.J,G,!1,!0)}; Oij=function(v){return v&&wDL[v]?wDL[v]:null}; UJL=function(v){if(v=v.commonConfig)this.url=v.url,this.urlQueryOverride=v.urlQueryOverride,v.ustreamerConfig&&(this.wH=rU(v.ustreamerConfig)||void 0)}; xJX=function(v,J){var G;if(J=J==null?void 0:(G=J.watchEndpointSupportedOnesieConfig)==null?void 0:G.html5PlaybackOnesieConfig)v.Hd=new UJL(J)}; g.tW=function(v){v=v===void 0?{}:v;this.languageCode=v.languageCode||"";this.languageName=v.languageName||null;this.kind=v.kind||"";this.name=v.name===void 0?null:v.name;this.displayName=v.displayName||null;this.id=v.id||null;this.T=v.is_servable||!1;this.isTranslateable=v.is_translateable||!1;this.url=v.url||null;this.vssId=v.vss_id||"";this.isDefault=v.is_default||!1;this.translationLanguage=v.translationLanguage||null;this.xtags=v.xtags||"";this.captionId=v.captionId||""}; g.IG=function(v){var J={languageCode:v.languageCode,languageName:v.languageName,displayName:g.BG(v),kind:v.kind,name:v.name,id:v.id,is_servable:v.T,is_default:v.isDefault,is_translateable:v.isTranslateable,vss_id:v.vssId};v.xtags&&(J.xtags=v.xtags);v.captionId&&(J.captionId=v.captionId);v.translationLanguage&&(J.translationLanguage=v.translationLanguage);return J}; g.hW=function(v){return v.translationLanguage?v.translationLanguage.languageCode:v.languageCode}; g.mJX=function(v){var J=v.vssId;v.translationLanguage&&J&&(J="t"+J+"."+g.hW(v));return J}; g.BG=function(v){var J=[];if(v.displayName)J.push(v.displayName);else{var G=v.languageName||"";J.push(G);v.kind==="asr"&&G.indexOf("(")===-1&&J.push(" (Automatic Captions)");v.name&&J.push(" - "+v.name)}v.translationLanguage&&J.push(" >> "+v.translationLanguage.languageName);return J.join("")}; uZX=function(v,J,G,K){v||(v=J&&Skf.hasOwnProperty(J)&&f5j.hasOwnProperty(J)?f5j[J]+"_"+Skf[J]:void 0);J=v;if(!J)return null;v=J.match(Zij);if(!v||v.length!==5)return null;if(v=J.match(Zij)){var V=Number(v[3]),Y=[7,8,10,5,6];v=!(Number(v[1])===1&&V===8)&&Y.indexOf(V)>=0}else v=!1;return G||K||v?J:null}; z3=function(v,J){for(var G={},K=g.n(Object.keys(gTm)),V=K.next();!V.done;V=K.next()){V=V.value;var Y=J?J+V:V;Y=v[Y+"_webp"]||v[Y];g.vK(Y)&&(G[gTm[V]]=Y)}return G}; nS=function(v){var J={};if(!v||!v.thumbnails)return J;v=v.thumbnails.filter(function(E){return!!E.url}); v.sort(function(E,e){return E.width-e.width||E.height-e.height}); for(var G=g.n(Object.keys(XDL)),K=G.next();!K.done;K=G.next()){var V=Number(K.value);K=XDL[V];for(var Y=g.n(v),r=Y.next();!r.done;r=Y.next())if(r=r.value,r.width>=V){V=k4s(r.url);g.vK(V)&&(J[K]=V);break}}(v=v.pop())&&v.width>=1280&&(v=k4s(v.url),g.vK(v)&&(J["maxresdefault.jpg"]=v));return J}; k4s=function(v){return v.startsWith("//")?"https:"+v:v}; dh=function(v){return v&&v.baseUrl||""}; sy=function(v){v=g.oS(v);for(var J=g.n(Object.keys(v)),G=J.next();!G.done;G=J.next()){G=G.value;var K=v[G];v[G]=Array.isArray(K)?K[0]:K}return v}; cYL=function(v,J){v.botguardData=J.playerAttestationRenderer.botguardData;J=J.playerAttestationRenderer.challenge;J!=null&&(v.H7=J)}; AYj=function(v,J){J=g.n(J);for(var G=J.next();!G.done;G=J.next()){G=G.value;var K=G.interstitials.map(function(r){var E=g.N(r,NB2);if(E)return{is_yto_interstitial:!0,raw_player_response:E};if(r=g.N(r,a5w))return Object.assign({is_yto_interstitial:!0},Jh(r))}); K=g.n(K);for(var V=K.next();!V.done;V=K.next())switch(V=V.value,G.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":v.interstitials=v.interstitials.concat({time:0,playerVars:V,Nd:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":v.interstitials=v.interstitials.concat({time:0x7ffffffffffff,playerVars:V,Nd:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var Y=Number(G.podConfig.timeToInsertAtMillis);v.interstitials=v.interstitials.concat({time:Y,playerVars:V, Nd:Y===0?5:7})}}}; FNj=function(v,J){if(J=J.find(function(G){return!(!G||!G.tooltipRenderer)}))v.tooltipRenderer=J.tooltipRenderer}; Him=function(v,J){J.subscribeCommand&&(v.subscribeCommand=J.subscribeCommand);J.unsubscribeCommand&&(v.unsubscribeCommand=J.unsubscribeCommand);J.addToWatchLaterCommand&&(v.addToWatchLaterCommand=J.addToWatchLaterCommand);J.removeFromWatchLaterCommand&&(v.removeFromWatchLaterCommand=J.removeFromWatchLaterCommand);J.getSharePanelCommand&&(v.getSharePanelCommand=J.getSharePanelCommand)}; M_m=function(v,J){J!=null?(v.ST=J,v.aR=!0):(v.ST="",v.aR=!1)}; RG=function(v,J){this.type=v||"";this.id=J||""}; g.ls=function(v){return new RG(v.substring(0,2),v.substring(2))}; g.T3=function(v,J){this.gh=v;this.author="";this.vT=null;this.playlistLength=0;this.T=this.sessionData=null;this.N={};this.title="";if(J){this.author=J.author||J.playlist_author||"";this.title=J.playlist_title||"";if(v=J.session_data)this.sessionData=$6(v,"&");var G;this.T=((G=J.thumbnail_ids)==null?void 0:G.split(",")[0])||null;this.N=z3(J,"playlist_");this.videoId=J.video_id||void 0;if(G=J.list)switch(J.listType){case "user_uploads":this.playlistId=(new RG("UU","PLAYER_"+G)).toString();break;default:if(v= J.playlist_length)this.playlistLength=Number(v)||0;this.playlistId=g.ls(G).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.pS=function(v,J){this.gh=v;this.mL=this.author="";this.vT=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Rk=this.lengthText="";this.sessionData=null;this.N={};this.title="";if(J){this.ariaLabel=J.aria_label||void 0;this.author=J.author||"";this.mL=J.mL||"";if(v=J.endscreen_autoplay_session_data)this.vT=$6(v,"&");this.pX=J.pX;this.isLivePlayback=J.live_playback==="1";this.isUpcoming=!!J.isUpcoming;if(v=J.length_seconds)this.lengthSeconds=typeof v==="string"?Number(v):v;this.lengthText= J.lengthText||"";this.Rk=J.Rk||"";this.publishedTimeText=J.publishedTimeText||void 0;if(v=J.session_data)this.sessionData=$6(v,"&");this.shortViewCount=J.short_view_count_text||void 0;this.N=z3(J);this.title=J.title||"";this.videoId=J.docid||J.video_id||J.videoId||J.id||void 0;this.watchUrl=J.watchUrl||void 0}}; QeL=function(v){var J,G,K=(J=v.getWatchNextResponse())==null?void 0:(G=J.contents)==null?void 0:G.twoColumnWatchNextResults,V,Y,r,E,e;v=(V=v.getWatchNextResponse())==null?void 0:(Y=V.playerOverlays)==null?void 0:(r=Y.playerOverlayRenderer)==null?void 0:(E=r.endScreen)==null?void 0:(e=E.watchNextEndScreenRenderer)==null?void 0:e.results;if(!v){var P,D;v=K==null?void 0:(P=K.endScreen)==null?void 0:(D=P.endScreen)==null?void 0:D.results}return v}; g.yE=function(v){var J,G,K;v=g.N((J=v.getWatchNextResponse())==null?void 0:(G=J.playerOverlays)==null?void 0:(K=G.playerOverlayRenderer)==null?void 0:K.decoratedPlayerBarRenderer,LS);return g.N(v==null?void 0:v.playerBar,WN8)}; Cvj=function(v){this.T=v.playback_progress_0s_url;this.Z=v.playback_progress_2s_url;this.X=v.playback_progress_10s_url}; bi8=function(){if(wh===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(J){}a:{try{var v=!!self.localStorage}catch(J){v=!1}if(v&&(v=g.u6(g.QC()+"::yt-player"))){wh=new cs(v);break a}wh=void 0}}return wh}; g.Oy=function(){var v=bi8();if(!v)return{};try{var J=v.get("yt-player-lv");return JSON.parse(J||"{}")}catch(G){return{}}}; g.jow=function(v){var J=bi8();J&&(v=JSON.stringify(v),J.set("yt-player-lv",v))}; g.Uy=function(v){return g.Oy()[v]||0}; g.xg=function(v,J){var G=g.Oy();J!==G[v]&&(J!==0?G[v]=J:delete G[v],g.jow(G))}; g.m6=function(v){return g.m(function(J){return J.return(g.AP(iaw(),v))})}; fS=function(v,J,G,K,V,Y,r,E){var e,P,D,t,B,I;return g.m(function(h){switch(h.T){case 1:return e=g.Uy(v),e===4?h.return(4):g.U(h,g.jg(),2);case 2:P=h.X;if(!P)throw g.sT("wiac");if(!E||r===void 0){h.sB(3);break}return g.U(h,$e8(E,r),4);case 4:r=h.X;case 3:return D=G.lastModified||"0",g.U(h,g.m6(P),5);case 5:return t=h.X,g.nf(h,6),Sv++,g.U(h,g.xq(t,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",jX:!0},function(R){if(Y!==void 0&&r!==void 0){var T=""+v+"|"+J.id+"|"+D+"|"+String(Y).padStart(10, "0");T=g.mg(R.objectStore("media"),r,T)}else T=g.lK.resolve(void 0);var L=vcU(v,J.Vk()),O=vcU(v,!J.Vk()),x={fmts:J2m(K),format:G||{}};L=g.mg(R.objectStore("index"),x,L);var f=K.downloadedEndTime===-1;x=f?R.objectStore("index").get(O):g.lK.resolve(void 0);var c={fmts:"music",format:{}};R=f&&V&&!J.Vk()?g.mg(R.objectStore("index"),c,O):g.lK.resolve(void 0);return g.lK.all([R,x,T,L]).then(function(b){b=g.n(b);b.next();b=b.next().value;Sv--;var M=g.Uy(v);if(M!==4&&f&&V||b!==void 0&&g.GCs(b.fmts))M=1,g.xg(v, M);return M})}),8); case 8:return h.return(h.X);case 6:B=g.lj(h);Sv--;I=g.Uy(v);if(I===4)return h.return(I);g.xg(v,4);throw B;}})}; g.oc8=function(v){var J,G;return g.m(function(K){if(K.T==1)return g.U(K,g.jg(),2);if(K.T!=3){J=K.X;if(!J)throw g.sT("ri");return g.U(K,g.m6(J),3)}G=K.X;return K.return(g.xq(G,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(V){var Y=IDBKeyRange.bound(v+"|",v+"~");return V.objectStore("index").getAll(Y).then(function(r){return r.map(function(E){return E?E.format:{}})})}))})}; Vsm=function(v,J,G,K,V){var Y,r,E;return g.m(function(e){if(e.T==1)return g.U(e,g.jg(),2);if(e.T!=3){Y=e.X;if(!Y)throw g.sT("rc");return g.U(e,g.m6(Y),3)}r=e.X;E=g.xq(r,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(P){var D=""+v+"|"+J+"|"+G+"|"+String(K).padStart(10,"0");return P.objectStore("media").get(D)}); return V?e.return(E.then(function(P){if(P===void 0)throw Error("No data from indexDb");return K38(V,P)}).catch(function(P){throw new g.Mk("Error while reading chunk: "+P.name+", "+P.message); })):e.return(E)})}; g.GCs=function(v){return v?v==="music"?!0:v.includes("dlt=-1")||!v.includes("dlt="):!1}; vcU=function(v,J){return""+v+"|"+(J?"v":"a")}; J2m=function(v){var J={};return vy((J.dlt=v.downloadedEndTime.toString(),J.mket=v.maxKnownEndTime.toString(),J.avbr=v.averageByteRate.toString(),J))}; r2j=function(v){var J={},G={};v=g.n(v);for(var K=v.next();!K.done;K=v.next()){var V=K.value,Y=V.split("|");V.match(g.YRm)?(K=Number(Y.pop()),isNaN(K)?G[V]="?":(Y=Y.join("|"),(V=J[Y])?(Y=V[V.length-1],K===Y.end+1?Y.end=K:V.push({start:K,end:K})):J[Y]=[{start:K,end:K}])):G[V]="?"}v=g.n(Object.keys(J));for(K=v.next();!K.done;K=v.next())K=K.value,G[K]=J[K].map(function(r){return r.start+"-"+r.end}).join(","); return G}; Zx=function(v){g.qU.call(this);this.T=null;this.Z=new kf;this.T=null;this.j=new Set;this.crossOrigin=v||""}; qRw=function(v,J,G){for(G=us(v,G);G>=0;){var K=v.levels[G];if(K.isLoaded(gh(K,J))&&(K=g.XP(K,J)))return K;G--}return g.XP(v.levels[0],J)}; eSB=function(v,J,G){G=us(v,G);for(var K,V;G>=0;G--)if(K=v.levels[G],V=gh(K,J),!K.isLoaded(V)){K=v;var Y=G,r=Y+"-"+V;K.j.has(r)||(K.j.add(r),K.Z.enqueue(Y,{qb:Y,Qz:V}))}Ect(v)}; Ect=function(v){if(!v.T&&!v.Z.isEmpty()){var J=v.Z.remove();v.T=Pum(v,J)}}; Pum=function(v,J){var G=document.createElement("img");v.crossOrigin&&(G.crossOrigin=v.crossOrigin);G.src=v.levels[J.qb].Dm(J.Qz);G.onload=function(){var K=J.qb,V=J.Qz;v.T!==null&&(v.T.onload=null,v.T=null);K=v.levels[K];K.loaded.add(V);Ect(v);var Y=K.columns*K.rows;V*=Y;K=Math.min(V+Y-1,K.R9()-1);V=[V,K];v.publish("l",V[0],V[1])}; return G}; g.kg=function(v,J,G,K){this.level=v;this.L=J;this.loaded=new Set;this.level=v;this.L=J;v=G.split("#");this.width=Math.floor(Number(v[0]));this.height=Math.floor(Number(v[1]));this.frameCount=Math.floor(Number(v[2]));this.columns=Math.floor(Number(v[3]));this.rows=Math.floor(Number(v[4]));this.T=Math.floor(Number(v[5]));this.Z=v[6];this.signature=v[7];this.videoLength=K}; gh=function(v,J){return Math.floor(J/(v.columns*v.rows))}; g.XP=function(v,J){J>=v.I0()&&v.qt();var G=gh(v,J),K=v.columns*v.rows,V=J%K;J=V%v.columns;V=Math.floor(V/v.columns);var Y=v.qt()+1-K*G;if(Y1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; DeX=function(v,J,G){return(v=v.levels[J])?v.YD(G):-1}; us=function(v,J){var G=v.L.get(J);if(G)return G;G=v.levels.length;for(var K=0;K=J)return v.L.set(J,K),K;v.L.set(J,G-1);return G-1}; Nr=function(v,J,G,K){G=G.split("#");G=[G[1],G[2],0,G[3],G[4],-1,G[0],""].join("#");g.kg.call(this,v,J,G,0);this.X=null;this.J=K?2:0}; aG=function(v,J,G,K){cG.call(this,v,0,void 0,J,!(K===void 0||!K));for(v=0;v(G!=null?G:50)&&(G=RSm.shift())&&CS.delete(G),G=V),V!==G&&v.SG("ssei","dcpn_"+V+"_"+G+"_"+v.clientPlaybackNonce),G)}; Mr=function(v,J){var G=J.raw_watch_next_response;if(!G){var K=J.watch_next_response;K&&(G=JSON.parse(K))}if(G){v.Gi=G;var V=v.Gi.playerCueRangeSet;V&&g.bs(v,V);var Y=v.Gi.playerOverlays;if(Y){var r=Y.playerOverlayRenderer;if(r){var E=r.autonavToggle;E&&(v.autoplaySwitchButtonRenderer=g.N(E,leU),v.C("web_player_autonav_use_server_provided_state")&&j0(v)&&(v.autonavState=v.autoplaySwitchButtonRenderer.enabled?2:1));var e=r.videoDetails;if(e){var P=e.embeddedPlayerOverlayVideoDetailsRenderer;var D=e.playerOverlayVideoDetailsRenderer; D&&(D.title&&(J.title=g.h9(D.title)),D.subtitle&&(J.subtitle=g.h9(D.subtitle)))}g.ZR(v.gh)&&(v.G4=!!r.addToMenu);Tcw(v,r.shareButton);r.startPosition&&r.endPosition&&(v.progressBarStartPosition=r.startPosition,v.progressBarEndPosition=r.endPosition);var t=r.gatedActionsOverlayRenderer;t&&(v.LG=g.N(t,p6t));var B,I,h,R=g.N((B=v.getWatchNextResponse())==null?void 0:(I=B.playerOverlays)==null?void 0:(h=I.playerOverlayRenderer)==null?void 0:h.infoPanel,L3j);if(R){v.mC=Number(R==null?void 0:R.durationMs)|| NaN;if(R==null?0:R.infoPanelOverviewViewModel)v.E9=R==null?void 0:R.infoPanelOverviewViewModel;if(R==null?0:R.infoPanelDetailsViewModel)v.Ct=R==null?void 0:R.infoPanelDetailsViewModel}v.showSeekingControls=!!r.showSeekingControls}}var T,L,O=(T=v.getWatchNextResponse())==null?void 0:(L=T.contents)==null?void 0:L.twoColumnWatchNextResults;if(O){var x=O.desktopOverlay&&g.N(O.desktopOverlay,y2X);x&&(x.suppressShareButton&&(v.showShareButton=!1),x.suppressWatchLaterButton&&(v.G4=!1))}P&&w6f(v,J,P);var f= Kq(0,J.autoplay_count),c=v.getWatchNextResponse(),b,M=(b=c.contents)==null?void 0:b.twoColumnWatchNextResults,Jw,Kf,j8,a=(Jw=c.playerOverlays)==null?void 0:(Kf=Jw.playerOverlayRenderer)==null?void 0:(j8=Kf.autoplay)==null?void 0:j8.playerOverlayAutoplayRenderer,C=QeL(v),d,A=(d=c.contents)==null?void 0:d.singleColumnWatchNextResults;if(A){var cF;if(((cF=A.autoplay)==null?0:cF.autoplay)&&!A.playlist){var RL=A.autoplay.autoplay.sets,BN={},pf=new g.pS(v.B()),iU=null,VY;if(RL){for(var IL=g.n(RL),p=IL.next();!p.done;p= IL.next()){var y=p.value.autoplayVideoRenderer;if(y&&y.compactVideoRenderer){iU=y.compactVideoRenderer;break}}if(VY=RL[0].autoplayVideo){var w=VY.clickTrackingParams;w&&(BN.itct=w);BN.autonav="1";BN.playnext=String(f)}}else BN.feature="related-auto";var S=g.N(VY,g.ig);if(iU){pf.videoId=iU.videoId;var Z=iU.shortBylineText;Z&&(pf.author=g.h9(Z));var ij=iU.title;ij&&(pf.title=g.h9(ij))}else S!=null&&S.videoId&&(pf.videoId=S.videoId);pf.vT=BN;v.suggestions=[];v.QL=pf}}if(C){for(var GX=[],om=g.n(C),u= om.next();!u.done;u=om.next()){var dw=u.value,VB=void 0,Ys=null;if(dw.endScreenVideoRenderer){var xs=dw.endScreenVideoRenderer,WF=xs.title;Ys=new g.pS(v.B());Ys.videoId=xs.videoId;Ys.lengthSeconds=xs.lengthInSeconds||0;var X8=xs.publishedTimeText;X8&&(Ys.publishedTimeText=g.h9(X8));var CG=xs.shortBylineText;CG&&(Ys.author=g.h9(CG));var F2=xs.shortViewCountText;F2&&(Ys.shortViewCount=g.h9(F2));if(WF){Ys.title=g.h9(WF);var HW=WF.accessibility;if(HW){var X0=HW.accessibilityData;X0&&X0.label&&(Ys.ariaLabel= X0.label)}}var tA=xs.navigationEndpoint;if(tA){VB=tA.clickTrackingParams;var Aq=g.N(tA,g.ig),EA=g.N(tA,g.g8);Aq?Ys.pX=Aq:EA!=null&&(Ys.watchUrl=EA.url)}var Mh=xs.thumbnailOverlays;if(Mh)for(var kY=g.n(Mh),QK=kY.next();!QK.done;QK=kY.next()){var Rn=QK.value.thumbnailOverlayTimeStatusRenderer;if(Rn)if(Rn.style==="LIVE"){Ys.isLivePlayback=!0;break}else if(Rn.style==="UPCOMING"){Ys.isUpcoming=!0;break}}Ys.N=nS(xs.thumbnail)}else if(dw.endScreenPlaylistRenderer){var eK=dw.endScreenPlaylistRenderer,xb= eK.navigationEndpoint;if(!xb)continue;var BJ=g.N(xb,g.ig);if(!BJ)continue;var mK=BJ.videoId;Ys=new g.T3(v.B());Ys.playlistId=eK.playlistId;Ys.playlistLength=Number(eK.videoCount)||0;Ys.T=mK||null;Ys.videoId=mK;var cu=eK.title;cu&&(Ys.title=g.h9(cu));var NE=eK.shortBylineText;NE&&(Ys.author=g.h9(NE));VB=xb.clickTrackingParams;Ys.N=nS(eK.thumbnail)}Ys&&(VB&&(Ys.sessionData={itct:VB}),GX.push(Ys))}v.suggestions=GX}if(a){v.Kl=!!a.preferImmediateRedirect;v.Hv=v.Hv||!!a.webShowNewAutonavCountdown;v.rE= v.rE||!!a.webShowBigThumbnailEndscreen;if(v.Hv||v.rE){var Tj=M||null,iy=new g.pS(v.B());iy.videoId=a.videoId;var WM=a.videoTitle;if(WM){iy.title=g.h9(WM);var oI=WM.accessibility;if(oI){var fM=oI.accessibilityData;fM&&fM.label&&(iy.ariaLabel=fM.label)}}var QZ=a.byline;QZ&&(iy.author=g.h9(QZ));var tE=a.publishedTimeText;tE&&(iy.publishedTimeText=g.h9(tE));var dj=a.shortViewCountText;dj&&(iy.shortViewCount=g.h9(dj));var sP=a.thumbnailOverlays;if(sP)for(var Rj=g.n(sP),ra=Rj.next();!ra.done;ra=Rj.next()){var EG= ra.value.thumbnailOverlayTimeStatusRenderer;if(EG)if(EG.style==="LIVE"){iy.isLivePlayback=!0;break}else if(EG.style==="UPCOMING"){iy.isUpcoming=!0;break}else if(EG.style==="DEFAULT"&&EG.text){iy.lengthText=g.h9(EG.text);var q0=EG.text.accessibility;if(q0){var EQ=q0.accessibilityData;EQ&&EQ.label&&(iy.Rk=EQ.label||"")}break}}iy.N=nS(a.background);var lS=a.nextButton;if(lS){var Tz=lS.buttonRenderer;if(Tz){var pt=Tz.navigationEndpoint;if(pt){var Lt=g.N(pt,g.ig);Lt&&(iy.pX=Lt)}}}if(a.topBadges){var y4= a.topBadges[0];if(y4){var wj=g.N(y4,Oaf);wj&&wj.style==="BADGE_STYLE_TYPE_PREMIUM"&&(iy.SsH=!0)}}var MN=a.alternativeTitle;MN&&(iy.mL=g.h9(MN));var Z$={autonav:"1",playnext:String(f)};iy.playlistId&&(Z$.autoplay="1");if(Tj){var Qf,Fb,ef,OP,PB=(Qf=Tj.autoplay)==null?void 0:(Fb=Qf.autoplay)==null?void 0:(ef=Fb.sets)==null?void 0:(OP=ef[0])==null?void 0:OP.autoplayVideo;if(PB){var UP=PB.clickTrackingParams;UP&&(Z$.itct=UP);var DY=g.N(PB,g.ig);DY&&(iy.u_=DY)}}else if(a){var xG,ml,Sl,ft=(xG=a.nextButton)== null?void 0:(ml=xG.buttonRenderer)==null?void 0:(Sl=ml.navigationEndpoint)==null?void 0:Sl.clickTrackingParams;ft&&(Z$.itct=ft)}Z$.itct||(Z$.feature="related-auto");iy.vT=Z$;v.suggestions||(v.suggestions=[]);v.QL=iy}a.countDownSecs!=null&&(v.FJ=a.countDownSecs*1E3);a.countDownSecsForFullscreen!=null&&(v.Ak=a.countDownSecsForFullscreen>=0?a.countDownSecsForFullscreen*1E3:-1);v.C("web_autonav_color_transition")&&a.watchToWatchTransitionRenderer&&(v.watchToWatchTransitionRenderer=g.N(a.watchToWatchTransitionRenderer, UeB))}var tu=QeL(v);if(tu){var h$,Zo,BB,Iw=tu==null?void 0:(h$=tu[0])==null?void 0:(Zo=h$.endScreenVideoRenderer)==null?void 0:(BB=Zo.navigationEndpoint)==null?void 0:BB.clickTrackingParams,uS=g.$J(v);Iw&&uS&&(uS.sessionData={itct:Iw})}v.Gi.currentVideoThumbnail&&(v.N=nS(v.Gi.currentVideoThumbnail));var Wm,gj,Xj,Ch,kG,zw=(Wm=v.Gi)==null?void 0:(gj=Wm.contents)==null?void 0:(Xj=gj.twoColumnWatchNextResults)==null?void 0:(Ch=Xj.results)==null?void 0:(kG=Ch.results)==null?void 0:kG.contents;if(zw&&zw[1]){var cI, NG,u4,sx,aW=(cI=zw[1].videoSecondaryInfoRenderer)==null?void 0:(NG=cI.owner)==null?void 0:(u4=NG.videoOwnerRenderer)==null?void 0:(sx=u4.thumbnail)==null?void 0:sx.thumbnails;aW&&aW.length&&(v.profilePicture=aW[aW.length-1].url)}var aj=rs(J),hu,ne=(hu=v.getWatchNextResponse())==null?void 0:hu.onResponseReceivedEndpoints;if(ne)for(var de=g.n(ne),z_=de.next();!z_.done;z_=de.next()){var AC=z_.value;g.N(AC,vm)&&(v.Ll=g.N(AC,vm));var sa=g.N(AC,xew),AB=void 0;if((AB=sa)==null?0:AB.entityKeys)v.Ka=sa.entityKeys|| [],sa.visibleOnLoadKeys&&(v.visibleOnLoadKeys=sa.visibleOnLoadKeys)}if(v.C("web_key_moments_markers")){var jI=g.J3.getState().entities,Pj=g.j9("visibility_override","markersVisibilityOverrideEntity");var W$=$C(jI,"markersVisibilityOverrideEntity",Pj);v.o$=(W$==null?void 0:W$.videoId)===(v.videoId||aj)&&(W$==null?0:W$.visibilityOverrideMarkersKey)?W$.visibilityOverrideMarkersKey:v.visibleOnLoadKeys;v.visibleOnLoadKeys=[].concat(g.l(v.o$))}}}; j0=function(v){var J;return((J=v.autoplaySwitchButtonRenderer)==null?void 0:J.enabled)!==void 0}; G5=function(v){return!!(v.Z&&v.Z.videoInfos&&v.Z.videoInfos.length)}; g.rH=function(v){var J=v.U;v.C("html5_gapless_unlimit_format_selection")&&ov(v)&&(J=!1);var G=!!v.T&&v.T.yn,K=v.gh,V=v.Ac(),Y=Kh(v),r=v.jl,E=J,e=v.isOtf();J=v.Cg();var P=v.Nr,D=v.getUserAudio51Preference(),t=Vf(v),B=new VP8(K);if(K.GG()||K.C("html5_logging_format_selection"))B.X=!0;B.xB=Y;B.jl=r&&K.K;B.qr=D;g.aS("windows nt 5.1")&&!g.N5&&(B.zy=!0);if(Y=V)Y=g.vG(K)?KNf(K):!1;Y&&(B.Ti=!0);E&&(B.zy=!0,B.Vn=!0);e&&!K.C("html5_otf_prefer_vp9")&&(B.zy=!0);K.playerStyle==="picasaweb"&&(e&&(B.zy=!1),B.dh= !1);P&&(B.zy=!0);R3(K.J,lf.CHANNELS)&&(K.C("html5_enable_ac3")&&(B.J=!0),K.C("html5_enable_eac3")&&(B.j=!0),K.C("html5_enable_ac3_gapless")&&(B.YB=!0));K.C("html5_block_8k_hfr")&&(B.WH=!0);B.K=g.DI(K.experiments,"html5_max_selectable_quality_ordinal");B.U=g.DI(K.experiments,"html5_min_selectable_quality_ordinal");LY&&(B.OR=480);if(G||V)B.dh=!1;B.Nr=!1;B.disableAv1=t;G=m_(K,B.T,void 0,B.disableAv1);G>0&&G<2160&&(Ij()||K.C("html5_format_hybridization"))&&(B.T.supportsChangeType=+Ij(),B.zb=G);G>=2160&& (B.Mr=!0);mVU()&&(B.T.serveVp9OverAv1IfHigherRes=0,B.yy=!1);B.Cg=J;B.RY=g.QR||v8()&&!J?!1:!0;B.N=K.C("html5_format_hybridization");B.d_=K.C("html5_disable_encrypted_vp9_live_non_2k_4k");YJ(v)&&(B.a$=v.C("html5_prefer_language_over_codec"));Hy()&&v.playerResponse&&v.playerResponse.playerConfig&&v.playerResponse.playerConfig.webPlayerConfig&&v.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(B.J=!0,B.j=!0);v.U&&v.isAd()&&(v.WL&&(B.oY=v.WL),v.Ox&&(B.L=v.Ox));B.Gi=v.isLivePlayback&& v.cw()&&v.gh.C("html5_drm_live_audio_51");B.o$=v.FI;return v.rJ=B}; Vf=function(v){return v.gh.C("html5_disable_av1")||v.C("html5_gapless_shorts_disable_av1")&&ov(v)?!0:!1}; me8=function(v){cB("drm_pb_s",void 0,v.RY);v.WH||v.T&&hp(v.T);var J={};v.T&&(J=Fp2(v.dQ,g.rH(v),v.gh.J,v.T,function(G){return v.publish("ctmp","fmtflt",G)},!0,new Set)); J=new Q7(J,v.gh,v.zW,v.useCobaltWidevine?Hy()?qN(v):!1:!1,function(G,K){v.uw(G,K)}); g.k(v,J);v.Aw=!1;v.loading=!0;hgU(J,function(G){cB("drm_pb_f",void 0,v.RY);for(var K=g.n(G),V=K.next();!V.done;V=K.next())switch(V=V.value,V.flavor){case "fairplay":V.WH=v.WH;V.jM=v.jM;V.Lx=v.Lx;break;case "widevine":V.Px=v.Px}v.VT=G;if(v.VT.length>0&&(v.J=v.VT[0],v.gh.GG())){G={};K=g.n(Object.entries(v.J.T));for(V=K.next();!V.done;V=K.next()){var Y=g.n(V.value);V=Y.next().value;Y=Y.next().value;var r="unk";(V=V.match(/(.*)codecs="(.*)"/))&&(r=V[2]);G[r]=Y}v.uw("drmProbe",G)}v.B_()})}; SRf=function(v,J){if(J.length===0||EL(v))return null;v.gh.J.Z&&(O4=!0);var G=v.k5;var K=v.lengthSeconds,V=v.isLivePlayback,Y=v.mU,r=v.gh,E=Flj(J);if(V||Y){r=r.experiments;K=new t1("",r,!0);K.X=!Y;K.yn=!0;K.isManifestless=!0;K.isLive=!Y;K.mU=Y;J=g.n(J);for(V=J.next();!V.done;V=J.next()){var e=V.value;V=h1(e,G);E=U1(e);E=n0(E.W9||e.url||"",E.sf,E.s);var P=E.get("id");P&&P.includes("%7E")&&(K.N=!0);var D=void 0;P=(D=r)==null?void 0:D.OB("html5_max_known_end_time_rebase");D=Number(e.targetDurationSec|| 5);e=Number(e.maxDvrDurationSec||14400);var t=Number(E.get("mindsq")||E.get("min_sq")||"0"),B=Number(E.get("maxdsq")||E.get("max_sq")||"0")||Infinity;K.yk=K.yk||t;K.zv=K.zv||B;var I=!JB(V.mimeType);E&&e2(K,new j2(E,V,{eF:D,lj:I,An:e,yk:t,zv:B,jZ:300,mU:Y,BM:P}))}G=K}else if(E==="FORMAT_STREAM_TYPE_OTF"){K=K===void 0?0:K;Y=new t1("",r.experiments,!1);Y.duration=K||0;r=g.n(J);for(K=r.next();!K.done;K=r.next())K=K.value,J=h1(K,G,Y.duration),V=U1(K),(V=n0(V.W9||K.url||"",V.sf,V.s))&&(J.streamType==="FORMAT_STREAM_TYPE_OTF"? e2(Y,new iB(V,J,"sq/0")):e2(Y,new rE(V,J,mu(K.initRange),mu(K.indexRange))));Y.isOtf=!0;G=Y}else{K=K===void 0?0:K;Y=new t1("",r.experiments,!1);Y.duration=K||0;r=g.n(J);for(K=r.next();!K.done;K=r.next())E=K.value,K=h1(E,G,Y.duration),J=mu(E.initRange),V=mu(E.indexRange),P=U1(E),(E=n0(P.W9||E.url||"",P.sf,P.s))&&e2(Y,new rE(E,K,J,V));G=Y}Y=v.isLivePlayback&&!v.mU&&!v.qr&&!v.isPremiere;v.C("html5_live_head_playable")&&(!e0(v)&&Y&&v.uw("missingLiveHeadPlayable",{}),v.gh.oY==="yt"&&(G.RY=!0));return G}; EL=function(v){return Hy()?!qN(v):Ql()?!(!v.WH||!v.C("html5_enable_safari_fairplay")&&JM()):!1}; qN=function(v){return v.C("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.bs=function(v,J){J=g.n(J);for(var G=J.next();!G.done;G=J.next())if(G=G.value,G.cueRangeSetIdentifier){var K=void 0;v.T9.set(G.cueRangeSetIdentifier,(K=G.playerCueRanges)!=null?K:[])}}; Pm=function(v){return!(!v.T||!v.T.isManifestless)}; DN=function(v){return v.KK?v.isLowLatencyLiveStream&&v.T!=null&&lB(v.T)>=5:v.isLowLatencyLiveStream&&v.T!=void 0&&lB(v.T)>=5}; feX=function(v){return Hy()&&qN(v)?!1:EL(v)&&(g.pX(v.gh)?!v.isLivePlayback:v.hlsvp)||!JM()||v.qA?!0:!1}; gcf=function(v){v.loading=!0;v.Po=!1;if(Zaw(v))g.oc8(v.videoId).then(function(K){uRw(v,K)}).then(function(){v.B_()}); else{$M(v.BO)||g.Zl(new g.Mk("DASH MPD Origin invalid: ",v.BO));var J=v.BO,G=g.DI(v.gh.experiments,"dash_manifest_version")||4;J=g.vt(J,{mpd_version:G});v.isLowLatencyLiveStream&&v.latencyClass!=="NORMAL"||(J=g.vt(J,{pacing:0}));iBU(J,v.gh.experiments,v.isLivePlayback).then(function(K){v.Sl()||(t3(v,K,!0),cB("mrc",void 0,v.RY),v.B_())},function(K){v.Sl()||(v.loading=!1,v.publish("dataloaderror",new L6("manifest.net.retryexhausted",{backend:"manifest", rc:K.status},1)))}); cB("mrs",void 0,v.RY)}}; uRw=function(v,J){var G=J.map(function(e){return e.itag}),K; if((K=v.playerResponse)!=null&&K.streamingData){K=[];if(v.C("html5_offline_always_use_local_formats")){G=0;for(var V=g.n(J),Y=V.next();!Y.done;Y=V.next()){Y=Y.value;var r=Object.assign({},Y);r.signatureCipher="";K.push(r);r=g.n(v.playerResponse.streamingData.adaptiveFormats);for(var E=r.next();!E.done;E=r.next())if(E=E.value,Y.itag===E.itag&&Y.xtags===E.xtags){G+=1;break}}GD&&(D=I.getInfo().audio.numChannels)}D>2&&v.uw("hlschl",{mn:D});var T;((T=v.rJ)==null?0:T.X)&&v.uw("hlsfmtaf",{itags:t.join(".")});var L;if(v.C("html5_enable_vp9_fairplay")&&((L=v.J)==null?0:kI(L)))for(v.uw("drm",{sbdlfbk:1}),D=g.n(v.VT),t=D.next();!t.done;t=D.next())if(t=t.value,Xi(t)){v.J=t;break}z5(v,P)})}return x6()}; ae2=function(v){if(v.isExternallyHostedPodcast&&v.Es){var J=h3(v.Es);if(!J[0])return x6();v.oL=J[0];return yYr(v.gh,J[0]).then(function(G){z5(v,G)})}return v.im&&v.du?LNm(v.gh,v.isAd(),v.im).then(function(G){z5(v,G)}):x6()}; F3X=function(v){if(v.isExternallyHostedPodcast)return x6();var J=h3(v.Es,v.Db);if(v.hlsvp){var G=tst(v.hlsvp,v.clientPlaybackNonce,v.qj);J.push(G)}return pDB(v.gh,v.isAd(),J,A2w(v)).then(function(K){z5(v,K)})}; z5=function(v,J){v.Xm=J;v.bv(new Pk(g.yn(v.Xm,function(G){return G.getInfo()})))}; A2w=function(v){var J={cpn:v.clientPlaybackNonce,c:v.gh.T.c,cver:v.gh.T.cver};v.DW&&(J.ptk=v.DW,J.oid=v.qR,J.ptchn=v.yD,J.pltype=v.SY,v.MC&&(J.m=v.MC));return J}; g.nh=function(v){return EL(v)&&v.WH?(v={},v.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",v):v.X&&v.X.k5||null}; Haj=function(v){var J=dH(v);return J&&J.text?g.h9(J.text):v.paidContentOverlayText}; Msm=function(v){var J=dH(v);return J&&J.durationMs?qi(J.durationMs):v.paidContentOverlayDurationMs}; dH=function(v){var J,G,K;return v.playerResponse&&v.playerResponse.paidContentOverlay&&v.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.N((J=v.Gi)==null?void 0:(G=J.playerOverlays)==null?void 0:(K=G.playerOverlayRenderer)==null?void 0:K.playerDisclosure,Qot)||null}; sL=function(v){var J="";if(v.ZY)return v.ZY;v.isLivePlayback&&(J=v.allowLiveDvr?"dvr":v.isPremiere?"lp":v.qr?"window":"live");v.mU&&(J="post");return J}; g.Rv=function(v,J){return typeof v.keywords[J]!=="string"?null:v.keywords[J]}; W3F=function(v){return!!v.tF||!!v.OP||!!v.nU||!!v.Y3||v.u$||v.K.focEnabled||v.K.rmktEnabled}; g.lg=function(v){return!!(v.BO||v.Es||v.im||v.hlsvp||v.b4())}; HG=function(v){if(v.C("html5_onesie")&&v.errorCode)return!1;var J=g.WN(v.dh,"ypc");v.ypcPreview&&(J=!1);return v.B1()&&!v.loading&&(g.lg(v)||g.WN(v.dh,"heartbeat")||J)}; h3=function(v,J){v=Ge(v);var G={};if(J){J=g.n(J.split(","));for(var K=J.next();!K.done;K=J.next())(K=K.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(G[K[1]]={width:K[2],height:K[3]})}J=g.n(v);for(K=J.next();!K.done;K=J.next()){K=K.value;var V=G[K.itag];V&&(K.width=V.width,K.height=V.height)}return v}; T5=function(v){var J=v.getAvailableAudioTracks();J=J.concat(v.Vu);for(var G=0;G0:J||v.adFormat!=="17_8"||v.isAutonav||g.is(v.gh)||v.xK?v.jK?!1:v.gh.H8||v.gh.Jm||!g.Of(v.gh)?!J&&ZN(v)==="adunit"&&v.tF?!1:!0:!1:!1:(v.jK?0:v.IR)&&g.Of(v.gh)?!0:!1;v.C("html5_log_detailpage_autoplay")&&ZN(v)==="detailpage"&&v.uw("autoplay_info",{autoplay:v.Qu,autonav:v.isAutonav,wasDompaused:v.jK,result:J});return J}; g.cm=function(v){return v.oauthToken||v.gh.wP}; rXm=function(v){if(v.C("html5_stateful_audio_normalization")){var J=1,G=g.DI(v.gh.experiments,"html5_default_ad_gain");G&&v.isAd()&&(J=G);var K;if(G=((K=v.L)==null?void 0:K.audio.X)||v.Eo){K=(0,g.yR)();v.eT=2;var V=K-v.gh.Yv<=v.maxStatefulTimeThresholdSec*1E3;v.applyStatefulNormalization&&V?v.eT=4:V||(v.gh.nj=Infinity,v.gh.Yv=NaN);V=(v.eT===4?g.nk(v.gh.nj,v.minimumLoudnessTargetLkfs,v.loudnessTargetLkfs):v.loudnessTargetLkfs)-G;if(v.eT!==4){var Y,r,E,e,P=((Y=v.playerResponse)==null?void 0:(r=Y.playerConfig)== null?void 0:(E=r.audioConfig)==null?void 0:(e=E.loudnessNormalizationConfig)==null?void 0:e.statelessLoudnessAdjustmentGain)||0;V+=P}V=Math.min(V,0);v.preserveStatefulLoudnessTarget&&(v.gh.nj=G+V,v.gh.Yv=K);v=Math.min(1,Math.pow(10,V/20))||J}else v=Yrw(v)}else v=Yrw(v);return v}; Yrw=function(v){var J=1,G=g.DI(v.gh.experiments,"html5_default_ad_gain");G&&v.isAd()&&(J=G);var K;if(G=((K=v.L)==null?void 0:K.audio.Z)||v.dG)v.eT=1;return Math.min(1,Math.pow(10,-G/20))||J}; Kh=function(v){var J=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],G=jN(v.gh)==="TVHTML5_SIMPLY"&&v.gh.T.ctheme==="MUSIC";v.H8||!g.gy(v.gh)&&!G||!J.includes(v.musicVideoType)&&!v.isExternallyHostedPodcast||(v.H8=!0);if(J=g.FX())J=/Starboard\/([0-9]+)/.exec(g.wT()),J=(J?parseInt(J[1],10):NaN)<10;G=v.gh;G=(jN(G)==="TVHTML5_CAST"||jN(G)==="TVHTML5"&&(G.T.cver.startsWith("6.20130725")||G.T.cver.startsWith("6.20130726")))&&v.gh.T.ctheme==="MUSIC";var K;if(K=!v.H8)G||(G=v.gh,G=jN(G)=== "TVHTML5"&&G.T.cver.startsWith("7")),K=G;K&&!J&&(J=v.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",G=(v.C("cast_prefer_audio_only_for_atv_and_uploads")||v.C("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&v.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",J||G||v.isExternallyHostedPodcast)&&(v.H8=!0);return v.gh.deviceIsAudioOnly||v.H8&&v.gh.K}; NN=function(v){var J,G,K;return((J=v.playerResponse)==null?void 0:(G=J.playerConfig)==null?void 0:(K=G.compositeVideoConfig)==null?void 0:K.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; g.qrm=function(v){return v.C("html5_enable_sabr_live_captions")&&v.yn()&&YJ(v)||NN(v)}; av=function(v){var J,G,K;return!!((J=v.playerResponse)==null?0:(G=J.playerConfig)==null?0:(K=G.mediaCommonConfig)==null?0:K.splitScreenEligible)}; A3=function(v){var J;return!((J=v.playerResponse)==null||!J.compositePlayabilityStatus)}; ERU=function(v){return isNaN(v)?0:Math.max((Date.now()-v)/1E3-30,0)}; FH=function(v){return!(!v.zx||!v.gh.K)&&v.b4()}; Hm=function(v){return v.Zj&&v.enableServerStitchedDai}; eJ2=function(v){return v.s6&&!v.ZO}; YJ=function(v){var J=v.C("html5_enable_sabr_on_drive")&&v.gh.oY==="gd";if(v.HZ)return v.s6&&v.uw("fds",{fds:!0},!0),!1;if(v.gh.oY!=="yt"&&!J)return v.s6&&v.uw("dsvn",{ns:v.gh.oY},!0),!1;if(v.cotn||!v.T||v.T.isOtf||v.bK&&!v.C("html5_enable_sabr_csdai"))return!1;if(v.C("html5_use_sabr_requests_for_debugging"))return!0;v.s6&&v.uw("esfw",{usbc:v.s6,hsu:!!v.ZO},!0);if(v.s6&&v.ZO)return!0;if(v.C("html5_remove_client_sabr_determination"))return!1;var G=!v.T.yn&&!v.cw();J=G&&ih&&v.C("html5_enable_sabr_vod_streaming_xhr"); G=G&&!ih&&v.C("html5_enable_sabr_vod_non_streaming_xhr");var K=bg(v),V=v.C("html5_enable_sabr_drm_vod_streaming_xhr")&&ih&&v.cw()&&!v.T.yn&&(v.qm==="1"?!1:!0);(J=J||G||K||V)&&!v.ZO&&v.uw("sabr",{loc:"m"},!0);return J&&!!v.ZO}; bg=function(v){var J;if(!(J=ih&&v.yn()&&v.cw()&&(v.qm==="1"?!1:!0)&&v.C("html5_sabr_live_drm_streaming_xhr"))){J=v.yn()&&!v.cw()&&ih;var G=v.yn()&&v.latencyClass!=="ULTRALOW"&&!v.isLowLatencyLiveStream&&v.C("html5_sabr_live_normal_latency_streaming_xhr"),K=v.isLowLatencyLiveStream&&v.C("html5_sabr_live_low_latency_streaming_xhr"),V=v.latencyClass==="ULTRALOW"&&v.C("html5_sabr_live_ultra_low_latency_streaming_xhr");J=J&&(G||K||V)}G=J;J=v.enableServerStitchedDai&&G&&v.C("html5_enable_sabr_ssdai_streaming_xhr"); G=!v.enableServerStitchedDai&&G;K=v.yn()&&!ih&&v.C("html5_enable_sabr_live_non_streaming_xhr");v=ih&&(v.i9()||av(v)&&v.C("html5_enable_sabr_for_lifa_eligible_streams"));return J||G||K||v}; g.WG=function(v){return v.Xd&&YJ(v)}; Zaw=function(v){var J;if(J=!!v.cotn)J=v.videoId,J=!!J&&g.Uy(J)===1;return J&&!v.zx}; g.im=function(v){if(!v.T||!v.X||!v.L)return!1;var J=v.T.T,G=!!J[v.X.id]&&ya(J[v.X.id].v$.T);J=!!J[v.L.id]&&ya(J[v.L.id].v$.T);return(v.X.itag==="0"||G)&&J}; $1=function(v){return v.l4?["OK","LIVE_STREAM_OFFLINE"].includes(v.l4.status):!0}; $Wr=function(v){return(v=v.IE)&&v.showError?v.showError:!1}; vz=function(v,J){return v.C(J)?!0:(v.fflags||"").includes(J+"=true")}; PzU=function(v){return v.C("html5_heartbeat_iff_heartbeat_params_filled")}; soX=function(v,J){J.inlineMetricEnabled&&(v.inlineMetricEnabled=!0);J.playback_progress_0s_url&&(v.Y3=new Cvj(J));if(J=J.video_masthead_ad_quartile_urls)v.OP=J.quartile_0_url,v.mA=J.quartile_25_url,v.GC=J.quartile_50_url,v.Rh=J.quartile_75_url,v.D9=J.quartile_100_url,v.nU=J.quartile_0_urls,v.V8=J.quartile_25_urls,v.h4=J.quartile_50_urls,v.wA=J.quartile_75_urls,v.lY=J.quartile_100_urls}; dej=function(v){var J={};v=g.n(v);for(var G=v.next();!G.done;G=v.next()){G=G.value;var K=G.split("=");K.length===2?J[K[0]]=K[1]:J[G]=!0}return J}; hSr=function(v){if(v){if(vPB(v))return v;v=J9X(v);if(vPB(v,!0))return v}return""}; g.DWX=function(v){return v.captionsLanguagePreference||v.gh.captionsLanguagePreference||g.Rv(v,"yt:cc_default_lang")||v.gh.d_}; JK=function(v){return!(!v.isLivePlayback||!v.hasProgressBarBoundaries())}; g.$J=function(v){var J;return v.QL||((J=v.suggestions)==null?void 0:J[0])||null}; g.GT=function(v){return v.aR&&(v.C("embeds_enable_pfp_always_unbranded")||v.gh.I6)}; oQ=function(v,J){v.C("html5_log_autoplay_src")&&ov(v)&&v.uw("apsrc",{src:J})}; g.Km=function(v){var J,G;return!!((J=v.embeddedPlayerConfig)==null?0:(G=J.embeddedPlayerFlags)==null?0:G.enableMusicUx)}; Vh=function(v){return v.gh.L&&v.isPrivate}; g.rr=function(v){var J=v.B(),G=g.Y1(J),K=J.BH;(J.C("embeds_web_enable_iframe_api_send_full_embed_url")||J.C("embeds_web_enable_rcat_validation_in_havs")||J.C("embeds_enable_autoplay_and_visibility_signals"))&&g.ZR(J)&&(K&&(G.thirdParty=Object.assign({},G.thirdParty,{embedUrl:K})),ZX2(G,v));if(K=v.Mr)G.clickTracking={clickTrackingParams:K};K=G.client||{};var V="EMBED",Y=ZN(v);Y==="leanback"?V="WATCH":J.C("gvi_channel_client_screen")&&Y==="profilepage"?V="CHANNEL":v.Nr?V="LIVE_MONITOR":Y==="detailpage"? V="WATCH_FULL_SCREEN":Y==="adunit"?V="ADUNIT":Y==="sponsorshipsoffer"&&(V="UNKNOWN");K.clientScreen=V;if(J=v.kidsAppInfo)K.kidsAppInfo=JSON.parse(J);(V=v.Xy)&&!J&&(K.kidsAppInfo={contentSettings:{ageUpMode:teF[V]}});if(J=v.bk)K.unpluggedAppInfo={enableFilterMode:!0};(V=v.unpluggedFilterModeType)&&!J&&(K.unpluggedAppInfo={filterModeType:B2B[V]});if(J=v.oY)K.unpluggedLocationInfo=J;G.client=K;K=G.request||{};v.Vy&&(K.isPrefetch=!0);if(J=v.mdxEnvironment)K.mdxEnvironment=J;if(J=v.mdxControlMode)K.mdxControlMode= IqB[J];G.request=K;K=G.user||{};if(J=v.Ti)K.credentialTransferTokens=[{token:J,scope:"VIDEO"}];if(J=v.d_)K.delegatePurchases={oauthToken:J},K.kidsParent={oauthToken:J};G.user=K;if(K=v.contextParams)G.activePlayers=[{playerContextParams:K}];if(v=v.clientScreenNonce)G.clientScreenNonce=v;return G}; g.Y1=function(v){var J=g.bd(),G=J.client||{};if(v.forcedExperiments){var K=v.forcedExperiments.split(","),V=[];K=g.n(K);for(var Y=K.next();!Y.done;Y=K.next())V.push(Number(Y.value));G.experimentIds=V}if(V=v.homeGroupInfo)G.homeGroupInfo=JSON.parse(V);if(V=v.getPlayerType())G.playerType=V;if(V=v.T.ctheme)G.theme=V;if(V=v.livingRoomAppMode)G.tvAppInfo=Object.assign({},G.tvAppInfo,{livingRoomAppMode:V});V=v.deviceYear;v.C("html5_propagate_device_year")&&V&&(G.tvAppInfo=Object.assign({},G.tvAppInfo,{deviceYear:V})); if(V=v.livingRoomPoTokenId)G.tvAppInfo=Object.assign({},G.tvAppInfo,{livingRoomPoTokenId:V});J.client=G;G=J.user||{};v.enableSafetyMode&&(G=Object.assign({},G,{enableSafetyMode:!0}));v.pageId&&(G=Object.assign({},G,{onBehalfOfUser:v.pageId}));J.user=G;G=v.BH;v.C("embeds_web_enable_iframe_api_send_full_embed_url")||v.C("embeds_web_enable_rcat_validation_in_havs")||v.C("embeds_enable_autoplay_and_visibility_signals")||!G||(J.thirdParty={embedUrl:G});return J}; RJm=function(v,J,G){var K=v.videoId,V=g.rr(v),Y=v.B(),r={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(yy()),referer:document.location.toString(),signatureTimestamp:20180};g.c8();v.isAutonav&&(r.autonav=!0);g.Nk(0,141)&&(r.autonavState=g.Nk(0,140)?"STATE_OFF":"STATE_ON");r.autoCaptionsDefaultOn=g.Nk(0,66);kJ(v)&&(r.autoplay=!0);Y.K&&v.cycToken&&(r.cycToken=v.cycToken);Y.enablePrivacyFilter&&(r.enablePrivacyFilter=!0);v.isFling&&(r.fling=!0);var E=v.forceAdsUrl;if(E){var e={},P=[];E=E.split(","); E=g.n(E);for(var D=E.next();!D.done;D=E.next()){D=D.value;var t=D.split("|");t.length!==3||D.includes("=")||(t[0]="breaktype="+t[0],t[1]="offset="+t[1],t[2]="url="+t[2]);D={adtype:"video_ad"};t=g.n(t);for(var B=t.next();!B.done;B=t.next()){var I=g.n(B.value.split("="));B=I.next().value;I=GX8(I);D[B]=I.join("=")}t=D.url;B=D.presetad;I=D.viralresponseurl;var h=Number(D.campaignid);if(D.adtype==="in_display_ad")t&&(e.url=t),B&&(e.presetAd=B),I&&(e.viralAdResponseUrl=I),h&&(e.viralCampaignId=String(h)); else if(D.adtype==="video_ad"){var R={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(D.offset)||0)}};if(D=hJf[D.breaktype])R.breakType=D;t&&(R.url=t);B&&(R.presetAd=B);I&&(R.viralAdResponseUrl=I);h&&(R.viralCampaignId=String(h));P.push(R)}}r.forceAdParameters={videoAds:P,inDisplayAd:e}}v.isInlinePlaybackNoAd&&(r.isInlinePlaybackNoAd=!0);v.isLivingRoomDeeplink&&(r.isLivingRoomDeeplink=!0);e=v.sP;if(e!=null){e={startWalltime:String(e)};if(P=v.Kt)e.manifestDuration=String(P||14400);r.liveContext= e}if(v.mutedAutoplay){r.mutedAutoplay=!0;e=Y.getWebPlayerContextConfig();var T,L;(e==null?0:(T=e.embedsHostFlags)==null?0:T.allowMutedAutoplayDurationMode)&&(e==null?0:(L=e.embedsHostFlags)==null?0:L.allowMutedAutoplayDurationMode.includes(zJX[v.mutedAutoplayDurationMode]))&&(r.mutedAutoplayDurationMode=zJX[v.mutedAutoplayDurationMode])}if(v.jK?0:v.IR)r.splay=!0;T=v.vnd;T===5&&(r.vnd=T);T={};if(L=v.isMdxPlayback)T.triggeredByMdx=L;if(L=v.zE)T.skippableAdsSupported=L.split(",").includes("ska");if(P= v.XB){L=v.H9;e=[];P=g.n(uem(P));for(E=P.next();!E.done;E=P.next()){E=E.value;D=E.platform;E={applicationState:E.U5?"INACTIVE":"ACTIVE",clientFormFactor:nRf[D]||"UNKNOWN_FORM_FACTOR",clientName:XKs[E.G8]||"UNKNOWN_INTERFACE",clientVersion:E.deviceVersion||"",platform:dWt[D]||"UNKNOWN_PLATFORM"};D={};if(L){t=void 0;try{t=JSON.parse(L)}catch(O){g.Zl(O)}t&&(D={params:[{key:"ms",value:t.ms}]},t.advertising_id&&(D.advertisingId=t.advertising_id),t.limit_ad_tracking!==void 0&&t.limit_ad_tracking!==null&& (D.limitAdTracking=t.limit_ad_tracking),E.osName=t.os_name,E.userAgent=t.user_agent,E.windowHeightPoints=t.window_height_points,E.windowWidthPoints=t.window_width_points)}e.push({adSignalsInfo:D,remoteClient:E})}T.remoteContexts=e}L=v.sourceContainerPlaylistId;e=v.serializedMdxMetadata;if(L||e)P={},L&&(P.mdxPlaybackContainerInfo={sourceContainerPlaylistId:L}),e&&(P.serializedMdxMetadata=e),T.mdxPlaybackSourceContext=P;r.mdxContext=T;T=J.width;T>0&&(r.playerWidthPixels=Math.round(T));if(J=J.height)r.playerHeightPixels= Math.round(J);G!==0&&(r.vis=G);if(G=Y.widgetReferrer)r.widgetReferrer=G.substring(0,128);g.Of(Y)&&r&&(r.ancestorOrigins=Y.ancestorOrigins);v.defaultActiveSourceVideoId&&(r.compositeVideoContext={defaultActiveSourceVideoId:v.defaultActiveSourceVideoId});if(Y=Y.getWebPlayerContextConfig())r.encryptedHostFlags=Y.encryptedHostFlags;K={videoId:K,context:V,playbackContext:{contentPlaybackContext:r}};v.reloadPlaybackParams&&(K.playbackContext.reloadPlaybackContext={reloadPlaybackParams:v.reloadPlaybackParams}); v.contentCheckOk&&(K.contentCheckOk=!0);if(V=v.clientPlaybackNonce)K.cpn=V;if(V=v.playerParams)K.params=V;if(V=v.playlistId)K.playlistId=V;v.racyCheckOk&&(K.racyCheckOk=!0);V=v.B();if(r=V.embedConfig)K.serializedThirdPartyEmbedConfig=r;K.captionParams={};r=g.Nk(g.c8(),65);v.deviceCaptionsOn!=null?K.captionParams.deviceCaptionsOn=v.deviceCaptionsOn:g.bh(V)&&(K.captionParams.deviceCaptionsOn=r!=null?!r:!1);v.Tm&&(K.captionParams.deviceCaptionsLangPref=v.Tm);v.Se.length?K.captionParams.viewerSelectedCaptionLangs= v.Se:g.bh(V)&&(r=g.An(),r==null?0:r.length)&&(K.captionParams.viewerSelectedCaptionLangs=r);r=v.fetchType==="onesie"&&v.C("html5_onesie_attach_po_token");Y=v.fetchType!=="onesie"&&v.C("html5_non_onesie_attach_po_token");if(r||Y)r=v.B(),r.HG&&(K.serviceIntegrityDimensions={},K.serviceIntegrityDimensions.poToken=r.HG);V.C("fetch_att_independently")&&(K.attestationRequest={omitBotguardData:!0});K.playbackContext||(K.playbackContext={});K.playbackContext.devicePlaybackCapabilities=sum(v);K.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&v.uw("noVp9",{});return K}; sum=function(v){var J=!(v==null?0:v.Cg())&&(v==null?void 0:v.yn())&&v8(),G;if(G=v==null?0:v.C("html5_report_supports_vp9_encoding")){if(v==null)G=0;else{G=g.rH(v);v=v.B().J;var K=Yg("243");G=K?I3(G,K,v,!0)===!0:!1}G=G&&!J}return{supportsVp9Encoding:!!G,supportXhr:ih}}; T2w=function(v,J){var G,K,V;return g.m(function(Y){if(Y.T==1)return G={context:g.Y1(v.B()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:v.videoId,cpn:v.clientPlaybackNonce}}]},K=g.$n(lqf),g.U(Y,g.WB(J,G,K),2);V=Y.X;return Y.return(V)})}; pgm=function(v,J,G){var K=g.DI(J.experiments,"bg_vm_reinit_threshold");(!Z1||(0,g.yR)()-Z1>K)&&T2w(v,G).then(function(V){V&&(V=V.botguardData)&&g.Xo(V,J)},function(V){v.Sl()||(V=wf(V),v.uw("attf",V.details))})}; qy=function(v,J){g.X.call(this);this.app=v;this.state=J}; eI=function(v,J,G){v.state.T.hasOwnProperty(J)||EM(v,J,G);v.state.K[J]=function(){return G.apply(v,g.Om.apply(0,arguments))}; v.state.j.add(J)}; Pz=function(v,J,G){v.state.T.hasOwnProperty(J)||EM(v,J,G);v.app.B().K&&(v.state.U[J]=function(){return G.apply(v,g.Om.apply(0,arguments))},v.state.j.add(J))}; EM=function(v,J,G){v.state.T[J]=function(){return G.apply(v,g.Om.apply(0,arguments))}}; g.Dw=function(v,J,G){return v.state.T[J].apply(v.state.T,g.l(G))}; tK=function(){g.L7.call(this);this.J=new Map}; Bz=function(){g.X.apply(this,arguments);this.element=null;this.j=new Set;this.K={};this.U={};this.T={};this.N=new Set;this.Z=new tK;this.X=new tK;this.L=new tK;this.J=new tK}; LXw=function(v,J,G){typeof v==="string"&&(v={mediaContentUrl:v,startSeconds:J,suggestedQuality:G});a:{if((J=v.mediaContentUrl)&&(J=/\/([ve]|embed)\/([^#?]+)/.exec(J))&&J[2]){J=J[2];break a}J=null}v.videoId=J;return IQ(v)}; IQ=function(v,J,G){if(typeof v==="string")return{videoId:v,startSeconds:J,suggestedQuality:G};J={};G=g.n(yXt);for(var K=G.next();!K.done;K=G.next())K=K.value,v[K]&&(J[K]=v[K]);return J}; wgt=function(v,J,G,K){if(g.ML(v)&&!Array.isArray(v)){J="playlist list listType index startSeconds suggestedQuality".split(" ");G={};for(K=0;K32&&K.push("hfr");J.isHdr()&&K.push("hdr");J.primaries==="bt2020"&&K.push("wcg");G.video_quality_features=K}}if(v=v.getPlaylistId())G.list=v;return G}; sM=function(){hK.apply(this,arguments)}; RQ=function(v,J){var G={};if(v.app.B().Ti){v=g.n(mWB);for(var K=v.next();!K.done;K=v.next())K=K.value,J.hasOwnProperty(K)&&(G[K]=J[K]);if(J=G.qoe_cat)v="",typeof J==="string"&&J.length>0&&(v=J.split(",").filter(function(V){return SrU.includes(V)}).join(",")),G.qoe_cat=v; fqm(G)}else for(v=g.n(Z3w),K=v.next();!K.done;K=v.next())K=K.value,J.hasOwnProperty(K)&&(G[K]=J[K]);return G}; fqm=function(v){var J=v.raw_player_response;if(!J){var G=v.player_response;G&&(J=JSON.parse(G))}delete v.player_response;delete v.raw_player_response;if(J){v.raw_player_response={streamingData:J.streamingData,playerConfig:J.playerConfig};var K;if((K=J.playbackTracking)==null?0:K.qoeUrl)v.raw_player_response=Object.assign({},v.raw_player_response,{playbackTracking:{qoeUrl:J.playbackTracking.qoeUrl}});var V;if((V=J.videoDetails)==null?0:V.videoId)v.raw_player_response=Object.assign({},v.raw_player_response, {videoDetails:{videoId:J.videoDetails.videoId}})}}; lm=function(v,J,G){var K=v.app.IA(G);if(!K)return 0;v=K-v.app.getCurrentTime(G);return J-v}; gRX=function(v){var J=J===void 0?5:J;return v?uYj[v]||J:J}; g.TT=function(){sM.apply(this,arguments)}; Xg2=function(v){EM(v,"getInternalApiInterface",v.getInternalApiInterface);EM(v,"addEventListener",v.r$);EM(v,"removeEventListener",v.G4i);EM(v,"cueVideoByPlayerVars",v.J1);EM(v,"loadVideoByPlayerVars",v.Z0B);EM(v,"preloadVideoByPlayerVars",v.Zqi);EM(v,"getAdState",v.getAdState);EM(v,"sendAbandonmentPing",v.sendAbandonmentPing);EM(v,"setLoopRange",v.setLoopRange);EM(v,"getLoopRange",v.getLoopRange);EM(v,"setAutonavState",v.setAutonavState);EM(v,"seekTo",v.TKB);EM(v,"seekBy",v.uFB);EM(v,"seekToLiveHead", v.seekToLiveHead);EM(v,"requestSeekToWallTimeSeconds",v.requestSeekToWallTimeSeconds);EM(v,"seekToStreamTime",v.seekToStreamTime);EM(v,"startSeekCsiAction",v.startSeekCsiAction);EM(v,"getStreamTimeOffset",v.getStreamTimeOffset);EM(v,"getVideoData",v.EBY);EM(v,"setInlinePreview",v.setInlinePreview);EM(v,"getAppState",v.getAppState);EM(v,"updateLastActiveTime",v.updateLastActiveTime);EM(v,"setBlackout",v.setBlackout);EM(v,"setUserEngagement",v.setUserEngagement);EM(v,"updateSubtitlesUserSettings",v.updateSubtitlesUserSettings); EM(v,"getPresentingPlayerType",v.h2);EM(v,"canPlayType",v.canPlayType);EM(v,"updatePlaylist",v.updatePlaylist);EM(v,"updateVideoData",v.updateVideoData);EM(v,"updateEnvironmentData",v.updateEnvironmentData);EM(v,"sendVideoStatsEngageEvent",v.X8B);EM(v,"productsInVideoVisibilityUpdated",v.productsInVideoVisibilityUpdated);EM(v,"setSafetyMode",v.setSafetyMode);EM(v,"isAtLiveHead",function(J){return v.isAtLiveHead(void 0,J)}); EM(v,"getVideoAspectRatio",v.getVideoAspectRatio);EM(v,"getPreferredQuality",v.getPreferredQuality);EM(v,"getPlaybackQualityLabel",v.getPlaybackQualityLabel);EM(v,"setPlaybackQualityRange",v.vkB);EM(v,"onAdUxClicked",v.onAdUxClicked);EM(v,"getFeedbackProductData",v.getFeedbackProductData);EM(v,"getStoryboardFrame",v.getStoryboardFrame);EM(v,"getStoryboardFrameIndex",v.getStoryboardFrameIndex);EM(v,"getStoryboardLevel",v.getStoryboardLevel);EM(v,"getNumberOfStoryboardLevels",v.getNumberOfStoryboardLevels); EM(v,"getCaptionWindowContainerId",v.getCaptionWindowContainerId);EM(v,"getAvailableQualityLabels",v.getAvailableQualityLabels);EM(v,"addCueRange",v.addCueRange);EM(v,"addUtcCueRange",v.addUtcCueRange);EM(v,"showAirplayPicker",v.showAirplayPicker);EM(v,"dispatchReduxAction",v.dispatchReduxAction);EM(v,"getPlayerResponse",v.Ov);EM(v,"getWatchNextResponse",v.QYU);EM(v,"getHeartbeatResponse",v.BF);EM(v,"getCurrentTime",v.mm);EM(v,"getDuration",v.KA);EM(v,"getPlayerState",v.getPlayerState);EM(v,"getPlayerStateObject", v.WF);EM(v,"getVideoLoadedFraction",v.getVideoLoadedFraction);EM(v,"getProgressState",v.getProgressState);EM(v,"getVolume",v.getVolume);EM(v,"setVolume",v.p9);EM(v,"isMuted",v.isMuted);EM(v,"mute",v.s7);EM(v,"unMute",v.Ot);EM(v,"loadModule",v.loadModule);EM(v,"unloadModule",v.unloadModule);EM(v,"getOption",v.OS);EM(v,"getOptions",v.getOptions);EM(v,"setOption",v.setOption);EM(v,"loadVideoById",v.C8);EM(v,"loadVideoByUrl",v.K8);EM(v,"playVideo",v.MK);EM(v,"loadPlaylist",v.loadPlaylist);EM(v,"nextVideo", v.nextVideo);EM(v,"previousVideo",v.previousVideo);EM(v,"playVideoAt",v.playVideoAt);EM(v,"getDebugText",v.getDebugText);EM(v,"getWebPlayerContextConfig",v.getWebPlayerContextConfig);EM(v,"notifyShortsAdSwipeEvent",v.notifyShortsAdSwipeEvent);EM(v,"getVideoContentRect",v.getVideoContentRect);EM(v,"setSqueezeback",v.setSqueezeback);EM(v,"toggleSubtitlesOn",v.toggleSubtitlesOn);EM(v,"isSubtitlesOn",v.isSubtitlesOn);EM(v,"reportPlaybackIssue",v.reportPlaybackIssue);EM(v,"setAutonav",v.setAutonav);EM(v, "isNotServable",v.isNotServable);EM(v,"channelSubscribed",v.channelSubscribed);EM(v,"channelUnsubscribed",v.channelUnsubscribed);EM(v,"togglePictureInPicture",v.togglePictureInPicture);EM(v,"supportsGaplessAudio",v.supportsGaplessAudio);EM(v,"supportsGaplessShorts",v.supportsGaplessShorts);EM(v,"enqueueVideoByPlayerVars",function(J){return void v.enqueueVideoByPlayerVars(J)}); EM(v,"clearQueue",v.clearQueue);EM(v,"getAudioTrack",v.Fq);EM(v,"setAudioTrack",v.cmi);EM(v,"getAvailableAudioTracks",v.Cv);EM(v,"getMaxPlaybackQuality",v.getMaxPlaybackQuality);EM(v,"getUserPlaybackQualityPreference",v.getUserPlaybackQualityPreference);EM(v,"getSubtitlesUserSettings",v.getSubtitlesUserSettings);EM(v,"resetSubtitlesUserSettings",v.resetSubtitlesUserSettings);EM(v,"setMinimized",v.setMinimized);EM(v,"setOverlayVisibility",v.setOverlayVisibility);EM(v,"confirmYpcRental",v.confirmYpcRental); EM(v,"queueNextVideo",v.queueNextVideo);EM(v,"handleExternalCall",v.handleExternalCall);EM(v,"logApiCall",v.logApiCall);EM(v,"isExternalMethodAvailable",v.isExternalMethodAvailable);EM(v,"setScreenLayer",v.setScreenLayer);EM(v,"getCurrentPlaylistSequence",v.getCurrentPlaylistSequence);EM(v,"getPlaylistSequenceForTime",v.getPlaylistSequenceForTime);EM(v,"shouldSendVisibilityState",v.shouldSendVisibilityState);EM(v,"syncVolume",v.syncVolume);EM(v,"highlightSettingsMenuItem",v.highlightSettingsMenuItem); EM(v,"openSettingsMenuItem",v.openSettingsMenuItem);EM(v,"getEmbeddedPlayerResponse",v.getEmbeddedPlayerResponse);EM(v,"getVisibilityState",v.getVisibilityState);EM(v,"isMutedByMutedAutoplay",v.isMutedByMutedAutoplay);EM(v,"isMutedByEmbedsMutedAutoplay",v.isMutedByEmbedsMutedAutoplay);EM(v,"setGlobalCrop",v.setGlobalCrop);EM(v,"setInternalSize",v.setInternalSize);EM(v,"setFauxFullscreen",v.setFauxFullscreen);EM(v,"setAppFullscreen",v.setAppFullscreen)}; Lm=function(v,J,G){v=g.pm(v.Z6(),J);return G?(G.addOnDisposeCallback(v),null):v}; g.yh=function(v,J,G){return v.app.B().Hv?J:g.h6("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:J,SHORTCUT:G})}; kd8=function(v){v.Z6().element.setAttribute("aria-live","polite")}; g.wr=function(v,J){g.TT.call(this,v,J);Xg2(this);Pz(this,"addEventListener",this.iJ);Pz(this,"removeEventListener",this.ULB);Pz(this,"cueVideoByPlayerVars",this.C$);Pz(this,"loadVideoByPlayerVars",this.MXi);Pz(this,"preloadVideoByPlayerVars",this.Mir);Pz(this,"loadVideoById",this.C8);Pz(this,"loadVideoByUrl",this.K8);Pz(this,"playVideo",this.MK);Pz(this,"loadPlaylist",this.loadPlaylist);Pz(this,"nextVideo",this.nextVideo);Pz(this,"previousVideo",this.previousVideo);Pz(this,"playVideoAt",this.playVideoAt); Pz(this,"getVideoData",this.uT);Pz(this,"seekBy",this.okB);Pz(this,"seekTo",this.tfr);Pz(this,"showControls",this.showControls);Pz(this,"hideControls",this.hideControls);Pz(this,"cancelPlayback",this.cancelPlayback);Pz(this,"getProgressState",this.getProgressState);Pz(this,"isInline",this.isInline);Pz(this,"setInline",this.setInline);Pz(this,"setLoopVideo",this.setLoopVideo);Pz(this,"getLoopVideo",this.getLoopVideo);Pz(this,"getVideoContentRect",this.getVideoContentRect);Pz(this,"getVideoStats",this.oBh); Pz(this,"getCurrentTime",this.RT);Pz(this,"getDuration",this.KA);Pz(this,"getPlayerState",this.aT);Pz(this,"getVideoLoadedFraction",this.H7b);Pz(this,"mute",this.s7);Pz(this,"unMute",this.Ot);Pz(this,"setVolume",this.p9);Pz(this,"loadModule",this.loadModule);Pz(this,"unloadModule",this.unloadModule);Pz(this,"getOption",this.OS);Pz(this,"getOptions",this.getOptions);Pz(this,"setOption",this.setOption);Pz(this,"addCueRange",this.addCueRange);Pz(this,"getDebugText",this.getDebugText);Pz(this,"getStoryboardFormat", this.getStoryboardFormat);Pz(this,"toggleFullscreen",this.toggleFullscreen);Pz(this,"isFullscreen",this.isFullscreen);Pz(this,"getPlayerSize",this.getPlayerSize);Pz(this,"toggleSubtitles",this.toggleSubtitles);this.app.B().C("embeds_enable_move_set_center_crop_to_public")||Pz(this,"setCenterCrop",this.setCenterCrop);Pz(this,"setFauxFullscreen",this.setFauxFullscreen);Pz(this,"setSizeStyle",this.setSizeStyle);Pz(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);Pz(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); UW2(this)}; g.OM=function(v){v=v.c$();var J=v.AI.get("endscreen");return J&&J.nB()?!0:v.dZ()}; g.UM=function(v,J){v.getPresentingPlayerType()===3?v.publish("mdxautoplaycancel"):v.lw("onAutonavCancelled",J)}; g.SI=function(v){var J=x1(v.c$());return v.app.ih&&!v.isFullscreen()||v.getPresentingPlayerType()===3&&J&&J.tS()&&J.z_()||!!v.getPlaylist()}; g.fm=function(v,J){g.Dw(v,"addEmbedsConversionTrackingParams",[J])}; g.um=function(v){return(v=g.Zw(v.c$()))?v.EY():{}}; g.cXm=function(v){v=(v=v.getVideoData())&&v.X;return!!v&&!(!v.audio||!v.video)&&v.mimeType!=="application/x-mpegURL"}; g.gr=function(v,J,G){v=v.f7().element;var K=r6(v.children,function(V){V=Number(V.getAttribute("data-layer"));return G-V||1}); K<0&&(K=-(K+1));Dy(v,J,K);J.setAttribute("data-layer",String(G))}; g.X5=function(v){var J=v.B();if(!J.Mj)return!1;var G=v.getVideoData();if(!G||v.getPresentingPlayerType()===3)return!1;var K=(!G.isLiveDefaultBroadcast||J.C("allow_poltergust_autoplay"))&&!JK(G);K=G.isLivePlayback&&(!J.C("allow_live_autoplay")||!K);var V=G.isLivePlayback&&J.C("allow_live_autoplay_on_mweb");v=v.getPlaylist();v=!!v&&v.tS();var Y=G.Gi&&G.Gi.playerOverlays||null;Y=!!(Y&&Y.playerOverlayRenderer&&Y.playerOverlayRenderer.autoplay);Y=G.aR&&Y;return!G.ypcPreview&&(!K||V)&&!g.WN(G.dh,"ypc")&& !v&&(!g.Of(J)||Y)}; N2U=function(v){v=v.app.zi();if(!v)return!1;var J=v.getVideoData();if(!J.X||!J.X.video||J.X.video.qualityOrdinal<1080||J.Dw)return!1;var G=/^qsa/.test(J.clientPlaybackNonce),K="r";J.X.id.indexOf(";")>=0&&(G=/^[a-p]/.test(J.clientPlaybackNonce),K="x");return G?(v.uw("iqss",{trigger:K},!0),!0):!1}; AXj=function(v,J){v=aqs(v.app.QB().L);v=g.n(v);for(var G=v.next();!G.done;G=v.next()){G=G.value;var K=G.getAvailableAudioTracks(),V=null;K=g.n(K);for(var Y=K.next();!Y.done;Y=K.next())if(Y=Y.value,Y.getLanguageInfo().getId()===J){V=Y;break}V&&G.E3(V,!0)}}; k1=function(){XJ.apply(this,arguments);this.requestHeaders={}}; Ny=function(){cz||(cz=new k1);return cz}; aQ=function(v,J){J?v.requestHeaders.Authorization="Bearer "+J:delete v.requestHeaders.Authorization}; g.AK=function(v){g.X.call(this);var J=this;this.HH=v;this.cO={lkB:function(){return J.HH}}}; g.F5=function(v,J,G,K){K=K===void 0?!1:K;g.t9.call(this,J);var V=this;this.S=v;this.dh=K;this.U=new g.Zs(this);this.fade=new g.Jk(this,G,!0,void 0,void 0,function(){V.yO()}); g.k(this,this.U);g.k(this,this.fade)}; Hz=function(v){var J=v.S.getRootNode();return v.S.C("web_watch_pip")||v.S.C("web_shorts_pip")?bA(J):document}; FXs=function(v){v.X&&(document.activeElement&&g.BM(v.element,document.activeElement)&&v.X.focus(),v.X.setAttribute("aria-expanded","false"),v.X=void 0);g.O9(v.U);v.N=void 0}; My=function(v,J,G){v.wG()?v.FO():v.xL(J,G)}; Qh=function(v,J,G,K){K=new g.F({Y:"div",n7:["ytp-linked-account-popup-button"],At:K,V:{role:"button",tabindex:"0"}});J=new g.F({Y:"div",D:"ytp-linked-account-popup",V:{role:"dialog","aria-modal":"true",tabindex:"-1"},W:[{Y:"div",D:"ytp-linked-account-popup-title",At:J},{Y:"div",D:"ytp-linked-account-popup-description",At:G},{Y:"div",D:"ytp-linked-account-popup-buttons",W:[K]}]});g.F5.call(this,v,{Y:"div",D:"ytp-linked-account-popup-container",W:[J]},100);var V=this;this.dialog=J;g.k(this,this.dialog); K.listen("click",function(){V.FO()}); g.k(this,K);g.gr(this.S,this.element,4);this.hide()}; g.Cm=function(v,J,G,K){g.t9.call(this,v);this.priority=J;G&&g.Wz(this,G);K&&this.H1(K)}; g.bm=function(v,J,G,K){v=v===void 0?{}:v;J=J===void 0?[]:J;G=G===void 0?!1:G;K=K===void 0?!1:K;J.push("ytp-menuitem");var V=v;"role"in V||(V.role="menuitem");G||(V=v,"tabindex"in V||(V.tabindex="0"));v={Y:G?"a":"div",n7:J,V:v,W:[{Y:"div",D:"ytp-menuitem-icon",At:"{{icon}}"},{Y:"div",D:"ytp-menuitem-label",At:"{{label}}"},{Y:"div",D:"ytp-menuitem-content",At:"{{content}}"}]};K&&v.W.push({Y:"div",D:"ytp-menuitem-secondary-icon",At:"{{secondaryIcon}}"});return v}; g.Wz=function(v,J){v.updateValue("label",J)}; jH=function(v){g.Cm.call(this,g.bm({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var J=this;this.S=v;this.X=this.T=!1;this.Mi=v.HV();v.createServerVe(this.element,this,!0);this.G(this.S,"settingsMenuVisibilityChanged",function(G){J.I$(G)}); this.G(this.S,"videodatachange",this.L);this.listen("click",this.onClick);this.L()}; ik=function(v){return v?g.h9(v):""}; $w=function(v){g.X.call(this);this.api=v}; vd=function(v){$w.call(this,v);var J=this;EM(v,"setAccountLinkState",function(G){J.setAccountLinkState(G)}); EM(v,"updateAccountLinkingConfig",function(G){J.updateAccountLinkingConfig(G)}); v.addEventListener("videodatachange",function(G,K){J.onVideoDataChange(K)}); v.addEventListener("settingsMenuInitialized",function(){J.menuItem=new jH(J.api);g.k(J,J.menuItem)})}; H3m=function(v){this.api=v;this.T={}}; Jr=function(v,J,G,K){J in v.T||(G=new g.o8(G,K,{id:J,priority:2,namespace:"appad"}),v.api.oR([G],1),v.T[J]=G)}; G0=function(v){$w.call(this,v);var J=this;this.events=new g.Zs(this);g.k(this,this.events);this.T=new H3m(this.api);this.events.G(this.api,"legacyadtrackingpingreset",function(){J.T.T={}}); this.events.G(this.api,"legacyadtrackingpingchange",function(G){var K=J.T;Jr(K,"part2viewed",1,0x8000000000000);Jr(K,"engagedview",Math.max(1,G.UR*1E3),0x8000000000000);if(!G.isLivePlayback){var V=G.lengthSeconds*1E3;ov(G)&&K.api.C("html5_shorts_gapless_ads_duration_fix")&&(V=K.api.getProgressState().seekableEnd*1E3-G.mO);Jr(K,"videoplaytime25",V*.25,V);Jr(K,"videoplaytime50",V*.5,V);Jr(K,"videoplaytime75",V*.75,V);Jr(K,"videoplaytime100",V,0x8000000000000);Jr(K,"conversionview",V,0x8000000000000); Jr(K,"videoplaybackstart",1,V);Jr(K,"videoplayback2s",2E3,V);Jr(K,"videoplayback10s",1E4,V)}}); this.events.G(this.api,g.VG("appad"),this.X);this.events.G(this.api,g.YM("appad"),this.X)}; CzF=function(v,J,G){if(!(G in J))return!1;J=J[G];Array.isArray(J)||(J=[J]);J=g.n(J);for(G=J.next();!G.done;G=J.next()){G=G.value;var K={CPN:v.api.getVideoData().clientPlaybackNonce};G=g.w0(G,K);K=void 0;K=K===void 0?!1:K;(K=bE(jb(G,Me8),G,K,"Active View 3rd Party Integration URL"))||(K=void 0,K=K===void 0?!1:K,K=bE(jb(G,QuB),G,K,"Google/YouTube Brand Lift URL"));K||(K=void 0,K=K===void 0?!1:K,K=bE(jb(G,WX2),G,K,"Nielsen OCR URL"));g.cO(G,void 0,K)}return!0}; oT=function(v,J){b3t(v,J).then(function(G){g.cO(J,void 0,void 0,G)})}; Kz=function(v,J){J.forEach(function(G){oT(v,G)})}; b3t=function(v,J){return g.yW(v.api.B())&&qA(J)&&rx(J)?g.KS(v.api.B(),g.cm(v.api.getVideoData())).then(function(G){var K;G&&(K={Authorization:"Bearer "+G});return K},void 0):ma()}; jht=function(v){$w.call(this,v);this.events=new g.Zs(v);g.k(this,this.events);this.events.G(v,"videoready",function(J){if(v.getPresentingPlayerType()===1){var G,K,V={playerDebugData:{pmlSignal:!!((G=J.getPlayerResponse())==null?0:(K=G.adPlacements)==null?0:K.some(function(Y){var r;return Y==null?void 0:(r=Y.adPlacementRenderer)==null?void 0:r.renderer})), contentCpn:J.clientPlaybackNonce}};g.ql("adsClientStateChange",V)}})}; Ve=function(v){g.F.call(this,{Y:"button",n7:["ytp-button"],V:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},W:[{Y:"div",D:"ytp-autonav-toggle-button-container",W:[{Y:"div",D:"ytp-autonav-toggle-button",V:{"aria-checked":"true"}}]}]});this.S=v;this.X=[];this.T=!1;this.isChecked=!0;v.createClientVe(this.element,this,113681);this.G(v,"presentingplayerstatechange",this.B4);this.listen("click",this.onClick);this.S.B().C("web_player_autonav_toggle_always_listen")&& inm(this);Lm(v,this.element,this);this.B4()}; inm=function(v){v.X.push(v.G(v.S,"videodatachange",v.B4));v.X.push(v.G(v.S,"videoplayerreset",v.B4));v.X.push(v.G(v.S,"onPlaylistUpdate",v.B4));v.X.push(v.G(v.S,"autonavchange",v.xo))}; $bF=function(v){v.isChecked=v.isChecked;v.p7("ytp-autonav-toggle-button").setAttribute("aria-checked",String(v.isChecked));var J=v.isChecked?"Auto-play is on":"Auto-play is off";v.updateValue("title",J);v.updateValue("label",J);v.S.J3()}; vzj=function(v){return v.S.B().C("web_player_autonav_use_server_provided_state")&&j0(v.O$())}; JnU=function(v){$w.call(this,v);var J=this;this.events=new g.Zs(v);g.k(this,this.events);this.events.G(v,"standardControlsInitialized",function(){var G=new Ve(v);g.k(J,G);v.DG(G,"RIGHT_CONTROLS_LEFT")})}; Yw=function(v,J){g.Cm.call(this,g.bm({role:"menuitemcheckbox","aria-checked":"false"}),J,v,{Y:"div",D:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; rm=function(v,J){v.checked=J;v.element.setAttribute("aria-checked",String(v.checked))}; Gf8=function(v){var J=!v.B().dG&&v.getPresentingPlayerType()!==3;return v.isFullscreen()||J}; g.qI=function(v,J,G,K){var V=v.currentTarget;if((G===void 0||!G)&&g.pd(v))return v.preventDefault(),!0;J.pauseVideo();v=V.getAttribute("href");g.aA(v,K,!0);return!1}; g.Ev=function(v,J,G){if(Q5(J.B())&&J.getPresentingPlayerType()!==2){if(g.pd(G))return J.isFullscreen()&&!J.B().externalFullscreen&&J.toggleFullscreen(),G.preventDefault(),!0}else{var K=g.pd(G);K&&J.pauseVideo();g.aA(v,void 0,!0);K&&(g.Ak(v),G.preventDefault())}return!1}; K18=function(){var v=ozt.includes("en-GB")?{Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"path",Xu:!0,V:{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"}}]}:{Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"path",Xu:!0,V:{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"}}]};v.D="ytp-subtitles-button-icon";return v}; eH=function(){return{Y:"div",D:"ytp-spinner-container",W:[{Y:"div",D:"ytp-spinner-rotator",W:[{Y:"div",D:"ytp-spinner-left",W:[{Y:"div",D:"ytp-spinner-circle"}]},{Y:"div",D:"ytp-spinner-right",W:[{Y:"div",D:"ytp-spinner-circle"}]}]}]}}; Pd=function(v){if(document.createRange){var J=document.createRange();J&&(J.selectNodeContents(v),v=window.getSelection())&&(v.removeAllRanges(),v.addRange(J))}}; Bd=function(v){var J=v.C("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";Yw.call(this,J,g.DM.YZ);var G=this;this.S=v;this.T=!1;this.X=new g.Qq(function(){g.rz(G.element,"ytp-menuitem-highlighted")},0); this.Mi=v.HV();this.setIcon({Y:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{Y:"path",V:{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.Z,this);this.listen(tr,this.L);g.k(this,this.X)}; IT=function(v){$w.call(this,v);var J=this;this.T=!1;v.addEventListener("settingsMenuInitialized",function(){VZw(J)}); v.addEventListener("highlightSettingsMenu",function(G){VZw(J);var K=J.menuItem;G==="menu_item_cinematic_lighting"&&(g.Vj(K.element,"ytp-menuitem-highlighted"),g.Vj(K.element,"ytp-menuitem-highlight-transition-enabled"),K.X.start())}); EM(v,"updateCinematicSettings",function(G){J.updateCinematicSettings(G)})}; VZw=function(v){v.menuItem||(v.menuItem=new Bd(v.api),g.k(v,v.menuItem),v.menuItem.De(v.T))}; Yu2=function(v){$w.call(this,v);var J=this;this.events=new g.Zs(v);g.k(this,this.events);this.events.G(v,"applicationvideodatachange",function(G,K){K=K.clipConfig;G==="dataloaded"&&K&&K.startTimeMs!=null&&K.endTimeMs!=null&&J.api.setLoopRange({startTimeMs:Math.floor(Number(K.startTimeMs)),endTimeMs:Math.floor(Number(K.endTimeMs)),postId:K.postId,type:"clips"})})}; hr=function(v){$w.call(this,v);this.events=new g.Zs(v);g.k(this,this.events);EM(v,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));EM(v,"setCreatorEndscreenHideButton",this.T.bind(this))}; z0=function(v,J,G,K){Yw.call(this,"Stable volume",g.DM.sM);g.Vj(this.element,"ytp-drc-menu-item");this.Mi=v.HV();this.L=J;this.T=G;this.hasDrcAudioTrack=K;v.addEventListener("videodatachange",this.X.bind(this));v.C("mta_drc_mutual_exclusion_removal")&&this.G(v,"onPlaybackAudioChange",this.X);v=this.T()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({Y:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{Y:"path",V:{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.Z,this);rm(this,v);this.Mi.Dv(this)}; nz=function(v){$w.call(this,v);var J=this;this.events=new g.Zs(v);g.k(this,this.events);v.C("html5_show_drc_toggle")&&v.addEventListener("settingsMenuInitialized",function(){J.menuItem||(J.menuItem=new z0(J.api,J.setDrcUserPreference.bind(J),J.getDrcUserPreference.bind(J),J.X.bind(J)),g.k(J,J.menuItem))}); EM(this.api,"setDrcUserPreference",function(K){J.setDrcUserPreference(K)}); EM(this.api,"getDrcUserPreference",function(){return J.getDrcUserPreference()}); EM(this.api,"hasDrcAudioTrack",function(){return J.X()}); var G;this.T=(G=g.fq("yt-player-drc-pref"))!=null?G:1;this.updateEnvironmentData()}; dm=function(v){$w.call(this,v);var J=this;this.T={};this.events=new g.Zs(v);g.k(this,this.events);this.events.G(v,"videodatachange",function(){J.onVideoDataChange()}); this.events.G(v,g.VG("embargo"),function(G){J.api.Lt(!0);var K,V=(K=J.T[G.id])!=null?K:[];K=g.n(V);for(V=K.next();!V.done;V=K.next()){var Y=V.value;J.api.hideControls();J.api.ze("auth",2,"This video isn't available in your current playback area",p6({embargoed:1,id:G.id,idx:G.X,start:G.start}));V=void 0;(Y=(V=Y.embargo)==null?void 0:V.onTrigger)&&J.api.lw("innertubeCommand",Y)}})}; rnm=function(v,J){var G;return(G=J.onEnter)==null?void 0:G.some(v.X)}; quB=function(v,J){J=g.n(J);for(var G=J.next();!G.done;G=J.next()){G=G.value;var K=void 0,V=Number((K=G.playbackPosition)==null?void 0:K.utcTimeMillis)/1E3,Y=void 0;K=V+Number((Y=G.duration)==null?void 0:Y.seconds);Y="embargo_"+V;v.api.addUtcCueRange(Y,V,K,"embargo",!1);G.onEnter&&(v.T[Y]=G.onEnter.filter(v.X))}}; RT=function(v){$w.call(this,v);var J=this;this.T=[];this.events=new g.Zs(v);g.k(this,this.events);EM(v,"addEmbedsConversionTrackingParams",function(G){J.api.B().fF&&J.addEmbedsConversionTrackingParams(G)}); this.events.G(v,"veClickLogged",function(G){J.api.hasVe(G)&&(G=YX(G.visualElement.getAsJspb(),2),J.T.push(G))})}; Ezw=function(v){$w.call(this,v);EM(v,"isEmbedsShortsMode",function(){return v.isEmbedsShortsMode()})}; ecB=function(v){$w.call(this,v);var J=this;this.events=new g.Zs(v);g.k(this,this.events);this.events.G(v,"initialvideodatacreated",function(G){wt(y8(),16623);J.T=g.LW();var K=v.B().H8&&!G.jK;if(XH(G)&&K){wt(y8(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(G.getWatchNextResponse()){var V,Y=(V=G.getWatchNextResponse())==null?void 0:V.trackingParams;Y&&Uu(Y)}if(G.getPlayerResponse()){var r;(G=(r=G.getPlayerResponse())==null?void 0:r.trackingParams)&&Uu(G)}}else wt(y8(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),G.getEmbeddedPlayerResponse()&&(r=(Y=G.getEmbeddedPlayerResponse())==null?void 0:Y.trackingParams)&&Uu(r)}); this.events.G(v,"loadvideo",function(){wt(y8(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:J.T})}); this.events.G(v,"cuevideo",function(){wt(y8(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:J.T})}); this.events.G(v,"largeplaybuttonclicked",function(G){wt(y8(),27240,G.visualElement)}); this.events.G(v,"playlistnextbuttonclicked",function(G){wt(y8(),27240,G.visualElement)}); this.events.G(v,"playlistprevbuttonclicked",function(G){wt(y8(),27240,G.visualElement)}); this.events.G(v,"playlistautonextvideo",function(){wt(y8(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; lk=function(v,J){g.X.call(this);var G=this;this.T=null;this.Z=J;J=[];for(var K=0;K<=100;K++)J.push(K/100);J={threshold:J,trackVisibility:!0,delay:1E3};(this.X=window.IntersectionObserver?new IntersectionObserver(function(V){V=V[V.length-1];typeof V.isVisible==="undefined"?document.visibilityState==="visible"&&V.isIntersecting&&V.intersectionRatio>0?G.T=V.intersectionRatio:document.visibilityState==="hidden"?G.T=0:G.T=null:G.T=V.isVisible?V.intersectionRatio:0;typeof G.Z==="function"&&G.Z(G.T)},J): null)&&this.X.observe(v)}; DbB=function(v){$w.call(this,v);var J=this;this.events=new g.Zs(v);g.k(this,this.events);this.events.G(v,"applicationInitialized",function(){P1j(J)})}; P1j=function(v){var J=v.api.getRootNode(),G,K=v.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((G=J.parentElement)==null?void 0:G.parentElement)||J:J;v.T=new lk(K,function(V){V!=null&&(v.api.B().Ct=V,v.api.B().Kt="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.k(v,v.T);v.events.G(v.api,"videoStatsPingCreated",function(V){var Y=v.T;Y=Y.T==null?null:Math.round(Y.T*100)/100;V.inview=Y!=null?Y:void 0;Y=v.api.getPlayerSize();if(Y.height>0&&Y.width>0){Y=[Math.round(Y.width),Math.round(Y.height)];var r=g.CY();r>1&&Y.push(r);Y=Y.join(":")}else Y=void 0;V.size=Y})}; tZt=function(v){var J;return((J=((v==null?void 0:v.messageRenderers)||[]).find(function(G){return!!G.timeCounterRenderer}))==null?void 0:J.timeCounterRenderer)||null}; T0=function(v){g.F.call(this,{Y:"div",n7:["ytp-player-content","ytp-iv-player-content"],W:[{Y:"div",D:"ytp-free-preview-countdown-timer",W:[{Y:"span",At:"{{label}}"},{Y:"span",D:"ytp-free-preview-countdown-timer-separator",At:"\u2022"},{Y:"span",At:"{{duration}}"}]}]});this.api=v;this.T=null;this.Z=this.X=0;this.G(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; I1w=function(v,J){v.T||(v.X=J,v.Z=(0,g.yR)(),v.T=new g.M3(function(){BtL(v)},null),BtL(v))}; BtL=function(v){var J=Math,G=J.round,K=Math.min((0,g.yR)()-v.Z,v.X);J=G.call(J,(v.X-K)/1E3);v.updateValue("duration",nn({seconds:J}));J<=0&&v.T?pz(v):v.T&&v.T.start()}; pz=function(v){v.T&&(v.T.dispose(),v.T=null)}; hcX=function(v){$w.call(this,v);var J=this;this.events=new g.Zs(v);g.k(this,this.events);this.events.G(v,"basechromeinitialized",function(){J.T=new T0(v);g.k(J,J.T);g.gr(v,J.T.element,4);J.T.hide()})}; Lz=function(v){g.F.call(this,{Y:"button",n7:["ytp-fullerscreen-edu-button","ytp-button"],W:[{Y:"div",n7:["ytp-fullerscreen-edu-text"],At:"Scroll for details"},{Y:"div",n7:["ytp-fullerscreen-edu-chevron"],W:[{Y:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{Y:"path",V:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],V:{"data-priority":"1"}});this.kB=v;this.fade=new g.Jk(this,250,void 0,100);this.X=this.T=!1;v.createClientVe(this.element,this,61214);g.k(this, this.fade);this.G(v,"fullscreentoggled",this.De);this.G(v,"presentingplayerstatechange",this.De);this.listen("click",this.onClick);this.De()}; ye=function(v){$w.call(this,v);var J=this;this.events=new g.Zs(v);g.k(this,this.events);EM(this.api,"updateFullerscreenEduButtonSubtleModeState",function(K){J.updateFullerscreenEduButtonSubtleModeState(K)}); EM(this.api,"updateFullerscreenEduButtonVisibility",function(K){J.updateFullerscreenEduButtonVisibility(K)}); var G=v.B();v.C("external_fullscreen_with_edu")&&G.externalFullscreen&&Q5(G)&&G.controlsType==="1"&&this.events.G(v,"standardControlsInitialized",function(){J.T=new Lz(v);g.k(J,J.T);v.DG(J.T)})}; zct=function(v){g.F.call(this,{Y:"div",D:"ytp-gated-actions-overlay",W:[{Y:"div",D:"ytp-gated-actions-overlay-background",W:[{Y:"div",D:"ytp-gated-actions-overlay-background-overlay"}]},{Y:"button",n7:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],V:{"aria-label":"Close"},W:[g.RK()]},{Y:"div",D:"ytp-gated-actions-overlay-bar",W:[{Y:"div",D:"ytp-gated-actions-overlay-text-container",W:[{Y:"div",D:"ytp-gated-actions-overlay-title",At:"{{title}}"},{Y:"div",D:"ytp-gated-actions-overlay-subtitle", At:"{{subtitle}}"}]},{Y:"div",D:"ytp-gated-actions-overlay-button-container"}]}]});var J=this;this.api=v;this.background=this.p7("ytp-gated-actions-overlay-background");this.X=this.p7("ytp-gated-actions-overlay-button-container");this.T=[];this.G(this.p7("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){J.api.lw("onCloseMiniplayer")}); this.hide()}; dbU=function(v,J){var G=0;G=0;for(var K={};G V&&(V=E.width,Y="url("+E.url+")")}G.background.style.backgroundImage=Y;dbU(G,K.actionButtons||[]);G.show()}else G.hide()}); g.gr(this.api,this.T.element,4)}; wm=function(v){$w.call(this,v);var J=this;Pz(this.api,"getSphericalProperties",function(){return J.getSphericalProperties()}); Pz(this.api,"setSphericalProperties",function(){J.setSphericalProperties.apply(J,g.l(g.Om.apply(0,arguments)))}); eI(this.api,"getSphericalProperties",function(){return J.api.getPresentingPlayerType()===2?{}:J.getSphericalProperties()}); eI(this.api,"setSphericalProperties",function(){var G=g.Om.apply(0,arguments);J.api.getPresentingPlayerType()!==2&&J.setSphericalProperties.apply(J,g.l(G))})}; Ov=function(v){$w.call(this,v);EM(v,"createClientVe",this.createClientVe.bind(this));EM(v,"createServerVe",this.createServerVe.bind(this));EM(v,"destroyVe",this.destroyVe.bind(this));EM(v,"hasVe",this.hasVe.bind(this));EM(v,"logClick",this.logClick.bind(this));EM(v,"logVisibility",this.logVisibility.bind(this));EM(v,"setTrackingParams",this.setTrackingParams.bind(this))}; Uv=function(v,J,G,K){function V(r){var E=!(r.status!==204&&r.status!==200&&!r.response),e;r={succ:""+ +E,rc:r.status,lb:((e=r.response)==null?void 0:e.byteLength)||0,rt:((0,g.yR)()-Y).toFixed(),shost:g.Wp(v),trigger:J};Rcw(r,v);G&&G(r);K&&!E&&K(new L6("pathprobe.net",r))} var Y=(0,g.yR)();g.pE(v,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:V,onTimeout:V})}; Rcw=function(v,J){var G;((G=window.performance)==null?0:G.getEntriesByName)&&(J=performance.getEntriesByName(J))&&J.length&&(J=J[0],v.pedns=(J.domainLookupEnd-J.startTime).toFixed(),v.pecon=(J.connectEnd-J.domainLookupEnd).toFixed(),v.perqs=(J.requestStart-J.connectEnd).toFixed(),l1s&&(v.perqsa=J.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; xw=function(v,J){this.qX=v;this.policy=J;this.playbackRate=1}; Ttw=function(v,J){var G=Math.min(2.5,nY(v.qX));v=mS(v);return J-G*v}; SH=function(v,J,G,K,V){V=V===void 0?!1:V;if(v.policy.WE)return Math.ceil(v.policy.WE*J);v.policy.Uj&&(K=Math.abs(K));K/=v.playbackRate;var Y=1/RC(v.qX);G=Math.max(.9*(K-3),nY(v.qX)+v.qX.X.T*Y)/Y*.8/(J+G);G=Math.min(G,K);v.policy.s6>0&&V&&(G=Math.max(G,v.policy.s6));return pxL(v,G,J)}; pxL=function(v,J,G){return Math.ceil(Math.max(Math.max(v.policy.JV,v.policy.WQ*G),Math.min(Math.min(v.policy.RY,31*G),Math.ceil(J*G))))||v.policy.JV}; L1X=function(v,J,G){G=SH(v,J.T.info.ER,G.T.info.ER,0);var K=nY(v.qX)+G/RC(v.qX);return Math.max(K,K+v.policy.wA-G/J.T.info.ER)}; mS=function(v){return RC(v.qX,!v.policy.Lj,v.policy.jM)}; fz=function(v){return mS(v)/v.playbackRate}; ZM=function(v,J,G){var K=v.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],V=v.policy.playbackStartPolicy.startMinReadaheadPolicy||[];v=Infinity;J=g.n(J&&K.length>0?K:V);for(K=J.next();!K.done;K=J.next())K=K.value,V=K.minReadaheadMs||0,G<(K.minBandwidthBytesPerSec||0)||v>V&&(v=V);return v0&&(this.X=G.TE)}; UbU=function(v,J,G,K,V){if(!K.info.J){if(G.length===0)G.push(K);else{var Y;(v=(Y=G.pop())==null?void 0:g.vZ(Y,K))?G.push(v):G.push(K)}return V}var r;(G=(r=G.pop())==null?void 0:g.vZ(r,K))||(G=K);if(v.policy.KK&&G.info.X)return v.logger&&v.logger({incompleteSegment:G.info.vO()}),V;r=v.xb(G);K=r.formatId;V=r.yb;G=r.clipId;Y=r.i7;r=r.startTimeMs;if(!v.policy.Q$&&v.policy.X&&v.zS){var E=gm(v.zS,G);r+=E}K={clipId:G,formatId:K,startTimeMs:r,durationMs:Y,S4:V,XF:V};V=ynw(J,K.startTimeMs);(G=V>=0?J[V]:null)&& wxF(v,G,K)?K=G:(V+=1,J.splice(V,0,K));G=0;for(Y=V+1;Y=P+r.X?r=!0:D+r.X=0?v:-v-2}; xbB=function(v,J){if(v.JR){var G=v.JR.h7();if(G.length!==0){if(v.Z&&J){var K=v.Z,V=K.info.L;!rj(G,V)&&K.info.U>0&&(0,g.yR)()-v.j<5E3&&(v.logger&&v.logger({dend:K.info.vO()}),G=Byw(G,V,V+.01))}v.policy.im&&v.logger&&v.logger({cbri:""+v.T});K=[];for(var Y=V=0;V=r){var D=0;if(v.zS){var t=XI(v.zS,e*1E3);t&&(D=t.Z7/1E3)}t=Object.assign({},v.f0[Y]);var B=v.Jt.Z.get(y$(v.f0[Y].formatId)), I=Math.max(e,r);r=B.index.bz(I+v.X/1E3-D);e=B.index.getStartTime(r)+D;var h=r+ +(Math.abs(e-I)>v.X/1E3);I=h+v.L;h=(B.index.getStartTime(h)+D)*1E3;Y!==v.T||J?(t.S4=I,t.startTimeMs=h):(v.logger&&v.logger({pEvict:"1",og:t.startTimeMs,adj:e*1E3}),t.S4=r+v.L,t.startTimeMs=e*1E3);r=void 0;e=((r=v.Z)==null?void 0:r.info.duration)||11;Y===v.T&&Ev.X/1E3);r=e+v.L;D=(B.index.mK(e)+D)*1E3;t.XF=r;t.durationMs=D-t.startTimeMs;t.S4<=t.XF&&K.push(t)}Pv.X)return!1;if(Onf(v,J.formatId,G.formatId))return J.durationMs=Math.max(K,V)-J.startTimeMs,J.XF=Math.max(J.XF,G.XF),!0;if(Math.abs(J.startTimeMs-G.startTimeMs)<=v.X){if(J.durationMs>G.durationMs+v.X){v=J.formatId;var Y=J.S4,r=J.XF;J.formatId=G.formatId;J.durationMs=G.durationMs;J.S4=G.S4;J.XF=G.XF;G.formatId=v;G.startTimeMs=V;G.durationMs=K-V;G.S4=Y;G.XF=r;return!1}J.formatId=G.formatId;return!0}K> G.startTimeMs&&(J.durationMs=G.startTimeMs-J.startTimeMs,J.clipId===G.clipId&&(J.XF=G.S4-1));return!1}; Onf=function(v,J,G){return J.itag!==G.itag||J.xtags!==G.xtags?!1:v.Jt.yn||J.lmt===G.lmt}; f1U=function(v,J,G){if(v.logger){for(var K=[],V=0;V=0&&Ar(v.audioTrack,v.T)>=0&&Y?((v.videoTrack.J||v.audioTrack.J)&&v.Qb.uw("iterativeSeeking",{status:"done",count:v.seekCount}),v.videoTrack.J=!1,v.audioTrack.J=!1):K&&g.dQ(function(){if(v.X||!v.policy.d_)MI(v);else{var r=J.startTime,E=J.duration;if(!v.policy.j){var e=G?v.videoTrack.J:v.audioTrack.J,P=v.videoTrack.j!==-1&&v.audioTrack.j!==-1,D=v.T>=r&&v.T432E3&&K$B(v.Jt);v.Z&&(V=v.Z,v.Z=0);g.dQ(function(){v.policy.j||Qe(v,V,102)}); v.Qb.uw("initManifestlessSync",{st:V,ost:V+v.Qb.B$(),a:v.audioTrack.j,v:v.videoTrack.j});v.L&&(v.L.resolve(V+.1),v.L=null);v.policy.j&&Qe(v,V,102)}}}; bk=function(v,J){var G=this;this.eX=v;this.requestNumber=++F1m;this.T=this.now();this.U=this.N=NaN;this.K=this.T;this.Z=this.R$=this.J=0;this.j=this.T;this.BH=this.Ti=this.qr=this.Vn=this.a$=this.Ze=this.X=this.L=0;this.oY=this.isActive=!1;this.g_=this.Nr=0;this.cO={cil:function(){return G.fd}}; this.qX=J.qX;this.snapshot=akw(this.qX);this.policy=this.qX.X;this.q0=!!J.q0;this.Xe=J.Xe;this.pD=J.pD||0;this.BG=J.BG||0;J.pT&&(this.Mr=new Ef);var K;this.fd=(K=J.fd)!=null?K:!1;this.q0||kt8(this.qX)}; Hnw=function(v){v.qr=Math.max(v.qr,v.J-v.a$);v.Ti=Math.max(v.Ti,v.K-v.Vn);v.Ze=0}; jU=function(v,J,G){cZU(v.qX,J);v.Mr&&(v.Mr.add(Math.ceil(J)-Math.ceil(v.K)),v.Mr.add(Math.max(0,Math.ceil(G/1024)-Math.ceil(v.J/1024))));var K=J-v.K,V=G-v.J;v.R$=V;v.BH=Math.max(v.BH,V/(K+.01)*1E3);v.K=J;v.J=G;v.Ze&&G>v.Ze&&Hnw(v)}; ic=function(v,J){v.url=J;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; $U=function(v,J){bk.call(this,v,J);this.o$=this.UR=!1;this.YB=this.dh=Infinity;this.jl=NaN;this.d_=!1;this.WH=NaN;this.OR=this.Gi=this.RY=0;this.Zx=J.Zx||1;this.Qc=J.Qc||this.Zx;this.gW=J.gW;this.yb=J.yb;this.zl=J.zl;MZr(this);this.RW(this.T);this.wh=(this.WH-this.T)/1E3}; Qhm=function(v){var J=v.Gi||v.RY;return J?v.snapshot.delay+Math.min(v.BG,(v.U-v.N)/1E3)+J:v.wh}; v2=function(v,J,G){if(!v.q0){J=Math.max(J,.01);var K=v.pD?Math.max(J,G/v.pD):J,V=v.qX.X.Z;V&&(K=J,v.pD&&(K=Math.max(J,G/v.pD*V)));IC(v.qX,J,G,K)}}; W1w=function(v){return(v.j-v.T)/1E3}; MZr=function(v){v.jl=v.T+v.snapshot.delay*1E3;v.d_=!1}; Jy=function(v,J){if(v.gW&&v.yb!==void 0&&v.zl!==void 0){var G=Math,K=G.min,V=v.dh;var Y=v.gW;var r=v.T;if(C1F(Y,v.yb))Y=J;else{var E=0;Y.KZ&&(E=.2);Y=r+(Y.BG+E)*1E3}v.dh=K.call(G,V,Y);G=Math;K=G.min;V=v.YB;Y=v.gW;r=v.T;E=bns(Y,v.yb,v.zl);E!==2&&(J=E?J:r+Y.BG*1E3,Y.KZ&&(J+=Y.BG*1E3));v.YB=K.call(G,V,J);v.dh<=v.T?MZr(v):(v.jl=v.dh,v.d_=!0)}}; j3w=function(v,J){if(v.Av(J,1)){var G=v.getUint8(J);G=G<128?1:G<192?2:G<224?3:G<240?4:5}else G=0;if(G<1||!v.Av(J,G))return[-1,J];if(G===1)v=v.getUint8(J++);else if(G===2)G=v.getUint8(J++),v=v.getUint8(J++),v=(G&63)+64*v;else if(G===3){G=v.getUint8(J++);var K=v.getUint8(J++);v=v.getUint8(J++);v=(G&31)+32*(K+256*v)}else if(G===4){G=v.getUint8(J++);K=v.getUint8(J++);var V=v.getUint8(J++);v=v.getUint8(J++);v=(G&15)+16*(K+256*(V+256*v))}else G=J+1,v.focus(G),Rg(v,G,4)?v=Tgw(v).getUint32(G-v.Kj,!0):(K= v.getUint8(G+2)+256*v.getUint8(G+3),v=v.getUint8(G)+256*(v.getUint8(G+1)+256*K)),J+=5;return[v,J]}; Gh=function(v){this.eX=v;this.T=new zp}; oq=function(v,J){this.info=v;this.callback=J;this.state=1;this.Vh=this.Bg=!1;this.Cq=null}; iHw=function(v){return g.wn(v.info.Vb,function(J){return J.type===3})}; Ky=function(v,J,G,K){var V=this;K=K===void 0?{}:K;this.policy=J;this.eX=G;this.status=0;this.T=new zp;this.X=0;this.Sl=this.L=this.Z=!1;this.xhr=new XMLHttpRequest;this.xhr.open(K.method||"GET",v);if(K.headers)for(v=K.headers,J=g.n(Object.keys(v)),G=J.next();!G.done;G=J.next())G=G.value,this.xhr.setRequestHeader(G,v[G]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return V.r9()}; this.xhr.onload=function(){return V.onDone()}; this.xhr.onerror=function(){return V.onError()}; this.xhr.fetch(function(Y){V.T.append(Y);V.X+=Y.length;Y=(0,g.yR)();V.eX.OX(Y,V.X)},function(){},K.body||null)}; $Bw=function(v,J){this.X=(new TextEncoder).encode(v);this.T=(new TextEncoder).encode(J)}; $e8=function(v,J){var G,K,V;return g.m(function(Y){if(Y.T==1){if(!J)return Y.return(J);G=VH.PX();K=new g.RU(v.X);return g.U(Y,K.encrypt(J,v.T),2)}V=Y.X;VH.vl("woe",G,Math.ceil(J.byteLength/16));return Y.return(V)})}; K38=function(v,J){var G,K,V;return g.m(function(Y){if(Y.T==1){if(!J)return Y.return(J);G=VH.PX();K=new g.RU(v.X);return g.U(Y,K.decrypt(J,v.T),2)}V=Y.X;VH.vl("wod",G,Math.ceil(J.byteLength/16));return Y.return(V)})}; Jp8=function(v,J){var G=this;this.T=v;this.eX=J;this.loaded=this.status=0;this.error="";v=UH(this.T.get("range")||"");if(!v)throw Error("bad range");this.range=v;this.X=new zp;vVs(this).then(function(){G.eX.Gy()},function(K){G.error=""+K||"unknown_err"; G.eX.Gy()})}; vVs=function(v){var J,G,K,V,Y,r,E,e,P,D,t,B,I,h,R;return g.m(function(T){if(T.T==1){v.status=200;J=v.T.get("docid");G=Kk(v.T.get("fmtid")||"");K=v.T.get("lmt")||"0";V=+(v.T.get("csz")||0);if(!J||!G||!V)throw Error("Invalid local URL");v.T.get("ck")&&v.T.get("civ")&&(Y=new $Bw(v.T.get("ck"),v.T.get("civ")));r=v.range;E=Math.floor(r.start/V);e=Math.floor(r.end/V);P=E}if(T.T!=5)return P<=e?g.U(T,Vsm(J,G,K,P,Y),5):T.sB(0);D=T.X;if(D===void 0)throw Error("invariant: data is undefined");t=P*V;B=(P+1)*V; I=Math.max(0,r.start-t);h=Math.min(r.end+1,B)-(I+t);R=new Uint8Array(D.buffer,I,h);v.X.append(R);v.loaded+=h;v.loaded0&&(V.T=Math.min(V.T+r,10),V.X=Y);V.T>0?(V.T--,V=!0):V=!1;if(V)typeof K==="function"&&(K=K()),console.log("plyr."+J,K);else{var E;K=((E=eGj.get(J))!=null?E:0)+1;eGj.set(J,K);K%100===1&&console.warn("plyr","plyr."+J+" is chatty, dropping logs.")}}}; EVX=function(){this.T=10;this.X=Date.now()}; Eh=function(v,J){g.X.call(this);var G=this;this.policy=v;this.Vb=J;this.X=0;this.T=null;this.N1=[];this.Z=null;this.cO={mY:function(){return G.Vb}}; this.Vb.length===1||g.wn(this.Vb,function(K){return!!K.range})}; eU=function(v,J,G){v.T&&(np(v.T,J),J=v.T,v.T=null);for(var K=0,V=0,Y=g.n(v.Vb),r=Y.next();!r.done;r=Y.next())if(r=r.value,r.range&&K+r.Z<=v.X)K+=r.Z;else{J.getLength();if(fb(r)&&!G&&v.X+J.getLength()-V=400?(v.lastError="net.badstatus",!0):(V===void 0?0:V)?(v.lastError="ump.spsrejectfailure",!0):G||K!==void 0&&K?!1:(v.lastError=J===204?"net.nocontent":"net.connect",!0)}; hy=function(v,J){if(v.policy.Ey)return!1;var G=J.getResponseHeader("content-type"),K=J.mp();v=!K||K<=v.policy.Ox;return(!J.Fe()||!G||G.indexOf("text/plain")!==-1)&&v}; hGm=function(v,J){var G="";J=J.e8();J.getLength()<=v.policy.Ox&&(G=IPs(v,J.l1()));return G}; IPs=function(v,J){var G=pp(J);return $M(G)?(v.logger.debug(function(){return"Redirecting to "+G}),G):""}; DL=function(v){return sH(v.Z,LH(v.yj.base))}; zGF=function(v){var J=v.timing.w2();J.shost=LH(v.yj.base);return J}; nVw=function(v,J){return(v==null?void 0:v.maxWidth)>(J==null?void 0:J.maxWidth)||(v==null?void 0:v.maxHeight)>(J==null?void 0:J.maxHeight)}; dB2=function(v,J){for(var G=g.n(J.keys()),K=G.next();!K.done;K=G.next())if(K=J.get(K.value),K.length!==0){g.q_(K,function(E,e){return e.maxFramerate-E.maxFramerate}); for(var V=[K[0]],Y=0,r=1;rv.T||G.push(K)}return G}; zh=function(v,J,G){var K=lPm[v]||[];G.C("html5_shorts_onesie_mismatched_fix")&&(K=T32[v]||[]);J.push.apply(J,g.l(K));G.C("html5_early_media_for_drm")&&J.push.apply(J,g.l(pk2[v]||[]))}; xB2=function(v,J){var G=g.rH(v),K=v.B(),V=K.J;K=K.C("html5_shorts_onesie_mismatched_fix");var Y=v.N5();if(K){if(!V.J){if(Y&&ny)return ny;if(dZ)return dZ}}else if(dZ&&!V.J)return dZ;var r=[],E=[],e={},P=sh.concat(LLs);K&&(P=sh.concat(ypX));v.C("html5_early_media_for_drm")&&(P=P.concat(wkf),v.C("allow_vp9_1080p_mq_enc")&&P.push(OHm));var D=[].concat(g.l(UBX));if(G.Z)for(var t=0;tG.zb)){var R=g.DI(v.B().experiments,"html5_drm_byterate_soft_cap");R>0&&D1f(h)&&h.ER>R||(t?(r.push(I),zh(I,r,v)):(h=I3(G,h,V),h===!0?(t=!0,r.push(I),zh(I,r,v)):e[I]=h))}}}D=g.n(D);for(P=D.next();!P.done;P=D.next())for(P=g.n(P.value),t=P.next();!t.done;t= P.next())if(t=t.value,(B=Pvt(t))&&B.audio&&(v.C("html5_onesie_51_audio")||!WE(B)&&!C6(B)))if(B=I3(G,B,V),B===!0){E.push(t);zh(t,E,v);break}else e[t]=B;G.X&&J("orfmts",e);if(K)return V.J&&(V.J=!1,ny=dZ=void 0),Y?ny={video:r,audio:E}:dZ={video:r,audio:E};dZ={video:r,audio:E};V.J=!1;return dZ}; g.fPt=function(v,J,G){var K=G.J,V=[],Y=[],r=G.C("html5_shorts_onesie_mismatched_fix");v=v.N5();var E=sh.concat(LLs);r&&(E=sh.concat(ypX));G.C("html5_early_media_for_drm")&&(E=E.concat(wkf),G.C("allow_vp9_1080p_mq_enc")&&E.push(OHm));var e=[].concat(g.l(UBX));if(J.Z)for(var P=0;P0&&D1f(t)&&t.ER>B)&&I3(J,t,K)===!0){V.push({videoCodec:mBX[a$[D]],maxWidth:t.video.width,maxHeight:t.video.height,maxFramerate:t.video.fps});break}}}}r=g.n(e);for(v=r.next();!v.done;v=r.next())for(v=g.n(v.value),e=v.next();!e.done;e=v.next())if(e=e.value,(E=Pvt(e))&&E.audio&&(G.C("html5_onesie_51_audio")||!WE(E)&&!C6(E))&&I3(J,E,K)=== !0){Y.push({audioCodec:S1t[a$[e]],numChannels:E.audio.numChannels});break}return{videoFormatCapabilities:V,audioFormatCapabilities:Y}}; Rq=function(v){var J={},G=v.HH,K=v.gh,V=G.getVideoData(),Y=kz(0),r=G.getPlayerSize(),E=G.getVisibilityState();Y&&(J.ARU=Y,J.lastManualDirection=yQr(),Y=HMf()||0,Y>0&&(Y=(K.C("html5_use_date_now_for_local_storage")?Date.now():(0,g.yR)())-Y,K.C("html5_use_date_now_for_local_storage")?Y>0&&(J.timeSinceLastManualFormatSelectionMs=Y):J.timeSinceLastManualFormatSelectionMs=Y));Y=K.C("html5_use_streamer_bandwidth_for_low_latency_live")&&V.isLowLatencyLiveStream;if(K.schedule.oY&&!Y){var e;Y=K.C("html5_disable_bandwidth_cofactors_for_sabr_live")? !((e=v.oA)==null||!e.Lj):!1;J.aL=RC(K.schedule,!Y)}e=g.CY();var P=g.Xy.medium,D=Math.floor(P*16/9);Y=V.N5()?P:D;P=V.N5()?D:P;J.X6=Math.max(r.width*e,Y);J.A1=Math.max(r.height*e,P);J.visibility=E;J.uQ4=yy();J.OD=G.KF()*1E3;r=v.HH.xg(!0);var t,B,I,h,R,T;J.FT7={defaultPolicy:(r==null?void 0:(t=r.GI)==null?void 0:t.T)||0,smooth:(r==null?void 0:(B=r.Kgw)==null?void 0:B.T)||0,visibility:(r==null?void 0:(I=r.m$i)==null?void 0:I.T)||0,h1:(r==null?void 0:(h=r.NW)==null?void 0:h.T)||0,performance:(r==null? void 0:(R=r.d0)==null?void 0:R.T)||0,speed:(r==null?void 0:(T=r.RZ4)==null?void 0:T.T)||0};var L;J.BKY=(r==null?void 0:(L=r.IIi)==null?void 0:L.T)||0;K.C("html5_enable_sabr_authorized_drm_track_types")&&(J.DO=v.DO&&v.DO.length>0?v.DO:[1,2]);K.C("html5_enable_sabr_drm_hd720p")&&v.sabrLicenseConstraint&&(J.sabrLicenseConstraint=v.sabrLicenseConstraint);if(K.C("html5_onesie_media_capabilities")||K.C("html5_enable_server_format_filter"))J.Zh=3;K.C("html5_onesie_audio_only_playback")&&Kh(V)&&(J.Zh=1); var O;((O=v.oA)==null?0:O.o$)&&v.Nhe&&(J.Zh=J.Zh===void 0?7:J.Zh|4);t=V.rJ?V.rJ:g.rH(V);K.C("html5_onesie_media_capabilities")&&(J.mediaCapabilities=g.fPt(V,t,K));var x;if((x=v.oA)==null?0:x.T&&x.G4){I=K.J;x=[];B=[];h=new Map;K.C("html5_ssap_update_capabilities_on_change")?(I.oY||SC8(I),R=I.oY||[]):R=Array.from(I.T.values());R=g.n(R);for(T=R.next();!T.done;T=R.next())L=T.value,L.Xj?B.push({audioCodec:S1t[L.aY],numChannels:L.numChannels,spatialCapabilityBitmask:ZHX[L.aY]}):(O=mBX[L.aY],T={videoCodec:O, maxWidth:L.maxWidth||0,maxHeight:L.maxHeight||0,maxFramerate:L.maxFramerate||0,is10BitSupported:L.Mc||!1},L.maxBitrateBps&&(T.maxBitrateBps=L.maxBitrateBps,r=Yg(L.itag),E=void 0,((E=r)==null?0:E.video)&&I3(t,r,I)===!0&&(r=r.ER*8,r>T.maxBitrateBps&&(T.maxBitrateBps=r))),L=O+"_"+L.Mc,O=h.get(L)||[],O.push(T),h.set(L,O));x=dB2(x,h);I={};K.C("html5_ssff_denylist_opus_low")&&(I={itagDenylist:[249,350]});J.mediaCapabilities={videoFormatCapabilities:x,audioFormatCapabilities:B,hdrModeBitmask:3,perPlaybackAttributes:I}}var f; if((f=v.oA)==null?0:f.T){J.zy=t.zy;var c;J.zb=(c=v.oA)==null?void 0:c.zb}K.E9&&(J.xO=K.E9);J.yc=v.TL;J.iZ=v.iZ;J.Py=v.Py;J.RU=v.RU;if(K.C("html5_fix_time_since_last_seek_reporting")?v.hw!==void 0:v.hw)J.oPb=(0,g.yR)()-v.hw;v.isPrefetch&&K.C("html5_report_prefetch_requests")&&(J.isPrefetch=!0);ih||(J.B_Y=!0);f=nY(K.schedule)*1E3;f>0&&(J.MW=f);var b;((b=v.oA)==null?0:b.Lx)&&v.EU&&v.EU0?M:K.schedule.interruptions[0]||0);var Jw;if((Jw=v.oA)==null?0:Jw.UR)J.Kx=v.Kx;K.C("html5_sabr_enable_server_xtag_selection")&&(V.nj||K.g_)&&(J.audioTrackId=V.nj||K.g_);var Kf;if((Kf=v.oA)==null?0:Kf.Pq)if(v=Ept())J.detailedNetworkType=uSf[v]||uSf.other;return J}; lc=function(v,J,G,K,V,Y,r){var E={};J&&(E.N8=J);if(!v)return E;E.playbackCookie=G==null?void 0:G.playbackCookie;V&&(E.Kh=V);E.H4=[];E.Gq=[];if(r==null?0:r.size)for(J=g.n(r.values()),G=J.next();!G.done;G=J.next())E.Gq.push(G.value);if(v.sabrContextUpdates.size>0)for(J=g.n(v.sabrContextUpdates.values()),G=J.next();!G.done;G=J.next())gV2(E,G.value,K);YJ(v)&&!g.WG(v)&&v.C("html5_enable_sabr_request_pipelining")&&Y&&gV2(E,Y,K);v.hY&&(E.jKe=v.hY);K=v.B().T;E.clientInfo={clientName:XkX[K.c.toUpperCase()]|| 0};K.cbrand&&(E.clientInfo.deviceMake=K.cbrand);K.cmodel&&(E.clientInfo.deviceModel=K.cmodel);K.cver&&(E.clientInfo.clientVersion=K.cver);K.cos&&(E.clientInfo.osName=K.cos);K.cosver&&(E.clientInfo.osVersion=K.cosver);K=v.B();K.C("html5_sabr_enable_server_xtag_selection")&&K.d_&&(E.clientInfo.hl=K.d_);v.wH&&(E.wH=v.wH);return E}; gV2=function(v,J,G){var K=J.type||0;(G==null?0:G.has(K))?v.Gq.push(J):v.H4.push(K)}; NI=function(v,J,G,K,V,Y){var r=Y===void 0?{}:Y;var E=r.S7===void 0?[]:r.S7;var e=r.Yd===void 0?!1:r.Yd;var P=r.JB===void 0?0:r.JB;var D=r.poToken===void 0?"":r.poToken;var t=r.ZE===void 0?void 0:r.ZE;var B=r.GY===void 0?"":r.GY;var I=r.wK===void 0?0:r.wK;var h=r.lz===void 0?new Uint8Array(0):r.lz;var R=r.Fo===void 0?!1:r.Fo;Y=r.uX===void 0?0:r.uX;r=r.N8===void 0?void 0:r.N8;oq.call(this,J,V);var T=this;this.policy=v;this.logger=new g.rZ("dash/request");this.Nt=this.PG=0;this.eb=!1;this.t5=this.Ba= null;this.jH=!1;this.lz=this.wK=null;this.P3=this.n6=!1;this.xD=null;this.uX=this.Wn=0;this.Jv=!1;this.cO={l9:function(O){T.l9(O)}, U_w:function(){return T.Cq}, Adl:function(O){T.Cq=O}, bWH:function(O){T.PG=O}, tmU:function(O){T.CK.lastError=O}, FN:function(){return T.xhr}}; this.timing=new $U(this,G);this.Yd=e;this.wK=I;this.lz=h;this.yj=g.Af(this.info,this.policy,K);this.yj.set("rn",this.Ej().toString());this.yj.set("rbuf",(P*1E3).toFixed().toString());this.Yd&&this.yj.set("smb","1");this.policy.IE&&D&&this.yj.set("pot",D);B&&this.yj.set("bbs",B);this.policy.useUmp&&!ya(this.yj.base)&&(this.JS=new Gh(this),this.yj.set("ump","1"),this.yj.set("srfvp","1"));if(v=this.policy.zc?this.policy.GJ&&!isNaN(this.info.zl)&&this.info.zl>this.policy.qT?!1:!0:!1)J=null,this.policy.gA&& this.policy.BC?J=[1]:R&&(J=[]),J!=null&&(this.policy.Gf&&J.push(2),this.yj.set("defsel",J.join(",")));this.CK=new P2(this,this.policy,this.yj,this.info.v$,this.timing,this.logger,K,t);this.S7=E||null;this.Vh=kV2(this);Pfs(this.CK);K=void 0;if(this.policy.Eo||this.JS||this.policy.qr)K={method:"POST"},E=(0,g.Th)([120,0]),t={},this.policy.qA&&r&&(r=lc(void 0,r),t.aq=r),this.policy.nU&&this.lz&&(t.videoPlaybackUstreamerConfig=this.lz),this.policy.qr&&(r=this.info.L)&&Object.assign(t,r),Object.keys(t).length> 0?K.body=g.Cp(t,g.vk):K.body=E;if(this.wK&&this.lz){this.yj.set("iwts","1");K={method:"POST"};r={RU:this.wK*1E3};var L;E=(L=this.info.L)==null?void 0:L.yI;L=g.Cp({TV:r,yI:E||void 0,videoPlaybackUstreamerConfig:this.lz},g.vk);K.body=L}try{this.xhr=YU(this.yj,this.policy.U,this.timing,v,K),this.CK.X.start(),Y&&(this.r6=new g.Qq(this.WA,Y,this),this.r6.start(Y+(this.timing.qX.U.gK()||0)*1E3)),this.policy.dQ&&ic(this.timing,this.Dm()),this.logger.debug(function(){return"Sent, itag="+T.yj.get("itag")+ " seg="+T.info.Vb[0].yb+" range="+T.yj.get("range")+" time="+Math.round(T.info.Vb[0].L)+"-"+Math.round(g.F8(T.info.Vb).j)+" rtp="+(T.timing.Ne()-Date.now()).toFixed(0)}),g.dQ(function(){})}catch(O){cpf(this,O,!0)}}; kV2=function(v){if(!(aZ(v.info)&&v.info.fd()&&v.policy.E9&&v.S7)||v.info.v$.X>=2||kz()>0||!xVw())return!1;var J=v.yj.get("aitags");if(!J)return!1;J=Kk(J).split(",");for(var G=[],K=g.n(v.S7),V=K.next();!V.done;V=K.next())V=V.value,g.WN(J,V)&&G.push(V);if(!G.length)return!1;v.yj.set("altitags",g.o7(G.join(",")));return!0}; cpf=function(v,J,G){G=G===void 0?!1:G;g.fW(J);v.CK.lastError="player.exception";v.errorMessage=J.name+"_"+J.message;G?g.dQ(function(){B2(v.CK)}):B2(v.CK)}; N3m=function(v,J){v.timing.oY=!0;v.xhr.Fe()&&v.timing.tZ();if(v.policy.qj){var G;(G=v.r6)==null||G.stop()}eU(v.Cq,J,!1)}; aPw=function(v,J){v.info=J;if(v.Cq){var G=v.Cq;J=J.Vb;(J.length!==G.Vb.length||J.length0){J=g.n(J.Vb);for(var G=J.next();!G.done;G=J.next()){var K=void 0;v+=((K=G.value.range)==null?void 0:K.length)||0}return v}if(J.Od.length>0)for(G=g.n(J.Od),K=G.next();!K.done;K=G.next())v+=K.value.T2||0;return v+J.iT}; md=function(v,J){if(Oh){var G=0;v=v.IH.get(J);if(v==null||!v.E6)return 0;v=g.n(v.E6.values());for(J=v.next();!J.done;J=v.next())G+=J.value.data.getLength();return G}return((G=v.IH.get(J))==null?void 0:G.N1.getLength())||0}; SU=function(v,J){v=v.IH.get(J);if(Oh){if(v==null||!v.Kw)return!1;J=v.E6.size>0;return v.VG.length>0||J}return!(v==null||!v.Kw)&&!(v==null||!v.N1.getLength())}; WLw=function(v,J){var G=v.IH.get(J),K=Q3r(v,J),V=!K&&!!G.bytesReceived;if(Oh){var Y;if((Y=v.Jt)==null?0:Y.yn){v=g.n(G.E6.values());for(J=v.next();!J.done;J=v.next())if(!J.value.qo)return!1;return V}}else if(Y=v.vJ(J),V&&v.T&&Y!==void 0)return Y;return(V||G.bytesReceived===K)&&G.xx+md(v,J)===G.bytesReceived}; Cfr=function(v,J,G){v.IH.set(J,{N1:new zp,xx:0,bytesReceived:0,iT:0,jV:!1,v8:!1,vJ:!1,Xj:G,NK:[],Vb:[],Od:[],Kw:!1,E6:new Map,Mu:new Map,VG:[]});v.logger.debug(function(){return"[initStream] formatId: "+J})}; bHw=function(v,J,G,K){G.Vb.push.apply(G.Vb,g.l(K));if(Oh){G.Mu.has(J)||G.Mu.set(J,[]);var V;(V=G.Mu.get(J)).push.apply(V,g.l(K))}else if(G.Cq)for(v=g.n(K),J=v.next();!J.done;J=v.next())G.Cq.Vb.push(J.value);else{G.Cq=new Eh(v.oA,[].concat(g.l(G.Vb)));var Y;((Y=v.oA)==null?0:Y.Kt)&&g.k(v,G.Cq)}}; jZB=function(v,J,G){var K,V=(K=v.Jt)==null?void 0:K.Z.get(J);if(!V)return[];if(G.qd){var Y;return((Y=V.HJ(0,G.clipId))==null?void 0:Y.Vb)||[]}if(V.A5()){var r=G.startMs,E=G.durationMs,e=1E3,P;if(((P=v.oA)==null?0:P.T)&&G.timeRange){var D;r=(D=G.timeRange.startTicks)!=null?D:-1;var t;E=(t=G.timeRange.e5)!=null?t:-1;var B;e=(B=G.timeRange.timescale)!=null?B:-1}if(G.y4<0||G.rH<0||E<0||r<0||G.T2<0||e<0)return xU(v,J),[];v=xx(G.y4,G.T2);J=G.CC||0;return[new S$(3,V,v,"makeSliceInfosMediaBytes",G.rH-1,r/ e,E/e,J,v.length-J,void 0,G.cC,G.clipId)]}if(G.rH<0)return xU(v,J),[];var I;return((I=v.Jt)==null?0:I.yn)?(J=V.eF,P=J*V.info.ER,D=((r=v.oA)==null?0:r.KK)?G.CC:void 0,((e=v.oA)==null?0:e.rS)&&G.timeRange&&!D&&(E=G.timeRange.startTicks/G.timeRange.timescale),[new S$(3,V,void 0,"makeSliceInfosMediaBytes",G.rH,E,J,D,P,!0,G.cC,G.clipId)]):[]}; ib8=function(v,J,G){v.Jt=J;v.oA=G;J=g.n(v.IH);for(G=J.next();!G.done;G=J.next()){var K=g.n(G.value);G=K.next().value;K=K.next().value;for(var V=g.n(K.NK),Y=V.next();!Y.done;Y=V.next()){Y=Y.value;var r=jZB(v,G,Y);bHw(v,Y.r8,K,r)}}}; fy=function(v,J,G,K){v.logger.debug(function(){return"[addStreamData] formatId: "+G+",headerId: "+J+" bytes: "+K.getLength()}); (v=v.IH.get(G))&&!v.v8&&(Oh?(v.E6.has(J)||v.E6.set(J,{data:new zp,rD:0,qo:!1}),np(v.E6.get(J).data,K)):np(v.N1,K),v.bytesReceived+=K.getLength(),v.jV=!0)}; Uh=function(v,J){v.logger.debug(function(){return"[closeStream] formatId: "+J}); var G=v.IH.get(J);G&&!G.v8&&(G.v8=!0,G.V9&&G.V9(),$mr(v)&&v.L.Mx())}; $mr=function(v){v=g.n(v.IH.values());for(var J=v.next();!J.done;J=v.next())if(!J.value.v8)return!1;return!0}; ZL=function(v,J,G,K,V,Y,r,E){g.X.call(this);this.policy=v;this.info=J;this.Jt=G;this.eX=V;this.a_=E;this.logger=new g.rZ("sabr");this.JS=new Gh(this);this.T8=new yH(this);this.gM=new wZ(this);this.state=1;this.oM=!1;this.zA=0;this.clipId="";this.pB=this.iz=-1;this.PR=0;this.ew=-1;this.Jv=this.fl=!1;this.C2=0;this.TD=!1;this.policy.Jk?this.gB=new py(this,Y):this.gB=new $U(this,Y);this.yj=this.policy.UR?J.H3:vxj(J,this.policy,K);this.yj.set("rn",""+this.Ej());this.yj.set("alr","yes");ib8(this.gM,G, v);this.CK=new P2(this,this.policy,this.yj,J.v$,this.gB,this.logger,K,r,this.policy.enableServerDrivenRequestCancellation);Pfs(this.CK);var e;if((e=this.policy)==null?0:e.Kt)g.k(this,this.gM),g.k(this,this.CK);v=J.X;J={method:"POST",body:v};v&&(this.PR=v.length);try{this.xhr=YU(this.yj,this.policy.U,this.gB,ih,J),this.policy.dQ&&ic(this.gB,this.Dm()),this.CK.X.start()}catch(P){g.Zl(P)}}; JfX=function(v){v.policy.l4&&v.wI&&!v.TD?v.TD=!0:v.gB.tZ()}; Gnm=function(v,J){var G=-1,K=-1,V=-1,Y;if((Y=v.Ub)==null?0:Y.items)for(v=g.n(v.Ub.items),Y=v.next();!Y.done;Y=v.next())Y=Y.value,J=E,e=v.Jt.isManifestless&&v.policy.eM,r){var P;if(((P=v.T)==null?void 0:P.Pv.event)==="predictStart"&&v.T.ybv.j&&(v.j=NaN,v.K=NaN);v.T&&v.T.yb===J?zzw(v,J,G,v.T,V):v.X===1&&kU(v,5,"noad")}; zzw=function(v,J,G,K,V){if(V&&K){var Y=K.Pv,r=V.l3(Y);Y.event==="predictStart"&&(v.Ti=J);v.uw("sdai",{onqevt:Y.event,sq:J,mt:G,gab:r,cst:Y.startSecs,cueid:v.policy.fN&&(r||Y.event==="start")?Y.identifier:void 0},!0);if(r)if(Y.event!=="predictStart")Y.event==="start"&&v.Ti===J-1&&v.uw("sdai",{gabonstart:J}),K.rr?kU(v,4,"cue"):(v.j=J,v.K=G,v.uw("sdai",{joinad:v.X,sg:v.j,st:v.K.toFixed(3)}),v.N=Date.now(),kU(v,2,"join"),V.AL(K.Pv));else{var E=J+Math.max(Math.ceil(-Y.T/5E3),1);r=Math.floor(G-Y.T/1E3); v.policy.J?v.J=r:v.L=E;v.uw("sdai",{onpred:G,estsq:E,estmt:r.toFixed(3)});N8(v.Qb,r,r,E);v.N=Date.now();kU(v,3,"predict");V.AL(K.Pv)}else v.X===1?((E=v.Z)==null?0:E.L3(G))?(N8(v.Qb,G,G,J),kU(v,4,"sk2had")):kU(v,5,"nogab"):Y.event==="predictStart"&&(v.policy.J&&v.J>0?(G=Math.floor(G-Y.T/1E3),v.J!==G&&v.uw("sdai",{updateSt:G,old:v.J}),v.J=G):v.L>0&&(G=J+Math.max(Math.ceil(-Y.T/5E3),1),v.L!==G&&(v.uw("sdai",{updateSt:G,old:v.L}),v.L=G)));var e,P;if(v.i9&&Y.event==="start"&&((e=v.T)==null?void 0:e.Pv.event)!== "predictStart"&&((P=v.T)==null?void 0:P.yb)===J-1){var D;v.uw("sdai",{ovlpst:(D=v.T)==null?void 0:D.Pv.event,sq:J})}}else v.uw("sdai",{nulldec:1,sq:J,mt:G.toFixed(3),evt:(K==null?void 0:(Y=K.Pv)==null?void 0:Y.event)||"none"})}; dm2=function(v,J,G){if(v.policy.D5&&v.policy.J)return!(v.X===1||v.X===2||v.X===3&&G>=v.L);if(v.X===1||v.X===2)return!1;if(v.X!==0&&J===v.audioTrack){if(v.policy.J)return nxL(v.videoTrack,G)||nxL(v.videoTrack,G+1);v=aq(v.videoTrack);if(G>(v?v.yb:-1))return!1}return!0}; Ay=function(v,J,G){return(G<0||G===v.j)&&!isNaN(v.K)?v.K:J}; B48=function(v,J){if(v.T){var G=v.T.Pv.ON-(J.startTime+v.U-v.T.Pv.startSecs);G<=0||(G=new NB(v.T.Pv.startSecs-(isNaN(v.U)?0:v.U),G,v.T.Pv.context,v.T.Pv.identifier,"stop",v.T.Pv.T+J.duration*1E3),v.uw("cuepointdiscontinuity",{segNum:J.yb}),X7(v,G,J.yb))}}; kU=function(v,J,G){v.X!==J&&(v.uw("sdai",{setsst:J,old:v.X,r:G}),v.X=J)}; F7=function(v,J,G,K){(K===void 0?0:K)?kU(v,1,"seek"):J>0&&Math.abs(J-G)>=5&&v.X===4&&kU(v,5,"sk2t."+J.toFixed(2)+";ct."+G.toFixed(2))}; H2=function(v,J,G){this.audio=v;this.video=J;this.reason=G}; M8=function(v,J,G){this.T=v;this.reason=J;this.token=G;this.videoId=void 0}; QH=function(v,J,G){g.X.call(this);this.policy=v;this.L=J;this.uw=G;this.Z=new Map;this.J=0;this.j=!1;this.T="";this.X=!1}; W2=function(v,J,G){if(G===void 0?0:G)v.j=!0;++v.J;G=6E4*Math.pow(2,v.J);G=(0,g.yR)()+G;v.Z.set(J.info.id,G)}; Cy=function(v){for(var J=g.n(v.Z.entries()),G=J.next();!G.done;G=J.next()){var K=g.n(G.value);G=K.next().value;K=K.next().value;K<(0,g.yR)()&&v.Z.delete(G)}return v.Z}; sZj=function(v){return v.j&&Cy(v).size>0}; bc=function(v,J){v.T!==J&&(v.T=J,v.X=!0)}; Rzm=function(v,J){var G;J&&(G=g.MS(v.L.T,function(V){return V.id===J})); if(!G&&(G=g.MS(v.L.T,function(V){var Y;return!((Y=V.hR)==null||!Y.isDefault)}),J)){var K; v.uw("iaf",{id:J,sid:(K=G)==null?void 0:K.id})}return G}; ia=function(v,J,G,K,V,Y){var r=this;Y=Y===void 0?[]:Y;this.Qb=v;this.dh=J;this.policy=G;this.Jt=K;this.j=V;this.WH=Y;this.logger=new g.rZ("dash/abr");this.T=AW;this.Z=this.K=null;this.N=-1;this.YB=!1;this.nextVideo=this.X=null;this.L=[];this.Gi=new Set;this.qr={};this.BH=new PL(1);this.U=0;this.RY=this.Ti=this.oY=!1;this.Ze=0;this.xB=!1;this.Mr=new Set;this.jl=!1;this.cO={tH:function(){jX(r)}}; this.J=new QH(this.policy,V,function(E,e){r.Qb.uw(E,e)})}; yff=function(v,J,G){$_(v,J);J=Rzm(v.J,G);G||J||(J=lSw(v));J=J||v.j.T[0];v.X=v.Jt.T[J.id];jX(v);v.K=v.X;T4s(v);pwm(v);v.Z=v.nextVideo;v.K=v.X;return Lur(v)}; Umj=function(v,J){if(wwU(v,J))return null;if(J.reason==="m"&&J.isLocked())return v.logger.debug(function(){return"User sets constraint to: "+eV(J)}),$_(v,J),v.U=v.L.length-1,jX(v),v7(v),v.Ti=v.Ti||v.Z!==v.nextVideo,v.Z=v.nextVideo,new H2(v.X,v.Z,J.reason); J.reason==="r"&&(v.N=-1);$_(v,J);v7(v);if(J.reason==="r"&&v.nextVideo===v.Z)return new H2(v.X,v.nextVideo,J.reason);Obr(v);return null}; xms=function(v,J,G){v.X=v.Jt.T[J];v.K=v.X;return new H2(v.K,v.Z,G?"t":"m")}; mm8=function(v,J){if(J.info.video){if(v.Z!==J)return v.Z=J,Lur(v)}else v.RY=v.K!==J,v.K=J;return null}; SHL=function(v,J){if(J.T.info.video&&J.J){var G=(J.X+J.Z)/J.duration,K=J.T.info.ER;G&&K&&(v.BH.dP(1,G/K),v.policy.Z&&G/K>1.5&&v.Qb.uw("overshoot",{sq:J.yb,br:G,max:K}))}}; JL=function(v,J,G){W2(v.J,J,G===void 0?!1:G);v.N=-1;$_(v,v.T)}; fSr=function(v,J){return new H2(v.K,v.Z,J||v.T.reason)}; Obr=function(v){if(v.Z&&v.nextVideo&&Ga(v,v.Z.info)v.policy.zb,E=V<=v.policy.zb?Q9(K):Fy(K);if(!Y||r||E)G[V]=K}return G}; $_=function(v,J){v.T=J;var G=v.j.videoInfos;if(!v.T.isLocked()){var K=(0,g.yR)();G=g.E_(G,function(E){if(E.ER>this.policy.ER)return!1;var e=this.Jt.T[E.id];return Cy(this.J).get(E.id)>K?!1:e.v$.X>4||e.j>4?(this.logger.debug(function(){return"Remove "+oj(E)+"; 4 load failures"}),!1):this.Mr.has(+E.itag)?!1:!0},v); sZj(v.J)&&(G=g.E_(G,function(E){return E.video.width<=854&&E.video.height<=480}))}G.length||(G=v.j.videoInfos); var V=G;v.policy.Ha&&(V=urB(v,V,J));V=g.E_(V,J.L,J);if(v.T.isLocked()&&v.J.T){var Y=g.MS(G,function(E){return E.id===v.J.T}); Y?V=[Y]:bc(v.J,"")}v.policy.Ha||(V=urB(v,V,J));V.length||(V=[G[0]]);V.sort(function(E,e){return Ga(v,E)-Ga(v,e)}); J={};for(G=1;GJ.Yw.video.width?(g.bU(V,G),G--):Ga(v,J.wb)*v.policy.N>Ga(v,J.Yw)&&(g.bU(V,G-1),G--);var r=V[V.length-1];v.xB=!!v.Z&&!!v.Z.info&&v.Z.info.aY!==r.aY;v.logger.debug(function(){return"Constraint: "+eV(v.T)+", "+V.length+" fmts selectable, max selectable fmt: "+oj(r)}); v.L=V;v.Gi.clear();J=!1;for(G=0;G=1080&&(J=!0);gxf(v.policy,r,v.Jt.yn)}; urB=function(v,J,G){var K=G.reason==="m"||G.reason==="s";v.policy.Nc&&oM&&g.nP&&(!K||G.T<1080)&&(J=J.filter(function(P){return P.video&&(!P.X||P.X.powerEfficient)})); if(J.length>0)if(Ij()){var V=Zb2(v,J);J=J.filter(function(P){return!!P&&!!P.video&&P.aY===V[P.video.qualityOrdinal].aY})}else{var Y,r,E=(Y=J[0])==null?void 0:(r=Y.video)==null?void 0:r.qualityOrdinal; if(E){G=J.filter(function(P){return!!P&&!!P.video&&P.video.qualityOrdinal===E}); var e=Zb2(v,G)[E].aY;J=J.filter(function(P){return!!P&&!!P.video&&P.aY===e})}}return J}; Xw8=function(v,J){for(var G=0;G+1K}; jX=function(v){if(!v.X||!v.policy.L&&!v.X.info.hR){var J=v.j.T;v.X&&(J=J.filter(function(K){return K.audio.T===v.X.info.audio.T}),J.length||(J=v.j.T)); v.X=v.Jt.T[J[0].id];if(J.length>1){if(v.policy.RE){if(v.policy.cN&&v.K===null){var G=g.yn(J,function(K){return K.audio.audioQuality}); v.Qb.uw("aq",{hqa:v.policy.jl,qs:G.join("_")})}if(v.policy.jl)return;if(G=g.MS(J,function(K){return K.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}))v.X=v.Jt.T[G.id]}G=!1; if(G=v.policy.Vy?!0:v.T.isLocked()?v.T.T<240:Xw8(v,v.X))v.X=v.Jt.T[g.F8(J).id]}}}; v7=function(v){if(!v.nextVideo||!v.policy.L)if(v.T.isLocked())v.nextVideo=v.T.T<=360?v.Jt.T[v.L[0].id]:v.Jt.T[g.F8(v.L).id],v.logger.debug(function(){return"Select max fmt: "+oj(v.nextVideo.info)}); else{for(var J=Math.min(v.U,v.L.length-1),G=fz(v.dh),K=Ga(v,v.X.info),V=G/v.policy.oY-K;J>0&&!(Ga(v,v.L[J])<=V);J--);for(var Y=G/v.policy.N-K;J=Y);J++);v.nextVideo=v.Jt.T[v.L[J].id];v.U!==J&&v.logger.info(function(){return"Adapt to: "+oj(v.nextVideo.info)+", bandwidth: "+G.toFixed(0)+", bandwidth to downgrade: "+V.toFixed(0)+", bandwidth to upgrade: "+Y.toFixed(0)+", constraint: "+eV(v.T)}); v.U=J}}; T4s=function(v){var J=v.policy.oY,G=fz(v.dh),K=G/J-Ga(v,v.X.info);J=g.QY(v.L,function(V){return Ga(this,V)Y?V=0:K[r]>v.buffered[r]&&(r===Y-1?V=2:r===Y-2&&K[r+1]>v.buffered[r+1]&&(V=3))}v.T.add(J<<3|(G&&4)|V);J=Math.ceil(v.track.KF()*1E3);v.T.add(J-v.J);v.J=J;if(V===1)for(v.T.add(Y),r=J=0;r=2&&v.T.add(K[Y- 1]-v.buffered[Y-1]);G&&v.T.add(G);v.buffered=K}; Y_=function(v,J,G){var K=this;this.policy=v;this.T=J;this.Ze=G;this.L=this.X=0;this.dM=null;this.oY=new Set;this.N=[];this.indexRange=this.initRange=null;this.U=new Ct;this.Ti=this.dh=!1;this.cO={kV4:function(){return K.Z}, VOh:function(){return K.chunkSize}, xOt:function(){return K.K}, rNw:function(){return K.j}}; (J=AfU(this))?(this.chunkSize=J.csz,this.Z=Math.floor(J.clen/J.csz),this.K=J.ck,this.j=J.civ):(this.chunkSize=v.pw,this.Z=0,this.K=g.lN(16),this.j=g.lN(16));this.J=new Uint8Array(this.chunkSize);this.K&&this.j&&(this.crypto=new $Bw(this.K,this.j))}; AfU=function(v){if(v.policy.Jm&&v.policy.Lw)for(var J=g.n(v.policy.Jm),G=J.next(),K={};!G.done;K={Ph:void 0,AG:void 0},G=J.next())if(G=g.oS(G.value),K.Ph=+G.clen,K.AG=+G.csz,K.Ph>0&&K.AG>0&&v.policy.L===G.docid&&v.T.info.id===G.fmtid&&v.T.info.lastModified===+G.lmt)return v={},v.clen=K.Ph,v.csz=K.AG,v.ck=G.ck,v.civ=G.civ,v}; rO=function(v){return!!v.dM&&v.dM.fZ()}; M$F=function(v,J){if(!rO(v)&&!v.Sl()){if(!(v.dh||(v.dh=!0,v.Z>0))){var G=qZ(v);G=fS(v.policy.L,v.T.info,Ec(v),G,v.policy.Nr);eX(v,G)}if(J.info.type===1){if(v.dM){P7(v,Error("Woffle: Expect INIT slices to always start us off"));return}v.initRange=xx(0,J.T.getLength())}else if(J.info.type===2)v.dM&&v.dM.type===1||P7(v,Error("Woffle: Index before init")),v.indexRange=xx(v.initRange.end+1,J.T.getLength());else if(J.info.type===3){if(!v.dM){P7(v,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(v.dM.type===3&&!u8(v.dM,J.info)&&(v.N=[],J.info.yb!==g4(v.dM)||J.info.X!==0))return;if(J.info.J){G=g.n(v.N);for(var K=G.next();!K.done;K=G.next())Fut(v,K.value);v.N=[]}else{v.N.push(J);v.dM=J.info;return}}else{P7(v,Error("Woffle: Unexpected slice type"));return}v.dM=J.info;Fut(v,J);HbU(v)}}; Fut=function(v,J){var G=0,K=J.T.l1();if(v.L=K.length)return;if(G<0)throw Error("Missing data");v.L=v.Z;v.X=0}for(V={};G0){var r=K.getUint32(G+28);Y+=r*16+4}var E=K.getUint32(G+Y-4);try{var e=jBw(J.subarray(G+Y,G+Y+E));if(e!==null){var P=e;break a}}catch(D){}}G+=V}P=null;break a}catch(D){P=null;break a}P=void 0}if(P!=null)for(J=DG(M7(P,7)),J==null||v.M1||(v.cryptoPeriodIndex=J),J=DG(M7(P,10)),J!=null&&J>0&&!v.M1&&(v.T=J),P=vh(P, 2,eEL,void 0===t5L?2:4),P=g.n(P),J=P.next();!J.done;J=P.next())v.Z.push(g.hE(p8(J.value),4))}; $5w=function(v){return isNaN(v.cryptoPeriodIndex)?g.hE(v.initData):""+v.cryptoPeriodIndex}; B7=function(v,J,G){var K=G===void 0?{}:G;G=K.videoDuration===void 0?0:K.videoDuration;var V=K.Ch===void 0?void 0:K.Ch;K=K.nf===void 0?!1:K.nf;this.videoId=v;this.status=J;this.videoDuration=G;this.Ch=V;this.nf=K}; vIX=function(v,J,G,K,V){this.videoId=v;this.zz=J;this.X=G;this.bytesDownloaded=K;this.T=V}; IM=function(v){this.T=v;this.offset=0}; hL=function(v){if(v.offset>=v.T.getLength())throw Error();return v.T.getUint8(v.offset++)}; J1F=function(v,J){J=J===void 0?!1:J;var G=hL(v);if(G===1){J=-1;for(G=0;G<7;G++){var K=hL(v);J===-1&&K!==255&&(J=0);J>-1&&(J=J*256+K)}return J}K=128;for(var V=0;V<6&&K>G;V++)G=G*256+hL(v),K*=128;return J?G:G-K}; GPt=function(v){try{var J=J1F(v,!0),G=J1F(v,!1);return{id:J,size:G}}catch(K){return{id:-1,size:-1}}}; oIj=function(v){for(var J=new IM(v),G=-1,K=0,V=0;!K||!V;){var Y=GPt(J),r=Y.id;Y=Y.size;if(r<0)return;if(r===176){if(Y!==2)return;K=J.wW()}else if(r===186){if(Y!==2)return;V=J.wW()}r===374648427?G=J.wW()+Y:r!==408125543&&r!==174&&r!==224&&J.skip(Y)}J=lP(v,0,G);G=new DataView(J.buffer);G.setUint16(K,3840);G.setUint16(V,2160);K=new zp([J]);np(K,v);return K}; K_s=function(v,J,G){var K=this;this.Qb=v;this.policy=J;this.j=G;this.logger=new g.rZ("dash");this.X=[];this.T=null;this.dh=-1;this.N=0;this.Mr=NaN;this.oY=0;this.Z=NaN;this.U=this.YB=0;this.xB=-1;this.qr=this.J=this.L=this.Ze=null;this.BH=this.RY=NaN;this.K=this.Ti=this.Gi=this.WH=null;this.Nr=!1;this.jl=this.timestampOffset=0;this.cO={lx:function(){return K.X}}; if(this.policy.L){var V=this.j,Y=this.policy.L;this.policy.Nr&&v.uw("atv",{ap:this.policy.Nr});this.K=new Y_(this.policy,V,function(r,E,e){za(v,new B7(K.policy.L,2,{Ch:new vIX(Y,r,V.info,E,e)}))}); this.K.U.promise.then(function(r){K.K=null;r===1?za(v,new B7(K.policy.L,r)):K.Qb.uw("offlineerr",{status:r.toString()})},function(r){var E=(r.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); r instanceof DF&&!r.T?(K.logger.info(function(){return"Assertion failed: "+E}),K.Qb.uw("offlinenwerr",{em:E}),nJ(K),za(v,new B7(K.policy.L,4))):(K.logger.info(function(){return"Failed to write to disk: "+E}),K.Qb.uw("dldbwerr",{em:E}),nJ(K),za(v,new B7(K.policy.L,4,{nf:!0})))})}}; V2j=function(v){return v.X.length?v.X[0]:null}; Y4m=function(v,J){return v.X.some(function(G){return G.info.yb===J})}; t22=function(v,J,G,K){K=K===void 0?0:K;if(v.J){var V=v.J.X+v.J.Z;if(G.info.X>0)if(G.info.yb===v.J.yb&&G.info.X=0&&v.J.yb>=0&&!u8(v.J,G.info))throw new g.Mk("improper_continuation",v.J.vO(),G.info.vO());Q$s(v.J,G.info)||r1w(v,"d")}else if(G.info.X>0)throw new g.Mk("continuation_of_null",G.info.vO());v.J=G.info;v.j=G.info.T;if(G.info.X===0){if(v.T)if(!v.Qb.isOffline()||v.policy.Yv)v.Qb.uw("slice_not_fully_processed",{buffered:v.T.info.vO(), push:G.info.vO()});else throw new g.Mk("slice_not_fully_processed",v.T.info.vO(),G.info.vO());dO(v);v.YB=K}else{if(v.YB&&K&&v.YB!==K)throw v=new g.Mk("lmt_mismatch",G.info.yb,v.YB,K),v.level="WARNING",v;!G.info.T.A5()&&v.L&&(K=G.info,V=v.L.iz,K.K="updateWithEmsg",K.yb=V)}if(v.T){K=g.vZ(v.T,G);if(!K)throw new g.Mk("failed_to_merge",v.T.info.vO(),G.info.vO());v.T=K}else v.T=G;a:{G=g.bD(v.T.info.T.info);if(v.T.info.type!==3){if(!v.T.info.J)break a;v.T.info.type===6?q4w(v,J,v.T):EIm(v,v.T);v.T=null}for(;v.T;){K= v.T.T.getLength();if(v.dh<=0&&v.N===0){var Y=v.T.T,r=-1;V=-1;if(G){for(var E=0;E+80))break;if(t!==408125543)if(t===524531317)E=!0,D>=0&&(V=Y.wW()+D,e=!0);else{if(E&&(t===160||t===163)&&(r<0&&(r=P),e))break;t===163&&(r=Math.max(0,r),V=Y.wW()+D);if(t===160){r<0&&(V=r=Y.wW()+D);break}Y.skip(D)}}r<0&&(V=-1)}if(r< 0)break;v.dh=r;v.N=V-r}if(v.dh>K)break;v.dh?(K=eIf(v,v.dh),K.J&&PBU(v,K),q4w(v,J,K),D58(v,K),v.dh=0):v.N&&(K=eIf(v,v.N<0?Infinity:v.N),v.N-=K.T.getLength(),D58(v,K))}}v.T&&v.T.info.J&&(D58(v,v.T),v.T=null)}; EIm=function(v,J){!J.info.T.A5()&&J.info.X===0&&(g.bD(J.info.T.info)||J.info.T.info.M1())&&loB(J);if(J.info.type===1)try{PBU(v,J),BEX(v,J)}catch(V){g.fW(V);var G=Xr(J.info);G.hms="1";v.Qb.handleError("fmt.unparseable",G||{},1)}G=J.info.T;G.Ko(J);v.K&&M$F(v.K,J);if(G.U9()&&v.policy.T)a:{v=v.Qb.Jt;J=J.info.clipId;G=g.iS(G.info,v.yn);if(J){var K=cBL(v,G);if(v.jl[K])break a;v.jl[K]=J}v.qr.push(G)}}; kfm=function(v,J,G){if(v.X.length!==0&&(G||v.X.some(function(Y){return Y.info.L=RM(r)+E):J=v.getDuration()>=r.getDuration(),J=!J;J&&zIL(G)&&(J=v.Ze,sc?(E=sjU(G),r=1/E,E=RM(v,E),J=RM(J)+r-E):J=J.getDuration()- v.getDuration(),J=1+J/G.info.duration,Tfm(G.s1(),J))}else{r=!1;v.L||(loB(G),G.X&&(v.L=G.X,r=!0,Y=G.info,K=G.X.iz,Y.K="updateWithEmsg",Y.yb=K,Y=G.X,Y.fZ&&(K=v.j.index,K.X=!Y.fZ,K.Z="emsg"),Y=G.info.T.info,K=G.s1(),g.bD(Y)?vw(K,1701671783):Y.M1()&&qm([408125543],307544935,K)));a:if((Y=oB(G,v.policy.OR))&&RkF(G))E=nI8(v,G),v.U+=E,Y-=E,v.oY+=Y,v.Z=v.policy.Ct?v.Z+Y:NaN;else{if(v.policy.Wt){if(K=e=v.Qb.Pi(g.J1(G),1),v.Z>=0&&G.info.type!==6){if(v.policy.Ct&&isNaN(v.RY)){g.Zl(new g.Mk("Missing duration while processing previous chunk", G.info.vO()));v.Qb.isOffline()&&!v.policy.Yv||d5m(v,G,K);r1w(v,"m");break a}var P=e-v.Z,D=P-v.U,t=G.info.yb,B=v.qr?v.qr.yb:-1,I=v.BH,h=v.RY,R=v.policy.a8&&P>v.policy.a8,T=Math.abs(D)>10,L=Math.abs(v.Z-K)<1E-7;if(Math.abs(D)>1E-4){v.jl+=1;var O=(V=v.L)==null?void 0:FS(V);V={audio:""+ +v.Xj(),sq:t.toFixed(),sliceStart:e,lastSq:B.toFixed(),lastSliceStart:I,lastSliceDuration:h,totalDrift:(P*1E3).toFixed(),segDrift:(D*1E3).toFixed(),skipRewrite:""+ +(R||T)};if(O==null?0:O.length)V.adCpn=O[0];v.Qb.handleError("qoe.avsync", V);v.xB=t}R||T||L||(K=v.Z);V=nI8(v,G,e);Y-=V;v.U=P+V;v.policy.Z&&(D&&!L||V)&&(P=(E=v.L)==null?void 0:FS(E),v.Qb.uw("discontinuityRewrite",{adCpn:(P==null?0:P.length)?P.join("."):"",itag:G.info.T.info.itag,sq:G.info.yb,originalStartTime:e,rewrittenStartTime:K,startTimeAdjustment:K-e,segDrift:(D*1E3).toFixed(),originalDuration:Y+V,rewrittenDuration:Y,durationAdjustment:V}))}}else K=isNaN(v.Z)?G.info.startTime:v.Z;d5m(v,G,K)&&(v.oY+=Y,v.Z=K+Y,v.policy.QT&&v.jl>=v.policy.QT&&(v.jl=0,v.Qb.I3({resetForRewrites:"count"})))}v.qr= G.info;v.RY=GP(G);G.Z>=0&&(v.BH=G.Z);if(r&&v.L){r=sBj(v,!0);kx(G.info,r);v.T&&kx(v.T.info,r);J=g.n(J);for(E=J.next();!E.done;E=J.next())E=E.value,V=void 0,v.policy.j&&E.yb!==((V=v.L)==null?void 0:V.iz)||kx(E,r);(G.info.J||v.T&&v.T.info.J)&&G.info.type!==6||(v.Ti=r,v.policy.WH?(J=RIt(v.L),v.Qb.ib(v.j,r,J)):(J=v.Qb,J.Jt.isManifestless&&lTB(J,r,null,!!v.j.info.video)),v.policy.H8||TEs(v))}}BEX(v,G);v.timestampOffset&&nGU(G,v.timestampOffset)}; D58=function(v,J){if(J.info.J){v.WH=J.info;if(v.L){var G=v.L,K=sBj(v,!1);G=RIt(G);v.Qb.ib(v.j,K,G);v.Ti||v.policy.H8||TEs(v);v.Ti=null}dO(v)}v.K&&M$F(v.K,J);if(K=v.UV())if(K=g.vZ(K,J,v.policy.ZG,v.policy.rJ)){v.X.pop();v.X.push(K);return}v.X.push(J)}; RIt=function(v){if(v.rr()){var J=v.data["Stitched-Video-Id"]?v.data["Stitched-Video-Id"].split(",").slice(0,-1):[],G=FS(v),K=[];if(v.data["Stitched-Video-Duration-Us"])for(var V=g.n(v.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),Y=V.next();!Y.done;Y=V.next())K.push((Number(Y.value)||0)/1E6);V=[];if(v.data["Stitched-Video-Start-Frame-Index"]){Y=g.n(v.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var r=Y.next();!r.done;r=Y.next())V.push(Number(r.value)||0)}V=[]; if(v.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(Y=g.n(v.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),r=Y.next();!r.done;r=Y.next())V.push((Number(r.value)||0)/1E6);v=new bbF(J,G,K,V,g.d9f(v),g.s$s(v))}else v=null;return v}; dO=function(v){v.T=null;v.dh=-1;v.N=0;v.L=null;v.Mr=NaN;v.oY=0;v.Ti=null}; r1w=function(v,J){J={rst4disc:J,cd:v.U.toFixed(3),sq:v.qr?v.qr.yb:-1};v.Z=NaN;v.U=0;v.xB=-1;v.qr=null;v.BH=NaN;v.RY=NaN;v.Gi=null;v.Qb.uw("mdstm",J)}; BEX=function(v,J){if(v.j.info.k5){if(J.info.T.info.M1()){var G=new Gn(J.s1());if(Kb(G,[408125543,374648427,174,28032,25152,20533,18402])){var K=r4(G,!0);G=K!==16?null:DS(G,K)}else G=null;K="webm"}else J.info.N=WuF(J.s1()),G=C8X(J.info.N),K="cenc";G&&G.length&&(G=new tL(G,K),v.policy.XI&&g.bD(J.info.T.info)&&(K=U9U(J.s1()))&&(G.X=K),G.M1=J.info.T.info.M1(),J.X&&J.X.cryptoPeriodIndex&&(G.cryptoPeriodIndex=J.X.cryptoPeriodIndex),J.X&&J.X.X&&(G.T=J.X.X),v.Qb.fW(G))}}; TEs=function(v){var J=v.L,G=z2t(J);G&&(G.startSecs+=v.Mr,v.Qb.B2(v.j,G,J.iz,J.rr()))}; sBj=function(v,J){var G,K=v.L;if(G=z2t(K))G.startSecs+=v.Mr;return new xV(K.iz,v.Mr,J?K.eF:v.oY,K.ingestionTime,"sq/"+K.iz,void 0,void 0,J,G)}; d5m=function(v,J,G){if(!zk8(J,G))return J=Xr(J.info),J.smst="1",v.Qb.handleError("fmt.unparseable",J||{},1),!1;isNaN(v.Mr)&&(v.Mr=G);return!0}; nI8=function(v,J,G){var K=0;if(J.info.T.info.M1()&&!RkF(J))return 0;if(v.Ze&&!v.Xj()){var V=0;G&&g.bD(J.info.T.info)?V=G-v.Z:J.info.T.info.M1()&&(V=v.U);var Y=J.info.yb;G=oB(J,v.policy.OR);var r=v.Ze;var E=r.xB;r=r.U;var e=Math.abs(r-V)>.02;if((Y===E||Y>E&&Y>v.xB)&&e){K=Math.max(.95,Math.min(1.05,(G-(r-V))/G));if(g.bD(J.info.T.info))Tfm(J.s1(),K);else if(J.info.T.info.M1()&&(Y=V-r,!g.bD(J.info.T.info)&&(J.info.T.info.M1(),K=new Gn(J.s1()),E=J.J?K:new Gn(new DataView(J.info.T.T.buffer)),oB(J,!0)))){var P= Y*1E3,D=Bw(E);E=K.pos;K.pos=0;if(K.T.getUint8(K.pos)===160||IZ(K))if(Yx(K,160))if(r4(K,!0),Yx(K,155)){if(Y=K.pos,e=r4(K,!0),K.pos=Y,P=P*1E9/D,D=EH(K),P=D+Math.max(-D*.7,Math.min(D,P)),P=Math.sign(P)*Math.floor(Math.abs(P)),!(Math.ceil(Math.log(P)/Math.log(2)/8)>e)){K.pos=Y+1;for(Y=e-1;Y>=0;Y--)K.T.setUint8(K.pos+Y,P&255),P>>>=8;K.pos=E}}else K.pos=E;else K.pos=E;else K.pos=E}K=oB(J,v.policy.OR);K=G-K}K&&J.info.T.info.M1()&&v.Qb.uw("webmDurationAdjustment",{durationAdjustment:K,videoDrift:V+K,audioDrift:r})}return K}; zIL=function(v){return v.info.T.A5()&&v.info.yb===v.info.T.index.wd()}; RM=function(v,J){J=(J=J===void 0?0:J)?Math.round(v.timestampOffset*J)/J:v.timestampOffset;v.j.L&&J&&(J+=v.j.L.T);return J+v.getDuration()}; pZm=function(v,J){J<0||(v.X.forEach(function(G){nGU(G,J)}),v.timestampOffset=J)}; cd=function(v,J,G,K,V){oq.call(this,G,V);var Y=this;this.policy=v;this.formatId=J;this.gM=K;this.lastError=null;this.V9=function(){Y.Sl()||(Y.gM.IH.has(Y.formatId)?(Y.isComplete()||Y.T.start(),SU(Y.gM,Y.formatId)&&Y.Ur(2),Y.gM.v8(Y.formatId)&&(WLw(Y.gM,Y.formatId)?Y.l9(4):(Y.lastError="net.closed",Y.l9(5)))):(Y.lastError="player.exception",Y.l9(5)))}; this.T=new g.Qq(function(){Y.isComplete()||(Y.lastError="net.timeout",Y.l9(5))},1E3); this.T.start();HHX(this.gM,this.formatId,this.V9);g.dQ(this.V9)}; la=function(v,J,G,K){g.X.call(this);var V=this;this.Qb=v;this.policy=J;this.T=G;this.timing=K;this.logger=new g.rZ("dash");this.Z=[];this.Ze=[];this.X=this.JR=null;this.YB=!1;this.jl=this.Gi=0;this.j=-1;this.dh=!1;this.Mr=-1;this.qr=null;this.Ti=NaN;this.oY=[];this.cO={As:function(){return V.L}, Jni:function(){return V.Z}, WZU:function(){return V.K}}; this.L=new K_s(v,J,G);this.policy.T&&(this.K=new uk(this.L,this.Qb.getManifest(),this.policy,function(Y){V.policy.o6&&V.uw("buftl",Y)})); this.policy.R$&&(this.N=new KJ(this));this.ER=G.info.ER;this.U=this.policy.Ti?!1:G.Ts();this.isManifestless=G.Ts();this.J=this.U;g.k(this,this.qr)}; Ta=function(v,J,G){G=G===void 0?!1:G;J&&sc&&pZm(v.L,J.q6());if(!G){var K;(K=v.K)==null||ZnL(K)}v.JR=J;(J=v.K)!=null&&(J.JR=v.JR)}; pJ=function(v){var J=v.JR&&v.JR.x7();if(v.policy.OA){if((v=v.K)==null)v=void 0;else{var G;v=(G=v.Z)==null?void 0:G.info}return v||null}return J}; L_L=function(v){for(var J={},G=0;G4&&v.Ze.shift()}; O0w=function(v,J){if(J.vV()){var G=J.qZ();G=g.n(G);for(var K=G.next();!K.done;K=G.next())K=K.value,v.policy.Z&&J instanceof cd&&v.uw("omblss",{s:K.info.vO()}),wZm(v,J.info.Vb,K,J.Lo())}}; wZm=function(v,J,G,K){K=K===void 0?0:K;isNaN(v.Ti)||(v.uw("aswm",{sq:J[0].yb,id:J[0].T.info.itag,xtag:J[0].T.info.T,ep:Date.now()-v.Ti}),v.Ti=NaN);switch(G.info.type){case 1:case 2:U5F(v,G);break;case 4:var V=G.info.T,Y=V.Bm(G),r;((r=v.X)==null?0:r.type===4)&&vG8(G.info,v.X)&&(v.X=V.ME(v.X).pop());G=g.n(Y);for(V=G.next();!V.done;V=G.next())wZm(v,J,V.value,K);break;case 3:G.info.T.info.video?(V=v.timing,V.Ze||(V.Ze=(0,g.yR)(),pB("fvb_r",V.Ze,V.T))):(V=v.timing,V.j||(V.j=(0,g.yR)(),pB("fab_r",V.j,V.T))); t22(v.L,J,G,K);v.policy.T&&x5w(v);break;case 6:t22(v.L,J,G,K),v.X=G.info}}; U5F=function(v,J){if(J.info.type===1)if(J.info.T.info.video){var G=v.timing;G.qr||(G.qr=(0,g.yR)(),pB("vis_r",G.qr,G.T))}else G=v.timing,G.U||(G.U=(0,g.yR)(),pB("ais_r",G.U,G.T));EIm(v.L,J);v=v.Qb;v.videoTrack.T.U9()&&v.audioTrack.T.U9()&&v.policy.T&&!v.Jt.yn&&(J=v.audioTrack.getDuration(),G=v.videoTrack.getDuration(),Math.abs(J-G)>1&&v.uw("trBug",{af:""+g.iS(v.audioTrack.T.info,!1),vf:""+g.iS(v.videoTrack.T.info,!1),a:""+J,v:""+G}))}; Cz=function(v){return V2j(v.L)}; x5w=function(v){v.Z.length?v.X=g.F8(g.F8(v.Z).info.Vb):v.L.X.length?v.X=v.L.UV().info:v.X=pJ(v)}; m5B=function(v,J){var G={f0:[],s2:[]},K;if((v=v.K)==null)v=void 0;else{f1U(v,v.f0,"og");xbB(v,J);f1U(v,v.f0,"trim");var V=Suj(v);J=V.f0;V=V.Z8;for(var Y=[],r=0;r0){var B=YG(t,e);B>=0&&(D=(t.end(B)-e+.1)*1E3)}Y.push({formatId:g.iS(E.info.T.info,v.Jt.yn), cC:E.info.cC,sequenceNumber:E.info.yb+v.L,jh:P,yw:E.info.Z,XH:D})}v={f0:J,s2:Y}}return(K=v)!=null?K:G}; Ar=function(v,J,G){G=G===void 0?!1:G;if(v.JR){var K=v.JR.h7(),V=qG(K,J),Y=NaN,r=pJ(v);r&&(Y=qG(K,r.T.index.getStartTime(r.yb)));if(V===Y&&v.X&&v.X.Z&&S4m(fTf(v),0))return J}v=Z0m(v,J,G);return v>=0?v:NaN}; Hd=function(v,J,G){v.T.U9();var K=Z0m(v,J);if(K>=0)return K;var V;(V=v.K)==null||mbt(V,J,G);G=Math;K=G.min;V=v.L;if(V.K)if(V=V.K,V.dM&&V.dM.type===3)V=V.dM.startTime;else if(V.Z>0){var Y=V.T.index;Y=g.YY(Y.offsets.subarray(0,Y.count),V.Z*V.chunkSize);V=V.T.index.getStartTime(Y>=0?Y:Math.max(0,-Y-2))}else V=0;else V=Infinity;J=K.call(G,J,V);if(v.policy.X){var r,E;G=(r=v.Qb.bQ())==null?void 0:(E=XI(r,J))==null?void 0:E.clipId;v.X=v.T.Zk(J,void 0,G).Vb[0]}else v.X=v.policy.Ti?null:v.T.Zk(J).Vb[0];LJ(v)&& (v.JR&&v.JR.abort(),v.policy.DW&&(r=v.K)!=null&&(r.Z=void 0));v.jl=0;return v.X?v.X.startTime:J}; gzt=function(v){v.U=!0;v.J=!0;v.j=-1;Hd(v,Infinity)}; yi=function(v){for(var J=0,G=g.n(v.Z),K=G.next();!K.done;K=G.next())J+=Gz2(K.value.info);return J+=ITf(v.L)}; Oc=function(v,J){J=J===void 0?!1:J;var G=v.Qb.getCurrentTime(),K=v.L.UV(),V=(K==null?void 0:K.info.j)||0;v.policy.PE&&(K==null?0:K.info.T.Ts())&&!K.info.J&&(V=K.info.L);if(v.policy.X&&K&&K.info.clipId){var Y,r=(((Y=v.Qb.bQ())==null?void 0:gm(Y,K.info.clipId))||0)/1E3;V+=r}if(!v.JR)return v.policy.T&&J&&!isNaN(G)&&K?V-G:0;if((Y=pJ(v))&&wO(v,Y))return Y.j;r=v.JR.h7(!0);if(J&&K)return Y=0,v.policy.T&&(Y=el(r,V+.02)),Y+V-G;V=el(r,G);v.policy.aB&&Y&&(J=YG(r,G),r=YG(r,Y.L-.02),J===r&&(G=Y.j-G,v.policy.Z&& G>V+.02&&v.uw("abh",{bh:V,bhtls:G}),V=Math.max(V,G)));return V}; uiB=function(v){var J=pJ(v);return J?J.j-v.Qb.getCurrentTime():0}; gIs=function(v,J){if(v.Z.length){if(v.Z[0].info.Vb[0].startTime<=J)return;aT(v)}for(var G=v.L,K=G.X.length-1;K>=0;K--)G.X[K].info.startTime>J&&G.X.pop();x5w(v);v.X&&J=0;r--){var E=V.X[r];E.info.yb>=J&&(V.X.pop(),V.Z-=oB(E,V.policy.OR),Y=E.info)}Y&&(V.J=V.X.length>0?V.X[V.X.length-1].info:V.Gi,V.X.length!==0||V.J||r1w(V,"r"));V.Qb.uw("mdstm",{rollbk:1,itag:Y?Y.T.info.itag:"",popped:Y?Y.yb:-1,sq:J,lastslc:V.J?V.J.yb:-1,lastfraget:V.Z.toFixed(3)});if(v.policy.T)return v.X=null,!0;K>G?Hd(v,K):v.X=v.T.CH(J-1,!1).Vb[0]}catch(e){return J=wf(e),J.details.reason="rollbkerr", v.Qb.handleError(J.errorCode,J.details,J.severity),!1}return!0}; x_=function(v,J){var G;for(G=0;G0?G||J.yb>=v.Mr:G}; SX=function(v){var J;return LJ(v)||wO(v,(J=v.L.UV())==null?void 0:J.info)}; fTf=function(v){var J=[],G=pJ(v);G&&J.push(G);J=g.$Y(J,v.L.mY());G=g.n(v.Z);for(var K=G.next();!K.done;K=G.next()){K=K.value;for(var V=g.n(K.info.Vb),Y=V.next(),r={};!Y.done;r={ly:void 0},Y=V.next())r.ly=Y.value,K.Bg&&(J=g.E_(J,function(E){return function(e){return!vG8(e,E.ly)}}(r))),(ZS(r.ly)||r.ly.type===4)&&J.push(r.ly)}v.X&&!H6f(v.X,g.F8(J),v.X.T.A5())&&J.push(v.X); return J}; S4m=function(v,J){if(!v.length)return!1;for(J+=1;J=J){J=Y;break a}}J=V}return J<0?NaN:S4m(v,G?J:0)?v[J].startTime:NaN}; fJ=function(v){return!(!v.X||v.X.T===v.T)}; kPw=function(v){return fJ(v)&&v.T.U9()&&v.X.T.info.ERJ&&K.j1080&&!v.tB&&(v.Gi=36700160,v.wh=5242880,v.RY=Math.max(4194304,v.RY),v.tB=!0);J.video.qualityOrdinal>2160&&!v.bU&&(v.Gi=104857600,v.ER=13107200,v.bU=!0);g.DI(v.gh.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?J.isEncrypted()&&g.FX()&&g.aS("samsung")&&(g.aS("kant")||g.aS("muse"))&&(v.ER=g.DI(v.gh.experiments,"html5_samsung_kant_limit_max_bitrate")):J.isEncrypted()&&g.FX()&&g.aS("kant")&&(v.ER=1310720);v.fF!==0&&J.isEncrypted()&& (v.ER=v.fF);v.w8!==0&&J.isEncrypted()&&G&&(v.ER=v.w8);J.ER&&(v.jM=Math.max(v.JV,Math.min(v.RY,5*J.ER)))}; XU=function(v){return v.T&&v.b1&&v.playbackStartPolicy}; k_=function(v){return v.X||v.T&&v.G4}; GWX=function(v,J,G,K){v.b1&&(v.playbackStartPolicy=J,v.nw=G,v.v9=K)}; gO=function(v,J,G){G=G===void 0?0:G;return g.DI(v.gh.experiments,J)||G}; o$8=function(v){var J=v===void 0?{}:v;v=J.BC;var G=J.KZ;var K=J.BG;var V=J.wd;J=J.NC;this.BC=v;this.KZ=G;this.BG=K;this.wd=V;this.NC=J}; C1F=function(v,J){if(J<0)return!0;var G=v.wd();return J0)return 2;if(J<0)return 1;G=v.wd();return J(0,g.yR)()?0:1}; NZ=function(v,J,G,K,V,Y,r,E,e,P,D,t,B,I){I=I===void 0?null:I;g.X.call(this);var h=this;this.Qb=v;this.policy=J;this.videoTrack=G;this.audioTrack=K;this.L=V;this.T=Y;this.timing=r;this.J=E;this.schedule=e;this.Jt=P;this.Z=D;this.oY=t;this.Fo=B;this.lz=I;this.Ti=!1;this.GY="";this.gW=null;this.zl=NaN;this.dh=!1;this.X=null;this.wK=this.N=NaN;this.uX=this.j=0;this.logger=new g.rZ("dash");this.cO={pu:function(R,T){return h.pu(R,T)}}; this.policy.oG>0&&(this.GY=g.lN(this.policy.oG));this.policy.DL&&(this.U=new c7(this.Qb,this.policy,this.schedule),g.k(this,this.U))}; eF8=function(v,J,G){var K=J.X?J.X.T.v$:J.T.v$;var V=v.L,Y;(Y=!v.policy.je)||(Y=LH(K.T)===LH(K.Z));Y?K=!1:(V=sH(V,LH(K.Z)),Y=6E4*Math.pow(V.L,1.6),(0,g.yR)()=V.L?(V.uw("sdai",{haltrq:Y+1,est:V.L}),K=!1):K=V.X!==2;if(!K||!Lb(J.X?J.X.T.v$:J.T.v$,v.policy,v.L,v.Qb.XY())||v.Qb.isSuspended&&(!lh(v.schedule)||v.Qb.cY))return!1;if(v.policy.L&&Sv>=5)return g.Wq(v.Qb.q8),!1;if(v.Jt.isManifestless){if(J.Z.length>0&&J.X&&J.X.yb===-1||J.Z.length>=v.policy.T_||!v.policy.gq&&J.Z.length>0&&!v.policy.U.KZ)return!1;if(J.U)return!v.Jt.isLive||!isNaN(v.zl)}if(F_8(J))return v.logger.debug("Pending request with server-selectable format found"), !1;if(!J.X){if(!J.T.U9())return!1;Hd(J,v.Qb.getCurrentTime())}if(Cz(J)&&(J.UV()!==Cz(J)||v.Qb.isSuspended))return!1;V=(K=v.policy.y8)&&!J.Z.length&&Oc(J,!0)=v.policy.PL)return!1;K=J.X;if(!K)return!0;K.type===4&&K.T.U9()&&(J.X=g.F8(K.T.ME(K)),K=J.X);if(!K.fZ()&&!K.T.Ji(K))return!1;Y=v.Jt.mU||v.Jt.L;if(v.Jt.isManifestless&&Y){Y=J.T.index.wd();var r=G.T.index.wd(); Y=Math.min(Y,r);if(J.T.index.Up()>0&&Y>0&&K.yb>=Y)return J.Mr=Y,G.Mr=Y,!1}if(K.T.info.audio&&K.type===4||K.fZ())return!1;Y=!J.J&&!G.J;if(V=!V)V=K.j,V=!!(G.X&&!wO(G,G.X)&&G.X.jPhB(v,J)?(PhB(v,J),!1):(v=J.JR)&&v.isLocked()?!1:!0}; PhB=function(v,J){var G=v.T;G=G.T?G.T.Pv:null;if(v.policy.Ze&&G)return G.startSecs+G.ON+15;J=FI(v.Qb,J);v.policy.g_>0&&(G=((0,g.yR)()-v.Qb.hw)/1E3,J=Math.min(J,v.policy.g_+v.policy.tF*G));G=v.Qb.getCurrentTime()+J;return v.policy.AB&&(J=DXs(v.Qb)+v.policy.AB,J=0||J.v$.Vv("defrag")==="1"||J.v$.Vv("otf")==="1"){J=null;break a}V=xx(0,4096)}V=new cw([new S$(5,K.T,V,"createProbeRequestInfo"+K.K,K.yb)],J.X);V.Mm=G;V.T=J.T;J=V}J&&E$t(v,J)}}; E$t=function(v,J){v.Qb.XE(J);var G=Gz2(J),K=v.Qb.fT();G={qX:v.schedule,Zx:G,Qc:Ttw(v.J,G),fd:fb(J.Vb[0]),q0:ya(J.v$.T),pT:v.policy.Z,Xe:function(r,E){v.Qb.zY(r,E)}}; if(v.schedule.X.j){var V,Y;G.pD=(((V=v.videoTrack.T)==null?void 0:V.info.ER)||0)+(((Y=v.audioTrack.T)==null?void 0:Y.info.ER)||0)}v.gW&&(G.yb=J.Vb[0].yb,G.zl=J.zl,G.gW=v.gW);K={JB:oGm(J,v.Qb.getCurrentTime()),S7:v.policy.E9&&aZ(J)&&J.Vb[0].T.info.video?cfm(v.Z):void 0,Yd:v.policy.Ze,poToken:v.Qb.Md(),ZE:v.Qb.mu(),GY:v.GY,wK:isNaN(v.wK)?null:v.wK,lz:v.lz,Fo:v.Fo,uX:v.uX,N8:K};return new NI(v.policy,J,G,v.L,function(r,E){try{a:{var e=r.info.Vb[0].T,P=e.info.video?v.videoTrack:v.audioTrack;if(!(r.state>= 2)||r.isComplete()||r.pz()||!(!v.Qb.K7||v.Qb.isSuspended||Oc(P)>3)){var D=Yfw(r,v.policy,v.L);D===1&&(v.dh=!0);tNB(v,r,D);if(r.isComplete()||r.Sl()&&E<3){if(v.policy.Z){var t=r.timing.w2();t.rst=r.state;t.strm=r.xhr.Fe();t.cncl=r.xhr&&r.CK.L?1:0;v.Qb.uw("rqs",t)}r.eb&&v.Qb.uw("sbwe3",{},!0)}if(!v.Sl()&&r.state>=2){Dmm(v.timing,r,e);var B=v.Qb;v.wK&&r.xD&&B&&(v.wK=NaN,v.Qb.gi(r.xD),v.Qb.l5(),v.Qb.uw("cabrUtcSeek",{mediaTimeSeconds:r.xD}));r.YI&&v.wK&&r.YI&&!r.YI.action&&(v.Qb.U0(v.wK),v.wK=NaN,v.Qb.uw("cabrUtcSeekFallback", {targetUtcTimeSeconds:v.wK}));r.FS&&v.Qb.Ex(r.FS);v.policy.qj&&(v.uX=r.uX);if(r.state===3){x_(P,r);aZ(r.info)&&aM(v,P,e,!0);if(v.X){var I=r.info.q2();I&&v.X.Vt(r.info.Vb[0].yb,e.info.id,I)}v.Qb.J7()}else if(r.isComplete()&&r.info.Vb[0].type===5){if(r.state!==4)r.Xa()&&v.Qb.handleError(r.t3(),r.Jw());else{var h=(r.info.Vb[0].T.info.video?v.videoTrack:v.audioTrack).Z[0]||null;h&&h instanceof NI&&h.pz()&&h.KB()}r.dispose()}else{r.Xa()||BUw(v,r);var R;((R=r.v_)==null?0:R.itagDenylist)&&v.Qb.IQ(r.v_.itagDenylist); if(r.state===4)IRr(v,r),v.T&&hzB(v.T,r.info,v.X);else if(v.policy.zc&&r.vV()&&!r.isComplete()&&!IRr(v,r)&&!r.Xa())break a;r.Xa()&&(hFB(v,r),isNaN(v.wK)||(v.Qb.U0(v.wK),v.wK=NaN));v.policy.a$&&!r.isComplete()?zFw(v.Qb):v.Qb.J7();var T=rMr(r,v.policy,v.L);tNB(v,r,T)}}}}}catch(L){E=v.Ti?1:0,v.Ti=!0,r=y9(E),E=wf(L,E),v.Qb.handleError(E.errorCode,E.details,E.severity),r||v.Qb.fJ()}},K)}; BUw=function(v,J){if(J.Vh&&J.state>=2&&J.state!==3){var G=J.xhr.getResponseHeader("X-Response-Itag");if(G){v.logger.debug(function(){return"Applying streamer-selected format "+G}); var K=knw(v.Z,G),V=J.info.Z;V&&(V-=K.cg(),K.Z=!0,J.info.Vb[0].T.Z=!1,aPw(J,K.HJ(V)),AL(v.Qb,v.videoTrack,K),H0w(v.videoTrack,K),v.Qb.Eb(K.info.video.quality),(V=J.Lo())&&K.info.lastModified&&K.info.lastModified!==+V&&x_(v.videoTrack,J))}else J.Vh=!1}}; hFB=function(v,J){var G=J.info.Vb[0].T,K=J.t3();if(ya(G.v$.T)){var V=g.z6(J.qL(),3);v.Qb.uw("dldbrerr",{em:V||"none"})}V=J.info.Vb[0].yb;var Y=Ay(v.T,J.info.Vb[0].L,V);K==="net.badstatus"&&(v.j+=1);if(J.canRetry()&&n$t(v.Qb)){if(!(J.info.v$.X>=v.policy.TF&&v.X&&J.info.isDecorated()&&K==="net.badstatus"&&v.X.Xl(Y,V))){V=(G.info.video&&G.v$.X>1||J.PG===410||J.PG===500||J.PG===503)&&!(Cy(v.Z.J).size>0)&&!ya(G.v$.T);Y=J.Jw();var r=G.info.video?v.videoTrack:v.audioTrack;V&&(Y.stun="1");v.Qb.handleError(K, Y);v.Sl()||(V&&(v.logger.debug(function(){return"Stunning format "+G.info.id}),JL(v.Z,G)),x_(r,J),v.Qb.J7())}}else r=1,v.X&&J.info.isDecorated()&&K==="net.badstatus"&&v.X.Xl(Y,V)&&(r=0),v.Jt.isLive&&J.t3()==="net.badstatus"&&v.j<=v.policy.dG*2?(oNL(v.Jt),v.Jt.mU||v.Jt.isPremiere?Wd(v.Qb,0,{nK:"badStatusWorkaround"}):v.Jt.L?Wd(v.Qb,v.Jt.YB,{nK:"badStatusWorkaround", Pi:!0}):FU(v.Qb)):v.Qb.handleError(K,J.Jw(),r)}; IRr=function(v,J){if(v.policy.useUmp&&J.Sl())return!1;try{var G=J.info.Vb[0].T,K=G.info.video?v.videoTrack:v.audioTrack;if(v.Jt.isManifestless&&K){v.j=0;K.U&&(J.Sl(),J.isComplete()||J.vV(),K.U=!1);J.WW()&&v.Qb.aj.dP(1,J.WW());var V=J.Up(),Y=J.Rb();L0(v.Jt,V,Y)}if(J.info.fd()&&!Nm(J.info))for(var r=g.n(J.qZ()),E=r.next();!E.done;E=r.next())U5F(K,E.value);for(v.Qb.getCurrentTime();K.Z.length&&K.Z[0].state===4;){var e=K.Z.shift();O0w(K,e);K.Gi=e.CA()}K.Z.length&&O0w(K,K.Z[0]);var P=!!Cz(K);P&&J instanceof cd&&(G.info.Xj()?V$B(v.timing):KuB(v.timing));return P}catch(D){J=J.Jw();J.origin="hrhs";a:{v=v.Qb;G=D;if(G instanceof Error){J.msg||(J.msg=""+G.message);J.name||(J.name=""+G.name);if(G instanceof g.Mk&&G.args)for(K=g.n(Object.entries(G.args)),V=K.next();!V.done;V=K.next())Y=g.n(V.value),V=Y.next().value,Y=Y.next().value,J["arg"+V]=""+Y;g.Zl(G);if(G.level==="WARNING"){v.HH.I3(J);break a}}v.handleError("fmt.unplayable",J,1)}return!1}}; dXt=function(v){var J=v.videoTrack.T.index;v.gW=new o$8({BC:v.policy.BC,KZ:v.policy.U.KZ,BG:J.N7(),wd:function(){return J.wd()}, NC:function(){return J.NC()}})}; aM=function(v,J,G,K){var V=v.policy.qc?v.Qb.XY():0;G.U9()||G.d9()||G.Z||!Lb(G.v$,v.policy,v.L,V)||G.info.aY==="f"||v.policy.T||(K?(K=v.J,V=G.info,K=pxL(K,V.video?K.policy.iN:K.policy.BV,V.ER)):K=0,K=G.HJ(K),v=E$t(v,K),Nm(K)&&y12(J,v),G.Z=!0)}; H7=function(v,J,G,K,V,Y,r,E){g.X.call(this);var e=this;this.Qb=v;this.oA=J;this.videoTrack=G;this.audioTrack=K;this.Jt=V;this.N=Y;this.isAudioOnly=r;this.j=E;this.X=AW;this.dh=!1;this.logger=new g.rZ("sabr");this.U=this.Ti=this.oY=!1;this.videoInfos=this.K=this.N.videoInfos;this.Z=this.Ze=this.N.T;this.T=new QH(J,Y,function(P,D){e.Qb.uw(P,D)}); this.oA.Iw||sC2(this);this.isAudioOnly&&RFt(this,this.Jt.T["0"])}; lRm=function(v,J){var G=[];J=g.n(J);for(var K=J.next();!K.done;K=J.next())G.push(g.iS(K.value,v.Jt.yn));return G}; RFt=function(v,J,G){J!==v.L&&(v.L&&(v.dh=!0),v.L=J,v.zK(J,v.videoTrack,G))}; yMU=function(v,J){v.logger.debug("setConstraint: "+eV(J));k_(v.oA)&&(v.Ti=J.reason==="m"||J.reason==="l"?!0:!1);J.reason==="m"?J.isLocked()&&TU8(v,J.T):pLB(v,J)?LHw(v,J.X,J.T):v.videoInfos=v.K;v.X=J}; pLB=function(v,J){return v.oA.FI&&J.reason==="b"||v.oA.N9&&J.reason==="l"||v.oA.Cw?!1:v.oA.p4?!0:J.reason==="l"||J.reason==="b"||J.reason==="o"}; wL8=function(v,J){return J.isLocked()&&v.T.X||v.X===void 0?!1:J.Rt(v.X)}; OYB=function(v,J){var G,K=(G=v.L)==null?void 0:G.info.video.qualityOrdinal;return v.dh?!0:v.L?J!==K?!0:!v.T.X||v.oA.ZO&&v.T.T===v.L.info.itag?!1:!0:!1}; TU8=function(v,J){var G=v.T.T;if(G){v.videoInfos=v.K;var K=g.MS(v.videoInfos,function(V){return V.id===G}); K&&K.video.qualityOrdinal===J?v.videoInfos=[K]:(K=v.videoInfos.map(function(V){return V.id}),v.Qb.uw("sabrpf",{pfid:""+G, vfids:""+K.join(".")}),LHw(v,J,J),bc(v.T,""))}else LHw(v,J,J)}; LHw=function(v,J,G){v.videoInfos=v.K;v.videoInfos=g.E_(v.videoInfos,function(K){return K.video.qualityOrdinal>=J&&K.video.qualityOrdinal<=G})}; sC2=function(v){var J=Rzm(v.T,v.j);J&&(v.Z=[J])}; UXF=function(v,J,G){if(v.oA.Iw){if(v.j){var K=g.E_(v.Z,function(V){return V.id===v.j}); return MZ(K,G).includes(J)}K=g.E_(v.Z,function(V){var Y;return!((Y=V.hR)==null||!Y.isDefault)}); if(K.length>0)return MZ(K,G).includes(J)}return MZ(v.Z,G).includes(J)}; MZ=function(v,J){return v.map(function(G){return y$(g.iS(G,J))})}; xXm=function(v){var J;if((J=v.X)==null?0:J.isLocked())return v.videoInfos;var G=Cy(v.T);J=g.E_(v.videoInfos,function(K){return K.ER>v.oA.ER?!1:!G.has(K.id)}); sZj(v.T)&&(J=g.E_(J,function(K){return K.video.width<=854&&K.video.height<=480})); return J}; fRs=function(v,J,G,K){var V=v.Jt,Y=v.HH.getVideoData(),r=g.WG(Y),E=v.uV,e=Rq({gh:Y.B(),HH:v.HH,TL:v.TL,oA:v.oA,hw:v.hw,EU:v.EU,Cx:v.Cx,lH:v.lH,sF:v.sF,isPrefetch:v.isPrefetch,jc:v.jc,sabrLicenseConstraint:Y.sabrLicenseConstraint,RU:v.RU,Kx:v.Kx,iZ:v.iZ,Py:v.Py,Nhe:!!E,DO:Y.DO}),P=lc(Y,v.N8,v.nextRequestPolicy,v.Nm,v.Kh,v.xL7,v.YO);K&&G&&(K=P.Gq?P.Gq.map(function(R){return R.type}):[],G("sabr",{stmctxt:K.join("_"), unsntctxt:P.H4?P.H4.join("_"):""}));K=v.HM;var D=v.T0;if(D===void 0&&K===void 0){var t;D=mXX(V.yn,(t=v.hW)==null?void 0:t.video);var B;K=mXX(V.yn,(B=v.hW)==null?void 0:B.audio)}if(Y.lz)var I=Y.lz;Y={TV:e,s2:v.s2,HM:K,T0:D,uV:E,videoPlaybackUstreamerConfig:I,aq:P};v.yI&&(Y.yI=v.yI);if(r&&J){r=new Map;var h=g.n(V.qr);for(E=h.next();!E.done;E=h.next())E=E.value,(e=V.jl[cBL(V,E)]||"")?(r.has(e)||r.set(e,[]),r.get(e).push(E)):G&&G("ssap",{nocid4fmt:(E.itag||"")+"_"+(E.lmt||0)+"_"+(E.xtags||"")});V=new Map; h=g.n(v.f0);for(E=h.next();!E.done;E=h.next())E=E.value,e=E.startTimeMs||0,P=void 0,t=(P=J)==null?void 0:XI(P,e),P=t.clipId,t=t.Z7,P?(V.has(P)||(B=r.get(P)||[],V.set(P,{clipId:P,f0:[],Mo:B})),t!==0&&(E.startTimeMs=e-t),V.get(P).f0.push(E)):G&&(P=void 0,G("ssap",{nocid4range:"1",fmt:((P=E.formatId)==null?void 0:P.itag)||"",st:e.toFixed(3),d:(E.durationMs||0).toFixed(3),timeline:Qi(J)}));Y.L5=[];V=g.n(V.entries());for(r=V.next();!r.done;r=V.next())r=g.n(r.value),r.next(),r=r.next().value,Y.L5.push(r); if(v.f0.length&&!Y.L5.length){G&&G("ssap",{nobfrange:"1",br:SfB(v.f0),timeline:Qi(J)});return}v.iC&&(Y.iC=v.iC);v.Bq&&(Y.Bq=v.Bq)}else Y.f0=v.f0,Y.Mo=V.qr,r&&((h=v.f0)==null?void 0:h.length)>0&&!J&&G&&G("ssap",{bldmistlm:"1"});return Y}; mXX=function(v,J){return J?[g.iS(J.info,v)]:[]}; SfB=function(v){var J="";v=g.n(v);for(var G=v.next();!G.done;G=v.next()){G=G.value;var K=void 0,V=void 0,Y=void 0;J+="fmt."+(((K=G.formatId)==null?void 0:K.itag)||"")+"_"+(((V=G.formatId)==null?void 0:V.lmt)||0)+"_"+(((Y=G.formatId)==null?void 0:Y.xtags)||"")+";st."+(G.startTimeMs||0).toFixed(3)+";d."+(G.durationMs||0).toFixed(3)+";"}return J}; W7=function(v,J,G){var K=this;this.requestType=v;this.v$=J;this.eX=G;this.X=null;this.cO={XnY:function(){var V;return(V=K.data)==null?void 0:V.isPrefetch}, Kh:function(){var V;return(V=K.data)==null?void 0:V.Kh}}}; vxj=function(v,J,G){J=Tn(v.v$,ZYm(v,J,G),J);v.FM()&&J.set("probe","1");return J}; ZYm=function(v,J,G){v.Mm===void 0&&(v.Mm=v.v$.Mm(J,G));return v.Mm}; u98=function(v){var J,G;return((J=v.T)==null?void 0:(G=J.TV)==null?void 0:G.yc)||0}; g$U=function(v){var J,G;return!!((J=v.T)==null?0:(G=J.TV)==null?0:G.RU)}; XLU=function(v){var J={},G=[],K=[];if(!v.data)return J;for(var V=0;V0;e--)G.push(E)}G.length!==r?J.error=!0:(Y=G.slice(-Y),G.length=V,qyB(J,G,Y));break;case 1:qyB(J,YH,G3m);break;case 0:EgX(J, J.T&7);G=eO(J,16);V=eO(J,16);(G^V)!==65535&&(J.error=!0);J.output.set(J.data.subarray(J.X,J.X+G),J.Z);J.X+=G;J.Z+=G;break;default:J.error=!0}v.Z>v.output.length&&(v.output=new Uint8Array(v.Z*2),v.Z=0,v.X=0,v.L=!1,v.T=0,v.register=0)}v.output.length!==v.Z&&(v.output=v.output.subarray(0,v.Z));return v.error?new Uint8Array(0):v.output}; qyB=function(v,J,G){J=YyL(J);G=YyL(G);for(var K=v.data,V=v.output,Y=v.Z,r=v.register,E=v.T,e=v.X;;){if(E<15){if(e>K.length){v.error=!0;break}r|=(K[e+1]<<8)+K[e]<>=7;P<0;)P=J[(r&1)-P],r>>=1;else r>>=P&15;E-=P&15;P>>=4;if(P<256)V[Y++]=P;else if(v.register=r,v.T=E,v.X=e,P>256){r=qj[P];r+=eO(v,rv[P]);e=rWU(v,G);E=EB[e];E+=eO(v,ogs[e]);if(Pst&&rG.length&&(v.error=!0);v.register|=(G[K+1]<<8)+G[K]<=0)return EgX(v,G&15),G>>4;for(EgX(v,7);G<0;)G=J[eO(v,1)-G];return G>>4}; eO=function(v,J){for(;v.T=v.data.length)return v.error=!0,0;v.register|=v.data[v.X++]<>=J;v.T-=J;return G}; EgX=function(v,J){v.T-=J;v.register>>=J}; YyL=function(v){for(var J=[],G=g.n(v),K=G.next();!K.done;K=G.next())K=K.value,J[K]||(J[K]=0),J[K]++;var V=J[0]=0;G=[];var Y=0;K=0;for(var r=1;r7&&(Y+=J[r]);for(V=1;V>e&1;E=Y<<4|r;if(r<=7)for(e=1<<7-r;e--;)K[e<>=7;r--;){K[e]||(K[e]=-J,J+=2);var P=V&1;V>>=1;e=P-K[e]}K[e]=E}}return K}; DrF=function(v){var J,G,K,V,Y,r,E;return g.m(function(e){switch(e.T){case 1:if(!("DecompressionStream"in window))return e.return(g.e5m(new g.K62(v)));J=new DecompressionStream("gzip");G=J.writable.getWriter();G.write(v);G.close();K=J.readable.getReader();V=new zp([]);case 2:return g.U(e,K.read(),5);case 5:Y=e.X;r=Y.value;if(E=Y.done){e.sB(4);break}V.append(r);e.sB(2);break;case 4:return e.return(V.l1())}})}; Pi=function(v,J){this.T=v;this.Zm=J}; tvw=function(v){return Ih(Ih(D1(function(){return Bx(v.Zm,function(J){return v.xW(v.T,J)})}),function(){return v.rV(v.T)}),function(){return v.Bu(v.T)})}; Bh2=function(v,J){return tvw(new Pi(v,J))}; z5s=function(v){Ly.call(this,"onesie");this.MX=v;this.T={};this.Z=!0;this.L=null;this.queue=new JWL(this);this.J={};this.j=iXU(function(J,G){var K=this;return function Y(){var r,E,e,P,D,t,B,I,h,R,T,L,O,x,f,c,b,M,Jw,Kf;return EsF(Y,function(j8){switch(j8.T){case 1:g.sm(j8,2);K.MX.Pr();r=function(a){return function(C){throw{name:a,message:C};}}; E=J.l1();g.nf(j8,4,5);if(!G){j8.sB(7);break}return V8U(j8,Ih(Ixs(K.MX,E,K.iv),r("DecryptError")).wait(),8);case 8:e=j8.X;case 7:if(!K.MX.enableCompression){j8.sB(9);break}return V8U(j8,Ih(Bh2((t=e)!=null?t:E,K.MX.B().Q$),r("DecompressError")).wait(),10);case 10:P=j8.X;case 9:D=Nd((I=(B=P)!=null?B:e)!=null?I:E,G1U);case 5:g.TX(j8,0,2);if(R=(h=K.MX.B())==null?void 0:h.Zm)((T=e)==null?void 0:T.buffer)===R.exports.memory.buffer&&R.free(e.byteOffset),((L=P)==null?void 0:L.buffer)===R.exports.memory.buffer&& R.free(P.byteOffset);g.Lf(j8,6);break;case 4:throw x=O=g.lj(j8),new L6("onesie.response.parse",{name:(M=x.name)!=null?M:"unknown",message:(Jw=x.message)!=null?Jw:"unknown",wasm:((f=K.MX.B())==null?0:f.Zm)?((c=K.MX.B())==null?0:(b=c.Zm)==null?0:b.Wa)?"1js":"1":"0",enc:K.Z,gz:K.MX.enableCompression,webcrypto:!!se()});case 6:return h5B(D),Kf=g.yA(D.body),j8.return(Kf);case 2:g.TX(j8),g.Lf(j8,0)}})}()})}; ng2=function(v){var J=v.queue;J.T.length&&J.T[0].isEncrypted&&!J.X&&(J.T.length=0);J=g.n(Object.keys(v.T));for(var G=J.next();!G.done;G=J.next()){G=G.value;var K=v.T[G];if(!K.YW){var V=v.queue;V.T.push({videoId:K.videoId,formatId:G,isEncrypted:!1});V.X||VU(V)}}}; sGw=function(v,J){var G=J.getLength(),K=!1;switch(v.L){case 0:v.MX.C("html5_future_onesie_ump_handler_on_player_response")?Ih(Bx(v.j(J,v.Z),function(V){drt(v.MX,V)}),function(V){v.MX.M5(V)}):v.Pr(J,v.Z).then(function(V){drt(v.MX,V)},function(V){v.MX.M5(V)}); break;case 2:v.pY("ormk");J=J.l1();v.queue.decrypt(J);break;default:K=!0}v.MX.Tx&&v.MX.uw("ombup","id.11;pt."+v.L+";len."+G+(K?";ignored.1":""));v.L=null}; h5B=function(v){if(v.Tw!==1)throw new L6("onesie.response.badproxystatus",{st:v.Tw,webcrypto:!!se(),textencoder:!!g.X2.TextEncoder});if(v.md!==200)throw new L6("onesie.response.badstatus",{st:v.md});}; R5B=function(v){return new Promise(function(J){setTimeout(J,v)})}; lxB=function(v,J){var G=v.B();G=v.Vy&&G.C("html5_onesie_preload_use_content_owner");var K=v.Hd,V=$$(J.EB.experiments,"debug_bandaid_hostname");if(V)J=Gu(J,V);else if((G===void 0?0:G)&&(K==null?0:K.url)&&!J.X){var Y=LH(new g.TV(K.url));J=Gu(J,Y)}else J=(Y=J.T.get(0))==null?void 0:Y.location.clone();if(J&&v.videoId){Y=rU(v.videoId);v=[];if(Y)for(Y=g.n(Y),G=Y.next();!G.done;G=Y.next())v.push(G.value.toString(16).padStart(2,"0"));J.set("id",v.join(""));return J}}; Thw=function(v,J,G){G=G===void 0?0:G;var K,V;return g.m(function(Y){if(Y.T==1)return K=[],K.push(J.load()),G>0&&K.push(R5B(G)),g.U(Y,Promise.race(K),2);V=lxB(v,J);return Y.return(V)})}; pGr=function(v,J,G,K){K=K===void 0?!1:K;v.set("cpn",J.clientPlaybackNonce);v.set("opr","1");var V=J.B();v.set("por","1");se()||v.set("onem","1");J.startSeconds>0&&v.set("osts",""+J.startSeconds);K||(V.C("html5_onesie_disable_partial_segments")&&v.set("oses","1"),J=V.C("html5_gapless_onesie_no_media_bytes")&&ov(J)&&J.Vy,G&&!J?(J=G.audio,v.set("pvi",G.video.join(",")),V.C("html5_onesie_disable_audio_bytes")||v.set("pai",J.join(",")),ih||v.set("osh","1")):(v.set("oad","0"),v.set("ovd","0"),v.set("oaad", "0"),v.set("oavd","0")))}; L6t=function(v,J,G,K,V){V=V===void 0?!1:V;var Y="https://youtubei.googleapis.com/youtubei/"+J.s6.innertubeApiVersion+"/player",r=[{name:"Content-Type",value:"application/json"}];K&&r.push({name:"Authorization",value:"Bearer "+K});r.push({name:"User-Agent",value:g.wT()});g.H$("EOM_VISITOR_DATA")?r.push({name:"X-Goog-EOM-Visitor-Id",value:g.H$("EOM_VISITOR_DATA")}):(G=G.visitorData||g.H$("VISITOR_DATA"))&&r.push({name:"X-Goog-Visitor-Id",value:G});(G=g.H$("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&r.push({name:"X-YouTube-Lava-Device-Context", value:G});(J=$$(J.experiments,"debug_sherlog_username"))&&r.push({name:"X-Youtube-Sherlog-Username",value:J});v=Ul(JSON.stringify(v));return{url:Y,OG:r,postBody:v,q9e:V,xI:V}}; wGr=function(v,J,G,K,V,Y){var r=g.Cp(v,J6w,v.xI?void 0:G.Zm),E={encryptedClientKey:J.T.encryptedClientKey,cj:!0,Hs:!0,Yg:yWt(G,!!v.xI),GW:G.experiments.OB("html5_use_jsonformatter_to_parse_player_response")};if(v.xI)E.MJr=r;else{v=J.encrypt(r);var e;if(((e=G.Zm)==null?void 0:e.exports.memory.buffer)===r.buffer&&v.byteOffset!==r.byteOffset){var P;(P=G.Zm)==null||P.free(r.byteOffset)}var D;v=((D=G.Zm)==null?void 0:D.H2(v))||v;r=E.QO=v;(0,g.yR)();r=Ngm(new c0X(J.T.Z),r,J.iv);E.KV=r;E.iv=J.iv}J=K.getVideoData(); G=Rq({gh:G,HH:K,TL:J.startSeconds*1E3});V={w7:E,TV:G,onesieUstreamerConfig:V,wH:Y,aq:lc(J)};J.reloadPlaybackParams&&(V.reloadPlaybackParams=J.reloadPlaybackParams);return V}; OSm=function(v,J,G){var K,V,Y;return g.m(function(r){if(r.T==1)return K=g.Cp(J,J6w),g.U(r,MNL(G,K),2);if(r.T!=3)return V=r.X,g.U(r,QCL(G,V),3);Y=r.X;return r.return({QO:V,encryptedClientKey:G.T.encryptedClientKey,iv:G.iv,KV:Y,cj:!0,Hs:!0,Yg:yWt(v,!!J.xI),GW:v.experiments.OB("html5_use_jsonformatter_to_parse_player_response")})})}; Urm=function(v,J,G,K,V,Y){var r,E,e,P;return g.m(function(D){if(D.T==1)return g.U(D,OSm(G,v,J),2);r=D.X;E=K.getVideoData();e=Rq({gh:G,HH:K,TL:E.startSeconds*1E3});P={w7:r,TV:e,onesieUstreamerConfig:V,wH:Y,aq:lc(E)};E.reloadPlaybackParams&&(P.reloadPlaybackParams=E.reloadPlaybackParams);return D.return(P)})}; yWt=function(v,J){v=RC(v.schedule,!0);J=J||!!se()&&v>1572864;return"DecompressionStream"in window||!J}; tO=function(v,J){g.X.call(this);var G=this;this.HH=v;this.playerRequest=J;this.logger=new g.rZ("onesie");this.xhr=null;this.state=1;this.JN=new Ct;this.FE=!1;this.playerResponse="";this.JS=new Gh(this);this.gF=new z5s(this);this.ox="";this.Kf=this.Ns=!1;this.uG="";this.enableCompression=this.rO=this.u0=!1;this.SW=[];this.pB=this.iz=-1;this.EB=this.HH.B();this.videoData=this.HH.getVideoData();this.Tx=this.EB.GG();this.XP=this.EB.j4;this.l0=new vi(this.XP.T,this.EB.Q$,kWr(this.EB));this.Id=this.EB.C("html5_onesie_check_timeout"); this.U8=new g.Qq(this.oJ,500,this);this.sI=new g.Qq(this.Rg,1E4,this);this.Na=new g.Qq(function(){if(!G.isComplete()){var K=D0(G);G.M5(new L6("net.timeout",K))}},1E3); this.oD=new g.Qq(this.Kkt,2E3,this);this.Pl=this.HH.mu();this.Ve=this.C("html5_onesie_wait_for_media_availability");g.k(this.videoData,this);g.k(this,this.U8);g.k(this,this.sI);g.k(this,this.oD);g.k(this,this.l0);v=JM();ih&&v&&(this.ji=new Map);this.St=new Map;this.AM=new Map;this.OT=new Map;this.UQ=new Map}; Kv=function(v,J){var G;return(G=v.ji)==null?void 0:G.get(J)}; mrB=function(v,J,G){var K;return g.m(function(V){if(V.T==1)return v.pY("oprd_s"),xrf(v)?g.U(V,WHU(v.l0,J,G),3):(K=v.l0.decrypt(J,G),V.sB(2));V.T!=2&&(K=V.X);v.pY("oprd_c");return V.return(K)})}; Ixs=function(v,J,G){v.pY("oprd_s");J=HYj(v.l0).encrypt(J,G);Bx(J,function(){v.pY("oprd_c")}); return J}; Syw=function(v){return v.C("html5_onesie_host_probing")||v.Tx?ih:!1}; drt=function(v,J){v.pY("oprr");v.playerResponse=J;v.rO||(v.Ve=!1);Bi(v)}; Bi=function(v){if(!v.playerResponse)return!1;if(v.u0)return!0;var J=v.videoData.C("html5_onesie_audio_only_playback")&&Kh(v.videoData);if(v.ji&&v.Ve){if(!v.ji.has(v.ox))return!1;var G=v.ji.get(v.ox),K;if(K=G){K=!1;for(var V=g.n(G.IH.keys()),Y=V.next();!Y.done;Y=V.next())if(Y=G.IH.get(Y.value))for(var r=g.n(Y.Od),E=r.next();!E.done;E=r.next())E.value.T2>0&&(Y.Xj?K=!0:J=!0);K=!(J&&K)}if(K)return!1}v.pY("ofr");v.JN.resolve(v.playerResponse);if(!v.Id){var e;(e=v.Na)==null||e.start();v.sI.start()}return v.u0= !0}; ZSX=function(v){if(v.ji&&!v.C("html5_onesie_media_capabilities")){v.pY("ogsf_s");var J=xB2(v.HH.getVideoData(),function(K,V){v.uw(K,V)}),G=fx2(v.HH); J.video=RG8(G,J.video);v.pY("ogsf_c");if(J.video.length)return J;v.uw("ombspf","l."+G.X+";u."+G.T+";o."+G.Z+";r."+G.reason)}}; xrf=function(v,J){return v.C("html5_onesie_sync_request_encryption")||(J==null?0:J.xI)||g.is(v.EB)&&v.C("html5_embed_onesie_use_sync_encryption")?!1:!!se()}; D0=function(v){if(!v.gB)return{};var J=v.gB.w2(),G;J.d=(G=v.gB.Mr)==null?void 0:G.M$();J.shost=v.H3;J.ty="o";return J}; uPw=function(v,J){var G,K;(K=(v=(G=v.ji)==null?void 0:G.get(J))==null)||(J=v.Z?!1:v.Z=!0,K=!J);return!K}; ggr=function(v,J,G,K,V,Y,r,E,e,P,D){g.X.call(this);var t=this;this.HH=v;this.Qb=J;this.policy=G;this.audioTrack=K;this.videoTrack=V;this.Jt=Y;this.qX=r;this.xB=E;this.Z=e;this.timing=P;this.N=D;this.T=[];this.K={};this.Gi=this.RY=!1;this.Nm=new Set;this.J=this.jl=this.oY=this.sF=0;this.L=null;this.dh={f0:[],s2:[]};this.Ze={f0:[],s2:[]};this.j=null;this.YB=[];this.cO={RPt:function(){return t.T}, Eet:function(){return t.K}, T2h:function(){t.T.length=0}, Zzr:function(){return t.Nm}, ePr:function(){return t.oY}, T6e:function(B){t.oY=B}, XDr:function(B){t.J=B}, ql:function(B){t.j=B}}; this.videoData=this.HH.getVideoData();this.policy.DL&&(this.qr=new c7(this.Qb,this.policy,this.qX),g.k(this,this.qr))}; cWB=function(v,J){J=J===void 0?!1:J;if(XG8(v)){v.policy.K&&v.Qb.uw("sabrcrq",{create:1});var G=new W7(0,v.Jt.U,v);v.policy.Es>0&&v.J++;J=k3w(v,G,J);v.T.push(J);var K;(K=v.qr)==null||KHU(K,v.Jt.U)}}; F62=function(v,J){var G=Nhr(v);if(v.policy.Px){var K=v.dh;var V=v.Ze}else K=Ii(v,v.audioTrack),V=Ii(v,v.videoTrack);var Y=[].concat(g.l(K.f0),g.l(V.f0));v.policy.o$&&v.j&&Y.push.apply(Y,g.l(v.YB));var r=[].concat(g.l(K.s2),g.l(V.s2)),E=v.Qb.fT(),e,P,D=v.HH,t=v.Jt,B=v.X,I=v.Nm,h=v.policy,R=v.Qb.hw,T=DXs(v.Qb)*1E3,L=(e=v.Mr)==null?void 0:e.Cx;e=(P=v.Mr)==null?void 0:P.lH;var O;P=Number((O=v.Z.L)==null?void 0:O.info.itag)||0;var x;O=Number((x=v.Z.J)==null?void 0:x.info.itag)||0;J={HH:D,Jt:t,f0:Y,s2:r, TL:G,nextRequestPolicy:B,Nm:I,oA:h,hw:R,EU:T,Cx:L,lH:e,sF:v.sF,isPrefetch:J||v.Qb.isSuspended,iC:P,Bq:O,N8:E,YO:v.HH.a4()};G=v.Qb.Md();Y=rU(G);G&&(J.Kh=Y);if(G=v.HH.u4())J.RU=G*1E3;var f;G=v.Z;Y=G.oY;if((G.oA.X&&G.oA.Db||((f=G.oA)==null?0:f.T&&f.G4))&&!Y)for(f=g.n(G.Z),r=f.next();!r.done;r=f.next())if(r.value.hR){Y=!0;break}f=k_(G.oA)&&!Y?[]:lRm(G,G.Z);J.HM=f;f=v.Z;k_(f.oA)&&!f.Ti?f=[]:(G=xXm(f),G.length===0&&(G=f.K),f=lRm(f,G));J.T0=f;J.uV=v.policy.o$&&v.j?[v.j]:void 0;v.policy.XW&&(J.iZ=axB(v.Qb, v.audioTrack),J.Py=axB(v.Qb,v.videoTrack));if(v.policy.J){K=AW2(v,K.f0,V.f0);var c;if(V=(c=v.L)==null?void 0:c.YS(K))J.yI=V}v.policy.YB&&v.T.length>0&&v.T[0].J_()&&(J.xL7=v.T[0].vg());return J}; Nhr=function(v){var J,G=v.policy.j&&((J=v.Qb)==null?void 0:J.Yp());J=v.Qb.getCurrentTime()||0;J=HSm(v,J);var K=v.Qb.B$()||0;J+=K;K=wH(v.videoData)||g.yf(v.videoData);var V=0;G?(K&&(V=Number.MAX_SAFE_INTEGER),v.videoData.qr&&(V=Math.ceil(v.videoData.YB*1E3))):V=Math.ceil(J*1E3);return Math.min(Number.MAX_SAFE_INTEGER,V)}; HSm=function(v,J){if(v.Qb.isSeeking())return J;var G=v.HH.LY();if(!G)return J;G=G.dK();if(G.length===0||rj(G,J))return J;if(!M2U(v.videoTrack,J)&&!M2U(v.audioTrack,J))return v.Qb.uw("sundrn",{b:0,lt:J}),J;for(var K=J,V=Infinity,Y=0;YJ)){var r=J-G.end(Y);r=20)?(v.Qb.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),J):K}; AW2=function(v,J,G){var K=v.Qb.getCurrentTime()||0;J=MvU(v,J,K);v=MvU(v,G,K);return Math.min(J,v)}; MvU=function(v,J,G){v=v.Qb.B$()||0;J=g.n(J);for(var K=J.next();!K.done;K=J.next()){var V=K.value;K=V.startTimeMs?V.startTimeMs/1E3-v:0;V=K+(V.durationMs?V.durationMs/1E3:0);if(K<=G&&G<=V)return V}return G}; XG8=function(v){if(v.policy.Es>0){var J=Math.floor((0,g.yR)()/1E4);if(J===v.jl){if(v.J>=v.policy.Es){if(v.J===v.policy.Es){var G={reason:"toomanyrequests"};G.limit=v.J;v.Qb.handleError("player.exception",G);v.J+=1}return!1}}else v.jl=J,v.J=0}if(v.Qb.isSuspended&&v.Qb.cY)return!1;if(v.Ti&&(0,g.yR)()0&&(!v.policy.YB||v.T.length!==1||!v.T[0].J_()))return!1;var K;if((K=v.Jt.U)==null||!Lb(K,v.policy,v.K,v.Qb.XY()))return!1;J=v.policy.HZ&&v.policy.X&&v.Qb.bQ(); if(SX(v.audioTrack)&&SX(v.videoTrack)&&!J)return!1;if(v.policy.X&&v.U&&!v.Qb.bQ())return v.H$("ssap",{pauseontlm:1}),!1;if(hO(v,v.audioTrack)&&hO(v,v.videoTrack))return v.policy.Z&&v.Qb.uw("sabrHeap",{a:""+yi(v.audioTrack),v:""+yi(v.videoTrack)}),!1;if(J=v.policy.J){J=!1;if(v.N.X===2)J=!0;else if(v.N.X===3){Nhr(v);v.Qb.B$();K=AW2(v,m5B(v.audioTrack,v.Qb.isSeeking()).f0,m5B(v.videoTrack,v.Qb.isSeeking()).f0);var V=v.N;K>=V.J?(V.uw("sdai",{haltrq:K,est:V.J}),K=!0):K=!1;K&&(J=!0)}J&&v.policy.K&&v.Qb.uw("sabrcrq", {waitad:1})}if(J)return!1;v.policy.Px&&(v.dh=Ii(v,v.audioTrack),v.Ze=Ii(v,v.videoTrack));if(!v.X)return v.policy.K&&v.Qb.uw("sabrcrq",{nopolicy:1}),!0;if(v.HH.u4())return v.policy.K&&v.Qb.uw("sabrcrq",{utc:1}),!0;if(v.Z.U)return v.policy.K&&v.Qb.uw("sabrcrq",{audio:1}),!0;if(!v.X.targetAudioReadaheadMs||!v.X.targetVideoReadaheadMs)return v.policy.K&&v.Qb.uw("sabrcrq",{noreadahead:1}),!0;if(v.policy.j&&v.Qb.Yp())return v.policy.K&&v.Qb.uw("sabrcrq",{seekToHead:1}),!0;J=Math.min(FI(v.Qb,v.audioTrack)* 1E3,v.X.targetAudioReadaheadMs);K=Math.min(FI(v.Qb,v.videoTrack)*1E3,v.X.targetVideoReadaheadMs);var Y=Math.min(J,K);V=Oc(v.audioTrack,!0)*1E3;var r=Oc(v.videoTrack,!0)*1E3;if(v.policy.Px){var E=v.HH.getCurrentTime()*1E3;var e=QGF(v.dh.f0,E);E=QGF(v.Ze.f0,E)}else e=V,E=r;var P=eJ||K>=0&&V.S4>K+1)break;G=Math.max(G,V.startTimeMs+V.durationMs);K=Math.max(K,V.XF)}return Math.max(0,G-J)}; k3w=function(v,J,G){var K={qX:v.qX,Xe:function(e,P){v.HH.zY(e,P)}, fd:v.policy.VT,pT:v.policy.Z};v.qX.X.j&&(K.pD=(v.videoTrack.T.info.ER||0)+(v.audioTrack.T.info.ER||0));v.policy.DR&&(K.BG=v.audioTrack.T.index.N7(),K.fd=!1);var V=ZYm(J,v.policy,v.K)?2:1;V!==v.oY&&(v.oY=V,bSU(v));G=F62(v,G);if((v.policy.X||v.policy.YB)&&v.policy.Z&&G.Nm){for(var Y=V="",r=g.n(G.Nm),E=r.next();!E.done;E=r.next())E=E.value,v.videoData.sabrContextUpdates.has(E)?V+="_"+E:Y+="_"+E;v.Qb.uw("sabrbldrqs",{ctxts:V,misctxts:Y})}J.setData(G,v.Qb.bQ(),v.policy,v.K)||!v.policy.X&&!v.policy.YB|| v.Qb.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);K=new ZL(v.policy,J,v.Jt,v.K,v,K,v.Qb.mu(),v.policy.Q$?v.Qb.bQ():void 0);uc(v.timing);v.policy.K&&v.Qb.uw("sabrcrq",{rn:K.Ej(),probe:J.FM()});return K}; gv=function(v,J){if(J.Sl()||v.Sl())v.policy.yT||(v.policy.j?nv(v.Qb):v.Qb.J7());else{if(v.policy.Z&&J.isComplete()&&J instanceof ZL){var G=v.Qb,K=G.uw,V,Y,r=Object.assign(J.gB.w2(),{rst:J.state,strm:J.xhr.Fe(),d:(V=J.gB.Mr)==null?void 0:V.M$(),cncl:J.xhr&&J.CK.L?1:0,rqb:J.PR,cwt:J.C2,swt:(Y=J.wI)==null?void 0:Y.Ly});V=Object.assign(XLU(J.info),r);K.call(G,"rqs",V)}if(J.isComplete()&&J.FM()&&J instanceof ZL)v.policy.Vn?J.Th()?(J.dispose(),v.T.length===0?v.Qb.J7():(v=v.T[0],v instanceof ZL&&v.pz()&& v.KB())):J.Xa()&&v.Qb.handleError(J.t3(),J.Jw()):(J.dispose(),v.Qb.J7());else{if(J.o_())J instanceof ZL&&Dmm(v.timing,J),bSU(v),jvt(v);else if(J.Xa())G=v.HH.u4(),J instanceof ZL&&g$U(J.info)&&G&&v.Qb.U0(G),J instanceof tO?v.T.pop():(G=1,J.canRetry()&&n$t(v.Qb)&&(ihm(v,J),G=0),v.Qb.handleError(J.t3(),J.Jw(),G));else{if(v.Qb.isSuspended&&!J.isComplete())return;jvt(v)}J.Sl()||J instanceof tO||(J.isComplete()?G=rMr(J,v.policy,v.K):(G=Yfw(J,v.policy,v.K),G===1&&(v.RY=!0)),G!==0&&(K=new W7(1,J.info.v$), K.Mm=G===2,k3w(v,K)));v.policy.a$&&!J.isComplete()?zFw(v.Qb):v.Qb.J7()}}}; jvt=function(v){for(;v.T.length&&v.T[0].Ig(v.Ki());){var J=v.T.shift();$NB(v,J);if(v.policy.J){var G=v;if(!G.policy.WH&&J.Ig(G.Ki())){var K=J.Ej();if(G.BH!==K){var V=J.E5();J=V.iz;var Y=V.pB;V=V.isDecorated;!G.L||Y<0||(G.BH=K,K=Ay(G.N,Y/1E3,J),Y=G.Qb.B$()||0,c2(G.N,J,K-Y,V,G.L))}}}}v.T.length&&$NB(v,v.T[0])}; $NB=function(v,J){var G=new Set(J.E0(v.Ki()));G=g.n(G);for(var K=G.next();!K.done;K=G.next()){var V=K.value;if(!(K=!(J instanceof tO))){K=v.Z;var Y=K.Jt.yn,r=MZ(K.videoInfos,Y);Y=UXF(K,V,Y);var E=r.includes(V);!K.oA.sP||Y||E||K.Qb.uw("sabrcpf",{fid:""+V,vfids:""+r.join("."),said:K.j||""});K=Y||r.includes(V)}if(K&&(K=J.mY(V,v.Ki()),r=v.policy.o$&&JB(K[0].T.info.mimeType),(!(!r&&v.policy.NT&&K.length>0&&(K[0].T.info.Xj()?Oc(v.audioTrack):Oc(v.videoTrack))>3)||J.isComplete())&&J.vV(V,v.Ki()))){V=J.qZ(V, v.Ki());if(v.policy.X&&(Y=K[0].T.info,(E=v.Qb.bQ())&&Y)){var e=J.FH();E.api.C("html5_ssap_set_format_info_on_video_data")&&e===mT(E)&&(Y.Xj()?E.playback.getVideoData().L=Y:E.playback.getVideoData().X=Y);if(E=X$(E.timeline,e))if(E=E[0].getVideoData())Y.Xj()?E.L=Y:E.X=Y}V=g.n(V);for(Y=V.next();!Y.done;Y=V.next())if(Y=Y.value,v.policy.Z&&J instanceof tO&&v.Qb.uw("omblss",{s:Y.info.vO()}),r)E=v,E.videoData.yn()&&E.j&&y$(E.j)===y$(g.iS(Y.info.T.info,E.Jt.yn))&&E.HH.publish("sabrCaptionsDataLoaded",Y,E.gk.bind(E)); else{E=Y.info.T.info.Xj();var P=Y.info.T;if(E){e=void 0;var D=v.Z,t=(e=J.ZD(v.Ki()))==null?void 0:e.token;D.U&&P!==D.J?e=!0:(D.U=!1,P!==D.J&&(D.J=P,D.zK(P,D.audioTrack,t)),e=!1);if(e)continue}else e=void 0,RFt(v.Z,P,(e=J.ZD(v.Ki()))==null?void 0:e.token);e=E?v.audioTrack:v.videoTrack;J instanceof tO&&(e.U=!1,J instanceof tO&&(E?V$B(v.timing):KuB(v.timing)));try{wZm(e,K,Y)}catch(B){Y=wf(B),v.Qb.handleError(Y.errorCode,Y.details,Y.severity),e.fJ(),v.Hn(!1,"pushSlice"),nv(v.Qb)}}}}}; ihm=function(v,J){v.policy.YB?v.T.splice(v.T.indexOf(J)).forEach(function(G){G.dispose()}):(v.T.pop(),J==null||J.dispose())}; vJm=function(v,J,G){for(var K=[],V=0;V0)for(var J=g.n(v.videoData.sabrContextUpdates.keys()),G=J.next();!G.done;G=J.next()){G=G.value;var K=void 0;((K=v.videoData.sabrContextUpdates.get(G))==null?0:K.sendByDefault)&&v.Nm.add(G)}if(v.policy.YB&&v.T.length)for(J=g.n(v.T),G=J.next();!G.done;G=J.next())(G=G.value.vg())&&G.type&&G.sendByDefault&&v.Nm.add(G.type)}; oJ8=function(v){v.policy.yy&&(v.Mr=void 0,v.sF=0)}; KMm=function(v,J){if(J.Xa()||J.Sl()){var G=v.Qb,K=G.uw,V=J.state;v=v.Ki();var Y,r;if((J=(Y=J.ji)==null?void 0:Y.get(v))==null)J=void 0;else{Y=0;v=J.E0();for(var E=0;E=v.policy.bk,r=!1;if(Y){var E=0;!isNaN(J)&&J>v.J&&(E=J-v.J,v.J=J);E/V=v.policy.xu&&!v.Z;if(!Y&&!G&&eYL(v,J))return NaN;G&&(v.Z=!0);a:{K=r;G=(0,g.yR)()/1E3-(v.Nt.gK()||0)-v.K.T-v.policy.BO;Y=v.X.startTime;G=Y+G;if(K){if(isNaN(J)){kH(v,NaN,"n",J);Y=NaN;break a}K=J-v.policy.rE;K=Y.L&&K<=Y.j){K=!0;break a}K=!1}K=!K}if(K)return v.uw("ostmf",{ct:v.getCurrentTime(),a:J.T.info.Xj()}),!1;(v=v.Ti)!=null&&(v.IH.get(G).Kw=!0);return!0}; zYw=function(v){if(!v.Jt.yn)return!0;var J=v.HH.getVideoData();if(v.HH.YK())return v.uw("ombpa",{}),!1;var G,K;if(v.policy.MA&&!!((G=v.oY)==null?0:(K=G.Fb)==null?0:K.dLt)!==v.Jt.mU)return v.uw("ombplmm",{}),!1;G=J.R$||J.liveUtcStartSeconds||J.F5;if(v.Jt.mU&&G)return v.uw("ombplst",{}),!1;if(v.Jt.N)return v.uw("ombab",{}),!1;G=Date.now();return y7(v.Jt)&&!isNaN(v.dh)&&G-v.dh>v.policy.T9*1E3?(v.uw("ombttl",{}),!1):v.Jt.yk&&v.Jt.L||!v.policy.bB&&v.Jt.isPremiere||!(Bm(J)===0||v.policy.T&&J.C("html5_enable_onesie_media_for_sabr_proxima_optin"))|| J.C("html5_disable_onesie_media_for_mosaic")&&A3(J)||J.C("html5_disable_onesie_media_for_ssdai")&&J.isDaiEnabled()&&J.enableServerStitchedDai||J.C("html5_disable_onesie_media_for_lifa_eligible")&&av(J)?!1:!0}; nJw=function(v,J){var G=J.T,K=v.Jt.yn;if(zYw(v))if(v.Ti&&v.Ti.IH.has(y$(g.iS(G.info,K)))){if(K=y$(g.iS(G.info,K)),hYF(v,J)){var V=new cw(v.Ti.mY(K)),Y=function(r){try{if(r.Xa())v.handleError(r.t3(),r.Jw()),x_(J,r),aZ(r.info)&&aM(v.J,J,G,!0),v.J7();else if(IRr(v.J,r)){var E;(E=v.Z)==null||hzB(E,r.info,v.U);v.J7()}}catch(e){r=wf(e),v.handleError(r.errorCode,r.details,r.severity),v.fJ()}}; G.Z=!0;Nm(V)&&(y12(J,new cd(v.policy,K,V,v.Ti,Y)),uc(v.timing))}}else v.uw("ombfmt",{})}; dN2=function(v,J){J=J||v.videoTrack&&v.videoTrack.X&&v.videoTrack.X.startTime||v.getCurrentTime();var G=AL,K=v.videoTrack,V=v.T;J=V.nextVideo&&V.nextVideo.index.bz(J)||0;V.Ze!==J&&(V.qr={},V.Ze=J,$_(V,V.T));J=!V.T.isLocked()&&V.N>-1&&(0,g.yR)()-V.NJ.T&&J.reason==="b";K||V||G?(v.HH.I3({reattachOnConstraint:K?"u":V?"drm":"perf",lo:J.X,up:J.T}),v.policy.ZO||(v.L.T.X=!1)):(v.policy.ZO&&(v.L.T.X=!1),nv(v))}}else if(!wwU(v.T,J)&&v.videoTrack){v.logger.debug(function(){return"Setting constraint: r="+J.reason+" u="+J.T}); G=v.T.T;wmw(v,Umj(v.T,J));dN2(v);K=J.isLocked()&&J.reason==="m"&&v.T.Ti;V=v.policy.Vu&&J.reason==="l"&&fJ(v.videoTrack);G=G.T>J.T&&J.reason==="b";var Y=v.T.xB&&!Ij();K||V||G||Y?v.HH.I3({reattachOnConstraint:K?"u":V?"drm":Y?"codec":"perf"}):nv(v)}}; UN2=function(v,J,G){if((!v.K7||nt(v.K7)&&!v.policy.Xy)&&!v.Qa.isSeeking()&&(v.policy.T||fJ(J)&&J.T.U9()&&v.T.oY)){var K=v.getCurrentTime()+L1X(v.N,J,G);v.logger.debug(function(){return"Clearing back to "+K.toFixed(3)}); gIs(J,K)}}; wmw=function(v,J){J&&(v.logger.debug(function(){return"Logging new format: "+oj(J.video.info)}),xNf(v.HH,new M8(J.video,J.reason))); if(v.T.RY){var G=fSr(v.T,"a");v.HH.Xw(new M8(G.audio,G.reason))}}; nv=function(v){g.Wq(v.d_)}; zFw=function(v){v.policy.a$&&v.policy.zc&&Math.min(uiB(v.videoTrack),uiB(v.audioTrack))*1E3>v.policy.b5?g.Wq(v.o$):v.J7()}; mNw=function(v,J){var G=(0,g.yR)()-J,K=Oc(v.audioTrack,!0)*1E3,V=Oc(v.videoTrack,!0)*1E3;v.logger.debug(function(){return"Appends paused for "+G}); if(v.policy.Z&&(v.uw("apdpe",{dur:G.toFixed(),abuf:K.toFixed(),vbuf:V.toFixed()}),XU(v.policy))){var Y=fz(v.N);v.uw("sdps",{ct:J,ah:K.toFixed(),vh:V.toFixed(),mr:ZM(v.N,v.j9,Y),bw:Y.toFixed(),js:v.isSeeking(),re:+v.j9,ps:(v.policy.nw||"").toString(),rn:(v.policy.v9||"").toString()})}}; SLB=function(v){if(v.policy.X&&ua(v.videoTrack)&&ua(v.audioTrack))return"ssap";if(F_8(v.videoTrack))return v.logger.debug("Pausing appends for server-selectable format"),"ssf";if(v.policy.xB&&W_m(v.videoTrack)&&W_m(v.audioTrack))return"updateEnd";if(SX(v.audioTrack)||SX(v.videoTrack)&&v.videoTrack.T.info.aY!=="f")return"";if(v.Qa.isSeeking()){var J=v.N;var G=v.videoTrack;var K=v.audioTrack;if(J.policy.T){var V=J.policy.nj;XU(J.policy)&&(V=ZM(J,!1,fz(J)));J=V;G=Oc(K,!0)>=J&&Oc(G,!0)>=J}else G.Z.length|| K.Z.length?(V=G.T.info.ER+K.T.info.ER,V=10*(1-fz(J)/V),J=Math.max(V,J.policy.nj),G=Oc(K,!0)>=J&&Oc(G,!0)>=J):G=!0;if(!G)return"abr";G=v.videoTrack;if(G.Z.length>0&&G.L.X.length===1&&V2j(G.L).info.U360);K=XU(v.policy)&&v.policy.I6;if(!v.j9||!K&&G)return"";G=v.policy.j4;XU(v.policy)&&(G=ZM(v.N,v.j9,fz(v.N)));G=c1m(v.videoTrack, v.getCurrentTime(),G)||c1m(v.audioTrack,v.getCurrentTime(),G);return XU(v.policy)?G?"mbnm":"":(v.videoTrack.Z.length>0||v.audioTrack.Z.length>0||qfU(v.J,v.videoTrack,v.audioTrack)||qfU(v.J,v.audioTrack,v.videoTrack))&&G?"nord":""}; fNs=function(v){if(v.K){var J=v.K.J7(v.audioTrack,EP(v.K7.X.h7()));J&&v.HH.seekTo(J,{gT:!0,nK:"pollSubsegmentReadahead",Pi:!0})}}; NHm=function(v,J,G){if(v.policy.xB&&W_m(J))return!1;if(G.TM())return!0;if(!G.WZ())return!1;var K=Cz(J);if(!K||K.info.type===6)return!1;var V;if(v.policy.gQ||((V=v.Z)==null?0:dm2(V,J,K.info.yb)))v.qr=0;else return v.Qa.isSeeking()&&nv(v),v.qr=v.qr||(0,g.yR)(),!1;if(!ci(v,J,G,K.info))return!1;if(v.Jt.X&&K.info.X===0){if(V=Zhf(J,G,K)){var Y=pJ(J);v.uw("initchg",{it:K.info.T.info.id,sr:!!Y&&Y.T===K.info.T,ty:K.info.type,seg:K.info.yb})}Y=g.bD(K.info.T.info);v.policy.Hv&&Y&&!V&&Tjm(K)}Y=v.K&&!!v.K.L&& J.T.info.audio;V=v.Jt.isManifestless||K.J;if(!(v.Jt.X&&K.info.X!==0||V&&!Y)&&uHt(v,J,G,K))return!0;if(Y)return!1;Y=FI(v,J);Y=v.getCurrentTime()+Y;if(K.info.L>Y)return v.policy.T&&gJr(v,J),v.policy.MC&&kfm(J.L,Y,!1),!1;Xmf(v,J);var r;v.policy.IR&&G===((r=v.K7)==null?void 0:r.T)&&v.BH&&(G.tL()===0?(v.BH=!1,v.policy.IR=!1):v.WH=G.tL());if(!k5F(v,G,K,J))return!1;v.policy.xB&&K.info.fZ()?(v.HH.B().GG()&&v.uw("eosl",{ls:K.info.vO()}),K.isLocked=!0):(J.dg(K),SHL(v.T,K.info),v.logger.debug(function(){return"Appended "+ K.info.vO()+", buffered: "+V4(G.h7())})); V&&c32(v,K.info.T.cT);return!0}; gJr=function(v,J){J===v.videoTrack?v.YB=v.YB||(0,g.yR)():v.Mr=v.Mr||(0,g.yR)()}; Xmf=function(v,J){J===v.videoTrack?v.YB=0:v.Mr=0}; k5F=function(v,J,G,K){var V=v.policy.R$?(0,g.yR)():0,Y=G.J&&G.info.T.T||void 0,r=G.T;G.J&&(r=aNF(v,G,r)||r);var E=r.l1();r=v.policy.R$?(0,g.yR)():0;J=A3B(v,J,E,G.info,Y);(K=K.N)!=null&&(Y=G.info,V=r-V,r=(0,g.yR)()-r,!K.X||Q$s(K.X,Y)&&K.X.yb===Y.yb||K.flush(),K.L+=V,K.Z+=r,V=1,!K.X&&Y.X&&(V=2),Vi(K,V,J),r=Math.ceil(Y.X/1024),V===2&&K.T.add(r),K.T.add(Math.ceil((Y.X+Y.Z)/1024)-r),K.X=Y);v.Ze=0;if(J===0)return v.jl&&(v.logger.debug("Retry succeed, back to normal append logic."),v.jl=!1,v.wh=!1),v.Nr= 0,!0;if(J===2||J===5)return FMm(v,"checked",J,G.info),!1;if(J===1){if(!v.jl)return v.logger.debug("QuotaExceeded, retrying."),v.jl=!0,!1;if(!v.wh)return v.wh=!0,v.HH.seekTo(v.getCurrentTime(),{nK:"quotaExceeded",Pi:!0}),!1;G.info.Vk()?(V=v.policy,V.Gi=Math.floor(V.Gi*.8),V.dh=Math.floor(V.dh*.8)):(V=v.policy,V.wh=Math.floor(V.wh*.8),V.dh=Math.floor(V.dh*.8));v.policy.T?W2(v.L.T,G.info.T,!1):JL(v.T,G.info.T)}v.HH.I3({reattachOnAppend:J});return!1}; aNF=function(v,J,G){var K;if(K=v.policy.hY&&v.K7&&!v.K7.U&&!v.HH.ZQ())J=J.info.T.info,K=J.M1()&&Fy(J)&&J.video&&J.video.width<3840&&J.video.width>J.video.height;if(K&&(v.K7.U=!0,m9('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return G=oIj(G),v.policy.Z&&v.uw("sp4k",{s:!!G}),G}; FMm=function(v,J,G,K){var V="fmt.unplayable",Y=1;G===5||G===3?(V="fmt.unparseable",v.policy.T?!K.T.info.video||Cy(v.L.T).size>0||W2(v.L.T,K.T,!1):!K.T.info.video||Cy(v.T.J).size>0||JL(v.T,K.T)):G===2&&(v.Nr<15?(v.Nr++,V="html5.invalidstate",Y=0):V="fmt.unplayable");K=Xr(K);var r;K.mrs=(r=v.K7)==null?void 0:Q4(r);K.origin=J;K.reason=G;v.handleError(V,K,Y)}; lTB=function(v,J,G,K,V){var Y=v.Jt;var r=v.policy.T,E=!1,e=-1,P;for(P in Y.T){var D=JB(Y.T[P].info.mimeType)||Y.T[P].info.Vk();if(K===D)if(D=Y.T[P].index,D.QI(J.yb)){E=D;var t=J,B=E.Q1(t.yb);B&&B.startTime!==t.startTime?(E.segments=[],E.Lg(t),E=!0):E=!1;E?e=J.yb:!J.pending&&r&&(t=D.getDuration(J.yb),t!==J.duration&&(Y.publish("clienttemp","mfldurUpdate",{itag:Y.T[P].info.itag,seg:J.yb,od:t,nd:J.duration},!1),D.Lg(J),E=!0))}else D.Lg(J),E=!0}e>=0&&(r={},Y.publish("clienttemp","resetMflIndex",(r[K? "v":"a"]=e,r),!1));Y=E;AnB(v.Qa,J,K,Y);v.Z.ib(J,G,K,V);if(v.policy.Bv&&G){var I;(I=v.a$)!=null&&I.Z.set(J.yb,G)}J.yb===v.Jt.yk&&Y&&RB(v.Jt)&&J.startTime>RB(v.Jt)&&(v.Jt.YB=J.startTime+(isNaN(v.timestampOffset)?0:v.timestampOffset),v.Qa.isSeeking()&&v.Qa.T 5)return v.Ze=0,v.HH.I3({initSegStuck:1,as:K.info.vO()}),!0}else v.Ze=0,v.UR=K;v.policy.e2&&(G.abort(),(r=J.N)!=null&&(Vi(r,4),r.flush()));V=A3B(v,G,Y,e,V);var P;(P=J.N)==null||aSt(P,V,e);if(V!==0)return Hhm(v,V,K),!0;K.info.Vk()?qHr(v.timing):Exw(v.timing);v.logger.debug(function(){return"Appended init for "+K.info.T.info.id}); c32(v,K.info.T.cT);return G.ow()}; Zhf=function(v,J,G){if(J.hB()==null){v=pJ(v);if(!(J=!v||v.T!==G.info.T)){a:if(v=v.N,G=G.info.N,v.length!==G.length)G=!1;else{for(J=0;J1)return 6;e.qr=new g.Qq(function(){var P=Cz(e);v.Sl()||P==null||!P.isLocked?v.HH.B().GG()&&v.uw("eosl",{delayA:P==null?void 0:P.info.vO()}):M0r(e)?(v.HH.B().GG()&&v.uw("eosl",{dunlock:P==null?void 0:P.info.vO()}),Qvw(v, e===v.audioTrack)):(v.uw("nue",{ls:P.info.vO()}),P.info.oY+=1,v.K7&&v.HX())},1E4,v); v.HH.B().GG()&&v.uw("eosl",{delayS:K.vO()});e.qr.start()}v.policy.xU&&(K==null?void 0:K.T)instanceof Fr&&K.fZ()&&v.uw("poseos",{itag:K.T.info.itag,seg:K.yb,lseg:K.T.index.wd(),es:K.T.index.Z});J.appendBuffer(G,K,V)}catch(P){if(P instanceof DOMException){if(P.code===11)return 2;if(P.code===12)return 5;if(P.code===22||P.message.indexOf("Not enough storage")===0)return J=Object.assign({name:"QuotaExceededError",buffered:V4(J.h7()).replace(/,/g,"_"),vheap:yi(v.videoTrack),aheap:yi(v.audioTrack),message:g.z6(P.message, 3),track:v.K7?J===v.K7.X?"v":"a":"u"},t0U()),v.handleError("player.exception",J),1;g.fW(P)}return 4}return v.K7.v8()?3:0}; Wd=function(v,J,G){v.HH.seekTo(J,G)}; c32=function(v,J){J&&v.HH.fW(new tL(J.key,J.type))}; za=function(v,J){v.HH.xT(J)}; FI=function(v,J){if(v.jl&&!v.j9)return 3;if(v.isSuspended)return 1;var G;if((G=v.K7)==null?0:G.K7&&G.K7.streaming===!1)return 4;G=(J.T.info.audio?v.policy.wh:v.policy.Gi)/(J.ER*v.policy.rF);if(v.policy.HQ>0&&v.K7&&nt(v.K7)&&(J=J.T.info.video?v.K7.X:v.K7.T)&&!J.ow()){J=J.h7();var K=YG(J,v.getCurrentTime());K>=0&&(J=v.getCurrentTime()-J.start(K),G+=Math.max(0,Math.min(J-v.policy.HQ,v.policy.V8)))}v.policy.dh>0&&(G=Math.min(G,v.policy.dh));return G}; axB=function(v,J){return(FI(v,J)+v.policy.Z$)*J.ER}; Cgf=function(v){v.xB&&!v.isSuspended&&lh(v.schedule)&&(WMF(v,v.xB),v.xB="")}; WMF=function(v,J){Uv(J,"cms",function(G){v.policy.Z&&v.uw("pathprobe",G)},function(G){v.HH.handleError(G)})}; bhr=function(v,J){if(v.K7&&v.K7.L&&!v.K7.v8()&&(J.JB=Oc(v.videoTrack),J.X=Oc(v.audioTrack),v.policy.Z)){var G=yi(v.videoTrack),K=yi(v.audioTrack),V=V4(v.K7.X.h7(),"_",5),Y=V4(v.K7.T.h7(),"_",5);Object.assign(J.T,{lvq:G,laq:K,lvb:V,lab:Y})}J.bandwidthEstimate=mS(v.N);var r;(r=v.audioTrack.N)==null||r.flush();var E;(E=v.videoTrack.N)==null||E.flush();v.logger.debug(function(){return p6(J.T)})}; jQX=function(v,J){v.U=J;v.Z&&(v.Z.Z=J);v.U.Zn(v.videoTrack.T.info.M1());v.J.X=v.U;v.policy.J&&(v.X.L=v.U)}; JKB=function(v,J){if(v.K7&&v.K7.X){if(v.policy.Rd){var G=jC2(v.audioTrack);if(G&&G.Xj()){var K=v.HH;if(K.Uy&&(K.Uy.T=G,G=K.zG(K.Uy.videoId),G.qoe)){G=G.qoe;K=K.Uy;var V=g.AO(G.provider);imw(G,V,K)}}}v.policy.hp&&(G=jC2(v.videoTrack))&&G.Vk()&&(K=v.HH,K.PM&&(K.PM.T=G,G=K.zG(K.PM.videoId),G.qoe&&$yU(G.qoe,K.PM)));J-=isNaN(v.timestampOffset)?0:v.timestampOffset;v.getCurrentTime()!==J&&v.resume();v.Qa.isSeeking()&&v.K7&&!v.K7.v8()&&(K=v.getCurrentTime()<=J&&J=0&&Y1?E.X[0]=J&&BH2(v,K.startTime,!1)}); return G&&G.startTimev.getCurrentTime())return G.start/1E3;return Infinity}; YMj=function(v){var J=pJ(v.videoTrack),G=pJ(v.audioTrack);return J&&!b0j(v.videoTrack)?J.startTime:G&&!b0j(v.audioTrack)?G.startTime:NaN}; Csm=function(v){if(v.HH.getVideoData().isLivePlayback)return!1;var J=v.HH.LY();if(!J)return!1;J=J.getDuration();return W6f(v,J)}; W6f=function(v,J){if(!v.K7||!v.K7.T||!v.K7.X)return!1;var G=v.getCurrentTime(),K=v.K7.T.h7();v=v.K7.X.h7();K=K?qG(K,G):G;G=v?qG(v,G):G;G=Math.min(K,G);return isNaN(G)?!1:G>=J-.01}; Hhm=function(v,J,G){v.policy.mC&&ov(v.HH.getVideoData())?(v.HH.gO()||FMm(v,"sepInit",J,G.info),rKw(v.HH,"sie")):FMm(v,"sepInit",J,G.info)}; n$t=function(v){return v.HH.XY()0){var V=K.T.shift();E1B(K,V.info)}K.T.length>0&&(V=K.T[0].time-(0,g.yR)(),K.X.start(Math.max(0,V)))}},0); g.k(this,this.X);J.subscribe("widevine_set_need_key_info",this.J,this)}; E1B=function(v,J){a:{var G=J.cryptoPeriodIndex;if(isNaN(G)&&v.Z.size>0)G=!0;else{for(var K=g.n(v.Z.values()),V=K.next();!V.done;V=K.next())if(V.value.cryptoPeriodIndex===G){G=!0;break a}G=!1}}v.publish("log_qoe",{wvagt:"reqnews",canskip:G});G||v.publish("rotated_need_key_info_ready",J)}; ejm=function(){var v={};var J=v.url;var G=v.interval;v=v.retries;this.url=J;this.interval=G;this.retries=v}; Pm8=function(v,J){this.statusCode=v;this.message=J;this.X=this.heartbeatParams=this.errorMessage=null;this.T={};this.nextFairplayKeyId=null}; Dyw=function(v,J,G){G=G===void 0?"":G;g.X.call(this);this.message=v;this.requestNumber=J;this.W1=G;this.onError=this.onSuccess=null;this.T=new g.m2(5E3,2E4,.2)}; tIf=function(v,J,G){v.onSuccess=J;v.onError=G}; Iwj=function(v,J,G,K){var V={timeout:3E4,onSuccess:function(Y){if(!v.Sl()){cB("drm_net_r",void 0,v.W1);var r=Y.status==="LICENSE_STATUS_OK"?0:9999,E=null;if(Y.license)try{E=n8(Y.license)}catch(h){g.fW(h)}if(r!==0||E){E=new Pm8(r,E);r!==0&&Y.reason&&(E.errorMessage=Y.reason);if(Y.authorizedFormats){r={};for(var e=[],P={},D=g.n(Y.authorizedFormats),t=D.next();!t.done;t=D.next())if(t=t.value,t.trackType&&t.keyId){var B=Br2[t.trackType];if(B){B==="HD"&&Y.isHd720&&(B="HD720");t.isHdr&&(B+="HDR");r[B]|| (e.push(B),r[B]=!0);var I=null;try{I=n8(t.keyId)}catch(h){g.fW(h)}I&&(P[g.hE(I,4)]=B)}}E.X=e;E.T=P}Y.nextFairplayKeyId&&(E.nextFairplayKeyId=Y.nextFairplayKeyId);Y.sabrLicenseConstraint&&(E.sabrLicenseConstraint=n8(Y.sabrLicenseConstraint));Y=E}else Y=null;if(Y)v.onSuccess(Y,v.requestNumber);else v.onError(v,"drm.net","t.p;p.i")}}, onError:function(Y){if(!v.Sl())if(Y&&Y.error)Y=Y.error,v.onError(v,"drm.net.badstatus","t.r;p.i;c."+Y.code+";s."+Y.status,Y.code);else v.onError(v,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){v.onError(v,"drm.net","rt.req."+v.requestNumber)}}; K&&(V.wu="Bearer "+K);g.$Z(G,"player/get_drm_license",J,V)}; hjf=function(v,J,G,K){g.qU.call(this);this.videoData=v;this.EB=J;this.U=G;this.sessionId=K;this.J={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.oY=this.Ti=!1;this.Z=null;this.dh=[];this.L=[];this.DO=[];this.K=!1;this.T={};this.status="";this.j=NaN;this.X=v.J;this.cryptoPeriodIndex=G.cryptoPeriodIndex;v={};Object.assign(v,this.EB.T);v.cpn=this.videoData.clientPlaybackNonce;this.videoData.Ti&&(v.vvt=this.videoData.Ti,this.videoData.mdxEnvironment&&(v.mdx_environment=this.videoData.mdxEnvironment)); this.EB.dh&&(v.authuser=this.EB.dh);this.EB.pageId&&(v.pageid=this.EB.pageId);isNaN(this.cryptoPeriodIndex)||(v.cpi=this.cryptoPeriodIndex.toString());var V=(V=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.wT()))?V[1]:"";V==="ATV"&&(v.cdt=V);this.J=v;this.J.session_id=K;this.N=!0;this.X.flavor==="widevine"&&(this.J.hdr="1");this.X.flavor==="playready"&&(J=Number($$(J.experiments,"playready_first_play_expiration")),!isNaN(J)&&J>=0&&(this.J.mfpe=""+J),this.N=!1);J="";g.cZ(this.X)?kI(this.X)?(K=G.X)&&(J="https://www.youtube.com/api/drm/fps?ek="+ u2F(K)):(J=G.initData.subarray(4),J=new Uint16Array(J.buffer,J.byteOffset,J.byteLength/2),J=String.fromCharCode.apply(null,J).replace("skd://","https://")):J=this.X.X;this.baseUrl=J;this.fairplayKeyId=Gj(this.baseUrl,"ek")||"";if(J=Gj(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(J);this.dh=G.M1?[g.hE(G.initData,4)]:G.Z;Wi(this,{sessioninit:G.cryptoPeriodIndex});this.status="in"}; sQt=function(v,J){Wi(v,{createkeysession:1});v.status="gr";cB("drm_gk_s",void 0,v.videoData.RY);v.url=zjr(v);try{v.Z=J.createSession(v.U,function(G){Wi(v,{m:G})})}catch(G){J="t.g"; G instanceof DOMException&&(J+=";c."+G.code);v.publish("licenseerror","drm.unavailable",1,J,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}v.Z&&(n1F(v.Z,function(G,K){dyL(v,G,K)},function(G,K,V){if(!v.Sl()){K=void 0; var Y=1;g.cZ(v.X)&&g.uh(v.EB)&&v.EB.C("html5_enable_safari_fairplay")&&V===1212433232&&(K="ERROR_HDCP",Y=v.EB.C("html5_safari_fairplay_ignore_hdcp")?0:Y);v.error("drm.keyerror",Y,G,K)}},function(){v.Sl()||(Wi(v,{onkyadd:1}),v.oY||(v.publish("sessionready"),v.oY=!0))},function(G){v.Tc(G)}),g.k(v,v.Z))}; zjr=function(v){var J=v.baseUrl;iRF(J)||v.error("drm.net",2,"t.x");if(!Gj(J,"fexp")){var G=["23898307","23914062","23916106","23883098"].filter(function(V){return v.EB.experiments.experiments[V]}); G.length>0&&(v.J.fexp=G.join())}G=g.n(Object.keys(v.J));for(var K=G.next();!K.done;K=G.next())K=K.value,J=l4B(J,K,v.J[K]);return J}; dyL=function(v,J,G){if(!v.Sl())if(J){Wi(v,{onkmtyp:G});v.status="km";switch(G){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":Rj8(v,J);return;default:v.publish("ctmp","message_type",{t:G,l:J.byteLength})}v.Ti||(cB("drm_gk_f",void 0,v.videoData.RY),v.Ti=!0,v.publish("newsession",v));if(uB(v.X)&&(J=lwF(J),!J))return;J=new Dyw(J,++v.requestNumber,v.videoData.RY);tIf(J,function(K){Trm(v,K)},function(K,V,Y){if(!v.Sl()){var r=0; K.T.X>=3&&(r=1,V="drm.net.retryexhausted");Wi(v,{onlcsrqerr:V,info:Y});v.error(V,r,Y);v.shouldRetry(y9(r),K)&&pz2(v,K)}}); g.k(v,J);Lbm(v,J)}else v.error("drm.unavailable",1,"km.empty")}; Rj8=function(v,J){Wi(v,{sdpvrq:1});v.j=Date.now();if(v.X.flavor!=="widevine")v.error("drm.provision",1,"e.flavor;f."+v.X.flavor+";l."+J.byteLength);else{var G={cpn:v.videoData.clientPlaybackNonce};Object.assign(G,v.EB.T);G=g.vt("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",G);J={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, J)}),responseType:"arraybuffer"};g.Oi(G,J,3,500).then(Rh(function(K){K=K.xhr;if(!v.Sl()){K=new Uint8Array(K.response);var V=String.fromCharCode.apply(null,K);try{var Y=JSON.parse(V)}catch(r){}Y&&Y.signedResponse?(v.publish("ctmp","drminfo",{provisioning:1}),Y=(Date.now()-v.j)/1E3,v.j=NaN,v.publish("ctmp","provs",{et:Y.toFixed(3)}),v.Z&&v.Z.update(K)):(Y=Y&&Y.error&&Y.error.message,K="e.parse",Y&&(K+=";m."+Y),v.error("drm.provision",1,K))}}),Rh(function(K){v.Sl()||v.error("drm.provision",1,"e."+K.errorCode+ ";c."+(K.xhr&&K.xhr.status))}))}}; Cv=function(v){var J;if(J=v.N&&v.Z!=null)v=v.Z,J=!(!v.T||!v.T.keyStatuses);return J}; Lbm=function(v,J){v.status="km";cB("drm_net_s",void 0,v.videoData.RY);var G=new g.iN(v.EB.s6),K={context:g.eg(G.config_||g.Ea())};K.drmSystem=yKm[v.X.flavor];K.videoId=v.videoData.videoId;K.cpn=v.videoData.clientPlaybackNonce;K.sessionId=v.sessionId;K.licenseRequest=g.hE(J.message);K.drmParams=v.videoData.drmParams;isNaN(v.cryptoPeriodIndex)||(K.isKeyRotated=!0,K.cryptoPeriodIndex=v.cryptoPeriodIndex);var V,Y,r=!!((V=v.videoData.X)==null?0:(Y=V.video)==null?0:Y.isHdr());K.drmVideoFeature=r?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(K.context&&K.context.client){if(V=v.EB.T)K.context.client.deviceMake=V.cbrand,K.context.client.deviceModel=V.cmodel,K.context.client.browserName=V.cbr,K.context.client.browserVersion=V.cbrver,K.context.client.osName=V.cos,K.context.client.osVersion=V.cosver;K.context.user=K.context.user||{};K.context.request=K.context.request||{};v.videoData.Ti&&(K.context.user.credentialTransferTokens=[{token:v.videoData.Ti,scope:"VIDEO"}]);K.context.request.mdxEnvironment=v.videoData.mdxEnvironment|| K.context.request.mdxEnvironment;v.videoData.d_&&(K.context.user.kidsParent={oauthToken:v.videoData.d_});g.cZ(v.X)&&(K.fairplayKeyId=g.hE(gsU(v.fairplayKeyId)));g.KS(v.EB,g.cm(v.videoData)).then(function(E){Iwj(J,K,G,E);v.status="rs"})}else v.error("drm.net",2,"t.r;ic.0")}; Trm=function(v,J){if(!v.Sl())if(Wi(v,{onlcsrsp:1}),v.status="rr",J.statusCode!==0)v.error("drm.auth",1,"t.f;c."+J.statusCode,J.errorMessage||void 0);else{cB("drm_kr_s",void 0,v.videoData.RY);if(J.heartbeatParams&&J.heartbeatParams.url&&v.videoData.C("outertube_streaming_data_always_use_staging_license_service")){var G=v.X.X.match(/(.*)youtube.com/g);G&&(J.heartbeatParams.url=G[0]+J.heartbeatParams.url)}J.heartbeatParams&&v.publish("newlicense",J.heartbeatParams);J.X&&(v.L=J.X,v.videoData.F$||v.publish("newlicense", new ejm),v.videoData.F$=!0,v.K=yM(v.L,function(K){return K.includes("HDR")})); J.T&&(v.EB.C("html5_enable_vp9_fairplay")&&kI(v.X)?(G=g.hE(gsU(v.fairplayKeyId),4),v.T[G]={type:J.T[G],status:"unknown"}):v.T=OA(J.T,function(K){return{type:K,status:"unknown"}})); Xi(v.X)&&(J.message=LZX(g.hE(J.message)));v.Z&&(Wi(v,{updtks:1}),v.status="ku",v.Z.update(J.message).then(function(){cB("drm_kr_f",void 0,v.videoData.RY);Cv(v)||(Wi(v,{ksApiUnsup:1}),v.publish("keystatuseschange",v))},function(K){K="msuf.req."+v.requestNumber+";msg."+g.z6(K.message,3); v.error("drm.keyerror",1,K)})); g.cZ(v.X)&&v.publish("fairplay_next_need_key_info",v.baseUrl,J.nextFairplayKeyId);v.EB.C("html5_enable_vp9_fairplay")&&kI(v.X)&&v.publish("qualitychange",wzw(v.L));J.sabrLicenseConstraint&&v.publish("sabrlicenseconstraint",J.sabrLicenseConstraint)}}; pz2=function(v,J){var G=J.T.getValue();G=new g.Qq(function(){Lbm(v,J)},G); g.k(v,G);G.start();g.SA(J.T);Wi(v,{rtyrq:1})}; Oms=function(v,J){for(var G=[],K=g.n(Object.keys(v.T)),V=K.next();!V.done;V=K.next())V=V.value,G.push(V+"_"+v.T[V].type+"_"+v.T[V].status);return G.join(J)}; UyX=function(v){var J={};J[v.status]=Cv(v)?Oms(v,"."):v.L.join(".");return J}; xym=function(v){switch(v){case "AUDIO":return 1;case "SD":return 2;case "HD":return 3;case "UHD1":return 4;case "UHD2":return 5;default:return 0}}; be=function(v,J){for(var G in v.T)if(v.T[G].status==="usable"&&v.T[G].type===J)return!0;return!1}; myt=function(v,J){for(var G in v.T)if(v.T[G].type===J)return v.T[G].status}; Wi=function(v,J){var G=G===void 0?!1:G;p6(J);(G||v.EB.GG())&&v.publish("ctmp","drmlog",J)}; SMU=function(v){var J=v[0];v[0]=v[3];v[3]=J;J=v[1];v[1]=v[2];v[2]=J;J=v[4];v[4]=v[5];v[5]=J;J=v[6];v[6]=v[7];v[7]=J}; wzw=function(v){return g.WN(v,"UHD2")||g.WN(v,"UHD2HDR")?"highres":g.WN(v,"UHD1")||g.WN(v,"UHD1HDR")?"hd2160":g.WN(v,"HD")||g.WN(v,"HDHDR")?"hd1080":g.WN(v,"HD720")||g.WN(v,"HD720HDR")?"hd720":"large"}; lwF=function(v){for(var J="",G=0;G'.charCodeAt(K);v=v.Z.createSession("video/mp4",J,G);return new jE(null,null,null,null,v)}; Nr2=function(v,J){var G=v.j[J.sessionId];!G&&v.L&&(G=v.L,v.L=null,G.sessionId=J.sessionId,v.j[J.sessionId]=G);return G}; Xz2=function(v,J){var G=v.subarray(4);G=new Uint16Array(G.buffer,G.byteOffset,G.byteLength/2);G=String.fromCharCode.apply(null,G).match(/ek=([0-9a-f]+)/)[1];for(var K="",V=0;V 19.2999?(v=G.jM,G=G.Lx,G>=v&&(G=v*.75),J=(v-G)*.5,G=new Mj(J,v,v-J-G,this)):G=null;break a;case "widevine":G=new QU(J,this,v);break a;default:G=null}if(this.J=G)g.k(this,this.J),this.J.subscribe("rotated_need_key_info_ready",this.OE,this),this.J.subscribe("log_qoe",this.Gb,this);aB(this.EB.experiments);this.Gb({cks:this.T.getInfo()})}; AKw=function(v){var J=g1r(v.L);J?J.then(Rh(function(){bJB(v)}),Rh(function(G){if(!v.Sl()){g.fW(G); var K="t.a";G instanceof DOMException&&(K+=";n."+G.name+";m."+G.message);v.publish("licenseerror","drm.unavailable",1,K,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(v.Gb({mdkrdy:1}),v.N=!0); v.oY&&(J=g1r(v.oY))}; ivr=function(v,J,G){v.jl=!0;G=new tL(J,G);v.EB.C("html5_eme_loader_sync")&&(v.j.get(J)||v.j.set(J,G));ji8(v,G)}; ji8=function(v,J){if(!v.Sl()){v.Gb({onInitData:1});if(v.EB.C("html5_eme_loader_sync")&&v.videoData.Z&&v.videoData.Z.T){var G=v.K.get(J.initData);J=v.j.get(J.initData);if(!G||!J)return;J=G;G=J.initData;v.j.remove(G);v.K.remove(G)}v.Gb({initd:J.initData.length,ct:J.contentType});if(v.T.flavor==="widevine")if(v.Mr&&!v.videoData.isLivePlayback)vQ(v);else{if(!(v.EB.C("vp9_drm_live")&&v.videoData.isLivePlayback&&J.M1)){v.Mr=!0;G=J.cryptoPeriodIndex;var K=J.T;i0X(J);J.M1||(K&&J.T!==K?v.publish("ctmp","cpsmm", {emsg:K,pssh:J.T}):G&&J.cryptoPeriodIndex!==G&&v.publish("ctmp","cpimm",{emsg:G,pssh:J.cryptoPeriodIndex}));v.publish("widevine_set_need_key_info",J)}}else v.OE(J)}}; bJB=function(v){if(!v.Sl())if(v.EB.C("html5_drm_set_server_cert")||kI(v.T)){var J=v.L.setServerCertificate();J?J.then(Rh(function(G){v.EB.GG()&&v.publish("ctmp","ssc",{success:G})}),Rh(function(G){v.publish("ctmp","ssce",{n:G.name, m:G.message})})).then(Rh(function(){$jF(v)})):$jF(v)}else $jF(v)}; $jF=function(v){v.Sl()||(v.N=!0,v.Gb({onmdkrdy:1}),vQ(v))}; vHX=function(v){return v.T.flavor==="widevine"&&v.videoData.C("html5_drm_cpi_license_key")}; vQ=function(v){if((v.jl||v.EB.C("html5_widevine_use_fake_pssh"))&&v.N&&!v.Ze){for(;v.Z.length;){var J=v.Z[0],G=vHX(v)?$5w(J):g.hE(J.initData);if(kI(v.T)&&!J.X)v.Z.shift();else{if(v.X.get(G))if(v.T.flavor!=="fairplay"||kI(v.T)){v.Z.shift();continue}else v.X.delete(G);i0X(J);break}}v.Z.length&&v.createSession(v.Z[0])}}; JOm=function(v){var J;if(J=g.FX()){var G;J=!((G=v.L.X)==null||!G.getMetrics)}J&&(J=v.L.getMetrics())&&(J=g.yA(J),v.publish("ctmp","drm",{metrics:J}))}; GuF=function(){var v=S5s();return!(!v||v==="visible")}; KIr=function(v){var J=oHF();J&&document.addEventListener(J,v,!1)}; VOw=function(v){var J=oHF();J&&document.removeEventListener(J,v,!1)}; oHF=function(){if(document.visibilityState)var v="visibilitychange";else{if(!document[tD+"VisibilityState"])return"";v=tD+"visibilitychange"}return v}; YBL=function(v){g.X.call(this);var J=this;this.HH=v;this.K1=0;this.j=this.X=this.J=!1;this.L=0;this.gh=this.HH.B();this.videoData=this.HH.getVideoData();this.Z=g.DI(this.gh.experiments,"html5_delayed_retry_count");this.T=new g.Qq(function(){J.HH.Si()},g.DI(this.gh.experiments,"html5_delayed_retry_delay_ms")); g.k(this,this.T)}; Pet=function(v,J,G){var K=v.videoData.X,V=v.videoData.L;ov(v.HH.getVideoData())&&v.gh.C("html5_gapless_fallback_on_qoe_restart")&&rKw(v.HH,"pe");if((J==="progressive.net.retryexhausted"||J==="fmt.unplayable"||J==="fmt.decode")&&!v.HH.ZR.J&&K&&K.itag==="22")return v.HH.ZR.J=!0,v.rd("qoe.restart",{reason:"fmt.unplayable.22"}),v.HH.YC(),!0;var Y=!1;if(v.videoData.isExternallyHostedPodcast){if(Y=v.videoData.oL)G.mimeType=Y.type,v.uw("3pp",{url:Y.url});G.ns="3pp";v.HH.ze(J,1,"VIDEO_UNAVAILABLE",p6((new L6(J, G,1)).details));return!0}var r=v.K1+3E4<(0,g.yR)()||v.T.isActive();if(v.gh.C("html5_empty_src")&&v.videoData.isAd()&&J==="fmt.unplayable"&&/Empty src/.test(""+G.msg))return G.origin="emptysrc",v.rd("auth",G),!0;r||J5(v.HH.Wo())||(G.nonfg="paused",r=!0,v.HH.pauseVideo());(J==="fmt.decode"||J==="fmt.unplayable")&&(V==null?0:WE(V)||C6(V))&&(fkm(v.gh.J,V.aY),G.acfallexp=V.aY,Y=r=!0);!r&&v.Z>0&&(v.T.start(),r=!0,G.delayed="1",--v.Z);V=v.HH.Qb;!r&&((K==null?0:Q9(K))||(K==null?0:Fy(K)))&&(fkm(v.gh.J,K.aY), Y=r=!0,G.cfallexp=K.aY);if(v.gh.C("html5_ssap_ignore_decode_error_for_next_video")&&g.WG(v.videoData)&&J==="fmt.unplayable"&&G.cid&&G.ccid&&J5(v.HH.Wo())){if(G.cid!==G.ccid)return G.ignerr="1",v.rd("ssap.transitionfailure",G),!0;v.rd("ssap.transitionfailure",G);if(rO2(v.HH,J))return!0}if(!r)return qBw(v,G);if(v.gh.C("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.WG(v.videoData)&&J==="fmt.unplayable"&&G.cid&&G.ccid&&G.cid!==G.ccid&&J5(v.HH.Wo())&&(v.rd("ssap.transitionfailure",G),rO2(v.HH, J)))return!0;r=!1;v.J?v.K1=(0,g.yR)():r=v.J=!0;var E=v.videoData;if(E.wh){E=E.wh.D1();var e=Date.now()/1E3+1800;E=E6048E5&&I08(v,"signature");return!1}; I08=function(v,J){try{window.location.reload(),v.rd("qoe.restart",{detail:"pr."+J})}catch(G){}}; z3f=function(v,J){J=J===void 0?"fmt.noneavailable":J;var G=v.gh.J;G.K=!1;oC(G);v.rd("qoe.restart",{e:J,detail:"hdr"});v.HH.Si(!0)}; nHj=function(v,J,G,K,V,Y){this.videoData=v;this.T=J;this.reason=G;this.X=K;this.token=V;this.videoId=Y}; djw=function(v,J,G){this.EB=v;this.BX=J;this.HH=G;this.U=this.j=this.T=this.L=this.K=this.X=0;this.J=!1;this.N=g.DI(this.EB.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.Z=new Map}; R3X=function(v,J,G){!v.EB.C("html5_tv_ignore_capable_constraint")&&g.yW(v.EB)&&(G=G.compose(siw(v,J)));return G}; l02=function(v){if(v.HH.Wo().isInline())return AW;var J;v.C("html5_exponential_memory_for_sticky")?J=TW(v.EB.jK,"sticky-lifetime")<.5?"auto":qB[kz()]:J=qB[kz()];return g.Va("auto",J,!1,"s")}; piF=function(v,J){var G,K=Tvj(v,(G=J.T)==null?void 0:G.videoInfos);G=v.HH.getPlaybackRate();return G>1&&K?(v=OBt(v.EB.J,J.T.videoInfos,G),new KH(0,v,!0,"o")):new KH(0,0,!1,"o")}; Tvj=function(v,J){return J&&g.yW(v.EB)?J.some(function(G){return G.video.fps>32}):!1}; LIm=function(v,J){if(v.C("html5_disable_ustreamer_constraint_for_sabr")&&YJ(J.videoData))return AW;var G=v.HH.GB();v.C("html5_use_video_quality_cap_for_ustreamer_constraint")&&G&&G.Zw>0&&r3(J.videoData.rS)&&(v=G.Zw,J.videoData.rS=new KH(0,v,!1,"u"));return J.videoData.rS}; siw=function(v,J){if(g.yW(v.EB)&&R3(v.EB.J,lf.HEIGHT))var G=J.T.videoInfos[0].video.qualityOrdinal;else{var K=!!J.T.T;var V;g.fY(v.EB)&&(V=window.screen&&window.screen.width?new g.Tx(window.screen.width,window.screen.height):null);V||(V=v.EB.rF?v.EB.rF.clone():v.BX.mX());(CE||oM||K)&&V.scale(g.CY());K=V;Kh(J.videoData)||FH(J.videoData);J=J.T.videoInfos;if(J.length){V=g.DI(v.EB.experiments,"html5_override_oversend_fraction")||.85;var Y=J[0].video;Y.projectionType!=="MESH"&&Y.projectionType!=="EQUIRECTANGULAR"&& Y.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||mH||(V=.45);v=g.DI(v.EB.experiments,"html5_viewport_undersend_maximum");for(Y=0;Y0&&(G=Math.min(G,K));if(K=g.DI(v.EB.experiments,"html5_max_vertical_resolution")){v=4320;for(V=0;VK&&(v=Math.min(v,Y.video.qualityOrdinal));if(v<4320){for(V=K=0;V32){V=!0;break a}}V=!1}V&&(G=Math.min(G,K));(K=g.DI(v.EB.experiments,"html5_live_quality_cap"))&&J.videoData.isLivePlayback&&(G=Math.min(G,K));G=wis(v,J,G);v=g.DI(v.EB.experiments,"html5_byterate_soft_cap");return new KH(0,G===4320?0:G,!1,"d",v)}; Ujm=function(v){var J,G,K,V;return g.m(function(Y){switch(Y.T){case 1:return v.T.T&&typeof((J=navigator.mediaCapabilities)==null?void 0:J.decodingInfo)==="function"?g.U(Y,Promise.resolve(),2):Y.return(Promise.resolve());case 2:G=g.n(v.T.videoInfos),K=G.next();case 3:if(K.done){Y.sB(0);break}V=K.value;return g.U(Y,trm(V),4);case 4:K=G.next(),Y.sB(3)}})}; mjf=function(v,J){if(!J.videoData.X||v.C("html5_disable_performance_downgrade"))return!1;Date.now()-v.K>6E4&&(v.X=0);v.X++;v.K=Date.now();if(v.X!==4)return!1;xjB(v,J.videoData.X);return!0}; f0t=function(v,J,G,K){if(!J||!G||!J.videoData.X)return!1;var V=g.DI(v.EB.experiments,"html5_df_downgrade_thresh"),Y=v.C("html5_log_media_perf_info");if(!((0,g.yR)()-v.L<5E3?0:Y||V>0))return!1;var r=((0,g.yR)()-v.L)/1E3;v.L=(0,g.yR)();G=G.getVideoPlaybackQuality();if(!G)return!1;var E=G.droppedVideoFrames-v.j,e=G.totalVideoFrames-v.U;v.j=G.droppedVideoFrames;v.U=G.totalVideoFrames;var P=G.displayCompositedVideoFrames===0?0:G.displayCompositedVideoFrames||-1;Y&&v.EB.GG()&&v.HH.uw("ddf",{dr:G.droppedVideoFrames, de:G.totalVideoFrames,comp:P});if(K)return v.T=0,!1;if((e-E)/r>v.N||!V||g.yW(v.EB))return!1;v.T=(e>60?E/e:0)>V?v.T+1:0;if(v.T!==3)return!1;xjB(v,J.videoData.X);v.HH.uw("dfd",Object.assign({dr:G.droppedVideoFrames,de:G.totalVideoFrames},SBs()));return!0}; xjB=function(v,J){var G=J.aY,K=J.video.fps,V=J.video.qualityOrdinal-1,Y=v.Z;J=""+G+(K>49?"p60":K>32?"p48":"");G=xI(G,K,Y);V>0&&(G=Math.min(G,V));if(!GE.has(J)&&ah().includes(J)){var r=G;G=Nb();+G[J]>0&&(r=Math.min(+G[J],r));G[J]!==r&&(G[J]=r,g.SW("yt-player-performance-cap",G,2592E3))}else if(GE.has(J)||Y==null){a:{r=r===void 0?!0:r;K=ah().slice();if(r){if(K.includes(J))break a;K.push(J)}else{if(!K.includes(J))break a;K.splice(K.indexOf(J),1)}g.SW("yt-player-performance-cap-active-set",K,2592E3)}U4.set(J, G)}else GE.add(J),Y==null||Y.set(J,G);v.HH.fQ()}; oc=function(v,J){if(!J.T.T)return v.J?new KH(0,360,!1,"b"):AW;for(var G=!1,K=!1,V=g.n(J.T.videoInfos),Y=V.next();!Y.done;Y=V.next())Q9(Y.value)?G=!0:K=!0;G=G&&K;K=0;V=g.DI(v.EB.experiments,"html5_performance_cap_floor");V=v.EB.X?240:V;J=g.n(J.T.videoInfos);for(Y=J.next();!Y.done;Y=J.next()){var r=Y.value;if(!G||!Q9(r))if(Y=xI(r.aY,r.video.fps,v.Z),r=r.video.qualityOrdinal,Math.max(Y,V)>=r){K=r;break}}return new KH(0,K,!1,"b")}; Zv2=function(v,J){var G=v.HH.Wo();return G.isInline()&&!J.yN?new KH(0,480,!1,"v"):v.EB.C("html5_remove_visibility_constraint_for_background_playbacks")&&YJ(J)?AW:G.isBackground()&&yy()/1E3>60&&!g.yW(v.EB)?new KH(0,360,!1,"v"):AW}; u$w=function(v,J,G){if(v.EB.experiments.OB("html5_disable_client_autonav_cap_for_onesie")&&J.fetchType==="onesie"||g.yW(v.EB)&&(kz(-1)>=1080||J.osid))return AW;var K=g.DI(v.EB.experiments,"html5_autonav_quality_cap"),V=g.DI(v.EB.experiments,"html5_autonav_cap_idle_secs");return K&&J.isAutonav&&yy()/1E3>V?(G&&(K=wis(v,G,K)),new KH(0,K,!1,"e")):AW}; wis=function(v,J,G){if(v.C("html5_optimality_defaults_chooses_next_higher")&&G)for(v=J.T.videoInfos,J=1;J=0||(v.provider.HH.getVisibilityState()===3?v.J=!0:(v.T=g.AO(v.provider),v.delay.start()))}; kuj=function(v){if(!(v.X<0)){var J=g.AO(v.provider),G=J-v.L;v.L=J;v.playerState.state===8?v.playTimeSecs+=G:v.playerState.isBuffering()&&!g.H(v.playerState,16)&&(v.rebufferTimeSecs+=G)}}; cOm=function(v){var J;switch((J=v.EB.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"}}; Nvr=function(v){return window.PressureObserver&&new window.PressureObserver(v)}; a0m=function(v){v=v===void 0?Nvr:v;g.X.call(this);var J=this;try{this.Z=v(function(K){J.X=K.at(-1)}); var G;this.L=(G=this.Z)==null?void 0:G.observe("cpu",{sampleInterval:2E3}).catch(function(K){K instanceof DOMException&&(J.T=K)})}catch(K){K instanceof DOMException&&(this.T=K)}}; AOt=function(v){var J={},G=window.h5vcc;J.hwConcurrency=navigator.hardwareConcurrency;v.T&&(J.cpe=v.T.message);v.X&&(J.cpt=v.X.time,J.cps=v.X.state);if(G==null?0:G.cVal)J.cb2s=G.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),J.cb5s=G.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),J.cb30s=G.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return J}; FIr=function(v){var J;g.m(function(G){switch(G.T){case 1:return g.nf(G,2),g.U(G,v.L,4);case 4:g.Rm(G,3);break;case 2:g.lj(G);case 3:(J=v.Z)==null||J.disconnect(),g.zX(G)}})}; MOL=function(v,J){J?Hvr.test(v):(v=g.oS(v),Object.keys(v).includes("cpn"))}; WIt=function(v,J,G,K,V,Y,r){var E={format:"RAW"},e={};if(Y6(v)&&rx()){if(r){var P;((P=Qis.uaChPolyfill)==null?void 0:P.state.type)!==2?r=null:(r=Qis.uaChPolyfill.state.data.values,r={"Synth-Sec-CH-UA-Arch":r.architecture,"Synth-Sec-CH-UA-Model":r.model,"Synth-Sec-CH-UA-Platform":r.platform,"Synth-Sec-CH-UA-Platform-Version":r.platformVersion,"Synth-Sec-CH-UA-Full-Version":r.uaFullVersion});e=Object.assign(e,r);E.withCredentials=!0}(r=g.H$("EOM_VISITOR_DATA"))?e["X-Goog-EOM-Visitor-Id"]=r:K?e["X-Goog-Visitor-Id"]= K:g.H$("VISITOR_DATA")&&(e["X-Goog-Visitor-Id"]=g.H$("VISITOR_DATA"));G&&(e["X-Goog-PageId"]=G);(K=J.dh)&&!jv(J)&&(e["X-Goog-AuthUser"]=K);V&&(e.Authorization="Bearer "+V);J.C("enable_datasync_id_header_in_web_vss_pings")&&J.Lj&&J.datasyncId&&(e["X-YouTube-DataSync-Id"]=J.datasyncId);r||e["X-Goog-Visitor-Id"]||V||G||K?E.withCredentials=!0:J.C("html5_send_cpn_with_options")&&Hvr.test(v)&&(E.withCredentials=!0)}Object.keys(e).length>0&&(E.headers=e);Y&&(E.onFinish=Y);return Object.keys(E).length>1? E:null}; Ce8=function(v,J,G,K,V,Y,r,E){rx()&&G.token&&(v=KE(v,{ctt:G.token,cttype:G.aZ,mdx_environment:G.mdxEnvironment}));K.C("net_pings_low_priority")&&(J||(J={}),J.priority="low");Y||E&&K.C("nwl_skip_retry")?(J==null?J={}:MOL(v,K.C("html5_assert_cpn_with_regex")),r?b5().sendAndWrite(v,J):b5().sendThenWrite(v,J,E)):J?(MOL(v,K.C("html5_assert_cpn_with_regex")),K.C("net_pings_use_fetch")?o2B(v,J):g.pE(v,J)):g.cO(v,V)}; bvB=function(v){for(var J=[],G=0;G0&&G>0&&!v.X&&v.Z<1E7)try{v.L=v.J({sampleInterval:J,maxBufferSize:G});var K;(K=v.L)==null||K.addEventListener("samplebufferfull",function(){return g.m(function(V){if(V.T==1)return g.U(V,v.stop(),2);$aw(v);g.zX(V)})})}catch(V){v.X=ilw(V.message)}}; YS=function(v,J){var G,K;return!!((G=window.h5vcc)==null?0:(K=G.settings)==null?0:K.set(v,J))}; J5X=function(){var v,J,G,K=(v=window.h5vcc)==null?void 0:(J=v.settings)==null?void 0:(G=J.getPersistentSettingAsString)==null?void 0:G.call(J,"cpu_usage_tracker_intervals");if(K!=null){var V;v=(V=JSON.parse(K))!=null?V:[];V=v.filter(function(P){return P.type==="total"}).map(function(P){return P.seconds}); J=g.n(vSf);for(G=J.next();!G.done;G=J.next())G=G.value,V.indexOf(G)===-1&&v.push({type:"total",seconds:G});var Y,r;(Y=window.h5vcc)==null||(r=Y.settings)==null||r.set("cpu_usage_tracker_intervals_enabled",1);var E,e;(E=window.h5vcc)==null||(e=E.settings)==null||e.set("cpu_usage_tracker_intervals",JSON.stringify(v))}}; GEs=function(){var v=window.H5vccPlatformService,J="";if(v&&v.has("dev.cobalt.coat.clientloginfo")&&(v=v.open("dev.cobalt.coat.clientloginfo",function(){}))){var G=v.send(new ArrayBuffer(0)); G&&(J=String.fromCharCode.apply(String,g.l(new Uint8Array(G))));v.close()}return J}; g.EO=function(v,J){g.X.call(this);var G=this;this.provider=v;this.logger=new g.rZ("qoe");this.T=new Map;this.sequenceNumber=1;this.j=NaN;this.Gr="N";this.N=this.Q4=this.T6=this.dh=this.X=0;this.a$=this.jl=this.K=this.RY="";this.yy=this.Gi=NaN;this.Vn=0;this.BO=-1;this.KK=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.d_=this.isEmbargoed=this.qr=this.isOffline=this.isBuffering=!1;this.Vy=[];this.oY=null;this.o$=this.L=this.wh=this.U=!1;this.Z=-1;this.BH=!1;this.qj=new g.Qq(this.YBr,750,this);this.K4= this.adCpn=this.Ti=this.contentCpn="";this.adFormat=void 0;this.Mj=0;this.Nr=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.Xm=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.g_=!1;this.OR=NaN;this.YB=0;this.UR=!1;this.Mr=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.R$=!1;this.cO={KE:function(V){G.KE(V)}, LBl:function(){return G.J}, wE:function(){return G.contentCpn}, N2i:function(){return G.Ti}, reportStats:function(){G.reportStats()}, l5l:function(){return G.T.get("cat")||[]}, Vv:function(V){return G.T.get(V)||[]}, Ozt:function(){return G.T}, fkB:function(){return G.Mr}, z7l:function(){return{adCpn:G.adCpn,K4:G.K4,adFormat:G.adFormat}}}; this.Ze=this.provider.EB.C("html5_qoe_relaxed_reporting");var K=g.DI(this.provider.EB.experiments,"html5_qoe_proto_mock_length");K&&!rF.length&&(rF=bvB(K));g.k(this,this.qj);try{navigator.getBattery().then(function(V){G.oY=V})}catch(V){}g.qa(this,0,"vps",["N"]); v.EB.GG()&&(this.YB=(0,g.yR)(),this.OR=g.IS(function(){var V=(0,g.yR)(),Y=V-G.YB;Y>500&&G.uw("vmlock",{diff:Y.toFixed()});G.YB=V},250)); v.HH.bQ()&&J&&(this.Mr=J-Math.round(g.AO(v)*1E3));this.provider.videoData.Fz&&(this.remoteControlMode=oS2[this.provider.videoData.Fz]||0);this.provider.videoData.XB&&(J=k1w(this.provider.videoData.XB),J==null?0:J.length)&&(this.remoteConnectedDevices=J);if(v.EB.GG()||v.C("html5_log_cpu_info"))this.WH=new a0m,g.k(this,this.WH);J=g.DI(v.EB.experiments,"html5_js_self_profiler_sample_interval_ms");v=g.DI(v.EB.experiments,"html5_js_self_profiler_max_samples");J>0&&v>0&&(this.xB=new Vm(J,v),g.k(this,this.xB))}; eE=function(v,J,G){var K=v.T.get(J);K?K.push(G):v.T.set(J,[G])}; g.qa=function(v,J,G,K){eE(v,G,J.toFixed(3)+":"+K.join(":"))}; KQs=function(v,J){var G=v.adCpn||v.provider.videoData.clientPlaybackNonce,K=v.provider.getCurrentTime(G);g.qa(v,J,"cmt",[K.toFixed(3)]);K=v.provider.Qk(G);if(v.J&&K*1E3>v.J.c6+100&&v.J){var V=v.J;G=V.isAd;K=K*1E3-V.c6;v.pR=J*1E3-V.f0U-K-V.DLi;V=(0,g.yR)()-K;J=v.pR;K=v.provider.videoData;var Y=K.isAd();if(G||Y){Y=(G?"ad":"video")+"_to_"+(Y?"ad":"video");var r={};K.j&&(r.cttAuthInfo={token:K.j,videoId:K.videoId});r.startTime=V-J;aw(Y,r);g.N0({targetVideoId:K.videoId,targetCpn:K.clientPlaybackNonce}, Y);cB("pbs",V,Y)}else V=v.provider.HH.Gl(),V.j!==K.clientPlaybackNonce?(V.J=K.clientPlaybackNonce,V.X=J):K.N5()||g.Zl(new g.Mk("CSI timing logged before gllat",{cpn:K.clientPlaybackNonce}));v.uw("gllat",{l:v.pR.toFixed(),prev_ad:+G});delete v.J}}; PQ=function(v,J){J=J===void 0?NaN:J;J=J>=0?J:g.AO(v.provider);var G=v.provider.HH.fI(),K=G.nH-(v.Gi||0);K>0&&g.qa(v,J,"bwm",[K,(G.CB-(v.yy||0)).toFixed(3)]);isNaN(v.Gi)&&G.nH&&v.isOffline&&v.KE(!1);v.Gi=G.nH;v.yy=G.CB;isNaN(G.bandwidthEstimate)||g.qa(v,J,"bwe",[G.bandwidthEstimate.toFixed(0)]);v.provider.EB.GG()&&Object.keys(G.T).length!==0&&v.uw("bwinfo",G.T);if(v.provider.EB.GG()||v.provider.EB.C("html5_log_meminfo"))K=t0U(),Object.values(K).some(function(Y){return Y!==void 0})&&v.uw("meminfo", K); if(v.provider.EB.GG()||v.provider.EB.C("html5_log_cpu_info")){var V;(K=(V=v.WH)==null?void 0:AOt(V))&&Object.values(K).some(function(Y){return Y!=null})&&v.uw("cpuinfo",K)}v.xB&&v.uw("jsprof",v.xB.flush()); v.oY&&g.qa(v,J,"bat",[v.oY.level,v.oY.charging?"1":"0"]);V=v.provider.HH.getVisibilityState();v.BO!==V&&(g.qa(v,J,"vis",[V]),v.BO=V);KQs(v,J);(V=VEs(v.provider))&&V!==v.Vn&&(g.qa(v,J,"conn",[V]),v.Vn=V);YOj(v,J,G)}; YOj=function(v,J,G){if(!isNaN(G.JB)){var K=G.JB;G.X96E3&&(new g.Qq(v.reportStats,0,v)).start()}}; ESB=function(v){v.provider.videoData.Vy&&D7(v,"prefetch");v.provider.videoData.Vn&&v.uw("reload",{r:v.provider.videoData.reloadReason,ct:v.provider.videoData.Vn});v.provider.videoData.Nr&&D7(v,"monitor");v.provider.videoData.isLivePlayback&&D7(v,"live");ih&&D7(v,"streaming");v.provider.videoData.Fz&&v.uw("ctrl",{mode:v.provider.videoData.Fz},!0);if(v.provider.videoData.XB){var J=v.provider.videoData.XB.replace(/,/g,"_");v.uw("ytp",{type:J},!0)}v.provider.videoData.Qw&&(J=v.provider.videoData.Qw.replace(/,/g, "."),v.uw("ytrexp",{ids:J},!0));var G=v.provider.videoData;J=v.provider.EB.C("enable_white_noise")||v.provider.EB.C("enable_webgl_noop");G=g.Iv(G)||g.OL(G)||g.UL(G)||g.xJ(G);(J||G)&&(J=(0,g.t5)())&&v.T.set("gpu",[J]);FH(v.provider.videoData)&&g.qa(v,g.AO(v.provider),"dt",["1"]);v.provider.EB.GG()&&(J=(0,g.yR)()-v.provider.EB.rJ,v.uw("playerage",{secs:Math.pow(1.6,Math.round(Math.log(J/1E3)/Math.log(1.6))).toFixed()}));v.L=!0;v.j=g.IS(function(){v.reportStats()},1E4)}; P2f=function(v,J,G){var K=g.AO(v.provider);e7X(v,K,J,0,G);PQ(v,K);qOL(v)}; e7X=function(v,J,G,K,V){var Y=v.provider.EB.T.cbrver;v.provider.EB.T.cbr==="Chrome"&&/^96[.]/.test(Y)&&G==="net.badstatus"&&/rc\.500/.test(V)&&Daw(v,3);v.provider.EB.C("html5_use_ump")&&/b248180278/.test(V)&&Daw(v,4);Y=v.provider.getCurrentTime(v.adCpn||v.provider.videoData.clientPlaybackNonce);K=K===1?"fatal":"";G=[G,K,Y.toFixed(3)];K&&(V+=";a6s."+El());V&&G.push(tEj(V));g.qa(v,J,"error",G);v.L=!0}; $yU=function(v,J){var G=g.AO(v.provider);if(!v.provider.EB.experiments.OB("html5_refactor_sabr_video_format_selection_logging")||J.T.id!==v.RY){var K=[J.T.id,J.X,v.RY,J.reason];J.token&&K.push(J.token);g.qa(v,G,"vfs",K);v.RY=J.T.id;K=v.provider.HH.getPlayerSize();if(K.width>0&&K.height>0){K=[Math.round(K.width),Math.round(K.height)];var V=g.CY();V>1&&K.push(V);g.qa(v,G,"view",K)}v.wh||(v.provider.EB.GG()&&D7(v,"rqs2"),v.provider.videoData.T&&tp(v.provider.videoData.T)&&v.T.set("preload",["1"]));v.wh= !0;v.L=!0}J.reason==="m"&&++v.Mj===100&&Daw(v,2);g.qa(v,G,"vps",[v.Gr]);v.Ze||v.reportStats(G)}; BFf=function(v){v.Z>=0||(v.provider.EB.IR||v.provider.HH.getVisibilityState()!==3?v.Z=g.AO(v.provider):v.BH=!0)}; I7s=function(v,J,G,K){if(G!==v.Gr){v.Ze||J=10&&v.playTimeSecs<=180&&(v.T.set("qoealert",["1"]),v.d_=!0)),G!=="B"||v.Gr!=="PL"&&v.Gr!=="PB"||(v.isBuffering=!0),v.X=J);v.Gr==="PL"&&(G==="B"||G==="S")||v.provider.EB.GG()?PQ(v,J):(v.g_||G!=="PL"||(v.g_=!0,YOj(v,J,v.provider.HH.fI())),KQs(v,J));G==="PL"&&g.Wq(v.qj);var V=[G];G==="S"&&K&&V.push("ss."+K);g.qa(v,J,"vps", V);v.Gr=G;v.dh=J;v.X=J;v.L=!0}}; imw=function(v,J,G){if(v.provider.EB.experiments.OB("html5_refactor_sabr_audio_format_selection_logging")){J=G.T;var K=[J.audio&&J.video?J.LC?J.LC:"":J.id];J.hR&&J.hR.id&&K.push(J.hR.id);J=K.join(";");J!==v.K&&(K=[J,v.K,G.reason],G.token&&K.push(G.token),g.qa(v,g.AO(v.provider),"afs",K),v.K=J)}else G.T.id!==v.K&&(K=[G.T.id,v.K,G.reason],G.token&&K.push(G.token),g.qa(v,J,"afs",K),v.K=G.T.id)}; D7=function(v,J){eE(v,"cat",J)}; BQ=function(v,J,G,K,V,Y){var r=g.AO(v.provider);G!==1&&G!==3&&G!==5||g.qa(v,r,"vps",[v.Gr]);eE(v,"xvt","t."+r.toFixed(3)+";m."+Y.toFixed(3)+";g."+J+";tt."+G+";np.0;c."+K+";d."+V)}; Daw=function(v,J){v.o$||(eE(v,"fcnz",""+J),v.o$=!0)}; tEj=function(v){/[^a-zA-Z0-9;.!_-]/.test(v)&&(v=v.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return v}; h5=function(v){this.provider=v;this.K=!1;this.T=0;this.L=-1;this.N0=NaN;this.Z=0;this.segments=[];this.j=this.J=0;this.previouslyEnded=!1;this.N=this.provider.HH.getVolume();this.U=this.provider.HH.isMuted()?1:0;this.X=Ic(this.provider)}; zE=function(v){v.X.startTime=v.Z;v.X.endTime=v.T;var J=!1;v.segments.length&&g.F8(v.segments).isEmpty()?(v.segments[v.segments.length-1].previouslyEnded&&(v.X.previouslyEnded=!0),v.segments[v.segments.length-1]=v.X,J=!0):v.segments.length&&v.X.isEmpty()||(v.segments.push(v.X),J=!0);J?v.X.endTime===0&&(v.previouslyEnded=!1):v.X.previouslyEnded&&(v.previouslyEnded=!0);v.J+=v.T-v.Z;v.X=Ic(v.provider);v.X.previouslyEnded=v.previouslyEnded;v.previouslyEnded=!1;v.Z=v.T}; z78=function(v){h7s(v);v.j=g.IS(function(){v.update()},100); v.N0=g.AO(v.provider);v.X=Ic(v.provider)}; h7s=function(v){g.ze(v.j);v.j=NaN}; nSw=function(v,J,G){G-=v.N0;return J===v.T&&G>.5}; daf=function(v,J,G,K){this.EB=J;this.OR=G;this.segments=[];this.experimentIds=[];this.xB=this.R$=this.isFinal=this.delayThresholdMet=this.d_=this.KK=this.autoplay=this.autonav=!1;this.a$="yt";this.j=[];this.K=this.N=null;this.sendVisitorIdHeader=this.BH=!1;this.U=this.pageId="";this.J=G==="watchtime";this.Z=G==="playback";this.Ze=G==="atr";this.jK=G==="engage";this.sendVisitorIdHeader=!1;this.uri=this.Ze?"/api/stats/"+G:"//"+J.x6+"/api/stats/"+G;K&&(this.R$=K.fs,K.rtn&&(this.K=K.rtn),this.J?(this.playerState= K.state,K.rti>0&&(this.N=K.rti)):(this.IR=K.mos,this.HG=K.volume,K.at&&(this.adType=K.at)),K.autonav&&(this.autonav=K.autonav),K.inview!=null&&(this.yy=K.inview),K.size&&(this.Vn=K.size),K.playerwidth&&(this.playerWidth=K.playerwidth),K.playerheight&&(this.playerHeight=K.playerheight));this.Xm=g.Ni(J.T);this.U=$$(J.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.U==="all"||this.U==="once")this.g_=g.Ni(J.a$);this.F5=J.BH;this.experimentIds=pfm(J.experiments);this.RY=J.d_;this.a$=J.oY;this.region= J.region;this.userAge=J.userAge;this.Nr=J.Po;this.qj=yy();this.sendVisitorIdHeader=J.sendVisitorIdHeader;this.Mr=J.C("vss_pings_using_networkless")||J.C("kevlar_woffle");this.Bv=J.C("vss_final_ping_send_and_write");this.qr=J.C("vss_use_send_and_write");this.pageId=J.pageId;this.rJ=J.C("vss_playback_use_send_and_write");J.livingRoomAppMode&&(this.livingRoomAppMode=J.livingRoomAppMode);this.G4=J.L&&J.C("embeds_append_synth_ch_headers");g.Of(J)&&(this.jl=J.Ze);g.E9(g.X9(J))&&this.j.push(1);this.accessToken= g.cm(v);v.yT[this.OR]?this.L=v.yT[this.OR]:v.yT.playback&&(this.L=v.yT.playback);this.adFormat=v.adFormat;this.adQueryId=v.adQueryId;this.autoplay=kJ(v);this.Z&&(this.KK=(v.C("html5_enable_log_server_autoplay")||v.C("enable_cleanup_masthead_autoplay_hack_fix"))&&v.xK&&ZN(v)==="adunit"?!0:!1);this.autonav=v.isAutonav||this.autonav;this.contentVideoId=gH(v);this.clientPlaybackNonce=v.clientPlaybackNonce;this.d_=v.aR;v.j&&(this.Ti=v.j,this.o$=v.mx);v.mdxEnvironment&&(this.mdxEnvironment=v.mdxEnvironment); this.T=v.xB;this.UR=v.UR;v.X&&(this.Vy=v.X.itag,v.L&&v.L.itag!==this.Vy&&(this.wh=v.L.itag));v.T&&tp(v.T)&&(this.offlineDownloadUserChoice="1");this.eventLabel=ZN(v);this.xB=v.jK?!1:v.IR;this.Mj=v.P4;if(J=sL(v))this.E9=J;this.Hv=v.W4;this.partnerId=v.partnerId;this.eventId=v.eventId;this.playlistId=v.f6||v.playlistId;this.Wt=v.Wt;this.Fz=v.Fz;this.XB=v.XB;this.D5=v.D5;this.subscribed=v.subscribed;this.videoId=v.videoId;this.videoMetadata=v.videoMetadata;this.visitorData=v.visitorData;this.osid=v.osid; this.qT=v.qT;this.referrer=v.referrer;this.w8=v.kW||v.w8;this.WH=v.fN;this.Qd=v.Qd;this.userGenderAge=v.userGenderAge;this.HQ=v.HQ;this.embedsRct=v.embedsRct;this.embedsRctn=v.embedsRctn;g.Of(this.EB)&&v.mutedAutoplay&&(v.mutedAutoplayDurationMode===2&&v.limitedPlaybackDurationInSeconds===0&&v.endSeconds===0?this.j.push(7):this.j.push(2));v.isEmbedsShortsMode(new g.Tx(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.j.push(3);g.Km(v)&&this.j.push(4);this.Gi=v.XW;v.compositeLiveIngestionOffsetToken&& (this.compositeLiveIngestionOffsetToken=v.compositeLiveIngestionOffsetToken)}; scB=function(v,J){var G=v.sendVisitorIdHeader?v.visitorData:void 0;return g.KS(v.EB,v.accessToken).then(function(K){return WIt(v.uri,v.EB,v.pageId,G,K,J,v.G4)})}; TFw=function(v,J){return function(){v.EB.C("html5_simplify_pings")?(v.T=v.YB,v.BO=J(),v.qj=0,v.send()):scB(v).then(function(G){var K=R78(v);K.cmt=K.len;K.lact="0";var V=J().toFixed(3);K.rt=Number(V).toString();K=g.vt(v.uri,K);v.EB.C("vss_through_gel_double")&&l7w(K);v.Mr?(G==null&&(G={}),v.qr?b5().sendAndWrite(K,G):b5().sendThenWrite(K,G)):G?g.pE(K,G):g.cO(K)})}}; R78=function(v){var J={ns:v.a$,el:v.eventLabel,cpn:v.clientPlaybackNonce,ver:2,cmt:v.X(v.T),fmt:v.Vy,fs:v.R$?"1":"0",rt:v.X(v.BO),adformat:v.adFormat,content_v:v.contentVideoId,euri:v.F5,lact:v.qj,live:v.E9,cl:(742904825).toString(),mos:v.IR,state:v.playerState,volume:v.HG};v.subscribed&&(J.subscribed="1");Object.assign(J,v.Xm);v.U==="all"?Object.assign(J,v.g_):v.U==="once"&&v.Z&&Object.assign(J,v.g_);v.autoplay&&(J.autoplay="1");v.KK&&(J.sautoplay="1");v.d_&&(J.dni="1");!v.J&&v.jl&&(J.epm=pQB[v.jl]); v.isFinal&&(J["final"]="1");v.xB&&(J.splay="1");v.UR&&(J.delay=v.UR);v.RY&&(J.hl=v.RY);v.region&&(J.cr=v.region);v.userGenderAge&&(J.uga=v.userGenderAge);v.userAge!==void 0&&v.Nr&&(J.uga=v.Nr+v.userAge);v.YB!==void 0&&(J.len=v.X(v.YB));!v.J&&v.experimentIds.length>0&&(J.fexp=v.experimentIds.toString());v.K!==null&&(J.rtn=v.X(v.K));v.w8&&(J.feature=v.w8);v.Fz&&(J.ctrl=v.Fz);v.XB&&(J.ytr=v.XB);v.wh&&(J.afmt=v.wh);v.offlineDownloadUserChoice&&(J.ODUC=v.offlineDownloadUserChoice);v.oY&&(J.lio=v.X(v.oY)); v.J?(J.idpj=v.Mj,J.ldpj=v.Hv,v.delayThresholdMet&&(J.dtm="1"),v.N!=null&&(J.rti=v.X(v.N)),v.HQ&&(J.ald=v.HQ),v.compositeLiveIngestionOffsetToken&&(J.clio=v.compositeLiveIngestionOffsetToken)):v.adType!==void 0&&(J.at=v.adType);v.Vn&&(v.Z||v.J)&&(J.size=v.Vn);v.Z&&v.j.length&&(J.pbstyle=v.j.join(","));v.yy!=null&&(v.Z||v.J)&&(J.inview=v.X(v.yy));v.J&&(J.volume=nl(v,g.yn(v.segments,function(K){return K.volume})),J.st=nl(v,g.yn(v.segments,function(K){return K.startTime})),J.et=nl(v,g.yn(v.segments,function(K){return K.endTime})), yM(v.segments,function(K){return K.playbackRate!==1})&&(J.rate=nl(v,g.yn(v.segments,function(K){return K.playbackRate}))),yM(v.segments,function(K){return K.T!=="-"})&&(J.als=g.yn(v.segments,function(K){return K.T}).join(",")),yM(v.segments,function(K){return K.previouslyEnded})&&(J.pe=g.yn(v.segments,function(K){return""+ +K.previouslyEnded}).join(","))); J.muted=nl(v,g.yn(v.segments,function(K){return K.muted?1:0})); yM(v.segments,function(K){return K.visibilityState!==0})&&(J.vis=nl(v,g.yn(v.segments,function(K){return K.visibilityState}))); yM(v.segments,function(K){return K.connectionType!==0})&&(J.conn=nl(v,g.yn(v.segments,function(K){return K.connectionType}))); yM(v.segments,function(K){return K.X!==0})&&(J.blo=nl(v,g.yn(v.segments,function(K){return K.X}))); yM(v.segments,function(K){return!!K.Z})&&(J.blo=g.yn(v.segments,function(K){return K.Z}).join(",")); yM(v.segments,function(K){return!!K.compositeLiveStatusToken})&&(J.cbs=g.yn(v.segments,function(K){return K.compositeLiveStatusToken}).join(",")); yM(v.segments,function(K){return K.L!=="-"})&&(J.cc=g.yn(v.segments,function(K){return K.L}).join(",")); yM(v.segments,function(K){return K.clipId!=="-"})&&(J.clipid=g.yn(v.segments,function(K){return K.clipId}).join(",")); if(yM(v.segments,function(K){return!!K.audioId})){var G="au"; v.Z&&(G="au_d");J[G]=g.yn(v.segments,function(K){return K.audioId}).join(",")}rx()&&v.Ti&&(J.ctt=v.Ti,J.cttype=v.o$,J.mdx_environment=v.mdxEnvironment); v.jK&&(J.etype=v.dh!==void 0?v.dh:0);v.WH&&(J.uoo=v.WH);v.livingRoomAppMode&&v.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(J.clram=LQs[v.livingRoomAppMode]||v.livingRoomAppMode);v.L?y5f(v,J):(J.docid=v.videoId,J.referrer=v.referrer,J.ei=v.eventId,J.of=v.qT,J.osid=v.osid,J.vm=v.videoMetadata,v.adQueryId&&(J.aqi=v.adQueryId),v.autonav&&(J.autonav="1"),v.playlistId&&(J.list=v.playlistId),v.D5&&(J.ssrt="1"),v.Qd&&(J.upt=v.Qd));v.Z&&(v.embedsRct&&(J.rct=v.embedsRct),v.embedsRctn&&(J.rctn= v.embedsRctn),v.compositeLiveIngestionOffsetToken&&(J.clio=v.compositeLiveIngestionOffsetToken));v.Gi&&(J.host_cpn=v.Gi);return J}; y5f=function(v,J){if(J&&v.L){var G=new Set(["q","feature","mos"]),K=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),V=new Set(["aqi","autonav","list","ssrt","upt"]);v.L.ns==="3pp"&&(J.ns="3pp");for(var Y=g.n(Object.keys(v.L)),r=Y.next();!r.done;r=Y.next())r=r.value,K.has(r)||G.has(r)||V.has(r)&&!v.L[r]||(J[r]=v.L[r])}}; nl=function(v,J){return g.yn(J,v.X).join(",")}; l7w=function(v){v.indexOf("watchtime")!==-1&&g.ql("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:v}})}; wQw=function(v,J){v.attestationResponse&&scB(v).then(function(G){G=G||{};G.method="POST";G.postParams={atr:v.attestationResponse};v.Mr?v.qr?b5().sendAndWrite(J,G):b5().sendThenWrite(J,G):g.pE(J,G)})}; dF=function(v){g.X.call(this);this.provider=v;this.j="paused";this.J=NaN;this.K=[10,10,10,40];this.N=this.U=0;this.Ti=this.Ze=this.dh=this.oY=this.Z=!1;this.X=this.L=NaN;this.logger=new g.rZ("vss");this.T=new h5(v)}; SOs=function(v){if(!v.Z){v.provider.videoData.hA===16623&&g.Zl(Error("Playback for EmbedPage"));var J=sO(v,"playback");v.K=Olt(v);z78(v.T);J.K=Rc(v);v.X>0&&(J.T-=v.X);J.send();if(v.provider.videoData.DW){J=v.provider.EB;var G=v.provider.videoData,K={html5:"1",video_id:G.videoId,cpn:G.clientPlaybackNonce,ei:G.eventId,ptk:G.DW,oid:G.qR,ptchn:G.yD,pltype:G.SY,content_v:gH(G)};G.MC&&Object.assign(K,{m:G.MC});J=g.vt(J.Ks+"ptracking",K);Ua2(v,J)}v.provider.videoData.UR||(xaw(v),ma8(v),v.D8());v.Z=!0;v= v.T;v.T=v.Qk();v.N0=g.AO(v.provider);!(v.Z===0&&v.T<5)&&v.T-v.Z>2&&(v.Z=v.T);v.K=!0}}; Olt=function(v){var J=v.provider.videoData.P4,G=v.provider.videoData.W4,K=[10+J,10,10,40+G-J,40],V,Y=(V=v.provider.videoData.getPlayerResponse())==null?void 0:V.playbackTracking,r=Y==null?void 0:Y.videostatsScheduledFlushWalltimeSeconds;V=Y==null?void 0:Y.videostatsDefaultFlushIntervalSeconds;if(!(r&&r.length>0&&V))return v.logger.T(347111855,"Unexpected scheduled pings config "+r+" "+V),K;J=[r[0]+J].concat(g.l(r.slice(1).map(function(E,e){return E-r[e]})),[V+G-J, V]);return J.some(function(E){return E<0})?(v.logger.T(347111855,"Neg vss scheduled pings "+r+" "+V),K):J}; Rc=function(v,J){J=J===void 0?NaN:J;var G=g.AO(v.provider);J=isNaN(J)?G:J;J=Math.ceil(J);var K=v.K[v.U];v.U+11E3;!(Y.length>1)&&Y[0].isEmpty()||E||(r.K=Rc(v,V));r.send();v.N++}},(V-G)*1E3); return v.L=V}; l2=function(v){g.hh(v.J);v.J=NaN}; f7j=function(v){v.T.update();v=v.T;v.segments.length&&v.T===v.Z||zE(v);var J=v.segments;v.segments=[];return J}; sO=function(v,J){var G=uQ2(v.provider);Object.assign(G,{state:v.j});J=new daf(v.provider.videoData,v.provider.EB,J,G);J.T=v.provider.HH.Qk();G=v.provider.videoData.clientPlaybackNonce;J.T=v.provider.HH.hG(G);v.provider.videoData.isLivePlayback||(J.YB=v.provider.HH.getDuration(G));v.provider.videoData.T&&(G=v.provider.videoData.T.IA(J.T))&&(J.oY=G-J.T,v.provider.EB.C("html5_disable_live_dvr_shrink_for_cdm_vss")&&NN(v.provider.videoData)&&(J.T+=v.provider.HH.B$(),J.oY-=v.provider.HH.B$()));J.BO=g.AO(v.provider); J.segments=[Ic(v.provider)];return J}; Zlw=function(v,J){var G=sO(v,"watchtime");gSm(v)&&(G.delayThresholdMet=!0,v.dh=!0);if(v.X>0){for(var K=g.n(J),V=K.next();!V.done;V=K.next())V=V.value,V.startTime-=v.X,V.endTime-=v.X;G.T-=v.X}else G.T=v.T.bl();G.segments=J;return G}; TE=function(v,J){var G=XQj(v,!isNaN(v.L));J&&(v.L=NaN);return G}; XQj=function(v,J){var G=Zlw(v,f7j(v));!isNaN(v.L)&&J&&(G.N=v.L);return G}; gSm=function(v){var J;if(J=v.provider.videoData.isLoaded()&&v.provider.videoData.UR&&v.Z&&!v.dh)J=v.T,J=J.J+J.Qk()-J.Z>=v.provider.videoData.UR;return!!J}; xaw=function(v){v.provider.videoData.youtubeRemarketingUrl&&!v.Ze&&(Ua2(v,v.provider.videoData.youtubeRemarketingUrl),v.Ze=!0)}; ma8=function(v){v.provider.videoData.googleRemarketingUrl&&!v.Ti&&(Ua2(v,v.provider.videoData.googleRemarketingUrl),v.Ti=!0)}; kEw=function(v){if(!v.Sl()&&v.Z){v.j="paused";var J=TE(v);J.isFinal=!0;J.send();v.dispose()}}; c5F=function(v,J){if(!v.Sl())if(g.H(J.state,2)||g.H(J.state,512)){if(v.j="paused",g.Bs(J,2)||g.Bs(J,512))g.Bs(J,2)&&(v.T.previouslyEnded=!0),v.Z&&(l2(v),TE(v).send(),v.L=NaN)}else if(g.H(J.state,8)){v.j="playing";var G=v.Z&&isNaN(v.J)?Rc(v):NaN;if(!isNaN(G)&&(tk(J,64)<0||tk(J,512)<0)){var K=XQj(v,!1);K.K=G;K.send()}g.Bs(J,16)&&J.state.seekSource===58&&(v.T.previouslyEnded=!0)}else v.j="paused"}; NF8=function(v,J,G){if(!v.oY){G||(G=sO(v,"atr"));G.attestationResponse=J;try{G.send()}catch(K){if(K.message!=="Unknown Error")throw K;}v.oY=!0}}; Ua2=function(v,J){var G=v.provider.EB;g.KS(v.provider.EB,g.cm(v.provider.videoData)).then(function(K){var V=v.provider.EB.pageId,Y=v.provider.EB.sendVisitorIdHeader?v.provider.videoData.visitorData:void 0,r=v.provider.EB.C("vss_pings_using_networkless")||v.provider.EB.C("kevlar_woffle"),E=v.provider.EB.C("allow_skip_networkless");K=WIt(J,G,V,Y,K);Ce8(J,K,{token:v.provider.videoData.j,aZ:v.provider.videoData.mx,mdxEnvironment:v.provider.videoData.mdxEnvironment},G,void 0,r&&!E,!1,!0)})}; a7f=function(){this.endTime=this.startTime=-1;this.L="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.X=0;this.compositeLiveStatusToken=this.Z=void 0;this.volume=this.connectionType=0;this.muted=!1;this.T=this.clipId="-";this.previouslyEnded=!1}; pl=function(v,J,G){this.videoData=v;this.EB=J;this.HH=G;this.T=void 0}; g.AO=function(v){return A5j(v)()}; A5j=function(v){if(!v.T){var J=g.jm(function(K){var V=(0,g.yR)();K&&V<=631152E6&&(v.HH.uw("ytnerror",{issue:28799967,value:""+V}),V=(new Date).getTime()+2);return V},v.EB.C("html5_validate_yt_now")),G=J(); v.T=function(){return Math.round(J()-G)/1E3}; v.HH.W2()}return v.T}; uQ2=function(v){var J=v.HH.M_()||{};J.fs=v.HH.Oq();J.volume=v.HH.getVolume();J.muted=v.HH.isMuted()?1:0;J.mos=J.muted;J.clipid=v.HH.nX();var G;J.playerheight=((G=v.HH.getPlayerSize())==null?void 0:G.height)||0;var K;J.playerwidth=((K=v.HH.getPlayerSize())==null?void 0:K.width)||0;v=v.videoData;G={};v.X&&(G.fmt=v.X.itag,v.L&&(v.KK?v.L.itag!==v.X.itag:v.L.itag!=v.X.itag)&&(G.afmt=v.L.itag));G.ei=v.eventId;G.list=v.playlistId;G.cpn=v.clientPlaybackNonce;v.videoId&&(G.v=v.videoId);v.Yv&&(G.infringe=1); (v.jK?0:v.IR)&&(G.splay=1);(K=sL(v))&&(G.live=K);v.xK&&(G.sautoplay=1);v.Qu&&(G.autoplay=1);v.Wt&&(G.sdetail=v.Wt);v.partnerId&&(G.partnerid=v.partnerId);v.osid&&(G.osid=v.osid);v.YE&&(G.cc=g.mJX(v.YE));return Object.assign(J,G)}; VEs=function(v){var J=Ept();if(J)return FQX[J]||FQX.other;if(g.yW(v.EB)){v=navigator.userAgent;if(/[Ww]ireless[)]/.test(v))return 3;if(/[Ww]ired[)]/.test(v))return 30}return 0}; Ic=function(v){var J=new a7f,G;J.L=((G=uQ2(v).cc)==null?void 0:G.toString())||"-";J.playbackRate=v.HH.getPlaybackRate();G=v.HH.getVisibilityState();G!==0&&(J.visibilityState=G);v.EB.wh&&(J.X=1);J.Z=v.videoData.a8;J.compositeLiveStatusToken=v.videoData.compositeLiveStatusToken;G=v.HH.getAudioTrack();G.hR&&G.hR.id&&G.hR.id!=="und"&&(J.audioId=G.hR.id);J.connectionType=VEs(v);J.volume=v.HH.getVolume();J.muted=v.HH.isMuted();J.clipId=v.HH.nX()||"-";J.T=v.videoData.Gf||"-";return J}; g.Ll=function(v,J){g.X.call(this);var G=this;this.provider=v;this.L=!1;this.Z=new Map;this.Gr=new g.JZ;this.cO={KBU:function(){return G.qoe}, V9t:function(){return G.T}, cnB:function(){return G.X}}; this.provider.videoData.B1()&&!this.provider.videoData.im&&(this.T=new dF(this.provider),this.T.X=this.provider.videoData.Mj/1E3,g.k(this,this.T),this.qoe=new g.EO(this.provider,J),g.k(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Am=this.provider.videoData.clientPlaybackNonce)&&this.Z.set(this.Am,this.T));if(v.EB.playerCanaryState==="canary"||v.EB.playerCanaryState==="holdback")this.X=new Kl(this.provider),g.k(this,this.X)}; Hlm=function(v){return!!v.T&&!!v.qoe}; ym=function(v){v.X&&Xiw(v.X);v.qoe&&BFf(v.qoe)}; MEm=function(v){if(v.qoe){v=v.qoe;for(var J=v.provider.videoData,G=v.provider.EB,K=g.n(G.BU),V=K.next();!V.done;V=K.next())D7(v,V.value);if(v.provider.C("html5_enable_qoe_cat_list"))for(K=g.n(J.fF),V=K.next();!V.done;V=K.next())D7(v,V.value);else J.BU&&D7(v,v.provider.videoData.BU);J.yn()&&(K=J.T,Pm(J)&&D7(v,"manifestless"),K&&lB(K)&&D7(v,"live-segment-"+lB(K).toFixed(1)));YJ(J)?D7(v,"sabr"):v.Fw(Bm(J));if(av(J)||J.i9())J.i9()&&D7(v,"ssa"),D7(v,"lifa");NN(J)&&D7(v,"cdm");J.gatewayExperimentGroup&& (K=J.gatewayExperimentGroup,K==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?K="spkadtrt":K==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(K="spkadctrl"),D7(v,K));G.oY!=="yt"&&v.T.set("len",[J.lengthSeconds.toFixed(2)]);J.cotn&&!FH(J)&&v.KE(!0);G.GG()&&(J=GEs())&&v.uw("cblt",{m:J});if(G.C("html5_log_screen_diagonal")){G=v.uw;var Y;J=((Y=window.H5vccScreen)==null?0:Y.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;G.call(v,"cbltdiag",{v:J})}}}; QcX=function(v){if(v.provider.HH.bQ()){if(v.L)return;v.L=!0}v.T&&SOs(v.T);if(v.X){v=v.X;var J=g.AO(v.provider);v.T<0&&(v.T=J,v.delay.start());v.X=J;v.L=J}}; WQr=function(v,J){v.T&&(v=v.T,J===58?v.T.update():v.Z&&(l2(v),TE(v).send(),v.L=NaN))}; C2r=function(v,J){if(g.Bs(J,1024)||g.Bs(J,512)||g.Bs(J,4)){if(v.X){var G=v.X;G.X>=0||(G.T=-1,G.delay.stop())}v.qoe&&(G=v.qoe,G.U||(G.Z=-1))}if(v.provider.videoData.enableServerStitchedDai&&v.Am){var K;(K=v.Z.get(v.Am))==null||c5F(K,J)}else v.T&&c5F(v.T,J);if(v.qoe){K=v.qoe;G=J.state;var V=g.AO(K.provider),Y=K.getPlayerState(G);I7s(K,V,Y,G.seekSource||void 0);Y=G.c8;g.H(G,128)&&Y&&(Y.j8=Y.j8||"",e7X(K,V,Y.errorCode,Y.LI,Y.j8));(g.H(G,2)||g.H(G,128))&&K.reportStats(V);G.isPlaying()&&!K.U&&(K.Z>=0&& K.T.set("user_intent",[K.Z.toString()]),K.U=!0);qOL(K)}v.X&&(K=v.X,kuj(K),K.playerState=J.state,K.X>=0&&g.Bs(J,16)&&K.seekCount++,J.state.isError()&&K.send());v.provider.HH.bQ()&&(v.Gr=J.state)}; blF=function(v){v.X&&v.X.send();if(v.qoe){var J=v.qoe;if(J.L){J.Gr==="PL"&&(J.Gr="N");var G=g.AO(J.provider);g.qa(J,G,"vps",[J.Gr]);J.U||(J.Z>=0&&J.T.set("user_intent",[J.Z.toString()]),J.U=!0);J.provider.EB.GG()&&J.uw("finalized",{});J.qr=!0;J.reportStats(G)}}if(v.provider.videoData.enableServerStitchedDai)for(J=g.n(v.Z.values()),G=J.next();!G.done;G=J.next())kEw(G.value);else v.T&&kEw(v.T);v.dispose()}; j4F=function(v,J){v.T&&NF8(v.T,J)}; iDU=function(v){if(!v.T)return null;var J=sO(v.T,"atr");return function(G){v.T&&NF8(v.T,G,J)}}; $u2=function(v,J,G,K){G.adFormat=G.a$;var V=J.HH;J=new dF(new pl(G,J.EB,{getDuration:function(){return G.lengthSeconds}, getCurrentTime:function(){return V.getCurrentTime()}, Qk:function(){return V.Qk()}, hG:function(){return V.hG()}, bQ:function(){return V.bQ()}, fI:function(){return V.fI()}, getPlayerSize:function(){return V.getPlayerSize()}, getAudioTrack:function(){return G.getAudioTrack()}, getPlaybackRate:function(){return V.getPlaybackRate()}, Hy:function(){return V.Hy()}, getVisibilityState:function(){return V.getVisibilityState()}, Gl:function(){return V.Gl()}, M_:function(){return V.M_()}, getVolume:function(){return V.getVolume()}, isMuted:function(){return V.isMuted()}, Oq:function(){return V.Oq()}, nX:function(){return V.nX()}, getProximaLatencyPreference:function(){return V.getProximaLatencyPreference()}, W2:function(){V.W2()}, uw:function(Y,r){V.uw(Y,r)}, iF:function(){return V.iF()}, B$:function(){return V.B$()}})); J.X=K;g.k(v,J);return J}; veL=function(){this.JB=0;this.Z=this.CB=this.nH=this.X=NaN;this.T={};this.bandwidthEstimate=NaN}; wF=function(v,J,G){g.X.call(this);var K=this;this.EB=v;this.HH=J;this.X=G;this.T=new Map;this.Am="";this.cO={dH:function(){return Array.from(K.T.keys())}}}; J_s=function(v,J){v.T.has(J)&&(blF(v.T.get(J)),v.T.delete(J))}; GSm=function(){this.T=g.KT;this.array=[]}; Khs=function(v,J,G){var K=[];for(J=oef(v,J);JG)break}return K}; ViX=function(v,J){var G=[];v=g.n(v.array);for(var K=v.next();!K.done&&!(K=K.value,K.contains(J)&&G.push(K),K.start>J);K=v.next());return G}; YqB=function(v){return v.array.slice(oef(v,0x7ffffffffffff),v.array.length)}; oef=function(v,J){v=r6(v.array,function(G){return J-G.start||1}); return v<0?-(v+1):v}; r_B=function(v,J){var G=NaN;v=g.n(v.array);for(var K=v.next();!K.done;K=v.next())if(K=K.value,K.contains(J)&&(isNaN(G)||K.endJ&&(isNaN(G)||K.startv.mediaTime+v.J&&J1)v.L=!0;if((V===void 0?0:V)||isNaN(v.X))v.X=J;if(v.T)J!==v.mediaTime&&(v.T=!1);else if(J>0&&v.mediaTime===J){V=1500;if(v.EB.C("html5_buffer_underrun_transition_fix")){V=g.DI(v.EB.experiments,"html5_min_playback_advance_for_steady_state_secs");var Y=g.DI(v.EB.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");V=V>0&&Y>0&&Math.abs(J-v.X)(K||!v.L?V:400)}v.mediaTime=J;v.Z=G;return!1}; tiU=function(v,J){this.videoData=v;this.T=J}; B1s=function(v,J,G){return J.zf(G).then(function(){return ma(new tiU(J,J.Z))},function(K){K instanceof Error&&g.Zl(K); var V=Uj('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),Y=m9('audio/mp4; codecs="mp4a.40.2"'),r=V||Y,E=J.isLivePlayback&&!g.GW(v.J,!0);K="fmt.noneavailable";E?K="html5.unsupportedlive":r||(K="html5.missingapi");r=E||!r?2:1;V={buildRej:"1",a:J.b4(),d:!!J.BO,drm:J.cw(),f18:J.Es.indexOf("itag=18")>=0,c18:V};J.T&&(J.cw()?(V.f142=!!J.T.T["142"],V.f149=!!J.T.T["149"],V.f279=!!J.T.T["279"]):(V.f133=!!J.T.T["133"],V.f140=!!J.T.T["140"],V.f242=!!J.T.T["242"]),V.cAAC=Y,V.cAVC=m9('video/mp4; codecs="avc1.42001E"'), V.cVP9=m9('video/webm; codecs="vp9"'));J.J&&(V.drmsys=J.J.keySystem,Y=0,J.J.T&&(Y=Object.keys(J.J.T).length),V.drmst=Y);return new L6(K,V,r)})}; xS=function(v){this.data=window.Float32Array?new Float32Array(v):Array(v);this.X=this.T=v-1}; I9s=function(v){return v.data[v.T]||0}; hWX=function(v){this.J=v;this.Z=this.X=0;this.L=new xS(50)}; SE=function(v,J,G){g.qU.call(this);this.videoData=v;this.experiments=J;this.J=G;this.X=[];this.Iz=0;this.Z=!0;this.L=!1;this.j=0;G=new zWr;v.latencyClass==="ULTRALOW"&&(G.J=!1);v.Nr?G.X=3:g.yf(v)&&(G.X=2);v.latencyClass==="NORMAL"&&(G.L=!0);g.DI(J,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.DI(J,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||v.latencyClass!=="LOW"&&v.latencyClass!=="ULTRALOW"||(G.L=!0);var K=g.DI(J,"html5_liveness_drift_proxima_override");if(Bm(v)!== 0&&K){G.T=K;var V;((V=v.T)==null?0:SPt(V))&&G.T--}YJ(v)&&J.OB("html5_sabr_parse_live_metadata_playback_boundaries")&&(G.N=!0);if(g.aS("trident/")||g.aS("edge/"))V=g.DI(J,"html5_platform_minimum_readahead_seconds")||3,G.Z=Math.max(G.Z,V);g.DI(J,"html5_minimum_readahead_seconds")&&(G.Z=g.DI(J,"html5_minimum_readahead_seconds"));g.DI(J,"html5_maximum_readahead_seconds")&&(G.U=g.DI(J,"html5_maximum_readahead_seconds"));J.OB("html5_force_adaptive_readahead")&&(G.J=!0);if(V=g.DI(J,"html5_liveness_drift_chunk_override"))G.T= V;DN(v)&&(G.T=(G.T+1)/5,v.latencyClass==="LOW"&&(G.T*=2));if(v.latencyClass==="ULTRALOW"||v.latencyClass==="LOW")G.j=g.DI(J,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,G.K=g.DI(J,"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=G;this.K=this.policy.X!==1;this.T=mQ(this,neU(this,isNaN(v.liveChunkReadahead)?3:v.liveChunkReadahead,v))}; duj=function(v,J){if(J)return J=v.videoData,J=neU(v,isNaN(J.liveChunkReadahead)?3:J.liveChunkReadahead,J),mQ(v,J);if(v.X.length){if(Math.min.apply(null,v.X)>1)return mQ(v,v.T-1);if(v.policy.J)return mQ(v,v.T+1)}return v.T}; s4f=function(v,J){if(!v.X.length)return!1;var G=v.T;v.T=duj(v,J===void 0?!1:J);if(J=G!==v.T)v.X=[],v.Iz=0;return J}; fl=function(v,J){return J>=v.O6()-RWw(v)}; l9L=function(v,J,G){J=fl(v,J);G||J?J&&(v.Z=!0):v.Z=!1;v.K=v.policy.X===2||v.policy.X===3&&v.Z}; T1F=function(v,J){J=fl(v,J);v.L!==J&&v.publish("livestatusshift",J);v.L=J}; RWw=function(v){var J=v.policy.T;v.L||(J=Math.max(J-1,0));return J*Z7(v)}; neU=function(v,J,G){G.Nr&&J--;DN(G)&&(J=1);if(Bm(G)!==0&&(v=g.DI(v.experiments,"html5_live_chunk_readahead_proxima_override"))){J=v;var K;((K=G.T)==null?0:SPt(K))&&J++}return J}; Z7=function(v){return v.videoData.T?lB(v.videoData.T)||5:5}; mQ=function(v,J){J=Math.max(Math.max(1,Math.ceil(v.policy.Z/Z7(v))),J);return Math.min(Math.min(8,Math.floor(v.policy.U/Z7(v))),J)}; zWr=function(){this.Z=0;this.U=Infinity;this.J=!0;this.T=2;this.X=1;this.L=!1;this.K=10;this.N=!1;this.j=1}; XQ=function(v){g.X.call(this);this.HH=v;this.T=0;this.X=null;this.j=this.L=0;this.Z={};this.EB=this.HH.B();this.J=new g.Qq(this.J7,1E3,this);this.Nr=new u2({delayMs:g.DI(this.EB.experiments,"html5_seek_timeout_delay_ms")});this.Mr=new u2({delayMs:g.DI(this.EB.experiments,"html5_long_rebuffer_threshold_ms")});this.wh=gF(this,"html5_seek_set_cmt");this.Gi=gF(this,"html5_seek_jiggle_cmt");this.xB=gF(this,"html5_seek_new_elem");this.R$=gF(this,"html5_unreported_seek_reseek");this.dh=gF(this,"html5_long_rebuffer_jiggle_cmt"); this.qr=gF(this,"html5_long_rebuffer_ssap_clip_not_match");this.Ze=new u2({delayMs:2E4});this.RY=gF(this,"html5_seek_new_elem_shorts");this.WH=gF(this,"html5_seek_new_media_source_shorts_reuse");this.BH=gF(this,"html5_seek_new_media_element_shorts_reuse");this.jl=gF(this,"html5_reseek_after_time_jump");this.U=gF(this,"html5_gapless_handoff_close_end_long_rebuffer");this.oY=gF(this,"html5_gapless_slow_seek");this.N=gF(this,"html5_gapless_slice_append_stuck");this.Ti=gF(this,"html5_gapless_slow_start"); this.K=gF(this,"html5_ads_preroll_lock_timeout");this.UR=gF(this,"html5_ssap_ad_longrebuffer_new_element");this.o$=new u2({delayMs:g.DI(this.EB.experiments,"html5_skip_slow_ad_delay_ms")||5E3,QW:!this.EB.C("html5_report_slow_ads_as_error")});this.d_=new u2({delayMs:g.DI(this.EB.experiments,"html5_skip_slow_ad_delay_ms")||5E3,QW:!this.EB.C("html5_skip_slow_buffering_ad")});this.g_=new u2({delayMs:g.DI(this.EB.experiments,"html5_slow_start_timeout_delay_ms")});this.YB=gF(this,"html5_slow_start_no_media_source"); g.k(this,this.J)}; gF=function(v,J){var G=g.DI(v.EB.experiments,J+"_delay_ms");v=v.EB.C(J+"_cfl");return new u2({delayMs:G,QW:v})}; pT2=function(v,J){v.T=J}; kS=function(v,J,G,K,V,Y,r,E){J.test(G)?(v.rd(V,J,r),J.QW||Y()):(J.Bf&&J.X&&!J.L?(G=(0,g.yR)(),K?J.T||(J.T=G):J.T=0,Y=!K&&G-J.X>J.Bf,G=J.T&&G-J.T>J.mq||Y?J.L=!0:!1):G=!1,G&&(E=Object.assign({},v.u9(J),E),E.wn=r,E.we=V,E.wsuc=K,v.HH.uw("workaroundReport",E),K&&(J.reset(),v.Z[V]=!1)))}; u2=function(v){var J=v===void 0?{}:v;v=J.delayMs===void 0?0:J.delayMs;var G=J.mq===void 0?1E3:J.mq;var K=J.Bf===void 0?3E4:J.Bf;J=J.QW===void 0?!1:J.QW;this.T=this.X=this.Z=this.startTimestamp=0;this.L=!1;this.J=Math.ceil(v/1E3);this.mq=G;this.Bf=K;this.QW=J}; ODj=function(v){g.X.call(this);var J=this;this.HH=v;this.K=this.T=this.Qb=this.mediaElement=this.playbackData=null;this.Z=0;this.J=this.Ti=this.L=null;this.dh=!1;this.o$=0;this.oY=!1;this.timestampOffset=0;this.U=!0;this.Gi=0;this.xB=this.g_=!1;this.j=0;this.WH=!1;this.Ze=0;this.EB=this.HH.B();this.videoData=this.HH.getVideoData();this.policy=new Lhf;this.N=new XQ(this.HH);this.Nr=this.jl=this.YB=this.X=NaN;this.qr=new g.Qq(function(){y_w(J,!1)},2E3); this.d_=new g.Qq(function(){cQ(J)}); this.RY=new g.Qq(function(){J.dh=!0;wTj(J,{})}); this.wh=NaN;this.Mr=new g.Qq(function(){var G=J.EB.jK;G.T+=1E4/36E5;G.T-G.Z>1/6&&(F$j(G),G.Z=G.T);J.Mr.start()},1E4); g.k(this,this.N);g.k(this,this.qr);g.k(this,this.RY);g.k(this,this.d_);g.k(this,this.Mr)}; mum=function(v,J){v.playbackData=J;v.videoData.isLivePlayback&&(v.K=new hWX(function(){a:{if(v.playbackData&&v.playbackData.T.T){if(Pm(v.videoData)&&v.Qb){var G=v.Qb.aj.gK()||0;break a}if(v.videoData.T){G=v.videoData.T.Ze;break a}}G=0}return G}),v.T=new SE(v.videoData,v.EB.experiments,function(){return v.j3(!0)})); Na(v.HH)?(J=Uu2(v),J.wy?(YJ(v.videoData)&&v.Ei(J.wy,J.startSeconds),v.Z=J.startSeconds):J.startSeconds>0&&v.seekTo(J.startSeconds,{nK:"seektimeline_startPlayback",seekSource:15}),v.U=!1):xuL(v)||(v.Z=v.Z||(g.WG(v.videoData)?0:v.videoData.startSeconds)||0)}; f9w=function(v,J){(v.Qb=J)?Sqt(v,!0):ac(v)}; ZDt=function(v,J){g.Wq(v.N.J);v.C("html5_exponential_memory_for_sticky")&&(J.state.isPlaying()?g.Wq(v.Mr):v.Mr.stop());if(v.mediaElement)if(J.oldState.state===8&&qH(J.state)&&J.state.isBuffering()){J=v.mediaElement.getCurrentTime();var G=v.mediaElement.dK();var K=v.C("manifestless_post_live_ufph")||v.C("manifestless_post_live")?YG(G,Math.max(J-3.5,0)):YG(G,J-3.5);K>=0&&J>G.end(K)-1.1&&K+10?(A5(v.HH,v.getCurrentTime()+v.videoData.limitedPlaybackDurationInSeconds),v.xB=!0):v.videoData.isLivePlayback&&v.videoData.endSeconds>0&&(A5(v.HH,v.getCurrentTime()+v.videoData.endSeconds),v.xB=!0))}; ge2=function(v,J){var G=v.getCurrentTime(),K=v.isAtLiveHead(G);if(v.K&&K){var V=v.K;if(V.T&&!(G>=V.X&&G50&&V.X.shift())),V=v.T,l9L(V,G,J===void 0?!0:J),T1F(V,G),J&&y_w(v,!0));K!==v.g_&&(J=v.getCurrentTime()-v.Nr<=500,G=v.o$>=1E3,J||G||(J=v.HH.zG(),J.qoe&&(J=J.qoe,G=g.AO(J.provider), g.qa(J,G,"lh",[K?"1":"0"])),v.g_=K,v.o$++,v.Nr=v.getCurrentTime()))}; y_w=function(v,J){if(v.T){var G=v.T;var K=v.getCurrentTime();!fl(G,K)&&G.a6()?(G.policy.L&&(G.policy.T=Math.max(G.policy.T+G.policy.j,G.policy.K)),G=Infinity):G=K0&&jP(v.mediaElement)>0&&(v.X=FQ(v,v.X,!1)),!v.mediaElement||!a9w(v))v.d_.start(750);else if(!isNaN(v.X)&&isFinite(v.X)){var J=v.jl-(v.X-v.timestampOffset);if(!(J===0||v.C("html5_enable_new_seek_timeline_logic")&&Math.abs(J)<.005))if(J=v.mediaElement.getCurrentTime()-v.X,Math.abs(J)<=v.Gi||v.C("html5_enable_new_seek_timeline_logic")&&Math.abs(J)<.005)A_w(v);else{if(v.videoData.Jk)v.videoData.Jk= !1;else if(!e0(v.videoData)&&v.X>=v.j3()-.1){v.X=v.j3();v.L.resolve(v.j3());v.HH.Z_();return}try{var G=v.X-v.timestampOffset;v.mediaElement.seekTo(G);v.N.T=G;v.jl=G;v.Z=v.X;v.C("html5_enable_new_seek_timeline_logic")&&(v.oY=!1)}catch(K){}}}}; a9w=function(v){if(!v.mediaElement||v.mediaElement.Rw()===0||v.mediaElement.hasError())return!1;var J=v.mediaElement.getCurrentTime()>0;if(!(v.videoData.Z&&v.videoData.Z.T||v.videoData.isLivePlayback)&&v.videoData.cw())return J;if(v.X>=0){var G=v.mediaElement.Go();if(G.length||!J)return rj(G,v.X-v.timestampOffset)}return J}; A_w=function(v){v.L&&(v.L.resolve(v.mediaElement.getCurrentTime()),v.N.X=null)}; N1X=function(v,J){v.J&&(v.J.resolve(J),v.HH.aF(),v.EB.GG()&&(J=v.u9(),J["native"]=""+ +v.oY,J.otgt=""+(v.X+v.timestampOffset),v.HH.uw("seekEnd",J)));ac(v)}; ac=function(v){v.X=NaN;v.jl=NaN;v.L=null;v.Ti=null;v.J=null;v.dh=!1;v.oY=!1;v.Gi=0;v.qr.stop();v.RY.stop()}; MiL=function(v,J,G){var K=v.mediaElement,V=J.type;switch(V){case "seeking":var Y=K.getCurrentTime()+v.timestampOffset;if(!v.L||v.oY&&Y!==v.X){var r=!!v.L;v.L=new Ct;v.C("html5_enable_new_seek_timeline_logic")&&v.L.then(function(e){N1X(v,e)},function(){ac(v)}); if(v.videoData.isAd()){var E;Q2w({adCpn:v.videoData.clientPlaybackNonce,contentCpn:(E=v.videoData.XW)!=null?E:""},J.T)}v.jl=Y;pT2(v.N,K.getCurrentTime());v.seekTo(Y,{seekSource:104,nK:"seektimeline_mediaElementEvent"});G&&FhL(G,Y*1E3,!!r);v.oY=!0}break;case "seeked":A_w(v);break;case "loadedmetadata":Na(v.HH)||HD2(v);cQ(v);break;case "progress":cQ(v);break;case "pause":v.j=v.getCurrentTime()}v.j&&((V==="play"||V==="playing"||V==="timeupdate"||V==="progress")&&v.getCurrentTime()-v.j>10&&(v.C("html5_enable_new_media_element_puase_jump")? (v.HH.rd(new L6("qoe.restart",{reason:"pauseJump"})),v.HH.Si(),v.seekTo(v.j,{nK:"pauseJumpNewElement"})):v.seekTo(v.j,{nK:"pauseJump"})),V!=="pause"&&V!=="play"&&V!=="playing"&&V!=="progress"&&(v.j=0))}; Q4w=function(v){return(wH(v.videoData)||!!v.videoData.liveUtcStartSeconds)&&(!!v.videoData.liveUtcStartSeconds||xuL(v))&&!!v.videoData.T}; xuL=function(v){return!!v.videoData.startSeconds&&isFinite(v.videoData.startSeconds)&&v.videoData.startSeconds>1E9}; Uu2=function(v){var J=0,G=NaN,K="";if(!v.U)return{startSeconds:J,wy:G,source:K};v.videoData.qr?J=v.videoData.YB:e0(v.videoData)&&(J=Infinity);if(g.yf(v.videoData))return{startSeconds:J,wy:G,source:K};v.videoData.startSeconds?(K="ss",J=v.videoData.startSeconds):v.videoData.F5&&(K="stss",J=v.videoData.F5);v.videoData.liveUtcStartSeconds&&(G=v.videoData.liveUtcStartSeconds);if(isFinite(J)&&(J>v.j3()||Jv.j3()||G0?(K.onesie="0",v.handleError(new L6("html5.missingapi",K)),!1):!0}; Got=function(v){var J=Ny();aQ(J,v);return g.VA(J,eor())}; $62=function(v,J){var G,K,V,Y,r,E,e,P,D,t,B,I,h,R,T,L,O,x,f,c,b,M,Jw,Kf,j8,a;return g.m(function(C){if(C.T==1)return J.fetchType="onesie",G=RJm(J,v.getPlayerSize(),v.getVisibilityState()),K=new tO(v,G),g.U(C,K.fetch(),2);V=C.X;Y={player_response:V};J.loading=!1;r=v.GS.Ir;if(K.ji){E=g.n(K.ji.entries());for(e=E.next();!e.done;e=E.next())P=e.value,D=g.n(P),t=D.next().value,B=D.next().value,I=t,h=B,r.T.set(I,h,180),I===J.videoId&&(R=h.E0(),J.nN=R);r.hS=K}T=g.n(K.St.entries());for(L=T.next();!L.done;L= T.next())O=L.value,x=g.n(O),f=x.next().value,c=x.next().value,b=f,M=c,r.X.set(b,M,180);g.QE(J,Y,!0);if(J.loading||HG(J))return C.return(Promise.resolve());r.T.removeAll();r.X.removeAll();J.nN=[];Jw={};Kf="onesie.response";j8=0;J.errorCode?(Kf="auth",Jw.ec=J.errorCode,Jw.ed=J.errorDetail,Jw.es=J.HU||"",j8=2):(Jw.successButUnplayable="1",Jw.disposed=""+ +J.Sl(),Jw.afmts=""+ +/adaptiveFormats/.test(V),Jw.cpn=J.clientPlaybackNonce);a=new L6(Kf,Jw,j8);return C.return(Promise.reject(a))})}; jVr=function(v,J){var G,K,V,Y,r,E,e,P,D,t,B;return g.m(function(I){switch(I.T){case 1:G=J.isAd(),K=!G,V=G?1:3,Y=0;case 2:if(!(Y0)){I.sB(5);break}return g.U(I,XB(5E3),6);case 6:r=new g.Mk("Retrying OnePlatform request",{attempt:Y}),g.Zl(r);case 5:return g.nf(I,7),g.U(I,oQs(v,J),9);case 9:return I.return();case 7:E=g.lj(I);e=wf(E);P=e.errorCode;D=v.B();t=D.C("html5_use_network_error_code_enums")?401:"401";K&&P==="manifest.net.badstatus"&&e.details.rc===t&&(K=!1,Y===V-1&&(V+= 1));if(Y===V-1)return B=KYj(G,e.details),B.details.backend="op",B.details.originec=P,I.return(Promise.reject(B));if(P==="auth"||P==="manifest.net.retryexhausted")return I.return(Promise.reject(e));v.handleError(e);if(y9(e.severity)){I.sB(4);break}case 3:Y++;I.sB(2);break;case 4:return I.return(Promise.reject(KYj(G,{backend:"op"})))}})}; oQs=function(v,J){function G(Kf){Kf.readyState===2&&v.pY("ps_c")} var K,V,Y,r,E,e,P,D,t,B,I,h,R,T,L,O,x,f,c,b,M,Jw;return g.m(function(Kf){switch(Kf.T){case 1:J.fetchType="gp";K=v.B();V=g.KS(K,g.cm(J));if(!V.T){Y=V.getValue();Kf.sB(2);break}return g.U(Kf,V.T,3);case 3:Y=Kf.X;case 2:return r=Y,E=Got(r),e=RJm(J,v.getPlayerSize(),v.getVisibilityState()),P=g.$n(V6w),D=g.cm(J),t=(0,g.yR)(),B=!1,I="empty",h=0,v.pY("psns"),R={r9:G},g.U(Kf,g.WB(E,e,P,void 0,R),4);case 4:T=Kf.X;v.pY("psnr");if(J.Sl())return Kf.return();T?"error"in T&&T.error?(B=!0,I="esf:"+T.error.message, h=T.error.code):T.errorMetadata&&(B=!0,I="its",h=T.errorMetadata.status):B=!0;if(B)return L=0,O=((0,g.yR)()-t).toFixed(),x={},x=K.C("html5_use_network_error_code_enums")?{backend:"op",rc:h,rt:O,reason:I,has_kpt:J.d_?"1":"0",has_mdx_env:J.mdxEnvironment?"1":"0",has_omit_key_flag:g.H$("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:K.pageId?"1":"0",has_token:D?"1":"0",has_vvt:J.Ti?"1":"0",is_mdx:J.isMdxPlayback?"1":"0",mdx_ctrl:J.Fz||"",token_eq:D===g.cm(J)?"1":"0"}:{backend:"op", rc:""+h,rt:O,reason:I,has_kpt:J.d_?"1":"0",has_mdx_env:J.mdxEnvironment?"1":"0",has_omit_key_flag:g.H$("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:K.pageId?"1":"0",has_token:D?"1":"0",has_vvt:J.Ti?"1":"0",is_mdx:J.isMdxPlayback?"1":"0",mdx_ctrl:J.Fz||"",token_eq:D===g.cm(J)?"1":"0"},f="manifest.net.connect",h===429?(f="auth",L=2):h>200&&(f="manifest.net.badstatus",h===400&&(L=2)),Kf.return(Promise.reject(new L6(f,x,L)));J.loading=!1;g.QE(J,{raw_player_response:T},!0); c=T;g.ZR(J.B())&&c&&c.trackingParams&&Uu(c.trackingParams);if(J.errorCode)return b={ec:J.errorCode,ed:J.errorDetail,es:J.HU||""},Kf.return(Promise.reject(new L6("auth",b,2)));if(!J.loading&&!HG(J))return M=J.isAd()?"auth":"manifest.net.retryexhausted",Jw=J.isAd()?2:1,Kf.return(Promise.reject(new L6(M,{successButUnplayable:"1",hasMedia:g.lg(J)?"1":"0"},Jw)));g.zX(Kf)}})}; bDm=function(v,J,G){function K(h){h=wf(h);if(y9(h.severity))return Promise.reject(h);v.handleError(h);return!1} function V(){return!0} var Y,r,E,e,P,D,t,B,I;return g.m(function(h){switch(h.T){case 1:var R=v.B(),T=v.getPlayerSize(),L=v.getVisibilityState();v.isFullscreen();var O=window.location.search;if(J.partnerId===38&&R.playerStyle==="books")O=J.videoId.indexOf(":"),O=g.vt("//play.google.com/books/volumes/"+J.videoId.slice(0,O)+"/content/media",{aid:J.videoId.slice(O+1),sig:J.kZ});else if(J.partnerId===30&&R.playerStyle==="docs")O=g.vt("https://docs.google.com/get_video_info",{docid:J.videoId,authuser:J.pG,authkey:J.jk,eurl:R.BH}); else if(J.partnerId===33&&R.playerStyle==="google-live")O=g.vt("//google-liveplayer.appspot.com/get_video_info",{key:J.videoId});else{R.oY!=="yt"&&g.fW(Error("getVideoInfoUrl for invalid namespace: "+R.oY));var x={html5:"1",video_id:J.videoId,cpn:J.clientPlaybackNonce,eurl:R.BH,ps:R.playerStyle,el:ZN(J),hl:R.d_,list:J.playlistId,agcid:J.GJ,aqi:J.adQueryId,sts:20180,lact:yy()};Object.assign(x,R.T);R.forcedExperiments&&(x.forced_experiments=R.forcedExperiments);J.Ti?(x.vvt=J.Ti,J.mdxEnvironment&&(x.mdx_environment= J.mdxEnvironment)):g.cm(J)&&(x.access_token=g.cm(J));J.adFormat&&(x.adformat=J.adFormat);J.slotPosition>=0&&(x.slot_pos=J.slotPosition);J.breakType&&(x.break_type=J.breakType);J.NT!==null&&(x.ad_id=J.NT);J.u5!==null&&(x.ad_sys=J.u5);J.qc!==null&&(x.encoded_ad_playback_context=J.qc);R.captionsLanguagePreference&&(x.cc_lang_pref=R.captionsLanguagePreference);R.o$&&R.o$!==2&&(x.cc_load_policy=R.o$);var f=g.Nk(g.c8(),65);g.bh(R)&&f!=null&&!f&&(x.device_captions_on="1");R.mute&&(x.mute=R.mute);J.annotationsLoadPolicy&& R.annotationsLoadPolicy!==2&&(x.iv_load_policy=J.annotationsLoadPolicy);J.vQ&&(x.endscreen_ad_tracking=J.vQ);(f=R.qr.get(J.videoId))&&f.G7&&(x.ic_track=f.G7);J.Mr&&(x.itct=J.Mr);kJ(J)&&(x.autoplay="1");J.mutedAutoplay&&(x.mutedautoplay=J.mutedAutoplay);J.isAutonav&&(x.autonav="1");J.hp&&(x.noiba="1");J.isMdxPlayback&&(x.mdx="1",x.ytr=J.XB);J.mdxControlMode&&(x.mdx_control_mode=J.mdxControlMode);J.zE&&(x.ytrcc=J.zE);J.gA&&(x.utpsa="1");J.isFling&&(x.is_fling="1");J.isInlinePlaybackNoAd&&(x.mute="1"); J.vnd&&(x.vnd=J.vnd);J.forceAdsUrl&&(f=J.forceAdsUrl.split("|").length===3,x.force_ad_params=f?J.forceAdsUrl:"||"+J.forceAdsUrl);J.Vy&&(x.preload=J.Vy);T.width&&(x.width=T.width);T.height&&(x.height=T.height);(J.jK?0:J.IR)&&(x.splay="1");J.ypcPreview&&(x.ypc_preview="1");gH(J)&&(x.content_v=gH(J));J.Nr&&(x.livemonitor=1);R.dh&&(x.authuser=R.dh);R.pageId&&(x.pageid=R.pageId);R.xB&&(x.ei=R.xB);R.L&&(x.iframe="1");J.contentCheckOk&&(x.cco="1");J.racyCheckOk&&(x.rco="1");R.K&&J.sP&&(x.live_start_walltime= J.sP);R.K&&J.Kt&&(x.live_manifest_duration=J.Kt);R.K&&J.playerParams&&(x.player_params=J.playerParams);R.K&&J.cycToken&&(x.cyc=J.cycToken);R.K&&J.Z$&&(x.tkn=J.Z$);L!==0&&(x.vis=L);R.enableSafetyMode&&(x.enable_safety_mode="1");J.d_&&(x.kpt=J.d_);J.Xy&&(x.kids_age_up_mode=J.Xy);J.kidsAppInfo&&(x.kids_app_info=J.kidsAppInfo);J.bk&&(x.upg_content_filter_mode="1");R.widgetReferrer&&(x.widget_referrer=R.widgetReferrer.substring(0,128));J.oY?(T=J.oY.latitudeE7!=null&&J.oY.longitudeE7!=null?J.oY.latitudeE7+ ","+J.oY.longitudeE7:",",T+=","+(J.oY.clientPermissionState||0)+","+(J.oY.locationRadiusMeters||"")+","+(J.oY.locationOverrideToken||"")):T=null;T&&(x.uloc=T);J.rF&&(x.internalipoverride=J.rF);R.embedConfig&&(x.embed_config=R.embedConfig);R.RE&&(x.co_rel="1");R.ancestorOrigins.length>0&&(x.ancestor_origins=Array.from(R.ancestorOrigins).join(","));R.homeGroupInfo!==void 0&&(x.home_group_info=R.homeGroupInfo);R.livingRoomAppMode!==void 0&&(x.living_room_app_mode=R.livingRoomAppMode);R.enablePrivacyFilter&& (x.enable_privacy_filter="1");J.isLivingRoomDeeplink&&(x.is_living_room_deeplink="1");J.Xx&&J.cQ&&(x.clip=J.Xx,x.clipt=J.cQ);J.gQ&&(x.disable_watch_next="1");J.BV&&(x.forced_by_var="1");for(var c in x)!YDF.has(c)&&x[c]&&String(x[c]).length>512&&(g.Zl(Error("GVI param too long: "+c)),x[c]="");c=R.Ks;g.uh(R)&&(c=io(c.replace(/\b(?:www|web)([.-])/,"tv$1"))||R.Ks);R=g.vt(c+"get_video_info",x);O&&(R=v2m(R,O));O=R}Y=O;E=(r=J.isAd())?1:3;e=0;case 2:if(!(e0)){h.sB(5);break}return g.U(h, XB(5E3),6);case 6:D={playerretry:e,playerretrysrc:G},r||(D.recover="embedded"),P=Vl(Y,D);case 5:return g.U(h,rmt(J,P).then(V,K),7);case 7:if(t=h.X)return h.return();e++;h.sB(2);break;case 4:B=r?"auth":"manifest.net.retryexhausted";I=r?2:1;if(!r&&Math.random()<1E-4)try{g.Zl(new g.Mk("b/152131571",btoa(Y)))}catch(b){}return h.return(Promise.reject(new L6(B,{backend:"gvi"},I)))}})}; rmt=function(v,J){function G(T){return K(T.xhr)} function K(T){if(!v.Sl()){T=T?T.status:-1;var L=0,O=((0,g.yR)()-D).toFixed();O=V.C("html5_use_network_error_code_enums")?{backend:"gvi",rc:T,rt:O}:{backend:"gvi",rc:""+T,rt:O};var x="manifest.net.connect";T===429?(x="auth",L=2):T>200&&(x="manifest.net.badstatus",T===400&&(L=2));return Promise.reject(new L6(x,O,L))}} var V,Y,r,E,e,P,D,t,B,I,h,R;return g.m(function(T){if(T.T==1){v.fetchType="gvi";V=v.B();var L={};v.H9&&(L.ytrext=v.H9);(E=g.Xb(L)?void 0:L)?(Y={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:E},r=Vl(J,{action_display_post:1})):(Y={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},r=J);e={};V.sendVisitorIdHeader&&v.visitorData&&(e["X-Goog-Visitor-Id"]=v.visitorData);(P=$$(V.experiments,"debug_sherlog_username"))&&(e["X-Youtube-Sherlog-Username"]=P);Object.keys(e).length> 0&&(Y.headers=e);D=(0,g.yR)();return g.U(T,E4(wx,r,Y).then(void 0,G),2)}t=T.X;if(!t||!t.responseText)return T.return(K(t));v.loading=!1;B=Jh(t.responseText);g.QE(v,B,!0);if(v.errorCode)return I={ec:v.errorCode,ed:v.errorDetail,es:v.HU||""},T.return(Promise.reject(new L6("auth",I,2)));if(!v.loading&&!HG(v))return h=v.isAd()?"auth":"manifest.net.retryexhausted",R=v.isAd()?2:1,T.return(Promise.reject(new L6(h,{successButUnplayable:"1"},R)));g.zX(T)})}; KYj=function(v,J){return new L6(v?"auth":"manifest.net.retryexhausted",J,v?2:1)}; Cl=function(v,J,G){G=G===void 0?!1:G;var K,V,Y,r;g.m(function(E){if(E.T==1){K=v.B();if(G&&(!g.is(K)||ZN(J)!=="embedded")||J.gQ||ZN(J)!=="adunit"&&(g.yW(K)||aC(K)||g.gy(K)||g.uh(K)||jN(K)==="WEB_CREATOR"))return E.return();V=g.KS(K,g.cm(J));return V.T?g.U(E,V.T,3):(Y=V.getValue(),E.sB(2))}E.T!=2&&(Y=E.X);r=Y;return E.return(qDU(v,J,r))})}; qDU=function(v,J,G){var K,V,Y,r,E;return g.m(function(e){if(e.T==1){g.nf(e,2);K=Got(G);var P=J.B();g.c8();var D={context:g.rr(J),videoId:J.videoId,racyCheckOk:J.racyCheckOk,contentCheckOk:J.contentCheckOk,autonavState:"STATE_NONE"};ZN(J)==="adunit"&&(D.isAdPlayback=!0);P.embedConfig&&(D.serializedThirdPartyEmbedConfig=P.embedConfig);P.RE&&(D.showContentOwnerOnly=!0);J.Hj&&(D.showShortsOnly=!0);g.Nk(0,141)&&(D.autonavState=g.Nk(0,140)?"STATE_OFF":"STATE_ON");if(g.bh(P)){var t=g.Nk(0,65);t=t!=null? !t:!1;var B=!!g.fq("yt-player-sticky-caption");D.captionsRequested=t&&B}var I;if(P=(I=P.getWebPlayerContextConfig())==null?void 0:I.encryptedHostFlags)D.playbackContext={encryptedHostFlags:P};V=D;Y=g.$n(EQt);v.pY("wn_s");return g.U(e,g.WB(K,V,Y),4)}if(e.T!=2)return r=e.X,v.pY("wn_r"),!r||"error"in r&&r.error||(E=r,g.ZR(J.B())&&E.trackingParams&&Uu(E.trackingParams),g.QE(J,{raw_watch_next_response:r},!1)),g.Rm(e,0);g.lj(e);g.zX(e)})}; eBf=function(v){v.pY("vir");v.pY("ps_s");HB("vir",void 0,"video_to_ad");var J=Jmj(v);J.then(function(){v.pY("virc");HB("virc",void 0,"video_to_ad");v.pY("ps_r");HB("ps_r",void 0,"video_to_ad")},function(){v.pY("virc"); HB("virc",void 0,"video_to_ad")}); return J}; g.iT=function(v,J,G,K,V,Y,r,E,e,P){e=e===void 0?new g.FP(v):e;P=P===void 0?!0:P;g.qU.call(this);var D=this;this.EB=v;this.playerType=J;this.n0=G;this.BX=K;this.getVisibilityState=Y;this.visibility=r;this.GS=E;this.videoData=e;this.w$=P;this.logger=new g.rZ("VideoPlayer");this.fY=null;this.fR=new $S;this.XM=null;this.s5=!0;this.K7=this.Qb=null;this.cE=[];this.VR=new WQ;this.vG=this.nh=null;this.fz=new WQ;this.dI=null;this.JQ=this.yB=!1;this.gI=NaN;this.Zc=!1;this.playerState=new g.JZ;this.M9=[];this.iV= new g.Zs;this.VS=new YBL(this);this.mediaElement=null;this.BJ=new g.Qq(this.P9l,15E3,this);this.fp=this.SC=!1;this.LU=NaN;this.Dq=!1;this.Mz=0;this.Zb=!1;this.IC=NaN;this.Uh=new HQ(new Map([["bufferhealth",function(){return uft(D.JP)}], ["bandwidth",function(){return D.PW()}], ["networkactivity",function(){return D.EB.schedule.dh}], ["livelatency",function(){return D.isAtLiveHead()&&D.isPlaying()?Ppr(D):NaN}], ["rawlivelatency",function(){return Ppr(D)}]])); this.K1=0;this.loop=!1;this.playbackRate=1;this.cA=0;this.JP=new ODj(this);this.o2=!1;this.ZS=[];this.F1=this.My=0;this.Ob=this.C6=!1;this.CB=this.nH=0;this.TB=-1;this.hX="";this.ue=new g.Qq(this.XHB,0,this);this.tR=this.zS=null;this.aZw=[this.iV,this.ue,this.BJ,this.Uh];this.PM=this.Uy=null;this.ML=function(){var t=D.zG();t.provider.EB.IR||t.provider.HH.getVisibilityState()===3||(t.provider.EB.IR=!0);t.xM();if(t.X){var B=t.X;B.J&&B.T<0&&B.provider.HH.getVisibilityState()!==3&&Xiw(B)}t.qoe&&(t=t.qoe, t.BH&&t.Z<0&&t.provider.EB.IR&&BFf(t),t.L&&PQ(t));D.Qb&&b2(D);D.EB.XS&&!D.videoData.backgroundable&&D.mediaElement&&!D.MI()&&(D.isBackground()&&D.mediaElement.Zq()?(D.uw("bgmobile",{suspend:1}),D.Yu(!0,!0)):D.isBackground()||ji(D)&&D.uw("bgmobile",{resume:1}))}; this.cO={Tc:function(t){D.Tc(t)}, ozU:function(t){D.fY=t}, YXU:function(){return D.Yc}, rC:function(){return D.yh}, u2:function(){return D.K7}, iOe:function(){return D.s8}, PXB:function(){return D.Lk}, C8i:function(){}, B:function(){return D.EB}, LY:function(){return D.mediaElement}, k2B:function(t){D.uD(t)}, izi:function(){return D.BX}}; this.logger.debug(function(){return"creating, type "+J}); this.rq=new Du2(this.EB);this.ZR=new djw(this.EB,this.BX,this);this.CJ=new g.OO(this,function(t,B){t!==g.VG("endcr")||g.H(D.playerState,32)||D.Z_();V(t,B,D.playerType)},function(t,B){g.WG(D.videoData)&&D.uw(t,B)}); g.k(this,this.CJ);g.k(this,this.JP);D6j(this,e);this.videoData.subscribe("dataupdated",this.Pgw,this);this.videoData.subscribe("dataloaded",this.z1,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.uw,this);this.videoData.subscribe("ctmpstr",this.SG,this);this.Tz();KIr(this.ML);this.visibility.subscribe("visibilitystatechange",this.ML);this.s8=new g.Qq(this.uv,g.DI(this.EB.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.Lk= new g.Qq(this.uv,g.DI(this.EB.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.xY=new g.jj(this.rU,g.DI(this.EB.experiments,"html5_progress_event_throttle_ms")||350,this);g.k(this,this.xY)}; D6j=function(v,J){if(v.playerType===2||v.EB.D5)J.du=!0;var G=uZX(J.a$,J.xU,v.EB.L,v.EB.K);G&&(J.adFormat=G);v.playerType===2&&(J.Qu=!0);if(v.isFullscreen()||v.EB.L)G=g.fq("yt-player-autonavstate"),J.autonavState=G||(v.EB.L?2:v.videoData.autonavState);J.endSeconds&&J.endSeconds>J.startSeconds&&A5(v,J.endSeconds)}; t6m=function(v){blF(v.Yc);g.rT(v.Yc);for(var J=v.yh,G=g.n(J.T.values()),K=G.next();!K.done;K=G.next())blF(K.value);J.T.clear();g.rT(v.yh)}; BPU=function(v){var J=v.videoData;eBf(v).then(void 0,function(G){v.videoData!==J||J.Sl()||(G=wf(G),G.errorCode==="auth"&&v.videoData.errorDetail?v.ze(G.errorCode,2,unescape(v.videoData.errorReason),p6(G.details),v.videoData.errorDetail,v.videoData.HU||void 0):v.handleError(G))})}; zBf=function(v){if(!g.H(v.playerState,128))if(v.videoData.isLoaded(),v.logger.debug("finished loading playback data"),v.cE=g.vW(v.videoData.dh),g.lg(v.videoData)){v.n0.tick("bpd_s");$e(v).then(function(){v.n0.tick("bpd_c");if(!v.Sl()){v.yB&&(v.Zv(KB(KB(v.playerState,512),1)),ji(v));var K=v.videoData;K.endSeconds&&K.endSeconds>K.startSeconds&&A5(v,K.endSeconds);v.VR.finished=!0;vT(v,"dataloaded");v.fz.FY()&&Ids(v);gHf(v.ZR,v.vG)}}); v.C("html5_log_media_perf_info")&&v.uw("loudness",{v:v.videoData.dG.toFixed(3)},!0);var J,G=(J=v.mediaElement)==null?void 0:J.ZZ();if(G&&"disablePictureInPicture"in G&&v.EB.Px)try{G.disablePictureInPicture=v.EB.JV&&!v.videoData.backgroundable}catch(K){g.Zl(K)}hBU(v)}else vT(v,"dataloaded")}; $e=function(v){J_(v);v.vG=null;var J=B1s(v.EB,v.videoData,v.MI());v.nh=J;v.nh.then(function(G){nQm(v,G)},function(G){v.Sl()||(G=wf(G),v.visibility.isBackground()?(GS(v,"vp_none_avail"),v.nh=null,v.VR.reset()):(v.VR.finished=!0,v.ze(G.errorCode,G.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",p6(G.details))))}); return J}; nQm=function(v,J){if(!v.Sl()&&!J.videoData.Sl()){v.logger.debug("finished building playback data");v.vG=J;mum(v.JP,v.vG);if(v.videoData.isLivePlayback){var G=d6w(v.GS.Ir,v.videoData.videoId)||v.Qb&&!isNaN(v.Qb.dh);G=v.C("html5_onesie_live")&&G;Na(v)||v.videoData.R$>0&&!Pm(v.videoData)||G||v.seekTo(v.j3(),{nK:"videoplayer_playbackData",seekSource:18})}if(v.videoData.Z.T){if(v.C("html5_sabr_report_missing_url_as_error")&&eJ2(v.videoData)){v.handleError(new L6("fmt.missing",{missabrurl:"1"},2));return}v.Qb? g.Zl(Error("Duplicated Loader")):(G=g.DI(v.EB.experiments,"html5_onesie_defer_content_loader_ms"))&&v.YK()&&d6w(v.GS.Ir,v.videoData.Gn)?g.By(function(){v.Sl()||v.Qb||sVF(v)},G):sVF(v)}else!v.videoData.Z.T&&FH(v.videoData)&&v.xT(new B7(v.videoData.videoId||"",4)); v.Gc();Ujm(J).then(function(){var K={};v.fQ(K);v.EB.GG()&&v.C("html5_log_media_perf_info")&&v.uw("av1Info",K);b2(v)})}}; Ids=function(v){v.Sl();v.logger.debug("try finish readying playback");if(v.fz.finished)v.logger.debug("already finished readying");else if(v.VR.finished)if(g.H(v.playerState,128))v.logger.debug("cannot finish readying because of error");else if(v.cE.length)v.logger.debug(function(){return"cannot finish readying because of pending preroll: "+v.cE}); else if(v.CJ.started||Eew(v.CJ),v.hF())v.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{v.Qb&&(v.JQ=t$X(v.Qb.timing));v.fz.finished||(v.fz.finished=!0);var J=v.C("html5_onesie_live")&&v.Qb&&!isNaN(v.Qb.dh);!v.videoData.isLivePlayback||v.videoData.R$>0&&!Pm(v.videoData)||J||Na(v)||(v.logger.debug("seek to head for live"),v.seekTo(Infinity,{nK:"videoplayer_readying",seekSource:18}),v.isBackground()&&(v.fp=!0));MEm(v.zG());v.logger.debug("finished readying playback"); v.publish("playbackready");Au("pl_c",v.n0.timerName)||(v.n0.tick("pl_c"),HB("pl_c",void 0,"video_to_ad"));Au("pbr",v.n0.timerName)||(v.n0.tick("pbr"),HB("pbr",void 0,"video_to_ad"))}else v.logger.debug("playback data not loaded")}; A5=function(v,J){v.XM&&RBX(v);v.XM=new g.o8(J*1E3,0x7ffffffffffff);v.XM.namespace="endcr";v.addCueRange(v.XM)}; RBX=function(v){v.removeCueRange(v.XM);v.XM=null}; ldX=function(v,J,G,K,V){var Y=v.zG(V),r=g.WG(v.videoData)?Y.getVideoData():v.videoData;r.X=G;var E=g.o4(v);G=new nHj(r,G,J,E?E.itag:"",K);v.EB.experiments.OB("html5_refactor_sabr_video_format_selection_logging")?(G.videoId=V,v.PM=G):Y.qoe&&$yU(Y.qoe,G);V=v.ZR;V.X=0;V.T=0;v.publish("internalvideoformatchange",r,J==="m")}; g.o4=function(v){var J=KD(v);return r3(J)||!v.vG?null:g.MS(v.vG.T.videoInfos,function(G){return J.L(G)})}; KD=function(v){if(v.vG){var J=v.ZR;var G=v.vG;v=v.wQ();var K=l02(J);if(r3(K)){if(K=siw(J,G).compose(yOF(J,G)).compose(OvB(J,G)).compose(Zv2(J,G.videoData)).compose(u$w(J,G.videoData,G)).compose(oc(J,G)).compose(piF(J,G)),r3(v)||J.C("html5_apply_pbr_cap_for_drm"))K=K.compose(LIm(J,G))}else J.C("html5_perf_cap_override_sticky")&&(K=K.compose(oc(J,G))),J.C("html5_ustreamer_cap_override_sticky")&&(K=K.compose(LIm(J,G)));K=K.compose(piF(J,G));J=G.videoData.Al.compose(K).compose(G.videoData.ZT).compose(v)}else J= AW;return J}; fx2=function(v){var J=v.ZR;v=v.videoData;var G=Zv2(J,v);J.C("html5_disable_client_autonav_cap_for_onesie")||G.compose(u$w(J,v));return G}; b2=function(v){if(v.videoData.Z&&v.videoData.Z.T){var J=KD(v);v.Qb&&Ohw(v.Qb,J)}}; TP8=function(v){var J;return!!(v.C("html5_native_audio_track_switching")&&g.nP&&((J=v.videoData.X)==null?0:jl(J)))}; pvL=function(v){if(!TP8(v))return!1;var J;v=(J=v.mediaElement)==null?void 0:J.audioTracks();return!!(v&&v.length>1)}; ymL=function(v){var J=LYs(v);if(J)return v.videoData.getAvailableAudioTracks().find(function(G){return G.hR.getName()===J})}; LYs=function(v){var J;if(v=(J=v.mediaElement)==null?void 0:J.audioTracks())for(J=0;J0&&(J.Jm=K.PL)); J.Vu=K.SF;J.zb=m_(G,{},K.Z||void 0,Vf(K));J.Nr=Kh(K)&&g.gy(G);YJ(K)&&(J.Mj=!0,G.C("html5_sabr_report_partial_segment_estimated_duration")&&(J.vQ=!0),J.T=!0,J.I8=G.C("html5_sabr_enable_live_clock_offset"),J.I6=G.C("html5_disable_client_resume_policy_for_sabr"),J.Qd=G.C("html5_trigger_loader_when_idle_network"),J.qm=G.C("html5_sabr_parse_live_metadata_playback_boundaries"),J.QL=G.C("html5_enable_platform_backpressure_with_sabr"),J.eT=G.C("html5_consume_onesie_next_request_policy_for_sabr"),J.Lx=G.C("html5_sabr_report_next_ad_break_time"), J.o6=G.C("html5_log_high_res_buffer_timeline")&&G.GG(),J.MC=G.C("html5_remove_stuck_slices_beyond_max_buffer_limits"),J.OA=G.C("html5_gapless_sabr_btl_last_slice")&&ov(K),J.DW=G.C("html5_reset_last_appended_slice_on_seek")&&ov(K),Pm(K)?(J.Zj=!0,J.VT=G.C("html5_disable_variability_tracker_for_live"),J.BH=G.C("html5_sabr_use_accurate_slice_info_params"),G.C("html5_simplified_backup_timeout_sabr_live")&&(J.mz=!0,J.HG=J.uf)):J.Vn=G.C("html5_probe_request_on_sabr_request_progress"),J.Xx=G.C("html5_serve_start_seconds_seek_for_post_live_sabr"), J.jK=G.C("html5_flush_index_on_updated_timestamp_offset"),J.YB=G.C("html5_enable_sabr_request_pipelining")&&!g.WG(K),J.PE=G.C("html5_ignore_partial_segment_from_live_readahead"),J.xU=G.C("html5_use_non_active_broadcast_for_post_live"),J.Mr=G.C("html5_use_centralized_player_time"),J.wP=G.C("html5_consume_onesie_sabr_seek"),J.Ti=G.C("html5_enable_sabr_seek_loader_refactor"),J.rS=G.C("html5_update_segment_start_time_from_media_header"),K.enableServerStitchedDai&&(J.J=!0,J.Y3=G.C("html5_reset_server_stitch_state_for_non_sabr_seek"), J.gQ=G.C("html5_remove_ssdai_append_pause")&&!K.i9(),J.WH=G.C("html5_consume_ssdai_info_with_streaming"),J.Bv=G.C("html5_ssdai_log_ssevt_in_loader")),J.iX=G.GG()||K.i9());J.j=J.T&&G.C("html5_sabr_live");J.o$=g.qrm(K);R3(G.J,lf.BITRATE)&&(J.ER=NaN);if(E=g.DI(G.experiments,"html5_request_size_max_kb"))J.RY=E*1024;G.J.Z?J.F5="; "+lf.EXPERIMENTAL.name+"=allowed":G.C("html5_enable_cobalt_tunnel_mode")&&(J.F5="; tunnelmode=true");E=K.serverPlaybackStartConfig;(E==null?0:E.enable)&&(E==null?0:E.playbackStartPolicy)&& (J.b1=!0,GWX(J,E.playbackStartPolicy,2));E=wv2(v);v.fR.removeAll();a:{G=v.GS.Ir;if(K=v.videoData.videoId)if(V=G.T.get(K)){G.T.remove(K);G=V;break a}G=void 0}v.Qb=new g.Nj(v,v.EB.schedule,J,v.videoData.T,v.videoData.Z,KD(v),E,v.videoData.enableServerStitchedDai,G,v.videoData.RY);J=v.videoData.C("html5_disable_preload_for_ssdai_with_preroll")&&v.videoData.isLivePlayback&&v.YK()?!0:v.yB&&g.yW(v.EB)&&v.videoData.isLivePlayback;v.Qb.initialize(v.getCurrentTime(),KD(v),J);v.videoData.probeUrl&&(v.Qb.xB= v.videoData.probeUrl);if(v.cE.length||v.yB)v.videoData.cotn||VL(v,!1);f9w(v.JP,v.Qb);v.zS&&(jQX(v.Qb,new g.F$(v.zS)),v.uw("sdai",{sdl:1}));v.tR&&(v.Qb.sx(v.tR),v.JP.U=!1);g.im(v.videoData)&&(v=v.Qb,v.policy.dG=v.policy.H9)}; J_=function(v){v.Qb&&(v.Qb.dispose(),v.Qb=null,f9w(v.JP,null));v.jD()?OCt(v):v.vE()}; OCt=function(v){if(v.K7)if(v.logger.debug("release media source"),v.AT(),v.K7.J)try{v.EB.GG()&&v.uw("rms",{l:"vprms",sr:v.jD(),rs:Q4(v.K7)});v.K7.clear();var J;(J=v.mediaElement)!=null&&(J.X=v.K7);v.K7=null}catch(G){J=new g.Mk("Error while clearing Media Source in VideoPlayer: "+G.name+", "+G.message),J=wf(J),v.handleError(J),v.vE()}else v.vE()}; U6m=function(v,J){J=J===void 0?!1:J;if(v.K7)return v.K7.Z;v.logger.debug("update media source");a:{J=J===void 0?!1:J;try{g.FX()&&v.videoData.Ac()&&psw(v.mediaElement);var G=v.mediaElement.u2(v.jT(),v.f3())}catch(V){if(Pet(v.VS,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",V);v.ze("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}v.Fp(G,!1,!1,J)}var K;return((K=v.u2())==null?void 0:K.Z)||null}; x6m=function(v,J){J=J===void 0?!1:J;if(v.Qb){v.videoData.enableServerStitchedDai&&VIB(v.Qb);var G=v.getCurrentTime()-v.B$();v.Qb.seek(G,{ke:J}).pj(function(){})}else sVF(v)}; SDU=function(v,J,G,K){G=G===void 0?!1:G;K=K===void 0?!1:K;if(v.K7&&(!J||v.K7===J)){v.logger.debug("media source opened");var V=v.getDuration();!V&&Pm(v.videoData)&&(V=25200);if(v.K7.isView){var Y=V;v.logger.debug(function(){return"Set media source duration to "+Y+", video duration "+V}); Y>v.K7.getDuration()&&m6m(v,Y)}else m6m(v,V);LMm(v.Qb,v.K7,G,K);v.publish("mediasourceattached")}}; m6m=function(v,J){if(v.K7){v.K7.y_(J);var G;(G=v.Qb)!=null&&G.policy.Mr&&(G.j=J)}}; xNf=function(v,J){ldX(v,J.reason,J.T.info,J.token,J.videoId)}; fdX=function(v,J){v.EB.experiments.OB("enable_adb_handling_in_sabr")&&(v.pauseVideo(!0),v.publish("onAbnormalityDetected"),J&&v.ze("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; vT=function(v,J){v.publish("internalvideodatachange",J===void 0?"dataupdated":J,v.videoData)}; ZCm=function(v){var J="loadstart loadedmetadata play playing pause ended seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");v.C("html5_remove_progress_event_listener")||(J.push("progress"),J.push("suspend"));J=g.n(J);for(var G=J.next();!G.done;G=J.next())v.iV.G(v.mediaElement,G.value,v.uD,v);v.EB.U2&&v.mediaElement.wS()&&(v.iV.G(v.mediaElement,"webkitplaybacktargetavailabilitychanged",v.w$i,v),v.iV.G(v.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",v.EL4, v))}; gQm=function(v){g.ze(v.gI);uDj(v)||(v.gI=g.IS(function(){return uDj(v)},100))}; uDj=function(v){var J=v.mediaElement;J&&v.SC&&!v.videoData.Ze&&!Au("vfp",v.n0.timerName)&&J.Rw()>=2&&!J.isEnded()&&EP(J.dK())>0&&v.n0.tick("vfp");return(J=v.mediaElement)&&!v.videoData.Ze&&J.getDuration()>0&&(J.isPaused()&&J.Rw()>=2&&EP(J.dK())>0&&(Au("pbp",v.n0.timerName)||v.n0.tick("pbp"),!v.videoData.DR||v.Zc||J.isSeeking()||(v.Zc=!0,v.publish("onPlaybackPauseAtStart"))),J=J.getCurrentTime(),UO(v.rq,J))?(v.f1(),!0):!1}; kow=function(v){v.zG().V9();if(e0(v.videoData)&&Date.now()>v.cA+6283){if(!(!v.isAtLiveHead()||v.videoData.T&&dE(v.videoData.T))){var J=v.zG();if(J.qoe){J=J.qoe;var G=J.provider.HH.fI(),K=g.AO(J.provider);YOj(J,K,G);G=G.Z;isNaN(G)||g.qa(J,K,"e2el",[G.toFixed(3)])}}v.C("html5_alc_live_log_rawlat")?(J=v.videoData,J=g.pX(J.B())?!0:g.WL(J.B())?J.qm==="6":!1):J=g.pX(v.EB);J&&v.uw("rawlat",{l:Qm(v.Uh,"rawlivelatency").toFixed(3)});v.cA=Date.now()}v.videoData.X&&jl(v.videoData.X)&&(J=v.d6())&&J.videoHeight!== v.F1&&(v.F1=J.videoHeight,ldX(v,"a",Xvt(v,v.videoData.wh)))}; Xvt=function(v,J){if(J.T.video.quality==="auto"&&jl(J.getInfo())&&v.videoData.Xm)for(var G=g.n(v.videoData.Xm),K=G.next();!K.done;K=G.next())if(K=K.value,K.getHeight()===v.F1&&K.T.video.quality!=="auto")return K.getInfo();return J.getInfo()}; Ppr=function(v){if(!e0(v.videoData))return NaN;var J=0;v.Qb&&v.videoData.T&&(J=Pm(v.videoData)?v.Qb.aj.gK()||0:v.videoData.T.Ze);return(0,g.yR)()/1E3-v.IA()-J}; NPs=function(v){v.mediaElement&&v.mediaElement.MI()&&(v.IC=(0,g.yR)());v.EB.o6?g.By(function(){cmX(v)},0):cmX(v)}; cmX=function(v){var J;if((J=v.K7)==null||!J.bj()){if(v.mediaElement)try{v.dI=v.mediaElement.playVideo()}catch(K){GS(v,"err."+K)}if(v.dI){var G=v.dI;G.then(void 0,function(K){v.logger.debug(function(){return"playMediaElement failed: "+K}); if(!g.H(v.playerState,4)&&!g.H(v.playerState,256)&&v.dI===G)if(K&&K.name==="AbortError"&&K.message&&K.message.includes("load"))v.logger.debug(function(){return"ignore play media element failure: "+K.message}); else{var V="promise";K&&K.name&&(V+=";m."+K.name);GS(v,V);v.o2=!0;v.videoData.jK=!0}})}}}; GS=function(v,J){g.H(v.playerState,128)||(v.Zv(YN(v.playerState,1028,9)),v.uw("dompaused",{r:J}),v.publish("onAutoplayBlocked"))}; ji=function(v,J){J=J===void 0?!1:J;if(!v.mediaElement||!v.videoData.Z)return!1;var G=J;G=G===void 0?!1:G;var K=null;var V;if((V=v.videoData.Z)==null?0:V.T){K=U6m(v,G);var Y;(Y=v.Qb)==null||Y.resume()}else J_(v),v.videoData.wh&&(K=v.videoData.wh.IB());V=v.mediaElement.Zq();G=!1;V&&V.Rt(K)||(adr(v,K),G=!0);g.H(v.playerState,2)||(K=v.JP,J=J===void 0?!1:J,K.J||!(K.Z>0)||K.mediaElement&&K.mediaElement.getCurrentTime()>0||(J={nK:"seektimeline_resumeTime",ke:J},K.videoData.Ze||(J.seekSource=15),K.seekTo(K.Z, J)));a:{J=G;if(YJ(v.videoData)){if(!v.videoData.cw())break a}else if(!g.nh(v.videoData))break a;if(v.mediaElement)if((K=v.videoData.J)&&v.mediaElement.wS()){V=v.mediaElement.ZZ();if(v.fY)if(V!==v.fY.element)Ye(v);else if(J&&K.flavor==="fairplay"&&!Hy())Ye(v);else break a;if(v.C("html5_report_error_for_unsupported_tvos_widevine")&&Hy()&&K.flavor==="widevine")v.ze("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{v.fY=new Ca8(V,v.videoData,v.EB);v.fY.subscribe("licenseerror", v.Br,v);v.fY.subscribe("qualitychange",v.iKl,v);v.fY.subscribe("heartbeatparams",v.Jf,v);v.fY.subscribe("keystatuseschange",v.Tc,v);v.fY.subscribe("ctmp",v.uw,v);v.C("html5_widevine_use_fake_pssh")&&!v.videoData.isLivePlayback&&K.flavor==="widevine"&&v.fY.fW(new tL(Amf,"cenc",!1));J=g.n(v.fR.keys);for(K=J.next();!K.done;K=J.next())K=v.fR.get(K.value),v.fY.fW(K);v.C("html5_eme_loader_sync")||v.fR.removeAll()}}else v.ze("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return G}; adr=function(v,J){v.n0.tick("vta");HB("vta",void 0,"video_to_ad");v.getCurrentTime()>0&&XTs(v.JP,v.getCurrentTime());v.mediaElement.activate(J);v.K7&&JP(0,4);!v.videoData.Ze&&v.playerState.isOrWillBePlaying()&&v.BJ.start();if(TP8(v)){var G;if(J=(G=v.mediaElement)==null?void 0:G.audioTracks())J.onchange=function(){v.publish("internalaudioformatchange",v.videoData,!0)}}}; Ye=function(v){v.fY&&(v.fY.dispose(),v.fY=null)}; FYm=function(v){var J=J===void 0?!1:J;v.logger.debug("reattachVideoSource");v.mediaElement&&(v.K7?(Ye(v),v.vE(),U6m(v,J)):(v.videoData.wh&&v.videoData.wh.Eh(),v.mediaElement.stopVideo()),v.playVideo())}; HCs=function(v,J){v.EB.C("html5_log_rebuffer_reason")&&(J={r:J,lact:yy()},v.mediaElement&&(J.bh=iw(v.mediaElement)),v.uw("bufreason",J))}; M68=function(v,J){if(v.EB.GG()&&v.mediaElement){var G=v.mediaElement.u9();G.omt=(v.mediaElement.getCurrentTime()+v.B$()).toFixed(3);G.ps=v.playerState.state.toString(16);G.rt=(g.AO(v.zG().provider)*1E3).toFixed();G.e=J;v.ZS[v.My++%5]=G}try{if(J==="timeupdate"||J==="progress")return}catch(K){}v.logger.debug(function(){return"video element event "+J})}; QV2=function(v){if(v.EB.GG()){v.ZS.sort(function(K,V){return+K.rt-+V.rt}); for(var J=g.n(v.ZS),G=J.next();!G.done;G=J.next())G=G.value,v.uw("vpe",Object.assign({t:G.rt},G));v.ZS=[];v.My=0}}; WY2=function(v){if(g.aS("cobalt")&&g.aS("nintendo switch")){var J=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;v.uw("nxdock",{d:J})}}; VL=function(v,J){var G;(G=v.Qb)==null||ai(G,J)}; rO2=function(v,J){return g.WG(v.videoData)&&v.tR?v.tR.handleError(J,void 0):!1}; hBU=function(v){vz(v.videoData,"html5_set_debugging_opt_in")&&(v=g.c8(),g.Nk(0,183)||(AD(183,!0),v.save()))}; Cpt=function(v){return g.WG(v.videoData)&&v.tR?zu(v.tR):v.videoData.j3()}; rKw=function(v,J){v.GS.Rf()||(v.uw("sgap",{f:J}),v.GS.clearQueue(!1,J==="pe"))}; Na=function(v){return v.C("html5_disable_video_player_initiated_seeks")&&YJ(v.videoData)}; bCL=function(v){$w.call(this,v);var J=this;this.events=new g.Zs(v);g.k(this,this.events);EM(this.api,"isLifaAdPlaying",function(){return J.api.isLifaAdPlaying()}); this.events.G(v,"serverstitchedvideochange",function(){var G;(G=J.api.getVideoData())!=null&&G.i9()&&(J.api.isLifaAdPlaying()?(J.playbackRate=J.api.getPlaybackRate(),J.api.setPlaybackRate(1)):J.api.setPlaybackRate(J.playbackRate))}); this.playbackRate=1}; jxU=function(v){$w.call(this,v);var J=this;this.events=new g.Zs(v);g.k(this,this.events);EM(this.api,"seekToChapterWithAnimation",function(G){J.seekToChapterWithAnimation(G)}); EM(this.api,"seekToTimeWithAnimation",function(G,K){J.seekToTimeWithAnimation(G,K)}); EM(this.api,"renderChapterSeekingAnimation",function(G,K,V){J.api.renderChapterSeekingAnimation(G,K,V)}); EM(this.api,"setMacroMarkers",function(G){J.setMacroMarkers(v,G)}); EM(this.api,"changeMarkerVisibility",function(G,K,V){J.changeMarkerVisibility(G,K,V)}); EM(this.api,"isSameMarkerTypeVisible",function(G){return J.isSameMarkerTypeVisible(G)})}; i52=function(v,J,G){var K=v.api.getCurrentTime()*1E30&&V>0&&(G.width+=V,g.ep(J.element,"width",G.width+"px")));v.size=G}}; g.lT=function(v,J){var G=v.T[v.T.length-1];G!==J&&(v.T.push(J),pHw(v,G,J))}; g.TS=function(v){if(!(v.T.length<=1)){var J=v.T.pop(),G=v.T[0];v.T=[G];pHw(v,J,G,!0)}}; pHw=function(v,J,G,K){LJt(v);J&&(J.unsubscribe("size-change",v.TQ,v),J.unsubscribe("back",v.q5,v));G.subscribe("size-change",v.TQ,v);G.subscribe("back",v.q5,v);if(v.TG){g.Vj(G.element,K?"ytp-panel-animate-back":"ytp-panel-animate-forward");G.vH(v.element);G.focus();v.element.scrollLeft=0;v.element.scrollTop=0;var V=v.size;TCw(v);g.RY(v.element,V);v.j=new g.Qq(function(){ydX(v,J,G,K)},20,v); v.j.start()}else G.vH(v.element),J&&J.detach()}; ydX=function(v,J,G,K){v.j.dispose();v.j=null;g.Vj(v.element,"ytp-popup-animating");K?(g.Vj(J.element,"ytp-panel-animate-forward"),g.rz(G.element,"ytp-panel-animate-back")):(g.Vj(J.element,"ytp-panel-animate-back"),g.rz(G.element,"ytp-panel-animate-forward"));g.RY(v.element,v.size);v.K=new g.Qq(function(){g.rz(v.element,"ytp-popup-animating");J.detach();g.qR(J.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);v.K.dispose();v.K=null},250,v); v.K.start()}; LJt=function(v){v.j&&g.CM(v.j);v.K&&g.CM(v.K)}; pD=function(v){g.R4.call(this,v,"ytp-shopping-product-menu");this.eK=new g.d1(this.S);g.k(this,this.eK);this.hide();g.lT(this,this.eK);g.gr(this.S,this.element,4)}; O5f=function(v,J,G){var K,V=J==null?void 0:(K=J.text)==null?void 0:K.simpleText;V&&(G=wHm(v,G,V,J==null?void 0:J.icon,J==null?void 0:J.secondaryIcon),J.navigationEndpoint&&G.listen("click",function(){v.S.lw("innertubeCommand",J.navigationEndpoint);v.hide()},v))}; Ugs=function(v,J,G){var K,V=J==null?void 0:(K=J.text)==null?void 0:K.simpleText;V&&wHm(v,G,V,J==null?void 0:J.icon).listen("click",function(){var Y;(J==null?void 0:(Y=J.icon)==null?void 0:Y.iconType)==="HIDE"?v.S.publish("featuredproductdismissed"):J.serviceEndpoint&&v.S.lw("innertubeCommand",J.serviceEndpoint);v.hide()},v)}; wHm=function(v,J,G,K,V){J=new g.Cm(g.bm({},[],!1,!!V),J,G);V&&J.updateValue("secondaryIcon",xgF(V));J.setIcon(xgF(K));g.k(v,J);v.eK.Dv(J,!0);return J}; xgF=function(v){if(!v)return null;switch(v.iconType){case "ACCOUNT_CIRCLE":return{Y:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{Y:"path",V:{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{Y:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{Y:"path",V:{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 Ium();case "HIDE":return{Y:"svg",V:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{Y:"g",W:[{Y:"path",V:{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 LR()}}; LD=function(v){zS.call(this,v,!1,!0);this.isCounterfactual=this.X=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.U=!0;this.overflowButton=new g.F({Y:"button",n7:["ytp-featured-product-overflow-icon","ytp-button"],V:{"aria-haspopup":"true"}});this.overflowButton.hide();g.k(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.F({Y:"img",D:"ytp-suggested-action-badge-img",V:{src:"{{url}}"}}); this.thumbnailImage.hide();g.k(this,this.thumbnailImage);this.thumbnailIcon=new g.F({Y:"div",D:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.k(this,this.thumbnailIcon);this.banner=new g.F({Y:"a",D:"ytp-suggested-action-container",W:[this.thumbnailImage,this.thumbnailIcon,{Y:"div",D:"ytp-suggested-action-details",W:[{Y:"text",D:"ytp-suggested-action-title",At:"{{title}}"},{Y:"text",D:"ytp-suggested-action-subtitle",At:"{{subtitle}}"},{Y:"text",D:"ytp-suggested-action-metadata-text", At:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.k(this,this.banner);this.banner.vH(this.Z.element);this.G(this.S,"videodatachange",this.onVideoDataChange);this.G(this.S,g.VG("suggested_action_view_model"),this.mXi);this.G(this.S,g.YM("suggested_action_view_model"),this.R4r);this.G(this.overflowButton.element,"click",this.gx);this.G(v,"featuredproductdismissed",this.WD);this.S.createServerVe(this.banner.element,this.banner,!0)}; mg2=function(v){v.isInitialized&&(v.enabled=v.isVisible,v.Ti=v.isVisible,h_(v),v.CD(),v.thumbnailImage.tP(v.isVisible),v.shouldHideDismissButton||v.dismissButton.tP(v.isVisible),v.shouldShowOverflowButton&&v.overflowButton.tP(v.isVisible))}; yL=function(){LD.apply(this,arguments)}; Sw2=function(v){$w.call(this,v);this.T=new yL(this.api);g.k(this,this.T);g.gr(this.api,this.T.element,4)}; w1=function(v){$w.call(this,v);var J=this;this.T="";this.Z=!0;this.X=this.api.C("html5_enable_audio_track_stickiness_phase_two");var G=new g.Zs(v);g.k(this,G);G.G(v,"internalaudioformatchange",function(K,V){fKL(J,K,V)}); G.G(v,"videoplayerreset",function(){Z5m(J)}); G.G(v,"videodatachange",function(K,V){J.onVideoDataChange(K,V)})}; fKL=function(v,J,G){if(G){var K="";if(udF(v,J)&&(K=J,v.X||(v.T=J),v.api.C("html5_sabr_enable_server_xtag_selection"))){if(G=v.api.getVideoData(void 0,!0))G.nj=J;v.api.B().g_=J}if(v.X&&K&&gAL(v,K)){AXj(v.api,v.T||K);var V;Bx(VE(v.api.B(),(V=v.api.getVideoData())==null?void 0:g.cm(V)),function(Y){XHm(v,K,Y)})}}}; Z5m=function(v){if(v.T)kQm(v);else{var J;if(v.X&&((J=Fo())==null?0:J.size)){var G;Bx(VE(v.api.B(),(G=v.api.getVideoData())==null?void 0:g.cm(G)),function(K){if((K=cdj(K))&&gAL(v,K)){var V=v.api.getVideoData(void 0,!0);V&&(V.nj=K);v.api.B().g_=K}})}}}; kQm=function(v){var J=v.api.getVideoData(void 0,!0);J&&(J.nj=v.T)}; XHm=function(v,J,G){cdj(G)!==J&&(NCf([{settingItemId:Oq(G),settingOptionValue:{stringValue:J}}]),Bx(v.E4(),function(K){$TX(K,Oq(G),{stringValue:J})}))}; aK8=function(v,J){Ih(Bx(Bx(v.E4(),function(G){return j5L(G,[Oq(J)])}),function(G){if(G){G=g.n(G); for(var K=G.next();!K.done;K=G.next()){var V=K.value;K=V.key;V=V.value;K&&V&&(NCf([{settingItemId:K,settingOptionValue:V}]),Z5m(v))}}}),function(){v.Z=!0})}; udF=function(v,J){v=v.api.getAvailableAudioTracks();v=g.n(v);for(var G=v.next();!G.done;G=v.next())if(G=G.value,G.getLanguageInfo().getId()===J)return G;return null}; cdj=function(v){v=Oq(v);var J=Fo();v=J?J.get(v):void 0;return v&&v.stringValue?v.stringValue:""}; Oq=function(v){var J=(484).toString();v&&(J=(483).toString());return J}; gAL=function(v,J){var G;return J.split(".")[0]!==""&&((G=v.api.getVideoData())==null?void 0:!A3(G))}; NCf=function(v){var J=Fo();J||(J=new Map);v=g.n(v);for(var G=v.next();!G.done;G=v.next())G=G.value,J.set(G.settingItemId,G.settingOptionValue);J=JSON.stringify(Object.fromEntries(J));g.SW("yt-player-user-settings",J,2592E3)}; g.Uq=function(v,J,G,K,V,Y,r){g.Cm.call(this,g.bm({"aria-haspopup":"true"}),J,v);this.Mi=K;this.U=!1;this.Z=null;this.options={};this.X=new g.d1(G,void 0,v,V,Y,r);g.k(this,this.X);this.listen("keydown",this.pM);this.listen("click",this.open)}; Ad8=function(v){if(v.Z){var J=v.options[v.Z];J.element.getAttribute("aria-checked");J.element.setAttribute("aria-checked","false");v.Z=null}}; FJm=function(v,J){g.Uq.call(this,"Sleep timer",g.DM.SLEEP_TIMER,v,J);this.S=v;this.N={};this.j=this.jq("Off");this.K=this.T="";v.C("web_settings_menu_icons")&&this.setIcon({Y:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{Y:"path",V:{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.L=new g.F({Y:"div",n7:["ytp-menuitem-label-wrapper"],W:[{Y:"div",At:"End of video"},{Y:"div",n7:["ytp-menuitem-sublabel"],At:"{{content}}"}]});g.k(this,this.L);this.listen("click",this.onClick);this.G(v,"videodatachange",this.onVideoDataChange);this.G(v,"presentingplayerstatechange",this.De);this.G(v,"settingsMenuVisibilityChanged",this.qNH);v.createClientVe(this.element,this,218889);this.De();this.S.lw("onSleepTimerFeatureAvailable")}; H5j=function(v){var J="Off 10 15 20 30 45 60".split(" "),G;((G=v.S.getVideoData())==null?0:G.isLivePlayback)||J.push("End of video");G=v.S.getPlaylist();var K;G&&((K=G.listId)==null?void 0:K.type)!=="RD"&&J.push("End of playlist");v.zk(g.yn(J,v.jq));v.N=g.D6(J,v.jq,v);J=v.jq("End of video");v.options[J]&&g.Wz(v.options[J],v.L)}; M4U=function(v,J){var G=v.N[J],K=G==="End of video"||G==="End of playlist";G==="Off"&&(v.T="");v.S.getPlayerState()!==0&&v.S.getPlayerState()!==5||!K?(v.j=J,g.Uq.prototype.jf.call(v,J),v.SJ(J),v.S.lw("onSleepTimerSettingsChanged",G)):v.S.lw("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; xe=function(v){$w.call(this,v);var J=this;v.addEventListener("settingsMenuInitialized",function(){J.menuItem||(J.menuItem=new FJm(J.api,J.api.HV()),g.k(J,J.menuItem))}); v.addEventListener("openSettingsMenuItem",function(G){if(G==="menu_item_sleep_timer"){if(!J.menuItem){var K;(K=J.api.HV())==null||K.xL()}J.menuItem.open()}}); EM(v,"resetSleepTimerMenuSettings",function(){J.resetSleepTimerMenuSettings()}); EM(v,"setSleepTimerTimeLeft",function(G){J.setSleepTimerTimeLeft(G)}); EM(v,"setVideoTimeLeft",function(G){J.setVideoTimeLeft(G)})}; Qxt=function(v){$w.call(this,v);var J=this;this.events=new g.Zs(v);g.k(this,this.events);this.events.G(v,"onSnackbarMessage",function(G){switch(G){case 1:G=J.api.getPlayerStateObject(),G.isBuffering()&&g.H(G,8)&&g.H(G,16)&&J.api.lw("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.Si=function(v,J,G,K,V){J=J===void 0?!1:J;K=K===void 0?!1:K;V=V===void 0?!1:V;g.qU.call(this);this.N=V;this.K=!1;this.L=new yC(this);this.J=this.j=null;this.Z=this.X=!1;g.k(this,this.L);this.target=v;this.T=J;this.U=G||v;this.K=K;J&&(g.KI&&this.target.setAttribute("draggable","true"),V||(this.target.style.touchAction="none"));mh(this)}; fD=function(v){g.O9(v.L,!v.T)}; mh=function(v){v.J=null;v.j=null;v.G(Z9("over"),v.No);v.G("touchstart",v.xQ);v.T&&v.G(Z9("down"),v.xiU)}; WJU=function(v,J){for(var G=0;GV.start&&G>=5;R+=L}B=R.substr(0,4)+" "+R.substr(4,4)+" "+R.substr(8,4)+" "+(R.substr(12,4)+" "+R.substr(16,4))}else B="";r={video_id_and_cpn:String(J.videoId)+" / "+B,codecs:"", dims_and_frames:"",bandwidth_kbps:r.toFixed(0)+" Kbps",buffer_health_seconds:e.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:P?"":"display:none",drm:P,debug_info:G,extra_debug_info:"",bandwidth_style:t,network_activity_style:t,network_activity_bytes:E.toFixed(0)+" KB",shader_info:D,shader_info_style:D?"":"display:none",playback_categories:""};E=K.clientWidth+"x"+K.clientHeight+(V>1?"*"+V.toFixed(2):"");e="-";Y.totalVideoFrames&&(e=(Y.droppedVideoFrames||0)+" dropped of "+Y.totalVideoFrames); r.dims_and_frames=E+" / "+e;v=v.getVolume();E=rXm(J);var x;e=((x=J.L)==null?0:x.audio.T)?"DRC":Math.round(v*E)+"%";x=Math.round(v)+"% / "+e;v=J.dG.toFixed(1);isFinite(Number(v))&&(x+=" (content loudness "+v+"dB)");r.volume=x;r.resolution=K.videoWidth+"x"+K.videoHeight;if(K=J.X){if(x=K.video)v=x.fps,v>1&&(r.resolution+="@"+v),(v=Y.tj)&&v.video&&(r.resolution+=" / "+v.video.width+"x"+v.video.height,v.video.fps>1&&(r.resolution+="@"+v.video.fps)),r.codecs=$nX(K),!J.L||K.audio&&K.video?K.LC&&(r.codecs+= " / "+K.LC+"A"):r.codecs+=" / "+$nX(J.L),x.T||x.primaries?(v=x.T||"unknown",v==="smpte2084"?v+=" (PQ)":v==="arib-std-b67"&&(v+=" (HLG)"),r.color=v+" / "+(x.primaries||"unknown"),r.color_style=""):r.color_style="display:none";if(K.debugInfo)for(r.fmt_debug_info="",K=g.n(K.debugInfo),x=K.next();!x.done;x=K.next())x=x.value,r.fmt_debug_info+=x.label+":"+x.text+" ";r.fmt_debug_info_style=r.fmt_debug_info&&r.fmt_debug_info.length>0?"":"display:none"}K=J.isLivePlayback;x=J.mU;r.live_mode_style=K||x?"": "display:none";r.live_latency_style=K?"":"display:none";if(x)r.live_mode="Post-Live"+(Pm(J)?" Manifestless":"");else if(K){x=Y.n8;r.live_latency_secs=x.toFixed(2)+"s";K=Pm(J)?"Manifestless, ":"";J.qr&&(K+="Windowed, ");v="Uncertain";if(x>=0&&x<120)if(J.latencyClass&&J.latencyClass!=="UNKNOWN")switch(J.latencyClass){case "NORMAL":v="Optimized for Normal Latency";break;case "LOW":v="Optimized for Low Latency";break;case "ULTRALOW":v="Optimized for Ultra Low Latency";break;default:v="Unknown Latency Setting"}else v= J.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";K+=v;(x=Y.Yn)&&(K+=", seq "+x.sequence);r.live_mode=K}!Y.isGapless||ov(J)&&Y.Rf||(r.playback_categories+="Gapless ");r.playback_categories_style=r.playback_categories?"":"display:none";r.bandwidth_samples=Y.b_;r.network_activity_samples=Y.tM;r.live_latency_samples=Y.Sp;r.buffer_health_samples=Y.Iz;Y=g.im(J);if(J.cotn||Y)r.cotn_and_local_media=(J.cotn?J.cotn:"null")+" / "+Y;r.cotn_and_local_media_style=r.cotn_and_local_media? "":"display:none";vz(J,"web_player_release_debug")?(r.release_name=$s[13],r.release_style=""):r.release_style="display:none";r.debug_info&&I.length>0&&r.debug_info.length+I.length<=60?r.debug_info+=" "+I:r.extra_debug_info=I;r.extra_debug_info_style=r.extra_debug_info&&r.extra_debug_info.length>0?"":"display:none";return r}; $nX=function(v){var J=/codecs="([^"]*)"/.exec(v.mimeType);return J&&J[1]?J[1]+" ("+v.itag+")":v.itag}; a4=function(v,J,G,K,V){g.F.call(this,{Y:"div",D:"ytp-horizonchart"});this.K=J;this.sampleCount=G;this.L=K;this.j=V;this.index=0;this.heightPx=-1;this.Z=this.X=null;this.T=Math.round(v/G);this.element.style.width=this.T*this.sampleCount+"px";this.element.style.height=this.K+"em"}; A_=function(v,J){if(v.heightPx===-1){var G=null;try{G=g.qh("CANVAS"),v.X=G.getContext("2d")}catch(E){}if(v.X){var K=v.T*v.sampleCount;v.Z=G;v.Z.width=K;v.Z.style.width=K+"px";v.element.appendChild(v.Z)}else for(v.sampleCount=Math.floor(v.sampleCount/4),v.T*=4,G=0;G1?2:1,v.Z.height=v.heightPx*G,v.Z.style.height= v.heightPx+"px",v.X.scale(1,G)));J=g.n(J);for(K=J.next();!K.done;K=J.next()){G=v;var V=v.index,Y=K.value;for(K=0;K+20&&g.PM(J.Z.element);K.classList.add("ytp-timely-actions-overlay");J.Z.element.appendChild(K)}); g.k(this,this.Z);g.gr(this.api,this.Z.element,4)}; Ias=function(v){v.timelyActions&&(v.L=v.timelyActions.reduce(function(J,G){if(G.cueRangeId===void 0)return J;J[G.cueRangeId]=0;return J},{}))}; QL=function(v,J){if(v.timelyActions){v=g.n(v.timelyActions);for(var G=v.next();!G.done;G=v.next())if(G=G.value,G.cueRangeId===J)return G}}; h8t=function(v,J){if((v=QL(v,J))&&v.onCueRangeExit)return km(v.onCueRangeExit)}; z8s=function(v){if(v.T!==void 0){var J=(J=QL(v,v.T))&&J.onCueRangeEnter?km(J.onCueRangeEnter):void 0;var G=QL(v,v.T);if(G&&G.additionalTrigger){var K=!1;for(var V=g.n(G.additionalTrigger),Y=V.next();!Y.done;Y=V.next())Y=Y.value,Y.type&&Y.args&&v.K[Y.type]!==void 0&&(K=K||v.K[Y.type](Y.args))}else K=!0;J&&K&&(v.api.lw("innertubeCommand",J),v.setTimeout(G),v.L[v.T]!==void 0&&v.L[v.T]++,v.J=!0)}}; PHB=function(v,J){return v.X===void 0?!1:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(J.seekLengthMilliseconds)===5E3?v.X===72:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(J.seekLengthMilliseconds)===1E4?v.X===74:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(J.seekLengthMilliseconds)===5E3?v.X===71:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(J.seekLengthMilliseconds)===1E4?v.X===73:!1}; Dnt=function(v){if(v=v.getWatchNextResponse()){var J,G;v=(J=v.playerOverlays)==null?void 0:(G=J.playerOverlayRenderer)==null?void 0:G.timelyActionsOverlayViewModel;J=g.N(v,nFU);if(J!=null&&J.timelyActions)return J==null?void 0:J.timelyActions.map(function(K){return g.N(K,dnU)}).filter(function(K){return!!K})}}; sOt=function(v){$w.call(this,v);var J=this;eI(this.api,"getPlaybackRate",function(){return J.api.getPlaybackRate()}); eI(this.api,"setPlaybackRate",function(G){typeof G==="number"&&J.api.setPlaybackRate(G)})}; R8m=function(v){v=v.Dm();if(!v)return!1;v=g.oS(v).exp||"";return v.includes("xpv")||v.includes("xpe")}; laU=function(v){v=g.n(g.WT(v,!0));for(var J=v.next();!J.done;J=v.next())if(R8m(J.value))return!0;return!1}; TLm=function(v,J){v=g.n(g.WT(v,!0));for(var G=v.next();!G.done;G=v.next())if(G=G.value,R8m(G)){var K={potc:"1",pot:J};G.url&&(G.url=KE(G.url,K))}}; pUB=function(v){var J=new KKf,G={},K=(G["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",G);return new ZD(J,v,function(){return K})}; L7w=function(v){return g.m(function(J){if(J.T==1)return g.nf(J,2),g.U(J,v,4);if(J.T!=2)return g.Rm(J,0);g.lj(J);g.zX(J)})}; bT=function(v){$w.call(this,v);var J=this;this.useLivingRoomPoToken=!1;this.L=new g.w5;this.n0=null;this.K=!1;this.Z=null;this.J=!1;var G=v.B().getWebPlayerContextConfig();this.events=new g.Zs(v);g.k(this,this.events);this.events.G(v,"spsumpreject",function(K,V,Y){J.J=V;K&&J.K&&!J.Z&&(J.C("html5_generate_content_po_token")&&Y?J.oB(Y):J.C("html5_generate_session_po_token")&&ybm(J));J.Z||J.api.uw("stp",{s:+J.K,b:+J.J})}); this.events.G(v,"poTokenVideoBindingChange",function(K){J.oB(K)}); this.useLivingRoomPoToken=!(G==null||!G.useLivingRoomPoToken);v.addEventListener("csiinitialized",function(){J.n0=v.Gl();var K=(J.C("html5_generate_session_po_token")||J.C("html5_generate_content_po_token"))&&!J.useLivingRoomPoToken;try{if(J.C("html5_use_shared_owl_instance"))wUt(J);else if(K){J.n0.D0("pot_isc");J.C("html5_new_wpo_client")||Osw(J);var V=g.DI(J.api.B().experiments,"html5_webpo_kaios_defer_timeout_ms");V?(J.C("html5_new_wpo_client")&&(J.X=Ku()),g.By(function(){CD(J)},V)):J.C("html5_webpo_idle_priority_job")? (J.C("html5_new_wpo_client")&&(J.X=Ku()),g.jQ(g.$q(),function(){CD(J)})):CD(J)}}catch(Y){Y instanceof Error&&g.Zl(Y)}}); v.addEventListener("trackListLoaded",this.Tb.bind(this));v.cK(this)}; Un2=function(v){var J=$$(v.experiments,"html5_web_po_request_key");return J?J:g.yW(v)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; j6=function(v,J){if(v.C("html5_webpo_bge_ctmp")){var G,K={hwpo:!!v.T,hwpor:!((G=v.T)==null||!G.isReady())};v.api.uw(J,K)}}; wUt=function(v){var J,G;g.m(function(K){if(K.T==1)return j6(v,"swpo_i"),v.X=Ku(),ip(v),g.U(K,LM(),2);if(K.T!=3)return J=K.X,j6(v,"swpo_co"),g.U(K,jYr(J),3);G=K.X;v.T=xnB(v,G);j6(v,"swpo_cc");v.T.ready().then(function(){v.L.resolve();j6(v,"swpo_re")}); g.By(function(){CD(v);j6(v,"swpo_si")},0); g.zX(K)})}; Osw=function(v){var J=v.api.B(),G=Un2(J),K=pUB(G);J=new jz({pJ:"CLEn",LO:G,hS:K,onEvent:function(V){(V=mn2[V])&&v.n0.D0(V)}, onError:g.Zl,aO:TpX(J.experiments),Kn:function(){return void v.api.uw("itr",{})}, mLB:J.experiments.OB("html5_web_po_disable_remote_logging")||S7B.includes(g.Wp(J.Ks)||"")});J.ready().then(function(){return void v.L.resolve()}); g.k(v,J);v.T=J}; faw=function(v){var J=v.api.B(),G=pUB(Un2(J)),K=G.FW.bind(G);G.FW=function(E){var e;return g.m(function(P){if(P.T==1)return g.U(P,K(E),2);e=P.X;v.api.uw("itr",{});return P.return(e)})}; try{var V=new u7({hS:G,DJ:{maxAttempts:5},KR:{pJ:"CLEn",disable:J.experiments.OB("html5_web_po_disable_remote_logging")||S7B.includes(g.Wp(J.Ks)||""),Xq:TpX(J.experiments),IZi:v.C("wpo_dis_lfdms")?0:1E3},GSB:g.Zl});var Y=new oW({EN:V,hS:G,onError:g.Zl});L7w(Y.Gz()).then(function(){return void v.L.resolve()}); g.k(v,V);g.k(v,Y);v.T=xnB(v,Y)}catch(E){g.Zl(E);var r;(r=V)==null||r.dispose()}}; CD=function(v){var J=v.api.B();v.n0.D0("pot_ist");v.T?v.T.start():v.C("html5_new_wpo_client")&&faw(v);v.C("html5_bandaid_attach_content_po_token")||(v.C("html5_generate_session_po_token")&&(ip(v),ybm(v)),J=g.DI(J.experiments,"html5_session_po_token_interval_time_ms")||0,J>0&&(v.j=g.IS(function(){ip(v)},J)),v.K=!0)}; ip=function(v){var J,G,K,V;g.m(function(Y){if(!v.C("html5_generate_session_po_token")||v.useLivingRoomPoToken)return Y.return();J=v.api.B();G=g.H$("EOM_VISITOR_DATA")||g.H$("VISITOR_DATA");K=J.Lj?J.datasyncId:G;V=$$(J.experiments,"html5_mock_content_binding_for_session_token")||J.livingRoomPoTokenId||K;J.HG=$Q(v,V);g.zX(Y)})}; $Q=function(v,J){if(!v.T){if(v.X)try{return v.X(J)}catch(r){g.Zl(r)}return""}try{var G=v.T.isReady();v.n0.D0(G?"pot_cms":"pot_csms");var K="";K=v.C("html5_web_po_token_disable_caching")?v.T.zV({pZ:J}):v.T.zV({pZ:J,FQ:{kM:J,SR7:150,U3:!0,lq:!0}});v.n0.D0(G?"pot_cmf":"pot_csmf");if(G){var V;(V=v.Z)==null||V.resolve();v.Z=null;if(v.J){v.J=!1;var Y;(Y=v.api.app.zi())==null||Y.OZ(!1)}}return K}catch(r){return g.Zl(r),""}}; ybm=function(v){v.T&&(v.Z=new Ct,v.T.ready().then(function(){v.n0.D0("pot_if");ip(v)}))}; xnB=function(v,J){v.C("html5_web_po_token_disable_caching")||J.uF(150);var G=!1,K=L7w(J.Gz()).then(function(){G=!0}); return{isReady:function(){return G}, ready:function(){return K}, zV:function(V){return J.zV({pZ:V.pZ,hc:!0,Nh:!0,FQ:V.FQ?{kM:V.FQ.kM,U3:V.FQ.U3,lq:V.FQ.lq}:void 0})}, start:function(){}}}; Zsw=function(v){$w.call(this,v);var J=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Zs(v);g.k(this,this.events);this.events.G(v,"heartbeatRequest",function(G){if(J.freePreviewUsageDetails.length||J.freePreviewWatchedDuration!==null)G.heartbeatRequestParams||(G.heartbeatRequestParams={}),G.heartbeatRequestParams.unpluggedParams||(G.heartbeatRequestParams.unpluggedParams={}),J.freePreviewUsageDetails.length>0?G.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= J.freePreviewUsageDetails:G.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+J.freePreviewWatchedDuration}}); EM(v,"setFreePreviewWatchedDuration",function(G){J.freePreviewWatchedDuration=G}); EM(v,"setFreePreviewUsageDetails",function(G){J.freePreviewUsageDetails=G})}; vv=function(v){g.X.call(this);this.features=[];var J=this.T,G=new Ov(v),K=new vd(v),V=new ei(v),Y=new bT(v);var r=g.pX(v.B())?void 0:new dm(v);var E=new Eq(v),e=new oFF(v),P=new sOt(v),D=new wm(v);var t=g.pX(v.B())?new Zsw(v):void 0;var B=v.C("html5_enable_ssap")?new isF(v):void 0;var I=v.C("web_cinematic_watch_settings")&&(I=v.B().getWebPlayerContextConfig())!=null&&I.cinematicSettingsAvailable?new IT(v):void 0;var h=new ye(v);var R=v.C("enable_courses_player_overlay_purchase")?new shF(v):void 0; var T=g.bh(v.B())?new hcX(v):void 0;var L=new RT(v);var O=v.B().L?new ecB(v):void 0;var x=g.Of(v.B())?new Ezw(v):void 0;var f=v.C("web_player_move_autonav_toggle")&&v.B().Mj?new JnU(v):void 0;var c=g.bh(v.B())?new jxU(v):void 0;var b=v.C("web_enable_speedmaster")&&g.bh(v.B())?new Xf(v):void 0;var M=v.B().ZO?void 0:new e8m(v);var Jw=v.C("report_pml_debug_signal")?new jht(v):void 0;var Kf=new esB(v),j8=new BT(v);var a=g.gy(v.B())?new sxw(v):void 0;var C=navigator.mediaSession&&window.MediaMetadata&& v.B().yT?new r1(v):void 0;var d=v.C("html5_enable_drc")&&!v.B().j?new nz(v):void 0;var A=new G0(v);var cF=g.bh(v.B())?new Sw2(v):void 0;var RL=v.C("html5_enable_d6de4")?new PT(v):void 0;var BN=g.bh(v.B())&&v.C("web_sleep_timer")?new xe(v):void 0;var pf=g.Of(v.B())?new DbB(v):void 0;var iU=new w1(v),VY=new Yu2(v),IL=new bCL(v);var p=v.C("enable_sabr_snackbar_message")?new Qxt(v):void 0;var y=v.C("web_enable_timely_actions")?new BLF(v):void 0;J.call(this,G,K,V,Y,r,E,e,P,D,t,B,I,h,R,T,L,O,x,f,c,b,M, Jw,Kf,j8,a,void 0,C,d,A,void 0,cF,RL,BN,pf,void 0,iU,VY,IL,void 0,p,y,new hr(v))}; uWw=function(){this.X=this.T=NaN}; gFr=function(v,J){this.EB=v;this.timerName="";this.Z=!1;this.X=NaN;this.L=new uWw;this.T=J||null;this.Z=!1}; XUU=function(v,J,G){var K=g.ZR(J.gh)&&!J.gh.j;if(J.gh.qm&&(x$(J.gh)||J.gh.Mr==="shortspage"||JW(J.gh)||K)&&!v.Z){v.Z=!0;v.j=J.clientPlaybackNonce;g.H$("TIMING_ACTION")||F4("TIMING_ACTION",v.EB.csiPageType);v.EB.csiServiceName&&F4("CSI_SERVICE_NAME",v.EB.csiServiceName);if(v.T){K=v.T.Gl();for(var V=g.n(Object.keys(K)),Y=V.next();!Y.done;Y=V.next())Y=Y.value,cB(Y,K[Y],v.timerName);K=g.jk(m2L)(v.T.HY);g.N0(K,v.timerName);K=v.T;K.X={};K.HY={}}g.N0({playerInfo:{visibilityState:g.jk(x2m)()},playerType:"LATENCY_PLAYER_HTML5"}, v.timerName);v.J!==J.clientPlaybackNonce||Number.isNaN(v.X)||(Au("_start",v.timerName)?G=g.jk(fV)("_start",v.timerName)+v.X:g.Zl(new g.Mk("attempted to log gapless pbs before CSI timeline started",{cpn:J.clientPlaybackNonce})));G&&!Au("pbs",v.timerName)&&Jm(v,G)}}; Jm=function(v,J,G){cB("pbs",J!=null?J:(0,g.yR)(),G!=null?G:v.timerName)}; kkm=function(v,J,G,K,V,Y,r,E){J=(J===K?"video":"ad")+"_to_"+(G===K?"video":"ad");if(J!=="video_to_ad"||r!=null&&r.Ze){r=J==="ad_to_video"?r:V;K=r==null?void 0:r.o9;var e={};if(V==null?0:V.j)e.cttAuthInfo={token:V.j,videoId:V.videoId};Y&&(e.startTime=Y);aw(J,e);var P,D,t;V={targetVideoId:(P=V==null?void 0:V.videoId)!=null?P:"empty_video",targetCpn:G,adVideoId:(D=r==null?void 0:r.videoId)!=null?D:"empty_video",adClientPlaybackNonce:(t=K==null?void 0:K.cpn)!=null?t:r==null?void 0:r.clientPlaybackNonce}; K&&(V.adBreakType=K.adBreakType,V.adType=K.adType);g.N0(V,J);Jm(v,E,J)}}; Go=function(v){aUt();Nes();v.timerName=""}; cbF=function(v){if(v.T){var J=v.T;J.X={};J.HY={}}v.Z=!1;v.J=void 0;v.X=NaN}; NLf=function(v,J){g.qU.call(this);this.gh=v;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.T=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.N={};this.X=0;if(v=J.session_data)this.sessionData=$6(v,"&");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(v=J.api)typeof v==="string"&&v.length===16?J.list="PL"+v:J.playlist=v;if(v=J.list)switch(J.listType){case "user_uploads":this.listId=new RG("UU","PLAYER_"+v);break;default:var G=J.playlist_length;G&&(this.length=Number(G)||0);this.listId=g.ls(v);if(v=J.video)this.items=v.slice(0),this.loaded=!0}else if(J.playlist){v=J.playlist.toString().split(",");this.index>0&&(this.items=[]);v=g.n(v);for(G=v.next();!G.done;G=v.next())(G= G.value)&&this.items.push({video_id:G});this.length=this.items.length;if(v=J.video)this.items=v.slice(0),this.loaded=!0}this.setShuffle(!!J.shuffle);if(v=J.suggestedQuality)this.quality=v;this.N=z3(J,"playlist_");this.Z=(J=J.thumbnail_ids)?J.split(","):[]}; aaj=function(v){return!!(v.playlist||v.list||v.api)}; AbU=function(v){var J=v.index+1;return J>=v.length?0:J}; F7L=function(v){var J=v.index-1;return J<0?v.length-1:J}; g.oV=function(v,J,G,K){J=J!==void 0?J:v.index;J=v.items&&J in v.items?v.items[v.order[J]]:null;var V=null;J&&(G&&(J.autoplay="1"),K&&(J.autonav="1"),V=new g.FP(v.gh,J),g.k(v,V),V.RE=!0,V.startSeconds=v.startSeconds||V.clipStart||0,v.listId&&(V.playlistId=v.listId.toString()));return V}; Hs2=function(v,J){v.index=g.nk(J,0,v.length-1);v.startSeconds=0}; Mtr=function(v,J){if(J.video&&J.video.length){v.title=J.title||"";v.description=J.description;v.views=J.views;v.likes=J.likes;v.dislikes=J.dislikes;v.author=J.author||"";var G=J.loop;G&&(v.loop=G);G=g.oV(v);v.items=[];for(var K=g.n(J.video),V=K.next();!V.done;V=K.next())if(V=V.value)V.video_id=V.encrypted_id,v.items.push(V);v.length=v.items.length;(J=J.index)?v.index=J:v.findIndex(G);v.setShuffle(!1);v.loaded=!0;v.X++;v.T&&v.T()}}; CH2=function(v,J){var G,K,V,Y,r,E,e;return g.m(function(P){if(P.T==1){G=g.VA();var D=v.B(),t={context:g.rr(v),playbackContext:{contentPlaybackContext:{ancestorOrigins:D.ancestorOrigins}}},B=D.getWebPlayerContextConfig();if(B==null?0:B.encryptedHostFlags)t.playbackContext.contentPlaybackContext.encryptedHostFlags=B.encryptedHostFlags;if(B==null?0:B.hideInfo)t.playerParams={showinfo:!1};D=D.embedConfig;B=J.docid||J.video_id||J.videoId||J.id;if(!B){B=J.raw_embedded_player_response;if(!B){var I=J.embedded_player_response; I&&(B=JSON.parse(I))}if(B){var h,R,T,L,O,x;B=((x=g.N((h=B)==null?void 0:(R=h.embedPreview)==null?void 0:(T=R.thumbnailPreviewRenderer)==null?void 0:(L=T.playButton)==null?void 0:(O=L.buttonRenderer)==null?void 0:O.navigationEndpoint,g.ig))==null?void 0:x.videoId)||null}else B=null}h=(h=B)?h:void 0;R=v.playlistId?v.playlistId:J.list;T=J.listType;if(R){var f;T==="user_uploads"?f={username:R}:f={playlistId:R};QOj(D,h,J,f);t.playlistRequest=f}else J.playlist?(f={templistVideoIds:J.playlist.toString().split(",")}, QOj(D,h,J,f),t.playlistRequest=f):h&&(f={videoId:h},D&&(f.serializedThirdPartyEmbedConfig=D),t.singleVideoRequest=f);K=t;V=g.$n(W78);g.nf(P,2);return g.U(P,g.WB(G,K,V),4)}if(P.T!=2)return Y=P.X,r=v.B(),J.raw_embedded_player_response=Y,r.Ze=qk(J,g.Of(r)),r.Z=r.Ze==="EMBEDDED_PLAYER_MODE_PFL",Y&&(E=Y,E.trackingParams&&Uu(E.trackingParams)),P.return(new g.FP(r,J));e=g.lj(P);e instanceof Error||(e=Error("b259802748"));g.fW(e);return P.return(v)})}; QOj=function(v,J,G,K){G.index&&(K.playlistIndex=String(Number(G.index)+1));K.videoId=J?J:"";v&&(K.serializedThirdPartyEmbedConfig=v)}; g.Vp=function(v,J){KC.get(v);KC.set(v,J)}; g.YQ=function(v){g.qU.call(this);this.loaded=!1;this.player=v}; bsf=function(){this.X=[];this.T=[]}; g.WT=function(v,J){return J?v.T.concat(v.X):v.T}; g.rP=function(v,J){switch(J.kind){case "asr":jFt(J,v.X);break;default:jFt(J,v.T)}}; jFt=function(v,J){g.MS(J,function(G){return v.Rt(G)})||J.push(v)}; g.q6=function(v){g.X.call(this);this.kB=v;this.X=new bsf;this.L=null;this.J=[];this.U=[]}; g.ED=function(v,J,G){g.q6.call(this,v);this.videoData=J;this.audioTrack=G;this.T=null;this.Z=!1;this.J=J.AB;this.U=J.pw;this.Z=g.ug(J)}; g.e6=function(v,J){return JB(v.info.mimeType)?J?v.info.itag===J:!0:!1}; g.icw=function(v,J){if(v.T!=null&&g.pX(J.B())&&!v.T.isManifestless&&v.T.T.rawcc!=null)return!0;if(!v.yn())return!1;J=!!v.T&&v.T.isManifestless&&Object.values(v.T.T).some(function(G){return g.e6(G,"386")}); v=!!v.T&&!v.T.isManifestless&&g.fow(v.T);return J||v}; g.Pv=function(v,J,G,K,V,Y){g.q6.call(this,v);this.videoId=G;this.zp=V;this.eventId=Y;this.j={};this.T=null;v=K||g.oS(J).hl||"";v=v.split("_").join("-");this.Z=KE(J,{hl:v})}; $Qj=function(v,J){this.X=v;this.T=J;this.onFailure=void 0}; v0r=function(v,J){return{Rz:v.Rz&&J.Rz,Zm:v.Zm&&J.Zm,sync:v.sync&&J.sync,streaming:v.streaming&&J.streaming}}; tm=function(v,J){var G=Jer,K=this;this.path=v;this.Z=J;this.L=G;this.capabilities={Rz:!!this.Z,Zm:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.J=new $Qj([{name:"compileStreaming",condition:function(V){return!!K.X&&V.streaming}, aG:Dd.A4("wmcx",function(){return WebAssembly.compileStreaming(fetch(K.path))}), onFailure:function(){return K.capabilities.streaming=!1}}, {name:"sync",condition:function(V){return V.sync}, aG:function(){return Bx(Gyf(K),Dd.A4("wmcs",function(V){return new WebAssembly.Module(V)}))}, onFailure:function(){return K.capabilities.sync=!1}}, {name:"async",condition:function(){return!0}, aG:function(){return Bx(Gyf(K),Dd.A4("wmca",function(V){return WebAssembly.compile(V)}))}, onFailure:function(){return K.capabilities.Zm=!1}}]); this.j=new $Qj([{name:"instantiateStreaming",condition:function(V){return V.Zm&&V.streaming&&!K.X&&!K.T}, aG:function(V,Y){return Dd.MO("wmix",function(){return WebAssembly.instantiateStreaming(fetch(K.path),Y)}).then(function(r){K.T=Eu(r.module); return{instance:r.instance,Wa:!1}})}, onFailure:function(){return K.capabilities.streaming=!1}}, {name:"sync",condition:function(V){return V.Zm&&V.sync}, aG:function(V,Y){return Bx(o0w(K,V),Dd.A4("wmis",function(r){return{instance:new WebAssembly.Instance(r,Y),Wa:!1}}))}, onFailure:function(){return K.capabilities.sync=!1}}, {name:"async",condition:function(V){return V.Zm}, aG:function(V,Y){return Bx(Bx(o0w(K,V),Dd.A4("wmia",function(r){return WebAssembly.instantiate(r,Y)})),function(r){return{instance:r, Wa:!1}})}, onFailure:function(){return K.capabilities.Zm=!1}}, {name:"asmjs",condition:function(V){return V.Rz}, aG:function(V,Y){return Eu(Dd.MO("wmij",function(){return K.Z(Y)}).then(function(r){return{instance:{exports:r}, Wa:!0}}))}, onFailure:function(){return K.capabilities.Rz=!1}}],function(V,Y,r){return K.L(r,V.instance.exports)})}; Ypm=function(v){var J=Ko8;return J.instantiate(v?v0r(J.capabilities,v):J.capabilities,new VoU)}; Gyf=function(v){if(v.X)return v.X;var J=fetch(v.path).then(function(G){return G.arrayBuffer()}).then(function(G){v.X=Eu(G); return G}).then(void 0,function(G){g.Zl(Error("wasm module fetch failure: "+G.message,{cause:G})); v.X=void 0;throw G;}); v.X=Eu(J);return v.X}; o0w=function(v,J){if(!J.Zm)return Px(Error("wasm unavailable"));if(v.T)return v.T;v.T=Ih(Bx(v.compile(J),function(G){v.T=Eu(G);return G}),function(G){g.Zl(Error("wasm module compile failure: "+G.message,{cause:G})); v.T=void 0;throw G;}); return v.T}; reU=function(){}; qpm=function(){var v=this;this.proc_exit=function(){}; this.fd_write=function(J,G,K){if(!v.exports)return 1;J=new Uint32Array(v.exports.memory.buffer,G,K*2);G=[];for(var V=0;V=11;v=v.api.B().U&&To;return!(!J&&!v)}; Zd=function(v,J){return!v.api.isInline()&&!Mot(v,pq(J))&&g.pd(J)}; Hcf=function(v){v.oK.kU();if(v.m_&&v.EQ)v.EQ=!1;else if(!v.api.B().YB&&!v.c7()){var J=v.api.getPlayerStateObject();g.H(J,2)&&g.OM(v.api)||v.gZ(J);!v.api.B().UR||J.isCued()||g.H(J,1024)?v.LH():v.kt.isActive()?(v.il(),v.kt.stop()):v.kt.start()}}; Wo2=function(v,J){var G;if((G=v.api.getVideoData())==null?0:G.mutedAutoplay){var K,V;if((K=J.target)==null?0:(V=K.className)==null?0:V.includes("ytp-info-panel"))return!1}return g.pd(J)&&v.api.isMutedByMutedAutoplay()?(v.api.unMute(),v.api.getPresentingPlayerType()===2&&v.api.playVideo(),J=v.api.getPlayerStateObject(),!g.H(J,4)||g.H(J,8)||g.H(J,2)||v.LH(),!0):!1}; CnL=function(v,J,G){v.api.isFullscreen()?G<1-J&&v.api.toggleFullscreen():G>1+J&&v.api.toggleFullscreen()}; Foj=function(v){var J=Ah()&&cy()>=67&&!v.api.B().U;v=v.api.B().disableOrganicUi;return!g.aS("tizen")&&!LY&&!J&&!v}; g.up=function(v){g.F.call(this,{Y:"div",W:[{Y:"div",D:"ytp-bezel-text-wrapper",W:[{Y:"div",D:"ytp-bezel-text",At:"{{title}}"}]},{Y:"div",D:"ytp-bezel",V:{role:"status","aria-label":"{{label}}"},W:[{Y:"div",D:"ytp-bezel-icon",At:"{{icon}}"}]}]});this.S=v;this.X=new g.Qq(this.show,10,this);v=this.S.C("delhi_modern_web_player")?1E3:500;this.T=new g.Qq(this.hide,v,this);g.k(this,this.X);g.k(this,this.T);this.hide()}; XD=function(v,J,G){if(J<=0){G=xP();J="muted";var K=0}else G=G?{Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"path",Xu:!0,V:{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"}}]}:{Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"path",Xu:!0,V:{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"}}]},K=Math.floor(J),J=K+"volume";gP(v,G,J,K+"%")}; bcU=function(v,J){J=J?{Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{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"}}]}:BIB();var G=v.S.getPlaybackRate(),K=g.h6("Speed is $RATE",{RATE:String(G)});gP(v,J,K,G+"x")}; jXm=function(v,J){J=J?"Subtitles/closed captions on":"Subtitles/closed captions off";gP(v,K18(),J)}; gP=function(v,J,G,K){K=K===void 0?"":K;v.updateValue("label",G===void 0?"":G);v.updateValue("icon",J);g.b4(v.T);v.X.start();v.updateValue("title",K);g.E3(v.element,"ytp-bezel-text-hide",!K)}; i$U=function(v,J){g.F.call(this,{Y:"button",n7:["ytp-button","ytp-cards-button"],V:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.Of(v.B()))},W:[{Y:"span",D:"ytp-cards-button-icon-default",W:[{Y:"div",D:"ytp-cards-button-icon",W:[v.B().C("player_new_info_card_format")?zDF():{Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{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"}}]}]}, {Y:"div",D:"ytp-cards-button-title",At:"Info"}]},{Y:"span",D:"ytp-cards-button-icon-shopping",W:[{Y:"div",D:"ytp-cards-button-icon",W:[{Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"path",D:"ytp-svg-shadow",V:{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"}},{Y:"path",D:"ytp-svg-fill",V:{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"}},{Y:"path",D:"ytp-svg-shadow-fill",V:{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"}}]}]},{Y:"div", D:"ytp-cards-button-title",At:"Shopping"}]}]});this.S=v;this.X=J;this.T=null;this.fade=new g.Jk(this,250,!0,100);g.k(this,this.fade);g.E3(this.X,"ytp-show-cards-title",g.Of(v.B()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.Xg(!0)}; $Fs=function(v,J){g.F.call(this,{Y:"div",D:"ytp-cards-teaser",W:[{Y:"div",D:"ytp-cards-teaser-box"},{Y:"div",D:"ytp-cards-teaser-text",W:v.B().C("player_new_info_card_format")?[{Y:"button",D:"ytp-cards-teaser-info-icon",V:{"aria-label":"Show cards","aria-haspopup":"true"},W:[zDF()]},{Y:"span",D:"ytp-cards-teaser-label",At:"{{text}}"},{Y:"button",D:"ytp-cards-teaser-close-button",V:{"aria-label":"Close"},W:[g.RK()]}]:[{Y:"span",D:"ytp-cards-teaser-label",At:"{{text}}"}]}]});var G=this;this.S=v;this.DI= J;this.fade=new g.Jk(this,250,!1,250);this.T=null;this.K=new g.Qq(this.wOH,300,this);this.j=new g.Qq(this.Ndi,2E3,this);this.L=[];this.X=null;this.U=new g.Qq(function(){G.element.style.margin="0"},250); this.onClickCommand=this.Z=null;g.k(this,this.fade);g.k(this,this.K);g.k(this,this.j);g.k(this,this.U);v.B().C("player_new_info_card_format")?(g.Vj(v.getRootNode(),"ytp-cards-teaser-dismissible"),this.G(this.p7("ytp-cards-teaser-close-button"),"click",this.nM),this.G(this.p7("ytp-cards-teaser-info-icon"),"click",this.ri),this.G(this.p7("ytp-cards-teaser-label"),"click",this.ri)):this.listen("click",this.ri);this.G(J.element,"mouseover",this.fL);this.G(J.element,"mouseout",this.VQ);this.G(v,"cardsteasershow", this.m1l);this.G(v,"cardsteaserhide",this.FO);this.G(v,"cardstatechange",this.FK);this.G(v,"presentingplayerstatechange",this.FK);this.G(v,"appresize",this.iB);this.G(v,"onShowControls",this.iB);this.G(v,"onHideControls",this.t1);this.listen("mouseenter",this.Y_)}; vWr=function(v){g.F.call(this,{Y:"button",n7:[kQ.BUTTON,kQ.TITLE_NOTIFICATIONS],V:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},W:[{Y:"div",D:kQ.TITLE_NOTIFICATIONS_ON,V:{title:"Stop receiving notifications about every new video","aria-label":"Notify subscriptions"},W:[g.pR()]},{Y:"div",D:kQ.TITLE_NOTIFICATIONS_OFF,V:{title:"Receive notifications about every new video","aria-label":"Notify subscriptions"},W:[{Y:"svg",V:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{Y:"path", V:{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=v;this.T=!1;v.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Receive notifications about every new video")}; JFF=function(v,J){v.T=J;v.element.classList.toggle(kQ.NOTIFICATIONS_ENABLED,v.T);var G=v.api.getVideoData();G?(J=J?G.nw:G.v9)?(v=v.api.E4())?Q_(v,J):g.fW(Error("No innertube service available when updating notification preferences.")):g.fW(Error("No update preferences command available.")):g.fW(Error("No video data when updating notification preferences."))}; oWs=function(v,J,G){var K=K===void 0?800:K;var V=V===void 0?600:V;var Y=document.location.protocol;v=nur(Y+"//"+v+"/signin?context=popup","feature",J,"next",Y+"//"+location.hostname+"/post_login");Gv8(v,G,K,V)}; Gv8=function(v,J,G,K){G=G===void 0?800:G;K=K===void 0?600:K;if(v=g.Mv(window,v,"loginPopup","width="+G+",height="+K+",resizable=yes,scrollbars=yes"))Bx8(function(){J()}),v.moveTo((screen.width-G)/2,(screen.height-K)/2)}; g.cv=function(v,J,G,K,V,Y,r,E,e,P,D,t){v=v.charAt(0)+v.substring(1).toLowerCase();G=G.charAt(0)+G.substring(1).toLowerCase();if(J==="0"||J==="-1")J=null;if(K==="0"||K==="-1")K=null;var B=D.B(),I=B.userDisplayName&&g.ZR(B);g.F.call(this,{Y:"div",n7:["ytp-button","ytp-sb"],W:[{Y:"div",D:"ytp-sb-subscribe",V:I?{title:g.h6("Subscribe as $USER_NAME",{USER_NAME:B.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":G3(B),"data-tooltip-opaque":String(g.Of(B)),tabindex:"0",role:"button"}: {"aria-label":"Subscribe to channel"},W:[{Y:"div",D:"ytp-sb-text",W:[{Y:"div",D:"ytp-sb-icon"},v]},J?{Y:"div",D:"ytp-sb-count",At:J}:""]},{Y:"div",D:"ytp-sb-unsubscribe",V:I?{title:g.h6("Subscribed as $USER_NAME",{USER_NAME:B.userDisplayName}),"aria-label":"Unsubscribe from channel","data-tooltip-image":G3(B),"data-tooltip-opaque":String(g.Of(B)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe from channel"},W:[{Y:"div",D:"ytp-sb-text",W:[{Y:"div",D:"ytp-sb-icon"},G]},K?{Y:"div",D:"ytp-sb-count", At:K}:""]}],V:{"aria-live":"polite"}});var h=this;this.channelId=r;this.S=D;this.Z=t;var R=this.p7("ytp-sb-subscribe"),T=this.p7("ytp-sb-unsubscribe");Y&&g.Vj(this.element,"ytp-sb-classic");if(V){E?this.T():this.X();var L=function(){if(B.dh){var x=h.channelId;if(e||P){var f={c:x};var c;g.fn.isInitialized()&&(c=dVU(f));f=c||"";if(c=D.getVideoData())if(c=c.subscribeCommand){var b=D.E4();b?(Q_(b,c,{botguardResponse:f,feature:e}),D.lw("SUBSCRIBE",x)):g.fW(Error("No innertube service available when updating subscriptions."))}else g.fW(Error("No subscribe command in videoData.")); else g.fW(Error("No video data available when updating subscription."))}T.focus();T.removeAttribute("aria-hidden");R.setAttribute("aria-hidden","true")}else oWs(g.HL(h.S.B()),"sb_button",h.L)},O=function(){var x=h.channelId; if(e||P){var f=D.getVideoData();Q_(D.E4(),f.unsubscribeCommand,{feature:e});D.lw("UNSUBSCRIBE",x)}R.focus();R.removeAttribute("aria-hidden");T.setAttribute("aria-hidden","true")}; this.G(R,"click",L);this.G(T,"click",O);this.G(R,"keypress",function(x){x.keyCode===13&&L(x)}); this.G(T,"keypress",function(x){x.keyCode===13&&O(x)}); this.G(D,"SUBSCRIBE",this.T);this.G(D,"UNSUBSCRIBE",this.X);this.Z&&I&&(kd8(D),Lm(D,R,this),Lm(D,T,this))}else g.Vj(R,"ytp-sb-disabled"),g.Vj(T,"ytp-sb-disabled")}; YgB=function(v){g.F.call(this,{Y:"div",D:"ytp-title-channel",W:[{Y:"div",D:"ytp-title-beacon"},{Y:"a",D:"ytp-title-channel-logo",V:{href:"{{channelLink}}",target:v.B().N,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{Y:"div",D:"ytp-title-expanded-overlay",V:{"aria-hidden":"{{flyoutUnfocusable}}"},W:[{Y:"div",D:"ytp-title-expanded-heading",W:[{Y:"div",D:"ytp-title-expanded-title",W:[{Y:"a",At:"{{expandedTitle}}",V:{href:"{{channelTitleLink}}",target:v.B().N,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{Y:"div",D:"ytp-title-expanded-subtitle",At:"{{expandedSubtitle}}",V:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var J=this;this.api=v;this.channel=this.p7("ytp-title-channel");this.X=this.p7("ytp-title-channel-logo");this.channelName=this.p7("ytp-title-expanded-title");this.j=this.p7("ytp-title-expanded-overlay");this.Z=this.T=this.subscribeButton=null;this.L=!1;v.createClientVe(this.X,this,36925);v.createClientVe(this.channelName,this, 37220);g.Of(this.api.B())&&K58(this);this.G(v,"videodatachange",this.De);this.G(v,"videoplayerreset",this.De);this.G(this.channelName,"click",function(G){J.api.logClick(J.channelName);g.Mv(window,VYj(J));G.preventDefault()}); this.G(this.X,"click",this.MuY);this.De()}; rFf=function(v){if(!v.api.B().Vn){var J=v.api.getVideoData(),G=new g.cv("Subscribe",null,"Subscribed",null,!0,!1,J.kN,J.subscribed,"channel_avatar",null,v.api,!0);v.api.createServerVe(G.element,v);var K;v.api.setTrackingParams(G.element,((K=J.subscribeButtonRenderer)==null?void 0:K.trackingParams)||null);v.G(G.element,"click",function(){v.api.logClick(G.element)}); v.subscribeButton=G;g.k(v,v.subscribeButton);v.subscribeButton.vH(v.j);v.subscribeButton.hide();var V=new vWr(v.api);v.T=V;g.k(v,V);V.vH(v.j);V.hide();v.G(v.api,"SUBSCRIBE",function(){J.xu&&(V.show(),v.api.logVisibility(V.element,!0))}); v.G(v.api,"UNSUBSCRIBE",function(){J.xu&&(V.hide(),v.api.logVisibility(V.element,!1),JFF(V,!1))})}}; K58=function(v){var J=v.api.B();rFf(v);v.updateValue("flyoutUnfocusable","true");v.updateValue("channelTitleFocusable","-1");v.updateValue("shouldHideExpandedTitleForA11y","true");v.updateValue("shouldHideExpandedSubtitleForA11y","true");J.X||J.Gi||(v.G(v.channel,"mouseenter",v.K3),v.G(v.channel,"mouseleave",v.O8),v.G(v.channel,"focusin",v.K3),v.G(v.channel,"focusout",function(G){v.channel.contains(G.relatedTarget)||v.O8()})); v.Z=new g.Qq(function(){v.isExpanded()&&(v.api.logVisibility(v.channelName,!1),v.subscribeButton&&(v.subscribeButton.hide(),v.api.logVisibility(v.subscribeButton.element,!1)),v.T&&(v.T.hide(),v.api.logVisibility(v.T.element,!1)),v.channel.classList.remove("ytp-title-expanded"),v.channel.classList.add("ytp-title-show-collapsed"))},500); g.k(v,v.Z);v.G(v.channel,qgm,function(){EWF(v)}); v.G(v.api,"onHideControls",v.r5);v.G(v.api,"appresize",v.r5);v.G(v.api,"fullscreentoggled",v.r5)}; EWF=function(v){v.channel.classList.remove("ytp-title-show-collapsed");v.channel.classList.remove("ytp-title-show-expanded")}; eAF=function(v){var J=v.api.getPlayerSize();return g.Of(v.api.B())&&J.width>=524}; VYj=function(v){var J=v.api.B(),G=v.api.getVideoData(),K=g.oG(J)+G.g_;g.Km(G)&&(K="https://music.youtube.com"+G.g_);if(!g.Of(J))return K;J={};g.Dw(v.api,"addEmbedsConversionTrackingParams",[J]);return g.vt(K,J)}; N6=function(v){var J=g.bm({"aria-haspopup":"true"});g.Cm.call(this,J,v);this.listen("keydown",this.T)}; aV=function(v,J){v.element.setAttribute("aria-haspopup",String(J))}; PQw=function(v,J){g.F.call(this,{Y:"div",D:"ytp-user-info-panel",V:{"aria-label":"User info"},W:v.B().dh&&!v.C("embeds_web_always_enable_signed_out_state")?[{Y:"div",D:"ytp-user-info-panel-icon",At:"{{icon}}"},{Y:"div",D:"ytp-user-info-panel-content",W:[{Y:"div",D:"ytp-user-info-panel-info",V:{tabIndex:"{{userInfoFocusable}}",role:"text"},At:"{{watchingAsUsername}}"},{Y:"div",D:"ytp-user-info-panel-info",V:{tabIndex:"{{userInfoFocusable2}}",role:"text"},At:"{{watchingAsEmail}}"}]}]:[{Y:"div",D:"ytp-user-info-panel-icon", At:"{{icon}}"},{Y:"div",D:"ytp-user-info-panel-content",W:[{Y:"div",W:[{Y:"text",V:{tabIndex:"{{userInfoFocusable}}"},At:"Signed out"}]},{Y:"div",D:"ytp-user-info-panel-login",W:[{Y:"a",V:{tabIndex:"{{userInfoFocusable2}}",role:"button"},At:v.B().Vn?"":"Sign in on YouTube"}]}]}]});this.kB=v;this.T=J;v.B().dh||v.B().Vn||this.G(this.p7("ytp-user-info-panel-login"),"click",this.qY);this.closeButton=new g.F({Y:"button",n7:["ytp-collapse","ytp-button"],V:{title:"Close"},W:[g.UN()]});this.closeButton.vH(this.element); g.k(this,this.closeButton);this.G(window,"blur",this.hide);this.G(document,"click",this.yX);this.De()}; tYw=function(v,J,G){g.d1.call(this,v);this.Mi=J;this.U1=G;this.getVideoUrl=new N6(6);this.vU=new N6(5);this.XX=new N6(4);this.u9=new N6(3);this.OI=new g.Cm(g.bm({href:"{{href}}",target:this.S.B().N},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.Cm(g.bm(),1,"Stats for nerds");this.To=new g.t9({Y:"div",n7:["ytp-copytext","ytp-no-contextmenu"],V:{draggable:"false",tabindex:"1"},At:"{{text}}"});this.UC=new nD(this.S,this.To);this.rZ=this.s0=null;g.Of(this.S.B())&&(this.closeButton= new g.F({Y:"button",n7:["ytp-collapse","ytp-button"],V:{title:"Close"},W:[g.UN()]}),g.k(this,this.closeButton),this.closeButton.vH(this.element),this.closeButton.listen("click",this.cS,this));g.Of(this.S.B())&&(this.SR=new g.Cm(g.bm(),8,"Account"),g.k(this,this.SR),this.Dv(this.SR,!0),this.SR.listen("click",this.SNw,this),v.createClientVe(this.SR.element,this.SR,137682));this.S.B().IE&&(this.dW=new Yw("Loop",7),g.k(this,this.dW),this.Dv(this.dW,!0),this.dW.listen("click",this.Wsi,this),v.createClientVe(this.dW.element, this.dW,28661));g.k(this,this.getVideoUrl);this.Dv(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Bd7,this);v.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.k(this,this.vU);this.Dv(this.vU,!0);this.vU.listen("click",this.rP4,this);v.createClientVe(this.vU.element,this.vU,28660);g.k(this,this.XX);this.Dv(this.XX,!0);this.XX.listen("click",this.Iv4,this);v.createClientVe(this.XX.element,this.XX,28658);g.k(this,this.u9);this.Dv(this.u9,!0);this.u9.listen("click",this.z4B, this);g.k(this,this.OI);this.Dv(this.OI,!0);this.OI.listen("click",this.TJi,this);g.k(this,this.showVideoInfo);this.Dv(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.FWH,this);g.k(this,this.To);this.To.listen("click",this.Y$Y,this);g.k(this,this.UC);J=document.queryCommandSupported&&document.queryCommandSupported("copy");FUB("Chromium")>=43&&(J=!0);FUB("Firefox")<=40&&(J=!1);J&&(this.s0=new g.F({Y:"textarea",D:"ytp-html5-clipboard",V:{readonly:"",tabindex:"-1"}}),g.k(this,this.s0), this.s0.vH(this.element));var K;(K=this.SR)==null||K.setIcon(RDB());var V;(V=this.dW)==null||V.setIcon({Y:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{Y:"path",V:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.u9.setIcon({Y:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{Y:"path",V:{"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.OI.setIcon(Ium());this.showVideoInfo.setIcon(hDr());this.G(v,"onLoopChange",this.onLoopChange);this.G(v,"videodatachange",this.onVideoDataChange);DFj(this);this.gy(this.S.getVideoData())}; Am=function(v,J){var G=!1;if(v.s0){var K=v.s0.element;K.value=J;K.select();try{G=document.execCommand("copy")}catch(V){}}G?v.Mi.FO():(v.To.H1(J,"text"),g.lT(v.Mi,v.UC),Pd(v.To.element),v.s0&&(v.s0=null,DFj(v)));return G}; DFj=function(v){var J=!!v.s0;g.Wz(v.u9,J?"Copy debug info":"Get debug info");aV(v.u9,!J);g.Wz(v.XX,J?"Copy embed code":"Get embed code");aV(v.XX,!J);g.Wz(v.getVideoUrl,J?"Copy video URL":"Get video URL");aV(v.getVideoUrl,!J);g.Wz(v.vU,J?"Copy video URL at current time":"Get video URL at current time");aV(v.vU,!J);v.XX.setIcon(J?Dl8():null);v.getVideoUrl.setIcon(J?l_():null);v.vU.setIcon(J?l_():null)}; BXf=function(v){return g.Of(v.S.B())?v.SR:v.dW}; hAL=function(v,J){g.R4.call(this,v);this.U1=J;this.L=new g.Zs(this);this.oY=new g.Qq(this.BJ7,1E3,this);this.Ti=this.Z=null;g.k(this,this.L);g.k(this,this.oY);J=this.S.B();v.createClientVe(this.element,this,28656);g.Vj(this.element,"ytp-contextmenu");this.S.B().experiments.OB("delhi_modern_web_player")&&g.bh(J)&&g.Vj(this.element,"ytp-delhi-modern-contextmenu");Ibf(this);this.hide()}; Ibf=function(v){g.O9(v.L);var J=v.S.B();J.playerStyle==="gvn"||J.X||J.Gi||(J=v.S.f7(),v.L.G(J,"contextmenu",v.Ls4),v.L.G(J,"touchstart",v.onTouchStart,null,!0),v.L.G(J,"touchmove",v.ET,null,!0),v.L.G(J,"touchend",v.ET,null,!0))}; zAs=function(v){v.S.isFullscreen()?g.gr(v.S,v.element,10):v.vH(Hz(v).body)}; FD=function(v,J,G){G=G===void 0?240:G;g.F.call(this,{Y:"button",n7:["ytp-button","ytp-copylink-button"],V:{title:"{{title-attr}}","data-tooltip-opaque":String(g.Of(v.B()))},W:[{Y:"div",D:"ytp-copylink-icon",At:"{{icon}}"},{Y:"div",D:"ytp-copylink-title",At:"Copy link",V:{"aria-hidden":"true"}}]});this.api=v;this.T=J;this.X=G;this.visible=!1;this.tooltip=this.T.Z6();J=v.B();this.tooltip.element.setAttribute("aria-live","polite");g.E3(this.element,"ytp-show-copylink-title",g.Of(J));v.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.G(v,"videodatachange",this.De);this.G(v,"videoplayerreset",this.De);this.G(v,"appresize",this.De);this.De();this.addOnDisposeCallback(g.pm(this.tooltip,this.element))}; nWs=function(v){var J=v.api.B(),G=v.api.getVideoData(),K=v.api.f7().getPlayerSize().width;J=J.Z;return!!G.videoId&&K>=v.X&&G.I8&&!g.GT(G)&&!v.api.isEmbedsShortsMode()&&!J}; dFB=function(v){v.updateValue("icon",nR());if(v.api.B().X)v.tooltip.p5(v.element,"Link copied to clipboard");else{v.updateValue("title-attr","Link copied to clipboard");v.tooltip.J3();v.tooltip.p5(v.element);var J=v.listen("mouseleave",function(){v.YL(J);v.De();v.tooltip.O2()})}}; sXm=function(v,J){return g.m(function(G){if(G.T==1)return g.nf(G,2),g.U(G,navigator.clipboard.writeText(J),4);if(G.T!=2)return G.return(!0);g.lj(G);var K=G.return,V=!1,Y=g.qh("TEXTAREA");Y.value=J;Y.setAttribute("readonly","");var r=v.api.getRootNode();r.appendChild(Y);if(Ml){var E=window.getSelection();E.removeAllRanges();var e=document.createRange();e.selectNodeContents(Y);E.addRange(e);Y.setSelectionRange(0,J.length)}else Y.select();try{V=document.execCommand("copy")}catch(P){}r.removeChild(Y); return K.call(G,V)})}; Hv=function(v){g.F.call(this,{Y:"div",D:"ytp-doubletap-ui-legacy",W:[{Y:"div",D:"ytp-doubletap-fast-forward-ve"},{Y:"div",D:"ytp-doubletap-rewind-ve"},{Y:"div",D:"ytp-doubletap-static-circle",W:[{Y:"div",D:"ytp-doubletap-ripple"}]},{Y:"div",D:"ytp-doubletap-overlay-a11y"},{Y:"div",D:"ytp-doubletap-seek-info-container",W:[{Y:"div",D:"ytp-doubletap-arrows-container",W:[{Y:"span",D:"ytp-doubletap-base-arrow"},{Y:"span",D:"ytp-doubletap-base-arrow"},{Y:"span",D:"ytp-doubletap-base-arrow"}]},{Y:"div", D:"ytp-doubletap-tooltip",W:[{Y:"div",D:"ytp-seek-icon-text-container",W:[{Y:"div",D:"ytp-seek-icon",At:"{{seekIcon}}"},{Y:"div",D:"ytp-chapter-seek-text-legacy",At:"{{seekText}}"}]},{Y:"div",D:"ytp-doubletap-tooltip-label",At:"{{seekTime}}"}]}]}]});this.S=v;this.L=new g.Qq(this.show,10,this);this.X=new g.Qq(this.hide,700,this);this.K=this.Z=0;this.oY=this.j=!1;this.T=this.p7("ytp-doubletap-static-circle");g.k(this,this.L);g.k(this,this.X);this.hide();this.U=this.p7("ytp-doubletap-fast-forward-ve"); this.N=this.p7("ytp-doubletap-rewind-ve");this.S.createClientVe(this.U,this,28240);this.S.createClientVe(this.N,this,28239);this.S.logVisibility(this.U,!0);this.S.logVisibility(this.N,!0);this.j=v.C("web_show_cumulative_seek_time");this.oY=v.C("web_center_static_circles")}; M6=function(v,J,G,K){if(K=K===void 0?null:K){var V=J===-1?v.N.visualElement:v.U.visualElement;K={seekData:K};var Y=g.LW();Y&&g.jk(i_)(void 0,Y,V,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",K,void 0)}v.Z=J===v.K?v.Z+G:G;v.K=J;V=v.S.f7().getPlayerSize();v.j?v.X.stop():g.b4(v.X);v.L.start();v.element.setAttribute("data-side",J===-1?"back":"forward");g.Vj(v.element,"ytp-time-seeking");v.T.style.width="110px";v.T.style.height="110px";K=V.width*.1-15;J===1?v.oY?(v.T.style.right=K+"px",v.T.style.left=""): (v.T.style.right="",v.T.style.left=V.width*.8-30+"px"):J===-1&&(v.oY?(v.T.style.right="",v.T.style.left=K+"px"):(v.T.style.right="",v.T.style.left=V.width*.1-15+"px"));v.T.style.top=V.height*.5+15+"px";RAU(v,v.j?v.Z:G)}; Qp=function(v,J,G,K){K=K===void 0?null:K;g.b4(v.X);v.L.start();switch(J){case -1:J="back";break;case 1:J="forward";break;default:J=""}v.element.setAttribute("data-side",J);v.T.style.width="0";v.T.style.height="0";g.Vj(v.element,"ytp-chapter-seek");v.updateValue("seekText",G);v.updateValue("seekTime","");G=v.p7("ytp-seek-icon");if(K){a:if(K){switch(K){case "PREMIUM_STANDALONE":K={Y:"svg",V:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},W:[{Y:"path",V:{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"}},{Y:"path",V:{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":K={Y:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{Y:"rect",V:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{Y:"rect",V:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{Y:"path",V:{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"}},{Y:"defs",W:[{Y:"linearGradient",V:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},W:[{Y:"stop",V:{offset:"0.3","stop-color":"#E1002D"}},{Y:"stop",V:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}K=void 0}else K=null;v.updateValue("seekIcon",K);G.style.display="inline-block"}else G.style.display="none"}; RAU=function(v,J){J=g.h6("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:J.toString()});v.updateValue("seekTime",J)}; lbU=function(v){zS.call(this,v,!1,!0);this.Ze=[];this.R$=[];this.U=!0;this.badge.element.classList.add("ytp-featured-product");this.Mr=new g.F({Y:"div",D:"ytp-featured-product-open-in-new"});g.k(this,this.Mr);this.countdownTimer=new g.F({Y:"text",D:"ytp-featured-product-countdown",At:"{{content}}"});this.countdownTimer.hide();g.k(this,this.countdownTimer);this.X=new g.F({Y:"div",D:"ytp-featured-product-trending",W:[{Y:"div",D:"ytp-featured-product-trending-icon"},{Y:"text",D:"ytp-featured-product-trending-text", At:"{{trendingOffer}}"}]});this.X.hide();g.k(this,this.X);this.overflowButton=new g.F({Y:"button",n7:["ytp-featured-product-overflow-icon","ytp-button"],V:{"aria-haspopup":"true"}});this.overflowButton.hide();g.k(this,this.overflowButton);this.K=new g.F({Y:"text",D:"ytp-featured-product-exclusive-countdown",At:"{{content}}",V:{id:"exclusiveCountdown","aria-hidden":"true"}});this.K.hide();g.k(this,this.K);this.j=new g.F({Y:"div",D:"ytp-featured-product-exclusive-container",V:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, W:[{Y:"div",D:"ytp-featured-product-exclusive-badge-container",W:[{Y:"div",D:"ytp-featured-product-exclusive-badge",W:[{Y:"text",D:"ytp-featured-product-exclusive-badge-text",At:"{{exclusive}}",V:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.K]});this.j.hide();g.k(this,this.j);this.banner=new g.F({Y:"a",D:"ytp-featured-product-container",W:[{Y:"div",D:"ytp-featured-product-thumbnail",W:[{Y:"img",V:{src:"{{thumbnail}}"}},this.Mr]},{Y:"div",D:"ytp-featured-product-details",W:[{Y:"text",D:"ytp-featured-product-title", At:"{{title}}"},this.S.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Y:"div",D:"ytp-featured-product-price-container",V:{"aria-label":"{{priceA11yText}}"},W:[{Y:"text",D:"ytp-featured-product-price-when-promotion-text-enabled",At:"{{price}}",V:{"aria-hidden":"true"}},{Y:"text",D:"ytp-featured-product-promotion-text",At:"{{promotionText}}",V:{"aria-hidden":"true"}}]}:{Y:"div",V:{"aria-label":"{{priceA11yText}}"},W:[{Y:"text",D:"ytp-featured-product-price",At:"{{price}}", V:{"aria-hidden":"true"}},{Y:"text",D:"ytp-featured-product-sales-original-price",At:"{{salesOriginalPrice}}",V:{"aria-hidden":"true"}},{Y:"text",D:"ytp-featured-product-price-drop-reference-price",At:"{{priceDropReferencePrice}}",V:{"aria-hidden":"true"}}]},this.S.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{Y:"div",D:"ytp-featured-product-when-promotion-text-enabled",W:[{Y:"text",D:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",At:"{{affiliateDisclaimer}}"}, this.X,{Y:"text",D:"ytp-featured-product-vendor-when-promotion-text-enabled",At:"{{vendor}}"}]}:{Y:"div",W:[{Y:"text",D:"ytp-featured-product-affiliate-disclaimer",At:"{{affiliateDisclaimer}}"},this.S.C("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.j:null,this.X,{Y:"text",D:"ytp-featured-product-vendor",At:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.k(this,this.banner);this.banner.vH(this.Z.element);this.G(this.S,g.VG("featured_product"),this.gkU);this.G(this.S, g.YM("featured_product"),this.xq);this.G(this.S,"videodatachange",this.onVideoDataChange);this.G(this.overflowButton.element,"click",this.F9);this.G(v,"featuredproductdismissed",this.WD)}; TXt=function(v){var J,G;v=(J=v.T)==null?void 0:(G=J.bannerData)==null?void 0:G.itemData;var K,V,Y;return(v==null||!v.affiliateDisclaimer)&&(v==null?0:(K=v.exclusivesData)==null?0:K.exclusiveOfferLabelText)&&(v==null?0:(V=v.exclusivesData)==null?0:V.expirationTimestampMs)&&(v==null?0:(Y=v.exclusivesData)==null?0:Y.exclusiveOfferCountdownText)?!0:!1}; L5U=function(v){var J,G,K,V,Y=(J=v.T)==null?void 0:(G=J.bannerData)==null?void 0:(K=G.itemData)==null?void 0:(V=K.exclusivesData)==null?void 0:V.expirationTimestampMs;J=(Number(Y)-Date.now())/1E3;if(J>0){if(J<604800){var r,E,e,P;G=(r=v.T)==null?void 0:(E=r.bannerData)==null?void 0:(e=E.itemData)==null?void 0:(P=e.exclusivesData)==null?void 0:P.exclusiveOfferCountdownText;if(G!==void 0)for(r=Date.now(),E=g.n(G),e=E.next();!e.done;e=E.next())if(e=e.value,e!==void 0&&e.text!==void 0&&(P=Number(e.textDisplayStartTimestampMs), !isNaN(P)&&r>=P)){e.insertCountdown?(J=e.text.replace(/\$0/,String(nn({seconds:J}))),v.K.H1(J)):v.K.H1(e.text);v.K.show();break}}var D,t,B,I;v.j.update({exclusive:(D=v.T)==null?void 0:(t=D.bannerData)==null?void 0:(B=t.itemData)==null?void 0:(I=B.exclusivesData)==null?void 0:I.exclusiveOfferLabelText});v.j.show();Wv(v);var h;(h=v.OR)==null||h.start()}else p4w(v)}; p4w=function(v){var J;(J=v.OR)==null||J.stop();v.K.hide();v.j.hide();CC(v)}; yFF=function(v){var J,G,K=(J=v.T)==null?void 0:(G=J.bannerData)==null?void 0:G.itemData;return v.S.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(K==null||!K.priceReplacementText)&&(K==null?0:K.promotionText)?K==null?void 0:K.promotionText.content:null}; w4w=function(v){var J,G,K=(J=v.T)==null?void 0:(G=J.bannerData)==null?void 0:G.itemData,V,Y;if(!(K!=null&&K.priceReplacementText||v.S.C("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(K==null?0:(V=K.dealsData)==null?0:(Y=V.sales)==null?0:Y.originalPrice)){var r,E;return K==null?void 0:(r=K.dealsData)==null?void 0:(E=r.sales)==null?void 0:E.originalPrice}return null}; O$L=function(v){var J,G,K=(J=v.T)==null?void 0:(G=J.bannerData)==null?void 0:G.itemData,V,Y,r,E;if(!((K==null?0:K.priceReplacementText)||v.S.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(K==null?0:(V=K.dealsData)==null?0:(Y=V.sales)==null?0:Y.originalPrice))&&(K==null?0:(r=K.dealsData)==null?0:(E=r.priceDrop)==null?0:E.referencePrice)){var e,P;return K==null?void 0:(e=K.dealsData)==null?void 0:(P=e.priceDrop)==null?void 0:P.referencePrice}return null}; UF2=function(v){var J,G,K=(J=v.T)==null?void 0:(G=J.bannerData)==null?void 0:G.itemData;if(K==null?0:K.priceReplacementText)return K==null?void 0:K.priceReplacementText;if((K==null?0:K.promotionText)&&v.S.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var V;return(K==null?void 0:K.price)+" "+(K==null?void 0:(V=K.promotionText)==null?void 0:V.content)}var Y,r;if(K==null?0:(Y=K.dealsData)==null?0:(r=Y.sales)==null?0:r.originalPrice){var E,e;return K==null?void 0:(E=K.dealsData)== null?void 0:(e=E.sales)==null?void 0:e.salesPriceAccessibilityLabel}var P,D;if(K==null?0:(P=K.dealsData)==null?0:(D=P.priceDrop)==null?0:D.referencePrice){var t,B;return(K==null?void 0:K.price)+" "+(K==null?void 0:(t=K.dealsData)==null?void 0:(B=t.priceDrop)==null?void 0:B.referencePrice)}return K==null?void 0:K.price}; xFj=function(v){if(v.S.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var J,G,K;return v.X.TG?null:(J=v.T)==null?void 0:(G=J.bannerData)==null?void 0:(K=G.itemData)==null?void 0:K.vendorName}var V,Y,r,E,e,P;return v.X.TG||v.j.TG||((V=v.T)==null?0:(Y=V.bannerData)==null?0:(r=Y.itemData)==null?0:r.affiliateDisclaimer)?null:(E=v.T)==null?void 0:(e=E.bannerData)==null?void 0:(P=e.itemData)==null?void 0:P.vendorName}; Sgs=function(v,J){bp(v);if(J){var G=g.J3.getState().entities;G=$C(G,"featuredProductsEntity",J);if(G!=null&&G.productsData){J=[];G=g.n(G.productsData);for(var K=G.next();!K.done;K=G.next()){K=K.value;var V=void 0;if((V=K)!=null&&V.identifier&&K.featuredSegments){v.Ze.push(K);var Y=void 0;V=g.n((Y=K)==null?void 0:Y.featuredSegments);for(Y=V.next();!Y.done;Y=V.next()){var r=Y.value;Y=mFw(r.startTimeSec);Y!==void 0&&(r=mFw(r.endTimeSec),J.push(new g.o8(Y*1E3,r===void 0?0x7ffffffffffff:r*1E3,{id:K.identifier, namespace:"featured_product"})))}}}v.S.oR(J)}}}; CC=function(v){if(v.trendingOfferEntityKey){var J=g.J3.getState().entities;if(J=$C(J,"trendingOfferEntity",v.trendingOfferEntityKey)){var G,K,V;J.encodedSkuId!==((G=v.T)==null?void 0:(K=G.bannerData)==null?void 0:(V=K.itemData)==null?void 0:V.encodedOfferSkuId)?Wv(v):(v.X.update({trendingOffer:J.shortLabel+" \u2022 "+J.countLabel}),v.X.show(),v.banner.update({vendor:xFj(v)}))}else Wv(v)}else Wv(v)}; Wv=function(v){v.X.hide();v.banner.update({vendor:xFj(v)})}; bp=function(v){v.Ze=[];v.xq();v.S.RA("featured_product")}; fbm=function(v){var J,G,K,V,Y=(J=v.T)==null?void 0:(G=J.bannerData)==null?void 0:(K=G.itemData)==null?void 0:(V=K.hiddenProductOptions)==null?void 0:V.dropTimestampMs;J=(Number(Y)-Date.now())/1E3;v.countdownTimer.H1(nn({seconds:J}));if(J>0){var r;(r=v.UR)==null||r.start()}}; Z$w=function(v){var J;(J=v.UR)==null||J.stop();v.countdownTimer.hide()}; mFw=function(v){if(v!==void 0&&v.trim()!==""&&(v=Math.trunc(Number(v.trim())),!(isNaN(v)||v<0)))return v}; cFF=function(v,J,G){g.F.call(this,{Y:"div",n7:["ytp-info-panel-action-item"],W:[{Y:"div",D:"ytp-info-panel-action-item-disclaimer",At:"{{disclaimer}}"},{Y:"a",n7:["ytp-info-panel-action-item-button","ytp-button"],V:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},W:[{Y:"div",D:"ytp-info-panel-action-item-icon",At:"{{icon}}"},{Y:"div",D:"ytp-info-panel-action-item-label",At:"{{label}}"}]}]});this.S=v;this.T=G;this.disclaimer=this.p7("ytp-info-panel-action-item-disclaimer");this.button= this.p7("ytp-info-panel-action-item-button");this.B1=!1;this.S.createServerVe(this.element,this,!0);this.listen("click",this.onClick);v="";G=g.N(J==null?void 0:J.onTap,gu);var K=g.N(G,g.g8);this.B1=!1;K?(v=K.url||"",v.startsWith("//")&&(v="https:"+v),this.B1=!0,g.az(this.button,g.ca(v))):(K=g.N(G,uEm))&&!this.T?((v=K.phoneNumbers)&&v.length>0?(v="sms:"+v[0],K.messageText&&(v+="?&body="+encodeURI(K.messageText))):v="",this.B1=!0,g.az(this.button,g.ca(v,[gWf]))):(G=g.N(G,X4F))&&!this.T&&(v=G.phoneNumber? "tel:"+G.phoneNumber:"",this.B1=!0,g.az(this.button,g.ca(v,[kvt])));var V;if(G=(V=J.disclaimerText)==null?void 0:V.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var Y;this.update({label:(Y=J.bodyText)==null?void 0:Y.content,icon:LR(),disclaimer:G})}else{this.disclaimer.style.display="none";var r;this.update({label:(r=J.bodyText)==null?void 0:r.content,icon:LR()})}this.S.setTrackingParams(this.element,J.trackingParams||null);this.B1&&(this.X={externalLinkData:{url:v}})}; NX2=function(v,J){var G=EN();g.F5.call(this,v,{Y:"div",D:"ytp-info-panel-detail-skrim",W:[{Y:"div",D:"ytp-info-panel-detail",V:{role:"dialog",id:G},W:[{Y:"div",D:"ytp-info-panel-detail-header",W:[{Y:"div",D:"ytp-info-panel-detail-title",At:"{{title}}"},{Y:"button",n7:["ytp-info-panel-detail-close","ytp-button"],V:{"aria-label":"Close"},W:[g.RK()]}]},{Y:"div",D:"ytp-info-panel-detail-body",At:"{{body}}"},{Y:"div",D:"ytp-info-panel-detail-items"}]}]},250);this.T=J;this.items=this.p7("ytp-info-panel-detail-items"); this.Z=new g.Zs(this);this.itemData=[];this.L=G;this.G(this.p7("ytp-info-panel-detail-close"),"click",this.FO);this.G(this.p7("ytp-info-panel-detail-skrim"),"click",this.FO);this.G(this.p7("ytp-info-panel-detail"),"click",function(K){K.stopPropagation()}); g.k(this,this.Z);this.S.createServerVe(this.element,this,!0);this.G(v,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",v.getVideoData());this.hide()}; abU=function(v,J){v=g.n(v.itemData);for(var G=v.next();!G.done;G=v.next())G=G.value,G.S.logVisibility(G.element,J)}; H$2=function(v,J){g.F.call(this,{Y:"div",D:"ytp-info-panel-preview",V:{"aria-live":"assertive","aria-atomic":"true","aria-owns":J.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.Of(v.B()))},W:[{Y:"div",D:"ytp-info-panel-preview-text",At:"{{text}}"},{Y:"div",D:"ytp-info-panel-preview-chevron",At:"{{chevron}}"}]});var G=this;this.S=v;this.Gr=this.T=this.videoId=null;this.Z=this.showControls=this.X=!1;this.G(this.element,"click",function(){v.logClick(G.element);v.c7();My(J)}); this.fade=new g.Jk(this,250,!1,100);g.k(this,this.fade);this.S.createServerVe(this.element,this,!0);this.G(v,"videodatachange",this.onVideoDataChange);this.G(v,"presentingplayerstatechange",this.CM);this.G(this.S,"paidcontentoverlayvisibilitychange",this.Sn);this.G(this.S,"infopaneldetailvisibilitychange",this.Sn);var K=v.getVideoData()||{};AFF(K)&&F5w(this,K);this.G(v,"onShowControls",this.Jb);this.G(v,"onHideControls",this.jS)}; F5w=function(v,J){if(!J.Jm||!v.S.hF()){var G=J.mC||1E4,K=AFF(J);v.T?J.videoId&&J.videoId!==v.videoId&&(g.b4(v.T),v.videoId=J.videoId,K?(MYt(v,G,J),v.xL()):(v.FO(),v.T.dispose(),v.T=null)):K&&(J.videoId&&(v.videoId=J.videoId),MYt(v,G,J),v.xL())}}; AFF=function(v){var J,G,K,V;return!!((J=v.E9)==null?0:(G=J.title)==null?0:G.content)||!!((K=v.E9)==null?0:(V=K.bodyText)==null?0:V.content)}; MYt=function(v,J,G){v.T&&v.T.dispose();v.T=new g.Qq(v.LgB,J,v);g.k(v,v.T);var K;J=((K=G.E9)==null?void 0:K.trackingParams)||null;v.S.setTrackingParams(v.element,J);var V;var Y,r;if(G==null?0:(Y=G.E9)==null?0:(r=Y.title)==null?0:r.content){var E;K=(V=G.E9)==null?void 0:(E=V.title)==null?void 0:E.content;var e,P;if((e=G.E9)==null?0:(P=e.bodyText)==null?0:P.content)K+=" \u2022 ";V=K}else V="";var D,t;G=((D=G.E9)==null?void 0:(t=D.bodyText)==null?void 0:t.content)||"";v.update({text:V+G,chevron:g.sN()})}; QXU=function(v,J){v.T&&(g.H(J,8)?(v.X=!0,v.xL(),v.T.start()):(g.H(J,2)||g.H(J,64))&&v.videoId&&(v.videoId=null))}; j4=function(v){var J=null;try{J=v.toLocaleString("en-GB",{style:"percent"})}catch(G){J=v.toLocaleString(void 0,{style:"percent"})}return J}; ix=function(v,J){var G=0;v=g.n(v);for(var K=v.next();!(K.done||K.value.startTime>J);K=v.next())G++;return G===0?G:G-1}; W5r=function(v,J){for(var G=0,K=g.n(v),V=K.next();!V.done;V=K.next()){V=V.value;if(J=V.timeRangeStartMillis&&J0?J[0]:null;var G=g.Gs("ytp-chrome-bottom"),K=g.Gs("ytp-ad-module");v.L=!(G==null||!G.contains(J));v.U=!(K==null||!K.contains(J));v.N=!(J==null||!J.hasAttribute("data-tooltip-target-fixed"));return J}; Pb8=function(v,J,G){if(!v.j){if(J){v.tooltipRenderer=J;J=v.tooltipRenderer.text;var K=!1,V;(J==null?0:(V=J.runs)==null?0:V.length)&&J.runs[0].text&&(v.update({title:J.runs[0].text.toString()}),K=!0);g.TK(v.title,K);J=v.tooltipRenderer.detailsText;V=!1;var Y;if((J==null?0:(Y=J.runs)==null?0:Y.length)&&J.runs[0].text){K=J.runs[0].text.toString();Y=K.indexOf("$TARGET_ICON");if(Y>-1)if(v.tooltipRenderer.targetId){J=[];K=K.split("$TARGET_ICON");var r=new g.en({Y:"span",D:"ytp-promotooltip-details-icon", W:[EjF[v.tooltipRenderer.targetId]]});g.k(v,r);for(var E=[],e=g.n(K),P=e.next();!P.done;P=e.next())P=new g.en({Y:"span",D:"ytp-promotooltip-details-component",At:P.value}),g.k(v,P),E.push(P);K.length===2?(J.push(E[0].element),J.push(r.element),J.push(E[1].element)):K.length===1&&(Y===0?(J.push(r.element),J.push(E[0].element)):(J.push(E[0].element),J.push(r.element)));Y=J.length?J:null}else Y=null;else Y=K;if(Y){if(typeof Y!=="string")for(g.PM(v.details),V=g.n(Y),Y=V.next();!Y.done;Y=V.next())v.details.appendChild(Y.value); else v.update({details:Y});V=!0}}g.TK(v.details,V);V=v.tooltipRenderer.acceptButton;Y=!1;var D,t,B;((D=g.N(V,g.Ze))==null?0:(t=D.text)==null?0:(B=t.runs)==null?0:B.length)&&g.N(V,g.Ze).text.runs[0].text&&(v.update({acceptButtonText:g.N(V,g.Ze).text.runs[0].text.toString()}),Y=!0);g.TK(v.acceptButton,Y);D=v.tooltipRenderer.dismissButton;t=!1;var I,h,R;((I=g.N(D,g.Ze))==null?0:(h=I.text)==null?0:(R=h.runs)==null?0:R.length)&&g.N(D,g.Ze).text.runs[0].text&&(v.update({dismissButtonText:g.N(D,g.Ze).text.runs[0].text.toString()}), t=!0);g.TK(v.dismissButton,t)}G&&(v.Z=G);v.T=qtX(v);v.K=!1;v.S.B().C("web_player_hide_nitrate_promo_tooltip")||v.tP(!0);err(v);v.TG&&!v.oY&&(v.oY=!0,v.cO.Q7(0));v.X&&v.S.logVisibility(v.element,v.TG)}}; V0=function(v){v.tP(!1);v.X&&v.S.logVisibility(v.element,v.TG)}; Dcr=function(v){var J,G,K,V=((J=g.N(v.acceptButton,g.Ze))==null?void 0:(G=J.text)==null?void 0:(K=G.runs)==null?void 0:K.length)&&!!g.N(v.acceptButton,g.Ze).text.runs[0].text,Y,r,E;J=((Y=g.N(v.dismissButton,g.Ze))==null?void 0:(r=Y.text)==null?void 0:(E=r.runs)==null?void 0:E.length)&&!!g.N(v.dismissButton,g.Ze).text.runs[0].text;return V||J}; err=function(v){var J;if(!(J=!v.T)){J=v.T;var G=window.getComputedStyle(J);J=G.display==="none"||G.visibility==="hidden"||J.getAttribute("aria-hidden")==="true"}if(J||v.S.isMinimized())v.tP(!1);else if(J=g.lt(v.T),J.width&&J.height){v.S.vt(v.element,v.T);var K=v.S.f7().getPlayerSize().height;G=g.lt(v.p7("ytp-promotooltip-container")).height;v.L?v.element.style.top=K-G-J.height-12+"px":v.N||(K=v.S.Tg().height-G-J.height-12,v.element.style.top=K+"px");K=v.p7("ytp-promotooltip-pointer");var V=g.sG(v.T, v.S.getRootNode()),Y=Number(v.element.style.left.replace(/[^\d\.]/g,""));v=v.S.isFullscreen()?18:12;K.style.left=V.x-Y+J.width/2-v+"px";K.style.top=G+"px"}else v.tP(!1)}; YA=function(v){g.F.call(this,{Y:"button",n7:["ytp-replay-button","ytp-button"],V:{title:"Replay"},W:[g.w8()]});this.S=v;this.G(v,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.l9(v.getPlayerStateObject());Lm(this.S,this.element,this)}; rC=function(v,J){J=J===void 0?240:J;g.F.call(this,{Y:"button",n7:["ytp-button","ytp-search-button"],V:{title:"Search","data-tooltip-opaque":String(g.Of(v.B()))},W:[{Y:"div",D:"ytp-search-icon",At:"{{icon}}"},{Y:"div",D:"ytp-search-title",At:"Search"}]});this.api=v;this.X=J;this.visible=!1;this.updateValue("icon",{Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{Y:"path",D:"ytp-svg-fill",V:{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"}}]}); v.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.T();this.G(v,"appresize",this.T);this.G(v,"videodatachange",this.T);Lm(v,this.element,this)}; g.qg=function(v,J,G,K){K=K===void 0?240:K;g.F.call(this,{Y:"button",n7:["ytp-button","ytp-share-button"],V:{title:"Share","aria-haspopup":"true","aria-owns":G.element.id,"data-tooltip-opaque":String(g.Of(v.B()))},W:[{Y:"div",D:"ytp-share-icon",At:"{{icon}}"},{Y:"div",D:"ytp-share-title",At:"Share"}]});this.api=v;this.T=J;this.Z=G;this.L=K;this.X=this.visible=!1;this.tooltip=this.T.Z6();v.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.G(v,"videodatachange",this.De); this.G(v,"videoplayerreset",this.De);this.G(v,"appresize",this.De);this.G(v,"presentingplayerstatechange",this.De);this.De();this.addOnDisposeCallback(g.pm(this.tooltip,this.element))}; txB=function(v){var J=v.api.B(),G=v.api.getVideoData(),K=g.Of(J)&&g.SI(v.api)&&g.H(v.api.getPlayerStateObject(),128);J=J.Z||J.disableSharing&&v.api.getPresentingPlayerType()!==2||!G.showShareButton||G.I8||K||g.GT(G)||v.X;K=v.api.f7().getPlayerSize().width;return!!G.videoId&&K>=v.L&&!J}; Biw=function(v,J){J.name!=="InvalidStateError"&&J.name!=="AbortError"&&(J.name==="NotAllowedError"?(v.T.c7(),My(v.Z,v.element,!1)):g.fW(J))}; hrs=function(v,J){var G=EN(),K=v.B();G={Y:"div",D:"ytp-share-panel",V:{id:EN(),role:"dialog","aria-labelledby":G},W:[{Y:"div",D:"ytp-share-panel-inner-content",W:[{Y:"div",D:"ytp-share-panel-title",V:{id:G},At:"Share"},{Y:"a",n7:["ytp-share-panel-link","ytp-no-contextmenu"],V:{href:"{{link}}",target:K.N,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},At:"{{linkText}}"},{Y:"label",D:"ytp-share-panel-include-playlist",W:[{Y:"input",D:"ytp-share-panel-include-playlist-checkbox",V:{type:"checkbox", checked:"true"}},"Include playlist"]},{Y:"div",D:"ytp-share-panel-loading-spinner",W:[eH()]},{Y:"div",D:"ytp-share-panel-service-buttons",At:"{{buttons}}"},{Y:"div",D:"ytp-share-panel-error",At:"An error occurred while retrieving sharing information. Please try again later."}]},{Y:"button",n7:["ytp-share-panel-close","ytp-button"],V:{title:"Close"},W:[g.RK()]}]};g.F5.call(this,v,G,250);var V=this;this.moreButton=null;this.api=v;this.tooltip=J.Z6();this.Z=[];this.j=this.p7("ytp-share-panel-inner-content"); this.closeButton=this.p7("ytp-share-panel-close");this.G(this.closeButton,"click",this.FO);this.addOnDisposeCallback(g.pm(this.tooltip,this.closeButton));this.L=this.p7("ytp-share-panel-include-playlist-checkbox");this.G(this.L,"click",this.De);this.T=this.p7("ytp-share-panel-link");this.addOnDisposeCallback(g.pm(this.tooltip,this.T));this.api.createClientVe(this.T,this,164503);this.G(this.T,"click",function(Y){Y.preventDefault();V.api.logClick(V.T);var r=V.api.getVideoUrl(!0,!0,!1,!1);r=IhU(V,r); g.Ev(r,V.api,Y)&&V.api.lw("SHARE_CLICKED")}); this.listen("click",this.UK);this.G(v,"videoplayerreset",this.hide);this.G(v,"fullscreentoggled",this.onFullscreenToggled);this.G(v,"onLoopRangeChange",this.yRe);this.hide()}; njr=function(v,J){zr2(v);for(var G=J.links||J.shareTargets,K=0,V={},Y=0;Y'),(R=I.document)&&R.write&&(R.write(Ha(h)),R.close()))):((I=g.Mv(I,R,B,x))&&h.noopener&&(I.opener=null),I&&h.noreferrer&&(I.opener=null));I&&(I.opener||(I.opener=window),I.focus());t.preventDefault()}}}(V)); V.qn.addOnDisposeCallback(g.pm(v.tooltip,V.qn.element));E==="Facebook"?v.api.createClientVe(V.qn.element,V.qn,164504):E==="Twitter"&&v.api.createClientVe(V.qn.element,V.qn,164505);v.G(V.qn.element,"click",function(D){return function(){v.api.logClick(D.qn.element)}}(V)); v.api.logVisibility(V.qn.element,!0);v.Z.push(V.qn);K++}}var e=J.more||J.moreLink,P=new g.F({Y:"a",n7:["ytp-share-panel-service-button","ytp-button"],W:[{Y:"span",D:"ytp-share-panel-service-button-more",W:[{Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{Y:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{Y:"path",V:{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"}}]}]}],V:{href:e,target:"_blank",title:"More"}});P.listen("click",function(D){var t=e;v.api.logClick(v.moreButton.element);t=IhU(v,t);g.Ev(t,v.api,D)&&v.api.lw("SHARE_CLICKED")}); P.addOnDisposeCallback(g.pm(v.tooltip,P.element));v.api.createClientVe(P.element,P,164506);v.G(P.element,"click",function(){v.api.logClick(P.element)}); v.api.logVisibility(P.element,!0);v.Z.push(P);v.moreButton=P;v.updateValue("buttons",v.Z)}; IhU=function(v,J){var G={};g.Of(v.api.B())&&(g.Dw(v.api,"addEmbedsConversionTrackingParams",[G]),J=g.vt(J,G));return J}; zr2=function(v){for(var J=g.n(v.Z),G=J.next();!G.done;G=J.next())G=G.value,G.detach(),g.rT(G);v.Z=[]}; Ew=function(v){return v===void 0||v.startSec===void 0||v.endSec===void 0?!1:!0}; dcf=function(v,J){v.startSec+=J;v.endSec+=J}; Rrw=function(v){zS.call(this,v);this.X=this.T=this.isContentForward=this.K=!1;sNF(this);this.G(this.S,"changeProductsInVideoVisibility",this.r74);this.G(this.S,"videodatachange",this.onVideoDataChange)}; lhw=function(v){v.j&&v.qr.element.removeChild(v.j.element);v.j=void 0}; p1L=function(v,J){return J.map(function(G){var K,V;if((G=(K=g.N(G,Tis))==null?void 0:(V=K.thumbnail)==null?void 0:V.thumbnails)&&G.length!==0)return G[0].url}).filter(function(G){return G!==void 0}).map(function(G){G=new g.F({Y:"img", D:"ytp-suggested-action-product-thumbnail",V:{alt:"",src:G}});g.k(v,G);return G})}; Ltm=function(v,J){v.isContentForward=J;g.E3(v.badge.element,"ytp-suggested-action-badge-content-forward",J)}; e4=function(v){var J=v.isContentForward&&!v.L9();g.E3(v.badge.element,"ytp-suggested-action-badge-preview-collapsed",J&&v.T);g.E3(v.badge.element,"ytp-suggested-action-badge-preview-expanded",J&&v.X)}; PH=function(v,J,G){return new g.o8(v*1E3,J*1E3,{priority:9,namespace:G})}; ylw=function(v){v.S.RA("shopping_overlay_visible");v.S.RA("shopping_overlay_preview_collapsed");v.S.RA("shopping_overlay_preview_expanded");v.S.RA("shopping_overlay_expanded")}; sNF=function(v){v.G(v.S,g.VG("shopping_overlay_visible"),function(){v.ML(!0)}); v.G(v.S,g.YM("shopping_overlay_visible"),function(){v.ML(!1)}); v.G(v.S,g.VG("shopping_overlay_expanded"),function(){v.Ti=!0;h_(v)}); v.G(v.S,g.YM("shopping_overlay_expanded"),function(){v.Ti=!1;h_(v)}); v.G(v.S,g.VG("shopping_overlay_preview_collapsed"),function(){v.T=!0;e4(v)}); v.G(v.S,g.YM("shopping_overlay_preview_collapsed"),function(){v.T=!1;e4(v)}); v.G(v.S,g.VG("shopping_overlay_preview_expanded"),function(){v.X=!0;e4(v)}); v.G(v.S,g.YM("shopping_overlay_preview_expanded"),function(){v.X=!1;e4(v)})}; Ucw=function(v){g.F.call(this,{Y:"div",D:"ytp-shorts-title-channel",W:[{Y:"a",D:"ytp-shorts-title-channel-logo",V:{href:"{{channelLink}}",target:v.B().N,"aria-label":"{{channelLogoLabel}}"}},{Y:"div",D:"ytp-shorts-title-expanded-heading",W:[{Y:"div",D:"ytp-shorts-title-expanded-title",W:[{Y:"a",At:"{{expandedTitle}}",V:{href:"{{channelTitleLink}}",target:v.B().N,tabIndex:"0"}}]}]}]});var J=this;this.api=v;this.T=this.p7("ytp-shorts-title-channel-logo");this.channelName=this.p7("ytp-shorts-title-expanded-title"); this.subscribeButton=null;v.createClientVe(this.T,this,36925);this.G(this.T,"click",function(G){J.api.logClick(J.T);g.Mv(window,w1U(J));G.preventDefault()}); v.createClientVe(this.channelName,this,37220);this.G(this.channelName,"click",function(G){J.api.logClick(J.channelName);g.Mv(window,w1U(J));G.preventDefault()}); Ojw(this);this.G(v,"videodatachange",this.De);this.G(v,"videoplayerreset",this.De);this.De()}; Ojw=function(v){if(!v.api.B().Vn){var J=v.api.getVideoData(),G=new g.cv("Subscribe",null,"Subscribed",null,!0,!1,J.kN,J.subscribed,"channel_avatar",null,v.api,!0);v.api.createServerVe(G.element,v);var K;v.api.setTrackingParams(G.element,((K=J.subscribeButtonRenderer)==null?void 0:K.trackingParams)||null);v.G(G.element,"click",function(){v.api.logClick(G.element)}); v.subscribeButton=G;g.k(v,v.subscribeButton);v.subscribeButton.vH(v.element)}}; w1U=function(v){var J=v.api.B(),G=v.api.getVideoData();G=g.oG(J)+G.g_;if(!g.Of(J))return G;J={};g.Dw(v.api,"addEmbedsConversionTrackingParams",[J]);return g.vt(G,J)}; DK=function(v){g.F5.call(this,v,{Y:"button",n7:["ytp-skip-intro-button","ytp-popup","ytp-button"],W:[{Y:"div",D:"ytp-skip-intro-button-text",At:"Skip Intro"}]},100);var J=this;this.Z=!1;this.T=new g.Qq(function(){J.hide()},5E3); this.HG=this.wP=NaN;g.k(this,this.T);this.K=function(){J.show()}; this.j=function(){J.hide()}; this.L=function(){var G=J.S.getCurrentTime();G>J.wP/1E3&&G0?{Y:"svg",V:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{Y:"path",n7:["ytp-circle-arrow","ytp-svg-fill"],V:{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"}}, {Y:"text",n7:["ytp-jump-button-text","ytp-svg-fill"],V:{x:"7.05",y:"15.05"}}]}:{Y:"svg",V:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{Y:"path",n7:["ytp-circle-arrow","ytp-svg-fill"],V:{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"}}, {Y:"text",n7:["ytp-jump-button-text","ytp-svg-fill"],V:{x:"6.5",y:"15"}}]}]});var G=this;this.S=v;this.T=J;this.X=new g.Qq(function(){G.Z?(G.Z=!1,G.X.start()):G.element.classList.remove("ytp-jump-spin","backwards")},250); this.Z=!1;(J=J>0)?this.S.createClientVe(this.element,this,36843):this.S.createClientVe(this.element,this,36844);var K=g.h6(J?"Seek forwards $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.T).toString()});this.update({title:K,"data-title-no-tooltip":K,"aria-keyshortcuts":J?"\u2192":"\u2190"});this.L=this.element.querySelector(".ytp-jump-button-text");this.L.textContent=Math.abs(this.T).toString();this.listen("click",this.onClick,this);Lm(v,this.element, this)}; gjr=function(v,J){J?v.element.classList.add("ytp-jump-button-enabled"):v.element.classList.remove("ytp-jump-button-enabled");v.S.logVisibility(v.element,J);v.S.J3()}; n5=function(v,J){BH.call(this,v,J,"timedMarkerCueRange","View key moments");this.G(v,g.YM("timedMarkerCueRange"),this.kL);this.G(v,"updatemarkervisibility",this.updateVideoData)}; X1L=function(v){var J,G=(J=v.S.getVideoData())==null?void 0:J.o$;if(G)for(v=v.L.jl,G=g.n(G),J=G.next();!J.done;J=G.next())if(J=v[J.value]){var K=void 0,V=void 0,Y=void 0;if(((K=J.onTap)==null?void 0:(V=K.innertubeCommand)==null?void 0:(Y=V.changeEngagementPanelVisibilityAction)==null?void 0:Y.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return J}}; dC=function(v){var J=v.C("web_enable_pip_on_miniplayer");g.F.call(this,{Y:"button",n7:["ytp-miniplayer-button","ytp-button"],V:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},W:[J?{Y:"svg",V:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},W:[{Y:"g",V:{transform:"translate(96, -96) scale(0.8)"},W:[{Y:"path",Xu:!0,V:{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"}}]}]}: lur()]});this.S=v;this.visible=!1;this.listen("click",this.onClick);this.G(v,"fullscreentoggled",this.De);this.updateValue("title",g.yh(v,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});Lm(v,this.element,this);v.createClientVe(this.element,this,62946);this.De()}; Rx=function(v,J,G){G=G===void 0?!1:G;g.F.call(this,{Y:"button",n7:["ytp-mute-button","ytp-button"],V:v.B().jl?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},At:"{{icon}}"});this.S=v;this.Mr=G;this.T=null;this.L=this.N=this.j=this.Ti=NaN;this.dh=this.K=null;this.Z=[];this.X=[];this.visible=!1;this.U=null;v.C("delhi_modern_web_player")&&this.update({"data-priority":3}); G=this.S.B();this.updateValue("icon",xP());this.tooltip=J.Z6();this.T=new g.en({Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"defs",W:[{Y:"clipPath",V:{id:"ytp-svg-volume-animation-mask"},W:[{Y:"path",V:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{Y:"path",V:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{Y:"path",D:"ytp-svg-volume-animation-mover",V:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{Y:"clipPath",V:{id:"ytp-svg-volume-animation-slash-mask"}, W:[{Y:"path",D:"ytp-svg-volume-animation-mover",V:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{Y:"path",Xu:!0,n7:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],V:{"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"}},{Y:"path",Xu:!0,n7:["ytp-svg-fill","ytp-svg-volume-animation-hider"],V:{"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.T);this.K=this.T.p7("ytp-svg-volume-animation-speaker");this.dh=this.K.getAttribute("d");this.Z=g.vM("ytp-svg-volume-animation-mover",this.T.element);this.X=g.vM("ytp-svg-volume-animation-hider",this.T.element);this.Ze=new HT;g.k(this,this.Ze);this.oY=new HT;g.k(this,this.oY);this.listen("click",this.E5l);this.G(v,"appresize",this.ND);this.G(v,"onVolumeChange",this.onVolumeChange);var K=null;G.jl?this.addOnDisposeCallback(g.pm(J.Z6(), this.element)):(J="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),K=new g.F5(v,{Y:"span",n7:["ytp-popup","ytp-generic-popup"],V:{tabindex:"0"},W:[J[0],{Y:"a",V:{href:"https://support.google.com/youtube/?p=noaudio",target:G.N},At:J[2]},J[4]]},100,!0),g.k(this,K),K.hide(),K.subscribe("show",function(V){v.pI(K,V)}),g.gr(v,K.element,4)); this.message=K;v.createClientVe(this.element,this,28662);this.ND(v.f7().getPlayerSize());this.setVolume(v.getVolume(),v.isMuted())}; NiU=function(v,J){v.Ti=J;var G=v.dh;J&&(G+=rbL(kbf,clB,J));v.K.setAttribute("d",G)}; ahs=function(v,J){v.N=J;for(var G=20*J,K=0;K=3&&v.S.getPresentingPlayerType()!==2}; QNm=function(v){var J=x1(v.S.c$());return J?v.T?J.tS():J.z_():!1}; Ft2=function(v){var J={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},G=v.playlist!=null&&v.playlist.tS();G=g.SI(v.S)&&(!v.T||G);var K=v.T&&g.X5(v.S),V=QNm(v),Y=v.T&&v.S.getPresentingPlayerType()===5,r=g.yh(v.S,"Next","SHIFT+n"),E=g.yh(v.S,"Previous","SHIFT+p");if(Y)J.title="Start video";else if(v.Z)J.title="Replay";else if(G){var e=null;v.playlist&&(e=g.oV(v.playlist,v.T?AbU(v.playlist):F7L(v.playlist)));if(e){if(e.videoId){var P=v.playlist.listId; J.url=v.S.B().getVideoUrl(e.videoId,P?P.toString():void 0)}J.text=e.title;J.duration=e.lengthText?e.lengthText:e.lengthSeconds?g.T$(e.lengthSeconds):null;J.preview=e.Us("mqdefault.jpg")}v.T?(J.title=r,J["data-title-no-tooltip"]="Next",J["aria-keyshortcuts"]="SHIFT+n"):(J.title=E,J["data-title-no-tooltip"]="Previous",J["aria-keyshortcuts"]="SHIFT+p")}else if(K){if(E=(e=v.videoData)==null?void 0:g.$J(e))J.url=E.lh(),J.text=E.title,J.duration=E.lengthText?E.lengthText:E.lengthSeconds?g.T$(E.lengthSeconds): null,J.preview=E.Us("mqdefault.jpg");J.title=r;J["data-title-no-tooltip"]="Next";J["aria-keyshortcuts"]="SHIFT+n"}J.disabled=!K&&!G&&!V&&!Y;v.update(J);v.K=!!J.url;K||G||v.Z||V||Y?v.X||(v.X=g.pm(v.tooltip,v.element),v.j=v.listen("click",v.onClick,v)):v.X&&(v.X(),v.X=null,v.YL(v.j),v.j=null);v.tooltip.J3();g.E3(v.element,"ytp-playlist-ui",v.T&&G)}; Cbf=function(v,J){g.F.call(this,{Y:"div",D:"ytp-fine-scrubbing",W:[{Y:"div",D:"ytp-fine-scrubbing-draggable",W:[{Y:"div",D:"ytp-fine-scrubbing-thumbnails",V:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{Y:"div",V:{"aria-hidden":"true"},D:"ytp-fine-scrubbing-cursor"},{Y:"div",D:"ytp-fine-scrubbing-seek-time",V:{"aria-hidden":"true"}, At:"{{seekTime}}"},{Y:"div",D:"ytp-fine-scrubbing-play",W:[yF()],V:{title:"Play from this position",role:"button"}},{Y:"div",D:"ytp-fine-scrubbing-dismiss",W:[g.RK()],V:{title:"Exit precise seeking",role:"button"}}]});var G=this;this.api=v;this.j=this.p7("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.p7("ytp-fine-scrubbing-dismiss");this.dh=this.p7("ytp-fine-scrubbing-draggable");this.playButton=this.p7("ytp-fine-scrubbing-play");this.thumbnails=[];this.X=[];this.YB=this.T=0;this.qr=void 0; this.oY=NaN;this.jl=this.N=this.Z=this.U=0;this.L=[];this.interval=this.frameCount=0;this.K=160;this.scale=1;this.Gi=0;this.isEnabled=this.Mr=!1;Wtw(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.pm(J,this.dismissButton));this.addOnDisposeCallback(g.pm(J,this.playButton));this.Ze=new g.Si(this.dh,!0);this.Ze.subscribe("dragstart",this.lB,this);this.Ze.subscribe("dragmove",this.Wz,this);this.Ze.subscribe("dragend",this.In,this);this.G(v,"SEEK_COMPLETE",this.x_);v.C("web_fix_fine_scrubbing_false_play")&& this.G(v,"rootnodemousedown",function(K){G.Ti=K}); this.j.addEventListener("keydown",function(){}); g.k(this,this.Ze);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.j,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; Wtw=function(v,J){var G=g.T$(J),K=g.h6("Seek to $PROGRESS",{PROGRESS:g.T$(J,!0)});v.update({ariamin:0,ariamax:Math.floor(v.api.getDuration()),arianow:Math.floor(J),arianowtext:K,seekTime:G})}; bjw=function(v){v.oY=NaN;v.N=0;v.U=v.Z}; $wB=function(v){var J=v.api.DM();if(J){var G=90*v.scale,K=us(J,160*v.scale);if(J=J.levels[K]){v.K=J.width;if(!v.L.length){K=[];for(var V=gh(J,J.qt()),Y=J.columns*J.rows,r=J.frameCount,E=0;E<=V;E++)for(var e=rv.L.length;)K= void 0,(K=v.thumbnails.pop())==null||K.dispose();for(;v.thumbnails.lengthG.length;)K=void 0,(K=v.X.pop())==null||K.dispose(); for(;v.X.length-G?-J/G*v.interval*.5:-(J+G/2)/G*v.interval}; voB=function(v){return-((v.j.offsetWidth||(v.frameCount-1)*v.K*v.scale)-v.T/2)}; j6j=function(){g.F.call(this,{Y:"div",D:"ytp-fine-scrubbing-thumbnail"})}; iwU=function(){g.F.call(this,{Y:"div",D:"ytp-fine-scrubbing-chapter-title",W:[{Y:"div",D:"ytp-fine-scrubbing-chapter-title-content",At:"{{chapterTitle}}"}]})}; Gcm=function(v){g.F.call(this,{Y:"div",D:"ytp-heat-map-chapter",W:[{Y:"svg",D:"ytp-heat-map-svg",V:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},W:[{Y:"defs",W:[{Y:"clipPath",V:{id:"{{id}}"},W:[{Y:"path",D:"ytp-heat-map-path",V:{d:"",fill:"white"}}]},{Y:"linearGradient",V:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},W:[{Y:"stop",V:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{Y:"stop",V:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{Y:"rect",D:"ytp-heat-map-graph",V:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{Y:"rect",D:"ytp-heat-map-hover",V:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{Y:"rect",D:"ytp-heat-map-play",V:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{Y:"path",D:"ytp-modern-heat-map",V:{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=v;this.U=this.p7("ytp-heat-map-svg");this.j=this.p7("ytp-heat-map-path");this.L=this.p7("ytp-heat-map-graph");this.K=this.p7("ytp-heat-map-play");this.T=this.p7("ytp-heat-map-hover");this.Z=this.p7("ytp-modern-heat-map");this.B1=!1;this.X=60;v=""+g.Cf(this);this.update({id:v});v="url(#"+v+")";this.L.setAttribute("clip-path",v);this.K.setAttribute("clip-path",v);this.T.setAttribute("clip-path", v)}; ooj=function(v,J){J>0&&(v.X=J,v.U.style.height=v.X+"px")}; L5=function(){g.F.call(this,{Y:"div",D:"ytp-chapter-hover-container",W:[{Y:"div",D:"ytp-progress-bar-padding"},{Y:"div",D:"ytp-progress-list",W:[{Y:"div",n7:["ytp-play-progress","ytp-swatch-background-color"]},{Y:"div",D:"ytp-progress-linear-live-buffer"},{Y:"div",D:"ytp-load-progress"},{Y:"div",D:"ytp-hover-progress"},{Y:"div",D:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.X=this.p7("ytp-progress-list");this.j=this.p7("ytp-progress-linear-live-buffer"); this.L=this.p7("ytp-ad-progress-list");this.K=this.p7("ytp-load-progress");this.U=this.p7("ytp-play-progress");this.Z=this.p7("ytp-hover-progress");this.T=this.p7("ytp-chapter-hover-container")}; y0=function(v,J){g.ep(v.T,"width",J)}; Kem=function(v,J){g.ep(v.T,"margin-right",J+"px")}; VJL=function(){this.X=this.position=this.Z=this.T=this.L=this.width=NaN}; YYw=function(){g.F.call(this,{Y:"div",D:"ytp-timed-marker"});this.T=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.Ow=function(v,J){g.t9.call(this,{Y:"div",D:"ytp-progress-bar-container",V:{"aria-disabled":"true"},W:[{Y:"div",n7:["ytp-heat-map-container"],W:[{Y:"div",D:"ytp-heat-map-edu"}]},{Y:"div",n7:["ytp-progress-bar"],V:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},W:[{Y:"div",D:"ytp-chapters-container"},{Y:"div",D:"ytp-timed-markers-container"},{Y:"div",D:"ytp-clip-start-exclude"}, {Y:"div",D:"ytp-clip-end-exclude"},{Y:"div",D:"ytp-scrubber-container",W:[{Y:"div",n7:["ytp-scrubber-button","ytp-swatch-background-color"],W:[{Y:"div",D:"ytp-scrubber-pull-indicator"},{Y:"img",n7:["ytp-decorated-scrubber-button"]}]}]}]},{Y:"div",n7:["ytp-fine-scrubbing-container"],W:[{Y:"div",D:"ytp-fine-scrubbing-edu"}]},{Y:"div",D:"ytp-bound-time-left",At:"{{boundTimeLeft}}"},{Y:"div",D:"ytp-bound-time-right",At:"{{boundTimeRight}}"},{Y:"div",D:"ytp-clip-start",V:{title:"{{clipstarttitle}}"},At:"{{clipstarticon}}"}, {Y:"div",D:"ytp-clip-end",V:{title:"{{clipendtitle}}"},At:"{{clipendicon}}"}]});this.api=v;this.rJ=!1;this.Hv=this.Hw=this.RY=this.j=this.Jm=0;this.G4=null;this.Mj=!1;this.YB={};this.R$={};this.clipEnd=Infinity;this.g_=this.p7("ytp-clip-end");this.a$=new g.Si(this.g_,!0);this.OR=this.p7("ytp-clip-end-exclude");this.Vn=this.p7("ytp-clip-start-exclude");this.clipStart=0;this.UR=this.p7("ytp-clip-start");this.yy=new g.Si(this.UR,!0);this.N=this.Nr=0;this.progressBar=this.p7("ytp-progress-bar");this.o$= {};this.jl={};this.xB=this.p7("ytp-chapters-container");this.H8=this.p7("ytp-timed-markers-container");this.T=[];this.K=[];this.IR={};this.E9=null;this.dh=-1;this.wh=this.Ze=0;this.Vy=this.U=null;this.F5=this.p7("ytp-scrubber-button");this.KK=this.p7("ytp-decorated-scrubber-button");this.Q$=this.p7("ytp-scrubber-container");this.WH=new g.R7;this.HG=new VJL;this.Z=new Sr(0,0);this.L0=null;this.oY=this.Bv=!1;this.Es=null;this.Ti=this.p7("ytp-heat-map-container");this.qj=this.p7("ytp-heat-map-edu"); this.L=[];this.heatMarkersDecorations=[];this.BH=this.p7("ytp-fine-scrubbing-container");this.BO=this.p7("ytp-fine-scrubbing-edu");this.X=void 0;this.Mr=this.Xm=this.qr=!1;this.tooltip=J.Z6();this.addOnDisposeCallback(g.pm(this.tooltip,this.g_));g.k(this,this.a$);this.a$.subscribe("hoverstart",this.YY,this);this.a$.subscribe("hoverend",this.n2,this);this.G(this.g_,"click",this.UO);this.addOnDisposeCallback(g.pm(this.tooltip,this.UR));g.k(this,this.yy);this.yy.subscribe("hoverstart",this.YY,this); this.yy.subscribe("hoverend",this.n2,this);this.G(this.UR,"click",this.UO);rVm(this);this.G(v,"resize",this.E$);this.G(v,"presentingplayerstatechange",this.Lil);this.G(v,"videodatachange",this.Q5);this.G(v,"videoplayerreset",this.sYl);this.G(v,"cuerangesadded",this.y3h);this.G(v,"cuerangesremoved",this.zdl);this.G(v,"onLoopRangeChange",this.wl);this.G(v,"innertubeCommand",this.onClickCommand);this.G(v,g.VG("timedMarkerCueRange"),this.U1r);this.G(v,"updatemarkervisibility",this.Ja);this.G(v,"serverstitchedvideochange", this.qJB);this.updateVideoData(v.getVideoData(),!0);this.wl(v.getLoopRange());wC(this)&&!this.X&&(this.X=new Cbf(this.api,this.tooltip),v=g.dS(this.element).x||0,this.X.E$(v,this.j),this.X.vH(this.BH),g.k(this,this.X),this.G(this.X.dismissButton,"click",this.lU),this.G(this.X.playButton,"click",this.mj),this.G(this.X.element,"dblclick",this.mj));this.api.createClientVe(this.Ti,this,139609,!0);this.api.createClientVe(this.qj,this,140127,!0);this.api.createClientVe(this.BO,this,151179,!0);this.api.createClientVe(this.progressBar, this,38856,!0)}; rVm=function(v){if(v.T.length===0){var J=new L5;v.T.push(J);g.k(v,J);J.vH(v.xB,0)}for(;v.T.length>1;)v.T.pop().dispose();y0(v.T[0],"100%");v.T[0].startTime=0;v.T[0].title=""}; qYU=function(v){var J=J===void 0?NaN:J;var G=new Gcm(v.api);v.L.push(G);g.k(v,G);G.vH(v.Ti);J>=0&&(G.element.style.width=J+"px")}; EoL=function(v){for(;v.K.length;)v.K.pop().dispose()}; PXm=function(v){var J,G,K,V,Y;return(Y=g.N((V=g.N((J=v.getWatchNextResponse())==null?void 0:(G=J.playerOverlays)==null?void 0:(K=G.playerOverlayRenderer)==null?void 0:K.decoratedPlayerBarRenderer,LS))==null?void 0:V.playerBar,ehL))==null?void 0:Y.chapters}; Dw8=function(v){for(var J=v.T,G=[],K=0;K=r&&R<=D&&Y.push(B)}e>0&&(v.Ti.style.height=e+"px");r=v.L[K];D=Y;B=V;h=e;R=K===0;R=R===void 0?!1:R;ooj(r,h);t=D;I=r.X;R=R===void 0?!1:R;var T=1E3/t.length,L=[];L.push({x:0,y:100});for(var O=0;O0&&(G=Y[Y.length-1])}g.Uw(v);E=[];J=g.n(J.heatMarkersDecorations||[]);for(V=J.next();!V.done;V=J.next())if(V=g.N(V.value,dwf))e=V.label,K=G=P=void 0,E.push({visibleTimeRangeStartMillis:(P=V.visibleTimeRangeStartMillis)!=null?P:-1,visibleTimeRangeEndMillis:(G=V.visibleTimeRangeEndMillis)!=null?G:-1,decorationTimeMillis:(K=V.decorationTimeMillis)!=null?K:NaN,label:e?g.h9(e):""});v.heatMarkersDecorations=E}}; IXr=function(v,J){v.K.push(J);g.k(v,J);J.vH(v.H8,v.H8.children.length)}; hhX=function(v,J){J=g.n(J);for(var G=J.next();!G.done;G=J.next()){G=G.value;var K=xA(v,G.timeRangeStartMillis/(v.Z.T*1E3),mJ(v));g.ep(G.element,"transform","translateX("+K+"px) scaleX(0.6)")}}; tJU=function(v,J){var G=0,K=!1;J=g.n(J);for(var V=J.next();!V.done;V=J.next()){V=V.value;if(g.N(V,Rht)){V=g.N(V,Rht);var Y={startTime:NaN,title:null,onActiveCommand:void 0},r=V.title;Y.title=r?g.h9(r):"";r=V.timeRangeStartMillis;r!=null&&(Y.startTime=r);Y.onActiveCommand=V.onActiveCommand;V=Y;G===0&&V.startTime!==0&&(v.T[G].startTime=0,v.T[G].title="",v.T[G].onActiveCommand=V.onActiveCommand,G++,K=!0);v.T.length<=G&&(Y=new L5,v.T.push(Y),g.k(v,Y),Y.vH(v.xB,v.xB.children.length));v.T[G].startTime= V.startTime;v.T[G].title=V.title?V.title:"";v.T[G].onActiveCommand=V.onActiveCommand;v.T[G].index=K?G-1:G}G++}for(;G=0;K--)if(v.T[K].width>0){Kem(v.T[K],0);var V=Math.floor(v.T[K].width);v.T[K].width=V;y0(v.T[K],V+"px");break}v.T[G].width=0;y0(v.T[G],"0")}else G===v.T.length-1?(K=Math.floor(v.T[G].width+J),v.T[G].width=K,y0(v.T[G],K+"px")):(J=v.T[G].width+J,K=Math.round(J),J-=K,v.T[G].width=K,y0(v.T[G],K+"px"));G=0;if(v.L.length===v.T.length)for(J=0;J< v.L.length;J++)K=v.T[J].width,v.L[J].element.style.width=K+"px",v.L[J].element.style.left=G+"px",G+=K+f5(v);v.api.C("delhi_modern_web_player")&&(v.T.length===1?v.T[0].X.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(v.T[0].X.classList.remove("ytp-progress-bar-end"),v.T[0].X.classList.add("ytp-progress-bar-start"),v.T[v.T.length-1].X.classList.add("ytp-progress-bar-end")))}; lXw=function(v,J){var G=0,K=!1,V=v.T.length,Y=v.Z.T*1E3;Y===0&&(Y=v.api.getProgressState().seekableEnd*1E3);if(Y>0&&v.j>0){for(var r=v.j-f5(v)*v.Ze,E=v.wh===0?3:r*v.wh,e=g.n(v.T),P=e.next();!P.done;P=e.next())P.value.width=0;for(;G1);P=(Y===0?0:e/Y*r)+v.T[G].width;if(P>E)v.T[G].width=P;else{v.T[G].width=0;var D=v,t=G,B=D.T[t-1];B!==void 0&&B.width>0? B.width+=P:tv.wh&&(v.wh=e/Y),K=!0)}G++}}return K}; S4=function(v){if(v.j){var J=v.api.getProgressState(),G=v.api.getVideoData();if(!(G&&G.enableServerStitchedDai&&G.Zj)||isFinite(J.current)){var K;if(((K=v.api.getVideoData())==null?0:JK(K))&&J.airingStart&&J.airingEnd)var V=ZK(v,J.airingStart,J.airingEnd);else if(v.api.getPresentingPlayerType()===2){var Y,r,E;V=(G=(V=v.api.getVideoData())==null?void 0:(Y=V.getPlayerResponse())==null?void 0:(r=Y.playerConfig)==null?void 0:(E=r.webPlayerConfig)==null?void 0:E.skippableAdProgressBarDuration)?ZK(v,J.seekableStart, G/1E3):ZK(v,J.seekableStart,J.seekableEnd)}else V=ZK(v,J.seekableStart,J.seekableEnd);Y=fd(V,J.loaded,0);J=fd(V,J.current,0);r=v.Z.X!==V.X||v.Z.T!==V.T;v.Z=V;ux(v,J,Y);r&&TV2(v);pCX(v)}}}; ZK=function(v,J,G){return Le8(v)?new Sr(Math.max(J,v.L0.startTimeMs/1E3),Math.min(G,v.L0.endTimeMs/1E3)):new Sr(J,G)}; yVf=function(v,J){var G;if(((G=v.L0)==null?void 0:G.type)==="repeatChapter"||(J==null?void 0:J.type)==="repeatChapter")J&&(J=v.T[ix(v.T,J.startTimeMs)],g.E3(J.T,"ytp-repeating-chapter",!1)),v.L0&&(J=v.T[ix(v.T,v.L0.startTimeMs)],g.E3(J.T,"ytp-repeating-chapter",!0)),v.T.forEach(function(K){g.E3(K.T,"ytp-exp-chapter-hover-container",!v.L0)})}; Xd=function(v,J){var G=v.Z;G=G.X+J.X*G.getLength();if(v.T.length>1){G=gC(v,J.Z,!0);for(var K=0,V=0;V0&&(K+=v.T[V].width,K+=f5(v));G=(v.T[G].startTime+(J.Z-K)/v.T[G].width*((G===v.T.length-1?v.Z.T*1E3:v.T[G+1].startTime)-v.T[G].startTime))/1E3||0}return G}; kA=function(v,J,G,K,V){J=J<0?0:Math.floor(Math.min(J,v.api.getDuration())*1E3);G=G<0?0:Math.floor(Math.min(G,v.api.getDuration())*1E3);v=v.progressBar.visualElement;K={seekData:{startMediaTimeMs:J,endMediaTimeMs:G,seekSource:K}};(J=g.LW())&&g.jk(i_)(void 0,J,v,V,K,void 0)}; wCw=function(v,J,G){if(G>=v.T.length)return!1;var K=v.j-f5(v)*v.Ze;return Math.abs(J-v.T[G].startTime/1E3)/v.Z.T*K<4}; TV2=function(v){v.F5.style.removeProperty("height");for(var J=g.n(Object.keys(v.YB)),G=J.next();!G.done;G=J.next())Oww(v,G.value);cH(v);ux(v,v.N,v.Nr)}; mJ=function(v){var J=v.WH.x;J=g.nk(J,0,v.j);v.HG.update(J,v.j);return v.HG}; ax=function(v){return(v.oY?135:90)-Ng(v)}; Ng=function(v){var J=48,G=v.api.B();v.oY?J=54:g.Of(G)&&!G.X?J=40:v.api.C("delhi_modern_web_player")&&(J=68);return J}; ux=function(v,J,G){v.N=J;v.Nr=G;var K=mJ(v),V=v.Z.T;var Y=v.Z;Y=Y.X+v.N*Y.getLength();var r=g.h6("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.T$(Y,!0),DURATION:g.T$(V,!0)}),E=ix(v.T,Y*1E3);E=v.T[E].title;v.update({ariamin:Math.floor(v.Z.X),ariamax:Math.floor(V),arianow:Math.floor(Y),arianowtext:E?E+" "+r:r});V=v.clipStart;Y=v.clipEnd;v.L0&&v.api.getPresentingPlayerType()!==2&&(V=v.L0.startTimeMs/1E3,Y=v.L0.endTimeMs/1E3);V=fd(v.Z,V,0);E=fd(v.Z,Y,1);r=v.api.getVideoData();Y=g.nk(J,V,E);G=(r==null? 0:g.im(r))?1:g.nk(G,V,E);J=xA(v,J,K);g.ep(v.Q$,"transform","translateX("+J+"px)");v.api.C("delhi_modern_web_player")&&UwX(v,J);Ad(v,K,V,Y,"PLAY_PROGRESS");(r==null?0:JK(r))?(J=v.api.getProgressState().seekableEnd)&&Ad(v,K,Y,fd(v.Z,J),"LIVE_BUFFER"):Ad(v,K,V,G,"LOAD_PROGRESS");if(v.api.C("web_player_heat_map_played_bar")){var e;(e=v.L[0])!=null&&e.K.setAttribute("width",(Y*100).toFixed(2)+"%")}}; UwX=function(v,J){v.api.getPresentingPlayerType()!==1?v.xB.style.removeProperty("clip-path"):(J||(J=xA(v,v.N,mJ(v))),v.xB.style.clipPath='path("'+(v.Mj?xws(v,8,J,v.oY?50:36,0,6):xws(v,4,J,v.oY?34:24,2,3))+'")')}; xws=function(v,J,G,K,V,Y){var r=G-K/2;G+=K/2;J+=V;return"M 0 "+V+" L 0 "+(J+" L ")+(r+" "+J+" C ")+(r+Y+" "+J+" "+(r+Y)+" "+V+" "+r+" "+V+" L 0 ")+(V+" M ")+(G+" "+V+" L ")+(v.j+" "+V+" L ")+(v.j+" "+J+" L ")+(G+" "+J+" C ")+(G-Y+" "+J+" "+(G-Y)+" "+V+" "+G+" "+V)}; Ad=function(v,J,G,K,V){var Y=v.T.length,r=J.T-v.Ze*f5(v),E=G*r;G=gC(v,E);var e=K*r;r=gC(v,e);V==="HOVER_PROGRESS"&&(r=gC(v,J.T*K,!0),e=J.T*K-mww(v,J.T*K)*f5(v));K=Math.max(E-SYm(v,G),0);for(E=G;E=v.T.length)return v.j;for(var G=0,K=0;K0||v.OR.clientWidth>0?(Y=J.clientWidth/G,v=-1*v.Vn.clientWidth/G):(Y/=G,v=-1*v.T[V].element.offsetLeft/G),g.ep(J,"background-size",Y+"px"),g.ep(J,"background-position-x",v+"px"))}; Fd=function(v,J,G,K,V){V||v.api.B().X?J.style.width=G+"px":g.ep(J,"transform","scalex("+(K?G/K:0)+")")}; gC=function(v,J,G){var K=0;(G===void 0?0:G)&&(J-=mww(v,J)*f5(v));G=g.n(v.T);for(var V=G.next();!V.done;V=G.next()){V=V.value;if(J>V.width)J-=V.width;else break;K++}return K===v.T.length?K-1:K}; xA=function(v,J,G){var K=J*v.Z.T*1E3;for(var V=-1,Y=g.n(v.T),r=Y.next();!r.done;r=Y.next())r=r.value,K>r.startTime&&r.width>0&&V++;K=V<0?0:V;V=G.T-f5(v)*v.Ze;return J*V+f5(v)*K+G.L}; mww=function(v,J){for(var G=v.T.length,K=0,V=g.n(v.T),Y=V.next();!Y.done;Y=V.next())if(Y=Y.value,Y.width!==0)if(J>Y.width)J-=Y.width,J-=f5(v),K++;else break;return K===G?G-1:K}; g.u3j=function(v,J,G,K){var V=v.j!==G,Y=v.oY!==K;v.Jm=J;v.j=G;v.oY=K;wC(v)&&(J=v.X)!=null&&(J.scale=K?1.5:1);TV2(v);v.T.length===1&&(v.T[0].width=G||0);V&&g.Uw(v);v.X&&Y&&wC(v)&&(v.X.isEnabled&&(G=v.oY?135:90,K=G-Ng(v),v.BH.style.height=G+"px",g.ep(v.Ti,"transform","translateY("+-K+"px)"),g.ep(v.progressBar,"transform","translateY("+-K+"px)")),$wB(v.X))}; cH=function(v){var J=!!v.L0&&v.api.getPresentingPlayerType()!==2,G=v.clipStart,K=v.clipEnd,V=!0,Y=!0;J&&v.L0?(G=v.L0.startTimeMs/1E3,K=v.L0.endTimeMs/1E3):(V=G>v.Z.X,Y=v.Z.T>0&&Kv.N);g.E3(v.F5,"ytp-scrubber-button-hover",G===K&&v.T.length>1);if(v.api.C("web_player_heat_map_played_bar")){var Y;(Y=v.L[0])!=null&&Y.T.setAttribute("width",(J.X*100).toFixed(2)+"%")}}}; Oww=function(v,J){var G=v.YB[J];J=v.R$[J];var K=mJ(v),V=fd(v.Z,G.start/1E3,0),Y=Kqw(G,v.oY)/K.width;var r=fd(v.Z,G.end/1E3,1);Y!==Number.POSITIVE_INFINITY&&(V=g.nk(V,0,r-Y));r=Math.min(r,V+Y);G.color&&(J.style.background=G.color);G=V;J.style.left=Math.max(G*K.T+K.L,0)+"px";Fd(v,J,g.nk((r-G)*K.T+K.L,0,K.width),K.width,!0)}; go2=function(v,J){var G=J.getId();v.YB[G]===J&&(g.tx(v.R$[G]),delete v.YB[G],delete v.R$[G])}; wC=function(v){var J=g.bh(v.api.B())&&(v.api.C("web_shorts_pip")||v.api.C("web_watch_pip")),G;return!((G=v.api.getVideoData())==null?0:G.isLivePlayback)&&!v.api.isMinimized()&&!v.api.isInline()&&(!v.api.hh()||!J)}; HH=function(v){v.X&&(v.X.disable(),v.RY=0,v.Ti.style.removeProperty("transform"),v.progressBar.style.removeProperty("transform"),v.BH.style.removeProperty("height"),v.element.parentElement&&v.element.parentElement.style.removeProperty("height"))}; XCU=function(v,J){var G=J/ax(v)*Ng(v);g.ep(v.progressBar,"transform","translateY("+-J+"px)");g.ep(v.Ti,"transform","translateY("+-J+"px)");g.ep(v.BH,"transform","translateY("+G+"px)");v.BH.style.height=J+G+"px";v.element.parentElement&&(v.element.parentElement.style.height=Ng(v)-G+"px")}; kc2=function(v,J){J?v.U||(v.element.removeAttribute("aria-disabled"),v.U=new g.Si(v.progressBar,!0),v.U.subscribe("hovermove",v.Pie,v),v.U.subscribe("hoverend",v.iYH,v),v.U.subscribe("dragstart",v.xjb,v),v.U.subscribe("dragmove",v.WUH,v),v.U.subscribe("dragend",v.OYb,v),v.api&&v.api.C("delhi_modern_web_player")&&(v.Vy=new g.Si(v.progressBar,!0),v.Vy.subscribe("hoverstart",function(){v.Mj=!0;UwX(v)},v),v.Vy.subscribe("hoverend",function(){v.Mj=!1; UwX(v)},v)),v.Es=v.listen("keydown",v.iR)):v.U&&(v.element.setAttribute("aria-disabled","true"),v.YL(v.Es),v.U.cancel(),v.U.dispose(),v.U=null)}; f5=function(v){return v.api.C("delhi_modern_web_player")?4:v.oY?3:2}; Le8=function(v){var J;return!((J=v.L0)==null||!J.postId)&&v.api.getPresentingPlayerType()!==2}; Mg=function(v,J){g.F.call(this,{Y:"button",n7:["ytp-remote-button","ytp-button"],V:{title:"Play on TV","aria-haspopup":"true","data-priority":"9"},At:"{{icon}}"});this.S=v;this.Mi=J;this.T=null;this.G(v,"onMdxReceiversChange",this.De);this.G(v,"presentingplayerstatechange",this.De);this.G(v,"appresize",this.De);v.createClientVe(this.element,this,139118);this.De();this.listen("click",this.X,this);Lm(v,this.element,this)}; Q0=function(v,J){g.F.call(this,{Y:"button",n7:["ytp-button","ytp-settings-button"],V:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":EN(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},W:[g.ON()]});this.S=v;this.Mi=J;this.X=!0;this.listen("click",this.Z);this.G(v,"onPlaybackQualityChange",this.updateBadge);this.G(v,"videodatachange",this.updateBadge);this.G(v,"webglsettingschanged",this.updateBadge);this.G(v,"appresize",this.T);Lm(v,this.element,this);this.S.createClientVe(this.element, this,28663);this.updateBadge();this.T(v.f7().getPlayerSize())}; cVw=function(v,J){v.X=!!J;v.T(v.S.f7().getPlayerSize())}; WH=function(v,J){Yw.call(this,"Annotations",g.DM.tC);this.S=v;this.Mi=J;this.T=!1;v.C("web_settings_menu_icons")&&this.setIcon({Y:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{Y:"path",V:{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.G(v,"videodatachange",this.De);this.G(v,"onApiChange",this.De);this.subscribe("select",this.onSelect,this);this.De()}; C5=function(v,J){g.Uq.call(this,"Audio track",g.DM.AUDIO,v,J);this.S=v;this.tracks={};g.Vj(this.element,"ytp-audio-menu-item");this.countLabel=new g.F({Y:"div",W:[{Y:"span",At:"Audio track"},{Y:"span",D:"ytp-menuitem-label-count",At:"{{content}}"}]});v.C("web_settings_menu_icons")&&this.setIcon({Y:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{Y:"path",V:{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.Wz(this,this.countLabel);this.G(v,"videodatachange",this.De);this.G(v,"onPlaybackAudioChange",this.De);this.De()}; bx=function(v,J){Yw.call(this,"Auto-play",g.DM.ek);this.S=v;this.Mi=J;this.T=!1;this.Z=[];this.G(v,"presentingplayerstatechange",this.X);this.subscribe("select",this.onSelect,this);v.createClientVe(this.element,this,113682);this.X()}; NVr=function(v,J){g.Cm.call(this,g.bm({"aria-haspopup":"false"}),0,"More options");this.S=v;this.Mi=J;this.G(this.element,"click",this.onClick);this.Mi.Dv(this)}; aXm=function(v,J){var G;g.bh(v.B())&&(G={Y:"div",D:"ytp-panel-footer-content",W:[{Y:"span",At:"Adjust download quality from your "},{Y:"a",D:"ytp-panel-footer-content-link",At:"Settings",V:{href:"/account_downloads"}}]});g.Uq.call(this,"Quality",g.DM.pS,v,J,void 0,void 0,G);this.S=v;this.dh={};this.N={};this.L={};this.Ze=new Set;this.T=this.j=!1;this.K="unknown";this.oY="";this.Ti=new g.Q3;g.k(this,this.Ti);this.j=this.S.C("web_player_use_new_api_for_quality_pullback");this.T=this.S.C("web_player_enable_premium_hbr_playback_cap"); v.C("web_settings_menu_icons")&&this.setIcon({Y:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{Y:"path",V:{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.Vj(this.X.element,"ytp-quality-menu");this.G(v,"videodatachange",this.rA);this.G(v,"videoplayerreset",this.rA);this.G(v,"onPlaybackQualityChange",this.EE);this.rA();v.createClientVe(this.element,this,137721)}; Fej=function(v,J,G){var K=v.dh[J],V=g.Xy[J];return AVX(v,K?K.qualityLabel:V?V+"p":"Auto",J,G)}; HwX=function(v,J,G,K,V){var Y=(J=v.T?v.L[J]:v.N[J])&&J.quality,r=J&&J.qualityLabel;r=r?r:"Auto";K&&(r="("+r);v=AVX(v,r,Y||"",V);K&&v.W.push(")");(K=(K=J&&J.paygatedQualityDetails)&&K.paygatedIndicatorText)&&G&&v.W.push({Y:"div",D:"ytp-premium-label",At:K});return v}; AVX=function(v,J,G,K){J={Y:"span",n7:K,W:[J]};var V;K="ytp-swatch-color";if(v.j||v.T)K="ytp-swatch-color-white";G==="highres"?V="8K":G==="hd2880"?V="5K":G==="hd2160"?V="4K":G.indexOf("hd")===0&&G!=="hd720"&&(V="HD");V&&(J.W.push(" "),J.W.push({Y:"sup",D:K,At:V}));return J}; jt=function(v,J,G,K,V,Y){Y=Y===void 0?!1:Y;var r={Y:"div",n7:["ytp-input-slider-section"],W:[{Y:"input",D:"ytp-input-slider",V:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};V&&r.W.unshift(V);Y&&r.n7.push("ytp-vertical-slider");g.F.call(this,r);this.j=v;this.K=J;this.U=G;this.initialValue=K;this.header=V;this.X=this.p7("ytp-input-slider");this.T=K?K:v;this.init();this.G(this.X,"input",this.L);this.G(this.X,"keydown", this.Z)}; iH=function(v,J){v.T=J;v.updateValue("slidervalue",v.T);v.X.valueAsNumber=v.T;MJL(v,J)}; MJL=function(v,J){v.X.style.setProperty("--yt-slider-shape-gradient-percent",(J-v.j)/(v.K-v.j)*100+"%")}; $F=function(v){jt.call(this,v.getAvailablePlaybackRates()[0],v.getAvailablePlaybackRates()[v.getAvailablePlaybackRates().length-1],.05,v.getPlaybackRate(),{Y:"div",D:"ytp-speedslider-indicator-container",W:[{Y:"div",D:"ytp-speedslider-badge"},{Y:"p",D:"ytp-speedslider-text"}]});this.S=v;this.oY=pQ(this.Ti,50,this);g.Vj(this.X,"ytp-speedslider");this.N=this.p7("ytp-speedslider-text");this.Ze=this.p7("ytp-speedslider-badge");Q6U(this);this.G(this.X,"change",this.dh)}; Q6U=function(v){v.N.textContent=v.T+"x";v.Ze.classList.toggle("ytp-speedslider-premium-badge",v.T>2&&v.S.C("enable_web_premium_varispeed"))}; vU=function(v,J,G,K,V,Y,r){g.F.call(this,{Y:"div",D:"ytp-slider-section",V:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{Y:"div",D:"ytp-slider",W:[{Y:"div",D:"ytp-slider-handle"}]}]});this.U=v;this.N=J;this.X=G;this.Z=K;this.oY=V;this.Mr=Y;this.range=this.Z-this.X;this.qr=this.p7("ytp-slider-section");this.L=this.p7("ytp-slider");this.Ti=this.p7("ytp-slider-handle");this.K=new g.Si(this.L, !0);this.T=r?r:G;g.k(this,this.K);this.K.subscribe("dragmove",this.WP,this);this.G(this.element,"keydown",this.lR);this.G(this.element,"wheel",this.PP);this.init()}; Jb=function(v){vU.call(this,.05,.05,v.getAvailablePlaybackRates()[0],v.getAvailablePlaybackRates()[v.getAvailablePlaybackRates().length-1],150,20,v.getPlaybackRate());this.S=v;this.j=g.qh("P");this.Ze=pQ(this.dh,50,this);g.Vj(this.L,"ytp-speedslider");g.Vj(this.j,"ytp-speedslider-text");v=this.j;var J=this.L;J.parentNode&&J.parentNode.insertBefore(v,J.nextSibling);Wer(this);this.G(this.S,"onPlaybackRateChange",this.updateValues)}; Wer=function(v){v.j.textContent=CX2(v,v.T)+"x"}; CX2=function(v,J){v=Number(g.nk(J,v.X,v.Z).toFixed(2));J=Math.floor((v+.001)*100%5+2E-15);var G=v;J!==0&&(G=v-J*.01);return Number(G.toFixed(2))}; bwm=function(v){g.t9.call(this,{Y:"div",D:"ytp-speedslider-component"});v.C("web_settings_use_input_slider")?this.T=new $F(v):this.T=new Jb(v);g.k(this,this.T);this.element.appendChild(this.T.element)}; jar=function(v){var J=new bwm(v);nD.call(this,v,J,"Custom");g.k(this,J)}; iK8=function(v,J){var G=new jar(v);g.Uq.call(this,"Playback speed",g.DM.v5,v,J,Gk(v)?void 0:"Custom",Gk(v)?void 0:function(){g.lT(J,G)}); var K=this;this.L=!1;g.k(this,G);this.K=new $F(v);g.k(this,this.K);v.C("web_settings_menu_icons")&&this.setIcon({Y:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{Y:"path",V:{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.S=v;this.L=!1;this.oY=null;Gk(v)?(this.T=g.h6("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.S.getPlaybackRate().toString()}),this.j=this.S.getPlaybackRate()):this.j=this.T=null;this.N=this.S.getAvailablePlaybackRates();this.G(v,"presentingplayerstatechange",this.De);var V;((V=this.S.getVideoData())==null?0:V.i9())&&this.G(v,"serverstitchedvideochange",this.De);this.G(this.K.X,"change",function(){K.L=!0;K.De()}); this.De()}; $Pw=function(v,J){var G=oO(J);v.T&&(v.L||J===v.j)?(v.SJ(v.T),v.H1(J.toString())):v.SJ(G)}; JTj=function(v){v.zk(v.N.map(oO));v.T=null;v.j=null;var J=v.S.getPlaybackRate();Gk(v.S)&&v78(v,J);!v.N.includes(J)||v.L?v.SJ(v.T):v.SJ(oO(J))}; v78=function(v,J){v.j=J;v.T=g.h6("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:J.toString()});J=v.N.map(oO);J.unshift(v.T);v.zk(J)}; oO=function(v){return v.toString()}; Gk=function(v){return v.C("web_settings_menu_surface_custom_playback")}; Ggt=function(v){return v.C("web_settings_menu_surface_custom_playback")&&v.C("web_settings_use_input_slider")}; KAL=function(v,J,G,K){var V=new g.d1(J,void 0,"Video Override");g.Uq.call(this,K.text||"",v,J,G,"Video Override",function(){g.lT(G,V)}); var Y=this;g.Vj(this.element,"ytp-subtitles-options-menu-item");this.setting=K.option.toString();v=K.options;this.settings=g.D6(v,this.Hp,this);this.j=V;g.k(this,this.j);J=new g.Cm({Y:"div",D:"ytp-menuitemtitle",At:"Allow for a different caption style if specified by the video."},0);g.k(this,J);this.j.Dv(J,!0);this.L=new g.Cm({Y:"div",D:"ytp-menuitem",V:{role:"menuitemradio",tabindex:"0"},W:[{Y:"div",D:"ytp-menuitem-label",At:"On"}]},-1);g.k(this,this.L);this.j.Dv(this.L,!0);this.G(this.L.element, "click",function(){o72(Y,!0)}); this.T=new g.Cm({Y:"div",D:"ytp-menuitem",V:{role:"menuitemradio",tabindex:"0"},W:[{Y:"div",D:"ytp-menuitem-label",At:"Off"}]},-2);g.k(this,this.T);this.j.Dv(this.T,!0);this.G(this.T.element,"click",function(){o72(Y,!1)}); this.zk(g.yn(v,this.Hp))}; o72=function(v,J){v.publish("settingChange",v.setting+"Override",!J);v.Mi.q5()}; Ks=function(v,J){g.d1.call(this,v,void 0,"Options");var G=this;this.BD={};for(var K=0;K=0);if(!(J<0||J===v.L)){v.L=J;J=243*v.scale;var G=141*v.scale,K=qRw(v.X,v.L,J);Stt(v.bg,K,J,G,!0);v.Ti.start()}}; SJF=function(v){var J=v.T;v.type===3&&v.dh.stop();v.api.removeEventListener("appresize",v.oY);v.U||J.setAttribute("title",v.Z);v.Z="";v.T=null;v.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});v.wrapper.style.width=""}; ZKF=function(v){g.F.call(this,{Y:"button",n7:["ytp-watch-later-button","ytp-button"],V:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.Of(v.B()))},W:[{Y:"div",D:"ytp-watch-later-icon",At:"{{icon}}"},{Y:"div",D:"ytp-watch-later-title",At:"Watch Later"}]});this.S=v;this.icon=null;this.visible=this.isRequestPending=this.T=!1;kd8(v);v.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.G(v,"videoplayerreset",this.onReset);this.G(v,"appresize", this.iY);this.G(v,"videodatachange",this.iY);this.G(v,"presentingplayerstatechange",this.iY);this.iY();v=this.S.B();var J=g.fq("yt-player-watch-later-pending");v.L&&J?(UVm(),fnB(this)):this.De(2);g.E3(this.element,"ytp-show-watch-later-title",g.Of(v));Lm(this.S,this.element,this)}; uh2=function(v){var J=v.S.getPlayerSize(),G=v.S.B(),K=v.S.getVideoData(),V=g.Of(G)&&g.SI(v.S)&&g.H(v.S.getPlayerStateObject(),128),Y=G.Z;return G.G4&&J.width>=240&&!K.isAd()&&K.G4&&!V&&!g.GT(K)&&!v.S.isEmbedsShortsMode()&&!Y}; g7j=function(v,J){oWs(g.HL(v.S.B()),"wl_button",function(){UVm({videoId:J});window.location.reload()})}; fnB=function(v){if(!v.isRequestPending){v.isRequestPending=!0;v.De(3);var J=v.S.getVideoData();J=v.T?J.removeFromWatchLaterCommand:J.addToWatchLaterCommand;var G=v.S.E4(),K=v.T?function(){v.T=!1;v.isRequestPending=!1;v.De(2);v.S.B().K&&v.S.lw("WATCH_LATER_VIDEO_REMOVED")}:function(){v.T=!0; v.isRequestPending=!1;v.De(1);v.S.B().X&&v.S.p5(v.element);v.S.B().K&&v.S.lw("WATCH_LATER_VIDEO_ADDED")}; Q_(G,J).then(K,function(){v.isRequestPending=!1;v.De(4,"An error has occurred. Please try again later.");v.S.B().K&&v.S.lw("WATCH_LATER_ERROR","An error has occurred. Please try again later.")})}}; XPw=function(v,J){if(J!==v.icon){switch(J){case 3:var G=eH();break;case 1:G=nR();break;case 2:G={Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{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:G={Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"path", Xu:!0,V:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}v.updateValue("icon",G);v.icon=J}}; g.RO=function(){g.S6.apply(this,arguments);this.Cf=(this.q_=g.Of(this.api.B()))&&(this.api.B().X||$L()||jW());this.Iy=48;this.Bh=69;this.u6=this.h3=null;this.xz=[];this.K9=this.Ww=this.DT=this.PQ=this.U1=null;this.mV=[];this.contextMenu=this.h0=this.overflowButton=this.Bw=this.DI=this.searchButton=this.copyLinkButton=this.shareButton=this.Eq=this.Sf=this.title=this.channelAvatar=this.Ee=this.tooltip=null;this.nk=!1;this.kq=this.m5=this.F_=this.j5=null;this.bG=this.xa=this.w3=!1}; kgX=function(v){var J=v.api.B(),G=g.H(v.api.getPlayerStateObject(),128);return J.L&&G&&!v.api.isFullscreen()}; cTs=function(v){if(v.Ls()&&!v.api.isEmbedsShortsMode()&&v.Bw){var J=v.api.C("web_player_hide_overflow_button_if_empty_menu");!v.Eq||J&&!uh2(v.Eq)||ojm(v.Bw,v.Eq);!v.shareButton||J&&!txB(v.shareButton)||ojm(v.Bw,v.shareButton);!v.copyLinkButton||J&&!nWs(v.copyLinkButton)||ojm(v.Bw,v.copyLinkButton)}else{if(v.Bw){J=v.Bw;for(var G=g.n(J.actionButtons),K=G.next();!K.done;K=G.next())K.value.detach();J.actionButtons=[]}v.searchButton&&!g.BM(v.Sf.element,v.searchButton.element)&&v.searchButton.vH(v.Sf.element); v.Eq&&!g.BM(v.Sf.element,v.Eq.element)&&v.Eq.vH(v.Sf.element);v.shareButton&&!g.BM(v.Sf.element,v.shareButton.element)&&v.shareButton.vH(v.Sf.element);v.copyLinkButton&&!g.BM(v.Sf.element,v.copyLinkButton.element)&&v.copyLinkButton.vH(v.Sf.element)}}; N$m=function(v,J,G){J=G?J.lastElementChild:J.firstElementChild;for(var K=null;J;){if(Bj(J,"display")!=="none"&&J.getAttribute("aria-hidden")!=="true"){var V=void 0;J.tabIndex>=0?V=J:V=N$m(v,J,G);V&&(K?G?V.tabIndex>K.tabIndex&&(K=V):V.tabIndexK/1E3+1)return{msg:"in-the-past"};if(Y.isLivePlayback&&!isFinite(K))return{msg:"live-infinite"};(K=J.LY())&&K.isView()&&(K=K.mediaElement);if(K&&K.TO().length>12&&g.nh(V))return{msg:"played-ranges"};if(!V.Z)return null;if(!r)return{msg:"no-pvd-formats"};if(!V.Z.T||!r.T)return{msg:"non-dash"};K=r.videoInfos[0];var E=V.Z.videoInfos[0];v.K&&ov(Y)&&(K=J.jT(),E= G.jT());if(!K||!E)return{msg:"no-video-info"};if(v.Z&&(Q9(K)||Q9(E)))return{msg:"av1"};J=v.T&&Y.N5()&&Ij();if(E.containerType!==K.containerType)if(J)Y.uw("sgap",{ierr:"container"});else return{msg:"container"};if(v.X&&!J&&(E.aY!==K.aY||E.aY===""||K.aY===""))return{msg:"codec"};if(v.L&&E.video&&K.video&&Math.abs(E.video.width/E.video.height-K.video.width/K.video.height)>.01)return{msg:"ratio"};if(g.nh(Y)&&g.nh(V))return{msg:"content-protection"};r=r.T[0];V=V.Z.T[0];G=r.audio;var e=V.audio;if(G.sampleRate!== e.sampleRate&&!g.x4)if(J)Y.uw("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:r.itag,cr:G.sampleRate,ni:V.itag,nr:e.sampleRate};return(G.numChannels||2)!==(e.numChannels||2)?{msg:"channel-count"}:v.J&&Y.N5()&&K.video.fps!==E.video.fps?{msg:"fps"}:null}; HKw=function(v,J,G){var K=v.getVideoData(),V=J.getVideoData();if(!K.B().supportsGaplessShorts())return{nq:"env"};if(G.j){if(K.Qu&&!K.isAd()||V.Qu&&!V.isAd())return{nq:"autoplay"}}else if(K.Qu||V.Qu)return{nq:"autoplay"};if(!K.U)return{nq:"client"};if(!v.Rf())return{nq:"no-empty"};v=FAm(G,v,J,Infinity);return v!=null?{nq:v.msg}:null}; ps=function(v){g.X.call(this);this.app=v;this.J=this.L=this.X=this.T=null;this.Z=1;this.events=new g.Zs(this);this.events.G(this.app.kB,g.YM("gaplessshortslooprange"),this.U);g.k(this,this.events)}; MLX=function(){this.L=this.j=this.Z=this.K=this.J=this.X=this.T=!1}; Qaj=function(v){var J=new MLX;J.T=v.C("h5_gapless_support_types_diff");J.J=v.C("h5_gapless_error_on_fps_diff");J.K=v.C("html5_gapless_use_format_info_fix");J.Z=v.C("html5_gapless_disable_on_av1")&&!v.C("html5_gapless_enable_on_av1");J.X=v.C("html5_gapless_check_codec_diff_strictly");J.j=v.C("html5_gapless_on_ad_autoplay");J.L=v.C("html5_gapless_disable_diff_aspect_radio");return J}; g.Ls=function(v,J,G,K){K=K===void 0?!1:K;bS.call(this);this.mediaElement=v;this.start=J;this.end=G;this.T=K}; WAX=function(v,J,G,K,V,Y){Y=Y===void 0?0:Y;g.X.call(this);var r=this;this.policy=v;this.T=J;this.X=G;this.GS=V;this.J=Y;this.L=this.Z=null;this.currentVideoDuration=this.j=-1;this.K=!1;this.JN=new Ct;this.k6=K-J.B$()*1E3;this.JN.then(void 0,function(){}); this.timeout=new g.Qq(function(){r.qI("timeout")},1E4); g.k(this,this.timeout);this.U=isFinite(K)||this.GS.B().experiments.OB("html5_pseudogapless_shorts")&&ov(J.getVideoData());this.status={status:0,error:null}}; jrs=function(v){var J,G,K,V,Y,r,E,e,P,D;return g.m(function(t){if(t.T==1){if(v.Sl())return t.return(Promise.reject(Error(v.status.error||"disposed")));v.timeout.start();J=g.ys.PX();return g.U(t,v.JN,2)}g.ys.vl("gtfta",J);G=v.T.LY();if(G.isEnded())return v.qI("ended_in_finishTransition"),t.return(Promise.reject(Error(v.status.error||"")));if(!v.L||!nt(v.L))return v.qI("next_mse_closed"),t.return(Promise.reject(Error(v.status.error||"")));if(v.X.u2()!==v.L)return v.qI("next_mse_mismatch"),t.return(Promise.reject(Error(v.status.error|| "")));K=CJw(v);V=K.X7;Y=K.xs;r=K.bI;v.T.xP(!1,!0);E=bKF(G,V,r,!v.X.getVideoData().isAd());v.X.setMediaElement(E);(e=v.T.b3())&&v.X.vL(e.T6,e.Q4);v.U&&(v.X.seekTo(v.X.getCurrentTime()+.001,{gT:!0,V2:3,nK:"gapless_pseudo"}),E.play(),ma());P=G.u9();P.cpn=v.T.getVideoData().clientPlaybackNonce;P.st=""+V;P.et=""+r;v.X.uw("gapless",P);v.T.uw("gaplessTo",{cpn:v.X.getVideoData().clientPlaybackNonce});D=v.T.getPlayerType()===v.X.getPlayerType();v.T.RX(Y,!0,!1,D,v.X.getVideoData().clientPlaybackNonce);v.X.RX(v.X.getCurrentTime(), !0,!0,D,v.T.getVideoData().clientPlaybackNonce);g.dQ(function(){!v.X.getVideoData().Ze&&v.X.getPlayerState().isOrWillBePlaying()&&v.X.f1()}); wL(v,6);v.dispose();return t.return(Promise.resolve())})}; JHw=function(v){if(v.X.getVideoData().Z){var J=v.GS.B().C("html5_gapless_suspend_next_loader")&&v.J===1;v.X.Fp(v.L,J,ixw(v));wL(v,3);$sm(v);var G=vhX(v);J=G.MG;G=G.jb;J.subscribe("updateend",v.Fv,v);G.subscribe("updateend",v.Fv,v);v.Fv(J);v.Fv(G)}}; $sm=function(v){v.T.unsubscribe("internalvideodatachange",v.aE,v);v.X.unsubscribe("internalvideodatachange",v.aE,v);v.GS.B().C("html5_gapless_use_format_info_fix")&&(v.T.unsubscribe("internalvideoformatchange",v.aE,v),v.X.unsubscribe("internalvideoformatchange",v.aE,v));v.T.unsubscribe("mediasourceattached",v.aE,v);v.X.unsubscribe("statechange",v.TC,v)}; bKF=function(v,J,G,K){v=v.isView()?v.mediaElement:v;return new g.Ls(v,J,G,K)}; wL=function(v,J){J<=v.status.status||(v.status={status:J,error:null},J===5&&v.JN.resolve())}; ixw=function(v){return v.GS.B().C("html5_gapless_no_clear_buffer_timeline")&&v.J===1&&YJ(v.T.getVideoData())}; CJw=function(v){var J=v.T.LY();J=J.isView()?J.start:0;var G=v.T.getVideoData().isLivePlayback?Infinity:v.T.ZL(!0);G=Math.min(v.k6/1E3,G)+J;var K=v.U?100:0;v=G-v.X.Qk()+K;return{K$:J,X7:v,xs:G,bI:Infinity}}; vhX=function(v){return{MG:v.Z.T.t7,jb:v.Z.X.t7}}; O7=function(v){g.X.call(this);var J=this;this.app=v;this.J=this.X=this.T=null;this.U=!1;this.Z=this.L=null;this.K=Qaj(this.app.B());this.j=function(){g.dQ(function(){Git(J)})}}; ohX=function(v,J,G,K,V){K=K===void 0?0:K;V=V===void 0?0:V;v.Rf()||U7(v);v.L=new Ct;v.T=J;var Y=G,r=V===0;r=r===void 0?!0:r;var E=v.app.zi(),e=E.getVideoData().isLivePlayback?Infinity:E.ZL(!0)*1E3;Y>e&&(Y=e-200,v.U=!0);r&&E.getCurrentTime()>=Y/1E3?v.j():(v.X=E,r&&(r=Y,Y=v.X,v.app.kB.addEventListener(g.VG("vqueued"),v.j),r=isFinite(r)||r/1E3>Y.getDuration()?r:0x8000000000000,v.J=new g.o8(r,0x8000000000000,{namespace:"vqueued"}),Y.addCueRange(v.J)));r=K/=1E3;Y=J.getVideoData().T;K&&Y&&v.X&&(E=K,e=0, J.getVideoData().isLivePlayback&&(r=Math.min(G/1E3,v.X.ZL(!0)),e=Math.max(0,r-v.X.getCurrentTime()),E=Math.min(K,J.ZL()+e)),r=JZw(Y,E)||K,r!==K&&v.T.uw("qvaln",{st:K,at:r,rm:e,ct:E}));J=r;K=v.T;K.getVideoData().Vy=!0;K.getVideoData().U=!0;K.pH(!0);Y={};v.X&&(Y=v.X.KF(),r=v.X.getVideoData().clientPlaybackNonce,Y={crt:(Y*1E3).toFixed(),cpn:r});K.uw("queued",Y);J!==0&&K.seekTo(J+.01,{gT:!0,V2:3,nK:"videoqueuer_queued"});v.Z=new WAX(v.K,v.app.zi(),v.T,G,v.app,V);G=v.Z;G.status.status!==Infinity&&(wL(G, 1),G.T.subscribe("internalvideodatachange",G.aE,G),G.X.subscribe("internalvideodatachange",G.aE,G),G.GS.B().C("html5_gapless_use_format_info_fix")&&(G.T.subscribe("internalvideoformatchange",G.aE,G),G.X.subscribe("internalvideoformatchange",G.aE,G)),G.T.subscribe("mediasourceattached",G.aE,G),G.X.subscribe("statechange",G.TC,G),G.T.subscribe("newelementrequired",G.kY,G),G.aE());return v.L}; Git=function(v){var J,G,K,V,Y,r,E,e,P;g.m(function(D){switch(D.T){case 1:if(v.Sl()||!v.L||!v.T)return D.return();v.U&&v.app.zi().Z_(!0,!1);G=v.app.B().C("html5_force_csdai_gapful_transition")&&((J=v.app.zi())==null?void 0:J.getVideoData().isDaiEnabled());K=null;if(!v.Z||G){D.sB(2);break}g.nf(D,3);return g.U(D,jrs(v.Z),5);case 5:g.Rm(D,2);break;case 3:K=V=g.lj(D);case 2:if(!v.T)return D.return();g.ys.MO("vqsp",function(){v.app.cn(v.T)}); if(!v.T)return D.return();Y=v.T.LY();v.app.B().C("html5_gapless_seek_on_negative_time")&&Y&&Y.getCurrentTime()<-.01&&v.T.seekTo(0);g.ys.MO("vqpv",function(){v.app.playVideo()}); if(K||G)v.T?(r=K?K.message:"forced",(E=v.X)==null||E.uw("gapfulfbk",{r:r}),v.T.ea(r)):(e=v.X)==null||e.uw("gapsp",{});P=v.L;U7(v);P&&P.resolve();return D.return(Promise.resolve())}})}; U7=function(v,J){J=J===void 0?!1:J;if(v.X){if(v.J){var G=v.X;v.app.kB.removeEventListener(g.VG("vqueued"),v.j);G.removeCueRange(v.J)}v.X=null;v.J=null}v.Z&&(v.Z.status.status!==6&&(G=v.Z,G.status.status!==Infinity&&G.J!==1&&G.qI("Canceled")),v.Z=null);v.L=null;v.T&&!J&&v.T!==v.app.Qn()&&v.T!==v.app.zi()&&v.T.dispose();v.T&&J&&v.T.vE();v.T=null;v.U=!1}; KBt=function(v){var J;return((J=v.Z)==null?void 0:J.currentVideoDuration)||-1}; Vqt=function(v,J,G){if(v.Rf())return"qie";if(v.T==null||v.T.Sl()||v.T.getVideoData()==null)return"qpd";if(J.videoId!==v.T.Ki())return"vinm";if(KBt(v)<=0)return"ivd";if(G!==1)return"upt";if((G=v.Z)==null)v=void 0;else if(G.getStatus().status!==5)v="niss";else if(FAm(G.policy,G.T,G.X,G.k6)!=null)v="pge";else{J=vhX(G);v=J.MG;var K=J.jb;J=g.DI(G.GS.B().experiments,"html5_shorts_gapless_next_buffer_in_seconds");G=G.j+J;K=rj(K.h7(),G);v=rj(v.h7(),G);v=!(J>0)||K&&v?null:"neb"}return v!=null?v:null}; YWm=function(){g.qU.call(this);var v=this;this.fullscreen=0;this.L=this.Z=this.pictureInPicture=this.T=this.X=this.inline=!1;this.J=function(){v.ML()}; KIr(this.J);this.j=this.getVisibilityState(this.MI(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.hh(),this.oS(),this.g9(),this.EA())}; J5=function(v){return!(v.isMinimized()||v.isInline()||v.isBackground()||v.hh()||v.oS()||v.g9()||v.EA())}; g.xF=function(v){g.X.call(this);this.EB=v;this.videoData=this.playerState=null}; g.m7=function(v,J){g.X.call(this);this.Z={};this.tV=this.J=null;this.X=this.T=new g.xF(v);this.L=J}; PGj=function(v){var J=v.experiments,G=J.OB.bind(J);rHw=G("html5_use_async_stopVideo");qW8=G("html5_pause_for_async_stopVideo");Eht=G("html5_not_reset_media_source");G("html5_listen_for_audio_output_changed")&&(Odr=!0);Fj=G("html5_not_reset_media_source");exj=G("html5_not_reset_media_source");tB=G("html5_retain_source_buffer_appends_for_debugging");Cxt=G("web_watch_pip");G("html5_mediastream_applies_timestamp_offset")&&(sc=!0);var K=g.DI(J,"html5_cobalt_override_quic");K&&YS("QUIC",+(K>0));(K=g.DI(J, "html5_cobalt_audio_write_ahead_ms"))&&YS("Media.AudioWriteDurationLocal",K);(K=G("html5_cobalt_enable_decode_to_texture"))&&YS("Media.PlayerConfiguration.DecodeToTexturePreferred",K?1:0);(v.GG()||G("html5_log_cpu_info"))&&J5X();Error.stackTraceLimit=50;var V=g.DI(J,"html5_idle_rate_limit_ms");V&&Object.defineProperty(window,"requestIdleCallback",{value:function(Y){return window.setTimeout(Y,V)}}); xHt(v.J);Oh=G("html5_use_ump_request_slicer");l1s=G("html5_record_now");G("html5_disable_streaming_xhr")&&(ih=!1);G("html5_byterate_constraints")&&(YV=!0);G("html5_use_non_active_broadcast_for_post_live")&&(Ww=!0);G("html5_sunset_aac_high_codec_family")&&(a$["141"]="a");G("html5_enable_encrypted_av1")&&(M9=!0);Li8(g.DI(v.experiments,"html5_sticky_duration_mos"))}; DsB=function(v){return v.slice(12).replace(/_[a-z]/g,function(J){return J.toUpperCase().replace("_","")}).replace("Dot",".")}; tqf=function(v){var J={},G;for(G in v.experiments.flags)if(G.startsWith("cobalt_h5vcc")){var K=DsB(G),V=g.DI(v.experiments,G);K&&V&&(J[K]=YS(K,V))}return J}; St=function(v,J,G,K,V){V=V===void 0?[]:V;g.X.call(this);this.EB=v;this.DZ=J;this.L=G;this.segments=V;this.T=void 0;this.X=new Map;V.length&&(this.T=V[0])}; BYL=function(v){if(!(v.segments.length<2)){var J=v.segments.shift();if(J){var G=J.T,K=[];if(G.size){G=g.n(G.values());for(var V=G.next();!V.done;V=G.next()){V=g.n(V.value);for(var Y=V.next();!Y.done;Y=V.next()){Y=Y.value;for(var r=g.n(Y.segments),E=r.next();!E.done;E=r.next())(E=fs(E.value))&&K.push(E);Y.removeAll()}}}(G=fs(J))&&K.push(G);K=g.n(K);for(G=K.next();!G.done;G=K.next())v.X.delete(G.value);J.dispose()}}}; Za=function(v,J,G,K){if(!v.T||J>G)return!1;J=new St(v.EB,J,G,v.T,K);K=g.n(K);for(G=K.next();!G.done;G=K.next()){G=G.value;var V=fs(G);V&&V!==fs(v.T)&&v.X.set(V,[G])}v=v.T;v.T.has(J.Ci())?v.T.get(J.Ci()).push(J):v.T.set(J.Ci(),[J]);return!0}; X$=function(v,J){return v.X.get(J)}; Ijw=function(v,J,G){v.X.set(J,G)}; uH=function(v,J,G,K,V,Y){return new hxm(G,G+(K||0),!K,J,v,V,Y)}; hxm=function(v,J,G,K,V,Y,r){g.X.call(this);this.DZ=v;this.Z=J;this.X=G;this.type=K;this.L=V;this.videoData=Y;this.E7=r;this.T=new Map;T5(Y)}; fs=function(v){return v.videoData.clientPlaybackNonce}; zxU=function(v){if(v.T.size)for(var J=g.n(v.T.values()),G=J.next();!G.done;G=J.next()){G=g.n(G.value);for(var K=G.next();!K.done;K=G.next())K.value.dispose()}v.T.clear()}; nh8=function(v){this.end=this.start=v}; g.gL=function(){this.T=new Map;this.Z=new Map;this.X=new Map}; g.XW=function(v,J,G,K){g.X.call(this);var V=this;this.api=v;this.EB=J;this.playback=G;this.app=K;this.YB=new g.gL;this.X=new Map;this.j=[];this.J=[];this.Z=new Map;this.a$=new Map;this.K=new Map;this.xB=null;this.OR=NaN;this.g_=this.R$=null;this.UR=new g.Qq(function(){dsB(V,V.OR,V.R$||void 0)}); this.events=new g.Zs(this);this.o$=15E3;this.Mr=new g.Qq(function(){V.qr=!0;V.playback.DS(V.o$);srs(V);if(V.playback.getVideoData().i9()){var Y;V.H$({togab:(Y=V.Ti)==null?void 0:Y.identifier})}V.g6(!1)},this.o$); this.qr=!1;this.U=new Map;this.Nr=[];this.Ti=null;this.d_=new Set;this.jl=[];this.Vn=[];this.qj=[];this.BO=[];this.T=void 0;this.Ze=0;this.RY=!0;this.N=!1;this.Gi=[];this.WH=new Set;this.Xm=new Set;this.Vy=new Set;this.xR=0;this.BH=new Set;this.KK=0;this.V5=this.yy=!1;this.XO=this.L="";this.dh=null;this.logger=new g.rZ("dai");this.cO={UOt:function(){return V.X}, h7B:function(){return V.j}, B2b:function(){return V.Z}, wz:function(Y){V.onCueRangeEnter(V.X.get(Y))}, kc4:function(Y){V.onCueRangeExit(V.X.get(Y))}, NgB:function(Y,r){V.X.set(Y,r)}, Ezt:function(Y){V.XO=Y}, AJ:function(){return V.AJ()}, I5B:function(Y){return V.K.get(Y)}, PO7:function(){return V.dh}}; this.playback.getPlayerType();this.playback.e$(this);this.wh=this.EB.GG();g.k(this,this.UR);g.k(this,this.events);g.k(this,this.Mr);this.events.G(this.api,g.VG("serverstitchedcuerange"),this.onCueRangeEnter);this.events.G(this.api,g.YM("serverstitchedcuerange"),this.onCueRangeExit)}; pe8=function(v,J,G,K,V,Y,r,E,e){if(v.EB.C("html5_ignore_ads_after_noadresponse")&&e&&v.d_.has(e))return kF(v,{reason:"addafternoad",cueid:e}),"";e=RxB(v,Y,Y+V);v.qr&&v.H$({adaftto:1});G||v.H$({missadcon:1,enter:Y,len:V,aid:E});v.oY&&!v.oY.qq&&(v.oY.qq=E);v.V5&&v.H$({adfbk:1,enter:Y,len:V,aid:E});var P=v.playback;r=r===void 0?Y+V:r;Y===r&&!V&&v.EB.C("html5_allow_zero_duration_ads_on_timeline")&&v.H$({attl0d:1});Y>r&&kF(v,{reason:"enterTime_greater_than_return",DZ:Y,dB:r});var D=P.ju()*1E3;YP&&kF(v,{reason:"parent_return_greater_than_content_duration",dB:r,G2e:P});P=null;D=g.YY(v.J,{dB:Y},function(t,B){return t.dB-B.dB}); D>=0&&(P=v.J[D],P.dB>Y&&lj2(v,J.video_id||"",Y,r,P));if(e&&P)for(D=0;D.5&&v.H$({ttdtb:1,delta:r,cpn:V.cpn,enter:J.adCpn,exit:G.adCpn,seek:K,skip:Y});v.api.C("html5_ssdai_enable_media_end_cue_range")&&v.api.kh();if(J.isAd&&G.isAd){V=!!Y;if(J.adCpn&&G.adCpn){var E=v.Z.get(J.adCpn);var e=v.Z.get(G.adCpn)}V?v.H$({igtransskip:1,enter:J.adCpn,exit:G.adCpn,seek:K,skip:Y}):Ab(v,e,E,G.EJ,J.EJ,K,V)}else if(!J.isAd&&G.isAd){v.XO=V.cpn;v.api.publish("serverstitchedvideochange");E=Nn(v,"a2c");v.H$(E); v.xR=0;if(E=G.KY)v.Ze=E.end;var P;G.adCpn&&(P=v.Z.get(G.adCpn));P&&v.playback.cL(P,V,G.EJ,J.EJ,K,!!Y)}else if(J.isAd&&!G.isAd){var D;J.adCpn&&(D=v.Z.get(J.adCpn));D&&(v.Ze=0,v.XO=D.cpn,aO(v,D),P=Nn(v,"c2a",D),v.H$(P),v.xR=1,v.playback.cL(V,D,G.EJ,J.EJ,K,!!Y))}}; HU=function(v,J,G){G=G===void 0?0:G;var K=g.YY(v.J,{DZ:(J+G)*1E3},function(E,e){return E.DZ-e.DZ}); K=K<0?(K+2)*-1:K;if(K>=0)for(var V=J*1E3,Y=K;Y<=K+1&&Y=r.DZ-G*1E3&&V<=r.dB+G*1E3)return{l2:r,O0:J}}return{l2:void 0,O0:J}}; yHw=function(v,J){var G="";(J=LB8(v,J))&&(G=J.getId());return G?v.Z.get(G):void 0}; LB8=function(v,J){if(v.XO){var G=v.X.get(v.XO);if(G&&G.start-200<=J&&G.end+200>=J)return G}v=g.n(v.X.values());for(G=v.next();!G.done;G=v.next())if(G=G.value,G.start<=J&&G.end>=J)return G}; dsB=function(v,J,G){var K=v.g_||v.app.zi().getPlayerState();Mn(v,!0);v.playback.seekTo(J,G);v=v.app.zi();J=v.getPlayerState();K.isOrWillBePlaying()&&!J.isOrWillBePlaying()?v.playVideo():K.isPaused()&&!J.isPaused()&&v.pauseVideo()}; Mn=function(v,J){v.OR=NaN;v.R$=null;v.UR.stop();v.xB&&J&&v.xB.s_();v.g_=null;v.xB=null}; we8=function(v){var J=J===void 0?-1:J;var G=G===void 0?Infinity:G;for(var K=[],V=g.n(v.J),Y=V.next();!Y.done;Y=V.next())Y=Y.value,(Y.DZG)&&K.push(Y);v.J=K;K=g.n(v.X.values());for(V=K.next();!V.done;V=K.next())V=V.value,V.start>=J&&V.end<=G&&(v.playback.removeCueRange(V),v.X.delete(V.getId()),v.H$({rmAdCR:1}));K=HU(v,J/1E3);J=K.l2;K=K.O0;if(J&&(K=K*1E3-J.DZ,V=J.DZ+K,J.durationMs=K,J.dB=V,K=v.X.get(J.cpn))){V=g.n(v.j);for(Y=V.next();!Y.done;Y=V.next())Y=Y.value,Y.start===K.end?Y.start=J.DZ+ J.durationMs:Y.end===K.start&&(Y.end=J.DZ);K.start=J.DZ;K.end=J.DZ+J.durationMs}if(J=HU(v,G/1E3).l2){var r;K="playback_timelinePlaybackId_"+J.E1+"_video_id_"+((r=J.videoData)==null?void 0:r.videoId)+"_durationMs_"+J.durationMs+"_enterTimeMs_"+J.DZ+"_parentReturnTimeMs_"+J.dB;v.nZ("Invalid_clearEndTimeMs_"+G+"_that_falls_during_"+K+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; OxX=function(v){v.YB.clearAll();v.X.clear();v.j=[];v.J=[];v.Z.clear();v.a$.clear();v.K.clear();v.U.clear();v.Nr=[];v.Ti=null;v.d_.clear();v.jl=[];v.Vn=[];v.qj=[];v.BO=[];v.Gi=[];v.WH.clear();v.Xm.clear();v.Vy.clear();v.BH.clear();v.qr=!1;v.T=void 0;v.Ze=0;v.RY=!0;v.N=!1;v.xR=0;v.KK=0;v.yy=!1;v.V5=!1;v.L="";v.Mr.isActive()&&cU(v)}; xs2=function(v,J,G,K,V,Y){if(!v.V5)if(g.UsU(v,G))v.H$({gdu:"undec",seg:G,itag:V});else if(J=Qs(v,J,G,K,Y),!(v.playback.getVideoData().i9()&&(J==null?0:J.c_)))return J}; Qs=function(v,J,G,K,V){var Y=v.U.get(G);if(!Y){if(Y=msF(v,J))return Y;J=v.R5(G-1,K!=null?K:2);if(V)return v.H$({misscue:V,sq:G,type:K,prevsstate:J==null?void 0:J.C4,prevrecord:v.U.has(G-1)}),v.U.get(G-1);if((J==null?void 0:J.C4)===2)return v.H$({adnf:1,sq:G,type:K,prevrecord:v.U.has(G-1)}),v.U.get(G-1)}return Y}; msF=function(v,J){J+=v.WC();if(v.playback.getVideoData().i9())a:{var G=1;G=G===void 0?0:G;var K=J*1E3;v=g.n(v.J);for(var V=v.next();!V.done;V=v.next()){V=V.value;var Y=V.Oj?V.Oj*1E3:V.DZ;if(K>=V.DZ-G*1E3&&K<=Y+V.durationMs+G*1E3){K={l2:V,O0:J};break a}}K={l2:void 0,O0:J}}else K=HU(v,J),((G=K)==null?0:G.l2)||(K=HU(v,J,1));var r;return(r=K)==null?void 0:r.l2}; SW2=function(v,J){J=J===void 0?"":J;var G=rU(J)||void 0;if(!J||!G){var K;v.H$({adcfg:(K=J)==null?void 0:K.length,dcfg:G==null?void 0:G.length})}return G}; fj2=function(v){if(v.Gi.length)for(var J=g.n(v.Gi),G=J.next();!G.done;G=J.next())v.onCueRangeExit(G.value);J=g.n(v.X.values());for(G=J.next();!G.done;G=J.next())v.playback.removeCueRange(G.value);J=g.n(v.j);for(G=J.next();!G.done;G=J.next())v.playback.removeCueRange(G.value);v.X.clear();v.j=[];v.YB.clearAll();v.T||(v.RY=!0)}; Ab=function(v,J,G,K,V,Y,r){if(J&&G){v.XO=G.cpn;aO(v,G);var E=Nn(v,"a2a",G);v.H$(E);v.xR++;v.playback.cL(J,G,K||0,V||0,!!Y,!!r)}else v.H$({misspbkonadtrans:1,enter:(G==null?void 0:G.cpn)||"",exit:(J==null?void 0:J.cpn)||"",seek:Y,skip:r})}; uOs=function(v,J,G,K){if(K)for(K=0;KG){var Y=V.end;V.end=J;ZxB(v,G,Y)}else if(V.start>=J&&V.startG)V.start=G;else if(V.end>J&&V.end<=G&&V.start=J&&V.end<=G){v.playback.removeCueRange(V);if(v.Gi.includes(V))v.onCueRangeExit(V);v.j.splice(K,1);continue}K++}else ZxB(v,J,G)}; ZxB=function(v,J,G){J=v.EH(J,G);G=!0;g.e5(v.j,J,function(r,E){return r.start-E.start}); for(var K=0;K0){var V=v.j[K],Y=v.j[K-1];if(Math.round(Y.end/1E3)>=Math.round(V.start/1E3)){Y.end=V.end;V!==J?v.playback.removeCueRange(V):G=!1;v.j.splice(K,1);continue}}K++}if(G)for(v.playback.addCueRange(J),J=v.playback.dj("serverstitchedcuerange",36E5),J=g.n(J),G=J.next();!G.done;G=J.next())v.X.delete(G.value.getId())}; WU=function(v,J,G){if(G===void 0||!G){G=g.n(v.Nr);for(var K=G.next();!K.done;K=G.next()){K=K.value;if(J>=K.start&&J<=K.end)return;if(J===K.end+1){K.end+=1;return}}v.Nr.push(new nh8(J))}}; g.UsU=function(v,J){v=g.n(v.Nr);for(var G=v.next();!G.done;G=v.next())if(G=G.value,J>=G.start&&J<=G.end)return!0;return!1}; Cs=function(v,J,G){var K;if(K=v.playback.getVideoData().i9()||v.EB.C("html5_ssdai_extent_last_unfinished_ad_cue_range"))K=(K=v.Z.get(J))&&K.Rm?(v=v.K.get(K==null?void 0:K.Rm))&&v.slice(-1)[0].cpn===J:!1;return K&&G===2?1E3:0}; lj2=function(v,J,G,K,V){var Y;J={reason:"overlapping_playbacks",JiH:J,DZ:G,dB:K,JNw:V.E1,CX4:((Y=V.videoData)==null?void 0:Y.videoId)||"",SFe:V.durationMs,FZe:V.DZ,j8B:V.dB};kF(v,J)}; kF=function(v,J,G){v.playback.m0(J,G)}; ghF=function(v,J){var G=[];v=v.K.get(J);if(!v)return[];v=g.n(v);for(J=v.next();!J.done;J=v.next())J=J.value,J.cpn&&G.push(J.cpn);return G}; XeB=function(v,J,G){var K=0;v=v.K.get(G);if(!v)return-1;v=g.n(v);for(G=v.next();!G.done;G=v.next()){if(G.value.cpn===J)return K;K++}return-1}; kim=function(v,J){var G=0;v=v.K.get(J);if(!v)return 0;v=g.n(v);for(J=v.next();!J.done;J=v.next())J=J.value,J.durationMs!==0&&J.dB!==J.DZ&&G++;return G}; cHB=function(v,J,G){var K=!1;if(G&&(G=v.K.get(G))){G=g.n(G);for(var V=G.next();!V.done;V=G.next())V=V.value,V.durationMs!==0&&V.dB!==V.DZ&&(V=V.cpn,J===V&&(K=!0),K&&!v.Xm.has(V)&&(v.H$({decoratedAd:V}),v.Xm.add(V)))}}; srs=function(v){v.wh&&v.H$({adf:"0_"+((new Date).getTime()/1E3-v.KK)+"_isTimeout_"+v.qr})}; RxB=function(v,J,G){if(v.jl.length)for(var K=g.n(v.jl),V=K.next(),Y={};!V.done;Y={tT:void 0},V=K.next()){Y.tT=V.value;V=Y.tT.startSecs*1E3;var r=Y.tT.ON*1E3+V;if(J>V&&JV&&G0&&K>J*1E3+v.bs7)&&(K=bxU(v,G))){J=!1;G=void 0;K=g.n(K.segments);for(V=K.next();!V.done;V=K.next()){V=V.value;if(J){G=V;break}fs(V)===v.XO&&(J=!0)}K=void 0;if(G)K=fs(G);else if(J){var Y;K=(Y=v.timeline.T)==null?void 0:fs(Y)}if(K)v.finishSegmentByCpn(v.XO,K,2,void 0);else{var r;v.api.uw("ssap",{mfnc:1,mfncc:(r=v.timeline.T)== null?void 0:fs(r)})}}}}; Qr2=function(v){return v.api.C("html5_force_ssap_gapful_switch")||v.api.C("html5_ssap_enable_legacy_browser_logic")&&!Ij()}; vkm=function(v,J,G,K){v.ws.set(J,K);iZj(v,J,G);$pj(v,G)}; gm=function(v,J){v=X$(v.timeline,J);return(v==null?0:v.length)?v[0].Ci():0}; XI=function(v,J){var G=G===void 0?!1:G;var K=v.timeline.T;if(!K)return{clipId:"",Z7:0};var V=J8B(v,J,G);if(V)return{clipId:fs(V)||"",Z7:V.Ci()};v.api.uw("mci",{cs:fs(K),mt:J,tl:Qi(v),invt:!!G});return{clipId:"",Z7:0}}; zu=function(v){var J=v.timeline.T;if(!J)return 0;v=0;if(J.T.size===0)return(J.wp()-J.Ci())/1E3;J=J.T.values();J=g.n(J);for(var G=J.next();!G.done;G=J.next()){G=g.n(G.value);for(var K=G.next();!K.done;K=G.next())K=K.value,v+=(K.wp()-K.Ci())/1E3}return v}; oks=function(v,J){return(v=GHf(v,J*1E3))?v.Ci():0}; KCr=function(v,J){var G=X$(v.timeline,J);J=0;if(G==null?0:G.length)for(v=g.n(G),G=v.next();!G.done;G=v.next())G=G.value,J+=(G.wp()-G.Ci())/1E3;else return zu(v);return J}; GHf=function(v,J){if(v=X$(v.timeline,v.XO)){v=g.n(v);for(var G=v.next();!G.done;G=v.next())if(G=G.value,G.Ci()<=J&&G.wp()>=J)return G}}; VMj=function(v){var J=v.playback.getVideoData();v.XO&&(v=v.h5.get(v.XO))&&(J=v);return J}; bxU=function(v,J,G){G=G===void 0?!1:G;var K=v.timeline.T;if(K){K=K.T;var V=Array.from(K.keys());g.q_(V);J=g.YY(V,J);J=K.get(V[J<0?(J+2)*-1:J]);if(!G&&J){G=g.n(J);for(J=G.next();!J.done;J=G.next())if(J=J.value,J.Ci()!==J.wp())return J;return v.timeline}return J&&J.length>0?J[J.length-1]:void 0}}; J8B=function(v,J,G){G=G===void 0?!1:G;var K=bxU(v,J,G);if(K){if(v=K.segments,v.length){for(var V=g.n(v),Y=V.next();!Y.done;Y=V.next())if(Y=Y.value,Y.Ci()<=J&&Y.wp()>J)return Y;if(G&&K.Ci()===K.wp())return v[0]}}else v.api.uw("ssap",{ctnf:1})}; Hxw=function(v,J){var G;if(v.iH)for(G=v.ye.shift();G&&G!==v.iH;)G=v.ye.shift();else G=v.ye.shift();if(G){if(v.e4.has(G))YSX(v,G);else if(J===3||J===4)v.qa.stop(),v.api.playVideo(1,v.api.C("html5_ssap_keep_media_on_finish_segment"));v.ws.set(v.XO,J);v.api.uw("ssap",{onvftn:1});$pj(v,G);return!1}v.api.uw("ssap",{onvftv:1});v.qa.stop();return!0}; YSX=function(v,J){J=X$(v.timeline,J);if(J==null?0:J.length)v.api.pauseVideo(),v.qa.start(J[0].E7)}; $pj=function(v,J){var G=v.playback.getVideoData(),K=G.clientPlaybackNonce;v.uB&&(v.events.YL(v.uB),v.uB=null,v.playback.Wf());var V=v.XO,Y=!1;if(V==="")V=K,Y=!0;else if(V===void 0){var r=v.playback.Jz();r&&v.timeline.X.has(r)&&(V=r);v.api.uw("ssap",{mcc:V+";"+J});v.playback.rd(new L6("ssap.timelineerror",{e:"missing_current_cpn",pcpn:V,ccpn:J}))}if(V===J)Y&&G&&r8f(v,G,Y);else{r=v.ws.get(V);if(!Y&&(!r||r!==3&&r!==5&&r!==6&&r!==7)){var E=v.api.kh(v.XO);v.api.uw("ssap",{nmec:E,cpc:v.XO,ec:J})}r&&r!== 2||v.Zp();v.XO=J;v.Zp();J=X$(v.timeline,v.XO);if(J==null?0:J.length){J=J[0];E=J.getType();V!==K&&(v.xl=V,G=v.h5.get(V));r?v.ws.delete(V):r=Y?1:2;v.api.C("html5_ssap_pacf_qoe_ctmp")&&E===2&&!J.X&&(v.uB=v.events.G(v.api,"onVideoProgress",v.Oiw));v.api.uw("ssapt",{ostro:r,pcpn:V,ccpn:v.XO});a:{var e=v.XO;if(!v.U6.has(e))for(var P=g.n(v.U6),D=P.next();!D.done;D=P.next()){var t=g.n(D.value);D=t.next().value;t=t.next().value;if(t.getId().includes(e)){e=D;break a}}}P=v.api.B().C("html5_ssap_insert_su_before_nonvideo")&& e!==v.XO;v.playback.vj(e,P);e=Math.max(0,bH(v,V));P=v.playback.getCurrentTime();P=Math.max(0,P-gm(v,v.XO)/1E3);D=J.getVideoData();t=r===3||r===5||r===6||r===7;if(v.api.C("html5_ssap_skip_illegal_seeking")){var B=v.playback.getPlayerState();B=!g.H(B,8)&&g.H(B,16);t=t||B;B&&v.api.uw("ssap",{iis:1})}v.playback.f2(V,v.XO,e,P,!1,t,v.playback.getPlayerState(),!0);v.api.uw("ssapt",{ostri:r,pcpn:V,ccpn:v.XO});var I;v.playback.R_(V,v.XO,K,D,(I=v.Ra.get(V))!=null?I:(0,g.yR)(),G);v.Ra.delete(V);Y?G=void 0:G|| v.api.uw("ssap",{pvdm:V+";"+v.XO,pvdmc:v.XO===K?"1":"0"});v.api.uw("ssap",{tpac:V+";"+v.XO,tpcc:K,tpv:(D==null?0:D.B1())?"1":"0"},!1,1);v.api.B().C("html5_ssap_cleanup_player_switch_ad_player")&&v.api.O3();v.api.publish("videodatachange","newdata",D,E,G,r);J.X||v.playback.getVideoData().publish("dataupdated");v.e4.delete(V);v.iH="";D&&E===1?r8f(v,D):v.playback.uw("ssap",{nis:v.XO});E===2?v.xR++:v.xR=0}}}; r8f=function(v,J,G){G=G===void 0?!1:G;if(J.startSeconds&&v.k9){var K=J.startSeconds;J=X$(v.timeline,J.clientPlaybackNonce);if(J==null?0:J.length)K+=J[0].Ci()/1E3,v.api.C("htm5_ssap_ignore_initial_seek_if_too_big")&&K>=v.bl()||(v.playback.seekTo(K,{Jg:!0}),v.k9=!1,v.playback.uw("ssap",{is:v.XO,co:G?"1":"0",tse:K.toFixed()}))}}; iZj=function(v,J,G){J=X$(v.timeline,J);if(J!=null&&J.length&&(J=bxU(v,J[0].Ci()))){J=g.n(J.segments);for(var K=J.next();!K.done;K=J.next()){K=K.value;if(fs(K)===G)break;if(K=fs(K)){var V=v.U6.get(K);V&&v.playback.removeCueRange(V);v.U6.delete(K)}}}}; mT=function(v){return v.playback.getVideoData().clientPlaybackNonce}; QBw=function(v,J){if(v.z6&&v.XO!==J)return!1;if(v.IJ)return!0;if(J=v.U6.get(J))if(J=J.getId().split(","),J.length>1)for(var G=0;GY)return jo(v,"enterAfterReturn enterTimeMs="+V+" is greater than parentReturnTimeMs="+Y.toFixed(3),r,E),"";var P=e.ju()*1E3;if(VP)return e="returnAfterDuration parentReturnTimeMs="+Y.toFixed(3)+" is greater than parentDurationMs="+P+". And timestampOffset in seconds is "+ e.B$(),jo(v,e,r,E),"";P=null;for(var D=g.n(v.X),t=D.next();!t.done;t=D.next()){t=t.value;if(V>=t.DZ&&Vt.DZ)return jo(v,"overlappingReturn",r,E),"";if(Y===t.DZ)return jo(v,"outOfOrder",r,E),"";V===t.dB&&(P=t)}r="cs_childplayback_"+e1m++;E={KY:$0(K,!0),k6:Infinity,target:null};var B={E1:r,playerVars:J,playerType:G,durationMs:K,DZ:V,dB:Y,l8:E};v.X=v.X.concat(B).sort(function(R,T){return R.DZ-T.DZ}); P?POf(v,P,{KY:$0(P.durationMs,!0),k6:P.l8.k6,target:B}):(J={KY:$0(V,!1),k6:V,target:B},v.J.set(J.KY,J),e.addCueRange(J.KY));J=!0;if(v.T===v.app.zi()&&(e=e.getCurrentTime()*1E3,e>=B.DZ&&eJ)break;if(Y>J)return{l2:K,O0:J-V};G=Y-K.dB/1E3}return{l2:null,O0:J-G}}; qSm=function(v,J,G){G=G===void 0?{}:G;var K=v.j||v.app.zi().getPlayerState();Gy(v,!0);J=isFinite(J)?J:v.T.O6();var V=z1f(v,J);J=V.O0;var Y=(V=V.l2)&&!vl(v,V)||!V&&v.T!==v.app.zi(),r=J*1E3;r=v.Z&&v.Z.start<=r&&r<=v.Z.end;!Y&&r||Je(v);V?DpX(v,V,J,G,K):nkw(v,J,G,K)}; nkw=function(v,J,G,K){var V=v.T;V!==v.app.zi()&&v.app.JY();V.seekTo(J,Object.assign({},{nK:"application_timelinemanager"},G));dpB(v,K)}; DpX=function(v,J,G,K,V){var Y=vl(v,J);if(!Y){J.playerVars.prefer_gapless=!0;v.EB.C("html5_enable_ssap_entity_id")&&(J.playerVars.cached_load=!0);var r=new g.FP(v.EB,J.playerVars);r.E1=J.E1;v.api.GP(r,J.playerType)}r=v.app.zi();Y||r.addCueRange(J.l8.KY);r.seekTo(G,Object.assign({},{nK:"application_timelinemanager"},K));dpB(v,V)}; dpB=function(v,J){v=v.app.zi();var G=v.getPlayerState();J.isOrWillBePlaying()&&!G.isOrWillBePlaying()?v.playVideo():J.isPaused()&&!G.isPaused()&&v.pauseVideo()}; Gy=function(v,J){v.oY=NaN;v.N=null;v.U.stop();v.L&&J&&v.L.s_();v.j=null;v.L=null}; vl=function(v,J){v=v.app.zi();return!!v&&v.getVideoData().E1===J.E1}; sR8=function(v){var J=v.X.find(function(V){return vl(v,V)}); if(J){var G=v.app.zi();Je(v);var K=new g.JZ(8);J=h1j(v,J)/1E3;nkw(v,J,{},K);G.uw("forceParentTransition",{childPlayback:1});v.T.uw("forceParentTransition",{parentPlayback:1})}}; lAf=function(v,J,G){J=J===void 0?-1:J;G=G===void 0?Infinity:G;for(var K=J,V=G,Y=g.n(v.J),r=Y.next();!r.done;r=Y.next()){var E=g.n(r.value);r=E.next().value;E=E.next().value;E.k6>=K&&E.target&&E.target.dB<=V&&(v.T.removeCueRange(r),v.J.delete(r))}K=J;V=G;Y=[];r=g.n(v.X);for(E=r.next();!E.done;E=r.next())if(E=E.value,E.DZ>=K&&E.dB<=V){var e=v;e.K===E&&Je(e);vl(e,E)&&e.app.JY()}else Y.push(E);v.X=Y;K=z1f(v,J/1E3);J=K.l2;K=K.O0;J&&(K*=1E3,R1F(v,J,K,J.dB===J.DZ+J.durationMs?J.DZ+K:J.dB));(J=z1f(v,G/1E3).l2)&& jo(v,"Invalid clearEndTimeMs="+G+" that falls during playback={timelinePlaybackId="+(J.E1+" video_id="+J.playerVars.video_id+" durationMs="+J.durationMs+" enterTimeMs="+J.DZ+" parentReturnTimeMs="+J.dB+"}.Child playbacks can only have duration updated not their start."))}; R1F=function(v,J,G,K){J.durationMs=G;J.dB=K;K={KY:$0(G,!0),k6:G,target:null};POf(v,J,K);vl(v,J)&&v.app.zi().getCurrentTime()*1E3>G&&(J=h1j(v,J)/1E3,G=v.app.zi().getPlayerState(),nkw(v,J,{},G))}; jo=function(v,J,G,K){v.T.uw("timelineerror",{e:J,cpn:G?G:void 0,videoId:K?K:void 0})}; p0X=function(v){v&&v!=="web"&&TJX.includes(v)}; VD=function(v,J){g.X.call(this);var G=this;this.data=[];this.Z=v||NaN;this.X=J||null;this.T=new g.Qq(function(){oF(G);Kc(G)}); g.k(this,this.T)}; aqs=function(v){oF(v);return v.data.map(function(J){return J.value})}; oF=function(v){var J=(0,g.yR)();v.data.forEach(function(G){G.expireY?{width:J.width,height:J.width/V,aspectRatio:V}:VV?v.width=v.height*G:Ge;if(Ep(v)){var P=xpm(v);var D=isNaN(P)||g.QR||oM&&g.nP||e;Ml&&!g.II(601)?P=V.aspectRatio:D=D||Y.controlsType==="3";D?e?(D=Y.C("place_shrunken_video_on_left_of_player")?16:v.getPlayerSize().width-J.width-16,P=Math.max((v.getPlayerSize().height-J.height)/2,0),D=new g.Y3(D,P,J.width, J.height),v.b9.style.setProperty("border-radius","12px")):D=new g.Y3(0,0,J.width,J.height):(G=V.aspectRatio/P,D=new g.Y3((J.width-V.width/G)/2,(J.height-V.height)/2,V.width/G,V.height),G===1&&g.nP&&(P=D.width-J.height*P,P>0&&(D.width+=P,D.height+=P)));g.E3(v.element,"ytp-fit-cover-video",Math.max(D.width-V.width,D.height-V.height)<1);if(E||v.Ce)v.b9.style.display="";v.Ya=!0}else{D=-J.height;Ml?D*=window.devicePixelRatio:g.$g&&(D-=window.screen.height);D=new g.Y3(0,D,J.width,J.height);if(E||v.Ce)v.b9.style.display= "none";v.Ya=!1}rS(v.yl,D)||(v.yl=D,g.uh(Y)?(v.b9.style.setProperty("width",D.width+"px","important"),v.b9.style.setProperty("height",D.height+"px","important")):g.RY(v.b9,D.getSize()),K=new g.R7(D.left,D.top),g.zK(v.b9,Math.round(K.x),Math.round(K.y)),K=!0);J=new g.Y3((J.width-V.width)/2,(J.height-V.height)/2,V.width,V.height);rS(v.uq,J)||(v.uq=J,K=!0);g.ep(v.b9,"transform",G===1?"":"scaleX("+G+")");r&&e!==v.sO&&(e&&(v.b9.addEventListener(tr,v.fC),v.b9.addEventListener("transitioncancel",v.fC),v.b9.classList.add(g.Hx.VIDEO_CONTAINER_TRANSITIONING)), v.sO=e,v.app.kB.publish("playerUnderlayVisibilityChange",v.sO?"transitioning":"hidden"));return K}; ZZw=function(){this.csn=g.LW();this.clientPlaybackNonce=null;this.elements=new Set;this.Z=new Set;this.T=new Set;this.X=new Set}; ups=function(v){if(v.csn!==g.LW())if(v.csn==="UNDEFINED_CSN")v.csn=g.LW();else{var J=g.LW(),G=g.pW();if(J&&G){v.csn=J;for(var K=g.n(v.elements),V=K.next();!V.done;V=K.next())(V=V.value.visualElement)&&V.isClientVe()&&J&&G&&(g.dx("combine_ve_grafts")?Ou(y8(),V,G):g.jk(g.QV)(void 0,J,G,V))}if(J)for(v=g.n(v.T),G=v.next();!G.done;G=v.next())(G=G.value.visualElement)&&G.isClientVe()&&g.G8(J,G)}}; g.eo=function(v,J,G,K){g.X.call(this);var V=this;this.logger=new g.rZ("App");this.Gs=this.ih=!1;this.S8={};this.Lb=[];this.O5=!1;this.Em=null;this.intentionalPlayback=!1;this.j1=!0;this.nm=!1;this.ZU=this.Cu=null;this.Gh=!0;this.mediaElement=this.L0=null;this.uS=NaN;this.Lh=!1;this.aA=this.bY=this.tR=this.P1=this.screenLayer=this.playlist=null;this.HK=[];this.Um=0;this.cO={QB:function(){return V.WO}, bQ:function(){return V.tR}, sx:function(r){V.tR=r}, Xk:function(r,E){V.tR&&V.tR.Xk(r,E)}}; this.logger.debug("constructor begin");this.config=FGj(J||{});this.webPlayerContextConfig=G;ofU();J=this.config.args||{};this.EB=new AM(J,G,G?G.canaryState:this.config.assets.player_canary_state,K,this);g.k(this,this.EB);PGj(this.EB);K=tqf(this.EB);this.EB.GG()&&this.HK.push({key:"h5vcc",value:K});this.EB.experiments.OB("jspb_serialize_with_worker")&&Xy8();this.EB.experiments.OB("gzip_gel_with_worker")&&U4j();this.EB.X&&!gkt&&(window.addEventListener(pY?"touchstart":"click",ATF,{capture:!0,passive:!0}), gkt=!0);this.C("html5_onesie")&&(this.ZE=new JO(this.EB),g.k(this,this.ZE));this.Dz=GZ(x$(this.EB)&&!0,J.enablesizebutton);this.Lu=GZ(!1,J.player_wide);this.visibility=new YWm;g.k(this,this.visibility);this.C("web_log_theater_mode_visibility")&&this.G6(GZ(!1,J.player_wide));this.ih=GZ(!1,J.external_list);this.events=new g.Zs(this);g.k(this,this.events);this.C("start_client_gcf")&&(xZ(ZE(),{Au:re,py:$4L()}),this.Zs=ZE().resolve(re),GmB(this.Zs));this.Y9i=new tK;g.k(this,this.Y9i);this.yR=new ZZw;K= new Bz;this.kB=new g.wr(this,K);g.k(this,this.kB);this.template=new OZB(this);g.k(this,this.template);this.appState=1;this.Xz=X0f(this);g.k(this,K);K={};this.ZH=(K.internalvideodatachange=this.bKH,K.playbackready=this.Tdb,K.playbackstarted=this.QH4,K.statechange=this.tue,K);this.gX=new vv(this.kB);this.tI=kHw(this);K=this.C("html5_load_wasm");J=this.C("html5_allow_asmjs");if(K&&c8U||J)this.EB.Q$=UQL(this.tI,J),Ih(Bx(this.EB.Q$,function(r){V.EB.Zm=r;var E;(E=V.zi())==null||E.uw("wasm",{a:r.Wa})}), function(r){g.Zl(r); r="message"in r&&r.message||r.toString()||"";var E;(E=V.zi())==null||E.uw("wasm",{e:r})}); else if(K&&!c8U){var Y;(Y=this.zi())==null||Y.uw("wasm",{e:"wasm unavailable"})}this.n0=new gFr(this.EB,this.tI);this.kB.publish("csiinitialized");Y=10;g.yW(this.EB)&&(Y=3);jv(this.EB)&&(Y=g.DI(this.EB.experiments,"tvhtml5_unplugged_preload_cache_size"));Y=new VD(Y,function(r){r!==V.oH(r.getPlayerType())&&r.dispose()}); g.k(this,Y);this.WO=new g.m7(this.EB,Y);Y=NJw(this);this.WO.T7(Y);aAm(this);Y={};this.FL=(Y.airplayactivechange=this.eyb,Y.airplayavailabilitychange=this.djh,Y.beginseeking=this.ZYY,Y.sabrCaptionsDataLoaded=this.krH,Y.endseeking=this.v5r,Y.internalAbandon=this.LUh,Y.internalaudioformatchange=this.g54,Y.internalvideodatachange=this.UjB,Y.internalvideoformatchange=this.Imr,Y.liveviewshift=this.n5b,Y.playbackstalledatstart=this.Ryt,Y.progresssync=this.J7r,Y.onAbnormalityDetected=this.c7h,Y.onSnackbarMessage= this.Gre,Y.onLoadProgress=this.Y1l,Y.SEEK_COMPLETE=this.KUY,Y.SEEK_TO=this.DjB,Y.onVideoProgress=this.BB7,Y.onLoadedMetadata=this.y7t,Y.onAutoplayBlocked=this.p1r,Y.onPlaybackPauseAtStart=this.S1U,Y.playbackready=this.FUb,Y.statechange=this.Iu,Y.newelementrequired=this.zT,Y.heartbeatparams=this.sAe,Y.videoelementevent=this.zye,Y.drmoutputrestricted=this.M3w,Y.signatureexpired=this.mj7,Y.nonfatalerror=this.q1l,Y.reloadplayer=this.Cii,Y);this.zP=new g.Zs(this);g.k(this,this.zP);this.Ir=new rG;g.k(this, this.Ir);this.Du=this.Sh=-1;this.al=new g.Qq(this.template.resize,16,this.template);g.k(this,this.al);this.zS=new Ekf(this.kB,this.EB,this.Qn(),this);this.eO=new St(this.EB);this.vC=new O7(this);g.k(this,this.vC);this.o0=new ps(this);g.k(this,this.o0);p0X(this.EB.T.c);this.events.G(this.kB,g.VG("appapi"),this.HKt);this.events.G(this.kB,g.YM("appapi"),this.uui);this.events.G(this.kB,g.VG("appprogressboundary"),this.lml);this.events.G(this.kB,g.YM("applooprange"),this.Et);this.events.G(this.kB,"presentingplayerstatechange", this.If);this.events.G(this.kB,"resize",this.QRU);this.template.vH(iZ(document,v));this.events.G(this.kB,"offlineslatestatechange",this.TBw);this.events.G(this.kB,"sabrCaptionsTrackChanged",this.Ziw);this.events.G(this.kB,"sabrCaptionsBufferedRangesUpdated",this.pvr);this.tI.S.B().Vu&&IV(this.tI,"offline");this.EB.WH&&g.Vp("ux",g.lH);v=g.DI(this.EB.experiments,"html5_defer_fetch_att_ms");this.NR=new g.Qq(this.J0Y,v,this);g.k(this,this.NR);this.O$().B1()&&(g.u$()&&this.O$().dh.push("remote"),A88(this)); this.n0.tick("fs");FCL(this);this.EB.WH&&IV(this.tI,"ux",!0);g.Of(this.tI.S.B())&&IV(this.tI,"embed");this.C("web_player_sentinel_is_uniplayer")||g.Zl(new g.Mk("Player experiment flags missing","web_player_sentinel_is_uniplayer"));v=this.C("web_player_sentinel_yt_experiments_sync");Y=g.dx("web_player_sentinel_yt_experiments_sync");v!==Y&&g.Zl(new g.Mk("b/195699950",{yt:v,player:Y}));G||g.Zl(new g.Mk("b/179532961"));this.YA=HZ2(this);if(G=g.DI(this.EB.experiments,"html5_block_pip_safari_delay"))this.BW= new g.Qq(this.Zl,G,this),g.k(this,this.BW);Sk=this.EB.KK;G=g.DI(this.EB.experiments,"html5_performance_impact_profiling_timer_ms");G>0&&(this.cR=new g.ui(G),g.k(this,this.cR),this.events.G(this.cR,"tick",function(){V.eP&&MMw.vl("apit",V.eP);V.eP=MMw.PX()})); this.kB.publish("applicationInitialized");this.logger.debug("constructor end")}; HZ2=function(v){function J(G){G.stack&&G.stack.indexOf("player")!==-1&&(v.zi()||v.Qn()).RQ(G)} uW.subscribe("handleError",J);C4.push(J);return function(){uW.unsubscribe("handleError",J);var G=C4.indexOf(J);G!==-1&&C4.splice(G,1)}}; NJw=function(v){var J=new g.FP(v.EB,v.config.args);v.kB.publish("initialvideodatacreated",J);return Pl(v,1,J,!1)}; aAm=function(v){var J=v.Qn();J.setPlaybackRate(v.EB.L?1:QRt(v,Number(g.fq("yt-player-playback-rate"))||1));J.Cd(v.ZH,v);J.Rq()}; kHw=function(v){var J="",G=y8m(v);G.indexOf("//")===0&&(G=v.EB.protocol+":"+G);var K=G.lastIndexOf("/base.js");K!==-1&&(J=G.substring(0,K+1));if(G=Error().stack)if(G=G.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))G=G[1],G.includes(J)||g.Zl(Error("Player module URL mismatch: "+(G+" vs "+J+".")));J=new DQt(v.kB,J);WCr(v,J);return J}; WCr=function(v,J){var G={};G=(G.destroyed=function(){v.onApiChange()},G); J.Z=G}; X0f=function(v){if(v.EB.storeUserVolume){v=g.fq("yt-player-volume")||{};var J=v.volume;v={volume:isNaN(J)?100:g.nk(Math.floor(J),0,100),muted:!!v.muted}}else v={volume:100,muted:v.EB.mute};return v}; Df=function(v){v.mediaElement=v.EB.deviceIsAudioOnly?new g.Nu(g.qh("AUDIO")):Tk.pop()||new g.Nu(g.qh("VIDEO"));g.k(v,v.mediaElement);var J=v.zi();J&&J.setMediaElement(v.mediaElement);try{v.EB.BO?(v.bY&&v.events.YL(v.bY),v.bY=v.events.G(v.mediaElement,"volumechange",v.h4b)):(v.mediaElement.jB(v.Xz.muted),v.mediaElement.setVolume(v.Xz.volume/100))}catch(V){v.qI("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(V&&typeof V==="object"&&"message"in V&&typeof V.message==="string"&&V.message.replace(/[;:,]/g, "_")));return}g.O9(v.zP);COB(v);J=v.template;var G=v.mediaElement.ZZ();J.b9=G;J.Lf=!1;J.b9.parentNode||Dy(J.o5,J.b9,0);J.yl=new g.Y3(0,0,0,0);fAf(J);qQ(J);G=J.b9;g.Vj(G,"video-stream");g.Vj(G,g.Hx.MAIN_VIDEO);var K=J.app.B();K.dG&&G.setAttribute("data-no-fullscreen","true");K.C("html5_local_playsinline")?"playsInline"in Oj()&&(G.playsInline=!0):K.OA&&(G.setAttribute("webkit-playsinline",""),G.setAttribute("playsinline",""));K.uf&&J.b9&&J.G(G,"click",G.play,G);try{v.mediaElement.activate()}catch(V){v.qI("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(V&&typeof V==="object"&&"message"in V&&typeof V.message==="string"&&V.message.replace(/[;:,]/g,"_")))}}; jHw=function(v){if(!bZm(v)){var J=v.Qn().LY();J&&(J=J.nI(),J instanceof Promise&&J.catch(function(){})); te(v,EC(v.getPlayerStateObject()))}}; COB=function(v){var J=v.mediaElement;SR()?v.zP.G(J,"webkitpresentationmodechanged",v.v2Y):window.document.pictureInPictureEnabled&&(v.zP.G(J,"enterpictureinpicture",function(){v.Mp(!0)}),v.zP.G(J,"leavepictureinpicture",function(){v.Mp(!1)})); CE&&(v.zP.G(J,"webkitbeginfullscreen",function(){v.y5(3)}),v.zP.G(J,"webkitendfullscreen",function(){v.y5(0)}))}; igf=function(v,J){var G=J.getPlayerType(),K=v.WO.Z[G]||null;J!==v.Qn()&&J!==K&&(K==null||K.dispose(),v.WO.Z[G]=J)}; $tt=function(v,J){J=J===void 0?!0:J;v.logger.debug("start clear presenting player");var G;if(G=v.aA){G=v.aA;var K=v.mediaElement;G=!!K&&K===G.mediaElement}G&&(v.xP(),Df(v));if(G=v.zi())G.xP(!J),G.GN(v.FL,v),G.getPlayerType()!==1&&G.dispose();J=v.WO;J.X=J.T;v.logger.debug("finish clear presenting player")}; g.v9s=function(v,J,G,K){var V=v.n0;J===2&&(V=new gFr(v.EB));return new g.iT(v.EB,J,V,v.template,function(Y,r,E){v.kB.publish(Y,r,E)},function(){return v.kB.getVisibilityState()},v.visibility,v,G,K)}; Pl=function(v,J,G,K,V){v=g.v9s(v,J,G,V);v=new g.AK(v);K&&v.Rq();return v}; Bl=function(v,J){return v.cG(J)?v.Qn():J}; IF=function(v,J){var G=v.zi(),K=v.Qn();return G&&J===K&&v.cG(J)&&v.cG(G)?G:J}; o9B=function(v){v.logger.debug("start application playback");if(v.Qn().getPlayerState().isError())v.logger.debug("start application playback done, player in error state");else{var J=he(v);v.O$().isLoaded();J&&v.Yh(6);Jgm(v);lfs(v.tI)||Grr(v)}}; Grr=function(v){if(!he(v)){var J=zo(v.tI);J&&!J.created&&toF(v.tI)&&(v.logger.debug("reload ad module"),J.create())}}; Jgm=function(v){v.logger.debug("start presenter playback");var J=v.getVideoData(),G=v.tI;lfs(G)||G.HW();!c8U&&G.S.C("html5_allow_asmjs")&&OcX(G);IV(G,"embed");IV(G,"kids");IV(G,"remote");IV(G,"miniplayer");IV(G,"offline");IV(G,"unplugged");IV(G,"ypc",!1,!0);IV(G,"ypc_clickwrap",!1,!0);IV(G,"yto",!1,!0);IV(G,"webgl",!1,!0);TG2(G)||(IV(G,"captions",!0),IV(G,"endscreen"),G.Lm()||G.Ep(),IV(G,"creatorendscreen",!0));G.zt();v.kB.publish("videoready",J)}; zy=function(v){v=v.O$();v.B1();return XH(v)}; FCL=function(v){v.logger.debug("start prepare initial playback");v.gR();var J=v.config.args;Df(v);v.events.G(window,"resize",v.tKU);var G=v.O$();v.kB.UN("onVolumeChange",v.Xz);if(J&&aaj(J)){var K=Q5(v.EB);K&&!v.ih&&(J.fetch=0);var V=g.Of(v.EB);V&&!v.ih&&(J.fetch=0);nc(v,J);g.Of(v.EB)&&v.n0.tick("ep_pr_s");if(!K||v.ih)if(V&&!v.ih)KE2(v);else if(!G.B1())v.playlist.onReady(function(){dG(v)})}v.cn(v.Qn(),!1,!0); g.H(v.Qn().getPlayerState(),128)||(J=qUj(!v.EB.deviceIsAudioOnly),J==="fmt.noneavailable"?v.qI("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):J==="html5.missingapi"?v.qI(J,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):G&&G.B1()&&zy(v)&&(v.EB.H8||v.EB.Jm)?sp(v):G.XI?v.kB.mutedAutoplay({durationMode:G.mutedAutoplayDurationMode}):g.fq("yt-player-playback-on-reload")?(g.ql("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!v.EB.dh}),g.SW("yt-player-playback-on-reload",!1), sp(v)):JW(v.EB)||VFU(v),g.bh(v.EB)||jN(v.EB)==="MWEB"?(g.jQ(g.$q(),function(){RF(v)}),g.jQ(g.$q(),function(){PN8()})):(RF(v),PN8()),v.logger.debug("finish prepare initial playback"))}; RF=function(v){if(!v.C("use_rta_for_player"))if(v.C("fetch_att_independently"))g.Wq(v.NR);else{var J=v.getVideoData().botguardData;J&&g.Xo(J,v.EB,v.getVideoData().H7||"")}}; VFU=function(v){v.logger.debug("start initialize to CUED mode");v.kB.publish("initializingmode");v.Yh(2);v.C("embeds_web_enable_defer_loading_remote_js")&&g.is(v.EB)?g.jQ(g.$q(),function(){IV(v.tI,"remote")}):IV(v.tI,"remote"); IV(v.tI,"miniplayer");v.logger.debug("initialized to CUED mode")}; sp=function(v){v.logger.debug("start initialize application playback");var J=v.Qn();if(g.H(J.getPlayerState(),128))return!1;var G=J.getVideoData();zy(v)&&v.EB.Jm&&(Tk.length&&v.Gs?(ln(v,{muted:!1,volume:v.Xz.volume},!1),Ty(v,!1)):Tk.length||v.Xz.muted||(ln(v,{muted:!0,volume:v.Xz.volume},!1),Ty(v,!0)));zy(v)&&g.Of(v.EB)&&G.mutedAutoplay&&(ln(v,{muted:!0,volume:v.Xz.volume},!1),Ty(v,!0));G.eC&&ln(v,{muted:!0,volume:v.Xz.volume},!1);Yst(v,1,G,!1);v.kB.publish("initializingmode");v.cn(v.Qn());v.Yh(3); var K;if(!(K=!v.EB.BV)){if(K=v.aA){K=v.aA;var V=v.mediaElement;K=!!V&&V===K.mediaElement}K=K&&v.O5}K&&(v.xP(),Df(v),J.setMediaElement(v.mediaElement));J.iq();if(g.H(J.getPlayerState(),128))return!1;G.DR||te(v,3);return v.O5=!0}; he=function(v){v=x1(v.tI);return!!v&&v.loaded}; rg8=function(v,J){if(!v.L0)return!1;var G=v.L0.startTimeMs*.001-1,K=v.L0.endTimeMs*.001;v.L0.type==="repeatChapter"&&K--;return Math.abs(J-G)<=1E-6||Math.abs(J-K)<=1E-6||J>=G&&J<=K}; E9X=function(v){var J=v.zi();J&&ov(J.getVideoData())&&!J.La()&&(J=qs8(v)*1E3-v.getVideoData().mO,v.C("html5_gapless_new_slr")?(v=v.o0,pc(v.app,"gaplessshortslooprange"),J=new g.o8(0,J,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(v=v.app.zi())&&v.addCueRange(J)):v.setLoopRange({startTimeMs:0,endTimeMs:J,type:"shortsLoop"}))}; e4m=function(v){var J=v.Qn();if(!(g.H(J.getPlayerState(),64)&&v.O$().isLivePlayback&&v.L0.startTimeMs<5E3)){if(v.L0.type==="repeatChapter"){var G,K=(G=xWL(v.c$()))==null?void 0:G.N$(),V;G=(V=v.getVideoData())==null?void 0:V.Q$;K instanceof g.S6&&G&&(V=G[ix(G,v.L0.startTimeMs)],K.renderChapterSeekingAnimation(0,V.title));isNaN(Number(v.L0.loopCount))?v.L0.loopCount=0:v.L0.loopCount++;v.L0.loopCount===1&&v.kB.lw("innertubeCommand",v.getVideoData().Rc)}K={nK:"application_loopRangeStart"};if(v.L0.type=== "clips"||v.L0.type==="shortsLoop")K.seekSource=58;J.seekTo(v.L0.startTimeMs*.001,K)}}; QRt=function(v,J){var G=v.kB.getAvailablePlaybackRates();J=Number(J.toFixed(2));v=G[0];G=G[G.length-1];J<=v?J=v:J>=G?J=G:(v=Math.floor(J*100+.001)%5,J=v===0?J:Math.floor((J-v*.01)*100+.001)/100);return J}; qs8=function(v,J){J=v.oH(J);if(!J)return v.WO.T.ZL();J=Bl(v,J);return Lc(v,J.ZL(),J)}; Lc=function(v,J,G){if(v.cG(G)){G=G.getVideoData();if(yD(v))G=J;else{v=v.zS;for(var K=g.n(v.X),V=K.next();!V.done;V=K.next())if(V=V.value,G.E1===V.E1){J+=V.DZ/1E3;break}K=J;v=g.n(v.X);for(V=v.next();!V.done;V=v.next()){V=V.value;if(G.E1===V.E1)break;var Y=V.DZ/1E3;if(Y1&&(V=!1);if(!v.Lh||V!==J){G=G.lock(V?"portrait":"landscape");if(G!=null)G["catch"](function(){}); v.Lh=!0}}else v.Lh&&(v.Lh=!1,G.unlock())}; So=function(v,J,G){v.kB.publish(J,G);var K=g.yW(v.EB)||g.uh(v.EB)||g.gy(v.EB);if(G&&K){switch(J){case "cuerangemarkersupdated":var V="onCueRangeMarkersUpdated";break;case "cuerangesadded":V="onCueRangesAdded";break;case "cuerangesremoved":V="onCueRangesRemoved"}V&&v.kB.lw(V,G.map(function(Y){return{getId:function(){return this.id}, end:Y.end,id:Y.getId(),namespace:Y.namespace==="ad"?"ad":"",start:Y.start,style:Y.style,visible:Y.visible}}))}}; fc=function(v,J,G,K,V,Y){G=G===void 0?!0:G;var r=v.oH(V);r&&(r.getPlayerType()===2&&!v.cG(r)||g.yf(r.getVideoData()))||(v.getPresentingPlayerType()===3?v.WO.tV.seekTo(J,{NF:!G,xt:K,nK:"application",seekSource:Y}):(r&&r===v.Qn()&&v.L0&&!rg8(v,J)&&v.setLoopRange(null),v.seekTo(J,G,K,V,Y)))}; w3L=function(v,J,G,K){G&&(v.xP(),Df(v));G=v.zi();G.G5(J);var V=v.getVideoData(),Y={};Y.video_id=V.videoId;Y.adformat=V.adFormat;V.isLivePlayback||(Y.start=G.getCurrentTime(),Y.resume="1");V.isLivePlayback&&Pm(V)&&g.pX(v.EB)&&(Y.live_utc_start=G.IA(),Y.resume="1");V.Ti&&(Y.vvt=V.Ti);V.j&&(Y.vss_credentials_token=V.j,Y.vss_credentials_token_type=V.mx);V.oauthToken&&(Y.oauth_token=V.oauthToken);V.BV&&(Y.force_gvi=V.BV);Y.autoplay=1;Y.reload_count=V.Vn+1;Y.reload_reason=J;V.fN&&(Y.unplugged_partner_opt_out= V.fN);V.Hw&&(Y.ypc_is_premiere_trailer=V.Hw);V.playerParams&&(Y.player_params=V.playerParams);v.loadVideoByPlayerVars(Y,void 0,!0,void 0,void 0,K);J==="signature"&&v.P1&&Grr(v)}; Ogs=function(v,J){v.O$().autonavState=J;g.SW("yt-player-autonavstate",J);v.kB.publish("autonavchange",J)}; Utt=function(v){var J=v.getVideoData().Yv,G=v.EB.wh,K=v.isInline()&&!v.getVideoData().bB,V=v.mediaElement;J||G||K?V.MM():(V.n3(),ln(v,v.Xz))}; wG=function(v){var J=zo(v.c$());J&&J.created&&(v.logger.debug("reset ad module"),J.destroy())}; yD=function(v){return v.getVideoData().enableServerStitchedDai&&!!v.P1}; xtt=function(v,J){J.bounds=v.getBoundingClientRect();for(var G=g.n(["display","opacity","visibility","zIndex"]),K=G.next();!K.done;K=G.next())K=K.value,J[K]=Bj(v,K);J.hidden=!!v.hidden}; y8m=function(v){if(v.webPlayerContextConfig){var J=v.webPlayerContextConfig.trustedJsUrl;return J?l9(J).toString():v.webPlayerContextConfig.jsUrl}return v.config.assets&&v.config.assets.js?v.config.assets.js:""}; mtj=function(v,J){var G=v.oH(1);if(G){if(G.getVideoData().clientPlaybackNonce===J)return G;if((v=v.vC.T)&&v.getVideoData().clientPlaybackNonce===J)return v}return null}; SsF=function(v){return v.name==="TypeError"&&v.stack.includes("/s/player/")&&cy()<=105}; fVt=function(v){return v.isTimeout?"NO_BID":"ERR_BID"}; Zgt=function(){var v=null;wqj().then(function(J){return v=J},function(J){return v=fVt(J)}); return v}; uAf=function(){var v=XB(1E3,"NO_BID");return g.fQ(Q1m([wqj(),v]).pj(fVt),function(){v.cancel()})}; Zf=function(v){return v.Mj?g.Nk(g.c8(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; un=function(v){this.player=v;this.Z=this.T=1}; krF=function(v,J,G,K,V,Y){J.client||(J.client={});v.player.B().C("h5_remove_url_for_get_ad_break")||(J.client.originalUrl=G);var r=Y6(G),E=g.Wp(G)?!1:!0;(r||E)&&typeof Intl!=="undefined"&&(J.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);E=g.Wp(G)?!1:!0;if(r||E||K!==""){var e={};G=vy(Py(K)).split("&");var P=new Map;G.forEach(function(D){D=D.split("=");D.length>1&&P.set(D[0].toString(),decodeURIComponent(D[1].toString()))}); P.has("bid")&&(e.bid=P.get("bid"));e.params=[];g9w.forEach(function(D){P.has(D)&&(D={key:D,value:P.get(D)},e.params.push(D))}); X3U(v,e);J.adSignalsInfo=e}J.client.unpluggedAppInfo||(J.client.unpluggedAppInfo={});J.client.unpluggedAppInfo.enableFilterMode=!1;G=V.T.cosver;G!=null&&G!=="cosver"&&(J.client.osVersion=G);G=V.T.cplatform;G!=null&&G!=="cplatform"&&G!==""&&(J.client.platform=G);G=V.T.cmodel;G!=null&&G!=="cmodel"&&(J.client.deviceModel=G);G=V.T.cplayer;G!=null&&G!=="cplayer"&&(J.client.playerType=G);G=V.T.cbrand;G!=null&&G!=="cbrand"&&(J.client.deviceMake=G);J.user||(J.user={});J.user.lockedSafetyMode=!1;(V.C("embeds_web_enable_iframe_api_send_full_embed_url")|| V.C("embeds_enable_autoplay_and_visibility_signals"))&&g.ZR(V)&&ZX2(J,Y,v.player.getPlayerState(1))}; aVt=function(v,J){var G=!1;if(J==="")return G;J.split(",").forEach(function(K){var V={},Y={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},r="ACTIVE";K[0]==="!"&&(K=K.substring(1),r="INACTIVE");K=K.split("-");K.length<3||(K[0]in cg2&&(Y.clientName=cg2[K[0]]),K[1]in NbX&&(Y.platform=NbX[K[1]]),Y.applicationState=r,Y.clientVersion=K.length>2?K[2]:"",V.remoteClient=Y,v.remoteContexts?v.remoteContexts.push(V):v.remoteContexts=[V],G=!0)}); return G}; FEF=function(v){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in Agm))return!1;v=v.split(RegExp("[:&]"));var J=Agm.FLAG_AUTO_CAPTIONS_DEFAULT_ON,G="f"+(1+Math.floor(J/31)).toString();J=1<=2?r[1]:"";var E=MFj.test(J),e=QH2.exec(J);e=e!=null&&e.length>=2?e[1]:"";var P=WEL.exec(J);P=P!=null&&P.length>=2&&!Number.isNaN(Number(P[1]))?Number(P[1]):1;var D=CYw.exec(J);D=D!=null&&D.length>=2?D[1]:"0";var t=cL(v.player.B().Ks),B=v.player.getVideoData(1),I=g.bd(B.Mr,!0),h="BISCOTTI_ID"in G?G.BISCOTTI_ID:"";krF(v,I,J,h.toString(),v.player.B(), B);B={splay:!1,lactMilliseconds:G.LACT.toString(),playerHeightPixels:Math.trunc(G.P_H),playerWidthPixels:Math.trunc(G.P_W),vis:Math.trunc(G.VIS),signatureTimestamp:20180,autonavState:Zf(v.player.B())};K&&(K={},aVt(K,G.YT_REMOTE)&&(B.mdxContext=K));if(K=bgL.includes(t)?void 0:g.uR("PREF")){for(var R=K.split(RegExp("[:&]")),T=0,L=R.length;T1&&O[1].toUpperCase()==="TRUE"){I.user.lockedSafetyMode=!0;break}}B.autoCaptionsDefaultOn= FEF(K)}J=j0j.exec(J);(J=J!=null&&J.length>=2?J[1]:"")&&e&&(I.user.credentialTransferTokens=[{token:J,scope:"VIDEO"}]);J={contentPlaybackContext:B};r={adBlock:Math.trunc(G.AD_BLOCK),params:r,breakIndex:P,breakPositionMs:D,clientPlaybackNonce:G.CPN,topLevelDomain:t,isProxyAdTagRequest:E,context:I,adSignalsInfoString:vy(Py(h.toString())),overridePlaybackContext:J};V!==void 0&&(r.cueProcessedMs=Math.round(V).toString());e&&(r.videoId=e);G.LIVE_TARGETING_CONTEXT&&(r.liveTargetingParams=G.LIVE_TARGETING_CONTEXT); G.AD_BREAK_LENGTH&&(r.breakLengthMs=Math.trunc(G.AD_BREAK_LENGTH*1E3).toString());Y&&(r.driftFromHeadMs=Y.toString());r.currentMediaTimeMs=Math.round(v.player.getCurrentTime(1)*1E3);(v=v.player.getGetAdBreakContext())&&(r.getAdBreakContext=v);return r}; $zs=function(){un.apply(this,arguments)}; vBs=function(v,J,G,K,V){var Y=G.BQ;var r=G.KY;var E=v.player.B().tF,e=0;G.cueProcessedMs&&r&&!Y&&(G=r.end-r.start,G>0&&(e=Math.floor(G/1E3)));var P={AD_BLOCK:V,AD_BREAK_LENGTH:Y?Y.ON:e,AUTONAV_STATE:Zf(v.player.B()),CA_TYPE:"image",CPN:v.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:v.player.Hi()*1E3,LACT:yy(),LIVE_INDEX:Y?v.Z++:1,LIVE_TARGETING_CONTEXT:Y&&Y.context?Y.context:"",MIDROLL_POS:r?Math.round(r.start/1E3):0,MIDROLL_POS_MS:r?Math.round(r.start):0,VIS:v.player.getVisibilityState(), P_H:v.player.f7().mX().height,P_W:v.player.f7().mX().width,YT_REMOTE:E?E.join(","):""},D=ek(Ei);Object.keys(D).forEach(function(t){D[t]!=null&&(P[t.toUpperCase()]=D[t].toString())}); K!==""&&(P.BISCOTTI_ID=K);K={};qA(J)&&(K.sts="20180",(v=v.player.B().forcedExperiments)&&(K.forced_experiments=v));return Vl(g.w0(J,P),K)}; J7L=function(v,J){var G=v.player.B(),K,V=(K=v.player.getVideoData(1))==null?void 0:K.oauthToken;return g.KS(G,V).then(function(Y){if(Y&&rx()){var r=Ny();aQ(r,Y)}return g.WB(v.player.E4(r),J,"/youtubei/v1/player/ad_break").then(function(E){return E})})}; GJL=function(v){this.F4=v}; oBw=function(v){this.S=v}; Knf=function(v){this.F4=v}; YVU=function(v){g.X.call(this);this.T=v;this.uJ=VBB(this)}; VBB=function(v){var J=new Emj(v.T.hP);g.k(v,J);v=[new GJL(v.T.F4),new oBw(v.T.S),new Knf(v.T.F4),new xC(v.T.eR,v.T.KQ),new S9,new u3(v.T.s9,v.T.hV,v.T.F4),new mw,new Ue];v=g.n(v);for(var G=v.next();!G.done;G=v.next())emU(J,G.value);v=g.n(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(G=v.next();!G.done;G=v.next())f1(J,G.value,function(){}); return J}; gG=function(v){var J=v.C7,G=v.cH;v=v.X5;var K=new pbt,V={Z2:new YUB(J.get(),G),cH:G};return{K0:new Gf(G,v,J,V),context:V,gp:K}}; Xw=function(v,J,G,K,V){g.X.call(this);this.X=J;this.L7=G;this.C7=K;this.Vj=V;this.listeners=[];var Y=new yC(this);g.k(this,Y);Y.G(v,"internalAbandon",this.Dt);this.addOnDisposeCallback(function(){g.O9(Y)})}; k0=function(v){this.S=v;this.adVideoId=this.T=this.videoId=this.adCpn=this.contentCpn=null;this.J=!0;this.X=this.Z=!1;this.adFormat=null;this.L="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; r72=function(v){v.contentCpn=null;v.adCpn=null;v.videoId=null;v.adVideoId=null;v.adFormat=null;v.L="AD_PLACEMENT_KIND_UNKNOWN";v.actionType="unknown_type";v.Z=!1;v.X=!1}; qVF=function(v,J){v=g.n(J);for(J=v.next();!J.done;J=v.next())if((J=J.value.renderer)&&(J.instreamVideoAdRenderer||J.linearAdSequenceRenderer||J.sandwichedLinearAdRenderer||J.instreamSurveyAdRenderer)){cB("ad_i");g.N0({isMonetized:!0});break}}; EBm=function(v){var J;(J=v.S.getVideoData(1))!=null&&J.Ze&&(v.X=!1,J={},v.T&&v.videoId&&(J.cttAuthInfo={token:v.T,videoId:v.videoId}),aw("video_to_ad",J))}; AZ=function(v){v.X=!1;var J={};v.T&&v.videoId&&(J.cttAuthInfo={token:v.T,videoId:v.videoId});aw("ad_to_video",J);ePL(v)}; ePL=function(v){if(v.Z)if(v.L==="AD_PLACEMENT_KIND_START"&&v.actionType==="video_to_ad")uM("video_to_ad");else{var J={adBreakType:dp(v.L),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:v.videoStreamType};v.actionType==="ad_to_video"?(v.contentCpn&&(J.targetCpn=v.contentCpn),v.videoId&&(J.targetVideoId=v.videoId)):(v.adCpn&&(J.targetCpn=v.adCpn),v.adVideoId&&(J.targetVideoId=v.adVideoId));v.adFormat&&(J.adType=v.adFormat);v.contentCpn&& (J.clientPlaybackNonce=v.contentCpn);v.videoId&&(J.videoId=v.videoId);v.adCpn&&(J.adClientPlaybackNonce=v.adCpn);v.adVideoId&&(J.adVideoId=v.adVideoId);g.N0(J,v.actionType)}}; cl=function(v){g.X.call(this);this.S=v;this.T=new Map;this.X=new yC(this);g.k(this,this.X);this.X.G(this.S,g.VG("ad"),this.onCueRangeEnter,this);this.X.G(this.S,g.YM("ad"),this.onCueRangeExit,this)}; PVm=function(v,J,G,K,V){g.o8.call(this,J,G,{id:v,namespace:"ad",priority:V,visible:K})}; NQ=function(v){this.S=v}; aF=function(v){this.S=v;g.DI(this.S.B().experiments,"tv_pacf_logging_sample_rate")}; lD=function(v,J){J=J===void 0?!1:J;return v.S.B().C("html5_ssap_force_ads_ctmp")?!0:(J||v.S.B().GG())&&v.S.B().C("html5_ssap_pacf_qoe_ctmp")}; Ae=function(v){var J,G;return(G=(J=v.S.getVideoData(1))==null?void 0:g.WG(J))!=null?G:!1}; W5=function(v,J){return v.S.B().C(J)}; Dzr=function(v){return v.S.B().C("substitute_ad_cpn_macro_in_ssdai")}; sr=function(v){var J,G,K;return((J=v.S.getVideoData(1).getPlayerResponse())==null?void 0:(G=J.playerConfig)==null?void 0:(K=G.daiConfig)==null?void 0:K.enableServerStitchedDai)||!1}; IBL=function(v){return v.S.B().C("html5_enable_vod_slar_with_notify_pacf")}; tBw=function(v){return v.S.B().C("html5_recognize_predict_start_cue_point")}; $R=function(v){return v.S.B().experiments.OB("enable_desktop_player_underlay")}; BNX=function(v){return v.S.B().experiments.OB("html5_load_empty_player_in_media_break_sub_lra")}; m$=function(v){return v.S.B().experiments.OB("html5_load_ads_instead_of_cue")}; SP=function(v){return v.S.B().experiments.OB("html5_preload_ads")}; IOm=function(v){return v.S.B().experiments.OB("should_ignore_cuepoints_during_lifa_preroll")}; bz=function(v){return v.S.B().experiments.OB("enable_ads_control_flow_deterministic_id_generation")}; hPB=function(v){return v.S.B().experiments.OB("enable_desktop_discovery_video_abandon_pings")||g.WL(v.S.B())}; zP8=function(v){return v.S.B().experiments.OB("enable_progres_commands_lr_feeds")}; Ru=function(v){return v.S.B().experiments.OB("html5_cuepoint_identifier_logging")}; nBm=function(v){switch(v){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}}; dzw=function(){g.qU.call(this);var v=this;this.T={};this.addOnDisposeCallback(function(){for(var J=g.n(Object.keys(v.T)),G=J.next();!G.done;G=J.next())delete v.T[G.value]})}; Fw=function(){if(s0w===null){s0w=new dzw;UX(l4).X="b";var v=UX(l4),J=IJ(v)=="h"||IJ(v)=="b",G=!(ZQ(),!1);J&&G&&(v.J=!0,v.j=new wuj)}return s0w}; RPw=function(v,J,G){v.T[J]=G}; lOt=function(v){switch(v){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}}; Hl=function(v,J,G){this.L7=v;this.S=J;this.cH=G;this.X=new Set;this.T=new Map;Fw().subscribe("adactiveviewmeasurable",this.Q3,this);Fw().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Tq,this);Fw().subscribe("adviewableimpression",this.tY,this);Fw().subscribe("adaudioaudible",this.uH,this);Fw().subscribe("adaudiomeasurable",this.oU,this)}; QD=function(v,J,G){var K=G.KH,V=G.Of,Y=G.listener,r=G.kJ;G=G.SU===void 0?!1:G.SU;if(v.T.has(J))Ps("Unexpected registration of layout in LidarApi");else{if(r){if(v.X.has(r))return;v.X.add(r)}v.T.set(J,Y);rn(ZQ().Fu,"fmd",1);X_U(UX(l4),K);var E=G?J:void 0;RPw(Fw(),J,{Hg:function(){if(!V)return{};var e=v.S.getPresentingPlayerType(!0),P;return(P=v.S.getVideoData(e))!=null&&P.isAd()?{currentTime:v.L7.get().getCurrentTimeSec(e,!1,E),duration:V,isPlaying:MQ(v.L7.get(),e).isPlaying(),isVpaid:!1,isYouTube:!0, volume:v.L7.get().isMuted()?0:v.L7.get().getVolume()/100}:{}}})}}; Wl=function(v,J){v.T.has(J)?(v.T.delete(J),delete Fw().T[J]):Ps("Unexpected unregistration of layout in LidarApi")}; TNm=function(v,J){if(v.S.isLifaAdPlaying()){var G=v.S.Tg(!0,!0);v.Ux(J,G.width*.5*1.1,G.height*.25*1.1,G.width*.5*.9,G.height*.5*.9)}}; y7w=function(v,J,G){var K={};pcw(v,K,J,G);LnL(K);K.LACT=Cc(function(){return yy().toString()}); K.VIS=Cc(function(){return v.getVisibilityState().toString()}); K.SDKV="h.3.0";K.VOL=Cc(function(){return v.isMuted()?"0":Math.round(v.getVolume()).toString()}); K.VED="";return K}; wcm=function(v,J){var G={};if(J)return G;if(!v.kind)return g.fW(Error("AdPlacementConfig without kind")),G;if(v.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||v.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!v.adTimeOffset||!v.adTimeOffset.offsetStartMilliseconds)return g.fW(Error("malformed AdPlacementConfig")),G;G.MIDROLL_POS=Cc(sF(Math.round(qi(v.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else G.MIDROLL_POS=Cc(sF("0"));return G}; Cc=function(v){return{toString:function(){return v()}}}; OAB=function(v,J,G){function K(E,e){(e=G[e])&&(Y[E]=e)} function V(E,e){(e=G[e])&&(Y[E]=r(e))} if(!G||g.Xb(G))return v;var Y=Object.assign({},v),r=J?encodeURIComponent:function(E){return E}; V("DV_VIEWABILITY","doubleVerifyViewability");V("IAS_VIEWABILITY","integralAdsViewability");V("MOAT_INIT","moatInit");V("MOAT_VIEWABILITY","moatViewability");K("GOOGLE_VIEWABILITY","googleViewability");K("VIEWABILITY","viewability");return Y}; pcw=function(v,J,G,K){J.CPN=Cc(function(){var V;(V=v.getVideoData(1))?V=V.clientPlaybackNonce:(g.Zl(Error("Video data is null.")),V=null);return V}); J.AD_MT=Cc(function(){if(K!=null)var V=K;else{var Y=G;v.B().C("html5_ssap_use_cpn_to_get_time")||(Y=void 0);if(v.B().C("enable_h5_shorts_ad_fill_ad_mt_macro")||v.B().C("enable_desktop_discovery_pings_ad_mt_macro")||g.WL(v.B())){var r=v.getPresentingPlayerType(!0),E;V=((E=v.getVideoData(r))==null?0:E.isAd())?Uzj(v,r,Y):0}else V=Uzj(v,2,Y)}return Math.round(Math.max(0,V*1E3)).toString()}); J.MT=Cc(function(){return Math.round(Math.max(0,v.getCurrentTime(1,!1)*1E3)).toString()}); J.P_H=Cc(function(){return v.f7().mX().height.toString()}); J.P_W=Cc(function(){return v.f7().mX().width.toString()}); J.PV_H=Cc(function(){return v.f7().getVideoContentRect().height.toString()}); J.PV_W=Cc(function(){return v.f7().getVideoContentRect().width.toString()})}; LnL=function(v){v.CONN=Cc(sF("0"));v.WT=Cc(function(){return Date.now().toString()})}; Uzj=function(v,J,G){return G!==void 0?v.getCurrentTime(J,!1,G):v.getCurrentTime(J,!1)}; xzw=function(){}; mzX=function(v,J,G,K,V){var Y,r,E,e,P,D,t,B,I,h,R,T,L;g.m(function(O){switch(O.T){case 1:Y=!!J.scrubReferrer;r=g.w0(J.baseUrl,OAB(G,Y,K));E={};if(!J.headers){O.sB(2);break}e=v.L();if(!e.T){P=e.getValue();O.sB(3);break}return g.U(O,e.T,4);case 4:P=O.X;case 3:D=P;t=g.n(J.headers);for(B=t.next();!B.done;B=t.next())switch(I=B.value,I.headerType){case "VISITOR_ID":g.H$("VISITOR_DATA")&&(E["X-Goog-Visitor-Id"]=g.H$("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.H$("EOM_VISITOR_DATA")&&(E["X-Goog-EOM-Visitor-Id"]= g.H$("EOM_VISITOR_DATA"));break;case "USER_AUTH":D&&(E.Authorization="Bearer "+D);break;case "PLUS_PAGE_ID":(h=v.J())&&(E["X-Goog-PageId"]=h);break;case "AUTH_USER":R=v.T();!D&&R&&(E["X-Goog-AuthUser"]=R);break;case "DATASYNC_ID":if(T=void 0,(T=v.Z())==null?0:T.OB("enable_datasync_id_header_in_web_vss_pings"))L=v.X(),Y6(r)&&g.H$("LOGGED_IN")&&L&&(E["X-YouTube-DataSync-Id"]=L)}"X-Goog-EOM-Visitor-Id"in E&&"X-Goog-Visitor-Id"in E&&delete E["X-Goog-Visitor-Id"];case 2:g.cO(r,void 0,Y,Object.keys(E).length!== 0?E:void 0,"",!0,V),g.zX(O)}})}; SVr=function(v,J,G,K,V){this.L=v;this.J=J;this.T=G;this.X=K;this.Z=V}; fOs=function(v,J){this.T=v;this.cH=J}; bn=function(v,J,G,K,V,Y,r){var E=E===void 0?new SVr(function(){var e=v.B(),P=v.getVideoData(1);return g.KS(e,P?g.cm(P):"")},function(){return v.B().pageId},function(){return v.B().dh},function(){var e; return(e=v.B().datasyncId)!=null?e:""},function(){return v.B().experiments}):E; this.S=v;this.X=J;this.AR=G;this.C7=K;this.K0=V;this.cH=Y;this.gp=r;this.L=E;this.Jp=null;this.T=new Map;this.Z=new fOs(E,this.cH)}; uCU=function(v,J,G,K,V){var Y=Ur(v.X.get(),G);Y?(G=OI(v,ZA2(Y),Y,void 0,void 0,K),J.hasOwnProperty("baseUrl")?v.L.send(J,G):v.Z.send(J,G,{},V)):Ps("Trying to ping from an unknown layout",void 0,void 0,{layoutId:G})}; IHw=function(v,J,G,K,V,Y){K=K===void 0?[]:K;var r=Ur(v.X.get(),J);if(r){var E=v.AR.get().LJ(J,G),e=OI(v,ZA2(r),r,V,Y);K.forEach(function(P,D){P.baseUrl&&(v.Z.send(P.baseUrl,e,E,P.attributionSrcMode),P.serializedAdPingMetadata&&v.K0.Dk("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,r,new WfU(P,D),void 0,void 0,r.adLayoutLoggingData))})}else Ps("Trying to track from an unknown layout.",void 0,void 0,{layoutId:J, trackingType:G})}; R8=function(v,J){v.S.sendVideoStatsEngageEvent(J,void 0,2)}; j_=function(v,J){g.ql("adsClientStateChange",J)}; gBw=function(v,J){v.T.has(J.KX())?Ps("Trying to register an existing AdErrorInfoSupplier."):v.T.set(J.KX(),J)}; Xct=function(v,J){v.T.delete(J.KX())||Ps("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; vD=function(v,J,G){typeof G==="string"?v.S.getVideoData(1).SG(J,G):v.S.getVideoData(1).uw(J,G)}; ZA2=function(v){var J=VW(v.clientMetadata,"metadata_type_ad_placement_config");v=VW(v.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:J,Vw:v}}; OI=function(v,J,G,K,V,Y){var r=G?kJL(v):{},E=G?c7w(v,G.layoutId):{},e=NNm(v),P,D=V!=null?V:(P=Is(v.C7.get(),2))==null?void 0:P.clientPlaybackNonce;V=void 0;if(G){var t;if((t=v.gp.T.get(G.layoutId))==null?0:t.SU)V=G.layoutId}t={};v=Object.assign({},y7w(v.S,V,K),wcm(J.adPlacementConfig,(G==null?void 0:G.renderingContent)!==void 0),E,r,e,(t.FINAL=Cc(function(){return"1"}),t.AD_CPN=Cc(function(){return D||""}),t)); (G==null?void 0:G.renderingContent)!==void 0||(v.SLOT_POS=Cc(function(){return(J.Vw||0).toString()})); G={};Y=Object.assign({},v,Y);v=g.n(Object.values(aOr));for(K=v.next();!K.done;K=v.next())K=K.value,r=Y[K],r!=null&&r.toString()!=null&&(G[K]=r.toString());return G}; kJL=function(v){var J={},G,K=(G=v.Jp)==null?void 0:G.CZ/1E3;K!=null&&(J.SURVEY_ELAPSED_MS=Cc(function(){return Math.round(K*1E3).toString()})); J.SURVEY_LOCAL_TIME_EPOCH_S=Cc(function(){return Math.round(Date.now()/1E3).toString()}); return J}; c7w=function(v,J){v=v.T.get(J);if(!v)return{};v=v.rR();if(!v)return{};J={};return J.YT_ERROR_CODE=v.AE.toString(),J.ERRORCODE=v.xd.toString(),J.ERROR_MSG=v.errorMessage,J}; NNm=function(v){var J={},G=v.S.getVideoData(1);J.ASR=Cc(function(){var K;return(K=G==null?void 0:G.oG)!=null?K:null}); J.EI=Cc(function(){var K;return(K=G==null?void 0:G.eventId)!=null?K:null}); return J}; jY=function(v,J,G){g.X.call(this);this.S=v;this.Mw=J;this.cH=G;this.listeners=[];this.GM=null;this.A_=new Map;J=new g.Zs(this);g.k(this,J);J.G(v,"videodatachange",this.iiw);J.G(v,"serverstitchedvideochange",this.n2B);this.rQ=Is(this)}; Is=function(v,J){var G=v.S.getVideoData(J);return G?v.zf(G,J||v.S.getPresentingPlayerType(!0)):null}; A7j=function(v,J,G){var K=v.zf(J,G);v.rQ=K;v.listeners.forEach(function(V){V.O7(K)})}; FnF=function(v){switch(v){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}}; iQ=function(v,J,G){g.X.call(this);this.S=v;this.C7=J;this.cH=G;this.listeners=[];this.NA=[];this.T=function(){Ps("Called 'doUnlockPreroll' before it's initialized.")}; J=new yC(this);G=new g.Zs(this);g.k(this,G);g.k(this,J);J.G(v,"progresssync",this.amh);J.G(v,"presentingplayerstatechange",this.jAi);J.G(v,"fullscreentoggled",this.onFullscreenToggled);J.G(v,"onVolumeChange",this.onVolumeChange);J.G(v,"minimized",this.ip);J.G(v,"overlayvisibilitychange",this.ov);J.G(v,"shortsadswipe",this.Qt);J.G(v,"resize",this.E$);G.G(v,g.VG("appad"),this.HC)}; $W=function(v){Ae(v.cH.get())||v.T()}; HAf=function(v,J){v.NA=v.NA.filter(function(G){return G!==J})}; v4=function(v,J,G){return v.getCurrentTimeSec(J,G)}; MBm=function(v,J){var G;J=(G=v.C7.get().A_.get(J))!=null?G:null;if(J===null)return Ps("Expected ad video start time on playback timeline"),0;v=v.S.getCurrentTime(2,!0);return v0){var Y=J.end.toString();V.forEach(function(r){(r=r.config&&r.config.adPlacementConfig)&&r.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&r.adTimeOffset&&r.adTimeOffset.offsetEndMilliseconds==="-1"&&r.adTimeOffset.offsetEndMilliseconds!==Y&&(r.adTimeOffset.offsetEndMilliseconds=Y)}); K.map(function(r){return g.N(r,kc)}).forEach(function(r){var E; (r=r==null?void 0:(E=r.slotEntryTrigger)==null?void 0:E.mediaTimeRangeTrigger)&&r.offsetEndMilliseconds==="-1"&&(r.offsetEndMilliseconds=Y)})}return{nx:V, adSlots:K,fb:!1,ssdaiAdsConfig:v.ssdaiAdsConfig}}; V1=function(v){g.X.call(this);this.S=v;this.listeners=[];this.T=new yC(this);g.k(this,this.T);this.T.G(this.S,"aduxclicked",this.onAdUxClicked);this.T.G(this.S,"aduxmouseover",this.Af);this.T.G(this.S,"aduxmouseout",this.bS);this.T.G(this.S,"muteadaccepted",this.N_4)}; jtL=function(v,J,G){J=g.yn(J,function(K){return new mlL(K,G,K.id)}); v.S.lw("onAdUxUpdate",J)}; YW=function(v,J){v=g.n(v.listeners);for(var G=v.next();!G.done;G=v.next())J(G.value)}; rX=function(v,J){this.X=v;this.Z=J===void 0?!1:J;this.T={}}; iUf=function(v,J){var G=v.startSecs+v.ON;G=G<=0?null:G;if(G===null)return null;switch(v.event){case "start":case "continue":case "stop":break;case "predictStart":if(J)break;return null;default:return null}J=Math.max(v.startSecs,0);return{Sx:new l6(J,G),Vll:new NB(J,G-J,v.context,v.identifier,v.event,v.T)}}; $OF=function(){this.T=[]}; D0w=function(v,J,G){var K=g.YY(v.T,J);if(K>=0)return J;J=-K-1;return J>=v.T.length||v.T[J]>G?null:v.T[J]}; qF=function(v,J,G){g.X.call(this);this.S=v;this.cH=J;this.F4=G;this.listeners=[];this.L=!1;this.EP=[];this.T=null;this.J=new rX(this,tBw(J.get()));this.Z=new $OF;this.X=null}; viw=function(v,J){v.EP.push(J);for(var G=!1,K=g.n(v.listeners),V=K.next();!V.done;V=K.next())G=V.value.iS(J)||G;v.L=G;Ru(v.cH.get())&&vD(v.F4.get(),"onci","cpi."+J.identifier+";cpe."+J.event+";cps."+J.startSecs+";cbi."+G)}; GFm=function(v,J){j_(v.F4.get(),{cuepointTrigger:{event:JRr(J.event),cuepointId:J.identifier,totalCueDurationMs:J.ON*1E3,playheadTimeMs:J.T,cueStartTimeMs:J.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:v.S.getVideoData(1).clientPlaybackNonce}})}; JRr=function(v){switch(v){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 Vu(v,"Unexpected cuepoint event")}}; Eg=function(v){this.S=v}; oij=function(v,J){v.S.cueVideoByPlayerVars(J,2)}; eY=function(v){this.S=v}; P4=function(v){this.S=v}; KPm=function(v){switch(v){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:Vu(v,"unknown transitionReason")}}; VS2=function(v){this.S=v}; Y$m=function(v,J,G,K,V){g.X.call(this);var Y=this,r=NV(function(){return new C3(Y.cH)}); g.k(this,r);var E=NV(function(){return new jZ(r,Y.cH)}); g.k(this,E);var e=NV(function(){return new w2}); g.k(this,e);var P=NV(function(){return new L3(v)}); g.k(this,P);var D=NV(function(){return new i1(r,E,Y.cH)}); g.k(this,D);var t=NV(function(){return new oh}); g.k(this,t);this.AP=NV(function(){return new V1(J)}); g.k(this,this.AP);this.Yy=NV(function(){return new AQ(V)}); g.k(this,this.Yy);this.Su=NV(function(){return new k0(J)}); g.k(this,this.Su);this.RH=NV(function(){return new cl(J)}); g.k(this,this.RH);this.fK=NV(function(){return new Eg(J)}); g.k(this,this.fK);this.hP=NV(function(){return new NQ(J)}); g.k(this,this.hP);this.cH=NV(function(){return new aF(J)}); g.k(this,this.cH);var B=NV(function(){return new K$(K)}); g.k(this,B);var I=NV(function(){return new tQ(Y.cH)}); g.k(this,I);this.O9=NV(function(){return new eY(J)}); g.k(this,this.O9);this.CQ=NV(function(){return new MV}); g.k(this,this.CQ);this.C7=NV(function(){return new jY(J,t,Y.cH)}); g.k(this,this.C7);var h=gG({C7:this.C7,cH:this.cH,X5:I}),R=h.context,T=h.gp;this.K0=h.K0;this.Vj=NV(function(){return new qF(J,Y.cH,Y.F4)}); g.k(this,this.Vj);this.pK=NV(function(){return new P4(J)}); g.k(this,this.pK);this.L7=NV(function(){return new iQ(J,Y.C7,Y.cH)}); g.k(this,this.L7);h=NV(function(){return new hX(r,D,E,Y.cH,I,"SLOT_TYPE_ABOVE_FEED",Y.L7,Y.Iv,Y.hI)}); g.k(this,h);this.wJ=NV(function(){return new QW(Y.cH)}); this.AR=NV(function(){return new Hl(Y.L7,J,Y.cH)}); g.k(this,this.AR);this.F4=NV(function(){return new bn(J,e,Y.AR,Y.C7,Y.K0,Y.cH,T)}); g.k(this,this.F4);this.vx=new Td(lz,Db,function(O,x,f,c){return iz(E.get(),O,x,f,c)},P,D,E,I,this.cH,this.C7); g.k(this,this.vx);this.Y5=new p3(P,h,G,this.cH,v,this.C7,this.L7,this.Su);g.k(this,this.Y5);var L=new Xw(J,this.Y5,this.L7,this.C7,this.Vj);this.rM=NV(function(){return L}); this.bH=L;this.Iv=new d2(P,D,this.rM,this.Vj,this.L7,this.cH,this.F4,this.pK);g.k(this,this.Iv);this.NL=new yT(P,D,this.RH,this.rM,R);g.k(this,this.NL);this.S3=new gc(this.cH,P,D,h,this.C7,this.NL,G);g.k(this,this.S3);this.JF=NV(function(){return new D3(B,E,I,Y.cH,Y.F4,Y.L7,Y.pK)}); g.k(this,this.JF);this.Li=NV(function(){return new t6}); g.k(this,this.Li);this.Cs=new Zq(v,this.AP,this.cH);g.k(this,this.Cs);this.W$=new uz(v);g.k(this,this.W$);this.Ua=new g2(v);g.k(this,this.Ua);this.Tv=new kR(v,this.rM,R);g.k(this,this.Tv);this.T4=new cg(v,this.RH,this.L7,this.C7,R);g.k(this,this.T4);this.Ik=new NW(v,this.C7);g.k(this,this.Ik);this.hI=new FY(v,this.Vj,this.L7,this.F4,this.rM);g.k(this,this.hI);this.q1=new au(v);g.k(this,this.q1);this.CY=new Wg(v);g.k(this,this.CY);this.gE=new AX(v);g.k(this,this.gE);this.aU=new QT(v);g.k(this,this.aU); this.CY=new Wg(v);g.k(this,this.CY);this.gJ=NV(function(){return new xR}); g.k(this,this.gJ);this.sA=NV(function(){return new mX(Y.L7)}); g.k(this,this.sA);this.Ih=NV(function(){return new uVw(Y.AP,Y.F4,v,e,Y.AR)}); g.k(this,this.Ih);this.jF=NV(function(){return new jR(Y.S3,P,r)}); g.k(this,this.jF);this.xv=NV(function(){return new vE(Y.cH,Y.F4,Y.q1,Y.AR)}); g.k(this,this.xv);this.MP=NV(function(){return new qJ(v,Y.CY,Y.q1,Y.C7,Y.pK,Y.L7,Y.F4,t,Y.Vj,Y.AR,Y.wJ,Y.fK,Y.RH,Y.Su,Y.hP,Y.Yy,Y.O9,Y.cH,e,R,T)}); g.k(this,this.MP);this.sb=NV(function(){return new bRm(Y.L7,Y.F4,Y.Yy,Y.cH,Y.AR,Y.C7)}); g.k(this,this.sb);this.LW=NV(function(){return new gnF(Y.AP,Y.L7,Y.F4,e,Y.AR,Y.Ua,Y.aU,Y.Yy,Y.cH,G)}); g.k(this,this.LW);this.yU=NV(function(){return new gPj(Y.AP,Y.F4,e)}); g.k(this,this.yU);this.oy=new oX(v,this.CQ,r);g.k(this,this.oy);this.hm={aS:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.S3],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Iv],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.vx],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Y5],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.NL]]),Nw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.JF],["SLOT_TYPE_ABOVE_FEED",this.Li],["SLOT_TYPE_FORECASTING",this.Li], ["SLOT_TYPE_IN_PLAYER",this.Li],["SLOT_TYPE_PLAYER_BYTES",this.Li],["SLOT_TYPE_PLAYER_UNDERLAY",this.Li],["SLOT_TYPE_PLAYBACK_TRACKING",this.Li],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Li]]),Kd:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Cs],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Cs],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.W$],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.W$],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.W$],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.W$],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.W$],["TRIGGER_TYPE_SLOT_ID_EXITED",this.W$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.W$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.W$],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.W$],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.W$],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.W$],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ua],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Tv],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.T4],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.T4],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.T4],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.T4],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.T4],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.T4],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.T4],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ik],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ik],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.q1],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Tv],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.gE],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.aU],["TRIGGER_TYPE_AD_BREAK_STARTED",this.CY],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.hI],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.hI],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.hI],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.hI],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.hI]]),YU:new Map([["SLOT_TYPE_ABOVE_FEED",this.gJ], ["SLOT_TYPE_AD_BREAK_REQUEST",this.gJ],["SLOT_TYPE_FORECASTING",this.gJ],["SLOT_TYPE_IN_PLAYER",this.gJ],["SLOT_TYPE_PLAYER_BYTES",this.sA],["SLOT_TYPE_PLAYER_UNDERLAY",this.gJ],["SLOT_TYPE_PLAYBACK_TRACKING",this.gJ],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.gJ]]),KW:new Map([["SLOT_TYPE_ABOVE_FEED",this.Ih],["SLOT_TYPE_AD_BREAK_REQUEST",this.jF],["SLOT_TYPE_FORECASTING",this.xv],["SLOT_TYPE_PLAYER_BYTES",this.MP],["SLOT_TYPE_PLAYBACK_TRACKING",this.sb],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.sb],["SLOT_TYPE_IN_PLAYER",this.LW],["SLOT_TYPE_PLAYER_UNDERLAY",this.yU]])};this.listeners=[e.get()];this.LR={S3:this.S3,hV:this.cH.get(),rh:this.Yy.get(),w9:this.L7.get(),Y5:this.Y5,dT:r.get(),G$:this.CQ.get(),KQ:this.Cs,eR:e.get(),s9:this.C7.get()}}; rRw=function(v,J,G,K,V){g.X.call(this);var Y=this,r=NV(function(){return new C3(Y.cH)}); g.k(this,r);var E=NV(function(){return new jZ(r,Y.cH)}); g.k(this,E);var e=NV(function(){return new w2}); g.k(this,e);var P=NV(function(){return new L3(v)}); g.k(this,P);var D=NV(function(){return new i1(r,E,Y.cH)}); g.k(this,D);var t=NV(function(){return new oh}); g.k(this,t);this.AP=NV(function(){return new V1(J)}); g.k(this,this.AP);this.Yy=NV(function(){return new AQ(V)}); g.k(this,this.Yy);this.Su=NV(function(){return new k0(J)}); g.k(this,this.Su);this.RH=NV(function(){return new cl(J)}); g.k(this,this.RH);this.fK=NV(function(){return new Eg(J)}); g.k(this,this.fK);this.hP=NV(function(){return new NQ(J)}); g.k(this,this.hP);this.cH=NV(function(){return new aF(J)}); g.k(this,this.cH);var B=NV(function(){return new K$(K)}); g.k(this,B);var I=NV(function(){return new tQ(Y.cH)}); g.k(this,I);var h=NV(function(){return new hX(r,D,E,Y.cH,I,null,null,Y.Iv,Y.hI)}); g.k(this,h);this.O9=NV(function(){return new eY(J)}); g.k(this,this.O9);this.CQ=NV(function(){return new MV}); g.k(this,this.CQ);this.C7=NV(function(){return new jY(J,t,Y.cH)}); g.k(this,this.C7);var R=gG({C7:this.C7,cH:this.cH,X5:I}),T=R.context,L=R.gp;this.K0=R.K0;this.Vj=NV(function(){return new qF(J,Y.cH,Y.F4)}); this.L7=NV(function(){return new iQ(J,Y.C7,Y.cH)}); g.k(this,this.L7);this.AR=NV(function(){return new Hl(Y.L7,J,Y.cH)}); g.k(this,this.AR);this.F4=NV(function(){return new bn(J,e,Y.AR,Y.C7,Y.K0,Y.cH,L)}); g.k(this,this.F4);this.wJ=NV(function(){return new QW(Y.cH)}); g.k(this,this.wJ);this.vx=new Td(lz,Db,function(x,f,c,b){return iz(E.get(),x,f,c,b)},P,D,E,I,this.cH,this.C7); g.k(this,this.vx);this.Y5=new p3(P,h,G,this.cH,v,this.C7,this.L7,this.Su);g.k(this,this.Y5);var O=new Xw(J,this.Y5,this.L7,this.C7,this.Vj);this.rM=NV(function(){return O}); this.bH=O;this.Iv=new d2(P,D,this.rM,this.Vj,this.L7,this.cH,this.F4);g.k(this,this.Iv);this.NL=new yT(P,D,this.RH,this.rM,T);g.k(this,this.NL);this.S3=new gc(this.cH,P,D,h,this.C7,this.NL,G);g.k(this,this.S3);this.JF=NV(function(){return new D3(B,E,I,Y.cH,Y.F4,Y.L7)}); g.k(this,this.JF);this.Li=NV(function(){return new t6}); g.k(this,this.Li);this.Cs=new Zq(v,this.AP,this.cH);g.k(this,this.Cs);this.W$=new uz(v);g.k(this,this.W$);this.Ua=new g2(v);g.k(this,this.Ua);this.Tv=new kR(v,this.rM,T);g.k(this,this.Tv);this.T4=new cg(v,this.RH,this.L7,this.C7,T);g.k(this,this.T4);this.q1=new au(v);g.k(this,this.q1);this.gE=new AX(v);g.k(this,this.gE);this.aU=new QT(v);g.k(this,this.aU);this.pK=NV(function(){return new P4(J)}); g.k(this,this.pK);this.CY=new Wg(v);g.k(this,this.CY);this.hI=new FY(v,this.Vj,this.L7,this.F4,this.rM);g.k(this,this.hI);this.gJ=NV(function(){return new xR}); g.k(this,this.gJ);this.sA=NV(function(){return new mX(Y.L7)}); g.k(this,this.sA);this.jF=NV(function(){return new jR(Y.S3,P,r)}); g.k(this,this.jF);this.xv=NV(function(){return new vE(Y.cH,Y.F4,Y.q1,Y.AR)}); g.k(this,this.xv);this.LW=NV(function(){return new XBm(Y.AP,Y.L7,Y.F4,e,Y.AR,Y.Ua,Y.aU,Y.Yy,Y.cH,G)}); g.k(this,this.LW);this.MP=NV(function(){return new Ek(v,Y.CY,Y.q1,Y.F4,Y.AR,Y.wJ,Y.fK,Y.C7,Y.L7,Y.RH,Y.Su,Y.hP,Y.Yy,Y.O9,Y.cH,Y.pK,T,L)}); g.k(this,this.MP);this.oy=new oX(v,this.CQ,r);g.k(this,this.oy);this.hm={aS:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.S3],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Iv],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.vx],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Y5],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.NL]]),Nw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.JF],["SLOT_TYPE_FORECASTING",this.Li],["SLOT_TYPE_IN_PLAYER",this.Li], ["SLOT_TYPE_PLAYER_BYTES",this.Li]]),Kd:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Cs],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.W$],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.W$],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.W$],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.W$],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.W$],["TRIGGER_TYPE_SLOT_ID_EXITED",this.W$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.W$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.W$],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.W$], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.W$],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ua],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Tv],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.T4],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.T4],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.T4],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.q1],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Tv],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.gE],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.aU],["TRIGGER_TYPE_AD_BREAK_STARTED",this.CY],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.hI],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.hI],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.hI],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.hI],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.hI]]),YU:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gJ],["SLOT_TYPE_FORECASTING",this.gJ],["SLOT_TYPE_IN_PLAYER",this.gJ],["SLOT_TYPE_PLAYER_BYTES",this.sA]]), KW:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jF],["SLOT_TYPE_FORECASTING",this.xv],["SLOT_TYPE_IN_PLAYER",this.LW],["SLOT_TYPE_PLAYER_BYTES",this.MP]])};this.listeners=[e.get()];this.LR={S3:this.S3,hV:this.cH.get(),rh:this.Yy.get(),w9:this.L7.get(),Y5:this.Y5,dT:r.get(),G$:this.CQ.get(),KQ:this.Cs,eR:e.get(),s9:this.C7.get()}}; q$s=function(v,J,G,K,V){g.X.call(this);var Y=this,r=NV(function(){return new C3(Y.cH)}); g.k(this,r);var E=NV(function(){return new jZ(r,Y.cH)}); g.k(this,E);var e=NV(function(){return new w2}); g.k(this,e);var P=NV(function(){return new L3(v)}); g.k(this,P);var D=NV(function(){return new i1(r,E,Y.cH)}); g.k(this,D);var t=NV(function(){return new oh}); g.k(this,t);this.AP=NV(function(){return new V1(J)}); g.k(this,this.AP);this.Yy=NV(function(){return new AQ(V)}); g.k(this,this.Yy);this.Su=NV(function(){return new k0(J)}); g.k(this,this.Su);this.RH=NV(function(){return new cl(J)}); g.k(this,this.RH);this.fK=NV(function(){return new Eg(J)}); g.k(this,this.fK);this.hP=NV(function(){return new NQ(J)}); g.k(this,this.hP);this.cH=NV(function(){return new aF(J)}); g.k(this,this.cH);var B=NV(function(){return new K$(K)}); g.k(this,B);var I=NV(function(){return new tQ(Y.cH)}); g.k(this,I);var h=NV(function(){return new hX(r,D,E,Y.cH,I,null,null,null,null)}); g.k(this,h);this.O9=NV(function(){return new eY(J)}); g.k(this,this.O9);this.C7=NV(function(){return new jY(J,t,Y.cH)}); g.k(this,this.C7);var R=gG({C7:this.C7,cH:this.cH,X5:I}),T=R.context,L=R.gp;this.K0=R.K0;this.L7=NV(function(){return new iQ(J,Y.C7,Y.cH)}); g.k(this,this.L7);this.AR=NV(function(){return new Hl(Y.L7,J,Y.cH)}); g.k(this,this.AR);this.F4=NV(function(){return new bn(J,e,Y.AR,Y.C7,Y.K0,Y.cH,L)}); g.k(this,this.F4);this.wJ=NV(function(){return new QW(Y.cH)}); g.k(this,this.wJ);this.vx=new Td(lz,Db,function(x,f,c,b){return iz(E.get(),x,f,c,b)},P,D,E,I,this.cH,this.C7); g.k(this,this.vx);this.Y5=new p3(P,h,G,this.cH,v,this.C7,this.L7,this.Su);g.k(this,this.Y5);var O=new Xw(J,this.Y5,this.L7,this.C7);this.rM=NV(function(){return O}); this.bH=O;this.NL=new yT(P,D,this.RH,this.rM,T);g.k(this,this.NL);this.S3=new gc(this.cH,P,D,h,this.C7,this.NL,G);g.k(this,this.S3);this.JF=NV(function(){return new D3(B,E,I,Y.cH,Y.F4,Y.L7)}); g.k(this,this.JF);this.Li=NV(function(){return new t6}); g.k(this,this.Li);this.Cs=new Zq(v,this.AP,this.cH);g.k(this,this.Cs);this.W$=new uz(v);g.k(this,this.W$);this.Tv=new kR(v,this.rM,T);g.k(this,this.Tv);this.T4=new cg(v,this.RH,this.L7,this.C7,T);g.k(this,this.T4);this.q1=new au(v);g.k(this,this.q1);this.gE=new AX(v);g.k(this,this.gE);this.pK=NV(function(){return new P4(J)}); g.k(this,this.pK);this.CY=new Wg(v);g.k(this,this.CY);this.gJ=NV(function(){return new xR}); g.k(this,this.gJ);this.sA=NV(function(){return new mX(Y.L7)}); g.k(this,this.sA);this.jF=NV(function(){return new jR(Y.S3,P,r)}); g.k(this,this.jF);this.xv=NV(function(){return new vE(Y.cH,Y.F4,Y.q1,Y.AR)}); g.k(this,this.xv);this.XL=NV(function(){return new C_r(Y.AP,Y.L7,Y.F4,e,G,Y.cH)}); g.k(this,this.XL);this.MP=NV(function(){return new Ek(v,Y.CY,Y.q1,Y.F4,Y.AR,Y.wJ,Y.fK,Y.C7,Y.L7,Y.RH,Y.Su,Y.hP,Y.Yy,Y.O9,Y.cH,Y.pK,T,L)}); g.k(this,this.MP);this.hm={aS:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.S3],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.vx],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Y5],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.NL]]),Nw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.JF],["SLOT_TYPE_FORECASTING",this.Li],["SLOT_TYPE_IN_PLAYER",this.Li],["SLOT_TYPE_PLAYER_BYTES",this.Li]]),Kd:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Cs],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.W$],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.W$],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.W$],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.W$],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.W$],["TRIGGER_TYPE_SLOT_ID_EXITED",this.W$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.W$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.W$],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.W$],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Tv],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.T4],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.T4],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.q1],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Tv],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.gE],["TRIGGER_TYPE_AD_BREAK_STARTED",this.CY]]),YU:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gJ],["SLOT_TYPE_ABOVE_FEED",this.gJ],["SLOT_TYPE_FORECASTING",this.gJ],["SLOT_TYPE_IN_PLAYER",this.gJ],["SLOT_TYPE_PLAYER_BYTES",this.sA]]),KW:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jF],["SLOT_TYPE_FORECASTING",this.xv],["SLOT_TYPE_IN_PLAYER", this.XL],["SLOT_TYPE_PLAYER_BYTES",this.MP]])};this.listeners=[e.get()];this.LR={S3:this.S3,hV:this.cH.get(),rh:this.Yy.get(),w9:this.L7.get(),Y5:this.Y5,dT:r.get(),G$:null,KQ:this.Cs,eR:e.get(),s9:this.C7.get()}}; EiF=function(v,J,G,K,V){g.X.call(this);var Y=this,r=NV(function(){return new C3(Y.cH)}); g.k(this,r);var E=NV(function(){return new jZ(r,Y.cH)}); g.k(this,E);var e=NV(function(){return new w2}); g.k(this,e);var P=NV(function(){return new L3(v)}); g.k(this,P);var D=NV(function(){return new i1(r,E,Y.cH)}); g.k(this,D);var t=NV(function(){return new oh}); g.k(this,t);this.ij=NV(function(){return new VS2(J)}); g.k(this,this.ij);this.AP=NV(function(){return new V1(J)}); g.k(this,this.AP);this.Yy=NV(function(){return new AQ(V)}); g.k(this,this.Yy);this.Su=NV(function(){return new k0(J)}); g.k(this,this.Su);this.RH=NV(function(){return new cl(J)}); g.k(this,this.RH);this.fK=NV(function(){return new Eg(J)}); g.k(this,this.fK);this.hP=NV(function(){return new NQ(J)}); g.k(this,this.hP);this.cH=NV(function(){return new aF(J)}); g.k(this,this.cH);var B=NV(function(){return new K$(K)}); g.k(this,B);var I=NV(function(){return new tQ(Y.cH)}); g.k(this,I);var h=NV(function(){return new hX(r,D,E,Y.cH,I,null,null,null,null)}); g.k(this,h);this.O9=NV(function(){return new eY(J)}); g.k(this,this.O9);this.C7=NV(function(){return new jY(J,t,Y.cH)}); g.k(this,this.C7);var R=gG({C7:this.C7,cH:this.cH,X5:I}),T=R.context,L=R.gp;this.K0=R.K0;this.L7=NV(function(){return new iQ(J,Y.C7,Y.cH)}); g.k(this,this.L7);this.AR=NV(function(){return new Hl(Y.L7,J,Y.cH)}); g.k(this,this.AR);this.F4=NV(function(){return new bn(J,e,Y.AR,Y.C7,Y.K0,Y.cH,L)}); g.k(this,this.F4);this.wJ=NV(function(){return new QW(Y.cH)}); g.k(this,this.wJ);this.vx=new Td(RaU,Db,function(x,f,c,b){return AcF(E.get(),x,f,c,b)},P,D,E,I,this.cH,this.C7); g.k(this,this.vx);this.Y5=new p3(P,h,G,this.cH,v,this.C7,this.L7,this.Su);g.k(this,this.Y5);var O=new Xw(J,this.Y5,this.L7,this.C7);this.rM=NV(function(){return O}); this.bH=O;this.NL=new yT(P,D,this.RH,this.rM,T);g.k(this,this.NL);this.S3=new gc(this.cH,P,D,h,this.C7,this.NL,G);g.k(this,this.S3);this.JF=NV(function(){return new D3(B,E,I,Y.cH,Y.F4,Y.L7)}); g.k(this,this.JF);this.Li=NV(function(){return new t6}); g.k(this,this.Li);this.Cs=new Zq(v,this.AP,this.cH);g.k(this,this.Cs);this.W$=new uz(v);g.k(this,this.W$);this.Tv=new kR(v,this.rM,T);g.k(this,this.Tv);this.T4=new cg(v,this.RH,this.L7,this.C7,T);g.k(this,this.T4);this.q1=new au(v);g.k(this,this.q1);this.gE=new AX(v);g.k(this,this.gE);this.pK=NV(function(){return new P4(J)}); g.k(this,this.pK);this.CY=new Wg(v);g.k(this,this.CY);this.gJ=NV(function(){return new xR}); g.k(this,this.gJ);this.sA=NV(function(){return new mX(Y.L7)}); g.k(this,this.sA);this.jF=NV(function(){return new jR(Y.S3,P,r)}); g.k(this,this.jF);this.xv=NV(function(){return new vE(Y.cH,Y.F4,Y.q1,Y.AR)}); g.k(this,this.xv);this.MP=NV(function(){return new Ek(v,Y.CY,Y.q1,Y.F4,Y.AR,Y.wJ,Y.fK,Y.C7,Y.L7,Y.RH,Y.Su,Y.hP,Y.Yy,Y.O9,Y.cH,Y.pK,T,L)}); g.k(this,this.MP);this.Oz=NV(function(){return new cuj(Y.AP,Y.L7,Y.F4,e,Y.ij,G,Y.C7)}); g.k(this,this.Oz);this.hm={aS:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.S3],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.vx],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Y5],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.NL]]),Nw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.JF],["SLOT_TYPE_FORECASTING",this.Li],["SLOT_TYPE_IN_PLAYER",this.Li],["SLOT_TYPE_PLAYER_BYTES",this.Li]]),Kd:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Cs],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.W$],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.W$],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.W$],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.W$],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.W$],["TRIGGER_TYPE_SLOT_ID_EXITED",this.W$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.W$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.W$],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.W$],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Tv],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.T4],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.T4],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.q1],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Tv],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.gE],["TRIGGER_TYPE_AD_BREAK_STARTED",this.CY]]),YU:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gJ],["SLOT_TYPE_FORECASTING",this.gJ],["SLOT_TYPE_IN_PLAYER",this.gJ],["SLOT_TYPE_PLAYER_BYTES",this.sA]]),KW:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jF],["SLOT_TYPE_FORECASTING",this.xv],["SLOT_TYPE_IN_PLAYER",this.Oz],["SLOT_TYPE_PLAYER_BYTES", this.MP]])};this.listeners=[e.get()];this.LR={S3:this.S3,hV:this.cH.get(),rh:this.Yy.get(),w9:this.L7.get(),Y5:this.Y5,dT:r.get(),G$:null,KQ:this.Cs,eR:e.get(),s9:this.C7.get()}}; eRF=function(v,J,G,K,V){g.X.call(this);var Y=this,r=NV(function(){return new C3(Y.cH)}); g.k(this,r);var E=NV(function(){return new jZ(r,Y.cH)}); g.k(this,E);var e=NV(function(){return new w2}); g.k(this,e);var P=NV(function(){return new L3(v)}); g.k(this,P);var D=NV(function(){return new i1(r,E,Y.cH)}); g.k(this,D);var t=NV(function(){return new oh}); g.k(this,t);this.ij=NV(function(){return new VS2(J)}); g.k(this,this.ij);this.AP=NV(function(){return new V1(J)}); g.k(this,this.AP);this.Yy=NV(function(){return new AQ(V)}); g.k(this,this.Yy);this.Su=NV(function(){return new k0(J)}); g.k(this,this.Su);this.RH=NV(function(){return new cl(J)}); g.k(this,this.RH);this.fK=NV(function(){return new Eg(J)}); g.k(this,this.fK);this.hP=NV(function(){return new NQ(J)}); g.k(this,this.hP);this.cH=NV(function(){return new aF(J)}); g.k(this,this.cH);var B=NV(function(){return new K$(K)}); g.k(this,B);var I=NV(function(){return new tQ(Y.cH)}); g.k(this,I);this.O9=NV(function(){return new eY(J)}); g.k(this,this.O9);this.C7=NV(function(){return new jY(J,t,Y.cH)}); g.k(this,this.C7);var h=gG({C7:this.C7,cH:this.cH,X5:I}),R=h.context,T=h.gp;this.K0=h.K0;this.Vj=NV(function(){return new qF(J,Y.cH,Y.F4)}); g.k(this,this.Vj);this.pK=NV(function(){return new P4(J)}); g.k(this,this.pK);this.L7=NV(function(){return new iQ(J,Y.C7,Y.cH)}); g.k(this,this.L7);h=NV(function(){return new hX(r,D,E,Y.cH,I,null,Y.L7,Y.Iv,Y.hI,3)}); g.k(this,h);this.wJ=NV(function(){return new QW(Y.cH)}); this.AR=NV(function(){return new Hl(Y.L7,J,Y.cH)}); g.k(this,this.AR);this.F4=NV(function(){return new bn(J,e,Y.AR,Y.C7,Y.K0,Y.cH,T)}); g.k(this,this.F4);this.Y5=new p3(P,h,G,this.cH,v,this.C7,this.L7,this.Su);g.k(this,this.Y5);var L=new Xw(J,this.Y5,this.L7,this.C7,this.Vj);this.rM=NV(function(){return L}); this.bH=L;this.vx=new Td(lBw,Db,function(O,x,f,c){return AcF(E.get(),O,x,f,c)},P,D,E,I,this.cH,this.C7); g.k(this,this.vx);this.Iv=new d2(P,D,this.rM,this.Vj,this.L7,this.cH,this.F4,this.pK);g.k(this,this.Iv);this.NL=new yT(P,D,this.RH,this.rM,R);g.k(this,this.NL);this.S3=new gc(this.cH,P,D,h,this.C7,this.NL,G);g.k(this,this.S3);this.JF=NV(function(){return new D3(B,E,I,Y.cH,Y.F4,Y.L7,Y.pK)}); g.k(this,this.JF);this.Li=NV(function(){return new t6}); g.k(this,this.Li);this.Cs=new Zq(v,this.AP,this.cH);g.k(this,this.Cs);this.W$=new uz(v);g.k(this,this.W$);this.Tv=new kR(v,this.rM,R);g.k(this,this.Tv);this.T4=new cg(v,this.RH,this.L7,this.C7,R);g.k(this,this.T4);this.Ik=new NW(v,this.C7);g.k(this,this.Ik);this.hI=new FY(v,this.Vj,this.L7,this.F4,this.rM);g.k(this,this.hI);this.q1=new au(v);g.k(this,this.q1);this.gE=new AX(v);g.k(this,this.gE);this.CY=new Wg(v);g.k(this,this.CY);this.gJ=NV(function(){return new xR}); g.k(this,this.gJ);this.sA=NV(function(){return new mX(Y.L7)}); g.k(this,this.sA);this.jF=NV(function(){return new jR(Y.S3,P,r)}); g.k(this,this.jF);this.xv=NV(function(){return new vE(Y.cH,Y.F4,Y.q1,Y.AR)}); g.k(this,this.xv);this.MP=NV(function(){return new qJ(v,Y.CY,Y.q1,Y.C7,Y.pK,Y.L7,Y.F4,t,Y.Vj,Y.AR,Y.wJ,Y.fK,Y.RH,Y.Su,Y.hP,Y.Yy,Y.O9,Y.cH,e,R,T)}); g.k(this,this.MP);this.LW=NV(function(){return new NaX(Y.AP,Y.L7,Y.F4,e,Y.ij,G,Y.cH,Y.C7)}); g.k(this,this.LW);this.hm={aS:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.S3],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Iv],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.vx],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Y5],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.NL]]),Nw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.JF],["SLOT_TYPE_FORECASTING",this.Li],["SLOT_TYPE_IN_PLAYER",this.Li],["SLOT_TYPE_PLAYER_BYTES",this.Li]]),Kd:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.Cs],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.W$],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.W$],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.W$],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.W$],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.W$],["TRIGGER_TYPE_SLOT_ID_EXITED",this.W$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.W$],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.W$],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.W$],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Tv],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.T4],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.T4],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ik],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ik],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.q1],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Tv],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.gE],["TRIGGER_TYPE_AD_BREAK_STARTED",this.CY],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.hI],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.hI],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.hI],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.hI],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.hI]]),YU:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gJ],["SLOT_TYPE_FORECASTING",this.gJ],["SLOT_TYPE_IN_PLAYER",this.gJ],["SLOT_TYPE_PLAYER_BYTES",this.sA]]),KW:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.jF],["SLOT_TYPE_FORECASTING",this.xv],["SLOT_TYPE_PLAYER_BYTES",this.MP],["SLOT_TYPE_IN_PLAYER",this.LW]])};this.listeners=[e.get()]; this.LR={S3:this.S3,hV:this.cH.get(),rh:this.Yy.get(),w9:this.L7.get(),Y5:this.Y5,dT:r.get(),G$:null,KQ:this.Cs,eR:e.get(),s9:this.C7.get()}}; DOL=function(v,J,G,K){function V(){return Y.X} g.X.call(this);var Y=this;v.B().experiments.OB("html5_dispose_of_manager_before_dependency")?(this.T=PCs(V,v,J,G,K),this.X=(new a_(this.T)).Z(),g.k(this,this.X),g.k(this,this.T)):(this.T=PCs(V,v,J,G,K),g.k(this,this.T),this.X=(new a_(this.T)).Z(),g.k(this,this.X))}; tF=function(v){return v.T.LR}; PCs=function(v,J,G,K,V){try{var Y=J.B();if(g.bh(Y))var r=new Y$m(v,J,G,K,V);else if(g.is(Y))r=new rRw(v,J,G,K,V);else if(aC(Y))r=new q$s(v,J,G,K,V);else if(g.gy(Y))r=new EiF(v,J,G,K,V);else if(g.uh(Y))r=new eRF(v,J,G,K,V);else throw new TypeError("Unknown web interface");return r}catch(E){return r=J.B(),Ps("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:r.T.cplatform,interface:r.T.c,QOw:r.T.cver,Tgt:r.T.ctheme,oCB:r.T.cplayer,IpY:r.playerStyle}),new CVF(v,J,G,K,V)}}; tSs=function(v){FV.call(this,v)}; Bof=function(v,J,G,K,V){id.call(this,v,{Y:"div",D:"ytp-ad-timed-pie-countdown-container",W:[{Y:"svg",D:"ytp-ad-timed-pie-countdown",V:{viewBox:"0 0 20 20"},W:[{Y:"circle",D:"ytp-ad-timed-pie-countdown-background",V:{r:"10",cx:"10",cy:"10"}},{Y:"circle",D:"ytp-ad-timed-pie-countdown-inner",V:{r:"5",cx:"10",cy:"10"}},{Y:"circle",D:"ytp-ad-timed-pie-countdown-outer",V:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",J,G,K,V);this.L=this.p7("ytp-ad-timed-pie-countdown-container");this.Z=this.p7("ytp-ad-timed-pie-countdown-inner"); this.j=this.p7("ytp-ad-timed-pie-countdown-outer");this.X=Math.ceil(2*Math.PI*5);this.hide()}; IiX=function(v,J,G,K,V,Y){Br.call(this,v,{Y:"div",D:"ytp-ad-action-interstitial",V:{tabindex:"0"},W:[{Y:"div",D:"ytp-ad-action-interstitial-background-container"},{Y:"div",D:"ytp-ad-action-interstitial-slot",W:[{Y:"div",D:"ytp-ad-action-interstitial-instream-info"},{Y:"div",D:"ytp-ad-action-interstitial-card",W:[{Y:"div",D:"ytp-ad-action-interstitial-image-container"},{Y:"div",D:"ytp-ad-action-interstitial-headline-container"},{Y:"div",D:"ytp-ad-action-interstitial-description-container"},{Y:"div", D:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",J,G,K);this.qG=V;this.v3=Y;this.navigationEndpoint=this.T=this.skipButton=this.X=this.actionButton=null;this.jl=this.p7("ytp-ad-action-interstitial-instream-info");this.YB=this.p7("ytp-ad-action-interstitial-image-container");this.N=new cr(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,"ytp-ad-action-interstitial-image");g.k(this,this.N);this.N.vH(this.YB);this.Mr=this.p7("ytp-ad-action-interstitial-headline-container"); this.j=new b_(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,"ytp-ad-action-interstitial-headline");g.k(this,this.j);this.j.vH(this.Mr);this.Ti=this.p7("ytp-ad-action-interstitial-description-container");this.Z=new b_(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,"ytp-ad-action-interstitial-description");g.k(this,this.Z);this.Z.vH(this.Ti);this.WH=this.p7("ytp-ad-action-interstitial-background-container");this.RY=new cr(this.api,this.layoutId,this.interactionLoggingClientData, this.rh,"ytp-ad-action-interstitial-background",!0);g.k(this,this.RY);this.RY.vH(this.WH);this.BH=this.p7("ytp-ad-action-interstitial-action-button-container");this.slot=this.p7("ytp-ad-action-interstitial-slot");this.uQ=this.p7("ytp-ad-action-interstitial-card");this.L=new yC;g.k(this,this.L);this.hide()}; hRB=function(v){var J=g.Gs("html5-video-player");J&&g.E3(J,"ytp-ad-display-override",v)}; stj=function(v,J,G,K){Br.call(this,v,{Y:"div",D:"ytp-ad-overlay-slot",W:[{Y:"div",D:"ytp-ad-overlay-container"}]},"invideo-overlay",J,G,K);this.N=[];this.WH=this.Mr=this.L=this.BH=this.jl=null;this.RY=!1;this.j=null;this.Ti=0;v=this.p7("ytp-ad-overlay-container");this.YB=new Yp(v,45E3,6E3,.3,.4);g.k(this,this.YB);this.Z=zRs(this);g.k(this,this.Z);this.Z.vH(v);this.X=nif(this);g.k(this,this.X);this.X.vH(v);this.T=dOB(this);g.k(this,this.T);this.T.vH(v);this.hide()}; zRs=function(v){var J=new g.t9({Y:"div",D:"ytp-ad-text-overlay",W:[{Y:"div",D:"ytp-ad-overlay-ad-info-button-container"},{Y:"div",D:"ytp-ad-overlay-close-container",W:[{Y:"button",D:"ytp-ad-overlay-close-button",W:[mq(RRw)]}]},{Y:"div",D:"ytp-ad-overlay-title",At:"{{title}}"},{Y:"div",D:"ytp-ad-overlay-desc",At:"{{description}}"},{Y:"div",n7:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],At:"{{displayUrl}}"}]});v.G(J.p7("ytp-ad-overlay-title"),"click",function(G){B4(v,J.element,G)}); v.G(J.p7("ytp-ad-overlay-link"),"click",function(G){B4(v,J.element,G)}); v.G(J.p7("ytp-ad-overlay-close-container"),"click",v.Vq);J.hide();return J}; nif=function(v){var J=new g.t9({Y:"div",n7:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],W:[{Y:"div",D:"ytp-ad-overlay-ad-info-button-container"},{Y:"div",D:"ytp-ad-overlay-close-container",W:[{Y:"button",D:"ytp-ad-overlay-close-button",W:[mq(RRw)]}]},{Y:"div",D:"ytp-ad-overlay-text-image",W:[{Y:"img",V:{src:"{{imageUrl}}"}}]},{Y:"div",D:"ytp-ad-overlay-title",At:"{{title}}"},{Y:"div",D:"ytp-ad-overlay-desc",At:"{{description}}"},{Y:"div",n7:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], At:"{{displayUrl}}"}]});v.G(J.p7("ytp-ad-overlay-title"),"click",function(G){B4(v,J.element,G)}); v.G(J.p7("ytp-ad-overlay-link"),"click",function(G){B4(v,J.element,G)}); v.G(J.p7("ytp-ad-overlay-close-container"),"click",v.Vq);v.G(J.p7("ytp-ad-overlay-text-image"),"click",v.GeB);J.hide();return J}; dOB=function(v){var J=new g.t9({Y:"div",D:"ytp-ad-image-overlay",W:[{Y:"div",D:"ytp-ad-overlay-ad-info-button-container"},{Y:"div",D:"ytp-ad-overlay-close-container",W:[{Y:"button",D:"ytp-ad-overlay-close-button",W:[mq(RRw)]}]},{Y:"div",D:"ytp-ad-overlay-image",W:[{Y:"img",V:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});v.G(J.p7("ytp-ad-overlay-image"),"click",function(G){B4(v,J.element,G)}); v.G(J.p7("ytp-ad-overlay-close-container"),"click",v.Vq);J.hide();return J}; liF=function(v,J){if(J){var G=g.N(J,Ss)||null;G==null?g.fW(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(J=g.Gs("video-ads ytp-ad-module")||null,J==null?g.fW(Error("Could not locate the root ads container element to attach the ad info dialog.")):(v.Mr=new g.t9({Y:"div",D:"ytp-ad-overlay-ad-info-dialog-container"}),g.k(v,v.Mr),v.Mr.vH(J),J=new CR(v.api,v.layoutId,v.interactionLoggingClientData,v.rh,v.Mr.element,!1),g.k(v,J),J.init(YP("ad-info-hover-text-button"),G,v.macros), v.j?(J.vH(v.j,0),J.subscribe("f",v.fZi,v),J.subscribe("e",v.xm,v),v.G(v.j,"click",v.hwB),v.G(g.Gs("ytp-ad-button",J.element),"click",function(){var K;if(g.N((K=g.N(G.button,g.Ze))==null?void 0:K.serviceEndpoint,au8))v.RY=v.api.getPlayerState(1)===2,v.api.pauseVideo();else v.api.onAdUxClicked("ad-info-hover-text-button",v.layoutId)}),v.WH=J):g.fW(Error("Ad info button container within overlay ad was not present."))))}else g.Zl(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; pSU=function(v,J){if(Tow(v,IX)||v.api.isMinimized())return!1;var G=IK(J.title),K=IK(J.description);if(g.s8(G)||g.s8(K))return!1;v.createServerVe(v.Z.element,J.trackingParams||null);v.Z.updateValue("title",IK(J.title));v.Z.updateValue("description",IK(J.description));v.Z.updateValue("displayUrl",IK(J.displayUrl));J.navigationEndpoint&&g.JE(v.N,J.navigationEndpoint);v.Z.show();v.YB.start();v.logVisibility(v.Z.element,!0);v.G(v.Z.element,"mouseover",function(){v.Ti++}); return!0}; LPF=function(v,J){if(Tow(v,IX)||v.api.isMinimized())return!1;var G=IK(J.title),K=IK(J.description);if(g.s8(G)||g.s8(K))return!1;v.createServerVe(v.X.element,J.trackingParams||null);v.X.updateValue("title",IK(J.title));v.X.updateValue("description",IK(J.description));v.X.updateValue("displayUrl",IK(J.displayUrl));v.X.updateValue("imageUrl",YT8(J.image));J.navigationEndpoint&&g.JE(v.N,J.navigationEndpoint);v.BH=J.imageNavigationEndpoint||null;v.X.show();v.YB.start();v.logVisibility(v.X.element,!0); v.G(v.X.element,"mouseover",function(){v.Ti++}); return!0}; yRr=function(v,J){if(v.api.isMinimized())return!1;var G=rP2(J.image),K=G;G.width0?(J=new Zz(v.api,v.T),J.vH(v.playerOverlay), g.k(v,J)):g.fW(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(J)))}}else g.fW(Error("addCommonComponents() needs to be called before starting countdown."))}; XS2=function(v){function J(G){return{toString:function(){return G()}}} v.macros.SURVEY_LOCAL_TIME_EPOCH_S=J(function(){var G=new Date;return(Math.round(G.valueOf()/1E3)+-1*G.getTimezoneOffset()*60).toString()}); v.macros.SURVEY_ELAPSED_MS=J(function(){return(Date.now()-v.Z).toString()})}; kFm=function(v,J,G,K,V){dX.call(this,v,J,G,K,"survey-question-multi-select");this.Ti=V;this.noneOfTheAbove=null;this.submitEndpoints=[];this.j=null;this.hide()}; cRX=function(v,J,G){v.noneOfTheAbove=new S$2(v.api,v.layoutId,v.interactionLoggingClientData,v.rh);v.noneOfTheAbove.vH(v.answers);v.noneOfTheAbove.init(YP("survey-none-of-the-above"),J,G)}; ait=function(v){v.X.forEach(function(J){J.T.toggleButton(!1)}); Nom(v,!0)}; Nom=function(v,J){var G=v.L;v=ARt(v);J=J===void 0?!1:J;G.T&&(v?G.T.hide():G.T.show(),J&&G.T instanceof z$&&!G.T.L&&jk2(G.T,!1));G.X&&(v?G.X.show():G.X.hide())}; ARt=function(v){return v.X.some(function(J){return J.T.isToggled()})||v.noneOfTheAbove.button.isToggled()}; sg=function(v,J,G,K,V){dX.call(this,v,J,G,K,"survey-question-single-select",function(r){Y.api.B().C("supports_multi_step_on_desktop")&&V([r])}); var Y=this;this.hide()}; RX=function(v,J,G,K){Br.call(this,v,{Y:"div",D:"ytp-ad-survey",W:[{Y:"div",D:"ytp-ad-survey-questions"}]},"survey",J,G,K);this.questions=[];this.X=[];this.conditioningRules=[];this.T=0;this.j=this.p7("ytp-ad-survey-questions");this.api.B().C("fix_survey_color_contrast_on_destop")&&this.p7("ytp-ad-survey").classList.add("color-contrast-fix");this.api.B().C("web_enable_speedmaster")&&this.p7("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; MSt=function(v,J){var G=v.X[J],K;(K=v.Z)==null||K.dispose();g.N(G,xc)?FPF(v,g.N(G,xc),v.macros):g.N(G,UR)&&HUw(v,g.N(G,UR),v.macros);v.T=J}; FPF=function(v,J,G){var K=new sg(v.api,v.layoutId,v.interactionLoggingClientData,v.rh,v.L.bind(v));K.vH(v.j);K.init(YP("survey-question-single-select"),J,G);v.api.B().C("supports_multi_step_on_desktop")?v.Z=K:v.questions.push(K);g.k(v,K)}; HUw=function(v,J,G){var K=new kFm(v.api,v.layoutId,v.interactionLoggingClientData,v.rh,v.L.bind(v));K.vH(v.j);K.init(YP("survey-question-multi-select"),J,G);v.api.B().C("supports_multi_step_on_desktop")?v.Z=K:v.questions.push(K);g.k(v,K)}; lQ=function(v,J,G,K){Br.call(this,v,{Y:"div",D:"ytp-ad-survey-interstitial",W:[{Y:"div",D:"ytp-ad-survey-interstitial-contents",W:[{Y:"div",D:"ytp-ad-survey-interstitial-logo",W:[{Y:"div",D:"ytp-ad-survey-interstitial-logo-image"}]},{Y:"div",D:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",J,G,K);this.T=this.actionButton=null;this.interstitial=this.p7("ytp-ad-survey-interstitial");this.X=this.p7("ytp-ad-survey-interstitial-contents");this.text=this.p7("ytp-ad-survey-interstitial-text"); this.logoImage=this.p7("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Jk(this,500,!1,300);g.k(this,this.transition)}; QtX=function(v,J){J=J&&kP(J)||"";if(g.s8(J))g.Zl(Error("Found ThumbnailDetails without valid image URL"));else{var G=v.style;v=v.style.cssText;var K=document.implementation.createHTMLDocument("").createElement("DIV");K.style.cssText=v;v=ftF(K.style);G.cssText=[v,'background-image:url("'+J+'");'].join("")}}; WPm=function(v){var J=g.Gs("html5-video-player");J&&g.E3(J,"ytp-ad-display-override",v)}; Tv=function(v,J,G,K,V,Y){Y=Y===void 0?0:Y;id.call(this,v,{Y:"div",D:"ytp-preview-ad",W:[{Y:"div",D:"ytp-preview-ad__text"}]},"preview-ad",J,G,K,V);var r=this;this.Ti=Y;this.X=0;this.L=-1;this.Z=this.p7("ytp-preview-ad__text");switch(this.Ti){case 1:this.Z.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Jk(this,400,!1,100,function(){r.hide()}); g.k(this,this.transition);this.hide()}; p$=function(v,J,G,K){Br.call(this,v,{Y:"img",D:"ytp-ad-avatar"},"ad-avatar",J,G,K);this.hide()}; CCt=function(v){switch(v.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}}; L$=function(v,J,G,K,V,Y){V=V===void 0?!1:V;Y=Y===void 0?!1:Y;Br.call(this,v,{Y:"button",D:"ytp-ad-button-vm"},"ad-button",J,G,K);this.buttonText=this.buttonIcon=null;this.hide();this.T=V;this.X=Y}; bU8=function(v,J,G,K,V){id.call(this,v,{Y:"div",n7:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],W:[{Y:"div",D:"ytp-ad-avatar-lockup-card__avatar_and_text_container",W:[{Y:"div",D:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",J,G,K,V);this.startMilliseconds=0;this.adAvatar=new p$(this.api,this.layoutId,this.interactionLoggingClientData,this.rh);g.k(this,this.adAvatar);Dy(this.element,this.adAvatar.element,0);this.headline=new OU(this.api,this.layoutId, this.interactionLoggingClientData,this.rh);g.k(this,this.headline);this.headline.vH(this.p7("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new OU(this.api,this.layoutId,this.interactionLoggingClientData,this.rh);g.k(this,this.description);this.description.vH(this.p7("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new L$(this.api, this.layoutId,this.interactionLoggingClientData,this.rh);g.k(this,this.adButton);this.adButton.vH(this.element);this.hide()}; y1=function(v,J,G,K){Br.call(this,v,{Y:"button",D:"ytp-skip-ad-button",W:[{Y:"div",D:"ytp-skip-ad-button__text"}]},"skip-button",J,G,K);var V=this;this.X=!1;this.L=this.p7("ytp-skip-ad-button__text");this.transition=new g.Jk(this,500,!1,100,function(){V.hide()}); g.k(this,this.transition);this.T=new Yp(this.element,15E3,5E3,.5,.5,!0);g.k(this,this.T);this.hide()}; jm8=function(v,J,G,K,V){id.call(this,v,{Y:"div",D:"ytp-skip-ad"},"skip-ad",J,G,K,V);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.Z=new y1(this.api,this.layoutId,this.interactionLoggingClientData,this.rh);g.k(this,this.Z);this.Z.vH(this.element);this.hide()}; wX=function(v,J,G,K){Br.call(this,v,{Y:"div",D:"ytp-visit-advertiser-link"},"visit-advertiser-link",J,G,K);this.hide()}; Og=function(v,J,G,K,V){Br.call(this,v,{Y:"div",D:"ytp-ad-player-overlay-layout",W:[{Y:"div",D:"ytp-ad-player-overlay-layout__player-card-container"},{Y:"div",D:"ytp-ad-player-overlay-layout__ad-info-container",W:[v.B().C("delhi_modern_web_player")?{Y:"div",D:"ytp-ad-player-overlay-layout__ad-info-container-left"}:null]},{Y:"div",D:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{Y:"div",D:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",J,G,K);this.X= V;this.YB=this.p7("ytp-ad-player-overlay-layout__player-card-container");this.Z=this.p7("ytp-ad-player-overlay-layout__ad-info-container");this.Ti=this.p7("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Mr=this.p7("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");v.B().C("delhi_modern_web_player")&&(this.L=this.p7("ytp-ad-player-overlay-layout__ad-info-container-left"));this.hide()}; ifL=function(v,J,G,K){Br.call(this,v,{Y:"div",D:"ytp-ad-grid-card-text",W:[{Y:"div",D:"ytp-ad-grid-card-text__metadata",W:[{Y:"div",D:"ytp-ad-grid-card-text__metadata__headline"},{Y:"div",D:"ytp-ad-grid-card-text__metadata__description",W:[{Y:"div",D:"ytp-ad-grid-card-text__metadata__description__line"},{Y:"div",D:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{Y:"div",D:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",J,G,K);this.headline=new OU(this.api,this.layoutId,this.interactionLoggingClientData, this.rh);g.k(this,this.headline);this.headline.vH(this.p7("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new L$(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,!0);g.k(this,this.moreInfoButton);this.moreInfoButton.vH(this.p7("ytp-ad-grid-card-text__button"))}; Ug=function(v,J,G,K){Br.call(this,v,{Y:"div",D:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",J,G,K);this.T=[]}; xW=function(v,J,G,K,V,Y,r){id.call(this,v,Y,r,J,G,K,V);this.playerProgressOffsetMs=0;this.X=!1}; $LL=function(v){var J=g.Gs("html5-video-player");J&&g.E3(J,"ytp-ad-display-override",v)}; vsY=function(v,J,G,K,V){xW.call(this,v,J,G,K,V,{Y:"div",D:"ytp-display-underlay-text-grid-cards",W:[{Y:"div",D:"ytp-display-underlay-text-grid-cards__content_container",W:[{Y:"div",D:"ytp-display-underlay-text-grid-cards__content_container__header",W:[{Y:"div",D:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{Y:"div",D:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{Y:"div",D:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {Y:"div",D:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Ug(this.api,this.layoutId,this.interactionLoggingClientData,this.rh);g.k(this,this.adGridCardCollection);this.adGridCardCollection.vH(this.p7("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new L$(this.api,this.layoutId,this.interactionLoggingClientData,this.rh);g.k(this,this.adButton);this.adButton.vH(this.p7("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.Z=this.p7("ytp-display-underlay-text-grid-cards__content_container");this.L=this.p7("ytp-display-underlay-text-grid-cards__content_container__header")}; m5=function(v,J,G,K){Br.call(this,v,{Y:"div",D:"ytp-ad-details-line"},"ad-details-line",J,G,K);this.T=[];this.hide()}; SY=function(v,J,G,K){Br.call(this,v,{Y:"div",D:"ytp-image-background",W:[{Y:"img",D:"ytp-image-background-image"}]},"image-background",J,G,K);this.hide()}; JwS=function(v,J,G,K,V){id.call(this,v,{Y:"svg",D:"ytp-timed-pie-countdown",V:{viewBox:"0 0 20 20"},W:[{Y:"circle",D:"ytp-timed-pie-countdown__background",V:{r:"10",cx:"10",cy:"10"}},{Y:"circle",D:"ytp-timed-pie-countdown__inner",V:{r:"5",cx:"10",cy:"10"}},{Y:"circle",D:"ytp-timed-pie-countdown__outer",V:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",J,G,K,V);this.Z=this.p7("ytp-timed-pie-countdown__inner");this.X=Math.ceil(2*Math.PI*5);this.hide()}; f$=function(v,J,G,K){Br.call(this,v,{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout",V:{tabindex:"0"},W:[{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content",W:[{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",W:[{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{Y:"div",D:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",J,G,K);this.X=null;this.L=this.p7("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.Z=new yC;g.k(this,this.Z);this.hide()}; GXm=function(v){var J=g.Gs("html5-video-player");J&&g.E3(J,"ytp-ad-display-override",v)}; oso=function(v){if(!v.adAvatar||!g.N(v.adAvatar,Zb))return g.fW(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!v.headline)return g.fW(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!v.adBadge||!g.N(v.adBadge,uQ))return g.fW(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!v.adButton||!g.N(v.adButton,gX))return g.fW(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!v.adInfoRenderer|| !g.N(v.adInfoRenderer,Ss))return g.fW(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;v=v.durationMilliseconds||0;return typeof v!=="number"||v<=0?(g.fW(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+v)),!1):!0}; XE=function(v,J){J=J===void 0?2:J;g.qU.call(this);this.api=v;this.T=null;this.e3=new yC(this);g.k(this,this.e3);this.X=ieL;this.e3.G(this.api,"presentingplayerstatechange",this.BB);this.T=this.e3.G(this.api,"progresssync",this.kL);this.Nd=J;this.Nd===1&&this.kL()}; kW=function(v,J,G){FV.call(this,v);this.api=v;this.rh=J;this.X={};v=new g.F({Y:"div",n7:["video-ads","ytp-ad-module"]});g.k(this,v);LY&&g.Vj(v.element,"ytp-ads-tiny-mode");this.J=new nr(v.element);g.k(this,this.J);g.gr(this.api,v.element,4);$R(G)&&(G=new g.F({Y:"div",n7:["ytp-ad-underlay"]}),g.k(this,G),this.Z=new nr(G.element),g.k(this,this.Z),g.gr(this.api,G.element,0));g.k(this,yPB())}; KUL=function(v,J){v=g.ky(v.X,J.id,null);v==null&&g.Zl(Error("Component not found for element id: "+J.id));return v||null}; V8F=function(v){g.YQ.call(this,v);var J=this;this.X=null;this.created=!1;this.Z=v.B().C("h5_use_refactored_get_ad_break")?new $zs(this.player):new un(this.player);this.L=function(){if(J.X!=null)return J.X;var K=new YVU({KQ:tF(J.T).KQ,s9:tF(J.T).s9,S:J.player,hV:tF(J.T).hV,F4:J.T.T.F4,eR:tF(J.T).eR,hP:J.T.T.hP});J.X=K.uJ;return J.X}; this.T=new DOL(this.player,this,this.Z,this.L);g.k(this,this.T);var G=v.B();!LX(G)||g.uh(G)||aC(G)||(g.k(this,new kW(v,tF(this.T).rh,tF(this.T).hV)),g.k(this,new tSs(v)))}; YmL=function(v){v.created!==v.loaded&&Ps("Created and loaded are out of sync")}; EsN=function(v){g.YQ.prototype.load.call(v);var J=tF(v.T).hV;try{v.player.getRootNode().classList.add("ad-created")}catch(e){Ps(e instanceof Error?e:String(e))}var G=v.player.getVideoData(1),K=G&&G.videoId||"",V=G&&G.getPlayerResponse()||{},Y=(!v.player.B().experiments.OB("debug_ignore_ad_placements")&&V&&V.adPlacements||[]).map(function(e){return e.adPlacementRenderer}),r=((V==null?void 0:V.adSlots)||[]).map(function(e){return g.N(e,kc)}); V=V.playerConfig&&V.playerConfig.daiConfig&&V.playerConfig.daiConfig.enableDai||!1;G&&G.yn();Y=rwL(Y,r,J,tF(v.T).dT);r=G&&G.clientPlaybackNonce||"";G=G&&G.M0||!1;if(lD(J,!0)&&G){var E;J={};(E=v.player.getVideoData())==null||E.uw("p_cpb",(J.cc=r,J))}E=1E3*v.player.getDuration(1);qmY(v);v.T.T.bH.u1(r,E,G,Y.T5,Y.Pp,Y.T5,V,K)}; qmY=function(v){var J,G;if(G=(J=v.player.getVideoData(1))==null||!J.M0)J=v.player.B(),G=LX(J)&&!g.pX(J)&&J.playerStyle==="desktop-polymer";G&&(v=v.player.getInternalApi(),v.addEventListener("updateKevlarOrC3Companion",oEw),v.addEventListener("updateEngagementPanelAction",Kzm),v.addEventListener("changeEngagementPanelVisibility",VgL),window.addEventListener("yt-navigate-start",r$j))}; c4=function(v,J){J===v.kC&&(v.kC=void 0)}; etX=function(v){var J=tF(v.T).Y5,G=J.L().sG("SLOT_TYPE_PLAYER_BYTES",1);J=Is(J.C7.get(),1).clientPlaybackNonce;var K=!1;G=g.n(G);for(var V=G.next();!V.done;V=G.next()){V=V.value;var Y=V.slotType==="SLOT_TYPE_PLAYER_BYTES"&&V.slotEntryTrigger instanceof T4?V.slotEntryTrigger.D_:void 0;Y&&Y===J&&(K&&Ps("More than 1 preroll playerBytes slot detected",V),K=!0)}K||$W(tF(v.T).w9)}; Pjm=function(v){if(Ae(tF(v.T).hV))return!0;var J="";v=g.n(tF(v.T).eR.Jh.keys());for(var G=v.next();!G.done;G=v.next()){G=G.value;if(G.slotType==="SLOT_TYPE_PLAYER_BYTES"&&G.IY==="core")return!0;J+=G.slotType+" "}Math.random()<.01&&Ps("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:J});return!1}; DLA=function(v){v=g.n(tF(v.T).eR.Jh.values());for(var J=v.next();!J.done;J=v.next())if(J.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; sgm=function(v,J,G,K,V,Y){G=G===void 0?[]:G;K=K===void 0?"":K;V=V===void 0?"":V;var r=tF(v.T).hV,E=v.player.getVideoData(1);E&&E.getPlayerResponse();E&&E.yn();G=rwL(J,G,r,tF(v.T).dT);pAf(tF(v.T).S3,K,G.T5,G.Pp,J,V,Y)}; rwL=function(v,J,G,K){J={T5:[],Pp:J};v=g.n(v);for(var V=v.next();!V.done;V=v.next())if((V=V.value)&&V.renderer!=null){var Y=V.renderer;if(!G.S.B().C("html5_enable_vod_lasr_with_notify_pacf")){var r=void 0,E=void 0,e=void 0,P=void 0,D=K;g.N((P=Y.sandwichedLinearAdRenderer)==null?void 0:P.adVideoStart,Iu)?(r=g.N((e=Y.sandwichedLinearAdRenderer)==null?void 0:e.adVideoStart,Iu),r=kqt(r,D),g.cX(Y.sandwichedLinearAdRenderer.adVideoStart,Iu,r)):g.N((E=Y.linearAdSequenceRenderer)==null?void 0:E.adStart,Iu)&& (e=g.N((r=Y.linearAdSequenceRenderer)==null?void 0:r.adStart,Iu),r=kqt(e,D),g.cX(Y.linearAdSequenceRenderer.adStart,Iu,r))}J.T5.push(V)}return J}; g.NF=function(v){if(typeof DOMParser!="undefined")return Gx(new DOMParser,UDs(v),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.aX=function(v){g.X.call(this);this.callback=v;this.T=new s3(0,0,.4,0,.2,1,1,1);this.delay=new g.M3(this.next,window,this);g.k(this,this.delay)}; g.t88=function(v){var J=v.B();return J.Vy&&!J.Z&&g.Of(J)?v.isEmbedsShortsMode()?(v=v.Tg(),Math.min(v.width,v.height)>=315):!v.Ls():!1}; g.AF=function(v){g.F.call(this,{Y:"div",D:"ytp-more-videos-view",V:{tabIndex:"-1"}});var J=this;this.api=v;this.X=!0;this.Z=new g.Zs(this);this.T=[];this.suggestionData=[];this.columns=this.containerWidth=this.U=this.L=this.scrollPosition=0;this.title=new g.F({Y:"h2",D:"ytp-related-title",At:"{{title}}"});this.previous=new g.F({Y:"button",n7:["ytp-button","ytp-previous"],V:{"aria-label":"Show previous suggested videos"},W:[g.d8()]});this.K=new g.aX(function(G){J.suggestions.element.scrollLeft=-G}); this.next=new g.F({Y:"button",n7:["ytp-button","ytp-next"],V:{"aria-label":"Show more suggested videos"},W:[g.sN()]});g.k(this,this.Z);this.j=v.B().L;g.k(this,this.title);this.title.vH(this.element);this.suggestions=new g.F({Y:"div",D:"ytp-suggestions"});g.k(this,this.suggestions);this.suggestions.vH(this.element);g.k(this,this.previous);this.previous.vH(this.element);this.previous.listen("click",this.iL,this);g.k(this,this.K);BwL(this);g.k(this,this.next);this.next.vH(this.element);this.next.listen("click", this.xZ,this);this.Z.G(this.api,"appresize",this.E$);this.Z.G(this.api,"fullscreentoggled",this.AY);this.Z.G(this.api,"videodatachange",this.onVideoDataChange);this.E$(this.api.f7().getPlayerSize());this.onVideoDataChange()}; BwL=function(v){for(var J={lM:0};J.lM<16;J={lM:J.lM},++J.lM){var G=new g.F({Y:"a",D:"ytp-suggestion-link",V:{href:"{{link}}",target:v.api.B().N,"aria-label":"{{aria_label}}"},W:[{Y:"div",D:"ytp-suggestion-image"},{Y:"div",D:"ytp-suggestion-overlay",V:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},W:[{Y:"div",D:"ytp-suggestion-title",At:"{{title}}"},{Y:"div",D:"ytp-suggestion-author",At:"{{author_and_views}}"},{Y:"div",V:{"data-is-live":"{{is_live}}"},D:"ytp-suggestion-duration", At:"{{duration}}"}]}]});g.k(v,G);var K=G.p7("ytp-suggestion-link");g.ep(K,"transitionDelay",J.lM/20+"s");v.Z.G(K,"click",function(V){return function(Y){var r=V.lM;if(v.X){var E=v.suggestionData[r],e=E.sessionData;v.j&&v.api.C("web_player_log_click_before_generating_ve_conversion_params")?(v.api.logClick(v.T[r].element),r=E.lh(),E={},g.fm(v.api,E),r=g.vt(r,E),g.Ev(r,v.api,Y)):g.qI(Y,v.api,v.j,e||void 0)&&v.api.Gx(E.videoId,e,E.playlistId)}else Y.preventDefault(),document.activeElement.blur()}}(J)); G.vH(v.suggestions.element);v.T.push(G);v.api.createServerVe(G.element,G)}}; IrA=function(v){if(v.api.B().C("web_player_log_click_before_generating_ve_conversion_params"))for(var J=Math.floor(-v.scrollPosition/(v.L+8)),G=Math.min(J+v.columns,v.suggestionData.length)-1;J<=G;J++)v.api.logVisibility(v.T[J].element,!0)}; g.FE=function(v){var J=v.api.XQ()?32:16;J=v.U/2+J;v.next.element.style.bottom=J+"px";v.previous.element.style.bottom=J+"px";J=v.scrollPosition;var G=v.containerWidth-v.suggestionData.length*(v.L+8);g.E3(v.element,"ytp-scroll-min",J>=0);g.E3(v.element,"ytp-scroll-max",J<=G)}; ztU=function(v){for(var J=v.suggestionData.length,G=0;G>>0)+"_",V=0;return J}); e8("Symbol.iterator",function(v){if(v)return v;v=Symbol("Symbol.iterator");for(var J="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),G=0;G=Y}}); e8("String.prototype.endsWith",function(v){return v?v:function(J,G){var K=Um(this,J,"endsWith");J+="";G===void 0&&(G=K.length);G=Math.max(0,Math.min(G|0,K.length));for(var V=J.length;V>0&&G>0;)if(K[--G]!=J[--V])return!1;return V<=0}}); e8("Array.prototype.entries",function(v){return v?v:function(){return mU(this,function(J,G){return[J,G]})}}); e8("Math.imul",function(v){return v?v:function(J,G){J=Number(J);G=Number(G);var K=J&65535,V=G&65535;return K*V+((J>>>16&65535)*V+K*(G>>>16&65535)<<16>>>0)|0}}); e8("Math.trunc",function(v){return v?v:function(J){J=Number(J);if(isNaN(J)||J===Infinity||J===-Infinity||J===0)return J;var G=Math.floor(Math.abs(J));return J<0?-G:G}}); e8("Math.clz32",function(v){return v?v:function(J){J=Number(J)>>>0;if(J===0)return 32;var G=0;(J&4294901760)===0&&(J<<=16,G+=16);(J&4278190080)===0&&(J<<=8,G+=8);(J&4026531840)===0&&(J<<=4,G+=4);(J&3221225472)===0&&(J<<=2,G+=2);(J&2147483648)===0&&G++;return G}}); e8("Number.isNaN",function(v){return v?v:function(J){return typeof J==="number"&&isNaN(J)}}); e8("Array.prototype.keys",function(v){return v?v:function(){return mU(this,function(J){return J})}}); e8("Array.prototype.values",function(v){return v?v:function(){return mU(this,function(J,G){return G})}}); e8("Array.prototype.fill",function(v){return v?v:function(J,G,K){var V=this.length||0;G<0&&(G=Math.max(0,V+G));if(K==null||K>V)K=V;K=Number(K);K<0&&(K=Math.max(0,V+K));for(G=Number(G||0);G1342177279)throw new RangeError("Invalid count value");J|=0;for(var K="";J;)if(J&1&&(K+=G),J>>>=1)G+=G;return K}}); e8("Promise.prototype.finally",function(v){return v?v:function(J){return this.then(function(G){return Promise.resolve(J()).then(function(){return G})},function(G){return Promise.resolve(J()).then(function(){throw G; })})}}); e8("String.prototype.padStart",function(v){return v?v:function(J,G){var K=Um(this,null,"padStart");J-=K.length;G=G!==void 0?String(G):" ";return(J>0&&G?G.repeat(Math.ceil(J/G.length)).substring(0,J):"")+K}}); e8("Array.prototype.findIndex",function(v){return v?v:function(J,G){return Pj8(this,J,G).O_}}); e8("Math.sign",function(v){return v?v:function(J){J=Number(J);return J===0||isNaN(J)?J:J>0?1:-1}}); e8("WeakSet",function(v){function J(G){this.T=new WeakMap;if(G){G=g.n(G);for(var K;!(K=G.next()).done;)this.add(K.value)}} if(function(){if(!v||!Object.seal)return!1;try{var G=Object.seal({}),K=Object.seal({}),V=new v([G]);if(!V.has(G)||V.has(K))return!1;V.delete(G);V.add(K);return!V.has(G)&&V.has(K)}catch(Y){return!1}}())return v; J.prototype.add=function(G){this.T.set(G,!0);return this}; J.prototype.has=function(G){return this.T.has(G)}; J.prototype.delete=function(G){return this.T.delete(G)}; return J}); e8("Array.prototype.copyWithin",function(v){function J(G){G=Number(G);return G===Infinity||G===-Infinity?G:G|0} return v?v:function(G,K,V){var Y=this.length;G=J(G);K=J(K);V=V===void 0?Y:J(V);G=G<0?Math.max(Y+G,0):Math.min(G,Y);K=K<0?Math.max(Y+K,0):Math.min(K,Y);V=V<0?Math.max(Y+V,0):Math.min(V,Y);if(GK;)--V in this?this[--G]=this[V]:delete this[--G];return this}}); e8("Int8Array.prototype.copyWithin",ff);e8("Uint8Array.prototype.copyWithin",ff);e8("Uint8ClampedArray.prototype.copyWithin",ff);e8("Int16Array.prototype.copyWithin",ff);e8("Uint16Array.prototype.copyWithin",ff);e8("Int32Array.prototype.copyWithin",ff);e8("Uint32Array.prototype.copyWithin",ff);e8("Float32Array.prototype.copyWithin",ff);e8("Float64Array.prototype.copyWithin",ff);e8("Array.prototype.at",function(v){return v?v:Zr}); e8("Int8Array.prototype.at",uj);e8("Uint8Array.prototype.at",uj);e8("Uint8ClampedArray.prototype.at",uj);e8("Int16Array.prototype.at",uj);e8("Uint16Array.prototype.at",uj);e8("Int32Array.prototype.at",uj);e8("Uint32Array.prototype.at",uj);e8("Float32Array.prototype.at",uj);e8("Float64Array.prototype.at",uj);e8("String.prototype.at",function(v){return v?v:Zr}); e8("Array.prototype.findLastIndex",function(v){return v?v:function(J,G){return DLX(this,J,G).O_}}); e8("Int8Array.prototype.findLastIndex",gw);e8("Uint8Array.prototype.findLastIndex",gw);e8("Uint8ClampedArray.prototype.findLastIndex",gw);e8("Int16Array.prototype.findLastIndex",gw);e8("Uint16Array.prototype.findLastIndex",gw);e8("Int32Array.prototype.findLastIndex",gw);e8("Uint32Array.prototype.findLastIndex",gw);e8("Float32Array.prototype.findLastIndex",gw);e8("Float64Array.prototype.findLastIndex",gw);e8("Number.parseInt",function(v){return v||parseInt});var Yl,QB,t82;Yl=Yl||{};g.X2=this||self;QB="closure_uid_"+(Math.random()*1E9>>>0);t82=0;g.z(GA,Error);g.X.prototype.PE=!1;g.X.prototype.Sl=function(){return this.PE}; g.X.prototype.dispose=function(){this.PE||(this.PE=!0,this.X4())}; g.X.prototype[Symbol.dispose]=function(){this.dispose()}; g.X.prototype.addOnDisposeCallback=function(v,J){this.PE?J!==void 0?v.call(J):v():(this.DL||(this.DL=[]),J&&(v=v.bind(J)),this.DL.push(v))}; g.X.prototype.X4=function(){if(this.DL)for(;this.DL.length;)this.DL.shift()()};var smj;g.z(em,g.X);em.prototype.share=function(){if(this.Sl())throw Error("E:AD");this.L++;return this}; em.prototype.dispose=function(){--this.L||g.X.prototype.dispose.call(this)}; smj=Symbol.dispose;Rt2.prototype.YN=function(v,J){this.T.YN("/client_streamz/bg/frs",v,J)}; lrs.prototype.YN=function(v,J,G,K,V,Y){this.T.YN("/client_streamz/bg/wrl",v,J,G,K,V,Y)}; TwL.prototype.Wv=function(v,J){this.T.Gg("/client_streamz/bg/ec",v,J)}; pFw.prototype.YN=function(v,J,G){this.T.YN("/client_streamz/bg/el",v,J,G)}; LUw.prototype.Wv=function(v,J){this.T.Gg("/client_streamz/bg/cec",v,J)}; ywU.prototype.Wv=function(v,J){this.T.Gg("/client_streamz/bg/po/csc",v,J)}; wFF.prototype.Wv=function(v,J){this.T.Gg("/client_streamz/bg/po/ctav",v,J)}; Off.prototype.Wv=function(v,J){this.T.Gg("/client_streamz/bg/po/cwsc",v,J)};g.Jo(to,Error);to.prototype.name="CustomError";var $$s;var a1=void 0,N$,yEs=typeof TextDecoder!=="undefined",frm,Smt=typeof String.prototype.isWellFormed==="function",mLs=typeof TextEncoder!=="undefined";var pG=String.prototype.trim?function(v){return v.trim()}:function(v){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(v)[1]},yAr=/&/g,wJj=//g,U7U=/"/g,x7f=/'/g,m7m=/\x00/g,Lrr=/[\x00&<>"']/;var pFo=am(1,!0),O8=am(610401301,!1);am(899588437,!1);am(725719775,!1);var LUT=am(513659523,!1),ywF=am(568333945,!1);am(651175828,!1);am(722764542,!1);var Mpm=am(1981196515,!1);am(2147483644,!1);am(2147483645,!1);am(2147483646,pFo);am(2147483647,!0);var U8=!!g.NL("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var xX,wFN=g.X2.navigator;xX=wFN?wFN.userAgentData||null:null;var WUF,OX,yM;WUF=Array.prototype.indexOf?function(v,J){return Array.prototype.indexOf.call(v,J,void 0)}:function(v,J){if(typeof v==="string")return typeof J!=="string"||J.length!=1?-1:v.indexOf(J,0); for(var G=0;G=0;G--)if(G in v&&v[G]===J)return G;return-1}; g.PW=Array.prototype.forEach?function(v,J,G){Array.prototype.forEach.call(v,J,G)}:function(v,J,G){for(var K=v.length,V=typeof v==="string"?v.split(""):v,Y=0;YparseFloat(frL)){Sm6=String(H4);break a}}Sm6=frL}var Y8s=Sm6,KFw={};var CE,bR;g.N5=uU();CE=NS()||Sm("iPod");bR=Sm("iPad");g.wU=NwB();g.x4=gT();g.nP=kX()&&!aL();var q8m={},d6=null,EX2=Dt||g.KI||typeof g.X2.btoa=="function";var dSf=typeof Uint8Array!=="undefined",BTf=!g.tz&&typeof btoa==="function",I_m=/[-_.]/g,DSL={"-":"+",_:"/",".":"="},RI={};sb.prototype.isEmpty=function(){return this.T==null}; sb.prototype.sizeBytes=function(){var v=T6(this);return v?v.length:0}; var nXm;var R6j=void 0;var Ob=typeof Symbol==="function"&&typeof Symbol()==="symbol",gsF=w6("jas",void 0,!0),Ph=w6(void 0,"1oa"),yu=w6(void 0,Symbol()),XFG=w6(void 0,"0ub"),rEU=w6(void 0,"0actk"),f8=w6("m_m","nCB",!0),yof=w6(void 0,"mrtk"),JEX=w6(void 0,"vps");Math.max.apply(Math,g.l(Object.values({bDY:1,tRi:2,QoU:4,Hdw:8,E6t:16,WHi:32,bjh:64,mdB:128,swr:256,vuU:512,uRh:1024,yJi:2048,TEB:4096,Lc7:8192,Lzr:16384,dZe:32768})));var TTw={lei:{value:0,configurable:!0,writable:!0,enumerable:!1}},l_F=Object.defineProperties,Ub=Ob?gsF:"lei",Jj,kXN=[];mW(kXN,55);Jj=Object.freeze(kXN);var LFL=typeof f8==="symbol",pNf={},ul={},t5L=Object.freeze({}),N_={};var xS8=Fk(function(v){return typeof v==="number"}),US2=Fk(function(v){return typeof v==="string"}),mSL=Fk(function(v){return typeof v==="boolean"}),qb=Fk(function(v){return v!=null&&typeof v==="object"&&typeof v.then==="function"}),rt=Fk(function(v){return!!v&&(typeof v==="object"||typeof v==="function")});var Qc=typeof g.X2.BigInt==="function"&&typeof g.X2.BigInt(0)==="bigint";var S1=Fk(function(v){return Qc?v>=cwN&&v<=NwY:v[0]==="-"?S8L(v,arU):S8L(v,Awm)}),arU=Number.MIN_SAFE_INTEGER.toString(),cwN=Qc?BigInt(Number.MIN_SAFE_INTEGER):void 0,Awm=Number.MAX_SAFE_INTEGER.toString(),NwY=Qc?BigInt(Number.MAX_SAFE_INTEGER):void 0;var REw=typeof Uint8Array.prototype.slice==="function",C8=0,bl=0,jEf;var hA=typeof BigInt==="function"?BigInt.asIntN:void 0,WFU=typeof BigInt==="function"?BigInt.asUintN:void 0,sK=Number.isSafeInteger,q7=Number.isFinite,RE=Math.trunc,XNw=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var G6s={};var xO;var uy,oYt;var I6F=WW(0);g.q=d_t.prototype;g.q.init=function(v,J,G,K){var V=K===void 0?{}:K;K=V.J6===void 0?!1:V.J6;V=V.Ut===void 0?!1:V.Ut;this.J6=K;this.Ut=V;v&&(v=wK(v,this.Ut),this.X=v.buffer,this.J=v.YH,this.L=J||0,this.Z=G!==void 0?this.L+G:this.X.length,this.T=this.L)}; g.q.free=function(){this.clear();u0.length<100&&u0.push(this)}; g.q.clear=function(){this.X=null;this.J=!1;this.T=this.Z=this.L=0;this.J6=!1}; g.q.reset=function(){this.T=this.L}; g.q.s1=function(){var v=this.j;v||(v=this.X,v=this.j=new DataView(v.buffer,v.byteOffset,v.byteLength));return v}; var u0=[];gK.prototype.free=function(){this.T.clear();this.X=this.L=-1;Xc.length<100&&Xc.push(this)}; gK.prototype.reset=function(){this.T.reset();this.Z=this.T.T;this.X=this.L=-1}; var Xc=[];Fc.prototype.toJSON=function(){return ZG(this)}; Fc.prototype.M$=function(v){return JSON.stringify(ZG(this,v))}; Fc.prototype.clone=function(){var v=this;Z6(v);var J=v;Z6(J);J=J.ud;J=v=new v.constructor(mr(J,J[Ub]|0,cJ,!0,!0));Z6(J);S5(J.ud);return v}; Fc.prototype.YH=function(){return g6(this)}; Fc.prototype[f8]=pNf;Fc.prototype.toString=function(){Z6(this);return this.ud.toString()};var U_j,m_w;Qv.prototype.length=function(){return this.T.length}; Qv.prototype.end=function(){var v=this.T;this.T=[];return v};var JN=va(),FUY=va(),HfU=va(),M88=va(),Qm6=va(),WUN=va(),CjX=va(),bfU=va();var N6m=oz(function(v,J,G,K,V){if(v.X!==2)return!1;ch(v,DC(J,K,G),V);return!0},cEw),a6m=oz(function(v,J,G,K,V){if(v.X!==2)return!1; ch(v,DC(J,K,G),V);return!0},cEw),tN=Symbol(),qv=Symbol(),Pa=Symbol(),WWw=Symbol(),H8w=Symbol(),K_,Vg;var jLY=hN(function(v,J,G){if(v.X!==1)return!1;n_(J,G,fo(v.T));return!0},dR,CjX),iGY=hN(function(v,J,G){if(v.X!==1)return!1; v=fo(v.T);n_(J,G,v===0?void 0:v);return!0},dR,CjX),$SL=hN(function(v,J,G,K){if(v.X!==1)return!1; Ex(J,G,K,fo(v.T));return!0},dR,CjX),vXY=hN(function(v,J,G){if(v.X!==0)return!1; n_(J,G,Ux(v.T));return!0},sd,Qm6),Jo_=hN(function(v,J,G){if(v.X!==0)return!1; v=Ux(v.T);n_(J,G,v===0?void 0:v);return!0},sd,Qm6),GAF=hN(function(v,J,G,K){if(v.X!==0)return!1; Ex(J,G,K,Ux(v.T));return!0},sd,Qm6),oX8=hN(function(v,J,G){if(v.X!==0)return!1; n_(J,G,xr(v.T));return!0},Rz,M88),KFT=hN(function(v,J,G){if(v.X!==0)return!1; v=xr(v.T);n_(J,G,v===0?void 0:v);return!0},Rz,M88),VmG=hN(function(v,J,G,K){if(v.X!==0)return!1; Ex(J,G,K,xr(v.T));return!0},Rz,M88),Y8X=hN(function(v,J,G){if(v.X!==1)return!1; n_(J,G,Sc(v.T));return!0},function(v,J,G){XWB(v,G,CUs(J))},WUN),roT=zN(function(v,J,G){if(v.X!==1&&v.X!==2)return!1; J=Ko(J,J[Ub]|0,G);if(v.X==2)for(G=xr(v.T)>>>0,G=v.T.T+G;v.T.T>>0);return!0},function(v,J,G){J=DG(J); J!=null&&J!=null&&(ir(v,G,0),Co(v.T,J))},va()),BTG=hN(function(v,J,G){if(v.X!==0)return!1; n_(J,G,xr(v.T));return!0},function(v,J,G){J=PJ(J); J!=null&&(J=parseInt(J,10),ir(v,G,0),f62(v.T,J))},va());GRm.prototype.register=function(){BW(this)};g.z(KrX,Fc);g.z(p_,Fc);var Ud=[1,2,3];var I_8=[0,Ud,PUo,VmG,EX8];var h6U=[0,Q1,[0,jLY,vXY]];g.z(L_,Fc);var Od=[1,2,3];var z68=[0,Od,GAF,$SL,C$,h6U];g.z(yg,Fc);var nXL=[0,Q1,I_8,z68];var dSG=[0,[1,2,3],C$,[0,MF,-1,q8L],C$,[0,MF,-1,oX8,q8L],C$,[0,MF]];g.z(wR,Fc);wR.prototype.gj=function(){var v=vh(this,3,TR,3,!0);cW(v);return v[void 0]};wR.prototype.X=oOj([0,MF,dSG,e6S,Q1,nXL,Y8X,roT]);g.z(YKB,Fc);var IGm=globalThis.trustedTypes,xu;SG.prototype.toString=function(){return this.T+""};ur.prototype.toString=function(){return this.T}; var nOt=new ur("about:invalid#zClosurez");var kvt=ku("tel"),gWf=ku("sms"),zvs=[ku("data"),ku("http"),ku("https"),ku("mailto"),ku("ftp"),new Xa(function(v){return/^[^:]*([/?#]|$)/.test(v)})],d7j=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;AN.prototype.toString=function(){return this.T+""};Wa.prototype.toString=function(){return this.T+""};iA.prototype.toString=function(){return this.T};var vR={};g.sLA=String.prototype.repeat?function(v,J){return v.repeat(J)}:function(v,J){return Array(J+1).join(v)};g.q=PR.prototype;g.q.isEnabled=function(){if(!g.X2.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{xp:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.q.set=function(v,J,G){var K=!1;if(typeof G==="object"){var V=G.Ek7;K=G.secure||!1;var Y=G.domain||void 0;var r=G.path||void 0;var E=G.xp}if(/[;=\s]/.test(v))throw Error('Invalid cookie name "'+v+'"');if(/[;\r\n]/.test(J))throw Error('Invalid cookie value "'+J+'"');E===void 0&&(E=-1);G=Y?";domain="+Y:"";r=r?";path="+r:"";K=K?";secure":"";E=E<0?"":E==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+E*1E3)).toUTCString();this.T.cookie=v+"="+J+G+r+E+K+(V!=null?";samesite="+ V:"")}; g.q.get=function(v,J){for(var G=v+"=",K=(this.T.cookie||"").split(";"),V=0,Y;V=0;J--)this.remove(v[J])}; var fE=new PR(typeof document=="undefined"?null:document);tq.prototype.compress=function(v){var J,G,K,V;return g.m(function(Y){switch(Y.T){case 1:return J=new CompressionStream("gzip"),G=(new Response(J.readable)).arrayBuffer(),K=J.writable.getWriter(),g.U(Y,K.write((new TextEncoder).encode(v)),2);case 2:return g.U(Y,K.close(),3);case 3:return V=Uint8Array,g.U(Y,G,4);case 4:return Y.return(new V(Y.X))}})}; tq.prototype.isSupported=function(v){return v<1024?!1:typeof CompressionStream!=="undefined"};g.z(BR,Fc);I7.prototype.setInterval=function(v){this.intervalMs=v;this.W1&&this.enabled?(this.stop(),this.start()):this.W1&&this.stop()}; I7.prototype.start=function(){var v=this;this.enabled=!0;this.W1||(this.W1=setTimeout(function(){v.tick()},this.intervalMs),this.X=this.T())}; I7.prototype.stop=function(){this.enabled=!1;this.W1&&(clearTimeout(this.W1),this.W1=void 0)}; I7.prototype.tick=function(){var v=this;if(this.enabled){var J=Math.max(this.T()-this.X,0);J0?G:void 0));G=WJ(G,4,e1(V>0?V:void 0));G=WJ(G,5,e1(Y>0?Y:void 0));Z6(G);V=G.ud;Y=V[Ub]|0;G=g6(G,Y)?G:new G.constructor(mr(V,Y,cJ,!0,!0));Bh(r,nI,10,G)}r=this.T.clone();G=Date.now().toString();r=WJ(r,4,d9(G));v=I1(r,wA,3,v.slice());K&&(r=new hq,K=WJ(r,13, e1(K)),r=new zx,K=Bh(r,hq,2,K),r=new yK,K=Bh(r,zx,1,K),K=Lo(K,2,9),Bh(v,yK,18,K));J&&l0(v,14,J);return v};var x$F=function(){if(!g.X2.addEventListener||!Object.defineProperty)return!1;var v=!1,J=Object.defineProperty({},"passive",{get:function(){v=!0}}); try{var G=function(){}; g.X2.addEventListener("test",G,J);g.X2.removeEventListener("test",G,J)}catch(K){}return v}();var qgm=BKm("AnimationEnd"),tr=BKm("TransitionEnd");g.m2.prototype.X=0;g.m2.prototype.reset=function(){this.T=this.Z=this.L;this.X=0}; g.m2.prototype.getValue=function(){return this.Z};g.z(lr,Fc);var R6U=TN(lr);g.z(JAm,Fc);var jx=new GRm;g.z(uZ,g.X);g.q=uZ.prototype;g.q.X4=function(){Zy(this);this.X.stop();this.qr.stop();g.X.prototype.X4.call(this)}; g.q.dispatch=function(v){if(v instanceof wA)this.log(v);else try{var J=new wA,G=v.M$();var K=T7(J,8,G);this.log(K)}catch(V){gA(this,4,1)}}; g.q.log=function(v){gA(this,2,1);if(this.YB){v=v.clone();var J=this.RY++;v=l0(v,21,J);this.componentId&&T7(v,26,this.componentId);J=v;var G=M7(J,1);var K=K===void 0?!1:K;var V=typeof G;K=G==null?G:V==="bigint"?String(hA(64,G)):EK(G)?V==="string"?IE(G):K?zR(G):nF(G):void 0;K==null&&(K=Date.now(),K=Number.isFinite(K)?K.toString():"0",WJ(J,1,d9(K)));K=M7(J,15);K!=null&&(typeof K==="bigint"?S1(K)?K=Number(K):(K=hA(64,K),K=S1(K)?Number(K):String(K)):K=EK(K)?typeof K==="number"?nF(K):IE(K):void 0);K!=null|| l0(J,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(K=this.experimentIds.clone(),Bh(J,BR,16,K));gA(this,1,1);J=this.T.length-1E3+1;J>0&&(this.T.splice(0,J),this.L+=J,gA(this,3,J));this.T.push(v);this.b6||this.X.enabled||this.X.start()}}; g.q.flush=function(v,J){var G=this;if(this.T.length===0)v&&v();else if(this.Mr&&this.oY)this.Z.X=3,d$U(this);else{var K=Date.now();if(this.Gi>K&&this.Ze0&&(G.Ze=Date.now(),G.Gi=G.Ze+B);var R;Z6(I);B=vN(yu);if(h=Ob&&B)Z6(I),h=((R=I.ud[B])==null?void 0:R[175237375])!=null;h&&yc(XFG,3);R=jx.T?jx.X(I,jx.T,175237375,jx.Z):jx.X(I,175237375,null,jx.Z);if(R=R===null?void 0:R)R=YX(R,1,-1),R!==-1&&(G.J=new g.m2(R<1?1:R,3E5,.1), G.X.setInterval(G.J.getValue()))}}v&&v();G.j=0},D=function(B,I){var h=oL(Y,wA,3); var R=Number(hEU(Y,14));g.SA(G.J);G.X.setInterval(G.J.getValue());B===401&&r&&(G.jl=r);R&&(G.L+=R);I===void 0&&(I=G.isRetryable(B));I&&(G.T=h.concat(G.T),G.b6||G.X.enabled||G.X.start());gA(G,7,1);J&&J("net-send-failed",B);++G.j},t=function(){G.network&&G.network.send(e,P,D)}; E?E.then(function(B){gA(G,5,V);e.requestHeaders["Content-Encoding"]="gzip";e.requestHeaders["Content-Type"]="application/binary";e.body=B;e.fS=2;t()},function(){gA(G,6,V); t()}):t()}}}}; g.q.isRetryable=function(v){return 500<=v&&v<600||v===401||v===0};XM.prototype.send=function(v,J,G){var K=this,V,Y,r,E,e,P,D,t,B,I;return g.m(function(h){switch(h.T){case 1:return Y=(V=K.JW?new AbortController:void 0)?setTimeout(function(){V.abort()},v.timeoutMillis):void 0,g.nf(h,2,3),r=Object.assign({},{method:v.requestType, headers:Object.assign({},v.requestHeaders)},v.body&&{body:v.body},v.withCredentials&&{credentials:"include"},{signal:v.timeoutMillis&&V?V.signal:null}),g.U(h,fetch(v.url,r),5);case 5:E=h.X;if(E.status!==200){(e=G)==null||e(E.status);h.sB(3);break}if((P=J)==null){h.sB(7);break}return g.U(h,E.text(),8);case 8:P(h.X);case 7:case 3:g.TX(h);clearTimeout(Y);g.Lf(h,0);break;case 2:D=g.lj(h);switch((t=D)==null?void 0:t.name){case "AbortError":(B=G)==null||B(408);break;default:(I=G)==null||I(400)}h.sB(3)}})}; XM.prototype.oC=function(){return 4};g.z(kt,g.X);kt.prototype.l_=function(){this.J=!0;return this}; kt.prototype.build=function(){this.network||(this.network=new XM);var v=new uZ({logSource:this.logSource,VL:this.VL?this.VL:kRU,sessionIndex:this.sessionIndex,FXB:this.Pn,Sm:this.L,b6:!1,l_:this.J,Qp:this.Qp,network:this.network});g.k(this,v);if(this.X){var J=this.X,G=xt(v.Z);T7(G,7,J)}v.K=new tq;this.componentId&&(v.componentId=this.componentId);this.sU&&(v.sU=this.sU);this.pageId&&(v.pageId=this.pageId);this.T&&((G=this.T)?(v.experimentIds||(v.experimentIds=new BR),J=v.experimentIds,G=G.M$(),T7(J, 4,G)):v.experimentIds&&WJ(v.experimentIds,4));this.Z&&(v.Mr=v.oY);tcw(v.Z);this.network.bV&&this.network.bV(this.logSource);this.network.nkh&&this.network.nkh(v);return v};g.z(cM,g.X);cM.prototype.flush=function(v){v=v||[];if(v.length){for(var J=new YKB,G=[],K=0;K-1?(J=v[r],G||(J.PZ=!1)):(J=new wh8(J,this.src,Y,!!K,V),J.PZ=G,v.push(J));return J}; g.q.remove=function(v,J,G,K){v=v.toString();if(!(v in this.listeners))return!1;var V=this.listeners[v];J=$b(V,J,G,K);return J>-1?(bZ(V[J]),g.bU(V,J),V.length==0&&(delete this.listeners[v],this.T--),!0):!1}; g.q.removeAll=function(v){v=v&&v.toString();var J=0,G;for(G in this.listeners)if(!v||G==v){for(var K=this.listeners[G],V=0;V-1?v[V]:null}; g.q.hasListener=function(v,J){var G=v!==void 0,K=G?v.toString():"",V=J!==void 0;return g.UA(this.listeners,function(Y){for(var r=0;r>>0);g.Jo(g.EF,g.X);g.EF.prototype[L0w]=!0;g.q=g.EF.prototype;g.q.addEventListener=function(v,J,G,K){g.JG(this,v,J,G,K)}; g.q.removeEventListener=function(v,J,G,K){Zo2(this,v,J,G,K)}; g.q.dispatchEvent=function(v){var J=this.X8;if(J){var G=[];for(var K=1;J;J=J.X8)G.push(J),++K}J=this.KS;K=v.type||v;if(typeof v==="string")v=new g.FM(v,J);else if(v instanceof g.FM)v.target=v.target||J;else{var V=v;v=new g.FM(K,J);g.HR(v,V)}V=!0;var Y;if(G)for(Y=G.length-1;!v.X&&Y>=0;Y--){var r=v.currentTarget=G[Y];V=eC(r,K,!0,v)&&V}v.X||(r=v.currentTarget=J,V=eC(r,K,!0,v)&&V,v.X||(V=eC(r,K,!1,v)&&V));if(G)for(Y=0;!v.X&&Y0){this.X--;var v=this.T;this.T=v.next;v.next=null}else v=this.Z();return v};var tG;Ip.prototype.add=function(v,J){var G=NKj.get();G.set(v,J);this.X?this.X.next=G:this.T=G;this.X=G}; Ip.prototype.remove=function(){var v=null;this.T&&(v=this.T,this.T=this.T.next,this.T||(this.X=null),v.next=null);return v}; var NKj=new Pp(function(){return new hG},function(v){return v.reset()}); hG.prototype.set=function(v,J){this.T=v;this.scope=J;this.next=null}; hG.prototype.reset=function(){this.next=this.scope=this.T=null};var zD,nQ=!1,k7w=new Ip;Ajt.prototype.reset=function(){this.context=this.X=this.Z=this.T=null;this.L=!1}; var F0t=new Pp(function(){return new Ajt},function(v){v.reset()}); g.yr.prototype.then=function(v,J,G){return $vr(this,DJ(typeof v==="function"?v:null),DJ(typeof J==="function"?J:null),G)}; g.yr.prototype.$goog_Thenable=!0;g.q=g.yr.prototype;g.q.finally=function(v){var J=this;v=DJ(v);return new Promise(function(G,K){W0r(J,function(V){v();G(V)},function(V){v(); K(V)})})}; g.q.pj=function(v,J){return $vr(this,null,DJ(v),J)}; g.q.catch=g.yr.prototype.pj;g.q.cancel=function(v){if(this.T==0){var J=new ZJ(v);g.dQ(function(){C0j(this,J)},this)}}; g.q.pwY=function(v){this.T=0;LQ(this,2,v)}; g.q.ZJr=function(v){this.T=0;LQ(this,3,v)}; g.q.A8=function(){for(var v;v=bo2(this);)jzF(this,v,this.T,this.K);this.j=!1}; var ous=zA;g.Jo(ZJ,to);ZJ.prototype.name="cancel";g.Jo(g.ui,g.EF);g.q=g.ui.prototype;g.q.enabled=!1;g.q.PO=null;g.q.setInterval=function(v){this.LZ=v;this.PO&&this.enabled?(this.stop(),this.start()):this.PO&&this.stop()}; g.q.HJH=function(){if(this.enabled){var v=g.$X()-this.Mb;v>0&&v0&&(this.getStatus(),this.j=setTimeout(this.EK.bind(this), this.oY)),this.getStatus(),this.N=!0,this.T.send(v),this.N=!1}catch(r){this.getStatus(),pRf(this,r)}}; g.q.EK=function(){typeof Yl!="undefined"&&this.T&&(this.L="Timed out after "+this.oY+"ms, aborting",this.X=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.q.abort=function(v){this.T&&this.Z&&(this.getStatus(),this.Z=!1,this.J=!0,this.T.abort(),this.J=!1,this.X=v||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),VX(this))}; g.q.X4=function(){this.T&&(this.Z&&(this.Z=!1,this.J=!0,this.T.abort(),this.J=!1),VX(this,!0));g.K2.Yr.X4.call(this)}; g.q.iI=function(){this.Sl()||(this.dh||this.N||this.J?LxL(this):this.hyt())}; g.q.hyt=function(){LxL(this)}; g.q.isActive=function(){return!!this.T}; g.q.isComplete=function(){return g.r5(this)==4}; g.q.getStatus=function(){try{return g.r5(this)>2?this.T.status:-1}catch(v){return-1}}; g.q.getResponseHeader=function(v){if(this.T&&this.isComplete())return v=this.T.getResponseHeader(v),v===null?void 0:v}; g.q.getLastError=function(){return typeof this.L==="string"?this.L:String(this.L)};DD.prototype.send=function(v,J,G){J=J===void 0?function(){}:J; G=G===void 0?function(){}:G; lps(v.url,function(K){K=K.target;qM(K)?J(g.EZ(K)):G(K.getStatus())},v.requestType,v.body,v.requestHeaders,v.timeoutMillis,v.withCredentials)}; DD.prototype.oC=function(){return 1};Bt.prototype.done=function(){this.logger.xH(this.event,ti()-this.startTime)}; g.z(If,em);g.z(zj,If);g.q=zj.prototype;g.q.I7=function(){}; g.q.HE=function(){}; g.q.xH=function(){}; g.q.nZ=function(){}; g.q.wj=function(){}; g.q.i4=function(v,J,G,K){return K}; g.q.hL=function(){}; g.q.Wq=function(){}; g.q.V6=function(){}; g.q.VP=function(){}; g.z(n2,If);g.q=n2.prototype;g.q.update=function(v){this.logger.dispose();this.logger=v}; g.q.HE=function(v){this.logger.HE(v)}; g.q.xH=function(v,J){this.logger.xH(v,J)}; g.q.nZ=function(v){this.logger.nZ(v)}; g.q.wj=function(){this.logger.wj()}; g.q.i4=function(v,J,G,K){return this.logger.i4(v,J,G,K)}; g.q.hL=function(v){this.logger.hL(v)}; g.q.Wq=function(v){this.logger.Wq(v)}; g.q.V6=function(v){this.logger.V6(v)}; g.q.VP=function(v){this.logger.VP(v)}; g.q.I7=function(v){this.logger.I7(v)}; g.z(d5,g.X);g.z(sZ,If);g.q=sZ.prototype;g.q.I7=function(v){this.metrics.DIe.YN(v,this.pJ)}; g.q.HE=function(v){this.metrics.eventCount.Wv(v,this.pJ)}; g.q.xH=function(v,J){this.metrics.bA.YN(J,v,this.pJ)}; g.q.nZ=function(v){this.metrics.errorCount.Wv(v,this.pJ)}; g.q.i4=function(v,J,G,K){function V(E){if(!Y.Sl()){var e=ti()-r;Y.metrics.Gvl.YN(e,v,G,E,J,Y.pJ)}} var Y=this,r=ti();K.then(function(){return void V(0)},function(E){return void V(E instanceof cp?E.code:-1)}); return K}; g.q.hL=function(v){this.metrics.U$l.Wv(v,this.pJ)}; g.q.Wq=function(v){this.metrics.NN.Wv(v,this.pJ)}; g.q.V6=function(v){this.metrics.R$Y.Wv(v,this.pJ)}; g.z(Rf,sZ);Rf.prototype.VP=function(v){var J=this;this.T.dispose();this.X&&this.service.dispose();this.service=this.options.V4("49",this.options.aO.concat(v));this.T=new d5(function(){return void J.service.vM()},this.options.lC); this.metrics=Ok8(this.service);this.Z=v}; Rf.prototype.wj=function(){xit(this.T)};g.z(l7,Fc);g.z(p2,Fc);g.z(L2,Fc);var NdU=TN(L2),SAr=function(v){return Fk(function(J){return J instanceof v&&!g6(J)})}(L2); L2.messageId="bfkj";g.z(KG,Fc);g.z(yX,Fc);var fpw=TN(yX);g.z(OZ,g.X);OZ.prototype.snapshot=function(v){if(this.Sl())throw Error("Already disposed");this.logger.HE("n");var J=this.logger.share();return this.Z.then(function(G){var K=G.OM;return new Promise(function(V){var Y=new Bt(J,"n");K(function(r){Y.done();J.I7(r.length);J.wj();J.dispose();V(r)},[v.pZ, v.Ft,v.Y4,v.Cm])})})}; OZ.prototype.Km=function(v){var J=this;if(this.Sl())throw Error("Already disposed");this.logger.HE("n");var G=hi(this.logger,function(){return J.L([v.pZ,v.Ft,v.Y4,v.Cm])},"n"); this.logger.I7(G.length);this.logger.wj();return G}; OZ.prototype.Ql=function(v){this.Z.then(function(J){var G;(G=J.Hq4)==null||G(v)})}; OZ.prototype.Mf=function(){return this.logger.share()};g.z(S7,Fc);g.z(f2,Fc);ZD.prototype.Yb=function(v,J){return apj(this,v,J,new zj,0)}; ZD.prototype.FW=function(v){return Hkm(this,v,new zj,0)};g.z(u7,g.X);u7.prototype.snapshot=function(v){var J=this;return g.m(function(G){switch(G.T){case 1:if(J.Sl())throw Error("Already disposed");if(J.X||J.K){G.sB(2);break}return g.U(G,J.J.promise,2);case 2:if(!J.X){G.sB(4);break}return g.U(G,J.X.snapshot(v),5);case 5:return G.return(G.X);case 4:throw J.K;}})}; u7.prototype.Ql=function(v){var J,G;(J=this.X)==null||(G=J.Ql)==null||G.call(J,v)}; u7.prototype.handleError=function(v){if(!this.Sl()){this.K=v;this.J.resolve();var J,G;(G=(J=this.options).GSB)==null||G.call(J,v)}}; u7.prototype.Mf=function(){return this.logger.share()}; var Wx2={CQY:432E5,hH:3E5,oI:10,vS:1E4,Zy:3E4,gye:3E4,qsl:6E4,Ta:1E3,oT:6E4,QJ:6E5,t8:.25,uA:2,maxAttempts:10};var pNG,otf=(pNG=Math.imul)!=null?pNG:function(v,J){return v*J|0},NM=[196, 200,224,18];af.prototype.M$=function(){return String(this.T)+","+this.X.join()}; af.prototype.A3=function(v,J){var G=void 0;if(this.X[this.T]!==v){var K=this.X.indexOf(v);K!==-1?(this.X.splice(K,1),K0;)J[G++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(v%62),v=Math.floor(v/62);return J.join("")}};var hML;g.z(F1,g.X);F1.prototype.zV=function(v,J){var G=this.UX(v);J==null||J(G);return hi(this.logger,function(){return g.hE(G,2)},this.Z)}; hML=Symbol.dispose;g.z(QX,F1);QX.prototype.UX=function(v,J){var G=this;this.logger.HE(this.T);++this.J>=this.j&&this.X.resolve();var K=v();v=hi(this.logger,function(){return G.L(K)},"C"); if(v===void 0)throw new GA(17,"YNJ:Undefined");if(!(v instanceof Uint8Array))throw new GA(18,"ODM:Invalid");J==null||J(v);return v}; g.z(Wt,F1);Wt.prototype.UX=function(){return this.L}; g.z(C2,F1);C2.prototype.UX=function(){var v=this;return hi(this.logger,function(){return n8(v.L)},"d")}; C2.prototype.zV=function(){return this.L}; g.z(b7,F1);b7.prototype.UX=function(){if(this.L)return this.L;this.L=zMs(this,function(v){return"_"+Iym(v)}); return zMs(this,function(v){return v})}; g.z(iL,F1);iL.prototype.UX=function(){var v=Math.floor(Date.now()/1E3),J=[Math.random()*255,Math.random()*255],G=J.concat([this.L&255,this.clientState],[v>>24&255,v>>16&255,v>>8&255,v&255]);v=new Uint8Array(2+G.length);v[0]=34;v[1]=G.length;v.set(G,2);G=v.subarray(2);for(var K=J=J.length;K150))try{this.cache=new eMw(v,this.logger)}catch(J){this.reportError(new GA(22,"GBJ:init",J))}}; $a.prototype.reportError=function(v){this.logger.nZ(v.code);this.onError(v);return v}; g.z(oW,$a);oW.prototype.Gz=function(){return this.L.promise}; oW.prototype.UX=function(v){return vu(this,Object.assign({},v),!1)}; oW.prototype.zV=function(v){return vu(this,Object.assign({},v),!0)}; var L2t=function(v){return Fk(function(J){if(!rt(J))return!1;for(var G=g.n(Object.entries(v)),K=G.next();!K.done;K=G.next()){var V=g.n(K.value);K=V.next().value;V=V.next().value;if(!(K in J)){if(V.Aih===!0)continue;return!1}if(!V(J[K]))return!1}return!0})}({EN:function(v){return Fk(function(J){return J instanceof v})}(u7)},"");g.z(Vz,Fc);var LFS=TN(Vz);OIB.prototype.getMetadata=function(){return this.metadata};Ya.prototype.getMetadata=function(){return this.metadata}; Ya.prototype.getStatus=function(){return this.status};rW.prototype.K=function(v,J){J=J===void 0?{}:J;return new OIB(v,this,J)}; rW.prototype.getName=function(){return this.name};var yoG=new rW("/google.internal.waa.v1.Waa/Create",S7,Vz,function(v){return v.M$()},LFS);g.z(qE,Fc);var Fxr=new rW("/google.internal.waa.v1.Waa/GenerateIT",f2,qE,function(v){return v.M$()},TN(qE));var obj=new Set(["SAPISIDHASH","APISIDHASH"]);g.z(En,Fc);En.prototype.getValue=function(){var v=M7(this,2);if(Array.isArray(v)||v instanceof Fc)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return G7(this,2)};g.z(eT,Fc);eT.prototype.getMessage=function(){return dK(this,2)}; var ZIF=TN(eT);Pu.prototype.rj=function(v,J){v=="data"?this.Z.push(J):v=="metadata"?this.J.push(J):v=="status"?this.j.push(J):v=="end"?this.L.push(J):v=="error"&&this.X.push(J);return this}; Pu.prototype.removeListener=function(v,J){v=="data"?hC(this.Z,J):v=="metadata"?hC(this.J,J):v=="status"?hC(this.j,J):v=="end"?hC(this.L,J):v=="error"&&hC(this.X,J);return this}; Pu.prototype.cancel=function(){this.T.abort()}; Pu.prototype.cancel=Pu.prototype.cancel;Pu.prototype.removeListener=Pu.prototype.removeListener;Pu.prototype.on=Pu.prototype.rj;g.z(xhX,Error);g.Jo(g.zO,BRL);g.zO.prototype.T=function(){var v=new nu(this.L,this.Z);this.X&&v.setCredentialsMode(this.X);return v}; g.zO.prototype.setCredentialsMode=function(v){this.X=v}; g.Jo(nu,g.EF);g.q=nu.prototype;g.q.open=function(v,J){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.oY=v;this.N=J;this.readyState=1;dW(this)}; g.q.send=function(v){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.T=!0;var J={headers:this.U,method:this.oY,credentials:this.J,cache:void 0};v&&(J.body=v);(this.Ti||g.X2).fetch(new Request(this.N,J)).then(this.SBB.bind(this),this.g4.bind(this))}; g.q.abort=function(){this.response=this.responseText="";this.U=new Headers;this.status=0;this.Z&&this.Z.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.T&&this.readyState!=4&&(this.T=!1,sn(this));this.readyState=0}; g.q.SBB=function(v){if(this.T&&(this.L=v,this.X||(this.status=this.L.status,this.statusText=this.L.statusText,this.X=v.headers,this.readyState=2,dW(this)),this.T&&(this.readyState=3,dW(this),this.T)))if(this.responseType==="arraybuffer")v.arrayBuffer().then(this.yt4.bind(this),this.g4.bind(this));else if(typeof g.X2.ReadableStream!=="undefined"&&"body"in v){this.Z=v.body.getReader();if(this.j){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.K=new TextDecoder;uMF(this)}else v.text().then(this.qBt.bind(this),this.g4.bind(this))}; g.q.gBh=function(v){if(this.T){if(this.j&&v.value)this.response.push(v.value);else if(!this.j){var J=v.value?v.value:new Uint8Array(0);if(J=this.K.decode(J,{stream:!v.done}))this.response=this.responseText+=J}v.done?sn(this):dW(this);this.readyState==3&&uMF(this)}}; g.q.qBt=function(v){this.T&&(this.response=this.responseText=v,sn(this))}; g.q.yt4=function(v){this.T&&(this.response=v,sn(this))}; g.q.g4=function(){this.T&&sn(this)}; g.q.setRequestHeader=function(v,J){this.U.append(v,J)}; g.q.getResponseHeader=function(v){return this.X?this.X.get(v.toLowerCase())||"":""}; g.q.getAllResponseHeaders=function(){if(!this.X)return"";for(var v=[],J=this.X.entries(),G=J.next();!G.done;)G=G.value,v.push(G[0]+": "+G[1]),G=J.next();return v.join("\r\n")}; g.q.setCredentialsMode=function(v){this.J=v}; Object.defineProperty(nu.prototype,"withCredentials",{get:function(){return this.J==="include"}, set:function(v){this.setCredentialsMode(v?"include":"same-origin")}});g.RW.prototype.toString=function(){var v=[],J=this.J;J&&v.push(On(J,wNX,!0),":");var G=this.T;if(G||J=="file")v.push("//"),(J=this.U)&&v.push(On(J,wNX,!0),"@"),v.push(g.o7(G).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),G=this.Z,G!=null&&v.push(":",String(G));if(G=this.X)this.T&&G.charAt(0)!="/"&&v.push("/"),v.push(On(G,G.charAt(0)=="/"?OGU:US8,!0));(G=this.L.toString())&&v.push("?",G);(G=this.j)&&v.push("#",On(G,xSm));return v.join("")}; g.RW.prototype.resolve=function(v){var J=this.clone(),G=!!v.J;G?g.lL(J,v.J):G=!!v.U;G?J.U=v.U:G=!!v.T;G?g.TO(J,v.T):G=v.Z!=null;var K=v.X;if(G)g.pu(J,v.Z);else if(G=!!v.X){if(K.charAt(0)!="/")if(this.T&&!this.X)K="/"+K;else{var V=J.X.lastIndexOf("/");V!=-1&&(K=J.X.slice(0,V+1)+K)}V=K;if(V==".."||V==".")K="";else if(g.lU(V,"./")||g.lU(V,"/.")){K=dT(V,"/");V=V.split("/");for(var Y=[],r=0;r1||Y.length==1&&Y[0]!="")&&Y.pop(), K&&r==V.length&&Y.push("")):(Y.push(E),K=!0)}K=Y.join("/")}else K=V}G?J.X=K:G=v.L.toString()!=="";G?Lu(J,v.L.clone()):G=!!v.j;G&&(J.j=v.j);return J}; g.RW.prototype.clone=function(){return new g.RW(this)}; var wNX=/[#\/\?@]/g,US8=/[#\?:]/g,OGU=/[#\?]/g,XMw=/[#\?@]/g,xSm=/#/g;g.q=wW.prototype;g.q.add=function(v,J){mV(this);this.Z=null;v=ST(this,v);var G=this.T.get(v);G||this.T.set(v,G=[]);G.push(J);this.X=this.X+1;return this}; g.q.remove=function(v){mV(this);v=ST(this,v);return this.T.has(v)?(this.Z=null,this.X=this.X-this.T.get(v).length,this.T.delete(v)):!1}; g.q.clear=function(){this.T=this.Z=null;this.X=0}; g.q.isEmpty=function(){mV(this);return this.X==0}; g.q.forEach=function(v,J){mV(this);this.T.forEach(function(G,K){G.forEach(function(V){v.call(J,V,K,this)},this)},this)}; g.q.dH=function(){mV(this);for(var v=Array.from(this.T.values()),J=Array.from(this.T.keys()),G=[],K=0;K0?String(v[0]):J}; g.q.toString=function(){if(this.Z)return this.Z;if(!this.T)return"";for(var v=[],J=Array.from(this.T.keys()),G=0;G>>3;Y.Z!=1&&Y.Z!=2&&Y.Z!=15&&gW(Y,r,E,"unexpected tag");Y.T=1;Y.X=0;Y.L=0} function G(e){Y.L++;Y.L==5&&e&240&&gW(Y,r,E,"message length too long");Y.X|=(e&127)<<(Y.L-1)*7;e&128||(Y.T=2,Y.U=0,typeof Uint8Array!=="undefined"?Y.J=new Uint8Array(Y.X):Y.J=Array(Y.X),Y.X==0&&V())} function K(e){Y.J[Y.U++]=e;Y.U==Y.X&&V()} function V(){if(Y.Z<15){var e={};e[Y.Z]=Y.J;Y.K.push(e)}Y.T=0} for(var Y=this,r=v instanceof Array?v:new Uint8Array(v),E=0;E0?v:null};Xl.prototype.isInputValid=function(){return this.T===null}; Xl.prototype.qL=function(){return this.T}; Xl.prototype.yr=function(){return!1}; Xl.prototype.parse=function(v){this.T!==null&&MAt(this,v,"stream already broken");var J=null;try{var G=this.Z;G.Z||HIU(G,v,"stream already broken");G.T+=v;var K=Math.floor(G.T.length/4);if(K==0)var V=null;else{try{var Y=PUw(G.T.slice(0,K*4))}catch(r){HIU(G,G.T,r.message)}G.X+=K*4;G.T=G.T.slice(K*4);V=Y}J=V===null?null:this.L.parse(V)}catch(r){MAt(this,v,r.message)}this.X+=v.length;return J};var S8S={INIT:0,sy:1,Ng:2,j2:3,e0:4,XV:5,STRING:6,f_:7,AX:8,Fn:9,jY:10,JX:11,So:12,FG:13,jo:14,J9:15,Z9:16,MR:17,vp:18,d$:19,hE:20};g.q=Fl.prototype;g.q.isInputValid=function(){return this.J!=3}; g.q.qL=function(){return this.N}; g.q.done=function(){return this.J===2}; g.q.yr=function(){return!1}; g.q.parse=function(v){function J(){for(;B0;)if(h=v[B++], Y.U===4?Y.U=0:Y.U++,!h)break a;if(h==='"'&&!Y.K){Y.T=K();break}if(h==="\\"&&!Y.K&&(Y.K=!0,h=v[B++],!h))break;if(Y.K)if(Y.K=!1,h==="u"&&(Y.U=1),h=v[B++])continue;else break;E.lastIndex=B;h=E.exec(v);if(!h){B=v.length+1;break}B=h.index+1;h=v[h.index];if(!h)break}Y.Z+=B-R;continue;case e.Fn:if(!h)continue;h==="r"?Y.T=e.jY:Hu(Y,v,B);continue;case e.jY:if(!h)continue;h==="u"?Y.T=e.JX:Hu(Y,v,B);continue;case e.JX:if(!h)continue;h==="e"?Y.T=K():Hu(Y,v,B);continue;case e.So:if(!h)continue;h==="a"?Y.T=e.FG: Hu(Y,v,B);continue;case e.FG:if(!h)continue;h==="l"?Y.T=e.jo:Hu(Y,v,B);continue;case e.jo:if(!h)continue;h==="s"?Y.T=e.J9:Hu(Y,v,B);continue;case e.J9:if(!h)continue;h==="e"?Y.T=K():Hu(Y,v,B);continue;case e.Z9:if(!h)continue;h==="u"?Y.T=e.MR:Hu(Y,v,B);continue;case e.MR:if(!h)continue;h==="l"?Y.T=e.vp:Hu(Y,v,B);continue;case e.vp:if(!h)continue;h==="l"?Y.T=K():Hu(Y,v,B);continue;case e.d$:h==="."?Y.T=e.hE:Hu(Y,v,B);continue;case e.hE:if("0123456789.eE+-".indexOf(h)!==-1)continue;else B--,Y.Z--,Y.T= K();continue;default:Hu(Y,v,B)}}} function K(){var h=r.pop();return h!=null?h:e.sy} function V(h){Y.X>1||(h||(h=t===-1?Y.L+v.substring(D,B):v.substring(t,B)),Y.oY?Y.j.push(h):Y.j.push(JSON.parse(h)),t=B)} for(var Y=this,r=Y.Ti,E=Y.dh,e=S8S,P=v.length,D=0,t=-1,B=0;B0?(I=Y.j,Y.j=[],I):null}return null};ME.prototype.isInputValid=function(){return this.J===null}; ME.prototype.qL=function(){return this.J}; ME.prototype.yr=function(){return!1}; ME.prototype.parse=function(v){function J(e){Y.X=6;Y.J="The stream is broken @"+Y.T+"/"+r+". Error: "+e+". With input:\n";throw Error(Y.J);} function G(){Y.Z=new Fl({hJ7:!0,RJ:!0})} function K(e){if(e)for(var P=0;P1)&&J("extra status: "+e);Y.j=!0;var P={};P[2]=e[0];Y.L.push(P)}} for(var Y=this,r=0;r0?(v=Y.L,Y.L=[],v):null};Qz.prototype.FN=function(){return this.T}; Qz.prototype.getStatus=function(){return this.J}; Qz.prototype.oY=function(v){v=v.target;try{if(v==this.T)a:{var J=g.r5(this.T),G=this.T.X,K=this.T.getStatus(),V=g.EZ(this.T);v=[];if(g.e7(this.T)instanceof Array){var Y=g.e7(this.T);Y.length>0&&Y[0]instanceof Uint8Array&&(this.N=!0,v=Y)}if(!(J<3||J==3&&!V&&v.length==0))if(K=K==200||K==206,J==4&&(G==8?Wu(this,7):G==7?Wu(this,8):K||Wu(this,3)),this.X||(this.X=Qn2(this.T),this.X==null&&Wu(this,5)),this.J>2)Cu(this);else{if(v.length>this.Z){var r=v.length;G=[];try{if(this.X.yr())for(var E=0;Ethis.Z){E=V.slice(this.Z);this.Z=V.length;try{var P=this.X.parse(E);P!=null&&this.L&&this.L(P)}catch(D){Wu(this,5);Cu(this);break a}}J==4?(V.length!= 0||this.N?Wu(this,2):Wu(this,4),Cu(this)):Wu(this,1)}}}catch(D){Wu(this,6),Cu(this)}};g.q=W2m.prototype;g.q.rj=function(v,J){var G=this.X[v];G||(G=[],this.X[v]=G);G.push(J);return this}; g.q.addListener=function(v,J){this.rj(v,J);return this}; g.q.removeListener=function(v,J){var G=this.X[v];G&&g.j5(G,J);(v=this.T[v])&&g.j5(v,J);return this}; g.q.once=function(v,J){var G=this.T[v];G||(G=[],this.T[v]=G);G.push(J);return this}; g.q.q$B=function(v){var J=this.X.data;J&&CZ2(v,J);(J=this.T.data)&&CZ2(v,J);this.T.data=[]}; g.q.KWl=function(){switch(this.Z.getStatus()){case 1:bL(this,"readable");break;case 5:case 6:case 4:case 7:case 3:bL(this,"error");break;case 8:bL(this,"close");break;case 2:bL(this,"end")}};bI8.prototype.serverStreaming=function(v,J,G,K){var V=this,Y=v.substring(0,v.length-K.name.length);return jpw(function(r){var E=r.H6,e=r.getMetadata(),P=vbw(V,!1);e=JGj(V,e,P,Y+E.getName());var D=GDX(P,E.X,!0);r=E.T(r.WR);P.send(e,"POST",r);return D},this.L).call(this,K.K(J,G))};KKf.prototype.create=function(v,J){return Aqr(this.T,this.X+"/$rpc/google.internal.waa.v1.Waa/Create",v,J||{},yoG)};g.z(jz,$a);g.q=jz.prototype;g.q.isReady=function(){return!!this.T}; g.q.ready=function(){var v=this;return g.m(function(J){return g.U(J,v.Z.promise,0)})}; g.q.Yb=function(v){return YF8(this,this.logger.i4("c",this.LO,v===void 0?1:v,this.hS.Yb(xl().T,null)),new GA(10,"JVZ:Timeout"))}; g.q.prefetch=function(){this.state===1&&(this.A$=this.Yb())}; g.q.start=function(){if(this.state===1){this.state=2;var v=new Bt(this.logger,"r");this.ready().finally(function(){return void v.done()}); qFL(this)}}; g.q.UX=function(v){Ebs(this,v);return vu(this,VCs(v),!1)}; g.q.zV=function(v){Ebs(this,v);return vu(this,VCs(v),!0)}; g.z($K,to);var tC2={NONE:0,GH7:1},Qp8={Fs:0,Pjl:1,id7:2,Ode:3},uq={bL:"a",C1H:"d",VIDEO:"v"};v_.prototype.isVisible=function(){return this.yG?this.zr>=.3:this.zr>=.5};var ez={cFH:0,NGB:1},HQm={NONE:0,rVB:1,Qwr:2};JI.prototype.getValue=function(){return this.X}; g.z(GU,JI);GU.prototype.Z=function(v){this.X===null&&g.uA(this.L,v)&&(this.X=v)}; g.z(ol,JI);ol.prototype.Z=function(v){this.X===null&&typeof v==="number"&&(this.X=v)}; g.z(KO,JI);KO.prototype.Z=function(v){this.X===null&&typeof v==="string"&&(this.X=v)};Vn.prototype.disable=function(){this.X=!1}; Vn.prototype.enable=function(){this.X=!0}; Vn.prototype.isEnabled=function(){return this.X}; Vn.prototype.reset=function(){this.T={};this.X=!0;this.Z={}};var OG=document,B_=window;var C7t=!g.tz&&!kX();P_.prototype.now=function(){return 0}; P_.prototype.X=function(){return 0}; P_.prototype.Z=function(){return 0}; P_.prototype.T=function(){return 0};g.z(tI,P_);tI.prototype.now=function(){return DQ()&&B_.performance.now?B_.performance.now():P_.prototype.now.call(this)}; tI.prototype.X=function(){return DQ()&&B_.performance.memory?B_.performance.memory.totalJSHeapSize||0:P_.prototype.X.call(this)}; tI.prototype.Z=function(){return DQ()&&B_.performance.memory?B_.performance.memory.usedJSHeapSize||0:P_.prototype.Z.call(this)}; tI.prototype.T=function(){return DQ()&&B_.performance.memory?B_.performance.memory.jsHeapSizeLimit||0:P_.prototype.T.call(this)};var hbB=li(function(){var v=!1;try{var J=Object.defineProperty({},"passive",{get:function(){v=!0}}); g.X2.addEventListener("test",null,J)}catch(G){}return v});zbw.prototype.isVisible=function(){return zU(OG)===1};var dCm={h$i:"allow-forms",Npb:"allow-modals",wwi:"allow-orientation-lock",ERi:"allow-pointer-lock",HZ4:"allow-popups",uzw:"allow-popups-to-escape-sandbox",oR7:"allow-presentation",TPl:"allow-same-origin",QmU:"allow-scripts",tDU:"allow-top-navigation",bZB:"allow-top-navigation-by-user-activation"},TQt=li(function(){return sp8()});var wpr=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");lq.prototype.Dm=function(v,J,G){v=v+"//"+J+G;var K=mCL(this)-G.length;if(K<0)return"";this.T.sort(function(P,D){return P-D}); G=null;J="";for(var V=0;V=e.length){K-=e.length;v+=e;J=this.Z;break}G=G==null?Y:G}}K="";G!=null&&(K=""+J+"trn="+G);return v+K};xK.prototype.setInterval=function(v,J){return B_.setInterval(v,J)}; xK.prototype.clearInterval=function(v){B_.clearInterval(v)}; xK.prototype.setTimeout=function(v,J){return B_.setTimeout(v,J)}; xK.prototype.clearTimeout=function(v){B_.clearTimeout(v)};g.z(Sz,Fc);Sz.prototype.X=oOj([0,iGY,Jo_,-2,KFT]);var MCX={Sjl:1,jj:2,I7B:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};WKm.prototype.F8=function(v){if(typeof v==="string"&&v.length!=0){var J=this.Fu;if(J.X){v=v.split("&");for(var G=v.length-1;G>=0;G--){var K=v[G].split("="),V=decodeURIComponent(K[0]);K.length>1?(K=decodeURIComponent(K[1]),K=/^[0-9]+$/g.exec(K)?parseInt(K,10):K):K=1;(V=J.T[V])&&V.Z(K)}}}};var ib=null;var kK=g.X2.performance,f_U=!!(kK&&kK.mark&&kK.measure&&kK.clearMarks),gn=li(function(){var v;if(v=f_U){var J=J===void 0?window:J;if(ib===null){ib="";try{v="";try{v=J.top.location.hash}catch(K){v=J.location.hash}if(v){var G=v.match(/\bdeid=([\d,]+)/);ib=G?G[1]:""}}catch(K){}}J=ib;v=!!J.indexOf&&J.indexOf("1337")>=0}return v}); X_.prototype.disable=function(){this.T=!1;this.events!==this.X.google_js_reporting_queue&&(gn()&&g.PW(this.events,vlw),this.events.length=0)}; X_.prototype.start=function(v,J){if(!this.T)return null;var G=i22()||jfm();v=new $MX(v,J,G);J="goog_"+v.label+"_"+v.uniqueId+"_start";kK&&gn()&&kK.mark(J);return v}; X_.prototype.end=function(v){if(this.T&&typeof v.value==="number"){var J=i22()||jfm();v.duration=J-v.value;J="goog_"+v.label+"_"+v.uniqueId+"_end";kK&&gn()&&kK.mark(J);!this.T||this.events.length>2048||this.events.push(v)}};JiF.prototype.Is=function(v,J,G,K,V){V=V||this.Az;try{var Y=new lq;Y.T.push(1);Y.X[1]=TU("context",v);J.error&&J.meta&&J.id||(J=new AI(F_(J)));if(J.msg){var r=J.msg.substring(0,512);Y.T.push(2);Y.X[2]=TU("msg",r)}var E=J.meta||{};if(this.d3)try{this.d3(E)}catch(I){}if(K)try{K(E)}catch(I){}K=[E];Y.T.push(3);Y.X[3]=K;var e=UCf();if(e.X){var P=e.X.url||"";Y.T.push(4);Y.X[4]=TU("top",P)}var D={url:e.T.url||""};if(e.T.url){var t=e.T.url.match(MC);var B=FB(t[1],null,t[3],t[4])}else B="";P=[D,{url:B}];Y.T.push(5); Y.X[5]=P;CiX(this.T,V,Y,G)}catch(I){try{CiX(this.T,V,{context:"ecmserr",rctx:v,msg:F_(I),url:e&&e.T.url},G)}catch(h){}}return this.jr}; g.z(AI,bQL);var Nf,al,c_=new X_;Nf=new function(){var v="https:";B_&&B_.location&&B_.location.protocol==="http:"&&(v="http:");this.X=v;this.T=.01}; al=new JiF;B_&&B_.document&&(B_.document.readyState=="complete"?olm():c_.T&&hI(B_,"load",function(){olm()}));var YZr=Date.now(),jp=-1,CO=-1,TWs,it=-1,bq=!1;g.q=$3.prototype;g.q.getHeight=function(){return this.bottom-this.top}; g.q.clone=function(){return new $3(this.top,this.right,this.bottom,this.left)}; g.q.contains=function(v){return this&&v?v instanceof $3?v.left>=this.left&&v.right<=this.right&&v.top>=this.top&&v.bottom<=this.bottom:v.x>=this.left&&v.x<=this.right&&v.y>=this.top&&v.y<=this.bottom:!1}; g.q.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.q.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.q.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.q.scale=function(v,J){J=typeof J==="number"?J:v;this.left*=v;this.right*=v;this.top*=J;this.bottom*=J;return this};oY.prototype.Rt=function(v,J){return!!v&&(!(J===void 0?0:J)||this.volume==v.volume)&&this.Z==v.Z&&J4(this.T,v.T)&&!0};KL.prototype.ZZ=function(){return this.K}; KL.prototype.Rt=function(v,J){return this.L.Rt(v.L,J===void 0?!1:J)&&this.K==v.K&&J4(this.Z,v.Z)&&J4(this.j,v.j)&&this.T==v.T&&this.J==v.J&&this.X==v.X&&this.U==v.U};var ZGN={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},yP={LS:"start",KG:"firstquartile",X3:"midpoint",nS:"thirdquartile",COMPLETE:"complete",ERROR:"error",bJ:"metric",PAUSE:"pause",Z3:"resume",MN:"skip",F3:"viewable_impression",ej:"mute",qN:"unmute",Df:"fullscreen",CG:"exitfullscreen",vB:"bufferstart",MU:"bufferfinish",mQ:"fully_viewable_audible_half_duration_impression",tW:"measurable_impression",Tn:"abandon",JC:"engagedview",zn:"impression",yZ:"creativeview",Qi:"loaded", CjB:"progress",CLOSE:"close",Qvt:"collapse",XVe:"overlay_resize",c5H:"overlay_unmeasurable_impression",ecb:"overlay_unviewable_impression",pVU:"overlay_viewable_immediate_impression",g6l:"overlay_viewable_end_of_session_impression",qU:"custom_metric_viewable",AC:"audio_audible",cB:"audio_measurable",Xs:"audio_impression"},ZOr="start firstquartile midpoint thirdquartile resume loaded".split(" "),u_f=["start","firstquartile","midpoint","thirdquartile"],LV2=["abandon"],QP={UNKNOWN:-1,LS:0,KG:1,X3:2, nS:3,COMPLETE:4,bJ:5,PAUSE:6,Z3:7,MN:8,F3:9,ej:10,qN:11,Df:12,CG:13,mQ:14,tW:15,Tn:16,JC:17,zn:18,yZ:19,Qi:20,qU:21,vB:22,MU:23,Xs:27,cB:28,AC:29};var qZf={x$H:"addEventListener",bti:"getMaxSize",AVi:"getScreenSize",Xx7:"getState",cVh:"getVersion",I8b:"removeEventListener",ASw:"isViewable"};g.q=g.Y3.prototype;g.q.clone=function(){return new g.Y3(this.left,this.top,this.width,this.height)}; g.q.contains=function(v){return v instanceof g.R7?v.x>=this.left&&v.x<=this.left+this.width&&v.y>=this.top&&v.y<=this.top+this.height:this.left<=v.left&&this.left+this.width>=v.left+v.width&&this.top<=v.top&&this.top+this.height>=v.top+v.height}; g.q.getSize=function(){return new g.Tx(this.width,this.height)}; g.q.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.q.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.q.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.q.scale=function(v,J){J=typeof J==="number"?J:v;this.left*=v;this.width*=v;this.top*=J;this.height*=J;return this};var DMw={};Rp8.prototype.update=function(v){v&&v.document&&(this.K=VM(!1,v,this.isMobileDevice),this.T=VM(!0,v,this.isMobileDevice),T5B(this,v),lDj(this,v))};Zt.prototype.cancel=function(){m4().clearTimeout(this.T);this.T=null}; Zt.prototype.schedule=function(){var v=this,J=m4(),G=ZQ().T.T;this.T=J.setTimeout(fO(G,Mf(143,function(){v.X++;v.Z.sample()})),riX())};g.q=ut.prototype;g.q.GQ=function(){return!1}; g.q.initialize=function(){return this.isInitialized=!0}; g.q.Fl=function(){return this.T.Mr}; g.q.o7=function(){return this.T.oY}; g.q.M5=function(v,J){if(!this.oY||(J===void 0?0:J))this.oY=!0,this.Mr=v,this.U=0,this.T!=this||XK(this)}; g.q.getName=function(){return this.T.jl}; g.q.u3=function(){return this.T.US()}; g.q.US=function(){return{}}; g.q.v7=function(){return this.T.U}; g.q.jd=function(){var v=wS();v.T=VM(!0,this.Z,v.isMobileDevice)}; g.q.Jr=function(){lDj(wS(),this.Z)}; g.q.Hu=function(){return this.L.T}; g.q.sample=function(){}; g.q.isActive=function(){return this.T.j}; g.q.I5=function(v){var J=this.T;this.T=v.v7()>=this.U?v:this;J!==this.T?(this.j=this.T.j,XK(this)):this.j!==this.T.j&&(this.j=this.T.j,XK(this))}; g.q.ZA=function(v){if(v.X===this.T){var J=!this.L.Rt(v,this.N);this.L=v;J&&yif(this)}}; g.q.nO=function(){return this.N}; g.q.dispose=function(){this.Ze=!0}; g.q.Sl=function(){return this.Ze};g.q=k3.prototype;g.q.observe=function(){return!0}; g.q.unobserve=function(){}; g.q.Ux=function(v){this.J=v}; g.q.dispose=function(){if(!this.Sl()){var v=this.X;g.j5(v.J,this);v.N&&this.nO()&&LRs(v);this.unobserve();this.dh=!0}}; g.q.Sl=function(){return this.dh}; g.q.u3=function(){return this.X.u3()}; g.q.v7=function(){return this.X.v7()}; g.q.Fl=function(){return this.X.Fl()}; g.q.o7=function(){return this.X.o7()}; g.q.I5=function(){}; g.q.ZA=function(){this.RO()}; g.q.nO=function(){return this.Ze};g.q=cj.prototype;g.q.v7=function(){return this.T.v7()}; g.q.Fl=function(){return this.T.Fl()}; g.q.o7=function(){return this.T.o7()}; g.q.create=function(v,J,G){var K=null;this.T&&(K=this.dD(v,J,G),gS(this.T,K));return K}; g.q.CL=function(){return this.RB()}; g.q.RB=function(){return!1}; g.q.init=function(v){return this.T.initialize()?(gS(this.T,this),this.L=v,!0):!1}; g.q.I5=function(v){v.v7()==0&&this.L(v.Fl(),this)}; g.q.ZA=function(){}; g.q.nO=function(){return!1}; g.q.dispose=function(){this.J=!0}; g.q.Sl=function(){return this.J}; g.q.u3=function(){return{}};NK.prototype.add=function(v,J,G){++this.Z;v=new O2f(v,J,G);this.T.push(new O2f(v.X,v.T,v.Z+this.Z/4096));this.X=!0;return this};fDm.prototype.toString=function(){var v="//pagead2.googlesyndication.com//pagead/gen_204",J=A4(this.T);J.length>0&&(v+="?"+J);return v};FK.prototype.update=function(v,J,G){v&&(this.T+=J,this.X+=J,this.L+=J,this.Z=Math.max(this.Z,this.L));if(G===void 0?!v:G)this.L=0};var kjt=[1,.75,.5,.3,0];Hj.prototype.update=function(v,J,G,K,V,Y){Y=Y===void 0?!0:Y;J=V?Math.min(v,J):J;for(V=0;V0&&J>=r;r=!(v>0&&v>=r)||G;this.T[V].update(Y&&E,K,!Y||r)}};jd.prototype.update=function(v,J,G,K){this.K=this.K!=-1?Math.min(this.K,J.zr):J.zr;this.Ti=Math.max(this.Ti,J.zr);this.dh=this.dh!=-1?Math.min(this.dh,J.qP):J.qP;this.Mr=Math.max(this.Mr,J.qP);this.Nr.update(J.qP,G.qP,J.T,v,K);this.YB+=v;J.zr===0&&(this.jl+=v);this.X.update(J.zr,G.zr,J.T,v,K);G=K||G.yG!=J.yG?G.isVisible()&&J.isVisible():G.isVisible();J=!J.isVisible()||J.T;this.RY.update(G,v,J)}; jd.prototype.Cz=function(){return this.RY.Z>=this.WH};if(OG&&OG.URL){var u8A=OG.URL,gXm;if(gXm=!!u8A){var XNo;a:{if(u8A){var kAT=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var v1=kAT.exec(decodeURIComponent(u8A));if(v1){XNo=v1[1]&&v1[1].length>1?v1[1].substring(1):"true";break a}}catch(v){}}XNo=""}gXm=XNo.length>0}al.jr=!gXm};var coN=new $3(0,0,0,0);var Qfr=new $3(0,0,0,0);g.z(G2,g.X);g.q=G2.prototype; g.q.X4=function(){if(this.zH.T){if(this.IG.Ec){var v=this.zH.T;v.removeEventListener&&v.removeEventListener("mouseover",this.IG.Ec,Il());this.IG.Ec=null}this.IG.wO&&(v=this.zH.T,v.removeEventListener&&v.removeEventListener("mouseout",this.IG.wO,Il()),this.IG.wO=null)}this.n5&&this.n5.dispose();this.rB&&this.rB.dispose();delete this.bb;delete this.Be;delete this.Sg;delete this.zH.Rr;delete this.zH.T;delete this.IG;delete this.n5;delete this.rB;delete this.Fu;g.X.prototype.X4.call(this)}; g.q.td=function(){return this.rB?this.rB.T:this.position}; g.q.F8=function(v){ZQ().F8(v)}; g.q.nO=function(){return!1}; g.q.a9=function(){return new jd}; g.q.O4=function(){return this.bb}; g.q.xG=function(v){return jWU(this,v,1E4)}; g.q.De=function(v,J,G,K,V,Y,r){this.nW||(this.dC&&(v=this.SA(v,G,V,r),K=K&&this.UJ.zr>=(this.yG()?.3:.5),this.t9(Y,v,K),this.N0=J,v.zr>0&&-1===this.Nl&&(this.Nl=J),this.TW==-1&&this.Cz()&&(this.TW=J),this.Rs==-2&&(this.Rs=vV(this.td())?v.zr:-1),this.UJ=v),this.Be(this))}; g.q.t9=function(v,J,G){this.O4().update(v,J,this.UJ,G)}; g.q.e6=function(){return new v_}; g.q.SA=function(v,J,G,K){G=this.e6();G.T=J;J=m4().X;J=zU(OG)===0?-1:J.isVisible()?0:1;G.X=J;G.zr=this.Vs(v);G.yG=this.yG();G.qP=K;return G}; g.q.Vs=function(v){return this.opacity===0&&qf(this.Fu,"opac")===1?0:v}; g.q.yG=function(){return!1}; g.q.n9=function(){return this.EyB||this.oy4}; g.q.No=function(){W_()}; g.q.m2=function(){W_()}; g.q.G_=function(){return 0}; g.q.Cz=function(){return this.bb.Cz()}; g.q.QV=function(){var v=this.dC;v=(this.hasCompleted||this.Sl())&&!v;var J=ZQ().X!==2||this.A3b;return this.nW||J&&v?2:this.Cz()?4:3}; g.q.k7=function(){return 0};g.K9.prototype.next=function(){return g.Jl}; g.Jl={done:!0,value:void 0};g.K9.prototype.zg=function(){return this};g.z(oaf,v_);var Gb=VTm([void 0,1,2,3,4,8,16]),oN=VTm([void 0,4,8,16]),NTG={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:qD("p0",oN),p1:qD("p1",oN),p2:qD("p2",oN),p3:qD("p3",oN),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:rl("mtos1",[0,2,4],!1,oN),mtos2:rl("mtos2",[0,2,4],!1,oN),mtos3:rl("mtos3",[0,2,4],!1,oN),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:qD("a0",oN),a1:qD("a1",oN),a2:qD("a2",oN),a3:qD("a3",oN),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:qD("c0",oN),c1:qD("c1",oN),c2:qD("c2",oN),c3:qD("c3",oN),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:qD("qmtos",Gb),qnc:qD("qnc",Gb),qmv:qD("qmv",Gb),qnv:qD("qnv",Gb), 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:qD("ss0",oN),ss1:qD("ss1",oN),ss2:qD("ss2",oN),ss3:qD("ss3",oN),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"},a_Y=Object.assign({},NTG,{avid:sF("audio"),avas:"avas",vs:"vs"}),AoG={atos:"atos",avt:rl("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(v,J){return function(G){return G[v]===void 0&&J!==void 0?J:G[v]}}("ss",0), t:"t"};DW.prototype.getValue=function(){return this.X}; DW.prototype.update=function(v,J){v>=32||(this.T&1<=.5;LL(J.volume)&&(this.L=this.L!=-1?Math.min(this.L,J.volume):J.volume,this.j=Math.max(this.j,J.volume));Y&&(this.Ze+=v,this.N+=V?v:0);this.T.update(J.zr,G.zr,J.T,v,K,V);this.Z.update(!0,v);this.J.update(V,v);this.oY.update(G.fullscreen,v);this.wh.update(V&&!Y,v);v=Math.floor(J.mediaTime/1E3);this.qr.update(v,J.isVisible());this.BH.update(v,J.zr>=1);this.xB.update(v, YD(J))}};PLw.prototype.X=function(v){this.Z||(this.T(v)?(v=lQ2(this.N,this.L,v),this.J|=v,v=v==0):v=!1,this.Z=v)};g.z(Id,PLw);Id.prototype.T=function(){return!0}; Id.prototype.j=function(){return!1}; Id.prototype.getId=function(){var v=this,J=gd(yP,function(G){return G==v.L}); return QP[J].toString()}; Id.prototype.toString=function(){var v="";this.j()&&(v+="c");this.Z&&(v+="s");this.J>0&&(v+=":"+this.J);return this.getId()+v};g.z(hU,Id);hU.prototype.X=function(v,J){J=J===void 0?null:J;J!=null&&this.K.push(J);Id.prototype.X.call(this,v)};g.z(z2,DEj);z2.prototype.X=function(){return null}; z2.prototype.Z=function(){return[]};g.z(n9,k3);g.q=n9.prototype;g.q.jA=function(){if(this.element){var v=this.element,J=this.X.T.Z;try{try{var G=nlr(v.getBoundingClientRect())}catch(P){G=new $3(0,0,0,0)}var K=G.right-G.left,V=G.bottom-G.top,Y=ID2(v,J),r=Y.x,E=Y.y;var e=new $3(Math.round(E),Math.round(r+K),Math.round(E+V),Math.round(r))}catch(P){e=coN.clone()}this.Z=e;this.T=wtX(this,this.Z)}}; g.q.df=function(){this.j=this.X.L.T}; g.q.EL=function(v){var J=qf(this.Fu,"od")==1;return M7f(v,this.j,this.element,J)}; g.q.gf=function(){this.timestamp=W_()}; g.q.RO=function(){this.gf();this.jA();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var v=this.element;var J=new g.Tx(v.videoWidth,v.videoHeight);v=this.T;var G=vj(v),K=v.getHeight(),V=J.width;J=J.height;V<=0||J<=0||G<=0||K<=0||(V/=J,J=G/K,v=v.clone(),V>J?(G/=V,K=(K-G)/2,K>0&&(K=v.top+K,v.top=Math.round(K),v.bottom=Math.round(K+G))):(K*=V,G=Math.round((G-K)/2),G>0&&(G=v.left+G,v.left=Math.round(G),v.right=Math.round(G+K))));this.T=v}this.df(); v=this.T;G=this.j;v=v.left<=G.right&&G.left<=v.right&&v.top<=G.bottom&&G.top<=v.bottom?new $3(Math.max(v.top,G.top),Math.min(v.right,G.right),Math.min(v.bottom,G.bottom),Math.max(v.left,G.left)):new $3(0,0,0,0);G=v.top>=v.bottom||v.left>=v.right?new $3(0,0,0,0):v;v=this.X.L;J=V=K=0;if((this.T.bottom-this.T.top)*(this.T.right-this.T.left)>0)if(this.EL(G))G=new $3(0,0,0,0);else{K=wS().L;J=new $3(0,K.height,K.width,0);var Y;K=JU(G,(Y=this.J)!=null?Y:this.T);V=JU(G,wS().T);J=JU(G,J)}Y=G.top>=G.bottom|| G.left>=G.right?new $3(0,0,0,0):GK(G,-this.T.left,-this.T.top);UG()||(V=K=0);this.N=new KL(v,this.element,this.T,Y,K,V,this.timestamp,J)}; g.q.getName=function(){return this.X.getName()};var FFS=new $3(0,0,0,0);g.z(dl,n9);g.q=dl.prototype;g.q.observe=function(){this.L();return!0}; g.q.ZA=function(){n9.prototype.RO.call(this)}; g.q.gf=function(){}; g.q.jA=function(){}; g.q.RO=function(){this.L();n9.prototype.RO.call(this)}; g.q.I5=function(v){v=v.isActive();v!==this.U&&(v?this.L():(wS().T=new $3(0,0,0,0),this.T=new $3(0,0,0,0),this.j=new $3(0,0,0,0),this.timestamp=-1));this.U=v};var Kj={},lZw=(Kj.firstquartile=0,Kj.midpoint=1,Kj.thirdquartile=2,Kj.complete=3,Kj);g.z(Rd,G2);g.q=Rd.prototype;g.q.nO=function(){return!0}; g.q.FX=function(){return this.AV==2}; g.q.xG=function(v){return jWU(this,v,Math.max(1E4,this.Z/3))}; g.q.De=function(v,J,G,K,V,Y,r){var E=this,e=this.K(this)||{};g.HR(e,V);this.Z=e.duration||this.Z;this.N=e.isVpaid||this.N;this.jl=e.isYouTube||this.jl;m4();this.Nr=!1;V=BWB(this,J);tTm(this)===1&&(Y=V);G2.prototype.De.call(this,v,J,G,K,e,Y,r);this.mB&&this.mB.Z&&g.PW(this.j,function(P){P.X(E)})}; g.q.t9=function(v,J,G){G2.prototype.t9.call(this,v,J,G);p9(this).update(v,J,this.UJ,G);this.WH=YD(this.UJ)&&YD(J);this.Mr==-1&&this.BH&&(this.Mr=this.O4().Z.T);this.Tl.Z=0;v=this.Cz();J.isVisible()&&PV(this.Tl,"vs");v&&PV(this.Tl,"vw");LL(J.volume)&&PV(this.Tl,"am");YD(J)?PV(this.Tl,"a"):PV(this.Tl,"mut");this.N2&&PV(this.Tl,"f");J.X!=-1&&(PV(this.Tl,"bm"),J.X==1&&(PV(this.Tl,"b"),YD(J)&&PV(this.Tl,"umutb")));YD(J)&&J.isVisible()&&PV(this.Tl,"avs");this.WH&&v&&PV(this.Tl,"avw");J.zr>0&&PV(this.Tl, "pv");L9(this,this.O4().Z.T,!0)&&PV(this.Tl,"gdr");CL(this.O4().X,1)>=2E3&&PV(this.Tl,"pmx");this.Nr&&PV(this.Tl,"tvoff")}; g.q.a9=function(){return new tU}; g.q.O4=function(){return this.bb}; g.q.e6=function(){return new oaf}; g.q.SA=function(v,J,G,K){v=G2.prototype.SA.call(this,v,J,G,K===void 0?-1:K);v.fullscreen=this.N2;v.paused=this.FX();v.volume=G.volume;LL(v.volume)||(this.o$++,J=this.UJ,LL(J.volume)&&(v.volume=J.volume));G=G.currentTime;v.mediaTime=G!==void 0&&G>=0?G:-1;return v}; g.q.Vs=function(v){return wS(),this.N2?1:G2.prototype.Vs.call(this,v)}; g.q.G_=function(){return 1}; g.q.getDuration=function(){return this.Z}; g.q.QV=function(){return this.nW?2:hCj(this)?5:this.Cz()?4:3}; g.q.k7=function(){return this.wh?this.O4().J.Z>=2E3?4:3:2}; g.q.Ux=function(v){this.rB&&this.rB.Ux(v)};var HGG=g.$X();fZX.prototype.reset=function(){this.T=[];this.X=[]}; var my=UX(fZX);g.z(ZW,cj);g.q=ZW.prototype;g.q.getName=function(){return(this.X?this.X:this.T).getName()}; g.q.u3=function(){return(this.X?this.X:this.T).u3()}; g.q.v7=function(){return(this.X?this.X:this.T).v7()}; g.q.init=function(v){var J=!1;(0,g.PW)(this.Z,function(G){G.initialize()&&(J=!0)}); J&&(this.L=v,gS(this.T,this));return J}; g.q.dispose=function(){(0,g.PW)(this.Z,function(v){v.dispose()}); cj.prototype.dispose.call(this)}; g.q.CL=function(){return yM(this.Z,function(v){return v.GQ()})}; g.q.RB=function(){return yM(this.Z,function(v){return v.GQ()})}; g.q.dD=function(v,J,G){return new n9(v,this.T,J,G)}; g.q.ZA=function(v){this.X=v.X};var AC8={threshold:[0,.3,.5,.75,1]};g.z(uI,n9);g.q=uI.prototype;g.q.observe=function(){var v=this;this.Ti||(this.Ti=W_());if(V7U(298,function(){return FV8(v)}))return!0; this.X.M5("msf");return!1}; g.q.unobserve=function(){if(this.L&&this.element)try{this.L.unobserve(this.element),this.U?(this.U.unobserve(this.element),this.U=null):this.K&&(this.K.disconnect(),this.K=null)}catch(v){}}; g.q.RO=function(){var v=gl(this);v.length>0&&XN(this,v);n9.prototype.RO.call(this)}; g.q.jA=function(){}; g.q.EL=function(){return!1}; g.q.df=function(){}; g.q.u3=function(){var v={};return Object.assign(this.X.u3(),(v.niot_obs=this.Ti,v.niot_cbk=this.oY,v))}; g.q.getName=function(){return"nio"};g.z(kD,cj);kD.prototype.getName=function(){return"nio"}; kD.prototype.RB=function(){return!wS().X&&this.T.T.Z.IntersectionObserver!=null}; kD.prototype.dD=function(v,J,G){return new uI(v,this.T,J,G)};g.z(cV,ut);cV.prototype.Hu=function(){return wS().T}; cV.prototype.GQ=function(){var v=MTj();this.U!==v&&(this.T!=this&&v>this.T.U&&(this.T=this,XK(this)),this.U=v);return v==2};ND.prototype.sample=function(){FN(this,Sd(),!1)}; ND.prototype.L=function(){var v=UG(),J=W_();v?(bq||(jp=J,g.PW(my.T,function(G){var K=G.O4();K.Gi=BV(K,J,G.AV!=1)})),bq=!0):(this.K=jlf(this,J),bq=!1,TWs=J,g.PW(my.T,function(G){G.dC&&(G.O4().U=J)})); FN(this,Sd(),!v)}; var ad=UX(ND);var $fw=null,tS="",D$=!1;var GUr=JIX().nF,MD=JIX().Y$;var VzU={wCt:"visible",kb7:"audible",F7r:"time",j3h:"timetype"},YXt={visible:function(v){return/^(100|[0-9]{1,2})$/.test(v)}, audible:function(v){return v=="0"||v=="1"}, timetype:function(v){return v=="mtos"||v=="tos"}, time:function(v){return/^(100|[0-9]{1,2})%$/.test(v)||/^([0-9])+ms$/.test(v)}}; K4w.prototype.setTime=function(v,J,G){J=="ms"?(this.Z=v,this.L=-1):(this.Z=-1,this.L=v);this.J=G===void 0?"tos":G;return this};g.z(bI,Id);bI.prototype.getId=function(){return this.K}; bI.prototype.j=function(){return!0}; bI.prototype.T=function(v){var J=v.O4(),G=v.getDuration();return yM(this.U,function(K){if(K.T!=void 0)var V=qXU(K,J);else b:{switch(K.J){case "mtos":V=K.X?J.J.Z:J.Z.T;break b;case "tos":V=K.X?J.J.T:J.Z.T;break b}V=0}V==0?K=!1:(K=K.Z!=-1?K.Z:G!==void 0&&G>0?K.L*G:-1,K=K!=-1&&V>=K);return K})};g.z(jy,rCU);jy.prototype.T=function(v){var J=new Ynt;J.T=ed(v,NTG);J.X=ed(v,AoG);return J};g.z(i4,Id);i4.prototype.T=function(v){return hCj(v)};g.z($2,DEj);g.z(vq,Id);vq.prototype.T=function(v){return v.O4().Cz()};g.z(JS,hU);JS.prototype.T=function(v){var J=g.WN(this.K,qf(ZQ().Fu,"ovms"));return!v.nW&&(v.AV!=0||J)};g.z(Gl,$2);Gl.prototype.X=function(){return new JS(this.T)}; Gl.prototype.Z=function(){return[new vq("viewable_impression",this.T),new i4(this.T)]};g.z(oJ,dl);oJ.prototype.L=function(){var v=g.NL("ima.admob.getViewability"),J=qf(this.Fu,"queryid");typeof v==="function"&&J&&v(J)}; oJ.prototype.getName=function(){return"gsv"};g.z(KM,cj);KM.prototype.getName=function(){return"gsv"}; KM.prototype.RB=function(){var v=wS();ZQ();return v.X&&!1}; KM.prototype.dD=function(v,J,G){return new oJ(this.T,J,G)};g.z(Vq,dl);Vq.prototype.L=function(){var v=this,J=g.NL("ima.bridge.getNativeViewability"),G=qf(this.Fu,"queryid");typeof J==="function"&&G&&J(G,function(K){g.Xb(K)&&v.K++;var V=K.opt_nativeViewVisibleBounds||{},Y=K.opt_nativeViewHidden;v.T=dMf(K.opt_nativeViewBounds||{});var r=v.X.L;r.T=Y?FFS.clone():dMf(V);v.timestamp=K.opt_nativeTime||-1;wS().T=r.T;K=K.opt_nativeVolume;K!==void 0&&(r.volume=K)})}; Vq.prototype.getName=function(){return"nis"};g.z(Y2,cj);Y2.prototype.getName=function(){return"nis"}; Y2.prototype.RB=function(){var v=wS();ZQ();return v.X&&!1}; Y2.prototype.dD=function(v,J,G){return new Vq(this.T,J,G)};g.z(r0,ut);g.q=r0.prototype;g.q.GQ=function(){return this.X.kK!=null}; g.q.US=function(){var v={};this.qr&&(v.mraid=this.qr);this.dh&&(v.mlc=1);v.mtop=this.X.CpU;this.K&&(v.mse=this.K);this.YB&&(v.msc=1);v.mcp=this.X.compatibility;return v}; g.q.gS=function(v){var J=g.Om.apply(1,arguments);try{return this.X.kK[v].apply(this.X.kK,J)}catch(G){Qn(538,G,.01,function(K){K.method=v})}}; g.q.initialize=function(){var v=this;if(this.isInitialized)return!this.o7();this.isInitialized=!0;if(this.X.compatibility===2)return this.K="ng",this.M5("w"),!1;if(this.X.compatibility===1)return this.K="mm",this.M5("w"),!1;wS().U=!0;this.Z.document.readyState&&this.Z.document.readyState=="complete"?DfU(this):$D(this.Z,"load",function(){m4().setTimeout(Mf(292,function(){return DfU(v)}),100)},292); return!0}; g.q.jd=function(){var v=wS(),J=z92(this,"getMaxSize");v.T=new $3(0,J.width,J.height,0)}; g.q.Jr=function(){wS().L=z92(this,"getScreenSize")}; g.q.dispose=function(){Bns(this);ut.prototype.dispose.call(this)};var AG2=new function(v,J){this.key=v;this.defaultValue=J===void 0?!1:J;this.valueType="boolean"}("45378663");g.q=E5.prototype;g.q.A2=function(v){od(v,!1);XuB(v)}; g.q.TJ=function(){}; g.q.B0=function(v,J,G,K){var V=this;v=new Rd(B_,v,G?J:-1,7,this.QM(),this.I2());v.SD=K;Pir(v.Fu);rn(v.Fu,"queryid",v.SD);v.F8("");vas(v,function(){return V.gV.apply(V,g.l(g.Om.apply(0,arguments)))},function(){return V.jYe.apply(V,g.l(g.Om.apply(0,arguments)))}); (K=UX(f9).T)&&b2w(v,K);this.Z&&(v.Ux(this.Z),this.Z=null);v.zH.Rr&&UX(QWt);return v}; g.q.I5=function(v){switch(v.v7()){case 0:if(v=UX(f9).T)v=v.T,g.j5(v.J,this),v.N&&this.nO()&&LRs(v);Pq();break;case 2:AU()}}; g.q.ZA=function(){}; g.q.nO=function(){return!1}; g.q.jYe=function(v,J){v.nW=!0;switch(v.G_()){case 1:TnL(v,J);break;case 2:this.GA(v)}}; g.q.UrB=function(v){var J=v.K(v);J&&(J=J.volume,v.wh=LL(J)&&J>0);dEs(v,0);return wl(v,"start",UG())}; g.q.uY=function(v,J,G){FN(ad,[v],!UG());return this.R6(v,J,G)}; g.q.R6=function(v,J,G){return wl(v,G,UG())}; g.q.Kib=function(v){return zl(v,"firstquartile",1)}; g.q.mrb=function(v){v.BH=!0;return zl(v,"midpoint",2)}; g.q.zU4=function(v){return zl(v,"thirdquartile",3)}; g.q.Jtb=function(v){var J=zl(v,"complete",4);lI(v);return J}; g.q.Cwl=function(v){v.AV=3;return wl(v,"error",UG())}; g.q.hj=function(v,J,G){J=UG();if(v.FX()&&!J){var K=v.O4(),V=W_();K.U=V}FN(ad,[v],!J);v.FX()&&(v.AV=1);return wl(v,G,J)}; g.q.RUt=function(v,J){J=this.uY(v,J||{},"skip");lI(v);return J}; g.q.DrH=function(v,J){od(v,!0);return this.uY(v,J||{},"fullscreen")}; g.q.kiB=function(v,J){od(v,!1);return this.uY(v,J||{},"exitfullscreen")}; g.q.g5=function(v,J,G){J=v.O4();var K=W_();J.Gi=BV(J,K,v.AV!=1);FN(ad,[v],!UG());v.AV==1&&(v.AV=2);return wl(v,G,UG())}; g.q.GiU=function(v){FN(ad,[v],!UG());return v.X()}; g.q.UG=function(v){FN(ad,[v],!UG());this.xn(v);lI(v);return v.X()}; g.q.gV=function(){}; g.q.GA=function(){}; g.q.xn=function(){}; g.q.KL=function(){}; g.q.bF=function(){}; g.q.I2=function(){this.T||(this.T=this.bF());return this.T==null?new z2:new Gl(this.T)}; g.q.QM=function(){return new jy};g.z(nM,Id);nM.prototype.T=function(v){return v.k7()==4};g.z(d0,hU);d0.prototype.T=function(v){v=v.k7();return v==3||v==4};g.z(s5,$2);s5.prototype.X=function(){return new d0(this.T)}; s5.prototype.Z=function(){return[new nM(this.T)]};g.z(RJ,rCU);RJ.prototype.T=function(v){v&&(v.e===28&&(v=Object.assign({},v,{avas:3})),v.vs===4||v.vs===5)&&(v=Object.assign({},v,{vs:3}));var J=new Ynt;J.T=ed(v,a_Y);J.X=ed(v,AoG);return J};w_t.prototype.X=function(){return g.NL(this.T)};g.z(l4,E5);g.q=l4.prototype;g.q.TJ=function(v,J){var G=this,K=UX(f9);if(K.T!=null)switch(K.T.getName()){case "nis":var V=mfU(this,v,J);break;case "gsv":V=xfU(this,v,J);break;case "exc":V=SXm(this,v)}V||(J.opt_overlayAdElement?V=void 0:J.opt_adElement&&(V=L4F(this,v,J.opt_adElement,J.opt_osdId)));V&&V.G_()==1&&(V.K==g.Rp&&(V.K=function(Y){return G.KL(Y)}),UfF(this,V,J)); return V}; g.q.KL=function(v){v.X=0;v.Ze=0;if(v.L=="h"||v.L=="n"){ZQ();v.xB&&(ZQ(),IJ(this)!="h"&&IJ(this));var J=g.NL("ima.common.getVideoMetadata");if(typeof J==="function")try{var G=J(v.SD)}catch(V){v.X|=4}else v.X|=2}else if(v.L=="b")if(J=g.NL("ytads.bulleit.getVideoMetadata"),typeof J==="function")try{G=J(v.SD)}catch(V){v.X|=4}else v.X|=2;else if(v.L=="ml")if(J=g.NL("ima.common.getVideoMetadata"),typeof J==="function")try{G=J(v.SD)}catch(V){v.X|=4}else v.X|=2;else v.X|=1;v.X||(G===void 0?v.X|=8:G===null? v.X|=16:g.Xb(G)?v.X|=32:G.errorCode!=null&&(v.Ze=G.errorCode,v.X|=64));G==null&&(G={});J=G;v.U=0;for(var K in ZGN)J[K]==null&&(v.U|=ZGN[K]);yIw(J,"currentTime");yIw(J,"duration");LL(G.volume)&&LL()&&(G.volume*=NaN);return G}; g.q.bF=function(){ZQ();IJ(this)!="h"&&IJ(this);var v=fQ2(this);return v!=null?new w_t(v):null}; g.q.GA=function(v){!v.T&&v.nW&&hS(this,v,"overlay_unmeasurable_impression")&&(v.T=!0)}; g.q.xn=function(v){v.Ke&&(v.Cz()?hS(this,v,"overlay_viewable_end_of_session_impression"):hS(this,v,"overlay_unviewable_impression"),v.Ke=!1)}; g.q.gV=function(){}; g.q.B0=function(v,J,G,K){if(FKm()){var V=qf(ZQ().Fu,"mm"),Y={};(V=(Y[uq.bL]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",Y[uq.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",Y)[V])&&X_U(this,V);this.L==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&Qn(1044,Error())}v=E5.prototype.B0.call(this,v,J,G,K);this.J&&(J=this.j,v.J==null&&(v.J=new JC2),J.T[v.SD]=v.J,v.J.J=HGG);return v}; g.q.A2=function(v){v&&v.G_()==1&&this.J&&delete this.j.T[v.SD];return E5.prototype.A2.call(this,v)}; g.q.I2=function(){this.T||(this.T=this.bF());return this.T==null?new z2:this.L==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new s5(this.T):new Gl(this.T)}; g.q.QM=function(){return this.L==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new RJ:new jy}; g.q.Ux=function(v,J,G,K,V){J=new $3(G,J+K,G+V,J);(v=xD(my,v))?v.Ux(J):this.Z=J}; var MmL=H_(193,cIB,void 0,p_w);g.ks("Goog_AdSense_Lidar_sendVastEvent",MmL);var QLo=Mf(194,function(v,J){J=J===void 0?{}:J;v=gKf(UX(l4),v,J);return kUw(v)}); g.ks("Goog_AdSense_Lidar_getViewability",QLo);var WFF=H_(195,function(){return Xp2()}); g.ks("Goog_AdSense_Lidar_getUrlSignalsArray",WFF);var CUX=Mf(196,function(){return JSON.stringify(Xp2())}); g.ks("Goog_AdSense_Lidar_getUrlSignalsList",CUX);var Nnw=(new Date("2024-01-01T00:00:00Z")).getTime();var F4X=Dr(["//ep2.adtrafficquality.google/sodar/",""]),HOw=Dr(["//tpc.googlesyndication.com/sodar/",""]);g.z(yq,g.X);yq.prototype.Gz=function(){return this.wpc.f()}; yq.prototype.uF=function(v){this.wpc.c(v)}; yq.prototype.UX=function(v){return this.wpc.m(Cq2(v))}; yq.prototype.zV=function(v){return this.wpc.mws(Cq2(v))}; g.z(pM,g.X);pM.prototype.snapshot=function(v){return this.EN.s(Object.assign({},v.pZ&&{c:v.pZ},v.Ft&&{s:v.Ft},v.Cm!==void 0&&{p:v.Cm}))}; pM.prototype.Ql=function(v){this.EN.e(v)}; pM.prototype.Mf=function(){return this.EN.l()};var QdU=(new Date).getTime();var iLj="://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(" "),$Ks=/\bocr\b/;var J4w=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var BSr=Object.assign({},{attributes:{},handleError:function(v){throw v;}},{ZOe:!0, vhi:!0,s8h:LUT,nhl:ywF,ob:!1,N8H:!1,cNi:!1,MOr:!0,pEY:!1});var U5=null,mG=!1,DKB=1,eqr=Symbol("SIGNAL"),Vt={version:0,dw7:0,bO:!1,rp:void 0,JA:void 0,g2:void 0,nC:0,QS:void 0,zO:void 0,Dl:!1,mG:!1,kind:"unknown",Cc:function(){return!1}, Kc:function(){}, Gt:function(){}, XEi:function(){}};var Yj=Symbol("UNSET"),ri=Symbol("COMPUTING"),qc=Symbol("ERRORED");Object.assign({},Vt,{value:Yj,bO:!0,error:null,sH:O5,kind:"computed",Cc:function(v){return v.value===Yj||v.value===ri}, Kc:function(v){if(v.value===ri)throw Error("Detected cycle in computations.");var J=v.value;v.value=ri;var G=KjL(v),K=!1;try{var V=v.p$();x2(null);K=J!==Yj&&J!==qc&&V!==qc&&v.sH(J,V)}catch(Y){V=qc,v.error=Y}finally{Vpm(v,G)}K?v.value=J:(v.value=V,v.version++)}});var E3f=Object.assign({},Vt,{sH:O5,value:void 0,kind:"signal"});Object.assign({},Vt,{value:Yj,bO:!0,error:null,sH:O5,kind:"linkedSignal",Cc:function(v){return v.value===Yj||v.value===ri}, Kc:function(v){if(v.value===ri)throw Error("Detected cycle in computations.");var J=v.value;v.value=ri;var G=KjL(v);try{var K=v.source();var V=v.p$(K,J===Yj||J===qc?void 0:{source:v.Gl7,value:J});v.Gl7=K}catch(Y){V=qc,v.error=Y}finally{Vpm(v,G)}J!==Yj&&V!==qc&&v.sH(J,V)?v.value=J:(v.value=V,v.version++)}});Object.assign({},Vt,{mG:!0,Dl:!1,Gt:function(v){v.schedule!==null&&v.schedule(v.P8B)}, Nj7:!1,ohi:function(){}});var ItL=Symbol("updater");g.z(k2,g.EF);k2.prototype.dispose=function(){window.removeEventListener("offline",this.Z);window.removeEventListener("online",this.Z);this.jU.GH(this.J);delete k2.instance}; k2.prototype.B8=function(){return this.T}; k2.prototype.J7=function(){var v=this;this.J=this.jU.eD(function(){var J;return g.m(function(G){if(G.T==1)return v.T?((J=window.navigator)==null?0:J.onLine)?G.sB(3):g.U(G,Xz(v),3):g.U(G,Xz(v),3);v.J7();g.zX(G)})},3E4)};N3.prototype.set=function(v,J){J=J===void 0?!0:J;0<=v&&v<52&&Number.isInteger(v)&&this.data[v]!==J&&(this.data[v]=J,this.T=-1)}; N3.prototype.get=function(v){return!!this.data[v]};var AS;g.Jo(g.M3,g.X);g.q=g.M3.prototype;g.q.start=function(){this.stop();this.L=!1;var v=dKX(this),J=sY8(this);v&&!J&&this.X.mozRequestAnimationFrame?(this.T=g.JG(this.X,"MozBeforePaint",this.Z),this.X.mozRequestAnimationFrame(null),this.L=!0):this.T=v&&J?v.call(this.X,this.Z):this.X.setTimeout(aCB(this.Z),20)}; g.q.stop=function(){if(this.isActive()){var v=dKX(this),J=sY8(this);v&&!J&&this.X.mozRequestAnimationFrame?Yb(this.T):v&&J?J.call(this.X,this.T):this.X.clearTimeout(this.T)}this.T=null}; g.q.isActive=function(){return this.T!=null}; g.q.HP=function(){this.L&&this.T&&Yb(this.T);this.T=null;this.j.call(this.J,g.$X())}; g.q.X4=function(){this.stop();g.M3.Yr.X4.call(this)};g.Jo(g.Qq,g.X);g.q=g.Qq.prototype;g.q.UP=0;g.q.X4=function(){g.Qq.Yr.X4.call(this);this.stop();delete this.T;delete this.X}; g.q.start=function(v){this.stop();this.UP=g.gQ(this.Z,v!==void 0?v:this.LZ)}; g.q.stop=function(){this.isActive()&&g.X2.clearTimeout(this.UP);this.UP=0}; g.q.isActive=function(){return this.UP!=0}; g.q.DP=function(){this.UP=0;this.T&&this.T.call(this.X)};g.z(g.jj,g.X);g.q=g.jj.prototype;g.q.gD=function(v){this.Z=arguments;this.PO||this.X?this.T=!0:i6(this)}; g.q.stop=function(){this.PO&&(g.X2.clearTimeout(this.PO),this.PO=null,this.T=!1,this.Z=null)}; g.q.pause=function(){this.X++}; g.q.resume=function(){this.X--;this.X||!this.T||this.PO||(this.T=!1,i6(this))}; g.q.X4=function(){g.X.prototype.X4.call(this);this.stop()};g.$f.prototype[Symbol.iterator]=function(){return this}; g.$f.prototype.next=function(){var v=this.T.next();return{value:v.done?void 0:this.X.call(void 0,v.value),done:v.done}};g.Jo(g.ej,g.EF);g.q=g.ej.prototype;g.q.isPlaying=function(){return this.T==1}; g.q.isPaused=function(){return this.T==-1}; g.q.KC=function(){this.EV("begin")}; g.q.xe=function(){this.EV("end")}; g.q.onFinish=function(){this.EV("finish")}; g.q.onStop=function(){this.EV("stop")}; g.q.EV=function(v){this.dispatchEvent(v)};var bGL=li(function(){var v=g.qh("DIV"),J=g.KI?"-webkit":Dt?"-moz":null,G="transition:opacity 1s linear;";J&&(G+=J+"-transition:opacity 1s linear;");J=bFB({style:G});if(v.nodeType===1&&/^(script|style)$/i.test(v.tagName))throw Error("");v.innerHTML=Ha(J);return g.t4(v.firstChild,"transition")!=""});g.Jo(PY,g.ej);g.q=PY.prototype;g.q.play=function(){if(this.isPlaying())return!1;this.KC();this.EV("play");this.startTime=g.$X();this.T=1;if(bGL())return g.ep(this.X,this.j),this.Z=g.gQ(this.A0b,void 0,this),!0;this.Gm(!1);return!1}; g.q.A0b=function(){g.lt(this.X);TSm(this.X,this.K);g.ep(this.X,this.L);this.Z=g.gQ((0,g.bj)(this.Gm,this,!1),this.J*1E3)}; g.q.stop=function(){this.isPlaying()&&this.Gm(!0)}; g.q.Gm=function(v){g.ep(this.X,"transition","");g.X2.clearTimeout(this.Z);g.ep(this.X,this.L);this.endTime=g.$X();this.T=0;if(v)this.onStop();else this.onFinish();this.xe()}; g.q.X4=function(){this.stop();PY.Yr.X4.call(this)}; g.q.pause=function(){};var Lj8={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};Dv("Element","attributes")||Dv("Node","attributes");Dv("Element","innerHTML")||Dv("HTMLElement","innerHTML");Dv("Node","nodeName");Dv("Node","nodeType");Dv("Node","parentNode");Dv("Node","childNodes");Dv("HTMLElement","style")||Dv("Element","style");Dv("HTMLStyleElement","sheet");var mKt=wjt("getPropertyValue"),SGr=wjt("setProperty");Dv("Element","namespaceURI")||Dv("Node","namespaceURI");var xKr={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var g38,hto,uKw,ZLw,Xjj;g38=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]");hto=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.jIY=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.BY=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]");uKw=/^http:\/\/.*/;g.i8m=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");ZLw=/\s+/;Xjj=/[\d\u06f0-\u06f9]/;hz.prototype.zg=function(){return new zY(this.X())}; hz.prototype[Symbol.iterator]=function(){return new n7(this.X())}; hz.prototype.T=function(){return new n7(this.X())}; g.z(zY,g.K9);zY.prototype.next=function(){return this.X.next()}; zY.prototype[Symbol.iterator]=function(){return new n7(this.X)}; zY.prototype.T=function(){return new n7(this.X)}; g.z(n7,hz);n7.prototype.next=function(){return this.Z.next()};s3.prototype.clone=function(){return new s3(this.T,this.K,this.Z,this.J,this.L,this.j,this.X,this.U)}; s3.prototype.Rt=function(v){return this.T==v.T&&this.K==v.K&&this.Z==v.Z&&this.J==v.J&&this.L==v.L&&this.j==v.j&&this.X==v.X&&this.U==v.U};l6.prototype.clone=function(){return new l6(this.start,this.end)}; l6.prototype.getLength=function(){return this.end-this.start};(function(){if(LEw){var v=/Windows NT ([0-9.]+)/;return(v=v.exec(g.wT()))?v[1]:"0"}return oM?(v=/1[0|1][_.][0-9_.]+/,(v=v.exec(g.wT()))?v[0].replace(/_/g,"."):"10"):g.i$?(v=/Android\s+([^\);]+)(\)|;)/,(v=v.exec(g.wT()))?v[1]:""):ULX||xLG||mLX?(v=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(v=v.exec(g.wT()))?v[1].replace(/_/g,"."):""):""})();var c48=function(){if(g.N5)return TY(/Firefox\/([0-9.]+)/);if(g.tz||g.QR||g.y5)return Y8s;if(g.x4){if(aL()||Ao()){var v=TY(/CriOS\/([0-9.]+)/);if(v)return v}return TY(/Chrome\/([0-9.]+)/)}if(g.nP&&!aL())return TY(/Version\/([0-9.]+)/);if(CE||bR){if(v=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.wT()))return v[1]+"."+v[2]}else if(g.wU)return(v=TY(/Android\s+([0-9.]+)/))?v:TY(/Version\/([0-9.]+)/);return""}();g.Jo(g.L7,g.X);g.q=g.L7.prototype;g.q.subscribe=function(v,J,G){var K=this.X[v];K||(K=this.X[v]=[]);var V=this.j;this.T[V]=v;this.T[V+1]=J;this.T[V+2]=G;this.j=V+3;K.push(V);return V}; g.q.unsubscribe=function(v,J,G){if(v=this.X[v]){var K=this.T;if(v=v.find(function(V){return K[V+1]==J&&K[V+2]==G}))return this.nJ(v)}return!1}; g.q.nJ=function(v){var J=this.T[v];if(J){var G=this.X[J];this.L!=0?(this.Z.push(v),this.T[v+1]=function(){}):(G&&g.j5(G,v),delete this.T[v],delete this.T[v+1],delete this.T[v+2])}return!!J}; g.q.publish=function(v,J){var G=this.X[v];if(G){var K=Array(arguments.length-1),V=arguments.length,Y;for(Y=1;Y0&&this.L==0)for(;G=this.Z.pop();)this.nJ(G)}}return Y!=0}return!1}; g.q.clear=function(v){if(v){var J=this.X[v];J&&(J.forEach(this.nJ,this),delete this.X[v])}else this.T.length=0,this.X={}}; g.q.X4=function(){g.L7.Yr.X4.call(this);this.clear();this.Z.length=0};g.yj.prototype.set=function(v,J){J===void 0?this.T.remove(v):this.T.set(v,g.NC(J))}; g.yj.prototype.get=function(v){try{var J=this.T.get(v)}catch(G){return}if(J!==null)try{return JSON.parse(J)}catch(G){throw"Storage: Invalid value was encountered";}}; g.yj.prototype.remove=function(v){this.T.remove(v)};g.Jo(wz,g.yj);wz.prototype.set=function(v,J){wz.Yr.set.call(this,v,A4j(J))}; wz.prototype.X=function(v){v=wz.Yr.get.call(this,v);if(v===void 0||v instanceof Object)return v;throw"Storage: Invalid value was encountered";}; wz.prototype.get=function(v){if(v=this.X(v)){if(v=v.data,v===void 0)throw"Storage: Invalid value was encountered";}else v=void 0;return v};g.Jo(O3,wz);O3.prototype.set=function(v,J,G){if(J=A4j(J)){if(G){if(G=G.length)return g.Jl;var V=G.key(J++);if(v)return g.VP(V);V=G.getItem(V);if(typeof V!=="string")throw"Storage mechanism: Invalid value was encountered";return g.VP(V)}; return K}; g.q.clear=function(){Sj(this);this.T.clear()}; g.q.key=function(v){Sj(this);return this.T.key(v)};g.Jo(f7,mD);g.Jo(QYt,mD);g.Jo(Zv,xf);Zv.prototype.set=function(v,J){this.X.set(this.T+v,J)}; Zv.prototype.get=function(v){return this.X.get(this.T+v)}; Zv.prototype.remove=function(v){this.X.remove(this.T+v)}; Zv.prototype.zg=function(v){var J=this.X[Symbol.iterator](),G=this,K=new g.K9;K.next=function(){var V=J.next();if(V.done)return V;for(V=V.value;V.slice(0,G.T.length)!=G.T;){V=J.next();if(V.done)return V;V=V.value}return g.VP(v?V.slice(G.T.length):G.X.get(V))}; return K};gz.prototype.getValue=function(){return this.X}; gz.prototype.clone=function(){return new gz(this.T,this.X)};g.q=X6.prototype;g.q.A3=function(v,J){var G=this.T;G.push(new gz(v,J));v=G.length-1;J=this.T;for(G=J[v];v>0;){var K=v-1>>1;if(J[K].T>G.T)J[v]=J[K],v=K;else break}J[v]=G}; g.q.remove=function(){var v=this.T,J=v.length,G=v[0];if(!(J<=0)){if(J==1)v.length=0;else{v[0]=v.pop();v=0;J=this.T;for(var K=J.length,V=J[v];v>1;){var Y=v*2+1,r=v*2+2;Y=rV.T)break;J[v]=J[Y];v=Y}J[v]=V}return G.getValue()}}; g.q.uj=function(){for(var v=this.T,J=[],G=v.length,K=0;K>>16&65535|0;for(var Y;G!==0;){Y=G>2E3?2E3:G;G-=Y;do V=V+J[K++]|0,v=v+V|0;while(--Y);V%=65521;v%=65521}return V|v<<16|0};for(var tv={},Et,oY6=[],ex=0;ex<256;ex++){Et=ex;for(var KWm=0;KWm<8;KWm++)Et=Et&1?3988292384^Et>>>1:Et>>>1;oY6[ex]=Et}tv=function(v,J,G,K){G=K+G;for(v^=-1;K>>8^oY6[(v^J[K])&255];return v^-1};var oy={};oy={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 b6=[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],$5=[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],nDB=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],rUj=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],r_=Array(576);a9(r_);var q4=Array(60);a9(q4);var i9=Array(512);a9(i9);var C7=Array(256);a9(C7);var jw=Array(29);a9(jw);var v$=Array(30);a9(v$);var IWr,hLF,zLF,Blr=!1;var n4;n4=[new zm(0,0,0,0,function(v,J){var G=65535;for(G>v.Mn-5&&(G=v.Mn-5);;){if(v.Ni<=1){B$(v);if(v.Ni===0&&J===0)return 1;if(v.Ni===0)break}v.sR+=v.Ni;v.Ni=0;var K=v.lm+G;if(v.sR===0||v.sR>=K)if(v.Ni=v.sR-K,v.sR=K,EE(v,!1),v.O1.Te===0)return 1;if(v.sR-v.lm>=v.D2-262&&(EE(v,!1),v.O1.Te===0))return 1}v.A3=0;if(J===4)return EE(v,!0),v.O1.Te===0?3:4;v.sR>v.lm&&EE(v,!1);return 1}), new zm(4,4,8,4,Iy),new zm(4,5,16,8,Iy),new zm(4,6,32,32,Iy),new zm(4,4,16,16,hv),new zm(8,16,32,32,hv),new zm(8,16,128,128,hv),new zm(8,32,128,256,hv),new zm(32,128,258,1024,hv),new zm(32,258,258,4096,hv)];var tdB={};tdB=function(){this.input=null;this.V3=this.Im=this.Ht=0;this.output=null;this.fm=this.Te=this.RS=0;this.msg="";this.state=null;this.dR=2;this.Fm=0};var dDX=Object.prototype.toString; d_.prototype.push=function(v,J){var G=this.O1,K=this.options.chunkSize;if(this.ended)return!1;var V=J===~~J?J:J===!0?4:0;typeof v==="string"?G.input=bLU(v):dDX.call(v)==="[object ArrayBuffer]"?G.input=new Uint8Array(v):G.input=v;G.Ht=0;G.Im=G.input.length;do{G.Te===0&&(G.output=new NR.Xv(K),G.RS=0,G.Te=K);v=DDF(G,V);if(v!==1&&v!==0)return this.xe(v),this.ended=!0,!1;if(G.Te===0||G.Im===0&&(V===4||V===2))if(this.options.CO==="string"){var Y=NR.Sr(G.output,G.RS);J=Y;Y=Y.length;if(Y<65537&&(J.subarray&& G6X||!J.subarray))J=String.fromCharCode.apply(null,NR.Sr(J,Y));else{for(var r="",E=0;E0||G.Te===0)&&v!==1);if(V===4)return(G=this.O1)&&G.state?(K=G.state.status,K!==42&&K!==69&&K!==73&&K!==91&&K!==103&&K!==113&&K!==666?v=K4(G,-2):(G.state=null,v=K===113?K4(G,-3):0)):v=-2,this.xe(v),this.ended=!0,v===0;V===2&&(this.xe(0),G.Te=0);return!0}; d_.prototype.xe=function(v){v===0&&(this.result=this.options.CO==="string"?this.chunks.join(""):NR.nA(this.chunks));this.chunks=[];this.err=v;this.msg=this.O1.msg};var Ry="@@redux/INIT"+sE(),Lyw="@@redux/REPLACE"+sE();var yUX=typeof Symbol==="function"&&Symbol.observable||"@@observable";var V58=[0,DSS,-3,bQ];g.z(p4,Fc);p4.prototype.getType=function(){return R1(this,11)};var jBw=function(){var v=[0,BTG,tm6,MF,DSS,MF,-1,bQ,DSS,bQ,-1,BTG,bQ,tm6,Q1,V58,MF,-1,bQ];return function(J,G){var K={Ut:!0};G&&Object.assign(K,G);J=pWt(J,void 0,void 0,K);try{var V=new p4;Z6(V);var Y=V.ud;eG(v)(Y,J);var r=V}finally{J.free()}return r}}();var xDF=-1726098923;var au8=new g.L4("adInfoDialogEndpoint");var DTs=new g.L4("adPingingEndpoint");var fzm=new g.L4("crossDeviceProgressCommand");var $c=new g.L4("actionCompanionAdRenderer");var q9=new g.L4("adActionInterstitialRenderer");var YbX=new g.L4("adDurationRemainingRenderer");var Ss=new g.L4("adHoverTextButtonRenderer");var cPX=new g.L4("adInfoDialogRenderer");var Iu=new g.L4("adMessageRenderer");var fa=new g.L4("adPreviewRenderer");var J2=new g.L4("adsEngagementPanelRenderer");var VuX=new g.L4("dismissablePanelTextPortraitImageRenderer");var ovf=new g.L4("adsEngagementPanelSectionListViewModel");var rEF=new g.L4("flyoutCtaRenderer");var v6=new g.L4("imageCompanionAdRenderer");var Y4=new g.L4("instreamAdPlayerOverlayRenderer");var uqf=new g.L4("instreamSurveyAdBackgroundImageRenderer");var m3=new g.L4("instreamSurveyAdPlayerOverlayRenderer");var De=new g.L4("instreamSurveyAdRenderer"),xc=new g.L4("instreamSurveyAdSingleSelectQuestionRenderer"),UR=new g.L4("instreamSurveyAdMultiSelectQuestionRenderer"),P1=new g.L4("instreamSurveyAdAnswerRenderer"),qbL=new g.L4("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var es=new g.L4("instreamVideoAdRenderer");var EY_=new g.L4("textOverlayAdContentRenderer"),eES=new g.L4("enhancedTextOverlayAdContentRenderer"),PlA=new g.L4("imageOverlayAdContentRenderer");var rf=new g.L4("playerOverlayLayoutRenderer");var Ej=new g.L4("videoInterstitialButtonedCenteredLayoutRenderer");var eV8=new g.L4("aboveFeedAdLayoutRenderer");var PPr=new g.L4("belowPlayerAdLayoutRenderer");var Evm=new g.L4("inPlayerAdLayoutRenderer");var Io=new g.L4("playerBytesAdLayoutRenderer");var OR=new g.L4("playerBytesSequenceItemAdLayoutRenderer");var wc=new g.L4("playerUnderlayAdLayoutRenderer");var P6=new g.L4("adIntroRenderer");var qe=new g.L4("playerBytesSequentialLayoutRenderer");var Aas=new g.L4("slidingTextPlayerOverlayRenderer");var t2=new g.L4("surveyTextInterstitialRenderer");var h2=new g.L4("videoAdTrackingRenderer");var D_8=new g.L4("simpleAdBadgeRenderer");var Ki=new g.L4("skipAdRenderer"),t5S=new g.L4("skipButtonRenderer");var kc=new g.L4("adSlotRenderer");var na=new g.L4("squeezebackPlayerSidePanelRenderer");var B68=new g.L4("timedPieCountdownRenderer");var Zb=new g.L4("adAvatarViewModel");var uQ=new g.L4("adBadgeViewModel");var gX=new g.L4("adButtonViewModel");var I6N=new g.L4("adDetailsLineViewModel");var hEF=new g.L4("adDisclosureBannerViewModel");var zEA=new g.L4("adPodIndexViewModel");var nYL=new g.L4("imageBackgroundViewModel");var d_6=new g.L4("adGridCardCollectionViewModel");var sI6=new g.L4("adGridCardTextViewModel");var REo=new g.L4("adPreviewViewModel");var l6L=new g.L4("playerAdAvatarLockupCardButtonedViewModel");var T6_=new g.L4("skipAdButtonViewModel");var pW6=new g.L4("skipAdViewModel");var LWX=new g.L4("timedPieCountdownViewModel");var yEX=new g.L4("visitAdvertiserLinkViewModel");var GC=new g.L4("bannerImageLayoutViewModel");var oo=new g.L4("topBannerImageTextIconButtonedLayoutViewModel");var Ka=new g.L4("adsEngagementPanelLayoutViewModel");var yJ=new g.L4("displayUnderlayTextGridCardsLayoutViewModel");g.ph=new g.L4("browseEndpoint");var wWY=new g.L4("confirmDialogEndpoint");var ttm=new g.L4("commandContext");var eOw=new g.L4("rawColdConfigGroup");var EL2=new g.L4("rawHotConfigGroup");g.hk=new g.L4("commandExecutorCommand");g.z(fWt,Fc);var $Jw={fLU:0,Awl:1,LYB:32,FYY:61,m0U:67,Cfe:103,Jwr:86,s6B:42,n$U:60,cwH:62,SqU:73,ywi:76,k_t:88,KYw:90,G_h:99,MTw:98,D0h:100,qqH:102,RJY:41,U0H:69,zJi:70,IXe:71,l7h:2,a77:27,ANDROID:3,cht:54,e6r:14,Y4Y:91,d5B:55,gRi:24,por:20,ZZh:18,vRB:21,smw:104,q4h:30,jm4:29,Jhh:28,o$l:101,Che:34,yht:36,MDb:38,IOS:5,itw:15,wxH:92,Pml:40,Wzi:25,lRY:17,aRi:19,V4r:64,fRB:66,hrB:26,HD4:22,ual:33,oNr:68,TWB:35,NEh:53,ENw:37,Otr:39,UdY:7,zGH:57,ILr:43,rJi:59,BH4:93,FJB:74,xd4:75,iQB:85,Prt:65,W7l:80,lL4:8,Gy7:10, VUi:58,aLi:63,OQY:72,S4Y:23,x0Y:11,iFl:13,uBt:12,RGl:16,v$4:56,j6w:31,P27:77,ere:84,Yqb:87,guY:89,dPw:94,kgi:95};g.z(yZ,Fc);yZ.prototype.Dy=function(){return dK(this,3)}; yZ.prototype.rX=function(){return dK(this,5)}; yZ.prototype.QY=function(v){return T7(this,5,v)};g.z(w_,Fc);g.z(Z9U,Fc);g.z(OE,Fc);g.q=OE.prototype;g.q.getDeviceId=function(){return dK(this,6)}; g.q.Sq=function(v){var J=vh(this,9,PJ,3,!0);cW(J,v);return J[v]}; g.q.getPlayerType=function(){return R1(this,36)}; g.q.setHomeGroupInfo=function(v){return Bh(this,Z9U,81,v)}; g.q.clearLocationPlayabilityToken=function(){return WJ(this,89)};g.z(UE,Fc);UE.prototype.getValue=function(){return dK(this,ec(this,rDF,2))}; var rDF=[2,3,4,5,6];g.z(x5,Fc);x5.prototype.setTrackingParams=function(v){return WJ(this,1,wNs(v,!1))};g.z(mO,Fc);g.z(Sw,Fc);Sw.prototype.Sq=function(v){var J=vh(this,5,DG,3,!0);cW(J,v);return J[v]};g.z(f4,Fc);f4.prototype.getToken=function(){return z7(this,2)}; f4.prototype.setToken=function(v){return T7(this,2,v)};g.z(Zm,Fc);Zm.prototype.setSafetyMode=function(v){return Lo(this,5,v)};g.z(u9,Fc);u9.prototype.tp=function(v){return Bh(this,OE,1,v)};var uu=new g.L4("thumbnailLandscapePortraitRenderer");g.O86=new g.L4("changeEngagementPanelVisibilityAction");var D2F=new g.L4("continuationCommand");g.U_U=new g.L4("openPopupAction");g.Dh=new g.L4("webCommandMetadata");var Oaf=new g.L4("metadataBadgeRenderer");var P5j=new g.L4("signalServiceEndpoint");var gu=new g.L4("innertubeCommand");var $2w=new g.L4("loggingDirectives");var sJ2={BGU:"EMBEDDED_PLAYER_MODE_UNKNOWN",Umw:"EMBEDDED_PLAYER_MODE_DEFAULT",IOB:"EMBEDDED_PLAYER_MODE_PFP",zgB:"EMBEDDED_PLAYER_MODE_PFL"};var JXU=new g.L4("channelThumbnailEndpoint");var vRm=new g.L4("embeddedPlayerErrorMessageRenderer");var baU=new g.L4("embeddedPlayerOverlayVideoDetailsRenderer"),GdF=new g.L4("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),oRf=new g.L4("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var L3j=new g.L4("embedsInfoPanelRenderer");var x_L=new g.L4("feedbackEndpoint");var m_o=new g.L4("callToActionButtonViewModel");var Sb_=new g.L4("interactionLoggingCommandMetadata");var hZw={ZF7:"WEB_DISPLAY_MODE_UNKNOWN",eJ4:"WEB_DISPLAY_MODE_BROWSER",g$i:"WEB_DISPLAY_MODE_MINIMAL_UI",paU:"WEB_DISPLAY_MODE_STANDALONE",d0i:"WEB_DISPLAY_MODE_FULLSCREEN"};g.z(g_,Fc);g_.prototype.getPlayerType=function(){return R1(this,7)}; g_.prototype.Ki=function(){return dK(this,19)}; g_.prototype.setVideoId=function(v){return T7(this,19,v)};g.z(X4,Fc);g.z(k5,Fc);g.z(c$,Fc); var f68=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516];var Z8_=new g.L4("loggingContext");g.z(N4,Fc);g.z(ay,Fc);ay.prototype.Ki=function(){return z7(this,ec(this,eD,1))}; ay.prototype.setVideoId=function(v){return q$(this,1,eD,ly(v))}; ay.prototype.getPlaylistId=function(){return z7(this,ec(this,eD,2))}; var eD=[1,2];g.z(uNX,Fc);var vm=new g.L4("changeKeyedMarkersVisibilityCommand");var uk8=new g.L4("changeMarkersVisibilityCommand");var xew=new g.L4("loadMarkersCommand");var gYN=new g.L4("suggestedActionDataViewModel");var dnU=new g.L4("timelyActionViewModel");var nFU=new g.L4("timelyActionsOverlayViewModel");var Tis=new g.L4("productListItemRenderer");var XWY=new g.L4("shoppingOverlayRenderer");var juU=new g.L4("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var k68=new g.L4("adFeedbackEndpoint");var cET=new g.L4("menuEndpoint");var X4F=new g.L4("phoneDialerEndpoint");var uEm=new g.L4("sendSmsEndpoint");var Cum=new g.L4("copyTextEndpoint");var N68=new g.L4("shareEndpoint"),a68=new g.L4("shareEntityEndpoint"),AES=new g.L4("shareEntityServiceEndpoint"),FWN=new g.L4("webPlayerShareEntityServiceEndpoint");g.g8=new g.L4("urlEndpoint");g.ig=new g.L4("watchEndpoint");var H8T=new g.L4("watchPlaylistEndpoint");g.M5S=new g.L4("offlineOrchestrationActionCommand");var YwL=new g.L4("compositeVideoOverlayRenderer");var QIF=new g.L4("miniplayerRenderer");var Qot=new g.L4("paidContentOverlayRenderer");var WWT=new g.L4("playerMutedAutoplayOverlayRenderer"),Cl_=new g.L4("playerMutedAutoplayEndScreenRenderer");var NB2=new g.L4("unserializedPlayerResponse"),b8A=new g.L4("unserializedPlayerResponse");var jEG=new g.L4("playlistEditEndpoint");var tl;g.Ze=new g.L4("buttonRenderer");tl=new g.L4("toggleButtonRenderer");var GpX=new g.L4("counterfactualRenderer");var iFm=new g.L4("resolveUrlCommandMetadata");var $7S=new g.L4("modifyChannelNotificationPreferenceEndpoint");var PWr=new g.L4("pingingEndpoint");var vOX=new g.L4("unsubscribeEndpoint");g.Lh=new g.L4("subscribeButtonRenderer");var JA8=new g.L4("subscribeEndpoint");var nzX=new g.L4("buttonViewModel");var K8m=new g.L4("qrCodeRenderer");var JYX={Y2i:"LIVING_ROOM_APP_MODE_UNSPECIFIED",soi:"LIVING_ROOM_APP_MODE_MAIN",vN7:"LIVING_ROOM_APP_MODE_KIDS",LHh:"LIVING_ROOM_APP_MODE_MUSIC",nNB:"LIVING_ROOM_APP_MODE_UNPLUGGED",MR7:"LIVING_ROOM_APP_MODE_GAMING"};var leU=new g.L4("autoplaySwitchButtonRenderer");var LS,ehL,WN8,Rht;LS=new g.L4("decoratedPlayerBarRenderer");ehL=new g.L4("chapteredPlayerBarRenderer");WN8=new g.L4("multiMarkersPlayerBarRenderer");Rht=new g.L4("chapterRenderer");g.BV8=new g.L4("markerRenderer");var GRL=new g.L4("decoratedPlayheadRenderer");var y2X=new g.L4("desktopOverlayConfigRenderer");var Ylm=new g.L4("engagementPanelSectionListRenderer");var p6t=new g.L4("gatedActionsOverlayViewModel");var now=new g.L4("heatMarkerRenderer");var zhw=new g.L4("heatmapRenderer");var UeB=new g.L4("watchToWatchTransitionRenderer");var i3F=new g.L4("playlistPanelRenderer");var oOU=new g.L4("productUpsellSuggestedActionViewModel");var KrA=new g.L4("suggestedActionTimeRangeTrigger"),V1m=new g.L4("suggestedActionsRenderer"),YKY=new g.L4("suggestedActionRenderer");var dwf=new g.L4("timedMarkerDecorationRenderer");var D9m=new g.L4("cipher");var a5w=new g.L4("playerVars");var rAA=new g.L4("playerVars");var B1=g.X2.window,qK8,EO8,Av=(B1==null?void 0:(qK8=B1.yt)==null?void 0:qK8.config_)||(B1==null?void 0:(EO8=B1.ytcfg)==null?void 0:EO8.data_)||{};g.ks("yt.config_",Av);var C4=[];var MdB=/^[\w.]*$/,aWw={q:!0,search_query:!0},Nl2=String($6);var Ei=new function(){var v=window.document;this.T=window;this.X=v}; g.ks("yt.ads_.signals_.getAdSignalsString",function(v){return vy(Py(v))});g.$X();var WyB="XMLHttpRequest"in g.X2?function(){return new XMLHttpRequest}:null;var evG="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.l(evG);var iMj={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"},$3j="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.l(evG)),rS2=!1,b9s=v2m,KGf=Te;g.z(yl,to);Ui.prototype.then=function(v,J,G){return this.T?this.T.then(v,J,G):this.Z===1&&v?(v=v.call(G,this.X))&&typeof v.then==="function"?v:ma(v):this.Z===2&&J?(v=J.call(G,this.X))&&typeof v.then==="function"?v:x6(v):this}; Ui.prototype.getValue=function(){return this.X}; Ui.prototype.$goog_Thenable=!0;var Sk=!1;var Ml=CE||bR;var n2m=/^([0-9\.]+):([0-9\.]+)$/;g.z(P8,to);P8.prototype.name="BiscottiError";g.z(eW,to);eW.prototype.name="BiscottiMissingError";var l$8={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Dg=null;var lGm=Dr(["data-"]),m3m={};var PyL=0,tD=g.KI?"webkit":Dt?"moz":g.tz?"ms":g.y5?"o":"",D7S=g.NL("ytDomDomGetNextId")||function(){return++PyL}; g.ks("ytDomDomGetNextId",D7S);var uzj={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};ds.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; ds.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; ds.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var s9=g.X2.ytEventsEventsListeners||{};g.ks("ytEventsEventsListeners",s9);var klX=g.X2.ytEventsEventsCounter||{count:0};g.ks("ytEventsEventsCounter",klX);var ASj=li(function(){var v=!1;try{var J=Object.defineProperty({},"passive",{get:function(){v=!0}}); window.addEventListener("test",null,J)}catch(G){}return v}),cSs=li(function(){var v=!1; try{var J=Object.defineProperty({},"capture",{get:function(){v=!0}}); window.addEventListener("test",null,J)}catch(G){}return v});var IN;IN=window;g.yR=IN.ytcsi&&IN.ytcsi.now?IN.ytcsi.now:IN.performance&&IN.performance.timing&&IN.performance.now&&IN.performance.timing.navigationStart?function(){return IN.performance.timing.navigationStart+IN.performance.now()}:function(){return(new Date).getTime()};g.Jo(Lq,g.X);Lq.prototype.N=function(v){v.T===void 0&&g2B(v);var J=v.T;v.X===void 0&&g2B(v);this.T=new g.R7(J,v.X)}; Lq.prototype.td=function(){return this.T||new g.R7}; Lq.prototype.oY=function(){if(this.T){var v=(0,g.yR)();if(this.L!=0){var J=this.j,G=this.T,K=J.x-G.x;J=J.y-G.y;K=Math.sqrt(K*K+J*J)/(v-this.L);this.X[this.Z]=Math.abs((K-this.J)/this.J)>.5?1:0;for(G=J=0;G<4;G++)J+=this.X[G]||0;J>=3&&this.K();this.J=K}this.L=v;this.j=this.T;this.Z=(this.Z+1)%4}}; Lq.prototype.X4=function(){g.ze(this.U);g.l$(this.Ti)};g.z(yC,g.X);yC.prototype.G=function(v,J,G,K,V){G=g.jk((0,g.bj)(G,K||this.d_));G={target:v,name:J,callback:G};var Y;V&&ASj()&&(Y={passive:!0});v.addEventListener(J,G.callback,Y);this.U.push(G);return G}; yC.prototype.YL=function(v){for(var J=0;J=c.WV)||T.T.version>=b||T.T.objectStoreNames.contains(f)||O.push(f)}e=O;if(e.length===0){R.sB(5);break}P=Object.keys(G.options.B7); D=E.objectStoreNames();if(G.JG.options.version+1)throw B.close(),G.Z=!1,xRU(G,I);return R.return(B);case 8:throw J(), t instanceof Error&&!g.dx("ytidb_async_stack_killswitch")&&(t.stack=t.stack+"\n"+r.substring(r.indexOf("\n")+1)),dI(t,G.name,"",(h=G.options.version)!=null?h:-1);}})} function J(){G.T===K&&(G.T=void 0)} var G=this;if(!this.Z)throw xRU(this);if(this.T)return this.T;var K,V={blocking:function(Y){Y.close()}, closed:J,NKw:J,upgrade:this.options.upgrade};return this.T=K=v()};var Fs=new a2("YtIdbMeta",{B7:{databases:{WV:1}},upgrade:function(v,J){J(1)&&g.OT(v,"databases",{keyPath:"actualName"})}});var CP,W9=new function(){}(new function(){});new g.w5;g.z(i5,a2);i5.prototype.X=function(v,J,G){G=G===void 0?{}:G;return(this.options.shared?czj:kYB)(v,J,Object.assign({},G))}; i5.prototype.delete=function(v){v=v===void 0?{}:v;return(this.options.shared?FDX:Nzw)(this.name,v)};var RvN={},MjF=g.$E("ytGcfConfig",{B7:(RvN.coldConfigStore={WV:1},RvN.hotConfigStore={WV:1},RvN),shared:!1,upgrade:function(v,J){J(1)&&(g.Zu(g.OT(v,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Zu(g.OT(v,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.z(J$,g.X);J$.prototype.X4=function(){for(var v=g.n(this.X),J=v.next();!J.done;J=v.next()){var G=this.T;J=G.indexOf(J.value);J>=0&&G.splice(J,1)}this.X.length=0;g.X.prototype.X4.call(this)};re.prototype.QY=function(v){this.hotHashData=v;g.ks("yt.gcf.config.hotHashData",this.hotHashData||null)};var lG8=typeof TextEncoder!=="undefined"?new TextEncoder:null,Z4j=lG8?function(v){return lG8.encode(v)}:function(v){v=g.nG(v); for(var J=new Uint8Array(v.length),G=0;G=J?!1:!0}; g.q.fE=function(){var v=this;if(!ZU(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.eJ.ix("QUEUED",this.Q9).then(function(J){J&&!v.Pf(J,v.RD)?v.jU.eD(function(){return g.m(function(G){if(G.T==1)return J.id===void 0?G.sB(2):g.U(G,v.eJ.xX(J.id,v.Q9),2);v.fE();g.zX(G)})}):v.xk.B8()&&v.NE()})};var XG;var tWm={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468, miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490, shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515};var pJA={},$Af=g.$E("ServiceWorkerLogsDatabase",{B7:(pJA.SWHealthLog={WV:1},pJA),shared:!0,upgrade:function(v,J){J(1)&&g.Zu(g.OT(v,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var N2={},Vkm=0;var ak;FG.prototype.requestComplete=function(v,J){J&&(this.X=!0);v=this.removeParams(v);this.T.get(v)||this.T.set(v,J)}; FG.prototype.isEndpointCFR=function(v){v=this.removeParams(v);return(v=this.T.get(v))?!1:v===!1&&this.X?!0:null}; FG.prototype.removeParams=function(v){return v.split("?")[0]}; FG.prototype.removeParams=FG.prototype.removeParams;FG.prototype.isEndpointCFR=FG.prototype.isEndpointCFR;FG.prototype.requestComplete=FG.prototype.requestComplete;FG.getInstance=HO;g.z(M2,g.EF);g.q=M2.prototype;g.q.B8=function(){return this.T.B8()}; g.q.wT=function(v){this.T.T=v}; g.q.tle=function(){var v=window.navigator.onLine;return v===void 0?!0:v}; g.q.l7=function(){this.X=!0}; g.q.listen=function(v,J){return this.T.listen(v,J)}; g.q.oa=function(v){v=Xz(this.T,v);v.then(function(J){g.dx("use_cfr_monitor")&&HO().requestComplete("generate_204",J)}); return v}; M2.prototype.sendNetworkCheckRequest=M2.prototype.oa;M2.prototype.listen=M2.prototype.listen;M2.prototype.enableErrorFlushing=M2.prototype.l7;M2.prototype.getWindowStatus=M2.prototype.tle;M2.prototype.networkStatusHint=M2.prototype.wT;M2.prototype.isNetworkAvailable=M2.prototype.B8;M2.getInstance=qij;g.z(g.Q3,g.EF);g.Q3.prototype.B8=function(){var v=g.NL("yt.networkStatusManager.instance.isNetworkAvailable");return v?v.bind(this.X)():!0}; g.Q3.prototype.wT=function(v){var J=g.NL("yt.networkStatusManager.instance.networkStatusHint").bind(this.X);J&&J(v)}; g.Q3.prototype.oa=function(v){var J=this,G;return g.m(function(K){G=g.NL("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(J.X);return g.dx("skip_network_check_if_cfr")&&HO().isEndpointCFR("generate_204")?K.return(new Promise(function(V){var Y;J.wT(((Y=window.navigator)==null?void 0:Y.onLine)||!0);V(J.B8())})):G?K.return(G(v)):K.return(!0)})};var WO;g.z(Ce,u5);Ce.prototype.writeThenSend=function(v,J){J||(J={});J=j3(v,J);g.W8()||(this.T=!1);u5.prototype.writeThenSend.call(this,v,J)}; Ce.prototype.sendThenWrite=function(v,J,G){J||(J={});J=j3(v,J);g.W8()||(this.T=!1);u5.prototype.sendThenWrite.call(this,v,J,G)}; Ce.prototype.sendAndWrite=function(v,J){J||(J={});J=j3(v,J);g.W8()||(this.T=!1);u5.prototype.sendAndWrite.call(this,v,J)}; Ce.prototype.awaitInitialization=function(){return this.Z.promise};var tkr=g.X2.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.ks("ytNetworklessLoggingInitializationOptions",tkr);g.iN.prototype.isReady=function(){!this.config_&&E58()&&(this.config_=g.Ea());return!!this.config_};var Lr_,J0,ob;Lr_=g.X2.ytPubsubPubsubInstance||new g.L7;J0=g.X2.ytPubsubPubsubSubscribedKeys||{};ob=g.X2.ytPubsubPubsubTopicToKeys||{};g.GI=g.X2.ytPubsubPubsubIsSynchronous||{};g.L7.prototype.subscribe=g.L7.prototype.subscribe;g.L7.prototype.unsubscribeByKey=g.L7.prototype.nJ;g.L7.prototype.publish=g.L7.prototype.publish;g.L7.prototype.clear=g.L7.prototype.clear;g.ks("ytPubsubPubsubInstance",Lr_);g.ks("ytPubsubPubsubTopicToKeys",ob);g.ks("ytPubsubPubsubIsSynchronous",g.GI); g.ks("ytPubsubPubsubSubscribedKeys",J0);var dA2={};g.z(zI,g.X);zI.prototype.append=function(v){if(!this.X)throw Error("This does not support the append operation");v=v.ZZ();this.ZZ().appendChild(v)}; g.z(nr,zI);nr.prototype.ZZ=function(){return this.T};g.z(dg,g.X);dg.prototype.onTouchStart=function(v){this.K=!0;this.X=v.touches.length;this.T.isActive()&&(this.T.stop(),this.J=!0);v=v.touches;this.j=l8f(this,v)||v.length!=1;var J=v.item(0);this.j||!J?this.N=this.U=Infinity:(this.U=J.clientX,this.N=J.clientY);for(J=this.Z.length=0;J=0)}if(J||v&&Math.pow(v.clientX-this.U,2)+Math.pow(v.clientY-this.N,2)>25)this.L=!0}; dg.prototype.onTouchEnd=function(v){var J=v.changedTouches;J&&this.K&&this.X==1&&!this.L&&!this.J&&!this.j&&l8f(this,J)&&(this.oY=v,this.T.start());this.X=v.touches.length;this.X===0&&(this.L=this.K=!1,this.Z.length=0);this.J=!1};var s0=Date.now().toString();var Lr={};var mZ=Symbol("injectionDeps");wg.prototype.toString=function(){return"InjectionToken("+this.name+")"}; Laj.prototype.resolve=function(v){return v instanceof O0?S3(this,v.key,[],!0):S3(this,v,[])};var fr;var uN=window;var co=g.dx("web_enable_lifecycle_monitoring")&&gg()!==0,Si2=g.dx("web_enable_lifecycle_monitoring");UA2.prototype.cancel=function(){for(var v=g.n(this.T),J=v.next();!J.done;J=v.next())J=J.value,J.jobId===void 0||J.q9||this.scheduler.GH(J.jobId),J.q9=!0;this.X.resolve()};g.q=No.prototype;g.q.install=function(v){this.plugins.push(v);return this}; g.q.uninstall=function(){var v=this;g.Om.apply(0,arguments).forEach(function(J){J=v.plugins.indexOf(J);J>-1&&v.plugins.splice(J,1)})}; g.q.transition=function(v,J){var G=this;co&&wy2(this.state);var K=this.transitions.find(function(Y){return Array.isArray(Y.from)?Y.from.find(function(r){return r===G.state&&Y.CO===v}):Y.from===G.state&&Y.CO===v}); if(K){this.X&&(xAw(this.X),this.X=void 0);f8m(this,v,J);this.state=v;co&&Xv(this.state);K=K.action.bind(this);var V=this.plugins.filter(function(Y){return Y[v]}).map(function(Y){return Y[v]}); K(mAU(this,V),J)}else throw Error("no transition specified from "+this.state+" to "+v);}; g.q.Vii=function(v){var J=g.Om.apply(1,arguments);g.$q();for(var G=g.n(v),K=G.next(),V={};!K.done;V={R7:void 0},K=G.next())V.R7=K.value,GYr(function(Y){return function(){A0(Y.R7.name);Ho(function(){return Y.R7.callback.apply(Y.R7,g.l(J))}); Fv(Y.R7.name)}}(V))}; g.q.a0B=function(v){var J=g.Om.apply(1,arguments),G,K,V,Y;return g.m(function(r){r.T==1&&(g.$q(),G=g.n(v),K=G.next(),V={});if(r.T!=3){if(K.done)return r.sB(0);V.DA=K.value;V.Kg=void 0;Y=function(E){return function(){A0(E.DA.name);var e=Ho(function(){return E.DA.callback.apply(E.DA,g.l(J))}); qb(e)?E.Kg=g.dx("web_lifecycle_error_handling_killswitch")?e.then(function(){Fv(E.DA.name)}):e.then(function(){Fv(E.DA.name)},function(P){OEw(P); Fv(E.DA.name)}):Fv(E.DA.name)}}(V); GYr(Y);return V.Kg?g.U(r,V.Kg,3):r.sB(3)}V={DA:void 0,Kg:void 0};K=G.next();return r.sB(2)})}; g.q.Y9=function(v){var J=g.Om.apply(1,arguments),G=this,K=v.map(function(V){return{yC:function(){A0(V.name);Ho(function(){return V.callback.apply(V,g.l(J))}); Fv(V.name)}, priority:ab(G,V)}}); K.length&&(this.X=new UA2(K))}; g.qL.Object.defineProperties(No.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Qy;g.z(Mo,No);Mo.prototype.J=function(v,J){var G=this;this.T=g.jQ(0,function(){G.currentState==="application_navigating"&&G.transition("none")},5E3); v(J==null?void 0:J.event)}; Mo.prototype.j=function(v,J){this.T&&(g.cq.GH(this.T),this.T=null);v(J==null?void 0:J.event)};var nW=[];g.ks("yt.logging.transport.getScrapedGelPayloads",function(){return nW});Wo.prototype.storePayload=function(v,J){v=Cr(v);this.store[v]?this.store[v].push(J):(this.X={},this.store[v]=[J]);this.T++;g.dx("more_accurate_gel_parser")&&(J=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(J));return v}; Wo.prototype.smartExtractMatchingEntries=function(v){if(!v.keys.length)return[];for(var J=jD(this,v.keys.splice(0,1)[0]),G=[],K=0;K=0){K=!1;break a}}K=!0}K&&(J=km(J))&&this.Nk(J)}}; g.q.Dc=function(v){return v}; g.q.onTouchStart=function(v){this.dh.onTouchStart(v)}; g.q.onTouchMove=function(v){this.dh.onTouchMove(v)}; g.q.onTouchEnd=function(v){if(this.dh)this.dh.onTouchEnd(v)}; g.q.Nk=function(v){this.layoutId?this.rh.executeCommand(v,this.layoutId):g.fW(new g.Mk("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; g.q.createServerVe=function(v,J){this.api.createServerVe(v,this);this.api.setTrackingParams(v,J)}; g.q.logVisibility=function(v,J){this.api.hasVe(v)&&this.api.logVisibility(v,J,this.interactionLoggingClientData)}; g.q.X4=function(){this.clear(null);this.YL(this.Nr);for(var v=g.n(this.Ze),J=v.next();!J.done;J=v.next())this.YL(J.value);g.t9.prototype.X4.call(this)};g.z(Sn,Br); Sn.prototype.init=function(v,J,G){Br.prototype.init.call(this,v,J,G);this.T=J;if(J.text==null&&J.icon==null)g.Zl(Error("ButtonRenderer did not have text or an icon set."));else{switch(J.style||null){case "STYLE_UNKNOWN":v="ytp-ad-button-link";break;default:v=null}v!=null&&g.Vj(this.element,v);J.text!=null&&(v=g.h9(J.text),g.s8(v)||(this.element.setAttribute("aria-label",v),this.Z=new g.t9({Y:"span",D:"ytp-ad-button-text",At:v}),g.k(this,this.Z),this.Z.vH(this.element)));J.accessibilityData&&J.accessibilityData.accessibilityData&& J.accessibilityData.accessibilityData.label&&!g.s8(J.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",J.accessibilityData.accessibilityData.label);J.icon!=null&&(J=mq(J.icon,this.L),J!=null&&(this.X=new g.t9({Y:"span",D:"ytp-ad-button-icon",W:[J]}),g.k(this,this.X)),this.j?Dy(this.element,this.X.element,0):this.X.vH(this.element))}}; Sn.prototype.clear=function(){this.hide()}; Sn.prototype.onClick=function(v){Br.prototype.onClick.call(this,v);v=g.n(Lgm(this));for(var J=v.next();!J.done;J=v.next())J=J.value,this.layoutId?this.rh.executeCommand(J,this.layoutId):g.fW(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.z(fR,g.X);fR.prototype.X4=function(){this.X&&g.l$(this.X);this.T.clear();ZH=null;g.X.prototype.X4.call(this)}; fR.prototype.register=function(v,J){J&&this.T.set(v,J)}; var ZH=null;g.z(XV,Br); XV.prototype.init=function(v,J,G){Br.prototype.init.call(this,v,J,G);v=J.hoverText||null;J=J.button&&g.N(J.button,g.Ze)||null;J==null?g.fW(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Sn(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,void 0,void 0,void 0,void 0,this.Z),g.k(this,this.button),this.button.init(YP("button"),J,this.macros),v&&this.button.element.setAttribute("aria-label",g.h9(v)),this.button.vH(this.element),this.N&&!g.K7(this.button.element, "ytp-ad-clickable")&&g.Vj(this.button.element,"ytp-ad-clickable"),this.Z&&g.Vj(this.button.element,"ytp-ad-hover-text-button--clean-player"),v&&(this.X=new g.t9({Y:"div",D:"ytp-ad-hover-text-container"}),this.j&&(J=new g.t9({Y:"div",D:"ytp-ad-hover-text-callout"}),J.vH(this.X.element),g.k(this,J)),g.k(this,this.X),this.X.vH(this.element),J=u_(v),Dy(this.X.element,J,0)),this.show())}; XV.prototype.hide=function(){this.button&&this.button.hide();this.X&&this.X.hide();Br.prototype.hide.call(this)}; XV.prototype.show=function(){this.button&&this.button.show();Br.prototype.show.call(this)};g.z(cr,Br); cr.prototype.init=function(v,J,G){Br.prototype.init.call(this,v,J,G);G=(v=J.thumbnail)&&kP(v)||"";g.s8(G)?Math.random()<.01&&g.Zl(Error("Found AdImage without valid image URL")):(this.T?g.ep(this.element,"backgroundImage","url("+G+")"):on(this.element,{src:G}),on(this.element,{alt:v&&v.accessibility&&v.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())}; cr.prototype.clear=function(){this.hide()};g.z(NU,Br);g.q=NU.prototype;g.q.hide=function(){Br.prototype.hide.call(this);this.Z&&this.Z.focus()}; g.q.show=function(){this.Z=document.activeElement;Br.prototype.show.call(this);this.L.focus()}; g.q.init=function(v,J,G){Br.prototype.init.call(this,v,J,G);this.X=J;J.dialogMessages||J.title!=null?J.confirmLabel==null?g.fW(Error("ConfirmDialogRenderer.confirmLabel was not set.")):J.cancelLabel==null?g.fW(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Ulm(this,J):g.fW(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.q.clear=function(){g.O9(this.T);this.hide()}; g.q.dL=function(){this.hide()}; g.q.R0=function(){var v=this.X.cancelEndpoint;v&&(this.layoutId?this.rh.executeCommand(v,this.layoutId):g.fW(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.q.gL=function(){var v=this.X.confirmNavigationEndpoint||this.X.confirmEndpoint;v&&(this.layoutId?this.rh.executeCommand(v,this.layoutId):g.fW(Error("Missing layoutId for confirm dialog.")));this.hide()};g.z(aK,Br);g.q=aK.prototype; g.q.init=function(v,J,G){Br.prototype.init.call(this,v,J,G);this.Z=J;if(J.defaultText==null&&J.defaultIcon==null)g.fW(Error("ToggleButtonRenderer must have either text or icon set."));else if(J.defaultIcon==null&&J.toggledIcon!=null)g.fW(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":v="ytp-ad-toggle-button-default-style";break;default:v=null}v!=null&&g.Vj(this.L,v)}v={};J.defaultText? (G=g.h9(J.defaultText),g.s8(G)||(v.buttonText=G,this.api.B().experiments.OB("a11y_h5_associate_survey_question")||this.T.setAttribute("aria-label",G),this.api.B().experiments.OB("fix_h5_toggle_button_a11y")&&this.X.setAttribute("aria-label",G))):g.TK(this.Mr,!1);J.defaultTooltip&&(v.tooltipText=J.defaultTooltip,this.T.hasAttribute("aria-label")||this.X.setAttribute("aria-label",J.defaultTooltip));J.defaultIcon?(G=mq(J.defaultIcon),this.updateValue("untoggledIconTemplateSpec",G),J.toggledIcon?(this.Ti= !0,G=mq(J.toggledIcon),this.updateValue("toggledIconTemplateSpec",G)):(g.TK(this.N,!0),g.TK(this.j,!1)),g.TK(this.T,!1)):g.TK(this.X,!1);g.Xb(v)||this.update(v);J.isToggled&&(g.Vj(this.L,"ytp-ad-toggle-button-toggled"),this.toggleButton(J.isToggled));A9(this);this.G(this.element,"change",this.mR);this.show()}}; g.q.onClick=function(v){this.Ze.length>0&&(this.toggleButton(!this.isToggled()),this.mR());Br.prototype.onClick.call(this,v)}; g.q.mR=function(){g.E3(this.L,"ytp-ad-toggle-button-toggled",this.isToggled());for(var v=g.n(xlt(this,this.isToggled())),J=v.next();!J.done;J=v.next())J=J.value,this.layoutId?this.rh.executeCommand(J,this.layoutId):g.fW(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);A9(this)}; g.q.clear=function(){this.hide()}; g.q.toggleButton=function(v){g.E3(this.L,"ytp-ad-toggle-button-toggled",v);this.T.checked=v;A9(this)}; g.q.isToggled=function(){return this.T.checked};g.z(FV,yC);FV.prototype.j=function(v){if(Array.isArray(v)){v=g.n(v);for(var J=v.next();!J.done;J=v.next())J=J.value,J instanceof mlL&&this.L(J)}};g.z(Hr,Br);g.q=Hr.prototype;g.q.init=function(v,J,G){Br.prototype.init.call(this,v,J,G);J.reasons?J.confirmLabel==null?g.fW(Error("AdFeedbackRenderer.confirmLabel was not set.")):(J.cancelLabel==null&&g.Zl(Error("AdFeedbackRenderer.cancelLabel was not set.")),J.title==null&&g.Zl(Error("AdFeedbackRenderer.title was not set.")),usU(this,J)):g.fW(Error("AdFeedbackRenderer.reasons were not set."))}; g.q.clear=function(){TZ(this.j);TZ(this.N);this.L.length=0;this.hide()}; g.q.hide=function(){this.T&&this.T.hide();this.X&&this.X.hide();Br.prototype.hide.call(this);this.Z&&this.Z.focus()}; g.q.show=function(){this.T&&this.T.show();this.X&&this.X.show();this.Z=document.activeElement;Br.prototype.show.call(this);this.j.focus()}; g.q.yz=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.q.x1l=function(){this.hide()}; MU.prototype.ZZ=function(){return this.T.element}; MU.prototype.getCommand=function(){return this.X}; MU.prototype.isChecked=function(){return this.Z.checked};g.z(QF,NU);QF.prototype.dL=function(v){NU.prototype.dL.call(this,v);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; QF.prototype.R0=function(v){NU.prototype.R0.call(this,v);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; QF.prototype.gL=function(v){NU.prototype.gL.call(this,v);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.z(Wr,Br);g.q=Wr.prototype; g.q.init=function(v,J,G){Br.prototype.init.call(this,v,J,G);this.j=J;if(J.dialogMessage==null&&J.title==null)g.fW(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{J.confirmLabel==null&&g.Zl(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(v=J.closeOverlayRenderer&&g.N(J.closeOverlayRenderer,g.Ze)||null)this.T=new Sn(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.k(this,this.T),this.T.init(YP("button"),v,this.macros),this.T.vH(this.element);J.title&&(v=g.h9(J.title),this.updateValue("title",v));if(J.adReasons)for(v=J.adReasons,G=0;G=this.YB?(this.Ti.hide(),this.RY=!0,this.publish("i")):this.Z&&this.Z.isTemplated()&&(v=Math.max(0,Math.ceil((this.YB-v)/1E3)),v!=this.BH&&(jr(this.Z,{TIME_REMAINING:String(v)}),this.BH=v)))}};g.z(Kd,id);g.q=Kd.prototype; g.q.init=function(v,J,G){id.prototype.init.call(this,v,J,G);if(J.image&&J.image.thumbnail)if(J.headline)if(J.description)if((v=J.actionButton&&g.N(J.actionButton,g.Ze))&&v.navigationEndpoint){var K=this.api.getVideoData(2);if(K!=null)if(J.image&&J.image.thumbnail){var V=J.image.thumbnail.thumbnails;V!=null&&V.length>0&&g.s8(g.Yy(V[0].url))&&(V[0].url=K.profilePicture)}else g.Zl(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.Z.init(YP("ad-image"),J.image,G);this.j.init(YP("ad-text"), J.headline,G);this.L.init(YP("ad-text"),J.description,G);this.X.init(YP("button"),v,G);G=Hq(this.X.element);Fz(this.X.element,G+" This link opens in new tab");this.Ti=v.navigationEndpoint;this.api.XU()||this.show();this.api.B().C("enable_larger_flyout_cta_on_desktop")&&(this.p7("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.p7("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.p7("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.p7("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.p7("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.p7("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.X.element.classList.add("ytp-flyout-cta-action-button-large"),this.X.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.p7("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.RP.bind(this));this.Mr=J.startMs||0;$p(this)}else g.fW(Error("FlyoutCtaRenderer has no valid action button."));else g.fW(Error("FlyoutCtaRenderer has no description AdText."));else g.fW(Error("FlyoutCtaRenderer has no headline AdText."));else g.Zl(Error("FlyoutCtaRenderer has no image."))}; g.q.onClick=function(v){id.prototype.onClick.call(this,v);this.api.pauseVideo();!g.BM(this.X.element,v.target)&&this.Ti&&(this.layoutId?this.rh.executeCommand(this.Ti,this.layoutId):g.fW(Error("Missing layoutId for flyout cta.")))}; g.q.nD=function(){if(this.T){var v=this.T.getProgressState();(v&&v.current||this.YB)&&1E3*v.current>=this.Mr&&(vs(this),g.rz(this.element,"ytp-flyout-cta-inactive"),this.X.element.removeAttribute("tabIndex"))}}; g.q.sj=function(){this.clear()}; g.q.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.RP.bind(this))}; g.q.show=function(){this.X&&this.X.show();id.prototype.show.call(this)}; g.q.hide=function(){this.X&&this.X.hide();id.prototype.hide.call(this)}; g.q.RP=function(v){v=="hidden"?this.show():this.hide()};g.z(VQ,Br);g.q=VQ.prototype; g.q.init=function(v,J,G){Br.prototype.init.call(this,v,J,G);this.T=J;if(this.T.rectangle)for(v=this.T.likeButton&&g.N(this.T.likeButton,tl),J=this.T.dislikeButton&&g.N(this.T.dislikeButton,tl),this.Z.init(YP("toggle-button"),v,G),this.X.init(YP("toggle-button"),J,G),this.G(this.element,"change",this.Uw),this.L.show(100),this.show(),G=g.n(this.T&&this.T.impressionCommands||[]),v=G.next();!v.done;v=G.next())v=v.value,this.layoutId?this.rh.executeCommand(v,this.layoutId):g.fW(Error("Missing layoutId for instream user sentiment."))}; g.q.clear=function(){this.hide()}; g.q.hide=function(){this.Z.hide();this.X.hide();Br.prototype.hide.call(this)}; g.q.show=function(){this.Z.show();this.X.show();Br.prototype.show.call(this)}; g.q.Uw=function(){ltX(this.element,"ytp-ad-instream-user-sentiment-selected");this.T.postMessageAction&&this.api.lw("onYtShowToast",this.T.postMessageAction);this.L.hide()}; g.q.onClick=function(v){this.Ze.length>0&&this.Uw();Br.prototype.onClick.call(this,v)};g.z(Yp,g.X);g.q=Yp.prototype;g.q.X4=function(){this.reset();g.X.prototype.X4.call(this)}; g.q.reset=function(){g.O9(this.L);this.j=!1;this.T&&this.T.stop();this.J.stop();this.Z&&(this.Z=!1,this.K.play())}; g.q.start=function(){this.reset();this.L.G(this.X,"mouseover",this.IP,this);this.L.G(this.X,"mouseout",this.zU,this);this.oY&&(this.L.G(this.X,"focusin",this.IP,this),this.L.G(this.X,"focusout",this.zU,this));this.T?this.T.start():(this.j=this.Z=!0,g.ep(this.X,{opacity:this.N}))}; g.q.IP=function(){this.Z&&(this.Z=!1,this.K.play());this.J.stop();this.T&&this.T.stop()}; g.q.zU=function(){this.j?this.J.start():this.T&&this.T.start()}; g.q.EC=function(){this.Z||(this.Z=!0,this.U.play(),this.j=!0)};var Wgs=[new ry("b.f_",!1,0),new ry("j.s_",!1,2),new ry("r.s_",!1,4),new ry("e.h_",!1,6),new ry("i.s_",!0,8),new ry("s.t_",!1,10),new ry("p.h_",!1,12),new ry("s.i_",!1,14),new ry("f.i_",!1,16),new ry("a.b_",!1,18),new ry("a.o_",!1),new ry("g.o_",!1,22),new ry("p.i_",!1,24),new ry("p.m_",!1),new ry("n.k_",!0,20),new ry("i.f_",!1),new ry("a.s_",!0),new ry("m.c_",!1),new ry("n.h_",!1,26),new ry("o.p_",!1)].reduce(function(v,J){v[J.X]=J;return v},{});g.z(IA,id);g.q=IA.prototype; g.q.init=function(v,J,G){id.prototype.init.call(this,v,J,G);this.Ti=J;(this.Mr=bPU(this))&&g.Zl(Error("hasAdControlInClickCommands_ is true."));if(!J||g.Xb(J))g.fW(Error("SkipButtonRenderer was not specified or empty."));else if(!J.message||g.Xb(J.message))g.fW(Error("SkipButtonRenderer.message was not specified or empty."));else{v=this.j?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};J=mq(v);J==null?g.fW(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+v.iconType+".")): (this.L=new g.t9({Y:"button",n7:[this.j?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],W:[{Y:"span",D:this.j?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",W:[J]}]}),g.k(this,this.L),this.L.vH(this.Z.element),this.X=new b_(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,"ytp-ad-skip-button-text"),this.j&&this.X.element.classList.add("ytp-ad-skip-button-text-centered"),this.X.init(YP("ad-text"),this.Ti.message,G),g.k(this,this.X),Dy(this.L.element,this.X.element, 0));var K=K===void 0?null:K;G=this.api.B();!(this.Ze.length>0)&&G.X&&(LY?0:"ontouchstart"in document.documentElement&&(nbj()||nO()))&&(this.YL(this.Nr),K&&this.YL(K),this.Ze=[this.G(this.element,"touchstart",this.onTouchStart,this),this.G(this.element,"touchmove",this.onTouchMove,this),this.G(this.element,"touchend",this.onTouchEnd,this)])}}; g.q.clear=function(){this.YB.reset();this.hide()}; g.q.hide=function(){this.Z.hide();this.X&&this.X.hide();vs(this);id.prototype.hide.call(this)}; g.q.onClick=function(v){if(this.L!=null){if(v){var J=v||window.event;J.returnValue=!1;J.preventDefault&&J.preventDefault()}var G;if(MQm(v,{contentCpn:((G=this.api.getVideoData(1))==null?void 0:G.clientPlaybackNonce)||""})===0)this.api.lw("onAbnormalityDetected");else if(id.prototype.onClick.call(this,v),this.publish("j"),this.api.lw("onAdSkip"),this.RY||!this.Mr)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.q.Dc=function(v){if(!this.RY)return this.Mr&&Ps("SkipButton click commands not pruned while ALC exist"),v;var J,G=(J=g.N(v,g.hk))==null?void 0:J.commands;if(!G)return v;v=[];for(J=0;J=this.j&&jk2(this,!0)};g.z(nd,Sn);nd.prototype.init=function(v,J,G){Sn.prototype.init.call(this,v,J,G);v=!1;J.text!=null&&(v=g.h9(J.text),v=!g.s8(v));v?J.navigationEndpoint==null?g.Zl(Error("No visit advertiser clickthrough provided in renderer,")):J.style!=="STYLE_UNKNOWN"?g.Zl(Error("Button style was not a link-style type in renderer,")):this.show():g.Zl(Error("No visit advertiser text was present in the renderer."))};g.z(dy,Br); dy.prototype.init=function(v,J,G){Br.prototype.init.call(this,v,J,G);v=J.text;g.s8(IK(v))?g.Zl(Error("SimpleAdBadgeRenderer has invalid or empty text")):(v&&v.text&&(J=v.text,this.Z&&!this.X&&(J=this.api.B(),J=v.text+" "+(J&&J.X?"\u2022":"\u00b7")),J={text:J,isTemplated:v.isTemplated},v.style&&(J.style=v.style),v.targetId&&(J.targetId=v.targetId),v=new b_(this.api,this.layoutId,this.interactionLoggingClientData,this.rh),v.init(YP("simple-ad-badge"),J,G),v.vH(this.element),g.k(this,v)),this.show())}; dy.prototype.clear=function(){this.hide()};g.z(sU,r8);g.z(RA,g.qU);g.q=RA.prototype;g.q.KT=function(){return this.durationMs}; g.q.stop=function(){this.T&&this.e3.YL(this.T)}; g.q.kL=function(v){this.X={seekableStart:0,seekableEnd:this.durationMs/1E3,current:v.current};this.publish("h")}; g.q.getProgressState=function(){return this.X}; g.q.uR=function(v){g.Bs(v,2)&&this.publish("g")};g.z(ld,g.qU);g.q=ld.prototype;g.q.KT=function(){return this.durationMs}; g.q.start=function(){this.T||(this.T=!0,this.W1.start())}; g.q.stop=function(){this.T&&(this.T=!1,this.W1.stop())}; g.q.kL=function(){this.CZ+=100;var v=!1;this.CZ>this.durationMs&&(this.CZ=this.durationMs,this.W1.stop(),v=!0);this.X={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.CZ/1E3};this.publish("h");v&&this.publish("g")}; g.q.getProgressState=function(){return this.X};g.z(Ld,id);g.q=Ld.prototype;g.q.init=function(v,J,G){id.prototype.init.call(this,v,J,G);var K;if(J==null?0:(K=J.templatedCountdown)==null?0:K.templatedAdText){v=J.templatedCountdown.templatedAdText;if(!v.isTemplated){g.Zl(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.X=new b_(this.api,this.layoutId,this.interactionLoggingClientData,this.rh);this.X.init(YP("ad-text"),v,{});this.X.vH(this.element);g.k(this,this.X)}this.show()}; g.q.clear=function(){this.hide()}; g.q.hide=function(){vs(this);id.prototype.hide.call(this)}; g.q.sj=function(){this.hide()}; g.q.nD=function(){if(this.T!=null){var v=this.T.getProgressState();if(v!=null&&v.current!=null&&this.X){var J=this.T instanceof RA?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:v.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.T instanceof ld?v.seekableEnd:this.api.getDuration(2,!1);v=v.current;var G,K,V=((G=this.api.getVideoData())==null?0:(K=G.i9)==null?0:K.call(G))?Math.max(J-v,0):J-v;jr(this.X,{FORMATTED_AD_DURATION_REMAINING:String(g.T$(V)), TIME_REMAINING:String(Math.ceil(V))})}}}; g.q.show=function(){$p(this);id.prototype.show.call(this)};g.z(yQ,b_);yQ.prototype.onClick=function(v){b_.prototype.onClick.call(this,v);this.api.onAdUxClicked(this.componentType)};g.z(OU,Br);OU.prototype.init=function(v,J){Br.prototype.init.call(this,v,J,{});if(v=J.content){g.In(this.element,v);var G,K;J=((G=J.interaction)==null?void 0:(K=G.accessibility)==null?void 0:K.label)||v;this.element.setAttribute("aria-label",J)}else g.fW(Error("AdSimpleAttributedString does not have text content"))}; OU.prototype.clear=function(){this.hide()}; OU.prototype.onClick=function(v){Br.prototype.onClick.call(this,v)};g.z(UU,Br); UU.prototype.init=function(v,J){Br.prototype.init.call(this,v,J,{});(v=J.label)&&v.content&&!g.s8(v.content)?(this.adBadgeText.init(YP("ad-simple-attributed-string"),new wy(v)),(J=J.adPodIndex)&&J.content&&!g.s8(J.content)&&(this.T=new OU(this.api,this.layoutId,this.interactionLoggingClientData,this.rh),this.T.vH(this.element),g.k(this,this.T),this.T.element.classList.add("ytp-ad-badge__pod-index"),this.T.init(YP("ad-simple-attributed-string"),new wy(J))),this.element.classList.add(this.X?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.fW(Error("No label is returned in AdBadgeViewModel."))}; UU.prototype.show=function(){this.adBadgeText.show();var v;(v=this.T)==null||v.show();Br.prototype.show.call(this)}; UU.prototype.hide=function(){this.adBadgeText.hide();var v;(v=this.T)==null||v.hide();Br.prototype.hide.call(this)};g.z(xp,Br);xp.prototype.init=function(v,J){Br.prototype.init.call(this,v,J,{});(v=J.adPodIndex)&&v.content&&!g.s8(v.content)&&(this.T=new OU(this.api,this.layoutId,this.interactionLoggingClientData,this.rh),this.T.vH(this.element),g.k(this,this.T),this.T.init(YP("ad-simple-attributed-string"),new wy(v)),J.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()}; xp.prototype.show=function(){var v;(v=this.T)==null||v.show();Br.prototype.show.call(this)}; xp.prototype.hide=function(){var v;(v=this.T)==null||v.hide();Br.prototype.hide.call(this)};g.z(mk,Br); mk.prototype.init=function(v,J){Br.prototype.init.call(this,v,J,{});if(J!=null&&J.text){var G;if(((G=J.text)==null?0:G.content)&&!g.s8(J.text.content)){this.T=new g.t9({Y:"div",D:"ytp-ad-disclosure-banner__text",At:J.text.content});g.k(this,this.T);this.T.vH(this.element);var K,V;v=((K=J.interaction)==null?void 0:(V=K.accessibility)==null?void 0:V.label)||J.text.content;this.element.setAttribute("aria-label",v);var Y;if((Y=J.interaction)==null?0:Y.onTap)this.X=new g.t9({Y:"div",D:"ytp-ad-disclosure-banner__chevron",W:[g.sN()]}), g.k(this,this.X),this.X.vH(this.element);this.show()}}else g.fW(Error("No banner text found in AdDisclosureBanner."))}; mk.prototype.clear=function(){this.hide()};Sr.prototype.getLength=function(){return this.T-this.X};g.z(Zz,g.t9);Zz.prototype.kL=function(){var v=this.X.getProgressState(),J=v.seekableEnd;this.api.getPresentingPlayerType()===2&&(J=this.Z?this.Z/1E3:v.seekableEnd);v=fd(new Sr(v.seekableStart,J),v.current,0);this.progressBar.style.width=v*100+"%"}; Zz.prototype.onStateChange=function(){g.uh(this.api.B())||(this.api.getPresentingPlayerType()===2?this.T===-1&&(this.show(),this.T=this.X.subscribe("h",this.kL,this),this.kL()):this.T!==-1&&(this.hide(),this.X.nJ(this.T),this.T=-1))};g.z(ud,Br); ud.prototype.init=function(v,J,G,K){Br.prototype.init.call(this,v,J,G);if(J.skipOrPreviewRenderer){if(v=g.N(J.skipOrPreviewRenderer,Ki))G=new z$(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,this.X,this.N),G.vH(this.jl),G.init(YP("skip-button"),v,this.macros),g.k(this,G);if(v=g.N(J.skipOrPreviewRenderer,Ki))var V=v.skipOffsetMilliseconds}J.brandInteractionRenderer&&(v=J.brandInteractionRenderer.brandInteractionRenderer,G=new VQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rh), G.vH(this.Mr),G.init(YP("instream-user-sentiment"),v,this.macros),g.k(this,G));if(v=g.N(J,rEF))if(v=g.N(v,rEF))G=new Kd(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,this.X,!!J.showWithoutLinkedMediaLayout),g.k(this,G),G.vH(this.j),G.init(YP("flyout-cta"),v,this.macros);K=K&&K.videoAdDurationSeconds;J.adBadgeRenderer&&(G=J.adBadgeRenderer,v=g.N(G,uQ),v!=null?(G=new UU(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,!1),g.k(this,G),G.vH(this.T),G.init(YP("ad-badge"), v,this.macros),this.Z=G.element):(v=G.simpleAdBadgeRenderer,v==null&&(v={text:{text:"Ad",isTemplated:!1}}),G=new dy(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,!0),g.k(this,G),G.vH(this.T),G.init(YP("simple-ad-badge"),v,this.macros)));J.adPodIndex&&(v=g.N(J.adPodIndex,zEA),v!=null&&(G=new xp(this.api,this.layoutId,this.interactionLoggingClientData,this.rh),g.k(this,G),G.vH(this.T),G.init(YP("ad-pod-index"),v)));J.adDurationRemaining&&!J.showWithoutLinkedMediaLayout&&(v=J.adDurationRemaining.adDurationRemainingRenderer, v==null&&(v={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),K=new Ld(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,this.X,K,!1),g.k(this,K),K.vH(this.T),K.init(YP("ad-duration-remaining"),v,this.macros));J.adInfoRenderer&&(K=g.N(J.adInfoRenderer,Ss))&&(v=new CR(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,this.element,void 0,!1),g.k(this,v),this.Z!==null?this.T.insertBefore(v.element,this.Z.nextSibling):v.vH(this.T), v.init(YP("ad-info-hover-text-button"),K,this.macros));J.visitAdvertiserRenderer&&(v=g.N(J.visitAdvertiserRenderer,g.Ze))&&(G=vE2(this)&&this.L?this.L:this.T)&&(K=new nd(this.api,this.layoutId,this.interactionLoggingClientData,this.rh),g.k(this,K),K.vH(G),K.init(YP("visit-advertiser"),v,this.macros),aJ(K.element),v=Hq(K.element),Fz(K.element,v+" This link opens in new tab"));!(K=this.api.B())||g.fY(K)||K.controlsType!="3"&&!K.disableOrganicUi||(V=new Zz(this.api,this.X,V,!1),V.vH(this.YB),g.k(this, V));J.adDisclosureBannerRenderer&&(J=g.N(J.adDisclosureBannerRenderer,hEF))&&(V=new mk(this.api,this.layoutId,this.interactionLoggingClientData,this.rh),V.vH(this.Ti),V.init(YP("ad-disclosure-banner"),J),g.k(this,V));this.api.B().C("enable_updated_html5_player_focus_style")&&g.Vj(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; ud.prototype.clear=function(){this.hide()};cs.prototype.set=function(v,J,G){G=G!==void 0?Date.now()+G:void 0;this.T.set(v,J,G)}; cs.prototype.get=function(v){return this.T.get(v)}; cs.prototype.remove=function(v){this.T.remove(v)};var FT=null,Hs=null,M1=null,Ya8=null;g.ks("yt.www.ads.eventcache.getLastCompanionData",function(){return FT}); g.ks("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.ks("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Hs}); g.ks("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return M1}); g.ks("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Ya8});var qa8=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);QQ.prototype.handleResponse=function(v,J){if(!J)throw Error("request needs to be passed into ConsistencyService");var G,K;J=((G=J.Pa.context)==null?void 0:(K=G.request)==null?void 0:K.consistencyTokenJars)||[];var V;(v=(V=v.responseContext)==null?void 0:V.consistencyTokenJar)&&this.replace(J,v)}; QQ.prototype.replace=function(v,J){v=g.n(v);for(var G=v.next();!G.done;G=v.next())delete this.T[G.value.encryptedTokenJarContents];eT2(this,J)};var SKL=window.location.hostname.split(".").slice(-2).join("."),lb;Cd.getInstance=function(){lb=g.NL("yt.clientLocationService.instance");lb||(lb=new Cd,g.ks("yt.clientLocationService.instance",lb));return lb}; g.q=Cd.prototype; g.q.setLocationOnInnerTubeContext=function(v){v.client||(v.client={});if(this.T)v.client.locationInfo||(v.client.locationInfo={}),v.client.locationInfo.latitudeE7=Math.floor(this.T.coords.latitude*1E7),v.client.locationInfo.longitudeE7=Math.floor(this.T.coords.longitude*1E7),v.client.locationInfo.horizontalAccuracyMeters=Math.round(this.T.coords.accuracy),v.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.Z||this.locationPlayabilityToken)v.client.locationPlayabilityToken=this.Z|| this.locationPlayabilityToken}; g.q.handleResponse=function(v){var J;v=(J=v.responseContext)==null?void 0:J.locationPlayabilityToken;v!==void 0&&(this.locationPlayabilityToken=v,this.T=void 0,g.H$("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Ws(this))&&this.localStorage.set("yt-location-playability-token",v,15552E3):g.Z8("YT_CL",JSON.stringify({loctok:v}),15552E3,SKL,!0))}; g.q.clearLocationPlayabilityToken=function(v){v==="TVHTML5"?(this.localStorage=Ws(this))&&this.localStorage.remove("yt-location-playability-token"):g.gx("YT_CL");this.Z=void 0;this.X!==-1&&(clearTimeout(this.X),this.X=-1)}; g.q.getCurrentPositionFromGeolocation=function(){var v=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var J=!1,G=1E4;g.H$("INNERTUBE_CLIENT_NAME")==="MWEB"&&(J=!0,G=15E3);return new Promise(function(K,V){navigator.geolocation.getCurrentPosition(function(Y){v.T=Y;K(Y)},function(Y){V(Y)},{enableHighAccuracy:J, maximumAge:0,timeout:G})})}; g.q.createUnpluggedLocationInfo=function(v){var J={};v=v.coords;if(v==null?0:v.latitude)J.latitudeE7=Math.floor(v.latitude*1E7);if(v==null?0:v.longitude)J.longitudeE7=Math.floor(v.longitude*1E7);if(v==null?0:v.accuracy)J.locationRadiusMeters=Math.round(v.accuracy);return J}; g.q.createLocationInfo=function(v){var J={};v=v.coords;if(v==null?0:v.latitude)J.latitudeE7=Math.floor(v.latitude*1E7);if(v==null?0:v.longitude)J.longitudeE7=Math.floor(v.longitude*1E7);return J};g.q=IUm.prototype;g.q.contains=function(v){return Object.prototype.hasOwnProperty.call(this.T,v)}; g.q.get=function(v){if(this.contains(v))return this.T[v]}; g.q.set=function(v,J){this.T[v]=J}; g.q.dH=function(){return Object.keys(this.T)}; g.q.remove=function(v){delete this.T[v]};jf.prototype.getModuleId=function(v){return v.serviceId.getModuleId()}; jf.prototype.get=function(v){a:{var J=this.mappings.get(v.toString());switch(J.type){case "mapping":v=J.value;break a;case "factory":J=J.value();this.mappings.set(v.toString(),{type:"mapping",value:J});v=J;break a;default:v=Vu(J)}}return v}; jf.prototype.registerService=function(v,J){this.mappings.set(v.toString(),{type:"mapping",value:J});return v}; new jf;var Tb={},hTU=(Tb.WEB_UNPLUGGED="^unplugged/",Tb.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Tb.WEB_UNPLUGGED_OPS="^unplugged/",Tb.WEB_UNPLUGGED_PUBLIC="^unplugged/",Tb.WEB_CREATOR="^creator/",Tb.WEB_KIDS="^kids/",Tb.WEB_EXPERIMENTS="^experiments/",Tb.WEB_MUSIC="^music/",Tb.WEB_REMIX="^music/",Tb.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Tb.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Tb);vB.prototype.J=function(v,J,G){J=J===void 0?{}:J;G=G===void 0?PO:G;var K={context:g.bd(v.clickTrackingParams,!1,this.L)};var V=this.X(v);if(V){this.T(K,V,J);var Y;J=g.$n(this.Z());(V=(Y=g.N(v.commandMetadata,g.Dh))==null?void 0:Y.apiUrl)&&(J=V);Y=tys(XX(J));v=Object.assign({},{command:v},void 0);K={input:Y,dS:k6(Y),Pa:K,config:v};K.config.yL?K.config.yL.identity=G:K.config.yL={identity:G};return K}g.fW(new g.Mk("Error: Failed to create Request from Command.",v))}; g.qL.Object.defineProperties(vB.prototype,{L:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.z(Ju,vB);g.z(G_,Ju);G_.prototype.J=function(){return{input:"/getDatasyncIdsEndpoint",dS:k6("/getDatasyncIdsEndpoint","GET"),Pa:{}}}; G_.prototype.Z=function(){return[]}; G_.prototype.X=function(){}; G_.prototype.T=function(){};var fGF={},bew=(fGF.GET_DATASYNC_IDS=iM(G_),fGF);var pj={},ZFG=(pj["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",pj["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",pj["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",pj["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",pj["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",pj["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",pj["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", pj["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",pj["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",pj["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",pj["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",pj["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",pj["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",pj["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",pj["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", pj["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",pj["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",pj["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",pj["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",pj["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",pj["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",pj["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", pj["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",pj.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",pj["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",pj["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",pj["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",pj["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",pj["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",pj["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", pj["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",pj["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",pj["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",pj["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",pj["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",pj["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",pj["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",pj["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",pj["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",pj["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",pj.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",pj["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",pj["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",pj["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",pj["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",pj["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",pj["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",pj["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",pj["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",pj["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",pj["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",pj["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",pj["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",pj["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",pj["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",pj["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",pj["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",pj["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",pj["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",pj["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",pj["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",pj["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", pj["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",pj["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",pj["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",pj["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",pj["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",pj["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",pj["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",pj["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",pj["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", pj["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",pj["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",pj["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",pj["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",pj["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",pj["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",pj["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",pj["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", pj),Lj={},TeX=(Lj.auto_search="LATENCY_ACTION_AUTO_SEARCH",Lj.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Lj.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Lj.app_startup="LATENCY_ACTION_APP_STARTUP",Lj.browse="LATENCY_ACTION_BROWSE",Lj.cast_splash="LATENCY_ACTION_CAST_SPLASH",Lj.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Lj.channels="LATENCY_ACTION_CHANNELS",Lj.chips="LATENCY_ACTION_CHIPS",Lj.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Lj.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", Lj.editor="LATENCY_ACTION_EDITOR",Lj.embed="LATENCY_ACTION_EMBED",Lj.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Lj.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Lj.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Lj.explore="LATENCY_ACTION_EXPLORE",Lj.favorites="LATENCY_ACTION_FAVORITES",Lj.home="LATENCY_ACTION_HOME",Lj.inboarding="LATENCY_ACTION_INBOARDING",Lj.landing="LATENCY_ACTION_LANDING",Lj.library="LATENCY_ACTION_LIBRARY",Lj.live= "LATENCY_ACTION_LIVE",Lj.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Lj.management="LATENCY_ACTION_MANAGEMENT",Lj.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Lj.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Lj.onboarding="LATENCY_ACTION_ONBOARDING",Lj.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",Lj.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Lj.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Lj.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", Lj.prebuffer="LATENCY_ACTION_PREBUFFER",Lj.prefetch="LATENCY_ACTION_PREFETCH",Lj.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Lj.profile_switcher="LATENCY_ACTION_LOGIN",Lj.projects="LATENCY_ACTION_PROJECTS",Lj.reel_watch="LATENCY_ACTION_REEL_WATCH",Lj.results="LATENCY_ACTION_RESULTS",Lj.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Lj.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Lj.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Lj.review="LATENCY_ACTION_REVIEW",Lj.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Lj.search_ui="LATENCY_ACTION_SEARCH_UI",Lj.search_suggest="LATENCY_ACTION_SUGGEST",Lj.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Lj.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Lj.seek="LATENCY_ACTION_PLAYER_SEEK",Lj.settings="LATENCY_ACTION_SETTINGS",Lj.store="LATENCY_ACTION_STORE",Lj.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Lj.tenx="LATENCY_ACTION_TENX",Lj.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Lj.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", Lj.watch="LATENCY_ACTION_WATCH",Lj.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Lj["watch,watch7"]="LATENCY_ACTION_WATCH",Lj["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Lj["watch,watch7ad"]="LATENCY_ACTION_WATCH",Lj["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Lj.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",Lj.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Lj.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Lj.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Lj.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Lj.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Lj.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Lj.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Lj);Object.assign(TeX,ZFG);g.z(lM,DU);var XOX=new t$("aft-recorded",lM);var u0G=g.X2.ytLoggingGelSequenceIdObj_||{};g.ks("ytLoggingGelSequenceIdObj_",u0G);var LV=g.X2.ytLoggingLatencyUsageStats_||{};g.ks("ytLoggingLatencyUsageStats_",LV);T_.prototype.tick=function(v,J,G,K){y_(this,"tick_"+v+"_"+J)||g.ql("latencyActionTicked",{tickName:v,clientActionNonce:J},{timestamp:G,cttAuthInfo:K})}; T_.prototype.info=function(v,J,G){var K=Object.keys(v).join("");y_(this,"info_"+K+"_"+J)||(v=Object.assign({},v),v.clientActionNonce=J,g.ql("latencyActionInfo",v,{cttAuthInfo:G}))}; T_.prototype.jspbInfo=function(v,J,G){for(var K="",V=0;V=V.length?(J.append(V),v-=V.length):v?(J.append(new Uint8Array(V.buffer,V.byteOffset,v)),G.append(new Uint8Array(V.buffer,V.byteOffset+v,V.length-v)),v=0):G.append(V);return{MS:J,Fa:G}}; g.q.isFocused=function(v){return v>=this.Kj&&v=64&&(this.j.set(v.subarray(0,64-this.X),this.X),J=64-this.X,this.X=0,gZw(this,this.j,0));for(;J+64<=G;J+=64)gZw(this,v,J);J=this.start&&(v=2&&G.ssdaiAdsConfig&&Ps("Unexpected ad placement renderers length",v.slot,null,{length:K.length});var V;((V=G.adSlots)==null?0:V.some(function(Y){var r,E;return((r=g.N(Y,kc))==null?void 0:(E=r.adSlotMetadata)==null?void 0:E.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||K.some(function(Y){var r,E,e,P; return!!((r=Y.renderer)==null?0:(E=r.linearAdSequenceRenderer)==null?0:(e=E.linearAds)==null?0:e.length)||!((P=Y.renderer)==null||!P.instreamVideoAdRenderer)})||VnL(v)})}; rM.prototype.Ck=function(){HWf(this.T)};qq.prototype.yf=function(){var v=this;Fs2(this.X,function(){var J=VW(v.slot.clientMetadata,"metadata_type_ad_break_request_data");return J.cueProcessedMs?v.T.get().fetch({dY:J.getAdBreakUrl,cW:new g.o8(J.N_,J.hn),cueProcessedMs:J.cueProcessedMs}):v.T.get().fetch({dY:J.getAdBreakUrl,cW:new g.o8(J.N_,J.hn)})})}; qq.prototype.Ck=function(){HWf(this.X)};EI.prototype.yf=function(){var v=this.slot.clientMetadata,J,G=(J=this.slot.fulfilledLayout)!=null?J:VW(v,"metadata_type_fulfilled_layout");Tur(this.callback,this.slot,G)}; EI.prototype.Ck=function(){nX(this.callback,this.slot,new Q("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")};PK.prototype.build=function(v,J){return J.fulfilledLayout||eb(J,{v1:["metadata_type_fulfilled_layout"]})?new EI(v,J):this.Z(v,J)};g.z(D3,PK); D3.prototype.Z=function(v,J){if(eb(J,{v1:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new rM(v,J,this.T,this.X,this.X5,this.cH,this.F4,this.L7,this.pK);if(eb(J,{v1:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new qq(v,J,this.T,this.X,this.X5,this.cH);throw new Q("Unsupported slot with type: "+J.slotType+" and client metadata: "+Yd(J.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.z(t6,PK);t6.prototype.Z=function(v,J){throw new Q("Unsupported slot with type: "+J.slotType+" and client metadata: "+Yd(J.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.q=YNF.prototype;g.q.r_=function(){return this.slot}; g.q.UB=function(){return this.layout}; g.q.init=function(){}; g.q.release=function(){}; g.q.startRendering=function(v){if(v.layoutId!==this.layout.layoutId)this.callback.Z0(this.slot,v,new o_("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=VW(v.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.w_(this.slot,v),lcw(this.Z, this.slot,J)):Ps("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,v)}}; g.q.A7=function(v,J){v.layoutId!==this.layout.layoutId?this.callback.Z0(this.slot,v,new o_("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.s$(this.slot,v,J),qNF(this),EPm(this))};g.z(nT,g.qU);g.q=nT.prototype;g.q.r_=function(){return this.X.slot}; g.q.UB=function(){return this.X.layout}; g.q.init=function(){this.Z.get().addListener(this)}; g.q.release=function(){this.Z.get().removeListener(this);this.dispose()}; g.q.DD=function(){}; g.q.kS=function(){}; g.q.Co=function(){}; g.q.XZ=function(){}; g.q.startRendering=function(v){var J=this;z1(this.X,v,function(){return void J.Yt()})}; g.q.Yt=function(){this.Z.get().Yt(this.T)}; g.q.A7=function(v,J){var G=this;z1(this.X,v,function(){var K=G.Z.get();jtL(K,G.T,3);G.T=[];G.callback.s$(G.slot,v,J)})}; g.q.X4=function(){this.Z.Sl()||this.Z.get().removeListener(this);g.qU.prototype.X4.call(this)}; g.qL.Object.defineProperties(nT.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.X.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.X.layout}}});yG.prototype.LJ=function(v,J){J=J===void 0?!1:J;var G=(this.Z.get(v)||[]).concat();if(J=J&&tnw(v)){var K=this.Z.get(J);K&&G.push.apply(G,g.l(K))}UI(this,v,G);this.T.add(v);J&&this.T.add(J)}; yG.prototype.P$=function(v,J){J=J===void 0?!1:J;if(!this.T.has(v)){var G=J&&tnw(v);G&&(J=!this.T.has(G));this.LJ(v,J)}};g.z(hfm,r8);g.z(Z3,nT);g.q=Z3.prototype;g.q.Fj=function(v,J){lo("ads-engagement-panel-layout",v,this.j.get().Jh,this.F4.get(),this.L,this.J,this.r_(),this.UB(),J)}; g.q.startRendering=function(v){sI(this.PH,this.r_(),this.UB(),g.N(this.UB().renderingContent,Ka),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(J,G,K,V,Y){return new hfm(J,G,K,V,Y)},this.T); nT.prototype.startRendering.call(this,v)}; g.q.w_=function(v,J){this.J===J.layoutId&&(this.L===null?this.L=this.F4.get().RK():Ps("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.q.s$=function(){}; g.q.fq=function(){}; g.q.aK=function(){}; g.q.P8=function(){}; g.q.mW=function(){}; g.q.Ge=function(){}; g.q.Os=function(){}; g.q.W8=function(){}; g.q.Yk=function(){}; g.q.J0=function(){}; g.q.WG=function(){}; g.q.X4=function(){hQ(this.Qy(),this);nT.prototype.X4.call(this)};g.z(nP8,r8);g.z(uo,nT);g.q=uo.prototype;g.q.Fj=function(v,J){lo("banner-image",v,this.j.get().Jh,this.F4.get(),this.L,this.J,this.r_(),this.UB(),J)}; g.q.startRendering=function(v){sI(this.PH,this.r_(),this.UB(),g.N(this.UB().renderingContent,GC),this.callback,"metadata_type_banner_image_layout_view_model",function(J,G,K,V,Y){return new nP8(J,G,K,V,Y)},this.T); nT.prototype.startRendering.call(this,v)}; g.q.w_=function(v,J){this.J===J.layoutId&&(this.L===null?this.L=this.F4.get().RK():Ps("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.q.s$=function(){}; g.q.fq=function(){}; g.q.aK=function(){}; g.q.P8=function(){}; g.q.mW=function(){}; g.q.Ge=function(){}; g.q.Os=function(){}; g.q.W8=function(){}; g.q.Yk=function(){}; g.q.J0=function(){}; g.q.WG=function(){}; g.q.X4=function(){hQ(this.Qy(),this);nT.prototype.X4.call(this)};g.z(gM,r8);g.z(Xe,nT);g.q=Xe.prototype;g.q.Fj=function(v,J){lo("action-companion",v,this.j.get().Jh,this.F4.get(),this.L,this.J,this.r_(),this.UB(),J)}; g.q.startRendering=function(v){sI(this.PH,this.r_(),this.UB(),g.N(this.UB().renderingContent,$c),this.callback,"metadata_type_action_companion_ad_renderer",function(J,G,K,V,Y){return new gM(J,G,K,V,Y)},this.T); nT.prototype.startRendering.call(this,v)}; g.q.w_=function(v,J){J.layoutId===this.layout.layoutId?this.PH.P$("impression"):this.J===J.layoutId&&(this.L===null?this.L=this.F4.get().RK():Ps("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.q.s$=function(){}; g.q.fq=function(){}; g.q.aK=function(){}; g.q.P8=function(){}; g.q.mW=function(){}; g.q.Ge=function(){}; g.q.Os=function(){}; g.q.W8=function(){}; g.q.Yk=function(){}; g.q.J0=function(){}; g.q.WG=function(){}; g.q.X4=function(){hQ(this.Qy(),this);nT.prototype.X4.call(this)};g.z(Rfm,r8);g.z(kM,nT);g.q=kM.prototype;g.q.Fj=function(v,J){lo("image-companion",v,this.j.get().Jh,this.F4.get(),this.L,this.J,this.r_(),this.UB(),J)}; g.q.startRendering=function(v){sI(this.PH,this.r_(),this.UB(),g.N(this.UB().renderingContent,v6),this.callback,"metadata_type_image_companion_ad_renderer",function(J,G,K,V,Y){return new Rfm(J,G,K,V,Y)},this.T); nT.prototype.startRendering.call(this,v)}; g.q.w_=function(v,J){J.layoutId===this.layout.layoutId?this.PH.P$("impression"):this.J===J.layoutId&&(this.L===null?this.L=this.F4.get().RK():Ps("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.q.s$=function(){}; g.q.fq=function(){}; g.q.aK=function(){}; g.q.P8=function(){}; g.q.mW=function(){}; g.q.Ge=function(){}; g.q.Os=function(){}; g.q.W8=function(){}; g.q.Yk=function(){}; g.q.J0=function(){}; g.q.WG=function(){}; g.q.X4=function(){hQ(this.Qy(),this);nT.prototype.X4.call(this)};g.z(T82,r8);g.z(cK,nT);g.q=cK.prototype;g.q.Fj=function(v,J){lo("shopping-companion",v,this.j.get().Jh,this.F4.get(),this.L,this.J,this.r_(),this.UB(),J)}; g.q.startRendering=function(v){sI(this.PH,this.r_(),this.UB(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(J,G,K,V,Y){return new T82(J,G,K,V,Y)},this.T); nT.prototype.startRendering.call(this,v)}; g.q.w_=function(v,J){J.layoutId===this.layout.layoutId?this.PH.P$("impression"):this.J===J.layoutId&&(this.L===null?this.L=this.F4.get().RK():Ps("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.q.s$=function(){}; g.q.fq=function(){}; g.q.aK=function(){}; g.q.P8=function(){}; g.q.mW=function(){}; g.q.Ge=function(){}; g.q.Os=function(){}; g.q.W8=function(){}; g.q.Yk=function(){}; g.q.J0=function(){}; g.q.WG=function(){}; g.q.X4=function(){hQ(this.Qy(),this);nT.prototype.X4.call(this)};g.z(a8,nT);g.q=a8.prototype;g.q.startRendering=function(v){sI(this.PH,this.r_(),this.UB(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(J,G,K,V,Y){return new gM(J,G,K,V,Y)},this.T); nT.prototype.startRendering.call(this,v)}; g.q.w_=function(){}; g.q.s$=function(){}; g.q.fq=function(){}; g.q.aK=function(){}; g.q.P8=function(){}; g.q.mW=function(){}; g.q.Ge=function(){}; g.q.Os=function(){}; g.q.W8=function(){}; g.q.Yk=function(){}; g.q.J0=function(){}; g.q.WG=function(){}; g.q.X4=function(){hQ(this.Qy(),this);nT.prototype.X4.call(this)}; g.q.Fj=function(){};g.q=UUX.prototype;g.q.r_=function(){return this.slot}; g.q.UB=function(){return this.layout}; g.q.init=function(){this.L7.get().addListener(this);this.L7.get().NA.push(this);var v=VW(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=VW(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");T1(this.layout.bd)&&QD(this.AR.get(),this.layout.layoutId,{KH:J,Of:v,listener:this})}; g.q.release=function(){this.L7.get().removeListener(this);HAf(this.L7.get(),this);T1(this.layout.bd)&&Wl(this.AR.get(),this.layout.layoutId)}; g.q.startRendering=function(v){this.callback.w_(this.slot,v)}; g.q.A7=function(v,J){hPB(this.cH.get())&&!this.T&&(this.PH.P$("abandon"),this.T=!0);this.callback.s$(this.slot,v,J)}; g.q.HC=function(v){switch(v.id){case "part2viewed":this.PH.P$("start");this.PH.P$("impression");break;case "videoplaytime25":this.PH.P$("first_quartile");break;case "videoplaytime50":this.PH.P$("midpoint");break;case "videoplaytime75":this.PH.P$("third_quartile");break;case "videoplaytime100":hPB(this.cH.get())?this.T||(this.PH.P$("complete"),this.T=!0):this.PH.P$("complete");fT(this.PH)&&mp(this.PH,Infinity,!0);zP8(this.cH.get())&&Nq(this.X,Infinity,!0);break;case "engagedview":fT(this.PH)||this.PH.P$("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Ps("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.q.onVolumeChange=function(){}; g.q.YR=function(){}; g.q.ip=function(){}; g.q.ov=function(){}; g.q.onFullscreenToggled=function(){}; g.q.lQ=function(){}; g.q.Ho=function(){}; g.q.pn=function(v){zP8(this.cH.get())&&Nq(this.X,v*1E3,!1);fT(this.PH)&&mp(this.PH,v*1E3,!1)}; g.q.Qt=function(){}; g.q.Q3=function(){this.PH.P$("active_view_measurable")}; g.q.tY=function(){this.PH.P$("active_view_viewable")}; g.q.Tq=function(){this.PH.P$("active_view_fully_viewable_audible_half_duration")}; g.q.oU=function(){this.PH.P$("audio_measurable")}; g.q.uH=function(){this.PH.P$("audio_audible")};g.z(A6,nT);g.q=A6.prototype;g.q.init=function(){nT.prototype.init.call(this);var v=VW(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),J={adsClientData:this.layout.C0};this.T.push(new sU(v,this.layout.layoutId,VW(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),J,!0))}; g.q.o8=function(){this.L||this.L7.get().resumeVideo(1)}; g.q.startRendering=function(v){nT.prototype.startRendering.call(this,v);JF(this.L7.get(),"ad-showing");this.callback.w_(this.slot,v);this.J.kC=this}; g.q.A7=function(v,J){nT.prototype.A7.call(this,v,J);Gv(this.L7.get(),"ad-showing");c4(this.J,this)}; g.q.Fj=function(v){switch(v){case "ad-info-icon-button":(this.L=this.L7.get().FX(1))||this.L7.get().pauseVideo();break;case "visit-advertiser":this.L7.get().pauseVideo()}}; g.q.X4=function(){nT.prototype.X4.call(this)};g.z(Fe,r8);g.z(HK,nT);g.q=HK.prototype;g.q.startRendering=function(v){sI(this.PH,this.r_(),this.UB(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(J,G,K,V,Y){return new Fe(J,G,K,V,Y)},this.T); nT.prototype.startRendering.call(this,v)}; g.q.w_=function(){}; g.q.s$=function(){}; g.q.fq=function(){}; g.q.aK=function(){}; g.q.P8=function(){}; g.q.mW=function(){}; g.q.Ge=function(){}; g.q.Os=function(){}; g.q.W8=function(){}; g.q.Yk=function(){}; g.q.J0=function(){}; g.q.WG=function(){}; g.q.X4=function(){hQ(this.Qy(),this);nT.prototype.X4.call(this)}; g.q.Fj=function(){};g.z(Mq,r8);g.z(QG,nT);QG.prototype.init=function(){nT.prototype.init.call(this);this.T.push(new Mq(g.N(this.layout.renderingContent,yJ),this.layout.layoutId,{adsClientData:this.layout.C0}))}; QG.prototype.Fj=function(){Or(this.L.get(),this.J)&&R8(this.F4.get(),3)}; QG.prototype.startRendering=function(v){nT.prototype.startRendering.call(this,v);this.callback.w_(this.slot,v)}; QG.prototype.X4=function(){nT.prototype.X4.call(this)};g.z(WK,r8);g.z(CT,nT);CT.prototype.init=function(){nT.prototype.init.call(this);var v=g.N(this.layout.renderingContent,q9)||VW(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),J=dM(this.PH);this.T.push(new WK(v,J,this.layout.layoutId,{adsClientData:this.layout.C0},!0,!0))}; CT.prototype.startRendering=function(v){nT.prototype.startRendering.call(this,v);this.callback.w_(this.slot,v)}; CT.prototype.Fj=function(v,J){if(J===this.layout.layoutId)switch(v){case "skip-button":var G;(v=(G=VW(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:G.current)&&v.Mk(this.r_(),this.layout)}}; CT.prototype.X4=function(){nT.prototype.X4.call(this)};jR.prototype.build=function(v,J,G,K){if(bo(K,{v1:["metadata_type_ad_break_response_data"],wB:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new YNF(v,G,K,this.X,this.Z,this.T);throw new o_("Unsupported layout with type: "+K.layoutType+" and client metadata: "+Yd(K.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.z(SNj,r8);g.z(iD,nT);g.q=iD.prototype;g.q.Fj=function(v,J){lo("ads-engagement-panel",v,this.j.get().Jh,this.F4.get(),this.L,this.J,this.r_(),this.UB(),J)}; g.q.startRendering=function(v){sI(this.PH,this.r_(),this.UB(),g.N(this.UB().renderingContent,J2),this.callback,"metadata_type_ads_engagement_panel_renderer",function(J,G,K,V,Y){return new SNj(J,G,K,V,Y)},this.T); nT.prototype.startRendering.call(this,v)}; g.q.w_=function(v,J){J.layoutId===this.layout.layoutId?this.PH.P$("impression"):this.J===J.layoutId&&(this.L===null?this.L=this.F4.get().RK():Ps("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.q.s$=function(){}; g.q.fq=function(){}; g.q.aK=function(){}; g.q.P8=function(){}; g.q.mW=function(){}; g.q.Ge=function(){}; g.q.Os=function(){}; g.q.W8=function(){}; g.q.Yk=function(){}; g.q.J0=function(){}; g.q.WG=function(){}; g.q.X4=function(){hQ(this.Qy(),this);nT.prototype.X4.call(this)};g.z($4,nT);g.q=$4.prototype;g.q.Fj=function(v,J){lo("top-banner-image-text-icon-buttoned",v,this.j.get().Jh,this.F4.get(),this.L,this.J,this.r_(),this.UB(),J)}; g.q.startRendering=function(v){sI(this.PH,this.r_(),this.UB(),g.N(this.UB().renderingContent,oo),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(J,G,K,V,Y){return new Fe(J,G,K,V,Y)},this.T); nT.prototype.startRendering.call(this,v)}; g.q.w_=function(v,J){this.J===J.layoutId&&(this.L===null?this.L=this.F4.get().RK():Ps("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.q.s$=function(){}; g.q.fq=function(){}; g.q.aK=function(){}; g.q.P8=function(){}; g.q.mW=function(){}; g.q.Ge=function(){}; g.q.Os=function(){}; g.q.W8=function(){}; g.q.Yk=function(){}; g.q.J0=function(){}; g.q.WG=function(){}; g.q.X4=function(){hQ(this.Qy(),this);nT.prototype.X4.call(this)};uVw.prototype.build=function(v,J,G,K){if(bo(K,fHX())||g.N(K.renderingContent,J2)!==void 0)return new iD(v,G,K,this.AP,this.F4,this.Qy,this.AR,this.T);if(bo(K,sKw())||g.N(K.renderingContent,$c)!==void 0)return new Xe(v,G,K,this.AP,this.F4,this.Qy,this.AR,this.T);if(bo(K,lH2())||g.N(K.renderingContent,v6)!==void 0)return new kM(v,G,K,this.AP,this.F4,this.Qy,this.AR,this.T);if(bo(K,pr8()))return new cK(v,G,K,this.AP,this.F4,this.Qy,this.AR,this.T);if(bo(K,OR8()))return new a8(v,G,K,this.AP,this.F4,this.Qy, this.AR,this.T);if(bo(K,dUw())||g.N(K.renderingContent,GC)!==void 0)return new uo(v,G,K,this.AP,this.F4,this.Qy,this.AR,this.T);if(bo(K,ZRj())||g.N(K.renderingContent,oo)!==void 0)return new $4(v,G,K,this.AP,this.F4,this.Qy,this.AR,this.T);if(bo(K,xUB()))return new HK(v,G,K,this.AP,this.F4,this.Qy,this.AR,this.T);if(bo(K,zfw())||g.N(K.renderingContent,Ka)!==void 0)return new Z3(v,G,K,this.AP,this.F4,this.Qy,this.AR,this.T);throw new o_("Unsupported layout with type: "+K.layoutType+" and client metadata: "+ Yd(K.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};gPj.prototype.build=function(v,J,G,K){if(bo(K,{v1:["metadata_type_linked_player_bytes_layout_id"],wB:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new QG(v,G,K,this.AP,this.F4,this.T);throw new o_("Unsupported layout with type: "+K.layoutType+" and client metadata: "+Yd(K.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.q=Xrm.prototype;g.q.r_=function(){return this.slot}; g.q.UB=function(){return this.layout}; g.q.init=function(){}; g.q.release=function(){}; g.q.startRendering=function(v){v.layoutId!==this.layout.layoutId?this.callback.Z0(this.slot,v,new o_("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.w_(this.slot,v),this.PH.P$("impression"),FL(this.uh,v,"normal"))}; g.q.A7=function(v,J){v.layoutId!==this.layout.layoutId?this.callback.Z0(this.slot,v,new o_("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.s$(this.slot,v,J)};g.q=c9t.prototype;g.q.r_=function(){return this.slot}; g.q.UB=function(){return this.layout}; g.q.init=function(){}; g.q.release=function(){}; g.q.startRendering=function(v){v.layoutId!==this.layout.layoutId?this.callback.Z0(this.slot,v,new o_("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.w_(this.slot,v),this.PH.P$("impression"),FL(this.uh,v,"normal"))}; g.q.A7=function(v,J){v.layoutId!==this.layout.layoutId?this.callback.Z0(this.slot,v,new o_("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.s$(this.slot,v,J)};vE.prototype.build=function(v,J,G,K){if(!this.cH.get().S.B().C("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(bo(K,k8L()))return new Xrm(v,G,K,this.F4,this.uh)}else if(bo(K,{v1:[],wB:["LAYOUT_TYPE_FORECASTING"]}))return new c9t(v,G,K,this.F4,this.uh);throw new o_("Unsupported layout with type: "+K.layoutType+" and client metadata: "+Yd(K.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.z(A9U,r8);g.z(Js,nT);g.q=Js.prototype;g.q.init=function(){nT.prototype.init.call(this);var v=g.N(this.layout.renderingContent,rf)||VW(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),J={adsClientData:this.layout.C0};this.T.push(new A9U(v,VW(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,J))}; g.q.o8=function(){this.L||this.L7.get().resumeVideo(2)}; g.q.startRendering=function(v){nT.prototype.startRendering.call(this,v);this.callback.w_(this.slot,v);this.J.kC=this}; g.q.A7=function(v,J){nT.prototype.A7.call(this,v,J);c4(this.J,this)}; g.q.Fj=function(v){if(Or(this.j.get(),this.K))switch(v){case "visit-advertiser-link":R8(this.F4.get(),3)}switch(v){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.L||this.L7.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.L=this.L7.get().FX(2))||this.L7.get().pauseVideo();break;case "visit-advertiser-link":this.L7.get().pauseVideo();Fqt(this).Il();break;case "skip-button":if(v=Fqt(this), this.layout.renderingContent&&!v5(this.layout.clientMetadata,"metadata_type_dai")||!v.Do){var J;(v=(J=VW(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:J.current)&&v.Mk(this.r_(),this.layout)}else Ps("Requesting to skip by LegacyPlayerBytes when components enabled"),v.ge(this.r_(),this.layout)}}; g.q.X4=function(){nT.prototype.X4.call(this)};g.z(GL,nT);g.q=GL.prototype;g.q.init=function(){nT.prototype.init.call(this);var v=g.N(this.layout.renderingContent,Y4)||VW(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),J={adsClientData:this.layout.C0},G;(G=!!this.layout.renderingContent)||(G=!o$(this).Do);this.T.push(new sU(v,this.layout.layoutId,VW(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),J,G))}; g.q.o8=function(){this.L||this.L7.get().resumeVideo(2)}; g.q.startRendering=function(v){nT.prototype.startRendering.call(this,v);this.callback.w_(this.slot,v);this.J.kC=this}; g.q.A7=function(v,J){nT.prototype.A7.call(this,v,J);c4(this.J,this)}; g.q.Fj=function(v){if(Or(this.j.get(),this.K))switch(v){case "visit-advertiser":R8(this.F4.get(),3)}switch(v){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.L||this.L7.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.L=this.L7.get().FX(2))||this.L7.get().pauseVideo();break;case "visit-advertiser":this.L7.get().pauseVideo();o$(this).Il();break;case "skip-button":if(v=o$(this),this.layout.renderingContent&& !v5(this.layout.clientMetadata,"metadata_type_dai")||!v.Do){var J;(v=(J=VW(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:J.current)&&v.Mk(this.r_(),this.layout)}else Ps("Requesting to skip by LegacyPlayerBytes"),v.ge(this.r_(),this.layout)}}; g.q.X4=function(){nT.prototype.X4.call(this)};g.z(Mn2,r8);g.z(K6,nT);g.q=K6.prototype;g.q.startRendering=function(v){var J=this;z1(this.X,v,function(){J.T.push(new Mn2(VW(J.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),v.layoutId,v.C0));J.Yt();J.callback.w_(J.slot,v);g.H(MQ(J.L7.get(),1),512)&&J.callback.Z0(J.r_(),J.UB(),new o_("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.q.Ho=function(){}; g.q.lQ=function(v){if(v.state.isError()){var J;this.callback.Z0(this.r_(),this.UB(),new o_("A player error happened during adNotify",{playerErrorCode:(J=v.state.c8)==null?void 0:J.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.q.onFullscreenToggled=function(){}; g.q.ip=function(){}; g.q.ov=function(){}; g.q.YR=function(){}; g.q.onVolumeChange=function(){}; g.q.HC=function(){}; g.q.Qt=function(){}; g.q.Fj=function(){};g.z(Wqj,r8);g.z(V9,nT);V9.prototype.init=function(){nT.prototype.init.call(this);var v=g.N(this.layout.renderingContent,Ej),J=dM(this.PH);this.T.push(new Wqj(v,J,this.layout.layoutId,{adsClientData:this.layout.C0}))}; V9.prototype.startRendering=function(v){nT.prototype.startRendering.call(this,v);this.callback.w_(this.slot,v)}; V9.prototype.Fj=function(v,J){if(J===this.layout.layoutId)switch(v){case "skip-button":var G;(v=(G=VW(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:G.current)&&v.Mk(this.r_(),this.layout)}}; V9.prototype.X4=function(){nT.prototype.X4.call(this)};C_r.prototype.build=function(v,J,G,K){if(v=eR(v,G,K,this.AP,this.L7,this.F4,this.X,this.T,this.cH))return v;throw new o_("Unsupported layout with type: "+K.layoutType+" and client metadata: "+Yd(K.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.q=ts.prototype;g.q.r_=function(){return this.slot}; g.q.UB=function(){return this.layout}; g.q.init=function(){this.L7.get().addListener(this);this.L7.get().NA.push(this);var v=this.layout.renderingContent?Is(this.C7.get(),1).pc/1E3:VW(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=g.N(this.layout.renderingContent,h2),G=J?pT(J.pings):VW(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");J=J?DUw(J.pings):VW(this.layout.clientMetadata,"metadata_type_active_view_identifier");T1(this.layout.bd)&&QD(this.AR.get(),this.layout.layoutId,{KH:G,Of:v,listener:this, kJ:J})}; g.q.release=function(){this.L7.get().removeListener(this);HAf(this.L7.get(),this);T1(this.layout.bd)&&Wl(this.AR.get(),this.layout.layoutId)}; g.q.startRendering=function(v){this.callback.w_(this.slot,v)}; g.q.A7=function(v,J){BE(this,"abandon");this.callback.s$(this.slot,v,J)}; g.q.HC=function(v){switch(v.id){case "part2viewed":this.PH.P$("start");this.PH.P$("impression");break;case "videoplaytime25":this.PH.P$("first_quartile");break;case "videoplaytime50":this.PH.P$("midpoint");break;case "videoplaytime75":this.PH.P$("third_quartile");break;case "videoplaytime100":BE(this,"complete");fT(this.PH)&&mp(this.PH,Infinity,!0);break;case "engagedview":fT(this.PH)||this.PH.P$("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:Ps("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.q.onVolumeChange=function(){}; g.q.YR=function(){}; g.q.ip=function(){}; g.q.ov=function(){}; g.q.onFullscreenToggled=function(){}; g.q.lQ=function(v){this.T||(g.Bs(v,4)&&!g.Bs(v,2)?xM(this.PH,"pause"):tk(v,4)<0&&!(tk(v,2)<0)&&xM(this.PH,"resume"))}; g.q.Ho=function(){}; g.q.pn=function(v){fT(this.PH)&&mp(this.PH,v*1E3,!1)}; g.q.Qt=function(){BE(this,"swipe")}; g.q.Q3=function(){this.PH.P$("active_view_measurable")}; g.q.tY=function(){this.PH.P$("active_view_viewable")}; g.q.Tq=function(){this.PH.P$("active_view_fully_viewable_audible_half_duration")}; g.q.oU=function(){this.PH.P$("audio_measurable")}; g.q.uH=function(){this.PH.P$("audio_audible")};bRm.prototype.build=function(v,J,G,K){if(G.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.N(K.renderingContent,h2)!==void 0)return new ts(v,G,K,this.L7,this.F4,this.cH,this.AR,this.C7);J=["metadata_type_ad_placement_config"];for(var V=g.n(wM()),Y=V.next();!Y.done;Y=V.next())J.push(Y.value);if(bo(K,{v1:J,wB:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return G.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new ts(v,G,K,this.L7,this.F4,this.cH,this.AR,this.C7):new UUX(v,G,K,this.L7,this.F4, this.Yy,this.cH,this.AR);throw new o_("Unsupported layout with type: "+K.layoutType+" and client metadata: "+Yd(K.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var n6={contentCpn:"",Ui:new Map};YUB.prototype.H$=function(v,J){var G={};J=Object.assign({},J,(G.cc=this.s9.wE(),G));this.s9.S.uw(v,J)};var vrF,mt; vrF={Ahb:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",KJw:"AUTHENTICATION_MALFORMED",D5l:"AUTHENTICATION_MISSING",Gbt:"BAD_REQUEST",x5h:"CAST_SESSION_DEVICE_MISMATCHED",iZw:"CAST_SESSION_VIDEO_MISMATCHED",Phb:"CAST_TOKEN_EXPIRED",OZb:"CAST_TOKEN_FAILED",WJi:"CAST_TOKEN_MALFORMED",l2b:"CGI_PARAMS_MALFORMED",a2B:"CGI_PARAMS_MISSING",Y6B:"DEVICE_FALLBACK",Ojt:"GENERIC_WITH_LINK_AND_CPN",Wch:"ERROR_HDCP",lOU:"LICENSE",VFi:"VIDEO_UNAVAILABLE",Htl:"FORMAT_UNAVAILABLE",t4U:"GEO_FAILURE", SAe:"HTML5_AUDIO_RENDERER_ERROR",Fzh:"GENERIC_WITHOUT_LINK",jwb:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",JVB:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",Cmr:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",kkB:"HTML5_SPS_UMP_STATUS_REJECTED",xPB:"INVALID_DRM_MESSAGE",Kxl:"PURCHASE_NOT_FOUND",DnU:"PURCHASE_REFUNDED",BF7:"RENTAL_EXPIRED",Wx4:"RETRYABLE_ERROR",EKY:"SERVER_ERROR",cJH:"SIGNATURE_EXPIRED",vKi:"STOPPED_BY_ANOTHER_PLAYBACK",s37:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",L7t:"STREAMING_NOT_ALLOWED", nKr:"STREAM_LICENSE_NOT_FOUND",Cri:"TOO_MANY_REQUESTS",kyl:"TOO_MANY_REQUESTS_WITH_LINK",K7r:"TOO_MANY_STREAMS_PER_ENTITLEMENT",Ddi:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",E$U:"VIDEO_FORBIDDEN",HFH:"VIDEO_NOT_FOUND",z6B:"BROWSER_OR_EXTENSION_ERROR"};mt={}; g.OD=(mt.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.",mt.DEVICE_FALLBACK="Sorry, this video is not available on this device.",mt.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",mt.LICENSE="Sorry, there was an error while licensing this video.",mt.VIDEO_UNAVAILABLE= "Video unavailable",mt.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",mt.GEO_FAILURE="This video isn't available in your country.",mt.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",mt.GENERIC_WITHOUT_LINK="An error has occurred. Please try again later.",mt.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",mt.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognise any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", mt.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",mt.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",mt.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",mt.PURCHASE_NOT_FOUND="This video requires payment.",mt.PURCHASE_REFUNDED="This video's purchase has been refunded.",mt.RENTAL_EXPIRED="This video's rental has expired.",mt.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",mt.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",mt.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",mt.CAST_TOKEN_EXPIRED="Cast session has expired. Please refresh.",mt.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",mt.SERVER_ERROR="There was an internal server error. Please try again later.",mt.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",mt.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",mt.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",mt.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",mt.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",mt.TOO_MANY_REQUESTS="Please log in to watch this video.", mt.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",mt.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",mt.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",mt.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",mt.VIDEO_FORBIDDEN="Access to this video is forbidden.",mt.VIDEO_NOT_FOUND="This video cannot be found.",mt.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",mt);var JjX;var G7m=g.wT(),orT=G7m.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!orT||orT.length<2)JjX=void 0;else{var K0T=G7m.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);JjX=K0T&&K0T.length===6?Number(K0T[5].replace("_",".")):0}var fC=JjX,To=fC>=0;g.z(g.Zs,yC);g.Zs.prototype.G=function(v,J,G,K,V){return yC.prototype.G.call(this,v,J,G,K,V)};var Sx={},IB=(Sx.FAIRPLAY="fairplay",Sx.PLAYREADY="playready",Sx.WIDEVINE="widevine",Sx.CLEARKEY=null,Sx.FLASHACCESS=null,Sx.UNKNOWN=null,Sx.WIDEVINE_CLASSIC=null,Sx);uD.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var fj={},lf=(fj.WIDTH={name:"width",video:!0,valid:640,LQ:99999},fj.HEIGHT={name:"height",video:!0,valid:360,LQ:99999},fj.FRAMERATE={name:"framerate",video:!0,valid:30,LQ:9999},fj.BITRATE={name:"bitrate",video:!0,valid:3E5,LQ:2E9},fj.EOTF={name:"eotf",video:!0,valid:"bt709",LQ:"catavision"},fj.CHANNELS={name:"channels",video:!1,valid:2,LQ:99},fj.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",LQ:"invalidformat"},fj.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", LQ:"nope"},fj.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",LQ:"av99.0.05M.08"},fj.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",LQ:"invalid"},fj);var Vc_=["h","H"],YxT=["9","("],rjY=["9h","(h"],qx8=["8","*"],Ero=["a","A"],eyY=["o","O"],P0G=["m","M"],D$T=["mac3","MAC3"],tco=["meac3","MEAC3"],Zh={},YCm=(Zh.h=Vc_,Zh.H=Vc_,Zh["9"]=YxT,Zh["("]=YxT,Zh["9h"]=rjY,Zh["(h"]=rjY,Zh["8"]=qx8,Zh["*"]=qx8,Zh.a=Ero,Zh.A=Ero,Zh.o=eyY,Zh.O=eyY,Zh.m=P0G,Zh.M=P0G,Zh.mac3=D$T,Zh.MAC3=D$T,Zh.meac3=tco,Zh.MEAC3=tco,Zh),BKL=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),i62=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var W={},a$=(W["0"]="f",W["160"]="h",W["133"]="h",W["134"]="h",W["135"]="h",W["136"]="h",W["137"]="h",W["264"]="h",W["266"]="h",W["138"]="h",W["298"]="h",W["299"]="h",W["304"]="h",W["305"]="h",W["214"]="h",W["216"]="h",W["374"]="h",W["375"]="h",W["140"]="a",W["141"]="ah",W["327"]="sa",W["258"]="m",W["380"]="mac3",W["328"]="meac3",W["161"]="H",W["142"]="H",W["143"]="H",W["144"]="H",W["222"]="H",W["223"]="H",W["145"]="H",W["224"]="H",W["225"]="H",W["146"]="H",W["226"]="H",W["227"]="H",W["147"]="H", W["384"]="H",W["376"]="H",W["385"]="H",W["377"]="H",W["149"]="A",W["261"]="M",W["381"]="MAC3",W["329"]="MEAC3",W["598"]="9",W["278"]="9",W["242"]="9",W["243"]="9",W["244"]="9",W["775"]="9",W["776"]="9",W["777"]="9",W["778"]="9",W["779"]="9",W["780"]="9",W["781"]="9",W["782"]="9",W["783"]="9",W["247"]="9",W["248"]="9",W["353"]="9",W["355"]="9",W["356"]="9",W["271"]="9",W["577"]="9",W["313"]="9",W["579"]="9",W["272"]="9",W["302"]="9",W["303"]="9",W["407"]="9",W["408"]="9",W["308"]="9",W["315"]="9", W["330"]="9h",W["331"]="9h",W["332"]="9h",W["333"]="9h",W["334"]="9h",W["335"]="9h",W["336"]="9h",W["337"]="9h",W["338"]="so",W["600"]="o",W["250"]="o",W["251"]="o",W["774"]="o",W["194"]="*",W["195"]="*",W["220"]="*",W["221"]="*",W["196"]="*",W["197"]="*",W["279"]="(",W["280"]="(",W["317"]="(",W["318"]="(",W["273"]="(",W["274"]="(",W["357"]="(",W["358"]="(",W["275"]="(",W["359"]="(",W["360"]="(",W["276"]="(",W["583"]="(",W["584"]="(",W["314"]="(",W["585"]="(",W["561"]="(",W["277"]="(",W["361"]="(h", W["362"]="(h",W["363"]="(h",W["364"]="(h",W["365"]="(h",W["366"]="(h",W["591"]="(h",W["592"]="(h",W["367"]="(h",W["586"]="(h",W["587"]="(h",W["368"]="(h",W["588"]="(h",W["562"]="(h",W["409"]="(",W["410"]="(",W["411"]="(",W["412"]="(",W["557"]="(",W["558"]="(",W["394"]="1",W["395"]="1",W["396"]="1",W["397"]="1",W["398"]="1",W["399"]="1",W["720"]="1",W["721"]="1",W["400"]="1",W["401"]="1",W["571"]="1",W["402"]="1",W["694"]="1h",W["695"]="1h",W["696"]="1h",W["697"]="1h",W["698"]="1h",W["699"]="1h",W["700"]= "1h",W["701"]="1h",W["702"]="1h",W["703"]="1h",W["386"]="3",W["387"]="w",W["406"]="6",W["787"]="1",W["788"]="1",W["548"]="1e",W["549"]="1e",W["550"]="1e",W["551"]="1e",W["809"]="1e",W["810"]="1e",W["552"]="1e",W["811"]="1e",W["812"]="1e",W["553"]="1e",W["813"]="1e",W["814"]="1e",W["554"]="1e",W["815"]="1e",W["816"]="1e",W["555"]="1e",W["817"]="1e",W["818"]="1e",W["572"]="1e",W["556"]="1e",W["645"]="(",W["646"]="(",W["647"]="(",W["648"]="(",W["649"]="(",W["650"]="(",W["651"]="(",W["652"]="(",W["653"]= "(",W["654"]="(",W["655"]="(",W["656"]="(",W["657"]="(",W["658"]="(",W["659"]="(",W["660"]="(",W["661"]="(",W["662"]="(",W["663"]="(",W["664"]="(",W["665"]="(",W["666"]="(",W["667"]="(",W["668"]="(",W["669"]="(",W["670"]="(",W["671"]="(",W["672"]="(",W["673"]="(",W["674"]="(h",W["675"]="(h",W["676"]="(h",W["677"]="(h",W["678"]="(h",W["679"]="(h",W["680"]="(h",W["681"]="(h",W["682"]="(h",W["683"]="(h",W["684"]="(h",W["685"]="(h",W["686"]="(h",W["687"]="(h",W["688"]="A",W["689"]="A",W["690"]="A",W["691"]= "MEAC3",W["773"]="i",W["806"]="I",W["805"]="I",W["829"]="9",W["830"]="9",W["831"]="9",W["832"]="9",W["833"]="9",W["834"]="9",W["835"]="9",W["836"]="9",W["837"]="9",W["838"]="9",W["839"]="9",W["840"]="9",W["841"]="(",W["842"]="(",W["843"]="(",W["844"]="(",W["845"]="(",W["846"]="(",W["847"]="(",W["848"]="(",W["849"]="(",W["850"]="(",W["851"]="(",W["852"]="(",W["865"]="9",W["866"]="9",W["867"]="9",W["868"]="9",W["869"]="9",W["870"]="9",W["871"]="9",W["872"]="9",W["873"]="9",W["874"]="9",W["875"]="9", W["876"]="9",W["877"]="(",W["878"]="(",W["879"]="(",W["880"]="(",W["881"]="(",W["882"]="(",W["883"]="(",W["884"]="(",W["885"]="(",W["886"]="(",W["887"]="(",W["888"]="(",W);var ub={},Njf=(ub.STEREO_LAYOUT_UNKNOWN=0,ub.STEREO_LAYOUT_LEFT_RIGHT=1,ub.STEREO_LAYOUT_TOP_BOTTOM=2,ub);var gi,qB;gi={};g.Xy=(gi.auto=0,gi.tiny=144,gi.light=144,gi.small=240,gi.medium=360,gi.large=480,gi.hd720=720,gi.hd1080=1080,gi.hd1440=1440,gi.hd2160=2160,gi.hd2880=2880,gi.highres=4320,gi);qB={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var cE="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");k4.prototype.isHdr=function(){return this.T==="smpte2084"||this.T==="arib-std-b67"};As.prototype.M1=function(){return this.containerType===2}; As.prototype.isEncrypted=function(){return!!this.k5}; As.prototype.Xj=function(){return!!this.audio}; As.prototype.Vk=function(){return!!this.video}; var M9=!1;g.z(Do,g.qU);g.q=Do.prototype;g.q.appendBuffer=function(v,J,G){if(this.t7.CI()!==this.appendWindowStart+this.start||this.t7.J2()!==this.appendWindowEnd+this.start||this.t7.B$()!==this.timestampOffset+this.start)this.t7.supports(1),this.t7.uc(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.t7.S_(this.timestampOffset+this.start);this.t7.appendBuffer(v,J,G)}; g.q.abort=function(){this.t7.abort()}; g.q.remove=function(v,J){this.t7.remove(v+this.start,J+this.start)}; g.q.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.q.clear=function(){this.t7.clear()}; g.q.uc=function(v,J){this.appendWindowStart=v;this.appendWindowEnd=J}; g.q.q6=function(){return this.timestampOffset+this.start}; g.q.CI=function(){return this.appendWindowStart}; g.q.J2=function(){return this.appendWindowEnd}; g.q.S_=function(v){this.timestampOffset=v}; g.q.B$=function(){return this.timestampOffset}; g.q.h7=function(v){v=this.t7.h7(v===void 0?!1:v);return PI(v,this.start,this.end)}; g.q.ow=function(){return this.t7.ow()}; g.q.tL=function(){return this.t7.tL()}; g.q.bj=function(){return this.t7.bj()}; g.q.TM=function(){return this.t7.TM()}; g.q.lk=function(){this.t7.lk()}; g.q.Ca=function(v){return this.t7.Ca(v)}; g.q.hB=function(){return this.t7.hB()}; g.q.I9=function(){return this.t7.I9()}; g.q.lF=function(){return this.t7.lF()}; g.q.oV=function(v,J,G){this.t7.oV(v,J,G)}; g.q.TZ=function(v,J,G){this.t7.TZ(v,J,G)}; g.q.aX=function(v,J){return this.t7.aX(v,J)}; g.q.supports=function(v){return this.t7.supports(v)}; g.q.x7=function(){return this.t7.x7()}; g.q.isView=function(){return!0}; g.q.WZ=function(){return this.t7.WZ()?this.isActive:!1}; g.q.isLocked=function(){return this.V7&&!this.isActive}; g.q.u9=function(v){v=this.t7.u9(v);v.vw=this.start+"-"+this.end;return v}; g.q.BY=function(){return this.t7.BY()}; g.q.JT=function(){return this.t7.JT()}; g.q.M6=function(){return this.t7.M6()}; g.q.X4=function(){this.t7.GN(this.vu);g.qU.prototype.X4.call(this)};var sc=!1;g.z(BI,g.qU);g.q=BI.prototype;g.q.appendBuffer=function(v,J,G){this.P9=!1;G&&(this.C1=G);if(v.length){var K;((K=this.JR)==null?0:K.appendBuffer)?this.JR.appendBuffer(v):this.JR?this.JR.append(v):this.Va&&this.Va.webkitSourceAppend(this.id,v)}J&&(J.isEncrypted()&&(this.Jc=this.C1),J.type===3&&(this.dM=J),this.J$.push(J.vO()),this.J$.length>4&&this.J$.shift());this.vX&&(this.vX.length>=2||v.length>1048576?delete this.vX:this.vX.push(v))}; g.q.abort=function(){try{this.JR?this.JR.abort():this.Va&&this.Va.webkitSourceAbort(this.id)}catch(v){exj&&g.fW(new g.Mk("Error while abort the source buffer: "+v.name+", "+v.message))}this.C1=this.dM=null}; g.q.remove=function(v,J,G){this.P9=!1;var K;if((K=this.JR)==null?0:K.remove)G&&G({b:V4(this.h7()),s:v,e:J}),this.JR.remove(v,J)}; g.q.removeAll=function(){this.remove(this.CI(),this.J2())}; g.q.clear=function(){this.bj()||(this.abort(),this.removeAll(),this.Jc=this.C1=this.dM=null,this.appendWindowStart=this.timestampOffset=0,this.Fk=Kt([],[]),this.P9=!1,this.vX=tB?[]:void 0,this.fg=!0)}; g.q.CI=function(){if(sc&&this.Vk)return this.appendWindowStart;var v;return((v=this.JR)==null?void 0:v.appendWindowStart)||0}; g.q.J2=function(){var v;return((v=this.JR)==null?void 0:v.appendWindowEnd)||0}; g.q.uc=function(v,J){this.JR&&(sc&&this.Vk?(this.appendWindowStart=v,this.JR.appendWindowEnd=J):v>this.CI()?(this.JR.appendWindowEnd=J,this.JR.appendWindowStart=v):(this.JR.appendWindowStart=v,this.JR.appendWindowEnd=J))}; g.q.q6=function(){return this.timestampOffset}; g.q.S_=function(v){sc?this.timestampOffset=v:this.supports(1)&&(this.JR.timestampOffset=v)}; g.q.B$=function(){return sc?this.timestampOffset:this.supports(1)?this.JR.timestampOffset:0}; g.q.h7=function(v){if(v===void 0?0:v)return this.P9||this.ow()||(this.Fk=this.h7(!1),this.P9=!0),this.Fk;try{return this.JR?this.JR.buffered:this.Va?this.Va.webkitSourceBuffered(this.id):Kt([0],[Infinity])}catch(J){return Kt([],[])}}; g.q.ow=function(){var v;return((v=this.JR)==null?void 0:v.updating)||!1}; g.q.bj=function(){return this.fg}; g.q.TM=function(){return!this.fg&&this.ow()}; g.q.lk=function(){this.fg=!1}; g.q.Ca=function(v){var J=v==null?void 0:v.aY;v=v==null?void 0:v.containerType;return!J&&!v||J===this.aY&&v===this.containerType}; g.q.hB=function(){return this.C1}; g.q.I9=function(){return this.Jc}; g.q.aX=function(v,J){return this.containerType!==v||this.aY!==J}; g.q.oV=function(v,J,G){if(this.containerType!==v||G&&this.aX(v,G))this.supports(4),Ij()&&this.JR.changeType(J),G&&(this.aY=G);this.containerType=v}; g.q.TZ=function(v,J,G){this.containerType&&this.aX(v,J)&&Ij()&&this.JR.changeType(G);this.containerType=v;this.aY=J}; g.q.x7=function(){return this.dM}; g.q.isView=function(){return!1}; g.q.supports=function(v){switch(v){case 1:var J;return((J=this.JR)==null?void 0:J.timestampOffset)!==void 0;case 0:var G;return!((G=this.JR)==null||!G.appendBuffer);case 2:var K;return!((K=this.JR)==null||!K.remove);case 3:var V,Y;return!!(((V=this.JR)==null?0:V.addEventListener)&&((Y=this.JR)==null?0:Y.removeEventListener));case 4:return!(!this.JR||!this.JR.changeType);default:return!1}}; g.q.WZ=function(){return!this.ow()}; g.q.isLocked=function(){return!1}; g.q.u9=function(v){v.to=this.B$();v.up=this.ow();var J,G=((J=this.JR)==null?void 0:J.appendWindowStart)||0,K;J=((K=this.JR)==null?void 0:K.appendWindowEnd)||Infinity;v.aw=G.toFixed(3)+"-"+J.toFixed(3);return v}; g.q.tL=function(){var v;return((v=this.JR)==null?void 0:v.writeHead)||0}; g.q.BY=function(){for(var v={},J=0;J=7&&rkB(this,function(){g.By(function(){Lkm(v,v.getCurrentTime(),0)},500)}); return J}; g.q.seekTo=function(v){this.Rw()>0&&(To&&fC<4&&(v=Math.max(.1,v)),this.setCurrentTime(v))}; g.q.Yu=function(){if(!this.X&&this.K7)if(this.K7.J)try{var v;HI(this,{l:"mer",sr:(v=this.HH)==null?void 0:v.jD(),rs:Q4(this.K7)});this.K7.clear();this.X=this.K7;this.K7=void 0}catch(J){v=new g.Mk("Error while clearing Media Source in MediaElement: "+J.name+", "+J.message),g.fW(v),this.stopVideo()}else this.stopVideo()}; g.q.stopVideo=function(){var v=this;if(!this.X){var J;(J=this.K7)==null||lzX(J);if(rHw){if(!this.Z){var G=new Ct;G.then(void 0,function(){}); this.Z=G;qW8&&this.pause();g.By(function(){v.Z===G&&($N(v),G.resolve())},200)}}else $N(this)}}; g.q.k$=function(){var v=this.dK();return EP(v)>0&&this.getDuration()?qG(v,this.getCurrentTime()):0}; g.q.EZ=function(){var v=this.getDuration();return v===Infinity?1:v?this.k$()/v:0}; g.q.u9=function(){try{var v=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:V4(this.TO(),",",3),vbu:V4(this.dK()),vbs:V4(this.Go()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Rw(),vns:""+this.WY(),vec:""+this.t3(),vemsg:this.qL(),vvol:""+this.getVolume(),vdom:""+ +this.QC(),vsrc:""+ +!!this.KJ(),vw:""+v.width,vh:""+v.height}}catch(J){return{}}}; g.q.hasError=function(){return this.t3()>0}; g.q.addEventListener=function(v,J){this.L.listen(v,J,!1,this);this.qM(v)}; g.q.removeEventListener=function(v,J){this.L.YL(v,J,!1,this)}; g.q.dispatchEvent=function(v){if(this.Z&&v.type==="pause")return!1;if(Eht){var J,G=((J=v.T)==null?void 0:J.timeStamp)||Infinity;J=G>performance.now()?G-Date.now()+performance.now():G;G=this.X||this.K7;if((G==null?0:G.bj())||J<=((G==null?void 0:G.j)||0)){var K;HI(this,{l:"mede",sr:(K=this.HH)==null?void 0:K.jD(),et:v.type});return!1}if(this.Yl)return HI(this,{l:"medes",et:v.type}),G&&v.type==="seeking"&&(G.j=performance.now(),this.Yl=!1),!1}return this.L.dispatchEvent(v)}; g.q.n3=function(){this.j=!1}; g.q.MM=function(){this.j=!0;this.jB(!0)}; g.q.Sc=function(){this.j&&!this.Op()&&this.jB(!0)}; g.q.Rt=function(v){return!!v&&v.ZZ()===this.ZZ()}; g.q.X4=function(){this.K&&this.removeEventListener("volumechange",this.Sc);rHw&&$N(this);g.X.prototype.X4.call(this)}; var rHw=!1,qW8=!1,Eht=!1,Odr=!1;g.q=g.JZ.prototype;g.q.isPaused=function(){return g.H(this,4)}; g.q.isPlaying=function(){return g.H(this,8)&&!g.H(this,512)&&!g.H(this,64)&&!g.H(this,2)}; g.q.isOrWillBePlaying=function(){return g.H(this,8)&&!g.H(this,2)&&!g.H(this,1024)}; g.q.isCued=function(){return g.H(this,64)&&!g.H(this,8)&&!g.H(this,4)}; g.q.isBuffering=function(){return g.H(this,1)&&!g.H(this,2)}; g.q.isError=function(){return g.H(this,128)}; g.q.isSuspended=function(){return g.H(this,512)}; g.q.Yz=function(){return g.H(this,64)&&g.H(this,4)}; g.q.toString=function(){return"PSt."+this.state.toString(16)}; var Xn={},kj=(Xn.BUFFERING="buffering-mode",Xn.CUED="cued-mode",Xn.ENDED="ended-mode",Xn.PAUSED="paused-mode",Xn.PLAYING="playing-mode",Xn.SEEKING="seeking-mode",Xn.UNSTARTED="unstarted-mode",Xn);g.z(Pf,g.X);g.q=Pf.prototype;g.q.cU=function(){return this.Z}; g.q.r_=function(){return this.slot}; g.q.UB=function(){return this.layout}; g.q.init=function(){var v=VW(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=VW(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");T1(this.layout.bd)&&QD(this.AR.get(),this.layout.layoutId,{KH:J,Of:v,listener:this,SU:this.SK()});gBw(this.F4.get(),this);v=this.gp;J=this.layout.layoutId;var G={SU:this.SK()};v.T.set(J,G);this.y6()}; g.q.Er=function(){}; g.q.release=function(){T1(this.layout.bd)&&Wl(this.AR.get(),this.layout.layoutId);Xct(this.F4.get(),this);this.gp.T.delete(this.layout.layoutId);this.jG()}; g.q.lO=function(){}; g.q.u8=function(){}; g.q.startRendering=function(v){R$(Dk(this));if(tZ(this,v)){var J=this.T;lD(J.params.Z2.cH.get(),!0)&&VrU(J,"p_sr",{});Bf(this);this.Pt(v);this.SK()||this.Uo(!1)}}; g.q.w_=function(v,J){if(J.layoutId===this.layout.layoutId){this.HO="rendering";this.X=this.L7.get().isMuted()||this.L7.get().getVolume()===0;this.P$("impression");this.P$("start");if(this.L7.get().isMuted()){sC(this,"mute");var G;v=((G=eP(this))==null?void 0:G.muteCommands)||[];FF(this.Yy.get(),v,this.layout.layoutId)}if(this.L7.get().isFullscreen()){this.LJ("fullscreen");var K;G=((K=eP(this))==null?void 0:K.fullscreenCommands)||[];FF(this.Yy.get(),G,this.layout.layoutId)}this.SK()||(K=this.Su.get(), K.Z&&!K.X&&(K.J=!1,K.X=!0,K.actionType!=="ad_to_video"&&(HB("pbs",void 0,K.actionType),g.dx("finalize_all_timelines")&&A$L(K.actionType))));this.Ld(1);this.GX(J);var V;J=((V=eP(this))==null?void 0:V.impressionCommands)||[];FF(this.Yy.get(),J,this.layout.layoutId)}}; g.q.jC=function(v,J,G){this.K={AE:3,xd:v==="load_timeout"?402:400,errorMessage:J.message};this.P$("error");var K;v=((K=eP(this))==null?void 0:K.errorCommands)||[];FF(this.Yy.get(),v,this.layout.layoutId);this.SK()||this.WU.Z0(this.slot,this.layout,J,G)}; g.q.p6=function(){if(this.HO==="rendering"){sC(this,"pause");var v,J=((v=eP(this))==null?void 0:v.pauseCommands)||[];FF(this.Yy.get(),J,this.layout.layoutId);this.Ld(2)}}; g.q.Zi=function(){if(this.HO==="rendering"){sC(this,"resume");var v,J=((v=eP(this))==null?void 0:v.resumeCommands)||[];FF(this.Yy.get(),J,this.layout.layoutId)}}; g.q.fU=function(v,J){J=J===void 0?!1:J;if(this.HO==="rendering"){var G={currentTimeSec:v,flush:J};TL(this.T,"p_ip",G);mp(this.PH,v*1E3,J);this.X||mp(this.PH,v*1E3,J===void 0?!1:J);var K=this.CX();if(K){K/=1E3;if(v>=K*.25||J)this.P$("first_quartile"),TL(this.T,"p_fq",G);if(v>=K*.5||J)this.P$("midpoint"),TL(this.T,"p_sq",G);if(v>=K*.75||J)this.P$("third_quartile"),TL(this.T,"p_tq",G);this.cH.get().S.B().experiments.OB("enable_progress_command_flush_on_kabuki")?Nq(this.L,v*1E3,J):Nq(this.L,v*1E3,Zdw(this)? J:!1)}}}; g.q.wE=function(){var v;return((v=Is(this.C7.get(),1))==null?void 0:v.clientPlaybackNonce)||""}; g.q.HN=function(v,J){v.layoutId!==this.layout.layoutId?this.WU.Z0(this.slot,v,new o_("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.q.s$=function(v,J,G){if(J.layoutId===this.layout.layoutId)switch(this.HO="not_rendering",this.layoutExitReason=void 0,this.SK()||(v=G!=="normal"||this.position+1===this.j)&&this.Uo(v),this.eg(G),this.Ld(0),G){case "abandoned":if(Sb(this.PH,"impression")){var K,V=((K=eP(this))==null?void 0:K.abandonCommands)||[];FF(this.Yy.get(),V,this.layout.layoutId)}break;case "normal":K=((V=eP(this))==null?void 0:V.completeCommands)||[];FF(this.Yy.get(),K,this.layout.layoutId);break;case "skipped":var Y;K=((Y= eP(this))==null?void 0:Y.skipCommands)||[];FF(this.Yy.get(),K,this.layout.layoutId)}}; g.q.KX=function(){return this.layout.layoutId}; g.q.rR=function(){return this.K}; g.q.Q3=function(){if(this.HO==="rendering"){this.PH.P$("active_view_measurable");var v,J=((v=eP(this))==null?void 0:v.activeViewMeasurableCommands)||[];FF(this.Yy.get(),J,this.layout.layoutId)}}; g.q.Tq=function(){if(this.HO==="rendering"){this.PH.P$("active_view_fully_viewable_audible_half_duration");var v,J=((v=eP(this))==null?void 0:v.activeViewFullyViewableAudibleHalfDurationCommands)||[];FF(this.Yy.get(),J,this.layout.layoutId)}}; g.q.tY=function(){if(this.HO==="rendering"){this.PH.P$("active_view_viewable");var v,J=((v=eP(this))==null?void 0:v.activeViewViewableCommands)||[];FF(this.Yy.get(),J,this.layout.layoutId)}}; g.q.uH=function(){if(this.HO==="rendering"){this.PH.P$("audio_audible");var v,J=((v=eP(this))==null?void 0:v.activeViewAudioAudibleCommands)||[];FF(this.Yy.get(),J,this.layout.layoutId)}}; g.q.oU=function(){if(this.HO==="rendering"){this.PH.P$("audio_measurable");var v,J=((v=eP(this))==null?void 0:v.activeViewAudioMeasurableCommands)||[];FF(this.Yy.get(),J,this.layout.layoutId)}}; g.q.Uo=function(v){this.Su.get().Uo(VW(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,v,this.position,this.j,!1)}; g.q.onFullscreenToggled=function(v){if(this.HO==="rendering")if(v){this.LJ("fullscreen");var J,G=((J=eP(this))==null?void 0:J.fullscreenCommands)||[];FF(this.Yy.get(),G,this.layout.layoutId)}else this.LJ("end_fullscreen"),J=((G=eP(this))==null?void 0:G.endFullscreenCommands)||[],FF(this.Yy.get(),J,this.layout.layoutId)}; g.q.onVolumeChange=function(){if(this.HO==="rendering")if(this.L7.get().isMuted()){sC(this,"mute");var v,J=((v=eP(this))==null?void 0:v.muteCommands)||[];FF(this.Yy.get(),J,this.layout.layoutId)}else sC(this,"unmute"),v=((J=eP(this))==null?void 0:J.unmuteCommands)||[],FF(this.Yy.get(),v,this.layout.layoutId)}; g.q.ip=function(){}; g.q.ov=function(){}; g.q.YR=function(){}; g.q.HC=function(){}; g.q.Qt=function(){}; g.q.LJ=function(v){this.PH.LJ(v,!this.X)}; g.q.P$=function(v){this.PH.P$(v,!this.X)}; g.q.SK=function(){var v=VW(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return v===void 0?(Ps("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.cH.get().SK(v)};g.z(LB,Pf);g.q=LB.prototype;g.q.y6=function(){}; g.q.jG=function(){var v=this.F4.get();v.Jp===this&&(v.Jp=null);this.W1.stop()}; g.q.lO=function(){this.W1.stop();Pf.prototype.p6.call(this)}; g.q.u8=function(){wp(this);Pf.prototype.Zi.call(this)}; g.q.CX=function(){return VW(this.UB().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.q.A7=function(v,J){var G=this;this.HN(v,function(){G.HO!=="rendering_stop_requested"&&(G.HO="rendering_stop_requested",G.layoutExitReason=J,hZ(G,J),G.W1.stop())})}; g.q.kL=function(){var v=Date.now(),J=v-this.Dr;this.Dr=v;this.CZ+=J;this.CZ>=this.CX()?this.AQ():(this.fU(this.CZ/1E3),yI(this,this.CZ))}; g.q.eg=function(){}; g.q.Ho=function(){}; g.z(OC,LB);g.q=OC.prototype;g.q.lQ=function(v){if(this.HO!=="not_rendering"){v=zt(this,v);var J=this.L7.get().getPresentingPlayerType()===2;this.HO==="rendering_start_requested"?J&&PE(v)&&this.wD():J?g.Bs(v,2)?Ps("Receive player ended event during MediaBreak",this.r_(),this.UB()):nB(this,v):this.zo()}}; g.q.Pt=function(){SUm(this);Wnm(this.L7.get());this.F4.get().Jp=this;Au("pbp")||Au("pbs")||HB("pbp");Au("pbp","watch")||Au("pbs","watch")||HB("pbp",void 0,"watch");this.wD()}; g.q.GX=function(v){this.Su.get();var J=VW(v.clientMetadata,"metadata_type_ad_placement_config").kind,G=this.position===0;v=VW(v.clientMetadata,"metadata_type_linked_in_player_layout_type");v={adBreakType:dp(J),adType:Hdj(v)};var K=void 0;G?J!=="AD_PLACEMENT_KIND_START"&&(K="video_to_ad"):K="ad_to_ad";cB("ad_mbs",void 0,K);g.N0(v,K);wp(this)}; g.q.zo=function(){this.VN()}; g.q.AQ=function(){gpm(this);this.VN()}; g.z(UC,LB);g.q=UC.prototype;g.q.lQ=function(v){this.HO!=="not_rendering"&&(v=zt(this,v),nB(this,v))}; g.q.Pt=function(){Ps("Not used in SSAP")}; g.q.GX=function(){wp(this)}; g.q.zo=function(){Ps("Not used in SSAP")}; g.q.AQ=function(){gpm(this);this.WU.Zd(this.r_(),this.UB(),"normal")}; g.z(xN,UC);xN.prototype.A7=function(v,J){var G=this;this.HN(v,function(){hs(G.Z,J)&&(G.HO="rendering_stop_requested",G.layoutExitReason=J,hZ(G,J),G.W1.stop())})}; xN.prototype.startRendering=function(v){R$(Dk(this));tZ(this,v)&&(Bf(this),this.F4.get().Jp=this)};g.z(fB,Pf);g.q=fB.prototype;g.q.zo=function(){this.VN()}; g.q.lQ=function(v){if(this.HO!=="not_rendering"){v=zt(this,v);var J=this.L7.get().getPresentingPlayerType()===2;this.HO==="rendering_start_requested"?J&&PE(v)&&this.wD():!J||g.Bs(v,2)?this.VN():nB(this,v)}}; g.q.y6=function(){VW(this.UB().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=VW(this.UB().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.q.jG=function(){VW(this.UB().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.QR){var v=this.context.Z2,J=this.QR,G=this.UB().layoutId;if(lD(v.cH.get(),!0)){var K={};v.H$("mccru",(K.cid=J,K.p_ac=G,K))}this.RH.get().removeCueRange(this.QR)}this.QR=void 0;var V;(V=this.XT)==null||V.dispose();this.CR&&this.CR.dispose()}; g.q.Pt=function(v){var J=m$(this.cH.get()),G=SP(this.cH.get());if(J&&G&&!this.SK()){G=VW(v.clientMetadata,"metadata_type_preload_player_vars");var K=g.DI(this.cH.get().S.B().experiments,"html5_preload_wait_time_secs");G&&this.CR&&this.CR.start(K*1E3)}ckB(this,v);SUm(this);J?(G=this.fK.get(),v=VW(v.clientMetadata,"metadata_type_player_vars"),G.S.loadVideoByPlayerVars(v,!1,2)):oij(this.fK.get(),VW(v.clientMetadata,"metadata_type_player_vars"));var V;(V=this.XT)==null||V.start();J||this.fK.get().S.playVideo(2)}; g.q.GX=function(){var v;(v=this.XT)==null||v.stop();this.QR="adcompletioncuerange:"+this.UB().layoutId;this.RH.get().addCueRange(this.QR,0x7ffffffffffff,0x8000000000000,!1,this,2,2);v=this.context.Z2;var J=this.QR,G=this.UB().layoutId;if(lD(v.cH.get(),!0)){var K={};v.H$("mccr",(K.cid=J,K.p_ac=G,K))}(this.adCpn=m18(this))||Ps("Media layout confirmed started, but ad CPN not set.");this.hP.get().TN("onAdStart",this.adCpn);this.iK=Date.now()}; g.q.CX=function(){var v;return(v=Is(this.C7.get(),2))==null?void 0:v.pc}; g.q.Il=function(){this.PH.LJ("clickthrough")}; g.q.A7=function(v,J){var G=this;this.HN(v,function(){if(G.HO!=="rendering_stop_requested"){G.HO="rendering_stop_requested";G.layoutExitReason=J;hZ(G,J);var K;(K=G.XT)==null||K.stop();G.CR&&G.CR.stop();Nyr(G)}})}; g.q.onCueRangeEnter=function(v){if(v!==this.QR)Ps("Received CueRangeEnter signal for unknown layout.",this.r_(),this.UB(),{cueRangeId:v});else{var J=this.context.Z2,G=this.UB().layoutId;if(lD(J.cH.get(),!0)){var K={};J.H$("mccre",(K.cid=v,K.p_ac=G,K))}this.RH.get().removeCueRange(this.QR);this.QR=void 0;W5(this.context.cH.get(),"html5_ssap_flush_at_stop_rendering")&&this.SK()||(v=VW(this.UB().clientMetadata,"metadata_type_video_length_seconds"),this.fU(v,!0),this.P$("complete"))}}; g.q.eg=function(v){v!=="abandoned"&&this.hP.get().TN("onAdComplete");this.hP.get().TN("onAdEnd",this.adCpn)}; g.q.onCueRangeExit=function(){}; g.q.Ho=function(v){this.HO==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&v>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.L7.get().qO(!0),this.fU(v))}; g.q.fU=function(v,J){Pf.prototype.fU.call(this,v,J===void 0?!1:J);J=Date.now()-this.iK;var G=v*1E3,K={contentCpn:this.wE(),adCpn:m18(this)};if(v-this.Aq>=5){var V=J=2||(this.aH.A7(this.layout,J),v=W5(this.params.context.cH.get(),"html5_ssap_pass_transition_reason")&&J==="abandoned",this.JL()&&!v&&(W5(this.params.context.cH.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(J)||Ps("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:J})),this.pK.get().finishSegmentByCpn(this.layout.layoutId, Is(this.C7.get(),1).clientPlaybackNonce,lw(J,this.params.context.cH))),this.L7.get().removeListener(this),this.LB()&&zL(this.aH.cU())&&this.vn.s$(this.slot,this.layout,this.aH.cU().T))}; g.q.oX=function(v,J,G){op8({cpn:v,s9:this.C7.get(),Jn:!0});this.UB().layoutId!==v||W5(this.params.context.cH.get(),"html5_ssap_pass_transition_reason")&&G===5||(this.aH.cU().currentState<2&&(v=Tt(G,this.params.context.cH),v==="error"?this.vn.Z0(this.slot,this.layout,new o_("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:G},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):FL(this.q1, this.layout,v)),W5(this.params.context.cH.get(),"html5_ssap_exit_without_waiting_for_transition")||this.vn.s$(this.slot,this.layout,this.aH.cU().T))};g.z(kN,g.X);g.q=kN.prototype;g.q.r_=function(){return this.slot}; g.q.UB=function(){return this.layout}; g.q.O7=function(){}; g.q.t0=function(){return this.sJ[this.D$]}; g.q.NP=function(){return this.D$}; g.q.lO=function(v,J){var G=this.t0();J.layoutId!==NH(G,v,J)?Ps("pauseLayout for a PlayerBytes layout that is not currently active",v,J):G.lO()}; g.q.u8=function(v,J){var G=this.t0();J.layoutId!==NH(G,v,J)?Ps("resumeLayout for a PlayerBytes layout that is not currently active",v,J):G.u8()}; g.q.ge=function(v,J){var G=this.t0();bdB(this,v,J);jwB(G,v,J)&&this.qe(G.r_(),G.UB(),"skipped")}; g.q.Mk=function(v,J){var G=this.t0();iVs(this);$0X(G,v,J)&&(v=vnt(this,G,v,J),v!==void 0&&(this.SK()?Ps("Should not happen. Should delete"):G_w(this,G.r_(),G.UB(),v)))}; g.q.hM=function(v,J){var G=Object.assign({},cf(this),{layoutId:J.layoutId}),K=G.layoutId,V=G.Jn;if(G.SU){var Y={};sj(G.s9,"wrse",(Y.ec=K,Y.is=V,Y.ctp=df(K),Y))}wk(this.OV,v,J)}; g.q.w_=function(v,J){var G;(G=this.t0())==null||G.w_(v,J)}; g.q.s$=function(v,J,G){J.layoutId===this.UB().layoutId&&(this.ZW=!1,hQ(this.Qy(),this));var K;(K=this.t0())==null||K.s$(v,J,G)}; g.q.Ho=function(v){var J;(J=this.t0())==null||J.Ho(v)}; g.q.cq=function(v,J,G){this.NP()===-1&&(this.callback.w_(this.slot,this.layout),this.D$++);var K=this.t0();K?(K.jC(v,J,G),this.SK()&&this.callback.Z0(this.slot,this.layout,J,G)):Ps("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.NP()),layoutId:this.UB().layoutId})}; g.q.onFullscreenToggled=function(v){var J;(J=this.t0())==null||J.onFullscreenToggled(v)}; g.q.ip=function(v){var J;(J=this.t0())==null||J.ip(v)}; g.q.YR=function(v){var J;(J=this.t0())==null||J.YR(v)}; g.q.onVolumeChange=function(){var v;(v=this.t0())==null||v.onVolumeChange()}; g.q.fk=function(v,J,G){O6(this.OV,v,J,G)}; g.q.Gu=function(v){v.startRendering(v.UB())}; g.q.init=function(){var v=VW(this.UB().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");v&&(v.current=this);if(this.sJ.length<1)throw new Q("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.sJ.length)});if(v=VW(this.UB().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))v.current=this;v=g.n(this.sJ);for(var J=v.next();!J.done;J=v.next())J=J.value,J.init(),pXw(this.OV,this.slot,J.UB()),Ls2(this.OV,this.slot,J.UB()); if(this.SK())for(this.C7.get().addListener(this),jAU(CdB(this),this.C7.get()),v=CdB(this),v=g.n(v),J=v.next();!J.done;J=v.next())this.g3(J.value)}; g.q.g3=function(v){var J=VW(v.clientMetadata,"metadata_type_player_vars");J?(v.layoutType!=="LAYOUT_TYPE_MEDIA"&&Ps("Non-video ad contains playerVars",this.slot,v),this.fK.get().addPlayerResponseForAssociation({playerVars:J})):(v=MrL(v),this.fK.get().addPlayerResponseForAssociation({o9:v}))}; g.q.release=function(){var v=VW(this.UB().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");v&&(v.current=null);if(v=VW(this.UB().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))v.current=null;v=g.n(this.sJ);for(var J=v.next();!J.done;J=v.next())J=J.value,yt2(this.OV,this.slot,J.UB()),J.release();this.SK()&&(this.C7.get().removeListener(this),idf())}; g.q.HN=function(v){return v.layoutId!==this.UB().layoutId?(this.callback.Z0(this.r_(),v,new o_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.UB().layoutId+("and LayoutType: "+this.UB().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.q.jN=function(){this.L7.get().addListener(this);I_(this.Qy(),this)}; g.q.lQ=function(v){if(v.state.isError()){var J,G;this.cq((J=v.state.c8)==null?void 0:J.errorCode,new o_("There was a player error during this media layout.",{playerErrorCode:(G=v.state.c8)==null?void 0:G.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(J=this.t0())&&J.lQ(v)}; g.q.SK=function(){var v=VW(this.r_().clientMetadata,"metadata_type_eligible_for_ssap");return v===void 0?(Ps("Expected SSAP eligibility in PlayerBytes slots",this.r_(),this.UB()),!1):this.cH.get().SK(v)}; g.q.ov=function(){}; g.q.fq=function(){}; g.q.aK=function(){}; g.q.P8=function(){}; g.q.mW=function(){}; g.q.Ge=function(){}; g.q.Os=function(){}; g.q.W8=function(){}; g.q.Yk=function(){}; g.q.J0=function(){}; g.q.WG=function(){}; g.q.HC=function(){}; g.q.Qt=function(){}; g.z(Hf,kN);g.q=Hf.prototype;g.q.wU=function(v,J,G){this.qe(v,J,G)}; g.q.Nx=function(v,J){this.qe(v,J,"error")}; g.q.qe=function(v,J,G){var K=this;Juj(this,v,J,G,function(){as(K,K.NP()+1)})}; g.q.startRendering=function(v){this.HN(v)&&(this.jN(),EBm(this.Su.get()),BNX(this.cH.get())||Wnm(this.L7.get()),this.NP()===-1&&as(this,this.NP()+1))}; g.q.A7=function(v,J){var G=this;this.ZW=!0;this.NP()===this.sJ.length?this.callback.s$(this.slot,this.layout,J):(v=this.t0(),v.A7(v.UB(),J),this.Rp=function(){G.callback.s$(G.slot,G.layout,J)}); this.L7.get().S.JY();oij(this.fK.get(),{});v=MQ(this.L7.get(),1);v.isPaused()&&!g.H(v,2)&&this.L7.get().playVideo();this.L7.get().removeListener(this);this.ZW&&onw(this)}; g.q.oX=function(){}; g.q.uy=function(){}; g.q.Zd=function(){}; g.z(MH,kN);g.q=MH.prototype;g.q.wU=function(v,J,G){v=Object.assign({},cf(this),{layoutId:J.layoutId,layoutExitReason:G});J=v.layoutId;G=v.layoutExitReason;var K={};sj(v.s9,"prse",(K.xc=J,K.ler=G,K.ctp=df(J),K))}; g.q.Nx=function(){Ps("onSubLayoutError in SSAP")}; g.q.qe=function(){Ps("exitSubLayoutAndPlayNext in SSAP")}; g.q.t0=function(){return this.JI}; g.q.NP=function(){var v=this;return this.sJ.findIndex(function(J){var G;return J.UB().layoutId===((G=v.JI)==null?void 0:G.UB().layoutId)})}; g.q.Gu=function(v){er(this.JI===void 0,"replacing another adapter");this.JI=v;v.startRendering(v.UB())}; g.q.fk=function(v,J,G){O6(this.OV,v,J,G);var K;er(J.layoutId===((K=this.JI)==null?void 0:K.UB().layoutId),"currentAdapter does not match exiting layout",{slot:v?"slot: "+v.slotType:"",subLayout:EU(J)})&&(this.JI=void 0)}; g.q.release=function(){kN.prototype.release.call(this);er(this.JI===void 0,"currentAdapter is still active during release");this.JI=void 0}; g.q.JL=function(){return this.L7.get().getPresentingPlayerType()===2}; g.q.A7=function(v,J){function G(){QI(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(J)||Ps("Composite stopRendering: Unexpected layout exit reason",this.slot,v,{layoutExitReason:J}))} function K(){this.JI&&Wf(this,this.JI,J);if(this.JL()&&(!QI(this)||J!=="abandoned")){G.call(this);var Y;var r=((Y=this.C7.get().S.getVideoData())==null?void 0:Y.clientPlaybackNonce)||"";Y=Is(this.C7.get(),1).clientPlaybackNonce;this.pK.get().finishSegmentByCpn(r,Y,lw(J,this.cH))}Kft(this,J)} function V(){if(this.JI){var Y=this.JI;Y.cU().currentState<2&&Y.A7(Y.UB(),J);Y=QI(this)&&J==="abandoned";this.JL()&&!Y&&(G.call(this),this.pK.get().finishSegmentByCpn(this.JI.UB().layoutId,Is(this.C7.get(),1).clientPlaybackNonce,lw(J,this.cH)))}} er(v.layoutId===this.UB().layoutId,"StopRendering for wrong layout")&&hs(this.Bn.X,J)&&(this.LB()?K.call(this):V.call(this))}; g.q.s$=function(v,J,G){kN.prototype.s$.call(this,v,J,G);J.layoutId===this.UB().layoutId&&this.L7.get().removeListener(this)}; g.q.wE=function(){return Is(this.C7.get(),1).clientPlaybackNonce}; g.q.oX=function(v,J,G){op8(Object.assign({},cf(this),{cpn:v}));if(!QI(this)||G!==5)if(this.LB()){if(this.JI&&this.JI.UB().layoutId!==J){var K=this.JI.UB().layoutId;K!==v&&Ps("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:K,exitingCpn:v,enteringCpn:J});v=Tt(G,this.cH);Wf(this,this.JI,v)}else this.JI&&Ps("onClipExited: active layout is entering again");J===this.wE()&&YQB(this,G)}else{if(this.JI&&this.JI.UB().layoutId===v)Vfw(this,this.JI,G);else{var V;Ps("Exiting cpn does not match active cpn", this.slot,(K=this.JI)==null?void 0:K.UB(),{exitingCpn:v,transitionReason:G,activeCpn:(V=this.JI)==null?void 0:V.UB().layoutId})}J===this.wE()&&(this.JI!==void 0&&(Ps("active adapter is not properly exited",this.slot,this.layout,{activeLayout:EU(this.JI.UB())}),Vfw(this,this.JI,G)),YQB(this,G),Kft(this,this.Bn.X.T))}}; g.q.LB=function(){return W5(this.cH.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.q.startRendering=function(v){this.HN(v)&&(v=this.Bn,er(v.T===1,"tickStartRendering: state is not initial"),v.T=2,this.jN())}; g.q.uy=function(v){G$B(Object.assign({},cf(this),{cpn:v}));var J=this.sJ.find(function(G){return G.UB().layoutId===v}); J?(this.Bn.T!==2&&(Xb2(this.CY,this.slot.slotId),er(this.Bn.T===2,"Expect started"),this.callback.w_(this.slot,this.layout)),this.Gu(J),wk(this.OV,this.slot,J.UB())):ruL(this,v)}; g.q.ge=function(v,J){bdB(this,v,J);var G=this.t0();G?jwB(G,v,J)&&qQB(this,"skipped"):Ens(this,"onSkipRequested")}; g.q.Mk=function(v,J){var G;a:{if(G=this.t0()){if(iVs(this),$0X(G,v,J)&&(v=vnt(this,G,v,J),v!==void 0)){G={CS:G,fI7:this.sJ[v]};break a}}else Ens(this,"SkipWithAdPodSkip");G=void 0}if(v=G)G=v.CS,J=v.fI7,v=G.UB().layoutId,this.LB()?Wf(this,G,"skipped"):G.A7(G.UB(),"skipped"),G=J.UB().layoutId,this.pK.get().finishSegmentByCpn(v,G,lw("skipped",this.cH))}; g.q.hM=function(){Ps("Not used in html5_ssap_fix_layout_exit")}; g.q.lQ=function(v){var J;(J=this.t0())==null||J.lQ(v)}; g.q.cq=function(){Ps("Not used in html5_ssap_fix_layout_exit")}; g.q.Zd=function(v,J,G){var K;if(((K=this.t0())==null?void 0:K.UB().layoutId)!==J.layoutId)return void Ps("requestToExitSubLayout: wrong layout");qQB(this,G)};g.z(CB,g.X);g.q=CB.prototype;g.q.r_=function(){return this.aH.r_()}; g.q.UB=function(){return this.aH.UB()}; g.q.init=function(){var v=VW(this.UB().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");v&&(v.current=this);this.y6()}; g.q.y6=function(){this.aH.init()}; g.q.release=function(){var v=VW(this.UB().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");v&&(v.current=null);this.jG()}; g.q.jG=function(){this.aH.release()}; g.q.lO=function(){this.aH.lO()}; g.q.u8=function(){this.aH.u8()}; g.q.ge=function(v,J){Ps("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.r_(),this.UB(),{requestingSlot:v,requestingLayout:J})}; g.q.startRendering=function(v){v.layoutId!==this.UB().layoutId?this.callback.Z0(this.r_(),v,new o_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.UB().layoutId+("and LayoutType: "+this.UB().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.L7.get().addListener(this),I_(this.Qy(),this),EBm(this.Su.get()),BNX(this.cH.get())||Wnm(this.L7.get()),this.aH.startRendering(v))}; g.q.A7=function(v,J){this.ZW=!0;this.aH.A7(v,J);this.L7.get().S.JY();oij(this.fK.get(),{});v=MQ(this.L7.get(),1);v.isPaused()&&!g.H(v,2)&&this.L7.get().playVideo();this.L7.get().removeListener(this);this.ZW&&this.aH.zo()}; g.q.w_=function(v,J){this.aH.w_(v,J)}; g.q.s$=function(v,J,G){J.layoutId===this.UB().layoutId&&(this.ZW=!1,hQ(this.Qy(),this));this.aH.s$(v,J,G);J.layoutId===this.UB().layoutId&&AZ(this.Su.get())}; g.q.Ho=function(v){this.aH.Ho(v)}; g.q.lQ=function(v){if(v.state.isError()){var J,G;this.cq((J=v.state.c8)==null?void 0:J.errorCode,new o_("There was a player error during this media layout.",{playerErrorCode:(G=v.state.c8)==null?void 0:G.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.aH.lQ(v)}; g.q.cq=function(v,J,G){this.aH.jC(v,J,G)}; g.q.onFullscreenToggled=function(v){this.aH.onFullscreenToggled(v)}; g.q.ip=function(v){this.aH.ip(v)}; g.q.YR=function(v){this.aH.YR(v)}; g.q.onVolumeChange=function(){this.aH.onVolumeChange()}; g.q.ov=function(){}; g.q.fq=function(){}; g.q.aK=function(){}; g.q.P8=function(){}; g.q.mW=function(){}; g.q.Ge=function(){}; g.q.Os=function(){}; g.q.W8=function(){}; g.q.Yk=function(){}; g.q.J0=function(){}; g.q.WG=function(){}; g.q.HC=function(){}; g.q.Qt=function(){};g.q=bw.prototype;g.q.r_=function(){return this.slot}; g.q.UB=function(){return this.layout}; g.q.init=function(){this.Vj.get().addListener(this);this.L7.get().addListener(this);var v=VW(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var J=VW(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.L){var G=this.Vj.get().EP.slice(-1)[0];G!==void 0&&(v=G.startSecs*1E3,J=(G.startSecs+G.ON)*1E3)}this.Er(v,J);var K;G=(K=this.C7.get().rQ)==null?void 0:K.clientPlaybackNonce;K=this.layout.C0.adClientDataEntry;j_(this.F4.get(),{daiStateTrigger:{filledAdsDurationMs:J-v,contentCpn:G, adClientData:K}});var V=this.Vj.get();V=D0w(V.Z,v,J);V!==null&&(j_(this.F4.get(),{daiStateTrigger:{filledAdsDurationMs:V-v,contentCpn:G,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:K}}),this.pK.get().WN(V,J))}; g.q.release=function(){this.jG();this.Vj.get().removeListener(this);this.L7.get().removeListener(this)}; g.q.startRendering=function(){this.Pt();this.callback.w_(this.slot,this.layout)}; g.q.A7=function(v,J){this.Bj(J);this.driftRecoveryMs!==null&&(iv(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(tfL(this)-VW(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.L7.get().S.Hi()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.s$(this.slot,this.layout,J)}; g.q.iS=function(){return!1}; g.q.Zt=function(v){var J=VW(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),G=VW(this.layout.clientMetadata,"metadata_type_layout_exit_ms");v*=1E3;if(J<=v&&v0&&U6(this.T(),J)}; g.q.aK=function(v){this.J.delete(v.slotId);for(var J=[],G=g.n(this.SX.values()),K=G.next();!K.done;K=G.next()){K=K.value;var V=K.trigger;V instanceof WD&&V.triggeringSlotId===v.slotId&&J.push(K)}J.length>0&&U6(this.T(),J)}; g.q.P8=function(v){for(var J=[],G=g.n(this.SX.values()),K=G.next();!K.done;K=G.next()){K=K.value;var V=K.trigger;V instanceof XZ&&V.slotType===v.slotType&&V.T!==v.slotId&&J.push(K)}J.length>0&&U6(this.T(),J)}; g.q.mW=function(v){this.Z.add(v.slotId);for(var J=[],G=g.n(this.SX.values()),K=G.next();!K.done;K=G.next())K=K.value,K.trigger instanceof AY&&v.slotId===K.trigger.triggeringSlotId&&J.push(K);J.length>0&&U6(this.T(),J)}; g.q.Ge=function(v){this.Z.delete(v.slotId);this.L.add(v.slotId);for(var J=[],G=g.n(this.SX.values()),K=G.next();!K.done;K=G.next())if(K=K.value,K.trigger instanceof FZ)v.slotId===K.trigger.triggeringSlotId&&J.push(K);else if(K.trigger instanceof yx){var V=K.trigger;v.slotId===V.slotId&&this.X.has(V.triggeringLayoutId)&&J.push(K)}J.length>0&&U6(this.T(),J)}; g.q.Os=function(v){for(var J=[],G=g.n(this.SX.values()),K=G.next();!K.done;K=G.next())K=K.value,K.trigger instanceof HD&&v.slotId===K.trigger.triggeringSlotId&&J.push(K);J.length>0&&U6(this.T(),J)}; g.q.W8=function(v){for(var J=[],G=g.n(this.SX.values()),K=G.next();!K.done;K=G.next())K=K.value,K.trigger instanceof MJ&&v.slotId===K.trigger.triggeringSlotId&&J.push(K);J.length>0&&U6(this.T(),J)}; g.q.Yk=function(v,J){this.j.add(J.layoutId)}; g.q.J0=function(v,J){this.j.delete(J.layoutId)}; g.q.w_=function(v,J){this.X.add(J.layoutId);for(var G=[],K=g.n(this.SX.values()),V=K.next();!V.done;V=K.next())if(V=V.value,V.trigger instanceof wB)J.layoutId===V.trigger.triggeringLayoutId&&G.push(V);else if(V.trigger instanceof gB){var Y=V.trigger;v.slotType===Y.slotType&&J.layoutType===Y.layoutType&&J.layoutId!==Y.T&&G.push(V)}else V.trigger instanceof yx&&(Y=V.trigger,J.layoutId===Y.triggeringLayoutId&&this.L.has(Y.slotId)&&G.push(V));G.length>0&&U6(this.T(),G)}; g.q.s$=function(v,J,G){this.X.delete(J.layoutId);v=[];for(var K=g.n(this.SX.values()),V=K.next();!V.done;V=K.next())if(V=V.value,V.trigger instanceof Uk&&J.layoutId===V.trigger.triggeringLayoutId&&v.push(V),V.trigger instanceof Ok){var Y=V.trigger;J.layoutId===Y.triggeringLayoutId&&Y.T.includes(G)&&v.push(V)}v.length>0&&U6(this.T(),v)}; g.q.WG=function(){}; g.q.u1=function(){this.L.clear()}; g.q.dF=function(){};g.z(g2,g.X);g2.prototype.nt=function(v,J,G,K){if(this.SX.has(J.triggerId))throw new Q("Tried to register duplicate trigger for slot.");if(!(J instanceof pi))throw new Q("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in CloseRequestedTriggerAdapter");this.SX.set(J.triggerId,new js(v,J,G,K))}; g2.prototype.FR=function(v){this.SX.delete(v.triggerId)};g.z(kR,g.X);kR.prototype.nt=function(v,J,G,K){if(this.SX.has(J.triggerId))throw new Q("Tried to register duplicate trigger for slot.");if(!(J instanceof T4||J instanceof cD))throw new Q("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.SX.set(J.triggerId,new js(v,J,G,K))}; kR.prototype.FR=function(v){this.SX.delete(v.triggerId)}; kR.prototype.u1=function(v){for(var J=[],G=J.push,K=G.apply,V=[],Y=g.n(this.SX.values()),r=Y.next();!r.done;r=Y.next())r=r.value,r.trigger instanceof T4&&r.trigger.D_===v&&V.push(r);K.call(G,J,g.l(V));G=J.push;K=G.apply;V=[];Y=g.n(this.SX.values());for(r=Y.next();!r.done;r=Y.next())r=r.value,r.trigger instanceof cD&&r.trigger.T!==v&&V.push(r);K.call(G,J,g.l(V));J.length&&U6(this.T(),J)}; kR.prototype.dF=function(v){for(var J=[],G=J.push,K=G.apply,V=[],Y=g.n(this.SX.values()),r=Y.next();!r.done;r=Y.next()){r=r.value;var E=r.trigger;E instanceof cD&&E.T===v&&V.push(r)}K.call(G,J,g.l(V));J.length&&U6(this.T(),J)};g.z(cg,g.X);g.q=cg.prototype;g.q.nt=function(v,J,G,K){if(this.SX.has(J.triggerId))throw new Q("Tried to register duplicate trigger for slot.");var V="adtriggercuerange:"+J.triggerId;if(J instanceof Z5)UY2(this,v,J,G,K,V,J.T.start,J.T.end,J.D_,J.visible);else if(J instanceof Li)UY2(this,v,J,G,K,V,0x7ffffffffffff,0x8000000000000,J.D_,J.visible);else throw new Q("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in CueRangeTriggerAdapter");}; g.q.FR=function(v){var J=this.SX.get(v.triggerId);J&&this.RH.get().removeCueRange(J.cueRangeId);this.SX.delete(v.triggerId)}; g.q.onCueRangeEnter=function(v){var J=xYX(this,v);if(J&&(J=this.SX.get(J)))if(g.H(MQ(this.L7.get()),32))this.T.add(J.cueRangeId);else{var G=J==null?void 0:J.xE.trigger;if(G instanceof Z5||G instanceof Li){if(lD(this.context.cH.get())){var K=J.xE.slot,V=J.xE.layout,Y={};this.context.Z2.H$("cre",(Y.ca=J.xE.category,Y.tt=G.triggerType,Y.st=K.slotType,Y.lt=V==null?void 0:V.layoutType,Y.cid=v,Y))}U6(this.X(),[J.xE])}}}; g.q.onCueRangeExit=function(v){(v=xYX(this,v))&&(v=this.SX.get(v))&&this.T.delete(v.cueRangeId)}; g.q.lQ=function(v){if(tk(v,16)<0){v=g.n(this.T);for(var J=v.next();!J.done;J=v.next())this.onCueRangeEnter(J.value,!0);this.T.clear()}}; g.q.fq=function(){}; g.q.aK=function(){}; g.q.P8=function(){}; g.q.mW=function(){}; g.q.Ge=function(){}; g.q.Os=function(){}; g.q.W8=function(){}; g.q.Yk=function(){}; g.q.J0=function(){}; g.q.w_=function(){}; g.q.s$=function(){}; g.q.WG=function(){}; g.q.Ho=function(){}; g.q.onFullscreenToggled=function(){}; g.q.ip=function(){}; g.q.ov=function(){}; g.q.YR=function(){}; g.q.onVolumeChange=function(){}; g.q.HC=function(){}; g.q.Qt=function(){};g.z(NW,g.X);g.q=NW.prototype; g.q.nt=function(v,J,G,K){if(this.X.has(J.triggerId)||this.Z.has(J.triggerId))throw new Q("Tried to re-register the trigger.");v=new js(v,J,G,K);if(v.trigger instanceof fi)this.X.set(v.trigger.triggerId,v);else if(v.trigger instanceof xT)this.Z.set(v.trigger.triggerId,v);else throw new Q("Incorrect TriggerType: Tried to register trigger of type "+v.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.X.has(v.trigger.triggerId)&&v.slot.slotId===this.T&&U6(this.L(),[v])}; g.q.FR=function(v){this.X.delete(v.triggerId);this.Z.delete(v.triggerId)}; g.q.O7=function(v){v=v.slotId;if(this.T!==v){var J=[];this.T!=null&&J.push.apply(J,g.l(mYm(this.Z,this.T)));v!=null&&J.push.apply(J,g.l(mYm(this.X,v)));this.T=v;J.length&&U6(this.L(),J)}}; g.q.oX=function(){}; g.q.uy=function(){};g.z(au,g.X);g.q=au.prototype;g.q.nt=function(v,J,G,K){if(this.SX.has(J.triggerId))throw new Q("Tried to register duplicate trigger for slot.");if(!(J instanceof kT))throw new Q("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.SX.set(J.triggerId,new js(v,J,G,K))}; g.q.FR=function(v){this.SX.delete(v.triggerId)}; g.q.w_=function(){}; g.q.s$=function(){}; g.q.fq=function(){}; g.q.aK=function(){}; g.q.P8=function(){}; g.q.mW=function(){}; g.q.Ge=function(){}; g.q.Os=function(){}; g.q.W8=function(){}; g.q.Yk=function(){}; g.q.J0=function(){}; g.q.WG=function(){};g.z(AX,g.X);g.q=AX.prototype;g.q.WG=function(v,J){for(var G=[],K=g.n(this.SX.values()),V=K.next();!V.done;V=K.next()){V=V.value;var Y=V.trigger;Y.opportunityType===v&&(Y.associatedSlotId&&Y.associatedSlotId!==J||G.push(V))}G.length&&U6(this.T(),G)}; g.q.nt=function(v,J,G,K){if(this.SX.has(J.triggerId))throw new Q("Tried to register duplicate trigger for slot.");if(!(J instanceof Att))throw new Q("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in OpportunityEventTriggerAdapter");this.SX.set(J.triggerId,new js(v,J,G,K))}; g.q.FR=function(v){this.SX.delete(v.triggerId)}; g.q.fq=function(){}; g.q.aK=function(){}; g.q.P8=function(){}; g.q.mW=function(){}; g.q.Ge=function(){}; g.q.Os=function(){}; g.q.W8=function(){}; g.q.Yk=function(){}; g.q.J0=function(){}; g.q.w_=function(){}; g.q.s$=function(){};g.z(FY,g.X);g.q=FY.prototype;g.q.nt=function(v,J,G,K){v=new js(v,J,G,K);if(J instanceof mN||J instanceof uv||J instanceof S_||J instanceof NJ||J instanceof aYj){if(this.SX.has(J.triggerId))throw new Q("Tried to register duplicate trigger for slot.");this.SX.set(J.triggerId,v)}else throw new Q("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in PrefetchTriggerAdapter");}; g.q.FR=function(v){this.SX.delete(v.triggerId)}; g.q.fq=function(v){var J=v.slotFulfillmentTriggers.find(function(G){return G instanceof mN}); J&&Hg(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",J.breakDurationMs,new Set([v.slotId]),!0)}; g.q.aK=function(){}; g.q.P8=function(){}; g.q.mW=function(){}; g.q.Ge=function(){}; g.q.Os=function(){}; g.q.W8=function(){}; g.q.Yk=function(){}; g.q.J0=function(){}; g.q.w_=function(){}; g.q.s$=function(){}; g.q.WG=function(){}; g.q.iS=function(v){if(!this.T)return Ps("Unexpected cue break before fetch instructions are available"),!1;this.X&&this.X.stop();this.Z&&g.Wq(this.Z);v=(v.ON+1)*1E3;var J=void 0;for(var G=g.n(this.SX.values()),K=G.next();!K.done;K=G.next()){var V=K.value;K=V.trigger;V=V.slot;K instanceof mN&&K.breakDurationMs<=v&&(!J||K.breakDurationMs>J.trigger.breakDurationMs)&&(J={slot:V,trigger:K})}if(!J)return!1;v=J.trigger;J=J.slot;Hg(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",v.breakDurationMs, new Set,!0);Hg(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",v.breakDurationMs,new Set,!1);this.L.add(J.slotId);return!0}; g.q.Zt=function(){}; g.q.u1=function(v){this.T&&this.T.contentCpn!==v?(Ps("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:v,fetchInstructionsCpn:this.T.contentCpn}),MW(this)):fB8(this)}; g.q.dF=function(v){this.T&&this.T.contentCpn!==v&&Ps("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:v,fetchInstructionsCpn:this.T.contentCpn},!0);MW(this)}; g.q.Ym=function(v){var J=this;if(this.T)Ps("Unexpected multiple fetch instructions for the current content");else{this.T=v;v=uxm(v);this.X=new g.Qq(function(){fB8(J)},v?v:6E5); this.X.start();this.Z=new g.Qq(function(){J.T&&(J.X&&(J.X.stop(),J.X.start()),Szt(J,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},ZN8(this.T)); v=this.L7.get().getCurrentTimeSec(1,!1);for(var G=g.n(this.Vj.get().EP),K=G.next();!K.done;K=G.next())K=K.value,vD(this.F4.get(),"nocache","ct."+Date.now()+";cmt."+v+";d."+K.ON.toFixed(3)+";tw."+(K.startSecs-v)+";cid."+K.identifier+";")}}; g.q.X4=function(){g.X.prototype.X4.call(this);MW(this)};g.z(QT,g.X);g.q=QT.prototype;g.q.nt=function(v,J,G,K){if(this.SX.has(J.triggerId))throw new Q("Tried to register duplicate trigger for slot.");if(!(J instanceof bv))throw new Q("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.SX.set(J.triggerId,new js(v,J,G,K));v=this.T.has(J.triggeringLayoutId)?this.T.get(J.triggeringLayoutId):new Set;v.add(J);this.T.set(J.triggeringLayoutId,v)}; g.q.FR=function(v){this.SX.delete(v.triggerId);if(!(v instanceof bv))throw new Q("Incorrect TriggerType: Tried to unregister trigger of type "+v.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var J=this.X.get(v.triggerId);J&&(J.dispose(),this.X.delete(v.triggerId));if(J=this.T.get(v.triggeringLayoutId))J.delete(v),J.size===0&&this.T.delete(v.triggeringLayoutId)}; g.q.fq=function(){}; g.q.aK=function(){}; g.q.P8=function(){}; g.q.mW=function(){}; g.q.Ge=function(){}; g.q.Os=function(){}; g.q.W8=function(){}; g.q.Yk=function(){}; g.q.J0=function(){}; g.q.WG=function(){}; g.q.w_=function(v,J){var G=this;if(this.T.has(J.layoutId)){v=this.T.get(J.layoutId);v=g.n(v);var K=v.next();for(J={};!K.done;J={z7:void 0},K=v.next())J.z7=K.value,K=new g.Qq(function(V){return function(){var Y=G.SX.get(V.z7.triggerId);U6(G.Z(),[Y])}}(J),J.z7.durationMs),K.start(),this.X.set(J.z7.triggerId,K)}}; g.q.s$=function(){};g.z(Wg,g.X);Wg.prototype.nt=function(v,J,G,K){if(this.SX.has(J.triggerId))throw new Q("Tried to register duplicate trigger for slot.");if(!(J instanceof Re))throw new Q("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in VideoTransitionTriggerAdapter.");this.SX.set(J.triggerId,new js(v,J,G,K))}; Wg.prototype.FR=function(v){this.SX.delete(v.triggerId)};i1.prototype.qV=function(v){return v.kind==="AD_PLACEMENT_KIND_START"};g.z(Jn,g.X);g.q=Jn.prototype;g.q.logEvent=function(v){this.Dk(v)}; g.q.FB=function(v,J,G){this.Dk(v,void 0,void 0,void 0,J,void 0,void 0,void 0,J.adSlotLoggingData,void 0,void 0,G)}; g.q.q$=function(v,J,G,K){this.Dk(v,void 0,void 0,void 0,J,G?G:void 0,void 0,void 0,J.adSlotLoggingData,G?G.adLayoutLoggingData:void 0,void 0,K)}; g.q.zm=function(v,J,G,K){W5(this.cH.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+v,"trigger:",G,"slot:",J,"layout:",K);eh(this.T.get())&&this.Dk(v,void 0,void 0,void 0,J,K?K:void 0,void 0,G,J.adSlotLoggingData,K?K.adLayoutLoggingData:void 0)}; g.q.vZ=function(v,J,G,K,V){this.Dk(v,J,G,K,void 0,void 0,void 0,void 0,void 0,void 0,void 0,V)}; g.q.Ro=function(v,J,G,K){this.Dk("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,G,K,void 0,void 0,G.adSlotLoggingData,K?K.adLayoutLoggingData:void 0,{errorType:v,errorMessage:J})}; g.q.Dk=function(v,J,G,K,V,Y,r,E,e,P,D,t){var B=this;t=t===void 0?0:t;W5(this.cH.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+v,"slot:",V,"layout:",Y,"ping:",r,"Opportunity:",{opportunityType:J,associatedSlotId:G,srB:K,q0i:E,adSlotLoggingData:e,adLayoutLoggingData:P});try{var I=function(){if(!B.cH.get().S.B().C("html5_disable_client_tmp_logs")&&v!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){v||Ps("Empty PACF event type",V,Y);var h=eh(B.T.get()),R={eventType:v,eventOrder:++B.eventCount},T={}; V&&(T.slotData=E6(h,V));Y&&(T.layoutData=dTj(h,Y));r&&(T.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:r.T.serializedAdPingMetadata,pingIndex:r.index});E&&(T.triggerData=qV(E.trigger,E.category));J&&(T.opportunityData=s58(h,J,G,K));h={organicPlaybackContext:{contentCpn:Is(B.C7.get(),1).clientPlaybackNonce}};h.organicPlaybackContext.isLivePlayback=Is(B.C7.get(),1).yn;var L;h.organicPlaybackContext.isMdxPlayback=(L=Is(B.C7.get(),1))==null?void 0:L.isMdxPlayback; var O;if((O=Is(B.C7.get(),1))==null?0:O.daiEnabled)h.organicPlaybackContext.isDaiContent=!0;var x;if(L=(x=Is(B.C7.get(),2))==null?void 0:x.clientPlaybackNonce)h.adVideoPlaybackContext={adVideoCpn:L};h&&(T.externalContext=h);R.adClientData=T;e&&(R.serializedSlotAdServingData=e.serializedSlotAdServingDataEntry);P&&(R.serializedAdServingData=P.serializedAdServingDataEntry);D&&(R.errorInfo=D);g.ql("adsClientStateChange",{adsClientEvent:R})}}; t&&t>0?g.jQ(g.$q(),function(){return I()},t):I()}catch(h){W5(this.cH.get(),"html5_log_pacf_logging_errors")&&g.jQ(g.$q(),function(){Ps(h instanceof Error?h:String(h),V,Y,{pacf_message:"exception during pacf logging"})})}};var hyo=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(Gf,Jn);g.q=Gf.prototype; g.q.FB=function(v,J,G){Jn.prototype.FB.call(this,v,J,G);lD(this.cH.get())&&(G={},this.context.Z2.H$("pacf",(G.et=v,G.st=J.slotType,G.si=J.slotId,G)))}; g.q.q$=function(v,J,G,K){var V=hyo.has(v);Jn.prototype.q$.call(this,v,J,G,K);lD(this.cH.get(),V)&&(K={},this.context.Z2.H$("pacf",(K.et=v,K.st=J.slotType,K.si=J.slotId,K.lt=G==null?void 0:G.layoutType,K.li=G==null?void 0:G.layoutId,K.p_ac=G==null?void 0:G.layoutId,K)))}; g.q.vZ=function(v,J,G,K,V){Jn.prototype.vZ.call(this,v,J,G,K,V);lD(this.cH.get())&&(G={},this.context.Z2.H$("pacf",(G.et=v,G.ot=J,G.ss=K==null?void 0:K.length,G)))}; g.q.zm=function(v,J,G,K){Jn.prototype.zm.call(this,v,J,G,K);if(lD(this.cH.get())){var V={};this.context.Z2.H$("pacf",(V.et=v,V.tt=G.trigger.triggerType,V.tc=G.category,V.st=J.slotType,V.si=J.slotId,V.lt=K==null?void 0:K.layoutType,V.li=K==null?void 0:K.layoutId,V.p_ac=K==null?void 0:K.layoutId,V))}}; g.q.Ro=function(v,J,G,K){Jn.prototype.Ro.call(this,v,J,G,K);if(lD(this.cH.get(),!0)){var V={};this.context.Z2.H$("perror",(V.ert=v,V.erm=J,V.st=G.slotType,V.si=G.slotId,V.lt=K==null?void 0:K.layoutType,V.li=K==null?void 0:K.layoutId,V.p_ac=K==null?void 0:K.layoutId,V))}}; g.q.Dk=function(v,J,G,K,V,Y,r,E,e,P,D){if(g.yW(this.cH.get().S.B())){var t=this.cH.get();t=g.DI(t.S.B().experiments,"H5_async_logging_delay_ms")}else t=void 0;Jn.prototype.Dk.call(this,v,J,G,K,V,Y,r,E,e,P,D,t)};oh.prototype.clear=function(){this.T.clear()};Yz.prototype.resolve=function(v){Kn(this,v)}; Yz.prototype.reject=function(v){V8(this,v)}; Yz.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; Yz.prototype.wait=function(){var v=this;return function G(){return EsF(G,function(K){if(K.T==1)return g.sm(K,2),g.U(K,{Sz:v},4);if(K.T!=2)return K.return(K.X);g.TX(K);return g.Lf(K,0)})}()}; var tP8=Fk(function(v){return rt(v)?v instanceof Yz:!1});Object.freeze({DVr:function(v){var J=vdX(v);return Bx($Vt(J,function(G){return J[G].currentState==="fail"}),function(G){return Number.isNaN(G)?J.map(function(K){return K.state().result}):J[G]})}, mVi:function(v){var J=vdX(v);return Bx($Vt(J),function(){return J.map(function(G){return G.state()})})}});var zf=window.OFY||"en-GB";l1.prototype.tp=function(v){this.client=v}; l1.prototype.T=function(){this.clear();this.csn=g.LW()}; l1.prototype.clear=function(){this.Z.clear();this.X.clear();this.L.clear();this.csn=null};pn.prototype.tp=function(v){g.jk(Tf().tp).bind(Tf())(v)}; pn.prototype.clear=function(){g.jk(Tf().clear).bind(Tf())()};g.q=Ln.prototype;g.q.tp=function(v){this.client=v}; g.q.Bc=function(v,J){var G=this;J=J===void 0?{}:J;g.jk(function(){var K,V,Y,r=((K=g.N(v==null?void 0:v.commandMetadata,g.Dh))==null?void 0:K.rootVe)||((V=g.N(v==null?void 0:v.commandMetadata,Sb_))==null?void 0:(Y=V.screenVisualElement)==null?void 0:Y.uiType);if(r){K=g.N(v==null?void 0:v.commandMetadata,iFm);if(K==null?0:K.parentTrackingParams){var E=g.lW(K.parentTrackingParams);if(K.parentCsn)var e=K.parentCsn}else J.clickedVisualElement?E=J.clickedVisualElement:v.clickTrackingParams&&(E=g.lW(v.clickTrackingParams)); a:{K=g.N(v,g.ig);V=g.N(v,H8T);if(K){if(V=GGj(K,"VIDEO")){K={token:V,videoId:K.videoId};break a}}else if(V&&(K=GGj(V,"PLAYLIST"))){K={token:K,playlistId:V.playlistId};break a}K=void 0}J=Object.assign({},{cttAuthInfo:K,parentCsn:e},J);if(g.dx("expectation_logging")){var P;J.loggingExpectations=((P=g.N(v==null?void 0:v.commandMetadata,Sb_))==null?void 0:P.loggingExpectations)||void 0}wt(G,r,E,J)}else g.Zl(new g.Mk("Error: Trying to create a new screen without a rootVeType",v))})()}; g.q.clickCommand=function(v,J,G){v=v.clickTrackingParams;G=G===void 0?0:G;v?(G=g.LW(G===void 0?0:G))?($P(this.client,G,g.lW(v),J),J=!0):J=!1:J=!1;return J}; g.q.stateChanged=function(v,J,G){this.visualElementStateChanged(g.lW(v),J,G===void 0?0:G)}; g.q.visualElementStateChanged=function(v,J,G){G=G===void 0?0:G;G===0&&this.X.has(G)?this.U.push([v,J]):q6j(this,v,J,G)};m1.prototype.fetch=function(v,J,G){var K=this,V=PEf(v,J,G);return new Promise(function(Y,r){function E(){if(G==null?0:G.e9)try{var P=K.handleResponse(v,V.status,V.response,G);Y(P)}catch(D){r(D)}else Y(K.handleResponse(v,V.status,V.response,G))} V.onerror=E;V.onload=E;var e;V.send((e=J.body)!=null?e:null)})}; m1.prototype.handleResponse=function(v,J,G,K){G=G.replace(")]}'","");try{var V=JSON.parse(G)}catch(Y){g.Zl(new g.Mk("JSON parsing failed after XHR fetch",v,J,G));if((K==null?0:K.e9)&&G)throw new g.Gp(1,"JSON parsing failed after XHR fetch");V={}}J!==200&&(g.Zl(new g.Mk("XHR API fetch failed",v,J,G)),V=Object.assign({},V,{errorMetadata:{status:J}}));return V};SZ.getInstance=function(){var v=g.NL("ytglobal.storage_");v||(v=new SZ,g.ks("ytglobal.storage_",v));return v}; SZ.prototype.estimate=function(){var v,J,G;return g.m(function(K){v=navigator;return((J=v.storage)==null?0:J.estimate)?K.return(v.storage.estimate()):((G=v.webkitTemporaryStorage)==null?0:G.queryUsageAndQuota)?K.return(DVL()):K.return()})}; g.ks("ytglobal.storageClass_",SZ);Yq.prototype.nZ=function(v){this.handleError(v)}; Yq.prototype.logEvent=function(v,J){switch(v){case "IDB_DATA_CORRUPTED":g.dx("idb_data_corrupted_killswitch")||this.T("idbDataCorrupted",J);break;case "IDB_UNEXPECTEDLY_CLOSED":this.T("idbUnexpectedlyClosed",J);break;case "IS_SUPPORTED_COMPLETED":g.dx("idb_is_supported_completed_killswitch")||this.T("idbIsSupportedCompleted",J);break;case "QUOTA_EXCEEDED":Bkm(this,J);break;case "TRANSACTION_ENDED":this.Z&&Math.random()<=.1&&this.T("idbTransactionEnded",J);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":v= Object.assign({},J,{hasWindowUnloaded:this.X}),this.T("idbTransactionAborted",v)}};var c1={},iaw=g.$E("yt-player-local-media",{B7:(c1.index={WV:2},c1.media={WV:2},c1.captions={WV:5},c1),shared:!1,upgrade:function(v,J){J(2)&&(g.OT(v,"index"),g.OT(v,"media"));J(5)&&g.OT(v,"captions");J(6)&&(UT(v,"metadata"),UT(v,"playerdata"))}, version:5});var zy_={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},Nc;a:{var aN=g.wT();aN=aN.toLowerCase();if(g.lU(aN,"android")){var nrL=aN.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(nrL){var d$F=parseFloat(nrL[1]);if(d$F<100){Nc=d$F;break a}}var s1T=aN.match("("+Object.keys(zy_).join("|")+")");Nc=s1T?zy_[s1T[0]]:0}else Nc=void 0}var SN=Nc,mH=SN>=0;var Qis=window;var IIX=li(function(){var v,J;return(J=(v=window).matchMedia)==null?void 0:J.call(v,"(prefers-reduced-motion: reduce)").matches});var Z1;g.fn=new Oe;Z1=0;var u1={XN:function(v){v.reverse()}, dU:function(v,J){v.splice(0,J)}, wF:function(v,J){var G=v[0];v[0]=v[J%v.length];v[J%v.length]=G}};var YDF=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var ih=Tkm()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.QR?!0:!1;var bBj={VJr:"adunit",nvB:"detailpage",mml:"editpage",Rgl:"embedded",gNh:"leanback",Fxe:"previewpage",J5i:"profilepage",Sj:"unplugged",y57:"playlistoverview",MUr:"sponsorshipsoffer",tU4:"shortspage",ZtH:"handlesclaiming",DPe:"immersivelivepage",pCi:"creatormusic",mPB:"immersivelivepreviewpage",iJY:"admintoolyurt",Q3e:"shortsaudiopivot",AFH:"consumption"};var p5m=2592E3;var Al,Ryo,BU;Al={};g.Hx=(Al.STOP_EVENT_PROPAGATION="html5-stop-propagation",Al.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Al.IV_DRAWER_OPEN="ytp-iv-drawer-open",Al.MAIN_VIDEO="html5-main-video",Al.VIDEO_CONTAINER="html5-video-container",Al.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Al.HOUSE_BRAND="house-brand",Al);Ryo={};BU=(Ryo.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",Ryo.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",Ryo);var S68={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var gMj={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},XKs={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"},oS2={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var zSs={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.o3.prototype.getLanguageInfo=function(){return this.hR}; g.o3.prototype.getXtags=function(){if(!this.xtags){var v=this.id.split(";");v.length>1&&(this.xtags=v[1])}return this.xtags}; g.o3.prototype.toString=function(){return this.hR.name}; g.o3.prototype.getLanguageInfo=g.o3.prototype.getLanguageInfo;KH.prototype.Rt=function(v){return this.X===v.X&&this.T===v.T&&this.Z===v.Z&&this.reason===v.reason&&(!YV||this.ER===v.ER)}; KH.prototype.isLocked=function(){return this.Z&&!!this.X&&this.X===this.T}; KH.prototype.compose=function(v){if(v.Z&&r3(v))return AW;if(v.Z||r3(this))return v;if(this.Z||r3(v))return this;var J=this.X&&v.X?Math.max(this.X,v.X):this.X||v.X,G=this.T&&v.T?Math.min(this.T,v.T):this.T||v.T;J=Math.min(J,G);var K=0;YV&&(K=this.ER!==0&&v.ER!==0?Math.min(this.ER,v.ER):this.ER===0?v.ER:this.ER);return YV&&J===this.X&&G===this.T&&K===this.ER||!YV&&J===this.X&&G===this.T?this:YV?new KH(J,G,!1,G===this.T&&K===this.ER?this.reason:v.reason,K):new KH(J,G,!1,G===this.T?this.reason:v.reason)}; KH.prototype.L=function(v){return!v.video||YV&&this.ER!==0&&this.ER=0}; g.q.TP=function(){var v=this.segments[this.segments.length-1];return v?v.endTime:NaN}; g.q.ju=function(){return this.segments[0].startTime}; g.q.Dx=function(){return this.segments.length}; g.q.wW=function(){return 0}; g.q.bz=function(v){return(v=this.M2(v))?v.yb:-1}; g.q.w1=function(v){return(v=this.Q1(v))?v.sourceURL:""}; g.q.getStartTime=function(v){return(v=this.Q1(v))?v.startTime:0}; g.q.mK=function(v){return this.getStartTime(v)+this.getDuration(v)}; g.q.uC=vF(1);g.q.isLoaded=function(){return this.segments.length>0}; g.q.Q1=function(v){if(this.T&&this.T.yb===v)return this.T;v=g.YY(this.segments,new xV(v,0,0,0,""),function(J,G){return J.yb-G.yb}); return this.T=v>=0?this.segments[v]:null}; g.q.M2=function(v){if(this.T&&this.T.startTime<=v&&v=0?this.segments[v]:this.segments[Math.max(0,-v-2)]}; g.q.append=function(v){if(v.length)if(v=g.vW(v),this.segments.length){var J=this.segments.length?g.F8(this.segments).endTime:0,G=v[0].yb-this.wd();G>1&&Cjs(this.segments);for(G=G>0?0:-G+1;Gv.yb&&this.index.eU()<=v.yb+1}; g.q.update=function(v,J,G){this.index.append(v);tRX(this.index,G);v=this.index;v.X=J;v.Z="update"}; g.q.U9=function(){return this.d9()?!0:w4.prototype.U9.call(this)}; g.q.CH=function(v,J){var G=this.index.w1(v),K=this.index.getStartTime(v),V=this.index.getDuration(v),Y;J?V=Y=0:Y=this.info.ER>0?this.info.ER*V:1E3;return new cw([new S$(3,this,void 0,"liveCreateRequestInfoForSegment",v,K,V,0,Y,!J)],G)}; g.q.cg=function(){return this.d9()?0:this.initRange.length}; g.q.ZK=function(){return!1};Q$.prototype.update=function(v){var J=void 0;this.X&&(J=this.X);var G=new Q$,K=Array.from(v.getElementsByTagName("S"));if(K.length){var V=+Hw(v,"timescale")||1,Y=(+K[0].getAttribute("t")||0)/V,r=+Hw(v,"startNumber")||0;G.L=Y;var E=J?J.startSecs+J.ON:0,e=Date.parse(YPt(Hw(v,"yt:segmentIngestTime")))/1E3;G.J=v.parentElement.tagName==="SegmentTemplate";G.J&&(G.K=Hw(v,"media"));v=J?r-J.yb:1;G.j=v>0?0:-v+1;v=g.n(K);for(K=v.next();!K.done;K=v.next()){K=K.value;for(var P=+K.getAttribute("d")/V,D=(+K.getAttribute("yt:sid")|| 0)/V,t=+K.getAttribute("r")||0,B=0;B<=t;B++)if(J&&r<=J.yb)r++;else{var I=new Klw(r,E,P,e+D,Y);G.T.push(I);var h=K;var R=V,T=I.startSecs;I=h.getAttribute("yt:cuepointTimeOffset");var L=h.getAttribute("yt:cuepointDuration");if(I&&L){I=Number(I);T=-I/R+T;R=Number(L)/R;L=h.getAttribute("yt:cuepointContext")||null;var O=h.getAttribute("yt:cuepointIdentifier")||"";h=h.getAttribute("yt:cuepointEvent")||"";h=new NB(T,R,L,O,TK8[h]||"unknown",I)}else h=null;h&&G.Z.push(h);r++;E+=P;Y+=P;e+=P+D}}G.T.length&& (G.X=g.F8(G.T))}this.j=G.j;this.X=G.X||this.X;g.JE(this.T,G.T);g.JE(this.Z,G.Z);this.J=G.J;this.K=G.K;this.L===-1&&(this.L=G.getStreamTimeOffset())}; Q$.prototype.getStreamTimeOffset=function(){return this.L===-1?0:this.L};g.z(Cb,g.mL);g.q=Cb.prototype;g.q.N7=function(){return this.BG}; g.q.QI=function(v,J){v=b8(this,v);return v>=0&&(J||!this.segments[v].pending)}; g.q.eU=function(){return this.lj?this.segments.length?this.M2(this.ju()).yb:-1:g.mL.prototype.eU.call(this)}; g.q.ju=function(){if(this.mU)return 0;if(!this.lj)return g.mL.prototype.ju.call(this);if(!this.segments.length)return 0;var v=Math.max(g.F8(this.segments).endTime-this.An,0);return this.yk>0&&this.M2(v).yb0)return this.t5/1E3;if(!this.segments.length)return g.mL.prototype.TP.call(this);var v=this.wd();if(!this.lj||v<=this.segments[this.segments.length-1].yb)v=this.segments[this.segments.length-1];else{var J=this.segments[this.segments.length-1];v=new xV(v,Math.max(0,J.startTime-(J.yb-v)*this.BG),this.BG,0,"sq/"+v,void 0,void 0,!0)}return this.mU?Math.min(this.An,v.endTime):v.endTime}; g.q.Dx=function(){return this.lj?this.segments.length?this.wd()-this.eU()+1:0:g.mL.prototype.Dx.call(this)}; g.q.wd=function(){var v=Math.min(this.zv,Math.max(g.mL.prototype.wd.call(this),this.Ba)),J=this.An*1E3;J=this.t5>0&&this.t50&&this.Ba>0&&!J&&(J=this.M2(this.An))&&(v=Math.min(J.yb-1,v));return v}; g.q.NC=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.q.Lg=function(v){var J=b8(this,v.yb);if(J>=0)this.segments[J]=v;else if(this.segments.splice(-(J+1),0,v),this.jZ&&v.yb%(300/this.BG)===0){var G=this.segments[0].yb,K=Math.floor(this.jZ/this.BG);v=v.yb-K;J=-(J+1)-K;J>0&&v>G&&(this.segments=this.segments.slice(J))}}; g.q.Up=function(){return this.Ba}; g.q.yA=function(v){return Ww?!this.X&&v>=0&&this.wd()<=v:g.mL.prototype.yA.call(this,v)}; g.q.M2=function(v){if(!this.lj)return g.mL.prototype.M2.call(this,v);if(!this.segments.length)return null;var J=this.segments[this.segments.length-1];if(v=J.endTime)J=J.yb+Math.floor((v-J.endTime)/this.BG+1);else{J=r6(this.segments,function(K){return v=K.endTime?1:0}); if(J>=0)return this.segments[J];var G=-(J+1);J=this.segments[G-1];G=this.segments[G];J=Math.floor((v-J.endTime)/((G.startTime-J.endTime)/(G.yb-J.yb-1))+1)+J.yb}return this.Q1(J)}; g.q.Q1=function(v){if(!this.lj)return g.mL.prototype.Q1.call(this,v);if(!this.segments.length)return null;var J=b8(this,v);if(J>=0)return this.segments[J];var G=-(J+1);J=this.BG;if(G===0)var K=Math.max(0,this.segments[0].startTime-(this.segments[0].yb-v)*J);else G===this.segments.length?(K=this.segments[this.segments.length-1],K=K.endTime+(v-K.yb-1)*J):(K=this.segments[G-1],J=this.segments[G],J=(J.startTime-K.endTime)/(J.yb-K.yb-1),K=K.endTime+(v-K.yb-1)*J);return new xV(v,K,J,0,"sq/"+v,void 0,void 0, !0)}; var Ww=!1;g.z(j2,Fr);g.q=j2.prototype;g.q.Ts=function(){return!0}; g.q.U9=function(){return!0}; g.q.Ji=function(v){return this.S1()&&v.Z&&!v.J||!v.T.index.yA(v.yb)}; g.q.HJ=function(){}; g.q.Zk=function(v,J){return typeof v!=="number"||isFinite(v)?Fr.prototype.Zk.call(this,v,J===void 0?!1:J):new cw([new S$(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.eF,void 0,this.eF*this.info.ER)],"")}; g.q.CH=function(v,J){var G=G===void 0?!1:G;if(this.index.QI(v))return Fr.prototype.CH.call(this,v,J);var K=this.index.getStartTime(v),V=Math.round(this.eF*this.info.ER),Y=this.eF;J&&(Y=V=0);return new cw([new S$(G?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",v,K,Y,void 0,V,!J)],v>=0?"sq/"+v:"")};g.z(iB,w4);g.q=iB.prototype;g.q.A5=function(){return!1}; g.q.S1=function(){return!1}; g.q.Ts=function(){return!1}; g.q.HJ=function(){return new cw([new S$(1,this,void 0,"otfInit")],this.J)}; g.q.yd=function(){return null}; g.q.zQ=function(v){this.Ji(v);return Bj8(this,g4(v),!1)}; g.q.Zk=function(v,J){J=J===void 0?!1:J;v=this.index.bz(v);J&&(v=Math.min(this.index.wd(),v+1));return Bj8(this,v,!0)}; g.q.Ko=function(v){v.info.type===1&&(this.T||(this.T=lP(v.T)),v.X&&v.X.uri==="http://youtube.com/streaming/otf/durations/112015"&&IoX(this,v.X))}; g.q.Ji=function(v){return v.Z===0?!0:this.index.wd()>v.yb&&this.index.eU()<=v.yb+1}; g.q.cg=function(){return 0}; g.q.ZK=function(){return!1};$I.prototype.s1=function(){return this.T.s1()};g.q=g.V7.prototype;g.q.QI=function(v){return v<=this.wd()}; g.q.wW=function(v){return this.offsets[v]}; g.q.getStartTime=function(v){return this.startTicks[v]/this.T}; g.q.mK=function(v){return this.getStartTime(v)+this.getDuration(v)}; g.q.uC=vF(0);g.q.IA=function(){return NaN}; g.q.getDuration=function(v){v=this.kG(v);return v>=0?v/this.T:-1}; g.q.kG=function(v){return v+1=0}; g.q.TP=function(){return this.X?this.startTicks[this.count]/this.T:NaN}; g.q.ju=function(){return 0}; g.q.Dx=function(){return this.count}; g.q.w1=function(){return""}; g.q.bz=function(v){v=g.YY(this.startTicks.subarray(0,this.count),v*this.T);return v>=0?v:Math.max(0,-v-2)}; g.q.isLoaded=function(){return this.wd()>=0}; g.q.Ib=function(v,J){if(v>=this.wd())return 0;var G=0;for(J=this.getStartTime(v)+J;vthis.getStartTime(v);v++)G=Math.max(G,pIs(this,v)/this.getDuration(v));return G}; g.q.resize=function(v){v+=2;var J=this.offsets;this.offsets=new Float64Array(v+1);var G=this.startTicks;this.startTicks=new Float64Array(v+1);for(v=0;v0&&v&&(G=G.range.end+1,v=Math.min(v,this.info.contentLength-G),v>0&&K.push(new S$(4,this,xx(G,v),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,J)));return new cw(K)}; g.q.Ko=function(v){if(v.info.type===1){if(this.T)return;this.T=lP(v.T)}else if(v.info.type===2){if(this.J||this.index.wd()>=0)return;if(g.bD(this.info)){var J=this.index,G=v.s1();v=v.info.range.start;var K=g.MB(G,0,1936286840);G=L9j(K);J.T=G.timescale;var V=G.PS;J.offsets[0]=G.vF+v+K.size;J.startTicks[0]=V;J.X=!0;v=G.BK.length;for(K=0;K0&&v===Y[0].Nq)for(v=0;v=J+G)break}V.length||g.fW(new g.Mk("b189619593",""+v,""+J,""+G));return new cw(V)}; g.q.Bm=function(v){for(var J=this.ME(v.info),G=v.info.range.start+v.info.X,K=[],V=0;V=this.index.wW(G+1);)G++;return this.Vf(G,J,v.Z).Vb}; g.q.Ji=function(v){v.fZ();return this.U9()?!0:v.range.end+1this.info.contentLength&&(J=new OH(J.start,this.info.contentLength-1)),new cw([new S$(4,v.T,J,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,v.clipId)]);v.type===4&&(v=this.ME(v),v=v[v.length-1]);var G=0,K=v.range.start+v.X+v.Z;v.type===3&&(v.fZ(),G=v.yb,K===v.range.end+1&&(G+=1));return this.Vf(G,K,J)}; g.q.zQ=function(){return null}; g.q.Zk=function(v,J,G){J=J===void 0?!1:J;v=this.index.bz(v);J&&(v=Math.min(this.index.wd(),v+1));return this.Vf(v,this.index.wW(v),0,G)}; g.q.A5=function(){return!0}; g.q.S1=function(){return!0}; g.q.Ts=function(){return!1}; g.q.cg=function(){return this.indexRange.length+this.initRange.length}; g.q.ZK=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var H1={},ao8=(H1.COLOR_PRIMARIES_BT709="bt709",H1.COLOR_PRIMARIES_BT2020="bt2020",H1.COLOR_PRIMARIES_UNKNOWN=null,H1.COLOR_PRIMARIES_UNSPECIFIED=null,H1),Mc={},yBB=(Mc.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Mc.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Mc.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Mc.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Mc.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Mc.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Mc);g.q5.prototype.getName=function(){return this.name}; g.q5.prototype.getId=function(){return this.id}; g.q5.prototype.getIsDefault=function(){return this.isDefault}; g.q5.prototype.toString=function(){return this.name}; g.q5.prototype.getName=g.q5.prototype.getName;g.q5.prototype.getId=g.q5.prototype.getId;g.q5.prototype.getIsDefault=g.q5.prototype.getIsDefault;var xGB=/action_display_post/;var mGF,PZ,DT;g.z(t1,g.qU);g.q=t1.prototype;g.q.isLoading=function(){return this.state===1}; g.q.Xa=function(){return this.state===3}; g.q.hIw=function(v){var J=v.getElementsByTagName("Representation");if(v.getElementsByTagName("SegmentList").length>0||v.getElementsByTagName("SegmentTemplate").length>0){this.yn=this.X=!0;this.timeline||(this.timeline=new qPL);DGU(this.timeline,v);this.publish("refresh");for(v=0;v=0?D=UH(B):t=t+"?range="+B}e.call(E,new xV(P.yb,P.startSecs,P.ON,P.T,t,D,P.X))}K=V}G.update(K,this.isLive,this.xB)}tlr(this.timeline);return!0}this.duration=Vl8(Hw(v,"mediaPresentationDuration")); a:{for(v=0;v0))return this.j3()-v}}v=this.T;for(var J in v){var G=v[J].index;if(G.isLoaded()&&!JB(v[J].info.mimeType))return G.ju()}return 0}; g.q.getStreamTimeOffset=function(){return this.K}; g.q.IA=function(v){for(var J in this.T){var G=this.T[J].index;if(G.isLoaded()){var K=G.bz(v),V=G.IA(K);if(V)return V+v-G.getStartTime(K)}}return NaN}; var wE=null,phG,O4=!((phG=navigator.mediaCapabilities)==null||!phG.decodingInfo),Wlf={commentary:1,alternate:2,dub:3,main:4};var GE=new Set,U4=new Map;S2.prototype.clone=function(v){return new S2(this.flavor,v,this.X,this.experiments)}; S2.prototype.u9=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; S2.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 L0o={},A1=(L0o.playready=["com.youtube.playready","com.microsoft.playready"],L0o.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],L0o),Qt={},yKm=(Qt.widevine="DRM_SYSTEM_WIDEVINE",Qt.fairplay="DRM_SYSTEM_FAIRPLAY",Qt.playready="DRM_SYSTEM_PLAYREADY",Qt),W1={},yjY=(W1.widevine=1,W1.fairplay=2,W1.playready=3,W1);HZ.prototype.YN=function(v,J){J=J===void 0?1:J;this.VI+=J;this.X+=v;v/=J;for(var G=0;G0)K+="."+Fi[V].toFixed(0)+"_"+G.T[V].toFixed(0);else break;G=K}G&&(v[J]=G)}this.T=new qCw;return v}; g.q.toString=function(){return""};g.q=Bpf.prototype;g.q.isActive=function(){return!1}; g.q.FZ=function(){}; g.q.H_=function(){}; g.q.A4=function(v,J){return J}; g.q.PX=function(){}; g.q.vl=function(){}; g.q.MO=function(v,J){return J()}; g.q.YG=function(){return{}}; g.q.toString=function(){return""};var Cj,whm,OoL,U$m,x$N,m$F,bb,Dd,VH,MMw,bB;Cj=new Bpf;whm=!!+M4("html5_enable_profiler");OoL=!!+M4("html5_onesie_enable_profiler");U$m=!!+M4("html5_offline_encryption_enable_profiler");x$N=!!+M4("html5_performance_impact_profiling_timer_ms");m$F=!!+M4("html5_drm_enable_profiler");bb=whm||OoL||U$m||x$N||m$F?new egr:Cj;g.ys=whm?bb:Cj;Dd=OoL?bb:Cj;VH=U$m?bb:Cj;MMw=x$N?bb:Cj;bB=m$F?bb:Cj;var C0;g.z(Q7,g.X); Q7.prototype.initialize=function(v,J){for(var G=this,K=g.n(Object.keys(v)),V=K.next();!V.done;V=K.next()){V=g.n(v[V.value]);for(var Y=V.next();!Y.done;Y=V.next())if(Y=Y.value,Y.k5)for(var r=g.n(Object.keys(Y.k5)),E=r.next();!E.done;E=r.next()){var e=E.value;E=e;e=A1[e];!e&&this.C("html5_enable_vp9_fairplay")&&E==="fairplay"&&(e=["com.youtube.fairplay.sbdl"]);if(e){e=g.n(e);for(var P=e.next();!P.done;P=e.next())P=P.value,this.Z[P]=this.Z[P]||new S2(E,P,Y.k5[E],this.gh.experiments),this.T[E]=this.T[E]|| {},this.T[E][Y.mimeType]=!0}}}Hy()&&(this.Z["com.youtube.fairplay"]=new S2("fairplay","com.youtube.fairplay","",this.gh.experiments),this.C("html5_enable_vp9_fairplay")||(this.T.fairplay=this.T.fairplay||{},this.T.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.T.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.X=rZ2(J,this.useCobaltWidevine,this.C("html5_enable_safari_fairplay")&&!0,this.C("html5_enable_vp9_fairplay")).filter(function(D){return!!G.Z[D]})}; Q7.prototype.C=function(v){return this.gh.experiments.OB(v)};var SxS={"":"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"};Rg8.prototype.C=function(v){return this.experiments.OB(v)};var iij={RED:"red",B8r:"white"};lks.prototype.OB=function(v){v=this.flags[v];JSON.stringify(v);return v==="true"};var L$s=Promise.resolve(),UHt=window.queueMicrotask?window.queueMicrotask.bind(window):yZ2;vL.prototype.canPlayType=function(v,J){v=v.canPlayType?v.canPlayType(J):!1;Ml?v=v||fC8[J]:SN===2.2?v=v||Zo8[J]:Ah()&&(v=v||ucL[J]);return!!v}; vL.prototype.isTypeSupported=function(v){return this.Ti?window.cast.receiver.platform.canDisplayType(v):m9(v)}; var Zo8={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},ucL={"application/x-mpegURL":"maybe"},fC8={"application/x-mpegURL":"maybe"};g.z(KY,g.qU);KY.prototype.add=function(v,J){if(!this.items[v]&&(J.ai||J.G1||J.G7)){var G=this.items,K=J;Object.isFrozen&&!Object.isFrozen(J)&&(K=Object.create(J),Object.freeze(K));G[v]=K;this.publish("vast_info_card_add",v)}}; KY.prototype.remove=function(v){var J=this.get(v);delete this.items[v];return J}; KY.prototype.get=function(v){return this.items[v]||null}; KY.prototype.isEmpty=function(){return g.Xb(this.items)};g.z(V5,g.RU);V5.prototype.T=function(v,J){return g.RU.prototype.T.call(this,v,J)}; V5.prototype.X=function(v,J,G){var K=this;return g.m(function(V){return V.T==1?g.U(V,g.RU.prototype.X.call(K,v,J,G),2):V.return(V.X)})}; g.z(Y$,g.l3);Y$.prototype.encrypt=function(v,J){return g.l3.prototype.encrypt.call(this,v,J)};var qX;Ef.prototype.add=function(v){if(this.pos+20>this.data.length){var J=new Uint8Array(this.data.length*2);J.set(this.data);this.data=J}for(;v>31;)this.data[this.pos++]=qX[(v&31)+32],v>>=5;this.data[this.pos++]=qX[v|0]}; Ef.prototype.M$=function(){return g.yA(this.data.subarray(0,this.pos))}; Ef.prototype.reset=function(){this.pos=0};PL.prototype.dP=function(v,J){var G=Math.pow(this.alpha,v);this.T=J*(1-G)+G*this.T;this.X+=v}; PL.prototype.gK=function(){return this.T/(1-Math.pow(this.alpha,this.X))};DR.prototype.dP=function(v,J){for(var G=0;G<10;G++){var K=this.T[G],V=K+(G===0?v:0),Y=1*Math.pow(2,G);if(V<=Y)break;K=Math.min(1,(V-Y*.5)/K);for(V=0;V<16;V++)Y=this.values[G*16+V]*K,this.values[(G+1)*16+V]+=Y,this.T[G+1]+=Y,this.values[G*16+V]-=Y,this.T[G]-=Y}K=G=0;V=8192;J>8192&&(G=Math.ceil(Math.log(J/8192)/Math.log(2)),K=8192*Math.pow(2,G-1),V=K*2);G+2>16?this.values[15]+=v:(J=(J-K)/(V-K),this.values[G]+=v*(1-J),this.values[G+1]+=v*J);this.T[0]+=v}; DR.prototype.gK=function(){var v=v===void 0?this.X:v;var J=J===void 0?.02:J;var G=G===void 0?.98:G;for(var K=this.Z,V=0;V<16;V++)K[V]=this.values[V];V=this.T[0];for(var Y=1;Y<11;Y++){var r=this.T[Y];if(r===0)break;for(var E=Math.min(1,(v-V)/r),e=0;e<16;e++)K[e]+=this.values[Y*16+e]*E;V+=r*E;if(E<1)break}for(Y=v=r=0;Y<16;Y++){E=r+K[Y]/V;v+=Math.max(0,Math.min(E,G)-Math.max(r,J))*(Y>0?8192*Math.pow(2,Y-1):0);if(E>G)break;r=E}return v/(G-J)};tM.prototype.dP=function(v,J){v=Math.min(this.T,Math.max(1,Math.round(v*this.resolution)));v+this.X>=this.T&&(this.Z=!0);for(;v--;)this.values[this.X]=J,this.X=(this.X+1)%this.T;this.bO=!0}; tM.prototype.percentile=function(v){var J=this;if(!this.Z&&this.X===0)return 0;this.bO&&(g.q_(this.J,function(G,K){return J.values[G]-J.values[K]}),this.bO=!1); return this.values[this.J[Math.round(v*((this.Z?this.T:this.X)-1))]]||0}; tM.prototype.gK=function(){return this.j?(this.percentile(this.L-this.j)+this.percentile(this.L)+this.percentile(this.L+this.j))/3:this.percentile(this.L)};g.z(BL,g.X);BL.prototype.RY=function(){var v;(v=this.jl)==null||v.start();if(lh(this)&&this.policy.U){var J;(J=this.GS)==null||J.PD()}};AZF.prototype.C=function(v){return this.experiments.OB(v)};g.z(HBm,g.X);var jej="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),oTB={LJU:"caoe",nR7:"capsv",R6w:"cbrand",U5H:"cbr",I2H:"cbrver",f2b:"cchip",ov7:"ccappver",TG4:"ccrv",Eu7:"cfrmver",UPH:"c",BEi:"cver",IRe:"ctheme",zr4:"cplayer",zje:"cmodel",f7w:"cnetwork",bdb:"cos",A5w:"cosver",v6i:"cplatform",xnb:"crqyear"};g.z(AM,g.X);g.q=AM.prototype;g.q.C=function(v){return this.experiments.OB(v)}; g.q.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.q.getVideoUrl=function(v,J,G,K,V,Y,r){J={list:J};G&&(V?J.time_continue=G:J.t=G);G=r?"music.youtube.com":g.HL(this);V=G==="www.youtube.com";!Y&&K&&V?Y="https://youtu.be/"+v:g.uh(this)?(Y="https://"+G+"/fire",J.v=v):(Y&&V?(Y=this.protocol+"://"+G+"/shorts/"+v,K&&(J.feature="share")):(Y=this.protocol+"://"+G+"/watch",J.v=v),Ml&&(v=gDj())&&(J.ebc=v));return g.vt(Y,J)}; g.q.getVideoEmbedCode=function(v,J,G,K){J="https://"+g.HL(this)+"/embed/"+J;K&&(J=g.vt(J,{list:K}));K=G.width;G=G.height;J=V2(J);v=V2(v!=null?v:"YouTube video player");return'')}; g.q.supportsGaplessAudio=function(){return g.x4&&!Ml&&cy()>=74||g.N5&&g.II(68)?!0:!1}; g.q.supportsGaplessShorts=function(){return!this.C("html5_enable_short_gapless")||this.Gi||g.nP?!1:!0}; g.q.getPlayerType=function(){return this.T.cplayer}; g.q.GG=function(){return this.Bv}; var rYw=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],G4U=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],V_s=[19];var jJ={},edU=(jJ["140"]={numChannels:2},jJ["141"]={numChannels:2},jJ["251"]={audioSampleRate:48E3,numChannels:2},jJ["774"]={audioSampleRate:48E3,numChannels:2},jJ["380"]={numChannels:6},jJ["328"]={numChannels:6},jJ["773"]={},jJ),iX={},qkw=(iX["1"]='video/mp4; codecs="av01.0.08M.08"',iX["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',iX["1e"]='video/mp4; codecs="av01.0.08M.08"',iX["9"]='video/webm; codecs="vp9"',iX["("]='video/webm; codecs="vp9"',iX["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', iX.h='video/mp4; codecs="avc1.64001e"',iX.H='video/mp4; codecs="avc1.64001e"',iX.o='audio/webm; codecs="opus"',iX.a='audio/mp4; codecs="mp4a.40.2"',iX.ah='audio/mp4; codecs="mp4a.40.2"',iX.mac3='audio/mp4; codecs="ac-3"; channels=6',iX.meac3='audio/mp4; codecs="ec-3"; channels=6',iX.i='audio/mp4; codecs="iamf.001.001.Opus"',iX),$o={},ETB=($o["337"]={width:3840,height:2160,bitrate:3E7,fps:30},$o["336"]={width:2560,height:1440,bitrate:15E6,fps:30},$o["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, $o["702"]={width:7680,height:4320,bitrate:4E7,fps:60},$o["701"]={width:3840,height:2160,bitrate:2E7,fps:60},$o["700"]={width:2560,height:1440,bitrate:1E7,fps:60},$o["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},$o["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},$o["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},$o["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, $o["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},$o["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},$o["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},$o["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},$o["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},$o["315"]={width:3840,height:2160,bitrate:2E7,fps:60},$o["308"]={width:2560, height:1440,bitrate:1E7,fps:60},$o["303"]={width:1920,height:1080,bitrate:5E6,fps:60},$o["302"]={width:1280,height:720,bitrate:25E5,fps:60},$o["299"]={width:1920,height:1080,bitrate:75E5,fps:60},$o["298"]={width:1280,height:720,bitrate:35E5,fps:60},$o["571"]={width:7680,height:4320,bitrate:3E7,fps:60},$o["401"]={width:3840,height:2160,bitrate:15E6,fps:60},$o["400"]={width:2560,height:1440,bitrate:75E5,fps:60},$o["399"]={width:1920,height:1080,bitrate:2E6,fps:60},$o["398"]={width:1280,height:720,bitrate:1E6, fps:60},$o["397"]={width:854,height:480,bitrate:4E5,fps:30},$o["396"]={width:640,height:360,bitrate:25E4,fps:30},$o["787"]={width:1080,height:608,bitrate:2E5,fps:30},$o["788"]={width:1080,height:608,bitrate:4E5,fps:30},$o["572"]={width:7680,height:4320,bitrate:3E7,fps:60},$o["555"]={width:3840,height:2160,bitrate:15E6,fps:60},$o["554"]={width:2560,height:1440,bitrate:75E5,fps:60},$o["553"]={width:1920,height:1080,bitrate:2E6,fps:60},$o["552"]={width:1280,height:720,bitrate:1E6,fps:60},$o["551"]={width:854, height:480,bitrate:4E5,fps:30},$o["550"]={width:640,height:360,bitrate:25E4,fps:30},$o["313"]={width:3840,height:2160,bitrate:8E6,fps:30},$o["271"]={width:2560,height:1440,bitrate:4E6,fps:30},$o["248"]={width:1920,height:1080,bitrate:2E6,fps:30},$o["247"]={width:1280,height:720,bitrate:15E5,fps:30},$o["244"]={width:854,height:480,bitrate:52E4,fps:30},$o["243"]={width:640,height:360,bitrate:28E4,fps:30},$o["137"]={width:1920,height:1080,bitrate:4E6,fps:30},$o["136"]={width:1280,height:720,bitrate:3E6, fps:30},$o["135"]={width:854,height:480,bitrate:1E6,fps:30},$o["385"]={width:1920,height:1080,bitrate:6503313,fps:60},$o["376"]={width:1280,height:720,bitrate:5706960,fps:60},$o["384"]={width:1280,height:720,bitrate:3660979,fps:60},$o["225"]={width:1280,height:720,bitrate:5805E3,fps:30},$o["224"]={width:1280,height:720,bitrate:453E4,fps:30},$o["145"]={width:1280,height:720,bitrate:2682052,fps:30},$o);g.q=rh.prototype;g.q.getInfo=function(){return this.T}; g.q.IB=function(){return null}; g.q.D1=function(){var v=this.IB();return v?(v=g.oS(v.v$),Number(v.expire)):NaN}; g.q.Eh=function(){}; g.q.getHeight=function(){return this.T.video.height};BBf.prototype.build=function(){zd8(this);var v=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],J={};a:if(this.T)var G=this.T;else{G="";for(var K=g.n(this.Z),V=K.next();!V.done;V=K.next())if(V=V.value,V.hR){if(V.hR.getIsDefault()){G=V.hR.getId();break a}G||(G=V.hR.getId())}}K=g.n(this.Z);for(V=K.next();!V.done;V=K.next())if(V=V.value,this.j||!V.hR||V.hR.getId()===G)J[V.itag]||(J[V.itag]=[]),J[V.itag].push(V);G=g.n(this.X);for(K=G.next();!K.done;K=G.next())if(K=K.value,V=J[K.T]){V=g.n(V);for(var Y=V.next();!Y.done;Y= V.next()){var r=v,E=r.push;Y=Y.value;var e="#EXT-X-MEDIA:TYPE=AUDIO,",P="YES",D="audio";if(Y.hR){D=Y.hR;var t=D.getId().split(".")[0];t&&(e+='LANGUAGE="'+t+'",');(this.T?this.T===D.getId():D.getIsDefault())||(P="NO");D=D.getName()}t="";K!==null&&(t=K.itag.toString());t=Ey(this,Y.url,t);e=e+('NAME="'+D+'",DEFAULT='+(P+',AUTOSELECT=YES,GROUP-ID="'))+(hdr(Y,K)+'",URI="'+(t+'"'));E.call(r,e)}}G=g.n(this.J);for(K=G.next();!K.done;K=G.next())K=K.value,V=grL,K=(r=K.hR)?'#EXT-X-MEDIA:URI="'+Ey(this,K.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+V+'",LANGUAGE="'+r.getId()+'",NAME="'+r.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,K&&v.push(K);G=this.J.length>0?grL:void 0;K=g.n(this.X);for(V=K.next();!V.done;V=K.next())V=V.value,E=J[V.T],r=void 0,((r=E)==null?void 0:r.length)>0&&(r=V,E=E[0],E="#EXT-X-STREAM-INF:BANDWIDTH="+(r.bitrate+E.bitrate)+',CODECS="'+(r.codecs+","+E.codecs+'",RESOLUTION=')+(r.width+"x"+r.height+',AUDIO="')+(hdr(E,r)+'",')+(G?'SUBTITLES="'+G+'",':"")+"CLOSED-CAPTIONS=NONE",r.fps>1&&(E+= ",FRAME-RATE="+r.fps),r.t4&&(E+=",VIDEO-RANGE="+r.t4),v.push(E),v.push(Ey(this,V.url,"")));return v.join("\n")}; var grL="text";g.z(ev,rh);ev.prototype.D1=function(){return this.expiration}; ev.prototype.IB=function(){if(!this.v$||this.v$.Sl()){var v=this.X.build();v="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(v);this.v$=new hB(v)}return this.v$};g.z(PG,rh);PG.prototype.IB=function(){return new hB(this.X.Dm())}; PG.prototype.Eh=function(){this.X=O1(this.X)};g.z(Dx,rh);Dx.prototype.IB=function(){return new hB(this.X)};var vC={},wDL=(vC.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",vC.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",vC.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",vC);g.q=g.tW.prototype;g.q.getId=function(){return this.id}; g.q.getName=function(){return this.name}; g.q.isServable=function(){return this.T}; g.q.Dm=function(){return this.url}; g.q.getXtags=function(){return this.xtags}; g.q.toString=function(){return this.languageCode+": "+g.BG(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.q.Rt=function(v){return v?this.toString()===v.toString():!1}; g.q.B1=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Skf={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},f5j={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Zij=/^(\d*)_((\d*)_?(\d*))$/;var gTm={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},XDL={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var JV={},XhF=(JV.ALWAYS=1,JV.BY_REQUEST=3,JV.UNKNOWN=void 0,JV),Gc={},k7T=(Gc.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",Gc.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",Gc.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",Gc.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",Gc);var RQ8; RQ8=function(v){for(var J=Object.keys(v),G={},K=0;KK-J?-1:v}; g.q.qt=function(){return this.X.wd()}; g.q.I0=function(){return this.X.eU()}; g.q.rl=function(v){this.X=v};g.z(aG,cG);aG.prototype.X=function(v,J){return cG.prototype.X.call(this,"$N|"+v,J)}; aG.prototype.J=function(v,J,G){return new Nr(v,J,G,this.isLive)};var RSm=[],CS=new Set;g.z(g.FP,g.qU);g.q=g.FP.prototype; g.q.setData=function(v){v=v||{};var J=v.errordetail;J!=null&&(this.errorDetail=J);var G=v.errorcode;G!=null?this.errorCode=G:v.status==="fail"&&(this.errorCode="auth");var K=v.reason;K!=null&&(this.errorReason=K);var V=v.subreason;V!=null&&(this.HU=V);this.C("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=v.cpn||(this.gh.GG()?"r"+g.lN(15):g.lN(16)));this.Nr=GZ(this.gh.Nr,v.livemonitor);Bcr(this,v);var Y=v.raw_player_response;if(Y)this.LN=Y;else{var r=v.player_response; r&&(Y=JSON.parse(r))}if(this.C("html5_enable_ssap_entity_id")){var E=v.cached_load;E&&(this.M0=GZ(this.M0,E));if(!this.clientPlaybackNonce){var e=v.cpn;e?(this.SG("ssei","shdc"),this.clientPlaybackNonce=e):this.clientPlaybackNonce=this.gh.GG()?"r"+g.lN(15):g.lN(16)}}Y&&(this.playerResponse=Y);if(this.playerResponse){var P=this.playerResponse.annotations;if(P)for(var D=g.n(P),t=D.next();!t.done;t=D.next()){var B=t.value.playerAnnotationsUrlsRenderer;if(B){B.adsOnly&&(this.TE=!0);var I=B.loadPolicy; I&&(this.annotationsLoadPolicy=XhF[I]);var h=B.invideoUrl;h&&(this.BH=J6(h));break}}var R=this.playerResponse.attestation;R&&cYL(this,R);var T=this.playerResponse.cotn;T&&(this.cotn=T);var L=this.playerResponse.heartbeatParams;if(L){PzU(this)&&(this.yx=!0);var O=L.heartbeatToken;O&&(this.drmSessionId=L.drmSessionId||"",this.heartbeatToken=O,this.qv=Number(L.intervalMilliseconds),this.Cy=Number(L.maxRetries),this.Ky=!!L.softFailOnError,this.mS=!!L.useInnertubeHeartbeatsForDrm,this.uf=!0);this.heartbeatServerData= L.heartbeatServerData;var x;this.mz=!((x=L.heartbeatAttestationConfig)==null||!x.requiresAttestation)}var f=this.playerResponse.messages;f&&FNj(this,f);var c=this.playerResponse.overlay;if(c){var b=c.playerControlsOverlayRenderer;if(b)if(M_m(this,b.controlBgHtml),b.mutedAutoplay){var M=g.N(b.mutedAutoplay,WWT);if(M&&M.endScreen){var Jw=g.N(M.endScreen,Cl_);Jw&&Jw.text&&(this.YV=g.h9(Jw.text))}}else this.mutedAutoplay=!1}var Kf=this.playerResponse.playabilityStatus;if(Kf){var j8=Kf.backgroundability; j8&&j8.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var a,C;if((a=Kf.offlineability)==null?0:(C=a.offlineabilityRenderer)==null?0:C.offlineable)this.offlineable=!0;var d=Kf.contextParams;d&&(this.contextParams=d);var A=Kf.pictureInPicture;A&&A.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);Kf.playableInEmbed&&(this.allowEmbed=!0);var cF=Kf.ypcClickwrap;if(cF){var RL=cF.playerLegacyDesktopYpcClickwrapRenderer,BN=cF.ypcRentalActivationRenderer;if(RL)this.OF=RL.durationMessage|| "",this.Jm=!0;else if(BN){var pf=BN.durationMessage;this.OF=pf?g.h9(pf):"";this.Jm=!0}}var iU=Kf.errorScreen;if(iU){if(iU.playerLegacyDesktopYpcTrailerRenderer){var VY=iU.playerLegacyDesktopYpcTrailerRenderer;this.QT=VY.trailerVideoId||"";var IL=iU.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var p=IL&&IL.ypcTrailerRenderer}else if(iU.playerLegacyDesktopYpcOfferRenderer)VY=iU.playerLegacyDesktopYpcOfferRenderer;else if(iU.ypcTrailerRenderer){p=iU.ypcTrailerRenderer;var y=p.fullVideoMessage;this.WE= y?g.h9(y):"";var w,S;this.QT=((w=g.N(p,b8A))==null?void 0:(S=w.videoDetails)==null?void 0:S.videoId)||""}VY&&(this.Ha=VY.itemTitle||"",VY.itemUrl&&(this.gt=VY.itemUrl),VY.itemBuyUrl&&(this.cN=VY.itemBuyUrl),this.e2=VY.itemThumbnail||"",this.ZG=VY.offerHeadline||"",this.o6=VY.offerDescription||"",this.OA=VY.offerId||"",this.p4=VY.offerButtonText||"",this.je=VY.offerButtonFormattedText||null,this.T_=VY.overlayDurationMsec||NaN,this.WE=VY.fullVideoMessage||"",this.Lj=!0);if(p){var Z=g.N(p,b8A);if(Z)this.U2= {raw_player_response:Z};else{var ij=g.N(p,rAA);this.U2=ij?Jh(ij):null}this.Lj=!0}}}var GX=this.playerResponse.playbackTracking;if(GX){var om=v,u=dh(GX.googleRemarketingUrl);u&&(this.googleRemarketingUrl=u);var dw=dh(GX.youtubeRemarketingUrl);dw&&(this.youtubeRemarketingUrl=dw);var VB={},Ys=dh(GX.ptrackingUrl);if(Ys){var xs=sy(Ys),WF=xs.oid;WF&&(this.qR=WF);var X8=xs.pltype;X8&&(this.SY=X8);var CG=xs.ptchn;CG&&(this.yD=CG);var F2=xs.ptk;F2&&(this.DW=encodeURIComponent(F2));var HW=xs.m;HW&&(this.MC= HW)}var X0=dh(GX.qoeUrl);if(X0){for(var tA=g.oS(X0),Aq=g.n(Object.keys(tA)),EA=Aq.next();!EA.done;EA=Aq.next()){var Mh=EA.value,kY=tA[Mh];tA[Mh]=Array.isArray(kY)?kY.join(","):kY}this.N9=tA;var QK=tA.cat;QK&&(this.C("html5_enable_qoe_cat_list")?this.fF=this.fF.concat(QK.split(",")):this.BU=QK);var Rn=tA.live;Rn&&(this.ZY=Rn);var eK=tA.drm_product;eK&&(this.qm=eK)}var xb=dh(GX.videostatsPlaybackUrl);if(xb){var BJ=sy(xb),mK=BJ.adformat;if(mK){om.adformat=mK;var cu=this.B(),NE=uZX(mK,this.xU,cu.L,cu.K); NE&&(this.adFormat=NE)}var Tj=BJ.aqi;Tj&&(om.ad_query_id=Tj);var iy=BJ.autoplay;iy&&(this.Qu=iy=="1",this.xK=iy=="1",oQ(this,"vss"));var WM=BJ.autonav;WM&&(this.isAutonav=WM=="1");var oI=BJ.delay;oI&&(this.UR=qi(oI));var fM=BJ.ei;fM&&(this.eventId=fM);if(BJ.adcontext||mK)this.Qu=!0,oQ(this,"ad");var QZ=BJ.feature;QZ&&(this.w8=QZ);var tE=BJ.list;tE&&(this.playlistId=tE);var dj=BJ.of;dj&&(this.qT=dj);var sP=BJ.osid;sP&&(this.osid=sP);var Rj=BJ.referrer;Rj&&(this.referrer=Rj);var ra=BJ.sdetail;ra&&(this.Wt= ra);var EG=BJ.ssrt;EG&&(this.D5=EG=="1");var q0=BJ.subscribed;q0&&(this.subscribed=q0=="1",this.K.subscribed=q0);var EQ=BJ.uga;EQ&&(this.userGenderAge=EQ);var lS=BJ.upt;lS&&(this.Qd=lS);var Tz=BJ.vm;Tz&&(this.videoMetadata=Tz);VB.playback=BJ}var pt=dh(GX.videostatsWatchtimeUrl);if(pt){var Lt=sy(pt),y4=Lt.ald;y4&&(this.HQ=y4);VB.watchtime=Lt}var wj=dh(GX.atrUrl);if(wj){var MN=sy(wj);VB.atr=MN}var Z$=dh(GX.engageUrl);if(Z$){var Qf=sy(Z$);VB.engage=Qf}this.yT=VB;if(GX.promotedPlaybackTracking){var Fb= GX.promotedPlaybackTracking;Fb.startUrls&&(this.nU=Fb.startUrls);Fb.firstQuartileUrls&&(this.V8=Fb.firstQuartileUrls);Fb.secondQuartileUrls&&(this.h4=Fb.secondQuartileUrls);Fb.thirdQuartileUrls&&(this.wA=Fb.thirdQuartileUrls);Fb.completeUrls&&(this.lY=Fb.completeUrls);Fb.engagedViewUrls&&(Fb.engagedViewUrls.length>1&&g.Zl(new g.Mk("There are more than one engaged_view_urls.")),this.tF=Fb.engagedViewUrls[0])}}var ef=this.playerResponse.playerCueRanges;ef&&ef.length>0&&(this.cueRanges=ef);var OP=this.playerResponse.playerCueRangeSet; OP&&g.bs(this,OP);a:{var PB=this.playerResponse.adPlacements;if(PB)for(var UP=g.n(PB),DY=UP.next();!DY.done;DY=UP.next()){var xG=void 0,ml=void 0,Sl=(xG=DY.value.adPlacementRenderer)==null?void 0:(ml=xG.renderer)==null?void 0:ml.videoAdTrackingRenderer;if(Sl){var ft=Sl;break a}}ft=null}var tu=ft;GX&&GX.promotedPlaybackTracking&&tu&&g.Zl(new g.Mk("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var h$;if(!(h$=tu))a:{for(var Zo=g.n(this.playerResponse.adSlots||[]), BB=Zo.next();!BB.done;BB=Zo.next()){var Iw=g.N(BB.value,kc);if(Iw===void 0||!DdU(Iw))break;var uS=void 0,Wm=(uS=Iw.fulfillmentContent)==null?void 0:uS.fulfilledLayout,gj=g.N(Wm,OR);if(gj&&zC(gj)){h$=!0;break a}}h$=!1}h$&&(this.u$=!0);var Xj=this.playerResponse.playerAds;if(Xj)for(var Ch=v,kG=g.n(Xj),zw=kG.next();!zw.done;zw=kG.next()){var cI=zw.value;if(cI){var NG=cI.playerLegacyDesktopWatchAdsRenderer;if(NG){var u4=NG.playerAdParams;if(u4){u4.autoplay=="1"&&(this.xK=this.Qu=!0);this.oG=u4.encodedAdSafetyReason|| null;u4.showContentThumbnail!==void 0&&(this.Bx=!!u4.showContentThumbnail);Ch.enabled_engage_types=u4.enabledEngageTypes;break}}}}var sx=this.playerResponse.playerConfig;if(sx){var aW=sx.manifestlessWindowedLiveConfig;if(aW){var aj=Number(aW.minDvrSequence),hu=Number(aW.maxDvrSequence),ne=Number(aW.minDvrMediaTimeMs),de=Number(aW.maxDvrMediaTimeMs),z_=Number(aW.startWalltimeMs);aj&&(this.yk=aj);ne&&(this.YB=ne/1E3,this.C("html5_sabr_parse_live_metadata_playback_boundaries")&&YJ(this)&&(this.XS=ne/ 1E3));hu&&(this.zv=hu);de&&(this.OR=de/1E3,this.C("html5_sabr_parse_live_metadata_playback_boundaries")&&YJ(this)&&(this.Iw=de/1E3));z_&&(this.yy=z_/1E3);(aj||ne)&&(hu||de)&&(this.allowLiveDvr=this.isLivePlayback=this.qr=!0,this.mU=!1)}var AC=sx.daiConfig;if(AC){if(AC.enableDai){this.cG=!0;var sa=AC.enableServerStitchedDai;sa&&(this.enableServerStitchedDai=sa);var AB=AC.enablePreroll;AB&&(this.Zj=AB)}var jI;if(AC.daiType==="DAI_TYPE_SS_DISABLED"||((jI=AC.debugInfo)==null?0:jI.isDisabledUnpluggedChannel))this.Rd= !0;AC.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.bK=!0)}var Pj=sx.audioConfig;if(Pj){var W$=Pj.loudnessDb;W$!=null&&(this.dG=W$);var FbX=Pj.trackAbsoluteLoudnessLkfs;FbX!=null&&(this.Eo=FbX);var HmU=Pj.loudnessTargetLkfs;HmU!=null&&(this.loudnessTargetLkfs=HmU);Pj.audioMuted&&(this.Yv=!0);Pj.muteOnStart&&(this.eC=!0);var dc=Pj.loudnessNormalizationConfig;if(dc){dc.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);dc.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var MIj=dc.minimumLoudnessTargetLkfs;MIj!=null&&(this.minimumLoudnessTargetLkfs=MIj);var QQw=dc.maxStatefulTimeThresholdSec;QQw!=null&&(this.maxStatefulTimeThresholdSec=QQw)}this.C("web_player_audio_playback_from_audio_config")&&Pj.playAudioOnly&&(this.H8=!0)}var TRf=sx.playbackEndConfig;if(TRf){var Wbt=TRf.endSeconds,CmL=TRf.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(Wbt&&(this.endSeconds=Wbt),CmL&&(this.limitedPlaybackDurationInSeconds=CmL))}var dv=sx.fairPlayConfig;if(dv){var bm2= dv.certificate;bm2&&(this.WH=rU(bm2));var jTU=Number(dv.keyRotationPeriodMs);jTU>0&&(this.jM=jTU);var izU=Number(dv.keyPrefetchMarginMs);izU>0&&(this.Lx=izU)}var GM=sx.playbackStartConfig;if(GM){this.I6=Number(GM.startSeconds);var $It=GM.liveUtcStartSeconds,vwt=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;$It&&!vwt&&(this.liveUtcStartSeconds=Number($It));var pat=GM.startPosition;if(pat){var Jrm=pat.utcTimeMillis;Jrm&&!vwt&&(this.liveUtcStartSeconds=Number(Jrm)*.001);var G0B=pat.streamTimeMillis; G0B&&(this.F5=Number(G0B)*.001)}this.progressBarStartPosition=GM.progressBarStartPosition;this.progressBarEndPosition=GM.progressBarEndPosition}else{var Lcf=sx.skippableSegmentsConfig;if(Lcf){var owB=Lcf.introSkipDurationMs;owB&&(this.x6=Number(owB)/1E3);var KSr=Lcf.outroSkipDurationMs;KSr&&(this.Yf=Number(KSr)/1E3)}}var yN8=sx.skippableIntroConfig;if(yN8){var VHj=Number(yN8.startMs),Yvf=Number(yN8.endMs);isNaN(VHj)||isNaN(Yvf)||(this.wP=VHj,this.HG=Yvf)}var rrF=sx.streamSelectionConfig;rrF&&(this.qj= Number(rrF.maxBitrate));var qvm=sx.vrConfig;qvm&&(this.b0=qvm.partialSpherical=="1");var sR=sx.webDrmConfig;if(sR){sR.skipWidevine&&(this.zW=!0);var EwX=sR.widevineServiceCert;EwX&&(this.Px=rU(EwX));sR.useCobaltWidevine&&(this.useCobaltWidevine=!0);sR.startWithNoQualityConstraint&&(this.SF=!0)}var GY=sx.mediaCommonConfig;if(GY){var sB=GY.dynamicReadaheadConfig;if(sB){this.maxReadAheadMediaTimeMs=sB.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=sB.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs= sB.readAheadGrowthRateMs||NaN;var eH2,Pkm=GY==null?void 0:(eH2=GY.mediaUstreamerRequestConfig)==null?void 0:eH2.videoPlaybackUstreamerConfig;Pkm&&(this.lz=rU(Pkm));var waU=GY==null?void 0:GY.sabrContextUpdates;if(waU&&waU.length>0)for(var DIr=g.n(waU),O_w=DIr.next();!O_w.done;O_w=DIr.next()){var DE=O_w.value;if(DE.type&&DE.value){var o68={type:DE.type,scope:DE.scope,value:rU(DE.value)||void 0,sendByDefault:DE.sendByDefault};this.sabrContextUpdates.set(DE.type,o68)}}}var tH2=GY.serverPlaybackStartConfig; tH2&&(this.serverPlaybackStartConfig=tH2);GY.useServerDrivenAbr&&(this.s6=!0);var BmB=GY.requestPipeliningConfig;BmB&&(this.requestPipeliningConfig=BmB)}var IMs=sx.inlinePlaybackConfig;IMs&&(this.bB=!!IMs.showAudioControls);var Ri=sx.embeddedPlayerConfig;if(Ri){this.embeddedPlayerConfig=Ri;var Uvs=Ri.embeddedPlayerMode;if(Uvs){var hHU=this.B();hHU.Ze=Uvs;hHU.Z=Uvs==="EMBEDDED_PLAYER_MODE_PFL"}var zHw=Ri.permissions;zHw&&(this.allowImaMonetization=!!zHw.allowImaMonetization)}var nww=sx.ssapConfig; nww&&(this.Xd=nww.ssapPrerollEnabled||!1);var le=sx.webPlayerConfig;le&&(le.gatewayExperimentGroup&&(this.gatewayExperimentGroup=le.gatewayExperimentGroup),le.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var o9=this.playerResponse.streamingData;if(o9){var xv8=o9.formats;if(xv8){for(var Ro=[],dIj=g.n(xv8),mvB=dIj.next();!mvB.done;mvB=dIj.next()){var Sdw=mvB.value;Ro.push(Sdw.itag+"/"+Sdw.width+"x"+Sdw.height)}this.Db=Ro.join(",");Ro=[];for(var sTX=g.n(xv8),f4s=sTX.next();!f4s.done;f4s=sTX.next()){var lu= f4s.value,TC={itag:lu.itag,type:lu.mimeType,quality:lu.quality},RHw=lu.url;RHw&&(TC.url=RHw);var Tu=U1(lu),KaX=Tu.W9,Vk8=Tu.sf,YiY=Tu.s;Tu.LV&&(TC.url=KaX,TC.sp=Vk8,TC.s=YiY);Ro.push(g.$l(TC))}this.Es=Ro.join(",")}var Z_m=o9.hlsFormats;if(Z_m&&!this.C("safari_live_drm_captions_fix")){var lM8=sx||null,pv={};if(lM8){var ua8=lM8.audioPairingConfig;if(ua8&&ua8.pairs)for(var Tmw=g.n(ua8.pairs),gum=Tmw.next();!gum.done;gum=Tmw.next()){var pdm=gum.value,XaU=pdm.videoItag;pv[XaU]||(pv[XaU]=[]);pv[XaU].push(pdm.audioItag)}}for(var LSr= {},yr2=g.n(Z_m),kNB=yr2.next();!kNB.done;kNB=yr2.next()){var wdr=kNB.value;LSr[wdr.itag]=wdr.bitrate}for(var Ozw=[],UIF=g.n(Z_m),cNX=UIF.next();!cNX.done;cNX=UIF.next()){var op=cNX.value,x3={itag:op.itag,type:op.mimeType,url:op.url,bitrate:op.bitrate,width:op.width,height:op.height,fps:op.fps},Lv=op.audioTrack;if(Lv){var xIF=Lv.displayName;xIF&&(x3.name=xIF,x3.audio_track_id=Lv.id,Lv.audioIsDefault&&(x3.is_default="1"))}if(op.drmFamilies){for(var mIX=[],SvF=g.n(op.drmFamilies),NRr=SvF.next();!NRr.done;NRr= SvF.next())mIX.push(IB[NRr.value]);x3.drm_families=mIX.join(",")}var yU=pv[op.itag];if(yU&&yU.length){x3.audio_itag=yU.join(",");var fMr=LSr[yU[0]];fMr&&(x3.bitrate+=fMr)}var ZzL=wIr(op);ZzL&&(x3.eotf=ZzL);op.audioChannels&&(x3.audio_channels=op.audioChannels);Ozw.push(g.$l(x3))}this.hlsFormats=Ozw.join(",")}var a4B=o9.licenseInfos;if(a4B&&a4B.length>0){for(var uI2={},gw8=g.n(a4B),ANm=gw8.next();!ANm.done;ANm=gw8.next()){var Xds=ANm.value,k0B=Xds.drmFamily,cr2=Xds.url;k0B&&cr2&&(uI2[IB[k0B]]=cr2)}this.k5= uI2}var Nmf=o9.drmParams;Nmf&&(this.drmParams=Nmf);var aM8=o9.dashManifestUrl;aM8&&(this.BO=g.vt(aM8,{cpn:this.clientPlaybackNonce}));var ArX=o9.hlsManifestUrl;ArX&&(this.hlsvp=ArX);var FSs=o9.probeUrl;FSs&&(this.probeUrl=J6(g.vt(FSs,{cpn:this.clientPlaybackNonce})));var Hzw=o9.serverAbrStreamingUrl;Hzw&&(this.ZO=new g.TV(Hzw,!0))}var MHF=this.playerResponse.trackingParams;MHF&&(this.Mr=MHF);var M_=this.playerResponse.videoDetails;if(M_){var mj=v,FcX=M_.videoId;FcX&&(this.videoId=FcX,mj.video_id|| (mj.video_id=FcX));var QT2=M_.channelId;QT2&&(this.K.uid=QT2.substring(2));var H_8=M_.title;H_8&&(this.title=H_8,mj.title||(mj.title=H_8));var MGU=M_.lengthSeconds;MGU&&(this.lengthSeconds=Number(MGU),mj.length_seconds||(mj.length_seconds=MGU));var WSm=M_.keywords;WSm&&(this.keywords=dej(WSm));var Qzr=M_.channelId;Qzr&&(this.kN=Qzr,mj.ucid||(mj.ucid=Qzr));var Ckj=M_.viewCount;Ckj&&(this.rawViewCount=Number(Ckj));var Wcw=M_.author;Wcw&&(this.author=Wcw,mj.author||(mj.author=Wcw));var bzf=M_.shortDescription; bzf&&(this.shortDescription=bzf);var jqF=M_.isCrawlable;jqF&&(this.isListed=jqF);var iyL=M_.musicVideoType;iyL&&(this.musicVideoType=iyL);var CrX=M_.isLive;CrX!=null&&(this.isLivePlayback=CrX);if(CrX||M_.isUpcoming)this.isPremiere=!M_.isLiveContent;var $8j=M_.thumbnail;$8j&&(this.N=nS($8j));var vUr=M_.isExternallyHostedPodcast;vUr&&(this.isExternallyHostedPodcast=vUr);var b_m=M_.viewerLivestreamJoinPosition;if(b_m==null?0:b_m.utcTimeMillis)this.iN=qi(b_m.utcTimeMillis);var JyL=sx||null,j7B=v;M_.isLiveDefaultBroadcast&& (this.isLiveDefaultBroadcast=!0);M_.isUpcoming&&(this.isUpcoming=!0);if(M_.isPostLiveDvr){this.mU=!0;var GhL=M_.latencyClass;GhL&&(this.latencyClass=k7T[GhL]||"UNKNOWN");M_.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var ikF=!1;this.Nr?(this.allowLiveDvr=JM()?!0:bR&&fC<5?!1:!0,this.isLivePlayback=!0):M_.isLive?(j7B.livestream="1",this.allowLiveDvr=M_.isLiveDvrEnabled?JM()?!0:bR&&fC<5?!1:!0:!1,this.partnerId=27,ikF=!0):M_.isUpcoming&&(ikF=!0);if(M_.isLive||this.Nr&&this.C("html5_parse_live_monitor_flags")){M_.isLowLatencyLiveStream&& (this.isLowLatencyLiveStream=!0);var oUB=M_.latencyClass;oUB&&(this.latencyClass=k7T[oUB]||"UNKNOWN");var Kds=M_.liveChunkReadahead;Kds&&(this.liveChunkReadahead=Kds);var oU=JyL&&JyL.livePlayerConfig;if(oU){oU.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);oU.hasSubfragmentedWebm&&(this.T$=!0);oU.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var VUU=oU.liveExperimentalContentId;VUU&&(this.liveExperimentalContentId=Number(VUU));var YhL=oU.isLiveHeadPlayable;this.C("html5_live_head_playable")&& YhL!=null&&(this.isLiveHeadPlayable=YhL)}}ikF&&(this.isLivePlayback=!0,j7B.adformat&&j7B.adformat.split("_")[1]!=="8"||this.dh.push("heartbeat"),this.uf=!0)}var rym=M_.isPrivate;rym!==void 0&&(this.isPrivate=GZ(this.isPrivate,rym))}if(Kf){var qhU=M_||null,EUU=!1,K1=Kf.errorScreen;EUU=K1&&(K1.playerLegacyDesktopYpcOfferRenderer||K1.playerLegacyDesktopYpcTrailerRenderer||K1.ypcTrailerRenderer)?!0:qhU&&qhU.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Kf.status);if(!EUU){this.errorCode= Oij(Kf.errorCode)||"auth";var wv=K1&&K1.playerErrorMessageRenderer;if(wv){this.playerErrorMessageRenderer=wv;var eif=wv.reason;eif&&(this.errorReason=g.h9(eif));var $ij=wv.subreason;$ij&&(this.HU=g.h9($ij),this.WQ=$ij)}else this.errorReason=Kf.reason||null;var vyt=Kf.status;if(vyt==="LOGIN_REQUIRED")this.errorDetail="1";else if(vyt==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(vyt==="AGE_CHECK_REQUIRED"){var Pcw=Kf.errorScreen,D8s=Pcw&&Pcw.playerKavRenderer;this.errorDetail=D8s&&D8s.kavUrl? "4":"3"}else this.errorDetail=Kf.isBlockedInRestrictedMode?"5":"0"}}var tU2=this.playerResponse.interstitialPods;tU2&&AYj(this,tU2);this.BH&&this.eventId&&(this.BH=Vl(this.BH,{ei:this.eventId}));var JqF=this.playerResponse.captions;if(JqF&&JqF.playerCaptionsTracklistRenderer)a:{var Sp=JqF.playerCaptionsTracklistRenderer;this.captionTracks=[];if(Sp.captionTracks)for(var BZ2=g.n(Sp.captionTracks),Gxf=BZ2.next();!Gxf.done;Gxf=BZ2.next()){var fL=Gxf.value,ILL=hSr(fL.baseUrl);if(!ILL)break a;var oy2={is_translateable:!!fL.isTranslatable, languageCode:fL.languageCode,languageName:fL.name&&g.h9(fL.name),url:ILL,vss_id:fL.vssId,kind:fL.kind};oy2.name=fL.trackName;oy2.displayName=fL.name&&g.h9(fL.name);this.captionTracks.push(new g.tW(oy2))}this.c9=Sp.audioTracks||[];this.C9=Sp.defaultAudioTrackIndex||0;this.AB=[];if(Sp.translationLanguages)for(var hiw=g.n(Sp.translationLanguages),Kx8=hiw.next();!Kx8.done;Kx8=hiw.next()){var Vb=Kx8.value,t0={};t0.languageCode=Vb.languageCode;t0.languageName=g.h9(Vb.languageName);if(Vb.translationSourceTrackIndices){t0.translationSourceTrackIndices= [];for(var zim=g.n(Vb.translationSourceTrackIndices),VKw=zim.next();!VKw.done;VKw=zim.next())t0.translationSourceTrackIndices.push(VKw.value)}if(Vb.excludeAudioTrackIndices){t0.excludeAudioTrackIndices=[];for(var nUm=g.n(Vb.excludeAudioTrackIndices),YAr=nUm.next();!YAr.done;YAr=nUm.next())t0.excludeAudioTrackIndices.push(YAr.value)}this.AB.push(t0)}this.pw=[];if(Sp.defaultTranslationSourceTrackIndices)for(var d8w=g.n(Sp.defaultTranslationSourceTrackIndices),rqF=d8w.next();!rqF.done;rqF=d8w.next())this.pw.push(rqF.value); this.bU=!!Sp.contribute&&!!Sp.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.I6=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Him(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var sq8;this.compositeLiveIngestionOffsetToken= (sq8=this.playerResponse.playbackTracking)==null?void 0:sq8.compositeLiveIngestionOffsetToken;var Ri8;this.compositeLiveStatusToken=(Ri8=this.playerResponse.playbackTracking)==null?void 0:Ri8.compositeLiveStatusToken}Mr(this,v);v.queue_info&&(this.queueInfo=v.queue_info);var lL2=v.hlsdvr;lL2!=null&&(this.allowLiveDvr=Number(lL2)===1?JM()?!0:bR&&fC<5?!1:!0:!1);this.adQueryId=v.ad_query_id||null;this.oG||(this.oG=v.encoded_ad_safety_reason||null);this.GJ=v.agcid||null;this.NT=v.ad_id||null;this.u5= v.ad_sys||null;this.qc=v.encoded_ad_playback_context||null;this.Yv=GZ(this.Yv,v.infringe||v.muted);this.jk=v.authkey;this.pG=v.authuser;this.mutedAutoplay=GZ(this.mutedAutoplay,v&&v.playmuted);this.mutedAutoplayDurationMode=Kq(this.mutedAutoplayDurationMode,v&&v.muted_autoplay_duration_mode);this.XI=GZ(this.XI,v&&v.mutedautoplay);var OB=v.length_seconds;OB&&(this.lengthSeconds=typeof OB==="string"?qi(OB):OB);if(this.isAd()||this.RE||!g.E9(g.X9(this.gh)))this.endSeconds=Kq(this.endSeconds,this.Yf|| v.end||v.endSeconds);else{var rh6=g.X9(this.gh),UB=this.lengthSeconds;switch(rh6){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":UB>30?this.limitedPlaybackDurationInSeconds=30:UB<30&&UB>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=UB*.2}}this.Mr=VC(this.Mr,v.itct);this.hp=GZ(this.hp,v.noiba);this.wZ=GZ(this.wZ,v.is_live_destination);this.isLivePlayback=GZ(this.isLivePlayback,v.live_playback); this.enableServerStitchedDai=this.enableServerStitchedDai&&this.yn();v.isUpcoming&&(this.isUpcoming=GZ(this.isUpcoming,v.isUpcoming));this.mU=GZ(this.mU,v.post_live_playback);this.qr&&(this.mU=!1);this.isMdxPlayback=GZ(this.isMdxPlayback,v.mdx);var xH=v.mdx_control_mode;xH&&(this.mdxControlMode=typeof xH==="number"?xH:qi(xH));this.isInlinePlaybackNoAd=GZ(this.isInlinePlaybackNoAd,v.is_inline_playback_no_ad);this.Vn=Kq(this.Vn,v.reload_count);this.reloadReason=VC(this.reloadReason,v.reload_reason); this.Bx=GZ(this.Bx,v.show_content_thumbnail);this.gA=GZ(this.gA,v.utpsa);this.cycToken=v.cyc||null;this.Z$=v.tkn||null;var TZB=z3(v);Object.keys(TZB).length>0&&(this.N=TZB);this.Ti=VC(this.Ti,v.vvt);this.mdxEnvironment=VC(this.mdxEnvironment,v.mdx_environment);v.source_container_playlist_id&&(this.sourceContainerPlaylistId=v.source_container_playlist_id);v.serialized_mdx_metadata&&(this.serializedMdxMetadata=v.serialized_mdx_metadata);this.kZ=v.osig;this.eventId||(this.eventId=v.eventid);this.osid|| (this.osid=v.osid);this.playlistId=VC(this.playlistId,v.list);v.index&&(this.playlistIndex=this.playlistIndex===void 0?Kq(0,v.index):Kq(this.playlistIndex,v.index));this.lK=v.pyv_view_beacon_url;this.ES=v.pyv_quartile25_beacon_url;this.MQ=v.pyv_quartile50_beacon_url;this.tQ=v.pyv_quartile75_beacon_url;this.Wc=v.pyv_quartile100_beacon_url;var p2B=v.session_data;!this.kW&&p2B&&(this.kW=$6(p2B,"&").feature);this.isFling=Kq(this.isFling?1:0,v.is_fling)===1;this.vnd=Kq(this.vnd,v.vnd);this.forceAdsUrl= VC(this.forceAdsUrl,v.force_ads_url);this.Fz=VC(this.Fz,v.ctrl);this.XB=VC(this.XB,v.ytr);this.zE=v.ytrcc;this.Qw=v.ytrexp;this.H9=v.ytrext;this.a$=VC(this.a$,v.adformat);this.xU=VC(this.xU,v.attrib);this.slotPosition=Kq(this.slotPosition,v.slot_pos);this.breakType=v.break_type;this.D5=GZ(this.D5,v.ssrt);this.videoId=rs(v)||this.videoId;this.j=VC(this.j,v.vss_credentials_token);this.mx=VC(this.mx,v.vss_credentials_token_type);this.H8=GZ(this.H8,v.audio_only);this.jl=GZ(this.jl,v.aac_high);this.aB= GZ(this.aB,v.prefer_low_quality_audio);this.yN=GZ(this.yN,v.uncap_inline_quality);this.C("html5_enable_qoe_cat_list")?v.qoe_cat&&(this.fF=this.fF.concat(v.qoe_cat.split(","))):this.BU=VC(this.BU,v.qoe_cat);this.zx=GZ(this.zx,v.download_media);var Ldj=v.prefer_gapless;this.U=Ldj!=null?GZ(this.U,Ldj):this.U?this.U:this.gh.preferGapless&&this.gh.supportsGaplessShorts();ccF(this.playerResponse)&&this.dh.push("ad");var yyj=v.adaptive_fmts;yyj&&(this.adaptiveFormats=yyj,this.uw("adpfmts",{},!0));var w2s= v.allow_embed;w2s&&(this.allowEmbed=Number(w2s)===1);var OyF=v.backgroundable;OyF&&(this.backgroundable=Number(OyF)===1);var U8F=v.autonav;U8F&&(this.isAutonav=Number(U8F)===1);var x8B=v.autoplay;x8B&&(this.Qu=this.xK=Number(x8B)===1,oQ(this,"c"));var m8f=v.iv_load_policy;m8f&&(this.annotationsLoadPolicy=oP(this.annotationsLoadPolicy,m8f,k$));var Sh8=v.cc_lang_pref;Sh8&&(this.captionsLanguagePreference=VC(Sh8,this.captionsLanguagePreference));var fLt=v.cc_load_policy;fLt&&(this.y8=oP(this.y8,fLt, k$));var ZyU;this.deviceCaptionsOn=(ZyU=v.device_captions_on)!=null?ZyU:void 0;var u7f;this.Tm=(u7f=v.device_captions_lang_pref)!=null?u7f:"";var gUw;this.Se=(gUw=v.viewer_selected_caption_langs)!=null?gUw:[];if(!this.C("html5_enable_ssap_entity_id")){var X2w=v.cached_load;X2w&&(this.M0=GZ(this.M0,X2w))}if(v.dash==="0"||v.dash===0||v.dash===!1)this.qA=!0;var khU=v.dashmpd;khU&&(this.BO=g.vt(khU,{cpn:this.clientPlaybackNonce}));var cyF=v.delay;cyF&&(this.UR=qi(cyF));var qAf=this.Yf||v.end;if(this.KK? qAf!=null:qAf!=void 0)this.clipEnd=Kq(this.clipEnd,qAf);var NZw=v.fmt_list;NZw&&(this.Db=NZw);v.heartbeat_preroll&&this.dh.push("heartbeat");this.P4=-Math.floor(Math.random()*10);this.W4=-Math.floor(Math.random()*40);var aLU=v.is_listed;aLU&&(this.isListed=GZ(this.isListed,aLU));var AyF=v.is_private;AyF&&(this.isPrivate=GZ(this.isPrivate,AyF));var FdF=v.is_dni;FdF&&(this.aR=GZ(this.aR,FdF));var Hy8=v.dni_color;Hy8&&(this.ST=VC(this.ST,Hy8));var MUL=v.pipable;MUL&&(this.pipable=GZ(this.pipable,MUL)); this.WI=(this.UY=this.pipable&&this.gh.QT)&&!this.gh.showMiniplayerButton;var Qqt=v.paid_content_overlay_duration_ms;Qqt&&(this.paidContentOverlayDurationMs=qi(Qqt));var Wdw=v.paid_content_overlay_text;Wdw&&(this.paidContentOverlayText=Wdw);var Cc2=v.url_encoded_fmt_stream_map;Cc2&&(this.Es=Cc2);var byF=v.hls_formats;byF&&(this.hlsFormats=byF);var jM2=v.hlsvp;jM2&&(this.hlsvp=jM2);var mI=v.live_start_walltime;mI&&(this.sP=typeof mI==="number"?mI:qi(mI));var SO=v.live_manifest_duration;SO&&(this.Kt= typeof SO==="number"?SO:qi(SO));var iJm=v.player_params;iJm&&(this.playerParams=iJm);var $Zt=v.partnerid;$Zt&&(this.partnerId=Kq(this.partnerId,$Zt));var v_r=v.probe_url;v_r&&(this.probeUrl=J6(g.vt(v_r,{cpn:this.clientPlaybackNonce})));var Eys=v.pyv_billable_url;Eys&&bWF(Eys)&&(this.tF=Eys);var eXF=v.pyv_conv_url;eXF&&bWF(eXF)&&(this.Ys=eXF);soX(this,v);this.startSeconds>0?this.C("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.I6||this.x6||v.start||v.startSeconds)&&this.uw("lss", {css:this.startSeconds,pcss:this.I6,iss:this.x6,ps:v.start||void 0,pss:v.startSeconds||void 0}):this.R$=this.startSeconds=Kq(this.startSeconds,this.I6||this.x6||v.start||v.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var JLm=v.live_utc_start;if(JLm!=null)this.liveUtcStartSeconds=Number(JLm);else{var PAt=this.startSeconds;PAt&&isFinite(PAt)&&PAt>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Ga8=v.utc_start_millis; Ga8&&(this.liveUtcStartSeconds=Number(Ga8)*.001)}var o_2=v.stream_time_start_millis;o_2&&(this.F5=Number(o_2)*.001);var Dij=this.x6||v.start;(this.KK?Dij==null||Number(v.resume)===1:Dij==void 0||v.resume=="1")||this.isLivePlayback||(this.clipStart=Kq(this.clipStart,Dij));var KTL=v.url_encoded_third_party_media;KTL&&(this.im=Ge(KTL));var tKt=v.ypc_offer_button_formatted_text;if(tKt){var VXs=JSON.parse(tKt);this.je=VXs!=null?VXs:null;this.uL=tKt}var Ycr=v.ypc_offer_button_text;Ycr&&(this.p4=Ycr);var rLm= v.ypc_offer_description;rLm&&(this.o6=rLm);var qc8=v.ypc_offer_headline;qc8&&(this.ZG=qc8);var E_8=v.ypc_full_video_message;E_8&&(this.WE=E_8);var e$j=v.ypc_offer_id;e$j&&(this.OA=e$j);var Paj=v.ypc_buy_url;Paj&&(this.cN=Paj);var DZm=v.ypc_item_thumbnail;DZm&&(this.e2=DZm);var tX8=v.ypc_item_title;tX8&&(this.Ha=tX8);var BOw=v.ypc_item_url;BOw&&(this.gt=BOw);var IFm=v.ypc_vid;IFm&&(this.QT=IFm);v.ypc_overlay_timeout&&(this.T_=Number(v.ypc_overlay_timeout));var h$U=v.ypc_trailer_player_vars;h$U&&(this.U2= Jh(h$U));var z$U=v.ypc_original_itct;z$U&&(this.Td=z$U);this.kN=VC(this.kN,v.ucid);v.baseUrl&&(this.K.baseUrl=v.baseUrl);v.uid&&(this.K.uid=v.uid);v.oeid&&(this.K.oeid=v.oeid);v.ieid&&(this.K.ieid=v.ieid);v.ppe&&(this.K.ppe=v.ppe);v.engaged&&(this.K.engaged=v.engaged);v.subscribed&&(this.K.subscribed=v.subscribed);this.K.focEnabled=GZ(this.K.focEnabled,v.focEnabled);this.K.rmktEnabled=GZ(this.K.rmktEnabled,v.rmktEnabled);this.TF=v.storyboard_spec||null;this.XC=v.live_storyboard_spec||null;this.sE= v.iv_endscreen_url||null;this.uf=GZ(this.uf,v.ypc_license_checker_module);this.Lj=GZ(this.Lj,v.ypc_module);this.Jm=GZ(this.Jm,v.ypc_clickwrap_module);this.Lj&&this.dh.push("ypc");this.Jm&&this.dh.push("ypc_clickwrap");this.kV={video_id:v.video_id,eventid:v.eventid,cbrand:v.cbrand,cbr:v.cbr,cbrver:v.cbrver,c:v.c,cver:v.cver,ctheme:v.ctheme,cplayer:v.cplayer,cmodel:v.cmodel,cnetwork:v.cnetwork,cos:v.cos,cosver:v.cosver,cplatform:v.cplatform,user_age:v.user_age,user_display_image:v.user_display_image, user_display_name:v.user_display_name,user_gender:v.user_gender,csi_page_type:v.csi_page_type,csi_service_name:v.csi_service_name,enablecsi:v.enablecsi,enabled_engage_types:v.enabled_engage_types};Iem(this,v);var n_B=v.cotn;n_B&&(this.cotn=n_B);if(feX(this))EL(this)&&(this.isLivePlayback&&this.BO&&(this.Po=!0),this.WH&&(this.Aw=!0));else if(Zaw(this))this.Po=!0;else{var dZr,sMs,R$m=((dZr=this.playerResponse)==null?void 0:(sMs=dZr.streamingData)==null?void 0:sMs.adaptiveFormats)||[];if(R$m.length> 0)var pa=SRf(this,R$m);else{var lFB=this.adaptiveFormats;if(lFB&&!EL(this)){this.gh.J.Z&&(O4=!0);var YC=h3(lFB),Bdf=this.k5,TOm=this.lengthSeconds,qiU=this.isLivePlayback,La=this.mU,rq=this.gh,E6o=ABX(YC);if(qiU||La){var p7s=rq==null?void 0:rq.experiments,ct=new t1("",p7s,!0);ct.yn=!0;ct.isManifestless=!0;ct.X=!La;ct.isLive=!La;ct.mU=La;for(var LTX=g.n(YC),Ipm=LTX.next();!Ipm.done;Ipm=LTX.next()){var qx=Ipm.value,yLr=zP(qx,Bdf),Bo=n0(qx.url,qx.sp,qx.s),w7w=Bo.get("id");w7w&&w7w.includes("%7E")&&(ct.N= !0);var OJs=void 0,euX=(OJs=p7s)==null?void 0:OJs.OB("html5_max_known_end_time_rebase"),PRA=Number(qx.target_duration_sec)||5,DA_=Number(qx.max_dvr_duration_sec)||14400,UZm=Number(Bo.get("mindsq")||Bo.get("min_sq")||"0"),xZB=Number(Bo.get("maxdsq")||Bo.get("max_sq")||"0")||Infinity;ct.yk=ct.yk||UZm;ct.zv=ct.zv||xZB;var tk_=!JB(yLr.mimeType);Bo&&e2(ct,new j2(Bo,yLr,{eF:PRA,lj:tk_,An:DA_,yk:UZm,zv:xZB,jZ:300,mU:La,BM:euX}))}var mZX=ct}else{if(E6o==="FORMAT_STREAM_TYPE_OTF"){var fv=TOm;fv=fv===void 0? 0:fv;var Ee=new t1("",rq==null?void 0:rq.experiments,!1);Ee.duration=fv||0;for(var Scf=g.n(YC),hXm=Scf.next();!hXm.done;hXm=Scf.next()){var e9=hXm.value,zX2=zP(e9,Bdf,Ee.duration),nym=n0(e9.url,e9.sp,e9.s);if(nym)if(zX2.streamType==="FORMAT_STREAM_TYPE_OTF")e2(Ee,new iB(nym,zX2,"sq/0"));else{var Bxm=UH(e9.init),I8Y=UH(e9.index);e2(Ee,new rE(nym,zX2,Bxm,I8Y))}}Ee.isOtf=!0;var fFL=Ee}else{var Z0=TOm;Z0=Z0===void 0?0:Z0;var ue=new t1("",rq==null?void 0:rq.experiments,!1);ue.duration=Z0||0;for(var ZJL= g.n(YC),di8=ZJL.next();!di8.done;di8=ZJL.next()){var Pn=di8.value,hu8=zP(Pn,Bdf,ue.duration),zuU=UH(Pn.init),n68=UH(Pn.index),uUL=n0(Pn.url,Pn.sp,Pn.s);uUL&&e2(ue,new rE(uUL,hu8,zuU,n68))}fFL=ue}mZX=fFL}var g_2=mZX;if(YC.length>0){var X7U=YC[0];if(this.B().playerStyle==="hangouts-meet"&&X7U.url){var dA8=g.oS(X7U.url);this.iX=this.iX||Number(dA8.expire)}}var sS8=this.isLivePlayback&&!this.mU&&!this.qr&&!this.isPremiere;this.C("html5_live_head_playable")&&(!e0(this)&&sS8&&this.uw("missingLiveHeadPlayable", {}),this.gh.oY==="yt"&&(g_2.RY=!0));pa=g_2}else pa=null;this.uw("pafmts",{isManifestFilled:!!pa})}if(pa){t3(this,pa);var kaw=!0}else kaw=!1;kaw?this.enableServerStitchedDai=this.enableServerStitchedDai&&Pm(this):this.BO&&(this.gh.oY==="yt"&&this.yn()&&this.C("drm_manifestless_unplugged")&&this.C("html5_deprecate_manifestful_fallback")?this.uw("deprecateMflFallback",{}):this.Po=!0)}var s7w=v.adpings;s7w&&(this.uU=s7w?Jh(s7w):null);var cLL=v.feature;cLL&&(this.w8=cLL);var NOs=v.referrer;NOs&&(this.referrer= NOs);this.clientScreenNonce=VC(this.clientScreenNonce,v.csn);this.hA=Kq(this.hA,v.root_ve_type);this.Xy=Kq(this.Xy,v.kids_age_up_mode);this.KK||v.kids_app_info==void 0||(this.kidsAppInfo=v.kids_app_info);this.KK&&v.kids_app_info!=null&&(this.kidsAppInfo=v.kids_app_info);this.bk=GZ(this.bk,v.upg_content_filter_mode);this.unpluggedFilterModeType=Kq(this.unpluggedFilterModeType,v.unplugged_filter_mode_type);var aFX=v.unplugged_location_info;aFX&&(this.oY=aFX);var ALm=v.unplugged_partner_opt_out;ALm&& (this.fN=VC("",ALm));this.gQ=GZ(this.gQ,v.disable_watch_next);this.rF=VC(this.rF,v.internal_ip_override);this.Nu=!!v.is_yto_interstitial;(this.interstitials.length||this.Nu)&&this.dh.push("yto");var FTf=v.e_;FTf&&(this.e_=FTf);var HJF;this.RY=(HJF=v.csi_timer)!=null?HJF:"";this.BV=!!v.force_gvi;v.watchUrl&&(this.watchUrl=v.watchUrl);var Ib=v.watch_endpoint;this.C("html5_attach_watch_endpoint_ustreamer_config")&&Ib&&xJX(this,Ib);if(Ib==null?0:Ib.ustreamerConfig)this.wH=rU(Ib.ustreamerConfig);var MXU, QM8,WT2=Ib==null?void 0:(MXU=Ib.loggingContext)==null?void 0:(QM8=MXU.qoeLoggingContext)==null?void 0:QM8.serializedContextData;WT2&&(this.Ic=WT2);g.Of(this.gh)&&this.gh.DR&&(this.embedsRct=VC(this.embedsRct,v.rct),this.embedsRctn=VC(this.embedsRctn,v.rctn));this.DR=this.DR||!!v.pause_at_start;v.default_active_source_video_id&&(this.defaultActiveSourceVideoId=v.default_active_source_video_id)}; g.q.B=function(){return this.gh}; g.q.C=function(v){return this.gh.C(v)}; g.q.rK=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.q.hasSupportedAudio51Tracks=function(){var v;return!((v=this.rJ)==null||!v.wh)}; g.q.getUserAudio51Preference=function(){var v=1;jv(this.gh)&&this.C("html5_ytv_surround_toggle_default_off")?v=0:g.WL(this.gh)&&this.isLivePlayback&&this.cw()&&(v=0);var J;return(J=g.fq("yt-player-audio51"))!=null?J:v}; g.q.F7=function(){this.Sl()||(this.T.X||this.T.unsubscribe("refresh",this.F7,this),this.yp(-1))}; g.q.yp=function(v){if(!this.isLivePlayback||!this.J||this.J.flavor!=="fairplay"){var J=Ht8(this.T,this.pN);if(J.length>0){for(var G=g.n(J),K=G.next();!K.done;K=G.next())K=K.value,K.startSecs=Math.max(K.startSecs,this.ju()),this.C("html5_cuepoint_identifier_logging")&&K.event==="start"&&this.uw("cuepoint",{pubCue:K.identifier,segNum:v});this.publish("cuepointupdated",J,v);this.pN+=J.length;if(Pm(this)&&this.gh.GG())for(J=g.n(J),G=J.next();!G.done;G=J.next())G=G.value,this.uw("cuepoint",{segNum:v,event:G.event, startSecs:G.startSecs,id:G.identifier.slice(-16)}),G.event==="start"&&(G=G.startSecs,this.Ey.start=this.xB,this.Ey.end=G+3)}}}; g.q.B_=function(){this.Sl()||(this.loading=!1,this.publish("dataloaded"))}; g.q.cw=function(){return this.tB!==void 0?this.tB:this.tB=!!this.k5||!!this.T&&hp(this.T)}; g.q.zf=function(v){var J=this;if(this.Sl())return x6();this.Xm=this.wh=this.Z=null;vz(this,"html5_high_res_logging_always")&&(this.gh.Bv=!0);return kCj(this,v).then(void 0,function(){return Nct(J,v)}).then(void 0,function(){return ae2(J)}).then(void 0,function(){return F3X(J)})}; g.q.bv=function(v){this.Z=v;c28(this,this.Z.getAvailableAudioTracks());if(this.Z){v=g.n(this.Z.videoInfos);for(var J=v.next();!J.done;J=v.next()){J=J.value;var G=J.containerType;G!==0&&(this.MA[G]=J.id)}}T5(this);if(this.J&&this.Z&&this.Z.videoInfos&&!(this.Z.videoInfos.length<=0)&&(v=jl(this.Z.videoInfos[0]),this.J.flavor==="fairplay"!==v))for(J=g.n(this.VT),G=J.next();!G.done;G=J.next())if(G=G.value,v===(G.flavor==="fairplay")){this.J=G;break}}; g.q.DM=function(){if(this.cotn)return null;var v=g.pX(this.gh)||this.C("web_l3_storyboard");if(!this.j4)if(this.playerResponse&&this.playerResponse.storyboards){var J=this.playerResponse.storyboards,G=J.playerStoryboardSpecRenderer;G&&G.spec?this.j4=new cG(G.spec,this.lengthSeconds,void 0,!1,v):(J=J.playerLiveStoryboardSpecRenderer)&&J.spec&&this.T&&(G=N9m(this.T.T).index)&&(this.j4=new aG(J.spec,this.T.isLive,G,v))}else this.TF?this.j4=new cG(this.TF,this.lengthSeconds,void 0,!1,v):this.XC&&this.T&& (J=N9m(this.T.T).index)&&(this.j4=new aG(this.XC,this.T.isLive,J,v));return this.j4}; g.q.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var v=this.playerResponse.storyboards;return(v=v.playerStoryboardSpecRenderer||v.playerLiveStoryboardSpecRenderer)&&v.spec||null}return this.TF||this.XC}; g.q.j3=function(){return this.T&&!isNaN(this.T.j3())?this.T.j3():Pm(this)?0:this.lengthSeconds}; g.q.ju=function(){return this.T&&!isNaN(this.T.ju())?this.T.ju():0}; g.q.getPlaylistSequenceForTime=function(v){if(this.T&&this.X){var J=this.T.T[this.X.id];if(!J)return null;var G=J.index.bz(v);J=J.index.getStartTime(G);return{sequence:G,elapsed:Math.floor((v-J)*1E3)}}return null}; g.q.B1=function(){return!this.Sl()&&!(!this.videoId&&!this.im)}; g.q.b4=function(){var v,J,G;return!!this.adaptiveFormats||!!((v=this.playerResponse)==null?0:(J=v.streamingData)==null?0:(G=J.adaptiveFormats)==null?0:G.length)}; g.q.isLoaded=function(){return HG(this)&&!this.Po&&!this.Aw}; g.q.Us=function(v){v||(v="hqdefault.jpg");var J=this.N[v];return J||this.gh.Ti||v==="pop1.jpg"||v==="pop2.jpg"||v==="sddefault.jpg"||v==="hq720.jpg"||v==="maxresdefault.jpg"?J:MX(this.gh,this.videoId,v)}; g.q.yn=function(){return this.isLivePlayback||this.mU||this.qr||!(!this.liveUtcStartSeconds||!this.Kt)}; g.q.isOtf=function(){return!!this.T&&(this.T.isOtf||!this.mU&&!this.isLivePlayback&&this.T.X)}; g.q.getAvailableAudioTracks=function(){return this.Z?this.Z.getAvailableAudioTracks().length>0?this.Z.getAvailableAudioTracks():this.JV||[]:[]}; g.q.getAudioTrack=function(){var v=this;if(this.L&&!jl(this.L))return g.MS(this.getAvailableAudioTracks(),function(K){return K.id===v.L.id})||this.Vu; if(this.JV){if(!this.pO)for(var J=g.n(this.JV),G=J.next();!G.done;G=J.next())if(G=G.value,G.hR.getIsDefault()){this.pO=G;break}return this.pO||this.Vu}return this.Vu}; g.q.getPlayerResponse=function(){return this.playerResponse}; g.q.getWatchNextResponse=function(){return this.Gi}; g.q.getHeartbeatResponse=function(){return this.Nc}; g.q.lh=function(){return this.watchUrl?this.watchUrl:this.gh.getVideoUrl(this.videoId)}; g.q.Ac=function(){return!!this.T&&(ZtF(this.T)||ujj(this.T)||gGw(this.T))}; g.q.getEmbeddedPlayerResponse=function(){return this.h3}; g.q.N5=function(){return(this.eventLabel||this.gh.Mr)==="shortspage"}; g.q.isAd=function(){return this.dA||!!this.adFormat}; g.q.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.q.i9=function(){var v,J,G;return this.isDaiEnabled()&&!!((v=this.playerResponse)==null?0:(J=v.playerConfig)==null?0:(G=J.daiConfig)==null?0:G.ssaEnabledPlayback)}; g.q.vK=function(){return PzU(this)?this.yx:this.uf||this.Hw}; g.q.dZ=function(){return this.Lj||this.Hw}; g.q.Cg=function(){return vz(this,"html5_samsung_vp9_live")}; g.q.uw=function(v,J,G){this.publish("ctmp",v,J,G)}; g.q.SG=function(v,J,G){this.publish("ctmpstr",v,J,G)}; g.q.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.q.getGetAdBreakContext=function(v,J){v=v===void 0?NaN:v;J=J===void 0?NaN:J;var G={isSabr:YJ(this)},K,V=(K=this.getHeartbeatResponse())==null?void 0:K.adBreakHeartbeatParams;V&&(G.adBreakHeartbeatParams=V);if(this.C("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.T&&!isNaN(v)&&!isNaN(J)){J=v-J;for(var Y in this.T.T)if(K=this.T.T[Y],K.info.Vk()||K.info.Xj())if(K=K.index,K.isLoaded()){Y=K.bz(J);K=K.IA(Y)+J-K.getStartTime(Y);this.uw("gabc",{t:v.toFixed(3),mt:J.toFixed(3),sg:Y,igt:K.toFixed(3)}); G.livePlaybackPosition={utcTimeMillis:""+(K*1E3).toFixed(0)};break}}return G}; g.q.isEmbedsShortsMode=function(v,J){if(!g.Of(this.gh)||(this.gh.Ze||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||J)return!1;var G,K;return!!(((G=this.embeddedPlayerConfig)==null?0:(K=G.embeddedPlayerFlags)==null?0:K.isShortsExperienceEligible)&&v.width<=v.height)}; g.q.X4=function(){g.qU.prototype.X4.call(this);this.uU=null;delete this.Sk;delete this.accountLinkingConfig;delete this.T;this.Z=this.Nc=this.playerResponse=this.Gi=null;this.Es=this.adaptiveFormats="";delete this.botguardData;this.o$=this.suggestions=this.QL=null;this.sabrContextUpdates.clear()};var nRf={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},dWt={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},hJf={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},teF={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"},IqB={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},B2B={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"},zJX={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(qy,g.X);g.q=qy.prototype;g.q.handleExternalCall=function(v,J,G){var K=this.state.K[v],V=this.state.U[v],Y=K;if(V)if(G&&jb(G,$$X))Y=V;else if(!K)throw Error('API call from an untrusted origin: "'+G+'"');this.logApiCall(v,G);if(Y){G=!1;K=g.n(J);for(V=K.next();!V.done;V=K.next())if(String(V.value).includes("javascript:")){G=!0;break}G&&g.Zl(Error('Dangerous call to "'+v+'" with ['+J+"]."));return Y.apply(this,J)}throw Error('Unknown API method: "'+v+'".');}; g.q.logApiCall=function(v,J,G){var K=this.app.B();K.Xy&&!this.state.N.has(v)&&(this.state.N.add(v),g.ql("webPlayerApiCalled",{callerUrl:K.loaderUrl,methodName:v,origin:J||void 0,playerStyle:K.playerStyle||void 0,embeddedPlayerMode:K.Ze,errorCode:G}))}; g.q.publish=function(v){var J=g.Om.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[v].concat(g.l(J)));if(v==="videodatachange"||v==="resize"||v==="cardstatechange")this.state.X.publish.apply(this.state.X,[v].concat(g.l(J))),this.state.L.publish.apply(this.state.L,[v].concat(g.l(J)))}; g.q.lw=function(v){var J=g.Om.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[v].concat(g.l(J)));this.state.X.publish.apply(this.state.X,[v].concat(g.l(J)))}; g.q.Tr=function(v){var J=g.Om.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[v].concat(g.l(J)));this.state.X.publish.apply(this.state.X,[v].concat(g.l(J)));this.state.L.publish.apply(this.state.L,[v].concat(g.l(J)))}; g.q.UN=function(v){var J=g.Om.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[v].concat(g.l(J)));this.state.X.publish.apply(this.state.X,[v].concat(g.l(J)));this.state.L.publish.apply(this.state.L,[v].concat(g.l(J)));this.state.J.publish.apply(this.state.J,[v].concat(g.l(J)))}; g.q.C=function(v){return this.app.B().C(v)}; g.q.X4=function(){if(this.state.element){var v=this.state.element,J;for(J in this.state.T)this.state.T.hasOwnProperty(J)&&(v[J]=null);this.state.element=null}g.X.prototype.X4.call(this)};g.z(tK,g.L7);tK.prototype.publish=function(v){var J=g.Om.apply(1,arguments);if(this.J.has(v))return this.J.get(v).push(J),!0;var G=!1;try{for(J=[J],this.J.set(v,J);J.length;)G=g.L7.prototype.publish.call.apply(g.L7.prototype.publish,[this,v].concat(g.l(J.shift())))}finally{this.J.delete(v)}return G};g.z(Bz,g.X);Bz.prototype.X4=function(){this.J.dispose();this.L.dispose();this.X.dispose();this.Z.dispose();this.N=this.T=this.U=this.K=this.j=void 0};var yXt=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.z(hK,qy);g.q=hK.prototype;g.q.getApiInterface=function(){return Array.from(this.state.j)}; g.q.xJ=function(v,J){this.state.J.subscribe(v,J)}; g.q.Rdi=function(v,J){this.state.J.unsubscribe(v,J)}; g.q.getPlayerState=function(v){return PY8(this.app,v)}; g.q.lA=function(){return PY8(this.app)}; g.q.QKw=function(v,J,G){dr(this)&&(x0(this.app,!0,1),fc(this.app,v,J,G,1))}; g.q.getCurrentTime=function(v,J,G){var K=this.getPlayerState(v);if(this.app.getAppState()===2&&K===5){var V;return((V=this.app.getVideoData())==null?void 0:V.startSeconds)||0}return this.C("web_player_max_seekable_on_ended")&&K===0?qs8(this.app,v):v?this.app.getCurrentTime(v,J,G):this.app.getCurrentTime(v)}; g.q.Ga=function(){return this.app.getCurrentTime(1)}; g.q.x0=function(){var v=this.app.IA(1);return isNaN(v)?this.getCurrentTime(1):v}; g.q.IT=function(){return this.app.getDuration(1)}; g.q.p9=function(v,J){v=g.nk(Math.floor(v),0,100);isFinite(v)&&ln(this.app,{volume:v,muted:this.isMuted()},J)}; g.q.ymr=function(v){this.p9(v,!1)}; g.q.s7=function(v){ln(this.app,{muted:!0,volume:this.getVolume()},v)}; g.q.PdH=function(){this.s7(!1)}; g.q.Ot=function(v){nm(this.app)&&!this.C("embeds_enable_emc3ds_muted_autoplay")||ln(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},v)}; g.q.gPw=function(){nm(this.app)&&this.C("embeds_enable_emc3ds_muted_autoplay")||this.Ot(!1)}; g.q.getPlayerMode=function(){var v={};this.app.getVideoData().aR&&(v.pfp={enableIma:g.GT(this.app.getVideoData())&&this.app.O$().allowImaMonetization,autoplay:XH(this.app.O$()),mutedAutoplay:this.app.O$().mutedAutoplay});return v}; g.q.MK=function(){var v=this.app.getPresentingPlayerType();if(v===2&&!this.app.cG()){var J=zo(this.app.c$());if(!Pjm(J)||DLA(J))return}v===3?this.app.QB().tV.playVideo():this.app.B().C("html5_ssap_ignore_play_for_ad")&&g.WG(this.app.O$())&&v===2||this.app.playVideo(v)}; g.q.bql=function(){x0(this.app,!0,1);this.MK()}; g.q.pauseVideo=function(v){var J=this.app.getPresentingPlayerType();if(J!==2||this.app.cG()||Pjm(zo(this.app.c$())))J===3?this.app.QB().tV.pauseVideo():this.app.pauseVideo(J,v)}; g.q.isH=function(){var v=this.app,J=!1;v.EB.yy&&(v.kB.publish("pageTransition"),J=!0);v.stopVideo(J)}; g.q.clearVideo=function(){}; g.q.getAvailablePlaybackRates=function(){var v=this.app.B();return v.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(v.L?v.ancestorOrigins[0]:window.location.origin)||v.eT?OFL:v.supportsVarispeedExtendedFeatures?U7F:v.C("web_remix_allow_up_to_3x_playback_rate")&&g.gy(v)?x7G:RN:[1]}; g.q.getPlaybackQuality=function(v){return(v=this.app.oH(v))?v.getPlaybackQuality():"unknown"}; g.q.Mfr=function(){}; g.q.getAvailableQualityLevels=function(v){return(v=this.app.oH(v))?(v=g.yn(v.tJ(),function(J){return J.quality}),v.length&&(v[0]==="auto"&&v.shift(),v=v.concat(["auto"])),v):[]}; g.q.k0=function(){return this.getAvailableQualityLevels(1)}; g.q.NJ=function(){return this.Tp()}; g.q.wX=function(){return 1}; g.q.getVideoLoadedFraction=function(v){return this.app.getVideoLoadedFraction(v)}; g.q.Tp=function(){return this.getVideoLoadedFraction()}; g.q.u4i=function(){return 0}; g.q.getSize=function(){var v=this.app.f7().getPlayerSize();return{width:v.width,height:v.height}}; g.q.setSize=function(){this.app.f7().resize()}; g.q.loadVideoById=function(v,J,G,K){if(!v)return!1;v=IQ(v,J,G);return this.app.loadVideoByPlayerVars(v,K)}; g.q.p$l=function(v,J,G){v=this.loadVideoById(v,J,G,1);x0(this.app,v,1)}; g.q.cueVideoById=function(v,J,G,K){v=IQ(v,J,G);this.app.cueVideoByPlayerVars(v,K)}; g.q.jx=function(v,J,G){this.cueVideoById(v,J,G,1)}; g.q.loadVideoByUrl=function(v,J,G,K){v=LXw(v,J,G);return this.app.loadVideoByPlayerVars(v,K)}; g.q.vyU=function(v,J,G){v=this.loadVideoByUrl(v,J,G,1);x0(this.app,v,1)}; g.q.cueVideoByUrl=function(v,J,G,K){v=LXw(v,J,G);this.app.cueVideoByPlayerVars(v,K)}; g.q.kO=function(v,J,G){this.cueVideoByUrl(v,J,G,1)}; g.q.Tht=function(){var v=this.app.B();if(v.Ti)return"";var J=this.app.O$(),G=void 0;J.isLivePlayback||(G=Math.floor(this.app.getCurrentTime(1)));return v.getVideoUrl(J.videoId,this.getPlaylistId()||void 0,G)}; g.q.Uv=function(){return this.app.getDebugText()}; g.q.getVideoEmbedCode=function(){var v=this.app.B();if(v.Ti)return"";var J=this.app.O$();return v.getVideoEmbedCode(J.isPrivate?"":J.title,this.app.O$().videoId,this.app.f7().getPlayerSize(),this.getPlaylistId()||void 0)}; g.q.B5=function(v,J,G){return dtr(this.app,v,J,G)}; g.q.removeCueRange=function(v){return R4L(this.app,v)}; g.q.loadPlaylist=function(v,J,G,K){this.app.loadPlaylist(v,J,G,K)}; g.q.dil=function(v,J,G,K){this.loadPlaylist(v,J,G,K);x0(this.app,!0,1)}; g.q.cuePlaylist=function(v,J,G,K){this.app.cuePlaylist(v,J,G,K)}; g.q.nextVideo=function(v,J){this.app.nextVideo(v,J)}; g.q.O0t=function(){this.nextVideo();x0(this.app,!0,1)}; g.q.previousVideo=function(v){this.app.previousVideo(v)}; g.q.stw=function(){this.previousVideo();x0(this.app,!0,1)}; g.q.playVideoAt=function(v){this.app.playVideoAt(v)}; g.q.tii=function(v){this.playVideoAt(v);x0(this.app,!0,1)}; g.q.setShuffle=function(v){var J=this.app.getPlaylist();J&&J.setShuffle(v)}; g.q.setLoop=function(v){var J=this.app.getPlaylist();J&&(J.loop=v)}; g.q.VJ=function(){var v=this.app.getPlaylist();if(!v)return null;for(var J=[],G=0;G=400)if(v=this.O$(),this.S.B().C("client_respect_autoplay_switch_button_renderer"))v=!!v.autoplaySwitchButtonRenderer;else{var J,G,K,V;v=!!((J=v.getWatchNextResponse())==null?0:(G=J.contents)==null?0:(K=G.twoColumnWatchNextResults)==null?0:(V=K.autoplay)==null?0:V.autoplay)!==!1}if(v)this.T||(this.T=!0,this.tP(this.T),this.S.B().C("web_player_autonav_toggle_always_listen")||inm(this), J=this.O$(),this.xo(J.autonavState),this.S.logVisibility(this.element,this.T));else if(this.T=!1,this.tP(this.T),!this.S.B().C("web_player_autonav_toggle_always_listen"))for(this.S.B().C("web_player_autonav_toggle_always_listen"),J=g.n(this.X),G=J.next();!G.done;G=J.next())this.YL(G.value)}; g.q.xo=function(v){vzj(this)?this.isChecked=v!==1:((v=v!==1)||(g.c8(),v=g.dx("web_autonav_allow_off_by_default")&&!g.Nk(0,141)&&g.H$("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Nk(0,140)),this.isChecked=v);$bF(this)}; g.q.onClick=function(){this.isChecked=!this.isChecked;this.S.rI(this.isChecked?2:1);$bF(this);if(vzj(this)){var v=this.O$().autoplaySwitchButtonRenderer;this.isChecked&&(v==null?0:v.onEnabledCommand)?this.S.lw("innertubeCommand",v.onEnabledCommand):!this.isChecked&&(v==null?0:v.onDisabledCommand)&&this.S.lw("innertubeCommand",v.onDisabledCommand)}this.S.logClick(this.element)}; g.q.getValue=function(){return this.isChecked}; g.q.O$=function(){return this.S.getVideoData(1)};g.z(JnU,$w);g.z(Yw,g.Cm);Yw.prototype.onClick=function(){this.enabled&&(rm(this,!this.checked),this.publish("select",this.checked))}; Yw.prototype.getValue=function(){return this.checked}; Yw.prototype.setEnabled=function(v){(this.enabled=v)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var ozt=["en-CA","en","es-MX","fr-CA"];g.z(Bd,Yw);Bd.prototype.De=function(v){v?this.T||(this.Mi.Dv(this),this.T=!0):this.T&&(this.Mi.NI(this),this.T=!1);this.T&&rm(this,hoX())}; Bd.prototype.L=function(){g.rz(this.element,"ytp-menuitem-highlight-transition-enabled")}; Bd.prototype.Z=function(v){var J=hoX();v!==J&&(J=g.c8(),AD(190,v),AD(192,!0),J.save(),this.S.lw("cinematicSettingsToggleChange",v))}; Bd.prototype.X4=function(){this.T&&this.Mi.NI(this);Yw.prototype.X4.call(this)};g.z(IT,$w);IT.prototype.updateCinematicSettings=function(v){this.T=v;var J;(J=this.menuItem)==null||J.De(v);this.api.publish("onCinematicSettingsVisibilityChange",v)};g.z(Yu2,$w);g.z(hr,$w);hr.prototype.setCreatorEndscreenVisibility=function(v){var J;(J=RV(this.api.c$()))==null||J.tP(v)}; hr.prototype.T=function(v){function J(K){K==="creatorendscreen"&&(K=RV(G.api.c$()))&&K.p8B(G.hideButton)} var G=this;this.hideButton=v;this.events.G(this.api,"modulecreated",J);J("creatorendscreen")};g.z(z0,Yw);z0.prototype.Z=function(v){this.L(v?1:0)}; z0.prototype.X=function(){var v=this.hasDrcAudioTrack(),J=this.T()===1&&v;rm(this,J);this.setEnabled(v)}; z0.prototype.X4=function(){this.Mi.NI(this);Yw.prototype.X4.call(this)};g.z(nz,$w);nz.prototype.getDrcUserPreference=function(){return this.T}; nz.prototype.setDrcUserPreference=function(v){g.SW("yt-player-drc-pref",v,31536E3);v!==this.T&&(this.T=v,this.updateEnvironmentData(),this.X()&&this.api.YC())}; nz.prototype.updateEnvironmentData=function(){this.api.B().E9=this.T===1}; nz.prototype.X=function(){var v,J,G=(v=this.api.getVideoData())==null?void 0:(J=v.Z)==null?void 0:J.T;if(!G)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.C("mta_drc_mutual_exclusion_removal")){var K,V,Y=(K=this.api.LX())==null?void 0:(V=K.hR)==null?void 0:V.id;return yM(G,function(r){var E;return r.audio.T&&((E=r.hR)==null?void 0:E.id)===Y})}return yM(G,function(r){var E; return((E=r.audio)==null?void 0:E.T)===!0})};g.z(dm,$w);dm.prototype.onVideoDataChange=function(){var v=this,J=this.api.getVideoData();this.api.RA("embargo",1);var G=J==null?void 0:J.T9.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(G==null?0:G.length)?quB(this,G.filter(function(K){return rnm(v,K)})):(J==null?0:J.cueRanges)&&quB(this,J.cueRanges.filter(function(K){return rnm(v,K)}))}; dm.prototype.X=function(v){return v.embargo!==void 0}; dm.prototype.X4=function(){$w.prototype.X4.call(this);this.T={}};g.z(RT,$w); RT.prototype.addEmbedsConversionTrackingParams=function(v){var J=this.api.B(),G=J.widgetReferrer,K=J.BH,V=this.T,Y="",r=J.getWebPlayerContextConfig();r&&(Y=r.embedsIframeOriginParam||"");G.length>0&&(v.embeds_widget_referrer=G);K.length>0&&(v.embeds_referring_euri=K);J.L&&Y.length>0&&(v.embeds_referring_origin=Y);r&&r.embedsFeature&&(v.feature=r.embedsFeature);V.length>0&&(J.C("embeds_web_enable_lite_experiment_control_arm_logging")?V.unshift(28572):g.E9(g.X9(J))&&V.unshift(159628),J=V.join(","),J= g.FX()?J:g.z6(J,4),v.source_ve_path=J);this.T.length=0};g.z(Ezw,$w);g.z(ecB,$w);g.z(lk,g.X);lk.prototype.X4=function(){g.X.prototype.X4.call(this);this.T=null;this.X&&this.X.disconnect()};g.z(DbB,$w);g.z(T0,g.F);T0.prototype.show=function(){g.F.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; T0.prototype.onVideoDataChange=function(v){var J,G,K=(J=this.api.getVideoData())==null?void 0:(G=J.getPlayerResponse())==null?void 0:G.playabilityStatus;K&&(J=tZt(K),g.H(this.api.getPlayerStateObject(),128)||v==="dataloaderror"||!J?(this.X=0,pz(this),this.hide()):(v=(J.remainingTimeSecs||0)*1E3,v>0&&(this.show(),this.updateValue("label",dt(J.label)),I1w(this,v))))}; T0.prototype.X4=function(){pz(this);g.F.prototype.X4.call(this)};g.z(hcX,$w);g.z(Lz,g.F);Lz.prototype.onClick=function(){this.kB.logClick(this.element);this.kB.lw("onFullerscreenEduClicked")}; Lz.prototype.De=function(){this.kB.isFullscreen()?this.T?this.fade.hide():this.fade.show():this.hide();this.kB.logVisibility(this.element,this.kB.isFullscreen()&&!this.T)};g.z(ye,$w);ye.prototype.updateFullerscreenEduButtonSubtleModeState=function(v){var J;(J=this.T)!=null&&(g.E3(J.element,"ytp-fullerscreen-edu-button-subtle",v),v&&!J.X&&(J.element.setAttribute("title","Scroll for details"),Lm(J.kB,J.element,J),J.X=!0))}; ye.prototype.updateFullerscreenEduButtonVisibility=function(v){var J;(J=this.T)!=null&&(J.T=v,J.De())};g.z(zct,g.F);g.z(shF,$w);g.z(wm,$w);wm.prototype.getSphericalProperties=function(){var v=g.Zw(this.api.c$());return v?v.getSphericalProperties():{}}; wm.prototype.setSphericalProperties=function(v){if(v){var J=g.Zw(this.api.c$());J&&J.setSphericalProperties(v,!0)}};g.z(Ov,$w);g.q=Ov.prototype;g.q.createClientVe=function(v,J,G,K){this.api.createClientVe(v,J,G,K===void 0?!1:K)}; g.q.createServerVe=function(v,J,G){this.api.createServerVe(v,J,G===void 0?!1:G)}; g.q.setTrackingParams=function(v,J){this.api.setTrackingParams(v,J)}; g.q.logClick=function(v,J){this.api.logClick(v,J)}; g.q.logVisibility=function(v,J,G){this.api.logVisibility(v,J,G)}; g.q.hasVe=function(v){return this.api.hasVe(v)}; g.q.destroyVe=function(v){this.api.destroyVe(v)};var l1s=!1;xw.prototype.setPlaybackRate=function(v){this.playbackRate=Math.max(1,v)}; xw.prototype.getPlaybackRate=function(){return this.playbackRate};uk.prototype.xb=function(v){var J=g.iS(v.info.T.info,this.Jt.yn),G=v.info.yb+this.L,K=v.info.startTime*1E3;if(this.policy.BH)try{K=this.policy.BH?g.J1(v)*1E3:v.info.startTime*1E3}catch(r){Math.random()>.99&&this.logger&&(K=lP(v.T).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:v.info.vO(),encodedDataView:g.hE(K,4)})),K=v.info.startTime*1E3}var V=v.info.clipId,Y=this.policy.BH?g.dGf(v)*1E3:v.info.duration*1E3;this.policy.BH&&(K<0||Y<0)&&(this.logger&&(this.logger({missingSegInfo:v.info.vO(), startTimeMs:K,durationMs:Y}),this.policy.zx||(K<0&&(K=v.info.startTime*1E3),Y<0&&(Y=v.info.duration*1E3))),this.policy.zx&&(K<0&&(K=v.info.startTime*1E3),Y<0&&(Y=v.info.duration*1E3)));return{formatId:J,yb:G,startTimeMs:K,clipId:V,i7:Y}}; uk.prototype.S_=function(v){this.timestampOffset=v};kw.prototype.seek=function(v,J){v!==this.T&&(this.seekCount=0);this.T=v;var G=this.videoTrack.X,K=this.audioTrack.X,V=this.audioTrack.JR,Y=Ntt(this,this.videoTrack,v,this.videoTrack.JR,J);J=Ntt(this,this.audioTrack,this.policy.Mj?v:Y,V,J);v=Math.max(v,Y,J);this.J=!0;this.Jt.isManifestless&&(uoF(this,this.videoTrack,G),uoF(this,this.audioTrack,K));return v}; kw.prototype.isSeeking=function(){return this.J}; kw.prototype.gi=function(v){this.Z=v}; var cns=2/24;var F1m=0;g.q=bk.prototype;g.q.uN=function(){this.N=this.now();cZU(this.qX,this.N);this.eX.uN()}; g.q.OX=function(v,J){var G=this.policy.X?(0,g.yR)():0;jU(this,v,J);v-this.j<10&&this.X>0||this.Ea(v,J);this.eX.OX(v,J);this.policy.X&&(v=(0,g.yR)()-G,this.g_+=v,this.Nr=Math.max(v,this.Nr))}; g.q.Ea=function(v,J){var G=(v-this.j)/1E3,K=J-this.Z;this.q0||(dU(this.qX,G,K),this.Xe(G,K));this.j=v;this.Z=J}; g.q.Gy=function(){this.Ze&&Hnw(this);this.eX.Gy()}; g.q.iO=function(v){this.Ze||(this.Ze=this.J-this.R$+v,this.a$=this.J,this.Vn=this.K)}; g.q.tZ=function(v,J){v=v===void 0?this.K:v;J=J===void 0?this.J:J;this.X>0||(this.U=v,this.X=J,this.oY=this.isActive=!0)}; g.q.PY=function(){return this.BG||2}; g.q.zw=function(){}; g.q.w2=function(){var v,J={rn:this.requestNumber,rt:(this.K-this.T).toFixed(),lb:this.J,stall:(1E3*this.L).toFixed(),ht:(this.N-this.T).toFixed(),elt:(this.U-this.T).toFixed(),elb:this.X,d:(v=this.Mr)==null?void 0:v.M$()};this.url&&Rcw(J,this.url);this.policy.X&&(J.mph=this.Nr.toFixed(),J.tph=this.g_.toFixed());J.ulb=this.qr;J.ult=this.Ti;J.abw=this.BH;return J}; g.q.now=function(){return(0,g.yR)()}; g.q.deactivate=function(){this.isActive&&(this.isActive=!1)};g.z($U,bk);g.q=$U.prototype;g.q.w2=function(){var v=bk.prototype.w2.call(this);v.pb=this.Zx;v.pt=(1E3*this.wh).toFixed();v.se=this.OR;return v}; g.q.Fy=function(){var v=this.eX;this.xB||(this.xB=v.Fy?v.Fy():1);return this.xB}; g.q.Mh=function(){return this.gW?this.Fy()!==1:!1}; g.q.QH=function(v,J,G){if(!this.UR){this.UR=!0;if(!this.q0){jU(this,v,J);this.Ea(v,J);var K=this.Fy();this.OR=G;if(!this.q0)if(K===2){K=v-this.U0)||v2(this,K,J),this.X>0&&zW(this.qX, J,this.L));v=(v-this.T)/1E3||.01;this.policy.U&&!(this.X>0)||hM(this.qX,v,this.Z,Qhm(this),this.fd)}this.deactivate()}}; g.q.NV=function(v,J,G){G&&(this.xB=2);v<0&&this.BG&&(v=this.BG);J?this.RY+=v:this.Gi+=v}; g.q.PY=function(){return this.Gi||this.RY||bk.prototype.PY.call(this)}; g.q.Ea=function(v,J){var G=(v-this.j)/1E3,K=J-this.Z,V=this.Fy();this.isActive?V===1&&((K>0||this.policy.J)&&(G>.2||K<1024)?(this.L+=G,K>0&&G>.2&&v2(this,this.pD?G:.05,K),this.o$=!0):K>0&&(v2(this,G,K),this.o$=!0)):J&&J>=this.policy.T&&this.tZ(v,J);bk.prototype.Ea.call(this,v,J)}; g.q.Jx=function(v){if(!this.q0){jU(this,v,this.J);var J=(v-this.T)/1E3;this.Fy()!==2&&this.X>0&&(this.L+=(v-this.j)/1E3,zW(this.qX,this.Z,this.L));hM(this.qX,J,this.Z,Qhm(this),this.fd,!0);v=(v-this.j)/1E3;dU(this.qX,v,0);this.Xe(v,0)}}; g.q.tZ=function(v,J){v=v===void 0?this.K:v;J=J===void 0?this.J:J;if(!(this.X>0)&&(bk.prototype.tZ.call(this,v,J),this.Fy()===1)){J=(this.N-this.T)/1E3;var G=(v-this.N)/1E3;this.gW&&Jy(this,this.now());this.d_||this.q0||(this.BG&&(G=Math.max(0,G-this.BG)),v=this.qX,v.U.dP(1,J),v.Mr.dP(1,G))}}; g.q.VO=function(){this.gW&&Jy(this,this.now());return this.jl}; g.q.FC=function(){var v;if(v=this.Z>this.Qc)v=(v=this.Z)?v>=this.policy.T:!1;return v}; g.q.Ne=function(){return this.WH}; g.q.RW=function(v){v=v===void 0?this.now():v;if(this.gW){Jy(this,v);if(this.xB?this.Mh():this.dh!==this.YB){var J=this.YB;if(v0?G+v:G+Math.max(v,J)}; g.q.DQ=function(){return this.now()-this.U}; g.q.po=function(){return(this.Z-this.X)*1E3/this.DQ()||0}; g.q.fA=function(){return this.U};Gh.prototype.feed=function(v){np(this.T,v);this.J7()}; Gh.prototype.J7=function(){if(this.L){if(!this.T.getLength())return;var v=this.T.split(this.Z-this.X),J=v.MS;v=v.Fa;if(!this.eX.iO(this.L,J,this.X,this.Z))return;this.X+=J.getLength();this.T=v;this.X===this.Z&&(this.L=this.Z=this.X=void 0)}for(;;){var G=0;v=g.n(j3w(this.T,G));J=v.next().value;G=v.next().value;G=g.n(j3w(this.T,G));v=G.next().value;G=G.next().value;if(J<0||v<0)break;if(!this.T.Av(G,v)){if(!this.eX.iO||!this.T.Av(G,1))break;G=this.T.split(G).Fa;this.eX.iO(J,G,0,v)&&(this.L=J,this.X= G.getLength(),this.Z=v,this.T=new zp([]));break}v=this.T.split(G).Fa.split(v);G=v.Fa;this.eX.W_(J,v.MS);this.T=G}}; Gh.prototype.dispose=function(){this.T=new zp};g.q=oq.prototype;g.q.WW=function(){return 0}; g.q.Up=function(){return null}; g.q.Rb=function(){return null}; g.q.FY=function(){return this.state>=1}; g.q.isComplete=function(){return this.state>=3}; g.q.Xa=function(){return this.state===5}; g.q.onStateChange=function(){}; g.q.l9=function(v){var J=this.state;this.state=v;this.onStateChange(J);this.callback&&this.callback(this,J)}; g.q.Ur=function(v){v&&this.state=this.xhr.HEADERS_RECEIVED}; g.q.getResponseHeader=function(v){try{return this.xhr.getResponseHeader(v)}catch(J){return""}}; g.q.mp=function(){return+this.getResponseHeader("content-length")}; g.q.NZ=function(){return this.X}; g.q.y3=function(){return this.status>=200&&this.status<300&&!!this.X}; g.q.AS=function(){return this.T.getLength()>0}; g.q.IU=function(){var v=this.T;this.T=new zp;return v}; g.q.e8=function(){return this.T}; g.q.abort=function(){this.Sl=!0;this.xhr.abort()}; g.q.Fe=function(){return!0}; g.q.Jy=function(){return this.Z}; g.q.qL=function(){return""};g.q=Jp8.prototype;g.q.getResponseHeader=function(v){return v==="content-type"?this.T.get("type"):""}; g.q.abort=function(){}; g.q.MV=function(){return!0}; g.q.mp=function(){return this.range.length}; g.q.NZ=function(){return this.loaded}; g.q.y3=function(){return!!this.loaded}; g.q.AS=function(){return!!this.X.getLength()}; g.q.IU=function(){var v=this.X;this.X=new zp;return v}; g.q.e8=function(){return this.X}; g.q.Fe=function(){return!0}; g.q.Jy=function(){return!!this.error}; g.q.qL=function(){return this.error};g.q=oVs.prototype;g.q.start=function(v){var J={credentials:"include",cache:"no-store"};Object.assign(J,this.K);this.L&&(J.signal=this.L.signal);v=new Request(v,J);fetch(v).then(this.N,this.onError).then(void 0,rI)}; g.q.onDone=function(){this.Sl()||this.eX.Gy()}; g.q.getResponseHeader=function(v){return this.responseHeaders?this.responseHeaders.get(v):null}; g.q.MV=function(){return!!this.responseHeaders}; g.q.NZ=function(){return this.X}; g.q.mp=function(){return+this.getResponseHeader("content-length")}; g.q.y3=function(){return this.status>=200&&this.status<300&&!!this.X}; g.q.AS=function(){return!!this.T.getLength()}; g.q.IU=function(){this.AS();var v=this.T;this.T=new zp;return v}; g.q.e8=function(){this.AS();return this.T}; g.q.Sl=function(){return this.J}; g.q.abort=function(){this.Z&&this.Z.cancel().catch(function(){}); this.L&&this.L.abort();this.J=!0}; g.q.Fe=function(){return!0}; g.q.Jy=function(){return this.j}; g.q.qL=function(){return this.errorMessage};g.q=KLF.prototype;g.q.onDone=function(){if(!this.Sl){this.status=this.xhr.status;try{this.response=this.xhr.response,this.X=this.response.byteLength}catch(v){}this.T=!0;this.eX.Gy()}}; g.q.r9=function(){this.xhr.readyState===2&&this.eX.uN()}; g.q.V9=function(v){this.Sl||(this.status=this.xhr.status,this.T||(this.X=v.loaded),this.eX.OX((0,g.yR)(),v.loaded))}; g.q.MV=function(){return this.xhr.readyState>=2}; g.q.getResponseHeader=function(v){try{return this.xhr.getResponseHeader(v)}catch(J){return g.Zl(Error("Could not read XHR header "+v)),""}}; g.q.mp=function(){return+this.getResponseHeader("content-length")}; g.q.NZ=function(){return this.X}; g.q.y3=function(){return this.status>=200&&this.status<300&&this.T&&!!this.X}; g.q.AS=function(){return this.T&&!!this.response&&!!this.response.byteLength}; g.q.IU=function(){this.AS();var v=this.response;this.response=void 0;return new zp([new Uint8Array(v)])}; g.q.e8=function(){this.AS();return new zp([new Uint8Array(this.response)])}; g.q.abort=function(){this.Sl=!0;this.xhr.abort()}; g.q.Fe=function(){return!1}; g.q.Jy=function(){return!1}; g.q.qL=function(){return""};g.rZ.prototype.info=function(){}; g.rZ.prototype.debug=function(){}; g.rZ.prototype.T=function(v){q8.apply(null,[5,this.tag,v].concat(g.l(g.Om.apply(1,arguments))))}; var rpf=new Map,eGj=new Map,q18=new function(){var v=this;this.T=new Map;this.cO={OO7:function(){return v.T}}};g.z(Eh,g.X);Eh.prototype.qZ=function(){if(!this.N1.length)return[];var v=this.N1;this.N1=[];this.Z=g.F8(v).info;return v}; Eh.prototype.Yq=function(){return this.N1}; Eh.prototype.X4=function(){g.X.prototype.X4.call(this);this.T=null;this.N1.length=0;this.Vb.length=0;this.Z=null};g.z(P2,g.X);g.q=P2.prototype; g.q.r0B=function(){if(!this.Sl()){var v=(0,g.yR)(),J=!1;if(this.policy.mz){v=v-(this.timing.X>0?this.timing.U:this.timing.T)-this.timing.PY()*1E3;var G=d4(DL(this),!1);v>=2E3*G?J=!0:v>=this.policy.uf*G&&(this.T=this.policy.SF)}else if(this.timing.X>0){if(this.J){this.policy.Vn&&(this.T=0);return}var K=this.timing.Ne();this.timing.RW();var V=this.timing.Ne();V-K>=this.policy.HG*.8?(this.T++,this.logger.debug(function(){return"Mispredicted by "+(V-K).toFixed(0)}),J=this.T>=5):this.T=0}else{var Y=v- this.timing.VO(); this.policy.SF&&Y>0&&(this.T+=1);J=d4(DL(this),!1)*this.policy.Yf;(J=Y>J*1E3)&&this.logger.debug(function(){return"Elbow late by "+Y.toFixed(3)})}this.T>0&&this.eX.mD(); J?this.KB():this.X.start()}}; g.q.KB=function(){this.L=!0;this.eX.Jl();this.lastError="net.timeout";B2(this)}; g.q.canRetry=function(v){var J=DL(this);v=v?this.policy.TF:this.policy.dG;return J.timedOut0&&(J=J.T.getUint8(0),v.ubyte=J,G===1&&J===0&&(v.b248180278=!0))}this.PG&&(v.rc=this.policy.U2?this.PG:this.PG.toString());this.policy.qj&&this.uu&&(v.tr=this.uu);v.itag=this.info.Vb[0].T.info.itag;v.ml=""+ +this.info.Vb[0].T.U9();v.sq=""+this.info.Vb[0].yb;this.yj&&(v.ifi=""+ +w3(this.info.v$.Z));this.PG!==410&&this.PG!==500&&this.PG!==503||(v.fmt_unav="true");var K;(G=this.errorMessage||((K=this.xhr)==null? void 0:K.qL()))&&(v.msg=G);this.Yd&&(v.smb="1");this.info.isDecorated()&&(v.sdai="1");return v}; g.q.CA=function(){return W1w(this.timing)}; g.q.qL=function(){return this.xhr.qL()||""}; g.q.FC=function(){return this.isComplete()||this.timing.FC()}; g.q.OX=function(){!this.Sl()&&this.xhr&&(this.PG=this.xhr.status,this.policy.WL&&this.Cq&&this.oE(!1),this.vV()?this.Ur(2):!this.jH&&this.FC()&&(this.Ur(),this.jH=!0))}; g.q.uN=function(){if(!this.Sl()&&this.xhr){if(!this.Nt&&this.xhr.MV()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var v=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Nt=((0,g.yR)()-v)/1E3}this.xhr.MV()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.ZT&&!xVw()&&g.SW("yt-player-headers-readable",!0,2592E3);v=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var J=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),G;(G=this.r6)==null||G.stop();this.Ba=v||this.Ba; this.t5=J||this.t5}}; g.q.Gy=function(){var v=this.xhr;if(!this.Sl()&&v){this.PG=v.status;v=this.z3(v);if(this.policy.qj){var J;(J=this.r6)==null||J.stop()}v===5?B2(this.CK):this.l9(v);this.CK.X.stop()}}; g.q.z3=function(v){var J=this;ApB(this);if(Iq(this.CK,this.xhr.status,this.Wn?this.timing.oY||this.P3:this.xhr.y3(),!1,this.Jv))return 5;var G="";hy(this.CK,this.xhr)&&(G=hGm(this.CK,this.xhr));if(G)return nb(DL(this.CK)),this.info.Vt(this.yj,G),3;G=v.NZ();if(this.JS){this.oE(!0);ApB(this);if(Iq(this.CK,this.xhr.status,this.timing.oY||this.P3,!1,this.Jv))return 5;if(!this.n6){if(this.P3)return nb(DL(this.CK)),3;this.CK.lastError="net.closed";return 5}}else{if(Iq(this.CK,this.xhr.status,this.xhr.y3(), !1,this.Jv))return 5;var K=this.info.Z;if(K&&K!==G||v.Jy())return this.CK.lastError="net.closed",5;this.oE(!0)}K=iHw(this)?v.getResponseHeader("X-Bandwidth-Est"):0;if(v=iHw(this)?v.getResponseHeader("X-Bandwidth-Est3"):0)this.eb=!0,this.policy.Se&&(K=v);B3j(this.CK,G,K?Number(K):0,this.info.Vb[0].type===5);this.logger.debug(function(){var V=J.timing;return"Succeeded, rtpd="+(V.wh*1E3+V.T-Date.now()).toFixed(0)}); return 4}; g.q.canRetry=function(){this.Sl();var v=this.info.isDecorated();return this.CK.canRetry(v)}; g.q.onStateChange=function(){this.isComplete()&&(this.policy.OF?this.Jl():this.timing.deactivate())}; g.q.KB=function(){this.CK.KB()}; g.q.mD=function(){this.callback&&this.callback(this,this.state)}; g.q.pz=function(){return this.CK.pz()}; g.q.dispose=function(){oq.prototype.dispose.call(this);this.CK.dispose();var v;(v=this.r6)==null||v.dispose();this.policy.OF||this.Jl()}; g.q.Jl=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.q.qZ=function(){if(!this.Yq().length)return[];this.Bg=!0;return this.Cq.qZ()}; g.q.vV=function(){if(this.state<1)return!1;if(this.Cq&&this.Cq.N1.length)return!0;var v;return((v=this.xhr)==null?0:v.AS())?!0:!1}; g.q.Yq=function(){this.oE(!1);return this.Cq?this.Cq.Yq():[]}; g.q.oE=function(v){try{if(v||this.xhr.MV()&&this.xhr.AS()&&!hy(this.CK,this.xhr)&&!this.Vh)this.Cq||(this.Cq=new Eh(this.policy,this.info.Vb)),this.xhr.AS()&&(this.JS?this.JS.feed(this.xhr.IU()):eU(this.Cq,this.xhr.IU(),v&&!this.xhr.AS()))}catch(J){this.JS?cpf(this,J):g.Zl(J)}}; g.q.W_=function(v,J){switch(v){case 21:v=J.split(1).Fa;N3m(this,v);break;case 22:this.n6=!0;eU(this.Cq,new zp([]),!0);break;case 43:if(v=g7(new xv(J),1))this.info.Vt(this.yj,v),this.P3=!0;break;case 45:J=GV(new xv(J));v=J.aW;J=J.Vc;v&&J&&(this.xD=v/J);break;case 44:this.YI=Uqw(new xv(J));var G,K,V;!this.timing.oY&&((G=this.YI)==null?void 0:G.action)===4&&((K=this.YI)==null?0:(V=K.ut)==null?0:V.Wn)&&(this.Wn=this.YI.ut.Wn);break;case 53:this.policy.qj&&(v=y6F(new xv(J)).uX)&&(this.r6||(this.uX=v,this.r6= new g.Qq(this.WA,v,this)),this.r6.start());break;case 60:this.v_=Jp(new xv(J));break;case 58:if(v=Kpw(new xv(J)))this.FS=v,v.FS===3&&(this.Jv=!0)}}; g.q.iO=function(v,J,G,K){G||this.timing.iO(K);if(v!==21)return!1;if(v=this.policy.WL)if(K=J.getLength()+G===K,v*=this.info.Vb[0].T.info.ER,!K&&J.getLength()0)return!1;if(!this.xhr.MV())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.JS)var v=!this.info.Z;else this.xhr.mp()?v=!1:(v=this.xhr.getResponseHeader("content-type"),v=v==="audio/mp4"||v==="video/mp4"||v==="video/webm");if(!v)return!1;if(isNaN(this.info.zl)){v=this.xhr.getResponseHeader("x-head-seqnum");var J=this.timing.policy.K?1:0;if(!v)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(v)>this.info.Vb[0].yb+J)return!1}return!0}; g.q.Lo=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.q.Up=function(){this.xhr&&(this.Ba=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Ba}; g.q.Rb=function(){this.xhr&&(this.t5=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.t5}; g.q.t3=function(){return this.CK.t3()}; g.q.WA=function(){if(!this.Sl()&&this.xhr){this.uu="heartbeat";var v=this.CK;v.T+=2;this.mD()}};g.z(py,bk);g.q=py.prototype;g.q.Ea=function(v,J){var G=(v-this.j)/1E3,K=J-this.Z;this.X>0?K>0&&(this.dh&&(G>.2||K<1024?(this.L+=G,G>.2&&FL8(this,.05,K)):FL8(this,G,K)),this.YB&&(this.jl+=K,this.Gi+=G)):J>this.policy.T&&this.tZ(v,J);bk.prototype.Ea.call(this,v,J)}; g.q.QH=function(v,J){jU(this,v,J);this.Ea(v,J);this.dh&&(J=this.Z*this.snapshot.stall+this.Z/this.snapshot.byterate,this.X>0&&zW(this.qX,this.jl,this.L),v=(v-this.T)/1E3||.01,this.policy.U&&!(this.X>0)||hM(this.qX,v,this.Z,J,!1))}; g.q.Jx=function(v){jU(this,v,this.J);var J=(v-this.j)/1E3;dU(this.qX,J,0);this.Xe(J,0);!this.dh&&this.X>0||(J=this.Z*this.snapshot.stall+this.Z/this.snapshot.byterate,this.X>0&&(this.L+=(v-this.j)/1E3,zW(this.qX,this.jl,this.L)),hM(this.qX,((v-this.T)/1E3||.01)*this.policy.Ti,this.Z,J,!1,!0))}; g.q.v0=function(v){v=v.ys||2147483647;(v&2)!==2&&(this.YB=!1);(v&1)===1&&(this.dh=!0)}; g.q.Qe=function(v){v=v.ys||2147483647;(v&2)===2&&(this.YB=!1);(v&1)===1&&(this.dh=!1)}; g.q.fA=function(){return this.U}; g.q.DQ=function(){var v=this.YB?this.now()-this.j:0;return Math.max(this.Gi*1E3+v,1)}; g.q.po=function(){return this.jl*1E3/this.DQ()}; g.q.tZ=function(v,J){v=v===void 0?this.K:v;J=J===void 0?this.J:J;this.X>0||(bk.prototype.tZ.call(this,v,J),J=this.qX,v=(v-this.N)/1E3,J.U.dP(1,(this.N-this.T)/1E3),J.Mr.dP(1,v))}; g.q.zw=function(v){this.RY=v}; g.q.w2=function(){var v=bk.prototype.w2.call(this);v.rbw=this.po();v.rbe=+this.YB;v.gbe=+this.dh;v.ackt=(this.RY-this.T).toFixed();return v}; g.q.RW=function(){}; g.q.Ne=function(){return NaN}; g.q.VO=function(){return this.T+this.snapshot.delay*1E3};Ly.prototype.W_=function(v,J){J.getLength();switch(v){case 20:v=new xv(J);v={r8:fp(v,1),videoId:g7(v,2),itag:fp(v,3),lmt:fp(v,4),xtags:g7(v,5),y4:fp(v,6),qd:Zc(v,8),rH:fp(v,9),dOb:fp(v,10),startMs:fp(v,11),durationMs:fp(v,12),T2:fp(v,14),timeRange:Xt(v,15,aIF),cC:fp(v,16),CC:fp(v,17),clipId:g7(v,1E3)};this.IF(v);break;case 21:this.Uc(J,!1);break;case 22:this.Q_(J);break;case 31:v=Nd(J,nMm);this.VB(v);break;case 52:v=Nd(J,wKB);this.P_(v);break;default:this.Ln(v,J)}}; Ly.prototype.IF=function(){}; Ly.prototype.Ln=function(){};g.z(yH,Ly);g.q=yH.prototype; g.q.Ln=function(v,J){J.getLength();switch(v){case 35:this.tN(J);break;case 44:this.gm(J);break;case 43:this.lS(J);break;case 53:this.P2(J);break;case 55:v=new xv(J);(v={timeline:Xt(v,1,mqs),hde:Xt(v,2,ZT8)},v.timeline)&&v.timeline.HI&&this.eX.NB(v.timeline.HI,v.timeline.Jmw,v.hde);break;case 56:this.Xh();break;case 57:this.eG(J);break;case 42:this.Ss(J);break;case 45:this.bX(J);break;case 59:this.e7(J);break;case 51:this.Za(J);break;case 49:this.v0(J);break;case 50:this.Qe(J);break;case 47:this.ph(J); break;case 58:this.Ex(J);break;case 61:this.eX.gB.zw((0,g.yR)());break;case 66:this.P7(J);break;case 46:this.by(J);break;case 67:this.onSnackbarMessage(J)}}; g.q.Za=function(v){v=new xv(v);v={fpt:cA(v,1,$V),VQH:cA(v,2,$V)};this.eX.Za(v)}; g.q.e7=function(v){var J=new xv(v);v=kv(J,1);var G=kv(J,2);J=kv(J,3);this.eX.e7(v,G,J)}; g.q.bX=function(v){v=GV(new xv(v));this.eX.bX(v)}; g.q.ph=function(v){v=Nd(v,R0L);this.eX.ph(v)}; g.q.Ss=function(v){v=new xv(v);v={videoId:g7(v,1),formatId:Xt(v,2,$V),endTimeMs:fp(v,3),yNl:fp(v,4),mimeType:g7(v,5),Pu:Xt(v,6,Dqm),indexRange:Xt(v,7,Dqm),zz:Xt(v,8,tbF)};this.eX.Ss(v)}; g.q.eG=function(v){v=ZT8(new xv(v));this.eX.eG(v)}; g.q.Xh=function(){this.eX.Xh()}; g.q.tN=function(v){v=dqf(new xv(v));this.eX.tN(v)}; g.q.P2=function(v){v=y6F(new xv(v));this.eX.P2(v)}; g.q.gm=function(v){v=Uqw(new xv(v));this.eX.gm(v)}; g.q.lS=function(v){v={redirectUrl:g7(new xv(v),1)};this.eX.lS(v)}; g.q.Uc=function(v){var J=v.getUint8(0);if(v.getLength()!==1){v=v.split(1).Fa;var G=this.X[J]||null;G&&fy(this.eX.gM,J,G,v)}}; g.q.Q_=function(v){v=v.getUint8(0);var J=this.X[v]||null;J&&this.eX.Q_(v,J)}; g.q.P_=function(v){this.eX.P_(v)}; g.q.IF=function(v){var J=v.r8,G=v.qd,K=v.y4,V=v.CC,Y=v.cC,r=v.rH,E=v.startMs,e=v.durationMs,P=v.timeRange,D=v.T2,t=v.clipId,B=y$(v);v=BKL.has(a$[""+v.itag]);this.X[J]=B;this.eX.NV(B,v,{r8:J,qd:!!G,y4:K!=null?K:-1,rH:r!=null?r:-1,startMs:E!=null?E:-1,durationMs:e!=null?e:-1,T2:D,CC:V,cC:Y,clipId:t,timeRange:P})}; g.q.v0=function(v){v={ys:fp(new xv(v),1)};this.eX.v0(v)}; g.q.Qe=function(v){v={ys:fp(new xv(v),1)};this.eX.Qe(v)}; g.q.VB=function(v){this.eX.VB(v)}; g.q.Ex=function(v){v=Kpw(new xv(v));this.eX.Ex(v)}; g.q.P7=function(v){v={gN:Xt(new xv(v),1,pKw)};this.eX.P7(v)}; g.q.onSnackbarMessage=function(v){v=fp(new xv(v),1);this.eX.onSnackbarMessage(v)}; g.q.by=function(v){v={reloadPlaybackParams:Xt(new xv(v),1,oM2)};this.eX.by(v)};g.z(wZ,g.X);g.q=wZ.prototype;g.q.E0=function(){return Array.from(this.IH.keys())}; g.q.dg=function(v){v=this.IH.get(v);var J=v.N1;v.xx+=J.getLength();v.N1=new zp;return J}; g.q.v8=function(v){return this.IH.get(v).v8}; g.q.vJ=function(v){return this.IH.get(v).vJ}; g.q.NV=function(v,J,G,K){this.IH.get(v)||Cfr(this,v,J);J=this.IH.get(v);if(this.Jt){v=jZB(this,v,G);if(K)for(var V=g.n(v),Y=V.next();!Y.done;Y=V.next()){Y=Y.value;var r=K;Y.Ti=r;Y.startTime+=r;Y.L+=r;Y.j+=r}bHw(this,G.r8,J,v)}else G.qd?J.iT=G.T2:J.Od.push(G),J.NK.push(G)}; g.q.mY=function(v){var J;return((J=this.IH.get(v))==null?void 0:J.Vb)||[]}; g.q.Ur=function(){for(var v=g.n(this.IH.values()),J=v.next();!J.done;J=v.next())J=J.value,J.jV&&(J.V9&&J.V9(),J.jV=!1)}; g.q.Q_=function(v,J){this.logger.debug(function(){return"[onMediaEnd] formatId: "+J}); var G=this.IH.get(J);if(Oh){if(G&&!G.v8){if(G.E6.get(v))G.E6.get(v).qo=!0;else{var K;((K=this.oA)==null?0:K.KK)&&G.E6.set(v,{data:new zp,rD:0,qo:!0})}G.vJ=!0}}else G&&!G.vJ&&(G.vJ=!0)}; g.q.qZ=function(v){if(Oh){var J=this.IH.get(v);if(J)for(var G=g.n(J.E6),K=G.next();!K.done;K=G.next()){var V=g.n(K.value);K=V.next().value;V=V.next().value;var Y=J.Mu.get(K);if(fb(Y[0])){if(!V.qo)continue;var r=Y,E=V.data;E.getLength();Y=0;var e=[];r=g.n(r);for(var P=r.next();!P.done;P=r.next()){P=P.value;var D=P.Z,t=d7(E,Y,D);Y+=D;e.push(new $I(P,t))}J.VG.push.apply(J.VG,g.l(e))}else if(V.data.getLength()>0||!Y[0].range&&V.qo)E=void 0,Y=Y[0],e=V.rD,r=V.data,Y.range||(E=V.qo),P=r.getLength(),E=new $I($Gr(Y, Y.X+e,P,E),r),V.rD+=E.info.Z,J.VG.push(E);J.E6.get(K).data=new zp;V.qo&&J.E6.delete(K)}v=this.IH.get(v);if(!v)return[];J=v.VG;v.VG=[];G=g.n(J);for(K=G.next();!K.done;K=G.next())v.xx+=K.value.info.Z;return J||[]}G=(J=this.IH.get(v))==null?void 0:J.Cq;if(!G)return[];this.oE(v,G);return G.qZ()}; g.q.vV=function(v){if(Oh)return SU(this,v);var J,G,K;return!!((G=(J=this.IH.get(v))==null?void 0:J.Cq)==null?0:(K=G.Yq())==null?0:K.length)||SU(this,v)}; g.q.oE=function(v,J){for(;SU(this,v);){var G=this.dg(v);var K=v;K=this.IH.get(K).v8&&!md(this,K);eU(J,G,K&&WLw(this,v))}}; g.q.X4=function(){g.X.prototype.X4.call(this);for(var v=g.n(this.IH.keys()),J=v.next();!J.done;J=v.next())Uh(this,J.value);var G;if((G=this.oA)==null?0:G.Kt)for(v=g.n(this.IH.values()),J=v.next();!J.done;J=v.next())J=J.value,J.E6.clear(),J.Mu.clear(),J.VG.length=0,J.Vb.length=0,J.NK.length=0,J.Od.length=0;this.IH.clear()}; var Oh=!1;g.z(ZL,g.X);g.q=ZL.prototype;g.q.OX=function(){!this.Sl()&&this.xhr&&(this.oE(!1),gv(this.eX,this))}; g.q.uN=function(){}; g.q.Gy=function(){if(!this.Sl()&&this.xhr){var v=this.z3();v===5?B2(this.CK):this.l9(v);this.CK.X.stop();var J;(J=this.W0)==null||J.stop()}}; g.q.z3=function(){var v="";hy(this.CK,this.xhr)&&(v=hGm(this.CK,this.xhr));if(v)return this.info.v$.Vt(this.yj,v),3;this.oE(!0);if(Iq(this.CK,this.xhr.status,this.xhr.y3(),this.info.FM(),this.Jv))return 5;if(this.oM)return 3;B3j(this.CK,this.xhr.NZ(),0,this.FM());this.policy.yy&&oJ8(this.eX);return 4}; g.q.oE=function(v){var J=this.xhr;if((v||!hy(this.CK,this.xhr))&&J.AS()){v=J.IU();var G=v.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+G}); this.JS.feed(v)}}; g.q.W_=function(v,J){this.xhr.Fe()&&v===21&&JfX(this);this.T8.W_(v,J)}; g.q.iO=function(v,J,G,K){G||(this.gB.iO(K),this.policy.l4&&v===21&&JfX(this));if(v!==21)return!1;this.gB.oY=!0;v=J.getLength();G||(this.ew=J.getUint8(0),J=J.split(1).Fa);var V=this.policy.lY,Y=this.T8.X[this.ew],r=this.Jt.Z.get(Y);if(V&&r&&(V*=r.info.ER,v+G!==K&&v0){this.policy.mz&&this.CK.X.stop();v=this.gB.DQ();J=this.gB.po();var G=Gnm(this,v);if(!(J>G.pC||G.fu>0&&this.info.wR()>G.fu)){this.zA=(0,g.yR)();var K;(K=this.W0)==null||K.stop();this.policy.yy&&(K=this.eX,v={Cx:Math.round(J*v/1E3),lH:v},K.policy.yy&&(K.Mr=v,K.sF++));this.KB()}}}}; g.q.KB=function(){this.CK.KB()}; g.q.gm=function(v){this.eX.gm(v,this.Ej())}; g.q.lS=function(v){this.oM=!0;this.info.v$.Vt(this.yj,v.redirectUrl)}; g.q.v0=function(v){this.gB instanceof py&&this.gB.v0(v)}; g.q.Qe=function(v){this.gB instanceof py&&this.gB.Qe(v)}; g.q.NB=function(v,J,G){this.eX.NB(v,J,G,this.Ej())}; g.q.Ss=function(v){var J=v.formatId,G=y$({itag:J.itag,lmt:J.lmt,xtags:J.xtags}),K,V,Y=new OH(((K=v.Pu)==null?void 0:K.first)||0,((V=v.Pu)==null?void 0:V.tq)||0),r,E;K=new OH(((r=v.indexRange)==null?void 0:r.first)||0,((E=v.indexRange)==null?void 0:E.tq)||0);if(!this.Jt.Z.get(G)){G=v.zz||{};if(this.policy.XS){var e,P;v=(e=v.mimeType)!=null?e:"";e=(P=J.itag)!=null?P:0;P=a$[""+e];G.mimeType=P!=="9"&&P!=="9h"?v:'video/webm; codecs="'+["vp09",P==="9h"?"02":"00","51",P==="9h"?"10":"08","01.01.01.01.00"].join(".")+ '"'}else G.mimeType=v.mimeType;G.itag=J.itag;G.lastModified=""+(J.lmt||0);G.xtags=J.xtags;J=this.Jt;P=n0("");e=h1(G,null);e2(J,new rE(P,e,Y,K))}}; g.q.bX=function(v){this.eX.bX(v)}; g.q.onSnackbarMessage=function(v){if(this.policy.JU)this.eX.onSnackbarMessage(v)}; g.q.VB=function(v){this.wI=v;this.C2=(0,g.yR)();this.eX.VB(v)}; g.q.e7=function(v,J,G){this.eX.e7(v,J,G)}; g.q.eG=function(v){v.scope===2&&(this.NMl=v);this.eX.eG(v)}; g.q.Xh=function(){this.fl=!0;this.eX.Xh()}; g.q.Za=function(v){this.policy.G4&&this.eX.Za(v)}; g.q.ph=function(v){this.eX.ph(v,this.Ej())}; g.q.Ex=function(v){v.FS===3&&(this.Jv=!0);this.eX.Ex(v)}; g.q.P7=function(v){this.eX.P7(v)}; g.q.by=function(v){this.eX.by(v)}; g.q.canRetry=function(){this.Sl();return this.CK.canRetry(!1)}; g.q.dispose=function(){if(!this.Sl()){g.X.prototype.dispose.call(this);this.CK.dispose();var v;(v=this.W0)==null||v.dispose();this.l9(-1);this.Jl()}}; g.q.l9=function(v){this.state=v;gv(this.eX,this)}; g.q.FM=function(){return this.info.FM()}; g.q.J_=function(){return this.fl}; g.q.vg=function(){return this.NMl}; g.q.NV=function(v,J,G){G.clipId&&(this.clipId=G.clipId);this.policy.J&&!J&&(this.iz=G.rH,this.pB=G.startMs);var K=0;this.policy.Q$&&this.a_&&this.clipId&&(K=gm(this.a_,this.clipId)/1E3);this.gM.NV(v,J,G,K);this.policy.DR&&this.wI&&this.gB instanceof $U&&(K=this.wI.QA,this.gB.NV(G.durationMs/1E3,J,K>0&&G.rH+1>=K));this.gM.IH.get(v).Kw=!0}; g.q.Q_=function(v,J){this.gM.Q_(v,J)}; g.q.P_=function(v){this.requestIdentifier=v}; g.q.qZ=function(v){return this.gM.qZ(v)}; g.q.mY=function(v){return this.gM.mY(v)}; g.q.vV=function(v){return this.gM.vV(v)}; g.q.E0=function(){return this.gM.E0()}; g.q.Fy=function(){return 1}; g.q.Ej=function(){return this.gB.requestNumber}; g.q.ZD=function(){return this.requestIdentifier}; g.q.FH=function(){return this.clipId}; g.q.Dm=function(){return this.yj.Dm()}; g.q.Mx=function(){this.Jl()}; g.q.Jl=function(){this.gB.deactivate();var v;(v=this.xhr)==null||v.abort()}; g.q.isComplete=function(){return this.state>=3}; g.q.o_=function(){return this.state===3}; g.q.Xa=function(){return this.state===5}; g.q.Th=function(){return this.state===4}; g.q.Ig=function(){return this.isComplete()}; g.q.FY=function(){return this.state>=1}; g.q.pz=function(){return this.policy.Vn?this.CK.pz():0}; g.q.mD=function(){this.policy.Vn&&gv(this.eX,this)}; g.q.NQ=function(){return u98(this.info)}; g.q.t3=function(){return this.CK.t3()}; g.q.Jw=function(){var v=zGF(this.CK);Object.assign(v,XLU(this.info));v.req="sabr";v.rn=this.Ej();var J;if((J=this.xhr)==null?0:J.status)v.rc=this.policy.U2?this.xhr.status:this.xhr.status.toString();var G;(J=(G=this.xhr)==null?void 0:G.qL())&&(v.msg=J);this.zA&&(G=Gnm(this,this.zA-this.gB.fA()),v.letm=G.b0w,v.mrbps=G.pC,v.mram=G.fu);return v}; g.q.E5=function(){return{iz:this.iz,pB:this.pB,isDecorated:this.info.isDecorated()}};ox2.prototype.tick=function(v,J){this.ticks[v]=J?window.performance.timing.navigationStart+J:(0,g.yR)()};g.z(gZ,g.qU);g.q=gZ.prototype; g.q.ib=function(v,J,G,K){if(this.policy.D5&&this.policy.J){var V=v.Pv||null;V?(zzw(this,v.yb,Ay(this,v.startTime,v.yb),{Pv:V,yb:v.yb,rr:!!J,Vk:G},this.Z),K&&this.Z&&this.Z.w6(v.yb,v.startTime,this.X,(J==null?void 0:J.T)||[],(J==null?void 0:J.X)||[],(J==null?void 0:J.Z)||[],G,(J==null?void 0:J.C4)||0,(J==null?void 0:J.L)||void 0)):this.X===1&&kU(this,5,"noad")}else{var Y=!1;this.policy.WH&&(Y=G?this.Ze===v.yb:this.dh===v.yb);if(this.Z&&K&&!Y){K=[];Y=[];var r=[],E=void 0,e=0;J&&(K=J.T,Y=J.X,r=J.Z,E= J.L,e=J.C4,this.uw("sdai",{sq:v.yb,ssvicpns:K.join("."),ssvid:Y.join(".")}));this.policy.WH&&(G?this.Ze=v.yb:this.dh=v.yb);this.Z.w6(v.yb,v.startTime,this.X,K,Y,r,G,e,E)}this.policy.WH?G&&(this.X===1&&kU(this,5,"noad"),v.yb!==((V=this.T)==null?void 0:V.yb)&&(ISs(this,v,J,G),isNaN(v.startTime)||c2(this,v.yb,Ay(this,v.startTime,v.yb),!!J,this.Z))):G&&ISs(this,v,J)}}; g.q.B2=function(v,J,G){var K=this.videoTrack.T.index.wd()<=J;this.T={Pv:v,yb:J,rr:G};K&&X7(this,v,J)}; g.q.tv=function(){this.Z&&this.Z.tv()}; g.q.uw=function(v,J,G){(v!=="sdai"||this.policy.iX||(G===void 0?0:G))&&this.Qb.uw(v,J)}; g.q.j_=function(v,J){var G=this.videoTrack.T.index.bz(v);if(G>=0){var K;var V=((K=J.zS.R5(G,2))==null?void 0:K.iU)||"";if(this.policy.J||V)return J.gg(v,G),N8(this.Qb,v,v,G),this.uw("sdai",{cmskpad:1,t:v.toFixed(3),sq:G}),!0}this.uw("sdai",{cmskpad:0,t:v.toFixed(3),sq:G});return!1};g.z(QH,g.X);QH.prototype.fQ=function(v,J,G){G=G===void 0?{}:G;this.policy.zb=m_(v,G,this.L,J===void 0?!1:J)};ia.prototype.IQ=function(v){var J=this;if(this.policy.YE){var G=new Set(v);G.size===this.Mr.size&&[].concat(g.l(G)).every(function(K){return J.Mr.has(K)})||(this.Qb.uw("lwnmow",{itagDenylist:[].concat(g.l(v)).join(",")}),this.Qb.KU(!!G.size),this.N=-1,this.Mr=G,$_(this,this.T),this.jl=!0)}}; ia.prototype.fQ=function(v,J,G){G=G===void 0?{}:G;var K=this.policy.zb;this.J.fQ(v,J===void 0?!1:J,G);if(K!==this.policy.zb){$_(this,this.T);v7(this);var V,Y;K>this.policy.zb&&((V=this.Z)==null?0:Q9(V.info))&&((Y=this.nextVideo)==null||!Q9(Y.info))&&(this.oY=!0)}};KJ.prototype.S_=function(v){this.timestampOffset=v;this.flush()}; KJ.prototype.flush=function(){if(this.T.pos>0){var v={a:this.track.Xj(),u:this.T.M$(),pd:Math.round(this.L),ad:Math.round(this.Z)},J=this.X;if(J){var G=J.T.info;v.itag=G.itag;G.T&&(v.xtags=G.T);v.sq=J.yb;v.st=J.startTime;v.sd=J.duration;this.track.policy.LN&&(v.si=J.vO());J.J&&(v.esl=J.X+J.Z);J.fZ()&&(v.eos=1)}isNaN(this.timestampOffset)||(v.to=this.timestampOffset);var K;if(J=(K=this.track.JR)==null?void 0:K.u9({})){for(var V in J)this.j[V]!==J[V]&&(v["sb_"+V]=J[V]);this.j=J}this.track.uw("sbu", v);this.T.reset();this.buffered=[];this.J=this.Z=this.L=0;this.timestampOffset=this.X=void 0}};Y_.prototype.dispose=function(){this.Ti=!0}; Y_.prototype.Sl=function(){return this.Ti}; g.z(DF,Error);var Amf=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]);IM.prototype.skip=function(v){this.offset+=v}; IM.prototype.wW=function(){return this.offset};g.q=K_s.prototype;g.q.lx=function(){return this.X}; g.q.UV=function(){return this.X.length?this.X[this.X.length-1]:null}; g.q.fJ=function(){this.X=[];dO(this);nJ(this)}; g.q.dg=function(v){this.Gi=this.X.shift().info;v.info.Rt(this.Gi)}; g.q.mY=function(){return g.yn(this.X,function(v){return v.info})}; g.q.Xj=function(){return!!this.j.info.audio}; g.q.getDuration=function(){return this.j.index.TP()};g.z(cd,oq);g.q=cd.prototype;g.q.onStateChange=function(){this.Sl()&&(xU(this.gM,this.formatId),this.T.dispose())}; g.q.Jw=function(){var v=Q3r(this.gM,this.formatId),J;var G=((J=this.gM.IH.get(this.formatId))==null?void 0:J.bytesReceived)||0;var K;J=((K=this.gM.IH.get(this.formatId))==null?void 0:K.xx)||0;return{expected:v,received:G,bytesShifted:J,sliceLength:md(this.gM,this.formatId),isAnyMediaEndReceived:this.gM.vJ(this.formatId)}}; g.q.CA=function(){return 0}; g.q.FC=function(){return!0}; g.q.qZ=function(){return this.gM.qZ(this.formatId)}; g.q.Yq=function(){return[]}; g.q.vV=function(){return this.gM.vV(this.formatId)}; g.q.t3=function(){return this.lastError}; g.q.pz=function(){return 0};g.z(la,g.X);g.q=la.prototype;g.q.Xj=function(){return!!this.T.info.audio}; g.q.UV=function(){return this.L.UV()}; g.q.dg=function(v){this.L.dg(v);var J;(J=this.K)!=null&&(J.J.add(v.info.yb),J.T=UbU(J,J.f0,J.Z8,v,J.T),J.Z=v,J.j=(0,g.yR)());this.ER=Math.max(this.ER,v.info.T.info.ER||0)}; g.q.getDuration=function(){if(this.policy.X){var v=this.Qb.bQ();if(v)return zu(v)}return this.T.index.TP()}; g.q.fJ=function(){aT(this);this.L.fJ()}; g.q.As=function(){return this.L}; g.q.isRequestPending=function(v){return this.Z.length?v===this.Z[this.Z.length-1].info.Vb[0].yb:!1}; g.q.S_=function(v){var J;(J=this.K)==null||J.S_(v);var G;(G=this.N)==null||G.S_(v)}; g.q.uw=function(v,J){this.Qb.uw(v,J)}; g.q.KF=function(){return this.Qb.KF()}; g.q.dispose=function(){var v;(v=this.N)==null||v.flush();g.X.prototype.dispose.call(this)};g.z(c7,g.X);c7.prototype.Z=function(){this.X++>15||(this.T=!this.T,new VNF(this.Qb,this.policy,this.qX,this.v$,this.T),this.delay.start())}; g.q=VNF.prototype;g.q.uN=function(){}; g.q.OX=function(){}; g.q.Gy=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.NZ()===this.size)this.Qb.uw("rqs",this.getInfo());else{var v="net.connect";this.xhr.status>200?v="net.badstatus":this.xhr.MV()&&(v="net.closed");this.onError(v)}}; g.q.onError=function(v){var J=this;this.Qb.handleError(v,this.getInfo());Uv("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(G){J.Qb.uw("pathprobe",G)},function(G){J.Qb.handleError(G.errorCode,G.details)})}; g.q.getInfo=function(){var v=this.timing.w2();v.shost=LH(this.location.base);v.pb=this.size;return v};g.z(NZ,g.X); NZ.prototype.K=function(v,J){if(v.U){this.Jt.isLive?(v=this.Jt.yk&&this.Jt.L?v.T.CH(this.Jt.yk,!1):v.T.Zk(Infinity),v.zl=this.zl):v=v.T.CH(0,!1);if(this.oY){var G=this.oY;v.zl===0&&(v.J=G.U)}else v.J=this.N;return v}G=v.X;if(!G.T.U9())return G.T.A5()?(v=SH(this.J,v.T.info.ER,J.T.info.ER,0),v=G.T.yd(G,v)):v=G.T.zQ(G),v;var K=G.j-this.Qb.getCurrentTime(),V=!G.range||G.Z===0&&G.X===0?0:G.range.length-(G.X+G.Z),Y=G.T;this.pu(v,K)&&V===0&&(this.Jt.isManifestless?Y=v.T:(Y=G.startTime+v1U,G.Z&&(Y+=G.duration), Hd(v,Y),G=v.X,Y=G.T));Y.A5()?(V=this.Z,J=SH(this.J,Y.info.ER,J.T.info.ER,K,V.L.length>0&&V.U===0&&this.Qb.j9),K=fJ(v),v=G.T.yd(G,J),(J=v.Z)&&v.Vb.length>1&&(K||v.v$.X||v.Vb[0].T!==G.T?v=G.T.yd(G,v.Vb[0].Z):(K=v.Vb[v.Vb.length-1],Y=K.Z/J,!K.J&&Y<.4&&(v=G.T.yd(G,J-K.Z))))):(G.yb<0&&(J=Xr(G),J.pr=""+v.Z.length,this.Qb.isSeeking()&&(J.sk="1"),J.snss=G.K,this.Qb.uw("nosq",J)),v=Y.zQ(G));if(this.policy.Ze)for(G=g.n(v.Vb),J=G.next();!J.done;J=G.next())J.value.type=6;return v}; NZ.prototype.pu=function(v,J){if(!fJ(v)||!v.T.U9())return!1;var G=this.Z.jl||kPw(v)||J<=this.policy.nN||this.Z.oY;this.logger.debug(function(){return"ready to adapt: "+G+", upgrade pending: "+kPw(v)+", health: "+J}); return G}; NZ.prototype.X4=function(){g.X.prototype.X4.call(this)}; var v1U=2/24;g.z(H7,g.X);H7.prototype.zK=function(v,J,G){var K;var V=((K=this.X)==null?void 0:K.reason)==="m"?"m":this.X&&pLB(this,this.X)?this.X.reason:"a";this.Qb.zK(new M8(v,V,G));AL(this.Qb,J,v,!0)}; H7.prototype.tH=function(v,J){for(var G=g.n(this.Ze),K=G.next();!K.done;K=G.next())if(K=K.value,K.id===v)return this.oA.Iw||(this.Z=[K]),this.J=this.Jt.T[v],k_(this.oA)&&(this.oY=!0),v=new M8(this.J,J?"t":"m"),J&&(this.U=!0),v;this.Z=[];return null}; H7.prototype.fQ=function(v,J,G){G=G===void 0?{}:G;this.T.fQ(v,J===void 0?!1:J,G)};W7.prototype.setData=function(v,J,G,K){var V=this;K=K===void 0?{}:K;if(G==null?0:G.UR)this.H3=vxj(this,G,K),v.Kx=this.v$.Kx();if(this.FM())return!0;this.data=v;this.T=fRs(v,J,function(Y,r){var E;(E=V.eX)==null||E.H$(Y,r)},G==null?void 0:G.Z); if(!this.T)return!1;this.X=g.Cp(this.T,qIm);return!0}; W7.prototype.FM=function(){return this.requestType===1}; W7.prototype.wR=function(){var v;return((v=this.eX)==null?void 0:v.wR())||0}; W7.prototype.isDecorated=function(){var v;return!((v=this.data)==null||!v.yI)};CJ.prototype.encrypt=function(v){this.Zm.exports.AES128CTRCipher_encrypt(this.cipher,v.byteOffset,v.byteLength);return v}; CJ.prototype.Sl=function(){return this.cipher===0}; CJ.prototype.dispose=function(){this.Zm.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};ba.prototype.encrypt=function(v,J){return Eu(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:J},this.key,v).catch(function(G){return Promise.reject(G.name+": "+G.message)}).then(function(G){return new Uint8Array(G)}))}; ba.prototype.Sl=function(){return this.T}; ba.prototype.dispose=function(){this.T=!0}; Dd.H_(ba,{encrypt:cMr("oan2")});jO.prototype.encrypt=function(v,J){zM(this.X,J);return Eu(this.X.encrypt(v))}; jO.prototype.Sl=function(){return this.T}; jO.prototype.dispose=function(){this.T=!0}; Dd.H_(jO,{encrypt:cMr("oap")});ie.prototype.encrypt=function(v,J){var G=this.Zm.wq(J),K=this.T;K.Zm.exports.AES128CTRCipher_setCounter(K.cipher,(G!=null?G:J).byteOffset);J=this.Zm.wq(v);this.T.encrypt(J!=null?J:v);G&&this.Zm.free(G.byteOffset);return J?Eu(this.Zm.H2(J)):Eu(v)}; ie.prototype.Sl=function(){return this.T.Sl()}; ie.prototype.dispose=function(){this.T.dispose()}; Dd.H_(ie,{encrypt:cMr("oalw")});$H.prototype.encrypt=function(v,J){var G=this,K=Px("");v.length<=this.f5&&this.T&&!this.L&&(K=Ih(K,function(){return G.T?G.T.encrypt(v,J):Px("wasm unavailable")})); v.length<=this.SE&&(this.T&&this.L&&(K=Ih(K,function(){return G.T?G.T.encrypt(v,J):Px("wasm unavailable")})),K=Ih(K,function(){return AMj(G,v,J)})); return Ih(Ih(K,function(){return FHm(G,v,J)}),function(){return AMj(G,v,J)})}; $H.prototype.Sl=function(){return this.J}; $H.prototype.dispose=function(){this.J=!0;var v;(v=this.Z)==null||Bx(v,g.rT);g.rT(this.T);g.rT(this.X)};vi.prototype.encrypt=function(v){(0,g.yR)();return(new Y$(this.T.T)).encrypt(v,this.iv)}; vi.prototype.decrypt=function(v,J){(0,g.yR)();return(new Y$(this.T.T)).decrypt(v,J)}; vi.prototype.Sl=function(){return this.Z}; vi.prototype.dispose=function(){this.Z=!0;g.rT(this.X)};g.z(JO,g.X);JO.prototype.Z=function(v,J){if(J){J=J instanceof g.TV?J:Gu(this,J);var G;((G=this.T.get(v))==null?void 0:LH(G.location))!==LH(J)&&this.T.set(v,new vgm(J,v))}else this.T.delete(v)}; JO.prototype.load=function(){var v=this,J,G,K,V,Y,r,E,e,P,D;return g.m(function(t){switch(t.T){case 1:J=v.T.get(0);g.nf(t,2);var B;if(B=J&&!v.X)B=LH(J.location),B=v.X===ty(B);if(B){t.sB(4);break}return g.U(t,iSw(v,v.X?2:0),5);case 5:if(G=t.X)v.Z(0,G),w3(G)&&v.Z(1,O1(G));case 4:g.Rm(t,3);break;case 2:K=g.lj(t);g.Zl(K);if(!v.X){t.sB(3);break}v.X=!1;return g.U(t,v.load(),7);case 7:return t.return();case 3:if(!v.EB.experiments.OB("html5_onesie_probe_ec_hosts")){t.sB(0);break}g.nf(t,9);V=v;Y=V.Z;r=3;return g.U(t, iSw(v,1),11);case 11:return Y.call(V,r,t.X),E=v,e=E.Z,P=4,g.U(t,iSw(v,2),12);case 12:e.call(E,P,t.X);g.Rm(t,0);break;case 9:D=g.lj(t),g.Zl(D),g.zX(t)}})}; JO.prototype.K=function(){var v=this,J,G;return g.m(function(K){g.Wq(v.U);J=g.DI(v.EB.experiments,"html5_onesie_prewarm_max_lact_ms");if(yy()>=J)return K.return();(G=v.T.get(0))&&jGF(v,G);g.zX(K)})}; var Chr={jE7:0,NFl:1,Rct:2,wVH:3,svB:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};JWL.prototype.decrypt=function(v){var J=this,G,K,V,Y,r,E;return g.m(function(e){switch(e.T){case 1:if(J.T.length&&!J.T[0].isEncrypted)return e.return();J.X=!0;J.gF.pY("omd_s");G=new Uint8Array(16);se()?K=new V5(v):V=new Y$(v);case 2:if(!J.T.length||!J.T[0].isEncrypted){e.sB(4);break}Y=J.T.shift();if(!K){r=V.decrypt(Y.buffer.l1(),G);e.sB(5);break}return g.U(e,K.decrypt(Y.buffer.l1(),G),6);case 6:r=e.X;case 5:E=r;for(var P=0;P=4)){var J=D0(this),G=this.xhr;J.rc=G.status;v&&(J.ab=!0);if(G.qL()){var K="onesie.net";J.msg=G.qL()}else G.status>=400?K="onesie.net.badstatus":G.y3()?this.FE||(K="onesie.response.noplayerresponse"):K=G.status===204?"onesie.net.nocontent":"onesie.net.connect";K?this.M5(new L6(K,J)):(this.pY("or_fs"),this.gB.QH((0,g.yR)(),G.NZ(),0),this.l9(4),this.Tx&&this.uw("rqs",J));this.Tx&&this.uw("ombre", "ok."+ +!K);this.Ve=!1;Bi(this);ng2(this.gF);if(!this.Id){this.sI.stop();var V;(V=this.Na)==null||V.stop()}var Y;if(v=(Y=this.Pl)==null?void 0:$rt(Y))for(Y=0;Y1E3){var v;(v=this.gB)==null||v.Jx((0,g.yR)());v=D0(this);if(this.EB.GG()&&this.xhr instanceof Ky){var J=this.xhr;v.xrs=J.xhr.readyState;v.xpb=J.T.getLength();v.xdc=J.L}this.M5(new L6("net.timeout",v))}}else(0,g.yR)()-this.gB.T>1E4&&((J=this.gB)==null||J.Jx((0,g.yR)()),this.Rg());this.isComplete()||this.U8.start()}}; g.q.Rg=function(){this.logger.info("Onesie request timed out");this.Ve=!1;if(!Bi(this)){var v=D0(this);v.timeout="1";this.M5(new L6("onesie.request",v))}}; g.q.M5=function(v){var J=this;v=wf(v);this.u0?this.HH.rd(v):(this.JN.reject(v),this.u0=!0);ng2(this.gF);this.Id||this.sI.stop();this.pY("or_fe");var G,K;(G=this.Pl)==null||(K=$rt(G))==null||K.forEach(function(V){J.uw("pathprobe",V)}); this.l9(5);this.dispose()}; g.q.isComplete=function(){return this.state>=3}; g.q.Th=function(){return this.state===4}; g.q.Ig=function(v){var J,G;return this.isComplete()||!!((J=this.ji)==null?0:(G=J.get(v))==null?0:G.T)}; g.q.o_=function(){return!1}; g.q.Xa=function(){return this.state===5}; g.q.notifySubscribers=function(v){for(var J=0;J102400&&!this.Ns&&(this.pY("or100k"),this.Ns=!0);if(v.AS()){var J=v.IU(),G=J.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+G}); this.Tx&&this.uw("ombrss","len."+G);this.JS.feed(J)}if(this.ji)for(var K=g.n(this.ji.keys()),V=K.next();!V.done;V=K.next()){var Y=V.value;v=void 0;(v=this.ji.get(Y))==null||v.Ur();this.notifySubscribers(Y)}}catch(r){this.M5(r)}}; g.q.Ej=function(){return this.gB.requestNumber}; g.q.ZD=function(v){return this.OT.get(v)}; g.q.E5=function(){return{iz:this.iz,pB:this.pB,isDecorated:!1}};g.z(ggr,g.X);g.q=ggr.prototype;g.q.Hn=function(v,J){this.Ti=void 0;oJ8(this);vJm(this,v,J)}; g.q.dO=function(v){if(this.T.length===0)return!1;var J=this.T[0];return J instanceof tO?v===this.Qb.getCurrentTime()*1E3:!(J instanceof ZL&&g$U(J.info))&&Math.abs(J.NQ()-v)<50}; g.q.tN=function(v){this.X=v;this.Ti=(0,g.yR)()+(v.backoffTimeMs||0)}; g.q.gm=function(v,J){if(v.action===void 0){var G=this.HH.u4();G!==void 0&&this.Qb.U0(G)}else if(v.action!==0||!this.Gi)switch(v.action===0&&this.policy.QN&&(v.action=2),G={},G.reason=v.S9i,G.action=v.action,G.rn=J,v.action){case 1:this.policy.J&&this.L&&this.L.Xl(void 0,void 0,G);break;case 0:this.Gi=!0;this.videoData.i9()&&this.policy.J&&this.L&&this.L.Xl(void 0,void 0,G,!1);this.Qb.vW(G);break;case 2:this.Qb.handleError("sabr.config",G,1);break;case 5:fdX(this.HH,!0);break;case 6:fdX(this.HH,!1); break;case 3:this.policy.UR&&((v=this.Jt.U)!=null&&(v.U=!0),this.Qb.handleError("sabr.hostfallback",G))}}; g.q.NB=function(v,J,G,K){if(this.policy.X){this.Qb.uw("ssap",{rn:K,v:J,tl:V08(v)});var V=this.Qb.bQ();v={Ui:v,context:G,version:J};J3w(this,G);V?G52(this,V,v):(this.Qb.uw("ssap",{cacheclips:1,rn:K,v:J}),this.U=v)}}; g.q.eG=function(v){this.Qb.uw("ssap",{onsbrctxt:v.type,dflt:v.sendByDefault});J3w(this,v);this.HH.eG(v)}; g.q.Xh=function(){}; g.q.bX=function(v){if(v.aW!==void 0&&v.Vc){var J=v.aW/v.Vc;this.audioTrack.U=!1;this.videoTrack.U=!1;if(this.policy.Ti||this.policy.wP||this.policy.yT)this.Qb.Qa.X=!1;this.Qb.Pi(J,1);if(this.HH.getCurrentTime()!==J){var G={nK:"sabr_seek",ke:!0,Jg:!0};v.seekSource&&(G.seekSource=v.seekSource);Wd(this.Qb,J+.1,G)}}}; g.q.onSnackbarMessage=function(v){this.HH.publish("onSnackbarMessage",v)}; g.q.VB=function(v){v.QA&&v.xj&&L0(this.Jt,v.QA,v.xj);this.policy.qm&&(v.ou&&v.TT&&(this.Jt.XS=v.ou/v.TT),v.oQ&&v.TK&&(this.Jt.Iw=v.oQ/v.TK));this.policy.yK&&(this.policy.qm?v.oQ&&v.TK&&this.Qb.Pi(v.oQ,v.TK):v.xj&&this.Qb.Pi(v.xj,1E3));v.OY!=null&&this.HH.Fw(v.OY);this.policy.I8&&v.Ly&&(v=((0,g.yR)()-v.Ly)/1E3,this.Qb.aj.dP(1,v))}; g.q.Ex=function(v){this.Qb.Ex(v)}; g.q.eZ=function(v){return this.Nm.has(v)}; g.q.e7=function(v,J,G){this.policy.Z&&this.Qb.uw("sabrctxtplc",{start:v?v.join("_"):"",stop:J?J.join("_"):"",discard:G?G.join("_"):""});if(v){v=g.n(v);for(var K=v.next();!K.done;K=v.next())this.Nm.add(K.value)}if(J)for(J=g.n(J),v=J.next();!v.done;v=J.next())v=v.value,this.Nm.has(v)&&this.Nm.delete(v);if(G)for(G=g.n(G),J=G.next();!J.done;J=G.next())J=J.value,this.videoData.sabrContextUpdates.has(J)&&(this.videoData.sabrContextUpdates.delete(J),J===3&&(this.videoData.hY=""))}; g.q.Za=function(){}; g.q.ql=function(v){this.j=v}; g.q.gk=function(v){this.YB=v}; g.q.ph=function(v,J){GWX(this.policy,v,4,J)}; g.q.P7=function(v){if(v==null?0:v.gN)if(v=v.gN.qQ){v=g.n(v);for(var J=v.next();!J.done;J=v.next())if(J=J.value,J.formatId){var G=this.Jt.Z.get(y$(J.formatId));G&&G.info&&(G.info.debugInfo=J.debugInfo)}}}; g.q.by=function(v){(v=v==null?void 0:v.reloadPlaybackParams)&&this.HH.publish("reloadplayer",v)}; g.q.Ki=function(){return this.HH.Ki()||""}; g.q.wR=function(){var v=Oc(this.audioTrack,!0)*1E3,J=Oc(this.videoTrack,!0)*1E3;return Math.min(v,J)}; g.q.H$=function(v,J){this.Qb.uw(v,J)}; g.q.XE=function(v){wmw(this.Qb,mm8(this.xB,v))}; g.q.X4=function(){g.X.prototype.X4.call(this);this.X=void 0;vJm(this,!0,"i");this.T=[]};r3F.prototype.J7=function(v,J){if(this.L)return DNr(this,J);if(J=Cz(v)){var G=J.X;G&&G.Z&&G.T&&(v=v.Z.length?v.Z[0]:null)&&v.state>=2&&!v.Xa()&&v.info.zl===0&&(this.L=v,this.K=G,this.X=J.info,this.j=this.startTimeSecs=Date.now()/1E3,this.J=this.X.startTime)}return NaN}; r3F.prototype.clear=function(){this.X=this.K=this.L=null;this.T=this.J=this.j=this.startTimeSecs=NaN;this.Z=!1};g.z(g.Nj,g.X);g.q=g.Nj.prototype;g.q.initialize=function(v,J,G){this.logger.debug(function(){return"Initialized, t="+v}); v=v||0;this.policy.T||(J=fSr(this.T),xNf(this.HH,new M8(J.video,J.reason)),this.HH.Xw(new M8(J.audio,J.reason)));this.Jt.isManifestless&&dXt(this.J);this.K&&EJt(this.K,this.videoTrack.T);J=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var K=!this.Jt.isManifestless;this.policy.Xx&&(K=K||this.Jt.mU);this.policy.Mr||(this.currentTime=K?v:J);this.policy.Ti&&this.seek(this.getCurrentTime(),{}).pj(function(){}); if(this.policy.T){var V;((V=this.oY)==null?0:uPw(V,this.Ki()||""))&&zYw(this)&&hYF(this,this.videoTrack)&&hYF(this,this.audioTrack)&&(KMm(this.X,this.oY),this.policy.j&&INU(this))}else this.Ti&&(nJw(this,this.videoTrack),nJw(this,this.audioTrack),MV2(this.Ti),delete this.Ti);G?(this.policy.Hw?(this.g_=G,ai(this,G)):ai(this,!1),g.Wq(this.q8)):(G=this.getCurrentTime()===0,aM(this.J,this.videoTrack,this.videoTrack.T,G),aM(this.J,this.audioTrack,this.audioTrack.T,G),this.policy.T&&cWB(this.X,!0),this.policy.Ti|| this.seek(this.getCurrentTime(),{}).pj(function(){}),this.timing.tick("gv")); (this.Jt.yk||this.Jt.zv||this.Jt.YB||this.Jt.OR||this.Jt.yy)&&this.HH.UI(this.Jt)}; g.q.resume=function(){if(this.isSuspended||this.j9){this.logger.debug("Resumed.");this.cY=this.j9=this.isSuspended=!1;try{this.J7()}catch(v){g.fW(v)}}}; g.q.La=function(){return!this.policy.Xm}; g.q.AT=function(v,J){v=v===void 0?!1:v;J=J===void 0?!1:J;this.logger.debug("detaching media source");THr(this);this.HH.jD()&&(this.j=NaN);v?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.qr&&this.uw("loader",{setsmb:1}),this.policy.Ze=!0,this.fJ()):(this.policy.Hw?ai(this,this.g_):ai(this,!1),J||this.fJ())}; g.q.setAudioTrack=function(v,J,G){G=G===void 0?!1:G;if(!this.Sl()){var K=!isNaN(J);G&&K&&(this.audioTrack.Ti=Date.now(),this.policy.IR&&(this.BH=!0));if(this.policy.T){var V=this.L.tH(v.id,K);this.logger.debug(function(){return"Logging new audio format: "+V.T.info.id}); this.HH.Xw(V)}else{var Y=xms(this.T,v.id,K);this.logger.debug(function(){return"Logging new audio format: "+Y.audio.info.id}); this.HH.Xw(new M8(Y.audio,Y.reason))}if(K&&(G=this.audioTrack.T.index.bz(J),this.uw("setAudio",{id:v.id,cmt:J,sq:G}),G>=0)){this.policy.T&&this.Hn(!0,"mosaic");XZj(this.audioTrack,G,NaN,NaN);!this.policy.jK&&this.Jt.isLive&&p0(this.Jt,G,!1);return}this.HH.I3()}}; g.q.setPlaybackRate=function(v){v!==this.N.getPlaybackRate()&&this.N.setPlaybackRate(v)}; g.q.Dd=function(v){var J=this.X.j;this.X.ql(v);this.uw("scfidc",{curr:y$(J),"new":y$(v)});v&&y$(v)!==y$(J)&&(this.Hn(!1,"caption change"),this.J7())}; g.q.Kb=function(v){this.X.gk(v)}; g.q.zK=function(v){var J=v.T.info.Xj();this.logger.debug(function(){return"New "+(J?"audio":"video")+" format from SABR: "+oj(v.T.info)}); J?this.HH.Xw(v):xNf(this.HH,v)}; g.q.XE=function(v){ZS(v.Vb[v.Vb.length-1])&&wmw(this,mm8(this.T,v.Vb[0].T))}; g.q.Md=function(){return this.HH.Md()}; g.q.fT=function(){return this.HH.fT()}; g.q.Ex=function(v){this.HH.B().GG()&&this.uw("sps",{status:v.FS||""});if(v.FS===1)this.HH.videoData.b5=0;else if(v.FS===2||v.FS===3){var J=!1;if(v.FS===3){J=this.HH.XY();var G;this.Vn=(G=v.KTr)!=null?G:Infinity;this.HH.videoData.b5=J+1;(J=n$t(this))&&this.OZ(!0)}this.HH.fn(!0,J)}}; g.q.mu=function(){return this.HH.mu()}; g.q.kP=function(){return this.HH.kP()}; g.q.Eb=function(v){this.HH.Eb(v)}; g.q.edi=function(){var v,J=(v=this.HH.LY())==null?void 0:v.getCurrentTime();J?this.HH.uw("rms",{cta:J}):g.Wq(this.OR)}; g.q.J7=function(){y3w(this);if(this.K7&&nt(this.K7)&&!this.K7.ow()&&(!this.policy.Mr||isFinite(this.getCurrentTime()))){var v=pJ(this.videoTrack);v=this.policy.dA&&v&&v.fZ();this.Jt.isManifestless&&this.Jt.L&&s4(this.Jt)?(this.j=s4(this.Jt),this.K7.y_(this.j)):y7(this.Jt)&&!v?isNaN(this.j)?(this.j=this.getCurrentTime()+3600,this.K7.y_(this.j)):this.j<=this.getCurrentTime()+1800&&(this.j=Math.max(this.j+1800,this.getCurrentTime()+3600),this.K7.y_(this.j)):this.K7.isView||(v=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.j)||this.j!==v)&&v>0&&(this.K7.y_(v),this.j=v))}if(!this.Sl())if(dE(this.Jt)&&this.Jt.Xa()){var J=this.Jt;this.handleError("manifest.net.retryexhausted",J.BH?{rc:J.PG}:{rc:J.PG.toString()},1)}else if(this.policy.T)a:{try{jvt(this.X);this.Jt.isManifestless&&this.policy.j&&MI(this.Qa);if(lNj(this)&&this.K7&&!MG(this.K7)&&this.videoTrack.YB&&this.audioTrack.YB){this.uw("ssap",{delaysb:1,v:this.videoTrack.T.info.id,vf:this.videoTrack.T.info.aY,a:this.audioTrack.T.info.id, af:this.audioTrack.T.info.aY});var G=this.K7,K=this.videoTrack.T,V=this.audioTrack.T;!MG(G)&&V&&K&&(d1s(G,K.info,V.info,this.policy.F5),pm2(this,G))}var Y;((Y=this.K7)==null?0:MG(Y))&&this.HX();cWB(this.X)}catch(E){g.Zl(E);J=E;if(J.message.includes("changeType")){this.uw("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)}Cgf(this);g.Wq(this.RY)}else if(!this.Jt.X||!aTs(this.videoTrack)&&!aTs(this.audioTrack)||(this.videoTrack.J|| this.audioTrack.J)&&this.policy.d_?G=!1:(this.fJ(),this.HH.seekTo(Infinity,{nK:"checkLoaderTracksSync",Pi:!0}),G=!0),!G){y3w(this);this.Jt.isManifestless&&(A1r(this.videoTrack),A1r(this.audioTrack),MI(this.Qa),(G=Cz(this.videoTrack))&&G.X&&(G=G.X.Z&&!this.policy.BC,this.uw(G===this.policy.U.KZ?"strm":"strmbug",{strm:G,sfmp4:this.policy.U.KZ,dfs:this.policy.BC},!0)));if(this.K7)this.HX();else if(this.policy.L){var r;G=!1;if(this.policy.W4)for(K=g.n([this.videoTrack,this.audioTrack]),V=K.next();!V.done;V= K.next()){Y=V.value;for(V=Cz(Y);V&&Y.UV()!==pJ(Y);V=Cz(Y))Y.dg(V);G=G||!!V}else(J=Cz(this.videoTrack))&&this.videoTrack.dg(J),(r=Cz(this.audioTrack))&&this.audioTrack.dg(r);LJ(this.videoTrack)&&LJ(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(J||r||G)&&nv(this)}dN2(this);aM(this.J,this.videoTrack,this.videoTrack.T,!1);aM(this.J,this.audioTrack,this.audioTrack.T,!1);this.policy.Ak||UN2(this,this.videoTrack,this.audioTrack);eF8(this.J,this.videoTrack,this.audioTrack); eF8(this.J,this.audioTrack,this.videoTrack);Cgf(this);this.K&&(J=this.K,J.L?(r=J.j+J.policy.bk,J.Z||(r=Math.min(r,J.startTimeSecs+J.policy.xu)),J=Math.max(0,r*1E3-Date.now())):J=NaN,isNaN(J)||g.Wq(this.yy,J));g.Wq(this.RY)}}; g.q.vW=function(v){this.HH.vW(v)}; g.q.HX=function(){var v=this;if(this.K7){var J=this.K7.T,G=this.K7.X;o1B(this,this.audioTrack);o1B(this,this.videoTrack);var K=SLB(this);if(K){if(this.policy.zc){if(!J.hB()){var V=Cz(this.audioTrack);if(V){if(!ci(this,this.audioTrack,J,V.info))return;uHt(this,this.audioTrack,J,V)}}if(!G.hB()&&(V=Cz(this.videoTrack))){if(!ci(this,this.videoTrack,G,V.info))return;uHt(this,this.videoTrack,G,V)}}this.pF||(this.pF=(0,g.yR)(),this.logger.debug(function(){return"Appends pause start "+v.pF+" reason "+K}), this.policy.Z&&this.uw("apdps",{r:K}))}else if(this.pF&&(mNw(this,this.pF),this.pF=0),fNs(this),V=!1,this.policy.X&&ua(this.videoTrack)||!NHm(this,this.videoTrack,G)||(V=!0,YHL(this.timing),ezm(this.timing)),this.K7&&!this.K7.v8()&&(this.policy.X&&ua(this.audioTrack)||!NHm(this,this.audioTrack,J)||(V=!0,rfj(this.timing),P8m(this.timing)),!this.Sl()&&this.K7)){if(!this.policy.Xm&&LJ(this.videoTrack)&&LJ(this.audioTrack)&&nt(this.K7)&&!this.K7.ow()){G=!1; G=pJ(this.audioTrack);if(this.policy.X){var Y;J=(Y=this.tR)==null?void 0:XI(Y,G.L*1E3);G=!(!J||J.clipId!==G.clipId);this.uw("ssap",{eos:G})}else Y=G.T,G=Y===this.Jt.T[Y.info.id];G&&(this.logger.debug("Setting EOS"),sAr(this.K7),NpB(this.schedule))}V&&!this.K7.isAsync()&&nv(this)}}}; g.q.tb=function(v){var J,G=v===((J=this.K7)==null?void 0:J.T)?this.audioTrack:this.videoTrack,K;if((K=Cz(G))==null?0:K.isLocked){if(this.HH.B().GG()){var V;this.uw("eosl",{ounlock:(V=Cz(G))==null?void 0:V.info.vO()})}var Y;Qvw(this,v===((Y=this.K7)==null?void 0:Y.T))}var r;if(this.policy.IR&&v===((r=this.K7)==null?void 0:r.T)&&this.WH){J=this.WH-this.getCurrentTime();var E;this.HH.uw("asl",{l:J,xtag:(E=pJ(this.audioTrack))==null?void 0:E.T.info.T});this.BH=!1;this.WH=0}v.bj()&&v.h7().length===0&& (v.lk(),this.K7&&!this.K7.bj()&&(this.HH.B().GG()&&this.HH.uw("rms",{ld:"seek"}),this.K7.j=performance.now(),this.HH.R4(),this.HH.B().GG()&&g.Wq(this.OR)));var e;(e=G.N)!=null&&Vi(e,0);this.policy.a$?zFw(this):this.J7()}; g.q.oLY=function(v){if(this.K7){var J=pJ(v===this.K7.T?this.audioTrack:this.videoTrack);if(v=v.M6())for(var G=0;G5&&v.oY.shift();J=J.yb;var K;if((K=this.HH.getVideoData())==null?0:K.enableServerStitchedDai)K=iYF(this.audioTrack,J),G=iYF(this.videoTrack,J),K!==0&&G!==0&&K!==G&&this.handleError("ssdai.avsync",{sq:J,a:K,v:G},0)}}; g.q.B2=function(v,J,G,K){v.info.video&&this.Z.B2(J,G,K)}; g.q.IQ=function(v){this.T.IQ(v)}; g.q.wC=vF(20);g.q.sx=function(v){this.tR=v;var J;(J=this.audioTrack.K)!=null&&(J.zS=v);(J=this.videoTrack.K)!=null&&(J.zS=v);J=this.X;J.U&&(J.Qb.uw("ssap",{addcacheclips:1,v:J.U.version,tl:V08(J.U.Ui)}),G52(J,v,J.U),J.U=void 0)}; g.q.bQ=function(){return this.tR}; g.q.Yp=function(){return this.videoTrack.U||this.audioTrack.U}; g.q.seek=function(v,J){if(this.Sl())return UF();if(this.Yp())return UF("seeking to head");if(this.policy.Ti&&!isFinite(v))return Xxf(this.Qa),g.OF(Infinity);y3w(this);this.hw=(0,g.yR)();this.policy.T||dN2(this,v);this.K7&&this.K7.T&&this.K7.X&&!this.HH.getVideoData().Pq&&(this.K7.T.isLocked()||this.K7.X.isLocked())&&this.HH.I3({reattachOnLockedBuffer:1,vsb:""+this.K7.X.isLocked(),asb:""+this.K7.T.isLocked()});var G=this.getCurrentTime(),K=this.Qa.seek(v,J);this.policy.Mr||(this.currentTime=K);F7(this.Z, v,G,this.policy.Y3&&!J.ke);nv(this);return g.OF(K)}; g.q.dO=function(v){return this.policy.T&&this.X.dO(v)}; g.q.eZ=function(v){return this.X.eZ(v)}; g.q.Hn=function(v,J){this.X.Hn(v,J)}; g.q.getCurrentTime=function(){if(this.policy.Mr){var v=this.B$()||0;return this.HH.getCurrentTime()-v}return this.currentTime}; g.q.f3=function(){return this.audioTrack.T.info}; g.q.jT=function(){return this.videoTrack.T.info}; g.q.Yj=function(){return this.audioTrack.T.info.aY}; g.q.yW=function(){return this.videoTrack.T.info.aY}; g.q.X4=function(){try{this.AT(),aT(this.audioTrack),aT(this.videoTrack),ZF(this.audioTrack),ZF(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.X.prototype.X4.call(this)}catch(v){g.fW(v)}}; g.q.handleError=function(v,J,G){G=G===void 0?0:G;var K=y9(G);v==="fmt.unplayable"&&this.Jt.isLive&&(this.policy.zc=!1,TP(this.Jt));J=new L6(v,J,G);g.Cf(this);p6(J.details);this.HH.handleError(J);v!=="html5.invalidstate"&&J.errorCode!=="fmt.unplayable"&&v!=="fmt.unparseable"&&K&&this.dispose()}; g.q.u9=function(){var v=pJ(this.audioTrack),J=pJ(this.videoTrack);v={lct:this.getCurrentTime().toFixed(3),lsk:this.Qa.isSeeking(),lmf:this.T.T.isLocked(),lbw:sf(this.schedule).toFixed(3),lhd:nY(this.schedule).toFixed(3),lst:((this.schedule.K.gK()||0)*1E9).toFixed(3),laa:v?v.vO():"",lva:J?J.vO():"",lar:this.audioTrack.X?this.audioTrack.X.vO():"",lvr:this.videoTrack.X?this.videoTrack.X.vO():"",laq:""+yi(this.audioTrack),lvq:""+yi(this.videoTrack)};this.K7&&!this.K7.v8()&&this.K7.T&&this.K7.X&&(v.lab= V4(this.K7.T.h7()),v.lvb=V4(this.K7.X.h7()));this.pF&&(v.lapt=((0,g.yR)()-this.pF).toFixed(0),v.lapr=SLB(this));this.Mr&&(v.lapmabht=((0,g.yR)()-this.Mr).toFixed(0),v.lapmabh=FI(this,this.audioTrack).toFixed(0));this.YB&&(v.lapmvbht=((0,g.yR)()-this.YB).toFixed(0),v.lapmvbh=FI(this,this.videoTrack).toFixed(0));this.qr&&(v.lapsdai=((0,g.yR)()-this.qr).toFixed(0));return v}; g.q.fJ=function(){try{this.policy.T&&this.X.Hn(!1,"pending"),this.audioTrack.fJ(),this.videoTrack.fJ()}catch(v){g.fW(v)}this.policy.L=""}; g.q.PW=function(){return mS(this.N)}; g.q.uw=function(v,J,G){this.HH.uw(v,J,G===void 0?!1:G)}; g.q.Ki=function(){return this.HH.Ki()}; g.q.Pi=function(v,J){v/=J;isNaN(this.timestampOffset)&&Kbm(this,v-Math.min(v,this.policy.OP));return(v-this.timestampOffset)*J}; g.q.B$=function(){return this.timestampOffset}; g.q.isSeeking=function(){return this.Qa.isSeeking()}; g.q.tv=function(){this.Z.tv()}; g.q.fQ=function(v,J,G){J=J===void 0?!1:J;G=G===void 0?{}:G;this.policy.T?this.L.fQ(v,J,G):this.T.fQ(v,J,G)}; g.q.wm=function(v,J){if(!this.U)return!1;var G=this.videoTrack.T.index.bz(v);return this.U.wm(v,J,G)}; g.q.j_=function(v,J){if(this.U&&this.Z.j_(v,this.U))return Kbm(this,this.timestampOffset-J),nv(this),this.policy.J&&(TP(this.Jt),ZF(this.audioTrack),ZF(this.videoTrack),this.fJ()),!0;J=this.videoTrack.T.index.bz(v);this.handleError("ad.skipfailed",{dec:!!this.U,t:v.toFixed(3),sq:J});return!1}; g.q.getManifest=function(){return this.Jt}; g.q.isOffline=function(){return!!this.HH.getVideoData().cotn}; g.q.zY=function(v,J){this.HH.zY(v,J)}; g.q.Ei=function(v){if(this.policy.T)this.X.Hn(!0,"utc"),this.J7();else{var J=this.HH.getVideoData().lz;if(J){var G=this.J;G.wK=v;G.lz=J;FU(this)}}}; g.q.U0=function(v){this.videoTrack.U=!1;this.audioTrack.U=!1;this.Qa.X=!1;this.HH.U0(v)}; g.q.gi=function(v){this.Qa.gi(v-this.B$())}; g.q.l5=function(){this.HH.l5()}; g.q.OZ=function(v){v!==this.policy.Po&&((this.policy.Po=v)||this.J7())}; g.q.eB=function(v,J){var G=this.audioTrack.JR,K=this.videoTrack.JR;G&&K&&(G.remove(v,J),K.remove(v,J))}; g.q.I3=function(v){this.HH.I3(v)}; g.q.KU=function(v){this.HH.KU(v)}; g.q.XY=function(){return this.HH.XY()}; g.q.Or=function(){TP(this.Jt);this.fJ()};g.q=g.F$.prototype;g.q.q2=function(v,J,G,K,V,Y){return this.zS.q2(v,J,G,K,V,Y)}; g.q.Q6=function(v,J,G,K,V,Y){return this.zS.Q6(v,J,G,K,V,Y)}; g.q.YS=function(v){return this.zS.YS(v)}; g.q.AL=function(v){this.zS.AL(v)}; g.q.Xl=function(v,J,G,K){return this.zS.Xl(v,J,G,K)}; g.q.tv=function(){this.zS.tv()}; g.q.wm=function(v,J,G){return this.zS.wm(v,J,G)}; g.q.gg=function(v,J){this.zS.gg(v,J)}; g.q.iG=function(){this.zS.iG()}; g.q.GL=vF(62);g.q.Vt=function(v,J,G){this.zS.Vt(v,J,G)}; g.q.Rx=vF(65);g.q.w6=function(v,J,G,K,V,Y,r,E,e){this.zS.w6(v,J,G,K,V,Y,r,E,e)}; g.q.Zn=function(v){this.zS.Zn(v)}; g.q.l3=function(v){return this.zS.l3(v)}; g.q.L3=function(v){return this.zS.L3(v)};g.z(Hi,g.qU);g.z(Mj,Hi);Mj.prototype.j=function(v,J){if(v&&J){var G=Number(Gj(v,"cpi"))*1+1;isNaN(G)||G<=0||Gthis.Z&&(this.Z=G,g.Xb(this.T)||(this.T={},this.L.stop(),this.X.stop())),this.T[J]=v,g.Wq(this.X))}}; Mj.prototype.J=function(){for(var v=g.n(Object.keys(this.T)),J=v.next();!J.done;J=v.next()){var G=J.value;J=this.publish;for(var K=this.Z,V=this.T[G].match(MC),Y=[],r=g.n(V[6].split("&")),E=r.next();!E.done;E=r.next())E=E.value,E.indexOf("cpi=")===0?Y.push("cpi="+K.toString()):E.indexOf("ek=")===0?Y.push("ek="+g.o7(G)):Y.push(E);V[6]="?"+Y.join("&");G="skd://"+V.slice(2).join("");V=G.length*2;K=new Uint8Array(V+4);K[0]=V%256;K[1]=(V-K[0])/256;for(V=0;V0)for(var G=g.n(this.T),K=G.next();!K.done;K=G.next())if(J===K.value.info.cryptoPeriodIndex){J=!0;break a}J=!1}if(!J){J=(0,g.yR)();a:{G=v.cryptoPeriodIndex;if(!isNaN(G)){K=g.n(this.Z.values());for(var V=K.next();!V.done;V=K.next())if(Math.abs(V.value.cryptoPeriodIndex-G)<=1){G=!0;break a}}G=!1}G?(G=v.T,G=Math.max(0,Math.random()*((isNaN(G)?120:G)-30))*1E3):G=0;this.publish("log_qoe",{wvagt:"delay."+G,cpi:v.cryptoPeriodIndex,reqlen:this.T.length, ignore:this.L});G<=0?E1B(this,v):this.L||(this.T.push({time:J+G,info:v}),g.Wq(this.X,G))}}; QU.prototype.X4=function(){this.T=[];Hi.prototype.X4.call(this)};var PC={},Br2=(PC.DRM_TRACK_TYPE_AUDIO="AUDIO",PC.DRM_TRACK_TYPE_SD="SD",PC.DRM_TRACK_TYPE_HD="HD",PC.DRM_TRACK_TYPE_UHD1="UHD1",PC);g.z(Dyw,g.X);g.z(hjf,g.qU);g.q=hjf.prototype;g.q.Tc=function(v){var J=this;this.Sl()||v.size<=0||(v.forEach(function(G,K){var V=uB(J.X)?K:G;K=new Uint8Array(uB(J.X)?G:K);uB(J.X)&&SMU(K);G=g.hE(K,4);SMU(K);K=g.hE(K,4);J.T[G]?J.T[G].status=V:J.T[K]?J.T[K].status=V:J.T[G]={type:"",status:V};J.DO=[];be(J,J.T[G].type)&&J.DO.push(xym(J.T[G].type))}),Oms(this,","),Wi(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; g.q.error=function(v,J,G,K){this.Sl()||(this.publish("licenseerror",v,J,G,K),v==="drm.provision"&&(v=(Date.now()-this.j)/1E3,this.j=NaN,this.publish("ctmp","provf",{et:v.toFixed(3)})));y9(J)&&this.dispose()}; g.q.shouldRetry=function(v,J){return!v&&this.requestNumber===J.requestNumber}; g.q.X4=function(){this.T={};g.qU.prototype.X4.call(this)}; g.q.u9=function(){var v={ctype:this.U.contentType||"",length:this.U.initData.length,requestedKeyIds:this.dh,cryptoPeriodIndex:this.cryptoPeriodIndex};this.Z&&(v.keyStatuses=this.T);return v}; g.q.getInfo=function(){var v=this.L.join();if(Cv(this)){var J=new Set,G;for(G in this.T)this.T[G].status!=="usable"&&J.add(this.T[G].type);v+="/UKS."+Array.from(J)}return v+="/"+this.cryptoPeriodIndex}; g.q.Dm=function(){return this.url};g.z(jE,g.X);g.q=jE.prototype;g.q.bR=function(v){if(this.J){var J=v.messageType||"license-request";this.J(new Uint8Array(v.message),J)}}; g.q.Tc=function(){this.K&&this.K(this.T.keyStatuses)}; g.q.onClosed=function(){this.Sl()||g.aS("xboxone")&&this.Z&&this.Z("closedShouldNotRetry")}; g.q.Uu=function(v){this.J&&this.J(v.message,"license-request")}; g.q.Ru=function(v){if(this.Z){if(this.X){var J=this.X.error.code;v=this.X.error.systemCode}else J=v.errorCode,v=v.systemCode;this.Z("t.prefixedKeyError;c."+J+";sc."+v,J,v)}}; g.q.GT=function(){this.j&&this.j()}; g.q.update=function(v){var J=this;if(this.T)return(bB.isActive()?bB.MO("emeupd",function(){return J.T.update(v)}):this.T.update(v)).then(null,Rh(function(G){Zm2(J,"t.update",G)})); this.X?this.X.update(v):this.element.addKey?this.element.addKey(this.U.keySystem,v,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.U.keySystem,v,this.initData,this.sessionId);return ma()}; g.q.X4=function(){this.T&&(this.N?this.T.close().catch(g.Zl):this.T.close());this.element=null;g.X.prototype.X4.call(this)};g.z(i2,g.X);g.q=i2.prototype;g.q.setServerCertificate=function(){return this.X.setServerCertificate?this.T.flavor==="widevine"&&this.T.Px?this.X.setServerCertificate(this.T.Px):kI(this.T)&&this.T.WH?this.X.setServerCertificate(this.T.WH):null:null}; g.q.createSession=function(v,J){var G=v.initData;if(this.T.keySystemAccess){J&&J("createsession");var K=this.X.createSession();Xi(this.T)?G=Xz2(G,this.T.WH):kI(this.T)&&(G=qMt(G)||new Uint8Array(0));J&&J("genreq");var V=bB.isActive()?bB.MO("emegen",function(){return K.generateRequest(v.contentType,G)}):K.generateRequest(v.contentType,G); var Y=new jE(null,null,null,K,null,this.K);V.then(function(){J&&J("genreqsuccess")},Rh(function(E){Zm2(Y,"t.generateRequest",E)})); return Y}if(ZT(this.T))return cKt(this,G);if(gE(this.T))return kTX(this,G);if((V=this.element)==null?0:V.generateKeyRequest)this.element.generateKeyRequest(this.T.keySystem,G);else{var r;(r=this.element)==null||r.webkitGenerateKeyRequest(this.T.keySystem,G)}return this.L=new jE(this.element,this.T,G,null,null,this.K)}; g.q.cP=function(v){var J=Nr2(this,v);J&&J.Uu(v)}; g.q.X9=function(v){var J=Nr2(this,v);J&&J.Ru(v)}; g.q.Ab=function(v){var J=Nr2(this,v);J&&J.GT(v)}; g.q.getMetrics=function(){if(this.X&&this.X.getMetrics)try{var v=this.X.getMetrics()}catch(J){}return v}; g.q.X4=function(){this.Z=this.X=null;var v;(v=this.L)==null||v.dispose();v=g.n(Object.values(this.j));for(var J=v.next();!J.done;J=v.next())J.value.dispose();this.j={};g.X.prototype.X4.call(this);delete this.element};g.q=$S.prototype;g.q.get=function(v){v=this.findIndex(v);return v!==-1?this.values[v]:null}; g.q.remove=function(v){v=this.findIndex(v);v!==-1&&(this.keys.splice(v,1),this.values.splice(v,1))}; g.q.removeAll=function(){this.keys=[];this.values=[]}; g.q.set=function(v,J){var G=this.findIndex(v);G!==-1?this.values[G]=J:(this.keys.push(v),this.values.push(J))}; g.q.findIndex=function(v){return g.QY(this.keys,function(J){return g.Eb(v,J)})};g.z(Ca8,g.qU);g.q=Ca8.prototype;g.q.DXB=function(v){this.Gb({onecpt:1});v.initData&&ivr(this,new Uint8Array(v.initData),v.initDataType)}; g.q.um7=function(v){this.Gb({onndky:1});ivr(this,v.initData,v.contentType)}; g.q.fW=function(v){this.Gb({onneedkeyinfo:1});this.EB.C("html5_eme_loader_sync")&&(this.K.get(v.initData)||this.K.set(v.initData,v));ji8(this,v)}; g.q.OE=function(v){this.Z.push(v);vQ(this)}; g.q.createSession=function(v){var J=vHX(this)?$5w(v):g.hE(v.initData);this.X.get(J);this.Ze=!0;v=new hjf(this.videoData,this.EB,v,this.drmSessionId);this.X.set(J,v);v.subscribe("ctmp",this.DB,this);v.subscribe("keystatuseschange",this.Tc,this);v.subscribe("licenseerror",this.Br,this);v.subscribe("newlicense",this.K2,this);v.subscribe("newsession",this.Dg,this);v.subscribe("sessionready",this.au,this);v.subscribe("fairplay_next_need_key_info",this.jn,this);this.EB.C("html5_enable_vp9_fairplay")&&v.subscribe("qualitychange", this.XG,this);this.EB.C("html5_enable_sabr_drm_hd720p")&&v.subscribe("sabrlicenseconstraint",this.MKb,this);sQt(v,this.L)}; g.q.K2=function(v){this.Sl()||(this.Gb({onnelcswhb:1}),v&&!this.heartbeatParams&&(this.heartbeatParams=v,this.publish("heartbeatparams",v)))}; g.q.Dg=function(){this.Sl()||(this.Gb({newlcssn:1}),this.Z.shift(),this.Ze=!1,vQ(this))}; g.q.au=function(){if(ZT(this.T)&&(this.Gb({onsnrdy:1}),this.YB--,this.YB===0)){var v=this.oY,J,G;(J=v.element)==null||(G=J.msSetMediaKeys)==null||G.call(J,v.Z)}}; g.q.Tc=function(v){if(!this.Sl()){!this.qr&&this.videoData.C("html5_log_drm_metrics_on_key_statuses")&&(JOm(this),this.qr=!0);this.Gb({onksch:1});var J=this.XG;if(!Cv(v)&&g.QR&&v.X.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var G="large";else{G=[];var K=!0;if(Cv(v))for(var V=g.n(Object.keys(v.T)),Y=V.next();!Y.done;Y=V.next())Y=Y.value,v.T[Y].status==="usable"&&G.push(v.T[Y].type),v.T[Y].status!=="unknown"&&(K=!1);if(!Cv(v)||K)G=v.L;G=wzw(G)}J.call(this,G);this.publish("keystatuseschange", v)}}; g.q.DB=function(v,J){this.Sl()||this.publish("ctmp",v,J)}; g.q.jn=function(v,J){this.Sl()||this.publish("fairplay_next_need_key_info",v,J)}; g.q.Br=function(v,J,G,K){this.Sl()||(this.videoData.C("html5_log_drm_metrics_on_error")&&JOm(this),this.publish("licenseerror",v,J,G,K))}; g.q.wQ=function(){return this.U}; g.q.XG=function(v){var J=g.Va("auto",v,!1,"l");if(this.videoData.SF){if(this.U.Rt(J))return}else if(c6F(this.U,v))return;this.U=J;this.publish("qualitychange");this.Gb({updtlq:v})}; g.q.MKb=function(v){this.videoData.sabrLicenseConstraint=v}; g.q.X4=function(){this.T.keySystemAccess&&this.element&&(this.dh?this.element.setMediaKeys(null).catch(g.Zl):this.element.setMediaKeys(null));this.element=null;this.Z=[];for(var v=g.n(this.X.values()),J=v.next();!J.done;J=v.next())J=J.value,J.unsubscribe("ctmp",this.DB,this),J.unsubscribe("keystatuseschange",this.Tc,this),J.unsubscribe("licenseerror",this.Br,this),J.unsubscribe("newlicense",this.K2,this),J.unsubscribe("newsession",this.Dg,this),J.unsubscribe("sessionready",this.au,this),J.unsubscribe("fairplay_next_need_key_info", this.jn,this),this.EB.C("html5_enable_vp9_fairplay")&&J.unsubscribe("qualitychange",this.XG,this),J.dispose();this.X.clear();this.j.removeAll();this.K.removeAll();this.heartbeatParams=null;g.qU.prototype.X4.call(this)}; g.q.u9=function(){for(var v={systemInfo:this.T.u9(),sessions:[]},J=g.n(this.X.values()),G=J.next();!G.done;G=J.next())v.sessions.push(G.value.u9());return v}; g.q.getInfo=function(){return this.X.size<=0?"no session":""+this.X.values().next().value.getInfo()+(this.J?"/KR":"")}; g.q.Gb=function(v,J){J=J===void 0?!1:J;this.Sl()||(p6(v),(this.EB.GG()||J)&&this.publish("ctmp","drmlog",v))};g.z(YBL,g.X);g.q=YBL.prototype;g.q.ZQ=function(){return!!this.K1}; g.q.kH=function(){return this.X}; g.q.handleError=function(v){var J=this;Djs(this,v);if((v.errorCode!=="html5.invalidstate"&&v.errorCode!=="fmt.unplayable"&&v.errorCode!=="fmt.unparseable"||!Pet(this,v.errorCode,v.details))&&!h3B(this,v)){if(this.gh.oY!=="yt"&&Bvf(this,v)&&this.videoData.iX&&(0,g.yR)()/1E3>this.videoData.iX&&this.gh.oY==="hm"){var G=Object.assign({e:v.errorCode},v.details);G.stalesigexp="1";G.expire=this.videoData.iX;G.init=this.videoData.Cl/1E3;G.now=(0,g.yR)()/1E3;G.systelapsed=((0,g.yR)()-this.videoData.Cl)/1E3; v=new L6(v.errorCode,G,2);this.HH.ze(v.errorCode,2,"SIGNATURE_EXPIRED",p6(v.details))}if(y9(v.severity)){var K;G=(K=this.HH.Qb)==null?void 0:K.T.T;if(this.gh.C("html5_use_network_error_code_enums"))if(tOF(v)&&G&&G.isLocked())var V="FORMAT_UNAVAILABLE";else if(this.gh.j||v.errorCode!=="auth"||v.details.rc!==429)v.errorCode==="ump.spsrejectfailure"&&(V="HTML5_SPS_UMP_STATUS_REJECTED");else{V="TOO_MANY_REQUESTS";var Y="6"}else tOF(v)&&G&&G.isLocked()?V="FORMAT_UNAVAILABLE":this.gh.j||v.errorCode!=="auth"|| v.details.rc!=="429"?v.errorCode==="ump.spsrejectfailure"&&(V="HTML5_SPS_UMP_STATUS_REJECTED"):(V="TOO_MANY_REQUESTS",Y="6");this.HH.ze(v.errorCode,v.severity,V,p6(v.details),Y)}else this.HH.publish("nonfatalerror",v),K=/^pp/.test(this.videoData.clientPlaybackNonce),this.rd(v.errorCode,v.details),K&&v.errorCode==="manifest.net.connect"&&(v="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.yR)(),Uv(v,"manifest",function(r){J.j=!0;J.uw("pathprobe",r)},function(r){J.rd(r.errorCode, r.details)}))}}; g.q.uw=function(v,J){this.HH.zG().uw(v,J)}; g.q.rd=function(v,J){J=p6(J);this.HH.zG().rd(v,J)};djw.prototype.xg=function(v,J){return(J===void 0?0:J)?{d0:v?oc(this,v):AW,GI:v?OvB(this,v):AW,Kgw:v?yOF(this,v):AW,m$i:v?Zv2(this,v.videoData):AW,NW:v?u$w(this,v.videoData,v):AW,RZ4:v?piF(this,v):AW,IIi:l02(this)}:{d0:v?oc(this,v):AW}}; djw.prototype.C=function(v){return this.EB.C(v)};g.z(Kl,g.X);Kl.prototype.onError=function(v){if(v!=="player.fatalexception"||this.provider.C("html5_exception_to_health"))v==="sabr.fallback"&&(this.encounteredSabrFallback=!0),v.match(cjU)?this.networkErrorCount++:this.nonNetworkErrorCount++}; Kl.prototype.send=function(){if(!(this.Z||this.T<0)){kuj(this);var v=g.AO(this.provider)-this.T,J="PLAYER_PLAYBACK_STATE_UNKNOWN",G=this.playerState.c8;this.playerState.isError()?J=G&&G.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.H(this.playerState,2)?J="PLAYER_PLAYBACK_STATE_ENDED":g.H(this.playerState,64)?J="PLAYER_PLAYBACK_STATE_UNSTARTED":g.H(this.playerState,16)||g.H(this.playerState,32)?J="PLAYER_PLAYBACK_STATE_SEEKING":g.H(this.playerState,1)&&g.H(this.playerState, 4)?J="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.H(this.playerState,1)?J="PLAYER_PLAYBACK_STATE_BUFFERING":g.H(this.playerState,4)?J="PLAYER_PLAYBACK_STATE_PAUSED":g.H(this.playerState,8)&&(J="PLAYER_PLAYBACK_STATE_PLAYING");G=SxS[sL(this.provider.videoData)];a:switch(this.provider.EB.playerCanaryState){case "canary":var K="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":K="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:K="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var V=cOm(this.provider), Y=this.X<0?v:this.X-this.T;v=this.provider.EB.rJ+36E5<(0,g.yR)();J={started:this.X>=0,stateAtSend:J,joinLatencySecs:Y,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:K,playerCanaryStage:V,isAd:this.provider.videoData.isAd(),liveMode:G,hasDrm:!!g.nh(this.provider.videoData),isGapless:this.provider.videoData.U,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:YJ(this.provider.videoData)};v||g.ql("html5PlayerHealthEvent",J);this.Z=!0;this.dispose()}}; Kl.prototype.X4=function(){this.Z||this.send();window.removeEventListener("error",this.IS);window.removeEventListener("unhandledrejection",this.IS);g.X.prototype.X4.call(this)}; var cjU=/\bnet\b/;g.z(a0m,g.X);a0m.prototype.X4=function(){FIr(this);g.X.prototype.X4.call(this)};var Hvr=/[?&]cpn=/;g.z(Vm,g.X);Vm.prototype.flush=function(){var v={};this.X&&(v.pe=this.X);this.T.length>0&&(v.pt=this.T.join("."));this.T=[];return v}; Vm.prototype.stop=function(){var v=this,J,G,K;return g.m(function(V){if(V.T==1)return g.nf(V,2),g.U(V,(J=v.L)==null?void 0:J.stop(),4);if(V.T!=2)return(G=V.X)&&v.logTrace(G),g.Rm(V,0);K=g.lj(V);v.X=ilw(K.message);g.zX(V)})}; Vm.prototype.logTrace=function(v){this.encoder.reset();this.encoder.add(1);this.encoder.add(v.resources.length);for(var J=g.n(v.resources),G=J.next();!G.done;G=J.next()){G=G.value.replace("https://www.youtube.com/s/","");this.encoder.add(G.length);for(var K=0;K=0?v:g.AO(this.provider),this.Ze?NKU.has(this.Gr)&&(this.T.size||(this.Gr==="PL"?v>=this.X+30:v<=this.dh+30||v>=this.X+1200&&v<=this.dh+86400))&&(g.qa(this,v,"vps",[this.Gr]),this.X=v):["PL","B","S"].indexOf(this.Gr)>-1&&(this.T.size||v>=this.X+30)&&(g.qa(this,v,"vps",[this.Gr]),this.X=v),this.T.size)){this.sequenceNumber===7E3&&g.Zl(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){PQ(this,v);var J=this.provider.HH.iF(); J=g.n(J);for(var G=J.next();!G.done;G=J.next())G=G.value,this.uw(G.key,G.value);J=v;G=this.provider.HH.Hy();var K=G.droppedVideoFrames||0,V=G.totalVideoFrames||0,Y=K-this.T6,r=V&&!this.Q4;K>G.totalVideoFrames||Y>5E3?P2f(this,"html5.badframedropcount","df."+K+";tf."+G.totalVideoFrames):(Y>0||r)&&g.qa(this,J,"df",[Y]);this.T6=K;this.Q4=V;this.N>0&&(g.qa(this,v,"glf",[this.N]),this.N=0);bb.isActive()&&(v=bb.YG(),Object.keys(v).length>0&&this.uw("profile",v));this.UR&&D7(this,"lwnmow");this.provider.EB.GG()&& this.provider.C("html5_record_now")&&this.uw("now",{wt:(0,g.yR)()});v={};this.provider.videoData.X&&(v.fmt=this.provider.videoData.X.itag,(J=this.provider.videoData.L)&&J.itag!==v.fmt&&(v.afmt=J.itag));v.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(v.adcpn=this.adCpn);this.K4&&(v.addocid=this.K4);this.contentCpn&&(v.ccpn=this.contentCpn);this.Ti&&(v.cdocid=this.Ti);this.provider.videoData.cotn&&(v.cotn=this.provider.videoData.cotn);v.el=ZN(this.provider.videoData);v.content_v=gH(this.provider.videoData); v.ns=this.provider.EB.oY;v.fexp=pfm(this.provider.EB.experiments).toString();v.cl=(742904825).toString();(J=this.provider.videoData.adFormat||this.adFormat)&&(v.adformat=J);(J=sL(this.provider.videoData))&&(v.live=J);this.provider.videoData.cw()&&(v.drm=1,this.provider.videoData.J&&(v.drm_system=yjY[this.provider.videoData.J.flavor]||0),this.provider.videoData.qm&&(v.drm_product=this.provider.videoData.qm));rx()&&this.provider.videoData.j&&(v.ctt=this.provider.videoData.j,v.cttype=this.provider.videoData.mx, this.provider.videoData.mdxEnvironment&&(v.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(v.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.Xn&&(v.dai_fallback="1")):this.provider.videoData.E1?v.dai="cs":this.provider.videoData.Rd&&(v.dai="disabled");v.seq=this.sequenceNumber++;if(this.provider.videoData.N9){if(J=this.provider.videoData.N9,v&&J)for(J.ns==="3pp"&&(v.ns="3pp"),this.Xm.has(J.ns)&&D7(this,"hbps"), J.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=J.shbpslc),this.provider.EB.experiments.OB("html5_use_server_qoe_el_value")&&this.Nr.delete("el"),G=g.n(Object.keys(J)),K=G.next();!K.done;K=G.next())K=K.value,this.Nr.has(K)||(v[K]=J[K])}else v.event="streamingstats",v.docid=this.provider.videoData.videoId,v.ei=this.provider.videoData.eventId;this.isEmbargoed&&(v.embargoed="1");Object.assign(v,this.provider.EB.T);if(J=v.seq)J={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+J, serializedWatchEndpointLoggingContext:this.provider.videoData.Ic},this.serializedHouseBrandPlayerServiceLoggingContext&&(J.serializedHouseBrandPlayerServiceLoggingContext=n8(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(J.playerResponseCpn=this.provider.videoData.playerResponseCpn),rF.length&&(J.decoderInfo=rF),this.provider.HH.bQ()&&(J.transitionStitchType=4,this.Mr&&(J.timestampOffsetMsecs=this.Mr)),this.remoteControlMode&&(J.remoteControlMode= this.remoteControlMode),this.remoteConnectedDevices.length&&(J.remoteConnectedDevices=this.remoteConnectedDevices),J=g.Cp(J,Po2),J=g.hE(J,4),this.T.set("qclc",[J]);v=g.vt("//"+this.provider.EB.x6+"/api/stats/qoe",v);G=J="";K=g.n(this.T.entries());for(V=K.next();!V.done;V=K.next())Y=g.n(V.value),V=Y.next().value,Y=Y.next().value,r=void 0,(r=Y)!=null&&r.join&&(V="&"+V+"="+Y.join(","),V.length>100?G+=V:J+=V);r5j(this,v+J,G.replace(/ /g,"%20"))}this.T.clear()}}; g.q.KU=function(v){this.UR=v}; g.q.sW=function(){if(this.provider.videoData.J){var v=this.provider.videoData.J;D7(this,"eme-"+(v.keySystemAccess?"final":ZT(v)?"ms":Xi(v)?"ytfp":gE(v)?"safarifp":"nonfinal"))}}; g.q.MZ=vF(59);g.q.Lt=function(v){this.isEmbargoed=v}; g.q.ya=vF(36);g.q.ZM=vF(42);g.q.onPlaybackRateChange=function(v){var J=g.AO(this.provider);v&&v!==this.KK&&(g.qa(this,J,"rate",[v]),this.KK=v);this.Ze||this.reportStats(J)}; g.q.yu=vF(30);g.q.getPlayerState=function(v){if(g.H(v,128))return"ER";if(g.H(v,2048))return"B";if(g.H(v,512))return"SU";if(g.H(v,16)||g.H(v,32))return"S";if(v.isOrWillBePlaying()&&g.H(v,64))return"B";var J=aCY[EC(v)];g.yW(this.provider.EB)&&J==="B"&&this.provider.HH.getVisibilityState()===3&&(J="SU");J==="B"&&g.H(v,4)&&(J="PB");return J}; g.q.X4=function(){g.X.prototype.X4.call(this);g.ze(this.j);g.ze(this.OR)}; g.q.KE=function(v){this.isOffline=v;g.qa(this,g.AO(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.q.uw=function(v,J,G){var K=this.Vy.indexOf(v)!==-1;K||this.Vy.push(v);if(!G||!K){var V=typeof J!=="string"?p6(J):J;V=tEj(V);if(!G&&!/^t[.]/.test(V)){var Y=g.AO(this.provider)*1E3;V="t."+Y.toFixed()+";"+V}eE(this,"ctmp",v+":"+V);this.logger.debug(function(){return"ctmp "+v+" "+V}); qOL(this);return Y}}; g.q.AZ=function(v,J,G){this.J={f0U:Number(this.uw("glrem",{nst:v.toFixed(),rem:J.toFixed(),ca:+G})),c6:v,DLi:J,isAd:G}}; g.q.Z5=function(v,J,G){g.qa(this,g.AO(this.provider),"ad_playback",[v,J,G])}; g.q.bN=function(v,J){var G=g.AO(this.provider)*1E3;eE(this,"daism","t."+G.toFixed(0)+";smw."+(v*1E3).toFixed(0)+";smo."+(J*1E3).toFixed(0))}; g.q.resume=function(){var v=this;this.provider.EB.GG()&&this.uw("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.j)?ESB(this):this.j=g.IS(function(){v.reportStats()},1E4)}; var DX={},aCY=(DX[5]="N",DX[-1]="N",DX[3]="B",DX[0]="EN",DX[2]="PA",DX[1]="PL",DX[-1E3]="ER",DX[1E3]="N",DX),NKU=new Set(["PL","B","S"]),rF=[];h5.prototype.bl=function(){return this.T}; h5.prototype.update=function(){if(this.K){var v=this.Qk()||0,J=g.AO(this.provider);v>=this.provider.HH.getDuration()-.1&&(this.previouslyEnded=!0);if(v!==this.T||nSw(this,v,J)){var G;if(!(G=vJ-this.N0+2||nSw(this,v,J))){G=this.provider.HH.getVolume();var K=G!==this.N,V=this.provider.HH.isMuted()?1:0;V!==this.U?(this.U=V,G=!0):(!K||this.L>=0||(this.N=G,this.L=J),G=J-this.L,this.L>=0&&G>2?(this.L=-1,G=!0):G=!1)}G&&(zE(this),this.Z=v);this.N0=J;this.T=v}}}; h5.prototype.Qk=function(){var v=this.provider.HH.Qk();return this.provider.EB.C("html5_disable_live_dvr_shrink_for_cdm_vss")&&NN(this.provider.videoData)?v+this.provider.HH.B$():v};daf.prototype.send=function(v){var J=this;if(!this.BH){var G=R78(this),K=g.vt(this.uri,G);this.EB.C("vss_through_gel_double")&&l7w(K);this.Ze&&!this.EB.C("html5_simplify_pings")?wQw(this,K):scB(this,v).then(function(V){J.Ze&&(V=V||{},V.method="POST",V.postParams={atr:J.attestationResponse});Ce8(K,V,{token:J.Ti,aZ:J.o$,mdxEnvironment:J.mdxEnvironment},J.EB,v,J.Mr,J.isFinal&&J.Bv||J.qr||J.Z&&J.rJ)}); this.BH=!0}}; daf.prototype.X=function(v){v===void 0&&(v=NaN);return Number(v.toFixed(3)).toString()}; var tV={},LQs=(tV.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,tV.LIVING_ROOM_APP_MODE_MAIN=1,tV.LIVING_ROOM_APP_MODE_KIDS=2,tV.LIVING_ROOM_APP_MODE_MUSIC=3,tV.LIVING_ROOM_APP_MODE_UNPLUGGED=4,tV.LIVING_ROOM_APP_MODE_GAMING=5,tV),BC={},pQB=(BC.EMBEDDED_PLAYER_MODE_UNKNOWN=0,BC.EMBEDDED_PLAYER_MODE_DEFAULT=1,BC.EMBEDDED_PLAYER_MODE_PFP=2,BC.EMBEDDED_PLAYER_MODE_PFL=3,BC);g.z(dF,g.X);g.q=dF.prototype;g.q.V9=function(){this.T.update();gSm(this)&&(xaw(this),ma8(this),this.D8())}; g.q.X4=function(){g.X.prototype.X4.call(this);l2(this);h7s(this.T)}; g.q.u9=function(){return R78(sO(this,"playback"))}; g.q.D8=function(){this.provider.videoData.K.eventLabel=ZN(this.provider.videoData);this.provider.videoData.K.playerStyle=this.provider.EB.playerStyle;this.provider.videoData.tF&&(this.provider.videoData.K.feature="pyv");this.provider.videoData.K.vid=this.provider.videoData.videoId;var v=this.provider.videoData.K;var J=this.provider.videoData;J=J.isAd()||!!J.tF;v.isAd=J}; g.q.RK=function(v){var J=sO(this,"engage");J.dh=v;return TFw(J,A5j(this.provider))};a7f.prototype.isEmpty=function(){return this.endTime===this.startTime};pl.prototype.C=function(v){return this.EB.C(v)}; pl.prototype.getCurrentTime=function(v){if(this.C("html5_ssap_current_time_for_logging_refactor")){var J=this.HH.bQ();if(J&&(v=v||J.E2()))return bH(J,v)}else if(g.WG(this.videoData)){var G=this.HH.bQ();if(G)return v=this.HH.getCurrentTime(),G=(((J=XI(G,v*1E3))==null?void 0:J.Z7)||0)/1E3,v-G}return this.HH.getCurrentTime()}; pl.prototype.Qk=function(v){if(this.C("html5_ssap_current_time_for_logging_refactor")){var J=this.HH.bQ();if(J&&(v=v||J.E2()))return bH(J,v)}else if(g.WG(this.videoData)){var G=this.HH.bQ();if(G)return v=this.HH.Qk(),G=(((J=XI(G,v*1E3))==null?void 0:J.Z7)||0)/1E3,v-G}return this.HH.Qk()}; var FQX={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.z(g.Ll,g.X);g.q=g.Ll.prototype;g.q.V9=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Am){var v;(v=this.Z.get(this.Am))==null||v.V9()}else this.T&&this.T.V9()}; g.q.Lt=function(v){this.qoe&&this.qoe.Lt(v)}; g.q.ya=vF(35);g.q.ZM=vF(41);g.q.bN=function(v,J){this.qoe&&this.qoe.bN(v,J)}; g.q.xM=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Am){var v;(v=this.Z.get(this.Am))!=null&&zE(v.T)}else this.T&&zE(this.T.T)}; g.q.rd=function(v,J){this.qoe&&P2f(this.qoe,v,J);if(this.X)this.X.onError(v)}; g.q.onPlaybackRateChange=function(v){if(this.qoe)this.qoe.onPlaybackRateChange(v);this.T&&zE(this.T.T)}; g.q.MZ=vF(58);g.q.uw=function(v,J,G){this.qoe&&this.qoe.uw(v,J,G)}; g.q.AZ=function(v,J,G){this.qoe&&this.qoe.AZ(v,J,G)}; g.q.Fw=function(v){var J;(J=this.qoe)==null||J.Fw(v)}; g.q.UI=function(v){var J;(J=this.qoe)==null||J.UI(v)}; g.q.KU=function(v){this.qoe&&this.qoe.KU(v)}; g.q.Z5=function(v,J,G){this.qoe&&this.qoe.Z5(v,J,G)}; g.q.yu=vF(29);g.q.I1=function(){if(this.qoe)return this.qoe.I1()}; g.q.u9=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Am){var v,J;return(J=(v=this.Z.get(this.Am))==null?void 0:v.u9())!=null?J:{}}return this.T?this.T.u9():{}}; g.q.b3=function(){var v;return(v=this.qoe)==null?void 0:v.b3()}; g.q.vL=function(v,J){var G;(G=this.qoe)==null||G.vL(v,J)}; g.q.RK=function(v){return this.T?this.T.RK(v):function(){}}; g.q.D8=function(){this.T&&this.T.D8()}; g.q.getVideoData=function(){return this.provider.videoData}; g.q.resume=function(){this.qoe&&this.qoe.resume()};g.z(wF,g.X); wF.prototype.Tz=function(v,J,G){if(this.T.has(v)){var K=this.T.get(v);if(J.videoId&&!Hlm(K))this.X.uw("ssap",{rlc:v}),J_s(this,v);else return}if(!this.T.has(v)){K=new pl(J,this.EB,this.HH);var V=Math.round(g.AO(this.X.provider)*1E3);K=new g.Ll(K,V);Hlm(K)||this.X.uw("nqv",{vv:J.videoId});V=this.X.getVideoData();this.T.set(v,K);if(K.qoe){var Y=K.qoe,r=V.videoId||"";Y.contentCpn=V.clientPlaybackNonce;Y.Ti=r}MEm(K);G===2&&(this.EB.C("html5_log_ad_playback_docid")?(G=this.X,G.qoe&&(G=G.qoe,K=J.a$||"", V=J.breakType||0,J=J.videoId||"",Y=this.EB.oY||"yt",g.qa(G,g.AO(G.provider),"ad_playback",[v,K,V,J,Y]))):this.X.Z5(v,J.a$||"",J.breakType||0))}}; wF.prototype.tA=function(v,J,G,K,V,Y,r,E){if(v!==J){var e=this.zG(v),P=this.zG(J),D,t=v===((D=e.getVideoData())==null?void 0:D.clientPlaybackNonce),B;D=J===((B=P.getVideoData())==null?void 0:B.clientPlaybackNonce);var I;B=t?((I=e.getVideoData())==null?void 0:I.videoId)||"":"nvd";var h;I=D?((h=P.getVideoData())==null?void 0:h.videoId)||"":"nvd";t&&(e=e.qoe)!=null&&(BQ(e,4,Y?4:V?2:0,J,I,G),e.reportStats());D&&(ym(P),(J=P.qoe)!=null&&(BQ(J,4,Y?5:V?3:1,v,B,K),J.reportStats()),C2r(P,new g.Dz(r,P.Gr)), QcX(P));E&&J_s(this,v)}}; wF.prototype.zG=function(v){v=v||this.Am;return this.T.get(v)||this.X};g.z(g.OO,g.X);g.q=g.OO.prototype; g.q.oR=function(v,J){this.sync();J&&this.T.array.length>=2E3&&this.dj("captions",1E4);J=this.T;if(v.length>1&&v.length>J.array.length)J.array=J.array.concat(v),J.array.sort(J.T);else for(var G=g.n(v),K=G.next();!K.done;K=G.next())K=K.value,!J.array.length||J.T(K,J.array[J.array.length-1])>0?J.array.push(K):g.e5(J.array,K,J.T);v=g.n(v);for(J=v.next();!J.done;J=v.next())J=J.value,J.namespace==="ad"&&this.L("ssap",{acrsid:J.getId(),acrsst:J.start,acrset:J.end,acrscpt:J.playerType});this.Z=NaN;this.sync()}; g.q.yS=function(v){v.length>1E4&&g.Zl(new g.Mk("Over 10k cueRanges removal occurs with a sample: ",v[0]));if(!this.Sl()){for(var J=g.n(v),G=J.next();!G.done;G=J.next())(G=G.value)&&G.namespace==="ad"&&this.L("ssap",{rcrid:G.getId(),rcst:G.start,rcet:G.end,rcpt:G.playerType});var K=new Set(v);this.X=this.X.filter(function(V){return!K.has(V)}); qqF(this.T,K);this.sync()}}; g.q.dj=function(v,J){var G=(isNaN(this.Z)?g.H(this.HH.getPlayerState(),2)?0x8000000000000:this.HH.getCurrentTime()*1E3:this.Z)-J;J=this.kP().filter(function(K){return K.namespace===v&&K.endthis.T,Y=g.H(G,8)&&g.H(G,16),r=this.HH.Wo().isBackground()||G.isSuspended();kS(this,this.Nr,Y&&!r,V,"qoe.slowseek",function(){},"timeout"); var E=isFinite(this.T);E=Y&&E&&wsw(J,this.T);var e=!K||Math.abs(K-this.T)>10,P=this.EB.C("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),D=K===0&&this.X&&[11,10].includes(this.X);kS(this,this.wh,E&&e&&!r&&(!P||!D),V,"qoe.slowseek",function(){J.seekTo(v.T)},"set_cmt"); e=E&&rj(J.dK(),this.T);P=this.HH.Qb;E=!P||P.La();var t=function(){J.seekTo(v.T+.001)}; kS(this,this.Gi,e&&E&&!r,V,"qoe.slowseek",t,"jiggle_cmt");E=function(){return v.HH.Si()}; kS(this,this.xB,e&&!r,V,"qoe.slowseek",E,"new_elem");e=qH(G);D=G.isBuffering();var B=J.dK(),I=YG(B,K),h=I>=0&&B.end(I)>K+5,R=e&&D&&h,T=this.HH.getVideoData();kS(this,this.RY,K<.002&&this.T<.002&&Y&&g.yW(this.EB)&&g.ug(T)&&!r,V,"qoe.slowseek",E,"slow_seek_shorts");kS(this,this.oY,T.N5()&&Y&&!r&&!T.Ze,V,"qoe.slowseek",E,"slow_seek_gapless_shorts");kS(this,this.dh,R&&!r,e&&!D,"qoe.longrebuffer",t,"jiggle_cmt");kS(this,this.Ze,R&&!r,e&&!D,"qoe.longrebuffer",E,"new_elem_nnr");if(P){var L=P.getCurrentTime(); Y=J.TO();Y=IzX(Y,L);Y=!P.isSeeking()&&K===Y;kS(this,this.R$,e&&D&&Y&&!r,e&&!D&&!Y,"qoe.longrebuffer",function(){J.seekTo(L)},"seek_to_loader")}Y={}; t=YG(B,Math.max(K-3.5,0));R=t>=0&&K>B.end(t)-1.1;var O=t>=0&&t+1=0&&R&&O<11;Y.close2edge=R;Y.gapsize=O;Y.buflen=B.length;this.X&&(Y.seekSour=this.X);if(I=this.HH.bQ()){t=I.E2();R=t!==XI(I,K*1E3).clipId;O=g.DI(this.EB.experiments,"html5_ssap_skip_seeking_offset_ms");var x=(gm(I,t)+O)/1E3;kS(this,this.qr,R&&e&&D&&!r,e&&!D,"qoe.longrebuffer",function(){J.seekTo(x)},"ssap_clip_not_match")}kS(this,this.Mr,e&&D&&!r,e&&!D,"qoe.longrebuffer", function(){},"timeout",Y); Y=G.isSuspended();Y=this.HH.YK()&&!Y;kS(this,this.K,Y,!Y,"qoe.start15s",function(){v.HH.Lq("ad")},"ads_preroll_timeout"); I=K-this.L<.5;var f;Y=!((f=this.HH.bQ())==null||!f.b2());R=(t=T.isAd()||Y&&this.EB.experiments.OB("html5_ssap_skip_slow_ad"))&&e&&!D&&I;f=function(){var c=v.HH,b=g.WG(c.videoData)&&c.tR,M=c.GS.getVideoData();(M&&c.videoData.isAd()&&M.E1===c.getVideoData().E1||!c.videoData.cG)&&!b?c.ze("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+c.videoData.videoId):vz(c.videoData,"html5_ssap_skip_slow_ad")&&b&&c.tR.b2()&&(c.rd(new L6("ssap.transitionfailure",{cpn:XI(c.tR,c.Qk()).clipId,pcpn:c.tR.E2(),cmt:c.Qk()})), c=c.tR,b=c.playback.Qk(),(b=GHf(c,b))&&jRF(c,b.wp()/1E3))}; kS(this,this.o$,R,!R,"ad.rebuftimeout",f,"skip_slow_ad");I=t&&D&&rj(J.dK(),K+5)&&I;kS(this,this.d_,I&&!r,!I,"ad.rebuftimeout",f,"skip_slow_ad_buf");f=G.isOrWillBePlaying()&&g.H(G,64)&&!r;kS(this,this.g_,f,V,"qoe.start15s",function(){},"timeout"); f=!!P&&!P.K7&&G.isOrWillBePlaying();kS(this,this.YB,f,V,"qoe.start15s",E,"newElemMse");f=el(B,0);I=g.H(G,16)||g.H(G,32);I=!r&&G.isOrWillBePlaying()&&D&&!I&&(g.H(G,64)||K===0)&&f>5;kS(this,this.WH,g.ug(T)&&I,e&&!D,"qoe.longrebuffer",function(){v.HH.I3()},"reset_media_source"); kS(this,this.BH,g.ug(T)&&I,e&&!D,"qoe.longrebuffer",E,"reset_media_element");this.L===0&&(this.j=K);I=D&&this.T===0&&K>1&&K===this.j;kS(this,this.jl,g.ug(T)&&I,e&&!D,"qoe.slowseek",function(){J.seekTo(0)},"reseek_after_time_jump"); r=G.isOrWillBePlaying()&&!r;h=this.HH.ZL()-K<6&&!h&&this.HH.S9();kS(this,this.U,T.N5()&&r&&D&&h,e&&!D,"qoe.longrebuffer",function(){v.HH.Si(!1,!0)},"handoff_end_long_buffer_reload"); P=(P==null?void 0:YMj(P))||NaN;P=B.length>1||!isNaN(P)&&P-.1<=K;kS(this,this.N,ov(T)&&r&&D&&P,e&&!D,"qoe.longrebuffer",E,"gapless_slice_append_stuck");r=ov(T)&&this.X===104&&r&&(D||g.H(G,8)&&g.H(G,16));kS(this,this.Ti,r,V,"qoe.start15s",E,"gapless_slow_start");G=!!(Y&&f>5&&G.isPlaying()&&K<.1);kS(this,this.UR,G,K>.5&&e,"qoe.longrebuffer",E,"ssap_stuck_in_ad_beginning");this.L=K;this.J.start()}}; XQ.prototype.rd=function(v,J,G){J=this.u9(J);J.wn=G;J.wdup=this.Z[v]?"1":"0";this.HH.rd(new L6(v,J));this.Z[v]=!0}; XQ.prototype.u9=function(v){v=Object.assign(this.HH.u9(!0),v.u9());this.T&&(v.stt=this.T.toFixed(3));this.HH.getVideoData().isLivePlayback&&(v.ct=this.HH.getCurrentTime().toFixed(3),v.to=this.HH.B$().toFixed(3));delete v.uga;delete v.euri;delete v.referrer;delete v.fexp;delete v.vm;return v}; u2.prototype.reset=function(){this.T=this.X=this.Z=this.startTimestamp=0;this.L=!1}; u2.prototype.test=function(v){if(!this.J||this.X)return!1;if(!v)return this.reset(),!1;v=(0,g.yR)();if(!this.startTimestamp)this.startTimestamp=v,this.Z=0;else if(this.Z>=this.J)return this.X=v,!0;this.Z+=1;return!1}; u2.prototype.u9=function(){var v={},J=(0,g.yR)();this.startTimestamp&&(v.wsd=(J-this.startTimestamp).toFixed());this.X&&(v.wtd=(J-this.X).toFixed());this.T&&(v.wssd=(J-this.T).toFixed());return v};g.z(ODj,g.X);g.q=ODj.prototype;g.q.setMediaElement=function(v){(this.mediaElement=v)?(this.mediaElement&&(this.J||this.Z||!this.mediaElement.Bd()||this.seekTo(.01,{nK:"seektimeline_setupMediaElement"})),cQ(this)):ac(this)}; g.q.getCurrentTime=function(){if(Na(this.HH)){if(!isNaN(this.X))return this.X}else if(!isNaN(this.X)&&isFinite(this.X))return this.X;return this.mediaElement&&a9w(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.Z||0}; g.q.u4=function(){return this.BH}; g.q.Qk=function(){return this.getCurrentTime()-this.B$()}; g.q.O6=function(){return this.T?this.T.O6():Infinity}; g.q.isAtLiveHead=function(v){if(!this.T)return!1;v===void 0&&(v=this.getCurrentTime());return fl(this.T,v)}; g.q.a6=function(){return!!this.T&&this.T.a6()}; g.q.seekTo=function(v,J){var G=J===void 0?{}:J;J=G.NF===void 0?!1:G.NF;var K=G.xt===void 0?0:G.xt;var V=G.gT===void 0?!1:G.gT;var Y=G.V2===void 0?0:G.V2;var r=G.nK===void 0?"":G.nK;var E=G.seekSource===void 0?void 0:G.seekSource;var e=G.Pi===void 0?!1:G.Pi;var P=G.ke===void 0?!1:G.ke;G=G.Jg===void 0?!1:G.Jg;e&&(v+=this.B$());YJ(this.videoData)&&E===29&&(this.BH=void 0);e=v=this.j3())||!g.yf(this.videoData),D||(R={st:R,mst:this.j3()},this.T&&this.C("html5_high_res_seek_logging")&&(R.ht=this.T.O6(),R.adft=RWw(this.T)),this.HH.uw("seeknotallowed",R)),R=D));if(!R)return this.L&&(this.L=null,c_F(this)),g.OF(this.getCurrentTime());R=.005;P&&this.C("html5_sabr_seek_no_shift_tolerance")&&(R=0);if(Math.abs(v-this.X)<=R&&this.dh)return this.J;r&&(R=v,(this.EB.GG()||this.C("html5_log_seek_reasons"))&&this.HH.uw("seekreason",{reason:r, tgt:R}));E&&(this.N.X=E);this.dh&&ac(this);this.J||(this.J=new Ct);v&&!isFinite(v)&&Sqt(this,!1);(r=G||e)||(r=v,r=!(this.videoData.isLivePlayback&&this.videoData.Z&&!this.videoData.Z.T&&!(this.mediaElement&&this.mediaElement.Rw()>0&&jP(this.mediaElement)>0)||Pm(this.videoData)&&this.ju()===this.j3(!1)?0:isFinite(r)||!Pm(this.videoData)));r||(v=FQ(this,v,V));v&&!isFinite(v)&&Sqt(this,!1);this.Z=v;this.Gi=Y;this.X=v;this.j=0;this.T&&(V=this.T,Y=v,l9L(V,Y,!1),T1F(V,Y));V=this.HH;Y=v;r={NF:J,seekSource:E}; V.JP.Z=Y;G=V.rq;G.mediaTime=Y;G.T=!0;r.NF&&V.Oe(r);r=Y>V.videoData.endSeconds&&Y>V.videoData.limitedPlaybackDurationInSeconds;V.XM&&r&&isFinite(Y)&&RBX(V);YJ.start&&RBX(this.HH);return this.J}; g.q.j3=function(v){if(!this.videoData.isLivePlayback)return Cpt(this.HH);var J;return JK(this.videoData)&&((J=this.mediaElement)==null?0:J.isPaused())&&this.videoData.T?(v=this.getCurrentTime(),ERU(this.IA(v)*1E3)+v):this.C("html5_sabr_parse_live_metadata_playback_boundaries")&&YJ(this.videoData)&&this.videoData.T?v?this.videoData.T.Ti||0:this.videoData.T.Iw||0:Pm(this.videoData)&&this.videoData.qr&&this.videoData.T?this.videoData.T.j3()+this.timestampOffset:this.videoData.Z&&this.videoData.Z.T?!v&& this.T?this.T.O6():Cpt(this.HH)+this.timestampOffset:this.mediaElement?Hy()?ERU(this.mediaElement.Mq().getTime()):jP(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.q.ju=function(){if(g.WG(this.videoData)){var v=this.HH;g.WG(v.videoData);var J,G;return(G=(J=v.tR)==null?void 0:J.ju())!=null?G:v.videoData.ju()}if(this.C("html5_sabr_parse_live_metadata_playback_boundaries")&&YJ(this.videoData)){var K;return((K=this.videoData.T)==null?void 0:K.XS)||0}J=this.videoData?this.videoData.ju()+this.timestampOffset:this.timestampOffset;return JK(this.videoData)&&this.videoData.T&&(G=Number((v=this.videoData.progressBarStartPosition)==null?void 0:v.utcTimeMillis)/1E3,v= this.getCurrentTime(),v=this.IA(v)-v,!isNaN(G)&&!isNaN(v))?Math.max(J,G-v):J}; g.q.R4=function(){this.J||this.seekTo(this.Z,{nK:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.q.Yp=function(){return this.dh&&!isFinite(this.X)}; g.q.X4=function(){f9w(this,null);this.N.dispose();g.X.prototype.X4.call(this)}; g.q.u9=function(){var v={};this.Qb&&Object.assign(v,this.Qb.u9());this.mediaElement&&Object.assign(v,this.mediaElement.u9());return v}; g.q.wL=function(v){this.timestampOffset=v}; g.q.getStreamTimeOffset=function(){return Pm(this.videoData)?0:this.videoData.T?this.videoData.T.getStreamTimeOffset():0}; g.q.B$=function(){return this.timestampOffset}; g.q.IA=function(v){return this.videoData&&this.videoData.T?this.videoData.T.IA(v-this.timestampOffset):NaN}; g.q.EZ=function(){if(!this.mediaElement)return 0;if(wH(this.videoData)){var v=this.mediaElement,J=v.dK();v=(EP(J)>0&&v.getDuration()?J.end(J.length-1):0)+this.timestampOffset-this.ju();J=this.j3()-this.ju();return Math.max(0,Math.min(1,v/J))}return this.mediaElement.EZ()}; g.q.Xw=function(v){this.K&&(this.K.T=v)}; g.q.Ei=function(v,J){this.HH.uw("requestUtcSeek",{time:v});YJ(this.videoData)&&(this.BH=v);var G;(G=this.Qb)==null||G.Ei(v);J&&(this.Ze=J)}; g.q.U0=function(v){YJ(this.videoData)&&(this.BH=void 0);if(this.Ze)this.HH.uw("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Ze}),this.HH.seekTo(this.Ze,{nK:"utcSeekingFallback_streamTime"}),this.Ze=0;else{var J=this.getCurrentTime();isNaN(J)||(v=this.IA(J)-v,J-=v,this.HH.uw("utcSeekingFallback",{source:"estimate",timeSeconds:J}),this.HH.seekTo(J,{nK:"utcSeekingFallback_estimate"}))}}; g.q.l5=function(){this.Ze=0}; g.q.C=function(v){return this.EB&&this.EB.C(v)};g.z(HQ,g.X);HQ.prototype.start=function(){this.X.start()}; HQ.prototype.stop=function(){this.X.stop()}; HQ.prototype.clear=function(){for(var v=g.n(this.T.values()),J=v.next();!J.done;J=v.next())J.value.clear()}; HQ.prototype.sample=function(){for(var v=g.n(this.Z),J=v.next();!J.done;J=v.next()){var G=g.n(J.value);J=G.next().value;G=G.next().value;this.T.has(J)||this.T.set(J,new CTm(Aj6.has(J)));this.T.get(J).update(G())}this.X.start()}; var Aj6=new Set(["networkactivity"]);CTm.prototype.update=function(v){this.X?(this.buffer.add(v-this.T||0),this.T=v):this.buffer.add(v)}; CTm.prototype.clear=function(){this.buffer.clear();this.T=0};WQ.prototype.FY=function(){return this.started}; WQ.prototype.start=function(){this.started=!0}; WQ.prototype.reset=function(){this.finished=this.started=!1};var vQm=!1;g.z(g.iT,g.qU);g.q=g.iT.prototype;g.q.X4=function(){this.logger.debug("dispose");g.ze(this.gI);VOw(this.ML);this.visibility.unsubscribe("visibilitystatechange",this.ML);t6m(this);J_(this);g.cq.GH(this.LU);this.xP();this.vG=null;g.rT(this.videoData);g.rT(this.VS);g.rT(this.s8);g.rT(this.Lk);g.qS(this.aZw);this.XM=null;g.qU.prototype.X4.call(this)}; g.q.Z5=function(v,J,G,K,V){if(this.EB.C("html5_log_ad_playback_docid")){var Y=this.zG();if(Y.qoe){Y=Y.qoe;var r=this.EB.oY||"yt";g.qa(Y,g.AO(Y.provider),"ad_playback",[v,J,G,V,r])}}else this.zG().Z5(v,J,G);this.C("html5_log_media_perf_info")&&this.uw("adloudness",{ld:K.toFixed(3),cpn:v})}; g.q.Yj=function(){var v;return(v=this.Qb)==null?void 0:v.Yj()}; g.q.yW=function(){var v;return(v=this.Qb)==null?void 0:v.yW()}; g.q.jT=function(){var v;return(v=this.Qb)==null?void 0:v.jT()}; g.q.f3=function(){var v;return(v=this.Qb)==null?void 0:v.f3()}; g.q.cw=function(){return this.videoData.cw()}; g.q.jD=function(){return this.C("html5_not_reset_media_source")&&!this.cw()&&!this.videoData.isLivePlayback&&g.ug(this.videoData)&&!this.EB.supportsGaplessShorts()}; g.q.Rq=function(){if(this.videoData.U){var v;if(!(v=this.videoData.Ox)){var J;v=(J=this.GS.zi())==null?void 0:J.Yj()}this.videoData.Ox=v;if(!(v=this.videoData.WL)){var G;v=(G=this.GS.zi())==null?void 0:G.yW()}this.videoData.WL=v}if($Wr(this.videoData)||!$1(this.videoData))G=this.videoData.errorDetail,this.ze(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),G,G,this.videoData.HU||void 0);this.C("html5_generate_content_po_token")&&this.oB();this.C("html5_enable_d6de4")&&this.Uf(); if(this.C("html5_ssap_cleanup_player_switch_ad_player")||this.C("html5_ssap_cleanup_ad_player_on_new_data"))if(G=this.GS.O$())this.hX=G.clientPlaybackNonce}; g.q.rC=function(){return this.yh}; g.q.Tz=function(){!this.Yc||this.Yc.Sl();this.Yc=new g.Ll(new pl(this.videoData,this.EB,this));this.yh=new wF(this.EB,this,this.Yc)}; g.q.getVideoData=function(){return this.videoData}; g.q.B=function(){return this.EB}; g.q.xg=function(v){return this.ZR.xg(this.vG,v===void 0?!1:v)}; g.q.zG=function(v){if(v)a:{for(var J=this.yh,G=g.n(J.T.values()),K=G.next();!K.done;K=G.next())if(K=K.value,K.getVideoData().videoId===v){v=K;break a}v=J.X}else v=this.yh.zG();return v}; g.q.Wo=function(){return this.visibility}; g.q.d6=function(){return this.mediaElement&&this.mediaElement.wS()?this.mediaElement.ZZ():null}; g.q.LY=function(){return this.mediaElement}; g.q.GE=function(){if(this.C("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.B().j&&this.B().houseBrandUserStatus&&this.uw("hbut",{status:this.B().houseBrandUserStatus});if(this.videoData.B1())return!0;this.ze("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.q.pH=function(v){(v=v===void 0?!1:v)||g.WG(this.videoData)||ym(this.zG());this.yB=v;!this.GE()||this.VR.FY()?g.yW(this.EB)&&this.videoData.isLivePlayback&&this.VR.FY()&&!this.VR.finished&&!this.yB&&this.z1():(this.VR.start(),v=this.zG(),g.AO(v.provider),v.qoe&&ESB(v.qoe),this.z1())}; g.q.z1=function(){if(this.videoData.isLoaded()){var v=this.VS;g.DI(v.gh.experiments,"html5_player_min_build_cl")>0&&g.DI(v.gh.experiments,"html5_player_min_build_cl")>742904825&&I08(v,"oldplayer");zBf(this)}else this.videoData.Po||this.videoData.Aw?this.yB&&g.yW(this.EB)&&this.videoData.isLivePlayback||(this.videoData.Po?gcf(this.videoData):(v=this.zG(),v.qoe&&(v=v.qoe,D7(v,"protected"),v.provider.videoData.J?v.sW():v.provider.videoData.subscribe("dataloaded",v.sW,v)),me8(this.videoData))):!this.videoData.loading&& this.w$&&BPU(this)}; g.q.e$=function(v){this.zS=v;this.Qb&&(jQX(this.Qb,new g.F$(v)),this.uw("sdai",{sdsstm:1}))}; g.q.sx=function(v){this.tR=v;this.Qb&&this.Qb.sx(v)}; g.q.gH=vF(16);g.q.isFullscreen=function(){return this.visibility.isFullscreen()}; g.q.isBackground=function(){return this.visibility.isBackground()}; g.q.YC=function(){var v=this;this.logger.debug("Updating for format change");$e(this).then(function(){return ji(v)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.q.iq=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.pH();this.GE()&&!g.H(this.playerState,128)&&(this.fz.FY()||(this.fz.start(),this.videoData.DR?this.Zv(KB(this.playerState,4)):this.Zv(KB(KB(this.playerState,8),1))),Ids(this))}; g.q.n1=function(){return this.VR.finished}; g.q.sendAbandonmentPing=function(){g.H(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.uv(!0),t6m(this),g.cq.GH(this.LU))}; g.q.Z_=function(v,J){v=v===void 0?!0:v;(J===void 0||J)&&this.mediaElement&&this.mediaElement.pause();this.Zv(v?new g.JZ(14):new g.JZ)}; g.q.qw=function(){this.zG().xM()}; g.q.ze=function(v,J,G,K,V,Y){this.logger.debug(function(){return"set player error: ec="+v+", detail="+V}); var r,E;g.uA(vrF,G)?r=G:G?E=G:r="GENERIC_WITHOUT_LINK";K=(K||"")+(";a6s."+El());if(v==="auth"||v==="drm.auth"||v==="heartbeat.stop")G&&(K+=";r."+G.replaceAll(" ","_")),Y&&(K+="sr."+Y.replaceAll(" ","_"));J={errorCode:v,errorDetail:V,errorMessage:E||g.OD[r]||"",jw:r,HU:Y||"",j8:K,LI:J,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=v;vT(this,"dataloaderror");this.Zv(os(this.playerState,128,J));g.cq.GH(this.LU);J_(this);this.Yu()}; g.q.Lq=function(v){this.cE=this.cE.filter(function(J){return v!==J}); this.logger.debug(function(){return"set preroll ready for "+v}); g.WG(this.videoData)&&!this.hF()&&this.n0.D0("pl_pr");this.fz.FY()&&Ids(this)}; g.q.hF=function(){var v;(v=!!this.cE.length)||(v=this.CJ.T.array[0],v=!!v&&v.start<=-0x8000000000000);return v}; g.q.a6=function(){return this.JP.a6()}; g.q.isPlaying=function(){return this.playerState.isPlaying()}; g.q.Yz=function(){return this.playerState.Yz()&&this.videoData.DR}; g.q.getPlayerState=function(){return this.playerState}; g.q.Dd=function(v){var J;(J=this.Qb)==null||J.Dd(v)}; g.q.Kb=function(v){var J;(J=this.Qb)==null||J.Kb(v)}; g.q.getPlayerType=function(){return this.playerType}; g.q.getPreferredQuality=function(){if(this.vG){var v=this.vG;v=v.videoData.Al.compose(v.videoData.ZT);v=E1(v)}else v="auto";return v}; g.q.DX=vF(22);g.q.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.q.setMediaElement=function(v){this.logger.debug("set media element");if(this.mediaElement&&v.ZZ()===this.mediaElement.ZZ()&&(v.isView()||this.mediaElement.isView())){if(v.isView()||!this.mediaElement.isView())this.gs(),this.mediaElement=v,this.mediaElement.HH=this,ZCm(this),this.JP.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.xP();if(!this.playerState.isError()){var J=VI(this.playerState,512);g.H(J,8)&&!g.H(J,2)&&(J=KB(J,1));v.isView()&&(J=VI(J,64));this.Zv(J)}this.mediaElement= v;this.mediaElement.HH=this;!g.yW(this.EB)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);ZCm(this);this.JP.setMediaElement(this.mediaElement);this.C("html5_prewarm_media_source")&&!this.VS.ZQ()&&Tym(this.mediaElement)}}; g.q.xP=function(v,J,G){v=v===void 0?!1:v;J=J===void 0?!1:J;G=G===void 0?!1:G;this.logger.debug("remove media element");if(this.mediaElement){var K=this.getCurrentTime();K>0&&(this.JP.Z=K);this.JP.setMediaElement(null);!v&&this.jD()?OCt(this):this.vE(G);this.Qb&&(nv(this.Qb),VL(this,J));this.BJ.stop();if(this.mediaElement&&(!this.fz.FY()&&!this.YK()||this.playerState.isError()||g.H(this.playerState,2)||this.Zv(KB(this.playerState,512)),this.mediaElement)){this.gs();if(v||!this.mediaElement.isView())this.n0.JZ("mesv_s"), this.mediaElement.stopVideo(),Ye(this);this.mediaElement=this.mediaElement.HH=null}}}; g.q.playVideo=function(v,J){v=v===void 0?!1:v;J=J===void 0?!1:J;var G=this,K,V,Y,r,E,e;return g.m(function(P){if(P.T==1){G.logger.debug("start play video");var D=window.google_image_requests;D&&D.length>10&&(window.google_image_requests=D.slice(-10));if(g.H(G.playerState,128))return P.return();if(G.VS.kH())return G.publish("signatureexpired"),P.return();G.mediaElement&&ym(G.zG());G.iq();(g.H(G.playerState,64)||v)&&G.Zv(KB(G.playerState,8));return G.fz.finished&&G.mediaElement?G.vG||!G.nh?P.sB(2): g.U(P,G.nh,3):P.return()}if(P.T!=2&&g.H(G.playerState,128))return P.return();if(!G.videoData.Z)return G.videoData.isLivePlayback&&!g.GW(G.EB.J,!0)?(K="html5.unsupportedlive",V=2):(K=G.videoData.cw()?"fmt.unplayable":"fmt.noneavailable",V=1),g.Zl(Error("selectableFormats")),G.ze(K,V,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),P.return();if(G.MI()&&G.videoData.Z.T)return G.logger.debug("rebuild playbackData for airplay"),P.return($e(G));if(Na(G))D=G.JP,e0(D.videoData)?!D.isAtLiveHead(D.getCurrentTime())&& D.a6()&&D.HH.seekTo(Infinity,{nK:"seektimeline_peggedToLive",seekSource:34}):g.WG(D.videoData)&&D.getCurrentTime()r;if(!E||!r){Y&&E&&(K=Math.max(K,Y));var e;Y=Tvj(J,(e=V.T)==null?void 0:e.videoInfos);e=J.HH.getPlaybackRate();e>1&&Y&&(e=OBt(J.EB.J,V.T.videoInfos,e),v.T!==0&& e=480;if(J.C("html5_exponential_memory_for_sticky")){P=J.EB.jK;D=1;var t=t===void 0?!1:t;MPm(P,"sticky-lifetime");P.values["sticky-lifetime"]&&P.sX["sticky-lifetime"]||(P.values["sticky-lifetime"]=0,P.sX["sticky-lifetime"]=0);t&&TW(P,"sticky-lifetime")>.0625&&(D=P.sX["sticky-lifetime"]*2); P.values["sticky-lifetime"]+=1*Math.pow(2,P.T/D);P.sX["sticky-lifetime"]=D;P.L.start()}if(J.C("html5_perf_cap_override_sticky")){t=J.Z;P=J.C("html5_perserve_av1_perf_cap");P=P===void 0?!1:P;if(P===void 0?0:P){D=Nb();v=g.n(Object.keys(D));for(J=v.next();!J.done;J=v.next())J=J.value,J.indexOf("1")!==0&&delete D[J];g.SW("yt-player-performance-cap",D,2592E3)}else g.Zg("yt-player-performance-cap");OXs(P);if(P){P=g.n(U4.keys());for(D=P.next();!D.done;D=P.next())D=D.value,D.startsWith("1")||U4.delete(D); P=g.n(GE.values());for(D=P.next();!D.done;D=P.next())D=D.value,D.startsWith("1")||GE.delete(D);P=g.n(t.keys());for(D=P.next();!D.done;D=P.next())D=D.value,D.startsWith("1")||t.delete(D)}else U4.clear(),GE.clear(),t.clear()}}}this.Qb&&(t=this.Qb,G=G||"",t.policy.T?bc(t.L.T,G):bc(t.T.J,G));this.Gc()}; g.q.getUserPlaybackQualityPreference=function(){return this.videoData.Z&&!this.videoData.Z.T?E1(this.videoData.Al):qB[kz()]}; g.q.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.q.setUserAudio51Preference=function(v,J){this.getUserAudio51Preference()!==v&&(this.uw("toggle51",{pref:v}),g.SW("yt-player-audio51",v,J?31536E3:2592E3),this.YC())}; g.q.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.q.setProximaLatencyPreference=function(v){var J=this.getProximaLatencyPreference();this.uw("proxima",{pref:v});g.SW("yt-player-proxima-pref",v,31536E3);J!==v&&(v=this.JP,v.WH=!0,v.HH.seekTo(Infinity,{nK:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.q.getProximaLatencyPreference=function(){var v;return(v=cx())!=null?v:0}; g.q.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.q.oB=function(){this.videoData.videoId?this.GS.oB(this.videoData):this.uw("povid",{})}; g.q.Uf=function(){this.videoData.videoId?this.GS.Uf(this.videoData):this.uw("piavid",{})}; g.q.Gc=function(){if(!this.Sl()&&!g.H(this.playerState,128)&&this.videoData.Z){if(this.videoData.Z.T)b2(this);else{var v=KD(this),J=this.videoData;a:{var G=this.videoData.Xm;if(v.T){for(var K=g.n(G),V=K.next();!V.done;V=K.next()){V=V.value;var Y=V.getInfo(),r=g.Xy[Y.video.quality];if((!v.Z||Y.video.quality!=="auto")&&r<=v.T){G=V;break a}}G=G[G.length-1]}else G=G[0]}J.wh=G;ldX(this,v.reason,Xvt(this,this.videoData.wh))}if(this.C("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.JP.U= !1,this.playVideo()}}; g.q.E3=function(v,J){if(this.Sl()||g.H(this.playerState,128))return!1;var G,K=!((G=this.videoData.Z)==null||!G.T);G=K&&J?this.getCurrentTime()-this.B$():NaN;if(this.EB.experiments.OB("html5_record_audio_format_intent")){var V=this.zG();if(V.qoe){V=V.qoe;var Y=[v.hR.id,isNaN(G)?"m":"t"];g.qa(V,g.AO(V.provider),"afi",Y)}}if(K)return J&&(K=uft(this.JP),this.uw("aswh",{id:v.id,xtags:v.xtags,bh:K.toFixed(3)})),this.Qb.setAudioTrack(v,G,J),!0;if(pvL(this)){a:{J=this.mediaElement.audioTracks();for(K=0;K< J.length;++K)if(G=J[K],G.label===v.hR.getName()){if(G.enabled){J=!1;break a}J=G.enabled=!0;break a}J=void 0}J&&this.uw("hlsaudio",{id:v.id})}else{a:if(J=this.videoData,J.L&&!jl(J.L)||v===J.pO||!J.Xm||J.Xm.length<=0)J=!1;else{K=g.n(J.Xm);for(G=K.next();!G.done;G=K.next()){G=G.value;if(!(G instanceof ev)){J=!1;break a}V=v.hR.getId();G.X&&(I5s(G.X,V),G.v$=null)}J.pO=v;J=!0}J&&ji(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.uw("hlsaudio",{id:v.id}))}return!0}; g.q.getAvailableAudioTracks=function(){return g.WG(this.videoData)&&this.tR?VMj(this.tR).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()}; g.q.getAudioTrack=function(){if(pvL(this)){var v=ymL(this);if(v)return v}return this.videoData.getAudioTrack()}; g.q.LX=function(){return this.videoData.L}; g.q.PD=function(){if(this.videoData.C("html5_trigger_loader_when_idle_network")&&!this.videoData.yn()&&YJ(this.videoData)){var v;(v=this.Qb)!=null&&v.J7()}}; g.q.FT=function(){if(ov(this.videoData)&&this.videoData.C("html5_gapless_append_early")){var v;(v=this.Qb)!=null&&v.J7()}}; g.q.AT=function(v){v=v===void 0?!1:v;if(this.Qb){var J=this.Qb,G=J.AT;var K=this.videoData;K=K.C("html5_ssdai_use_post_for_media")&&K.enableServerStitchedDai?!1:Pm(K)&&K.cG&&!K.isAd();G.call(J,K,v)}}; g.q.vE=function(v){v=v===void 0?!1:v;this.K7&&(this.logger.debug("remove media source"),lzX(this.K7),this.AT(v),this.K7.dispose(),this.K7=null)}; g.q.u2=function(){return this.K7}; g.q.Fp=function(v,J,G,K){function V(r){try{SDU(Y,r,J,G)}catch(E){g.Zl(E),Y.handleError(new L6("fmt.unplayable",{msi:"1",ename:E&&typeof E==="object"&&"name"in E?String(E.name):void 0},1))}} var Y=this;J=J===void 0?!1:J;G=G===void 0?!1:G;x6m(this,K===void 0?!1:K);this.K7=v;this.jD()&&Q4(this.K7)==="open"?V(this.K7):zNX(this.K7,V)}; g.q.fW=function(v){this.logger.debug("onNeedKeyInfo");this.fR.set(v.initData,v);this.fY&&(this.fY.fW(v),this.C("html5_eme_loader_sync")||this.fR.remove(v.initData))}; g.q.Eb=function(v){this.videoData.rS=g.Va("auto",v,!1,"u");b2(this)}; g.q.Xw=function(v){var J=v.reason,G=v.T.info,K=v.token,V=v.videoId,Y=this.zG(V),r=g.WG(this.videoData)?Y.getVideoData():this.videoData;if(G!==r.L){var E=!r.L;r.L=G;J!=="m"&&J!=="t"&&(J=E?"i":"a");var e=J==="m"||J==="t";this.EB.experiments.OB("html5_refactor_sabr_audio_format_selection_logging")?this.Uy=new nHj(r,G,J,"",K,V):(J=new nHj(r,G,J,"",K),Y.qoe&&(Y=Y.qoe,G=g.AO(Y.provider),imw(Y,G,J)));this.publish("internalaudioformatchange",r,!E&&e)}this.JP.Xw(v.T.index)}; g.q.xT=function(v){this.publish("localmediachange",v)}; g.q.fQ=function(v){v=v===void 0?{}:v;var J;(J=this.Qb)==null||J.fQ(this.EB,Vf(this.videoData),v)}; g.q.kH=function(){return this.VS.kH()}; g.q.G5=function(v){this.rd(new L6("staleconfig",{reason:v}))}; g.q.handleError=function(v){this.VS.handleError(v)}; g.q.ZQ=function(){return this.VS.ZQ()}; g.q.U0=function(v){this.JP.U0(v)}; g.q.Si=function(v,J,G){v=v===void 0?!1:v;J=J===void 0?!1:J;G=G===void 0?!1:G;var K=this,V,Y,r;return g.m(function(E){if(E.T==1){K.Qb&&K.Qb.tv();K.Qb&&K.Qb.Sl()&&J_(K);if(K.C("html5_enable_vp9_fairplay")&&K.cw()&&(V=K.videoData.T)!=null)for(var e in V.T)V.T.hasOwnProperty(e)&&(V.T[e].T=null,V.T[e].Z=!1);K.Zv(KB(K.playerState,2048));K.C("html5_ssap_keep_media_on_finish_segment")&&g.WG(K.videoData)?K.publish("newelementrequired",G):K.publish("newelementrequired");return v?g.U(E,$e(K),2):E.sB(2)}K.videoData.yn()&& ((Y=K.Qb)==null?0:Y.dh)&&!Na(K)&&((r=K.isAtLiveHead())&&e0(K.videoData)?K.seekTo(Infinity,{nK:"videoPlayer_getNewElement"}):K.videoData.mU&&K.Qb&&(e=K.Qb,e.Jt.yn&&(e.Jt.mU||e.Jt.L||e.Jt.isPremiere?(e.seek(0,{nK:"loader_resetSqless"}),e.videoTrack.U=!0,e.audioTrack.U=!0,e.videoTrack.J=!0,e.audioTrack.J=!0):y7(e.Jt)&&FU(e))));J&&K.seekTo(0,{seekSource:105});g.H(K.playerState,8)&&(K.C("html5_ssap_keep_media_on_finish_segment")&&g.WG(K.videoData)?K.playVideo(!1,G):K.playVideo());g.zX(E)})}; g.q.QG=function(v){this.uw("hgte",{ne:+v});this.videoData.U=!1;v&&this.Si();this.Qb&&RYm(this.Qb)}; g.q.ea=function(v){this.uw("newelem",{r:v});this.Si()}; g.q.pauseVideo=function(v){v=v===void 0?!1:v;if((g.H(this.playerState,64)||g.H(this.playerState,2))&&!v)if(g.H(this.playerState,8))this.Zv(YN(this.playerState,4,8));else if(this.Yz())ji(this);else return;g.H(this.playerState,128)||(v?this.Zv(KB(this.playerState,256)):this.Zv(YN(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.yf(this.videoData)&&this.Qb&&VL(this,!1)}; g.q.stopVideo=function(){this.pauseVideo();this.Qb&&(VL(this,!1),this.Qb.fJ())}; g.q.Yu=function(v,J){v=v===void 0?!1:v;J=J===void 0?!1:J;if(this.jD()&&J){var G;(G=this.mediaElement)==null||G.Yu()}else{var K;(K=this.mediaElement)==null||K.stopVideo()}Ye(this);J_(this);g.H(this.playerState,128)||(v?this.Zv(VI(VI(KB(this.playerState,4),8),16)):this.Zv(os(this.playerState)));this.videoData.videoId&&this.EB.qr.remove(this.videoData.videoId)}; g.q.seekTo=function(v,J){J=J===void 0?{}:J;this.logger.debug(function(){return"SeekTo "+v+", "+JSON.stringify(J)}); g.H(this.playerState,2)&&ji(this);J.sOU&&this.Zv(KB(this.playerState,2048));J.seekSource!==58&&J.seekSource!==60||!this.C("html5_update_vss_during_gapless_seeking")||WQr(this.zG(),J.seekSource);this.JP.seekTo(v,J);this.CJ.sync()}; g.q.Oe=function(v){this.n0.L.X=(0,g.yR)();g.H(this.playerState,32)||(this.Zv(KB(this.playerState,32,v==null?void 0:v.seekSource)),g.H(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.kL()}; g.q.s_=function(v){v=v==null?void 0:v.seekSource;g.H(this.playerState,32)?(this.Zv(YN(this.playerState,16,32,v)),this.publish("endseeking")):g.H(this.playerState,2)||this.Zv(KB(this.playerState,16,v));v=this.n0.L;var J=this.videoData,G=this.playerState.isPaused();if(J.clientPlaybackNonce&&!isNaN(v.T)){if(Math.random()<.01){G=G?"pbp":"pbs";var K={startTime:v.T};J.j&&(K.cttAuthInfo={token:J.j,videoId:J.videoId});aw("seek",K);g.N0({clientPlaybackNonce:J.clientPlaybackNonce},"seek");isNaN(v.X)||cB("pl_ss", v.X,"seek");cB(G,(0,g.yR)(),"seek")}v.reset()}}; g.q.VH=function(v){this.s_(v)}; g.q.aF=function(){this.publish("SEEK_COMPLETE")}; g.q.eG=function(v){var J=this.GS,G=this.videoData.clientPlaybackNonce,K=this.playerType;if(v.scope===4){var V=v.type;if(V){var Y=J.Qn(),r=Y.getVideoData().clientPlaybackNonce;K===1&&(r=G);(J=mtj(J,r))?(G=J.getVideoData())&&(v.writePolicy===2&&G.sabrContextUpdates.has(V)||G.sabrContextUpdates.set(V,v)):Y.uw("scuset",{ncpf:"1",ccpn:r,crcpn:G})}else g.Zl(Error("b/380308491: contextUpdateType is undefined"))}}; g.q.a4=function(){if(this.playerType===2)return this.GS.a4("")}; g.q.getCurrentTime=function(){return this.JP.getCurrentTime()}; g.q.u4=function(){return this.JP.u4()}; g.q.Qk=function(){return this.JP.Qk()}; g.q.hG=function(v){return this.tR&&(v=v||this.tR.E2())?bH(this.tR,v):this.Qk()}; g.q.O6=function(){return this.JP.O6()}; g.q.getPlaylistSequenceForTime=function(v){return this.videoData.getPlaylistSequenceForTime(v-this.B$())}; g.q.k$=function(){var v=NaN;this.mediaElement&&(v=this.mediaElement.k$());return v>=0?v:this.getCurrentTime()}; g.q.IA=function(){var v;return((v=this.videoData.T)==null?0:v.IA)?this.videoData.T.IA(this.getCurrentTime()-this.B$()):this.mediaElement&&(v=this.mediaElement.Mq())&&(v=v.getTime(),!isNaN(v))?v/1E3+this.getCurrentTime():NaN}; g.q.getDuration=function(v){return g.WG(this.videoData)&&this.tR?v?KCr(this.tR,v):zu(this.tR):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.B$():this.j3()?this.j3():0}; g.q.fI=function(){var v=new veL;if(this.Qb){var J=this.EB.schedule,G=this.EB.GG();G=G===void 0?!1:G;v.nH=J.dh;v.CB=J.Gi;v.bandwidthEstimate=RC(J);if(G){G=(J.U.gK()*1E3).toFixed();var K=(J.Mr.gK()*1E3).toFixed(),V=nY(J).toFixed(2),Y=((J.K.gK()||0)*1E9).toFixed(2),r=J.Z.gK().toFixed(0),E=J.qr.gK().toFixed(0),e=J.N.percentile(.5).toFixed(2),P=J.N.percentile(.92).toFixed(2),D=J.N.percentile(.96).toFixed(2),t=J.N.percentile(.98).toFixed(2);J.T?J.T.reset():J.T=new Ef;J.T.add(J.Ze);J.T.add(J.interruptions.length); for(var B=0,I=J.interruptions.length-1;I>=0;I--){var h=J.interruptions[I];J.T.add(h-B);B=h}B=0;for(I=J.L.length-1;I>=0;I--){h=J.L[I];var R=h.stamp/36E5;J.T.add(R-B);B=R;J.T.add(h.net/1E3);J.T.add(h.max)}J=J.T.M$();v.T={ttr:G,ttm:K,d:V,st:Y,bw:r,abw:E,v50:e,v92:P,v96:D,v98:t,"int":J}}bhr(this.Qb,v)}else this.mediaElement&&(v.JB=iw(this.mediaElement));v.nH=this.nH;v.CB=this.CB;v.Z=this.isAtLiveHead()&&this.isPlaying()?Ppr(this):NaN;return v}; g.q.zY=function(v,J){this.CB+=v;this.nH+=J}; g.q.EZ=function(){return this.mediaElement?g.yf(this.videoData)?1:wH(this.videoData)?this.isAtLiveHead()||this.a6()?1:this.JP.EZ():this.mediaElement.EZ():0}; g.q.U_=function(){var v=this.Uh,J=Qm(v,"bandwidth"),G=Qm(v,"bufferhealth"),K=Qm(v,"livelatency"),V=Qm(v,"networkactivity"),Y=Ma(v,"bandwidth"),r=Ma(v,"bufferhealth"),E=Ma(v,"livelatency");v=Ma(v,"networkactivity");var e=this.Hy(),P=e.droppedVideoFrames;e=e.totalVideoFrames;var D=this.getCurrentTime();if(this.fY){var t="IT/"+(this.fY.T.getInfo()+"/"+E1(this.wQ()));t+="/"+this.fY.getInfo()}else t="";var B=this.isGapless(),I=this.Rf(),h=this.I1(),R=g.o4(this),T=this.getPlayerState(),L=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var O=0;var x="";if(this.zS){if(this.zS.V5){x="D,";break a}O=this.zS.VM();x=this.zS.E2().substring(0,4)}else this.tR&&(O=this.tR.VM(),x=this.tR.E2().substring(0,4));O>0?(O="AD"+O+", ",x&&(O+=x+", "),x=O):x=""}return{b_:Y,Iz:r,currentTime:D,cT:t,droppedVideoFrames:P,isGapless:B,Rf:I,pR:h,vA:J,sL:G,n8:K,Yi:V,Sp:E,tM:v,tj:R,playerState:T,Yn:L,Oh:x,totalVideoFrames:e}}; g.q.u9=function(v){var J={};if(v===void 0?0:v){Object.assign(J,this.zG().u9());this.mediaElement&&(Object.assign(J,this.mediaElement.u9()),v=this.Hy(),J.dvf=v.droppedVideoFrames,J.tvf=v.totalVideoFrames);this.Qb&&Object.assign(J,this.Qb.u9());this.fY&&(J.drm=JSON.stringify(this.fY.u9()));J.state=this.playerState.state.toString(16);g.H(this.playerState,128)&&(J.debug_error=JSON.stringify(this.playerState.c8));this.hF()&&(J.prerolls=this.cE.join(","));this.videoData.qj&&(J.ismb=this.videoData.qj);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.GS.isOrchestrationLeader()&&(J.leader=1);this.videoData.isLivePlayback&&(this.videoData.T&& lB(this.videoData.T)&&(J.segduration=lB(this.videoData.T)),v=this.JP,J.lat=v.K?I9s(v.K.L):0,J.liveutcstart=this.videoData.liveUtcStartSeconds);J.relative_loudness=this.videoData.dG.toFixed(3);if(v=g.o4(this))J.optimal_format=v.video.qualityLabel;J.user_qual=kz();J.release_version=$s[13];g.WG(this.videoData)&&this.tR&&(J.ssap=Qi(this.tR))}J.debug_videoId=this.videoData.videoId;return J}; g.q.addCueRange=function(v){this.EX([v])}; g.q.removeCueRange=function(v){this.CJ.yS([v])}; g.q.TY=function(){this.CJ.sync()}; g.q.dj=function(v,J){return this.CJ.dj(v,J)}; g.q.EX=function(v,J){this.CJ.oR(v,J)}; g.q.ey=function(v){this.CJ.yS(v)}; g.q.Wy=function(v){var J=this.CJ;v.length<=0||J.Sl()||(v=J.T,v.array.sort(v.T))}; g.q.kP=function(){return this.CJ.kP()||[]}; g.q.zB=function(){return this.Zb}; g.q.MI=function(){return this.visibility.MI()}; g.q.ir=function(){this.mediaElement&&this.mediaElement.ir()}; g.q.Pgw=function(){vT(this)}; g.q.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.q.gs=function(){g.O9(this.iV)}; g.q.rU=function(){this.kL();this.publish("onLoadProgress",this.EZ())}; g.q.uD=function(v){var J=v.target.KJ();if(this.mediaElement&&this.mediaElement.KJ()&&this.mediaElement.KJ()===J){M68(this,v.type);switch(v.type){case "error":var G=vf(this.mediaElement)||"",K=this.mediaElement.qL();if(G==="capability.changed"){this.C("html5_restart_on_capability_change")?(this.uw("capchg",{msg:K}),this.Si(!0)):$e(this);return}if(this.mediaElement.hasError()&&(Pet(this.VS,G,{msg:K})||g.WG(this.videoData)&&this.tR&&(K=this.playerState.c8,this.tR.handleError(G,K==null?void 0:K.LI))))return; if(this.isBackground()&&this.mediaElement.t3()===4){this.Yu();GS(this,"unplayable");return}break;case "durationchange":G=this.mediaElement.getDuration();isFinite(G)&&(!this.K7||G>0)&&G!==1&&this.y_(G);break;case "ratechange":this.Qb&&this.Qb.setPlaybackRate(this.mediaElement.getPlaybackRate());Eew(this.CJ);this.zG().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":WY2(this);this.publish("onLoadedMetadata");gQm(this);G=this.IA();this.videoData.iN&&(this.videoData.iN=G);break; case "loadstart":gQm(this);break;case "progress":case "suspend":g.DI(this.EB.experiments,"html5_progress_event_throttle_ms")>0?this.xY.gD():this.rU();break;case "playing":this.n0.JZ("plev");this.fp&&!Na(this)&&(this.fp=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{nK:"videoplayer_onPlaying"})));break;case "timeupdate":G=this.mediaElement&&!this.mediaElement.getCurrentTime();K=this.mediaElement&&this.mediaElement.Rw()===0;if(G&&(!this.SC||K))return; this.SC=this.SC||!!this.mediaElement.getCurrentTime();uDj(this);this.kL();if(!this.mediaElement||this.mediaElement.KJ()!==J)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.TO().length>0&&this.mediaElement.dK().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.Qb)return;this.C("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Rw()>2||!this.mediaElement.isSeeking()&& rj(this.mediaElement.dK(),this.mediaElement.getCurrentTime()))&&(G=this.mediaElement.u9(),G.bh=iw(this.mediaElement).toFixed(3),this.uw("uwe",G));g.WG(this.videoData)&&this.tR&&jRF(this.tR,this.mediaElement.getCurrentTime());break;case "resize":WY2(this);this.videoData.X&&this.videoData.X.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.o2&&g.H(this.playerState,8)&&!g.H(this.playerState,1024)&&this.getCurrentTime()===0&&g.nP){GS(this,"safari_autoplay_disabled"); return}}if(this.mediaElement&&this.mediaElement.KJ()===J){MiL(this.JP,v,this.tR||void 0);this.publish("videoelementevent",v);J=this.playerState;K=this.rq;var V=this.mediaElement,Y=this.EB.experiments;G=this.videoData.clientPlaybackNonce;var r=g.WG(this.videoData)&&this.tR?zu(this.tR):void 0;if(!g.H(J,128)){var E=J.state;V=V?V:v.target;var e=V.getCurrentTime();if(!g.H(J,64)||v.type!=="ended"&&v.type!=="pause"){r=r||V.getDuration();r=V.isEnded()||e>1&&Math.abs(e-r)<1.1;var P=v.type==="pause"&&V.isEnded(); e=v.type==="ended"||v.type==="waiting"||v.type==="timeupdate"&&!g.H(J,4)&&!UO(K,e);if(P||r&&e)V.WY()>0&&V.KJ()&&(E=14);else switch(v.type){case "error":vf(V)&&(E|=128);break;case "pause":g.H(J,256)?(E^=256)||(E=64):g.H(J,32)||g.H(J,2)||g.H(J,4)||(E=4,g.H(J,1)&&g.H(J,8)&&(E|=1));break;case "playing":Y=E;E=(E|8)&-1093;Y&4?(E|=1,Gt(K,V,!0)):UO(K,V.getCurrentTime())&&(E&=-2);g.H(J,1)&&Gt(K,V)&&(E|=1);break;case "seeking":E|=16;g.H(J,8)&&(E|=1);E&=-3;break;case "seeked":E&=-17;Gt(K,V,!0);break;case "waiting":g.H(J, 2)||(E|=1);Gt(K,V);break;case "timeupdate":Y=g.H(J,16);e=g.H(J,4);(g.H(J,8)||Y)&&!e&&UO(K,V.getCurrentTime())&&(E=8);Gt(K,V)&&(E|=1);break;case "progress":case "suspend":Y.OB("html5_track_underruns_on_progress")&&Gt(K,V)}}K=E;E=null;K&128&&(E=v.target,V=vf(E),Y=1,V?(V==="capability.changed"&&(Y=2),e="GENERIC_WITHOUT_LINK",r=E.u9(),r.mediaElem="1",/AUDIO_RENDERER/.test(E.qL())&&(e="HTML5_AUDIO_RENDERER_ERROR"),E={errorCode:V,errorMessage:g.OD[e]||"",jw:e,j8:p6(r),LI:Y,cpn:J.c8?J.c8.cpn:""}):E=null, E&&(E.cpn=G));J=os(J,K,E)}!g.H(this.playerState,1)&&g.H(J,1)&&HCs(this,"evt"+v.type);this.Zv(J)}}}; g.q.w$i=function(v){v=v.T.availability==="available";v!==this.Zb&&(this.Zb=v,this.publish("airplayavailabilitychange"))}; g.q.EL4=function(){var v=(0,g.yR)(),J=this.mediaElement.MI();this.uw("airplay",{ia:J});!J&&!isNaN(this.IC)&&v-this.IC<2E3||(this.IC=v,J!==this.MI()&&(v=this.visibility,v.T!==J&&(v.T=J,v.ML()),this.uw("airplay",{rbld:J}),this.YC()),this.publish("airplayactivechange"))}; g.q.g6=function(v){if(this.Qb){var J=this.Qb,G=J.Z,K=J.getCurrentTime(),V=Date.now()-G.N;G.N=NaN;G.uw("sdai",{adfetchdone:v,d:V});v&&!isNaN(G.K)&&G.X!==3&&N8(G.Qb,K,G.K,G.j);G.policy.J?G.J=NaN:G.L=NaN;kU(G,4,G.X===3?"adfps":"adf");nv(J)}}; g.q.f1=function(){g.ze(this.gI);this.BJ.stop();this.videoData.Ze=!0;this.EB.Aw=!0;this.EB.OR=0;var v=this.VS;if(v.videoData.X){var J=v.gh.J,G=v.videoData.X.aY;J.X.has(G)&&(J.X.delete(G),oC(J))}v.T.stop();this.Oy();g.H(this.playerState,8)&&this.Zv(VI(this.playerState,65));this.yB=!1;QcX(this.zG());g.Wq(this.s8);this.publish("playbackstarted");(v=g.NL("yt.scheduler.instance.clearPriorityThreshold"))?v():JP(0,0)}; g.q.Oy=function(){var v=this.GS.O$(),J={},G={};!Au("pbs",this.n0.timerName)&&wa.measure&&wa.getEntriesByName&&(wa.getEntriesByName("mark_nr")[0]?Fzw("mark_nr"):Fzw());v.videoId&&(J.videoId=v.videoId);v.clientPlaybackNonce&&!this.C("web_player_early_cpn")&&(J.clientPlaybackNonce=v.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(G.isPausedOnLoad=!0);G.itag=v.X?Number(v.X.itag):-1;v.Vy&&(G.preloadType=String(this.JQ?2:1));J.liveStreamMode=SxS[sL(v)];J.playerInfo=G;this.n0.infoGel(J); if(this.Qb){v=this.Qb.timing;window&&window.performance&&window.performance.getEntriesByName&&(v.Z&&(J=window.performance.getEntriesByName(v.Z),J.length&&(J=J[0],v.tick("vri",J.fetchStart),v.tick("vdns",J.domainLookupEnd),v.tick("vreq",J.requestStart),v.tick("vrc",J.responseEnd))),v.X&&(J=window.performance.getEntriesByName(v.X),J.length&&(J=J[0],v.tick("ari",J.fetchStart),v.tick("adns",J.domainLookupEnd),v.tick("areq",J.requestStart),v.tick("arc",J.responseEnd))));v=v.ticks;for(var K in v)v.hasOwnProperty(K)&& this.n0.tick(K,v[K])}}; g.q.IX=function(v,J,G){v=(v+(this.TB===3?.3:0))/J;J=Math.floor(v*4);J>this.TB&&(this.uw("vpq",{q:J,cpn:G||this.videoData.clientPlaybackNonce,ratio:v.toFixed(3)}),this.TB=J)}; g.q.Wf=function(){this.TB=-1}; g.q.kL=function(v){var J=this;v=v===void 0?!1:v;if(this.mediaElement&&this.videoData){ge2(this.JP,this.isPlaying());var G=this.getCurrentTime();!this.Qb||g.H(this.playerState,4)&&g.yf(this.videoData)||g.H(this.playerState,32)&&YJ(this.videoData)||JKB(this.Qb,G);this.C("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.IX(G,this.videoData.lengthSeconds);G>5&&(this.JP.Z=G);var K=g.v9();K?g.cq.GH(this.LU):g.hh(this.LU);var V=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!V||JK(this.videoData))&& !g.H(this.playerState,128)){var Y=function(){if(J.mediaElement&&!g.H(J.playerState,128)){J.EB.GG()&&M68(J,"pfx");var r=J.getCurrentTime();J.C("html5_buffer_underrun_transition_fix")&&(r-=J.B$());var E=iw(J.mediaElement),e=g.H(J.playerState,8),P=UO(J.rq,r),D=U1L(J.rq,r,(0,g.yR)(),E);e&&P?J.Zv(VI(J.playerState,1)):e&&D?(e=J.getDuration(),P=e0(J.videoData),e&&Math.abs(e-r)<1.1?(J.uw("setended",{ct:r,bh:E,dur:e,live:P}),J.mediaElement.pQ()?(J.logger.debug("seek to 0 because of looping"),J.seekTo(0,{nK:"videoplayer_loop", seekSource:37})):J.Z_()):(J.playerState.isBuffering()||HCs(J,"progress_fix"),J.Zv(KB(J.playerState,1)))):(e&&!P&&!D&&r>0&&(e=(Date.now()-J.K1)/1E3,P=J.getDuration(),r>P-1&&J.uw("misspg",{t:r.toFixed(2),d:P.toFixed(2),r:e.toFixed(2),bh:E.toFixed(2)})),J.playerState.isPaused()&&J.playerState.isBuffering()&&iw(J.mediaElement)>5&&J.Zv(VI(J.playerState,1)));J.kL()}}; this.mediaElement.TO().length===0?this.LU=K?g.cq.eD(Y,100):g.By(Y,100):this.LU=K?g.cq.eD(Y,500):g.By(Y,500)}this.videoData.xB=G;this.tR&&this.tR.Zp();!v&&this.isPlaying()&&kow(this);f0t(this.ZR,this.vG,this.LY(),this.isBackground())&&b2(this);this.publish("progresssync",v);V&&JK(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.q.XHB=function(){this.ze("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.q.I1=function(){return this.zG().I1()}; g.q.PW=function(){return this.Qb?this.Qb.PW():RC(this.EB.schedule,!0)}; g.q.Zv=function(v){if(!g.rp(this.playerState,v)){this.logger.debug(function(){return"Setting state "+v.toString()}); var J=new g.Dz(v,this.playerState);this.playerState=v;QV2(this);var G=!this.M9.length;this.M9.push(J);var K=this.mediaElement&&this.mediaElement.isSeeking();K=J.oldState.state===8&&!K;g.Bs(J,1)&&K&&g.H(this.playerState,8)&&!g.H(this.playerState,64)&&this.Qb&&(svs(this.Qb),this.mediaElement&&iw(this.mediaElement)>=5&&mjf(this.ZR,this.vG)&&b2(this));(K=g.DI(this.EB.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.H(v,1)&&(g.H(v,8)||g.H(v,16))?this.ue.start(K):this.ue.stop();(tk(J,8)<0|| g.Bs(J,1024))&&this.BJ.stop();!g.Bs(J,8)||this.videoData.Ze||g.H(J.state,1024)||this.BJ.start();g.H(J.state,8)&&tk(J,16)<0&&!g.H(J.state,32)&&!g.H(J.state,2)&&this.playVideo();g.H(J.state,2)&&wH(this.videoData)&&(this.y_(this.getCurrentTime()),this.kL(!0));g.Bs(J,2)&&(this.uv(!0),this.EB.GG()&&this.C("html5_sabr_parse_live_metadata_playback_boundaries")&&YJ(this.videoData)&&this.videoData.T&&(K={minst:""+this.videoData.T.XS,cminst:""+(this.videoData.T.ju()+this.B$()),maxst:""+this.videoData.T.Iw, hts:""+this.videoData.T.Ti,cmaxst:""+(this.videoData.T.j3()+this.B$())},this.uw("sabrSeekableBoundaries",K)));g.Bs(J,128)&&this.Yu();this.videoData.T&&this.videoData.isLivePlayback&&!this.C6&&(tk(J,8)<0?$Hf(this.videoData.T):g.Bs(J,8)&&this.videoData.T.resume());ZDt(this.JP,J);C2r(this.zG(),J);if(G&&!this.Sl())try{for(var V=g.n(this.M9),Y=V.next();!Y.done;Y=V.next()){var r=Y.value;eWm(this.CJ,r);this.publish("statechange",r)}}finally{this.M9.length=0}}}; g.q.W2=function(){this.n0.tick("qoes")}; g.q.R4=function(){this.JP.R4()}; g.q.Br=function(v,J,G,K){a:{var V=this.VS;K=K===void 0?"LICENSE":K;G=G.substring(0,256);var Y=y9(J);v==="drm.keyerror"&&this.fY&&this.fY.X.keys.length>1&&V.L<96&&(v="drm.sessionlimitexhausted",Y=!1);var r=V.gh.experiments.OB("html5_retry_on_drm_unavailable"),E=V.gh.experiments.OB("html5_retry_on_drm_key_error"),e=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(r&&v==="drm.unavailable"||E&&v==="drm.keyerror"&&!G.match(e))V.rd("qoe.restart",{retryOnDrmError:1,e:v,detail:G}),V.HH.Si(!0);else{if(Y)if(V.videoData.X&& V.videoData.X.video.isHdr())z3f(V,v);else{if(V.HH.ze(v,J,K,G),qBw(V,{detail:G}))break a}else V.rd(v,{detail:G});v==="drm.sessionlimitexhausted"&&(V.uw("retrydrm",{sessionLimitExhausted:1}),V.L++,FYm(V.HH))}}}; g.q.iKl=function(){var v=this,J=g.DI(this.EB.experiments,"html5_license_constraint_delay"),G=v8();J&&G?(J=new g.Qq(function(){v.Gc();vT(v)},J),g.k(this,J),J.start()):(this.Gc(),vT(this))}; g.q.Jf=function(v){this.publish("heartbeatparams",v)}; g.q.Tc=function(v){this.uw("keystatuses",UyX(v));var J="auto",G=!1;this.videoData.X&&(J=this.videoData.X.video.quality,G=this.videoData.X.video.isHdr());a:{switch(J){case "highres":case "hd2880":J="UHD2";break;case "hd2160":case "hd1440":J="UHD1";break;case "hd1080":case "hd720":J="HD";break;case "large":case "medium":case "small":case "light":case "tiny":J="SD";break;default:J="";break a}G&&(J+="HDR")}J=Cv(v)?be(v,J):v.L.includes(J);this.C("html5_enable_sabr_authorized_drm_track_types")&&(this.videoData.DO= v.DO);if(this.C("html5_enable_vp9_fairplay")){if(G)if(v.K){var K;if((K=this.fY)==null?0:kI(K.T))if((G=this.fY)==null)G=0;else{for(var V=K=void 0,Y=g.n(G.X.values()),r=Y.next();!r.done;r=Y.next())r=r.value,K||(K=myt(r,"SD")),V||(V=myt(r,"AUDIO"));G.Gb({sd:K,audio:V});G=K==="output-restricted"||V==="output-restricted"}else G=!J;if(G){this.uw("drm",{dshdr:1});z3f(this.VS);return}}else{this.videoData.FI||(this.videoData.FI=!0,this.uw("drm",{dphdr:1}),this.Si(!0));return}var E;if((E=this.fY)==null?0:kI(E.T))return}else if(E= v.K&&J,G&&!E){z3f(this.VS);return}J||be(v,"AUDIO")&&be(v,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),v=UyX(v),this.Ob?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.C("html5_report_fatal_drm_restricted_error_killswitch")||this.ze("drm.keyerror",2,void 0,"info."+v)):(this.Ob=!0,this.rd(new L6("qoe.restart",Object.assign({},{retrydrm:1},v))),b2(this),FYm(this)))}; g.q.P9l=function(){if(!this.videoData.Ze&&this.mediaElement&&!this.isBackground()){var v="0";this.mediaElement.Rw()>0&&iw(this.mediaElement)>=5&&this.videoData.Z&&this.videoData.Z.T&&(this.Zv(KB(this.playerState,1)),HCs(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),v="1");QV2(this);var J=this.videoData.Z;v={restartmsg:v,mfmt:!G5(this.videoData),mdrm:!(!(J&&J.videoInfos&&J.videoInfos.length&&J.videoInfos[0].k5)||this.fY),mfmtinfo:!this.videoData.X,prerolls:this.hF()?this.cE.join(","): "0"};if(this.fY){J=this.fY;if(J.X.size<=0){var G="ns;";J.N||(G+="nr;");J=G+="ql."+J.Z.length}else J=UyX(J.X.values().next().value),J=p6(J);v.drmp=J}var K;Object.assign(v,((K=this.Qb)==null?void 0:K.u9())||{});var V;Object.assign(v,((V=this.mediaElement)==null?void 0:V.u9())||{});this.zG().rd("qoe.start15s",p6(v));this.publish("loadsofttimeout")}}; g.q.y_=function(v){this.videoData.lengthSeconds!==v&&(this.videoData.lengthSeconds=v,vT(this))}; g.q.uv=function(v,J){var G=this;v=v===void 0?!1:v;if(!this.Dq)if(Au("att_s","player_att")||HB("att_s",void 0,"player_att"),this.C("use_rta_for_player"))(function(){var V,Y,r,E;return g.m(function(e){switch(e.T){case 1:if(!(V=v)){e.sB(2);break}return g.U(e,g.nZ2(),3);case 3:V=!e.X;case 2:if(V)return e.return();g.nf(e,4);Y=iDU(G.zG());if(!Y)throw Error();r={};return g.U(e,g.zQU((r.cpn=G.videoData.clientPlaybackNonce,r.encryptedVideoId=G.videoData.videoId||"",r),3E4),6);case 6:E=e.X;if(G.Dq)throw Error(); if(!E.challenge)throw g.Zl(Error("Not sending attestation ping; no attestation challenge string")),Error();G.Dq=!0;var P=[E.challenge];E.error?P.push("r1c="+E.error):E.webResponse&&P.push("r1a="+E.webResponse);var D;((D=E.adblockReporting)==null?void 0:D.reportingStatus)!==void 0&&P.push("r6a="+E.adblockReporting.reportingStatus);var t;((t=E.adblockReporting)==null?void 0:t.broadSpectrumDetectionResult)!==void 0&&P.push("r6b="+E.adblockReporting.broadSpectrumDetectionResult);Y(P.join("&"));HB("att_f", void 0,"player_att");g.Rm(e,0);break;case 4:g.lj(e),HB("att_e",void 0,"player_att"),g.zX(e)}})})().then(function(){J==null||J()}); else{var K=new g.RoU(this.videoData);if("c1a"in K.Wi&&!g.fn.isInitialized()){HB("att_wb",void 0,"player_att");this.Mz===2&&Math.random()<.01&&g.Zl(Error("Botguard not available after 2 attempts"));if(v)return;if(this.Mz<5){g.Wq(this.Lk);this.Mz++;return}}(K=g.lIX(K))?(HB("att_f",void 0,"player_att"),j4F(this.zG(),K),this.Dq=!0):HB("att_e",void 0,"player_att")}}; g.q.ZL=function(v){v=v===void 0?!1:v;if(e0(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.a6()||g.yf(this.videoData)))v=this.getCurrentTime();else if(g.WG(this.videoData)&&this.tR){v=this.tR;var J=this.getCurrentTime();v=(v=J8B(v,J*1E3))?(v.wp()-v.Ci())/1E3:0}else v=this.j3(v);return v}; g.q.i6=function(){return g.WG(this.videoData)?this.videoData.ju():this.ju()}; g.q.j3=function(v){return this.JP.j3(v===void 0?!1:v)}; g.q.ju=function(){return this.JP.ju()}; g.q.B$=function(){return this.JP?this.JP.B$():0}; g.q.getStreamTimeOffset=function(){return this.JP?this.JP.getStreamTimeOffset():0}; g.q.WC=function(){var v=0;this.EB.C("web_player_ss_media_time_offset")&&(v=this.getStreamTimeOffset()===0?this.B$():this.getStreamTimeOffset());return v}; g.q.setPlaybackRate=function(v){var J;this.playbackRate!==v&&Tvj(this.ZR,(J=this.videoData.Z)==null?void 0:J.videoInfos)&&(this.playbackRate=v,b2(this));this.playbackRate=v;this.mediaElement&&this.mediaElement.setPlaybackRate(v)}; g.q.getPlaybackRate=function(){return this.playbackRate}; g.q.getPlaybackQuality=function(){var v="unknown";if(this.videoData.X&&(v=this.videoData.X.video.quality,v==="auto"&&this.mediaElement)){var J=this.d6();J&&J.videoHeight>0&&(v=gf(J.videoWidth,J.videoHeight))}return v}; g.q.isHdr=function(){return!!(this.videoData.X&&this.videoData.X.video&&this.videoData.X.video.isHdr())}; g.q.D8=function(){this.zG().D8()}; g.q.sendVideoStatsEngageEvent=function(v,J){var G=this.zG();G.T?(G=sO(G.T,"engage"),G.dh=v,G.send(J)):J&&J()}; g.q.RK=function(v){return this.zG().RK(v)}; g.q.isAtLiveHead=function(v,J){J=J===void 0?!1:J;return e0(this.videoData)&&(this.s5||J)?this.JP.isAtLiveHead(v):!1}; g.q.Hi=function(){var v=this.j3(),J=this.getCurrentTime(),G;(G=!e0(this.videoData))||(G=this.JP,G=!(G.T&&G.T.Z));return G||this.a6()||isNaN(v)||isNaN(J)?0:Math.max(0,v-J)}; g.q.hD=function(v){(this.s5=v)||this.BJ.stop();this.videoData.T&&(v?this.videoData.T.resume():$Hf(this.videoData.T));if(this.Qb){var J=this.videoData.C("html5_disable_preload_for_ssdai_with_preroll")&&this.YK()&&this.videoData.isLivePlayback;v&&!J?this.Qb.resume():VL(this,!0)}g.H(this.playerState,2)||v?g.H(this.playerState,512)&&v&&this.Zv(VI(this.playerState,512)):this.Zv(KB(this.playerState,512));J=this.zG();J.qoe&&(J=J.qoe,g.qa(J,g.AO(J.provider),"stream",[v?"A":"I"]))}; g.q.RQ=function(v){v={n:v.name,m:v.message};this.zG().rd("player.exception",p6(v))}; g.q.yu=vF(28);g.q.MZ=vF(57);g.q.Lt=function(v){this.zG().Lt(v)}; g.q.Fw=function(v){this.zG().Fw(v)}; g.q.KU=function(v){this.zG().KU(v)}; g.q.ya=vF(34);g.q.ZM=vF(40);g.q.UI=function(v){this.zG().UI(v)}; g.q.NS=function(){this.uw("hidden",{},!0)}; g.q.Hy=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.q.La=function(){return this.Qb?this.Qb.La():!0}; g.q.setLoop=function(v){this.loop=v;this.mediaElement&&!g.yW(this.EB)&&this.mediaElement.setLoop(v)}; g.q.pQ=function(){return this.mediaElement&&!g.yW(this.EB)?this.mediaElement.pQ():this.loop}; g.q.wL=function(v){this.uw("timestamp",{o:v.toString()});this.JP.wL(v)}; g.q.pY=function(v){this.n0.tick(v)}; g.q.D0=function(v){return this.n0.D0(v)}; g.q.JZ=function(v){this.n0.JZ(v)}; g.q.uw=function(v,J,G){G=G===void 0?!1:G;this.zG().uw(v,J,G)}; g.q.SG=function(v,J,G){G=G===void 0?!1:G;this.zG().uw(v,J,G)}; g.q.rd=function(v){this.zG().rd(v.errorCode,p6(v.details));v=v.errorCode;if(this.videoData.isLivePlayback&&(v==="qoe.longrebuffer"||v==="qoe.slowseek")||v==="qoe.restart"){v=this.Qb?L_L(this.Qb.videoTrack):{};var J,G;this.uw("lasoe",Object.assign(this.Qb?L_L(this.Qb.audioTrack):{},(J=this.K7)==null?void 0:(G=J.T)==null?void 0:G.BY()));var K,V;this.uw("lvsoe",Object.assign(v,(K=this.K7)==null?void 0:(V=K.X)==null?void 0:V.BY()))}}; g.q.AZ=function(v,J,G){this.zG().AZ(v,J,G)}; g.q.cL=function(v,J,G,K,V,Y,r,E){var e;if((e=this.videoData.T)!=null&&e.isLive){var P=J.playerType===2?J:v,D=v.videoData.videoId,t=J.videoData.videoId;if(D&&t){e=this.zG();if(e.qoe){var B=e.qoe,I=v.cpn,h=J.cpn,R=P.videoData.a$,T=B.provider.videoData.clientPlaybackNonce,L=B.provider.videoData.videoId,O=h!==T&&t!==L;T=I!==T&&D!==L;B.reportStats();B.adCpn&&B.adCpn!==I||(B.adCpn=T?I:"",B.K4=T?D:"",B.adFormat=T?R:void 0,BQ(B,2,Y?4:V?2:0,h,t,K),B.reportStats(),B.adCpn=O?h:"",B.K4=O?t:"",B.adFormat=O?R: void 0,BQ(B,2,Y?5:V?3:1,I,D,G),B.reportStats())}G=v.cpn;if(e.Z.has(G)){if(V=e.Z.get(G),TE(V,!0).send(),l2(V),G!==e.provider.videoData.clientPlaybackNonce){kEw(V);var x;(x=e.T)==null||f7j(x);e.Z.delete(G)}}else e.Am=e.provider.videoData.clientPlaybackNonce,e.Am&&e.T&&(e.Z.set(e.Am,e.T),TE(e.T).send(),l2(e.T));x=J.cpn;P=P.videoData;K-=this.WC();if(e.Z.has(x)){K=e.Z.get(x);var f=K.Z&&isNaN(K.J)?Rc(K):NaN;K=XQj(K,!1);isNaN(f)||(K.K=f);K.send()}else K=$u2(e,e.provider,P,K),e.Z.set(x,K),c5F(K,new g.Dz(KB(new g.JZ, 8),new g.JZ)),SOs(K),(f=e.T)==null||l2(f);e.Am=x;this.C("html5_unify_csi_server_stitched_transition_logging")?kkm(this.n0,v.cpn,J.cpn,this.videoData.clientPlaybackNonce,J.videoData,r,void 0,E):(e=this.n0,K=this.videoData.clientPlaybackNonce,f=J.videoData,v=(v.cpn===K?"video":"ad")+"_to_"+(J.cpn===K?"video":"ad"),K={},f.j&&(K.cttAuthInfo={token:f.j,videoId:f.videoId}),r&&(K.startTime=r),aw(v,K),g.N0({targetVideoId:f.videoId,targetCpn:J.cpn,isSsdai:!0},v),e.EB.C("html5_enable_ssdai_transition_with_only_enter_cuerange")? r||Jm(e,E,v):Jm(e,E,v))}}else this.logger.T(360717806,"SSTEvent for nonSS")}; g.q.iF=function(){var v=this.GS,J=v.HK;v.HK=[];return J}; g.q.vW=function(v){this.videoData.HZ=!0;this.rd(new L6("sabr.fallback",v));this.Si(!0)}; g.q.eh=function(v,J){this.videoData.Xn=!0;if(J===void 0||J)this.rd(new L6("qoe.restart",v)),this.Si(!0);this.videoData.i9()&&this.C("html5_reload_caption_on_ssdai_fallback")&&this.GS.CU()}; g.q.DS=function(v){this.uw("sdai",{aftimeout:v});this.rd(new L6("ad.fetchtimeout",{timeout:v}))}; g.q.m0=function(v,J){this.uw("timelineerror",v);v=new L6("dai.timelineerror",v);J?this.ze("dai.timelineerror",1,"RETRYABLE_ERROR",p6(v.details)):this.rd(v)}; g.q.KF=function(){return g.AO(this.zG().provider)}; g.q.getPlayerSize=function(){return this.BX.getPlayerSize()}; g.q.mX=function(){return this.BX.mX()}; g.q.Gl=function(){return this.n0}; g.q.M_=function(){return this.GS.M_()}; g.q.getVolume=function(){return this.GS.getVolume()}; g.q.Oq=function(){return this.GS.Oq()}; g.q.isMuted=function(){return this.GS.isMuted()}; g.q.nX=function(){return this.GS.nX()}; g.q.tD=function(){this.C6=!0}; g.q.C=function(v){return this.EB.C(v)}; g.q.RX=function(v,J,G,K,V){this.uw("xvt",{m:v,g:J?1:0,tt:G?1:0,np:K?1:0,c:V})}; g.q.Vl=function(){var v;(v=this.Qb)==null||v.resume()}; g.q.YK=function(){return g.WN(this.cE,"ad")}; g.q.j_=function(){var v=this.getCurrentTime(),J=v-this.B$();var G=this.mediaElement?EP(this.mediaElement.dK()):0;G=Math.floor(Math.max(G-J,0))+100;var K;if(!this.C("html5_ssdai_disable_seek_to_skip")&&((K=this.Qb)==null?0:K.wm(J,this.j3())))return this.uw("sdai",{skipad:1,ct:J.toFixed(3),adj:0}),!0;var V;return((V=this.Qb)==null?0:V.j_(J,G))?(this.uw("sdai",{skipad:1,ct:J.toFixed(3),adj:G.toFixed(3)}),YJ(this.videoData)&&this.Qb.seek(J+G,{seekSource:89,nK:"videoplayer_skipServerStitchedAd"}),WhF(this.JP, v),!0):!1}; g.q.GG=function(){return this.EB.GG()}; g.q.Md=function(){if(this.C("html5_generate_content_po_token"))return this.videoData.B3||"";this.GS.bE();return this.EB.HG||""}; g.q.fT=function(){if(this.videoData.videoId)return this.videoData.Lw}; g.q.Ki=function(){return this.videoData.videoId}; g.q.mu=function(){return this.GS.ZE}; g.q.Ae=function(){return this.yB}; g.q.S9=function(){return this.GS.S9()}; g.q.Ei=function(v,J){this.JP.Ei(v,J)}; g.q.l5=function(){this.JP.l5()}; g.q.fn=function(v,J){var G=this.C("html5_generate_content_po_token")?this.videoData:void 0;this.GS.fn(v,J,G)}; g.q.eB=function(v,J){var G;(G=this.Qb)==null||G.eB(v,J)}; g.q.PN=function(){var v=this.u2();return!!v&&v.PN()}; g.q.bQ=function(){return this.tR}; g.q.vL=function(v,J){this.zG().vL(v,J)}; g.q.b3=function(){return this.zG().b3()}; g.q.XY=function(){return this.videoData.b5}; g.q.Rf=function(){return this.GS.Rf()}; g.q.gO=function(){return this.GS.gO(this)}; g.q.CT=function(){return this.hX}; g.q.OZ=function(v){var J;(J=this.Qb)==null||J.OZ(v)}; g.q.Or=function(){var v;(v=this.Qb)==null||v.Or()};g.z(bCL,$w);g.z(jxU,$w);g.q=jxU.prototype;g.q.seekToChapterWithAnimation=function(v){var J=this;if(g.zT(this.api)&&!(v<0)){var G=this.api.getVideoData(),K=G.Q$;if(K&&v=0)return;J=~J;g.K8(this.items,J,0,v);Dy(this.menuItems.element,v.element,J)}v.subscribe("size-change",this.rL,this);this.menuItems.publish("size-change")}; g.q.NI=function(v){v.unsubscribe("size-change",this.rL,this);this.Sl()||(g.j5(this.items,v),this.menuItems.element.removeChild(v.element),this.menuItems.publish("size-change"))}; g.q.rL=function(){this.menuItems.publish("size-change")}; g.q.focus=function(){for(var v=0,J=0;J1&&g.TS(this)}; g.q.TQ=function(){LJt(this);this.TG&&(TCw(this),g.RY(this.element,this.size))}; g.q.q5=function(){var v=this.T.pop();pHw(this,v,this.T[this.T.length-1],!0)}; g.q.eS=function(v){if(!v.defaultPrevented)switch(v.keyCode){case 27:this.FO();v.preventDefault();break;case 37:this.T.length>1&&this.q5();v.preventDefault();break;case 39:v.preventDefault()}}; g.q.focus=function(){this.T.length&&this.T[this.T.length-1].focus()}; g.q.X4=function(){g.F5.prototype.X4.call(this);this.j&&this.j.dispose();this.K&&this.K.dispose()};g.z(pD,g.R4);pD.prototype.open=function(v,J){this.initialize(v.items)&&this.xL(J,!!J)}; pD.prototype.initialize=function(v){g.sq(this.eK);if(v===void 0||v.length===0)return!1;var J=v.length;v=g.n(v);for(var G=v.next();!G.done;G=v.next())this.Dv(G.value,J--);return!0}; pD.prototype.Dv=function(v,J){v.menuNavigationItemRenderer?O5f(this,v.menuNavigationItemRenderer,J):v.menuServiceItemRenderer&&Ugs(this,v.menuServiceItemRenderer,J)};g.z(LD,zS);g.q=LD.prototype;g.q.wN=function(v){v.target!==this.dismissButton.element&&v.target!==this.overflowButton.element&&(this.WJ(),this.onClickCommand&&this.S.lw("innertubeCommand",this.onClickCommand))}; g.q.WD=function(){this.enabled=!1;this.N.hide()}; g.q.Bt=function(){return!!this.T&&this.enabled}; g.q.onVideoDataChange=function(v,J){this.dk(J);if(this.T){this.Ml();a:if(!this.isCounterfactual){var G,K,V;this.banner.update({title:(G=this.T)==null?void 0:G.title,subtitle:(K=this.T)==null?void 0:K.subtitle,metadata:(V=this.T)==null?void 0:V.metadataText});var Y;this.onClickCommand=g.N((Y=this.T)==null?void 0:Y.onTap,gu);var r;if(v=g.N((r=this.T)==null?void 0:r.onOverflow,gu))this.K=g.N(v,cET);var E;if((E=this.T)==null?0:E.thumbnailImage){var e,P;r=((e=this.T)==null?void 0:(P=e.thumbnailImage)== null?void 0:P.sources)||[];if(r.length===0)break a;this.thumbnailImage.update({url:r[0].url})}else{var D;if((D=this.T)==null?0:D.thumbnailIconName){var t;this.thumbnailIcon.update({icon:(t=this.T)==null?void 0:t.thumbnailIconName})}}var B;this.shouldShowOverflowButton=!((B=this.T)==null||!B.shouldShowOverflowButton);var I;this.shouldHideDismissButton=!((I=this.T)==null||!I.shouldHideDismissButton)}var h;this.banner.element.setAttribute("aria-label",((h=this.T)==null?void 0:h.a11yLabel)||"");var R; this.RY=(R=this.T)==null?void 0:R.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;mg2(this)}}; g.q.mXi=function(){this.isVisible=!0;mg2(this)}; g.q.R4r=function(){this.isVisible=!1;mg2(this)}; g.q.QK=function(){zS.prototype.QK.call(this);this.X&&this.S.logVisibility(this.banner.element,this.isVisible)}; g.q.WJ=function(){zS.prototype.WJ.call(this,!1);this.X&&this.S.logClick(this.banner.element)}; g.q.gx=function(v){this.j||(this.j=new pD(this.S),g.k(this,this.j));var J,G;if((J=this.K)==null?0:(G=J.menu)==null?0:G.menuRenderer)this.j.open(this.K.menu.menuRenderer,v.target),v.preventDefault()}; g.q.dk=function(){}; g.q.Ml=function(){}; g.q.X4=function(){this.S.RA("suggested_action_view_model");zS.prototype.X4.call(this)};g.z(yL,LD); yL.prototype.dk=function(v){var J,G,K;this.productUpsellSuggestedActionViewModel=g.N((J=v.getWatchNextResponse())==null?void 0:(G=J.playerOverlays)==null?void 0:(K=G.playerOverlayRenderer)==null?void 0:K.suggestedActionViewModel,oOU);var V;if((V=this.productUpsellSuggestedActionViewModel)==null?0:V.content){var Y;this.T=g.N((Y=this.productUpsellSuggestedActionViewModel)==null?void 0:Y.content,gYN)}var r,E;if(this.X=!!((r=this.productUpsellSuggestedActionViewModel)==null?0:(E=r.loggingDirectives)==null? 0:E.trackingParams)){var e,P;this.S.setTrackingParams(this.banner.element,((e=this.productUpsellSuggestedActionViewModel)==null?void 0:(P=e.loggingDirectives)==null?void 0:P.trackingParams)||null)}var D;this.isCounterfactual=!((D=this.productUpsellSuggestedActionViewModel)==null||!D.isCounterfactualServing)}; yL.prototype.Ml=function(){var v=[],J,G=g.n(((J=this.productUpsellSuggestedActionViewModel)==null?void 0:J.ranges)||[]);for(J=G.next();!J.done;J=G.next()){var K=J.value;K&&(J=Number(K.startTimeMilliseconds),K=Number(K.endTimeMilliseconds),isNaN(J)||isNaN(K)||v.push(new g.o8(J,K,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.S.oR(v)};g.z(Sw2,$w);g.z(w1,$w);w1.prototype.onVideoDataChange=function(v,J){var G=this;if(!A3(J)&&(v==="newdata"&&Z5m(this),this.X&&this.Z&&v==="dataloaded")){var K;Bx(VE(this.api.B(),(K=this.api.getVideoData())==null?void 0:g.cm(K)),function(V){G.Z=!1;aK8(G,V)})}}; w1.prototype.E4=function(){var v=this;if(g.yW(this.api.B())){var J,G=g.KS(this.api.B(),(J=this.api.getVideoData())==null?void 0:g.cm(J));return Bx(Eu(G),function(K){var V=Ny();aQ(V,K);return v.api.E4(V)})}return Eu(this.api.E4())};g.z(g.Uq,g.Cm);g.q=g.Uq.prototype;g.q.open=function(){g.lT(this.Mi,this.X)}; g.q.SJ=function(v){Ad8(this);var J=this.options[v];J&&(J.element.setAttribute("aria-checked","true"),this.H1(this.UA(v)),this.Z=v)}; g.q.zk=function(v){g.sq(this.X);for(var J={},G=!1,K=0;K=0?this.T.playbackRate:1}catch(v){return 1}}; g.q.setPlaybackRate=function(v){this.getPlaybackRate()!==v&&(this.T.playbackRate=v);return v}; g.q.pQ=function(){return this.T.loop}; g.q.setLoop=function(v){this.T.loop=v}; g.q.canPlayType=function(v,J){return this.T.canPlayType(v,J)}; g.q.isPaused=function(){return this.T.paused}; g.q.isSeeking=function(){return this.T.seeking}; g.q.isEnded=function(){return this.T.ended}; g.q.Op=function(){return this.T.muted}; g.q.jB=function(v){f6();this.T.muted=v}; g.q.TO=function(){return this.T.played||Kt([],[])}; g.q.dK=function(){try{var v=this.T.buffered}catch(J){}return v||Kt([],[])}; g.q.Go=function(){return this.T.seekable||Kt([],[])}; g.q.Mq=function(){var v=this.T;return v.getStartDate?v.getStartDate():null}; g.q.getCurrentTime=function(){return this.T.currentTime}; g.q.setCurrentTime=function(v){this.T.currentTime=v}; g.q.getDuration=function(){return this.T.duration}; g.q.load=function(){var v=this.T.playbackRate;try{this.T.load()}catch(J){}this.T.playbackRate=v}; g.q.pause=function(){this.T.pause()}; g.q.play=function(){var v=this.T.play();if(!v||!v.then)return null;v.then(void 0,function(){}); return v}; g.q.Rw=function(){return this.T.readyState}; g.q.WY=function(){return this.T.networkState}; g.q.t3=function(){return this.T.error?this.T.error.code:null}; g.q.qL=function(){return this.T.error?this.T.error.message:""}; g.q.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.T instanceof window.HTMLVideoElement&&this.T.getVideoPlaybackQuality)return this.T.getVideoPlaybackQuality();if(this.T){var v=this.T,J=v.webkitDroppedFrameCount;if(v=v.webkitDecodedFrameCount)return{droppedVideoFrames:J||0,totalVideoFrames:v}}return{}}; g.q.MI=function(){return!!this.T.webkitCurrentPlaybackTargetIsWireless}; g.q.ir=function(){return!!this.T.webkitShowPlaybackTargetPicker()}; g.q.togglePictureInPicture=function(){var v=this.T,J=window.document;window.document.pictureInPictureEnabled?this.T!==J.pictureInPictureElement?v.requestPictureInPicture():J.exitPictureInPicture():SR()&&v.webkitSetPresentationMode(v.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.q.td=function(){var v=this.T;return new g.R7(v.offsetLeft,v.offsetTop)}; g.q.getSize=function(){return g.lt(this.T)}; g.q.setSize=function(v){g.RY(this.T,v)}; g.q.getVolume=function(){return this.T.volume}; g.q.setVolume=function(v){f6();this.T.volume=v}; g.q.qM=function(v){this.J[v]||(this.T.addEventListener(v,this.listener),this.J[v]=this.listener)}; g.q.setAttribute=function(v,J){this.T.setAttribute(v,J)}; g.q.removeAttribute=function(v){this.T.removeAttribute(v)}; g.q.hasAttribute=function(v){return this.T.hasAttribute(v)}; g.q.Rj=vF(67);g.q.Fg=vF(69);g.q.jW=vF(71);g.q.Vd=vF(73);g.q.nI=function(){return nq(this.T)}; g.q.Dp=function(v){g.Vj(this.T,v)}; g.q.hU=function(v){return g.t4(this.T,v)}; g.q.QC=function(){return g.BM(document.body,this.T)}; g.q.audioTracks=function(){var v=this.T;if("audioTracks"in v)return v.audioTracks}; g.q.X4=function(){for(var v=g.n(Object.keys(this.J)),J=v.next();!J.done;J=v.next())J=J.value,this.T.removeEventListener(J,this.J[J]);bS.prototype.X4.call(this)}; g.q.Tu=function(v){this.T.disableRemotePlayback=v};g.z(a4,g.F);g.z(Ff,g.F);Ff.prototype.show=function(){g.F.prototype.show.call(this);this.De();this.kB.C("html5_enable_moving_s4n_window")&&g.yW(this.kB.B())&&this.U()}; Ff.prototype.hide=function(){g.F.prototype.hide.call(this);this.delay.stop();this.L.stop()}; Ff.prototype.De=function(){var v=(0,g.yR)(),J=vFt(this.kB);A_(this.T,J.bandwidth_samples);A_(this.K,J.network_activity_samples);A_(this.Z,J.live_latency_samples);A_(this.X,J.buffer_health_samples);var G={};J=g.n(Object.entries(J));for(var K=J.next();!K.done;K=J.next()){var V=g.n(K.value);K=V.next().value;V=V.next().value;this.N[K]!==V&&(G[K]=" "+String(V));this.N[K]=V}this.update(G);v=(0,g.yR)()-v>25?5E3:500;this.delay.start(v)}; Ff.prototype.U=function(){this.j?(this.position+=1,this.position>15&&(this.j=!1)):(--this.position,this.position<=0&&(this.j=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.L.start(2E4)};g.z(oFF,$w);g.z(HT,g.X);HT.prototype.T=function(){var v=(0,g.yR)()-this.startTime;v=vthis.L[v])&&(this.T=v,z8s(this))}; g.q.onCueRangeExit=function(v){var J=h8t(this,v);J&&this.T===v&&this.api.lw("innertubeCommand",J);this.clearTimeout();this.T=void 0}; g.q.onTimeout=function(v){this.T!==void 0&&(v==null?void 0:v.cueRangeId)===this.T&&(this.J=!1,(v=h8t(this,this.T))&&this.api.lw("innertubeCommand",v))}; g.q.VH=function(v){this.X=v}; g.q.aF=function(){z8s(this);this.X=void 0}; g.q.setTimeout=function(v){var J=this,G=Number(v==null?void 0:v.maxVisibleDurationMilliseconds);G&&(this.clearTimeout(),this.j=setTimeout(function(){J.onTimeout(v)},G))}; g.q.clearTimeout=function(){this.j&&clearTimeout(this.j);this.j=void 0;this.J=!1}; g.q.X4=function(){this.timelyActions=this.X=this.T=this.videoId=void 0;this.L={};this.yS();this.clearTimeout();$w.prototype.X4.call(this)};g.z(sOt,$w);var hV={},mn2=(hV[1]="pot_ss",hV[2]="pot_sf",hV[3]="pot_se",hV[4]="pot_xs",hV[5]="pot_xf",hV[6]="pot_xe",hV),S7B=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.z(bT,$w);bT.prototype.X4=function(){this.j&&(g.ze(this.j),this.j=void 0);$w.prototype.X4.call(this)}; bT.prototype.bE=function(){(this.T?!this.T.isReady():this.X)&&ip(this)}; bT.prototype.Tb=function(v,J,G){var K=this;if(laU(v)){var V=G||"",Y;if((Y=this.T)==null?0:Y.isReady())J=$Q(this,V),TLm(v,J);else{var r=new g.w5;J.push(r.promise);this.L.promise.then(function(){var E=$Q(K,V);TLm(v,E);r.resolve()})}}}; bT.prototype.oB=function(v){var J=this;if(this.T||this.X)v.B3=$Q(this,v.videoId),this.T&&!this.T.isReady()&&(this.Z=new Ct,this.L.promise.then(function(){J.n0.D0("pot_if");v.B3=$Q(J,v.videoId)}))};g.z(Zsw,$w);g.z(vv,g.X);vv.prototype.T=function(){for(var v=g.n(g.Om.apply(0,arguments)),J=v.next();!J.done;J=v.next())(J=J.value)&&this.features.push(J)}; vv.prototype.X4=function(){for(var v=this.features.length-1;v>=0;v--)this.features[v].dispose();this.features.length=0;g.X.prototype.X4.call(this)};uWw.prototype.reset=function(){this.T=this.X=NaN};g.q=gFr.prototype;g.q.reset=function(){uM(this.timerName)}; g.q.tick=function(v,J){cB(v,J,this.timerName)}; g.q.D0=function(v){return Fm(v,this.timerName)}; g.q.JZ=function(v){pB(v,void 0,this.timerName)}; g.q.infoGel=function(v){g.N0(v,this.timerName)};g.z(NLf,g.qU);g.q=NLf.prototype;g.q.tS=function(v){return this.loop||!!v||this.index+1=0}; g.q.setShuffle=function(v){this.shuffle=v;v=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var J=0;J0)||lp(this,1,!0)}; g.q.lP=function(){this.j=!0;this.T.YL(this.J);this.J=this.T.G(document,"mouseup",this.vP)}; g.q.vP=function(){this.j=!1;lp(this,8,!1);this.T.YL(this.J);this.J=this.T.G(this.target,"mousedown",this.lP)}; g.q.aP=function(v){if(v=(v=v.changedTouches)&&v[0])this.dh=v.identifier,this.T.YL(this.U),this.U=this.T.G(this.target,"touchend",this.sK,void 0,!0),lp(this,1024,!0)}; g.q.sK=function(v){if(v=v.changedTouches)for(var J=0;J1280||Y>720)if(V=G.Us("maxresdefault.jpg"))break;if(K>640||Y>480)if(V=G.Us("maxresdefault.jpg"))break; if(K>320||Y>180)if(V=G.Us("sddefault.jpg")||G.Us("hqdefault.jpg")||G.Us("mqdefault.jpg"))break;if(V=G.Us("default.jpg"))break}g.is(J)&&(J=new Image,J.addEventListener("load",function(){C5w()}),J.src=V?V:"",this.api.Gl().tick("ftr")); this.L.style.backgroundImage=V?"url("+V+")":""};g.z(g.yp,g.F);g.yp.prototype.resize=function(){}; g.yp.prototype.X=function(v){var J=this;this.Z=!1;Xlm(this);var G=v.jw,K=this.api.B();G!=="GENERIC_WITHOUT_LINK"||K.j?G==="TOO_MANY_REQUESTS"?(K=this.api.getVideoData(),this.H1(UD(this,"TOO_MANY_REQUESTS_WITH_LINK",K.lh(),void 0,void 0,void 0,!1))):G!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||K.j?this.api.B().C("html5_enable_bandaid_error_screen")&&G==="HTML5_SPS_UMP_STATUS_REJECTED"&&!K.j?(K=K.hostLanguage,v="//support.google.com/youtube?p=videoError",K&&(v=g.vt(v,{hl:K})),this.H1(UD(this,"HTML5_SPS_UMP_STATUS_REJECTED", v))):this.api.B().C("enable_adb_handling_in_sabr")&&G==="BROWSER_OR_EXTENSION_ERROR"&&!K.j?(K=K.hostLanguage,v="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",K&&(v=g.vt(v,{hl:K})),this.H1(UD(this,"BROWSER_OR_EXTENSION_ERROR",v))):this.H1(g.wP(v.errorMessage)):this.H1(UD(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(v=K.hostLanguage,G="//support.google.com/youtube/?p=player_error1",v&&(G=g.vt(G, {hl:v})),this.H1(UD(this,"GENERIC_WITH_LINK_AND_CPN",G,!0)),K.yy&&!K.L&&g02(this,function(Y){if(g.qI(Y,J.api,!Q5(J.api.B()))){Y={as3:!1,html5:!0,player:!0,cpn:J.api.getVideoData().clientPlaybackNonce};var r=J.api;r.Tr("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:Y});r.isFullscreen()&&r.toggleFullscreen()}})); if(this.Z){var V=this.p7("ytp-error-link");V&&(this.api.createClientVe(V,this,216104),this.api.logVisibility(V,!0),g02(this,function(){J.api.logClick(V)}))}}; var uwt=/([^<>]+)<\/a>/;g.z(ky8,g.F);g.q=ky8.prototype;g.q.onClick=function(v){this.innertubeCommand?(this.S.lw("innertubeCommand",this.innertubeCommand),v.preventDefault()):g.qI(v,this.S,!0);this.S.logClick(this.element)}; g.q.onVideoDataChange=function(v,J){NGm(this,J);this.Gr&&aff(this,this.Gr)}; g.q.LM=function(v){var J=this.S.getVideoData();this.videoId!==J.videoId&&NGm(this,J);this.T&&aff(this,v.state);this.Gr=v.state}; g.q.xL=function(){this.fade.show();this.S.publish("paidcontentoverlayvisibilitychange",!0);this.S.logVisibility(this.element,!0)}; g.q.FO=function(){this.fade.hide();this.S.publish("paidcontentoverlayvisibilitychange",!1);this.S.logVisibility(this.element,!1)};g.z(xQ,g.F);xQ.prototype.hide=function(){this.T.stop();this.message.style.display="none";g.F.prototype.hide.call(this)}; xQ.prototype.onStateChange=function(v){this.l9(v.state)}; xQ.prototype.l9=function(v){(g.H(v,128)||this.api.Ae()?0:g.H(v,16)||g.H(v,1))?this.T.start():this.hide()}; xQ.prototype.X=function(){this.message.style.display="block"};g.z(mY,g.F5);mY.prototype.onMutedAutoplayChange=function(v){this.Z&&(v?(Aef(this),this.xL()):(this.T&&this.logClick(),this.FO()))}; mY.prototype.If=function(v){this.api.isMutedByMutedAutoplay()&&g.Bs(v,2)&&this.FO()}; mY.prototype.onClick=function(){this.api.unMute();this.logClick()}; mY.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.z(g.S6,g.Zs);g.q=g.S6.prototype;g.q.init=function(){var v=this.api,J=v.getPlayerStateObject();this.qS=v.getPlayerSize();this.Zv(J);this.UF();this.E$();this.api.publish("basechromeinitialized",this);this.yE()&&this.api.publish("standardControlsInitialized")}; g.q.onVideoDataChange=function(v,J){var G=this.kp!==J.videoId;if(G||v==="newdata"){v=this.api;v.isFullscreen()||(this.qS=v.getPlayerSize());var K;((K=this.api.getVideoData(1))==null?0:g.WG(K))&&this.mZ()}G&&(this.kp=J.videoId,G=this.oK,G.Ze=3E3,lp(G,512,!0),this.UF());this.api.C("web_render_jump_buttons")&&J.showSeekingControls&&(this.m$=572)}; g.q.X1r=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.q.Iq=function(){var v=this.api.Cj()&&this.api.ZX(),J=this.api.Qh();return this.w3||v||this.xS||J}; g.q.mZ=function(){var v=!this.Iq();g.E3(this.api.getRootNode(),"ytp-menu-shown",!v);var J;((J=this.api.getVideoData(1))==null?0:g.WG(J))&&g.E3(this.api.getRootNode(),"ytp-hide-controls",!v)}; g.q.l$=function(v){try{if(!g.BM(this.api.getRootNode(),v))return!1}catch(J){return!1}for(;v&&!Yxw(v);)v=v===this.api.getRootNode()?null:v.parentElement||null;return!!v}; g.q.zs=function(v){var J=this.api.getRootNode();g.E3(J,"ytp-autohide",v);g.E3(J,"ytp-autohide-active",!0);this.Hc.start(v?250:100);v&&(this.m_=!1,g.rz(J,"ytp-touch-mode"));this.EQ=!v;this.api.QP(!v)}; g.q.Xc=function(){var v=this.api.getRootNode();g.E3(v,"ytp-autohide-active",!1)}; g.q.g2b=function(){this.hg=!0}; g.q.d1B=function(v){if(this.api.B().C("player_doubletap_to_seek")||this.api.B().U)this.hg=!1,this.NG&&this.YL(this.NG),this.h$===0&&Zd(this,v)?(this.il(),this.d1.start(),this.NG=this.G(this.api.f7(),"touchmove",this.g2b,void 0,!0)):this.d1.stop();QFm(this)&&Zd(this,v)&&!this.api.B().U&&Hcf(this);var J=this.Hk.wG();if(!g.Of(this.api.B())&&pY&&Wo2(this,v))J&&v.preventDefault();else if(this.m_=!0,g.Vj(this.api.getRootNode(),"ytp-touch-mode"),this.oK.kU(),this.api.B().C("player_doubletap_to_seek")||this.api.B().U)if(J= this.api.getPlayerStateObject(),!(!this.api.rK()||g.H(J,2)&&g.OM(this.api)||g.H(J,64))){J=Date.now()-this.p8;this.h$+=1;if(J<=350){this.X_=!0;J=this.api.getPlayerSize().width/3;var G=this.api.getRootNode().getBoundingClientRect(),K=v.targetTouches[0].clientX-G.left;G=v.targetTouches[0].clientY-G.top;var V=(this.h$-1)*10;K>0&&KJ*2&&K=650;this.oK.resize();g.E3(J,"ytp-fullscreen",this.api.isFullscreen());g.E3(J,"ytp-large-width-mode",G);g.E3(J,"ytp-small-mode",this.Ls());g.E3(J,"ytp-tiny-mode",this.m3());g.E3(J,"ytp-big-mode",this.XQ());this.xr&&this.xr.resize(v)}; g.q.If=function(v){this.Zv(v.state);this.UF()}; g.q.Cb=vF(5);g.q.T3=function(){var v=!!this.kp&&!this.api.D6()&&!this.Ao,J=this.api.getPresentingPlayerType()===2,G=this.api.B();if(J){if(xLG&&G.C("enable_visit_advertiser_support_on_ipad_mweb"))return!1;J=zo(this.api.c$());v&&(J&&J.player?v=(v=J.player.getVideoData(2))?v.isListed&&!g.pX(J.player.B()):!1:(Ps("showInfoBarDuringAd: this is null"),v=!1));return v}return v&&(G.Uj||this.api.isFullscreen()||G.ZO)}; g.q.UF=function(){var v=this.T3();this.nQ!==v&&(this.nQ=v,g.E3(this.api.getRootNode(),"ytp-hide-info-bar",!v))}; g.q.Zv=function(v){var J=v.isCued()||this.api.hF()&&this.api.getPresentingPlayerType()!==3;J!==this.isCued&&(this.isCued=J,this.wi&&this.YL(this.wi),this.wi=this.G(this.api.f7(),"touchstart",this.d1B,void 0,J));var G=this.oK,K=v.isPlaying()&&!g.H(v,32)||this.api.L1();lp(G,128,!K);G=this.oK;K=this.api.getPresentingPlayerType()===3;lp(G,256,K);G=this.api.getRootNode();g.H(v,2)?K=[kj.ENDED]:(K=[],g.H(v,8)?K.push(kj.PLAYING):g.H(v,4)&&K.push(kj.PAUSED),g.H(v,1)&&!g.H(v,32)&&K.push(kj.BUFFERING),g.H(v, 32)&&K.push(kj.SEEKING),g.H(v,64)&&K.push(kj.UNSTARTED));g.Eb(this.Hh,K)||(g.qR(G,this.Hh),this.Hh=K,g.Yf(G,K));K=this.api.B();var V=g.H(v,2);a:{var Y=this.api.B();var r=Y.controlsType;switch(r){case "2":case "0":Y=!1;break a}Y=r==="3"&&!g.H(v,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:DLA(zo(this.api.c$())))||this.api.Qh()||g.Of(Y)&&this.api.getPresentingPlayerType()===2?!1:!0}g.E3(G,"ytp-hide-controls",!Y);g.E3(G,"ytp-native-controls",K.controlsType==="3"&&!J&&!V&&!this.xS);g.H(v, 128)&&!g.Of(K)?(this.xr||(this.xr=new g.yp(this.api),g.k(this,this.xr),g.gr(this.api,this.xr.element,4)),this.xr.X(v.c8),this.xr.show()):this.xr&&(this.xr.dispose(),this.xr=null)}; g.q.c7=function(){return this.api.Cj()&&this.api.ZX()?(this.api.SB(!1,!1),!0):this.api.D6()?(g.UM(this.api,!0),!0):!1}; g.q.onMutedAutoplayChange=function(v){this.xS=v;this.mZ()}; g.q.XQ=function(){return!1}; g.q.Ls=function(){return!this.XQ()&&(this.api.getPlayerSize().width=0&&J.left>=0&&J.bottom>J.top&&J.right>J.left?J:null;J=this.size;v=v.clone();J=J.clone();K&&(r=J,V=5,(V&65)==65&&(v.x=K.right)&&(V&=-2),(V&132)==132&&(v.y=K.bottom)&&(V&=-5),v.xK.right&&(r.width=Math.min(K.right-v.x,Y+r.width-K.left),r.width=Math.max(r.width,0))),v.x+r.width>K.right&&V&1&&(v.x=Math.max(K.right-r.width,K.left)),v.yK.bottom&&(r.height=Math.min(K.bottom-v.y,Y+r.height-K.top),r.height=Math.max(r.height,0))),v.y+r.height>K.bottom&&V&4&&(v.y=Math.max(K.bottom-r.height,K.top)));K=new g.Y3(0,0,0,0);K.left=v.x;K.top=v.y;K.width= J.width;K.height=J.height;g.zK(this.element,new g.R7(K.left,K.top));g.O9(this.L);this.L.G(Hz(this),"contextmenu",this.JPU);this.L.G(this.S,"fullscreentoggled",this.onFullscreenToggled);this.L.G(this.S,"pageTransition",this.SS)}; g.q.JPU=function(v){if(!v.defaultPrevented){var J=pq(v);g.BM(this.element,J)||this.FO();this.S.B().disableNativeContextMenu&&v.preventDefault()}}; g.q.onFullscreenToggled=function(){this.FO();zAs(this)}; g.q.SS=function(){this.FO()};g.z(FD,g.F);FD.prototype.onClick=function(){var v=this,J,G,K,V;return g.m(function(Y){if(Y.T==1)return J=v.api.B(),G=v.api.getVideoData(),K=v.api.getPlaylistId(),V=J.getVideoUrl(G.videoId,K,void 0,!0),g.U(Y,sXm(v,V),2);Y.X&&dFB(v);v.api.logClick(v.element);g.zX(Y)})}; FD.prototype.De=function(){this.updateValue("icon",{Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{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=nWs(this);g.E3(this.element,"ytp-copylink-button-visible",this.visible); this.tP(this.visible);this.tooltip.J3();this.api.logVisibility(this.element,this.visible&&this.J)}; FD.prototype.I$=function(v){g.F.prototype.I$.call(this,v);this.api.logVisibility(this.element,this.visible&&v)}; FD.prototype.X4=function(){g.F.prototype.X4.call(this);g.rz(this.element,"ytp-copylink-button-visible")};g.z(Hv,g.F);Hv.prototype.show=function(){g.F.prototype.show.call(this);g.Wq(this.X)}; Hv.prototype.hide=function(){this.L.stop();this.Z=0;this.p7("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.rz(this.element,"ytp-chapter-seek");g.rz(this.element,"ytp-time-seeking");g.F.prototype.hide.call(this)}; Hv.prototype.P0=function(v,J,G,K){this.Z=v===this.K?this.Z+K:K;this.K=v;var V=v===-1?this.N:this.U;V&&this.S.logClick(V);this.j?this.X.stop():g.b4(this.X);this.L.start();this.element.setAttribute("data-side",v===-1?"back":"forward");var Y=3*this.S.f7().getPlayerSize().height;V=this.S.f7().getPlayerSize();V=V.width/3-3*V.height;this.T.style.width=Y+"px";this.T.style.height=Y+"px";v===1?(this.T.style.left="",this.T.style.right=V+"px"):v===-1&&(this.T.style.right="",this.T.style.left=V+"px");var r=Y* 2.5;Y=r/2;var E=this.p7("ytp-doubletap-ripple");E.style.width=r+"px";E.style.height=r+"px";v===1?(v=this.S.f7().getPlayerSize().width-J+Math.abs(V),E.style.left="",E.style.right=v-Y+"px"):v===-1&&(v=Math.abs(V)+J,E.style.right="",E.style.left=v-Y+"px");E.style.top="calc((33% + "+Math.round(G)+"px) - "+Y+"px)";if(G=this.p7("ytp-doubletap-ripple"))G.classList.remove("ytp-doubletap-ripple"),G.classList.add("ytp-doubletap-ripple");RAU(this,this.j?this.Z:K)};g.z(lbU,zS);g.q=lbU.prototype;g.q.F9=function(v){this.YB||(this.YB=new pD(this.S),g.k(this,this.YB));var J,G;if((J=this.o$)==null?0:(G=J.menu)==null?0:G.menuRenderer)this.YB.open(this.o$.menu.menuRenderer,v.target),v.preventDefault()}; g.q.Bt=function(){return!!this.T}; g.q.L9=function(){return!!this.T}; g.q.wN=function(v){v.target===this.overflowButton.element?v.preventDefault():(this.Vn&&this.S.lw("innertubeCommand",this.Vn),this.WJ(!1))}; g.q.WD=function(){this.WJ(!0);var v,J;((v=this.T)==null?0:(J=v.bannerData)==null?0:J.dismissedStatusKey)&&this.R$.push(this.T.bannerData.dismissedStatusKey);this.xq()}; g.q.iP=function(){this.xq();bp(this)}; g.q.gkU=function(v){var J=this,G;if(v.id!==((G=this.T)==null?void 0:G.identifier)){this.xq();G=g.n(this.Ze);for(var K=G.next();!K.done;K=G.next()){var V=K.value,Y=void 0,r=void 0;if((K=(Y=V)==null?void 0:(r=Y.bannerData)==null?void 0:r.itemData)&&V.identifier===v.id){r=Y=void 0;var E=((Y=V)==null?void 0:(r=Y.bannerData)==null?void 0:r.dismissedStatusKey)||"";if(this.R$.includes(E))break;this.T=V;this.banner.element.setAttribute("aria-label",K.accessibilityLabel||"");K.trackingParams&&(this.L=!0,this.S.setTrackingParams(this.badge.element, K.trackingParams));this.N.show();h_(this);this.Mr.tP(!K.stayInApp);Z$w(this);p4w(this);CC(this);this.Vn=g.N(K.onTapCommand,gu);if(V=g.N(K.menuOnTap,gu))this.o$=g.N(V,cET);V=void 0;this.banner.update({thumbnail:(V=(K.thumbnailSources||[])[0])==null?void 0:V.url,title:K.productTitle,price:K.priceReplacementText?K.priceReplacementText:K.price,salesOriginalPrice:w4w(this),priceDropReferencePrice:O$L(this),promotionText:yFF(this),priceA11yText:UF2(this),affiliateDisclaimer:K.affiliateDisclaimer,vendor:xFj(this)}); E=r=Y=V=void 0;((V=K)==null?0:(Y=V.hiddenProductOptions)==null?0:Y.showDropCountdown)&&((r=K)==null?0:(E=r.hiddenProductOptions)==null?0:E.dropTimestampMs)&&(this.UR=new g.Qq(function(){fbm(J)},1E3),this.Mr.hide(),this.countdownTimer.show(),fbm(this)); this.S.C("web_player_enable_featured_product_banner_exclusives_on_desktop")&&TXt(this)&&(this.OR=new g.Qq(function(){L5U(J)},1E3),L5U(this))}}}}; g.q.xq=function(){this.T&&(this.T=void 0,this.CD())}; g.q.onVideoDataChange=function(v,J){var G=this;v==="dataloaded"&&bp(this);var K,V,Y;v=g.N((K=J.getWatchNextResponse())==null?void 0:(V=K.playerOverlays)==null?void 0:(Y=V.playerOverlayRenderer)==null?void 0:Y.productsInVideoOverlayRenderer,XWY);this.overflowButton.show();this.dismissButton.hide();var r=v==null?void 0:v.featuredProductsEntityKey;this.trendingOfferEntityKey=v==null?void 0:v.trendingOfferEntityKey;this.Ze.length||(Sgs(this,r),CC(this));var E;(E=this.yy)==null||E.call(this);this.yy=g.J3.subscribe(function(){Sgs(G, r);CC(G)})}; g.q.X4=function(){bp(this);Z$w(this);p4w(this);zS.prototype.X4.call(this)};g.z(cFF,g.F);cFF.prototype.onClick=function(){this.S.logClick(this.element,this.X)};g.z(NX2,g.F5);g.q=NX2.prototype;g.q.show=function(){g.F5.prototype.show.call(this);this.S.publish("infopaneldetailvisibilitychange",!0);this.S.logVisibility(this.element,!0);abU(this,!0)}; g.q.hide=function(){g.F5.prototype.hide.call(this);this.S.publish("infopaneldetailvisibilitychange",!1);this.S.logVisibility(this.element,!1);abU(this,!1)}; g.q.getId=function(){return this.L}; g.q.CF=function(){return this.itemData.length}; g.q.onVideoDataChange=function(v,J){if(J){var G,K,V,Y;this.update({title:((G=J.Ct)==null?void 0:(K=G.title)==null?void 0:K.content)||"",body:((V=J.Ct)==null?void 0:(Y=V.bodyText)==null?void 0:Y.content)||""});var r;v=((r=J.Ct)==null?void 0:r.trackingParams)||null;this.S.setTrackingParams(this.element,v);r=g.n(this.itemData);for(v=r.next();!v.done;v=r.next())v.value.dispose();this.itemData=[];var E;if((E=J.Ct)==null?0:E.ctaButtons)for(J=g.n(J.Ct.ctaButtons),E=J.next();!E.done;E=J.next())if(E=g.N(E.value, m_o))E=new cFF(this.S,E,this.T),E.B1&&(this.itemData.push(E),E.vH(this.items))}}; g.q.X4=function(){this.hide();g.F5.prototype.X4.call(this)};g.z(H$2,g.F);g.q=H$2.prototype;g.q.onVideoDataChange=function(v,J){F5w(this,J);this.Gr&&QXU(this,this.Gr)}; g.q.CM=function(v){var J=this.S.getVideoData();this.videoId!==J.videoId&&F5w(this,J);QXU(this,v.state);this.Gr=v.state}; g.q.Sn=function(v){(this.Z=v)?this.hide():this.T&&this.show()}; g.q.Jb=function(){this.X||this.xL();this.showControls=!0}; g.q.jS=function(){this.X||this.FO();this.showControls=!1}; g.q.xL=function(){var v;if((v=this.S)==null?0:v.C("embeds_web_enable_info_panel_sizing_fix")){var J;v=(J=this.S)==null?void 0:J.getPlayerSize();J=v.width<380;var G;v=v.height<(((G=this.S)==null?0:G.isEmbedsShortsMode())?400:280);var K,V;if((((K=this.S)==null?0:K.getPlayerStateObject().isCued())||((V=this.S)==null?0:g.H(V.getPlayerStateObject(),1024)))&&J&&v)return}this.T&&!this.Z&&(this.fade.show(),this.S.publish("infopanelpreviewvisibilitychange",!0),this.S.logVisibility(this.element,!0))}; g.q.FO=function(){this.T&&!this.Z&&(this.fade.hide(),this.S.publish("infopanelpreviewvisibilitychange",!1),this.S.logVisibility(this.element,!1))}; g.q.LgB=function(){this.X=!1;this.showControls||this.FO()};var Q18={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(Q18).reduce(function(v,J){v[Q18[J]]=J;return v},{}); var W0_={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(W0_).reduce(function(v,J){v[W0_[J]]=J;return v},{}); var C0U={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(C0U).reduce(function(v,J){v[C0U[J]]=J;return v},{});var bo8,jzN;bo8=[{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"}];jzN=[{option:0,text:j4(0)},{option:.25,text:j4(.25)},{option:.5,text:j4(.5)},{option:.75,text:j4(.75)},{option:1,text:j4(1)}]; g.Jd=[{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 colour",options:bo8},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:j4(.5)},{option:-1,text:j4(.75)},{option:0,text:j4(1)},{option:1,text:j4(1.5)},{option:2, text:j4(2)},{option:3,text:j4(3)},{option:4,text:j4(4)}]},{option:"background",text:"Background colour",options:bo8},{option:"backgroundOpacity",text:"Background opacity",options:jzN},{option:"windowColor",text:"Window colour",options:bo8},{option:"windowOpacity",text:"Window opacity",options:jzN},{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:j4(.25)},{option:.5,text:j4(.5)},{option:.75,text:j4(.75)},{option:1,text:j4(1)}]}];var i_A=[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($cj,g.Zs);g.q=$cj.prototype; g.q.pV=function(v){v.repeat||(this.X.t$=!1);var J=!1,G=v.keyCode,K=pq(v),V=!v.altKey&&!v.ctrlKey&&!v.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||i_A.includes(G)),Y=!1,r=!1,E=this.api.B();v.defaultPrevented?(V=!1,r=!0):E.Hv&&!this.api.isMutedByEmbedsMutedAutoplay()&&(V=!1);if(G===9)J=!0;else{if(K)switch(G){case 32:case 13:if(K.tagName==="BUTTON"||K.tagName==="A"||K.tagName==="INPUT")J=!0,V=!1;else if(V){var e=K.getAttribute("role");!e||e!=="option"&&e!=="button"&&e.indexOf("menuitem")!==0|| (J=!0,K.click(),Y=!0)}break;case 37:case 39:case 36:case 35:J=K.getAttribute("role")==="slider";break;case 38:case 40:e=K.getAttribute("role"),K=G===38?K.previousSibling:K.nextSibling,e==="slider"?J=!0:V&&(e==="option"?(K&&K.getAttribute("role")==="option"&&K.focus(),Y=J=!0):e&&e.indexOf("menuitem")===0&&(K&&K.hasAttribute("role")&&K.getAttribute("role").indexOf("menuitem")===0&&K.focus(),Y=J=!0))}if(V&&!Y)switch(G){case 38:Y=Math.min(this.api.getVolume()+5,100);XD(this.U1,Y,!1);this.api.setVolume(Y); r=Y=!0;break;case 40:Y=Math.max(this.api.getVolume()-5,0);XD(this.U1,Y,!0);this.api.setVolume(Y);r=Y=!0;break;case 36:this.api.rK()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),r=Y=!0);break;case 35:this.api.rK()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),r=Y=!0)}}J&&$A(this,!0);(J||r)&&this.oK.kU();(Y||V&&this.handleGlobalKeyDown(G,v.shiftKey,v.ctrlKey,v.altKey,v.metaKey,v.key,v.code,v.repeat))&&v.preventDefault();E.K&&(v={keyCode:v.keyCode, altKey:v.altKey,ctrlKey:v.ctrlKey,metaKey:v.metaKey,shiftKey:v.shiftKey,handled:v.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.UN("onKeyPress",v))}; g.q.ZF=function(v){var J=v.keyCode;(!this.api.C("web_player_spacebar_control_bugfix")||this.api.C("web_player_spacebar_control_bugfix")&&!this.X.RC)&&this.handleGlobalKeyUp(J,v.shiftKey,v.ctrlKey,v.altKey,v.metaKey,v.key,v.code)&&v.preventDefault()}; g.q.handleGlobalKeyUp=function(v,J,G,K,V,Y,r){this.api.publish("keyboardserviceglobalkeyup",{keyCode:v,shiftKey:J,ctrlKey:G,altKey:K,metaKey:V,key:Y,code:r});J=!1;if(this.X.t$)return J;(V=g.Zw(this.api.c$()))&&(V=V.yF)&&V.TG&&(V.dV(v),J=!0);switch(v){case 9:$A(this,!0);J=!0;break;case 32:if(this.api.C("web_speedmaster_spacebar_control")&&(!this.api.C("web_player_spacebar_control_bugfix")&&!this.X.RC||this.api.C("web_player_spacebar_control_bugfix"))&&!this.api.B().Hv){var E,e;v=(E=this.progressBar)== null?void 0:(e=E.X)==null?void 0:e.isEnabled;J=this.LH(v)}break;case 39:(oM?K:G)&&this.api.C("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),E=(E=this.api.getVideoData())?E.Q$:[],e=CQm(E,this.api.getCurrentTime()*1E3),e!==-1&&this.T!=null&&(Qp(this.T,1,E[e].title),this.api.seekTo(E[e].startTime/1E3,void 0,void 0,void 0,52),J=!0))}return J}; g.q.handleGlobalKeyDown=function(v,J,G,K,V,Y,r,E){E||(this.X.t$=!1);var e=!1,P=this.api.B();if(P.Hv&&!this.api.isMutedByEmbedsMutedAutoplay())return e;var D=g.Zw(this.api.c$());if(D&&(D=D.yF)&&D.TG)switch(v){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:e=D.eH(v)}P.j||e||(e=Y||String.fromCharCode(v).toLowerCase(),this.Z+=e,"awesome".indexOf(this.Z)===0?(e=!0,7===this.Z.length&<X(this.api.getRootNode(),"ytp-color-party")):(this.Z=e,e="awesome".indexOf(this.Z)===0));if(!e&&(!this.api.isMutedByEmbedsMutedAutoplay()|| i_A.includes(v))){var t=this.api.getVideoData(),B,I;D=(B=this.progressBar)==null?void 0:(I=B.X)==null?void 0:I.isEnabled;B=t?t.Q$:[];I=oM?K:G;switch(v){case 80:J&&!P.YB&&(gP(this.U1,TI2(),"Previous"),this.api.previousVideo(),e=!0);break;case 78:J&&!P.YB&&(gP(this.U1,T8(),"Next"),this.api.nextVideo(),e=!0);break;case 74:this.api.rK()&&(this.api.startSeekCsiAction(),this.T?this.api.C("enable_key_press_seek_logging")?(e=vH(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),M6(this.T, -1,10,e)):M6(this.T,-1,10):gP(this.U1,{Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),e=!0);break;case 76:this.api.rK()&&(this.api.startSeekCsiAction(),this.T?this.api.C("enable_key_press_seek_logging")?(e=vH(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),M6(this.T,1,10,e)):M6(this.T,1,10):gP(this.U1,{Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),e=!0);break;case 37:this.api.rK()&&(this.api.startSeekCsiAction(),I?(I=b$m(B,this.api.getCurrentTime()*1E3),I!==-1&&this.T!=null&&(Qp(this.T,-1,B[I].title),this.api.seekTo(B[I].startTime/1E3,void 0,void 0,void 0,53),e=!0)):(this.T?this.api.C("enable_key_press_seek_logging")?(e=vH(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),M6(this.T,-1,5,e)):M6(this.T,-1,5):gP(this.U1,{Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),e=!0));break;case 39:this.api.rK()&&(this.api.startSeekCsiAction(),I?this.api.C("web_enable_keyboard_shortcut_for_timely_actions")||(I=CQm(B,this.api.getCurrentTime()*1E3),I!==-1&&this.T!=null&&(Qp(this.T,1,B[I].title),this.api.seekTo(B[I].startTime/1E3,void 0,void 0,void 0,52),e=!0)):(this.T!=null?this.api.C("enable_key_press_seek_logging")?(e=vH(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),M6(this.T,1,5,e)):M6(this.T, 1,5):gP(this.U1,{Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),e=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),XD(this.U1,this.api.getVolume(),!1)):(this.api.mute(),XD(this.U1,0,!0));e=!0;break;case 32:e=this.api.C("web_speedmaster_spacebar_control")?!this.api.B().YB:this.LH(D);break;case 75:e=this.LH(D);break;case 190:J?P.enableSpeedOptions&&Jlm(this)&&(e=this.api.getPlaybackRate(),this.api.setPlaybackRate(e+.25,!0),bcU(this.U1,!1),e=!0):this.api.rK()&&(this.step(1),e=!0);break;case 188:J? P.enableSpeedOptions&&Jlm(this)&&(e=this.api.getPlaybackRate(),this.api.setPlaybackRate(e-.25,!0),bcU(this.U1,!0),e=!0):this.api.rK()&&(this.step(-1),e=!0);break;case 70:Gf8(this.api)&&(this.api.toggleFullscreen().catch(function(){}),e=!0); break;case 27:D?(this.progressBar.lU(),e=!0):this.J()&&(e=!0)}if(P.controlsType!=="3")switch(v){case 67:g.Bv(this.api.c$())&&(P=this.api.getOption("captions","track"),this.api.toggleSubtitles(),jXm(this.U1,!P||P&&!P.displayName),e=!0);break;case 79:GQ(this,"textOpacity");break;case 87:GQ(this,"windowOpacity");break;case 187:case 61:GQ(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:GQ(this,"fontSizeIncrement",!0,!0)}var h;J||G||K||(v>=48&&v<=57?h=v-48:v>=96&&v<=105&&(h=v-96));h!=null&&this.api.rK()&& (this.api.startSeekCsiAction(),P=this.api.getProgressState(),this.api.seekTo(h/10*(P.seekableEnd-P.seekableStart)+P.seekableStart,void 0,void 0,void 0,81),e=!0);e&&this.oK.kU()}this.api.publish("keyboardserviceglobalkeydown",{keyCode:v,shiftKey:J,ctrlKey:G,altKey:K,metaKey:V,key:Y,code:r,repeat:E},this.X);return e}; g.q.step=function(v){this.api.rK();if(this.api.getPlayerStateObject().isPaused()){var J=this.api.getVideoData().X;J&&(J=J.video)&&this.api.seekBy(v/(J.fps||30),void 0,void 0,v>0?77:78)}}; g.q.LH=function(v){if(!this.api.B().YB){var J;var G,K=(J=this.api.getVideoData())==null?void 0:(G=J.getPlayerResponse())==null?void 0:G.playabilityStatus;if(K){var V;J=((V=g.N(K.miniplayer,QIF))==null?void 0:V.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else J=!1;J&&this.api.lw("onExpandMiniplayer");v?this.progressBar.mj():(v=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.U1.gZ(v),v?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.q.X4=function(){g.b4(this.L);g.Zs.prototype.X4.call(this)};g.z(g.ox,g.F);g.ox.prototype.Ai=vF(11); g.ox.prototype.De=function(){var v=this.S.B(),J=v.Z||this.S.C("web_player_hide_overflow_button_if_empty_menu")&&this.Bw.isEmpty();v=g.Of(v)&&g.SI(this.S)&&g.H(this.S.getPlayerStateObject(),128);var G=this.S.getPlayerSize();this.visible=this.S.Ls()&&!v&&G.width>=240&&!g.GT(this.S.getVideoData())&&!J&&!this.T&&!this.S.isEmbedsShortsMode();g.E3(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.S.J3();this.S.logVisibility(this.element,this.visible&&this.J)}; g.ox.prototype.I$=function(v){g.F.prototype.I$.call(this,v);this.S.logVisibility(this.element,this.visible&&v)}; g.ox.prototype.X4=function(){g.F.prototype.X4.call(this);g.rz(this.element,"ytp-overflow-button-visible")};g.z(Gbw,g.F5);g.q=Gbw.prototype;g.q.k_=function(v){v=pq(v);g.BM(this.element,v)&&(g.BM(this.T,v)||g.BM(this.closeButton,v)||My(this))}; g.q.FO=function(){g.F5.prototype.FO.call(this);this.S.O2(this.element)}; g.q.show=function(){this.TG&&this.S.publish("OVERFLOW_PANEL_OPENED");g.F5.prototype.show.call(this);this.element.setAttribute("aria-modal","true");Ktj(this,!0)}; g.q.hide=function(){g.F5.prototype.hide.call(this);this.element.removeAttribute("aria-modal");Ktj(this,!1)}; g.q.onFullscreenToggled=function(v){!v&&this.wG()&&My(this)}; g.q.isEmpty=function(){return this.actionButtons.length===0}; g.q.focus=function(){for(var v=g.n(this.actionButtons),J=v.next();!J.done;J=v.next())if(J=J.value,J.TG){J.focus();break}};g.z(VxX,g.F);VxX.prototype.onClick=function(v){g.qI(v,this.api)&&this.api.playVideoAt(this.index)};g.z(Ytw,g.F5);g.q=Ytw.prototype;g.q.show=function(){g.F5.prototype.show.call(this);this.T.G(this.api,"videodatachange",this.Pz);this.T.G(this.api,"onPlaylistUpdate",this.Pz);this.Pz()}; g.q.hide=function(){g.F5.prototype.hide.call(this);g.O9(this.T);this.updatePlaylist(null)}; g.q.Pz=function(){this.updatePlaylist(this.api.getPlaylist());this.api.B().Z&&(this.p7("ytp-playlist-menu-title-name").removeAttribute("href"),this.Z&&(this.YL(this.Z),this.Z=null))}; g.q.OO=function(){var v=this.playlist,J=v.author,G=J?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",K={CURRENT_POSITION:String(v.index+1),PLAYLIST_LENGTH:String(v.getLength())};J&&(K.AUTHOR=J);this.update({title:v.title,subtitle:g.h6(G,K),playlisturl:this.api.getVideoUrl(!0)});J=v.X;if(J===this.L)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[v.index];else{G=g.n(this.playlistData);for(K=G.next();!K.done;K=G.next())K.value.dispose(); G=v.getLength();this.playlistData=[];for(K=0;K=this.X&&!v.Z&&!J.isAd()&&!this.api.isEmbedsShortsMode()}else v=!1;this.visible=v;this.tP(this.visible);g.E3(this.element,"ytp-search-button-visible",this.visible);g.E3(this.element,"ytp-show-search-title",!this.api.Ls());this.api.logVisibility(this.element,this.visible&&this.J)}; rC.prototype.I$=function(v){g.F.prototype.I$.call(this,v);this.api.logVisibility(this.element,this.visible&&v)};g.z(g.qg,g.F);g.q=g.qg.prototype;g.q.XD=vF(8);g.q.onClick=function(){var v=this,J=this.api.B(),G=this.api.getVideoData(this.api.getPresentingPlayerType()),K=this.api.getPlaylistId();J=this.api.C("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):J.getVideoUrl(G.videoId,K,void 0,!0);if(navigator.share)try{var V=navigator.share({title:G.title,url:J});V instanceof Promise&&V.catch(function(Y){Biw(v,Y)})}catch(Y){Y instanceof Error&&Biw(this,Y)}else this.T.c7(),My(this.Z,this.element,!1); this.api.logClick(this.element)}; g.q.De=function(){var v=this.api.B(),J=this.api.isEmbedsShortsMode();g.E3(this.element,"ytp-show-share-title",g.Of(v)&&!J);this.T.XQ()&&J?(v=(this.api.f7().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.ep(this.element,"right",v+"px")):J&&g.ep(this.element,"right","0px");this.updateValue("icon",{Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{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=txB(this);g.E3(this.element,"ytp-share-button-visible",this.visible);this.tP(this.visible);this.tooltip.J3();this.api.logVisibility(this.element,txB(this)&&this.J)}; g.q.I$=function(v){g.F.prototype.I$.call(this,v);this.api.logVisibility(this.element,this.visible&&v)}; g.q.X4=function(){g.F.prototype.X4.call(this);g.rz(this.element,"ytp-share-button-visible")};g.z(hrs,g.F5);g.q=hrs.prototype;g.q.UK=function(v){v=pq(v);g.BM(this.j,v)||g.BM(this.closeButton,v)||My(this)}; g.q.FO=function(){g.F5.prototype.FO.call(this);this.tooltip.O2(this.element);this.api.logVisibility(this.T,!1);for(var v=g.n(this.Z),J=v.next();!J.done;J=v.next())J=J.value,this.api.hasVe(J.element)&&this.api.logVisibility(J.element,!1)}; g.q.show=function(){var v=this.TG;g.F5.prototype.show.call(this);this.De();v||this.api.lw("onSharePanelOpened")}; g.q.yRe=function(){this.TG&&this.De()}; g.q.De=function(){var v=this;g.Vj(this.element,"ytp-share-panel-loading");g.rz(this.element,"ytp-share-panel-fail");var J=this.api.getVideoData(),G=this.api.getPlaylistId()&&this.L.checked;J.getSharePanelCommand&&Q_(this.api.E4(),J.getSharePanelCommand,{includeListId:G}).then(function(K){v.Sl()||(g.rz(v.element,"ytp-share-panel-loading"),njr(v,K))}); J=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",J);this.updateValue("linkText",J);this.updateValue("shareLinkWithUrl",g.h6("Share link $URL",{URL:J}));Pd(this.T);this.api.logVisibility(this.T,!0)}; g.q.onFullscreenToggled=function(v){!v&&this.wG()&&My(this)}; g.q.focus=function(){this.T.focus()}; g.q.X4=function(){g.F5.prototype.X4.call(this);zr2(this)};g.z(Rrw,zS);g.q=Rrw.prototype;g.q.X4=function(){ylw(this);zS.prototype.X4.call(this)}; g.q.wN=function(v){v.target!==this.dismissButton.element&&(this.WJ(!1),this.S.lw("innertubeCommand",this.onClickCommand))}; g.q.WD=function(){this.xB=!0;this.WJ(!0);this.CD()}; g.q.r74=function(v){this.K=v;this.CD()}; g.q.onVideoDataChange=function(v,J){if(v=!!J.videoId&&this.videoId!==J.videoId)this.videoId=J.videoId,this.xB=!1,this.dh=!0,this.U=this.Ti=!1,ylw(this),Ltm(this,!1),this.X=this.T=!1,e4(this),lhw(this);if(v||!J.videoId)this.oY=this.L=!1;var G,K;if(J==null?0:(G=J.getPlayerResponse())==null?0:(K=G.videoDetails)==null?0:K.isLiveContent)this.ML(!1);else{var V,Y,r;J=g.N((V=J.getWatchNextResponse())==null?void 0:(Y=V.playerOverlays)==null?void 0:(r=Y.playerOverlayRenderer)==null?void 0:r.productsInVideoOverlayRenderer, XWY);this.K=this.enabled=!1;if(J){if(V=J==null?void 0:J.featuredProductsEntityKey){Y=g.J3.getState().entities;var E;if((E=$C(Y,"featuredProductsEntity",V))==null?0:E.productsData){this.ML(!1);return}}this.enabled=!0;if(!this.L){var e;E=(e=J.badgeInteractionLogging)==null?void 0:e.trackingParams;(this.L=!!E)&&this.S.setTrackingParams(this.badge.element,E||null)}if(!this.oY){var P;if(this.oY=!((P=J.dismissButton)==null||!P.trackingParams)){var D;this.S.setTrackingParams(this.dismissButton.element,((D= J.dismissButton)==null?void 0:D.trackingParams)||null)}}J.isContentForward&&(e=J.productsData,Ltm(this,!0),lhw(this),e=p1L(this,e),P=[],e.length>0&&P.push(e[0]),e.length>1&&(D=new g.F({Y:"div",D:"ytp-suggested-action-more-products-icon"}),g.k(this,D),P.push(D),P.push.apply(P,g.l(e.slice(1)))),this.j=new g.F({Y:"div",W:P,D:"ytp-suggested-action-content-forward-container"}),g.k(this,this.j),this.qr.element.append(this.j.element));this.text=g.h9(J.text);var t;if(e=(t=J.dismissButton)==null?void 0:t.a11yLabel)this.RY= g.h9(e);this.onClickCommand=J.onClickCommand;this.timing=J.timing;this.oR()}Rsj(this);h_(this);this.CD()}}; g.q.Bt=function(){return!this.K&&this.enabled&&!this.xB&&!this.S.Ls()&&!this.g_&&(this.U||this.dh)}; g.q.GK=function(v){zS.prototype.GK.call(this,v);if(this.T||this.X)this.timing&&Ew(this.timing.preview)&&(this.T=!1,e4(this),this.X=!1,e4(this),this.S.RA("shopping_overlay_preview_collapsed"),this.S.RA("shopping_overlay_preview_expanded"),v=PH(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),Ew(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.S.RA("shopping_overlay_expanded"),v.end=this.timing.expanded.endSec*1E3),this.S.oR([v])), this.Ti=!0,h_(this);e4(this)}; g.q.ML=function(v){(this.U=v)?(I4(this),h_(this,!1)):(ylw(this),this.jl.start());this.CD()}; g.q.oR=function(v){var J=this.timing;v=(v===void 0?0:v)+this.S.getCurrentTime();var G=[],K=J.visible,V=J.preview;J=J.expanded;Ew(K)&&(dcf(K,v),G.push(PH(K.startSec,K.endSec,"shopping_overlay_visible")));Ew(V)&&(dcf(V,v),K=V.startSec+1,G.push(PH(V.startSec,K,"shopping_overlay_preview_collapsed")),G.push(PH(K,V.endSec,"shopping_overlay_preview_expanded")));Ew(J)&&(dcf(J,v),G.push(PH(J.startSec,J.endSec,"shopping_overlay_expanded")));this.S.oR(G)};g.z(Ucw,g.F); Ucw.prototype.De=function(){var v=this.api.B();this.tP(g.Of(v)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.TG);var J=this.api.getVideoData(),G=!1;this.api.getPresentingPlayerType()===2?G=!!J.videoId&&!!J.isListed&&!!J.author&&!!J.g_&&!!J.profilePicture:g.Of(v)&&(G=!!J.videoId&&!!J.g_&&!!J.profilePicture&&!g.GT(J)&&!v.Z&&!(v.U&&this.api.getPlayerSize().width<200));var K=J.profilePicture;v=g.Of(v)?J.expandedTitle:J.author;K=K===void 0? "":K;v=v===void 0?"":v;G?(this.X!==K&&(this.T.style.backgroundImage="url("+K+")",this.X=K),this.updateValue("channelLogoLabel",g.h6("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:v})),g.Vj(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.rz(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.T,G&&this.J);this.api.logVisibility(this.channelName,G&&this.J);this.subscribeButton&&(this.subscribeButton.channelId=J.kN);this.updateValue("expandedTitle",J.expandedTitle)};g.z(DK,g.F5);DK.prototype.show=function(){g.F5.prototype.show.call(this);this.T.start()}; DK.prototype.hide=function(){g.F5.prototype.hide.call(this);this.T.stop()}; DK.prototype.Q5=function(v,J){v==="dataloaded"&&((this.wP=J.wP,this.HG=J.HG,isNaN(this.wP)||isNaN(this.HG))?this.Z&&(this.S.RA("intro"),this.S.removeEventListener(g.VG("intro"),this.K),this.S.removeEventListener(g.YM("intro"),this.j),this.S.removeEventListener("onShowControls",this.L),this.hide(),this.Z=!1):(this.S.addEventListener(g.VG("intro"),this.K),this.S.addEventListener(g.YM("intro"),this.j),this.S.addEventListener("onShowControls",this.L),v=new g.o8(this.wP,this.HG,{priority:9,namespace:"intro"}), this.S.oR([v]),this.Z=!0))};g.z(td,g.F);td.prototype.onClick=function(){this.S.ir()}; td.prototype.De=function(){var v=!0;g.Of(this.S.B())&&(v=v&&this.S.f7().getPlayerSize().width>=480);this.tP(v);this.updateValue("icon",this.S.MI()?{Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"path",Xu:!0,V:{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"}}]}: {Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{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(mcw,g.F);mcw.prototype.X4=function(){this.T=null;g.F.prototype.X4.call(this)};g.z(BH,g.F);BH.prototype.onClick=function(){this.S.lw("innertubeCommand",this.X)}; BH.prototype.N=function(v){v!==this.j&&(this.update({title:v,ariaLabel:v}),this.j=v);v?this.show():this.hide()}; BH.prototype.U=function(){this.T.disabled=this.X==null;g.E3(this.T,"ytp-chapter-container-disabled",this.T.disabled);this.kL()};g.z(Ix,BH);Ix.prototype.onClickCommand=function(v){g.N(v,vm)&&this.kL()}; Ix.prototype.updateVideoData=function(v,J){var G,K,V;v=g.N((G=J.getWatchNextResponse())==null?void 0:(K=G.playerOverlays)==null?void 0:(V=K.playerOverlayRenderer)==null?void 0:V.decoratedPlayerBarRenderer,LS);G=g.N(v==null?void 0:v.playerBarActionButton,g.Ze);this.S.C("web_player_updated_entrypoint")&&(this.K=dt(G==null?void 0:G.text));this.X=G==null?void 0:G.command;BH.prototype.U.call(this)}; Ix.prototype.kL=function(){var v=this.S.C("web_player_updated_entrypoint")?this.K:"",J=this.L.T,G,K=((G=this.S.getLoopRange())==null?void 0:G.type)==="clips";if(J.length>1&&!K){v=this.S.getProgressState().current*1E3;G=ix(J,v);v=J[G].title||"Chapters";if(G!==this.currentIndex||this.Z)this.S.lw("innertubeCommand",J[G].onActiveCommand),this.currentIndex=G;this.Z=!1}else this.Z=!0;BH.prototype.N.call(this,v)};g.z(hd,g.F);hd.prototype.Z=function(v){g.H(v.state,32)?fhF(this,this.api.DM()):this.TG&&(g.H(v.state,16)||g.H(v.state,1))||this.fade.hide()}; hd.prototype.V9=function(){var v=this.api.getPlayerStateObject();(g.H(v,32)||g.H(v,16))&&Zj2(this)}; hd.prototype.L=function(){this.frameIndex=NaN;Zj2(this)}; hd.prototype.hide=function(){this.T&&fhF(this,null);g.F.prototype.hide.call(this)};g.z(un8,g.F);g.q=un8.prototype;g.q.onClick=function(){var v=this;if(this.S.B().UR||this.S.B().U){this.S.logClick(this.element);try{this.S.toggleFullscreen().catch(function(J){v.uZ(J)})}catch(J){this.uZ(J)}}else My(this.message,this.element,!0)}; g.q.uZ=function(v){String(v).includes("fullscreen error")?g.Zl(v):g.fW(v);this.Fc()}; g.q.Fc=function(){this.disable();this.message.xL(this.element,!0)}; g.q.AY=function(){zZ()===this.S.getRootNode()?this.Z.start():(this.Z.stop(),this.message&&this.message.hide())}; g.q.u7=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var v=window.screen.width*.9,J=window.screen.height*.9,G=Math.max(window.outerWidth,window.innerWidth),K=Math.max(window.outerHeight,window.innerHeight);if(G>K!==v>J){var V=G;G=K;K=V}v>G&&J>K&&this.Fc()}}; g.q.disable=function(){var v=this;if(!this.message){var J=(B8(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKFind out more$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKFind out more$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.F5(this.S,{Y:"div",n7:["ytp-popup","ytp-generic-popup"],V:{role:"alert",tabindex:"0"},W:[J[0],{Y:"a",V:{href:"https://support.google.com/youtube/answer/6276924", target:this.S.B().N},At:J[2]},J[4]]},100,!0);this.message.hide();g.k(this,this.message);this.message.subscribe("show",function(G){v.X.pI(v.message,G)}); g.gr(this.S,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.T)();this.T=null}}; g.q.De=function(){var v=Gf8(this.S),J=this.S.B().U&&this.S.getPlayerSize().width<250;this.tP(v&&!J);var G;((G=this.S.B())==null?0:G.C("embeds_use_parent_visibility_in_ve_logging"))?this.S.logVisibility(this.element,this.TG&&this.J):this.S.logVisibility(this.element,this.TG)}; g.q.y5=function(v){if(v){var J={Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"g",D:"ytp-fullscreen-button-corner-2",W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{Y:"g",D:"ytp-fullscreen-button-corner-3",W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{Y:"g",D:"ytp-fullscreen-button-corner-0",W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{Y:"g", D:"ytp-fullscreen-button-corner-1",W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};v=g.yh(this.S,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.S.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(G){g.Zl(G)})}else J={Y:"svg", V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"g",D:"ytp-fullscreen-button-corner-0",W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{Y:"g",D:"ytp-fullscreen-button-corner-1",W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{Y:"g",D:"ytp-fullscreen-button-corner-2",W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{Y:"g",D:"ytp-fullscreen-button-corner-3", W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},v=g.yh(this.S,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});v=this.message?null:v;this.update({title:v,icon:J});this.X.Z6().J3()}; g.q.X4=function(){this.message||((0,this.T)(),this.T=null);g.F.prototype.X4.call(this)}; g.q.I$=function(v){g.F.prototype.I$.call(this,v);var J;((J=this.S.B())==null?0:J.C("embeds_use_parent_visibility_in_ve_logging"))&&this.S.logVisibility(this.element,this.TG&&v)};g.z(zQ,g.F);zQ.prototype.onClick=function(){this.S.logClick(this.element);this.S.seekBy(this.T,!0);var v=this.T>0?1:-1,J=Math.abs(this.T),G=this.S.N$().PQ;G&&M6(G,v,J);this.X.isActive()?this.Z=!0:(v=["ytp-jump-spin"],this.T<0&&v.push("backwards"),this.element.classList.add.apply(this.element.classList,g.l(v)),g.Wq(this.X))};g.z(n5,BH);n5.prototype.onClickCommand=function(v){g.N(v,uk8)&&this.kL()}; n5.prototype.updateVideoData=function(){var v,J;this.X=(v=X1L(this))==null?void 0:(J=v.onTap)==null?void 0:J.innertubeCommand;BH.prototype.U.call(this)}; n5.prototype.kL=function(){var v="",J=this.L.K,G,K=(G=X1L(this))==null?void 0:G.headerTitle;G=K?g.h9(K):"";var V;K=((V=this.S.getLoopRange())==null?void 0:V.type)==="clips";J.length>1&&!K&&(v=this.S.getProgressState().current*1E3,V=W5r(J,v),v=V!=null?J[V].title:G,V!=null&&V!==this.currentIndex&&(this.S.lw("innertubeCommand",J[V].onActiveCommand),this.currentIndex=V));BH.prototype.N.call(this,v)};g.z(dC,g.F);dC.prototype.onClick=function(){this.S.lw("onCollapseMiniplayer");this.S.logClick(this.element)}; dC.prototype.De=function(){this.visible=!this.S.isFullscreen();this.tP(this.visible);this.S.logVisibility(this.element,this.visible&&this.J)}; dC.prototype.I$=function(v){g.F.prototype.I$.call(this,v);this.S.logVisibility(this.element,this.visible&&v)};g.z(Rx,g.F);g.q=Rx.prototype;g.q.ND=function(v){this.visible=v.width>=300||this.Mr;this.tP(this.visible);this.S.logVisibility(this.element,this.visible&&this.J)}; g.q.E5l=function(){this.S.B().jl?this.S.isMuted()?this.S.unMute():this.S.mute():My(this.message,this.element,!0);this.S.logClick(this.element)}; g.q.onVolumeChange=function(v){this.setVolume(v.volume,v.muted)}; g.q.setVolume=function(v,J){var G=this,K=J?0:v/100,V=this.S.B();v=K===0?1:v>50?1:0;if(this.j!==v){var Y=this.Ti;isNaN(Y)?NiU(this,v):Y7L(this.Ze,function(E){NiU(G,Y+(G.j-Y)*E)},250); this.j=v}K=K===0?1:0;if(this.L!==K){var r=this.N;isNaN(r)?ahs(this,K):Y7L(this.oY,function(E){ahs(G,r+(G.L-r)*E)},250); this.L=K}V.jl&&(V=g.yh(this.S,"Mute","m"),K=g.yh(this.S,"Unmute","m"),this.updateValue("title",J?K:V),this.update({"data-title-no-tooltip":J?"Unmute":"Mute"}),this.tooltip.J3())}; g.q.I$=function(v){g.F.prototype.I$.call(this,v);this.S.logVisibility(this.element,this.visible&&v)}; var kbf=["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"],clB=["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.lx,g.F);g.q=g.lx.prototype;g.q.onStateChange=function(v){this.l9(v.state);var J;((J=this.S.B())==null?0:J.C("embeds_use_parent_visibility_in_ve_logging"))&&this.S.logVisibility(this.element,this.TG&&this.J)}; g.q.l9=function(v){var J=g.yf(this.S.getVideoData()),G=!1;v.isOrWillBePlaying()?v=J?4:2:g.H(v,2)?(v=3,G=J):v=1;this.element.disabled=G;if(this.T!==v){J=null;switch(v){case 2:J=g.yh(this.S,"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.yh(this.S,"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"})}v=== 3?this.update({title:J,icon:AlF(v)}):(this.update({title:J}),(J=AlF(v))&&this.T&&this.T!==3?q7X(this.transition,this.element,J):this.updateValue("icon",J));this.tooltip.J3();this.T=v}}; g.q.onVideoDataChange=function(){g.E3(this.element,"ytp-play-button-playlist",g.SI(this.S))}; g.q.LH=function(v){this.S.logClick(this.element);if(this.S.getPlayerStateObject().isOrWillBePlaying())this.S.pauseVideo();else{if(this.S.isMinimized()&&this.S.getPlayerStateObject().isCued()){var J={},G;if((G=this.S.getVideoData())==null?0:G.j)J.cttAuthInfo={token:this.S.getVideoData().j,videoId:this.S.getVideoData().videoId};aw("direct_playback",J);this.S.Gl().timerName="direct_playback"}this.S.playVideo()}this.S.isMinimized()&&(v==null?void 0:v.type)==="click"&&this.element.blur()}; g.q.I$=function(v){g.F.prototype.I$.call(this,v);var J;((J=this.S.B())==null?0:J.C("embeds_use_parent_visibility_in_ve_logging"))&&this.S.logVisibility(this.element,this.TG&&v)};g.z(g.TQ,g.F);g.q=g.TQ.prototype;g.q.onVideoDataChange=function(){Hjw(this);this.L&&(this.YL(this.L),this.L=null);this.videoData=this.S.getVideoData(1);if(this.playlist=this.S.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.L=this.G(this.S,"progresssync",this.zR);this.Z=MxU(this);Ft2(this);this.On(this.S.f7().getPlayerSize())}; g.q.On=function(v){v=v===void 0?this.S.f7().getPlayerSize():v;var J,G=((J=this.S.getLoopRange())==null?void 0:J.type)==="clips";v=(g.SI(this.S)||this.T&&g.X5(this.S)&&!this.S.C("web_hide_next_button")||QNm(this))&&!G&&(this.T||v.width>=400);this.tP(v);this.S.logVisibility(this.element,v)}; g.q.onClick=function(v){this.S.logClick(this.element);var J=!0;this.K?J=g.qI(v,this.S):v.preventDefault();J&&(this.T&&this.S.getPresentingPlayerType()===5?this.S.publish("ytoprerollinternstitialnext"):this.T?(Go(this.S.Gl()),this.S.publish("playlistnextbuttonclicked",this.element),this.S.nextVideo(!0)):this.Z?this.S.seekTo(0):(Go(this.S.Gl()),this.S.publish("playlistprevbuttonclicked",this.element),this.S.previousVideo(!0)))}; g.q.zR=function(){var v=MxU(this);v!==this.Z&&(this.Z=v,Ft2(this))}; g.q.X4=function(){this.X&&(this.X(),this.X=null);Hjw(this);g.F.prototype.X4.call(this)};g.z(Cbf,g.F);g.q=Cbf.prototype;g.q.BP=function(v){this.lB(v.pageX);this.Wz(v.pageX+v.deltaX);bjw(this)}; g.q.lB=function(v){this.oY=v-this.YB}; g.q.Wz=function(v){v-=this.YB;!isNaN(this.oY)&&this.thumbnails.length>0&&(this.N=v-this.oY,this.thumbnails.length>0&&this.N!==0&&(this.Z=this.U+this.N,v=JVm(this,this.Z),this.Z<=this.T/2&&this.Z>=voB(this)?(this.api.seekTo(v,!1,void 0,void 0,25),g.ep(this.dh,"transform","translateX("+(this.Z-this.T/2)+"px)"),Wtw(this,v)):this.Z=this.U))}; g.q.In=function(){this.Ti&&(this.Ti.hT=!0);var v=(0,g.yR)()-this.Gi<300;if(Math.abs(this.N)<5&&!v){this.Gi=(0,g.yR)();v=this.oY+this.N;var J=this.T/2-v;this.lB(v);this.Wz(v+J);bjw(this);this.api.logClick(this.j)}bjw(this)}; g.q.x_=function(){p5(this,this.api.getCurrentTime())}; g.q.play=function(v){this.api.seekTo(JVm(this,this.Z),void 0,void 0,void 0,26);this.api.playVideo();v&&this.api.logClick(this.playButton)}; g.q.onExit=function(v){this.api.seekTo(this.jl,void 0,void 0,void 0,63);this.api.playVideo();v&&this.api.logClick(this.dismissButton)}; g.q.E$=function(v,J){this.YB=v;this.T=J;p5(this,this.api.getCurrentTime())}; g.q.enable=function(){this.isEnabled||(this.isEnabled=!0,this.jl=this.api.getCurrentTime(),Wtw(this,this.jl),g.E3(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.qr=this.G(this.element,"wheel",this.BP),this.logVisibility(this.isEnabled))}; g.q.disable=function(){this.isEnabled=!1;this.hide();g.E3(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.qr&&this.YL(this.qr);this.logVisibility(this.isEnabled)}; g.q.reset=function(){this.disable();this.L=[];this.Mr=!1}; g.q.logVisibility=function(v){this.api.logVisibility(this.element,v);this.api.logVisibility(this.j,v);this.api.logVisibility(this.dismissButton,v);this.api.logVisibility(this.playButton,v)}; g.q.X4=function(){for(;this.X.length;){var v=void 0;(v=this.X.pop())==null||v.dispose()}g.F.prototype.X4.call(this)}; g.z(j6j,g.F);g.z(iwU,g.F);g.z(Gcm,g.F);g.z(L5,g.F);L5.prototype.ZZ=function(v){return v==="PLAY_PROGRESS"?this.U:v==="LOAD_PROGRESS"?this.K:v==="LIVE_BUFFER"?this.j:this.Z};VJL.prototype.update=function(v,J,G,K){G=G===void 0?0:G;this.width=J;this.L=G;this.T=J-G-(K===void 0?0:K);this.position=g.nk(v,G,G+this.T);this.Z=this.position-G;this.X=this.Z/this.T};g.z(YYw,g.F);g.z(g.Ow,g.t9);g.q=g.Ow.prototype; g.q.Ja=function(){var v=!1,J=this.api.getVideoData();if(!J)return v;this.api.RA("timedMarkerCueRange");EoL(this);for(var G=g.n(J.o$),K=G.next();!K.done;K=G.next()){K=K.value;var V=void 0,Y=(V=this.jl[K])==null?void 0:V.markerType;V=void 0;var r=(V=this.jl[K])==null?void 0:V.markers;if(!r)break;if(Y==="MARKER_TYPE_TIMESTAMPS"){v=g.n(r);for(Y=v.next();!Y.done;Y=v.next()){V=Y.value;Y=new YYw;r=void 0;Y.title=((r=V.title)==null?void 0:r.simpleText)||"";Y.timeRangeStartMillis=Number(V.startMillis);Y.T= Number(V.durationMillis);var E=r=void 0;Y.onActiveCommand=(E=(r=V.onActive)==null?void 0:r.innertubeCommand)!=null?E:void 0;IXr(this,Y)}hhX(this,this.K);v=this.K;Y=this.IR;V=[];r=null;for(E=0;Ee&&(r.end=e);e=jNB(e,e+D);V.push(e);r=e;Y[e.id]=v[E].onActiveCommand}}this.api.oR(V);this.E9=this.jl[K];v=!0}else if(Y==="MARKER_TYPE_HEATMAP"){K=this.jl[K];D=P=V=e=E=r=void 0;if(K&& K.markers){Y=(V=(D=K.markersMetadata)==null?void 0:(P=D.heatmapMetadata)==null?void 0:P.minHeightDp)!=null?V:0;V=(r=(e=K.markersMetadata)==null?void 0:(E=e.heatmapMetadata)==null?void 0:E.maxHeightDp)!=null?r:60;r=this.T.length;E=null;for(e=0;e=D&&h<=t&&P.push(I)}V>0&&(this.Ti.style.height= V+"px");D=this.L[e];t=P;I=Y;var R=V,T=e===0;T=T===void 0?!1:T;ooj(D,R);B=t;h=D.X;T=T===void 0?!1:T;var L=1E3/B.length,O=[];O.push({x:0,y:100});for(var x=0;x0&&(E=P[P.length-1])}g.Uw(this)}V=void 0;Y=[];if(K=(V=K.markersDecoration)==null?void 0:V.timedMarkerDecorations)for(K=g.n(K),V=K.next();!V.done;V=K.next())V=V.value,e=E=r=void 0,Y.push({visibleTimeRangeStartMillis:(r=V.visibleTimeRangeStartMillis)!=null?r:-1,visibleTimeRangeEndMillis:(E=V.visibleTimeRangeEndMillis)!=null?E:-1,decorationTimeMillis:(e=V.decorationTimeMillis)!= null?e:NaN,label:V.label?g.h9(V.label):""});K=Y;this.heatMarkersDecorations=K}}J.sY=this.K;g.E3(this.element,"ytp-timed-markers-enabled",v);return v}; g.q.E$=function(){g.Uw(this);S4(this);hhX(this,this.K);if(this.X){var v=g.dS(this.element).x||0;this.X.E$(v,this.j)}}; g.q.onClickCommand=function(v){if(v=g.N(v,vm)){var J=v.key;v.isVisible&&J&&s6s(this,J)}}; g.q.U1r=function(v){this.api.lw("innertubeCommand",this.IR[v.id])}; g.q.kL=function(){S4(this);var v=this.api.getCurrentTime();(vthis.clipEnd)&&this.UO()}; g.q.iR=function(v){if(!v.defaultPrevented){var J=!1;switch(v.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.C("enable_key_press_seek_logging")&&kA(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.C("enable_key_press_seek_logging")&&kA(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&&v.preventDefault()}}; g.q.Q5=function(v,J){this.updateVideoData(J,v==="newdata")}; g.q.sYl=function(){this.Q5("newdata",this.api.getVideoData())}; g.q.updateVideoData=function(v,J){J=J===void 0?!1:J;var G=!!v&&v.B1();if(G&&(JK(v)||Le8(this)?this.Bv=!1:this.Bv=v.allowLiveDvr,g.E3(this.api.getRootNode(),"ytp-enable-live-buffer",!(v==null||!JK(v))),this.api.C("enable_custom_playhead_parsing"))){var K,V,Y,r=g.N((K=v.getWatchNextResponse())==null?void 0:(V=K.playerOverlays)==null?void 0:(Y=V.playerOverlayRenderer)==null?void 0:Y.decoratedPlayerBarRenderer,LS);if(r==null?0:r.progressColor)for(K=0;K0;)this.L.pop().dispose();this.heatMarkersDecorations=[];this.o$={};var t;(t=this.X)==null||t.reset();HH(this);g.E3(this.api.getRootNode(),"ytp-fine-scrubbing-exp",wC(this))}else this.UO();this.Gv()}if(v){var B;t=((B=this.L0)==null?void 0:B.type)==="clips";if(B=!v.isLivePlayback){B=this.api.getVideoData();J=g.yE(B);G=PXm(B);var I;B=J!=null||G!=null&&G.length>0||((I=B.Ka)== null?void 0:I.length)>0}if(B&&!t){I=this.api.getVideoData();t=g.yE(I);B=!1;if(t==null?0:t.markersMap){B=this.api.getVideoData();var h;B.eM=((h=t.visibleOnLoad)==null?void 0:h.key)||B.eM;h=g.n(t.markersMap);for(t=h.next();!t.done;t=h.next())t=t.value,t.key&&t.value&&(this.o$[t.key]=t.value,t.value.onChapterRepeat&&(B.Rc=t.value.onChapterRepeat));B.eM!=null&&s6s(this,B.eM);B=!0}var R;if(((R=I.Ka)==null?void 0:R.length)>0){R=g.J3.getState().entities;h=g.n(I.Ka);for(t=h.next();!t.done;t=h.next())if(t= t.value,G=void 0,J=(G=$C(R,"macroMarkersListEntity",t))==null?void 0:G.markersList,E=G=void 0,((G=J)==null?void 0:G.markerType)==="MARKER_TYPE_TIMESTAMPS"||((E=J)==null?void 0:E.markerType)==="MARKER_TYPE_HEATMAP")this.jl[t]=J;B=this.Ja()||B}!B&&(R=PXm(I))&&(tJU(this,R),I.Q$=this.T,Dw8(this));yVf(this,null);v.Ll&&this.L.length===0&&(v=v.Ll,R=v.key,v.isVisible&&R&&s6s(this,R))}else rVm(this),EoL(this)}S4(this)}; g.q.Lil=function(v){this.U&&!g.H(v.state,32)&&this.api.getPresentingPlayerType()!==3&&this.U.cancel();var J;((J=this.X)==null?0:J.isEnabled)&&g.H(v.state,8)&&this.api.pauseVideo();v=this.api.getPresentingPlayerType()===2||!this.api.rK()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.E3(this.F5,"ytp-hide-scrubber-button",v)}; g.q.wl=function(v){var J=!!this.L0!==!!v,G=this.L0;this.L0=v;yVf(this,G);(v==null?void 0:v.type)!=="clips"&&v||(v?(this.updateValue("clipstarticon",dlF()),this.updateValue("clipendicon",dlF()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",PKs()),this.updateValue("clipendicon",eDX()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),J&&(this.updateVideoData(this.api.getVideoData(), !0),g.Uw(this)),cH(this));ux(this,this.N,this.Nr)}; g.q.Pie=function(v,J,G){var K=g.dS(this.element),V=mJ(this).T,Y=G?G.getAttribute("data-tooltip"):void 0,r=G?G.getAttribute("data-position"):void 0,E=G?G.getAttribute("data-offset-y"):void 0;E=E?Number(E):0;r&&(v=fd(this.Z,Number(G.getAttribute("data-position")),0)*V+g.dS(this.progressBar).x);this.WH.x=v-K.x;this.WH.y=J-K.y;v=mJ(this);G=Xd(this,v);J=0;var e;if((e=this.api.getVideoData())==null?0:JK(e))(e=this.api.getProgressState().seekableEnd)&&G>e&&(G=e,v.position=fd(this.Z,e)*mJ(this).T),J=this.Z.X; Le8(this)&&(J=this.Z.X);e=Y||g.T$(this.Bv?G-this.Z.T:G-J);J=v.position+this.Jm;G-=this.api.B$();var P;if((P=this.X)==null||!P.isEnabled)if(this.api.DM()){if(this.T.length>1){P=gC(this,this.WH.x,!0);if(!this.L0)for(K=0;K1)for(K=0;K0)for(P=this.WH.x,K=g.n(this.K),V=K.next();!V.done;V=K.next())V=V.value,r=xA(this,V.timeRangeStartMillis/ (this.Z.T*1E3),mJ(this)),g.E3(V.element,"ytp-timed-marker-hover",r<=P&&r+6>=P);K=this.tooltip.scale;E=(isNaN(E)?0:E)-45*K;this.api.C("web_key_moments_markers")?this.E9?(P=W5r(this.K,G*1E3),P=P!=null?this.K[P].title:""):(P=ix(this.T,G*1E3),P=this.T[P].title):(P=ix(this.T,G*1E3),P=this.T[P].title);P||(E+=16*K);this.tooltip.scale===.6&&(g.bh(this.api.B())?(E=this.api.f7().getPlayerSize().height-225,E=P?E+110:E+110+16):E=P?110:126);K=ix(this.T,G*1E3);this.dh=wCw(this,G,K)?K:wCw(this,G,K+1)?K+1:-1;g.E3(this.api.getRootNode(), "ytp-progress-bar-snap",this.dh!==-1&&this.T.length>1);K=!1;V=g.n(this.heatMarkersDecorations);for(r=V.next();!r.done;r=V.next()){r=r.value;var D=G*1E3;D>=r.visibleTimeRangeStartMillis&&D<=r.visibleTimeRangeEndMillis&&(P=r.label,e=g.T$(r.decorationTimeMillis/1E3),K=!0)}this.Xm!==K&&(this.Xm=K,this.api.logVisibility(this.qj,this.Xm));g.E3(this.api.getRootNode(),"ytp-progress-bar-decoration",K);K=160*this.tooltip.scale*2;V=P.length*(this.oY?8.55:5.7);V=V<=K?V:K;r=V<160*this.tooltip.scale;K=3;!r&&V/ 2>v.position&&(K=1);!r&&V/2>this.j-v.position&&(K=2);this.api.B().U&&(E-=10);this.L.length&&this.L[0].B1&&(E-=14*(this.oY?2:1),this.qr||(this.qr=!0,this.api.logVisibility(this.Ti,this.qr)));var t;if(wC(this)&&(((t=this.X)==null?0:t.isEnabled)||this.RY>0)){var B;E-=((B=this.X)==null?0:B.isEnabled)?ax(this):this.RY}t=void 0;wC(this)&&!this.api.C("web_player_hide_fine_scrubbing_edu")&&(t="Pull up for precise seeking",this.Mr||(this.Mr=!0,this.api.logVisibility(this.BO,this.Mr)));this.tooltip.yP(J,G, e,!!Y,E,P,K,t)}else this.tooltip.yP(J,G,e,!!Y,E);g.Vj(this.api.getRootNode(),"ytp-progress-bar-hover");pCX(this)}; g.q.iYH=function(){this.Gv();g.rz(this.api.getRootNode(),"ytp-progress-bar-hover");this.qr&&(this.qr=!1,this.api.logVisibility(this.Ti,this.qr));this.Mr&&(this.Mr=!1,this.api.logVisibility(this.BO,this.Mr))}; g.q.xjb=function(v,J){wC(this)&&this.X&&(this.X.Mr?p5(this.X,this.api.getCurrentTime()):$wB(this.X),this.X.show(),g.E3(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.X.isEnabled));this.G4&&(this.G4.dispose(),this.G4=null);this.Hw=J;this.Hv=this.api.getCurrentTime();this.T.length>1&&this.dh!==-1?this.api.seekTo(this.T[this.dh].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(Xd(this,mJ(this)),!1,void 0,void 0,7);g.Vj(this.element,"ytp-drag");(this.rJ=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}; g.q.OYb=function(){if(wC(this)&&this.X){var v=ax(this);this.RY>=v*.5?(this.X.enable(),p5(this.X,this.api.getCurrentTime()),XCU(this,v)):HH(this)}if(g.H(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var J;if((J=this.X)==null?0:J.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.T.length>1&&this.dh!==-1)this.api.C("html5_enable_progress_bar_slide_seek_logging")&&kA(this,this.Hv,this.T[this.dh].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.T[this.dh].startTime/1E3,void 0,void 0,void 0,7);else{v=Xd(this,mJ(this));this.api.C("html5_enable_progress_bar_slide_seek_logging")&&kA(this,this.Hv,v,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(v,void 0,void 0,void 0,7);J=g.n(this.heatMarkersDecorations);for(var G=J.next();!G.done;G=J.next())G=G.value,v*1E3>=G.visibleTimeRangeStartMillis&&v*1E3<=G.visibleTimeRangeEndMillis&& this.api.logClick(this.qj)}g.rz(this.element,"ytp-drag");this.rJ&&!g.H(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.q.WUH=function(v,J){v=mJ(this);v=Xd(this,v);this.api.seekTo(v,!1,void 0,void 0,7);var G;wC(this)&&((G=this.X)==null?0:G.Mr)&&(p5(this.X,v),this.X.isEnabled||(G=ax(this),this.RY=g.nk(this.Hw-J-10,0,G),XCU(this,this.RY)))}; g.q.Gv=function(){this.tooltip.Pg()}; g.q.YY=function(){this.L0||(this.updateValue("clipstarticon",Eq2()),this.updateValue("clipendicon",Eq2()),g.Vj(this.element,"ytp-clip-hover"))}; g.q.n2=function(){this.L0||(this.updateValue("clipstarticon",PKs()),this.updateValue("clipendicon",eDX()),g.rz(this.element,"ytp-clip-hover"))}; g.q.UO=function(){this.clipStart=0;this.clipEnd=Infinity;cH(this);ux(this,this.N,this.Nr)}; g.q.y3h=function(v){v=g.n(v);for(var J=v.next();!J.done;J=v.next())if(J=J.value,J.visible){var G=J.getId();if(!this.YB[G]){var K=g.qh("DIV");J.tooltip&&K.setAttribute("data-tooltip",J.tooltip);this.YB[G]=J;this.R$[G]=K;g.Jz(K,J.style);Oww(this,G);this.api.B().C("disable_ad_markers_on_content_progress_bar")||this.T[0].L.appendChild(K)}}else go2(this,J)}; g.q.zdl=function(v){v=g.n(v);for(var J=v.next();!J.done;J=v.next())go2(this,J.value)}; g.q.lU=function(v){this.X&&(this.X.onExit(v!=null),HH(this))}; g.q.mj=function(v){this.X&&(this.X.play(v!=null),HH(this))}; g.q.qJB=function(){kc2(this,this.api.rK())}; g.q.X4=function(){kc2(this,!1);g.t9.prototype.X4.call(this)};g.z(Mg,g.F);Mg.prototype.isActive=function(){return!!this.S.getOption("remote","casting")}; Mg.prototype.De=function(){var v=!1;this.S.getOptions().includes("remote")&&(v=this.S.getOption("remote","receivers").length>1);this.tP(v&&this.S.f7().getPlayerSize().width>=400);this.S.logVisibility(this.element,this.TG);var J=1;v&&this.isActive()&&(J=2);if(this.T!==J){this.T=J;switch(J){case 1:this.updateValue("icon",{Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{Y:"path",Xu:!0,V:{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.qTU())}g.E3(this.element,"ytp-remote-button-active",this.isActive())}}; Mg.prototype.X=function(){if(this.S.getOption("remote","quickCast"))this.S.setOption("remote","quickCast",!0);else{var v=this.Mi,J=this.element;if(v.wG())v.FO();else{v.initialize();a:{var G=g.n(v.eK.items);for(var K=G.next();!K.done;K=G.next())if(K=K.value,K.priority===1){G=K;break a}G=null}G&&(G.open(),v.xL(J));v.xL(J)}}this.S.logClick(this.element)};g.z(Q0,g.F);Q0.prototype.T=function(v){var J=this.S.B(),G=400;this.S.C("web_player_small_hbp_settings_menu")&&J.j?G=300:J.U&&(G=200);v=this.X&&v.width>=G;this.tP(v);this.S.C("embeds_use_parent_visibility_in_ve_logging")?this.S.logVisibility(this.element,v&&this.J):this.S.logVisibility(this.element,v)}; Q0.prototype.Z=function(){if(this.Mi.TG)this.Mi.FO();else{var v=g.Bv(this.S.c$());v&&!v.loaded&&(v.jJ("tracklist",{includeAsr:!0}).length||v.load());this.S.logClick(this.element);this.Mi.xL(this.element)}}; Q0.prototype.updateBadge=function(){var v=this.S.isHdr(),J=this.S.getPresentingPlayerType(),G=J!==2&&J!==3,K=g.um(this.S),V=G&&!!g.Zw(this.S.c$());J=V&&K.displayMode===1;K=V&&K.displayMode===2;G=(V=J||K)||!G?null:this.S.getPlaybackQuality();g.E3(this.element,"ytp-hdr-quality-badge",v);g.E3(this.element,"ytp-hd-quality-badge",!v&&(G==="hd1080"||G==="hd1440"));g.E3(this.element,"ytp-4k-quality-badge",!v&&G==="hd2160");g.E3(this.element,"ytp-5k-quality-badge",!v&&G==="hd2880");g.E3(this.element,"ytp-8k-quality-badge", !v&&G==="highres");g.E3(this.element,"ytp-3d-badge-grey",!v&&V&&J);g.E3(this.element,"ytp-3d-badge",!v&&V&&K)};g.z(WH,Yw);WH.prototype.isLoaded=function(){var v=g.sD(this.S.c$());return v!==void 0&&v.loaded}; WH.prototype.De=function(){g.sD(this.S.c$())!==void 0&&this.S.getPresentingPlayerType()!==3?this.T||(this.Mi.Dv(this),this.T=!0):this.T&&(this.Mi.NI(this),this.T=!1);rm(this,this.isLoaded())}; WH.prototype.onSelect=function(v){this.isLoaded();v?this.S.loadModule("annotations_module"):this.S.unloadModule("annotations_module");this.S.publish("annotationvisibility",v)}; WH.prototype.X4=function(){this.T&&this.Mi.NI(this);Yw.prototype.X4.call(this)};g.z(C5,g.Uq);C5.prototype.De=function(){var v=this.S.getAvailableAudioTracks();v.length>1?(this.zk(g.yn(v,this.T)),this.tracks=g.D6(v,this.T,this),this.countLabel.H1(v.length?" ("+v.length+")":""),this.publish("size-change"),this.SJ(this.T(this.S.getAudioTrack())),this.enable(!0)):this.enable(!1)}; C5.prototype.jf=function(v){g.Uq.prototype.jf.call(this,v);this.S.setAudioTrack(this.tracks[v]);this.Mi.q5()}; C5.prototype.T=function(v){return v.toString()};g.z(bx,Yw); bx.prototype.X=function(){var v=this.S.getPresentingPlayerType();if(v!==2&&v!==3&&g.X5(this.S))this.T||(this.Mi.Dv(this),this.T=!0,this.Z.push(this.G(this.S,"videodatachange",this.X)),this.Z.push(this.G(this.S,"videoplayerreset",this.X)),this.Z.push(this.G(this.S,"onPlaylistUpdate",this.X)),this.Z.push(this.G(this.S,"autonavchange",this.L)),v=this.S.getVideoData(),this.L(v.autonavState),this.S.logVisibility(this.element,this.T));else if(this.T){this.Mi.NI(this);this.T=!1;v=g.n(this.Z);for(var J=v.next();!J.done;J= v.next())this.YL(J.value)}}; bx.prototype.L=function(v){rm(this,v!==1)}; bx.prototype.onSelect=function(v){this.S.rI(v?2:1);this.T&&(this.S.logVisibility(this.element,this.T),this.S.logClick(this.element))}; bx.prototype.X4=function(){this.T&&this.Mi.NI(this);Yw.prototype.X4.call(this)};g.z(NVr,g.Cm);NVr.prototype.onClick=function(v){v.preventDefault();var J,G;(J=g.zT(this.S))==null||(G=J.HV())==null||G.FO();var K,V;(K=g.zT(this.S))==null||(V=K.jt())==null||V.xL(v.target)};g.z(aXm,g.Uq);g.q=aXm.prototype; g.q.rA=function(){var v=this.S.getPresentingPlayerType();if(v!==2&&v!==3){this.dh=this.S.tJ();v=this.S.getAvailableQualityLevels();if(this.T){this.L={};var J=g.Dw(this.S,"getAvailableQualityData",[]);J=g.n(J);for(var G=J.next();!G.done;G=J.next())G=G.value,this.L[G.qualityLabel]=G;J=Object.keys(this.L);v[v.length-1]==="auto"&&J.push("auto");this.Ze=new Set(v)}else if(this.j){G=g.Dw(this.S,"getAvailableQualityData",[]);J=[];G=g.n(G);for(var K=G.next();!K.done;K=G.next())K=K.value,this.N[K.quality]= K,K.quality&&J.push(K.quality);v[v.length-1]==="auto"&&J.push("auto")}else J=v;g.cXm(this.S)&&this.S.b4()&&J.unshift("missing-qualities");N2U(this.S)&&J.unshift("inline-survey");this.zk(J);v=this.S.getVideoData().cotn?!0:!1;G=this.Ti.B8();G=!g.bh(this.S.B())||!(v===void 0?0:v)||!(G===void 0||G);v=this.X;G=G===void 0?!1:G;v.yV&&g.E3(v.p7("ytp-panel-footer"),"ytp-panel-hide-footer",G===void 0?!1:G);if(J.length){this.EE();this.enable(!0);return}}this.enable(!1)}; g.q.EE=function(){if(this.T){var v=this.S.getPreferredQuality();this.Ze.has(v)&&(this.K=this.S.getPlaybackQuality(),this.oY=this.S.getPlaybackQualityLabel(),v==="auto"?(this.SJ(v),this.H1(this.UA(v))):this.SJ(this.oY))}else v=this.S.getPreferredQuality(),this.options[v]&&(this.K=this.S.getPlaybackQuality(),this.SJ(v),v==="auto"&&this.H1(this.UA(v)))}; g.q.jf=function(v){if(v!=="missing-qualities"){g.Uq.prototype.jf.call(this,v);var J=this.T?this.L[v]:this.N[v];var G=J==null?void 0:J.quality,K=J==null?void 0:J.formatId,V=J==null?void 0:J.paygatedQualityDetails;J=V==null?void 0:V.endpoint;if(V){var Y;V=(Y=this.options[v])==null?void 0:Y.element;this.S.logClick(V)}if(this.T){var r,E;if((r=g.N(J,g.U_U))==null?0:(E=r.popup)==null?0:E.notificationActionRenderer)this.S.lw("innertubeCommand",J);else if(J){this.S.lw("innertubeCommand",J);return}K?this.S.setPlaybackQuality(G, K):this.S.setPlaybackQuality(G)}else{if(this.j){var e,P;if((e=g.N(J,g.U_U))==null?0:(P=e.popup)==null?0:P.notificationActionRenderer)this.S.lw("innertubeCommand",J);else if(J){this.S.lw("innertubeCommand",J);return}}this.S.setPlaybackQuality(v)}this.Mi.FO();this.rA()}}; g.q.open=function(){for(var v=g.n(Object.values(this.options)),J=v.next();!J.done;J=v.next()){J=J.value;var G=void 0;this.S.hasVe((G=J)==null?void 0:G.element)&&(G=void 0,this.S.logVisibility((G=J)==null?void 0:G.element,!0))}g.Uq.prototype.open.call(this);this.S.logClick(this.element)}; g.q.BN=function(v,J,G){var K=this;if(v==="missing-qualities")return new g.Cm({Y:"a",n7:["ytp-menuitem"],V:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.S.B().N,tabindex:"0",role:"menuitemradio"},W:[{Y:"div",n7:["ytp-menuitem-label"],At:"{{label}}"}]},J,this.UA(v));if(v!=="inline-survey"){var V,Y=(V=this.T?this.L[v]:this.N[v])==null?void 0:V.paygatedQualityDetails;V=Y==null?void 0:Y.veType;Y=Y==null?void 0:Y.trackingParams;J=g.Uq.prototype.BN.call(this,v,J,G);Y?(this.S.createServerVe(J.element, this,!0),this.S.setTrackingParams(J.element,Y)):V&&this.S.createClientVe(J.element,this,V,!0);return J}v=[{Y:"span",At:"Look good?"}];G=g.n([!0,!1]);Y=G.next();for(V={};!Y.done;V={Wg:void 0},Y=G.next())V.Wg=Y.value,Y=new g.F({Y:"span",D:"ytp-menuitem-inline-survey-response",W:[V.Wg?nqt():tQw()],V:{tabindex:"0",role:"button"}}),Y.listen("click",function(r){return function(){var E=K.S.app.zi();E&&(E.uw("iqsr",{tu:r.Wg}),E.getVideoData().Dw=!0);K.Mi.FO();K.rA()}}(V)),v.push(Y); return new g.Cm({Y:"div",D:"ytp-menuitem",V:{"aria-disabled":"true"},W:[{Y:"div",n7:["ytp-menuitem-label"],W:v}]},J)}; g.q.UA=function(v,J){J=J===void 0?!1:J;if(v==="missing-qualities")return{Y:"div",At:"Missing options?"};if(v==="inline-survey")return"";var G=this.j||this.T?[HwX(this,v,J,!1)]:[Fej(this,v)];var K=this.S.getPreferredQuality();J||K!=="auto"||v!=="auto"||(G.push(" "),this.T?G.push(HwX(this,this.oY,J,!0,["ytp-menu-label-secondary"])):this.j?G.push(HwX(this,this.K,J,!0,["ytp-menu-label-secondary"])):G.push(Fej(this,this.K,["ytp-menu-label-secondary"])));return{Y:"div",W:G}};g.z(jt,g.F);jt.prototype.init=function(){this.updateValue("minvalue",this.j);this.updateValue("maxvalue",this.K);this.updateValue("stepvalue",this.U);this.updateValue("slidervalue",this.T);MJL(this,this.T)}; jt.prototype.L=function(){iH(this,Number(this.X.value));this.X.focus()}; jt.prototype.Z=function(v){if(!v.defaultPrevented){switch(v.code){case "ArrowDown":v=-this.U;break;case "ArrowUp":v=this.U;break;default:return}iH(this,Math.min(this.K,Math.max(Number((this.T+v).toFixed(2)),this.j)))}};g.z($F,jt);$F.prototype.L=function(){jt.prototype.L.call(this);this.N&&Q6U(this)}; $F.prototype.dh=function(){this.oY()}; $F.prototype.Ti=function(){this.S.setPlaybackRate(this.T,!0)}; $F.prototype.Z=function(v){jt.prototype.Z.call(this,v);this.oY();Q6U(this);v.preventDefault()};g.z(vU,g.F);g.q=vU.prototype;g.q.init=function(){this.zq(this.T);this.updateValue("minvalue",this.X);this.updateValue("maxvalue",this.Z)}; g.q.lR=function(v){if(!v.defaultPrevented){switch(v.keyCode){case 37:case 40:var J=-this.U;break;case 39:case 38:J=this.U;break;default:return}this.zq(this.T+J);v.preventDefault()}}; g.q.PP=function(v){var J=this.T;J+=(v.deltaX||-v.deltaY)<0?-this.N:this.N;this.zq(J);v.preventDefault()}; g.q.WP=function(v){v=(v-g.dS(this.L).x)/this.oY*this.range+this.X;this.zq(v)}; g.q.zq=function(v,J){J=J===void 0?"":J;v=g.nk(v,this.X,this.Z);J===""&&(J=v.toString());this.updateValue("valuenow",v);this.updateValue("valuetext",J);this.Ti.style.left=(v-this.X)/this.range*(this.oY-this.Mr)+"px";this.T=v}; g.q.focus=function(){this.qr.focus()};g.z(Jb,vU);Jb.prototype.dh=function(){this.S.setPlaybackRate(this.T,!0)}; Jb.prototype.zq=function(v){vU.prototype.zq.call(this,v,CX2(this,v).toString());this.j&&(Wer(this),this.Ze())}; Jb.prototype.updateValues=function(){var v=this.S.getPlaybackRate();CX2(this,this.T)!==v&&(this.zq(v),Wer(this))};g.z(bwm,g.t9);bwm.prototype.focus=function(){this.T.focus()};g.z(jar,nD);g.z(iK8,g.Uq);g.q=iK8.prototype;g.q.UA=function(v){return v==="1"?"Normal":v.toLocaleString()}; g.q.De=function(){var v,J=(v=this.S.getVideoData())==null?void 0:v.i9();v=this.S.getPresentingPlayerType(J);this.enable(v!==2&&v!==3);JTj(this)}; g.q.zk=function(v){g.Uq.prototype.zk.call(this,v);this.K&&this.K.X.focus()}; g.q.S2=function(v){g.Uq.prototype.S2.call(this,v);v?(this.oY=this.G(this.S,"onPlaybackRateChange",this.onPlaybackRateChange),JTj(this),$Pw(this,this.S.getPlaybackRate())):(this.YL(this.oY),this.oY=null)}; g.q.onPlaybackRateChange=function(v){var J=this.S.getPlaybackRate();!this.L&&this.N.includes(J)||v78(this,J);$Pw(this,v)}; g.q.BN=function(v,J,G){return v===this.T&&Ggt(this.S)?g.Uq.prototype.BN.call(this,v,J,G,{Y:"div",D:"ytp-speed-slider-menu-footer",W:[this.K]}):g.Uq.prototype.BN.call(this,v,J,G)}; g.q.jf=function(v){g.Uq.prototype.jf.call(this,v);v===this.T?this.S.setPlaybackRate(this.j,!0):this.S.setPlaybackRate(Number(v),!0);Ggt(this.S)&&v===this.T||this.Mi.q5()}; g.q.Bz=function(v){var J=v===this.T;this.L=!1;J&&Gk(this.S)&&!Ggt(this.S)?(v=new jar(this.S),g.lT(this.Mi,v)):g.Uq.prototype.Bz.call(this,v)};g.z(KAL,g.Uq);g.q=KAL.prototype;g.q.SJ=function(v){g.Uq.prototype.SJ.call(this,v)}; g.q.Hp=function(v){return v.option.toString()}; g.q.getOption=function(v){return this.settings[v]}; g.q.UA=function(v){return this.getOption(v).text||""}; g.q.jf=function(v){g.Uq.prototype.jf.call(this,v);this.publish("settingChange",this.setting,this.settings[v].option)};g.z(Ks,g.d1);Ks.prototype.OJ=function(v){for(var J=g.n(Object.keys(v)),G=J.next();!G.done;G=J.next()){var K=G.value;if(G=this.BD[K]){var V=v[K].toString();K=!!v[K+"Override"];G.options[V]&&(G.SJ(V),G.L.element.setAttribute("aria-checked",String(!K)),G.T.element.setAttribute("aria-checked",String(K)))}}}; Ks.prototype.dE=function(v,J){this.publish("settingChange",v,J)};g.z(Vs,g.Uq);Vs.prototype.T=function(v){return v.languageCode}; Vs.prototype.UA=function(v){return this.languages[v].languageName||""}; Vs.prototype.jf=function(v){this.publish("select",v);this.S.logClick(this.element);g.TS(this.Mi)};g.z(rTB,g.Uq);g.q=rTB.prototype;g.q.xf=function(v){return g.Xb(v)?"__off__":v.displayName}; g.q.UA=function(v){return v==="__off__"?"Off":v==="__translate__"?"Auto-translate":v==="__contribute__"?"Add subtitles/CC":v==="__correction__"?"Suggest caption corrections":(v==="__off__"?{}:this.tracks[v]).displayName}; g.q.jf=function(v){if(v==="__translate__")this.T.open();else if(v==="__contribute__"){this.S.pauseVideo();this.S.isFullscreen()&&this.S.toggleFullscreen();var J=g.gt(this.S.B(),this.S.getVideoData());g.Ak(J)}else if(v==="__correction__"){this.S.pauseVideo();this.S.isFullscreen()&&this.S.toggleFullscreen();var G=qJs(this);YF(this,G);g.Uq.prototype.jf.call(this,this.xf(G));var K,V;G=(J=this.S.getVideoData().getPlayerResponse())==null?void 0:(K=J.captions)==null?void 0:(V=K.playerCaptionsTracklistRenderer)== null?void 0:V.openTranscriptCommand;this.S.lw("innertubeCommand",G);this.Mi.q5();this.L&&this.S.logClick(this.L)}else{if(v==="__correction__"){this.S.pauseVideo();this.S.isFullscreen()&&this.S.toggleFullscreen();J=qJs(this);YF(this,J);g.Uq.prototype.jf.call(this,this.xf(J));var Y,r;J=(G=this.S.getVideoData().getPlayerResponse())==null?void 0:(Y=G.captions)==null?void 0:(r=Y.playerCaptionsTracklistRenderer)==null?void 0:r.openTranscriptCommand;this.S.lw("innertubeCommand",J)}else this.S.logClick(this.element), YF(this,v==="__off__"?{}:this.tracks[v]),g.Uq.prototype.jf.call(this,v);this.Mi.q5()}}; g.q.De=function(){var v=this.S.getOptions();v=v&&v.indexOf("captions")!==-1;var J=this.S.getVideoData(),G=J&&J.bU,K,V=!((K=this.S.getVideoData())==null||!g.im(K));K={};if(v||G){var Y;if(v){var r=this.S.getOption("captions","track");K=this.S.getOption("captions","tracklist",{includeAsr:!0});var E=V?[]:this.S.getOption("captions","translationLanguages");this.tracks=g.D6(K,this.xf,this);V=g.yn(K,this.xf);var e,P;qJs(this)&&((Y=J.getPlayerResponse())==null?0:(e=Y.captions)==null?0:(P=e.playerCaptionsTracklistRenderer)== null?0:P.openTranscriptCommand)&&V.push("__correction__");if(E.length&&!g.Xb(r)){if((Y=r.translationLanguage)&&Y.languageName){var D=Y.languageName;Y=E.findIndex(function(t){return t.languageName===D}); GAU(E,Y)}VLt(this.T,E);V.push("__translate__")}Y=this.xf(r)}else this.tracks={},V=[],Y="__off__";V.unshift("__off__");this.tracks.__off__={};G&&V.unshift("__contribute__");this.tracks[Y]||(this.tracks[Y]=r,V.push(Y));this.zk(V);this.SJ(Y);r&&r.translationLanguage?this.T.SJ(this.T.T(r.translationLanguage)):Ad8(this.T);v&&this.j.OJ(this.S.getSubtitlesUserSettings());this.countLabel.H1(K&&K.length?" ("+K.length+")":"");this.publish("size-change");this.S.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.q.VX=function(v){var J=this.S.getOption("captions","track");J=g.Ni(J);J.translationLanguage=this.T.languages[v];YF(this,J)}; g.q.dE=function(v,J){if(v==="reset")this.S.resetSubtitlesUserSettings();else{var G={};G[v]=J;this.S.updateSubtitlesUserSettings(G)}YJX(this,!0);this.K.start();this.j.OJ(this.S.getSubtitlesUserSettings())}; g.q.yIh=function(v){v||g.b4(this.K)}; g.q.X4=function(){g.b4(this.K);g.Uq.prototype.X4.call(this)}; g.q.open=function(){g.Uq.prototype.open.call(this);this.options.__correction__&&!this.L&&(this.L=this.options.__correction__.element,this.S.createClientVe(this.L,this,167341),this.S.logVisibility(this.L,!0))};g.z(E7m,g.R4);g.q=E7m.prototype; g.q.initialize=function(){if(!this.isInitialized){var v=this.S.B();this.isInitialized=!0;try{this.Cp=new aXm(this.S,this)}catch(G){g.Zl(Error("QualityMenuItem creation failed"))}g.k(this,this.Cp);var J=new rTB(this.S,this);g.k(this,J);v.Z||(J=new WH(this.S,this),g.k(this,J));v.enableSpeedOptions&&(J=new iK8(this.S,this),g.k(this,J));(g.Of(v)||v.j)&&(v.X||v.Gi)&&(J=new NVr(this.S,this),g.k(this,J));v.Mj&&!v.C("web_player_move_autonav_toggle")&&(v=new bx(this.S,this),g.k(this,v));v=new C5(this.S,this); g.k(this,v);this.S.publish("settingsMenuInitialized");cVw(this.settingsButton,this.eK.CF())}}; g.q.Dv=function(v){this.initialize();this.eK.Dv(v);cVw(this.settingsButton,this.eK.CF())}; g.q.NI=function(v){this.TG&&this.eK.CF()<=1&&this.hide();this.eK.NI(v);cVw(this.settingsButton,this.eK.CF())}; g.q.xL=function(v){this.initialize();this.eK.CF()>0&&g.R4.prototype.xL.call(this,v)}; g.q.FO=function(){this.ol?this.ol=!1:g.R4.prototype.FO.call(this)}; g.q.show=function(){g.R4.prototype.show.call(this);g.Vj(this.S.getRootNode(),"ytp-settings-shown")}; g.q.hide=function(){g.R4.prototype.hide.call(this);g.rz(this.S.getRootNode(),"ytp-settings-shown")}; g.q.ML=function(v){this.S.logVisibility(this.element,v);this.S.publish("settingsMenuVisibilityChanged",v)};g.z(PJt,g.F);g.q=PJt.prototype;g.q.onClick=function(){if(DPr(this)&&(this.S.toggleSubtitles(),this.S.logClick(this.element),!this.isEnabled())){var v=!1,J=g.Nk(g.c8(),65);g.bh(this.S.B())&&J!=null&&(v=!J);v&&this.S.B().C("web_player_nitrate_promo_tooltip")&&this.S.publish("showpromotooltip",this.element)}}; g.q.I6H=function(v){var J,G;(J=g.zT(this.S))==null||(G=J.HV())==null||G.xL(v)}; g.q.isEnabled=function(){return!!this.S.getOption("captions","track").displayName}; g.q.De=function(){var v=DPr(this),J=300;this.S.B().U&&(J=480);if(this.S.B().j){this.updateValue("title",g.yh(this.S,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var G=v}else{if(v)(G=this.p7("ytp-subtitles-button-icon"))==null||G.setAttribute("fill-opacity","1"),this.updateValue("title",g.yh(this.S,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var K;(K=this.p7("ytp-subtitles-button-icon"))== null||K.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}G=!0}this.tooltip.J3();G=G&&this.S.f7().getPlayerSize().width>=J;this.tP(G);this.S.C("embeds_use_parent_visibility_in_ve_logging")?this.S.logVisibility(this.element,G&&this.J):this.S.logVisibility(this.element,G);v?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.q.I$=function(v){g.F.prototype.I$.call(this,v);this.S.B().C("embeds_use_parent_visibility_in_ve_logging")&&this.S.logVisibility(this.element,this.TG&&v)};g.z(g.rL,g.F);g.q=g.rL.prototype; g.q.kL=function(){var v=this.api.f7().getPlayerSize().width,J=this.N;this.api.B().U&&(J=400);J=v>=J&&(!qn(this)||!g.H(this.api.getPlayerStateObject(),64));this.tP(J);g.E3(this.element,"ytp-time-display-allow-autohide",J&&v<400);v=this.api.getProgressState();if(J){J=this.api.getPresentingPlayerType();var G=this.api.getCurrentTime(J,!1);this.X&&(G-=v.airingStart);E7(this)&&(G-=this.L0.startTimeMs/1E3);E7(this)||qn(this)||!this.Z||(G-=this.api.getDuration(J,!1));G=g.T$(G);this.L!==G&&(this.updateValue("currenttime", G),this.L=G);J=E7(this)?g.T$((this.L0.endTimeMs-this.L0.startTimeMs)/1E3):g.T$(this.api.getDuration(J,!1));this.j!==J&&(this.updateValue("duration",J),this.j=J)}tLj(this,v.isAtLiveHead);B$j(this,this.api.getLoopRange())}; g.q.onLoopRangeChange=function(v){var J=this.L0!==v;this.L0=v;J&&(this.kL(),Inm(this))}; g.q.WWh=function(){this.api.setLoopRange(null)}; g.q.yPb=function(){this.Z=!this.Z;this.kL()}; g.q.onVideoDataChange=function(v,J,G){this.updateVideoData((this.api.B().C("enable_topsoil_wta_for_halftime")||this.api.B().C("enable_topsoil_wta_for_halftime_live_infra"))&&G===2?this.api.getVideoData(1):J);this.kL();Inm(this)}; g.q.updateVideoData=function(v){this.vy=v.isLivePlayback&&!v.Nr;this.X=JK(v);this.isPremiere=v.isPremiere;g.E3(this.element,"ytp-live",qn(this))}; g.q.onClick=function(v){v.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.q.X4=function(){this.T&&this.T();g.F.prototype.X4.call(this)};g.z(zlw,g.F);g.q=zlw.prototype;g.q.AY=function(){var v=this.api.XQ();this.Z!==v&&(this.Z=v,hlw(this,this.api.getVolume(),this.api.isMuted()))}; g.q.uK=function(v){this.tP(v.width>=350)}; g.q.EM=function(v){if(!v.defaultPrevented){var J=v.keyCode,G=null;J===37?G=this.volume-5:J===39?G=this.volume+5:J===36?G=0:J===35&&(G=100);G!==null&&(G=g.nk(G,0,100),G===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(G)),v.preventDefault())}}; g.q.fM=function(v){var J=v.deltaX||-v.deltaY;v.deltaMode?this.api.setVolume(this.volume+(J<0?-10:10)):this.api.setVolume(this.volume+g.nk(J/10,-10,10));v.preventDefault()}; g.q.JIi=function(){et(this,this.T,!0,this.X,this.api.Xf());this.N=this.volume;this.api.isMuted()&&this.api.unMute()}; g.q.wx=function(v){var J=this.Z?78:52,G=this.Z?18:12;v-=g.dS(this.U).x;this.api.setVolume(g.nk((v-G/2)/(J-G),0,1)*100)}; g.q.jRH=function(){et(this,this.T,!1,this.X,this.api.Xf());this.volume===0&&(this.api.mute(),this.api.setVolume(this.N))}; g.q.onVolumeChange=function(v){hlw(this,v.volume,v.muted)}; g.q.qH=function(){et(this,this.T,this.isDragging,this.X,this.api.Xf())}; g.q.X4=function(){g.F.prototype.X4.call(this);g.rz(this.K,"ytp-volume-slider-active")};g.z(PU,jt);PU.prototype.onVolumeChange=function(v){if(this.N)this.N=!1;else{var J=v.volume;J===0||v.muted?iH(this,0):iH(this,J)}}; PU.prototype.L=function(){jt.prototype.L.call(this);this.oY(this.T)}; PU.prototype.Z=function(v){jt.prototype.Z.call(this,v);this.oY(this.T)}; PU.prototype.Ti=function(v,J){this.N=!0;v===0||J?this.S.mute():(this.S.isMuted()&&this.S.unMute(),this.S.setVolume(v))};g.z(n7U,g.F);g.z(Da,g.F); Da.prototype.onVideoDataChange=function(){var v=this.api.B();this.E$();this.visible=!!this.api.getVideoData().videoId&&!g.GT(this.api.getVideoData(1));this.tP(this.visible);this.api.logVisibility(this.element,this.visible&&this.J);if(this.visible){var J=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",J)}v.Z&&(this.T&&(this.YL(this.T),this.T=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Vj(this.element,"no-link")); J=this.api.B();v=this.api.getVideoData();var G="";J.Z||(J=g.HL(J),J.indexOf("www.")===0&&(J=J.substring(4)),G=g.Km(v)?"Watch on YouTube Music":J==="youtube.com"?"Watch on YouTube":g.h6("Watch on $WEBSITE",{WEBSITE:J}));this.updateValue("title",G)}; Da.prototype.onClick=function(v){this.api.C("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var J=this.api.B(),G=this.api.getVideoUrl(!g.pd(v),!1,!0,!0);if(g.Of(J)){var K={};g.Of(J)&&g.Dw(this.api,"addEmbedsConversionTrackingParams",[K]);G=g.vt(G,K)}g.Ev(G,this.api,v);this.api.C("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Da.prototype.E$=function(){var v={Y:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},W:[{Y:"path",Xu:!0,D:"ytp-svg-fill",V:{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,G=this.api.getVideoData();this.api.isEmbedsShortsMode()?v={Y:"svg",V:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},W:[{Y:"path",V:{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.Km(G)&&(v={Y:"svg",V:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},W:[{Y:"path",V:{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"}},{Y:"path",V:{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"}},{Y:"path",V:{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"}},{Y:"path",V:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{Y:"path",V:{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"}},{Y:"path",V:{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"}},{Y:"path",V:{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"}},{Y:"path",V:{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"}},{Y:"path",V:{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"}},{Y:"path",V:{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"}},{Y:"path",V:{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"}},{Y:"path",V:{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.Km(G)?g.Vj(this.element,"ytp-youtube-music-button"):g.rz(this.element,"ytp-youtube-music-button");v.V=Object.assign({},v.V,{"aria-hidden":"true"});this.updateValue("logoSvg",v);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,J,!0)}; Da.prototype.I$=function(v){g.F.prototype.I$.call(this,v);this.api.logVisibility(this.element,this.visible&&v)};g.z(Rlw,g.Zs);g.q=Rlw.prototype;g.q.V9=function(){if(this.S.C("web_player_max_seekable_on_ended")||!g.H(this.S.getPlayerStateObject(),2))this.progressBar.kL(),this.qr.kL()}; g.q.zs=function(){this.A9();if(this.oK.X)this.V9();else if(this.progressBar.Gv(),this.S.C("delhi_modern_web_player")){var v;(v=this.j)==null||dPj(v,!1)}}; g.q.H5=function(){this.V9();this.N.start()}; g.q.A9=function(){var v;if(v=!this.S.B().X){v=this.progressBar;var J=2*g.CY()*v.j;v=v.Z.getLength()*1E3/v.api.getPlaybackRate()/J<300}v=v&&this.S.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;J=!v;this.oK.X||(v=J=!1);J?this.dh||(this.dh=this.G(this.S,"progresssync",this.V9)):this.dh&&(this.YL(this.dh),this.dh=null);v?this.N.isActive()||this.N.start():this.N.stop()}; g.q.E$=function(){var v=this.S.XQ(),J=this.S.f7().getPlayerSize(),G=T$X(this),K=Math.max(J.width-G*2,100);if(this.wh!==J.width||this.Nr!==v){this.wh=J.width;this.Nr=v;var V=pPB(this);this.L.element.style.width=V+"px";this.L.element.style.left=G+"px";g.u3j(this.progressBar,G,V,v);this.S.Z6().oh=V}G=this.Z;K=Math.min(570*(v?1.5:1),K);v=Math.min(413*(v?1.5:1),Math.round((J.height-IO(this))*.82));G.maxWidth=K;G.maxHeight=v;G.TQ();this.A9();this.S.B().C("html5_player_dynamic_bottom_gradient")&&xcX(this.WH, J.height)}; g.q.onVideoDataChange=function(){var v=this.S.getVideoData();this.RY.style.background=v.aR?v.ST:"";this.Ti&&gjr(this.Ti,v.showSeekingControls);this.oY&&gjr(this.oY,v.showSeekingControls)}; g.q.ZZ=function(){return this.L.element};g.z(LAF,zS);g.q=LAF.prototype;g.q.wN=function(v){v.target!==this.dismissButton.element&&(this.onClickCommand&&this.S.lw("innertubeCommand",this.onClickCommand),this.WD())}; g.q.WD=function(){this.enabled=!1;this.N.hide()}; g.q.onVideoDataChange=function(v,J){v==="dataloaded"&&yTs(this);v=[];var G,K,V,Y;if(J=(Y=g.N((G=J.getWatchNextResponse())==null?void 0:(K=G.playerOverlays)==null?void 0:(V=K.playerOverlayRenderer)==null?void 0:V.suggestedActionsRenderer,V1m))==null?void 0:Y.suggestedActions)for(G=g.n(J),K=G.next();!K.done;K=G.next())(K=g.N(K.value,YKY))&&g.N(K.trigger,KrA)&&v.push(K);if(v.length!==0){G=[];v=g.n(v);for(K=v.next();!K.done;K=v.next())if(K=K.value,V=g.N(K.trigger,KrA))Y=(Y=K.title)?g.h9(Y):"View Chapters", J=V.timeRangeStartMillis,V=V.timeRangeEndMillis,J!=null&&V!=null&&K.tapCommand&&(G.push(new g.o8(J,V,{priority:9,namespace:"suggested_action_button_visible",id:Y})),this.suggestedActions[Y]=K.tapCommand);this.S.oR(G)}}; g.q.Bt=function(){return this.enabled}; g.q.ML=function(){this.enabled?this.jl.start():I4(this);this.CD()}; g.q.X4=function(){yTs(this);zS.prototype.X4.call(this)};var dV={},ns=(dV.CHANNEL_NAME="ytp-title-channel-name",dV.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",dV.LINK="ytp-title-link",dV.SESSIONLINK="yt-uix-sessionlink",dV.SUBTEXT="ytp-title-subtext",dV.TEXT="ytp-title-text",dV.TITLE="ytp-title",dV);g.z(dL,g.F);dL.prototype.onClick=function(v){this.api.logClick(this.element);var J=this.api.B(),G=this.api.getVideoUrl(!g.pd(v),!1,!0);g.Of(J)&&(J={},g.Dw(this.api,"addEmbedsConversionTrackingParams",[J]),G=g.vt(G,J));g.Ev(G,this.api,v)}; dL.prototype.De=function(){var v=this.api.getVideoData(),J=this.api.B();this.updateValue("title",v.title);var G={Y:"a",D:ns.CHANNEL_NAME,V:{href:"{{channelLink}}",target:"_blank"},At:"{{channelName}}"};this.api.B().Z&&(G={Y:"span",D:ns.CHANNEL_NAME,At:"{{channelName}}",V:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",G);wPr(this);this.api.getPresentingPlayerType()===2&&(G=this.api.getVideoData(),G.videoId&&G.isListed&&G.author&&G.g_&&G.profilePicture?(this.updateValue("channelLink", G.g_),this.updateValue("channelName",G.author),this.updateValue("channelTitleFocusable","0")):wPr(this));G=J.externalFullscreen||!this.api.isFullscreen()&&J.ZO;g.E3(this.link,ns.FULLERSCREEN_LINK,G);J.Ti||!v.videoId||G||g.GT(v)||J.Z?this.T&&(this.updateValue("url",null),this.YL(this.T),this.T=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.T||(this.T=this.G(this.link,"click",this.onClick)));J.Z&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.Of(J)?v.expandedTitle: v.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.z(g.s7,g.F);g.q=g.s7.prototype;g.q.setEnabled=function(v){if(this.type!=null)if(v)switch(this.type){case 3:case 2:UPF(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.K=v}; g.q.yP=function(v,J,G,K,V,Y,r,E){if(!this.Ze||this.env.U){this.type===3&&this.Gv();this.type!==1&&(g.Jz(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.K&&this.fade.show(),this.X&&this.X.dispose(),(this.X=this.api.DM())&&this.X.subscribe("l",this.JM,this));if(E){var e=g.lt(this.bg).height||141;this.Mr.style.bottom=e+2+"px"}else this.Mr.style.display="none";this.update({text:G,title:Y!=null?Y:"",eduText:E!=null?E:""});g.E3(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!Y);this.api.isInline()&& g.Vj(this.bottomText,"ytp-modern-tooltip-text");g.E3(this.element,"ytp-text-detail",!!K);G=-1;this.X&&(G=us(this.X,243*this.scale),this.env.C("web_l3_storyboard")&&this.X.levels.length===4&&(G=this.X.levels.length-1),G=DeX(this.X,G,J));mPs(this,G);if(r)switch(J=g.lt(this.element).width,r){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"}xPs(this,!!K,v,V)}}; g.q.Pg=function(){this.type===1&&this.Gv()}; g.q.p5=function(v,J){if(this.type)if(this.type===3)this.Gv();else return;OKf(this,v,3,J)}; g.q.J3=function(){this.T&&!this.U&&this.T.hasAttribute("title")&&(this.Z=this.T.getAttribute("title")||"",this.T.removeAttribute("title"),this.K&&UPF(this))}; g.q.JM=function(v,J){v<=this.L&&this.L<=J&&(v=this.L,this.L=NaN,mPs(this,v))}; g.q.ew7=function(){eSB(this.X,this.L,243*this.scale)}; g.q.Gv=function(){switch(this.type){case 2:var v=this.T;v.removeEventListener("mouseout",this.N);v.addEventListener("mouseover",this.j);v.removeEventListener("blur",this.N);v.addEventListener("focus",this.j);SJF(this);break;case 3:SJF(this);break;case 1:this.X&&(this.X.unsubscribe("l",this.JM,this),this.X=null),this.api.removeEventListener("videoready",this.oY),this.Ti.stop()}this.type=null;this.K&&this.fade.hide()}; g.q.O2=function(){if(this.T)for(var v=0;v=0;J--)if(this.xz[J]===v){this.xz.splice(J,1);break}lp(this.oK,64,this.xz.length>0)}; g.q.Iq=function(){this.api.Cj()&&this.api.ZX();return!!this.u6||kgX(this)||g.S6.prototype.Iq.call(this)}; g.q.Ju=vF(3);g.q.XD=vF(7);g.q.Ai=vF(10); g.q.mZ=function(){var v=!this.Iq(),J=v&&this.api.Cj()&&!g.H(this.api.getPlayerStateObject(),2)&&!g.GT(this.api.getVideoData())&&!this.api.B().Z&&!this.api.isEmbedsShortsMode(),G=this.q_&&g.SI(this.api)&&g.H(this.api.getPlayerStateObject(),128);v||G?(this.K9.show(),this.DT.show()):(this.K9.hide(),this.DT.hide(),this.api.O2(this.Ww.element));J?this.DI.xL():this.DI.FO();this.h0&&lnf(this.h0,this.bG||!v);this.api.C("web_player_hide_overflow_button_if_empty_menu")&&cTs(this);g.S6.prototype.mZ.call(this)}; g.q.vt=function(v,J,G,K,V){v.style.left="";v.style.top="";v.style.bottom="";var Y=g.lt(v),r=K||this.h0&&g.BM(this.h0.ZZ(),J),E=K=null;G!=null&&r||(K=g.lt(J),E=g.sG(J,this.api.getRootNode()),G==null&&(G=E.x+K.width/2));G-=Y.width/2;r?(J=this.h0,K=T$X(J),E=pPB(J),r=this.api.f7().getPlayerSize().height,G=g.nk(G,K,K+E-Y.width),Y=r-IO(J)-Y.height):g.BM(this.Ww.element,J)?(J=this.api.f7().getPlayerSize().width,G=g.nk(G,12,J-Y.width-12),Y=this.XQ()?this.Bh:this.Iy,this.api.B().playerStyle==="gvn"&&(Y+=20), this.q_&&(Y-=this.XQ()?26:18)):(J=this.api.f7().getPlayerSize(),G=g.nk(G,12,J.width-Y.width-12),Y=E.y>(J.height-K.height)/2?E.y-Y.height-12:E.y+K.height+12);v.style.top=Y+(V||0)+"px";v.style.left=G+"px"}; g.q.zs=function(v){v&&(this.api.O2(this.Ww.element),this.h0&&this.api.O2(this.h0.ZZ()));this.Cf&&(g.E3(this.contextMenu.element,"ytp-autohide",v),g.E3(this.contextMenu.element,"ytp-autohide-active",!0));g.S6.prototype.zs.call(this,v)}; g.q.Xc=function(){g.S6.prototype.Xc.call(this);this.Cf&&(g.E3(this.contextMenu.element,"ytp-autohide-active",!1),this.Cf&&(this.contextMenu.hide(),this.Bw&&this.Bw.hide()))}; g.q.Tg=function(v,J){var G=this.api.f7().getPlayerSize();G=new g.Y3(0,0,G.width,G.height);if(v||this.oK.X&&!this.Iq()){if(this.api.B().Uj||J)v=this.XQ()?this.Bh:this.Iy,G.top+=v,G.height-=v;this.h0&&(G.height-=IO(this.h0))}return G}; g.q.AY=function(v){var J=this.api.getRootNode();v?J.parentElement?(J.setAttribute("aria-label","YouTube Video Player in Full screen"),this.api.B().externalFullscreen||(J.parentElement.insertBefore(this.j5.element,J),J.parentElement.insertBefore(this.F_.element,J.nextSibling))):g.fW(Error("Player not in DOM.")):(J.setAttribute("aria-label","YouTube Video Player"),this.j5.detach(),this.F_.detach());this.E$();this.UF()}; g.q.XQ=function(){var v=this.api.B();return this.api.isFullscreen()&&!v.U||!1}; g.q.showControls=function(v){this.w3=!v;this.mZ()}; g.q.E$=function(){var v=this.XQ();this.tooltip.scale=v?1.5:1;this.contextMenu&&g.E3(this.contextMenu.element,"ytp-big-mode",v);this.mZ();this.api.C("web_player_hide_overflow_button_if_empty_menu")||cTs(this);this.UF();var J=this.api.isEmbedsShortsMode();J&&v?(v=(this.api.f7().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.ep(this.Ww.element,"padding-left",v+"px"),g.ep(this.Ww.element,"padding-right",v+"px")):J&&(g.ep(this.Ww.element,"padding-left",""),g.ep(this.Ww.element,"padding-right", ""));g.S6.prototype.E$.call(this)}; g.q.T3=function(){if(kgX(this)&&!g.SI(this.api))return!1;var v=this.api.getVideoData();return!g.Of(this.api.B())||this.api.getPresentingPlayerType()===2||!this.h3||((v=this.h3||v.h3)?(v=v.embedPreview)?(v=v.thumbnailPreviewRenderer,v=v.videoDetails&&g.N(v.videoDetails,baU)||null):v=null:v=null,v&&v.collapsedRenderer&&v.expandedRenderer)?g.S6.prototype.T3.call(this):!1}; g.q.UF=function(){g.S6.prototype.UF.call(this);this.api.logVisibility(this.title.element,!!this.nQ);this.Ee&&this.Ee.I$(!!this.nQ);this.channelAvatar.I$(!!this.nQ);this.overflowButton&&this.overflowButton.I$(this.Ls()&&!!this.nQ);this.shareButton&&this.shareButton.I$(!this.Ls()&&!!this.nQ);this.Eq&&this.Eq.I$(!this.Ls()&&!!this.nQ);this.searchButton&&this.searchButton.I$(!this.Ls()&&!!this.nQ);this.copyLinkButton&&this.copyLinkButton.I$(!this.Ls()&&!!this.nQ);if(!this.nQ){this.api.O2(this.Ww.element); for(var v=0;v5&&J.uw("glrs",{cmt:G});J.seekTo(0,{seekSource:58});J.uw("glrre",{cmt:G})}}; ps.prototype.X4=function(){this.T=null;g.X.prototype.X4.call(this)};g.z(g.Ls,bS);g.q=g.Ls.prototype;g.q.isView=function(){return!0}; g.q.Bd=function(){var v=this.mediaElement.getCurrentTime();if(v1;rj(v.h7(),K-.01)&&!V&&(wL(this,4),G.isActive=!1,G.V7=G.V7||G.isActive,(this.J===1?this.T:this.X).uw("sbh",{}),J.isActive=!0,J.V7=J.V7||J.isActive,this.J!==0&&(this.T.getVideoData().Pq=!0));v=this.L.X;if(this.L.T.isActive&&v.isActive&&(wL(this,5),this.J!==0)){v=this.X.jT();G=this.T.jT(); this.T.uw("sbs",{citag:G==null?void 0:G.itag,nitag:v==null?void 0:v.itag});this.X.uw("gitags",{pitag:G==null?void 0:G.itag,citag:v==null?void 0:v.itag});var Y;(Y=this.X)==null||Y.FT()}}}; g.q.kY=function(){this.S9()&&this.qI("player-reload-after-handoff")}; g.q.qI=function(v,J){J=J===void 0?{}:J;if(!this.Sl()&&this.status.status!==6){var G=this.status.status>=4&&v!=="player-reload-after-handoff";this.status={status:Infinity,error:v};if(this.T&&this.X){var K=this.X.getVideoData().clientPlaybackNonce;this.T.rd(new L6("dai.transitionfailure",Object.assign(J,{cpn:K,transitionTimeMs:this.k6,msg:v})));this.T.QG(G)}this.JN.reject(v);this.dispose()}}; g.q.S9=function(){return this.status.status>=4&&this.status.status<6}; g.q.X4=function(){$sm(this);this.T.unsubscribe("newelementrequired",this.kY,this);if(this.Z){var v=this.Z.X;this.Z.T.t7.unsubscribe("updateend",this.Fv,this);v.t7.unsubscribe("updateend",this.Fv,this)}g.X.prototype.X4.call(this)}; g.q.TC=function(v){g.Bs(v,128)&&this.qI("player-error-event")};g.z(O7,g.X);O7.prototype.clearQueue=function(v,J){v=v===void 0?!1:v;J=J===void 0?!1:J;this.L&&this.L.reject("Queue cleared");this.app.B().C("html5_gapless_fallback_on_qoe_restart_v2")||J&&this.X&&this.X.QG(!1);U7(this,v)}; O7.prototype.Rf=function(){return!this.T}; O7.prototype.S9=function(){var v;return((v=this.Z)==null?void 0:v.S9())||!1}; O7.prototype.X4=function(){U7(this);g.X.prototype.X4.call(this)};g.z(YWm,g.qU);g.q=YWm.prototype;g.q.getVisibilityState=function(v,J,G,K,V,Y,r,E){return v?4:GuF()?3:J?2:G?1:K?5:V?7:Y?8:r?9:E?10:0}; g.q.y5=function(v){this.fullscreen!==v&&(this.fullscreen=v,this.ML())}; g.q.setMinimized=function(v){this.X!==v&&(this.X=v,this.ML())}; g.q.setInline=function(v){this.inline!==v&&(this.inline=v,this.ML())}; g.q.Mp=function(v){this.pictureInPicture!==v&&(this.pictureInPicture=v,this.ML())}; g.q.setSqueezeback=function(v){this.Z!==v&&(this.Z=v,this.ML())}; g.q.G6=function(v){this.L!==v&&(this.L=v,this.ML())}; g.q.MI=function(){return this.T}; g.q.Oq=function(){return this.fullscreen!==0}; g.q.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.q.zL=function(){return this.fullscreen}; g.q.isMinimized=function(){return this.X}; g.q.isInline=function(){return this.inline}; g.q.isBackground=function(){return GuF()}; g.q.hh=function(){return this.pictureInPicture}; g.q.oS=function(){return!1}; g.q.g9=function(){return this.Z}; g.q.EA=function(){return this.L}; g.q.ML=function(){this.publish("visibilitychange");var v=this.getVisibilityState(this.MI(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.hh(),this.oS(),this.g9(),this.EA());v!==this.j&&this.publish("visibilitystatechange");this.j=v}; g.q.X4=function(){VOw(this.J);g.qU.prototype.X4.call(this)};g.z(g.xF,g.X);g.q=g.xF.prototype;g.q.X4=function(){this.videoData=this.playerState=null;g.X.prototype.X4.call(this)}; g.q.addCueRange=function(){}; g.q.EX=function(){}; g.q.Oy=function(){}; g.q.PN=function(){return!1}; g.q.GE=function(){return!1}; g.q.R2=function(){return!1}; g.q.tG=function(){}; g.q.xM=function(){}; g.q.eh=function(){}; g.q.dj=function(){return[]}; g.q.s_=function(){}; g.q.CT=function(){return""}; g.q.getAudioTrack=function(){return this.getVideoData().Vu}; g.q.LX=function(){return null}; g.q.getAvailableAudioTracks=function(){return[]}; g.q.tJ=function(){return[]}; g.q.HD=function(){return[]}; g.q.kP=function(){return[]}; g.q.Yj=function(){}; g.q.Qk=function(){return 0}; g.q.Jz=function(){return""}; g.q.getCurrentTime=function(){return 0}; g.q.yW=function(){}; g.q.jT=function(){}; g.q.u9=function(){return{}}; g.q.getDuration=function(){return 0}; g.q.O6=function(){return 0}; g.q.IA=function(){return 0}; g.q.zB=function(){return!1}; g.q.Hi=function(){return 0}; g.q.k$=function(){return 0}; g.q.gH=vF(15);g.q.KF=function(){return 0}; g.q.pQ=function(){return!1}; g.q.ZL=function(){return 0}; g.q.LY=function(){return null}; g.q.u2=function(){return null}; g.q.ju=function(){return 0}; g.q.i6=function(){return 0}; g.q.Si=function(){return g.m(function(v){g.zX(v)})}; g.q.DX=vF(21);g.q.getPlaybackQuality=function(){return"auto"}; g.q.getPlaybackRate=function(){return 1}; g.q.getPlayerState=function(){this.playerState||(this.playerState=new g.JZ);return this.playerState}; g.q.getPlayerType=function(){return 0}; g.q.getPlaylistSequenceForTime=function(){return null}; g.q.RK=function(){return function(){}}; g.q.Md=function(){return""}; g.q.getPreferredQuality=function(){return"unknown"}; g.q.b3=function(){}; g.q.getProximaLatencyPreference=function(){return 0}; g.q.Hq=function(){return AW}; g.q.DM=function(){return null}; g.q.getStoryboardFormat=function(){return null}; g.q.getStreamTimeOffset=function(){return 0}; g.q.WC=function(){return 0}; g.q.B$=function(){return 0}; g.q.U_=function(){return{b_:[],Iz:[],currentTime:0,cT:"",droppedVideoFrames:0,isGapless:!1,Rf:!0,pR:0,vA:0,sL:0,n8:0,Yi:0,Sp:[],tM:[],tj:null,playerState:this.getPlayerState(),Yn:null,Oh:"",totalVideoFrames:0}}; g.q.getUserAudio51Preference=function(){return 0}; g.q.getUserPlaybackQualityPreference=function(){return""}; g.q.getVideoData=function(){this.videoData||(this.videoData=new g.FP(this.EB),g.k(this,this.videoData));return this.videoData}; g.q.d6=function(){return null}; g.q.Ki=function(){}; g.q.getVideoLoadedFraction=function(){return 0}; g.q.g6=function(){}; g.q.handleError=function(){}; g.q.QG=function(){}; g.q.ea=function(){}; g.q.nV=function(){return!1}; g.q.Uq=vF(46);g.q.hF=function(){return!1}; g.q.hasSupportedAudio51Tracks=function(){return!1}; g.q.YK=function(){return!1}; g.q.MI=function(){return!1}; g.q.isAtLiveHead=function(){return!1}; g.q.La=function(){return!0}; g.q.isGapless=function(){return!1}; g.q.isHdr=function(){return!1}; g.q.Yz=function(){return!1}; g.q.n1=function(){return!1}; g.q.Ae=function(){return!1}; g.q.isProximaLatencyEligible=function(){return!1}; g.q.Rf=function(){return!0}; g.q.eZ=function(){return!1}; g.q.kH=function(){return!1}; g.q.R_=function(){}; g.q.NS=function(){}; g.q.OZ=function(){}; g.q.Wy=function(){}; g.q.FT=function(){}; g.q.PD=function(){}; g.q.f1=function(){}; g.q.TY=function(){}; g.q.RQ=function(){}; g.q.MZ=vF(56);g.q.yu=vF(27);g.q.Or=function(){}; g.q.f2=function(){}; g.q.pauseVideo=function(){}; g.q.playVideo=function(){return g.m(function(v){return v.return()})}; g.q.Z5=function(){}; g.q.ya=vF(33);g.q.ZM=vF(39);g.q.RX=function(){}; g.q.uw=function(){}; g.q.Lt=function(){}; g.q.bN=function(){}; g.q.AZ=function(){}; g.q.rd=function(){}; g.q.IX=function(){}; g.q.DS=function(){}; g.q.m0=function(){}; g.q.cL=function(){}; g.q.ID=function(){}; g.q.G5=function(){}; g.q.Yu=function(){}; g.q.eB=function(){}; g.q.removeCueRange=function(){}; g.q.ey=function(){}; g.q.RA=function(){return[]}; g.q.vE=function(){}; g.q.xP=function(){}; g.q.gs=function(){}; g.q.lD=function(){}; g.q.Vl=function(){}; g.q.Ei=function(){}; g.q.Wf=function(){}; g.q.seekTo=function(){}; g.q.sendAbandonmentPing=function(){}; g.q.sendVideoStatsEngageEvent=function(){}; g.q.vj=function(){}; g.q.Z_=function(){}; g.q.setLoop=function(){}; g.q.tD=function(){}; g.q.setMediaElement=function(){}; g.q.Fp=function(){}; g.q.setPlaybackRate=function(){}; g.q.ze=function(){}; g.q.vL=function(){}; g.q.Lq=function(){}; g.q.setProximaLatencyPreference=function(){}; g.q.Kb=function(){}; g.q.Dd=function(){}; g.q.sx=function(){}; g.q.Rq=function(){}; g.q.e$=function(){}; g.q.setUserAudio51Preference=function(){}; g.q.cM=function(){}; g.q.jD=function(){return!1}; g.q.ir=function(){}; g.q.j_=function(){return!1}; g.q.pH=function(){}; g.q.iq=function(){}; g.q.Oe=function(){}; g.q.stopVideo=function(){}; g.q.subscribe=function(){return NaN}; g.q.Cd=function(){}; g.q.togglePictureInPicture=function(){}; g.q.kh=function(){return 0}; g.q.unsubscribe=function(){return!1}; g.q.GN=function(){}; g.q.E3=function(){return!1}; g.q.D8=function(){}; g.q.Gc=function(){}; g.q.hD=function(){}; g.q.YC=function(){};g.z(g.m7,g.X);g.q=g.m7.prototype;g.q.Qn=function(){return this.J}; g.q.T7=function(v){this.J=v}; g.q.zi=function(){return this.X}; g.q.cn=function(v){this.X=v}; g.q.Ap=vF(52);g.q.iy=vF(54);g.q.oH=function(v){return v?v===1?this.J:this.X.getVideoData().enableServerStitchedDai&&v===2?this.X.getVideoData().Zj?this.Z[2]||this.X:this.X:g.WG(this.X.getVideoData())&&v===2?this.Z[2]||this.X:this.Z[v]||null:this.X}; g.q.X4=function(){for(var v=g.n(Object.values(this.Z)),J=v.next();!J.done;J=v.next())J.value.dispose();this.T.dispose();g.X.prototype.X4.call(this)};g.z(St,g.X);g.q=St.prototype;g.q.enqueue=function(v,J){if(v.L!==this)return!1;if(this.segments.length===0||(J===void 0?0:J))this.T=v;this.segments.push(v);return!0}; g.q.Ci=function(){return this.DZ||0}; g.q.wp=function(){return this.L||0}; g.q.removeAll=function(){for(;this.segments.length;){var v=void 0;(v=this.segments.pop())==null||v.dispose()}this.X.clear();this.Z=void 0}; g.q.X4=function(){this.removeAll();g.X.prototype.X4.call(this)}; g.z(hxm,g.X);g.q=hxm.prototype;g.q.Ci=function(){return this.DZ}; g.q.wp=function(){return this.Z}; g.q.getType=function(){return this.type}; g.q.getVideoData=function(){return this.videoData}; g.q.gy=function(v){T5(v);this.videoData=v}; g.q.X4=function(){zxU(this);g.X.prototype.X4.call(this)};g.gL.prototype.R5=function(v,J){if(J===1)return this.T.get(v);if(J===2)return this.Z.get(v);if(J===3)return this.X.get(v)}; g.gL.prototype.Rx=vF(64);g.gL.prototype.w6=function(v,J,G,K){G={iU:K,C4:G};J?this.Z.set(v,G):this.T.set(v,G)}; g.gL.prototype.clearAll=function(){this.T.clear();this.Z.clear();this.X.clear()}; g.z(g.XW,g.X);g.q=g.XW.prototype;g.q.EH=function(v,J,G){return new g.o8(v,J,{id:G,namespace:"serverstitchedcuerange",priority:9})}; g.q.DK=function(v){var J=v.Oj?v.Oj*1E3:v.DZ,G=this.X.get(v.cpn);G&&this.playback.removeCueRange(G);this.X.delete(v.cpn);this.Z.delete(v.cpn);G=this.J.indexOf(v);G>=0&&this.J.splice(G,1);G=[];for(var K=g.n(this.j),V=K.next();!V.done;V=K.next())V=V.value,V.end<=J?this.playback.removeCueRange(V):G.push(V);this.j=G;ZxB(this,0,J+v.durationMs)}; g.q.onCueRangeEnter=function(v){this.Gi.push(v);var J=v.getId();this.H$({oncueEnter:1,cpn:J,start:v.start,end:v.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Qk()||0).toFixed(3)});var G=J==="";this.BH.add(v.X);var K=this.Z.get(J);if(G){var V;if(this.playback.getVideoData().i9()&&((V=this.T)==null?0:V.Gd)&&this.L){this.xR=0;this.T=void 0;this.dh&&(this.events.YL(this.dh),this.dh=null);this.L="";this.RY=!0;return}}else if(this.H$({enterAdCueRange:1}),this.playback.getVideoData().i9()&& (K==null?0:K.c_))return;if(this.RY&&!this.T)this.RY=!1,!G&&K&&(G=this.playback.getCurrentTime(),FW(this,{KY:v,isAd:!0,lf:!0,EJ:G,adCpn:J},{isAd:!1,lf:!1,EJ:G}),this.XO=K.cpn,aO(this,K),v=Nn(this,"midab",K),this.H$(v),this.xR=1),this.N=!1;else if(this.T){if(this.T.lf)this.H$({a_pair_of_same_transition_occurs_enter:1,acpn:this.T.adCpn,transitionTime:this.T.EJ,cpn:J,currentTime:this.playback.getCurrentTime()}),K=this.playback.getCurrentTime(),v={KY:v,isAd:!G,lf:!0,EJ:K,adCpn:J},J={KY:this.T.KY,isAd:this.T.isAd, lf:!1,EJ:K,adCpn:this.T.adCpn},this.T.KY&&this.BH.delete(this.T.KY.X),FW(this,v,J);else{if(this.T.KY===v){this.H$({same_cue_range_pair_enter:1,acpn:this.T.adCpn,transitionTime:this.T.EJ,cpn:J,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:v.start,cueRangeEndTime:v.end});this.T=void 0;return}if(this.T.adCpn===J){J&&this.H$({dchtsc:J});this.T=void 0;return}v={KY:v,isAd:!G,lf:!0,EJ:this.playback.getCurrentTime(),adCpn:J};FW(this,v,this.T)}this.T=void 0;this.N=!1}else this.T={KY:v,isAd:!G, lf:!0,EJ:this.playback.getCurrentTime(),adCpn:J}}; g.q.onCueRangeExit=function(v){var J=v.getId();this.H$({oncueExit:1,cpn:J,start:v.start,end:v.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Qk()||0).toFixed(3)});var G=J==="",K=this.Z.get(J);if(this.playback.getVideoData().i9()&&!G&&K){if(K.c_)return;K.c_=!0;this.U.clear();if(this.EB.C("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.PN()){var V=K.DZ;this.playback.eB(V/1E3,(V+K.durationMs)/1E3)}else this.playback.uw("lifa",{remove:0})}if(this.BH.has(v.X))if(this.BH.delete(v.X), this.Gi=this.Gi.filter(function(Y){return Y!==v}),this.RY&&(this.N=this.RY=!1,this.H$({cref:1})),this.T){if(this.T.lf){if(this.T.KY===v){this.H$({same_cue_range_pair_exit:1, acpn:this.T.adCpn,transitionTime:this.T.EJ,cpn:J,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:v.start,cueRangeEndTime:v.end});this.T=void 0;return}if(this.T.adCpn===J){J&&this.H$({dchtsc:J});this.T=void 0;return}J={KY:v,isAd:!G,lf:!1,EJ:this.playback.getCurrentTime(),adCpn:J};FW(this,this.T,J)}else if(this.H$({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.T.adCpn,transitionTime:this.T.EJ,upcomingCpn:J,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.T.adCpn===J)return;this.T=void 0;this.N=!1}else this.T={KY:v,isAd:!G,lf:!1,EJ:this.playback.getCurrentTime(),adCpn:J};else this.H$({ignore_single_exit:1})}; g.q.AJ=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,DZ:0,playerType:1,dB:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.q.b2=function(){if(this.V5)return!1;var v=void 0;this.XO&&(v=this.Z.get(this.XO));return this.playback.getVideoData().i9()?!!v&&!v.c_:!!v}; g.q.seekTo=function(v,J,G,K){v=v===void 0?0:v;J=J===void 0?{}:J;G=G===void 0?!1:G;K=K===void 0?null:K;if(this.playback.getVideoData().i9()&&v<=this.Ze/1E3)this.playback.pauseVideo(),this.Ze=0,this.N=!0,this.playback.Si(),this.playback.seekTo(v),this.playback.playVideo();else if(this.N=!0,G)dsB(this,v,J);else{G=this.app.zi();var V=G===this.xB?this.g_:null;Mn(this,!1);this.OR=v;this.R$=J;K!=null&&this.UR.start(K);G&&(this.g_=V||G.getPlayerState(),G.Oe(J),this.xB=G)}}; g.q.X4=function(){Mn(this,!1);we8(this);OxX(this);g.X.prototype.X4.call(this)}; g.q.Zn=function(v){this.yy=v;this.H$({swebm:v})}; g.q.Vt=function(v,J,G){if(G&&J){var K=this.U.get(v);if(K){K.locations||(K.locations=new Map);var V=Number(J.split(";")[0]);G=new g.TV(G);this.H$({hdlredir:1,itag:J,seg:v,hostport:LH(G)});K.locations.set(V,G)}}}; g.q.Q6=function(v,J,G,K,V,Y){var r=K===3,E=xs2(this,v,J,K,G,Y);if(!E){WU(this,J,r);var e=g.UsU(this,J)?"undec":"ncp";this.H$({gvprp:e,mt:v,seg:J,tt:K,itag:G,ce:Y});return null}r||this.U.set(J,E);Y=E.Rm;var P;K=((P=this.R5(J-1,K,V))==null?void 0:P.iU)||"";K===""&&this.H$({eds:1});P=SW2(this,E.ssdaiAdsConfig);V=this.playback.getVideoData();var D;r=((D=V.X)==null?void 0:D.containerType)||0;D=V.MA[r];E=E.SO&&J>=E.SO?E.SO:void 0;D={kx:Y?ghF(this,Y):[],Wp:P,iU:K,kF:E,II:qi(D.split(";")[0]),BI:D.split(";")[1]|| ""};E={yI:D};this.wh&&(v={gvprpro:"v",sq:J,mt:v.toFixed(3),itag:G,acpns:((e=D.kx)==null?void 0:e.join("_"))||"none",abid:Y},this.H$(v));return E}; g.q.YS=function(v){a:{if(!this.V5){var J=msF(this,v);if(!(this.playback.getVideoData().i9()&&(J==null?0:J.c_)))break a}J=void 0}var G=J;if(!G)return this.H$({gvprp:"ncp",mt:v}),null;J=G.Rm;var K=SW2(this,G.ssdaiAdsConfig);G=G.SO&&G.S$&&v>=G.S$?G.SO:void 0;var V=this.playback.getVideoData(),Y,r=((Y=V.X)==null?void 0:Y.containerType)||0;Y=V.MA[r];Y={kx:J?ghF(this,J):[],Wp:K,kF:G,II:qi(Y.split(";")[0]),BI:Y.split(";")[1]||""};var E;v={gvprpro:"v",mt:v.toFixed(3),acpns:((E=Y.kx)==null?void 0:E.join("_"))|| "none",abid:J};this.H$(v);return Y}; g.q.q2=function(v,J,G,K,V,Y){var r=Number(G.split(";")[0]),E=K===3;v=xs2(this,v,J,K,G,Y);this.H$({gdu:1,seg:J,itag:r,pb:""+!!v});if(!v)return WU(this,J,E),null;v.locations||(v.locations=new Map);if(!v.locations.has(r)){var e,P;Y=(e=v.videoData.getPlayerResponse())==null?void 0:(P=e.streamingData)==null?void 0:P.adaptiveFormats;if(!Y)return this.H$({gdu:"noadpfmts",seg:J,itag:r}),WU(this,J,E),null;e=Y.find(function(B){return B.itag===r}); if(!e||!e.url){var D=v.videoData.videoId;v=[];var t=g.n(Y);for(K=t.next();!K.done;K=t.next())v.push(K.value.itag);this.H$({gdu:"nofmt",seg:J,vid:D,itag:r,fullitag:G,itags:v.join(",")});WU(this,J,E);return null}v.locations.set(r,new g.TV(e.url,!0))}Y=v.locations.get(r);if(!Y)return this.H$({gdu:"nourl",seg:J,itag:r}),WU(this,J,E),null;Y=new hf(Y);this.yy&&(Y.get("dvc")?this.H$({dvc:Y.get("dvc")||""}):Y.set("dvc","webm"));(K=(t=this.R5(J-1,K,V))==null?void 0:t.iU)&&Y.set("daistate",K);v.SO&&J>=v.SO&& Y.set("skipsq",""+v.SO);(t=this.playback.getVideoData().clientPlaybackNonce)&&Y.set("cpn",t);t=[];v.Rm&&(t=ghF(this,v.Rm),t.length>0&&Y.set("acpns",t.join(",")));E||this.U.set(J,v);E=null;E=Y.get("aids");K=Y.Dm();(K==null?void 0:K.length)>2048&&this.H$({urltoolong:1,sq:J,itag:r,len:K.length});this.wh&&(K&&(Y=v.cpn,V=v.Rm,cHB(this,Y,V),V&&!this.Vy.has(V)&&(Y=XeB(this,Y,V),e=kim(this,V),this.H$({iofa:Y}),this.H$({noawnzd:e-Y}),this.H$({acpns:t.join("."),aids:(D=E)==null?void 0:D.replace(/,/g,".")}), this.Vy.add(V))),this.H$({gdu:"v",seg:J,itag:G,ast:v.DZ.toFixed(3),alen:v.durationMs.toFixed(3),acpn:v.cpn,avid:v.videoData.videoId}));return K}; g.q.wm=function(v,J,G){var K=Qs(this,v,G);return(K=K?(K.DZ+K.durationMs)/1E3:0)&&J>K?(this.gg(v,G,!0),this.playback.seekTo(K),!0):!1}; g.q.gg=function(v,J,G){G=G===void 0?!1:G;var K=Qs(this,v,J);if(K){var V=void 0,Y=K.Rm;if(Y){this.H$({skipadonsq:J,sts:G,abid:Y,acpn:K.cpn,avid:K.videoData.videoId});G=this.K.get(Y);if(!G)return;G=g.n(G);for(Y=G.next();!Y.done;Y=G.next())Y=Y.value,Y.SO=J,Y.S$=v,Y.DZ>K.DZ&&(V=Y)}this.L=K.cpn;fj2(this);v=this.playback.getCurrentTime();Ab(this,K,V,v,v,!1,!0)}}; g.q.iG=function(){for(var v=g.n(this.J),J=v.next();!J.done;J=v.next())J=J.value,J.SO=NaN,J.S$=NaN;fj2(this);this.H$({rsac:"resetSkipAd",sac:this.L});this.L=""}; g.q.R5=function(v,J,G){return this.YB.R5(v,J,G)}; g.q.Rx=vF(63); g.q.w6=function(v,J,G,K,V,Y,r,E,e){K.length>0&&this.H$({onssinfo:1,sq:v,start:J.toFixed(3),cpns:K.join(","),ds:V.join(","),isVideo:r?1:0});e&&this.YB.w6(v,r,E,e);if(r){if(K.length&&V.length)for(this.L&&this.L===K[0]&&this.H$({skipfail:1,sq:v,acpn:this.L}),v=J+this.WC(),r=0;r0&&(this.xR=0,this.XO="",this.api.publish("serverstitchedvideochange"));this.playback.eh(G,K);return!0}; g.q.tv=function(){this.H$({rstdaist:1});this.YB.clearAll()}; g.q.hd=function(v){var J;if(v!==((J=this.Ti)==null?void 0:J.identifier))this.H$({ignorenoad:v});else{this.d_.add(v);this.H$({noadrcv:v});var G;((G=this.Ti)==null?void 0:G.identifier)===v&&cU(this)}}; g.q.VM=function(){return this.xR}; g.q.E2=function(){return this.XO}; g.q.l3=function(v){if(this.V5)return this.H$({dai_disabled:v.event}),!1;if(this.playback.getVideoData().i9()&&(this.EB.C("html5_lifa_no_gab_on_predict_start")&&v.event==="predictStart"||v.event==="continue"||v.event==="stop"))return this.H$({cuepoint_skipped:v.event}),!1;var J=zo(this.api.c$());if(J=J?J.l3(v):!1)this.oY={qW:v.identifier,SN:v.startSecs};else if(this.oY&&this.oY.qW===v.identifier&&v.startSecs>this.oY.SN+1){this.H$({cueStChg:v.identifier,oldSt:this.oY.SN.toFixed(3),newSt:v.startSecs.toFixed(3), abid:this.oY.qq});if(this.oY.qq){var G=v.startSecs-this.oY.SN,K=this.K.get(this.oY.qq);if(K){K=g.n(K);for(var V=K.next();!V.done;V=K.next())V=V.value,V.DZ>=0&&(V.DZ+=G*1E3,this.EB.C("html5_ssdai_update_timeline_on_start_time_change")&&(V.dB+=G*1E3),this.H$({newApEt:V.DZ,newApPrt:V.dB,acpn:V.cpn}))}}this.oY.SN=v.startSecs}return J}; g.q.L3=function(v){return this.V5?!1:!!msF(this,v)}; g.q.qf=function(v){var J=this;this.playback.pauseVideo();var G=this.playback.getCurrentTime(),K=this.EB.C("html5_lifa_reset_segment_index_on_skip"),V=K?G+this.playback.WC():G,Y=this.Z.get(this.XO),r=this.X.get(this.XO);if(Y){this.L=this.XO;this.N=!1;Y.c_=!0;G=this.playback.getCurrentTime();this.T={KY:r,isAd:!0,lf:!1,EJ:G,adCpn:this.XO,Gd:Y,vzw:v};this.playback.cL(Y,this.AJ(),G,this.playback.getCurrentTime(),!1,!0,v,(0,g.yR)());K&&this.playback.Or();if(r==null?0:r.start)this.Ze=G*1E3-r.start;this.U.clear(); this.playback.Si();this.XO=this.AJ().cpn;this.api.publish("serverstitchedvideochange");this.playback.seekTo(V,{seekSource:89,nK:"lifa_skip"});this.playback.playVideo();this.dh||(this.dh=this.events.G(this.api,"progresssync",function(){J.DK(Y)})); return!0}this.H$({skipFail:G},!0);return!1}; g.q.H$=function(v,J){((J===void 0?0:J)||this.wh||this.playback.getVideoData().i9())&&this.playback.uw("sdai",v)}; var TYw=0;g.z(NYs,g.XW);g.q=NYs.prototype;g.q.onCueRangeEnter=function(v){var J=v.getId();this.playback.uw("sdai",{oncueEnter:1,cpn:J,start:v.start,end:v.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Qk()||0).toFixed(3)});v=this.Z.get(J);this.playback.uw("sdai",{enterAdCueRange:1});J=this.XO||this.AJ().cpn;var G;J=(G=this.Z.get(J))!=null?G:this.AJ();v&&(G={C3:J,Sw:v,FP:this.playback.getCurrentTime()},this.tA(G))}; g.q.onCueRangeExit=function(v){var J=this.playback.getCurrentTime()*1E3;v=v.getId();for(var G=g.n(this.X.values()),K=G.next();!K.done;K=G.next())if(K=K.value,K.getId()!==v&&J>=K.start&&J<=K.end)return;if(J=this.Z.get(v))J={C3:J,Sw:this.AJ(),FP:this.playback.getCurrentTime()},this.tA(J)}; g.q.tA=function(v){this.L||this.N||this.Zp(this.XO);var J=v.C3,G=v.Sw;if(G.cpn===this.XO)this.playback.uw("sdai",{igtranssame:1,enter:G.cpn,exit:J.cpn});else{var K=this.N,V=!!this.L;this.L="";var Y=v.FP,r=J.playerType===2?J.DZ/1E3+J.videoData.xB:this.AJ().videoData.xB;if(J.playerType===2&&G.playerType===2)V?this.playback.uw("sdai",{igtransskip:1,enter:G.cpn,exit:J.cpn,seek:K,skip:this.L}):Ab(this,J,G,r,Y,K,V);else{this.XO=G.cpn;v=v.kli;if(J.playerType===1&&G.playerType===2){this.Ze=0;aO(this,G);var E= Nn(this,"c2a",G);this.playback.uw("sdai",E);this.xR++}else if(J.playerType===2&&G.playerType===1){E=J.videoData.xB;this.api.publish("serverstitchedvideochange");var e=Nn(this,"a2c");this.playback.uw("sdai",e);this.xR=0;this.Ze=E*1E3;this.Mj=r;FB8(this,J.Rm)}this.playback.cL(J,G,r,Y,K,V,v)}this.L="";this.N=!1}}; g.q.seekTo=function(v,J,G,K){v=v===void 0?0:v;J=J===void 0?{}:J;G=G===void 0?!1:G;K=K===void 0?null:K;this.Zp(this.XO);this.playback.getVideoData().i9()&&v<=this.Mj?(this.playback.pauseVideo(),this.Mj=this.Ze=0,ajt(this,v)):g.XW.prototype.seekTo.call(this,v,J,G,K)}; g.q.gg=function(v,J,G){G=G===void 0?!1:G;var K=Qs(this,v,J);if(K){var V=void 0,Y=K.Rm;if(Y){this.playback.uw("sdai",{skipadonsq:J,sts:G,abid:Y,acpn:K.cpn,avid:K.videoData.videoId});G=this.K.get(Y);if(!G)return;G=g.n(G);for(Y=G.next();!Y.done;Y=G.next())Y=Y.value,Y.SO=J,Y.S$=v,Y.DZ>K.DZ&&(V=Y)}this.Zp(this.XO);this.L=K.cpn;fj2(this);v=this.playback.getCurrentTime();Ab(this,K,V,v,v,!1,!0)}}; g.q.w6=function(v,J,G,K,V,Y,r,E,e){K.length>0&&this.playback.uw("sdai",{onssinfo:1,sq:v,start:J.toFixed(3),cpns:K.join(","),ds:V.join(","),isVideo:r?1:0});e&&this.YB.w6(v,r,E,e);if(r){if(K.length&&V.length)for(this.L&&this.L===K[0]&&this.playback.uw("sdai",{skipfail:1,sq:v,acpn:this.L}),v=J+this.WC(),G=0;G=0&&this.J.splice(v,1)}; g.q.Zp=function(v){var J=v||this.XO,G=this.Z.get(J);if(G){v=G.videoData;var K,V;J=G.Oj||((V=(K=this.X.get(J))==null?void 0:K.start)!=null?V:0)/1E3;K=this.playback.getCurrentTime()-J;v.xB=K>0?K:0}else this.AJ().videoData.xB=this.playback.getCurrentTime()};g.z(WBB,g.X);g.q=WBB.prototype; g.q.Xk=function(v,J){J=J===void 0?"":J;if(this.timeline.Z===J)return!0;var G=this.timeline.T,K=G==null?void 0:G.getVideoData();if(!G||!K)return this.api.uw("ssap",{htsm:G?0:1}),!1;if(this.api.C("html5_ssap_clear_timeline_before_update")){var V=this.timeline,Y;(Y=V.T)==null||zxU(Y);V.X.clear()}V=fs(G);var r=!1;Y=[];var E=new Map;G=[];var e=[],P=0,D=0,t=0,B=[];v=g.n(v);for(var I=v.next();!I.done;I=v.next())a:{var h=void 0,R=void 0,T=I.value,L=T.clipId;if(L){if(T.yY){t=T.yY.DU||0;I=T.yY.m4||1;var O= Number(((T.yY.sT||0)/(T.yY.Lc||1)*1E3).toFixed(0));t=I=O+Number((t/I*1E3).toFixed(0))}else I=O=t,this.ZJ.has(L)||this.e4.add(L);var x=(R=E.get(L))!=null?R:0,f=this.timeline.Z;R=!1;if(f&&this.api.C("html5_ssap_clear_timeline_before_update")){if(f=this.U6.get(L))f.start=O,f.end=I,R=!0}else{if(f){var c=L;f=O;var b=I,M=x,Jw=X$(this.timeline,c);if(Jw!=null&&Jw.length){M=E){this.ws.set(v,G);iZj(this,v,J);this.Ra.set(v,(0,g.yR)());if(G=this.U6.get(J))for(G=G.getId().split(","),G=g.n(G),r=G.next();!r.done;r=G.next())r=r.value,r!==J&&this.e4.has(r)&&(this.e4.delete(r),this.ZJ.add(r));this.Zp();J=Y.Ci()/1E3;Y=void 0;G=(Y=g.DI(this.api.B().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?Y:0;this.api.C("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(J+ G/1E3,{ke:!0}):this.playback.seekTo(J+G/1E3);this.z6?(this.api.uw("ssap",{gpfreload:this.XO}),Qr2(this)||(this.z6=!1),this.playback.Si(!1,!1,this.api.C("html5_ssap_keep_media_on_finish_segment"))):K&&this.playback.Si(!1,!1,this.api.C("html5_ssap_keep_media_on_finish_segment"));V&&this.api.playVideo(1,this.api.C("html5_ssap_keep_media_on_finish_segment"));return[v]}}}return[]}; g.q.bl=function(){var v=this.timeline.T;if(!v)return 0;var J=v.wp();v=g.n(v.T.values());for(var G=v.next();!G.done;G=v.next()){G=g.n(G.value);for(var K=G.next();!K.done;K=G.next())K=K.value,K.wp()>J&&(J=K.wp())}return J/1E3}; g.q.ju=function(){var v=this.playback.getCurrentTime()*1E3;var J=GHf(this,v);if(!J){var G=X$(this.timeline,this.XO);if(G){G=g.n(G);for(var K=G.next();!K.done;K=G.next())K=K.value,K.Ci()>v&&(J=K)}}return J&&J.getType()===1?J.Ci()/1E3:0}; g.q.getVideoData=function(v){if(v===2&&!this.b2()){if(this.xl&&this.h5.has(this.xl))return this.h5.get(this.xl);this.api.uw("ssap",{lpanf:""+mT(this)});return null}return VMj(this)}; g.q.b2=function(){var v=X$(this.timeline,this.XO);return(v==null?0:v.length)?v[0].getType()===2:!1}; g.q.Qh=function(){var v=X$(this.timeline,this.XO);return(v==null?0:v.length)?v[0].X:!1}; g.q.seekTo=function(v,J){J=J===void 0?{}:J;var G=oks(this,this.playback.getCurrentTime());this.playback.seekTo(v+G/1E3,J)}; g.q.EH=function(v,J,G){return new g.o8(v,J,{id:G,namespace:"ssap",priority:9})}; g.q.onCueRangeEnter=function(v){if(!this.pE.has(v.getId())){this.api.uw("ssap",{oce:1,cpn:v.getId(),st:v.start,et:v.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Qk()||0).toFixed(3)});for(var J=v.getId().split(","),G=0;GG+1)for(K=G+1;K0?J:0}; g.q.Oiw=function(v){var J=this.h5.get(this.XO);J&&this.playback.IX(v-J.Mj/1E3,J.lengthSeconds,this.XO)}; g.q.X4=function(){this.api.B().GG()&&this.api.uw("ssap",{di:""+this.XO,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.h5.clear();this.e4.clear();this.pE.clear();this.ws.clear();this.Ra.clear();this.ZJ.clear();this.ye=[];Mqt(this);this.iH="";g.O9(this.events);g.X.prototype.X4.call(this)};g.z(Ekf,g.X);g.q=Ekf.prototype;g.q.onCueRangeEnter=function(v){if(this.T===this.app.zi()){var J=this.J.get(v);J?IA2(this,J.target,J.k6,v):this.rd("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:v.toString()})}else if(J=this.X.find(function(V){return V.l8.KY===v})){var G=J.l8,K=G.target; G=G.k6;K?IA2(this,K,G,v):BJf(this,J.dB,G,v)}}; g.q.onQueuedVideoLoaded=function(){var v=this.K;Je(this);if(v){if(!vl(this,v)){var J=this.app.zi();this.rd("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:J==null?void 0:J.getVideoData().clientPlaybackNonce,ccpn:""+v.playerVars.cpn})}this.app.zi().addCueRange(v.l8.KY)}}; g.q.seekTo=function(v,J,G,K){v=v===void 0?0:v;J=J===void 0?{}:J;K=K===void 0?null:K;if(G===void 0?0:G)qSm(this,v,J);else{G=this.app.zi()||null;var V=G===this.L?this.j:null;Gy(this,!1);this.oY=v;this.N=J;K!=null&&this.U.start(K);G&&(this.j=V||G.getPlayerState(),G.Oe(),this.L=G)}}; g.q.If=function(v){g.Bs(v,128)&&sR8(this)}; g.q.isManifestless=function(){return Pm(this.T.getVideoData())}; g.q.X4=function(){Gy(this,!1);lAf(this);g.X.prototype.X4.call(this)}; g.q.rd=function(v,J){this.T.rd(new L6(v,J))}; var e1m=0;var TJX="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(VD,g.X);g.q=VD.prototype;g.q.get=function(v){oF(this);var J=this.data.find(function(G){return G.key===v}); return J?J.value:null}; g.q.set=function(v,J,G){this.remove(v,!0);oF(this);v={key:v,value:J,expire:Infinity};G&&isFinite(G)&&(G*=1E3,v.expire=(0,g.yR)()+G);for(this.data.push(v);this.data.length>this.Z;)(G=this.data.shift())&&Y0(this,G,!0);Kc(this)}; g.q.remove=function(v,J){J=J===void 0?!1:J;var G=this.data.find(function(K){return K.key===v}); G&&(Y0(this,G,J),g.il(this.data,function(K){return K.key===v}),Kc(this))}; g.q.removeAll=function(v){if(v=v===void 0?!1:v)for(var J=g.n(this.data),G=J.next();!G.done;G=J.next())Y0(this,G.value,v);this.data=[];Kc(this)}; g.q.X4=function(){var v=this;g.X.prototype.X4.call(this);this.data.forEach(function(J){Y0(v,J,!0)}); this.data=[]};g.z(rG,g.X);rG.prototype.GB=function(v){if(v)return this.X.get(v)}; rG.prototype.X4=function(){this.T.removeAll();this.X.removeAll();g.X.prototype.X4.call(this)};g.$v_=li(function(){var v=window.AudioContext||window.webkitAudioContext;try{return new v}catch(J){return J.name}});g.z(OZB,g.F);g.q=OZB.prototype;g.q.Dp=function(){g.Yf(this.element,g.Om.apply(0,arguments))}; g.q.xP=function(){this.b9&&(this.b9.removeEventListener("focus",this.qB),g.tx(this.b9),this.b9=null)}; g.q.gR=function(){this.Sl();var v=this.app.B();v.BV||this.Dp("tag-pool-enabled");v.j&&this.Dp(g.Hx.HOUSE_BRAND);v.playerStyle==="gvn"&&(this.Dp("ytp-gvn"),this.element.style.backgroundColor="transparent");v.yy&&(this.h_=g.Kr("yt-dom-content-change",this.resize,this));this.G(window,"orientationchange",this.resize,this);this.G(window,"resize",this.resize,this)}; g.q.QP=function(v){g.fY(this.app.B());this.Lf=!v;qQ(this)}; g.q.resize=function(){if(this.b9){var v=this.mX();if(!v.isEmpty()){var J=!g.pk(v,this.uq.getSize()),G=fAf(this);J&&(this.uq.width=v.width,this.uq.height=v.height);v=this.app.B();(G||J||v.yy)&&this.app.kB.publish("resize",this.getPlayerSize())}}}; g.q.Q5=function(v,J){this.updateVideoData(J)}; g.q.updateVideoData=function(v){if(this.b9){var J=this.app.B();Ml&&(this.b9.setAttribute("x-webkit-airplay","allow"),v.title?this.b9.setAttribute("title",v.title):this.b9.removeAttribute("title"));this.b9.setAttribute("controlslist","nodownload");J.a8&&v.videoId&&(this.b9.poster=v.Us("default.jpg"))}J=g.Rv(v,"yt:bgcolor");this.o5.style.backgroundColor=J?J:"";this.Om=YL(g.Rv(v,"yt:stretch"));this.We=YL(g.Rv(v,"yt:crop"),!0);g.E3(this.element,"ytp-dni",v.aR);this.resize()}; g.q.setGlobalCrop=function(v){this.j6=YL(v,!0);this.resize()}; g.q.setCenterCrop=function(v){this.Lr=v;this.resize()}; g.q.y5=function(){}; g.q.getPlayerSize=function(){var v=this.app.B(),J=this.app.kB.isFullscreen(),G=v.externalFullscreen&&g.Of(v);if(J&&Ah()&&!G)return new g.Tx(window.outerWidth,window.outerHeight);G=!isNaN(this.S5.width)&&!isNaN(this.S5.height);var K=this.app.B().C("kevlar_player_enable_squeezeback_fullscreen_sizing");if(J&&!G&&K)return new g.Tx(this.element.clientWidth,this.element.clientHeight);if(J||v.w8){if(window.matchMedia){v="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.rN&&this.rN.media=== v||(this.rN=window.matchMedia(v));var V=this.rN&&this.rN.matches}if(V)return new g.Tx(window.innerWidth,window.innerHeight)}else if(G)return this.S5.clone();return new g.Tx(this.element.clientWidth,this.element.clientHeight)}; g.q.mX=function(){var v=this.app.B().C("enable_desktop_player_underlay"),J=this.getPlayerSize(),G=g.DI(this.app.B().experiments,"player_underlay_min_player_width");return v&&this.qK&&J.width>G?(v=g.DI(this.app.B().experiments,"player_underlay_video_width_fraction"),new g.Tx(Math.min(J.height*this.getVideoAspectRatio(),J.width*v),Math.min(J.height,J.width*v/this.getVideoAspectRatio()))):J}; g.q.getVideoAspectRatio=function(){return isNaN(this.Om)?xpm(this):this.Om}; g.q.getVideoContentRect=function(v){var J=this.mX();v=mpB(this,J,this.getVideoAspectRatio(),v);return new g.Y3((J.width-v.width)/2,(J.height-v.height)/2,v.width,v.height)}; g.q.qO=function(v){this.qK=v;this.resize()}; g.q.XU=function(){return this.sO}; g.q.onMutedAutoplayChange=function(){qQ(this)}; g.q.setInternalSize=function(v){g.pk(this.S5,v)||(this.S5=v,this.resize())}; g.q.X4=function(){this.h_&&g.Vy(this.h_);this.xP();g.F.prototype.X4.call(this)};g.q=ZZw.prototype;g.q.click=function(v,J){this.elements.has(v);this.T.has(v);var G=g.LW();G&&v.visualElement&&g.VF(G,v.visualElement,J)}; g.q.createClientVe=function(v,J,G,K){var V=this;K=K===void 0?!1:K;this.elements.has(v);this.elements.add(v);G=hOf(G);v.visualElement=G;var Y=g.LW(),r=g.pW();Y&&r&&(g.dx("combine_ve_grafts")?Ou(y8(),G,r):g.jk(g.QV)(void 0,Y,r,G));J.addOnDisposeCallback(function(){V.elements.has(v)&&V.destroyVe(v)}); K&&this.X.add(v)}; g.q.createServerVe=function(v,J,G){var K=this;G=G===void 0?!1:G;this.elements.has(v);this.elements.add(v);J.addOnDisposeCallback(function(){K.destroyVe(v)}); G&&this.X.add(v)}; g.q.destroyVe=function(v){this.elements.has(v);this.elements.delete(v);this.Z.delete(v);this.T.delete(v);this.X.delete(v)}; g.q.Bc=function(v,J){this.clientPlaybackNonce!==J&&(this.clientPlaybackNonce=J,wt(y8(),v),ups(this))}; g.q.setTrackingParams=function(v,J){this.elements.has(v);J&&(v.visualElement=g.lW(J))}; g.q.tP=function(v,J,G){this.elements.has(v);J?this.T.add(v):this.T.delete(v);var K=g.LW(),V=v.visualElement;this.X.has(v)?K&&V&&(J?g.oK(K,[V]):g.KR(K,[V])):J&&!this.Z.has(v)&&(K&&V&&g.G8(K,V,void 0,G),this.Z.add(v))}; g.q.hasVe=function(v){return this.elements.has(v)};g.z(g.eo,g.X);g.eo.create=function(v,J,G,K){try{var V=typeof v==="string"?v:"player"+g.Cf(v),Y=sY[V];if(Y){try{Y.dispose()}catch(E){g.fW(E)}sY[V]=null}var r=new g.eo(v,J,G,K);r.addOnDisposeCallback(function(){sY[V]=null;r.YA&&r.YA()}); return sY[V]=r}catch(E){throw g.fW(E),(E&&E instanceof Error?E:Error(String(E))).stack;}}; g.q=g.eo.prototype;g.q.Wo=function(){return this.visibility}; g.q.T7=function(v){var J=this.Qn();if(v!==J){v.getVideoData().autonavState=J.getVideoData().autonavState;J.GN(this.ZH,this);var G=J.getPlaybackRate();J.dispose();this.WO.T7(v);v.setPlaybackRate(G);v.Cd(this.ZH,this);A88(this)}}; g.q.E4=function(){this.Em||(this.Em=g.VA(Ny(),eor()));return this.Em}; g.q.xP=function(v){if(this.mediaElement){this.bY&&(this.events.YL(this.bY),this.bY=null);g.O9(this.zP);var J=this.zi();J&&J.xP(!0,!1,v);this.template.xP();try{this.C("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.z5()}catch(G){g.Zl(G)}this.mediaElement=null}}; g.q.cn=function(v,J,G){G=G===void 0?!1:G;if(v!==this.zi()){this.logger.debug(function(){return"start set presenting player, type "+v.getPlayerType()+", vid "+v.getVideoData().videoId}); var K=null,V=this.zi();G||(K=V.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),hm(this.tI,3),So(this,"cuerangesremoved",V.kP()),this.vC&&!v.isGapless()&&V.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),G=v.jD()&&V.jD(),this.n0.JZ("iv_s"),$tt(this,G));v.getPlayerType()===1&&this.T7(v);igf(this,v);this.WO.cn(v);this.mediaElement&&v.setMediaElement(this.mediaElement);v.Cd(this.FL,this);v.kH()?w3L(this,"setPresenting",!1):(this.Q5("newdata",v,v.getVideoData()), K&&!g.rp(K,v.getPlayerState())&&this.Iu(new g.Dz(v.getPlayerState(),K)),J=J&&this.C("html5_player_preload_ad_fix")&&v.getPlayerType()===1,v.n1()&&!J&&this.Q5("dataloaded",v,v.getVideoData()),(J=(J=v.getVideoData().X)&&J.video)&&this.kB.UN("onPlaybackQualityChange",J.quality),So(this,"cuerangesadded",v.kP()),J=v.getPlayerState(),g.H(J,2)?jHw(this):g.H(J,8)?v.playVideo():v.Yz()&&v.pauseVideo(),J=this.Qn(),v.getPlayerType()===2&&(v.getVideoData().XW=J.getVideoData().clientPlaybackNonce),v.getPlayerType()!== 2||this.cG()||(K=v.getVideoData(),J.Z5(K.clientPlaybackNonce,K.a$||"",K.breakType||0,K.dG,K.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.q.JY=function(){if(this.Qn()!==this.zi()){var v=this.zi();this.logger.debug(function(){return"release presenting player, type "+(v==null?void 0:v.getPlayerType())+", vid "+(v==null?void 0:v.getVideoData().videoId)}); this.cn(this.Qn())}}; g.q.QB=function(){return this.WO}; g.q.oH=function(v){return this.WO.oH(v)}; g.q.Qn=function(){return this.WO.Qn()}; g.q.zi=function(){return this.WO.zi()}; g.q.HT=vF(50);g.q.Tdb=function(){he(this)||(this.logger.debug("application playback ready"),this.Yh(5))}; g.q.FUb=function(){if(!he(this)){this.logger.debug("playback ready");TbL(this);var v=this.zi(),J=v.getPlayerState();v.Yz()?this.pauseVideo():J.isOrWillBePlaying()&&this.playVideo()}}; g.q.canPlayType=function(v){return Uj(v)}; g.q.B=function(){return this.EB}; g.q.getVideoData=function(){return this.zi().getVideoData()}; g.q.wC=vF(19);g.q.O$=function(){return this.Qn().getVideoData()}; g.q.getVideoLoadedFraction=function(v){return(v=this.oH(v))?v.getVideoLoadedFraction():this.WO.T.getVideoLoadedFraction()}; g.q.f7=function(){return this.template}; g.q.c$=function(){return this.tI}; g.q.Gl=function(){return this.n0}; g.q.kI=function(v){var J=this.oH(1);J&&J.Z_(v)}; g.q.M_=function(){var v=this.tI.M_();this.kB.publish("videoStatsPingCreated",v);return v}; g.q.getVolume=function(){return Math.round(this.kB.getVolume())}; g.q.isMuted=function(){return this.kB.isMuted()}; g.q.nX=function(){if(this.Qn()===this.zi()&&this.L0)return this.L0.postId}; g.q.J0Y=function(){var v=this;this.C("use_rta_for_player")||(g.yW(this.EB)?g.KS(this.EB,g.cm(this.getVideoData())).then(function(J){aQ(Ny(),J);pgm(v.getVideoData(),v.EB,v.E4())}):pgm(this.getVideoData(),this.EB,this.E4()))}; g.q.oB=function(v){this.kB.publish("poTokenVideoBindingChange",v)}; g.q.Uf=function(v){this.kB.publish("d6de4videobindingchange",v)}; g.q.bE=function(){this.y0&&this.y0.bE()}; g.q.cK=function(v){this.y0=v}; g.q.Da=function(v){if(v===1){this.n0.tick("vr");var J=this.zi();J.Oy();XUU(this.n0,J.getVideoData(),lVm(this));plL(this.tI)}J=this.EB;if(JW(J)&&J.K||g.uh(J)){var G,K;(((K=(G=this.zi())==null?void 0:G.getVideoData())==null?0:K.enableServerStitchedDai)||!this.cG())&&this.kB.UN("onAdStateChange",v)}}; g.q.setLoopVideo=function(v){var J=this.zi();J===this.Qn()&&J.pQ()!==v&&(J.setLoop(v),this.kB.lw("onLoopChange",v))}; g.q.getLoopVideo=function(){return this.zi().pQ()}; g.q.setLoopRange=function(v){var J=!1;!!this.L0!==!!v?J=!0:this.L0&&v&&(J=this.L0.startTimeMs!==v.startTimeMs||this.L0.endTimeMs!==v.endTimeMs||this.L0.postId!==v.postId||this.L0.type!==v.type);if(J){(J=this.zi())&&ov(J.getVideoData())&&J.uw("slr",{et:(v==null?void 0:v.endTimeMs)||-1});J=this.Qn();J.RA("applooprange");if(v){var G=new g.o8(v.startTimeMs,v.endTimeMs,{id:"looprange",namespace:"applooprange"});J.addCueRange(G)}else{this.O$().clipConfig=void 0;var K;((G=this.L0)==null?void 0:G.type)!== "repeatChapter"||isNaN(Number((K=this.L0)==null?void 0:K.loopCount))||(G={loopCount:String(this.L0.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.ql("repeatChapterLoopEvent",G))}this.L0=v;this.kB.lw("onLoopRangeChange",v||void 0);this.Qn()===this.zi()&&(this.Et(),J.xM())}}; g.q.getLoopRange=function(){return this.L0}; g.q.Et=function(){var v="",J=this.Qn();this.L0?J!==this.zi()?v="pnea":rg8(this,J.getCurrentTime())&&(this.L0.loopCount=0,v="ilr"):v="nlr";var G=this.zi();if(G&&ov(G.getVideoData()))if(this.C("html5_gapless_log_loop_range_info")){var K,V;G.uw("slrre",{rej:v,ct:J.getCurrentTime(),lst:(K=this.L0)==null?void 0:K.startTimeMs,let:(V=this.L0)==null?void 0:V.endTimeMs})}else G.uw("slrre",{});v||e4m(this)}; g.q.setPlaybackRate=function(v,J){if(!isNaN(v)){v=QRt(this,v);var G=this.Qn();G.getPlaybackRate()!==v&&(G.setPlaybackRate(v),J&&!this.EB.L&&g.SW("yt-player-playback-rate",v),this.kB.UN("onPlaybackRateChange",v))}}; g.q.getCurrentTime=function(v,J,G){J=J===void 0?!0:J;if(this.getPresentingPlayerType()===3)return this.WO.tV.getCurrentTime();var K=v===2&&this.getVideoData().enableServerStitchedDai,V=g.WG(this.getVideoData()),Y=null;K||V?Y=this.zi():Y=this.oH(v);if(!Y)return this.WO.T.getCurrentTime();if(V&&this.tR)return v=this.tR,Y=Y.getCurrentTime(),G?Y=bH(v,G):(G=oks(v,Y),Y-=G/1E3),Y;if(J){if(K&&this.P1&&(G=this.P1.Ze/1E3,G!==0))return G;Y=IF(this,Y);return Lc(this,Y.getCurrentTime(),Y)}K&&this.P1?(G=this.P1, Y=Y.getCurrentTime(),Y=(G=LB8(G,Y*1E3))?Y-G.start/1E3:Y):Y=Y.getCurrentTime();return Y}; g.q.k$=function(){var v=this.oH();if(!v)return this.WO.T.k$();v=IF(this,v);return Lc(this,v.k$(),v)}; g.q.getDuration=function(v,J){J=J===void 0?!0:J;var G=this.getVideoData(),K=v===2&&G.enableServerStitchedDai,V=g.WG(G),Y=null;K||V?Y=this.zi():Y=this.oH(v);if(!Y)return this.WO.T.getDuration();if(G.hasProgressBarBoundaries()&&!K&&!V){var r,E=Number((r=G.progressBarStartPosition)==null?void 0:r.utcTimeMillis),e;G=Number((e=G.progressBarEndPosition)==null?void 0:e.utcTimeMillis);if(!isNaN(E)&&!isNaN(G))return(G-E)/1E3}if(V&&this.tR)return J=KCr(this.tR,this.tR.E2()),v===1&&J===0?Y.getDuration():J;if(J)return Y= Bl(this,Y),Lc(this,Y.getDuration(),Y);K&&this.P1?(v=this.P1,Y=Y.getCurrentTime(),Y=(Y=yHw(v,Y*1E3))?Y.durationMs/1E3:0):Y=Y.getDuration();return Y}; g.q.IA=function(v){var J=this.oH(v);return J?this.cG(J)?(J=Bl(this,J),J.IA()-J.getCurrentTime()+this.getCurrentTime(v)):J.IA():this.WO.T.IA()}; g.q.g7=function(){return this.eO}; g.q.addPlayerResponseForAssociation=function(v){this.tR&&this.tR.addPlayerResponseForAssociation(v)}; g.q.finishSegmentByCpn=function(v,J,G){return this.tR?this.tR.finishSegmentByCpn(v,J,G):[]}; g.q.gR=function(){this.template.gR();var v=this.kB;v.state.element=this.template.element;var J=v.state.element,G;for(G in v.state.T)v.state.T.hasOwnProperty(G)&&(J[G]=v.state.T[G]);(v=f$w(this.template.element))&&this.events.G(this.template,v,this.onFullscreenChange)}; g.q.getDebugText=function(v){var J=this.Qn().u9(v),G=this.zi(),K=this.Qn();if(G&&G!==K){G=G.u9(v);K=g.n(Object.keys(G));for(var V=K.next();!V.done;V=K.next())V=V.value,J["ad"+V]=G[V];if(v){G=J;K={};if(V=iZ(document,"movie_player"))K.bounds=V.getBoundingClientRect(),K["class"]=V.className;V={};var Y=g.Gs("video-ads");Y?(xtt(Y,V),V.html=Y.outerHTML):V.missing=1;Y={};var r=g.Gs("videoAdUiSkipContainer"),E=g.Gs("ytp-ad-skip-button-container"),e=g.Gs("ytp-skip-ad-button"),P=r||E||e;P?(xtt(P,Y),Y.ima=r? 1:0,Y.bulleit=E?1:0,Y.component=e?1:0):Y.missing=1;K=JSON.stringify({player:K,videoAds:V,skipButton:Y});G.ad_skipBtnDbgInfo=K}}v&&this.mediaElement&&(J["0sz"]=""+(+Lk(this.mediaElement.getSize())===0),J.op=this.mediaElement.hU("opacity"),G=this.mediaElement.td().y+this.mediaElement.getSize().height,J.yof=""+(+G<=0),J.dis=this.mediaElement.hU("display"));v&&((v=(0,g.t5)())&&(J.gpu=v),(v=this.EB.playerStyle)&&(J.ps=v),this.EB.Gi&&(J.webview=1));J.debug_playbackQuality=this.kB.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.q.getFeedbackProductData=function(){var v={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.B().experiments.experimentIds.join(", "),player_release:$s[13]},J=this.getPlayerStateObject().c8;J&&(v.player_error_code=J.errorCode,v.player_error_details=JSON.stringify(J.errorDetail));return v}; g.q.getPresentingPlayerType=function(v){if(this.appState===1)return 1;if(he(this))return 3;var J;if(v&&((J=this.P1)==null?0:J.b2(this.getCurrentTime())))return 2;var G;return g.WG(this.getVideoData())&&((G=this.tR)==null?0:G.b2())?2:this.zi().getPlayerType()}; g.q.Qh=function(){return g.WG(this.getVideoData())&&this.tR?this.tR.Qh():!1}; g.q.getPlayerStateObject=function(v){return this.getPresentingPlayerType()===3?this.WO.tV.getPlayerState():this.oH(v).getPlayerState()}; g.q.getAppState=function(){return this.appState}; g.q.zye=function(v){switch(v.type){case "loadedmetadata":this.al.start();v=g.n(this.Lb);for(var J=v.next();!J.done;J=v.next())J=J.value,sH2(this,J.id,J.kvU,J.CzH,void 0,!1);this.Lb=[];break;case "loadstart":this.n0.JZ("gv");break;case "progress":case "timeupdate":EP(v.target.dK())>=2&&this.n0.JZ("l2s");break;case "playing":g.$g&&this.al.start();if(g.yW(this.EB))v=!1;else{var G=this.zi();J=g.Zw(this.c$());v=this.mediaElement.hU("display")==="none"||Lk(this.mediaElement.getSize())===0;var K=Ep(this.template), V=G.getVideoData();G=g.gy(this.EB);V=Kh(V);J=!K||J||G||V||this.EB.wh;v=v&&!J}v&&(v=this.zi(),v.NS(),this.getVideoData().Vn||(this.getVideoData().Vn=1,this.zT(),v.playVideo()))}}; g.q.Y1l=function(v){this.kB.Tr("onLoadProgress",v)}; g.q.Ryt=function(){this.kB.publish("playbackstalledatstart")}; g.q.krH=function(v,J){this.kB.publish("sabrCaptionsDataLoaded",v,J)}; g.q.Ziw=function(v){var J;(J=this.zi())==null||J.Dd(v)}; g.q.pvr=function(v){var J;(J=this.zi())==null||J.Kb(v)}; g.q.BB7=function(v){v=IF(this,this.zi());v=Lc(this,v.getCurrentTime(),v);this.kB.UN("onVideoProgress",v);this.EB.im&&h4B(this,this.visibility.hh())&&this.pauseVideo()}; g.q.p1r=function(){this.kB.UN("onAutoplayBlocked");var v,J=(v=this.zi())==null?void 0:v.getVideoData();J&&(J.yK=!0);this.C("embeds_enable_autoplay_and_visibility_signals")&&g.Of(this.EB)&&(v={autoplayBrowserPolicy:Mb(),autoplayIntended:Q8(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.ql("embedsAutoplayStatusChanged",v))}; g.q.J7r=function(){this.kB.publish("progresssync")}; g.q.S1U=function(){this.kB.Tr("onPlaybackPauseAtStart")}; g.q.tue=function(v){if(this.getPresentingPlayerType()===1){g.Bs(v,1)&&!g.H(v.state,64)&&this.O$().isLivePlayback&&this.Qn().isAtLiveHead()&&this.kB.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Bs(v,2)){if(this.L0&&this.L0.endTimeMs>=(this.getDuration()-1)*1E3){e4m(this);return}jHw(this)}if(g.H(v.state,128)){var J=v.state;this.cancelPlayback(5);J=J.c8;JSON.stringify({errorData:J,debugInfo:this.getDebugText(!0)});this.kB.UN("onError",gRX(J.errorCode));this.kB.Tr("onDetailedError",{errorCode:J.errorCode, errorDetail:J.errorDetail,message:J.errorMessage,messageKey:J.jw,cpn:J.cpn});(0,g.yR)()-this.EB.rJ>6048E5&&this.kB.Tr("onReloadRequired")}J={};if(v.state.isPlaying()&&!v.state.isBuffering()&&!Au("pbresume","ad_to_video")&&Au("_start","ad_to_video")){var G=this.getVideoData();J.clientPlaybackNonce=G.clientPlaybackNonce;G.videoId&&(J.videoId=G.videoId);g.N0(J,"ad_to_video");cB("pbresume",void 0,"ad_to_video");plL(this.tI)}this.kB.publish("applicationplayerstatechange",v)}}; g.q.Iu=function(v){this.getPresentingPlayerType()!==3&&this.kB.publish("presentingplayerstatechange",v)}; g.q.If=function(v){te(this,EC(v.state));g.H(v.state,1024)&&this.kB.isMutedByMutedAutoplay()&&(ln(this,{muted:!1,volume:this.Xz.volume},!1),Ty(this,!1))}; g.q.bKH=function(v,J){v==="newdata"&&A88(this);this.kB.publish("applicationvideodatachange",v,J)}; g.q.g54=function(v,J){this.kB.Tr("onPlaybackAudioChange",this.kB.getAudioTrack().hR.name);this.kB.publish("internalaudioformatchange",this.kB.getAudioTrack().hR.id,J)}; g.q.Imr=function(v){var J=this.zi().getVideoData();v===J&&this.kB.UN("onPlaybackQualityChange",v.X.video.quality)}; g.q.O3=function(){var v=this.WO.Z[2]||null;if(v){var J=v.getVideoData();v=v.CT();var G;(G=this.zi())==null||G.uw("ssdai",{cleanaply:1,acpn:J==null?void 0:J.clientPlaybackNonce,avid:J.videoId,ccpn:v,sccpn:this.O$().clientPlaybackNonce===v?1:0,isDai:this.O$().enableServerStitchedDai?1:0});delete this.WO.Z[2]}}; g.q.UjB=function(v,J){this.Q5(v,this.zi(),J)}; g.q.Q5=function(v,J,G){this.logger.debug(function(){return"on video data change "+v+", player type "+J.getPlayerType()+", vid "+G.videoId}); this.EB.GG()&&J.uw("vdc",{type:v,vid:G.videoId||"",cpn:G.clientPlaybackNonce||""});J===this.Qn()&&(this.EB.wP=G.oauthToken);if(J===this.Qn()){this.getVideoData().enableServerStitchedDai&&!this.P1?(this.Qn().uw("sdai",{initSstm:1}),this.P1=this.C("html5_enable_ssdai_transition_with_only_enter_cuerange")?new NYs(this.kB,this.EB,this.Qn(),this):new g.XW(this.kB,this.EB,this.Qn(),this)):!this.getVideoData().enableServerStitchedDai&&this.P1&&(this.P1.dispose(),this.P1=null);var K,V;!g.WG(this.getVideoData())|| v!=="newdata"&&v!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((K=this.eO.T)==null?void 0:(V=K.getVideoData())==null?void 0:V.clientPlaybackNonce)?!g.WG(this.getVideoData())&&this.tR&&(this.tR.dispose(),this.tR=null):(BYL(this.eO),this.C("html5_ssap_cleanup_ad_player_on_new_data")&&this.O3(),K=uH(this.eO,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.eO.enqueue(K,!0),Za(this.eO,0,this.getDuration(1)*1E3,[K]),Ijw(this.eO,this.getVideoData().clientPlaybackNonce,[K]),this.tR&&(this.tR.dispose(), this.tR=null),this.tR=new WBB(this.kB,this.eO,this.Qn()),this.WO.Qn().sx(this.tR))}if(v==="newdata")this.logger.debug("new video data, destroy modules"),hm(this.tI,2),this.kB.publish("videoplayerreset",J);else{if(!this.mediaElement)return;v==="dataloaded"&&(this.Qn()===this.zi()?(NX(G.gh,G.kV),o9B(this)):Jgm(this));J.getPlayerType()===1&&(this.EB.jl&&Utt(this),this.getVideoData().isLivePlayback&&!this.EB.T_&&this.qI("html5.unsupportedlive",2,"DEVICE_FALLBACK"),G.isLoaded()&&((W3F(G)||this.getVideoData().uU)&& this.kB.publish("legacyadtrackingpingchange",this.getVideoData()),G.hasProgressBarBoundaries()&&Dtm(this)));this.kB.publish("videodatachange",v,G,J.getPlayerType())}this.kB.UN("onVideoDataChange",{type:v,playertype:J.getPlayerType()});this.Et();(K=G.hA)?this.yR.Bc(K,G.clientPlaybackNonce):ups(this.yR)}; g.q.xw=function(){nc(this,null);this.kB.Tr("onPlaylistUpdate")}; g.q.lml=function(v){delete this.S8[v.getId()];this.Qn().removeCueRange(v);a:{v=this.getVideoData();var J,G,K,V,Y,r,E,e,P,D,t=((J=v.Gi)==null?void 0:(G=J.contents)==null?void 0:(K=G.singleColumnWatchNextResults)==null?void 0:(V=K.autoplay)==null?void 0:(Y=V.autoplay)==null?void 0:Y.sets)||((r=v.Gi)==null?void 0:(E=r.contents)==null?void 0:(e=E.twoColumnWatchNextResults)==null?void 0:(P=e.autoplay)==null?void 0:(D=P.autoplay)==null?void 0:D.sets);if(t)for(J=g.n(t),G=J.next();!G.done;G=J.next())if(G= G.value,V=K=void 0,G=G.autoplayVideo||((K=G.autoplayVideoRenderer)==null?void 0:(V=K.autoplayEndpointRenderer)==null?void 0:V.endpoint),K=g.N(G,g.ig),Y=V=void 0,G!=null&&((V=K)==null?void 0:V.videoId)===v.videoId&&((Y=K)==null?0:Y.continuePlayback)){v=G;break a}v=null}(J=g.N(v,g.ig))&&this.kB.lw("onPlayVideo",{sessionData:{autonav:"1",itct:v==null?void 0:v.clickTrackingParams},videoId:J.videoId,watchEndpoint:J})}; g.q.Yh=function(v){var J=this;v!==this.appState&&(this.logger.debug(function(){return"app state change "+J.appState+" -> "+v}),v===2&&this.getPresentingPlayerType()===1&&(te(this,-1),te(this,5)),this.appState=v,this.kB.publish("appstatechange",v))}; g.q.qI=function(v,J,G,K,V){this.Qn().ze(v,J,G,K,V)}; g.q.eQ=function(v,J){this.Qn().handleError(new L6(v,J))}; g.q.isAtLiveHead=function(v,J){J=J===void 0?!1:J;var G=this.oH(v);if(!G)return this.WO.T.isAtLiveHead();v=Bl(this,G);G=IF(this,G);return v!==G?v.isAtLiveHead(Lc(this,G.getCurrentTime(),G),!0):v.isAtLiveHead(void 0,J)}; g.q.Hi=function(){var v=this.oH();return v?Bl(this,v).Hi():this.WO.T.Hi()}; g.q.seekTo=function(v,J,G,K,V){J=J!==!1;if(K=this.oH(K))this.appState===2&&sp(this),this.cG(K)?yD(this)?this.P1.seekTo(v,{seekSource:V},J,G):this.zS.seekTo(v,{seekSource:V},J,G):g.WG(this.getVideoData())&&this.tR?this.tR.seekTo(v,{NF:!J,xt:G,nK:"application",seekSource:V}):K.seekTo(v,{NF:!J,xt:G,nK:"application",seekSource:V})}; g.q.seekBy=function(v,J,G,K){this.seekTo(this.getCurrentTime()+v,J,G,K)}; g.q.KUY=function(){this.kB.UN("SEEK_COMPLETE")}; g.q.c7h=function(){this.kB.lw("onAbnormalityDetected")}; g.q.Gre=function(v){this.kB.lw("onSnackbarMessage",v)}; g.q.DjB=function(v){var J=this.zi(),G=J.getVideoData();if(this.appState===1||this.appState===2)G.startSeconds=v;this.appState===2?g.H(J.getPlayerState(),512)||sp(this):this.kB.UN("SEEK_TO",v)}; g.q.eyb=function(){this.kB.publish("airplayactivechange");this.EB.C("html5_external_airplay_events")&&this.kB.Tr("onAirPlayActiveChange",this.kB.MI())}; g.q.djh=function(){this.kB.publish("airplayavailabilitychange");this.EB.C("html5_external_airplay_events")&&this.kB.Tr("onAirPlayAvailabilityChange",this.kB.Zb())}; g.q.showAirplayPicker=function(){var v;(v=this.zi())==null||v.ir()}; g.q.ZYY=function(){this.kB.publish("beginseeking")}; g.q.v5r=function(){this.kB.publish("endseeking")}; g.q.getStoryboardFormat=function(v){return(v=this.oH(v))?Bl(this,v).getStoryboardFormat():this.WO.T.getStoryboardFormat()}; g.q.DM=function(v){return(v=this.oH(v))?Bl(this,v).getVideoData().DM():this.WO.T.DM()}; g.q.cG=function(v){v=v||this.zi();var J=!1;if(v){v=v.getVideoData();if(yD(this))v=v===this.P1.playback.getVideoData();else a:if(J=this.zS,v===J.T.getVideoData()&&J.X.length)v=!0;else{J=g.n(J.X);for(var G=J.next();!G.done;G=J.next())if(v.E1===G.value.E1){v=!0;break a}v=!1}J=v}return J}; g.q.G9=function(v,J,G,K,V,Y,r,E){this.logger.debug(function(){return"Adding video to timeline id="+v.video_id+"\n lengthMs="+K+" enterTimeMs="+V}); var e="",P=yD(this),D;(D=this.zi())==null||D.uw("appattl",{sstm:this.P1?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:P});e=P?pe8(this.P1,v,J,G,K,V,Y,r,E):tM2(this.zS,v,G,K,V,Y);this.logger.debug(function(){return"Video added to timeline id="+v.video_id+" timelinePlaybackId="+e}); return e}; g.q.X$=function(v,J,G,K,V,Y,r,E){if(yD(this)){var e=pe8(this.P1,v,J,G,K,V,Y,r,E);this.logger.debug(function(){return"Remaining video added to timeline id="+v.video_id+" timelinePlaybackId="+e})}return""}; g.q.hd=function(v){var J;(J=this.P1)==null||J.hd(v)}; g.q.WN=function(v,J){v=v===void 0?-1:v;J=J===void 0?Infinity:J;yD(this)||lAf(this.zS,v,J)}; g.q.z0=function(v,J,G){if(yD(this)){var K=this.P1,V=K.a$.get(v);V?(G===void 0&&(G=V.dB),V.durationMs=J,V.dB=G):K.nZ("Invalid_timelinePlaybackId_"+v+"_specified")}else{K=this.zS;V=null;for(var Y=g.n(K.X),r=Y.next();!r.done;r=Y.next())if(r=r.value,r.E1===v){V=r;break}V?(G===void 0&&(G=V.dB),R1F(K,V,J,G)):jo(K,"InvalidTimelinePlaybackId timelinePlaybackId="+v)}}; g.q.enqueueVideoByPlayerVars=function(v,J,G,K){G=G===void 0?Infinity:G;K=K===void 0?"":K;this.cG();v=new g.FP(this.EB,v);K&&(v.E1=K);tFj(this,v,J,G)}; g.q.queueNextVideo=function(v,J,G,K,V){G=G===void 0?NaN:G;v=this.preloadVideoByPlayerVars(v,J===void 0?1:J,G,K===void 0?"":K,V===void 0?"":V);J=this.zi();v&&J&&(this.C("html5_check_queue_on_data_loaded")?this.B().supportsGaplessShorts()&&J.getVideoData().U&&(G=this.o0,K=this.vC.K,G.L!==v&&(G.X=J,G.L=v,G.Z=1,G.T=v.getVideoData(),G.J=K,G.T.isLoaded()?G.j():G.T.subscribe("dataloaded",G.j,G))):(G=HKw(J,v,this.vC.K),G!=null?(J.uw("sgap",G),J.getVideoData().U&&J.QG(!1)):(v=v.getVideoData(),J=this.o0,J.T!== v&&(J.T=v,J.Z=1,v.isLoaded()?J.K():J.T.subscribe("dataloaded",J.K,J)))))}; g.q.vY=function(v,J,G,K){var V=this;G=G===void 0?0:G;K=K===void 0?0:K;var Y=this.zi();Y&&Bl(this,Y).tD();ohX(this.vC,v,J,G,K).then(function(){V.kB.Tr("onQueuedVideoLoaded")},function(){})}; g.q.Rf=function(){return this.vC.Rf()}; g.q.gO=function(v){var J=this.vC.T;return J?J.R2(v):!1}; g.q.clearQueue=function(v,J){v=v===void 0?!1:v;J=J===void 0?!1:J;this.logger.debug("Clearing queue");this.vC.clearQueue(v,J)}; g.q.loadVideoByPlayerVars=function(v,J,G,K,V,Y){J=J===void 0?1:J;var r=this.Qn();if(J===2&&this.O$().enableServerStitchedDai&&r&&!r.YK())return r.uw("lvonss",{vid:(v==null?void 0:v.videoId)||"",ptype:J}),!1;var E=!1;r=new g.FP(this.EB,v);r.reloadPlaybackParams=Y;g.is(this.EB)&&!r.Qu&&Go(this.n0);var e;Y=this.n0;var P=(e=r.RY)!=null?e:"";Y.timerName=P;this.n0.D0("pl_i");this.C("web_player_early_cpn")&&r.clientPlaybackNonce&&this.n0.infoGel({clientPlaybackNonce:r.clientPlaybackNonce});if(sum(r).supportsVp9Encoding=== !1){var D;(D=this.zi())==null||D.uw("noVp9",{})}if(this.B().supportsGaplessShorts()){e=Vqt(this.vC,r,J);if(e==null){te(this,-1);v=this.vC;v.app.B().C("html5_gapless_new_slr")?pc(v.app,"gaplessshortslooprange"):v.app.setLoopRange(null);v.app.getVideoData().Jk=!0;var t;(t=v.T)==null||t.Vl();var B;(B=v.T)==null||B.ID();G={nK:"gapless_to_next_video",seekSource:60};K=g.DI(v.app.B().experiments,"html5_gapless_seek_offset");var I;(I=v.app.zi())==null||I.seekTo(KBt(v)+K,G);if(!v.app.getPlayerStateObject(J).isPlaying()){var h; (h=v.app.zi())==null||h.playVideo(!0)}if(v.app.B().C("html5_short_gapless_unlisten_after_seek")){var R;(R=v.app.zi())==null||R.gs()}v.j();return!0}I=this.C("html5_shorts_gapless_preload_fallback");h=this.vC.T;I&&h&&!h.Sl()&&(R=h.getVideoData(),R=this.EB.C("html5_autonav_autoplay_in_preload_key")?Op(this,J,R):Up(this,J,R.videoId,R.E1),this.WO.L.set(R,h,3600));this.vC.clearQueue(I);var T;(T=this.zi())==null||T.uw("sgap",{f:e})}if(V){for(;r.e_.length&&r.e_[0].isExpired();)r.e_.shift();E=r.e_.length- 1;E=E>0&&V.X(r.e_[E])&&V.X(r.e_[E-1]);r.e_.push(V)}G||(v&&aaj(v)?(Q5(this.EB)&&!this.ih&&(v.fetch=0),nc(this,v)):this.playlist&&nc(this,null),v&&(this.ih=GZ(!1,v.external_list)));this.kB.publish("loadvideo");J=this.GP(r,J,K);E&&this.qI("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+r.e_.join()).replace(/[;:,]/g,"_"));return J}; g.q.preloadVideoByPlayerVars=function(v,J,G,K,V){J=J===void 0?1:J;G=G===void 0?NaN:G;K=K===void 0?"":K;V=V===void 0?"":V;var Y="";if(this.EB.C("html5_autonav_autoplay_in_preload_key"))Y=IVm(this,J,v,V);else{var r=rs(v);Y=Up(this,J,r,V)}if(this.WO.L.get(Y))return this.logger.debug(function(){return"already preloaded "+Y}),null; v=new g.FP(this.EB,v);V&&(v.E1=V);return Bb2(this,v,J,G,K)}; g.q.setMinimized=function(v){this.visibility.setMinimized(v);(v=wlt(this.tI))&&(this.isMinimized()?v.load():v.unload());this.kB.publish("minimized")}; g.q.setInline=function(v){this.visibility.setInline(v)}; g.q.setInlinePreview=function(v){this.visibility.setInline(v)}; g.q.Mp=function(v){z4m(this,v)||this.visibility.Mp(v)}; g.q.setSqueezeback=function(v){this.visibility.setSqueezeback(v)}; g.q.Zl=function(){var v,J=(v=this.mediaElement)==null?void 0:v.ZZ();J&&(this.EB.OF&&Ih(D1(function(){return document.exitFullscreen()}),function(){}),Ih(D1(function(){return nq(J)}),function(){}))}; g.q.v2Y=function(){this.mediaElement.ZZ();this.mediaElement.ZZ().webkitPresentationMode==="picture-in-picture"?this.Mp(!0):this.Mp(!1)}; g.q.togglePictureInPicture=function(){var v=this.zi();v&&v.togglePictureInPicture()}; g.q.GP=function(v,J,G){J=J===void 0?1:J;this.logger.debug(function(){return"start load video, id "+v.videoId+", type "+J}); Au("_start",this.n0.timerName)||g.jk(mf)(void 0,this.n0.timerName);var K=!1,V=Yst(this,J,v,!1);V?(K=!0,v.dispose()):(V=Pl(this,J,v,!0,G),(this.C("html5_onesie")||this.C("html5_load_before_stop"))&&V.GE()&&V.pH(),this.al.stop(),J===1&&J!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,J),this.cn(V));V===this.Qn()&&(this.EB.wP=v.oauthToken);if(!V.GE())return!1;if(V===this.Qn())return this.Yh(1),G=sp(this),K&&this.C("html5_player_preload_ad_fix")&&V.getPlayerType()===1&& V.n1()&&this.Q5("dataloaded",V,V.getVideoData()),G;V.iq();return!0}; g.q.cueVideoByPlayerVars=function(v,J){var G=this;J=J===void 0?1:J;var K=this.Qn();if(this.O$().enableServerStitchedDai&&K&&!K.YK()&&v&&Object.keys(v).length>0)K.uw("qvonss",{vid:(v==null?void 0:v.videoId)||"",ptype:J});else if(v&&aaj(v))if(this.j1=!0,nc(this,v),(v=g.oV(this.playlist))&&v.B1())mo(this,v,J);else this.playlist.onReady(function(){dG(G)}); else{J||(J=this.getPresentingPlayerType());J===1&&this.xw();K=new g.FP(this.EB,v);var V=g.Of(this.EB)&&!this.EB.Ti&&J===1&&!K.isAd()&&!K.a$;this.kB.publish("cuevideo");V?(this.zi().getVideoData().loading=!0,CH2(K,v?v:{}).then(function(Y){mo(G,Y,J)}),K.dispose()):mo(this,K,J)}}; g.q.Gx=function(v,J,G,K,V,Y,r){if(!v&&!G)throw Error("Playback source is invalid");if(x$(this.EB)||g.pX(this.EB))return J=J||{},J.lact=yy(),J.vis=this.kB.getVisibilityState(),this.kB.lw("onPlayVideo",{videoId:v,watchEndpoint:Y,sessionData:J,listId:G}),!1;cbF(this.n0);this.n0.reset();v={video_id:v};K&&(v.autoplay="1");K&&(v.autonav="1");Y&&(v.player_params=Y.playerParams);r&&(v.oauth_token=r);G?(v.list=G,this.loadPlaylist(v)):this.loadVideoByPlayerVars(v,1);return!0}; g.q.cuePlaylist=function(v,J,G,K){this.j1=!0;n9m(this,v,J,G,K)}; g.q.loadPlaylist=function(v,J,G,K){this.j1=!1;n9m(this,v,J,G,K)}; g.q.Dh=function(){return this.kB.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.tS())}; g.q.wg=vF(13); g.q.nextVideo=function(v,J){var G=g.$J(this.Qn().getVideoData());g.X5(this.kB)&&G?this.Gx(G.videoId,J?G.vT:G.sessionData,G.playlistId,J,void 0,G.u_||void 0):this.ih?this.kB.Tr("onPlaylistNext"):this.getPresentingPlayerType()===3?x1(this.tI).nextVideo():!this.playlist||Q5(this.EB)&&!this.kB.isFullscreen()||(this.playlist.tS(v)&&Hs2(this.playlist,AbU(this.playlist)),this.playlist.loaded?(v=J&&this.EB.C("html5_player_autonav_logging"),J&&this.kB.publish("playlistautonextvideo"),this.GP(g.oV(this.playlist,void 0, J,v),1)):this.j1=!1)}; g.q.previousVideo=function(v){this.ih?this.kB.Tr("onPlaylistPrevious"):this.getPresentingPlayerType()===3?x1(this.tI).Y1():!this.playlist||Q5(this.EB)&&!this.kB.isFullscreen()||(this.playlist.z_(v)&&Hs2(this.playlist,F7L(this.playlist)),this.playlist.loaded?this.GP(g.oV(this.playlist),1):this.j1=!1)}; g.q.playVideoAt=function(v){this.ih?this.kB.Tr("onPlaylistIndex",v):this.playlist&&(this.playlist.loaded?this.GP(g.oV(this.playlist,v),1):this.j1=!1,Hs2(this.playlist,v))}; g.q.getPlaylist=function(){return this.playlist}; g.q.PT=vF(25);g.q.HKt=function(v){this.kB.UN("onCueRangeEnter",v.getId())}; g.q.uui=function(v){this.kB.UN("onCueRangeExit",v.getId())}; g.q.CU=function(){var v=g.Bv(this.c$());v&&v.CU()}; g.q.EX=function(v,J,G){var K=this.oH(J);if(K){var V=this.O$();if(g.WG(V)){if(this.tR)if(this.C("html5_ssap_enable_cpn_triggered_media_end")&&K.getPlayerType()===2&&this.tR.b2()&&(K=this.Qn()),J===1)for(var Y=gm(this.tR,V.clientPlaybackNonce),r=g.n(v),E=r.next();!E.done;E=r.next())E=E.value,E.start+=Y,E.end+=Y,E.Z7=Y,E.Z=V.clientPlaybackNonce;else if(this.C("html5_ssap_enable_cpn_triggered_media_end")&&J===2)for(this.getPresentingPlayerType(),V=g.n(v),Y=V.next();!Y.done;Y=V.next())Y.value.Z=this.tR.E2(); V=g.n(v);for(Y=V.next();!Y.done;Y=V.next())r=void 0,Y.value.playerType=(r=J)!=null?r:1}K.EX(v,G);J&&this.getPresentingPlayerType()!==J||So(this,"cuerangesadded",v)}}; g.q.ey=function(v,J){var G=this.oH(J);G&&(G.ey(v),J&&this.getPresentingPlayerType()!==J||So(this,"cuerangesremoved",v))}; g.q.kh=function(v){var J=this.zi()||this.Qn(),G=this.getPresentingPlayerType();return this.C("html5_ssap_enable_cpn_triggered_media_end")?J.kh(G,v):J.kh(G)}; g.q.QH4=function(){function v(){var K=J.screenLayer||(J.isMinimized()?3:0),V=g.LW(K);if(V&&V!=="UNDEFINED_CSN"){var Y=J.EB.C("web_player_attach_player_response_ve"),r=J.EB.C("web_playback_associated_ve");K={cpn:J.getVideoData().clientPlaybackNonce,csn:V};J.getVideoData().Mr&&(Y||r)&&(Y=g.lW(J.getVideoData().Mr),g.G8(V,Y),r&&(K.playbackVe=Y.getAsJson()));J.getVideoData().queueInfo&&(K.queueInfo=J.getVideoData().queueInfo);V={};J.C("web_playback_associated_log_ctt")&&J.getVideoData().j&&(V.cttAuthInfo= {token:J.getVideoData().j,videoId:J.getVideoData().videoId});g.ql("playbackAssociated",K,V)}else g.Zl(new g.Mk("CSN Missing or undefined during playback association"))} var J=this,G=this.zi();this.getPresentingPlayerType();XUU(this.n0,G.getVideoData(),lVm(this));zy(this)&&this.EB.L&&ZN(this.O$())==="embedded"&&this.Gh&&Math.random()<.01&&g.ql("autoplayTriggered",{intentional:this.intentionalPlayback});this.Gh=!1;plL(this.tI);this.C("web_player_defer_ad")&&Grr(this);this.kB.Tr("onPlaybackStartExternal");(this.EB.C("mweb_client_log_screen_associated"),aC(this.EB))||v();G={};this.getVideoData().j&&(G.cttAuthInfo={token:this.getVideoData().j,videoId:this.getVideoData().videoId}); G.sampleRate=20;aw("player_att",G);if(this.getVideoData().botguardData||this.C("fetch_att_independently"))g.bh(this.EB)||jN(this.EB)==="MWEB"?g.jQ(g.$q(),function(){RF(J)}):RF(this); this.Et();E9X(this);this.C("embeds_enable_autoplay_and_visibility_signals")&&g.Of(this.EB)&&(G={autoplayBrowserPolicy:Mb(),autoplayIntended:Q8(this.getVideoData()),autoplayStatus:fIf(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.ql("embedsAutoplayStatusChanged",G))}; g.q.LUh=function(){this.kB.publish("internalAbandon");wG(this)}; g.q.onApiChange=function(){var v=this.zi();this.EB.K&&v?this.kB.UN("onApiChange",v.getPlayerType()):this.kB.UN("onApiChange")}; g.q.h4b=function(){var v=this.mediaElement;v={volume:g.nk(Math.floor(v.getVolume()*100),0,100),muted:v.Op()};v.muted||Ty(this,!1);this.Xz=g.Ni(v);this.kB.UN("onVolumeChange",v)}; g.q.mutedAutoplay=function(v){var J=this.getVideoData().videoId;isNaN(this.uS)&&(this.uS=this.getVideoData().startSeconds);if((v==null?0:v.videoId)||J)this.loadVideoByPlayerVars({video_id:(v==null?0:v.videoId)?v==null?void 0:v.videoId:J,playmuted:!0,start:this.uS,muted_autoplay_duration_mode:v==null?void 0:v.durationMode}),this.kB.Tr("onMutedAutoplayStarts")}; g.q.onFullscreenChange=function(){var v=p3t(this);this.y5(v?1:0);ygm(this,!!v)}; g.q.y5=function(v){var J=!!v,G=!!this.zL()!==J;this.visibility.y5(v);this.template.y5(J);this.C("html5_media_fullscreen")&&!J&&this.mediaElement&&p3t(this)===this.mediaElement.ZZ()&&this.mediaElement.nI();this.template.resize();G&&this.n0.tick("fsc");G&&(this.kB.publish("fullscreentoggled",J),v=this.O$(),J={fullscreen:J,videoId:v.Cw||v.videoId,time:this.getCurrentTime()},this.kB.getPlaylistId()&&(J.listId=this.kB.getPlaylistId()),this.kB.UN("onFullscreenChange",J))}; g.q.Oq=function(){return this.visibility.Oq()}; g.q.isFullscreen=function(){return this.visibility.isFullscreen()}; g.q.zL=function(){return this.visibility.zL()}; g.q.tKU=function(){var v=this.zL();v!==0&&v!==1||this.y5(p3t(this)?1:0);v=window.screen.width*window.screen.height;var J=window.outerHeight*window.outerWidth;this.EB.WE?(this.Um=Math.max(this.Um,v,J),v=J/this.Um0&&(e=Math.floor(P/1E3))}e=J?J.ON:e;var D={AD_BLOCK:this.T++,AD_BREAK_LENGTH:e,AUTONAV_STATE:Zf(this.player.B()),CA_TYPE:"image",CPN:E.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Hi()*1E3,LACT:yy(),LIVE_INDEX:J?this.Z++:1,LIVE_TARGETING_CONTEXT:J&&J.context?J.context:"",MIDROLL_POS:Y? Math.round(Y.start/1E3):0,MIDROLL_POS_MS:Y?Math.round(Y.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.f7().mX().height,P_W:this.player.f7().mX().width,YT_REMOTE:V?V.join(","):""},t=ek(Ei);Object.keys(t).forEach(function(I){t[I]!=null&&(D[I.toUpperCase()]=t[I].toString())}); G!==""&&(D.BISCOTTI_ID=G);G={};qA(v)&&(G.sts="20180",(J=this.player.B().forcedExperiments)&&(G.forced_experiments=J));var B=Vl(g.w0(v,D),G);return B.split("?").length!==2?UF(Error("Invalid AdBreakInfo URL")):g.KS(this.player.B(),E==null?void 0:E.oauthToken).then(function(I){if(I&&rx()){var h=Ny();aQ(h,I)}I=K.player.E4(h);h=iAm(K,B,D,E.isMdxPlayback,r);return g.WB(I,h,"/youtubei/v1/player/ad_break").then(function(R){return R})})}; un.prototype.reset=function(){this.Z=this.T=1};g.z($zs,un); $zs.prototype.X=function(v,J,G){J=J===void 0?{}:J;var K=J.BQ;var V=J.KY;var Y=J.cueProcessedMs;G=G===void 0?"":G;J=this.T;this.T++;var r=this.player.B().C("h5_disable_macro_substitution_in_get_ad_break")?v:vBs(this,v,{BQ:K,KY:V,cueProcessedMs:Y},G,J);if(r.split("?").length!==2)return Math.random()<.1&&g.Zl(Error("Invalid AdBreakInfo URL")),UF(Error("Invalid AdBreakInfo URL"));var E=this.player.getVideoData(1).isMdxPlayback,e=G;G=HgF.exec(r);G=G!=null&&G.length>=2?G[1]:"";v=MFj.test(r);var P=QH2.exec(r); P=P!=null&&P.length>=2?P[1]:"";var D=WEL.exec(r);D=D!=null&&D.length>=2&&!Number.isNaN(Number(D[1]))?Number(D[1]):1;var t=CYw.exec(r);t=t!=null&&t.length>=2?t[1]:"0";var B=cL(this.player.B().Ks),I=g.bd(this.player.getVideoData(1).Mr,!0);krF(this,I,r,e===""?"":e,this.player.B(),this.player.getVideoData(1));e={splay:!1,lactMilliseconds:String(yy()),playerHeightPixels:Math.trunc(this.player.f7().mX().height),playerWidthPixels:Math.trunc(this.player.f7().mX().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20180,autonavState:Zf(this.player.B())};if(E){E={};var h=this.player.B().tF;aVt(E,h?h.join(","):"")&&(e.mdxContext=E)}if(E=bgL.includes(B)?void 0:g.uR("PREF")){h=E.split(RegExp("[:&]"));for(var R=0,T=h.length;R1&&L[1].toUpperCase()==="TRUE"){I.user.lockedSafetyMode=!0;break}}e.autoCaptionsDefaultOn=FEF(E)}r=j0j.exec(r);(r=r!=null&&r.length>=2?r[1]:"")&&P&&(I.user.credentialTransferTokens= [{token:r,scope:"VIDEO"}]);r={contentPlaybackContext:e};e=this.player.getVideoData(1).getGetAdBreakContext();E=this.player.getVideoData(1).clientPlaybackNonce;h=Y!==void 0?Math.round(Y).toString():void 0;R=(K==null?0:K.context)?K.context:void 0;T=0;Y&&V&&!K&&(V=V.end-V.start,V>0&&(T=Math.floor(V/1E3)));K=(K=Math.trunc((K?K.ON:T)*1E3))?String(K):void 0;V=this.player.Hi()*1E3;V=Number.isNaN(V)?0:Math.trunc(V);J={adBlock:J,params:G,breakIndex:D,breakPositionMs:t,clientPlaybackNonce:E,topLevelDomain:B, isProxyAdTagRequest:v,context:I,overridePlaybackContext:r,cueProcessedMs:h,videoId:P?P:void 0,liveTargetingParams:R,breakLengthMs:K,driftFromHeadMs:V?String(V):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:e?e:void 0};return J7L(this,J)};var JNU={r5w:"replaceUrlMacros",o6B:"onAboutThisAdPopupClosed",hgi:"executeCommand"};GJL.prototype.gj=function(){return"adPingingEndpoint"}; GJL.prototype.pW=function(v,J,G){uCU(this.F4.get(),v,J,G)};oBw.prototype.gj=function(){return"changeEngagementPanelVisibilityAction"}; oBw.prototype.pW=function(v){this.S.lw("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:v})};Knf.prototype.gj=function(){return"loggingUrls"}; Knf.prototype.pW=function(v,J,G){v=g.n(v);for(var K=v.next();!K.done;K=v.next())K=K.value,uCU(this.F4.get(),K.baseUrl,J,G,K.attributionSrcMode)};g.z(YVU,g.X);g.z(Xw,g.X);g.q=Xw.prototype;g.q.addListener=function(v){this.listeners.push(v)}; g.q.removeListener=function(v){this.listeners=this.listeners.filter(function(J){return J!==v})}; g.q.u1=function(v,J,G,K,V,Y,r,E){if(v==="")Ps("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(v!==this.T||G){this.T=v;this.L7.get().u1(v,J,G,K,V,Y,r,E);this.C7.get().u1(v,J,G,K,V,Y,r,E);var e;(e=this.Vj)==null||e.get().u1(v,J,G,K,V,Y,r,E);this.X.u1(v,J,G,K,V,Y,r,E);e=g.n(this.listeners);for(var P=e.next();!P.done;P=e.next())P.value.u1(v,J,G,K,V,Y,r,E)}else Ps("Duplicate content video loaded signal")}; g.q.Dt=function(){this.T&&this.dF(this.T)}; g.q.dF=function(v){this.T=void 0;for(var J=g.n(this.listeners),G=J.next();!G.done;G=J.next())G.value.dF(v)};k0.prototype.Uo=function(v,J,G,K,V){r72(this);this.J=!J&&G===0;var Y=this.S.getVideoData(1),r=this.S.getVideoData(2);Y&&(this.contentCpn=Y.clientPlaybackNonce,this.videoId=Y.videoId,this.T=Y.j);r&&(this.adCpn=r.clientPlaybackNonce,this.adVideoId=r.videoId,this.adFormat=r.adFormat);this.L=v;K<=0?(r72(this),this.J=!J&&G===0):(this.actionType=this.J?J?"unknown_type":"video_to_ad":J?"ad_to_video":"ad_to_ad",this.videoStreamType=V?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.Z=!0,Au("_start",this.actionType)&&ePL(this)))}; k0.prototype.reset=function(){return new k0(this.S)};g.z(cl,g.X);cl.prototype.addCueRange=function(v,J,G,K,V,Y,r){Y=Y===void 0?3:Y;r=r===void 0?1:r;this.T.has(v)?Ps("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:v}):(v=new PVm(v,J,G,K,Y),this.T.set(v.id,{KY:v,listener:V,Nd:r}),this.S.oR([v],r))}; cl.prototype.removeCueRange=function(v){var J=this.T.get(v);J?(this.S.yS([J.KY],J.Nd),this.T.delete(J.KY.id)):Ps("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:v})}; cl.prototype.onCueRangeEnter=function(v){if(this.T.has(v.id))this.T.get(v.id).listener.onCueRangeEnter(v.id)}; cl.prototype.onCueRangeExit=function(v){if(this.T.has(v.id))this.T.get(v.id).listener.onCueRangeExit(v.id)}; g.z(PVm,g.o8);NQ.prototype.Da=function(v){this.S.Da(v)}; NQ.prototype.TN=function(v){var J=g.Om.apply(1,arguments);v==="onAdStart"||v==="onAdEnd"?this.S.UN.apply(this.S,[v].concat(g.l(J))):this.S.lw.apply(this.S,[v].concat(g.l(J)))};aF.prototype.SK=function(v){return v&&Ae(this)};var s0w=null;g.z(dzw,g.qU);dzw.prototype.Hg=function(v){return this.T.hasOwnProperty(v)?this.T[v].Hg():{}}; g.ks("ytads.bulleit.getVideoMetadata",function(v){return Fw().Hg(v)}); g.ks("ytads.bulleit.triggerExternalActivityEvent",function(v,J,G){var K=Fw();G=nBm(G);G!==null&&K.publish(G,{queryId:v,viewabilityString:J})});g.q=Hl.prototype;g.q.LJ=function(v,J){if(!this.T.has(v))return{};if(J==="seek"){J=!1;J=J===void 0?!1:J;var G=UX(l4).TJ(v,{});G?lI(G):J&&(v=UX(l4).B0(null,W_(),!1,v),v.AV=3,cCU([v]));return{}}J=lOt(J);if(J===null)return{};var K=this.S.d6();if(!K)return{};var V=this.S.getPresentingPlayerType(!0);if((G=this.S.getVideoData(V))==null||!G.isAd())return{};G={opt_adElement:K,opt_fullscreen:this.L7.get().isFullscreen()};return cIB(J,v,G)}; g.q.Ux=function(v,J,G,K,V){this.T.has(v)&&(K<=0||V<=0||UX(l4).Ux(v,J,G,K,V))}; g.q.Q3=function(v){var J;(J=this.T.get(v.queryId))==null||J.Q3()}; g.q.Tq=function(v){var J;(J=this.T.get(v.queryId))==null||J.Tq()}; g.q.tY=function(v){var J;(J=this.T.get(v.queryId))==null||J.tY()}; g.q.uH=function(v){var J;(J=this.T.get(v.queryId))==null||J.uH()}; g.q.oU=function(v){var J;(J=this.T.get(v.queryId))==null||J.oU()};xzw.prototype.send=function(v,J,G,K){try{mzX(this,v,J,G,K===void 0?!1:K)}catch(V){}};g.z(SVr,xzw);fOs.prototype.send=function(v,J,G,K){var V=!1;try{if(K==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||K==="ATTRIBUTION_SRC_MODE_XHR_OPTION")V=!0,v=YiB(v);K=V;var Y=v.match(MC);if(Y[1]==="https")var r=v;else Y[1]="https",r=FB("https",Y[2],Y[3],Y[4],Y[5],Y[6],Y[7]);var E=v3w(r);Y=[];var e=H9m(r)&&this.cH.get().S.B().experiments.OB("add_auth_headers_to_remarketing_google_dot_com_ping");if(qA(r)||e)Y.push({headerType:"USER_AUTH"}),Y.push({headerType:"PLUS_PAGE_ID"}),Y.push({headerType:"VISITOR_ID"}),Y.push({headerType:"EOM_VISITOR_ID"}), Y.push({headerType:"AUTH_USER"}),Y.push({headerType:"DATASYNC_ID"});this.T.send({baseUrl:r,scrubReferrer:E,headers:Y},J,G,K)}catch(P){}};bn.prototype.RK=function(){return this.S.RK(1)};g.z(jY,g.X);g.q=jY.prototype;g.q.wE=function(){return this.S.getVideoData(1).clientPlaybackNonce}; g.q.addListener=function(v){this.listeners.push(v)}; g.q.removeListener=function(v){this.listeners=this.listeners.filter(function(J){return J!==v})}; g.q.u1=function(){this.A_.clear();this.GM=null;this.Mw.get().clear()}; g.q.dF=function(){}; g.q.iiw=function(v,J,G,K,V){J.videoId==="nPpU29QrbiU"&&this.S.uw("ads_ssm_vdc_s",{pt:G,dvt:v});sr(this.cH.get())&&v!=="dataloaded"||A7j(this,J,G);if(Ae(this.cH.get())&&v==="newdata"&&V!==void 0){v=this.wE();var Y=J.clientPlaybackNonce,r={};sj(this,"rte",(r.ec=Y,r.xc=K==null?void 0:K.clientPlaybackNonce,r.tr=V,r.pt=G,r.ia=Y!==v,r.ctp=df(Y),r));J=J.clientPlaybackNonce;K=K==null?void 0:K.clientPlaybackNonce;V=FnF(V);if(V!==1)if(K!==void 0)for(G=g.n(this.listeners),v=G.next();!v.done;v=G.next())v.value.oX(K, J,V);else Ps("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:J,transitionReason:String(V)});V=g.n(this.listeners);for(K=V.next();!K.done;K=V.next())K.value.uy(J)}}; g.q.n2B=function(v,J){v!==void 0&&(this.GM=v,J===void 0?Ps("Expected ad video start time on SS video changed"):this.A_.set(v,J));var G=this.S.getPresentingPlayerType(!0),K=this.S.getVideoData(G);this.S.getVideoData(1).uw("ads_ssvc",{pt:G,cpn:K==null?void 0:K.clientPlaybackNonce,crtt:this.S.getCurrentTime(1,!1),atlh:this.S.isAtLiveHead(),adstt:J});K?A7j(this,K,G):Ps("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.S.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:v})}; g.q.zf=function(v,J){var G=v.author,K=v.clientPlaybackNonce,V=v.isListed,Y=v.E1,r=v.title,E=v.Fz,e=v.XB,P=v.isMdxPlayback,D=v.mx,t=v.mdxEnvironment,B=v.isAutonav,I=v.xK,h=v.Qu,R=v.M0,T=v.videoId||"",L=v.profilePicture||"",O=v.kN||"",x=v.N5()||!1,f=v.i9()||!1;v=v.zE||void 0;Y=this.Mw.get().T.get(Y)||{layoutId:null,slotId:null};var c=this.S.getVideoData(1),b=c.yn();c=c.getPlayerResponse();J=1E3*this.S.getDuration(J);var M=1E3*this.S.getDuration(1),Jw,Kf,j8=(c==null?void 0:(Jw=c.playerConfig)==null? void 0:(Kf=Jw.daiConfig)==null?void 0:Kf.enableDai)||!1,a,C;Jw=(c==null?void 0:(a=c.playerConfig)==null?void 0:(C=a.daiConfig)==null?void 0:C.enablePreroll)||!1;return Object.assign({},Y,{videoId:T,author:G,clientPlaybackNonce:K,pc:J,rP:M,daiEnabled:j8,i_:Jw,isListed:V,yn:b,profilePicture:L,title:r,kN:O,Fz:E,XB:e,zE:v,isMdxPlayback:P,mx:D,mdxEnvironment:t,isAutonav:B,xK:I,Qu:h,M0:R,N5:x,i9:f})}; g.q.X4=function(){this.listeners.length=0;this.rQ=null;g.X.prototype.X4.call(this)};g.z(iQ,g.X);g.q=iQ.prototype;g.q.u1=function(){var v=this;Ae(this.cH.get())||(this.T=TD(function(){v.S.Sl()||v.S.Lq("ad",1)}))}; g.q.dF=function(){}; g.q.addListener=function(v){this.listeners.push(v)}; g.q.removeListener=function(v){this.listeners=this.listeners.filter(function(J){return J!==v})}; g.q.pn=function(){}; g.q.playVideo=function(){this.S.playVideo()}; g.q.pauseVideo=function(){this.S.pauseVideo()}; g.q.resumeVideo=function(v){this.FX(v)&&this.S.playVideo()}; g.q.FX=function(v){return this.S.getPlayerState(v)===2}; g.q.getCurrentTimeSec=function(v,J,G){var K=this.C7.get().GM;if(v===2&&!J&&K!==null)return MBm(this,K);W5(this.cH.get(),"html5_ssap_use_cpn_to_get_time")||(G=void 0);return G!==void 0?this.S.getCurrentTime(v,J,G):this.S.getCurrentTime(v,J)}; g.q.getVolume=function(){return this.S.getVolume()}; g.q.isMuted=function(){return this.S.isMuted()}; g.q.getPresentingPlayerType=function(){return this.S.getPresentingPlayerType(!0)}; g.q.getPlayerState=function(v){return this.S.getPlayerState(v)}; g.q.isFullscreen=function(){return this.S.isFullscreen()}; g.q.isAtLiveHead=function(){return this.S.isAtLiveHead()}; g.q.qO=function(v){this.S.qO(v)}; g.q.amh=function(){var v=this.S.getPresentingPlayerType(!0),J=this.getCurrentTimeSec(v,!1);if(v===2){v=g.n(this.listeners);for(var G=v.next();!G.done;G=v.next())G.value.Ho(J)}else if(v===1)for(v=g.n(this.NA),G=v.next();!G.done;G=v.next())G.value.pn(J)}; g.q.jAi=function(v){for(var J=g.n(this.listeners),G=J.next();!G.done;G=J.next())G.value.lQ(v,this.getPresentingPlayerType())}; g.q.onFullscreenToggled=function(v){for(var J=g.n(this.listeners),G=J.next();!G.done;G=J.next())G.value.onFullscreenToggled(v)}; g.q.onVolumeChange=function(){for(var v=g.n(this.listeners),J=v.next();!J.done;J=v.next())J.value.onVolumeChange()}; g.q.ip=function(){for(var v=this.S.isMinimized(),J=g.n(this.listeners),G=J.next();!G.done;G=J.next())G.value.ip(v)}; g.q.ov=function(v){for(var J=g.n(this.listeners),G=J.next();!G.done;G=J.next())G.value.ov(v)}; g.q.E$=function(){for(var v=this.S.f7().mX(),J=g.n(this.listeners),G=J.next();!G.done;G=J.next())G.value.YR(v)}; g.q.HC=function(v){for(var J=g.n(this.listeners),G=J.next();!G.done;G=J.next())G.value.HC(v)}; g.q.Qt=function(){for(var v=g.n(this.listeners),J=v.next();!J.done;J=v.next())J.value.Qt()};g.z(CVF,g.X);g.z(oX,g.X);oX.prototype.X4=function(){this.CQ.Sl()||this.CQ.get().removeListener(this);g.X.prototype.X4.call(this)};K$.prototype.fetch=function(v){var J=v.cW;return this.T.fetch(v.dY,{BQ:v.BQ===void 0?void 0:v.BQ,KY:J,cueProcessedMs:v.cueProcessedMs===void 0?0:v.cueProcessedMs}).then(function(G){return bAm(G,J)})};g.z(V1,g.X);g.q=V1.prototype;g.q.addListener=function(v){this.listeners.push(v)}; g.q.removeListener=function(v){this.listeners=this.listeners.filter(function(J){return J!==v})}; g.q.Yt=function(v){jtL(this,v,1)}; g.q.onAdUxClicked=function(v,J){YW(this,function(G){G.Fj(v,J)})}; g.q.Af=function(v){YW(this,function(J){J.kS(v)})}; g.q.bS=function(v){YW(this,function(J){J.Co(v)})}; g.q.N_4=function(v){YW(this,function(J){J.XZ(v)})};rX.prototype.reduce=function(v){switch(v.event){case "unknown":return}var J=v.identifier;var G=this.T[J];G?J=G:(G={o1:null,L8:-Infinity},J=this.T[J]=G);G=v.startSecs+v.T/1E3;if(!(G=this.T.startSecs&&G.startSecs<=this.T.startSecs+this.T.ON)){var K=void 0;if(Ru(this.cH.get())&&G.identifier!==((K=this.T)==null?void 0:K.identifier)){var V=K=void 0,Y=void 0,r=void 0;vD(this.F4.get(),"ocud","ccpi."+G.identifier+";ccpe."+G.event+";ccps."+G.startSecs+";\n ccpd."+G.ON+";pcpi."+((K=this.T)==null?void 0:K.identifier)+ ";pcpe."+((V=this.T)==null?void 0:V.event)+";\n pcps."+((Y=this.T)==null?void 0:Y.startSecs)+";pcpd."+((r=this.T)==null?void 0:r.ON)+";")}K=void 0;G.identifier!==((K=this.T)==null?void 0:K.identifier)&&Ps("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.T=G,viw(this,G)}}; g.q.X4=function(){this.X!=null&&(this.X.unsubscribe("cuepointupdated",this.MB,this),this.X=null);this.listeners.length=0;this.EP.length=0;g.X.prototype.X4.call(this)};Eg.prototype.addPlayerResponseForAssociation=function(v){this.S.addPlayerResponseForAssociation(v)};g.q=P4.prototype;g.q.G9=function(v,J,G,K,V,Y,r){return this.S.G9(v,J,G,K,V,Y,r)}; g.q.WN=function(v,J){this.S.WN(v,J)}; g.q.z0=function(v,J,G){this.S.z0(v,J,G)}; g.q.hd=function(v){this.S.hd(v)}; g.q.X$=function(v,J,G,K,V,Y,r){this.S.X$(v,J,G,K,V,Y,r)}; g.q.j_=function(v){return this.S.j_(v)}; g.q.finishSegmentByCpn=function(v,J,G){G=KPm(G);this.S.finishSegmentByCpn(v,J,G)};g.z(Y$m,g.X);g.z(rRw,g.X);g.z(q$s,g.X);g.z(EiF,g.X);g.z(eRF,g.X);g.z(DOL,g.X);DOL.prototype.Z=function(){return this.X};g.z(tSs,FV); tSs.prototype.L=function(v){var J=v.content;if(J.componentType==="shopping-companion")switch(v.actionType){case 1:case 2:v=this.T.getVideoData(1);this.T.lw("updateKevlarOrC3Companion",{contentVideoId:v&&v.videoId,shoppingCompanionCarouselRenderer:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.T,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:this.T.lw("updateKevlarOrC3Companion",{})}else if(J.componentType==="action-companion")switch(v.actionType){case 1:case 2:v=this.T.getVideoData(1); this.T.lw("updateKevlarOrC3Companion",{contentVideoId:v&&v.videoId,actionCompanionAdRenderer:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.T,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J.renderer&&(J=this.T.getVideoData(1),this.T.lw("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId})),this.T.lw("updateKevlarOrC3Companion",{})}else if(J.componentType==="image-companion")switch(v.actionType){case 1:case 2:v=this.T.getVideoData(1);this.T.lw("updateKevlarOrC3Companion", {contentVideoId:v&&v.videoId,imageCompanionAdRenderer:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.T,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J=this.T.getVideoData(1),this.T.lw("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId}),this.T.lw("updateKevlarOrC3Companion",{})}else if(J.componentType==="top-banner-image-text-icon-buttoned")switch(v.actionType){case 1:case 2:v=this.T.getVideoData(1);this.T.lw("updateKevlarOrC3Companion", {contentVideoId:v&&v.videoId,topBannerImageTextIconButtonedLayoutViewModel:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.T,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J.renderer&&(J=this.T.getVideoData(1),this.T.lw("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId})),this.T.lw("updateKevlarOrC3Companion",{})}else if(J.componentType==="banner-image")switch(v.actionType){case 1:case 2:v=this.T.getVideoData(1);this.T.lw("updateKevlarOrC3Companion", {contentVideoId:v&&v.videoId,bannerImageLayoutViewModel:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.T,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J=this.T.getVideoData(1),this.T.lw("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId}),this.T.lw("updateKevlarOrC3Companion",{})}else if(J.componentType==="ads-engagement-panel")switch(J=J.renderer,v.actionType){case 1:case 2:this.T.lw("updateEngagementPanelAction",J.addAction);this.T.lw("changeEngagementPanelVisibility", J.expandAction);break;case 3:this.T.lw("changeEngagementPanelVisibility",J.hideAction),this.T.lw("updateEngagementPanelAction",J.removeAction)}else if(J.componentType==="ads-engagement-panel-layout"){var G=J.renderer;switch(v.actionType){case 1:case 2:this.T.lw("updateEngagementPanelAction",{action:km(G.addAction),layoutId:J.layoutId,onLayoutVisibleCallback:J.T,interactionLoggingClientData:J.interactionLoggingClientData});this.T.lw("changeEngagementPanelVisibility",km(G.expandAction));break;case 3:this.T.lw("changeEngagementPanelVisibility", km(G.hideAction)),this.T.lw("updateEngagementPanelAction",{action:km(G.removeAction)})}}};g.z(Bof,id);g.q=Bof.prototype;g.q.init=function(v,J,G){id.prototype.init.call(this,v,J,G);g.ep(this.Z,"stroke-dasharray","0 "+this.X);this.Z.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.j.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.L.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.q.clear=function(){this.hide()}; g.q.hide=function(){vs(this);id.prototype.hide.call(this)}; g.q.show=function(){$p(this);id.prototype.show.call(this)}; g.q.sj=function(){this.hide()}; g.q.nD=function(){if(this.T){var v=this.T.getProgressState();v!=null&&v.current!=null&&g.ep(this.Z,"stroke-dasharray",v.current/v.seekableEnd*this.X+" "+this.X)}};g.z(IiX,Br);g.q=IiX.prototype; g.q.init=function(v,J,G){Br.prototype.init.call(this,v,J,G);if(J.image&&J.image.thumbnail)if(J.headline)if(J.description)if(J.backgroundImage&&J.backgroundImage.thumbnail)if(J.actionButton&&g.N(J.actionButton,g.Ze))if(v=J.durationMilliseconds||0,typeof v!=="number"||v<=0)g.fW(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+v));else if(J.navigationEndpoint){var K=this.api.getVideoData(2);if(K!=null){var V=J.image.thumbnail.thumbnails;V!=null&& V.length>0&&g.s8(g.Yy(V[0].url))&&(V[0].url=K.profilePicture,g.s8(g.Yy(K.profilePicture))&&VV2("VideoPlayer",239976093,"Expected non-empty profile picture."));V=J.backgroundImage.thumbnail.thumbnails;V!=null&&V.length>0&&g.s8(g.Yy(V[0].url))&&(V[0].url=K.Us());V=J.headline;V!=null&&g.s8(g.Yy(V.text))&&(V.text=K.author)}this.N.init(YP("ad-image"),J.image,G);this.j.init(YP("ad-text"),J.headline,G);this.Z.init(YP("ad-text"),J.description,G);this.RY.init(YP("ad-image"),J.backgroundImage,G);K=["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.j.element.classList.add("ytp-ad-action-interstitial-headline-light");this.Z.element.classList.add("ytp-ad-action-interstitial-description-light");K.push("ytp-ad-action-interstitial-action-button-dark");this.api.B().X&&(K.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),K.push("ytp-ad-action-interstitial-action-button-dark"));this.api.B().C("enable_unified_action_endcap_on_web")&& !this.api.B().X&&(K.push("ytp-ad-action-interstitial-action-button-unified"),this.BH.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.WH.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.uQ.classList.add("ytp-ad-action-interstitial-card-unified"),this.Ti.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.Z.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.Mr.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.j.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.YB.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.jl.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Sn(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,K);g.k(this,this.actionButton);this.actionButton.vH(this.BH); this.actionButton.init(YP("button"),g.N(J.actionButton,g.Ze),G);aJ(this.actionButton.element);K=Hq(this.actionButton.element);Fz(this.actionButton.element,K+" This link opens in new tab");this.navigationEndpoint=J.navigationEndpoint;this.L.G(this.YB,"click",this.JG,this);this.L.G(this.Ti,"click",this.JG,this);!this.api.B().C("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.B().X||this.L.G(this.Mr,"click",this.JG,this);this.T=this.qG?new RA(this.api,v):new ld(v);g.k(this,this.T);if(J.skipButton){(v= g.N(J.skipButton,t5S))&&this.T&&(this.skipButton=new IA(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,this.T,this.v3),g.k(this,this.skipButton),this.skipButton.vH(this.element),this.skipButton.init(YP("skip-button"),v,G));if(G=J.adBadgeRenderer)if(G=g.N(G,D_8))v=new dy(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,!0,!0),v.vH(this.jl),v.init(YP("simple-ad-badge"),G,this.macros),g.k(this,v);if(G=J.adInfoRenderer)if(G=g.N(G,Ss))v=new CR(this.api,this.layoutId,this.interactionLoggingClientData, this.rh,this.element,void 0,!0),v.vH(this.jl),v.init(YP("ad-info-hover-text-button"),G,this.macros),g.k(this,v)}else J.nonskippableOverlayRenderer&&(v=g.N(J.nonskippableOverlayRenderer,fa))&&this.T&&(this.X=new oA(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,this.T,!1),g.k(this,this.X),this.X.vH(this.element),this.X.init(YP("ad-preview"),v,G));J.countdownRenderer&&(J=J.countdownRenderer,g.N(J,B68)&&this.T&&(G=new Bof(this.api,this.layoutId,this.interactionLoggingClientData,this.rh, this.T),g.k(this,G),G.vH(this.element),G.init(YP("timed-pie-countdown"),g.N(J,B68),this.macros)));this.show();this.element.focus()}else g.fW(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.fW(Error("AdActionInterstitialRenderer has no button."));else g.fW(Error("AdActionInterstitialRenderer has no background AdImage."));else g.fW(Error("AdActionInterstitialRenderer has no description AdText."));else g.fW(Error("AdActionInterstitialRenderer has no headline AdText."));else g.fW(Error("AdActionInterstitialRenderer has no image."))}; g.q.clear=function(){g.O9(this.L);this.hide()}; g.q.show=function(){hRB(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.X&&this.X.show();Br.prototype.show.call(this)}; g.q.hide=function(){hRB(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.X&&this.X.hide();Br.prototype.hide.call(this)}; g.q.JG=function(){this.navigationEndpoint&&(this.layoutId?this.rh.executeCommand(this.navigationEndpoint,this.layoutId):g.fW(Error("Missing layoutId for ad action interstitial.")))};var RRw={iconType:"CLOSE"},IX=new g.Tx(320,63);g.z(stj,Br);g.q=stj.prototype; g.q.init=function(v,J,G){Br.prototype.init.call(this,v,J,G);this.L=J;this.N=g.vW(this.L.onClickCommands||[]);this.jl=this.L.onErrorCommand||null;if(v=this.L.contentSupportedRenderer)v=this.L.contentSupportedRenderer,J=this.L.adInfoRenderer||null,g.N(v,EY_)?(this.j=g.Gs("ytp-ad-overlay-ad-info-button-container",this.Z.element),liF(this,J),v=pSU(this,g.N(v,EY_))):g.N(v,eES)?(this.j=g.Gs("ytp-ad-overlay-ad-info-button-container",this.X.element),liF(this,J),v=LPF(this,g.N(v,eES))):g.N(v,PlA)?(this.j= g.Gs("ytp-ad-overlay-ad-info-button-container",this.T.element),liF(this,J),v=yRr(this,g.N(v,PlA))):(g.fW(Error("InvideoOverlayAdRenderer content could not be initialized.")),v=!1);v&&(this.show(),wS8(this,!0))}; g.q.clear=function(){wS8(this,!1);this.YB.reset();this.Ti=0;this.Z.hide();this.logVisibility(this.Z.element,!1);this.X.hide();this.logVisibility(this.X.element,!1);this.T.hide();this.logVisibility(this.T.element,!1);this.hide();this.dispose()}; g.q.GeB=function(){this.BH&&(this.layoutId?this.rh.executeCommand(this.BH,this.layoutId):g.fW(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.q.Vq=function(){a:{if(this.L&&this.L.closeButton&&this.L.closeButton.buttonRenderer){var v=this.L.closeButton.buttonRenderer;if(v.serviceEndpoint){v=[v.serviceEndpoint];break a}}v=[]}v=g.n(v);for(var J=v.next();!J.done;J=v.next())J=J.value,this.layoutId?this.rh.executeCommand(J,this.layoutId):g.fW(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.q.fZi=function(){this.RY||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.q.xm=function(){this.RY||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.xm("invideo-overlay")}; g.q.hwB=function(v){v.target===this.j&&g.Gs("ytp-ad-button",this.WH.element).click()};g.z(OU2,id);g.q=OU2.prototype;g.q.init=function(v,J,G){id.prototype.init.call(this,v,J,G);v=J.durationMs;this.Z=v==null||v===0?0:v+this.T.getProgressState().current*1E3;if(J.text)var K=J.text.templatedAdText;else J.staticMessage&&(K=J.staticMessage);this.messageText.init(YP("ad-text"),K,G);this.messageText.vH(this.X.element);this.L.show(100);this.show()}; g.q.clear=function(){this.hide()}; g.q.hide=function(){UOw(this,!1);id.prototype.hide.call(this);this.X.hide();this.messageText.hide();vs(this)}; g.q.show=function(){UOw(this,!0);id.prototype.show.call(this);$p(this);this.X.show();this.messageText.show()}; g.q.sj=function(){this.hide()}; g.q.nD=function(){if(this.T!=null){var v=this.T.getProgressState();v!=null&&v.current!=null&&(v=1E3*v.current,!this.Ti&&v>=this.Z?(this.L.hide(),this.Ti=!0):this.messageText&&this.messageText.isTemplated()&&(v=Math.max(0,Math.ceil((this.Z-v)/1E3)),v!==this.j&&(jr(this.messageText,{TIME_REMAINING:String(v)}),this.j=v)))}};g.z(xOw,Br);g.q=xOw.prototype; g.q.init=function(v,J,G){Br.prototype.init.call(this,v,J,{});J.image&&J.image.thumbnail?J.headline?J.description?J.actionButton&&g.N(J.actionButton,g.Ze)?(this.Z.init(YP("ad-image"),J.image,G),this.X.init(YP("ad-text"),J.headline,G),this.L.init(YP("ad-text"),J.description,G),v=["ytp-ad-underlay-action-button"],this.api.B().C("use_blue_buttons_for_desktop_player_underlay")&&v.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new Sn(this.api,this.layoutId,this.interactionLoggingClientData,this.rh, v),J.backgroundColor&&g.ep(this.element,"background-color",g.kp(J.backgroundColor)),g.k(this,this.actionButton),this.actionButton.vH(this.j),this.actionButton.init(YP("button"),g.N(J.actionButton,g.Ze),G),J=g.DI(this.api.B().experiments,"player_underlay_video_width_fraction"),this.api.B().C("place_shrunken_video_on_left_of_player")?(G=this.T,g.rz(G,"ytp-ad-underlay-left-container"),g.Vj(G,"ytp-ad-underlay-right-container"),g.ep(this.T,"margin-left",Math.round((J+.02)*100)+"%")):(G=this.T,g.rz(G,"ytp-ad-underlay-right-container"), g.Vj(G,"ytp-ad-underlay-left-container")),g.ep(this.T,"width",Math.round((1-J-.04)*100)+"%"),this.api.XU()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.tX.bind(this)),this.api.addEventListener("resize",this.QD.bind(this))):g.fW(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.fW(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.fW(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.fW(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.q.show=function(){mOf(!0);this.actionButton&&this.actionButton.show();Br.prototype.show.call(this)}; g.q.hide=function(){mOf(!1);this.actionButton&&this.actionButton.hide();Br.prototype.hide.call(this)}; g.q.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.tX.bind(this));this.api.removeEventListener("resize",this.QD.bind(this));this.hide()}; g.q.onClick=function(v){Br.prototype.onClick.call(this,v);this.actionButton&&g.BM(this.actionButton.element,v.target)&&this.api.pauseVideo()}; g.q.tX=function(v){v==="transitioning"?(this.T.classList.remove("ytp-ad-underlay-clickable"),this.show()):v==="visible"?this.T.classList.add("ytp-ad-underlay-clickable"):v==="hidden"&&(this.hide(),this.T.classList.remove("ytp-ad-underlay-clickable"))}; g.q.QD=function(v){v.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):v.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.ep(this.X.element,"font-size",v.width/40+"px")};g.z(hF,Br); hF.prototype.init=function(v,J,G){Br.prototype.init.call(this,v,J,G);J.toggledLoggingParams&&(this.toggledLoggingParams=J.toggledLoggingParams);J.answer&&g.N(J.answer,g.Ze)?(v=new Sn(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),v.vH(this.answer),v.init(YP("ytp-ad-survey-answer-button"),g.N(J.answer,g.Ze),G),v.show()):J.answer&&g.N(J.answer,tl)&&(this.T=new aK(this.api,this.layoutId,this.interactionLoggingClientData,this.rh, ["ytp-ad-survey-answer-toggle-button"]),this.T.vH(this.answer),g.k(this,this.T),this.T.init(YP("survey-answer-button"),g.N(J.answer,tl),G));this.show()}; hF.prototype.Nk=function(v){this.layoutId?H5(this.rh,v,this.layoutId,this.macros):g.fW(new g.Mk("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; hF.prototype.onClick=function(v){Br.prototype.onClick.call(this,v);if(this.api.B().C("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; hF.prototype.clear=function(){this.hide()};g.z(S$2,Br);S$2.prototype.init=function(v,J,G){Br.prototype.init.call(this,v,J,G);J.answer&&g.N(J.answer,tl)&&(this.button=new aK(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.vH(this.T),this.button.init(YP("survey-none-of-the-above-button"),g.N(J.answer,tl),G));this.show()};g.z(zv,Sn);zv.prototype.init=function(v,J,G){Sn.prototype.init.call(this,v,J,G);v=!1;J.text&&(J=g.h9(J.text),v=!g.s8(J));v||g.Zl(Error("No submit text was present in the renderer."))}; zv.prototype.onClick=function(v){this.publish("l");Sn.prototype.onClick.call(this,v)};g.z(n$,Br); n$.prototype.init=function(v,J,G){Br.prototype.init.call(this,v,J,G);if(v=J.skipOrPreviewRenderer)g.N(v,Ki)?(v=g.N(v,Ki),G=new z$(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,this.L,!0),G.vH(this.skipOrPreview),G.init(YP("skip-button"),v,this.macros),g.k(this,G),this.T=G):g.N(v,fa)&&(v=g.N(v,fa),G=new oA(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,this.L,!1),G.vH(this.skipOrPreview),G.init(YP("ad-preview"),v,this.macros),G.Ti.show(100),G.show(),g.k(this,G), this.T=G);this.T==null&&g.fW(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(J)));J.submitButton&&(v=J.submitButton,g.N(v,g.Ze)&&(v=g.N(v,g.Ze),G=new zv(this.api,this.layoutId,this.interactionLoggingClientData,this.rh),G.vH(this.submitButton),G.init(YP("survey-submit"),v,this.macros),g.k(this,G),this.X=G));if(v=J.adBadgeRenderer)v=g.N(v,D_8),G=new dy(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,!0,!0,!0),G.vH(this.Z),G.init(YP("simple-ad-badge"), v,this.macros),this.adBadge=G.element,g.k(this,G);if(v=J.adDurationRemaining)v=g.N(v,YbX),G=new Ld(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,this.L,void 0,!0),G.vH(this.Z),G.init(YP("ad-duration-remaining"),v,this.macros),g.k(this,G);(J=J.adInfoRenderer)&&g.N(J,Ss)&&(v=new CR(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,this.element,void 0,!0),g.k(this,v),this.adBadge!==void 0?this.Z.insertBefore(v.element,this.adBadge.nextSibling):v.vH(this.Z),v.init(YP("ad-info-hover-text-button"), g.N(J,Ss),this.macros));this.show()}; n$.prototype.clear=function(){this.hide()};g.z(dX,Br);dX.prototype.init=function(v,J,G){Br.prototype.init.call(this,v,J,G);XS2(this)}; dX.prototype.show=function(){this.Z=Date.now();Br.prototype.show.call(this)}; dX.prototype.r0=function(){};g.z(kFm,dX);g.q=kFm.prototype;g.q.init=function(v,J,G){var K=this;dX.prototype.init.call(this,v,J,G);J.questionText&&fij(this,J.questionText);J.answers&&J.answers.forEach(function(V,Y){g.N(V,P1)&&ZUw(K,g.N(V,P1),G,Y)}); this.j=new Set(this.X.map(function(V){return V.T.T})); (v=J.noneOfTheAbove)&&(v=g.N(v,qbL))&&cRX(this,v,G);J.surveyAdQuestionCommon&&gif(this,J.surveyAdQuestionCommon);J.submitEndpoints&&(this.submitEndpoints=J.submitEndpoints);this.G(this.element,"change",this.onChange);this.show()}; g.q.r0=function(){Nom(this,!1);this.L.X.subscribe("l",this.D17,this)}; g.q.onChange=function(v){v.target===this.noneOfTheAbove.button.T?ait(this):this.j.has(v.target)&&(this.noneOfTheAbove.button.toggleButton(!1),Nom(this,!0))}; g.q.D17=function(){var v=[],J=this.X.reduce(function(V,Y,r){var E=Y.toggledLoggingParams;Y.T&&Y.T.isToggled()&&E&&(V.push(E),v.push(r));return V},[]).join("&"),G=this.submitEndpoints.map(function(V){if(!V.loggingUrls)return V; V=g.a7(V);V.loggingUrls=V.loggingUrls.map(function(Y){Y.baseUrl&&(Y.baseUrl=Ji(Y.baseUrl,J));return Y}); return V}); if(G){G=g.n(G);for(var K=G.next();!K.done;K=G.next())K=K.value,this.layoutId?H5(this.rh,K,this.layoutId,this.macros):g.fW(Error("Missing layoutId for multi_select_question."))}this.api.B().C("supports_multi_step_on_desktop")&&this.Ti(v)}; g.q.clear=function(){this.api.B().C("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.z(sg,dX);sg.prototype.init=function(v,J,G){var K=this;dX.prototype.init.call(this,v,J,G);J.questionText&&fij(this,J.questionText);J.answers&&J.answers.forEach(function(V,Y){g.N(V,P1)&&ZUw(K,g.N(V,P1),G,Y)}); J.surveyAdQuestionCommon?gif(this,J.surveyAdQuestionCommon):g.fW(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(J)));this.show()}; sg.prototype.clear=function(){this.api.B().C("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.z(RX,Br);RX.prototype.init=function(v,J,G){var K=this;Br.prototype.init.call(this,v,J,G);if(this.api.B().C("supports_multi_step_on_desktop")){var V;this.conditioningRules=(V=J.conditioningRules)!=null?V:[];var Y;this.X=(Y=J.questions)!=null?Y:[];var r;((r=J.questions)==null?0:r.length)&&MSt(this,0)}else(J.questions||[]).forEach(function(E){g.N(E,xc)?FPF(K,g.N(E,xc),G):g.N(E,UR)&&HUw(K,g.N(E,UR),G)}); this.show()}; RX.prototype.clear=function(){this.api.B().C("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; RX.prototype.L=function(v){var J=this;if(this.api.B().C("supports_multi_step_on_desktop")){var G;if((G=this.conditioningRules)==null?0:G.length){var K;if(v.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(V){return V.questionIndex===J.T})==null)g.fW(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(V){if(V.questionIndex===J.T)switch(V.condition){case "CONDITION_ALL_OF":var Y;if((Y=V.answerIndices)==null?0:Y.every(function(E){return v.includes(E)}))K=V.nextQuestionIndex; break;case "CONDITION_ANY_OF":var r;if((r=V.answerIndices)==null?0:r.some(function(E){return v.includes(E)}))K=V.nextQuestionIndex; break;default:g.fW(Error("Expected specified condition in survey conditioning rules."))}}),K!=null)MSt(this,K); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.fW(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(lQ,Br); lQ.prototype.init=function(v,J,G){var K=this;Br.prototype.init.call(this,v,J,G);v=J.timeoutSeconds||0;if(typeof v!=="number"||v<0)g.fW(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+v));else if(J.timeoutCommands)if(J.text)if(J.ctaButton&&g.N(J.ctaButton,g.Ze))if(J.brandImage)if(J.backgroundImage&&g.N(J.backgroundImage,uu)&&g.N(J.backgroundImage,uu).landscape){this.layoutId||g.fW(Error("Missing layoutId for survey interstitial."));QtX(this.interstitial,g.N(J.backgroundImage, uu).landscape);QtX(this.logoImage,J.brandImage);g.In(this.text,g.h9(J.text));var V=["ytp-ad-survey-interstitial-action-button"];V.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Sn(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,V);g.k(this,this.actionButton);this.actionButton.vH(this.X);this.actionButton.init(YP("button"),g.N(J.ctaButton,g.Ze),G);this.actionButton.show();this.T=new RA(this.api,v*1E3);this.T.subscribe("g",function(){K.transition.hide()}); g.k(this,this.T);this.G(this.element,"click",function(Y){var r=Y.target===K.interstitial;Y=K.actionButton.element.contains(Y.target);if(r||Y)if(K.transition.hide(),r)K.api.onAdUxClicked(K.componentType,K.layoutId)}); this.transition.show(100)}else g.fW(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.fW(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.fW(Error("SurveyTextInterstitialRenderer has no button."));else g.fW(Error("SurveyTextInterstitialRenderer has no text."));else g.fW(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; lQ.prototype.clear=function(){this.hide()}; lQ.prototype.show=function(){WPm(!0);Br.prototype.show.call(this)}; lQ.prototype.hide=function(){WPm(!1);Br.prototype.hide.call(this)};g.z(Tv,id);g.q=Tv.prototype; g.q.init=function(v,J){id.prototype.init.call(this,v,J,{});if(J.durationMilliseconds){if(J.durationMilliseconds<0){g.fW(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+J.durationMilliseconds));return}this.X=J.durationMilliseconds}else this.X=this.T.KT();var G;if((G=J.previewText)==null||!G.text||g.s8(J.previewText.text))g.fW(Error("No text is returned for AdPreview."));else{this.j=J.previewText;J.previewText.isTemplated||g.In(this.Z,J.previewText.text);var K; if(((K=this.api.getVideoData(1))==null?0:K.Bx)&&J.previewImage){var V,Y;(v=((Y=L1(((V=J.previewImage)==null?void 0:V.sources)||[],52,!1))==null?void 0:Y.url)||"")&&v.length?(this.previewImage=new g.t9({Y:"img",D:"ytp-preview-ad__image",V:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",v),g.k(this,this.previewImage),this.previewImage.vH(this.element)):g.fW(Error("Failed to get imageUrl in AdPreview."))}else this.Z.classList.add("ytp-preview-ad__text--padding--wide")}}; g.q.clear=function(){this.hide()}; g.q.hide=function(){vs(this);id.prototype.hide.call(this)}; g.q.show=function(){$p(this);id.prototype.show.call(this)}; g.q.sj=function(){this.hide()}; g.q.nD=function(){if(this.T){var v=this.T.getProgressState();if(v!=null&&v.current)if(v=1E3*v.current,v>=this.X)this.transition.hide();else{var J;if((J=this.j)==null?0:J.isTemplated)if(J=Math.max(0,Math.ceil((this.X-v)/1E3)),J!==this.L){var G,K;(v=(G=this.j)==null?void 0:(K=G.text)==null?void 0:K.replace("{TIME_REMAINING}",String(J)))&&g.In(this.Z,v);this.L=J}}}};g.z(p$,Br); p$.prototype.init=function(v,J){Br.prototype.init.call(this,v,J,{});var G,K;if((v=((K=L1(((G=J.image)==null?void 0:G.sources)||[],CCt(J),!0))==null?void 0:K.url)||"")&&v.length){G=this.p7("ytp-ad-avatar");G.src=v;var V,Y;if(K=(V=J.interaction)==null?void 0:(Y=V.accessibility)==null?void 0:Y.label)G.alt=K;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.fW(Error("Failed to get imageUrl in AdAvatar."))}; p$.prototype.clear=function(){this.hide()}; p$.prototype.onClick=function(v){Br.prototype.onClick.call(this,v)};g.z(L$,Br); L$.prototype.init=function(v,J){Br.prototype.init.call(this,v,J,{});var G;v=(G=J.label)==null?void 0:G.content;if((G=v!=null&&!g.s8(v))||J.iconImage){G&&(this.buttonText=new g.t9({Y:"span",D:"ytp-ad-button-vm__text",At:v}),g.k(this,this.buttonText),this.buttonText.vH(this.element));var K,V,Y=((K=J.interaction)==null?0:(V=K.accessibility)==null?0:V.label)||G?v:"";Y&&Fz(this.element,Y+" This link opens in new tab");aJ(this.element);if(J.iconImage){K=void 0;if(J.iconImage){a:{V=J.iconImage;if(V.sources)for(V= g.n(V.sources),v=V.next();!v.done;v=V.next())if(v=v.value,Y=void 0,(Y=v.clientResource)==null?0:Y.imageName){V=v;break a}V=void 0}if(V){var r;K={iconType:(r=V.clientResource)==null?void 0:r.imageName}}}r=mq(K,!1,this.X);r!=null&&(this.buttonIcon=new g.t9({Y:"span",D:"ytp-ad-button-vm__icon",W:[r]}),g.k(this,this.buttonIcon),J.iconLeading?(Dy(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):G?(this.buttonIcon.vH(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.vH(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.T?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(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.Zl(Error("AdButton does not have label or an icon."))}; L$.prototype.clear=function(){this.hide()}; L$.prototype.onClick=function(v){Br.prototype.onClick.call(this,v)};g.z(bU8,id);g.q=bU8.prototype; g.q.init=function(v,J){id.prototype.init.call(this,v,J,{});this.api.B().C("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.p7("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"),Dy(this.p7("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(v=g.N(J.avatar,Zb)){var G=J.headline;if(G){var K=J.description;if(K){var V=g.N(J.button,gX);V?(this.adAvatar.init(YP("ad-avatar"),v),this.headline.init(YP("ad-simple-attributed-string"),new wy(G)),this.description.init(YP("ad-simple-attributed-string"),new wy(K)),G.content&&G.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(YP("ad-button"),V),this.startMilliseconds=J.startMs||0,this.api.XU()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.GZ.bind(this)),$p(this)):g.fW(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.fW(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.fW(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.fW(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.q.nD=function(){if(this.T){var v=this.T.getProgressState();v&&v.current&&1E3*v.current>=this.startMilliseconds&&(vs(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.q.sj=function(){this.clear()}; g.q.onClick=function(v){this.api.pauseVideo();id.prototype.onClick.call(this,v)}; g.q.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.GZ.bind(this))}; g.q.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();id.prototype.show.call(this)}; g.q.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();id.prototype.hide.call(this)}; g.q.GZ=function(v){v==="hidden"?this.show():this.hide()};g.z(y1,Br);g.q=y1.prototype; g.q.init=function(v,J){Br.prototype.init.call(this,v,J,{});if(!J.label||g.s8(J.label))g.fW(Error("No label is returned for SkipAdButton."));else if(g.In(this.L,J.label),v=mq({iconType:"SKIP_NEXT_NEW"}),v==null)g.fW(Error("Unable to retrieve icon for SkipAdButton"));else if(this.Z=new g.t9({Y:"span",D:"ytp-skip-ad-button__icon",W:[v]}),g.k(this,this.Z),this.Z.vH(this.element),this.api.B().experiments.OB("enable_skip_to_next_messaging")&&(J=g.Yy(J.targetId)))this.X=!0,this.element.setAttribute("data-tooltip-target-id",J), this.element.setAttribute("data-tooltip-target-fixed","")}; g.q.onClick=function(v){v&&v.preventDefault();var J,G;MQm(v,{contentCpn:(G=(J=this.api.getVideoData(1))==null?void 0:J.clientPlaybackNonce)!=null?G:""})===0?this.api.lw("onAbnormalityDetected"):(Br.prototype.onClick.call(this,v),this.api.lw("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.q.clear=function(){this.T.reset();this.hide()}; g.q.hide=function(){Br.prototype.hide.call(this)}; g.q.show=function(){this.T.start();Br.prototype.show.call(this);this.X&&this.api.B().experiments.OB("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.z(jm8,id);g.q=jm8.prototype; g.q.init=function(v,J){id.prototype.init.call(this,v,J,{});v=g.N(J.preskipState,REo);var G;if((G=this.api.getVideoData())==null?0:G.isDaiEnabled()){if(!v){g.fW(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.X=new Tv(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,this.T);g.k(this,this.X);this.X.vH(this.element);var K;(K=this.X)==null||K.init(YP("preview-ad"),v);(G=this.X)!=null&&(G.transition.show(100),G.show())}(G=g.N(J.skippableState,T6_))?(J.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=J.skipOffsetMilliseconds:(g.Zl(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.Z.init(YP("skip-button"),G),this.show()):g.fW(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.q.show=function(){$p(this);id.prototype.show.call(this)}; g.q.hide=function(){!this.isSkippable&&this.X?this.X.hide():this.Z&&this.Z.hide();vs(this);id.prototype.hide.call(this)}; g.q.clear=function(){var v;(v=this.X)==null||v.clear();this.Z&&this.Z.clear();vs(this);id.prototype.hide.call(this)}; g.q.sj=function(){this.hide()}; g.q.nD=function(){if(1E3*this.T.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var v;(v=this.X)!=null&&v.transition.hide();(v=this.Z)!=null&&(v.transition.show(),v.show())}};g.z(wX,Br); wX.prototype.init=function(v,J){Br.prototype.init.call(this,v,J,{});if(J.label){var G;((G=J.label)==null?0:G.content)&&!g.s8(J.label.content)&&(this.linkText=new g.t9({Y:"span",D:"ytp-visit-advertiser-link__text",At:J.label.content}),g.k(this,this.linkText),this.linkText.vH(this.element));var K,V;if((K=J.interaction)==null?0:(V=K.accessibility)==null?0:V.label)Fz(this.element,J.interaction.accessibility.label+" This link opens in new tab");else{var Y;((Y=J.label)==null?0:Y.content)&&!g.s8(J.label.content)&&Fz(this.element, J.label.content+" This link opens in new tab")}aJ(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.fW(Error("No label found in VisitAdvertiserLink."))}; wX.prototype.onClick=function(v){Br.prototype.onClick.call(this,v);this.api.onAdUxClicked(this.componentType,this.layoutId)}; wX.prototype.clear=function(){this.hide()};g.z(Og,Br); Og.prototype.init=function(v,J,G,K){Br.prototype.init.call(this,v,J,{});if(J.skipOrPreview){G=J.skipOrPreview;v=g.N(G,pW6);G=g.N(G,REo);if(v)this.gg=new jm8(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,this.X),g.k(this,this.gg),this.gg.vH(this.Ti),this.gg.init(YP("skip-ad"),v);else{var V;G&&((V=this.api.getVideoData())==null?0:V.isDaiEnabled())&&(this.j=new Tv(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,this.X,1),g.k(this,this.j),this.j.vH(this.Ti),this.j.init(YP("ad-preview"), G),V=this.j,V.transition.show(100),V.show())}if(V=g.N(J.skipOrPreview,pW6))var Y=V.skipOffsetMilliseconds}J.playerAdCard&&(V=g.N(J.playerAdCard,l6L))&&(this.playerAdCard=new bU8(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,this.X),g.k(this,this.playerAdCard),this.playerAdCard.vH(this.YB),this.playerAdCard.init(YP("ad-avatar-lockup-card"),V));J.adBadgeRenderer&&((V=g.N(J.adBadgeRenderer,uQ))?(this.T=new UU(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,!0),g.k(this, this.T),this.api.B().C("delhi_modern_web_player")?this.T.vH(this.L):this.T.vH(this.Z),this.T.init(YP("ad-badge"),V)):g.fW(Error("AdBadgeViewModel is not found in player overlay layout.")));J.adPodIndex&&(V=g.N(J.adPodIndex,zEA))&&(this.adPodIndex=new xp(this.api,this.layoutId,this.interactionLoggingClientData,this.rh),g.k(this,this.adPodIndex),this.api.B().C("delhi_modern_web_player")?this.adPodIndex.vH(this.L):this.adPodIndex.vH(this.Z),this.adPodIndex.init(YP("ad-pod-index"),V));J.adInfoRenderer&& ((V=g.N(J.adInfoRenderer,Ss))?(this.adInfoButton=new CR(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,this.element,void 0,!0),g.k(this,this.adInfoButton),v=this.api.B().C("delhi_modern_web_player")?this.L:this.Z,this.T!==void 0?v.insertBefore(this.adInfoButton.element,this.T.element.nextSibling):this.adInfoButton.vH(v),this.adInfoButton.init(YP("ad-info-hover-text-button"),V,this.macros)):g.Zl(Error("AdInfoRenderer is not found in player overlay layout.")));var r;V=(r=this.api.getVideoData())== null?void 0:r.isDaiEnabled();J.adDurationRemaining&&V&&(r=g.N(J.adDurationRemaining,YbX))&&(this.adDurationRemaining=new Ld(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,this.X,K.videoAdDurationSeconds,!0),g.k(this,this.adDurationRemaining),K=this.api.B().C("delhi_modern_web_player")?this.L:this.Z,this.adPodIndex!==void 0?K.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.vH(K),this.adDurationRemaining.init(YP("ad-duration-remaining"), r,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));J.visitAdvertiserLink&&(K=g.N(J.visitAdvertiserLink,yEX))&&(this.visitAdvertiserLink=new wX(this.api,this.layoutId,this.interactionLoggingClientData,this.rh),g.k(this,this.visitAdvertiserLink),this.visitAdvertiserLink.vH(this.Z),this.visitAdvertiserLink.init(YP("visit-advertiser-link"),K));J.adDisclosureBanner&&(J=g.N(J.adDisclosureBanner,hEF))&&(this.adDisclosureBanner=new mk(this.api,this.layoutId, this.interactionLoggingClientData,this.rh),g.k(this,this.adDisclosureBanner),this.adDisclosureBanner.vH(this.Mr),this.adDisclosureBanner.init(YP("ad-disclosure-banner"),J));this.N=new Zz(this.api,this.X,Y,!0);g.k(this,this.N);g.gr(this.api,this.N.element,4);this.show()}; Og.prototype.clear=function(){this.hide()};g.z(ifL,Br);g.q=ifL.prototype; g.q.init=function(v,J){Br.prototype.init.call(this,v,J,{});if(J!=null&&J.title)if(v=J.title)if(this.headline.init(YP("ad-simple-attributed-string"),new wy(v)),v=g.N(J.moreInfoButton,gX)){if(this.moreInfoButton.init(YP("ad-button"),v),J.descriptions)J.descriptions.length>0&&(v=J.descriptions[0])&&(this.T=new OU(this.api,this.layoutId,this.interactionLoggingClientData,this.rh),g.k(this,this.T),this.T.vH(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.T.init(YP("ad-simple-attributed-string"), new wy(v))),J.descriptions.length>1&&(J=J.descriptions[1])&&(this.X=new OU(this.api,this.layoutId,this.interactionLoggingClientData,this.rh),g.k(this,this.X),this.X.vH(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.X.init(YP("ad-simple-attributed-string"),new wy(J)))}else g.fW(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.fW(Error("No headline found in AdGridCardText."));else g.fW(Error("No headline found in AdGridCardText."))}; g.q.onClick=function(v){Br.prototype.onClick.call(this,v);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.q.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var v;(v=this.T)==null||v.clear();var J;(J=this.X)==null||J.clear()}; g.q.hide=function(){this.headline.hide();this.moreInfoButton.hide();var v;(v=this.T)==null||v.hide();var J;(J=this.X)==null||J.hide();Br.prototype.hide.call(this)}; g.q.show=function(){Br.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var v;(v=this.T)==null||v.show();var J;(J=this.X)==null||J.show()};g.z(Ug,Br);Ug.prototype.init=function(v,J){Br.prototype.init.call(this,v,J,{});if(J!=null&&J.gridCards)if(J.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.fW(Error("Only single column style is currently supported in AdGridCardCollection."));else for(v=g.n(J.gridCards),J=v.next();!J.done;J=v.next()){if(J=g.N(J.value,sI6)){var G=new ifL(this.api,this.layoutId,this.interactionLoggingClientData,this.rh);g.k(this,G);G.vH(this.element);G.init(YP("ad-grid-card-text"),J);this.T.push(G)}}else g.fW(Error("No grid cards found in AdGridCardCollection."))}; Ug.prototype.show=function(){for(var v=g.n(this.T),J=v.next();!J.done;J=v.next())J.value.show();Br.prototype.show.call(this)}; Ug.prototype.clear=function(){this.hide();for(var v=g.n(this.T),J=v.next();!J.done;J=v.next())J.value.clear()}; Ug.prototype.hide=function(){for(var v=g.n(this.T),J=v.next();!J.done;J=v.next())J.value.hide();Br.prototype.hide.call(this)};g.z(xW,id);g.q=xW.prototype;g.q.init=function(v,J,G,K,V){V=V===void 0?0:V;id.prototype.init.call(this,v,J,G,K);this.playerProgressOffsetMs=V;$p(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Ms.bind(this));this.api.addEventListener("resize",this.RV.bind(this));this.api.XU()?(this.X=!0,this.api.qO(!0),this.show()):this.hide()}; g.q.nD=function(){if(this.T){var v=this.T.getProgressState();v&&v.current&&!this.X&&1E3*v.current>=this.playerProgressOffsetMs&&(this.X=!0,this.api.qO(!0),this.show())}}; g.q.sj=function(){this.X&&this.api.qO(!1);this.hide()}; g.q.clear=function(){this.api.qO(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Ms.bind(this));this.api.removeEventListener("resize",this.RV.bind(this));vs(this);this.hide()}; g.q.hide=function(){$LL(!1);id.prototype.hide.call(this)}; g.q.show=function(){$LL(!0);id.prototype.show.call(this)};g.z(vsY,xW);g.q=vsY.prototype; g.q.init=function(v,J,G,K){if(J!=null&&J.adGridCardCollection)if(J!=null&&J.adButton){var V=Number(J.playerProgressOffsetMs||"0");isNaN(V)?xW.prototype.init.call(this,v,J,G,K):xW.prototype.init.call(this,v,J,G,K,V);v=J.headline;G=g.N(J.adAvatar,Zb);v&&G?(this.headline=new OU(this.api,this.layoutId,this.interactionLoggingClientData,this.rh),g.k(this,this.headline),this.headline.vH(this.p7("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(YP("ad-simple-attributed-string"),new wy(v)), this.adAvatar=new p$(this.api,this.layoutId,this.interactionLoggingClientData,this.rh),g.k(this,this.adAvatar),this.adAvatar.vH(this.p7("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(YP("ad-avatar"),G)):this.L.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");v=g.N(J.adGridCardCollection,d_6);this.adGridCardCollection.init(YP("ad-grid-card-collection"),v);J=g.N(J.adButton,gX);this.adButton.init(YP("ad-button"),J); this.hide()}else g.fW(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.fW(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.q.onClick=function(v){(this.adButton&&g.BM(this.adButton.element,v.target)||this.adAvatar&&g.BM(this.adAvatar.element,v.target))&&this.api.pauseVideo();xW.prototype.onClick.call(this,v);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.q.RV=function(){}; g.q.clear=function(){this.hide();var v;(v=this.headline)==null||v.clear();var J;(J=this.adAvatar)==null||J.clear();this.adGridCardCollection.clear();this.adButton.clear();xW.prototype.clear.call(this)}; g.q.show=function(){var v;(v=this.headline)==null||v.show();var J;(J=this.adAvatar)==null||J.show();this.adGridCardCollection.show();this.adButton.show();xW.prototype.show.call(this)}; g.q.hide=function(){var v;(v=this.headline)==null||v.hide();var J;(J=this.adAvatar)==null||J.hide();this.adGridCardCollection.hide();this.adButton.hide();xW.prototype.hide.call(this)}; g.q.Ms=function(v){v==="transitioning"?(this.Z.classList.remove("ytp-ad-underlay-clickable"),this.show()):v==="visible"?this.Z.classList.add("ytp-ad-underlay-clickable"):v==="hidden"&&(this.hide(),this.Z.classList.remove("ytp-ad-underlay-clickable"))};g.z(m5,Br); m5.prototype.init=function(v,J){Br.prototype.init.call(this,v,J,{});if(J.attributes===void 0)g.fW(Error("No attributes found in AdDetailsLineViewModel."));else if(J.style===void 0)g.fW(Error("No style found in AdDetailsLineViewModel."));else{v=g.n(J.attributes);for(var G=v.next();!G.done;G=v.next())if(G=G.value,G.text!==void 0){G=G.text;var K=J.style,V=new OU(this.api,this.layoutId,this.interactionLoggingClientData,this.rh);g.k(this,V);V.vH(this.element);a:switch(K){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":K="ytp-ad-details-line__text--style-responsive"; break a;default:K="ytp-ad-details-line__text--style-standard"}V.element.classList.add(K);V.init(YP("ad-simple-attributed-string"),new wy(G));this.T.push(V)}this.show()}}; m5.prototype.show=function(){this.T.forEach(function(v){v.show()}); Br.prototype.show.call(this)}; m5.prototype.clear=function(){this.hide()}; m5.prototype.hide=function(){this.T.forEach(function(v){v.hide()}); Br.prototype.hide.call(this)};g.z(SY,Br);SY.prototype.init=function(v,J){Br.prototype.init.call(this,v,J,{});var G,K;(v=((K=L1(((G=J.image)==null?void 0:G.sources)||[]))==null?void 0:K.url)||"")&&v.length?(G=this.p7("ytp-image-background-image"),g.ep(G,"backgroundImage","url("+v+")"),J.blurLevel!==void 0&&g.ep(G,"filter","blur("+J.blurLevel+"px)"),J.gradient!==void 0&&(J=new g.F({Y:"div",n7:["ytp-image-background--gradient-vertical"]}),g.k(this,J),J.vH(this.element)),this.show()):g.fW(Error("Failed to get imageUrl in ImageBackground."))}; SY.prototype.clear=function(){this.hide()};g.z(JwS,id);g.q=JwS.prototype;g.q.init=function(v,J){id.prototype.init.call(this,v,J,{});g.ep(this.Z,"stroke-dasharray","0 "+this.X);this.show()}; g.q.clear=function(){this.hide()}; g.q.hide=function(){vs(this);id.prototype.hide.call(this)}; g.q.show=function(){$p(this);id.prototype.show.call(this)}; g.q.sj=function(){this.hide()}; g.q.nD=function(){if(this.T){var v=this.T.getProgressState();v!=null&&v.current!=null&&g.ep(this.Z,"stroke-dasharray",v.current/v.seekableEnd*this.X+" "+this.X)}};g.z(f$,Br); f$.prototype.init=function(v,J){Br.prototype.init.call(this,v,J,{});if(oso(J)){this.adAvatar=new p$(this.api,this.layoutId,this.interactionLoggingClientData,this.rh);g.k(this,this.adAvatar);this.adAvatar.vH(this.p7("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(YP("ad-avatar"),g.N(J.adAvatar,Zb));this.headline=new OU(this.api,this.layoutId,this.interactionLoggingClientData,this.rh);g.k(this,this.headline);this.headline.vH(this.p7("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(YP("ad-simple-attributed-string"),new wy(J.headline));if(v=g.N(J.adDetailsLine,I6N))this.detailsLine=new m5(this.api,this.layoutId,this.interactionLoggingClientData,this.rh),g.k(this,this.detailsLine),this.detailsLine.vH(this.p7("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(YP("ad-details-line"),v);this.adButton=new L$(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,!0);g.k(this,this.adButton); this.adButton.vH(this.p7("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(YP("ad-button"),g.N(J.adButton,gX));this.adBadge=new UU(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,!0);g.k(this,this.adBadge);this.adBadge.vH(this.L);this.adBadge.init(YP("ad-badge"),g.N(J.adBadge,uQ));this.adInfoButton=new CR(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,this.element,void 0,!0);g.k(this,this.adInfoButton);this.adInfoButton.vH(this.L); this.adInfoButton.init(YP("ad-info-hover-text-button"),g.N(J.adInfoRenderer,Ss),this.macros);if(v=g.N(J.skipAdButton,T6_))this.skipAdButton=new y1(this.api,this.layoutId,this.interactionLoggingClientData,this.rh),g.k(this,this.skipAdButton),this.skipAdButton.vH(this.element),this.skipAdButton.init(YP("skip-button"),v);this.X=new ld(J.durationMilliseconds);g.k(this,this.X);if(v=g.N(J.countdownViewModel,LWX))this.T=new JwS(this.api,this.layoutId,this.interactionLoggingClientData,this.rh,this.X),g.k(this, this.T),this.T.vH(this.p7("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.T.init(YP("timed-pie-countdown"),v);if(J=g.N(J.imageBackground,nYL))this.imageBackground=new SY(this.api,this.layoutId,this.interactionLoggingClientData,this.rh),g.k(this,this.imageBackground),this.imageBackground.vH(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(YP("image-background"), J);this.show();this.element.focus()}}; f$.prototype.clear=function(){g.O9(this.Z);this.hide()}; f$.prototype.show=function(){GXm(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Br.prototype.show.call(this)}; f$.prototype.hide=function(){GXm(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.T&&this.T.hide();this.imageBackground&&this.imageBackground.hide();Br.prototype.hide.call(this)};g.z(XE,g.qU);g.q=XE.prototype;g.q.KT=function(){return 1E3*this.api.getDuration(this.Nd,!1)}; g.q.stop=function(){this.T&&this.e3.YL(this.T)}; g.q.kL=function(){var v=this.api.getProgressState(this.Nd);this.X={seekableStart:v.seekableStart,seekableEnd:v.seekableEnd,current:this.api.getCurrentTime(this.Nd,!1)};this.publish("h")}; g.q.getProgressState=function(){return this.X}; g.q.BB=function(v){g.Bs(v,2)&&this.publish("g")};var GN8="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(kW,FV); kW.prototype.L=function(v){var J=v.id,G=v.content,K=G.componentType;if(!GN8.includes(K))switch(v.actionType){case 1:v=this.api;var V=this.rh,Y=G.layoutId,r=G.interactionLoggingClientData,E=G instanceof WK?G.qG:!1,e=G instanceof WK||G instanceof sU?G.v3:!1;r=r===void 0?{}:r;E=E===void 0?!1:E;e=e===void 0?!1:e;switch(K){case "invideo-overlay":v=new stj(v,Y,r,V);break;case "player-overlay":v=new ud(v,Y,r,V,new XE(v),e);break;case "player-overlay-layout":v=new Og(v,Y,r,V,new XE(v));break;case "survey":v= new RX(v,Y,r,V);break;case "ad-action-interstitial":v=new IiX(v,Y,r,V,E,e);break;case "video-interstitial-buttoned-centered":v=new f$(v,Y,r,V);break;case "survey-interstitial":v=new lQ(v,Y,r,V);break;case "ad-message":v=new OU2(v,Y,r,V,new XE(v,1));break;case "player-underlay":v=new xOw(v,Y,r,V);break;case "display-underlay-text-grid-cards":v=new vsY(v,Y,r,V,new XE(v));break;default:v=null}if(!v){g.Zl(Error("No UI component returned from ComponentFactory for type: "+K));break}g.Zp(this.X,J)?g.Zl(Error("Ad UI component already registered: "+ J)):this.X[J]=v;v.bind(G);G instanceof Mq?this.Z?this.Z.append(v.Wd):g.Zl(Error("Underlay view was not created but UnderlayRenderer was created")):this.J.append(v.Wd);break;case 2:J=KUL(this,v);if(J==null)break;J.bind(G);break;case 3:G=KUL(this,v),G!=null&&(g.rT(G),g.Zp(this.X,J)?(G=this.X,J in G&&delete G[J]):g.Zl(Error("Ad UI component does not exist: "+J)))}}; kW.prototype.X4=function(){g.qS(Object.values(this.X));this.X={};FV.prototype.X4.call(this)};g.z(V8F,g.YQ);g.q=V8F.prototype;g.q.create=function(){try{YmL(this),this.load(),this.created=!0,YmL(this)}catch(v){Ps(v instanceof Error?v:String(v))}}; g.q.load=function(){try{EsN(this)}finally{Ae(tF(this.T).hV)&&this.player.Lq("ad",1)}}; g.q.destroy=function(){var v=this.player.getVideoData(1);this.T.T.bH.dF(v&&v.clientPlaybackNonce||"");this.unload();this.created=!1}; g.q.unload=function(){g.YQ.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(J){Ps(J instanceof Error?J:String(J))}if(this.X!=null){var v=this.X;this.X=null;v.dispose()}this.Z.reset()}; g.q.Ff=function(){return!1}; g.q.getAdState=function(){return-1}; g.q.getOptions=function(){return Object.values(JNU)}; g.q.jJ=function(v,J){J=J===void 0?{}:J;switch(v){case "replaceUrlMacros":return v=J,v.url?(J=y7w(this.player),Object.assign(J,v.VTY),v=g.w0(v.url,J)):v=null,v;case "onAboutThisAdPopupClosed":this.o8(J);break;case "executeCommand":v=J;v.command&&v.layoutId&&this.executeCommand(v);break;default:return null}}; g.q.l3=function(v){var J;return!((J=this.T.T.Vj)==null||!J.get().l3(v))}; g.q.o8=function(v){v.isMuted&&rt8(tF(this.T).eR,tF(this.T).KQ,v.layoutId);this.kC&&this.kC.o8()}; g.q.executeCommand=function(v){tF(this.T).rh.executeCommand(v.command,v.layoutId)};g.ks("yt.player.Application.create",g.eo.create);g.ks("yt.player.Application.createAlternate",g.eo.create);S9X(U2(),vu6);var ouX=g.NL("ytcsi.tick");ouX&&ouX("pe");g.Vp("ad",V8F);g.z(g.aX,g.X);g.aX.prototype.start=function(v,J,G){this.config={from:v,CO:J,duration:G,startTime:(0,g.yR)()};this.next()}; g.aX.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.aX.prototype.next=function(){if(this.config){var v=this.config,J=v.from,G=v.CO,K=v.duration;v=v.startTime;var V=(0,g.yR)()-v;v=this.T;K=kKj(v,V/K);if(K==0)v=v.K;else if(K==1)v=v.U;else{V=sA(v.K,v.J,K);var Y=sA(v.J,v.j,K);v=sA(v.j,v.U,K);V=sA(V,Y,K);Y=sA(Y,v,K);v=sA(V,Y,K)}v=g.nk(v,0,1);this.callback(J+(G-J)*v);v<1&&this.delay.start()}};g.z(g.AF,g.F);g.q=g.AF.prototype;g.q.hasSuggestions=function(){return this.suggestionData.length>0}; g.q.xZ=function(){this.X&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.q.show=function(){g.F.prototype.show.call(this);IrA(this)}; g.q.iL=function(){this.X&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.q.AY=function(){this.E$(this.api.f7().getPlayerSize())}; g.q.E$=function(v){var J=this.api.isEmbedsShortsMode()?.5625:16/9,G=this.api.XQ();v=v.width-(G?112:58);G=Math.ceil(v/(G?320:192));var K=(v-G*8)/G;J=Math.floor(K/J);for(var V=g.n(this.T),Y=V.next();!Y.done;Y=V.next())Y=Y.value.p7("ytp-suggestion-image"),Y.style.width=K+"px",Y.style.height=J+"px";this.suggestions.element.style.height=J+"px";this.L=K;this.U=J;this.containerWidth=v;this.columns=G;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.FE(this)}; g.q.onVideoDataChange=function(){var v=this.api.B(),J=this.api.getVideoData();this.j=J.aR?!1:v.L;this.suggestionData=J.suggestions?g.E_(J.suggestions,function(G){return G&&!G.playlistId}):[]; ztU(this);J.aR?this.title.update({title:g.h6("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:J.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More Shorts":"More videos"})}; g.q.scrollTo=function(v){v=g.nk(v,this.containerWidth-this.suggestionData.length*(this.L+8),0);this.K.start(this.scrollPosition,v,1E3);this.scrollPosition=v;g.FE(this);IrA(this)};})(_yt_player);