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 W="assign;Y;startsWith;Sp;length;;,;1970-01-01T09:30:53.000+09:30;split;indexOf;url;join;scheme;replace;set;pow;slice;path;cmo=pf;match;fromCharCode;rr;mn;get;G;/;const;n;B;unshift;1;/videoplayback;a1.googlevideo.com;U;reverse;wf;splice;push;1970-01-01T05:59:51.000+06:00;cmo=td;%3D;toString;clone;cmo=;file;sp;cmo;prototype;/initplayback;youtube.player.web_20250518_21_RC00;else;1970-01-01T03:15:01.000+03:15;r;local;Untrusted URL;s;1969-12-31T13:48:49.000-10:15;/file/index.m3u8;&;:;,\u222c{;/api/manifest;fallback_count;\\.googlevideo\\.com$;playerfallback;uN;vjbd0dbW7eQg54B_OH-_w8_;://;M8;?;pop;\\.a1\\.googlevideo\\.com$;=;Oc;NaN;1969-12-31T21:00:38.000-03:00;index.m3u8;forEach;redirector.googlevideo.com;undefined;http://local;signatureCipher;//;true;WJ;1970-01-01T11:33:09.000+11:30;{\u220du;rr?[1-9].*\\.c\\.youtube\\.com$;fvip;ZS;www.youtube.com;---;https://local".split(";"), vm,Onn,YEd,zc,SEE,r3m,gF,bnQ,M$,oQQ,Vd,A3,fn,$Q,ji1,W71,e1,EE,zgQ,Ln,siF,ZJ,gQE,wF,Ii,q$,nn,J3,M1c,Kn,m7,DJ,A3d,fJ1,bL,$$Q,kcw,W0,U$1,c3w,sJ,ClJ,y3F,a8,aJE,hY,x$m,pmw,pC,TFF,lJQ,F7$,hg7,ZK,I8,Rg1,egJ,mN,EQg,YI,SY,d3,bh,oT,jY,BFn,W5,zg,sI,Zn$,wmF,Mv,IJ1,$I,UI,Tg,lh,FU,hs,qEl,nQE,RT,Qh,EI,J33,K7$,Plc,Gci,m$7,B5,Zc,XU,w3,IT,ng,Js,NF1,P5,my,ts,Dc,H5,vE,O7,vYd,Yr,SR,ou,YJc,SJm,dNw,jR,zK,s7,Mn,VX,$r,kr,gYm,MU$,VU7,AYl,U7,fK$,cE,ug,Cd,$Nd,yX,kwE,cY$,TK,Fp,eR,QX,Ld,yYJ,CL$,lKF,p0c,hNn,Xp,wn,Kd,EYJ,LNi,Q8l, GK,m4,BSJ,ig,vL,ZC,X0n,ZCE,rH,dH,BE,w0c,bS,j9,of,IKQ,zO,qJQ,My,Vm,Av,f4,$W,kW,Uv,uS,C4,p4,TO,hv,JYc,PLF,KNn,Gw1,iCF,BL,wH,If,tUw,qy,DNJ,n4,Jv,K4,NSg,vIc,SIm,OgQ,dv$,jT7,PL,oIl,rsE,GO,iS,Wyd,mO,z_n,tv,gIQ,sTc,MYg,VYl,vU,Ou,As1,fcn,$vJ,YK,Sl,kgc,ChJ,da,ysl,aci,Fyw,jl,lcF,xv1,R_g,QTw,zQ,Vp,fe,Al,Ly3,$K,kK,Uu,Ce,yp,av,pe,qIE,TQ,nI1,Fz,Rv,Ggg,Qp,BU,Xz,ign,Zj,mvd,tY3,wa,Le,Iv,qW,Dv3,ne,Ke,N3i,PU,GQ,iV,Y7$,NW,S7d,dn7,rcQ,bdd,HU,Dj,m0,vr7,OdJ,orF,W41,zel,sui,YZ,S0,dD,gri,or,Wb,zu,sc,MRn,M3,Acm,$Z,fr,VRd, upQ,Uc,kZ,Cgn,aCd,cb,xnd,u3,Cr,ar,yU,pr,xZ,Rr,pEi,Tu,FL,e0,Tn$,Ec,lC1,QU,Lr,wD,Ir,q3,Bb,XL,Zs,JQ,F4c,Pb,hei,Gu,eei,i3,mD,hQ,tQ,Ds,Hb,Qud,N3,vg,Yv,Sp,dy,ry,bM,L4m,o_,BnQ,jp,Wg,ZdF,sk,z1,gy,ME,VI,AR,fx,XEc,ICw,kv,q7c,nri,Jcc,cg,uM,xv,Pgl,px,GKn,T1,mnw,lM,Dng,F9,hR,R_,Hdl,ep,Nn3,Ek,vWJ,O4i,QI,Yvn,Lx,Bg,X9,wy,dy$,nx,oWQ,Svm,JR,Pg,tR,zul,jfE,Hg,v4,sfQ,M9c,V93,Oz,YU,d4,r4,bT,op,j2,$y7,kO$,Uyc,uRF,CSd,ze,sz,yv7,g4,aQ7,xyi,THJ,Run,MV,euQ,EWm,QfJ,LO1,BHw,fV,Z4l,kU,wL1,uT,CV,qvi,yk,ap,xU,nWQ,Jvm,lT,KOm,Fa, hx,i41,myg,t9w,Xa,ZA,B4,Dy3,H4n,NHi,w4,Ip,qV,Oe$,Ge,iT,Sul,dWg,rlQ,mZ,tx,beF,oK$,DA,jvg,oZw,jrQ,WDi,OM,NV,Y1,S4,dv,z3n,srQ,gZF,rv,bH,M0J,od,V01,AQ3,fsE,j4,$3l,WV,zL,kul,U3n,cQw,uLQ,C3F,yQJ,MR,V2,An,$1,pbg,k1,UM,TDJ,x3c,f9,lsn,cV,uH,C9,ad,y2,FDc,h3d,R3c,x1,EZd,TL,LDm,BDd,Zr7,Xbw,wb7,IsF,qc1,nZw,hn,Rd,e4,KDJ,JQJ,P3J,Gum,Q2,ir1,L9,m3E,t07,BV,ZI,X5,D3J,wv,Id,Hrd,qR,Jn,K9,PV,GL,iH,m8,tn,ND7,vv3,Oxc,Yk7,DI,Skn,rR3,dEQ,NR,vd,ovn,bx7,zBn,Mpi,gvE,Of,Vpi,ARg,fxw,k13,$En,UEE,Y3,cRc,u91,dc,CMl,yRJ,axd,xEE,rc, pgi,bN,TyE,oN,jg,Fm7,Wd,hB7,zA,sf,RBc,eBn,M2,AF,Q_J,f5,Evi,Lmg,By3,Zxd,wgg,$3,IxQ,cd,uN,nvQ,JRJ,G17,ixF,C5,yj,aN,x3,p5,TA,lN,Fg,hF,RN,eg,Ef,Qj,HxF,DEl,NyJ,OVl,vUJ,Szg,tpc,Yz$,mEE,L5,Bd,rxQ,bV$,oUd,IN,q2,n5,Z$,WZg,JF,dV7,sp1,gUF,z1n,K5,tF,D$,Hd,M27,jp3,V2l,N2,Ax1,fAn,$Vg,kel,UVi,CTE,yxw,aAE,xV3,vB,O6,YX,S6,p43,T4Q,h1l,R1m,dd,bU,EU7,os,rd,LZc,Qp1,B41,ZV3,X4m,WB,zk,IAw,qzw,nUE,Jxc,KZE,PTl,GeQ,iVQ,mV7,t2w,gd,MZ,Vr,Au,DV$,O9d,YMl,dRd,SM7,rnE,kX,U6,b9Q,o1d,jdl,cB,uU,CK,yr,as,xX,pK,Tk,W8F,FJ,sd3,Rs,g1J, M47,e6,E6,Qr,LK,V4$,And,$R3,BB,W4,cvw,qZ,kLi,URm,nK,cnQ,Is,CHw,u5n,wd,Ju,KK,ynF,aIm,xR7,pVg,PB,Tvl,Gk,N4w,HVl,iU,mf,D0,HB,hn1,NZ,vt,Y_,Rn3,en3,Sy,Z97,jy,Qd7,Bvn,bd,r1,Md,Ad,XVJ,k_,wVm,UW,ct,IIc,n1m,K8E,pZ,ld,mRF,t4g,DRm,EW,O5n,aw,GLn,Sfd,v33,H9i,NvJ,d2w,Yf3,LZ,Xn,b5n,o3c,jNd,WG3,zRQ,Iw,sNm,nZ,g31,AFm,f$F,Jd,kAF,cFm,U2$,ugg,Pt,mz,Nd,OC,YH,Sm,dA,rA,a$$,x2E,be,pdE,oS,jm,vl,Wl,z_,sC,j6,gA,Tc3,Vl,hRd,AU,fB,eRm,RRF,E3n,QNi,LGJ,$H,BcJ,Z5i,XdQ,kH,UC,I$E,JFm,KGn,cl,m2$,i5w,tgw,D2m,H5l,ue,Ncg,PN1,CB,vXd,OKn, yl,S61,dZJ,ru$,bKm,oXw,xH,jsm,Wf7,zvQ,ssi,V6F,gX1,pB,T_,le,FQ,hU,RS,em,EC,f0g,LB,Ql,$Zg,Zq,cul,Bl,uJF,CUQ,Tdd,yu3,a0E,xZd,pBl,XQ,wA,IS,l0w,qf,nB,JU,KB,Pl,G_,EXw,Ffi,Dq,evn,Hl,Rvm,tU,ie,hvF,mR,vM,Lfl,Yt,OS,o6,js,zV,XBE,WM,MA,wBl,VB,Bdn,nXi,Jul,Kfg,$t,kt,US,PU3,cM,up,C7,yB,Gk$,a6,xt,p7,iK1,mZc,TV,t6i,Nd7,qf7,HK3,v_J,OZd,YWi,dd7,DZi,rdF,jwd,es,QB,zEc,sw$,g_w,Myl,Ad1,ZO,BM,f4Q,Vy1,k7F,cdl,Udi,Cdd,I6,ydc,wk,n7,a4d,JB,PM,GV,xdw,ptQ,YG,T1m,dr,l4d,FzF,VF,hE7,eE$,AS,E_1,Qw$,wtc,Lz$,Us,cI,uE,yF,an,Kzi,xG,pO, Tf,G71,hS,iZl,mdE,Rn,Dd7,Es,QF,LO,BI,HZw,Zl,wr,In,qM,nO,N1c,vHc,OBg,KO,PI,Gf,iE,mp,tS,YCE,SC1,dfQ,rUl,bBl,oHm,Dl,jSm,dz,WRl,zOE,sSE,rz,o$,jr,Wk,gz,M7,VG,Mmi,$0,k0,Uy,Vmn,AUQ,ck,fqE,$f3,CY,xf7,pl$,TAJ,yG,lqn,FR$,eOF,x0,QSl,EHw,LRQ,ZBd,XlE,lu,Fb,wlg,h5,R$,er,Ey,QG,LY,Bk,Zr,Xb,wz,I$,q7,nY,J5,Iqd,qCF,nHl,Pk,t5,JUg,vf,Oq,Yc,Se,dG,bF,oZ,iB7,je,Wf,zn,tmg,mf7,KRi,MS,gG,vti,VY,yY,cf,aZ,xc,YSc,Tn,b7$,dAw,rBF,j6l,Msi,WXw,s6Q,gtd,O7J,FB,lF,ABc,RZ,ee,Eq,fOQ,wG,$An,IZ,qS,nS,KS,kVw,Gn,iF,UAw,mn,ty,uHg,NS,O9,Yw, SQ,dV,rV,bK,oU,jQ,Wp,yBd,z4,ML,gV,xA3,FXQ,TkE,lOg,hXE,RXF,Etd,Q67,eXm,BkE,fy,$w,cp,Z71,XM3,U9,uK,IOE,qSE,PpJ,KXm,xw,py,T4,lK,F6,RU,i7i,mA7,tsg,X6,wV,DAJ,H7d,Nk7,Ky,Pp,G4,vG1,OOn,Ssm,rSw,Dg,bOi,vh,Hp,SN,dJ,b9,oGE,Ml,VL,Ak,fQ,kd,U8,u9,gGF,Mi$,yL,Vic,ASl,xd,fld,$Mc,pQ,T2,kfE,UME,uGc,hk,ySw,all,l9,xM1,pIQ,llF,TrE,QL,CEg,hdJ,Rdc,Iz,XF,ed7,EGi,ql,nQ,Qnw,Lpd,Ph,Brw,ZOJ,XIm,wIJ,D3,Ild,qs1,nG7,JSF,Kp3,PEn,Gf1,iOJ,Nl,mM3,Ox,DMF,HOF,Nrw,v0J,OYd,YC,jx,SyF,bYF,WQ,o03,Wql,Yy$,z2g,s$Q,g0w,d7l,r5l,Sx,dT,oM,j$l,bA, rT,Mr$,Vr7,A5l,fri,$7$,kqg,y5n,U77,MF,VZ,fR,pkw,Fqg,lrQ,Ar,aM,h27,TY,R2E,E0w,ex,e2l,n0l,Q$Q,qyd,BQ,J5c,Gqg,Z_,LR,KqF,Pui,iYm,wT,tri,D7$,HYl,NzF,vc7,OSE,Yqd,m7i,dSn,ryi,bS7,sZl,oc1,Me1,Jr,VeE,KR,PQ,GY,Aym,fbE,tr,D_,knF,$Si,HQ,USw,uB3,yyl,CFm,ab7,TGw,xS1,zI,M1,gE,lb7,sa,Vc,AI,f8,uj,Fnm,yc,Ra7,p8,xT,lj,Fy,hI,R7,ea1,ek,Qc,Ecg,BG,Xy,wE,QZw,Ln$,BGg,ZSc,I7,n8,Xf7,JI,K8,PG,Ibn,GI,ij,qqm,tI,N1,HG,DM,vr,OP,Knn,DS$,NGE,tem,mS$,HSi,dN,om,S9c,vwg,Oym,Y97,Jy$,gw1,$s,sU7,AiF,zZd,SW,ks,sP,AT,MQE,Wr,GnE,PFw,iS3,b5, WF7,CP,u67,yW,yin,agQ,xLn,xs,pp7,TVw,lgc,hZF,RZw,l5,Ewc,Ff,QUm,LF$,Zy7,Xpw,Rm,wpJ,q9J,eW,nwF,EP,QW,Wh,mLQ,vdc,Im,Y8Q,rkd,qe,odm,jzm,WBd,vH,Ne,zV$,DX,TzF,mS,Hr,tT,nP,SF,dK,rK,gK,s2,Vs,fu,gdn,$9,U2,cH,MN$,VNm,ys,f3E,$ld,k2E,Uli,ckd,uFQ,C9l,ykF,a3E,xlg,phn,TT,TJc,li,h6,l3Q,FB1,hVi,RV7,RF,eV1,Ed3,QzJ,LB1,Lu,BH,Zn,BJn,Xs,ZQn,IF,wh1,Xh7,nu,J6,Ku,PH,I3F,GT,ii,q8i,ndg,mh,t6,G2J,Jki,P91,KBg,Dn,HH,NU,iQQ,ml$,tNd,vK,HQE,OR1,vC7,OO,Y8,Sd,dY,rY,oE,jd,WK,zX,sO,gY,YxF,Sx$,dFd,MB,Ve,A1,f_,k8,cK,oCQ,bRE,C_,jMw,ye, aE,x8,p_,TX,h1,RE,ed,EO,Qe,L_,BK,ZY,Xk,wY,IE,sMQ,J1,gC3,K_,PK,Arc,f_l,$FQ,UFw,u2m,HK,CAc,vT,NB,xFl,pQd,TTF,gg,M0,F_1,A_,fw,$x,kx,RU3,U4,cT,u1,eU1,Cw,hU$,y7,at,QM1,ECl,xx,pw,TU,l1,h_,BTn,ZRl,eV,E4,Lw,BT,XQl,Q7,qxw,nCE,JrE,K_Q,PAg,GYJ,iRm,XO,Z9,I_E,DFl,wg,NTn,vTm,Kw,O8g,q0,nw,Ya1,PT,d1Q,b8c,GU,i1,oTd,mT,WcF,t_,AIg,Mkg,zf3,gTi,s7F,HT,N0,v3,OX,Yb,Su,df,b2,$1i,cId,W3,e1i,zM,uy$,yIF,gf,fL,MP,A9,VJ,pGJ,x11,aM1,TEQ,$b,lM1,ef3,kb,c3,Q7Q,u2,CL,yJ,ax,Lcn,xb,BEc,Z8J,TM,Rx,eu,EX,QJ,LL,B3,Zu,XA,wf,Ix,qP,nL,J9, XG1,wGJ,KL,P3,GM,i2,mU,t9,IMQ,qa1,Du,sd,Kcw,Pj1,g$,M8,Ud,ce,i81,yn,m11,tkJ,pb,D1n,NEF,H8F,vsd,OPQ,YPg,SPg,del,rTd,os3,bP7,jmw,sml,MWE,z0$,VWl,ATm,$e1,lc,Fh,Ued,kSd,hp,R9,ec,ufg,Ed,Qn,Lb,yTQ,aXi,Be,C5F,ZL,TNi,Xh,w$,I9,q8,nb,Jp,Kb,Pe,Gh,ic,mu,tp,DL,He,N8,v1,O$,Yo,S7,dI,rI,b$,oD,j7,W1,zG,s$,gI,MH,Vw,Ae,fM,$o,ko,U$,c1,u$,CM,yw,aD,xo,pM,TG,l$,Fq,he,RD,e7,E$,Qw,LM,B1,Zh,Xq,wI,ID,qH,nM,Je,KM,P1,GG,i$,mv,te,Dh,H1,NH,vv,OV,SG,dL,FSQ,rL,m,bx,YV,oj,jG,Wv,R0$,sV,Esm,zb,Qmg,Mt,LSJ,AE,gL,f0,$V,kV,cv,ZPd,Xri,wr7, IXJ,F3,hE,xV,Rj,nsc,JTl,KSJ,P5l,BNc,GSE,UV,iP7,me1,EV,X3,Qq,C0,tWE,ux,eG,L0,wL,HPc,yq,aj,ZH,Bv,NNE,Ij,qt,n0,JE,v9Q,K0,Pv,Gb,ix,mk,OuF,Y27,dUF,r6E,Hv,Nt,o9d,vZ,sFg,MFl,A6d,fnd,YD,kTc,UUc,WZ,c6m,zR,sF,gh,M5,VT,A8,us7,y6m,an$,Cic,xUd,pHF,UF,cZ,CN,a1,xD,pN,TKE,TR,lnn,lI,Fm,uI,ea,EF,QT,LN,Fh$,R1,Rxd,BZ,exl,E9c,ZV,QFE,Xm,wh,Lhn,BKi,I1,Zun,XHE,q5,wHi,Ini,q2i,n9E,nN,J8,J6F,KhQ,KN,PZ,GR,PiJ,iI,mL,t8,DV,GT7,HZ,N5,iuc,va,mUE,On,tFl,DU3,Huc,NKl,v8m,O_F,Yu,YOl,SOQ,dBw,SX,r1F,ro,b_i,bJ,o8l,oA,jEn,WCJ,jX,Mu,zo1, V9,AL,fD,$u,sEm,ku,Un,ca,g81,Mdd,CD,y9,A1J,aA,fYw,$B3,Vdn,kXm,UBc,c1i,pD,ukw,TB,lJ,FW,hL,CCg,RA,eX,Q9,y1w,LD,Ba,aYl,XW,qu,wo,Pa,GB,xBw,iJ,pKF,D6,Ha,Nu,TY3,Oo,lYw,S5,db,rb,JL,bs,oI,j5,FC$,WS,zz,so,hoc,gb,MO,V6,Ao,qO,nl,Kl,PS,Gz,is,Ro7,eoJ,E8c,HS,mK,NO,vN,QEE,LCE,BY$,OK,Y2,S_,Z_i,XKQ,Do,wKd,IY3,dC,qO$,rC,b7,j_,WN,zH,sK,gC,Va,Am,$2,k2,UK,cN,fa,KCJ,PCQ,Ca,ya,aK,GX1,pa,mBc,TH,l7,tdd,Fj,RK,EK,DB$,e_,Qa,La,BN,H_1,wC,vxl,OwF,Y4i,qs,IK,S4i,d0c,r_d,na,oxw,x2,bwi,jt$,Jm,WTw,Ka,zlF,PN,stl,gxn,MVw,VVw,A_F,GH, $0c,f93,i7,DD,kU3,HN,U0m,Ns,c_m,uOQ,vq,C1m,y_F,a9F,x0i,Om,pTw,Y7,l9$,d6,r6,hl3,FTn,Rl3,eld,Ex3,oQ,jh,Wq,Qtc,LTc,BgF,Zwc,XTQ,wTl,I9Q,q4F,nx$,J_Q,sm,g6,KT$,P1l,Mz,VA,GUJ,AO,fz,k7,iw7,Um,cq,uz,m0g,Cz,tVg,yA,D0F,aQ,Hwc,NgE,x7,vb3,OLn,YXg,pz,To,lz,Fe,hO,SXE,dPl,RQ,eh,Em,r97,QA,Lz,Bq,Zp,Xe,bL7,obl,w6,IQ,jx7,qz,nz,JO,Kz,S2c,WUm,zY3,Pq,sxF,gb1,Mui,Go,iz,mr,tO,Dp,Hq,Nz,vW,OB,YN,Sq,Vuc,A97,zE,sB,fuQ,gZ,pG,VS,FK,C2J,Tfi,y9n,luJ,hYm,RYE,FUd,eY$,EbQ,Qxg,qc,ZLF,Iui,w3$,nbl,J9c,KUi,PW,GE,GMn,iLl,HLE,ir,Nf3,mPQ, mJ,tX,DF,HW,ObJ,d83,YdE,olE,VcJ,Mci,j9i,Apd,v8,zyJ,Wum,kh7,uhw,cpn,x8d,Ccw,OQ,YO,hy3,rM,Ry3,Xed,Zbw,B$l,LuJ,El3,qdi,IL$,Q9c,Gh$,PcF,ib1,zy,D8Q,m8n,tc3,eyd,Hb7,N$E,b0,jB,Jp1,nlJ,Kud,vod,oL,we1,Y$i,dHd,bMF,jDQ,sD3,gow,V77,Aen,$Hn,fhm,C$E,UHg,kGw,ye3,p1$,TIw,lhF,Fvl,u0,JX,eDc,hDJ,aL,Lvg,Ty,ZMd,X1$,BId,l0,w17,FD,hj,fN,RL,BfQ,eB,EQ,QC,Ih7,q$Q,Li,noF,JeJ,Kvl,B8,Zk,XD,wM,IL,qr,ni,Jj,Ki,P$i,GGl,P8,iMl,Gy,tm,i0,m5,t77,mHJ,tj,DHn,HMn,NId,Dk,H8,vVQ,Nr,O03,YV7,qX7,QD7,SVJ,vc,$D,DH,sQ,dtJ,rE7,Yi,Fug,SB,b0l,Ci, yC,Mr,gM,Nc,Aj,WvF,M7n,VC,pe1,ahQ,oVQ,fLg,s9i,Sv,Eo$,KG,Wkn,jjl,vlF,zDm,ztl,xHg,UQ,T$c,lLw,U8m,ool,re7,bbm,SdF,DPJ,tuJ,P2n,OMd,glw,cec,ypc,aL7,$O,kO,fi,uqn,S$w,gVw,sj7,dQ,rQ,b4,oy,jv,Wc,MG7,gQ,M6,Vf,fs,$i,VGw,AZ,ki,UR,AE$,cc,u4,Cs,ay,$tg,kbn,xi,ps,Tm,l4,FS,Cxg,Ry,yEQ,hZ,aH1,cEF,u3l,xtg,ev,ER,pv$,TLE,Qf,lHw,jN,ht3,Fkd,etQ,Qjm,Lki,EVc,Xvg,wvw,qVm,Iy,q6,nVF,JEc,ns,JZ,Kk3,Px7,Gb3,i0c,Pc,mtl,i4,m2,Dti,H03,ON1,SFJ,d5E,YF1,Hc,vz,N6,r8n,bN1,tZ,oDc,j13,WLF,zKc,DW,Val,A81,fVg,MaE,gDl,s1F,$5F,kR7,NLn,U5m,vDJ, c87,umn,x5F,CIm,y8E,aVg,lVE,pZE,Th3,FL1,hKF,Y$,EDd,RKE,Q1E,eKg,LLQ,Bhw,ZN1,XZl,wZi,IVE,qF$,nDd,J8d,KLm,PIi,GRi,SZ,m5d,tai,D51,iNl,HNm,NhJ,Yng,ri,jZ,zi,Snd,sG,gi,MD,ouQ,Wbg,jA7,sAJ,cL$,MX7,uB,AK,zmF,bDi,rLE,dul,cz,fA,UG,pA,Ti,yLJ,lB,FY,x$,To3,a6E,xu$,l6i,hK,Ra,hm7,EG,Q5,LA,Bz,Zv,XY,wi,Rmd,em7,Ia,qD,JK,QA1,LbE,nA,KA,Xa7,wa7,Pz,I6m,mI,qn3,tK,Hz,nuJ,Dv,ND,JLE,OZ,PJg,GBc,SM,d5,W7,mui,bZ,zD,g5,tX1,VO,jM,sZ,Duw,AV,HDw,fc,Noi,r5,o0,iD7,MY,$R,vzl,Olg,kR,Yoi,UZ,c7,uZ,Cc,So7,a0,yO,xR,pc,dOd,roF,TD,lZ,FN,hV, R0,blm,eM,EZ,ozg,WKE,QO,Lc,B7,sIg,zCE,Z5,gzg,M5$,V5w,XN,Aon,fo3,$Om,kz3,UO3,w5,I0,qY,nc,com,u4c,Kc,Csi,P7,GD,yon,ao1,iZ,xO3,pS7,hCl,RC1,Tb$,lod,FKi,tV,D5,H7,NY,eC1,Ez3,QI7,LK1,OL,XSw,YA,Ioc,nzc,qoQ,bP,re,KKn,Psg,Gzw,il3,oW,mOn,WY,z6,t5$,Hli,Nbc,ge,fT,SKi,kBw,$$,rmg,ba7,o2d,jKJ,W9m,V5,M9,UL,cY,g2d,M_E,V_Q,uP,kHF,Amn,fDE,cmc,ujl,CT,C7g,Us7,ym$,yM,aW,xA,aD1,xsw,pT,T6,pNn,lP,TCF,FT,$A,EL,lDl,Uuw,gui,QM,LT,Zf,XT,we,IW,q9,BY,KT,hbd,G6,ebF,iP,QKl,L9l,E21,Rbl,BCJ,ZaF,XN3,HY,wNQ,IDw,n2E,N9,CJ3,vD,K9F,GHn, CA,iaF,msm,k$,VXQ,f6w,$uw,Jml,Yk,t_w,Dsd,Sj,Hal,rw,bq,oP,jj,WD,NCn,za,sU,v71,Oz3,gw,M_,Vg,A7,fH,$k,Smg,Ymi,kk,dz3,bzn,UU,o7w,rOw,X_,BD,ww,q_,nH,jQc,AOg,Tb,ZS,Ga,Uzl,uei,pH,DS,xk,HD,O3,LH,Yf,pqn,SJ,d2,T6J,lpQ,Frg,hT7,r2,RTw,eTw,bt,E7i,XqQ,Zz$,QQ3,B6w,LrJ,oJ,wql,jJ,Ipi,qmd,JOE,Krc,Pz7,Gog,Hz3,MC,VK,OGl,Aw,fm,YB$,rXi,bGi,oN$,jRm,$f,WJ7,sR1,gNF,Fu,uK3,fF$,$cl,yXg,hw,aFc,pWg,xcc,TZd,eJ,Lm,lFd,RJ,BO,ZZ,FJE,Rr3,QRg,qC,PO,DZ,vj,iGd,mcF,dX,Sz,b8,oO,tqn,NZ3,HGn,vOQ,Wj,jz,Oil,SQg,drg,bi1,gX,rjd,oOl,jLd,V_,Az, zLm,IJ,sl,wWd,hrQ,JX7,u8,rX,YQd,l8,HO,hz,RO,C0l,akF,yjd,NC,El,Q_,Lh,p8E,Bj,Zd,TMi,Ol,X8,DcJ,IO,Ajg,qJ,lkQ,BZw,LJg,erJ,nh,hLm,Pj,w8i,X8Q,qQd,nOg,mj,Ye,SE,v2,rB,bb,JjQ,oh,P0n,jE,iil,sT,Gyn,gB,MG,HiE,VN,Os3,YRE,$e,SRn,bsn,FM,Rh,eE,LU,oil,B2,ZE,qG,nU,J4,KU,jyc,P2,GW,gin,ib,ms,Mv7,Vvn,t4,AZm,fWg,$6w,kmd,DE,H2,U6i,uSn,C4E,Ot,YJ,rp,by,yZw,aWF,og,jI,WC,zC,x6E,pcF,gp,TQg,lWn,Mi,h4d,F2m,R4$,V4,Eim,e4E,Qy1,Ag,fX,L2g,ZsF,Xcg,$J,kJ,Ut,wci,qRF,cC,nin,CX,JZF,K21,uy,y4,ag,xJ,ism,tv3,P4g,m6E,D6l,Gmd,Hsw,NQ3,pX,v$w, YGQ,rKF,o$1,bAi,Q4,Et,Zm,WIg,XZ,wp,Ig,sa3,qi,g$7,zz3,nX,AKF,Jg,KX,fv3,PC,iy,$DJ,kiE,UDQ,cKg,uYl,mW,CB7,yKi,AXl,cXi,xDm,avm,TiQ,pzw,lvE,Dm,HC,Ni,vX,FIJ,ezE,S8,dq,rq,Qal,E$g,OD,LIi,BiF,ZAw,wzF,bW,mDw,sD,gq,YZJ,ly,dYg,rVE,bc7,oRn,j0l,VV,WtF,AC,f$,$m,zJc,cX,s0F,gRc,uW,C$,MMF,VMl,AVc,f5l,$Yd,yV,UD,kD$,UYw,a3,uNc,CZw,yVn,xm,a5F,xYc,p7Q,T5d,l51,Ftw,hJn,RJi,eJw,ER7,p$,LtE,TJ,ZcF,B57,w7F,X77,qZn,R3,Q07,lW,e8,ED,QV,L$,BX,Z8,nRn,XI,JVE,I3,mYE,Hcn,N5i,vAd,OTc,JC,YLd,DYF,icF,SLd,qq,d9n,bTE,wq,n$,PZw,GDc,K$,oAn, jW7,tMw,Ktl,WwJ,GJ,z9w,iW,mE,sWc,tC,V$d,gA$,M$m,D8,Atg,HX,Nq,v$,Oi,ff1,$9d,k6E,Ya,ctm,uT3,SO,CPE,dO,rO,ytw,afn,x9d,pYm,Tec,lfQ,EAi,h9Q,SGJ,oH,Lwm,Be7,R9n,e9n,Fw1,z$,qLE,W$,jO,QWg,Jtd,If1,wYm,XYw,ZT1,gO,KwE,TC,Mj,Vz,A$,PPJ,f2,G6Q,$a,iTl,BC,m9l,ka,hg,eI,OAd,uw,yz,HTm,NeQ,aH,p2,C2,c$,T$,Ui,t$c,D9E,lw,vkE,OHE,hC,I5Q,FZ,F7,YUd,xa,SUi,d_g,r7w,bH3,h$,RH,okQ,jPi,WMm,zk1,sPQ,rt1,zJ,Ei,Qz,eO,Mjm,MZJ,VZ3,L2,Vjn,A7l,fSJ,$_g,B$,ka3,ZT,U_l,u_n,X7,Cqw,y73,qj,aSg,IH,G$,pDd,x_i,hkQ,lS3,Rkm,ekn,Tw$,FME,Ekn,iw,QP7, Bwi,LME,ml,cVF,ZHc,XD$,wD$,ISQ,qUl,t$,nkF,DT,J7$,H$,Nj,KME,vu,Pqw,Ga1,Ob,iH3,m_3,tj1,D_E,YE,RzE,ST,vfn,d7,Nwd,OmQ,Y3i,hzd,Ym,S3J,bmw,dCi,ba,rwi,MJ$,gfm,sb,VJ$,sJw,$C3,g7,kjg,UCn,Ctd,yw7,xCl,uuc,pO$,T2F,lZ3,F6w,hWc,eWE,EfE,QJE,RWF,VQ,r7,B2d,cwm,Zmw,aZl,A0,wOm,L6g,Mg,IZc,q3m,K6w,imF,Pt7,QQ,mC$,LF,nfl,Eb,Bu,Jw$,w7,Hm7,vL7,N27,OhF,DCw,YlE,Slg,Z1,dJ1,rzE,bhJ,oLi,zh3,Wjm,jO3,Ik,sOg,Mz3,Vz7,Az7,fdc,$J3,J0,FI,k3F,UJ$,u8c,czl,C8c,adJ,xJc,yzc,Xo,n2,TXg,ldc,Fjd,BXn,eh$,ELw,QOl,Zhn,wjg,nAl,qg,Rhg,hhc,Xjl,LX, Lj1,bw,Rg,GjJ,Kj$,Jzi,P8E,G3i,DJE,HhE,gLm,P$,J$,qlw,NXw,nL3,ve$,wO,OUw,c7F,tJ7,IdQ,K2,Gr,ia,STF,m1,dGn,r4Q,bU1,oen,jhg,gaQ,MO$,$jm,VOF,fTn,k$c,D1,Cw1,c$n,u7n,xjd,p$1,TOE,Hu,lTd,t0,Fll,aTQ,UjE,Ng,hp7,A$$,Rp1,vx,Ean,epm,LlQ,BOF,Z2E,QHw,Oj,ITn,w$c,J$1,nad,qil,Kl3,Pwl,YF,G$d,i2w,tOm,DjQ,mjn,H2F,SbJ,vEw,OFi,YbQ,dgE,r0Q,bFd,jkw,oE3,W13,zSQ,SH,gEE,MTl,A0d,VTi,f17,skE,$gi,UgQ,c0c,Ca1,a11,uom,xgm,pud,T7c,krm,l1Q,y0w,r8,F1E,hSJ,RSi,eSd,EEm,Qkc,L1c,ZFn,wul,I13,qbi,nEE,J0i,bG,K11,oG,GrJ,iF1,sj,tTE,g8,HFm,N77, vFg,O6l,Sj1,Yjm,mJc,b6m,ihi,MQ,Aq,dQm,rqm,oFm,$F,W3m,jGm,zGm,sG3,gFJ,AqJ,MHm,k5m,kF,VHl,UQ$,Uj,aew,cql,uG,C6,xQE,cx,px$,yE,F3c,le7,CGc,yqJ,hGE,RG1,eGl,uPF,EFc,aG,QGm,T8w,Dgi,f6,p6,T5,B8$,Z6d,Xxn,wxm,IeE,qjw,nF7,Jqm,K31,lG,PGl,i6w,mQ7,tHw,G5w,DQg,H6n,N8m,v67,Oql,YAJ,hq,J1m,SAJ,dkn,RG,rAc,bq1,Ej,WaE,zwg,QE,g61,M3l,sbF,jbQ,L6,eH,o6E,XP,Ze,V3d,w8,Bx,kZd,uC7,yAJ,a2Q,pRn,f2d,C61,Tt3,$kc,l2d,Fag,K6,IG,ewn,E63,hwE,n6,Lal,Bt$,cA1,UkF,QbE,Zq7,xkn,Rw$,AA7,Px,G5,iG,XR7,m3,KaQ,qAn,P67,n6w,I2m,GZl,wRg,t3i,iqn, tq,Dkm,Ntg,Op$,Ye3,SeJ,bpg,vR,ohc,doc,Jq,z71,s2E,rt,XOc,De,ghm,MKd,AMl,VKF,fa3,WgQ,Y6,$on,kvg,Uo$,uli,cMJ,pjm,OA,Cn$,aal,yM7,pwi,xo7,vhc,la7,Txn,S3,Hx,Fgc,ob,h7Q,R71,e7c,Ehg,Q23,b6,rMJ,YT1,qQ,LgE,Bx1,Zpn,Xw1,ww7,j3,WR,qe$,nh1,JMQ,IaQ,Kgl,zZ,moi,Gv1,ipF,tKg,sA,DoQ,Hp3,Nxl,gt,v5$,Y01,S0E,dan,Mk,Ofn,Vb,AA,rhg,bfl,k6,fq,$6,o5E,UA,jB3,Wow,zQ7,g5w,sBl,x6,Vo7,Ahd,Mog,ftm,pq,$aF,TZ,k93,l6,Uaw,ch3,atn,yh3,TP1,uxi,xa3,FC,COd,pim,ltc,Fol,hQl,RQ1,Rb,eQd,Qb,e3,E51,Lq,BR,Lo7,BP7,XC,wt,ZfE,Z2,Xi3,Ib,It$,wiQ,nq, JA,Kq,JhF,q0c,n5d,PR,Ko1,ma1,G9E,POn,ifi,GZ,DaF,Oj3,YYF,ma,SYE,i6,Hfl,NPQ,bjF,tA,D2,oyw,jqm,WVF,zAQ,sq1,vw,VP1,AGw,fNQ,Oe,MPE,kt1,Nk,Yh,SK,gyJ,rx,dx,Uhd,bn,cGg,uVF,C_J,o2,jK,yGi,aNm,xhc,pJc,Tl3,lNl,FV1,eAm,hA$,EyQ,Qqg,wJl,IN7,XJ3,qY7,nyE,JGl,kh,P_3,Gt$,Nlw,un,YH$,rNl,dIl,SH$,Dhl,Hj3,iji,mhE,vPd,Cp,a2,oPd,CU,mrd,jo3,pp,ln,z$7,WQJ,Ovd,gPl,MDd,VDg,Fl,Bw,fPg,$Ig,kd1,cNc,UIm,uXc,Za,Xl,CfJ,xIm,pAn,qo,aP3,TuJ,lPi,yN1,Kp,FQc,h$7,JM,R$i,e$l,EPi,Qog,Bud,LQQ,wA$,IPQ,Zvw,nP1,JNl,XAg,mg,tM,KQQ,ivJ,Da,Gdm,PfQ, mIc,DIJ,tDg,HvJ,Hw,Nui,vgE,OId,Y5m,S5Q,dmw,ra1,ogQ,bI1,jVJ,WeJ,z8Q,sVm,ggJ,Vf3,vi,No,O0,AaQ,fy1,Mf$,udm,Co3,yad,po$,xmQ,aym,TU1,lyQ,Y5,So,Fel,h8g,R8i,e8E,QVw,Le1,rP,BUF,dP,oB,Egc,ZIm,Xoc,woF,IyE,q5J,ngw,Wi,Ja3,Kei,iIn,z9,mm1,GNw,s0,gP,Ma,Dmi,HI7,NU1,tf$,OWn,vjE,Ygd,SgQ,dXg,bWm,WPi,rb$,ojE,Ah,z6E,gjJ,MtJ,Ab7,fil,ff,$5,$XJ,sY1,cbm,UXm,kFE,k5,U0,Cvl,urd,ci,uO,Cf,ybE,yx,aig,xXi,pPd,Tsn,aB,lim,x5,FPm,pf,T9,lO,h6l,R6l,e6$,Fx,hh,Bsn,ZW7,Ejm,XP3,Iic,qgE,njJ,wPJ,KPE,Jbl,Pvg,mXc,E0,DXQ,ttE,GFi,iW7,HWn,Nsc, Qx,Lf,vM7,O3g,YNm,SNl,dx$,rPw,oMw,jCw,fUc,sCw,gMl,WYw,kPF,qa,Jh,yPd,aUg,G9,iO,xxd,Uxd,IB,Dt,th,Kf,T01,lUF,Hi,hH7,eHw,RH3,Na,Pi,wP,FYi,mo,cPc,psF,QC$,Bi,vJ,LYQ,B0d,nf,uci,OY,Yy,Z33,SP,dl,rl,Xs$,ws3,qNm,nME,IUE,b_,JPg,oq,jP,KYl,PY1,GPg,i3m,mxd,tAi,H3i,Dx7,zt,WJ,N07,OJQ,vpd,sY,gl,Y11,dwn,rfl,Mh,S1g,bJd,op1,j5$,W$d,zMQ,s51,gpE,AG,fj,Vbw,Mb1,Af7,$y,ky,$wd,fzi,ks$,cfi,Uwc,u0n,cJ,CXw,yfn,Cj,azi,yi,xwQ,pyn,TRn,lzc,F$l,RMc,eMF,Epg,hM$,Q5F,L$Q,BR$,ZJ$,Xy1,wyw,Izc,q11,FV,npQ,Jfc,K$d,iJi,HJm,tbm,Gs1,eP,mwF,PXE, Dw1,EY,vng,NRJ,Qi,Ok1,Yh$,Sh1,NOQ,XV,rZw,BJ,wl,ZN,qh,dTl,rH3,zqE,seJ,gnm,nj,Mnw,Vn$,uEE,i_,CR3,cHd,yHF,mV,DN,HJ,xTF,a7n,AH7,Nh,TmF,l7F,pF3,hqw,vA,RqQ,eqJ,EnQ,tG,Li1,Qe$,OH,YP,klc,PJ,Bmd,Zkc,XFn,wFm,f7l,$Tc,Gt,I7Q,qh7,nnJ,JHF,Kid,SD,Gln,DTQ,ru,Hki,Nmn,mTi,oo,vqn,O13,PRc,Yw$,tnF,Sww,jD,bf,dpd,b1c,rDm,du,jc3,WA,j2m,Wd3,gqm,scd,Vwg,ADi,Mww,sH,zd,$pl,k0d,Upm,cDE,Fdm,xpE,p9l,yDn,ecd,CDF,AN,Ldl,Eqw,B9c,Z1d,V3,$P,kP,qwn,Iwl,w9d,cA,lwm,ao,JD1,y3,UH,PD$,G0d,i13,Rc3,Td,FX,mpd,T9E,nqg,uf,twg,fv,Dpc,H1i,N9i,eD, EH,KdQ,vBQ,Ot$,Q3,Lv,YpE,Cv,Qcc,Spd,d4w,rW7,lf,bt7,xP,oBF,pv,zW,jXi,zF3,BA,ZP,sXE,gBF,MSg,Ro,hN,VSw,zcg,AWw,gu,fRQ,$4$,k8$,U4l,XX,wu,Ckl,x4d,T_i,uvg,LAm,B_i,Ztm,X_7,w_g,IRJ,qpi,JW$,nBi,Io,qI,nv,KA$,Pki,G8w,m9,itl,JN,m4m,Kv,tSQ,PA,Gd,D43,xu,mQ,tE,Ht1,xO,RDd,N_w,dM,vSn,ZD,Xj,Ooi,OR,YrF,Sr7,pi,X37,dKc,r2l,tN,oSw,jln,DP,NI,vo,Wxw,gSE,MLc,O5,VLg,z5Q,fB1,slQ,A2F,$KQ,kxw,UKl,c21,Yg,Cm$,hxE,yT,Sh,y2c,aB7,bz,uid,h8,xKJ,pnl,Tji,Sf,u7,FxJ,h5d,dU,rU,R5d,bo,e5i,HA,ESd,QlE,NYQ,oV,jf,Lx$,Wo,zN,Bj1,s5,Zow,gU,Mm, Xni,wnQ,Tg3,VR,IB$,nSF,qrE,Aa,fI,J2E,$g,Kx1,Pm1,Gxn,iog,mKg,tLl,Ho7,U5,DKd,Njn,v4l,OEF,Y_F,bEJ,S_m,db7,rJc,j4m,zjJ,s4n,g4d,WH7,co,MCc,VCQ,AJ3,fG7,$bm,CI,kp$,yR,aV,xg,Ub7,cJm,CQi,yJ7,aGJ,xbd,TWQ,p6g,lGE,pI,TN,Rj1,FHE,hjn,lo,ejE,E4c,Fd,ha,Q4F,RV,LHF,ef,BWd,E5,QR,ZEJ,LI,Bo,X6g,w6n,Zy,Xd,IGE,wU,q_Q,n4n,Ja,KI,JJJ,KH7,PQF,mbg,iEi,Po,tCw,Dbd,HEd,LUF,Gpc,vQ8,OnC,SEJ,vQi,Wm;vm=function(v){return function(){return vQi[v].apply(this,arguments)}}; g.rF=function(v,O){return vQi[v]=O}; Onn=function(v){var O=0;return function(){return O=this.length))return this[v]}; J3=function(v){return v?v:nn}; M1c=function(v,O,Y){v instanceof String&&(v=String(v));for(var S=v.length-1;S>=0;S--){var d=v[S];if(O.call(Y,d,S,v))return{ez:S,hN:d}}return{ez:-1,hN:void 0}}; Kn=function(v){return v?v:function(O,Y){return M1c(this,O,Y).ez}}; g.Gc=function(v,O,Y){v=v.split(".");Y=Y||g.Pm;for(var S;v.length&&(S=v.shift());)v.length||O===void 0?Y[S]&&Y[S]!==Object.prototype[S]?Y=Y[S]:Y=Y[S]={}:Y[S]=O}; m7=function(v,O){var Y=g.il("CLOSURE_FLAGS");v=Y&&Y[v];return v!=null?v:O}; g.il=function(v,O){v=v.split(".");O=O||g.Pm;for(var Y=0;Y2){var S=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,S);return v.apply(O,d)}}return function(){return v.apply(O,arguments)}}; g.YY=function(v,O,Y){g.YY=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?A3d:fJ1;return g.YY.apply(null,arguments)}; g.SU=function(v,O){var Y=Array.prototype.slice.call(arguments,1);return function(){var S=Y.slice();S.push.apply(S,arguments);return v.apply(this,S)}}; g.rS=function(){return Date.now()}; bL=function(v){return v}; g.o8=function(v,O){function Y(){} Y.prototype=O.prototype;v.cj=O.prototype;v.prototype=new Y;v.prototype.constructor=v;v.PE=function(S,d,r){for(var b=Array(arguments.length-2),z=2;z=0;--Y)Y in S&&O.call(void 0,S[Y],Y,v)}; g.gS=function(v,O,Y){O=sJ(v,O,Y);return O<0?null:typeof v==="string"?v.charAt(O):v[O]}; sJ=function(v,O,Y){for(var S=v.length,d=typeof v==="string"?v.split(""):v,r=0;r=0;S--)if(S in d&&O.call(Y,d[S],S,v))return S;return-1}; g.Vv=function(v,O){return uwg(v,O)>=0}; ClJ=function(v){if(!Array.isArray(v))for(var O=v.length-1;O>=0;O--)delete v[O];v.length=0}; g.$Y=function(v,O){O=uwg(v,O);var Y;(Y=O>=0)&&g.fC(v,O);return Y}; g.fC=function(v,O){return Array.prototype.splice.call(v,O,1).length==1}; g.kY=function(v,O){O=sJ(v,O);O>=0&&g.fC(v,O)}; y3F=function(v,O){var Y=0;c3w(v,function(S,d){O.call(void 0,S,d,v)&&g.fC(v,d)&&Y++})}; g.UJ=function(v){return Array.prototype.concat.apply([],arguments)}; g.c0=function(v){var O=v.length;if(O>0){for(var Y=Array(O),S=0;S>>1),M=void 0;Y?M=O.call(void 0,v[z],z,v):M=O(S,v[z]);M>0?d=z+1:(r=z,b=!M)}return b?d:-d-1}; g.R8=function(v,O){v.sort(O||pC)}; pmw=function(v,O){var Y=pC;g.R8(v,function(S,d){return Y(O(S),O(d))})}; g.eU=function(v,O,Y){if(!g.Hm(v)||!g.Hm(O)||v.length!=O.length)return!1;var S=v.length;Y=Y||TFF;for(var d=0;dO?1:v0&&(O[d]=S)},v); return O}; Zn$=function(v){v=sI(v);var O=[];g.Xt(v,function(Y,S){S in Object.prototype||typeof Y!="undefined"&&O.push([S,":",Y].join(""))}); return O}; wmF=function(v){jY(v,"od",Xmn);jY(v,"opac",g3).Y=!0;jY(v,"sbeos",g3).Y=!0;jY(v,"prf",g3).Y=!0;jY(v,"mwt",g3).Y=!0;jY(v,"iogeo",g3)}; Mv=function(v,O){return v.lastIndexOf(O,0)==0}; IJ1=function(v,O){var Y=v.length-O.length;return Y>=0&&v.indexOf(O,Y)==Y}; g.Vh=function(v){return/^[\s\xa0]*$/.test(v)}; g.fg=function(v,O){return v.indexOf(O)!=-1}; $I=function(v,O){return g.fg(v.toLowerCase(),O.toLowerCase())}; g.c5=function(v,O){var Y=0;v=kI(String(v)).split(".");O=kI(String(O)).split(".");for(var S=Math.max(v.length,O.length),d=0;Y==0&&dO?1:0}; g.yh=function(){var v=g.Pm.navigator;return v&&(v=v.userAgent)?v:""}; Tg=function(v){if(!aT&&!xI||!pg)return!1;for(var O=0;O0:!1}; hs=function(){return FU()?!1:lh("Opera")}; qEl=function(){return FU()?!1:lh("Trident")||lh("MSIE")}; nQE=function(){return FU()?Tg("Microsoft Edge"):lh("Edg/")}; RT=function(){return lh("Firefox")||lh("FxiOS")}; Qh=function(){return lh("Safari")&&!(EI()||(FU()?0:lh("Coast"))||hs()||(FU()?0:lh("Edge"))||nQE()||(FU()?Tg("Opera"):lh("OPR"))||RT()||lh("Silk")||lh("Android"))}; EI=function(){return FU()?Tg("Chromium"):(lh("Chrome")||lh("CriOS"))&&!(FU()?0:lh("Edge"))||lh("Silk")}; J33=function(){return lh("Android")&&!(EI()||RT()||hs()||lh("Silk"))}; K7$=function(v){var O={};v.forEach(function(Y){O[Y[0]]=Y[1]}); return function(Y){return O[Y.find(function(S){return S in O})]||""}}; Plc=function(v){var O=g.yh();if(v==="Internet Explorer"){if(qEl())if((v=/rv: *([\d\.]*)/.exec(O))&&v[1])O=v[1];else{v="";var Y=/MSIE +([\d\.]+)/.exec(O);if(Y&&Y[1])if(O=/Trident\/(\d.\d)/.exec(O),Y[1]=="7.0")if(O&&O[1])switch(O[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=Y[1];O=v}else O="";return O}var S=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");Y=[];for(var d;d=S.exec(O);)Y.push([d[1],d[2],d[3]||void 0]); O=K7$(Y);switch(v){case "Opera":if(hs())return O(["Version","Opera"]);if(FU()?Tg("Opera"):lh("OPR"))return O(["OPR"]);break;case "Microsoft Edge":if(FU()?0:lh("Edge"))return O(["Edge"]);if(nQE())return O(["Edg"]);break;case "Chromium":if(EI())return O(["Chrome","CriOS","HeadlessChrome"])}return v==="Firefox"&&RT()||v==="Safari"&&Qh()||v==="Android Browser"&&J33()||v==="Silk"&&lh("Silk")?(O=Y[2])&&O[1]||"":""}; Gci=function(v){if(FU()&&v!=="Silk"){var O=pg.brands.find(function(Y){return Y.brand===v}); if(!O||!O.version)return NaN;O=O.version.split(".")}else{O=Plc(v);if(O==="")return NaN;O=O.split(".")}return O.length===0?NaN:Number(O[0])}; m$7=function(){var v=null;if(!inE)return v;try{var O=function(Y){return Y}; v=inE.createPolicy("goog#html",{createHTML:O,createScript:O,createScriptURL:O})}catch(Y){}return v}; B5=function(){Lg===void 0&&(Lg=m$7());return Lg}; Zc=function(v){this.Y=v}; XU=function(v){var O=B5();v=O?O.createScriptURL(v):v;return new Zc(v)}; w3=function(v){if(v instanceof Zc)return v.Y;throw Error("");}; IT=function(v){this.Y=v}; g.qv=function(v){if(v instanceof IT)return v.Y;throw Error("");}; ng=function(v){this.sE=v}; Js=function(v){return new ng(function(O){return O.substr(0,v.length+1).toLowerCase()===v+":"})}; g.Kg=function(v,O){O=O===void 0?t11:O;a:if(O=O===void 0?t11:O,!(v instanceof IT)){for(var Y=0;Y4);d++)O[zK(v[d])]||(Y+="\nInner error "+S++ +": ",v[d].stack&&v[d].stack.indexOf(v[d].toString())==0||(Y+=typeof v[d]==="string"?v[d]:v[d].message+"\n"),Y+=jR(v[d],O));d")!=-1&&(v=v.replace(j8Q,">")),v.indexOf('"')!=-1&&(v=v.replace(WN1,""")),v.indexOf("'")!=-1&&(v=v.replace(zNc,"'")),v.indexOf("\x00")!=-1&&(v=v.replace(s8F,"�")));return v}; g.Ac=function(v){return v==null?"":String(v)}; $r=function(v){for(var O=0,Y=0;Y>>0;return O}; kr=function(v){var O=Number(v);return O==0&&g.Vh(v)?NaN:O}; gYm=function(v){return String(v).replace(/\-([a-z])/g,function(O,Y){return Y.toUpperCase()})}; MU$=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; VU7=function(v){return v.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(O,Y,S){return Y+S.toUpperCase()})}; AYl=function(v){var O=1;v=v.split(":");for(var Y=[];O>0&&v.length;)Y.push(v.shift()),O--;v.length&&Y.push(v.join(":"));return Y}; U7=function(){return aT||xI?!!pg&&!!pg.platform:!1}; fK$=function(){return U7()?pg.platform==="Android":lh("Android")}; cE=function(){return lh("iPhone")&&!lh("iPod")&&!lh("iPad")}; ug=function(){return cE()||lh("iPad")||lh("iPod")}; Cd=function(){return U7()?pg.platform==="macOS":lh("Macintosh")}; $Nd=function(){return U7()?pg.platform==="Windows":lh("Windows")}; yX=function(v){yX[" "](v);return v}; kwE=function(v,O){try{return yX(v[O]),!0}catch(Y){}return!1}; cY$=function(v,O){var Y=UNw;return Object.prototype.hasOwnProperty.call(Y,v)?Y[v]:Y[v]=O(v)}; g.au=function(v){return cY$(v,function(){return g.c5(utQ,v)>=0})}; g.xr=function(v,O,Y){return Math.min(Math.max(v,O),Y)}; g.pd=function(v,O){v%=O;return v*O<0?v+O:v}; TK=function(v,O,Y){return v+Y*(O-v)}; g.lg=function(v,O){this.x=v!==void 0?v:0;this.y=O!==void 0?O:0}; Fp=function(v,O){return v==O?!0:v&&O?v.x==O.x&&v.y==O.y:!1}; g.hc=function(v,O){this.width=v;this.height=O}; g.Ru=function(v,O){return v==O?!0:v&&O?v.width==O.width&&v.height==O.height:!1}; eR=function(v){return v.width*v.height}; QX=function(v,O){this.Y=v===E7&&O||""}; Ld=function(v){if(v instanceof ts)return v;v=String(v).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return Dc(v)}; yYJ=function(v){return CL$(v)}; CL$=function(v){var O=Ld("");return Dc(v.map(function(Y){return H5(Ld(Y))}).join(H5(O).toString()))}; lKF=function(v){var O;if(!aK1.test("div"))throw Error("");if(xNn.indexOf("DIV")!==-1)throw Error("");var Y="":(v=yYJ(O.map(function(S){return S instanceof ts?S:Ld(String(S))})),Y+=">"+v.toString()+""); return Dc(Y)}; p0c=function(v){for(var O="",Y=Object.keys(v),S=0;S2&&BSJ(d,b,S,2);return b}; BSJ=function(v,O,Y,S){function d(z){z&&O.appendChild(typeof z==="string"?v.createTextNode(z):z)} for(;S0)d(r);else{a:{if(r&&typeof r.length=="number"){if(g.N$(r)){var b=typeof r.item=="function"||typeof r.item=="string";break a}if(typeof r==="function"){b=typeof r.item=="function";break a}}b=!1}g.LC(b?g.c0(r):r,d)}}}; g.tc=function(v){return ig(document,v)}; ig=function(v,O){O=String(O);v.contentType==="application/xhtml+xml"&&(O=O.toLowerCase());return v.createElement(O)}; g.DC=function(v){return document.createTextNode(String(v))}; g.HE=function(v,O){v.appendChild(O)}; g.Nn=function(v){for(var O;O=v.firstChild;)v.removeChild(O)}; vL=function(v,O,Y){v.insertBefore(O,v.childNodes[Y]||null)}; g.Ov=function(v){return v&&v.parentNode?v.parentNode.removeChild(v):null}; g.YW=function(v,O){if(!v||!O)return!1;if(v.contains&&O.nodeType==1)return v==O||v.contains(O);if(typeof v.compareDocumentPosition!="undefined")return v==O||!!(v.compareDocumentPosition(O)&16);for(;O&&v!=O;)O=O.parentNode;return O==v}; ZC=function(v){return v.nodeType==9?v:v.ownerDocument||v.document}; g.S9=function(v,O){if("textContent"in v)v.textContent=O;else if(v.nodeType==3)v.data=String(O);else if(v.firstChild&&v.firstChild.nodeType==3){for(;v.lastChild!=v.firstChild;)v.removeChild(v.lastChild);v.firstChild.data=String(O)}else g.Nn(v),v.appendChild(ZC(v).createTextNode(String(O)))}; X0n=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")||ZCE(v)):v.hasAttribute("tabindex")&&ZCE(v)}; ZCE=function(v){v=v.tabIndex;return typeof v==="number"&&v>=0&&v<32768}; rH=function(v,O,Y){if(!O&&!Y)return null;var S=O?String(O).toUpperCase():null;return dH(v,function(d){return(!S||d.nodeName==S)&&(!Y||typeof d.className==="string"&&g.Vv(d.className.split(/\s+/),Y))},!0)}; dH=function(v,O,Y){v&&!Y&&(v=v.parentNode);for(Y=0;v;){if(O(v))return v;v=v.parentNode;Y++}return null}; BE=function(v){this.Y=v||g.Pm.document||document}; w0c=function(){this.Y=this.kO=null}; bS=function(){}; j9=function(){if(!of())throw Error();}; of=function(){return!(!WL||!WL.performance)}; IKQ=function(v){return g.PE?"webkit"+v:v.toLowerCase()}; zO=function(v){return function(){return v}}; g.gH=function(){}; qJQ=function(v){var O=O||0;return function(){return v.apply(this,Array.prototype.slice.call(arguments,0,O))}}; My=function(v){var O=!1,Y;return function(){O||(Y=v(),O=!0);return Y}}; Vm=function(v){var O=v;return function(){if(O){var Y=O;O=null;Y()}}}; Av=function(v,O,Y){var S=0;return function(d){g.Pm.clearTimeout(S);var r=arguments;S=g.Pm.setTimeout(function(){v.apply(Y,r)},O)}}; f4=function(v,O,Y,S){this.top=v;this.right=O;this.bottom=Y;this.left=S}; $W=function(v){return v.right-v.left}; kW=function(v,O){return v==O?!0:v&&O?v.top==O.top&&v.right==O.right&&v.bottom==O.bottom&&v.left==O.left:!1}; Uv=function(v,O,Y){O instanceof g.lg?(v.left+=O.x,v.right+=O.x,v.top+=O.y,v.bottom+=O.y):(v.left+=O,v.right+=O,typeof Y==="number"&&(v.top+=Y,v.bottom+=Y));return v}; g.cL=function(v,O,Y,S){this.left=v;this.top=O;this.width=Y;this.height=S}; uS=function(v,O){return v==O?!0:v&&O?v.left==O.left&&v.width==O.width&&v.top==O.top&&v.height==O.height:!1}; g.ym=function(v,O,Y){if(typeof O==="string")(O=C4(v,O))&&(v.style[O]=Y);else for(var S in O){Y=v;var d=O[S],r=C4(Y,S);r&&(Y.style[r]=d)}}; C4=function(v,O){var Y=nYi[O];if(!Y){var S=gYm(O);Y=S;v.style[S]===void 0&&(S=(g.PE?"Webkit":af?"Moz":null)+VU7(S),v.style[S]!==void 0&&(Y=S));nYi[O]=Y}return Y}; g.xW=function(v,O){var Y=v.style[gYm(O)];return typeof Y!=="undefined"?Y:v.style[C4(v,O)]||""}; p4=function(v,O){var Y=ZC(v);return Y.defaultView&&Y.defaultView.getComputedStyle&&(v=Y.defaultView.getComputedStyle(v,null))?v[O]||v.getPropertyValue(O)||"":""}; TO=function(v,O){return p4(v,O)||(v.currentStyle?v.currentStyle[O]:null)||v.style&&v.style[O]}; g.FR=function(v,O,Y){if(O instanceof g.lg){var S=O.x;O=O.y}else S=O,O=Y;v.style.left=g.lS(S,!1);v.style.top=g.lS(O,!1)}; hv=function(v){try{return v.getBoundingClientRect()}catch(O){return{left:0,top:0,right:0,bottom:0}}}; JYc=function(v){var O=ZC(v),Y=TO(v,"position"),S=Y=="fixed"||Y=="absolute";for(v=v.parentNode;v&&v!=O;v=v.parentNode)if(v.nodeType==11&&v.host&&(v=v.host),Y=TO(v,"position"),S=S&&Y=="static"&&v!=O.documentElement&&v!=O.body,!S&&(v.scrollWidth>v.clientWidth||v.scrollHeight>v.clientHeight||Y=="fixed"||Y=="absolute"||Y=="relative"))return v;return null}; g.Rf=function(v){var O=ZC(v),Y=new g.lg(0,0);if(v==(O?ZC(O):document).documentElement)return Y;v=hv(v);O=Xp(O);O=LNi(O.Y);Y.x=v.left+O.x;Y.y=v.top+O.y;return Y}; PLF=function(v,O){var Y=new g.lg(0,0),S=GK(ZC(v));if(!kwE(S,"parent"))return Y;do{var d=S==O?g.Rf(v):KNn(v);Y.x+=d.x;Y.y+=d.y}while(S&&S!=O&&S!=S.parent&&(v=S.frameElement)&&(S=S.parent));return Y}; g.e9=function(v,O){v=Gw1(v);O=Gw1(O);return new g.lg(v.x-O.x,v.y-O.y)}; KNn=function(v){v=hv(v);return new g.lg(v.left,v.top)}; Gw1=function(v){if(v.nodeType==1)return KNn(v);v=v.changedTouches?v.changedTouches[0]:v;return new g.lg(v.clientX,v.clientY)}; g.Ev=function(v,O,Y){if(O instanceof g.hc)Y=O.height,O=O.width;else if(Y==void 0)throw Error("missing height argument");v.style.width=g.lS(O,!0);v.style.height=g.lS(Y,!0)}; g.lS=function(v,O){typeof v=="number"&&(v=(O?Math.round(v):v)+"px");return v}; g.Qm=function(v){var O=iCF;if(TO(v,"display")!="none")return O(v);var Y=v.style,S=Y.display,d=Y.visibility,r=Y.position;Y.visibility="hidden";Y.position="absolute";Y.display="inline";v=O(v);Y.display=S;Y.position=r;Y.visibility=d;return v}; iCF=function(v){var O=v.offsetWidth,Y=v.offsetHeight,S=g.PE&&!O&&!Y;return(O===void 0||S)&&v.getBoundingClientRect?(v=hv(v),new g.hc(v.right-v.left,v.bottom-v.top)):new g.hc(O,Y)}; g.L4=function(v,O){v.style.display=O?"":"none"}; BL=function(v){return v?v.passive&&mNF()?v:v.capture||!1:!1}; wH=function(v,O,Y,S){return typeof v.addEventListener==="function"?(v.addEventListener(O,Y,BL(S)),!0):!1}; If=function(v){if(v.prerendering)return 3;var O;return(O={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[v.visibilityState||v.webkitVisibilityState||v.mozVisibilityState||""])!=null?O:0}; tUw=function(){}; qy=function(v){v.teW=!0;return v}; DNJ=function(){return(aT||xI)&&pg?pg.mobile:!n4()&&(lh("iPod")||lh("iPhone")||lh("Android")||lh("IEMobile"))}; n4=function(){return(aT||xI)&&pg?!pg.mobile&&(lh("iPad")||lh("Android")||lh("Silk")):lh("iPad")||lh("Android")&&!lh("Mobile")||lh("Silk")}; Jv=function(v){try{return!!v&&v.location.href!=null&&kwE(v,"foo")}catch(O){return!1}}; K4=function(v,O){if(v)for(var Y in v)Object.prototype.hasOwnProperty.call(v,Y)&&O(v[Y],Y,v)}; NSg=function(){var v=[];K4(HCQ,function(O){v.push(O)}); return v}; vIc=function(v){var O,Y;return(Y=(O=/https?:\/\/[^\/]+/.exec(v))==null?void 0:O[0])!=null?Y:""}; SIm=function(){var v=OgQ("IFRAME"),O={};g.LC(YIJ(),function(Y){v.sandbox&&v.sandbox.supports&&v.sandbox.supports(Y)&&(O[Y]=!0)}); return O}; OgQ=function(v,O){O=O===void 0?document:O;return O.createElement(String(v).toLowerCase())}; dv$=function(v){for(var O=v;v&&v!=v.parent;)v=v.parent,Jv(v)&&(O=v);return O}; jT7=function(v){v=v||PL();for(var O=new rsE(g.Pm.location.href,!1),Y=null,S=v.length-1,d=S;d>=0;--d){var r=v[d];!Y&&bg$.test(r.url)&&(Y=r);if(r.url&&!r.Y){O=r;break}}d=null;r=v.length&&v[S].url;O.depth!==0&&r&&(d=v[S]);return new oIl(O,d,Y)}; PL=function(){var v=g.Pm,O=[],Y=null;do{var S=v;if(Jv(S)){var d=S.location.href;Y=S.document&&S.document.referrer||null}else d=Y,Y=null;O.push(new rsE(d||""));try{v=S.parent}catch(r){v=null}}while(v&&S!==v);S=0;for(v=O.length-1;S<=v;++S)O[S].depth=v-S;S=g.Pm;if(S.location&&S.location.ancestorOrigins&&S.location.ancestorOrigins.length===O.length-1)for(v=1;vO&&(O=Y.length);return 3997-O-v.G.length-1}; tv=function(v,O){this.Y=v;this.depth=O}; gIQ=function(){function v(z,M){return z==null?M:z} var O=PL(),Y=Math.max(O.length-1,0),S=jT7(O);O=S.Y;var d=S.U,r=S.G,b=[];r&&b.push(new tv([r.url,r.Y?2:0],v(r.depth,1)));d&&d!=r&&b.push(new tv([d.url,2],0));O.url&&O!=r&&b.push(new tv([O.url,0],v(O.depth,Y)));S=g.DQ(b,function(z,M){return b.slice(0,b.length-M)}); !O.url||(r||d)&&O!=r||(d=vIc(O.url))&&S.push([new tv([d,1],v(O.depth,Y))]);S.push([]);return g.DQ(S,function(z){return sTc(Y,z)})}; sTc=function(v,O){g.HL(O,function(d){return d.depth>=0}); var Y=Ny(O,function(d,r){return Math.max(d,r.depth)},-1),S=lJQ(Y+2); S[0]=v;g.LC(O,function(d){return S[d.depth+1]=d.Y}); return S}; MYg=function(){var v=v===void 0?gIQ():v;return v.map(function(O){return mO(O)})}; VYl=function(v){var O=!1;O=O===void 0?!1:O;WL.google_image_requests||(WL.google_image_requests=[]);var Y=OgQ("IMG",WL.document);O&&(Y.attributionSrc="");Y.src=v;WL.google_image_requests.push(Y)}; vU=function(v){var O="Ce";if(v.Ce&&v.hasOwnProperty(O))return v.Ce;var Y=new v;v.Ce=Y;v.hasOwnProperty(O);return Y}; Ou=function(){this.U=new tUw;this.Y=of()?new j9:new bS}; As1=function(){YK();var v=WL.document;return!!(v&&v.body&&v.body.getBoundingClientRect&&typeof WL.setInterval==="function"&&typeof WL.clearInterval==="function"&&typeof WL.setTimeout==="function"&&typeof WL.clearTimeout==="function")}; fcn=function(){YK();return MYg()}; $vJ=function(){}; YK=function(){var v=vU($vJ);if(!v.Y){if(!WL)throw Error("Context has not been set and window is undefined.");v.Y=vU(Ou)}return v.Y}; Sl=function(){throw Error("Invalid UTF8");}; kgc=function(v,O){O=String.fromCharCode.apply(null,O);return v==null?O:v+O}; ChJ=function(v){var O=!1;O=O===void 0?!1:O;if(UvQ){if(O&&(csF?!v.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(v)))throw Error("Found an unpaired surrogate");v=(uU$||(uU$=new TextEncoder)).encode(v)}else{for(var Y=0,S=new Uint8Array(3*v.length),d=0;d>6|192;else{if(r>=55296&&r<=57343){if(r<=56319&&d=56320&&b<=57343){r=(r-55296)*1024+ b-56320+65536;S[Y++]=r>>18|240;S[Y++]=r>>12&63|128;S[Y++]=r>>6&63|128;S[Y++]=r&63|128;continue}else d--}if(O)throw Error("Found an unpaired surrogate");r=65533}S[Y++]=r>>12|224;S[Y++]=r>>6&63|128}S[Y++]=r&63|128}}v=Y===S.length?S:S.subarray(0,Y)}return v}; da=function(v){g.Pm.setTimeout(function(){throw v;},0)}; ysl=function(v){return Array.prototype.map.call(v,function(O){O=O.toString(16);return O.length>1?O:"0"+O}).join("")}; aci=function(v){for(var O=[],Y=0;Y>6|192:((d&64512)==55296&&S+1>18|240,O[Y++]=d>>12&63|128):O[Y++]=d>>12|224,O[Y++]=d>>6&63|128),O[Y++]=d&63|128)}return O}; g.bV=function(v,O){O===void 0&&(O=0);xv1();O=p5E[O];for(var Y=Array(Math.floor(v.length/3)),S=O[64]||"",d=0,r=0;d>2];b=O[(b&3)<<4|z>>4];z=O[(z&15)<<2|M>>6];M=O[M&63];Y[r++]=""+V+b+z+M}V=0;M=S;switch(v.length-d){case 2:V=v[d+1],M=O[(V&15)<<2]||S;case 1:v=v[d],Y[r]=""+O[v>>2]+O[(v&3)<<4|V>>4]+M+S}return Y.join("")}; g.ov=function(v,O){if(T3w&&!O)v=g.Pm.btoa(v);else{for(var Y=[],S=0,d=0;d255&&(Y[S++]=r&255,r>>=8);Y[S++]=r}v=g.bV(Y,O)}return v}; Fyw=function(v){var O=[];lcF(v,function(Y){O.push(Y)}); return O}; jl=function(v){var O=v.length,Y=O*3/4;Y%3?Y=Math.floor(Y):g.fg("=.",v[O-1])&&(Y=g.fg("=.",v[O-2])?Y-2:Y-1);var S=new Uint8Array(Y),d=0;lcF(v,function(r){S[d++]=r}); return d!==Y?S.subarray(0,d):S}; lcF=function(v,O){function Y(M){for(;S>4);b!=64&&(O(r<<4&240|b>>2),z!=64&&O(b<<6&192|z))}}; xv1=function(){if(!WU){WU={};for(var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),O=["+/=","+/","-_=","-_.","-_"],Y=0;Y<5;Y++){var S=v.concat(O[Y].split(""));p5E[Y]=S;for(var d=0;d=O||(S[v]=Y+1,v=Error(),SJm(v,"incident"),da(v))}}; Uu=function(v,O,Y){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(Y===void 0?0:Y)&&Symbol.for&&v?Symbol.for(v):v!=null?Symbol(v):Symbol():O}; Ce=function(v,O){cU||uV in v||w57(v,Ic3);v[uV]|=O}; yp=function(v,O){cU||uV in v||w57(v,Ic3);v[uV]=O}; av=function(){return typeof BigInt==="function"}; pe=function(v,O){return O===void 0?v.Y!==xK&&!!(2&(v.Un[uV]|0)):!!(2&O)&&v.Y!==xK}; qIE=function(v,O){if(v!=null)if(typeof v==="string")v=v?new zQ(v,MW):Vp();else if(v.constructor!==zQ)if(Zgg&&v!=null&&v instanceof Uint8Array)v=v.length?new zQ(new Uint8Array(v),MW):Vp();else{if(!O)throw Error();v=void 0}return v}; TQ=function(v,O){if(typeof O!=="number"||O<0||O>=v.length)throw Error();}; nI1=function(v,O,Y){O=O&128?0:-1;var S=v.length,d;if(d=!!S)d=v[S-1],d=d!=null&&typeof d==="object"&&d.constructor===Object;for(var r=S+(d?-1:0),b=0;bO.length)return!1;if(v.lengthd)return!1;if(S>>0;el=O;Eu=(v-O)/4294967296>>>0}; BU=function(v){if(v<0){Qp(0-v);var O=g.y(Le(el,Eu));v=O.next().value;O=O.next().value;el=v>>>0;Eu=O>>>0}else Qp(v)}; Xz=function(v,O){var Y=O*4294967296+(v>>>0);return Number.isSafeInteger(Y)?Y:Zj(v,O)}; ign=function(v,O){var Y=O&2147483648;Y&&(v=~v+1>>>0,O=~O>>>0,v==0&&(O=O+1>>>0));v=Xz(v,O);return typeof v==="number"?Y?-v:v:Y?"-"+v:v}; Zj=function(v,O){O>>>=0;v>>>=0;if(O<=2097151)var Y=""+(4294967296*O+v);else av()?Y=""+(BigInt(O)<>>24|O<<8)&16777215,O=O>>16&65535,v=(v&16777215)+Y*6777216+O*6710656,Y+=O*8147497,O*=2,v>=1E7&&(Y+=v/1E7>>>0,v%=1E7),Y>=1E7&&(O+=Y/1E7>>>0,Y%=1E7),Y=O+mvd(Y)+mvd(v));return Y}; mvd=function(v){v=String(v);return"0000000".slice(v.length)+v}; tY3=function(){var v=el,O=Eu;O&2147483648?av()?v=""+(BigInt(O|0)<>>0)):(O=g.y(Le(v,O)),v=O.next().value,O=O.next().value,v="-"+Zj(v,O)):v=Zj(v,O);return v}; wa=function(v){if(v.length<16)BU(Number(v));else if(av())v=BigInt(v),el=Number(v&BigInt(4294967295))>>>0,Eu=Number(v>>BigInt(32)&BigInt(4294967295));else{var O=+(v[0]==="-");Eu=el=0;for(var Y=v.length,S=0+O,d=(Y-O)%6+O;d<=Y;S=d,d+=6)S=Number(v.slice(S,d)),Eu*=1E6,el=el*1E6+S,el>=4294967296&&(Eu+=Math.trunc(el/4294967296),Eu>>>=0,el>>>=0);O&&(O=g.y(Le(el,Eu)),v=O.next().value,O=O.next().value,el=v,Eu=O)}}; Le=function(v,O){O=~O;v?v=~v+1:O+=1;return[v,O]}; Iv=function(v){return Array.prototype.slice.call(v)}; qW=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}; Dv3=function(v){return v.displayName||v.name||"unknown type name"}; ne=function(v){if(v!=null&&typeof v!=="boolean")throw Error("Expected boolean but got "+DJ(v)+": "+v);return v}; Ke=function(v){switch(typeof v){case "bigint":return!0;case "number":return Jl(v);case "string":return Hgm.test(v);default:return!1}}; N3i=function(v){if(typeof v!=="number")throw $K("int32");if(!Jl(v))throw $K("int32");return v|0}; PU=function(v){return v==null?v:N3i(v)}; GQ=function(v){if(v==null)return v;if(typeof v==="string"&&v)v=+v;else if(typeof v!=="number")return;return Jl(v)?v|0:void 0}; iV=function(v){if(v==null)return v;if(typeof v==="string"&&v)v=+v;else if(typeof v!=="number")return;return Jl(v)?v>>>0:void 0}; Y7$=function(v){var O=0;O=O===void 0?0:O;if(!Ke(v))throw $K("int64");var Y=typeof v;switch(O){case 512:switch(Y){case "string":return m0(v);case "bigint":return String(tl(64,v));default:return Dj(v)}case 1024:switch(Y){case "string":return vr7(v);case "bigint":return Rv(tl(64,v));default:return OdJ(v)}case 0:switch(Y){case "string":return m0(v);case "bigint":return Rv(tl(64,v));default:return HU(v)}default:return my(O,"Unknown format requested type for int64")}}; NW=function(v){return v==null?v:Y7$(v)}; S7d=function(v){if(v[0]==="-")return!1;var O=v.length;return O<20?!0:O===20&&Number(v.substring(0,6))<184467}; dn7=function(v){var O=v.length;return v[0]==="-"?O<20?!0:O===20&&Number(v.substring(0,7))>-922337:O<19?!0:O===19&&Number(v.substring(0,6))<922337}; rcQ=function(v){if(v<0){BU(v);var O=Zj(el,Eu);v=Number(O);return vb(v)?v:O}O=String(v);if(S7d(O))return O;BU(v);return Xz(el,Eu)}; bdd=function(v){if(dn7(v))return v;wa(v);return tY3()}; HU=function(v){Ke(v);v=Oc(v);vb(v)||(BU(v),v=ign(el,Eu));return v}; Dj=function(v){Ke(v);v=Oc(v);if(vb(v))v=String(v);else{var O=String(v);dn7(O)?v=O:(BU(v),v=tY3())}return v}; m0=function(v){Ke(v);var O=Oc(Number(v));if(vb(O))return String(O);O=v.indexOf(".");O!==-1&&(v=v.substring(0,O));return bdd(v)}; vr7=function(v){var O=Oc(Number(v));if(vb(O))return Rv(O);O=v.indexOf(".");O!==-1&&(v=v.substring(0,O));return av()?Rv(tl(64,BigInt(v))):Rv(bdd(v))}; OdJ=function(v){return vb(v)?Rv(HU(v)):Rv(Dj(v))}; orF=function(v){if(v==null)return v;var O=typeof v;if(O==="bigint")return String(tl(64,v));if(Ke(v)){if(O==="string")return m0(v);if(O==="number")return HU(v)}}; W41=function(v){if(v==null)return v;var O=typeof v;if(O==="bigint")return String(ju7(64,v));if(Ke(v)){if(O==="string")return Ke(v),O=Oc(Number(v)),vb(O)&&O>=0?v=String(O):(O=v.indexOf("."),O!==-1&&(v=v.substring(0,O)),S7d(v)||(wa(v),v=Zj(el,Eu))),v;if(O==="number")return Ke(v),v=Oc(v),v>=0&&vb(v)?v:rcQ(v)}}; zel=function(v){if(v==null||typeof v=="string"||v instanceof zQ)return v}; sui=function(v){if(typeof v!=="string")throw Error();return v}; YZ=function(v){if(v!=null&&typeof v!=="string")throw Error();return v}; S0=function(v){return v==null||typeof v==="string"?v:void 0}; dD=function(v,O){if(!(v instanceof O))throw Error("Expected instanceof "+Dv3(O)+" but got "+(v&&Dv3(v.constructor)));return v}; gri=function(v,O,Y){if(v!=null&&v[rD]===b3)return v;if(Array.isArray(v)){var S=v[uV]|0;Y=S|Y&32|Y&2;Y!==S&&yp(v,Y);return new O(v)}}; or=function(v){return v}; Wb=function(v){var O=bL(j0);return O?v[O]:void 0}; zu=function(){}; sc=function(v,O){for(var Y in v)!isNaN(Y)&&O(v,+Y,v[Y])}; MRn=function(v){var O=new zu;sc(v,function(Y,S,d){O[S]=Iv(d)}); O.y4=v.y4;return O}; M3=function(v,O,Y,S){var d=S!==void 0;S=!!S;var r=bL(j0),b;!d&&cU&&r&&(b=v[r])&&sc(b,VRd);r=[];var z=v.length;b=4294967295;var M=!1,V=!!(O&64),A=V?O&128?0:-1:void 0;if(!(O&1)){var f=z&&v[z-1];f!=null&&typeof f==="object"&&f.constructor===Object?(z--,b=z):f=void 0;if(V&&!(O&128)&&!d){M=!0;var k;b=((k=gD)!=null?k:or)(b-A,A,v,f)+A}}O=void 0;for(k=0;k=b){var c=k-A,a=void 0;((a=O)!=null?a:O={})[c]=U}else r[k]=U}if(f)for(var x in f)z=f[x],z!=null&& (z=Y(z,S))!=null&&(k=+x,U=void 0,V&&!Number.isNaN(k)&&(U=k+A)0?void 0:v===0?ccm||(ccm=[0,void 0]):[-v,void 0];case "string":return[0,v];case "object":return v}}; Uc=function(v,O,Y){return v=kZ(v,O[0],O[1],Y?1:2)}; kZ=function(v,O,Y,S){S=S===void 0?0:S;if(v==null){var d=32;Y?(v=[Y],d|=128):v=[];O&&(d=d&-8380417|(O&1023)<<13)}else{if(!Array.isArray(v))throw Error("narr");d=v[uV]|0;2048&d&&!(2&d)&&Cgn();if(d&256)throw Error("farr");if(d&64)return S!==0||d&2048||yp(v,d|2048),v;if(Y&&(d|=128,Y!==v[0]))throw Error("mid");a:{Y=v;d|=64;var r=Y.length;if(r){var b=r-1,z=Y[b];if(z!=null&&typeof z==="object"&&z.constructor===Object){O=d&128?0:-1;b-=O;if(b>=1024)throw Error("pvtlmt");for(var M in z)r=+M,r1024)throw Error("spvt");d=d&-8380417|(M&1023)<<13}}}d|=64;S===0&&(d|=2048);yp(v,d);return v}; Cgn=function(){kK(ycQ,5)}; aCd=function(v,O){if(typeof v!=="object")return v;if(Array.isArray(v)){var Y=v[uV]|0;v.length===0&&Y&1?v=void 0:Y&2||(!O||4096&Y||16&Y?v=cb(v,Y,!1,O&&!(Y&16)):(Ce(v,34),Y&4&&Object.freeze(v)));return v}if(v!=null&&v[rD]===b3)return O=v.Un,Y=O[uV]|0,pe(v,Y)?v:cb(O,Y);if(v instanceof zQ)return v}; cb=function(v,O,Y,S){S!=null||(S=!!(34&O));v=M3(v,O,aCd,S);S=32;Y&&(S|=2);O=O&8380609|S;yp(v,O);return v}; xnd=function(v){var O=v.Un,Y=O[uV]|0;return pe(v,Y)?new v.constructor(cb(O,Y,!1)):v}; u3=function(v){if(v.Y!==xK)return!1;var O=v.Un;O=cb(O,O[uV]|0);Ce(O,2048);v.Un=O;v.Y=void 0;v.G=void 0;return!0}; Cr=function(v){if(!u3(v)&&pe(v,v.Un[uV]|0))throw Error();}; ar=function(v,O,Y,S,d){Object.isExtensible(v);O=yU(v.Un,O,Y,d);if(O!==null||S&&v.G!==xK)return O}; yU=function(v,O,Y,S){if(O===-1)return null;var d=O+(Y?0:-1),r=v.length-1;if(!(r<1+(Y?0:-1))){if(d>=r){var b=v[r];if(b!=null&&typeof b==="object"&&b.constructor===Object){Y=b[O];var z=!0}else if(d===r)Y=b;else return}else Y=v[d];if(S&&Y!=null){S=S(Y);if(S==null)return S;if(!Object.is(S,Y))return z?b[O]=S:v[d]=S,S}return Y}}; pr=function(v,O,Y,S){Cr(v);var d=v.Un;xZ(d,d[uV]|0,O,Y,S);return v}; xZ=function(v,O,Y,S,d){var r=Y+(d?0:-1),b=v.length-1;if(b>=1+(d?0:-1)&&r>=b){var z=v[b];if(z!=null&&typeof z==="object"&&z.constructor===Object)return z[Y]=S,O}if(r<=b)return v[r]=S,O;if(S!==void 0){var M;b=((M=O)!=null?M:O=v[uV]|0)>>13&1023||536870912;Y>=b?S!=null&&(r={},v[b+(d?0:-1)]=(r[Y]=S,r)):v[r]=S}return O}; Rr=function(v,O,Y,S,d){var r=v.Un,b=r[uV]|0;S=pe(v,b)?1:S;d=!!d||S===3;S===2&&u3(v)&&(r=v.Un,b=r[uV]|0);v=Tu(r,O);var z=v===l3?7:v[uV]|0,M=FL(z,b);var V=4&M?!1:!0;if(V){4&M&&(v=Iv(v),z=0,M=hQ(M,b),b=xZ(r,b,O,v));for(var A=0,f=0;A "+v)}; jp=function(v,O,Y){this.buffer=v;if(Y&&!O)throw Error();this.Y=O}; Wg=function(v,O){if(typeof v==="string")return new jp(QTw(v),O);if(Array.isArray(v))return new jp(new Uint8Array(v),O);if(v.constructor===Uint8Array)return new jp(v,!1);if(v.constructor===ArrayBuffer)return v=new Uint8Array(v),new jp(v,!1);if(v.constructor===zQ)return O=Al(v)||new Uint8Array(0),new jp(O,!0,v);if(v instanceof Uint8Array)return v=v.constructor===Uint8Array?v:new Uint8Array(v.buffer,v.byteOffset,v.byteLength),new jp(v,!1);throw Error();}; ZdF=function(v,O,Y,S){this.U=null;this.Z=!1;this.Y=this.G=this.B=0;this.init(v,O,Y,S)}; sk=function(v){var O=0,Y=0,S=0,d=v.U,r=v.Y;do{var b=d[r++];O|=(b&127)<32&&(Y|=(b&127)>>4);for(S=3;S<32&&b&128;S+=7)b=d[r++],Y|=(b&127)<>>0,Y>>>0);throw o_();}; z1=function(v,O){v.Y=O;if(O>v.G)throw BnQ(v.G,O);}; gy=function(v){var O=v.U,Y=v.Y,S=O[Y++],d=S&127;if(S&128&&(S=O[Y++],d|=(S&127)<<7,S&128&&(S=O[Y++],d|=(S&127)<<14,S&128&&(S=O[Y++],d|=(S&127)<<21,S&128&&(S=O[Y++],d|=S<<28,S&128&&O[Y++]&128&&O[Y++]&128&&O[Y++]&128&&O[Y++]&128&&O[Y++]&128)))))throw o_();z1(v,Y);return d}; ME=function(v){var O=v.U,Y=v.Y,S=O[Y+0],d=O[Y+1],r=O[Y+2];O=O[Y+3];z1(v,v.Y+4);return(S<<0|d<<8|r<<16|O<<24)>>>0}; VI=function(v){var O=ME(v);v=ME(v);return Xz(O,v)}; AR=function(v){var O=ME(v),Y=ME(v);v=(Y>>31)*2+1;var S=Y>>>20&2047;O=4294967296*(Y&1048575)+O;return S==2047?O?NaN:v*Infinity:S==0?v*4.9E-324*O:v*Math.pow(2,S-1075)*(O+4503599627370496)}; fx=function(v){for(var O=0,Y=v.Y,S=Y+10,d=v.U;Yv.G)throw BnQ(O,v.G-Y);v.Y=S;return Y}; ICw=function(v,O){if(O==0)return Vp();var Y=XEc(v,O);v.eD&&v.Z?Y=v.U.subarray(Y,Y+O):(v=v.U,O=Y+O,Y=Y===O?new Uint8Array(0):wEg?v.slice(Y,O):new Uint8Array(v.subarray(Y,O)));return Y.length==0?Vp():new zQ(Y,MW)}; kv=function(v,O,Y,S){if($v.length){var d=$v.pop();d.init(v,O,Y,S);v=d}else v=new ZdF(v,O,Y,S);this.Y=v;this.G=this.Y.Y;this.U=this.B=-1;q7c(this,S)}; q7c=function(v,O){O=O===void 0?{}:O;v.q0=O.q0===void 0?!1:O.q0}; nri=function(v,O,Y,S){if(Uk.length){var d=Uk.pop();q7c(d,S);d.Y.init(v,O,Y,S);return d}return new kv(v,O,Y,S)}; Jcc=function(v){var O=v.Y;if(O.Y==O.G)return!1;v.G=v.Y.Y;var Y=gy(v.Y)>>>0;O=Y>>>3;Y&=7;if(!(Y>=0&&Y<=5))throw L4m(Y,v.G);if(O<1)throw Error("Invalid field number: "+O+" (at position "+v.G+")");v.B=O;v.U=Y;return!0}; cg=function(v){switch(v.U){case 0:v.U!=0?cg(v):fx(v.Y);break;case 1:v=v.Y;z1(v,v.Y+8);break;case 2:if(v.U!=2)cg(v);else{var O=gy(v.Y)>>>0;v=v.Y;z1(v,v.Y+O)}break;case 5:v=v.Y;z1(v,v.Y+4);break;case 3:O=v.B;do{if(!Jcc(v))throw Error("Unmatched start-group tag: stream EOF");if(v.U==4){if(v.B!=O)throw Error("Unmatched end-group tag");break}cg(v)}while(1);break;default:throw L4m(v.U,v.G);}}; uM=function(v,O,Y){var S=v.Y.G,d=gy(v.Y)>>>0,r=v.Y.Y+d,b=r-S;b<=0&&(v.Y.G=r,Y(O,v,void 0,void 0,void 0),b=r-v.Y.Y);if(b)throw Error("Message parsing ended unexpectedly. Expected to read "+(d+" bytes, instead read "+(d-b)+" bytes, either the data ended unexpectedly or the message misreported its own length"));v.Y.Y=r;v.Y.G=S}; xv=function(v){var O=gy(v.Y)>>>0;v=v.Y;var Y=XEc(v,O);v=v.U;if(K43){var S=v,d;(d=yI)||(d=yI=new TextDecoder("utf-8",{fatal:!0}));O=Y+O;S=Y===0&&O===S.length?S:S.subarray(Y,O);try{var r=d.decode(S)}catch(V){if(a_===void 0){try{d.decode(new Uint8Array([128]))}catch(A){}try{d.decode(new Uint8Array([97])),a_=!0}catch(A){a_=!1}}!a_&&(yI=void 0);throw V;}}else{r=Y;O=r+O;Y=[];for(var b=null,z,M;r=O?Sl():(M=v[r++],z<194||(M&192)!==128?(r--,Sl()):Y.push((z&31)<<6|M&63)): z<240?r>=O-1?Sl():(M=v[r++],(M&192)!==128||z===224&&M<160||z===237&&M>=160||((d=v[r++])&192)!==128?(r--,Sl()):Y.push((z&15)<<12|(M&63)<<6|d&63)):z<=244?r>=O-2?Sl():(M=v[r++],(M&192)!==128||(z<<28)+(M-144)>>30!==0||((d=v[r++])&192)!==128||((S=v[r++])&192)!==128?(r--,Sl()):(z=(z&7)<<18|(M&63)<<12|(d&63)<<6|S&63,z-=65536,Y.push((z>>10&1023)+55296,(z&1023)+56320))):Sl(),Y.length>=8192&&(b=kgc(b,Y),Y.length=0);r=kgc(b,Y)}return r}; Pgl=function(v){var O=gy(v.Y)>>>0;return ICw(v.Y,O)}; px=function(v,O,Y){this.Un=kZ(v,O,Y)}; GKn=function(v,O){if(O==null||O=="")return new v;O=JSON.parse(O);if(!Array.isArray(O))throw Error("dnarr");Ce(O,32);return new v(O)}; T1=function(v,O){this.U=v>>>0;this.Y=O>>>0}; mnw=function(v){if(!v)return idn||(idn=new T1(0,0));if(!/^\d+$/.test(v))return null;wa(v);return new T1(el,Eu)}; lM=function(v,O){this.U=v>>>0;this.Y=O>>>0}; Dng=function(v){if(!v)return tRc||(tRc=new lM(0,0));if(!/^-?\d+$/.test(v))return null;wa(v);return new lM(el,Eu)}; F9=function(){this.Y=[]}; hR=function(v,O,Y){for(;Y>0||O>127;)v.Y.push(O&127|128),O=(O>>>7|Y<<25)>>>0,Y>>>=7;v.Y.push(O)}; R_=function(v,O){for(;O>127;)v.Y.push(O&127|128),O>>>=7;v.Y.push(O)}; Hdl=function(v,O){if(O>=0)R_(v,O);else{for(var Y=0;Y<9;Y++)v.Y.push(O&127|128),O>>=7;v.Y.push(1)}}; ep=function(v,O){v.Y.push(O>>>0&255);v.Y.push(O>>>8&255);v.Y.push(O>>>16&255);v.Y.push(O>>>24&255)}; Nn3=function(){this.G=[];this.U=0;this.Y=new F9}; Ek=function(v,O){O.length!==0&&(v.G.push(O),v.U+=O.length)}; vWJ=function(v,O){QI(v,O,2);O=v.Y.end();Ek(v,O);O.push(v.U);return O}; O4i=function(v,O){var Y=O.pop();for(Y=v.U+v.Y.length()-Y;Y>127;)O.push(Y&127|128),Y>>>=7,v.U++;O.push(Y);v.U++}; QI=function(v,O,Y){R_(v.Y,O*8+Y)}; Yvn=function(v,O,Y){if(Y!=null){switch(typeof Y){case "string":mnw(Y)}QI(v,O,1);switch(typeof Y){case "number":v=v.Y;Qp(Y);ep(v,el);ep(v,Eu);break;case "bigint":Y=BigInt.asUintN(64,Y);Y=new T1(Number(Y&BigInt(4294967295)),Number(Y>>BigInt(32)));v=v.Y;O=Y.Y;ep(v,Y.U);ep(v,O);break;default:Y=mnw(Y),v=v.Y,O=Y.Y,ep(v,Y.U),ep(v,O)}}}; Lx=function(v,O,Y){QI(v,O,2);R_(v.Y,Y.length);Ek(v,v.Y.end());Ek(v,Y)}; Bg=function(){function v(){throw Error();} Object.setPrototypeOf(v,v.prototype);return v}; X9=function(v,O,Y){this.AN=v;this.Wz=O;v=bL(Zx);this.Y=!!v&&Y===v||!1}; wy=function(v,O){var Y=Y===void 0?Zx:Y;return new X9(v,O,Y)}; dy$=function(v,O,Y,S,d){O=Svm(O,S);O!=null&&(Y=vWJ(v,Y),d(O,v),O4i(v,Y))}; nx=function(v,O,Y,S){var d=S[v];if(d)return d;d={};d.qq=S;d.MK=upQ(S[0]);var r=S[1],b=1;r&&r.constructor===Object&&(d.extensions=r,r=S[++b],typeof r==="function"&&(d.nR=!0,I_!=null||(I_=r),qE!=null||(qE=S[b+1]),r=S[b+=2]));for(var z={};r&&Array.isArray(r)&&r.length&&typeof r[0]==="number"&&r[0]>0;){for(var M=0;M>BigInt(32)));hR(v.Y,Y.U,Y.Y);break;default:Y=Dng(O),hR(v.Y,Y.U,Y.Y)}}}; j2=function(v,O,Y){O=GQ(O);O!=null&&O!=null&&(QI(v,Y,0),Hdl(v.Y,O))}; $y7=function(v,O,Y){O=O==null||typeof O==="boolean"?O:typeof O==="number"?!!O:void 0;O!=null&&(QI(v,Y,0),v.Y.Y.push(O?1:0))}; kO$=function(v,O,Y){O=S0(O);O!=null&&Lx(v,Y,ChJ(O))}; Uyc=function(v,O,Y,S,d){O=Svm(O,S);O!=null&&(Y=vWJ(v,Y),d(O,v),O4i(v,Y))}; uRF=function(){var v=W4;this.Y=cvw;this.isRepeated=0;this.U=Pb;this.defaultValue=void 0;this.G=v.messageId!=null?lV:void 0}; CSd=function(v){return function(){var O=new Nn3;M9c(this.Un,O,nx(NE,Hg,v4,v));Ek(O,O.Y.end());for(var Y=new Uint8Array(O.U),S=O.G,d=S.length,r=0,b=0;b-1)return O.apply(null,g.F(Y));try{return v.Y=v.G.Y.now(),O.apply(null,g.F(Y))}finally{v.B+=v.G.Y.now()-v.Y,v.Y=-1,v.U+=1}}}; aQ7=function(v,O){this.U=v;this.G=O;this.Y=new yv7(v)}; xyi=function(){this.Y={}}; THJ=function(){var v=MV().flags,O=pLd;v=v.Y[O.key];if(O.valueType==="proto"){try{var Y=JSON.parse(v);if(Array.isArray(Y))return Y}catch(S){}return O.defaultValue}return typeof v===typeof O.defaultValue?v:O.defaultValue}; Run=function(){this.G=void 0;this.U=this.C=0;this.Z=-1;this.h9=new oT;jY(this.h9,"mv",lQw).Y=!0;jY(this.h9,"omid",g3);jY(this.h9,"epoh",g3).Y=!0;jY(this.h9,"epph",g3).Y=!0;jY(this.h9,"umt",g3).Y=!0;jY(this.h9,"phel",g3).Y=!0;jY(this.h9,"phell",g3).Y=!0;jY(this.h9,"oseid",FOn).Y=!0;var v=this.h9;v.Y.sloi||(v.Y.sloi=new d3);v.Y.sloi.Y=!0;jY(this.h9,"mm",Vk);jY(this.h9,"ovms",huE).Y=!0;jY(this.h9,"xdi",g3).Y=!0;jY(this.h9,"amp",g3).Y=!0;jY(this.h9,"prf",g3).Y=!0;jY(this.h9,"gtx",g3).Y=!0;jY(this.h9, "mvp_lv",g3).Y=!0;jY(this.h9,"ssmol",g3).Y=!0;jY(this.h9,"fmd",g3).Y=!0;jY(this.h9,"gen204simple",g3);this.Y=new aQ7(YK(),this.h9);this.B=!1;this.flags=new xyi}; MV=function(){return vU(Run)}; euQ=function(v,O,Y,S){if(Math.random()<(S||v.Y))try{if(Y instanceof GO)var d=Y;else d=new GO,K4(Y,function(b,z){var M=d,V=M.B++;b=iS(z,b);M.Y.push(V);M.U[V]=b}); var r=d.Sp(v.U,"pagead2.googlesyndication.com","/pagead/gen_204?id="+O+"&");r&&(YK(),VYl(r))}catch(b){}}; EWm=function(v,O,Y){Y=Y===void 0?{}:Y;this.error=v;this.meta=Y;this.context=O.context;this.msg=O.message||"";this.id=O.id||"jserror"}; QfJ=function(){var v=v===void 0?g.Pm:v;return(v=v.performance)&&v.now&&v.timing?Math.floor(v.now()+v.timing.navigationStart):g.rS()}; LO1=function(){var v=v===void 0?g.Pm:v;return(v=v.performance)&&v.now?v.now():null}; BHw=function(v,O,Y){this.label=v;this.type=O;this.value=Y;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; fV=function(){var v=window;this.events=[];this.U=v||g.Pm;var O=null;v&&(v.google_js_reporting_queue=v.google_js_reporting_queue||[],this.events=v.google_js_reporting_queue,O=v.google_measure_js_timing);this.Y=Ax()||(O!=null?O:Math.random()<1)}; Z4l=function(v){v&&$U&&Ax()&&($U.clearMarks("goog_"+v.label+"_"+v.uniqueId+"_start"),$U.clearMarks("goog_"+v.label+"_"+v.uniqueId+"_end"))}; kU=function(v,O,Y,S,d,r,b){var z="";v&&(z+=v+":");Y&&(z+="//",O&&(z+=O+"@"),z+=Y,S&&(z+=":"+S));d&&(z+=d);r&&(z+="?"+r);b&&(z+="#"+b);return z}; g.Uz=function(v){return v.match(XL7)}; wL1=function(v){return v?decodeURI(v):v}; g.c4=function(v){return wL1(g.Uz(v)[3]||null)}; uT=function(v){return wL1(g.Uz(v)[5]||null)}; g.IQJ=function(v){v=g.Uz(v);return kU(v[1],v[2],v[3],v[4])}; CV=function(v){v=g.Uz(v);return kU(null,null,null,null,v[5],v[6],v[7])}; qvi=function(v){var O=v.indexOf("#");return O<0?v:v.slice(0,O)}; yk=function(v,O){if(v){v=v.split("&");for(var Y=0;Y=0){var r=v[Y].substring(0,S);d=v[Y].substring(S+1)}else r=v[Y];O(r,d?Mn(d):"")}}}; ap=function(v,O){if(!O)return v;var Y=v.indexOf("#");Y<0&&(Y=v.length);var S=v.indexOf("?");if(S<0||S>Y){S=Y;var d=""}else d=v.substring(S+1,Y);v=[v.slice(0,S),d,v.slice(Y)];Y=v[1];v[1]=O?Y?Y+"&"+O:O:Y;return v[0]+(v[1]?"?"+v[1]:"")+v[2]}; xU=function(v,O,Y){if(Array.isArray(O))for(var S=0;S=0&&OY)d=Y;S+=O.length+1;return Mn(v.slice(S,d!==-1?d:0))}; hx=function(v,O){for(var Y=v.search(PSQ),S=0,d,r=[];(d=KOm(v,S,O,Y))>=0;)r.push(v.substring(S,d)),S=Math.min(v.indexOf("&",d)+1||Y,Y);r.push(v.slice(S));return r.join("").replace(GOc,"$1")}; i41=function(v,O,Y){return lT(hx(v,O),O,Y)}; myg=function(){var v=Ez;this.Y=Qk;this.Bp="jserror";this.X3=!0;this.LX=null;this.U=this.yb;this.iM=v===void 0?null:v}; t9w=function(v,O,Y){var S=LV;return g4(MV().Y.Y,function(){try{if(S.iM&&S.iM.Y){var d=S.iM.start(v.toString(),3);var r=O();S.iM.end(d)}else r=O()}catch(z){var b=S.X3;try{Z4l(d),b=S.U(v,new B4(ZA(z)),void 0,Y)}catch(M){S.yb(217,M)}if(!b)throw z;}return r})()}; Xa=function(v,O,Y,S){return g4(MV().Y.Y,function(){var d=g.Bm.apply(0,arguments);return t9w(v,function(){return O.apply(Y,d)},S)})}; ZA=function(v){var O=v.toString();v.name&&O.indexOf(v.name)==-1&&(O+=": "+v.name);v.message&&O.indexOf(v.message)==-1&&(O+=": "+v.message);if(v.stack)a:{v=v.stack;var Y=O;try{v.indexOf(Y)==-1&&(v=Y+"\n"+v);for(var S;v!=S;)S=v,v=v.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");O=v.replace(/\n */g,"\n");break a}catch(d){O=Y;break a}O=void 0}return O}; B4=function(v){EWm.call(this,Error(v),{message:v})}; Dy3=function(){WL&&typeof WL.google_measure_js_timing!="undefined"&&(WL.google_measure_js_timing||Ez.disable())}; H4n=function(v){LV.LX=function(O){g.LC(v,function(Y){Y(O)})}}; NHi=function(v,O){return t9w(v,O)}; w4=function(v,O){return Xa(v,O)}; Ip=function(v,O,Y,S){LV.yb(v,O,Y,S)}; qV=function(){return Date.now()-vKc}; Oe$=function(){var v=MV().G,O=nV>=0?qV()-nV:-1,Y=Jx?qV()-KV:-1,S=P4>=0?qV()-P4:-1;if(v==947190542)return 100;if(v==79463069)return 200;v=[2E3,4E3];var d=[250,500,1E3];Ip(637,Error(),.001);var r=O;Y!=-1&&Y1500&&S<4E3?500:b}; Ge=function(v,O,Y){var S=new f4(0,0,0,0);this.time=v;this.volume=null;this.G=O;this.Y=S;this.U=Y}; iT=function(v,O,Y,S,d,r,b,z){this.B=v;this.L=O;this.G=Y;this.C=S;this.Y=d;this.Z=r;this.U=b;this.X=z}; Sul=function(v){var O=v!==v.top,Y=v.top===dv$(v),S=-1,d=0;if(O&&Y&&v.top.mraid){S=3;var r=v.top.mraid}else S=(r=v.mraid)?O?Y?2:1:0:-1;r&&(r.IS_GMA_SDK||(d=2),Rg1(Yuw,function(b){return typeof r[b]==="function"})||(d=1)); return{ZK:r,compatibility:d,VAs:S}}; dWg=function(){var v=window.document;return v&&typeof v.elementFromPoint==="function"}; rlQ=function(v,O,Y){if(v&&O!==null&&O!=O.top){if(!O.top)return new g.hc(-12245933,-12245933);O=O.top}try{return(Y===void 0?0:Y)?(new g.hc(O.innerWidth,O.innerHeight)).round():EYJ(O||window).round()}catch(S){return new g.hc(-12245933,-12245933)}}; mZ=function(v,O,Y){try{if(v){if(!O.top)return new f4(-12245933,-12245933,-12245933,-12245933);O=O.top}var S=rlQ(v,O,Y),d=S.height,r=S.width;if(r===-12245933)return new f4(r,r,r,r);var b=Xp(O.document);var z=LNi(b.Y);var M=z.x,V=z.y;return new f4(V,M+r,V+d,M)}catch(A){return new f4(-12245933,-12245933,-12245933,-12245933)}}; tx=function(v,O){O=Math.pow(10,O);return Math.floor(v*O)/O}; beF=function(v){return new f4(v.top,v.right,v.bottom,v.left)}; oK$=function(v){var O=v.top||0,Y=v.left||0;return new f4(O,Y+(v.width||0),O+(v.height||0),Y)}; DA=function(v){return v!=null&&v>=0&&v<=1}; jvg=function(){var v=g.yh();return v?H4("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(O){return $I(v,O)})||$I(v,"OMI/")&&!$I(v,"XiaoMi/")?!0:$I(v,"Presto")&&$I(v,"Linux")&&!$I(v,"X11")&&!$I(v,"Android")&&!$I(v,"Mobi"):!1}; oZw=function(){this.G=!Jv(WL.top);this.isMobileDevice=n4()||DNJ();var v=PL();this.domain=v.length>0&&v[v.length-1]!=null&&v[v.length-1].url!=null?g.c4(v[v.length-1].url)||"":"";this.Y=new f4(0,0,0,0);this.B=new g.hc(0,0);this.Z=new g.hc(0,0);this.L=new f4(0,0,0,0);this.frameOffset=new g.lg(0,0);this.C=0;this.X=!1;this.U=!(!WL||!Sul(WL).ZK);this.update(WL)}; jrQ=function(v,O){O&&O.screen&&(v.B=new g.hc(O.screen.width,O.screen.height))}; WDi=function(v,O){a:{var Y=v.Y?new g.hc($W(v.Y),v.Y.getHeight()):new g.hc(0,0);O=O===void 0?WL:O;O!==null&&O!=O.top&&(O=O.top);var S=0,d=0;try{var r=O.document,b=r.body,z=r.documentElement;if(r.compatMode=="CSS1Compat"&&z.scrollHeight)S=z.scrollHeight!=Y.height?z.scrollHeight:z.offsetHeight,d=z.scrollWidth!=Y.width?z.scrollWidth:z.offsetWidth;else{var M=z.scrollHeight,V=z.scrollWidth,A=z.offsetHeight,f=z.offsetWidth;z.clientHeight!=A&&(M=b.scrollHeight,V=b.scrollWidth,A=b.offsetHeight,f=b.offsetWidth); M>Y.height?M>A?(S=M,d=V):(S=A,d=f):M0||v.X)return!0;v=YK().U.isVisible();var O=If(vV)===0;return v||O}; NV=function(){return vU(oZw)}; Y1=function(v){this.G=v;this.U=0;this.Y=null}; S4=function(v,O,Y){this.G=v;this.AK=Y===void 0?"na":Y;this.Z=[];this.isInitialized=!1;this.B=new Ge(-1,!0,this);this.Y=this;this.X=O;this.tK=this.j=!1;this.N3="uk";this.JK=!1;this.C=!0}; dv=function(v,O){g.Vv(v.Z,O)||(v.Z.push(O),O.tP(v.Y),O.O9(v.B),O.Yi()&&(v.j=!0))}; z3n=function(v){v=v.Y;v.Da();v.oA();var O=NV();O.L=mZ(!1,v.G,O.isMobileDevice);WDi(NV(),v.G);v.B.Y=v.bI()}; srQ=function(v){v.j=v.Z.length?H4(v.Z,function(O){return O.Yi()}):!1}; gZF=function(v){var O=g.c0(v.Z);g.LC(O,function(Y){Y.O9(v.B)})}; rv=function(v){var O=g.c0(v.Z);g.LC(O,function(Y){Y.tP(v.Y)}); v.Y!=v||gZF(v)}; bH=function(v,O,Y,S){this.element=v;this.Y=new f4(0,0,0,0);this.G=null;this.C=new f4(0,0,0,0);this.U=O;this.h9=Y;this.JK=S;this.HW=!1;this.timestamp=-1;this.j=new iT(O.B,this.element,this.Y,new f4(0,0,0,0),0,0,qV(),0);this.Z=void 0}; M0J=function(v,O){return v.Z?new f4(Math.max(O.top+v.Z.top,O.top),Math.min(O.left+v.Z.right,O.right),Math.min(O.top+v.Z.bottom,O.bottom),Math.max(O.left+v.Z.left,O.left)):O.clone()}; od=function(v){this.Z=!1;this.Y=v;this.B=function(){}}; V01=function(v,O,Y){this.G=Y===void 0?0:Y;this.U=v;this.Y=O==null?"":O}; AQ3=function(v){switch(Math.trunc(v.G)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; fsE=function(v,O){return v.GO.G?!1:v.UO.U?!1:typeof v.Ytypeof O.Y?!1:v.Y0?S[Y]-S[Y-1]:S[Y]})}; cV=function(){this.U=new V2;this.AK=this.g8=0;this.f1=new MR;this.Ug=this.L=-1;this.yx=1E3;this.n1=new V2([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.N3=this.HW=-1}; uH=function(v,O){return pbg(v.U,O===void 0?!0:O)}; C9=function(v,O,Y,S){var d=d===void 0?!1:d;Y=Xa(S,Y);wH(v,O,Y,{capture:d})}; ad=function(v,O){O=y2(O);return O===0?0:y2(v)/O}; y2=function(v){return Math.max(v.bottom-v.top,0)*Math.max(v.right-v.left,0)}; FDc=function(v,O){if(!v||!O)return!1;for(var Y=0;v!==null&&Y++<100;){if(v===O)return!0;try{if(v=v.parentElement||v){var S=ZC(v),d=S&&GK(S),r=d&&d.frameElement;r&&(v=r)}}catch(b){break}}return!1}; h3d=function(v,O,Y){if(!v||!O)return!1;O=Uv(v.clone(),-O.left,-O.top);v=(O.left+O.right)/2;O=(O.top+O.bottom)/2;Jv(window.top)&&window.top&&window.top.document&&(window=window.top);if(!dWg())return!1;v=window.document.elementFromPoint(v,O);if(!v)return!1;O=(O=(O=ZC(Y))&&O.defaultView&&O.defaultView.frameElement)&&FDc(O,v);var S=v===Y;v=!S&&v&&dH(v,function(d){return d===Y}); return!(O||S||v)}; R3c=function(v,O,Y,S){return NV().G?!1:$W(v)<=0||v.getHeight()<=0?!0:Y&&S?NHi(208,function(){return h3d(v,O,Y)}):!1}; x1=function(v,O,Y){g.X.call(this);this.position=e3F.clone();this.wQ=this.L7();this.EF=-2;this.timeCreated=Date.now();this.tJ=-1;this.Dn=O;this.h7=null;this.kV=!1;this.M_=null;this.opacity=-1;this.requestSource=Y;this.nNg=!1;this.sF=function(){}; this.La=function(){}; this.h2=new w0c;this.h2.kO=v;this.h2.Y=v;this.ek=!1;this.Vz={UW:null,tG:null};this.V7=!0;this.xx=null;this.JP=this.yG=!1;MV().C++;this.CS=this.rG();this.jQ=-1;this.x4=null;this.hasCompleted=this.EH=!1;this.h9=new oT;wmF(this.h9);EZd(this);this.requestSource==1?W5(this.h9,"od",1):W5(this.h9,"od",0)}; EZd=function(v){v=v.h2.kO;var O;if(O=v&&v.getAttribute)O=/-[a-z]/.test("googleAvInapp")?!1:Qrw&&v.dataset?"googleAvInapp"in v.dataset:v.hasAttribute?v.hasAttribute("data-"+MU$()):!!v.getAttribute("data-"+MU$());O&&(NV().U=!0)}; TL=function(v,O){O!=v.JP&&(v.JP=O,v=NV(),O?v.C++:v.C>0&&v.C--)}; LDm=function(v,O){if(v.x4){if(O.getName()===v.x4.getName())return;v.x4.dispose();v.x4=null}O=O.create(v.h2.Y,v.h9,v.Yi());if(O=O!=null&&O.observe()?O:null)v.x4=O}; BDd=function(v,O,Y){if(!v.h7||v.Dn==-1||O.U===-1||v.h7.U===-1)return 0;v=O.U-v.h7.U;return v>Y?0:v}; Zr7=function(v,O,Y){if(v.x4){v.x4.VN();var S=v.x4.j,d=S.B,r=d.Y;if(S.C!=null){var b=S.G;v.M_=new g.lg(b.left-r.left,b.top-r.top)}r=v.KY()?Math.max(S.Y,S.Z):S.Y;b={};d.volume!==null&&(b.volume=d.volume);d=v.x9(S);v.h7=S;v.q3(r,O,Y,!1,b,d,S.X)}}; Xbw=function(v){if(v.kV&&v.xx){var O=zg(v.h9,"od")==1,Y=NV().Y,S=v.xx,d=v.x4?v.x4.getName():"ns",r=v.M_,b=new g.hc($W(Y),Y.getHeight());Y=v.KY();v={q_g:d,M_:r,kn8:b,KY:Y,Dk:v.CS.Dk,hGg:O};if(O=S.U){O.VN();d=O.j;r=d.B.Y;var z=b=null;d.C!=null&&r&&(b=d.G,b=new g.lg(b.left-r.left,b.top-r.top),z=new g.hc(r.right-r.left,r.bottom-r.top));d=Y?Math.max(d.Y,d.Z):d.Y;Y={q_g:O.getName(),M_:b,kn8:z,KY:Y,hGg:!1,Dk:d}}else Y=null;Y&&yQJ(S,v,Y)}}; wb7=function(v,O,Y){O&&(v.sF=O);Y&&(v.La=Y)}; g.lH=function(){}; g.F5=function(v){return{value:v,done:!1}}; IsF=function(){this.B=this.Y=this.G=this.U=this.Z=0}; qc1=function(v){var O={};var Y=g.rS()-v.Z;O=(O.ptlt=Y,O);(Y=v.U)&&(O.pnk=Y);(Y=v.G)&&(O.pnc=Y);(Y=v.B)&&(O.pnmm=Y);(v=v.Y)&&(O.pns=v);return O}; nZw=function(){ZK.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; hn=function(v){return DA(v.volume)&&v.volume>0}; Rd=function(v,O,Y,S){Y=Y===void 0?!0:Y;S=S===void 0?function(){return!0}:S; return function(d){var r=d[v];if(Array.isArray(r)&&S(d))return JQJ(r,O,Y)}}; e4=function(v,O){return function(Y){return O(Y)?Y[v]:void 0}}; KDJ=function(v){return function(O){for(var Y=0;Y0?r[d-1]+1:0,S+1).reduce(function(b,z){return b+z},0)})}; P3J=function(){this.U=this.Y=""}; Gum=function(){}; Q2=function(v,O){var Y={};if(v!==void 0)if(O!=null)for(var S in O){var d=O[S];S in Object.prototype||d!=null&&(Y[S]=typeof d==="function"?d(v):v[d])}else g.OI(Y,v);return zL(WV(new j4,Y))}; ir1=function(){var v={};this.U=(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.Y={};for(var O in this.U)this.U[O][1]>0&&(this.Y[O]=0);this.G=0}; L9=function(v,O){var Y=v.U[O],S=Y[1];v.G+=Y[0];S>0&&v.Y[O]==0&&(v.Y[O]=1)}; m3E=function(v){var O=g.KC(v.U),Y=0,S;for(S in v.Y)g.Vv(O,S)&&v.Y[S]==1&&(Y+=v.U[S][1],v.Y[S]=2);return Y}; t07=function(v){var O=0,Y;for(Y in v.Y){var S=v.Y[Y];if(S==1||S==2)O+=v.U[Y][1]}return O}; BV=function(){this.Y=this.U=0}; ZI=function(){cV.call(this);this.G=new MR;this.XO=this.j=this.JK=0;this.X=-1;this.On=new MR;this.Z=new MR;this.Y=new V2;this.C=this.B=-1;this.tK=new MR;this.yx=2E3;this.FO=new BV;this.xg=new BV;this.Eg=new BV}; X5=function(v,O,Y){var S=v.XO;Jx||Y||v.X==-1||(S+=O-v.X);return S}; D3J=function(){this.G=!1}; wv=function(v,O){this.G=!1;this.B=v;this.j=O;this.Z=0}; Id=function(v,O){wv.call(this,v,O);this.L=[]}; Hrd=function(){}; qR=function(){}; Jn=function(v,O,Y,S){bH.call(this,v,O,Y,S)}; K9=function(v,O,Y){bH.call(this,null,v,O,Y);this.X=v.isActive();this.L=0}; PV=function(v){return[v.top,v.left,v.bottom,v.right]}; GL=function(v,O,Y,S,d,r){r=r===void 0?new qR:r;x1.call(this,O,Y,S);this.Q4=d;this.WX=0;this.vE={};this.Tm=new ir1;this.Ka={};this.pW="";this.Eg=null;this.pj=!1;this.Y=[];this.Jq=r.U();this.C=r.G();this.B=null;this.G=-1;this.AK=this.j=void 0;this.Ug=this.tK=0;this.N3=-1;this.yx=this.xg=!1;this.JK=this.X=this.U=this.vO=this.Mj=0;new V2;this.FO=this.XO=0;this.f1=-1;this.Kq=0;this.L=g.gH;this.HW=[this.L7()];this.Te=2;this.lK={};this.lK.pause="p";this.lK.resume="r";this.lK.skip="s";this.lK.mute="m";this.lK.unmute= "um";this.lK.exitfullscreen="ef";this.Z=null;this.n1=this.On=!1;this.Cj=Math.floor(Date.now()/1E3-1704067200);this.g8=0}; iH=function(v){v.hasCompleted=!0;v.Kq!=0&&(v.Kq=3)}; m8=function(v){return v===void 0?v:Number(v)?tx(v,3):0}; tn=function(v,O){return v.HW[O!=null&&OMath.max(1E4,v.G/3)?0:O);var Y=v.L(v)||{};Y=Y.currentTime!==void 0?Y.currentTime:v.tK;var S=Y-v.tK,d=0;S>=0?(v.Ug+=O,v.FO+=Math.max(O-S,0),d=Math.min(S,v.Ug)):v.XO+=Math.abs(S);S!=0&&(v.Ug=0);v.f1==-1&&S>0&&(v.f1=P4>=0?qV()-P4:-1);v.tK=Y;return d}; Oxc=function(v,O){H4(v.C,function(Y){return Y.B==O.B})||v.C.push(O)}; Yk7=function(v){var O=$1(v.XM().Y,1);return DI(v,O)}; DI=function(v,O,Y){return O>=15E3?!0:v.xg?(Y===void 0?0:Y)?!0:v.G>0?O>=v.G/2:v.N3>0?O>=v.N3:!1:!1}; Skn=function(v){var O=tx(v.CS.Dk,2),Y=v.Tm.G,S=v.CS,d=tn(v),r=m8(d.B),b=m8(d.C),z=m8(S.volume),M=tx(d.L,2),V=tx(d.Ug,2),A=tx(S.Dk,2),f=tx(d.HW,2),k=tx(d.N3,2);S=tx(S.GY,2);var U=v.EP().clone().round();v=v.x4&&v.x4.G?(v.x4?v.x4.G:null).clone().round():null;d=uH(d,!1);return{vWu:O,Fj:Y,KJ:r,rQ:b,Tv:z,E7:M,oZ:V,Dk:A,Pt:f,qn:k,GY:S,position:U,eW:v,IZ:d}}; rR3=function(v,O){dEQ(v.Y,O,function(){return{vWu:0,Fj:void 0,KJ:-1,rQ:-1,Tv:-1,E7:-1,oZ:-1,Dk:-1,Pt:-1,qn:-1,GY:-1,position:void 0,eW:void 0,IZ:[]}}); v.Y[O]=Skn(v)}; dEQ=function(v,O,Y){for(var S=v.length;S0?1:0;f.atos= An(V.Y);f.ssb=An(V.n1,!1);f.amtos=pbg(V.Y,!1);f.uac=v.Mj;f.vpt=V.G.Y;A=="nio"&&(f.nio=1,f.avms="nio");f.gmm="4";f.gdr=DI(v,V.G.Y,!0)?1:0;f.efpf=v.Te;if(A=="gsv"||A=="nis")A=v.x4,A.L>0&&(f.nnut=A.L);f.tcm=ND7(v);f.nmt=v.XO;f.bt=v.FO;f.pst=v.f1;f.vpaid=v.j;f.dur=v.G;f.vmtime=v.tK;f.is=v.Tm.G;v.Y.length>=1&&(f.i0=v.Y[0].Fj,f.a0=[v.Y[0].Tv],f.c0=[v.Y[0].Dk],f.ss0=[v.Y[0].GY],A=v.Y[0].position,r=v.Y[0].eW,f.p0=A?PV(A):void 0,A&&r&&!kW(r,A)&&(f.cp0=PV(r)));v.Y.length>=2&&(f.i1=v.Y[1].Fj,f.a1=vd(v.Y[1].KJ, v.Y[1].Tv,v.Y[1].rQ),f.c1=vd(v.Y[1].E7,v.Y[1].Dk,v.Y[1].oZ),f.ss1=vd(v.Y[1].Pt,v.Y[1].GY,v.Y[1].qn),A=v.Y[1].position,r=v.Y[1].eW,f.p1=A?PV(A):void 0,A&&r&&!kW(r,A)&&(f.cp1=PV(r)),f.mtos1=v.Y[1].IZ);v.Y.length>=3&&(f.i2=v.Y[2].Fj,f.a2=vd(v.Y[2].KJ,v.Y[2].Tv,v.Y[2].rQ),f.c2=vd(v.Y[2].E7,v.Y[2].Dk,v.Y[2].oZ),f.ss2=vd(v.Y[2].Pt,v.Y[2].GY,v.Y[2].qn),A=v.Y[2].position,r=v.Y[2].eW,f.p2=A?PV(A):void 0,A&&r&&!kW(r,A)&&(f.cp2=PV(r)),f.mtos2=v.Y[2].IZ);v.Y.length>=4&&(f.i3=v.Y[3].Fj,f.a3=vd(v.Y[3].KJ,v.Y[3].Tv, v.Y[3].rQ),f.c3=vd(v.Y[3].E7,v.Y[3].Dk,v.Y[3].oZ),f.ss3=vd(v.Y[3].Pt,v.Y[3].GY,v.Y[3].qn),A=v.Y[3].position,r=v.Y[3].eW,f.p3=A?PV(A):void 0,A&&r&&!kW(r,A)&&(f.cp3=PV(r)),f.mtos3=v.Y[3].IZ);f.cs=t07(v.Tm);O&&(f.ic=m3E(v.Tm),f.dvpt=V.G.U,f.dvs=UM(V.U,.5),f.dfvs=UM(V.U,1),f.davs=UM(V.Y,.5),f.dafvs=UM(V.Y,1),Y&&(V.G.U=0,TDJ(V.U),TDJ(V.Y)),v.B1()&&(f.dtos=V.JK,f.dav=V.j,f.dtoss=v.WX+1,Y&&(V.JK=0,V.j=0,v.WX++)),f.dat=V.Z.U,f.dft=V.tK.U,Y&&(V.Z.U=0,V.tK.U=0));f.ps=[z.Z.width,z.Z.height];f.bs=[$W(z.Y),z.Y.getHeight()]; f.scs=[z.B.width,z.B.height];f.dom=z.domain;v.vO&&(f.vds=v.vO);if(v.C.length>0||v.Jq)O=g.c0(v.C),v.Jq&&O.push(v.Jq),f.pings=g.DQ(O,function(k){return k.toString()}); O=g.DQ(g.EM(v.C,function(k){return k.C()}),function(k){return k.getId()}); aJE(O);f.ces=O;v.U&&(f.vmer=v.U);v.X&&(f.vmmk=v.X);v.JK&&(f.vmiec=v.JK);f.avms=v.x4?v.x4.getName():"ns";v.x4&&g.OI(f,v.x4.aY());S?(f.c=tx(v.CS.Dk,2),f.ss=tx(v.CS.GY,2)):f.tth=qV()-Wm7;f.mc=tx(V.Ug,2);f.nc=tx(V.L,2);f.mv=m8(V.C);f.nv=m8(V.B);f.lte=tx(v.EF,2);S=tn(v,d);uH(V);f.qmtos=uH(S);f.qnc=tx(S.L,2);f.qmv=m8(S.C);f.qnv=m8(S.B);f.qas=S.B>0?1:0;f.qi=v.pW;f.avms||(f.avms="geo");f.psm=V.FO.Y;f.psv=V.FO.getValue();f.psfv=V.xg.getValue();f.psa=V.Eg.getValue();M=Zn$(M.h9);M.length&&(f.veid=M);v.Z&&g.OI(f, qc1(v.Z));f.avas=v.HL();f.vs=v.UB();f.co=zBn(v);f.tm=V.g8;f.tu=V.AK;return f}; bx7=function(v,O){if(g.Vv(s_Q,O))return!0;var Y=v.vE[O];return Y!==void 0?(v.vE[O]=!0,!Y):!1}; zBn=function(v){var O=v.g8.toString(10).padStart(2,"0");O=""+v.Cj+O;v.g8<99&&v.g8++;return O}; Mpi=function(){this.Y={};var v=GK();Of(this,v,document);var O=gvE();try{if("1"==O){for(var Y=v.parent;Y!=v.top;Y=Y.parent)Of(this,Y,Y.document);Of(this,v.top,v.top.document)}}catch(S){}}; gvE=function(){var v=document.documentElement;try{if(!Jv(GK().top))return"2";var O=[],Y=GK(v.ownerDocument);for(v=Y;v!=Y.top;v=v.parent)if(v.frameElement)O.push(v.frameElement);else break;return O&&O.length!=0?"1":"0"}catch(S){return"2"}}; Of=function(v,O,Y){C9(Y,"mousedown",function(){return Vpi(v)},301); C9(O,"scroll",function(){return ARg(v)},302); C9(Y,"touchmove",function(){return fxw(v)},303); C9(Y,"mousemove",function(){return $En(v)},304); C9(Y,"keydown",function(){return k13(v)},305)}; Vpi=function(v){g.Xt(v.Y,function(O){O.G>1E5||++O.G})}; ARg=function(v){g.Xt(v.Y,function(O){O.Y>1E5||++O.Y})}; fxw=function(v){g.Xt(v.Y,function(O){O.Y>1E5||++O.Y})}; k13=function(v){g.Xt(v.Y,function(O){O.U>1E5||++O.U})}; $En=function(v){g.Xt(v.Y,function(O){O.B>1E5||++O.B})}; UEE=function(){this.Y=[];this.U=[]}; Y3=function(v,O){return g.gS(v.Y,function(Y){return Y.pW==O})}; cRc=function(v,O){return O?g.gS(v.Y,function(Y){return Y.h2.kO==O}):null}; u91=function(v,O){return g.gS(v.U,function(Y){return Y.Zn()==2&&Y.pW==O})}; dc=function(){var v=Sg;return v.Y.length==0?v.U:v.U.length==0?v.Y:g.UJ(v.U,v.Y)}; CMl=function(v,O){v=O.Zn()==1?v.Y:v.U;var Y=sJ(v,function(S){return S==O}); return Y!=-1?(v.splice(Y,1),O.x4&&O.x4.unobserve(),O.dispose(),!0):!1}; yRJ=function(v){var O=Sg;if(CMl(O,v)){switch(v.Zn()){case 0:var Y=function(){return null}; case 2:Y=function(){return u91(O,v.pW)}; break;case 1:Y=function(){return Y3(O,v.pW)}}for(var S=Y();S;S=Y())CMl(O,S)}}; axd=function(v){var O=Sg;v=g.EM(v,function(Y){return!cRc(O,Y.h2.kO)}); O.Y.push.apply(O.Y,g.F(v))}; xEE=function(v){var O=[];g.LC(v,function(Y){H4(Sg.Y,function(S){return S.h2.kO===Y.h2.kO&&S.pW===Y.pW})||(Sg.Y.push(Y),O.push(Y))})}; rc=function(){this.Y=this.U=null}; pgi=function(v,O){function Y(S,d){O(S,d)} if(v.U==null)return!1;v.Y=g.gS(v.U,function(S){return S!=null&&S.wH()}); v.Y&&(v.Y.init(Y)?z3n(v.Y.Y):O(v.Y.Y.KC(),v.Y));return v.Y!=null}; bN=function(v){v=TyE(v);od.call(this,v.length?v[v.length-1]:new S4(WL,0));this.G=v;this.U=null}; TyE=function(v){if(!v.length)return[];v=(0,g.EM)(v,function(Y){return Y!=null&&Y.pp()}); for(var O=1;OY.time?O:Y},v[0])}; zA=function(v){v=v===void 0?WL:v;od.call(this,new S4(v,2))}; sf=function(){var v=RBc();S4.call(this,WL.top,v,"geo")}; RBc=function(){MV();var v=NV();return v.G||v.U?0:2}; eBn=function(){}; M2=function(){this.done=!1;this.Y={BJ:0,Pi:0,YPx:0,Ut:0,d$:-1,U2:0,O2:0,Gi:0,rMu:0};this.Z=null;this.C=!1;this.G=null;this.L=0;this.U=new Y1(this)}; AF=function(){var v=Vj;v.C||(v.C=!0,Evi(v,function(){return v.B.apply(v,g.F(g.Bm.apply(0,arguments)))}),v.B())}; Q_J=function(){vU(eBn);var v=vU(rc);v.Y!=null&&v.Y.Y?z3n(v.Y.Y):NV().update(WL)}; f5=function(v,O,Y){if(!v.done&&(v.U.cancel(),O.length!=0)){v.G=null;try{Q_J();var S=qV();MV().Z=S;if(vU(rc).Y!=null)for(var d=0;d=0?qV()-nV:-1,z=qV();d.Y.d$==-1&&(b=z);var M=NV(),V=MV(),A=sI(V.h9),f=dc();try{if(f.length>0){var k=M.Y;k&&(A.bs=[$W(k),k.getHeight()]);var U=M.Z;U&&(A.ps=[U.width,U.height]);WL.screen&&(A.scs=[WL.screen.width,WL.screen.height])}else A.url=encodeURIComponent(WL.location.href.substring(0,512)),r.referrer&&(A.referrer=encodeURIComponent(r.referrer.substring(0,512))); A.tt=b;A.pt=nV;A.bin=V.U;WL.google_osd_load_pub_page_exp!==void 0&&(A.olpp=WL.google_osd_load_pub_page_exp);A.deb=[1,d.Y.BJ,d.Y.Pi,d.Y.Ut,d.Y.d$,0,d.U.U,d.Y.U2,d.Y.O2,d.Y.Gi,d.Y.rMu,-1].join(";");A.tvt=By3(d,z);M.U&&(A.inapp=1);if(WL!==null&&WL!=WL.top){f.length>0&&(A.iframe_loc=encodeURIComponent(WL.location.href.substring(0,512)));var c=M.L;A.is=[$W(c),c.getHeight()]}}catch(a){A.error=1}Vj.G=A}k=g.NN(Vj.G);U=MV().Y;zg(U.G,"prf")==1?(c=new sz,d=U.Y,r=0,d.Y>-1&&(r=d.G.Y.now()-d.Y),c=QU(c,1,qW(d.B+ r),0),d=U.Y,c=QU(c,5,PU(d.Y>-1?d.U+1:d.U),0),c=QU(c,2,NW(U.U.Y.G()),"0"),c=QU(c,3,NW(U.U.Y.U()),"0"),U=QU(c,4,NW(U.U.Y.Y()),"0"),c={},U=(c.pf=g.bV(U.U()),c)):U={};g.OI(k,U);g.OI(O,S,Y,k,v())}])}; wgg=function(){var v=Xgw||WL;if(!v)return"";var O=[];if(!v.location||!v.location.href)return"";O.push("url="+encodeURIComponent(v.location.href.substring(0,512)));v.document&&v.document.referrer&&O.push("referrer="+encodeURIComponent(v.document.referrer.substring(0,512)));return O.join("&")}; $3=function(){var v="youtube.player.web_20250518_21_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250518_21_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250518_21_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250518_21_RC00".match(/_(\d{8})_\d+_RC\d+$/),O;if(((O=v)==null?void 0:O.length)==2)return v[1];v="youtube.player.web_20250518_21_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var Y;return((Y=v)==null?void 0:Y.length)==3?"20"+v[1]+v[2]:null}; IxQ=function(){return"av.default_js".includes("ima_html5_sdk")?{M$:"ima",pD:null}:"av.default_js".includes("ima_native_sdk")?{M$:"nima",pD:null}:"av.default_js".includes("admob-native-video-javascript")?{M$:"an",pD:null}:"youtube.player.web_20250518_21_RC00".includes("cast_js_sdk")?{M$:"cast",pD:$3()}:"youtube.player.web_20250518_21_RC00".includes("youtube.player.web")?{M$:"yw",pD:$3()}:"youtube.player.web_20250518_21_RC00".includes("outstream_web_client")?{M$:"out",pD:$3()}:"youtube.player.web_20250518_21_RC00".includes("drx_rewarded_web")? {M$:"r",pD:$3()}:"youtube.player.web_20250518_21_RC00".includes("gam_native_web_video")?{M$:"n",pD:$3()}:"youtube.player.web_20250518_21_RC00".includes("admob_interstitial_video")?{M$:"int",pD:$3()}:{M$:"j",pD:null}}; cd=function(v,O){var Y={sv:"967"};k3!==null&&(Y.v=k3);Y.cb=qkF;Y.nas=Sg.Y.length;Y.msg=v;O!==void 0&&(v=nvQ(O))&&(Y.e=Uf[v]);return Y}; uN=function(v){return Mv(v,"custom_metric_viewable")}; nvQ=function(v){var O=uN(v)?"custom_metric_viewable":v.toLowerCase();return mN(HV,function(Y){return Y==O})}; JRJ=function(){this.Y=void 0;this.U=!1;this.G=0;this.B=-1;this.Z="tos"}; G17=function(v){try{var O=v.split(",");return O.length>g.KC(KmJ).length?null:Ny(O,function(Y,S){S=S.toLowerCase().split("=");if(S.length!=2||PMd[S[0]]===void 0||!PMd[S[0]](S[1]))throw Error("Entry ("+S[0]+", "+S[1]+") is invalid.");Y[S[0]]=S[1];return Y},{})}catch(Y){return null}}; ixF=function(v,O){if(v.Y==void 0)return 0;switch(v.Z){case "mtos":return v.U?k1(O.Y,v.Y):k1(O.U,v.Y);case "tos":return v.U?$1(O.Y,v.Y):$1(O.U,v.Y)}return 0}; C5=function(v,O,Y,S){wv.call(this,O,S);this.L=v;this.X=Y}; yj=function(){}; aN=function(v){wv.call(this,"fully_viewable_audible_half_duration_impression",v)}; x3=function(v){this.Y=v}; p5=function(v,O){wv.call(this,v,O)}; TA=function(v){Id.call(this,"measurable_impression",v)}; lN=function(){x3.apply(this,arguments)}; Fg=function(v,O,Y){K9.call(this,v,O,Y)}; hF=function(v){v=v===void 0?WL:v;od.call(this,new S4(v,2))}; RN=function(v,O,Y){K9.call(this,v,O,Y)}; eg=function(v){v=v===void 0?WL:v;od.call(this,new S4(v,2))}; Ef=function(){S4.call(this,WL,2,"mraid");this.FO=0;this.Ug=this.HW=!1;this.L=null;this.U=Sul(this.G);this.B.Y=new f4(0,0,0,0);this.g8=!1}; Qj=function(v,O,Y){v.b0("addEventListener",O,Y)}; HxF=function(v){MV().B=!!v.b0("isViewable");Qj(v,"viewableChange",mEE);v.b0("getState")==="loading"?Qj(v,"ready",tpc):DEl(v)}; DEl=function(v){typeof v.U.ZK.AFMA_LIDAR==="string"?(v.HW=!0,NyJ(v)):(v.U.compatibility=3,v.L="nc",v.jZ("w"))}; NyJ=function(v){v.Ug=!1;var O=zg(MV().h9,"rmmt")==1,Y=!!v.b0("isViewable");(O?!Y:1)&&YK().setTimeout(w4(524,function(){v.Ug||(vUJ(v),Ip(540,Error()),v.L="mt",v.jZ("w"))}),500); OVl(v);Qj(v,v.U.ZK.AFMA_LIDAR,Yz$)}; OVl=function(v){var O=zg(MV().h9,"sneio")==1,Y=v.U.ZK.AFMA_LIDAR_EXP_1!==void 0,S=v.U.ZK.AFMA_LIDAR_EXP_2!==void 0;(O=O&&S)&&(v.U.ZK.AFMA_LIDAR_EXP_2=!0);Y&&(v.U.ZK.AFMA_LIDAR_EXP_1=!O)}; vUJ=function(v){v.b0("removeEventListener",v.U.ZK.AFMA_LIDAR,Yz$);v.HW=!1}; Szg=function(v,O){if(v.b0("getState")==="loading")return new g.hc(-1,-1);O=v.b0(O);if(!O)return new g.hc(-1,-1);v=parseInt(O.width,10);O=parseInt(O.height,10);return isNaN(v)||isNaN(O)?new g.hc(-1,-1):new g.hc(v,O)}; tpc=function(){try{var v=vU(Ef);v.b0("removeEventListener","ready",tpc);DEl(v)}catch(O){Ip(541,O)}}; Yz$=function(v,O){try{var Y=vU(Ef);Y.Ug=!0;var S=v?new f4(v.y,v.x+v.width,v.y+v.height,v.x):new f4(0,0,0,0);var d=qV(),r=OM();var b=new Ge(d,r,Y);b.Y=S;b.volume=O;Y.O9(b)}catch(z){Ip(542,z)}}; mEE=function(v){var O=MV(),Y=vU(Ef);v&&!O.B&&(O.B=!0,Y.g8=!0,Y.L&&Y.jZ("w",!0))}; L5=function(){this.isInitialized=!1;this.Y=this.U=null;var v={};this.L=(v.start=this.kR,v.firstquartile=this.hI,v.midpoint=this.VG,v.thirdquartile=this.LI,v.complete=this.Nu,v.error=this.CI,v.pause=this.Hr,v.resume=this.E4,v.skip=this.vx,v.viewable_impression=this.gN,v.mute=this.g9,v.unmute=this.g9,v.fullscreen=this.g_,v.exitfullscreen=this.Zo,v.fully_viewable_audible_half_duration_impression=this.gN,v.measurable_impression=this.gN,v.abandon=this.Hr,v.engagedview=this.gN,v.impression=this.gN,v.creativeview= this.gN,v.progress=this.g9,v.custom_metric_viewable=this.gN,v.bufferstart=this.Hr,v.bufferfinish=this.E4,v.audio_measurable=this.gN,v.audio_audible=this.gN,v);v={};this.X=(v.overlay_resize=this.Fm,v.abandon=this.OF,v.close=this.OF,v.collapse=this.OF,v.overlay_unmeasurable_impression=function(O){return NR(O,"overlay_unmeasurable_impression",OM())},v.overlay_viewable_immediate_impression=function(O){return NR(O,"overlay_viewable_immediate_impression",OM())},v.overlay_unviewable_impression=function(O){return NR(O, "overlay_unviewable_impression",OM())},v.overlay_viewable_end_of_session_impression=function(O){return NR(O,"overlay_viewable_end_of_session_impression",OM())},v); MV().U=3;dV7(this);this.G=null}; Bd=function(v,O,Y,S){v=v.O1(null,S,!0,O);v.B=Y;axd([v]);return v}; rxQ=function(v,O,Y){hg7(O);var S=v.Y;g.LC(O,function(d){var r=g.DQ(d.criteria,function(b){var z=G17(b);if(z==null)b=null;else if(b=new JRJ,z.visible!=null&&(b.Y=z.visible/100),z.audible!=null&&(b.U=z.audible==1),z.time!=null){var M=z.timetype=="mtos"?"mtos":"tos",V=IJ1(z.time,"%")?"%":"ms";z=parseInt(z.time,10);V=="%"&&(z/=100);b.setTime(z,V,M)}return b}); H4(r,function(b){return b==null})||Oxc(Y,new C5(d.id,d.event,r,S))})}; bV$=function(){var v=[],O=MV();v.push(vU(sf));zg(O.h9,"mvp_lv")&&v.push(vU(Ef));O=[new hF,new eg];O.push(new bN(v));O.push(new zA(WL));return O}; oUd=function(v){if(!v.isInitialized){v.isInitialized=!0;try{var O=qV(),Y=MV(),S=NV();nV=O;Y.G=79463069;v.U!=="o"&&(Xgw=dv$(WL));if(As1()){Vj.Y.Pi=0;Vj.Y.d$=qV()-O;var d=bV$(),r=vU(rc);r.U=d;pgi(r,function(){Z$()})?Vj.done||(Lmg(),dv(r.Y.Y,v),AF()):S.G?Z$():AF()}else Xg=!0}catch(b){throw Sg.reset(),b; }}}; IN=function(v){Vj.U.cancel();wc=v;Vj.done=!0}; q2=function(v){if(v.U)return v.U;var O=vU(rc).Y;if(O)switch(O.getName()){case "nis":v.U="n";break;case "gsv":v.U="m"}v.U||(v.U="h");return v.U}; n5=function(v,O,Y){if(v.Y==null)return O.vO|=4,!1;v=jp3(v.Y,Y,O);O.vO|=v;return v==0}; Z$=function(){var v=[new zA(WL)],O=vU(rc);O.U=v;pgi(O,function(){IN("i")})?Vj.done||(Lmg(),AF()):IN("i")}; WZg=function(v,O){if(!v.pj){var Y=NR(v,"start",OM());Y=v.Q4.Y(Y).Y;var S={id:"lidarv"};S.r=O;S.sv="967";k3!==null&&(S.v=k3);yk(Y,function(d,r){return S[d]=d=="mtos"||d=="tos"?r:encodeURIComponent(r)}); O=wgg();yk(O,function(d,r){return S[d]=encodeURIComponent(r)}); O="//pagead2.googlesyndication.com/pagead/gen_204?"+zL(WV(new j4,S));uLQ(O);v.pj=!0}}; JF=function(v,O,Y){f5(Vj,[v],!OM());rR3(v,Y);Y!=4&&dEQ(v.HW,Y,v.L7);return NR(v,O,OM())}; dV7=function(v){Zxd(function(){var O=z1n();v.U!=null&&(O.sdk=v.U);var Y=vU(rc);Y.Y!=null&&(O.avms=Y.Y.getName());return O})}; sp1=function(v,O,Y,S){var d=cRc(Sg,Y);d!==null&&d.pW!==O&&(v.ao(d),d=null);d||(O=v.O1(Y,qV(),!1,O),Sg.U.length==0&&(MV().G=79463069),xEE([O]),d=O,d.B=q2(v),S&&(d.Eg=S));return d}; gUF=function(v,O){var Y=v[O];Y!==void 0&&Y>0&&(v[O]=Math.floor(Y*1E3))}; z1n=function(){var v=NV(),O={},Y={},S={};return Object.assign({},(O.sv="967",O),k3!==null&&(Y.v=k3,Y),(S["if"]=v.G?"1":"0",S.nas=String(Sg.Y.length),S))}; K5=function(v){wv.call(this,"audio_audible",v)}; tF=function(v){Id.call(this,"audio_measurable",v)}; D$=function(){x3.apply(this,arguments)}; Hd=function(){}; M27=function(v){this.Y=v}; jp3=function(v,O,Y){v=v.U();if(typeof v==="function"){var S={};var d={};S=Object.assign({},k3!==null&&(S.v=k3,S),(d.sv="967",d.cb=qkF,d.e=V2l(O),d));d=NR(Y,O,OM());g.OI(S,d);Y.Ka[O]=d;S=Y.Zn()==2?cQw(S).join("&"):Y.Q4.Y(S).Y;try{return v(Y.pW,S,O),0}catch(r){return 2}}else return 1}; V2l=function(v){var O=uN(v)?"custom_metric_viewable":v;v=mN(HV,function(Y){return Y==O}); return Uf[v]}; N2=function(){L5.call(this);this.C=null;this.Z=!1;this.B="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; Ax1=function(v,O,Y){Y=Y.opt_configurable_tracking_events;v.Y!=null&&Array.isArray(Y)&&rxQ(v,Y,O)}; fAn=function(v,O,Y){var S=Y3(Sg,O);S||(S=Y.opt_nativeTime||-1,S=Bd(v,O,q2(v),S),Y.opt_osdId&&(S.Eg=Y.opt_osdId));return S}; $Vg=function(v,O,Y){var S=Y3(Sg,O);S||(S=Bd(v,O,"n",Y.opt_nativeTime||-1));return S}; kel=function(v,O){var Y=Y3(Sg,O);Y||(Y=Bd(v,O,"h",-1));return Y}; UVi=function(v){MV();switch(q2(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}; CTE=function(v,O,Y,S){Y=Y===void 0?{}:Y;var d={};g.OI(d,{opt_adElement:void 0,opt_fullscreen:void 0},Y);var r=v.R5(O,Y);Y=r?r.Q4:v.Zt();if(d.opt_bounds)return Y.Y(cd("ol",S));if(S!==void 0)if(nvQ(S)!==void 0)if(Xg)v=cd("ue",S);else if(oUd(v),wc=="i")v=cd("i",S),v["if"]=0;else if(O=v.R5(O,d)){b:{wc=="i"&&(O.ek=!0);r=d.opt_fullscreen;r!==void 0&&TL(O,!!r);var b;if(r=!NV().U)(r=$I(g.yh(),"CrKey")&&!($I(g.yh(),"CrKey")&&$I(g.yh(),"SmartSpeaker"))||$I(g.yh(),"PlayStation")||$I(g.yh(),"Roku")||jvg()||$I(g.yh(), "Xbox"))||(r=g.yh(),r=$I(r,"AppleTV")||$I(r,"Apple TV")||$I(r,"CFNetwork")||$I(r,"tvOS")),r||(r=g.yh(),r=$I(r,"sdk_google_atv_x86")||$I(r,"Android TV")),r=!r;r&&(YK(),r=If(vV)===0);if(b=r){switch(O.Zn()){case 1:WZg(O,"pv");break;case 2:v.D3(O)}IN("pv")}r=S.toLowerCase();if(b=!b)b=zg(MV().h9,"ssmol")&&r==="loaded"?!1:g.Vv(cxg,r);if(b&&O.Kq==0){wc!="i"&&(Vj.done=!1);b=d!==void 0?d.opt_nativeTime:void 0;P4=b=typeof b==="number"?b:qV();O.kV=!0;var z=OM();O.Kq=1;O.vE={};O.vE.start=!1;O.vE.firstquartile= !1;O.vE.midpoint=!1;O.vE.thirdquartile=!1;O.vE.complete=!1;O.vE.resume=!1;O.vE.pause=!1;O.vE.skip=!1;O.vE.mute=!1;O.vE.unmute=!1;O.vE.viewable_impression=!1;O.vE.measurable_impression=!1;O.vE.fully_viewable_audible_half_duration_impression=!1;O.vE.fullscreen=!1;O.vE.exitfullscreen=!1;O.WX=0;z||(O.XM().X=b);f5(Vj,[O],!z)}(b=O.lK[r])&&L9(O.Tm,b);zg(MV().h9,"fmd")||g.Vv(ua1,r)&&O.Jq&&O.Jq.U(O,null);switch(O.Zn()){case 1:var M=uN(r)?v.L.custom_metric_viewable:v.L[r];break;case 2:M=v.X[r]}if(M&&(S=M.call(v, O,d,S),zg(MV().h9,"fmd")&&g.Vv(ua1,r)&&O.Jq&&O.Jq.U(O,null),S!==void 0)){d=cd(void 0,r);g.OI(d,S);S=d;break b}S=void 0}O.Kq==3&&v.ao(O);v=S}else v=cd("nf",S);else v=void 0;else Xg?v=cd("ue"):r?(v=cd(),g.OI(v,ovn(r,!0,!1,!1))):v=cd("nf");return typeof v==="string"?Y.Y():Y.Y(v)}; yxw=function(v,O){O&&(v.B=O)}; aAE=function(v){var O={};return O.viewability=v.Y,O.googleViewability=v.U,O}; xV3=function(v,O,Y){Y=Y===void 0?{}:Y;v=CTE(vU(N2),O,Y,v);return aAE(v)}; vB=function(v){return new RegExp("[^#]*[?&]"+v+"=([^&#]*)")}; O6=function(v,O){return(v=O.exec(v))?v[1]:null}; YX=function(v){var O=g.Bm.apply(1,arguments).filter(Boolean).join("&");if(!O)return v;var Y=v.match(/[?&]adurl=/);return Y?v.slice(0,Y.index+1)+O+"&"+v.slice(Y.index+1):v+(v.indexOf("?")<0?"?":"&")+O}; S6=function(v,O){return O?"&"+v+"="+encodeURIComponent(O):""}; p43=function(v){var O=v.url;v=v.qP3;this.Y=O;this.G=v;this.U=(new Date).getTime()-17040672E5}; T4Q=function(v){v=v.G;if(!v)return"";var O=S6("uap",v.platform)+S6("uapv",v.platformVersion)+S6("uafv",v.uaFullVersion)+S6("uaa",v.architecture)+S6("uam",v.model)+S6("uab",v.bitness);v.fullVersionList&&(O+="&uafvl="+encodeURIComponent(v.fullVersionList.map(function(Y){return encodeURIComponent(Y.brand)+";"+encodeURIComponent(Y.version)}).join("|"))); v.wow64!=null&&(O+="&uaw="+Number(v.wow64));return O.slice(1)}; h1l=function(v,O,Y,S,d){var r=window;var b=b===void 0?!1:b;var z;Y?z=(b===void 0?0:b)?"//ep1.adtrafficquality.google/bg/"+VX(Y)+".js":"//pagead2.googlesyndication.com/bg/"+VX(Y)+".js":z="";b=b===void 0?!1:b;Y=r.document;var M={};O&&(M._scs_=O);M._bgu_=z;M._bgp_=S;M._li_="v_h.3.0.0.0";d&&(M._upb_=d);(O=r.GoogleTyFxhY)&&typeof O.push=="function"||(O=r.GoogleTyFxhY=[]);O.push(M);O=Xp(Y).createElement("SCRIPT");O.type="text/javascript";O.async=!0;v=(b===void 0?0:b)?hNn(lAn,VX(v)+".js"):hNn(FZJ,VX(v)+ ".js");g.bg(O,v);(r=(r.GoogleTyFxhYEET||{})[O.src])?r():Y.getElementsByTagName("head")[0].appendChild(O)}; R1m=function(){try{var v,O;return!!((v=window)==null?0:(O=v.top)==null?0:O.location.href)&&!1}catch(Y){return!0}}; dd=function(v,O,Y){Y=Y===void 0?Error():Y;var S=Error.call(this);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.code=v;O+=":";Y instanceof Error?(this.message=O+Y.message,this.stack=Y.stack||""):(this.message=O+String(Y),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; bU=function(){var v=e1i();v=v===void 0?"bevasrsg":v;return new Promise(function(O){var Y=window===window.top?window:R1m()?window:window.top,S=Y[v],d;((d=S)==null?0:d.bevasrs)?O(new rd(S.bevasrs)):(S||(S={},S=(S.nqfbel=[],S),Y[v]=S),S.nqfbel.push(function(r){O(new rd(r))}))})}; EU7=function(v){var O={c:v.lL,e:v.uo,mc:v.sO,me:v.Ii};v.g0&&(O.co={c:v.g0.Rh,a:v.g0.U6,s:v.g0.wz});return O}; os=function(v){g.X.call(this);this.wpc=v}; rd=function(v){g.X.call(this);var O=this;this.zd=v;this.G="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.U=void 0;this.oQ=this.zd.p;this.B=this.Rc.bind(this);this.addOnDisposeCallback(function(){return void Qp1(O)})}; LZc=function(v){var O;return g.B(function(Y){if(Y.U==1){if(!v.zd.wpc)throw new dd(30,"NWA");return v.Y?Y.return(v.Y):g.E(Y,v.zd.wpc(),2)}O=Y.Y;v.Y=new os(O);return Y.return(v.Y)})}; Qp1=function(v){v.U!==void 0&&(v.G.forEach(function(O){var Y;(Y=v.U)==null||Y.removeEventListener(O,v.B)}),v.U=void 0)}; B41=function(v){var O=O===void 0?49:O;var Y=[];Gu(v,j6,6).forEach(function(S){Ds(S,2)<=O&&Y.push(Ds(S,1))}); return Y}; ZV3=function(v){var O=O===void 0?49:O;var Y=[];Gu(v,j6,6).forEach(function(S){Ds(S,2)>O&&Y.push(Ds(S,1))}); return Y}; X4m=function(v){v.then(function(){},function(){})}; WB=function(){g.X.apply(this,arguments);this.B=1;this[w4F]=this.dispose}; zk=function(v){return{fieldType:2,fieldName:v}}; g.s6=function(v){return{fieldType:3,fieldName:v}}; IAw=function(v){this.Y=v;v.kI("/client_streamz/bg/frs",g.s6("mk"))}; qzw=function(v){this.Y=v;v.kI("/client_streamz/bg/wrl",g.s6("mn"),zk("ac"),zk("sc"),g.s6("rk"),g.s6("mk"))}; nUE=function(v){this.Y=v;v.FF("/client_streamz/bg/ec",g.s6("en"),g.s6("mk"))}; Jxc=function(v){this.Y=v;v.kI("/client_streamz/bg/el",g.s6("en"),g.s6("mk"))}; KZE=function(v){this.Y=v;v.FF("/client_streamz/bg/cec",zk("ec"),g.s6("mk"))}; PTl=function(v){this.Y=v;v.FF("/client_streamz/bg/po/csc",zk("cs"),g.s6("mk"))}; GeQ=function(v){this.Y=v;v.FF("/client_streamz/bg/po/ctav",g.s6("av"),g.s6("mk"))}; iVQ=function(v){this.Y=v;v.FF("/client_streamz/bg/po/cwsc",g.s6("su"),g.s6("mk"))}; mV7=function(v){this.Un=kZ(v)}; t2w=function(v,O){return lC1(v,O,N3i)}; gd=function(v){this.Un=kZ(v)}; MZ=function(v){this.Un=kZ(v)}; Vr=function(v){this.Un=kZ(v)}; Au=function(v){this.Un=kZ(v)}; DV$=function(v){this.Un=kZ(v)}; g.v17=function(v){var O=new Au;O=dy(O,1,v.U);var Y=HVl(v);O=lC1(O,Y,sui);Y=[];for(var S=[],d=g.y(v.Y.keys()),r=d.next();!r.done;r=d.next())S.push(r.value.split(","));for(d=0;d>>31)&4294967295;f=d[0];var c=d[1],a=d[2],x=d[3],T=d[4];for(U=0;U<80;U++){if(U<40)if(U<20){var l=x^c&(a^x);var Q=1518500249}else l=c^a^x,Q=1859775393;else U<60?(l=c&a|x&(c|a),Q=2400959708):(l=c^a^x,Q=3395469782);l=((f<<5|f>>>27)&4294967295)+l+T+Q+k[U]&4294967295;T=x;x=a;a=(c<<30|c>>>2)&4294967295;c=f;f=l}d[0]=d[0]+f&4294967295;d[1]=d[1]+c&4294967295;d[2]= d[2]+a&4294967295;d[3]=d[3]+x&4294967295;d[4]=d[4]+T&4294967295} function Y(f,k){if(typeof f==="string"){f=unescape(encodeURIComponent(f));for(var U=[],c=0,a=f.length;c=56;U--)r[U]=k&255,k>>>=8;O(r);for(U=k=0;U<5;U++)for(var c=24;c>=0;c-=8)f[k++]=d[U]>>c&255;return f} for(var d=[],r=[],b=[],z=[128],M=1;M<64;++M)z[M]=0;var V,A;v();return{reset:v,update:Y,digest:S,gj:function(){for(var f=S(),k="",U=0;U1)));b=b.next)d||(r=b);d&&(Y.Y==0&&S==1?DRm(Y,O):(r?(S=r,S.next==Y.B&&(Y.B=S),S.next=S.next.next):H9i(Y),NvJ(Y,d,3,O)))}v.G=null}else aw(v,3,O)}; EW=function(v,O){v.U||v.Y!=2&&v.Y!=3||v33(v);v.B?v.B.next=O:v.U=O;v.B=O}; O5n=function(v,O,Y,S){var d=pZ(null,null,null);d.Y=new g.x_(function(r,b){d.G=O?function(z){try{var M=O.call(S,z);r(M)}catch(V){b(V)}}:r; d.U=Y?function(z){try{var M=Y.call(S,z);M===void 0&&z instanceof LZ?b(z):r(M)}catch(V){b(V)}}:b}); d.Y.G=v;EW(v,d);return d.Y}; aw=function(v,O,Y){v.Y==0&&(v===Y&&(O=3,Y=new TypeError("Promise cannot resolve to itself")),v.Y=1,GLn(Y,v.Gng,v.MN3,v)||(v.L=Y,v.Y=O,v.G=null,v33(v),O!=3||Y instanceof LZ||Yf3(v,Y)))}; GLn=function(v,O,Y,S){if(v instanceof g.x_)return t4g(v,O,Y,S),!0;if(v)try{var d=!!v.$goog_Thenable}catch(b){d=!1}else d=!1;if(d)return v.then(O,Y,S),!0;if(g.N$(v))try{var r=v.then;if(typeof r==="function")return Sfd(v,r,O,Y,S),!0}catch(b){return Y.call(S,b),!0}return!1}; Sfd=function(v,O,Y,S,d){function r(M){z||(z=!0,S.call(d,M))} function b(M){z||(z=!0,Y.call(d,M))} var z=!1;try{O.call(v,b,r)}catch(M){r(M)}}; v33=function(v){v.C||(v.C=!0,g.yP(v.yK,v))}; H9i=function(v){var O=null;v.U&&(O=v.U,v.U=O.next,O.next=null);v.U||(v.B=null);return O}; NvJ=function(v,O,Y,S){if(Y==3&&O.U&&!O.B)for(;v&&v.Z;v=v.G)v.Z=!1;if(O.Y)O.Y.G=null,d2w(O,Y,S);else try{O.B?O.G.call(O.context):d2w(O,Y,S)}catch(d){rFn.call(null,d)}XVJ(PHd,O)}; d2w=function(v,O,Y){O==2?v.G.call(v.context,Y):v.U&&v.U.call(v.context,Y)}; Yf3=function(v,O){v.Z=!0;g.yP(function(){v.Z&&rFn.call(null,O)})}; LZ=function(v){W0.call(this,v)}; g.Bt=function(v,O){g.sW.call(this);this.nS=v||1;this.jC=O||g.Pm;this.Cm=(0,g.YY)(this.ENc,this);this.Qq=g.rS()}; g.Z4=function(v,O,Y){if(typeof v==="function")Y&&(v=(0,g.YY)(v,Y));else if(v&&typeof v.handleEvent=="function")v=(0,g.YY)(v.handleEvent,v);else throw Error("Invalid listener argument");return Number(O)>2147483647?-1:g.Pm.setTimeout(v,O||0)}; Xn=function(v,O){var Y=null;return(new g.x_(function(S,d){Y=g.Z4(function(){S(O)},v); Y==-1&&d(Error("Failed to schedule timer."))})).bv(function(S){g.Pm.clearTimeout(Y); throw S;})}; g.w1=function(v){g.X.call(this);this.L=v;this.B=0;this.G=100;this.Z=!1;this.U=new Map;this.C=new Set;this.flushInterval=3E4;this.Y=new g.Bt(this.flushInterval);this.Y.listen("tick",this.iN,!1,this);g.w(this,this.Y)}; b5n=function(v){v.Y.enabled||v.Y.start();v.B++;v.B>=v.G&&v.iN()}; o3c=function(v,O){return v.C.has(O)?void 0:v.U.get(O)}; jNd=function(v){for(var O=0;O2?v.Y.statusText:""}catch(Y){O=""}v.B=O+" ["+v.getStatus()+"]";U2$(v)}}finally{Pt(v)}}}; Pt=function(v,O){if(v.Y){v.C&&(clearTimeout(v.C),v.C=null);var Y=v.Y;v.Y=null;O||v.dispatchEvent("ready");try{Y.onreadystatechange=null}catch(S){}}}; mz=function(v){var O=v.getStatus();a:switch(O){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var Y=!0;break a;default:Y=!1}if(!Y){if(O=O===0)v=g.Uz(String(v.X))[1]||null,!v&&g.Pm.self&&g.Pm.self.location&&(v=g.Pm.self.location.protocol.slice(0,-1)),O=!CNl.test(v?v.toLowerCase():"");Y=O}return Y}; g.id=function(v){return v.Y?v.Y.readyState:0}; g.td=function(v){try{return v.Y?v.Y.responseText:""}catch(O){return""}}; g.D4=function(v){try{if(!v.Y)return null;if("response"in v.Y)return v.Y.response;switch(v.JK){case "":case "text":return v.Y.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in v.Y)return v.Y.mozResponseArrayBuffer}return null}catch(O){return null}}; g.yFm=function(v){var O={};v=(v.Y&&g.id(v)>=2?v.Y.getAllResponseHeaders()||"":"").split("\r\n");for(var Y=0;Y>1,O),yl(v,v.length>>1)]}; dZJ=function(v){var O=g.y(S61(v,aS));v=O.next().value;O=O.next().value;return v.toString(16)+O.toString(16)}; ru$=function(v,O){var Y=S61(O);v=new Uint32Array(v.buffer);O=v[0];var S=g.y(Y);Y=S.next().value;S=S.next().value;for(var d=1;d>>8|b<<24,b+=r|0,b^=z+38293,r=r<<3|r>>>29,r^=b,M=M>>>8|M<<24,M+=z|0,M^=V+38293,z=z<<3|z>>>29,z^=M;r=[r,b];v[d]^=r[0];d+1=Y?(globalThis.sessionStorage.removeItem(v),["e"]):["a",new Uint8Array(S.buffer,O+4)]}; xH=function(v,O,Y){Y=Y===void 0?[]:Y;this.maxItems=v;this.Y=O===void 0?0:O;this.U=Y}; jsm=function(v){var O=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!O)return new xH(v);var Y=O.split(",");if(Y.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new xH(v);O=Y.slice(1);O.length===1&&O[0]===""&&(O=[]);Y=Number(Y[0]);return isNaN(Y)||Y<0||Y>O.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new xH(v)):new xH(v,Y,O)}; Wf7=function(v,O){this.logger=O;try{var Y=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(S){Y=!1}Y&&(this.index=jsm(v))}; zvQ=function(v,O,Y,S,d){var r=v.index?Sm(v.logger,function(){return bKm(v.index,dZJ(O),Y,S,d)},"W"):"u"; v.logger.Wt(r)}; ssi=function(v,O,Y){var S=g.y(v.index?Sm(v.logger,function(){return oXw(dZJ(O),Y)},"R"):["u"]),d=S.next().value; S=S.next().value;v.logger.vt(d);return S}; V6F=function(v){function O(){Y-=S;Y-=d;Y^=d>>>13;S-=d;S-=Y;S^=Y<<8;d-=Y;d-=S;d^=S>>>13;Y-=S;Y-=d;Y^=d>>>12;S-=d;S-=Y;S^=Y<<16;d-=Y;d-=S;d^=S>>>5;Y-=S;Y-=d;Y^=d>>>3;S-=d;S-=Y;S^=Y<<10;d-=Y;d-=S;d^=S>>>15} v=gX1(v);for(var Y=2654435769,S=2654435769,d=314159265,r=v.length,b=r,z=0;b>=12;b-=12,z+=12)Y+=pB(v,z),S+=pB(v,z+4),d+=pB(v,z+8),O();d+=r;switch(b){case 11:d+=v[z+10]<<24;case 10:d+=v[z+9]<<16;case 9:d+=v[z+8]<<8;case 8:S+=v[z+7]<<24;case 7:S+=v[z+6]<<16;case 6:S+=v[z+5]<<8;case 5:S+=v[z+4];case 4:Y+=v[z+3]<<24;case 3:Y+=v[z+2]<<16;case 2:Y+=v[z+1]<<8;case 1:Y+=v[z+0]}O();return M61.toString(d)}; gX1=function(v){for(var O=[],Y=0;Y>7,v.error.code]);S.set(Y,4);return S}; LB=function(v,O,Y){T_.call(this,v);this.B=O;this.clientState=Y;this.Y="S";this.U="q"}; Ql=function(v){return globalThis.TextEncoder?(new TextEncoder).encode(v):g.ra(v)}; $Zg=function(v,O,Y){return v instanceof UC?JFm(v,Y,O,1):v.Yw(Y)}; Zq=function(v){g.X.call(this);var O=this;this.G=new g.Mf;this.B=0;this.U=void 0;this.state=2;this.zd=v.zd;this.Xg=v.Xg;this.zg=Object.assign({},kkE,v.zg||{});this.logger=v.zd.uW();var Y;this.onError=(Y=v.onError)!=null?Y:function(){}; this.z4=v.z4||!1;if(UZi(v)){var S=this.zd;this.Z=function(){return m2$(S).catch(function(b){b=O.reportError(new dd(O.Y?20:32,"TRG:Disposed",b));O.U=b;var z;(z=O.Y)==null||z.dispose();O.Y=void 0;O.G.reject(b)})}; tgw(S,function(){return void Bl(O)}); S.X===2&&Bl(this)}else this.Z=v.DUK,Bl(this);var d=this.logger.share();d.R9("o");var r=new OC(d,"o");this.G.promise.then(function(){r.done();d.D1();d.dispose()},function(){return void d.dispose()}); this.addOnDisposeCallback(function(){O.Y?(O.Y.dispose(),O.Y=void 0):O.U?O.logger.D1():(O.U=O.reportError(new dd(32,"TNP:Disposed")),O.logger.D1(),O.G.reject(O.U))}); g.w(this,this.logger)}; cul=function(v,O){if(!(O instanceof dd))if(O instanceof Iw){var Y=Error(O.toString());Y.stack=O.stack;O=new dd(11,"EBH:Error",Y)}else O=new dd(12,"BSO:Unknown",O);return v.reportError(O)}; Bl=function(v){var O,Y,S,d,r,b,z,M,V,A,f,k,U,c,a;return g.B(function(x){switch(x.U){case 1:O=void 0;v.B++;Y=new g.Mf;v.zd instanceof cl&&v.zd.B.push(Y.promise);if(!v.z4){x.d8(2);break}S=new g.Mf;setTimeout(function(){return void S.resolve()}); return g.E(x,S.promise,2);case 2:return d=v.logger.share(),g.cm(x,4,5),v.state=5,r={},b=[],g.E(x,CB(v.zd.snapshot({lL:r,PC:b}),v.zg.kmx,function(){return Promise.reject(new dd(15,"MDA:Timeout"))}),7); case 7:z=x.Y;if(v.vW())throw new dd(v.Y?20:32,"MDA:Disposed");M=b[0];v.state=6;return g.E(x,CB($Zg(v.Xg,d,z),v.zg.Oh,function(){return Promise.reject(new dd(10,"BWB:Timeout"))}),8); case 8:V=x.Y;if(v.vW())throw new dd(v.Y?20:32,"BWB:Disposed");v.state=7;O=Sm(d,function(){var l=uJF(v,V,Y,M);l.G.promise.then(function(){return void v.Z()}); return l},"i"); case 5:g.Fw(x);d.dispose();g.Ri(x,6);break;case 4:A=g.Tc(x);(f=O)==null||f.dispose();if(!v.U){k=cul(v,A);Y.resolve();var T;if(T=v.zd instanceof cl&&v.B<2)a:if(A instanceof dd)T=A.code!==32&&A.code!==20&&A.code!==10;else{if(A instanceof Iw)switch(A.code){case 2:case 13:case 14:case 4:break;default:T=!1;break a}T=!0}if(T)return U=(1+Math.random()*.25)*(v.Y?6E4:1E3),c=setTimeout(function(){return void v.Z()},U),v.addOnDisposeCallback(function(){return void clearTimeout(c)}),x.return(); v.U=k}d.fq(v.Y?13:14);v.G.reject(v.U);return x.return();case 6:v.state=8,v.B=0,(a=v.Y)==null||a.dispose(),v.Y=O,v.G.resolve(),g.UE(x)}})}; uJF=function(v,O,Y,S){var d=Hb(O,2)*1E3;if(d<=0)throw new dd(31,"TTM:Invalid");if(N3(O,4))return new em(v.logger,N3(O,4),d);if(!Hb(O,3))return new RS(v.logger,fe(Ec(O,1)),d);if(!S)throw new dd(4,"PMD:Undefined");S=S(fe(Ec(O,1)));if(!(S instanceof Function))throw new dd(16,"APF:Failed");v.C=Math.floor((Date.now()+d)/1E3);v=new hU(v.logger,S,Hb(O,3),d);v.addOnDisposeCallback(function(){return void Y.resolve()}); return v}; CUQ=function(v,O){O=O instanceof dd?O:new dd(5,"TVD:error",O);return v.reportError(O)}; Tdd=function(v,O,Y){try{if(v.vW())throw new dd(21,"BNT:disposed");if(!v.Y&&v.U)throw v.U;var S,d;return(d=(S=yu3(v,O,Y))!=null?S:a0E(v,O,Y))!=null?d:xZd(v,O,Y)}catch(r){if(!O.Ii)throw CUQ(v,r);return pBl(v,Y,r)}}; yu3=function(v,O,Y){var S;return(S=v.Y)==null?void 0:FQ(S,function(){return XQ(v,O)},Y,function(d){var r; if(v.Y instanceof hU&&((r=O.g0)==null?0:r.wz))try{var b;(b=v.cache)==null||zvQ(b,XQ(v,O),d,O.g0.Rh,v.C-120)}catch(z){v.reportError(new dd(24,"ELX:write",z))}})}; a0E=function(v,O,Y){var S;if((S=O.g0)!=null&&S.U6)try{var d,r=(d=v.cache)==null?void 0:ssi(d,XQ(v,O),O.g0.Rh);return r?Y?Sm(v.logger,function(){return g.bV(r,2)},"a"):r:void 0}catch(b){v.reportError(new dd(23,"RXO:read",b))}}; xZd=function(v,O,Y){var S={stack:[],error:void 0,hasError:!1};try{if(!O.sO)throw new dd(29,"SDF:notready");return FQ($$Q(S,new LB(v.logger,0,v.state)),function(){return XQ(v,O)},Y)}catch(d){S.error=d,S.hasError=!0}finally{kcw(S)}}; pBl=function(v,O,Y){var S={stack:[],error:void 0,hasError:!1};try{var d=CUQ(v,Y);return FQ($$Q(S,new EC(v.logger,d)),function(){return[]},O)}catch(r){S.error=r,S.hasError=!0}finally{kcw(S)}}; XQ=function(v,O){return O.uo?O.uo:O.lL?Sm(v.logger,function(){return O.uo=Ql(O.lL)},"c"):[]}; wA=function(){var v=0,O;return function(Y){O||(O=new dA);var S=new LB(O,v,1),d=FQ(S,function(){return Ql(Y)},!0); S.dispose();v++;return d}}; IS=function(v){this.Un=kZ(v)}; l0w=function(v,O,Y){this.il=v;this.EO=O;this.metadata=Y}; qf=function(v,O){O=O===void 0?{}:O;this.x8x=v;this.metadata=O;this.status=null}; nB=function(v,O,Y,S,d){this.name=v;this.methodType="unary";this.requestType=O;this.responseType=Y;this.Y=S;this.U=d}; JU=function(v){this.Un=kZ(v)}; KB=function(v){this.Un=kZ(v)}; Pl=function(v){this.Un=kZ(v)}; G_=function(v,O){this.L=v.i1K;this.X=O;this.Y=v.xhr;this.G=[];this.Z=[];this.C=[];this.B=[];this.U=[];this.L&&Ffi(this)}; EXw=function(v,O){var Y=new hvF;g.d1(v.Y,"complete",function(){if(mz(v.Y)){var S=g.td(v.Y);if(O&&v.Y.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");S=atob(S)}try{var d=v.X(S)}catch(z){ie(v,mR(new Iw(13,"Error when deserializing response data; error: "+z+(", response: "+S)),Y));return}S=WG3(v.Y.getStatus());tU(v,Dq(v));S==0?Rvm(v,d):ie(v,mR(new Iw(S,"Xhr succeeded but the status code is not 200"),Y))}else{S=g.td(v.Y);d=Dq(v);if(S){var r=evn(v, S);S=r.code;var b=r.details;r=r.metadata}else S=2,b="Rpc failed due to xhr error. uri: "+String(v.Y.X)+", error code: "+v.Y.U+", error: "+v.Y.getLastError(),r=d;tU(v,d);ie(v,mR(new Iw(S,b,r),Y))}})}; Ffi=function(v){v.L.gU("data",function(O){if("1"in O){var Y=O["1"];try{var S=v.X(Y)}catch(d){ie(v,new Iw(13,"Error when deserializing response data; error: "+d+(", response: "+Y)))}S&&Rvm(v,S)}if("2"in O)for(O=evn(v,O["2"]),Y=0;Y-1&&v.splice(O,1)}; Rvm=function(v,O){for(var Y=0;Y>4&15).toString(16)+(v&15).toString(16)}; WM=function(v,O){this.U=this.Y=null;this.G=v||null;this.B=!!O}; MA=function(v){v.Y||(v.Y=new Map,v.U=0,v.G&&yk(v.G,function(O,Y){v.add(Mn(O),Y)}))}; wBl=function(v,O){MA(v);O=VB(v,O);return v.Y.has(O)}; g.I01=function(v,O,Y){v.remove(O);Y.length>0&&(v.G=null,v.Y.set(VB(v,O),g.c0(Y)),v.U=v.U+Y.length)}; VB=function(v,O){O=String(O);v.B&&(O=O.toLowerCase());return O}; Bdn=function(v,O){O&&!v.B&&(MA(v),v.G=null,v.Y.forEach(function(Y,S){var d=S.toLowerCase();S!=d&&(this.remove(S),g.I01(this,d,Y))},v)); v.B=O}; g.q6l=function(v){var O="";g.Xt(v,function(Y,S){O+=S;O+=":";O+=Y;O+="\r\n"}); return O}; g.AB=function(v,O,Y){if(g.tY(Y))return v;Y=g.q6l(Y);if(typeof v==="string")return lT(v,g.gn(O),Y);g.sS(v,O,Y);return v}; g.f7=function(v){g.X.call(this);this.U=v;this.Y={}}; nXi=function(v,O,Y,S,d,r){if(Array.isArray(Y))for(var b=0;b=0)return!0;try{var O=new g.Ss(v)}catch(Y){return g.gS(bZE,function(S){return v.search(S)>0})!=null}return O.C.match(o_w)?!0:g.gS(bZE,function(Y){return v.match(Y)!=null})!=null}; g.lp=function(v,O){return v.replace(Wzc,function(Y,S){try{var d=g.DK(O,S);if(d==null||d.toString()==null)return Y;d=d.toString();if(d==""||!g.Vh(g.Ac(d)))return encodeURIComponent(d).replace(/%2C/g,",")}catch(r){}return Y})}; es=function(v,O){return Object.is(v,O)}; QB=function(v){var O=ES;ES=v;return O}; zEc=function(v){if(v.xe!==void 0){var O=L7;L7=!0;try{for(var Y=g.y(v.xe),S=Y.next();!S.done;S=Y.next()){var d=S.value;d.uQ||(v=void 0,d.uQ=!0,zEc(d),(v=d.x6)==null||v.call(d,d))}}finally{L7=O}}}; sw$=function(){var v;return((v=ES)==null?void 0:v.iP)!==!1}; g_w=function(v){v&&(v.nJ=0);return QB(v)}; Myl=function(v,O){QB(O);if(v&&v.V$!==void 0&&v.s8!==void 0&&v.EN!==void 0){if(BM(v))for(O=v.nJ;Ov.nJ;)v.V$.pop(),v.EN.pop(),v.s8.pop()}}; Ad1=function(v,O,Y){Vy1(v);if(v.xe.length===0&&v.V$!==void 0)for(var S=0;S0}; f4Q=function(v){v.V$!=null||(v.V$=[]);v.s8!=null||(v.s8=[]);v.EN!=null||(v.EN=[])}; Vy1=function(v){v.xe!=null||(v.xe=[]);v.gs!=null||(v.gs=[])}; k7F=function(v){function O(){if(L7)throw Error("");if(ES!==null){var S=ES.nJ++;f4Q(ES);S0?" "+O:O))}}; g.ji=function(v,O){if(v.classList)Array.prototype.forEach.call(O,function(d){g.on(v,d)}); else{var Y={};Array.prototype.forEach.call(dr(v),function(d){Y[d]=!0}); Array.prototype.forEach.call(O,function(d){Y[d]=!0}); O="";for(var S in Y)O+=O.length>0?" "+S:S;g.rr(v,O)}}; g.WI=function(v,O){v.classList?v.classList.remove(O):g.bE(v,O)&&g.rr(v,Array.prototype.filter.call(dr(v),function(Y){return Y!=O}).join(" "))}; g.zf=function(v,O){v.classList?Array.prototype.forEach.call(O,function(Y){g.WI(v,Y)}):g.rr(v,Array.prototype.filter.call(dr(v),function(Y){return!g.Vv(O,Y)}).join(" "))}; g.gr=function(v,O,Y){Y?g.on(v,O):g.WI(v,O)}; l4d=function(v,O){var Y=!g.bE(v,O);g.gr(v,O,Y)}; g.MM=function(){g.sW.call(this);this.Y=0;this.endTime=this.startTime=null}; FzF=function(v,O){Array.isArray(O)||(O=[O]);O=O.map(function(Y){return typeof Y==="string"?Y:Y.property+" "+Y.duration+"s "+Y.timing+" "+Y.delay+"s"}); g.ym(v,"transition",O.join(","))}; VF=function(v,O,Y,S,d){g.MM.call(this);this.U=v;this.Z=O;this.C=Y;this.B=S;this.L=Array.isArray(d)?d:[d]}; hE7=function(v,O,Y,S){return new VF(v,O,{opacity:Y},{opacity:S},{property:"opacity",duration:O,timing:"ease-in",delay:0})}; eE$=function(v){v=kI(v);if(v=="")return null;var O=String(v.slice(0,4)).toLowerCase();if(("url("1||v&&v.split(")"),null;if(v.indexOf("(")>0){if(/"|'/.test(v))return null;O=/([\-\w]+)\(/g;for(var Y;Y=O.exec(v);)if(!(Y[1].toLowerCase()in RE3))return null}return v}; AS=function(v,O){v=g.Pm[v];return v&&v.prototype?(O=Object.getOwnPropertyDescriptor(v.prototype,O))&&O.get||null:null}; E_1=function(v){var O=g.Pm.CSSStyleDeclaration;return O&&O.prototype&&O.prototype[v]||null}; Qw$=function(v,O,Y,S){if(v)return v.apply(O,S);if(g.fO&&document.documentMode<10){if(!O[Y].call)throw Error("IE Clobbering detected");}else if(typeof O[Y]!="function")throw Error("Clobbering detected");return O[Y].apply(O,S)}; wtc=function(v){if(!v)return"";var O=document.createElement("div").style;Lz$(v).forEach(function(Y){var S=g.PE&&Y in B1Q?Y:Y.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Mv(S,"--")||Mv(S,"var")||(Y=Qw$(ZZF,v,v.getPropertyValue?"getPropertyValue":"getAttribute",[Y])||"",Y=eE$(Y),Y!=null&&Qw$(Xt1,O,O.setProperty?"setProperty":"setAttribute",[S,Y]))}); return O.cssText||""}; Lz$=function(v){g.Hm(v)?v=g.c0(v):(v=g.KC(v),g.$Y(v,"cssText"));return v}; g.kG=function(v){var O,Y=O=0,S=!1;v=v.split(I47);for(var d=0;d.4?-1:1;return(O==0?null:O)==-1?"rtl":"ltr"}; g.CO=function(v){if(v instanceof Us||v instanceof cI||v instanceof uE)return v;if(typeof v.next=="function")return new Us(function(){return v}); if(typeof v[Symbol.iterator]=="function")return new Us(function(){return v[Symbol.iterator]()}); if(typeof v.g7=="function")return new Us(function(){return v.g7()}); throw Error("Not an iterator or iterable.");}; Us=function(v){this.U=v}; cI=function(v){this.U=v}; uE=function(v){Us.call(this,function(){return v}); this.G=v}; yF=function(v,O,Y,S,d,r,b,z){this.Y=v;this.L=O;this.G=Y;this.Z=S;this.B=d;this.C=r;this.U=b;this.X=z}; an=function(v,O){if(O==0)return v.Y;if(O==1)return v.U;var Y=TK(v.Y,v.G,O),S=TK(v.G,v.B,O);v=TK(v.B,v.U,O);Y=TK(Y,S,O);S=TK(S,v,O);return TK(Y,S,O)}; Kzi=function(v,O){var Y=(O-v.Y)/(v.U-v.Y);if(Y<=0)return 0;if(Y>=1)return 1;for(var S=0,d=1,r=0,b=0;b<8;b++){r=an(v,Y);var z=(an(v,Y+1E-6)-r)/1E-6;if(Math.abs(r-O)<1E-6)return Y;if(Math.abs(z)<1E-6)break;else r1E-6&&b<8;b++)r=0}; g.lE=function(v){g.X.call(this);this.C=1;this.G=[];this.B=0;this.Y=[];this.U={};this.L=!!v}; G71=function(v,O,Y){g.yP(function(){v.apply(O,Y)})}; g.FG=function(v){this.Y=v}; hS=function(v){this.Y=v}; iZl=function(v){this.data=v}; mdE=function(v){return v===void 0||v instanceof iZl?v:new iZl(v)}; Rn=function(v){this.Y=v}; g.tyQ=function(v){var O=v.creation;v=v.expiration;return!!v&&vg.rS()}; g.ei=function(v){this.Y=v}; Dd7=function(){}; Es=function(){}; QF=function(v){this.Y=v;this.U=null}; LO=function(v){if(v.Y==null)throw Error("Storage mechanism: Storage unavailable");v.isAvailable()||da(Error("Storage mechanism: Storage unavailable"))}; BI=function(){var v=null;try{v=g.Pm.localStorage||null}catch(O){}QF.call(this,v)}; HZw=function(){var v=null;try{v=g.Pm.sessionStorage||null}catch(O){}QF.call(this,v)}; Zl=function(v,O){this.U=v;this.Y=O+"::"}; g.XG=function(v){var O=new BI;return O.isAvailable()?v?new Zl(O,v):O:null}; wr=function(v,O){this.Y=v;this.U=O}; In=function(v){this.Y=[];if(v)a:{if(v instanceof In){var O=v.y_();v=v.w7();if(this.Y.length<=0){for(var Y=this.Y,S=0;S>>6:(r<65536?z[Y++]=224|r>>>12:(z[Y++]=240|r>>>18,z[Y++]=128|r>>>12&63),z[Y++]=128|r>>> 6&63),z[Y++]=128|r&63);return z}; KO=function(v){for(var O=v.length;--O>=0;)v[O]=0}; PI=function(v,O,Y,S,d){this.q5=v;this.jq=O;this.I$=Y;this.XG=S;this.V43=d;this.Wk=v&&v.length}; Gf=function(v,O){this.ML=v;this.TW=0;this.BK=O}; iE=function(v,O){v.Vi[v.pending++]=O&255;v.Vi[v.pending++]=O>>>8&255}; mp=function(v,O,Y){v.XN>16-Y?(v.LW|=O<>16-v.XN,v.XN+=Y-16):(v.LW|=O<>>=1,Y<<=1;while(--O>0);return Y>>>1}; SC1=function(v,O,Y){var S=Array(16),d=0,r;for(r=1;r<=15;r++)S[r]=d=d+Y[r-1]<<1;for(Y=0;Y<=O;Y++)d=v[Y*2+1],d!==0&&(v[Y*2]=YCE(S[d]++,d))}; dfQ=function(v){var O;for(O=0;O<286;O++)v.Fd[O*2]=0;for(O=0;O<30;O++)v.We[O*2]=0;for(O=0;O<19;O++)v.y$[O*2]=0;v.Fd[512]=1;v.Aq=v.BO=0;v.Ky=v.matches=0}; rUl=function(v){v.XN>8?iE(v,v.LW):v.XN>0&&(v.Vi[v.pending++]=v.LW);v.LW=0;v.XN=0}; bBl=function(v,O,Y){rUl(v);iE(v,Y);iE(v,~Y);JS.Go(v.Vi,v.window,O,Y,v.pending);v.pending+=Y}; oHm=function(v,O,Y,S){var d=O*2,r=Y*2;return v[d]>>7)];tS(v,b,Y);z=Y0[b];z!==0&&(d-=Sr[b],mp(v,d,z))}}while(S>1;b>=1;b--)Dl(v,Y,b);M=r;do b=v.X4[1],v.X4[1]=v.X4[v.bf--],Dl(v,Y,1),S=v.X4[1],v.X4[--v.Mb]=b,v.X4[--v.Mb]=S,Y[M*2]=Y[b*2]+Y[S*2],v.depth[M]=(v.depth[b]>=v.depth[S]?v.depth[b]:v.depth[S])+1,Y[b*2+1]=Y[S*2+1]=M,v.X4[1]=M++,Dl(v,Y,1);while(v.bf>= 2);v.X4[--v.Mb]=v.X4[1];b=O.ML;M=O.TW;S=O.BK.q5;d=O.BK.Wk;r=O.BK.jq;var V=O.BK.I$,A=O.BK.V43,f,k=0;for(f=0;f<=15;f++)v.lQ[f]=0;b[v.X4[v.Mb]*2+1]=0;for(O=v.Mb+1;O<573;O++){var U=v.X4[O];f=b[b[U*2+1]*2+1]+1;f>A&&(f=A,k++);b[U*2+1]=f;if(!(U>M)){v.lQ[f]++;var c=0;U>=V&&(c=r[U-V]);var a=b[U*2];v.Aq+=a*(f+c);d&&(v.BO+=a*(S[U*2+1]+c))}}if(k!==0){do{for(f=A-1;v.lQ[f]===0;)f--;v.lQ[f]--;v.lQ[f+1]+=2;v.lQ[A]--;k-=2}while(k>0);for(f=A;f!==0;f--)for(U=v.lQ[f];U!==0;)S=v.X4[--O],S>M||(b[S*2+1]!==f&&(v.Aq+=(f- b[S*2+1])*b[S*2],b[S*2+1]=f),U--)}SC1(Y,z,v.lQ)}; WRl=function(v,O,Y){var S,d=-1,r=O[1],b=0,z=7,M=4;r===0&&(z=138,M=3);O[(Y+1)*2+1]=65535;for(S=0;S<=Y;S++){var V=r;r=O[(S+1)*2+1];++b>>=1)if(O&1&&v.Fd[Y*2]!==0)return 0;if(v.Fd[18]!==0||v.Fd[20]!==0||v.Fd[26]!==0)return 1;for(Y=32;Y<256;Y++)if(v.Fd[Y*2]!==0)return 1;return 0}; rz=function(v,O,Y){v.Vi[v.NP+v.Ky*2]=O>>>8&255;v.Vi[v.NP+v.Ky*2+1]=O&255;v.Vi[v.lU+v.Ky]=Y&255;v.Ky++;O===0?v.Fd[Y*2]++:(v.matches++,O--,v.Fd[(HI[Y]+256+1)*2]++,v.We[(O<256?Oy[O]:Oy[256+(O>>>7)])*2]++);return v.Ky===v.IB-1}; o$=function(v,O){v.msg=bu[O];return O}; jr=function(v){for(var O=v.length;--O>=0;)v[O]=0}; Wk=function(v){var O=v.state,Y=O.pending;Y>v.bO&&(Y=v.bO);Y!==0&&(JS.Go(v.output,O.Vi,O.xz,Y,v.zW),v.zW+=Y,O.xz+=Y,v.zC+=Y,v.bO-=Y,O.pending-=Y,O.pending===0&&(O.xz=0))}; gz=function(v,O){var Y=v.v7>=0?v.v7:-1,S=v.J$-v.v7,d=0;if(v.level>0){v.aF.Ls===2&&(v.aF.Ls=sSE(v));dz(v,v.CJ);dz(v,v.us);WRl(v,v.Fd,v.CJ.TW);WRl(v,v.We,v.us.TW);dz(v,v.Nr);for(d=18;d>=3&&v.y$[gHn[d]*2+1]===0;d--);v.Aq+=3*(d+1)+5+5+4;var r=v.Aq+3+7>>>3;var b=v.BO+3+7>>>3;b<=r&&(r=b)}else r=b=S+5;if(S+4<=r&&Y!==-1)mp(v,O?1:0,3),bBl(v,Y,S);else if(v.strategy===4||b===r)mp(v,2+(O?1:0),3),jSm(v,zq,sy);else{mp(v,4+(O?1:0),3);Y=v.CJ.TW+1;S=v.us.TW+1;d+=1;mp(v,Y-257,5);mp(v,S-1,5);mp(v,d-4,4);for(r=0;r>>8&255;v.Vi[v.pending++]=O&255}; Mmi=function(v,O){var Y=v.wm,S=v.J$,d=v.zY,r=v.tH,b=v.J$>v.Jz-262?v.J$-(v.Jz-262):0,z=v.window,M=v.vK,V=v.yu,A=v.J$+258,f=z[S+d-1],k=z[S+d];v.zY>=v.Ga&&(Y>>=2);r>v.I1&&(r=v.I1);do{var U=O;if(z[U+d]===k&&z[U+d-1]===f&&z[U]===z[S]&&z[++U]===z[S+1]){S+=2;for(U++;z[++S]===z[++U]&&z[++S]===z[++U]&&z[++S]===z[++U]&&z[++S]===z[++U]&&z[++S]===z[++U]&&z[++S]===z[++U]&&z[++S]===z[++U]&&z[++S]===z[++U]&&Sd){v.Ku=O;d=U;if(U>=r)break;f=z[S+d-1];k=z[S+d]}}}while((O=V[O&M])>b&&--Y!== 0);return d<=v.I1?d:v.I1}; $0=function(v){var O=v.Jz,Y;do{var S=v.sD-v.I1-v.J$;if(v.J$>=O+(O-262)){JS.Go(v.window,v.window,O,O,0);v.Ku-=O;v.J$-=O;v.v7-=O;var d=Y=v.PL;do{var r=v.head[--d];v.head[d]=r>=O?r-O:0}while(--Y);d=Y=O;do r=v.yu[--d],v.yu[d]=r>=O?r-O:0;while(--Y);S+=O}if(v.aF.kf===0)break;d=v.aF;Y=v.window;r=v.J$+v.I1;var b=d.kf;b>S&&(b=S);b===0?Y=0:(d.kf-=b,JS.Go(Y,d.input,d.xM,b,r),d.state.wrap===1?d.Zk=A5(d.Zk,Y,b,r):d.state.wrap===2&&(d.Zk=fY(d.Zk,Y,b,r)),d.xM+=b,d.S$+=b,Y=b);v.I1+=Y;if(v.I1+v.xW>=3)for(S=v.J$-v.xW, v.yw=v.window[S],v.yw=(v.yw<=3&&(v.yw=(v.yw<=3)if(Y=rz(v,v.J$-v.Ku,v.d4-3),v.I1-=v.d4,v.d4<=v.P$&&v.I1>=3){v.d4--;do v.J$++,v.yw=(v.yw<=3&&(v.yw=(v.yw<4096)&&(v.d4=2));if(v.zY>=3&&v.d4<=v.zY){S=v.J$+v.I1-3;Y=rz(v,v.J$-1-v.VZ,v.zY-3);v.I1-=v.zY-1;v.zY-=2;do++v.J$<=S&&(v.yw=(v.yw<=3&&v.J$>0&&(S=v.J$-1,Y=r[S],Y===r[++S]&&Y===r[++S]&&Y===r[++S])){for(d=v.J$+258;Y===r[++S]&&Y===r[++S]&&Y===r[++S]&&Y===r[++S]&&Y===r[++S]&&Y===r[++S]&&Y===r[++S]&&Y===r[++S]&&Sv.I1&&(v.d4=v.I1)}v.d4>=3?(Y=rz(v,1,v.d4-3),v.I1-=v.d4,v.J$+=v.d4,v.d4=0):(Y=rz(v,0,v.window[v.J$]),v.I1--,v.J$++);if(Y&&(gz(v,!1),v.aF.bO===0))return 1}v.xW=0;return O=== 4?(gz(v,!0),v.aF.bO===0?3:4):v.Ky&&(gz(v,!1),v.aF.bO===0)?1:2}; AUQ=function(v,O){for(var Y;;){if(v.I1===0&&($0(v),v.I1===0)){if(O===0)return 1;break}v.d4=0;Y=rz(v,0,v.window[v.J$]);v.I1--;v.J$++;if(Y&&(gz(v,!1),v.aF.bO===0))return 1}v.xW=0;return O===4?(gz(v,!0),v.aF.bO===0?3:4):v.Ky&&(gz(v,!1),v.aF.bO===0)?1:2}; ck=function(v,O,Y,S,d){this.Pn=v;this.ggu=O;this.Rxx=Y;this.hxg=S;this.func=d}; fqE=function(){this.aF=null;this.status=0;this.Vi=null;this.wrap=this.pending=this.xz=this.yF=0;this.dK=null;this.Y$=0;this.method=8;this.lm=-1;this.vK=this.Vm=this.Jz=0;this.window=null;this.sD=0;this.head=this.yu=null;this.tH=this.Ga=this.strategy=this.level=this.P$=this.wm=this.zY=this.I1=this.Ku=this.J$=this.Wy=this.VZ=this.d4=this.v7=this.Yj=this.nM=this.G6=this.PL=this.yw=0;this.Fd=new JS.gi(1146);this.We=new JS.gi(122);this.y$=new JS.gi(78);jr(this.Fd);jr(this.We);jr(this.y$);this.Nr=this.us= this.CJ=null;this.lQ=new JS.gi(16);this.X4=new JS.gi(573);jr(this.X4);this.Mb=this.bf=0;this.depth=new JS.gi(573);jr(this.depth);this.XN=this.LW=this.xW=this.matches=this.BO=this.Aq=this.NP=this.Ky=this.IB=this.lU=0}; $f3=function(v,O){if(!v||!v.state||O>5||O<0)return v?o$(v,-2):-2;var Y=v.state;if(!v.output||!v.input&&v.kf!==0||Y.status===666&&O!==4)return o$(v,v.bO===0?-5:-2);Y.aF=v;var S=Y.lm;Y.lm=O;if(Y.status===42)if(Y.wrap===2)v.Zk=0,M7(Y,31),M7(Y,139),M7(Y,8),Y.dK?(M7(Y,(Y.dK.text?1:0)+(Y.dK.GR?2:0)+(Y.dK.extra?4:0)+(Y.dK.name?8:0)+(Y.dK.comment?16:0)),M7(Y,Y.dK.time&255),M7(Y,Y.dK.time>>8&255),M7(Y,Y.dK.time>>16&255),M7(Y,Y.dK.time>>24&255),M7(Y,Y.level===9?2:Y.strategy>=2||Y.level<2?4:0),M7(Y,Y.dK.os& 255),Y.dK.extra&&Y.dK.extra.length&&(M7(Y,Y.dK.extra.length&255),M7(Y,Y.dK.extra.length>>8&255)),Y.dK.GR&&(v.Zk=fY(v.Zk,Y.Vi,Y.pending,0)),Y.Y$=0,Y.status=69):(M7(Y,0),M7(Y,0),M7(Y,0),M7(Y,0),M7(Y,0),M7(Y,Y.level===9?2:Y.strategy>=2||Y.level<2?4:0),M7(Y,3),Y.status=113);else{var d=8+(Y.Vm-8<<4)<<8;d|=(Y.strategy>=2||Y.level<2?0:Y.level<6?1:Y.level===6?2:3)<<6;Y.J$!==0&&(d|=32);Y.status=113;VG(Y,d+(31-d%31));Y.J$!==0&&(VG(Y,v.Zk>>>16),VG(Y,v.Zk&65535));v.Zk=1}if(Y.status===69)if(Y.dK.extra){for(d= Y.pending;Y.Y$<(Y.dK.extra.length&65535)&&(Y.pending!==Y.yF||(Y.dK.GR&&Y.pending>d&&(v.Zk=fY(v.Zk,Y.Vi,Y.pending-d,d)),Wk(v),d=Y.pending,Y.pending!==Y.yF));)M7(Y,Y.dK.extra[Y.Y$]&255),Y.Y$++;Y.dK.GR&&Y.pending>d&&(v.Zk=fY(v.Zk,Y.Vi,Y.pending-d,d));Y.Y$===Y.dK.extra.length&&(Y.Y$=0,Y.status=73)}else Y.status=73;if(Y.status===73)if(Y.dK.name){d=Y.pending;do{if(Y.pending===Y.yF&&(Y.dK.GR&&Y.pending>d&&(v.Zk=fY(v.Zk,Y.Vi,Y.pending-d,d)),Wk(v),d=Y.pending,Y.pending===Y.yF)){var r=1;break}r=Y.Y$d&&(v.Zk=fY(v.Zk,Y.Vi,Y.pending-d,d));r===0&&(Y.Y$=0,Y.status=91)}else Y.status=91;if(Y.status===91)if(Y.dK.comment){d=Y.pending;do{if(Y.pending===Y.yF&&(Y.dK.GR&&Y.pending>d&&(v.Zk=fY(v.Zk,Y.Vi,Y.pending-d,d)),Wk(v),d=Y.pending,Y.pending===Y.yF)){r=1;break}r=Y.Y$d&&(v.Zk=fY(v.Zk,Y.Vi,Y.pending-d,d));r===0&&(Y.status=103)}else Y.status= 103;Y.status===103&&(Y.dK.GR?(Y.pending+2>Y.yF&&Wk(v),Y.pending+2<=Y.yF&&(M7(Y,v.Zk&255),M7(Y,v.Zk>>8&255),v.Zk=0,Y.status=113)):Y.status=113);if(Y.pending!==0){if(Wk(v),v.bO===0)return Y.lm=-1,0}else if(v.kf===0&&(O<<1)-(O>4?9:0)<=(S<<1)-(S>4?9:0)&&O!==4)return o$(v,-5);if(Y.status===666&&v.kf!==0)return o$(v,-5);if(v.kf!==0||Y.I1!==0||O!==0&&Y.status!==666){S=Y.strategy===2?AUQ(Y,O):Y.strategy===3?Vmn(Y,O):uu[Y.level].func(Y,O);if(S===3||S===4)Y.status=666;if(S===1||S===3)return v.bO===0&&(Y.lm= -1),0;if(S===2&&(O===1?(mp(Y,2,3),tS(Y,256,zq),Y.XN===16?(iE(Y,Y.LW),Y.LW=0,Y.XN=0):Y.XN>=8&&(Y.Vi[Y.pending++]=Y.LW&255,Y.LW>>=8,Y.XN-=8)):O!==5&&(mp(Y,0,3),bBl(Y,0,0),O===3&&(jr(Y.head),Y.I1===0&&(Y.J$=0,Y.v7=0,Y.xW=0))),Wk(v),v.bO===0))return Y.lm=-1,0}if(O!==4)return 0;if(Y.wrap<=0)return 1;Y.wrap===2?(M7(Y,v.Zk&255),M7(Y,v.Zk>>8&255),M7(Y,v.Zk>>16&255),M7(Y,v.Zk>>24&255),M7(Y,v.S$&255),M7(Y,v.S$>>8&255),M7(Y,v.S$>>16&255),M7(Y,v.S$>>24&255)):(VG(Y,v.Zk>>>16),VG(Y,v.Zk&65535));Wk(v);Y.wrap>0&& (Y.wrap=-Y.wrap);return Y.pending!==0?0:1}; CY=function(v){if(!(this instanceof CY))return new CY(v);v=this.options=JS.assign({level:-1,method:8,chunkSize:16384,kH:15,AK8:8,strategy:0,to:""},v||{});v.raw&&v.kH>0?v.kH=-v.kH:v.yn&&v.kH>0&&v.kH<16&&(v.kH+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.aF=new k_3;this.aF.bO=0;var O=this.aF;var Y=v.level,S=v.method,d=v.kH,r=v.AK8,b=v.strategy;if(O){var z=1;Y===-1&&(Y=6);d<0?(z=0,d=-d):d>15&&(z=2,d-=16);if(r<1||r>9||S!==8||d<8||d>15||Y<0||Y>9||b<0||b>4)O=o$(O,-2);else{d===8&&(d=9); var M=new fqE;O.state=M;M.aF=O;M.wrap=z;M.dK=null;M.Vm=d;M.Jz=1<>=7;r<30;r++)for(Sr[r]=b<<7,d=0;d<1<=V.Jz&&(O===0&&(jr(V.head),V.J$=0,V.v7=0,V.xW=0),Y=new JS.iK(V.Jz),JS.Go(Y,r,b-V.Jz,V.Jz,0),r=Y,b=V.Jz);Y=v.kf;S=v.xM;d=v.input;v.kf=b;v.xM=0;v.input=r;for($0(V);V.I1>=3;){r=V.J$;b=V.I1-2;do V.yw=(V.yw<5&&((0,Y[62])(Y[89],Y[16]),1)||(0,Y[62])(Y[73],Y[-1454+new Date(W[85])/1E3*8])),Y[40]>=3&&(Y[49]>=new Date(W[38])/1E3||((0,Y[24])(Y[62],(0,Y[62])(Y[9],Y[new Date(W[75])/1E3]),(0,Y[34])((0,Y[13])(Y[247-new Date(W[56])/1E3],Y[89]),Y[62],Y[48],Y[84]),(0,Y[28])(Y[9]),((((((0,Y[13])(Y[50],Y[75]),Y[95])(Y[66],Y[89],(0,Y[32])()),Y[95])(Y[66],Y[8],(0,Y[32])()),Y[95])(Y[68],Y[8],(0,Y[1])()),Y[70])(Y[19], Y[75]),Y[70])(Y[60],Y[75]),Y[8],Y[67]),0))&&((0,Y[25])((0,Y[72])(((0,Y[70])(Y[92],Y[75]),Y[41])(Y[29],Y[48]),Y[41],(0,Y[12])((((0,Y[41])(Y[54],Y[8]),Y[34])((0,Y[41])(Y[23],Y[0]),Y[41],Y[27],Y[75]),Y[new Date(W[7])/1E3])(Y[73],Y[9]),Y[55],Y[63],Y[9]),Y[0],Y[60]),Y[19],(0,Y[26])(Y[2],Y[58]),Y[13],Y[58]),Y[9])(Y[28],Y[39]),Y[29]>=10&&(Y[31]===2||((0,Y[40])((0,Y[2])((0,Y[65])(Y[42],(0,Y[77])(Y[64]),(0,Y[56])(Y[8],Y[10])===(0,Y[56])(Y[45],Y[34]),(0,Y[21])(Y[75]),Y[32],Y[59]),Y[97],Y[30],Y[10]),Y[56],(0,Y[48])(Y[10], Y[37])-(0,Y[81])(Y[72],Y[92],(0,Y[18])()),Y[63],Y[0]),0))&&(0,Y[86])((0,Y[20])((0,Y[14])(Y[59]),Y[0],Y[92],Y[23]),Y[96],(0,Y[33])(Y[81],(0,Y[27])(Y[67],Y[10]),(0,Y[27])(Y[25],Y[61]),(0,Y[97])(Y[98],Y[92]),Y[72],Y[75],(0,Y[18])()),(0,Y[0])(Y[10],Y[71]),(0,Y[81])(Y[52],Y[92],(0,Y[7])()),Y[97],Y[47],Y[48]),Y[31]>=-8?(0,Y[20])((0,Y[96])(((0,Y[14])(Y[48]),Y[77])(Y[23]),Y[59],Y[23],Y[36]),Y[42],Y[55],Y[37]):((0,Y[40])((0,Y[71])(Y[67],Y[37]),Y[17],(0,Y[17])(Y[26],Y[6],(0,Y[80])()),Y[46],Y[23],(0,Y[80])()), Y[98])(Y[6],Y[11]),Y[52]==5&&((0,Y[1])(Y[15],Y[50]),W[83])||(0,Y[42])(Y[19],Y[88])}catch(S){(0,Y[65])(Y[98],(0,Y[98])(Y[39],Y[47]),(0,Y[17])(Y[46],Y[88],(0,Y[91])()),((0,Y[98])(Y[50],Y[60]),Y[1])(Y[92],Y[50]),Y[6],Y[86])}finally{Y[62]>-2&&(Y[30]<1&&((0,Y[98])(Y[6],Y[29]),W[74])||(0,Y[42])(Y[25],Y[39])),Y[72]!==8&&(Y[38]===-8||((0,Y[40])((0,Y[59])(Y[50],Y[81]),Y[19],(0,Y[19])(Y[91]),Y[68]),0))&&(0,Y[55])((0,Y[78])((0,Y[40])(Y[13],Y[68],(0,Y[44])()),Y[58],Y[7],Y[9]),Y[40],Y[11],Y[51],(0,Y[44])())}try{Y[71]!= -5?(0,Y[97])(Y[7],Y[36]):(0,Y[49])(Y[76]),(Y[69]>-6||(((0,Y[28])(Y[4],Y[20]),Y[18])(Y[45],Y[76]),W[5]))&&((0,Y[49])(Y[-563- -213*Math[W[15]](3,new Date(W[51])/1E3)]),Y[28])(Y[21],Y[50])}catch(S){(0,Y[84])(Y[3],Y[89]),(0,Y[28])(Y[4],Y[94])}finally{Y[44]!==6?(((0,Y[10])(Y[80],Y[4],(0,Y[46])()),Y[26])(Y[63],Y[21]),Y[28])(Y[21],Y[9]):(0,Y[25])(((0,Y[67])(Y[87],Y[5]),Y[55])(Y[69],Y[89]),Y[55],Y[29],Y[87]),Y[20]>=1&&(Y[19]>0?(0,Y[28])(Y[4],Y[96]):(0,Y[28])(Y[4],Y[57])),Y[30]>=-8&&(Y[81]<4||((0,Y[25])((0,Y[26])(Y[77], Y[38]),Y[55],Y[56],Y[38]),0))&&((0,Y[67])(Y[21],Y[19]),(0,Y[28])(Y[21],Y[93]))}}catch(S){return W[66]+v}return O[W[11]](W[5])}; g.Tq=function(v){this.name=v}; XlE=function(v){this.Un=kZ(v)}; lu=function(v){this.Un=kZ(v)}; Fb=function(v){this.Un=kZ(v)}; wlg=function(v){this.Un=kZ(v)}; h5=function(v){this.Un=kZ(v)}; R$=function(v){this.Un=kZ(v)}; er=function(v){this.Un=kZ(v)}; Ey=function(v){this.Un=kZ(v)}; QG=function(v){this.Un=kZ(v)}; LY=function(v){this.Un=kZ(v)}; Bk=function(v){this.Un=kZ(v)}; Zr=function(v){this.Un=kZ(v)}; Xb=function(v){this.Un=kZ(v)}; wz=function(v){this.Un=kZ(v)}; I$=function(v){this.Un=kZ(v)}; q7=function(v){this.Un=kZ(v,500)}; nY=function(v){this.Un=kZ(v)}; J5=function(v){this.Un=kZ(v)}; Iqd=function(v){this.Un=kZ(v)}; qCF=function(){return g.il("yt.ads.biscotti.lastId_")||""}; nHl=function(v){g.Gc("yt.ads.biscotti.lastId_",v)}; Pk=function(){var v=arguments,O=KY;v.length>1?O[v[0]]=v[1]:v.length===1&&Object.assign(O,v[0])}; g.Gq=function(v,O){return v in KY?KY[v]:O}; t5=function(v){var O=KY.EXPERIMENT_FLAGS;return O?O[v]:void 0}; JUg=function(v){Dr.forEach(function(O){return O(v)})}; g.N7=function(v){return v&&window.yterr?function(){try{return v.apply(this,arguments)}catch(O){g.Hk(O)}}:v}; g.Hk=function(v){var O=g.il("yt.logging.errors.log");O?O(v,"ERROR",void 0,void 0,void 0,void 0,void 0):(O=g.Gq("ERRORS",[]),O.push([v,"ERROR",void 0,void 0,void 0,void 0,void 0]),Pk("ERRORS",O));JUg(v)}; vf=function(v,O,Y,S,d){var r=g.il("yt.logging.errors.log");r?r(v,"WARNING",O,Y,S,void 0,d):(r=g.Gq("ERRORS",[]),r.push([v,"WARNING",O,Y,S,void 0,d]),Pk("ERRORS",r))}; Oq=function(v,O){O=v.split(O);for(var Y={},S=0,d=O.length;S1?v[1]:v[0])):{}}; bF=function(v,O){return iB7(v,O||{},!0)}; oZ=function(v,O){return iB7(v,O||{},!1)}; iB7=function(v,O,Y){var S=v.split("#",2);v=S[0];S=S.length>1?"#"+S[1]:"";var d=v.split("?",2);v=d[0];d=Se(d[1]||"");for(var r in O)if(Y||!g.Gw(d,r))d[r]=O[r];return g.Te(v,d)+S}; je=function(v){if(!O)var O=window.location.href;var Y=g.Uz(v)[1]||null,S=g.c4(v);Y&&S?(v=g.Uz(v),O=g.Uz(O),v=v[3]==O[3]&&v[1]==O[1]&&v[4]==O[4]):v=S?g.c4(O)===S&&(Number(g.Uz(O)[4]||null)||null)===(Number(g.Uz(v)[4]||null)||null):!0;return v}; Wf=function(v){v||(v=document.location.href);v=g.Uz(v)[1]||null;return v!==null&&v==="https"}; zn=function(v){v=mf7(v);return v===null?!1:v[0]==="com"&&v[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; tmg=function(v){v=mf7(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}; mf7=function(v){v=g.c4(v);return v!==null?v.split(".").reverse():null}; KRi=function(v){return v&&v.match(Df7)?v:Mn(v)}; MS=function(v){var O=sq;v=v===void 0?qCF():v;var Y=Object,S=Y.assign,d=gG(O);var r=O.Y;try{var b=r.screenX;var z=r.screenY}catch(T){}try{var M=r.outerWidth;var V=r.outerHeight}catch(T){}try{var A=r.innerWidth;var f=r.innerHeight}catch(T){}try{var k=r.screenLeft;var U=r.screenTop}catch(T){}try{A=r.innerWidth,f=r.innerHeight}catch(T){}try{var c=r.screen.availWidth;var a=r.screen.availTop}catch(T){}r=[k,U,b,z,c,a,M,V,A,f];b=rlQ(!1,O.Y.top);z={};var x=x===void 0?g.Pm:x;M=new n7;"SVGElement"in x&&"createElementNS"in x.document&&M.set(0);V=SIm();V["allow-top-navigation-by-user-activation"]&&M.set(1);V["allow-popups-to-escape-sandbox"]&&M.set(2);x.crypto&&x.crypto.subtle&&M.set(3);"TextDecoder"in x&&"TextEncoder"in x&&M.set(4);x=a4d(M);O=(z.bc=x,z.bih=b.height,z.biw=b.width,z.brdim=r.join(),z.vis=If(O.U),z.wgl=!!WL.WebGLRenderingContext,z);Y=S.call(Y,d,O);Y.ca_type="image";v&&(Y.bid=v);return Y}; gG=function(v){var O={};O.dt=HBE;O.flash="0";a:{try{var Y=v.Y.top.location.href}catch(A){v=2;break a}v=Y?Y===v.U.location.href?0:1:2}O=(O.frm=v,O);try{O.u_tz=-(new Date).getTimezoneOffset();var S=S===void 0?WL:S;try{var d=S.history.length}catch(A){d=0}O.u_his=d;var r;O.u_h=(r=WL.screen)==null?void 0:r.height;var b;O.u_w=(b=WL.screen)==null?void 0:b.width;var z;O.u_ah=(z=WL.screen)==null?void 0:z.availHeight;var M;O.u_aw=(M=WL.screen)==null?void 0:M.availWidth;var V;O.u_cd=(V=WL.screen)==null?void 0: V.colorDepth}catch(A){}return O}; vti=function(){if(!NAQ)return null;var v=NAQ();return"open"in v?v:null}; g.Ay=function(v){switch(VY(v)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; VY=function(v){return v&&"status"in v?v.status:-1}; g.fS=function(v,O){typeof v==="function"&&(v=g.N7(v));return window.setTimeout(v,O)}; g.$c=function(v,O){typeof v==="function"&&(v=g.N7(v));return window.setInterval(v,O)}; g.kc=function(v){window.clearTimeout(v)}; g.Uq=function(v){window.clearInterval(v)}; g.uF=function(v){v=cf(v);return typeof v==="string"&&v==="false"?!1:!!v}; g.CS=function(v,O){v=cf(v);return v===void 0&&O!==void 0?O:Number(v||0)}; yY=function(){return g.Gq("EXPERIMENTS_TOKEN","")}; cf=function(v){return g.Gq("EXPERIMENT_FLAGS",{})[v]}; aZ=function(){for(var v=[],O=g.Gq("EXPERIMENTS_FORCED_FLAGS",{}),Y=g.y(Object.keys(O)),S=Y.next();!S.done;S=Y.next())S=S.value,v.push({key:S,value:String(O[S])});Y=g.Gq("EXPERIMENT_FLAGS",{});S=g.y(Object.keys(Y));for(var d=S.next();!d.done;d=S.next())d=d.value,d.startsWith("force_")&&O[d]===void 0&&v.push({key:d,value:String(Y[d])});return v}; xc=function(v,O,Y,S,d,r,b,z){function M(){(V&&"readyState"in V?V.readyState:0)===4&&O&&g.N7(O)(V)} Y=Y===void 0?"GET":Y;S=S===void 0?"":S;z=z===void 0?!1:z;var V=vti();if(!V)return null;"onloadend"in V?V.addEventListener("loadend",M,!1):V.onreadystatechange=M;g.uF("debug_forward_web_query_parameters")&&(v=O7J(v));V.open(Y,v,!0);r&&(V.responseType=r);b&&(V.withCredentials=!0);Y=Y==="POST"&&(window.FormData===void 0||!(S instanceof FormData));if(d=YSc(v,d))for(var A in d)V.setRequestHeader(A,d[A]),"content-type"===A.toLowerCase()&&(Y=!1);Y&&V.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(z&&"setAttributionReporting"in XMLHttpRequest.prototype){v={eventSourceEligible:!0,triggerEligible:!1};try{V.setAttributionReporting(v)}catch(f){vf(f)}}V.send(S);return V}; YSc=function(v,O){O=O===void 0?{}:O;var Y=je(v),S=g.Gq("INNERTUBE_CLIENT_NAME"),d=g.uF("web_ajax_ignore_global_headers_if_set"),r;for(r in SSw){var b=g.Gq(SSw[r]),z=r==="X-Goog-AuthUser"||r==="X-Goog-PageId";r!=="X-Goog-Visitor-Id"||b||(b=g.Gq("VISITOR_DATA"));var M;if(!(M=!b)){if(!(M=Y||(g.c4(v)?!1:!0))){M=v;var V;if(V=g.uF("add_auth_headers_to_remarketing_google_dot_com_ping")&&r==="Authorization"&&(S==="TVHTML5"||S==="TVHTML5_UNPLUGGED"||S==="TVHTML5_SIMPLY")&&tmg(M))M=uT(M)||"",M=M.split("/"), M="/"+(M.length>1?M[1]:""),V=M==="/pagead";M=V?!0:!1}M=!M}M||d&&O[r]!==void 0||S==="TVHTML5_UNPLUGGED"&&z||(O[r]=b)}"X-Goog-EOM-Visitor-Id"in O&&"X-Goog-Visitor-Id"in O&&delete O["X-Goog-Visitor-Id"];if(Y||!g.c4(v))O["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(Y||!g.c4(v)){try{var A=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(f){}A&&(O["X-YouTube-Time-Zone"]=A)}document.location.hostname.endsWith("youtubeeducation.com")||!Y&&g.c4(v)||(O["X-YouTube-Ad-Signals"]= Yc(MS()));return O}; Tn=function(v,O){O.method="POST";O.postParams||(O.postParams={});return g.pS(v,O)}; b7$=function(v,O){if(window.fetch&&O.format!=="XML"){var Y={method:O.method||"GET",credentials:"same-origin"};O.headers&&(Y.headers=O.headers);O.priority&&(Y.priority=O.priority);v=dAw(v,O);var S=rBF(v,O);S&&(Y.body=S);O.withCredentials&&(Y.credentials="include");var d=O.context||g.Pm,r=!1,b;fetch(v,Y).then(function(z){if(!r){r=!0;b&&g.kc(b);var M=z.ok,V=function(A){A=A||{};M?O.onSuccess&&O.onSuccess.call(d,A,z):O.onError&&O.onError.call(d,A,z);O.onFinish&&O.onFinish.call(d,A,z)}; (O.format||"JSON")==="JSON"&&(M||z.status>=400&&z.status<500)?z.json().then(V,function(){V(null)}):V(null)}}).catch(function(){O.onError&&O.onError.call(d,{},{})}); v=O.timeout||0;O.onFetchTimeout&&v>0&&(b=g.fS(function(){r||(r=!0,g.kc(b),O.onFetchTimeout.call(O.context||g.Pm))},v))}else g.pS(v,O)}; g.pS=function(v,O){var Y=O.format||"JSON";v=dAw(v,O);var S=rBF(v,O),d=!1,r=otn(v,function(M){if(!d){d=!0;z&&g.kc(z);var V=g.Ay(M),A=null,f=400<=M.status&&M.status<500,k=500<=M.status&&M.status<600;if(V||f||k)A=j6l(v,Y,M,O.convertToSafeHtml);V&&(V=WXw(Y,M,A));A=A||{};f=O.context||g.Pm;V?O.onSuccess&&O.onSuccess.call(f,M,A):O.onError&&O.onError.call(f,M,A);O.onFinish&&O.onFinish.call(f,M,A)}},O.method,S,O.headers,O.responseType,O.withCredentials); S=O.timeout||0;if(O.onTimeout&&S>0){var b=O.onTimeout;var z=g.fS(function(){d||(d=!0,r.abort(),g.kc(z),b.call(O.context||g.Pm,r))},S)}return r}; dAw=function(v,O){O.includeDomain&&(v=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+v);var Y=g.Gq("XSRF_FIELD_NAME");if(O=O.urlParams)O[Y]&&delete O[Y],v=bF(v,O);return v}; rBF=function(v,O){var Y=g.Gq("XSRF_FIELD_NAME"),S=g.Gq("XSRF_TOKEN"),d=O.postBody||"",r=O.postParams,b=g.Gq("XSRF_FIELD_NAME"),z;O.headers&&(z=O.headers["Content-Type"]);O.excludeXsrf||g.c4(v)&&!O.withCredentials&&g.c4(v)!==document.location.hostname||O.method!=="POST"||z&&z!=="application/x-www-form-urlencoded"||O.postParams&&O.postParams[b]||(r||(r={}),r[Y]=S);(g.uF("ajax_parse_query_data_only_when_filled")&&r&&Object.keys(r).length>0||r)&&typeof d==="string"&&(d=Se(d),g.OI(d,r),d=O.postBodyFormat&& O.postBodyFormat==="JSON"?JSON.stringify(d):g.pV(d));r=d||r&&!g.tY(r);!zXw&&r&&O.method!=="POST"&&(zXw=!0,g.Hk(Error("AJAX request with postData should use POST")));return d}; j6l=function(v,O,Y,S){var d=null;switch(O){case "JSON":try{var r=Y.responseText}catch(b){throw S=Error("Error reading responseText"),S.params=v,vf(S),b;}v=Y.getResponseHeader("Content-Type")||"";r&&v.indexOf("json")>=0&&(r.substring(0,5)===")]}'\n"&&(r=r.substring(5)),d=JSON.parse(r));break;case "XML":if(v=(v=Y.responseXML)?s6Q(v):null)d={},g.LC(v.getElementsByTagName("*"),function(b){d[b.tagName]=gtd(b)})}S&&Msi(d); return d}; Msi=function(v){if(g.N$(v))for(var O in v)O==="html_content"||IJ1(O,"_html")?v[O]=Dc(v[O]):Msi(v[O])}; WXw=function(v,O,Y){if(O&&O.status===204)return!0;switch(v){case "JSON":return!!Y;case "XML":return Number(Y&&Y.return_code)===0;case "RAW":return!0;default:return!!Y}}; s6Q=function(v){return v?(v=("responseXML"in v?v.responseXML:v).getElementsByTagName("root"))&&v.length>0?v[0]:null:null}; gtd=function(v){var O="";g.LC(v.childNodes,function(Y){O+=Y.nodeValue}); return O}; O7J=function(v){var O=window.location.search,Y=g.c4(v);g.uF("debug_handle_relative_url_for_query_forward_killswitch")||!Y&&je(v)&&(Y=document.location.hostname);var S=uT(v);S=(Y=Y&&(Y.endsWith("youtube.com")||Y.endsWith("youtube-nocookie.com")))&&S&&S.startsWith("/api/");if(!Y||S)return v;var d=Se(O),r={};g.LC(Vsi,function(b){d[b]&&(r[b]=d[b])}); return oZ(v,r)}; FB=function(v,O){var Y=g.NN(O),S;return(new g.x_(function(d,r){Y.onSuccess=function(b){g.Ay(b)?d(new ABc(b)):r(new lF("Request failed, status="+VY(b),"net.badstatus",b))}; Y.onError=function(b){r(new lF("Unknown request error","net.unknown",b))}; Y.onTimeout=function(b){r(new lF("Request timed out","net.timeout",b))}; S=g.pS(v,Y)})).bv(function(d){if(d instanceof LZ){var r; (r=S)==null||r.abort()}return ld(d)})}; g.hy=function(v,O,Y,S){function d(z,M,V){return z.bv(function(A){if(M<=0||VY(A.xhr)===403)return ld(new lF("Request retried too many times","net.retryexhausted",A.xhr,A));A=Math.pow(2,Y-M+1)*V;var f=b>0?Math.min(b,A):A;return r(V).then(function(){return d(FB(v,O),M-1,f)})})} function r(z){return new g.x_(function(M){setTimeout(M,z)})} var b=b===void 0?-1:b;return d(FB(v,O),Y-1,S)}; lF=function(v,O,Y){W0.call(this,v+", errorCode="+O);this.errorCode=O;this.xhr=Y;this.name="PromiseAjaxError"}; ABc=function(v){this.xhr=v}; RZ=function(v){this.Y=v===void 0?null:v;this.U=0;this.G=null}; ee=function(v){var O=new RZ;v=v===void 0?null:v;O.U=2;O.G=v===void 0?null:v;return O}; Eq=function(v){var O=new RZ;v=v===void 0?null:v;O.U=1;O.G=v===void 0?null:v;return O}; g.Bf=function(v,O,Y,S,d){QY||LS.set(""+v,O,{ON:Y,path:"/",domain:S===void 0?"youtube.com":S,secure:d===void 0?!1:d})}; g.Zb=function(v,O){if(!QY)return LS.get(""+v,O)}; g.XB=function(v,O,Y){QY||LS.remove(""+v,O===void 0?"/":O,Y===void 0?"youtube.com":Y)}; fOQ=function(){if(g.uF("embeds_web_enable_cookie_detection_fix")){if(!g.Pm.navigator.cookieEnabled)return!1}else if(!LS.isEnabled())return!1;if(!LS.isEmpty())return!0;g.uF("embeds_web_enable_cookie_detection_fix")?LS.set("TESTCOOKIESENABLED","1",{ON:60,sDK:"none",secure:!0}):LS.set("TESTCOOKIESENABLED","1",{ON:60});if(LS.get("TESTCOOKIESENABLED")!=="1")return!1;LS.remove("TESTCOOKIESENABLED");return!0}; g.q=function(v,O){if(v)return v[O.name]}; wG=function(v){var O=g.Gq("INNERTUBE_HOST_OVERRIDE");O&&(v=String(O)+String(CV(v)));return v}; $An=function(v){var O={};g.uF("json_condensed_response")&&(O.prettyPrint="false");return v=oZ(v,O)}; IZ=function(v,O){var Y=Y===void 0?{}:Y;v={method:O===void 0?"POST":O,mode:je(v)?"same-origin":"cors",credentials:je(v)?"same-origin":"include"};O={};for(var S=g.y(Object.keys(Y)),d=S.next();!d.done;d=S.next())d=d.value,Y[d]&&(O[d]=Y[d]);Object.keys(O).length>0&&(v.headers=O);return v}; qS=function(){var v=/Chrome\/(\d+)/.exec(g.yh());return v?parseFloat(v[1]):NaN}; nS=function(){var v=/\sCobalt\/(\S+)\s/.exec(g.yh());if(!v)return NaN;var O=[];v=g.y(v[1].split("."));for(var Y=v.next();!Y.done;Y=v.next())Y=parseInt(Y.value,10),Y>=0&&O.push(Y);return parseFloat(O.join("."))}; KS=function(){return g.Jy("android")&&g.Jy("chrome")&&!(g.Jy("trident/")||g.Jy("edge/"))&&!g.Jy("cobalt")}; kVw=function(){return g.Jy("armv7")||g.Jy("aarch64")||g.Jy("android")}; g.Pf=function(){return g.Jy("cobalt")}; Gn=function(){return g.Jy("cobalt")&&g.Jy("appletv")}; iF=function(){return g.Jy("(ps3; leanback shell)")||g.Jy("ps3")&&g.Pf()}; UAw=function(){return g.Jy("(ps4; leanback shell)")||g.Jy("ps4")&&g.Pf()}; g.cB$=function(){return g.Pf()&&(g.Jy("ps4 vr")||g.Jy("ps4 pro vr"))}; mn=function(){var v=/WebKit\/([0-9]+)/.exec(g.yh());return!!(v&&parseInt(v[1],10)>=600)}; ty=function(){var v=/WebKit\/([0-9]+)/.exec(g.yh());return!!(v&&parseInt(v[1],10)>=602)}; uHg=function(){return g.Jy("iemobile")||g.Jy("windows phone")&&g.Jy("edge")}; NS=function(){return(Db||Hf)&&g.Jy("applewebkit")&&!g.Jy("version")&&(!g.Jy("safari")||g.Jy("gsa/"))}; O9=function(){return g.vp&&g.Jy("version/")}; Yw=function(){return g.Jy("smart-tv")&&g.Jy("samsung")}; g.Jy=function(v){var O=g.yh();return O?O.toLowerCase().indexOf(v)>=0:!1}; SQ=function(){return b9Q()||NS()||O9()?!0:g.Gq("EOM_VISITOR_DATA")?!1:!0}; dV=function(v,O){return O===void 0||O===null?v:O==="1"||O===!0||O===1||O==="True"?!0:!1}; rV=function(v,O,Y){for(var S in Y)if(Y[S]==O)return Y[S];return v}; bK=function(v,O){return O===void 0||O===null?v:Number(O)}; oU=function(v,O){return O===void 0||O===null?v:O.toString()}; jQ=function(v,O){if(O){if(v==="fullwidth")return Infinity;if(v==="fullheight")return 0}return v&&(O=v.match(Cpg))&&(v=Number(O[2]),O=Number(O[1]),!isNaN(v)&&!isNaN(O)&&v>0)?O/v:NaN}; Wp=function(v){var O=v.docid||v.video_id||v.videoId||v.id;if(O)return O;O=v.raw_player_response;O||(v=v.player_response)&&(O=JSON.parse(v));return O&&O.videoDetails&&O.videoDetails.videoId||null}; yBd=function(v){return z4(v,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.s9=function(v){return v==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||v==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; z4=function(v,O){O=(O===void 0?0:O)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(O="EMBEDDED_PLAYER_MODE_PFL");var Y=v.raw_embedded_player_response;if(!Y&&(v=v.embedded_player_response))try{Y=JSON.parse(v)}catch(S){return O}return Y?rV(O,Y.embeddedPlayerMode,aOJ):O}; ML=function(v){W0.call(this,v.message||v.description||v.name);this.isMissing=v instanceof gV;this.isTimeout=v instanceof lF&&v.errorCode=="net.timeout";this.isCanceled=v instanceof LZ}; gV=function(){W0.call(this,"Biscotti ID is missing from server")}; xA3=function(){if(g.uF("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!SQ())return Error("User has not consented - not fetching biscotti id.");var v=g.Gq("PLAYER_VARS",{});if(g.DK(v,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(yBd(v))return Error("Biscotti id fetching has been disabled for pfl.")}; FXQ=function(){var v=xA3();if(v!==void 0)return ld(v);VD||(VD=FB("//googleads.g.doubleclick.net/pagead/id",pMl).then(TkE).bv(function(O){return lOg(2,O)})); return VD}; TkE=function(v){v=v.xhr.responseText;if(!Mv(v,")]}'"))throw new gV;v=JSON.parse(v.substr(4));if((v.type||1)>1)throw new gV;v=v.id;nHl(v);VD=Eq(v);hXE(18E5,2);return v}; lOg=function(v,O){O=new ML(O);nHl("");VD=ee(O);v>0&&hXE(12E4,v-1);throw O;}; hXE=function(v,O){g.fS(function(){FB("//googleads.g.doubleclick.net/pagead/id",pMl).then(TkE,function(Y){return lOg(O,Y)}).bv(g.gH)},v)}; RXF=function(){try{var v=g.il("yt.ads.biscotti.getId_");return v?v():FXQ()}catch(O){return ld(O)}}; Etd=function(v){v&&(v.dataset?v.dataset[eXm()]="true":YJc(v))}; Q67=function(v){return v?v.dataset?v.dataset[eXm()]:v.getAttribute("data-loaded"):null}; eXm=function(){return LXF.loaded||(LXF.loaded="loaded".replace(/\-([a-z])/g,function(v,O){return O.toUpperCase()}))}; BkE=function(){var v=document;if("visibilityState"in v)return v.visibilityState;var O=Ai+"VisibilityState";if(O in v)return v[O]}; fy=function(v,O){var Y;H4(v,function(S){Y=O[S];return!!Y}); return Y}; $w=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()}; cp=function(v){var O;g.kw()?U9()==v&&(O=document):O=v;return O&&(v=fy(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],O))?(O=v.call(O),O instanceof Promise?O:Promise.resolve()):Promise.resolve()}; Z71=function(v){return g.gS(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(O){return"on"+O.toLowerCase()in v})}; XM3=function(){var v=document;return g.gS(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(O){return"on"+O.toLowerCase()in v})}; g.kw=function(){return!!fy(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; U9=function(v){v=v===void 0?!1:v;var O=fy(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(v)for(;O&&O.shadowRoot;)O=O.shadowRoot.fullscreenElement;return O?O:null}; uK=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 O in v)O in wM7||(this[O]=v[O]);this.scale=v.scale;this.rotation=v.rotation;var Y=v.target||v.srcElement;Y&&Y.nodeType==3&&(Y=Y.parentNode);this.target=Y;var S=v.relatedTarget; if(S)try{S=S.nodeName?S:null}catch(d){S=null}else this.type=="mouseover"?S=v.fromElement:this.type=="mouseout"&&(S=v.toElement);this.relatedTarget=S;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.Y=v.pageX;this.U=v.pageY}}catch(d){}}; IOE=function(v){if(document.body&&document.documentElement){var O=document.body.scrollTop+document.documentElement.scrollTop;v.Y=v.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);v.U=v.clientY+O}}; qSE=function(v,O,Y,S){S=S===void 0?{}:S;v.addEventListener&&(O!="mouseenter"||"onmouseenter"in document?O!="mouseleave"||"onmouseenter"in document?O=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(O="MozMousePixelScroll"):O="mouseout":O="mouseover");return mN(Cy,function(d){var r=typeof d[4]==="boolean"&&d[4]==!!S,b=g.N$(d[4])&&g.N$(S)&&g.H0(d[4],S);return!!d.length&&d[0]==v&&d[1]==O&&d[2]==Y&&(r||b)})}; g.yD=function(v,O,Y,S){S=S===void 0?{}:S;if(!v||!v.addEventListener&&!v.attachEvent)return"";var d=qSE(v,O,Y,S);if(d)return d;d=++ntQ.count+"";var r=!(O!="mouseenter"&&O!="mouseleave"||!v.addEventListener||"onmouseenter"in document);var b=r?function(z){z=new uK(z);if(!dH(z.relatedTarget,function(M){return M==v},!0))return z.currentTarget=v,z.type=O,Y.call(v,z)}:function(z){z=new uK(z); z.currentTarget=v;return Y.call(v,z)}; b=g.N7(b);v.addEventListener?(O=="mouseenter"&&r?O="mouseover":O=="mouseleave"&&r?O="mouseout":O=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(O="MozMousePixelScroll"),JBn()||typeof S==="boolean"?v.addEventListener(O,b,S):v.addEventListener(O,b,!!S.capture)):v.attachEvent("on"+O,b);Cy[d]=[v,O,Y,b,S];return d}; PpJ=function(v){return KXm(v,function(O){return g.bE(O,"ytp-ad-has-logging-urls")})}; KXm=function(v,O){var Y=document.body||document;return g.yD(Y,"click",function(S){var d=dH(S.target,function(r){return r===Y||O(r)},!0); d&&d!==Y&&!d.disabled&&(S.currentTarget=d,v.call(d,S))})}; g.aU=function(v){v&&(typeof v=="string"&&(v=[v]),g.LC(v,function(O){if(O in Cy){var Y=Cy[O],S=Y[0],d=Y[1],r=Y[3];Y=Y[4];S.removeEventListener?JBn()||typeof Y==="boolean"?S.removeEventListener(d,r,Y):S.removeEventListener(d,r,!!Y.capture):S.detachEvent&&S.detachEvent("on"+d,r);delete Cy[O]}}))}; xw=function(v){for(var O in Cy)Cy[O][0]==v&&g.aU(O)}; py=function(v){v=v||window.event;var O;v.composedPath&&typeof v.composedPath==="function"?O=v.composedPath():O=v.path;O&&O.length?v=O[0]:(v=v||window.event,v=v.target||v.srcElement,v.nodeType==3&&(v=v.parentNode));return v}; T4=function(v){this.L=v;this.Y=null;this.B=0;this.C=null;this.Z=0;this.U=[];for(v=0;v<4;v++)this.U.push(0);this.G=0;this.Ug=g.yD(window,"mousemove",(0,g.YY)(this.j,this));this.X=g.$c((0,g.YY)(this.tK,this),25)}; lK=function(v){g.X.call(this);this.L=[];this.pj=v||this}; F6=function(v,O,Y,S){for(var d=0;d0?Y:0;Y=S?Date.now()+S*1E3:0;if((S=S?(0,g.eQ)():E9())&&window.JSON){typeof O!=="string"&&(O=JSON.stringify(O,void 0));try{S.set(v,O,Y)}catch(d){S.remove(v)}}}; g.Ly=function(v){var O=E9(),Y=(0,g.eQ)();if(!O&&!Y||!window.JSON)return null;try{var S=O.get(v)}catch(d){}if(typeof S!=="string")try{S=Y.get(v)}catch(d){}if(typeof S!=="string")return null;try{S=JSON.parse(S,void 0)}catch(d){}return S}; mA7=function(){var v=(0,g.eQ)();if(v&&(v=v.U("yt-player-quality")))return v.creation}; g.Bp=function(v){try{var O=E9(),Y=(0,g.eQ)();O&&O.remove(v);Y&&Y.remove(v)}catch(S){}}; g.Zg=function(){return g.Ly("yt-remote-session-screen-id")}; tsg=function(v){var O=this;this.U=void 0;this.Y=!1;v.addEventListener("beforeinstallprompt",function(Y){Y.preventDefault();O.U=Y}); v.addEventListener("appinstalled",function(){O.Y=!0},{once:!0})}; X6=function(){if(!g.Pm.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Pm.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Pm.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Pm.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Pm.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(v){return"WEB_DISPLAY_MODE_UNKNOWN"}}; wV=function(){this.T$=!0}; DAJ=function(){wV.instance||(wV.instance=new wV);return wV.instance}; H7d=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}}; Nk7=function(){this.Y=g.Gq("ALT_PREF_COOKIE_NAME","PREF");this.U=g.Gq("ALT_PREF_COOKIE_DOMAIN","youtube.com");var v=g.Zb(this.Y);v&&this.parse(v)}; g.qL=function(){IU||(IU=new Nk7);return IU}; g.ny=function(v,O){return!!((vG1("f"+(Math.floor(O/31)+1))||0)&1<0;)switch(v=s8.shift(),v.type){case "ERROR":oz.fq(v.payload);break;case "EVENT":oz.logEvent(v.eventType,v.payload)}}; Ml=function(v){gJ||(oz?oz.fq(v):(s8.push({type:"ERROR",payload:v}),s8.length>10&&s8.shift()))}; VL=function(v,O){gJ||(oz?oz.logEvent(v,O):(s8.push({type:"EVENT",eventType:v,payload:O}),s8.length>10&&s8.shift()))}; Ak=function(v){if(v.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; fQ=function(v){return v.substr(0,v.indexOf(":"))||v}; g.$d=function(v,O,Y,S,d){O=O===void 0?{}:O;Y=Y===void 0?jnF[v]:Y;S=S===void 0?Wpl[v]:S;d=d===void 0?zd1[v]:d;g.iK.call(this,Y,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:v},O));this.type=v;this.message=Y;this.level=S;this.Y=d;Object.setPrototypeOf(this,g.$d.prototype)}; kd=function(v,O){g.$d.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:O,foundObjectStores:v},jnF.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,kd.prototype)}; U8=function(v,O){var Y=Error.call(this);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.index=v;this.objectStore=O;Object.setPrototypeOf(this,U8.prototype)}; u9=function(v,O,Y,S){O=fQ(O);var d=v instanceof Error?v:Error("Unexpected error: "+v);if(d instanceof g.$d)return d;v={objectStoreNames:Y,dbName:O,dbVersion:S};if(d.name==="QuotaExceededError")return new g.$d("QUOTA_EXCEEDED",v);if(g.ch&&d.name==="UnknownError")return new g.$d("QUOTA_MAYBE_EXCEEDED",v);if(d instanceof U8)return new g.$d("MISSING_INDEX",Object.assign({},v,{objectStore:d.objectStore,index:d.index}));if(d.name==="InvalidStateError"&&sni.some(function(r){return d.message.includes(r)}))return new g.$d("EXECUTE_TRANSACTION_ON_CLOSED_DB", v); if(d.name==="AbortError")return new g.$d("UNKNOWN_ABORT",v,d.message);d.args=[Object.assign({},v,{name:"IdbError",rM:d.name})];d.level="WARNING";return d}; g.CQ=function(v,O,Y){var S=b9();return new g.$d("IDB_NOT_SUPPORTED",{context:{caller:v,publicName:O,version:Y,hasSucceededOnce:S==null?void 0:S.hasSucceededOnce}})}; gGF=function(v){if(!v)throw Error();throw v;}; Mi$=function(v){return v}; yL=function(v){this.Y=v}; g.az=function(v){function O(d){if(S.state.status==="PENDING"){S.state={status:"REJECTED",reason:d};d=g.y(S.U);for(var r=d.next();!r.done;r=d.next())r=r.value,r()}} function Y(d){if(S.state.status==="PENDING"){S.state={status:"FULFILLED",value:d};d=g.y(S.Y);for(var r=d.next();!r.done;r=d.next())r=r.value,r()}} var S=this;this.state={status:"PENDING"};this.Y=[];this.U=[];v=v.Y;try{v(Y,O)}catch(d){O(d)}}; Vic=function(v,O,Y,S,d){try{if(v.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var r=Y(v.state.value);r instanceof g.az?xd(v,O,r,S,d):S(r)}catch(b){d(b)}}; ASl=function(v,O,Y,S,d){try{if(v.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var r=Y(v.state.reason);r instanceof g.az?xd(v,O,r,S,d):S(r)}catch(b){d(b)}}; xd=function(v,O,Y,S,d){O===Y?d(new TypeError("Circular promise chain detected.")):Y.then(function(r){r instanceof g.az?xd(v,O,r,S,d):S(r)},function(r){d(r)})}; fld=function(v,O,Y){function S(){Y(v.error);r()} function d(){O(v.result);r()} function r(){try{v.removeEventListener("success",d),v.removeEventListener("error",S)}catch(b){}} v.addEventListener("success",d);v.addEventListener("error",S)}; $Mc=function(v){return new Promise(function(O,Y){fld(v,O,Y)})}; pQ=function(v){return new g.az(new yL(function(O,Y){fld(v,O,Y)}))}; T2=function(v,O){return new g.az(new yL(function(Y,S){function d(){var r=v?O(v):null;r?r.then(function(b){v=b;d()},S):Y()} d()}))}; kfE=function(v,O){this.request=v;this.cursor=O}; UME=function(v){return pQ(v).then(function(O){return O?new kfE(v,O):null})}; g.cSQ=function(v){v.cursor.continue(void 0);return UME(v.request)}; uGc=function(v,O){this.Y=v;this.options=O;this.transactionCount=0;this.G=Math.round((0,g.J)());this.U=!1}; g.FF=function(v,O,Y){v=v.Y.createObjectStore(O,Y);return new l9(v)}; hk=function(v,O){v.Y.objectStoreNames.contains(O)&&v.Y.deleteObjectStore(O)}; g.E8=function(v,O,Y){return g.Rz(v,[O],{mode:"readwrite",vT:!0},function(S){return g.eN(S.objectStore(O),Y)})}; g.Rz=function(v,O,Y,S){var d,r,b,z,M,V,A,f,k,U,c,a;return g.B(function(x){switch(x.U){case 1:var T={mode:"readonly",vT:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof Y==="string"?T.mode=Y:Object.assign(T,Y);d=T;v.transactionCount++;r=d.vT?3:1;b=0;case 2:if(z){x.d8(4);break}b++;M=Math.round((0,g.J)());g.cm(x,5);V=v.Y.transaction(O,d.mode);T=new QL(V);T=CEg(T,S);return g.E(x,T,7);case 7:return A=x.Y,f=Math.round((0,g.J)()),ySw(v,M,f,b,void 0,O.join(),d),x.return(A);case 5:k=g.Tc(x);U=Math.round((0,g.J)()); c=u9(k,v.Y.name,O.join(),v.Y.version);if((a=c instanceof g.$d&&!c.Y)||b>=r)ySw(v,M,U,b,c,O.join(),d),z=c;x.d8(2);break;case 4:return x.return(Promise.reject(z))}})}; ySw=function(v,O,Y,S,d,r,b){O=Y-O;d?(d instanceof g.$d&&(d.type==="QUOTA_EXCEEDED"||d.type==="QUOTA_MAYBE_EXCEEDED")&&VL("QUOTA_EXCEEDED",{dbName:fQ(v.Y.name),objectStoreNames:r,transactionCount:v.transactionCount,transactionMode:b.mode}),d instanceof g.$d&&d.type==="UNKNOWN_ABORT"&&(Y-=v.G,Y<0&&Y>=2147483648&&(Y=0),VL("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:r,transactionDuration:O,transactionCount:v.transactionCount,dbDuration:Y}),v.U=!0),all(v,!1,S,r,O,b.tag),Ml(d)):all(v,!0,S,r,O, b.tag)}; all=function(v,O,Y,S,d,r){VL("TRANSACTION_ENDED",{objectStoreNames:S,connectionHasUnknownAbortedTransaction:v.U,duration:d,isSuccessful:O,tryCount:Y,tag:r===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":r})}; l9=function(v){this.Y=v}; g.LQ=function(v,O,Y){v.Y.createIndex(O,Y,{unique:!1})}; xM1=function(v,O){return g.Bh(v,{query:O},function(Y){return Y.delete().then(function(){return g.Z3(Y)})}).then(function(){})}; pIQ=function(v,O,Y){var S=[];return g.Bh(v,{query:O},function(d){if(!(Y!==void 0&&S.length>=Y))return S.push(d.getValue()),g.Z3(d)}).then(function(){return S})}; llF=function(v){return"getAllKeys"in IDBObjectStore.prototype?pQ(v.Y.getAllKeys(void 0,void 0)):TrE(v)}; TrE=function(v){var O=[];return g.Fpw(v,{query:void 0},function(Y){O.push(Y.cursor.primaryKey);return g.cSQ(Y)}).then(function(){return O})}; g.eN=function(v,O,Y){return pQ(v.Y.put(O,Y))}; g.Bh=function(v,O,Y){v=v.Y.openCursor(O.query,O.direction);return XF(v).then(function(S){return T2(S,Y)})}; g.Fpw=function(v,O,Y){var S=O.query;O=O.direction;v="openKeyCursor"in IDBObjectStore.prototype?v.Y.openKeyCursor(S,O):v.Y.openCursor(S,O);return UME(v).then(function(d){return T2(d,Y)})}; QL=function(v){var O=this;this.Y=v;this.G=new Map;this.U=!1;this.done=new Promise(function(Y,S){O.Y.addEventListener("complete",function(){Y()}); O.Y.addEventListener("error",function(d){d.currentTarget===d.target&&S(O.Y.error)}); O.Y.addEventListener("abort",function(){var d=O.Y.error;if(d)S(d);else if(!O.U){d=g.$d;for(var r=O.Y.objectStoreNames,b=[],z=0;z=Y))return S.push(d.getValue()),g.Z3(d)}).then(function(){return S})}; g.wJ=function(v,O,Y){v=v.Y.openCursor(O.query===void 0?null:O.query,O.direction===void 0?"next":O.direction);return XF(v).then(function(S){return T2(S,Y)})}; Iz=function(v,O){this.request=v;this.cursor=O}; XF=function(v){return pQ(v).then(function(O){return O?new Iz(v,O):null})}; g.Z3=function(v){v.cursor.continue(void 0);return XF(v.request)}; ed7=function(v,O,Y){return new Promise(function(S,d){function r(){k||(k=new uGc(b.result,{closed:f}));return k} var b=O!==void 0?self.indexedDB.open(v,O):self.indexedDB.open(v);var z=Y.blocked,M=Y.blocking,V=Y.fQO,A=Y.upgrade,f=Y.closed,k;b.addEventListener("upgradeneeded",function(U){try{if(U.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(b.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");U.dataLoss&&U.dataLoss!=="none"&&VL("IDB_DATA_CORRUPTED",{reason:U.dataLossMessage||"unknown reason",dbName:fQ(v)});var c=r(),a=new QL(b.transaction); A&&A(c,function(x){return U.oldVersion=x},a); a.done.catch(function(x){d(x)})}catch(x){d(x)}}); b.addEventListener("success",function(){var U=b.result;M&&U.addEventListener("versionchange",function(){M(r())}); U.addEventListener("close",function(){VL("IDB_UNEXPECTEDLY_CLOSED",{dbName:fQ(v),dbVersion:U.version});V&&V()}); S(r())}); b.addEventListener("error",function(){d(b.error)}); z&&b.addEventListener("blocked",function(){z()})})}; EGi=function(v,O,Y){Y=Y===void 0?{}:Y;return ed7(v,O,Y)}; ql=function(v,O){O=O===void 0?{}:O;var Y,S,d,r;return g.B(function(b){if(b.U==1)return g.cm(b,2),Y=self.indexedDB.deleteDatabase(v),S=O,(d=S.blocked)&&Y.addEventListener("blocked",function(){d()}),g.E(b,$Mc(Y),4); if(b.U!=2)return g.ai(b,0);r=g.Tc(b);throw u9(r,v,"",-1);})}; nQ=function(v,O){this.name=v;this.options=O;this.G=!0;this.Z=this.B=0}; Qnw=function(v,O){return new g.$d("INCOMPATIBLE_DB_VERSION",{dbName:v.name,oldVersion:v.options.version,newVersion:O})}; g.Jk=function(v,O){if(!O)throw g.CQ("openWithToken",fQ(v.name));return v.open()}; Lpd=function(v,O){var Y;return g.B(function(S){if(S.U==1)return g.E(S,g.Jk(KQ,O),2);Y=S.Y;return S.return(g.Rz(Y,["databases"],{vT:!0,mode:"readwrite"},function(d){var r=d.objectStore("databases");return r.get(v.actualName).then(function(b){if(b?v.actualName!==b.actualName||v.publicName!==b.publicName||v.userIdentifier!==b.userIdentifier:1)return g.eN(r,v).then(function(){})})}))})}; Ph=function(v,O){var Y;return g.B(function(S){if(S.U==1)return v?g.E(S,g.Jk(KQ,O),2):S.return();Y=S.Y;return S.return(Y.delete("databases",v))})}; Brw=function(v,O){var Y,S;return g.B(function(d){return d.U==1?(Y=[],g.E(d,g.Jk(KQ,O),2)):d.U!=3?(S=d.Y,g.E(d,g.Rz(S,["databases"],{vT:!0,mode:"readonly"},function(r){Y.length=0;return g.Bh(r.objectStore("databases"),{},function(b){v(b.getValue())&&Y.push(b.getValue());return g.Z3(b)})}),3)):d.return(Y)})}; ZOJ=function(v,O){return Brw(function(Y){return Y.publicName===v&&Y.userIdentifier!==void 0},O)}; XIm=function(){var v,O,Y,S;return g.B(function(d){switch(d.U){case 1:v=b9();if((O=v)==null?0:O.hasSucceededOnce)return d.return(!0);if(G2&&mn()&&!ty()||g.i9)return d.return(!1);try{if(Y=self,!(Y.indexedDB&&Y.IDBIndex&&Y.IDBKeyRange&&Y.IDBObjectStore))return d.return(!1)}catch(r){return d.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return d.return(!1);g.cm(d,2);S={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.E(d,Lpd(S,mB),4);case 4:return g.E(d,Ph("yt-idb-test-do-not-use",mB),5);case 5:return d.return(!0);case 2:return g.Tc(d),d.return(!1)}})}; wIJ=function(){if(tk!==void 0)return tk;gJ=!0;return tk=XIm().then(function(v){gJ=!1;var O;if((O=rJ())!=null&&O.Y){var Y;O={hasSucceededOnce:((Y=b9())==null?void 0:Y.hasSucceededOnce)||v};var S;(S=rJ())==null||S.set("LAST_RESULT_ENTRY_KEY",O,2592E3,!0)}return v})}; D3=function(){return g.il("ytglobal.idbToken_")||void 0}; g.Hh=function(){var v=D3();return v?Promise.resolve(v):wIJ().then(function(O){(O=O?mB:void 0)&&g.Gc("ytglobal.idbToken_",O);return O})}; Ild=function(v){if(!g.ti())throw v=new g.$d("AUTH_INVALID",{dbName:v}),Ml(v),v;var O=g.mF();return{actualName:v+":"+O,publicName:v,userIdentifier:O}}; qs1=function(v,O,Y,S){var d,r,b,z,M,V;return g.B(function(A){switch(A.U){case 1:return r=(d=Error().stack)!=null?d:"",g.E(A,g.Hh(),2);case 2:b=A.Y;if(!b)throw z=g.CQ("openDbImpl",v,O),g.uF("ytidb_async_stack_killswitch")||(z.stack=z.stack+"\n"+r.substring(r.indexOf("\n")+1)),Ml(z),z;Ak(v);M=Y?{actualName:v,publicName:v,userIdentifier:void 0}:Ild(v);g.cm(A,3);return g.E(A,Lpd(M,b),5);case 5:return g.E(A,EGi(M.actualName,O,S),6);case 6:return A.return(A.Y);case 3:return V=g.Tc(A),g.cm(A,7),g.E(A,Ph(M.actualName, b),9);case 9:g.ai(A,8);break;case 7:g.Tc(A);case 8:throw V;}})}; nG7=function(v,O,Y){Y=Y===void 0?{}:Y;return qs1(v,O,!1,Y)}; JSF=function(v,O,Y){Y=Y===void 0?{}:Y;return qs1(v,O,!0,Y)}; Kp3=function(v,O){O=O===void 0?{}:O;var Y,S;return g.B(function(d){if(d.U==1)return g.E(d,g.Hh(),2);if(d.U!=3){Y=d.Y;if(!Y)return d.return();Ak(v);S=Ild(v);return g.E(d,ql(S.actualName,O),3)}return g.E(d,Ph(S.actualName,Y),0)})}; PEn=function(v,O,Y){v=v.map(function(S){return g.B(function(d){return d.U==1?g.E(d,ql(S.actualName,O),2):g.E(d,Ph(S.actualName,Y),0)})}); return Promise.all(v).then(function(){})}; Gf1=function(v){var O=O===void 0?{}:O;var Y,S;return g.B(function(d){if(d.U==1)return g.E(d,g.Hh(),2);if(d.U!=3){Y=d.Y;if(!Y)return d.return();Ak(v);return g.E(d,ZOJ(v,Y),3)}S=d.Y;return g.E(d,PEn(S,O,Y),0)})}; iOJ=function(v,O){O=O===void 0?{}:O;var Y;return g.B(function(S){if(S.U==1)return g.E(S,g.Hh(),2);if(S.U!=3){Y=S.Y;if(!Y)return S.return();Ak(v);return g.E(S,ql(v,O),3)}return g.E(S,Ph(v,Y),0)})}; Nl=function(v,O){nQ.call(this,v,O);this.options=O;Ak(v)}; mM3=function(v,O){var Y;return function(){Y||(Y=new Nl(v,O));return Y}}; g.vQ=function(v,O){return mM3(v,O)}; Ox=function(v){return g.Jk(ti7(),v)}; DMF=function(v,O,Y,S){var d,r,b;return g.B(function(z){switch(z.U){case 1:return d={config:v,hashData:O,timestamp:S!==void 0?S:(0,g.J)()},g.E(z,Ox(Y),2);case 2:return r=z.Y,g.E(z,r.clear("hotConfigStore"),3);case 3:return g.E(z,g.E8(r,"hotConfigStore",d),4);case 4:return b=z.Y,z.return(b)}})}; HOF=function(v,O,Y,S,d){var r,b,z;return g.B(function(M){switch(M.U){case 1:return r={config:v,hashData:O,configData:Y,timestamp:d!==void 0?d:(0,g.J)()},g.E(M,Ox(S),2);case 2:return b=M.Y,g.E(M,b.clear("coldConfigStore"),3);case 3:return g.E(M,g.E8(b,"coldConfigStore",r),4);case 4:return z=M.Y,M.return(z)}})}; Nrw=function(v){var O,Y;return g.B(function(S){return S.U==1?g.E(S,Ox(v),2):S.U!=3?(O=S.Y,Y=void 0,g.E(S,g.Rz(O,["coldConfigStore"],{mode:"readwrite",vT:!0},function(d){return g.wJ(d.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(r){Y=r.getValue()})}),3)):S.return(Y)})}; v0J=function(v){var O,Y;return g.B(function(S){return S.U==1?g.E(S,Ox(v),2):S.U!=3?(O=S.Y,Y=void 0,g.E(S,g.Rz(O,["hotConfigStore"],{mode:"readwrite",vT:!0},function(d){return g.wJ(d.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(r){Y=r.getValue()})}),3)):S.return(Y)})}; OYd=function(){return g.B(function(v){return g.E(v,Gf1("ytGcfConfig"),0)})}; YC=function(){g.X.call(this);this.U=[];this.Y=[];var v=g.il("yt.gcf.config.hotUpdateCallbacks");v?(this.U=[].concat(g.F(v)),this.Y=v):(this.Y=[],g.Gc("yt.gcf.config.hotUpdateCallbacks",this.Y))}; jx=function(){var v=this;this.Z=!1;this.G=this.B=0;this.C=new YC;this.Qg={ni1:function(){v.Z=!0}, ybg:function(){return v.Y}, B0x:function(O){Sx(v,O)}, fL:function(O){v.fL(O)}, Mgx:function(O){dT(v,O)}, JO:function(){return v.coldHashData}, Fz:function(){return v.hotHashData}, Bi8:function(){return v.U}, tB8:function(){return rT()}, Gcd:function(){return bA()}, Uw0:function(){return g.il("yt.gcf.config.coldHashData")}, MBg:function(){return g.il("yt.gcf.config.hotHashData")}, rxg:function(){Yy$(v)}, jec:function(){v.fL(void 0);oM(v);delete jx.instance}, eKx:function(O){v.G=O}, no8:function(){return v.G}}}; SyF=function(){if(!jx.instance){var v=new jx;jx.instance=v}return jx.instance}; bYF=function(v){var O;g.B(function(Y){if(Y.U==1)return g.uF("start_client_gcf")||g.uF("delete_gcf_config_db")?g.uF("start_client_gcf")?g.E(Y,g.Hh(),3):Y.d8(2):Y.return();Y.U!=2&&((O=Y.Y)&&g.ti()&&!g.uF("delete_gcf_config_db")?(v.Z=!0,Yy$(v)):(d7l(v),r5l(v)));return g.uF("delete_gcf_config_db")?g.E(Y,OYd(),0):Y.d8(0)})}; WQ=function(){var v;return(v=bA())!=null?v:g.Gq("RAW_HOT_CONFIG_GROUP")}; o03=function(v){var O,Y,S,d,r,b;return g.B(function(z){switch(z.U){case 1:if(v.U)return z.return(bA());if(!v.Z)return O=g.CQ("getHotConfig IDB not initialized"),vf(O),z.return(Promise.reject(O));Y=D3();S=g.Gq("TIME_CREATED_MS");if(!Y){d=g.CQ("getHotConfig token error");vf(d);z.d8(2);break}return g.E(z,v0J(Y),3);case 3:if((r=z.Y)&&r.timestamp>S)return Sx(v,r.config),v.fL(r.hashData),z.return(bA());case 2:r5l(v);if(!(Y&&v.U&&v.hotHashData)){z.d8(4);break}return g.E(z,DMF(v.U,v.hotHashData,Y,S),4);case 4:return v.U? z.return(bA()):(b=new g.iK("Config not available in ytConfig"),vf(b),z.return(Promise.reject(b)))}})}; Wql=function(v){var O,Y,S,d,r,b;return g.B(function(z){switch(z.U){case 1:if(v.Y)return z.return(rT());if(!v.Z)return O=g.CQ("getColdConfig IDB not initialized"),vf(O),z.return(Promise.reject(O));Y=D3();S=g.Gq("TIME_CREATED_MS");if(!Y){d=g.CQ("getColdConfig");vf(d);z.d8(2);break}return g.E(z,Nrw(Y),3);case 3:if((r=z.Y)&&r.timestamp>S)return dT(v,r.config),j$l(v,r.configData),oM(v,r.hashData),z.return(rT());case 2:d7l(v);if(!(Y&&v.Y&&v.coldHashData&&v.configData)){z.d8(4);break}return g.E(z,HOF(v.Y, v.coldHashData,v.configData,Y,S),4);case 4:return v.Y?z.return(rT()):(b=new g.iK("Config not available in ytConfig"),vf(b),z.return(Promise.reject(b)))}})}; Yy$=function(v){if(!v.U||!v.Y){if(!D3()){var O=g.CQ("scheduleGetConfigs");vf(O)}v.B||(v.B=g.qA.EK(function(){return g.B(function(Y){switch(Y.U){case 1:return g.cm(Y,2),g.E(Y,o03(v),4);case 4:g.ai(Y,3);break;case 2:g.Tc(Y);case 3:return g.cm(Y,5),g.E(Y,Wql(v),7);case 7:g.ai(Y,6);break;case 5:g.Tc(Y);case 6:v.B&&(v.B=0),g.UE(Y)}})},100))}}; z2g=function(v,O,Y){var S,d,r;return g.B(function(b){switch(b.U){case 1:if(!g.uF("start_client_gcf")){b.d8(0);break}Y&&Sx(v,Y);v.fL(O);S=D3();if(!S){b.d8(3);break}if(Y){b.d8(4);break}return g.E(b,v0J(S),5);case 5:d=b.Y,Y=(r=d)==null?void 0:r.config;case 4:return g.E(b,DMF(Y,O,S),3);case 3:if(Y)for(var z=Y,M=g.y(v.C.Y),V=M.next();!V.done;V=M.next())V=V.value,V(z);g.UE(b)}})}; s$Q=function(v,O,Y){var S,d,r,b;return g.B(function(z){if(z.U==1){if(!g.uF("start_client_gcf"))return z.d8(0);oM(v,O);return(S=D3())?Y?z.d8(4):g.E(z,Nrw(S),5):z.d8(0)}z.U!=4&&(d=z.Y,Y=(r=d)==null?void 0:r.config);if(!Y)return z.d8(0);b=Y.configData;return g.E(z,HOF(Y,O,b,S),0)})}; g0w=function(){var v=SyF(),O=(0,g.J)()-v.G;if(!(v.G!==0&&O0&&(O.request={internalExperimentFlags:Y});Vr7(v,void 0,O);A5l(void 0,O);fri(void 0,O);$7$(v,void 0,O);kqg(void 0,O);g.uF("start_client_gcf")&&U77(void 0,O);g.Gq("DELEGATED_SESSION_ID")&& !g.uF("pageid_as_header_web")&&(O.user={onBehalfOfUser:g.Gq("DELEGATED_SESSION_ID")});!g.uF("fill_delegate_context_in_gel_killswitch")&&(v=g.Gq("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(O.user=Object.assign({},O.user,{serializedDelegationContext:v}));v=g.Gq("INNERTUBE_CONTEXT");var S;if(g.uF("enable_persistent_device_token")&&(v==null?0:(S=v.client)==null?0:S.rolloutToken)){var d;O.client.rolloutToken=v==null?void 0:(d=v.client)==null?void 0:d.rolloutToken}S=Object;d=S.assign;v=O.client; Y={};for(var r=g.y(Object.entries(Se(g.Gq("DEVICE","")))),b=r.next();!b.done;b=r.next()){var z=g.y(b.value);b=z.next().value;z=z.next().value;b==="cbrand"?Y.deviceMake=z:b==="cmodel"?Y.deviceModel=z:b==="cbr"?Y.browserName=z:b==="cbrver"?Y.browserVersion=z:b==="cos"?Y.osName=z:b==="cosver"?Y.osVersion=z:b==="cplatform"&&(Y.platform=z)}O.client=d.call(S,v,Y);return O}; Vr7=function(v,O,Y){v=v.mf;if(v==="WEB"||v==="MWEB"||v===1||v===2)if(O){Y=Pb(O,Fb,96)||new Fb;var S=X6();S=Object.keys(c5m).indexOf(S);S=S===-1?null:S;S!==null&&bM(Y,3,S);i3(O,Fb,96,Y)}else Y&&(Y.client.mainAppWebInfo=(S=Y.client.mainAppWebInfo)!=null?S:{},Y.client.mainAppWebInfo.webDisplayMode=X6())}; A5l=function(v,O){var Y=g.il("yt.embedded_player.embed_url");Y&&(v?(O=Pb(v,QG,7)||new QG,dy(O,4,Y),i3(v,QG,7,O)):O&&(O.thirdParty={embedUrl:Y}))}; fri=function(v,O){var Y;if(g.uF("web_log_memory_total_kbytes")&&((Y=g.Pm.navigator)==null?0:Y.deviceMemory)){var S;Y=(S=g.Pm.navigator)==null?void 0:S.deviceMemory;v?pr(v,95,NW(Y*1E6)):O&&(O.client.memoryTotalKbytes=""+Y*1E6)}}; $7$=function(v,O,Y){if(v.appInstallData)if(O){var S;Y=(S=Pb(O,lu,62))!=null?S:new lu;dy(Y,6,v.appInstallData);i3(O,lu,62,Y)}else Y&&(Y.client.configInfo=Y.client.configInfo||{},Y.client.configInfo.appInstallData=v.appInstallData)}; kqg=function(v,O){var Y=Ssm();Y&&(v?bM(v,61,ub3[Y]):O&&(O.client.connectionType=Y));g.uF("web_log_effective_connection_type")&&(Y=rSw())&&(v?bM(v,94,CuE[Y]):O&&(O.client.effectiveConnectionType=Y))}; y5n=function(v,O,Y){Y=Y===void 0?{}:Y;var S={};g.Gq("EOM_VISITOR_DATA")?S={"X-Goog-EOM-Visitor-Id":g.Gq("EOM_VISITOR_DATA")}:S={"X-Goog-Visitor-Id":Y.visitorData||g.Gq("VISITOR_DATA","")};if(O&&O.includes("www.youtube-nocookie.com"))return S;O=Y.Mr||g.Gq("AUTHORIZATION");O||(v?O="Bearer "+g.il("gapi.auth.getToken")().access_token:(v=DAJ().a_(gT),g.uF("pageid_as_header_web")||delete v["X-Goog-PageId"],S=Object.assign({},S,v)));O&&(S.Authorization=O);return S}; U77=function(v,O){var Y=g0w();if(Y){var S=Y.coldConfigData,d=Y.coldHashData;Y=Y.hotHashData;if(v){var r;O=(r=Pb(v,lu,62))!=null?r:new lu;S=dy(O,1,S);dy(S,3,d).fL(Y);i3(v,lu,62,O)}else O&&(O.client.configInfo=O.client.configInfo||{},S&&(O.client.configInfo.coldConfigData=S),d&&(O.client.configInfo.coldHashData=d),Y&&(O.client.configInfo.hotHashData=Y))}}; MF=function(v,O){this.version=v;this.args=O}; VZ=function(v,O){this.topic=v;this.Y=O}; fR=function(v,O){var Y=Ar();Y&&Y.publish.call(Y,v.toString(),v,O)}; pkw=function(v){var O=arl,Y=Ar();if(!Y)return 0;var S=Y.subscribe(O.toString(),function(d,r){var b=g.il("ytPubsub2Pubsub2SkipSubKey");b&&b==S||(b=function(){if($C[S])try{if(r&&O instanceof VZ&&O!=d)try{var z=O.Y,M=r;if(!M.args||!M.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!z.FE){var V=new z;z.FE=V.version}var A=z.FE}catch(f){}if(!A||M.version!=A)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{r=Reflect.construct(z, g.c0(M.args))}catch(f){throw f.message="yt.pubsub2.Data.deserialize(): "+f.message,f;}}catch(f){throw f.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+O.toString()+": "+f.message,f;}v.call(window,r)}catch(f){g.Hk(f)}},x7n[O.toString()]?g.Yd()?g.qA.EK(b):g.fS(b,0):b())}); $C[S]=!0;yZ[O.toString()]||(yZ[O.toString()]=[]);yZ[O.toString()].push(S);return S}; Fqg=function(){var v=TzF,O=pkw(function(Y){v.apply(void 0,arguments);lrQ(O)}); return O}; lrQ=function(v){var O=Ar();O&&(typeof v==="number"&&(v=[v]),g.LC(v,function(Y){O.unsubscribeByKey(Y);delete $C[Y]}))}; Ar=function(){return g.il("ytPubsub2Pubsub2Instance")}; aM=function(v,O,Y){Y=Y===void 0?{sampleRate:.1}:Y;Math.random()Lqi||b=wkn&&(QZ++,g.uF("abandon_compression_after_N_slow_zips")?Ex===g.CS("compression_disable_point")&&QZ>Irc&&(hr=!1):hr=!1);qyd(O);S.headers||(S.headers={});S.headers["Content-Encoding"]="gzip";S.postBody=v;S.postParams=void 0;d(Y,S)}; n0l=function(v){var O=O===void 0?!1:O;var Y=Y===void 0?!1:Y;var S=(0,g.J)(),d={startTime:S,ticks:{},infos:{}},r=O?g.il("yt.logging.gzipForFetch",!1):!0;if(hr&&r){if(!v.body)return v;try{var b=Y?v.body:typeof v.body==="string"?v.body:JSON.stringify(v.body);r=b;if(!Y&&typeof b==="string"){var z=Q$Q(b);if(z!=null&&(z>Lqi||z=wkn)if(QZ++,g.uF("abandon_compression_after_N_slow_zips")||g.uF("abandon_compression_after_N_slow_zips_lr")){O=QZ/Ex;var V=Irc/g.CS("compression_disable_point");Ex>0&&Ex%g.CS("compression_disable_point")===0&&O>=V&&(hr=!1)}else hr=!1;qyd(d)}}v.headers=Object.assign({},{"Content-Encoding":"gzip"},v.headers||{});v.body=r;return v}catch(A){return vf(A),v}}else return v}; Q$Q=function(v){try{return(new Blob(v.split(""))).size}catch(O){return vf(O),null}}; qyd=function(v){g.uF("gel_compression_csi_killswitch")||!g.uF("log_gel_compression_latency")&&!g.uF("log_gel_compression_latency_lr")||aM("gel_compression",v,{sampleRate:.1})}; BQ=function(v){var O=this;this.Zl=this.Y=!1;this.potentialEsfErrorCounter=this.U=0;this.handleError=function(){}; this.US=function(){}; this.now=Date.now;this.hD=!1;this.Qg={cxx:function(A){O.jT=A}, oCg:function(){O.Nv()}, iA:function(){O.KX()}, gt:function(A){return g.B(function(f){return g.E(f,O.gt(A),0)})}, Nc:function(A,f){return O.Nc(A,f)}, V9:function(){O.V9()}}; var Y;this.sV=(Y=v.sV)!=null?Y:100;var S;this.yZ=(S=v.yZ)!=null?S:1;var d;this.ll=(d=v.ll)!=null?d:2592E6;var r;this.WU=(r=v.WU)!=null?r:12E4;var b;this.PU=(b=v.PU)!=null?b:5E3;var z;this.jT=(z=v.jT)!=null?z:void 0;this.yQ=!!v.yQ;var M;this.SD=(M=v.SD)!=null?M:.1;var V;this.yX=(V=v.yX)!=null?V:10;v.handleError&&(this.handleError=v.handleError);v.US&&(this.US=v.US);v.hD&&(this.hD=v.hD);v.Zl&&(this.Zl=v.Zl);this.T0=v.T0;this.Je=v.Je;this.Ke=v.Ke;this.gf=v.gf;this.sendFn=v.sendFn;this.Op=v.Op;this.HR= v.HR;LR(this)&&(!this.T0||this.T0("networkless_logging"))&&J5c(this)}; J5c=function(v){LR(v)&&!v.hD&&(v.Y=!0,v.yQ&&Math.random()<=v.SD&&v.Ke.KV(v.jT),v.V9(),v.gf.hE()&&v.Nv(),v.gf.listen(v.Op,v.Nv.bind(v)),v.gf.listen(v.HR,v.KX.bind(v)))}; Gqg=function(v,O){if(!LR(v))throw Error("IndexedDB is not supported: updateRequestHandlers");var Y=O.options.onError?O.options.onError:function(){}; O.options.onError=function(d,r){var b,z,M,V;return g.B(function(A){switch(A.U){case 1:b=KqF(r);(z=Pui(r))&&v.T0&&v.T0("web_enable_error_204")&&v.handleError(Error("Request failed due to compression"),O.url,r);if(!(v.T0&&v.T0("nwl_consider_error_code")&&b||v.T0&&!v.T0("nwl_consider_error_code")&&v.potentialEsfErrorCounter<=v.yX)){A.d8(2);break}if(!v.gf.SS){A.d8(3);break}return g.E(A,v.gf.SS(),3);case 3:if(v.gf.hE()){A.d8(2);break}Y(d,r);if(!v.T0||!v.T0("nwl_consider_error_code")||((M=O)==null?void 0: M.id)===void 0){A.d8(6);break}return g.E(A,v.Ke.aW(O.id,v.jT,!1),6);case 6:return A.return();case 2:if(v.T0&&v.T0("nwl_consider_error_code")&&!b&&v.potentialEsfErrorCounter>v.yX)return A.return();v.potentialEsfErrorCounter++;if(((V=O)==null?void 0:V.id)===void 0){A.d8(8);break}return O.sendCount=400&&v<=599?!1:!0}; Pui=function(v){var O;v=v==null?void 0:(O=v.error)==null?void 0:O.code;return!(v!==400&&v!==415)}; iYm=function(){if(X2)return X2();var v={};X2=g.vQ("LogsDatabaseV2",{hq:(v.LogsRequestsStore={SI:2},v),shared:!1,upgrade:function(O,Y,S){Y(2)&&g.FF(O,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});Y(3);Y(5)&&(S=S.objectStore("LogsRequestsStore"),S.Y.indexNames.contains("newRequest")&&S.Y.deleteIndex("newRequest"),g.LQ(S,"newRequestV2",["status","interface","timestamp"]));Y(7)&&hk(O,"sapisid");Y(9)&&hk(O,"SWHealthLog")}, version:9});return X2()}; wT=function(v){return g.Jk(iYm(),v)}; tri=function(v,O){var Y,S,d,r;return g.B(function(b){if(b.U==1)return Y={startTime:(0,g.J)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.E(b,wT(O),2);if(b.U!=3)return S=b.Y,d=Object.assign({},v,{options:JSON.parse(JSON.stringify(v.options)),interface:g.Gq("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.E(b,g.E8(S,"LogsRequestsStore",d),3);r=b.Y;Y.ticks.tc=(0,g.J)();m7i(Y);return b.return(r)})}; D7$=function(v,O){var Y,S,d,r,b,z,M,V;return g.B(function(A){if(A.U==1)return Y={startTime:(0,g.J)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.E(A,wT(O),2);if(A.U!=3)return S=A.Y,d=g.Gq("INNERTUBE_CONTEXT_CLIENT_NAME",0),r=[v,d,0],b=[v,d,(0,g.J)()],z=IDBKeyRange.bound(r,b),M="prev",g.uF("use_fifo_for_networkless")&&(M="next"),V=void 0,g.E(A,g.Rz(S,["LogsRequestsStore"],{mode:"readwrite",vT:!0},function(f){return g.wJ(f.objectStore("LogsRequestsStore").index("newRequestV2"), {query:z,direction:M},function(k){k.getValue()&&(V=k.getValue(),v==="NEW"&&(V.status="QUEUED",k.update(V)))})}),3); Y.ticks.tc=(0,g.J)();m7i(Y);return A.return(V)})}; HYl=function(v,O){var Y;return g.B(function(S){if(S.U==1)return g.E(S,wT(O),2);Y=S.Y;return S.return(g.Rz(Y,["LogsRequestsStore"],{mode:"readwrite",vT:!0},function(d){var r=d.objectStore("LogsRequestsStore");return r.get(v).then(function(b){if(b)return b.status="QUEUED",g.eN(r,b).then(function(){return b})})}))})}; NzF=function(v,O,Y,S){Y=Y===void 0?!0:Y;var d;return g.B(function(r){if(r.U==1)return g.E(r,wT(O),2);d=r.Y;return r.return(g.Rz(d,["LogsRequestsStore"],{mode:"readwrite",vT:!0},function(b){var z=b.objectStore("LogsRequestsStore");return z.get(v).then(function(M){return M?(M.status="NEW",Y&&(M.sendCount+=1),S!==void 0&&(M.options.compress=S),g.eN(z,M).then(function(){return M})):g.az.resolve(void 0)})}))})}; vc7=function(v,O){var Y;return g.B(function(S){if(S.U==1)return g.E(S,wT(O),2);Y=S.Y;return S.return(Y.delete("LogsRequestsStore",v))})}; OSE=function(v){var O,Y;return g.B(function(S){if(S.U==1)return g.E(S,wT(v),2);O=S.Y;Y=(0,g.J)()-2592E6;return g.E(S,g.Rz(O,["LogsRequestsStore"],{mode:"readwrite",vT:!0},function(d){return g.Bh(d.objectStore("LogsRequestsStore"),{},function(r){if(r.getValue().timestamp<=Y)return r.delete().then(function(){return g.Z3(r)})})}),0)})}; Yqd=function(){g.B(function(v){return g.E(v,Gf1("LogsDatabaseV2"),0)})}; m7i=function(v){g.uF("nwl_csi_killswitch")||aM("networkless_performance",v,{sampleRate:1})}; dSn=function(v){return g.Jk(Sqg(),v)}; ryi=function(v){var O,Y;g.B(function(S){if(S.U==1)return g.E(S,dSn(v),2);O=S.Y;Y=(0,g.J)()-2592E6;return g.E(S,g.Rz(O,["SWHealthLog"],{mode:"readwrite",vT:!0},function(d){return g.Bh(d.objectStore("SWHealthLog"),{},function(r){if(r.getValue().timestamp<=Y)return r.delete().then(function(){return g.Z3(r)})})}),0)})}; bS7=function(v){var O;return g.B(function(Y){if(Y.U==1)return g.E(Y,dSn(v),2);O=Y.Y;return g.E(Y,O.clear("SWHealthLog"),0)})}; g.IM=function(v,O,Y,S,d,r,b){d=d===void 0?"":d;r=r===void 0?!1:r;b=b===void 0?!1:b;if(v)if(Y&&!g.Pf())vf(new g.iK("Legacy referrer-scrubbed ping detected")),v&&oc1(v,void 0,{scrubReferrer:!0});else if(d)xc(v,O,"POST",d,S);else if(g.Gq("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||S||b)xc(v,O,"GET","",S,void 0,r,b);else{b:{try{c:{var z=new p43({url:v});if(O6(z.Y,jZd)==="1")var M=null;else{var V=O6(z.Y,WnE);if(V==="1"){var A=O6(z.Y,za3);if(A)try{M={version:3,VK:decodeURIComponent(A),S2:YX(z.Y,"act=1","ri=1", T4Q(z))};break c}catch(U){}}M=V==="2"?{version:4,VK:YX(z.Y,"dct=1","suid="+z.U,""),S2:YX(z.Y,"act=1","ri=1","suid="+z.U)}:null}}if(M){var f=uT(v);var k=!(!f||!f.endsWith("/aclk")||Fa(v,"ri")!=="1");break b}}catch(U){}k=!1}k?sZl(v)?(O&&O(),Y=!0):Y=!1:Y=!1;Y||oc1(v,O)}}; sZl=function(v,O){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(v,O===void 0?"":O))return!0}catch(Y){}return!1}; oc1=function(v,O,Y){Y=Y===void 0?{}:Y;var S=new Image,d=""+gcn++;qF[d]=S;S.onload=S.onerror=function(){O&&qF[d]&&O();delete qF[d]}; Y.scrubReferrer&&(S.referrerPolicy="no-referrer");S.src=v}; Me1=function(v){var O;return((O=document.featurePolicy)==null?0:O.allowedFeatures().includes("attribution-reporting"))?v+"&nis=6":v+"&nis=5"}; Jr=function(){nR||(nR=new dJ("yt.offline"));return nR}; VeE=function(v){if(g.uF("offline_error_handling")){var O=Jr().get("errors",!0)||{};O[v.message]={name:v.name,stack:v.stack};v.level&&(O[v.message].level=v.level);Jr().set("errors",O,2592E3,!0)}}; KR=function(){this.Y=new Map;this.U=!1}; PQ=function(){if(!KR.instance){var v=g.il("yt.networkRequestMonitor.instance")||new KR;g.Gc("yt.networkRequestMonitor.instance",v);KR.instance=v}return KR.instance}; GY=function(){g.sW.call(this);var v=this;this.U=!1;this.Y=ydc();this.Y.listen("networkstatus-online",function(){if(v.U&&g.uF("offline_error_handling")){var O=Jr().get("errors",!0);if(O){for(var Y in O)if(O[Y]){var S=new g.iK(Y,"sent via offline_errors");S.name=O[Y].name;S.stack=O[Y].stack;S.level=O[Y].level;g.Hk(S)}Jr().set("errors",{},2592E3,!0)}}})}; Aym=function(){if(!GY.instance){var v=g.il("yt.networkStatusManager.instance")||new GY;g.Gc("yt.networkStatusManager.instance",v);GY.instance=v}return GY.instance}; g.iA=function(v){v=v===void 0?{}:v;g.sW.call(this);var O=this;this.Y=this.B=0;this.U=Aym();var Y=g.il("yt.networkStatusManager.instance.listen").bind(this.U);Y&&(v.rateLimit?(this.rateLimit=v.rateLimit,Y("networkstatus-online",function(){fbE(O,"publicytnetworkstatus-online")}),Y("networkstatus-offline",function(){fbE(O,"publicytnetworkstatus-offline")})):(Y("networkstatus-online",function(){O.dispatchEvent("publicytnetworkstatus-online")}),Y("networkstatus-offline",function(){O.dispatchEvent("publicytnetworkstatus-offline")})))}; fbE=function(v,O){v.rateLimit?v.Y?(g.qA.Cq(v.B),v.B=g.qA.EK(function(){v.G!==O&&(v.dispatchEvent(O),v.G=O,v.Y=(0,g.J)())},v.rateLimit-((0,g.J)()-v.Y))):(v.dispatchEvent(O),v.G=O,v.Y=(0,g.J)()):v.dispatchEvent(O)}; tr=function(){var v=BQ.call;m_||(m_=new g.iA({Cfu:!0,C4g:!0}));v.call(BQ,this,{Ke:{KV:OSE,vM:vc7,fg:D7$,N8W:HYl,aW:NzF,set:tri},gf:m_,handleError:function(O,Y,S){var d,r=S==null?void 0:(d=S.error)==null?void 0:d.code;if(r===400||r===415){var b;O=new g.iK(O.message,Y,S==null?void 0:(b=S.error)==null?void 0:b.code);vf(O,void 0,void 0,void 0,!0)}else g.Hk(O)}, US:vf,sendFn:$Si,now:g.J,IK:VeE,Je:g.O8(),Op:"publicytnetworkstatus-online",HR:"publicytnetworkstatus-offline",yQ:!0,SD:.1,yX:g.CS("potential_esf_error_limit",10),T0:g.uF,hD:!(g.ti()&&g.c4(document.location.toString())!=="www.youtube-nocookie.com")});this.G=new g.Mf;g.uF("networkless_immediately_drop_all_requests")&&Yqd();iOJ("LogsDatabaseV2")}; D_=function(){var v=g.il("yt.networklessRequestController.instance");v||(v=new tr,g.Gc("yt.networklessRequestController.instance",v),g.uF("networkless_logging")&&g.Hh().then(function(O){v.jT=O;J5c(v);v.G.resolve();v.yQ&&Math.random()<=v.SD&&v.jT&&ryi(v.jT);g.uF("networkless_immediately_drop_sw_health_store")&&knF(v)})); return v}; knF=function(v){var O;g.B(function(Y){if(!v.jT)throw O=g.CQ("clearSWHealthLogsDb"),O;return Y.return(bS7(v.jT).catch(function(S){v.handleError(S)}))})}; $Si=function(v,O,Y,S){S=S===void 0?!1:S;O=g.uF("web_fp_via_jspb")?Object.assign({},O):O;g.uF("use_cfr_monitor")&&USw(v,O);if(g.uF("use_request_time_ms_header"))O.headers&&je(v)&&(O.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.J)())));else{var d;if((d=O.postParams)==null?0:d.requestTimeMs)O.postParams.requestTimeMs=Math.round((0,g.J)())}Y&&Object.keys(O).length===0?g.IM(v):O.compress?O.postBody?(typeof O.postBody!=="string"&&(O.postBody=JSON.stringify(O.postBody)),ex(v,O.postBody, O,g.pS,S)):ex(v,JSON.stringify(O.postParams),O,Tn,S):g.pS(v,O)}; HQ=function(v,O){g.uF("use_event_time_ms_header")&&je(v)&&(O.headers||(O.headers={}),O.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.J)())));return O}; USw=function(v,O){var Y=O.onError?O.onError:function(){}; O.onError=function(d,r){PQ().requestComplete(v,!1);Y(d,r)}; var S=O.onSuccess?O.onSuccess:function(){}; O.onSuccess=function(d,r){PQ().requestComplete(v,!0);S(d,r)}}; g.NF=function(v){this.config_=null;v?this.config_=v:Mr$()&&(this.config_=g.zY())}; g.vG=function(v,O,Y,S){function d(V){try{if((V===void 0?0:V)&&S.retry&&!S.networklessOptions.bypassNetworkless)r.method="POST",S.networklessOptions.writeThenSend?D_().writeThenSend(M,r):D_().sendAndWrite(M,r);else if(S.compress){var A=!S.networklessOptions.writeThenSend;if(r.postBody){var f=r.postBody;typeof f!=="string"&&(f=JSON.stringify(r.postBody));ex(M,f,r,g.pS,A)}else ex(M,JSON.stringify(r.postParams),r,Tn,A)}else g.uF("web_all_payloads_via_jspb")?g.pS(M,r):Tn(M,r)}catch(k){if(k.name==="InvalidAccessError")vf(Error("An extension is blocking network request.")); else throw k;}} !g.Gq("VISITOR_DATA")&&O!=="visitor_id"&&Math.random()<.01&&vf(new g.iK("Missing VISITOR_DATA when sending innertube request.",O,Y,S));if(!v.isReady())throw v=new g.iK("innertube xhrclient not ready",O,Y,S),g.Hk(v),v;var r={headers:S.headers||{},method:"POST",postParams:Y,postBody:S.postBody,postBodyFormat:S.postBodyFormat||"JSON",onTimeout:function(){S.onTimeout()}, onFetchTimeout:S.onTimeout,onSuccess:function(V,A){if(S.onSuccess)S.onSuccess(A)}, onFetchSuccess:function(V){if(S.onSuccess)S.onSuccess(V)}, onError:function(V,A){if(S.onError)S.onError(A)}, onFetchError:function(V){if(S.onError)S.onError(V)}, timeout:S.timeout,withCredentials:!0,compress:S.compress};r.headers["Content-Type"]||(r.headers["Content-Type"]="application/json");Y="";var b=v.config_.KR;b&&(Y=b);b=v.config_.EB||!1;var z=y5n(b,Y,S);Object.assign(r.headers,z);r.headers.Authorization&&!Y&&b&&(r.headers["x-origin"]=window.location.origin);var M=bF(""+Y+("/youtubei/"+v.config_.innertubeApiVersion+"/"+O),{alt:"json"});g.il("ytNetworklessLoggingInitializationOptions")&&cym.isNwlInitialized?wIJ().then(function(V){d(V)}):d(!1)}; g.bj=function(v,O,Y){var S=g.Oa();if(S&&O){var d=S.subscribe(v,function(){function r(){Sk[d]&&O.apply&&typeof O.apply=="function"&&O.apply(Y||window,b)} var b=arguments;try{g.dE[v]?r():g.fS(r,0)}catch(z){g.Hk(z)}},Y); Sk[d]=!0;rE[v]||(rE[v]=[]);rE[v].push(d);return d}return 0}; uB3=function(v){var O=g.bj("LOGGED_IN",function(Y){v.apply(void 0,arguments);g.o7(O)})}; g.o7=function(v){var O=g.Oa();O&&(typeof v==="number"?v=[v]:typeof v==="string"&&(v=[parseInt(v,10)]),g.LC(v,function(Y){O.unsubscribeByKey(Y);delete Sk[Y]}))}; g.jk=function(v,O){var Y=g.Oa();return Y?Y.publish.apply(Y,arguments):!1}; yyl=function(v){var O=g.Oa();if(O)if(O.clear(v),v)CFm(v);else for(var Y in rE)CFm(Y)}; g.Oa=function(){return g.Pm.ytPubsubPubsubInstance}; CFm=function(v){rE[v]&&(v=rE[v],g.LC(v,function(O){Sk[O]&&delete Sk[O]}),v.length=0)}; g.WG=function(v,O,Y){ab7(v,O,Y===void 0?null:Y)}; ab7=function(v,O,Y){Y=Y===void 0?null:Y;var S=xS1(v),d=document.getElementById(S),r=d&&Q67(d),b=d&&!r;r?O&&O():(O&&(r=g.bj(S,O),O=""+g.OJ(O),pfi[O]=r),b||(d=TGw(v,S,function(){Q67(d)||(Etd(d),g.jk(S),g.fS(function(){yyl(S)},0))},Y)))}; TGw=function(v,O,Y,S){S=S===void 0?null:S;var d=g.tc("SCRIPT");d.id=O;d.onload=function(){Y&&setTimeout(Y,0)}; d.onreadystatechange=function(){switch(d.readyState){case "loaded":case "complete":d.onload()}}; S&&d.setAttribute("nonce",S);g.bg(d,g.pY(v));v=document.getElementsByTagName("head")[0]||document.body;v.insertBefore(d,v.firstChild);return d}; xS1=function(v){var O=document.createElement("a");g.ih(O,v);v=O.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+$r(v)}; zI=function(v,O){if(v===O)v=!0;else if(Array.isArray(v)&&Array.isArray(O))v=g.eU(v,O,zI);else if(g.N$(v)&&g.N$(O))a:if(g.KC(v).length!=g.KC(O).length)v=!1;else{for(var Y in v)if(!zI(v[Y],O[Y])){v=!1;break a}v=!0}else v=!1;return v}; M1=function(v){var O=g.Bm.apply(1,arguments);if(!sa(v)||O.some(function(S){return!sa(S)}))throw Error("Only objects may be merged."); O=g.y(O);for(var Y=O.next();!Y.done;Y=O.next())gE(v,Y.value)}; gE=function(v,O){for(var Y in O)if(sa(O[Y])){if(Y in v&&!sa(v[Y]))throw Error("Cannot merge an object into a non-object.");Y in v||(v[Y]={});gE(v[Y],O[Y])}else if(Vc(O[Y])){if(Y in v&&!Vc(v[Y]))throw Error("Cannot merge an array into a non-array.");Y in v||(v[Y]=[]);lb7(v[Y],O[Y])}else v[Y]=O[Y];return v}; lb7=function(v,O){O=g.y(O);for(var Y=O.next();!Y.done;Y=O.next())Y=Y.value,sa(Y)?v.push(gE({},Y)):Vc(Y)?v.push(lb7([],Y)):v.push(Y);return v}; sa=function(v){return typeof v==="object"&&!Array.isArray(v)}; Vc=function(v){return typeof v==="object"&&Array.isArray(v)}; AI=function(v){g.X.call(this);this.U=v}; f8=function(v){AI.call(this,!0);this.Y=v}; uj=function(v,O){g.X.call(this);var Y=this;this.G=[];this.L=!1;this.U=0;this.Z=this.C=this.B=!1;this.tK=null;var S=(0,g.YY)(v,O);this.Y=new g.mX(function(){return S(Y.tK)},300); g.w(this,this.Y);this.j=this.X=Infinity}; Fnm=function(v,O){if(!O)return!1;for(var Y=0;Y-1)throw Error("Deps cycle for: "+O);if(v.U.has(O))return v.U.get(O);if(!v.Y.has(O)){if(S)return;throw Error("No provider for: "+O);}S=v.Y.get(O);Y.push(O);if(S.Zc!==void 0)var d=S.Zc;else if(S.Zeg)d=S[Ea]?Ecg(v,S[Ea],Y):[],d=S.Zeg.apply(S,g.F(d));else if(S.CA){d=S.CA;var r=d[Ea]?Ecg(v,d[Ea],Y):[];d=new (Function.prototype.bind.apply(d,[null].concat(g.F(r))))}else throw Error("Could not resolve providers for: "+O);Y.pop();S.kI1||v.U.set(O,d); return d}; Ecg=function(v,O,Y){return O?O.map(function(S){return S instanceof hI?Qc(v,S.key,Y,!0):Qc(v,S,Y)}):[]}; BG=function(){L8||(L8=new ea1);return L8}; Xy=function(){var v,O;return"h5vcc"in ZM&&((v=ZM.h5vcc.traceEvent)==null?0:v.traceBegin)&&((O=ZM.h5vcc.traceEvent)==null?0:O.traceEnd)?1:"performance"in ZM&&ZM.performance.mark&&ZM.performance.measure?2:0}; wE=function(v){var O=Xy();switch(O){case 1:ZM.h5vcc.traceEvent.traceBegin("YTLR",v);break;case 2:ZM.performance.mark(v+"-start");break;case 0:break;default:my(O,"unknown trace type")}}; QZw=function(v){var O=Xy();switch(O){case 1:ZM.h5vcc.traceEvent.traceEnd("YTLR",v);break;case 2:O=v+"-start";var Y=v+"-end";ZM.performance.mark(Y);ZM.performance.measure(v,O,Y);break;case 0:break;default:my(O,"unknown trace type")}}; Ln$=function(v){var O,Y;(Y=(O=window).onerror)==null||Y.call(O,v.message,"",0,0,v)}; BGg=function(v){var O=this;var Y=Y===void 0?0:Y;var S=S===void 0?g.O8():S;this.G=Y;this.scheduler=S;this.U=new g.Mf;this.Y=v;for(v={Pe:0};v.Pe=1E3?d():S>=v?zS||(zS=sP(function(){d();zS=void 0},0)):r-z>=10&&(vwg(O,Y.tier),b.B=r)}; mS$=function(v,O){if(v.endpoint==="log_event"){g.uF("more_accurate_gel_parser")&&OP().storePayload({isJspb:!1},v.payload);SW(v);var Y=dN(v),S=new Map;S.set(Y,[v.payload]);var d=PFw(v.payload)||"";O&&(jW=new O);return new g.x_(function(r,b){jW&&jW.isReady()?Oym(S,jW,r,b,{bypassNetworkless:!0},!0,b5(d)):r()})}}; HSi=function(v,O,Y){if(O.endpoint==="log_event"){SW(void 0,O);var S=dN(O,!0),d=new Map;d.set(S,[$Z(O.payload)]);Y&&(jW=new Y);return new g.x_(function(r){jW&&jW.isReady()?Y97(d,jW,r,{bypassNetworkless:!0},!0,b5(v)):r()})}}; dN=function(v,O){var Y="";if(v.dangerousLogToVisitorSession)Y="visitorOnlyApprovedKey";else if(v.cttAuthInfo){if(O===void 0?0:O){O=v.cttAuthInfo.token;Y=v.cttAuthInfo;var S=new J5;Y.videoId?S.setVideoId(Y.videoId):Y.playlistId&&wD(S,2,gN,YZ(Y.playlistId));Me[O]=S}else O=v.cttAuthInfo,Y={},O.videoId?Y.videoId=O.videoId:O.playlistId&&(Y.playlistId=O.playlistId),VW[v.cttAuthInfo.token]=Y;Y=v.cttAuthInfo.token}return Y}; om=function(v,O,Y){v=v===void 0?{}:v;O=O===void 0?!1:O;new g.x_(function(S,d){var r=Wr(O,Y),b=r.G;r.G=!1;AT(r.U);AT(r.Y);r.Y=0;jW&&jW.isReady()?Y===void 0&&g.uF("enable_web_tiered_gel")?S9c(S,d,v,O,300,b):S9c(S,d,v,O,Y,b):(vwg(O,Y),S())})}; S9c=function(v,O,Y,S,d,r){var b=jW;Y=Y===void 0?{}:Y;S=S===void 0?!1:S;d=d===void 0?200:d;r=r===void 0?!1:r;var z=new Map,M=new Map,V={isJspb:S,cttAuthInfo:void 0,tier:d},A={isJspb:S,cttAuthInfo:void 0};if(S){O=g.y(Object.keys(rN));for(d=O.next();!d.done;d=O.next())d=d.value,M=g.uF("enable_web_tiered_gel")?OP().smartExtractMatchingEntries({keys:[V,A],sizeLimit:1E3}):OP().extractMatchingEntries({isJspb:!0,cttAuthInfo:d}),M.length>0&&z.set(d,M),(g.uF("web_fp_via_jspb_and_json")&&Y.writeThenSend||!g.uF("web_fp_via_jspb_and_json"))&& delete rN[d];Y97(z,b,v,Y,!1,r)}else{z=g.y(Object.keys(rN));for(V=z.next();!V.done;V=z.next())V=V.value,A=g.uF("enable_web_tiered_gel")?OP().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:V,tier:d},{isJspb:!1,cttAuthInfo:V}],sizeLimit:1E3}):OP().extractMatchingEntries({isJspb:!1,cttAuthInfo:V}),A.length>0&&M.set(V,A),(g.uF("web_fp_via_jspb_and_json")&&Y.writeThenSend||!g.uF("web_fp_via_jspb_and_json"))&&delete rN[V];Oym(M,b,v,O,Y,!1,r)}}; vwg=function(v,O){function Y(){om({writeThenSend:!0},v,O)} v=v===void 0?!1:v;O=O===void 0?200:O;var S=Wr(v,O),d=S===dL3||S===ric?5E3:bym;g.uF("web_gel_timeout_cap")&&!S.Y&&(d=sP(function(){Y()},d),S.Y=d); AT(S.U);d=g.Gq("LOGGING_BATCH_TIMEOUT",g.CS("web_gel_debounce_ms",1E4));g.uF("shorten_initial_gel_batch_timeout")&&fP&&(d=owd);d=sP(function(){g.CS("gel_min_batch_size")>0?OP().getSequenceCount({cttAuthInfo:void 0,isJspb:v,tier:O})>=jU1&&Y():Y()},d); S.U=d}; Oym=function(v,O,Y,S,d,r,b){d=d===void 0?{}:d;var z=Math.round((0,g.J)()),M=v.size,V=WF7(b);v=g.y(v);var A=v.next();for(b={};!A.done;b={Mt:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,Ik:void 0,hG:void 0},A=v.next()){var f=g.y(A.value);A=f.next().value;f=f.next().value;b.batchRequest=g.v5({context:g.sx(O.config_||g.zY())});if(!g.Hm(f)&&!g.uF("throw_err_when_logevent_malformed_killswitch")){S();break}b.batchRequest.events=f;(f=VW[A])&&zZd(b.batchRequest,A,f);delete VW[A];b.dangerousLogToVisitorSession= A==="visitorOnlyApprovedKey";sU7(b.batchRequest,z,b.dangerousLogToVisitorSession);gw1(d);b.Ik=function(k){g.uF("start_client_gcf")&&g.qA.EK(function(){return g.B(function(U){return g.E(U,MQE(k),0)})}); M--;M||Y()}; b.Mt=0;b.hG=function(k){return function(){k.Mt++;if(d.bypassNetworkless&&k.Mt===1)try{g.vG(O,V,k.batchRequest,$s({writeThenSend:!0},k.dangerousLogToVisitorSession,k.Ik,k.hG,r)),fP=!1}catch(U){g.Hk(U),S()}M--;M||Y()}}(b); try{g.vG(O,V,b.batchRequest,$s(d,b.dangerousLogToVisitorSession,b.Ik,b.hG,r)),fP=!1}catch(k){g.Hk(k),S()}}}; Y97=function(v,O,Y,S,d,r){S=S===void 0?{}:S;var b=Math.round((0,g.J)()),z={value:v.size},M=new Map([].concat(g.F(v)));M=g.y(M);for(var V=M.next();!V.done;V=M.next()){var A=g.y(V.value).next().value,f=v.get(A);V=new Iqd;var k=O.config_||g.zY(),U=new Zr,c=new h5;dy(c,1,k.Nm);dy(c,2,k.J8);bM(c,16,k.aM);dy(c,17,k.innertubeContextClientVersion);if(k.U7){var a=k.U7,x=new lu;a.coldConfigData&&dy(x,1,a.coldConfigData);a.appInstallData&&dy(x,6,a.appInstallData);a.coldHashData&&dy(x,3,a.coldHashData);a.hotHashData&& x.fL(a.hotHashData);i3(c,lu,62,x)}(a=g.Pm.devicePixelRatio)&&a!=1&&pr(c,65,qW(a));a=yY();a!==""&&dy(c,54,a);a=aZ();if(a.length>0){x=new Ey;for(var T=0;T65535&&(v=1);Pk("BATCH_CLIENT_COUNTER",v);return v}; zZd=function(v,O,Y){if(Y.videoId)var S="VIDEO";else if(Y.playlistId)S="PLAYLIST";else return;v.credentialTransferTokenTargetId=Y;v.context=v.context||{};v.context.user=v.context.user||{};v.context.user.credentialTransferTokens=[{token:O,scope:S}]}; SW=function(v,O){var Y=g.il("yt.logging.transport.enableScrapingForTest"),S=cf("il_payload_scraping");S=(S!==void 0?String(S):"")==="enable_il_payload_scraping";if(!Y)if(S)cr=[],g.Gc("yt.logging.transport.enableScrapingForTest",!0),g.Gc("yt.logging.transport.scrapedPayloadsForTesting",cr),g.Gc("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Gc("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Gc("yt.logging.transport.scrapeClientEvent",!0);else return;Y=g.il("yt.logging.transport.scrapedPayloadsForTesting");S=g.il("yt.logging.transport.payloadToScrape");O&&(O=O.payload,(O=g.il("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(O)())&&Y.push(O));O=g.il("yt.logging.transport.scrapeClientEvent");if(S&&S.length>=1)for(var d=0;d0&&QUm(v,O,r)}else QUm(v,O)}; QUm=function(v,O,Y){v=LF$(v);O=O?g.pV(O):"";Y=Y||5;SQ()&&g.Bf(v,O,Y)}; LF$=function(v){for(var O=g.y(BV1),Y=O.next();!Y.done;Y=O.next())v=hx(v,Y.value);return"ST-"+$r(v).toString(36)}; Zy7=function(v){if(v.name==="JavaException")return!0;v=v.stack;return v.includes("chrome://")||v.includes("chrome-extension://")||v.includes("moz-extension://")}; Xpw=function(){this.wi=[];this.CL=[]}; Rm=function(){if(!hT){var v=hT=new Xpw;v.CL.length=0;v.wi.length=0;wpJ(v,IgJ)}return hT}; wpJ=function(v,O){O.CL&&v.CL.push.apply(v.CL,O.CL);O.wi&&v.wi.push.apply(v.wi,O.wi)}; q9J=function(v){function O(){return v.charCodeAt(S++)} var Y=v.length,S=0;do{var d=eW(O);if(d===Infinity)break;var r=d>>3;switch(d&7){case 0:d=eW(O);if(r===2)return d;break;case 1:if(r===2)return;S+=8;break;case 2:d=eW(O);if(r===2)return v.substr(S,d);S+=d;break;case 5:if(r===2)return;S+=4;break;default:return}}while(S500));S++);S=d}else if(typeof v==="object")for(d in v){if(v[d]){var r=d;var b=v[d],z=O,M=Y;r=typeof b!=="string"||r!=="clickTrackingParams"&&r!=="trackingParams"?0:(b=q9J(atob(b.replace(/-/g,"+").replace(/_/g,"/"))))?EP(r+".ve",b,z,M):0;S+=r;S+=EP(d,v[d],O,Y);if(S>500)break}}else Y[O]=QW(v),S+=Y[O].length;else Y[O]=QW(v),S+=Y[O].length;return S}; EP=function(v,O,Y,S){Y+="."+v;v=QW(O);S[Y]=v;return Y.length+v.length}; QW=function(v){try{return(typeof v==="string"?v:String(JSON.stringify(v))).substr(0,500)}catch(O){return"unable to serialize "+typeof v+" ("+O.message+")"}}; Wh=function(v){g.LP(v)}; g.Br=function(v){g.LP(v,"WARNING")}; g.LP=function(v,O){var Y=Y===void 0?{}:Y;Y.name=g.Gq("INNERTUBE_CONTEXT_CLIENT_NAME",1);Y.version=g.Gq("INNERTUBE_CONTEXT_CLIENT_VERSION");O=O===void 0?"ERROR":O;var S=!1;O=O===void 0?"ERROR":O;S=S===void 0?!1:S;if(v){v.hasOwnProperty("level")&&v.level&&(O=v.level);if(g.uF("console_log_js_exceptions")){var d=[];d.push("Name: "+v.name);d.push("Message: "+v.message);v.hasOwnProperty("params")&&d.push("Error Params: "+JSON.stringify(v.params));v.hasOwnProperty("args")&&d.push("Error args: "+JSON.stringify(v.args)); d.push("File name: "+v.fileName);d.push("Stacktrace: "+v.stack);window.console.log(d.join("\n"),v)}if(!(Jim>=5)){d=[];for(var r=g.y(KFF),b=r.next();!b.done;b=r.next()){b=b.value;try{b()&&d.push(b())}catch(a){}}d=[].concat(g.F(PKQ),g.F(d));var z=dNw(v);r=z.message||"Unknown Error";b=z.name||"UnknownError";var M=z.stack||v.U||"Not available";if(M.startsWith(b+": "+r)){var V=M.split("\n");V.shift();M=V.join("\n")}V=z.lineNumber||"Not available";z=z.fileName||"Not available";var A=0;if(v.hasOwnProperty("args")&& v.args&&v.args.length)for(var f=0;f=500);f++);else if(v.hasOwnProperty("params")&&v.params){var k=v.params;if(typeof v.params==="object")for(f in k){if(k[f]){var U="params."+f,c=QW(k[f]);Y[U]=c;A+=U.length+c.length;if(A>500)break}}else Y.params=QW(k)}if(d.length)for(f=0;f=500);f++);navigator.vendor&&!Y.hasOwnProperty("vendor")&&(Y["device.vendor"]=navigator.vendor);Y={message:r,name:b,lineNumber:V, fileName:z,stack:M,params:Y,sampleWeight:1};f=Number(v.columnNumber);isNaN(f)||(Y.lineNumber=Y.lineNumber+":"+f);if(v.level==="IGNORED")v=0;else a:{v=Rm();f=g.y(v.CL);for(d=f.next();!d.done;d=f.next())if(d=d.value,Y.message&&Y.message.match(d.NU)){v=d.weight;break a}v=g.y(v.wi);for(f=v.next();!f.done;f=v.next())if(f=f.value,f.callback(Y)){v=f.weight;break a}v=1}Y.sampleWeight=v;v=g.y(G47);for(f=v.next();!f.done;f=v.next())if(f=f.value,f.iV[Y.name])for(r=g.y(f.iV[Y.name]),d=r.next();!d.done;d=r.next())if(b= d.value,d=Y.message.match(b.sz)){Y.params["params.error.original"]=d[0];r=b.groups;b={};for(V=0;V1E3&&g.Br(new g.iK("IL Attach cache exceeded limit"))}z= mS(Y,O);JT.has(z)?tT(Y,O):Pr.set(z,!0)}}S=S.filter(function(A){A.csn!==O?(A.csn=O,A=!0):A=!1;return A}); Y={csn:O,parentVe:Y.getAsJson(),childVes:g.DQ(S,function(A){return A.getAsJson()})}; O==="UNDEFINED_CSN"?DX("visualElementAttached",r,Y):v?CP("visualElementAttached",Y,v,r):g.z2("visualElementAttached",Y,r)}; jzm=function(v,O,Y,S,d){Hr(Y,O);S=nP({cttAuthInfo:l5(O)||void 0},O);Y={csn:O,ve:Y.getAsJson(),eventType:1};d&&(Y.clientData=d);O==="UNDEFINED_CSN"?DX("visualElementShown",S,Y):v?CP("visualElementShown",Y,v,S):g.z2("visualElementShown",Y,S)}; WBd=function(v,O,Y,S){var d=(S=S===void 0?!1:S)?16:8;S=nP({cttAuthInfo:l5(O)||void 0,endOfSequence:S},O);Y={csn:O,ve:Y.getAsJson(),eventType:d};O==="UNDEFINED_CSN"?DX("visualElementHidden",S,Y):v?CP("visualElementHidden",Y,v,S):g.z2("visualElementHidden",Y,S)}; vH=function(v,O,Y,S,d){Ne(v,O,Y,void 0,S,d)}; Ne=function(v,O,Y,S,d){Hr(Y,O);S=S||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var r=nP({cttAuthInfo:l5(O)||void 0},O);Y={csn:O,ve:Y.getAsJson(),gestureType:S};d&&(Y.clientData=d);O==="UNDEFINED_CSN"?DX("visualElementGestured",r,Y):v?CP("visualElementGestured",Y,v,r):g.z2("visualElementGestured",Y,r)}; zV$=function(){var v=yc(16);for(var O=[],Y=0;Y0&&Y.push(g.tc("BR"));Y.push(g.DC(r))}):Y.push(g.DC(S))}return Y}; $9=function(v,O,Y,S){if(Y==="child"){g.Nn(O);var d;S===void 0?d=void 0:d=!Array.isArray(S)||S&&typeof S.J==="string"?[S]:S;Y=gdn(v,d);Y=g.y(Y);for(v=Y.next();!v.done;v=Y.next())O.appendChild(v.value)}else Y==="style"?g.ym(O,"cssText",S?S:""):S===null||S===void 0?O.removeAttribute(Y):(v=S.toString(),Y==="href"&&(v=g.qv(g.Kg(v))),O.setAttribute(Y,v))}; g.K=function(v){g.A6.call(this,v);this.t$=!0;this.Z=!1;this.listeners=[]}; g.k9=function(v){g.K.call(this,v);this.Eg=new g.MU;g.w(this,this.Eg)}; U2=function(v,O,Y,S,d,r,b){b=b===void 0?null:b;g.k9.call(this,O);this.api=v;this.macros={};this.componentType=Y;this.L=this.X=null;this.On=b;this.layoutId=S;this.interactionLoggingClientData=d;this.Rd=r;this.f1=null;this.IW=new f8(this.element);g.w(this,this.IW);this.n1=this.S(this.element,"click",this.onClick);this.JK=[];this.HW=new uj(this.onClick,this);g.w(this,this.HW);this.Mj=!1;this.FO=this.tK=null}; cH=function(v,O){v=v===void 0?null:v;O=O===void 0?null:O;if(v==null)return g.Br(Error("Got null or undefined adText object")),"";var Y=g.Ac(v.text);if(!v.isTemplated)return Y;if(O==null)return g.Br(Error("Missing required parameters for a templated message")),Y;v=g.y(Object.entries(O));for(O=v.next();!O.done;O=v.next()){var S=g.y(O.value);O=S.next().value;S=S.next().value;Y=Y.replace("{"+O+"}",S)}return Y}; MN$=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.Ac(v.thumbnails[0].url):""}; VNm=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.hc(v.thumbnails[0].width||0,v.thumbnails[0].height||0):new g.hc(0,0)}; g.ui=function(v){if(v.simpleText)return v.simpleText;if(v.runs){var O=[];v=g.y(v.runs);for(var Y=v.next();!Y.done;Y=v.next())Y=Y.value,Y.text&&O.push(Y.text);return O.join("")}return""}; g.Cu=function(v){if(v.simpleText)return v=document.createTextNode(v.simpleText),v;var O=[];if(v.runs)for(var Y=0;Y1){for(var O=[v[0]],Y=1;Y0&&(this.Y=new g.mX(this.pm,O,this),g.w(this,this.Y));this.Z=new g.mX(this.pm,Y,this);g.w(this,this.Z);this.X=hE7(this.U,d,1,S);g.w(this,this.X);this.L=hE7(this.U,0,S,1);g.w(this,this.L);this.B=new lK;g.w(this,this.B)}; gY=function(v,O,Y){this.U=v;this.isAsync=O;this.Y=Y}; YxF=function(v){switch(v){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:my(v,"unknown result type")}}; Sx$=function(v,O){var Y=1;v.isTrusted===!1&&(Y=0);Pk("ISDSTAT",Y);MB(Y,"i.s_",{triggerContext:"sk",metadata:O});return Y}; dFd=function(v,O){var Y=[];O?O.isTrusted===!0?Y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):O.isTrusted===!1?Y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):Y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):Y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");MB(0,"a.s_",{metadata:v,states:Y});Pk("ASDSTAT",0)}; MB=function(v,O,Y){O=rrm[O];var S,d,r={detected:v===0,source:""+O.U+((S=Y.triggerContext)!=null?S:"")+((d=Y.CV)!=null?d:""),detectionStates:Y.states,durationMs:Y.Nq};Y.metadata&&(r.contentCpn=Y.metadata.contentCpn,r.adCpn=Y.metadata.adCpn);g.z2("biscottiBasedDetection",r);O.Y!==void 0&&(Y=Number(g.Gq("CATSTAT",0)),O.Y!==void 0?(O=O.Y,v=YxF(v),v=Y&~(3<0}; cK=function(v,O,Y,S,d,r){Sd.call(this,v,{J:"div",W:"ytp-ad-skip-button-slot"},"skip-button",O,Y,S,d);var b=this;this.Ug=null;this.N3=!1;this.XO=r;this.C=this.api.D().experiments.T0("enable_modern_skip_button_on_web");this.xg=!1;this.B=new g.k9({J:"span",hK:["ytp-ad-skip-button-container"]});this.C&&this.B.element.classList.add("ytp-ad-skip-button-container-detached");g.w(this,this.B);this.B.C1(this.element);this.U=this.G=null;this.yx=new g.bC(this.B,500,!1,100,function(){return b.hide()}); g.w(this,this.yx);this.g8=new sO(this.B.element,15E3,5E3,.5,.5,this.C);g.w(this,this.g8);this.hide()}; oCQ=function(v){v=v.Ug&&v.Ug.adRendererCommands;return(v&&v.clickCommand&&g.q(v.clickCommand,g.uC)&&g.q(v.clickCommand,g.uC).commands||[]).some(function(O){return O.adLifecycleCommand?bRE(O.adLifecycleCommand):!1})}; bRE=function(v){return v.action==="END_LINEAR_AD"||v.action==="END_LINEAR_AD_PLACEMENT"}; C_=function(v,O,Y,S,d,r){Sd.call(this,v,{J:"div",W:"ytp-ad-skip-ad-slot"},"skip-ad",O,Y,S,d);this.Ug=r;this.B=!1;this.C=0;this.G=this.U=null;this.hide()}; jMw=function(v,O){v.B||(v.B=!0,v.U&&(O?v.U.Ug.hide():v.U.hide()),O?(v=v.G,v.yx.show(),v.show()):v.G.show())}; ye=function(v,O,Y,S){Zn.call(this,v,O,Y,S,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; aE=function(v,O,Y,S,d,r,b){r=r===void 0?!1:r;b=b===void 0?!1:b;U2.call(this,v,{J:"span",W:"ytp-ad-simple-ad-badge"},"simple-ad-badge",O,Y,S);this.G=d;this.Y=this.BW("ytp-ad-simple-ad-badge");(this.U=r)&&this.Y.classList.add("ytp-ad-simple-ad-badge--clean-player");b&&this.Y.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; x8=function(v,O,Y,S,d){d=d===void 0?!1:d;gK.call(this,"player-overlay",v,{},O,S);this.videoAdDurationSeconds=Y;this.interactionLoggingClientData=S;this.xL=d}; p_=function(v,O){g.MU.call(this);this.api=v;this.durationMs=O;this.Y=null;this.bk=new lK(this);g.w(this,this.bk);this.U=W_i;this.bk.S(this.api,"presentingplayerstatechange",this.i7);this.Y=this.bk.S(this.api,"onAdPlaybackProgress",this.vD)}; TX=function(v){g.MU.call(this);this.Y=!1;this.Q5=0;this.bk=new lK(this);g.w(this,this.bk);this.durationMs=v;this.KP=new g.Bt(100);g.w(this,this.KP);this.bk.S(this.KP,"tick",this.vD);this.U={seekableStart:0,seekableEnd:v/1E3,current:0};this.start()}; g.lC=function(v,O){var Y=Math.abs(Math.floor(v)),S=Math.floor(Y/86400),d=Math.floor(Y%86400/3600),r=Math.floor(Y%3600/60);Y=Math.floor(Y%60);if(O){O="";S>0&&(O+=" "+S+" Days");if(S>0||d>0)O+=" "+d+" Hours";O+=" "+r+" Minutes";O+=" "+Y+" Seconds";S=O.trim()}else{O="";S>0&&(O+=S+":",d<10&&(O+="0"));if(S>0||d>0)O+=d+":",r<10&&(O+="0");O+=r+":";Y<10&&(O+="0");S=O+Y}return v>=0?S:"-"+S}; g.Fk=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)}; h1=function(v,O,Y,S,d,r,b){Sd.call(this,v,{J:"span",W:b?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",O,Y,S,d);this.videoAdDurationSeconds=r;this.U=null;b&&this.api.D().U&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),G2&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; RE=function(v,O,Y,S){OO.call(this,v,O,Y,S,"ytp-video-ad-top-bar-title","ad-title")}; ed=function(v){this.content=v.content;if(v.commandRuns){v=g.y(v.commandRuns);for(var O=v.next();!O.done;O=v.next())O=O.value,this.loggingDirectives=g.q(O,zUw),O.onTap&&(this.interaction={onTap:O.onTap})}}; EO=function(v,O,Y,S){U2.call(this,v,{J:"div",W:"ad-simple-attributed-string"},"ad-simple-attributed-string",O,Y,S);this.hide()}; Qe=function(v,O,Y,S,d){U2.call(this,v,{J:"span",W:d?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",O,Y,S);this.U=d;this.adBadgeText=new EO(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd);this.adBadgeText.C1(this.element);g.w(this,this.adBadgeText);d?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),G2&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; L_=function(v,O,Y,S){U2.call(this,v,{J:"span",W:"ytp-ad-pod-index"},"ad-pod-index",O,Y,S);this.api.D().U&&(this.element.classList.add("ytp-ad-pod-index--mweb"),G2&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; BK=function(v,O,Y,S){U2.call(this,v,{J:"div",W:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",O,Y,S);this.hide()}; ZY=function(v,O){this.U=v;this.Y=O}; Xk=function(v,O,Y){if(!v.getLength())return Y!=null?Y:Infinity;v=(O-v.U)/v.getLength();return g.xr(v,0,1)}; wY=function(v,O,Y,S){S=S===void 0?!1:S;g.k9.call(this,{J:"div",W:"ytp-ad-persistent-progress-bar-container",K:[{J:"div",W:"ytp-ad-persistent-progress-bar"}]});this.api=v;this.U=O;this.G=Y;S&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.w(this,this.U);this.progressBar=this.BW("ytp-ad-persistent-progress-bar");this.Y=-1;this.S(v,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; IE=function(v,O,Y,S,d,r){U2.call(this,v,{J:"div",W:"ytp-ad-player-overlay",K:[{J:"div",W:"ytp-ad-player-overlay-flyout-cta"},{J:"div",W:"ytp-ad-player-overlay-instream-info"},{J:"div",W:"ytp-ad-player-overlay-skip-or-preview"},{J:"div",W:"ytp-ad-player-overlay-progress-bar"},{J:"div",W:"ytp-ad-player-overlay-instream-user-sentiment"},{J:"div",W:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",O,Y,S);this.j=r;this.C=this.BW("ytp-ad-player-overlay-flyout-cta");this.C.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.Y=this.BW("ytp-ad-player-overlay-instream-info");this.B=null;sMQ(this)&&(v=m4("div"),g.on(v,"ytp-ad-player-overlay-top-bar-gradients"),O=this.Y,O.parentNode&&O.parentNode.insertBefore(v,O),(O=this.api.getVideoData(2))&&O.isListed&&O.title&&(Y=new RE(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd),Y.C1(v),Y.init(s2("ad-title"),{text:O.title},this.macros),g.w(this,Y)),this.B=v);this.G=null;this.AK=this.BW("ytp-ad-player-overlay-skip-or-preview");this.g8=this.BW("ytp-ad-player-overlay-progress-bar"); this.N3=this.BW("ytp-ad-player-overlay-instream-user-sentiment");this.Ug=this.BW("ytp-ad-player-overlay-ad-disclosure-banner");this.U=d;g.w(this,this.U);this.hide()}; sMQ=function(v){v=v.api.D();return g.qB(v)&&v.U}; g.n_=function(v){v&=16777215;var O=[(v&16711680)>>16,(v&65280)>>8,v&255];v=O[0];var Y=O[1];O=O[2];v=Number(v);Y=Number(Y);O=Number(O);if(v!=(v&255)||Y!=(Y&255)||O!=(O&255))throw Error('"('+v+","+Y+","+O+'") is not a valid RGB color');Y=v<<16|Y<<8|O;return v<16?"#"+(16777216|Y).toString(16).slice(1):"#"+Y.toString(16)}; J1=function(v){this.Y=new Rn(v)}; gC3=function(){var v=!1;try{v=!!window.sessionStorage.getItem("session_logininfo")}catch(O){v=!0}return(g.Gq("INNERTUBE_CLIENT_NAME")==="WEB"||g.Gq("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&v}; K_=function(){var v=v===void 0?!0:v;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");Pk("LOGIN_INFO","");v&&window.sessionStorage.setItem("from_switch_account","1");v=!0;v=v===void 0?!1:v;var O,Y=Mx7;Y||(Y=document.querySelector("#persist_identity"));if(O=Y){var S=O.src?(new URL(O.src)).origin:"*";if(v){var d;(d=O.contentWindow)==null||d.postMessage({action:"clear"},S)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var r=window.sessionStorage.getItem("session_logininfo");if(r){var b;(b=O.contentWindow)==null||b.postMessage({loginInfo:r},S)}}}}catch(z){}}; PK=function(v){v&&(v.startsWith("https://accounts.google.com/AddSession")?K_():v.startsWith("https://accounts.google.com/ServiceLogin")?K_():v.startsWith("https://myaccount.google.com")&&g.gk(v).U.endsWith("/youtubeoptions")&&K_());if(g.Gq("LOGGED_IN",!0)&&gC3()){var O=g.Gq("VALID_SESSION_TEMPDATA_DOMAINS",[]);var Y=g.c4(window.location.href);Y&&O.push(Y);Y=g.c4(v);g.Vv(O,Y)||!Y&&Mv(v,"/")?(O=CV(v),(O=qvi(O))?(O=LF$(O),O=(O=g.Zb(O)||null)?Se(O):{}):O=null):O=null;O==null&&(O={});Y=O;var S=void 0; gC3()?(S||(S=g.Gq("LOGIN_INFO")),S?(Y.session_logininfo=S,Y=!0):Y=!1):Y=!1;Y&&Ff(v,O)}}; g.Vxc=function(v){var O=O===void 0?{}:O;var Y=Y===void 0?"":Y;var S=S===void 0?window:S;v=g.Te(v,O);PK(v);Y=g.Kg(v+Y);S=S.location;Y=P5(Y);Y!==void 0&&(S.href=Y)}; g.GX=function(v,O,Y){O=O===void 0?{}:O;Y=Y===void 0?!1:Y;var S=g.Gq("EVENT_ID");S&&(O.ei||(O.ei=S));O&&Ff(v,O);Y||(PK(v),g.Vxc(v))}; g.iC=function(v,O,Y,S,d){d=d===void 0?!1:d;Y&&Ff(v,Y);Y=g.Kg(v);var r=g.qv(Y);v!=r&&vf(Error("Unsafe window.open URL: "+v));v=r;O=O||$r(v).toString(36);try{if(d)return d=v,d=Me1(d),PK(d),g.Nv(window,d,O,"attributionsrc")}catch(b){g.Hk(b)}PK(v);return g.Nv(window,Y,O,S)}; Arc=function(v){mC=v}; f_l=function(v){t1=v}; $FQ=function(v){DY=v}; UFw=function(){kYd=DY=t1=mC=null}; u2m=function(){var v=v===void 0?window.location.href:v;if(g.uF("kevlar_disable_theme_param"))return null;var O=uT(v);if(g.uF("enable_dark_theme_only_on_shorts")&&O!=null&&O.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var Y=g.rG(v).theme;return crw.get(Y)||null}catch(S){}return null}; HK=function(){this.Y={};if(this.U=fOQ()){var v=g.Zb("CONSISTENCY");v&&CAc(this,{encryptedTokenJarContents:v})}}; CAc=function(v,O){if(O.encryptedTokenJarContents&&(v.Y[O.encryptedTokenJarContents]=O,typeof O.expirationSeconds==="string")){var Y=Number(O.expirationSeconds);setTimeout(function(){delete v.Y[O.encryptedTokenJarContents]},Y*1E3); v.U&&g.Bf("CONSISTENCY",O.encryptedTokenJarContents,Y,void 0,!0)}}; vT=function(){this.U=-1;var v=g.Gq("LOCATION_PLAYABILITY_TOKEN");g.Gq("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=NB(this))&&(v=this.localStorage.get("yt-location-playability-token"));v&&(this.locationPlayabilityToken=v,this.Y=void 0)}; NB=function(v){return v.localStorage===void 0?new dJ("yt-client-location"):v.localStorage}; g.O4=function(v,O,Y){O=O===void 0?!1:O;Y=Y===void 0?!1:Y;var S=g.Gq("INNERTUBE_CONTEXT");if(!S)return g.LP(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};S=g.v5(S);g.uF("web_no_tracking_params_in_shell_killswitch")||delete S.clickTracking;S.client||(S.client={});var d=S.client;d.clientName==="MWEB"&&d.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(d.clientFormFactor=g.Gq("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");d.screenWidthPoints=window.innerWidth;d.screenHeightPoints= window.innerHeight;d.screenPixelDensity=Math.round(window.devicePixelRatio||1);d.screenDensityFloat=window.devicePixelRatio||1;d.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var r=r===void 0?!1:r;g.qL();var b="USER_INTERFACE_THEME_LIGHT";g.ny(0,165)?b="USER_INTERFACE_THEME_DARK":g.ny(0,174)?b="USER_INTERFACE_THEME_LIGHT":!g.uF("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (b="USER_INTERFACE_THEME_DARK");r=r?b:u2m()||b;d.userInterfaceTheme=r;if(!O){if(r=Ssm())d.connectionType=r;g.uF("web_log_effective_connection_type")&&(r=rSw())&&(S.client.effectiveConnectionType=r)}var z;if(g.uF("web_log_memory_total_kbytes")&&((z=g.Pm.navigator)==null?0:z.deviceMemory)){var M;z=(M=g.Pm.navigator)==null?void 0:M.deviceMemory;S.client.memoryTotalKbytes=""+z*1E6}g.uF("web_gcf_hashes_innertube")&&(r=g0w())&&(M=r.coldConfigData,z=r.coldHashData,r=r.hotHashData,S.client.configInfo=S.client.configInfo|| {},M&&(S.client.configInfo.coldConfigData=M),z&&(S.client.configInfo.coldHashData=z),r&&(S.client.configInfo.hotHashData=r));M=g.rG(g.Pm.location.href);!g.uF("web_populate_internal_geo_killswitch")&&M.internalcountrycode&&(d.internalGeo=M.internalcountrycode);d.clientName==="MWEB"||d.clientName==="WEB"?(d.mainAppWebInfo={graftUrl:g.Pm.location.href},g.uF("kevlar_woffle")&&tsg.instance&&(M=tsg.instance,d.mainAppWebInfo.pwaInstallabilityStatus=!M.Y&&M.U?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),d.mainAppWebInfo.webDisplayMode=X6(),d.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):d.clientName==="TVHTML5"&&(!g.uF("web_lr_app_quality_killswitch")&&(M=g.Gq("LIVING_ROOM_APP_QUALITY"))&&(d.tvAppInfo=Object.assign(d.tvAppInfo||{},{appQuality:M})),M=g.Gq("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(d.tvAppInfo=Object.assign(d.tvAppInfo||{},{certificationScope:M}));if(!g.uF("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var V=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(L){}V=void 0}V&&(d.timeZone=V)}(V=yY())?d.experimentsToken=V:delete d.experimentsToken;V=aZ();HK.instance||(HK.instance=new HK);S.request=Object.assign({},S.request,{internalExperimentFlags:V,consistencyTokenJars:g.JY(HK.instance.Y)});!g.uF("web_prequest_context_killswitch")&&(V=g.Gq("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(S.request.externalPrequestContext=V);d=g.qL();V=g.ny(0,58);d=d.get("gsml","");S.user=Object.assign({}, S.user);V&&(S.user.enableSafetyMode=V);d&&(S.user.lockedSafetyMode=!0);g.uF("warm_op_csn_cleanup")?Y&&(O=g.TS())&&(S.clientScreenNonce=O):!O&&(O=g.TS())&&(S.clientScreenNonce=O);v&&(S.clickTracking={clickTrackingParams:v});if(v=g.il("yt.mdx.remote.remoteClient_"))S.remoteClient=v;vT.getInstance().setLocationOnInnerTubeContext(S);try{var A=MS(),f=A.bid;delete A.bid;S.adSignalsInfo={params:[],bid:f};for(var k=g.y(Object.entries(A)),U=k.next();!U.done;U=k.next()){var c=g.y(U.value),a=c.next().value, x=c.next().value;A=a;f=x;v=void 0;(v=S.adSignalsInfo.params)==null||v.push({key:A,value:""+f})}var T,l;if(((T=S.client)==null?void 0:T.clientName)==="TVHTML5"||((l=S.client)==null?void 0:l.clientName)==="TVHTML5_UNPLUGGED"){var Q=g.Gq("INNERTUBE_CONTEXT");Q.adSignalsInfo&&(S.adSignalsInfo.advertisingId=Q.adSignalsInfo.advertisingId,S.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",S.adSignalsInfo.limitAdTracking=Q.adSignalsInfo.limitAdTracking)}}catch(L){g.LP(L)}return S}; xFl=function(v,O){if(!v)return!1;var Y,S=(Y=g.q(v,yrw))==null?void 0:Y.signal;if(S&&O.FX)return!!O.FX[S];var d;if((Y=(d=g.q(v,a_d))==null?void 0:d.request)&&O.Q0)return!!O.Q0[Y];for(var r in v)if(O.G7[r])return!0;return!1}; pQd=function(v){var O={"Content-Type":"application/json"};g.Gq("EOM_VISITOR_DATA")?O["X-Goog-EOM-Visitor-Id"]=g.Gq("EOM_VISITOR_DATA"):g.Gq("VISITOR_DATA")&&(O["X-Goog-Visitor-Id"]=g.Gq("VISITOR_DATA"));O["X-Youtube-Bootstrap-Logged-In"]=g.Gq("LOGGED_IN",!1);g.Gq("DEBUG_SETTINGS_METADATA")&&(O["X-Debug-Settings-Metadata"]=g.Gq("DEBUG_SETTINGS_METADATA"));v!=="cors"&&((v=g.Gq("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(O["X-Youtube-Client-Name"]=v),(v=g.Gq("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(O["X-Youtube-Client-Version"]= v),(v=g.Gq("CHROME_CONNECTED_HEADER"))&&(O["X-Youtube-Chrome-Connected"]=v),(v=g.Gq("DOMAIN_ADMIN_STATE"))&&(O["X-Youtube-Domain-Admin-State"]=v),g.Gq("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(v=g.Gq("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(O["X-YouTube-Lava-Device-Context"]=v));return O}; TTF=function(){this.Y={}}; gg=function(){this.mappings=new TTF}; M0=function(v){return function(){return new v}}; F_1=function(v){var O=O===void 0?"UNKNOWN_INTERFACE":O;if(v.length===1)return v[0];var Y=l_m[O];if(Y){Y=new RegExp(Y);for(var S=g.y(v),d=S.next();!d.done;d=S.next())if(d=d.value,Y.exec(d))return d}var r=[];Object.entries(l_m).forEach(function(b){var z=g.y(b);b=z.next().value;z=z.next().value;O!==b&&r.push(z)}); Y=new RegExp(r.join("|"));v.sort(function(b,z){return b.length-z.length}); S=g.y(v);for(d=S.next();!d.done;d=S.next())if(d=d.value,!Y.exec(d))return d;return v[0]}; g.V7=function(v){return"/youtubei/v1/"+F_1(v)}; A_=function(){}; fw=function(){}; $x=function(){}; kx=function(v){return g.il("ytcsi."+(v||"")+"data_")||hU$(v)}; RU3=function(){var v=kx();v.info||(v.info={});return v.info}; U4=function(v){v=kx(v);v.metadata||(v.metadata={});return v.metadata}; cT=function(v){v=kx(v);v.tick||(v.tick={});return v.tick}; u1=function(v){v=kx(v);if(v.gel){var O=v.gel;O.gelInfos||(O.gelInfos={});O.gelTicks||(O.gelTicks={})}else v.gel={gelTicks:{},gelInfos:{}};return v.gel}; eU1=function(v){v=u1(v);v.gelInfos||(v.gelInfos={});return v.gelInfos}; Cw=function(v){var O=kx(v).nonce;O||(O=g.a7(16),kx(v).nonce=O);return O}; hU$=function(v){var O={tick:{},info:{}};g.Gc("ytcsi."+(v||"")+"data_",O);return O}; y7=function(){var v=g.il("ytcsi.debug");v||(v=[],g.Gc("ytcsi.debug",v),g.Gc("ytcsi.reference",{}));return v}; at=function(v){v=v||"";var O=ECl();if(O[v])return O[v];var Y=y7(),S={timerName:v,info:{},tick:{},span:{},jspbInfo:[]};Y.push(S);return O[v]=S}; QM1=function(v){v=v||"";var O=ECl();O[v]&&delete O[v];var Y=y7(),S={timerName:v,info:{},tick:{},span:{},jspbInfo:[]};Y.push(S);O[v]=S}; ECl=function(){var v=g.il("ytcsi.reference");if(v)return v;y7();return g.il("ytcsi.reference")}; xx=function(v){return L_$[v]||"LATENCY_ACTION_UNKNOWN"}; pw=function(v,O){MF.call(this,1,arguments);this.KP=O}; TU=function(){this.Y=0}; l1=function(){TU.instance||(TU.instance=new TU);return TU.instance}; h_=function(v,O){FO[O]=FO[O]||{count:0};var Y=FO[O];Y.count++;Y.time=(0,g.J)();v.Y||(v.Y=g.NL(0,function(){var S=(0,g.J)(),d;for(d in FO)FO[d]&&S-FO[d].time>6E4&&delete FO[d];v&&(v.Y=0)},5E3)); return Y.count>5?(Y.count===6&&Math.random()*1E5<1&&(Y=new g.iK("CSI data exceeded logging limit with key",O.split("_")),O.indexOf("plev")>=0||g.Br(Y)),!0):!1}; BTn=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; ZRl=function(){var v;if(g.uF("csi_use_performance_navigation_timing")||g.uF("csi_use_performance_navigation_timing_tvhtml5")){var O,Y,S,d=Rt==null?void 0:(v=Rt.getEntriesByType)==null?void 0:(O=v.call(Rt,"navigation"))==null?void 0:(Y=O[0])==null?void 0:(S=Y.toJSON)==null?void 0:S.call(Y);d?(d.requestStart=eV(d.requestStart),d.responseEnd=eV(d.responseEnd),d.redirectStart=eV(d.redirectStart),d.redirectEnd=eV(d.redirectEnd),d.domainLookupEnd=eV(d.domainLookupEnd),d.connectStart=eV(d.connectStart), d.connectEnd=eV(d.connectEnd),d.responseStart=eV(d.responseStart),d.secureConnectionStart=eV(d.secureConnectionStart),d.domainLookupStart=eV(d.domainLookupStart),d.isPerformanceNavigationTiming=!0,v=d):v=Rt.timing}else v=g.uF("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Rt.timing)):Rt.timing;return v}; eV=function(v){return Math.round(E4()+v)}; E4=function(){return(g.uF("csi_use_time_origin")||g.uF("csi_use_time_origin_tvhtml5"))&&Rt.timeOrigin?Math.floor(Rt.timeOrigin):Rt.timing.navigationStart}; Lw=function(v,O){Q7("_start",v,O)}; BT=function(v,O){if(!g.uF("web_csi_action_sampling_enabled")||!kx(O).actionDisabled){var Y=at(O||"");M1(Y.info,v);v.loadType&&(Y=v.loadType,U4(O).loadType=Y);M1(eU1(O),v);Y=Cw(O);O=kx(O).cttAuthInfo;l1().info(v,Y,O)}}; XQl=function(){var v,O,Y,S;return((S=BG().resolve(R7(jx))==null?void 0:(v=WQ())==null?void 0:(O=v.loggingHotConfig)==null?void 0:(Y=O.csiConfig)==null?void 0:Y.debugTicks)!=null?S:[]).map(function(d){return Object.values(d)[0]})}; Q7=function(v,O,Y){if(!g.uF("web_csi_action_sampling_enabled")||!kx(Y).actionDisabled){var S=Cw(Y),d;if(d=g.uF("web_csi_debug_sample_enabled")&&S){(BG().resolve(R7(jx))==null?0:WQ())&&!wQF&&(wQF=!0,Q7("gcfl",(0,g.J)(),Y));var r,b,z;d=(BG().resolve(R7(jx))==null?void 0:(r=WQ())==null?void 0:(b=r.loggingHotConfig)==null?void 0:(z=b.csiConfig)==null?void 0:z.debugSampleWeight)||0;if(r=d!==0)b:{r=XQl();if(r.length>0)for(b=0;bY.duration?S:Y},{duration:0}))&&O.startTime>0&&O.responseEnd>0&&(Q7("wffs",eV(O.startTime)),Q7("wffe",eV(O.responseEnd)))}; GYJ=function(v,O,Y){Rt&&Rt.measure&&(v.startsWith("measure_")||(v="measure_"+v),Y?Rt.measure(v,O,Y):O?Rt.measure(v,O):Rt.measure(v))}; iRm=function(v){var O=Z9("aft",v);if(O)return O;O=g.Gq((v||"")+"TIMING_AFT_KEYS",["ol"]);for(var Y=O.length,S=0;S0&&BT(O);O={isNavigation:!0,actionType:xx(g.Gq("TIMING_ACTION"))};var Y=g.Gq("PREVIOUS_ACTION");Y&&(O.previousAction=xx(Y));if(Y=g.Gq("CLIENT_PROTOCOL"))O.httpProtocol=Y;if(Y=g.Gq("CLIENT_TRANSPORT"))O.transportProtocol=Y;(Y=g.TS())&&Y!=="UNDEFINED_CSN"&&(O.clientScreenNonce=Y);Y=nCE();if(Y===1||Y===-1)O.isVisible= !0;Y=U4().loadType==="cold";var S=RU3();Y||(Y=S.yt_lt==="cold");if(Y){O.loadType="cold";Y=RU3();S=ZRl();var d=E4(),r=g.Gq("CSI_START_TIMESTAMP_MILLIS",0);r>0&&!g.uF("embeds_web_enable_csi_start_override_killswitch")&&(d=r);d&&(Q7("srt",S.responseStart),Y.prerender!==1&&Lw(d));Y=DFl();Y>0&&Q7("fpt",Y);Y=ZRl();Y.isPerformanceNavigationTiming&&BT({performanceNavigationTiming:!0},void 0);Q7("nreqs",Y.requestStart,void 0);Q7("nress",Y.responseStart,void 0);Q7("nrese",Y.responseEnd,void 0);Y.redirectEnd- Y.redirectStart>0&&(Q7("nrs",Y.redirectStart,void 0),Q7("nre",Y.redirectEnd,void 0));Y.domainLookupEnd-Y.domainLookupStart>0&&(Q7("ndnss",Y.domainLookupStart,void 0),Q7("ndnse",Y.domainLookupEnd,void 0));Y.connectEnd-Y.connectStart>0&&(Q7("ntcps",Y.connectStart,void 0),Q7("ntcpe",Y.connectEnd,void 0));Y.secureConnectionStart>=E4()&&Y.connectEnd-Y.secureConnectionStart>0&&(Q7("nstcps",Y.secureConnectionStart,void 0),Q7("ntcpe",Y.connectEnd,void 0));Rt&&"getEntriesByType"in Rt&&PAg();Y=[];if(document.querySelector&& Rt&&Rt.getEntriesByName)for(var b in It)It.hasOwnProperty(b)&&(S=It[b],K_Q(b,S)&&Y.push(S));if(Y.length>0)for(O.resourceInfo=[],b=g.y(Y),Y=b.next();!Y.done;Y=b.next())O.resourceInfo.push({resourceCache:Y.value})}BT(O);O=u1();O.preLoggedGelInfos||(O.preLoggedGelInfos=[]);b=O.preLoggedGelInfos;O=eU1();Y=void 0;for(S=0;S-1&&(delete yd["@type"],P=yd);a&&v.U.has(a)&&v.U.delete(a);((Qd=O.config)==null?0:Qd.fqg)&&nw(O.config.fqg);if(P||(uL=v.G)==null||!uL.IKg(O.input,O.WA)){ll.d8(15);break}return g.E(ll,v.G.dU8(O.input,O.WA),16);case 16:P=ll.Y;case 15:return AIg(v,P,O),((jU=O.config)==null?0:jU.hag)&&nw(O.config.hag),S(),ll.return(P|| void 0)}})}; zf3=function(v,O){a:{v=v.Ks;var Y,S=(Y=g.q(O,yrw))==null?void 0:Y.signal;if(S&&v.FX&&(Y=v.FX[S])){var d=Y();break a}var r;if((Y=(r=g.q(O,a_d))==null?void 0:r.request)&&v.Q0&&(r=v.Q0[Y])){d=r();break a}for(d in O)if(v.G7[d]&&(O=v.G7[d])){d=O();break a}d=void 0}if(d!==void 0)return Promise.resolve(d)}; gTi=function(v,O,Y){var S,d,r,b,z,M,V;return g.B(function(A){if(A.U==1){r=((S=O)==null?void 0:(d=S.MG)==null?void 0:d.identity)||gT;M=(b=O)==null?void 0:(z=b.MG)==null?void 0:z.sessionIndex;var f=g.T7(v.Y.a_(r,{sessionIndex:M}));return g.E(A,f,2)}V=A.Y;return A.return(Promise.resolve(Object.assign({},pQd(Y),V)))})}; s7F=function(v,O,Y){var S,d=(O==null?void 0:(S=O.MG)==null?void 0:S.identity)||gT,r;O=O==null?void 0:(r=O.MG)==null?void 0:r.sessionIndex;v=v.Y.a_(d,{sessionIndex:O});return Object.assign({},pQd(Y),v)}; HT=function(){}; N0=function(){}; v3=function(v){this.C=v}; OX=function(){}; Yb=function(){}; Su=function(){}; df=function(){}; g.rf=function(v,O){var Y=g.Bm.apply(2,arguments);v=v===void 0?0:v;g.iK.call(this,O,Y);this.errorType=v;Object.setPrototypeOf(this,this.constructor.prototype)}; b2=function(v,O,Y,S){this.Y=v;this.U=O;this.G=Y;this.B=S}; $1i=function(v,O,Y){if(v.Y){var S=uT(hx(O,"key"))||"/UNKNOWN_PATH";v.Y.start(S)}S=Y;g.uF("wug_networking_gzip_request")&&(S=n0l(Y));var d;return new ((d=v.B)!=null?d:window.Request)(O,S)}; g.ju=function(v,O){if(!ox){var Y=BG();ek(Y,{FS:kIn,CA:b2});var S={G7:{feedbackEndpoint:M0(OX),modifyChannelNotificationPreferenceEndpoint:M0(Yb),playlistEditEndpoint:M0(Su),shareEntityEndpoint:M0(v3),subscribeEndpoint:M0(HT),unsubscribeEndpoint:M0(N0),webPlayerShareEntityServiceEndpoint:M0(df)}},d=vT.getInstance(),r={};d&&(r.client_location=d);v===void 0&&(v=DAJ());O===void 0&&(O=Y.resolve(kIn));WcF(S,O,v,r);ek(Y,{FS:U1$,Zc:mT.instance});ox=Y.resolve(U1$)}return ox}; cId=function(v){var O=new sC;if(v.interpreterJavascript){var Y=eOF(v.interpreterJavascript);Y=Yr(Y).toString();var S=new Wl;dy(S,6,Y);i3(O,Wl,1,S,lV)}else v.interpreterUrl&&(Y=x0(v.interpreterUrl),Y=w3(Y).toString(),S=new z_,dy(S,4,Y),i3(O,z_,2,S,lV));v.interpreterHash&&ry(O,3,v.interpreterHash,lV);v.program&&ry(O,4,v.program,lV);v.globalName&&ry(O,5,v.globalName,lV);v.clientExperimentsStateBlob&&ry(O,7,v.clientExperimentsStateBlob,lV);return O}; W3=function(v){var O={};v=v.split("&");v=g.y(v);for(var Y=v.next();!Y.done;Y=v.next())Y=Y.value.split("="),Y.length===2&&(O[Y[0]]=Y[1]);return O}; e1i=function(){if(g.uF("bg_st_hr"))return"havuokmhhs-0";var v,O=((v=performance)==null?void 0:v.timeOrigin)||0;return"havuokmhhs-"+Math.floor(O)}; zM=function(v){this.Y=v}; uy$=function(){return new Promise(function(v){var O=window.top;O.ntpevasrs!==void 0?v(new zM(O.ntpevasrs)):(O.ntpqfbel===void 0&&(O.ntpqfbel=[]),O.ntpqfbel.push(function(Y){v(new zM(Y))}))})}; yIF=function(){if(SQ()){var v=g.Gq("PLAYER_VARS",{});if(g.DK(v,"privembed",!1)!="1"&&!yBd(v)){var O=function(){sX=!0;"google_ad_status"in window?Pk("DCLKSTAT",1):Pk("DCLKSTAT",2)}; try{g.WG("//static.doubleclick.net/instream/ad_status.js",O)}catch(Y){}CjQ.push(g.qA.EK(function(){if(!(sX||"google_ad_status"in window)){try{if(O){var Y=""+g.OJ(O),S=pfi[Y];S&&g.o7(S)}}catch(d){}sX=!0;Pk("DCLKSTAT",3)}},5E3))}}}; gf=function(){var v=Number(g.Gq("DCLKSTAT",0));return isNaN(v)?0:v}; fL=function(v,O,Y){var S=this;this.network=v;this.options=O;this.U=Y;this.Y=null;if(O.Da8){var d=new g.Mf;this.Y=d.promise;g.Pm.ytAtRC&&Hp(function(){var r,b;return g.B(function(z){if(z.U==1){if(!g.Pm.ytAtRC)return z.return();r=MP(null);return g.E(z,VJ(S,r),2)}b=z.Y;g.Pm.ytAtRC&&g.Pm.ytAtRC(JSON.stringify(b));g.UE(z)})},2); uy$().then(function(r){var b,z,M,V;return g.B(function(A){if(A.U==1)return r.bindInnertubeChallengeFetcher(function(f){return VJ(S,MP(f))}),g.E(A,bU(),2); b=A.Y;z=r.getLatestChallengeResponse();M=z.challenge;if(!M)throw Error("BGE_MACIL");V={challenge:M,Ay:W3(M),zd:b,bgChallenge:new sC};d.resolve(V);r.registerChallengeFetchedCallback(function(f){f=f.challenge;if(!f)throw Error("BGE_MACR");f={challenge:f,Ay:W3(f),zd:b,bgChallenge:new sC};S.Y=Promise.resolve(f)}); g.UE(A)})})}else O.preload&&aM1(this,new Promise(function(r){g.NL(0,function(){r(A9(S))},0)}))}; MP=function(v){var O={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};v&&(O.interpreterHash=v);return O}; A9=function(v,O){O=O===void 0?0:O;var Y,S,d,r,b,z,M,V,A,f,k,U;return g.B(function(c){switch(c.U){case 1:Y=MP(fB().Y);if(g.uF("att_fet_ks"))return g.cm(c,7),g.E(c,VJ(v,Y),9);g.cm(c,4);return g.E(c,x11(v,Y),6);case 6:b=c.Y;d=b.ylK;r=b.sFx;S=b;g.ai(c,3);break;case 4:return g.Tc(c),g.Br(Error("Failed to fetch attestation challenge after "+(O+" attempts; not retrying for 24h."))),$b(v,864E5),c.return({challenge:"",Ay:{},zd:void 0,bgChallenge:void 0});case 9:S=c.Y;if(!S)throw Error("Fetching Attestation challenge returned falsy"); if(!S.challenge)throw Error("Missing Attestation challenge");d=S.challenge;r=W3(d);if("c1a"in r&&(!S.bgChallenge||!S.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.ai(c,3);break;case 7:z=g.Tc(c);g.Br(z);O++;if(O>=5)return g.Br(Error("Failed to fetch attestation challenge after "+(O+" attempts; not retrying for 24h."))),$b(v,864E5),c.return({challenge:"",Ay:{},zd:void 0,bgChallenge:void 0});M=1E3*Math.pow(2,O-1)+Math.random()*1E3;return c.return(new Promise(function(a){g.NL(0, function(){a(A9(v,O))},M)})); case 3:V=Number(r.t)||7200;$b(v,V*1E3);A=void 0;if(!("c1a"in r&&S.bgChallenge)){c.d8(10);break}f=cId(S.bgChallenge);g.cm(c,11);return g.E(c,eRm(fB(),f),13);case 13:g.ai(c,12);break;case 11:return k=g.Tc(c),g.Br(k),c.return({challenge:d,Ay:r,zd:A,bgChallenge:f});case 12:return g.cm(c,14),A=new Vl({challenge:f,yJ:{Yf:"aGIf"}}),g.E(c,A.oQ,16);case 16:g.ai(c,10);break;case 14:U=g.Tc(c),g.Br(U),A=void 0;case 10:return c.return({challenge:d,Ay:r,zd:A,bgChallenge:f})}})}; VJ=function(v,O){var Y;return g.B(function(S){Y=v.U;if(!Y||Y.hE())return S.return(VJ(v.network,O));i1("att_pna",void 0,"attestation_challenge_fetch");return S.return(new Promise(function(d){Y.sA("publicytnetworkstatus-online",function(){VJ(v.network,O).then(d)})}))})}; pGJ=function(v){if(!v)throw Error("Fetching Attestation challenge returned falsy");if(!v.challenge)throw Error("Missing Attestation challenge");var O=v.challenge,Y=W3(O);if("c1a"in Y&&(!v.bgChallenge||!v.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},v,{ylK:O,sFx:Y})}; x11=function(v,O){var Y,S,d,r,b;return g.B(function(z){switch(z.U){case 1:Y=void 0,S=0,d={};case 2:if(!(S<5)){z.d8(4);break}if(!(S>0)){z.d8(5);break}d.mp=1E3*Math.pow(2,S-1)+Math.random()*1E3;return g.E(z,new Promise(function(M){return function(V){g.NL(0,function(){V(void 0)},M.mp)}}(d)),5); case 5:return g.cm(z,7),g.E(z,VJ(v,O),9);case 9:return r=z.Y,z.return(pGJ(r));case 7:Y=b=g.Tc(z),b instanceof Error&&g.Br(b);case 8:S++;d={mp:void 0};z.d8(2);break;case 4:throw Y;}})}; aM1=function(v,O){v.Y=O}; TEQ=function(v){var O,Y,S;return g.B(function(d){if(d.U==1)return g.E(d,Promise.race([v.Y,null]),2);O=d.Y;var r=A9(v);v.Y=r;(Y=O)==null||(S=Y.zd)==null||S.dispose();g.UE(d)})}; $b=function(v,O){function Y(){var d;return g.B(function(r){d=S-Date.now();return d<1E3?g.E(r,TEQ(v),0):(Hp(Y,0,Math.min(d,6E4)),r.d8(0))})} var S=Date.now()+O;Y()}; lM1=function(v,O){return new Promise(function(Y){g.NL(0,function(){Y(O())},v)})}; g.Fcc=function(v,O){var Y;return g.B(function(S){var d=g.il("yt.aba.att");return(Y=d?d:fL.instance!==void 0?fL.instance.G.bind(fL.instance):null)?S.return(Y("ENGAGEMENT_TYPE_PLAYBACK",v,O)):S.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.hfi=function(){var v;return(v=(v=g.il("yt.aba.att2"))?v:fL.instance!==void 0?fL.instance.B.bind(fL.instance):null)?v():Promise.resolve(!1)}; ef3=function(v,O){var Y=g.il("ytDebugData.callbacks");Y||(Y={},g.Gc("ytDebugData.callbacks",Y));if(g.uF("web_dd_iu")||Rfi.includes(v))Y[v]=O}; kb=function(){var v=ETd;var O=O===void 0?[]:O;var Y=Y===void 0?[]:Y;O=pl$.apply(null,[TAJ.apply(null,g.F(O))].concat(g.F(Y)));this.store=FR$(v,void 0,O)}; g.UX=function(v,O,Y){for(var S=Object.assign({},v),d=g.y(Object.keys(O)),r=d.next();!r.done;r=d.next()){r=r.value;var b=v[r],z=O[r];if(z===void 0)delete S[r];else if(b===void 0)S[r]=z;else if(Array.isArray(z)&&Array.isArray(b))S[r]=Y?[].concat(g.F(b),g.F(z)):z;else if(!Array.isArray(z)&&g.N$(z)&&!Array.isArray(b)&&g.N$(b))S[r]=g.UX(b,z,Y);else if(typeof z===typeof b)S[r]=z;else return O=new g.iK("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:r,w1s:b,updateValue:z}),g.LP(O), v}return S}; c3=function(v){var O=this;v=v===void 0?[]:v;this.Hj=[];this.J2=this.FM=0;this.DJ=void 0;this.totalLength=0;v.forEach(function(Y){O.append(Y)})}; Q7Q=function(v,O){return v.Hj.length===0?!1:(v=v.Hj[v.Hj.length-1])&&v.buffer===O.buffer&&v.byteOffset+v.length===O.byteOffset}; u2=function(v,O){O=g.y(O.Hj);for(var Y=O.next();!Y.done;Y=O.next())v.append(Y.value)}; CL=function(v,O,Y){return v.split(O).M6.split(Y).I5}; yJ=function(v){v.DJ=void 0;v.FM=0;v.J2=0}; ax=function(v,O,Y){v.isFocused(O);return O-v.J2+Y<=v.Hj[v.FM].length}; Lcn=function(v){if(!v.DJ){var O=v.Hj[v.FM];v.DJ=new DataView(O.buffer,O.byteOffset,O.length)}return v.DJ}; xb=function(v,O,Y){v=v.ov(O===void 0?0:O,Y===void 0?-1:Y);O=new Uint8Array(v.length);try{O.set(v)}catch(S){for(Y=0;Y>10;r=56320|r&1023}l2[d++]=r}}r=String.fromCharCode.apply(String,l2); d<1024&&(r=r.substring(0,d));Y.push(r)}return Y.join("")}; Rx=function(v,O){var Y;if((Y=h9)==null?0:Y.encodeInto)return O=h9.encodeInto(v,O),O.read>6|192:((d&64512)===55296&&S+1>18|240,O[Y++]=d>>12&63|128):O[Y++]=d>>12|224,O[Y++]=d>>6&63|128),O[Y++]=d&63|128)}return Y}; eu=function(v){if(h9)return h9.encode(v);var O=new Uint8Array(Math.ceil(v.length*1.2)),Y=Rx(v,O);O.lengthY&&(O=O.subarray(0,Y));return O}; EX=function(v){this.Y=v;this.pos=0;this.U=-1}; QJ=function(v){var O=v.Y.getUint8(v.pos);++v.pos;if(O<128)return O;for(var Y=O&127,S=1;O>=128;)O=v.Y.getUint8(v.pos),++v.pos,S*=128,Y+=(O&127)*S;return Y}; LL=function(v,O){var Y=v.U;for(v.U=-1;v.Y.Ej(v.pos,1);){Y<0&&(Y=QJ(v));var S=Y>>3,d=Y&7;if(S===O)return!0;if(S>O){v.U=Y;break}Y=-1;switch(d){case 0:QJ(v);break;case 1:v.pos+=8;break;case 2:S=QJ(v);v.pos+=S;break;case 5:v.pos+=4}}return!1}; B3=function(v,O){if(LL(v,O))return QJ(v)}; Zu=function(v,O){if(LL(v,O))return!!QJ(v)}; XA=function(v,O){if(LL(v,O)){O=QJ(v);var Y=v.Y.ov(v.pos,O);v.pos+=O;return Y}}; wf=function(v,O){if(v=XA(v,O))return g.FA(v)}; Ix=function(v,O,Y){if(v=XA(v,O))return Y(new EX(new c3([v])))}; qP=function(v,O){for(var Y=[];LL(v,O);)Y.push(QJ(v));return Y.length?Y:void 0}; nL=function(v,O,Y){for(var S=[],d;d=XA(v,O);)S.push(Y(new EX(new c3([d]))));return S.length?S:void 0}; J9=function(v,O){v=v instanceof Uint8Array?new c3([v]):v;return O(new EX(v))}; XG1=function(v,O,Y){if(O&&Y&&Y.buffer===O.exports.memory.buffer){var S=O.realloc(Y.byteOffset,v);if(S)return new Uint8Array(O.exports.memory.buffer,S,v)}v=O?new Uint8Array(O.exports.memory.buffer,O.malloc(v),v):new Uint8Array(v);Y&&v.set(Y);return v}; wGJ=function(v,O){this.G=O;this.pos=0;this.U=[];this.Y=XG1(v===void 0?4096:v,O);this.view=new DataView(this.Y.buffer,this.Y.byteOffset,this.Y.byteLength)}; KL=function(v,O){O=v.pos+O;if(!(v.Y.length>=O)){for(var Y=v.Y.length*2;Y268435455){KL(v,4);for(var Y=O&1073741823,S=0;S<4;S++)v.view.setUint8(v.pos,Y&127|128),Y>>=7,v.pos+=1;O=Math.floor(O/268435456)}for(KL(v,4);O>127;)v.view.setUint8(v.pos,O&127|128),O>>=7,v.pos+=1;v.view.setUint8(v.pos,O);v.pos+=1}; GM=function(v,O,Y){Y!==void 0&&(P3(v,O*8),P3(v,Y))}; i2=function(v,O,Y){Y!==void 0&&GM(v,O,Y?1:0)}; mU=function(v,O,Y){Y!==void 0&&(P3(v,O*8+2),O=Y.length,P3(v,O),KL(v,O),v.Y.set(Y,v.pos),v.pos+=O)}; t9=function(v,O,Y){Y!==void 0&&(IMQ(v,O,Math.ceil(Math.log2(Y.length*4+2)/7)),KL(v,Y.length*1.2),O=Rx(Y,v.Y.subarray(v.pos)),v.pos+O>v.Y.length&&(KL(v,O),O=Rx(Y,v.Y.subarray(v.pos))),v.pos+=O,qa1(v))}; IMQ=function(v,O,Y){Y=Y===void 0?2:Y;P3(v,O*8+2);v.U.push(v.pos);v.U.push(Y);v.pos+=Y}; qa1=function(v){for(var O=v.U.pop(),Y=v.U.pop(),S=v.pos-Y-O;O--;){var d=O?128:0;v.view.setUint8(Y++,S&127|d);S>>=7}}; Du=function(v,O,Y,S,d){Y&&(IMQ(v,O,d===void 0?3:d),S(v,Y),qa1(v))}; g.H3=function(v,O,Y){Y=new wGJ(4096,Y);O(Y,v);return new Uint8Array(Y.Y.buffer,Y.Y.byteOffset,Y.pos)}; g.We=function(v){var O=new EX(new c3([jl(decodeURIComponent(v))]));v=wf(O,2);O=B3(O,4);var Y=nTE[O];if(typeof Y==="undefined")throw v=new g.iK("Failed to recognize field number",{name:"EntityKeyHelperError",ooc:O}),g.LP(v),v;return{xS:O,entityType:Y,entityId:v}}; g.zh=function(v,O){var Y=Y===void 0?0:Y;var S=new wGJ;mU(S,2,eu(v));v=JIc[O];if(typeof v==="undefined")throw Y=new g.iK("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:O}),g.LP(Y),Y;GM(S,4,v);GM(S,5,1);O=new Uint8Array(S.Y.buffer,S.Y.byteOffset,S.pos);return encodeURIComponent(g.bV(O,Y))}; sd=function(v,O,Y,S){if(S===void 0)return S=Object.assign({},v[O]||{}),Y=(delete S[Y],S),S={},Object.assign({},v,(S[O]=Y,S));var d={},r={};return Object.assign({},v,(r[O]=Object.assign({},v[O],(d[Y]=S,d)),r))}; Kcw=function(v,O,Y,S,d){var r=v[O];if(r==null||!r[Y])return v;S=g.UX(r[Y],S,d==="REPEATED_FIELDS_MERGE_OPTION_APPEND");d={};r={};return Object.assign({},v,(r[O]=Object.assign({},v[O],(d[Y]=S,d)),r))}; Pj1=function(v,O){v=v===void 0?{}:v;switch(O.type){case "ENTITY_LOADED":return O.payload.reduce(function(S,d){var r,b=(r=d.options)==null?void 0:r.persistenceOption;if(b&&b!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&b!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return S;if(!d.entityKey)return g.LP(Error("Missing entity key")),S;if(d.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!d.payload)return d=new g.iK("REPLACE entity mutation is missing a payload",{entityKey:d.entityKey}),g.LP(d),S;var z=g.nC(d.payload); return sd(S,z,d.entityKey,d.payload[z])}if(d.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{d=d.entityKey;try{var M=g.We(d).entityType;z=sd(S,M,d);break a}catch(f){if(f instanceof Error){d=new g.iK("Failed to deserialize entity key",{entityKey:d,originalMessage:f.message});g.LP(d);z=S;break a}throw f;}z=void 0}return z}if(d.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!d.payload)return d=new g.iK("UPDATE entity mutation is missing a payload",{entityKey:d.entityKey}),g.LP(d),S;z=g.nC(d.payload);var V,A;return Kcw(S, z,d.entityKey,d.payload[z],(V=d.fieldMask)==null?void 0:(A=V.mergeOptions)==null?void 0:A.repeatedFieldsMergeOption)}return S},v); case "REPLACE_ENTITY":var Y=O.payload;return sd(v,Y.entityType,Y.key,Y.R$);case "REPLACE_ENTITIES":return Object.keys(O.payload).reduce(function(S,d){var r=O.payload[d];return Object.keys(r).reduce(function(b,z){return sd(b,d,z,r[z])},S)},v); case "UPDATE_ENTITY":return Y=O.payload,Kcw(v,Y.entityType,Y.key,Y.R$,Y.Veg);default:return v}}; g$=function(v,O,Y){return v[O]?v[O][Y]||null:null}; M8=function(v){return window.Int32Array?new Int32Array(v):Array(v)}; Ud=function(v){g.X.call(this);this.counter=[0,0,0,0];this.U=new Uint8Array(16);this.Y=16;if(!GIi){var O,Y=new Uint8Array(256),S=new Uint8Array(256);var d=1;for(O=0;O<256;O++)Y[d]=O,S[O]=d,d^=d<<1^(d>>7&&283);Vn=new Uint8Array(256);Ap=M8(256);fb=M8(256);$l=M8(256);kl=M8(256);for(var r=0;r<256;r++){d=r?S[255^Y[r]]:0;d^=d<<1^d<<2^d<<3^d<<4;d=d&255^d>>>8^99;Vn[r]=d;O=d<<1^(d>>7&&283);var b=O^d;Ap[r]=O<<24|d<<16|d<<8|b;fb[r]=b<<24|Ap[r]>>>8;$l[r]=d<<24|fb[r]>>>8;kl[r]=d<<24|$l[r]>>>8}GIi=!0}d=M8(44);for(Y= 0;Y<4;Y++)d[Y]=v[4*Y]<<24|v[4*Y+1]<<16|v[4*Y+2]<<8|v[4*Y+3];for(S=1;Y<44;Y++)v=d[Y-1],Y%4||(v=(Vn[v>>16&255]^S)<<24|Vn[v>>8&255]<<16|Vn[v&255]<<8|Vn[v>>>24],S=S<<1^(S>>7&&283)),d[Y]=d[Y-4]^v;this.key=d}; ce=function(v,O){for(var Y=0;Y<4;Y++)v.counter[Y]=O[Y*4]<<24|O[Y*4+1]<<16|O[Y*4+2]<<8|O[Y*4+3];v.Y=16}; i81=function(v){for(var O=v.key,Y=v.counter[0]^O[0],S=v.counter[1]^O[1],d=v.counter[2]^O[2],r=v.counter[3]^O[3],b=3;b>=0&&!(v.counter[b]=-~v.counter[b]);b--);for(var z,M,V=4;V<40;)b=Ap[Y>>>24]^fb[S>>16&255]^$l[d>>8&255]^kl[r&255]^O[V++],z=Ap[S>>>24]^fb[d>>16&255]^$l[r>>8&255]^kl[Y&255]^O[V++],M=Ap[d>>>24]^fb[r>>16&255]^$l[Y>>8&255]^kl[S&255]^O[V++],r=Ap[r>>>24]^fb[Y>>16&255]^$l[S>>8&255]^kl[d&255]^O[V++],Y=b,S=z,d=M;v=v.U;b=O[40];v[0]=Vn[Y>>>24]^b>>>24;v[1]=Vn[S>>16&255]^b>>16&255;v[2]=Vn[d>>8&255]^ b>>8&255;v[3]=Vn[r&255]^b&255;b=O[41];v[4]=Vn[S>>>24]^b>>>24;v[5]=Vn[d>>16&255]^b>>16&255;v[6]=Vn[r>>8&255]^b>>8&255;v[7]=Vn[Y&255]^b&255;b=O[42];v[8]=Vn[d>>>24]^b>>>24;v[9]=Vn[r>>16&255]^b>>16&255;v[10]=Vn[Y>>8&255]^b>>8&255;v[11]=Vn[S&255]^b&255;b=O[43];v[12]=Vn[r>>>24]^b>>>24;v[13]=Vn[Y>>16&255]^b>>16&255;v[14]=Vn[S>>8&255]^b>>8&255;v[15]=Vn[d&255]^b&255}; yn=function(){if(!uc&&!g.i9){if(Cb)return Cb;var v;Cb=(v=window.crypto)==null?void 0:v.subtle;var O,Y,S;if(((O=Cb)==null?0:O.importKey)&&((Y=Cb)==null?0:Y.sign)&&((S=Cb)==null?0:S.encrypt))return Cb;Cb=void 0}}; g.a9=function(v){this.U=v}; m11=function(v,O,Y,S){var d,r;return g.B(function(b){switch(b.U){case 1:if(v.G){b.d8(2);break}return g.E(b,S.importKey("raw",v.U,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:v.G=b.Y;case 2:return d={name:"AES-CTR",counter:Y,length:128},g.E(b,S.encrypt(d,v.G,O),4);case 4:return r=b.Y,b.return(new Uint8Array(r))}})}; tkJ=function(v,O,Y){v.Y||(v.Y=new Ud(v.U));ce(v.Y,Y);return v.Y.encrypt(O)}; g.xl=function(v){this.U=v}; pb=function(v){this.Z=new Uint8Array(64);this.G=new Uint8Array(64);this.B=0;this.C=new Uint8Array(64);this.U=0;this.Z.set(v);this.G.set(v);for(v=0;v<64;v++)this.Z[v]^=92,this.G[v]^=54;this.reset()}; D1n=function(v,O,Y){for(var S=v.L,d=v.Y[0],r=v.Y[1],b=v.Y[2],z=v.Y[3],M=v.Y[4],V=v.Y[5],A=v.Y[6],f=v.Y[7],k,U,c,a=0;a<64;)a<16?(S[a]=c=O[Y]<<24|O[Y+1]<<16|O[Y+2]<<8|O[Y+3],Y+=4):(k=S[a-2],U=S[a-15],c=S[a-7]+S[a-16]+((k>>>17|k<<15)^(k>>>19|k<<13)^k>>>10)+((U>>>7|U<<25)^(U>>>18|U<<14)^U>>>3),S[a]=c),k=f+Th[a]+c+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&V^~M&A),U=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&r^d&b^r&b),f=k+U,z+=k,a++,a<16?(S[a]=c=O[Y]<<24|O[Y+1]<<16|O[Y+2]<<8|O[Y+3],Y+=4):(k= S[a-2],U=S[a-15],c=S[a-7]+S[a-16]+((k>>>17|k<<15)^(k>>>19|k<<13)^k>>>10)+((U>>>7|U<<25)^(U>>>18|U<<14)^U>>>3),S[a]=c),k=A+Th[a]+c+((z>>>6|z<<26)^(z>>>11|z<<21)^(z>>>25|z<<7))+(z&M^~z&V),U=((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(f&d^f&r^d&r),A=k+U,b+=k,a++,a<16?(S[a]=c=O[Y]<<24|O[Y+1]<<16|O[Y+2]<<8|O[Y+3],Y+=4):(k=S[a-2],U=S[a-15],c=S[a-7]+S[a-16]+((k>>>17|k<<15)^(k>>>19|k<<13)^k>>>10)+((U>>>7|U<<25)^(U>>>18|U<<14)^U>>>3),S[a]=c),k=V+Th[a]+c+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&z^ ~b&M),U=((A>>>2|A<<30)^(A>>>13|A<<19)^(A>>>22|A<<10))+(A&f^A&d^f&d),V=k+U,r+=k,a++,a<16?(S[a]=c=O[Y]<<24|O[Y+1]<<16|O[Y+2]<<8|O[Y+3],Y+=4):(k=S[a-2],U=S[a-15],c=S[a-7]+S[a-16]+((k>>>17|k<<15)^(k>>>19|k<<13)^k>>>10)+((U>>>7|U<<25)^(U>>>18|U<<14)^U>>>3),S[a]=c),k=M+Th[a]+c+((r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7))+(r&b^~r&z),U=((V>>>2|V<<30)^(V>>>13|V<<19)^(V>>>22|V<<10))+(V&A^V&f^A&f),c=f,f=z,z=c,c=A,A=b,b=c,c=V,V=r,r=c,M=d+k,d=k+U,a++;v.Y[0]=d+v.Y[0]|0;v.Y[1]=r+v.Y[1]|0;v.Y[2]=b+v.Y[2]|0;v.Y[3]= z+v.Y[3]|0;v.Y[4]=M+v.Y[4]|0;v.Y[5]=V+v.Y[5]|0;v.Y[6]=A+v.Y[6]|0;v.Y[7]=f+v.Y[7]|0}; NEF=function(v){var O=new Uint8Array(32),Y=64-v.U;v.U>55&&(Y+=64);var S=new Uint8Array(Y);S[0]=128;for(var d=v.B*8,r=1;r<9;r++){var b=d%256;S[Y-r]=b;d=(d-b)/256}v.update(S);for(Y=0;Y<8;Y++)O[Y*4]=v.Y[Y]>>>24,O[Y*4+1]=v.Y[Y]>>>16&255,O[Y*4+2]=v.Y[Y]>>>8&255,O[Y*4+3]=v.Y[Y]&255;H8F(v);return O}; H8F=function(v){v.Y=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];v.L=[];v.L.length=64;v.B=0;v.U=0}; vsd=function(v){this.Y=v}; OPQ=function(v,O,Y){v=new pb(v.Y);v.update(O);v.update(Y);O=NEF(v);v.update(v.Z);v.update(O);O=NEF(v);v.reset();return O}; YPg=function(v){this.U=v}; SPg=function(v,O,Y,S){var d,r,b;return g.B(function(z){switch(z.U){case 1:if(v.Y){z.d8(2);break}return g.E(z,S.importKey("raw",v.U,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:v.Y=z.Y;case 2:return d=new Uint8Array(O.length+Y.length),d.set(O),d.set(Y,O.length),r={name:"HMAC",hash:"SHA-256"},g.E(z,S.sign(r,v.Y,d),4);case 4:return b=z.Y,z.return(new Uint8Array(b))}})}; del=function(v,O,Y){v.G||(v.G=new vsd(v.U));return OPQ(v.G,O,Y)}; rTd=function(v,O,Y){var S,d;return g.B(function(r){if(r.U==1){S=yn();if(!S)return r.return(del(v,O,Y));g.cm(r,3);return g.E(r,SPg(v,O,Y,S),5)}if(r.U!=3)return r.return(r.Y);d=g.Tc(r);g.Br(d);uc=!0;return r.return(del(v,O,Y))})}; os3=function(v){for(var O="",Y=0;Y=1?v[v.length-1]:null;for(var S=g.y(v),d=S.next();!d.done;d=S.next())if(d=d.value,d.width&&d.height&&(Y&&d.width>=O||!Y&&d.height>=O))return d;for(O=v.length-1;O>=0;O--)if(Y&&v[O].width||!Y&&v[O].height)return v[O];return v[0]}; Fh=function(){this.state=1;this.zd=null;this.SZ=void 0}; Ued=function(v,O,Y,S,d,r){var b=b===void 0?"trayride":b;Y?(v.uM(2),g.WG(Y,function(){if(window[b])kSd(v,S,b,d);else{v.uM(3);var z=xS1(Y),M=document.getElementById(z);M&&(yyl(z),M.parentNode.removeChild(M));g.Br(new g.iK("BL:ULB",""+Y))}},r)):O?(r=g.tc("SCRIPT"),O instanceof O7?(r.textContent=Yr(O),SR(r)):r.textContent=O,r.nonce=vE(document),document.head.appendChild(r),document.head.removeChild(r),window[b]?kSd(v,S,b,d):(v.uM(4),g.Br(new g.iK("BL:ULBJ")))):g.Br(new g.iK("BL:ULV"))}; kSd=function(v,O,Y,S){v.uM(5);var d=!!v.SZ&&cTQ.includes(g.c4(v.SZ)||"");try{var r=new Vl({program:O,globalName:Y,yJ:{disable:!g.uF("att_web_record_metrics")||!g.uF("att_skip_metrics_for_cookieless_domains_ks")&&d,Yf:"aGIf"}});r.oQ.then(function(){v.uM(6);S&&S(O)}); v.hs(r)}catch(b){v.uM(7),b instanceof Error&&g.Br(b)}}; hp=function(){var v=g.il("yt.abuse.playerAttLoader");return v&&["bgvma","bgvmb","bgvmc"].every(function(O){return O in v})?v:null}; R9=function(){Fh.apply(this,arguments)}; ec=function(){}; ufg=function(v,O,Y){for(var S=!1,d=g.y(v.HP.entries()),r=d.next();!r.done;r=d.next())r=g.y(r.value).next().value,r.slotType==="SLOT_TYPE_PLAYER_BYTES"&&r.w8==="core"&&(S=!0);if(S){a:if(!Y){v=g.y(v.HP.entries());for(Y=v.next();!Y.done;Y=v.next())if(S=g.y(Y.value),Y=S.next().value,S=S.next().value,Y.slotType==="SLOT_TYPE_IN_PLAYER"&&Y.w8==="core"){Y=S.layoutId;break a}Y=void 0}Y?O.zL(Y):f_("No triggering layout ID available when attempting to mute.")}}; Ed=function(v,O){this.TY=v;this.gS=O}; Qn=function(){}; Lb=function(){}; yTQ=function(v){g.X.call(this);var O=this;this.K_=v;this.Y=new Map;Be(this,"commandExecutorCommand",function(Y,S,d){C5F(O,Y.commands,S,d)}); Be(this,"clickTrackingParams",function(){})}; aXi=function(v,O){Be(v,O.Pb(),function(Y,S,d){O.b1(Y,S,d)})}; Be=function(v,O,Y){v.vW();v.Y.get(O)&&g.LP(Error("Extension name "+O+" already registered"));v.Y.set(O,Y)}; C5F=function(v,O,Y,S){O=O===void 0?[]:O;v.vW();var d=[],r=[];O=g.y(O);for(var b=O.next();!b.done;b=O.next())b=b.value,g.q(b,xeF)||g.q(b,pr1)?d.push(b):r.push(b);d=g.y(d);for(O=d.next();!O.done;O=d.next())ZL(v,O.value,Y,S);r=g.y(r);for(d=r.next();!d.done;d=r.next())ZL(v,d.value,Y,S)}; ZL=function(v,O,Y,S){v.vW();O.loggingUrls&&TNi(v,"loggingUrls",O.loggingUrls,Y,S);O=g.y(Object.entries(O));for(var d=O.next();!d.done;d=O.next()){var r=g.y(d.value);d=r.next().value;r=r.next().value;d==="openPopupAction"?v.K_.get().Pd("innertubeCommand",{openPopupAction:r}):d==="confirmDialogEndpoint"?v.K_.get().Pd("innertubeCommand",{confirmDialogEndpoint:r}):lXF.hasOwnProperty(d)||TNi(v,d,r,Y,S)}}; TNi=function(v,O,Y,S,d){if((v=v.Y.get(O))&&typeof v==="function")try{v(Y,S,d)}catch(r){g.LP(r)}else O=new g.iK("Unhandled field",O),g.Br(O)}; Xh=function(v,O,Y){this.Mp=v;this.Y=O;this.L1=Y;ek(BG(),{FS:fXQ,CA:ATm})}; w$=function(v){this.value=v}; I9=function(v){this.value=v}; q8=function(v){this.value=v}; nb=function(v){this.value=v}; Jp=function(v){this.value=v}; Kb=function(v){this.value=v}; Pe=function(v){this.value=v}; Gh=function(){w$.apply(this,arguments)}; ic=function(v){this.value=v}; mu=function(v){this.value=v}; tp=function(v){this.value=v}; DL=function(v){this.value=v}; He=function(v){this.value=v}; N8=function(v){this.value=v}; v1=function(v){this.value=v}; O$=function(v){this.value=v}; Yo=function(v){this.value=v}; S7=function(v){this.value=v}; dI=function(){w$.apply(this,arguments)}; rI=function(v){this.value=v}; b$=function(v){this.value=v}; oD=function(v){this.value=v}; j7=function(v){this.value=v}; W1=function(v){this.value=v}; zG=function(v){this.value=v}; s$=function(v){this.value=v}; gI=function(v){this.value=v}; MH=function(v){this.value=v}; Vw=function(v){this.value=v}; Ae=function(v){this.value=v}; fM=function(v){this.value=v}; $o=function(v){this.value=v}; ko=function(v){this.value=v}; U$=function(v){this.value=v}; c1=function(v){this.value=v}; u$=function(v){this.value=v}; CM=function(v){this.value=v}; yw=function(v){this.value=v}; aD=function(v){this.value=v}; xo=function(v){this.value=v}; pM=function(v){this.value=v}; TG=function(v){this.value=v}; l$=function(v){this.value=v}; Fq=function(v){this.value=v}; he=function(v){this.value=v}; RD=function(v){this.value=v}; e7=function(v){this.value=v}; E$=function(v){this.value=v}; Qw=function(v){this.value=v}; LM=function(v){this.value=v}; B1=function(v){this.value=v}; Zh=function(v){this.value=v}; Xq=function(v){this.value=v}; wI=function(v){this.value=v}; ID=function(v){this.value=v}; qH=function(v){this.value=v}; nM=function(v){this.value=v}; Je=function(){w$.apply(this,arguments)}; KM=function(v){this.value=v}; P1=function(){w$.apply(this,arguments)}; GG=function(){w$.apply(this,arguments)}; i$=function(){w$.apply(this,arguments)}; mv=function(){w$.apply(this,arguments)}; te=function(){w$.apply(this,arguments)}; Dh=function(v){this.value=v}; H1=function(v){this.value=v}; NH=function(v){this.value=v}; vv=function(v){this.value=v}; OV=function(v){this.value=v}; SG=function(v,O,Y){if(Y&&!Y.includes(v.layoutType))return!1;O=g.y(O);for(Y=O.next();!Y.done;Y=O.next())if(!YV(v.clientMetadata,Y.value))return!1;return!0}; dL=function(){return""}; FSQ=function(v,O){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 O(v),8}}; rL=function(v,O,Y,S){S=S===void 0?!1:S;W0.call(this,v);this.Fp=Y;this.GM=S;this.args=[];O&&this.args.push(O)}; m=function(v,O,Y,S){S=S===void 0?!1:S;W0.call(this,v);this.Fp=Y;this.GM=S;this.args=[];O&&this.args.push(O)}; bx=function(v){var O=new Map;v.forEach(function(Y){O.set(Y.Y(),Y)}); this.Y=O}; YV=function(v,O){return v.Y.has(O)}; oj=function(v,O){v=v.Y.get(O);if(v!==void 0)return v.get()}; jG=function(v){return Array.from(v.Y.keys())}; Wv=function(v,O,Y){if(Y&&Y!==v.slotType)return!1;O=g.y(O);for(Y=O.next();!Y.done;Y=O.next())if(!YV(v.clientMetadata,Y.value))return!1;return!0}; R0$=function(v){var O;return((O=h0m.get(v))==null?void 0:O.k_)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; sV=function(v,O){var Y={type:O.slotType,controlFlowManagerLayer:e0i.get(O.w8)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};O.slotEntryTrigger&&(Y.entryTriggerType=O.slotEntryTrigger.triggerType);O.slotPhysicalPosition!==1&&(Y.slotPhysicalPosition=O.slotPhysicalPosition);if(v){Y.debugData={slotId:O.slotId};if(v=O.slotEntryTrigger)Y.debugData.slotEntryTriggerData=zb(v);v=O.slotFulfillmentTriggers;Y.debugData.fulfillmentTriggerData=[];v=g.y(v);for(var S=v.next();!S.done;S=v.next())Y.debugData.fulfillmentTriggerData.push(zb(S.value)); O=O.slotExpirationTriggers;Y.debugData.expirationTriggerData=[];O=g.y(O);for(v=O.next();!v.done;v=O.next())Y.debugData.expirationTriggerData.push(zb(v.value))}return Y}; Esm=function(v,O){var Y={type:O.layoutType,controlFlowManagerLayer:e0i.get(O.w8)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};v&&(Y.debugData={layoutId:O.layoutId});return Y}; zb=function(v,O){var Y={type:v.triggerType};O!=null&&(Y.category=O);v.triggeringSlotId!=null&&(Y.triggerSourceData||(Y.triggerSourceData={}),Y.triggerSourceData.associatedSlotId=v.triggeringSlotId);v.triggeringLayoutId!=null&&(Y.triggerSourceData||(Y.triggerSourceData={}),Y.triggerSourceData.associatedLayoutId=v.triggeringLayoutId);return Y}; Qmg=function(v,O,Y,S){O={opportunityType:O};v&&(S||Y)&&(S=g.DQ(S||[],function(d){return sV(v,d)}),O.debugData=Object.assign({},Y&&Y.length>0?{associatedSlotId:Y}:{},S.length>0?{slots:S}:{})); return O}; Mt=function(v,O){return function(Y){return LSJ(gL(v),O.slotId,O.slotType,O.slotPhysicalPosition,O.w8,O.slotEntryTrigger,O.slotFulfillmentTriggers,O.slotExpirationTriggers,Y.layoutId,Y.layoutType,Y.w8)}}; LSJ=function(v,O,Y,S,d,r,b,z,M,V,A){return{adClientDataEntry:{slotData:sV(v,{slotId:O,slotType:Y,slotPhysicalPosition:S,w8:d,slotEntryTrigger:r,slotFulfillmentTriggers:b,slotExpirationTriggers:z,clientMetadata:new bx([])}),layoutData:Esm(v,{layoutId:M,layoutType:V,w8:A,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],Ge:new Map,clientMetadata:new bx([]),Lj:{}})}}}; AE=function(v){this.e4=v;v=Math.random();var O=this.e4.get();O=g.Vq(O.N.D().experiments,"html5_debug_data_log_probability");O=Number.isFinite(O)&&O>=0&&O<=1?O:0;this.Y=v1){g.Br(new g.iK("Exit already started",{current:v.currentState}));var Y=!1}else Y=!0;if(!Y)return!1;v.currentState=2;v.Y=O;return!0}; ca=function(v){if(v.currentState!==2)return!1;v.currentState=3;return!0}; g81=function(v,O){var Y=new Map;v=g.y(v);for(var S=v.next();!S.done;S=v.next()){S=S.value;if(S.layoutType==="LAYOUT_TYPE_MEDIA")var d="v";else S.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(d=oj(S.clientMetadata,"metadata_type_linked_in_player_layout_type"),d=d==="LAYOUT_TYPE_ENDCAP"||d==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":d==="LAYOUT_TYPE_SURVEY"?"s":d==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):d="u";Y.set(S.layoutId,d);if(d==="u"){var r={};d=O;S=(r.c=S.layoutId,r);d.N.G0("uct",S)}}v= O.W7();uJ={contentCpn:v,Uc:Y};S={};Y=(S.ct=Y.size,S.c=v,S);O.N.G0("acc",Y)}; Mdd=function(){uJ={contentCpn:"",Uc:new Map}}; CD=function(v){var O;return(O=uJ.Uc.get(v))!=null?O:"u"}; y9=function(v,O,Y){v.N.G0(O,Y);Vdn(v)}; A1J=function(v){var O=v.layoutId,Y=v.QB;if(v.dS){var S={};y9(v.Mp,"slso",(S.ec=O,S.is=Y,S.ctp=CD(O),S))}}; aA=function(v){var O=v.layoutId,Y=v.QB;if(v.dS){var S={};y9(v.Mp,"slse",(S.ec=O,S.is=Y,S.ctp=CD(O),S))}}; fYw=function(v){var O=v.layoutId,Y=v.QB,S=v.Mp;v.dS&&(v={},y9(S,"sleo",(v.xc=O,v.is=Y,v.ctp=CD(O),v)),Vdn(S))}; $B3=function(v){var O=v.cpn,Y=v.Mp;v=v.QB;var S=Y.W7(),d={};y9(Y,"ce",(d.ec=O,d.ia=O!==S,d.r=uJ.Uc.has(O),d.is=v,d.ctp=CD(O),d))}; Vdn=function(v){if(v.W7()!==uJ.contentCpn){var O={};O=(O.c=uJ.contentCpn,O);v.N.G0("ccm",O)}}; kXm=function(v){var O=v.cpn,Y=v.Mp;v=v.QB;var S=Y.W7(),d={};y9(Y,"cx",(d.xc=O,d.ia=O!==S,d.r=uJ.Uc.has(O),d.is=v,d.ctp=CD(O),d))}; UBc=function(v){this.params=v;this.Y=new Set}; c1i=function(v,O,Y){if(!v.Y.has(O)){v.Y.add(O);var S={};v.params.Im.Yy(O,Object.assign({},Y,(S.p_ac=v.params.adCpn,S.p_isv=v.params.sH&&v.params.EM,S)))}}; pD=function(v,O,Y){if(xu(v.params.Im.e4.get(),!0)){var S=Y.flush,d={};c1i(v,O,(d.cts=Y.currentTimeSec,d.f=S,d))}}; ukw=function(v,O){this.Mp=v;this.e4=O}; TB=function(v){var O=[];if(v){v=g.y(Object.entries(v));for(var Y=v.next();!Y.done;Y=v.next()){var S=g.y(Y.value);Y=S.next().value;S=S.next().value;S!==void 0&&(S=typeof S==="boolean"?""+ +S:(""+S).replace(/[:,=]/g,"_"),O.push(Y+"."+S))}}return O.join(";")}; lJ=function(v,O,Y){O=O===void 0?{}:O;this.errorCode=v;this.details=O;this.severity=Y===void 0?0:Y}; FW=function(v){return v===1||v===2}; hL=function(v,O){O=O===void 0?0:O;if(v instanceof lJ)return v;v=v&&v instanceof Error?v:Error(""+v);FW(O)?g.LP(v):g.Br(v);return new lJ(O===1?"player.fatalexception":"player.exception",{name:""+v.name,message:""+v.message},O)}; CCg=function(v,O){function Y(){var S=g.Bm.apply(0,arguments);v.removeEventListener("playing",Y);O.apply(null,g.F(S))} v.addEventListener("playing",Y)}; RA=function(){var v=g.il("yt.player.utils.videoElement_");v||(v=g.tc("VIDEO"),g.Gc("yt.player.utils.videoElement_",v));return v}; eX=function(v){var O=RA();return!!(O&&O.canPlayType&&O.canPlayType(v))}; Q9=function(v){if(/opus/.test(v)&&g.En&&!Tf("38")&&!g.Pf())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)&&!UAw())return!1;v==='audio/mp4; codecs="mp4a.40.2"'&&(v='video/mp4; codecs="avc1.4d401f"');return!!eX(v)}; y1w=function(v){try{var O=Q9('video/mp4; codecs="avc1.42001E"')||Q9('video/webm; codecs="vp9"');return(Q9('audio/mp4; codecs="mp4a.40.2"')||Q9('audio/webm; codecs="opus"'))&&(O||!v)||eX('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(Y){return"html5.missingapi"}}; LD=function(){var v=RA();return!(!v.webkitSupportsPresentationMode||typeof v.webkitSetPresentationMode!=="function")}; Ba=function(){var v=RA();try{var O=v.muted;v.muted=!O;return v.muted!==O}catch(Y){}return!1}; aYl=function(){var v;return((v=navigator.connection)==null?void 0:v.type)||""}; g.Z6=function(){lK.apply(this,arguments)}; XW=function(v,O,Y,S,d,r,b,z){this.sampleRate=v===void 0?0:v;this.numChannels=O===void 0?0:O;this.spatialAudioType=Y===void 0?"SPATIAL_AUDIO_TYPE_NONE":Y;this.Y=S===void 0?!1:S;this.G=d;this.B=r;this.audioQuality=b===void 0?"AUDIO_QUALITY_UNKNOWN":b;this.U=z===void 0?!1:z}; qu=function(v,O,Y,S,d,r,b,z,M){this.width=v;this.height=O;this.quality=r||wo(v,O);this.qualityOrdinal=g.IA[this.quality];this.fps=Y||0;this.stereoLayout=!d||S!=null&&S!=="UNKNOWN"&&S!=="RECTANGULAR"?0:d;this.projectionType=S?S==="EQUIRECTANGULAR"&&d===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":S:"UNKNOWN";(v=b)||(v=g.IA[this.quality],v===0?v="Auto":(O=this.fps,Y=this.projectionType,v=v.toString()+(Y==="EQUIRECTANGULAR"||Y==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Y==="MESH"?"s":"p")+(O>55?"60":O>49?"50": O>39?"48":"")));this.qualityLabel=v;this.Y=z||"";this.primaries=M||""}; wo=function(v,O){var Y=Math.max(v,O);v=Math.min(v,O);O=nD[0];for(var S=0;S=Math.floor(r*16/9)*1.3||v>=r*1.3)return O;O=d}return"tiny"}; Pa=function(v,O,Y){Y=Y===void 0?{}:Y;this.id=v;this.mimeType=O;Y.b3>0||(Y.b3=16E3);Object.assign(this,Y);v=g.y(this.id.split(";"));this.itag=v.next().value;this.Y=v.next().value;this.containerType=JL(O);this.z0=KD[this.itag]||""}; GB=function(v){return v.z0==="9"||v.z0==="("||v.z0==="9h"||v.z0==="(h"}; xBw=function(v){return v.z0==="H"||v.z0==="h"}; iJ=function(v){return v.z0==="9h"||v.z0==="(h"}; pKF=function(v){return!!v.LP&&!!v.LP.fairplay&&(v.z0==="("||v.z0==="(h"||v.z0==="A"||v.z0==="MEAC3")||tL&&!!v.LP&&v.z0==="1e"}; D6=function(v){return v.z0==="1"||v.z0==="1h"||tL&&v.z0==="1e"}; Ha=function(v){return v.z0==="mac3"||v.z0==="meac3"||v.z0==="m"||v.z0==="i"}; Nu=function(v){return v.z0==="MAC3"||v.z0==="MEAC3"||v.z0==="M"||v.z0==="I"}; g.vS=function(v){return v.containerType===1}; TY3=function(v){return v.z0==="("||v.z0==="(h"||v.z0==="H"||tL&&v.z0==="1e"}; Oo=function(v){return v.mimeType==="application/x-mpegURL"}; g.Yz=function(v,O){return{itag:+v.itag,lmt:O?0:v.lastModified,xtags:v.Y||""}}; lYw=function(v){var O=navigator.mediaCapabilities;if(O==null||!O.decodingInfo||v.z0==="f")return Promise.resolve();var Y={type:v.audio&&v.video?"file":"media-source"};v.video&&(Y.video={contentType:v.mimeType,width:v.video.width||640,height:v.video.height||360,bitrate:v.b3*8||1E6,framerate:v.video.fps||30});v.audio&&(Y.audio={contentType:v.mimeType,channels:""+(v.audio.numChannels||2),bitrate:v.b3*8||128E3,samplerate:v.audio.sampleRate||44100});return O.decodingInfo(Y).then(function(S){v.U=S})}; S5=function(v){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(v)}; db=function(v){return/(vp9|vp09|vp8|avc1|av01)/.test(v)}; rb=function(v){return v.includes("vtt")||v.includes("text/mp4")}; JL=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}; bs=function(v,O,Y,S,d,r){var b=new XW;O in g.IA||(O="small");O==="light"&&(O="tiny");S&&d?(d=Number(d),S=Number(S)):(d=g.IA[O],S=Math.round(d*16/9));r=new qu(S,d,0,null,void 0,O,r);v=unescape(v.replace(/"/g,'"'));return new Pa(Y,v,{audio:b,video:r})}; oI=function(v){var O="id="+v.id;v.video&&(O+=", res="+v.video.qualityLabel);var Y,S;return O+", byterate=("+((Y=v.He)==null?void 0:Y.toFixed(0))+", "+((S=v.b3)==null?void 0:S.toFixed(0))+")"}; j5=function(v,O){return{start:function(Y){return v[Y]}, end:function(Y){return O[Y]}, length:v.length}}; FC$=function(v,O,Y){for(var S=[],d=[],r=0;r=O)return Y}catch(S){}return-1}; so=function(v,O){return zz(v,O)>=0}; hoc=function(v,O){if(!v)return NaN;O=zz(v,O);return O>=0?v.start(O):NaN}; gb=function(v,O){if(!v)return NaN;O=zz(v,O);return O>=0?v.end(O):NaN}; MO=function(v){return v&&v.length?v.end(v.length-1):NaN}; V6=function(v){return MO(v)>0}; Ao=function(v,O){v=gb(v,O);return v>=0?v-O:0}; qO=function(v,O,Y){for(var S=[],d=[],r=0;rY||(S.push(Math.max(O,v.start(r))-O),d.push(Math.min(Y,v.end(r))-O));return j5(S,d)}; nl=function(v,O,Y,S){g.MU.call(this);var d=this;this.Gd=v;this.start=O;this.end=Y;this.isActive=S;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.NV={error:function(){!d.vW()&&d.isActive&&d.publish("error",d)}, updateend:function(){!d.vW()&&d.isActive&&d.publish("updateend",d)}}; this.Gd.pU(this.NV);this.mO=this.isActive}; Kl=function(v,O,Y,S,d,r){g.MU.call(this);var b=this;this.A$=v;this.AE=O;this.id=Y;this.containerType=S;this.z0=d;this.EM=r;this.iU=this.f2=this.O_=null;this.r5=!1;this.appendWindowStart=this.timestampOffset=0;this.iX=j5([],[]);this.zv=!1;this.xs=[];this.D$=Jo?[]:void 0;this.bk=function(M){return b.publish(M.type,b)}; var z;if((z=this.A$)==null?0:z.addEventListener)this.A$.addEventListener("updateend",this.bk),this.A$.addEventListener("error",this.bk)}; PS=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; Gz=function(v,O){this.m9=v;this.Y=O===void 0?!1:O;this.U=!1}; is=function(v,O,Y){Y=Y===void 0?!1:Y;g.X.call(this);this.mediaElement=v;this.Du=O;this.isView=Y;this.C=0;this.B=!1;this.Z=!0;this.j=0;this.callback=null;this.X=!1;this.Du||(this.AE=this.mediaElement.dR());this.events=new g.Z6(this);g.w(this,this.events);this.G=new Gz(this.Du?window.URL.createObjectURL(this.Du):this.AE.webkitMediaSourceURL,!0);v=this.Du||this.AE;F6(this.events,v,["sourceopen","webkitsourceopen"],this.LVO);F6(this.events,v,["sourceclose","webkitsourceclose"],this.kd4);this.L={updateend:this.u7}}; Ro7=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; eoJ=function(v,O){mK(v)?g.yP(function(){O(v)}):v.callback=O}; E8c=function(v,O,Y){if(to){var S;Do(v.mediaElement,{l:"mswssb",sr:(S=v.mediaElement.Og)==null?void 0:S.eE()},!1);O.pU(v.L,v);Y.pU(v.L,v)}v.Y=O;v.U=Y;g.w(v,O);g.w(v,Y)}; HS=function(v){return!!v.Y||!!v.U}; mK=function(v){try{return NO(v)==="open"}catch(O){return!1}}; NO=function(v){if(v.Du)return v.Du.readyState;switch(v.AE.webkitSourceState){case v.AE.SOURCE_OPEN:return"open";case v.AE.SOURCE_ENDED:return"ended";default:return"closed"}}; vN=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; QEE=function(v){mK(v)&&(v.Du?v.Du.endOfStream():v.AE.webkitSourceEndOfStream(v.AE.EOS_NO_ERROR))}; LCE=function(v,O,Y,S){if(!v.Y||!v.U)return null;var d=v.Y.isView()?v.Y.Gd:v.Y,r=v.U.isView()?v.U.Gd:v.U,b=new is(v.mediaElement,v.Du,!0);b.G=v.G;E8c(b,new nl(d,O,Y,S),new nl(r,O,Y,S));mK(v)||v.Y.Xt(v.Y.En());return b}; BY$=function(v){var O;(O=v.Y)==null||O.BM();var Y;(Y=v.U)==null||Y.BM();v.Z=!1}; OK=function(){var v=this;this.rd=this.Nh=U$1;this.promise=new g.x_(function(O,Y){v.Nh=O;v.rd=Y})}; Y2=function(){g.X.call(this);this.Y1=!1;this.m9=null;this.L=this.C=!1;this.B=new g.sW;this.Og=null;g.w(this,this.B)}; S_=function(v){v=v.zo();return v.length<1?NaN:v.end(v.length-1)}; Z_i=function(v){!v.U&&Ro7()&&(v.G?v.G.then(function(){return Z_i(v)}):v.eZ()||(v.U=v.rW()))}; XKQ=function(v){v.U&&(v.U.dispose(),v.U=void 0)}; Do=function(v,O,Y){var S;((S=v.Og)==null?0:S.XL())&&v.Og.G0("rms",O,Y===void 0?!1:Y)}; wKd=function(v,O,Y){v.isPaused()||v.getCurrentTime()>O||Y>10||(v.play(),g.fS(function(){wKd(v,v.getCurrentTime(),Y+1)},500))}; IY3=function(v,O){v.m9&&v.m9.equals(O)||(v.m9&&v.m9.dispose(),v.m9=O)}; dC=function(v){return Ao(v.s_(),v.getCurrentTime())}; qO$=function(v,O){if(v.h3()===0||v.hasError())return!1;var Y=v.getCurrentTime()>0;return O>=0&&(v=v.zo(),v.length||!Y)?so(v,O):Y}; rC=function(v){v.eZ()&&(v.Og&&v.Og.Jf("rs_s"),G2&&v.getCurrentTime()>0&&v.seekTo(0),v.Bw(),v.load(),IY3(v,null));delete v.G}; b7=function(v){switch(v.ub()){case 2:return"progressive.net.retryexhausted";case 3:return v=v.Bj(),(v==null?0:v.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||n8Q&&(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.oK=function(v,O,Y){this.ib=O===void 0?null:O;this.seekSource=Y===void 0?null:Y;this.state=v||64}; j_=function(v,O,Y){Y=Y===void 0?!1:Y;return J1m(v,O.getCurrentTime(),(0,g.J)(),dC(O),Y)}; WN=function(v,O,Y,S){if(!(O===v.state&&Y===v.ib&&S===v.seekSource||O!==void 0&&(O&128&&!Y||O&2&&O&16))){var d;if(d=O)d=O||v.state,d=!!(d&16||d&32);v=new g.oK(O,Y,d?S?S:v.seekSource:null)}return v}; zH=function(v,O,Y){return WN(v,v.state|O,null,Y===void 0?null:Y)}; sK=function(v,O){return WN(v,v.state&~O,null,null)}; gC=function(v,O,Y,S){return WN(v,(v.state|O)&~Y,null,S===void 0?null:S)}; g.G=function(v,O){return!!(v.state&O)}; g.Ms=function(v,O){return O.state===v.state&&O.ib===v.ib}; Va=function(v){return v.isPlaying()&&!g.G(v,16)&&!g.G(v,32)}; Am=function(v){return g.G(v,128)?-1:g.G(v,2)?0:g.G(v,2048)?3:g.G(v,64)?-1:g.G(v,1)&&!g.G(v,32)?3:g.G(v,8)?1:g.G(v,4)?2:-1}; $2=function(v,O,Y,S,d,r,b,z,M,V,A,f,k,U,c,a,x){g.X.call(this);var T=this;this.DK=v;this.slot=O;this.layout=Y;this.L1=S;this.eh=d;this.S4=r;this.Zu=b;this.ZU=z;this.gR=M;this.ji=V;this.position=f;this.C=k;this.e4=U;this.N4=c;this.El=a;this.context=x;this.zm=!0;this.Z=!1;this.nj="not_rendering";this.U=!1;this.G=new ku;v=oj(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.K1=new lI(Y.Ge,this.L1,v,Y.layoutId);var l;v=((l=fa(this))==null?void 0:l.progressCommands)||[];this.B=new n9E(M, v,Y.layoutId,function(){return T.PM()}); this.Y=new UBc({adCpn:this.layout.layoutId,Im:x.Im,sH:this.N4,EM:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; k2=function(v){return{layoutId:v.sI(),QB:v.N4,Mp:v.S4.get(),dS:v.Vr()}}; UK=function(v,O){return O.layoutId!==v.layout.layoutId?(v.DK.U_(v.slot,O,new rL("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}; cN=function(v){v.nj="rendering_start_requested";v.ji(-1)}; fa=function(v){return oj(v.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; KCJ=function(v){f_("Received layout exit signal when not in layout exit flow.",v.slot,v.layout)}; PCQ=function(v){var O;return((O=u7(v.S4.get(),2))==null?void 0:O.clientPlaybackNonce)||""}; Ca=function(v,O){switch(O){case "normal":v.wR("complete");break;case "skipped":v.wR("skip");break;case "abandoned":QT(v.K1,"impression")&&v.wR("abandon")}}; ya=function(v,O){v.Z||(O=new g.$8(O.state,new g.oK),v.Z=!0);return O}; aK=function(v,O){V9(O)?v.ji(1):g.UO(O,4)&&!g.UO(O,2)&&v.dX();k8(O,4)<0&&!(k8(O,2)<0)&&v.JJ()}; GX1=function(v){v.position===0&&(v.ZU.get(),v=oj(v.layout.clientMetadata,"metadata_type_ad_placement_config").kind,v={adBreakType:x2(v)},nw("ad_bl"),g.J_(v))}; pa=function(v,O){ea(v.K1,O,!v.U)}; mBc=function(v){var O;return(((O=fa(v))==null?void 0:O.progressCommands)||[]).findIndex(function(Y){return!!g.q(Y==null?void 0:Y.command,i_c)})!==-1}; TH=function(v,O){var Y=oj(v.clientMetadata,"metadata_type_eligible_for_ssap");return Y===void 0?(f_("Expected SSAP eligibility in PlayerBytes factory",v),!1):O.Vr(Y)}; l7=function(v,O){if(!tE(O.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 f_("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return f_("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:v}),3;default:my(v,"unknown layoutExitReason")}}; tdd=function(v){f_("getExitReason: unexpected reason",void 0,void 0,{reason:v})}; Fj=function(v,O){if(tE(O.get(),"html5_ssap_pass_transition_reason"))switch(v){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return tdd(v),"abandoned";case 3:case 1:return tdd(v),"error";default:my(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 f_("getExitReason: unexpected reason",void 0,void 0,{reason:v}),"error";default:my(v,"unexpected transition reason")}}; g.hm=function(v,O,Y){PT(v,Y)||i1(v,O,Y);PT(v,"video_to_ad")||i1(v,O,"video_to_ad");PT(v,"ad_to_video")||i1(v,O,"ad_to_video");PT(v,"ad_to_ad")||i1(v,O,"ad_to_ad")}; RK=function(v,O,Y,S,d,r,b,z,M,V,A,f,k,U,c,a,x,T){$2.call(this,v,O,Y,S,d,r,b,z,V,A,f,k,U,c,a,x,T);var l=this;this.K_=M;this.Ab=f;this.QA=!0;this.au=this.Q5=0;this.Dl=Vm(function(){A1J(k2(l));l.DK.jh(l.slot,l.layout)}); this.cf=Vm(function(){fYw(k2(l));l.nj!=="rendering_stop_requested"&&l.Ab(l);l.layoutExitReason?l.DK.ma(l.slot,l.layout,l.layoutExitReason):KCJ(l)}); this.KP=new g.Bt(200);this.KP.listen("tick",function(){l.vD()}); g.w(this,this.KP)}; EK=function(v){v.au=Date.now();e_(v,v.Q5);v.KP.start()}; DB$=function(v){v.Q5=v.PM();v.XX(v.Q5/1E3,!0);e_(v,v.Q5)}; e_=function(v,O){O={current:O/1E3,duration:v.PM()/1E3};v.K_.get().Pd("onAdPlaybackProgress",O)}; Qa=function(v){RK.call(this,v.DK,v.slot,v.vj,v.L1,v.eh,v.S4,v.Zu,v.ZU,v.K_,v.gR,v.ji,v.Ab,v.GH,v.Ym,v.e4,v.N4,v.El,v.context)}; La=function(v){RK.call(this,v.DK,v.slot,v.vj,v.L1,v.eh,v.S4,v.Zu,v.ZU,v.K_,v.gR,v.ji,v.Ab,v.GH,v.Ym,v.e4,v.N4,v.El,v.context)}; BN=function(){La.apply(this,arguments)}; H_1=function(v){return TH(v.slot,v.e4.get())?new BN(v):new Qa(v)}; wC=function(v){$2.call(this,v.callback,v.slot,v.vj,v.L1,v.eh,v.S4,v.Zu,v.ZU,v.gR,v.ji,v.Ab,v.GH,v.Ym,v.e4,v.N4,v.El,v.context);var O=this;this.adCpn="";this.tY=this.Ia=0;this.Dl=Vm(function(){A1J(k2(O));O.DK.jh(O.slot,O.layout)}); this.cf=Vm(function(){fYw(k2(O));O.nj!=="rendering_stop_requested"&&O.Ab(O);O.layoutExitReason?O.DK.ma(O.slot,O.layout,O.layoutExitReason):KCJ(O)}); this.sM=v.sM;this.BD=v.BD;this.SO=v.SO;this.K_=v.K_;this.qp=v.qp;this.Ab=v.Ab;if(!this.Vr()){tE(this.e4.get(),"html5_disable_media_load_timeout")||(this.fJ=new g.mX(function(){O.tj("load_timeout",new rL("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); v=ZD(this.e4.get());var Y=Xj(this.e4.get());v&&Y&&(this.Ph=new g.mX(function(){var S=oj(O.layout.clientMetadata,"metadata_type_preload_player_vars");S&&O.BD.get().N.preloadVideoByPlayerVars(S,2,300)}))}}; vxl=function(v,O){var Y=oj(O.clientMetadata,"metadata_type_ad_video_id"),S=oj(O.clientMetadata,"metadata_type_legacy_info_card_vast_extension");Y&&S&&v.qp.get().N.D().g8.add(Y,{AA:S});(O=oj(O.clientMetadata,"metadata_type_sodar_extension_data"))&&OuF(v.sM.get(),O);NYQ(v.Zu.get(),!1)}; OwF=function(v){NYQ(v.Zu.get(),!0);var O;((O=v.shrunkenPlayerBytesConfig)==null?0:O.shouldRequestShrunkenPlayerBytes)&&v.Zu.get().tp(!1)}; Y4i=function(v){return new IK(v)}; qs=function(){wC.apply(this,arguments)}; IK=function(){qs.apply(this,arguments)}; S4i=function(v){return H_1(Object.assign({},v,{DK:v.callback,ji:function(){}}))}; d0c=function(v){return new wC(Object.assign({},v,{ji:function(O){v.K_.get().Pd("onAdIntroStateChange",O)}}))}; r_d=function(v){function O(Y){v.K_.get().sN(Y)} return TH(v.slot,v.e4.get())?Y4i(Object.assign({},v,{ji:O})):new wC(Object.assign({},v,{ji:O}))}; na=function(v){for(var O=v.vj,Y=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],S=g.y(Fm()),d=S.next();!d.done;d=S.next())Y.push(d.value);if(HZ(O,{M2:Y,IF:["LAYOUT_TYPE_MEDIA_BREAK"]}))return S4i(v);O=v.vj;Y=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];S=g.y(Fm());for(d=S.next();!d.done;d=S.next())Y.push(d.value);if(HZ(O,{M2:Y,IF:["LAYOUT_TYPE_MEDIA"]}))return YV(v.vj.clientMetadata,"metadata_type_ad_intro")?d0c(v):r_d(v)}; oxw=function(v){var O=oj(v.clientMetadata,"metadata_type_ad_placement_config").kind,Y=oj(v.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:v.layoutId,adType:bwi(Y),adBreakType:x2(O)}}; x2=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"}}; bwi=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"}}; jt$=function(v){try{return new Jm(v.je,v.slot,v.layout,v.FH,v.hm,v.S4,v.eO,v.BD,v.Oq,v.Zu,v.Dp0,v)}catch(O){}}; Jm=function(v,O,Y,S,d,r,b,z,M,V,A,f){g.X.call(this);this.je=v;this.slot=O;this.layout=Y;this.FH=S;this.hm=d;this.S4=r;this.eO=b;this.BD=z;this.Oq=M;this.Zu=V;this.params=f;this.zm=!0;v=na(A);if(!v)throw Error("Invalid params for sublayout");this.xu=v}; WTw=function(){this.Y=1;this.U=new ku}; Ka=function(v,O,Y,S,d,r,b,z,M,V,A,f,k,U){g.X.call(this);this.callback=v;this.S4=O;this.eO=Y;this.BD=S;this.Zu=d;this.F4=r;this.ZU=b;this.qd=z;this.slot=M;this.layout=V;this.FH=A;this.u8=f;this.Oq=k;this.e4=U;this.zm=!0;this.jP=!1;this.yH=[];this.fp=-1;this.h8=!1;this.vI=new WTw}; zlF=function(v){var O;return(O=v.layout.Mk)!=null?O:oj(v.layout.clientMetadata,"metadata_type_sub_layouts")}; PN=function(v){return{Mp:v.S4.get(),QB:!1,dS:v.Vr()}}; stl=function(v,O,Y){if(v.A3()===v.yH.length-1){var S,d;f_("Unexpected skip requested during the last sublayout",(S=v.zO())==null?void 0:S.l3(),(d=v.zO())==null?void 0:d.lc(),{requestingSlot:O,requestingLayout:Y})}}; gxn=function(v,O,Y){return Y.layoutId!==GH(v,O,Y)?(f_("onSkipRequested for a PlayerBytes layout that is not currently active",v.l3(),v.lc()),!1):!0}; MVw=function(v){v.A3()===v.yH.length-1&&f_("Unexpected skip with target requested during the last sublayout")}; VVw=function(v,O,Y){return Y.renderingContent===void 0&&Y.layoutId!==GH(v,O,Y)?(f_("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",v.l3(),v.lc(),{requestingSlot:O,requestingLayout:Y}),!1):!0}; A_F=function(v,O,Y,S){var d=oj(O.lc().clientMetadata,"metadata_type_ad_pod_skip_target");if(d&&d>0&&d0)){f_("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",v.slot,v.layout,{indexToPlay:O,layoutId:v.layout.layoutId});break a}v.fp=O;O=v.zO();if(v.A3()>0&&!v.Vr()){var Y=v.ZU.get();Y.U=!1;var S={};Y.Y&&Y.videoId&&(S.cttAuthInfo={token:Y.Y,videoId:Y.videoId});Kw("ad_to_ad",S)}v.iC(O)}}; DD=function(v){Ka.call(this,v.je,v.S4,v.eO,v.BD,v.Zu,v.F4,v.ZU,v.qd,v.slot,v.layout,v.FH,v.u8,v.Oq,v.e4)}; kU3=function(v){(v=v.zO())&&v.OS()}; HN=function(v){Ka.call(this,v.je,v.S4,v.eO,v.BD,v.Zu,v.F4,v.ZU,v.qd,v.slot,v.layout,v.FH,v.u8,v.Oq,v.e4);this.vY=void 0}; U0m=function(v,O){v.GK()&&!ca(v.vI.U)||v.callback.ma(v.slot,v.layout,O)}; Ns=function(v){return tE(v.e4.get(),"html5_ssap_pass_transition_reason")}; c_m=function(v,O,Y){O.TH().currentState<2&&(Y=Fj(Y,v.e4),O.Y4(O.lc(),Y));Y=O.TH().Y;v.eF(v.slot,O.lc(),Y)}; uOQ=function(v,O){if(v.vI.U.currentState<2){var Y=Fj(O,v.e4);Y==="error"?v.callback.U_(v.slot,v.layout,new rL("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:O},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):tm(v.u8,v.layout,Y)}}; vq=function(v,O,Y){O.TH().currentState>=2||(O.Y4(O.lc(),Y),ca(O.TH())&&(hE(v.qd,v.slot,O.lc(),Y),v.vY=void 0))}; C1m=function(v,O){v.vI.Y===2&&O!==v.W7()&&f_("onClipEntered: unknown cpn",v.slot,v.layout,{cpn:O})}; y_F=function(v,O){var Y=v.zO();if(Y){var S=Y.lc().layoutId,d=v.A3()+1;v.GK()?vq(v,Y,O):Y.Y4(Y.lc(),O);d>=0&&dd&&b.tQ(A,d-S);return A}; eld=function(v,O,Y){var S=oj(O.clientMetadata,"metadata_type_sodar_extension_data");if(S)try{OuF(Y,S)}catch(d){f_("Unexpected error when loading Sodar",v,O,{error:d})}}; Ex3=function(v,O,Y,S,d,r,b){oQ(v,O,new g.$8(Y,new g.oK),S,d,b,!1,r)}; oQ=function(v,O,Y,S,d,r,b,z){b=b===void 0?!0:b;V9(Y)&&AL(d,0,null)&&(!QT(v,"impression")&&z&&z(),v.wR("impression"));QT(v,"impression")&&(g.UO(Y,4)&&!g.UO(Y,2)&&v.IS("pause"),k8(Y,4)<0&&!(k8(Y,2)<0)&&v.IS("resume"),g.UO(Y,16)&&d>=.5&&v.IS("seek"),b&&g.UO(Y,2)&&jh(v,Y.state,O,S,d,r))}; jh=function(v,O,Y,S,d,r,b,z){QT(v,"impression")&&(r?(r=d-S,r=r>=-1&&r<=2):r=Math.abs(S-d)<=1,Wq(v,O,r?S:d,Y,S,b,z&&r),r&&v.wR("complete"))}; Wq=function(v,O,Y,S,d,r,b){EF(v,Y*1E3,b);d<=0||Y<=0||(O==null?0:g.G(O,16))||(O==null?0:g.G(O,32))||(AL(Y,d*.25,S)&&(r&&!QT(v,"first_quartile")&&r("first"),v.wR("first_quartile")),AL(Y,d*.5,S)&&(r&&!QT(v,"midpoint")&&r("second"),v.wR("midpoint")),AL(Y,d*.75,S)&&(r&&!QT(v,"third_quartile")&&r("third"),v.wR("third_quartile")))}; Qtc=function(v,O){QT(v,"impression")&&v.IS(O?"fullscreen":"end_fullscreen")}; LTc=function(v){QT(v,"impression")&&v.IS("clickthrough")}; BgF=function(v){v.IS("active_view_measurable")}; Zwc=function(v){QT(v,"impression")&&!QT(v,"seek")&&v.IS("active_view_fully_viewable_audible_half_duration")}; XTQ=function(v){QT(v,"impression")&&!QT(v,"seek")&&v.IS("active_view_viewable")}; wTl=function(v){QT(v,"impression")&&!QT(v,"seek")&&v.IS("audio_audible")}; I9Q=function(v){QT(v,"impression")&&!QT(v,"seek")&&v.IS("audio_measurable")}; q4F=function(v,O,Y,S,d,r,b,z,M,V,A,f){this.callback=v;this.slot=O;this.layout=Y;this.eO=S;this.K1=d;this.Zu=r;this.eB=b;this.eh=z;this.sM=M;this.e4=V;this.L1=A;this.S4=f;this.QA=!0;this.PD=this.nj=null;this.adCpn=void 0;this.Y=!1}; nx$=function(v,O,Y){var S;bz(v.L1.get(),"ads_qua","cpn."+oj(v.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((S=u7(v.S4.get(),2))==null?void 0:S.clientPlaybackNonce)+";qt."+O+";clr."+Y)}; J_Q=function(v,O){var Y,S;bz(v.L1.get(),"ads_imp","cpn."+oj(v.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((Y=u7(v.S4.get(),2))==null?void 0:Y.clientPlaybackNonce)+";clr."+O+";skp."+!!g.q((S=oj(v.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:S.skipOrPreviewRenderer,zo))}; sm=function(v){return{enterMs:oj(v.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:oj(v.clientMetadata,"metadata_type_layout_exit_ms")}}; g6=function(v,O,Y,S,d,r,b,z,M,V,A,f,k,U){Y7.call(this,v,O,Y,S,d,b,z,M,V,f);this.eB=r;this.sM=A;this.eh=k;this.e4=U;this.PD=this.nj=null}; KT$=function(v,O){var Y;bz(v.L1.get(),"ads_imp","acpn."+((Y=u7(v.S4.get(),2))==null?void 0:Y.clientPlaybackNonce)+";clr."+O)}; P1l=function(v,O,Y){var S;bz(v.L1.get(),"ads_qua","cpn."+oj(v.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((S=u7(v.S4.get(),2))==null?void 0:S.clientPlaybackNonce)+";qt."+O+";clr."+Y)}; Mz=function(v,O,Y,S,d,r,b,z,M,V,A,f,k,U,c,a,x,T,l,Q,L,I){this.Oq=v;this.FH=O;this.u8=Y;this.S4=S;this.eO=d;this.Zu=r;this.F4=b;this.L1=z;this.eB=M;this.Pq=V;this.eh=A;this.sM=f;this.BD=k;this.SO=U;this.ZU=c;this.K_=a;this.gR=x;this.qp=T;this.e4=l;this.Y=Q;this.context=L;this.El=I}; VA=function(v,O,Y,S,d,r,b,z,M,V,A,f,k,U,c,a,x,T,l){this.Oq=v;this.FH=O;this.u8=Y;this.L1=S;this.eh=d;this.sM=r;this.BD=b;this.S4=z;this.Zu=M;this.F4=V;this.SO=A;this.ZU=f;this.K_=k;this.gR=U;this.qp=c;this.e4=a;this.eO=x;this.context=T;this.El=l}; GUJ=function(v,O,Y,S){gK.call(this,"survey-interstitial",v,O,Y,S)}; AO=function(v,O,Y,S,d){cZ.call(this,Y,v,O,S);this.L1=d;v=oj(O.clientMetadata,"metadata_type_ad_placement_config");this.K1=new lI(O.Ge,d,v,O.layoutId)}; fz=function(v){return Math.round(v.width)+"x"+Math.round(v.height)}; k7=function(v,O,Y){Y=Y===void 0?$7:Y;Y.width<$7.width&&(Y=$7);if(v.widthv.width*v.height*.2)return{Lk:3,pH:501,errorMessage:"ad("+fz(Y)+") to container("+fz(v)+") ratio exceeds limit."};if(Y.height>v.height/3-O)return{Lk:3,pH:501,errorMessage:"ad("+fz(Y)+") covers container("+fz(v)+") center."}}; iw7=function(v,O){var Y=oj(v.clientMetadata,"metadata_type_ad_placement_config");return new lI(v.Ge,O,Y,v.layoutId)}; Um=function(v){return oj(v.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; cq=function(v,O,Y,S){gK.call(this,"invideo-overlay",v,O,Y,S);this.interactionLoggingClientData=S}; uz=function(v,O,Y,S,d,r,b,z,M,V,A,f){cZ.call(this,r,v,O,d);this.L1=Y;this.B=b;this.Zu=z;this.gR=M;this.e4=V;this.C=A;this.Z=f;this.K1=iw7(O,Y)}; m0g=function(){var v=["metadata_type_invideo_overlay_ad_renderer"];Fm().forEach(function(O){v.push(O)}); return{M2:v,IF:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; Cz=function(v,O,Y,S,d,r,b,z,M,V,A,f,k){cZ.call(this,r,v,O,d);this.L1=Y;this.B=b;this.X=z;this.Zu=M;this.gR=V;this.e4=A;this.C=f;this.Z=k;this.K1=iw7(O,Y)}; tVg=function(){for(var v=["metadata_type_invideo_overlay_ad_renderer"],O=g.y(Fm()),Y=O.next();!Y.done;Y=O.next())v.push(Y.value);return{M2:v,IF:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; yA=function(v){this.Zu=v;this.Y=!1}; D0F=function(v,O,Y){gK.call(this,"survey",v,{},O,Y)}; aQ=function(v,O,Y,S,d,r,b){cZ.call(this,Y,v,O,S);this.B=d;this.Zu=r;this.e4=b}; Hwc=function(v,O,Y,S,d,r,b,z,M,V){this.MX=v;this.Zu=O;this.L1=Y;this.B=S;this.eh=d;this.U=r;this.G=b;this.gR=z;this.e4=M;this.Y=V}; NgE=function(v,O,Y,S,d,r,b,z,M,V){this.MX=v;this.Zu=O;this.L1=Y;this.B=S;this.eh=d;this.U=r;this.G=b;this.gR=z;this.e4=M;this.Y=V}; x7=function(v,O,Y,S,d,r,b,z,M,V){ro.call(this,v,O,Y,S,d,r,b,M);this.LU=z;this.S4=V}; vb3=function(){var v=b_i();v.M2.push("metadata_type_ad_info_ad_metadata");return v}; OLn=function(v,O,Y,S,d,r,b){this.MX=v;this.Zu=O;this.L1=Y;this.U=S;this.LU=d;this.Y=r;this.S4=b}; YXg=function(v,O,Y,S,d,r,b,z){this.MX=v;this.Zu=O;this.L1=Y;this.U=S;this.LU=d;this.Y=r;this.e4=b;this.S4=z}; pz=function(v,O){this.slotId=O;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=v(this.triggerType)}; To=function(v,O){this.adPodIndex=v;this.Y=O.length;this.adBreakLengthSeconds=O.reduce(function(S,d){return S+d},0); var Y=0;for(v+=1;v0}; zE=function(v){return!!(v.xR&&v.slot&&v.layout)}; sB=function(v){var O,Y=(O=v.config)==null?void 0:O.adPlacementConfig;v=v.renderer;return!(!Y||Y.kind==null||!v)}; fuQ=function(v){if(!Sq(v.adLayoutMetadata))return!1;v=v.renderingContent;return g.q(v,sn)||g.q(v,go)||g.q(v,Wa)||g.q(v,zB)?!0:!1}; gZ=function(v){return v.playerVars!==void 0&&v.pings!==void 0&&v.externalVideoId!==void 0}; pG=function(v){if(!Sq(v.adLayoutMetadata))return!1;v=v.renderingContent;var O=g.q(v,Mc);return O?VS(O):(O=g.q(v,AX))?gZ(O):(O=g.q(v,yS))?O.playerVars!==void 0:(O=g.q(v,sn))?O.durationMilliseconds!==void 0:g.q(v,aR)||g.q(v,xN)?!0:!1}; VS=function(v){v=(v.sequentialLayouts||[]).map(function(O){return g.q(O,TE)}); return v.length>0&&v.every(pG)}; FK=function(v){return Sq(v.adLayoutMetadata)?(v=g.q(v.renderingContent,lr))&&v.pings?!0:!1:!1}; C2J=function(v){if(!Sq(v.adLayoutMetadata))return!1;if(g.q(v.renderingContent,$PF)||g.q(v.renderingContent,kMg))return!0;var O=g.q(v.renderingContent,hX);return g.q(v.renderingContent,RR)||g.q(O==null?void 0:O.sidePanel,UPm)||g.q(O==null?void 0:O.sidePanel,c9g)||g.q(O==null?void 0:O.sidePanel,uAn)?!0:!1}; Tfi=function(v){var O;(O=!v)||(O=v.adSlotMetadata,O=!((O==null?void 0:O.slotId)!==void 0&&(O==null?void 0:O.slotType)!==void 0));if(O||!(y9n(v)||v.slotEntryTrigger&&v.slotFulfillmentTriggers&&v.slotExpirationTriggers))return!1;var Y;v=(Y=v.fulfillmentContent)==null?void 0:Y.fulfilledLayout;return(Y=g.q(v,TE))?pG(Y):(Y=g.q(v,eq))?C2J(Y):(Y=g.q(v,au1))?fuQ(Y):(Y=g.q(v,xPQ))?Vuc(Y):(Y=g.q(v,p3g))?Sq(Y.adLayoutMetadata)?g.q(Y.renderingContent,dZ)?!0:!1:!1:(v=g.q(v,EB))?FK(v):!1}; y9n=function(v){var O;v=g.q((O=v.fulfillmentContent)==null?void 0:O.fulfilledLayout,eq);var Y;return v&&((Y=v.adLayoutMetadata)==null?void 0:Y.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&v.layoutExitNormalTriggers===void 0}; luJ=function(v){var O;return(v==null?void 0:(O=v.adSlotMetadata)==null?void 0:O.slotType)==="SLOT_TYPE_IN_PLAYER"}; hYm=function(v,O){var Y;if((Y=v.questions)==null||!Y.length||!v.playbackCommands||(O===void 0||!O)&&v.questions.length!==1)return!1;v=g.y(v.questions);for(O=v.next();!O.done;O=v.next()){O=O.value;var S=Y=void 0,d=((Y=g.q(O,QS))==null?void 0:Y.surveyAdQuestionCommon)||((S=g.q(O,LG))==null?void 0:S.surveyAdQuestionCommon);if(!FUd(d))return!1}return!0}; RYE=function(v){v=((v==null?void 0:v.playerOverlay)||{}).instreamSurveyAdRenderer;var O;if(v)if(v.playbackCommands&&v.questions&&v.questions.length===1){var Y,S=((O=g.q(v.questions[0],QS))==null?void 0:O.surveyAdQuestionCommon)||((Y=g.q(v.questions[0],LG))==null?void 0:Y.surveyAdQuestionCommon);O=FUd(S)}else O=!1;else O=!1;return O}; FUd=function(v){if(!v)return!1;v=g.q(v.instreamAdPlayerOverlay,BW);var O=g.q(v==null?void 0:v.skipOrPreviewRenderer,zo),Y=g.q(v==null?void 0:v.adInfoRenderer,ZF);return(g.q(v==null?void 0:v.skipOrPreviewRenderer,XK)||O)&&Y?!0:!1}; eY$=function(v){return v.linearAds!=null&&Sq(v.adLayoutMetadata)}; EbQ=function(v){return v.linearAd!=null&&v.adVideoStart!=null}; Qxg=function(v){if(isNaN(Number(v.timeoutSeconds))||!v.text||!v.ctaButton||!g.q(v.ctaButton,g.wZ)||!v.brandImage)return!1;var O;return v.backgroundImage&&g.q(v.backgroundImage,IR)&&((O=g.q(v.backgroundImage,IR))==null?0:O.landscape)?!0:!1}; qc=function(v,O,Y,S,d,r,b,z){g.X.call(this);this.e4=v;this.Y=O;this.U=S;this.S4=d;this.B=r;this.G=b;this.BD=z}; ZLF=function(v,O,Y){var S,d=((S=Y.adSlots)!=null?S:[]).map(function(z){return g.q(z,nG)}); if(Y.JZ)if(oj(O.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))fN(v.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},O.slotId); else{if(v.e4.get().N.D().V("h5_check_forecasting_renderer_for_throttled_midroll")){var r=Y.Uj.filter(function(z){var M;return((M=z.renderer)==null?void 0:M.clientForecastingAdRenderer)!=null}); r.length!==0?LUF(v.G,r,d,O.slotId,Y.ssdaiAdsConfig):fN(v.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},O.slotId)}else fN(v.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},O.slotId); BfQ(v.B,O)}else{var b;S={oe:Math.round(((r=oj(O.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:r.oe)||0),rU:(b=oj(O.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:b.rU};LUF(v.G,Y.Uj,d,O.slotId,Y.ssdaiAdsConfig,S)}}; Iui=function(v,O,Y,S,d,r,b){var z=u7(v.S4.get(),1);if(X37(v.e4.get())){var M=JX(v.U.get(),Y,S,d,z.clientPlaybackNonce,z.sK,z.daiEnabled,z,r,b);w3$(v,M);fN(v.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return M},O)}else fN(v.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return JX(v.U.get(),Y,S,d,z.clientPlaybackNonce,z.sK,z.daiEnabled,z,r,b)},O)}; w3$=function(v,O){O=g.y(O);for(var Y=O.next();!Y.done;Y=O.next()){var S=Y.value;if(S.slotType==="SLOT_TYPE_PLAYER_BYTES"&&S.fulfilledLayout)if(Y=void 0,S.fulfilledLayout.renderingContent)Y=oj(S.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(S.fulfilledLayout.Mk){S=g.y(S.fulfilledLayout.Mk);for(var d=S.next();!d.done&&(d=d.value,!d.renderingContent||!(Y=oj(d.clientMetadata,"metadata_type_player_vars")));d=S.next());}}else Y=void 0;if(Y){v.BD.get().N.preloadVideoByPlayerVars(Y, 2,300);break}}}; nbl=function(v,O,Y,S,d,r,b){O=qX7(O,r,Number(S.prefetchMilliseconds)||0,b);v=O instanceof m?O:KG(v,S,d,O,Y);return v instanceof m?v:[v]}; J9c=function(v,O,Y,S,d){var r=$D(v.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");S=[new Xq({getAdBreakUrl:S.getAdBreakUrl,oe:0,rU:0}),new NH(!0)];v=O.pauseDurationMs?O.lactThresholdMs?{slotId:r,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Hq(v.Y,r),slotFulfillmentTriggers:[new dPl(v.Y)],slotExpirationTriggers:[new Kz(v.Y,d),new mr(v.Y,r)],w8:"core",clientMetadata:new bx(S),adSlotLoggingData:Y}:new m("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new m("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return v instanceof m?v:[v]}; KUi=function(v){var O,Y;return((O=v.renderer)==null?void 0:(Y=O.adBreakServiceRenderer)==null?void 0:Y.getAdBreakUrl)!==void 0}; PW=function(v,O,Y){if(v.beforeContentVideoIdStartedTrigger)v=v.beforeContentVideoIdStartedTrigger?new lz(dL,O,v.id):new m("Not able to create BeforeContentVideoIdStartedTrigger");else{if(v.layoutIdExitedTrigger){var S;O=(S=v.layoutIdExitedTrigger)!=null&&S.triggeringLayoutId?new QA(dL,v.layoutIdExitedTrigger.triggeringLayoutId,v.id):new m("Not able to create LayoutIdExitedTrigger")}else{if(v.layoutExitedForReasonTrigger){var d,r;((d=v.layoutExitedForReasonTrigger)==null?0:d.triggeringLayoutId)&&((r= v.layoutExitedForReasonTrigger)==null?0:r.layoutExitReason)?(O=r97(v.layoutExitedForReasonTrigger.layoutExitReason),v=O instanceof m?O:new Em(dL,v.layoutExitedForReasonTrigger.triggeringLayoutId,[O],v.id)):v=new m("Not able to create LayoutIdExitedForReasonTrigger")}else{if(v.onLayoutSelfExitRequestedTrigger){var b;O=(b=v.onLayoutSelfExitRequestedTrigger)!=null&&b.triggeringLayoutId?new JO(dL,v.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,v.id):new m("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(v.onNewPlaybackAfterContentVideoIdTrigger)v= v.onNewPlaybackAfterContentVideoIdTrigger?new Kz(dL,O,v.id):new m("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(v.skipRequestedTrigger){var z;O=(z=v.skipRequestedTrigger)!=null&&z.triggeringLayoutId?new Go(dL,v.skipRequestedTrigger.triggeringLayoutId,v.id):new m("Not able to create SkipRequestedTrigger")}else if(v.slotIdEnteredTrigger){var M;O=(M=v.slotIdEnteredTrigger)!=null&&M.triggeringSlotId?new iz(dL,v.slotIdEnteredTrigger.triggeringSlotId,v.id):new m("Not able to create SlotIdEnteredTrigger")}else if(v.slotIdExitedTrigger){var V; O=(V=v.slotIdExitedTrigger)!=null&&V.triggeringSlotId?new mr(dL,v.slotIdExitedTrigger.triggeringSlotId,v.id):new m("Not able to create SkipRequestedTrigger")}else if(v.surveySubmittedTrigger){var A;O=(A=v.surveySubmittedTrigger)!=null&&A.triggeringLayoutId?new vW(dL,v.surveySubmittedTrigger.triggeringLayoutId,v.id):new m("Not able to create SurveySubmittedTrigger")}else{if(v.mediaResumedTrigger)v=v.mediaResumedTrigger&&v.id?new bL7(v.id):new m("Not able to create MediaResumedTrigger");else{if(v.closeRequestedTrigger){var f; O=(f=v.closeRequestedTrigger)!=null&&f.triggeringLayoutId?new Fe(dL,v.closeRequestedTrigger.triggeringLayoutId,v.id):new m("Not able to create CloseRequestedTrigger")}else if(v.slotIdScheduledTrigger){var k;O=(k=v.slotIdScheduledTrigger)!=null&&k.triggeringSlotId?new Hq(dL,v.slotIdScheduledTrigger.triggeringSlotId,v.id):new m("Not able to create SlotIdScheduledTrigger")}else{if(v.mediaTimeRangeTrigger){var U;S=Number((U=v.mediaTimeRangeTrigger)==null?void 0:U.offsetStartMilliseconds);var c;b=Number((c= v.mediaTimeRangeTrigger)==null?void 0:c.offsetEndMilliseconds);isFinite(S)&&isFinite(b)?(c=b,c===-1&&(c=Y),Y=S>c?new m("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:S,offsetEndMs:c},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",c===Y&&S-500<=c):new xG(S,c),v=Y instanceof m?Y:new w6(dL,O,Y,!1,v.id)):v=new m("Not able to create MediaTimeRangeTrigger")}else if(v.contentVideoIdEndedTrigger)v=v.contentVideoIdEndedTrigger?new hO(dL,O,!1,v.id):new m("Not able to create ContentVideoIdEndedTrigger"); else{if(v.layoutIdEnteredTrigger){var a;O=(a=v.layoutIdEnteredTrigger)!=null&&a.triggeringLayoutId?new eh(dL,v.layoutIdEnteredTrigger.triggeringLayoutId,v.id):new m("Not able to create LayoutIdEnteredTrigger")}else if(v.timeRelativeToLayoutEnterTrigger){var x;O=(x=v.timeRelativeToLayoutEnterTrigger)!=null&&x.triggeringLayoutId?new OB(dL,Number(v.timeRelativeToLayoutEnterTrigger.durationMs),v.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,v.id):new m("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(v.onDifferentLayoutIdEnteredTrigger){var T; O=(T=v.onDifferentLayoutIdEnteredTrigger)!=null&&T.triggeringLayoutId&&v.onDifferentLayoutIdEnteredTrigger.slotType&&v.onDifferentLayoutIdEnteredTrigger.layoutType?new qz(dL,v.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,v.onDifferentLayoutIdEnteredTrigger.slotType,v.onDifferentLayoutIdEnteredTrigger.layoutType,v.id):new m("Not able to create CloseRequestedTrigger")}else{if(v.liveStreamBreakStartedTrigger)v=v.liveStreamBreakStartedTrigger&&v.id?new Xe(dL,v.id):new m("Not able to create LiveStreamBreakStartedTrigger"); else if(v.liveStreamBreakEndedTrigger)v=v.liveStreamBreakEndedTrigger&&v.id?new Lz(dL,v.id):new m("Not able to create LiveStreamBreakEndedTrigger");else{if(v.liveStreamBreakScheduledDurationMatchedTrigger){var l;O=(l=v.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&l.breakDurationMs?new Bq(Number(v.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,v.id):new m("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(v.liveStreamBreakScheduledDurationNotMatchedTrigger){var Q; O=(Q=v.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&Q.breakDurationMs?new Zp(Number(v.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,v.id):new m("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(v.newSlotScheduledWithBreakDurationTrigger){var L;O=(L=v.newSlotScheduledWithBreakDurationTrigger)!=null&&L.breakDurationMs?new IQ(Number(v.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,v.id):new m("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else O= v.prefetchCacheExpiredTrigger?new Pq(dL,v.id):new m("Not able to convert an AdsControlflowTrigger.");v=O}O=v}v=O}O=v}v=O}O=v}v=O}O=v}v=O}O=v}v=O}return v}; GE=function(v,O){O.Y>=2&&(v.slot_pos=O.adPodIndex);v.autoplay="1"}; GMn=function(v,O,Y,S,d,r,b,z){return O===null?new m("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:O,ActionCompanionAdRenderer:S}):[P2n(v,O,b,r,function(M){var V=M.slotId;M=z(M);var A=S.adLayoutLoggingData,f=new bx([new I9(S),new N8(d)]);V=DH(Y.U.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",V);var k={layoutId:V,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",w8:"core"};return{layoutId:V,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ge:new Map, layoutExitNormalTriggers:[new Kz(Y.Y,b)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],w8:"core",clientMetadata:f,Lj:M(k),adLayoutLoggingData:A}})]}; iLl=function(v,O,Y,S,d,r,b,z){return O===null?new m("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:O,TopBannerImageTextIconButtonedLayoutViewModel:S}):[P2n(v,O,b,r,function(M){var V=M.slotId;M=z(M);var A=S.adLayoutLoggingData,f=new bx([new q8(S),new N8(d)]);V=DH(Y.U.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",V);var k={layoutId:V,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",w8:"core"};return{layoutId:V,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", Ge:new Map,layoutExitNormalTriggers:[new Kz(Y.Y,b)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],w8:"core",clientMetadata:f,Lj:M(k),adLayoutLoggingData:A}})]}; HLE=function(v,O,Y,S,d,r){if(!r)for(O=g.y(O),r=O.next();!r.done;r=O.next())r=r.value,ir(v,r.renderer,r.config.adPlacementConfig.kind);v=Array.from(v.values()).filter(function(A){return mPQ(A)}); O=[];r=g.y(v);for(var b=r.next(),z={};!b.done;z={NG:void 0},b=r.next()){z.NG=b.value;b=g.y(z.NG.Vt);for(var M=b.next(),V={};!M.done;V={AS:void 0},M=b.next())V.AS=M.value,M=function(A,f){return function(k){return A.AS.Cs(k,f.NG.instreamVideoAdRenderer.elementId,A.AS.gV)}}(V,z),V.AS.isContentVideoCompanion?O.push(tuJ(Y,S,d,z.NG.instreamVideoAdRenderer.elementId,V.AS.associatedCompositePlayerBytesLayoutId,V.AS.adSlotLoggingData,M)):v.length>1?O.push(DPJ(Y,S,d,z.NG.instreamVideoAdRenderer.elementId,V.AS.adSlotLoggingData, function(A,f){return function(k){return A.AS.Cs(k,f.NG.instreamVideoAdRenderer.elementId,A.AS.gV,A.AS.associatedCompositePlayerBytesLayoutId)}}(V,z))):O.push(DPJ(Y,S,d,z.NG.instreamVideoAdRenderer.elementId,V.AS.adSlotLoggingData,M))}return O}; ir=function(v,O,Y){if(O=Nf3(O)){O=g.y(O);for(var S=O.next();!S.done;S=O.next())if((S=S.value)&&S.externalVideoId){var d=mJ(v,S.externalVideoId);d.instreamVideoAdRenderer||(d.instreamVideoAdRenderer=S,d.vc=Y)}else f_("InstreamVideoAdRenderer without externalVideoId")}}; Nf3=function(v){var O=[],Y=v.sandwichedLinearAdRenderer&&v.sandwichedLinearAdRenderer.linearAd&&g.q(v.sandwichedLinearAdRenderer.linearAd,AX);if(Y)return O.push(Y),O;if(v.instreamVideoAdRenderer)return O.push(v.instreamVideoAdRenderer),O;if(v.linearAdSequenceRenderer&&v.linearAdSequenceRenderer.linearAds){v=g.y(v.linearAdSequenceRenderer.linearAds);for(Y=v.next();!Y.done;Y=v.next())Y=Y.value,g.q(Y,AX)&&O.push(g.q(Y,AX));return O}return null}; mPQ=function(v){if(v.instreamVideoAdRenderer===void 0)return f_("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var O=g.y(v.Vt),Y=O.next();!Y.done;Y=O.next()){Y=Y.value;if(Y.Cs===void 0)return!1;if(Y.gV===void 0)return f_("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(v.vc===void 0||Y.MR===void 0||v.vc!==Y.MR&&Y.MR!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(v.instreamVideoAdRenderer.elementId===void 0)return f_("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:v.vc,"matching APSR kind":Y.MR}),!1}return!0}; mJ=function(v,O){v.has(O)||v.set(O,{instreamVideoAdRenderer:void 0,vc:void 0,adVideoId:O,Vt:[]});return v.get(O)}; tX=function(v,O,Y,S,d,r,b,z,M){d?mJ(v,d).Vt.push({xdO:O,MR:Y,isContentVideoCompanion:S,gV:b,associatedCompositePlayerBytesLayoutId:r,adSlotLoggingData:z,Cs:M}):f_("Companion AdPlacementSupportedRenderer without adVideoId")}; DF=function(v){var O=0;v=g.y(v.questions);for(var Y=v.next();!Y.done;Y=v.next())if(Y=Y.value,Y=g.q(Y,QS)||g.q(Y,LG)){var S=void 0;O+=((S=Y.surveyAdQuestionCommon)==null?void 0:S.durationMilliseconds)||0}return O}; HW=function(v){var O,Y,S,d,r=((Y=g.q((O=v.questions)==null?void 0:O[0],QS))==null?void 0:Y.surveyAdQuestionCommon)||((d=g.q((S=v.questions)==null?void 0:S[0],LG))==null?void 0:d.surveyAdQuestionCommon),b;O=[].concat(g.F(((b=v.playbackCommands)==null?void 0:b.instreamAdCompleteCommands)||[]),g.F((r==null?void 0:r.timeoutCommands)||[]));var z,M,V,A,f,k,U,c,a,x,T,l,Q,L,I,t,P,YQ,dF,N;return{impressionCommands:(z=v.playbackCommands)==null?void 0:z.impressionCommands,errorCommands:(M=v.playbackCommands)== null?void 0:M.errorCommands,muteCommands:(V=v.playbackCommands)==null?void 0:V.muteCommands,unmuteCommands:(A=v.playbackCommands)==null?void 0:A.unmuteCommands,pauseCommands:(f=v.playbackCommands)==null?void 0:f.pauseCommands,rewindCommands:(k=v.playbackCommands)==null?void 0:k.rewindCommands,resumeCommands:(U=v.playbackCommands)==null?void 0:U.resumeCommands,skipCommands:(c=v.playbackCommands)==null?void 0:c.skipCommands,progressCommands:(a=v.playbackCommands)==null?void 0:a.progressCommands,Y8g:(x= v.playbackCommands)==null?void 0:x.clickthroughCommands,fullscreenCommands:(T=v.playbackCommands)==null?void 0:T.fullscreenCommands,activeViewViewableCommands:(l=v.playbackCommands)==null?void 0:l.activeViewViewableCommands,activeViewMeasurableCommands:(Q=v.playbackCommands)==null?void 0:Q.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(L=v.playbackCommands)==null?void 0:L.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(I=v.playbackCommands)== null?void 0:(t=I.activeViewTracking)==null?void 0:t.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(P=v.playbackCommands)==null?void 0:(YQ=P.activeViewTracking)==null?void 0:YQ.activeViewAudioMeasurableCommands,endFullscreenCommands:(dF=v.playbackCommands)==null?void 0:dF.endFullscreenCommands,abandonCommands:(N=v.playbackCommands)==null?void 0:N.abandonCommands,completeCommands:O}}; ObJ=function(v,O,Y,S,d,r,b){return function(z,M){return vlF(v,M.slotId,z,r,function(V,A){var f=M.layoutId;V=b(V);return Nc(O,f,A,d,V,"LAYOUT_TYPE_SURVEY",[new Ae(Y),S],Y.adLayoutLoggingData)})}}; d83=function(v,O,Y,S,d,r,b){if(!YdE(v))return new m("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:v});var z=v.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[SdF(r,O,Y,S,function(M){var V=M.slotId;M=b(M);V=DH(d.U.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",V);var A={layoutId:V,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",w8:"core"},f=new QA(d.Y,S);return{layoutId:V,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Ge:new Map,layoutExitNormalTriggers:[f], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],w8:"core",clientMetadata:new bx([new fM(z)]),Lj:M(A)}})]}; YdE=function(v){v=g.q(v==null?void 0:v.additionalPlayerOverlay,rpn);if(!v)return!1;var O=v.slidingMessages;return v.title&&O&&O.length!==0?!0:!1}; olE=function(v,O,Y,S,d){var r;if((r=v.playerOverlay)==null||!r.instreamSurveyAdRenderer)return function(){return[]}; if(!RYE(v))return function(){return new m("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:v})}; var b=v.playerOverlay.instreamSurveyAdRenderer,z=DF(b);return z<=0?function(){return new m("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:b})}:function(M,V){var A=bbm(M,Y,S,function(f){var k=f.slotId; f=V(f);var U=HW(b);k=DH(d.U.get(),"LAYOUT_TYPE_SURVEY",k);var c={layoutId:k,layoutType:"LAYOUT_TYPE_SURVEY",w8:"core"},a=new QA(d.Y,S),x=new Go(d.Y,k),T=new vW(d.Y,k),l=new zY3(d.Y);return{layoutId:k,layoutType:"LAYOUT_TYPE_SURVEY",Ge:new Map,layoutExitNormalTriggers:[a,l],layoutExitSkipTriggers:[x],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[T],Xh:[],w8:"core",clientMetadata:new bx([new Vw(b),new N8(O),new qH(z/1E3),new P1(U)]),Lj:f(c),adLayoutLoggingData:b.adLayoutLoggingData}}); M=d83(v,Y,A.slotId,S,d,M,V);return M instanceof m?M:[A].concat(g.F(M))}}; VcJ=function(v,O,Y,S,d,r,b){b=b===void 0?!1:b;var z=[];try{var M=[];if(Y.renderer.linearAdSequenceRenderer)var V=function(a){a=j9i(a.slotId,Y,O,d(a),S,r,b);M=a.iox;return a.Ny}; else if(Y.renderer.instreamVideoAdRenderer)V=function(a){var x=a.slotId;a=d(a);var T=b,l=Y.config.adPlacementConfig,Q=Wum(l),L=Q.QS,I=Q.Ji;Q=Y.renderer.instreamVideoAdRenderer;var t;if(Q==null?0:(t=Q.playerOverlay)==null?0:t.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var P=v8(Q,T);t=Math.min(L+P.videoLengthSeconds*1E3,I);T=new To(0,[P.videoLengthSeconds]);I=P.videoLengthSeconds;var YQ=P.playerVars,dF=P.instreamAdPlayerOverlayRenderer,N=P.playerOverlayLayoutRenderer, j1=P.adVideoId,D=zyJ(Y),yd=P.Ge;P=P.Jx;var pn=Q==null?void 0:Q.adLayoutLoggingData;Q=Q==null?void 0:Q.sodarExtensionData;x=DH(O.U.get(),"LAYOUT_TYPE_MEDIA",x);var Qd={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",w8:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",Ge:yd,layoutExitNormalTriggers:[new Lz(O.Y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],w8:"core",clientMetadata:new bx([new rI(S),new pM(I),new TG(YQ),new he(L),new RD(t),dF&&new b$(dF), N&&new oD(N),new N8(l),new dI(j1),new v1(T),new B1(D),Q&&new Fq(Q),new CM({current:null}),new E$({}),new mv(P)].filter(s9i)),Lj:a(Qd),adLayoutLoggingData:pn}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var A=glw(v,S,Y.adSlotLoggingData,V);z.push(A);for(var f=g.y(M),k=f.next();!k.done;k=f.next()){var U=k.value,c=U(v,d);if(c instanceof m)return c;z.push.apply(z,g.F(c))}}catch(a){return new m(a,{errorMessage:a.message,AdPlacementRenderer:Y,numberOfSurveyRenderers:Mci(Y)})}return z}; Mci=function(v){v=(v.renderer.linearAdSequenceRenderer||{}).linearAds;return v!=null&&v.length?v.filter(function(O){var Y,S;return((Y=g.q(O,AX))==null?void 0:(S=Y.playerOverlay)==null?void 0:S.instreamSurveyAdRenderer)!=null}).length:0}; j9i=function(v,O,Y,S,d,r,b){var z=O.config.adPlacementConfig,M=Wum(z),V=M.QS,A=M.Ji;M=(O.renderer.linearAdSequenceRenderer||{}).linearAds;if(M==null||!M.length)throw new TypeError("Expected linear ads");var f=[],k={aQ:V,GH:0,lQO:f};M=M.map(function(c){return Apd(v,c,k,Y,S,z,d,A,b)}).map(function(c,a){a=new To(a,f); return c(a)}); var U=M.map(function(c){return c.C8}); return{Ny:fLg(Y,v,V,U,z,zyJ(O),S,A,r),iox:M.map(function(c){return c.ReO})}}; Apd=function(v,O,Y,S,d,r,b,z,M){var V=v8(g.q(O,AX),M),A=Y.aQ,f=Y.GH,k=Math.min(A+V.videoLengthSeconds*1E3,z);Y.aQ=k;Y.GH++;Y.lQO.push(V.videoLengthSeconds);var U,c,a=(U=g.q(O,AX))==null?void 0:(c=U.playerOverlay)==null?void 0:c.instreamSurveyAdRenderer;if(V.adVideoId==="nPpU29QrbiU"&&a==null)throw new TypeError("Survey slate media has no survey overlay");return function(x){GE(V.playerVars,x);var T,l,Q=V.videoLengthSeconds,L=V.playerVars,I=V.Ge,t=V.Jx,P=V.instreamAdPlayerOverlayRenderer,YQ=V.playerOverlayLayoutRenderer, dF=V.adVideoId,N=(T=g.q(O,AX))==null?void 0:T.adLayoutLoggingData;T=(l=g.q(O,AX))==null?void 0:l.sodarExtensionData;l=DH(S.U.get(),"LAYOUT_TYPE_MEDIA",v);var j1={layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA",w8:"adapter"};x={layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA",Ge:I,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],w8:"adapter",clientMetadata:new bx([new rI(b),new pM(Q),new TG(L),new he(A),new RD(k),new e7(f),new CM({current:null}), P&&new b$(P),YQ&&new oD(YQ),new N8(r),new dI(dF),new v1(x),T&&new Fq(T),a&&new i$(a),new E$({}),new mv(t)].filter(s9i)),Lj:d(j1),adLayoutLoggingData:N};Q=olE(g.q(O,AX),r,b,x.layoutId,S);return{C8:x,ReO:Q}}}; v8=function(v,O){if(!v)throw new TypeError("Expected instream video ad renderer");if(!v.playerVars)throw new TypeError("Expected player vars in url encoded string");var Y=Se(v.playerVars),S=Number(Y.length_seconds);if(isNaN(S))throw new TypeError("Expected valid length seconds in player vars");var d=Number(v.trimmedMaxNonSkippableAdDurationMs);S=isNaN(d)?S:Math.min(S,d/1E3);d=v.playerOverlay||{};d=d.instreamAdPlayerOverlayRenderer===void 0?null:d.instreamAdPlayerOverlayRenderer;var r=v.playerOverlay|| {};r=r.playerOverlayLayoutRenderer===void 0?null:r.playerOverlayLayoutRenderer;var b=Y.video_id;b||(b=(b=v.externalVideoId)?b:void 0);if(!b)throw new TypeError("Expected valid video id in IVAR");if(O&&S===0){var z;O=(z=$8l[b])!=null?z:S}else O=S;return{playerVars:Y,videoLengthSeconds:O,instreamAdPlayerOverlayRenderer:d,playerOverlayLayoutRenderer:r,adVideoId:b,Ge:v.pings?TR(v.pings):new Map,Jx:pN(v.pings)}}; zyJ=function(v){v=Number(v.driftRecoveryMs);return isNaN(v)||v<=0?null:v}; Wum=function(v){var O=v.adTimeOffset||{};v=O.offsetEndMilliseconds;O=Number(O.offsetStartMilliseconds);if(isNaN(O))throw new TypeError("Expected valid start offset");v=Number(v);if(isNaN(v))throw new TypeError("Expected valid end offset");return{QS:O,Ji:v}}; kh7=function(v){var O,Y=(O=oj(v.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:O.current;if(!Y)return null;O=oj(v.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var S=v.layoutId,d=oj(v.clientMetadata,"metadata_type_content_cpn"),r=oj(v.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),b=oj(v.clientMetadata,"metadata_type_player_underlay_renderer"),z=oj(v.clientMetadata,"metadata_type_ad_placement_config"),M=oj(v.clientMetadata,"metadata_type_video_length_seconds"); var V=YV(v.clientMetadata,"metadata_type_layout_enter_ms")&&YV(v.clientMetadata,"metadata_type_layout_exit_ms")?(oj(v.clientMetadata,"metadata_type_layout_exit_ms")-oj(v.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Hb:S,contentCpn:d,N1:Y,Fx:O,instreamAdPlayerOverlayRenderer:r,instreamAdPlayerUnderlayRenderer:b,adPlacementConfig:z,videoLengthSeconds:M,RZ:V,inPlayerLayoutId:oj(v.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:oj(v.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; uhw=function(v,O,Y,S,d,r,b,z,M,V,A,f,k,U,c){S=$D(S,"SLOT_TYPE_PLAYER_BYTES");v=U8m(d,v,b,Y,S,M,V);if(v instanceof m)return v;var a;V=(a=oj(v.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:a.layoutId;if(!V)return new m("Invalid adNotify layout");O=cpn(V,d,r,Y,z,O,M,A,f,k,U,c,b);return O instanceof m?O:[v].concat(g.F(O))}; cpn=function(v,O,Y,S,d,r,b,z,M,V,A,f,k){Y=Ccw(O,Y,S,r,b,z,M,V,A,f,k);if(Y instanceof m)return Y;v=ypc(O,v,b,d,Y);return v instanceof m?v:[].concat(g.F(v.r4),[v.bK])}; x8d=function(v,O,Y,S,d,r,b,z,M,V,A,f,k,U){O=Ccw(v,O,Y,d,r,z,M,V,A,f,k,U);if(O instanceof m)return O;v=aL7(v,Y,r,b,S,z.FL,O);return v instanceof m?v:v.r4.concat(v.bK)}; Ccw=function(v,O,Y,S,d,r,b,z,M,V,A,f){var k=OQ(S,Y,V);return k instanceof rL?new m(k):V.N.D().experiments.T0("html5_refactor_in_player_slot_generation")?function(U){var c=new To(0,[k.Yo]);U=pe1(O,k.layoutId,k.x$,Y,YO(k.playerVars,k.k5,r,M,c),k.Yo,d,c,b(U),z.get(k.x$.externalVideoId),f);c=[];if(k.x$.playerOverlay.instreamAdPlayerOverlayRenderer){var a=kh7(U);if(!a)return f_("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,U),{layout:U,r4:[]}; c=[T$c(v,a.contentCpn,a.Hb,function(T){return SB(O,T.slotId,"core",a,Mt(A,T))},a.inPlayerSlotId)].concat(g.F(c)); if(a.instreamAdPlayerUnderlayRenderer&&dM(V)){var x=a.instreamAdPlayerUnderlayRenderer;c=[lLw(v,a.contentCpn,a.Hb,function(T){return Fug(O,T.slotId,x,a.adPlacementConfig,a.Hb,Mt(A,T))})].concat(g.F(c))}}return{layout:U, r4:c}}:function(U){var c=new To(0,[k.Yo]); return{layout:pe1(O,k.layoutId,k.x$,Y,YO(k.playerVars,k.k5,r,M,c),k.Yo,d,c,b(U),z.get(k.x$.externalVideoId),f),r4:[]}}}; OQ=function(v,O,Y){if(!v.playerVars)return new rL("No playerVars available in InstreamVideoAdRenderer.");var S,d;if(v.elementId==null||v.playerVars==null||v.playerOverlay==null||((S=v.playerOverlay)==null?void 0:S.instreamAdPlayerOverlayRenderer)==null&&((d=v.playerOverlay)==null?void 0:d.playerOverlayLayoutRenderer)==null||v.pings==null||v.externalVideoId==null)return new rL("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:v});S=Se(v.playerVars);d=Number(S.length_seconds); isNaN(d)&&(d=0,f_("Expected valid length seconds in player vars but got NaN"));if(Y.Vr(O.kind==="AD_PLACEMENT_KIND_START")){if(v.layoutId===void 0)return new rL("Expected server generated layout ID in instreamVideoAdRenderer");O=v.layoutId}else O=v.elementId;return{layoutId:O,x$:v,playerVars:S,k5:v.playerVars,Yo:d}}; YO=function(v,O,Y,S,d){v.iv_load_policy=S;O=Se(O);if(O.cta_conversion_urls)try{v.cta_conversion_urls=JSON.parse(O.cta_conversion_urls)}catch(r){f_(r)}Y.cP&&(v.ctrl=Y.cP);Y.t3&&(v.ytr=Y.t3);Y.MP&&(v.ytrcc=Y.MP);Y.isMdxPlayback&&(v.mdx="1");v.vvt&&(v.vss_credentials_token=v.vvt,Y.Q_&&(v.vss_credentials_token_type=Y.Q_),Y.mdxEnvironment&&(v.mdx_environment=Y.mdxEnvironment));GE(v,d);return v}; hy3=function(v){var O=new Map;v=g.y(v);for(var Y=v.next();!Y.done;Y=v.next())(Y=Y.value.renderer.remoteSlotsRenderer)&&Y.hostElementId&&O.set(Y.hostElementId,Y);return O}; rM=function(v){return v.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; Ry3=function(v){return v!=null}; Xed=function(v,O,Y,S,d,r,b,z,M,V,A,f,k,U){for(var c=[],a=g.y(v),x=a.next();!x.done;x=a.next())if(x=x.value,!y9n(x)&&!luJ(x)){var T=rM(x)&&!!x.slotEntryTrigger.beforeContentVideoIdStartedTrigger,l=M.Vr(T),Q=eyd(x,V,S,Y.sK,l);if(Q instanceof m)return Q;var L=void 0,I={slotId:x.adSlotMetadata.slotId,slotType:x.adSlotMetadata.slotType,slotPhysicalPosition:(L=x.adSlotMetadata.slotPhysicalPosition)!=null?L:1,w8:"core",slotEntryTrigger:Q.slotEntryTrigger,slotFulfillmentTriggers:Q.slotFulfillmentTriggers, slotExpirationTriggers:Q.slotExpirationTriggers},t=g.q(x.fulfillmentContent.fulfilledLayout,TE);if(t){if(!pG(t))return new m("Invalid PlayerBytesAdLayoutRenderer");L=f&&!(rM(x)&&x.slotEntryTrigger.beforeContentVideoIdStartedTrigger);Q=Q.slotFulfillmentTriggers.some(function(P){return P instanceof Bq}); l=L?El3(I,x.adSlotMetadata.triggerEvent,t,Y,S,r,V,v,l,k,Q,U):Q9c(I,x.adSlotMetadata.triggerEvent,t,O,Y,S,d,r,b,z,M,V,v,A,l,x.adSlotMetadata.triggeringSourceLayoutId);if(l instanceof m)return l;Q=[];rM(x)&&Q.push(new vv({Bd:rM(x)&&!!x.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));L&&Q.push(new E$({}));Y.FL&&Q.push(new GG({}));Q.push(new H1(T));x=Object.assign({},I,{clientMetadata:new bx(Q),fulfilledLayout:l.layout,adSlotLoggingData:x.adSlotMetadata.adSlotLoggingData});c.push.apply(c,g.F(l.r4)); c.push(x)}else if(T=g.q(x.fulfillmentContent.fulfilledLayout,eq)){if(!C2J(T))return new m("Invalid PlayerUnderlayAdLayoutRenderer");T=LuJ(T,S,Y.sK,r,I,x.adSlotMetadata.triggerEvent,x.adSlotMetadata.triggeringSourceLayoutId);if(T instanceof m)return T;x=Object.assign({},I,{clientMetadata:new bx([]),fulfilledLayout:T,adSlotLoggingData:x.adSlotMetadata.adSlotLoggingData});c.push(x)}else if(T=g.q(x.fulfillmentContent.fulfilledLayout,xPQ)){if(!Vuc(T))return new m("Invalid AboveFeedAdLayoutRenderer");T= B$l(T,S,Y.sK,r,I,x.adSlotMetadata.triggerEvent,x.adSlotMetadata.triggeringSourceLayoutId);if(T instanceof m)return T;x=Object.assign({},I,{clientMetadata:new bx([]),fulfilledLayout:T,adSlotLoggingData:x.adSlotMetadata.adSlotLoggingData});c.push(x)}else if(T=g.q(x.fulfillmentContent.fulfilledLayout,p3g)){if(!Sq(T.adLayoutMetadata)||!g.q(T.renderingContent,dZ))return new m("Invalid BelowPlayerAdLayoutRenderer");T=B$l(T,S,Y.sK,r,I,x.adSlotMetadata.triggerEvent,x.adSlotMetadata.triggeringSourceLayoutId); if(T instanceof m)return T;x=Object.assign({},I,{clientMetadata:new bx([]),fulfilledLayout:T,adSlotLoggingData:x.adSlotMetadata.adSlotLoggingData});c.push(x)}else if(T=g.q(x.fulfillmentContent.fulfilledLayout,EB)){if(!FK(T))return new m("Invalid PlayerBytesSequenceItemAdLayoutRenderer");T=Zbw(T,S,Y.sK,r,I,x.adSlotMetadata.triggerEvent);if(T instanceof m)return T;x=Object.assign({},I,{clientMetadata:new bx([]),fulfilledLayout:T,adSlotLoggingData:x.adSlotMetadata.adSlotLoggingData});c.push(x)}else return new m("Unable to retrieve a client slot ["+ I.slotType+"] from a given AdSlotRenderer")}return c}; Zbw=function(v,O,Y,S,d,r){var b={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType,w8:"core"};O=b0(v,O,Y);return O instanceof m?O:(Y=g.q(v.renderingContent,lr))&&Y.pings?Object.assign({},b,{renderingContent:v.renderingContent,Ge:TR(Y.pings)},O,{Lj:Mt(S,d)(b),clientMetadata:new bx([new N8(oL(r))]),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData}):new m("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; B$l=function(v,O,Y,S,d,r,b){var z={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType,w8:"core"};O=b0(v,O,Y);if(O instanceof m)return O;Y=[];Y.push(new N8(oL(r)));r==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&b!==void 0&&Y.push(new $o(b));return Object.assign({},z,{renderingContent:v.renderingContent,Ge:new Map([["impression",we1(v)]])},O,{Lj:Mt(S,d)(z),clientMetadata:new bx(Y),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData})}; LuJ=function(v,O,Y,S,d,r,b){if(v.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(b=g.q(v.renderingContent,hX))if(b=g.q(b.sidePanel,c9g)){var z={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType,w8:"core"};O=b0(v,O,Y);v=O instanceof m?O:Object.assign({},z,{renderingContent:v.renderingContent,Ge:new Map([["impression",b.impressionPings||[]],["resume",b.resumePings||[]]])},O,{Lj:Mt(S,d)(z),clientMetadata:new bx([new N8(oL(r))]),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData})}else v= new m("DismissablePanelTextPortraitImageRenderer is missing");else v=new m("SqueezebackPlayerSidePanelRenderer is missing");else v.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.q(v.renderingContent,$PF)?(b={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType,w8:"core"},O=b0(v,O,Y),v=O instanceof m?O:Object.assign({},b,{renderingContent:v.renderingContent,Ge:new Map},O,{Lj:Mt(S,d)(b),clientMetadata:new bx([new N8(oL(r))]),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData})): v=new m("CounterfactualRenderer is missing"):v.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?v=new m("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):v.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?v=new m("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):v.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.q(v.renderingContent,RR)?(r={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType, w8:"core"},O=b0(v,O,Y),v=O instanceof m?O:b?Object.assign({},r,{renderingContent:v.renderingContent,Ge:new Map},O,{Lj:Mt(S,d)(r),clientMetadata:new bx([new $o(b)]),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData}):new m("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):v=new m("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):v.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.q(v.renderingContent,kMg)? (r={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType,w8:"core"},O=b0(v,O,Y),v=O instanceof m?O:Object.assign({},r,{renderingContent:v.renderingContent,Ge:new Map([])},O,{Lj:Mt(S,d)(r),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new bx([])})):v=new m("AdsEngagementPanelSectionListViewModel is missing"):v=new m("LayoutType ["+v.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return v}; El3=function(v,O,Y,S,d,r,b,z,M,V,A,f){if((f==null?void 0:f.oe)===void 0||(f==null?void 0:f.rU)===void 0)return new m("Cached ad break range from cue point is missing");var k=b0(Y,d,S.sK);if(k instanceof m)return k;k={layoutExitMuteTriggers:[],layoutExitNormalTriggers:k.layoutExitNormalTriggers,layoutExitSkipTriggers:[],Xh:[],layoutExitUserInputSubmittedTriggers:[]};if(g.q(Y.renderingContent,AX))return v=IL$(v,O,Y,k,d,r,z,M,S.sK,b,f.oe,f.rU),v instanceof m?v:v.fP===void 0?new m("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:v.layout,r4:[v.fP]};var U=g.q(Y.renderingContent,Mc);if(U){if(!Sq(Y.adLayoutMetadata))return new m("Invalid ad layout metadata");if(!VS(U))return new m("Invalid sequential layout");U=U.sequentialLayouts.map(function(c){return c.playerBytesAdLayoutRenderer}); v=qdi(v,O,Y,k,U,d,S,r,b,M,z,V,f.oe,f.rU,A);return v instanceof m?v:{layout:v.M0,r4:v.r4}}return new m("Not able to convert a sequential layout")}; qdi=function(v,O,Y,S,d,r,b,z,M,V,A,f,k,U,c){var a=nlJ(d,k,U);if(a instanceof m)return a;var x=[],T=[];a=g.y(a);for(var l=a.next();!l.done;l=a.next()){var Q=l.value;l=v;var L=d[Q.GH],I=Q,t=O;Q=r;var P=b,YQ=z,dF=M,N=V,j1=A,D=jB(L);if(D instanceof m)l=D;else{var yd={layoutId:L.adLayoutMetadata.layoutId,layoutType:L.adLayoutMetadata.layoutType,w8:"adapter"};I=Jp1(t,L,I,Q);I instanceof m?l=I:(l=Object.assign({},yd,W8,{Ge:D,renderingContent:L.renderingContent,clientMetadata:new bx(I),Lj:Mt(YQ,l)(yd),adLayoutLoggingData:L.adLayoutMetadata.adLayoutLoggingData}), l=(L=zy(j1,l,Q,P.sK,YQ,dF,N,void 0,!0))?L instanceof m?L:{layout:l,fP:L}:new m("Expecting associatedInPlayerSlot"))}if(l instanceof m)return l;x.push(l.layout);T.push(l.fP)}d={layoutId:Y.adLayoutMetadata.layoutId,layoutType:Y.adLayoutMetadata.layoutType,w8:"core"};O=[new B1(Number(Y.driftRecoveryMs)),new he(k),new RD(U),new N8(oL(O)),new Dh(f),new E$({})];c&&O.push(new OV({}));return{M0:Object.assign({},d,S,{Mk:x,Ge:new Map,clientMetadata:new bx(O),Lj:Mt(z,v)(d)}),r4:T}}; IL$=function(v,O,Y,S,d,r,b,z,M,V,A,f){if(!pG(Y))return new m("Invalid PlayerBytesAdLayoutRenderer");var k=jB(Y);if(k instanceof m)return k;var U={layoutId:Y.adLayoutMetadata.layoutId,layoutType:Y.adLayoutMetadata.layoutType,w8:"core"},c=g.q(Y.renderingContent,AX);if(!c)return new m("Invalid rendering content for DAI media layout");c=v8(c,!1);A={xX:c,GH:0,aQ:A,xQ:Math.min(A+c.videoLengthSeconds*1E3,f),zV:new To(0,[c.videoLengthSeconds])};var a;f=(a=Number(Y.driftRecoveryMs))!=null?a:void 0;O=Jp1(O, Y,A,d,f);if(O instanceof m)return O;v=Object.assign({},U,S,{Ge:k,renderingContent:Y.renderingContent,clientMetadata:new bx(O),Lj:Mt(r,v)(U),adLayoutLoggingData:Y.adLayoutMetadata.adLayoutLoggingData});return(d=zy(b,v,d,M,r,V,z,void 0,!0))?d instanceof m?d:{layout:v,fP:d}:new m("Expecting associatedInPlayerSlot")}; Q9c=function(v,O,Y,S,d,r,b,z,M,V,A,f,k,U,c,a){var x=b0(Y,r,d.sK);if(x instanceof m)return x;if(g.q(Y.renderingContent,AX)){M=Kud([Y],d,M);if(M instanceof m)return M;if(M.length!==1)return new m("Only expected one media layout.");v=PcF(v,O,Y,x,M[0],void 0,"core",S,r,b,z,V,k,U,c,d.sK,f,void 0,a);return v instanceof m?v:{layout:v.layout,r4:v.fP?[v.fP]:[]}}var T=g.q(Y.renderingContent,Mc);if(T){if(!Sq(Y.adLayoutMetadata))return new m("Invalid ad layout metadata");if(!VS(T))return new m("Invalid sequential layout"); T=T.sequentialLayouts.map(function(l){return l.playerBytesAdLayoutRenderer}); v=Gh$(v,O,Y.adLayoutMetadata,x,T,S,r,d,M,b,z,V,A,f,c,k,U,a);return v instanceof m?v:{layout:v.M0,r4:v.r4}}return new m("Not able to convert a sequential layout")}; Gh$=function(v,O,Y,S,d,r,b,z,M,V,A,f,k,U,c,a,x,T){var l=new S7({current:null}),Q=Kud(d,z,M);if(Q instanceof m)return Q;M=[];for(var L=[],I=void 0,t=0;t0&&(t.push(T),t.push(new Yo(I.adPodSkipTarget)));(r=V.get(I.externalVideoId))&&t.push(new ID(r));r=t}else r=new m("Invalid vod media renderer")}if(r instanceof m)return r;v=Object.assign({},b,S,{Ge:Q,renderingContent:Y.renderingContent,clientMetadata:new bx(r),Lj:Mt(A,v)(b),adLayoutLoggingData:Y.adLayoutMetadata.adLayoutLoggingData});Y=g.q(Y.renderingContent,AX);if(!Y||!gZ(Y))return new m("Invalid meida renderer");f=mJ(f,Y.externalVideoId);f.instreamVideoAdRenderer=Y;f.vc="AD_PLACEMENT_KIND_START";return U?(M=zy(k,v,M,a,A,x,c,T,!1),M instanceof m?M:tc3(v.layoutId,k)&&M?{layout:Object.assign({},v,{clientMetadata:new bx(r.concat(new zG(M)))})}:{layout:v,fP:M}): {layout:v}}; ib1=function(v,O,Y,S,d){if(!pG(O))return new m("Invalid PlayerBytesAdLayoutRenderer");var r=g.q(O.renderingContent,sn);if(!r||r.durationMilliseconds===void 0)return new m("Invalid endcap renderer");var b={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,w8:"adapter"};S=[new nM(r.durationMilliseconds),new P1({impressionCommands:void 0,abandonCommands:r.abandonCommands?[{commandExecutorCommand:r.abandonCommands}]:void 0,completeCommands:r.completionCommands}),new N8(S), new U$("LAYOUT_TYPE_ENDCAP")];if(d){S.push(new O$(d.zV.adPodIndex-1));S.push(new e7(d.zV.adPodIndex));var z;S.push(new Yo((z=d.adPodSkipTarget)!=null?z:-1))}return Object.assign({},b,W8,{renderingContent:O.renderingContent,clientMetadata:new bx(S),Ge:r.skipPings?new Map([["skip",r.skipPings]]):new Map,Lj:Mt(Y,v)(b),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData})}; zy=function(v,O,Y,S,d,r,b,z,M){v=v.filter(function(A){return A.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&A.adSlotMetadata.triggeringSourceLayoutId===O.layoutId}); if(v.length!==0){if(v.length!==1)return new m("Invalid InPlayer slot association for the given PlayerBytes layout");v=v[0];b=eyd(v,r,Y,S,b);if(b instanceof m)return b;var V;r={slotId:v.adSlotMetadata.slotId,slotType:v.adSlotMetadata.slotType,slotPhysicalPosition:(V=v.adSlotMetadata.slotPhysicalPosition)!=null?V:1,w8:"core",slotEntryTrigger:b.slotEntryTrigger,slotFulfillmentTriggers:b.slotFulfillmentTriggers,slotExpirationTriggers:b.slotExpirationTriggers};V=g.q(v.fulfillmentContent.fulfilledLayout, au1);if(!V||!fuQ(V))return new m("Invalid InPlayerAdLayoutRenderer");b={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,w8:"core"};Y=b0(V,Y,S);if(Y instanceof m)return Y;S=[];M&&S.push(new E$({}));if(V.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")S.push.apply(S,g.F(D8Q(v.adSlotMetadata.triggerEvent,O)));else if(V.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")S.push(new N8(oL(v.adSlotMetadata.triggerEvent))),z&&S.push(z);else return new m("Not able to parse an SDF InPlayer layout"); d=Object.assign({},b,Y,{renderingContent:V.renderingContent,Ge:new Map,Lj:Mt(d,r)(b),clientMetadata:new bx(S),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},r,{fulfilledLayout:d,clientMetadata:new bx([])})}}; D8Q=function(v,O){var Y=[];Y.push(new N8(oL(v)));Y.push(new $o(O.layoutId));(v=oj(O.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&Y.push(new CM(v));(v=oj(O.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&Y.push(new S7(v));(v=oj(O.clientMetadata,"metadata_type_remote_slots_data"))&&Y.push(new ID(v));(v=oj(O.clientMetadata,"metadata_type_ad_next_params"))&&Y.push(new Kb(v));(v=oj(O.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&Y.push(new Pe(v));(v= oj(O.clientMetadata,"metadata_type_ad_pod_info"))&&Y.push(new v1(v));(O=oj(O.clientMetadata,"metadata_type_ad_video_id"))&&Y.push(new dI(O));return Y}; m8n=function(v,O,Y,S,d,r){function b(V){return sQ(O,V)} var z=S.zp.inPlayerSlotId,M={layoutId:S.zp.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",w8:"core"};Y={slotId:z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,w8:"core",slotEntryTrigger:new eh(b,v),slotFulfillmentTriggers:[new iz(b,z)],slotExpirationTriggers:[new mr(b,z),new Kz(b,Y)]};v=Object.assign({},M,{layoutExitNormalTriggers:[new QA(b,v)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],Ge:new Map,clientMetadata:new bx([new gI(S.zp), new N8(S.adPlacementConfig),d]),Lj:Mt(r,Y)(M),adLayoutLoggingData:S.zp.adLayoutLoggingData});return Object.assign({},Y,{clientMetadata:new bx([new Zh(v)])})}; tc3=function(v,O){O=g.y(O);for(var Y=O.next();!Y.done;Y=O.next())if(Y=Y.value,Y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var S=g.q(Y.fulfillmentContent.fulfilledLayout,eq);if(S&&(S=g.q(S.renderingContent,hX))&&S.associatedPlayerBytesLayoutId===v)return Y}}; eyd=function(v,O,Y,S,d){var r=Hb7(PW(v.slotEntryTrigger,Y,S),d,v,O);if(r instanceof m)return r;for(var b=[],z=g.y(v.slotFulfillmentTriggers),M=z.next();!M.done;M=z.next()){M=PW(M.value,Y,S);if(M instanceof m)return M;b.push(M)}b=N$E(b,d,v,O);O=[];v=g.y(v.slotExpirationTriggers);for(d=v.next();!d.done;d=v.next()){d=PW(d.value,Y,S);if(d instanceof m)return d;O.push(d)}return{slotEntryTrigger:r,slotFulfillmentTriggers:b,slotExpirationTriggers:O}}; Hb7=function(v,O,Y,S){return O&&Y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&v instanceof lz?new pz(function(d){return sQ(S,d)},Y.adSlotMetadata.slotId):v}; N$E=function(v,O,Y,S){return O&&Y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?v.map(function(d){return d instanceof iz?new Hq(function(r){return sQ(S,r)},Y.adSlotMetadata.slotId):d}):v}; b0=function(v,O,Y){for(var S=[],d=g.y(v.layoutExitNormalTriggers||[]),r=d.next();!r.done;r=d.next()){r=PW(r.value,O,Y);if(r instanceof m)return r;S.push(r)}d=[];r=g.y(v.layoutExitSkipTriggers||[]);for(var b=r.next();!b.done;b=r.next()){b=PW(b.value,O,Y);if(b instanceof m)return b;d.push(b)}r=[];b=g.y(v.layoutExitMuteTriggers||[]);for(var z=b.next();!z.done;z=b.next()){z=PW(z.value,O,Y);if(z instanceof m)return z;r.push(z)}b=[];v=g.y(v.layoutExitUserInputSubmittedTriggers||[]);for(z=v.next();!z.done;z= v.next()){z=PW(z.value,O,Y);if(z instanceof m)return z;b.push(z)}return{layoutExitNormalTriggers:S,layoutExitSkipTriggers:d,layoutExitMuteTriggers:r,layoutExitUserInputSubmittedTriggers:b,Xh:[]}}; jB=function(v){var O=g.q(v.renderingContent,AX);if(O==null?0:O.pings)return TR(O.pings);v=g.q(v.renderingContent,sn);return(v==null?0:v.skipPings)?new Map([["skip",v.skipPings]]):new Map}; Jp1=function(v,O,Y,S,d){O=g.q(O.renderingContent,AX);if(!O)return new m("Invalid rendering content for DAI media layout");v=[new rI(S),new pM(Y.xX.videoLengthSeconds),new TG(Y.xX.playerVars),new he(Y.aQ),new RD(Y.xQ),new e7(Y.GH),new N8(oL(v)),new dI(Y.xX.adVideoId),new v1(Y.zV),O.sodarExtensionData&&new Fq(O.sodarExtensionData),new CM({current:null}),new E$({}),new mv(pN(O.pings))].filter(Ry3);d!==void 0&&v.push(new B1(d));return v}; nlJ=function(v,O,Y){v=v.map(function(M){return v8(g.q(M.renderingContent,AX),!1)}); var S=v.map(function(M){return M.videoLengthSeconds}),d=S.map(function(M,V){return new To(V,S)}),r=O,b=Y,z=[]; v.forEach(function(M,V){b=Math.min(r+M.videoLengthSeconds*1E3,Y);GE(M.playerVars,d[V]);z.push({xX:M,aQ:r,xQ:b,GH:V,zV:d[V]});r=b}); return z}; Kud=function(v,O,Y){for(var S=[],d=g.y(v),r=d.next();!r.done;r=d.next())if(r=g.q(r.value.renderingContent,AX)){if(!gZ(r))return new m("Invalid vod media renderer");S.push(vod(r))}d=S.map(function(f){return f.Yo}); r=[];for(var b=0,z=0;z0?N:-1;else if(yd=g.q(D,sn)){D=sD3(v,O,Y,yd,r,a,z, P,N);if(D instanceof m){U=D;break a}D=D(k);x.push(D.vj);T=[].concat(g.F(D.Si),g.F(T));l=[].concat(g.F(D.Z_),g.F(l));D.fP&&(dF=[D.fP].concat(g.F(dF)))}else if(yd=g.q(D,aR)){if(U===void 0){U=new m("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:yd});break a}D=V77(v,O,Y,r,yd,t,z,U,a,tE(A,"supports_multi_step_on_desktop"));if(D instanceof m){U=D;break a}D=D(k);x.push(D.vj);D.fP&&dF.push(D.fP);T=[].concat(g.F(D.Si),g.F(T));l=[].concat(g.F(D.Z_),g.F(l)); Q=[].concat(g.F(D.CC),g.F(Q));L=[].concat(g.F(D.NI),g.F(L));I=[t].concat(g.F(I))}else if(D=g.q(D,xN)){D=Aen(v,O,Y,r,D,t,z,a);if(D instanceof m){U=D;break a}D=D(k);x.push(D.vj);D.fP&&dF.push(D.fP);l=[].concat(g.F(D.Z_),g.F(l))}else{U=new m("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}U={Mk:x,layoutExitSkipTriggers:T,layoutExitUserInputSubmittedTriggers:Q,Xh:L,layoutExitMuteTriggers:l,mC:I,r4:dF}}}else a:if(a=ye3(S,Y,A),a instanceof m)U=a;else{x=0;T=[];l=[];Q=[];L=[];I=[];t=[]; P=new yw({current:null});YQ=new S7({current:null});dF=!1;j1=[];N=-1;c=g.y(S);for(D=c.next();!D.done;D=c.next())if(D=D.value,g.q(D,yS)){D=gow(O,Y,g.q(D,yS),z);if(D instanceof m){U=D;break a}D=D(k);T.push(D.vj);l=[].concat(g.F(D.Si),g.F(l));Q=[].concat(g.F(D.Z_),g.F(Q));D.fP&&(j1=[D.fP].concat(g.F(j1)))}else if(g.q(D,AX)){N=OQ(g.q(D,AX),Y,A);if(N instanceof rL){U=new m(N);break a}D=new To(x,a);D=ahQ(O,N.layoutId,N.x$,Y,YO(N.playerVars,N.k5,b,V,D),N.Yo,r,D,z(k),YQ,M.get(N.x$.externalVideoId),void 0, f);x++;T.push(D.vj);l=[].concat(g.F(D.Si),g.F(l));Q=[].concat(g.F(D.Z_),g.F(Q));dF||(t.push(YQ),dF=!0);N=(N=N.x$.adPodSkipTarget)&&N>0?N:-1}else if(g.q(D,sn)){D=sD3(v,O,Y,g.q(D,sn),r,x,z,YQ,N);if(D instanceof m){U=D;break a}D=D(k);T.push(D.vj);l=[].concat(g.F(D.Si),g.F(l));Q=[].concat(g.F(D.Z_),g.F(Q));D.fP&&(j1=[D.fP].concat(g.F(j1)))}else if(g.q(D,aR)){if(U===void 0){U=new m("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.q(D,aR)});break a}D= V77(v,O,Y,r,g.q(D,aR),P,z,U,x,tE(A,"supports_multi_step_on_desktop"));if(D instanceof m){U=D;break a}D=D(k);T.push(D.vj);D.fP&&j1.push(D.fP);l=[].concat(g.F(D.Si),g.F(l));Q=[].concat(g.F(D.Z_),g.F(Q));L=[].concat(g.F(D.CC),g.F(L));I=[].concat(g.F(D.NI),g.F(I));t=[P].concat(g.F(t))}else if(g.q(D,xN)){D=Aen(v,O,Y,r,g.q(D,xN),P,z,x);if(D instanceof m){U=D;break a}D=D(k);T.push(D.vj);D.fP&&j1.push(D.fP);Q=[].concat(g.F(D.Z_),g.F(Q))}else{U=new m("Unsupported linearAd found in LinearAdSequenceRenderer."); break a}U={Mk:T,layoutExitSkipTriggers:l,layoutExitUserInputSubmittedTriggers:L,Xh:I,layoutExitMuteTriggers:Q,mC:t,r4:j1}}U instanceof m?k=U:(I=k.slotId,a=U.Mk,x=U.layoutExitSkipTriggers,T=U.layoutExitMuteTriggers,l=U.layoutExitUserInputSubmittedTriggers,Q=U.mC,k=z(k),L=d?d.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",I=d?d.layoutId:DH(O.U.get(),L,I),t={layoutId:I,layoutType:L,w8:"core"},k={layout:{layoutId:I,layoutType:L,Ge:new Map,layoutExitNormalTriggers:[new JO(O.Y,I)],layoutExitSkipTriggers:x, layoutExitMuteTriggers:T,layoutExitUserInputSubmittedTriggers:l,Xh:[],w8:"core",clientMetadata:new bx([new aD(a)].concat(g.F(Q))),Lj:k(t)},r4:U.r4});return k}}; ye3=function(v,O,Y){var S=[];v=g.y(v);for(var d=v.next();!d.done;d=v.next())if(d=d.value,g.q(d,AX)){d=OQ(g.q(d,AX),O,Y);if(d instanceof rL)return new m(d);S.push(d.Yo)}return S}; p1$=function(v,O,Y,S,d,r,b,z){if(!hYm(Y,z===void 0?!1:z))return new m("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:Y});var M=DF(Y);if(M<=0)return new m("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:Y});var V=new yw({current:null}),A=ObJ(v,O,Y,V,S,r,b);return xHg(v,S,r,M,d,function(f,k){var U=f.slotId,c=HW(Y);f=b(f);var a,x=(a=Aj(O,S,Y.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?a: DH(O.U.get(),"LAYOUT_TYPE_MEDIA_BREAK",U);U={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",w8:"core"};a=A(x,k);var T=oj(a.clientMetadata,"metadata_type_fulfilled_layout");T||f_("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");c=[new N8(S),new nM(M),new P1(c),V];T&&c.push(new U$(T.layoutType));return{k0x:{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ge:new Map,layoutExitNormalTriggers:[new JO(O.Y,x)],layoutExitSkipTriggers:[new Go(O.Y, k.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new vW(O.Y,k.layoutId)],Xh:[],w8:"core",clientMetadata:new bx(c),Lj:f(U)},ox:a}})}; TIw=function(v){if(!EbQ(v))return!1;var O=g.q(v.adVideoStart,c8);return O?g.q(v.linearAd,AX)&&zE(O)?!0:(f_("Invalid Sandwich with notify"),!1):!1}; lhF=function(v){if(v.linearAds==null)return!1;v=g.q(v.adStart,c8);return v?zE(v)?!0:(f_("Invalid LASR with notify"),!1):!1}; Fvl=function(v){if(!eY$(v))return!1;v=g.q(v.adStart,c8);return v?zE(v)?!0:(f_("Invalid LASR with notify"),!1):!1}; u0=function(v,O,Y,S,d,r,b,z,M,V){this.B=v;this.U=O;this.Y=Y;this.e4=S;this.cY=d;this.G=r;this.Zu=b;this.gx=z;this.PY=M;this.loadPolicy=V===void 0?1:V}; JX=function(v,O,Y,S,d,r,b,z,M,V){var A=[];if(O.length===0&&S.length===0&&Y.length===0)return A;O=O.filter(sB);var f=Y.filter(Tfi),k=S.filter(sB),U=new Map,c=hy3(O),a=Y.some(function(pn){var Qd;return(pn==null?void 0:(Qd=pn.adSlotMetadata)==null?void 0:Qd.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),x=Y.some(function(pn){var Qd; return(pn==null?void 0:(Qd=pn.adSlotMetadata)==null?void 0:Qd.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),T=Y.some(function(pn){var Qd; return(pn==null?void 0:(Qd=pn.adSlotMetadata)==null?void 0:Qd.slotType)==="SLOT_TYPE_IN_PLAYER"}),l=Y.some(function(pn){var Qd,uL; return(pn==null?void 0:(Qd=pn.adSlotMetadata)==null?void 0:Qd.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(pn==null?void 0:(uL=pn.adSlotMetadata)==null?void 0:uL.slotType)==="SLOT_TYPE_ABOVE_FEED"}); Y=Y.some(function(pn){var Qd;return(pn==null?void 0:(Qd=pn.adSlotMetadata)==null?void 0:Qd.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(a||x||T||l||Y)V=Xed(f,O,z,d,c,v.cY.get(),v.loadPolicy,U,v.e4.get(),v.B.get(),T,b,M,V),V instanceof m?f_(V,void 0,void 0,{contentCpn:d}):A.push.apply(A,g.F(V));V=g.y(O);for(Y=V.next();!Y.done;Y=V.next())Y=Y.value,x=hDJ(v,U,Y,d,r,b,a,z,c,M,f),x instanceof m?f_(x,void 0,void 0,{renderer:Y.renderer,config:Y.config.adPlacementConfig,kind:Y.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:b}):A.push.apply(A,g.F(x));RDd(v.e4.get())||(r=eDc(v,k,d,z,c,U),A.push.apply(A,g.F(r)));if(v.G===null||b&&!z.jb){var Q, L,I;v=z.FL&&O.length===1&&((Q=O[0].config)==null?void 0:(L=Q.adPlacementConfig)==null?void 0:L.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((I=O[0].renderer)==null?void 0:I.adBreakServiceRenderer);if(!A.length&&!v){var t,P,YQ,dF;f_("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":O.length,contentCpn:d,"first APR kind":(t=O[0])==null?void 0:(P=t.config)==null?void 0:(YQ=P.adPlacementConfig)==null?void 0:YQ.kind,renderer:(dF=O[0])==null?void 0: dF.renderer})}return A}Q=S.filter(sB);A.push.apply(A,g.F(HLE(U,Q,v.U.get(),v.G,d,a)));if(!A.length){var N,j1,D,yd;f_("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":O.length,contentCpn:d,daiEnabled:b.toString(),"first APR kind":(N=O[0])==null?void 0:(j1=N.config)==null?void 0:(D=j1.adPlacementConfig)==null?void 0:D.kind,renderer:(yd=O[0])==null?void 0:yd.renderer})}return A}; eDc=function(v,O,Y,S,d,r){function b(k){return Mt(v.cY.get(),k)} var z=[];O=g.y(O);for(var M=O.next();!M.done;M=O.next()){M=M.value;var V=M.renderer,A=V.sandwichedLinearAdRenderer,f=V.linearAdSequenceRenderer;A&&TIw(A)?(f_("Found AdNotify with SandwichedLinearAdRenderer"),f=g.q(A.adVideoStart,c8),A=g.q(A.linearAd,AX),ir(r,V,M.config.adPlacementConfig.kind),V=void 0,f=cpn((V=f)==null?void 0:V.layout.layoutId,v.U.get(),v.Y.get(),M.config.adPlacementConfig,M.adSlotLoggingData,A,Y,S,b,d,v.loadPolicy,v.e4.get(),v.cY.get()),f instanceof m?f_(f):z.push.apply(z,g.F(f))): f&&(!f.adLayoutMetadata&&lhF(f)||f.adLayoutMetadata&&Fvl(f))&&(f_("Found AdNotify with LinearAdSequenceRenderer"),ir(r,V,M.config.adPlacementConfig.kind),V=void 0,A=fhm((V=g.q(f.adStart,c8))==null?void 0:V.layout.layoutId,v.U.get(),v.Y.get(),M.config.adPlacementConfig,M.adSlotLoggingData,f.linearAds,Sq(f.adLayoutMetadata)?f.adLayoutMetadata:void 0,Y,S,b,d,v.loadPolicy,v.e4.get()),A instanceof m?f_(A):z.push.apply(z,g.F(A)))}return z}; hDJ=function(v,O,Y,S,d,r,b,z,M,V,A){function f(T){return Mt(v.cY.get(),T)} var k=Y.renderer,U=Y.config.adPlacementConfig,c=U.kind,a=Y.adSlotLoggingData,x=z.jb&&c==="AD_PLACEMENT_KIND_START";x=r&&!x;if(k.adsEngagementPanelRenderer!=null)return tX(O,Y.elementId,c,k.adsEngagementPanelRenderer.isContentVideoEngagementPanel,k.adsEngagementPanelRenderer.adVideoId,k.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,U,a,function(T,l,Q,L){var I=v.Y.get(),t=T.slotId,P=k.adsEngagementPanelRenderer;T=Mt(v.cY.get(),T);return Ci(I,t,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new nb(P),l,Q,P.impressionPings,T,k.adsEngagementPanelRenderer.adLayoutLoggingData,L)}),[]; if(k.adsEngagementPanelLayoutViewModel)return tX(O,Y.elementId,c,k.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,k.adsEngagementPanelLayoutViewModel.adVideoId,k.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,U,a,function(T,l,Q,L){var I=v.Y.get(),t=T.slotId,P=k.adsEngagementPanelLayoutViewModel;T=Mt(v.cY.get(),T);return yC(I,t,"LAYOUT_TYPE_PANEL",new Jp(P),l,Q,T,k.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,L)}),[]; if(k.actionCompanionAdRenderer!=null){if(k.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return GMn(v.U.get(),v.G,v.Y.get(),k.actionCompanionAdRenderer,U,a,S,f);tX(O,Y.elementId,c,k.actionCompanionAdRenderer.isContentVideoCompanion,k.actionCompanionAdRenderer.adVideoId,k.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,U,a,function(T,l,Q,L){var I=v.Y.get(),t=T.slotId,P=k.actionCompanionAdRenderer;T=Mt(v.cY.get(),T);return Ci(I,t,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new I9(P),l,Q,P.impressionPings,T,k.actionCompanionAdRenderer.adLayoutLoggingData,L)})}else if(k.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(k.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return iLl(v.U.get(),v.G,v.Y.get(),k.topBannerImageTextIconButtonedLayoutViewModel,U,a,S,f); tX(O,Y.elementId,c,k.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,k.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,k.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,U,a,function(T,l,Q,L){var I=v.Y.get(),t=T.slotId,P=k.topBannerImageTextIconButtonedLayoutViewModel;T=Mt(v.cY.get(),T);return yC(I,t,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new q8(P),l,Q,T,k.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,L)})}else if(k.imageCompanionAdRenderer)tX(O, Y.elementId,c,k.imageCompanionAdRenderer.isContentVideoCompanion,k.imageCompanionAdRenderer.adVideoId,k.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,U,a,function(T,l,Q,L){var I=v.Y.get(),t=T.slotId,P=k.imageCompanionAdRenderer; T=Mt(v.cY.get(),T);return Ci(I,t,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new ic(P),l,Q,P.impressionPings,T,k.imageCompanionAdRenderer.adLayoutLoggingData,L)}); else if(k.bannerImageLayoutViewModel)tX(O,Y.elementId,c,k.bannerImageLayoutViewModel.isContentVideoCompanion,k.bannerImageLayoutViewModel.adVideoId,k.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,U,a,function(T,l,Q,L){var I=v.Y.get(),t=T.slotId,P=k.bannerImageLayoutViewModel;T=Mt(v.cY.get(),T);return yC(I,t,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new mu(P),l,Q,T,k.bannerImageLayoutViewModel.adLayoutLoggingData,L)}); else if(k.shoppingCompanionCarouselRenderer)tX(O,Y.elementId,c,k.shoppingCompanionCarouselRenderer.isContentVideoCompanion,k.shoppingCompanionCarouselRenderer.adVideoId,k.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,U,a,function(T,l,Q,L){var I=v.Y.get(),t=T.slotId,P=k.shoppingCompanionCarouselRenderer;T=Mt(v.cY.get(),T);return Ci(I,t,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new tp(P),l,Q,P.impressionPings,T,k.shoppingCompanionCarouselRenderer.adLayoutLoggingData,L)}); else if(k.adBreakServiceRenderer){if(!KUi(Y))return[];if(c==="AD_PLACEMENT_KIND_PAUSE")return J9c(v.U.get(),U,a,Y.renderer.adBreakServiceRenderer,S);if(c!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&c!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return nbl(v.U.get(),U,a,Y.renderer.adBreakServiceRenderer,S,d,r);z.FL||f_("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:c,adPlacementConfig:U,daiEnabledForContentVideo:String(r),isServedFromLiveInfra:String(z.FL),clientPlaybackNonce:z.clientPlaybackNonce}); if(c==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!v.Zu)return new m("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!v.PY)return new m("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");v.PY.VT({adPlacementRenderer:Y,contentCpn:S,sK:d});d=v.Zu.get().getCurrentTimeSec(1,!1);return Eo$(v.U.get(),Y.renderer.adBreakServiceRenderer,U,d,S,a,r)}if(!v.gx)return new m("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); v.gx.VT({adPlacementRenderer:Y,contentCpn:S,sK:d})}else{if(k.clientForecastingAdRenderer)return dHd(v.U.get(),v.Y.get(),U,a,k.clientForecastingAdRenderer,S,d,f);if(k.invideoOverlayAdRenderer)return jDQ(v.U.get(),v.Y.get(),U,a,k.invideoOverlayAdRenderer,S,d,f);if(k.instreamAdPlayerOverlayRenderer)return bMF(v.U.get(),v.Y.get(),U,a,k.instreamAdPlayerOverlayRenderer,S,f);if((k.linearAdSequenceRenderer||k.instreamVideoAdRenderer)&&x)return VcJ(v.U.get(),v.Y.get(),Y,S,f,V,!v.e4.get().N.D().V("html5_override_ad_video_length_killswitch")); if(k.linearAdSequenceRenderer&&!x){if(b)return[];ir(O,k,c);if(k.linearAdSequenceRenderer.adLayoutMetadata){if(!eY$(k.linearAdSequenceRenderer))return new m("Received invalid LinearAdSequenceRenderer.")}else if(k.linearAdSequenceRenderer.linearAds==null)return new m("Received invalid LinearAdSequenceRenderer.");if(g.q(k.linearAdSequenceRenderer.adStart,c8)){f_("Found AdNotify in LinearAdSequenceRenderer");Y=g.q(k.linearAdSequenceRenderer.adStart,c8);if(!A97(Y))return new m("Invalid AdMessageRenderer."); r=k.linearAdSequenceRenderer.linearAds;return $Hn(v.B.get(),v.U.get(),v.Y.get(),v.cY.get(),U,a,Y,Sq(k.linearAdSequenceRenderer.adLayoutMetadata)?k.linearAdSequenceRenderer.adLayoutMetadata:void 0,r,S,d,z,f,M,v.loadPolicy,v.e4.get())}return C$E(v.U.get(),v.Y.get(),U,a,k.linearAdSequenceRenderer.linearAds,Sq(k.linearAdSequenceRenderer.adLayoutMetadata)?k.linearAdSequenceRenderer.adLayoutMetadata:void 0,S,d,z,f,M,v.loadPolicy,v.e4.get(),A)}if(!k.remoteSlotsRenderer||r){if(k.instreamVideoAdRenderer&& !x){if(b)return[];ir(O,k,c);return x8d(v.U.get(),v.Y.get(),U,a,k.instreamVideoAdRenderer,S,d,z,f,M,v.loadPolicy,v.e4.get(),v.cY.get(),A)}if(k.instreamSurveyAdRenderer)return p1$(v.U.get(),v.Y.get(),k.instreamSurveyAdRenderer,U,a,S,f,tE(v.e4.get(),"supports_multi_step_on_desktop"));if(k.sandwichedLinearAdRenderer!=null)return EbQ(k.sandwichedLinearAdRenderer)?g.q(k.sandwichedLinearAdRenderer.adVideoStart,c8)?(f_("Found AdNotify in SandwichedLinearAdRenderer"),Y=g.q(k.sandwichedLinearAdRenderer.adVideoStart, c8),A97(Y)?(r=g.q(k.sandwichedLinearAdRenderer.linearAd,AX))?uhw(Y,r,U,v.B.get(),v.U.get(),v.Y.get(),v.cY.get(),a,S,d,z,f,M,v.loadPolicy,v.e4.get()):new m("Missing IVAR from Sandwich"):new m("Invalid AdMessageRenderer.")):C$E(v.U.get(),v.Y.get(),U,a,[k.sandwichedLinearAdRenderer.adVideoStart,k.sandwichedLinearAdRenderer.linearAd],void 0,S,d,z,f,M,v.loadPolicy,v.e4.get()):new m("Received invalid SandwichedLinearAdRenderer.");if(k.videoAdTrackingRenderer!=null)return Y$i(v.U.get(),v.Y.get(),k.videoAdTrackingRenderer, U,a,S,d,z.wy,f)}}return[]}; aL=function(v,O,Y,S,d,r,b,z){g.X.call(this);var M=this;this.U=v;this.G=O;this.Pq=S;this.Zu=d;this.e4=r;this.L1=b;this.eO=z;this.Y=null;Y.get().addListener(this);this.addOnDisposeCallback(function(){Y.vW()||Y.get().removeListener(M)}); S.get().addListener(this);this.addOnDisposeCallback(function(){S.vW()||S.get().removeListener(M)})}; Lvg=function(v,O,Y){var S=v.Zu.get().getCurrentTimeSec(1,!1);v.e4.get().N.D().XL()&&bz(v.L1.get(),"sdai","onopp.1;evt."+Y.event+";start."+Y.startSecs.toFixed(3)+";d."+Y.kZ.toFixed(3));fN(v.U.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var d=v.G.get(),r=O.adPlacementRenderer.renderer.adBreakServiceRenderer,b=O.contentCpn,z=O.adPlacementRenderer.adSlotLoggingData,M=xO(v.e4.get()),V=v.L1;if(d.e4.get().N.D().experiments.T0("enable_smearing_expansion_dai")){var A=d.e4.get();A=g.Vq(A.N.D().experiments, "max_prefetch_window_sec_for_livestream_optimization");M=d.e4.get();var f=g.Vq(M.N.D().experiments,"min_prefetch_offset_sec_for_livestream_optimization");M={zZ:QD7(Y),vZ:!1,cueProcessedMs:S*1E3};var k=Y.startSecs+Y.kZ;if(S===0)M.xq=new xG(0,k*1E3);else{f=Y.startSecs-f;var U=f-S;M.xq=U<=0?new xG(f*1E3,k*1E3):new xG(Math.floor(S+Math.random()*Math.min(U,A))*1E3,k*1E3)}A=M}else A={zZ:QD7(Y),vZ:!1},k=Y.startSecs+Y.kZ,Y.startSecs<=S?M=new xG((Y.startSecs-4)*1E3,k*1E3):(f=Math.max(0,Y.startSecs-S-10),M= new xG(Math.floor(S+Math.random()*(M?S===0?0:Math.min(f,5):f))*1E3,k*1E3)),A.xq=M;r=KG(d,r,b,A,z,[new xo(Y)]);pi(d.e4.get())&&bz(V.get(),"abrsm","cpi."+Y.identifier+";cps."+Y.startSecs+";cpd."+Y.kZ+";cts."+S+";rbf."+A.xq.start);V.get().N.IE(Y.startSecs-S,A.xq.start/1E3-S);return[r]})}; Ty=function(v){var O,Y=(O=oj(v.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:O.current;if(!Y)return null;O=oj(v.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var S=v.layoutId,d=oj(v.clientMetadata,"metadata_type_content_cpn"),r=oj(v.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),b=oj(v.clientMetadata,"metadata_type_player_overlay_layout_renderer"),z=oj(v.clientMetadata,"metadata_type_player_underlay_renderer"),M=oj(v.clientMetadata, "metadata_type_ad_placement_config"),V=oj(v.clientMetadata,"metadata_type_video_length_seconds");var A=YV(v.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?oj(v.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):YV(v.clientMetadata,"metadata_type_layout_enter_ms")&&YV(v.clientMetadata,"metadata_type_layout_exit_ms")?(oj(v.clientMetadata,"metadata_type_layout_exit_ms")-oj(v.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Hb:S,contentCpn:d,N1:Y,Fx:O,instreamAdPlayerOverlayRenderer:r, playerOverlayLayoutRenderer:b,instreamAdPlayerUnderlayRenderer:z,adPlacementConfig:M,videoLengthSeconds:V,RZ:A,inPlayerLayoutId:oj(v.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:oj(v.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; ZMd=function(v,O){return BId(v,O)}; X1$=function(v,O){O=BId(v,O);if(!O)return null;var Y;O.RZ=(Y=oj(v.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:Y.adBreakRemainingLengthSeconds;return O}; BId=function(v,O){var Y,S=(Y=oj(v.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:Y.current;if(!S)return null;Y=SOQ(v,O);return{d3:YOl(v,O),adPlacementConfig:oj(v.clientMetadata,"metadata_type_ad_placement_config"),ZW:Y,contentCpn:oj(v.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:oj(v.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:oj(v.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:oj(v.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,RZ:void 0,N1:S,Hb:v.layoutId,videoLengthSeconds:oj(v.clientMetadata,"metadata_type_video_length_seconds")}}; l0=function(v,O,Y,S,d,r,b,z,M){g.X.call(this);this.B=v;this.C=O;this.Z=Y;this.G=S;this.Y=d;this.U=r;this.cY=b;this.e4=z;this.S4=M;this.zm=!0}; w17=function(v,O,Y){return lLw(v.Y.get(),O.contentCpn,O.Hb,function(S){return Fug(v.U.get(),S.slotId,Y,O.adPlacementConfig,O.Hb,Mt(v.cY.get(),S))})}; FD=function(v,O,Y,S,d,r,b,z){g.X.call(this);this.U=v;this.Y=O;this.G=Y;this.e4=S;this.B=d;this.S4=r;this.Zu=b;this.ZU=z}; hj=function(v){g.X.call(this);this.Y=v}; fN=function(v,O,Y,S){v.Y().DQ(O,S);Y=Y();v=v.Y();v.Sh.RC("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",O,S,Y);O=g.y(Y);for(Y=O.next();!Y.done;Y=O.next())a:{S=v;Y=Y.value;S.Sh.HV("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",Y);S.Sh.HV("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",Y);try{var d=S.Y;if(g.Vh(Y.slotId))throw new m("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(C0(d,Y))throw new m("Duplicate registration for slot.",{slotId:Y.slotId,slotEntryTriggerType:Y.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!d.WB.w0.has(Y.slotType))throw new m("No fulfillment adapter factory registered for slot of type: "+Y.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!d.WB.ey.has(Y.slotType))throw new m("No SlotAdapterFactory registered for slot of type: "+Y.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");wL(d,"TRIGGER_CATEGORY_SLOT_ENTRY",Y.slotEntryTrigger?[Y.slotEntryTrigger]:[]);wL(d,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", Y.slotFulfillmentTriggers);wL(d,"TRIGGER_CATEGORY_SLOT_EXPIRATION",Y.slotExpirationTriggers);var r=S.Y,b=Y.slotType+"_"+Y.slotPhysicalPosition,z=Qq(r,b);if(C0(r,Y))throw new m("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");z.set(Y.slotId,new me1(Y));r.Y.set(b,z)}catch(YQ){YQ instanceof m&&YQ.Fp?(S.Sh.Jy("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",YQ.Fp,Y),f_(YQ,Y,void 0,void 0,YQ.GM)):(S.Sh.Jy("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", Y),f_(YQ,Y));break a}C0(S.Y,Y).C=!0;try{var M=S.Y,V=C0(M,Y),A=Y.slotEntryTrigger,f=M.WB.Hu.get(A.triggerType);f&&(f.Yp("TRIGGER_CATEGORY_SLOT_ENTRY",A,Y,null),V.HW.set(A.triggerId,f));for(var k=g.y(Y.slotFulfillmentTriggers),U=k.next();!U.done;U=k.next()){var c=U.value,a=M.WB.Hu.get(c.triggerType);a&&(a.Yp("TRIGGER_CATEGORY_SLOT_FULFILLMENT",c,Y,null),V.tK.set(c.triggerId,a))}for(var x=g.y(Y.slotExpirationTriggers),T=x.next();!T.done;T=x.next()){var l=T.value,Q=M.WB.Hu.get(l.triggerType);Q&&(Q.Yp("TRIGGER_CATEGORY_SLOT_EXPIRATION", l,Y,null),V.j.set(l.triggerId,Q))}var L=M.WB.w0.get(Y.slotType).get().build(M.G,Y);V.L=L;var I=M.WB.ey.get(Y.slotType).get().build(M.Z,Y);I.init();V.U=I}catch(YQ){YQ instanceof m&&YQ.Fp?(S.Sh.Jy("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",YQ.Fp,Y),f_(YQ,Y,void 0,void 0,YQ.GM)):(S.Sh.Jy("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",Y),f_(YQ,Y));UV(S,Y,!0);break a}S.Sh.HV("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",Y);S.Y.Rn(Y);for(var t=g.y(S.U),P=t.next();!P.done;P= t.next())P.value.Rn(Y);xV(S,Y)}}; RL=function(v,O,Y,S,d){g.X.call(this);var r=this;this.U=v;this.G=O;this.SO=Y;this.context=d;this.Y=new Map;S.get().addListener(this);this.addOnDisposeCallback(function(){S.vW()||S.get().removeListener(r)})}; BfQ=function(v,O){var Y=0x8000000000000;var S=0;for(var d=g.y(O.slotFulfillmentTriggers),r=d.next();!r.done;r=d.next())r=r.value,r instanceof w6?(Y=Math.min(Y,r.Y.start),S=Math.max(S,r.Y.end)):f_("Found unexpected fulfillment trigger for throttled slot.",O,null,{fulfillmentTrigger:r});S=new xG(Y,S);Y="throttledadcuerange:"+O.slotId;v.Y.set(Y,O);v.SO.get().addCueRange(Y,S.start,S.end,!1,v);xu(v.context.e4.get())&&(O=S.start,S=S.end,d={},v.context.Im.Yy("tcrr",(d.cid=Y,d.sm=O,d.em=S,d)))}; eB=function(){g.X.apply(this,arguments);this.zm=!0;this.HP=new Map;this.Y=new Map}; EQ=function(v,O){v=g.y(v.HP.values());for(var Y=v.next();!Y.done;Y=v.next())if(Y.value.layoutId===O)return!0;return!1}; QC=function(v,O){v=g.y(v.Y.values());for(var Y=v.next();!Y.done;Y=v.next()){Y=g.y(Y.value);for(var S=Y.next();!S.done;S=Y.next())if(S=S.value,S.layoutId===O)return S}f_("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.Vh(O)),layoutId:O})}; Ih7=function(){this.Y=new Map}; q$Q=function(v,O){this.callback=v;this.slot=O}; Li=function(){}; noF=function(v,O,Y){this.callback=v;this.slot=O;this.Zu=Y}; JeJ=function(v,O,Y){this.callback=v;this.slot=O;this.Zu=Y;this.U=!1;this.Y=0}; Kvl=function(v,O,Y){this.callback=v;this.slot=O;this.Zu=Y}; B8=function(v){this.Zu=v}; Zk=function(v){g.X.call(this);this.YI=v;this.h$=new Map}; XD=function(v,O){for(var Y=[],S=g.y(v.h$.values()),d=S.next();!d.done;d=S.next()){d=d.value;var r=d.trigger;r instanceof vW&&r.triggeringLayoutId===O&&Y.push(d)}Y.length?Rj(v.YI(),Y):f_("Survey is submitted but no registered triggers can be activated.")}; wM=function(v,O,Y){Zk.call(this,v);var S=this;this.e4=Y;O.get().addListener(this);this.addOnDisposeCallback(function(){O.vW()||O.get().removeListener(S)})}; IL=function(v){g.X.call(this);this.Y=v;this.zm=!0;this.h$=new Map;this.Z=new Set;this.G=new Set;this.B=new Set;this.C=new Set;this.U=new Set}; qr=function(v){g.X.call(this);this.Y=v;this.h$=new Map}; ni=function(v,O){for(var Y=[],S=g.y(v.h$.values()),d=S.next();!d.done;d=S.next())d=d.value,d.trigger.Y===O.layoutId&&Y.push(d);Y.length&&Rj(v.Y(),Y)}; Jj=function(v,O,Y){g.X.call(this);var S=this;this.Y=v;this.context=Y;this.h$=new Map;O.get().addListener(this);this.addOnDisposeCallback(function(){O.vW()||O.get().removeListener(S)})}; Ki=function(v,O,Y,S,d){g.X.call(this);var r=this;this.U=v;this.SO=O;this.Zu=Y;this.S4=S;this.context=d;this.zm=!0;this.h$=new Map;this.Y=new Set;Y.get().addListener(this);this.addOnDisposeCallback(function(){Y.vW()||Y.get().removeListener(r)})}; P$i=function(v,O,Y,S,d,r,b,z,M,V){if(u7(v.S4.get(),1).clientPlaybackNonce!==M)throw new m("Cannot register CueRange-based trigger for different content CPN",{trigger:Y});v.h$.set(Y.triggerId,{IU:new YN(O,Y,S,d),cueRangeId:r});v.SO.get().addCueRange(r,b,z,V,v);xu(v.context.e4.get())&&(M={},v.context.Im.Yy("crr",(M.ca=O,M.tt=Y.triggerType,M.st=S.slotType,M.lt=d==null?void 0:d.layoutType,M.cid=r,M.sm=b,M.em=z,M)))}; GGl=function(v,O){v=g.y(v.h$.entries());for(var Y=v.next();!Y.done;Y=v.next()){var S=g.y(Y.value);Y=S.next().value;S=S.next().value;if(O===S.cueRangeId)return Y}return""}; P8=function(v,O){g.X.call(this);var Y=this;this.B=v;this.U=new Map;this.G=new Map;this.Y=null;O.get().addListener(this);this.addOnDisposeCallback(function(){O.vW()||O.get().removeListener(Y)}); var S;this.Y=((S=O.get().kT)==null?void 0:S.slotId)||null}; iMl=function(v,O){var Y=[];v=g.y(v.values());for(var S=v.next();!S.done;S=v.next())S=S.value,S.slot.slotId===O&&Y.push(S);return Y}; Gy=function(v){g.X.call(this);this.Y=v;this.zm=!0;this.h$=new Map}; tm=function(v,O,Y){O=O.layoutId;for(var S=[],d=g.y(v.h$.values()),r=d.next();!r.done;r=d.next())if(r=r.value,r.trigger instanceof JO){var b;if(b=r.trigger.layoutId===O){b=Y;var z=qP$.get(r.category);b=z?z===b:!1}b&&S.push(r)}S.length&&Rj(v.Y(),S)}; i0=function(v){g.X.call(this);this.Y=v;this.zm=!0;this.h$=new Map}; m5=function(v,O,Y,S,d){g.X.call(this);var r=this;this.B=v;this.Pq=O;this.Zu=Y;this.L1=S;this.Y=null;this.zm=!0;this.h$=new Map;O.get().addListener(this);this.addOnDisposeCallback(function(){O.vW()||O.get().removeListener(r)}); d.get().addListener(this);this.addOnDisposeCallback(function(){d.vW()||d.get().removeListener(r)})}; t77=function(v){v.Y&&(v.U&&(v.U.stop(),v.U.start()),mHJ(v,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; mHJ=function(v,O){for(var Y=[],S=g.y(v.h$.values()),d=S.next();!d.done;d=S.next())d=d.value,d.trigger.triggerType===O&&Y.push(d);Y.length>0&&Rj(v.B(),Y)}; tj=function(v,O,Y,S,d){for(var r=[],b=g.y(v.h$.values()),z=b.next();!z.done;z=b.next()){var M=z=z.value,V=M.trigger;M=M.slot;if(V.triggerType===O){if(V instanceof Bq||V instanceof Zp||V instanceof IQ){if(d&&V.breakDurationMs!==Y)continue;if(!d&&V.breakDurationMs===Y)continue;if(S.has(M.slotId))continue}r.push(z)}}r.length>0&&Rj(v.B(),r)}; DHn=function(v,O){O=(O.kZ+1)*1E3;var Y=void 0;v=g.y(v.h$.values());for(var S=v.next();!S.done;S=v.next()){var d=S.value;S=d.trigger;d=d.slot;S instanceof Bq&&S.breakDurationMs<=O&&(!Y||S.breakDurationMs>Y.trigger.breakDurationMs)&&(Y={slot:d,trigger:S})}return Y}; HMn=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)}; NId=function(v){v=v.adPlacementRenderer.config.adPlacementConfig;if(v.prefetchModeConfig&&v.prefetchModeConfig.cacheFetchRefreshDurationMs&&(v=Number(v.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(v)||v<=0)))return v}; Dk=function(v){v.Y=null;v.h$.clear();v.U&&v.U.stop();v.G&&v.G.stop()}; H8=function(v){g.X.call(this);this.G=v;this.zm=!0;this.h$=new Map;this.Y=new Map;this.U=new Map}; vVQ=function(v,O){var Y=[];if(O=v.Y.get(O.layoutId)){O=g.y(O);for(var S=O.next();!S.done;S=O.next())(S=v.U.get(S.value.triggerId))&&Y.push(S)}return Y}; Nr=function(v){g.X.call(this);this.Y=v;this.h$=new Map}; O03=function(v,O){for(var Y=[],S=g.y(v.h$.values()),d=S.next();!d.done;d=S.next())d=d.value,d.trigger instanceof pz&&d.trigger.slotId===O&&Y.push(d);Y.length>=1&&Rj(v.Y(),Y)}; YV7=function(v,O){var Y={slotId:$D(O,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],w8:"surface",clientMetadata:new bx([])},S=Object,d=S.assign;O=DH(O,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Y.slotId);O={layoutId:O,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Ge:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],w8:"surface", clientMetadata:new bx([]),Lj:LSJ(!1,Y.slotId,Y.slotType,Y.slotPhysicalPosition,Y.w8,Y.slotEntryTrigger,Y.slotFulfillmentTriggers,Y.slotExpirationTriggers,O,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return d.call(S,{},v,{xR:!0,slot:Y,layout:O})}; qX7=function(v,O,Y,S){var d=v.kind;S=S?!1:!v.hideCueRangeMarker;switch(d){case "AD_PLACEMENT_KIND_START":return S={zZ:new xG(-0x8000000000000,-0x8000000000000),vZ:S},Y!=null&&(S.xq=new xG(-0x8000000000000,-0x8000000000000)),S;case "AD_PLACEMENT_KIND_END":return S={zZ:new xG(0x7ffffffffffff,0x8000000000000),vZ:S},Y!=null&&(S.xq=new xG(Math.max(0,O-Y),0x8000000000000)),S;case "AD_PLACEMENT_KIND_MILLISECONDS":d=v.adTimeOffset;d.offsetStartMilliseconds||f_("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); d.offsetEndMilliseconds||f_("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");v=Number(d.offsetStartMilliseconds);d=Number(d.offsetEndMilliseconds);d===-1&&(d=O);if(Number.isNaN(v)||Number.isNaN(d)||v>d)return new m("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:v,offsetEndMs:d},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",d===O&&v-500<=d);S={zZ:new xG(v,d),vZ:S};if(Y!=null){v=Math.max(0,v-Y);if(v===d)return S;S.xq=new xG(v,d)}return S; default:return new m("AdPlacementKind not supported in convertToRange.",{kind:d,adPlacementConfig:v})}}; QD7=function(v){var O=v.startSecs*1E3;return new xG(O,O+v.kZ*1E3)}; SVJ=function(v){if(!v||!v.adPlacements&&!v.adSlots)return!1;for(var O=g.y(v.adPlacements||[]),Y=O.next();!Y.done;Y=O.next())if(Y=Y.value)if(Y=Y.adPlacementRenderer,Y!=null&&(Y.config&&Y.config.adPlacementConfig&&Y.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;v=g.y(v.adSlots||[]);for(O=v.next();!O.done;O=v.next()){var S=Y=void 0;if(((Y=g.q(O.value,nG))==null?void 0:(S=Y.adSlotMetadata)==null?void 0:S.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; vc=function(v){this.e4=v;this.U=new Map;this.Y=new Map;this.G=new Map}; $D=function(v,O){if(OR(v.e4.get())){var Y=v.U.get(O)||0;Y++;v.U.set(O,Y);return O+"_"+Y}return g.a7(16)}; DH=function(v,O,Y){if(OR(v.e4.get())){var S=v.Y.get(O)||0;S++;v.Y.set(O,S);return Y+"_"+O+"_"+S}return g.a7(16)}; sQ=function(v,O){if(OR(v.e4.get())){var Y=v.G.get(O)||0;Y++;v.G.set(O,Y);return O+"_"+Y}return g.a7(16)}; dtJ=function(v){var O=[new $o(v.Hb),new u$(v.N1),new N8(v.adPlacementConfig),new pM(v.videoLengthSeconds),new qH(v.RZ)];v.instreamAdPlayerOverlayRenderer&&O.push(new b$(v.instreamAdPlayerOverlayRenderer));v.playerOverlayLayoutRenderer&&O.push(new oD(v.playerOverlayLayoutRenderer));v.Fx&&O.push(new S7(v.Fx));return O}; rE7=function(v,O,Y,S,d,r){v=Y.inPlayerLayoutId?Y.inPlayerLayoutId:DH(r,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",v);var b,z,M=Y.instreamAdPlayerOverlayRenderer?(b=Y.instreamAdPlayerOverlayRenderer)==null?void 0:b.adLayoutLoggingData:(z=Y.playerOverlayLayoutRenderer)==null?void 0:z.adLayoutLoggingData;b={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",w8:O};return{layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ge:new Map,layoutExitNormalTriggers:[new QA(function(V){return sQ(r, V)},Y.Hb)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],w8:O,clientMetadata:S,Lj:d(b),adLayoutLoggingData:M}}; Yi=function(v,O){var Y=this;this.U=v;this.e4=O;this.Y=function(S){return sQ(Y.U.get(),S)}}; Fug=function(v,O,Y,S,d,r){Y=new bx([new j7(Y),new N8(S)]);O=DH(v.U.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",O);S={layoutId:O,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",w8:"core"};return{layoutId:O,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ge:new Map,layoutExitNormalTriggers:[new QA(function(b){return sQ(v.U.get(),b)},d)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],w8:"core",clientMetadata:Y,Lj:r(S),adLayoutLoggingData:void 0}}; SB=function(v,O,Y,S,d){var r=dtJ(S);return rE7(O,Y,S,new bx(r),d,v.U.get())}; b0l=function(v,O,Y,S,d){var r=dtJ(S);r.push(new DL(S.d3));r.push(new He(S.ZW));return rE7(O,Y,S,new bx(r),d,v.U.get())}; Ci=function(v,O,Y,S,d,r,b,z,M,V){O=DH(v.U.get(),Y,O);var A={layoutId:O,layoutType:Y,w8:"core"},f=new Map;b&&f.set("impression",b);b=[new qz(v.Y,d,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];V&&b.push(new Em(v.Y,V,["normal"]));return{layoutId:O,layoutType:Y,Ge:f,layoutExitNormalTriggers:b,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],w8:"core",clientMetadata:new bx([S,new N8(r),new $o(d)]),Lj:z(A),adLayoutLoggingData:M}}; yC=function(v,O,Y,S,d,r,b,z,M){O=DH(v.U.get(),Y,O);var V={layoutId:O,layoutType:Y,w8:"core"},A=[new qz(v.Y,d,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];M&&A.push(new Em(v.Y,M,["normal"]));return{layoutId:O,layoutType:Y,Ge:new Map,layoutExitNormalTriggers:A,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],w8:"core",clientMetadata:new bx([S,new N8(r),new $o(d)]),Lj:b(V),adLayoutLoggingData:z}}; Mr=function(v,O,Y){var S=[];S.push(new nz(v.Y,Y));O&&S.push(O);return S}; gM=function(v,O,Y,S,d,r,b){var z={layoutId:O,layoutType:Y,w8:"core"};return{layoutId:O,layoutType:Y,Ge:new Map,layoutExitNormalTriggers:b,layoutExitSkipTriggers:[new Fe(v.Y,O)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],w8:"core",clientMetadata:new bx([new Gh(S),new N8(d)]),Lj:r(z),adLayoutLoggingData:S.adLayoutLoggingData}}; Nc=function(v,O,Y,S,d,r,b,z){var M={layoutId:O,layoutType:r,w8:"core"};return{layoutId:O,layoutType:r,Ge:new Map,layoutExitNormalTriggers:[new QA(v.Y,Y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],w8:"core",clientMetadata:new bx([new N8(S)].concat(g.F(b))),Lj:d(M),adLayoutLoggingData:z}}; Aj=function(v,O,Y,S){if(v.e4.get().Vr(O.kind==="AD_PLACEMENT_KIND_START"))if(Y===void 0)f_("Expected SSAP layout ID in renderer",void 0,void 0,{caller:S});else return Y}; WvF=function(v,O,Y,S,d,r,b,z,M,V,A,f,k){v=VC(v,O,Y,d,r,b,z,M,f,Aj(v,Y,S.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),k);O=v.mC;Y=new ko(v.q_);S=v.layoutExitSkipTriggers;V>0&&(O.push(Y),O.push(new Yo(V)),S=[]);O.push(new O$(A));return{vj:{layoutId:v.layoutId,layoutType:v.layoutType,Ge:v.Ge,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],w8:v.w8,clientMetadata:new bx(O),Lj:v.Lj,adLayoutLoggingData:v.adLayoutLoggingData}, Si:S,Z_:v.layoutExitMuteTriggers,CC:v.layoutExitUserInputSubmittedTriggers,NI:v.Xh,fP:v.fP}}; M7n=function(v,O,Y,S,d,r,b,z,M,V){O=VC(v,O,Y,S,r,new Map,b,function(A){return z(A,M)},void 0,Aj(v,Y,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); v=new vW(v.Y,O.q_);Y=new ko(O.q_);V=new O$(V);return{vj:{layoutId:O.layoutId,layoutType:O.layoutType,Ge:O.Ge,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],w8:O.w8,clientMetadata:new bx([].concat(g.F(O.mC),[Y,V])),Lj:O.Lj,adLayoutLoggingData:O.adLayoutLoggingData},Si:O.layoutExitSkipTriggers,Z_:O.layoutExitMuteTriggers,CC:[].concat(g.F(O.layoutExitUserInputSubmittedTriggers),[v]),NI:O.Xh,fP:O.fP}}; VC=function(v,O,Y,S,d,r,b,z,M,V,A){O=V!=null?V:DH(v.U.get(),"LAYOUT_TYPE_MEDIA_BREAK",O);V={layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",w8:"adapter"};z=z(O);var f=oj(z.clientMetadata,"metadata_type_fulfilled_layout");f||f_("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var k=f?f.layoutId:"";Y=[new N8(Y),new nM(S),new P1(d)];f&&Y.push(new U$(f.layoutType));A&&Y.push(new e7(A));return{layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", Ge:r,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new Go(v.Y,k)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],w8:"adapter",mC:Y,Lj:b(V),adLayoutLoggingData:M,fP:z,q_:k}}; pe1=function(v,O,Y,S,d,r,b,z,M,V,A){v=oVQ(v,O,"core",Y,S,d,r,b,z,M,V,void 0,A);return{layoutId:v.layoutId,layoutType:v.layoutType,Ge:v.Ge,layoutExitNormalTriggers:v.layoutExitNormalTriggers,layoutExitSkipTriggers:v.layoutExitSkipTriggers,layoutExitMuteTriggers:v.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:v.layoutExitUserInputSubmittedTriggers,Xh:v.Xh,w8:v.w8,clientMetadata:new bx(v.o8),Lj:v.Lj,adLayoutLoggingData:v.adLayoutLoggingData}}; ahQ=function(v,O,Y,S,d,r,b,z,M,V,A,f,k){O=oVQ(v,O,"adapter",Y,S,d,r,b,z,M,A,f,k);S=O.layoutExitSkipTriggers;d=O.o8;Y.adPodSkipTarget&&Y.adPodSkipTarget>0&&(d.push(V),d.push(new Yo(Y.adPodSkipTarget)),S=[]);d.push(new O$(z.adPodIndex));Y.isCritical&&(S=[new Em(v.Y,O.layoutId,["error"])].concat(g.F(S)));return{vj:{layoutId:O.layoutId,layoutType:O.layoutType,Ge:O.Ge,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],w8:O.w8,clientMetadata:new bx(d), Lj:O.Lj,adLayoutLoggingData:O.adLayoutLoggingData},Si:S,Z_:O.layoutExitMuteTriggers,CC:O.layoutExitUserInputSubmittedTriggers,NI:O.Xh}}; oVQ=function(v,O,Y,S,d,r,b,z,M,V,A,f,k){var U={layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA",w8:Y};d=[new N8(d),new v1(M),new dI(S.externalVideoId),new rI(z),new P1({impressionCommands:S.impressionCommands,abandonCommands:S.onAbandonCommands,completeCommands:S.completeCommands,progressCommands:S.adVideoProgressCommands}),new TG(r),new CM({current:null}),new pM(b)];(r=S.playerOverlay.instreamAdPlayerOverlayRenderer)&&d.push(new b$(r));(b=S.playerOverlay.playerOverlayLayoutRenderer)&&d.push(new oD(b)); f&&d.push(new l$(f));(f=S.playerUnderlay)&&d.push(new j7(f));z=$D(v.U.get(),"SLOT_TYPE_IN_PLAYER");f=(f=r?r.elementId:b==null?void 0:b.layoutId)?f:DH(v.U.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",z);d.push(new ko(f));d.push(new c1(z));d.push(new e7(M.adPodIndex));S.adNextParams&&d.push(new Kb(S.adNextParams));S.shrunkenPlayerBytesConfig&&d.push(new s$(S.shrunkenPlayerBytesConfig));S.clickthroughEndpoint&&d.push(new Pe(S.clickthroughEndpoint));S.legacyInfoCardVastExtension&&d.push(new Je(S.legacyInfoCardVastExtension)); S.sodarExtensionData&&d.push(new Fq(S.sodarExtensionData));A&&d.push(new ID(A));d.push(new mv(pN(S.pings)));M=TR(S.pings);if(k){a:{k=g.y(k);for(A=k.next();!A.done;A=k.next())if(A=A.value,A.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(r=g.q(A.fulfillmentContent.fulfilledLayout,eq))&&(r=g.q(r.renderingContent,hX))&&r.associatedPlayerBytesLayoutId===O){k=A;break a}k=void 0}k&&d.push(new W1(k))}return{layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA",Ge:M,layoutExitNormalTriggers:[new JO(v.Y,O)],layoutExitSkipTriggers:S.skipOffsetMilliseconds? [new Go(v.Y,f)]:[],layoutExitMuteTriggers:[new Go(v.Y,f)],layoutExitUserInputSubmittedTriggers:[],Xh:[],w8:Y,o8:d,Lj:V(U),adLayoutLoggingData:S.adLayoutLoggingData}}; fLg=function(v,O,Y,S,d,r,b,z,M){S.every(function(A){return SG(A,[],["LAYOUT_TYPE_MEDIA"])})||f_("Unexpect subLayout type for DAI composite layout"); O=DH(v.U.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",O);var V={layoutId:O,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",w8:"core"};return{layoutId:O,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Ge:new Map,layoutExitNormalTriggers:[new Lz(v.Y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:[],w8:"core",clientMetadata:new bx([new he(Y),new RD(z),new aD(S),new N8(d),new B1(r),new E$({}),new Dh(M)]),Lj:b(V)}}; s9i=function(v){return v!=null}; Sv=function(v,O,Y){var S=this;this.U=v;this.G=O;this.e4=Y;this.Y=function(d){return sQ(S.U.get(),d)}}; Eo$=function(v,O,Y,S,d,r,b){if(!Y.prefetchModeConfig)return new m("AdPlacementConfig for Live Prefetch is missing prefetch_config");Y=Y.prefetchModeConfig;S*=1E3;var z=[];if(!Y.breakLengthMs)return new m("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var M=g.y(Y.breakLengthMs),V=M.next();!V.done;V=M.next())if(V=V.value,Number(V)>0){var A=S+Number(Y.startTimeOffsetMs),f=A+Number(Y.cacheFetchSmearingDurationMs);V={zZ:new xG(f,f+Number(V)),vZ:!1,xq:new xG(Math.floor(A+Math.random()* Number(Y.cacheFetchSmearingDurationMs)),f),cueProcessedMs:S?S:A};A=[];A.push(new OV({}));f=[];f.push(new Pq(v.Y));f.push(new SXE(v.Y));b&&A.push(new E$({}));z.push(KG(v,O,d,V,r,A,f))}return z}; KG=function(v,O,Y,S,d,r,b){r=r===void 0?[]:r;var z=$D(v.U.get(),"SLOT_TYPE_AD_BREAK_REQUEST");b||(b=[],S.xq&&S.xq.start!==S.zZ.start&&b.push(new w6(v.Y,Y,new xG(S.xq.start,S.zZ.start),!1)),b.push(new w6(v.Y,Y,new xG(S.zZ.start,S.zZ.end),S.vZ)));S={getAdBreakUrl:O.getAdBreakUrl,oe:S.zZ.start,rU:S.zZ.end,cueProcessedMs:S.cueProcessedMs};O=new Dp(v.Y,z);r=[new Xq(S)].concat(g.F(r));return{slotId:z,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:b, slotExpirationTriggers:[new Kz(v.Y,Y),new mr(v.Y,z),new tO(v.Y,z)],w8:"core",clientMetadata:new bx(r),adSlotLoggingData:d}}; Wkn=function(v,O,Y){var S=[];Y=g.y(Y);for(var d=Y.next();!d.done;d=Y.next())S.push(jjl(v,O,d.value));return S}; jjl=function(v,O,Y){return Y.triggeringSlotId!=null&&Y.triggeringSlotId===v?Y.clone(O):Y}; vlF=function(v,O,Y,S,d){return ztl(v,O,Y,S,d)}; zDm=function(v,O,Y,S){var d=$D(v.U.get(),"SLOT_TYPE_IN_PLAYER");return ztl(v,d,O,Y,S)}; ztl=function(v,O,Y,S,d){var r=new eh(v.Y,Y),b=[new iz(v.Y,O)];v=[new mr(v.Y,O),new Kz(v.Y,S)];return{slotId:O,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:r,slotFulfillmentTriggers:b,slotExpirationTriggers:v,w8:"core",clientMetadata:new bx([new Zh(d({slotId:O,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,w8:"core",slotEntryTrigger:r,slotFulfillmentTriggers:b,slotExpirationTriggers:v},Y))]),adSlotLoggingData:void 0}}; xHg=function(v,O,Y,S,d,r){var b=$D(v.U.get(),"SLOT_TYPE_PLAYER_BYTES"),z=$D(v.U.get(),"SLOT_TYPE_IN_PLAYER"),M=DH(v.U.get(),"LAYOUT_TYPE_SURVEY",z);S=dQ(v,O,Y,S);var V=[new iz(v.Y,b)];Y=[new mr(v.Y,b),new Kz(v.Y,Y),new Fe(v.Y,M)];if(S instanceof m)return S;z=r({slotId:b,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,w8:"core",slotEntryTrigger:S,slotFulfillmentTriggers:V,slotExpirationTriggers:Y},{slotId:z,layoutId:M});r=z.k0x;z=z.ox;return[{slotId:b,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:$O(v,O,b,S),slotFulfillmentTriggers:kO(v,O,b,V),slotExpirationTriggers:Y,w8:"core",clientMetadata:new bx([new Zh(r),new H1(UQ(O)),new vv({Bd:v.Bd(O)})]),adSlotLoggingData:d},z]}; UQ=function(v){return v.kind==="AD_PLACEMENT_KIND_START"}; T$c=function(v,O,Y,S,d){d=d?d:$D(v.U.get(),"SLOT_TYPE_IN_PLAYER");Y=new eh(v.Y,Y);var r=[new iz(v.Y,d)];v=[new Kz(v.Y,O),new mr(v.Y,d)];return{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:r,slotExpirationTriggers:v,w8:"core",clientMetadata:new bx([new Zh(S({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,w8:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:r,slotExpirationTriggers:v}))])}}; lLw=function(v,O,Y,S){var d=$D(v.U.get(),"SLOT_TYPE_PLAYER_UNDERLAY");Y=new eh(v.Y,Y);var r=[new iz(v.Y,d)];v=[new Kz(v.Y,O),new mr(v.Y,d)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:r,slotExpirationTriggers:v,w8:"core",clientMetadata:new bx([new Zh(S({slotId:d,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,w8:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:r,slotExpirationTriggers:v}))])}}; U8m=function(v,O,Y,S,d,r,b){var z=$D(v.U.get(),"SLOT_TYPE_IN_PLAYER"),M=DH(v.U.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",z);S=sj7(v,S,r,b,M);if(S instanceof m)return S;b=[new iz(v.Y,z)];d=[new Kz(v.Y,r),new iz(v.Y,d),new Nz(v.Y,d)];Y=Mt(Y,{slotId:z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,w8:"core",slotEntryTrigger:S,slotFulfillmentTriggers:b,slotExpirationTriggers:d});v=v.G.get();r={layoutId:M,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",w8:"core"};O={layoutId:M,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", Ge:new Map,layoutExitNormalTriggers:[new sxF(v.Y,M,O.durationMs)],layoutExitSkipTriggers:[new Mui(v.Y,M,O.durationMs)],Xh:[new gb1(v.Y,M)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],w8:"core",clientMetadata:new bx([new KM(O)]),Lj:Y(r)};return{slotId:z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,w8:"core",slotEntryTrigger:S,slotFulfillmentTriggers:b,slotExpirationTriggers:d,clientMetadata:new bx([new Zh(O)])}}; ool=function(v,O,Y,S,d,r){O=dQ(v,O,Y,S);if(O instanceof m)return O;var b=O instanceof w6?new jx7(v.Y,Y,O.Y):null;S=$D(v.U.get(),"SLOT_TYPE_IN_PLAYER");var z=[new iz(v.Y,S)];v=[new Kz(v.Y,Y),new mr(v.Y,S)];r=r({slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,w8:"core",slotEntryTrigger:O,slotFulfillmentTriggers:z,slotExpirationTriggers:v},b);return r instanceof rL?new m(r):{slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:z,slotExpirationTriggers:v, w8:"core",clientMetadata:new bx([new Zh(r)]),adSlotLoggingData:d}}; re7=function(v,O,Y,S){var d=$D(v.U.get(),"SLOT_TYPE_IN_PLAYER"),r=new lz(v.Y,O),b=[new Hq(v.Y,d)];v=[new Kz(v.Y,O),new mr(v.Y,d)];return{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:r,slotFulfillmentTriggers:b,slotExpirationTriggers:v,w8:"core",clientMetadata:new bx([new Zh(S({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,w8:"core",slotEntryTrigger:r,slotFulfillmentTriggers:b,slotExpirationTriggers:v}))]),adSlotLoggingData:Y}}; bbm=function(v,O,Y,S){var d=$D(v.U.get(),"SLOT_TYPE_IN_PLAYER");Y=new eh(v.Y,Y);var r=[new iz(v.Y,d)],b=[new mr(v.Y,d),new Kz(v.Y,O)];r={slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,w8:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:r,slotExpirationTriggers:b};return{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:[new iz(v.Y,d)],slotExpirationTriggers:[new Kz(v.Y,O),new mr(v.Y,d)],w8:"core",clientMetadata:new bx([new Zh(S(r))])}}; SdF=function(v,O,Y,S,d){var r=$D(v.U.get(),"SLOT_TYPE_IN_PLAYER");Y=new RQ(v.Y,S,Y);S=[new iz(v.Y,r)];v=[new Kz(v.Y,O)];return{slotId:r,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:S,slotExpirationTriggers:v,w8:"core",clientMetadata:new bx([new Zh(d({slotId:r,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,w8:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:S,slotExpirationTriggers:v}))])}}; DPJ=function(v,O,Y,S,d,r){var b=$D(v.U.get(),O);return rQ(v,b,O,new eh(v.Y,S),[new Kz(v.Y,Y),new mr(v.Y,b),new Em(v.Y,S,["error"])],d,r)}; tuJ=function(v,O,Y,S,d,r,b){var z=$D(v.U.get(),O);return rQ(v,z,O,new Em(v.Y,d,["normal"]),[new Kz(v.Y,Y),new mr(v.Y,z),new Em(v.Y,S,["error"])],r,b)}; P2n=function(v,O,Y,S,d){var r=$D(v.U.get(),O);return rQ(v,r,O,new lz(v.Y,Y),[new Kz(v.Y,Y),new mr(v.Y,r)],S,d)}; OMd=function(v,O,Y,S,d){Y=Y?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var r=$D(v.U.get(),Y);O=new lz(v.Y,O);var b=[new iz(v.Y,r)];v=[new mr(v.Y,r)];return{slotId:r,slotType:Y,slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:b,slotExpirationTriggers:v,w8:"core",clientMetadata:new bx([new Zh(d({slotId:r,slotType:Y,slotPhysicalPosition:1,w8:"core",slotEntryTrigger:O,slotFulfillmentTriggers:b,slotExpirationTriggers:v}))]),adSlotLoggingData:S}}; glw=function(v,O,Y,S){var d=$D(v.U.get(),"SLOT_TYPE_PLAYER_BYTES"),r=new Xe(v.Y),b=[new Hq(v.Y,d)];v=[new Kz(v.Y,O)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:r,slotFulfillmentTriggers:b,slotExpirationTriggers:v,w8:"core",clientMetadata:new bx([new Zh(S({slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,w8:"core",slotEntryTrigger:r,slotFulfillmentTriggers:b,slotExpirationTriggers:v})),new E$({})]),adSlotLoggingData:Y}}; cec=function(v,O){return RDd(v.e4.get())?new Em(v.Y,O,["normal","error","skipped"]):new Em(v.Y,O,["normal"])}; ypc=function(v,O,Y,S,d){O=cec(v,O);v=fi(v,O,Y);d=d({slotId:v.slotId,slotType:v.slotType,slotPhysicalPosition:v.slotPhysicalPosition,slotEntryTrigger:v.slotEntryTrigger,slotFulfillmentTriggers:v.slotFulfillmentTriggers,slotExpirationTriggers:v.slotExpirationTriggers,w8:v.w8});return d instanceof m?d:{bK:Object.assign({},v,{clientMetadata:new bx([new Zh(d.layout)]),adSlotLoggingData:S}),r4:d.r4}}; aL7=function(v,O,Y,S,d,r,b){Y=uqn(v,O,Y,S);if(Y instanceof m)return Y;b=b({slotId:Y.slotId,slotType:Y.slotType,slotPhysicalPosition:Y.slotPhysicalPosition,slotEntryTrigger:Y.slotEntryTrigger,slotFulfillmentTriggers:Y.slotFulfillmentTriggers,slotExpirationTriggers:Y.slotExpirationTriggers,w8:Y.w8});if(b instanceof m)return b;S=[new H1(UQ(O)),new Zh(b.layout),new vv({Bd:v.Bd(O)})];r&&S.push(new GG({}));return{bK:{slotId:Y.slotId,slotType:Y.slotType,slotPhysicalPosition:Y.slotPhysicalPosition,slotEntryTrigger:$O(v, O,Y.slotId,Y.slotEntryTrigger),slotFulfillmentTriggers:kO(v,O,Y.slotId,Y.slotFulfillmentTriggers),slotExpirationTriggers:Y.slotExpirationTriggers,w8:Y.w8,clientMetadata:new bx(S),adSlotLoggingData:d},r4:b.r4}}; $O=function(v,O,Y,S){return v.e4.get().Vr(UQ(O))?new pz(v.Y,Y):S}; kO=function(v,O,Y,S){return v.e4.get().Vr(UQ(O))?[new Hq(v.Y,Y)]:S}; fi=function(v,O,Y){var S=$D(v.U.get(),"SLOT_TYPE_PLAYER_BYTES"),d=[new iz(v.Y,S)];v=[new mr(v.Y,S),new Kz(v.Y,Y)];return{slotId:S,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:d,slotExpirationTriggers:v,w8:"core"}}; uqn=function(v,O,Y,S){O=dQ(v,O,Y,S);return O instanceof m?O:fi(v,O,Y)}; S$w=function(v,O,Y,S,d,r){var b=$D(v.U.get(),"SLOT_TYPE_FORECASTING");O=dQ(v,O,Y,S);if(O instanceof m)return O;S=[new iz(v.Y,b)];v=[new mr(v.Y,b),new Kz(v.Y,Y)];return{slotId:b,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:S,slotExpirationTriggers:v,w8:"core",clientMetadata:new bx([new Zh(r({slotId:b,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,w8:"core",slotEntryTrigger:O,slotFulfillmentTriggers:S,slotExpirationTriggers:v}))]),adSlotLoggingData:d}}; gVw=function(v,O,Y,S,d){var r=!O.hideCueRangeMarker;switch(O.kind){case "AD_PLACEMENT_KIND_START":return new lz(v.Y,Y);case "AD_PLACEMENT_KIND_MILLISECONDS":return v=qX7(O,S),v instanceof m?v:d(v.zZ,r);case "AD_PLACEMENT_KIND_END":return new hO(v.Y,Y,r);default:return new m("Cannot construct entry trigger",{kind:O.kind})}}; sj7=function(v,O,Y,S,d){return gVw(v,O,Y,S,function(r,b){return new obl(v.Y,Y,r,b,d)})}; dQ=function(v,O,Y,S){return gVw(v,O,Y,S,function(d,r){return new w6(v.Y,Y,d,r)})}; rQ=function(v,O,Y,S,d,r,b){v=[new Hq(v.Y,O)];return{slotId:O,slotType:Y,slotPhysicalPosition:1,slotEntryTrigger:S,slotFulfillmentTriggers:v,slotExpirationTriggers:d,w8:"core",clientMetadata:new bx([new Zh(b({slotId:O,slotType:Y,slotPhysicalPosition:1,w8:"core",slotEntryTrigger:S,slotFulfillmentTriggers:v,slotExpirationTriggers:d}))]),adSlotLoggingData:r}}; b4=function(v,O){g.X.call(this);this.e4=v;this.Y=O;this.eventCount=0}; oy=function(v,O,Y,S){b4.call(this,v,O);this.e4=v;this.S4=Y;this.context=S}; jv=function(){this.Y=new Map}; Wc=function(v){this.tq="pending";this.dM=[];this.v5=[];try{v(this.Lg.bind(this),this.reject.bind(this))}catch(O){this.reject(O)}}; MG7=function(){var v,O;return{cL:new Wc(function(Y,S){v=Y;O=S}), resolve:v,reject:O}}; gQ=function(v){return zm(v)?v:sR(v)?new Wc(function(O,Y){v.then(O,Y)}):new Wc(function(O){O(v)})}; M6=function(v){return new Wc(function(O,Y){Y(v)})}; Vf=function(v){try{return gQ(v())}catch(O){return M6(O)}}; fs=function(v,O,Y){var S=MG7(),d=S.cL,r=S.resolve,b=S.reject;v.dM.push(function(z){if(O)try{var M=O(z);r(M)}catch(V){b(V)}else r(z)}); v.v5.push(function(z){if(Y)try{var M=Y(z);r(M)}catch(V){b(V)}else b(z)}); AZ(v);return d}; $i=function(v,O){return fs(v,void 0,O)}; VGw=function(v,O){fs(v,function(Y){return fs(gQ(O()),function(){return Y})},function(Y){return fs(gQ(O()),function(){return M6(Y)})})}; AZ=function(v){if(v.tq==="fulfilled"){var O=v.dM;v.dM=[];v.v5=[];O=g.y(O);for(var Y=O.next();!Y.done;Y=O.next())Y=Y.value,Y(v.result)}else if(v.tq==="rejected")for(O=v.v5,v.dM=[],v.v5=[],O=g.y(O),Y=O.next();!Y.done;Y=O.next())Y=Y.value,Y(v.error)}; ki=function(v){return function(){return AE$(v.apply(this,g.Bm.apply(0,arguments)))}}; UR=function(v){return gQ(v).wait()}; AE$=function(v){return Vf(function(){return cc(v,v.next())})}; cc=function(v,O){return O.done?gQ(O.value):$i(fs(O.value.cL,function(Y){return cc(v,v.next(Y))}),function(Y){return cc(v,v.throw(Y))})}; u4=function(v,O){if(v.length===0)return gQ(NaN);var Y=MG7(),S=Y.cL,d=Y.resolve,r=v.length;v=g.y(v.entries());var b=v.next();for(Y={};!b.done;Y={Qb:void 0},b=v.next()){var z=g.y(b.value);b=z.next().value;z=z.next().value;Y.Qb=b;VGw(z,function(M){return function(){S.tq==="pending"&&(fHc(O)&&O(M.Qb)&&S.tq==="pending"?d(M.Qb):(--r,r===0&&d(NaN)))}}(Y))}return S}; Cs=function(v){return v.map(function(O){return gQ(O)})}; ay=function(v){var O=v.hours||0;var Y=v.minutes||0,S=v.seconds||0;O=S+Y*60+O*3600+(v.days||0)*86400+(v.weeks||0)*604800+(v.months||0)*2629800+(v.years||0)*31557600;O<=0?O={hours:0,minutes:0,seconds:0}:(v=O,O=Math.floor(v/3600),v%=3600,Y=Math.floor(v/60),S=Math.floor(v%60),O={hours:O,minutes:Y,seconds:S});var d=O.hours===void 0?0:O.hours;Y=O.minutes===void 0?0:O.minutes;v=O.seconds===void 0?0:O.seconds;S=d>0;O=[];if(S){d=(new Intl.NumberFormat("en-u-nu-latn")).format(d);var r=["fr"],b="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(" "); d="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(yf)?d.replace(",","\u00a0"):r.includes(yf)?d.replace(",","\u202f"):b.includes(yf)?d.replace(",","."):d;O.push(d)}S=S===void 0?!1:S;Y=(["af","be","lt"].includes(yf)||S)&&Y<10?$tg().format(Y):(new Intl.NumberFormat("en-u-nu-latn")).format(Y);O.push(Y);Y=$tg().format(v);O.push(Y);Y=":";"da fi id si sr sr-Latn".split(" ").includes(yf)&&(Y=".");return O.join(Y)}; $tg=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; kbn=function(v,O){var Y,S;v=((Y=v.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(S=Y.videoAuthorizationToken)==null?void 0:S.credentialTransferTokens)||[];for(Y=0;YO;v=Y}else v=!1;return v}; g.ZW=function(v,O){return v.SZ+"timedtext_video?ref=player&v="+O.videoId}; g.BLm=function(v){var O=this;this.videoData=v;v={};this.Y=(v.c1a=function(){var Y=[];if(g.Ls.isInitialized()){var S="";O.videoData&&O.videoData.Dz&&(S=O.videoData.Dz+("&r1b="+O.videoData.clientPlaybackNonce));var d={};S=(d.atr_challenge=S,d);i1("bg_v",void 0,"player_att");(S=Lki(S))?(i1("bg_s",void 0,"player_att"),Y.push("r1a="+S)):(i1("bg_e",void 0,"player_att"),Y.push("r1c=2"))}else i1("bg_e",void 0,"player_att"),window.trayride||window.botguard?Y.push("r1c=1"):Y.push("r1c=4");Y.push("r1d="+g.Ls.getState()); return Y.join("&")},v.c6a=function(Y){return"r6a="+(Number(Y.c)^gf())},v.c6b=function(Y){return"r6b="+(Number(Y.c)^Number(g.Gq("CATSTAT",0)))},v); this.videoData&&this.videoData.Dz?this.Ay=Se(this.videoData.Dz):this.Ay={}}; g.Z0E=function(v){if(v.videoData&&v.videoData.Dz){for(var O=[v.videoData.Dz],Y=g.y(Object.keys(v.Y)),S=Y.next();!S.done;S=Y.next())S=S.value,v.Ay[S]&&v.Y[S]&&(S=v.Y[S](v.Ay))&&O.push(S);return O.join("&")}return null}; g.XS=function(v,O){Qjm(v,{Am1:g.Vq(O.experiments,"bg_vm_reinit_threshold"),cspNonce:O.cspNonce,SZ:O.SZ||""})}; Xvg=function(){var v=XMLHttpRequest.prototype.fetch;return!!v&&v.length===3}; wvw=function(v){v=v[W[8]](W[5]);wQ[W[35]](v,76);wQ[W[68]](v,39);wQ[W[84]](v,3);wQ[W[68]](v,25);wQ[W[68]](v,46);wQ[W[68]](v,54);wQ[W[84]](v,3);wQ[W[35]](v,72);wQ[W[68]](v,4);return v[W[11]](W[5])}; qVm=function(v){IH3=2592E3*(v||1)}; Iy=function(v){v=v===void 0?IH3:v;if(v>0&&!(mA7()>(0,g.J)()-v*1E3))return 0;v=g.Ly("yt-player-quality");if(typeof v==="string"){if(v=g.IA[v],v>0)return v}else if(v instanceof Object)return v.quality;return 0}; q6=function(){var v=g.Ly("yt-player-proxima-pref");return v==null?null:v}; nVF=function(){var v=g.Ly("yt-player-quality");if(v instanceof Object&&v.quality&&v.previousQuality){if(v.quality>v.previousQuality)return 1;if(v.quality0&&O[0]?v.getAutoplayPolicy(O[0]):v.getAutoplayPolicy("mediaelement");if(tGn[Y])return tGn[Y]}}catch(S){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; m2=function(v){return v.Lo||v.Tn||v.mutedAutoplay}; Dti=function(v,O){return m2(v)?O!==1&&O!==2&&O!==0?"AUTOPLAY_STATUS_UNAVAILABLE":v.yd?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; H03=function(v,O,Y){var S=O.D();v.thirdParty||(v.thirdParty={});S.ancestorOrigins&&(v.thirdParty.embeddedPlayerContext=Object.assign({},v.thirdParty.embeddedPlayerContext,{ancestorOrigins:S.ancestorOrigins}));S.V("embeds_enable_autoplay_and_visibility_signals")&&(S.mU!=null&&(v.thirdParty.embeddedPlayerContext=Object.assign({},v.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(S.mU)})),S.J3&&(v.thirdParty.embeddedPlayerContext=Object.assign({},v.thirdParty.embeddedPlayerContext,{visibilityFractionSource:S.J3})), v.thirdParty.embeddedPlayerContext=Object.assign({},v.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:i4(),autoplayIntended:m2(O),autoplayStatus:Dti(O,Y)}))}; ON1=function(v,O){Du(v,2,O.R2,tZ,3);Du(v,3,O.CO,NLn,3);mU(v,4,O.onesieUstreamerConfig);mU(v,9,O.aX);Du(v,10,O.d9,DW,3);Du(v,15,O.reloadPlaybackParams,vDJ,3)}; SFJ=function(v,O){Du(v,1,O.formatId,Hc,3);GM(v,2,O.startTimeMs);GM(v,3,O.durationMs);GM(v,4,O.z8);GM(v,5,O.Qi);Du(v,9,O.E$x,YF1,3);Du(v,11,O.xUx,N6,1);Du(v,12,O.p9,N6,1)}; d5E=function(v,O){t9(v,1,O.videoId);GM(v,2,O.lmt)}; YF1=function(v,O){if(O.yR)for(var Y=0;Y>31));GM(v,16,O.b10);GM(v,17,O.detailedNetworkType);GM(v,18,O.yY);GM(v,19,O.PJ);GM(v,21,O.S_W);GM(v,23,O.oP);GM(v,28,O.Z3);GM(v,29,O.P6s);GM(v,34,O.visibility);Y=O.playbackRate;if(Y!==void 0){var S=new ArrayBuffer(4);(new Float32Array(S))[0]=Y;Y=(new Uint32Array(S))[0];if(Y!==void 0)for(P3(v,285),KL(v,4),S=0;S<4;)v.view.setUint8(v.pos,Y&255),Y>>=8,v.pos+=1,S+=1}GM(v,36,O.Sq); Du(v,38,O.mediaCapabilities,oDc,3);GM(v,39,O.TT8);GM(v,40,O.Wf);GM(v,44,O.playerState);i2(v,46,O.kS);GM(v,48,O.Z8);GM(v,50,O.m8);GM(v,51,O.AT);GM(v,54,O.nD);if(O.NT)for(Y=0;Y>31));t9(v,2,O.message)}; fVg=function(v,O){GM(v,1,O.clientState);Du(v,2,O.L4W,Val,1)}; MaE=function(v,O){mU(v,1,O.OE8);Du(v,2,O.bEu,A81,3);Du(v,3,O.coldStartInfo,fVg,3)}; gDl=function(v,O){GM(v,1,O.type);mU(v,2,O.value)}; s1F=function(v,O){t9(v,1,O.hl);t9(v,12,O.deviceMake);t9(v,13,O.deviceModel);GM(v,16,O.clientName);t9(v,17,O.clientVersion);t9(v,18,O.osName);t9(v,19,O.osVersion)}; $5F=function(v,O){t9(v,1,O.name);t9(v,2,O.value)}; kR7=function(v,O){t9(v,1,O.url);if(O.eL)for(var Y=0;Y1&&(this.Z=v[1]==="2")}; ri=function(v,O,Y,S,d){this.U=v;this.Y=O;this.G=Y;this.reason=S;this.b3=d===void 0?0:d}; g.bB=function(v,O,Y,S){return new ri(g.IA[v]||0,g.IA[O]||0,Y,S)}; jZ=function(v){if(oa&&v.b3)return!1;var O=g.IA.auto;return v.U===O&&v.Y===O}; zi=function(v){return Wz[v.Y||v.U]||"auto"}; Snd=function(v,O){O=g.IA[O];return v.U<=O&&(!v.Y||v.Y>=O)}; sG=function(v){return"["+v.U+"-"+v.Y+", override: "+(v.G+", reason: "+v.reason+"]")}; gi=function(v,O,Y){this.videoInfos=v;this.Y=O;this.audioTracks=[];if(this.Y){v=new Set;Y==null||Y({ainfolen:this.Y.length});O=g.y(this.Y);for(var S=O.next();!S.done;S=O.next())if(S=S.value,!S.Dg||v.has(S.Dg.id)){var d=void 0,r=void 0,b=void 0;(b=Y)==null||b({atkerr:!!S.Dg,itag:S.itag,xtag:S.Y,lang:((d=S.Dg)==null?void 0:d.name)||"",langid:((r=S.Dg)==null?void 0:r.id)||""})}else d=new g.di(S.id,S.Dg),v.add(S.Dg.id),this.audioTracks.push(d);Y==null||Y({atklen:this.audioTracks.length})}}; MD=function(){g.X.apply(this,arguments);this.Y=null}; ouQ=function(v,O,Y,S,d,r,b){if(v.Y)return v.Y;var z={},M=new Set,V={};if(V5(S)){for(var A in S.Y)S.Y.hasOwnProperty(A)&&(v=S.Y[A],V[v.info.z0]=[v.info]);return V}A=dul(O,S,z);r&&d({aftsrt:AK(A)});for(var f={},k=g.y(Object.keys(A)),U=k.next();!U.done;U=k.next()){U=U.value;for(var c=g.y(A[U]),a=c.next();!a.done;a=c.next()){a=a.value;var x=a.itag,T=void 0,l=U+"_"+(((T=a.video)==null?void 0:T.fps)||0);f.hasOwnProperty(l)?f[l]===!0?V[U].push(a):z[x]=f[l]:(T=fA(O,a,Y,S.isLive,M),T!==!0?(b.add(U),z[x]=T, T==="disablevp9hfr"&&(f[l]="disablevp9hfr")):(V[U]=V[U]||[],V[U].push(a),f[l]=!0))}}r&&d({bfflt:AK(V)});for(var Q in V)V.hasOwnProperty(Q)&&(S=Q,V[S]&&V[S][0].EM()&&(V[S]=V[S],V[S]=rLE(O,V[S],z),V[S]=bDi(V[S],z)));r&&Object.keys(z).length>0&&d({rjr:TB(z)});O=g.y(M.values());for(S=O.next();!S.done;S=O.next())(S=Y.B.get(S.value))&&--S.TJ;r&&d({aftflt:AK(V)});v.Y=g.wS(V,function(L){return!!L.length}); return v.Y}; Wbg=function(v,O,Y,S,d,r,b,z){z=z===void 0?!1:z;if(O.qX&&b&&b.length>1&&!(O.vP>0||O.X)){for(var M=O.U||!!d,V=M&&O.Te?r:void 0,A=dul(O,S),f=[],k=[],U={},c=0;c0&&k&&d&&(A=[b,Y],x=d.concat(k).filter(function(T){return T})); if(x.length&&!O.Lv){UG(x,A);if(M){M=[];O=g.y(x);for(S=O.next();!S.done;S=O.next())M.push(S.value.itag);r({hbdfmt:M.join(".")})}return Eq(new gi(x,v,V))}x=Uuw(O);x=g.gS(x,z);if(!x){if(f[b])return r=f[b],UG(r),Eq(new gi(r,v,V));M&&r({novideo:1});return ee()}O.yC&&(x==="1"||x==="1h")&&f[Y]&&(b=cz(f[x]),A=cz(f[Y]),A>b?x=Y:A===b&&cL$(f[Y])&&(x=Y));x==="9"&&f.h&&cz(f.h)>cz(f["9"])&&(x="h");O.On&&S.isLive&&x==="("&&f.H&&cz(f["("])<1440&&(x="H");M&&r({vfmly:uB(x)});O=f[x];if(!O.length)return M&&r({novfmly:uB(x)}), ee();UG(O);return Eq(new gi(O,v,V))}; sAJ=function(v,O){var Y=!(!v.m&&!v.M),S=!(!v.mac3&&!v.MAC3),d=!(!v.meac3&&!v.MEAC3);v=!(!v.i&&!v.I);O.aI=v;return Y||S||d||v}; cL$=function(v){v=g.y(v);for(var O=v.next();!O.done;O=v.next())if(O=O.value,O.itag&&uWF.has(O.itag))return!0;return!1}; MX7=function(v){v=g.y(v);for(var O=v.next();!O.done;O=v.next())if(O.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; uB=function(v){switch(v){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return v}}; AK=function(v){var O=[],Y;for(Y in v)if(v.hasOwnProperty(Y)){var S=Y;O.push(uB(S));S=g.y(v[S]);for(var d=S.next();!d.done;d=S.next())O.push(d.value.itag)}return O.join(".")}; zmF=function(v,O,Y,S,d,r){var b={},z={};g.Xt(O,function(M,V){M=M.filter(function(A){var f=A.itag;if(!A.LP)return z[f]="noenc",!1;if(r.pj&&A.z0==="(h"&&r.n1)return z[f]="lichdr",!1;if(!v.Z&&A.z0==="1e")return z[f]="noav1enc",!1;if(A.z0==="("||A.z0==="(h"){if(v.G&&Y&&Y.flavor==="widevine"){var k=A.mimeType+"; experimental=allowed";(k=!!A.LP[Y.flavor]&&!!Y.Y[k])||(z[f]=A.LP[Y.flavor]?"unspt":"noflv");return k}if(!CA(v,y5.CRYPTOBLOCKFORMAT)&&!v.N3||v.HW)return z[f]=v.HW?"disvp":"vpsub",!1}return Y&&A.LP[Y.flavor]&& Y.Y[A.mimeType]?!0:(z[f]=Y?A.LP[Y.flavor]?"unspt":"noflv":"nosys",!1)}); M.length&&(b[V]=M)}); S&&Object.entries(z).length&&d({rjr:TB(z)});return b}; bDi=function(v,O){var Y=Ny(v,function(S,d){return d.video.fps>32?Math.min(S,d.video.width):S},Infinity); Y32||S.video.widthv.C)return"max"+v.C;if(v.xg&&O.z0==="h"&&O.video&&O.video.qualityOrdinal>1080)return"blkhigh264";if(O.z0==="(h"&&!Y.L)return"enchdr";if((S===void 0?0:S)&&Nu(O)&&!v.FO)return"blk51live";if((O.z0==="MAC3"||O.z0==="mac3")&&!v.B)return"blkac3";if((O.z0==="MEAC3"||O.z0==="meac3")&&!v.Z)return"blkeac3";if(O.z0==="M"||O.z0==="m")return"blkaac51"; if((O.z0==="so"||O.z0==="sa")&&!v.tK)return"blkamb";if(!v.pj&&pKF(O)&&(!Y.Z||O.z0!=="1e"))return"cbc";if(!Y.Z&&pKF(O)&&O.z0==="1e")return"cbcav1";if((O.z0==="i"||O.z0==="I")&&!v.Cj)return"blkiamf";var r;if(v.Mj&&((r=O.audio)==null?void 0:r.U)===!0)return"blkvbcabr";var b,z;if(v.XO&&(O.z0==="1"||O.z0==="1h"||Y.Z&&O.z0==="1e")&&((b=O.video)==null?0:b.qualityOrdinal)&&((z=O.video)==null?void 0:z.qualityOrdinal)>v.XO)return"av1cap";if((S=Y.B.get(O.z0))&&S.TJ>0)return d.add(O.z0),"byerr";var M;if((M=O.video)== null?0:M.fps>32){if(!Y.JK&&!CA(Y,y5.FRAMERATE))return"capHfr";if(v.Eg&&O.video.qualityOrdinal>=4320)return"blk8khfr";if(GB(O)&&v.Td&&O.LP&&O.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(v.b3&&O.b3>v.b3)return"ratecap";v=CJ3(Y,O);return v!==!0?v:!0}; UG=function(v,O){O=O===void 0?[]:O;g.R8(v,function(Y,S){var d=S.b3-Y.b3;if(!Y.EM()||!S.EM())return d;var r=S.video.height*S.video.width-Y.video.height*Y.video.width;!r&&O&&O.length>0&&(Y=O.indexOf(Y.z0)+1,S=O.indexOf(S.z0)+1,r=Y===0||S===0?S||-1:Y-S);r||(r=d);return r})}; g.aa=function(v,O){this[W[33]]=v;this[W[28]]=O===void 0?!1:O;this[W[24]]=this[W[17]]=this[W[12]]=W[5];this[W[1]]={};this[W[10]]=W[5]}; pA=function(v){x$(v);return v[W[24]]}; Ti=function(v){return v[W[33]]?v[W[33]][W[2]](W[53]):v[W[12]]===W[53]}; yLJ=function(v){x$(v);return g.qN(v[W[1]],function(O){return O!==null})}; lB=function(v){x$(v);var O=decodeURIComponent(v[W[23]](W[22])||W[5])[W[8]](W[6]);return v[W[17]]===W[31]&&O[W[4]]>1&&!!O[1]}; FY=function(v,O){O=O===void 0?!1:O;x$(v);if(v[W[17]]!==W[31]){var Y=v[W[42]]();Y[W[14]](W[64],W[30]);return Y}var S=v[W[3]]();Y=new g.Ss(S);var d=v[W[23]](W[88]),r=decodeURIComponent(v[W[23]](W[22])||W[5])[W[8]](W[6]);if(d&&r&&r[W[4]]>1&&r[1])return S=Y.Y,v=S[W[13]](/^[^.]*/,W[5]),g.rk(Y,(S[W[9]](W[21])===0?W[21]:W[52])+d+W[91]+r[1]+v),Y=new g.aa(Y[W[41]]()),Y[W[14]](W[62],W[30]),Y;if(O)return Y=v[W[42]](),Y[W[14]](W[62],W[30]),Y;d=Y.Y[W[19]](W[71]);Y.Y[W[19]](W[63])?(g.rk(Y,W[78]),S=Y[W[41]]()): Y.Y[W[19]](W[87])?(g.rk(Y,W[90]),S=Y[W[41]]()):(Y=fnd(S),vZ(Y)&&(S=Y));Y=new g.aa(S);Y[W[14]](W[18],W[30]);d&&Y[W[14]](W[39],W[32]);return Y}; x$=function(v){if(v[W[33]]){if(!(vZ(v[W[33]])||v[W[33]][W[2]](W[53])||v[W[33]][W[2]](W[92])||v[W[33]][W[2]](W[80])))throw new g.iK(W[54],v[W[33]]);var O=g.gk(v[W[33]]);v[W[12]]=O.Z;v[W[24]]=O.Y+(O.G!=null?W[59]+O.G:W[5]);var Y=O.U;if(Y[W[2]](W[31]))v[W[17]]=W[31],Y=Y[W[16]](14);else if(Y[W[2]](W[48]))v[W[17]]=W[48],Y=Y[W[16]](13);else if(Y[W[2]](W[61])){var S=Y[W[9]](W[25],12),d=Y[W[9]](W[25],S+1);S>0&&d>0?(v[W[17]]=Y[W[16]](0,d),Y=Y[W[16]](d+1)):(v[W[17]]=Y,Y=W[5])}else v[W[17]]=Y,Y=W[5];S=v[W[1]]; v[W[1]]=a6E(Y);Object[W[0]](v[W[1]],xu$(O.B.toString()));Object[W[0]](v[W[1]],S);v[W[1]][W[44]]===W[76]&&(delete v[W[1]][W[44]],v[W[17]]+=W[57]);v[W[33]]=W[5];v[W[10]]=W[5];v[W[28]]&&(x$(v),O=v[W[1]][W[27]]||null)&&(O=pag[0](O),v[W[14]](W[27],O))}}; To3=function(v){x$(v);var O=v[W[12]]+(v[W[12]]?W[67]:W[82])+v[W[24]]+v[W[17]];if(yLJ(v)){var Y=[];g.Xt(v[W[1]],function(S,d){S!==null&&Y[W[37]](d+W[72]+S)}); O+=W[69]+Y[W[11]](W[58])}return O}; a6E=function(v){v=v[W[8]](W[25]);var O=0;v[0]||O++;for(var Y={};O0?l6i(O,S[W[16]](0,d),S[W[16]](d+1)):S&&(O[S]=W[5])}return O}; l6i=function(v,O,Y){if(O===W[46]){var S;(S=Y[W[9]](W[72]))>=0?(O=W[43]+Y[W[16]](0,S),Y=Y[W[16]](S+1)):(S=Y[W[9]](W[40]))>=0&&(O=W[43]+Y[W[16]](0,S),Y=Y[W[16]](S+3))}v[O]=Y}; hK=function(v){var O=g.q(v,Fbc)||v[W[81]];v={ZS:!1,Oc:W[5],uN:W[5],s:W[5]};if(!O)return v;O=Se(O);v[W[89]]=!0;v[W[73]]=O[W[10]];v[W[65]]=O[W[45]];v[W[55]]=O[W[55]];return v}; Ra=function(v,O,Y,S,d,r,b,z,M){this.Vx=v;this.startTime=O;this.duration=Y;this.ingestionTime=S;this.sourceURL=d;this.Jm=M;this.endTime=O+Y;this.Y=b||0;this.range=r||null;this.pending=z||!1;this.Jm=M||null}; g.eZ=function(){this.segments=[];this.Y=null;this.U=!0;this.G=""}; hm7=function(v,O){if(O>v.Eq())v.segments=[];else{var Y=sJ(v.segments,function(S){return S.Vx>=O},v); Y>0&&v.segments.splice(0,Y)}}; EG=function(v,O,Y,S,d){d=d===void 0?!1:d;this.data=v;this.offset=O;this.size=Y;this.type=S;this.Y=(this.U=d)?0:8;this.dataOffset=this.offset+this.Y}; Q5=function(v){var O=v.data.getUint8(v.offset+v.Y);v.Y+=1;return O}; LA=function(v){var O=v.data.getUint16(v.offset+v.Y);v.Y+=2;return O}; Bz=function(v){var O=v.data.getInt32(v.offset+v.Y);v.Y+=4;return O}; Zv=function(v){var O=v.data.getUint32(v.offset+v.Y);v.Y+=4;return O}; XY=function(v){var O=v.data;var Y=v.offset+v.Y;O=O.getUint32(Y)*4294967296+O.getUint32(Y+4);v.Y+=8;return O}; wi=function(v,O){O=O===void 0?NaN:O;if(isNaN(O))var Y=v.size;else for(Y=v.Y;Y1?Math.ceil(d*O):Math.floor(d*O))}v.skip(1);Y=Q5(v)<<16|LA(v);if(Y&256){S=Y&1;d=Y&4;var r=Y&512,b=Y&1024,z=Y&2048;Y=Zv(v);S&&v.skip(4);d&&v.skip(4);S=(r?4:0)+(b?4:0)+(z?4:0);for(d=0;d1?Math.ceil(b*O):Math.floor(b*O)),v.skip(S)}}}; mI=function(v){v=new DataView(v.buffer,v.byteOffset,v.byteLength);return(v=g.Gi(v,0,1836476516))?g.iB(v):NaN}; qn3=function(v){var O=g.Gi(v,0,1937011556);if(!O)return null;O=tK(v,O.dataOffset+8,1635148593)||tK(v,O.dataOffset+8,1635135537);if(!O)return null;var Y=tK(v,O.dataOffset+78,1936995172),S=tK(v,O.dataOffset+78,1937126244);if(!S)return null;O=null;if(Y)switch(Y.skip(4),Q5(Y)){default:O=0;break;case 1:O=2;break;case 2:O=1;break;case 3:O=255}var d=Y=null,r=null;if(S=tK(v,S.dataOffset,1886547818)){var b=tK(v,S.dataOffset,1886546020),z=tK(v,S.dataOffset,2037673328);if(!z&&(z=tK(v,S.dataOffset,1836279920), !z))return null;b&&(b.skip(4),Y=Bz(b)/65536,r=Bz(b)/65536,d=Bz(b)/65536);v=Rmd(z);v=new DataView(v.buffer,v.byteOffset+8,v.byteLength-8);return new wa7(O,Y,r,d,v)}return null}; tK=function(v,O,Y){for(;Dv(v,O);){var S=Hz(v,O);if(S.type===Y)return S;O+=S.size}return null}; g.Gi=function(v,O,Y){for(;Dv(v,O);){var S=Hz(v,O);if(S.type===Y)return S;O=ND(S.type)?O+8:O+S.size}return null}; g.v7=function(v){if(v.data.getUint8(v.dataOffset)){var O=v.data;v=v.dataOffset+4;O=O.getUint32(v)*4294967296+O.getUint32(v+4)}else O=v.data.getUint32(v.dataOffset+4);return O}; Hz=function(v,O){var Y=v.getUint32(O),S=v.getUint32(O+4);return new EG(v,O,Y,S)}; g.iB=function(v){var O=v.data.getUint8(v.dataOffset)?20:12;return v.data.getUint32(v.dataOffset+O)}; nuJ=function(v){v=new EG(v.data,v.offset,v.size,v.type,v.U);var O=Q5(v);v.skip(7);var Y=Zv(v);if(O===0){O=Zv(v);var S=Zv(v)}else O=XY(v),S=XY(v);v.skip(2);for(var d=LA(v),r=[],b=[],z=0;z122)return!1}return!0}; ND=function(v){return v===1701082227||v===1836019558||v===1836019574||v===1835297121||v===1835626086||v===1937007212||v===1953653094||v===1953653099||v===1836475768}; JLE=function(v){v.skip(4);return{Iqx:wi(v,0),value:wi(v,0),timescale:Zv(v),yqu:Zv(v),VGO:Zv(v),id:Zv(v),ai:wi(v),offset:v.offset}}; g.KbE=function(v){var O=tK(v,0,1701671783);if(!O)return null;var Y=JLE(O),S=Y.Iqx;Y=Pz(Y.ai);if(v=tK(v,O.offset+O.size,1701671783))if(v=JLE(v),v=Pz(v.ai),Y&&v){O=g.y(Object.keys(v));for(var d=O.next();!d.done;d=O.next())d=d.value,Y[d]=v[d]}return Y?new JK(Y,S):null}; OZ=function(v,O){for(var Y=tK(v,0,O);Y;){var S=Y;S.type=1936419184;S.data.setUint32(S.offset+4,1936419184);Y=tK(v,Y.offset+Y.size,O)}}; g.YR=function(v,O){for(var Y=0,S=[];Dv(v,Y);){var d=Hz(v,Y);d.type===O&&S.push(d);Y=ND(d.type)?Y+8:Y+d.size}return S}; PJg=function(v,O){var Y=g.Gi(v,0,1937011556),S=g.Gi(v,0,1953654136);if(!Y||!S||v.getUint32(Y.offset+12)>=2)return null;var d=new DataView(O.buffer,O.byteOffset,O.length),r=g.Gi(d,0,1937011556);if(!r)return null;O=d.getUint32(r.dataOffset+8);S=d.getUint32(r.dataOffset+12);if(S!==1701733217&&S!==1701733238)return null;S=new em7(v.byteLength+O);Ia(S,v,0,Y.offset+12);S.data.setInt32(S.offset,2);S.offset+=4;Ia(S,v,Y.offset+16,Y.size-16);Ia(S,d,d.byteOffset+r.dataOffset+8,O);Ia(S,v,Y.offset+Y.size,v.byteLength- (Y.offset+Y.size));Y=g.y([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(d=Y.next();!d.done;d=Y.next())d=g.Gi(v,0,d.value),S.data.setUint32(d.offset,d.size+O);v=g.Gi(S.data,0,1953654136);S.data.setUint32(v.offset+16,2);return S.data}; GBc=function(v){var O=g.Gi(v,0,1937011556);if(!O)return null;var Y=v.getUint32(O.dataOffset+12);if(Y!==1701733217&&Y!==1701733238)return null;O=tK(v,O.offset+24+(Y===1701733217?28:78),1936289382);if(!O)return null;Y=tK(v,O.offset+8,1935894637);if(!Y||v.getUint32(Y.offset+12)!==1667392371)return null;O=tK(v,O.offset+8,1935894633);if(!O)return null;O=tK(v,O.offset+8,1952804451);if(!O)return null;Y=new Uint8Array(16);for(var S=0;S<16;S++)Y[S]=v.getInt8(O.offset+16+S);return Y}; SM=function(v,O){this.Y=v;this.pos=0;this.start=O||0}; d5=function(v){return v.pos>=v.Y.byteLength}; W7=function(v,O,Y){var S=new SM(Y);if(!r5(S,v))return!1;S=bZ(S);if(!o0(S,O))return!1;for(v=0;O;)O>>>=8,v++;O=S.start+S.pos;var d=jM(S,!0);S=v+(S.start+S.pos-O)+d;S=S>9?iD7(S-9,8):iD7(S-2,1);v=O-v;Y.setUint8(v++,236);for(O=0;OY;d++)Y=Y*256+VO(v),S*=128;return O?Y-S:Y}; sZ=function(v){var O=jM(v,!0);v.pos+=O}; Duw=function(v){if(!o0(v,440786851,!0))return null;var O=v.pos;jM(v,!1);var Y=jM(v,!0)+v.pos-O;v.pos=O+Y;if(!o0(v,408125543,!1))return null;jM(v,!0);if(!o0(v,357149030,!0))return null;var S=v.pos;jM(v,!1);var d=jM(v,!0)+v.pos-S;v.pos=S+d;if(!o0(v,374648427,!0))return null;var r=v.pos;jM(v,!1);var b=jM(v,!0)+v.pos-r,z=new Uint8Array(Y+12+d+b),M=new DataView(z.buffer);z.set(new Uint8Array(v.Y.buffer,v.Y.byteOffset+O,Y));M.setUint32(Y,408125543);M.setUint32(Y+4,33554431);M.setUint32(Y+8,4294967295); z.set(new Uint8Array(v.Y.buffer,v.Y.byteOffset+S,d),Y+12);z.set(new Uint8Array(v.Y.buffer,v.Y.byteOffset+r,b),Y+12+d);return z}; AV=function(v){var O=v.pos;v.pos=0;var Y=1E6;r5(v,[408125543,357149030,2807729])&&(Y=zD(v));v.pos=O;return Y}; HDw=function(v,O){var Y=v.pos;v.pos=0;if(v.Y.getUint8(v.pos)!==160&&!fc(v)||!o0(v,160))return v.pos=Y,NaN;jM(v,!0);var S=v.pos;if(!o0(v,161))return v.pos=Y,NaN;jM(v,!0);VO(v);var d=VO(v)<<8|VO(v);v.pos=S;if(!o0(v,155))return v.pos=Y,NaN;S=zD(v);v.pos=Y;return(d+S)*O/1E9}; fc=function(v){if(!Noi(v)||!o0(v,524531317))return!1;jM(v,!0);return!0}; Noi=function(v){if(v.Ba()){if(!o0(v,408125543))return!1;jM(v,!0)}return!0}; r5=function(v,O){for(var Y=0;Y0){var S=xu$(O.substring(Y+1));g.Xt(S,function(d,r){this.set(r,d)},v); O=O.substring(0,Y)}O=a6E(O);g.Xt(O,function(d,r){this.set(r,d)},v)}; Olg=function(v){var O=v.PE.Sp(),Y=[];g.Xt(v.Y,function(d,r){Y.push(r+"="+d)}); if(!Y.length)return O;var S=Y.join("&");v=yLJ(v.PE)?"&":"?";return O+v+S}; kR=function(v,O){var Y=new g.aa(O);(O=Y.get("req_id"))&&v.set("req_id",O);g.Xt(v.Y,function(S,d){Y["set"](d,null)}); return Y}; Yoi=function(){this.B=this.G=this.Y=this.timedOut=this.started=this.Z=this.U=0}; UZ=function(v){v.Z=(0,g.J)();v.started=0;v.timedOut=0;v.Y=0}; c7=function(v,O){var Y=v.started+v.Y*4;O&&(Y+=v.G);Y=Math.max(0,Y-3);return Math.pow(1.6,Y)}; uZ=function(v,O){v[O]||(v[O]=new Yoi);return v[O]}; Cc=function(v){this.j=this.L=this.Z=this.G=0;this.X=this.C=!1;this.Y=v;this.U=v.clone()}; So7=function(v,O,Y){if(Ti(v.Y))return!1;var S=uZ(Y,pA(v.Y));if(S.timedOut<1&&S.Y<1)return!1;S=S.timedOut+S.Y;v=yO(v,O);Y=uZ(Y,pA(v));return Y.timedOut+Y.Y+01?O=O.Nn:(Y=uZ(Y,xR(v,v.t2(O,Y),O)),O=Math.max(v.Z,Y.timedOut)+O.YX*(v.G-v.Z)+.25*v.L,O=O>3?1E3*Math.pow(1.6,O-3):0);return O===0?!0:v.j+O<(0,g.J)()}; dOd=function(v,O,Y){v.Y.set(O,Y);v.U.set(O,Y);v.B&&v.B.set(O,Y)}; roF=function(v,O,Y,S,d){++v.G;O&&++v.Z;pA(Y.PE).startsWith("redirector.")&&(v.Y=v.U.clone(),delete v.B,S.nH&&delete d[pA(v.Y)])}; TD=function(v){return v?(v.itag||"")+";"+(v.lmt||0)+";"+(v.xtags||""):""}; lZ=function(v,O,Y,S){this.initRange=Y;this.indexRange=S;this.Y=null;this.G=!1;this.C=0;this.B=this.V6=this.U=null;this.info=O;this.m9=new Cc(v)}; FN=function(v,O){this.start=v;this.end=O;this.length=O-v+1}; hV=function(v){v=v.split("-");var O=Number(v[0]),Y=Number(v[1]);if(!isNaN(O)&&!isNaN(Y)&&v.length===2&&(v=new FN(O,Y),!isNaN(v.start)&&!isNaN(v.end)&&!isNaN(v.length)&&v.length>0))return v}; R0=function(v,O){return new FN(v,v+O-1)}; blm=function(v){return v.end==null?{start:String(v.start)}:{start:String(v.start),end:String(v.end)}}; eM=function(v){if(!v)return new FN(0,0);var O=Number(v.start);v=Number(v.end);if(!isNaN(O)&&!isNaN(v)&&(O=new FN(O,v),O.length>0))return O}; EZ=function(v,O,Y,S,d,r,b,z,M,V,A,f){S=S===void 0?"":S;this.type=v;this.Y=O;this.range=Y;this.source=S;this.jE=A;this.clipId=f===void 0?"":f;this.j=[];this.X="";this.Vx=-1;this.tK=this.Ug=0;this.X=S;this.Vx=d>=0?d:-1;this.startTime=r||0;this.duration=b||0;this.U=z||0;this.G=M>=0?M:this.range?this.range.length:NaN;this.Z=this.range?this.U+this.G===this.range.length:V===void 0?!!this.G:V;this.range?(this.B=this.startTime+this.duration*this.U/this.range.length,this.L=this.duration*this.G/this.range.length, this.C=this.B+this.L):ozg(this)}; ozg=function(v){jId?(v.B=v.startTime+Math.min(v.duration*v.U/v.Y.info.b3,v.duration),v.L=Math.min(v.duration,v.duration*v.G/v.Y.info.b3),v.C=Math.min(v.B+v.L,v.startTime+v.duration)):(v.B=v.startTime,v.L=v.duration,v.C=v.B+v.L)}; WKE=function(v,O,Y){var S=!(!O||O.Y!==v.Y||O.type!==v.type||O.Vx!==v.Vx);return Y?S&&!!O&&(v.range&&O.range?O.range.end===v.range.end:O.range===v.range)&&O.U+O.G===v.U+v.G:S}; QO=function(v){return v.type===1||v.type===2}; Lc=function(v){return v.type===3||v.type===6}; B7=function(v,O){return v.Y===O.Y?v.range&&O.range?v.range.start+v.U+v.G===O.range.start+O.U:v.Vx===O.Vx?v.U+v.G===O.U:v.Vx+1===O.Vx&&O.U===0&&v.Z:!1}; sIg=function(v,O){return v.Vx!==O.Vx&&O.Vx!==v.Vx+1||v.type!==O.type?!1:B7(v,O)?!0:Math.abs(v.B-O.B)<=1E-6&&v.Vx===O.Vx?!1:zCE(v,O)}; zCE=function(v,O){return B7(v,O)||Math.abs(v.C-O.B)<=1E-6||v.Vx+1===O.Vx&&O.U===0&&v.Z?!0:!1}; Z5=function(v){return v.Vx+(v.Z?1:0)}; gzg=function(v){v.length===1||g.HL(v,function(Y){return!!Y.range}); for(var O=1;O=O.range.start+O.U&&v.range.start+v.U+v.G<=O.range.start+O.U+O.G:v.Vx===O.Vx&&v.U>=O.U&&(v.U+v.G<=O.U+O.G||O.Z)}; UO3=function(v,O){return v.Y!==O.Y?!1:v.type===4&&O.type===3&&v.Y.gT()?(v=v.Y.qD(v),H4(v,function(Y){return UO3(Y,O)})):v.Vx===O.Vx&&!!O.G&&O.U+O.G>v.U&&O.U+O.G<=v.U+v.G}; w5=function(v,O){var Y=O.Vx;v.X="updateWithSegmentInfo";v.Vx=Y;if(v.startTime!==O.startTime||v.duration!==O.duration)v.startTime=O.startTime+v.Ug,v.duration=O.duration,ozg(v)}; I0=function(v,O){var Y=this;this.Id=v;this.B=this.Y=null;this.Z=this.No=NaN;this.t2=this.requestId=null;this.Qg={SZg:function(){return Y.range}}; this.m9=v[0].Y.m9;this.U=O||"";this.Id[0].range&&this.Id[0].G>0&&(M5$(v)?(this.range=gzg(v),this.G=this.range.length):(this.range=this.Id[this.Id.length-1].range,this.G=V5w(v)))}; qY=function(v){return!QO(v.Id[v.Id.length-1])}; nc=function(v){return v.Id[v.Id.length-1].type===4}; g.JV=function(v,O,Y){Y=v.t2===null?v.m9.t2(O,Y,v.Id[0].type):v.t2;if(v.Y){O=Y?FY(v.Y,O.ZI):v.Y;var S=new $R(O);S.get("alr")||S.set("alr","yes");v.U&&vzl(S,v.U)}else/http[s]?:\/\//.test(v.U)?S=new $R(new g.aa(v.U)):(S=a0(v.m9,Y,O),v.U&&vzl(S,v.U));(O=v.range)?S.set("range",O.toString()):v.Id[0].Y.U5()&&v.Id.length===1&&v.Id[0].U&&S.set("range",v.Id[0].U+"-");v.requestId&&S.set("req_id",v.requestId);isNaN(v.No)||S.set("headm",v.No.toString());isNaN(v.Z)||S.set("mffa",v.Z+"ms");v.urlParams&&g.Xt(v.urlParams, function(d,r){S.set(r,d)}); return S}; com=function(v){if(v.range)return v.G;v=v.Id[0];return Math.round(v.L*v.Y.info.b3)}; u4c=function(v,O){return Math.max(0,v.Id[0].B-O)}; Kc=function(v,O,Y,S,d,r){r=r===void 0?0:r;lZ.call(this,v,O,S,void 0);this.Z=Y;this.nW=r;this.index=d||new g.eZ}; Csi=function(v,O,Y,S,d){this.Vx=v;this.startSecs=O;this.kZ=Y;this.Y=S||NaN;this.U=d||NaN}; P7=function(v,O,Y){for(;v;v=v.parentNode)if(v.attributes&&(!Y||v.nodeName===Y)){var S=v.getAttribute(O);if(S)return S}return""}; GD=function(v,O){for(;v;v=v.parentNode){var Y=v.getElementsByTagName(O);if(Y.length>0)return Y[0]}return null}; yon=function(v){if(!v)return 0;var O=v.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return O?(Number(O[2])|0)*3600+(Number(O[4])|0)*60+(Number(O[6])|0):Number(v)|0}; ao1=function(v){return v.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?v+"Z":v}; iZ=function(){this.Y=[];this.U=null;this.C=0;this.G=[];this.Z=!1;this.L="";this.B=-1}; xO3=function(v){var O=v.G;v.G=[];return O}; pS7=function(){this.B=[];this.Y=null;this.U={};this.G={}}; hCl=function(v,O){var Y=[];O=Array.from(O.getElementsByTagName("SegmentTimeline"));O=g.y(O);for(var S=O.next();!S.done;S=O.next()){S=S.value;var d=S.parentNode.parentNode,r=null;d.nodeName==="Period"?r=Tb$(v):d.nodeName==="AdaptationSet"?(d=d.getAttribute("id")||d.getAttribute("mimetype")||"",r=lod(v,d)):d.nodeName==="Representation"&&(d=d.getAttribute("id")||"",r=FKi(v,d));if(r==null)return;r.update(S);g.CC(Y,xO3(r))}g.CC(v.B,Y);pmw(v.B,function(b){return b.startSecs*1E3+b.Y})}; RC1=function(v){v.Y&&(v.Y.Y=[]);g.Xt(v.U,function(O){O.Y=[]}); g.Xt(v.G,function(O){O.Y=[]})}; Tb$=function(v){v.Y||(v.Y=new iZ);return v.Y}; lod=function(v,O){v.U[O]||(v.U[O]=new iZ);return v.U[O]}; FKi=function(v,O){v.G[O]||(v.G[O]=new iZ);return v.G[O]}; tV=function(v){var O=v===void 0?{}:v;v=O.nW===void 0?0:O.nW;var Y=O.Xk===void 0?!1:O.Xk;var S=O.xi===void 0?0:O.xi;var d=O.Zq===void 0?0:O.Zq;var r=O.ZT===void 0?Infinity:O.ZT;var b=O.ES===void 0?0:O.ES;var z=O.XH===void 0?!1:O.XH;O=O.G5===void 0?!1:O.G5;g.eZ.call(this);this.uS=this.LD=-1;this.kN=v;this.xi=S;this.Xk=Y;this.Zq=d;this.ZT=r;this.ES=b;((this.XH=z)||isFinite(r)&&this.ZT>0)&&Y&&mt&&(this.U=!1,this.G="postLive");this.G5=O}; D5=function(v,O){return hY(v.segments,function(Y){return O-Y.Vx})}; H7=function(v,O,Y){Y=Y===void 0?{}:Y;Kc.call(this,v,O,"",void 0,void 0,Y.nW||0);this.index=new tV(Y)}; NY=function(v,O,Y){lZ.call(this,v,O);this.Z=Y;v=this.index=new g.eZ;v.U=!1;v.G="d"}; eC1=function(v,O,Y){var S=v.index.XD(O),d=v.index.getStartTime(O),r=v.index.getDuration(O);Y?r=Y=0:Y=v.info.b3*r;return new I0([new EZ(3,v,void 0,"otfCreateRequestInfoForSegment",O,d,r,0,Y)],S)}; Ez3=function(v,O){if(!v.index.isLoaded()){var Y=[],S=O.B;O=O.Z.split(",").filter(function(A){return A.length>0}); for(var d=0,r=0,b=0,z=/^(\d+)/,M=/r=(\d+)/,V=0;V0&&(d.Y=Math.min(d.Y+b,10),d.U=r);d.Y>0?(d.Y--,d=!0):d=!1;if(d)typeof S==="function"&&(S=S()),console.log("plyr."+O,S);else{var z;S=((z=wS1.get(O))!=null?z:0)+1;wS1.set(O,S);S%100===1&&console.warn("plyr","plyr."+O+" is chatty, dropping logs.")}}}; XSw=function(){this.Y=10;this.U=Date.now()}; YA=function(v,O){this.info=v;this.Y=O;this.U=null;this.B=this.G=-1;this.timestampOffset=0;this.isLocked=this.C=!1;this.Z=this.info.Y.ol()&&!this.info.U}; Ioc=function(v,O){v.Y.getLength();O=Math.min(O,v.info.G);var Y=v.Y.split(O),S=Y.M6;Y=new YA(new EZ(v.info.type,v.info.Y,v.info.range,v.info.X,v.info.Vx,v.info.startTime,v.info.duration,v.info.U,O,!1,v.info.jE,v.info.clipId),Y.I5);Y.B=v.B;Y.G=v.G;O=new YA(new EZ(v.info.type,v.info.Y,v.info.range,v.info.X,v.info.Vx,v.info.startTime,v.info.duration,v.info.U+O,v.info.G-O,v.info.Z,v.info.jE,v.info.clipId),S);O.B=v.B;O.G=v.G;return[Y,O]}; g.S$=function(v,O,Y,S){Y=Y===void 0?!1:Y;S=S===void 0?0:S;if(v.isLocked||O.isLocked||!B7(v.info,O.info)||v.info.Z)return null;if(S){if(v.Y.getLength()+O.Y.getLength()>S)return null}else if(Y&&(Y=v.Y,S=O.Y,Y=!(S.Hj.length?Q7Q(Y,S.Hj[0]):1)),Y)return null;Y=new EZ(v.info.type,v.info.Y,v.info.range,v.info.X,v.info.Vx,v.info.startTime,v.info.duration,v.info.U,v.info.G,v.info.Z,v.info.jE,v.info.clipId);S=O.info;Y.G+=S.G;Y.range&&(Y.L+=S.L);Y.C=S.C;Y.Z=S.Z;S=new c3;u2(S,v.Y);u2(S,O.Y);Y=new YA(Y,S);Y.U!= null&&O.U!=null&&(new g.vY("dash")).Y(414627957,"merged slice emsg overridden; prev: "+Y.U.U9()+" next: "+O.U.U9());Y.U=O.U||v.U;Y.G=v.G!==-1?v.G:O.G;Y.B=v.B!==-1?v.B:O.B;return Y}; g.de=function(v){g.vS(v.info.Y.info)||v.info.Y.info.BY();if(v.G!==-1)return v.G;if(v.U&&LbE(v.U))return v.G=LbE(v.U),v.G;if(g.vS(v.info.Y.info)){var O=v.cq();for(var Y=v.info.Y.Y,S=NaN,d=NaN,r=0;Dv(O,r);){var b=Hz(O,r);b.type===1936286840?d=b.data.getUint32(b.dataOffset+8):b.type===1836476516?d=g.iB(b):b.type===1952867444&&isNaN(S)&&(S=g.v7(b));r=ND(b.type)?r+8:r+b.size}!d&&Y&&(d=mI(Y));O=S/d}else O=new SM(v.cq()),Y=v.Z?O:new SM(new DataView(v.info.Y.Y.buffer)),S=AV(Y),Y=O.pos,O.pos=0,fc(O)?o0(O, 231)?(S=zD(O)*S/1E9,O.pos=Y,O=S):(O.pos=Y,O=NaN):(O.pos=Y,O=NaN);v.G=O||v.info.B;return v.G}; nzc=function(v,O){v.timestampOffset>0&&(O-=v.timestampOffset);var Y=g.de(v)+O;qoQ(v,Y);v.timestampOffset=O}; qoQ=function(v,O){g.vS(v.info.Y.info)||v.info.Y.info.BY();v.G=O;if(g.vS(v.info.Y.info)){var Y=v.cq();v=v.info.Y.Y;for(var S=NaN,d=NaN,r=0;Dv(Y,r);){var b=Hz(Y,r);isNaN(S)&&(b.type===1936286840?S=b.data.getUint32(b.dataOffset+8):b.type===1836476516&&(S=g.iB(b)));if(b.type===1952867444){!S&&v&&(S=mI(v));var z=g.v7(b);isNaN(d)&&(d=Math.round(O*S)-z);var M=b;z+=d;if(M.data.getUint8(M.dataOffset)){var V=M.data;M=M.dataOffset+4;V.setUint32(M,Math.floor(z/4294967296));V.setUint32(M+4,z&4294967295)}else M.data.setUint32(M.dataOffset+ 4,z)}r=ND(b.type)?r+8:r+b.size}return!0}Y=new SM(v.cq());v=v.Z?Y:new SM(new DataView(v.info.Y.Y.buffer));S=AV(v);v=Y.pos;Y.pos=0;if(fc(Y)&&o0(Y,231))if(d=jM(Y,!0),O=Math.floor(O*1E9/S),Math.ceil(Math.log(O)/Math.log(2)/8)>d)O=!1;else{for(S=d-1;S>=0;S--)Y.Y.setUint8(Y.pos+S,O&255),O>>>=8;Y.pos=v;O=!0}else O=!1;return O}; bP=function(v,O){O=O===void 0?!1:O;var Y=re(v);v=O?0:v.info.L;return Y||v}; re=function(v){g.vS(v.info.Y.info)||v.info.Y.info.BY();if(v.U&&v.info.type===6)return v.U.nW;if(g.vS(v.info.Y.info)){var O=v.cq();var Y=0;O=g.YR(O,1936286840);O=g.y(O);for(var S=O.next();!S.done;S=O.next())S=nuJ(S.value),Y+=S.fb[0]/S.timescale;Y=Y||NaN;if(!(Y>=0))a:{Y=v.cq();O=v.info.Y.Y;for(var d=S=0,r=0;Dv(Y,S);){var b=Hz(Y,S);if(b.type===1836476516)d=g.iB(b);else if(b.type===1836019558){!d&&O&&(d=mI(O));if(!d){Y=NaN;break a}var z=tK(b.data,b.dataOffset,1953653094),M=z;z=d;var V=tK(M.data,M.dataOffset, 1952868452);M=tK(M.data,M.dataOffset,1953658222);var A=Bz(V);Bz(V);A&2&&Bz(V);V=A&8?Bz(V):0;var f=Bz(M),k=f&1;A=f&4;var U=f&256,c=f&512,a=f&1024;f&=2048;var x=Zv(M);k&&Bz(M);A&&Bz(M);for(var T=k=0;T2048?"":O.indexOf("https://")===0?O:""}; ge=function(v,O,Y){O.match(Oan);return v(O,Y).then(function(S){var d=g.v2i(S.xhr);return d?ge(v,d,Y):S.xhr})}; fT=function(v,O,Y){v=v===void 0?"":v;O=O===void 0?null:O;Y=Y===void 0?!1:Y;g.MU.call(this);var S=this;this.sourceUrl=v;this.isLivePlayback=Y;this.XO=this.duration=0;this.isPremiere=this.XH=this.B=this.isLiveHeadPlayable=this.isLive=this.U=!1;this.ZT=this.Zq=0;this.isOtf=this.FL=!1;this.g8=(0,g.J)();this.tK=Infinity;this.Y={};this.G=new Map;this.state=this.rT=0;this.timeline=null;this.isManifestless=!1;this.JK=[];this.C=null;this.N3=0;this.Z="";this.FO=NaN;this.HW=this.Cj=this.timestampOffset=this.L= 0;this.dW=this.TV=NaN;this.rR=0;this.AK=this.j=!1;this.f1=[];this.Eg={};this.Ug=NaN;this.Qg={aK4:function(z){M9(S,z)}}; var d;this.xg=(d=O)==null?void 0:d.T0("html5_use_network_error_code_enums");YKd=!!O&&O.T0("html5_modern_vp9_mime_type");var r;VM=!((r=O)==null||!r.T0("html5_enable_flush_during_seek"))&&g.Pf();var b;At=!((b=O)==null||!b.T0("html5_enable_reset_audio_decoder"))&&g.Pf()}; SKi=function(v){return g.qN(v.Y,function(O){return!!O.info.video&&O.info.video.qualityOrdinal>=2160})}; kBw=function(v){return g.qN(v.Y,function(O){return!!O.info.video&&O.info.video.isHdr()})}; $$=function(v){return g.qN(v.Y,function(O){return!!O.info.LP})}; g.dsd=function(v){return g.qN(v.Y,function(O){return rb(O.info.mimeType)})}; rmg=function(v){return g.qN(v.Y,function(O){return O.info.video?O.info.video.projectionType==="EQUIRECTANGULAR":!1})}; ba7=function(v){return g.qN(v.Y,function(O){return O.info.video?O.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; o2d=function(v){return g.qN(v.Y,function(O){return O.info.video?O.info.video.projectionType==="MESH":!1})}; jKJ=function(v){return g.qN(v.Y,function(O){return O.info.video?O.info.video.stereoLayout===1:!1})}; W9m=function(v){return Rg1(v.Y,function(O){return O.info.video?O.Br():!0})}; V5=function(v){return g.qN(v.Y,function(O){return Ti(O.m9.Y)})}; M9=function(v,O){v.Y[O.info.id]=O;v.G.set(TD(g.Yz(O.info,v.FL)),O)}; UL=function(v,O,Y){Y=Y===void 0?0:Y;var S=v.mimeType||"",d=v.itag;var r=v.xtags;d=d?d.toString():"";r&&(d+=";"+r);r=d;if(db(S)){var b=v.width||640;d=v.height||360;var z=v.fps,M=v.qualityLabel,V=v.colorInfo,A=v.projectionType,f;v.stereoLayout&&(f=zbF[v.stereoLayout]);var k=Hli(v)||void 0;if(V==null?0:V.primaries)var U=sK3[V.primaries]||void 0;b=new qu(b,d,z,A,f,void 0,M,k,U);S=$A(S,b,KD[v.itag||""]);VM&&(S+="; enableflushduringseek=true");At&&(S+="; enableresetaudiodecoder=true")}var c;if(S5(S)){var a= v.audioSampleRate;f=v.audioTrack;a=new XW(a?+a:void 0,v.audioChannels,v.spatialAudioType,v.isDrc,v.loudnessDb,v.trackAbsoluteLoudnessLkfs,v.audioQuality||"AUDIO_QUALITY_UNKNOWN",v.isVb);f&&(U=f.displayName,d=f.id,f=f.audioIsDefault,U&&(c=new g.sL(U,d||"",!!f)))}var x;v.captionTrack&&(M=v.captionTrack,f=M.displayName,U=M.vssId,d=M.languageCode,z=M.kind,M=M.id,f&&U&&d&&(x=new t5$(f,U,d,z,v.xtags,M)));f=Number(v.bitrate)/8;U=Number(v.contentLength);d=Number(v.lastModified);M=v.drmFamilies;z=v.type;Y= Y&&U?U/Y:0;v=Number(v.approxDurationMs);if(O&&M){var T={};M=g.y(M);for(V=M.next();!V.done;V=M.next())(V=kA[V.value])&&(T[V]=O[V])}return new Pa(r,S,{audio:a,video:b,Dg:c,LP:T,b3:f,He:Y,contentLength:U,lastModified:d,captionTrack:x,streamType:z,approxDurationMs:v})}; cY=function(v,O,Y){Y=Y===void 0?0:Y;var S=v.type;var d=v.itag;var r=v.xtags;r&&(d=v.itag+";"+r);if(db(S)){var b=(v.size||"640x360").split("x");b=new qu(+b[0],+b[1],+v.fps,v.projection_type,+v.stereo_layout,void 0,v.quality_label,v.eotf,v.primaries);S=$A(S,b,KD[v.itag]);VM&&(S+="; enableflushduringseek=true");At&&(S+="; enableresetaudiodecoder=true")}var z;if(S5(S)){var M=new XW(+v.audio_sample_rate||void 0,+v.audio_channels||0,v.spatial_audio_type,!!v.drc);v.name&&(z=new g.sL(v.name,v.audio_track_id, v.isDefault==="1"))}var V;v.caption_display_name&&v.caption_vss_id&&v.caption_language_code&&(V=new t5$(v.caption_display_name,v.caption_vss_id,v.caption_language_code,v.caption_kind,v.xtags,v.caption_id));r=Number(v.bitrate)/8;var A=Number(v.clen),f=Number(v.lmt);Y=Y&&A?A/Y:0;if(O&&v.drm_families){var k={};for(var U=g.y(v.drm_families.split(",")),c=U.next();!c.done;c=U.next())c=c.value,k[c]=O[c]}return new Pa(d,S,{audio:M,video:b,Dg:z,LP:k,b3:r,He:Y,contentLength:A,lastModified:f,captionTrack:V, streamType:v.stream_type,approxDurationMs:Number(v.approx_duration_ms)})}; g2d=function(v){return H4(v,function(O){return"FORMAT_STREAM_TYPE_OTF"===O.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; M_E=function(v){return H4(v,function(O){return"FORMAT_STREAM_TYPE_OTF"===O.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; V_Q=function(v,O){return v.timeline?a8(v.timeline.B,O):v.JK.length?a8(v.JK,O):[]}; uP=function(v,O,Y){O=O===void 0?"":O;Y=Y===void 0?"":Y;v=new g.aa(v,!0);v.set("alr","yes");Y&&(Y=wvw(decodeURIComponent(Y)),v[W[14]](O,encodeURIComponent(Y)));return v}; kHF=function(v,O){var Y=P7(O,"id");Y=Y.replace(":",";");var S=P7(O,"mimeType"),d=P7(O,"codecs");S=d?S+'; codecs="'+d+'"':S;d=Number(P7(O,"bandwidth"))/8;var r=Number(GD(O,"BaseURL").getAttribute(v.Z+":contentLength")),b=v.duration&&r?r/v.duration:0;if(db(S)){var z=Number(P7(O,"width"));var M=Number(P7(O,"height")),V=Number(P7(O,"frameRate")),A=Amn(P7(O,v.Z+":projectionType"));a:switch(P7(O,v.Z+":stereoLayout")){case "layout_left_right":var f=1;break a;case "layout_top_bottom":f=2;break a;default:f= 0}z=new qu(z,M,V,A,f)}if(S5(S)){var k=Number(P7(O,"audioSamplingRate"));var U=Number(P7(O.getElementsByTagName("AudioChannelConfiguration")[0],"value"));M=fDE(P7(O,v.Z+":spatialAudioType"));k=new XW(k,U,M);a:{U=P7(O,"lang")||"und";if(M=GD(O,"Role"))if(A=P7(M,"value")||"",g.Gw($si,A)){M=U+"."+$si[A];V=A==="main";v=P7(O,v.Z+":langName")||U+" - "+A;U=new g.sL(v,M,V);break a}U=void 0}}if(O=GD(O,"ContentProtection"))if(O.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var c={};for(O= O.firstChild;O!=null;O=O.nextSibling)O instanceof Element&&/SystemURL/.test(O.nodeName)&&(v=O.getAttribute("type"),M=O.textContent,v&&M&&(c[v]=M.trim()))}else c=void 0;return new Pa(Y,S,{audio:k,video:z,Dg:U,LP:c,b3:d,He:b,contentLength:r})}; Amn=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"}}; fDE=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"}}; cmc=function(v,O){O=O===void 0?"":O;v.state=1;v.g8=(0,g.J)();return Nbc(O||v.sourceUrl).then(function(Y){if(!v.vW()){v.rT=Y.status;Y=Y.responseText;var S=new DOMParser;Y=s7(S,QSl(Y),"text/xml").getElementsByTagName("MPD")[0];v.tK=yon(P7(Y,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(Y.attributes){S=g.y(Y.attributes);for(var d=S.next();!d.done;d=S.next())if(d=d.value,d.value==="http://youtube.com/yt/2012/10/10"){S=d.name.split(":")[1];break b}}S=""}v.Z=S;v.isLive=v.tK=v.tK}; C7g=function(v){v.C&&v.C.stop()}; Us7=function(v){var O=v.tK;isFinite(O)&&(CT(v)?v.refresh():(O=Math.max(0,v.g8+O-(0,g.J)()),v.C||(v.C=new g.mX(v.refresh,O,v),g.w(v,v.C)),v.C.start(O)))}; ym$=function(v){v=v.Y;for(var O in v){var Y=v[O].index;if(Y.isLoaded())return Y.Eq()+1}return 0}; yM=function(v){return v.Cj?v.Cj-(v.L||v.timestampOffset):0}; aW=function(v){return v.HW?v.HW-(v.L||v.timestampOffset):0}; xA=function(v){if(!isNaN(v.FO))return v.FO;var O=v.Y,Y;for(Y in O){var S=O[Y].index;if(S.isLoaded()&&!rb(O[Y].info.mimeType)){O=0;for(Y=S.Pu();Y<=S.Eq();Y++)O+=S.getDuration(Y);O/=S.IN();O=Math.round(O/.5)*.5;S.IN()>10&&(v.FO=O);return O}if(v.isLive&&(S=O[Y],S.nW))return S.nW}return NaN}; aD1=function(v,O){v=EQg(v.Y,function(S){return S.index.isLoaded()}); if(!v)return NaN;v=v.index;var Y=v.cE(O);return v.getStartTime(Y)===O?O:Y=0&&d.segments.splice(r,1)}}}; pNn=function(v){for(var O in v.Y)rb(v.Y[O].info.mimeType)||hm7(v.Y[O].index,Infinity)}; lP=function(v,O,Y){for(var S in v.Y){var d=v.Y[S].index,r=O,b=Y;d.Xk&&(r&&(d.LD=Math.max(d.LD,r)),b&&(d.uS=Math.max(d.uS||0,b)))}Y&&(v.Ug=Y/1E3)}; TCF=function(v){v.HW=0;v.Cj=0;v.rR=0}; FT=function(v){return v.AK&&v.isManifestless?v.isLiveHeadPlayable:v.isLive}; $A=function(v,O,Y){ht===null&&(ht=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(YKd&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return ht||Y!=="9"&&Y!=="("?ht||Y!=="9h"&&Y!=="(h"||(v='video/webm; codecs="vp9.2"'):v='video/webm; codecs="vp9"',v;if(!ht&&!RW||v!=='video/webm; codecs="vp9"'&&v!=='video/webm; codecs="vp9.2"')return v; Y="00";var S="08",d="01",r="01",b="01";v==='video/webm; codecs="vp9.2"'&&(Y="02",S="10",O.primaries==="bt2020"&&(b=d="09"),O.Y==="smpte2084"&&(r="16"),O.Y==="arib-std-b67"&&(r="18"));return'video/webm; codecs="'+["vp09",Y,"51",S,"01",d,r,b,"00"].join(".")+'"'}; EL=function(v,O,Y){v=""+v+(O>49?"p60":O>32?"p48":"");O=ns()[v];if(O!=null&&O>0)return O;O=e$.get(v);if(O!=null&&O>0)return O;Y=Y==null?void 0:Y.get(v);return Y!=null&&Y>0?Y:8192}; lDl=function(v){this.Qx=v;this.PT=this.Lv=this.N3=this.Z=this.B=this.f1=this.AK=this.tK=!1;this.L=this.C=0;this.xg=!1;this.Ug=!0;this.Eg=!1;this.vP=0;this.HQ=this.HW=!1;this.yC=!0;this.g8=this.FO=!1;this.Y={};this.Mj=this.R1=this.disableAv1=this.n1=this.aI=this.yx=this.On=this.U=this.X=!1;this.II=this.Qx.V("html5_disable_aac_preference");this.rR=Infinity;this.JK=0;this.Te=this.Qx.XL();this.pj=this.Qx.experiments.T0("html5_enable_vp9_fairplay");this.N2=this.Qx.V("html5_force_av1_for_testing");this.XO= g.Vq(this.Qx.experiments,"html5_av1_ordinal_cap");this.Td=this.Qx.V("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.qX=this.Qx.V("html5_account_onesie_format_selection_during_format_filter");this.b3=g.Vq(this.Qx.experiments,"html5_max_byterate");this.Cj=this.Qx.V("html5_enable_iamf_audio");this.w2=this.Qx.experiments.T0("html5_allow_capability_merge");this.oI=this.Qx.V("html5_enable_encrypted_av1")}; Uuw=function(v){if(v.AK)return["f"];if(g.Jy("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var O=["9h","9","h","8"];v.oI&&O.push("1e");O=O.concat(["(h","(","H","*"]);v.HW&&(O.unshift("1"),O.unshift("1h"));v.Lv&&O.unshift("h");v.j&&(O=(F91[v.j]||[v.j]).concat(O));return O}; gui=function(v){var O=["o","a","A"];v.JK===1&&(v.B&&(O=["mac3","MAC3"].concat(O)),v.Z&&(O=["meac3","MEAC3"].concat(O)),v.Cj&&(O=["i","I"].concat(O)));v.tK&&(O=["so","sa"].concat(O));!v.PT||v.N3||v.G||v.II||O.unshift("a");v.G&&(O=(F91[v.G]||[v.G]).concat(O));return O}; QM=function(v,O,Y,S){O=O===void 0?{}:O;if(S===void 0?0:S)return O.disabled=1,0;if(CA(v.Z,y5.AV1_CODECS)&&CA(v.Z,y5.HEIGHT)&&CA(v.Z,y5.BITRATE))return O.isCapabilityUsable=1,8192;try{var d=i0c();if(d&&!v.V("disable_av1_setting"))return O.localPref=d}catch(z){}S=1080;d=navigator.hardwareConcurrency;d<=2&&(S=480);O.coreCount=d;if(d=g.Vq(v.experiments,"html5_default_av1_threshold"))S=O["default"]=d;!v.V("html5_disable_av1_arm_check")&&kVw()&&(O.isArm=1,S=240);if(v=v.Z.Ug)O.mcap=v,S=Math.max(S,v);if(Y){var r, b;if(v=(r=Y.videoInfos.find(function(z){return D6(z)}))==null?void 0:(b=r.U)==null?void 0:b.powerEfficient)S=8192,O.isEfficient=1; Y=Y.videoInfos[0].video;r=Math.min(EL("1",Y.fps),EL("1",30));O.perfCap=r;S=Math.min(S,r);Y.isHdr()&&!v&&(O.hdr=1,S*=.75)}else Y=EL("1",30),O.perfCap30=Y,S=Math.min(S,Y),Y=EL("1",60),O.perfCap60=Y,S=Math.min(S,Y);return O.av1Threshold=S}; LT=function(v,O,Y,S){this.flavor=v;this.keySystem=O;this.U=Y;this.experiments=S;this.Y={};this.XO=this.keySystemAccess=null;this.aO=this.K$=-1;this.N6=null;this.G=!!S&&S.T0("edge_nonprefixed_eme");S&&S.T0("html5_enable_vp9_fairplay")}; Zf=function(v){return v.G?!1:!v.keySystemAccess&&!!BY()&&v.keySystem==="com.microsoft.playready"}; XT=function(v){return v.keySystem==="com.microsoft.playready"}; we=function(v){return!v.keySystemAccess&&!!BY()&&v.keySystem==="com.apple.fps.1_0"}; IW=function(v){return v.keySystem==="com.youtube.fairplay"}; q9=function(v){return v.keySystem==="com.youtube.fairplay.sbdl"}; g.nT=function(v){return v.flavor==="fairplay"}; BY=function(){var v=window,O=v.MSMediaKeys;mn()&&!O&&(O=v.WebKitMediaKeys);return O&&O.isTypeSupported?O:null}; KT=function(v){return navigator.requestMediaKeySystemAccess?g.En&&!g.Pf()?Tf("45"):g.i9||g.fO?v.T0("edge_nonprefixed_eme"):g.Jt?Tf("47"):g.ch&&v.T0("html5_enable_safari_fairplay")?!1:!0:!1}; hbd=function(v,O,Y,S){var d=Gn(),r=(Y=d||Y&&mn())?["com.youtube.fairplay"]:["com.widevine.alpha"];O&&r.unshift("com.youtube.widevine.l3");d&&S&&r.unshift("com.youtube.fairplay.sbdl");return Y?r:v?[].concat(g.F(r),g.F(PY.playready)):[].concat(g.F(PY.playready),g.F(r))}; G6=function(v,O,Y,S,d){S=S===void 0?!1:S;g.X.call(this);this.Qx=O;this.useCobaltWidevine=S;this.G0=d;this.U=[];this.G={};this.Y={};this.callback=null;this.Z=!1;this.B=[];this.initialize(v,!Y)}; ebF=function(v,O){v.callback=O;v.B=[];KT(v.Qx.experiments)?iP(v):Rbl(v)}; iP=function(v){if(!v.vW())if(v.U.length===0)v.callback(v.B);else{var O=v.U[0],Y=v.G[O],S=E21(v,Y);if(mw&&mw.keySystem===O&&mw.iEd===JSON.stringify(S))v.G0("remksa",{re:!0}),QKl(v,Y,mw.keySystemAccess);else{var d,r;v.G0("remksa",{re:!1,ok:(r=(d=mw)==null?void 0:d.keySystem)!=null?r:""});mw=void 0;navigator.requestMediaKeySystemAccess(O,S).then(ps(function(b){QKl(v,Y,b,S)}),ps(function(){v.Z=!v.Z&&v.G[v.U[0]].flavor==="widevine"; v.Z||v.U.shift();iP(v)}))}}}; QKl=function(v,O,Y,S){if(!v.vW()){S&&(mw={keySystem:O.keySystem,keySystemAccess:Y,iEd:JSON.stringify(S)});O.keySystemAccess=Y;if(XT(O)){Y=RA();S=g.y(Object.keys(v.Y[O.flavor]));for(var d=S.next();!d.done;d=S.next())d=d.value,O.Y[d]=!!Y.canPlayType(d)}else{Y=O.keySystemAccess.getConfiguration();if(Y.audioCapabilities)for(S=g.y(Y.audioCapabilities),d=S.next();!d.done;d=S.next())L9l(v,O,d.value);if(Y.videoCapabilities)for(Y=g.y(Y.videoCapabilities),S=Y.next();!S.done;S=Y.next())L9l(v,O,S.value)}v.B.push(O); v.useCobaltWidevine||v.V("html5_enable_vp9_fairplay")&&q9(O)?(v.U.shift(),iP(v)):v.callback(v.B)}}; L9l=function(v,O,Y){v.V("log_robustness_for_drm")?O.Y[Y.contentType]=Y.robustness||!0:O.Y[Y.contentType]=!0}; E21=function(v,O){var Y={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(v.V("html5_enable_vp9_fairplay")&&IW(O))return Y.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),Y.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[Y];XT(O)&&(Y.initDataTypes=["keyids","cenc"]);for(var S=g.y(Object.keys(v.Y[O.flavor])),d=S.next();!d.done;d=S.next()){d=d.value;var r=d.indexOf("audio/")===0,b=r?Y.audioCapabilities:Y.videoCapabilities;O.flavor!== "widevine"||v.Z?b.push({contentType:d}):r?b.push({contentType:d,robustness:"SW_SECURE_CRYPTO"}):(g.En&&g.Jy("windows nt")&&!v.V("html5_drm_enable_moho")||b.push({contentType:d,robustness:"HW_SECURE_ALL"}),r=d,v.Qx.Z.G&&d.includes("vp09")&&(r=d+"; experimental=allowed"),b.push({contentType:r,robustness:"SW_SECURE_DECODE"}),g.tt(v.Qx)==="MWEB"&&(O9()||KS())&&(v.G0("swcrypto",{}),b.push({contentType:d,robustness:"SW_SECURE_CRYPTO"})))}return[Y]}; Rbl=function(v){if(BY()&&(g.ch||Db))v.B.push(new LT("fairplay","com.apple.fps.1_0","",v.Qx.experiments));else{var O=BCJ(),Y=g.gS(v.U,function(S){var d=v.G[S],r=!1,b=!1,z;for(z in v.Y[d.flavor])O(z,S)&&(d.Y[z]=!0,r=r||z.indexOf("audio/")===0,b=b||z.indexOf("video/")===0);return r&&b}); Y&&v.B.push(v.G[Y]);v.U=[]}v.callback(v.B)}; BCJ=function(){var v=BY();if(v){var O=v.isTypeSupported;return function(S,d){return O(d,S)}}var Y=RA(); return Y&&(Y.addKey||Y.webkitAddKey)?function(S,d){return!!Y.canPlayType(S,d)}:function(){return!1}}; ZaF=function(v){this.experiments=v;this.Y=2048;this.B=0;this.Ug=(this.L=this.V("html5_streaming_resilience"))?.5:.25;var O=O===void 0?0:O;this.G=g.Vq(this.experiments,"html5_media_time_weight_prop")||O;this.tK=g.Vq(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.j=(this.Z=this.experiments.T0("html5_consider_end_stall"))&&Df;this.U=this.experiments.T0("html5_measure_max_progress_handling");this.X=this.V("html5_treat_requests_pre_elbow_as_metadata");this.C=this.V("html5_media_time_weight")|| !!this.G;this.V("html5_sabr_live_audio_early_return_fix")&&Df&&(this.Y=65536)}; XN3=function(v,O){this.Y=void 0;this.experimentIds=v?v.split(","):[];this.flags=Oq(O||"","&");v={};O=g.y(this.experimentIds);for(var Y=O.next();!Y.done;Y=O.next())v[Y.value]=!0;this.experiments=v}; g.Vq=function(v,O){v=v.flags[O];JSON.stringify(v);return Number(v)||0}; HY=function(v,O){return(v=v.flags[O])?v.toString():""}; wNQ=function(v){if(v=v.flags.html5_web_po_experiment_ids)if(v=v.replace(/\[ *(.*?) *\]/,"$1"))return v.split(",").map(Number);return[]}; IDw=function(v){if(v.Y)return v.Y;if(v.experimentIds.length<=1)return v.Y=v.experimentIds,v.Y;var O=[].concat(g.F(v.experimentIds)).map(function(S){return Number(S)}); O.sort();for(var Y=O.length-1;Y>0;--Y)O[Y]-=O[Y-1];v.Y=O.map(function(S){return S.toString()}); v.Y.unshift("v1");return v.Y}; n2E=function(v){return qKE.then(v)}; N9=function(v,O,Y){this.experiments=v;this.JK=O;this.N3=Y===void 0?!1:Y;this.j=!!g.il("cast.receiver.platform.canDisplayType");this.X={};this.tK=!1;this.B=new Map;this.L=!0;this.U=this.G=!1;this.Y=new Map;this.Ug=0;this.HW=this.experiments.T0("html5_disable_vp9_encrypted");this.Z=this.experiments.T0("html5_enable_encrypted_av1");v=g.il("cast.receiver.platform.getValue");this.C=!this.j&&v&&v("max-video-resolution-vpx")||null;Jml(this);this.G=!!(Gn()&&nS()>=21)}; CJ3=function(v,O,Y){Y=Y===void 0?1:Y;var S=O.itag;if(S==="0")return!0;var d=O.mimeType;if(O.z0==="1e"&&!v.Z)return"dav1enc";if(D6(O)&&v.tK)return"dav1";if(O.video&&(O.video.isHdr()||O.video.primaries==="bt2020")&&!(CA(v,y5.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(S==="338"&&!(g.En?Tf(53):g.Jt&&Tf(64)))return"dopus";var r=Y;r=r===void 0?1: r;Y={};O.video&&(O.video.width&&(Y[y5.WIDTH.name]=O.video.width),O.video.height&&(Y[y5.HEIGHT.name]=O.video.height),O.video.fps&&(Y[y5.FRAMERATE.name]=O.video.fps*r),O.video.Y&&(Y[y5.EOTF.name]=O.video.Y),O.b3&&(Y[y5.BITRATE.name]=O.b3*8*r),O.z0==="("&&(Y[y5.CRYPTOBLOCKFORMAT.name]="subsample"),O.video.projectionType==="EQUIRECTANGULAR"||O.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||O.video.projectionType==="MESH")&&(Y[y5.DECODETOTEXTURE.name]="true");O.audio&&O.audio.numChannels&& (Y[y5.CHANNELS.name]=O.audio.numChannels);v.G&&GB(O)&&(Y[y5.EXPERIMENTAL.name]="allowed");r=g.y(Object.keys(y5));for(var b=r.next();!b.done;b=r.next()){b=y5[b.value];var z;if(z=Y[b.name])if(z=!(b===y5.EOTF&&O.mimeType.indexOf("vp09.02")>0)){z=b;var M=O;z=!(v.experiments.T0("html5_ignore_h264_framerate_cap")&&z===y5.FRAMERATE&&xBw(M))}if(z)if(CA(v,b))if(v.C){if(v.C[b.name] 1080&&O.LP&&(d+="; hdcp=2.2");return S==="227"?"hqcenc":S!=="585"&&S!=="588"&&S!=="583"&&S!=="586"&&S!=="584"&&S!=="587"&&S!=="591"&&S!=="592"||v.experiments.T0("html5_enable_new_hvc_enc")?Gn()&&nS()>=21&&g.Jy("appletv5")&&(S==="410"||S==="845")?!0:v.isTypeSupported(d)?!0:"tpus":"newhvc"}; vD=function(){var v=KS()&&!Tf(29),O=g.Jy("google tv")&&g.Jy("chrome")&&!Tf(30);return v||O?!1:Ro7()}; K9F=function(v,O,Y){var S=480;O=g.y(O);for(var d=O.next();!d.done;d=O.next()){d=d.value;var r=d.video.qualityOrdinal;r<=1080&&r>S&&CJ3(v,d,Y)===!0&&(S=r)}return S}; g.OU=function(v,O){O=O===void 0?!1:O;return vD()&&v.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!O&&v.canPlayType(RA(),"application/x-mpegURL")?!0:!1}; GHn=function(v){P7E(function(){for(var O=g.y(Object.keys(y5)),Y=O.next();!Y.done;Y=O.next())CA(v,y5[Y.value])})}; CA=function(v,O){O.name in v.X||(v.X[O.name]=iaF(v,O));return v.X[O.name]}; iaF=function(v,O){if(v.C)return!!v.C[O.name];if(O===y5.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(O===y5.AV1_CODECS)return v.isTypeSupported("video/mp4; codecs="+O.valid)&&!v.isTypeSupported("video/mp4; codecs="+O.Md);if(O.video){var Y='video/webm; codecs="vp9"';v.isTypeSupported(Y)||(Y='video/mp4; codecs="avc1.4d401e"')}else Y='audio/webm; codecs="opus"', v.isTypeSupported(Y)||(Y='audio/mp4; codecs="mp4a.40.2"');return v.isTypeSupported(Y+"; "+O.name+"="+O.valid)&&!v.isTypeSupported(Y+"; "+O.name+"="+O.Md)}; msm=function(v,O){var Y=0;v.B.has(O)&&(Y=v.B.get(O).zi);v.B.set(O,{zi:Y+1,TJ:Math.pow(2,Y+1)});v.U=!0}; k$=function(v){for(var O=[],Y=g.y(v.Y.keys()),S=Y.next();!S.done;S=Y.next()){S=S.value;var d=v.Y.get(S);O.push(S+"_"+d.maxWidth+"_"+d.maxHeight)}return O.join(".")}; VXQ=function(v,O){for(var Y=new Map,S=g.y(v.Y.keys()),d=S.next();!d.done;d=S.next()){d=d.value;var r=d.split("_")[0];O.has(r)||Y.set(d,v.Y.get(d))}v.Y=Y}; f6w=function(v,O,Y){var S,d=((S=Y.video)==null?void 0:S.fps)||0;S=O+"_"+d;var r=!!Y.audio,b={itag:Y.itag,z0:O,hM:r};if(r)b.numChannels=Y.audio.numChannels;else{var z=Y.video;b.maxWidth=z==null?void 0:z.width;b.maxHeight=z==null?void 0:z.height;b.maxFramerate=d;CA(v,y5.BITRATE)&&(b.maxBitrateBps=Y.b3*8);b.Wc=z==null?void 0:z.isHdr()}z=v.Y.get(S);z?r||(Y=Math.max(z.maxWidth||0,z.maxHeight||0)>Math.max(b.maxWidth||0,b.maxHeight||0)?z:b,O={itag:Y.itag,z0:O,hM:r,maxWidth:Math.max(z.maxWidth||0,b.maxWidth|| 0),maxHeight:Math.max(z.maxHeight||0,b.maxHeight||0),maxFramerate:d,Wc:Y.Wc},CA(v,y5.BITRATE)&&(O.maxBitrateBps=Y.maxBitrateBps),v.Y.set(S,O)):v.Y.set(S,b)}; $uw=function(v,O,Y){var S,d=((S=Y.video)==null?void 0:S.fps)||0;S=O+"_"+d;var r=!!Y.audio,b=v.Y.get(S);a:{var z=v.Y.get(S),M=!!Y.audio;if(z){if(M){var V=!1;break a}var A;if(!M&&((V=Y.video)==null?0:V.height)&&z.maxHeight&&z.maxHeight>=((A=Y.video)==null?void 0:A.height)){V=!1;break a}}V=!0}V&&(V=Y.itag,O=b?b:{itag:V,z0:O,hM:r},r?O.numChannels=Y.audio.numChannels:(r=Y.video,O.maxWidth=r==null?void 0:r.width,O.maxHeight=r==null?void 0:r.height,O.maxFramerate=d,CA(v,y5.BITRATE)&&(O.maxBitrateBps=Y.b3* 8),O.Wc=r==null?void 0:r.isHdr()),v.Y.set(S,O))}; Jml=function(v){var O;(O=navigator.mediaCapabilities)!=null&&O.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(Y){Y.smooth&&Y.powerEfficient&&(v.Ug=2160)})}; Yk=function(){g.MU.call(this);this.items={}}; t_w=function(v,O,Y){this.encryptedClientKey=O;this.Z=Y;this.Y=new Uint8Array(v.buffer,0,16);this.G=new Uint8Array(v.buffer,16)}; Dsd=function(v){v.U||(v.U=new g.a9(v.Y));return v.U}; Sj=function(v){try{return jl(v)}catch(O){return null}}; Hal=function(v,O){if(!O&&v)try{O=JSON.parse(v)}catch(d){}if(O){v=O.clientKey?Sj(O.clientKey):null;var Y=O.encryptedClientKey?Sj(O.encryptedClientKey):null,S=O.keyExpiresInSeconds?Number(O.keyExpiresInSeconds)*1E3+(0,g.J)():null;v&&Y&&S&&(this.Y=new t_w(v,Y,S));O.onesieUstreamerConfig&&(this.onesieUstreamerConfig=Sj(O.onesieUstreamerConfig)||void 0);this.baseUrl=O.baseUrl}}; rw=function(){this.data=new Uint8Array(2048);this.pos=0;dw||(dw=eu("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; bq=function(v,O){v.add(O==null||isNaN(O)?0:O+1)}; oP=function(v){this.Y=this.U=0;this.alpha=Math.exp(Math.log(.5)/v)}; jj=function(v){this.U=v===void 0?15:v;this.values=new Float64Array(176);this.Y=new Float64Array(11);this.G=new Float64Array(16)}; WD=function(v,O,Y,S){Y=Y===void 0?.5:Y;S=S===void 0?0:S;this.resolution=O;this.U=0;this.G=!1;this.uQ=!0;this.Y=Math.round(v*this.resolution);this.values=Array(this.Y);for(v=0;v0)O=v.byterate,this.tK=!0;else{var S; Y=(((S=navigator.connection)==null?void 0:S.downlink)||0)*64*1024;Y>0&&(O=Y,this.tK=!0)}this.G.TG(this.policy.C,O);v.delay>0&&this.X.TG(1,Math.min(v.delay,2));v.stall>0&&this.L.TG(1,v.stall);v.init>0&&(this.g8=Math.min(v.init,this.g8));v.interruptions&&(this.B=this.B.concat(v.interruptions),this.B.length>16&&this.B.pop());this.Ug=(0,g.J)();this.policy.L>0&&(this.AK=new g.mX(this.f1,this.policy.L,this),g.w(this,this.AK),this.AK.start())}; sU=function(v,O,Y,S){v.G.TG(S===void 0?O:S,Y/O);v.C=(0,g.J)()}; v71=function(v){v.Z||(v.Z=(0,g.J)());v.policy.j&&(v.C=(0,g.J)())}; Oz3=function(v,O){if(v.Z){var Y=O-v.Z;if(Y<6E4){if(Y>1E3){var S=v.interruptions;S.push(Math.ceil(Y));S.sort(function(d,r){return r-d}); S.length>16&&S.pop()}v.JK+=Y}}v.Z=O}; gw=function(v,O,Y,S,d,r){r=r===void 0?!1:r;v.FO.TG(O,Y/O);v.C=(0,g.J)();d||v.j.TG(1,O-S);r||(v.Z=0);v.Ug>-1&&(0,g.J)()-v.Ug>3E4&&Ymi(v)}; M_=function(v,O,Y){O=Math.max(O,v.U.Y);v.L.TG(1,Y/O)}; Vg=function(v){v=v.X.In()+v.N3.In()||0;v=isNaN(v)?.5:v;return v=Math.min(v,5)}; A7=function(v,O,Y){isNaN(Y)||(v.HW+=Y);isNaN(O)||(v.XO+=O)}; fH=function(v){v=v.G.In();return v>0?v:1}; $k=function(v,O,Y){O=O===void 0?!1:O;Y=Y===void 0?1048576:Y;var S=fH(v);S=1/((v.L.In()||0)*v.policy.tK+1/S);var d=v.FO.In();d=d>0?d:1;var r=Math.max(S,d);v.policy.Z>0&&d=4E3}; dz3=function(v){this.experiments=v;this.Y=17;this.G=13E4;this.C=.5;this.B=this.U=!1;this.Ug=this.V("html5_use_histogram_for_bandwidth");this.Z=g.Vq(this.experiments,"html5_auxiliary_estimate_weight");this.tK=g.Vq(this.experiments,"html5_stall_factor")||1;this.L=g.Vq(this.experiments,"html5_check_for_idle_network_interval_ms");this.X=this.experiments.T0("html5_trigger_loader_when_idle_network");this.j=this.experiments.T0("html5_sabr_fetch_on_idle_network_preloaded_players")}; bzn=function(v,O){v=v===void 0?{}:v;O=O===void 0?{}:O;g.X.call(this);var Y=this;this.values=v;this.zc=O;this.U={};this.G=this.Y=0;this.B=new g.mX(function(){rOw(Y)},1E4); g.w(this,this.B)}; UU=function(v,O){o7w(v,O);return v.values[O]&&v.zc[O]?v.values[O]/Math.pow(2,v.Y/v.zc[O]):0}; o7w=function(v,O){v.values[O]||(O=JEc(),v.values=O.values||{},v.zc=O.halfLives||{},v.U=O.values?Object.assign({},O.values):{})}; rOw=function(v){var O=JEc();if(O.values){O=O.values;for(var Y={},S=g.y(Object.keys(v.values)),d=S.next();!d.done;d=S.next())d=d.value,O[d]&&v.U[d]&&(v.values[d]+=O[d]-v.U[d]),Y[d]=UU(v,d);v.U=Y}O=v.zc;Y={};Y.values=v.U;Y.halfLives=O;g.QD("yt-player-memory",Y,2592E3)}; X_=function(v,O,Y,S,d){g.X.call(this);this.webPlayerContextConfig=O;this.CT=S;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.N7=this.pj=this.FZ=this.M7=this.userDisplayName=this.userDisplayImage=this.D9="";this.Y={};this.Te={};this.controlsType="0";this.oI=NaN;this.n1=!1;this.iO=(0,g.J)();this.Cj=0;this.N6=this.TV=!1;this.g6=!0;this.preferGapless=this.NE=this.RD=this.G=this.w4=!1;this.TF=[];this.uO=!1;this.kq=0;v=v?g.NN(v):{};O&&O.csiPageType&&(this.csiPageType=O.csiPageType);O&&O.csiServiceName&& (this.csiServiceName=O.csiServiceName);O&&O.preferGapless&&(this.preferGapless=O.preferGapless);this.experiments=new XN3(O?O.serializedExperimentIds:v.fexp,O?O.serializedExperimentFlags:v.fflags);this.forcedExperiments=O?O.serializedForcedExperimentIds:oU("",v.forced_experiments)||void 0;this.cspNonce=(O==null?0:O.cspNonce)?O.cspNonce:oU("",v.csp_nonce);this.V("web_player_deprecated_uvr_killswitch");try{var r=document.location.toString()}catch(YQ){r=""}this.Dq=r;this.ancestorOrigins=(S=window.location.ancestorOrigins)? Array.from(S):[];this.B=dV(!1,O?O.isEmbed:v.is_embed);if(O&&O.device){if(S=O.device,S.androidOsExperience&&(this.Y.caoe=""+S.androidOsExperience),S.androidPlayServicesVersion&&(this.Y.capsv=""+S.androidPlayServicesVersion),S.brand&&(this.Y.cbrand=S.brand),S.browser&&(this.Y.cbr=S.browser),S.browserVersion&&(this.Y.cbrver=S.browserVersion),S.cobaltReleaseVehicle&&(this.Y.ccrv=""+S.cobaltReleaseVehicle),this.Y.c=S.interfaceName||"WEB",this.Y.cver=S.interfaceVersion||"html5",S.interfaceTheme&&(this.Y.ctheme= S.interfaceTheme),this.Y.cplayer=S.interfacePlayerType||"UNIPLAYER",S.model&&(this.Y.cmodel=S.model),S.network&&(this.Y.cnetwork=S.network),S.os&&(this.Y.cos=S.os),S.osVersion&&(this.Y.cosver=S.osVersion),S.platform&&(this.Y.cplatform=S.platform),r=HY(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),r==="all"||r==="once")S.chipset&&(this.Te.cchip=S.chipset),S.cobaltAppVersion&&(this.Te.ccappver=S.cobaltAppVersion),S.firmwareVersion&&(this.Te.cfrmver=S.firmwareVersion),S.deviceYear&&(this.Te.crqyear= S.deviceYear)}else this.Y.c=v.c||"web",this.Y.cver=v.cver||"html5",this.Y.cplayer="UNIPLAYER";this.loaderUrl=O?this.B||jQc(this)&&O.loaderUrl?O.loaderUrl||"":this.Dq:this.B||jQc(this)&&v.loaderUrl?oU("",v.loaderUrl):this.Dq;this.B&&g.Gc("yt.embedded_player.embed_url",this.loaderUrl);this.X=Nt(this.loaderUrl,Wrw);S=this.loaderUrl;var b=b===void 0?!1:b;this.Q8=Hv(Nt(S,zTd),S,b,"Trusted Ad Domain URL");this.PT=dV(!1,v.privembed);this.protocol=this.Dq.indexOf("http:")===0?"http":"https";this.SZ=o9d((O? O.customBaseYoutubeUrl:v.BASE_YT_URL)||"")||o9d(this.Dq)||this.protocol+"://www.youtube.com/";b=O?O.eventLabel:v.el;S="detailpage";b==="adunit"?S=this.B?"embedded":"detailpage":b==="embedded"||this.X?S=rV(S,b,sQg):b&&(S="embedded");this.N3=S;Ra7();b=null;S=O?O.playerStyle:v.ps;r=g.Vv(g7l,S);!S||r&&!this.X||(b=S);this.playerStyle=b;this.C=g.Vv(g7l,this.playerStyle);this.houseBrandUserStatus=O==null?void 0:O.houseBrandUserStatus;this.Ug=this.C&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.I9=!this.Ug;this.XO=dV(!1,v.disableplaybackui);this.disablePaidContentOverlay=dV(!1,O==null?void 0:O.disablePaidContentOverlay);this.disableSeek=dV(!1,O==null?void 0:O.disableSeek);this.enableSpeedOptions=(O==null?void 0:O.enableSpeedOptions)||(RA().defaultPlaybackRate?cD||g.vp||uq?g.Jt&&Tf("20")||g.En&&Tf("4")||g.CH&&Tf("11")||ty():!(g.CH&&!g.Jy("chrome")||cD||g.Jy("android")||g.Jy("silk")):!1);this.yP=dV(!1,v.enable_faster_speeds);var z;this.supportsVarispeedExtendedFeatures=(z=O==null?void 0: O.supportsVarispeedExtendedFeatures)!=null?z:!1;this.U=dV(this.playerStyle==="blazer",v.is_html5_mobile_device||O&&O.isMobileDevice);this.f1=NS()||O9();this.l4=this.V("mweb_allow_background_playback")?!1:this.U&&!this.C;this.FO=Ba();this.V8=g.yg;var M;this.Cy=!!(O==null?0:(M=O.embedsHostFlags)==null?0:M.optOutApiDeprecation);var V;this.cA=!!(O==null?0:(V=O.embedsHostFlags)==null?0:V.allowPfpImaIntegration);this.o9=this.V("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var A;O?O.hideInfo!== void 0&&(A=!O.hideInfo):A=v.showinfo;this.ZI=g.aP(this)&&!this.Cy||dV(!xk(this)&&!pH(this)&&!this.C,A);this.Nk=O?!!O.mobileIphoneSupportsInlinePlayback:dV(!1,v.playsinline);z=this.U&&Ta&&lq!=null&&lq>0&&lq<=2.3;M=O?O.useNativeControls:v.use_native_controls;this.L=g.aP(this)&&this.U;V=this.U&&!this.L;M=g.F_(this)||!z&&dV(V,M)?"3":"1";this.disableOrganicUi=!(O==null||!O.disableOrganicUi);V=O?O.controlsType:v.controls;this.controlsType=this.disableOrganicUi||V==="0"||V===0?"0":M;this.e6=this.U;this.color= rV("red",O?O.progressBarColor:v.color,Mhi);this.GI=this.controlsType==="3";this.R1=!this.B;this.hS=(M=!this.R1&&!pH(this)&&!this.Ug&&!this.C&&!xk(this))&&!this.GI&&this.controlsType==="1";this.aI=g.h7(this)&&M&&this.controlsType==="0"&&!this.hS&&!(O==null?0:O.embedsEnableEmc3ds);this.Wb=this.hp=z;this.qX=(this.controlsType==="3"||this.U||dV(!1,v.use_media_volume))&&!this.L;this.V_=Db&&!g.au(601)?!1:!0;this.q$=this.B||!1;this.yC=pH(this)?"":(this.loaderUrl||v.post_message_origin||"").substring(0,128); this.widgetReferrer=oU("",O?O.widgetReferrer:v.widget_referrer);var f;O?O.disableCastApi&&(f=!1):f=v.enablecastapi;f=!this.X||dV(!0,f);z=!0;O&&O.disableMdxCast&&(z=!1);this.y5=this.V("enable_cast_for_web_unplugged")&&g.RP(this)&&z||g.qB(this)&&z||f&&z&&this.controlsType==="1"&&!this.U&&(pH(this)||g.h7(this)||g.ej(this));this.Ap=!!window.document.pictureInPictureEnabled||LD();f=O?!!O.supportsAutoplayOverride:dV(!1,v.autoplayoverride);this.rf=!(this.U&&!g.aP(this))&&!g.Jy("nintendo wiiu")||f;this.oS= (O?!!O.enableMutedAutoplay:dV(!1,v.mutedautoplay))&&!1;f=(pH(this)||xk(this))&&this.playerStyle==="blazer";this.Iv=O?!!O.disableFullscreen:!dV(!0,v.fs);z=g.s9(g.EU(this))&&g.aP(this);this.Mj=!this.Iv&&(f||g.kw())&&!z;this.cI=this.V("html5_picture_in_picture_logging_onresize");var k;this.Zz=(k=g.Vq(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?k:.33;this.Zr=this.V("html5_picture_in_picture_blocking_onresize");this.d6=this.V("html5_picture_in_picture_blocking_ontimeupdate"); this.Ma=this.V("html5_picture_in_picture_blocking_document_fullscreen");this.JS=this.V("html5_picture_in_picture_blocking_standard_api");k=KS()&&Tf(58)&&!O9();f=G2||typeof MediaSource==="undefined";this.dW=this.V("uniplayer_block_pip")&&(k||f)||this.Zr||this.d6||this.JS;k=g.aP(this)&&!this.Cy;var U;O?O.disableRelatedVideos!==void 0&&(U=!O.disableRelatedVideos):U=v.rel;this.w2=k||dV(!this.C,U);this.LM=dV(!1,O?O.enableContentOwnerRelatedVideos:v.co_rel);this.j=O9()&&lq>0&&lq<=4.4?"_top":"_blank";this.Lo= g.ej(this);this.cV=dV(this.playerStyle==="blazer",O?O.enableCsiLogging:v.enablecsi);switch(this.playerStyle){case "blogger":U="bl";break;case "gmail":U="gm";break;case "gac":U="ga";break;case "ads-preview":U="ap";break;case "books":U="gb";break;case "docs":case "flix":U="gd";break;case "duo":U="gu";break;case "google-live":U="gl";break;case "google-one":U="go";break;case "play":U="gp";break;case "chat":U="hc";break;case "hangouts-meet":U="hm";break;case "photos-edu":case "picasaweb":U="pw";break; default:U="yt"}this.tK=U;this.HW=oU("",O?O.authorizedUserIndex:v.authuser);this.rR=g.aP(this)&&(this.PT||!fOQ()||this.f1);var c;O?O.disableWatchLater!==void 0&&(c=!O.disableWatchLater):c=v.showwatchlater;this.Td=((U=!this.rR)||!!this.HW&&U)&&dV(!this.Ug,this.X?c:void 0);this.q8=O?O.isMobileDevice||!!O.disableKeyboardControls:dV(!1,v.disablekb);this.loop=dV(!1,v.loop);this.pageId=oU("",O?O.initialDelegatedSessionId:v.pageid);this.FC=dV(!0,v.canplaylive);this.yx=dV(!1,v.livemonitor);this.disableSharing= dV(this.C,O?O.disableSharing:v.ss);(c=O&&this.V("fill_video_container_size_override_from_wpcc")?O.videoContainerOverride:v.video_container_override)?(U=c.split("x"),U.length!==2?c=null:(c=Number(U[0]),U=Number(U[1]),c=isNaN(c)||isNaN(U)||c*U<=0?null:new g.hc(c,U))):c=null;this.Fk=c;this.mute=O?!!O.startMuted:dV(!1,v.mute);this.storeUserVolume=!this.mute&&dV(this.controlsType!=="0",O?O.storeUserVolume:v.store_user_volume);c=O?O.annotationsLoadPolicy:v.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:rV(void 0,c,Qg);this.captionsLanguagePreference=O?O.captionsLanguagePreference||"":oU("",v.cc_lang_pref);c=rV(2,O?O.captionsLanguageLoadPolicy:v.cc_load_policy,Qg);this.controlsType==="3"&&c===2&&(c=3);this.B7=c;this.N2=O?O.hl||"en_US":oU("en_US",v.hl);this.region=O?O.contentRegion||"US":oU("US",v.cr);this.hostLanguage=O?O.hostLanguage||"en":oU("en",v.host_language);this.Pa=!this.PT&&Math.random()=480;this.schedule=new za(f,new ZaF(this.experiments),d);g.w(this,this.schedule);var a;this.enableSafetyMode=(a=O==null?void 0:O.initialEnableSafetyMode)!=null? a:dV(!1,v.enable_safety_mode);d=this.XO?!1:pH(this)&&this.playerStyle!=="blazer";var x;O?O.disableAutonav!=null&&(x=!O.disableAutonav):x=v.allow_autonav;this.nP=dV(d,!this.Ug&&x);this.sendVisitorIdHeader=O?!!O.sendVisitorIdHeader:dV(!1,v.send_visitor_id_header);var T;this.playerStyle==="docs"&&(O?T=O.disableNativeContextMenu:T=v.disable_native_context_menu);this.disableNativeContextMenu=dV(!1,T);this.vA=Tb(this)&&this.V("enable_skip_intro_button");this.embedConfig=oU("",O?O.serializedEmbedConfig: v.embed_config);this.JK=z4(v,g.aP(this));this.G=this.JK==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(O==null||!O.embedsErrorLinks);this.ME=dV(!1,v.full_window);var l;this.xg=!((l=this.webPlayerContextConfig)==null?0:l.chromeless);var Q;this.livingRoomAppMode=rV("LIVING_ROOM_APP_MODE_UNSPECIFIED",v.living_room_app_mode||(O==null?void 0:(Q=O.device)==null?void 0:Q.livingRoomAppMode),fp3);var L;x=bK(NaN,O==null?void 0:(L=O.device)==null?void 0:L.deviceYear);isNaN(x)||(this.deviceYear=x);this.transparentBackground= O?!!O.transparentBackground:dV(!1,v.transparent_background);this.showMiniplayerButton=O?!!O.showMiniplayerButton:dV(!1,v.show_miniplayer_button);var I;g.aP(this)&&!(O==null?0:(I=O.embedsHostFlags)==null?0:I.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=O?!!O.externalFullscreen:dV(!1,v.external_fullscreen);this.showMiniplayerUiWhenMinimized=O?!!O.showMiniplayerUiWhenMinimized:dV(!1,v.use_miniplayer_ui);var t;this.g6=(t=v.show_loop_video_toggle)!=null?t:!0;this.Nw=Math.random()< 1E-4;this.H7=v.onesie_hot_config||(O==null?0:O.onesieHotConfig)?new Hal(v.onesie_hot_config,O==null?void 0:O.onesieHotConfig):void 0;this.isTectonic=O?!!O.isTectonic:!!v.isTectonic;this.playerCanaryState=Y;this.playerCanaryStage=O==null?void 0:O.canaryStage;this.lO=new bzn;g.w(this,this.lO);this.datasyncId=(O==null?void 0:O.datasyncId)||g.Gq("DATASYNC_ID");this.e_=g.Gq("LOGGED_IN",!1);this.dE=(O==null?void 0:O.allowWoffleManagement)||!1;this.Qc=Infinity;this.GF=NaN;this.livingRoomPoTokenId=O==null? void 0:O.livingRoomPoTokenId;this.V("html5_high_res_logging_always")?this.RD=!0:this.RD=Math.random()*100=0&&v<$zQ.length?$zQ[v]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"}; BD=function(v,O,Y){Y=Y===void 0?!1:Y;v.pj=oU(v.pj,O.video_id);v.FZ=oU(v.FZ,O.eventid);v.FZ&&(C8=v.FZ);for(var S=[],d=g.y(Object.keys(koF)),r=d.next();!r.done;r=d.next()){r=koF[r.value];var b=O[r];b!=null&&(b!==v.Y[r]&&S.push(r),v.Y[r]=b)}!Y&&S.length>0&&v.Nw&&(S.sort(),g.Br(new g.iK("Player client parameters changed after startup",S)));v.userAge=bK(v.userAge,O.user_age);v.D9=oU(v.D9,O.user_display_email);v.userDisplayImage=oU(v.userDisplayImage,O.user_display_image);g.OF(v.userDisplayImage)||(v.userDisplayImage= "");v.userDisplayName=oU(v.userDisplayName,O.user_display_name);v.M7=oU(v.M7,O.user_gender);v.csiPageType=oU(v.csiPageType,O.csi_page_type);v.csiServiceName=oU(v.csiServiceName,O.csi_service_name);v.cV=dV(v.cV,O.enablecsi);v.pageId=oU(v.pageId,O.pageid);if(Y=O.enabled_engage_types)v.enabledEngageTypes=new Set(Y.split(","));O.living_room_session_po_token&&(v.eA=O.living_room_session_po_token.toString())}; ww=function(v,O){return!v.C&&KS()&&Tf(55)&&v.controlsType==="3"&&!O}; g.IP=function(v){v=LH(v.SZ);return v==="www.youtube-nocookie.com"?"www.youtube.com":v}; q_=function(v,O,Y){return v.protocol+"://i1.ytimg.com/vi/"+O+"/"+(Y||"hqdefault.jpg")}; nH=function(v){return pH(v)&&!g.RP(v)}; g.F_=function(v){return v.V("html5_local_playsinline")?Db&&!g.au(602)&&!("playsInline"in RA()):Db&&!v.Nk||g.Jy("nintendo wiiu")?!0:!1}; g.tt=function(v){return v.Y.c}; g.lx=function(v){return/^TVHTML5/.test(g.tt(v))}; g.J7=function(v){return g.tt(v)==="TVHTML5"}; jQc=function(v){return g.tt(v)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; AOg=function(v){return v.Y.cmodel==="CHROMECAST ULTRA/STEAK"||v.Y.cmodel==="CHROMECAST/STEAK"}; g.KH=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; Tb=function(v){return/web/i.test(g.tt(v))}; g.PD=function(v){return g.tt(v).toUpperCase()==="WEB"}; ZS=function(v){return g.tt(v)==="WEB_KIDS"}; g.RP=function(v){return g.tt(v)==="WEB_UNPLUGGED"}; Ga=function(v){return g.tt(v)==="TVHTML5_UNPLUGGED"}; g.p0=function(v){return g.RP(v)||g.tt(v)==="TV_UNPLUGGED_CAST"||Ga(v)}; g.qB=function(v){return g.tt(v)==="WEB_REMIX"}; g.iq=function(v){return g.tt(v)==="WEB_EMBEDDED_PLAYER"}; g.t7=function(v){return(v.deviceIsAudioOnly||!g.En||G2||v.controlsType==="3"?!1:g.vp?v.B&&g.au(51):!0)||(v.deviceIsAudioOnly||!g.Jt||G2||v.controlsType==="3"?!1:g.vp?v.B&&g.au(48):g.au(38))||(v.deviceIsAudioOnly||!g.CH||G2||v.controlsType==="3"?!1:g.vp?v.B&&g.au(37):g.au(27))||!v.deviceIsAudioOnly&&g.mM&&!uHg()&&g.au(11)||!v.deviceIsAudioOnly&&g.ch&&g.au("604.4")}; Uzl=function(v){if(g.h7(v)&&Ta)return!1;if(g.Jt){if(!g.au(47)||!g.au(52)&&g.au(51))return!1}else if(g.ch)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; uei=function(v,O){return v.enabledEngageTypes.has(O.toString())||cOE.includes(O)}; pH=function(v){return v.N3==="detailpage"}; g.h7=function(v){return v.N3==="embedded"}; DS=function(v){return v.N3==="leanback"}; xk=function(v){return v.N3==="adunit"||v.playerStyle==="gvn"}; g.ej=function(v){return v.N3==="profilepage"}; g.aP=function(v){return v.B&&g.h7(v)&&!xk(v)&&!v.C}; HD=function(v){if(!v.userDisplayImage)return"";var O=v.userDisplayImage.split("/");if(O.length===5)return v=O[O.length-1].split("="),v[1]="s20-c",O[O.length-1]=v.join("="),O.join("/");if(O.length===8)return O.splice(7,0,"s20-c"),O.join("/");if(O.length===9)return O[7]+="-s20-c",O.join("/");g.Br(new g.iK("Profile image not a FIFE URL.",v.userDisplayImage));return v.userDisplayImage}; g.N_=function(v){var O=g.IP(v);Czm.includes(O)&&(O="www.youtube.com");return v.protocol+"://"+O}; g.vO=function(v,O){O=O===void 0?"":O;if(v.CT){var Y=new OK,S,d=v.CT();d.signedOut?S="":d.token?S=d.token:d.pendingResult.then(function(r){d.signedOut?Y.resolve(""):Y.resolve(r.token)},function(r){g.Br(new g.iK("b189348328_oauth_callback_failed",{error:r})); Y.resolve(O)}); return S!==void 0?Eq(S):new RZ(Y)}return Eq(O)}; O3=function(v,O){O=O===void 0?"":O;return v.e_?gQ(!0):$i(fs(gQ(g.vO(v,O)),function(Y){return gQ(!!Y)}),function(){return gQ(!1)})}; LH=function(v){var O=g.c4(v);return(v=Number(g.Uz(v)[4]||null)||null)?O+":"+v:O}; Yf=function(v,O){O=O===void 0?!1:O;var Y=KD[v],S=yOm[Y],d=apl[v];if(!d||!S)return null;O=new qu(O?d.height:d.width,O?d.width:d.height,d.fps);S=$A(S,O,Y);return new Pa(v,S,{video:O,b3:d.bitrate/8})}; pqn=function(v){var O=yOm[KD[v]],Y=xzF[v];return Y&&O?new Pa(v,O,{audio:new XW(Y.audioSampleRate,Y.numChannels)}):null}; SJ=function(v){this.Y=v}; d2=function(v,O,Y,S){if(Y)return ee();Y={};var d=RA();O=g.y(O);for(var r=O.next();!r.done;r=O.next())if(r=r.value,v.canPlayType(d,r.getInfo().mimeType)||S){var b=r.Y.video.quality;if(!Y[b]||Y[b].getInfo().BY())Y[b]=r}v=[];Y.auto&&v.push(Y.auto);S=g.y(nD);for(d=S.next();!d.done;d=S.next())(d=Y[d.value])&&v.push(d);return v.length?Eq(v):ee()}; T6J=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 O;this.U=((O=v.audioItag)==null?void 0:O.split(","))||[];this.kD=v.kD;this.LP=v.LP||"";this.Dg=v.Dg;this.audioChannels=v.audioChannels;this.Y=""}; lpQ=function(v,O,Y,S){O=O===void 0?!1:O;Y=Y===void 0?!0:Y;S=S===void 0?{}:S;var d={};v=g.y(v);for(var r=v.next();!r.done;r=v.next()){r=r.value;if(O&&MediaSource&&MediaSource.isTypeSupported){var b=r.type;r.audio_channels&&(b=b+"; channels="+r.audio_channels);if(!MediaSource.isTypeSupported(b)){S[r.itag]="tpus";continue}}if(Y||!r.drm_families||r.eotf!=="smpte2084"&&r.eotf!=="arib-std-b67"){b=void 0;var z={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},M=r.type.match(/codecs="([^"]*)"/); M=M?M[1]:"";r.audio_track_id&&(b=new g.sL(r.name,r.audio_track_id,!!r.is_default));var V=r.eotf;r=new T6J({itag:r.itag,url:r.url,codecs:M,width:Number(r.width),height:Number(r.height),fps:Number(r.fps),bitrate:Number(r.bitrate),audioItag:r.audio_itag,kD:V?z[V]:void 0,LP:r.drm_families,Dg:b,audioChannels:Number(r.audio_channels)});d[r.itag]=d[r.itag]||[];d[r.itag].push(r)}else S[r.itag]="enchdr"}return d}; Frg=function(v,O,Y,S,d){this.G=v;this.U=O;this.Z=Y;this.cpn=S;this.C=d;this.B=0;this.Y=""}; hT7=function(v,O){v.G.some(function(Y){var S;return((S=Y.Dg)==null?void 0:S.getId())===O}); v.Y=O}; r2=function(v,O,Y){v.cpn&&(O=g.Te(O,{cpn:v.cpn}));Y&&(O=g.Te(O,{paired:Y}));return O}; RTw=function(v,O){v=v.itag.toString();O!==null&&(v+=O.itag.toString());return v}; eTw=function(v){for(var O=[],Y=[],S=g.y(v.U),d=S.next();!d.done;d=S.next())d=d.value,d.bitrate<=v.B?O.push(d):Y.push(d);O.sort(function(r,b){return b.bitrate-r.bitrate}); Y.sort(function(r,b){return r.bitrate-b.bitrate}); v.U=O.concat(Y)}; bt=function(v,O,Y){this.Y=v;this.U=O;this.expiration=Y;this.m9=null}; E7i=function(v,O){if(!(G2||mn()||Gn()))return null;v=lpQ(O,v.V("html5_filter_fmp4_in_hls"));if(!v)return null;O=[];for(var Y={},S=g.y(Object.keys(v)),d=S.next();!d.done;d=S.next()){d=g.y(v[d.value]);for(var r=d.next();!r.done;r=d.next()){var b=r.value;b.Dg&&(r=b.Dg.getId(),Y[r]||(b=new g.di(r,b.Dg),Y[r]=b,O.push(b)))}}return O.length>0?O:null}; XqQ=function(v,O,Y,S,d,r,b){if(!(G2||mn()||Gn()))return ee();var z={},M=QQ3(Y),V=lpQ(Y,v.V("html5_filter_fmp4_in_hls"),v.Z.L,z);if(!V)return b({noplst:1}),ee();LrJ(V);Y={};var A=(Y.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",Y),f;Y=[];var k=[],U=[],c=null,a="";S=S&&S.match(/hls_timedtext_playlist/)?new T6J({itag:"0",url:S,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Dg:new g.sL("English","en",!1)}):null;for(var x=g.y(Object.keys(V)),T=x.next();!T.done;T=x.next())if(T=T.value,!v.V("html5_disable_drm_hfr_1080")|| T!=="383"&&T!=="373"){T=g.y(V[T]);for(var l=T.next();!l.done;l=T.next())if(l=l.value,l.width){for(var Q=g.y(l.U),L=Q.next();!L.done;L=Q.next())if(L=L.value,V[L]){l.Y=L;break}l.Y||(l.Y=B6w(V,l));if(Q=V[l.Y])if(Y.push(l),l.LP==="fairplay"&&(f=A),L="",l.kD==="PQ"?L="smpte2084":l.kD==="HLG"&&(L="arib-std-b67"),L&&(a=L),U.push(Zz$(Q,[l],S,r,l.itag,l.width,l.height,l.fps,M,void 0,void 0,f,L)),!c||l.width*l.height*l.fps>c.width*c.height*c.fps)c=l}else k.push(l)}else z[T]="disdrmhfr";U.reduce(function(I, t){return t.getInfo().isEncrypted()&&I},!0)&&(f=A); d=Math.max(d,0);A=c||{};V=A.fps===void 0?0:A.fps;c=A.width===void 0?0:A.width;A=A.height===void 0?0:A.height;x=v.V("html5_native_audio_track_switching");U.push(Zz$(k,Y,S,r,"93",c,A,V,M,"auto",d,f,a,x));Object.entries(z).length&&b(z);return d2(v.Z,U,ww(v,O),!1)}; Zz$=function(v,O,Y,S,d,r,b,z,M,V,A,f,k,U){for(var c=0,a="",x=g.y(v),T=x.next();!T.done;T=x.next())T=T.value,a||(a=T.itag),T.audioChannels&&T.audioChannels>c&&(c=T.audioChannels,a=T.itag);d=new Pa(d,"application/x-mpegURL",{audio:new XW(0,c),video:new qu(r,b,z,null,void 0,V,void 0,k),LP:f,zX:a});v=new Frg(v,O,Y?[Y]:[],S,!!U);v.B=A?A:1369843;return new bt(d,v,M)}; QQ3=function(v){v=g.y(v);for(var O=v.next();!O.done;O=v.next())if(O=O.value,O.url&&(O=O.url.split("expire/"),!(O.length<=1)))return+O[1].split("/")[0];return NaN}; B6w=function(v,O){for(var Y=g.y(Object.keys(v)),S=Y.next();!S.done;S=Y.next()){S=S.value;var d=v[S][0];if(!d.width&&d.LP===O.LP&&!d.audioChannels)return S}return""}; LrJ=function(v){for(var O=new Set,Y=g.y(Object.values(v)),S=Y.next();!S.done;S=Y.next())S=S.value,S.length&&(S=S[0],S.height&&S.codecs.startsWith("vp09")&&O.add(S.height));Y=[];if(O.size){S=g.y(Object.keys(v));for(var d=S.next();!d.done;d=S.next())if(d=d.value,v[d].length){var r=v[d][0];r.height&&O.has(r.height)&&!r.codecs.startsWith("vp09")&&Y.push(d)}}O=g.y(Y);for(Y=O.next();!Y.done;Y=O.next())delete v[Y.value]}; oJ=function(v,O){this.Y=v;this.U=O}; wql=function(v,O,Y,S){var d=[];Y=g.y(Y);for(var r=Y.next();!r.done;r=Y.next()){var b=r.value;if(b.url){r=new g.aa(b.url,!0);if(b.s){var z=r,M=b.sp,V=wvw(decodeURIComponent(b.s));z[W[14]](M,encodeURIComponent(V))}z=g.y(Object.keys(S));for(M=z.next();!M.done;M=z.next())M=M.value,r.set(M,S[M]);b=bs(b.type,b.quality,b.itag,b.width,b.height);d.push(new oJ(b,r))}}return d2(v.Z,d,ww(v,O),!1)}; jJ=function(v,O){this.Y=v;this.U=O}; Ipi=function(v,O,Y){var S=[];Y=g.y(Y);for(var d=Y.next();!d.done;d=Y.next())if((d=d.value)&&d.url){var r=bs(d.type,"medium","0");S.push(new jJ(r,d.url))}return d2(v.Z,S,ww(v,O),!1)}; qmd=function(v,O){var Y=[],S=bs(O.type,"auto",O.itag);Y.push(new jJ(S,O.url));return d2(v.Z,Y,!1,!0)}; JOE=function(v){return v&&n77[v]?n77[v]:null}; Krc=function(v){switch(v){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return v;default:return"sabr.config"}}; Pz7=function(v){if(v=v.commonConfig)this.url=v.url,this.urlQueryOverride=v.urlQueryOverride,v.ustreamerConfig&&(this.aX=Sj(v.ustreamerConfig)||void 0)}; Gog=function(v,O){var Y;if(O=O==null?void 0:(Y=O.watchEndpointSupportedOnesieConfig)==null?void 0:Y.html5PlaybackOnesieConfig)v.Y3=new Pz7(O)}; g.WO=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.Y=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.s3=function(v){var O={languageCode:v.languageCode,languageName:v.languageName,displayName:g.zj(v),kind:v.kind,name:v.name,id:v.id,is_servable:v.Y,is_default:v.isDefault,is_translateable:v.isTranslateable,vss_id:v.vssId};v.xtags&&(O.xtags=v.xtags);v.captionId&&(O.captionId=v.captionId);v.translationLanguage&&(O.translationLanguage=v.translationLanguage);return O}; g.g2=function(v){return v.translationLanguage?v.translationLanguage.languageCode:v.languageCode}; g.iz7=function(v){var O=v.vssId;v.translationLanguage&&O&&(O="t"+O+"."+g.g2(v));return O}; g.zj=function(v){var O=[];if(v.displayName)O.push(v.displayName);else{var Y=v.languageName||"";O.push(Y);v.kind==="asr"&&Y.indexOf("(")===-1&&O.push(" (Automatic Captions)");v.name&&O.push(" - "+v.name)}v.translationLanguage&&O.push(" >> "+v.translationLanguage.languageName);return O.join("")}; Hz3=function(v,O,Y,S){v||(v=O&&mzc.hasOwnProperty(O)&&thg.hasOwnProperty(O)?thg[O]+"_"+mzc[O]:void 0);O=v;if(!O)return null;v=O.match(DzJ);if(!v||v.length!==5)return null;if(v=O.match(DzJ)){var d=Number(v[3]),r=[7,8,10,5,6];v=!(Number(v[1])===1&&d===8)&&r.indexOf(d)>=0}else v=!1;return Y||S||v?O:null}; MC=function(v,O){for(var Y={},S=g.y(Object.keys(N6E)),d=S.next();!d.done;d=S.next()){d=d.value;var r=O?O+d:d;r=v[r+"_webp"]||v[r];g.OF(r)&&(Y[N6E[d]]=r)}return Y}; VK=function(v){var O={};if(!v||!v.thumbnails)return O;v=v.thumbnails.filter(function(z){return!!z.url}); v.sort(function(z,M){return z.width-M.width||z.height-M.height}); for(var Y=g.y(Object.keys(vNn)),S=Y.next();!S.done;S=Y.next()){var d=Number(S.value);S=vNn[d];for(var r=g.y(v),b=r.next();!b.done;b=r.next())if(b=b.value,b.width>=d){d=OGl(b.url);g.OF(d)&&(O[S]=d);break}}(v=v.pop())&&v.width>=1280&&(v=OGl(v.url),g.OF(v)&&(O["maxresdefault.jpg"]=v));return O}; OGl=function(v){return v.startsWith("//")?"https:"+v:v}; Aw=function(v){return v&&v.baseUrl||""}; fm=function(v){v=g.rG(v);for(var O=g.y(Object.keys(v)),Y=O.next();!Y.done;Y=O.next()){Y=Y.value;var S=v[Y];v[Y]=Array.isArray(S)?S[0]:S}return v}; YB$=function(v,O){v.botguardData=O.playerAttestationRenderer.botguardData;O=O.playerAttestationRenderer.challenge;O!=null&&(v.Dz=O)}; rXi=function(v,O){O=g.y(O);for(var Y=O.next();!Y.done;Y=O.next()){Y=Y.value;var S=Y.interstitials.map(function(b){var z=g.q(b,SBQ);if(z)return{is_yto_interstitial:!0,raw_player_response:z};if(b=g.q(b,dcn))return Object.assign({is_yto_interstitial:!0},Se(b))}); S=g.y(S);for(var d=S.next();!d.done;d=S.next())switch(d=d.value,Y.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":v.interstitials=v.interstitials.concat({time:0,playerVars:d,fv:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":v.interstitials=v.interstitials.concat({time:0x7ffffffffffff,playerVars:d,fv:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var r=Number(Y.podConfig.timeToInsertAtMillis);v.interstitials=v.interstitials.concat({time:r,playerVars:d, fv:r===0?5:7})}}}; bGi=function(v,O){if(O=O.find(function(Y){return!(!Y||!Y.tooltipRenderer)}))v.tooltipRenderer=O.tooltipRenderer}; oN$=function(v,O){O.subscribeCommand&&(v.subscribeCommand=O.subscribeCommand);O.unsubscribeCommand&&(v.unsubscribeCommand=O.unsubscribeCommand);O.addToWatchLaterCommand&&(v.addToWatchLaterCommand=O.addToWatchLaterCommand);O.removeFromWatchLaterCommand&&(v.removeFromWatchLaterCommand=O.removeFromWatchLaterCommand);O.getSharePanelCommand&&(v.getSharePanelCommand=O.getSharePanelCommand)}; jRm=function(v,O){O!=null?(v.HA=O,v.KE=!0):(v.HA="",v.KE=!1)}; $f=function(v,O){this.type=v||"";this.id=O||""}; g.kf=function(v){return new $f(v.substring(0,2),v.substring(2))}; g.U3=function(v,O){this.Qx=v;this.author="";this.SW=null;this.playlistLength=0;this.Y=this.sessionData=null;this.X={};this.title="";if(O){this.author=O.author||O.playlist_author||"";this.title=O.playlist_title||"";if(v=O.session_data)this.sessionData=Oq(v,"&");var Y;this.Y=((Y=O.thumbnail_ids)==null?void 0:Y.split(",")[0])||null;this.X=MC(O,"playlist_");this.videoId=O.video_id||void 0;if(Y=O.list)switch(O.listType){case "user_uploads":this.playlistId=(new $f("UU","PLAYER_"+Y)).toString();break;default:if(v= O.playlist_length)this.playlistLength=Number(v)||0;this.playlistId=g.kf(Y).toString();if(O=O.video)this.videoId=(O[0]||null).video_id||void 0}else O.playlist&&(this.playlistLength=O.playlist.toString().split(",").length)}}; g.cO=function(v,O){this.Qx=v;this.Zx=this.author="";this.SW=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Ch=this.lengthText="";this.sessionData=null;this.X={};this.title="";if(O){this.ariaLabel=O.aria_label||void 0;this.author=O.author||"";this.Zx=O.Zx||"";if(v=O.endscreen_autoplay_session_data)this.SW=Oq(v,"&");this.SJ=O.SJ;this.isLivePlayback=O.live_playback==="1";this.isUpcoming=!!O.isUpcoming;if(v=O.length_seconds)this.lengthSeconds=typeof v==="string"?Number(v):v;this.lengthText= O.lengthText||"";this.Ch=O.Ch||"";this.publishedTimeText=O.publishedTimeText||void 0;if(v=O.session_data)this.sessionData=Oq(v,"&");this.shortViewCount=O.short_view_count_text||void 0;this.X=MC(O);this.title=O.title||"";this.videoId=O.docid||O.video_id||O.videoId||O.id||void 0;this.watchUrl=O.watchUrl||void 0}}; WJ7=function(v){var O,Y,S=(O=v.getWatchNextResponse())==null?void 0:(Y=O.contents)==null?void 0:Y.twoColumnWatchNextResults,d,r,b,z,M;v=(d=v.getWatchNextResponse())==null?void 0:(r=d.playerOverlays)==null?void 0:(b=r.playerOverlayRenderer)==null?void 0:(z=b.endScreen)==null?void 0:(M=z.watchNextEndScreenRenderer)==null?void 0:M.results;if(!v){var V,A;v=S==null?void 0:(V=S.endScreen)==null?void 0:(A=V.endScreen)==null?void 0:A.results}return v}; g.Cm=function(v){var O,Y,S;v=g.q((O=v.getWatchNextResponse())==null?void 0:(Y=O.playerOverlays)==null?void 0:(S=Y.playerOverlayRenderer)==null?void 0:S.decoratedPlayerBarRenderer,ut);return g.q(v==null?void 0:v.playerBar,zrw)}; sR1=function(v){this.Y=v.playback_progress_0s_url;this.G=v.playback_progress_2s_url;this.U=v.playback_progress_10s_url}; gNF=function(){if(yK===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(O){}a:{try{var v=!!self.localStorage}catch(O){v=!1}if(v&&(v=g.XG(g.mF()+"::yt-player"))){yK=new J1(v);break a}yK=void 0}}return yK}; g.aJ=function(){var v=gNF();if(!v)return{};try{var O=v.get("yt-player-lv");return JSON.parse(O||"{}")}catch(Y){return{}}}; g.Mqg=function(v){var O=gNF();O&&(v=JSON.stringify(v),O.set("yt-player-lv",v))}; g.xf=function(v){return g.aJ()[v]||0}; g.pm=function(v,O){var Y=g.aJ();O!==Y[v]&&(O!==0?Y[v]=O:delete Y[v],g.Mqg(Y))}; g.Tj=function(v){return g.B(function(O){return O.return(g.Jk(Vqg(),v))})}; Fu=function(v,O,Y,S,d,r,b,z){var M,V,A,f,k,U;return g.B(function(c){switch(c.U){case 1:return M=g.xf(v),M===4?c.return(4):g.E(c,g.Hh(),2);case 2:V=c.Y;if(!V)throw g.CQ("wiac");if(!z||b===void 0){c.d8(3);break}return g.E(c,AXl(z,b),4);case 4:b=c.Y;case 3:return A=Y.lastModified||"0",g.E(c,g.Tj(V),5);case 5:return f=c.Y,g.cm(c,6),lt++,g.E(c,g.Rz(f,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",vT:!0},function(a){if(r!==void 0&&b!==void 0){var x=""+v+"|"+O.id+"|"+A+"|"+String(r).padStart(10, "0");x=g.eN(a.objectStore("media"),b,x)}else x=g.az.resolve(void 0);var T=fF$(v,O.EM()),l=fF$(v,!O.EM()),Q={fmts:$cl(S),format:Y||{}};T=g.eN(a.objectStore("index"),Q,T);var L=S.downloadedEndTime===-1;Q=L?a.objectStore("index").get(l):g.az.resolve(void 0);var I={fmts:"music",format:{}};a=L&&d&&!O.EM()?g.eN(a.objectStore("index"),I,l):g.az.resolve(void 0);return g.az.all([a,Q,x,T]).then(function(t){t=g.y(t);t.next();t=t.next().value;lt--;var P=g.xf(v);if(P!==4&&L&&d||t!==void 0&&g.kE3(t.fmts))P=1,g.pm(v, P);return P})}),8); case 8:return c.return(c.Y);case 6:k=g.Tc(c);lt--;U=g.xf(v);if(U===4)return c.return(U);g.pm(v,4);throw k;}})}; g.Uc3=function(v){var O,Y;return g.B(function(S){if(S.U==1)return g.E(S,g.Hh(),2);if(S.U!=3){O=S.Y;if(!O)throw g.CQ("ri");return g.E(S,g.Tj(O),3)}Y=S.Y;return S.return(g.Rz(Y,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(d){var r=IDBKeyRange.bound(v+"|",v+"~");return d.objectStore("index").getAll(r).then(function(b){return b.map(function(z){return z?z.format:{}})})}))})}; uK3=function(v,O,Y,S,d){var r,b,z;return g.B(function(M){if(M.U==1)return g.E(M,g.Hh(),2);if(M.U!=3){r=M.Y;if(!r)throw g.CQ("rc");return g.E(M,g.Tj(r),3)}b=M.Y;z=g.Rz(b,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(V){var A=""+v+"|"+O+"|"+Y+"|"+String(S).padStart(10,"0");return V.objectStore("media").get(A)}); return d?M.return(z.then(function(V){if(V===void 0)throw Error("No data from indexDb");return cXi(d,V)}).catch(function(V){throw new g.iK("Error while reading chunk: "+V.name+", "+V.message); })):M.return(z)})}; g.kE3=function(v){return v?v==="music"?!0:v.includes("dlt=-1")||!v.includes("dlt="):!1}; fF$=function(v,O){return""+v+"|"+(O?"v":"a")}; $cl=function(v){var O={};return Yc((O.dlt=v.downloadedEndTime.toString(),O.mket=v.maxKnownEndTime.toString(),O.avbr=v.averageByteRate.toString(),O))}; yXg=function(v){var O={},Y={};v=g.y(v);for(var S=v.next();!S.done;S=v.next()){var d=S.value,r=d.split("|");d.match(g.Crc)?(S=Number(r.pop()),isNaN(S)?Y[d]="?":(r=r.join("|"),(d=O[r])?(r=d[d.length-1],S===r.end+1?r.end=S:d.push({start:S,end:S})):O[r]=[{start:S,end:S}])):Y[d]="?"}v=g.y(Object.keys(O));for(S=v.next();!S.done;S=v.next())S=S.value,Y[S]=O[S].map(function(b){return b.start+"-"+b.end}).join(","); return Y}; hw=function(v){g.MU.call(this);this.Y=null;this.G=new qM;this.Y=null;this.C=new Set;this.crossOrigin=v||""}; aFc=function(v,O,Y){for(Y=RJ(v,Y);Y>=0;){var S=v.levels[Y];if(S.isLoaded(eJ(S,O))&&(S=g.E3(S,O)))return S;Y--}return g.E3(v.levels[0],O)}; pWg=function(v,O,Y){Y=RJ(v,Y);for(var S,d;Y>=0;Y--)if(S=v.levels[Y],d=eJ(S,O),!S.isLoaded(d)){S=v;var r=Y,b=r+"-"+d;S.C.has(b)||(S.C.add(b),S.G.enqueue(r,{hY:r,jl:d}))}xcc(v)}; xcc=function(v){if(!v.Y&&!v.G.isEmpty()){var O=v.G.remove();v.Y=TZd(v,O)}}; TZd=function(v,O){var Y=document.createElement("img");v.crossOrigin&&(Y.crossOrigin=v.crossOrigin);Y.src=v.levels[O.hY].Sp(O.jl);Y.onload=function(){var S=O.hY,d=O.jl;v.Y!==null&&(v.Y.onload=null,v.Y=null);S=v.levels[S];S.loaded.add(d);xcc(v);var r=S.columns*S.rows;d*=r;S=Math.min(d+r-1,S.Ng()-1);d=[d,S];v.publish("l",d[0],d[1])}; return Y}; g.QK=function(v,O,Y,S){this.level=v;this.B=O;this.loaded=new Set;this.level=v;this.B=O;v=Y.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.Y=Math.floor(Number(v[5]));this.G=v[6];this.signature=v[7];this.videoLength=S}; eJ=function(v,O){return Math.floor(O/(v.columns*v.rows))}; g.E3=function(v,O){O>=v.Ox()&&v.yW();var Y=eJ(v,O),S=v.columns*v.rows,d=O%S;O=d%v.columns;d=Math.floor(d/v.columns);var r=v.yW()+1-S*Y;if(r1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; lFd=function(v,O,Y){return(v=v.levels[O])?v.uj(Y):-1}; RJ=function(v,O){var Y=v.B.get(O);if(Y)return Y;Y=v.levels.length;for(var S=0;S=O)return v.B.set(O,S),S;v.B.set(O,Y-1);return Y-1}; BO=function(v,O,Y,S){Y=Y.split("#");Y=[Y[1],Y[2],0,Y[3],Y[4],-1,Y[0],""].join("#");g.QK.call(this,v,O,Y,0);this.U=null;this.Z=S?2:0}; ZZ=function(v,O,Y,S){Lm.call(this,v,0,void 0,O,!(S===void 0||!S));for(v=0;v(Y!=null?Y:50)&&(Y=ZGm.shift())&&Jw.delete(Y),Y=d),d!==Y&&v.Li("ssei","dcpn_"+d+"_"+Y+"_"+v.clientPlaybackNonce),Y)}; qC=function(v,O){var Y=O.raw_watch_next_response;if(!Y){var S=O.watch_next_response;S&&(Y=JSON.parse(S))}if(Y){v.N3=Y;var d=v.N3.playerCueRangeSet;d&&g.Km(v,d);var r=v.N3.playerOverlays;if(r){var b=r.playerOverlayRenderer;if(b){var z=b.autonavToggle;z&&(v.autoplaySwitchButtonRenderer=g.q(z,XWd),v.V("web_player_autonav_use_server_provided_state")&&PO(v)&&(v.autonavState=v.autoplaySwitchButtonRenderer.enabled?2:1));var M=b.videoDetails;if(M){var V=M.embeddedPlayerOverlayVideoDetailsRenderer;var A=M.playerOverlayVideoDetailsRenderer; A&&(A.title&&(O.title=g.ui(A.title)),A.subtitle&&(O.subtitle=g.ui(A.subtitle)))}g.h7(v.Qx)&&(v.Td=!!b.addToMenu);wWd(v,b.shareButton);b.startPosition&&b.endPosition&&(v.progressBarStartPosition=b.startPosition,v.progressBarEndPosition=b.endPosition);var f=b.gatedActionsOverlayRenderer;f&&(v.hg=g.q(f,IFE));var k,U,c,a=g.q((k=v.getWatchNextResponse())==null?void 0:(U=k.playerOverlays)==null?void 0:(c=U.playerOverlayRenderer)==null?void 0:c.infoPanel,qB3);if(a){v.Xi=Number(a==null?void 0:a.durationMs)|| NaN;if(a==null?0:a.infoPanelOverviewViewModel)v.Dq=a==null?void 0:a.infoPanelOverviewViewModel;if(a==null?0:a.infoPanelDetailsViewModel)v.cV=a==null?void 0:a.infoPanelDetailsViewModel}v.showSeekingControls=!!b.showSeekingControls}}var x,T,l=(x=v.getWatchNextResponse())==null?void 0:(T=x.contents)==null?void 0:T.twoColumnWatchNextResults;if(l){var Q=l.desktopOverlay&&g.q(l.desktopOverlay,nNQ);Q&&(Q.suppressShareButton&&(v.showShareButton=!1),Q.suppressWatchLaterButton&&(v.Td=!1))}V&&JX7(v,O,V);var L= bK(0,O.autoplay_count),I=v.getWatchNextResponse(),t,P=(t=I.contents)==null?void 0:t.twoColumnWatchNextResults,YQ,dF,N,j1=(YQ=I.playerOverlays)==null?void 0:(dF=YQ.playerOverlayRenderer)==null?void 0:(N=dF.autoplay)==null?void 0:N.playerOverlayAutoplayRenderer,D=WJ7(v),yd,pn=(yd=I.contents)==null?void 0:yd.singleColumnWatchNextResults;if(pn){var Qd;if(((Qd=pn.autoplay)==null?0:Qd.autoplay)&&!pn.playlist){var uL=pn.autoplay.autoplay.sets,jU={},ll=new g.cO(v.D()),xQ=null,dS;if(uL){for(var p=g.y(uL), oi=p.next();!oi.done;oi=p.next()){var P0=oi.value.autoplayVideoRenderer;if(P0&&P0.compactVideoRenderer){xQ=P0.compactVideoRenderer;break}}if(dS=uL[0].autoplayVideo){var uh=dS.clickTrackingParams;uh&&(jU.itct=uh);jU.autonav="1";jU.playnext=String(L)}}else jU.feature="related-auto";var lL=g.q(dS,g.Gj);if(xQ){ll.videoId=xQ.videoId;var AY=xQ.shortBylineText;AY&&(ll.author=g.ui(AY));var Xw=xQ.title;Xw&&(ll.title=g.ui(Xw))}else lL!=null&&lL.videoId&&(ll.videoId=lL.videoId);ll.SW=jU;v.suggestions=[];v.Ap= ll}}if(D){for(var Qv=[],Ft=g.y(D),h=Ft.next();!h.done;h=Ft.next()){var R=h.value,e=void 0,Z=null;if(R.endScreenVideoRenderer){var n=R.endScreenVideoRenderer,Cn=n.title;Z=new g.cO(v.D());Z.videoId=n.videoId;Z.lengthSeconds=n.lengthInSeconds||0;var OE=n.publishedTimeText;OE&&(Z.publishedTimeText=g.ui(OE));var kQ=n.shortBylineText;kQ&&(Z.author=g.ui(kQ));var S1=n.shortViewCountText;S1&&(Z.shortViewCount=g.ui(S1));if(Cn){Z.title=g.ui(Cn);var h3=Cn.accessibility;if(h3){var t3=h3.accessibilityData;t3&& t3.label&&(Z.ariaLabel=t3.label)}}var yv=n.navigationEndpoint;if(yv){e=yv.clickTrackingParams;var Cg=g.q(yv,g.Gj),eY=g.q(yv,g.qU);Cg?Z.SJ=Cg:eY!=null&&(Z.watchUrl=eY.url)}var G1=n.thumbnailOverlays;if(G1)for(var Gg=g.y(G1),iM=Gg.next();!iM.done;iM=Gg.next()){var Cx=iM.value.thumbnailOverlayTimeStatusRenderer;if(Cx)if(Cx.style==="LIVE"){Z.isLivePlayback=!0;break}else if(Cx.style==="UPCOMING"){Z.isUpcoming=!0;break}}Z.X=VK(n.thumbnail)}else if(R.endScreenPlaylistRenderer){var VU=R.endScreenPlaylistRenderer, Rp=VU.navigationEndpoint;if(!Rp)continue;var fd=g.q(Rp,g.Gj);if(!fd)continue;var e2=fd.videoId;Z=new g.U3(v.D());Z.playlistId=VU.playlistId;Z.playlistLength=Number(VU.videoCount)||0;Z.Y=e2||null;Z.videoId=e2;var Pd=VU.title;Pd&&(Z.title=g.ui(Pd));var GA=VU.shortBylineText;GA&&(Z.author=g.ui(GA));e=Rp.clickTrackingParams;Z.X=VK(VU.thumbnail)}Z&&(e&&(Z.sessionData={itct:e}),Qv.push(Z))}v.suggestions=Qv}if(j1){v.wp=!!j1.preferImmediateRedirect;v.II=v.II||!!j1.webShowNewAutonavCountdown;v.J3=v.J3||!!j1.webShowBigThumbnailEndscreen; if(v.II||v.J3){var p9=P||null,dn=new g.cO(v.D());dn.videoId=j1.videoId;var mm=j1.videoTitle;if(mm){dn.title=g.ui(mm);var r3=mm.accessibility;if(r3){var FH=r3.accessibilityData;FH&&FH.label&&(dn.ariaLabel=FH.label)}}var iu=j1.byline;iu&&(dn.author=g.ui(iu));var As=j1.publishedTimeText;As&&(dn.publishedTimeText=g.ui(As));var fl=j1.shortViewCountText;fl&&(dn.shortViewCount=g.ui(fl));var $z=j1.thumbnailOverlays;if($z)for(var kz=g.y($z),Yx=kz.next();!Yx.done;Yx=kz.next()){var g1=Yx.value.thumbnailOverlayTimeStatusRenderer; if(g1)if(g1.style==="LIVE"){dn.isLivePlayback=!0;break}else if(g1.style==="UPCOMING"){dn.isUpcoming=!0;break}else if(g1.style==="DEFAULT"&&g1.text){dn.lengthText=g.ui(g1.text);var Uo=g1.text.accessibility;if(Uo){var SV=Uo.accessibilityData;SV&&SV.label&&(dn.Ch=SV.label||"")}break}}dn.X=VK(j1.background);var cS=j1.nextButton;if(cS){var us=cS.buttonRenderer;if(us){var Cl=us.navigationEndpoint;if(Cl){var y6=g.q(Cl,g.Gj);y6&&(dn.SJ=y6)}}}if(j1.topBadges){var aI=j1.topBadges[0];if(aI){var xz=g.q(aI,KJl); xz&&xz.style==="BADGE_STYLE_TYPE_PREMIUM"&&(dn.ZoO=!0)}}var tz=j1.alternativeTitle;tz&&(dn.Zx=g.ui(tz));var hB={autonav:"1",playnext:String(L)};dn.playlistId&&(hB.autoplay="1");if(p9){var Dd,Kr,dg,pl,rg=(Dd=p9.autoplay)==null?void 0:(Kr=Dd.autoplay)==null?void 0:(dg=Kr.sets)==null?void 0:(pl=dg[0])==null?void 0:pl.autoplayVideo;if(rg){var Tz=rg.clickTrackingParams;Tz&&(hB.itct=Tz);var b1=g.q(rg,g.Gj);b1&&(dn.Ho=b1)}}else if(j1){var ls,F4,ho,RI=(ls=j1.nextButton)==null?void 0:(F4=ls.buttonRenderer)== null?void 0:(ho=F4.navigationEndpoint)==null?void 0:ho.clickTrackingParams;RI&&(hB.itct=RI)}hB.itct||(hB.feature="related-auto");dn.SW=hB;v.suggestions||(v.suggestions=[]);v.Ap=dn}j1.countDownSecs!=null&&(v.IC=j1.countDownSecs*1E3);j1.countDownSecsForFullscreen!=null&&(v.xD=j1.countDownSecsForFullscreen>=0?j1.countDownSecsForFullscreen*1E3:-1);v.V("web_autonav_color_transition")&&j1.watchToWatchTransitionRenderer&&(v.watchToWatchTransitionRenderer=g.q(j1.watchToWatchTransitionRenderer,Pr3))}var ot= WJ7(v);if(ot){var kC,e5,jV,WT=ot==null?void 0:(kC=ot[0])==null?void 0:(e5=kC.endScreenVideoRenderer)==null?void 0:(jV=e5.navigationEndpoint)==null?void 0:jV.clickTrackingParams,Eo=g.it(v);WT&&Eo&&(Eo.sessionData={itct:WT})}v.N3.currentVideoThumbnail&&(v.X=VK(v.N3.currentVideoThumbnail));var Hj,Q6,Ll,NJ,BS,Ux=(Hj=v.N3)==null?void 0:(Q6=Hj.contents)==null?void 0:(Ll=Q6.twoColumnWatchNextResults)==null?void 0:(NJ=Ll.results)==null?void 0:(BS=NJ.results)==null?void 0:BS.contents;if(Ux&&Ux[1]){var Zo, X4,R6,ZQ,iN=(Zo=Ux[1].videoSecondaryInfoRenderer)==null?void 0:(X4=Zo.owner)==null?void 0:(R6=X4.videoOwnerRenderer)==null?void 0:(ZQ=R6.thumbnail)==null?void 0:ZQ.thumbnails;iN&&iN.length&&(v.profilePicture=iN[iN.length-1].url)}var wb=Wp(O),zU,cQ=(zU=v.getWatchNextResponse())==null?void 0:zU.onResponseReceivedEndpoints;if(cQ)for(var uA=g.y(cQ),s4=uA.next();!s4.done;s4=uA.next()){var mG=s4.value;g.q(mG,m6)&&(v.Yc=g.q(mG,m6));var CR=g.q(mG,GEQ),II=void 0;if((II=CR)==null?0:II.entityKeys)v.yI=CR.entityKeys|| [],CR.visibleOnLoadKeys&&(v.visibleOnLoadKeys=CR.visibleOnLoadKeys)}if(v.V("web_key_moments_markers")){var OT=g.tw.getState().entities,VP=g.zh("visibility_override","markersVisibilityOverrideEntity");var mq=g$(OT,"markersVisibilityOverrideEntity",VP);v.xg=(mq==null?void 0:mq.videoId)===(v.videoId||wb)&&(mq==null?0:mq.visibilityOverrideMarkersKey)?mq.visibilityOverrideMarkersKey:v.visibleOnLoadKeys;v.visibleOnLoadKeys=[].concat(g.F(v.xg))}}}; PO=function(v){var O;return((O=v.autoplaySwitchButtonRenderer)==null?void 0:O.enabled)!==void 0}; DZ=function(v){return!!(v.G&&v.G.videoInfos&&v.G.videoInfos.length)}; g.YL=function(v){var O=v.L;v.V("html5_gapless_unlimit_format_selection")&&HO(v)&&(O=!1);var Y=!!v.Y&&v.Y.FL,S=v.Qx,d=v.F6(),r=NC(v),b=v.f1,z=O,M=v.isOtf();O=v.HQ();var V=v.yx,A=v.getUserAudio51Preference(),f=vj(v),k=new lDl(S);if(S.XL()||S.V("html5_logging_format_selection"))k.U=!0;k.AK=r;k.f1=b&&S.X;k.JK=A;g.Jy("windows nt 5.1")&&!g.Jt&&(k.Lv=!0);if(r=d)r=g.t7(S)?Uzl(S):!1;r&&(k.tK=!0);z&&(k.Lv=!0,k.PT=!0);M&&!S.V("html5_otf_prefer_vp9")&&(k.Lv=!0);S.playerStyle==="picasaweb"&&(M&&(k.Lv=!1),k.Ug= !1);V&&(k.Lv=!0);CA(S.Z,y5.CHANNELS)&&(S.V("html5_enable_ac3")&&(k.B=!0),S.V("html5_enable_eac3")&&(k.Z=!0),S.V("html5_enable_ac3_gapless")&&(k.N3=!0));S.V("html5_block_8k_hfr")&&(k.Eg=!0);k.C=g.Vq(S.experiments,"html5_max_selectable_quality_ordinal");k.L=g.Vq(S.experiments,"html5_min_selectable_quality_ordinal");uq&&(k.rR=480);if(Y||d)k.Ug=!1;k.xg=!1;k.disableAv1=f;Y=QM(S,k.Y,void 0,k.disableAv1);Y>0&&Y<2160&&(PS()||S.V("html5_format_hybridization"))&&(k.Y.supportsChangeType=+PS(),k.vP=Y);Y>=2160&& (k.HW=!0);i0c()&&!S.V("disable_av1_setting")&&(k.Y.serveVp9OverAv1IfHigherRes=0,k.yC=!1);k.HQ=O;k.g8=g.i9||Yw()&&!O?!1:!0;k.X=S.V("html5_format_hybridization");k.On=S.V("html5_disable_encrypted_vp9_live_non_2k_4k");Ol(v)&&(k.R1=v.V("html5_prefer_language_over_codec"));Gn()&&v.playerResponse&&v.playerResponse.playerConfig&&v.playerResponse.playerConfig.webPlayerConfig&&v.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(k.B=!0,k.Z=!0);v.L&&v.isAd()&&(v.Zz&&(k.j=v.Zz),v.cI&& (k.G=v.cI));k.FO=v.isLivePlayback&&v.aS()&&v.Qx.V("html5_drm_live_audio_51");k.n1=v.VE;k.Mj=!Ol(v);return v.q8=k}; vj=function(v){return v.Qx.V("html5_disable_av1")||v.V("html5_gapless_shorts_disable_av1")&&HO(v)?!0:!1}; iGd=function(v){nw("drm_pb_s",void 0,v.j);v.XO||v.Y&&$$(v.Y);var O={};v.Y&&(O=ouQ(v.RO,g.YL(v),v.Qx.Z,v.Y,function(Y){return v.publish("ctmp","fmtflt",Y)},!0,new Set)); O=new G6(O,v.Qx,v.i9,v.useCobaltWidevine?Gn()?Sz(v):!1:!1,function(Y,S){v.G0(Y,S)}); g.w(v,O);v.ZI=!1;v.loading=!0;ebF(O,function(Y){nw("drm_pb_f",void 0,v.j);for(var S=g.y(Y),d=S.next();!d.done;d=S.next())switch(d=d.value,d.flavor){case "fairplay":d.XO=v.XO;d.K$=v.K$;d.aO=v.aO;break;case "widevine":d.N6=v.N6}v.Fk=Y;if(v.Fk.length>0&&(v.Z=v.Fk[0],v.Qx.XL())){Y={};S=g.y(Object.entries(v.Z.Y));for(d=S.next();!d.done;d=S.next()){var r=g.y(d.value);d=r.next().value;r=r.next().value;var b="unk";(d=d.match(/(.*)codecs="(.*)"/))&&(b=d[2]);Y[b]=r}v.G0("drmProbe",Y)}v.OR()})}; mcF=function(v,O){if(O.length===0||dX(v))return null;v.Qx.Z.G&&(RW=!0);var Y=v.LP;var S=v.lengthSeconds,d=v.isLivePlayback,r=v.XH,b=v.Qx,z=M_E(O);if(d||r){b=b.experiments;S=new fT("",b,!0);S.U=!r;S.FL=!0;S.isManifestless=!0;S.isLive=!r;S.XH=r;O=g.y(O);for(d=O.next();!d.done;d=O.next()){var M=d.value;d=UL(M,Y);z=hK(M);z=uP(z.Oc||M.url||"",z.uN,z.s);var V=z.get("id");V&&V.includes("%7E")&&(S.j=!0);var A=void 0;V=(A=b)==null?void 0:A.T0("html5_max_known_end_time_rebase");A=Number(M.targetDurationSec|| 5);M=Number(M.maxDvrDurationSec||14400);var f=Number(z.get("mindsq")||z.get("min_sq")||"0"),k=Number(z.get("maxdsq")||z.get("max_sq")||"0")||Infinity;S.Zq=S.Zq||f;S.ZT=S.ZT||k;var U=!rb(d.mimeType);z&&M9(S,new H7(z,d,{nW:A,Xk:U,xi:M,Zq:f,ZT:k,ES:300,XH:r,G5:V}))}Y=S}else if(z==="FORMAT_STREAM_TYPE_OTF"){S=S===void 0?0:S;r=new fT("",b.experiments,!1);r.duration=S||0;b=g.y(O);for(S=b.next();!S.done;S=b.next())S=S.value,O=UL(S,Y,r.duration),d=hK(S),(d=uP(d.Oc||S.url||"",d.uN,d.s))&&(O.streamType==="FORMAT_STREAM_TYPE_OTF"? M9(r,new NY(d,O,"sq/0")):M9(r,new z6(d,O,eM(S.initRange),eM(S.indexRange))));r.isOtf=!0;Y=r}else{S=S===void 0?0:S;r=new fT("",b.experiments,!1);r.duration=S||0;b=g.y(O);for(S=b.next();!S.done;S=b.next())z=S.value,S=UL(z,Y,r.duration),O=eM(z.initRange),d=eM(z.indexRange),V=hK(z),(z=uP(V.Oc||z.url||"",V.uN,V.s))&&M9(r,new z6(z,S,O,d));Y=r}r=v.isLivePlayback&&!v.XH&&!v.tK&&!v.isPremiere;v.V("html5_live_head_playable")&&(!rX(v)&&r&&v.G0("missingLiveHeadPlayable",{}),v.Qx.tK==="yt"&&(Y.AK=!0));return Y}; dX=function(v){return Gn()?!Sz(v):mn()?!(!v.XO||!v.V("html5_enable_safari_fairplay")&&vD()):!1}; Sz=function(v){return v.V("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.Km=function(v,O){O=g.y(O);for(var Y=O.next();!Y.done;Y=O.next())if(Y=Y.value,Y.cueRangeSetIdentifier){var S=void 0;v.o6.set(Y.cueRangeSetIdentifier,(S=Y.playerCueRanges)!=null?S:[])}}; b8=function(v){return!(!v.Y||!v.Y.isManifestless)}; oO=function(v){return v.R1?v.isLowLatencyLiveStream&&v.Y!=null&&xA(v.Y)>=5:v.isLowLatencyLiveStream&&v.Y!=void 0&&xA(v.Y)>=5}; tqn=function(v){return Gn()&&Sz(v)?!1:dX(v)&&(g.p0(v.Qx)?!v.isLivePlayback:v.hlsvp)||!vD()||v.hB?!0:!1}; NZ3=function(v){v.loading=!0;v.D9=!1;if(DcJ(v))g.Uc3(v.videoId).then(function(S){HGn(v,S)}).then(function(){v.OR()}); else{vZ(v.yC)||g.Br(new g.iK("DASH MPD Origin invalid: ",v.yC));var O=v.yC,Y=g.Vq(v.Qx.experiments,"dash_manifest_version")||4;O=g.Te(O,{mpd_version:Y});v.isLowLatencyLiveStream&&v.latencyClass!=="NORMAL"||(O=g.Te(O,{pacing:0}));ujl(O,v.Qx.experiments,v.isLivePlayback).then(function(S){v.vW()||(jz(v,S,!0),nw("mrc",void 0,v.j),v.OR())},function(S){v.vW()||(v.loading=!1,v.publish("dataloaderror",new lJ("manifest.net.retryexhausted",{backend:"manifest", rc:S.status},1)))}); nw("mrs",void 0,v.j)}}; HGn=function(v,O){var Y=O.map(function(M){return M.itag}),S; if((S=v.playerResponse)!=null&&S.streamingData){S=[];if(v.V("html5_offline_always_use_local_formats")){Y=0;for(var d=g.y(O),r=d.next();!r.done;r=d.next()){r=r.value;var b=Object.assign({},r);b.signatureCipher="";S.push(b);b=g.y(v.playerResponse.streamingData.adaptiveFormats);for(var z=b.next();!z.done;z=b.next())if(z=z.value,r.itag===z.itag&&r.xtags===z.xtags){Y+=1;break}}YA&&(A=U.getInfo().audio.numChannels)}A>2&&v.G0("hlschl",{mn:A});var x;((x=v.q8)==null?0:x.U)&&v.G0("hlsfmtaf",{itags:f.join(".")});var T;if(v.V("html5_enable_vp9_fairplay")&&((T=v.Z)==null?0:q9(T)))for(v.G0("drm",{sbdlfbk:1}),A=g.y(v.Fk),f=A.next();!f.done;f=A.next())if(f=f.value,IW(f)){v.Z=f;break}gX(v,V)})}return ee()}; drg=function(v){if(v.isExternallyHostedPodcast&&v.RD){var O=sl(v.RD);if(!O[0])return ee();v.FEW=O[0];return qmd(v.Qx,O[0]).then(function(Y){gX(v,Y)})}return v.CT&&v.vz?Ipi(v.Qx,v.isAd(),v.CT).then(function(Y){gX(v,Y)}):ee()}; bi1=function(v){if(v.isExternallyHostedPodcast)return ee();var O=sl(v.RD,v.W6);if(v.hlsvp){var Y=FJE(v.hlsvp,v.clientPlaybackNonce,v.oI);O.push(Y)}return wql(v.Qx,v.isAd(),O,rjd(v)).then(function(S){gX(v,S)})}; gX=function(v,O){v.w2=O;v.qc(new gi(g.DQ(v.w2,function(Y){return Y.getInfo()})))}; rjd=function(v){var O={cpn:v.clientPlaybackNonce,c:v.Qx.Y.c,cver:v.Qx.Y.cver};v.s3&&(O.ptk=v.s3,O.oid=v.Wm,O.ptchn=v.A1,O.pltype=v.SR,v.f$&&(O.m=v.f$));return O}; g.MJ=function(v){return dX(v)&&v.XO?(v={},v.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",v):v.U&&v.U.LP||null}; oOl=function(v){var O=V_(v);return O&&O.text?g.ui(O.text):v.paidContentOverlayText}; jLd=function(v){var O=V_(v);return O&&O.durationMs?kr(O.durationMs):v.paidContentOverlayDurationMs}; V_=function(v){var O,Y,S;return v.playerResponse&&v.playerResponse.paidContentOverlay&&v.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.q((O=v.N3)==null?void 0:(Y=O.playerOverlays)==null?void 0:(S=Y.playerOverlayRenderer)==null?void 0:S.playerDisclosure,W5J)||null}; Az=function(v){var O="";if(v.iT)return v.iT;v.isLivePlayback&&(O=v.allowLiveDvr?"dvr":v.isPremiere?"lp":v.tK?"window":"live");v.XH&&(O="post");return O}; g.fh=function(v,O){return typeof v.keywords[O]!=="string"?null:v.keywords[O]}; zLm=function(v){return!!v.bx||!!v.Jd||!!v.zK||!!v.n$||v.mI}; g.$L=function(v){return!!(v.yC||v.RD||v.CT||v.hlsvp||v.K3())}; IJ=function(v){if(v.V("html5_onesie")&&v.errorCode)return!1;var O=g.Vv(v.Ug,"ypc");v.ypcPreview&&(O=!1);return v.sE()&&!v.loading&&(g.$L(v)||g.Vv(v.Ug,"heartbeat")||O)}; sl=function(v,O){v=dG(v);var Y={};if(O){O=g.y(O.split(","));for(var S=O.next();!S.done;S=O.next())(S=S.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(Y[S[1]]={width:S[2],height:S[3]})}O=g.y(v);for(S=O.next();!S.done;S=O.next()){S=S.value;var d=Y[S.itag];d&&(S.width=d.width,S.height=d.height)}return v}; wWd=function(v,O){v.showShareButton=!!O;var Y,S,d=((Y=g.q(O,g.wZ))==null?void 0:Y.navigationEndpoint)||((S=g.q(O,g.wZ))==null?void 0:S.command);d&&(v.IX=!!g.q(d,sLc))}; hrQ=function(v,O){var Y=O.raw_embedded_player_response;if(!Y){var S=O.embedded_player_response;S&&(Y=JSON.parse(S))}Y&&(v.RS=Y);if(v.RS){v.embeddedPlayerConfig=v.RS.embeddedPlayerConfig||null;if(Y=v.RS.videoFlags)Y.playableInEmbed&&(v.allowEmbed=!0),Y.isPrivate&&(v.isPrivate=!0),Y.userDisplayName&&(O.user_display_name=Y.userDisplayName),Y.userDisplayImage&&(O.user_display_image=Y.userDisplayImage);if(Y=v.RS.embedPreview){Y=Y.thumbnailPreviewRenderer;jRm(v,Y.controlBgHtml);if(S=Y.defaultThumbnail)v.X= VK(S);v.V("embeds_web_enable_search_button")&&Y.searchButton&&(S=g.q(Y.searchButton,g.wZ))&&(v.VTd=g.q(S.navigationEndpoint,g.kL));(S=g.q(Y==null?void 0:Y.videoDetails,gOi))&&JX7(v,O,S);S=g.q(Y==null?void 0:Y.videoDetails,MBE);v.Td=!!Y.addToWatchLaterButton;wWd(v,Y.shareButton);if(S==null?0:S.musicVideoType)v.musicVideoType=S.musicVideoType;var d,r,b,z,M;if(S=g.q((d=v.getEmbeddedPlayerResponse())==null?void 0:(r=d.embedPreview)==null?void 0:(b=r.thumbnailPreviewRenderer)==null?void 0:(z=b.playButton)== null?void 0:(M=z.buttonRenderer)==null?void 0:M.navigationEndpoint,g.Gj))Gog(v,S),v.videoId=S.videoId||v.videoId;Y.videoDurationSeconds&&(v.lengthSeconds=kr(Y.videoDurationSeconds));Y.webPlayerActionsPorting&&oN$(v,Y.webPlayerActionsPorting);if(d=g.q(Y==null?void 0:Y.playlist,VBd)){v.d6=!0;r=[];b=Number(d.currentIndex);if(d.contents)for(z=0,M=d.contents.length;z0:v.uO?!1:v.Qx.rf||v.Qx.oS||!g.aP(v.Qx)?!0:!1:(v.uO?0:v.Lo)&&g.aP(v.Qx)?!0:!1;v.V("html5_log_detailpage_autoplay")&&l8(v)==="detailpage"&&v.G0("autoplay_info",{autoplay:v.Tn,autonav:v.isAutonav,wasDompaused:v.uO,result:O});return O}; g.ez=function(v){return v.oauthToken||v.Qx.N7}; akF=function(v){if(v.V("html5_stateful_audio_normalization")){var O=1,Y=g.Vq(v.Qx.experiments,"html5_default_ad_gain");Y&&v.isAd()&&(O=Y);var S,d;Y=(d=(S=v.B)==null?void 0:S.audio.B)!=null?d:v.xE;if(Y==null||isNaN(Y))v=yjd(v);else{S=(0,g.J)();v.hS=2;d=S-v.Qx.GF<=v.maxStatefulTimeThresholdSec*1E3;v.applyStatefulNormalization&&d?v.hS=4:d||(v.Qx.Qc=Infinity,v.Qx.GF=NaN);d=(v.hS===4?g.xr(v.Qx.Qc,v.minimumLoudnessTargetLkfs,v.loudnessTargetLkfs):v.loudnessTargetLkfs)-Y;if(v.hS!==4){var r,b,z,M,V=((r=v.playerResponse)== null?void 0:(b=r.playerConfig)==null?void 0:(z=b.audioConfig)==null?void 0:(M=z.loudnessNormalizationConfig)==null?void 0:M.statelessLoudnessAdjustmentGain)||0;d+=V}d=Math.min(d,0);v.preserveStatefulLoudnessTarget&&(v.Qx.Qc=Y+d,v.Qx.GF=S);v=Math.min(1,Math.pow(10,d/20))||O}}else v=yjd(v);return v}; yjd=function(v){var O=1,Y=g.Vq(v.Qx.experiments,"html5_default_ad_gain");Y&&v.isAd()&&(O=Y);if(v.Qx.experiments.T0("html5_audio_gain_null_coalescing")){var S,d;Y=(d=(S=v.B)==null?void 0:S.audio.G)!=null?d:v.aI;Y==0&&v.G0("db0fix",{rldb:v.aI})}else{var r;Y=((r=v.B)==null?void 0:r.audio.G)||v.aI}isNaN(Y)||(v.hS=1);return Math.min(1,Math.pow(10,-Y/20))||O}; NC=function(v){var O=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],Y=g.tt(v.Qx)==="TVHTML5_SIMPLY"&&v.Qx.Y.ctheme==="MUSIC";v.iO||!g.qB(v.Qx)&&!Y||!O.includes(v.musicVideoType)&&!v.isExternallyHostedPodcast||(v.iO=!0);if(O=g.Pf())O=/Starboard\/([0-9]+)/.exec(g.yh()),O=(O?parseInt(O[1],10):NaN)<10;Y=v.Qx;Y=(g.tt(Y)==="TVHTML5_CAST"||g.tt(Y)==="TVHTML5"&&(Y.Y.cver.startsWith("6.20130725")||Y.Y.cver.startsWith("6.20130726")))&&v.Qx.Y.ctheme==="MUSIC";var S;if(S=!v.iO)Y||(Y=v.Qx,Y= g.tt(Y)==="TVHTML5"&&Y.Y.cver.startsWith("7")),S=Y;S&&!O&&(O=v.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",Y=(v.V("cast_prefer_audio_only_for_atv_and_uploads")||v.V("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&v.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",O||Y||v.isExternallyHostedPodcast)&&(v.iO=!0);return v.Qx.deviceIsAudioOnly||v.iO&&v.Qx.X}; El=function(v){var O,Y,S;return((O=v.playerResponse)==null?void 0:(Y=O.playerConfig)==null?void 0:(S=Y.compositeVideoConfig)==null?void 0:S.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; g.xrn=function(v){return v.V("html5_enable_sabr_live_captions")&&v.FL()&&Ol(v)||El(v)}; Q_=function(v){var O,Y,S;return!!((O=v.playerResponse)==null?0:(Y=O.playerConfig)==null?0:(S=Y.mediaCommonConfig)==null?0:S.splitScreenEligible)}; Lh=function(v){var O;return!((O=v.playerResponse)==null||!O.compositePlayabilityStatus)}; p8E=function(v){return isNaN(v)?0:Math.max((Date.now()-v)/1E3-30,0)}; Bj=function(v){return!(!v.u0||!v.Qx.X)&&v.K3()}; Zd=function(v){return v.xH&&v.enableServerStitchedDai}; TMi=function(v){return v.y5&&!v.PP}; Ol=function(v){var O=v.V("html5_enable_sabr_on_drive")&&v.Qx.tK==="gd";if(v.j5)return v.y5&&v.G0("fds",{fds:!0},!0),!1;if(v.Qx.tK!=="yt"&&!O)return v.y5&&v.G0("dsvn",{ns:v.Qx.tK},!0),!1;if(v.cotn||!v.Y||v.Y.isOtf||v.iW&&!v.V("html5_enable_sabr_csdai"))return!1;if(v.V("html5_use_sabr_requests_for_debugging"))return!0;v.y5&&v.G0("esfw",{usbc:v.y5,hsu:!!v.PP},!0);if(v.y5&&v.PP)return!0;if(v.V("html5_remove_client_sabr_determination"))return!1;var Y=!v.Y.FL&&!v.aS();O=Y&&Df&&v.V("html5_enable_sabr_vod_streaming_xhr"); Y=Y&&!Df&&v.V("html5_enable_sabr_vod_non_streaming_xhr");var S=X8(v),d=v.V("html5_enable_sabr_drm_vod_streaming_xhr")&&Df&&v.aS()&&!v.Y.FL&&(v.drmProduct==="1"?!1:!0);(O=O||Y||S||d)&&!v.PP&&v.G0("sabr",{loc:"m"},!0);return O&&!!v.PP}; X8=function(v){var O;if(!(O=Df&&v.FL()&&v.aS()&&(v.drmProduct==="1"?!1:!0)&&v.V("html5_sabr_live_drm_streaming_xhr"))){O=v.FL()&&!v.aS()&&Df;var Y=v.FL()&&v.latencyClass!=="ULTRALOW"&&!v.isLowLatencyLiveStream&&v.V("html5_sabr_live_normal_latency_streaming_xhr"),S=v.isLowLatencyLiveStream&&v.V("html5_sabr_live_low_latency_streaming_xhr"),d=v.latencyClass==="ULTRALOW"&&v.V("html5_sabr_live_ultra_low_latency_streaming_xhr");O=O&&(Y||S||d)}Y=O;O=v.enableServerStitchedDai&&Y&&v.V("html5_enable_sabr_ssdai_streaming_xhr"); Y=!v.enableServerStitchedDai&&Y;S=v.FL()&&!Df&&v.V("html5_enable_sabr_live_non_streaming_xhr");v=Df&&(v.lM()||Q_(v)&&v.V("html5_enable_sabr_for_lifa_eligible_streams"));return O||Y||S||v}; DcJ=function(v){var O;if(O=!!v.cotn)O=v.videoId,O=!!O&&g.xf(O)===1;return O&&!v.u0}; g.wX=function(v){if(!v.Y||!v.U||!v.B)return!1;var O=v.Y.Y,Y=!!O[v.U.id]&&Ti(O[v.U.id].m9.Y);O=!!O[v.B.id]&&Ti(O[v.B.id].m9.Y);return(v.U.itag==="0"||Y)&&O}; IO=function(v){return v.jy?["OK","LIVE_STREAM_OFFLINE"].includes(v.jy.status):!0}; Ajg=function(v){return(v=v.Nk)&&v.showError?v.showError:!1}; qJ=function(v,O){return v.V(O)?!0:(v.fflags||"").includes(O+"=true")}; lkQ=function(v){return v.V("html5_heartbeat_iff_heartbeat_params_filled")}; BZw=function(v,O){O.inlineMetricEnabled&&(v.inlineMetricEnabled=!0);O.playback_progress_0s_url&&(v.n$=new sR1(O));if(O=O.video_masthead_ad_quartile_urls)v.Jd=O.quartile_0_url,v.i$=O.quartile_25_url,v.Nz=O.quartile_50_url,v.ZX=O.quartile_75_url,v.RR=O.quartile_100_url,v.zK=O.quartile_0_urls,v.bj=O.quartile_25_urls,v.NZ=O.quartile_50_urls,v.CH=O.quartile_75_urls,v.IT=O.quartile_100_urls}; LJg=function(v){var O={};v=g.y(v);for(var Y=v.next();!Y.done;Y=v.next()){Y=Y.value;var S=Y.split("=");S.length===2?O[S[0]]=S[1]:O[Y]=!0}return O}; erJ=function(v){if(v){if(A6d(v))return v;v=fnd(v);if(A6d(v,!0))return v}return""}; g.F53=function(v){return v.captionsLanguagePreference||v.Qx.captionsLanguagePreference||g.fh(v,"yt:cc_default_lang")||v.Qx.N2}; nh=function(v){return!(!v.isLivePlayback||!v.hasProgressBarBoundaries())}; g.it=function(v){var O;return v.Ap||((O=v.suggestions)==null?void 0:O[0])||null}; g.Jz=function(v){return v.KE&&(v.V("embeds_enable_pfp_always_unbranded")||v.Qx.cA)}; g.Kh=function(v){var O,Y;return!!((O=v.embeddedPlayerConfig)==null?0:(Y=O.embeddedPlayerFlags)==null?0:Y.enableMusicUx)}; hLm=function(v){return v.L||v.V("web_player_media_session_infinity")&&v.isLivePlayback}; Pj=function(v){return v.Qx.B&&v.isPrivate}; g.i8=function(v){var O=v.D(),Y=g.G3(O),S=O.yC;(O.V("embeds_web_enable_iframe_api_send_full_embed_url")||O.V("embeds_web_enable_rcat_validation_in_havs")||O.V("embeds_enable_autoplay_and_visibility_signals"))&&g.h7(O)&&(S&&(Y.thirdParty=Object.assign({},Y.thirdParty,{embedUrl:S})),H03(Y,v));if(S=v.g8)Y.clickTracking={clickTrackingParams:S};else if(O.V("html5_log_missing_itct")){var d;S=new g.iK("Missing ITCT in InnerTubeContext",{isAd:v.isAd(),Gx1:(d=O.getWebPlayerContextConfig())==null?void 0:d.contextId}); g.LP(S)}d=Y.client||{};S="EMBED";var r=l8(v);r==="leanback"?S="WATCH":O.V("gvi_channel_client_screen")&&r==="profilepage"?S="CHANNEL":v.yx?S="LIVE_MONITOR":r==="detailpage"?S="WATCH_FULL_SCREEN":r==="adunit"?S="ADUNIT":r==="sponsorshipsoffer"&&(S="UNKNOWN");d.clientScreen=S;if(O=v.kidsAppInfo)d.kidsAppInfo=JSON.parse(O);(S=v.wL)&&!O&&(d.kidsAppInfo={contentSettings:{ageUpMode:RLn[S]}});if(O=v.j9)d.unpluggedAppInfo={enableFilterMode:!0};(S=v.unpluggedFilterModeType)&&!O&&(d.unpluggedAppInfo={filterModeType:eLw[S]}); if(O=v.nP)d.unpluggedLocationInfo=O;Y.client=d;d=Y.request||{};v.dE&&(d.isPrefetch=!0);if(O=v.mdxEnvironment)d.mdxEnvironment=O;if(O=v.mdxControlMode)d.mdxControlMode=EOw[O];Y.request=d;d=Y.user||{};if(O=v.JK)d.credentialTransferTokens=[{token:O,scope:"VIDEO"}];if(O=v.qX)d.delegatePurchases={oauthToken:O},d.kidsParent={oauthToken:O};Y.user=d;if(d=v.contextParams)Y.activePlayers=[{playerContextParams:d}];if(v=v.clientScreenNonce)Y.clientScreenNonce=v;return Y}; g.G3=function(v){var O=g.O4(),Y=O.client||{};if(v.forcedExperiments){var S=v.forcedExperiments.split(","),d=[];S=g.y(S);for(var r=S.next();!r.done;r=S.next())d.push(Number(r.value));Y.experimentIds=d}if(d=v.homeGroupInfo)Y.homeGroupInfo=JSON.parse(d);if(d=v.getPlayerType())Y.playerType=d;if(d=v.Y.ctheme)Y.theme=d;if(d=v.livingRoomAppMode)Y.tvAppInfo=Object.assign({},Y.tvAppInfo,{livingRoomAppMode:d});d=v.deviceYear;v.V("html5_propagate_device_year")&&d&&(Y.tvAppInfo=Object.assign({},Y.tvAppInfo,{deviceYear:d})); if(d=v.livingRoomPoTokenId)Y.tvAppInfo=Object.assign({},Y.tvAppInfo,{livingRoomPoTokenId:d});O.client=Y;Y=O.user||{};v.enableSafetyMode&&(Y=Object.assign({},Y,{enableSafetyMode:!0}));v.pageId&&(Y=Object.assign({},Y,{onBehalfOfUser:v.pageId}));O.user=Y;Y=v.yC;v.V("embeds_web_enable_iframe_api_send_full_embed_url")||v.V("embeds_web_enable_rcat_validation_in_havs")||v.V("embeds_enable_autoplay_and_visibility_signals")||!Y||(O.thirdParty={embedUrl:Y});return O}; w8i=function(v,O,Y){var S=v.videoId,d=g.i8(v),r=v.D(),b={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(lj()),referer:document.location.toString(),signatureTimestamp:20227};g.qL();v.isAutonav&&(b.autonav=!0);g.ny(0,141)&&(b.autonavState=g.ny(0,140)?"STATE_OFF":"STATE_ON");b.autoCaptionsDefaultOn=g.ny(0,66);C0l(v)&&(b.autoplay=!0);r.X&&v.cycToken&&(b.cycToken=v.cycToken);r.enablePrivacyFilter&&(b.enablePrivacyFilter=!0);v.isFling&&(b.fling=!0);var z=v.forceAdsUrl;if(z){var M={},V=[];z= z.split(",");z=g.y(z);for(var A=z.next();!A.done;A=z.next()){A=A.value;var f=A.split("|");f.length!==3||A.includes("=")||(f[0]="breaktype="+f[0],f[1]="offset="+f[1],f[2]="url="+f[2]);A={adtype:"video_ad"};f=g.y(f);for(var k=f.next();!k.done;k=f.next()){var U=g.y(k.value.split("="));k=U.next().value;U=r3m(U);A[k]=U.join("=")}f=A.url;k=A.presetad;U=A.viralresponseurl;var c=Number(A.campaignid);if(A.adtype==="in_display_ad")f&&(M.url=f),k&&(M.presetAd=k),U&&(M.viralAdResponseUrl=U),c&&(M.viralCampaignId= String(c));else if(A.adtype==="video_ad"){var a={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(A.offset)||0)}};if(A=QL3[A.breaktype])a.breakType=A;f&&(a.url=f);k&&(a.presetAd=k);U&&(a.viralAdResponseUrl=U);c&&(a.viralCampaignId=String(c));V.push(a)}}b.forceAdParameters={videoAds:V,inDisplayAd:M}}v.isInlinePlaybackNoAd&&(b.isInlinePlaybackNoAd=!0);v.isLivingRoomDeeplink&&(b.isLivingRoomDeeplink=!0);M=v.Tt;if(M!=null){M={startWalltime:String(M)};if(V=v.TK)M.manifestDuration=String(V||14400); b.liveContext=M}if(v.mutedAutoplay){b.mutedAutoplay=!0;M=r.getWebPlayerContextConfig();var x,T;(M==null?0:(x=M.embedsHostFlags)==null?0:x.allowMutedAutoplayDurationMode)&&(M==null?0:(T=M.embedsHostFlags)==null?0:T.allowMutedAutoplayDurationMode.includes(L57[v.mutedAutoplayDurationMode]))&&(b.mutedAutoplayDurationMode=L57[v.mutedAutoplayDurationMode])}if(v.uO?0:v.Lo)b.splay=!0;x=v.vnd;x===5&&(b.vnd=x);x={};if(T=v.isMdxPlayback)x.triggeredByMdx=T;if(T=v.MP)x.skippableAdsSupported=T.split(",").includes("ska"); if(V=v.t3){T=v.ZB;M=[];V=g.y(NhJ(V));for(z=V.next();!z.done;z=V.next()){z=z.value;A=z.platform;z={applicationState:z.qV?"INACTIVE":"ACTIVE",clientFormFactor:BMm[A]||"UNKNOWN_FORM_FACTOR",clientName:ODl[z.Ak]||"UNKNOWN_INTERFACE",clientVersion:z.deviceVersion||"",platform:Zil[A]||"UNKNOWN_PLATFORM"};A={};if(T){f=void 0;try{f=JSON.parse(T)}catch(Q){g.Br(Q)}f&&(A={params:[{key:"ms",value:f.ms}]},f.advertising_id&&(A.advertisingId=f.advertising_id),f.limit_ad_tracking!==void 0&&f.limit_ad_tracking!== null&&(A.limitAdTracking=f.limit_ad_tracking),z.osName=f.os_name,z.userAgent=f.user_agent,z.windowHeightPoints=f.window_height_points,z.windowWidthPoints=f.window_width_points)}M.push({adSignalsInfo:A,remoteClient:z})}x.remoteContexts=M}T=v.sourceContainerPlaylistId;M=v.serializedMdxMetadata;if(T||M)V={},T&&(V.mdxPlaybackContainerInfo={sourceContainerPlaylistId:T}),M&&(V.serializedMdxMetadata=M),x.mdxPlaybackSourceContext=V;b.mdxContext=x;x=O.width;x>0&&(b.playerWidthPixels=Math.round(x));if(O=O.height)b.playerHeightPixels= Math.round(O);Y!==0&&(b.vis=Y);if(Y=r.widgetReferrer)b.widgetReferrer=Y.substring(0,128);g.aP(r)&&b&&(b.ancestorOrigins=r.ancestorOrigins);v.defaultActiveSourceVideoId&&(b.compositeVideoContext={defaultActiveSourceVideoId:v.defaultActiveSourceVideoId});if(r=r.getWebPlayerContextConfig())b.encryptedHostFlags=r.encryptedHostFlags;S={videoId:S,context:d,playbackContext:{contentPlaybackContext:b}};if(v.n1)if(v.D().V("html5_server_controlled_resume_time_refactor")){var l;S.playbackContext.reloadPlaybackContext= {reloadPlaybackParams:(l=v.n1)==null?void 0:l.reloadPlaybackParams}}else S.playbackContext.reloadPlaybackContext={reloadPlaybackParams:v.n1};v.contentCheckOk&&(S.contentCheckOk=!0);if(l=v.clientPlaybackNonce)S.cpn=l;if(l=v.playerParams)S.params=l;if(l=v.playlistId)S.playlistId=l;v.racyCheckOk&&(S.racyCheckOk=!0);l=v.D();if(d=l.embedConfig)S.serializedThirdPartyEmbedConfig=d;S.captionParams={};d=g.ny(g.qL(),65);v.deviceCaptionsOn!=null?S.captionParams.deviceCaptionsOn=v.deviceCaptionsOn:g.PD(l)&&(S.captionParams.deviceCaptionsOn= d!=null?!d:!1);v.O0&&(S.captionParams.deviceCaptionsLangPref=v.O0);v.Z2.length?S.captionParams.viewerSelectedCaptionLangs=v.Z2:g.PD(l)&&(d=g.Ks(),d==null?0:d.length)&&(S.captionParams.viewerSelectedCaptionLangs=d);d=v.fetchType==="onesie"&&v.V("html5_onesie_attach_po_token");b=v.fetchType!=="onesie"&&v.V("html5_non_onesie_attach_po_token");if(d||b)d=v.D(),d.eA&&(S.serviceIntegrityDimensions={},S.serviceIntegrityDimensions.poToken=d.eA);l.V("fetch_att_independently")&&(S.attestationRequest={omitBotguardData:!0}); S.playbackContext||(S.playbackContext={});S.playbackContext.devicePlaybackCapabilities=X8Q(v);S.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&v.G0("noVp9",{});return S}; X8Q=function(v){var O=!(v==null?0:v.HQ())&&(v==null?void 0:v.FL())&&Yw(),Y;if(!(Y=v==null)){Y=g.YL(v);v=v.D().Z;var S=Yf("243");Y=!(S&&fA(Y,S,v,!0)===!0)}return{supportsVp9Encoding:!(Y||O),supportXhr:Df}}; qQd=function(v,O){var Y,S,d;return g.B(function(r){if(r.U==1)return Y={context:g.G3(v.D()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:v.videoId,cpn:v.clientPlaybackNonce}}]},S=g.V7(IkQ),g.E(r,g.D9(O,Y,S),2);d=r.Y;return r.return(d)})}; nOg=function(v,O,Y){var S=g.Vq(O.experiments,"bg_vm_reinit_threshold");(!Bc||(0,g.J)()-Bc>S)&&qQd(v,Y).then(function(d){d&&(d=d.botguardData)&&g.XS(d,O)},function(d){v.vW()||(d=hL(d),v.G0("attf",d.details))})}; mj=function(v,O){g.X.call(this);this.app=v;this.state=O}; Ye=function(v,O,Y){v.state.Y.hasOwnProperty(O)||v2(v,O,Y);v.state.L[O]=function(){return Y.apply(v,g.Bm.apply(0,arguments))}; v.state.C.add(O)}; SE=function(v,O,Y){v.state.Y.hasOwnProperty(O)||v2(v,O,Y);v.app.D().X&&(v.state.X[O]=function(){return Y.apply(v,g.Bm.apply(0,arguments))},v.state.C.add(O))}; v2=function(v,O,Y){v.state.Y[O]=function(){return Y.apply(v,g.Bm.apply(0,arguments))}}; g.dB=function(v,O,Y){return v.state.Y[O].apply(v.state.Y,g.F(Y))}; rB=function(){g.lE.call(this);this.Z=new Map}; bb=function(){g.X.apply(this,arguments);this.element=null;this.C=new Set;this.L={};this.X={};this.Y={};this.j=new Set;this.G=new rB;this.U=new rB;this.B=new rB;this.Z=new rB}; JjQ=function(v,O,Y){typeof v==="string"&&(v={mediaContentUrl:v,startSeconds:O,suggestedQuality:Y});a:{if((O=v.mediaContentUrl)&&(O=/\/([ve]|embed)\/([^#?]+)/.exec(O))&&O[2]){O=O[2];break a}O=null}v.videoId=O;return oh(v)}; oh=function(v,O,Y){if(typeof v==="string")return{videoId:v,startSeconds:O,suggestedQuality:Y};O={};Y=g.y(K51);for(var S=Y.next();!S.done;S=Y.next())S=S.value,v[S]&&(O[S]=v[S]);return O}; P0n=function(v,O,Y,S){if(g.N$(v)&&!Array.isArray(v)){O="playlist list listType index startSeconds suggestedQuality".split(" ");Y={};for(S=0;S32&&S.push("hfr");O.isHdr()&&S.push("hdr");O.primaries==="bt2020"&&S.push("wcg");Y.video_quality_features=S}}if(v=v.getPlaylistId())Y.list=v;return Y}; gB=function(){jE.apply(this,arguments)}; MG=function(v,O){var Y={};if(v.app.D().Ug){v=g.y(tBF);for(var S=v.next();!S.done;S=v.next())S=S.value,O.hasOwnProperty(S)&&(Y[S]=O[S]);if(O=Y.qoe_cat)v="",typeof O==="string"&&O.length>0&&(v=O.split(",").filter(function(d){return Drm.includes(d)}).join(",")),Y.qoe_cat=v; HiE(Y)}else for(v=g.y(NM1),S=v.next();!S.done;S=v.next())S=S.value,O.hasOwnProperty(S)&&(Y[S]=O[S]);return Y}; HiE=function(v){var O=v.raw_player_response;if(!O){var Y=v.player_response;Y&&(O=JSON.parse(Y))}delete v.player_response;delete v.raw_player_response;if(O){v.raw_player_response={streamingData:O.streamingData,playerConfig:O.playerConfig};var S;if((S=O.playbackTracking)==null?0:S.qoeUrl)v.raw_player_response=Object.assign({},v.raw_player_response,{playbackTracking:{qoeUrl:O.playbackTracking.qoeUrl}});var d;if((d=O.videoDetails)==null?0:d.videoId)v.raw_player_response=Object.assign({},v.raw_player_response, {videoDetails:{videoId:O.videoDetails.videoId}})}}; VN=function(v,O,Y){var S=v.app.Hq(Y);if(!S)return 0;v=S-v.app.getCurrentTime(Y);return O-v}; Os3=function(v){var O=O===void 0?5:O;return v?viF[v]||O:O}; g.A4=function(){gB.apply(this,arguments)}; YRE=function(v){v2(v,"getInternalApiInterface",v.getInternalApiInterface);v2(v,"addEventListener",v.VY);v2(v,"removeEventListener",v.XYO);v2(v,"cueVideoByPlayerVars",v.Bg);v2(v,"loadVideoByPlayerVars",v.exc);v2(v,"preloadVideoByPlayerVars",v.B44);v2(v,"getAdState",v.getAdState);v2(v,"sendAbandonmentPing",v.sendAbandonmentPing);v2(v,"setLoopRange",v.setLoopRange);v2(v,"getLoopRange",v.getLoopRange);v2(v,"setAutonavState",v.setAutonavState);v2(v,"seekTo",v.nZO);v2(v,"seekBy",v.jDg);v2(v,"seekToLiveHead", v.seekToLiveHead);v2(v,"requestSeekToWallTimeSeconds",v.requestSeekToWallTimeSeconds);v2(v,"seekToStreamTime",v.seekToStreamTime);v2(v,"startSeekCsiAction",v.startSeekCsiAction);v2(v,"getStreamTimeOffset",v.getStreamTimeOffset);v2(v,"getVideoData",v.ih);v2(v,"setInlinePreview",v.setInlinePreview);v2(v,"getAppState",v.getAppState);v2(v,"updateLastActiveTime",v.updateLastActiveTime);v2(v,"setBlackout",v.setBlackout);v2(v,"setUserEngagement",v.setUserEngagement);v2(v,"updateSubtitlesUserSettings",v.updateSubtitlesUserSettings); v2(v,"getPresentingPlayerType",v.yS);v2(v,"canPlayType",v.canPlayType);v2(v,"updatePlaylist",v.updatePlaylist);v2(v,"updateVideoData",v.updateVideoData);v2(v,"updateEnvironmentData",v.updateEnvironmentData);v2(v,"sendVideoStatsEngageEvent",v.tAd);v2(v,"productsInVideoVisibilityUpdated",v.productsInVideoVisibilityUpdated);v2(v,"setSafetyMode",v.setSafetyMode);v2(v,"isAtLiveHead",function(O){return v.isAtLiveHead(void 0,O)}); v2(v,"getVideoAspectRatio",v.getVideoAspectRatio);v2(v,"getPreferredQuality",v.getPreferredQuality);v2(v,"getPlaybackQualityLabel",v.getPlaybackQualityLabel);v2(v,"setPlaybackQualityRange",v.QnO);v2(v,"onAdUxClicked",v.onAdUxClicked);v2(v,"getFeedbackProductData",v.getFeedbackProductData);v2(v,"getStoryboardFrame",v.getStoryboardFrame);v2(v,"getStoryboardFrameIndex",v.getStoryboardFrameIndex);v2(v,"getStoryboardLevel",v.getStoryboardLevel);v2(v,"getNumberOfStoryboardLevels",v.getNumberOfStoryboardLevels); v2(v,"getCaptionWindowContainerId",v.getCaptionWindowContainerId);v2(v,"getAvailableQualityLabels",v.getAvailableQualityLabels);v2(v,"addCueRange",v.addCueRange);v2(v,"addUtcCueRange",v.addUtcCueRange);v2(v,"showAirplayPicker",v.showAirplayPicker);v2(v,"dispatchReduxAction",v.dispatchReduxAction);v2(v,"getPlayerResponse",v.Wn);v2(v,"getWatchNextResponse",v.KZ);v2(v,"getHeartbeatResponse",v.Vn);v2(v,"getCurrentTime",v.Nl);v2(v,"getDuration",v.XU);v2(v,"getPlayerState",v.getPlayerState);v2(v,"getPlayerStateObject", v.S3);v2(v,"getVideoLoadedFraction",v.getVideoLoadedFraction);v2(v,"getProgressState",v.getProgressState);v2(v,"getVolume",v.getVolume);v2(v,"setVolume",v.Rw);v2(v,"isMuted",v.isMuted);v2(v,"mute",v.jf);v2(v,"unMute",v.Bz);v2(v,"loadModule",v.loadModule);v2(v,"unloadModule",v.unloadModule);v2(v,"getOption",v.Kg);v2(v,"getOptions",v.getOptions);v2(v,"setOption",v.setOption);v2(v,"loadVideoById",v.Ld);v2(v,"loadVideoByUrl",v.AY);v2(v,"playVideo",v.mD);v2(v,"loadPlaylist",v.loadPlaylist);v2(v,"nextVideo", v.nextVideo);v2(v,"previousVideo",v.previousVideo);v2(v,"playVideoAt",v.playVideoAt);v2(v,"getDebugText",v.getDebugText);v2(v,"getWebPlayerContextConfig",v.getWebPlayerContextConfig);v2(v,"notifyShortsAdSwipeEvent",v.notifyShortsAdSwipeEvent);v2(v,"getVideoContentRect",v.getVideoContentRect);v2(v,"setSqueezeback",v.setSqueezeback);v2(v,"toggleSubtitlesOn",v.toggleSubtitlesOn);v2(v,"isSubtitlesOn",v.isSubtitlesOn);v2(v,"reportPlaybackIssue",v.reportPlaybackIssue);v2(v,"setAutonav",v.setAutonav);v2(v, "isNotServable",v.isNotServable);v2(v,"channelSubscribed",v.channelSubscribed);v2(v,"channelUnsubscribed",v.channelUnsubscribed);v2(v,"togglePictureInPicture",v.togglePictureInPicture);v2(v,"supportsGaplessAudio",v.supportsGaplessAudio);v2(v,"supportsGaplessShorts",v.supportsGaplessShorts);v2(v,"enqueueVideoByPlayerVars",function(O){return void v.enqueueVideoByPlayerVars(O)}); v2(v,"clearQueue",v.clearQueue);v2(v,"getAudioTrack",v.e3);v2(v,"setAudioTrack",v.UpW);v2(v,"getAvailableAudioTracks",v.Bn);v2(v,"getMaxPlaybackQuality",v.getMaxPlaybackQuality);v2(v,"getUserPlaybackQualityPreference",v.getUserPlaybackQualityPreference);v2(v,"getSubtitlesUserSettings",v.getSubtitlesUserSettings);v2(v,"resetSubtitlesUserSettings",v.resetSubtitlesUserSettings);v2(v,"setMinimized",v.setMinimized);v2(v,"setOverlayVisibility",v.setOverlayVisibility);v2(v,"confirmYpcRental",v.confirmYpcRental); v2(v,"queueNextVideo",v.queueNextVideo);v2(v,"handleExternalCall",v.handleExternalCall);v2(v,"logApiCall",v.logApiCall);v2(v,"isExternalMethodAvailable",v.isExternalMethodAvailable);v2(v,"setScreenLayer",v.setScreenLayer);v2(v,"getCurrentPlaylistSequence",v.getCurrentPlaylistSequence);v2(v,"getPlaylistSequenceForTime",v.getPlaylistSequenceForTime);v2(v,"shouldSendVisibilityState",v.shouldSendVisibilityState);v2(v,"syncVolume",v.syncVolume);v2(v,"highlightSettingsMenuItem",v.highlightSettingsMenuItem); v2(v,"openSettingsMenuItem",v.openSettingsMenuItem);v2(v,"getEmbeddedPlayerResponse",v.getEmbeddedPlayerResponse);v2(v,"getVisibilityState",v.getVisibilityState);v2(v,"isMutedByMutedAutoplay",v.isMutedByMutedAutoplay);v2(v,"isMutedByEmbedsMutedAutoplay",v.isMutedByEmbedsMutedAutoplay);v2(v,"setGlobalCrop",v.setGlobalCrop);v2(v,"setInternalSize",v.setInternalSize);v2(v,"setFauxFullscreen",v.setFauxFullscreen);v2(v,"setAppFullscreen",v.setAppFullscreen)}; $e=function(v,O,Y){v=g.fU(v.wK(),O);return Y?(Y.addOnDisposeCallback(v),null):v}; g.ke=function(v,O,Y){return v.app.D().q8?O:g.kD("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:O,SHORTCUT:Y})}; SRn=function(v){v.wK().element.setAttribute("aria-live","polite")}; g.UT=function(v,O){g.A4.call(this,v,O);YRE(this);SE(this,"addEventListener",this.vJ);SE(this,"removeEventListener",this.oZO);SE(this,"cueVideoByPlayerVars",this.dj);SE(this,"loadVideoByPlayerVars",this.H1d);SE(this,"preloadVideoByPlayerVars",this.d8K);SE(this,"loadVideoById",this.Ld);SE(this,"loadVideoByUrl",this.AY);SE(this,"playVideo",this.mD);SE(this,"loadPlaylist",this.loadPlaylist);SE(this,"nextVideo",this.nextVideo);SE(this,"previousVideo",this.previousVideo);SE(this,"playVideoAt",this.playVideoAt); SE(this,"getVideoData",this.OB);SE(this,"seekBy",this.zaK);SE(this,"seekTo",this.boO);SE(this,"showControls",this.showControls);SE(this,"hideControls",this.hideControls);SE(this,"cancelPlayback",this.cancelPlayback);SE(this,"getProgressState",this.getProgressState);SE(this,"isInline",this.isInline);SE(this,"setInline",this.setInline);SE(this,"setLoopVideo",this.setLoopVideo);SE(this,"getLoopVideo",this.getLoopVideo);SE(this,"getVideoContentRect",this.getVideoContentRect);SE(this,"getVideoStats",this.fZ); SE(this,"getCurrentTime",this.Zy);SE(this,"getDuration",this.XU);SE(this,"getPlayerState",this.rO);SE(this,"getVideoLoadedFraction",this.uh);SE(this,"mute",this.jf);SE(this,"unMute",this.Bz);SE(this,"setVolume",this.Rw);SE(this,"loadModule",this.loadModule);SE(this,"unloadModule",this.unloadModule);SE(this,"getOption",this.Kg);SE(this,"getOptions",this.getOptions);SE(this,"setOption",this.setOption);SE(this,"addCueRange",this.addCueRange);SE(this,"getDebugText",this.getDebugText);SE(this,"getStoryboardFormat", this.getStoryboardFormat);SE(this,"toggleFullscreen",this.toggleFullscreen);SE(this,"isFullscreen",this.isFullscreen);SE(this,"getPlayerSize",this.getPlayerSize);SE(this,"toggleSubtitles",this.toggleSubtitles);this.app.D().V("embeds_enable_move_set_center_crop_to_public")||SE(this,"setCenterCrop",this.setCenterCrop);SE(this,"setFauxFullscreen",this.setFauxFullscreen);SE(this,"setSizeStyle",this.setSizeStyle);SE(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);SE(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); iil(this)}; g.c2=function(v){v=v.QC();var O=v.pE.get("endscreen");return O&&O.MH()?!0:v.Df()}; g.ub=function(v,O){v.getPresentingPlayerType()===3?v.publish("mdxautoplaycancel"):v.PW("onAutonavCancelled",O)}; g.yN=function(v){var O=CU(v.QC());return v.app.Az&&!v.isFullscreen()||v.getPresentingPlayerType()===3&&O&&O.fT()&&O.FR()||!!v.getPlaylist()}; g.ah=function(v,O){g.dB(v,"addEmbedsConversionTrackingParams",[O])}; g.pU=function(v){return(v=g.xe(v.QC()))?v.o5():{}}; g.d6F=function(v){v=(v=v.getVideoData())&&v.U;return!!v&&!(!v.audio||!v.video)&&v.mimeType!=="application/x-mpegURL"}; g.TW=function(v,O,Y){v=v.j4().element;var S=hY(v.children,function(d){d=Number(d.getAttribute("data-layer"));return Y-d||1}); S<0&&(S=-(S+1));vL(v,O,S);O.setAttribute("data-layer",String(Y))}; g.lb=function(v){var O=v.D();if(!O.nP)return!1;var Y=v.getVideoData();if(!Y||v.getPresentingPlayerType()===3)return!1;var S=(!Y.isLiveDefaultBroadcast||O.V("allow_poltergust_autoplay"))&&!nh(Y);S=Y.isLivePlayback&&(!O.V("allow_live_autoplay")||!S);var d=Y.isLivePlayback&&O.V("allow_live_autoplay_on_mweb");v=v.getPlaylist();v=!!v&&v.fT();var r=Y.N3&&Y.N3.playerOverlays||null;r=!!(r&&r.playerOverlayRenderer&&r.playerOverlayRenderer.autoplay);r=Y.KE&&r;return!Y.ypcPreview&&(!S||d)&&!g.Vv(Y.Ug,"ypc")&& !v&&(!g.aP(O)||r)}; bsn=function(v,O){v=rZw(v.app.o4().B);v=g.y(v);for(var Y=v.next();!Y.done;Y=v.next()){Y=Y.value;var S=Y.getAvailableAudioTracks(),d=null;S=g.y(S);for(var r=S.next();!r.done;r=S.next())if(r=r.value,r.getLanguageInfo().getId()===O){d=r;break}d&&Y.qh(d,!0)}}; FM=function(){wV.apply(this,arguments);this.requestHeaders={}}; Rh=function(){h4||(h4=new FM);return h4}; eE=function(v,O){O?v.requestHeaders.Authorization="Bearer "+O:delete v.requestHeaders.Authorization}; g.ET=function(v){g.X.call(this);var O=this;this.Og=v;this.Qg={EL:function(){return O.Og}}}; g.QN=function(v,O,Y,S){S=S===void 0?!1:S;g.k9.call(this,O);var d=this;this.N=v;this.HW=S;this.X=new g.Z6(this);this.fade=new g.bC(this,Y,!0,void 0,void 0,function(){d.FU()}); g.w(this,this.X);g.w(this,this.fade)}; LU=function(v){var O=v.N.getRootNode();return v.N.V("web_watch_pip")||v.N.V("web_shorts_pip")?ZC(O):document}; oil=function(v){v.U&&(document.activeElement&&g.YW(v.element,document.activeElement)&&v.U.focus(),v.U.setAttribute("aria-expanded","false"),v.U=void 0);g.hi(v.X);v.j=void 0}; B2=function(v,O,Y){v.qT()?v.VC():v.RI(O,Y)}; ZE=function(v,O,Y,S){S=new g.K({J:"div",hK:["ytp-linked-account-popup-button"],M3:S,T:{role:"button",tabindex:"0"}});O=new g.K({J:"div",W:"ytp-linked-account-popup",T:{role:"dialog","aria-modal":"true",tabindex:"-1"},K:[{J:"div",W:"ytp-linked-account-popup-title",M3:O},{J:"div",W:"ytp-linked-account-popup-description",M3:Y},{J:"div",W:"ytp-linked-account-popup-buttons",K:[S]}]});g.QN.call(this,v,{J:"div",W:"ytp-linked-account-popup-container",K:[O]},100);var d=this;this.dialog=O;g.w(this,this.dialog); S.listen("click",function(){d.VC()}); g.w(this,S);g.TW(this.N,this.element,4);this.hide()}; g.wB=function(v,O,Y,S){g.k9.call(this,v);this.priority=O;Y&&g.XM(this,Y);S&&this.yg(S)}; g.Ih=function(v,O,Y,S){v=v===void 0?{}:v;O=O===void 0?[]:O;Y=Y===void 0?!1:Y;S=S===void 0?!1:S;O.push("ytp-menuitem");var d=v;"role"in d||(d.role="menuitem");Y||(d=v,"tabindex"in d||(d.tabindex="0"));v={J:Y?"a":"div",hK:O,T:v,K:[{J:"div",W:"ytp-menuitem-icon",M3:"{{icon}}"},{J:"div",W:"ytp-menuitem-label",M3:"{{label}}"},{J:"div",W:"ytp-menuitem-content",M3:"{{content}}"}]};S&&v.K.push({J:"div",W:"ytp-menuitem-secondary-icon",M3:"{{secondaryIcon}}"});return v}; g.XM=function(v,O){v.updateValue("label",O)}; qG=function(v){g.wB.call(this,g.Ih({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var O=this;this.N=v;this.U=this.Y=!1;this.HT=v.Ds();v.createServerVe(this.element,this,!0);this.S(this.N,"settingsMenuVisibilityChanged",function(Y){O.o1(Y)}); this.S(this.N,"videodatachange",this.B);this.listen("click",this.onClick);this.B()}; nU=function(v){return v?g.ui(v):""}; J4=function(v){g.X.call(this);this.api=v}; KU=function(v){J4.call(this,v);var O=this;v2(v,"setAccountLinkState",function(Y){O.setAccountLinkState(Y)}); v2(v,"updateAccountLinkingConfig",function(Y){O.updateAccountLinkingConfig(Y)}); v.addEventListener("videodatachange",function(Y,S){O.onVideoDataChange(S)}); v.addEventListener("settingsMenuInitialized",function(){O.menuItem=new qG(O.api);g.w(O,O.menuItem)})}; jyc=function(v){this.api=v;this.Y={}}; P2=function(v,O,Y,S){O in v.Y||(Y=new g.dh(Y,S,{id:O,priority:2,namespace:"appad"}),v.api.YZ([Y],1),v.Y[O]=Y)}; GW=function(v){J4.call(this,v);var O=this;this.events=new g.Z6(this);g.w(this,this.events);this.Y=new jyc(this.api);this.events.S(this.api,"legacyadtrackingpingreset",function(){O.Y.Y={}}); this.events.S(this.api,"legacyadtrackingpingchange",function(Y){var S=O.Y;P2(S,"part2viewed",1,0x8000000000000);P2(S,"engagedview",Math.max(1,Y.Mj*1E3),0x8000000000000);if(!Y.isLivePlayback){var d=Y.lengthSeconds*1E3;HO(Y)&&S.api.V("html5_shorts_gapless_ads_duration_fix")&&(d=S.api.getProgressState().seekableEnd*1E3-Y.wD);P2(S,"videoplaytime25",d*.25,d);P2(S,"videoplaytime50",d*.5,d);P2(S,"videoplaytime75",d*.75,d);P2(S,"videoplaytime100",d,0x8000000000000);P2(S,"conversionview",d,0x8000000000000); P2(S,"videoplaybackstart",1,d);P2(S,"videoplayback2s",2E3,d);P2(S,"videoplayback10s",1E4,d)}}); this.events.S(this.api,g.bI("appad"),this.U);this.events.S(this.api,g.o1("appad"),this.U)}; gin=function(v,O,Y){if(!(Y in O))return!1;O=O[Y];Array.isArray(O)||(O=[O]);O=g.y(O);for(Y=O.next();!Y.done;Y=O.next()){Y=Y.value;var S={CPN:v.api.getVideoData().clientPlaybackNonce};Y=g.lp(Y,S);S=void 0;S=S===void 0?!1:S;(S=Hv(Nt(Y,W2E),Y,S,"Active View 3rd Party Integration URL"))||(S=void 0,S=S===void 0?!1:S,S=Hv(Nt(Y,z4E),Y,S,"Google/YouTube Brand Lift URL"));S||(S=void 0,S=S===void 0?!1:S,S=Hv(Nt(Y,syF),Y,S,"Nielsen OCR URL"));g.IM(Y,void 0,S)}return!0}; ib=function(v,O){Mv7(v,O).then(function(Y){g.IM(O,void 0,void 0,Y)})}; ms=function(v,O){O.forEach(function(Y){ib(v,Y)})}; Mv7=function(v,O){return g.lx(v.api.D())&&zn(O)&&Wf(O)?g.vO(v.api.D(),g.ez(v.api.getVideoData())).then(function(Y){var S;Y&&(S={Authorization:"Bearer "+Y});return S},void 0):Eq()}; Vvn=function(v){J4.call(this,v);this.events=new g.Z6(v);g.w(this,this.events);this.events.S(v,"videoready",function(O){if(v.getPresentingPlayerType()===1){var Y,S,d={playerDebugData:{pmlSignal:!!((Y=O.getPlayerResponse())==null?0:(S=Y.adPlacements)==null?0:S.some(function(r){var b;return r==null?void 0:(b=r.adPlacementRenderer)==null?void 0:b.renderer})), contentCpn:O.clientPlaybackNonce}};g.z2("adsClientStateChange",d)}})}; t4=function(v){g.K.call(this,{J:"button",hK:["ytp-button","ytp-autonav-toggle"],T:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},K:[{J:"div",W:"ytp-autonav-toggle-button-container",K:[{J:"div",W:"ytp-autonav-toggle-button",T:{"aria-checked":"true"}}]}]});this.N=v;this.U=[];this.Y=!1;this.isChecked=!0;v.createClientVe(this.element,this,113681);this.S(v,"presentingplayerstatechange",this.B6);this.listen("click",this.onClick);this.N.D().V("web_player_autonav_toggle_always_listen")&& AZm(this);$e(v,this.element,this);this.B6()}; AZm=function(v){v.U.push(v.S(v.N,"videodatachange",v.B6));v.U.push(v.S(v.N,"videoplayerreset",v.B6));v.U.push(v.S(v.N,"onPlaylistUpdate",v.B6));v.U.push(v.S(v.N,"autonavchange",v.jn))}; fWg=function(v){v.isChecked=v.isChecked;v.BW("ytp-autonav-toggle-button").setAttribute("aria-checked",String(v.isChecked));var O=v.isChecked?"Autoplay is on":"Autoplay is off";v.updateValue("title",O);v.updateValue("label",O);v.N.GG()}; $6w=function(v){return v.N.D().V("web_player_autonav_use_server_provided_state")&&PO(v.pP())}; kmd=function(v){J4.call(this,v);var O=this;this.events=new g.Z6(v);g.w(this,this.events);this.events.S(v,"standardControlsInitialized",function(){var Y=new t4(v);g.w(O,Y);v.UI(Y,"RIGHT_CONTROLS_LEFT")})}; DE=function(v,O){g.wB.call(this,g.Ih({role:"menuitemcheckbox","aria-checked":"false"}),O,v,{J:"div",W:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; H2=function(v,O){v.checked=O;v.element.setAttribute("aria-checked",String(v.checked))}; U6i=function(v){var O=!v.D().Iv&&v.getPresentingPlayerType()!==3;return v.isFullscreen()||O}; g.NG=function(v,O,Y,S){var d=v.currentTarget;if((Y===void 0||!Y)&&g.Fk(v))return v.preventDefault(),!0;O.pauseVideo();v=d.getAttribute("href");g.GX(v,S,!0);return!1}; g.vC=function(v,O,Y){if(nH(O.D())&&O.getPresentingPlayerType()!==2){if(g.Fk(Y))return O.isFullscreen()&&!O.D().externalFullscreen&&O.toggleFullscreen(),Y.preventDefault(),!0}else{var S=g.Fk(Y);S&&O.pauseVideo();g.GX(v,void 0,!0);S&&(g.iC(v),Y.preventDefault())}return!1}; uSn=function(v){v=cZ7.includes("en")?v.V("delhi_modern_web_player_icons")?Uli():{J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{J:"path",p_:!0,T:{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"}}]}:v.V("delhi_modern_web_player_icons")?{J:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{J:"path",p_:!0,T:{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.W="ytp-subtitles-button-icon";return v}; C4E=function(v){return cZ7.includes("en")?v?Uli():{J:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:v?{J:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},K:[{J:"path",T:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{J:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; Ot=function(){return{J:"div",W:"ytp-spinner-container",K:[{J:"div",W:"ytp-spinner-rotator",K:[{J:"div",W:"ytp-spinner-left",K:[{J:"div",W:"ytp-spinner-circle"}]},{J:"div",W:"ytp-spinner-right",K:[{J:"div",W:"ytp-spinner-circle"}]}]}]}}; YJ=function(v){if(document.createRange){var O=document.createRange();O&&(O.selectNodeContents(v),v=window.getSelection())&&(v.removeAllRanges(),v.addRange(O))}}; rp=function(v){var O=v.V("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";DE.call(this,O,g.SI.d1);var Y=this;this.N=v;this.Y=!1;this.U=new g.mX(function(){g.WI(Y.element,"ytp-menuitem-highlighted")},0); this.HT=v.Ds();v=v.V("delhi_modern_web_player_icons")?{J:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{J:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]};this.setIcon(v);this.subscribe("select",this.G,this);this.listen(dp,this.B);g.w(this,this.U)}; by=function(v){J4.call(this,v);var O=this;this.Y=!1;v.addEventListener("settingsMenuInitialized",function(){yZw(O)}); v.addEventListener("highlightSettingsMenu",function(Y){yZw(O);var S=O.menuItem;Y==="menu_item_cinematic_lighting"&&(g.on(S.element,"ytp-menuitem-highlighted"),g.on(S.element,"ytp-menuitem-highlight-transition-enabled"),S.U.start())}); v2(v,"updateCinematicSettings",function(Y){O.updateCinematicSettings(Y)})}; yZw=function(v){v.menuItem||(v.menuItem=new rp(v.api),g.w(v,v.menuItem),v.menuItem.q3(v.Y))}; aWF=function(v){J4.call(this,v);var O=this;this.events=new g.Z6(v);g.w(this,this.events);this.events.S(v,"applicationvideodatachange",function(Y,S){S=S.clipConfig;Y==="dataloaded"&&S&&S.startTimeMs!=null&&S.endTimeMs!=null&&O.api.setLoopRange({startTimeMs:Math.floor(Number(S.startTimeMs)),endTimeMs:Math.floor(Number(S.endTimeMs)),postId:S.postId,type:"clips"})})}; og=function(v){J4.call(this,v);this.events=new g.Z6(v);g.w(this,this.events);v2(v,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));v2(v,"setCreatorEndscreenHideButton",this.Y.bind(this))}; jI=function(v,O,Y,S){DE.call(this,"Stable Volume",g.SI.zP);g.on(this.element,"ytp-drc-menu-item");this.HT=v.Ds();this.G=O;this.Y=Y;this.hasDrcAudioTrack=S;v.addEventListener("videodatachange",this.U.bind(this));v.V("mta_drc_mutual_exclusion_removal")&&this.S(v,"onPlaybackAudioChange",this.U);O=this.Y()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());v=v.V("delhi_modern_web_player_icons")?{J:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{J:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]};this.setIcon(v);this.subscribe("select",this.B,this);H2(this,O);this.HT.L_(this)}; WC=function(v){J4.call(this,v);var O=this;this.events=new g.Z6(v);g.w(this,this.events);v.V("html5_show_drc_toggle")&&v.addEventListener("settingsMenuInitialized",function(){O.menuItem||(O.menuItem=new jI(O.api,O.setDrcUserPreference.bind(O),O.getDrcUserPreference.bind(O),O.U.bind(O)),g.w(O,O.menuItem))}); v2(this.api,"setDrcUserPreference",function(S){O.setDrcUserPreference(S)}); v2(this.api,"getDrcUserPreference",function(){return O.getDrcUserPreference()}); v2(this.api,"hasDrcAudioTrack",function(){return O.U()}); var Y;this.Y=(Y=g.Ly("yt-player-drc-pref"))!=null?Y:1;this.updateEnvironmentData()}; zC=function(v){J4.call(this,v);var O=this;this.Y={};this.events=new g.Z6(v);g.w(this,this.events);this.events.S(v,"videodatachange",function(){O.onVideoDataChange()}); this.events.S(v,g.bI("embargo"),function(Y){O.api.zF(!0);var S,d=(S=O.Y[Y.id])!=null?S:[];S=g.y(d);for(d=S.next();!d.done;d=S.next()){var r=d.value;O.api.hideControls();O.api.g4("auth",2,"This video isn't available in your current playback area",TB({embargoed:1,id:Y.id,idx:Y.U,start:Y.start}));d=void 0;(r=(d=r.embargo)==null?void 0:d.onTrigger)&&O.api.PW("innertubeCommand",r)}})}; x6E=function(v,O){var Y;return(Y=O.onEnter)==null?void 0:Y.some(v.U)}; pcF=function(v,O){O=g.y(O);for(var Y=O.next();!Y.done;Y=O.next()){Y=Y.value;var S=void 0,d=Number((S=Y.playbackPosition)==null?void 0:S.utcTimeMillis)/1E3,r=void 0;S=d+Number((r=Y.duration)==null?void 0:r.seconds);r="embargo_"+d;v.api.addUtcCueRange(r,d,S,"embargo",!1);Y.onEnter&&(v.Y[r]=Y.onEnter.filter(v.U))}}; gp=function(v){J4.call(this,v);var O=this;this.Y=[];this.events=new g.Z6(v);g.w(this,this.events);v2(v,"addEmbedsConversionTrackingParams",function(Y){O.api.D().o9&&O.addEmbedsConversionTrackingParams(Y)}); this.events.S(v,"veClickLogged",function(Y){O.api.hasVe(Y)&&(Y=Y.visualElement.getAsJspb(),Y=Ds(Y,2),O.Y.push(Y))})}; TQg=function(v){J4.call(this,v);v2(v,"isEmbedsShortsMode",function(){return v.isEmbedsShortsMode()})}; lWn=function(v){J4.call(this,v);var O=this;this.events=new g.Z6(v);g.w(this,this.events);this.events.S(v,"initialvideodatacreated",function(Y){FS(l4(),16623);O.Y=g.TS();var S=v.D().rf&&!Y.uO;if(RO(Y)&&S){FS(l4(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(Y.getWatchNextResponse()){var d,r=(d=Y.getWatchNextResponse())==null?void 0:d.trackingParams;r&&Ry(r)}if(Y.getPlayerResponse()){var b;(Y=(b=Y.getPlayerResponse())==null?void 0:b.trackingParams)&&Ry(Y)}}else FS(l4(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),Y.getEmbeddedPlayerResponse()&&(b=(r=Y.getEmbeddedPlayerResponse())==null?void 0:r.trackingParams)&&Ry(b)}); this.events.S(v,"loadvideo",function(){FS(l4(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:O.Y})}); this.events.S(v,"cuevideo",function(){FS(l4(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:O.Y})}); this.events.S(v,"largeplaybuttonclicked",function(Y){FS(l4(),27240,Y.visualElement)}); this.events.S(v,"playlistnextbuttonclicked",function(Y){FS(l4(),27240,Y.visualElement)}); this.events.S(v,"playlistprevbuttonclicked",function(Y){FS(l4(),27240,Y.visualElement)}); this.events.S(v,"playlistautonextvideo",function(){FS(l4(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; Mi=function(v,O){g.X.call(this);var Y=this;this.Y=null;this.G=O;O=[];for(var S=0;S<=100;S++)O.push(S/100);O={threshold:O,trackVisibility:!0,delay:1E3};(this.U=window.IntersectionObserver?new IntersectionObserver(function(d){d=d[d.length-1];typeof d.isVisible==="undefined"?document.visibilityState==="visible"&&d.isIntersecting&&d.intersectionRatio>0?Y.Y=d.intersectionRatio:document.visibilityState==="hidden"?Y.Y=0:Y.Y=null:Y.Y=d.isVisible?d.intersectionRatio:0;typeof Y.G==="function"&&Y.G(Y.Y)},O): null)&&this.U.observe(v)}; h4d=function(v){J4.call(this,v);var O=this;this.events=new g.Z6(v);g.w(this,this.events);this.events.S(v,"applicationInitialized",function(){F2m(O)})}; F2m=function(v){var O=v.api.getRootNode(),Y,S=v.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((Y=O.parentElement)==null?void 0:Y.parentElement)||O:O;v.Y=new Mi(S,function(d){d!=null&&(v.api.D().mU=d,v.api.D().J3="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.w(v,v.Y);v.events.S(v.api,"videoStatsPingCreated",function(d){var r=v.Y;r=r.Y==null?null:Math.round(r.Y*100)/100;d.inview=r!=null?r:void 0;r=v.api.getPlayerSize();if(r.height>0&&r.width>0){r=[Math.round(r.width),Math.round(r.height)];var b=g.KH();b>1&&r.push(b);r=r.join(":")}else r=void 0;d.size=r})}; R4$=function(v){var O;return((O=((v==null?void 0:v.messageRenderers)||[]).find(function(Y){return!!Y.timeCounterRenderer}))==null?void 0:O.timeCounterRenderer)||null}; V4=function(v){g.K.call(this,{J:"div",hK:["ytp-player-content","ytp-iv-player-content"],K:[{J:"div",W:"ytp-free-preview-countdown-timer",K:[{J:"span",M3:"{{label}}"},{J:"span",W:"ytp-free-preview-countdown-timer-separator",M3:"\u2022"},{J:"span",M3:"{{duration}}"}]}]});this.api=v;this.Y=null;this.G=this.U=0;this.S(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; Eim=function(v,O){v.Y||(v.U=O,v.G=(0,g.J)(),v.Y=new g.ip(function(){e4E(v)},null),e4E(v))}; e4E=function(v){var O=Math,Y=O.round,S=Math.min((0,g.J)()-v.G,v.U);O=Y.call(O,(v.U-S)/1E3);v.updateValue("duration",ay({seconds:O}));O<=0&&v.Y?v.stopTimer():v.Y&&v.Y.start()}; Qy1=function(v){J4.call(this,v);var O=this;this.events=new g.Z6(v);g.w(this,this.events);this.events.S(v,"basechromeinitialized",function(){O.Y=new V4(v);g.w(O,O.Y);g.TW(v,O.Y.element,4);O.Y.hide()})}; Ag=function(v){g.K.call(this,{J:"button",hK:["ytp-fullerscreen-edu-button","ytp-button"],K:[{J:"div",hK:["ytp-fullerscreen-edu-text"],M3:"Scroll for details"},{J:"div",hK:["ytp-fullerscreen-edu-chevron"],K:[{J:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},K:[{J:"path",T:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],T:{"data-priority":"2"}});this.r8=v;this.fade=new g.bC(this,250,void 0,100);this.U=this.Y=!1;v.createClientVe(this.element,this,61214);g.w(this, this.fade);this.S(v,"fullscreentoggled",this.q3);this.S(v,"presentingplayerstatechange",this.q3);this.listen("click",this.onClick);this.q3()}; fX=function(v){J4.call(this,v);var O=this;this.events=new g.Z6(v);g.w(this,this.events);v2(this.api,"updateFullerscreenEduButtonSubtleModeState",function(S){O.updateFullerscreenEduButtonSubtleModeState(S)}); v2(this.api,"updateFullerscreenEduButtonVisibility",function(S){O.updateFullerscreenEduButtonVisibility(S)}); var Y=v.D();v.V("external_fullscreen_with_edu")&&Y.externalFullscreen&&nH(Y)&&Y.controlsType==="1"&&this.events.S(v,"standardControlsInitialized",function(){O.Y=new Ag(v);g.w(O,O.Y);v.UI(O.Y)})}; L2g=function(v){g.K.call(this,{J:"div",W:"ytp-gated-actions-overlay",K:[{J:"div",W:"ytp-gated-actions-overlay-background",K:[{J:"div",W:"ytp-gated-actions-overlay-background-overlay"}]},{J:"button",hK:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],T:{"aria-label":"Close"},K:[g.pu()]},{J:"div",W:"ytp-gated-actions-overlay-bar",K:[{J:"div",W:"ytp-gated-actions-overlay-text-container",K:[{J:"div",W:"ytp-gated-actions-overlay-title",M3:"{{title}}"},{J:"div",W:"ytp-gated-actions-overlay-subtitle", M3:"{{subtitle}}"}]},{J:"div",W:"ytp-gated-actions-overlay-button-container"}]}]});var O=this;this.api=v;this.background=this.BW("ytp-gated-actions-overlay-background");this.U=this.BW("ytp-gated-actions-overlay-button-container");this.Y=[];this.S(this.BW("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){O.api.PW("onCloseMiniplayer")}); this.hide()}; ZsF=function(v,O){var Y=0;Y=0;for(var S={};Y d&&(d=z.width,r="url("+z.url+")")}Y.background.style.backgroundImage=r;ZsF(Y,S.actionButtons||[]);Y.show()}else Y.hide()}); g.TW(this.api,this.Y.element,4)}; $J=function(v){J4.call(this,v);var O=this;SE(this.api,"getSphericalProperties",function(){return O.getSphericalProperties()}); SE(this.api,"setSphericalProperties",function(){O.setSphericalProperties.apply(O,g.F(g.Bm.apply(0,arguments)))}); Ye(this.api,"getSphericalProperties",function(){return O.api.getPresentingPlayerType()===2?{}:O.getSphericalProperties()}); Ye(this.api,"setSphericalProperties",function(){var Y=g.Bm.apply(0,arguments);O.api.getPresentingPlayerType()!==2&&O.setSphericalProperties.apply(O,g.F(Y))})}; kJ=function(v){J4.call(this,v);v2(v,"createClientVe",this.createClientVe.bind(this));v2(v,"createServerVe",this.createServerVe.bind(this));v2(v,"destroyVe",this.destroyVe.bind(this));v2(v,"hasVe",this.hasVe.bind(this));v2(v,"logClick",this.logClick.bind(this));v2(v,"logVisibility",this.logVisibility.bind(this));v2(v,"setTrackingParams",this.setTrackingParams.bind(this))}; Ut=function(v,O,Y,S){function d(b){var z=!(b.status!==204&&b.status!==200&&!b.response),M;b={succ:""+ +z,rc:b.status,lb:((M=b.response)==null?void 0:M.byteLength)||0,rt:((0,g.J)()-r).toFixed(),shost:g.c4(v),trigger:O};wci(b,v);Y&&Y(b);S&&!z&&S(new lJ("pathprobe.net",b))} var r=(0,g.J)();g.pS(v,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:d,onTimeout:d})}; wci=function(v,O){var Y;((Y=window.performance)==null?0:Y.getEntriesByName)&&(O=performance.getEntriesByName(O))&&O.length&&(O=O[0],v.pedns=(O.domainLookupEnd-O.startTime).toFixed(),v.pecon=(O.connectEnd-O.domainLookupEnd).toFixed(),v.perqs=(O.requestStart-O.connectEnd).toFixed(),IWJ&&(v.perqsa=O.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; qRF=function(v){IWJ=v}; cC=function(v,O){this.C_=v;this.policy=O;this.playbackRate=1}; nin=function(v,O){var Y=Math.min(2.5,Vg(v.C_));v=uy(v);return O-Y*v}; CX=function(v,O,Y,S,d){d=d===void 0?!1:d;if(v.policy.l4)return Math.ceil(v.policy.l4*O);v.policy.Cy&&(S=Math.abs(S));S/=v.playbackRate;var r=1/$k(v.C_);Y=Math.max(.9*(S-3),Vg(v.C_)+v.C_.U.Y*r)/r*.8/(O+Y);Y=Math.min(Y,S);v.policy.pM>0&&d&&(Y=Math.max(Y,v.policy.pM));return JZF(v,Y,O)}; JZF=function(v,O,Y){return Math.ceil(Math.max(Math.max(v.policy.GF,v.policy.n$*Y),Math.min(Math.min(v.policy.AK,31*Y),Math.ceil(O*Y))))||v.policy.GF}; K21=function(v,O,Y){Y=CX(v,O.Y.info.b3,Y.Y.info.b3,0);var S=Vg(v.C_)+Y/$k(v.C_);return Math.max(S,S+v.policy.j9-Y/O.Y.info.b3)}; uy=function(v){return $k(v.C_,!v.policy.ME,v.policy.zK)}; y4=function(v){return uy(v)/v.playbackRate}; ag=function(v,O,Y){var S=v.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],d=v.policy.playbackStartPolicy.startMinReadaheadPolicy||[];v=Infinity;O=g.y(O&&S.length>0?S:d);for(S=O.next();!S.done;S=O.next())S=S.value,d=S.minReadaheadMs||0,Y<(S.minBandwidthBytesPerSec||0)||v>d&&(v=d);return v0&&(this.U=Y.L$)}; ism=function(v,O,Y,S,d){if(!S.info.Z){if(Y.length===0)Y.push(S);else{var r;(v=(r=Y.pop())==null?void 0:g.S$(r,S))?Y.push(v):Y.push(S)}return d}var b;(Y=(b=Y.pop())==null?void 0:g.S$(b,S))||(Y=S);if(v.policy.PT&&Y.info.U)return v.logger&&v.logger({incompleteSegment:Y.info.d2()}),d;S=v.bD(Y);d=S.Vx;S={clipId:S.clipId,formatId:S.formatId,startTimeMs:S.startTimeMs,durationMs:S.L8,z8:d,Qi:d};d=P4g(O,S.startTimeMs);if(r=Y=d>=0?O[d]:null){r=S;var z=d;b=Y.startTimeMs+Y.durationMs;var M=r.startTimeMs+r.durationMs; if(r.startTimeMs-b>v.U)r=!1;else if(Gmd(v,Y.formatId,r.formatId))Y.durationMs=Math.max(b,M)-Y.startTimeMs,Y.Qi=Math.max(Y.Qi,r.Qi),r=!0;else if(Math.abs(Y.startTimeMs-r.startTimeMs)<=v.U)if(Y.durationMs>r.durationMs+v.U){var V=Y.formatId,A=Y.z8;z=Y.Qi;Y.formatId=r.formatId;Y.durationMs=r.durationMs;Y.z8=r.z8;Y.Qi=r.Qi;r.formatId=V;r.startTimeMs=M;r.durationMs=b-M;r.z8=A;r.Qi=z;r=!1}else Y.formatId=r.formatId,r=!0;else b>r.startTimeMs&&(b>M&&(O.splice(z+1,0,{formatId:Y.formatId,startTimeMs:M,durationMs:b- M,z8:r.Qi+1,Qi:Y.Qi}),v.logger&&v.logger({splitOldStart:(V=Y.startTimeMs)==null?void 0:V.toFixed(3),splitOldEnd:b==null?void 0:b.toFixed(3),splitNewStart:(A=r.startTimeMs)==null?void 0:A.toFixed(3),splitNewEnd:M==null?void 0:M.toFixed(3)})),Y.durationMs=r.startTimeMs-Y.startTimeMs,Y.Qi=r.z8-1),r=!1}r?S=Y:(d+=1,O.splice(d,0,S));V=0;for(A=d+1;A=M+Y.U?Y=!0:z+Y.U=0?v:-v-2}; m6E=function(v,O){if(v.A$){var Y=v.A$.UM();if(Y.length!==0){if(v.G&&O){var S=v.G,d=S.info.B;!so(Y,d)&&S.info.L>0&&(0,g.J)()-v.C<5E3&&(v.logger&&v.logger({dend:S.info.d2()}),Y=FC$(Y,d,d+.01))}v.policy.NE&&v.logger&&v.logger({cbri:""+v.Y});S=[];for(var r=d=0;d=b){var A=Object.assign({},v.cD[r]),f=v.WW.G.get(TD(v.cD[r].formatId)),k=Math.max(M,b);b=f.index.cE(k+v.U/ 1E3);M=f.index.getStartTime(b);var U=b+ +(Math.abs(M-k)>v.U/1E3);k=U+v.B;U=f.index.getStartTime(U)*1E3;r!==v.Y||O?(A.z8=k,A.startTimeMs=U):(v.logger&&v.logger({pEvict:"1",og:A.startTimeMs,adj:M*1E3}),A.z8=b+v.B,A.startTimeMs=M*1E3);b=void 0;M=((b=v.G)==null?void 0:b.info.duration)||11;r===v.Y&&zv.U/1E3);b=M+v.B;f=f.index.Fq(M)*1E3;A.Qi=b;A.durationMs=f-A.startTimeMs;A.z8<=A.Qi&&S.push(A)}V=0&&hg(v.audioTrack,v.Y)>=0&&r?((v.videoTrack.Z||v.audioTrack.Z)&&v.loader.G0("iterativeSeeking",{status:"done",count:v.seekCount}),v.videoTrack.Z=!1,v.audioTrack.Z=!1):S&&g.yP(function(){if(v.U||!v.policy.n1)Et(v);else{var b=O.startTime,z=O.duration;if(!v.policy.Z){var M=Y?v.videoTrack.Z:v.audioTrack.Z,V=v.videoTrack.C!==-1&&v.audioTrack.C!==-1,A=v.Y>=b&&v.Y432E3&&TCF(v.WW);v.G&&(d=v.G,v.G=0);g.yP(function(){v.policy.Z||Q4(v,d,102)}); v.loader.G0("initManifestlessSync",{st:d,ost:d+v.loader.En(),a:v.audioTrack.C,v:v.videoTrack.C});v.B&&(v.B.resolve(d+.1),v.B=null);v.policy.Z&&Q4(v,d,102)}}}; Zm=function(v,O){var Y=this;this.BT=v;this.requestNumber=++jaJ;this.Y=this.now();this.X=this.j=NaN;this.L=this.Y;this.G=this.rR=this.Z=0;this.C=this.Y;this.yx=this.Ug=this.FO=this.yC=this.PT=this.JK=this.U=this.B=0;this.tK=this.isActive=!1;this.Cj=this.n1=0;this.Qg={p13:function(){return Y.DI}}; this.C_=O.C_;this.snapshot=Smg(this.C_);this.policy=this.C_.U;this.eG=!!O.eG;this.zR=O.zR;this.sy=O.sy||0;this.kN=O.kN||0;O.s0&&(this.N3=new rw);var S;this.DI=(S=O.DI)!=null?S:!1;this.eG||v71(this.C_)}; WIg=function(v){v.FO=Math.max(v.FO,v.Z-v.PT);v.Ug=Math.max(v.Ug,v.L-v.yC);v.JK=0}; XZ=function(v,O,Y){Oz3(v.C_,O);v.N3&&(v.N3.add(Math.ceil(O)-Math.ceil(v.L)),v.N3.add(Math.max(0,Math.ceil(Y/1024)-Math.ceil(v.Z/1024))));var S=O-v.L,d=Y-v.Z;v.rR=d;v.yx=Math.max(v.yx,d/(S+.01)*1E3);v.L=O;v.Z=Y;v.JK&&Y>v.JK&&WIg(v)}; wp=function(v,O){v.url=O;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; Ig=function(v,O){Zm.call(this,v,O);this.Mj=this.Te=!1;this.g8=this.HW=Infinity;this.AK=NaN;this.pj=!1;this.xg=NaN;this.R1=this.XO=this.f1=0;this.XW=O.XW||1;this.tV=O.tV||this.XW;this.yc=O.yc;this.Vx=O.Vx;this.No=O.No;zz3(this);this.lJ(this.Y);this.On=(this.xg-this.Y)/1E3}; sa3=function(v){var O=v.XO||v.f1;return O?v.snapshot.delay+Math.min(v.kN,(v.X-v.j)/1E3)+O:v.On}; qi=function(v,O,Y){if(!v.eG){O=Math.max(O,.01);var S=v.sy?Math.max(O,Y/v.sy):O,d=v.C_.U.G;d&&(S=O,v.sy&&(S=Math.max(O,Y/v.sy*d)));sU(v.C_,O,Y,S)}}; g$7=function(v){return(v.C-v.Y)/1E3}; zz3=function(v){v.AK=v.Y+v.snapshot.delay*1E3;v.pj=!1}; nX=function(v,O){if(v.yc&&v.Vx!==void 0&&v.No!==void 0){var Y=Math,S=Y.min,d=v.HW;var r=v.yc;var b=v.Y;if(MZJ(r,v.Vx))r=O;else{var z=0;r.mF&&(z=.2);r=b+(r.kN+z)*1E3}v.HW=S.call(Y,d,r);Y=Math;S=Y.min;d=v.g8;r=v.yc;b=v.Y;z=VZ3(r,v.Vx,v.No);z!==2&&(O=z?O:b+r.kN*1E3,r.mF&&(O+=r.kN*1E3));v.g8=S.call(Y,d,O);v.HW<=v.Y?zz3(v):(v.AK=v.HW,v.pj=!0)}}; AKF=function(v,O){if(v.Ej(O,1)){var Y=v.getUint8(O);Y=Y<128?1:Y<192?2:Y<224?3:Y<240?4:5}else Y=0;if(Y<1||!v.Ej(O,Y))return[-1,O];if(Y===1)v=v.getUint8(O++);else if(Y===2)Y=v.getUint8(O++),v=v.getUint8(O++),v=(Y&63)+64*v;else if(Y===3){Y=v.getUint8(O++);var S=v.getUint8(O++);v=v.getUint8(O++);v=(Y&31)+32*(S+256*v)}else if(Y===4){Y=v.getUint8(O++);S=v.getUint8(O++);var d=v.getUint8(O++);v=v.getUint8(O++);v=(Y&15)+16*(S+256*(d+256*v))}else Y=O+1,v.focus(Y),ax(v,Y,4)?v=Lcn(v).getUint32(Y-v.J2,!0):(S= v.getUint8(Y+2)+256*v.getUint8(Y+3),v=v.getUint8(Y)+256*(v.getUint8(Y+1)+256*S)),O+=5;return[v,O]}; Jg=function(v){this.BT=v;this.Y=new c3}; KX=function(v,O){this.info=v;this.callback=O;this.state=1;this.HZ=this.UF=!1;this.Np=null}; fv3=function(v){return g.HL(v.info.Id,function(O){return O.type===3})}; PC=function(v,O,Y,S){var d=this;S=S===void 0?{}:S;this.policy=O;this.BT=Y;this.status=0;this.Y=new c3;this.U=0;this.vW=this.B=this.G=!1;this.xhr=new XMLHttpRequest;this.xhr.open(S.method||"GET",v);if(S.headers)for(v=S.headers,O=g.y(Object.keys(v)),Y=O.next();!Y.done;Y=O.next())Y=Y.value,this.xhr.setRequestHeader(Y,v[Y]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return d.t0()}; this.xhr.onload=function(){return d.onDone()}; this.xhr.onerror=function(){return d.onError()}; this.xhr.fetch(function(r){d.Y.append(r);d.U+=r.length;r=(0,g.J)();d.BT.LL(r,d.U)},function(){},S.body||null)}; iy=function(){this.U=this.qk=0;this.Y=Array.from({length:GC.length}).fill(0)}; $DJ=function(){}; kiE=function(){this.startTimeMs=(0,g.J)();this.Y=!1}; UDQ=function(){this.Y=new $DJ}; cKg=function(v,O,Y,S){S=S===void 0?1:S;Y>=0&&(O in v.Y||(v.Y[O]=new iy),v.Y[O].Y8(Y,S))}; uYl=function(v,O,Y,S,d){var r=(0,g.J)(),b=d?d(O):void 0,z;d=(z=b==null?void 0:b.qk)!=null?z:1;if(d!==0){var M;z=(M=b==null?void 0:b.profile)!=null?M:Y;cKg(v,z,r-S,d)}return O}; mW=function(v,O,Y,S,d){if(O&&typeof O==="object"){var r=function(b){return uYl(v,b,Y,S,d)}; if(sR(O))return O.then(r);if(zm(O))return fs(O,r)}return uYl(v,O,Y,S,d)}; CB7=function(){}; yKi=function(v,O){this.U=(new TextEncoder).encode(v);this.Y=(new TextEncoder).encode(O)}; AXl=function(v,O){var Y,S,d;return g.B(function(r){if(r.U==1){if(!O)return r.return(O);Y=tg.HO();S=new g.a9(v.U);return g.E(r,S.encrypt(O,v.Y),2)}d=r.Y;tg.qI("woe",Y,Math.ceil(O.byteLength/16));return r.return(d)})}; cXi=function(v,O){var Y,S,d;return g.B(function(r){if(r.U==1){if(!O)return r.return(O);Y=tg.HO();S=new g.a9(v.U);return g.E(r,S.decrypt(O,v.Y),2)}d=r.Y;tg.qI("wod",Y,Math.ceil(O.byteLength/16));return r.return(d)})}; xDm=function(v,O){var Y=this;this.Y=v;this.BT=O;this.loaded=this.status=0;this.error="";v=hV(this.Y.get("range")||"");if(!v)throw Error("bad range");this.range=v;this.U=new c3;avm(this).then(function(){Y.BT.Ft()},function(S){Y.error=""+S||"unknown_err"; Y.BT.Ft()})}; avm=function(v){var O,Y,S,d,r,b,z,M,V,A,f,k,U,c,a;return g.B(function(x){if(x.U==1){v.status=200;O=v.Y.get("docid");Y=Mn(v.Y.get("fmtid")||"");S=v.Y.get("lmt")||"0";d=+(v.Y.get("csz")||0);if(!O||!Y||!d)throw Error("Invalid local URL");v.Y.get("ck")&&v.Y.get("civ")&&(r=new yKi(v.Y.get("ck"),v.Y.get("civ")));b=v.range;z=Math.floor(b.start/d);M=Math.floor(b.end/d);V=z}if(x.U!=5)return V<=M?g.E(x,uK3(O,Y,S,V,r),5):x.d8(0);A=x.Y;if(A===void 0)throw Error("invariant: data is undefined");f=V*d;k=(V+1)*d; U=Math.max(0,b.start-f);c=Math.min(b.end+1,k)-(U+f);a=new Uint8Array(A.buffer,U,c);v.U.append(a);v.loaded+=c;v.loaded=400?(v.lastError="net.badstatus",!0):(d===void 0?0:d)?(v.lastError="ump.spsrejectfailure",!0):Y||S!==void 0&&S?!1:(v.lastError=O===204?"net.nocontent":"net.connect",!0)}; rq=function(v,O){if(v.policy.hB)return!1;var Y=O.getResponseHeader("content-type"),S=O.Ec();v=!S||S<=v.policy.V8;return(!O.dB()||!Y||Y.indexOf("text/plain")!==-1)&&v}; Qal=function(v,O){var Y="";O=O.xd();O.getLength()<=v.policy.V8&&(Y=E$g(v,O.ov()));return Y}; E$g=function(v,O){var Y=TM(O);return vZ(Y)?(v.logger.debug(function(){return"Redirecting to "+Y}),Y):""}; OD=function(v){return uZ(v.G,pA(v.Jl.PE))}; LIi=function(v){var O=v.timing.qw();O.shost=pA(v.Jl.PE);return O}; BiF=function(v,O){return(v==null?void 0:v.maxWidth)>(O==null?void 0:O.maxWidth)||(v==null?void 0:v.maxHeight)>(O==null?void 0:O.maxHeight)}; ZAw=function(v,O){for(var Y=g.y(O.keys()),S=Y.next();!S.done;S=Y.next())if(S=O.get(S.value),S.length!==0){g.R8(S,function(z,M){return M.maxFramerate-z.maxFramerate}); for(var d=[S[0]],r=0,b=1;bv.Y||Y.push(S)}return Y}; bW=function(v,O,Y){var S=Ivw[v]||[];Y.V("html5_shorts_onesie_mismatched_fix")&&(S=qG1[v]||[]);O.push.apply(O,g.F(S));Y.V("html5_early_media_for_drm")&&O.push.apply(O,g.F(n$g[v]||[]))}; mDw=function(v,O){var Y=g.YL(v),S=v.D(),d=S.Z;S=S.V("html5_shorts_onesie_mismatched_fix");var r=v.wy();if(S){if(!d.U){if(r&&o3)return o3;if(j8)return j8}}else if(j8&&!d.U)return j8;var b=[],z=[],M={},V=WX.concat(JKd);S&&(V=WX.concat(KIJ));v.V("html5_early_media_for_drm")&&(V=V.concat(PB7),v.V("allow_vp9_1080p_mq_enc")&&V.push(Gig));var A=[].concat(g.F(iAE));v.V("html5_iamf_audio_onesie_fmt")&&A.push(["773"]);V=g.y(V);for(var f=V.next();!f.done;f=V.next()){var k=!1;f=g.y(f.value);for(var U=f.next();!U.done;U= f.next()){U=U.value;var c=Yf(U,r&&S);if(c&&c.video&&!(D6(c)&&!Y.HW&&c.video.qualityOrdinal>Y.vP)){var a=g.Vq(v.D().experiments,"html5_drm_byterate_soft_cap");a>0&&TY3(c)&&c.b3>a||(k?(b.push(U),bW(U,b,v)):(c=fA(Y,c,d),c===!0?(k=!0,b.push(U),bW(U,b,v)):M[U]=c))}}}A=g.y(A);for(V=A.next();!V.done;V=A.next())for(V=g.y(V.value),k=V.next();!k.done;k=V.next())if(k=k.value,(f=pqn(k))&&f.audio&&(v.V("html5_onesie_51_audio")||!Ha(f)&&!Nu(f)))if(f=fA(Y,f,d),f===!0){z.push(k);bW(k,z,v);break}else M[k]=f;if(v.V("html5_block_onesie_hqa_fmt_by_default")&& !v.V("html5_enable_audio_quality_setting"))for(v=g.y(["141","774"]),A=v.next();!A.done;A=v.next())A=A.value,z.includes(A)&&(g.$Y(z,A),M[A]="blkhqa");Y.U&&O("orfmts",M);if(S)return d.U&&(d.U=!1,o3=j8=void 0),r?o3={video:b,audio:z}:j8={video:b,audio:z};j8={video:b,audio:z};d.U=!1;return j8}; g.HAn=function(v,O,Y){var S=Y.Z,d=[],r=[],b=Y.V("html5_shorts_onesie_mismatched_fix");v=v.wy();var z=WX.concat(JKd);b&&(z=WX.concat(KIJ));Y.V("html5_early_media_for_drm")&&(z=z.concat(PB7),Y.V("allow_vp9_1080p_mq_enc")&&z.push(Gig));var M=[].concat(g.F(iAE));Y.V("html5_iamf_audio_onesie_fmt")&&M.push(["773"]);z=g.y(z);for(var V=z.next();!V.done;V=z.next()){V=g.y(V.value);for(var A=V.next();!A.done;A=V.next()){A=A.value;var f=Yf(A,v&&b);if(f&&f.video){var k=g.Vq(Y.experiments,"html5_drm_byterate_soft_cap"); if(!(k>0&&TY3(f)&&f.b3>k)&&fA(O,f,S)===!0){d.push({videoCodec:tZg[KD[A]],maxWidth:f.video.width,maxHeight:f.video.height,maxFramerate:f.video.fps});break}}}}b=g.y(M);for(v=b.next();!v.done;v=b.next())for(v=g.y(v.value),M=v.next();!M.done;M=v.next())if(M=M.value,(z=pqn(M))&&z.audio&&(Y.V("html5_onesie_51_audio")||!Ha(z)&&!Nu(z))&&fA(O,z,S)===!0){r.push({audioCodec:DDm[KD[M]],numChannels:z.audio.numChannels});break}return{videoFormatCapabilities:d,audioFormatCapabilities:r}}; sD=function(v){var O={},Y=v.Og,S=v.Qx,d=Y.getVideoData(),r=Iy(0),b=Y.getPlayerSize(),z=Y.getVisibilityState();if(S.V("html5_enable_audio_quality_setting")){var M=g.Vq(S.experiments,"html5_default_audio_quality_setting_lr"),V;O.XA=(V=Ni7[M])!=null?V:0}r&&(O.b10=r,O.lastManualDirection=nVF(),r=mA7()||0,r>0&&(r=(S.V("html5_use_date_now_for_local_storage")?Date.now():(0,g.J)())-r,S.V("html5_use_date_now_for_local_storage")?r>0&&(O.timeSinceLastManualFormatSelectionMs=r):O.timeSinceLastManualFormatSelectionMs= r));r=S.V("html5_use_streamer_bandwidth_for_low_latency_live")&&d.isLowLatencyLiveStream;if(S.schedule.tK&&!r){var A;r=S.V("html5_disable_bandwidth_cofactors_for_sabr_live")?!((A=v.rK)==null||!A.ME):!1;O.oP=$k(S.schedule,!r)}A=g.KH();M=g.IA.medium;V=Math.floor(M*16/9);var f=d.wy();if(r=S.V("html5_fix_vieport_for_vertical_video"))if(r=d.Y&&d.G&&d.G.videoInfos.length!==0)r=d.G.videoInfos[0],r=!!r.video&&r.video.width0?v.NT:[1,2];v.sabrLicenseConstraint&&(O.sabrLicenseConstraint=v.sabrLicenseConstraint);if(S.V("html5_onesie_media_capabilities")||S.V("html5_enable_server_format_filter"))O.Wf=3;S.V("html5_onesie_audio_only_playback")&&NC(d)&&(O.Wf=1);var Q;((Q=v.rK)==null?0:Q.w2)&&v.ax&&(O.Wf=O.Wf===void 0?7:O.Wf|4);k=d.q8?d.q8:g.YL(d);S.V("html5_onesie_media_capabilities")&&(O.mediaCapabilities=g.HAn(d,k,S));var L;if((L=v.rK)==null?0:zJ(L)){c=S.Z;L=[];U=[];a= new Map;x=Array.from(c.Y.values());x=g.y(x);for(T=x.next();!T.done;T=x.next())l=T.value,l.hM?U.push({audioCodec:DDm[l.z0],numChannels:l.numChannels,spatialCapabilityBitmask:vRE[l.z0]}):(Q=tZg[l.z0],T={videoCodec:Q,maxWidth:l.maxWidth||0,maxHeight:l.maxHeight||0,maxFramerate:l.maxFramerate||0,is10BitSupported:l.Wc||!1},l.maxBitrateBps&&(T.maxBitrateBps=l.maxBitrateBps,z=Yf(l.itag),b=void 0,((b=z)==null?0:b.video)&&fA(k,z,c)===!0&&(z=z.b3*8,z>T.maxBitrateBps&&(T.maxBitrateBps=z))),l=Q+"_"+l.Wc,Q=a.get(l)|| [],Q.push(T),a.set(l,Q));L=ZAw(L,a);c={};S.V("html5_ssff_denylist_opus_low")&&(c={itagDenylist:[249,350]});O.mediaCapabilities={videoFormatCapabilities:L,audioFormatCapabilities:U,hdrModeBitmask:3,perPlaybackAttributes:c}}var I;if((I=v.rK)==null?0:I.Y){O.Lv=k.Lv;var t;O.vP=(t=v.rK)==null?void 0:t.vP}S.uO&&(O.kS=S.uO);O.Z3=v.JD;O.td=v.td;O.UN=v.UN;O.Z8=v.Z8;v.gQ&&(O.P6s=(0,g.J)()-v.gQ);v.isPrefetch&&S.V("html5_report_prefetch_requests")&&(O.isPrefetch=!0);Df||(O.rK8=!0);I=Vg(S.schedule)*1E3;I>0&&(O.nV= I);var P;((P=v.rK)==null?0:P.jy)&&v.u2&&v.u20?YQ:S.schedule.interruptions[0]||0);var dF;if((dF=v.rK)==null?0:dF.Mj)O.Jn=v.Jn;if(d.c7||S.On)O.audioTrackId=d.c7||S.On;if(Lh(d)&& !O.audioTrackId){var N;a:{var j1,D,yd;dF=(j1=d.playerResponse)==null?void 0:(D=j1.playerConfig)==null?void 0:(yd=D.compositeVideoConfig)==null?void 0:yd.sourceConfigs;var pn,Qd;j1=(N=d.playerResponse)==null?void 0:(pn=N.playerConfig)==null?void 0:(Qd=pn.compositeVideoConfig)==null?void 0:Qd.defaultActiveSourceVideoId;if(dF&&j1)for(N=g.y(dF),pn=N.next();!pn.done;pn=N.next())if(pn=pn.value,pn.videoId===j1&&pn.audioTracks)for(pn=g.y(pn.audioTracks),Qd=pn.next();!Qd.done;Qd=pn.next())if(Qd=Qd.value,Qd.isDefaultForSource){N= Qd.id||"";break a}N=""}O.audioTrackId=N;d==null||d.G0("misstrkchg",{"default":O.audioTrackId})}var uL;if((uL=v.rK)==null?0:uL.WQ)if(v=aYl())O.detailedNetworkType=Occ[v]||Occ.other;S.V("html5_enable_voice_boost")&&(O.LE8=S.kq);return O}; gq=function(v,O,Y,S,d,r,b){var z={};O&&(z.BZ=O);if(!v)return z;z.playbackCookie=Y==null?void 0:Y.playbackCookie;d&&(z.yM=d);z.hZ=[];z.C4=[];if(b==null?0:b.size)for(O=g.y(b.values()),Y=O.next();!Y.done;Y=O.next())z.C4.push(Y.value);if(v.sabrContextUpdates.size>0)for(O=g.y(v.sabrContextUpdates.values()),Y=O.next();!Y.done;Y=O.next())YZJ(z,Y.value,S);Ol(v)&&r&&YZJ(z,r,S);v.w9&&(z.gN8=v.w9);S=v.D().Y;z.clientInfo={clientName:SZE[S.c.toUpperCase()]||0};S.cbrand&&(z.clientInfo.deviceMake=S.cbrand);S.cmodel&& (z.clientInfo.deviceModel=S.cmodel);S.cver&&(z.clientInfo.clientVersion=S.cver);S.cos&&(z.clientInfo.osName=S.cos);S.cosver&&(z.clientInfo.osVersion=S.cosver);S=v.D();S.V("html5_sabr_enable_server_xtag_selection")&&S.N2&&(z.clientInfo.hl=S.N2);v.aX&&(z.aX=v.aX);return z}; YZJ=function(v,O,Y){var S=O.type||0;(Y==null?0:Y.has(S))?v.C4.push(O):v.hZ.push(S)}; ly=function(v,O,Y,S,d,r){var b=r===void 0?{}:r;var z=b.fl===void 0?[]:b.fl;var M=b.fQ===void 0?!1:b.fQ;var V=b.dJ===void 0?0:b.dJ;var A=b.poToken===void 0?"":b.poToken;var f=b.Y_===void 0?void 0:b.Y_;var k=b.jo===void 0?"":b.jo;var U=b.SN===void 0?0:b.SN;var c=b.WE===void 0?new Uint8Array(0):b.WE;var a=b.Iw===void 0?!1:b.Iw;r=b.i4===void 0?0:b.i4;b=b.BZ===void 0?void 0:b.BZ;KX.call(this,O,d);var x=this;this.policy=v;this.logger=new g.vY("dash/request");this.JL=this.rT=0;this.UV=!1;this.uS=this.LD= null;this.vk=!1;this.WE=this.SN=null;this.Qv=this.gX=!1;this.g5=null;this.i4=this.r0=0;this.ph=!1;this.Qg={uM:function(l){x.uM(l)}, oic:function(){return x.Np}, Jx0:function(l){x.Np=l}, ma4:function(l){x.rT=l}, da1:function(l){x.Fh.lastError=l}, TL:function(){return x.xhr}}; this.timing=new Ig(this,Y);this.fQ=M;this.SN=U;this.WE=c;this.Jl=g.JV(this.info,this.policy,S);this.Jl.set("rn",this.zH().toString());this.Jl.set("rbuf",(V*1E3).toFixed().toString());this.fQ&&this.Jl.set("smb","1");this.policy.d6&&A&&this.Jl.set("pot",A);k&&this.Jl.set("bbs",k);this.policy.useUmp&&!Ti(this.Jl.PE)&&(this.cS=new Jg(this),this.Jl.set("ump","1"),this.Jl.set("srfvp","1"));if(v=this.policy.Jp?this.policy.O0&&!isNaN(this.info.No)&&this.info.No>this.policy.iF?!1:!0:!1)O=null,this.policy.bj&& this.policy.Ve?O=[1]:a&&(O=[]),O!=null&&(this.policy.jw&&O.push(2),this.Jl.set("defsel",O.join(",")));this.Fh=new vX(this,this.policy,this.Jl,this.info.m9,this.timing,this.logger,S,f);this.fl=z||null;this.HZ=dYg(this);FIJ(this.Fh);S=void 0;if(this.policy.eK||this.cS||this.policy.FO)S={method:"POST"},z=(0,g.Mq)([120,0]),f={},this.policy.oU&&b&&(b=gq(void 0,b),f.d9=b),this.policy.SP&&this.WE&&(f.videoPlaybackUstreamerConfig=this.WE),this.policy.FO&&(b=this.info.B)&&Object.assign(f,b),Object.keys(f).length> 0?S.body=g.H3(f,g.OG):S.body=z;if(this.SN&&this.WE){this.Jl.set("iwts","1");S={method:"POST"};b={Z8:this.SN*1E3};var T;z=(T=this.info.B)==null?void 0:T.Yq;T=g.H3({R2:b,Yq:z||void 0,videoPlaybackUstreamerConfig:this.WE},g.OG);S.body=T}try{this.xhr=Dm(this.Jl,this.policy.L,this.timing,v,S),this.Fh.U.start(),r&&(this.rr=new g.mX(this.iG,r,this),this.rr.start(r+(this.timing.C_.X.In()||0)*1E3)),this.policy.E3&&wp(this.timing,this.Sp()),this.logger.debug(function(){return"Sent, itag="+x.Jl.get("itag")+ " seg="+x.info.Id[0].Vx+" range="+x.Jl.get("range")+" time="+Math.round(x.info.Id[0].B)+"-"+Math.round(g.zw(x.info.Id).C)+" rtp="+(x.timing.S5()-Date.now()).toFixed(0)}),g.yP(function(){})}catch(l){rVE(this,l,!0)}}; dYg=function(v){if(!(nc(v.info)&&v.info.DI()&&v.policy.lO&&v.fl)||v.info.m9.G>=2||Iy()>0||!Gb3())return!1;var O=v.Jl.get("aitags");if(!O)return!1;O=Mn(O).split(",");for(var Y=[],S=g.y(v.fl),d=S.next();!d.done;d=S.next())d=d.value,g.Vv(O,d)&&Y.push(d);if(!Y.length)return!1;v.Jl.set("altitags",g.gn(Y.join(",")));return!0}; rVE=function(v,O,Y){Y=Y===void 0?!1:Y;g.LP(O);v.Fh.lastError="player.exception";v.errorMessage=O.name+"_"+O.message;Y?g.yP(function(){S8(v.Fh)}):S8(v.Fh)}; bc7=function(v,O){v.timing.tK=!0;v.xhr.dB()&&v.timing.s9();if(v.policy.oI){var Y;(Y=v.rr)==null||Y.stop()}Ni(v.Np,O,!1)}; oRn=function(v,O){v.info=O;if(v.Np){var Y=v.Np;O=O.Id;(O.length!==Y.Id.length||O.length0){O=g.y(O.Id);for(var Y=O.next();!Y.done;Y=O.next()){var S=void 0;v+=((S=Y.value.range)==null?void 0:S.length)||0}return v}if(O.GN.length>0)for(Y=g.y(O.GN),S=Y.next();!S.done;S=Y.next())v+=S.value.xj||0;return v+O.uI}; uW=function(v,O){if(km){var Y=0;v=v.DU.get(O);if(v==null||!v.iq)return 0;v=g.y(v.iq.values());for(O=v.next();!O.done;O=v.next())Y+=O.value.data.getLength();return Y}return((Y=v.DU.get(O))==null?void 0:Y.yr.getLength())||0}; C$=function(v,O){v=v.DU.get(O);if(km){if(v==null||!v.xt)return!1;O=v.iq.size>0;return v.D7.length>0||O}return!(v==null||!v.xt)&&!(v==null||!v.yr.getLength())}; MMF=function(v,O){var Y=v.DU.get(O),S=gRc(v,O),d=!S&&!!Y.bytesReceived;if(km){var r;if((r=v.WW)==null?0:r.FL){v=g.y(Y.iq.values());for(O=v.next();!O.done;O=v.next())if(!O.value.O5)return!1;return d}}else if(r=v.zM(O),d&&v.Y&&r!==void 0)return r;return(d||Y.bytesReceived===S)&&Y.eJ+uW(v,O)===Y.bytesReceived}; VMl=function(v,O,Y){v.DU.set(O,{yr:new c3,eJ:0,bytesReceived:0,uI:0,vr:!1,bb:!1,zM:!1,hM:Y,Oe:[],Id:[],GN:[],xt:!1,iq:new Map,RQ:new Map,D7:[]});v.logger.debug(function(){return"[initStream] formatId: "+O})}; AVc=function(v,O,Y,S){Y.Id.push.apply(Y.Id,g.F(S));if(km){Y.RQ.has(O)||Y.RQ.set(O,[]);var d;(d=Y.RQ.get(O)).push.apply(d,g.F(S))}else if(Y.Np)for(v=g.y(S),O=v.next();!O.done;O=v.next())Y.Np.Id.push(O.value);else{Y.Np=new HC(v.rK,[].concat(g.F(Y.Id)));var r;((r=v.rK)==null?0:r.e6)&&g.w(v,Y.Np)}}; f5l=function(v,O,Y){var S,d=(S=v.WW)==null?void 0:S.G.get(O);if(!d)return[];if(Y.Ba){var r;return((r=d.wJ(0,Y.clipId))==null?void 0:r.Id)||[]}if(d.aq()){var b=Y.startMs,z=Y.durationMs,M=1E3,V;if(((V=v.rK)==null?0:V.Y)&&Y.timeRange){var A;b=(A=Y.timeRange.startTicks)!=null?A:-1;var f;z=(f=Y.timeRange.Fy)!=null?f:-1;var k;M=(k=Y.timeRange.timescale)!=null?k:-1}if(Y.x5<0||Y.Ss<0||z<0||b<0||Y.xj<0||M<0)return cX(v,O),[];v=R0(Y.x5,Y.xj);O=Y.Gr||0;return[new EZ(3,d,v,"makeSliceInfosMediaBytes",Y.Ss-1,b/ M,z/M,O,v.length-O,void 0,Y.jE,Y.clipId)]}if(Y.Ss<0)return cX(v,O),[];var U;return((U=v.WW)==null?0:U.FL)?(O=d.nW,V=O*d.info.b3,A=((b=v.rK)==null?0:b.PT)?Y.Gr:void 0,((M=v.rK)==null?0:M.AZ)&&Y.timeRange&&!A&&(z=Y.timeRange.startTicks/Y.timeRange.timescale),[new EZ(3,d,void 0,"makeSliceInfosMediaBytes",Y.Ss,z,O,A,V,!0,Y.jE,Y.clipId)]):[]}; $Yd=function(v,O,Y){v.WW=O;v.rK=Y;O=g.y(v.DU);for(Y=O.next();!Y.done;Y=O.next()){var S=g.y(Y.value);Y=S.next().value;S=S.next().value;for(var d=g.y(S.Oe),r=d.next();!r.done;r=d.next()){r=r.value;var b=f5l(v,Y,r);AVc(v,r.GV,S,b)}}}; yV=function(v,O,Y,S){v.logger.debug(function(){return"[addStreamData] formatId: "+Y+",headerId: "+O+" bytes: "+S.getLength()}); (v=v.DU.get(Y))&&!v.bb&&(km?(v.iq.has(O)||v.iq.set(O,{data:new c3,hA:0,O5:!1}),u2(v.iq.get(O).data,S)):u2(v.yr,S),v.bytesReceived+=S.getLength(),v.vr=!0)}; UD=function(v,O){v.logger.debug(function(){return"[closeStream] formatId: "+O}); var Y=v.DU.get(O);Y&&!Y.bb&&(Y.bb=!0,Y.wT&&Y.wT(),kD$(v)&&v.B.Gw())}; kD$=function(v){v=g.y(v.DU.values());for(var O=v.next();!O.done;O=v.next())if(!O.value.bb)return!1;return!0}; UYw=function(v){km=v}; a3=function(v,O,Y,S,d,r,b){g.X.call(this);this.policy=v;this.info=O;this.WW=Y;this.BT=d;this.logger=new g.vY("sabr");this.cS=new Jg(this);this.ju=new f$(this);this.tM=new $m(this);this.state=1;this.Iy=!1;this.RW=0;this.clipId="";this.bS=-1;this.wq=0;this.kh=-1;this.ph=this.O6=!1;this.hH=0;this.e8=!1;this.policy.lT?this.UE=new VV(this,r):this.UE=new Ig(this,r);this.Jl=this.policy.Mj?O.Ar:cVF(O,this.policy,S);this.Jl.set("rn",""+this.zH());this.Jl.set("alr","yes");$Yd(this.tM,Y,v);this.Fh=new vX(this, this.policy,this.Jl,O.m9,this.UE,this.logger,S,b,this.policy.enableServerDrivenRequestCancellation);FIJ(this.Fh);var z;if((z=this.policy)==null?0:z.e6)g.w(this,this.tM),g.w(this,this.Fh);v=O.U;O={method:"POST",body:v};v&&(this.wq=v.length);try{this.xhr=Dm(this.Jl,this.policy.L,this.UE,Df,O),this.policy.E3&&wp(this.UE,this.Sp()),this.Fh.U.start()}catch(M){g.Br(M)}}; uNc=function(v){v.policy.Be&&v.kL&&!v.e8?v.e8=!0:v.UE.s9()}; CZw=function(v,O){var Y=-1,S=-1,d=-1,r;if((r=v.wd)==null?0:r.items)for(v=g.y(v.wd.items),r=v.next();!r.done;r=v.next())r=r.value,O=z,M=v.WW.isManifestless&&v.policy.K$,b){var V;if(((V=v.Y)==null?void 0:V.Jm.event)==="predictStart"&&v.Y.Vxv.C&&(v.C=NaN,v.L=NaN);v.Y&&v.Y.Vx===O?X77(v,O,Y,v.Y,d):v.U===1&&lW(v,5,"noad")}; w7F=function(v,O,Y,S,d){S.U9?lW(v,4,"cue"):(v.C=O,v.L=Y,v.G0("sdai",{joinad:v.U,sg:v.C,st:v.L.toFixed(3)}),v.j=Date.now(),lW(v,2,v.U===3?"staftpred":"join"),d.f7(S.Jm))}; X77=function(v,O,Y,S,d){if(d&&S){var r=S.Jm,b=d.wr(r);r.event==="predictStart"&&(v.Ug=O);v.G0("sdai",{onqevt:r.event,sq:O,mt:Y,gab:b,cst:r.startSecs,cueid:v.policy.I6&&(b||r.event==="start")?r.identifier:void 0},!0);if(b)if(r.event!=="predictStart")r.event==="start"&&v.Ug===O-1&&v.G0("sdai",{gabonstart:O}),w7F(v,O,Y,S,d);else if(v.policy.iO)lW(v,3,"predict");else{var z=O+Math.max(Math.ceil(-r.Y/5E3),1);b=Math.floor(Y-r.Y/1E3);v.policy.G?v.Z=b:v.B=z;v.G0("sdai",{onpred:Y,estsq:z,estmt:b.toFixed(3)}); FI(v.loader,b,b,z);v.j=Date.now();lW(v,3,"predict");d.f7(S.Jm)}else v.U===1?((z=v.G)==null?0:z.Dt(Y))?(FI(v.loader,Y,Y,O),lW(v,4,"sk2head")):lW(v,5,"nogab"):r.event==="predictStart"?v.policy.G&&v.Z>0?(Y=Math.floor(Y-r.Y/1E3),v.Z!==Y&&v.G0("sdai",{updateSt:Y,old:v.Z}),v.Z=Y):v.B>0&&(Y=O+Math.max(Math.ceil(-r.Y/5E3),1),v.B!==Y&&(v.G0("sdai",{updateSt:Y,old:v.B}),v.B=Y)):v.policy.iO&&v.U===3&&w7F(v,O,Y,S,d);var M,V;if(v.lM&&r.event==="start"&&((M=v.Y)==null?void 0:M.Jm.event)!=="predictStart"&&((V=v.Y)== null?void 0:V.Vx)===O-1){var A;v.G0("sdai",{ovlpst:(A=v.Y)==null?void 0:A.Jm.event,sq:O})}}else v.G0("sdai",{nulldec:1,sq:O,mt:Y.toFixed(3),evt:(S==null?void 0:(r=S.Jm)==null?void 0:r.event)||"none"})}; qZn=function(v,O,Y){if(v.policy.IX&&v.policy.G)return!(v.U===1||v.U===2||!v.policy.iO&&v.U===3&&Y>=v.B);if(v.U===1||v.U===2)return!1;if(v.U!==0&&O===v.audioTrack){if(v.policy.G)return I5Q(v.videoTrack,Y)||I5Q(v.videoTrack,Y+1);v=hC(v.videoTrack);if(Y>(v?v.Vx:-1))return!1}return!0}; R3=function(v,O,Y){return(Y<0||Y===v.C)&&!isNaN(v.L)?v.L:O}; Q07=function(v,O){if(v.Y){var Y=v.Y.Jm.kZ-(O.startTime+v.X-v.Y.Jm.startSecs);Y<=0||(Y=new qD(v.Y.Jm.startSecs-(isNaN(v.X)?0:v.X),Y,v.Y.Jm.context,v.Y.Jm.identifier,"stop",v.Y.Jm.Y+O.duration*1E3),v.G0("cuepointdiscontinuity",{segNum:O.Vx}),TJ(v,Y,O.Vx))}}; lW=function(v,O,Y){v.U!==O&&(v.G0("sdai",{setsst:O,old:v.U,r:Y}),v.U=O)}; e8=function(v,O,Y,S){(S===void 0?0:S)?lW(v,1,"seek"):O>0&&Math.abs(O-Y)>=5&&v.U===4&&lW(v,5,"sk2t")}; ED=function(v,O,Y){this.audio=v;this.video=O;this.reason=Y}; QV=function(v,O,Y){this.Y=v;this.reason=O;this.token=Y;this.videoId=void 0}; L$=function(v,O,Y){g.X.call(this);this.policy=v;this.B=O;this.G0=Y;this.G=new Map;this.Z=0;this.C=!1;this.Y="";this.U=!1}; BX=function(v,O,Y){if(Y===void 0?0:Y)v.C=!0;++v.Z;Y=6E4*Math.pow(2,v.Z);Y=(0,g.J)()+Y;v.G.set(O.info.id,Y)}; Z8=function(v){for(var O=g.y(v.G.entries()),Y=O.next();!Y.done;Y=O.next()){var S=g.y(Y.value);Y=S.next().value;S=S.next().value;S<(0,g.J)()&&v.G.delete(Y)}return v.G}; nRn=function(v){return v.C&&Z8(v).size>0}; XI=function(v,O){v.Y!==O&&(v.Y=O,v.U=!0)}; JVE=function(v,O){var Y;O&&(Y=g.gS(v.B.Y,function(d){return d.id===O})); if(!Y&&(Y=g.gS(v.B.Y,function(d){var r;return!((r=d.Dg)==null||!r.isDefault)}),O)){var S; v.G0("iaf",{id:O,sid:(S=Y)==null?void 0:S.id})}return Y}; I3=function(v,O,Y,S,d,r){var b=this;r=r===void 0?[]:r;this.loader=v;this.HW=O;this.policy=Y;this.WW=S;this.C=d;this.yx=r;this.logger=new g.vY("dash/abr");this.Y=Xu;this.G=this.L=null;this.j=-1;this.g8=!1;this.nextVideo=this.U=null;this.B=[];this.XO=new Set;this.FO={};this.xg=new oP(1);this.X=0;this.f1=this.Ug=this.tK=!1;this.JK=0;this.Eg=!1;this.N3=new Set;this.AK=!1;this.Qg={nK:function(){wq(b)}}; this.Z=new L$(this.policy,d,function(z,M){b.loader.G0(z,M)})}; mYE=function(v,O,Y){qq(v,O);O=JVE(v.Z,Y);Y||O||(O=Ktl(v));O=O||v.C.Y[0];v.U=v.WW.Y[O.id];wq(v);v.L=v.U;PZw(v);GDc(v);v.G=v.nextVideo;v.L=v.U;return icF(v)}; Hcn=function(v,O){if(tMw(v,O))return null;if(O.reason==="m"&&O.isLocked())return v.logger.debug(function(){return"User sets constraint to: "+sG(O)}),qq(v,O),v.X=v.B.length-1,wq(v),n$(v),v.Ug=v.Ug||v.G!==v.nextVideo,v.G=v.nextVideo,new ED(v.U,v.G,O.reason); O.reason==="r"&&(v.j=-1);qq(v,O);n$(v);if(O.reason==="r"&&v.nextVideo===v.G)return new ED(v.U,v.nextVideo,O.reason);DYF(v);return null}; N5i=function(v,O,Y){v.U=v.WW.Y[O];v.L=v.U;return new ED(v.L,v.G,Y?"t":"m")}; vAd=function(v,O){if(O.info.video){if(v.G!==O)return v.G=O,icF(v)}else v.f1=v.L!==O,v.L=O;return null}; OTc=function(v,O){if(O.Y.info.video&&O.Z){var Y=(O.U+O.G)/O.duration,S=O.Y.info.b3;Y&&S&&(v.xg.TG(1,Y/S),v.policy.U&&Y/S>1.5&&v.loader.G0("overshoot",{sq:O.Vx,br:Y,max:S}))}}; JC=function(v,O,Y){BX(v.Z,O,Y===void 0?!1:Y);v.j=-1;qq(v,v.Y)}; YLd=function(v,O){return new ED(v.L,v.G,O||v.Y.reason)}; DYF=function(v){if(v.G&&v.nextVideo&&K$(v,v.G.info)v.policy.vP,z=d<=v.policy.vP?D6(S):GB(S);if(!r||b||z)Y[d]=S}return Y}; qq=function(v,O){v.Y=O;var Y=v.C.videoInfos;if(!v.Y.isLocked()){var S=(0,g.J)();Y=g.EM(Y,function(z){if(z.b3>this.policy.b3)return!1;var M=this.WW.Y[z.id];return Z8(this.Z).get(z.id)>S?!1:M.m9.G>4||M.C>4?(this.logger.debug(function(){return"Remove "+oI(z)+"; 4 load failures"}),!1):this.N3.has(+z.itag)?!1:!0},v); nRn(v.Z)&&(Y=g.EM(Y,function(z){return z.video.width<=854&&z.video.height<=480}))}Y.length||(Y=v.C.videoInfos); var d=Y;v.policy.I9&&(d=d9n(v,d,O));d=g.EM(d,O.B,O);if(v.Y.isLocked()&&v.Z.Y){var r=g.gS(Y,function(z){return z.id===v.Z.Y}); r?d=[r]:XI(v.Z,"")}v.policy.I9||(d=d9n(v,d,O));d.length||(d=[Y[0]]);d.sort(function(z,M){return K$(v,z)-K$(v,M)}); O={};for(Y=1;YO.D4.video.width?(g.fC(d,Y),Y--):K$(v,O.Jh)*v.policy.X>K$(v,O.D4)&&(g.fC(d,Y-1),Y--);var b=d[d.length-1];v.Eg=!!v.G&&!!v.G.info&&v.G.info.z0!==b.z0;v.logger.debug(function(){return"Constraint: "+sG(v.Y)+", "+d.length+" fmts selectable, max selectable fmt: "+oI(b)}); v.B=d;v.XO.clear();O=!1;for(Y=0;Y=1080&&(O=!0);rt1(v.policy,b,v.WW.FL)}; d9n=function(v,O,Y){var S=Y.reason==="m"||Y.reason==="s";v.policy.iT&&PX&&g.ch&&(!S||Y.Y<1080)&&(O=O.filter(function(V){return V.video&&(!V.U||V.U.powerEfficient)})); if(O.length>0)if(PS()){var d=SLd(v,O);O=O.filter(function(V){return!!V&&!!V.video&&V.z0===d[V.video.qualityOrdinal].z0})}else{var r,b,z=(r=O[0])==null?void 0:(b=r.video)==null?void 0:b.qualityOrdinal; if(z){Y=O.filter(function(V){return!!V&&!!V.video&&V.video.qualityOrdinal===z}); var M=SLd(v,Y)[z].z0;O=O.filter(function(V){return!!V&&!!V.video&&V.z0===M})}}return O}; bTE=function(v,O){for(var Y=0;Y+1S}; wq=function(v){if(!v.U||!v.policy.B&&!v.U.info.Dg){var O=v.C.Y;v.U&&(O=O.filter(function(S){return S.audio.Y===v.U.info.audio.Y}),O.length||(O=v.C.Y)); v.U=v.WW.Y[O[0].id];if(O.length>1&&!v.policy.f1){if(!v.policy.Pa){var Y=g.gS(O,function(S){return S.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); Y&&(v.U=v.WW.Y[Y.id])}Y=!1;if(Y=v.policy.qX?!0:v.Y.isLocked()?v.Y.Y<240:bTE(v,v.U))v.U=v.WW.Y[g.zw(O).id]}}}; n$=function(v){if(!v.nextVideo||!v.policy.B)if(v.Y.isLocked())v.nextVideo=v.Y.Y<=360?v.WW.Y[v.B[0].id]:v.WW.Y[g.zw(v.B).id],v.logger.debug(function(){return"Select max fmt: "+oI(v.nextVideo.info)}); else{for(var O=Math.min(v.X,v.B.length-1),Y=y4(v.HW),S=K$(v,v.U.info),d=Y/v.policy.tK-S;O>0&&!(K$(v,v.B[O])<=d);O--);for(var r=Y/v.policy.X-S;O=r);O++);v.nextVideo=v.WW.Y[v.B[O].id];v.X!==O&&v.logger.info(function(){return"Adapt to: "+oI(v.nextVideo.info)+", bandwidth: "+Y.toFixed(0)+", bandwidth to downgrade: "+d.toFixed(0)+", bandwidth to upgrade: "+r.toFixed(0)+", constraint: "+sG(v.Y)}); v.X=O}}; PZw=function(v){var O=v.policy.tK,Y=y4(v.HW),S=Y/O-K$(v,v.U.info);O=g.MN(v.B,function(d){return K$(this,d)r?d=0:S[b]>v.buffered[b]&&(b===r-1?d=2:b===r-2&&S[b+1]>v.buffered[b+1]&&(d=3))}v.Y.add(O<<3|(Y&&4)|d);O=Math.ceil(v.track.Xp()*1E3);v.Y.add(O-v.Z);v.Z=O;if(d===1)for(v.Y.add(r),b=O=0;b=2&&v.Y.add(S[r- 1]-v.buffered[r-1]);Y&&v.Y.add(Y);v.buffered=S}; mE=function(v,O,Y){var S=this;this.policy=v;this.Y=O;this.JK=Y;this.B=this.U=0;this.O_=null;this.tK=new Set;this.j=[];this.indexRange=this.initRange=null;this.X=new OK;this.Ug=this.HW=!1;this.Qg={L2x:function(){return S.G}, P4x:function(){return S.chunkSize}, uR8:function(){return S.L}, iDs:function(){return S.C}}; (O=sWc(this))?(this.chunkSize=O.csz,this.G=Math.floor(O.clen/O.csz),this.L=O.ck,this.C=O.civ):(this.chunkSize=v.AB,this.G=0,this.L=g.a7(16),this.C=g.a7(16));this.Z=new Uint8Array(this.chunkSize);this.L&&this.C&&(this.crypto=new yKi(this.L,this.C))}; sWc=function(v){if(v.policy.Lo&&v.policy.Xi)for(var O=g.y(v.policy.Lo),Y=O.next(),S={};!Y.done;S={tC:void 0,V0:void 0},Y=O.next())if(Y=g.rG(Y.value),S.tC=+Y.clen,S.V0=+Y.csz,S.tC>0&&S.V0>0&&v.policy.B===Y.docid&&v.Y.info.id===Y.fmtid&&v.Y.info.lastModified===+Y.lmt)return v={},v.clen=S.tC,v.csz=S.V0,v.ck=Y.ck,v.civ=Y.civ,v}; tC=function(v){return!!v.O_&&v.O_.D0()}; V$d=function(v,O){if(!tC(v)&&!v.vW()){if(!(v.HW||(v.HW=!0,v.G>0))){var Y=D8(v);Y=Fu(v.policy.B,v.Y.info,HX(v),Y,v.policy.xg);Nq(v,Y)}if(O.info.type===1){if(v.O_){v$(v,Error("Woffle: Expect INIT slices to always start us off"));return}v.initRange=R0(0,O.Y.getLength())}else if(O.info.type===2)v.O_&&v.O_.type===1||v$(v,Error("Woffle: Index before init")),v.indexRange=R0(v.initRange.end+1,O.Y.getLength());else if(O.info.type===3){if(!v.O_){v$(v,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(v.O_.type===3&&!B7(v.O_,O.info)&&(v.j=[],O.info.Vx!==Z5(v.O_)||O.info.U!==0))return;if(O.info.Z){Y=g.y(v.j);for(var S=Y.next();!S.done;S=Y.next())gA$(v,S.value);v.j=[]}else{v.j.push(O);v.O_=O.info;return}}else{v$(v,Error("Woffle: Unexpected slice type"));return}v.O_=O.info;gA$(v,O);M$m(v)}}; gA$=function(v,O){var Y=0,S=O.Y.ov();if(v.B=S.length)return;if(Y<0)throw Error("Missing data");v.B=v.G;v.U=0}for(d={};Y0){var b=S.getUint32(Y+28);r+=b*16+4}var z=S.getUint32(Y+r-4);try{var M=U97(O.subarray(Y+r,Y+r+z));if(M!==null){var V=M;break a}}catch(A){}}Y+=d}V=null;break a}catch(A){V=null;break a}V=void 0}if(V!=null)for(O=iV(ar(V,7,void 0,Ok)),O==null||v.BY||(v.cryptoPeriodIndex=O),O=iV(ar(V,10,void 0,Ok)),O!=null&&O>0&& !v.BY&&(v.Y=O),V=Rr(V,2,Tn$,void 0===Rew?2:4),V=g.y(V),S=V.next();!S.done;S=V.next())O=v.G,Y=O.push,S=fe(S.value),S=g.bV(S,4),Y.call(O,S)}; uT3=function(v){return isNaN(v.cryptoPeriodIndex)?g.bV(v.initData):""+v.cryptoPeriodIndex}; SO=function(v,O,Y){var S=Y===void 0?{}:Y;Y=S.videoDuration===void 0?0:S.videoDuration;var d=S.TN===void 0?void 0:S.TN;S=S.n7===void 0?!1:S.n7;this.videoId=v;this.status=O;this.videoDuration=Y;this.TN=d;this.n7=S}; CPE=function(v,O,Y,S,d){this.videoId=v;this.MJ=O;this.U=Y;this.bytesDownloaded=S;this.Y=d}; dO=function(v){this.Y=v;this.offset=0}; rO=function(v){if(v.offset>=v.Y.getLength())throw Error();return v.Y.getUint8(v.offset++)}; ytw=function(v,O){O=O===void 0?!1:O;var Y=rO(v);if(Y===1){O=-1;for(Y=0;Y<7;Y++){var S=rO(v);O===-1&&S!==255&&(O=0);O>-1&&(O=O*256+S)}return O}S=128;for(var d=0;d<6&&S>Y;d++)Y=Y*256+rO(v),S*=128;return O?Y:Y-S}; afn=function(v){try{var O=ytw(v,!0),Y=ytw(v,!1);return{id:O,size:Y}}catch(S){return{id:-1,size:-1}}}; x9d=function(v){for(var O=new dO(v),Y=-1,S=0,d=0;!S||!d;){var r=afn(O),b=r.id;r=r.size;if(b<0)return;if(b===176){if(r!==2)return;S=O.lS()}else if(b===186){if(r!==2)return;d=O.lS()}b===374648427?Y=O.lS()+r:b!==408125543&&b!==174&&b!==224&&O.skip(r)}O=xb(v,0,Y);Y=new DataView(O.buffer);Y.setUint16(S,3840);Y.setUint16(d,2160);S=new c3([O]);u2(S,v);return S}; pYm=function(v,O,Y){var S=this;this.loader=v;this.policy=O;this.C=Y;this.logger=new g.vY("dash");this.U=[];this.Y=null;this.HW=-1;this.j=0;this.N3=NaN;this.tK=0;this.G=NaN;this.X=this.g8=0;this.Eg=-1;this.FO=this.Z=this.B=this.JK=null;this.xg=this.f1=NaN;this.L=this.Ug=this.XO=this.yx=null;this.n1=!1;this.AK=this.timestampOffset=0;this.Qg={T2:function(){return S.U}}; if(this.policy.B){var d=this.C,r=this.policy.B;this.policy.xg&&v.G0("atv",{ap:this.policy.xg});this.L=new mE(this.policy,d,function(b,z,M){bw(v,new SO(S.policy.B,2,{TN:new CPE(r,b,d.info,z,M)}))}); this.L.X.promise.then(function(b){S.L=null;b===1?bw(v,new SO(S.policy.B,b)):S.loader.G0("offlineerr",{status:b.toString()})},function(b){var z=(b.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); b instanceof Oi&&!b.Y?(S.logger.info(function(){return"Assertion failed: "+z}),S.loader.G0("offlinenwerr",{em:z}),oH(S),bw(v,new SO(S.policy.B,4))):(S.logger.info(function(){return"Failed to write to disk: "+z}),S.loader.G0("dldbwerr",{em:z}),oH(S),bw(v,new SO(S.policy.B,4,{n7:!0})))})}}; Tec=function(v){return v.U.length?v.U[0]:null}; lfQ=function(v,O){return v.U.some(function(Y){return Y.info.Vx===O})}; EAi=function(v,O,Y,S){S=S===void 0?0:S;if(v.Z){var d=v.Z.U+v.Z.G;if(Y.info.U>0)if(Y.info.Vx===v.Z.Vx&&Y.info.U=0&&v.Z.Vx>=0&&!B7(v.Z,Y.info))throw new g.iK("improper_continuation",v.Z.d2(),Y.info.d2());sIg(v.Z,Y.info)||jO(v,"d")}else if(Y.info.U>0)throw new g.iK("continuation_of_null",Y.info.d2());v.Z=Y.info;v.C=Y.info.Y;if(Y.info.U===0){if(v.Y)if(!v.loader.isOffline()||v.policy.H7)v.loader.G0("slice_not_fully_processed", {buffered:v.Y.info.d2(),push:Y.info.d2()});else throw new g.iK("slice_not_fully_processed",v.Y.info.d2(),Y.info.d2());W$(v);v.g8=S}else{if(v.g8&&S&&v.g8!==S)throw v=new g.iK("lmt_mismatch",Y.info.Vx,v.g8,S),v.level="WARNING",v;!Y.info.Y.aq()&&v.B&&(S=Y.info,d=v.B.bS,S.X="updateWithEmsg",S.Vx=d)}if(v.Y){S=g.S$(v.Y,Y);if(!S)throw new g.iK("failed_to_merge",v.Y.info.d2(),Y.info.d2());v.Y=S}else v.Y=Y;a:{Y=g.vS(v.Y.info.Y.info);if(v.Y.info.type!==3){if(!v.Y.info.Z)break a;v.Y.info.type===6?Fw1(v,O,v.Y): h9Q(v,v.Y);v.Y=null}for(;v.Y;){S=v.Y.Y.getLength();if(v.HW<=0&&v.j===0){var r=v.Y.Y,b=-1;d=-1;if(Y){for(var z=0;z+80))break;if(f!==408125543)if(f===524531317)z=!0,A>=0&&(d=r.lS()+A,M=!0);else{if(z&&(f===160||f===163)&&(b<0&&(b=V),M))break;f===163&&(b=Math.max(0,b),d=r.lS()+A);if(f===160){b<0&&(d=b=r.lS()+ A);break}r.skip(A)}}b<0&&(d=-1)}if(b<0)break;v.HW=b;v.j=d-b}if(v.HW>S)break;v.HW?(S=R9n(v,v.HW),S.Z&&e9n(v,S),Fw1(v,O,S),z$(v,S),v.HW=0):v.j&&(S=R9n(v,v.j<0?Infinity:v.j),v.j-=S.Y.getLength(),z$(v,S))}}v.Y&&v.Y.info.Z&&(z$(v,v.Y),v.Y=null)}; h9Q=function(v,O){!O.info.Y.aq()&&O.info.U===0&&(g.vS(O.info.Y.info)||O.info.Y.info.BY())&&Gzw(O);if(O.info.type===1)try{e9n(v,O),QWg(v,O)}catch(d){g.LP(d);var Y=XN(O.info);Y.hms="1";v.loader.handleError("fmt.unparseable",Y||{},1)}Y=O.info.Y;Y.jd(O);v.L&&V$d(v.L,O);if(Y.gT()&&v.policy.Y)a:{v=v.loader.WW;O=O.info.clipId;Y=g.Yz(Y.info,v.FL);if(O){var S=TD({itag:Y.itag,lmt:v.FL?0:Y.lmt||0,xtags:Y.xtags});if(v.Eg[S])break a;v.Eg[S]=O}v.f1.push(Y)}}; SGJ=function(v,O,Y){if(v.U.length!==0&&(Y||v.U.some(function(r){return r.info.B=gO(b)+z):O=v.getDuration()>=b.getDuration(),O=!O;O&&ZT1(Y)&&(O=v.JK,si?(z=KKn(Y),b=1/z,z=gO(v,z),O=gO(O)+b-z):O=O.getDuration()- v.getDuration(),O=1+O/Y.info.duration,I6m(Y.cq(),O))}else{b=!1;v.B||(Gzw(Y),Y.U&&(v.B=Y.U,b=!0,r=Y.info,S=Y.U.bS,r.X="updateWithEmsg",r.Vx=S,r=Y.U,r.D0&&(S=v.C.index,S.U=!r.D0,S.G="emsg"),r=Y.info.Y.info,S=Y.cq(),g.vS(r)?OZ(S,1701671783):r.BY()&&W7([408125543],307544935,S)));a:if((r=bP(Y,v.policy.Cj))&&Psg(Y))z=XYw(v,Y),v.X+=z,r-=z,v.tK+=r,v.G=v.policy.cV?v.G+r:NaN;else{if(v.policy.By){if(S=M=v.loader.oJ(g.de(Y),1),v.G>=0&&Y.info.type!==6){if(v.policy.cV&&isNaN(v.f1)){g.Br(new g.iK("Missing duration while processing previous chunk", Y.info.d2()));v.loader.isOffline()&&!v.policy.H7||wYm(v,Y,S);jO(v,"m");break a}var V=M-v.G,A=V-v.X,f=Y.info.Vx,k=v.FO?v.FO.Vx:-1,U=v.xg,c=v.f1,a=v.policy.Zz&&V>v.policy.Zz,x=Math.abs(A)>10,T=Math.abs(v.G-S)<1E-7;if(Math.abs(A)>1E-4){v.AK+=1;var l=(d=v.B)==null?void 0:KA(d);d={audio:""+ +v.hM(),sq:f.toFixed(),sliceStart:M,lastSq:k.toFixed(),lastSliceStart:U,lastSliceDuration:c,totalDrift:(V*1E3).toFixed(),segDrift:(A*1E3).toFixed(),skipRewrite:""+ +(a||x)};if(l==null?0:l.length)d.adCpn=l[0];v.loader.handleError("qoe.avsync", d);v.Eg=f}a||x||T||(S=v.G);d=XYw(v,Y,M);r-=d;v.X=V+d;v.policy.U&&(A&&!T||d)&&(V=(z=v.B)==null?void 0:KA(z),v.loader.G0("discontinuityRewrite",{adCpn:(V==null?0:V.length)?V.join("."):"",itag:Y.info.Y.info.itag,sq:Y.info.Vx,originalStartTime:M,rewrittenStartTime:S,startTimeAdjustment:S-M,segDrift:(A*1E3).toFixed(),originalDuration:r+d,rewrittenDuration:r,durationAdjustment:d}))}}else S=isNaN(v.G)?Y.info.startTime:v.G;wYm(v,Y,S)&&(v.tK+=r,v.G=S+r,v.policy.cI&&v.AK>=v.policy.cI&&(v.AK=0,v.loader.Ae({resetForRewrites:"count"})))}v.FO= Y.info;v.f1=re(Y);Y.G>=0&&(v.xg=Y.G);if(b&&v.B){b=If1(v,!0);w5(Y.info,b);v.Y&&w5(v.Y.info,b);O=g.y(O);for(z=O.next();!z.done;z=O.next())z=z.value,d=void 0,v.policy.Z&&z.Vx!==((d=v.B)==null?void 0:d.bS)||w5(z,b);(Y.info.Z||v.Y&&v.Y.info.Z)&&Y.info.type!==6||(v.Ug=b,v.policy.G?(O=qLE(v.B),v.loader.Zw(v.C,b,O)):(O=v.loader,O.WW.isManifestless&&nAl(O,b,null,!!v.C.info.video)),v.policy.eA||Jtd(v))}}QWg(v,Y);v.timestampOffset&&nzc(Y,v.timestampOffset)}; z$=function(v,O){if(O.info.Z){v.yx=O.info;if(v.B){var Y=v.B,S=If1(v,!1);Y=qLE(Y);v.loader.Zw(v.C,S,Y);v.Ug||v.policy.eA||Jtd(v);v.Ug=null}W$(v)}v.L&&V$d(v.L,O);if(S=v.k$())if(S=g.S$(S,O,v.policy.R6,v.policy.Dq)){v.U.pop();v.U.push(S);return}v.U.push(O)}; qLE=function(v){if(v.U9()){var O=v.data["Stitched-Video-Id"]?v.data["Stitched-Video-Id"].split(",").slice(0,-1):[],Y=KA(v),S=[];if(v.data["Stitched-Video-Duration-Us"])for(var d=g.y(v.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),r=d.next();!r.done;r=d.next())S.push((Number(r.value)||0)/1E6);d=[];if(v.data["Stitched-Video-Start-Frame-Index"]){r=g.y(v.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var b=r.next();!b.done;b=r.next())d.push(Number(b.value)||0)}d=[]; if(v.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(r=g.y(v.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),b=r.next();!b.done;b=r.next())d.push((Number(b.value)||0)/1E6);v=new k6E(O,Y,S,d,g.Bon(v),g.ZDg(v))}else v=null;return v}; W$=function(v){v.Y=null;v.HW=-1;v.j=0;v.B=null;v.N3=NaN;v.tK=0;v.Ug=null}; jO=function(v,O){O={rst4disc:O,cd:v.X.toFixed(3),sq:v.FO?v.FO.Vx:-1};v.G=NaN;v.X=0;v.Eg=-1;v.FO=null;v.xg=NaN;v.f1=NaN;v.XO=null;v.loader.G0("mdstm",O)}; QWg=function(v,O){if(v.isDrm()){if(O.info.Y.info.BY()){var Y=new SM(O.cq());if(r5(Y,[408125543,374648427,174,28032,25152,20533,18402])){var S=jM(Y,!0);Y=S!==16?null:MY(Y,S)}else Y=null;S="webm"}else O.info.j=ff1(O.cq()),Y=$9d(O.info.j),S="cenc";Y&&Y.length&&(Y=new Ya(Y,S),v.policy.xm&&g.vS(O.info.Y.info)&&(S=GBc(O.cq()))&&(Y.U=S),Y.BY=O.info.Y.info.BY(),O.U&&O.U.cryptoPeriodIndex&&(Y.cryptoPeriodIndex=O.U.cryptoPeriodIndex),O.U&&O.U.U&&(Y.Y=O.U.U),v.loader.Ig(Y))}}; Jtd=function(v){var O=v.B,Y=QA1(O);Y&&(Y.startSecs+=v.N3,v.loader.l5(v.C,Y,O.bS,O.U9()))}; If1=function(v,O){var Y,S=v.B;if(Y=QA1(S))Y.startSecs+=v.N3;return new Ra(S.bS,v.N3,O?S.nW:v.tK,S.ingestionTime,"sq/"+S.bS,void 0,void 0,O,Y)}; wYm=function(v,O,Y){if(!qoQ(O,Y))return O=XN(O.info),O.smst="1",v.loader.handleError("fmt.unparseable",O||{},1),!1;isNaN(v.N3)&&(v.N3=Y);return!0}; XYw=function(v,O,Y){var S=0;if(O.info.Y.info.BY()&&!Psg(O))return 0;if(v.JK&&!v.hM()){var d=0;Y&&g.vS(O.info.Y.info)?d=Y-v.G:O.info.Y.info.BY()&&(d=v.X);var r=O.info.Vx;Y=bP(O,v.policy.Cj);var b=v.JK;var z=b.Eg;b=b.X;var M=Math.abs(b-d)>.02;if((r===z||r>z&&r>v.Eg)&&M){S=Math.max(.95,Math.min(1.05,(Y-(b-d))/Y));if(g.vS(O.info.Y.info))I6m(O.cq(),S);else if(O.info.Y.info.BY()&&(r=d-b,!g.vS(O.info.Y.info)&&(O.info.Y.info.BY(),S=new SM(O.cq()),z=O.Z?S:new SM(new DataView(O.info.Y.Y.buffer)),bP(O,!0)))){var V= r*1E3,A=AV(z);z=S.pos;S.pos=0;if(S.Y.getUint8(S.pos)===160||fc(S))if(o0(S,160))if(jM(S,!0),o0(S,155)){if(r=S.pos,M=jM(S,!0),S.pos=r,V=V*1E9/A,A=zD(S),V=A+Math.max(-A*.7,Math.min(A,V)),V=Math.sign(V)*Math.floor(Math.abs(V)),!(Math.ceil(Math.log(V)/Math.log(2)/8)>M)){S.pos=r+1;for(r=M-1;r>=0;r--)S.Y.setUint8(S.pos+r,V&255),V>>>=8;S.pos=z}}else S.pos=z;else S.pos=z;else S.pos=z}S=bP(O,v.policy.Cj);S=Y-S}S&&O.info.Y.info.BY()&&v.loader.G0("webmDurationAdjustment",{durationAdjustment:S,videoDrift:d+S, audioDrift:b})}return S}; ZT1=function(v){return v.info.Y.aq()&&v.info.Vx===v.info.Y.index.Eq()}; gO=function(v,O){O=(O=O===void 0?0:O)?Math.round(v.timestampOffset*O)/O:v.timestampOffset;v.C.B&&O&&(O+=v.C.B.Y);return O+v.getDuration()}; KwE=function(v,O){O<0||(v.U.forEach(function(Y){nzc(Y,O)}),v.timestampOffset=O)}; TC=function(v,O,Y,S,d){KX.call(this,Y,d);var r=this;this.policy=v;this.formatId=O;this.tM=S;this.lastError=null;this.wT=function(){r.vW()||(r.tM.DU.has(r.formatId)?(r.isComplete()||r.Y.start(),C$(r.tM,r.formatId)&&r.nu(2),r.tM.bb(r.formatId)&&(MMF(r.tM,r.formatId)?r.uM(4):(r.lastError="net.closed",r.uM(5)))):(r.lastError="player.exception",r.uM(5)))}; this.Y=new g.mX(function(){r.isComplete()||(r.lastError="net.timeout",r.uM(5))},1E3); this.Y.start();zJc(this.tM,this.formatId,this.wT);g.yP(this.wT)}; Mj=function(v,O,Y,S){g.X.call(this);var d=this;this.loader=v;this.policy=O;this.Y=Y;this.timing=S;this.logger=new g.vY("dash");this.G=[];this.JK=[];this.U=this.A$=null;this.XO=!1;this.g8=this.AK=0;this.C=-1;this.HW=!1;this.N3=-1;this.FO=null;this.Ug=NaN;this.tK=[];this.Qg={Sd:function(){return d.B}, vi8:function(){return d.G}, Kgc:function(){return d.X}}; this.B=new pYm(v,O,Y);this.policy.Y&&(this.X=new xJ(this.B,this.loader.getManifest(),this.policy,function(r){d.policy.Nw&&d.G0("buftl",r)})); this.policy.pj&&(this.j=new GJ(this));this.b3=Y.info.b3;this.L=this.policy.Ug?!1:Y.Lu();this.isManifestless=Y.Lu();this.Z=this.L;g.w(this,this.FO)}; Vz=function(v,O,Y){Y=Y===void 0?!1:Y;O&&si&&KwE(v.B,O.fF());if(!Y){var S;(S=v.X)==null||NQ3(S)}v.A$=O;(O=v.X)!=null&&(O.A$=v.A$)}; A$=function(v){var O=v.A$&&v.A$.V1();if(v.policy.CT){if((v=v.X)==null)v=void 0;else{var Y;v=(Y=v.G)==null?void 0:Y.info}return v||null}return O}; PPJ=function(v){for(var O={},Y=0;Y4&&v.JK.shift()}; G6Q=function(v,O){if(O.sY()){var Y=O.UY();Y=g.y(Y);for(var S=Y.next();!S.done;S=Y.next())S=S.value,v.policy.U&&O instanceof TC&&v.G0("omblss",{s:S.info.d2()}),$a(v,O.info.Id,S,O.i_())}}; $a=function(v,O,Y,S){S=S===void 0?0:S;isNaN(v.Ug)||(v.G0("aswm",{sq:O[0].Vx,id:O[0].Y.info.itag,xtag:O[0].Y.info.Y,ep:Date.now()-v.Ug}),v.Ug=NaN);switch(Y.info.type){case 1:case 2:iTl(v,Y);break;case 4:var d=Y.info.Y,r=d.yV(Y),b;((b=v.U)==null?0:b.type===4)&&kz3(Y.info,v.U)&&(v.U=d.qD(v.U).pop());Y=g.y(r);for(d=Y.next();!d.done;d=Y.next())$a(v,O,d.value,S);break;case 3:Y.info.Y.info.video?(d=v.timing,d.N3||(d.N3=(0,g.J)(),g.hm("fvb_r",d.N3,d.Y))):(d=v.timing,d.C||(d.C=(0,g.J)(),g.hm("fab_r",d.C,d.Y))); EAi(v.B,O,Y,S);v.policy.Y&&m9l(v);break;case 6:EAi(v.B,O,Y,S),v.U=Y.info}}; iTl=function(v,O){if(O.info.type===1)if(O.info.Y.info.video){var Y=v.timing;Y.g8||(Y.g8=(0,g.J)(),g.hm("vis_r",Y.g8,Y.Y))}else Y=v.timing,Y.X||(Y.X=(0,g.J)(),g.hm("ais_r",Y.X,Y.Y));h9Q(v.B,O);v=v.loader;v.videoTrack.Y.gT()&&v.audioTrack.Y.gT()&&v.policy.Y&&!v.WW.FL&&(O=v.audioTrack.getDuration(),Y=v.videoTrack.getDuration(),Math.abs(O-Y)>1&&v.G0("trBug",{af:""+g.Yz(v.audioTrack.Y.info,!1),vf:""+g.Yz(v.videoTrack.Y.info,!1),a:""+O,v:""+Y}))}; BC=function(v){return Tec(v.B)}; m9l=function(v){v.G.length?v.U=g.zw(g.zw(v.G).info.Id):v.B.U.length?v.U=v.B.k$().info:v.U=A$(v)}; ka=function(v,O){var Y={cD:[],j_:[]},S;if((v=v.X)==null)v=void 0;else{Hsw(v,v.cD,"og");m6E(v,O);Hsw(v,v.cD,"trim");var d=D6l(v);O=d.cD;d=d.PS;for(var r=[],b=0;b0){var k=zz(f,M);k>=0&&(A=(f.end(k)-M+.1)*1E3)}r.push({formatId:g.Yz(z.info.Y.info,v.WW.FL), jE:z.info.jE,sequenceNumber:z.info.Vx+v.B,p7:V,ZE:z.info.G,dg:A})}v={cD:O,j_:r}}return(S=v)!=null?S:Y}; hg=function(v,O,Y){Y=Y===void 0?!1:Y;if(v.A$){var S=v.A$.UM(),d=gb(S,O),r=NaN,b=A$(v);b&&(r=gb(S,b.Y.index.getStartTime(b.Vx)));if(d===r&&v.U&&v.U.G&&t$c(Ui(v),0))return O}v=D9E(v,O,Y);return v>=0?v:NaN}; eI=function(v,O,Y){v.Y.gT();var S=D9E(v,O);if(S>=0)return S;var d;(d=v.X)==null||tv3(d,O,Y);S=Math;d=S.min;var r=v.B;if(r.L)if(r=r.L,r.O_&&r.O_.type===3)r=r.O_.startTime;else if(r.G>0){var b=r.Y.index;b=g.Tw(b.offsets.subarray(0,b.count),r.G*r.chunkSize);r=r.Y.index.getStartTime(b>=0?b:Math.max(0,-b-2))}else r=0;else r=Infinity;O=d.call(S,O,r);v.U=v.policy.Ug?null:v.Y.sP(O).Id[0];c$(v)&&(v.policy.qF&&(Y==null?void 0:Y.seekSource)===60||v.A$&&v.A$.abort(),v.policy.Oj&&(Y=v.X)!=null&&(Y.G=void 0)); v.g8=0;return v.U?v.U.startTime:O}; OAd=function(v){v.L=!0;v.Z=!0;v.C=-1;eI(v,Infinity)}; uw=function(v){for(var O=0,Y=g.y(v.G),S=Y.next();!S.done;S=Y.next())O+=com(S.value.info);return O+=Lwm(v.B)}; yz=function(v,O){O=O===void 0?!1:O;var Y=v.loader.getCurrentTime(),S=v.B.k$(),d=(S==null?void 0:S.info.C)||0;v.policy.nP&&(S==null?0:S.info.Y.Lu())&&!S.info.Z&&(d=S.info.B);if(!v.A$)return v.policy.Y&&O&&!isNaN(Y)&&S?d-Y:0;var r=A$(v);if(r&&C2(r))return r.C;var b=v.A$.UM(!0);if(O&&S)return r=0,v.policy.Y&&(r=Ao(b,d+.02)),r+d-Y;d=Ao(b,Y);v.policy.PO&&r&&(O=zz(b,Y),b=zz(b,r.B-.02),O===b&&(Y=r.C-Y,v.policy.U&&Y>d+.02&&v.G0("abh",{bh:d,bhtls:Y}),d=Math.max(d,Y)));return d}; HTm=function(v){var O=A$(v);return O?O.C-v.loader.getCurrentTime():0}; NeQ=function(v,O){if(v.G.length){if(v.G[0].info.Id[0].startTime<=O)return;FZ(v)}for(var Y=v.B,S=Y.U.length-1;S>=0;S--)Y.U[S].info.startTime>O&&Y.U.pop();m9l(v);v.U&&O=0;b--){var z=d.U[b];z.info.Vx>=O&&(d.U.pop(),d.G-=bP(z,d.policy.Cj),r=z.info)}r&&(d.Z=d.U.length>0?d.U[d.U.length-1].info:d.XO,d.U.length!==0||d.Z||jO(d,"r"));d.loader.G0("mdstm",{rollbk:1,itag:r?r.Y.info.itag:"",popped:r?r.Vx:-1,sq:O,lastslc:d.Z?d.Z.Vx:-1,lastfraget:d.G.toFixed(3)});if(v.policy.Y)return v.U=null,!0;S>Y?eI(v,S):v.U=v.Y.d0(O-1,!1).Id[0]}catch(M){return O=hL(M),O.details.reason="rollbkerr", v.loader.handleError(O.errorCode,O.details,O.severity),!1}return!0}; p2=function(v,O){var Y;for(Y=0;Y0?Y||O.Vx>=v.N3:Y}; T$=function(v){var O;return c$(v)||C2((O=v.B.k$())==null?void 0:O.info)}; Ui=function(v){var O=[],Y=A$(v);Y&&O.push(Y);O=g.UJ(O,v.B.CD());Y=g.y(v.G);for(var S=Y.next();!S.done;S=Y.next()){S=S.value;for(var d=g.y(S.info.Id),r=d.next(),b={};!r.done;b={Hv:void 0},r=d.next())b.Hv=r.value,S.UF&&(O=g.EM(O,function(z){return function(M){return!kz3(M,z.Hv)}}(b))),(Lc(b.Hv)||b.Hv.type===4)&&O.push(b.Hv)}v.U&&!WKE(v.U,g.zw(O),v.U.Y.aq())&&O.push(v.U); return O}; t$c=function(v,O){if(!v.length)return!1;for(O+=1;O=O){O=r;break a}}O=d}return O<0?NaN:t$c(v,Y?O:0)?v[O].startTime:NaN}; lw=function(v){return!(!v.U||v.U.Y===v.Y)}; vkE=function(v){return lw(v)&&v.Y.gT()&&v.U.Y.info.b3O&&v.C1080&&!v.RO&&(v.g8=36700160,v.yx=5242880,v.AK=Math.max(4194304,v.AK),v.RO=!0);O.video.qualityOrdinal>2160&&!v.u0&&(v.g8=104857600,v.b3=13107200,v.u0=!0);g.Vq(v.Qx.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?O.isEncrypted()&&g.Pf()&&g.Jy("samsung")&&(g.Jy("kant")||g.Jy("muse"))&&(v.b3=g.Vq(v.Qx.experiments,"html5_samsung_kant_limit_max_bitrate")):O.isEncrypted()&&g.Pf()&&g.Jy("kant")&&(v.b3=1310720);v.kq!==0&&O.isEncrypted()&& (v.b3=v.kq);v.TV!==0&&O.isEncrypted()&&Y&&(v.b3=v.TV);O.b3&&(v.zK=Math.max(v.GF,Math.min(v.AK,5*O.b3)))}; zJ=function(v){return v.Y&&v.vA}; Ei=function(v){return v.Y&&v.N7&&v.playbackStartPolicy}; Qz=function(v,O,Y,S){v.N7&&(v.playbackStartPolicy=O,v.Es=Y,v.KH=S)}; eO=function(v,O,Y){Y=Y===void 0?0:Y;return g.Vq(v.Qx.experiments,O)||Y}; Mjm=function(v){var O=v===void 0?{}:v;v=O.Ve;var Y=O.mF;var S=O.kN;var d=O.Eq;O=O.qG;this.Ve=v;this.mF=Y;this.kN=S;this.Eq=d;this.qG=O}; MZJ=function(v,O){if(O<0)return!0;var Y=v.Eq();return O0)return 2;if(O<0)return 1;Y=v.Eq();return O(0,g.J)()?0:1}; B$=function(v,O,Y,S,d,r,b,z,M,V,A,f,k,U){U=U===void 0?null:U;g.X.call(this);var c=this;this.loader=v;this.policy=O;this.videoTrack=Y;this.audioTrack=S;this.B=d;this.Y=r;this.timing=b;this.Z=z;this.schedule=M;this.WW=V;this.G=A;this.tK=f;this.Iw=k;this.WE=U;this.Ug=!1;this.jo="";this.yc=null;this.No=NaN;this.HW=!1;this.U=null;this.SN=this.j=NaN;this.i4=this.C=0;this.logger=new g.vY("dash");this.Qg={A8:function(a,x){return c.A8(a,x)}}; this.policy.Wb>0&&(this.jo=g.a7(this.policy.Wb));this.policy.aJ&&(this.X=new L2(this.loader,this.policy,this.schedule),g.w(this,this.X))}; ka3=function(v,O,Y){var S=O.U?O.U.Y.m9:O.Y.m9;var d=v.B,r;(r=!v.policy.yd)||(r=pA(S.Y)===pA(S.U));r?S=!1:(d=uZ(d,pA(S.U)),r=6E4*Math.pow(d.B,1.6),(0,g.J)()=d.B?(d.G0("sdai",{haltrq:r+1,est:d.B}),S=!1):S=d.U!==2;if(!S||!pc(O.U?O.U.Y.m9:O.Y.m9,v.policy,v.B,v.loader.IY())||v.loader.isSuspended&&(!kk(v.schedule)||v.loader.E0))return!1;if(v.policy.B&<>=5)return g.HM(v.loader.fu),!1;if(v.WW.isManifestless){if(O.G.length>0&&O.U&&O.U.Vx===-1||O.G.length>=v.policy.Ma||!v.policy.fH&&O.G.length>0&&!v.policy.L.mF)return!1;if(O.L)return!v.WW.isLive|| !isNaN(v.No)}if(r7w(O))return v.logger.debug("Pending request with server-selectable format found"),!1;if(!O.U){if(!O.Y.gT())return!1;eI(O,v.loader.getCurrentTime())}if(BC(O)&&(O.k$()!==BC(O)||v.loader.isSuspended))return!1;d=(S=v.policy.xD)&&!O.G.length&&yz(O,!0)=v.policy.hp)return!1;S=O.U;if(!S)return!0;S.type===4&&S.Y.gT()&&(O.U=g.zw(S.Y.qD(S)),S= O.U);if(!S.D0()&&!S.Y.BI(S))return!1;r=v.WW.XH||v.WW.B;if(v.WW.isManifestless&&r){r=O.Y.index.Eq();var b=Y.Y.index.Eq();r=Math.min(r,b);if(O.Y.index.C7()>0&&r>0&&S.Vx>=r)return O.N3=r,Y.N3=r,!1}if(S.Y.info.audio&&S.type===4||S.D0())return!1;r=!O.Z&&!Y.Z;if(d=!d)d=S.C,d=!!(Y.U&&!C2(Y.U)&&Y.U.CU_l(v,O)?(U_l(v,O),!1):(v=O.A$)&&v.isLocked()?!1:!0}; U_l=function(v,O){var Y=v.Y;Y=Y.Y?Y.Y.Jm:null;if(v.policy.JK&&Y)return Y.startSecs+Y.kZ+15;O=Rg(v.loader,O);v.policy.On>0&&(Y=((0,g.J)()-v.loader.xJ)/1E3,O=Math.min(O,v.policy.On+v.policy.dE*Y));O=v.loader.getCurrentTime()+O;return v.policy.xH&&(Y=c7F(v.loader)+v.policy.xH,Y=0||O.m9.A5("defrag")==="1"||O.m9.A5("otf")==="1"){O=null;break a}d=R0(0,4096)}d=new I0([new EZ(5,S.Y,d,"createProbeRequestInfo"+S.X,S.Vx)],O.U);d.t2=Y;d.Y=O.Y;O=d}O&&X7(v,O)}}; X7=function(v,O){v.loader.pR(O);var Y=com(O),S=v.loader.WL();Y={C_:v.schedule,XW:Y,tV:nin(v.Z,Y),DI:QO(O.Id[0]),eG:Ti(O.m9.Y),s0:v.policy.U,zR:function(b,z){v.loader.bN(b,z)}}; if(v.schedule.U.C){var d,r;Y.sy=(((d=v.videoTrack.Y)==null?void 0:d.info.b3)||0)+(((r=v.audioTrack.Y)==null?void 0:r.info.b3)||0)}v.yc&&(Y.Vx=O.Id[0].Vx,Y.No=O.No,Y.yc=v.yc);S={dJ:u4c(O,v.loader.getCurrentTime()),fl:v.policy.lO&&nc(O)&&O.Id[0].Y.info.video?jW7(v.G):void 0,fQ:v.policy.JK,poToken:v.loader.jI(),Y_:v.loader.jJ(),jo:v.jo,SN:isNaN(v.SN)?null:v.SN,WE:v.WE,Iw:v.Iw,i4:v.i4,BZ:S};return new ly(v.policy,O,Y,v.B,function(b,z){try{a:{var M=b.info.Id[0].Y,V=M.info.video?v.videoTrack:v.audioTrack; if(!(b.state>=2)||b.isComplete()||b.sZ()||!(!v.loader.Du||v.loader.isSuspended||yz(V)>3)){var A=fSJ(b,v.policy,v.B);A===1&&(v.HW=!0);u_n(v,b,A);if(b.isComplete()||b.vW()&&z<3){if(v.policy.U){var f=b.timing.qw();f.rst=b.state;f.strm=b.xhr.dB();f.cncl=b.xhr&&b.Fh.B?1:0;v.loader.G0("rqs",f)}b.UV&&v.loader.G0("sbwe3",{},!0)}if(!v.vW()&&b.state>=2){eJw(v.timing,b,M);var k=v.loader;v.SN&&b.g5&&k&&(v.SN=NaN,v.loader.Zm(b.g5),v.loader.tD(),v.loader.G0("cabrUtcSeek",{mediaTimeSeconds:b.g5}));b.ud&&v.SN&&b.ud&& !b.ud.action&&(v.loader.Lz(v.SN),v.SN=NaN,v.loader.G0("cabrUtcSeekFallback",{targetUtcTimeSeconds:v.SN}));b.Gc&&v.loader.aE(b.Gc);v.policy.oI&&(v.i4=b.i4);if(b.state===3){p2(V,b);nc(b.info)&&IH(v,V,M,!0);if(v.U){var U=b.info.fC();U&&v.U.S6(b.info.Id[0].Vx,M.info.id,U)}v.loader.Vw()}else if(b.isComplete()&&b.info.Id[0].type===5){if(b.state!==4)b.Ey()&&v.loader.handleError(b.ub(),b.dN());else{var c=(b.info.Id[0].Y.info.video?v.videoTrack:v.audioTrack).G[0]||null;c&&c instanceof ly&&c.sZ()&&c.C$()}b.dispose()}else{b.Ey()|| Cqw(v,b);var a;((a=b.Rl)==null?0:a.itagDenylist)&&v.loader.m1(b.Rl.itagDenylist);if(b.state===4)qj(v,b),v.Y&&ZcF(v.Y,b.info,v.U);else if(v.policy.Jp&&b.sY()&&!b.isComplete()&&!qj(v,b)&&!b.Ey())break a;b.Ey()&&(y73(v,b),isNaN(v.SN)||(v.loader.Lz(v.SN),v.SN=NaN));v.policy.Te&&!b.isComplete()?n2(v.loader):v.loader.Vw();var x=$_g(b,v.policy,v.B);u_n(v,b,x)}}}}}catch(T){z=v.Ug?1:0,v.Ug=!0,b=FW(z),z=hL(T,z),v.loader.handleError(z.errorCode,z.details,z.severity),b||v.loader.rE()}},S)}; Cqw=function(v,O){if(O.HZ&&O.state>=2&&O.state!==3){var Y=O.xhr.getResponseHeader("X-Response-Itag");if(Y){v.logger.debug(function(){return"Applying streamer-selected format "+Y}); var S=oAn(v.G,Y),d=O.info.G;d&&(d-=S.Xq(),S.G=!0,O.info.Id[0].Y.G=!1,oRn(O,S.wJ(d)),J$(v.loader,v.videoTrack,S),bH3(v.videoTrack,S),v.loader.zy(S.info.video.quality),(d=O.i_())&&S.info.lastModified&&S.info.lastModified!==+d&&p2(v.videoTrack,O))}else O.HZ=!1}}; y73=function(v,O){var Y=O.info.Id[0].Y,S=O.ub();if(Ti(Y.m9.Y)){var d=g.ov(O.Bj(),3);v.loader.G0("dldbrerr",{em:d||"none"})}d=O.info.Id[0].Vx;var r=R3(v.Y,O.info.Id[0].B,d);S==="net.badstatus"&&(v.C+=1);if(O.canRetry()&&K2(v.loader)){if(!(O.info.m9.G>=v.policy.Mh&&v.U&&O.info.isDecorated()&&S==="net.badstatus"&&v.U.LC(r,d))){d=(Y.info.video&&Y.m9.G>1||O.rT===410||O.rT===500||O.rT===503)&&!(Z8(v.G.Z).size>0)&&!Ti(Y.m9.Y);r=O.dN();var b=Y.info.video?v.videoTrack:v.audioTrack;d&&(r.stun="1");v.loader.handleError(S, r);v.vW()||(d&&(v.logger.debug(function(){return"Stunning format "+Y.info.id}),JC(v.G,Y)),p2(b,O),v.loader.Vw())}}else b=1,v.U&&O.info.isDecorated()&&S==="net.badstatus"&&v.U.LC(r,d)&&(b=0),v.WW.isLive&&O.ub()==="net.badstatus"&&v.C<=v.policy.y5*2?(pNn(v.WW),v.WW.XH||v.WW.isPremiere?LX(v.loader,0,{Vg:"badStatusWorkaround"}):v.WW.B?LX(v.loader,v.WW.HW,{Vg:"badStatusWorkaround", oJ:!0}):P$(v.loader)):v.loader.handleError(S,O.dN(),b)}; qj=function(v,O){if(v.policy.useUmp&&O.vW())return!1;try{var Y=O.info.Id[0].Y,S=Y.info.video?v.videoTrack:v.audioTrack;if(v.WW.isManifestless&&S){v.C=0;S.L&&(O.vW(),O.isComplete()||O.sY(),S.L=!1);O.NJ()&&v.loader.Gu.TG(1,O.NJ());var d=O.C7(),r=O.DO();lP(v.WW,d,r)}if(O.info.DI()&&!qY(O.info))for(var b=g.y(O.UY()),z=b.next();!z.done;z=b.next())iTl(S,z.value);for(v.loader.getCurrentTime();S.G.length&&S.G[0].state===4;){var M=S.G.shift();G6Q(S,M);S.AK=M.Wp()}S.G.length&&G6Q(S,S.G[0]);var V=!!BC(S);V&& O instanceof TC&&(Y.info.hM()?xYc(v.timing):a5F(v.timing));return V}catch(A){O=O.dN();O.origin="hrhs";a:{v=v.loader;Y=A;if(Y instanceof Error){O.msg||(O.msg=""+Y.message);O.name||(O.name=""+Y.name);if(Y instanceof g.iK&&Y.args)for(S=g.y(Object.entries(Y.args)),d=S.next();!d.done;d=S.next())r=g.y(d.value),d=r.next().value,r=r.next().value,O["arg"+d]=""+r;g.Br(Y);if(Y.level==="WARNING"){v.Og.Ae(O);break a}}v.handleError("fmt.unplayable",O,1)}return!1}}; aSg=function(v){var O=v.videoTrack.Y.index;v.yc=new Mjm({Ve:v.policy.Ve,mF:v.policy.L.mF,kN:O.Hc(),Eq:function(){return O.Eq()}, qG:function(){return O.qG()}})}; IH=function(v,O,Y,S){if(!(Y.gT()||Y.ol()||Y.G||!pc(Y.m9,v.policy,v.B,v.loader.IY())||Y.info.z0==="f"||v.policy.Y)){if(S){S=v.Z;var d=Y.info;S=JZF(S,d.video?S.policy.Rt:S.policy.JS,d.b3)}else S=0;S=Y.wJ(S);v=X7(v,S);qY(S)&&f2(O,v);Y.G=!0}}; G$=function(v,O,Y,S,d,r,b,z){g.X.call(this);var M=this;this.loader=v;this.rK=O;this.videoTrack=Y;this.audioTrack=S;this.WW=d;this.j=r;this.isAudioOnly=b;this.X=z;this.U=Xu;this.HW=!1;this.logger=new g.vY("sabr");this.L=this.Ug=this.tK=!1;this.videoInfos=this.C=this.j.videoInfos;this.G=this.JK=this.j.Y;this.Y=new L$(O,r,function(V,A){M.loader.G0(V,A)}); this.isAudioOnly&&x_i(this,this.WW.Y["0"])}; pDd=function(v,O){var Y=[];O=g.y(O);for(var S=O.next();!S.done;S=O.next())Y.push(g.Yz(S.value,v.WW.FL));return Y}; x_i=function(v,O,Y){O!==v.B&&(v.B&&(v.HW=!0),v.B=O,v.B5(O,v.videoTrack,Y))}; hkQ=function(v,O){v.logger.debug("setConstraint: "+sG(O));zJ(v.rK)&&(v.Ug=O.reason==="m"||O.reason==="l"?!0:!1);O.reason==="m"?O.isLocked()&&Tw$(v,O.Y):lS3(v,O)?FME(v,O.U,O.Y):v.videoInfos=v.C;v.U=O}; lS3=function(v,O){return v.rK.D2&&O.reason==="b"||v.rK.mI&&O.reason==="l"||v.rK.IC?!1:v.rK.lF?!0:O.reason==="l"||O.reason==="b"||O.reason==="o"}; Rkm=function(v,O){return O.isLocked()&&v.Y.U||v.U===void 0?!1:O.equals(v.U)}; ekn=function(v,O){var Y,S=(Y=v.B)==null?void 0:Y.info.video.qualityOrdinal;return v.HW?!0:v.B?O!==S?!0:!v.Y.U||v.rK.Iv&&v.Y.Y===v.B.info.itag?!1:!0:!1}; Tw$=function(v,O){var Y=v.Y.Y;if(Y){v.videoInfos=v.C;var S=g.gS(v.videoInfos,function(d){return d.id===Y}); S&&S.video.qualityOrdinal===O?v.videoInfos=[S]:(S=v.videoInfos.map(function(d){return d.id}),v.loader.G0("sabrpf",{pfid:""+Y, vfids:""+S.join(".")}),FME(v,O,O),XI(v.Y,""))}else FME(v,O,O)}; FME=function(v,O,Y){v.videoInfos=v.C;v.videoInfos=g.EM(v.videoInfos,function(S){return S.video.qualityOrdinal>=O&&S.video.qualityOrdinal<=Y})}; Ekn=function(v,O,Y){if(v.X){var S=g.EM(v.G,function(d){return d.id===v.X}); return iw(S,Y).includes(O)}S=g.EM(v.G,function(d){var r;return!((r=d.Dg)==null||!r.isDefault)}); return S.length>0?iw(S,Y).includes(O):iw(v.G,Y).includes(O)}; iw=function(v,O){return v.map(function(Y){return TD(g.Yz(Y,O))})}; QP7=function(v){var O;if((O=v.U)==null?0:O.isLocked())return v.videoInfos;var Y=Z8(v.Y);O=g.EM(v.videoInfos,function(S){return S.b3>v.rK.b3?!1:!Y.has(S.id)}); nRn(v.Y)&&(O=g.EM(O,function(S){return S.video.width<=854&&S.video.height<=480})); return O}; Bwi=function(v,O,Y){var S=v.WW,d=v.Og.getVideoData(),r=v.Vy,b=sD({Qx:d.D(),Og:v.Og,JD:v.JD,rK:v.rK,gQ:v.gQ,u2:v.u2,m8:v.m8,AT:v.AT,nD:v.nD,isPrefetch:v.isPrefetch,qr:v.qr,sabrLicenseConstraint:d.sabrLicenseConstraint,Z8:v.Z8,Jn:v.Jn,td:v.td,UN:v.UN,ax:!!r,NT:d.NT}),z=gq(d,v.BZ,v.nextRequestPolicy,v.Xd,v.yM,v.iJ,v.My);Y&&O&&(Y=z.C4?z.C4.map(function(f){return f.type}):[],O("sabr",{stmctxt:Y.join("_"), unsntctxt:z.hZ?z.hZ.join("_"):""}));O=v.hv;Y=v.F8;if(Y===void 0&&O===void 0){var M;Y=LME(S.FL,(M=v.lA)==null?void 0:M.video);var V;O=LME(S.FL,(V=v.lA)==null?void 0:V.audio)}if(d.WE)var A=d.WE;d={R2:b,j_:v.j_,hv:O,F8:Y,Vy:r,videoPlaybackUstreamerConfig:A,d9:z};v.Yq&&(d.Yq=v.Yq);d.cD=v.cD;d.ZD=S.f1;return d}; LME=function(v,O){return O?[g.Yz(O.info,v)]:[]}; ml=function(v,O,Y){var S=this;this.requestType=v;this.m9=O;this.BT=Y;this.U=null;this.Qg={Me4:function(){var d;return(d=S.data)==null?void 0:d.isPrefetch}, yM:function(){var d;return(d=S.data)==null?void 0:d.yM}}}; cVF=function(v,O,Y){O=a0(v.m9,ZHc(v,O,Y),O);v.MU()&&O.set("probe","1");return O}; ZHc=function(v,O,Y){v.t2===void 0&&(v.t2=v.m9.t2(O,Y));return v.t2}; XD$=function(v){var O,Y;return((O=v.Y)==null?void 0:(Y=O.R2)==null?void 0:Y.Z3)||0}; wD$=function(v){var O,Y;return!!((O=v.Y)==null?0:(Y=O.R2)==null?0:Y.Z8)}; ISQ=function(v){var O={},Y=[],S=[];if(!v.data)return O;for(var d=0;d0;M--)Y.push(z)}Y.length!==b?O.error=!0:(r=Y.slice(-r),Y.length=d,MJ$(O,Y,r));break;case 1:MJ$(O,ok,of7);break;case 0:VJ$(O, O.Y&7);Y=sb(O,16);d=sb(O,16);(Y^d)!==65535&&(O.error=!0);O.output.set(O.data.subarray(O.U,O.U+Y),O.G);O.U+=Y;O.G+=Y;break;default:O.error=!0}v.G>v.output.length&&(v.output=new Uint8Array(v.G*2),v.G=0,v.U=0,v.B=!1,v.Y=0,v.register=0)}v.output.length!==v.G&&(v.output=v.output.subarray(0,v.G));return v.error?new Uint8Array(0):v.output}; MJ$=function(v,O,Y){O=sJw(O);Y=sJw(Y);for(var S=v.data,d=v.output,r=v.G,b=v.register,z=v.Y,M=v.U;;){if(z<15){if(M>S.length){v.error=!0;break}b|=(S[M+1]<<8)+S[M]<>=7;V<0;)V=O[(b&1)-V],b>>=1;else b>>=V&15;z-=V&15;V>>=4;if(V<256)d[r++]=V;else if(v.register=b,v.Y=z,v.U=M,V>256){b=Wu[V];b+=sb(v,jT[V]);M=gfm(v,Y);z=zr[M];z+=sb(v,jJm[M]);if(fZc&&bY.length&&(v.error=!0);v.register|=(Y[S+1]<<8)+Y[S]<=0)return VJ$(v,Y&15),Y>>4;for(VJ$(v,7);Y<0;)Y=O[sb(v,1)-Y];return Y>>4}; sb=function(v,O){for(;v.Y=v.data.length)return v.error=!0,0;v.register|=v.data[v.U++]<>=O;v.Y-=O;return Y}; VJ$=function(v,O){v.Y-=O;v.register>>=O}; sJw=function(v){for(var O=[],Y=g.y(v),S=Y.next();!S.done;S=Y.next())S=S.value,O[S]||(O[S]=0),O[S]++;var d=O[0]=0;Y=[];var r=0;S=0;for(var b=1;b7&&(r+=O[b]);for(d=1;d>M&1;z=r<<4|b;if(b<=7)for(M=1<<7-b;M--;)S[M<>=7;b--;){S[M]||(S[M]=-O,O+=2);var V=d&1;d>>=1;M=V-S[M]}S[M]=z}}return S}; $C3=function(v){var O,Y,S,d,r,b,z;return g.B(function(M){switch(M.U){case 1:if(!("DecompressionStream"in window))return M.return(g.Aw1(new g.W6n(v)));O=new DecompressionStream("gzip");Y=O.writable.getWriter();Y.write(v);Y.close();S=O.readable.getReader();d=new c3([]);case 2:return g.E(M,S.read(),5);case 5:r=M.Y;b=r.value;if(z=r.done){M.d8(4);break}d.append(b);M.d8(2);break;case 4:return M.return(d.ov())}})}; g7=function(v,O){this.Y=v;this.U=O}; kjg=function(v){return $i($i(Vf(function(){return fs(v.U,function(O){return v.iI(v.Y,O)})}),function(){return v.RM(v.Y)}),function(){return v.wA(v.Y)})}; UCn=function(v,O){return kjg(new g7(v,O))}; Ctd=function(v){AC.call(this,"onesie");this.Gf=v;this.Y={};this.G=!0;this.B=null;this.queue=new bmw(this);this.Z={};this.C=ki(function(O,Y){var S=this;return function r(){var b,z,M,V,A,f,k,U,c,a,x,T,l,Q,L,I,t,P,YQ,dF;return Ln(r,function(N){switch(N.U){case 1:g.ul(N,2);S.Gf.hj();b=function(j1){return function(D){throw{name:j1,message:D};}}; z=O.ov();g.cm(N,4,5);if(!Y){N.d8(7);break}return $Q(N,$i(cwm(S.Gf,z,S.iv),b("DecryptError")).wait(),8);case 8:M=N.Y;case 7:if(!S.Gf.enableCompression){N.d8(9);break}return $Q(N,$i(UCn((f=M)!=null?f:z,S.Gf.D().II),b("DecompressError")).wait(),10);case 10:V=N.Y;case 9:A=J9((U=(k=V)!=null?k:M)!=null?U:z,U5m);case 5:g.Fw(N,0,2);if(a=(c=S.Gf.D())==null?void 0:c.AK)((x=M)==null?void 0:x.buffer)===a.exports.memory.buffer&&a.free(M.byteOffset),((T=V)==null?void 0:T.buffer)===a.exports.memory.buffer&&a.free(V.byteOffset); g.Ri(N,6);break;case 4:throw Q=l=g.Tc(N),new lJ("onesie.response.parse",{name:(P=Q.name)!=null?P:"unknown",message:(YQ=Q.message)!=null?YQ:"unknown",wasm:((L=S.Gf.D())==null?0:L.AK)?((I=S.Gf.D())==null?0:(t=I.AK)==null?0:t.Y)?"1js":"1":"0",enc:S.G,gz:S.Gf.enableCompression,webcrypto:!!yn()});case 6:return uuc(A),dF=g.FA(A.body),N.return(dF);case 2:g.Fw(N),g.Ri(N,0)}})}()})}; yw7=function(v){var O=v.queue;O.Y.length&&O.Y[0].isEncrypted&&!O.U&&(O.Y.length=0);O=g.y(Object.keys(v.Y));for(var Y=O.next();!Y.done;Y=O.next()){Y=Y.value;var S=v.Y[Y];if(!S.hX){var d=v.queue;d.Y.push({videoId:S.videoId,formatId:Y,isEncrypted:!1});d.U||ba(d)}}}; xCl=function(v,O){var Y=O.getLength(),S=!1;switch(v.B){case 0:v.Gf.V("html5_future_onesie_ump_handler_on_player_response")?$i(fs(v.C(O,v.G),function(d){aZl(v.Gf,d)}),function(d){v.Gf.jZ(d)}):v.hj(O,v.G).then(function(d){aZl(v.Gf,d)},function(d){v.Gf.jZ(d)}); break;case 2:v.Tf("ormk");O=O.ov();v.Gf.V("html5_future_onesie_ump_handler_on_media_decryption_key")?v.queue.G(O,v.Gf.D().II):v.queue.decrypt(O);break;default:S=!0}v.Gf.iS&&v.Gf.G0("ombup","id.11;pt."+v.B+";len."+Y+(S?";ignored.1":""));v.B=null}; uuc=function(v){if(v.IH!==1)throw new lJ("onesie.response.badproxystatus",{st:v.IH,webcrypto:!!yn(),textencoder:!!g.Pm.TextEncoder});if(v.httpStatus!==200)throw new lJ("onesie.response.badstatus",{st:v.httpStatus});}; pO$=function(v){return new Promise(function(O){setTimeout(O,v)})}; T2F=function(v,O){var Y=v.D();Y=v.dE&&Y.V("html5_onesie_preload_use_content_owner");var S=v.Y3,d=HY(O.Yg.experiments,"debug_bandaid_hostname");if(d)O=ST(O,d);else if((Y===void 0?0:Y)&&(S==null?0:S.url)&&!O.U){var r=pA(new g.aa(S.url));O=ST(O,r)}else O=(r=O.Y.get(0))==null?void 0:r.location.clone();if(O&&v.videoId){r=Sj(v.videoId);v=[];if(r)for(r=g.y(r),Y=r.next();!Y.done;Y=r.next())v.push(Y.value.toString(16).padStart(2,"0"));O.set("id",v.join(""));return O}}; lZ3=function(v,O,Y){Y=Y===void 0?0:Y;var S,d;return g.B(function(r){if(r.U==1)return S=[],S.push(O.load()),Y>0&&S.push(pO$(Y)),g.E(r,Promise.race(S),2);d=T2F(v,O);return r.return(d)})}; F6w=function(v,O,Y,S){S=S===void 0?!1:S;v.set("cpn",O.clientPlaybackNonce);v.set("opr","1");var d=O.D();v.set("por","1");yn()||v.set("onem","1");O.startSeconds>0&&v.set("osts",""+O.startSeconds);S||(d.V("html5_onesie_disable_partial_segments")&&v.set("oses","1"),O=d.V("html5_gapless_onesie_no_media_bytes")&&HO(O)&&O.dE,Y&&!O?(O=Y.audio,v.set("pvi",Y.video.join(",")),d.V("html5_onesie_disable_audio_bytes")||v.set("pai",O.join(",")),Df||v.set("osh","1")):(v.set("oad","0"),v.set("ovd","0"),v.set("oaad", "0"),v.set("oavd","0")))}; hWc=function(v,O,Y,S,d){d=d===void 0?!1:d;var r="https://youtubei.googleapis.com/youtubei/"+O.c7.innertubeApiVersion+"/player",b=[{name:"Content-Type",value:"application/json"}];S&&b.push({name:"Authorization",value:"Bearer "+S});b.push({name:"User-Agent",value:g.yh()});g.Gq("EOM_VISITOR_DATA")?b.push({name:"X-Goog-EOM-Visitor-Id",value:g.Gq("EOM_VISITOR_DATA")}):(Y=Y.visitorData||g.Gq("VISITOR_DATA"))&&b.push({name:"X-Goog-Visitor-Id",value:Y});(Y=g.Gq("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&b.push({name:"X-YouTube-Lava-Device-Context", value:Y});(O=HY(O.experiments,"debug_sherlog_username"))&&b.push({name:"X-Youtube-Sherlog-Username",value:O});v=eu(JSON.stringify(v));return{url:r,eL:b,postBody:v,gZ8:d,cO:d}}; eWE=function(v,O,Y,S,d,r){var b=g.H3(v,kR7,v.cO?void 0:Y.AK),z={encryptedClientKey:O.Y.encryptedClientKey,OV:!0,pg:!0,Rf:RWF(Y,!!v.cO),wX:Y.experiments.T0("html5_use_jsonformatter_to_parse_player_response")};if(v.cO)z.pBc=b;else{if(Y.AK){v=iH3(O).U(b,O.iv);var M;z.jD=(M=Y.AK.s7(v))!=null?M:v}else z.jD=O.encrypt(b);M=z.jD;(0,g.J)();M=OPQ(new vsd(O.Y.G),M,O.iv);z.Sm=M;z.iv=O.iv}O=S.getVideoData();S=sD({Qx:Y,Og:S,JD:O.startSeconds*1E3});d={CO:z,R2:S,onesieUstreamerConfig:d,aX:r,d9:gq(O)};if(O.n1)if(Y.V("html5_server_controlled_resume_time_refactor")){var V; d.reloadPlaybackParams=(V=O.n1)==null?void 0:V.reloadPlaybackParams}else d.reloadPlaybackParams=O.n1;return d}; EfE=function(v,O,Y){var S,d,r;return g.B(function(b){if(b.U==1)return S=g.H3(O,kR7),g.E(b,m_3(Y,S),2);if(b.U!=3)return d=b.Y,g.E(b,tj1(Y,d),3);r=b.Y;return b.return({jD:d,encryptedClientKey:Y.Y.encryptedClientKey,iv:Y.iv,Sm:r,OV:!0,pg:!0,Rf:RWF(v,!!O.cO),wX:v.experiments.T0("html5_use_jsonformatter_to_parse_player_response")})})}; QJE=function(v,O,Y,S,d,r){var b,z,M,V,A;return g.B(function(f){if(f.U==1)return g.E(f,EfE(Y,v,O),2);b=f.Y;z=S.getVideoData();M=sD({Qx:Y,Og:S,JD:z.startSeconds*1E3});V={CO:b,R2:M,onesieUstreamerConfig:d,aX:r,d9:gq(z)};z.n1&&(Y.V("html5_server_controlled_resume_time_refactor")?V.reloadPlaybackParams=(A=z.n1)==null?void 0:A.reloadPlaybackParams:V.reloadPlaybackParams=z.n1);return f.return(V)})}; RWF=function(v,O){v=$k(v.schedule,!0);O=O||!!yn()&&v>1572864;return"DecompressionStream"in window||!O}; VQ=function(v,O){g.X.call(this);var Y=this;this.Og=v;this.playerRequest=O;this.logger=new g.vY("onesie");this.xhr=null;this.state=1;this.Mw=new OK;this.Fu=!1;this.playerResponse="";this.cS=new Jg(this);this.G8=new Ctd(this);this.TR="";this.Ht=this.yh=!1;this.bJ="";this.enableCompression=this.Iu=this.VJ=!1;this.KQ=[];this.bS=-1;this.Yg=this.Og.D();this.videoData=this.Og.getVideoData();this.iS=this.Yg.XL();this.F$=this.Yg.H7;this.cZ=new Ob(this.F$.Y,this.Yg.II,qUl(this.Yg));this.Us=this.Yg.V("html5_onesie_check_timeout"); this.Ih=new g.mX(this.aP,500,this);this.Dj=new g.mX(this.bU,1E4,this);this.Sv=new g.mX(function(){if(!Y.isComplete()){var S=Mg(Y);Y.jZ(new lJ("net.timeout",S))}},1E3); this.sX=new g.mX(this.FsO,2E3,this);this.pu=this.Og.jJ();this.Bv=this.V("html5_onesie_wait_for_media_availability");g.w(this.videoData,this);g.w(this,this.Ih);g.w(this,this.Dj);g.w(this,this.sX);g.w(this,this.cZ);v=vD();Df&&v&&(this.mq=new Map);this.k9=new Map;this.bB=new Map;this.Ry=new Map;this.GL=new Map}; r7=function(v,O){var Y;return(Y=v.mq)==null?void 0:Y.get(O)}; B2d=function(v,O,Y){var S;return g.B(function(d){if(d.U==1)return v.Tf("oprd_s"),L6g(v)?g.E(d,D_E(v.cZ,O,Y),3):(S=v.cZ.decrypt(O,Y),d.d8(2));d.U!=2&&(S=d.Y);v.Tf("oprd_c");return d.return(S)})}; cwm=function(v,O,Y){v.Tf("oprd_s");O=iH3(v.cZ).encrypt(O,Y);fs(O,function(){v.Tf("oprd_c")}); return O}; Zmw=function(v){return v.V("html5_onesie_host_probing")||v.iS?Df:!1}; aZl=function(v,O){v.Tf("oprr");v.playerResponse=O;v.Iu||(v.Bv=!1);A0(v)}; A0=function(v){if(!v.playerResponse)return!1;if(v.VJ)return!0;var O=v.videoData.V("html5_onesie_audio_only_playback")&&NC(v.videoData);if(v.mq&&v.Bv){if(!v.mq.has(v.TR))return!1;var Y=v.mq.get(v.TR),S;if(S=Y){S=!1;for(var d=g.y(Y.DU.keys()),r=d.next();!r.done;r=d.next())if(r=Y.DU.get(r.value))for(var b=g.y(r.GN),z=b.next();!z.done;z=b.next())z.value.xj>0&&(r.hM?S=!0:O=!0);S=!(O&&S)}if(S)return!1}v.Tf("ofr");v.Mw.resolve(v.playerResponse);if(!v.Us){var M;(M=v.Sv)==null||M.start();v.Dj.start()}return v.VJ= !0}; wOm=function(v){if(v.mq&&!v.V("html5_onesie_media_capabilities")){v.Tf("ogsf_s");var O=mDw(v.Og.getVideoData(),function(S,d){v.G0(S,d)}),Y=XOc(v.Og); O.video=wzF(Y,O.video);v.Tf("ogsf_c");if(O.video.length)return O;v.G0("ombspf","l."+Y.U+";u."+Y.Y+";o."+Y.G+";r."+Y.reason)}}; L6g=function(v,O){return v.V("html5_onesie_sync_request_encryption")||(O==null?0:O.cO)||g.iq(v.Yg)&&v.V("html5_embed_onesie_use_sync_encryption")?!1:!!yn()}; Mg=function(v){if(!v.UE)return{};var O=v.UE.qw(),Y;O.d=(Y=v.UE.N3)==null?void 0:Y.Gn();O.shost=v.Ar;O.ty="o";return O}; IZc=function(v,O){var Y,S;(S=(v=(Y=v.mq)==null?void 0:Y.get(O))==null)||(O=v.G?!1:v.G=!0,S=!O);return!S}; q3m=function(v,O,Y,S,d,r,b,z,M,V,A){g.X.call(this);var f=this;this.Og=v;this.loader=O;this.policy=Y;this.audioTrack=S;this.videoTrack=d;this.WW=r;this.C_=b;this.Eg=z;this.G=M;this.timing=V;this.tK=A;this.Y=[];this.Z={};this.XO=this.f1=!1;this.Xd=new Set;this.B=this.AK=this.j=this.nD=0;this.X=null;this.HW={cD:[],j_:[]};this.JK={cD:[],j_:[]};this.L=null;this.C=[];this.Qg={rp1:function(){return f.Y}, j9d:function(){return f.Z}, n$x:function(){f.Y.length=0}, dw1:function(){return f.Xd}, e$c:function(){return f.j}, QYx:function(k){f.j=k}, N0s:function(k){f.B=k}, B3:function(k){f.L=k}, HN:function(k){f.C=k}}; this.videoData=this.Og.getVideoData();this.policy.aJ&&(this.FO=new L2(this.loader,this.policy,this.C_),g.w(this,this.FO))}; K6w=function(v,O){O=O===void 0?!1:O;if(nfl(v)){v.policy.C&&v.loader.G0("sabrcrq",{create:1});var Y=new ml(0,v.WW.X,v);v.policy.RD>0&&v.B++;O=Jw$(v,Y,O);v.Y.push(O);var S;(S=v.FO)==null||Vjn(S,v.WW.X)}}; imF=function(v,O){var Y=Pt7(v);if(v.policy.uO){var S=v.HW;var d=v.JK}else S=Eb(v,v.audioTrack),d=Eb(v,v.videoTrack);var r=[].concat(g.F(S.cD),g.F(d.cD));QQ(v)&&r.push.apply(r,g.F(v.C));var b=[].concat(g.F(S.j_),g.F(d.j_)),z=v.loader.WL(),M,V,A=v.Og,f=v.WW,k=v.U,U=v.Xd,c=v.policy,a=v.loader.xJ,x=c7F(v.loader)*1E3,T=(M=v.N3)==null?void 0:M.m8;M=(V=v.N3)==null?void 0:V.AT;var l;V=Number((l=v.G.B)==null?void 0:l.info.itag)||0;var Q;l=Number((Q=v.G.Z)==null?void 0:Q.info.itag)||0;O={Og:A,WW:f,cD:r,j_:b, JD:Y,nextRequestPolicy:k,Xd:U,rK:c,gQ:a,u2:x,m8:T,AT:M,nD:v.nD,isPrefetch:O||v.loader.isSuspended,O1K:V,Ygx:l,BZ:z,My:v.Og.CF()};Y=v.loader.jI();r=Sj(Y);Y&&(O.yM=r);if(Y=v.Og.Rz())O.Z8=Y*1E3;var L;Y=v.G;r=Y.tK;if(((L=Y.rK)==null?0:zJ(L))&&!r)for(L=g.y(Y.G),b=L.next();!b.done;b=L.next())if(b.value.Dg){r=!0;break}L=zJ(Y.rK)&&!r?[]:pDd(Y,Y.G);O.hv=L;L=v.G;zJ(L.rK)&&!L.Ug?L=[]:(Y=QP7(L),Y.length===0&&(Y=L.C),L=pDd(L,Y));O.F8=L;O.Vy=QQ(v)?[v.L]:void 0;v.policy.z5&&(O.td=GjJ(v.loader,v.audioTrack),O.UN= GjJ(v.loader,v.videoTrack));if(v.policy.G){L=v.loader.getCurrentTime();S=LF(v,S.cD,L);d=LF(v,d.cD,L);d=Math.min(S,d);QQ(v)&&v.policy.TM&&(S=LF(v,v.C,L),v.Og.XL()&&S0&&v.Y[0].xI()&&(O.iJ=v.Y[0].wG());return O}; Pt7=function(v){var O,Y=v.policy.Z&&((O=v.loader)==null?void 0:O.qQ());O=v.loader.getCurrentTime()||0;O=mC$(v,O);var S=v.loader.En()||0;O+=S;S=u8(v.videoData)||g.cj(v.videoData);var d=0;Y?(S&&(d=Number.MAX_SAFE_INTEGER),v.videoData.tK&&(d=Math.ceil(v.videoData.HW*1E3))):d=Math.ceil(O*1E3);return Math.min(Number.MAX_SAFE_INTEGER,d)}; QQ=function(v){return v.policy.w2&&!!v.L}; mC$=function(v,O){if(v.loader.isSeeking())return O;var Y=v.Og.Bq();if(!Y)return O;Y=Y.s_();if(Y.length===0||so(Y,O))return O;if(!h$(v.videoTrack,O)&&!h$(v.audioTrack,O))return v.loader.G0("sundrn",{b:0,lt:O}),O;for(var S=O,d=Infinity,r=0;rO)){var b=O-Y.end(r);b=20)?(v.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),O):S}; LF=function(v,O,Y){v=v.loader.En()||0;return Bu(O,(Y+v)*1E3)/1E3+Y}; nfl=function(v){if(v.policy.RD>0){var O=Math.floor((0,g.J)()/1E4);if(O===v.AK){if(v.B>=v.policy.RD){if(v.B===v.policy.RD){var Y={reason:"toomanyrequests"};Y.limit=v.B;v.loader.handleError("player.exception",Y);v.B+=1}return!1}}else v.AK=O,v.B=0}if(v.loader.isSuspended&&v.loader.E0)return!1;if(v.Ug&&(0,g.J)()0&&(!v.policy.j||v.Y.length!==1||!v.Y[0].xI()))return!1;var S;if((S=v.WW.X)==null||!pc(S,v.policy,v.Z,v.loader.IY())||T$(v.audioTrack)&&T$(v.videoTrack))return!1; if(Z1(v,v.audioTrack)&&Z1(v,v.videoTrack))return v.policy.U&&v.loader.G0("sabrHeap",{a:""+uw(v.audioTrack),v:""+uw(v.videoTrack)}),!1;if(O=v.policy.G){O=!1;if(v.tK.U===2)O=!0;else if(v.tK.U===3){Pt7(v);v.loader.En();var d=ka(v.audioTrack,v.loader.isSeeking()).cD;S=ka(v.videoTrack,v.loader.isSeeking()).cD;var r=v.loader.getCurrentTime()||0;d=LF(v,d,r);S=LF(v,S,r);S=Math.min(d,S);r=v.tK;S>=r.Z?(r.G0("sdai",{haltrq:S,est:r.Z}),S=!0):S=!1;S&&(O=!0)}O&&v.policy.C&&v.loader.G0("sabrcrq",{waitad:1})}if(O)return!1; v.policy.uO&&(v.HW=Eb(v,v.audioTrack),v.JK=Eb(v,v.videoTrack));if(!v.U)return v.policy.C&&v.loader.G0("sabrcrq",{nopolicy:1}),!0;if(v.Og.Rz())return v.policy.C&&v.loader.G0("sabrcrq",{utc:1}),!0;if(v.G.L)return v.policy.C&&v.loader.G0("sabrcrq",{audio:1}),!0;if(!v.U.targetAudioReadaheadMs||!v.U.targetVideoReadaheadMs)return v.policy.C&&v.loader.G0("sabrcrq",{noreadahead:1}),!0;if(v.policy.Z&&v.loader.qQ())return v.policy.C&&v.loader.G0("sabrcrq",{seekToHead:1}),!0;O=Math.min(Rg(v.loader,v.audioTrack)* 1E3,v.U.targetAudioReadaheadMs);S=Math.min(Rg(v.loader,v.videoTrack)*1E3,v.U.targetVideoReadaheadMs);var b=Math.min(O,S);r=yz(v.audioTrack,!0)*1E3;d=yz(v.videoTrack,!0)*1E3;var z=v.Og.getCurrentTime()*1E3;if(v.policy.uO){var M=Bu(v.HW.cD,z);var V=Bu(v.JK.cD,z)}else M=r,V=d;var A=MO||S>=0&&d.z8>S+1)break;Y=Math.max(Y,d.startTimeMs+d.durationMs);S=Math.max(S,d.Qi)}return Math.max(0,Y-O)}; Jw$=function(v,O,Y){var S={C_:v.C_,zR:function(M,V){v.Og.bN(M,V)}, DI:v.policy.vu,s0:v.policy.U};v.C_.U.C&&(S.sy=(v.videoTrack.Y.info.b3||0)+(v.audioTrack.Y.info.b3||0));v.policy.B7&&(S.kN=v.audioTrack.Y.index.Hc(),S.DI=!1);var d=ZHc(O,v.policy,v.Z)?2:1;d!==v.j&&(v.j=d,DCw(v));Y=imF(v,Y);if(v.policy.j&&v.policy.U&&Y.Xd){for(var r=d="",b=g.y(Y.Xd),z=b.next();!z.done;z=b.next())z=z.value,v.videoData.sabrContextUpdates.has(z)||v.policy.j&&Y.iJ&&Y.iJ.type===z?d+="_"+z:r+="_"+z;v.loader.G0("sabrbldrqs",{ctxts:d,misctxts:r})}!O.setData(Y,v.policy,v.Z)&&v.policy.j&&v.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);S=new a3(v.policy,O,v.WW,v.Z,v,S,v.loader.jJ());xm(v.timing);v.policy.C&&v.loader.G0("sabrcrq",{rn:S.zH(),probe:O.MU()});return S}; w7=function(v,O){if(O.vW()||v.vW())v.policy.V_||(v.policy.Z?Xo(v.loader):v.loader.Vw());else{if(v.policy.U&&O.isComplete()&&O instanceof a3){var Y=v.loader,S=Y.G0,d,r,b=Object.assign(O.UE.qw(),{rst:O.state,strm:O.xhr.dB(),d:(d=O.UE.N3)==null?void 0:d.Gn(),cncl:O.xhr&&O.Fh.B?1:0,rqb:O.wq,cwt:O.hH,swt:(r=O.kL)==null?void 0:r.FP});d=Object.assign(ISQ(O.info),b);S.call(Y,"rqs",d)}if(O.isComplete()&&O.MU()&&O instanceof a3)v.policy.rR?O.bG()?(O.dispose(),v.Y.length===0?v.loader.Vw():(v=v.Y[0],v instanceof a3&&v.sZ()&&v.C$())):O.Ey()&&v.loader.handleError(O.ub(),O.dN()):(O.dispose(),v.loader.Vw());else{if(O.YP())O instanceof a3&&eJw(v.timing,O),DCw(v),Hm7(v);else if(O.Ey())Y=v.Og.Rz(),O instanceof a3&&wD$(O.info)&&Y&&v.loader.Lz(Y),O instanceof VQ?v.Y.pop():(Y=1,O.canRetry()&&K2(v.loader)&&(N27(v,O),Y=0),v.loader.handleError(O.ub(),O.dN(),Y));else{if(v.loader.isSuspended&&!O.isComplete())return;Hm7(v)}O.vW()||O instanceof VQ||(O.isComplete()?Y=$_g(O,v.policy,v.Z):(Y=fSJ(O,v.policy,v.Z),Y===1&&(v.f1= !0)),Y!==0&&(S=new ml(1,O.info.m9),S.t2=Y===2,Jw$(v,S)));v.policy.Te&&!O.isComplete()?n2(v.loader):v.loader.Vw()}}}; Hm7=function(v){for(;v.Y.length&&v.Y[0].AX(v.fE());){var O=v.Y.shift();vL7(v,O)}v.Y.length&&vL7(v,v.Y[0])}; vL7=function(v,O){v.policy.GI&&O instanceof a3&&(v.g8=O);var Y=new Set(O.uu(v.fE()));Y=g.y(Y);for(var S=Y.next();!S.done;S=Y.next()){var d=S.value;if(!(S=!(O instanceof VQ))){S=v.G;var r=S.WW.FL,b=iw(S.videoInfos,r);r=Ekn(S,d,r);var z=b.includes(d);!S.rK.ZB||r||z||S.loader.G0("sabrcpf",{fid:""+d,vfids:""+b.join("."),said:S.X||""});S=r||b.includes(d)}if(S&&(S=O.CD(d,v.fE()),b=v.policy.w2&&rb(S[0].Y.info.mimeType),(!(!b&&v.policy.Cp&&S.length>0&&(S[0].Y.info.hM()?yz(v.audioTrack):yz(v.videoTrack))> 3)||O.isComplete())&&O.sY(d,v.fE())))for(d=O.UY(d,v.fE()),d=g.y(d),r=d.next();!r.done;r=d.next())if(r=r.value,v.policy.U&&O instanceof VQ&&v.loader.G0("omblss",{s:r.info.d2()}),b)z=v.timing,z.tK||(z.tK=(0,g.J)(),g.hm("fcb_r",z.tK,z.Y)),z=v,z.videoData.FL()&&z.L&&TD(z.L)===TD(g.Yz(r.info.Y.info,z.WW.FL))&&z.Og.publish("sabrCaptionsDataLoaded",r,z.HN.bind(z));else{z=r.info.Y.info.hM();var M=r.info.Y;if(z){var V=void 0;var A=v.G,f=(V=O.DG(v.fE()))==null?void 0:V.token;A.L&&M!==A.Z?V=!0:(A.L=!1,M!==A.Z&& (A.Z=M,A.B5(M,A.audioTrack,f)),V=!1);if(V)continue}else V=void 0,x_i(v.G,M,(V=O.DG(v.fE()))==null?void 0:V.token);V=z?v.audioTrack:v.videoTrack;O instanceof VQ&&(V.L=!1,O instanceof VQ&&(z?xYc(v.timing):a5F(v.timing)));try{$a(V,S,r)}catch(k){r=hL(k),v.loader.handleError(r.errorCode,r.details,r.severity),V.rE(),v.wU(!1,"pushSlice"),Xo(v.loader)}}}}; N27=function(v,O){v.policy.j?v.Y.splice(v.Y.indexOf(O)).forEach(function(Y){Y.dispose()}):(v.Y.pop(),O==null||O.dispose())}; OhF=function(v,O,Y){for(var S=[],d=0;d0)for(var O=g.y(v.videoData.sabrContextUpdates.keys()),Y=O.next();!Y.done;Y=O.next()){Y=Y.value;var S=void 0;((S=v.videoData.sabrContextUpdates.get(Y))==null?0:S.sendByDefault)&&v.Xd.add(Y)}if(v.policy.j&&v.Y.length)for(O=g.y(v.Y),Y=O.next();!Y.done;Y=O.next())(Y=Y.value.wG())&&Y.type&&Y.sendByDefault&&v.Xd.add(Y.type)}; YlE=function(v){v.policy.R1&&(v.N3=void 0,v.nD=0)}; Slg=function(v,O){if(O.Ey()||O.vW()){var Y=v.loader,S=Y.G0,d=O.state;v=v.fE();var r,b;if((O=(r=O.mq)==null?void 0:r.get(v))==null)O=void 0;else{r=0;v=O.uu();for(var z=0;z=v.policy.rk,b=!1;if(r){var z=0;!isNaN(O)&&O>v.Z&&(z=O-v.Z,v.Z=O);z/d=v.policy.J3&&!v.G;if(!r&&!Y&&jO3(v,O))return NaN;Y&&(v.G=!0);a:{S=b;Y=(0,g.J)()/1E3-(v.JL.In()||0)-v.L.Y-v.policy.yC;r=v.U.startTime;Y=r+Y;if(S){if(isNaN(O)){Ik(v,NaN,"n",O);r=NaN;break a}S=O-v.policy.mU;S=r.B&&S<=r.C){S=!0;break a}S=!1}S=!S}if(S)return v.G0("ostmf",{ct:v.getCurrentTime(),a:O.Y.info.hM()}),!1;(v=v.Ug)!=null&&(v.DU.get(Y).xt=!0);return!0}; Az7=function(v){if(!v.WW.FL)return!0;var O=v.Og.getVideoData();if(v.Og.QP())return v.G0("ombpa",{}),!1;var Y,S;if(v.policy.W6&&!!((Y=v.j)==null?0:(S=Y.Vq)==null?0:S.ea4)!==v.WW.XH)return v.G0("ombplmm",{}),!1;Y=O.pj||O.liveUtcStartSeconds||O.N2;if(v.WW.XH&&Y)return v.G0("ombplst",{}),!1;if(v.WW.j)return v.G0("ombab",{}),!1;Y=Date.now();return FT(v.WW)&&!isNaN(v.HW)&&Y-v.HW>v.policy.gL*1E3?(v.G0("ombttl",{}),!1):v.WW.Zq&&v.WW.B||!v.policy.iW&&v.WW.isPremiere||!(Wj(O)===0||v.policy.Y&&O.V("html5_enable_onesie_media_for_sabr_proxima_optin"))|| O.V("html5_disable_onesie_media_for_mosaic")&&Lh(O)||O.lM()&&!O.V("html5_enable_onesie_media_for_lifa")&&O.isDaiEnabled()&&O.enableServerStitchedDai||O.V("html5_disable_onesie_media_for_lifa_eligible")&&Q_(O)?!1:!0}; fdc=function(v,O){var Y=O.Y,S=v.WW.FL;if(Az7(v))if(v.Ug&&v.Ug.DU.has(TD(g.Yz(Y.info,S)))){if(S=TD(g.Yz(Y.info,S)),Vz7(v,O)){var d=new I0(v.Ug.CD(S)),r=function(b){try{if(b.Ey())v.handleError(b.ub(),b.dN()),p2(O,b),nc(b.info)&&IH(v.Z,O,Y,!0),v.Vw();else if(qj(v.Z,b)){var z;(z=v.G)==null||ZcF(z,b.info,v.tK);v.Vw()}}catch(M){b=hL(M),v.handleError(b.errorCode,b.details,b.severity),v.rE()}}; Y.G=!0;qY(d)&&(f2(O,new TC(v.policy,S,d,v.Ug,r)),xm(v.timing))}}else v.G0("ombfmt",{})}; $J3=function(v,O){O=O||v.videoTrack&&v.videoTrack.U&&v.videoTrack.U.startTime||v.getCurrentTime();var Y=J$,S=v.videoTrack,d=v.Y;O=d.nextVideo&&d.nextVideo.index.cE(O)||0;d.JK!==O&&(d.FO={},d.JK=O,qq(d,d.Y));O=!d.Y.isLocked()&&d.j>-1&&(0,g.J)()-d.jO.Y&&O.reason==="b";S||d||Y?(v.Og.Ae({reattachOnConstraint:S?"u":d?"drm":"perf",lo:O.U,up:O.Y}),v.policy.Iv||(v.B.Y.U=!1)):(v.policy.Iv&&(v.B.Y.U=!1),Xo(v))}}else if(!tMw(v.Y,O)&&v.videoTrack){v.logger.debug(function(){return"Setting constraint: r="+O.reason+" u="+O.Y}); Y=v.Y.Y;yzc(v,Hcn(v.Y,O));$J3(v);S=O.isLocked()&&O.reason==="m"&&v.Y.Ug;d=v.policy.D9&&O.reason==="l"&&lw(v.videoTrack);Y=Y.Y>O.Y&&O.reason==="b";var r=v.Y.Eg&&!PS();S||d||Y||r?v.Og.Ae({reattachOnConstraint:S?"u":d?"drm":r?"codec":"perf"}):Xo(v)}}; xJc=function(v,O,Y){if((!v.Du||mK(v.Du)&&!v.policy.hS)&&!v.Pj.isSeeking()&&(v.policy.Y||lw(O)&&O.Y.gT()&&v.Y.tK)){var S=v.getCurrentTime()+K21(v.X,O,Y);v.logger.debug(function(){return"Clearing back to "+S.toFixed(3)}); NeQ(O,S)}}; yzc=function(v,O){O&&(v.logger.debug(function(){return"Logging new format: "+oI(O.video.info)}),pjm(v.Og,new QV(O.video,O.reason))); if(v.Y.f1){var Y=YLd(v.Y,"a");v.Og.s5(new QV(Y.audio,Y.reason))}}; Xo=function(v){g.HM(v.pj)}; n2=function(v){v.policy.Te&&v.policy.Jp&&Math.min(HTm(v.videoTrack),HTm(v.audioTrack))*1E3>v.policy.Fi?g.HM(v.Mj):v.Vw()}; TXg=function(v,O){var Y=(0,g.J)()-O,S=yz(v.audioTrack,!0)*1E3,d=yz(v.videoTrack,!0)*1E3;v.logger.debug(function(){return"Appends paused for "+Y}); if(v.policy.U&&(v.G0("apdpe",{dur:Y.toFixed(),abuf:S.toFixed(),vbuf:d.toFixed()}),Ei(v.policy))){var r=y4(v.X);v.G0("sdps",{ct:O,ah:S.toFixed(),vh:d.toFixed(),mr:ag(v.X,v.pL,r),bw:r.toFixed(),js:v.isSeeking(),re:+v.pL,ps:(v.policy.Es||"").toString(),rn:(v.policy.KH||"").toString()})}}; ldc=function(v){if(r7w(v.videoTrack))return v.logger.debug("Pausing appends for server-selectable format"),"ssf";if(v.policy.XO&&RH(v.videoTrack)&&RH(v.audioTrack))return"updateEnd";if(T$(v.audioTrack)||T$(v.videoTrack)&&v.videoTrack.Y.info.z0!=="f")return"";if(v.Pj.isSeeking()){var O=v.X;var Y=v.videoTrack;var S=v.audioTrack;if(O.policy.Y){var d=O.policy.e_;Ei(O.policy)&&(d=ag(O,!1,y4(O)));O=d;Y=yz(S,!0)>=O&&yz(Y,!0)>=O}else Y.G.length||S.G.length?(d=Y.Y.info.b3+S.Y.info.b3,d=10*(1-y4(O)/d),O=Math.max(d, O.policy.e_),Y=yz(S,!0)>=O&&yz(Y,!0)>=O):Y=!0;if(!Y)return"abr";Y=v.videoTrack;if(Y.G.length>0&&Y.B.U.length===1&&Tec(Y.B).info.L360);S=Ei(v.policy)&&v.policy.Fk;if(!v.pL||!S&&Y)return"";Y=v.policy.c7;Ei(v.policy)&&(Y=ag(v.X,v.pL,y4(v.X)));Y=OHE(v.videoTrack,v.getCurrentTime(),Y)||OHE(v.audioTrack,v.getCurrentTime(), Y);return Ei(v.policy)?Y?"mbnm":"":(v.videoTrack.G.length>0||v.audioTrack.G.length>0||ZT(v.Z,v.videoTrack,v.audioTrack)||ZT(v.Z,v.audioTrack,v.videoTrack))&&Y?"nord":""}; Fjd=function(v){if(v.L){var O=v.L.Vw(v.audioTrack,MO(v.Du.U.UM()));O&&v.Og.seekTo(O,{Iz:!0,Vg:"pollSubsegmentReadahead",oJ:!0})}}; BXn=function(v,O,Y){if(v.policy.XO&&RH(O))return!1;if(Y.g$())return!0;if(!Y.kX())return!1;var S=BC(O);if(!S||S.info.type===6)return!1;var d;if(v.policy.TK||((d=v.G)==null?0:qZn(d,O,S.info.Vx)))v.FO=0;else return v.Pj.isSeeking()&&Xo(v),v.FO=v.FO||(0,g.J)(),!1;if(!qg(v,O,Y,S.info))return!1;if(v.WW.U&&S.info.U===0){if(d=hhc(O,Y,S)){var r=A$(O);v.G0("initchg",{it:S.info.Y.info.id,sr:!!r&&r.Y===S.info.Y,ty:S.info.type,seg:S.info.Vx})}r=g.vS(S.info.Y.info);v.policy.Td&&r&&!d&&il3(S)}r=v.L&&!!v.L.B&&O.Y.info.audio; d=v.WW.isManifestless||S.Z;if(!(v.WW.U&&S.info.U!==0||d&&!r)&&Rhg(v,O,Y,S))return!0;if(r)return!1;r=Rg(v,O);r=v.getCurrentTime()+r;if(S.info.B>r)return v.policy.Y&&eh$(v,O),v.policy.yI&&SGJ(O.B,r,!1),!1;ELw(v,O);var b;v.policy.FZ&&Y===((b=v.Du)==null?void 0:b.Y)&&v.xg&&(Y.uY()===0?(v.xg=!1,v.policy.FZ=!1):v.yx=Y.uY());if(!QOl(v,Y,S,O))return!1;v.policy.XO&&S.info.D0()?(v.Og.D().XL()&&v.G0("eosl",{ls:S.info.d2()}),S.isLocked=!0):(O.s$(S),OTc(v.Y,S.info),v.logger.debug(function(){return"Appended "+ S.info.d2()+", buffered: "+WS(Y.UM())})); d&&Lj1(v,S.info.Y.V6);return!0}; eh$=function(v,O){O===v.videoTrack?v.g8=v.g8||(0,g.J)():v.N3=v.N3||(0,g.J)()}; ELw=function(v,O){O===v.videoTrack?v.g8=0:v.N3=0}; QOl=function(v,O,Y,S){var d=v.policy.pj?(0,g.J)():0,r=Y.Z&&Y.info.Y.Y||void 0,b=Y.Y;Y.Z&&(b=Zhn(v,Y,b)||b);var z=b.ov();b=v.policy.pj?(0,g.J)():0;O=Xjl(v,O,z,Y.info,r);(S=S.j)!=null&&(r=Y.info,d=b-d,b=(0,g.J)()-b,!S.U||sIg(S.U,r)&&S.U.Vx===r.Vx||S.flush(),S.B+=d,S.G+=b,d=1,!S.U&&r.U&&(d=2),iW(S,d,O),b=Math.ceil(r.U/1024),d===2&&S.Y.add(b),S.Y.add(Math.ceil((r.U+r.G)/1024)-b),S.U=r);v.JK=0;if(O===0)return v.AK&&(v.logger.debug("Retry succeed, back to normal append logic."),v.AK=!1,v.On=!1),v.n1=0, !0;if(O===2||O===5)return wjg(v,"checked",O,Y.info),!1;if(O===1){if(!v.AK)return v.logger.debug("QuotaExceeded, retrying."),v.AK=!0,!1;if(!v.On)return v.On=!0,v.Og.seekTo(v.getCurrentTime(),{Vg:"quotaExceeded",oJ:!0}),!1;Y.info.EM()?(d=v.policy,d.g8=Math.floor(d.g8*.8),d.HW=Math.floor(d.HW*.8)):(d=v.policy,d.yx=Math.floor(d.yx*.8),d.HW=Math.floor(d.HW*.8));v.policy.Y?BX(v.B.Y,Y.info.Y,!1):JC(v.Y,Y.info.Y)}v.Og.Ae({reattachOnAppend:O});return!1}; Zhn=function(v,O,Y){var S;if(S=v.policy.GA&&v.Du&&!v.Du.X&&!v.Og.Io())O=O.info.Y.info,S=O.BY()&&GB(O)&&O.video&&O.video.width<3840&&O.video.width>O.video.height;if(S&&(v.Du.X=!0,Q9('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return Y=x9d(Y),v.policy.U&&v.G0("sp4k",{s:!!Y}),Y}; wjg=function(v,O,Y,S){var d="fmt.unplayable",r=1;Y===5||Y===3?(d="fmt.unparseable",v.policy.Y?!S.Y.info.video||Z8(v.B.Y).size>0||BX(v.B.Y,S.Y,!1):!S.Y.info.video||Z8(v.Y.Z).size>0||JC(v.Y,S.Y)):Y===2&&(v.n1<15?(v.n1++,d="html5.invalidstate",r=0):d="fmt.unplayable");S=XN(S);var b;S.mrs=(b=v.Du)==null?void 0:NO(b);S.origin=O;S.reason=Y;v.handleError(d,S,r)}; nAl=function(v,O,Y,S,d){var r=v.WW;var b=v.policy.Y,z=!1,M=-1,V;for(V in r.Y){var A=rb(r.Y[V].info.mimeType)||r.Y[V].info.EM();if(S===A)if(A=r.Y[V].index,A.Uo(O.Vx)){z=A;var f=O,k=z.fU(f.Vx);k&&k.startTime!==f.startTime?(z.segments=[],z.ij(f),z=!0):z=!1;z?M=O.Vx:!O.pending&&b&&(f=A.getDuration(O.Vx),f!==O.duration&&(r.publish("clienttemp","mfldurUpdate",{itag:r.Y[V].info.itag,seg:O.Vx,od:f,nd:O.duration},!1),A.ij(O),z=!0))}else A.ij(O),z=!0}M>=0&&(b={},r.publish("clienttemp","resetMflIndex",(b[S? "v":"a"]=M,b),!1));r=z;o$1(v.Pj,O,S,r);v.G.Zw(O,Y,S,d);if(v.policy.q8&&Y){var U;(U=v.PT)!=null&&U.B.set(O.Vx,Y)}O.Vx===v.WW.Zq&&r&&aW(v.WW)&&O.startTime>aW(v.WW)&&(v.WW.HW=O.startTime+(isNaN(v.timestampOffset)?0:v.timestampOffset),v.Pj.isSeeking()&&v.Pj.Y 5)return v.JK=0,v.Og.Ae({initSegStuck:1,as:S.info.d2()}),!0}else v.JK=0,v.Te=S;v.policy.qv&&(Y.abort(),(b=O.j)!=null&&(iW(b,4),b.flush()));d=Xjl(v,Y,r,M,d);var V;(V=O.j)==null||z9w(V,d,M);if(d!==0)return IdQ(v,d,S),!0;S.info.EM()?l51(v.timing):Ftw(v.timing);v.logger.debug(function(){return"Appended init for "+S.info.Y.info.id}); Lj1(v,S.info.Y.V6);return Y.Rr()}; hhc=function(v,O,Y){if(O.oz()==null){v=A$(v);if(!(O=!v||v.Y!==Y.info.Y)){a:if(v=v.j,Y=Y.info.j,v.length!==Y.length)Y=!1;else{for(O=0;O1)return 6;b.FO=new g.mX(function(){var z=BC(b);v.vW()||z==null||!z.isLocked?v.Og.D().XL()&&v.G0("eosl",{delayA:z==null?void 0:z.info.d2()}):qlw(b)?(v.Og.D().XL()&&v.G0("eosl",{dunlock:z==null?void 0:z.info.d2()}),nL3(v,b===v.audioTrack)):(v.G0("nue",{ls:z.info.d2()}),z.info.tK+=1,v.Du&&v.ND())},1E4,v); v.Og.D().XL()&&v.G0("eosl",{delayS:S.d2()});b.FO.start()}v.policy.S9&&(S==null?void 0:S.Y)instanceof Kc&&S.D0()&&v.G0("poseos",{itag:S.Y.info.itag,seg:S.Vx,lseg:S.Y.index.Eq(),es:S.Y.index.G});O.appendBuffer(Y,S,d)}catch(z){if(z instanceof DOMException){if(z.code===11)return 2;if(z.code===12)return 5;if(z.code===22||z.message.indexOf("Not enough storage")===0)return O=Object.assign({name:"QuotaExceededError",buffered:WS(O.UM()).replace(/,/g,"_"),vheap:uw(v.videoTrack),aheap:uw(v.audioTrack),message:g.ov(z.message, 3),track:v.Du?O===v.Du.U?"v":"a":"u"},sOg(v.policy.S1)),v.handleError("player.exception",O),1;g.LP(z)}return 4}return v.Du.bb()?3:0}; LX=function(v,O,Y){v.Og.seekTo(O,Y)}; Lj1=function(v,O){O&&v.Og.Ig(new Ya(O.key,O.type))}; bw=function(v,O){v.Og.N_(O)}; Rg=function(v,O){if(v.AK&&!v.pL)return 3;if(v.isSuspended)return 1;var Y;if((Y=v.Du)==null?0:Y.Du&&Y.Du.streaming===!1)return 4;Y=(O.Y.info.audio?v.policy.yx:v.policy.g8)/(O.b3*v.policy.Nk);if(v.policy.LM>0&&v.Du&&mK(v.Du)&&(O=O.Y.info.video?v.Du.U:v.Du.Y)&&!O.Rr()){O=O.UM();var S=zz(O,v.getCurrentTime());S>=0&&(O=v.getCurrentTime()-O.start(S),Y+=Math.max(0,Math.min(O-v.policy.LM,v.policy.Tk)))}v.policy.HW>0&&(Y=Math.min(Y,v.policy.HW));return Y}; GjJ=function(v,O){return(Rg(v,O)+v.policy.aC)*O.b3}; Kj$=function(v){v.Eg&&!v.isSuspended&&kk(v.schedule)&&(Jzi(v,v.Eg),v.Eg="")}; Jzi=function(v,O){Ut(O,"cms",function(Y){v.policy.U&&v.G0("pathprobe",Y)},function(Y){v.Og.handleError(Y)})}; P8E=function(v,O){if(v.Du&&v.Du.B&&!v.Du.bb()&&(O.dJ=yz(v.videoTrack),O.U=yz(v.audioTrack),v.policy.U)){var Y=uw(v.videoTrack),S=uw(v.audioTrack),d=WS(v.Du.U.UM(),"_",5),r=WS(v.Du.Y.UM(),"_",5);Object.assign(O.Y,{lvq:Y,laq:S,lvb:d,lab:r})}O.bandwidthEstimate=uy(v.X);var b;(b=v.audioTrack.j)==null||b.flush();var z;(z=v.videoTrack.j)==null||z.flush();v.logger.debug(function(){return TB(O.Y)})}; G3i=function(v,O){v.tK=O;v.G&&(v.G.G=O);v.tK.Vp(v.videoTrack.Y.info.BY());v.Z.U=v.tK;v.policy.G&&(v.U.X=v.tK)}; DJE=function(v,O){if(v.Du&&v.Du.U){if(v.policy.lD){var Y=jPi(v.audioTrack);if(Y&&Y.hM()){var S=v.Og;if(S.Ef&&(S.Ef.Y=Y,Y=S.Kj(S.Ef.videoId),Y.qoe)){Y=Y.qoe;S=S.Ef;var d=g.KF(Y.provider);ihi(Y,d,S)}}}v.policy.iD&&(Y=jPi(v.videoTrack))&&Y.EM()&&(S=v.Og,S.ew&&(S.ew.Y=Y,Y=S.Kj(S.ew.videoId),Y.qoe&&mJc(Y.qoe,S.ew)));O-=isNaN(v.timestampOffset)?0:v.timestampOffset;v.getCurrentTime()!==O&&v.resume();v.Pj.isSeeking()&&v.Du&&!v.Du.bb()&&(S=v.getCurrentTime()<=O&&O=0&&r1?z.G[0]=O&&gLm(v,S.startTime,!1)}); return Y&&Y.startTimev.getCurrentTime())return Y.start/1E3;return Infinity}; tJ7=function(v){if(v.Og.getVideoData().isLivePlayback)return!1;var O=v.Og.Bq();if(!O)return!1;O=O.getDuration();if(v.Du&&v.Du.Y&&v.Du.U){var Y=v.getCurrentTime(),S=v.Du.Y.UM();v=v.Du.U.UM();S=S?gb(S,Y):Y;Y=v?gb(v,Y):Y;Y=Math.min(S,Y);O=isNaN(Y)?!1:Y>=O-.01}else O=!1;return O}; IdQ=function(v,O,Y){v.policy.ir&&HO(v.Og.getVideoData())?(v.Og.LO()||wjg(v,"sepInit",O,Y.info),YT1(v.Og,"sie")):wjg(v,"sepInit",O,Y.info)}; K2=function(v){return v.Og.IY()0){var d=S.Y.shift();dGn(S,d.info)}S.Y.length>0&&(d=S.Y[0].time-(0,g.J)(),S.U.start(Math.max(0,d)))}},0); g.w(this,this.U);O.subscribe("widevine_set_need_key_info",this.Z,this)}; dGn=function(v,O){a:{var Y=O.cryptoPeriodIndex;if(isNaN(Y)&&v.G.size>0)Y=!0;else{for(var S=g.y(v.G.values()),d=S.next();!d.done;d=S.next())if(d.value.cryptoPeriodIndex===Y){Y=!0;break a}Y=!1}}v.publish("log_qoe",{wvagt:"reqnews",canskip:Y});Y||v.publish("rotated_need_key_info_ready",O)}; r4Q=function(){var v={};var O=v.url;var Y=v.interval;v=v.retries;this.url=O;this.interval=Y;this.retries=v}; bU1=function(v,O){this.statusCode=v;this.message=O;this.U=this.heartbeatParams=this.errorMessage=null;this.Y={};this.nextFairplayKeyId=null}; oen=function(v,O,Y){Y=Y===void 0?"":Y;g.X.call(this);this.message=v;this.requestNumber=O;this.KP=Y;this.onError=this.onSuccess=null;this.Y=new g.Z0(5E3,2E4,.2)}; jhg=function(v,O,Y){v.onSuccess=O;v.onError=Y}; gaQ=function(v,O,Y,S){var d={timeout:3E4,onSuccess:function(r){if(!v.vW()){nw("drm_net_r",void 0,v.KP);var b=r.status==="LICENSE_STATUS_OK"?0:9999,z=null;if(r.license)try{z=jl(r.license)}catch(c){g.LP(c)}if(b!==0||z){z=new bU1(b,z);b!==0&&r.reason&&(z.errorMessage=r.reason);if(r.authorizedFormats){b={};for(var M=[],V={},A=g.y(r.authorizedFormats),f=A.next();!f.done;f=A.next())if(f=f.value,f.trackType&&f.keyId){var k=sHw[f.trackType];if(k){k==="HD"&&r.isHd720&&(k="HD720");f.isHdr&&(k+="HDR");b[k]|| (M.push(k),b[k]=!0);var U=null;try{U=jl(f.keyId)}catch(c){g.LP(c)}U&&(V[g.bV(U,4)]=k)}}z.U=M;z.Y=V}r.nextFairplayKeyId&&(z.nextFairplayKeyId=r.nextFairplayKeyId);r.sabrLicenseConstraint&&(z.sabrLicenseConstraint=jl(r.sabrLicenseConstraint));r=z}else r=null;if(r)v.onSuccess(r,v.requestNumber);else v.onError(v,"drm.net","t.p;p.i")}}, onError:function(r){if(!v.vW())if(r&&r.error)r=r.error,v.onError(v,"drm.net.badstatus","t.r;p.i;c."+r.code+";s."+r.status,r.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)}}; S&&(d.Mr="Bearer "+S);g.vG(Y,"player/get_drm_license",O,d)}; MO$=function(v,O,Y,S){g.MU.call(this);this.videoData=v;this.Yg=O;this.X=Y;this.sessionId=S;this.Z={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.tK=this.Ug=!1;this.G=null;this.HW=[];this.B=[];this.NT=[];this.L=!1;this.Y={};this.status="";this.C=NaN;this.U=v.Z;this.cryptoPeriodIndex=Y.cryptoPeriodIndex;v={};Object.assign(v,this.Yg.Y);v.cpn=this.videoData.clientPlaybackNonce;this.videoData.JK&&(v.vvt=this.videoData.JK,this.videoData.mdxEnvironment&&(v.mdx_environment=this.videoData.mdxEnvironment)); this.Yg.HW&&(v.authuser=this.Yg.HW);this.Yg.pageId&&(v.pageid=this.Yg.pageId);isNaN(this.cryptoPeriodIndex)||(v.cpi=this.cryptoPeriodIndex.toString());var d=(d=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.yh()))?d[1]:"";d==="ATV"&&(v.cdt=d);this.Z=v;this.Z.session_id=S;this.j=!0;this.U.flavor==="widevine"&&(this.Z.hdr="1");this.U.flavor==="playready"&&(O=Number(HY(O.experiments,"playready_first_play_expiration")),!isNaN(O)&&O>=0&&(this.Z.mfpe=""+O),this.j=!1);O="";g.nT(this.U)?q9(this.U)?(S=Y.U)&&(O="https://www.youtube.com/api/drm/fps?ek="+ ysl(S)):(O=Y.initData.subarray(4),O=new Uint16Array(O.buffer,O.byteOffset,O.byteLength/2),O=String.fromCharCode.apply(null,O).replace("skd://","https://")):O=this.U.U;this.baseUrl=O;this.fairplayKeyId=Fa(this.baseUrl,"ek")||"";if(O=Fa(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(O);this.HW=Y.BY?[g.bV(Y.initData,4)]:Y.G;t0(this,{sessioninit:Y.cryptoPeriodIndex});this.status="in"}; $jm=function(v,O){t0(v,{createkeysession:1});v.status="gr";nw("drm_gk_s",void 0,v.videoData.j);v.url=VOF(v);try{v.G=O.createSession(v.X,function(Y){t0(v,{m:Y})})}catch(Y){O="t.g"; Y instanceof DOMException&&(O+=";c."+Y.code);v.publish("licenseerror","drm.unavailable",1,O,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}v.G&&(A$$(v.G,function(Y,S){fTn(v,Y,S)},function(Y,S,d){if(!v.vW()){S=void 0; var r=1;g.nT(v.U)&&g.RP(v.Yg)&&v.Yg.V("html5_enable_safari_fairplay")&&d===1212433232&&(S="ERROR_HDCP",r=v.Yg.V("html5_safari_fairplay_ignore_hdcp")?0:r);v.error("drm.keyerror",r,Y,S)}},function(){v.vW()||(t0(v,{onkyadd:1}),v.tK||(v.publish("sessionready"),v.tK=!0))},function(Y){v.xo(Y)}),g.w(v,v.G))}; VOF=function(v){var O=v.baseUrl;MFl(O)||v.error("drm.net",2,"t.x");if(!Fa(O,"fexp")){var Y=["23898307","23914062","23916106","23883098"].filter(function(d){return v.Yg.experiments.experiments[d]}); Y.length>0&&(v.Z.fexp=Y.join())}Y=g.y(Object.keys(v.Z));for(var S=Y.next();!S.done;S=Y.next())S=S.value,O=i41(O,S,v.Z[S]);return O}; fTn=function(v,O,Y){if(!v.vW())if(O){t0(v,{onkmtyp:Y});v.status="km";switch(Y){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":k$c(v,O);return;default:v.publish("ctmp","message_type",{t:Y,l:O.byteLength})}v.Ug||(nw("drm_gk_f",void 0,v.videoData.j),v.Ug=!0,v.publish("newsession",v));if(XT(v.U)&&(O=UjE(O),!O))return;O=new oen(O,++v.requestNumber,v.videoData.j);jhg(O,function(S){c$n(v,S)},function(S,d,r){if(!v.vW()){var b=0; S.Y.U>=3&&(b=1,d="drm.net.retryexhausted");t0(v,{onlcsrqerr:d,info:r});v.error(d,b,r);v.shouldRetry(FW(b),S)&&u7n(v,S)}}); g.w(v,O);Cw1(v,O)}else v.error("drm.unavailable",1,"km.empty")}; k$c=function(v,O){t0(v,{sdpvrq:1});v.C=Date.now();if(v.U.flavor!=="widevine")v.error("drm.provision",1,"e.flavor;f."+v.U.flavor+";l."+O.byteLength);else{var Y={cpn:v.videoData.clientPlaybackNonce};Object.assign(Y,v.Yg.Y);Y=g.Te("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",Y);O={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, O)}),responseType:"arraybuffer"};g.hy(Y,O,3,500).then(ps(function(S){S=S.xhr;if(!v.vW()){S=new Uint8Array(S.response);var d=String.fromCharCode.apply(null,S);try{var r=JSON.parse(d)}catch(b){}r&&r.signedResponse?(v.publish("ctmp","drminfo",{provisioning:1}),r=(Date.now()-v.C)/1E3,v.C=NaN,v.publish("ctmp","provs",{et:r.toFixed(3)}),v.G&&v.G.update(S)):(r=r&&r.error&&r.error.message,S="e.parse",r&&(S+=";m."+r),v.error("drm.provision",1,S))}}),ps(function(S){v.vW()||v.error("drm.provision",1,"e."+S.errorCode+ ";c."+(S.xhr&&S.xhr.status))}))}}; D1=function(v){var O;if(O=v.j&&v.G!=null)v=v.G,O=!(!v.Y||!v.Y.keyStatuses);return O}; Cw1=function(v,O){v.status="km";nw("drm_net_s",void 0,v.videoData.j);var Y=new g.NF(v.Yg.c7),S={context:g.sx(Y.config_||g.zY())};S.drmSystem=y$d[v.U.flavor];S.videoId=v.videoData.videoId;S.cpn=v.videoData.clientPlaybackNonce;S.sessionId=v.sessionId;S.licenseRequest=g.bV(O.message);S.drmParams=v.videoData.drmParams;isNaN(v.cryptoPeriodIndex)||(S.isKeyRotated=!0,S.cryptoPeriodIndex=v.cryptoPeriodIndex);var d,r,b=!!((d=v.videoData.U)==null?0:(r=d.video)==null?0:r.isHdr());S.drmVideoFeature=b?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(S.context&&S.context.client){if(d=v.Yg.Y)S.context.client.deviceMake=d.cbrand,S.context.client.deviceModel=d.cmodel,S.context.client.browserName=d.cbr,S.context.client.browserVersion=d.cbrver,S.context.client.osName=d.cos,S.context.client.osVersion=d.cosver;S.context.user=S.context.user||{};S.context.request=S.context.request||{};v.videoData.JK&&(S.context.user.credentialTransferTokens=[{token:v.videoData.JK,scope:"VIDEO"}]);S.context.request.mdxEnvironment=v.videoData.mdxEnvironment|| S.context.request.mdxEnvironment;v.videoData.qX&&(S.context.user.kidsParent={oauthToken:v.videoData.qX});g.nT(v.U)&&(S.fairplayKeyId=g.bV(aci(v.fairplayKeyId)));g.vO(v.Yg,g.ez(v.videoData)).then(function(z){gaQ(O,S,Y,z);v.status="rs"})}else v.error("drm.net",2,"t.r;ic.0")}; c$n=function(v,O){if(!v.vW())if(t0(v,{onlcsrsp:1}),v.status="rr",O.statusCode!==0)v.error("drm.auth",1,"t.f;c."+O.statusCode,O.errorMessage||void 0);else{nw("drm_kr_s",void 0,v.videoData.j);if(O.heartbeatParams&&O.heartbeatParams.url&&v.videoData.V("outertube_streaming_data_always_use_staging_license_service")){var Y=v.U.U.match(/(.*)youtube.com/g);Y&&(O.heartbeatParams.url=Y[0]+O.heartbeatParams.url)}O.heartbeatParams&&v.publish("newlicense",O.heartbeatParams);O.U&&(v.B=O.U,v.videoData.AB||v.publish("newlicense", new r4Q),v.videoData.AB=!0,v.L=H4(v.B,function(S){return S.includes("HDR")})); O.Y&&(v.Yg.V("html5_enable_vp9_fairplay")&&q9(v.U)?(Y=g.bV(aci(v.fairplayKeyId),4),v.Y[Y]={type:O.Y[Y],status:"unknown"}):v.Y=I8(O.Y,function(S){return{type:S,status:"unknown"}})); IW(v.U)&&(O.message=Z8J(g.bV(O.message)));v.G&&(t0(v,{updtks:1}),v.status="ku",v.G.update(O.message).then(function(){nw("drm_kr_f",void 0,v.videoData.j);D1(v)||(t0(v,{ksApiUnsup:1}),v.publish("keystatuseschange",v))},function(S){S="msuf.req."+v.requestNumber+";msg."+g.ov(S.message,3); v.error("drm.keyerror",1,S)})); g.nT(v.U)&&v.publish("fairplay_next_need_key_info",v.baseUrl,O.nextFairplayKeyId);v.Yg.V("html5_enable_vp9_fairplay")&&q9(v.U)&&v.publish("qualitychange",aTQ(v.B));O.sabrLicenseConstraint&&v.publish("sabrlicenseconstraint",O.sabrLicenseConstraint)}}; u7n=function(v,O){var Y=O.Y.getValue();Y=new g.mX(function(){Cw1(v,O)},Y); g.w(v,Y);Y.start();g.XJ(O.Y);t0(v,{rtyrq:1})}; xjd=function(v,O){for(var Y=[],S=g.y(Object.keys(v.Y)),d=S.next();!d.done;d=S.next())d=d.value,Y.push(d+"_"+v.Y[d].type+"_"+v.Y[d].status);return Y.join(O)}; p$1=function(v){var O={};O[v.status]=D1(v)?xjd(v,"."):v.B.join(".");return O}; TOE=function(v){switch(v.replace("HDR","").replace("720","")){case "AUDIO":return 1;case "SD":return 2;case "HD":return 3;case "UHD1":return 4;case "UHD2":return 5;default:return 0}}; Hu=function(v,O){for(var Y in v.Y)if(v.Y[Y].status==="usable"&&v.Y[Y].type===O)return!0;return!1}; lTd=function(v,O){for(var Y in v.Y)if(v.Y[Y].type===O)return v.Y[Y].status}; t0=function(v,O){var Y=Y===void 0?!1:Y;TB(O);(Y||v.Yg.XL())&&v.publish("ctmp","drmlog",O)}; Fll=function(v){var O=v[0];v[0]=v[3];v[3]=O;O=v[1];v[1]=v[2];v[2]=O;O=v[4];v[4]=v[5];v[5]=O;O=v[6];v[6]=v[7];v[7]=O}; aTQ=function(v){return g.Vv(v,"UHD2")||g.Vv(v,"UHD2HDR")?"highres":g.Vv(v,"UHD1")||g.Vv(v,"UHD1HDR")?"hd2160":g.Vv(v,"HD")||g.Vv(v,"HDHDR")?"hd1080":g.Vv(v,"HD720")||g.Vv(v,"HD720HDR")?"hd720":"large"}; UjE=function(v){for(var O="",Y=0;Y'.charCodeAt(S);v=v.G.createSession("video/mp4",O,Y);return new Ng(null,null,null,null,v)}; Z2E=function(v,O){var Y=v.C[O.sessionId];!Y&&v.B&&(Y=v.B,v.B=null,Y.sessionId=O.sessionId,v.C[O.sessionId]=Y);return Y}; QHw=function(v,O){var Y=v.subarray(4);Y=new Uint16Array(Y.buffer,Y.byteOffset,Y.byteLength/2);Y=String.fromCharCode.apply(null,Y).match(/ek=([0-9a-f]+)/)[1];for(var S="",d=0;d19.2999?(v=Y.K$,Y=Y.aO,Y>=v&&(Y=v* .75),O=(v-Y)*.5,Y=new ia(O,v,v-O-Y,this)):Y=null;break a;case "widevine":Y=new m1(O,this,v);break a;default:Y=null}if(this.Z=Y)g.w(this,this.Z),this.Z.subscribe("rotated_need_key_info_ready",this.zE,this),this.Z.subscribe("log_qoe",this.gy,this);KT(this.Yg.experiments);this.gy({cks:this.Y.getInfo()})}; w$c=function(v){var O=Ean(v.B);O?O.then(ps(function(){qil(v)}),ps(function(Y){if(!v.vW()){g.LP(Y); var S="t.a";Y instanceof DOMException&&(S+=";n."+Y.name+";m."+Y.message);v.publish("licenseerror","drm.unavailable",1,S,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(v.gy({mdkrdy:1}),v.j=!0); v.tK&&(O=Ean(v.tK))}; J$1=function(v,O,Y){v.AK=!0;Y=new Ya(O,Y);v.Yg.V("html5_eme_loader_sync")&&(v.C.get(O)||v.C.set(O,Y));nad(v,Y)}; nad=function(v,O){if(!v.vW()){v.gy({onInitData:1});if(v.Yg.V("html5_eme_loader_sync")&&v.videoData.G&&v.videoData.G.Y){var Y=v.L.get(O.initData);O=v.C.get(O.initData);if(!Y||!O)return;O=Y;Y=O.initData;v.C.remove(Y);v.L.remove(Y)}v.gy({initd:O.initData.length,ct:O.contentType});if(v.Y.flavor==="widevine")if(v.N3&&!v.videoData.isLivePlayback)YF(v);else{if(!(v.Yg.V("vp9_drm_live")&&v.videoData.isLivePlayback&&O.BY)){v.N3=!0;Y=O.cryptoPeriodIndex;var S=O.Y;ctm(O);O.BY||(S&&O.Y!==S?v.publish("ctmp","cpsmm", {emsg:S,pssh:O.Y}):Y&&O.cryptoPeriodIndex!==Y&&v.publish("ctmp","cpimm",{emsg:Y,pssh:O.cryptoPeriodIndex}));v.publish("widevine_set_need_key_info",O)}}else v.zE(O)}}; qil=function(v){if(!v.vW())if(v.Yg.V("html5_drm_set_server_cert")||q9(v.Y)){var O=v.B.setServerCertificate();O?O.then(ps(function(Y){v.Yg.XL()&&v.publish("ctmp","ssc",{success:Y})}),ps(function(Y){v.publish("ctmp","ssce",{n:Y.name, m:Y.message})})).then(ps(function(){Kl3(v)})):Kl3(v)}else Kl3(v)}; Kl3=function(v){v.vW()||(v.j=!0,v.gy({onmdkrdy:1}),YF(v))}; Pwl=function(v){return v.Y.flavor==="widevine"&&v.videoData.V("html5_drm_cpi_license_key")}; YF=function(v){if(v.AK&&v.j&&!v.JK){for(;v.G.length;){var O=v.G[0],Y=Pwl(v)?uT3(O):g.bV(O.initData);if(q9(v.Y)&&!O.U)v.G.shift();else{if(v.U.get(Y))if(v.Y.flavor!=="fairplay"||q9(v.Y)){v.G.shift();continue}else v.U.delete(Y);ctm(O);break}}v.G.length&&v.createSession(v.G[0])}}; G$d=function(v){var O;if(O=g.Pf()){var Y;O=!((Y=v.B.U)==null||!Y.getMetrics)}O&&(O=v.B.getMetrics())&&(O=g.FA(O),v.publish("ctmp","drm",{metrics:O}))}; i2w=function(){var v=BkE();return!(!v||v==="visible")}; tOm=function(v){var O=mjn();O&&document.addEventListener(O,v,!1)}; DjQ=function(v){var O=mjn();O&&document.removeEventListener(O,v,!1)}; mjn=function(){if(document.visibilityState)var v="visibilitychange";else{if(!document[Ai+"VisibilityState"])return"";v=Ai+"visibilitychange"}return v}; H2F=function(v){g.X.call(this);var O=this;this.Og=v;this.K2=0;this.C=this.U=this.Z=!1;this.B=0;this.Qx=this.Og.D();this.videoData=this.Og.getVideoData();this.G=g.Vq(this.Qx.experiments,"html5_delayed_retry_count");this.Y=new g.mX(function(){O.Og.jA()},g.Vq(this.Qx.experiments,"html5_delayed_retry_delay_ms")); g.w(this,this.Y)}; SbJ=function(v,O,Y){var S=v.videoData.U,d=v.videoData.B;HO(v.Og.getVideoData())&&v.Qx.V("html5_gapless_fallback_on_qoe_restart")&&YT1(v.Og,"pe");if((O==="progressive.net.retryexhausted"||O==="fmt.unplayable"||O==="fmt.decode")&&!v.Og.T8.Z&&S&&S.itag==="22")return v.Og.T8.Z=!0,v.OE("qoe.restart",{reason:"fmt.unplayable.22"}),v.Og.Bb(),!0;var r=!1;if(v.videoData.isExternallyHostedPodcast){if(r=v.videoData.FEW)Y.mimeType=r.type,v.G0("3pp",{url:r.url});Y.ns="3pp";v.Og.g4(O,1,"VIDEO_UNAVAILABLE",TB((new lJ(O, Y,1)).details));return!0}var b=v.K2+3E4<(0,g.J)()||v.Y.isActive();if(v.Qx.V("html5_empty_src")&&v.videoData.isAd()&&O==="fmt.unplayable"&&/Empty src/.test(""+Y.msg))return Y.origin="emptysrc",v.OE("auth",Y),!0;b||NOQ(v.Og.R4())||(Y.nonfg="paused",b=!0,v.Og.pauseVideo());(O==="fmt.decode"||O==="fmt.unplayable")&&(d==null?0:Ha(d)||Nu(d))&&(msm(v.Qx.Z,d.z0),Y.acfallexp=d.z0,r=b=!0);!b&&v.G>0&&(v.Y.start(),b=!0,Y.delayed="1",--v.G);d=v.Og.loader;!b&&((S==null?0:D6(S))||(S==null?0:GB(S)))&&(msm(v.Qx.Z, S.z0),r=b=!0,Y.cfallexp=S.z0);if(!b)return vEw(v,Y);b=!1;v.Z?v.K2=(0,g.J)():b=v.Z=!0;var z=v.videoData;if(z.Eg){z=z.Eg.rg();var M=Date.now()/1E3+1800;z=z6048E5&&oE3(v,"signature");return!1}; oE3=function(v,O){try{O={detail:"pr."+O},g.J7(v.Qx)&&v.Qx.V("html5_reload_by_kabuki_app")?v.Og.g4("qoe.restart",1,void 0,TB(O),"7"):(v.OE("qoe.restart",O),window.location.reload())}catch(Y){}}; W13=function(v,O){var Y=v.Qx.Z;Y.L=!1;Y.U=!0;v.OE("qoe.restart",{e:O===void 0?"fmt.noneavailable":O,detail:"hdr"});v.Og.jA(!0)}; zSQ=function(v,O,Y,S,d,r){this.videoData=v;this.Y=O;this.reason=Y;this.U=S;this.token=d;this.videoId=r}; SH=function(v,O,Y){this.Yg=v;this.Mv=O;this.Og=Y;this.X=this.C=this.Y=this.B=this.L=this.U=0;this.Z=!1;this.j=g.Vq(this.Yg.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.G=new Map}; gEE=function(v,O,Y){!v.Yg.V("html5_tv_ignore_capable_constraint")&&g.lx(v.Yg)&&(Y=Y.compose(skE(v,O)));return Y}; MTl=function(v){if(v.Og.R4().isInline())return Xu;var O;v.V("html5_exponential_memory_for_sticky")?O=UU(v.Yg.lO,"sticky-lifetime")<.5?"auto":Wz[Iy()]:O=Wz[Iy()];return g.bB("auto",O,!1,"s")}; A0d=function(v,O){var Y,S=VTi(v,(Y=O.Y)==null?void 0:Y.videoInfos);Y=v.Og.getPlaybackRate();return Y>1&&S?(v=K9F(v.Yg.Z,O.Y.videoInfos,Y),new ri(0,v,!0,"o")):new ri(0,0,!1,"o")}; VTi=function(v,O){return O&&g.lx(v.Yg)?O.some(function(Y){return Y.video.fps>32}):!1}; f17=function(v,O){if(v.V("html5_disable_ustreamer_constraint_for_sabr")&&Ol(O.videoData))return Xu;var Y=v.Og.J5();v.V("html5_use_video_quality_cap_for_ustreamer_constraint")&&Y&&Y.h1>0&&jZ(O.videoData.Qs)&&(v=Y.h1,O.videoData.Qs=new ri(0,v,!1,"u"));return O.videoData.Qs}; skE=function(v,O){if(g.lx(v.Yg)&&CA(v.Yg.Z,y5.HEIGHT))var Y=O.Y.videoInfos[0].video.qualityOrdinal;else{var S=v.Q1(!!O.Y.Y);NC(O.videoData)||Bj(O.videoData);O=O.Y.videoInfos;if(O.length){var d=g.Vq(v.Yg.experiments,"html5_override_oversend_fraction")||.85,r=O[0].video;r.projectionType!=="MESH"&&r.projectionType!=="EQUIRECTANGULAR"&&r.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Ta||(d=.45);v=g.Vq(v.Yg.experiments,"html5_viewport_undersend_maximum");for(r=0;r0&&(Y=Math.min(Y,S));if(S=g.Vq(v.Yg.experiments,"html5_max_vertical_resolution")){v=4320;for(d=0;dS&&(v=Math.min(v,r.video.qualityOrdinal));if(v<4320){for(d=S=0;d32){d=!0;break a}}d=!1}d&&(Y=Math.min(Y,S));(S=g.Vq(v.Yg.experiments,"html5_live_quality_cap"))&&O.videoData.isLivePlayback&&(Y=Math.min(Y,S));Y=krm(v,O,Y);v=g.Vq(v.Yg.experiments,"html5_byterate_soft_cap");return new ri(0,Y===4320?0:Y,!1,"d",v)}; c0c=function(v){var O,Y,S,d;return g.B(function(r){switch(r.U){case 1:return v.Y.Y&&typeof((O=navigator.mediaCapabilities)==null?void 0:O.decodingInfo)==="function"?g.E(r,Promise.resolve(),2):r.return(Promise.resolve());case 2:Y=g.y(v.Y.videoInfos),S=Y.next();case 3:if(S.done){r.d8(0);break}d=S.value;return g.E(r,lYw(d),4);case 4:S=Y.next(),r.d8(3)}})}; Ca1=function(v,O){if(!O.videoData.U||v.V("html5_disable_performance_downgrade"))return!1;Date.now()-v.L>6E4&&(v.U=0);v.U++;v.L=Date.now();if(v.U!==4)return!1;uom(v,O.videoData.U);return!0}; a11=function(v,O,Y,S){if(!O||!Y||!O.videoData.U)return!1;var d=g.Vq(v.Yg.experiments,"html5_df_downgrade_thresh"),r=v.V("html5_log_media_perf_info");if(!((0,g.J)()-v.B<5E3?0:r||d>0))return!1;var b=((0,g.J)()-v.B)/1E3;v.B=(0,g.J)();Y=Y.getVideoPlaybackQuality();if(!Y)return!1;var z=Y.droppedVideoFrames-v.C,M=Y.totalVideoFrames-v.X;v.C=Y.droppedVideoFrames;v.X=Y.totalVideoFrames;var V=Y.displayCompositedVideoFrames===0?0:Y.displayCompositedVideoFrames||-1;r&&v.Yg.XL()&&v.Og.G0("ddf",{dr:Y.droppedVideoFrames, de:Y.totalVideoFrames,comp:V});if(S)return v.Y=0,!1;if((M-z)/b>v.j||!d||g.lx(v.Yg))return!1;v.Y=(M>60?z/M:0)>d?v.Y+1:0;if(v.Y!==3)return!1;uom(v,O.videoData.U);v.Og.G0("dfd",Object.assign({dr:Y.droppedVideoFrames,de:Y.totalVideoFrames},y0w()));return!0}; uom=function(v,O){var Y=O.z0,S=O.video.fps,d=O.video.qualityOrdinal-1,r=v.G;O=""+Y+(S>49?"p60":S>32?"p48":"");Y=EL(Y,S,r);d>0&&(Y=Math.min(Y,d));if(!d8.has(O)&&JZ().includes(O)){var b=Y;Y=ns();+Y[O]>0&&(b=Math.min(+Y[O],b));Y[O]!==b&&(Y[O]=b,g.QD("yt-player-performance-cap",Y,2592E3))}else if(d8.has(O)||r==null){a:{b=b===void 0?!0:b;S=JZ().slice();if(b){if(S.includes(O))break a;S.push(O)}else{if(!S.includes(O))break a;S.splice(S.indexOf(O),1)}g.QD("yt-player-performance-cap-active-set",S,2592E3)}e$.set(O, Y)}else d8.add(O),r==null||r.set(O,Y);v.Og.ut()}; xgm=function(v,O){if(!O.Y.Y)return v.Z?new ri(0,360,!1,"b"):Xu;for(var Y=!1,S=!1,d=g.y(O.Y.videoInfos),r=d.next();!r.done;r=d.next())D6(r.value)?Y=!0:S=!0;Y=Y&&S;S=0;d=g.Vq(v.Yg.experiments,"html5_performance_cap_floor");d=v.Yg.U?240:d;O=g.y(O.Y.videoInfos);for(r=O.next();!r.done;r=O.next()){var b=r.value;if(!Y||!D6(b))if(r=EL(b.z0,b.video.fps,v.G),b=b.video.qualityOrdinal,Math.max(r,d)>=b){S=b;break}}return new ri(0,S,!1,"b")}; pud=function(v,O){var Y=v.Og.R4();return Y.isInline()&&!O.yD?new ri(0,480,!1,"v"):Ol(O)?Xu:Y.isBackground()&&lj()/1E3>60&&!g.lx(v.Yg)?new ri(0,360,!1,"v"):Xu}; T7c=function(v,O,Y){if(v.Yg.experiments.T0("html5_disable_client_autonav_cap_for_onesie")&&O.fetchType==="onesie"||g.lx(v.Yg)&&(Iy(-1)>=1080||O.osid))return Xu;var S=g.Vq(v.Yg.experiments,"html5_autonav_quality_cap"),d=g.Vq(v.Yg.experiments,"html5_autonav_cap_idle_secs");return S&&O.isAutonav&&lj()/1E3>d?(Y&&(S=krm(v,Y,S)),new ri(0,S,!1,"e")):Xu}; krm=function(v,O,Y){if(v.V("html5_optimality_defaults_chooses_next_higher")&&Y)for(v=O.Y.videoInfos,O=1;O=0||(v.provider.Og.getVisibilityState()===3?v.Z=!0:(v.Y=g.KF(v.provider),v.delay.start()))}; hSJ=function(v){if(!(v.U<0)){var O=g.KF(v.provider),Y=O-v.B;v.B=O;v.playerState.state===8?v.playTimeSecs+=Y:v.playerState.isBuffering()&&!g.G(v.playerState,16)&&(v.rebufferTimeSecs+=Y)}}; RSi=function(v){var O;switch((O=v.Yg.playerCanaryStage)==null?void 0:O.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"}}; eSd=function(v){return window.PressureObserver&&new window.PressureObserver(v)}; EEm=function(v){v=v===void 0?eSd:v;g.X.call(this);var O=this;try{this.G=v(function(S){O.U=S.at(-1)}); var Y;this.B=(Y=this.G)==null?void 0:Y.observe("cpu",{sampleInterval:2E3}).catch(function(S){S instanceof DOMException&&(O.Y=S)})}catch(S){S instanceof DOMException&&(this.Y=S)}}; Qkc=function(v){var O={},Y=window.h5vcc;O.hwConcurrency=navigator.hardwareConcurrency;v.Y&&(O.cpe=v.Y.message);v.U&&(O.cpt=v.U.time,O.cps=v.U.state);if(Y==null?0:Y.cVal)O.cb2s=Y.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),O.cb5s=Y.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),O.cb30s=Y.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return O}; L1c=function(v){var O;g.B(function(Y){switch(Y.U){case 1:return g.cm(Y,2),g.E(Y,v.B,4);case 4:g.ai(Y,3);break;case 2:g.Tc(Y);case 3:(O=v.G)==null||O.disconnect(),g.UE(Y)}})}; ZFn=function(v,O){O?B7c.test(v):(v=g.rG(v),Object.keys(v).includes("cpn"))}; wul=function(v,O,Y,S,d,r,b){var z={format:"RAW"},M={};if(je(v)&&Wf()){if(b){var V;((V=Xud.uaChPolyfill)==null?void 0:V.state.type)!==2?b=null:(b=Xud.uaChPolyfill.state.data.values,b={"Synth-Sec-CH-UA-Arch":b.architecture,"Synth-Sec-CH-UA-Model":b.model,"Synth-Sec-CH-UA-Platform":b.platform,"Synth-Sec-CH-UA-Platform-Version":b.platformVersion,"Synth-Sec-CH-UA-Full-Version":b.uaFullVersion});M=Object.assign(M,b);z.withCredentials=!0}(b=g.Gq("EOM_VISITOR_DATA"))?M["X-Goog-EOM-Visitor-Id"]=b:S?M["X-Goog-Visitor-Id"]= S:g.Gq("VISITOR_DATA")&&(M["X-Goog-Visitor-Id"]=g.Gq("VISITOR_DATA"));Y&&(M["X-Goog-PageId"]=Y);(S=O.HW)&&!Ga(O)&&(M["X-Goog-AuthUser"]=S);d&&(M.Authorization="Bearer "+d);O.V("enable_datasync_id_header_in_web_vss_pings")&&O.e_&&O.datasyncId&&(M["X-YouTube-DataSync-Id"]=O.datasyncId);b||M["X-Goog-Visitor-Id"]||d||Y||S?z.withCredentials=!0:O.V("html5_send_cpn_with_options")&&B7c.test(v)&&(z.withCredentials=!0)}Object.keys(M).length>0&&(z.headers=M);r&&(z.onFinish=r);return Object.keys(z).length>1? z:null}; I13=function(v,O,Y,S,d,r,b,z){Wf()&&Y.token&&(v=bF(v,{ctt:Y.token,cttype:Y.Is,mdx_environment:Y.mdxEnvironment}));S.V("net_pings_low_priority")&&(O||(O={}),O.priority="low");r||z&&S.V("nwl_skip_retry")?(O==null?O={}:ZFn(v,S.V("html5_assert_cpn_with_regex")),b?D_().sendAndWrite(v,O):D_().sendThenWrite(v,O,z)):O?(ZFn(v,S.V("html5_assert_cpn_with_regex")),b7$(v,O)):g.IM(v,d)}; qbi=function(v){for(var O=[],Y=0;Y0&&Y>0&&!v.U&&v.G<1E7)try{v.B=v.Z({sampleInterval:O,maxBufferSize:Y});var S;(S=v.B)==null||S.addEventListener("samplebufferfull",function(){return g.B(function(d){if(d.U==1)return g.E(d,v.stop(),2);K11(v);g.UE(d)})})}catch(d){v.U=J0i(d.message)}}; oG=function(v,O){var Y,S;return!!((Y=window.h5vcc)==null?0:(S=Y.settings)==null?0:S.set(v,O))}; GrJ=function(){var v,O,Y,S=(v=window.h5vcc)==null?void 0:(O=v.settings)==null?void 0:(Y=O.getPersistentSettingAsString)==null?void 0:Y.call(O,"cpu_usage_tracker_intervals");if(S!=null){var d;v=(d=JSON.parse(S))!=null?d:[];d=v.filter(function(V){return V.type==="total"}).map(function(V){return V.seconds}); O=g.y(Pal);for(Y=O.next();!Y.done;Y=O.next())Y=Y.value,d.indexOf(Y)===-1&&v.push({type:"total",seconds:Y});var r,b;(r=window.h5vcc)==null||(b=r.settings)==null||b.set("cpu_usage_tracker_intervals_enabled",1);var z,M;(z=window.h5vcc)==null||(M=z.settings)==null||M.set("cpu_usage_tracker_intervals",JSON.stringify(v))}}; iF1=function(){var v=window.H5vccPlatformService,O="";if(v&&v.has("dev.cobalt.coat.clientloginfo")&&(v=v.open("dev.cobalt.coat.clientloginfo",function(){}))){var Y=v.send(new ArrayBuffer(0)); Y&&(O=String.fromCharCode.apply(String,g.F(new Uint8Array(Y))));v.close()}return O}; g.z5=function(v){g.X.call(this);var O=this;this.provider=v;this.logger=new g.vY("qoe");this.Y=new Map;this.sequenceNumber=1;this.HW=NaN;this.RF="N";this.X=this.h0=this.Z$=this.Ug=this.U=0;this.R1=this.g8=this.C=this.XO="";this.yC=this.AK=NaN;this.PT=0;this.qX=-1;this.oI=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Mj=this.isEmbargoed=this.N3=this.isOffline=this.isBuffering=!1;this.aI=[];this.j=null;this.On=this.B=this.n1=this.L=!1;this.G=-1;this.Eg=!1;this.w2=new g.mX(this.eU,750,this);this.tL= this.adCpn=this.tK=this.contentCpn="";this.adFormat=void 0;this.Td=0;this.yx=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.II=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.pj=!1;this.rR=NaN;this.FO=0;this.Cj=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Te=!1;this.Qg={Mc:function(S){O.Mc(S)}, Jp4:function(){return O.Z}, W7:function(){return O.contentCpn}, Ind:function(){return O.tK}, reportStats:function(){O.reportStats()}, Eo3:function(){return O.Y.get("cat")||[]}, A5:function(S){return O.Y.get(S)||[]}, fzd:function(){return O.Y}, Tig:function(){return 0}, ln1:function(){return{adCpn:O.adCpn,tL:O.tL,adFormat:O.adFormat}}}; this.JK=this.provider.Yg.V("html5_qoe_relaxed_reporting");var Y=g.Vq(this.provider.Yg.experiments,"html5_qoe_proto_mock_length");Y&&!jH.length&&(jH=qbi(Y));g.w(this,this.w2);try{navigator.getBattery().then(function(S){O.j=S})}catch(S){}g.Wx(this,0,"vps",["N"]); v.Yg.XL()&&(this.FO=(0,g.J)(),this.rR=g.$c(function(){var S=(0,g.J)(),d=S-O.FO;d>500&&O.G0("vmlock",{diff:d.toFixed()});O.FO=S},250)); this.provider.videoData.cP&&(this.remoteControlMode=mgw[this.provider.videoData.cP]||0);this.provider.videoData.t3&&(Y=Yng(this.provider.videoData.t3),Y==null?0:Y.length)&&(this.remoteConnectedDevices=Y);if(v.Yg.XL()||v.V("html5_log_cpu_info"))this.xg=new EEm,g.w(this,this.xg);Y=g.Vq(v.Yg.experiments,"html5_js_self_profiler_sample_interval_ms");v=g.Vq(v.Yg.experiments,"html5_js_self_profiler_max_samples");Y>0&&v>0&&(this.f1=new bG(Y,v),g.w(this,this.f1))}; sj=function(v,O,Y){var S=v.Y.get(O);S?S.push(Y):v.Y.set(O,[Y])}; g.Wx=function(v,O,Y,S){sj(v,Y,O.toFixed(3)+":"+S.join(":"))}; tTE=function(v,O){var Y=v.adCpn||v.provider.videoData.clientPlaybackNonce,S=v.provider.getCurrentTime(Y);g.Wx(v,O,"cmt",[S.toFixed(3)]);S=v.provider.nE(Y);if(v.Z&&S*1E3>v.Z.OX+100&&v.Z){var d=v.Z;Y=d.isAd;S=S*1E3-d.OX;v.DD=O*1E3-d.PO1-S-d.SMs;d=(0,g.J)()-S;O=v.DD;S=v.provider.videoData;var r=S.isAd();if(Y||r){r=(Y?"ad":"video")+"_to_"+(r?"ad":"video");var b={};S.C&&(b.cttAuthInfo={token:S.C,videoId:S.videoId});b.startTime=d-O;Kw(r,b);g.J_({targetVideoId:S.videoId,targetCpn:S.clientPlaybackNonce}, r);nw("pbs",d,r)}else d=v.provider.Og.pS(),d.C!==S.clientPlaybackNonce?(d.Z=S.clientPlaybackNonce,d.U=O):S.wy()||g.Br(new g.iK("CSI timing logged before gllat",{cpn:S.clientPlaybackNonce}));v.G0("gllat",{l:v.DD.toFixed(),prev_ad:+Y});delete v.Z}}; g8=function(v,O){O=O===void 0?NaN:O;O=O>=0?O:g.KF(v.provider);var Y=v.provider.Og.MQ(),S=Y.nL-(v.AK||0);S>0&&g.Wx(v,O,"bwm",[S,(Y.NH-(v.yC||0)).toFixed(3)]);isNaN(v.AK)&&Y.nL&&v.isOffline&&v.Mc(!1);v.AK=Y.nL;v.yC=Y.NH;isNaN(Y.bandwidthEstimate)||g.Wx(v,O,"bwe",[Y.bandwidthEstimate.toFixed(0)]);v.provider.Yg.XL()&&Object.keys(Y.Y).length!==0&&v.G0("bwinfo",Y.Y);if(v.provider.Yg.XL()||v.provider.Yg.V("html5_log_meminfo"))S=sOg(v.provider.Yg.V("html5_enable_chrobalt_memory_apis")),Object.values(S).some(function(r){return r!== void 0})&&v.G0("meminfo",S); if(v.provider.Yg.XL()||v.provider.Yg.V("html5_log_cpu_info")){var d;(S=(d=v.xg)==null?void 0:Qkc(d))&&Object.values(S).some(function(r){return r!=null})&&v.G0("cpuinfo",S)}v.f1&&v.G0("jsprof",v.f1.flush()); v.j&&g.Wx(v,O,"bat",[v.j.level,v.j.charging?"1":"0"]);d=v.provider.Og.getVisibilityState();v.qX!==d&&(g.Wx(v,O,"vis",[d]),v.qX=d);tTE(v,O);(d=Dgi(v.provider))&&d!==v.PT&&(g.Wx(v,O,"conn",[d]),v.PT=d);HFm(v,O,Y)}; HFm=function(v,O,Y){if(!isNaN(Y.dJ)){var S=Y.dJ;Y.U96E3&&(new g.mX(v.reportStats,0,v)).start()}}; O6l=function(v){v.provider.videoData.dE&&MQ(v,"prefetch");v.provider.videoData.Te&&v.G0("reload",{r:v.provider.videoData.reloadReason,ct:v.provider.videoData.Te});v.provider.videoData.yx&&MQ(v,"monitor");v.provider.videoData.isLivePlayback&&MQ(v,"live");Df&&MQ(v,"streaming");v.provider.videoData.cP&&v.G0("ctrl",{mode:v.provider.videoData.cP},!0);if(v.provider.videoData.t3){var O=v.provider.videoData.t3.replace(/,/g,"_");v.G0("ytp",{type:O},!0)}v.provider.videoData.rD&&(O=v.provider.videoData.rD.replace(/,/g, "."),v.G0("ytrexp",{ids:O},!0));var Y=v.provider.videoData;O=v.provider.Yg.V("enable_white_noise")||v.provider.Yg.V("enable_webgl_noop");Y=g.z3(Y)||g.Ch(Y)||g.y_(Y)||g.aO(Y);(O||Y)&&(O=(0,g.VE)())&&v.Y.set("gpu",[O]);Bj(v.provider.videoData)&&g.Wx(v,g.KF(v.provider),"dt",["1"]);v.provider.Yg.XL()&&(O=(0,g.J)()-v.provider.Yg.iO,v.G0("playerage",{secs:Math.pow(1.6,Math.round(Math.log(O/1E3)/Math.log(1.6))).toFixed()}));v.B=!0;v.HW=g.$c(function(){v.reportStats()},1E4)}; Sj1=function(v,O,Y){var S=g.KF(v.provider);Yjm(v,S,O,0,Y);g8(v,S);vFg(v)}; Yjm=function(v,O,Y,S,d){var r=v.provider.Yg.Y.cbrver;v.provider.Yg.Y.cbr==="Chrome"&&/^96[.]/.test(r)&&Y==="net.badstatus"&&/rc\.500/.test(d)&&dQm(v,3);v.provider.Yg.V("html5_use_ump")&&/b248180278/.test(d)&&dQm(v,4);r=v.provider.getCurrentTime(v.adCpn||v.provider.videoData.clientPlaybackNonce);S=S===1?"fatal":"";Y=[Y,S,r.toFixed(3)];S&&(d+=";a6s."+gf());d&&Y.push(rqm(d));g.Wx(v,O,"error",Y);v.B=!0}; mJc=function(v,O){var Y=g.KF(v.provider);if(!v.provider.Yg.experiments.T0("html5_refactor_sabr_video_format_selection_logging")||O.Y.id!==v.XO){var S=[O.Y.id,O.U,v.XO,O.reason];O.token&&S.push(O.token);g.Wx(v,Y,"vfs",S);v.XO=O.Y.id;S=v.provider.Og.getPlayerSize();if(S.width>0&&S.height>0){S=[Math.round(S.width),Math.round(S.height)];var d=g.KH();d>1&&S.push(d);g.Wx(v,Y,"view",S)}v.n1||(v.provider.Yg.XL()&&MQ(v,"rqs2"),v.provider.videoData.Y&&V5(v.provider.videoData.Y)&&v.Y.set("preload",["1"]));v.n1= !0;v.B=!0}O.reason==="m"&&++v.Td===100&&dQm(v,2);g.Wx(v,Y,"vps",[v.RF]);v.JK||v.reportStats(Y)}; b6m=function(v){v.G>=0||(v.provider.Yg.w4||v.provider.Og.getVisibilityState()!==3?v.G=g.KF(v.provider):v.Eg=!0)}; ihi=function(v,O,Y){if(v.provider.Yg.experiments.T0("html5_refactor_sabr_audio_format_selection_logging")){O=Y.Y;var S=[O.audio&&O.video?O.zX?O.zX:"":O.id];O.Dg&&O.Dg.id&&S.push(O.Dg.id);O=S.join(";");O!==v.C&&(S=[O,v.C,Y.reason],Y.token&&S.push(Y.token),g.Wx(v,g.KF(v.provider),"afs",S),v.C=O)}else Y.Y.id!==v.C&&(S=[Y.Y.id,v.C,Y.reason],Y.token&&S.push(Y.token),g.Wx(v,O,"afs",S),v.C=Y.Y.id)}; MQ=function(v,O){sj(v,"cat",O)}; Aq=function(v,O,Y,S,d,r){var b=g.KF(v.provider);Y!==1&&Y!==3&&Y!==5||g.Wx(v,b,"vps",[v.RF]);sj(v,"xvt","t."+b.toFixed(3)+";m."+r.toFixed(3)+";g."+O+";tt."+Y+";np.0;c."+S+";d."+d)}; dQm=function(v,O){v.On||(sj(v,"fcnz",""+O),v.On=!0)}; rqm=function(v){/[^a-zA-Z0-9;.!_-]/.test(v)&&(v=v.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return v}; oFm=function(v){this.provider=v;this.L=!1;this.Y=0;this.B=-1;this.Dn=NaN;this.G=0;this.segments=[];this.C=this.Z=0;this.previouslyEnded=!1;this.j=this.provider.Og.getVolume();this.X=this.provider.Og.isMuted()?1:0;this.U=f6(this.provider)}; $F=function(v){v.U.startTime=v.G;v.U.endTime=v.Y;var O=!1;v.segments.length&&g.zw(v.segments).isEmpty()?(v.segments[v.segments.length-1].previouslyEnded&&(v.U.previouslyEnded=!0),v.segments[v.segments.length-1]=v.U,O=!0):v.segments.length&&v.U.isEmpty()||(v.segments.push(v.U),O=!0);O?v.U.endTime===0&&(v.previouslyEnded=!1):v.U.previouslyEnded&&(v.previouslyEnded=!0);v.Z+=v.Y-v.G;v.U=f6(v.provider);v.U.previouslyEnded=v.previouslyEnded;v.previouslyEnded=!1;v.G=v.Y}; W3m=function(v){jGm(v);v.C=g.$c(function(){v.update()},100); v.Dn=g.KF(v.provider);v.U=f6(v.provider)}; jGm=function(v){g.Uq(v.C);v.C=NaN}; zGm=function(v,O,Y){Y-=v.Dn;return O===v.Y&&Y>.5}; sG3=function(v,O,Y,S){this.Yg=O;this.R1=Y;this.segments=[];this.experimentIds=[];this.Eg=this.rR=this.isFinal=this.delayThresholdMet=this.Cj=this.qX=this.autoplay=this.autonav=!1;this.PT="yt";this.C=[];this.L=this.j=null;this.sendVisitorIdHeader=this.xg=!1;this.X=this.pageId="";this.Z=Y==="watchtime";this.G=Y==="playback";this.JK=Y==="atr";this.w4=Y==="engage";this.sendVisitorIdHeader=!1;this.uri=this.JK?"/api/stats/"+Y:"//"+O.vu+"/api/stats/"+Y;S&&(this.rR=S.fs,S.rtn&&(this.L=S.rtn),this.Z?(this.playerState= S.state,S.rti>0&&(this.j=S.rti)):(this.RD=S.mos,this.Lo=S.volume,S.at&&(this.adType=S.at)),S.autonav&&(this.autonav=S.autonav),S.inview!=null&&(this.oI=S.inview),S.size&&(this.yC=S.size),S.playerwidth&&(this.q8=S.playerwidth),S.playerheight&&(this.FZ=S.playerheight));this.Td=g.NN(O.Y);this.X=HY(O.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.X==="all"||this.X==="once")this.Te=g.NN(O.Te);this.lO=O.yC;this.experimentIds=IDw(O.experiments);this.f1=O.N2;this.PT=O.tK;this.region=O.region; this.userAge=O.userAge;this.n1=O.M7;this.aI=lj();this.sendVisitorIdHeader=O.sendVisitorIdHeader;this.N3=O.V("vss_pings_using_networkless")||O.V("kevlar_woffle");this.iO=O.V("vss_final_ping_send_and_write");this.FO=O.V("vss_use_send_and_write");this.pageId=O.pageId;this.uO=O.V("vss_playback_use_send_and_write");O.livingRoomAppMode&&(this.livingRoomAppMode=O.livingRoomAppMode);this.Dq=O.B&&O.V("embeds_append_synth_ch_headers");g.aP(O)&&(this.AK=O.JK);g.s9(g.EU(O))&&this.C.push(1);this.accessToken=g.ez(v); v.g6[this.R1]?this.B=v.g6[this.R1]:v.g6.playback&&(this.B=v.g6.playback);this.adFormat=v.adFormat;this.adQueryId=v.adQueryId;this.autoplay=C0l(v);this.G&&(this.qX=v.bQ&&l8(v)==="adunit"?!0:!1);this.autonav=v.isAutonav||this.autonav;this.contentVideoId=hz(v);this.clientPlaybackNonce=v.clientPlaybackNonce;this.Cj=v.KE;v.C&&(this.Ug=v.C,this.pj=v.Q_);v.mdxEnvironment&&(this.mdxEnvironment=v.mdxEnvironment);this.Y=v.PT;this.Mj=v.Mj;v.U&&(this.II=v.U.itag,v.B&&v.B.itag!==this.II&&(this.On=v.B.itag));v.Y&& V5(v.Y)&&(this.offlineDownloadUserChoice="1");this.eventLabel=l8(v);this.Eg=v.uO?!1:v.Lo;this.N2=v.WO;if(O=Az(v))this.eA=O;this.nP=v.S9;this.partnerId=v.partnerId;this.eventId=v.eventId;this.playlistId=v.xU||v.playlistId;this.Oj=v.Oj;this.cP=v.cP;this.t3=v.t3;this.yP=v.yP;this.subscribed=v.subscribed;this.videoId=v.videoId;this.videoMetadata=v.videoMetadata;this.visitorData=v.visitorData;this.osid=v.osid;this.TD=v.TD;this.referrer=v.referrer;this.kq=v.XB||v.kq;this.yx=v.qv;this.SP=v.SP;this.userGenderAge= v.userGenderAge;this.hp=v.hp;this.embedsRct=v.embedsRct;this.embedsRctn=v.embedsRctn;g.aP(this.Yg)&&v.mutedAutoplay&&(v.mutedAutoplayDurationMode===2&&v.limitedPlaybackDurationInSeconds===0&&v.endSeconds===0?this.C.push(7):this.C.push(2));v.isEmbedsShortsMode(new g.hc(this.q8,this.FZ),!!this.playlistId)&&this.C.push(3);g.Kh(v)&&this.C.push(4);this.XO=v.fH;v.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=v.compositeLiveIngestionOffsetToken)}; gFJ=function(v,O){var Y=v.sendVisitorIdHeader?v.visitorData:void 0;return g.vO(v.Yg,v.accessToken).then(function(S){return wul(v.uri,v.Yg,v.pageId,Y,S,O,v.Dq)})}; AqJ=function(v,O){return function(){v.Yg.V("html5_simplify_pings")?(v.Y=v.g8,v.w2=O(),v.aI=0,v.send()):gFJ(v).then(function(Y){var S=MHm(v);S.cmt=S.len;S.lact="0";var d=O().toFixed(3);S.rt=Number(d).toString();S=g.Te(v.uri,S);v.Yg.V("vss_through_gel_double")&&VHl(S);v.N3?(Y==null&&(Y={}),v.FO?D_().sendAndWrite(S,Y):D_().sendThenWrite(S,Y)):Y?g.pS(S,Y):g.IM(S)})}}; MHm=function(v){var O={ns:v.PT,el:v.eventLabel,cpn:v.clientPlaybackNonce,ver:2,cmt:v.U(v.Y),fmt:v.II,fs:v.rR?"1":"0",rt:v.U(v.w2),adformat:v.adFormat,content_v:v.contentVideoId,euri:v.lO,lact:v.aI,live:v.eA,cl:(760426699).toString(),mos:v.RD,state:v.playerState,volume:v.Lo};v.subscribed&&(O.subscribed="1");Object.assign(O,v.Td);v.X==="all"?Object.assign(O,v.Te):v.X==="once"&&v.G&&Object.assign(O,v.Te);v.autoplay&&(O.autoplay="1");v.qX&&(O.sautoplay="1");v.Cj&&(O.dni="1");!v.Z&&v.AK&&(O.epm=fec[v.AK]); v.isFinal&&(O["final"]="1");v.Eg&&(O.splay="1");v.Mj&&(O.delay=v.Mj);v.f1&&(O.hl=v.f1);v.region&&(O.cr=v.region);v.userGenderAge&&(O.uga=v.userGenderAge);v.userAge!==void 0&&v.n1&&(O.uga=v.n1+v.userAge);v.g8!==void 0&&(O.len=v.U(v.g8));!v.Z&&v.experimentIds.length>0&&(O.fexp=v.experimentIds.toString());v.L!==null&&(O.rtn=v.U(v.L));v.kq&&(O.feature=v.kq);v.cP&&(O.ctrl=v.cP);v.t3&&(O.ytr=v.t3);v.On&&(O.afmt=v.On);v.offlineDownloadUserChoice&&(O.ODUC=v.offlineDownloadUserChoice);v.tK&&(O.lio=v.U(v.tK)); v.Z?(O.idpj=v.N2,O.ldpj=v.nP,v.delayThresholdMet&&(O.dtm="1"),v.j!=null&&(O.rti=v.U(v.j)),v.hp&&(O.ald=v.hp),v.compositeLiveIngestionOffsetToken&&(O.clio=v.compositeLiveIngestionOffsetToken)):v.adType!==void 0&&(O.at=v.adType);v.yC&&(v.G||v.Z)&&(O.size=v.yC);v.G&&v.C.length&&(O.pbstyle=v.C.join(","));v.oI!=null&&(v.G||v.Z)&&(O.inview=v.U(v.oI));v.Z&&(O.volume=kF(v,g.DQ(v.segments,function(S){return S.volume})),O.st=kF(v,g.DQ(v.segments,function(S){return S.startTime})),O.et=kF(v,g.DQ(v.segments,function(S){return S.endTime})), H4(v.segments,function(S){return S.playbackRate!==1})&&(O.rate=kF(v,g.DQ(v.segments,function(S){return S.playbackRate}))),H4(v.segments,function(S){return S.Y!=="-"})&&(O.als=g.DQ(v.segments,function(S){return S.Y}).join(",")),H4(v.segments,function(S){return S.previouslyEnded})&&(O.pe=g.DQ(v.segments,function(S){return""+ +S.previouslyEnded}).join(","))); O.muted=kF(v,g.DQ(v.segments,function(S){return S.muted?1:0})); H4(v.segments,function(S){return S.visibilityState!==0})&&(O.vis=kF(v,g.DQ(v.segments,function(S){return S.visibilityState}))); H4(v.segments,function(S){return S.connectionType!==0})&&(O.conn=kF(v,g.DQ(v.segments,function(S){return S.connectionType}))); H4(v.segments,function(S){return S.U!==0})&&(O.blo=kF(v,g.DQ(v.segments,function(S){return S.U}))); H4(v.segments,function(S){return!!S.G})&&(O.blo=g.DQ(v.segments,function(S){return S.G}).join(",")); H4(v.segments,function(S){return!!S.compositeLiveStatusToken})&&(O.cbs=g.DQ(v.segments,function(S){return S.compositeLiveStatusToken}).join(",")); H4(v.segments,function(S){return S.B!=="-"})&&(O.cc=g.DQ(v.segments,function(S){return S.B}).join(",")); H4(v.segments,function(S){return S.clipId!=="-"})&&(O.clipid=g.DQ(v.segments,function(S){return S.clipId}).join(",")); if(H4(v.segments,function(S){return!!S.audioId})){var Y="au"; v.G&&(Y="au_d");O[Y]=g.DQ(v.segments,function(S){return S.audioId}).join(",")}Wf()&&v.Ug&&(O.ctt=v.Ug,O.cttype=v.pj,O.mdx_environment=v.mdxEnvironment); v.w4&&(O.etype=v.HW!==void 0?v.HW:0);v.yx&&(O.uoo=v.yx);v.livingRoomAppMode&&v.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(O.clram=$Ql[v.livingRoomAppMode]||v.livingRoomAppMode);v.B?k5m(v,O):(O.docid=v.videoId,O.referrer=v.referrer,O.ei=v.eventId,O.of=v.TD,O.osid=v.osid,O.vm=v.videoMetadata,v.adQueryId&&(O.aqi=v.adQueryId),v.autonav&&(O.autonav="1"),v.playlistId&&(O.list=v.playlistId),v.yP&&(O.ssrt="1"),v.SP&&(O.upt=v.SP));v.G&&(v.embedsRct&&(O.rct=v.embedsRct),v.embedsRctn&&(O.rctn= v.embedsRctn),v.compositeLiveIngestionOffsetToken&&(O.clio=v.compositeLiveIngestionOffsetToken));v.XO&&(O.host_cpn=v.XO);return O}; k5m=function(v,O){if(O&&v.B){var Y=new Set(["q","feature","mos"]),S=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),d=new Set(["aqi","autonav","list","ssrt","upt"]);v.B.ns==="3pp"&&(O.ns="3pp");for(var r=g.y(Object.keys(v.B)),b=r.next();!b.done;b=r.next())b=b.value,S.has(b)||Y.has(b)||d.has(b)&&!v.B[b]||(O[b]=v.B[b])}}; kF=function(v,O){return g.DQ(O,v.U).join(",")}; VHl=function(v){v.indexOf("watchtime")!==-1&&g.z2("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:v}})}; UQ$=function(v,O){v.attestationResponse&&gFJ(v).then(function(Y){Y=Y||{};Y.method="POST";Y.postParams={atr:v.attestationResponse};v.N3?v.FO?D_().sendAndWrite(O,Y):D_().sendThenWrite(O,Y):g.pS(O,Y)})}; Uj=function(v){g.X.call(this);this.provider=v;this.C="paused";this.Z=NaN;this.L=[10,10,10,40];this.j=this.X=0;this.Ug=this.JK=this.HW=this.tK=this.G=!1;this.U=this.B=NaN;this.logger=new g.vY("vss");this.Y=new oFm(v)}; aew=function(v){if(!v.G){v.provider.videoData.Ns===16623&&g.Br(Error("Playback for EmbedPage"));var O=cx(v,"playback");v.L=cql(v);W3m(v.Y);O.L=uG(v);v.U>0&&(O.Y-=v.U);O.send();if(v.provider.videoData.s3){O=v.provider.Yg;var Y=v.provider.videoData,S={html5:"1",video_id:Y.videoId,cpn:Y.clientPlaybackNonce,ei:Y.eventId,ptk:Y.s3,oid:Y.Wm,ptchn:Y.A1,pltype:Y.SR,content_v:hz(Y)};Y.f$&&Object.assign(S,{m:Y.f$});O=g.Te(O.SZ+"ptracking",S);uPF(v,O)}v.provider.videoData.Mj||(CGc(v),yqJ(v));v.G=!0;v=v.Y;v.Y= v.nE();v.Dn=g.KF(v.provider);!(v.G===0&&v.Y<5)&&v.Y-v.G>2&&(v.G=v.Y);v.L=!0}}; cql=function(v){var O=v.provider.videoData.WO,Y=v.provider.videoData.S9,S=[10+O,10,10,40+Y-O,40],d,r=(d=v.provider.videoData.getPlayerResponse())==null?void 0:d.playbackTracking,b=r==null?void 0:r.videostatsScheduledFlushWalltimeSeconds;d=r==null?void 0:r.videostatsDefaultFlushIntervalSeconds;if(!(b&&b.length>0&&d))return v.logger.info("Missing valid scheduled pings config "+b+" "+d),S;O=[b[0]+O].concat(g.F(b.slice(1).map(function(z,M){return z-b[M]})),[d+Y-O, d]);return O.some(function(z){return z<0})?(v.logger.Y(347111855,"Neg vss scheduled pings "+b+" "+d),S):O}; uG=function(v,O){O=O===void 0?NaN:O;var Y=g.KF(v.provider);O=isNaN(O)?Y:O;O=Math.ceil(O);var S=v.L[v.X];v.X+11E3;!(r.length>1)&&r[0].isEmpty()||z||(b.L=uG(v,d));b.send();v.j++}},(d-Y)*1E3); return v.B=d}; C6=function(v){g.kc(v.Z);v.Z=NaN}; xQE=function(v){v.Y.update();v=v.Y;v.segments.length&&v.Y===v.G||$F(v);var O=v.segments;v.segments=[];return O}; cx=function(v,O){var Y=T8w(v.provider);Object.assign(Y,{state:v.C});O=new sG3(v.provider.videoData,v.provider.Yg,O,Y);O.Y=v.provider.Og.nE();Y=v.provider.videoData.clientPlaybackNonce;O.Y=v.provider.Og.hc(Y);v.provider.videoData.isLivePlayback||(O.g8=v.provider.Og.getDuration(Y));v.provider.videoData.Y&&(Y=v.provider.videoData.Y.Hq(O.Y))&&(O.tK=Y-O.Y,v.provider.Yg.V("html5_disable_live_dvr_shrink_for_cdm_vss")&&El(v.provider.videoData)&&(O.Y+=v.provider.Og.En(),O.tK-=v.provider.Og.En()));O.w2=g.KF(v.provider); O.segments=[f6(v.provider)];return O}; px$=function(v,O){var Y=cx(v,"watchtime");le7(v)&&(Y.delayThresholdMet=!0,v.HW=!0);if(v.U>0){for(var S=g.y(O),d=S.next();!d.done;d=S.next())d=d.value,d.startTime-=v.U,d.endTime-=v.U;Y.Y-=v.U}else Y.Y=v.Y.Y;Y.segments=O;return Y}; yE=function(v,O){var Y=F3c(v,!isNaN(v.B));O&&(v.B=NaN);return Y}; F3c=function(v,O){var Y=px$(v,xQE(v));!isNaN(v.B)&&O&&(Y.j=v.B);return Y}; le7=function(v){var O;if(O=v.provider.videoData.isLoaded()&&v.provider.videoData.Mj&&v.G&&!v.HW)O=v.Y,O=O.Z+O.nE()-O.G>=v.provider.videoData.Mj;return!!O}; CGc=function(v){v.provider.videoData.youtubeRemarketingUrl&&!v.JK&&(uPF(v,v.provider.videoData.youtubeRemarketingUrl),v.JK=!0)}; yqJ=function(v){v.provider.videoData.googleRemarketingUrl&&!v.Ug&&(uPF(v,v.provider.videoData.googleRemarketingUrl),v.Ug=!0)}; hGE=function(v){if(!v.vW()&&v.G){v.C="paused";var O=yE(v);O.isFinal=!0;O.send();v.dispose()}}; RG1=function(v,O){if(!v.vW())if(g.G(O.state,2)||g.G(O.state,512)){if(v.C="paused",g.UO(O,2)||g.UO(O,512))g.UO(O,2)&&(v.Y.previouslyEnded=!0),v.G&&(C6(v),yE(v).send(),v.B=NaN)}else if(g.G(O.state,8)){v.C="playing";var Y=v.G&&isNaN(v.Z)?uG(v):NaN;if(!isNaN(Y)&&(k8(O,64)<0||k8(O,512)<0)){var S=F3c(v,!1);S.L=Y;S.send()}g.UO(O,16)&&O.state.seekSource===58&&(v.Y.previouslyEnded=!0)}else v.C="paused"}; eGl=function(v,O,Y){if(!v.tK){Y||(Y=cx(v,"atr"));Y.attestationResponse=O;try{Y.send()}catch(S){if(S.message!=="Unknown Error")throw S;}v.tK=!0}}; uPF=function(v,O){var Y=v.provider.Yg;g.vO(v.provider.Yg,g.ez(v.provider.videoData)).then(function(S){var d=v.provider.Yg.pageId,r=v.provider.Yg.sendVisitorIdHeader?v.provider.videoData.visitorData:void 0,b=v.provider.Yg.V("vss_pings_using_networkless")||v.provider.Yg.V("kevlar_woffle"),z=v.provider.Yg.V("allow_skip_networkless");S=wul(O,Y,d,r,S);I13(O,S,{token:v.provider.videoData.C,Is:v.provider.videoData.Q_,mdxEnvironment:v.provider.videoData.mdxEnvironment},Y,void 0,b&&!z,!1,!0)})}; EFc=function(){this.endTime=this.startTime=-1;this.B="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.U=0;this.compositeLiveStatusToken=this.G=void 0;this.volume=this.connectionType=0;this.muted=!1;this.Y=this.clipId="-";this.previouslyEnded=!1}; aG=function(v,O,Y){this.videoData=v;this.Yg=O;this.Og=Y;this.Y=void 0}; g.KF=function(v){return QGm(v)()}; QGm=function(v){if(!v.Y){var O=g.SU(function(S){var d=(0,g.J)();S&&d<=631152E6&&(v.Og.G0("ytnerror",{issue:28799967,value:""+d}),d=(new Date).getTime()+2);return d},v.Yg.V("html5_validate_yt_now")),Y=O(); v.Y=function(){return Math.round(O()-Y)/1E3}; v.Og.EW()}return v.Y}; T8w=function(v){var O=v.Og.I2()||{};O.fs=v.Og.SG();O.volume=v.Og.getVolume();O.muted=v.Og.isMuted()?1:0;O.mos=O.muted;O.clipid=v.Og.iy();var Y;O.playerheight=((Y=v.Og.getPlayerSize())==null?void 0:Y.height)||0;var S;O.playerwidth=((S=v.Og.getPlayerSize())==null?void 0:S.width)||0;v=v.videoData;Y={};v.U&&(Y.fmt=v.U.itag,v.B&&(v.R1?v.B.itag!==v.U.itag:v.B.itag!=v.U.itag)&&(Y.afmt=v.B.itag));Y.ei=v.eventId;Y.list=v.playlistId;Y.cpn=v.clientPlaybackNonce;v.videoId&&(Y.v=v.videoId);v.e_&&(Y.infringe=1); (v.uO?0:v.Lo)&&(Y.splay=1);(S=Az(v))&&(Y.live=S);v.bQ&&(Y.sautoplay=1);v.Tn&&(Y.autoplay=1);v.Oj&&(Y.sdetail=v.Oj);v.partnerId&&(Y.partnerid=v.partnerId);v.osid&&(Y.osid=v.osid);v.Cp&&(Y.cc=g.iz7(v.Cp));return Object.assign(O,Y)}; Dgi=function(v){var O=aYl();if(O)return L3l[O]||L3l.other;if(g.lx(v.Yg)){v=navigator.userAgent;if(/[Ww]ireless[)]/.test(v))return 3;if(/[Ww]ired[)]/.test(v))return 30}return 0}; f6=function(v){var O=new EFc,Y;O.B=((Y=T8w(v).cc)==null?void 0:Y.toString())||"-";O.playbackRate=v.Og.getPlaybackRate();Y=v.Og.getVisibilityState();Y!==0&&(O.visibilityState=Y);v.Yg.n1&&(O.U=1);O.G=v.videoData.GI;O.compositeLiveStatusToken=v.videoData.compositeLiveStatusToken;Y=v.Og.getAudioTrack();Y.Dg&&Y.Dg.id&&Y.Dg.id!=="und"&&(O.audioId=Y.Dg.id);O.connectionType=Dgi(v);O.volume=v.Og.getVolume();O.muted=v.Og.isMuted();O.clipId=v.Og.iy()||"-";O.Y=v.videoData.xm||"-";return O}; g.xF=function(v,O){g.X.call(this);var Y=this;this.provider=v;this.G=new Map;this.RF=new g.oK;this.Qg={Apx:function(){return Y.qoe}, EiW:function(){return Y.Y}, pbx:function(){return Y.U}}; this.provider.videoData.sE()&&!this.provider.videoData.CT&&(this.Y=new Uj(this.provider),this.Y.U=0,g.w(this,this.Y),this.qoe=new g.z5(this.provider,O),g.w(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.DT=this.provider.videoData.clientPlaybackNonce)&&this.G.set(this.DT,this.Y));if(v.Yg.playerCanaryState==="canary"||v.Yg.playerCanaryState==="holdback")this.U=new r8(this.provider),g.w(this,this.U)}; p6=function(v){return g.KF(v.provider)}; T5=function(v){v.U&&F1E(v.U);v.qoe&&b6m(v.qoe)}; B8$=function(v){if(v.qoe){v=v.qoe;for(var O=v.provider.videoData,Y=v.provider.Yg,S=g.y(Y.TF),d=S.next();!d.done;d=S.next())MQ(v,d.value);if(v.provider.V("html5_enable_qoe_cat_list"))for(S=g.y(O.vu),d=S.next();!d.done;d=S.next())MQ(v,d.value);else O.TF&&MQ(v,v.provider.videoData.TF);O.FL()&&(S=O.Y,b8(O)&&MQ(v,"manifestless"),S&&xA(S)&&MQ(v,"live-segment-"+xA(S).toFixed(1)));Ol(O)?MQ(v,"sabr"):v.e$(Wj(O));if(Q_(O)||O.lM())O.lM()&&MQ(v,"ssa"),MQ(v,"lifa");El(O)&&MQ(v,"cdm");O.gatewayExperimentGroup&& (S=O.gatewayExperimentGroup,S==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?S="spkadtrt":S==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(S="spkadctrl"),MQ(v,S));Y.tK!=="yt"&&v.Y.set("len",[O.lengthSeconds.toFixed(2)]);O.cotn&&!Bj(O)&&v.Mc(!0);Y.XL()&&(O=iF1())&&v.G0("cblt",{m:O});if(Y.V("html5_log_screen_diagonal")){Y=v.G0;var r;O=((r=window.H5vccScreen)==null?0:r.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;Y.call(v,"cbltdiag",{v:O})}}}; Z6d=function(v){v.Y&&aew(v.Y);if(v.U){v=v.U;var O=g.KF(v.provider);v.Y<0&&(v.Y=O,v.delay.start());v.U=O;v.B=O}}; Xxn=function(v,O){v.Y&&(v=v.Y,O===58?v.Y.update():v.G&&(C6(v),yE(v).send(),v.B=NaN))}; wxm=function(v,O){if(g.UO(O,1024)||g.UO(O,512)||g.UO(O,4)){if(v.U){var Y=v.U;Y.U>=0||(Y.Y=-1,Y.delay.stop())}v.qoe&&(Y=v.qoe,Y.L||(Y.G=-1))}if(v.provider.videoData.enableServerStitchedDai&&v.DT){var S;(S=v.G.get(v.DT))==null||RG1(S,O)}else v.Y&&RG1(v.Y,O);if(v.qoe){S=v.qoe;Y=O.state;var d=g.KF(S.provider),r=S.getPlayerState(Y),b=Y.seekSource||void 0;if(r!==S.RF){S.JK||d= 10&&S.playTimeSecs<=180&&(S.Y.set("qoealert",["1"]),S.Mj=!0)),r!=="B"||S.RF!=="PL"&&S.RF!=="PB"||(S.isBuffering=!0),S.U=d);S.RF==="PL"&&(r==="B"||r==="S")||S.provider.Yg.XL()?g8(S,d):(S.pj||r!=="PL"||(S.pj=!0,HFm(S,d,S.provider.Og.MQ())),tTE(S,d));r==="PL"&&g.HM(S.w2);var z=[r];r==="S"&&b&&z.push("ss."+b);g.Wx(S,d,"vps",z);S.RF=r;S.Ug=d;S.U=d;S.B=!0}r=Y.ib;g.G(Y,128)&&r&&(r.OG=r.OG||"",Yjm(S,d,r.errorCode,r.Ow,r.OG));(g.G(Y,2)||g.G(Y,128))&&S.reportStats(d);Y.isPlaying()&&!S.L&&(S.G>=0&&S.Y.set("user_intent", [S.G.toString()]),S.L=!0);vFg(S)}v.U&&(v=v.U,hSJ(v),v.playerState=O.state,v.U>=0&&g.UO(O,16)&&v.seekCount++,O.state.isError()&&v.send())}; IeE=function(v){v.U&&v.U.send();if(v.qoe){var O=v.qoe;if(O.B){O.RF==="PL"&&(O.RF="N");var Y=g.KF(O.provider);g.Wx(O,Y,"vps",[O.RF]);O.L||(O.G>=0&&O.Y.set("user_intent",[O.G.toString()]),O.L=!0);O.provider.Yg.XL()&&O.G0("finalized",{});O.N3=!0;O.reportStats(Y)}}if(v.provider.videoData.enableServerStitchedDai)for(O=g.y(v.G.values()),Y=O.next();!Y.done;Y=O.next())hGE(Y.value);else v.Y&&hGE(v.Y);v.dispose()}; qjw=function(v,O){v.Y&&eGl(v.Y,O)}; nF7=function(v){if(!v.Y)return null;var O=cx(v.Y,"atr");return function(Y){v.Y&&eGl(v.Y,Y,O)}}; Jqm=function(v,O,Y,S){Y.adFormat=Y.w4;var d=O.Og;O=new Uj(new aG(Y,O.Yg,{getDuration:function(){return Y.lengthSeconds}, getCurrentTime:function(){return d.getCurrentTime()}, nE:function(){return d.nE()}, hc:function(){return d.hc()}, Yk:function(){return d.Yk()}, MQ:function(){return d.MQ()}, getPlayerSize:function(){return d.getPlayerSize()}, getAudioTrack:function(){return Y.getAudioTrack()}, getPlaybackRate:function(){return d.getPlaybackRate()}, mW:function(){return d.mW()}, getVisibilityState:function(){return d.getVisibilityState()}, pS:function(){return d.pS()}, I2:function(){return d.I2()}, getVolume:function(){return d.getVolume()}, isMuted:function(){return d.isMuted()}, SG:function(){return d.SG()}, iy:function(){return d.iy()}, getProximaLatencyPreference:function(){return d.getProximaLatencyPreference()}, EW:function(){d.EW()}, G0:function(r,b){d.G0(r,b)}, BG:function(){return d.BG()}, En:function(){return d.En()}})); O.U=S;g.w(v,O);return O}; K31=function(){this.dJ=0;this.G=this.NH=this.nL=this.U=NaN;this.Y={};this.bandwidthEstimate=NaN}; lG=function(v,O,Y){g.X.call(this);var S=this;this.Yg=v;this.Og=O;this.U=Y;this.Y=new Map;this.DT="";this.Qg={y_:function(){return Array.from(S.Y.keys())}}}; PGl=function(){this.Y=g.rh;this.array=[]}; i6w=function(v,O,Y){var S=[];for(O=G5w(v,O);OY)break}return S}; mQ7=function(v,O){var Y=[];v=g.y(v.array);for(var S=v.next();!S.done&&!(S=S.value,S.contains(O)&&Y.push(S),S.start>O);S=v.next());return Y}; tHw=function(v){return v.array.slice(G5w(v,0x7ffffffffffff),v.array.length)}; G5w=function(v,O){v=hY(v.array,function(Y){return O-Y.start||1}); return v<0?-(v+1):v}; DQg=function(v,O){var Y=NaN;v=g.y(v.array);for(var S=v.next();!S.done;S=v.next())if(S=S.value,S.contains(O)&&(isNaN(Y)||S.endO&&(isNaN(Y)||S.startv.mediaTime+v.Z&&O1)v.B=!0;if((d===void 0?0:d)||isNaN(v.U))v.U=O;if(v.Y)O!==v.mediaTime&&(v.Y=!1);else if(O>0&&v.mediaTime===O){d=1500;if(v.Yg.V("html5_buffer_underrun_transition_fix")){d=g.Vq(v.Yg.experiments,"html5_min_playback_advance_for_steady_state_secs");var r=g.Vq(v.Yg.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");d=d>0&&r>0&&Math.abs(O-v.U)(S||!v.B?d:400)}v.mediaTime=O;v.G=Y;return!1}; SAJ=function(v,O){this.videoData=v;this.Y=O}; dkn=function(v,O,Y){return O.NR(Y).then(function(){return Eq(new SAJ(O,O.G))},function(S){S instanceof Error&&g.Br(S); var d=eX('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),r=Q9('audio/mp4; codecs="mp4a.40.2"'),b=d||r,z=O.isLivePlayback&&!g.OU(v.Z,!0);S="fmt.noneavailable";z?S="html5.unsupportedlive":b||(S="html5.missingapi");b=z||!b?2:1;d={buildRej:"1",a:O.K3(),d:!!O.yC,drm:O.aS(),f18:O.RD.indexOf("itag=18")>=0,c18:d};O.Y&&(O.aS()?(d.f142=!!O.Y.Y["142"],d.f149=!!O.Y.Y["149"],d.f279=!!O.Y.Y["279"]):(d.f133=!!O.Y.Y["133"],d.f140=!!O.Y.Y["140"],d.f242=!!O.Y.Y["242"]),d.cAAC=r,d.cAVC=Q9('video/mp4; codecs="avc1.42001E"'), d.cVP9=Q9('video/webm; codecs="vp9"'));O.Z&&(d.drmsys=O.Z.keySystem,r=0,O.Z.Y&&(r=Object.keys(O.Z.Y).length),d.drmst=r);return new lJ(S,d,b)})}; RG=function(v){this.data=window.Float32Array?new Float32Array(v):Array(v);this.U=this.Y=v-1}; rAc=function(v){return v.data[v.Y]||0}; bq1=function(v){this.Z=v;this.G=this.U=0;this.B=new RG(50)}; Ej=function(v,O,Y){g.MU.call(this);this.videoData=v;this.experiments=O;this.Z=Y;this.U=[];this.pC=0;this.G=!0;this.B=!1;this.C=0;Y=new o6E;v.latencyClass==="ULTRALOW"&&(Y.C=!1);v.yx?Y.G=3:g.cj(v)&&(Y.G=2);v.latencyClass==="NORMAL"&&(Y.Z=!0);Y.tK=Ol(v)&&O.T0("html5_refactor_decouple_liveness");g.Vq(O,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.Vq(O,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||v.latencyClass!=="LOW"&&v.latencyClass!=="ULTRALOW"||(Y.Z=!0);var S= g.Vq(O,"html5_liveness_drift_proxima_override");if(Wj(v)!==0&&S){Y.Y=S;var d;((d=v.Y)==null?0:SKi(d))&&Y.Y--}Ol(v)&&O.T0("html5_sabr_parse_live_metadata_playback_boundaries")&&(Y.Ug=!0);if(g.Jy("trident/")||g.Jy("edge/"))d=g.Vq(O,"html5_platform_minimum_readahead_seconds")||3,Y.B=Math.max(Y.B,d);g.Vq(O,"html5_minimum_readahead_seconds")&&(Y.B=g.Vq(O,"html5_minimum_readahead_seconds"));g.Vq(O,"html5_maximum_readahead_seconds")&&(Y.j=g.Vq(O,"html5_maximum_readahead_seconds"));O.T0("html5_force_adaptive_readahead")&& (Y.C=!0);if(d=g.Vq(O,"html5_liveness_drift_chunk_override"))Y.Y=d;oO(v)&&(Y.Y=(Y.Y+1)/5,v.latencyClass==="LOW"&&(Y.Y*=2));!Ol(v)||v.latencyClass!=="ULTRALOW"&&v.latencyClass!=="LOW"||(Y.X=g.Vq(O,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,Y.L=g.Vq(O,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=Y;this.L=this.policy.G!==1;this.Y=eH(this,jbQ(this,isNaN(v.liveChunkReadahead)?3:v.liveChunkReadahead,v))}; WaE=function(v,O){if(O)return O=v.videoData,O=jbQ(v,isNaN(O.liveChunkReadahead)?3:O.liveChunkReadahead,O),eH(v,O);if(v.U.length){if(Math.min.apply(null,v.U)>1)return eH(v,v.Y-1);if(v.policy.C)return eH(v,v.Y+1)}return v.Y}; zwg=function(v,O){if(!v.U.length)return!1;var Y=v.Y;v.Y=WaE(v,O===void 0?!1:O);if(O=Y!==v.Y)v.U=[],v.pC=0;return O}; QE=function(v,O){return O>=v.WP()-sbF(v)}; g61=function(v,O,Y){O=QE(v,O);Y||O?O&&(v.G=!0):v.G=!1;v.L=v.policy.G===2||v.policy.G===3&&v.G}; M3l=function(v,O){O=QE(v,O);v.B!==O&&v.publish("livestatusshift",O);v.B=O}; sbF=function(v){var O=v.policy.Y;v.B||(O=Math.max(O-1,0));return O*L6(v)}; jbQ=function(v,O,Y){Y.yx&&O--;oO(Y)&&(O=1);if(Wj(Y)!==0&&(v=g.Vq(v.experiments,"html5_live_chunk_readahead_proxima_override"))){O=v;var S;((S=Y.Y)==null?0:SKi(S))&&O++}return O}; L6=function(v){return v.videoData.Y?xA(v.videoData.Y)||5:5}; eH=function(v,O){O=Math.max(Math.max(1,Math.ceil(v.policy.B/L6(v))),O);return Math.min(Math.min(8,Math.floor(v.policy.j/L6(v))),O)}; o6E=function(){this.B=0;this.j=Infinity;this.C=!0;this.U=this.Y=2;this.G=1;this.Z=!1;this.L=10;this.Ug=!1;this.X=1;this.tK=!1}; XP=function(v){g.X.call(this);this.Og=v;this.Y=0;this.U=null;this.C=this.B=0;this.G={};this.Yg=this.Og.D();this.Z=new g.mX(this.Vw,1E3,this);this.xg=new Bx({delayMs:g.Vq(this.Yg.experiments,"html5_seek_timeout_delay_ms")});this.JK=new Bx({delayMs:g.Vq(this.Yg.experiments,"html5_long_rebuffer_threshold_ms")});this.yx=Ze(this,"html5_seek_set_cmt");this.g8=Ze(this,"html5_seek_jiggle_cmt");this.XO=Ze(this,"html5_seek_new_elem");this.pj=Ze(this,"html5_unreported_seek_reseek");this.Ug=Ze(this,"html5_long_rebuffer_jiggle_cmt"); this.HW=new Bx({delayMs:2E4});this.AK=Ze(this,"html5_seek_new_elem_shorts");this.Eg=Ze(this,"html5_seek_new_media_source_shorts_reuse");this.f1=Ze(this,"html5_seek_new_media_element_shorts_reuse");this.FO=Ze(this,"html5_reseek_after_time_jump");this.X=Ze(this,"html5_gapless_handoff_close_end_long_rebuffer");this.j=Ze(this,"html5_gapless_slow_seek");this.tK=Ze(this,"html5_gapless_slow_start");this.L=Ze(this,"html5_ads_preroll_lock_timeout");this.n1=new Bx({delayMs:g.Vq(this.Yg.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,Vo:!this.Yg.V("html5_report_slow_ads_as_error")});this.On=new Bx({delayMs:g.Vq(this.Yg.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Vo:!this.Yg.V("html5_skip_slow_buffering_ad")});this.Mj=new Bx({delayMs:g.Vq(this.Yg.experiments,"html5_slow_start_timeout_delay_ms")});this.N3=Ze(this,"html5_slow_start_no_media_source");g.w(this,this.Z)}; Ze=function(v,O){var Y=g.Vq(v.Yg.experiments,O+"_delay_ms");v=v.Yg.V(O+"_cfl");return new Bx({delayMs:Y,Vo:v})}; V3d=function(v,O){v.Y=O}; w8=function(v,O,Y,S,d,r,b,z){O.test(Y)?(v.OE(d,O,b),O.Vo||r()):(O.mZ&&O.U&&!O.B?(Y=(0,g.J)(),S?O.Y||(O.Y=Y):O.Y=0,r=!S&&Y-O.U>O.mZ,Y=O.Y&&Y-O.Y>O.q1||r?O.B=!0:!1):Y=!1,Y&&(z=Object.assign({},v.Yu(O),z),z.wn=b,z.we=d,z.wsuc=S,v.Og.G0("workaroundReport",z),S&&(O.reset(),v.G[d]=!1)))}; Bx=function(v){var O=v===void 0?{}:v;v=O.delayMs===void 0?0:O.delayMs;var Y=O.q1===void 0?1E3:O.q1;var S=O.mZ===void 0?3E4:O.mZ;O=O.Vo===void 0?!1:O.Vo;this.Y=this.U=this.G=this.startTimestamp=0;this.B=!1;this.Z=Math.ceil(v/1E3);this.q1=Y;this.mZ=S;this.Vo=O}; kZd=function(v){g.X.call(this);var O=this;this.Og=v;this.L=this.Y=this.loader=this.mediaElement=this.playbackData=null;this.G=0;this.Z=this.Ug=this.B=null;this.HW=!1;this.Mj=0;this.tK=!1;this.timestampOffset=0;this.X=!0;this.XO=0;this.Eg=this.Cj=!1;this.C=0;this.yx=!1;this.JK=0;this.Yg=this.Og.D();this.videoData=this.Og.getVideoData();this.policy=new AA7;this.j=new XP(this.Og);this.n1=this.AK=this.g8=this.U=NaN;this.FO=new g.mX(function(){f2d(O,!1)},2E3); this.pj=new g.mX(function(){IG(O)}); this.f1=new g.mX(function(){O.HW=!0;$kc(O,{})}); this.On=NaN;this.N3=new g.mX(function(){var Y=O.Yg.lO;Y.Y+=1E4/36E5;Y.Y-Y.G>1/6&&(rOw(Y),Y.G=Y.Y);O.N3.start()},1E4); g.w(this,this.j);g.w(this,this.FO);g.w(this,this.f1);g.w(this,this.pj);g.w(this,this.N3)}; uC7=function(v,O){v.playbackData=O;v.videoData.isLivePlayback&&(v.L=new bq1(function(){a:{if(v.playbackData&&v.playbackData.Y.Y){if(b8(v.videoData)&&v.loader){var S=v.loader.Gu.In()||0;break a}if(v.videoData.Y){S=v.videoData.Y.N3;break a}}S=0}return S}),v.Y=new Ej(v.videoData,v.Yg.experiments,function(){return v.gK(!0)})); if(qQ(v.Og)){var Y;(Y=v.videoData.n1)!=null&&Y.RK||(O=UkF(v),O.Z6?(Ol(v.videoData)&&v.lf(O.Z6,O.startSeconds),v.G=O.startSeconds):O.startSeconds>0&&v.seekTo(O.startSeconds,{Vg:"seektimeline_startPlayback",seekSource:15}));v.X=!1}else cA1(v)||(v.G=v.G||v.videoData.startSeconds||0)}; yAJ=function(v,O){(v.loader=O)?C61(v,!0):n6(v)}; a2Q=function(v,O){g.HM(v.j.Z);v.V("html5_exponential_memory_for_sticky")&&(O.state.isPlaying()?g.HM(v.N3):v.N3.stop());if(v.mediaElement)if(O.oldState.state===8&&Va(O.state)&&O.state.isBuffering()){O=v.mediaElement.getCurrentTime();var Y=v.mediaElement.s_();var S=v.V("manifestless_post_live_ufph")||v.V("manifestless_post_live")?zz(Y,Math.max(O-3.5,0)):zz(Y,O-3.5);S>=0&&O>Y.end(S)-1.1&&S+10?(Jq(v.Og,v.getCurrentTime()+v.videoData.limitedPlaybackDurationInSeconds),v.Eg=!0):v.videoData.isLivePlayback&&v.videoData.endSeconds>0&&(Jq(v.Og,v.getCurrentTime()+v.videoData.endSeconds),v.Eg=!0))}; pRn=function(v,O){var Y=v.getCurrentTime(),S=v.isAtLiveHead(Y);if(v.L&&S){var d=v.L;if(d.Y&&!(Y>=d.U&&Y50&&d.U.shift())),d=v.Y,g61(d,Y,O===void 0?!0:O),M3l(d,Y),O&&f2d(v,!0));S!==v.Cj&&(O=v.getCurrentTime()-v.n1<=500,Y=v.Mj>=1E3,O||Y||(O=v.Og.Kj(),O.qoe&&(O=O.qoe,Y=g.KF(O.provider), g.Wx(O,Y,"lh",[S?"1":"0"])),v.Cj=S,v.Mj++,v.n1=v.getCurrentTime()))}; f2d=function(v,O){if(v.Y){var Y=v.Y;var S=v.getCurrentTime(),d=Y.WP();var r=Y.policy.U;Y.B||(r=Math.max(r-1,0));r*=L6(Y);S>=d-r||!Y.rN()?Y=S0&&S_(v.mediaElement)>0&&(v.U=K6(v,v.U,!1)),!v.mediaElement||!ewn(v))v.pj.start(750);else if(!isNaN(v.U)&&isFinite(v.U)){var O=v.AK-(v.U-v.timestampOffset);if(!(O===0||Math.abs(O)<.005))if(O=v.mediaElement.getCurrentTime()-v.U,Math.abs(O)<=v.XO||Math.abs(O)<.005)E63(v);else{if(v.videoData.v6)v.videoData.v6=!1;else if(!rX(v.videoData)&&v.U>=v.gK()-.1){v.U=v.gK();v.B.resolve(v.gK()); v.Og.O3();return}try{var Y=v.U-v.timestampOffset;v.mediaElement.seekTo(Y);v.j.Y=Y;v.AK=Y;v.G=v.U;v.tK=!1}catch(S){}}}}; ewn=function(v){if(!v.mediaElement||v.mediaElement.h3()===0||v.mediaElement.hasError())return!1;var O=v.mediaElement.getCurrentTime()>0;if(!(v.videoData.G&&v.videoData.G.Y||v.videoData.isLivePlayback)&&v.videoData.aS())return O;if(v.U>=0){var Y=v.mediaElement.zo();if(Y.length||!O)return so(Y,v.U-v.timestampOffset)}return O}; E63=function(v){v.B&&(v.B.resolve(v.mediaElement.getCurrentTime()),v.j.U=null)}; hwE=function(v,O){v.Z&&(v.Z.resolve(O),v.Og.PR(),v.Yg.XL()||Rw$(v))&&(O=v.Yu(),O["native"]=""+ +v.tK,O.otgt=""+(v.U+v.timestampOffset),v.Og.G0("seekEnd",O));n6(v)}; n6=function(v){v.U=NaN;v.AK=NaN;v.B=null;v.Ug=null;v.Z=null;v.HW=!1;v.tK=!1;v.XO=0;v.FO.stop();v.f1.stop()}; Lal=function(v,O){var Y=v.mediaElement,S=O.type;switch(S){case "seeking":var d=Y.getCurrentTime()+v.timestampOffset;if(!v.B||v.tK&&d!==v.U){v.B=new OK;v.B.then(function(b){hwE(v,b)},function(){n6(v)}); if(v.videoData.isAd()){var r;dFd({adCpn:v.videoData.clientPlaybackNonce,contentCpn:(r=v.videoData.fH)!=null?r:""},O.Y)}v.AK=d;V3d(v.j,Y.getCurrentTime());v.seekTo(d,{seekSource:104,Vg:"seektimeline_mediaElementEvent"});v.tK=!0}break;case "seeked":E63(v);break;case "loadedmetadata":qQ(v.Og)||QbE(v);IG(v);break;case "progress":IG(v);break;case "pause":v.C=v.getCurrentTime()}v.C&&((S==="play"||S==="playing"||S==="timeupdate"||S==="progress")&&v.getCurrentTime()-v.C>10&&(v.V("html5_enable_new_media_element_puase_jump")? (v.Og.OE(new lJ("qoe.restart",{reason:"pauseJump"})),v.Og.jA(),v.seekTo(v.C,{Vg:"pauseJumpNewElement"})):v.seekTo(v.C,{Vg:"pauseJump"})),S!=="pause"&&S!=="play"&&S!=="playing"&&S!=="progress"&&(v.C=0))}; Bt$=function(v){return(u8(v.videoData)||!!v.videoData.liveUtcStartSeconds)&&(!!v.videoData.liveUtcStartSeconds||cA1(v))&&!!v.videoData.Y}; cA1=function(v){return!!v.videoData.startSeconds&&isFinite(v.videoData.startSeconds)&&v.videoData.startSeconds>1E9}; UkF=function(v){var O=0,Y=NaN,S="";if(!v.X)return{startSeconds:O,Z6:Y,source:S};v.videoData.tK?O=v.videoData.HW:rX(v.videoData)&&(O=Infinity);if(g.cj(v.videoData))return{startSeconds:O,Z6:Y,source:S};v.videoData.startSeconds?(S="ss",O=v.videoData.startSeconds):v.videoData.N2&&(S="stss",O=v.videoData.N2);v.videoData.liveUtcStartSeconds&&(Y=v.videoData.liveUtcStartSeconds);if(isFinite(O)&&(O>v.gK()||Ov.gK()||Y 0?(S.onesie="0",v.handleError(new lJ("html5.missingapi",S)),!1):!0}; P67=function(v){var O=Rh();eE(O,v);return g.ju(O,pv$())}; n6w=function(v,O){var Y,S,d,r,b,z,M,V,A,f,k,U,c,a,x,T,l,Q,L,I,t,P,YQ,dF,N,j1;return g.B(function(D){if(D.U==1)return O.fetchType="onesie",Y=w8i(O,v.getPlayerSize(),v.getVisibilityState()),S=new VQ(v,Y),g.E(D,S.fetch(),2);d=D.Y;r={player_response:d};O.loading=!1;b=v.WD.Wd;if(S.mq){z=g.y(S.mq.entries());for(M=z.next();!M.done;M=z.next())V=M.value,A=g.y(V),f=A.next().value,k=A.next().value,U=f,c=k,b.Y.set(U,c,180),U===O.videoId&&(a=c.uu(),O.lD=a);b.Xg=S}x=g.y(S.k9.entries());for(T=x.next();!T.done;T= x.next())l=T.value,Q=g.y(l),L=Q.next().value,I=Q.next().value,t=L,P=I,b.U.set(t,P,180);g.nm(O,r,!0);if(O.loading||IJ(O))return D.return(Promise.resolve());b.Y.removeAll();b.U.removeAll();O.lD=[];YQ={};dF="onesie.response";N=0;O.errorCode?(dF="auth",YQ.ec=O.errorCode,YQ.ed=O.errorDetail,YQ.es=O.uL||"",N=2):(YQ.successButUnplayable="1",YQ.disposed=""+ +O.vW(),YQ.afmts=""+ +/adaptiveFormats/.test(d),YQ.cpn=O.clientPlaybackNonce);j1=new lJ(dF,YQ,N);return D.return(Promise.reject(j1))})}; I2m=function(v,O){var Y,S,d,r,b,z,M,V,A,f,k;return g.B(function(U){switch(U.U){case 1:Y=O.isAd(),S=!Y,d=Y?1:3,r=0;case 2:if(!(r0)){U.d8(5);break}return g.E(U,Xn(5E3),6);case 6:b=new g.iK("Retrying OnePlatform request",{attempt:r}),g.Br(b);case 5:return g.cm(U,7),g.E(U,GZl(v,O),9);case 9:return U.return();case 7:z=g.Tc(U);M=hL(z);V=M.errorCode;A=v.D();f=A.V("html5_use_network_error_code_enums")?401:"401";S&&V==="manifest.net.badstatus"&&M.details.rc===f&&(S=!1,r===d-1&&(d+= 1));if(r===d-1)return k=iqn(Y,M.details),k.details.backend="op",k.details.originec=V,U.return(Promise.reject(k));if(V==="auth"||V==="manifest.net.retryexhausted")return U.return(Promise.reject(M));v.handleError(M);if(FW(M.severity)){U.d8(4);break}case 3:r++;U.d8(2);break;case 4:return U.return(Promise.reject(iqn(Y,{backend:"op"})))}})}; GZl=function(v,O){function Y(dF){dF.readyState===2&&v.Tf("ps_c")} var S,d,r,b,z,M,V,A,f,k,U,c,a,x,T,l,Q,L,I,t,P,YQ;return g.B(function(dF){switch(dF.U){case 1:O.fetchType="gp";S=v.D();d=g.vO(S,g.ez(O));if(!d.Y){r=d.getValue();dF.d8(2);break}return g.E(dF,d.Y,3);case 3:r=dF.Y;case 2:return b=r,z=P67(b),M=w8i(O,v.getPlayerSize(),v.getVisibilityState()),V=g.V7(mkw),A=g.ez(O),f=(0,g.J)(),k=!1,U="empty",c=0,v.Tf("psns"),a={t0:Y},g.E(dF,g.D9(z,M,V,void 0,a),4);case 4:x=dF.Y;v.Tf("psnr");if(O.vW())return dF.return();x?"error"in x&&x.error?(k=!0,U="esf:"+x.error.message, c=x.error.code):x.errorMetadata&&(k=!0,U="its",c=x.errorMetadata.status):k=!0;if(k)return T=0,l=((0,g.J)()-f).toFixed(),Q={},Q=S.V("html5_use_network_error_code_enums")?{backend:"op",rc:c,rt:l,reason:U,has_kpt:O.qX?"1":"0",has_mdx_env:O.mdxEnvironment?"1":"0",has_omit_key_flag:g.Gq("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:S.pageId?"1":"0",has_token:A?"1":"0",has_vvt:O.JK?"1":"0",is_mdx:O.isMdxPlayback?"1":"0",mdx_ctrl:O.cP||"",token_eq:A===g.ez(O)?"1":"0"}:{backend:"op", rc:""+c,rt:l,reason:U,has_kpt:O.qX?"1":"0",has_mdx_env:O.mdxEnvironment?"1":"0",has_omit_key_flag:g.Gq("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:S.pageId?"1":"0",has_token:A?"1":"0",has_vvt:O.JK?"1":"0",is_mdx:O.isMdxPlayback?"1":"0",mdx_ctrl:O.cP||"",token_eq:A===g.ez(O)?"1":"0"},L="manifest.net.connect",c===429?(L="auth",T=2):c>200&&(L="manifest.net.badstatus",c===400&&(T=2)),dF.return(Promise.reject(new lJ(L,Q,T)));O.loading=!1;g.nm(O,{raw_player_response:x},!0); I=x;g.h7(O.D())&&I&&I.trackingParams&&Ry(I.trackingParams);if(O.errorCode)return t={ec:O.errorCode,ed:O.errorDetail,es:O.uL||""},dF.return(Promise.reject(new lJ("auth",t,2)));if(!O.loading&&!IJ(O))return P=O.isAd()?"auth":"manifest.net.retryexhausted",YQ=O.isAd()?2:1,dF.return(Promise.reject(new lJ(P,{successButUnplayable:"1",hasMedia:g.$L(O)?"1":"0"},YQ)));g.UE(dF)}})}; wRg=function(v,O,Y){function S(c){c=hL(c);if(FW(c.severity))return Promise.reject(c);v.handleError(c);return!1} function d(){return!0} var r,b,z,M,V,A,f,k,U;return g.B(function(c){switch(c.U){case 1:var a=v.D();v.getPlayerSize();v.getVisibilityState();v.isFullscreen();if(O.partnerId===38&&a.playerStyle==="books")a=O.videoId.indexOf(":"),a=g.Te("//play.google.com/books/volumes/"+O.videoId.slice(0,a)+"/content/media",{aid:O.videoId.slice(a+1),sig:O.AI});else if(O.partnerId===30&&a.playerStyle==="docs")a=g.Te("https://docs.google.com/get_video_info",{docid:O.videoId,authuser:O.uA,authkey:O.tO,eurl:a.yC});else if(O.partnerId===33&&a.playerStyle=== "google-live")a=g.Te("//google-liveplayer.appspot.com/get_video_info",{key:O.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+a.tK);r=a;z=(b=O.isAd())?1:3;M=0;case 2:if(!(M0)){c.d8(5);break}return g.E(c,Xn(5E3),6);case 6:A={playerretry:M,playerretrysrc:Y},b||(A.recover="embedded"),V=oZ(r,A);case 5:return g.E(c,t3i(O,V).then(d,S),7);case 7:if(f=c.Y)return c.return();M++;c.d8(2);break;case 4:k=b?"auth":"manifest.net.retryexhausted";U=b?2:1;if(!b&&Math.random()< 1E-4)try{g.Br(new g.iK("b/152131571",btoa(r)))}catch(x){}return c.return(Promise.reject(new lJ(k,{backend:"gvi"},U)))}})}; t3i=function(v,O){function Y(x){return S(x.xhr)} function S(x){if(!v.vW()){x=x?x.status:-1;var T=0,l=((0,g.J)()-A).toFixed();l=d.V("html5_use_network_error_code_enums")?{backend:"gvi",rc:x,rt:l}:{backend:"gvi",rc:""+x,rt:l};var Q="manifest.net.connect";x===429?(Q="auth",T=2):x>200&&(Q="manifest.net.badstatus",x===400&&(T=2));return Promise.reject(new lJ(Q,l,T))}} var d,r,b,z,M,V,A,f,k,U,c,a;return g.B(function(x){if(x.U==1){v.fetchType="gvi";d=v.D();var T={};v.ZB&&(T.ytrext=v.ZB);(z=g.tY(T)?void 0:T)?(r={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:z},b=oZ(O,{action_display_post:1})):(r={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},b=O);M={};d.sendVisitorIdHeader&&v.visitorData&&(M["X-Goog-Visitor-Id"]=v.visitorData);(V=HY(d.experiments,"debug_sherlog_username"))&&(M["X-Youtube-Sherlog-Username"]=V);Object.keys(M).length> 0&&(r.headers=M);A=(0,g.J)();return g.E(x,ge(FB,b,r).then(void 0,Y),2)}f=x.Y;if(!f||!f.responseText)return x.return(S(f));v.loading=!1;k=Se(f.responseText);g.nm(v,k,!0);if(v.errorCode)return U={ec:v.errorCode,ed:v.errorDetail,es:v.uL||""},x.return(Promise.reject(new lJ("auth",U,2)));if(!v.loading&&!IJ(v))return c=v.isAd()?"auth":"manifest.net.retryexhausted",a=v.isAd()?2:1,x.return(Promise.reject(new lJ(c,{successButUnplayable:"1"},a)));g.UE(x)})}; iqn=function(v,O){return new lJ(v?"auth":"manifest.net.retryexhausted",O,v?2:1)}; tq=function(v,O,Y){Y=Y===void 0?!1:Y;var S,d,r,b;g.B(function(z){if(z.U==1){S=v.D();if(Y&&(!g.iq(S)||l8(O)!=="embedded")||O.kt||l8(O)!=="adunit"&&(g.lx(S)||ZS(S)||g.qB(S)||g.RP(S)||g.tt(S)==="WEB_CREATOR"))return z.return();d=g.vO(S,g.ez(O));return d.Y?g.E(z,d.Y,3):(r=d.getValue(),z.d8(2))}z.U!=2&&(r=z.Y);b=r;return z.return(Dkm(v,O,b))})}; Dkm=function(v,O,Y){var S,d,r,b,z;return g.B(function(M){if(M.U==1){g.cm(M,2);S=P67(Y);var V=O.D();g.qL();var A={context:g.i8(O),videoId:O.videoId,racyCheckOk:O.racyCheckOk,contentCheckOk:O.contentCheckOk,autonavState:"STATE_NONE"};l8(O)==="adunit"&&(A.isAdPlayback=!0);V.embedConfig&&(A.serializedThirdPartyEmbedConfig=V.embedConfig);V.LM&&(A.showContentOwnerOnly=!0);O.Ra&&(A.showShortsOnly=!0);g.ny(0,141)&&(A.autonavState=g.ny(0,140)?"STATE_OFF":"STATE_ON");if(g.PD(V)){var f=g.ny(0,65);f=f!=null? !f:!1;var k=!!g.Ly("yt-player-sticky-caption");A.captionsRequested=f&&k}var U;if(V=(U=V.getWebPlayerContextConfig())==null?void 0:U.encryptedHostFlags)A.playbackContext={encryptedHostFlags:V};d=A;r=g.V7(Hqw);v.Tf("wn_s");return g.E(M,g.D9(S,d,r),4)}if(M.U!=2)return b=M.Y,v.Tf("wn_r"),!b||"error"in b&&b.error||(z=b,g.h7(O.D())&&z.trackingParams&&Ry(z.trackingParams),g.nm(O,{raw_watch_next_response:b},!1)),g.ai(M,0);g.Tc(M);g.UE(M)})}; Ntg=function(v){v.Tf("vir");v.Tf("ps_s");i1("vir",void 0,"video_to_ad");var O=KaQ(v);O.then(function(){v.Tf("virc");i1("virc",void 0,"video_to_ad");v.Tf("ps_r");i1("ps_r",void 0,"video_to_ad")},function(){v.Tf("virc"); i1("virc",void 0,"video_to_ad")}); return O}; g.NQ=function(v,O,Y,S,d,r,b,z,M,V){M=M===void 0?new g.w2(v):M;V=V===void 0?!0:V;g.MU.call(this);var A=this;this.Yg=v;this.playerType=O;this.Zg=Y;this.Mv=S;this.getVisibilityState=r;this.visibility=b;this.WD=z;this.videoData=M;this.RP=V;this.logger=new g.vY("VideoPlayer");this.OM=null;this.Q2=new Oj;this.fM=null;this.CR=!0;this.Du=this.loader=null;this.Tx=[];this.Se=new m3;this.TO=this.RT=null;this.X2=new m3;this.ac=null;this.LR=this.Q3=!1;this.Kw=NaN;this.cU=!1;this.playerState=new g.oK;this.Tr=[]; this.cH=new g.Z6;this.kp=new H2F(this);this.mediaElement=null;this.Fn=new g.mX(this.wTc,15E3,this);this.bC=this.bV=!1;this.Ud=NaN;this.d5=!1;this.Xx=0;this.AU=!1;this.ZN=NaN;this.uC=new Px(new Map([["bufferhealth",function(){return xkn(A.A9)}], ["bandwidth",function(){return A.dG()}], ["networkactivity",function(){return A.Yg.schedule.HW}], ["livelatency",function(){return A.isAtLiveHead()&&A.isPlaying()?vhc(A):NaN}], ["rawlivelatency",function(){return vhc(A)}]])); this.K2=0;this.loop=!1;this.playbackRate=1;this.UO=0;this.A9=new kZd(this);this.QO=!1;this.Ev=[];this.Ru=this.QZ=0;this.Pr=this.X0=!1;this.NH=this.nL=0;this.Z4=new g.mX(this.IL,0,this);this.f_=null;this.uOg=[this.cH,this.Z4,this.Fn,this.uC];this.ew=this.Ef=null;this.Gm=function(){var f=A.Kj();f.provider.Yg.w4||f.provider.Og.getVisibilityState()===3||(f.provider.Yg.w4=!0);f.L3();if(f.U){var k=f.U;k.Z&&k.Y<0&&k.provider.Og.getVisibilityState()!==3&&F1E(k)}f.qoe&&(f=f.qoe,f.Eg&&f.G<0&&f.provider.Yg.w4&& b6m(f),f.B&&g8(f));A.loader&&De(A);A.Yg.l4&&!A.videoData.backgroundable&&A.mediaElement&&!A.YW()&&(A.isBackground()&&A.mediaElement.DB()?(A.G0("bgmobile",{suspend:1}),A.Oy(!0,!0)):A.isBackground()||Hx(A)&&A.G0("bgmobile",{resume:1}))}; this.Qg={xo:function(f){A.xo(f)}, Hrx:function(f){A.OM=f}, CQd:function(){return A.Lh}, vn:function(){return A.Au}, rW:function(){return A.Du}, x$W:function(){return A.rV}, fnx:function(){return A.oh}, ojg:function(){}, D:function(){return A.Yg}, Bq:function(){return A.mediaElement}, q$g:function(f){A.yk(f)}, iMc:function(){return A.Mv}}; this.logger.debug(function(){return"creating, type "+O}); this.sf=new YAJ(this.Yg);this.T8=new SH(this.Yg,this.Mv,this);this.q7=new g.FP(this,function(f,k){f!==g.bI("endcr")||g.G(A.playerState,32)||A.O3();d(f,k,A.playerType)}); g.w(this,this.q7);g.w(this,this.A9);Op$(this,M);this.videoData.subscribe("dataupdated",this.uHx,this);this.videoData.subscribe("dataloaded",this.jj,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.G0,this);this.videoData.subscribe("ctmpstr",this.Li,this);this.E6();tOm(this.Gm);this.visibility.subscribe("visibilitystatechange",this.Gm);this.rV=new g.mX(this.Ww,g.Vq(this.Yg.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.oh= new g.mX(this.Ww,g.Vq(this.Yg.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.qx=new g.Os(this.uhO,350,this);g.w(this,this.qx)}; Op$=function(v,O){if(v.playerType===2||v.Yg.Q8)O.vz=!0;var Y=Hz3(O.w4,O.By,v.Yg.B,v.Yg.X);Y&&(O.adFormat=Y);v.playerType===2&&(O.Tn=!0);if(v.isFullscreen()||v.Yg.B)Y=g.Ly("yt-player-autonavstate"),O.autonavState=Y||(v.Yg.B?2:v.videoData.autonavState);O.endSeconds&&O.endSeconds>O.startSeconds&&Jq(v,O.endSeconds)}; Ye3=function(v){IeE(v.Lh);g.sM(v.Lh);if(v.Au){for(var O=v.Au,Y=g.y(O.Y.values()),S=Y.next();!S.done;S=Y.next())IeE(S.value);O.Y.clear();g.sM(v.Au)}}; SeJ=function(v){var O=v.videoData;Ntg(v).then(void 0,function(Y){v.videoData!==O||O.vW()||(Y=hL(Y),Y.errorCode==="auth"&&v.videoData.errorDetail?v.g4(Y.errorCode,2,unescape(v.videoData.errorReason),TB(Y.details),v.videoData.errorDetail,v.videoData.uL||void 0):v.handleError(Y))})}; bpg=function(v){if(!g.G(v.playerState,128))if(v.videoData.isLoaded(),v.logger.debug("finished loading playback data"),v.Tx=g.c0(v.videoData.Ug),g.$L(v.videoData)){v.Zg.tick("bpd_s");vR(v).then(function(){v.Zg.tick("bpd_c");if(!v.vW()){v.Q3&&(v.HD(zH(zH(v.playerState,512),1)),Hx(v));var S=v.videoData;S.endSeconds&&S.endSeconds>S.startSeconds&&Jq(v,S.endSeconds);v.Se.finished=!0;OA(v,"dataloaded");v.X2.J_()&&doc(v);l1Q(v.T8,v.TO)}}); v.V("html5_log_media_perf_info")&&v.G0("loudness",{v:v.videoData.aI.toFixed(3)},!0);var O,Y=(O=v.mediaElement)==null?void 0:O.dR();if(Y&&"disablePictureInPicture"in Y&&v.Yg.JS)try{Y.disablePictureInPicture=v.Yg.dW&&!v.videoData.backgroundable}catch(S){g.Br(S)}rMJ(v)}else OA(v,"dataloaded")}; vR=function(v){Y6(v);v.TO=null;var O=dkn(v.Yg,v.videoData,v.YW());v.RT=O;v.RT.then(function(Y){ohc(v,Y)},function(Y){v.vW()||(Y=hL(Y),v.visibility.isBackground()?(S3(v,"vp_none_avail"),v.RT=null,v.Se.reset()):(v.Se.finished=!0,v.g4(Y.errorCode,Y.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",TB(Y.details))))}); return O}; ohc=function(v,O){if(!v.vW()&&!O.videoData.vW()){v.logger.debug("finished building playback data");v.TO=O;uC7(v.A9,v.TO);if(v.videoData.isLivePlayback){var Y=j2m(v.WD.Wd,v.videoData.videoId)||v.loader&&!isNaN(v.loader.HW);Y=v.V("html5_onesie_live")&&Y;qQ(v)||v.videoData.pj>0&&!b8(v.videoData)||Y||v.seekTo(v.gK(),{Vg:"videoplayer_playbackData",seekSource:18})}if(v.videoData.G.Y){if(TMi(v.videoData)){v.V("html5_sabr_report_missing_url_as_error_terminal")?v.g4("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", TB({missabrurl:1})):v.handleError(new lJ("fmt.missing",{missabrurl:"1"},2));return}v.loader?g.Br(Error("Duplicated Loader")):(Y=g.Vq(v.Yg.experiments,"html5_onesie_defer_content_loader_ms"))&&v.QP()&&j2m(v.WD.Wd,v.videoData.Ix)?g.fS(function(){v.vW()||v.loader||WgQ(v)},Y):WgQ(v)}else!v.videoData.G.Y&&Bj(v.videoData)&&v.N_(new SO(v.videoData.videoId||"",4)); v.di();c0c(O).then(function(){var S={};v.ut(S);v.Yg.XL()&&v.V("html5_log_media_perf_info")&&v.G0("av1Info",S);De(v)})}}; doc=function(v){v.vW();v.logger.debug("try finish readying playback");if(v.X2.finished)v.logger.debug("already finished readying");else if(v.Se.finished)if(g.G(v.playerState,128))v.logger.debug("cannot finish readying because of error");else if(v.Tx.length)v.logger.debug(function(){return"cannot finish readying because of pending preroll: "+v.Tx}); else if(v.q7.started||N8m(v.q7),v.a4())v.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{v.loader&&(v.LR=ER7(v.loader.timing));v.X2.finished||(v.X2.finished=!0);var O=v.V("html5_onesie_live")&&v.loader&&!isNaN(v.loader.HW);!v.videoData.isLivePlayback||v.videoData.pj>0&&!b8(v.videoData)||O||qQ(v)||(v.logger.debug("seek to head for live"),v.seekTo(Infinity,{Vg:"videoplayer_readying",seekSource:18}),v.isBackground()&&(v.bC=!0));B8$(v.Kj());v.logger.debug("finished readying playback"); v.publish("playbackready");PT("pl_c",v.Zg.timerName)||(v.Zg.tick("pl_c"),i1("pl_c",void 0,"video_to_ad"));PT("pbr",v.Zg.timerName)||(v.Zg.tick("pbr"),i1("pbr",void 0,"video_to_ad"))}else v.logger.debug("playback data not loaded")}; Jq=function(v,O){v.fM&&z71(v);v.fM=new g.dh(O*1E3,0x7ffffffffffff);v.fM.namespace="endcr";v.addCueRange(v.fM)}; z71=function(v){v.removeCueRange(v.fM);v.fM=null}; s2E=function(v,O,Y,S,d){var r=v.Kj(d),b=v.videoData;b.U=Y;var z=g.dt(v);Y=new zSQ(b,Y,O,z?z.itag:"",S);v.Yg.experiments.T0("html5_refactor_sabr_video_format_selection_logging")?(Y.videoId=d,v.ew=Y):r.qoe&&mJc(r.qoe,Y);d=v.T8;d.U=0;d.Y=0;v.publish("internalvideoformatchange",b,O==="m")}; g.dt=function(v){var O=rt(v);return jZ(O)||!v.TO?null:g.gS(v.TO.Y.videoInfos,function(Y){return O.B(Y)})}; rt=function(v){if(v.TO){var O=v.T8;var Y=v.TO;v=v.DR();var S=MTl(O);if(jZ(S)){if(S=skE(O,Y).compose($gi(O,Y)).compose(UgQ(O,Y)).compose(pud(O,Y.videoData)).compose(T7c(O,Y.videoData,Y)).compose(xgm(O,Y)).compose(A0d(O,Y)),jZ(v)||O.V("html5_apply_pbr_cap_for_drm"))S=S.compose(f17(O,Y))}else O.V("html5_perf_cap_override_sticky")&&(S=S.compose(xgm(O,Y))),O.V("html5_ustreamer_cap_override_sticky")&&(S=S.compose(f17(O,Y)));S=S.compose(A0d(O,Y));O=Y.videoData.TM.compose(S).compose(Y.videoData.z5).compose(v)}else O= Xu;return O}; XOc=function(v){var O=v.T8;v=v.videoData;var Y=pud(O,v);O.V("html5_disable_client_autonav_cap_for_onesie")||Y.compose(T7c(O,v));return Y}; De=function(v){if(v.videoData.G&&v.videoData.G.Y){var O=rt(v);v.loader&&adJ(v.loader,O)}}; ghm=function(v){var O;return!!(v.V("html5_native_audio_track_switching")&&g.ch&&((O=v.videoData.U)==null?0:Oo(O)))}; MKd=function(v){if(!ghm(v))return!1;var O;v=(O=v.mediaElement)==null?void 0:O.audioTracks();return!!(v&&v.length>1)}; AMl=function(v){var O=VKF(v);if(O)return v.videoData.getAvailableAudioTracks().find(function(Y){return Y.Dg.getName()===O})}; VKF=function(v){var O;if(v=(O=v.mediaElement)==null?void 0:O.audioTracks())for(O=0;O0&&(O.Lo=S.Ma));O.D9=S.Qc;O.vP=QM(Y,{},S.G||void 0,vj(S));O.xg=NC(S)&&g.qB(Y);Ol(S)&&(O.II=!0,Y.V("html5_sabr_report_partial_segment_estimated_duration")&&(O.s3=!0),O.Y=!0,O.cA=Y.V("html5_sabr_enable_live_clock_offset"), O.Fk=Y.V("html5_disable_client_resume_policy_for_sabr"),O.L4=Y.V("html5_trigger_loader_when_idle_network"),O.Af=Y.V("html5_sabr_parse_live_metadata_playback_boundaries"),O.wB=Y.V("html5_enable_platform_backpressure_with_sabr"),O.g6=Y.V("html5_consume_onesie_next_request_policy_for_sabr"),O.jy=Y.V("html5_sabr_report_next_ad_break_time"),O.Nw=Y.V("html5_log_high_res_buffer_timeline")&&Y.XL(),O.yI=Y.V("html5_remove_stuck_slices_beyond_max_buffer_limits"),O.CT=Y.V("html5_gapless_sabr_btl_last_slice")&& HO(S),O.Oj=Y.V("html5_reset_last_appended_slice_on_seek")&&HO(S),b8(S)?(O.PK=!0,O.RU=Y.V("html5_estimate_partial_segment_duration"),O.vu=Y.V("html5_disable_variability_tracker_for_live"),O.Eg=Y.V("html5_sabr_use_accurate_slice_info_params"),Y.V("html5_simplified_backup_timeout_sabr_live")&&(O.dW=!0,O.w4=O.Q8)):O.rR=Y.V("html5_probe_request_on_sabr_request_progress"),O.f$=Y.V("html5_serve_start_seconds_seek_for_post_live_sabr"),O.N2=Y.V("html5_flush_index_on_updated_timestamp_offset"),O.j=Ol(S),O.nP= Y.V("html5_ignore_partial_segment_from_live_readahead"),Y.V("html5_include_partial_segment_for_jumbo_ll")&&oO(S)&&(O.nP=!1),O.WO=Y.V("html5_use_buffer_health_for_readahead"),O.S9=Y.V("html5_use_non_active_broadcast_for_post_live"),O.N3=Y.V("html5_use_centralized_player_time"),O.M7=Y.V("html5_consume_onesie_sabr_seek"),O.Ug=Y.V("html5_enable_sabr_seek_loader_refactor"),O.AZ=Y.V("html5_update_segment_start_time_from_media_header"),S.enableServerStitchedDai&&(O.G=!0,O.Qs=Y.V("html5_reset_server_stitch_state_for_non_sabr_seek"), O.TK=Y.V("html5_remove_ssdai_append_pause")&&!S.lM(),O.q8=Y.V("html5_ssdai_log_ssevt_in_loader")),O.o9=Y.XL()||S.lM());O.Z=O.Y&&Y.V("html5_sabr_live");O.w2=g.xrn(S);CA(Y.Z,y5.BITRATE)&&(O.b3=NaN);if(z=g.Vq(Y.experiments,"html5_request_size_max_kb"))O.AK=z*1024;Y.Z.G?O.PP="; "+y5.EXPERIMENTAL.name+"=allowed":Y.V("html5_enable_cobalt_tunnel_mode")&&(O.PP="; tunnelmode=true");z=S.serverPlaybackStartConfig;(z==null?0:z.enable)&&(z==null?0:z.playbackStartPolicy)&&(O.N7=!0,Qz(O,z.playbackStartPolicy,2)); z=fa3(v);v.Q2.removeAll();a:{Y=v.WD.Wd;if(S=v.videoData.videoId)if(d=Y.Y.get(S)){Y.Y.remove(S);Y=d;break a}Y=void 0}v.loader=new g.nF(v,v.Yg.schedule,O,v.videoData.Y,v.videoData.G,rt(v),z,v.videoData.enableServerStitchedDai,Y,v.videoData.j);O=v.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&v.videoData.isLivePlayback&&v.QP()?!0:v.Q3&&g.lx(v.Yg)&&v.videoData.isLivePlayback;v.loader.initialize(v.getCurrentTime(),rt(v),O);v.videoData.probeUrl&&(v.loader.Eg=v.videoData.probeUrl);if(v.Tx.length|| v.Q3)v.videoData.cotn||b6(v,!1);yAJ(v.A9,v.loader);v.f_&&(G3i(v.loader,new g.Pu(v.f_)),v.G0("sdai",{sdl:1}));g.wX(v.videoData)&&(v=v.loader,v.policy.y5=v.policy.Z2)}; Y6=function(v){v.loader&&(v.loader.dispose(),v.loader=null,yAJ(v.A9,null));v.eE()?$on(v):v.jG()}; $on=function(v){if(v.Du)if(v.logger.debug("release media source"),v.kK(),v.Du.Z)try{v.Yg.XL()&&v.G0("rms",{l:"vprms",sr:v.eE(),rs:NO(v.Du)});v.Du.clear();var O;(O=v.mediaElement)!=null&&(O.U=v.Du);v.Du=null}catch(Y){O=new g.iK("Error while clearing Media Source in VideoPlayer: "+Y.name+", "+Y.message),O=hL(O),v.handleError(O),v.jG()}else v.jG()}; kvg=function(v,O){O=O===void 0?!1:O;if(v.Du)return v.Du.G;v.logger.debug("update media source");a:{O=O===void 0?!1:O;try{g.Pf()&&v.videoData.F6()&&XKQ(v.mediaElement);var Y=v.mediaElement.rW(v.BA(),v.ZG())}catch(d){if(SbJ(v.kp,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);v.g4("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}v.TT(Y,!1,!1,O)}var S;return((S=v.rW())==null?void 0:S.G)||null}; Uo$=function(v,O){O=O===void 0?!1:O;if(v.loader){v.videoData.enableServerStitchedDai&&OUw(v.loader);var Y=v.getCurrentTime()-v.En();v.loader.seek(Y,{Cz:O}).bv(function(){})}else WgQ(v)}; uli=function(v,O,Y,S){Y=Y===void 0?!1:Y;S=S===void 0?!1:S;if(v.Du&&(!O||v.Du===O)){v.logger.debug("media source opened");var d=v.getDuration();!d&&b8(v.videoData)&&(d=25200);if(v.Du.isView){var r=d;v.logger.debug(function(){return"Set media source duration to "+r+", video duration "+d}); r>v.Du.getDuration()&&cMJ(v,r)}else cMJ(v,d);u8c(v.loader,v.Du,Y,S);v.publish("mediasourceattached")}}; cMJ=function(v,O){if(v.Du){v.Du.OJ(O);var Y;(Y=v.loader)!=null&&Y.policy.N3&&(Y.C=O)}}; pjm=function(v,O){s2E(v,O.reason,O.Y.info,O.token,O.videoId)}; OA=function(v,O){v.publish("internalvideodatachange",O===void 0?"dataupdated":O,v.videoData)}; Cn$=function(v){for(var O=g.y("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),Y=O.next();!Y.done;Y=O.next())v.cH.S(v.mediaElement,Y.value,v.yk,v);v.Yg.CU&&v.mediaElement.Dh()&&(v.cH.S(v.mediaElement,"webkitplaybacktargetavailabilitychanged",v.Eg0,v),v.cH.S(v.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",v.T8O,v))}; aal=function(v){g.Uq(v.Kw);yM7(v)||(v.Kw=g.$c(function(){return yM7(v)},100))}; yM7=function(v){var O=v.mediaElement;O&&v.bV&&!v.videoData.FO&&!PT("vfp",v.Zg.timerName)&&O.h3()>=2&&!O.isEnded()&&V6(O.s_())&&v.Zg.tick("vfp");return(O=v.mediaElement)&&!v.videoData.FO&&O.getDuration()>0&&(O.isPaused()&&O.h3()>=2&&V6(O.s_())&&(PT("pbp",v.Zg.timerName)||v.Zg.tick("pbp"),!v.videoData.e6||v.cU||O.isSeeking()||(v.cU=!0,v.publish("onPlaybackPauseAtStart"))),O=O.getCurrentTime(),hq(v.sf,O))?(v.dl(),!0):!1}; pwi=function(v){v.Kj().wT();if(rX(v.videoData)&&Date.now()>v.UO+6283){if(!(!v.isAtLiveHead()||v.videoData.Y&&CT(v.videoData.Y))){var O=v.Kj();if(O.qoe){O=O.qoe;var Y=O.provider.Og.MQ(),S=g.KF(O.provider);HFm(O,S,Y);Y=Y.G;isNaN(Y)||g.Wx(O,S,"e2el",[Y.toFixed(3)])}}v.V("html5_alc_live_log_rawlat")?(O=v.videoData,O=g.p0(O.D())?!0:g.J7(O.D())?O.drmProduct==="6":!1):O=g.p0(v.Yg);O&&v.G0("rawlat",{l:iG(v.uC,"rawlivelatency").toFixed(3)});v.UO=Date.now()}v.videoData.U&&Oo(v.videoData.U)&&(O=v.zI())&&O.videoHeight!== v.Ru&&(v.Ru=O.videoHeight,s2E(v,"a",xo7(v,v.videoData.Eg)))}; xo7=function(v,O){if(O.Y.video.quality==="auto"&&Oo(O.getInfo())&&v.videoData.w2)for(var Y=g.y(v.videoData.w2),S=Y.next();!S.done;S=Y.next())if(S=S.value,S.getHeight()===v.Ru&&S.Y.video.quality!=="auto")return S.getInfo();return O.getInfo()}; vhc=function(v){if(!rX(v.videoData))return NaN;var O=0;v.loader&&v.videoData.Y&&(O=b8(v.videoData)?v.loader.Gu.In()||0:v.videoData.Y.N3);return(0,g.J)()/1E3-v.Hq()-O}; la7=function(v){v.mediaElement&&v.mediaElement.YW()&&(v.ZN=(0,g.J)());v.Yg.V8?g.fS(function(){Txn(v)},0):Txn(v)}; Txn=function(v){var O;if((O=v.Du)==null||!O.x8()){if(v.mediaElement)try{v.ac=v.mediaElement.playVideo()}catch(S){S3(v,"err."+S)}if(v.ac){var Y=v.ac;Y.then(void 0,function(S){v.logger.debug(function(){return"playMediaElement failed: "+S}); if(!g.G(v.playerState,4)&&!g.G(v.playerState,256)&&v.ac===Y)if(S&&S.name==="AbortError"&&S.message&&S.message.includes("load"))v.logger.debug(function(){return"ignore play media element failure: "+S.message}); else{var d="promise";S&&S.name&&(d+=";m."+S.name);S3(v,d);v.QO=!0;v.videoData.uO=!0}})}}}; S3=function(v,O){g.G(v.playerState,128)||(v.HD(gC(v.playerState,1028,9)),v.G0("dompaused",{r:O}),v.publish("onAutoplayBlocked"))}; Hx=function(v,O){O=O===void 0?!1:O;if(!v.mediaElement||!v.videoData.G)return!1;var Y=O;Y=Y===void 0?!1:Y;var S=null;var d;if((d=v.videoData.G)==null?0:d.Y){S=kvg(v,Y);var r;(r=v.loader)==null||r.resume()}else Y6(v),v.videoData.Eg&&(S=v.videoData.Eg.QE());d=v.mediaElement.DB();Y=!1;d&&d.equals(S)||(Fgc(v,S),Y=!0);g.G(v.playerState,2)||(S=v.A9,O=O===void 0?!1:O,S.Z||!(S.G>0)||S.mediaElement&&S.mediaElement.getCurrentTime()>0||(O={Vg:"seektimeline_resumeTime",Cz:O},S.videoData.FO||(O.seekSource=15), S.seekTo(S.G,O)));a:{O=Y;if(Ol(v.videoData)){if(!v.videoData.aS())break a}else if(!g.MJ(v.videoData))break a;if(v.mediaElement)if((S=v.videoData.Z)&&v.mediaElement.Dh()){d=v.mediaElement.dR();if(v.OM)if(d!==v.OM.element)ob(v);else if(O&&S.flavor==="fairplay"&&!Gn())ob(v);else break a;if(v.V("html5_report_error_for_unsupported_tvos_widevine")&&Gn()&&S.flavor==="widevine")v.g4("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{v.OM=new ITn(d,v.videoData,v.Yg);v.OM.subscribe("licenseerror", v.Jj,v);v.OM.subscribe("qualitychange",v.lg0,v);v.OM.subscribe("heartbeatparams",v.AG,v);v.OM.subscribe("keystatuseschange",v.xo,v);v.OM.subscribe("ctmp",v.G0,v);O=g.y(v.Q2.keys);for(S=O.next();!S.done;S=O.next())S=v.Q2.get(S.value),v.OM.Ig(S);v.V("html5_eme_loader_sync")||v.Q2.removeAll()}}else v.g4("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return Y}; Fgc=function(v,O){v.Zg.tick("vta");i1("vta",void 0,"video_to_ad");v.getCurrentTime()>0&&Tt3(v.A9,v.getCurrentTime());v.mediaElement.activate(O);v.Du&&SN(4);!v.videoData.FO&&v.playerState.isOrWillBePlaying()&&v.Fn.start();if(ghm(v)){var Y;if(O=(Y=v.mediaElement)==null?void 0:Y.audioTracks())O.onchange=function(){v.publish("internalaudioformatchange",v.videoData,!0)}}}; ob=function(v){v.OM&&(v.OM.dispose(),v.OM=null)}; h7Q=function(v){var O=O===void 0?!1:O;v.logger.debug("reattachVideoSource");v.mediaElement&&(v.Du?(ob(v),v.jG(),kvg(v,O)):(v.videoData.Eg&&v.videoData.Eg.GC(),v.mediaElement.stopVideo()),v.playVideo())}; R71=function(v,O){v.Yg.V("html5_log_rebuffer_reason")&&(O={r:O,lact:lj()},v.mediaElement&&(O.bh=dC(v.mediaElement)),v.G0("bufreason",O))}; e7c=function(v,O){if(v.Yg.XL()&&v.mediaElement){var Y=v.mediaElement.Yu();Y.omt=(v.mediaElement.getCurrentTime()+v.En()).toFixed(3);Y.ps=v.playerState.state.toString(16);Y.rt=(p6(v.Kj())*1E3).toFixed();Y.e=O;v.Ev[v.QZ++%5]=Y}try{if(O==="timeupdate"||O==="progress")return}catch(S){}v.logger.debug(function(){return"video element event "+O})}; Ehg=function(v){if(v.Yg.XL()){v.Ev.sort(function(S,d){return+S.rt-+d.rt}); for(var O=g.y(v.Ev),Y=O.next();!Y.done;Y=O.next())Y=Y.value,v.G0("vpe",Object.assign({t:Y.rt},Y));v.Ev=[];v.QZ=0}}; Q23=function(v){if(g.Jy("cobalt")&&g.Jy("nintendo switch")){var O=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;v.G0("nxdock",{d:O})}}; b6=function(v,O){var Y;(Y=v.loader)==null||J0(Y,O)}; rMJ=function(v){qJ(v.videoData,"html5_set_debugging_opt_in")&&(v=g.qL(),g.ny(0,183)||(Ky(183,!0),v.save()))}; YT1=function(v,O){v.WD.JF()||(v.G0("sgap",{f:O}),v.WD.clearQueue(!1,O==="pe"))}; qQ=function(v){return v.V("html5_disable_video_player_initiated_seeks")&&Ol(v.videoData)}; LgE=function(v){J4.call(this,v);var O=this;this.events=new g.Z6(v);g.w(this,this.events);v2(this.api,"isLifaAdPlaying",function(){return O.api.isLifaAdPlaying()}); this.events.S(v,"serverstitchedvideochange",function(){var Y;(Y=O.api.getVideoData())!=null&&Y.lM()&&(O.api.isLifaAdPlaying()?(O.playbackRate=O.api.getPlaybackRate(),O.api.setPlaybackRate(1)):O.api.setPlaybackRate(O.playbackRate))}); this.playbackRate=1}; Bx1=function(v){J4.call(this,v);var O=this;this.events=new g.Z6(v);g.w(this,this.events);v2(this.api,"seekToChapterWithAnimation",function(Y){O.seekToChapterWithAnimation(Y)}); v2(this.api,"seekToTimeWithAnimation",function(Y,S){O.seekToTimeWithAnimation(Y,S)}); v2(this.api,"renderChapterSeekingAnimation",function(Y,S,d){O.api.renderChapterSeekingAnimation(Y,S,d)}); v2(this.api,"setMacroMarkers",function(Y){O.setMacroMarkers(v,Y)}); v2(this.api,"changeMarkerVisibility",function(Y,S,d){O.changeMarkerVisibility(Y,S,d)}); v2(this.api,"isSameMarkerTypeVisible",function(Y){return O.isSameMarkerTypeVisible(Y)})}; Zpn=function(v,O,Y){var S=v.api.getCurrentTime()*1E30&&d>0&&(Y.width+=d,g.ym(O.element,"width",Y.width+"px")));v.size=Y}}; g.yb=function(v,O){var Y=v.Y[v.Y.length-1];Y!==O&&(v.Y.push(O),zQ7(v,Y,O))}; g.ab=function(v){if(!(v.Y.length<=1)){var O=v.Y.pop(),Y=v.Y[0];v.Y=[Y];zQ7(v,O,Y,!0)}}; zQ7=function(v,O,Y,S){sBl(v);O&&(O.unsubscribe("size-change",v.FV,v),O.unsubscribe("back",v.MY,v));Y.subscribe("size-change",v.FV,v);Y.subscribe("back",v.MY,v);if(v.t$){g.on(Y.element,S?"ytp-panel-animate-back":"ytp-panel-animate-forward");Y.C1(v.element);Y.focus();v.element.scrollLeft=0;v.element.scrollTop=0;var d=v.size;Wow(v);g.Ev(v.element,d);v.C=new g.mX(function(){g5w(v,O,Y,S)},20,v); v.C.start()}else Y.C1(v.element),O&&O.detach()}; g5w=function(v,O,Y,S){v.C.dispose();v.C=null;g.on(v.element,"ytp-popup-animating");S?(g.on(O.element,"ytp-panel-animate-forward"),g.WI(Y.element,"ytp-panel-animate-back")):(g.on(O.element,"ytp-panel-animate-back"),g.WI(Y.element,"ytp-panel-animate-forward"));g.Ev(v.element,v.size);v.L=new g.mX(function(){g.WI(v.element,"ytp-popup-animating");O.detach();g.zf(O.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);v.L.dispose();v.L=null},250,v); v.L.start()}; sBl=function(v){v.C&&g.NA(v.C);v.L&&g.NA(v.L)}; x6=function(v){g.Cq.call(this,v,"ytp-shopping-product-menu");this.eT=new g.cR(this.N);g.w(this,this.eT);this.hide();g.yb(this,this.eT);g.TW(this.N,this.element,4)}; Vo7=function(v,O,Y){var S,d=O==null?void 0:(S=O.text)==null?void 0:S.simpleText;d&&(Y=Mog(v,Y,d,O==null?void 0:O.icon,O==null?void 0:O.secondaryIcon),O.navigationEndpoint&&Y.listen("click",function(){v.N.PW("innertubeCommand",O.navigationEndpoint);v.hide()},v))}; Ahd=function(v,O,Y){var S,d=O==null?void 0:(S=O.text)==null?void 0:S.simpleText;d&&Mog(v,Y,d,O==null?void 0:O.icon).listen("click",function(){var r;(O==null?void 0:(r=O.icon)==null?void 0:r.iconType)==="HIDE"?v.N.publish("featuredproductdismissed"):O.serviceEndpoint&&v.N.PW("innertubeCommand",O.serviceEndpoint);v.hide()},v)}; Mog=function(v,O,Y,S,d){O=new g.wB(g.Ih({},[],!1,!!d),O,Y);d&&O.updateValue("secondaryIcon",ftm(d));O.setIcon(ftm(S));g.w(v,O);v.eT.L_(O,!0);return O}; ftm=function(v){if(!v)return null;switch(v.iconType){case "ACCOUNT_CIRCLE":return{J:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{J:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{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 ykF();case "HIDE":return{J:"svg",T:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"g",K:[{J:"path",T:{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 h6()}}; pq=function(v){k6.call(this,v,!1,!0);this.isCounterfactual=this.U=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.X=!0;this.overflowButton=new g.K({J:"button",hK:["ytp-featured-product-overflow-icon","ytp-button"],T:{"aria-haspopup":"true"}});this.overflowButton.hide();g.w(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.K({J:"img",W:"ytp-suggested-action-badge-img",T:{src:"{{url}}"}}); this.thumbnailImage.hide();g.w(this,this.thumbnailImage);this.thumbnailIcon=new g.K({J:"div",W:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.w(this,this.thumbnailIcon);this.banner=new g.K({J:"a",W:"ytp-suggested-action-container",K:[this.thumbnailImage,this.thumbnailIcon,{J:"div",W:"ytp-suggested-action-details",K:[{J:"text",W:"ytp-suggested-action-title",M3:"{{title}}"},{J:"text",W:"ytp-suggested-action-subtitle",M3:"{{subtitle}}"},{J:"text",W:"ytp-suggested-action-metadata-text", M3:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.w(this,this.banner);this.banner.C1(this.G.element);this.S(this.N,"videodatachange",this.onVideoDataChange);this.S(this.N,g.bI("suggested_action_view_model"),this.kec);this.S(this.N,g.o1("suggested_action_view_model"),this.A$3);this.S(this.overflowButton.element,"click",this.I3);this.S(v,"featuredproductdismissed",this.l1);this.N.createServerVe(this.banner.element,this.banner,!0)}; $aF=function(v){v.isInitialized&&(v.enabled=v.isVisible,v.Ug=v.isVisible,$6(v),v.OQ(),v.thumbnailImage.t9(v.isVisible),v.shouldHideDismissButton||v.dismissButton.t9(v.isVisible),v.shouldShowOverflowButton&&v.overflowButton.t9(v.isVisible))}; TZ=function(){pq.apply(this,arguments)}; k93=function(v){J4.call(this,v);this.Y=new TZ(this.api);g.w(this,this.Y);g.TW(this.api,this.Y.element,4)}; l6=function(v){J4.call(this,v);var O=this;this.U="";this.Y=!0;this.G=this.api.V("html5_enable_audio_track_stickiness_phase_two");var Y=new g.Z6(v);g.w(this,Y);Y.S(v,"internalaudioformatchange",function(S,d){Uaw(O,S,d)}); Y.S(v,"videoplayerreset",function(){ch3(O)}); Y.S(v,"videodatachange",function(S,d){O.onVideoDataChange(S,d)})}; Uaw=function(v,O,Y){if(Y){var S="";if(uxi(v,O)){S=O;v.G||(v.U=O);if(Y=v.api.getVideoData(void 0,!0))Y.c7=O;v.api.D().On=O}if(v.G&&S&&COd(v,S)){bsn(v.api,v.U||S);var d;fs(O3(v.api.D(),(d=v.api.getVideoData())==null?void 0:g.ez(d)),function(r){yh3(v,S,r)})}}}; ch3=function(v){if(v.U)atn(v);else{var O;if(v.G&&((O=Pc())==null?0:O.size)){var Y;fs(O3(v.api.D(),(Y=v.api.getVideoData())==null?void 0:g.ez(Y)),function(S){if((S=xa3(S))&&COd(v,S)){var d=v.api.getVideoData(void 0,!0);d&&(d.c7=S);v.api.D().On=S}})}}}; atn=function(v){var O=v.api.getVideoData(void 0,!0);O&&(O.c7=v.U)}; yh3=function(v,O,Y){xa3(Y)!==O&&(pim([{settingItemId:FC(Y),settingOptionValue:{stringValue:O}}]),fs(v.Rm(),function(S){MWE(S,FC(Y),{stringValue:O})}))}; TP1=function(v,O){$i(fs(fs(v.Rm(),function(Y){return sml(Y,[FC(O)])}),function(Y){if(Y){Y=g.y(Y); for(var S=Y.next();!S.done;S=Y.next()){var d=S.value;S=d.key;d=d.value;S&&d&&(pim([{settingItemId:S,settingOptionValue:d}]),ch3(v))}}}),function(){v.Y=!0})}; uxi=function(v,O){v=v.api.getAvailableAudioTracks();v=g.y(v);for(var Y=v.next();!Y.done;Y=v.next())if(Y=Y.value,Y.getLanguageInfo().getId()===O)return Y;return null}; xa3=function(v){v=FC(v);var O=Pc();v=O?O.get(v):void 0;return v&&v.stringValue?v.stringValue:""}; FC=function(v){var O=(484).toString();v&&(O=(483).toString());return O}; COd=function(v,O){var Y;return O.split(".")[0]!==""&&((Y=v.api.getVideoData())==null?void 0:!Lh(Y))}; pim=function(v){var O=Pc();O||(O=new Map);v=g.y(v);for(var Y=v.next();!Y.done;Y=v.next())Y=Y.value,O.set(Y.settingItemId,Y.settingOptionValue);O=JSON.stringify(Object.fromEntries(O));g.QD("yt-player-user-settings",O,2592E3)}; g.hA=function(v,O,Y,S,d,r,b){g.wB.call(this,g.Ih({"aria-haspopup":"true"}),O,v);this.HT=S;this.X=!1;this.G=null;this.options={};this.U=new g.cR(Y,void 0,v,d,r,b);g.w(this,this.U);this.listen("keydown",this.jM);this.listen("click",this.open)}; ltc=function(v){if(v.G){var O=v.options[v.G];O.element.getAttribute("aria-checked");O.element.setAttribute("aria-checked","false");v.G=null}}; Fol=function(v,O){g.hA.call(this,"Sleep timer",g.SI.SLEEP_TIMER,v,O);this.N=v;this.j={};this.C=this.To("Off");this.L=this.Y="";v.V("web_settings_menu_icons")&&(O=v.V("delhi_modern_web_player_icons")?{J:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z", fill:"white"}}]}:{J:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{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.setIcon(O)); this.B=new g.K({J:"div",hK:["ytp-menuitem-label-wrapper"],K:[{J:"div",M3:"End of video"},{J:"div",hK:["ytp-menuitem-sublabel"],M3:"{{content}}"}]});g.w(this,this.B);this.listen("click",this.onClick);this.S(v,"videodatachange",this.onVideoDataChange);this.S(v,"presentingplayerstatechange",this.q3);this.S(v,"settingsMenuVisibilityChanged",this.ZPx);v.createClientVe(this.element,this,218889);this.q3();this.N.PW("onSleepTimerFeatureAvailable")}; hQl=function(v){var O="Off 10 15 20 30 45 60".split(" "),Y;((Y=v.N.getVideoData())==null?0:Y.isLivePlayback)||O.push("End of video");Y=v.N.getPlaylist();var S;Y&&((S=Y.listId)==null?void 0:S.type)!=="RD"&&O.push("End of playlist");v.Vc(g.DQ(O,v.To));v.j=g.B0(O,v.To,v);O=v.To("End of video");v.options[O]&&g.XM(v.options[O],v.B)}; RQ1=function(v,O){var Y=v.j[O],S=Y==="End of video"||Y==="End of playlist";Y==="Off"&&(v.Y="");v.N.getPlayerState()!==0&&v.N.getPlayerState()!==5||!S?(v.C=O,g.hA.prototype.QH.call(v,O),v.tF(O),v.N.PW("onSleepTimerSettingsChanged",Y)):v.N.PW("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; Rb=function(v){J4.call(this,v);var O=this;v.addEventListener("settingsMenuInitialized",function(){O.menuItem||(O.menuItem=new Fol(O.api,O.api.Ds()),g.w(O,O.menuItem))}); v.addEventListener("openSettingsMenuItem",function(Y){if(Y==="menu_item_sleep_timer"){if(!O.menuItem){var S;(S=O.api.Ds())==null||S.RI()}O.menuItem.open()}}); v2(v,"resetSleepTimerMenuSettings",function(){O.resetSleepTimerMenuSettings()}); v2(v,"setSleepTimerTimeLeft",function(Y){O.setSleepTimerTimeLeft(Y)}); v2(v,"setVideoTimeLeft",function(Y){O.setVideoTimeLeft(Y)})}; eQd=function(v){J4.call(this,v);var O=this;this.events=new g.Z6(v);g.w(this,this.events);this.events.S(v,"onSnackbarMessage",function(Y){switch(Y){case 1:Y=O.api.getPlayerStateObject(),Y.isBuffering()&&g.G(Y,8)&&g.G(Y,16)&&O.api.PW("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.EA=function(v,O,Y,S,d){O=O===void 0?!1:O;S=S===void 0?!1:S;d=d===void 0?!1:d;g.MU.call(this);this.j=d;this.L=!1;this.B=new lK(this);this.Z=this.C=null;this.G=this.U=!1;g.w(this,this.B);this.target=v;this.Y=O;this.X=Y||v;this.L=S;O&&(g.PE&&this.target.setAttribute("draggable","true"),d||(this.target.style.touchAction="none"));e3(this)}; Qb=function(v){g.hi(v.B,!v.Y)}; e3=function(v){v.Z=null;v.C=null;v.S(Lq("over"),v.ws);v.S("touchstart",v.Me);v.Y&&v.S(Lq("down"),v.qgg)}; E51=function(v,O){for(var Y=0;Yd.start&&Y>=5;a+=T}k=a.substr(0,4)+" "+a.substr(4,4)+" "+a.substr(8,4)+" "+(a.substr(12,4)+" "+a.substr(16,4))}else k="";b={video_id_and_cpn:String(O.videoId)+" / "+k,codecs:"",dims_and_frames:"",bandwidth_kbps:b.toFixed(0)+" Kbps",buffer_health_seconds:M.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:V?"":"display:none",drm:V,debug_info:Y,extra_debug_info:"",bandwidth_style:f,network_activity_style:f,network_activity_bytes:z.toFixed(0)+" KB",shader_info:A,shader_info_style:A?"":"display:none",playback_categories:""};z=S.clientWidth+"x"+S.clientHeight+(d>1?"*"+d.toFixed(2):"");M="-";r.totalVideoFrames&&(M=(r.droppedVideoFrames||0)+" dropped of "+r.totalVideoFrames);b.dims_and_frames=z+" / "+M;v=v.getVolume();z=akF(O);var Q;if((Q=O.B)==null?0:Q.audio.U)Q= "VB";else{var L;Q=((L=O.B)==null?0:L.audio.Y)?"DRC":Math.round(v*z)+"%"}L=Math.round(v)+"% / "+Q;Q=O.aI.toFixed(1);isFinite(Number(Q))&&(L+=" (content loudness "+Q+"dB)");b.volume=L;b.resolution=S.videoWidth+"x"+S.videoHeight;if(S=O.U){if(L=S.video)Q=L.fps,Q>1&&(b.resolution+="@"+Q),(Q=r.zw)&&Q.video&&(b.resolution+=" / "+Q.video.width+"x"+Q.video.height,Q.video.fps>1&&(b.resolution+="@"+Q.video.fps)),b.codecs=wiQ(S),!O.B||S.audio&&S.video?S.zX&&(b.codecs+=" / "+S.zX+"A"):b.codecs+=" / "+wiQ(O.B), L.Y||L.primaries?(Q=L.Y||"unknown",Q==="smpte2084"?Q+=" (PQ)":Q==="arib-std-b67"&&(Q+=" (HLG)"),b.color=Q+" / "+(L.primaries||"unknown"),b.color_style=""):b.color_style="display:none";if(S.debugInfo)for(b.fmt_debug_info="",S=g.y(S.debugInfo),L=S.next();!L.done;L=S.next())L=L.value,b.fmt_debug_info+=L.label+":"+L.text+" ";b.fmt_debug_info_style=b.fmt_debug_info&&b.fmt_debug_info.length>0?"":"display:none"}S=O.isLivePlayback;L=O.XH;b.live_mode_style=S||L?"":"display:none";b.live_latency_style=S?"": "display:none";if(L)b.live_mode="Post-Live"+(b8(O)?" Manifestless":"");else if(S){L=r.NO;b.live_latency_secs=L.toFixed(2)+"s";S=b8(O)?"Manifestless, ":"";O.tK&&(S+="Windowed, ");Q="Uncertain";if(L>=0&&L<120)if(O.latencyClass&&O.latencyClass!=="UNKNOWN")switch(O.latencyClass){case "NORMAL":Q="Optimized for Normal Latency";break;case "LOW":Q="Optimized for Low Latency";break;case "ULTRALOW":Q="Optimized for Ultra Low Latency";break;default:Q="Unknown Latency Setting"}else Q=O.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";S+=Q;(L=r.mJ)&&(S+=", seq "+L.sequence);b.live_mode=S}!r.isGapless||HO(O)&&r.JF||(b.playback_categories+="Gapless ");b.playback_categories_style=b.playback_categories?"":"display:none";b.bandwidth_samples=r.Jo;b.network_activity_samples=r.zz;b.live_latency_samples=r.gm;b.buffer_health_samples=r.pC;r=g.wX(O);if(O.cotn||r)b.cotn_and_local_media=(O.cotn?O.cotn:"null")+" / "+r;b.cotn_and_local_media_style=b.cotn_and_local_media?"":"display:none"; qJ(O,"web_player_release_debug")?(b.release_name=W[49],b.release_style=""):b.release_style="display:none";b.debug_info&&U.length>0&&b.debug_info.length+U.length<=60?b.debug_info+=" "+U:b.extra_debug_info=U;b.extra_debug_info_style=b.extra_debug_info&&b.extra_debug_info.length>0?"":"display:none";return b}; wiQ=function(v){var O=/codecs="([^"]*)"/.exec(v.mimeType);return O&&O[1]?O[1]+" ("+v.itag+")":v.itag}; nq=function(v,O,Y,S,d){g.K.call(this,{J:"div",W:"ytp-horizonchart"});this.L=O;this.sampleCount=Y;this.B=S;this.C=d;this.index=0;this.heightPx=-1;this.G=this.U=null;this.Y=Math.round(v/Y);this.element.style.width=this.Y*this.sampleCount+"px";this.element.style.height=this.L+"em"}; JA=function(v,O){if(v.heightPx===-1){var Y=null;try{Y=g.tc("CANVAS"),v.U=Y.getContext("2d")}catch(z){}if(v.U){var S=v.Y*v.sampleCount;v.G=Y;v.G.width=S;v.G.style.width=S+"px";v.element.appendChild(v.G)}else for(v.sampleCount=Math.floor(v.sampleCount/4),v.Y*=4,Y=0;Y1?2:1,v.G.height=v.heightPx*Y,v.G.style.height= v.heightPx+"px",v.U.scale(1,Y)));O=g.y(O);for(S=O.next();!S.done;S=O.next()){Y=v;var d=v.index,r=S.value;for(S=0;S+20&&g.Nn(O.G.element);S.classList.add("ytp-timely-actions-overlay");O.G.element.appendChild(S)}); g.w(this,this.G);g.TW(this.api,this.G.element,4)}; YYF=function(v){v.timelyActions&&(v.B=v.timelyActions.reduce(function(O,Y){if(Y.cueRangeId===void 0)return O;O[Y.cueRangeId]=0;return O},{}))}; ma=function(v,O){if(v.timelyActions){v=g.y(v.timelyActions);for(var Y=v.next();!Y.done;Y=v.next())if(Y=Y.value,Y.cueRangeId===O)return Y}}; SYE=function(v,O){if((v=ma(v,O))&&v.onCueRangeExit)return Im(v.onCueRangeExit)}; i6=function(v){if(v.Y!==void 0){var O=(O=ma(v,v.Y))&&O.onCueRangeEnter?Im(O.onCueRangeEnter):void 0;var Y=ma(v,v.Y);a:if(Y&&Y.additionalTrigger){var S=g.y(Y.additionalTrigger);for(var d=S.next();!d.done;d=S.next())if(d=d.value,d.type){var r=void 0,b=void 0;if((r=v.Ug[d.type])==null?0:r((b=d.args)!=null?b:{})){S=!0;break a}}S=!1}else S=!0;O&&S&&(v.api.PW("innertubeCommand",O),v.setTimeout(Y),v.B[v.Y]!==void 0&&v.B[v.Y]++,v.X=!0)}}; Hfl=function(v,O){return v.U===void 0?!1:O.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(O.seekLengthMilliseconds)===5E3?v.U===72:O.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(O.seekLengthMilliseconds)===1E4?v.U===74:O.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(O.seekLengthMilliseconds)===5E3?v.U===71:O.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(O.seekLengthMilliseconds)===1E4?v.U===73:!1}; NPQ=function(v){if(v=v.getWatchNextResponse()){var O,Y;v=(O=v.playerOverlays)==null?void 0:(Y=O.playerOverlayRenderer)==null?void 0:Y.timelyActionsOverlayViewModel;O=g.q(v,dhm);if(O!=null&&O.timelyActions)return O==null?void 0:O.timelyActions.map(function(S){return g.q(S,rGQ)}).filter(function(S){return!!S})}}; bjF=function(v){J4.call(this,v);var O=this;Ye(this.api,"getPlaybackRate",function(){return O.api.getPlaybackRate()}); Ye(this.api,"setPlaybackRate",function(Y){typeof Y==="number"&&O.api.setPlaybackRate(Y)})}; tA=function(v,O,Y,S){DE.call(this,"VOICE_BOOST",g.SI.pV);this.Y=!1;this.N=v;this.HT=v.Ds();this.B=O;this.G=Y;this.hasVoiceBoostAudioTrack=S;this.S(v,"videodatachange",this.U);this.setIcon(hVi());this.subscribe("select",this.C,this);this.U()}; D2=function(v){J4.call(this,v);var O=this;this.events=new g.Z6(v);g.w(this,this.events);this.events.S(v,"settingsMenuInitialized",function(){oyw(O)}); v2(this.api,"getVoiceBoostUserPreference",function(){return O.getVoiceBoostUserPreference()}); v2(this.api,"setVoiceBoostUserPreference",function(S){O.setVoiceBoostUserPreference(S)}); v2(this.api,"hasVoiceBoostAudioTrack",function(){return O.hasVoiceBoostAudioTrack()}); var Y;this.Y=(Y=mtl())!=null?Y:0;this.updateEnvironmentData()}; oyw=function(v){v.menuItem||(v.menuItem=new tA(v.api,function(O){v.setVoiceBoostUserPreference(O)},function(){return v.getVoiceBoostUserPreference()},function(){return v.hasVoiceBoostAudioTrack()}),g.w(v,v.menuItem))}; jqm=function(v){v=v.Sp();if(!v)return!1;v=g.rG(v).exp||"";return v.includes("xpv")||v.includes("xpe")}; WVF=function(v){v=g.y(g.HR(v,!0));for(var O=v.next();!O.done;O=v.next())if(jqm(O.value))return!0;return!1}; zAQ=function(v,O){v=g.y(g.HR(v,!0));for(var Y=v.next();!Y.done;Y=v.next())if(Y=Y.value,jqm(Y)){var S={potc:"1",pot:O};Y.url&&(Y.url=bF(Y.url,S))}}; sq1=function(v){return g.B(function(O){if(O.U==1)return g.cm(O,2),g.E(O,v,4);if(O.U!=2)return g.ai(O,0);g.Tc(O);g.UE(O)})}; vw=function(v){J4.call(this,v);var O=this;this.useLivingRoomPoToken=!1;this.Z=new g.Mf;this.Y=!1;this.Zg=null;this.X=!1;this.B=null;this.C=!1;var Y=v.D().getWebPlayerContextConfig();this.events=new g.Z6(v);g.w(this,this.events);this.events.S(v,"spsumpreject",function(S,d,r){O.C=d;S&&O.X&&!O.B&&(O.V("html5_generate_content_po_token")&&r?O.VD(r):O.V("html5_generate_session_po_token")&&gyJ(O));O.B||O.api.G0("stp",{s:+O.X,b:+O.C})}); this.events.S(v,"poTokenVideoBindingChange",function(S){O.VD(S)}); this.useLivingRoomPoToken=!(Y==null||!Y.useLivingRoomPoToken);v.addEventListener("csiinitialized",function(){O.Zg=v.pS();var S=(O.V("html5_generate_session_po_token")||O.V("html5_generate_content_po_token"))&&!O.useLivingRoomPoToken;try{if(O.V("html5_use_shared_owl_instance"))MPE(O);else if(S){O.Zg.cB("pot_isc");var d=g.Vq(O.api.D().experiments,"html5_webpo_kaios_defer_timeout_ms");d?(O.G=wA(),g.fS(function(){Nk(O)},d)):O.V("html5_webpo_idle_priority_job")?(O.G=wA(),g.NL(g.O8(),function(){Nk(O)})): Nk(O)}}catch(r){r instanceof Error&&g.Br(r)}}); v.addEventListener("trackListLoaded",this.xb.bind(this));v.NB(this)}; VP1=function(v){var O=HY(v.experiments,"html5_web_po_request_key");return O?O:g.lx(v)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; AGw=function(v){var O=new rdF,Y={},S=(Y["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",Y);return new UC(O,v,function(){return S})}; fNQ=function(v){return new cl(v)}; Oe=function(v,O){v.V("html5_webpo_bge_ctmp")&&v.api.G0(O,{hwpo:!!v.U,hwpor:v.Y})}; MPE=function(v){var O,Y;g.B(function(S){if(S.U==1)return Oe(v,"swpo_i"),v.G=wA(),Yh(v),g.E(S,bU(),2);if(S.U!=3)return O=S.Y,Oe(v,"swpo_co"),g.E(S,LZc(O),3);Y=S.Y;v.V("html5_web_po_token_disable_caching")||Y.N0(150);v.U=Y;Oe(v,"swpo_cc");sq1(Y.OL()).then(function(){v.Y=!0;v.Z.resolve();Oe(v,"swpo_re")}); g.fS(function(){Nk(v);Oe(v,"swpo_si")},0); g.UE(S)})}; kt1=function(v){var O=v.api.D(),Y=AGw(VP1(O)),S=Y.Yw.bind(Y);Y.Yw=function(z){var M;return g.B(function(V){if(V.U==1)return g.E(V,S(z),2);M=V.Y;v.api.G0("itr",{});return V.return(M)})}; try{var d=fNQ({Xg:Y,zg:{maxAttempts:5},yJ:{Yf:"CLEn",disable:O.experiments.T0("html5_web_po_disable_remote_logging")||$hw.includes(g.c4(O.SZ)||""),s2:wNQ(O.experiments),XWx:v.V("wpo_dis_lfdms")?0:1E3},L9c:g.Br});var r=new Zq({zd:d,Xg:Y,onError:g.Br});sq1(r.OL()).then(function(){v.Y=!0;v.Z.resolve()}); v.V("html5_web_po_token_disable_caching")||r.N0(150);g.w(v,d);g.w(v,r);v.U=r}catch(z){g.Br(z);var b;(b=d)==null||b.dispose()}}; Nk=function(v){var O=v.api.D();v.Zg.cB("pot_ist");v.U||kt1(v);v.V("html5_bandaid_attach_content_po_token")||(v.V("html5_generate_session_po_token")&&(Yh(v),gyJ(v)),O=g.Vq(O.experiments,"html5_session_po_token_interval_time_ms")||0,O>0&&(v.L=g.$c(function(){Yh(v)},O)),v.X=!0)}; Yh=function(v){var O,Y,S,d;g.B(function(r){if(!v.V("html5_generate_session_po_token")||v.useLivingRoomPoToken)return r.return();O=v.api.D();Y=g.Gq("EOM_VISITOR_DATA")||g.Gq("VISITOR_DATA");S=O.e_?O.datasyncId:Y;d=HY(O.experiments,"html5_mock_content_binding_for_session_token")||O.livingRoomPoTokenId||S;O.eA=SK(v,d);g.UE(r)})}; SK=function(v,O){if(!v.U){if(v.G)try{return v.G(O)}catch(r){g.Br(r)}return""}try{v.Zg.cB(v.Y?"pot_cms":"pot_csms");var Y={sO:!0,Ii:!0,lL:O};v.V("html5_web_po_token_disable_caching")||(Y.g0={Rh:O,U6:!0,wz:!0});var S=v.U.c_(Y);v.Zg.cB(v.Y?"pot_cmf":"pot_csmf");if(v.Y){var d;(d=v.B)==null||d.resolve();v.B=null;v.C&&(v.C=!1,v.api.app.uc().SH(!1))}return S}catch(r){return g.Br(r),""}}; gyJ=function(v){v.U&&(v.B=new OK,v.Z.promise.then(function(){v.Zg.cB("pot_if");Yh(v)}))}; rx=function(v){J4.call(this,v);var O=this,Y=new g.Z6(v);g.w(this,Y);Y.S(v,"fullscreentoggled",function(){dx(O)}); Y.S(v,"sizestylechange",function(){dx(O)}); v2(this.api,"setFullscreenQuickActions",function(S){O.setFullscreenQuickActions(S)}); v2(this.api,"setPlayerOverlayVideoDetailsRenderer",function(S){O.setPlayerOverlayVideoDetailsRenderer(S)}); this.U=this.api.V("web_player_imax_theater_mode")}; dx=function(v){var O=v.api.isFullscreen()||v.U&&v.api.Rv();v.Y&&g.L4(v.Y,O);v.playerOverlayVideoDetailsRenderer&&g.L4(v.playerOverlayVideoDetailsRenderer,O)}; Uhd=function(v){J4.call(this,v);var O=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Z6(v);g.w(this,this.events);this.events.S(v,"heartbeatRequest",function(Y){if(O.freePreviewUsageDetails.length||O.freePreviewWatchedDuration!==null)Y.heartbeatRequestParams||(Y.heartbeatRequestParams={}),Y.heartbeatRequestParams.unpluggedParams||(Y.heartbeatRequestParams.unpluggedParams={}),O.freePreviewUsageDetails.length>0?Y.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= O.freePreviewUsageDetails:Y.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+O.freePreviewWatchedDuration}}); v2(v,"setFreePreviewWatchedDuration",function(Y){O.freePreviewWatchedDuration=Y}); v2(v,"setFreePreviewUsageDetails",function(Y){O.freePreviewUsageDetails=Y})}; bn=function(v){g.X.call(this);this.features=[];var O=this.Y,Y=new kJ(v),S=new KU(v),d=new sA(v),r=new vw(v);var b=g.p0(v.D())?void 0:new zC(v);var z=new zZ(v),M=new JhF(v),V=new bjF(v),A=new $J(v);var f=g.p0(v.D())?new Uhd(v):void 0;var k=v.V("html5_enable_ssap")?new Xi3(v):void 0;var U;var c=(U=v.D().getWebPlayerContextConfig())!=null&&U.cinematicSettingsAvailable?new by(v):void 0;U=new fX(v);var a=v.V("enable_courses_player_overlay_purchase")?new Xcg(v):void 0;var x=g.PD(v.D())?new Qy1(v):void 0; var T=new gp(v);var l=v.D().B?new lWn(v):void 0;var Q=g.aP(v.D())?new TQg(v):void 0;var L=v.V("web_player_move_autonav_toggle")&&v.D().nP?new kmd(v):void 0;var I=g.PD(v.D())?new Bx1(v):void 0;var t=v.V("web_enable_speedmaster")&&g.PD(v.D())?new XC(v):void 0;var P=v.D().ME?void 0:new DaF(v);var YQ=v.V("report_pml_debug_signal")?new Vvn(v):void 0;var dF=new tKg(v),N=new AA(v);var j1=g.qB(v.D())?new bfl(v):void 0;var D=navigator.mediaSession&&window.MediaMetadata&&v.D().IX?new j3(v):void 0;var yd=v.V("html5_enable_drc")&& !v.D().C?new WC(v):void 0;var pn=new GW(v);var Qd=g.PD(v.D())?new k93(v):void 0;var uL=v.V("html5_enable_d6de4")?new gt(v):void 0;var jU=g.PD(v.D())&&v.V("web_sleep_timer")?new Rb(v):void 0;var ll=g.aP(v.D())?new h4d(v):void 0;var xQ=new l6(v),dS=new aWF(v),p=new LgE(v);var oi=v.V("enable_sabr_snackbar_message")?new eQd(v):void 0;var P0=v.V("web_enable_timely_actions")?new Oj3(v):void 0;var uh=new og(v);var lL=g.PD(v.D())?new rx(v):void 0;v=v.V("html5_enable_voice_boost")?new D2(v):void 0;O.call(this, Y,S,d,r,b,z,M,V,A,f,k,c,U,a,x,T,l,Q,L,I,t,P,YQ,dF,N,j1,void 0,D,yd,pn,void 0,Qd,uL,jU,ll,void 0,xQ,dS,p,void 0,oi,P0,uh,lL,v,void 0)}; cGg=function(){this.U=this.Y=NaN}; uVF=function(v,O){this.Yg=v;this.timerName="";this.G=!1;this.U=NaN;this.B=new cGg;this.Y=O||null;this.G=!1}; C_J=function(v,O,Y){var S=g.h7(O.Qx)&&!O.Qx.C;if(O.Qx.cV&&(pH(O.Qx)||O.Qx.N3==="shortspage"||DS(O.Qx)||S)&&!v.G){v.G=!0;v.C=O.clientPlaybackNonce;g.Gq("TIMING_ACTION")||Pk("TIMING_ACTION",v.Yg.csiPageType);v.Yg.csiServiceName&&Pk("CSI_SERVICE_NAME",v.Yg.csiServiceName);if(v.Y){S=v.Y.pS();for(var d=g.y(Object.keys(S)),r=d.next();!r.done;r=d.next())r=r.value,nw(r,S[r],v.timerName);S=g.N7(JrE)(v.Y.Ro);g.J_(S,v.timerName);S=v.Y;S.U={};S.Ro={}}g.J_({playerInfo:{visibilityState:g.N7(nCE)()},playerType:"LATENCY_PLAYER_HTML5"}, v.timerName);v.Z!==O.clientPlaybackNonce||Number.isNaN(v.U)||(PT("_start",v.timerName)?Y=g.N7(Z9)("_start",v.timerName)+v.U:g.Br(new g.iK("attempted to log gapless pbs before CSI timeline started",{cpn:O.clientPlaybackNonce})));Y&&!PT("pbs",v.timerName)&&o2(v,Y)}}; o2=function(v,O,Y){nw("pbs",O!=null?O:(0,g.J)(),Y!=null?Y:v.timerName)}; jK=function(v){vTm();NTn();v.timerName=""}; yGi=function(v){if(v.Y){var O=v.Y;O.U={};O.Ro={}}v.G=!1;v.Z=void 0;v.U=NaN}; aNm=function(v,O){g.MU.call(this);this.Qx=v;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.Y=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.X={};this.U=0;if(v=O.session_data)this.sessionData=Oq(v,"&");this.index=Math.max(0,Number(O.index)||0);this.loop=!!O.loop;this.startSeconds=Number(O.startSeconds)||0;this.title=O.playlist_title||"";this.description=O.playlist_description||"";this.author= O.author||O.playlist_author||"";O.video_id&&(this.items[this.index]=O);if(v=O.api)typeof v==="string"&&v.length===16?O.list="PL"+v:O.playlist=v;if(v=O.list)switch(O.listType){case "user_uploads":this.listId=new $f("UU","PLAYER_"+v);break;default:var Y=O.playlist_length;Y&&(this.length=Number(Y)||0);this.listId=g.kf(v);if(v=O.video)this.items=v.slice(0),this.loaded=!0}else if(O.playlist){v=O.playlist.toString().split(",");this.index>0&&(this.items=[]);v=g.y(v);for(Y=v.next();!Y.done;Y=v.next())(Y= Y.value)&&this.items.push({video_id:Y});this.length=this.items.length;if(v=O.video)this.items=v.slice(0),this.loaded=!0}this.setShuffle(!!O.shuffle);if(v=O.suggestedQuality)this.quality=v;this.X=MC(O,"playlist_");this.G=(O=O.thumbnail_ids)?O.split(","):[]}; xhc=function(v){return!!(v.playlist||v.list||v.api)}; pJc=function(v){var O=v.index+1;return O>=v.length?0:O}; Tl3=function(v){var O=v.index-1;return O<0?v.length-1:O}; g.Ww=function(v,O,Y,S){O=O!==void 0?O:v.index;O=v.items&&O in v.items?v.items[v.order[O]]:null;var d=null;O&&(Y&&(O.autoplay="1"),S&&(O.autonav="1"),d=new g.w2(v.Qx,O),g.w(v,d),d.d6=!0,d.startSeconds=v.startSeconds||d.clipStart||0,v.listId&&(d.playlistId=v.listId.toString()));return d}; lNl=function(v,O){v.index=g.xr(O,0,v.length-1);v.startSeconds=0}; FV1=function(v,O){if(O.video&&O.video.length){v.title=O.title||"";v.description=O.description;v.views=O.views;v.likes=O.likes;v.dislikes=O.dislikes;v.author=O.author||"";var Y=O.loop;Y&&(v.loop=Y);Y=g.Ww(v);v.items=[];for(var S=g.y(O.video),d=S.next();!d.done;d=S.next())if(d=d.value)d.video_id=d.encrypted_id,v.items.push(d);v.length=v.items.length;(O=O.index)?v.index=O:v.findIndex(Y);v.setShuffle(!1);v.loaded=!0;v.U++;v.Y&&v.Y()}}; eAm=function(v,O){var Y,S,d,r,b,z,M;return g.B(function(V){if(V.U==1){Y=g.ju();var A=v.D(),f={context:g.i8(v),playbackContext:{contentPlaybackContext:{ancestorOrigins:A.ancestorOrigins}}},k=A.getWebPlayerContextConfig();if(k==null?0:k.encryptedHostFlags)f.playbackContext.contentPlaybackContext.encryptedHostFlags=k.encryptedHostFlags;if(k==null?0:k.hideInfo)f.playerParams={showinfo:!1};A=A.embedConfig;k=O.docid||O.video_id||O.videoId||O.id;if(!k){k=O.raw_embedded_player_response;if(!k){var U=O.embedded_player_response; U&&(k=JSON.parse(U))}if(k){var c,a,x,T,l,Q;k=((Q=g.q((c=k)==null?void 0:(a=c.embedPreview)==null?void 0:(x=a.thumbnailPreviewRenderer)==null?void 0:(T=x.playButton)==null?void 0:(l=T.buttonRenderer)==null?void 0:l.navigationEndpoint,g.Gj))==null?void 0:Q.videoId)||null}else k=null}c=(c=k)?c:void 0;a=v.playlistId?v.playlistId:O.list;x=O.listType;if(a){var L;x==="user_uploads"?L={username:a}:L={playlistId:a};hA$(A,c,O,L);f.playlistRequest=L}else O.playlist?(L={templistVideoIds:O.playlist.toString().split(",")}, hA$(A,c,O,L),f.playlistRequest=L):c&&(L={videoId:c},A&&(L.serializedThirdPartyEmbedConfig=A),f.singleVideoRequest=L);S=f;d=g.V7(RA7);g.cm(V,2);return g.E(V,g.D9(Y,S,d),4)}if(V.U!=2)return r=V.Y,b=v.D(),O.raw_embedded_player_response=r,b.JK=z4(O,g.aP(b)),b.G=b.JK==="EMBEDDED_PLAYER_MODE_PFL",r&&(z=r,z.trackingParams&&Ry(z.trackingParams)),V.return(new g.w2(b,O));M=g.Tc(V);M instanceof Error||(M=Error("b259802748"));g.LP(M);return V.return(v)})}; hA$=function(v,O,Y,S){Y.index&&(S.playlistIndex=String(Number(Y.index)+1));S.videoId=O?O:"";v&&(S.serializedThirdPartyEmbedConfig=v)}; g.se=function(v,O){zv.get(v);zv.set(v,O)}; g.gx=function(v){g.MU.call(this);this.loaded=!1;this.player=v}; EyQ=function(){this.U=[];this.Y=[]}; g.HR=function(v,O){return O?v.Y.concat(v.U):v.Y}; g.Mo=function(v,O){switch(O.kind){case "asr":Qqg(O,v.U);break;default:Qqg(O,v.Y)}}; Qqg=function(v,O){g.gS(O,function(Y){return v.equals(Y)})||O.push(v)}; g.Vt=function(v){g.X.call(this);this.r8=v;this.U=new EyQ;this.B=null;this.Z=[];this.X=[]}; g.AM=function(v,O,Y){g.Vt.call(this,v);this.videoData=O;this.audioTrack=Y;this.Y=null;this.G=!1;this.Z=O.Af;this.X=O.Er;this.G=g.F8(O)}; g.LVw=function(v,O){var Y;return v.D().V("safari_live_drm_captions_fix")&&((Y=v.getVideoData())==null?0:Y.aS())?!1:g.p0(v.D())&&!O.isManifestless}; g.fp=function(v,O){return rb(v.info.mimeType)?O?v.info.itag===O:!0:!1}; g.BlJ=function(v,O){if(v.Y!=null&&g.LVw(O,v.Y)&&v.Y.Y.rawcc!=null)return!0;if(!v.FL())return!1;O=!!v.Y&&v.Y.isManifestless&&Object.values(v.Y.Y).some(function(Y){return g.fp(Y,"386")}); v=!!v.Y&&!v.Y.isManifestless&&g.dsd(v.Y);return O||v}; g.$h=function(v,O,Y,S,d,r){g.Vt.call(this,v);this.videoId=Y;this.DS=d;this.eventId=r;this.C={};this.Y=null;v=S||g.rG(O).hl||"";v=v.split("_").join("-");this.G=bF(O,{hl:v})}; wJl=function(v,O){var Y=Zjw;return Y.B?fs(XJ3(Y,O),ki(function(S){return function r(){return Ln(r,function(b){if(b.U==1){g.ul(b,2);try{return b.return(new WebAssembly.Instance(S,v))}catch(z){}return $Q(b,UR(WebAssembly.instantiate(S,v)),4)}if(b.U!=2)return b.return(b.Y);g.Fw(b);return g.Ri(b,0)})}()})):M6("wasm.ps.ns")}; IN7=function(v,O){v.Y||(v.Y=fs(Vf(function(){return fetch(O)}),function(Y){return Y.arrayBuffer()}),$i(v.Y,function(Y){v.Y=void 0; throw"wasm.ps.f: "+Y;}))}; XJ3=function(v,O){if(v.U)return v.U;v.U=v.Z(O);$i(v.U,function(Y){v.U=void 0;throw"wasm.ps.c: "+Y;}); return v.U}; qY7=function(){}; nyE=function(){var v=this;this.proc_exit=function(){}; this.fd_write=function(O,Y,S){if(!v.exports)return 1;O=new Uint32Array(v.exports.memory.buffer,Y,S*2);Y=[];for(var d=0;d=11;v=v.api.D().L&&hM;return!(!O&&!v)}; qo=function(v,O){return!v.api.isInline()&&!xIm(v,py(O))&&g.Fk(O)}; aP3=function(v){v.AM.YC();if(v.GB&&v.dc)v.dc=!1;else if(!v.api.D().XO&&!v.KM()){var O=v.api.getPlayerStateObject();g.G(O,2)&&g.c2(v.api)||v.lN(O);!v.api.D().Mj||O.isCued()||g.G(O,1024)?v.z_():v.Oa.isActive()?(v.pO(),v.Oa.stop()):v.Oa.start()}}; TuJ=function(v,O){var Y;if((Y=v.api.getVideoData())==null?0:Y.mutedAutoplay){var S,d;if((S=O.target)==null?0:(d=S.className)==null?0:d.includes("ytp-info-panel"))return!1}return g.Fk(O)&&v.api.isMutedByMutedAutoplay()?(v.api.unMute(),v.api.getPresentingPlayerType()===2&&v.api.playVideo(),O=v.api.getPlayerStateObject(),!g.G(O,4)||g.G(O,8)||g.G(O,2)||v.z_(),!0):!1}; lPi=function(v,O,Y){v.api.isFullscreen()?Y<1-O&&v.api.toggleFullscreen():Y>1+O&&v.api.toggleFullscreen()}; yN1=function(v){var O=KS()&&qS()>=67&&!v.api.D().L;v=v.api.D().disableOrganicUi;return!g.Jy("tizen")&&!uq&&!O&&!v}; g.np=function(v){g.K.call(this,{J:"div",K:[{J:"div",W:"ytp-bezel-text-wrapper",K:[{J:"div",W:"ytp-bezel-text",M3:"{{title}}"}]},{J:"div",W:"ytp-bezel",T:{role:"status","aria-label":"{{label}}"},K:[{J:"div",W:"ytp-bezel-icon",M3:"{{icon}}"}]}]});this.N=v;this.U=new g.mX(this.show,10,this);v=this.N.V("delhi_modern_web_player")?1E3:500;this.Y=new g.mX(this.hide,v,this);g.w(this,this.U);g.w(this,this.Y);this.hide()}; Kp=function(v,O,Y){if(O<=0){Y=Lu();O="muted";var S=0}else Y=Y?{J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{J:"path",p_:!0,T:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{J:"path",p_:!0,T:{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"}}]},S=Math.floor(O),O=S+"volume";JM(v,Y,O,S+"%")}; FQc=function(v,O){O=O?{J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{J:"path",p_:!0,W:"ytp-svg-fill",T:{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"}}]}:C9l();var Y=v.N.getPlaybackRate(),S=g.kD("Speed is $RATE",{RATE:String(Y)});JM(v,O,S,Y+"x")}; h$7=function(v,O){O=O?"Subtitles/closed captions on":"Subtitles/closed captions off";JM(v,uSn(v.N),O)}; JM=function(v,O,Y,S){S=S===void 0?"":S;v.updateValue("label",Y===void 0?"":Y);v.updateValue("icon",O);g.vI(v.Y);v.U.start();v.updateValue("title",S);g.gr(v.element,"ytp-bezel-text-hide",!S)}; R$i=function(v,O){g.K.call(this,{J:"button",hK:["ytp-button","ytp-cards-button"],T:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.aP(v.D()))},K:[{J:"span",W:"ytp-cards-button-icon-default",K:[{J:"div",W:"ytp-cards-button-icon",K:[v.D().V("player_new_info_card_format")?xlg():{J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{J:"path",p_:!0,W:"ytp-svg-fill",T:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {J:"div",W:"ytp-cards-button-title",M3:"Info"}]},{J:"span",W:"ytp-cards-button-icon-shopping",K:[{J:"div",W:"ytp-cards-button-icon",K:[{J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{J:"path",W:"ytp-svg-shadow",T:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{J:"path",W:"ytp-svg-fill",T:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{J:"path",W:"ytp-svg-shadow-fill",T:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{J:"div", W:"ytp-cards-button-title",M3:"Shopping"}]}]});this.N=v;this.U=O;this.Y=null;this.fade=new g.bC(this,250,!0,100);g.w(this,this.fade);g.gr(this.U,"ytp-show-cards-title",g.aP(v.D()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.SC(!0)}; e$l=function(v,O){g.K.call(this,{J:"div",W:"ytp-cards-teaser",K:[{J:"div",W:"ytp-cards-teaser-box"},{J:"div",W:"ytp-cards-teaser-text",K:v.D().V("player_new_info_card_format")?[{J:"button",W:"ytp-cards-teaser-info-icon",T:{"aria-label":"Show cards","aria-haspopup":"true"},K:[xlg()]},{J:"img",W:"ytp-cards-teaser-channel-avatar",T:{alt:"","aria-hidden":"true"}},{J:"span",W:"ytp-cards-teaser-label",M3:"{{text}}"},{J:"button",W:"ytp-cards-teaser-close-button",T:{"aria-label":"Close"},K:[g.pu()]}]:[{J:"span", W:"ytp-cards-teaser-label",M3:"{{text}}"}]}]});var Y=this;this.N=v;this.df=O;this.fade=new g.bC(this,250,!1,250);this.Y=null;this.L=new g.mX(this.TR1,300,this);this.C=new g.mX(this.Eyg,2E3,this);this.B=[];this.U=null;this.X=new g.mX(function(){Y.element.style.margin="0"},250); this.onClickCommand=this.G=null;g.w(this,this.fade);g.w(this,this.L);g.w(this,this.C);g.w(this,this.X);v.D().V("player_new_info_card_format")?(g.on(v.getRootNode(),"ytp-cards-teaser-dismissible"),this.S(this.BW("ytp-cards-teaser-close-button"),"click",this.t6),this.S(this.BW("ytp-cards-teaser-info-icon"),"click",this.Kb),this.S(this.BW("ytp-cards-teaser-label"),"click",this.Kb)):this.listen("click",this.Kb);this.S(O.element,"mouseover",this.Mz);this.S(O.element,"mouseout",this.GE);this.S(v,"cardsteasershow", this.SEg);this.S(v,"cardsteaserhide",this.VC);this.S(v,"cardstatechange",this.AJ);this.S(v,"presentingplayerstatechange",this.AJ);this.S(v,"appresize",this.pX);this.S(v,"onShowControls",this.pX);this.S(v,"onHideControls",this.Tl);this.listen("mouseenter",this.Ub)}; EPi=function(v){g.K.call(this,{J:"button",hK:[Pw.BUTTON,Pw.TITLE_NOTIFICATIONS],T:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},K:[{J:"div",W:Pw.TITLE_NOTIFICATIONS_ON,T:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},K:[g.Fs()]},{J:"div",W:Pw.TITLE_NOTIFICATIONS_OFF,T:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},K:[{J:"svg",T:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},K:[{J:"path",T:{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.Y=!1;v.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; Qog=function(v,O){v.Y=O;v.element.classList.toggle(Pw.NOTIFICATIONS_ENABLED,v.Y);var Y=v.api.getVideoData();Y?(O=O?Y.Tk:Y.K0)?(v=v.api.Rm())?t_(v,O):g.LP(Error("No innertube service available when updating notification preferences.")):g.LP(Error("No update preferences command available.")):g.LP(Error("No video data when updating notification preferences."))}; Bud=function(v,O,Y){var S=S===void 0?800:S;var d=d===void 0?600:d;var r=document.location.protocol;v=Jvm(r+"//"+v+"/signin?context=popup","feature",O,"next",r+"//"+location.hostname+"/post_login");LQQ(v,Y,S,d)}; LQQ=function(v,O,Y,S){Y=Y===void 0?800:Y;S=S===void 0?600:S;if(v=g.Nv(window,v,"loginPopup","width="+Y+",height="+S+",resizable=yes,scrollbars=yes"))uB3(function(){O()}),v.moveTo((screen.width-Y)/2,(screen.height-S)/2)}; g.Gv=function(v,O,Y,S,d,r,b,z,M,V,A,f){v=v.charAt(0)+v.substring(1).toLowerCase();Y=Y.charAt(0)+Y.substring(1).toLowerCase();if(O==="0"||O==="-1")O=null;if(S==="0"||S==="-1")S=null;var k=A.D(),U=k.userDisplayName&&g.h7(k);g.K.call(this,{J:"div",hK:["ytp-button","ytp-sb"],K:[{J:"div",W:"ytp-sb-subscribe",T:U?{title:g.kD("Subscribe as $USER_NAME",{USER_NAME:k.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":HD(k),"data-tooltip-opaque":String(g.aP(k)),tabindex:"0",role:"button"}: {"aria-label":"Subscribe to channel"},K:[{J:"div",W:"ytp-sb-text",K:[{J:"div",W:"ytp-sb-icon"},v]},O?{J:"div",W:"ytp-sb-count",M3:O}:""]},{J:"div",W:"ytp-sb-unsubscribe",T:U?{title:g.kD("Subscribed as $USER_NAME",{USER_NAME:k.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":HD(k),"data-tooltip-opaque":String(g.aP(k)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},K:[{J:"div",W:"ytp-sb-text",K:[{J:"div",W:"ytp-sb-icon"},Y]},S?{J:"div",W:"ytp-sb-count", M3:S}:""]}],T:{"aria-live":"polite"}});var c=this;this.channelId=b;this.N=A;this.G=f;var a=this.BW("ytp-sb-subscribe"),x=this.BW("ytp-sb-unsubscribe");r&&g.on(this.element,"ytp-sb-classic");if(d){z?this.Y():this.U();var T=function(){if(k.HW){var Q=c.channelId;if(M||V){var L={c:Q};var I;g.Ls.isInitialized()&&(I=Lki(L));L=I||"";if(I=A.getVideoData())if(I=I.subscribeCommand){var t=A.Rm();t?(t_(t,I,{botguardResponse:L,feature:M}),A.PW("SUBSCRIBE",Q)):g.LP(Error("No innertube service available when updating subscriptions."))}else g.LP(Error("No subscribe command in videoData.")); else g.LP(Error("No video data available when updating subscription."))}x.focus();x.removeAttribute("aria-hidden");a.setAttribute("aria-hidden","true")}else Bud(g.IP(c.N.D()),"sb_button",c.B)},l=function(){var Q=c.channelId; if(M||V){var L=A.getVideoData();t_(A.Rm(),L.unsubscribeCommand,{feature:M});A.PW("UNSUBSCRIBE",Q)}a.focus();a.removeAttribute("aria-hidden");x.setAttribute("aria-hidden","true")}; this.S(a,"click",T);this.S(x,"click",l);this.S(a,"keypress",function(Q){Q.keyCode===13&&T(Q)}); this.S(x,"keypress",function(Q){Q.keyCode===13&&l(Q)}); this.S(A,"SUBSCRIBE",this.Y);this.S(A,"UNSUBSCRIBE",this.U);this.G&&U&&(SRn(A),$e(A,a,this),$e(A,x,this))}else g.on(a,"ytp-sb-disabled"),g.on(x,"ytp-sb-disabled")}; wA$=function(v){g.K.call(this,{J:"div",W:"ytp-title-channel",K:[{J:"div",W:"ytp-title-beacon"},{J:"a",W:"ytp-title-channel-logo",T:{href:"{{channelLink}}",target:v.D().j,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{J:"div",W:"ytp-title-expanded-overlay",T:{"aria-hidden":"{{flyoutUnfocusable}}"},K:[{J:"div",W:"ytp-title-expanded-heading",K:[{J:"div",W:"ytp-title-expanded-title",K:[{J:"a",M3:"{{expandedTitle}}",T:{href:"{{channelTitleLink}}",target:v.D().j,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{J:"div",W:"ytp-title-expanded-subtitle",M3:"{{expandedSubtitle}}",T:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var O=this;this.api=v;this.channel=this.BW("ytp-title-channel");this.U=this.BW("ytp-title-channel-logo");this.channelName=this.BW("ytp-title-expanded-title");this.C=this.BW("ytp-title-expanded-overlay");this.G=this.Y=this.subscribeButton=null;this.B=!1;v.createClientVe(this.U,this,36925);v.createClientVe(this.channelName,this, 37220);g.aP(this.api.D())&&Zvw(this);this.S(v,"videodatachange",this.q3);this.S(v,"videoplayerreset",this.q3);this.S(this.channelName,"click",function(Y){O.api.logClick(O.channelName);g.Nv(window,XAg(O));Y.preventDefault()}); this.S(this.U,"click",this.c$1);this.q3()}; IPQ=function(v){if(!v.api.D().rR){var O=v.api.getVideoData(),Y=new g.Gv("Subscribe",null,"Subscribed",null,!0,!1,O.HS,O.subscribed,"channel_avatar",null,v.api,!0);v.api.createServerVe(Y.element,v);var S;v.api.setTrackingParams(Y.element,((S=O.subscribeButtonRenderer)==null?void 0:S.trackingParams)||null);v.S(Y.element,"click",function(){v.api.logClick(Y.element)}); v.subscribeButton=Y;g.w(v,v.subscribeButton);v.subscribeButton.C1(v.C);v.subscribeButton.hide();var d=new EPi(v.api);v.Y=d;g.w(v,d);d.C1(v.C);d.hide();v.S(v.api,"SUBSCRIBE",function(){O.NE&&(d.show(),v.api.logVisibility(d.element,!0))}); v.S(v.api,"UNSUBSCRIBE",function(){O.NE&&(d.hide(),v.api.logVisibility(d.element,!1),Qog(d,!1))})}}; Zvw=function(v){var O=v.api.D();IPQ(v);v.updateValue("flyoutUnfocusable","true");v.updateValue("channelTitleFocusable","-1");v.updateValue("shouldHideExpandedTitleForA11y","true");v.updateValue("shouldHideExpandedSubtitleForA11y","true");O.U||O.f1||(v.S(v.channel,"mouseenter",v.jF),v.S(v.channel,"mouseleave",v.UC),v.S(v.channel,"focusin",v.jF),v.S(v.channel,"focusout",function(Y){v.channel.contains(Y.relatedTarget)||v.UC()})); v.G=new g.mX(function(){v.isExpanded()&&(v.api.logVisibility(v.channelName,!1),v.subscribeButton&&(v.subscribeButton.hide(),v.api.logVisibility(v.subscribeButton.element,!1)),v.Y&&(v.Y.hide(),v.api.logVisibility(v.Y.element,!1)),v.channel.classList.remove("ytp-title-expanded"),v.channel.classList.add("ytp-title-show-collapsed"))},500); g.w(v,v.G);v.S(v.channel,qHJ,function(){nP1(v)}); v.S(v.api,"onHideControls",v.f9);v.S(v.api,"appresize",v.f9);v.S(v.api,"fullscreentoggled",v.f9)}; nP1=function(v){v.channel.classList.remove("ytp-title-show-collapsed");v.channel.classList.remove("ytp-title-show-expanded")}; JNl=function(v){var O=v.api.getPlayerSize();return g.aP(v.api.D())&&O.width>=524}; XAg=function(v){var O=v.api.D(),Y=v.api.getVideoData(),S=g.N_(O)+Y.On;g.Kh(Y)&&(S="https://music.youtube.com"+Y.On);if(!g.aP(O))return S;O={};g.dB(v.api,"addEmbedsConversionTrackingParams",[O]);return g.Te(S,O)}; mg=function(v){var O=g.Ih({"aria-haspopup":"true"});g.wB.call(this,O,v);this.listen("keydown",this.Y)}; tM=function(v,O){v.element.setAttribute("aria-haspopup",String(O))}; KQQ=function(v,O){g.K.call(this,{J:"div",W:"ytp-user-info-panel",T:{"aria-label":"User info"},K:v.D().HW&&!v.V("embeds_web_always_enable_signed_out_state")?[{J:"div",W:"ytp-user-info-panel-icon",M3:"{{icon}}"},{J:"div",W:"ytp-user-info-panel-content",K:[{J:"div",W:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable}}",role:"text"},M3:"{{watchingAsUsername}}"},{J:"div",W:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable2}}",role:"text"},M3:"{{watchingAsEmail}}"}]}]:[{J:"div",W:"ytp-user-info-panel-icon", M3:"{{icon}}"},{J:"div",W:"ytp-user-info-panel-content",K:[{J:"div",K:[{J:"text",T:{tabIndex:"{{userInfoFocusable}}"},M3:"Signed out"}]},{J:"div",W:"ytp-user-info-panel-login",K:[{J:"a",T:{tabIndex:"{{userInfoFocusable2}}",role:"button"},M3:v.D().rR?"":"Sign in on YouTube"}]}]}]});this.r8=v;this.Y=O;v.D().HW||v.D().rR||this.S(this.BW("ytp-user-info-panel-login"),"click",this.MW);this.closeButton=new g.K({J:"button",hK:["ytp-collapse","ytp-button"],T:{title:"Close"},K:[g.Qs()]});this.closeButton.C1(this.element); g.w(this,this.closeButton);this.S(window,"blur",this.hide);this.S(document,"click",this.GP);this.q3()}; ivJ=function(v,O,Y){g.cR.call(this,v);this.HT=O;this.q2=Y;this.getVideoUrl=new mg(6);this.nU=new mg(5);this.EJ=new mg(4);this.Yu=new mg(3);this.Ms=new g.wB(g.Ih({href:"{{href}}",target:this.N.D().j},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.wB(g.Ih(),1,"Stats for nerds");this.hL=new g.k9({J:"div",hK:["ytp-copytext","ytp-no-contextmenu"],T:{draggable:"false",tabindex:"1"},M3:"{{text}}"});this.a8=new UA(this.N,this.hL);this.MZ=this.M4=null;g.aP(this.N.D())&&(this.closeButton= new g.K({J:"button",hK:["ytp-collapse","ytp-button"],T:{title:"Close"},K:[g.Qs()]}),g.w(this,this.closeButton),this.closeButton.C1(this.element),this.closeButton.listen("click",this.sU,this));g.aP(this.N.D())&&(this.GZ=new g.wB(g.Ih(),8,"Account"),g.w(this,this.GZ),this.L_(this.GZ,!0),this.GZ.listen("click",this.g4x,this),v.createClientVe(this.GZ.element,this.GZ,137682));this.N.D().g6&&(this.P7=new DE("Loop",7),g.w(this,this.P7),this.L_(this.P7,!0),this.P7.listen("click",this.ijd,this),v.createClientVe(this.P7.element, this.P7,28661));g.w(this,this.getVideoUrl);this.L_(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.r$c,this);v.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.w(this,this.nU);this.L_(this.nU,!0);this.nU.listen("click",this.oyO,this);v.createClientVe(this.nU.element,this.nU,28660);g.w(this,this.EJ);this.L_(this.EJ,!0);this.EJ.listen("click",this.XTg,this);v.createClientVe(this.EJ.element,this.EJ,28658);g.w(this,this.Yu);this.L_(this.Yu,!0);this.Yu.listen("click",this.Snx, this);g.w(this,this.Ms);this.L_(this.Ms,!0);this.Ms.listen("click",this.jIx,this);g.w(this,this.showVideoInfo);this.L_(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.Vpd,this);g.w(this,this.hL);this.hL.listen("click",this.dj8,this);g.w(this,this.a8);O=document.queryCommandSupported&&document.queryCommandSupported("copy");Gci("Chromium")>=43&&(O=!0);Gci("Firefox")<=40&&(O=!1);O&&(this.M4=new g.K({J:"textarea",W:"ytp-html5-clipboard",T:{readonly:"",tabindex:"-1"}}),g.w(this,this.M4), this.M4.C1(this.element));var S;(S=this.GZ)==null||S.setIcon(FB1());var d;(d=this.P7)==null||d.setIcon({J:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.Yu.setIcon({J:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{"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.Ms.setIcon(ykF());this.showVideoInfo.setIcon(a3E());this.S(v,"onLoopChange",this.onLoopChange);this.S(v,"videodatachange",this.onVideoDataChange);PfQ(this);Gdm(this,this.N.getVideoData())}; Da=function(v,O){var Y=!1;if(v.M4){var S=v.M4.element;S.value=O;S.select();try{Y=document.execCommand("copy")}catch(d){}}Y?v.HT.VC():(v.hL.yg(O,"text"),g.yb(v.HT,v.a8),YJ(v.hL.element),v.M4&&(v.M4=null,PfQ(v)));return Y}; Gdm=function(v,O){var Y=v.N.D(),S=v.N.getPresentingPlayerType()===2,d=!S||O.isListed;d=!Y.Ug&&!!O.videoId&&d;Y.playerStyle!=="play"?Y="https://support.google.com/youtube/?p=report_playback":(Y={contact_type:"playbackissue",html5:1,ei:O.eventId,v:O.videoId,p:"movies_playback"},O.U&&(Y.fmt=O.U.itag),O.clientPlaybackNonce&&(Y.cpn=O.clientPlaybackNonce),O.partnerId&&(Y.partnerid=O.partnerId),Y=g.Te("//support.google.com/googleplay/",Y));v.EJ.t9(d&&O.allowEmbed);v.getVideoUrl.t9(d);v.nU.t9(d&&!O.isLivePlayback); v.Ms.yg(Y,"href");var r;(r=v.P7)==null||r.t9(!O.isLivePlayback&&!S);var b;(b=v.GZ)==null||b.t9(!S)}; PfQ=function(v){var O=!!v.M4;g.XM(v.Yu,O?"Copy debug info":"Get debug info");tM(v.Yu,!O);g.XM(v.EJ,O?"Copy embed code":"Get embed code");tM(v.EJ,!O);g.XM(v.getVideoUrl,O?"Copy video URL":"Get video URL");tM(v.getVideoUrl,!O);g.XM(v.nU,O?"Copy video URL at current time":"Get video URL at current time");tM(v.nU,!O);v.EJ.setIcon(O?ckd():null);v.getVideoUrl.setIcon(O?TT():null);v.nU.setIcon(O?TT():null)}; mIc=function(v){return g.aP(v.N.D())?v.GZ:v.P7}; DIJ=function(v,O){g.Cq.call(this,v);this.q2=O;this.B=new g.Z6(this);this.tK=new g.mX(this.lkg,1E3,this);this.Ug=this.G=null;g.w(this,this.B);g.w(this,this.tK);O=this.N.D();v.createClientVe(this.element,this,28656);g.on(this.element,"ytp-contextmenu");this.N.D().experiments.T0("delhi_modern_web_player")&&g.PD(O)&&g.on(this.element,"ytp-delhi-modern-contextmenu");tDg(this);this.hide()}; tDg=function(v){g.hi(v.B);var O=v.N.D();O.playerStyle==="gvn"||O.U||O.f1||(O=v.N.j4(),v.B.S(O,"contextmenu",v.Q1g),v.B.S(O,"touchstart",v.onTouchStart,null,!0),v.B.S(O,"touchmove",v.Tw,null,!0),v.B.S(O,"touchend",v.Tw,null,!0))}; HvJ=function(v){v.N.isFullscreen()?g.TW(v.N,v.element,10):v.C1(LU(v).body)}; Hw=function(v,O,Y){Y=Y===void 0?240:Y;g.K.call(this,{J:"button",hK:["ytp-button","ytp-copylink-button"],T:{title:"{{title-attr}}","data-tooltip-opaque":String(g.aP(v.D()))},K:[{J:"div",W:"ytp-copylink-icon",M3:"{{icon}}"},{J:"div",W:"ytp-copylink-title",M3:"Copy link",T:{"aria-hidden":"true"}}]});this.api=v;this.Y=O;this.U=Y;this.visible=!1;this.tooltip=this.Y.wK();O=v.D();this.tooltip.element.setAttribute("aria-live","polite");g.gr(this.element,"ytp-show-copylink-title",g.aP(O));v.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.S(v,"videodatachange",this.q3);this.S(v,"videoplayerreset",this.q3);this.S(v,"appresize",this.q3);this.q3();this.addOnDisposeCallback(g.fU(this.tooltip,this.element))}; Nui=function(v){var O=v.api.D(),Y=v.api.getVideoData(),S=v.api.j4().getPlayerSize().width;O=O.G;return!!Y.videoId&&S>=v.U&&Y.IX&&!g.Jz(Y)&&!v.api.isEmbedsShortsMode()&&!O}; vgE=function(v){v.updateValue("icon",ys());if(v.api.D().U)v.tooltip.wv(v.element,"Link copied to clipboard");else{v.updateValue("title-attr","Link copied to clipboard");v.tooltip.GG();v.tooltip.wv(v.element);var O=v.listen("mouseleave",function(){v.g2(O);v.q3();v.tooltip.Ly()})}}; OId=function(v,O){return g.B(function(Y){if(Y.U==1)return g.cm(Y,2),g.E(Y,navigator.clipboard.writeText(O),4);if(Y.U!=2)return Y.return(!0);g.Tc(Y);var S=Y.return,d=!1,r=g.tc("TEXTAREA");r.value=O;r.setAttribute("readonly","");var b=v.api.getRootNode();b.appendChild(r);if(G2){var z=window.getSelection();z.removeAllRanges();var M=document.createRange();M.selectNodeContents(r);z.addRange(M);r.setSelectionRange(0,O.length)}else r.select();try{d=document.execCommand("copy")}catch(V){}b.removeChild(r); return S.call(Y,d)})}; Y5m=function(v){g.K.call(this,{J:"div",W:"ytp-doubletap-ui-legacy",K:[{J:"div",W:"ytp-doubletap-fast-forward-ve"},{J:"div",W:"ytp-doubletap-rewind-ve"},{J:"div",W:"ytp-doubletap-static-circle",K:[{J:"div",W:"ytp-doubletap-ripple"}]},{J:"div",W:"ytp-doubletap-overlay-a11y"},{J:"div",W:"ytp-doubletap-seek-info-container",K:[{J:"div",W:"ytp-doubletap-arrows-container",K:[{J:"span",W:"ytp-doubletap-base-arrow"},{J:"span",W:"ytp-doubletap-base-arrow"},{J:"span",W:"ytp-doubletap-base-arrow"}]},{J:"div", W:"ytp-doubletap-tooltip",K:[{J:"div",W:"ytp-seek-icon-text-container",K:[{J:"div",W:"ytp-seek-icon",M3:"{{seekIcon}}"},{J:"div",W:"ytp-chapter-seek-text-legacy",M3:"{{seekText}}"}]},{J:"div",W:"ytp-doubletap-tooltip-label",M3:"{{seekTime}}"}]}]}]});this.N=v;this.B=new g.mX(this.show,10,this);this.U=new g.mX(this.hide,700,this);this.L=this.G=0;this.tK=this.C=!1;this.Y=this.BW("ytp-doubletap-static-circle");g.w(this,this.B);g.w(this,this.U);this.hide();this.X=this.BW("ytp-doubletap-fast-forward-ve"); this.j=this.BW("ytp-doubletap-rewind-ve");this.N.createClientVe(this.X,this,28240);this.N.createClientVe(this.j,this,28239);this.N.logVisibility(this.X,!0);this.N.logVisibility(this.j,!0);this.C=v.V("web_show_cumulative_seek_time");this.tK=v.V("web_center_static_circles")}; S5Q=function(v,O){O=g.kD("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:O.toString()});v.updateValue("seekTime",O)}; dmw=function(v){k6.call(this,v,!1,!0);this.JK=[];this.rR=[];this.X=!0;this.badge.element.classList.add("ytp-featured-product");this.N3=new g.K({J:"div",W:"ytp-featured-product-open-in-new"});g.w(this,this.N3);this.countdownTimer=new g.K({J:"text",W:"ytp-featured-product-countdown",M3:"{{content}}"});this.countdownTimer.hide();g.w(this,this.countdownTimer);this.U=new g.K({J:"div",W:"ytp-featured-product-trending",K:[{J:"div",W:"ytp-featured-product-trending-icon"},{J:"text",W:"ytp-featured-product-trending-text", M3:"{{trendingOffer}}"}]});this.U.hide();g.w(this,this.U);this.overflowButton=new g.K({J:"button",hK:["ytp-featured-product-overflow-icon","ytp-button"],T:{"aria-haspopup":"true"}});this.overflowButton.hide();g.w(this,this.overflowButton);this.L=new g.K({J:"text",W:"ytp-featured-product-exclusive-countdown",M3:"{{content}}",T:{id:"exclusiveCountdown","aria-hidden":"true"}});this.L.hide();g.w(this,this.L);this.C=new g.K({J:"div",W:"ytp-featured-product-exclusive-container",T:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, K:[{J:"div",W:"ytp-featured-product-exclusive-badge-container",K:[{J:"div",W:"ytp-featured-product-exclusive-badge",K:[{J:"text",W:"ytp-featured-product-exclusive-badge-text",M3:"{{exclusive}}",T:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.L]});this.C.hide();g.w(this,this.C);this.banner=new g.K({J:"a",W:"ytp-featured-product-container",K:[{J:"div",W:"ytp-featured-product-thumbnail",K:[{J:"img",T:{src:"{{thumbnail}}"}},this.N3]},{J:"div",W:"ytp-featured-product-details",K:[{J:"text",W:"ytp-featured-product-title", M3:"{{title}}"},this.N.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{J:"div",W:"ytp-featured-product-price-container",T:{"aria-label":"{{priceA11yText}}"},K:[{J:"text",W:"ytp-featured-product-price-when-promotion-text-enabled",M3:"{{price}}",T:{"aria-hidden":"true"}},{J:"text",W:"ytp-featured-product-promotion-text",M3:"{{promotionText}}",T:{"aria-hidden":"true"}}]}:{J:"div",T:{"aria-label":"{{priceA11yText}}"},K:[{J:"text",W:"ytp-featured-product-price",M3:"{{price}}", T:{"aria-hidden":"true"}},{J:"text",W:"ytp-featured-product-sales-original-price",M3:"{{salesOriginalPrice}}",T:{"aria-hidden":"true"}},{J:"text",W:"ytp-featured-product-price-drop-reference-price",M3:"{{priceDropReferencePrice}}",T:{"aria-hidden":"true"}}]},this.N.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{J:"div",W:"ytp-featured-product-when-promotion-text-enabled",K:[{J:"text",W:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",M3:"{{affiliateDisclaimer}}"}, this.U,{J:"text",W:"ytp-featured-product-vendor-when-promotion-text-enabled",M3:"{{vendor}}"}]}:{J:"div",K:[{J:"text",W:"ytp-featured-product-affiliate-disclaimer",M3:"{{affiliateDisclaimer}}"},this.N.V("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.C:null,this.U,{J:"text",W:"ytp-featured-product-vendor",M3:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.w(this,this.banner);this.banner.C1(this.G.element);this.S(this.N,g.bI("featured_product"),this.pjW);this.S(this.N, g.o1("featured_product"),this.tv);this.S(this.N,"videodatachange",this.onVideoDataChange);this.S(this.overflowButton.element,"click",this.Hl);this.S(v,"featuredproductdismissed",this.l1)}; ra1=function(v){var O,Y;v=(O=v.Y)==null?void 0:(Y=O.bannerData)==null?void 0:Y.itemData;var S,d,r;return(v==null||!v.affiliateDisclaimer)&&(v==null?0:(S=v.exclusivesData)==null?0:S.exclusiveOfferLabelText)&&(v==null?0:(d=v.exclusivesData)==null?0:d.expirationTimestampMs)&&(v==null?0:(r=v.exclusivesData)==null?0:r.exclusiveOfferCountdownText)?!0:!1}; ogQ=function(v){var O,Y,S,d,r=(O=v.Y)==null?void 0:(Y=O.bannerData)==null?void 0:(S=Y.itemData)==null?void 0:(d=S.exclusivesData)==null?void 0:d.expirationTimestampMs;O=(Number(r)-Date.now())/1E3;if(O>0){if(O<604800){var b,z,M,V;Y=(b=v.Y)==null?void 0:(z=b.bannerData)==null?void 0:(M=z.itemData)==null?void 0:(V=M.exclusivesData)==null?void 0:V.exclusiveOfferCountdownText;if(Y!==void 0)for(b=Date.now(),z=g.y(Y),M=z.next();!M.done;M=z.next())if(M=M.value,M!==void 0&&M.text!==void 0&&(V=Number(M.textDisplayStartTimestampMs), !isNaN(V)&&b>=V)){M.insertCountdown?(O=M.text.replace(/\$0/,String(ay({seconds:O}))),v.L.yg(O)):v.L.yg(M.text);v.L.show();break}}var A,f,k,U;v.C.update({exclusive:(A=v.Y)==null?void 0:(f=A.bannerData)==null?void 0:(k=f.itemData)==null?void 0:(U=k.exclusivesData)==null?void 0:U.exclusiveOfferLabelText});v.C.show();No(v);var c;(c=v.R1)==null||c.start()}else bI1(v)}; bI1=function(v){var O;(O=v.R1)==null||O.stop();v.L.hide();v.C.hide();vi(v)}; jVJ=function(v){var O,Y,S=(O=v.Y)==null?void 0:(Y=O.bannerData)==null?void 0:Y.itemData;return v.N.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(S==null||!S.priceReplacementText)&&(S==null?0:S.promotionText)?S==null?void 0:S.promotionText.content:null}; WeJ=function(v){var O,Y,S=(O=v.Y)==null?void 0:(Y=O.bannerData)==null?void 0:Y.itemData,d,r;if(!(S!=null&&S.priceReplacementText||v.N.V("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(S==null?0:(d=S.dealsData)==null?0:(r=d.sales)==null?0:r.originalPrice)){var b,z;return S==null?void 0:(b=S.dealsData)==null?void 0:(z=b.sales)==null?void 0:z.originalPrice}return null}; z8Q=function(v){var O,Y,S=(O=v.Y)==null?void 0:(Y=O.bannerData)==null?void 0:Y.itemData,d,r,b,z;if(!((S==null?0:S.priceReplacementText)||v.N.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(S==null?0:(d=S.dealsData)==null?0:(r=d.sales)==null?0:r.originalPrice))&&(S==null?0:(b=S.dealsData)==null?0:(z=b.priceDrop)==null?0:z.referencePrice)){var M,V;return S==null?void 0:(M=S.dealsData)==null?void 0:(V=M.priceDrop)==null?void 0:V.referencePrice}return null}; sVm=function(v){var O,Y,S=(O=v.Y)==null?void 0:(Y=O.bannerData)==null?void 0:Y.itemData;if(S==null?0:S.priceReplacementText)return S==null?void 0:S.priceReplacementText;if((S==null?0:S.promotionText)&&v.N.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var d;return(S==null?void 0:S.price)+" "+(S==null?void 0:(d=S.promotionText)==null?void 0:d.content)}var r,b;if(S==null?0:(r=S.dealsData)==null?0:(b=r.sales)==null?0:b.originalPrice){var z,M;return S==null?void 0:(z=S.dealsData)== null?void 0:(M=z.sales)==null?void 0:M.salesPriceAccessibilityLabel}var V,A;if(S==null?0:(V=S.dealsData)==null?0:(A=V.priceDrop)==null?0:A.referencePrice){var f,k;return(S==null?void 0:S.price)+" "+(S==null?void 0:(f=S.dealsData)==null?void 0:(k=f.priceDrop)==null?void 0:k.referencePrice)}return S==null?void 0:S.price}; ggJ=function(v){if(v.N.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var O,Y,S;return v.U.t$?null:(O=v.Y)==null?void 0:(Y=O.bannerData)==null?void 0:(S=Y.itemData)==null?void 0:S.vendorName}var d,r,b,z,M,V;return v.U.t$||v.C.t$||((d=v.Y)==null?0:(r=d.bannerData)==null?0:(b=r.itemData)==null?0:b.affiliateDisclaimer)?null:(z=v.Y)==null?void 0:(M=z.bannerData)==null?void 0:(V=M.itemData)==null?void 0:V.vendorName}; Vf3=function(v,O){O0(v);if(O){var Y=g.tw.getState().entities;Y=g$(Y,"featuredProductsEntity",O);if(Y!=null&&Y.productsData){O=[];Y=g.y(Y.productsData);for(var S=Y.next();!S.done;S=Y.next()){S=S.value;var d=void 0;if((d=S)!=null&&d.identifier&&S.featuredSegments){v.JK.push(S);var r=void 0;d=g.y((r=S)==null?void 0:r.featuredSegments);for(r=d.next();!r.done;r=d.next()){var b=r.value;r=Mf$(b.startTimeSec);r!==void 0&&(b=Mf$(b.endTimeSec),O.push(new g.dh(r*1E3,b===void 0?0x7ffffffffffff:b*1E3,{id:S.identifier, namespace:"featured_product"})))}}}v.N.YZ(O)}}}; vi=function(v){if(v.trendingOfferEntityKey){var O=g.tw.getState().entities;if(O=g$(O,"trendingOfferEntity",v.trendingOfferEntityKey)){var Y,S,d;O.encodedSkuId!==((Y=v.Y)==null?void 0:(S=Y.bannerData)==null?void 0:(d=S.itemData)==null?void 0:d.encodedOfferSkuId)?No(v):(v.U.update({trendingOffer:O.shortLabel+" \u2022 "+O.countLabel}),v.U.show(),v.banner.update({vendor:ggJ(v)}))}else No(v)}else No(v)}; No=function(v){v.U.hide();v.banner.update({vendor:ggJ(v)})}; O0=function(v){v.JK=[];v.tv();v.N.oF("featured_product")}; AaQ=function(v){var O,Y,S,d,r=(O=v.Y)==null?void 0:(Y=O.bannerData)==null?void 0:(S=Y.itemData)==null?void 0:(d=S.hiddenProductOptions)==null?void 0:d.dropTimestampMs;O=(Number(r)-Date.now())/1E3;v.countdownTimer.yg(ay({seconds:O}));if(O>0){var b;(b=v.Cj)==null||b.start()}}; fy1=function(v){var O;(O=v.Cj)==null||O.stop();v.countdownTimer.hide()}; Mf$=function(v){if(v!==void 0&&v.trim()!==""&&(v=Math.trunc(Number(v.trim())),!(isNaN(v)||v<0)))return v}; udm=function(v,O,Y){g.K.call(this,{J:"div",hK:["ytp-info-panel-action-item"],K:[{J:"div",W:"ytp-info-panel-action-item-disclaimer",M3:"{{disclaimer}}"},{J:"a",hK:["ytp-info-panel-action-item-button","ytp-button"],T:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},K:[{J:"div",W:"ytp-info-panel-action-item-icon",M3:"{{icon}}"},{J:"div",W:"ytp-info-panel-action-item-label",M3:"{{label}}"}]}]});this.N=v;this.Y=Y;this.disclaimer=this.BW("ytp-info-panel-action-item-disclaimer");this.button= this.BW("ytp-info-panel-action-item-button");this.sE=!1;this.N.createServerVe(this.element,this,!0);this.listen("click",this.onClick);v="";Y=g.q(O==null?void 0:O.onTap,Xf);var S=g.q(Y,g.qU);this.sE=!1;S?(v=S.url||"",v.startsWith("//")&&(v="https:"+v),this.sE=!0,g.ih(this.button,g.Kg(v))):(S=g.q(Y,$mJ))&&!this.Y?((v=S.phoneNumbers)&&v.length>0?(v="sms:"+v[0],S.messageText&&(v+="?&body="+encodeURI(S.messageText))):v="",this.sE=!0,g.ih(this.button,g.Kg(v,[kNd]))):(Y=g.q(Y,Uml))&&!this.Y&&(v=Y.phoneNumber? "tel:"+Y.phoneNumber:"",this.sE=!0,g.ih(this.button,g.Kg(v,[can])));var d;if(Y=(d=O.disclaimerText)==null?void 0:d.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var r;this.update({label:(r=O.bodyText)==null?void 0:r.content,icon:h6(),disclaimer:Y})}else{this.disclaimer.style.display="none";var b;this.update({label:(b=O.bodyText)==null?void 0:b.content,icon:h6()})}this.N.setTrackingParams(this.element,O.trackingParams||null);this.sE&&(this.U={externalLinkData:{url:v}})}; Co3=function(v,O){var Y=Vs();g.QN.call(this,v,{J:"div",W:"ytp-info-panel-detail-skrim",K:[{J:"div",W:"ytp-info-panel-detail",T:{role:"dialog",id:Y},K:[{J:"div",W:"ytp-info-panel-detail-header",K:[{J:"div",W:"ytp-info-panel-detail-title",M3:"{{title}}"},{J:"button",hK:["ytp-info-panel-detail-close","ytp-button"],T:{"aria-label":"Close"},K:[g.pu()]}]},{J:"div",W:"ytp-info-panel-detail-body",M3:"{{body}}"},{J:"div",W:"ytp-info-panel-detail-items"}]}]},250);this.Y=O;this.items=this.BW("ytp-info-panel-detail-items"); this.G=new g.Z6(this);this.itemData=[];this.B=Y;this.S(this.BW("ytp-info-panel-detail-close"),"click",this.VC);this.S(this.BW("ytp-info-panel-detail-skrim"),"click",this.VC);this.S(this.BW("ytp-info-panel-detail"),"click",function(S){S.stopPropagation()}); g.w(this,this.G);this.N.createServerVe(this.element,this,!0);this.S(v,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",v.getVideoData());this.hide()}; yad=function(v,O){v=g.y(v.itemData);for(var Y=v.next();!Y.done;Y=v.next())Y=Y.value,Y.N.logVisibility(Y.element,O)}; po$=function(v,O){g.K.call(this,{J:"div",W:"ytp-info-panel-preview",T:{"aria-live":"assertive","aria-atomic":"true","aria-owns":O.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.aP(v.D()))},K:[{J:"div",W:"ytp-info-panel-preview-text",M3:"{{text}}"},{J:"div",W:"ytp-info-panel-preview-chevron",M3:"{{chevron}}"}]});var Y=this;this.N=v;this.RF=this.Y=this.videoId=null;this.G=this.showControls=this.U=!1;this.S(this.element,"click",function(){v.logClick(Y.element);v.KM();B2(O)}); this.fade=new g.bC(this,250,!1,100);g.w(this,this.fade);this.N.createServerVe(this.element,this,!0);this.S(v,"videodatachange",this.onVideoDataChange);this.S(v,"presentingplayerstatechange",this.dC);this.S(this.N,"paidcontentoverlayvisibilitychange",this.JH);this.S(this.N,"infopaneldetailvisibilitychange",this.JH);var S=v.getVideoData()||{};aym(S)&&xmQ(this,S);this.S(v,"onShowControls",this.Bl);this.S(v,"onHideControls",this.QU)}; xmQ=function(v,O){if(!O.eA||!v.N.a4()){var Y=O.Xi||1E4,S=aym(O);v.Y?O.videoId&&O.videoId!==v.videoId&&(g.vI(v.Y),v.videoId=O.videoId,S?(TU1(v,Y,O),v.RI()):(v.VC(),v.Y.dispose(),v.Y=null)):S&&(O.videoId&&(v.videoId=O.videoId),TU1(v,Y,O),v.RI())}}; aym=function(v){var O,Y,S,d;return!!((O=v.Dq)==null?0:(Y=O.title)==null?0:Y.content)||!!((S=v.Dq)==null?0:(d=S.bodyText)==null?0:d.content)}; TU1=function(v,O,Y){v.Y&&v.Y.dispose();v.Y=new g.mX(v.dpx,O,v);g.w(v,v.Y);var S;O=((S=Y.Dq)==null?void 0:S.trackingParams)||null;v.N.setTrackingParams(v.element,O);var d;var r,b;if(Y==null?0:(r=Y.Dq)==null?0:(b=r.title)==null?0:b.content){var z;S=(d=Y.Dq)==null?void 0:(z=d.title)==null?void 0:z.content;var M,V;if((M=Y.Dq)==null?0:(V=M.bodyText)==null?0:V.content)S+=" \u2022 ";d=S}else d="";var A,f;Y=((A=Y.Dq)==null?void 0:(f=A.bodyText)==null?void 0:f.content)||"";v.update({text:d+Y,chevron:g.x9()})}; lyQ=function(v,O){v.Y&&(g.G(O,8)?(v.U=!0,v.RI(),v.Y.start()):(g.G(O,2)||g.G(O,64))&&v.videoId&&(v.videoId=null))}; Y5=function(v){var O=null;try{O=v.toLocaleString("en",{style:"percent"})}catch(Y){O=v.toLocaleString(void 0,{style:"percent"})}return O}; So=function(v,O){var Y=0;v=g.y(v);for(var S=v.next();!(S.done||S.value.startTime>O);S=v.next())Y++;return Y===0?Y:Y-1}; Fel=function(v,O){for(var Y=0,S=g.y(v),d=S.next();!d.done;d=S.next()){d=d.value;if(O=d.timeRangeStartMillis&&O0?O[0]:null;var Y=g.Jc("ytp-chrome-bottom"),S=g.Jc("ytp-ad-module");v.B=!(Y==null||!Y.contains(O));v.X=!(S==null||!S.contains(O));v.j=!(O==null||!O.hasAttribute("data-tooltip-target-fixed"));return O}; iIn=function(v,O,Y){if(!v.C){if(O){v.tooltipRenderer=O;O=v.tooltipRenderer.text;var S=!1,d;(O==null?0:(d=O.runs)==null?0:d.length)&&O.runs[0].text&&(v.update({title:O.runs[0].text.toString()}),S=!0);g.L4(v.title,S);O=v.tooltipRenderer.detailsText;d=!1;var r;if((O==null?0:(r=O.runs)==null?0:r.length)&&O.runs[0].text){S=O.runs[0].text.toString();r=S.indexOf("$TARGET_ICON");if(r>-1)if(v.tooltipRenderer.targetId){O=[];S=S.split("$TARGET_ICON");var b=new g.A6({J:"span",W:"ytp-promotooltip-details-icon", K:[Pow[v.tooltipRenderer.targetId]]});g.w(v,b);for(var z=[],M=g.y(S),V=M.next();!V.done;V=M.next())V=new g.A6({J:"span",W:"ytp-promotooltip-details-component",M3:V.value}),g.w(v,V),z.push(V);S.length===2?(O.push(z[0].element),O.push(b.element),O.push(z[1].element)):S.length===1&&(r===0?(O.push(b.element),O.push(z[0].element)):(O.push(z[0].element),O.push(b.element)));r=O.length?O:null}else r=null;else r=S;if(r){if(typeof r!=="string")for(g.Nn(v.details),d=g.y(r),r=d.next();!r.done;r=d.next())v.details.appendChild(r.value); else v.update({details:r});d=!0}}g.L4(v.details,d);d=v.tooltipRenderer.acceptButton;r=!1;var A,f,k;((A=g.q(d,g.wZ))==null?0:(f=A.text)==null?0:(k=f.runs)==null?0:k.length)&&g.q(d,g.wZ).text.runs[0].text&&(v.update({acceptButtonText:g.q(d,g.wZ).text.runs[0].text.toString()}),r=!0);g.L4(v.acceptButton,r);A=v.tooltipRenderer.dismissButton;f=!1;var U,c,a;((U=g.q(A,g.wZ))==null?0:(c=U.text)==null?0:(a=c.runs)==null?0:a.length)&&g.q(A,g.wZ).text.runs[0].text&&(v.update({dismissButtonText:g.q(A,g.wZ).text.runs[0].text.toString()}), f=!0);g.L4(v.dismissButton,f)}Y&&(v.G=Y);v.Y=Kei(v);v.L=!1;v.N.D().V("web_player_hide_nitrate_promo_tooltip")||v.t9(!0);GNw(v);v.t$&&!v.tK&&(v.tK=!0,v.Qg.kx(0));v.U&&v.N.logVisibility(v.element,v.t$)}}; z9=function(v){v.t9(!1);v.U&&v.N.logVisibility(v.element,v.t$)}; mm1=function(v){var O,Y,S,d=((O=g.q(v.acceptButton,g.wZ))==null?void 0:(Y=O.text)==null?void 0:(S=Y.runs)==null?void 0:S.length)&&!!g.q(v.acceptButton,g.wZ).text.runs[0].text,r,b,z;O=((r=g.q(v.dismissButton,g.wZ))==null?void 0:(b=r.text)==null?void 0:(z=b.runs)==null?void 0:z.length)&&!!g.q(v.dismissButton,g.wZ).text.runs[0].text;return d||O}; GNw=function(v){var O;if(!(O=!v.Y)){O=v.Y;var Y=window.getComputedStyle(O);O=Y.display==="none"||Y.visibility==="hidden"||O.getAttribute("aria-hidden")==="true"}if(O||v.N.isMinimized())v.t9(!1);else if(O=g.Qm(v.Y),O.width&&O.height){v.N.Od(v.element,v.Y);var S=v.N.j4().getPlayerSize().height;Y=g.Qm(v.BW("ytp-promotooltip-container")).height;v.B?v.element.style.top=S-Y-O.height-12+"px":v.j||(S=v.N.wW().height-Y-O.height-12,v.element.style.top=S+"px");S=v.BW("ytp-promotooltip-pointer");var d=g.e9(v.Y, v.N.getRootNode()),r=Number(v.element.style.left.replace(/[^\d\.]/g,""));v=v.N.isFullscreen()?18:12;S.style.left=d.x-r+O.width/2-v+"px";S.style.top=Y+"px"}else v.t9(!1)}; s0=function(v){g.K.call(this,{J:"button",hK:["ytp-replay-button","ytp-button"],T:{title:"Replay"},K:[g.eF()]});this.N=v;this.S(v,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.uM(v.getPlayerStateObject());$e(this.N,this.element,this)}; gP=function(v,O){O=O===void 0?240:O;g.K.call(this,{J:"button",hK:["ytp-button","ytp-search-button"],T:{title:"Search","data-tooltip-opaque":String(g.aP(v.D()))},K:[{J:"div",W:"ytp-search-icon",M3:"{{icon}}"},{J:"div",W:"ytp-search-title",M3:"Search"}]});this.api=v;this.U=O;this.visible=!1;this.updateValue("icon",{J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},K:[{J:"path",W:"ytp-svg-fill",T:{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.Y();this.S(v,"appresize",this.Y);this.S(v,"videodatachange",this.Y);$e(v,this.element,this)}; Ma=function(v){g.K.call(this,{J:"div",W:"ytp-seek-overlay",K:[{J:"div",hK:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],K:[{J:"div",hK:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],K:[{J:"svg",T:{viewBox:"0 0 22 32",width:"22",height:"32"},K:[{J:"path",T:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]},{J:"div",W:"ytp-seek-overlay-duration",M3:"{{durationBack}}"}]},{J:"div",hK:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-forward"], K:[{J:"div",W:"ytp-seek-overlay-duration",M3:"{{durationForward}}"},{J:"div",hK:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],K:[{J:"svg",T:{viewBox:"0 0 22 32",width:"22",height:"32"},K:[{J:"path",T:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]}]},{J:"div",W:"ytp-seek-overlay-message",K:[{J:"div",W:"ytp-seek-overlay-message-icon",M3:"{{icon}}"},{J:"div",W:"ytp-seek-overlay-message-text",M3:"{{text}}"}]}]});var O=this;this.N=v;this.L=0;this.Y="hidden"; this.tK=0;this.X=this.BW("ytp-seek-overlay-animation-back");this.j=this.BW("ytp-seek-overlay-animation-forward");this.Ug=this.BW("ytp-seek-overlay-message");this.C=new g.mX(function(){tf$(O)},g.Vq(this.N.D().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.w(this,this.C);this.N.createClientVe(this.j,this,28240);this.N.createClientVe(this.X,this,28239);this.N.logVisibility(this.j,!0);this.N.logVisibility(this.X,!0);this.hide()}; Dmi=function(v,O){v.U=v.G.animate([{offset:0,opacity:O,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});v.U.addEventListener("finish",function(){v.U=void 0;v.C.start();v.Y="lingering"})}; HI7=function(v,O,Y){Y=Y===void 0?!1:Y;var S=[],d={offset:0,transform:"translateX("+(v.B===-1?30:-30)+"px)"};Y&&(d.opacity="0");S.push(d);Y&&S.push({offset:.5,opacity:"1"});S.push({offset:1,transform:"translateX(0)"});Y=O.animate(S,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});O.querySelector("path").animate([{offset:0,d:v.B===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'},{offset:1,d:v.B===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'}],{duration:333, easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});return Y}; NU1=function(v){if((0,g.J)()-v.tK>=(g.Vq(v.N.D().experiments,"web_player_seek_overlay_additional_arrow_threshold")||200)){var O=v.G.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);O.classList.add("ytp-seek-overlay-arrow-additional");O.classList.remove("ytp-seek-overlay-arrow-persistent");v.G.appendChild(O);HI7(v,O,!0).addEventListener("finish",function(){O.remove()})}}; tf$=function(v,O,Y){Y=Y===void 0?!0:Y;v.U=v.G.animate([{offset:0,opacity:O===void 0?1:O},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});Y&&(v.U.addEventListener("finish",function(){v.U=void 0;vjE(v);v.hide()}),v.Y="fading-out")}; OWn=function(v){var O=Number(getComputedStyle(v.G).opacity);v.U.cancel();v.U=void 0;return O}; vjE=function(v){v.L=0;v.Y="hidden";v.B=void 0;v.G=void 0;v.tK=0;v.C.stop();v.U=void 0}; Ygd=function(v,O,Y){v.updateValue("text",O);if(Y){a:{switch(Y){case "PREMIUM_STANDALONE":O=eV1();break a;case "PREMIUM_STANDALONE_CAIRO":O=Ed3();break a}O=void 0}v.updateValue("icon",O)}O=g.y(v.Ug.getAnimations());for(Y=O.next();!Y.done;Y=O.next())Y.value.cancel();v.Ug.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){v.updateValue("text","");v.updateValue("icon","")})}; g.Vx=function(v,O,Y,S){S=S===void 0?240:S;g.K.call(this,{J:"button",hK:["ytp-button","ytp-share-button"],T:{title:"Share","aria-haspopup":"true","aria-owns":Y.element.id,"data-tooltip-opaque":String(g.aP(v.D()))},K:[{J:"div",W:"ytp-share-icon",M3:"{{icon}}"},{J:"div",W:"ytp-share-title",M3:"Share"}]});this.api=v;this.Y=O;this.G=Y;this.B=S;this.U=this.visible=!1;this.tooltip=this.Y.wK();v.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.S(v,"videodatachange",this.q3); this.S(v,"videoplayerreset",this.q3);this.S(v,"appresize",this.q3);this.S(v,"presentingplayerstatechange",this.q3);this.q3();this.addOnDisposeCallback(g.fU(this.tooltip,this.element))}; SgQ=function(v){var O=v.api.D(),Y=v.api.getVideoData(),S=g.aP(O)&&g.yN(v.api)&&g.G(v.api.getPlayerStateObject(),128);O=O.G||O.disableSharing&&v.api.getPresentingPlayerType()!==2||!Y.showShareButton||Y.IX||S||g.Jz(Y)||v.U;S=v.api.j4().getPlayerSize().width;return!!Y.videoId&&S>=v.B&&!O}; dXg=function(v,O){O.name!=="InvalidStateError"&&O.name!=="AbortError"&&(O.name==="NotAllowedError"?(v.Y.KM(),B2(v.G,v.element,!1)):g.LP(O))}; bWm=function(v,O){var Y=Vs(),S=v.D();Y={J:"div",W:"ytp-share-panel",T:{id:Vs(),role:"dialog","aria-labelledby":Y},K:[{J:"div",W:"ytp-share-panel-inner-content",K:[{J:"div",W:"ytp-share-panel-title",T:{id:Y},M3:"Share"},{J:"a",hK:["ytp-share-panel-link","ytp-no-contextmenu"],T:{href:"{{link}}",target:S.j,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},M3:"{{linkText}}"},{J:"label",W:"ytp-share-panel-include-playlist",K:[{J:"input",W:"ytp-share-panel-include-playlist-checkbox",T:{type:"checkbox", checked:"true"}},"Include playlist"]},{J:"div",W:"ytp-share-panel-loading-spinner",K:[Ot()]},{J:"div",W:"ytp-share-panel-service-buttons",M3:"{{buttons}}"},{J:"div",W:"ytp-share-panel-error",M3:"An error occurred while retrieving sharing information. Please try again later."}]},{J:"button",hK:["ytp-share-panel-close","ytp-button"],T:{title:"Close"},K:[g.pu()]}]};g.QN.call(this,v,Y,250);var d=this;this.moreButton=null;this.api=v;this.tooltip=O.wK();this.G=[];this.C=this.BW("ytp-share-panel-inner-content"); this.closeButton=this.BW("ytp-share-panel-close");this.S(this.closeButton,"click",this.VC);this.addOnDisposeCallback(g.fU(this.tooltip,this.closeButton));this.B=this.BW("ytp-share-panel-include-playlist-checkbox");this.S(this.B,"click",this.q3);this.Y=this.BW("ytp-share-panel-link");this.addOnDisposeCallback(g.fU(this.tooltip,this.Y));this.api.createClientVe(this.Y,this,164503);this.S(this.Y,"click",function(r){r.preventDefault();d.api.logClick(d.Y);var b=d.api.getVideoUrl(!0,!0,!1,!1);b=rb$(d,b); g.vC(b,d.api,r)&&d.api.PW("SHARE_CLICKED")}); this.listen("click",this.ZH);this.S(v,"videoplayerreset",this.hide);this.S(v,"fullscreentoggled",this.onFullscreenToggled);this.S(v,"onLoopRangeChange",this.JKx);this.hide()}; WPi=function(v,O){ojE(v);for(var Y=O.links||O.shareTargets,S=0,d={},r=0;r0&&!t&&!L?(Q.length===2&&(Q=["noreferrer"]),g.Nv(U,a,k,Q[0]),U=vHc()):(x=l.join(","),ug()&&U.navigator&&U.navigator.standalone&&k&&k!="_self"?(x=g.tc("A"),g.ih(x,a),x.target=k,T&&(x.rel="noreferrer"),((c=c.attributionsrc)||c==="")&&x.setAttribute("attributionsrc",c),c=document.createEvent("MouseEvent"), c.initMouseEvent("click",!0,!0,U,1),x.dispatchEvent(c),U=vHc()):T?(U=g.Nv(U,"",k,x),c=g.qv(a),U&&(U.opener=null,c===""&&(c="javascript:''"),c='',c=Dc(c),(a=U.document)&&a.write&&(a.write(H5(c)),a.close()))):((U=g.Nv(U,a,k,x))&&c.noopener&&(U.opener=null),U&&c.noreferrer&&(U.opener=null)));U&&(U.opener||(U.opener=window),U.focus());f.preventDefault()}}}(d)); d.bL.addOnDisposeCallback(g.fU(v.tooltip,d.bL.element));z==="Facebook"?v.api.createClientVe(d.bL.element,d.bL,164504):z==="Twitter"&&v.api.createClientVe(d.bL.element,d.bL,164505);v.S(d.bL.element,"click",function(A){return function(){v.api.logClick(A.bL.element)}}(d)); v.api.logVisibility(d.bL.element,!0);v.G.push(d.bL);S++}}var M=O.more||O.moreLink,V=new g.K({J:"a",hK:["ytp-share-panel-service-button","ytp-button"],K:[{J:"span",W:"ytp-share-panel-service-button-more",K:[{J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},K:[{J:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{J:"path",T:{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"}}]}]}],T:{href:M,target:"_blank",title:"More"}});V.listen("click",function(A){var f=M;v.api.logClick(v.moreButton.element);f=rb$(v,f);g.vC(f,v.api,A)&&v.api.PW("SHARE_CLICKED")}); V.addOnDisposeCallback(g.fU(v.tooltip,V.element));v.api.createClientVe(V.element,V,164506);v.S(V.element,"click",function(){v.api.logClick(V.element)}); v.api.logVisibility(V.element,!0);v.G.push(V);v.moreButton=V;v.updateValue("buttons",v.G)}; rb$=function(v,O){var Y={};g.aP(v.api.D())&&(g.dB(v.api,"addEmbedsConversionTrackingParams",[Y]),O=g.Te(O,Y));return O}; ojE=function(v){for(var O=g.y(v.G),Y=O.next();!Y.done;Y=O.next())Y=Y.value,Y.detach(),g.sM(Y);v.G=[]}; Ah=function(v){return v===void 0||v.startSec===void 0||v.endSec===void 0?!1:!0}; z6E=function(v,O){v.startSec+=O;v.endSec+=O}; gjJ=function(v){k6.call(this,v);this.U=this.Y=this.isContentForward=this.L=!1;sY1(this);this.S(this.N,"changeProductsInVideoVisibility",this.oug);this.S(this.N,"videodatachange",this.onVideoDataChange)}; MtJ=function(v){v.C&&v.FO.element.removeChild(v.C.element);v.C=void 0}; Ab7=function(v,O){return O.map(function(Y){var S,d;if((Y=(S=g.q(Y,Vt$))==null?void 0:(d=S.thumbnail)==null?void 0:d.thumbnails)&&Y.length!==0)return Y[0].url}).filter(function(Y){return Y!==void 0}).map(function(Y){Y=new g.K({J:"img", W:"ytp-suggested-action-product-thumbnail",T:{alt:"",src:Y}});g.w(v,Y);return Y})}; fil=function(v,O){v.isContentForward=O;g.gr(v.badge.element,"ytp-suggested-action-badge-content-forward",O)}; ff=function(v){var O=v.isContentForward&&!v.fY();g.gr(v.badge.element,"ytp-suggested-action-badge-preview-collapsed",O&&v.Y);g.gr(v.badge.element,"ytp-suggested-action-badge-preview-expanded",O&&v.U)}; $5=function(v,O,Y){return new g.dh(v*1E3,O*1E3,{priority:9,namespace:Y})}; $XJ=function(v){v.N.oF("shopping_overlay_visible");v.N.oF("shopping_overlay_preview_collapsed");v.N.oF("shopping_overlay_preview_expanded");v.N.oF("shopping_overlay_expanded")}; sY1=function(v){v.S(v.N,g.bI("shopping_overlay_visible"),function(){v.Gm(!0)}); v.S(v.N,g.o1("shopping_overlay_visible"),function(){v.Gm(!1)}); v.S(v.N,g.bI("shopping_overlay_expanded"),function(){v.Ug=!0;$6(v)}); v.S(v.N,g.o1("shopping_overlay_expanded"),function(){v.Ug=!1;$6(v)}); v.S(v.N,g.bI("shopping_overlay_preview_collapsed"),function(){v.Y=!0;ff(v)}); v.S(v.N,g.o1("shopping_overlay_preview_collapsed"),function(){v.Y=!1;ff(v)}); v.S(v.N,g.bI("shopping_overlay_preview_expanded"),function(){v.U=!0;ff(v)}); v.S(v.N,g.o1("shopping_overlay_preview_expanded"),function(){v.U=!1;ff(v)})}; cbm=function(v){g.K.call(this,{J:"div",W:"ytp-shorts-title-channel",K:[{J:"a",W:"ytp-shorts-title-channel-logo",T:{href:"{{channelLink}}",target:v.D().j,"aria-label":"{{channelLogoLabel}}"}},{J:"div",W:"ytp-shorts-title-expanded-heading",K:[{J:"div",W:"ytp-shorts-title-expanded-title",K:[{J:"a",M3:"{{expandedTitle}}",T:{href:"{{channelTitleLink}}",target:v.D().j,tabIndex:"0"}}]}]}]});var O=this;this.api=v;this.Y=this.BW("ytp-shorts-title-channel-logo");this.channelName=this.BW("ytp-shorts-title-expanded-title"); this.subscribeButton=null;v.createClientVe(this.Y,this,36925);this.S(this.Y,"click",function(Y){O.api.logClick(O.Y);g.Nv(window,kFE(O));Y.preventDefault()}); v.createClientVe(this.channelName,this,37220);this.S(this.channelName,"click",function(Y){O.api.logClick(O.channelName);g.Nv(window,kFE(O));Y.preventDefault()}); UXm(this);this.S(v,"videodatachange",this.q3);this.S(v,"videoplayerreset",this.q3);this.q3()}; UXm=function(v){if(!v.api.D().rR){var O=v.api.getVideoData(),Y=new g.Gv("Subscribe",null,"Subscribed",null,!0,!1,O.HS,O.subscribed,"channel_avatar",null,v.api,!0);v.api.createServerVe(Y.element,v);var S;v.api.setTrackingParams(Y.element,((S=O.subscribeButtonRenderer)==null?void 0:S.trackingParams)||null);v.S(Y.element,"click",function(){v.api.logClick(Y.element)}); v.subscribeButton=Y;g.w(v,v.subscribeButton);v.subscribeButton.C1(v.element)}}; kFE=function(v){var O=v.api.D(),Y=v.api.getVideoData();Y=g.N_(O)+Y.On;if(!g.aP(O))return Y;O={};g.dB(v.api,"addEmbedsConversionTrackingParams",[O]);return g.Te(Y,O)}; k5=function(v){g.QN.call(this,v,{J:"button",hK:["ytp-skip-intro-button","ytp-popup","ytp-button"],K:[{J:"div",W:"ytp-skip-intro-button-text",M3:"Skip Intro"}]},100);var O=this;this.G=!1;this.Y=new g.mX(function(){O.hide()},5E3); this.lO=this.M7=NaN;g.w(this,this.Y);this.L=function(){O.show()}; this.C=function(){O.hide()}; this.B=function(){var Y=O.N.getCurrentTime();Y>O.M7/1E3&&Y0?{J:"svg",T:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},K:[{J:"path",hK:["ytp-circle-arrow","ytp-svg-fill"],T:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {J:"text",hK:["ytp-jump-button-text","ytp-svg-fill"],T:{x:"7.05",y:"15.05"}}]}:{J:"svg",T:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},K:[{J:"path",hK:["ytp-circle-arrow","ytp-svg-fill"],T:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {J:"text",hK:["ytp-jump-button-text","ytp-svg-fill"],T:{x:"6.5",y:"15"}}]}]});var Y=this;this.N=v;this.Y=O;this.U=new g.mX(function(){Y.G?(Y.G=!1,Y.U.start()):Y.element.classList.remove("ytp-jump-spin","backwards")},250); this.G=!1;(O=O>0)?this.N.createClientVe(this.element,this,36843):this.N.createClientVe(this.element,this,36844);var S=g.kD(O?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.Y).toString()});this.update({title:S,"data-title-no-tooltip":S,"aria-keyshortcuts":O?"\u2192":"\u2190"});this.B=this.element.querySelector(".ytp-jump-button-text");this.B.textContent=Math.abs(this.Y).toString();this.listen("click",this.onClick,this);$e(v,this.element, this)}; lim=function(v,O){O?v.element.classList.add("ytp-jump-button-enabled"):v.element.classList.remove("ytp-jump-button-enabled");v.N.logVisibility(v.element,O);v.N.GG()}; x5=function(v,O){ci.call(this,v,O,"timedMarkerCueRange","View key moments");this.S(v,g.o1("timedMarkerCueRange"),this.vD);this.S(v,"updatemarkervisibility",this.updateVideoData)}; FPm=function(v){var O,Y=(O=v.N.getVideoData())==null?void 0:O.xg;if(Y)for(v=v.B.f1,Y=g.y(Y),O=Y.next();!O.done;O=Y.next())if(O=v[O.value]){var S=void 0,d=void 0,r=void 0;if(((S=O.onTap)==null?void 0:(d=S.innertubeCommand)==null?void 0:(r=d.changeEngagementPanelVisibilityAction)==null?void 0:r.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return O}}; pf=function(v){var O=v.V("web_enable_pip_on_miniplayer");g.K.call(this,{J:"button",hK:["ytp-miniplayer-button","ytp-button"],T:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},K:["{{icon}}"]});this.N=v;this.visible=!1;this.listen("click",this.onClick);this.S(v,"fullscreentoggled",this.q3);this.updateValue("title",g.ke(v,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer", icon:this.N.V("delhi_modern_web_player_icons")?{J:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}:O?{J:"svg",T:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},K:[{J:"g",T:{transform:"translate(96, -96) scale(0.8)"},K:[{J:"path",p_:!0,T:{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"}}]}]}:RV7()});$e(v,this.element,this);v.createClientVe(this.element,this,62946);this.q3()}; T9=function(v,O,Y,S,d,r){r=r===void 0?!1:r;var b={J:"div",hK:["ytp-input-slider-section"],K:[{J:"input",W:"ytp-input-slider",T:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};d&&b.K.unshift(d);r&&b.hK.push("ytp-vertical-slider");g.K.call(this,b);this.G=v;this.B=O;this.C=Y;this.initialValue=S;this.header=d;this.U=this.BW("ytp-input-slider");this.Y=S?S:v;this.init();this.S(this.U,"input",this.FT);this.S(this.U,"keydown", this.j$)}; lO=function(v,O){v.Y=O;v.updateValue("slidervalue",v.Y);v.U.valueAsNumber=v.Y;h6l(v,O)}; h6l=function(v,O){v.U.style.setProperty("--yt-slider-shape-gradient-percent",(O-v.G)/(v.B-v.G)*100+"%")}; R6l=function(v){var O=v.isMuted()?0:v.getVolume();T9.call(this,0,100,1,O,void 0,!0);this.N=v;this.X=Av(this.gC,10,this);this.L=!1;this.S(v,"onVolumeChange",this.onVolumeChange);this.S(this.element,"keydown",this.j$);this.S(this.element,"wheel",this.h6)}; e6$=function(v,O){g.K.call(this,{J:"div",T:{tabindex:"0",title:"Volume"},hK:["ytp-volume-popover"]});var Y=this;this.isVisible=!1;this.tooltip=O.wK();this.U=new R6l(v);g.w(this,this.U);this.U.C1(this.element);this.Y=new g.mX(function(){Fx(Y,!1)},300); this.listen("mouseenter",function(){Y.Y.stop()}); this.listen("mouseleave",function(){Y.Y.start()}); this.listen("focus",function(){Y.Y.stop()}); this.S(this.U.U,"focus",function(){Y.Y.stop()}); this.listen("blur",function(){Y.Y.start()}); this.addOnDisposeCallback(g.fU(O.wK(),this.element,-120));g.w(this,this.Y)}; Fx=function(v,O){v.element.classList.toggle("ytp-volume-popover-hovering",O);v.isVisible=O}; hh=function(v,O,Y){Y=Y===void 0?!1:Y;g.K.call(this,{J:"button",hK:["ytp-mute-button","ytp-button"],T:v.D().FO?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},K:[{J:"div",W:"ytp-volume-icon",M3:"{{icon}}"}]});var S=this;this.N=v;this.g8=Y;this.U=null;this.L=this.Ug=this.X=this.JK=NaN;this.N3=this.j=null;this.C=[];this.B=[];this.visible=!1;this.G=this.Y=this.tK=null;v.V("delhi_modern_web_player")&& this.update({"data-priority":4});Y=this.N.D();this.updateValue("icon",Lu());this.tooltip=O.wK();this.G=g.Jc("ytp-volume-icon",this.element);this.U=new g.A6({J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{J:"defs",K:[{J:"clipPath",T:{id:"ytp-svg-volume-animation-mask"},K:[{J:"path",T:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{J:"path",T:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{J:"path",W:"ytp-svg-volume-animation-mover",T:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]}, {J:"clipPath",T:{id:"ytp-svg-volume-animation-slash-mask"},K:[{J:"path",W:"ytp-svg-volume-animation-mover",T:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{J:"path",p_:!0,hK:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],T:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{J:"path",p_:!0,hK:["ytp-svg-fill","ytp-svg-volume-animation-hider"], T:{"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.w(this,this.U);this.j=this.U.BW("ytp-svg-volume-animation-speaker");this.N3=this.j.getAttribute("d");this.C=g.qn("ytp-svg-volume-animation-mover",this.U.element);this.B=g.qn("ytp-svg-volume-animation-hider",this.U.element);this.FO=new PR;g.w(this,this.FO);this.HW=new PR;g.w(this,this.HW);this.S(v,"appresize",this.pB);this.S(v,"onVolumeChange",this.onVolumeChange);v.V("delhi_modern_web_player")? this.listen("click",this.x2g):this.listen("click",this.i5);Y.FO?v.V("delhi_modern_web_player")?(this.Y=new e6$(v,O),this.Y.C1(this.element),g.w(this,this.Y),this.S(this.G,"mouseover",function(){if(!S.N.wx()){var d;(d=S.Y)!=null&&Fx(d,!0);var r;(r=S.Y)!=null&&r.Y.stop()}}),this.S(this.G,"mouseout",function(){var d; (d=S.Y)!=null&&d.Y.start()}),this.addOnDisposeCallback(g.fU(O.wK(),this.element,-120))):this.addOnDisposeCallback(g.fU(O.wK(),this.element)):Ejm(this); this.message=null;v.createClientVe(this.element,this,28662);this.pB(v.j4().getPlayerSize());this.setVolume(v.getVolume(),v.isMuted())}; Bsn=function(v,O){v.JK=O;var Y=v.N3;O&&(Y+=ifi(QYg,LPm,O));v.j.setAttribute("d",Y)}; ZW7=function(v,O){v.Ug=O;for(var Y=20*O,S=0;S=3&&v.N.getPresentingPlayerType()!==2}; njJ=function(v){var O=CU(v.N.QC());return O?v.Y?O.fT():O.FR():!1}; wPJ=function(v){var O={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},Y=v.playlist!=null&&v.playlist.fT();Y=g.yN(v.N)&&(!v.Y||Y);var S=v.Y&&g.lb(v.N),d=njJ(v),r=v.Y&&v.N.getPresentingPlayerType()===5,b=g.ke(v.N,"Next","SHIFT+n"),z=g.ke(v.N,"Previous","SHIFT+p");if(r)O.title="Start video";else if(v.G)O.title="Replay";else if(Y){var M=null;v.playlist&&(M=g.Ww(v.playlist,v.Y?pJc(v.playlist):Tl3(v.playlist)));if(M){if(M.videoId){var V=v.playlist.listId; O.url=v.N.D().getVideoUrl(M.videoId,V?V.toString():void 0)}O.text=M.title;O.duration=M.lengthText?M.lengthText:M.lengthSeconds?g.lC(M.lengthSeconds):null;O.preview=M.JE("mqdefault.jpg")}v.Y?(O.title=b,O["data-title-no-tooltip"]="Next",O["aria-keyshortcuts"]="SHIFT+n"):(O.title=z,O["data-title-no-tooltip"]="Previous",O["aria-keyshortcuts"]="SHIFT+p")}else if(S){if(z=(M=v.videoData)==null?void 0:g.it(M))O.url=z.qY(),O.text=z.title,O.duration=z.lengthText?z.lengthText:z.lengthSeconds?g.lC(z.lengthSeconds): null,O.preview=z.JE("mqdefault.jpg");O.title=b;O["data-title-no-tooltip"]="Next";O["aria-keyshortcuts"]="SHIFT+n"}O.disabled=!S&&!Y&&!d&&!r;v.update(O);v.L=!!O.url;S||Y||v.G||d||r?v.U||(v.U=g.fU(v.tooltip,v.element),v.C=v.listen("click",v.onClick,v)):v.U&&(v.U(),v.U=null,v.g2(v.C),v.C=null);v.tooltip.GG();g.gr(v.element,"ytp-playlist-ui",v.Y&&(Y||v.N.V("web_hide_next_button")))}; KPE=function(v,O){g.K.call(this,{J:"div",W:"ytp-fine-scrubbing",K:[{J:"div",W:"ytp-fine-scrubbing-draggable",K:[{J:"div",W:"ytp-fine-scrubbing-thumbnails",T:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{J:"div",T:{"aria-hidden":"true"},W:"ytp-fine-scrubbing-cursor"},{J:"div",W:"ytp-fine-scrubbing-seek-time",T:{"aria-hidden":"true"}, M3:"{{seekTime}}"},{J:"div",W:"ytp-fine-scrubbing-play",K:[RF()],T:{title:"Play from this position",role:"button"}},{J:"div",W:"ytp-fine-scrubbing-dismiss",K:[g.pu()],T:{title:"Exit precise seeking",role:"button"}}]});var Y=this;this.api=v;this.C=this.BW("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.BW("ytp-fine-scrubbing-dismiss");this.HW=this.BW("ytp-fine-scrubbing-draggable");this.playButton=this.BW("ytp-fine-scrubbing-play");this.thumbnails=[];this.U=[];this.g8=this.Y=0;this.FO=void 0; this.tK=NaN;this.AK=this.j=this.G=this.X=0;this.B=[];this.interval=this.frameCount=0;this.L=160;this.scale=1;this.XO=0;this.isEnabled=this.N3=!1;Jbl(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.fU(O,this.dismissButton));this.addOnDisposeCallback(g.fU(O,this.playButton));this.JK=new g.EA(this.HW,!0);this.JK.subscribe("dragstart",this.Qt,this);this.JK.subscribe("dragmove",this.HF,this);this.JK.subscribe("dragend",this.Fs,this);this.S(v,"SEEK_COMPLETE",this.kY);v.V("web_fix_fine_scrubbing_false_play")&& this.S(v,"rootnodemousedown",function(S){Y.Ug=S}); this.C.addEventListener("keydown",function(){}); g.w(this,this.JK);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.C,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; Jbl=function(v,O){var Y=g.lC(O),S=g.kD("Seek to $PROGRESS",{PROGRESS:g.lC(O,!0)});v.update({ariamin:0,ariamax:Math.floor(v.api.getDuration()),arianow:Math.floor(O),arianowtext:S,seekTime:Y})}; Pvg=function(v){v.tK=NaN;v.j=0;v.X=v.G}; mXc=function(v){var O=v.api.HE();if(O){var Y=90*v.scale,S=RJ(O,160*v.scale);if(O=O.levels[S]){v.L=O.width;if(!v.B.length){S=[];for(var d=eJ(O,O.yW()),r=O.columns*O.rows,b=O.frameCount,z=0;z<=d;z++)for(var M=bv.B.length;)S= void 0,(S=v.thumbnails.pop())==null||S.dispose();for(;v.thumbnails.lengthY.length;)S=void 0,(S=v.U.pop())==null||S.dispose(); for(;v.U.length-Y?-O/Y*v.interval*.5:-(O+Y/2)/Y*v.interval}; ttE=function(v){return-((v.C.offsetWidth||(v.frameCount-1)*v.L*v.scale)-v.Y/2)}; GFi=function(){g.K.call(this,{J:"div",W:"ytp-fine-scrubbing-thumbnail"})}; iW7=function(){g.K.call(this,{J:"div",W:"ytp-fine-scrubbing-chapter-title",K:[{J:"div",W:"ytp-fine-scrubbing-chapter-title-content",M3:"{{chapterTitle}}"}]})}; HWn=function(v){g.K.call(this,{J:"div",W:"ytp-heat-map-chapter",K:[{J:"svg",W:"ytp-heat-map-svg",T:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},K:[{J:"defs",K:[{J:"clipPath",T:{id:"{{id}}"},K:[{J:"path",W:"ytp-heat-map-path",T:{d:"",fill:"white"}}]},{J:"linearGradient",T:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},K:[{J:"stop",T:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{J:"stop",T:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{J:"rect",W:"ytp-heat-map-graph",T:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{J:"rect",W:"ytp-heat-map-hover",T:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{J:"rect",W:"ytp-heat-map-play",T:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{J:"path",W:"ytp-modern-heat-map",T:{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.X=this.BW("ytp-heat-map-svg");this.C=this.BW("ytp-heat-map-path");this.B=this.BW("ytp-heat-map-graph");this.L=this.BW("ytp-heat-map-play");this.Y=this.BW("ytp-heat-map-hover");this.G=this.BW("ytp-modern-heat-map");this.sE=!1;this.U=60;v=""+g.OJ(this);this.update({id:v});v="url(#"+v+")";this.B.setAttribute("clip-path",v);this.L.setAttribute("clip-path",v);this.Y.setAttribute("clip-path", v)}; Nsc=function(v,O){O>0&&(v.U=O,v.X.style.height=v.U+"px")}; Qx=function(){g.K.call(this,{J:"div",W:"ytp-chapter-hover-container",K:[{J:"div",W:"ytp-progress-bar-padding"},{J:"div",W:"ytp-progress-list",K:[{J:"div",hK:["ytp-play-progress","ytp-swatch-background-color"]},{J:"div",W:"ytp-progress-linear-live-buffer"},{J:"div",W:"ytp-load-progress"},{J:"div",W:"ytp-hover-progress"},{J:"div",W:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.U=this.BW("ytp-progress-list");this.C=this.BW("ytp-progress-linear-live-buffer"); this.B=this.BW("ytp-ad-progress-list");this.L=this.BW("ytp-load-progress");this.X=this.BW("ytp-play-progress");this.G=this.BW("ytp-hover-progress");this.Y=this.BW("ytp-chapter-hover-container")}; Lf=function(v,O){g.ym(v.Y,"width",O)}; vM7=function(v,O){g.ym(v.Y,"margin-right",O+"px")}; O3g=function(){this.U=this.position=this.G=this.Y=this.B=this.width=NaN}; YNm=function(){g.K.call(this,{J:"div",W:"ytp-timed-marker"});this.Y=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.Zt=function(v,O){g.k9.call(this,{J:"div",W:"ytp-progress-bar-container",T:{"aria-disabled":"true"},K:[{J:"div",hK:["ytp-heat-map-container"],K:[{J:"div",W:"ytp-heat-map-edu"}]},{J:"div",hK:["ytp-progress-bar"],T:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},K:[{J:"div",W:"ytp-chapters-container"},{J:"div",W:"ytp-timed-markers-container"},{J:"div",W:"ytp-clip-start-exclude"}, {J:"div",W:"ytp-clip-end-exclude"},{J:"div",W:"ytp-scrubber-container",K:[{J:"div",hK:["ytp-scrubber-button","ytp-swatch-background-color"],K:[{J:"div",W:"ytp-scrubber-pull-indicator"},{J:"img",hK:["ytp-decorated-scrubber-button"]}]}]}]},{J:"div",hK:["ytp-fine-scrubbing-container"],K:[{J:"div",W:"ytp-fine-scrubbing-edu"}]},{J:"div",W:"ytp-bound-time-left",M3:"{{boundTimeLeft}}"},{J:"div",W:"ytp-bound-time-right",M3:"{{boundTimeRight}}"},{J:"div",W:"ytp-clip-start",T:{title:"{{clipstarttitle}}"},M3:"{{clipstarticon}}"}, {J:"div",W:"ytp-clip-end",T:{title:"{{clipendtitle}}"},M3:"{{clipendicon}}"}]});this.api=v;this.Lo=!1;this.lO=this.N7=this.xg=this.C=this.dE=0;this.w4=null;this.Dq=!1;this.XO={};this.PT={};this.clipEnd=Infinity;this.rR=this.BW("ytp-clip-end");this.aI=new g.EA(this.rR,!0);this.w2=this.BW("ytp-clip-end-exclude");this.II=this.BW("ytp-clip-start-exclude");this.clipStart=0;this.R1=this.BW("ytp-clip-start");this.Td=new g.EA(this.R1,!0);this.tK=this.Mj=0;this.progressBar=this.BW("ytp-progress-bar");this.Cj= {};this.f1={};this.yx=this.BW("ytp-chapters-container");this.M7=this.BW("ytp-timed-markers-container");this.Y=[];this.L=[];this.uO={};this.rf=null;this.N3=-1;this.pj=this.FO=0;this.FZ=this.X=null;this.RD=this.BW("ytp-scrubber-button");this.HW=this.BW("ytp-decorated-scrubber-button");this.TF=this.BW("ytp-scrubber-container");this.On=new g.lg;this.qX=0;this.oS=new O3g;this.G=new ZY(0,0);this.Nj=null;this.j=this.eA=!1;this.D9=null;this.Ug=this.BW("ytp-heat-map-container");this.nP=this.BW("ytp-heat-map-edu"); this.B=[];this.heatMarkersDecorations=[];this.n1=this.BW("ytp-fine-scrubbing-container");this.N2=this.BW("ytp-fine-scrubbing-edu");this.U=void 0;this.g8=this.q8=this.AK=!1;this.tooltip=O.wK();this.addOnDisposeCallback(g.fU(this.tooltip,this.rR));g.w(this,this.aI);this.aI.subscribe("hoverstart",this.Qk,this);this.aI.subscribe("hoverend",this.H2,this);this.S(this.rR,"click",this.Q9);this.addOnDisposeCallback(g.fU(this.tooltip,this.R1));g.w(this,this.Td);this.Td.subscribe("hoverstart",this.Qk,this); this.Td.subscribe("hoverend",this.H2,this);this.S(this.R1,"click",this.Q9);SNl(this);this.S(v,"resize",this.ze);this.S(v,"presentingplayerstatechange",this.Mu);this.S(v,"videodatachange",this.xp);this.S(v,"videoplayerreset",this.G3);this.S(v,"cuerangesadded",this.do0);this.S(v,"cuerangesremoved",this.qMx);this.S(v,"onLoopRangeChange",this.e0);this.S(v,"innertubeCommand",this.onClickCommand);this.S(v,"onRetroModeChanged",this.YEx);this.S(v,g.bI("timedMarkerCueRange"),this.o4s);this.S(v,"updatemarkervisibility", this.Sx);this.S(v,"serverstitchedvideochange",this.JE0);this.updateVideoData(v.getVideoData(),!0);this.e0(v.getLoopRange());Bi(this)&&!this.U&&(this.U=new KPE(this.api,this.tooltip),v=g.Rf(this.element).x||0,this.U.ze(v,this.C),this.U.C1(this.n1),g.w(this,this.U),this.S(this.U.dismissButton,"click",this.rJ),this.S(this.U.playButton,"click",this.b_),this.S(this.U.element,"dblclick",this.b_));this.api.createClientVe(this.Ug,this,139609,!0);this.api.createClientVe(this.nP,this,140127,!0);this.api.createClientVe(this.N2, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; SNl=function(v){if(v.Y.length===0){var O=new Qx;v.Y.push(O);g.w(v,O);O.C1(v.yx,0)}for(;v.Y.length>1;)v.Y.pop().dispose();Lf(v.Y[0],"100%");v.Y[0].startTime=0;v.Y[0].title=""}; dx$=function(v){var O=O===void 0?NaN:O;var Y=new HWn(v.api);v.B.push(Y);g.w(v,Y);Y.C1(v.Ug);O>=0&&(Y.element.style.width=O+"px")}; rPw=function(v){for(;v.L.length;)v.L.pop().dispose()}; oMw=function(v){var O,Y,S,d,r;return(r=g.q((d=g.q((O=v.getWatchNextResponse())==null?void 0:(Y=O.playerOverlays)==null?void 0:(S=Y.playerOverlayRenderer)==null?void 0:S.decoratedPlayerBarRenderer,ut))==null?void 0:d.playerBar,b3g))==null?void 0:r.chapters}; jCw=function(v){for(var O=v.Y,Y=[],S=0;S=b&&a<=A&&r.push(k)}M>0&&(v.Ug.style.height=M+"px");b=v.B[S];A=r;k=d;c=M;a=S===0;a=a===void 0?!1:a;Nsc(b,c);f=A;U=b.U;a=a===void 0?!1:a;var x=1E3/f.length,T=[];T.push({x:0,y:100});for(var l=0;l0&&(Y=r[r.length-1])}g.Xx(v);z=[];O=g.y(O.heatMarkersDecorations||[]);for(d=O.next();!d.done;d=O.next())if(d=g.q(d.value,APQ))M=d.label,S=Y=V=void 0,z.push({visibleTimeRangeStartMillis:(V=d.visibleTimeRangeStartMillis)!=null?V:-1,visibleTimeRangeEndMillis:(Y=d.visibleTimeRangeEndMillis)!=null?Y:-1,decorationTimeMillis:(S=d.decorationTimeMillis)!=null?S:NaN,label:M?g.ui(M):""});v.heatMarkersDecorations=z}}; sCw=function(v,O){v.L.push(O);g.w(v,O);O.C1(v.M7,v.M7.children.length)}; gMl=function(v,O){O=g.y(O);for(var Y=O.next();!Y.done;Y=O.next()){Y=Y.value;var S=wP(v,Y.timeRangeStartMillis/(v.G.Y*1E3),IB(v)),d=v.api.V("delhi_modern_web_player")?.667:.6;g.ym(Y.element,"transform","translateX("+S+"px) scaleX("+d+")")}}; WYw=function(v,O){var Y=0,S=!1;O=g.y(O);for(var d=O.next();!d.done;d=O.next()){d=d.value;if(g.q(d,$xw)){d=g.q(d,$xw);var r={startTime:NaN,title:null,onActiveCommand:void 0},b=d.title;r.title=b?g.ui(b):"";b=d.timeRangeStartMillis;b!=null&&(r.startTime=b);r.onActiveCommand=d.onActiveCommand;d=r;Y===0&&d.startTime!==0&&(v.Y[Y].startTime=0,v.Y[Y].title="",v.Y[Y].onActiveCommand=d.onActiveCommand,Y++,S=!0);v.Y.length<=Y&&(r=new Qx,v.Y.push(r),g.w(v,r),r.C1(v.yx,v.yx.children.length));v.Y[Y].startTime= d.startTime;v.Y[Y].title=d.title?d.title:"";v.Y[Y].onActiveCommand=d.onActiveCommand;v.Y[Y].index=S?Y-1:Y}Y++}for(;Y=0;S--)if(v.Y[S].width>0){vM7(v.Y[S],0);var d=Math.floor(v.Y[S].width);v.Y[S].width=d;Lf(v.Y[S],d+"px");break}v.Y[Y].width=0;Lf(v.Y[Y],"0")}else Y===v.Y.length-1?(S=Math.floor(v.Y[Y].width+O),v.Y[Y].width=S,Lf(v.Y[Y],S+"px")):(O=v.Y[Y].width+O,S=Math.round(O),O-=S,v.Y[Y].width=S,Lf(v.Y[Y],S+"px"));Y=0;if(v.B.length===v.Y.length)for(O=0;O< v.B.length;O++)S=v.Y[O].width,v.B[O].element.style.width=S+"px",v.B[O].element.style.left=Y+"px",Y+=S+nf(v);v.api.V("delhi_modern_web_player")&&(v.Y.length===1?v.Y[0].U.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(v.Y[0].U.classList.remove("ytp-progress-bar-end"),v.Y[0].U.classList.add("ytp-progress-bar-start"),v.Y[v.Y.length-1].U.classList.add("ytp-progress-bar-end")))}; kPF=function(v,O){var Y=0,S=!1,d=v.Y.length,r=v.G.Y*1E3;r===0&&(r=v.api.getProgressState().seekableEnd*1E3);if(r>0&&v.C>0){for(var b=v.C-nf(v)*v.FO,z=v.pj===0?3:b*v.pj,M=g.y(v.Y),V=M.next();!V.done;V=M.next())V.value.width=0;for(;Y1);V=(r===0?0:M/r*b)+v.Y[Y].width;if(V>z)v.Y[Y].width=V;else{v.Y[Y].width=0;var A=v,f=Y,k=A.Y[f-1];k!==void 0&&k.width>0? k.width+=V:fv.pj&&(v.pj=M/r),S=!0)}Y++}}return S}; qa=function(v){if(v.C){var O=v.api.getProgressState(),Y=v.api.getVideoData();if(!(Y&&Y.enableServerStitchedDai&&Y.xH)||isFinite(O.current)){var S;if(((S=v.api.getVideoData())==null?0:nh(S))&&O.airingStart&&O.airingEnd)var d=Jh(v,O.airingStart,O.airingEnd);else if(v.api.getPresentingPlayerType()===2){var r,b,z;d=(Y=(d=v.api.getVideoData())==null?void 0:(r=d.getPlayerResponse())==null?void 0:(b=r.playerConfig)==null?void 0:(z=b.webPlayerConfig)==null?void 0:z.skippableAdProgressBarDuration)?Jh(v,O.seekableStart, Y/1E3):Jh(v,O.seekableStart,O.seekableEnd)}else d=Jh(v,O.seekableStart,O.seekableEnd);r=Xk(d,O.loaded,0);O=Xk(d,O.current,0);b=v.G.U!==d.U||v.G.Y!==d.Y;v.G=d;Kf(v,O,r);b&&Uxd(v);cPc(v)}}}; Jh=function(v,O,Y){return uci(v)?new ZY(Math.max(O,v.Nj.startTimeMs/1E3),Math.min(Y,v.Nj.endTimeMs/1E3)):new ZY(O,Y)}; yPd=function(v,O){var Y,S,d;O=g.q((Y=O.getWatchNextResponse())==null?void 0:(S=Y.playerOverlays)==null?void 0:(d=S.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,ut);if(O==null?0:O.progressColor)for(Y=0;Y1){Y=Pi(v,O.G,!0);for(var S=0,d=0;d0&&(S+=v.Y[d].width,S+=nf(v));Y=(v.Y[Y].startTime+(O.G-S)/v.Y[Y].width*((Y===v.Y.length-1?v.G.Y*1E3:v.Y[Y+1].startTime)-v.Y[Y].startTime))/1E3||0}return Y}; iO=function(v,O,Y,S,d){O=O<0?0:Math.floor(Math.min(O,v.api.getDuration())*1E3);Y=Y<0?0:Math.floor(Math.min(Y,v.api.getDuration())*1E3);v=v.progressBar.visualElement;S={seekData:{startMediaTimeMs:O,endMediaTimeMs:Y,seekSource:S}};(O=g.TS())&&g.N7(Ne)(void 0,O,v,d,S,void 0)}; xxd=function(v,O,Y){if(Y>=v.Y.length)return!1;var S=v.C-nf(v)*v.FO;return Math.abs(O-v.Y[Y].startTime/1E3)/v.G.Y*S<4}; Uxd=function(v){v.RD.style.removeProperty("height");for(var O=g.y(Object.keys(v.XO)),Y=O.next();!Y.done;Y=O.next())psF(v,Y.value);mo(v);Kf(v,v.tK,v.Mj)}; IB=function(v){var O=v.On.x;O=g.xr(O,0,v.C);v.oS.update(O,v.C);return v.oS}; Dt=function(v){return(v.j?135:90)-th(v)}; th=function(v){var O=48,Y=v.api.D();v.api.V("delhi_modern_web_player")?O=v.j?96:68:v.j?O=54:g.aP(Y)&&!Y.U&&(O=40);return O}; Kf=function(v,O,Y){v.tK=O;v.Mj=Y;var S=IB(v),d=v.G.Y;var r=v.G;r=r.U+v.tK*r.getLength();var b=g.kD("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.lC(r,!0),DURATION:g.lC(d,!0)}),z=So(v.Y,r*1E3);z=v.Y[z].title;v.update({ariamin:Math.floor(v.G.U),ariamax:Math.floor(d),arianow:Math.floor(r),arianowtext:z?z+" "+b:b});d=v.clipStart;r=v.clipEnd;v.Nj&&v.api.getPresentingPlayerType()!==2&&(d=v.Nj.startTimeMs/1E3,r=v.Nj.endTimeMs/1E3);d=Xk(v.G,d,0);z=Xk(v.G,r,1);b=v.api.getVideoData();r=g.xr(O,d,z);Y=(b==null? 0:g.wX(b))?1:g.xr(Y,d,z);O=wP(v,O,S);g.ym(v.TF,"transform","translateX("+O+"px)");v.api.V("delhi_modern_web_player")&&v.api.V("delhi_modern_web_player_cutout")&&T01(v,O);Hi(v,S,d,r,"PLAY_PROGRESS");(b==null?0:nh(b))?(O=v.api.getProgressState().seekableEnd)&&Hi(v,S,r,Xk(v.G,O),"LIVE_BUFFER"):Hi(v,S,d,Y,"LOAD_PROGRESS");if(v.api.V("web_player_heat_map_played_bar")){var M;(M=v.B[0])!=null&&M.L.setAttribute("width",(r*100).toFixed(2)+"%")}}; T01=function(v,O){v.api.getPresentingPlayerType()!==1?v.yx.style.removeProperty("clip-path"):(O||(O=wP(v,v.tK,IB(v))),v.yx.style.clipPath='path("'+(v.Dq?lUF(v,8,O,v.j?50:36,0,6):lUF(v,4,O,v.j?34:24,2,3))+'")')}; lUF=function(v,O,Y,S,d,r){var b=Y-S/2;Y+=S/2;O+=d;return"M 0 "+d+" L 0 "+(O+" L ")+(b+" "+O+" C ")+(b+r+" "+O+" "+(b+r)+" "+d+" "+b+" "+d+" L 0 ")+(d+" M ")+(Y+" "+d+" L ")+(v.C+" "+d+" L ")+(v.C+" "+O+" L ")+(Y+" "+O+" C ")+(Y-r+" "+O+" "+(Y-r)+" "+d+" "+Y+" "+d)}; Hi=function(v,O,Y,S,d){var r=v.Y.length,b=O.Y-v.FO*nf(v),z=Y*b;Y=Pi(v,z);var M=S*b;b=Pi(v,M);d==="HOVER_PROGRESS"&&(b=Pi(v,O.Y*S,!0),M=O.Y*S-FYi(v,O.Y*S)*nf(v));S=Math.max(z-hH7(v,Y),0);for(z=Y;z=v.Y.length)return v.C;for(var Y=0,S=0;S0||v.w2.clientWidth>0?(r=O.clientWidth/Y,v=-1*v.II.clientWidth/Y):(r/=Y,v=-1*v.Y[d].element.offsetLeft/Y),g.ym(O,"background-size",r+"px"),g.ym(O,"background-position-x",v+"px"))}; Na=function(v,O,Y,S,d){d||v.api.D().U?O.style.width=Y+"px":g.ym(O,"transform","scalex("+(S?Y/S:0)+")")}; Pi=function(v,O,Y){var S=0;(Y===void 0?0:Y)&&(O-=FYi(v,O)*nf(v));Y=g.y(v.Y);for(var d=Y.next();!d.done;d=Y.next()){d=d.value;if(O>d.width)O-=d.width;else break;S++}return S===v.Y.length?S-1:S}; wP=function(v,O,Y){var S=O*v.G.Y*1E3;for(var d=-1,r=g.y(v.Y),b=r.next();!b.done;b=r.next())b=b.value,S>b.startTime&&b.width>0&&d++;S=d<0?0:d;d=Y.Y-nf(v)*v.FO;return O*d+nf(v)*S+Y.B}; FYi=function(v,O){for(var Y=v.Y.length,S=0,d=g.y(v.Y),r=d.next();!r.done;r=d.next())if(r=r.value,r.width!==0)if(O>r.width)O-=r.width,O-=nf(v),S++;else break;return S===Y?Y-1:S}; g.EMg=function(v,O,Y,S){var d=v.C!==Y,r=v.j!==S;v.dE=O;v.C=Y;v.j=S;Bi(v)&&(O=v.U)!=null&&(O.scale=S?1.5:1);Uxd(v);v.Y.length===1&&(v.Y[0].width=Y||0);d&&g.Xx(v);v.U&&r&&Bi(v)&&(v.U.isEnabled&&(Y=v.j?135:90,S=Y-th(v),v.n1.style.height=Y+"px",g.ym(v.Ug,"transform","translateY("+-S+"px)"),g.ym(v.progressBar,"transform","translateY("+-S+"px)")),mXc(v.U))}; mo=function(v){var O=!!v.Nj&&v.api.getPresentingPlayerType()!==2,Y=v.clipStart,S=v.clipEnd,d=!0,r=!0;O&&v.Nj?(Y=v.Nj.startTimeMs/1E3,S=v.Nj.endTimeMs/1E3):(d=Y>v.G.U,r=v.G.Y>0&&Sv.tK);g.gr(v.RD,"ytp-scrubber-button-hover",Y===S&&v.Y.length>1);if(v.api.V("web_player_heat_map_played_bar")){var r;(r=v.B[0])!=null&&r.Y.setAttribute("width",(O.U*100).toFixed(2)+"%")}}}; psF=function(v,O){var Y=v.XO[O];O=v.PT[O];var S=IB(v),d=Xk(v.G,Y.start/1E3,0),r=UUc(Y,v.j)/S.width;var b=Xk(v.G,Y.end/1E3,1);r!==Number.POSITIVE_INFINITY&&(d=g.xr(d,0,b-r));b=Math.min(b,d+r);Y.color&&(O.style.background=Y.color);Y=d;O.style.left=Math.max(Y*S.Y+S.B,0)+"px";Na(v,O,g.xr((b-Y)*S.Y+S.B,0,S.width),S.width,!0)}; QC$=function(v,O){var Y=O.getId();v.XO[Y]===O&&(g.Ov(v.PT[Y]),delete v.XO[Y],delete v.PT[Y])}; Bi=function(v){var O=g.PD(v.api.D())&&(v.api.V("web_shorts_pip")||v.api.V("web_watch_pip")),Y;return!((Y=v.api.getVideoData())==null?0:Y.isLivePlayback)&&!v.api.isMinimized()&&!v.api.isInline()&&(!v.api.lq()||!O)}; vJ=function(v){v.U&&(v.U.disable(),v.xg=0,v.Ug.style.removeProperty("transform"),v.progressBar.style.removeProperty("transform"),v.n1.style.removeProperty("height"),v.element.parentElement&&v.element.parentElement.style.removeProperty("height"))}; LYQ=function(v,O){var Y=O/Dt(v)*th(v);g.ym(v.progressBar,"transform","translateY("+-O+"px)");g.ym(v.Ug,"transform","translateY("+-O+"px)");g.ym(v.n1,"transform","translateY("+Y+"px)");v.n1.style.height=O+Y+"px";v.element.parentElement&&(v.element.parentElement.style.height=th(v)-Y+"px")}; B0d=function(v,O){O?v.X||(v.element.removeAttribute("aria-disabled"),v.X=new g.EA(v.progressBar,!0),v.X.subscribe("hovermove",v.lU8,v),v.X.subscribe("hoverend",v.DXg,v),v.X.subscribe("dragstart",v.qqW,v),v.X.subscribe("dragmove",v.Ri4,v),v.X.subscribe("dragend",v.wD3,v),v.api&&v.api.V("delhi_modern_web_player")&&v.api.V("delhi_modern_web_player_cutout")&&(v.FZ=new g.EA(v.progressBar,!0),v.FZ.subscribe("hoverstart",function(){v.Dq=!0;T01(v)},v),v.FZ.subscribe("hoverend",function(){v.Dq=!1; T01(v)},v)),v.D9=v.listen("keydown",v.Ln)):v.X&&(v.element.setAttribute("aria-disabled","true"),v.g2(v.D9),v.X.cancel(),v.X.dispose(),v.X=null)}; nf=function(v){return v.api.V("delhi_modern_web_player")?4:v.j?3:2}; uci=function(v){var O;return!((O=v.Nj)==null||!O.postId)&&v.api.getPresentingPlayerType()!==2}; OY=function(v,O){g.K.call(this,{J:"button",hK:["ytp-remote-button","ytp-button"],T:{title:"Play on TV","aria-haspopup":"true","data-priority":"10"},M3:"{{icon}}"});this.N=v;this.HT=O;this.Y=null;this.S(v,"onMdxReceiversChange",this.q3);this.S(v,"presentingplayerstatechange",this.q3);this.S(v,"appresize",this.q3);v.createClientVe(this.element,this,139118);this.q3();this.listen("click",this.U,this);$e(v,this.element,this)}; Yy=function(v,O){g.K.call(this,{J:"button",hK:["ytp-button","ytp-settings-button"],T:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":Vs(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},K:[v.V("delhi_modern_web_player_icons")?{J:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10", fill:"white"}}]}:g.E2()]});this.N=v;this.HT=O;this.U=!0;this.listen("click",this.G);this.S(v,"onPlaybackQualityChange",this.updateBadge);this.S(v,"videodatachange",this.updateBadge);this.S(v,"webglsettingschanged",this.updateBadge);this.S(v,"appresize",this.Y);$e(v,this.element,this);this.N.createClientVe(this.element,this,28663);this.updateBadge();this.Y(v.j4().getPlayerSize())}; Z33=function(v,O){v.U=!!O;v.Y(v.N.j4().getPlayerSize())}; SP=function(v,O){DE.call(this,"Annotations",g.SI.tR);this.N=v;this.HT=O;this.Y=!1;v.V("web_settings_menu_icons")&&(O=v.V("delhi_modern_web_player_icons")?{J:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{J:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]},this.setIcon(O));this.S(v,"videodatachange",this.q3);this.S(v,"onApiChange",this.q3);this.subscribe("select",this.onSelect,this);this.q3()}; dl=function(v,O){g.hA.call(this,"Audio track",g.SI.AUDIO,v,O);this.N=v;this.tracks={};g.on(this.element,"ytp-audio-menu-item");this.countLabel=new g.K({J:"div",K:[{J:"span",M3:"Audio track"},{J:"span",W:"ytp-menuitem-label-count",M3:"{{content}}"}]});v.V("web_settings_menu_icons")&&this.setIcon(hVi());g.w(this,this.countLabel);g.XM(this,this.countLabel);this.S(v,"videodatachange",this.q3);this.S(v,"onPlaybackAudioChange",this.q3);this.q3()}; rl=function(v,O){DE.call(this,"Autoplay",g.SI.c8);this.N=v;this.HT=O;this.Y=!1;this.G=[];this.S(v,"presentingplayerstatechange",this.U);this.subscribe("select",this.onSelect,this);v.createClientVe(this.element,this,113682);this.U()}; Xs$=function(v,O){g.wB.call(this,g.Ih({"aria-haspopup":"false"}),0,"More options");this.N=v;this.HT=O;this.S(this.element,"click",this.onClick);this.HT.L_(this)}; ws3=function(v,O){var Y;g.PD(v.D())&&(Y={J:"div",W:"ytp-panel-footer-content",K:[{J:"span",M3:"Adjust download quality from your "},{J:"a",W:"ytp-panel-footer-content-link",M3:"Settings",T:{href:"/account_downloads"}}]});g.hA.call(this,"Quality",g.SI.yU,v,O,void 0,void 0,Y);this.N=v;this.HW={};this.j={};this.B={};this.JK=new Set;this.Y=this.C=!1;this.L="unknown";this.tK="";this.Ug=new g.iA;g.w(this,this.Ug);this.C=this.N.V("web_player_use_new_api_for_quality_pullback");this.Y=this.N.V("web_player_enable_premium_hbr_playback_cap"); v.V("web_settings_menu_icons")&&(O=v.V("delhi_modern_web_player_icons")?{J:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{J:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(O));g.on(this.U.element,"ytp-quality-menu");this.S(v,"videodatachange",this.dL);this.S(v,"videoplayerreset",this.dL);this.S(v,"onPlaybackQualityChange",this.Hi);this.dL();v.createClientVe(this.element,this,137721)}; qNm=function(v,O,Y){var S=v.HW[O],d=g.IA[O];return IUE(v,S?S.qualityLabel:d?d+"p":"Auto",O,Y)}; nME=function(v,O,Y,S,d){var r=(O=v.Y?v.B[O]:v.j[O])&&O.quality,b=O&&O.qualityLabel;b=b?b:"Auto";S&&(b="("+b);v=IUE(v,b,r||"",d);S&&v.K.push(")");(S=(S=O&&O.paygatedQualityDetails)&&S.paygatedIndicatorText)&&Y&&v.K.push({J:"div",W:"ytp-premium-label",M3:S});return v}; IUE=function(v,O,Y,S){O={J:"span",hK:S,K:[O]};var d;S="ytp-swatch-color";if(v.C||v.Y)S="ytp-swatch-color-white";Y==="highres"?d="8K":Y==="hd2880"?d="5K":Y==="hd2160"?d="4K":Y.indexOf("hd")===0&&Y!=="hd720"&&(d="HD");d&&(O.K.push(" "),O.K.push({J:"sup",W:S,M3:d}));return O}; b_=function(v){T9.call(this,v.getAvailablePlaybackRates()[0],v.getAvailablePlaybackRates()[v.getAvailablePlaybackRates().length-1],.05,v.getPlaybackRate(),{J:"div",W:"ytp-speedslider-indicator-container",K:[{J:"div",W:"ytp-speedslider-badge"},{J:"p",W:"ytp-speedslider-text"}]});this.N=v;this.X=Av(this.j,50,this);g.on(this.U,"ytp-speedslider");this.L=this.BW("ytp-speedslider-text");this.Ug=this.BW("ytp-speedslider-badge");JPg(this);this.S(this.U,"change",this.tK)}; JPg=function(v){v.L.textContent=v.Y+"x";v.Ug.classList.toggle("ytp-speedslider-premium-badge",v.Y>2&&v.N.V("enable_web_premium_varispeed"))}; oq=function(v,O,Y,S,d,r,b){g.K.call(this,{J:"div",W:"ytp-slider-section",T:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},K:[{J:"div",W:"ytp-slider",K:[{J:"div",W:"ytp-slider-handle"}]}]});this.X=v;this.j=O;this.U=Y;this.G=S;this.tK=d;this.N3=r;this.range=this.G-this.U;this.FO=this.BW("ytp-slider-section");this.B=this.BW("ytp-slider");this.Ug=this.BW("ytp-slider-handle");this.L=new g.EA(this.B, !0);this.Y=b?b:Y;g.w(this,this.L);this.L.subscribe("dragmove",this.Wl,this);this.S(this.element,"keydown",this.St);this.S(this.element,"wheel",this.A6);this.init()}; jP=function(v){oq.call(this,.05,.05,v.getAvailablePlaybackRates()[0],v.getAvailablePlaybackRates()[v.getAvailablePlaybackRates().length-1],150,20,v.getPlaybackRate());this.N=v;this.C=g.tc("P");this.JK=Av(this.HW,50,this);g.on(this.B,"ytp-speedslider");g.on(this.C,"ytp-speedslider-text");v=this.C;var O=this.B;O.parentNode&&O.parentNode.insertBefore(v,O.nextSibling);KYl(this);this.S(this.N,"onPlaybackRateChange",this.updateValues)}; KYl=function(v){v.C.textContent=PY1(v,v.Y)+"x"}; PY1=function(v,O){v=Number(g.xr(O,v.U,v.G).toFixed(2));O=Math.floor((v+.001)*100%5+2E-15);var Y=v;O!==0&&(Y=v-O*.01);return Number(Y.toFixed(2))}; GPg=function(v){g.k9.call(this,{J:"div",W:"ytp-speedslider-component"});v.V("web_settings_use_input_slider")?this.Y=new b_(v):this.Y=new jP(v);g.w(this,this.Y);this.element.appendChild(this.Y.element)}; i3m=function(v){var O=new GPg(v);UA.call(this,v,O,"Custom");g.w(this,O)}; mxd=function(v,O){var Y=new i3m(v);g.hA.call(this,"Playback speed",g.SI.jt,v,O,WJ(v)?void 0:"Custom",WJ(v)?void 0:function(){g.yb(O,Y)}); var S=this;this.B=!1;g.w(this,Y);this.L=new b_(v);g.w(this,this.L);if(v.V("web_settings_menu_icons")){var d=v.V("delhi_modern_web_player_icons")?{J:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z", fill:"white"}}]}:{J:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},K:[{J:"path",T:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(d)}this.N=v;this.B=!1;this.tK=null;WJ(v)?(this.Y=g.kD("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.N.getPlaybackRate().toString()}),this.C=this.N.getPlaybackRate()):this.C=this.Y=null;this.j=this.N.getAvailablePlaybackRates();this.S(v,"presentingplayerstatechange",this.q3);var r;((r=this.N.getVideoData())==null?0:r.lM())&&this.S(v,"serverstitchedvideochange",this.q3);this.S(this.L.U,"change",function(){S.B=!0;S.q3()}); this.q3()}; tAi=function(v,O){var Y=zt(O);v.Y&&(v.B||O===v.C)?(v.tF(v.Y),v.yg(O.toString())):v.tF(Y)}; H3i=function(v){v.Vc(v.j.map(zt));v.Y=null;v.C=null;var O=v.N.getPlaybackRate();WJ(v.N)&&Dx7(v,O);!v.j.includes(O)||v.B?v.tF(v.Y):v.tF(zt(O))}; Dx7=function(v,O){v.C=O;v.Y=g.kD("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:O.toString()});O=v.j.map(zt);O.unshift(v.Y);v.Vc(O)}; zt=function(v){return v.toString()}; WJ=function(v){return v.V("web_settings_menu_surface_custom_playback")}; N07=function(v){return v.V("web_settings_menu_surface_custom_playback")&&v.V("web_settings_use_input_slider")}; OJQ=function(v,O,Y,S){var d=new g.cR(O,void 0,"Video Override");g.hA.call(this,S.text||"",v,O,Y,"Video Override",function(){g.yb(Y,d)}); var r=this;g.on(this.element,"ytp-subtitles-options-menu-item");this.setting=S.option.toString();v=S.options;this.settings=g.B0(v,this.QR,this);this.C=d;g.w(this,this.C);O=new g.wB({J:"div",W:"ytp-menuitemtitle",M3:"Allow for a different caption style if specified by the video."},0);g.w(this,O);this.C.L_(O,!0);this.B=new g.wB({J:"div",W:"ytp-menuitem",T:{role:"menuitemradio",tabindex:"0"},K:[{J:"div",W:"ytp-menuitem-label",M3:"On"}]},-1);g.w(this,this.B);this.C.L_(this.B,!0);this.S(this.B.element, "click",function(){vpd(r,!0)}); this.Y=new g.wB({J:"div",W:"ytp-menuitem",T:{role:"menuitemradio",tabindex:"0"},K:[{J:"div",W:"ytp-menuitem-label",M3:"Off"}]},-2);g.w(this,this.Y);this.C.L_(this.Y,!0);this.S(this.Y.element,"click",function(){vpd(r,!1)}); this.Vc(g.DQ(v,this.QR))}; vpd=function(v,O){v.publish("settingChange",v.setting+"Override",!O);v.HT.MY()}; sY=function(v,O){g.cR.call(this,v,void 0,"Options");var Y=this;this.Sk={};for(var S=0;S=0);if(!(O<0||O===v.B)){v.B=O;O=243*v.scale;var Y=141*v.scale,S=aFc(v.U,v.B,O);ybE(v.bg,S,O,Y,!0);v.tK.start()}}; F$l=function(v){var O=v.Y;v.type===3&&v.Ug.stop();v.api.removeEventListener("appresize",v.j);v.L||O.setAttribute("title",v.G);v.G="";v.Y=null;v.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});v.wrapper.style.width=""}; RMc=function(v){g.K.call(this,{J:"button",hK:["ytp-watch-later-button","ytp-button"],T:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.aP(v.D()))},K:[{J:"div",W:"ytp-watch-later-icon",M3:"{{icon}}"},{J:"div",W:"ytp-watch-later-title",M3:"Watch later"}]});this.N=v;this.icon=null;this.visible=this.isRequestPending=this.Y=!1;SRn(v);v.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.S(v,"videoplayerreset",this.onReset);this.S(v,"appresize", this.JB);this.S(v,"videodatachange",this.JB);this.S(v,"presentingplayerstatechange",this.JB);this.JB();v=this.N.D();var O=g.Ly("yt-player-watch-later-pending");v.B&&O?(Px7(),hM$(this)):this.q3(2);g.gr(this.element,"ytp-show-watch-later-title",g.aP(v));$e(this.N,this.element,this)}; eMF=function(v){var O=v.N.getPlayerSize(),Y=v.N.D(),S=v.N.getVideoData(),d=g.aP(Y)&&g.yN(v.N)&&g.G(v.N.getPlayerStateObject(),128),r=Y.G;return Y.Td&&O.width>=240&&!S.isAd()&&S.Td&&!d&&!g.Jz(S)&&!v.N.isEmbedsShortsMode()&&!r}; Epg=function(v,O){Bud(g.IP(v.N.D()),"wl_button",function(){Px7({videoId:O});window.location.reload()})}; hM$=function(v){if(!v.isRequestPending){v.isRequestPending=!0;v.q3(3);var O=v.N.getVideoData();O=v.Y?O.removeFromWatchLaterCommand:O.addToWatchLaterCommand;var Y=v.N.Rm(),S=v.Y?function(){v.Y=!1;v.isRequestPending=!1;v.q3(2);v.N.D().X&&v.N.PW("WATCH_LATER_VIDEO_REMOVED")}:function(){v.Y=!0; v.isRequestPending=!1;v.q3(1);v.N.D().U&&v.N.wv(v.element);v.N.D().X&&v.N.PW("WATCH_LATER_VIDEO_ADDED")}; t_(Y,O).then(S,function(){v.isRequestPending=!1;v.q3(4,"An error occurred. Please try again later.");v.N.D().X&&v.N.PW("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; Q5F=function(v,O){if(O!==v.icon){switch(O){case 3:var Y=Ot();break;case 1:Y=ys();break;case 2:Y={J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{J:"path",p_:!0,W:"ytp-svg-fill",T:{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:Y={J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{J:"path", p_:!0,T:{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",Y);v.icon=O}}; g.pj=function(){g.wx.apply(this,arguments);this.pJ=(this.U$=g.aP(this.api.D()))&&(this.api.D().U||O9()||NS());this.zS=48;this.nX=69;this.dP=this.RS=null;this.oE=[];this.tN=this.AF=this.Ua=this.Sg=this.q2=null;this.nQ=[];this.O4=this.contextMenu=this.xN=this.overflowButton=this.gE=this.df=this.searchButton=this.copyLinkButton=this.shareButton=this.Kv=this.eN=this.title=this.channelAvatar=this.J0=this.tooltip=null;this.qe=!1;this.P_=this.Ju=this.wP=this.R_=null;this.Up=this.jL=this.BX=!1}; L$Q=function(v){var O=v.api.D(),Y=g.G(v.api.getPlayerStateObject(),128);return O.B&&Y&&!v.api.isFullscreen()}; BR$=function(v){if(v.tE()&&!v.api.isEmbedsShortsMode()&&v.gE){var O=v.api.V("web_player_hide_overflow_button_if_empty_menu");!v.Kv||O&&!eMF(v.Kv)||Xoc(v.gE,v.Kv);!v.shareButton||O&&!SgQ(v.shareButton)||Xoc(v.gE,v.shareButton);!v.copyLinkButton||O&&!Nui(v.copyLinkButton)||Xoc(v.gE,v.copyLinkButton)}else{O=v.api.D().getWebPlayerContextConfig();if(v.gE){for(var Y=v.gE,S=g.y(Y.actionButtons),d=S.next();!d.done;d=S.next())d.value.detach();Y.actionButtons=[]}v.searchButton&&!g.YW(v.eN.element,v.searchButton.element)&& v.searchButton.C1(v.eN.element);!v.Kv||(O==null?0:O.hideTopWatchNextButton)||g.YW(v.eN.element,v.Kv.element)||v.Kv.C1(v.eN.element);!v.shareButton||(O==null?0:O.hideTopShareButton)||g.YW(v.eN.element,v.shareButton.element)||v.shareButton.C1(v.eN.element);v.copyLinkButton&&!g.YW(v.eN.element,v.copyLinkButton.element)&&v.copyLinkButton.C1(v.eN.element)}}; ZJ$=function(v,O,Y){O=Y?O.lastElementChild:O.firstElementChild;for(var S=null;O;){if(p4(O,"display")!=="none"&&O.getAttribute("aria-hidden")!=="true"){var d=void 0;O.tabIndex>=0?d=O:d=ZJ$(v,O,Y);d&&(S?Y?d.tabIndex>S.tabIndex&&(S=d):d.tabIndexS/1E3+1)return{msg:"in-the-past"};if(r.isLivePlayback&&!isFinite(S))return{msg:"live-infinite"};(S=O.Bq())&&S.isView()&&(S=S.mediaElement);if(S&&S.ix().length>12&&g.MJ(d))return{msg:"played-ranges"};if(!d.G)return null;if(!b)return{msg:"no-pvd-formats"};if(!d.G.Y||!b.Y)return{msg:"non-dash"};S=b.videoInfos[0];var z=d.G.videoInfos[0];v.j&&HO(r)&&(S=O.BA(),z= Y.BA());if(!S||!z)return{msg:"no-video-info"};if(v.B&&(D6(S)||D6(z)))return{msg:"av1"};O=v.U&&r.wy()&&PS();if(z.containerType!==S.containerType)if(O)r.G0("sgap",{ierr:"container"});else return{msg:"container"};if(v.G&&!O&&(z.z0!==S.z0||z.z0===""||S.z0===""))return{msg:"codec"};if(v.Z&&z.video&&S.video&&Math.abs(z.video.width/z.video.height-S.video.width/S.video.height)>.01)return{msg:"ratio"};if(g.MJ(r)&&g.MJ(d))return{msg:"content-protection"};b=b.Y[0];d=d.G.Y[0];Y=b.audio;var M=d.audio;if(Y.sampleRate!== M.sampleRate&&!g.En)if(O)r.G0("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:b.itag,cr:Y.sampleRate,ni:d.itag,nr:M.sampleRate};return(Y.numChannels||2)!==(M.numChannels||2)?{msg:"channel-count"}:v.L&&r.wy()&&S.video.fps!==z.video.fps?{msg:"fps"}:null}; q11=function(v,O,Y){var S=v.getVideoData(),d=O.getVideoData();if(!S.D().supportsGaplessShorts())return{nq:"env"};if(Y.X?S.Tn&&!S.isAd()||d.Tn&&!d.isAd():Y.Y?S.Tn&&!S.isAd()||d.Tn:S.Tn||d.Tn)return{nq:"autoplay"};if(Y.C&&S.endSeconds>0)return{nq:"endcr"};if(!S.L)return{nq:"client"};if(!v.JF())return{nq:"no-empty"};v=Izc(Y,v,O,Infinity);return v!=null?{nq:v.msg}:null}; FV=function(v){g.X.call(this);this.app=v;this.Z=this.B=this.U=this.Y=null;this.G=1;this.events=new g.Z6(this);this.events.S(this.app.r8,g.o1("gaplessshortslooprange"),this.X);g.w(this,this.events)}; npQ=function(){this.C=this.Z=this.Y=this.X=this.B=this.j=this.L=this.G=this.U=!1}; Jfc=function(v){var O=new npQ;O.U=v.V("h5_gapless_support_types_diff");O.L=v.V("h5_gapless_error_on_fps_diff");O.j=v.V("html5_gapless_use_format_info_fix");O.B=v.V("html5_gapless_disable_on_av1")&&!v.V("html5_gapless_enable_on_av1");O.G=v.V("html5_gapless_check_codec_diff_strictly");O.X=v.V("html5_gapless_on_ad_autoplay");O.Z=v.V("html5_gapless_disable_diff_aspect_radio");O.C=v.V("html5_gapless_disable_on_end_cue_range");O.Y=v.V("html5_gapless_ad_autoplay_on_ad_to_video_only");return O}; g.hG=function(v,O,Y,S){S=S===void 0?!1:S;Y2.call(this);this.mediaElement=v;this.start=O;this.end=Y;this.Y=S}; K$d=function(v,O,Y,S,d,r){r=r===void 0?0:r;g.X.call(this);var b=this;this.policy=v;this.Y=O;this.U=Y;this.WD=d;this.Z=r;this.B=this.G=null;this.currentVideoDuration=this.C=-1;this.L=!1;this.Mw=new OK;this.eI=S-O.En()*1E3;this.Mw.then(void 0,function(){}); this.timeout=new g.mX(function(){b.Mo("timeout")},1E4); g.w(this,this.timeout);this.X=isFinite(S)||this.WD.D().experiments.T0("html5_pseudogapless_shorts")&&HO(O.getVideoData());this.status={status:0,error:null}}; iJi=function(v){var O,Y,S,d,r,b,z,M,V,A;return g.B(function(f){if(f.U==1){if(v.vW())return f.return(Promise.reject(Error(v.status.error||"disposed")));v.timeout.start();O=g.Rq.HO();return g.E(f,v.Mw,2)}g.Rq.qI("gtfta",O);Y=v.Y.Bq();if(Y.isEnded())return v.Mo("ended_in_finishTransition"),f.return(Promise.reject(Error(v.status.error||"")));if(!v.B||!mK(v.B))return v.Mo("next_mse_closed"),f.return(Promise.reject(Error(v.status.error||"")));if(v.U.rW()!==v.B)return v.Mo("next_mse_mismatch"),f.return(Promise.reject(Error(v.status.error|| "")));S=PXE(v);d=S.cR;r=S.I8;b=S.Y2;v.Y.FN(!1,!0);z=Gs1(Y,d,b,!v.U.getVideoData().isAd());v.U.setMediaElement(z);(M=v.Y.TI())&&v.U.U3(M.Z$,M.h0);v.X&&(v.U.seekTo(v.U.getCurrentTime()+.001,{Iz:!0,jc:3,Vg:"gapless_pseudo"}),z.play(),Eq());V=Y.Yu();V.cpn=v.Y.getVideoData().clientPlaybackNonce;V.st=""+d;V.et=""+b;v.U.G0("gapless",V);v.Y.G0("gaplessTo",{cpn:v.U.getVideoData().clientPlaybackNonce});A=v.Y.getPlayerType()===v.U.getPlayerType();v.Y.zN(r,!0,!1,A,v.U.getVideoData().clientPlaybackNonce);v.U.zN(v.U.getCurrentTime(), !0,!0,A,v.Y.getVideoData().clientPlaybackNonce);g.yP(function(){!v.U.getVideoData().FO&&v.U.getPlayerState().isOrWillBePlaying()&&v.U.dl()}); eP(v,6);v.dispose();return f.return(Promise.resolve())})}; HJm=function(v){if(v.U.getVideoData().G){var O=v.WD.D().V("html5_gapless_suspend_next_loader")&&v.Z===1;v.U.TT(v.B,O,mwF(v));eP(v,3);tbm(v);var Y=Dw1(v);O=Y.F3;Y=Y.Cx;O.subscribe("updateend",v.zA,v);Y.subscribe("updateend",v.zA,v);v.zA(O);v.zA(Y)}}; tbm=function(v){v.Y.unsubscribe("internalvideodatachange",v.r6,v);v.U.unsubscribe("internalvideodatachange",v.r6,v);v.WD.D().V("html5_gapless_use_format_info_fix")&&(v.Y.unsubscribe("internalvideoformatchange",v.r6,v),v.U.unsubscribe("internalvideoformatchange",v.r6,v));v.Y.unsubscribe("mediasourceattached",v.r6,v);v.U.unsubscribe("statechange",v.Jw,v)}; Gs1=function(v,O,Y,S){v=v.isView()?v.mediaElement:v;return new g.hG(v,O,Y,S)}; eP=function(v,O){O<=v.status.status||(v.status={status:O,error:null},O===5&&v.Mw.resolve())}; mwF=function(v){return v.WD.D().V("html5_gapless_no_clear_buffer_timeline")&&v.Z===1&&Ol(v.Y.getVideoData())}; PXE=function(v){var O=v.Y.Bq();O=O.isView()?O.start:0;var Y=v.Y.getVideoData().isLivePlayback?Infinity:v.Y.SE(!0);Y=Math.min(v.eI/1E3,Y)+O;var S=v.X?100:0;v=Y-v.U.nE()+S;return{Jg:O,cR:v,I8:Y,Y2:Infinity}}; Dw1=function(v){return{F3:v.G.Y.Gd,Cx:v.G.U.Gd}}; EY=function(v){g.X.call(this);var O=this;this.app=v;this.Z=this.U=this.Y=null;this.X=!1;this.G=this.B=null;this.L=Jfc(this.app.D());this.C=function(){g.yP(function(){NRJ(O)})}}; vng=function(v,O,Y,S,d){S=S===void 0?0:S;d=d===void 0?0:d;v.JF()||Qi(v);v.B=new OK;v.Y=O;var r=Y,b=d===0;b=b===void 0?!0:b;var z=v.app.uc(),M=z.getVideoData().isLivePlayback?Infinity:z.SE(!0)*1E3;r>M&&(r=M-200,v.X=!0);b&&z.getCurrentTime()>=r/1E3?v.C():(v.U=z,b&&(b=r,r=v.U,v.app.r8.addEventListener(g.bI("vqueued"),v.C),b=isFinite(b)||b/1E3>r.getDuration()?b:0x8000000000000,v.Z=new g.dh(b,0x8000000000000,{namespace:"vqueued"}),r.addCueRange(v.Z)));b=S/=1E3;r=O.getVideoData().Y;S&&r&&v.U&&(z=S,M=0, O.getVideoData().isLivePlayback&&(b=Math.min(Y/1E3,v.U.SE(!0)),M=Math.max(0,b-v.U.getCurrentTime()),z=Math.min(S,O.SE()+M)),b=aD1(r,z)||S,b!==S&&v.Y.G0("qvaln",{st:S,at:b,rm:M,ct:z}));O=b;S=v.Y;S.getVideoData().dE=!0;S.getVideoData().L=!0;S.Ie(!0);r={};v.U&&(r=v.U.Xp(),b=v.U.getVideoData().clientPlaybackNonce,r={crt:(r*1E3).toFixed(),cpn:b});S.G0("queued",r);O!==0&&S.seekTo(O+.01,{Iz:!0,jc:3,Vg:"videoqueuer_queued"});v.G=new K$d(v.L,v.app.uc(),v.Y,Y,v.app,d);Y=v.G;Y.status.status!==Infinity&&(eP(Y, 1),Y.Y.subscribe("internalvideodatachange",Y.r6,Y),Y.U.subscribe("internalvideodatachange",Y.r6,Y),Y.WD.D().V("html5_gapless_use_format_info_fix")&&(Y.Y.subscribe("internalvideoformatchange",Y.r6,Y),Y.U.subscribe("internalvideoformatchange",Y.r6,Y)),Y.Y.subscribe("mediasourceattached",Y.r6,Y),Y.U.subscribe("statechange",Y.Jw,Y),Y.Y.subscribe("newelementrequired",Y.gb,Y),Y.r6());return v.B}; NRJ=function(v){var O,Y,S,d,r,b,z,M,V;g.B(function(A){switch(A.U){case 1:if(v.vW()||!v.B||!v.Y)return A.return();v.X&&v.app.uc().O3(!0,!1);Y=v.app.D().V("html5_force_csdai_gapful_transition")&&((O=v.app.uc())==null?void 0:O.getVideoData().isDaiEnabled());S=null;if(!v.G||Y){A.d8(2);break}g.cm(A,3);return g.E(A,iJi(v.G),5);case 5:g.ai(A,2);break;case 3:S=d=g.Tc(A);case 2:if(!v.Y)return A.return();g.Rq.SV("vqsp",function(){v.app.P1(v.Y)}); if(!v.Y)return A.return();r=v.Y.Bq();v.app.D().V("html5_gapless_seek_on_negative_time")&&r&&r.getCurrentTime()<-.01&&v.Y.seekTo(0);g.Rq.SV("vqpv",function(){v.app.playVideo()}); if(S||Y)v.Y?(b=S?S.message:"forced",(z=v.U)==null||z.G0("gapfulfbk",{r:b}),v.Y.Ew(b)):(M=v.U)==null||M.G0("gapsp",{});V=v.B;Qi(v);V&&V.resolve();return A.return(Promise.resolve())}})}; Qi=function(v,O){O=O===void 0?!1:O;if(v.U){if(v.Z){var Y=v.U;v.app.r8.removeEventListener(g.bI("vqueued"),v.C);Y.removeCueRange(v.Z)}v.U=null;v.Z=null}v.G&&(v.G.status.status!==6&&(Y=v.G,Y.status.status!==Infinity&&Y.Z!==1&&Y.Mo("Canceled")),v.G=null);v.B=null;v.Y&&!O&&v.Y!==v.app.cT()&&v.Y!==v.app.uc()&&v.Y.dispose();v.Y&&O&&v.Y.jG();v.Y=null;v.X=!1}; Ok1=function(v){var O;return((O=v.G)==null?void 0:O.currentVideoDuration)||-1}; Yh$=function(v,O,Y){if(v.JF())return"qie";if(v.Y==null||v.Y.vW()||v.Y.getVideoData()==null)return"qpd";if(O.videoId!==v.Y.fE())return"vinm";if(Ok1(v)<=0)return"ivd";if(Y!==1)return"upt";if((Y=v.G)==null)v=void 0;else if(Y.getStatus().status!==5)v="niss";else if(Izc(Y.policy,Y.Y,Y.U,Y.eI)!=null)v="pge";else{O=Dw1(Y);v=O.F3;var S=O.Cx;O=g.Vq(Y.WD.D().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var d=Y.C+O;Y.WD.D().experiments.T0("html5_pseudogapless_shorts")&&(d=PXE(Y).cR+O);Y=so(S.UM(), d);v=so(v.UM(),d);v=!(O>0)||Y&&v?null:"neb"}return v!=null?v:null}; Sh1=function(){g.MU.call(this);var v=this;this.fullscreen=0;this.B=this.G=this.pictureInPicture=this.Y=this.U=this.inline=!1;this.Z=function(){v.Gm()}; tOm(this.Z);this.C=this.getVisibilityState(this.YW(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.lq(),this.F_(),this.qb(),this.Rv())}; NOQ=function(v){return!(v.isMinimized()||v.isInline()||v.isBackground()||v.lq()||v.F_()||v.qb()||v.Rv())}; g.Lj=function(v){g.X.call(this);this.Yg=v;this.videoData=this.playerState=null}; XV=function(v,O){g.X.call(this);var Y=this;this.data=[];this.G=v||NaN;this.U=O||null;this.Y=new g.mX(function(){BJ(Y);ZN(Y)}); g.w(this,this.Y)}; rZw=function(v){BJ(v);return v.data.map(function(O){return O.value})}; BJ=function(v){var O=(0,g.J)();v.data.forEach(function(Y){Y.expire0));(S=g.Vq(O, "html5_cobalt_audio_write_ahead_ms"))&&oG("Media.AudioWriteDurationLocal",S);(S=Y("html5_cobalt_enable_decode_to_texture"))&&oG("Media.PlayerConfiguration.DecodeToTexturePreferred",S?1:0);(v.XL()||Y("html5_log_cpu_info"))&&GrJ();Error.stackTraceLimit=50;var d=g.Vq(O,"html5_idle_rate_limit_ms");d&&Object.defineProperty(window,"requestIdleCallback",{value:function(r){return window.setTimeout(r,d)}}); GHn(v.Z);UYw(Y("html5_use_ump_request_slicer"));qRF(Y("html5_record_now"));Y("html5_disable_streaming_xhr")&&(Df=!1);Y("html5_byterate_constraints")&&(oa=!0);Y("html5_use_non_active_broadcast_for_post_live")&&(mt=!0);Y("html5_enable_encrypted_av1")&&(tL=!0);qVm(g.Vq(v.experiments,"html5_sticky_duration_mos"));v.V("html5_estimate_live_partial_slice_duration")&&(jId=!0)}; seJ=function(v,O){return v.slice(O.length).replace(/_[a-z]/g,function(Y){return Y.toUpperCase().replace("_","")}).replace("Dot",".")}; gnm=function(v){for(var O={},Y=g.y(Object.keys(v.experiments.flags)),S=Y.next();!S.done;S=Y.next())if(S=S.value,S.startsWith("cobalt_h5vcc"))if(S.startsWith("cobalt_h5vcc_string")){var d=seJ(S,"cobalt_h5vcc_string");S=HY(v.experiments,S);d&&S&&(O[d]=oG(d,S))}else S.startsWith("cobalt_h5vcc")&&(d=seJ(S,"cobalt_h5vcc"),S=g.Vq(v.experiments,S),d&&S&&(O[d]=oG(d,S)));return O}; nj=function(v,O,Y,S,d){d=d===void 0?[]:d;g.X.call(this);this.Yg=v;this.qj=O;this.segments=d;this.Y=new Map}; Mnw=function(v,O,Y,S){S=S===void 0?0:S;g.ET.call(this,Y.EL());this.f_=v;this.videoData=O;this.duration=S;this.endTime=this.startTime=0}; Vn$=function(v){this.end=this.start=v}; g.JG=function(){this.Y=new Map;this.G=new Map;this.U=new Map}; g.Kj=function(v,O,Y,S){g.X.call(this);var d=this;this.api=v;this.Yg=O;this.playback=Y;this.app=S;this.FO=new g.JG;this.U=new Map;this.C=[];this.Z=[];this.B=new Map;this.PT=new Map;this.L=new Map;this.Mj=new Map;this.f1=null;this.R1=NaN;this.Cj=this.rR=null;this.Te=new g.mX(function(){AH7(d,d.R1,d.rR||void 0)}); this.events=new g.Z6(this);this.On=15E3;this.JK=new g.mX(function(){d.N3=!0;d.playback.pY(d.On);f7l(d);if(d.playback.getVideoData().lM()){var r;d.Yy({togab:(r=d.HW)==null?void 0:r.identifier})}d.YO(!1)},this.On); this.N3=!1;this.j=new Map;this.yx=[];this.HW=null;this.pj=new Set;this.g8=[];this.yC=[];this.aI=[];this.w2=[];this.Y=void 0;this.PA=0;this.XO=!0;this.X=!1;this.AK=[];this.xg=new Set;this.Td=new Set;this.II=new Set;this.RJ=0;this.Eg=new Set;this.qX=0;this.XF=this.oI=!1;this.Wq=this.G="";this.Ug=null;this.logger=new g.vY("dai");this.Qg={D$8:function(){return d.U}, s9d:function(){return d.C}, ROu:function(){return d.B}, xwg:function(){return d.G}, goO:function(r){d.onCueRangeEnter(d.U.get(r))}, Wgg:function(r){d.onCueRangeExit(d.U.get(r))}, GId:function(r,b){d.U.set(r,b)}, pIg:function(r){d.Wq=r}, q6:function(){return d.q6()}, wA3:function(r){return d.L.get(r)}, uCs:function(){return d.Ug}}; this.playback.getPlayerType();this.playback.wY(this);this.n1=this.Yg.XL();g.w(this,this.Te);g.w(this,this.events);g.w(this,this.JK);this.events.S(this.api,g.bI("serverstitchedcuerange"),this.onCueRangeEnter);this.events.S(this.api,g.o1("serverstitchedcuerange"),this.onCueRangeExit);rH3(this.app.o4(),this.playback,!1)}; uEE=function(v,O,Y,S,d,r,b,z,M){if(v.Yg.V("html5_ignore_ads_after_noadresponse")&&M&&v.pj.has(M))return PJ(v,{reason:"addafternoad",cueid:M}),"";M=$Tc(v,r,r+d);v.N3&&v.Yy({adaftto:1});Y||v.Yy({missadcon:1,enter:r,len:d,aid:z});v.tK&&!v.tK.U0&&(v.tK.U0=z);v.XF&&v.Yy({adfbk:1,enter:r,len:d,aid:z});var V=v.playback;b=b===void 0?r+d:b;r===b&&!d&&v.Yg.V("html5_allow_zero_duration_ads_on_timeline")&&v.Yy({attl0d:1});r>b&&PJ(v,{reason:"enterTime_greater_than_return",qj:r,Qw:b});var A=V.jO()*1E3;rV&&PJ(v,{reason:"parent_return_greater_than_content_duration",Qw:b,RlK:V});V=null;A=g.Tw(v.Z,{Qw:r},function(f,k){return f.Qw-k.Qw}); A>=0&&(V=v.Z[A],V.Qw>r&&klc(v,O.video_id||"",r,b,V));if(M&&V)for(A=0;A.5&&v.Yy({ttdtb:1,delta:b,cpn:d.cpn,enter:O.adCpn,exit:Y.adCpn,seek:S,skip:r});v.api.V("html5_ssdai_enable_media_end_cue_range")&&(!S&&!r&&Y.isAd&&Y.adCpn?v.api.bu(Y.adCpn):(S||r)&&v.Yy({mecr:0,seek:S,skip:r}));if(O.isAd&&Y.isAd){d=!!r;if(O.adCpn&&Y.adCpn){var z=v.B.get(O.adCpn);var M=v.B.get(Y.adCpn)}d?v.Yy({igtransskip:1,enter:O.adCpn,exit:Y.adCpn,seek:S,skip:r}):tG(v,M,z,Y.XQ,O.XQ,S,d)}else if(!O.isAd&&Y.isAd){v.Wq= d.cpn;v.Oo(d.cpn,d.qj/1E3);v.api.publish("serverstitchedvideochange");z=i_(v,"a2c");v.Yy(z);v.RJ=0;if(z=Y.Al)v.PA=z.end;var V;Y.adCpn&&(V=v.B.get(Y.adCpn));V&&v.playback.nz(V,d,Y.XQ,O.XQ,S,!!r)}else if(O.isAd&&!Y.isAd){var A;O.adCpn&&(A=v.B.get(O.adCpn));A&&(v.PA=0,v.Wq=A.cpn,v.Oo(A.cpn,A.qj/1E3),mV(v,A),V=i_(v,"c2a",A),v.Yy(V),v.RJ=1,v.playback.nz(d,A,Y.XQ,O.XQ,S,!!r))}}; HJ=function(v,O,Y){Y=Y===void 0?0:Y;var S=g.Tw(v.Z,{qj:(O+Y)*1E3},function(z,M){return z.qj-M.qj}); S=S<0?(S+2)*-1:S;if(S>=0)for(var d=O*1E3,r=S;r<=S+1&&r=b.qj-Y*1E3&&d<=b.Qw+Y*1E3)return{WS:b,Di:O}}return{WS:void 0,Di:O}}; xTF=function(v,O){var Y="";(O=a7n(v,O))&&(Y=O.getId());return Y?v.B.get(Y):void 0}; a7n=function(v,O){if(v.Wq){var Y=v.U.get(v.Wq);if(Y&&Y.start-200<=O&&Y.end+200>=O)return Y}v=g.y(v.U.values());for(Y=v.next();!Y.done;Y=v.next())if(Y=Y.value,Y.start<=O&&Y.end>=O)return Y}; AH7=function(v,O,Y){var S=v.Cj||v.app.uc().getPlayerState();Nh(v,!0);v.playback.seekTo(O,Y);v=v.app.uc();O=v.getPlayerState();S.isOrWillBePlaying()&&!O.isOrWillBePlaying()?v.playVideo():S.isPaused()&&!O.isPaused()&&v.pauseVideo()}; Nh=function(v,O){v.R1=NaN;v.rR=null;v.Te.stop();v.f1&&O&&v.f1.De();v.Cj=null;v.f1=null}; TmF=function(v){var O=O===void 0?-1:O;var Y=Y===void 0?Infinity:Y;for(var S=[],d=g.y(v.Z),r=d.next();!r.done;r=d.next())r=r.value,(r.qjY)&&S.push(r);v.Z=S;S=g.y(v.U.values());for(d=S.next();!d.done;d=S.next())d=d.value,d.start>=O&&d.end<=Y&&(v.playback.removeCueRange(d),v.U.delete(d.getId()),v.Yy({rmAdCR:1}));S=HJ(v,O/1E3);O=S.WS;S=S.Di;if(O&&(S=S*1E3-O.qj,pF3(v,O,S,O.qj+S),S=v.U.get(O.cpn))){d=g.y(v.C);for(r=d.next();!r.done;r=d.next())r=r.value,r.start===S.end?r.start=O.qj+O.durationMs: r.end===S.start&&(r.end=O.qj);S.start=O.qj;S.end=O.qj+O.durationMs}if(O=HJ(v,Y/1E3).WS){var b;S="playback_timelinePlaybackId_"+O.PD+"_video_id_"+((b=O.videoData)==null?void 0:b.videoId)+"_durationMs_"+O.durationMs+"_enterTimeMs_"+O.qj+"_parentReturnTimeMs_"+O.Qw;v.fq("Invalid_clearEndTimeMs_"+Y+"_that_falls_during_"+S+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; l7F=function(v){v.FO.clearAll();v.U.clear();v.C=[];v.Z=[];v.B.clear();v.PT.clear();v.L.clear();v.j.clear();v.yx=[];v.HW=null;v.pj.clear();v.g8=[];v.yC=[];v.aI=[];v.w2=[];v.AK=[];v.xg.clear();v.Td.clear();v.II.clear();v.Eg.clear();v.N3=!1;v.Y=void 0;v.PA=0;v.XO=!0;v.X=!1;v.RJ=0;v.qX=0;v.oI=!1;v.XF=!1;v.G="";v.JK.isActive()&&Gt(v)}; pF3=function(v,O,Y,S){O.durationMs=Y;O.Qw=S;(S=v.Mj.get(O.cpn))?S.OJ(Y/1E3):v.Yy({nop_d:O.cpn})}; hqw=function(v,O,Y,S,d,r){if(!v.XF)if(g.Fid(v,Y))v.Yy({gdu:"undec",seg:Y,itag:d});else if(O=vA(v,O,Y,S,r),!(v.playback.getVideoData().lM()&&(O==null?0:O.X_)))return O}; vA=function(v,O,Y,S,d){var r=v.j.get(Y);if(!r){if(r=RqQ(v,O))return r;O=v.nC(Y-1,S!=null?S:2);if(d)return v.Yy({misscue:d,sq:Y,type:S,prevsstate:O==null?void 0:O.by,prevrecord:v.j.has(Y-1)}),v.j.get(Y-1);if((O==null?void 0:O.by)===2)return v.Yy({adnf:1,sq:Y,type:S,prevrecord:v.j.has(Y-1)}),v.j.get(Y-1)}return r}; RqQ=function(v,O){O+=v.WV();if(v.playback.getVideoData().lM())a:{var Y=1;Y=Y===void 0?0:Y;var S=O*1E3;v=g.y(v.Z);for(var d=v.next();!d.done;d=v.next()){d=d.value;var r=d.Wu?d.Wu*1E3:d.qj;if(S>=d.qj-Y*1E3&&S<=r+d.durationMs+Y*1E3){S={WS:d,Di:O};break a}}S={WS:void 0,Di:O}}else S=HJ(v,O),((Y=S)==null?0:Y.WS)||(S=HJ(v,O,1));var b;return(b=S)==null?void 0:b.WS}; eqJ=function(v,O){O=O===void 0?"":O;var Y=Sj(O)||void 0;if(!O||!Y){var S;v.Yy({adcfg:(S=O)==null?void 0:S.length,dcfg:Y==null?void 0:Y.length})}return Y}; EnQ=function(v){if(v.AK.length)for(var O=g.y(v.AK),Y=O.next();!Y.done;Y=O.next())v.onCueRangeExit(Y.value);O=g.y(v.U.values());for(Y=O.next();!Y.done;Y=O.next())v.playback.removeCueRange(Y.value);O=g.y(v.C);for(Y=O.next();!Y.done;Y=O.next())v.playback.removeCueRange(Y.value);v.U.clear();v.C=[];v.FO.clearAll();v.Y||(v.XO=!0)}; tG=function(v,O,Y,S,d,r,b){if(O&&Y){v.Wq=Y.cpn;v.Oo(Y.cpn,Y.qj/1E3);mV(v,Y);var z=i_(v,"a2a",Y);v.Yy(z);v.RJ++;v.playback.nz(O,Y,S||0,d||0,!!r,!!b)}else v.Yy({misspbkonadtrans:1,enter:(Y==null?void 0:Y.cpn)||"",exit:(O==null?void 0:O.cpn)||"",seek:r,skip:b})}; Li1=function(v,O,Y,S){if(S)for(S=0;SY){var r=d.end;d.end=O;Qe$(v,Y,r)}else if(d.start>=O&&d.startY)d.start=Y;else if(d.end>O&&d.end<=Y&&d.start=O&&d.end<=Y){v.playback.removeCueRange(d);if(v.AK.includes(d))v.onCueRangeExit(d);v.C.splice(S,1);continue}S++}else Qe$(v,O,Y)}; Qe$=function(v,O,Y){O=CR3(O,Y);Y=!0;g.EJ(v.C,O,function(b,z){return b.start-z.start}); for(var S=0;S0){var d=v.C[S],r=v.C[S-1];if(Math.round(r.end/1E3)>=Math.round(d.start/1E3)){r.end=d.end;d!==O?v.playback.removeCueRange(d):Y=!1;v.C.splice(S,1);continue}}S++}if(Y)for(v.playback.addCueRange(O),O=v.playback.Tc("serverstitchedcuerange",36E5),O=g.y(O),Y=O.next();!Y.done;Y=O.next())v.U.delete(Y.value.getId())}; OH=function(v,O,Y){if(Y===void 0||!Y){Y=g.y(v.yx);for(var S=Y.next();!S.done;S=Y.next()){S=S.value;if(O>=S.start&&O<=S.end)return;if(O===S.end+1){S.end+=1;return}}v.yx.push(new Vn$(O))}}; g.Fid=function(v,O){v=g.y(v.yx);for(var Y=v.next();!Y.done;Y=v.next())if(Y=Y.value,O>=Y.start&&O<=Y.end)return!0;return!1}; YP=function(v,O,Y){var S;if(S=v.playback.getVideoData().lM()||v.Yg.V("html5_ssdai_extent_last_unfinished_ad_cue_range"))S=(S=v.B.get(O))&&S.V5?(v=v.L.get(S==null?void 0:S.V5))&&v.slice(-1)[0].cpn===O:!1;return S&&Y===2?1E3:0}; klc=function(v,O,Y,S,d){var r;O={reason:"overlapping_playbacks",X13:O,qj:Y,Qw:S,Lgg:d.PD,Abs:((r=d.videoData)==null?void 0:r.videoId)||"",Fg0:d.durationMs,vox:d.qj,kxO:d.Qw};PJ(v,O)}; PJ=function(v,O,Y){v.playback.cw(O,Y)}; Bmd=function(v,O){var Y=[];v=v.L.get(O);if(!v)return[];v=g.y(v);for(O=v.next();!O.done;O=v.next())O=O.value,O.cpn&&Y.push(O.cpn);return Y}; Zkc=function(v,O,Y){var S=0;v=v.L.get(Y);if(!v)return-1;v=g.y(v);for(Y=v.next();!Y.done;Y=v.next()){if(Y.value.cpn===O)return S;S++}return-1}; XFn=function(v,O){var Y=0;v=v.L.get(O);if(!v)return 0;v=g.y(v);for(O=v.next();!O.done;O=v.next())O=O.value,O.durationMs!==0&&O.Qw!==O.qj&&Y++;return Y}; wFm=function(v,O,Y){var S=!1;if(Y&&(Y=v.L.get(Y))){Y=g.y(Y);for(var d=Y.next();!d.done;d=Y.next())d=d.value,d.durationMs!==0&&d.Qw!==d.qj&&(d=d.cpn,O===d&&(S=!0),S&&!v.Td.has(d)&&(v.Yy({decoratedAd:d}),v.Td.add(d)))}}; f7l=function(v){v.n1&&v.Yy({adf:"0_"+((new Date).getTime()/1E3-v.qX)+"_isTimeout_"+v.N3})}; $Tc=function(v,O,Y){if(v.g8.length)for(var S=g.y(v.g8),d=S.next(),r={};!d.done;r={FW:void 0},d=S.next()){r.FW=d.value;d=r.FW.startSecs*1E3;var b=r.FW.kZ*1E3+d;if(O>d&&Od&&Y0?v:0}else v.q6().videoData.PT=v.playback.getCurrentTime()}; Gln=function(v,O,Y,S){g.X.call(this);var d=this;this.api=v;this.Yg=O;this.Y=Y;this.app=S;this.Z=new Map;this.U=[];this.G=this.L=null;this.tK=NaN;this.C=this.B=this.j=null;this.X=new g.mX(function(){PRc(d,d.tK,d.j||void 0)}); this.Ug=[];this.HW=new g.mX(function(){var r=d.Ug.pop();if(r){var b=r.PD,z=r.playerVars;r=r.playerType;z&&(z.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(z,r,NaN,"",b),d.Ug.length&&g.HM(d.HW,4500))}}); this.events=new g.Z6(this);this.Qg={TNd:function(){return d.U}}; this.Y.getPlayerType();g.w(this,this.X);g.w(this,this.HW);g.w(this,this.events);this.events.S(this.api,g.bI("childplayback"),this.onCueRangeEnter);this.events.S(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.S(this.api,"presentingplayerstatechange",this.Uz)}; DTQ=function(v,O,Y,S,d,r){var b=O.cpn,z=O.docid||O.video_id||O.videoId||O.id,M=v.Y;r=r===void 0?d+S:r;if(d>r)return du(v,"enterAfterReturn enterTimeMs="+d+" is greater than parentReturnTimeMs="+r.toFixed(3),b,z),"";var V=M.jO()*1E3;if(dV)return M="returnAfterDuration parentReturnTimeMs="+r.toFixed(3)+" is greater than parentDurationMs="+V+". And timestampOffset in seconds is "+ M.En(),du(v,M,b,z),"";V=null;for(var A=g.y(v.U),f=A.next();!f.done;f=A.next()){f=f.value;if(d>=f.qj&&df.qj)return du(v,"overlappingReturn",b,z),"";if(r===f.qj)return du(v,"outOfOrder",b,z),"";d===f.Qw&&(V=f)}b="cs_childplayback_"+ikm++;z={Al:ru(S,!0),eI:Infinity,target:null};var k={PD:b,playerVars:O,playerType:Y,durationMs:S,qj:d,Qw:r,oY:z};v.U=v.U.concat(k).sort(function(a,x){return a.qj-x.qj}); V?mTi(v,V,{Al:ru(V.durationMs,!0),eI:V.oY.eI,target:k}):(O={Al:ru(d,!1),eI:d,target:k},v.Z.set(O.Al,O),M.addCueRange(O.Al));O=!0;if(v.Y===v.app.uc()&&(M=M.getCurrentTime()*1E3,M>=k.qj&&MO)break;if(r>O)return{WS:S,Di:O-d};Y=r-S.Qw/1E3}return{WS:null,Di:O-Y}}; PRc=function(v,O,Y){Y=Y===void 0?{}:Y;var S=v.C||v.app.uc().getPlayerState();jD(v,!0);O=isFinite(O)?O:v.Y.WP();var d=O13(v,O);O=d.Di;var r=(d=d.WS)&&!bf(v,d)||!d&&v.Y!==v.app.uc(),b=O*1E3;b=v.G&&v.G.start<=b&&b<=v.G.end;!r&&b||oo(v);d?tnF(v,d,O,Y,S):Yw$(v,O,Y,S)}; Yw$=function(v,O,Y,S){var d=v.Y;d!==v.app.uc()&&v.app.QW();d.seekTo(O,Object.assign({},{Vg:"application_timelinemanager"},Y));Sww(v,S)}; tnF=function(v,O,Y,S,d){var r=bf(v,O);if(!r){O.playerVars.prefer_gapless=!0;v.Yg.V("html5_enable_ssap_entity_id")&&(O.playerVars.cached_load=!0);var b=new g.w2(v.Yg,O.playerVars);b.PD=O.PD;v.api.FK(b,O.playerType)}b=v.app.uc();r||b.addCueRange(O.oY.Al);b.seekTo(Y,Object.assign({},{Vg:"application_timelinemanager"},S));Sww(v,d)}; Sww=function(v,O){v=v.app.uc();var Y=v.getPlayerState();O.isOrWillBePlaying()&&!Y.isOrWillBePlaying()?v.playVideo():O.isPaused()&&!Y.isPaused()&&v.pauseVideo()}; jD=function(v,O){v.tK=NaN;v.j=null;v.X.stop();v.B&&O&&v.B.De();v.C=null;v.B=null}; bf=function(v,O){v=v.app.uc();return!!v&&v.getVideoData().PD===O.PD}; dpd=function(v){var O=v.U.find(function(d){return bf(v,d)}); if(O){var Y=v.app.uc();oo(v);var S=new g.oK(8);O=vqn(v,O)/1E3;Yw$(v,O,{},S);Y.G0("forceParentTransition",{childPlayback:1});v.Y.G0("forceParentTransition",{parentPlayback:1})}}; b1c=function(v,O,Y){O=O===void 0?-1:O;Y=Y===void 0?Infinity:Y;for(var S=O,d=Y,r=g.y(v.Z),b=r.next();!b.done;b=r.next()){var z=g.y(b.value);b=z.next().value;z=z.next().value;z.eI>=S&&z.target&&z.target.Qw<=d&&(v.Y.removeCueRange(b),v.Z.delete(b))}S=O;d=Y;r=[];b=g.y(v.U);for(z=b.next();!z.done;z=b.next())if(z=z.value,z.qj>=S&&z.Qw<=d){var M=v;M.L===z&&oo(M);bf(M,z)&&M.app.QW()}else r.push(z);v.U=r;S=O13(v,O/1E3);O=S.WS;S=S.Di;O&&(S*=1E3,rDm(v,O,S,O.Qw===O.qj+O.durationMs?O.qj+S:O.Qw));(O=O13(v,Y/1E3).WS)&& du(v,"Invalid clearEndTimeMs="+Y+" that falls during playback={timelinePlaybackId="+(O.PD+" video_id="+O.playerVars.video_id+" durationMs="+O.durationMs+" enterTimeMs="+O.qj+" parentReturnTimeMs="+O.Qw+"}.Child playbacks can only have duration updated not their start."))}; rDm=function(v,O,Y,S){O.durationMs=Y;O.Qw=S;S={Al:ru(Y,!0),eI:Y,target:null};mTi(v,O,S);bf(v,O)&&v.app.uc().getCurrentTime()*1E3>Y&&(O=vqn(v,O)/1E3,Y=v.app.uc().getPlayerState(),Yw$(v,O,{},Y))}; du=function(v,O,Y,S){v.Y.G0("timelineerror",{e:O,cpn:Y?Y:void 0,videoId:S?S:void 0})}; jc3=function(v){v&&v!=="web"&&oqJ.includes(v)}; WA=function(){g.X.call(this);this.Y=new XV(5,null);g.w(this,this.Y);this.U=new XV(15,null);g.w(this,this.U)}; j2m=function(v,O){return O?!!v.Y.get(O):!1}; Wd3=function(v,O){v.dataset.version=O}; gqm=function(v){g.K.call(this,{J:"div",hK:["html5-video-player"],T:{tabindex:v.D().disableOrganicUi?"":"-1",id:v.webPlayerContextConfig?v.webPlayerContextConfig.rootElementId:v.config.attrs.id},K:[{J:"div",W:g.Gm.VIDEO_CONTAINER,T:{"data-layer":"0"}}]});var O=this;this.app=v;this.gJ=this.BW(g.Gm.VIDEO_CONTAINER);this.Ci=new g.cL(0,0,0,0);this.Uq=null;this.zr=new g.cL(0,0,0,0);this.PG=this.YF=this.nO=NaN;this.zq=this.P5=this.hV=this.Ao=!1;this.HX=NaN;this.qm=!1;this.Yz=null;this.vR=function(){O.element.focus({preventScroll:!0})}; this.Aj=function(){O.app.r8.publish("playerUnderlayVisibilityChange","visible");O.Uq.classList.remove(g.Gm.VIDEO_CONTAINER_TRANSITIONING);O.Uq.removeEventListener(dp,O.Aj);O.Uq.removeEventListener("transitioncancel",O.Aj)}; this.Ep=this.Wa=!1;var Y=this.element.addEventListener,S=this.element.removeEventListener;this.addEventListener=function(r,b,z){Y.apply(O.element,[r,b,z])}; this.removeEventListener=function(r,b,z){S.apply(O.element,[r,b,z])}; var d=v.D();d.transparentBackground&&this.Na("ytp-transparent");d.controlsType==="0"&&this.Na("ytp-hide-controls");g.on(this.element,"ytp-exp-bottom-control-flexbox");g.on(this.element,"ytp-modern-caption");d.V("enable_new_paid_product_placement")&&!g.iq(d)&&g.on(this.element,"ytp-exp-ppp-update");d.V("html5_enable_ssap")&&g.on(this.element,"ytp-ssap");g.on(this.element,"ytp-livebadge-color");if(d.V("delhi_modern_web_player"))switch(g.on(this.element,"ytp-delhi-modern"),d.V("delhi_modern_web_player_icons")&& g.on(this.element,"ytp-delhi-modern-icons"),HY(d.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.on(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.on(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.on(this.element,"ytp-delhi-modern-with-exclusion")}Wd3(this.element,zcg(v));this.hk=!1;this.lr=new g.hc(NaN,NaN);scd(this);this.S(v.r8,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; scd=function(v){function O(){v.Uq&&zd(v);sH(v)!==v.qm&&v.resize()} function Y(b,z){v.xp(b,z)} function S(b){b.getVideoData()&&v.updateVideoData(b.getVideoData())} function d(){v.zr=new g.cL(0,0,0,0);v.Ci=new g.cL(0,0,0,0)} var r=v.app.r8;r.addEventListener("initializingmode",d);r.addEventListener("videoplayerreset",S);r.addEventListener("videodatachange",Y);r.addEventListener("presentingplayerstatechange",O);v.addOnDisposeCallback(function(){r.removeEventListener("initializingmode",d);r.removeEventListener("videoplayerreset",S);r.removeEventListener("videodatachange",Y);r.removeEventListener("presentingplayerstatechange",O)})}; Vwg=function(v){var O=v.app.uc();if(O=O?O.getVideoData():null){if(g.Ch(O)||g.y_(O)||g.aO(O))return 16/9;if(DZ(O)&&O.G.Y)return v=O.G.videoInfos[0].video,Mww(v.width,v.height)}return(v=v.Uq)?Mww(v.videoWidth,v.videoHeight):16/9}; ADi=function(v,O,Y,S){var d=Y,r=Mww(O.width,O.height);v.Ao?d=Yr?{width:O.width,height:O.width/d,aspectRatio:d}:dd?v.width=v.height*Y:YM;if(sH(v)){var V=Vwg(v);var A=isNaN(V)||g.i9||PX&&g.ch||M;G2&&!g.au(601)?V=d.aspectRatio:A=A||r.controlsType==="3";A?M?(A=r.V("place_shrunken_video_on_left_of_player")?16:v.getPlayerSize().width-O.width-16,V=Math.max((v.getPlayerSize().height-O.height)/2,0),A=new g.cL(A,V,O.width, O.height),v.Uq.style.setProperty("border-radius","12px")):A=new g.cL(0,0,O.width,O.height):(Y=d.aspectRatio/V,A=new g.cL((O.width-d.width/Y)/2,(O.height-d.height)/2,d.width/Y,d.height),Y===1&&g.ch&&(V=A.width-O.height*V,V>0&&(A.width+=V,A.height+=V)));g.gr(v.element,"ytp-fit-cover-video",Math.max(A.width-d.width,A.height-d.height)<1);if(z||v.hk)v.Uq.style.display="";v.qm=!0}else{A=-O.height;G2?A*=window.devicePixelRatio:g.mM&&(A-=window.screen.height);A=new g.cL(0,A,O.width,O.height);if(z||v.hk)v.Uq.style.display= "none";v.qm=!1}uS(v.zr,A)||(v.zr=A,g.RP(r)?(v.Uq.style.setProperty("width",A.width+"px","important"),v.Uq.style.setProperty("height",A.height+"px","important")):g.Ev(v.Uq,A.getSize()),S=new g.lg(A.left,A.top),g.FR(v.Uq,Math.round(S.x),Math.round(S.y)),S=!0);O=new g.cL((O.width-d.width)/2,(O.height-d.height)/2,d.width,d.height);uS(v.Ci,O)||(v.Ci=O,S=!0);g.ym(v.Uq,"transform",Y===1?"":"scaleX("+Y+")");b&&M!==v.P5&&(M&&(v.Uq.addEventListener(dp,v.Aj),v.Uq.addEventListener("transitioncancel",v.Aj),v.Uq.classList.add(g.Gm.VIDEO_CONTAINER_TRANSITIONING)), v.P5=M,v.app.r8.publish("playerUnderlayVisibilityChange",v.P5?"transitioning":"hidden"));return S}; k0d=function(v){v.Wa=!v.Wa;v.Ep=!0;v.element.classList.toggle("ytp-retro-player",v.Wa);v.resize();v.Ep=!1;v.app.r8.PW("onRetroModeChanged",v.Wa)}; Upm=function(){this.csn=g.TS();this.clientPlaybackNonce=null;this.elements=new Set;this.G=new Set;this.Y=new Set;this.U=new Set}; cDE=function(v){if(v.csn!==g.TS())if(v.csn==="UNDEFINED_CSN")v.csn=g.TS();else{var O=g.TS(),Y=g.pP();if(O&&Y){v.csn=O;for(var S=g.y(v.elements),d=S.next();!d.done;d=S.next())(d=d.value.visualElement)&&d.isClientVe()&&O&&Y&&(g.uF("combine_ve_grafts")?hZ(l4(),d,Y):g.N7(g.i5)(void 0,O,Y,d))}if(O)for(v=g.y(v.Y),Y=v.next();!Y.done;Y=v.next())(Y=Y.value.visualElement)&&Y.isClientVe()&&g.oF(O,Y)}}; g.MI=function(v,O,Y,S){g.X.call(this);var d=this;this.logger=new g.vY("App");this.jz=this.Az=!1;this.YL={};this.Rp=[];this.fR=!1;this.ZZ=null;this.intentionalPlayback=!1;this.MF=!0;this.kA=!1;this.EA=this.Hs=this.uU=null;this.Ws=!0;this.mediaElement=this.Nj=null;this.Gy=NaN;this.wl=!1;this.EE=this.L0=this.jp=this.screenLayer=this.playlist=null;this.MB=[];this.T6=0;this.Qg={o4:function(){return d.J9}, R$d:function(){return d.jp}, fK3:function(){}}; this.logger.debug("constructor begin");this.config=i7i(O||{});this.webPlayerContextConfig=Y;oGE();O=this.config.args||{};this.Yg=new X_(O,Y,Y?Y.canaryState:this.config.assets.player_canary_state,S,this);g.w(this,this.Yg);zqE(this.Yg);S=gnm(this.Yg);this.Yg.XL()&&gu(this,"h5vcc",S);this.Yg.experiments.T0("jspb_serialize_with_worker")&&Knn();this.Yg.experiments.T0("gzip_gel_with_worker")&&E0w();this.Yg.U&&!u1F&&(window.addEventListener(cD?"touchstart":"click",wyw,{capture:!0,passive:!0}),u1F=!0);this.V("html5_onesie")&& (this.Y_=new YE(this.Yg),g.w(this,this.Y_));this.Fa=dV(pH(this.Yg)&&!0,O.enablesizebutton);this.r$=dV(!1,O.player_wide);this.visibility=new Sh1;g.w(this,this.visibility);this.V("web_log_theater_mode_visibility")&&this.tZ(dV(!1,O.player_wide));this.Az=dV(!1,O.external_list);this.events=new g.Z6(this);g.w(this,this.events);this.V("start_client_gcf")&&(ek(BG(),{FS:jx,Zc:SyF()}),this.zl=BG().resolve(jx),bYF(this.zl));this.ZEu=new rB;g.w(this,this.ZEu);this.O$=new Upm;S=new bb;this.r8=new g.UT(this,S); g.w(this,this.r8);this.template=new gqm(this);g.w(this,this.template);this.appState=1;this.KS=CDF(this);g.w(this,S);S={};this.Sj=(S.internalvideodatachange=this.ngO,S.playbackready=this.Iud,S.playbackstarted=this.jdc,S.statechange=this.zxs,S);this.n8=new bn(this.r8);this.GO=yDn(this);S=this.V("html5_load_wasm");O=this.V("html5_allow_asmjs");S&&aw7||O?(this.Yg.II=z$7(this.GO,O),$i(fs(this.Yg.II,function(r){d.Yg.AK=r;gu(d,"wasm",{a:r.Y})}),function(r){g.Br(r); gu(d,"wasm",{e:"message"in r&&r.message||r.toString()||""})})):S&&!aw7&&gu(this,"wasm",{e:"unavailable"}); S=this.Yg.C;!1!==S&&gu(this,"badps",{hbp:S,hostname:window.location.hostname,ps:this.Yg.playerStyle});this.Zg=new uVF(this.Yg,this.GO);this.r8.publish("csiinitialized");S=10;g.lx(this.Yg)&&(S=3);Ga(this.Yg)&&(S=g.Vq(this.Yg.experiments,"tvhtml5_unplugged_preload_cache_size"));this.J9=new g.Iq(this.r8,S);S=xpE(this);this.J9.X5(S);p9l(this);S={};this.Zd=(S.airplayactivechange=this.tOW,S.airplayavailabilitychange=this.UXW,S.beginseeking=this.pDx,S.sabrCaptionsDataLoaded=this.VO8,S.endseeking=this.ei1, S.internalAbandon=this.QIs,S.internalaudioformatchange=this.Gf4,S.internalvideodatachange=this.Wag,S.internalvideoformatchange=this.XD3,S.liveviewshift=this.B2x,S.playbackstalledatstart=this.A9s,S.progresssync=this.hi8,S.onAbnormalityDetected=this.O_8,S.onSnackbarMessage=this.Lac,S.onLoadProgress=this.dXx,S.SEEK_COMPLETE=this.Fax,S.SEEK_TO=this.vux,S.onVideoProgress=this.r9s,S.onLoadedMetadata=this.mX0,S.onAutoplayBlocked=this.MO3,S.onPlaybackPauseAtStart=this.N2s,S.playbackready=this.CMc,S.statechange= this.rb,S.newelementrequired=this.Xl,S.heartbeatparams=this.H_4,S.videoelementevent=this.Sqx,S.drmoutputrestricted=this.c9x,S.signatureexpired=this.kfg,S.nonfatalerror=this.J90,S.reloadplayer=this.gud,S);this.A_=new g.Z6(this);g.w(this,this.A_);this.Wd=new WA;g.w(this,this.Wd);this.z7=this.Mg=-1;this.Z5=new g.mX(this.template.resize,16,this.template);g.w(this,this.Z5);this.f_=new Gln(this.r8,this.Yg,this.cT(),this);this.HU=new nj(this.Yg);this.UQ=new EY(this);g.w(this,this.UQ);this.Vv=new FV(this); g.w(this,this.Vv);jc3(this.Yg.Y.c);this.events.S(this.r8,g.bI("appapi"),this.Pc8);this.events.S(this.r8,g.o1("appapi"),this.yKd);this.events.S(this.r8,g.bI("appprogressboundary"),this.i_0);this.events.S(this.r8,g.o1("applooprange"),this.LY);this.events.S(this.r8,"presentingplayerstatechange",this.Uz);this.events.S(this.r8,"resize",this.zid);this.template.C1(wn(document,v));this.events.S(this.r8,"offlineslatestatechange",this.Igu);this.events.S(this.r8,"sabrCaptionsTrackChanged",this.ems);this.events.S(this.r8, "sabrCaptionsBufferedRangesUpdated",this.clx);this.GO.N.D().dE&&un(this.GO,"offline");this.Yg.xg&&g.se("ux",g.Tt);v=g.Vq(this.Yg.experiments,"html5_defer_fetch_att_ms");this.Gj=new g.mX(this.kO3,v,this);g.w(this,this.Gj);this.pP().sE()&&(g.Zg()&&this.pP().Ug.push("remote"),T9E(this));this.Zg.tick("fs");lwm(this);this.Yg.xg&&un(this.GO,"ux",!0);g.aP(this.GO.N.D())&&un(this.GO,"embed");this.V("web_player_sentinel_is_uniplayer")||g.Br(new g.iK("Player experiment flags missing","web_player_sentinel_is_uniplayer")); v=this.V("web_player_sentinel_yt_experiments_sync");S=g.uF("web_player_sentinel_yt_experiments_sync");v!==S&&g.Br(new g.iK("b/195699950",{yt:v,player:S}));Y||g.Br(new g.iK("b/179532961"));this.F0=Fdm(this);if(Y=g.Vq(this.Yg.experiments,"html5_block_pip_safari_delay"))this.cG=new g.mX(this.VO,Y,this),g.w(this,this.cG);QY=this.Yg.PT;Y=g.Vq(this.Yg.experiments,"html5_performance_impact_profiling_timer_ms");Y>0&&(this.U4=new g.Bt(Y),g.w(this,this.U4),this.events.S(this.U4,"tick",function(){d.GJ&&hcc.qI("apit", d.GJ);d.GJ=hcc.HO()})); this.r8.publish("applicationInitialized");this.logger.debug("constructor end")}; Fdm=function(v){function O(Y){Y.stack&&Y.stack.indexOf("player")!==-1&&v.uc().H5(Y)} ZX.subscribe("handleError",O);Dr.push(O);return function(){ZX.unsubscribe("handleError",O);var Y=Dr.indexOf(O);Y!==-1&&Dr.splice(Y,1)}}; xpE=function(v){var O=new g.w2(v.Yg,v.config.args);v.r8.publish("initialvideodatacreated",O);return V3(v,1,O,!1)}; p9l=function(v){var O=v.cT();O.setPlaybackRate(v.Yg.B?1:Rc3(v,Number(g.Ly("yt-player-playback-rate"))||1));O.pU(v.Sj,v);O.Ur()}; yDn=function(v){var O="",Y=zcg(v);Y.indexOf("//")===0&&(Y=v.Yg.protocol+":"+Y);var S=Y.lastIndexOf("/base.js");S!==-1&&(O=Y.substring(0,S+1));if(Y=Error().stack)if(Y=Y.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))Y=Y[1],Y.includes(O)||g.Br(Error("Player module URL mismatch: "+(Y+" vs "+O+".")));O=new Gt$(v.r8,O);ecd(v,O);return O}; ecd=function(v,O){var Y={};Y=(Y.destroyed=function(){v.onApiChange()},Y); O.G=Y}; CDF=function(v){if(v.Yg.storeUserVolume){v=g.Ly("yt-player-volume")||{};var O=v.volume;v={volume:isNaN(O)?100:g.xr(Math.floor(O),0,100),muted:!!v.muted}}else v={volume:100,muted:v.Yg.mute};return v}; AN=function(v){v.mediaElement=v.Yg.deviceIsAudioOnly?new g.qk(g.tc("AUDIO")):l_.pop()||new g.qk(g.tc("VIDEO"));g.w(v,v.mediaElement);v.uc().setMediaElement(v.mediaElement);try{v.Yg.qX?(v.L0&&v.events.g2(v.L0),v.L0=v.events.S(v.mediaElement,"volumechange",v.K98)):(v.mediaElement.PZ(v.KS.muted),v.mediaElement.setVolume(v.KS.volume/100))}catch(d){v.Mo("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(d&&typeof d==="object"&&"message"in d&&typeof d.message==="string"&&d.message.replace(/[;:,]/g, "_")));return}g.hi(v.A_);Eqw(v);var O=v.template,Y=v.mediaElement.dR();O.Uq=Y;O.zq=!1;O.Uq.parentNode||vL(O.gJ,O.Uq,0);O.zr=new g.cL(0,0,0,0);$pl(O);zd(O);Y=O.Uq;g.on(Y,"video-stream");g.on(Y,g.Gm.MAIN_VIDEO);var S=O.app.D();S.Iv&&Y.setAttribute("data-no-fullscreen","true");S.V("html5_local_playsinline")?"playsInline"in RA()&&(Y.playsInline=!0):S.Nk&&(Y.setAttribute("webkit-playsinline",""),Y.setAttribute("playsinline",""));S.hp&&O.Uq&&O.S(Y,"click",Y.play,Y);try{v.mediaElement.activate()}catch(d){v.Mo("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(d&&typeof d==="object"&&"message"in d&&typeof d.message==="string"&&d.message.replace(/[;:,]/g,"_")))}}; Ldl=function(v){if(!Qcc(v)){var O=v.cT().Bq();O&&(O=O.rP(),O instanceof Promise&&O.catch(function(){})); fv(v,Am(v.getPlayerStateObject()))}}; Eqw=function(v){var O=v.mediaElement;LD()?v.A_.S(O,"webkitpresentationmodechanged",v.QFg):window.document.pictureInPictureEnabled&&(v.A_.S(O,"enterpictureinpicture",function(){v.tf(!0)}),v.A_.S(O,"leavepictureinpicture",function(){v.tf(!1)})); Db&&(v.A_.S(O,"webkitbeginfullscreen",function(){v.OY(3)}),v.A_.S(O,"webkitendfullscreen",function(){v.OY(0)}))}; B9c=function(v,O){var Y=O.getPlayerType(),S=v.J9.G[Y]||null;O!==v.cT()&&O!==S&&(S==null||S.dispose(),v.J9.G[Y]=O)}; Z1d=function(v,O){O=O===void 0?!0:O;v.logger.debug("start clear presenting player");var Y;if(Y=v.EE){Y=v.EE;var S=v.mediaElement;Y=!!S&&S===Y.mediaElement}Y&&(v.FN(),AN(v));Y=v.uc();Y.FN(!O);Y.hf(v.Zd,v);Y.getPlayerType()!==1&&Y.dispose();O=v.J9;O.U=O.Y;qh(O);v.logger.debug("finish clear presenting player")}; g.X91=function(v,O,Y,S){var d=v.Zg;O===2&&(d=new uVF(v.Yg));return new g.NQ(v.Yg,O,d,v.template,function(r,b,z){v.r8.publish(r,b,z)},function(){return v.r8.getVisibilityState()},v.visibility,v,Y,S)}; V3=function(v,O,Y,S,d){v=g.X91(v,O,Y,d);v=new g.ET(v);S&&v.Ur();return v}; $P=function(v,O){return v.b6(O)?v.cT():O}; kP=function(v,O){var Y=v.uc();return O===v.cT()&&v.b6(O)&&v.b6(Y)?Y:O}; qwn=function(v){v.logger.debug("start application playback");if(v.cT().getPlayerState().isError())v.logger.debug("start application playback done, player in error state");else{var O=UH(v);v.pP().isLoaded();O&&v.OZ(6);w9d(v);SH$(v.GO)||Iwl(v)}}; Iwl=function(v){if(!UH(v)){var O=a2(v.GO);O&&!O.created&&iji(v.GO)&&(v.logger.debug("reload ad module"),O.create())}}; w9d=function(v){v.logger.debug("start presenter playback");var O=v.getVideoData(),Y=v.GO;SH$(Y)||Y.JC();!aw7&&Y.N.V("html5_allow_asmjs")&&WQJ(Y);un(Y,"embed");un(Y,"kids");un(Y,"remote");un(Y,"miniplayer");un(Y,"offline");un(Y,"unplugged");un(Y,"ypc",!1,!0);un(Y,"ypc_clickwrap",!1,!0);un(Y,"yto",!1,!0);un(Y,"webgl",!1,!0);dIl(Y)||(un(Y,"captions",!0),un(Y,"endscreen"),Y.w5(),un(Y,"creatorendscreen",!0));Y.Km();v.r8.publish("videoready",O)}; cA=function(v){v=v.pP();v.sE();return RO(v)}; lwm=function(v){v.logger.debug("start prepare initial playback");v.AC();var O=v.config.args;AN(v);v.events.S(window,"resize",v.nuu);var Y=v.pP();v.r8.oD("onVolumeChange",v.KS);if(O&&xhc(O)){var S=nH(v.Yg);S&&!v.Az&&(O.fetch=0);var d=g.aP(v.Yg);d&&!v.Az&&(O.fetch=0);uf(v,O);g.aP(v.Yg)&&v.Zg.tick("ep_pr_s");if(!S||v.Az)if(d&&!v.Az)nqg(v);else if(!Y.sE())v.playlist.onReady(function(){Cv(v)})}v.P1(v.cT(),!1,!0); g.G(v.cT().getPlayerState(),128)||(O=y1w(!v.Yg.deviceIsAudioOnly),O==="fmt.noneavailable"?v.Mo("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):O==="html5.missingapi"?v.Mo(O,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):Y&&Y.sE()&&cA(v)&&(v.Yg.rf||v.Yg.oS)?y3(v):Y.iF?v.r8.mutedAutoplay({durationMode:Y.mutedAutoplayDurationMode}):g.Ly("yt-player-playback-on-reload")?(g.z2("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!v.Yg.HW}),g.QD("yt-player-playback-on-reload",!1), y3(v)):DS(v.Yg)||JD1(v),g.PD(v.Yg)||g.tt(v.Yg)==="MWEB"?(g.NL(g.O8(),function(){ao(v)}),g.NL(g.O8(),function(){yIF()})):(ao(v),yIF()),v.logger.debug("finish prepare initial playback"))}; ao=function(v){if(!v.V("use_rta_for_player"))if(v.V("fetch_att_independently"))g.HM(v.Gj);else{var O=v.getVideoData().botguardData;O&&g.XS(O,v.Yg,v.getVideoData().Dz||"")}}; JD1=function(v){v.logger.debug("start initialize to CUED mode");v.r8.publish("initializingmode");v.OZ(2);v.V("embeds_web_enable_defer_loading_remote_js")&&g.iq(v.Yg)?g.NL(g.O8(),function(){un(v.GO,"remote")}):un(v.GO,"remote"); un(v.GO,"miniplayer");v.logger.debug("initialized to CUED mode")}; y3=function(v){v.logger.debug("start initialize application playback");var O=v.cT();if(g.G(O.getPlayerState(),128))return!1;var Y=O.getVideoData();cA(v)&&v.Yg.oS&&(l_.length&&v.jz?(xP(v,{muted:!1,volume:v.KS.volume},!1),pv(v,!1)):l_.length||v.KS.muted||(xP(v,{muted:!0,volume:v.KS.volume},!1),pv(v,!0)));cA(v)&&g.aP(v.Yg)&&Y.mutedAutoplay&&(xP(v,{muted:!0,volume:v.KS.volume},!1),pv(v,!0));Y.PH&&xP(v,{muted:!0,volume:v.KS.volume},!1);KdQ(v,1,Y,!1);O=v.V("web_player_misc_bugfix_b")?v.cT():O;v.r8.publish("initializingmode"); v.P1(v.cT());v.OZ(3);var S;if(!(S=!v.Yg.V_)){if(S=v.EE){S=v.EE;var d=v.mediaElement;S=!!d&&d===S.mediaElement}S=S&&v.fR}S&&(v.FN(),AN(v),O.setMediaElement(v.mediaElement));O.e9();if(g.G(O.getPlayerState(),128))return!1;Y.e6||fv(v,3);return v.fR=!0}; UH=function(v){v=CU(v.GO);return!!v&&v.loaded}; PD$=function(v,O){if(!v.Nj)return!1;var Y=v.Nj.startTimeMs*.001-1,S=v.Nj.endTimeMs*.001;v.Nj.type==="repeatChapter"&&S--;return Math.abs(O-Y)<=1E-6||Math.abs(O-S)<=1E-6||O>=Y&&O<=S}; G0d=function(v){var O=v.uc();HO(O.getVideoData())&&!O.YM()&&(O=Td(v)*1E3-v.getVideoData().wD,v.V("html5_gapless_new_slr")?(v=v.Vv,lf(v.app,"gaplessshortslooprange"),O=new g.dh(0,O,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(v=v.app.uc())&&v.addCueRange(O)):v.setLoopRange({startTimeMs:0,endTimeMs:O,type:"shortsLoop"}))}; i13=function(v){var O=v.cT();if(!(g.G(O.getPlayerState(),64)&&v.pP().isLivePlayback&&v.Nj.startTimeMs<5E3)){if(v.Nj.type==="repeatChapter"){var Y,S=(Y=mrd(v.QC()))==null?void 0:Y.l8(),d;Y=(d=v.getVideoData())==null?void 0:d.oS;S instanceof g.wx&&Y&&(d=Y[So(Y,v.Nj.startTimeMs)],S.renderChapterSeekingAnimation(0,d.title));isNaN(Number(v.Nj.loopCount))?v.Nj.loopCount=0:v.Nj.loopCount++;v.Nj.loopCount===1&&v.r8.PW("innertubeCommand",v.getVideoData().YMc)}S={Vg:"application_loopRangeStart"};if(v.Nj.type=== "clips"||v.Nj.type==="shortsLoop")S.seekSource=58;O.seekTo(v.Nj.startTimeMs*.001,S)}}; Rc3=function(v,O){var Y=v.r8.getAvailablePlaybackRates();O=Number(O.toFixed(2));v=Y[0];Y=Y[Y.length-1];O<=v?O=v:O>=Y?O=Y:(v=Math.floor(O*100+.001)%5,O=v===0?O:Math.floor((O-v*.01)*100+.001)/100);return O}; Td=function(v,O){O=v.lk({playerType:O});if(!O)return v.J9.Y.SE();O=$P(v,O);return FX(v,O.SE(),O)}; FX=function(v,O,Y){if(v.b6(Y)&&(Y=Y.getVideoData(),!hN(v))){v=v.f_;for(var S=g.y(v.U),d=S.next();!d.done;d=S.next())if(d=d.value,Y.PD===d.PD){O+=d.qj/1E3;break}S=O;v=g.y(v.U);for(d=v.next();!d.done;d=v.next()){d=d.value;if(Y.PD===d.PD)break;var r=d.qj/1E3;if(r1&&(d=!1);if(!v.wl||d!==O){Y=Y.lock(d?"portrait":"landscape");if(Y!=null)Y["catch"](function(){}); v.wl=!0}}else v.wl&&(v.wl=!1,Y.unlock())}; BA=function(v,O,Y){v.r8.publish(O,Y);var S=g.lx(v.Yg)||g.RP(v.Yg)||g.qB(v.Yg);if(Y&&S){switch(O){case "cuerangemarkersupdated":var d="onCueRangeMarkersUpdated";break;case "cuerangesadded":d="onCueRangesAdded";break;case "cuerangesremoved":d="onCueRangesRemoved"}d&&v.r8.PW(d,Y.map(function(r){return{getId:function(){return this.id}, end:r.end,id:r.getId(),namespace:r.namespace==="ad"?"ad":"",start:r.start,style:r.style,visible:r.visible}}))}}; ZP=function(v,O,Y,S,d,r){Y=Y===void 0?!0:Y;var b=v.lk({playerType:d});if(!b||(b.getPlayerType()!==2||v.b6(b))&&!g.cj(b.getVideoData())){var z=v.J9.hF;z?z.seekTo(O,{ZL:!Y,Um:S,Vg:"application",seekSource:r}):(b&&b===v.cT()&&v.Nj&&!PD$(v,O)&&v.setLoopRange(null),v.seekTo(O,Y,S,d,r))}}; sXE=function(v,O,Y,S){Y&&(v.FN(),AN(v));Y=v.uc();Y.eS(O);var d=v.getVideoData(),r={};r.video_id=d.videoId;r.adformat=d.adFormat;d.isLivePlayback||(r.start=Y.getCurrentTime(),r.resume="1");d.isLivePlayback&&b8(d)&&g.p0(v.Yg)&&(r.live_utc_start=Y.Hq(),r.resume="1");d.JK&&(r.vvt=d.JK);d.C&&(r.vss_credentials_token=d.C,r.vss_credentials_token_type=d.Q_);d.oauthToken&&(r.oauth_token=d.oauthToken);r.autoplay=1;r.reload_count=d.Te+1;r.reload_reason=O;d.qv&&(r.unplugged_partner_opt_out=d.qv);d.rf&&(r.ypc_is_premiere_trailer= d.rf);d.playerParams&&(r.player_params=d.playerParams);v.loadVideoByPlayerVars(r,void 0,!0,void 0,void 0,S);O==="signature"&&v.jp&&Iwl(v)}; gBF=function(v,O){v.pP().autonavState=O;g.QD("yt-player-autonavstate",O);v.r8.publish("autonavchange",O)}; MSg=function(v){var O=v.getVideoData().e_,Y=v.Yg.n1,S=v.isInline()&&!v.getVideoData().WQ,d=v.mediaElement;O||Y||S?d.SF():(d.wc(),xP(v,v.KS))}; Ro=function(v){var O=a2(v.QC());O&&O.created&&(v.logger.debug("reset ad module"),O.destroy())}; hN=function(v){return v.getVideoData().enableServerStitchedDai&&!!v.jp}; VSw=function(v,O){O.bounds=v.getBoundingClientRect();for(var Y=g.y(["display","opacity","visibility","zIndex"]),S=Y.next();!S.done;S=Y.next())S=S.value,O[S]=p4(v,S);O.hidden=!!v.hidden}; zcg=function(v){if(v.webPlayerContextConfig){var O=v.webPlayerContextConfig.trustedJsUrl;return O?x0(O).toString():v.webPlayerContextConfig.jsUrl}return v.config.assets&&v.config.assets.js?v.config.assets.js:""}; AWw=function(v,O){var Y=v.lk({playerType:1});if(Y){if(Y.getVideoData().clientPlaybackNonce===O)return Y;if((v=v.UQ.Y)&&v.getVideoData().clientPlaybackNonce===O)return v}return null}; gu=function(v,O,Y){v.MB.push({key:O,value:Y})}; fRQ=function(v){return v.name==="TypeError"&&v.stack.includes("/s/player/")&&qS()<=105}; $4$=function(v){return v.isTimeout?"NO_BID":"ERR_BID"}; k8$=function(){var v=null;RXF().then(function(O){return v=O},function(O){return v=$4$(O)}); return v}; U4l=function(){var v=Xn(1E3,"NO_BID");return g.QP(mRF([RXF(),v]).bv($4$),function(){v.cancel()})}; XX=function(v){return v.nP?g.ny(g.qL(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; wu=function(v){this.player=v;this.G=this.Y=1}; Ckl=function(v,O,Y,S,d,r){O.client||(O.client={});v.player.D().V("h5_remove_url_for_get_ad_break")||(O.client.originalUrl=Y);var b=je(Y),z=g.c4(Y)?!1:!0;(b||z)&&typeof Intl!=="undefined"&&(O.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);z=g.c4(Y)?!1:!0;if(b||z||S!==""){var M={};Y=Yc(MS(S)).split("&");var V=new Map;Y.forEach(function(A){A=A.split("=");A.length>1&&V.set(A[0].toString(),decodeURIComponent(A[1].toString()))}); V.has("bid")&&(M.bid=V.get("bid"));M.params=[];cWd.forEach(function(A){V.has(A)&&(A={key:A,value:V.get(A)},M.params.push(A))}); uvg(v,M);O.adSignalsInfo=M}O.client.unpluggedAppInfo||(O.client.unpluggedAppInfo={});O.client.unpluggedAppInfo.enableFilterMode=!1;Y=d.Y.cosver;Y!=null&&Y!=="cosver"&&(O.client.osVersion=Y);Y=d.Y.cplatform;Y!=null&&Y!=="cplatform"&&Y!==""&&(O.client.platform=Y);Y=d.Y.cmodel;Y!=null&&Y!=="cmodel"&&(O.client.deviceModel=Y);Y=d.Y.cplayer;Y!=null&&Y!=="cplayer"&&(O.client.playerType=Y);Y=d.Y.cbrand;Y!=null&&Y!=="cbrand"&&(O.client.deviceMake=Y);O.user||(O.user={});O.user.lockedSafetyMode=!1;(d.V("embeds_web_enable_iframe_api_send_full_embed_url")|| d.V("embeds_enable_autoplay_and_visibility_signals"))&&g.h7(d)&&H03(O,r,v.player.getPlayerState(1))}; x4d=function(v,O){var Y=!1;if(O==="")return Y;O.split(",").forEach(function(S){var d={},r={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},b="ACTIVE";S[0]==="!"&&(S=S.substring(1),b="INACTIVE");S=S.split("-");S.length<3||(S[0]in yWg&&(r.clientName=yWg[S[0]]),S[1]in aR7&&(r.platform=aR7[S[1]]),r.applicationState=b,r.clientVersion=S.length>2?S[2]:"",d.remoteClient=r,v.remoteContexts?v.remoteContexts.push(d):v.remoteContexts=[d],Y=!0)}); return Y}; T_i=function(v){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in p_F))return!1;v=v.split(RegExp("[:&]"));var O=p_F.FLAG_AUTO_CAPTIONS_DEFAULT_ON,Y="f"+(1+Math.floor(O/31)).toString();O=1<=2?b[1]:"";var z=FAE.test(O),M=hFd.exec(O);M=M!=null&&M.length>=2?M[1]:"";var V=RFg.exec(O);V=V!=null&&V.length>=2&&!Number.isNaN(Number(V[1]))?Number(V[1]):1;var A=eF1.exec(O);A=A!=null&&A.length>=2?A[1]:"0";var f=LH(v.player.D().SZ),k=v.player.getVideoData(1),U=g.O4(k.g8,!0),c="BISCOTTI_ID"in Y?Y.BISCOTTI_ID:"";Ckl(v,U,O,c.toString(),v.player.D(), k);k={splay:!1,lactMilliseconds:Y.LACT.toString(),playerHeightPixels:Math.trunc(Y.P_H),playerWidthPixels:Math.trunc(Y.P_W),vis:Math.trunc(Y.VIS),signatureTimestamp:20227,autonavState:XX(v.player.D())};S&&(S={},x4d(S,Y.YT_REMOTE)&&(k.mdxContext=S));if(S=EBi.includes(f)?void 0:g.Zb("PREF")){for(var a=S.split(RegExp("[:&]")),x=0,T=a.length;x1&&l[1].toUpperCase()==="TRUE"){U.user.lockedSafetyMode=!0;break}}k.autoCaptionsDefaultOn= T_i(S)}O=QX7.exec(O);(O=O!=null&&O.length>=2?O[1]:"")&&M&&(U.user.credentialTransferTokens=[{token:O,scope:"VIDEO"}]);O={contentPlaybackContext:k};b={adBlock:Math.trunc(Y.AD_BLOCK),params:b,breakIndex:V,breakPositionMs:A,clientPlaybackNonce:Y.CPN,topLevelDomain:f,isProxyAdTagRequest:z,context:U,adSignalsInfoString:Yc(MS(c.toString())),overridePlaybackContext:O};d!==void 0&&(b.cueProcessedMs=Math.round(d).toString());M&&(b.videoId=M);Y.LIVE_TARGETING_CONTEXT&&(b.liveTargetingParams=Y.LIVE_TARGETING_CONTEXT); Y.AD_BREAK_LENGTH&&(b.breakLengthMs=Math.trunc(Y.AD_BREAK_LENGTH*1E3).toString());r&&(b.driftFromHeadMs=r.toString());b.currentMediaTimeMs=Math.round(v.player.getCurrentTime(1)*1E3);(v=v.player.getGetAdBreakContext())&&(b.getAdBreakContext=v);return b}; B_i=function(){wu.apply(this,arguments)}; Ztm=function(v,O,Y,S,d){var r=Y.Fg;var b=Y.Al;var z=v.player.D().PP,M=0;Y.cueProcessedMs&&b&&!r&&(Y=b.end-b.start,Y>0&&(M=Math.floor(Y/1E3)));var V={AD_BLOCK:d,AD_BREAK_LENGTH:r?r.kZ:M,AUTONAV_STATE:XX(v.player.D()),CA_TYPE:"image",CPN:v.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:v.player.S_()*1E3,LACT:lj(),LIVE_INDEX:r?v.G++:1,LIVE_TARGETING_CONTEXT:r&&r.context?r.context:"",MIDROLL_POS:b?Math.round(b.start/1E3):0,MIDROLL_POS_MS:b?Math.round(b.start):0,VIS:v.player.getVisibilityState(), P_H:v.player.j4().Q$().height,P_W:v.player.j4().Q$().width,YT_REMOTE:z?z.join(","):""},A=gG(sq);Object.keys(A).forEach(function(f){A[f]!=null&&(V[f.toUpperCase()]=A[f].toString())}); S!==""&&(V.BISCOTTI_ID=S);S={};zn(O)&&(S.sts="20227",(v=v.player.D().forcedExperiments)&&(S.forced_experiments=v));return oZ(g.lp(O,V),S)}; X_7=function(v,O){var Y=v.player.D(),S,d=(S=v.player.getVideoData(1))==null?void 0:S.oauthToken;return g.vO(Y,d).then(function(r){if(r&&Wf()){var b=Rh();eE(b,r)}return g.D9(v.player.Rm(b),O,"/youtubei/v1/player/ad_break").then(function(z){return z})})}; w_g=function(v){this.L1=v}; IRJ=function(v){this.N=v}; qpi=function(v){this.L1=v}; JW$=function(v){g.X.call(this);this.Y=v;this.lZ=nBi(this)}; nBi=function(v){var O=new yTQ(v.Y.K_);g.w(v,O);v=[new w_g(v.Y.L1),new IRJ(v.Y.N),new qpi(v.Y.L1),new Ed(v.Y.TY,v.Y.gS),new Lb,new Xh(v.Y.Mp,v.Y.LT,v.Y.L1),new Qn,new ec];v=g.y(v);for(var Y=v.next();!Y.done;Y=v.next())aXi(O,Y.value);v=g.y(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(Y=v.next();!Y.done;Y=v.next())Be(O,Y.value,function(){}); return O}; Io=function(v){var O=v.S4,Y=v.e4;v=v.cY;var S=new Ih7,d={Im:new ukw(O.get(),Y),e4:Y};return{Sh:new oy(Y,v,O,d),context:d,El:S}}; qI=function(v,O,Y,S,d){g.X.call(this);this.U=O;this.Zu=Y;this.S4=S;this.Pq=d;this.listeners=[];var r=new lK(this);g.w(this,r);r.S(v,"internalAbandon",this.qnK);this.addOnDisposeCallback(function(){g.hi(r)})}; nv=function(v){this.N=v;this.adVideoId=this.Y=this.videoId=this.adCpn=this.contentCpn=null;this.Z=!0;this.U=this.G=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; KA$=function(v){v.contentCpn=null;v.adCpn=null;v.videoId=null;v.adVideoId=null;v.adFormat=null;v.B="AD_PLACEMENT_KIND_UNKNOWN";v.actionType="unknown_type";v.G=!1;v.U=!1}; Pki=function(v,O){v=g.y(O);for(O=v.next();!O.done;O=v.next())if((O=O.value.renderer)&&(O.instreamVideoAdRenderer||O.linearAdSequenceRenderer||O.sandwichedLinearAdRenderer||O.instreamSurveyAdRenderer)){nw("ad_i");g.J_({isMonetized:!0});break}}; G8w=function(v){var O;(O=v.N.getVideoData(1))!=null&&O.FO&&(v.U=!1,O={},v.Y&&v.videoId&&(O.cttAuthInfo={token:v.Y,videoId:v.videoId}),Kw("video_to_ad",O))}; m9=function(v){v.U=!1;var O={};v.Y&&v.videoId&&(O.cttAuthInfo={token:v.Y,videoId:v.videoId});Kw("ad_to_video",O);itl(v)}; itl=function(v){if(v.G)if(v.B==="AD_PLACEMENT_KIND_START"&&v.actionType==="video_to_ad")wg("video_to_ad");else{var O={adBreakType:x2(v.B),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:v.videoStreamType};v.actionType==="ad_to_video"?(v.contentCpn&&(O.targetCpn=v.contentCpn),v.videoId&&(O.targetVideoId=v.videoId)):(v.adCpn&&(O.targetCpn=v.adCpn),v.adVideoId&&(O.targetVideoId=v.adVideoId));v.adFormat&&(O.adType=v.adFormat);v.contentCpn&& (O.clientPlaybackNonce=v.contentCpn);v.videoId&&(O.videoId=v.videoId);v.adCpn&&(O.adClientPlaybackNonce=v.adCpn);v.adVideoId&&(O.adVideoId=v.adVideoId);g.J_(O,v.actionType);v.N.D().experiments.T0("html5_ads_csi_qoes")&&(O=v.N.Xp(v.actionType==="ad_to_video"?1:2),O=(0,g.J)()-1E3*O,GU("qoes",O,v.actionType))}}; JN=function(v){g.X.call(this);this.N=v;this.Y=new Map;this.U=new lK(this);g.w(this,this.U);this.U.S(this.N,g.bI("ad"),this.onCueRangeEnter,this);this.U.S(this.N,g.o1("ad"),this.onCueRangeExit,this)}; m4m=function(v,O,Y,S,d){g.dh.call(this,O,Y,{id:v,namespace:"ad",priority:d,visible:S})}; Kv=function(v){this.N=v}; tSQ=function(v,O){v.N.cueVideoByPlayerVars(O,2)}; PA=function(v){this.N=v}; Gd=function(v){this.N=v;g.Vq(this.N.D().experiments,"tv_pacf_logging_sample_rate")}; D43=function(v){return tE(v,"html5_ssap_play_cached_preroll")}; xu=function(v,O){O=O===void 0?!1:O;return v.N.D().V("html5_ssap_force_ads_ctmp")?!0:(O||v.N.D().XL())&&v.N.D().V("html5_ssap_pacf_qoe_ctmp")}; mQ=function(v){var O;return(O=v.N.getVideoData(1)==null?void 0:!1)!=null?O:!1}; tE=function(v,O){return v.N.D().V(O)}; Ht1=function(v){return v.N.D().V("substitute_ad_cpn_macro_in_ssdai")}; xO=function(v){var O,Y,S;return((O=v.N.getVideoData(1).getPlayerResponse())==null?void 0:(Y=O.playerConfig)==null?void 0:(S=Y.daiConfig)==null?void 0:S.enableServerStitchedDai)||!1}; RDd=function(v){return v.N.D().V("html5_enable_vod_slar_with_notify_pacf")}; N_w=function(v){return v.N.D().V("html5_recognize_predict_start_cue_point")}; dM=function(v){return v.N.D().experiments.T0("enable_desktop_player_underlay")}; vSn=function(v){return v.N.D().experiments.T0("html5_load_empty_player_in_media_break_sub_lra")}; ZD=function(v){return v.N.D().experiments.T0("html5_load_ads_instead_of_cue")}; Xj=function(v){return v.N.D().experiments.T0("html5_preload_ads")}; Ooi=function(v){return v.N.D().experiments.T0("should_ignore_cuepoints_during_lifa_preroll")}; OR=function(v){return v.N.D().experiments.T0("enable_ads_control_flow_deterministic_id_generation")}; YrF=function(v){return v.N.D().experiments.T0("enable_desktop_discovery_video_abandon_pings")||g.J7(v.N.D())}; Sr7=function(v){return v.N.D().experiments.T0("enable_progres_commands_lr_feeds")}; pi=function(v){return v.N.D().experiments.T0("html5_cuepoint_identifier_logging")}; X37=function(v){v=v.N.getVideoData(1);return!!v&&v.V("html5_preload_first_vod_video_ad")&&!v.isDaiEnabled()&&!v.isLivePlayback}; dKc=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}}; r2l=function(){g.MU.call(this);var v=this;this.Y={};this.addOnDisposeCallback(function(){for(var O=g.y(Object.keys(v.Y)),Y=O.next();!Y.done;Y=O.next())delete v.Y[Y.value]})}; tN=function(){if(bow===null){bow=new r2l;vU(N2).U="b";var v=vU(N2),O=q2(v)=="h"||q2(v)=="b",Y=!(MV(),!1);O&&Y&&(v.Z=!0,v.C=new Mpi)}return bow}; oSw=function(v,O,Y){v.Y[O]=Y}; jln=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}}; DP=function(v,O,Y){this.Zu=v;this.N=O;this.e4=Y;this.U=new Set;this.Y=new Map;tN().subscribe("adactiveviewmeasurable",this.E5,this);tN().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Kh,this);tN().subscribe("adviewableimpression",this.Tb,this);tN().subscribe("adaudioaudible",this.fh,this);tN().subscribe("adaudiomeasurable",this.ag,this)}; NI=function(v,O,Y){var S=Y.Jx,d=Y.HH,r=Y.listener,b=Y.HJ;Y=Y.dS===void 0?!1:Y.dS;if(v.Y.has(O))f_("Unexpected registration of layout in LidarApi");else{if(b){if(v.U.has(b))return;v.U.add(b)}v.Y.set(O,r);W5(MV().h9,"fmd",1);yxw(vU(N2),S);var z=Y?O:void 0;oSw(tN(),O,{vG:function(){if(!d)return{};var M=v.N.getPresentingPlayerType(!0),V;return(V=v.N.getVideoData(M))!=null&&V.isAd()?{currentTime:v.Zu.get().getCurrentTimeSec(M,!1,z),duration:d,isPlaying:HA(v.Zu.get(),M).isPlaying(),isVpaid:!1,isYouTube:!0, volume:v.Zu.get().isMuted()?0:v.Zu.get().getVolume()/100}:{}}})}}; vo=function(v,O){v.Y.has(O)?(v.Y.delete(O),delete tN().Y[O]):f_("Unexpected unregistration of layout in LidarApi")}; Wxw=function(v,O){if(v.N.isLifaAdPlaying()){var Y=v.N.wW(!0,!0);v.VI(O,Y.width*.5*1.1,Y.height*.25*1.1,Y.width*.5*.9,Y.height*.5*.9)}}; gSE=function(v,O,Y){var S={};z5Q(v,S,O,Y);slQ(S);S.LACT=O5(function(){return lj().toString()}); S.VIS=O5(function(){return v.getVisibilityState().toString()}); S.SDKV="h.3.0";S.VOL=O5(function(){return v.isMuted()?"0":Math.round(v.getVolume()).toString()}); S.VED="";return S}; MLc=function(v,O){var Y={};if(O||!v||!v.kind)return Y;if(v.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||v.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!v.adTimeOffset||!v.adTimeOffset.offsetStartMilliseconds)return g.LP(Error("malformed AdPlacementConfig")),Y;Y.MIDROLL_POS=O5(zO(Math.round(kr(v.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else Y.MIDROLL_POS=O5(zO("0"));return Y}; O5=function(v){return{toString:function(){return v()}}}; VLg=function(v,O,Y){function S(z,M){(M=Y[M])&&(r[z]=M)} function d(z,M){(M=Y[M])&&(r[z]=b(M))} if(!Y||g.tY(Y))return v;var r=Object.assign({},v),b=O?encodeURIComponent:function(z){return z}; d("DV_VIEWABILITY","doubleVerifyViewability");d("IAS_VIEWABILITY","integralAdsViewability");d("MOAT_INIT","moatInit");d("MOAT_VIEWABILITY","moatViewability");S("GOOGLE_VIEWABILITY","googleViewability");S("VIEWABILITY","viewability");return r}; z5Q=function(v,O,Y,S){O.CPN=O5(function(){var d;(d=v.getVideoData(1))?d=d.clientPlaybackNonce:(g.Br(Error("Video data is null.")),d=null);return d}); O.AD_MT=O5(function(){if(S!=null)var d=S;else{var r=Y;v.D().V("html5_ssap_use_cpn_to_get_time")||(r=void 0);if(v.D().V("enable_h5_shorts_ad_fill_ad_mt_macro")||v.D().V("enable_desktop_discovery_pings_ad_mt_macro")||g.J7(v.D())){var b=v.getPresentingPlayerType(!0),z;d=((z=v.getVideoData(b))==null?0:z.isAd())?A2F(v,b,r):0}else d=A2F(v,2,r)}return fB1(d)}); O.MT=O5(function(){return fB1(v.getCurrentTime(1,!1))}); O.P_H=O5(function(){return v.j4().Q$().height.toString()}); O.P_W=O5(function(){return v.j4().Q$().width.toString()}); O.PV_H=O5(function(){return v.j4().getVideoContentRect().height.toString()}); O.PV_W=O5(function(){return v.j4().getVideoContentRect().width.toString()})}; fB1=function(v){return Math.round(Math.max(0,v*1E3)).toString()}; slQ=function(v){v.CONN=O5(zO("0"));v.WT=O5(function(){return Date.now().toString()})}; A2F=function(v,O,Y){return Y!==void 0?v.getCurrentTime(O,!1,Y):v.getCurrentTime(O,!1)}; $KQ=function(){}; kxw=function(v,O,Y,S,d){var r,b,z,M,V,A,f,k,U,c,a,x,T;g.B(function(l){switch(l.U){case 1:r=!!O.scrubReferrer;b=g.lp(O.baseUrl,VLg(Y,r,S));z={};if(!O.headers){l.d8(2);break}M=v.B();if(!M.Y){V=M.getValue();l.d8(3);break}return g.E(l,M.Y,4);case 4:V=l.Y;case 3:A=V;f=g.y(O.headers);for(k=f.next();!k.done;k=f.next())switch(U=k.value,U.headerType){case "VISITOR_ID":g.Gq("VISITOR_DATA")&&(z["X-Goog-Visitor-Id"]=g.Gq("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Gq("EOM_VISITOR_DATA")&&(z["X-Goog-EOM-Visitor-Id"]= g.Gq("EOM_VISITOR_DATA"));break;case "USER_AUTH":A&&(z.Authorization="Bearer "+A);break;case "PLUS_PAGE_ID":(c=v.Z())&&(z["X-Goog-PageId"]=c);break;case "AUTH_USER":a=v.Y();!A&&a&&(z["X-Goog-AuthUser"]=a);break;case "DATASYNC_ID":if(x=void 0,(x=v.G())==null?0:x.T0("enable_datasync_id_header_in_web_vss_pings"))T=v.U(),je(b)&&g.Gq("LOGGED_IN")&&T&&(z["X-YouTube-DataSync-Id"]=T)}"X-Goog-EOM-Visitor-Id"in z&&"X-Goog-Visitor-Id"in z&&delete z["X-Goog-Visitor-Id"];case 2:g.IM(b,void 0,r,Object.keys(z).length!== 0?z:void 0,"",!0,d),g.UE(l)}})}; UKl=function(v,O,Y,S,d){this.B=v;this.Z=O;this.Y=Y;this.U=S;this.G=d}; c21=function(v,O){this.Y=v;this.e4=O}; Yg=function(v,O,Y,S,d,r,b){var z=z===void 0?new UKl(function(){var M=v.D(),V=v.getVideoData(1);return g.vO(M,V?g.ez(V):"")},function(){return v.D().pageId},function(){return v.D().HW},function(){var M; return(M=v.D().datasyncId)!=null?M:""},function(){return v.D().experiments}):z; this.N=v;this.U=O;this.eh=Y;this.S4=S;this.Sh=d;this.e4=r;this.El=b;this.B=z;this.Pv=null;this.Y=new Map;this.G=new c21(z,this.e4)}; Cm$=function(v,O,Y,S,d){var r=QC(v.U.get(),Y);r?(Y=h8(v,uid(r),r,void 0,void 0,S),O.hasOwnProperty("baseUrl")?v.B.send(O,Y):v.G.send(O,Y,{},d)):f_("Trying to ping from an unknown layout",void 0,void 0,{layoutId:Y})}; hxE=function(v,O,Y,S,d,r){S=S===void 0?[]:S;var b=QC(v.U.get(),O);if(b){var z=v.eh.get().IS(O,Y),M=h8(v,uid(b),b,d,r);S.forEach(function(V,A){V.baseUrl&&(v.G.send(V.baseUrl,M,z,V.attributionSrcMode),V.serializedAdPingMetadata&&v.Sh.m4("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,b,new WUm(V,A),void 0,void 0,b.adLayoutLoggingData))})}else f_("Trying to track from an unknown layout.",void 0,void 0,{layoutId:O, trackingType:Y})}; yT=function(v,O){v.N.sendVideoStatsEngageEvent(O,void 0,2)}; Sh=function(v,O){g.z2("adsClientStateChange",O)}; y2c=function(v,O){v.Y.has(O.sI())?f_("Trying to register an existing AdErrorInfoSupplier."):v.Y.set(O.sI(),O)}; aB7=function(v,O){v.Y.delete(O.sI())||f_("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; bz=function(v,O,Y){typeof Y==="string"?v.N.getVideoData(1).Li(O,Y):v.N.getVideoData(1).G0(O,Y)}; uid=function(v){var O=oj(v.clientMetadata,"metadata_type_ad_placement_config");v=oj(v.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:O,uG:v}}; h8=function(v,O,Y,S,d,r){var b=Y?xKJ(v):{},z=Y?pnl(v,Y.layoutId):{},M=Tji(v),V,A=d!=null?d:(V=u7(v.S4.get(),2))==null?void 0:V.clientPlaybackNonce;d=void 0;if(Y){var f;if((f=v.El.Y.get(Y.layoutId))==null?0:f.dS)d=Y.layoutId}f={};v=Object.assign({},gSE(v.N,d,S),MLc(O.adPlacementConfig,(Y==null?void 0:Y.renderingContent)!==void 0),z,b,M,(f.FINAL=O5(function(){return"1"}),f.AD_CPN=O5(function(){return A||""}),f)); (Y==null?void 0:Y.renderingContent)!==void 0||(v.SLOT_POS=O5(function(){return(O.uG||0).toString()})); Y={};r=Object.assign({},v,r);v=g.y(Object.values(lBF));for(S=v.next();!S.done;S=v.next())S=S.value,b=r[S],b!=null&&b.toString()!=null&&(Y[S]=b.toString());return Y}; xKJ=function(v){var O={},Y,S=(Y=v.Pv)==null?void 0:Y.Q5/1E3;S!=null&&(O.SURVEY_ELAPSED_MS=O5(function(){return Math.round(S*1E3).toString()})); O.SURVEY_LOCAL_TIME_EPOCH_S=O5(function(){return Math.round(Date.now()/1E3).toString()}); return O}; pnl=function(v,O){v=v.Y.get(O);if(!v)return{};v=v.HG();if(!v)return{};O={};return O.YT_ERROR_CODE=v.Lk.toString(),O.ERRORCODE=v.pH.toString(),O.ERROR_MSG=v.errorMessage,O}; Tji=function(v){var O={},Y=v.N.getVideoData(1);O.ASR=O5(function(){var S;return(S=Y==null?void 0:Y.FC)!=null?S:null}); O.EI=O5(function(){var S;return(S=Y==null?void 0:Y.eventId)!=null?S:null}); return O}; Sf=function(v,O,Y){g.X.call(this);this.N=v;this.eB=O;this.e4=Y;this.listeners=[];this.KO=null;this.vF=new Map;O=new g.Z6(this);g.w(this,O);O.S(v,"videodatachange",this.iPs);O.S(v,"serverstitchedvideochange",this.Jld);this.kT=u7(this)}; u7=function(v,O){var Y=v.N.getVideoData(O);return Y?v.NR(Y,O||v.N.getPresentingPlayerType(!0)):null}; FxJ=function(v,O,Y){var S=v.NR(O,Y);v.kT=S;v.listeners.forEach(function(d){d.gM(S)})}; h5d=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}}; dU=function(v,O,Y){g.X.call(this);this.N=v;this.S4=O;this.e4=Y;this.listeners=[];this.Hf=[];this.Y=function(){f_("Called 'doUnlockPreroll' before it's initialized.")}; O=new lK(this);Y=new g.Z6(this);g.w(this,Y);g.w(this,O);O.S(v,"progresssync",this.xXd);O.S(v,"presentingplayerstatechange",this.Z_d);O.S(v,"fullscreentoggled",this.onFullscreenToggled);O.S(v,"onVolumeChange",this.onVolumeChange);O.S(v,"minimized",this.VH);O.S(v,"overlayvisibilitychange",this.fW);O.S(v,"shortsadswipe",this.Ez);O.S(v,"resize",this.ze);Y.S(v,g.bI("appad"),this.uq)}; rU=function(v){mQ(v.e4.get())||v.Y()}; R5d=function(v,O){v.Hf=v.Hf.filter(function(Y){return Y!==O})}; bo=function(v,O,Y){return v.getCurrentTimeSec(O,Y)}; e5i=function(v,O){var Y;O=(Y=v.S4.get().vF.get(O))!=null?Y:null;if(O===null)return f_("Expected ad video start time on playback timeline"),0;v=v.N.getCurrentTime(2,!0);return v0){var r=O.end.toString();d.forEach(function(b){(b=b.config&&b.config.adPlacementConfig)&&b.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&b.adTimeOffset&&b.adTimeOffset.offsetEndMilliseconds==="-1"&&b.adTimeOffset.offsetEndMilliseconds!==r&&(b.adTimeOffset.offsetEndMilliseconds=r)}); S.map(function(b){return g.q(b,nG)}).forEach(function(b){var z; (b=b==null?void 0:(z=b.slotEntryTrigger)==null?void 0:z.mediaTimeRangeTrigger)&&b.offsetEndMilliseconds==="-1"&&(b.offsetEndMilliseconds=r)})}return{Uj:d, adSlots:S,JZ:!1,ssdaiAdsConfig:v.ssdaiAdsConfig}}; s5=function(v){g.X.call(this);this.N=v;this.listeners=[];this.Y=new lK(this);g.w(this,this.Y);this.Y.S(this.N,"aduxclicked",this.onAdUxClicked);this.Y.S(this.N,"aduxmouseover",this.BR);this.Y.S(this.N,"aduxmouseout",this.QT);this.Y.S(this.N,"muteadaccepted",this.Ks0)}; Zow=function(v,O,Y){O=g.DQ(O,function(S){return new ndg(S,Y,S.id)}); v.N.PW("onAdUxUpdate",O)}; gU=function(v,O){v=g.y(v.listeners);for(var Y=v.next();!Y.done;Y=v.next())O(Y.value)}; Mm=function(v,O){this.U=v;this.G=O===void 0?!1:O;this.Y={}}; Xni=function(v,O){var Y=v.startSecs+v.kZ;Y=Y<=0?null:Y;if(Y===null)return null;switch(v.event){case "start":case "continue":case "stop":break;case "predictStart":if(O)break;return null;default:return null}O=Math.max(v.startSecs,0);return{eq:new xG(O,Y),iz:new qD(O,Y-O,v.context,v.identifier,v.event,v.Y)}}; wnQ=function(){this.Y=[]}; Tg3=function(v,O,Y){var S=g.Tw(v.Y,O);if(S>=0)return O;O=-S-1;return O>=v.Y.length||v.Y[O]>Y?null:v.Y[O]}; VR=function(v,O,Y){g.X.call(this);this.N=v;this.e4=O;this.L1=Y;this.listeners=[];this.B=!1;this.C0=[];this.Y=null;this.Z=new Mm(this,N_w(O.get()));this.G=new wnQ;this.U=null}; IB$=function(v,O){v.C0.push(O);for(var Y=!1,S=g.y(v.listeners),d=S.next();!d.done;d=S.next())Y=d.value.u5(O)||Y;v.B=Y;pi(v.e4.get())&&bz(v.L1.get(),"onci","cpi."+O.identifier+";cpe."+O.event+";cps."+O.startSecs+";cbi."+Y)}; nSF=function(v,O){Sh(v.L1.get(),{cuepointTrigger:{event:qrE(O.event),cuepointId:O.identifier,totalCueDurationMs:O.kZ*1E3,playheadTimeMs:O.Y,cueStartTimeMs:O.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:v.N.getVideoData(1).clientPlaybackNonce}})}; qrE=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 my(v,"Unexpected cuepoint event")}}; Aa=function(v){this.N=v}; fI=function(v){this.N=v}; J2E=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:my(v,"unknown transitionReason")}}; $g=function(){g.X.apply(this,arguments)}; Kx1=function(v){this.N=v}; Pm1=function(v,O,Y,S,d){g.X.call(this);var r=this,b=n0(function(){return new vc(r.e4)}); g.w(this,b);var z=n0(function(){return new Yi(b,r.e4)}); g.w(this,z);var M=n0(function(){return new eB}); g.w(this,M);var V=n0(function(){return new hj(v)}); g.w(this,V);var A=n0(function(){return new Sv(b,z,r.e4)}); g.w(this,A);var f=n0(function(){return new jv}); g.w(this,f);this.MX=n0(function(){return new s5(O)}); g.w(this,this.MX);this.gR=n0(function(){return new K0(d)}); g.w(this,this.gR);this.ZU=n0(function(){return new nv(O)}); g.w(this,this.ZU);this.SO=n0(function(){return new JN(O)}); g.w(this,this.SO);this.BD=n0(function(){return new Kv(O)}); g.w(this,this.BD);this.K_=n0(function(){return new PA(O)}); g.w(this,this.K_);this.e4=n0(function(){return new Gd(O)}); g.w(this,this.e4);var k=n0(function(){return new zN(S)}); g.w(this,k);var U=n0(function(){return new AE(r.e4)}); g.w(this,U);this.qp=n0(function(){return new Aa(O)}); g.w(this,this.qp);this.Cv=n0(function(){return new ix}); g.w(this,this.Cv);this.S4=n0(function(){return new Sf(O,f,r.e4)}); g.w(this,this.S4);var c=Io({S4:this.S4,e4:this.e4,cY:U}),a=c.context,x=c.El;this.Sh=c.Sh;this.Pq=n0(function(){return new VR(O,r.e4,r.L1)}); g.w(this,this.Pq);this.eO=n0(function(){return new fI(O)}); g.w(this,this.eO);this.Zu=n0(function(){return new dU(O,r.S4,r.e4)}); g.w(this,this.Zu);this.F4=n0(function(){return new $g}); g.w(this,this.F4);c=n0(function(){return new u0(b,A,z,r.e4,U,"SLOT_TYPE_ABOVE_FEED",r.Zu,r.gx,r.PY)}); g.w(this,c);this.sM=n0(function(){return new mk(r.e4)}); this.eh=n0(function(){return new DP(r.Zu,O,r.e4)}); g.w(this,this.eh);this.L1=n0(function(){return new Yg(O,M,r.eh,r.S4,r.Sh,r.e4,x)}); g.w(this,this.L1);this.Ir=new l0(Ty,kg,function(l,Q,L,I){return SB(z.get(),l,Q,L,I)},V,A,z,U,this.e4,this.S4); g.w(this,this.Ir);this.mV=new FD(V,c,Y,this.e4,v,this.S4,this.Zu,this.ZU);g.w(this,this.mV);var T=new qI(O,this.mV,this.Zu,this.S4,this.Pq);this.Wj=n0(function(){return T}); this.Py=T;this.gx=new aL(V,A,this.Wj,this.Pq,this.Zu,this.e4,this.L1,this.eO);g.w(this,this.gx);this.Ko=new RL(V,A,this.SO,this.Wj,a);g.w(this,this.Ko);this.CP=new qc(this.e4,V,A,c,this.S4,this.Ko,Y,this.BD);g.w(this,this.CP);this.BV=n0(function(){return new VT(k,z,U,r.e4,r.L1,r.Zu,r.eO)}); g.w(this,this.BV);this.N8=n0(function(){return new A8}); g.w(this,this.N8);this.BB=new wM(v,this.MX,this.e4);g.w(this,this.BB);this.u3=new IL(v);g.w(this,this.u3);this.hn=new qr(v);g.w(this,this.hn);this.qo=new Jj(v,this.Wj,a);g.w(this,this.qo);this.ID=new Ki(v,this.SO,this.Zu,this.S4,a);g.w(this,this.ID);this.Vs=new P8(v,this.S4);g.w(this,this.Vs);this.PY=new m5(v,this.Pq,this.Zu,this.L1,this.Wj);g.w(this,this.PY);this.hm=new Gy(v);g.w(this,this.hm);this.FH=new Nr(v);g.w(this,this.FH);this.ye=new i0(v);g.w(this,this.ye);this.W9=new H8(v);g.w(this,this.W9); this.FH=new Nr(v);g.w(this,this.FH);this.Qr=n0(function(){return new Li}); g.w(this,this.Qr);this.j6=n0(function(){return new B8(r.Zu)}); g.w(this,this.j6);this.TE=n0(function(){return new DU3(r.MX,r.L1,v,M,r.eh)}); g.w(this,this.TE);this.Qe=n0(function(){return new N5(r.CP,V,b)}); g.w(this,this.Qe);this.vV=n0(function(){return new Yu(r.e4,r.L1,r.hm,r.eh)}); g.w(this,this.vV);this.sQ=n0(function(){return new Mz(v,r.FH,r.hm,r.S4,r.eO,r.Zu,r.F4,r.L1,f,r.Pq,r.eh,r.sM,r.BD,r.SO,r.ZU,r.K_,r.gR,r.qp,r.e4,M,a,x)}); g.w(this,this.sQ);this.JV=n0(function(){return new sEm(r.Zu,r.L1,r.gR,r.e4,r.eh,r.S4)}); g.w(this,this.JV);this.pz=n0(function(){return new Hwc(r.MX,r.Zu,r.L1,M,r.eh,r.hn,r.W9,r.gR,r.e4,Y)}); g.w(this,this.pz);this.vC=n0(function(){return new Huc(r.MX,r.L1,M)}); g.w(this,this.vC);this.hh=new Wo(v,this.Cv,b);g.w(this,this.hh);this.WB={ea:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.CP],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gx],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ir],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.mV],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ko]]),w0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.BV],["SLOT_TYPE_ABOVE_FEED",this.N8],["SLOT_TYPE_FORECASTING",this.N8], ["SLOT_TYPE_IN_PLAYER",this.N8],["SLOT_TYPE_PLAYER_BYTES",this.N8],["SLOT_TYPE_PLAYER_UNDERLAY",this.N8],["SLOT_TYPE_PLAYBACK_TRACKING",this.N8],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.N8]]),Hu:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.BB],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.BB],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u3],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u3],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u3],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u3],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.u3],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u3],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u3],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.u3],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u3],["TRIGGER_TYPE_CLOSE_REQUESTED",this.hn],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.qo],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.ID],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.ID],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.ID],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ID],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ID],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.ID],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.ID],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Vs],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Vs],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hm],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.qo],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.ye],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.W9],["TRIGGER_TYPE_AD_BREAK_STARTED",this.FH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.PY],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.PY],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.PY],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.PY],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.PY]]),ey:new Map([["SLOT_TYPE_ABOVE_FEED",this.Qr], ["SLOT_TYPE_AD_BREAK_REQUEST",this.Qr],["SLOT_TYPE_FORECASTING",this.Qr],["SLOT_TYPE_IN_PLAYER",this.Qr],["SLOT_TYPE_PLAYER_BYTES",this.j6],["SLOT_TYPE_PLAYER_UNDERLAY",this.Qr],["SLOT_TYPE_PLAYBACK_TRACKING",this.Qr],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Qr]]),gr:new Map([["SLOT_TYPE_ABOVE_FEED",this.TE],["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_FORECASTING",this.vV],["SLOT_TYPE_PLAYER_BYTES",this.sQ],["SLOT_TYPE_PLAYBACK_TRACKING",this.JV],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.JV],["SLOT_TYPE_IN_PLAYER",this.pz],["SLOT_TYPE_PLAYER_UNDERLAY",this.vC]])};this.listeners=[M.get()];this.im={CP:this.CP,LT:this.e4.get(),Rd:this.gR.get(),mH:this.Zu.get(),mV:this.mV,sj:b.get(),Pc:this.Cv.get(),gS:this.BB,TY:M.get(),Mp:this.S4.get()}}; Gxn=function(v,O,Y,S,d){g.X.call(this);var r=this,b=n0(function(){return new vc(r.e4)}); g.w(this,b);var z=n0(function(){return new Yi(b,r.e4)}); g.w(this,z);var M=n0(function(){return new eB}); g.w(this,M);var V=n0(function(){return new hj(v)}); g.w(this,V);var A=n0(function(){return new Sv(b,z,r.e4)}); g.w(this,A);var f=n0(function(){return new jv}); g.w(this,f);this.MX=n0(function(){return new s5(O)}); g.w(this,this.MX);this.gR=n0(function(){return new K0(d)}); g.w(this,this.gR);this.ZU=n0(function(){return new nv(O)}); g.w(this,this.ZU);this.SO=n0(function(){return new JN(O)}); g.w(this,this.SO);this.BD=n0(function(){return new Kv(O)}); g.w(this,this.BD);this.K_=n0(function(){return new PA(O)}); g.w(this,this.K_);this.e4=n0(function(){return new Gd(O)}); g.w(this,this.e4);var k=n0(function(){return new zN(S)}); g.w(this,k);var U=n0(function(){return new AE(r.e4)}); g.w(this,U);var c=n0(function(){return new u0(b,A,z,r.e4,U,null,null,r.gx,r.PY)}); g.w(this,c);this.qp=n0(function(){return new Aa(O)}); g.w(this,this.qp);this.Cv=n0(function(){return new ix}); g.w(this,this.Cv);this.S4=n0(function(){return new Sf(O,f,r.e4)}); g.w(this,this.S4);var a=Io({S4:this.S4,e4:this.e4,cY:U}),x=a.context,T=a.El;this.Sh=a.Sh;this.Pq=n0(function(){return new VR(O,r.e4,r.L1)}); this.Zu=n0(function(){return new dU(O,r.S4,r.e4)}); g.w(this,this.Zu);this.F4=n0(function(){return new $g}); g.w(this,this.F4);this.eh=n0(function(){return new DP(r.Zu,O,r.e4)}); g.w(this,this.eh);this.L1=n0(function(){return new Yg(O,M,r.eh,r.S4,r.Sh,r.e4,T)}); g.w(this,this.L1);this.sM=n0(function(){return new mk(r.e4)}); g.w(this,this.sM);this.Ir=new l0(Ty,kg,function(Q,L,I,t){return SB(z.get(),Q,L,I,t)},V,A,z,U,this.e4,this.S4); g.w(this,this.Ir);this.mV=new FD(V,c,Y,this.e4,v,this.S4,this.Zu,this.ZU);g.w(this,this.mV);var l=new qI(O,this.mV,this.Zu,this.S4,this.Pq);this.Wj=n0(function(){return l}); this.Py=l;this.gx=new aL(V,A,this.Wj,this.Pq,this.Zu,this.e4,this.L1);g.w(this,this.gx);this.Ko=new RL(V,A,this.SO,this.Wj,x);g.w(this,this.Ko);this.CP=new qc(this.e4,V,A,c,this.S4,this.Ko,Y,this.BD);g.w(this,this.CP);this.BV=n0(function(){return new VT(k,z,U,r.e4,r.L1,r.Zu)}); g.w(this,this.BV);this.N8=n0(function(){return new A8}); g.w(this,this.N8);this.BB=new wM(v,this.MX,this.e4);g.w(this,this.BB);this.u3=new IL(v);g.w(this,this.u3);this.hn=new qr(v);g.w(this,this.hn);this.qo=new Jj(v,this.Wj,x);g.w(this,this.qo);this.ID=new Ki(v,this.SO,this.Zu,this.S4,x);g.w(this,this.ID);this.hm=new Gy(v);g.w(this,this.hm);this.ye=new i0(v);g.w(this,this.ye);this.W9=new H8(v);g.w(this,this.W9);this.eO=n0(function(){return new fI(O)}); g.w(this,this.eO);this.FH=new Nr(v);g.w(this,this.FH);this.PY=new m5(v,this.Pq,this.Zu,this.L1,this.Wj);g.w(this,this.PY);this.Qr=n0(function(){return new Li}); g.w(this,this.Qr);this.j6=n0(function(){return new B8(r.Zu)}); g.w(this,this.j6);this.Qe=n0(function(){return new N5(r.CP,V,b)}); g.w(this,this.Qe);this.vV=n0(function(){return new Yu(r.e4,r.L1,r.hm,r.eh)}); g.w(this,this.vV);this.pz=n0(function(){return new NgE(r.MX,r.Zu,r.L1,M,r.eh,r.hn,r.W9,r.gR,r.e4,Y)}); g.w(this,this.pz);this.sQ=n0(function(){return new VA(v,r.FH,r.hm,r.L1,r.eh,r.sM,r.BD,r.S4,r.Zu,r.F4,r.SO,r.ZU,r.K_,r.gR,r.qp,r.e4,r.eO,x,T)}); g.w(this,this.sQ);this.hh=new Wo(v,this.Cv,b);g.w(this,this.hh);this.WB={ea:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.CP],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gx],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ir],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.mV],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ko]]),w0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.BV],["SLOT_TYPE_FORECASTING",this.N8],["SLOT_TYPE_IN_PLAYER",this.N8], ["SLOT_TYPE_PLAYER_BYTES",this.N8]]),Hu:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.BB],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u3],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u3],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u3],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u3],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u3],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u3],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u3], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u3],["TRIGGER_TYPE_CLOSE_REQUESTED",this.hn],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.qo],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ID],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ID],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.ID],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hm],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.qo],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.ye],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.W9],["TRIGGER_TYPE_AD_BREAK_STARTED",this.FH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.PY],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.PY],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.PY],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.PY],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.PY]]),ey:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qr],["SLOT_TYPE_FORECASTING",this.Qr],["SLOT_TYPE_IN_PLAYER",this.Qr],["SLOT_TYPE_PLAYER_BYTES",this.j6]]), gr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_FORECASTING",this.vV],["SLOT_TYPE_IN_PLAYER",this.pz],["SLOT_TYPE_PLAYER_BYTES",this.sQ]])};this.listeners=[M.get()];this.im={CP:this.CP,LT:this.e4.get(),Rd:this.gR.get(),mH:this.Zu.get(),mV:this.mV,sj:b.get(),Pc:this.Cv.get(),gS:this.BB,TY:M.get(),Mp:this.S4.get()}}; iog=function(v,O,Y,S,d){g.X.call(this);var r=this,b=n0(function(){return new vc(r.e4)}); g.w(this,b);var z=n0(function(){return new Yi(b,r.e4)}); g.w(this,z);var M=n0(function(){return new eB}); g.w(this,M);var V=n0(function(){return new hj(v)}); g.w(this,V);var A=n0(function(){return new Sv(b,z,r.e4)}); g.w(this,A);var f=n0(function(){return new jv}); g.w(this,f);this.MX=n0(function(){return new s5(O)}); g.w(this,this.MX);this.gR=n0(function(){return new K0(d)}); g.w(this,this.gR);this.ZU=n0(function(){return new nv(O)}); g.w(this,this.ZU);this.SO=n0(function(){return new JN(O)}); g.w(this,this.SO);this.BD=n0(function(){return new Kv(O)}); g.w(this,this.BD);this.K_=n0(function(){return new PA(O)}); g.w(this,this.K_);this.e4=n0(function(){return new Gd(O)}); g.w(this,this.e4);var k=n0(function(){return new zN(S)}); g.w(this,k);var U=n0(function(){return new AE(r.e4)}); g.w(this,U);var c=n0(function(){return new u0(b,A,z,r.e4,U,null,null,null,null)}); g.w(this,c);this.qp=n0(function(){return new Aa(O)}); g.w(this,this.qp);this.S4=n0(function(){return new Sf(O,f,r.e4)}); g.w(this,this.S4);var a=Io({S4:this.S4,e4:this.e4,cY:U}),x=a.context,T=a.El;this.Sh=a.Sh;this.Zu=n0(function(){return new dU(O,r.S4,r.e4)}); g.w(this,this.Zu);this.F4=n0(function(){return new $g}); g.w(this,this.F4);this.eh=n0(function(){return new DP(r.Zu,O,r.e4)}); g.w(this,this.eh);this.L1=n0(function(){return new Yg(O,M,r.eh,r.S4,r.Sh,r.e4,T)}); g.w(this,this.L1);this.sM=n0(function(){return new mk(r.e4)}); g.w(this,this.sM);this.Ir=new l0(Ty,kg,function(Q,L,I,t){return SB(z.get(),Q,L,I,t)},V,A,z,U,this.e4,this.S4); g.w(this,this.Ir);this.mV=new FD(V,c,Y,this.e4,v,this.S4,this.Zu,this.ZU);g.w(this,this.mV);var l=new qI(O,this.mV,this.Zu,this.S4);this.Wj=n0(function(){return l}); this.Py=l;this.Ko=new RL(V,A,this.SO,this.Wj,x);g.w(this,this.Ko);this.CP=new qc(this.e4,V,A,c,this.S4,this.Ko,Y,this.BD);g.w(this,this.CP);this.BV=n0(function(){return new VT(k,z,U,r.e4,r.L1,r.Zu)}); g.w(this,this.BV);this.N8=n0(function(){return new A8}); g.w(this,this.N8);this.BB=new wM(v,this.MX,this.e4);g.w(this,this.BB);this.u3=new IL(v);g.w(this,this.u3);this.qo=new Jj(v,this.Wj,x);g.w(this,this.qo);this.ID=new Ki(v,this.SO,this.Zu,this.S4,x);g.w(this,this.ID);this.hm=new Gy(v);g.w(this,this.hm);this.ye=new i0(v);g.w(this,this.ye);this.eO=n0(function(){return new fI(O)}); g.w(this,this.eO);this.FH=new Nr(v);g.w(this,this.FH);this.Qr=n0(function(){return new Li}); g.w(this,this.Qr);this.j6=n0(function(){return new B8(r.Zu)}); g.w(this,this.j6);this.Qe=n0(function(){return new N5(r.CP,V,b)}); g.w(this,this.Qe);this.vV=n0(function(){return new Yu(r.e4,r.L1,r.hm,r.eh)}); g.w(this,this.vV);this.bl=n0(function(){return new zo1(r.MX,r.Zu,r.L1,M,Y,r.e4)}); g.w(this,this.bl);this.sQ=n0(function(){return new VA(v,r.FH,r.hm,r.L1,r.eh,r.sM,r.BD,r.S4,r.Zu,r.F4,r.SO,r.ZU,r.K_,r.gR,r.qp,r.e4,r.eO,x,T)}); g.w(this,this.sQ);this.WB={ea:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.CP],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ir],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.mV],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ko]]),w0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.BV],["SLOT_TYPE_FORECASTING",this.N8],["SLOT_TYPE_IN_PLAYER",this.N8],["SLOT_TYPE_PLAYER_BYTES",this.N8]]),Hu:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.BB],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.u3],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u3],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u3],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u3],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u3],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u3],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u3],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.qo],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ID],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.ID],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hm],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.qo],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.ye],["TRIGGER_TYPE_AD_BREAK_STARTED",this.FH]]),ey:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qr],["SLOT_TYPE_ABOVE_FEED",this.Qr],["SLOT_TYPE_FORECASTING",this.Qr],["SLOT_TYPE_IN_PLAYER",this.Qr],["SLOT_TYPE_PLAYER_BYTES",this.j6]]),gr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_FORECASTING",this.vV],["SLOT_TYPE_IN_PLAYER", this.bl],["SLOT_TYPE_PLAYER_BYTES",this.sQ]])};this.listeners=[M.get()];this.im={CP:this.CP,LT:this.e4.get(),Rd:this.gR.get(),mH:this.Zu.get(),mV:this.mV,sj:b.get(),Pc:null,gS:this.BB,TY:M.get(),Mp:this.S4.get()}}; mKg=function(v,O,Y,S,d){g.X.call(this);var r=this,b=n0(function(){return new vc(r.e4)}); g.w(this,b);var z=n0(function(){return new Yi(b,r.e4)}); g.w(this,z);var M=n0(function(){return new eB}); g.w(this,M);var V=n0(function(){return new hj(v)}); g.w(this,V);var A=n0(function(){return new Sv(b,z,r.e4)}); g.w(this,A);var f=n0(function(){return new jv}); g.w(this,f);this.LU=n0(function(){return new Kx1(O)}); g.w(this,this.LU);this.MX=n0(function(){return new s5(O)}); g.w(this,this.MX);this.gR=n0(function(){return new K0(d)}); g.w(this,this.gR);this.ZU=n0(function(){return new nv(O)}); g.w(this,this.ZU);this.SO=n0(function(){return new JN(O)}); g.w(this,this.SO);this.BD=n0(function(){return new Kv(O)}); g.w(this,this.BD);this.K_=n0(function(){return new PA(O)}); g.w(this,this.K_);this.e4=n0(function(){return new Gd(O)}); g.w(this,this.e4);var k=n0(function(){return new zN(S)}); g.w(this,k);var U=n0(function(){return new AE(r.e4)}); g.w(this,U);var c=n0(function(){return new u0(b,A,z,r.e4,U,null,null,null,null)}); g.w(this,c);this.qp=n0(function(){return new Aa(O)}); g.w(this,this.qp);this.S4=n0(function(){return new Sf(O,f,r.e4)}); g.w(this,this.S4);var a=Io({S4:this.S4,e4:this.e4,cY:U}),x=a.context,T=a.El;this.Sh=a.Sh;this.Zu=n0(function(){return new dU(O,r.S4,r.e4)}); g.w(this,this.Zu);this.F4=n0(function(){return new $g}); g.w(this,this.F4);this.eh=n0(function(){return new DP(r.Zu,O,r.e4)}); g.w(this,this.eh);this.L1=n0(function(){return new Yg(O,M,r.eh,r.S4,r.Sh,r.e4,T)}); g.w(this,this.L1);this.sM=n0(function(){return new mk(r.e4)}); g.w(this,this.sM);this.Ir=new l0(ZMd,kg,function(Q,L,I,t){return b0l(z.get(),Q,L,I,t)},V,A,z,U,this.e4,this.S4); g.w(this,this.Ir);this.mV=new FD(V,c,Y,this.e4,v,this.S4,this.Zu,this.ZU);g.w(this,this.mV);var l=new qI(O,this.mV,this.Zu,this.S4);this.Wj=n0(function(){return l}); this.Py=l;this.Ko=new RL(V,A,this.SO,this.Wj,x);g.w(this,this.Ko);this.CP=new qc(this.e4,V,A,c,this.S4,this.Ko,Y,this.BD);g.w(this,this.CP);this.BV=n0(function(){return new VT(k,z,U,r.e4,r.L1,r.Zu)}); g.w(this,this.BV);this.N8=n0(function(){return new A8}); g.w(this,this.N8);this.BB=new wM(v,this.MX,this.e4);g.w(this,this.BB);this.u3=new IL(v);g.w(this,this.u3);this.qo=new Jj(v,this.Wj,x);g.w(this,this.qo);this.ID=new Ki(v,this.SO,this.Zu,this.S4,x);g.w(this,this.ID);this.hm=new Gy(v);g.w(this,this.hm);this.ye=new i0(v);g.w(this,this.ye);this.eO=n0(function(){return new fI(O)}); g.w(this,this.eO);this.FH=new Nr(v);g.w(this,this.FH);this.Qr=n0(function(){return new Li}); g.w(this,this.Qr);this.j6=n0(function(){return new B8(r.Zu)}); g.w(this,this.j6);this.Qe=n0(function(){return new N5(r.CP,V,b)}); g.w(this,this.Qe);this.vV=n0(function(){return new Yu(r.e4,r.L1,r.hm,r.eh)}); g.w(this,this.vV);this.sQ=n0(function(){return new VA(v,r.FH,r.hm,r.L1,r.eh,r.sM,r.BD,r.S4,r.Zu,r.F4,r.SO,r.ZU,r.K_,r.gR,r.qp,r.e4,r.eO,x,T)}); g.w(this,this.sQ);this.yj=n0(function(){return new OLn(r.MX,r.Zu,r.L1,M,r.LU,Y,r.S4)}); g.w(this,this.yj);this.WB={ea:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.CP],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ir],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.mV],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ko]]),w0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.BV],["SLOT_TYPE_FORECASTING",this.N8],["SLOT_TYPE_IN_PLAYER",this.N8],["SLOT_TYPE_PLAYER_BYTES",this.N8]]),Hu:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.BB],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.u3],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u3],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u3],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u3],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u3],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u3],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u3],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.qo],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ID],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.ID],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hm],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.qo],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.ye],["TRIGGER_TYPE_AD_BREAK_STARTED",this.FH]]),ey:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qr],["SLOT_TYPE_FORECASTING",this.Qr],["SLOT_TYPE_IN_PLAYER",this.Qr],["SLOT_TYPE_PLAYER_BYTES",this.j6]]),gr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_FORECASTING",this.vV],["SLOT_TYPE_IN_PLAYER",this.yj],["SLOT_TYPE_PLAYER_BYTES", this.sQ]])};this.listeners=[M.get()];this.im={CP:this.CP,LT:this.e4.get(),Rd:this.gR.get(),mH:this.Zu.get(),mV:this.mV,sj:b.get(),Pc:null,gS:this.BB,TY:M.get(),Mp:this.S4.get()}}; tLl=function(v,O,Y,S,d){g.X.call(this);var r=this,b=n0(function(){return new vc(r.e4)}); g.w(this,b);var z=n0(function(){return new Yi(b,r.e4)}); g.w(this,z);var M=n0(function(){return new eB}); g.w(this,M);var V=n0(function(){return new hj(v)}); g.w(this,V);var A=n0(function(){return new Sv(b,z,r.e4)}); g.w(this,A);var f=n0(function(){return new jv}); g.w(this,f);this.LU=n0(function(){return new Kx1(O)}); g.w(this,this.LU);this.MX=n0(function(){return new s5(O)}); g.w(this,this.MX);this.gR=n0(function(){return new K0(d)}); g.w(this,this.gR);this.ZU=n0(function(){return new nv(O)}); g.w(this,this.ZU);this.SO=n0(function(){return new JN(O)}); g.w(this,this.SO);this.BD=n0(function(){return new Kv(O)}); g.w(this,this.BD);this.K_=n0(function(){return new PA(O)}); g.w(this,this.K_);this.e4=n0(function(){return new Gd(O)}); g.w(this,this.e4);var k=n0(function(){return new zN(S)}); g.w(this,k);var U=n0(function(){return new AE(r.e4)}); g.w(this,U);this.qp=n0(function(){return new Aa(O)}); g.w(this,this.qp);this.S4=n0(function(){return new Sf(O,f,r.e4)}); g.w(this,this.S4);var c=Io({S4:this.S4,e4:this.e4,cY:U}),a=c.context,x=c.El;this.Sh=c.Sh;this.Pq=n0(function(){return new VR(O,r.e4,r.L1)}); g.w(this,this.Pq);this.eO=n0(function(){return new fI(O)}); g.w(this,this.eO);this.Zu=n0(function(){return new dU(O,r.S4,r.e4)}); g.w(this,this.Zu);this.F4=n0(function(){return new $g}); g.w(this,this.F4);c=n0(function(){return new u0(b,A,z,r.e4,U,null,r.Zu,r.gx,r.PY,3)}); g.w(this,c);this.sM=n0(function(){return new mk(r.e4)}); this.eh=n0(function(){return new DP(r.Zu,O,r.e4)}); g.w(this,this.eh);this.L1=n0(function(){return new Yg(O,M,r.eh,r.S4,r.Sh,r.e4,x)}); g.w(this,this.L1);this.mV=new FD(V,c,Y,this.e4,v,this.S4,this.Zu,this.ZU);g.w(this,this.mV);var T=new qI(O,this.mV,this.Zu,this.S4,this.Pq);this.Wj=n0(function(){return T}); this.Py=T;this.Ir=new l0(X1$,kg,function(l,Q,L,I){return b0l(z.get(),l,Q,L,I)},V,A,z,U,this.e4,this.S4); g.w(this,this.Ir);this.gx=new aL(V,A,this.Wj,this.Pq,this.Zu,this.e4,this.L1,this.eO);g.w(this,this.gx);this.Ko=new RL(V,A,this.SO,this.Wj,a);g.w(this,this.Ko);this.CP=new qc(this.e4,V,A,c,this.S4,this.Ko,Y,this.BD);g.w(this,this.CP);this.BV=n0(function(){return new VT(k,z,U,r.e4,r.L1,r.Zu,r.eO)}); g.w(this,this.BV);this.N8=n0(function(){return new A8}); g.w(this,this.N8);this.BB=new wM(v,this.MX,this.e4);g.w(this,this.BB);this.u3=new IL(v);g.w(this,this.u3);this.qo=new Jj(v,this.Wj,a);g.w(this,this.qo);this.ID=new Ki(v,this.SO,this.Zu,this.S4,a);g.w(this,this.ID);this.Vs=new P8(v,this.S4);g.w(this,this.Vs);this.PY=new m5(v,this.Pq,this.Zu,this.L1,this.Wj);g.w(this,this.PY);this.hm=new Gy(v);g.w(this,this.hm);this.ye=new i0(v);g.w(this,this.ye);this.FH=new Nr(v);g.w(this,this.FH);this.Qr=n0(function(){return new Li}); g.w(this,this.Qr);this.j6=n0(function(){return new B8(r.Zu)}); g.w(this,this.j6);this.Qe=n0(function(){return new N5(r.CP,V,b)}); g.w(this,this.Qe);this.vV=n0(function(){return new Yu(r.e4,r.L1,r.hm,r.eh)}); g.w(this,this.vV);this.sQ=n0(function(){return new Mz(v,r.FH,r.hm,r.S4,r.eO,r.Zu,r.F4,r.L1,f,r.Pq,r.eh,r.sM,r.BD,r.SO,r.ZU,r.K_,r.gR,r.qp,r.e4,M,a,x)}); g.w(this,this.sQ);this.pz=n0(function(){return new YXg(r.MX,r.Zu,r.L1,M,r.LU,Y,r.e4,r.S4)}); g.w(this,this.pz);this.WB={ea:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.CP],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.gx],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ir],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.mV],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ko]]),w0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.BV],["SLOT_TYPE_FORECASTING",this.N8],["SLOT_TYPE_IN_PLAYER",this.N8],["SLOT_TYPE_PLAYER_BYTES",this.N8]]),Hu:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.BB],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u3],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u3],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u3],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u3],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u3],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u3],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u3],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.qo],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.ID],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ID],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Vs],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Vs],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hm],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.qo],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.ye],["TRIGGER_TYPE_AD_BREAK_STARTED",this.FH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.PY],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.PY],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.PY],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.PY],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.PY]]),ey:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qr],["SLOT_TYPE_FORECASTING",this.Qr],["SLOT_TYPE_IN_PLAYER",this.Qr],["SLOT_TYPE_PLAYER_BYTES",this.j6]]),gr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_FORECASTING",this.vV],["SLOT_TYPE_PLAYER_BYTES",this.sQ],["SLOT_TYPE_IN_PLAYER",this.pz]])};this.listeners=[M.get()]; this.im={CP:this.CP,LT:this.e4.get(),Rd:this.gR.get(),mH:this.Zu.get(),mV:this.mV,sj:b.get(),Pc:null,gS:this.BB,TY:M.get(),Mp:this.S4.get()}}; Ho7=function(v,O,Y,S){function d(){return r.U} g.X.call(this);var r=this;v.D().experiments.T0("html5_dispose_of_manager_before_dependency")?(this.Y=DKd(d,v,O,Y,S),this.U=(new JE(this.Y)).G(),g.w(this,this.U),g.w(this,this.Y)):(this.Y=DKd(d,v,O,Y,S),g.w(this,this.Y),this.U=(new JE(this.Y)).G(),g.w(this,this.U))}; U5=function(v){return v.Y.im}; DKd=function(v,O,Y,S,d){try{var r=O.D();if(g.PD(r))var b=new Pm1(v,O,Y,S,d);else if(g.iq(r))b=new Gxn(v,O,Y,S,d);else if(ZS(r))b=new iog(v,O,Y,S,d);else if(g.qB(r))b=new mKg(v,O,Y,S,d);else if(g.RP(r))b=new tLl(v,O,Y,S,d);else throw new TypeError("Unknown web interface");return b}catch(z){return b=O.D(),f_("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:b.Y.cplatform,interface:b.Y.c,OL1:b.Y.cver,bLs:b.Y.ctheme,Y$d:b.Y.cplayer,EjW:b.playerStyle}),new Lx$(v,O,Y,S,d)}}; Njn=function(v){mh.call(this,v)}; v4l=function(v,O,Y,S,d){Sd.call(this,v,{J:"div",W:"ytp-ad-timed-pie-countdown-container",K:[{J:"svg",W:"ytp-ad-timed-pie-countdown",T:{viewBox:"0 0 20 20"},K:[{J:"circle",W:"ytp-ad-timed-pie-countdown-background",T:{r:"10",cx:"10",cy:"10"}},{J:"circle",W:"ytp-ad-timed-pie-countdown-inner",T:{r:"5",cx:"10",cy:"10"}},{J:"circle",W:"ytp-ad-timed-pie-countdown-outer",T:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",O,Y,S,d);this.B=this.BW("ytp-ad-timed-pie-countdown-container");this.G=this.BW("ytp-ad-timed-pie-countdown-inner"); this.C=this.BW("ytp-ad-timed-pie-countdown-outer");this.U=Math.ceil(2*Math.PI*5);this.hide()}; OEF=function(v,O,Y,S,d,r){U2.call(this,v,{J:"div",W:"ytp-ad-action-interstitial",T:{tabindex:"0"},K:[{J:"div",W:"ytp-ad-action-interstitial-background-container"},{J:"div",W:"ytp-ad-action-interstitial-slot",K:[{J:"div",W:"ytp-ad-action-interstitial-instream-info"},{J:"div",W:"ytp-ad-action-interstitial-card",K:[{J:"div",W:"ytp-ad-action-interstitial-image-container"},{J:"div",W:"ytp-ad-action-interstitial-headline-container"},{J:"div",W:"ytp-ad-action-interstitial-description-container"},{J:"div", W:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",O,Y,S);this.As=d;this.xL=r;this.navigationEndpoint=this.Y=this.skipButton=this.U=this.actionButton=null;this.AK=this.BW("ytp-ad-action-interstitial-instream-info");this.g8=this.BW("ytp-ad-action-interstitial-image-container");this.j=new Ku(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,"ytp-ad-action-interstitial-image");g.w(this,this.j);this.j.C1(this.g8);this.N3=this.BW("ytp-ad-action-interstitial-headline-container"); this.C=new OO(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,"ytp-ad-action-interstitial-headline");g.w(this,this.C);this.C.C1(this.N3);this.Ug=this.BW("ytp-ad-action-interstitial-description-container");this.G=new OO(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,"ytp-ad-action-interstitial-description");g.w(this,this.G);this.G.C1(this.Ug);this.yx=this.BW("ytp-ad-action-interstitial-background-container");this.XO=new Ku(this.api,this.layoutId,this.interactionLoggingClientData, this.Rd,"ytp-ad-action-interstitial-background",!0);g.w(this,this.XO);this.XO.C1(this.yx);this.xg=this.BW("ytp-ad-action-interstitial-action-button-container");this.slot=this.BW("ytp-ad-action-interstitial-slot");this.xZ=this.BW("ytp-ad-action-interstitial-card");this.B=new lK;g.w(this,this.B);this.hide()}; Y_F=function(v){var O=g.Jc("html5-video-player");O&&g.gr(O,"ytp-ad-display-override",v)}; bEJ=function(v,O,Y,S){U2.call(this,v,{J:"div",W:"ytp-ad-overlay-slot",K:[{J:"div",W:"ytp-ad-overlay-container"}]},"invideo-overlay",O,Y,S);this.j=[];this.yx=this.N3=this.B=this.xg=this.AK=null;this.XO=!1;this.C=null;this.Ug=0;v=this.BW("ytp-ad-overlay-container");this.g8=new sO(v,45E3,6E3,.3,.4);g.w(this,this.g8);this.G=S_m(this);g.w(this,this.G);this.G.C1(v);this.U=db7(this);g.w(this,this.U);this.U.C1(v);this.Y=rJc(this);g.w(this,this.Y);this.Y.C1(v);this.hide()}; S_m=function(v){var O=new g.k9({J:"div",W:"ytp-ad-text-overlay",K:[{J:"div",W:"ytp-ad-overlay-ad-info-button-container"},{J:"div",W:"ytp-ad-overlay-close-container",K:[{J:"button",W:"ytp-ad-overlay-close-button",K:[BH(o47)]}]},{J:"div",W:"ytp-ad-overlay-title",M3:"{{title}}"},{J:"div",W:"ytp-ad-overlay-desc",M3:"{{description}}"},{J:"div",hK:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],M3:"{{displayUrl}}"}]});v.S(O.BW("ytp-ad-overlay-title"),"click",function(Y){co(v,O.element,Y)}); v.S(O.BW("ytp-ad-overlay-link"),"click",function(Y){co(v,O.element,Y)}); v.S(O.BW("ytp-ad-overlay-close-container"),"click",v.SK);O.hide();return O}; db7=function(v){var O=new g.k9({J:"div",hK:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],K:[{J:"div",W:"ytp-ad-overlay-ad-info-button-container"},{J:"div",W:"ytp-ad-overlay-close-container",K:[{J:"button",W:"ytp-ad-overlay-close-button",K:[BH(o47)]}]},{J:"div",W:"ytp-ad-overlay-text-image",K:[{J:"img",T:{src:"{{imageUrl}}"}}]},{J:"div",W:"ytp-ad-overlay-title",M3:"{{title}}"},{J:"div",W:"ytp-ad-overlay-desc",M3:"{{description}}"},{J:"div",hK:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], M3:"{{displayUrl}}"}]});v.S(O.BW("ytp-ad-overlay-title"),"click",function(Y){co(v,O.element,Y)}); v.S(O.BW("ytp-ad-overlay-link"),"click",function(Y){co(v,O.element,Y)}); v.S(O.BW("ytp-ad-overlay-close-container"),"click",v.SK);v.S(O.BW("ytp-ad-overlay-text-image"),"click",v.Xqg);O.hide();return O}; rJc=function(v){var O=new g.k9({J:"div",W:"ytp-ad-image-overlay",K:[{J:"div",W:"ytp-ad-overlay-ad-info-button-container"},{J:"div",W:"ytp-ad-overlay-close-container",K:[{J:"button",W:"ytp-ad-overlay-close-button",K:[BH(o47)]}]},{J:"div",W:"ytp-ad-overlay-image",K:[{J:"img",T:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});v.S(O.BW("ytp-ad-overlay-image"),"click",function(Y){co(v,O.element,Y)}); v.S(O.BW("ytp-ad-overlay-close-container"),"click",v.SK);O.hide();return O}; j4m=function(v,O){if(O){var Y=g.q(O,ZF)||null;Y==null?g.LP(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(O=g.Jc("video-ads ytp-ad-module")||null,O==null?g.LP(Error("Could not locate the root ads container element to attach the ad info dialog.")):(v.N3=new g.k9({J:"div",W:"ytp-ad-overlay-ad-info-dialog-container"}),g.w(v,v.N3),v.N3.C1(O),O=new vK(v.api,v.layoutId,v.interactionLoggingClientData,v.Rd,v.N3.element,!1),g.w(v,O),O.init(s2("ad-info-hover-text-button"),Y,v.macros), v.C?(O.C1(v.C,0),O.subscribe("f",v.fug,v),O.subscribe("e",v.Rk,v),v.S(v.C,"click",v.au4),v.S(g.Jc("ytp-ad-button",O.element),"click",function(){var S;if(g.q((S=g.q(Y.button,g.wZ))==null?void 0:S.serviceEndpoint,NJ3))v.XO=v.api.getPlayerState(1)===2,v.api.pauseVideo();else v.api.onAdUxClicked("ad-info-hover-text-button",v.layoutId)}),v.yx=O):g.LP(Error("Ad info button container within overlay ad was not present."))))}else g.Br(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; zjJ=function(v,O){if(WH7(v,uo)||v.api.isMinimized())return!1;var Y=cH(O.title),S=cH(O.description);if(g.Vh(Y)||g.Vh(S))return!1;v.createServerVe(v.G.element,O.trackingParams||null);v.G.updateValue("title",cH(O.title));v.G.updateValue("description",cH(O.description));v.G.updateValue("displayUrl",cH(O.displayUrl));O.navigationEndpoint&&g.CC(v.j,O.navigationEndpoint);v.G.show();v.g8.start();v.logVisibility(v.G.element,!0);v.S(v.G.element,"mouseover",function(){v.Ug++}); return!0}; s4n=function(v,O){if(WH7(v,uo)||v.api.isMinimized())return!1;var Y=cH(O.title),S=cH(O.description);if(g.Vh(Y)||g.Vh(S))return!1;v.createServerVe(v.U.element,O.trackingParams||null);v.U.updateValue("title",cH(O.title));v.U.updateValue("description",cH(O.description));v.U.updateValue("displayUrl",cH(O.displayUrl));v.U.updateValue("imageUrl",MN$(O.image));O.navigationEndpoint&&g.CC(v.j,O.navigationEndpoint);v.xg=O.imageNavigationEndpoint||null;v.U.show();v.g8.start();v.logVisibility(v.U.element,!0); v.S(v.U.element,"mouseover",function(){v.Ug++}); return!0}; g4d=function(v,O){if(v.api.isMinimized())return!1;var Y=VNm(O.image),S=Y;Y.width0?(O=new wY(v.api,v.Y), O.C1(v.playerOverlay),g.w(v,O)):(v=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(O)),g.LP(v))}}else g.LP(Error("addCommonComponents() needs to be called before starting countdown."))}; yJ7=function(v){function O(Y){return{toString:function(){return Y()}}} v.macros.SURVEY_LOCAL_TIME_EPOCH_S=O(function(){var Y=new Date;return(Math.round(Y.valueOf()/1E3)+-1*Y.getTimezoneOffset()*60).toString()}); v.macros.SURVEY_ELAPSED_MS=O(function(){return(Date.now()-v.G).toString()})}; aGJ=function(v,O,Y,S,d){xg.call(this,v,O,Y,S,"survey-question-multi-select");this.Ug=d;this.noneOfTheAbove=null;this.submitEndpoints=[];this.C=null;this.hide()}; xbd=function(v,O,Y){v.noneOfTheAbove=new kp$(v.api,v.layoutId,v.interactionLoggingClientData,v.Rd);v.noneOfTheAbove.C1(v.answers);v.noneOfTheAbove.init(s2("survey-none-of-the-above"),O,Y)}; TWQ=function(v){v.U.forEach(function(O){O.Y.toggleButton(!1)}); p6g(v,!0)}; p6g=function(v,O){var Y=v.B;v=lGE(v);O=O===void 0?!1:O;Y.Y&&(v?Y.Y.hide():Y.Y.show(),O&&Y.Y instanceof C_&&!Y.Y.B&&jMw(Y.Y,!1));Y.U&&(v?Y.U.show():Y.U.hide())}; lGE=function(v){return v.U.some(function(O){return O.Y.isToggled()})||v.noneOfTheAbove.button.isToggled()}; pI=function(v,O,Y,S,d){xg.call(this,v,O,Y,S,"survey-question-single-select",function(b){r.api.D().V("supports_multi_step_on_desktop")&&d([b])}); var r=this;this.hide()}; TN=function(v,O,Y,S){U2.call(this,v,{J:"div",W:"ytp-ad-survey",K:[{J:"div",W:"ytp-ad-survey-questions"}]},"survey",O,Y,S);this.questions=[];this.U=[];this.conditioningRules=[];this.Y=0;this.C=this.BW("ytp-ad-survey-questions");this.api.D().V("fix_survey_color_contrast_on_destop")&&this.BW("ytp-ad-survey").classList.add("color-contrast-fix");this.api.D().V("web_enable_speedmaster")&&this.BW("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; Rj1=function(v,O){var Y=v.U[O],S;(S=v.G)==null||S.dispose();g.q(Y,LG)?FHE(v,g.q(Y,LG),v.macros):g.q(Y,QS)&&hjn(v,g.q(Y,QS),v.macros);v.Y=O}; FHE=function(v,O,Y){var S=new pI(v.api,v.layoutId,v.interactionLoggingClientData,v.Rd,v.B.bind(v));S.C1(v.C);S.init(s2("survey-question-single-select"),O,Y);v.api.D().V("supports_multi_step_on_desktop")?v.G=S:v.questions.push(S);g.w(v,S)}; hjn=function(v,O,Y){var S=new aGJ(v.api,v.layoutId,v.interactionLoggingClientData,v.Rd,v.B.bind(v));S.C1(v.C);S.init(s2("survey-question-multi-select"),O,Y);v.api.D().V("supports_multi_step_on_desktop")?v.G=S:v.questions.push(S);g.w(v,S)}; lo=function(v,O,Y,S){U2.call(this,v,{J:"div",W:"ytp-ad-survey-interstitial",K:[{J:"div",W:"ytp-ad-survey-interstitial-contents",K:[{J:"div",W:"ytp-ad-survey-interstitial-logo",K:[{J:"div",W:"ytp-ad-survey-interstitial-logo-image"}]},{J:"div",W:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",O,Y,S);this.Y=this.actionButton=null;this.interstitial=this.BW("ytp-ad-survey-interstitial");this.U=this.BW("ytp-ad-survey-interstitial-contents");this.text=this.BW("ytp-ad-survey-interstitial-text"); this.logoImage=this.BW("ytp-ad-survey-interstitial-logo-image");this.transition=new g.bC(this,500,!1,300);g.w(this,this.transition)}; ejE=function(v,O){O=O&&J6(O)||"";if(g.Vh(O))g.Br(Error("Found ThumbnailDetails without valid image URL"));else{var Y=v.style;v=v.style.cssText;var S=document.implementation.createHTMLDocument("").createElement("DIV");S.style.cssText=v;v=wtc(S.style);Y.cssText=[v,'background-image:url("'+O+'");'].join("")}}; E4c=function(v){var O=g.Jc("html5-video-player");O&&g.gr(O,"ytp-ad-display-override",v)}; Fd=function(v,O,Y,S,d,r){r=r===void 0?0:r;Sd.call(this,v,{J:"div",W:"ytp-preview-ad",K:[{J:"div",W:"ytp-preview-ad__text"}]},"preview-ad",O,Y,S,d);var b=this;this.Ug=r;this.U=0;this.B=-1;this.G=this.BW("ytp-preview-ad__text");switch(this.Ug){case 1:this.G.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.bC(this,400,!1,100,function(){b.hide()}); g.w(this,this.transition);this.hide()}; ha=function(v,O,Y,S){U2.call(this,v,{J:"img",W:"ytp-ad-avatar"},"ad-avatar",O,Y,S);this.hide()}; Q4F=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}}; RV=function(v,O,Y,S,d,r){d=d===void 0?!1:d;r=r===void 0?!1:r;U2.call(this,v,{J:"button",W:"ytp-ad-button-vm"},"ad-button",O,Y,S);this.buttonText=this.buttonIcon=null;this.hide();this.Y=d;this.U=r}; LHF=function(v,O,Y,S,d){Sd.call(this,v,{J:"div",hK:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],K:[{J:"div",W:"ytp-ad-avatar-lockup-card__avatar_and_text_container",K:[{J:"div",W:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",O,Y,S,d);this.startMilliseconds=0;this.adAvatar=new ha(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd);g.w(this,this.adAvatar);vL(this.element,this.adAvatar.element,0);this.headline=new EO(this.api,this.layoutId, this.interactionLoggingClientData,this.Rd);g.w(this,this.headline);this.headline.C1(this.BW("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new EO(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd);g.w(this,this.description);this.description.C1(this.BW("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new RV(this.api, this.layoutId,this.interactionLoggingClientData,this.Rd);g.w(this,this.adButton);this.adButton.C1(this.element);this.hide()}; ef=function(v,O,Y,S){U2.call(this,v,{J:"button",W:"ytp-skip-ad-button",K:[{J:"div",W:"ytp-skip-ad-button__text"}]},"skip-button",O,Y,S);var d=this;this.U=!1;this.B=this.BW("ytp-skip-ad-button__text");this.transition=new g.bC(this,500,!1,100,function(){d.hide()}); g.w(this,this.transition);this.Y=new sO(this.element,15E3,5E3,.5,.5,!0);g.w(this,this.Y);this.hide()}; BWd=function(v,O,Y,S,d){Sd.call(this,v,{J:"div",W:"ytp-skip-ad"},"skip-ad",O,Y,S,d);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.G=new ef(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd);g.w(this,this.G);this.G.C1(this.element);this.hide()}; E5=function(v,O,Y,S){U2.call(this,v,{J:"div",W:"ytp-visit-advertiser-link"},"visit-advertiser-link",O,Y,S);this.hide()}; QR=function(v,O,Y,S,d){U2.call(this,v,{J:"div",W:"ytp-ad-player-overlay-layout",K:[{J:"div",W:"ytp-ad-player-overlay-layout__player-card-container"},{J:"div",W:"ytp-ad-player-overlay-layout__ad-info-container"},{J:"div",W:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{J:"div",W:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",O,Y,S);this.U=d;this.N3=this.BW("ytp-ad-player-overlay-layout__player-card-container");this.Y=this.BW("ytp-ad-player-overlay-layout__ad-info-container"); this.j=this.BW("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Ug=this.BW("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; ZEJ=function(v,O,Y,S){U2.call(this,v,{J:"div",W:"ytp-ad-grid-card-text",K:[{J:"div",W:"ytp-ad-grid-card-text__metadata",K:[{J:"div",W:"ytp-ad-grid-card-text__metadata__headline"},{J:"div",W:"ytp-ad-grid-card-text__metadata__description",K:[{J:"div",W:"ytp-ad-grid-card-text__metadata__description__line"},{J:"div",W:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{J:"div",W:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",O,Y,S);this.headline=new EO(this.api,this.layoutId,this.interactionLoggingClientData, this.Rd);g.w(this,this.headline);this.headline.C1(this.BW("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new RV(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,!0);g.w(this,this.moreInfoButton);this.moreInfoButton.C1(this.BW("ytp-ad-grid-card-text__button"))}; LI=function(v,O,Y,S){U2.call(this,v,{J:"div",W:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",O,Y,S);this.Y=[]}; Bo=function(v,O,Y,S,d,r,b){Sd.call(this,v,r,b,O,Y,S,d);this.playerProgressOffsetMs=0;this.U=!1}; X6g=function(v){var O=g.Jc("html5-video-player");O&&g.gr(O,"ytp-ad-display-override",v)}; w6n=function(v,O,Y,S,d){Bo.call(this,v,O,Y,S,d,{J:"div",W:"ytp-display-underlay-text-grid-cards",K:[{J:"div",W:"ytp-display-underlay-text-grid-cards__content_container",K:[{J:"div",W:"ytp-display-underlay-text-grid-cards__content_container__header",K:[{J:"div",W:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{J:"div",W:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{J:"div",W:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {J:"div",W:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new LI(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd);g.w(this,this.adGridCardCollection);this.adGridCardCollection.C1(this.BW("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new RV(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd);g.w(this,this.adButton);this.adButton.C1(this.BW("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.G=this.BW("ytp-display-underlay-text-grid-cards__content_container");this.B=this.BW("ytp-display-underlay-text-grid-cards__content_container__header")}; Zy=function(v,O,Y,S){U2.call(this,v,{J:"div",W:"ytp-ad-details-line"},"ad-details-line",O,Y,S);this.Y=[];this.hide()}; Xd=function(v,O,Y,S){U2.call(this,v,{J:"div",W:"ytp-image-background",K:[{J:"img",W:"ytp-image-background-image"}]},"image-background",O,Y,S);this.hide()}; IGE=function(v,O,Y,S,d){Sd.call(this,v,{J:"svg",W:"ytp-timed-pie-countdown",T:{viewBox:"0 0 20 20"},K:[{J:"circle",W:"ytp-timed-pie-countdown__background",T:{r:"10",cx:"10",cy:"10"}},{J:"circle",W:"ytp-timed-pie-countdown__inner",T:{r:"5",cx:"10",cy:"10"}},{J:"circle",W:"ytp-timed-pie-countdown__outer",T:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",O,Y,S,d);this.G=this.BW("ytp-timed-pie-countdown__inner");this.U=Math.ceil(2*Math.PI*5);this.hide()}; wU=function(v,O,Y,S){U2.call(this,v,{J:"div",W:"ytp-video-interstitial-buttoned-centered-layout",T:{tabindex:"0"},K:[{J:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content",K:[{J:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{J:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",K:[{J:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{J:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {J:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{J:"div",W:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{J:"div",W:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",O,Y,S);this.U=null;this.B=this.BW("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.G=new lK;g.w(this,this.G);this.hide()}; q_Q=function(v){var O=g.Jc("html5-video-player");O&&g.gr(O,"ytp-ad-display-override",v)}; n4n=function(v){if(!v.adAvatar||!g.q(v.adAvatar,IV))return g.LP(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!v.headline)return g.LP(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!v.adBadge||!g.q(v.adBadge,qm))return g.LP(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!v.adButton||!g.q(v.adButton,nI))return g.LP(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!v.adInfoRenderer|| !g.q(v.adInfoRenderer,ZF))return g.LP(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;v=v.durationMilliseconds||0;return typeof v!=="number"||v<=0?(g.LP(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+v)),!1):!0}; Ja=function(v,O){O=O===void 0?2:O;g.MU.call(this);this.api=v;this.Y=null;this.bk=new lK(this);g.w(this,this.bk);this.U=W_i;this.bk.S(this.api,"presentingplayerstatechange",this.kc);this.Y=this.bk.S(this.api,"progresssync",this.vD);this.fv=O;this.fv===1&&this.vD()}; KI=function(v,O,Y){mh.call(this,v);this.api=v;this.Rd=O;this.U={};v=new g.K({J:"div",hK:["video-ads","ytp-ad-module"]});g.w(this,v);uq&&g.on(v.element,"ytp-ads-tiny-mode");this.Z=new f8(v.element);g.w(this,this.Z);g.TW(this.api,v.element,4);dM(Y)&&(Y=new g.K({J:"div",hK:["ytp-ad-underlay"]}),g.w(this,Y),this.G=new f8(Y.element),g.w(this,this.G),g.TW(this.api,Y.element,0));g.w(this,ZQn())}; JJJ=function(v,O){v=g.DK(v.U,O.id,null);v==null&&g.Br(Error("Component not found for element id: "+O.id));return v||null}; KH7=function(v){g.gx.call(this,v);var O=this;this.U=null;this.created=!1;this.G=v.D().V("h5_use_refactored_get_ad_break")?new B_i(this.player):new wu(this.player);this.B=function(){if(O.U!=null)return O.U;var S=new JW$({gS:U5(O.Y).gS,Mp:U5(O.Y).Mp,N:O.player,LT:U5(O.Y).LT,L1:O.Y.Y.L1,TY:U5(O.Y).TY,K_:O.Y.Y.K_});O.U=S.lZ;return O.U}; this.Y=new Ho7(this.player,this,this.G,this.B);g.w(this,this.Y);var Y=v.D();!Tb(Y)||g.RP(Y)||ZS(Y)||(g.w(this,new KI(v,U5(this.Y).Rd,U5(this.Y).LT)),g.w(this,new Njn(v)))}; PQF=function(v){v.created!==v.loaded&&f_("Created and loaded are out of sync")}; mbg=function(v){g.gx.prototype.load.call(v);var O=U5(v.Y).LT;try{v.player.getRootNode().classList.add("ad-created")}catch(M){f_(M instanceof Error?M:String(M))}var Y=v.player.getVideoData(1),S=Y&&Y.videoId||"",d=Y&&Y.getPlayerResponse()||{},r=(!v.player.D().experiments.T0("debug_ignore_ad_placements")&&d&&d.adPlacements||[]).map(function(M){return M.adPlacementRenderer}),b=((d==null?void 0:d.adSlots)||[]).map(function(M){return g.q(M,nG)}); d=d.playerConfig&&d.playerConfig.daiConfig&&d.playerConfig.daiConfig.enableDai||!1;Y&&Y.FL();r=Gpc(r,b,O,U5(v.Y).sj);b=Y&&Y.clientPlaybackNonce||"";Y=Y&&Y.tb||!1;if(xu(O,!0)&&Y){var z;O={};(z=v.player.getVideoData())==null||z.G0("p_cpb",(O.cc=b,O))}z=1E3*v.player.getDuration(1);iEi(v);v.Y.Y.Py.xf(b,z,Y,r.wM,r.j0,r.wM,d,S)}; iEi=function(v){var O,Y;if(Y=(O=v.player.getVideoData(1))==null||!O.tb)O=v.player.D(),Y=Tb(O)&&!g.p0(O)&&O.playerStyle==="desktop-polymer";Y&&(v=v.player.getInternalApi(),v.addEventListener("updateKevlarOrC3Companion",Arc),v.addEventListener("updateEngagementPanelAction",f_l),v.addEventListener("changeEngagementPanelVisibility",$FQ),window.addEventListener("yt-navigate-start",UFw))}; Po=function(v,O){O===v.m6&&(v.m6=void 0)}; tCw=function(v){var O=U5(v.Y).mV,Y=O.B().Rb("SLOT_TYPE_PLAYER_BYTES",1);O=u7(O.S4.get(),1).clientPlaybackNonce;var S=!1;Y=g.y(Y);for(var d=Y.next();!d.done;d=Y.next()){d=d.value;var r=d.slotType==="SLOT_TYPE_PLAYER_BYTES"&&d.slotEntryTrigger instanceof lz?d.slotEntryTrigger.Zh:void 0;r&&r===O&&(S&&f_("More than 1 preroll playerBytes slot detected",d),S=!0)}S||rU(U5(v.Y).mH)}; Dbd=function(v){if(mQ(U5(v.Y).LT))return!0;var O="";v=g.y(U5(v.Y).TY.HP.keys());for(var Y=v.next();!Y.done;Y=v.next()){Y=Y.value;if(Y.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Y.w8==="core")return!0;O+=Y.slotType+" "}Math.random()<.01&&f_("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:O});return!1}; HEd=function(v){v=g.y(U5(v.Y).TY.HP.values());for(var O=v.next();!O.done;O=v.next())if(O.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; LUF=function(v,O,Y,S,d,r){Y=Y===void 0?[]:Y;S=S===void 0?"":S;d=d===void 0?"":d;var b=U5(v.Y).LT,z=v.player.getVideoData(1);z&&z.getPlayerResponse();z&&z.FL();Y=Gpc(O,Y,b,U5(v.Y).sj);Iui(U5(v.Y).CP,S,Y.wM,Y.j0,O,d,r)}; Gpc=function(v,O,Y,S){O={wM:[],j0:O};v=g.y(v);for(var d=v.next();!d.done;d=v.next())if((d=d.value)&&d.renderer!=null){var r=d.renderer;if(!Y.N.D().V("html5_enable_vod_lasr_with_notify_pacf")){var b=void 0,z=void 0,M=void 0,V=void 0,A=S;g.q((V=r.sandwichedLinearAdRenderer)==null?void 0:V.adVideoStart,c8)?(b=g.q((M=r.sandwichedLinearAdRenderer)==null?void 0:M.adVideoStart,c8),b=YV7(b,A),g.bi(r.sandwichedLinearAdRenderer.adVideoStart,c8,b)):g.q((z=r.linearAdSequenceRenderer)==null?void 0:z.adStart,c8)&& (M=g.q((b=r.linearAdSequenceRenderer)==null?void 0:b.adStart,c8),b=YV7(M,A),g.bi(r.linearAdSequenceRenderer.adStart,c8,b))}O.wM.push(d)}return O}; g.GN=function(v){if(typeof DOMParser!="undefined")return s7(new DOMParser,QSl(v),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.io=function(v){g.X.call(this);this.callback=v;this.Y=new yF(0,0,.4,0,.2,1,1,1);this.delay=new g.ip(this.next,window,this);g.w(this,this.delay)}; g.NWw=function(v){var O=v.D();return O.w2&&!O.G&&g.aP(O)?v.isEmbedsShortsMode()?(v=v.wW(),Math.min(v.width,v.height)>=315):!v.tE():!1}; g.me=function(v){g.K.call(this,{J:"div",W:"ytp-more-videos-view",T:{tabIndex:"-1"}});var O=this;this.api=v;this.U=!0;this.G=new g.Z6(this);this.Y=[];this.suggestionData=[];this.columns=this.containerWidth=this.X=this.B=this.scrollPosition=0;this.title=new g.K({J:"h2",W:"ytp-related-title",M3:"{{title}}"});this.previous=new g.K({J:"button",hK:["ytp-button","ytp-previous"],T:{"aria-label":"Show previous suggested videos"},K:[g.aF()]});this.L=new g.io(function(Y){O.suggestions.element.scrollLeft=-Y}); this.next=new g.K({J:"button",hK:["ytp-button","ytp-next"],T:{"aria-label":"Show more suggested videos"},K:[g.x9()]});g.w(this,this.G);this.C=v.D().B;g.w(this,this.title);this.title.C1(this.element);this.suggestions=new g.K({J:"div",W:"ytp-suggestions"});g.w(this,this.suggestions);this.suggestions.C1(this.element);g.w(this,this.previous);this.previous.C1(this.element);this.previous.listen("click",this.AR,this);g.w(this,this.L);vQ8(this);g.w(this,this.next);this.next.C1(this.element);this.next.listen("click", this.L5,this);this.G.S(this.api,"appresize",this.ze);this.G.S(this.api,"fullscreentoggled",this.ys);this.G.S(this.api,"videodatachange",this.onVideoDataChange);this.ze(this.api.j4().getPlayerSize());this.onVideoDataChange()}; vQ8=function(v){for(var O={QJ:0};O.QJ<16;O={QJ:O.QJ},++O.QJ){var Y=new g.K({J:"a",W:"ytp-suggestion-link",T:{href:"{{link}}",target:v.api.D().j,"aria-label":"{{aria_label}}"},K:[{J:"div",W:"ytp-suggestion-image"},{J:"div",W:"ytp-suggestion-overlay",T:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},K:[{J:"div",W:"ytp-suggestion-title",M3:"{{title}}"},{J:"div",W:"ytp-suggestion-author",M3:"{{author_and_views}}"},{J:"div",T:{"data-is-live":"{{is_live}}"},W:"ytp-suggestion-duration", M3:"{{duration}}"}]}]});g.w(v,Y);var S=Y.BW("ytp-suggestion-link");g.ym(S,"transitionDelay",O.QJ/20+"s");v.G.S(S,"click",function(d){return function(r){var b=d.QJ;if(v.U){var z=v.suggestionData[b],M=z.sessionData;v.C&&v.api.V("web_player_log_click_before_generating_ve_conversion_params")?(v.api.logClick(v.Y[b].element),b=z.qY(),z={},g.ah(v.api,z),b=g.Te(b,z),g.vC(b,v.api,r)):g.NG(r,v.api,v.C,M||void 0)&&v.api.Bu(z.videoId,M,z.playlistId)}else r.preventDefault(),document.activeElement.blur()}}(O)); Y.C1(v.suggestions.element);v.Y.push(Y);v.api.createServerVe(Y.element,Y)}}; OnC=function(v){if(v.api.D().V("web_player_log_click_before_generating_ve_conversion_params"))for(var O=Math.floor(-v.scrollPosition/(v.B+8)),Y=Math.min(O+v.columns,v.suggestionData.length)-1;O<=Y;O++)v.api.logVisibility(v.Y[O].element,!0)}; g.ta=function(v){var O=v.api.Z9()?32:16;O=v.X/2+O;v.next.element.style.bottom=O+"px";v.previous.element.style.bottom=O+"px";O=v.scrollPosition;var Y=v.containerWidth-v.suggestionData.length*(v.B+8);g.gr(v.element,"ytp-scroll-min",O>=0);g.gr(v.element,"ytp-scroll-max",O<=Y)}; SEJ=function(v){for(var O=v.suggestionData.length,Y=0;Y>>0)+"_",d=0;return O}); zc("Symbol.iterator",function(v){if(v)return v;v=Symbol("Symbol.iterator");for(var O="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),Y=0;Y0&&Y>0;)if(S[--Y]!=O[--d])return!1;return d<=0}}); zc("Array.prototype.find",function(v){return v?v:function(O,Y){return gQE(this,O,Y).hN}}); zc("Array.prototype.entries",function(v){return v?v:function(){return wF(this,function(O,Y){return[O,Y]})}}); zc("Array.prototype.keys",function(v){return v?v:function(){return wF(this,function(O){return O})}}); zc("String.prototype.startsWith",function(v){return v?v:function(O,Y){var S=ZJ(this,O,"startsWith");O+="";var d=S.length,r=O.length;Y=Math.max(0,Math.min(Y|0,S.length));for(var b=0;b=r}}); zc("Number.isFinite",function(v){return v?v:function(O){return typeof O!=="number"?!1:!isNaN(O)&&O!==Infinity&&O!==-Infinity}}); zc("String.prototype.repeat",function(v){return v?v:function(O){var Y=ZJ(this,null,"repeat");if(O<0||O>1342177279)throw new RangeError("Invalid count value");O|=0;for(var S="";O;)if(O&1&&(S+=Y),O>>>=1)Y+=Y;return S}}); zc("Object.entries",function(v){return v?v:function(O){var Y=[],S;for(S in O)M$(O,S)&&Y.push([S,O[S]]);return Y}}); zc("Array.from",function(v){return v?v:function(O,Y,S){Y=Y!=null?Y:function(z){return z}; var d=[],r=typeof Symbol!="undefined"&&Symbol.iterator&&O[Symbol.iterator];if(typeof r=="function"){O=r.call(O);for(var b=0;!(r=O.next()).done;)d.push(Y.call(S,r.value,b++))}else for(r=O.length,b=0;b>>16&65535)*d+S*(Y>>>16&65535)<<16>>>0)|0}}); zc("Math.trunc",function(v){return v?v:function(O){O=Number(O);if(isNaN(O)||O===Infinity||O===-Infinity||O===0)return O;var Y=Math.floor(Math.abs(O));return O<0?-Y:Y}}); zc("Math.clz32",function(v){return v?v:function(O){O=Number(O)>>>0;if(O===0)return 32;var Y=0;(O&4294901760)===0&&(O<<=16,Y+=16);(O&4278190080)===0&&(O<<=8,Y+=8);(O&4026531840)===0&&(O<<=4,Y+=4);(O&3221225472)===0&&(O<<=2,Y+=2);(O&2147483648)===0&&Y++;return Y}}); zc("Number.isNaN",function(v){return v?v:function(O){return typeof O==="number"&&isNaN(O)}}); zc("Array.prototype.values",function(v){return v?v:function(){return wF(this,function(O,Y){return Y})}}); zc("Array.prototype.fill",function(v){return v?v:function(O,Y,S){var d=this.length||0;Y<0&&(Y=Math.max(0,d+Y));if(S==null||S>d)S=d;S=Number(S);S<0&&(S=Math.max(0,d+S));for(Y=Number(Y||0);Y0&&Y?Y.repeat(Math.ceil(O/Y.length)).substring(0,O):"")+S}}); zc("Array.prototype.findIndex",function(v){return v?v:function(O,Y){return gQE(this,O,Y).ez}}); zc("Promise.prototype.finally",function(v){return v?v:function(O){return this.then(function(Y){return Promise.resolve(O()).then(function(){return Y})},function(Y){return Promise.resolve(O()).then(function(){throw Y; })})}}); zc("Math.sign",function(v){return v?v:function(O){O=Number(O);return O===0||isNaN(O)?O:O>0?1:-1}}); zc("WeakSet",function(v){function O(Y){this.Y=new WeakMap;if(Y){Y=g.y(Y);for(var S;!(S=Y.next()).done;)this.add(S.value)}} if(function(){if(!v||!Object.seal)return!1;try{var Y=Object.seal({}),S=Object.seal({}),d=new v([Y]);if(!d.has(Y)||d.has(S))return!1;d.delete(Y);d.add(S);return!d.has(Y)&&d.has(S)}catch(r){return!1}}())return v; O.prototype.add=function(Y){this.Y.set(Y,!0);return this}; O.prototype.has=function(Y){return this.Y.has(Y)}; O.prototype.delete=function(Y){return this.Y.delete(Y)}; return O}); zc("AggregateError",function(v){function O(Y,S){S=Error(S);"stack"in S&&(this.stack=S.stack);this.errors=Y;this.message=S.message} if(v)return v;g.C(O,Error);O.prototype.name="AggregateError";return O}); zc("Array.prototype.copyWithin",function(v){function O(Y){Y=Number(Y);return Y===Infinity||Y===-Infinity?Y:Y|0} return v?v:function(Y,S,d){var r=this.length;Y=O(Y);S=O(S);d=d===void 0?r:O(d);Y=Y<0?Math.max(r+Y,0):Math.min(Y,r);S=S<0?Math.max(r+S,0):Math.min(S,r);d=d<0?Math.max(r+d,0):Math.min(d,r);if(YS;)--d in this?this[--Y]=this[d]:delete this[--Y];return this}}); zc("Int8Array.prototype.copyWithin",q$);zc("Uint8Array.prototype.copyWithin",q$);zc("Uint8ClampedArray.prototype.copyWithin",q$);zc("Int16Array.prototype.copyWithin",q$);zc("Uint16Array.prototype.copyWithin",q$);zc("Int32Array.prototype.copyWithin",q$);zc("Uint32Array.prototype.copyWithin",q$);zc("Float32Array.prototype.copyWithin",q$);zc("Float64Array.prototype.copyWithin",q$);zc("Array.prototype.at",function(v){return v?v:nn}); zc("Int8Array.prototype.at",J3);zc("Uint8Array.prototype.at",J3);zc("Uint8ClampedArray.prototype.at",J3);zc("Int16Array.prototype.at",J3);zc("Uint16Array.prototype.at",J3);zc("Int32Array.prototype.at",J3);zc("Uint32Array.prototype.at",J3);zc("Float32Array.prototype.at",J3);zc("Float64Array.prototype.at",J3);zc("String.prototype.at",function(v){return v?v:nn}); zc("Array.prototype.findLastIndex",function(v){return v?v:function(O,Y){return M1c(this,O,Y).ez}}); zc("Int8Array.prototype.findLastIndex",Kn);zc("Uint8Array.prototype.findLastIndex",Kn);zc("Uint8ClampedArray.prototype.findLastIndex",Kn);zc("Int16Array.prototype.findLastIndex",Kn);zc("Uint16Array.prototype.findLastIndex",Kn);zc("Int32Array.prototype.findLastIndex",Kn);zc("Uint32Array.prototype.findLastIndex",Kn);zc("Float32Array.prototype.findLastIndex",Kn);zc("Float64Array.prototype.findLastIndex",Kn);zc("Number.parseInt",function(v){return v||parseInt});var G7,v0,V11;G7=G7||{};g.Pm=this||self;v0="closure_uid_"+(Math.random()*1E9>>>0);V11=0;g.o8(W0,Error);W0.prototype.name="CustomError";var RNc;var uwg,Ny,H4;uwg=Array.prototype.indexOf?function(v,O){return Array.prototype.indexOf.call(v,O,void 0)}:function(v,O){if(typeof v==="string")return typeof O!=="string"||O.length!=1?-1:v.indexOf(O,0); for(var Y=0;Y=0;Y--)if(Y in v&&v[Y]===O)return Y;return-1}; g.LC=Array.prototype.forEach?function(v,O,Y){Array.prototype.forEach.call(v,O,Y)}:function(v,O,Y){for(var S=v.length,d=typeof v==="string"?v.split(""):v,r=0;r=.3:this.Dk>=.5};var g3={pPx:0,yz0:1},lQw={NONE:0,DTg:1,bq4:2};var L73="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");YI.prototype.getValue=function(){return this.U}; g.C(SY,YI);SY.prototype.G=function(v){this.U===null&&g.iL(this.B,v)&&(this.U=v)}; g.C(d3,YI);d3.prototype.G=function(v){this.U===null&&typeof v==="number"&&(this.U=v)}; g.C(bh,YI);bh.prototype.G=function(v){this.U===null&&typeof v==="string"&&(this.U=v)};oT.prototype.disable=function(){this.U=!1}; oT.prototype.enable=function(){this.U=!0}; oT.prototype.isEnabled=function(){return this.U}; oT.prototype.reset=function(){this.Y={};this.U=!0;this.G={}};var vV=document,WL=window;var siS=m7(1,!0),aT=m7(610401301,!1);m7(899588437,!1);m7(725719775,!1);var gQJ=m7(513659523,!1),M1w=m7(568333945,!1),jYJ=m7(1331761403,!1);m7(651175828,!1);m7(722764542,!1);m7(748402145,!1);m7(1981196515,!1);m7(103340015,!1);m7(555019702,!1);m7(2147483644,!1);m7(2147483645,!1);m7(2147483646,siS);m7(2147483647,!0);var xI=!!g.il("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var kI=String.prototype.trim?function(v){return v.trim()}:function(v){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(v)[1]},bC$=/&/g,oYg=//g,WN1=/"/g,zNc=/'/g,s8F=/\x00/g,rYF=/[\x00&<>"']/;var pg,V1U=g.Pm.navigator;pg=V1U?V1U.userAgentData||null:null;var inE=globalThis.trustedTypes,Lg;Zc.prototype.toString=function(){return this.Y+""};IT.prototype.toString=function(){return this.Y}; var D$F=new IT("about:invalid#zClosurez");var can=Js("tel"),kNd=Js("sms"),t11=[Js("data"),Js("http"),Js("https"),Js("mailto"),Js("ftp"),new ng(function(v){return/^[^:]*([/?#]|$)/.test(v)})],HnF=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;ts.prototype.toString=function(){return this.Y+""};O7.prototype.toString=function(){return this.Y+""};ou.prototype.toString=function(){return this.Y};var WE={};g.A3v=String.prototype.repeat?function(v,O){return v.repeat(O)}:function(v,O){return Array(O+1).join(v)};yX[" "]=function(){};var af,PX,WAc,fJU,$$Y,kct,cD,uq,U$U;g.CH=hs();g.fO=qEl();g.i9=lh("Edge");g.mM=g.i9||g.fO;af=lh("Gecko")&&!($I(g.yh(),"WebKit")&&!lh("Edge"))&&!(lh("Trident")||lh("MSIE"))&&!lh("Edge");g.PE=$I(g.yh(),"WebKit")&&!lh("Edge");PX=Cd();WAc=$Nd();g.vp=fK$();fJU=cE();$$Y=lh("iPad");kct=lh("iPod");cD=ug();uq=$I(g.yh(),"KaiOS"); a:{var c3t="",uwN=function(){var v=g.yh();if(af)return/rv:([^\);]+)(\)|;)/.exec(v);if(g.i9)return/Edge\/([\d\.]+)/.exec(v);if(g.fO)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(v);if(g.PE)return/WebKit\/(\S+)/.exec(v);if(g.CH)return/(?:Version)[ \/]?(\S+)/.exec(v)}(); uwN&&(c3t=uwN?uwN[1]:"");if(g.fO){var Dy,ClK=g.Pm.document;Dy=ClK?ClK.documentMode:void 0;if(Dy!=null&&Dy>parseFloat(c3t)){U$U=String(Dy);break a}}U$U=c3t}var utQ=U$U,UNw={};var Db,Hf;g.Jt=RT();Db=cE()||lh("iPod");Hf=lh("iPad");g.yg=J33();g.En=EI();g.ch=Qh()&&!ug();var Qrw=!g.fO&&!Qh();g.u=g.lg.prototype;g.u.clone=function(){return new g.lg(this.x,this.y)}; g.u.equals=function(v){return v instanceof g.lg&&Fp(this,v)}; g.u.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.u.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.u.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.u.scale=function(v,O){this.x*=v;this.y*=typeof O==="number"?O:v;return this};g.u=g.hc.prototype;g.u.clone=function(){return new g.hc(this.width,this.height)}; g.u.aspectRatio=function(){return this.width/this.height}; g.u.isEmpty=function(){return!eR(this)}; g.u.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.u.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.u.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.u.scale=function(v,O){this.width*=v;this.height*=typeof O==="number"?O:v;return this};QX.prototype.toString=function(){return this.Y}; var E7={};new QX(E7,"");var aK1=/^[a-z][a-z\d-]*$/i,xNn="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),TSE="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),FNl=["action","formaction","href"];var eNn={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.u=BE.prototype;g.u.dR=function(v){return wn(this.Y,v)}; g.u.getElementsByTagName=function(v,O){return(O||this.Y).getElementsByTagName(String(v))}; g.u.BW=function(v){return g.Jc(v,this.Y)}; g.u.setProperties=Kd;g.u.createElement=function(v){return ig(this.Y,v)}; g.u.appendChild=g.HE;g.u.append=function(v,O){BSJ(ZC(v),v,arguments,1)}; g.u.canHaveChildren=function(v){if(v.nodeType!=1)return!1;switch(v.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.u.removeNode=g.Ov;g.u.getChildren=function(v){return v.children!=void 0?v.children:Array.prototype.filter.call(v.childNodes,function(O){return O.nodeType==1})}; g.u.contains=g.YW;bS.prototype.now=function(){return 0}; bS.prototype.U=function(){return 0}; bS.prototype.G=function(){return 0}; bS.prototype.Y=function(){return 0};g.C(j9,bS);j9.prototype.now=function(){return of()&&WL.performance.now?WL.performance.now():bS.prototype.now.call(this)}; j9.prototype.U=function(){return of()&&WL.performance.memory?WL.performance.memory.totalJSHeapSize||0:bS.prototype.U.call(this)}; j9.prototype.G=function(){return of()&&WL.performance.memory?WL.performance.memory.usedJSHeapSize||0:bS.prototype.G.call(this)}; j9.prototype.Y=function(){return of()&&WL.performance.memory?WL.performance.memory.jsHeapSizeLimit||0:bS.prototype.Y.call(this)};var E1d=function(){if(!g.Pm.addEventListener||!Object.defineProperty)return!1;var v=!1,O=Object.defineProperty({},"passive",{get:function(){v=!0}}); try{var Y=function(){}; g.Pm.addEventListener("test",Y,O);g.Pm.removeEventListener("test",Y,O)}catch(S){}return v}();var qHJ=IKQ("AnimationEnd"),dp=IKQ("TransitionEnd");g.u=f4.prototype;g.u.getHeight=function(){return this.bottom-this.top}; g.u.clone=function(){return new f4(this.top,this.right,this.bottom,this.left)}; g.u.contains=function(v){return this&&v?v instanceof f4?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.u.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.u.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.u.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.u.scale=function(v,O){O=typeof O==="number"?O:v;this.left*=v;this.right*=v;this.top*=O;this.bottom*=O;return this};g.u=g.cL.prototype;g.u.clone=function(){return new g.cL(this.left,this.top,this.width,this.height)}; g.u.contains=function(v){return v instanceof g.lg?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.u.getSize=function(){return new g.hc(this.width,this.height)}; g.u.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.u.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.u.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.u.scale=function(v,O){O=typeof O==="number"?O:v;this.left*=v;this.width*=v;this.top*=O;this.height*=O;return this};var nYi={};var mNF=My(function(){var v=!1;try{var O=Object.defineProperty({},"passive",{get:function(){v=!0}}); g.Pm.addEventListener("test",null,O)}catch(Y){}return v});tUw.prototype.isVisible=function(){return If(vV)===1};var KyF=qy(function(v){return typeof v==="number"}),Jsd=qy(function(v){return typeof v==="string"}),Phd=qy(function(v){return typeof v==="boolean"}),sR=qy(function(v){return v!=null&&typeof v==="object"&&typeof v.then==="function"}),fHc=qy(function(v){return typeof v==="function"}),y3S=qy(function(v){return!!v&&(typeof v==="object"||typeof v==="function")});var HCQ={Tfd:"allow-forms",Pb4:"allow-modals",yEg:"allow-orientation-lock",sSg:"allow-pointer-lock",I9g:"allow-popups",jSW:"allow-popups-to-escape-sandbox",zGW:"allow-presentation",nWg:"allow-same-origin",YKx:"allow-scripts",bSs:"allow-top-navigation",OSg:"allow-top-navigation-by-user-activation"},YIJ=My(function(){return NSg()});var bg$=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");GO.prototype.Sp=function(v,O,Y){v=v+"//"+O+Y;var S=z_n(this)-Y.length;if(S<0)return"";this.Y.sort(function(V,A){return V-A}); Y=null;O="";for(var d=0;d=M.length){S-=M.length;v+=M;O=this.G;break}Y=Y==null?r:Y}}S="";Y!=null&&(S=""+O+"trn="+Y);return v+S};Ou.prototype.setInterval=function(v,O){return WL.setInterval(v,O)}; Ou.prototype.clearInterval=function(v){WL.clearInterval(v)}; Ou.prototype.setTimeout=function(v,O){return WL.setTimeout(v,O)}; Ou.prototype.clearTimeout=function(v){WL.clearTimeout(v)};var a_=void 0,yI,K43=typeof TextDecoder!=="undefined",uU$,csF=typeof String.prototype.isWellFormed==="function",UvQ=typeof TextEncoder!=="undefined";var p5E={},WU=null,T3w=af||g.PE||typeof g.Pm.btoa=="function";var Zgg=typeof Uint8Array!=="undefined",e_E=!g.fO&&typeof btoa==="function",EIE=/[-_.]/g,h_l={"-":"+",_:"/",".":"="},MW={};zQ.prototype.isEmpty=function(){return this.Y==null}; zQ.prototype.sizeBytes=function(){var v=Al(this);return v?v.length:0}; var B3l;var X5w=void 0;var cU=typeof Symbol==="function"&&typeof Symbol()==="symbol",aJJ=Uu("jas",void 0,!0),nr=Uu(void 0,"1oa"),j0=Uu(void 0,Symbol()),x$0=Uu(void 0,"0ub"),kKl=Uu(void 0,"0ubs"),Avd=Uu(void 0,"0ubsb"),ycQ=Uu(void 0,"0actk"),rD=Uu("m_m","F40",!0),fCE=Uu(void 0,"vps"),pmt=Uu();Math.max.apply(Math,g.F(Object.values({bTg:1,Yy3:2,nes:4,y38:8,xk1:16,upg:32,UYO:64,dTc:128,z4g:256,mkO:512,YQx:1024,mTd:2048,xEg:4096})));var Ic3={w_:{value:0,configurable:!0,writable:!0,enumerable:!1}},w57=Object.defineProperties,uV=cU?aJJ:"w_",l3,TFS=[];yp(TFS,7);l3=Object.freeze(TFS);var b3={},xK={},Rew=Object.freeze({}),lV={};var hl=typeof g.Pm.BigInt==="function"&&typeof g.Pm.BigInt(0)==="bigint";var AQ=qy(function(v){return hl?v>=lJY&&v<=F7N:v[0]==="-"?Ggg(v,hgN):Ggg(v,RgU)}),hgN=Number.MIN_SAFE_INTEGER.toString(),lJY=hl?BigInt(Number.MIN_SAFE_INTEGER):void 0,RgU=Number.MAX_SAFE_INTEGER.toString(),F7N=hl?BigInt(Number.MAX_SAFE_INTEGER):void 0;var wEg=typeof Uint8Array.prototype.slice==="function",el=0,Eu=0,fQw;var tl=typeof BigInt==="function"?BigInt.asIntN:void 0,ju7=typeof BigInt==="function"?BigInt.asUintN:void 0,vb=Number.isSafeInteger,Jl=Number.isFinite,Oc=Math.trunc,Hgm=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var $nc={};var egK={aqg:!0};var gD;var Unw,ccm;var Er3=Rv(0),Ok={};g.u=ZdF.prototype;g.u.init=function(v,O,Y,S){var d=S===void 0?{}:S;S=d.eD===void 0?!1:d.eD;d=d.MC===void 0?!1:d.MC;this.eD=S;this.MC=d;v&&(v=Wg(v,this.MC),this.U=v.buffer,this.Z=v.Y,this.B=O||0,this.G=Y!==void 0?this.B+Y:this.U.length,this.Y=this.B)}; g.u.free=function(){this.clear();$v.length<100&&$v.push(this)}; g.u.clear=function(){this.U=null;this.Z=!1;this.Y=this.G=this.B=0;this.eD=!1}; g.u.reset=function(){this.Y=this.B}; g.u.cq=function(){var v=this.C;v||(v=this.U,v=this.C=new DataView(v.buffer,v.byteOffset,v.byteLength));return v}; var $v=[];kv.prototype.free=function(){this.Y.clear();this.U=this.B=-1;Uk.length<100&&Uk.push(this)}; kv.prototype.reset=function(){this.Y.reset();this.G=this.Y.Y;this.U=this.B=-1}; var Uk=[];px.prototype.toJSON=function(){return $Z(this)}; px.prototype.Gn=function(v){return JSON.stringify($Z(this,v))}; px.prototype.clone=function(){var v=this.Un;return new this.constructor(cb(v,v[uV]|0,!1))}; px.prototype[rD]=b3;px.prototype.toString=function(){return this.Un.toString()};var idn,tRc;F9.prototype.length=function(){return this.Y.length}; F9.prototype.end=function(){var v=this.Y;this.Y=[];return v};var Zx=Bg(),EQN=Bg(),QiY=Bg(),L7Y=Bg(),BFC=Bg(),ZnN=Bg(),XmC=Bg(),wmS=Bg();var rvw=wy(function(v,O,Y,S,d){if(v.U!==2)return!1;uM(v,JQ(O,S,Y),d);return!0},dy$),b4n=wy(function(v,O,Y,S,d){if(v.U!==2)return!1; uM(v,JQ(O,S,Y),d);return!0},dy$),NE=Symbol(),Kx=Symbol(),Dx=Symbol(),gWn=Symbol(),WOg=Symbol(),I_,qE;var IJU=YU(function(v,O,Y){if(v.U!==1)return!1;r4(O,Y,AR(v.Y));return!0},bT,XmC),qEL=YU(function(v,O,Y){if(v.U!==1)return!1; v=AR(v.Y);r4(O,Y,v===0?void 0:v);return!0},bT,XmC),nQJ=YU(function(v,O,Y,S){if(v.U!==1)return!1; Ir(O,Y,S,AR(v.Y));return!0},bT,XmC),J3Y=YU(function(v,O,Y){if(v.U!==0)return!1; r4(O,Y,sk(v.Y));return!0},op,BFC),K7N=YU(function(v,O,Y){if(v.U!==0)return!1; v=sk(v.Y);r4(O,Y,v===0?void 0:v);return!0},op,BFC),Plw=YU(function(v,O,Y,S){if(v.U!==0)return!1; Ir(O,Y,S,sk(v.Y));return!0},op,BFC),Gc8=YU(function(v,O,Y){if(v.U!==0)return!1; r4(O,Y,gy(v.Y));return!0},j2,L7Y),inJ=YU(function(v,O,Y){if(v.U!==0)return!1; v=gy(v.Y);r4(O,Y,v===0?void 0:v);return!0},j2,L7Y),m$N=YU(function(v,O,Y,S){if(v.U!==0)return!1; Ir(O,Y,S,gy(v.Y));return!0},j2,L7Y),t1U=YU(function(v,O,Y){if(v.U!==1)return!1; r4(O,Y,VI(v.Y));return!0},function(v,O,Y){Yvn(v,Y,W41(O))},ZnN),D$S=d4(function(v,O,Y){if(v.U!==1&&v.U!==2)return!1; O=Lr(O,O[uV]|0,Y);if(v.U==2)for(Y=gy(v.Y)>>>0,Y=v.Y.Y+Y;v.Y.Y>>0);return!0},function(v,O,Y){O=iV(O); O!=null&&O!=null&&(QI(v,Y,0),R_(v.Y,O))},Bg()),dNt=YU(function(v,O,Y){if(v.U!==0)return!1; r4(O,Y,gy(v.Y));return!0},function(v,O,Y){O=GQ(O); O!=null&&(O=parseInt(O,10),QI(v,Y,0),Hdl(v.Y,O))},Bg());uRF.prototype.register=function(){yX(this)};g.C(sz,px);sz.prototype.U=CSd([0,qEL,K7N,-2,inJ]);var FOn={m6g:1,Mq:2,op4:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};Run.prototype.Fv=function(v){if(typeof v==="string"&&v.length!=0){var O=this.h9;if(O.U){v=v.split("&");for(var Y=v.length-1;Y>=0;Y--){var S=v[Y].split("="),d=decodeURIComponent(S[0]);S.length>1?(S=decodeURIComponent(S[1]),S=/^[0-9]+$/g.exec(S)?parseInt(S,10):S):S=1;(d=O.Y[d])&&d.G(S)}}}};var St=null;var $U=g.Pm.performance,rYS=!!($U&&$U.mark&&$U.measure&&$U.clearMarks),Ax=My(function(){var v;if(v=rYS){var O=O===void 0?window:O;if(St===null){St="";try{v="";try{v=O.top.location.hash}catch(S){v=O.location.hash}if(v){var Y=v.match(/\bdeid=([\d,]+)/);St=Y?Y[1]:""}}catch(S){}}O=St;v=!!O.indexOf&&O.indexOf("1337")>=0}return v}); fV.prototype.disable=function(){this.Y=!1;this.events!==this.U.google_js_reporting_queue&&(Ax()&&g.LC(this.events,Z4l),this.events.length=0)}; fV.prototype.start=function(v,O){if(!this.Y)return null;var Y=LO1()||QfJ();v=new BHw(v,O,Y);O="goog_"+v.label+"_"+v.uniqueId+"_start";$U&&Ax()&&$U.mark(O);return v}; fV.prototype.end=function(v){if(this.Y&&typeof v.value==="number"){var O=LO1()||QfJ();v.duration=O-v.value;O="goog_"+v.label+"_"+v.uniqueId+"_end";$U&&Ax()&&$U.mark(O);!this.Y||this.events.length>2048||this.events.push(v)}};var XL7=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),PSQ=/#|$/,GOc=/[?&]($|#)/;myg.prototype.yb=function(v,O,Y,S,d){d=d||this.Bp;try{var r=new GO;r.Y.push(1);r.U[1]=iS("context",v);O.error&&O.meta&&O.id||(O=new B4(ZA(O)));if(O.msg){var b=O.msg.substring(0,512);r.Y.push(2);r.U[2]=iS("msg",b)}var z=O.meta||{};if(this.LX)try{this.LX(z)}catch(U){}if(S)try{S(z)}catch(U){}S=[z];r.Y.push(3);r.U[3]=S;var M=jT7();if(M.U){var V=M.U.url||"";r.Y.push(4);r.U[4]=iS("top",V)}var A={url:M.Y.url||""};if(M.Y.url){var f=g.Uz(M.Y.url);var k=kU(f[1],null,f[3],f[4])}else k="";V=[A,{url:k}];r.Y.push(5); r.U[5]=V;euQ(this.Y,d,r,Y)}catch(U){try{euQ(this.Y,d,{context:"ecmserr",rctx:v,msg:ZA(U),url:M&&M.Y.url},Y)}catch(c){}}return this.X3}; g.C(B4,EWm);var Qk,LV,Ez=new fV;Qk=new function(){var v="https:";WL&&WL.location&&WL.location.protocol==="http:"&&(v="http:");this.U=v;this.Y=.01}; LV=new myg;WL&&WL.document&&(WL.document.readyState=="complete"?Dy3():Ez.Y&&wH(WL,"load",function(){Dy3()}));var vKc=Date.now(),KV=-1,nV=-1,Wm7,P4=-1,Jx=!1;Ge.prototype.equals=function(v,O){return!!v&&(!(O===void 0?0:O)||this.volume==v.volume)&&this.G==v.G&&kW(this.Y,v.Y)&&!0};iT.prototype.dR=function(){return this.L}; iT.prototype.equals=function(v,O){return this.B.equals(v.B,O===void 0?!1:O)&&this.L==v.L&&kW(this.G,v.G)&&kW(this.C,v.C)&&this.Y==v.Y&&this.Z==v.Z&&this.U==v.U&&this.X==v.X};var bCN={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},HV={Yv:"start",g1:"firstquartile",uZ:"midpoint",bA:"thirdquartile",COMPLETE:"complete",ERROR:"error",iZ:"metric",PAUSE:"pause",sb:"resume",I7:"skip",Gl:"viewable_impression",fn:"mute",t4:"unmute",VL:"fullscreen",hR:"exitfullscreen",QL:"bufferstart",H8:"bufferfinish",F7:"fully_viewable_audible_half_duration_impression",R7:"measurable_impression",bH:"abandon",Zb:"engagedview",v8:"impression",JR:"creativeview",wC:"loaded", Zys:"progress",CLOSE:"close",OW1:"collapse",YY8:"overlay_resize",byW:"overlay_unmeasurable_impression",OyW:"overlay_unviewable_impression",U6d:"overlay_viewable_immediate_impression",tis:"overlay_viewable_end_of_session_impression",NS:"custom_metric_viewable",G9:"audio_audible",p5:"audio_measurable",MS:"audio_impression"},cxg="start firstquartile midpoint thirdquartile resume loaded".split(" "),ua1=["start","firstquartile","midpoint","thirdquartile"],s_Q=["abandon"],Uf={UNKNOWN:-1,Yv:0,g1:1,uZ:2, bA:3,COMPLETE:4,iZ:5,PAUSE:6,sb:7,I7:8,Gl:9,fn:10,t4:11,VL:12,hR:13,F7:14,R7:15,bH:16,Zb:17,v8:18,JR:19,wC:20,NS:21,QL:22,H8:23,MS:27,p5:28,G9:29};var Yuw={wBc:"addEventListener",t6d:"getMaxSize",UTg:"getScreenSize",GFd:"getState",M64:"getVersion",WTO:"removeEventListener",OT0:"isViewable"};oZw.prototype.update=function(v){v&&v.document&&(this.L=mZ(!1,v,this.isMobileDevice),this.Y=mZ(!0,v,this.isMobileDevice),WDi(this,v),jrQ(this,v))};Y1.prototype.cancel=function(){YK().clearTimeout(this.Y);this.Y=null}; Y1.prototype.schedule=function(){var v=this,O=YK(),Y=MV().Y.Y;this.Y=O.setTimeout(g4(Y,w4(143,function(){v.U++;v.G.sample()})),Oe$())};g.u=S4.prototype;g.u.pp=function(){return!1}; g.u.initialize=function(){return this.isInitialized=!0}; g.u.KC=function(){return this.Y.N3}; g.u.NQ=function(){return this.Y.tK}; g.u.jZ=function(v,O){if(!this.tK||(O===void 0?0:O))this.tK=!0,this.N3=v,this.X=0,this.Y!=this||rv(this)}; g.u.getName=function(){return this.Y.AK}; g.u.aY=function(){return this.Y.lR()}; g.u.lR=function(){return{}}; g.u.jB=function(){return this.Y.X}; g.u.oA=function(){var v=NV();v.Y=mZ(!0,this.G,v.isMobileDevice)}; g.u.Da=function(){jrQ(NV(),this.G)}; g.u.bI=function(){return this.B.Y}; g.u.sample=function(){}; g.u.isActive=function(){return this.Y.C}; g.u.tP=function(v){var O=this.Y;this.Y=v.jB()>=this.X?v:this;O!==this.Y?(this.C=this.Y.C,rv(this)):this.C!==this.Y.C&&(this.C=this.Y.C,rv(this))}; g.u.O9=function(v){if(v.U===this.Y){var O=!this.B.equals(v,this.j);this.B=v;O&&gZF(this)}}; g.u.Yi=function(){return this.j}; g.u.dispose=function(){this.JK=!0}; g.u.vW=function(){return this.JK};g.u=bH.prototype;g.u.observe=function(){return!0}; g.u.unobserve=function(){}; g.u.VI=function(v){this.Z=v}; g.u.dispose=function(){if(!this.vW()){var v=this.U;g.$Y(v.Z,this);v.j&&this.Yi()&&srQ(v);this.unobserve();this.HW=!0}}; g.u.vW=function(){return this.HW}; g.u.aY=function(){return this.U.aY()}; g.u.jB=function(){return this.U.jB()}; g.u.KC=function(){return this.U.KC()}; g.u.NQ=function(){return this.U.NQ()}; g.u.tP=function(){}; g.u.O9=function(){this.VN()}; g.u.Yi=function(){return this.JK};g.u=od.prototype;g.u.jB=function(){return this.Y.jB()}; g.u.KC=function(){return this.Y.KC()}; g.u.NQ=function(){return this.Y.NQ()}; g.u.create=function(v,O,Y){var S=null;this.Y&&(S=this.ra(v,O,Y),dv(this.Y,S));return S}; g.u.wH=function(){return this.c6()}; g.u.c6=function(){return!1}; g.u.init=function(v){return this.Y.initialize()?(dv(this.Y,this),this.B=v,!0):!1}; g.u.tP=function(v){v.jB()==0&&this.B(v.KC(),this)}; g.u.O9=function(){}; g.u.Yi=function(){return!1}; g.u.dispose=function(){this.Z=!0}; g.u.vW=function(){return this.Z}; g.u.aY=function(){return{}};j4.prototype.add=function(v,O,Y){++this.G;v=new V01(v,O,Y);this.Y.push(new V01(v.U,v.Y,v.G+this.G/4096));this.U=!0;return this};U3n.prototype.toString=function(){var v="//pagead2.googlesyndication.com//pagead/gen_204",O=zL(this.Y);O.length>0&&(v+="?"+O);return v};g.X.prototype.pM=!1;g.X.prototype.vW=function(){return this.pM}; g.X.prototype.dispose=function(){this.pM||(this.pM=!0,this.cW())}; g.X.prototype[Symbol.dispose]=function(){this.dispose()}; g.X.prototype.addOnDisposeCallback=function(v,O){this.pM?O!==void 0?v.call(O):v():(this.aJ||(this.aJ=[]),O&&(v=v.bind(O)),this.aJ.push(v))}; g.X.prototype.cW=function(){if(this.aJ)for(;this.aJ.length;)this.aJ.shift()()};MR.prototype.update=function(v,O,Y){v&&(this.Y+=O,this.U+=O,this.B+=O,this.G=Math.max(this.G,this.B));if(Y===void 0?!v:Y)this.B=0};var asm=[1,.75,.5,.3,0];V2.prototype.update=function(v,O,Y,S,d,r){r=r===void 0?!0:r;O=d?Math.min(v,O):O;for(d=0;d0&&O>=b;b=!(v>0&&v>=b)||Y;this.Y[d].update(r&&z,S,!r||b)}};cV.prototype.update=function(v,O,Y,S){this.L=this.L!=-1?Math.min(this.L,O.Dk):O.Dk;this.Ug=Math.max(this.Ug,O.Dk);this.HW=this.HW!=-1?Math.min(this.HW,O.GY):O.GY;this.N3=Math.max(this.N3,O.GY);this.n1.update(O.GY,Y.GY,O.Y,v,S);this.g8+=v;O.Dk===0&&(this.AK+=v);this.U.update(O.Dk,Y.Dk,O.Y,v,S);Y=S||Y.b2!=O.b2?Y.isVisible()&&O.isVisible():Y.isVisible();O=!O.isVisible()||O.Y;this.f1.update(Y,v,O)}; cV.prototype.B1=function(){return this.f1.G>=this.yx};if(vV&&vV.URL){var oYN=vV.URL,j8Y;if(j8Y=!!oYN){var WNU;a:{if(oYN){var zNw=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var ds=zNw.exec(decodeURIComponent(oYN));if(ds){WNU=ds[1]&&ds[1].length>1?ds[1].substring(1):"true";break a}}catch(v){}}WNU=""}j8Y=WNU.length>0}LV.X3=!j8Y};var s8S=new f4(0,0,0,0);var e3F=new f4(0,0,0,0);g.C(x1,g.X);g.u=x1.prototype; g.u.cW=function(){if(this.h2.Y){if(this.Vz.UW){var v=this.h2.Y;typeof v.removeEventListener==="function"&&v.removeEventListener("mouseover",this.Vz.UW,BL());this.Vz.UW=null}this.Vz.tG&&(v=this.h2.Y,typeof v.removeEventListener==="function"&&v.removeEventListener("mouseout",this.Vz.tG,BL()),this.Vz.tG=null)}this.xx&&this.xx.dispose();this.x4&&this.x4.dispose();delete this.wQ;delete this.sF;delete this.La;delete this.h2.kO;delete this.h2.Y;delete this.Vz;delete this.xx;delete this.x4;delete this.h9; g.X.prototype.cW.call(this)}; g.u.EP=function(){return this.x4?this.x4.Y:this.position}; g.u.Fv=function(v){MV().Fv(v)}; g.u.Yi=function(){return!1}; g.u.L7=function(){return new cV}; g.u.XM=function(){return this.wQ}; g.u.x9=function(v){return BDd(this,v,1E4)}; g.u.q3=function(v,O,Y,S,d,r,b){this.ek||(this.kV&&(v=this.wV(v,Y,d,b),S=S&&this.CS.Dk>=(this.b2()?.3:.5),this.Qm(r,v,S),this.Dn=O,v.Dk>0&&-1===this.jQ&&(this.jQ=O),this.tJ==-1&&this.B1()&&(this.tJ=O),this.EF==-2&&(this.EF=y2(this.EP())?v.Dk:-1),this.CS=v),this.sF(this))}; g.u.Qm=function(v,O,Y){this.XM().update(v,O,this.CS,Y)}; g.u.rG=function(){return new ZK}; g.u.wV=function(v,O,Y,S){Y=this.rG();Y.Y=O;O=YK().U;O=If(vV)===0?-1:O.isVisible()?0:1;Y.U=O;Y.Dk=this.cX(v);Y.b2=this.b2();Y.GY=S;return Y}; g.u.cX=function(v){return this.opacity===0&&zg(this.h9,"opac")===1?0:v}; g.u.b2=function(){return!1}; g.u.KY=function(){return this.EH||this.yG}; g.u.ws=function(){qV()}; g.u.Il=function(){qV()}; g.u.Zn=function(){return 0}; g.u.B1=function(){return this.wQ.B1()}; g.u.UB=function(){var v=this.kV;v=(this.hasCompleted||this.vW())&&!v;var O=MV().U!==2||this.nNg;return this.ek||O&&v?2:this.B1()?4:3}; g.u.HL=function(){return 0};g.lH.prototype.next=function(){return g.rs}; g.rs={done:!0,value:void 0};g.lH.prototype.g7=function(){return this};g.C(nZw,ZK);var bv=KDJ([void 0,1,2,3,4,8,16]),oY=KDJ([void 0,4,8,16]),gY0={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:e4("p0",oY),p1:e4("p1",oY),p2:e4("p2",oY),p3:e4("p3",oY),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Rd("mtos1",[0,2,4],!1,oY),mtos2:Rd("mtos2",[0,2,4],!1,oY),mtos3:Rd("mtos3",[0,2,4],!1,oY),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:e4("a0",oY),a1:e4("a1",oY),a2:e4("a2",oY),a3:e4("a3",oY),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:e4("c0",oY),c1:e4("c1",oY),c2:e4("c2",oY),c3:e4("c3",oY),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:e4("qmtos",bv),qnc:e4("qnc",bv),qmv:e4("qmv",bv),qnv:e4("qnv",bv), 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:e4("ss0",oY),ss1:e4("ss1",oY),ss2:e4("ss2",oY),ss3:e4("ss3",oY),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"},MUN=Object.assign({},gY0,{avid:zO("audio"),avas:"avas",vs:"vs"}),VUN={atos:"atos",avt:Rd("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(v,O){return function(Y){return Y[v]===void 0&&O!==void 0?O:Y[v]}}("ss",0), t:"t"};BV.prototype.getValue=function(){return this.U}; BV.prototype.update=function(v,O){v>=32||(this.Y&1<=.5;DA(O.volume)&&(this.B=this.B!=-1?Math.min(this.B,O.volume):O.volume,this.C=Math.max(this.C,O.volume));r&&(this.JK+=v,this.j+=d?v:0);this.Y.update(O.Dk,Y.Dk,O.Y,v,S,d);this.G.update(!0,v);this.Z.update(d,v);this.tK.update(Y.fullscreen,v);this.On.update(d&&!r,v);v=Math.floor(O.mediaTime/1E3);this.FO.update(v,O.isVisible());this.xg.update(v,O.Dk>=1);this.Eg.update(v, hn(O))}};D3J.prototype.U=function(v){this.G||(this.Y(v)?(v=jp3(this.j,this.B,v),this.Z|=v,v=v==0):v=!1,this.G=v)};g.C(wv,D3J);wv.prototype.Y=function(){return!0}; wv.prototype.C=function(){return!1}; wv.prototype.getId=function(){var v=this,O=mN(HV,function(Y){return Y==v.B}); return Uf[O].toString()}; wv.prototype.toString=function(){var v="";this.C()&&(v+="c");this.G&&(v+="s");this.Z>0&&(v+=":"+this.Z);return this.getId()+v};g.C(Id,wv);Id.prototype.U=function(v,O){O=O===void 0?null:O;O!=null&&this.L.push(O);wv.prototype.U.call(this,v)};g.C(qR,Hrd);qR.prototype.U=function(){return null}; qR.prototype.G=function(){return[]};g.C(Jn,bH);g.u=Jn.prototype;g.u.uX=function(){if(this.element){var v=this.element,O=this.U.Y.G;try{try{var Y=beF(v.getBoundingClientRect())}catch(V){Y=new f4(0,0,0,0)}var S=Y.right-Y.left,d=Y.bottom-Y.top,r=PLF(v,O),b=r.x,z=r.y;var M=new f4(Math.round(z),Math.round(b+S),Math.round(z+d),Math.round(b))}catch(V){M=s8S.clone()}this.G=M;this.Y=M0J(this,this.G)}}; g.u.ZY=function(){this.C=this.U.B.Y}; g.u.IM=function(v){var O=zg(this.h9,"od")==1;return R3c(v,this.C,this.element,O)}; g.u.gw=function(){this.timestamp=qV()}; g.u.VN=function(){this.gw();this.uX();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var v=this.element;var O=new g.hc(v.videoWidth,v.videoHeight);v=this.Y;var Y=$W(v),S=v.getHeight(),d=O.width;O=O.height;d<=0||O<=0||Y<=0||S<=0||(d/=O,O=Y/S,v=v.clone(),d>O?(Y/=d,S=(S-Y)/2,S>0&&(S=v.top+S,v.top=Math.round(S),v.bottom=Math.round(S+Y))):(S*=d,Y=Math.round((Y-S)/2),Y>0&&(Y=v.left+Y,v.left=Math.round(Y),v.right=Math.round(Y+S))));this.Y=v}this.ZY(); v=this.Y;Y=this.C;v=v.left<=Y.right&&Y.left<=v.right&&v.top<=Y.bottom&&Y.top<=v.bottom?new f4(Math.max(v.top,Y.top),Math.min(v.right,Y.right),Math.min(v.bottom,Y.bottom),Math.max(v.left,Y.left)):new f4(0,0,0,0);Y=v.top>=v.bottom||v.left>=v.right?new f4(0,0,0,0):v;v=this.U.B;O=d=S=0;if((this.Y.bottom-this.Y.top)*(this.Y.right-this.Y.left)>0)if(this.IM(Y))Y=new f4(0,0,0,0);else{S=NV().B;O=new f4(0,S.height,S.width,0);var r;S=ad(Y,(r=this.Z)!=null?r:this.Y);d=ad(Y,NV().Y);O=ad(Y,O)}r=Y.top>=Y.bottom|| Y.left>=Y.right?new f4(0,0,0,0):Uv(Y,-this.Y.left,-this.Y.top);OM()||(d=S=0);this.j=new iT(v,this.element,this.Y,r,S,d,this.timestamp,O)}; g.u.getName=function(){return this.U.getName()};var AYL=new f4(0,0,0,0);g.C(K9,Jn);g.u=K9.prototype;g.u.observe=function(){this.B();return!0}; g.u.O9=function(){Jn.prototype.VN.call(this)}; g.u.gw=function(){}; g.u.uX=function(){}; g.u.VN=function(){this.B();Jn.prototype.VN.call(this)}; g.u.tP=function(v){v=v.isActive();v!==this.X&&(v?this.B():(NV().Y=new f4(0,0,0,0),this.Y=new f4(0,0,0,0),this.C=new f4(0,0,0,0),this.timestamp=-1));this.X=v};var jt={},j_1=(jt.firstquartile=0,jt.midpoint=1,jt.thirdquartile=2,jt.complete=3,jt);g.C(GL,x1);g.u=GL.prototype;g.u.Yi=function(){return!0}; g.u.mj=function(){return this.Kq==2}; g.u.x9=function(v){return BDd(this,v,Math.max(1E4,this.G/3))}; g.u.q3=function(v,O,Y,S,d,r,b){var z=this,M=this.L(this)||{};g.OI(M,d);this.G=M.duration||this.G;this.j=M.isVpaid||this.j;this.AK=M.isYouTube||this.AK;YK();this.n1=!1;d=vv3(this,O);ND7(this)===1&&(r=d);x1.prototype.q3.call(this,v,O,Y,S,M,r,b);this.Jq&&this.Jq.G&&g.LC(this.C,function(V){V.U(z)})}; g.u.Qm=function(v,O,Y){x1.prototype.Qm.call(this,v,O,Y);tn(this).update(v,O,this.CS,Y);this.yx=hn(this.CS)&&hn(O);this.N3==-1&&this.xg&&(this.N3=this.XM().G.Y);this.Tm.G=0;v=this.B1();O.isVisible()&&L9(this.Tm,"vs");v&&L9(this.Tm,"vw");DA(O.volume)&&L9(this.Tm,"am");hn(O)?L9(this.Tm,"a"):L9(this.Tm,"mut");this.JP&&L9(this.Tm,"f");O.U!=-1&&(L9(this.Tm,"bm"),O.U==1&&(L9(this.Tm,"b"),hn(O)&&L9(this.Tm,"umutb")));hn(O)&&O.isVisible()&&L9(this.Tm,"avs");this.yx&&v&&L9(this.Tm,"avw");O.Dk>0&&L9(this.Tm, "pv");DI(this,this.XM().G.Y,!0)&&L9(this.Tm,"gdr");k1(this.XM().U,1)>=2E3&&L9(this.Tm,"pmx");this.n1&&L9(this.Tm,"tvoff")}; g.u.L7=function(){return new ZI}; g.u.XM=function(){return this.wQ}; g.u.rG=function(){return new nZw}; g.u.wV=function(v,O,Y,S){v=x1.prototype.wV.call(this,v,O,Y,S===void 0?-1:S);v.fullscreen=this.JP;v.paused=this.mj();v.volume=Y.volume;DA(v.volume)||(this.Mj++,O=this.CS,DA(O.volume)&&(v.volume=O.volume));Y=Y.currentTime;v.mediaTime=Y!==void 0&&Y>=0?Y:-1;return v}; g.u.cX=function(v){return NV(),this.JP?1:x1.prototype.cX.call(this,v)}; g.u.Zn=function(){return 1}; g.u.getDuration=function(){return this.G}; g.u.UB=function(){return this.ek?2:Yk7(this)?5:this.B1()?4:3}; g.u.HL=function(){return this.On?this.XM().Z.G>=2E3?4:3:2}; g.u.VI=function(v){this.x4&&this.x4.VI(v)};var fKN=g.rS();UEE.prototype.reset=function(){this.Y=[];this.U=[]}; var Sg=vU(UEE);g.C(bN,od);g.u=bN.prototype;g.u.getName=function(){return(this.U?this.U:this.Y).getName()}; g.u.aY=function(){return(this.U?this.U:this.Y).aY()}; g.u.jB=function(){return(this.U?this.U:this.Y).jB()}; g.u.init=function(v){var O=!1;(0,g.LC)(this.G,function(Y){Y.initialize()&&(O=!0)}); O&&(this.B=v,dv(this.Y,this));return O}; g.u.dispose=function(){(0,g.LC)(this.G,function(v){v.dispose()}); od.prototype.dispose.call(this)}; g.u.wH=function(){return H4(this.G,function(v){return v.pp()})}; g.u.c6=function(){return H4(this.G,function(v){return v.pp()})}; g.u.ra=function(v,O,Y){return new Jn(v,this.Y,O,Y)}; g.u.O9=function(v){this.U=v.U};var lxd={threshold:[0,.3,.5,.75,1]};g.C(oN,Jn);g.u=oN.prototype;g.u.observe=function(){var v=this;this.Ug||(this.Ug=qV());if(NHi(298,function(){return Fm7(v)}))return!0; this.U.jZ("msf");return!1}; g.u.unobserve=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.X?(this.X.unobserve(this.element),this.X=null):this.L&&(this.L.disconnect(),this.L=null)}catch(v){}}; g.u.VN=function(){var v=jg(this);v.length>0&&Wd(this,v);Jn.prototype.VN.call(this)}; g.u.uX=function(){}; g.u.IM=function(){return!1}; g.u.ZY=function(){}; g.u.aY=function(){var v={};return Object.assign(this.U.aY(),(v.niot_obs=this.Ug,v.niot_cbk=this.tK,v))}; g.u.getName=function(){return"nio"};g.C(zA,od);zA.prototype.getName=function(){return"nio"}; zA.prototype.c6=function(){return!NV().U&&this.Y.Y.G.IntersectionObserver!=null}; zA.prototype.ra=function(v,O,Y){return new oN(v,this.Y,O,Y)};g.C(sf,S4);sf.prototype.bI=function(){return NV().Y}; sf.prototype.pp=function(){var v=RBc();this.X!==v&&(this.Y!=this&&v>this.Y.X&&(this.Y=this,rv(this)),this.X=v);return v==2};M2.prototype.sample=function(){f5(this,dc(),!1)}; M2.prototype.B=function(){var v=OM(),O=qV();v?(Jx||(KV=O,g.LC(Sg.Y,function(Y){var S=Y.XM();S.XO=X5(S,O,Y.Kq!=1)})),Jx=!0):(this.L=By3(this,O),Jx=!1,Wm7=O,g.LC(Sg.Y,function(Y){Y.kV&&(Y.XM().X=O)})); f5(this,dc(),!v)}; var Vj=vU(M2);var Xgw=null,wc="",Xg=!1;var qkF=IxQ().M$,k3=IxQ().pD;var KmJ={svg:"visible",kGO:"audible",CL3:"time",ZU8:"timetype"},PMd={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)}}; JRJ.prototype.setTime=function(v,O,Y){O=="ms"?(this.G=v,this.B=-1):(this.G=-1,this.B=v);this.Z=Y===void 0?"tos":Y;return this};g.C(C5,wv);C5.prototype.getId=function(){return this.L}; C5.prototype.C=function(){return!0}; C5.prototype.Y=function(v){var O=v.XM(),Y=v.getDuration();return H4(this.X,function(S){if(S.Y!=void 0)var d=ixF(S,O);else b:{switch(S.Z){case "mtos":d=S.U?O.Z.G:O.G.Y;break b;case "tos":d=S.U?O.Z.Y:O.G.Y;break b}d=0}d==0?S=!1:(S=S.G!=-1?S.G:Y!==void 0&&Y>0?S.B*Y:-1,S=S!=-1&&d>=S);return S})};g.C(yj,Gum);yj.prototype.Y=function(v){var O=new P3J;O.Y=Q2(v,gY0);O.U=Q2(v,VUN);return O};g.C(aN,wv);aN.prototype.Y=function(v){return Yk7(v)};g.C(x3,Hrd);g.C(p5,wv);p5.prototype.Y=function(v){return v.XM().B1()};g.C(TA,Id);TA.prototype.Y=function(v){var O=g.Vv(this.L,zg(MV().h9,"ovms"));return!v.ek&&(v.Kq!=0||O)};g.C(lN,x3);lN.prototype.U=function(){return new TA(this.Y)}; lN.prototype.G=function(){return[new p5("viewable_impression",this.Y),new aN(this.Y)]};g.C(Fg,K9);Fg.prototype.B=function(){var v=g.il("ima.admob.getViewability"),O=zg(this.h9,"queryid");typeof v==="function"&&O&&v(O)}; Fg.prototype.getName=function(){return"gsv"};g.C(hF,od);hF.prototype.getName=function(){return"gsv"}; hF.prototype.c6=function(){var v=NV();MV();return v.U&&!1}; hF.prototype.ra=function(v,O,Y){return new Fg(this.Y,O,Y)};g.C(RN,K9);RN.prototype.B=function(){var v=this,O=g.il("ima.bridge.getNativeViewability"),Y=zg(this.h9,"queryid");typeof O==="function"&&Y&&O(Y,function(S){g.tY(S)&&v.L++;var d=S.opt_nativeViewVisibleBounds||{},r=S.opt_nativeViewHidden;v.Y=oK$(S.opt_nativeViewBounds||{});var b=v.U.B;b.Y=r?AYL.clone():oK$(d);v.timestamp=S.opt_nativeTime||-1;NV().Y=b.Y;S=S.opt_nativeVolume;S!==void 0&&(b.volume=S)})}; RN.prototype.getName=function(){return"nis"};g.C(eg,od);eg.prototype.getName=function(){return"nis"}; eg.prototype.c6=function(){var v=NV();MV();return v.U&&!1}; eg.prototype.ra=function(v,O,Y){return new RN(this.Y,O,Y)};g.C(Ef,S4);g.u=Ef.prototype;g.u.pp=function(){return this.U.ZK!=null}; g.u.lR=function(){var v={};this.FO&&(v.mraid=this.FO);this.HW&&(v.mlc=1);v.mtop=this.U.VAs;this.L&&(v.mse=this.L);this.g8&&(v.msc=1);v.mcp=this.U.compatibility;return v}; g.u.b0=function(v){var O=g.Bm.apply(1,arguments);try{return this.U.ZK[v].apply(this.U.ZK,O)}catch(Y){Ip(538,Y,.01,function(S){S.method=v})}}; g.u.initialize=function(){var v=this;if(this.isInitialized)return!this.NQ();this.isInitialized=!0;if(this.U.compatibility===2)return this.L="ng",this.jZ("w"),!1;if(this.U.compatibility===1)return this.L="mm",this.jZ("w"),!1;NV().X=!0;this.G.document.readyState&&this.G.document.readyState=="complete"?HxF(this):C9(this.G,"load",function(){YK().setTimeout(w4(292,function(){return HxF(v)}),100)},292); return!0}; g.u.oA=function(){var v=NV(),O=Szg(this,"getMaxSize");v.Y=new f4(0,O.width,O.height,0)}; g.u.Da=function(){NV().B=Szg(this,"getScreenSize")}; g.u.dispose=function(){vUJ(this);S4.prototype.dispose.call(this)};var pLd=new function(v,O){this.key=v;this.defaultValue=O===void 0?!1:O;this.valueType="boolean"}("45378663");g.u=L5.prototype;g.u.ao=function(v){TL(v,!1);yRJ(v)}; g.u.R5=function(){}; g.u.O1=function(v,O,Y,S){var d=this;v=new GL(WL,v,Y?O:-1,7,this.Zt(),this.Tj());v.pW=S;BFn(v.h9);W5(v.h9,"queryid",v.pW);v.Fv("");wb7(v,function(){return d.Bk.apply(d,g.F(g.Bm.apply(0,arguments)))},function(){return d.JI.apply(d,g.F(g.Bm.apply(0,arguments)))}); (S=vU(rc).Y)&&LDm(v,S);this.G&&(v.VI(this.G),this.G=null);v.h2.kO&&vU(eBn);return v}; g.u.tP=function(v){switch(v.jB()){case 0:if(v=vU(rc).Y)v=v.Y,g.$Y(v.Z,this),v.j&&this.Yi()&&srQ(v);Z$();break;case 2:AF()}}; g.u.O9=function(){}; g.u.Yi=function(){return!1}; g.u.JI=function(v,O){v.ek=!0;switch(v.Zn()){case 1:WZg(v,O);break;case 2:this.D3(v)}}; g.u.kR=function(v){var O=v.L(v);O&&(O=O.volume,v.On=DA(O)&&O>0);rR3(v,0);return NR(v,"start",OM())}; g.u.g9=function(v,O,Y){f5(Vj,[v],!OM());return this.gN(v,O,Y)}; g.u.gN=function(v,O,Y){return NR(v,Y,OM())}; g.u.hI=function(v){return JF(v,"firstquartile",1)}; g.u.VG=function(v){v.xg=!0;return JF(v,"midpoint",2)}; g.u.LI=function(v){return JF(v,"thirdquartile",3)}; g.u.Nu=function(v){var O=JF(v,"complete",4);iH(v);return O}; g.u.CI=function(v){v.Kq=3;return NR(v,"error",OM())}; g.u.E4=function(v,O,Y){O=OM();if(v.mj()&&!O){var S=v.XM(),d=qV();S.X=d}f5(Vj,[v],!O);v.mj()&&(v.Kq=1);return NR(v,Y,O)}; g.u.vx=function(v,O){O=this.g9(v,O||{},"skip");iH(v);return O}; g.u.g_=function(v,O){TL(v,!0);return this.g9(v,O||{},"fullscreen")}; g.u.Zo=function(v,O){TL(v,!1);return this.g9(v,O||{},"exitfullscreen")}; g.u.Hr=function(v,O,Y){O=v.XM();var S=qV();O.XO=X5(O,S,v.Kq!=1);f5(Vj,[v],!OM());v.Kq==1&&(v.Kq=2);return NR(v,Y,OM())}; g.u.Fm=function(v){f5(Vj,[v],!OM());return v.U()}; g.u.OF=function(v){f5(Vj,[v],!OM());this.Dd(v);iH(v);return v.U()}; g.u.Bk=function(){}; g.u.D3=function(){}; g.u.Dd=function(){}; g.u.RA=function(){}; g.u.hC=function(){}; g.u.Tj=function(){this.Y||(this.Y=this.hC());return this.Y==null?new qR:new lN(this.Y)}; g.u.Zt=function(){return new yj};g.C(K5,wv);K5.prototype.Y=function(v){return v.HL()==4};g.C(tF,Id);tF.prototype.Y=function(v){v=v.HL();return v==3||v==4};g.C(D$,x3);D$.prototype.U=function(){return new tF(this.Y)}; D$.prototype.G=function(){return[new K5(this.Y)]};g.C(Hd,Gum);Hd.prototype.Y=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 O=new P3J;O.Y=Q2(v,MUN);O.U=Q2(v,VUN);return O};M27.prototype.U=function(){return g.il(this.Y)};g.C(N2,L5);g.u=N2.prototype;g.u.R5=function(v,O){var Y=this,S=vU(rc);if(S.Y!=null)switch(S.Y.getName()){case "nis":var d=$Vg(this,v,O);break;case "gsv":d=fAn(this,v,O);break;case "exc":d=kel(this,v)}d||(O.opt_overlayAdElement?d=void 0:O.opt_adElement&&(d=sp1(this,v,O.opt_adElement,O.opt_osdId)));d&&d.Zn()==1&&(d.L==g.gH&&(d.L=function(r){return Y.RA(r)}),Ax1(this,d,O)); return d}; g.u.RA=function(v){v.U=0;v.JK=0;if(v.B=="h"||v.B=="n"){MV();v.Eg&&(MV(),q2(this)!="h"&&q2(this));var O=g.il("ima.common.getVideoMetadata");if(typeof O==="function")try{var Y=O(v.pW)}catch(d){v.U|=4}else v.U|=2}else if(v.B=="b")if(O=g.il("ytads.bulleit.getVideoMetadata"),typeof O==="function")try{Y=O(v.pW)}catch(d){v.U|=4}else v.U|=2;else if(v.B=="ml")if(O=g.il("ima.common.getVideoMetadata"),typeof O==="function")try{Y=O(v.pW)}catch(d){v.U|=4}else v.U|=2;else v.U|=1;v.U||(Y===void 0?v.U|=8:Y===null? v.U|=16:g.tY(Y)?v.U|=32:Y.errorCode!=null&&(v.JK=Y.errorCode,v.U|=64));Y==null&&(Y={});O=Y;v.X=0;for(var S in bCN)O[S]==null&&(v.X|=bCN[S]);gUF(O,"currentTime");gUF(O,"duration");DA(Y.volume)&&DA()&&(Y.volume*=NaN);return Y}; g.u.hC=function(){MV();q2(this)!="h"&&q2(this);var v=UVi(this);return v!=null?new M27(v):null}; g.u.D3=function(v){!v.Y&&v.ek&&n5(this,v,"overlay_unmeasurable_impression")&&(v.Y=!0)}; g.u.Dd=function(v){v.V7&&(v.B1()?n5(this,v,"overlay_viewable_end_of_session_impression"):n5(this,v,"overlay_unviewable_impression"),v.V7=!1)}; g.u.Bk=function(){}; g.u.O1=function(v,O,Y,S){if(THJ()){var d=zg(MV().h9,"mm"),r={};(d=(r[Vk.UT]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",r[Vk.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",r)[d])&&yxw(this,d);this.B==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&Ip(1044,Error())}v=L5.prototype.O1.call(this,v,O,Y,S);this.Z&&(O=this.C,v.Z==null&&(v.Z=new IsF),O.Y[v.pW]=v.Z,v.Z.Z=fKN);return v}; g.u.ao=function(v){v&&v.Zn()==1&&this.Z&&delete this.C.Y[v.pW];return L5.prototype.ao.call(this,v)}; g.u.Tj=function(){this.Y||(this.Y=this.hC());return this.Y==null?new qR:this.B==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new D$(this.Y):new lN(this.Y)}; g.u.Zt=function(){return this.B==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Hd:new yj}; g.u.VI=function(v,O,Y,S,d){O=new f4(Y,O+S,Y+d,O);(v=Y3(Sg,v))?v.VI(O):this.G=O}; var $Nv=Xa(193,xV3,void 0,z1n);g.Gc("Goog_AdSense_Lidar_sendVastEvent",$Nv);var kwJ=w4(194,function(v,O){O=O===void 0?{}:O;v=CTE(vU(N2),v,O);return aAE(v)}); g.Gc("Goog_AdSense_Lidar_getViewability",kwJ);var UNt=Xa(195,function(){return fcn()}); g.Gc("Goog_AdSense_Lidar_getUrlSignalsArray",UNt);var cYN=w4(196,function(){return JSON.stringify(fcn())}); g.Gc("Goog_AdSense_Lidar_getUrlSignalsList",cYN);var za3=vB("adurl"),WnE=vB("ae"),jZd=vB("dsh");var lAn=gF(["//ep2.adtrafficquality.google/sodar/",""]),FZJ=gF(["//tpc.googlesyndication.com/sodar/",""]);g.C(dd,Error);g.C(os,g.X);os.prototype.OL=function(){return this.wpc.f()}; os.prototype.N0=function(v){this.wpc.c(v)}; os.prototype.XK=function(v){return this.wpc.m(EU7(v))}; os.prototype.c_=function(v){return this.wpc.mws(EU7(v))}; g.C(rd,g.X);rd.prototype.snapshot=function(v){return this.zd.s(Object.assign({},v.lL&&{c:v.lL},v.Sc&&{s:v.Sc},v.qB!==void 0&&{p:v.qB}))}; rd.prototype.Rc=function(v){this.zd.e(v)}; rd.prototype.uW=function(){return this.zd.l()};var w4F;g.C(WB,g.X);WB.prototype.share=function(){if(this.vW())throw Error("E:AD");this.B++;return this}; WB.prototype.dispose=function(){--this.B||g.X.prototype.dispose.call(this)}; w4F=Symbol.dispose;IAw.prototype.Y8=function(v,O){this.Y.Y8("/client_streamz/bg/frs",v,O)}; qzw.prototype.Y8=function(v,O,Y,S,d,r){this.Y.Y8("/client_streamz/bg/wrl",v,O,Y,S,d,r)}; nUE.prototype.aD=function(v,O){this.Y.mT("/client_streamz/bg/ec",v,O)}; Jxc.prototype.Y8=function(v,O,Y){this.Y.Y8("/client_streamz/bg/el",v,O,Y)}; KZE.prototype.aD=function(v,O){this.Y.mT("/client_streamz/bg/cec",v,O)}; PTl.prototype.aD=function(v,O){this.Y.mT("/client_streamz/bg/po/csc",v,O)}; GeQ.prototype.aD=function(v,O){this.Y.mT("/client_streamz/bg/po/ctav",v,O)}; iVQ.prototype.aD=function(v,O){this.Y.mT("/client_streamz/bg/po/cwsc",v,O)};g.C(mV7,px);g.C(gd,px);var $X=[1,2,3];var utY=[0,$X,OCN,m$N,NFU];var CLN=[0,Nm,[0,IJU,J3Y]];g.C(MZ,px);var fK=[1,2,3];var yYK=[0,fK,Plw,nQJ,Og,CLN];g.C(Vr,px);var aKU=[0,Nm,utY,yYK];var xNC=[0,[1,2,3],Og,[0,Ho,-1,HnS],Og,[0,Ho,-1,Gc8,HnS],Og,[0,Ho]];g.C(Au,px);Au.prototype.Pb=function(){var v=Rr(this,3,S0,3,!0);TQ(v);return v[void 0]};Au.prototype.U=CSd([0,Ho,xNC,vYv,Nm,aKU,t1U,D$S]);g.C(DV$,px);g.u=kX.prototype;g.u.isEnabled=function(){if(!g.Pm.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{ON:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.u.set=function(v,O,Y){var S=!1;if(typeof Y==="object"){var d=Y.sDK;S=Y.secure||!1;var r=Y.domain||void 0;var b=Y.path||void 0;var z=Y.ON}if(/[;=\s]/.test(v))throw Error('Invalid cookie name "'+v+'"');if(/[;\r\n]/.test(O))throw Error('Invalid cookie value "'+O+'"');z===void 0&&(z=-1);Y=r?";domain="+r:"";b=b?";path="+b:"";S=S?";secure":"";z=z<0?"":z==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+z*1E3)).toUTCString();this.Y.cookie=v+"="+O+Y+b+z+S+(d!=null?";samesite="+ d:"")}; g.u.get=function(v,O){for(var Y=v+"=",S=(this.Y.cookie||"").split(";"),d=0,r;d=0;O--)this.remove(v[O])}; var LS=new kX(typeof document=="undefined"?null:document);cB.prototype.compress=function(v){var O,Y,S,d;return g.B(function(r){switch(r.U){case 1:return O=new CompressionStream("gzip"),Y=(new Response(O.readable)).arrayBuffer(),S=O.writable.getWriter(),g.E(r,S.write((new TextEncoder).encode(v)),2);case 2:return g.E(r,S.close(),3);case 3:return d=Uint8Array,g.E(r,Y,4);case 4:return r.return(new d(r.Y))}})}; cB.prototype.isSupported=function(v){return v<1024?!1:typeof CompressionStream!=="undefined"};g.C(uU,px);CK.prototype.setInterval=function(v){this.intervalMs=v;this.KP&&this.enabled?(this.stop(),this.start()):this.KP&&this.stop()}; CK.prototype.start=function(){var v=this;this.enabled=!0;this.KP||(this.KP=setTimeout(function(){v.tick()},this.intervalMs),this.U=this.Y())}; CK.prototype.stop=function(){this.enabled=!1;this.KP&&(clearTimeout(this.KP),this.KP=void 0)}; CK.prototype.tick=function(){var v=this;if(this.enabled){var O=Math.max(this.Y()-this.U,0);O0?Y:void 0));Y=pr(Y,4,PU(d>0?d:void 0));Y=pr(Y,5,PU(r>0?r:void 0));d=Y.Un;r=d[uV]|0;Y=pe(Y,r)?Y:new Y.constructor(cb(d,r,!0));i3(b,xX,10,Y)}b=this.Y.clone();Y=Date.now().toString();b=pr(b,4,NW(Y));v=mD(b,E6,3,v.slice());S&&(b=new yr,S=pr(b,13,PU(S)),b=new as,S=i3(b,yr,2,S), b=new e6,S=i3(b,as,1,S),S=bM(S,2,9),i3(v,e6,18,S));O&&Sp(v,14,O);return v};g.Z0.prototype.U=0;g.Z0.prototype.reset=function(){this.Y=this.G=this.B;this.U=0}; g.Z0.prototype.getValue=function(){return this.G};g.C(W4,px);var p0w=ze(W4);g.C(cvw,px);var WP;WP=new uRF;g.C(qZ,g.X);g.u=qZ.prototype;g.u.cW=function(){Is(this);this.U.stop();this.FO.stop();g.X.prototype.cW.call(this)}; g.u.dispatch=function(v){if(v instanceof E6)this.log(v);else try{var O=new E6,Y=v.Gn();var S=dy(O,8,Y);this.log(S)}catch(d){nK(this,4,1)}}; g.u.log=function(v){nK(this,2,1);if(this.g8){v=v.clone();var O=this.f1++;v=Sp(v,21,O);this.componentId&&dy(v,26,this.componentId);O=v;var Y=ar(O,1);var S=S===void 0?!1:S;var d=typeof Y;S=Y==null?Y:d==="bigint"?String(tl(64,Y)):Ke(Y)?d==="string"?m0(Y):S?Dj(Y):HU(Y):void 0;S==null&&(S=Date.now(),S=Number.isFinite(S)?S.toString():"0",pr(O,1,NW(S)));S=ar(O,15);S!=null&&(typeof S==="bigint"?AQ(S)?S=Number(S):(S=tl(64,S),S=AQ(S)?Number(S):String(S)):S=Ke(S)?typeof S==="number"?HU(S):m0(S):void 0);S!=null|| Sp(O,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(S=this.experimentIds.clone(),i3(O,uU,16,S));nK(this,1,1);O=this.Y.length-1E3+1;O>0&&(this.Y.splice(0,O),this.B+=O,nK(this,3,O));this.Y.push(v);this.ZJ||this.U.enabled||this.U.start()}}; g.u.flush=function(v,O){var Y=this;if(this.Y.length===0)v&&v();else if(this.N3&&this.tK)this.G.U=3,CHw(this);else{var S=Date.now();if(this.XO>S&&this.JK0&&(Y.JK=Date.now(),Y.XO=Y.JK+k);k=bL(j0);var a;cU&&k&&((a=U.Un[k])==null?void 0:a[175237375])!=null&&kK(x$0,3);a:{var x=x===void 0?!1:x;if(bL(pmt)&&bL(j0)&&void 0===pmt){a=U.Un;k=a[j0];if(!k)break a;if(k=k.y4)try{k(a,175237375,egK);break a}catch(T){da(T)}}x&&(x=U.Un, (a=bL(j0))&&a in x&&(x=x[a])&&delete x[175237375])}x=WP.Y?WP.U(U,WP.Y,175237375,WP.G):WP.U(U,175237375,null,WP.G);if(x=x===null?void 0:x)x=Ds(x,1,-1),x!==-1&&(Y.Z=new g.Z0(x<1?1:x,3E5,.1),Y.U.setInterval(Y.Z.getValue()))}}v&&v();Y.C=0},A=function(k,U){var c=Gu(r,E6,3); var a=Number(Qud(r,14));g.XJ(Y.Z);Y.U.setInterval(Y.Z.getValue());k===401&&b&&(Y.AK=b);a&&(Y.B+=a);U===void 0&&(U=Y.isRetryable(k));U&&(Y.Y=c.concat(Y.Y),Y.ZJ||Y.U.enabled||Y.U.start());nK(Y,7,1);O&&O("net-send-failed",k);++Y.C},f=function(){Y.network&&Y.network.send(M,V,A)}; z?z.then(function(k){nK(Y,5,d);M.requestHeaders["Content-Encoding"]="gzip";M.requestHeaders["Content-Type"]="application/binary";M.body=k;M.DW=2;f()},function(){nK(Y,6,d); f()}):f()}}}}; g.u.isRetryable=function(v){return 500<=v&&v<600||v===401||v===0};Ju.prototype.send=function(v,O,Y){var S=this,d,r,b,z,M,V,A,f,k,U;return g.B(function(c){switch(c.U){case 1:return r=(d=S.cJ?new AbortController:void 0)?setTimeout(function(){d.abort()},v.timeoutMillis):void 0,g.cm(c,2,3),b=Object.assign({},{method:v.requestType, headers:Object.assign({},v.requestHeaders)},v.body&&{body:v.body},v.withCredentials&&{credentials:"include"},{signal:v.timeoutMillis&&d?d.signal:null}),g.E(c,fetch(v.url,b),5);case 5:z=c.Y;if(z.status!==200){(M=Y)==null||M(z.status);c.d8(3);break}if((V=O)==null){c.d8(7);break}return g.E(c,z.text(),8);case 8:V(c.Y);case 7:case 3:g.Fw(c);clearTimeout(r);g.Ri(c,0);break;case 2:A=g.Tc(c);switch((f=A)==null?void 0:f.name){case "AbortError":(k=Y)==null||k(408);break;default:(U=Y)==null||U(400)}c.d8(3)}})}; Ju.prototype.lY=function(){return 4};g.C(KK,g.X);KK.prototype.Y9=function(){this.Z=!0;return this}; KK.prototype.build=function(){this.network||(this.network=new Ju);var v=new qZ({logSource:this.logSource,RN:this.RN?this.RN:jdl,sessionIndex:this.sessionIndex,Cb1:this.WI,H1:this.B,ZJ:!1,Y9:this.Z,dw:this.dw,network:this.network});g.w(this,v);if(this.U){var O=this.U,Y=BB(v.G);dy(Y,7,O)}v.L=new cB;this.componentId&&(v.componentId=this.componentId);this.tT&&(v.tT=this.tT);this.pageId&&(v.pageId=this.pageId);this.Y&&((Y=this.Y)?(v.experimentIds||(v.experimentIds=new uU),O=v.experimentIds,Y=Y.Gn(),dy(O, 4,Y)):v.experimentIds&&pr(v.experimentIds,4));this.G&&(v.N3=v.tK);$R3(v.G);this.network.Av&&this.network.Av(this.logSource);this.network.mpx&&this.network.mpx(v);return v};g.C(PB,g.X);PB.prototype.flush=function(v){v=v||[];if(v.length){for(var O=new DV$,Y=[],S=0;S-1?(O=v[b],Y||(O.FY=!1)):(O=new hn1(O,this.src,r,!!S,d),O.FY=Y,v.push(O));return O}; g.u.remove=function(v,O,Y,S){v=v.toString();if(!(v in this.listeners))return!1;var d=this.listeners[v];O=Y_(d,O,Y,S);return O>-1?(NZ(d[O]),g.fC(d,O),d.length==0&&(delete this.listeners[v],this.Y--),!0):!1}; g.u.removeAll=function(v){v=v&&v.toString();var O=0,Y;for(Y in this.listeners)if(!v||Y==v){for(var S=this.listeners[Y],d=0;d-1?v[d]:null}; g.u.hasListener=function(v,O){var Y=v!==void 0,S=Y?v.toString():"",d=O!==void 0;return g.qN(this.listeners,function(r){for(var b=0;b>>0);g.o8(g.sW,g.X);g.sW.prototype[lIc]=!0;g.u=g.sW.prototype;g.u.addEventListener=function(v,O,Y,S){g.d1(this,v,O,Y,S)}; g.u.removeEventListener=function(v,O,Y,S){Z97(this,v,O,Y,S)}; g.u.dispatchEvent=function(v){var O=this.M1;if(O){var Y=[];for(var S=1;O;O=O.M1)Y.push(O),++S}O=this.QY;S=v.type||v;if(typeof v==="string")v=new g.tu(v,O);else if(v instanceof g.tu)v.target=v.target||O;else{var d=v;v=new g.tu(S,O);g.OI(v,d)}d=!0;var r;if(Y)for(r=Y.length-1;!v.U&&r>=0;r--){var b=v.currentTarget=Y[r];d=Md(b,S,!0,v)&&d}v.U||(b=v.currentTarget=O,d=Md(b,S,!0,v)&&d,v.U||(d=Md(b,S,!1,v)&&d));if(Y)for(r=0;!v.U&&r0){this.U--;var v=this.Y;this.Y=v.next;v.next=null}else v=this.G();return v};var $_;UW.prototype.add=function(v,O){var Y=Jn7.get();Y.set(v,O);this.U?this.U.next=Y:this.Y=Y;this.U=Y}; UW.prototype.remove=function(){var v=null;this.Y&&(v=this.Y,this.Y=this.Y.next,this.Y||(this.U=null),v.next=null);return v}; var Jn7=new Ad(function(){return new ct},function(v){return v.reset()}); ct.prototype.set=function(v,O){this.Y=v;this.scope=O;this.next=null}; ct.prototype.reset=function(){this.next=this.scope=this.Y=null};var ud,CZ=!1,qMg=new UW;K8E.prototype.reset=function(){this.context=this.U=this.G=this.Y=null;this.B=!1}; var PHd=new Ad(function(){return new K8E},function(v){v.reset()}); g.x_.prototype.then=function(v,O,Y){return O5n(this,fZ(typeof v==="function"?v:null),fZ(typeof O==="function"?O:null),Y)}; g.x_.prototype.$goog_Thenable=!0;g.u=g.x_.prototype;g.u.finally=function(v){var O=this;v=fZ(v);return new Promise(function(Y,S){t4g(O,function(d){v();Y(d)},function(d){v(); S(d)})})}; g.u.bv=function(v,O){return O5n(this,null,fZ(v),O)}; g.u.catch=g.x_.prototype.bv;g.u.cancel=function(v){if(this.Y==0){var O=new LZ(v);g.yP(function(){DRm(this,O)},this)}}; g.u.Gng=function(v){this.Y=0;aw(this,2,v)}; g.u.MN3=function(v){this.Y=0;aw(this,3,v)}; g.u.yK=function(){for(var v;v=H9i(this);)NvJ(this,v,this.Y,this.L);this.C=!1}; var rFn=da;g.o8(LZ,W0);LZ.prototype.name="cancel";g.o8(g.Bt,g.sW);g.u=g.Bt.prototype;g.u.enabled=!1;g.u.iM=null;g.u.setInterval=function(v){this.nS=v;this.iM&&this.enabled?(this.stop(),this.start()):this.iM&&this.stop()}; g.u.ENc=function(){if(this.enabled){var v=g.rS()-this.Qq;v>0&&v0&&(this.getStatus(),this.C=setTimeout(this.wI.bind(this), this.tK)),this.getStatus(),this.j=!0,this.Y.send(v),this.j=!1}catch(b){this.getStatus(),cFm(this,b)}}; g.u.wI=function(){typeof G7!="undefined"&&this.Y&&(this.B="Timed out after "+this.tK+"ms, aborting",this.U=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.u.abort=function(v){this.Y&&this.G&&(this.getStatus(),this.G=!1,this.Z=!0,this.Y.abort(),this.Z=!1,this.U=v||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Pt(this))}; g.u.cW=function(){this.Y&&(this.G&&(this.G=!1,this.Z=!0,this.Y.abort(),this.Z=!1),Pt(this,!0));g.KZ.cj.cW.call(this)}; g.u.DF=function(){this.vW()||(this.HW||this.j||this.Z?ugg(this):this.Kag())}; g.u.Kag=function(){ugg(this)}; g.u.isActive=function(){return!!this.Y}; g.u.isComplete=function(){return g.id(this)==4}; g.u.getStatus=function(){try{return g.id(this)>2?this.Y.status:-1}catch(v){return-1}}; g.u.getResponseHeader=function(v){if(this.Y&&this.isComplete())return v=this.Y.getResponseHeader(v),v===null?void 0:v}; g.u.getLastError=function(){return typeof this.B==="string"?this.B:String(this.B)};Nd.prototype.send=function(v,O,Y){O=O===void 0?function(){}:O; Y=Y===void 0?function(){}:Y; kAF(v.url,function(S){S=S.target;mz(S)?O(g.td(S)):Y(S.getStatus())},v.requestType,v.body,v.requestHeaders,v.timeoutMillis,v.withCredentials)}; Nd.prototype.lY=function(){return 1};OC.prototype.done=function(){this.logger.kM(this.event,vl()-this.startTime)}; g.C(YH,WB);g.C(dA,YH);g.u=dA.prototype;g.u.jr=function(){}; g.u.R9=function(){}; g.u.kM=function(){}; g.u.fq=function(){}; g.u.D1=function(){}; g.u.zD=function(v,O,Y,S){return S}; g.u.Sf=function(){}; g.u.vt=function(){}; g.u.Wt=function(){}; g.u.mY=function(){}; g.C(rA,YH);g.u=rA.prototype;g.u.update=function(v){this.logger.dispose();this.logger=v}; g.u.R9=function(v){this.logger.R9(v)}; g.u.kM=function(v,O){this.logger.kM(v,O)}; g.u.fq=function(v){this.logger.fq(v)}; g.u.D1=function(){this.logger.D1()}; g.u.zD=function(v,O,Y,S){return this.logger.zD(v,O,Y,S)}; g.u.Sf=function(v){this.logger.Sf(v)}; g.u.vt=function(v){this.logger.vt(v)}; g.u.Wt=function(v){this.logger.Wt(v)}; g.u.mY=function(v){this.logger.mY(v)}; g.u.jr=function(v){this.logger.jr(v)}; g.C(be,g.X);g.C(oS,YH);g.u=oS.prototype;g.u.jr=function(v){this.metrics.vN1.Y8(v,this.Yf)}; g.u.R9=function(v){this.metrics.eventCount.aD(v,this.Yf)}; g.u.kM=function(v,O){this.metrics.Pg.Y8(O,v,this.Yf)}; g.u.fq=function(v){this.metrics.errorCount.aD(v,this.Yf)}; g.u.zD=function(v,O,Y,S){function d(z){if(!r.vW()){var M=vl()-b;r.metrics.AE3.Y8(M,v,Y,z,O,r.Yf)}} var r=this,b=vl();S.then(function(){return void d(0)},function(z){return void d(z instanceof Iw?z.code:-1)}); return S}; g.u.Sf=function(v){this.metrics.Slx.aD(v,this.Yf)}; g.u.vt=function(v){this.metrics.w3.aD(v,this.Yf)}; g.u.Wt=function(v){this.metrics.WE3.aD(v,this.Yf)}; g.C(jm,oS);jm.prototype.mY=function(v){var O=this;v=v.slice();g.R8(v);g.eU(v,this.U)||(this.Y.dispose(),this.G&&this.service.dispose(),this.service=this.options.mG("49",this.options.o_.concat(v)),this.Y=new be(function(){return void O.service.iN()},this.options.LJ),this.metrics=a$$(this.service),this.U=v)}; jm.prototype.D1=function(){pdE(this.Y)};g.C(Wl,px);g.C(z_,px);g.C(sC,px);var wdJ=ze(sC),l$1=function(v){return qy(function(O){return O instanceof v&&!pe(O)})}(sC); sC.messageId="bfkj";g.C(j6,px);g.C(gA,px);var FGl=ze(gA);g.C(Vl,g.X);Vl.prototype.snapshot=function(v){if(this.vW())throw Error("Already disposed");this.logger.R9("n");var O=this.logger.share();return this.G.then(function(Y){var S=Y.A4;return new Promise(function(d){var r=new OC(O,"n");S(function(b){r.done();O.jr(b.length);O.D1();O.dispose();d(b)},[v.lL, v.Sc,v.PC,v.qB])})})}; Vl.prototype.lC=function(v){var O=this;if(this.vW())throw Error("Already disposed");this.logger.R9("n");var Y=Sm(this.logger,function(){return O.B([v.lL,v.Sc,v.PC,v.qB])},"n"); this.logger.jr(Y.length);this.logger.D1();return Y}; Vl.prototype.Rc=function(v){this.G.then(function(O){var Y;(Y=O.jFx)==null||Y(v)})}; Vl.prototype.uW=function(){return this.logger.share()};g.C($H,px);g.C(kH,px);UC.prototype.Yw=function(v){return JFm(this,v,new dA,0)};g.C(cl,g.X);cl.prototype.snapshot=function(v){var O=this;return g.B(function(Y){switch(Y.U){case 1:if(O.vW())throw Error("Already disposed");if(O.U||O.L){Y.d8(2);break}return g.E(Y,O.Z.promise,2);case 2:if(!O.U){Y.d8(4);break}return g.E(Y,O.U.snapshot(v),5);case 5:return Y.return(Y.Y);case 4:throw O.L;}})}; cl.prototype.Rc=function(v){var O,Y;(O=this.U)==null||(Y=O.Rc)==null||Y.call(O,v)}; cl.prototype.handleError=function(v){if(!this.vW()){this.L=v;this.Z.resolve();var O,Y;(Y=(O=this.options).L9c)==null||Y.call(O,v)}}; cl.prototype.uW=function(){return this.logger.share()}; var GA7={Ln3:432E5,I0:3E5,OD:10,YS:1E4,YG:3E4,pWx:3E4,C64:6E4,K8:1E3,a$:6E4,E2:6E5,Ti:.25,f8:2,maxAttempts:10};var FNL,Y6Q=(FNL=Math.imul)!=null?FNL:function(v,O){return v*O|0},aS=[196, 200,224,18];xH.prototype.Gn=function(){return String(this.Y)+","+this.U.join()}; xH.prototype.xW=function(v,O){var Y=void 0;if(this.U[this.Y]!==v){var S=this.U.indexOf(v);S!==-1?(this.U.splice(S,1),S0;)O[Y++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(v%62),v=Math.floor(v/62);return O.join("")}};var Au7;g.C(T_,g.X);T_.prototype.c_=function(v,O){var Y=this.XK(v);O==null||O(Y);return Sm(this.logger,function(){return g.bV(Y,2)},this.U)}; Au7=Symbol.dispose;g.C(hU,T_);hU.prototype.XK=function(v,O){var Y=this;this.logger.R9(this.Y);++this.Z>=this.C&&this.G.resolve();var S=v();v=Sm(this.logger,function(){return Y.B(S)},"C"); if(v===void 0)throw new dd(17,"YNJ:Undefined");if(!(v instanceof Uint8Array))throw new dd(18,"ODM:Invalid");O==null||O(v);return v}; g.C(RS,T_);RS.prototype.XK=function(){return this.B}; g.C(em,T_);em.prototype.XK=function(){var v=this;return Sm(this.logger,function(){return jl(v.B)},"d")}; em.prototype.c_=function(){return this.B}; g.C(EC,T_);EC.prototype.XK=function(){if(this.B)return this.B;this.B=f0g(this,function(v){return"_"+V6F(v)}); return f0g(this,function(v){return v})}; g.C(LB,T_);LB.prototype.XK=function(){var v=Math.floor(Date.now()/1E3),O=[Math.random()*255,Math.random()*255],Y=O.concat([this.B&255,this.clientState],[v>>24&255,v>>16&255,v>>8&255,v&255]);v=new Uint8Array(2+Y.length);v[0]=34;v[1]=Y.length;v.set(Y,2);Y=v.subarray(2);for(var S=O=O.length;S150))try{this.cache=new Wf7(v,this.logger)}catch(O){this.reportError(new dd(22,"GBJ:init",O))}}; g.u.reportError=function(v){this.logger.fq(v.code);this.onError(v);return v}; var UZi=function(v){return qy(function(O){if(!y3S(O))return!1;for(var Y=g.y(Object.entries(v)),S=Y.next();!S.done;S=Y.next()){var d=g.y(S.value);S=d.next().value;d=d.next().value;if(!(S in O)){if(d.G_8===!0)continue;return!1}if(!d(O[S]))return!1}return!0})}({zd:function(v){return qy(function(O){return O instanceof v})}(cl)},"");var HBE=(new Date).getTime();g.C(IS,px);var hNC=ze(IS);l0w.prototype.getMetadata=function(){return this.metadata};qf.prototype.getMetadata=function(){return this.metadata}; qf.prototype.getStatus=function(){return this.status};nB.prototype.L=function(v,O){O=O===void 0?{}:O;return new l0w(v,this,O)}; nB.prototype.getName=function(){return this.name};var RNw=new nB("/google.internal.waa.v1.Waa/Create",$H,IS,function(v){return v.Gn()},hNC);g.C(JU,px);var n3Q=new nB("/google.internal.waa.v1.Waa/GenerateIT",kH,JU,function(v){return v.Gn()},ze(JU));var SWw=new Set(["SAPISIDHASH","APISIDHASH"]);g.C(KB,px);KB.prototype.getValue=function(){var v=ar(this,2);if(Array.isArray(v)||v instanceof px)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Ec(this,2)};g.C(Pl,px);Pl.prototype.getMessage=function(){return N3(this,2)}; var Qs7=ze(Pl);G_.prototype.gU=function(v,O){v=="data"?this.G.push(O):v=="metadata"?this.Z.push(O):v=="status"?this.C.push(O):v=="end"?this.B.push(O):v=="error"&&this.U.push(O);return this}; G_.prototype.removeListener=function(v,O){v=="data"?Hl(this.G,O):v=="metadata"?Hl(this.Z,O):v=="status"?Hl(this.C,O):v=="end"?Hl(this.B,O):v=="error"&&Hl(this.U,O);return this}; G_.prototype.cancel=function(){this.Y.abort()}; G_.prototype.cancel=G_.prototype.cancel;G_.prototype.removeListener=G_.prototype.removeListener;G_.prototype.on=G_.prototype.gU;g.C(hvF,Error);g.o8(g.Nf,f$F);g.Nf.prototype.Y=function(){var v=new vM(this.B,this.G);this.U&&v.setCredentialsMode(this.U);return v}; g.Nf.prototype.setCredentialsMode=function(v){this.U=v}; g.o8(vM,g.sW);g.u=vM.prototype;g.u.open=function(v,O){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.tK=v;this.j=O;this.readyState=1;OS(this)}; g.u.send=function(v){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.Y=!0;var O={headers:this.X,method:this.tK,credentials:this.Z,cache:void 0};v&&(O.body=v);(this.Ug||g.Pm).fetch(new Request(this.j,O)).then(this.Bx.bind(this),this.Tq.bind(this))}; g.u.abort=function(){this.response=this.responseText="";this.X=new Headers;this.status=0;this.G&&this.G.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.Y&&this.readyState!=4&&(this.Y=!1,Yt(this));this.readyState=0}; g.u.Bx=function(v){if(this.Y&&(this.B=v,this.U||(this.status=this.B.status,this.statusText=this.B.statusText,this.U=v.headers,this.readyState=2,OS(this)),this.Y&&(this.readyState=3,OS(this),this.Y)))if(this.responseType==="arraybuffer")v.arrayBuffer().then(this.Hx.bind(this),this.Tq.bind(this));else if(typeof g.Pm.ReadableStream!=="undefined"&&"body"in v){this.G=v.body.getReader();if(this.C){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.L=new TextDecoder;Lfl(this)}else v.text().then(this.QG.bind(this),this.Tq.bind(this))}; g.u.YR=function(v){if(this.Y){if(this.C&&v.value)this.response.push(v.value);else if(!this.C){var O=v.value?v.value:new Uint8Array(0);if(O=this.L.decode(O,{stream:!v.done}))this.response=this.responseText+=O}v.done?Yt(this):OS(this);this.readyState==3&&Lfl(this)}}; g.u.QG=function(v){this.Y&&(this.response=this.responseText=v,Yt(this))}; g.u.Hx=function(v){this.Y&&(this.response=v,Yt(this))}; g.u.Tq=function(){this.Y&&Yt(this)}; g.u.setRequestHeader=function(v,O){this.X.append(v,O)}; g.u.getResponseHeader=function(v){return this.U?this.U.get(v.toLowerCase())||"":""}; g.u.getAllResponseHeaders=function(){if(!this.U)return"";for(var v=[],O=this.U.entries(),Y=O.next();!Y.done;)Y=Y.value,v.push(Y[0]+": "+Y[1]),Y=O.next();return v.join("\r\n")}; g.u.setCredentialsMode=function(v){this.Z=v}; Object.defineProperty(vM.prototype,"withCredentials",{get:function(){return this.Z==="include"}, set:function(v){this.setCredentialsMode(v?"include":"same-origin")}});g.Ss.prototype.toString=function(){var v=[],O=this.Z;O&&v.push(zV(O,eNC,!0),":");var Y=this.Y;if(Y||O=="file")v.push("//"),(O=this.X)&&v.push(zV(O,eNC,!0),"@"),v.push(g.gn(Y).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),Y=this.G,Y!=null&&v.push(":",String(Y));if(Y=this.U)this.Y&&Y.charAt(0)!="/"&&v.push("/"),v.push(zV(Y,Y.charAt(0)=="/"?EYK:Q8L,!0));(Y=this.B.toString())&&v.push("?",Y);(Y=this.C)&&v.push("#",zV(Y,LN8));return v.join("")}; g.Ss.prototype.resolve=function(v){var O=this.clone(),Y=!!v.Z;Y?g.dk(O,v.Z):Y=!!v.X;Y?O.X=v.X:Y=!!v.Y;Y?g.rk(O,v.Y):Y=v.G!=null;var S=v.U;if(Y)g.bp(O,v.G);else if(Y=!!v.U){if(S.charAt(0)!="/")if(this.Y&&!this.U)S="/"+S;else{var d=O.U.lastIndexOf("/");d!=-1&&(S=O.U.slice(0,d+1)+S)}d=S;if(d==".."||d==".")S="";else if(g.fg(d,"./")||g.fg(d,"/.")){S=Mv(d,"/");d=d.split("/");for(var r=[],b=0;b1||r.length==1&&r[0]!="")&&r.pop(), S&&b==d.length&&r.push("")):(r.push(z),S=!0)}S=r.join("/")}else S=d}Y?O.U=S:Y=v.B.toString()!=="";Y?o6(O,v.B.clone()):Y=!!v.C;Y&&(O.C=v.C);return O}; g.Ss.prototype.clone=function(){return new g.Ss(this)}; var eNC=/[#\/\?@]/g,Q8L=/[#\?:]/g,EYK=/[#\?]/g,ZKm=/[#\?@]/g,LN8=/#/g;g.u=WM.prototype;g.u.add=function(v,O){MA(this);this.G=null;v=VB(this,v);var Y=this.Y.get(v);Y||this.Y.set(v,Y=[]);Y.push(O);this.U=this.U+1;return this}; g.u.remove=function(v){MA(this);v=VB(this,v);return this.Y.has(v)?(this.G=null,this.U=this.U-this.Y.get(v).length,this.Y.delete(v)):!1}; g.u.clear=function(){this.Y=this.G=null;this.U=0}; g.u.isEmpty=function(){MA(this);return this.U==0}; g.u.forEach=function(v,O){MA(this);this.Y.forEach(function(Y,S){Y.forEach(function(d){v.call(O,d,S,this)},this)},this)}; g.u.y_=function(){MA(this);for(var v=Array.from(this.Y.values()),O=Array.from(this.Y.keys()),Y=[],S=0;S0?String(v[0]):O}; g.u.toString=function(){if(this.G)return this.G;if(!this.Y)return"";for(var v=[],O=Array.from(this.Y.keys()),Y=0;Y>>3;r.G!=1&&r.G!=2&&r.G!=15&&kt(r,b,z,"unexpected tag");r.Y=1;r.U=0;r.B=0} function Y(M){r.B++;r.B==5&&M&240&&kt(r,b,z,"message length too long");r.U|=(M&127)<<(r.B-1)*7;M&128||(r.Y=2,r.X=0,typeof Uint8Array!=="undefined"?r.Z=new Uint8Array(r.U):r.Z=Array(r.U),r.U==0&&d())} function S(M){r.Z[r.X++]=M;r.X==r.U&&d()} function d(){if(r.G<15){var M={};M[r.G]=r.Z;r.L.push(M)}r.Y=0} for(var r=this,b=v instanceof Array?v:new Uint8Array(v),z=0;z0?v:null};US.prototype.isInputValid=function(){return this.Y===null}; US.prototype.Bj=function(){return this.Y}; US.prototype.tA=function(){return!1}; US.prototype.parse=function(v){this.Y!==null&&PU3(this,v,"stream already broken");var O=null;try{var Y=this.G;Y.G||Kfg(Y,v,"stream already broken");Y.Y+=v;var S=Math.floor(Y.Y.length/4);if(S==0)var d=null;else{try{var r=Fyw(Y.Y.slice(0,S*4))}catch(b){Kfg(Y,Y.Y,b.message)}Y.U+=S*4;Y.Y=Y.Y.slice(S*4);d=r}O=d===null?null:this.B.parse(d)}catch(b){PU3(this,v,b.message)}this.U+=v.length;return O};var ZCJ={INIT:0,qM:1,mw:2,n4:3,r9:4,XV:5,STRING:6,BF:7,CB:8,oa:9,qz:10,DX:11,rp:12,oR:13,qN:14,Dc:15,VR:16,FB:17,kU:18,Eb:19,dV:20};g.u=up.prototype;g.u.isInputValid=function(){return this.Z!=3}; g.u.Bj=function(){return this.j}; g.u.done=function(){return this.Z===2}; g.u.tA=function(){return!1}; g.u.parse=function(v){function O(){for(;k0;)if(c=v[k++], r.X===4?r.X=0:r.X++,!c)break a;if(c==='"'&&!r.L){r.Y=S();break}if(c==="\\"&&!r.L&&(r.L=!0,c=v[k++],!c))break;if(r.L)if(r.L=!1,c==="u"&&(r.X=1),c=v[k++])continue;else break;z.lastIndex=k;c=z.exec(v);if(!c){k=v.length+1;break}k=c.index+1;c=v[c.index];if(!c)break}r.G+=k-a;continue;case M.oa:if(!c)continue;c==="r"?r.Y=M.qz:C7(r,v,k);continue;case M.qz:if(!c)continue;c==="u"?r.Y=M.DX:C7(r,v,k);continue;case M.DX:if(!c)continue;c==="e"?r.Y=S():C7(r,v,k);continue;case M.rp:if(!c)continue;c==="a"?r.Y=M.oR: C7(r,v,k);continue;case M.oR:if(!c)continue;c==="l"?r.Y=M.qN:C7(r,v,k);continue;case M.qN:if(!c)continue;c==="s"?r.Y=M.Dc:C7(r,v,k);continue;case M.Dc:if(!c)continue;c==="e"?r.Y=S():C7(r,v,k);continue;case M.VR:if(!c)continue;c==="u"?r.Y=M.FB:C7(r,v,k);continue;case M.FB:if(!c)continue;c==="l"?r.Y=M.kU:C7(r,v,k);continue;case M.kU:if(!c)continue;c==="l"?r.Y=S():C7(r,v,k);continue;case M.Eb:c==="."?r.Y=M.dV:C7(r,v,k);continue;case M.dV:if("0123456789.eE+-".indexOf(c)!==-1)continue;else k--,r.G--,r.Y= S();continue;default:C7(r,v,k)}}} function S(){var c=b.pop();return c!=null?c:M.qM} function d(c){r.U>1||(c||(c=f===-1?r.B+v.substring(A,k):v.substring(f,k)),r.tK?r.C.push(c):r.C.push(JSON.parse(c)),f=k)} for(var r=this,b=r.Ug,z=r.HW,M=ZCJ,V=v.length,A=0,f=-1,k=0;k0?(U=r.C,r.C=[],U):null}return null};yB.prototype.isInputValid=function(){return this.Z===null}; yB.prototype.Bj=function(){return this.Z}; yB.prototype.tA=function(){return!1}; yB.prototype.parse=function(v){function O(M){r.U=6;r.Z="The stream is broken @"+r.Y+"/"+b+". Error: "+M+". With input:\n";throw Error(r.Z);} function Y(){r.G=new up({TSg:!0,ZP:!0})} function S(M){if(M)for(var V=0;V1)&&O("extra status: "+M);r.C=!0;var V={};V[2]=M[0];r.B.push(V)}} for(var r=this,b=0;b0?(v=r.B,r.B=[],v):null};a6.prototype.TL=function(){return this.Y}; a6.prototype.getStatus=function(){return this.Z}; a6.prototype.tK=function(v){v=v.target;try{if(v==this.Y)a:{var O=g.id(this.Y),Y=this.Y.U,S=this.Y.getStatus(),d=g.td(this.Y);v=[];if(g.D4(this.Y)instanceof Array){var r=g.D4(this.Y);r.length>0&&r[0]instanceof Uint8Array&&(this.j=!0,v=r)}if(!(O<3||O==3&&!d&&v.length==0))if(S=S==200||S==206,O==4&&(Y==8?xt(this,7):Y==7?xt(this,8):S||xt(this,3)),this.U||(this.U=Gk$(this.Y),this.U==null&&xt(this,5)),this.Z>2)p7(this);else{if(v.length>this.G){var b=v.length;Y=[];try{if(this.U.tA())for(var z=0;zthis.G){z=d.slice(this.G);this.G=d.length;try{var V=this.U.parse(z);V!=null&&this.B&&this.B(V)}catch(A){xt(this,5);p7(this);break a}}O==4?(d.length!= 0||this.j?xt(this,2):xt(this,4),p7(this)):xt(this,1)}}}catch(A){xt(this,6),p7(this)}};g.u=iK1.prototype;g.u.gU=function(v,O){var Y=this.U[v];Y||(Y=[],this.U[v]=Y);Y.push(O);return this}; g.u.addListener=function(v,O){this.gU(v,O);return this}; g.u.removeListener=function(v,O){var Y=this.U[v];Y&&g.$Y(Y,O);(v=this.Y[v])&&g.$Y(v,O);return this}; g.u.once=function(v,O){var Y=this.Y[v];Y||(Y=[],this.Y[v]=Y);Y.push(O);return this}; g.u.J$4=function(v){var O=this.U.data;O&&mZc(v,O);(O=this.Y.data)&&mZc(v,O);this.Y.data=[]}; g.u.AlW=function(){switch(this.G.getStatus()){case 1:TV(this,"readable");break;case 5:case 6:case 4:case 7:case 3:TV(this,"error");break;case 8:TV(this,"close");break;case 2:TV(this,"end")}};t6i.prototype.serverStreaming=function(v,O,Y,S){var d=this,r=v.substring(0,v.length-S.name.length);return dd7(function(b){var z=b.EO,M=b.getMetadata(),V=v_J(d,!1);M=OZd(d,M,V,r+z.getName());var A=YWi(V,z.U,!0);b=z.Y(b.il);V.send(M,"POST",b);return A},this.uw).call(this,S.L(O,Y))};rdF.prototype.create=function(v,O){return qf7(this.Y,this.U+"/$rpc/google.internal.waa.v1.Waa/Create",v,O||{},RNw)};var bZE="://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(" "),o_w=/\bocr\b/;var Wzc=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(v){throw v;}},{Q90:!0, d$s:!0,m$s:gQJ,Jbc:M1w,NNg:!1,Pts:!1,BN0:!0,HDO:!1});var ES=null,L7=!1,un1=1,XH=Symbol("SIGNAL"),zF={version:0,HLg:0,uQ:!1,V$:void 0,EN:void 0,s8:void 0,nJ:0,xe:void 0,gs:void 0,iP:!1,uP:!1,kind:"unknown",F9:function(){return!1}, vU:function(){}, x6:function(){}, U$4:function(){}};var sg=Symbol("UNSET"),gs=Symbol("COMPUTING"),MX=Symbol("ERRORED");Object.assign({},zF,{value:sg,uQ:!0,error:null,Xy:es,kind:"computed",F9:function(v){return v.value===sg||v.value===gs}, vU:function(v){if(v.value===gs)throw Error("");var O=v.value;v.value=gs;var Y=g_w(v),S=!1;try{var d=v.j2();QB(null);S=O!==sg&&O!==MX&&d!==MX&&v.Xy(O,d)}catch(r){d=MX,v.error=r}finally{Myl(v,Y)}S?v.value=O:(v.value=d,v.version++)}});var $dQ=Object.assign({},zF,{Xy:es,value:void 0,kind:"signal"});Object.assign({},zF,{value:sg,uQ:!0,error:null,Xy:es,kind:"linkedSignal",F9:function(v){return v.value===sg||v.value===gs}, vU:function(v){if(v.value===gs)throw Error("");var O=v.value;v.value=gs;var Y=g_w(v);try{var S=v.source();var d=v.j2(S,O===sg||O===MX?void 0:{source:v.Lqd,value:O});v.Lqd=S}catch(r){d=MX,v.error=r}finally{Myl(v,Y)}O!==sg&&d!==MX&&v.Xy(O,d)?v.value=O:(v.value=d,v.version++)}});Object.assign({},zF,{uP:!0,iP:!1,x6:function(v){v.schedule!==null&&v.schedule(v.I1K)}, yp0:!1,zb8:function(){}});g.C(I6,g.sW);I6.prototype.dispose=function(){window.removeEventListener("offline",this.G);window.removeEventListener("online",this.G);this.Je.Cq(this.Z);delete I6.instance}; I6.prototype.hE=function(){return this.Y}; I6.prototype.Vw=function(){var v=this;this.Z=this.Je.EK(function(){var O;return g.B(function(Y){if(Y.U==1)return v.Y?((O=window.navigator)==null?0:O.onLine)?Y.d8(3):g.E(Y,wk(v),3):g.E(Y,wk(v),3);v.Vw();g.UE(Y)})},3E4)};n7.prototype.set=function(v,O){O=O===void 0?!0:O;0<=v&&v<52&&Number.isInteger(v)&&this.data[v]!==O&&(this.data[v]=O,this.Y=-1)}; n7.prototype.get=function(v){return!!this.data[v]};var K7;g.o8(g.ip,g.X);g.u=g.ip.prototype;g.u.start=function(){this.stop();this.B=!1;var v=xdw(this),O=ptQ(this);v&&!O&&this.U.mozRequestAnimationFrame?(this.Y=g.d1(this.U,"MozBeforePaint",this.G),this.U.mozRequestAnimationFrame(null),this.B=!0):this.Y=v&&O?v.call(this.U,this.G):this.U.setTimeout(qJQ(this.G),20)}; g.u.stop=function(){if(this.isActive()){var v=xdw(this),O=ptQ(this);v&&!O&&this.U.mozRequestAnimationFrame?jy(this.Y):v&&O?O.call(this.U,this.Y):this.U.clearTimeout(this.Y)}this.Y=null}; g.u.isActive=function(){return this.Y!=null}; g.u.R3=function(){this.B&&this.Y&&jy(this.Y);this.Y=null;this.C.call(this.Z,g.rS())}; g.u.cW=function(){this.stop();g.ip.cj.cW.call(this)};g.o8(g.mX,g.X);g.u=g.mX.prototype;g.u.e1=0;g.u.cW=function(){g.mX.cj.cW.call(this);this.stop();delete this.Y;delete this.U}; g.u.start=function(v){this.stop();this.e1=g.Z4(this.G,v!==void 0?v:this.nS)}; g.u.stop=function(){this.isActive()&&g.Pm.clearTimeout(this.e1);this.e1=0}; g.u.isActive=function(){return this.e1!=0}; g.u.xn=function(){this.e1=0;this.Y&&this.Y.call(this.U)};g.C(g.Os,g.X);g.u=g.Os.prototype;g.u.oC=function(v){this.G=arguments;this.iM||this.U?this.Y=!0:YG(this)}; g.u.stop=function(){this.iM&&(g.Pm.clearTimeout(this.iM),this.iM=null,this.Y=!1,this.G=null)}; g.u.pause=function(){this.U++}; g.u.resume=function(){this.U--;this.U||!this.Y||this.iM||(this.Y=!1,YG(this))}; g.u.cW=function(){g.X.prototype.cW.call(this);this.stop()};g.Si.prototype[Symbol.iterator]=function(){return this}; g.Si.prototype.next=function(){var v=this.Y.next();return{value:v.done?void 0:this.U.call(void 0,v.value),done:v.done}};g.o8(g.MM,g.sW);g.u=g.MM.prototype;g.u.isPlaying=function(){return this.Y==1}; g.u.isPaused=function(){return this.Y==-1}; g.u.pw=function(){this.iL("begin")}; g.u.VB=function(){this.iL("end")}; g.u.onFinish=function(){this.iL("finish")}; g.u.onStop=function(){this.iL("stop")}; g.u.iL=function(v){this.dispatchEvent(v)};var X0C=My(function(){var v=g.tc("DIV"),O=g.PE?"-webkit":af?"-moz":null,Y="transition:opacity 1s linear;";O&&(Y+=O+"-transition:opacity 1s linear;");O=lKF({style:Y});if(v.nodeType===1&&/^(script|style)$/i.test(v.tagName))throw Error("");v.innerHTML=H5(O);return g.xW(v.firstChild,"transition")!=""});g.o8(VF,g.MM);g.u=VF.prototype;g.u.play=function(){if(this.isPlaying())return!1;this.pw();this.iL("play");this.startTime=g.rS();this.Y=1;if(X0C())return g.ym(this.U,this.C),this.G=g.Z4(this.GO0,void 0,this),!0;this.zB(!1);return!1}; g.u.GO0=function(){g.Qm(this.U);FzF(this.U,this.L);g.ym(this.U,this.B);this.G=g.Z4((0,g.YY)(this.zB,this,!1),this.Z*1E3)}; g.u.stop=function(){this.isPlaying()&&this.zB(!0)}; g.u.zB=function(v){g.ym(this.U,"transition","");g.Pm.clearTimeout(this.G);g.ym(this.U,this.B);this.endTime=g.rS();this.Y=0;if(v)this.onStop();else this.onFinish();this.VB()}; g.u.cW=function(){this.stop();VF.cj.cW.call(this)}; g.u.pause=function(){};var RE3={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};AS("Element","attributes")||AS("Node","attributes");AS("Element","innerHTML")||AS("HTMLElement","innerHTML");AS("Node","nodeName");AS("Node","nodeType");AS("Node","parentNode");AS("Node","childNodes");AS("HTMLElement","style")||AS("Element","style");AS("HTMLStyleElement","sheet");var ZZF=E_1("getPropertyValue"),Xt1=E_1("setProperty");AS("Element","namespaceURI")||AS("Node","namespaceURI");var B1Q={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var n_d,YEv,qW1,I47,Jdc;n_d=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]");YEv=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.w0w=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.$G=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]");qW1=/^http:\/\/.*/;g.IKY=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");I47=/\s+/;Jdc=/[\d\u06f0-\u06f9]/;Us.prototype.g7=function(){return new cI(this.U())}; Us.prototype[Symbol.iterator]=function(){return new uE(this.U())}; Us.prototype.Y=function(){return new uE(this.U())}; g.C(cI,g.lH);cI.prototype.next=function(){return this.U.next()}; cI.prototype[Symbol.iterator]=function(){return new uE(this.U)}; cI.prototype.Y=function(){return new uE(this.U)}; g.C(uE,Us);uE.prototype.next=function(){return this.G.next()};yF.prototype.clone=function(){return new yF(this.Y,this.L,this.G,this.Z,this.B,this.C,this.U,this.X)}; yF.prototype.equals=function(v){return this.Y==v.Y&&this.L==v.L&&this.G==v.G&&this.Z==v.Z&&this.B==v.B&&this.C==v.C&&this.U==v.U&&this.X==v.X};xG.prototype.clone=function(){return new xG(this.start,this.end)}; xG.prototype.getLength=function(){return this.end-this.start};(function(){if(WAc){var v=/Windows NT ([0-9.]+)/;return(v=v.exec(g.yh()))?v[1]:"0"}return PX?(v=/1[0|1][_.][0-9_.]+/,(v=v.exec(g.yh()))?v[0].replace(/_/g,"."):"10"):g.vp?(v=/Android\s+([^\);]+)(\)|;)/,(v=v.exec(g.yh()))?v[1]:""):fJU||$$Y||kct?(v=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(v=v.exec(g.yh()))?v[1].replace(/_/g,"."):""):""})();var Pdm=function(){if(g.Jt)return pO(/Firefox\/([0-9.]+)/);if(g.fO||g.i9||g.CH)return utQ;if(g.En){if(ug()||Cd()){var v=pO(/CriOS\/([0-9.]+)/);if(v)return v}return pO(/Chrome\/([0-9.]+)/)}if(g.ch&&!ug())return pO(/Version\/([0-9.]+)/);if(Db||Hf){if(v=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.yh()))return v[1]+"."+v[2]}else if(g.yg)return(v=pO(/Android\s+([0-9.]+)/))?v:pO(/Version\/([0-9.]+)/);return""}();g.o8(g.lE,g.X);g.u=g.lE.prototype;g.u.subscribe=function(v,O,Y){var S=this.U[v];S||(S=this.U[v]=[]);var d=this.C;this.Y[d]=v;this.Y[d+1]=O;this.Y[d+2]=Y;this.C=d+3;S.push(d);return d}; g.u.unsubscribe=function(v,O,Y){if(v=this.U[v]){var S=this.Y;if(v=v.find(function(d){return S[d+1]==O&&S[d+2]==Y}))return this.jN(v)}return!1}; g.u.jN=function(v){var O=this.Y[v];if(O){var Y=this.U[O];this.B!=0?(this.G.push(v),this.Y[v+1]=function(){}):(Y&&g.$Y(Y,v),delete this.Y[v],delete this.Y[v+1],delete this.Y[v+2])}return!!O}; g.u.publish=function(v,O){var Y=this.U[v];if(Y){var S=Array(arguments.length-1),d=arguments.length,r;for(r=1;r0&&this.B==0)for(;Y=this.G.pop();)this.jN(Y)}}return r!=0}return!1}; g.u.clear=function(v){if(v){var O=this.U[v];O&&(O.forEach(this.jN,this),delete this.U[v])}else this.Y.length=0,this.U={}}; g.u.cW=function(){g.lE.cj.cW.call(this);this.clear();this.G.length=0};g.FG.prototype.set=function(v,O){O===void 0?this.Y.remove(v):this.Y.set(v,g.qd(O))}; g.FG.prototype.get=function(v){try{var O=this.Y.get(v)}catch(Y){return}if(O!==null)try{return JSON.parse(O)}catch(Y){throw"Storage: Invalid value was encountered";}}; g.FG.prototype.remove=function(v){this.Y.remove(v)};g.o8(hS,g.FG);hS.prototype.set=function(v,O){hS.cj.set.call(this,v,mdE(O))}; hS.prototype.U=function(v){v=hS.cj.get.call(this,v);if(v===void 0||v instanceof Object)return v;throw"Storage: Invalid value was encountered";}; hS.prototype.get=function(v){if(v=this.U(v)){if(v=v.data,v===void 0)throw"Storage: Invalid value was encountered";}else v=void 0;return v};g.o8(Rn,hS);Rn.prototype.set=function(v,O,Y){if(O=mdE(O)){if(Y){if(Y=Y.length)return g.rs;var d=Y.key(O++);if(v)return g.F5(d);d=Y.getItem(d);if(typeof d!=="string")throw"Storage mechanism: Invalid value was encountered";return g.F5(d)}; return S}; g.u.clear=function(){LO(this);this.Y.clear()}; g.u.key=function(v){LO(this);return this.Y.key(v)};g.o8(BI,QF);g.o8(HZw,QF);g.o8(Zl,Es);Zl.prototype.set=function(v,O){this.U.set(this.Y+v,O)}; Zl.prototype.get=function(v){return this.U.get(this.Y+v)}; Zl.prototype.remove=function(v){this.U.remove(this.Y+v)}; Zl.prototype.g7=function(v){var O=this.U[Symbol.iterator](),Y=this,S=new g.lH;S.next=function(){var d=O.next();if(d.done)return d;for(d=d.value;d.slice(0,Y.Y.length)!=Y.Y;){d=O.next();if(d.done)return d;d=d.value}return g.F5(v?d.slice(Y.Y.length):Y.U.get(d))}; return S};wr.prototype.getValue=function(){return this.U}; wr.prototype.clone=function(){return new wr(this.Y,this.U)};g.u=In.prototype;g.u.xW=function(v,O){var Y=this.Y;Y.push(new wr(v,O));v=Y.length-1;O=this.Y;for(Y=O[v];v>0;){var S=v-1>>1;if(O[S].Y>Y.Y)O[v]=O[S],v=S;else break}O[v]=Y}; g.u.remove=function(){var v=this.Y,O=v.length,Y=v[0];if(!(O<=0)){if(O==1)v.length=0;else{v[0]=v.pop();v=0;O=this.Y;for(var S=O.length,d=O[v];v>1;){var r=v*2+1,b=v*2+2;r=bd.Y)break;O[v]=O[r];v=r}O[v]=d}return Y.getValue()}}; g.u.w7=function(){for(var v=this.Y,O=[],Y=v.length,S=0;S>>16&65535|0;for(var r;Y!==0;){r=Y>2E3?2E3:Y;Y-=r;do d=d+O[S++]|0,v=v+d|0;while(--r);d%=65521;v%=65521}return d|v<<16|0};for(var fY={},V1,PLS=[],Ab=0;Ab<256;Ab++){V1=Ab;for(var GwU=0;GwU<8;GwU++)V1=V1&1?3988292384^V1>>>1:V1>>>1;PLS[Ab]=V1}fY=function(v,O,Y,S){Y=S+Y;for(v^=-1;S>>8^PLS[(v^O[S])&255];return v^-1};var bu={};bu={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 NM=[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],Y0=[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],yUc=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],gHn=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],zq=Array(576);KO(zq);var sy=Array(60);KO(sy);var Oy=Array(512);KO(Oy);var HI=Array(256);KO(HI);var vk=Array(29);KO(vk);var Sr=Array(30);KO(Sr);var cUc,uQw,Ce1,Ufm=!1;var uu;uu=[new ck(0,0,0,0,function(v,O){var Y=65535;for(Y>v.yF-5&&(Y=v.yF-5);;){if(v.I1<=1){$0(v);if(v.I1===0&&O===0)return 1;if(v.I1===0)break}v.J$+=v.I1;v.I1=0;var S=v.v7+Y;if(v.J$===0||v.J$>=S)if(v.I1=v.J$-S,v.J$=S,gz(v,!1),v.aF.bO===0)return 1;if(v.J$-v.v7>=v.Jz-262&&(gz(v,!1),v.aF.bO===0))return 1}v.xW=0;if(O===4)return gz(v,!0),v.aF.bO===0?3:4;v.J$>v.v7&&gz(v,!1);return 1}), new ck(4,4,8,4,k0),new ck(4,5,16,8,k0),new ck(4,6,32,32,k0),new ck(4,4,16,16,Uy),new ck(8,16,32,32,Uy),new ck(8,16,128,128,Uy),new ck(8,32,128,256,Uy),new ck(32,128,258,1024,Uy),new ck(32,258,258,4096,Uy)];var k_3={};k_3=function(){this.input=null;this.S$=this.kf=this.xM=0;this.output=null;this.zC=this.bO=this.zW=0;this.msg="";this.state=null;this.Ls=2;this.Zk=0};var aqQ=Object.prototype.toString; CY.prototype.push=function(v,O){var Y=this.aF,S=this.options.chunkSize;if(this.ended)return!1;var d=O===~~O?O:O===!0?4:0;typeof v==="string"?Y.input=OBg(v):aqQ.call(v)==="[object ArrayBuffer]"?Y.input=new Uint8Array(v):Y.input=v;Y.xM=0;Y.kf=Y.input.length;do{Y.bO===0&&(Y.output=new JS.iK(S),Y.zW=0,Y.bO=S);v=$f3(Y,d);if(v!==1&&v!==0)return this.VB(v),this.ended=!0,!1;if(Y.bO===0||Y.kf===0&&(d===4||d===2))if(this.options.to==="string"){var r=JS.WN(Y.output,Y.zW);O=r;r=r.length;if(r<65537&&(O.subarray&& KNC||!O.subarray))O=String.fromCharCode.apply(null,JS.WN(O,r));else{for(var b="",z=0;z0||Y.bO===0)&&v!==1);if(d===4)return(Y=this.aF)&&Y.state?(S=Y.state.status,S!==42&&S!==69&&S!==73&&S!==91&&S!==103&&S!==113&&S!==666?v=o$(Y,-2):(Y.state=null,v=S===113?o$(Y,-3):0)):v=-2,this.VB(v),this.ended=!0,v===0;d===2&&(this.VB(0),Y.bO=0);return!0}; CY.prototype.VB=function(v){v===0&&(this.result=this.options.to==="string"?this.chunks.join(""):JS.gg(this.chunks));this.chunks=[];this.err=v;this.msg=this.aF.msg};var a$="@@redux/INIT"+yG(),hOn="@@redux/REPLACE"+yG();var ROJ=typeof Symbol==="function"&&Symbol.observable||"@@observable";var iCS=[0,YJw,-3,Yj];g.C(LRQ,px);var U97=function(){var v=[0,dNt,SJ0,Ho,YJw,Ho,-1,Yj,YJw,Yj,-1,dNt,Yj,SJ0,Nm,iCS,Ho,-1,Yj];return function(O,Y){var S={MC:!0};Y&&Object.assign(S,Y);O=nri(O,void 0,void 0,S);try{var d=new LRQ,r=d.Un;tR(v)(r,O);var b=d}finally{O.free()}return b}}();var BA1=235331340;var NJ3=new g.Tq("adInfoDialogEndpoint");var pr1=new g.Tq("adPingingEndpoint");var i_c=new g.Tq("crossDeviceProgressCommand");var dZ=new g.Tq("actionCompanionAdRenderer");var sn=new g.Tq("adActionInterstitialRenderer");var mNS=new g.Tq("adDurationRemainingRenderer");var ZF=new g.Tq("adHoverTextButtonRenderer");var Dl1=new g.Tq("adInfoDialogRenderer");var c8=new g.Tq("adMessageRenderer");var XK=new g.Tq("adPreviewRenderer");var br=new g.Tq("adsEngagementPanelRenderer");var c9g=new g.Tq("dismissablePanelTextPortraitImageRenderer");var kMg=new g.Tq("adsEngagementPanelSectionListViewModel");var tUt=new g.Tq("flyoutCtaRenderer");var rZ=new g.Tq("imageCompanionAdRenderer");var Wa=new g.Tq("instreamAdPlayerOverlayRenderer");var u$F=new g.Tq("instreamSurveyAdBackgroundImageRenderer");var BW=new g.Tq("instreamSurveyAdPlayerOverlayRenderer");var aR=new g.Tq("instreamSurveyAdRenderer"),LG=new g.Tq("instreamSurveyAdSingleSelectQuestionRenderer"),QS=new g.Tq("instreamSurveyAdMultiSelectQuestionRenderer"),fW=new g.Tq("instreamSurveyAdAnswerRenderer"),DNK=new g.Tq("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var AX=new g.Tq("instreamVideoAdRenderer");var HCY=new g.Tq("textOverlayAdContentRenderer"),NSN=new g.Tq("enhancedTextOverlayAdContentRenderer"),vIw=new g.Tq("imageOverlayAdContentRenderer");var zB=new g.Tq("playerOverlayLayoutRenderer");var go=new g.Tq("videoInterstitialButtonedCenteredLayoutRenderer");var xPQ=new g.Tq("aboveFeedAdLayoutRenderer");var p3g=new g.Tq("belowPlayerAdLayoutRenderer");var au1=new g.Tq("inPlayerAdLayoutRenderer");var TE=new g.Tq("playerBytesAdLayoutRenderer");var EB=new g.Tq("playerBytesSequenceItemAdLayoutRenderer");var eq=new g.Tq("playerUnderlayAdLayoutRenderer");var yS=new g.Tq("adIntroRenderer");var Mc=new g.Tq("playerBytesSequentialLayoutRenderer");var rpn=new g.Tq("slidingTextPlayerOverlayRenderer");var xN=new g.Tq("surveyTextInterstitialRenderer");var lr=new g.Tq("videoAdTrackingRenderer");var OgY=new g.Tq("simpleAdBadgeRenderer");var zo=new g.Tq("skipAdRenderer"),YIK=new g.Tq("skipButtonRenderer");var nG=new g.Tq("adSlotRenderer");var hX=new g.Tq("squeezebackPlayerSidePanelRenderer");var SI0=new g.Tq("timedPieCountdownRenderer");var IV=new g.Tq("adAvatarViewModel");var qm=new g.Tq("adBadgeViewModel");var nI=new g.Tq("adButtonViewModel");var dvN=new g.Tq("adDetailsLineViewModel");var rsJ=new g.Tq("adDisclosureBannerViewModel");var bgN=new g.Tq("adPodIndexViewModel");var oIL=new g.Tq("imageBackgroundViewModel");var jTN=new g.Tq("adGridCardCollectionViewModel");var Wyv=new g.Tq("adGridCardTextViewModel");var z_C=new g.Tq("adPreviewViewModel");var sTw=new g.Tq("playerAdAvatarLockupCardButtonedViewModel");var gIY=new g.Tq("skipAdButtonViewModel");var MYN=new g.Tq("skipAdViewModel");var VYL=new g.Tq("timedPieCountdownViewModel");var AsU=new g.Tq("visitAdvertiserLinkViewModel");var oR=new g.Tq("bannerImageLayoutViewModel");var jq=new g.Tq("topBannerImageTextIconButtonedLayoutViewModel");var WW=new g.Tq("adsEngagementPanelLayoutViewModel");var RR=new g.Tq("displayUnderlayTextGridCardsLayoutViewModel");g.kL=new g.Tq("browseEndpoint");var fcC=new g.Tq("confirmDialogEndpoint");var vyg=new g.Tq("commandContext");var $Li=new g.Tq("rawColdConfigGroup");var fgm=new g.Tq("rawHotConfigGroup");g.uC=new g.Tq("commandExecutorCommand");g.C(XlE,px);var Vh1={fI1:0,bvx:1,BSu:32,ZvO:61,Lj4:67,Vsd:103,g$s:86,QXs:42,dds:60,tsx:62,Ctx:73,Jeu:76,Fjx:88,v$O:90,Ae1:99,eb8:98,kVO:100,NSx:102,WjW:41,Sos:69,Xas:70,res:71,fsg:2,asW:27,ANDROID:3,GGc:54,MZu:14,NE8:91,pEd:55,cFW:24,efK:20,HSd:18,BE0:21,d7c:104,ZS0:30,VZK:29,Flc:28,II0:101,vbK:34,C80:36,Qmx:38,IOS:5,wVW:15,Pvx:92,Rqg:40,udW:25,xT8:17,f_c:19,a_x:64,KK1:66,EeK:26,srg:22,I_g:33,jrg:68,zqg:35,Tx1:53,y20:37,iq1:39,ASc:7,Wyx:57,SJW:43,rSO:59,Xux:93,gb4:74,oqu:75,qJg:85,DkW:65,wuc:80,RAs:8,kH8:10, ukO:58,iU1:63,lI0:72,hfd:23,Dds:11,lK8:13,nbc:12,LyK:16,Hvu:56,hbx:31,RPK:77,pVx:84,mdg:87,equ:89,c24:94,vpx:95};g.C(lu,px);lu.prototype.JO=function(){return N3(this,3)}; lu.prototype.Fz=function(){return N3(this,5)}; lu.prototype.fL=function(v){return dy(this,5,v)};g.C(Fb,px);g.C(wlg,px);g.C(h5,px);g.u=h5.prototype;g.u.getDeviceId=function(){return N3(this,6)}; g.u.aN=function(v){var O=Rr(this,9,GQ,3,!0);TQ(O,v);return O[v]}; g.u.getPlayerType=function(){return vg(this,36)}; g.u.setHomeGroupInfo=function(v){return i3(this,wlg,81,v)}; g.u.clearLocationPlayabilityToken=function(){return pr(this,89)};g.C(R$,px);R$.prototype.getValue=function(){return N3(this,q3(this,VQm,2))}; var VQm=[2,3,4,5,6];g.C(er,px);er.prototype.setTrackingParams=function(v){return pr(this,1,qIE(v,!1))};g.C(Ey,px);g.C(QG,px);QG.prototype.aN=function(v){var O=Rr(this,5,iV,3,!0);TQ(O,v);return O[v]};g.C(LY,px);LY.prototype.getToken=function(){return Yv(this,2)}; LY.prototype.setToken=function(v){return dy(this,2,v)};g.C(Bk,px);Bk.prototype.setSafetyMode=function(v){return bM(this,5,v)};g.C(Zr,px);Zr.prototype.LQ=function(v){return i3(this,h5,1,v)};var IR=new g.Tq("thumbnailLandscapePortraitRenderer");g.$vK=new g.Tq("changeEngagementPanelVisibilityAction");var a_d=new g.Tq("continuationCommand");g.kgw=new g.Tq("openPopupAction");g.kj=new g.Tq("webCommandMetadata");var KJl=new g.Tq("metadataBadgeRenderer");var yrw=new g.Tq("signalServiceEndpoint");var Xf=new g.Tq("innertubeCommand");var zUw=new g.Tq("loggingDirectives");var aOJ={l0O:"EMBEDDED_PLAYER_MODE_UNKNOWN",ofs:"EMBEDDED_PLAYER_MODE_DEFAULT",DY8:"EMBEDDED_PLAYER_MODE_PFP",qzO:"EMBEDDED_PLAYER_MODE_PFL"};var $rg=new g.Tq("channelThumbnailEndpoint");var fkE=new g.Tq("embeddedPlayerErrorMessageRenderer");var gOi=new g.Tq("embeddedPlayerOverlayVideoDetailsRenderer"),ky1=new g.Tq("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),UrE=new g.Tq("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var qB3=new g.Tq("embedsInfoPanelRenderer");var UvY=new g.Tq("feedbackEndpoint");var csS=new g.Tq("callToActionButtonViewModel");var uUN=new g.Tq("interactionLoggingCommandMetadata");var c5m={ce0:"WEB_DISPLAY_MODE_UNKNOWN",Udd:"WEB_DISPLAY_MODE_BROWSER",Msd:"WEB_DISPLAY_MODE_MINIMAL_UI",pax:"WEB_DISPLAY_MODE_STANDALONE",GV3:"WEB_DISPLAY_MODE_FULLSCREEN"};g.C(Xb,px);Xb.prototype.getPlayerType=function(){return vg(this,7)}; Xb.prototype.fE=function(){return N3(this,19)}; Xb.prototype.setVideoId=function(v){return dy(this,19,v)};g.C(wz,px);g.C(I$,px);g.C(q7,px); var ChK=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519];var ysL=new g.Tq("loggingContext");g.C(nY,px);g.C(J5,px);J5.prototype.fE=function(){return Yv(this,q3(this,gN,1))}; J5.prototype.setVideoId=function(v){return wD(this,1,gN,YZ(v))}; J5.prototype.getPlaylistId=function(){return Yv(this,q3(this,gN,2))}; var gN=[1,2];g.C(Iqd,px);var m6=new g.Tq("changeKeyedMarkersVisibilityCommand");var ac8=new g.Tq("changeMarkersVisibilityCommand");var GEQ=new g.Tq("loadMarkersCommand");var xvU=new g.Tq("suggestedActionDataViewModel");var rGQ=new g.Tq("timelyActionViewModel");var dhm=new g.Tq("timelyActionsOverlayViewModel");var Vt$=new g.Tq("productListItemRenderer");var p5J=new g.Tq("shoppingOverlayRenderer");var MBE=new g.Tq("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var T3t=new g.Tq("adFeedbackEndpoint");var lcS=new g.Tq("menuEndpoint");var Uml=new g.Tq("phoneDialerEndpoint");var $mJ=new g.Tq("sendSmsEndpoint");var sLc=new g.Tq("copyTextEndpoint");var Fyt=new g.Tq("shareEndpoint"),h_L=new g.Tq("shareEntityEndpoint"),R_N=new g.Tq("shareEntityServiceEndpoint"),e_J=new g.Tq("webPlayerShareEntityServiceEndpoint");g.qU=new g.Tq("urlEndpoint");g.Gj=new g.Tq("watchEndpoint");var EIJ=new g.Tq("watchPlaylistEndpoint");g.QTt=new g.Tq("offlineOrchestrationActionCommand");var PnJ=new g.Tq("compositeVideoOverlayRenderer");var LyY=new g.Tq("miniplayerRenderer");var W5J=new g.Tq("paidContentOverlayRenderer");var B3L=new g.Tq("playerMutedAutoplayOverlayRenderer"),ZgN=new g.Tq("playerMutedAutoplayEndScreenRenderer");var SBQ=new g.Tq("unserializedPlayerResponse"),X5t=new g.Tq("unserializedPlayerResponse");var w5N=new g.Tq("playlistEditEndpoint");var Ug;g.wZ=new g.Tq("buttonRenderer");Ug=new g.Tq("toggleButtonRenderer");var $PF=new g.Tq("counterfactualRenderer");var IcY=new g.Tq("resolveUrlCommandMetadata");var qIJ=new g.Tq("modifyChannelNotificationPreferenceEndpoint");var xeF=new g.Tq("pingingEndpoint");var nIU=new g.Tq("unsubscribeEndpoint");g.Ul=new g.Tq("subscribeButtonRenderer");var Jsv=new g.Tq("subscribeEndpoint");var BQE=new g.Tq("buttonViewModel");var UPm=new g.Tq("qrCodeRenderer");var fp3={mEg:"LIVING_ROOM_APP_MODE_UNSPECIFIED",Q48:"LIVING_ROOM_APP_MODE_MAIN",HTW:"LIVING_ROOM_APP_MODE_KIDS",BWx:"LIVING_ROOM_APP_MODE_MUSIC",dEg:"LIVING_ROOM_APP_MODE_UNPLUGGED",eP3:"LIVING_ROOM_APP_MODE_GAMING"};var XWd=new g.Tq("autoplaySwitchButtonRenderer");var ut,b3g,zrw,$xw;ut=new g.Tq("decoratedPlayerBarRenderer");b3g=new g.Tq("chapteredPlayerBarRenderer");zrw=new g.Tq("multiMarkersPlayerBarRenderer");$xw=new g.Tq("chapterRenderer");g.zH3=new g.Tq("markerRenderer");var CY3=new g.Tq("decoratedPlayheadRenderer");var nNQ=new g.Tq("desktopOverlayConfigRenderer");var uAn=new g.Tq("engagementPanelSectionListRenderer");var IFE=new g.Tq("gatedActionsOverlayViewModel");var VA7=new g.Tq("heatMarkerRenderer");var MAg=new g.Tq("heatmapRenderer");var Pr3=new g.Tq("watchToWatchTransitionRenderer");var VBd=new g.Tq("playlistPanelRenderer");var KyS=new g.Tq("productUpsellSuggestedActionViewModel");var Phv=new g.Tq("suggestedActionTimeRangeTrigger"),GgN=new g.Tq("suggestedActionsRenderer"),igC=new g.Tq("suggestedActionRenderer");var APQ=new g.Tq("timedMarkerDecorationRenderer");var Fbc=new g.Tq("cipher");var dcn=new g.Tq("playerVars");var mvv=new g.Tq("playerVars");var cP=g.Pm.window,tYY,DvY,KY=(cP==null?void 0:(tYY=cP.yt)==null?void 0:tYY.config_)||(cP==null?void 0:(DvY=cP.ytcfg)==null?void 0:DvY.data_)||{};g.Gc("yt.config_",KY);var Dr=[];var Df7=/^[\w.]*$/,G_F={q:!0,search_query:!0},Peg=String(Oq);var sq=new function(){var v=window.document;this.Y=window;this.U=v}; g.Gc("yt.ads_.signals_.getAdSignalsString",function(v){return Yc(MS(v))});g.rS();var NAQ="XMLHttpRequest"in g.Pm?function(){return new XMLHttpRequest}:null;var Hg0="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.F(Hg0);var SSw={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"},Vsi="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.F(Hg0)),zXw=!1,otn=xc;g.C(lF,W0);RZ.prototype.then=function(v,O,Y){return this.Y?this.Y.then(v,O,Y):this.U===1&&v?(v=v.call(Y,this.G))&&typeof v.then==="function"?v:Eq(v):this.U===2&&O?(v=O.call(Y,this.G))&&typeof v.then==="function"?v:ee(v):this}; RZ.prototype.getValue=function(){return this.G}; RZ.prototype.W$=function(){return this.U==2}; RZ.prototype.$goog_Thenable=!0;var QY=!1;var G2=Db||Hf;var Cpg=/^([0-9\.]+):([0-9\.]+)$/;g.C(ML,W0);ML.prototype.name="BiscottiError";g.C(gV,W0);gV.prototype.name="BiscottiMissingError";var pMl={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},VD=null;var OCg=gF(["data-"]),LXF={};var N38=0,Ai=g.PE?"webkit":af?"moz":g.fO?"ms":g.CH?"o":"",vrN=g.il("ytDomDomGetNextId")||function(){return++N38}; g.Gc("ytDomDomGetNextId",vrN);var wM7={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};uK.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; uK.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; uK.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Cy=g.Pm.ytEventsEventsListeners||{};g.Gc("ytEventsEventsListeners",Cy);var ntQ=g.Pm.ytEventsEventsCounter||{count:0};g.Gc("ytEventsEventsCounter",ntQ);var GV$=My(function(){var v=!1;try{var O=Object.defineProperty({},"passive",{get:function(){v=!0}}); window.addEventListener("test",null,O)}catch(Y){}return v}),JBn=My(function(){var v=!1; try{var O=Object.defineProperty({},"capture",{get:function(){v=!0}}); window.addEventListener("test",null,O)}catch(Y){}return v});var uv;uv=window;g.J=uv.ytcsi&&uv.ytcsi.now?uv.ytcsi.now:uv.performance&&uv.performance.timing&&uv.performance.now&&uv.performance.timing.navigationStart?function(){return uv.performance.timing.navigationStart+uv.performance.now()}:function(){return(new Date).getTime()};g.o8(T4,g.X);T4.prototype.j=function(v){v.Y===void 0&&IOE(v);var O=v.Y;v.U===void 0&&IOE(v);this.Y=new g.lg(O,v.U)}; T4.prototype.EP=function(){return this.Y||new g.lg}; T4.prototype.tK=function(){if(this.Y){var v=(0,g.J)();if(this.B!=0){var O=this.C,Y=this.Y,S=O.x-Y.x;O=O.y-Y.y;S=Math.sqrt(S*S+O*O)/(v-this.B);this.U[this.G]=Math.abs((S-this.Z)/this.Z)>.5?1:0;for(Y=O=0;Y<4;Y++)O+=this.U[Y]||0;O>=3&&this.L();this.Z=S}this.B=v;this.C=this.Y;this.G=(this.G+1)%4}}; T4.prototype.cW=function(){g.Uq(this.X);g.aU(this.Ug)};g.C(lK,g.X);lK.prototype.S=function(v,O,Y,S,d){Y=g.N7((0,g.YY)(Y,S||this.pj));Y={target:v,name:O,callback:Y};var r;d&&GV$()&&(r={passive:!0});v.addEventListener(O,Y.callback,r);this.L.push(Y);return Y}; lK.prototype.g2=function(v){for(var O=0;O=I.SI)||x.Y.version>=t||x.Y.objectStoreNames.contains(L)||l.push(L)}M=l;if(M.length===0){a.d8(5);break}V=Object.keys(Y.options.hq); A=z.objectStoreNames();if(Y.ZY.options.version+1)throw k.close(),Y.G=!1,Qnw(Y,U);return a.return(k);case 8:throw O(), f instanceof Error&&!g.uF("ytidb_async_stack_killswitch")&&(f.stack=f.stack+"\n"+b.substring(b.indexOf("\n")+1)),u9(f,Y.name,"",(c=Y.options.version)!=null?c:-1);}})} function O(){Y.Y===S&&(Y.Y=void 0)} var Y=this;if(!this.G)throw Qnw(this);if(this.Y)return this.Y;var S,d={blocking:function(r){r.close()}, closed:O,fQO:O,upgrade:this.options.upgrade};return this.Y=S=v()};var KQ=new nQ("YtIdbMeta",{hq:{databases:{SI:1}},upgrade:function(v,O){O(1)&&g.FF(v,"databases",{keyPath:"actualName"})}});var tk,mB=new function(){}(new function(){});new g.Mf;g.C(Nl,nQ);Nl.prototype.U=function(v,O,Y){Y=Y===void 0?{}:Y;return(this.options.shared?JSF:nG7)(v,O,Object.assign({},Y))}; Nl.prototype.delete=function(v){v=v===void 0?{}:v;return(this.options.shared?iOJ:Kp3)(this.name,v)};var W4U={},ti7=g.vQ("ytGcfConfig",{hq:(W4U.coldConfigStore={SI:1},W4U.hotConfigStore={SI:1},W4U),shared:!1,upgrade:function(v,O){O(1)&&(g.LQ(g.FF(v,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.LQ(g.FF(v,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.C(YC,g.X);YC.prototype.cW=function(){for(var v=g.y(this.U),O=v.next();!O.done;O=v.next()){var Y=this.Y;O=Y.indexOf(O.value);O>=0&&Y.splice(O,1)}this.U.length=0;g.X.prototype.cW.call(this)};jx.prototype.fL=function(v){this.hotHashData=v;g.Gc("yt.gcf.config.hotHashData",this.hotHashData||null)};var zeL=typeof TextEncoder!=="undefined"?new TextEncoder:null,Xkc=zeL?function(v){return zeL.encode(v)}:function(v){v=g.ra(v); for(var O=new Uint8Array(v.length),Y=0;Y=O?!1:!0}; g.u.V9=function(){var v=this;if(!LR(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Ke.fg("QUEUED",this.jT).then(function(O){O&&!v.Nc(O,v.WU)?v.Je.EK(function(){return g.B(function(Y){if(Y.U==1)return O.id===void 0?Y.d8(2):g.E(Y,v.Ke.aW(O.id,v.jT),2);v.V9();g.UE(Y)})}):v.gf.hE()&&v.Nv()})};var X2;var ci1={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, adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519};var gr8={},Sqg=g.vQ("ServiceWorkerLogsDatabase",{hq:(gr8.SWHealthLog={SI:1},gr8),shared:!0,upgrade:function(v,O){O(1)&&g.LQ(g.FF(v,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var qF={},gcn=0;var nR;KR.prototype.requestComplete=function(v,O){O&&(this.U=!0);v=this.removeParams(v);this.Y.get(v)||this.Y.set(v,O)}; KR.prototype.isEndpointCFR=function(v){v=this.removeParams(v);return(v=this.Y.get(v))?!1:v===!1&&this.U?!0:null}; KR.prototype.removeParams=function(v){return v.split("?")[0]}; KR.prototype.removeParams=KR.prototype.removeParams;KR.prototype.isEndpointCFR=KR.prototype.isEndpointCFR;KR.prototype.requestComplete=KR.prototype.requestComplete;KR.getInstance=PQ;g.C(GY,g.sW);g.u=GY.prototype;g.u.hE=function(){return this.Y.hE()}; g.u.Rg=function(v){this.Y.Y=v}; g.u.Eh=function(){var v=window.navigator.onLine;return v===void 0?!0:v}; g.u.rj=function(){this.U=!0}; g.u.listen=function(v,O){return this.Y.listen(v,O)}; g.u.SS=function(v){v=wk(this.Y,v);v.then(function(O){g.uF("use_cfr_monitor")&&PQ().requestComplete("generate_204",O)}); return v}; GY.prototype.sendNetworkCheckRequest=GY.prototype.SS;GY.prototype.listen=GY.prototype.listen;GY.prototype.enableErrorFlushing=GY.prototype.rj;GY.prototype.getWindowStatus=GY.prototype.Eh;GY.prototype.networkStatusHint=GY.prototype.Rg;GY.prototype.isNetworkAvailable=GY.prototype.hE;GY.getInstance=Aym;g.C(g.iA,g.sW);g.iA.prototype.hE=function(){var v=g.il("yt.networkStatusManager.instance.isNetworkAvailable");return v?v.bind(this.U)():!0}; g.iA.prototype.Rg=function(v){var O=g.il("yt.networkStatusManager.instance.networkStatusHint").bind(this.U);O&&O(v)}; g.iA.prototype.SS=function(v){var O=this,Y;return g.B(function(S){Y=g.il("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(O.U);return g.uF("skip_network_check_if_cfr")&&PQ().isEndpointCFR("generate_204")?S.return(new Promise(function(d){var r;O.Rg(((r=window.navigator)==null?void 0:r.onLine)||!0);d(O.hE())})):Y?S.return(Y(v)):S.return(!0)})};var m_;g.C(tr,BQ);tr.prototype.writeThenSend=function(v,O){O||(O={});O=HQ(v,O);g.ti()||(this.Y=!1);BQ.prototype.writeThenSend.call(this,v,O)}; tr.prototype.sendThenWrite=function(v,O,Y){O||(O={});O=HQ(v,O);g.ti()||(this.Y=!1);BQ.prototype.sendThenWrite.call(this,v,O,Y)}; tr.prototype.sendAndWrite=function(v,O){O||(O={});O=HQ(v,O);g.ti()||(this.Y=!1);BQ.prototype.sendAndWrite.call(this,v,O)}; tr.prototype.awaitInitialization=function(){return this.G.promise};var cym=g.Pm.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Gc("ytNetworklessLoggingInitializationOptions",cym);g.NF.prototype.isReady=function(){!this.config_&&Mr$()&&(this.config_=g.zY());return!!this.config_};var MRC,Sk,rE;MRC=g.Pm.ytPubsubPubsubInstance||new g.lE;Sk=g.Pm.ytPubsubPubsubSubscribedKeys||{};rE=g.Pm.ytPubsubPubsubTopicToKeys||{};g.dE=g.Pm.ytPubsubPubsubIsSynchronous||{};g.lE.prototype.subscribe=g.lE.prototype.subscribe;g.lE.prototype.unsubscribeByKey=g.lE.prototype.jN;g.lE.prototype.publish=g.lE.prototype.publish;g.lE.prototype.clear=g.lE.prototype.clear;g.Gc("ytPubsubPubsubInstance",MRC);g.Gc("ytPubsubPubsubTopicToKeys",rE);g.Gc("ytPubsubPubsubIsSynchronous",g.dE); g.Gc("ytPubsubPubsubSubscribedKeys",Sk);var pfi={};g.C(AI,g.X);AI.prototype.append=function(v){if(!this.U)throw Error("This does not support the append operation");v=v.dR();this.dR().appendChild(v)}; g.C(f8,AI);f8.prototype.dR=function(){return this.Y};g.C(uj,g.X);uj.prototype.onTouchStart=function(v){this.L=!0;this.U=v.touches.length;this.Y.isActive()&&(this.Y.stop(),this.Z=!0);v=v.touches;this.C=Fnm(this,v)||v.length!=1;var O=v.item(0);this.C||!O?this.j=this.X=Infinity:(this.X=O.clientX,this.j=O.clientY);for(O=this.G.length=0;O=0)}if(O||v&&Math.pow(v.clientX-this.X,2)+Math.pow(v.clientY-this.j,2)>25)this.B=!0}; uj.prototype.onTouchEnd=function(v){var O=v.changedTouches;O&&this.L&&this.U==1&&!this.B&&!this.Z&&!this.C&&Fnm(this,O)&&(this.tK=v,this.Y.start());this.U=v.touches.length;this.U===0&&(this.B=this.L=!1,this.G.length=0);this.Z=!1};var C8=Date.now().toString();var TI={};var Ea=Symbol("injectionDeps");Fy.prototype.toString=function(){return"InjectionToken("+this.name+")"}; ea1.prototype.resolve=function(v){return v instanceof hI?Qc(this,v.key,[],!0):Qc(this,v,[])};var L8;var ZM=window;var q1=g.uF("web_enable_lifecycle_monitoring")&&Xy()!==0,wfQ=g.uF("web_enable_lifecycle_monitoring");BGg.prototype.cancel=function(){for(var v=g.y(this.Y),O=v.next();!O.done;O=v.next())O=O.value,O.jobId===void 0||O.nw||this.scheduler.Cq(O.jobId),O.nw=!0;this.U.resolve()};g.u=n8.prototype;g.u.install=function(v){this.plugins.push(v);return this}; g.u.uninstall=function(){var v=this;g.Bm.apply(0,arguments).forEach(function(O){O=v.plugins.indexOf(O);O>-1&&v.plugins.splice(O,1)})}; g.u.transition=function(v,O){var Y=this;q1&&QZw(this.state);var S=this.transitions.find(function(r){return Array.isArray(r.from)?r.from.find(function(b){return b===Y.state&&r.to===v}):r.from===Y.state&&r.to===v}); if(S){this.U&&(ZSc(this.U),this.U=void 0);Ibn(this,v,O);this.state=v;q1&&wE(this.state);S=S.action.bind(this);var d=this.plugins.filter(function(r){return r[v]}).map(function(r){return r[v]}); S(Xf7(this,d),O)}else throw Error("no transition specified from "+this.state+" to "+v);}; g.u.T4g=function(v){var O=g.Bm.apply(1,arguments);g.O8();for(var Y=g.y(v),S=Y.next(),d={};!S.done;d={ya:void 0},S=Y.next())d.ya=S.value,bOi(function(r){return function(){K8(r.ya.name);GI(function(){return r.ya.callback.apply(r.ya,g.F(O))}); PG(r.ya.name)}}(d))}; g.u.EZx=function(v){var O=g.Bm.apply(1,arguments),Y,S,d,r;return g.B(function(b){b.U==1&&(g.O8(),Y=g.y(v),S=Y.next(),d={});if(b.U!=3){if(S.done)return b.d8(0);d.V3=S.value;d.BQ=void 0;r=function(z){return function(){K8(z.V3.name);var M=GI(function(){return z.V3.callback.apply(z.V3,g.F(O))}); sR(M)?z.BQ=g.uF("web_lifecycle_error_handling_killswitch")?M.then(function(){PG(z.V3.name)}):M.then(function(){PG(z.V3.name)},function(V){Ln$(V); PG(z.V3.name)}):PG(z.V3.name)}}(d); bOi(r);return d.BQ?g.E(b,d.BQ,3):b.d8(3)}d={V3:void 0,BQ:void 0};S=Y.next();return b.d8(2)})}; g.u.Q7=function(v){var O=g.Bm.apply(1,arguments),Y=this,S=v.map(function(d){return{DZ:function(){K8(d.name);GI(function(){return d.callback.apply(d,g.F(O))}); PG(d.name)}, priority:JI(Y,d)}}); S.length&&(this.U=new BGg(S))}; g.bl.Object.defineProperties(n8.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var mc;g.C(ij,n8);ij.prototype.Z=function(v,O){var Y=this;this.Y=g.NL(0,function(){Y.currentState==="application_navigating"&&Y.transition("none")},5E3); v(O==null?void 0:O.event)}; ij.prototype.C=function(v,O){this.Y&&(g.qA.Cq(this.Y),this.Y=null);v(O==null?void 0:O.event)};var cr=[];g.Gc("yt.logging.transport.getScrapedGelPayloads",function(){return cr});tI.prototype.storePayload=function(v,O){v=DM(v);this.store[v]?this.store[v].push(O):(this.U={},this.store[v]=[O]);this.Y++;g.uF("more_accurate_gel_parser")&&(O=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(O));return v}; tI.prototype.smartExtractMatchingEntries=function(v){if(!v.keys.length)return[];for(var O=N1(this,v.keys.splice(0,1)[0]),Y=[],S=0;S=0){S=!1;break a}}S=!0}S&&(O=Im(O))&&this.CQ(O)}}; g.u.LK=function(v){return v}; g.u.onTouchStart=function(v){this.HW.onTouchStart(v)}; g.u.onTouchMove=function(v){this.HW.onTouchMove(v)}; g.u.onTouchEnd=function(v){if(this.HW)this.HW.onTouchEnd(v)}; g.u.CQ=function(v){this.layoutId?this.Rd.executeCommand(v,this.layoutId):(v=new g.iK("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.LP(v))}; g.u.createServerVe=function(v,O){this.api.createServerVe(v,this);this.api.setTrackingParams(v,O)}; g.u.logVisibility=function(v,O){this.api.hasVe(v)&&this.api.logVisibility(v,O,this.interactionLoggingClientData)}; g.u.cW=function(){this.clear(null);this.g2(this.n1);for(var v=g.y(this.JK),O=v.next();!O.done;O=v.next())this.g2(O.value);g.k9.prototype.cW.call(this)};g.C(Zn,U2); Zn.prototype.init=function(v,O,Y){U2.prototype.init.call(this,v,O,Y);this.Y=O;if(O.text==null&&O.icon==null)g.Br(Error("ButtonRenderer did not have text or an icon set."));else{switch(O.style||null){case "STYLE_UNKNOWN":v="ytp-ad-button-link";break;default:v=null}v!=null&&g.on(this.element,v);O.text!=null&&(v=g.ui(O.text),g.Vh(v)||(this.element.setAttribute("aria-label",v),this.G=new g.k9({J:"span",W:"ytp-ad-button-text",M3:v}),g.w(this,this.G),this.G.C1(this.element)));O.accessibilityData&&O.accessibilityData.accessibilityData&& O.accessibilityData.accessibilityData.label&&!g.Vh(O.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",O.accessibilityData.accessibilityData.label);O.icon!=null&&(O=BH(O.icon,this.B),O!=null&&(this.U=new g.k9({J:"span",W:"ytp-ad-button-icon",K:[O]}),g.w(this,this.U)),this.C?vL(this.element,this.U.element,0):this.U.C1(this.element))}}; Zn.prototype.clear=function(){this.hide()}; Zn.prototype.onClick=function(v){U2.prototype.onClick.call(this,v);v=g.y(BJn(this));for(var O=v.next();!O.done;O=v.next())O=O.value,this.layoutId?this.Rd.executeCommand(O,this.layoutId):g.LP(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.C(Xs,g.X);Xs.prototype.cW=function(){this.U&&g.aU(this.U);this.Y.clear();wK=null;g.X.prototype.cW.call(this)}; Xs.prototype.register=function(v,O){O&&this.Y.set(v,O)}; var wK=null;g.C(nu,U2); nu.prototype.init=function(v,O,Y){U2.prototype.init.call(this,v,O,Y);v=O.hoverText||null;O=O.button&&g.q(O.button,g.wZ)||null;O==null?g.LP(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Zn(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,void 0,void 0,void 0,void 0,this.G),g.w(this,this.button),this.button.init(s2("button"),O,this.macros),v&&this.button.element.setAttribute("aria-label",g.ui(v)),this.button.C1(this.element),this.j&&!g.bE(this.button.element, "ytp-ad-clickable")&&g.on(this.button.element,"ytp-ad-clickable"),this.G&&g.on(this.button.element,"ytp-ad-hover-text-button--clean-player"),v&&(this.U=new g.k9({J:"div",W:"ytp-ad-hover-text-container"}),this.C&&(O=new g.k9({J:"div",W:"ytp-ad-hover-text-callout"}),O.C1(this.U.element),g.w(this,O)),g.w(this,this.U),this.U.C1(this.element),O=IF(v),vL(this.U.element,O,0)),this.show())}; nu.prototype.hide=function(){this.button&&this.button.hide();this.U&&this.U.hide();U2.prototype.hide.call(this)}; nu.prototype.show=function(){this.button&&this.button.show();U2.prototype.show.call(this)};g.C(Ku,U2); Ku.prototype.init=function(v,O,Y){U2.prototype.init.call(this,v,O,Y);Y=(v=O.thumbnail)&&J6(v)||"";g.Vh(Y)?Math.random()<.01&&g.Br(Error("Found AdImage without valid image URL")):(this.Y?g.ym(this.element,"backgroundImage","url("+Y+")"):Kd(this.element,{src:Y}),Kd(this.element,{alt:v&&v.accessibility&&v.accessibility.label||""}),O&&O.adRendererCommands&&O.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; Ku.prototype.clear=function(){this.hide()};g.C(PH,U2);g.u=PH.prototype;g.u.hide=function(){U2.prototype.hide.call(this);this.G&&this.G.focus()}; g.u.show=function(){this.G=document.activeElement;U2.prototype.show.call(this);this.B.focus()}; g.u.init=function(v,O,Y){U2.prototype.init.call(this,v,O,Y);this.U=O;O.dialogMessages||O.title!=null?O.confirmLabel==null?g.LP(Error("ConfirmDialogRenderer.confirmLabel was not set.")):O.cancelLabel==null?g.LP(Error("ConfirmDialogRenderer.cancelLabel was not set.")):I3F(this,O):g.LP(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.u.clear=function(){g.hi(this.Y);this.hide()}; g.u.mX=function(){this.hide()}; g.u.nk=function(){var v=this.U.cancelEndpoint;v&&(this.layoutId?this.Rd.executeCommand(v,this.layoutId):g.LP(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.u.JG=function(){var v=this.U.confirmNavigationEndpoint||this.U.confirmEndpoint;v&&(this.layoutId?this.Rd.executeCommand(v,this.layoutId):g.LP(Error("Missing layoutId for confirm dialog.")));this.hide()};g.C(GT,U2);g.u=GT.prototype; g.u.init=function(v,O,Y){U2.prototype.init.call(this,v,O,Y);this.G=O;if(O.defaultText==null&&O.defaultIcon==null)g.LP(Error("ToggleButtonRenderer must have either text or icon set."));else if(O.defaultIcon==null&&O.toggledIcon!=null)g.LP(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(O.style){switch(O.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":v="ytp-ad-toggle-button-default-style";break;default:v=null}v!=null&&g.on(this.B,v)}v={};O.defaultText? (Y=g.ui(O.defaultText),g.Vh(Y)||(v.buttonText=Y,this.api.D().experiments.T0("a11y_h5_associate_survey_question")||this.Y.setAttribute("aria-label",Y),this.api.D().experiments.T0("fix_h5_toggle_button_a11y")&&this.U.setAttribute("aria-label",Y))):g.L4(this.N3,!1);O.defaultTooltip&&(v.tooltipText=O.defaultTooltip,this.Y.hasAttribute("aria-label")||this.U.setAttribute("aria-label",O.defaultTooltip));O.defaultIcon?(Y=BH(O.defaultIcon),this.updateValue("untoggledIconTemplateSpec",Y),O.toggledIcon?(this.Ug= !0,Y=BH(O.toggledIcon),this.updateValue("toggledIconTemplateSpec",Y)):(g.L4(this.j,!0),g.L4(this.C,!1)),g.L4(this.Y,!1)):g.L4(this.U,!1);g.tY(v)||this.update(v);O.isToggled&&(g.on(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(O.isToggled));ii(this);this.S(this.element,"change",this.fN);this.show()}}; g.u.onClick=function(v){this.JK.length>0&&(this.toggleButton(!this.isToggled()),this.fN());U2.prototype.onClick.call(this,v)}; g.u.fN=function(){g.gr(this.B,"ytp-ad-toggle-button-toggled",this.isToggled());for(var v=g.y(q8i(this,this.isToggled())),O=v.next();!O.done;O=v.next())O=O.value,this.layoutId?this.Rd.executeCommand(O,this.layoutId):g.LP(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);ii(this)}; g.u.clear=function(){this.hide()}; g.u.toggleButton=function(v){g.gr(this.B,"ytp-ad-toggle-button-toggled",v);this.Y.checked=v;ii(this)}; g.u.isToggled=function(){return this.Y.checked};g.C(mh,lK);mh.prototype.C=function(v){if(Array.isArray(v)){v=g.y(v);for(var O=v.next();!O.done;O=v.next())O=O.value,O instanceof ndg&&this.B(O)}};g.C(t6,U2);g.u=t6.prototype;g.u.init=function(v,O,Y){U2.prototype.init.call(this,v,O,Y);O.reasons?O.confirmLabel==null?g.LP(Error("AdFeedbackRenderer.confirmLabel was not set.")):(O.cancelLabel==null&&g.Br(Error("AdFeedbackRenderer.cancelLabel was not set.")),O.title==null&&g.Br(Error("AdFeedbackRenderer.title was not set.")),G2J(this,O)):g.LP(Error("AdFeedbackRenderer.reasons were not set."))}; g.u.clear=function(){xw(this.C);xw(this.j);this.B.length=0;this.hide()}; g.u.hide=function(){this.Y&&this.Y.hide();this.U&&this.U.hide();U2.prototype.hide.call(this);this.G&&this.G.focus()}; g.u.show=function(){this.Y&&this.Y.show();this.U&&this.U.show();this.G=document.activeElement;U2.prototype.show.call(this);this.C.focus()}; g.u.B2=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.u.Rmx=function(){this.hide()}; Dn.prototype.dR=function(){return this.Y.element}; Dn.prototype.getCommand=function(){return this.U}; Dn.prototype.isChecked=function(){return this.G.checked};g.C(HH,PH);HH.prototype.mX=function(v){PH.prototype.mX.call(this,v);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; HH.prototype.nk=function(v){PH.prototype.nk.call(this,v);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; HH.prototype.JG=function(v){PH.prototype.JG.call(this,v);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.C(NU,U2);g.u=NU.prototype; g.u.init=function(v,O,Y){U2.prototype.init.call(this,v,O,Y);this.C=O;if(O.dialogMessage==null&&O.title==null)g.LP(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{O.confirmLabel==null&&g.Br(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(v=O.closeOverlayRenderer&&g.q(O.closeOverlayRenderer,g.wZ)||null)this.Y=new Zn(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.w(this,this.Y),this.Y.init(s2("button"),v,this.macros),this.Y.C1(this.element);O.title&&(v=g.ui(O.title),this.updateValue("title",v));if(O.adReasons)for(v=O.adReasons,Y=0;Y=this.g8?(this.Ug.hide(),this.XO=!0,this.publish("i")):this.G&&this.G.isTemplated()&&(v=Math.max(0,Math.ceil((this.g8-v)/1E3)),v!=this.xg&&(Y8(this.G,{TIME_REMAINING:String(v)}),this.xg=v)))}};g.C(WK,Sd);g.u=WK.prototype; g.u.init=function(v,O,Y){Sd.prototype.init.call(this,v,O,Y);if(O.image&&O.image.thumbnail)if(O.headline)if(O.description)if((v=O.actionButton&&g.q(O.actionButton,g.wZ))&&v.navigationEndpoint){var S=this.api.getVideoData(2);if(S!=null)if(O.image&&O.image.thumbnail){var d=O.image.thumbnail.thumbnails;d!=null&&d.length>0&&g.Vh(g.Ac(d[0].url))&&(d[0].url=S.profilePicture)}else g.Br(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.G.init(s2("ad-image"),O.image,Y);this.C.init(s2("ad-text"), O.headline,Y);this.B.init(s2("ad-text"),O.description,Y);this.U.init(s2("button"),v,Y);Y=GV(this.U.element);PM(this.U.element,Y+" This link opens in new tab");this.Ug=v.navigationEndpoint;this.api.Sz()||this.show();this.api.D().V("enable_larger_flyout_cta_on_desktop")&&(this.BW("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.BW("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.BW("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.BW("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.BW("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.BW("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.U.element.classList.add("ytp-flyout-cta-action-button-large"),this.U.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.BW("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.KN.bind(this));this.N3=O.startMs||0;dY(this)}else g.LP(Error("FlyoutCtaRenderer has no valid action button."));else g.LP(Error("FlyoutCtaRenderer has no description AdText."));else g.LP(Error("FlyoutCtaRenderer has no headline AdText."));else g.Br(Error("FlyoutCtaRenderer has no image."))}; g.u.onClick=function(v){Sd.prototype.onClick.call(this,v);this.api.pauseVideo();!g.YW(this.U.element,v.target)&&this.Ug&&(this.layoutId?this.Rd.executeCommand(this.Ug,this.layoutId):g.LP(Error("Missing layoutId for flyout cta.")))}; g.u.nT=function(){if(this.Y){var v=this.Y.getProgressState();(v&&v.current||this.g8)&&1E3*v.current>=this.N3&&(rY(this),g.WI(this.element,"ytp-flyout-cta-inactive"),this.U.element.removeAttribute("tabIndex"))}}; g.u.Iq=function(){this.clear()}; g.u.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.KN.bind(this))}; g.u.show=function(){this.U&&this.U.show();Sd.prototype.show.call(this)}; g.u.hide=function(){this.U&&this.U.hide();Sd.prototype.hide.call(this)}; g.u.KN=function(v){v=="hidden"?this.show():this.hide()};g.C(zX,U2);g.u=zX.prototype; g.u.init=function(v,O,Y){U2.prototype.init.call(this,v,O,Y);this.Y=O;if(this.Y.rectangle)for(v=this.Y.likeButton&&g.q(this.Y.likeButton,Ug),O=this.Y.dislikeButton&&g.q(this.Y.dislikeButton,Ug),this.G.init(s2("toggle-button"),v,Y),this.U.init(s2("toggle-button"),O,Y),this.S(this.element,"change",this.Ek),this.B.show(100),this.show(),Y=g.y(this.Y&&this.Y.impressionCommands||[]),v=Y.next();!v.done;v=Y.next())v=v.value,this.layoutId?this.Rd.executeCommand(v,this.layoutId):g.LP(Error("Missing layoutId for instream user sentiment."))}; g.u.clear=function(){this.hide()}; g.u.hide=function(){this.G.hide();this.U.hide();U2.prototype.hide.call(this)}; g.u.show=function(){this.G.show();this.U.show();U2.prototype.show.call(this)}; g.u.Ek=function(){l4d(this.element,"ytp-ad-instream-user-sentiment-selected");this.Y.postMessageAction&&this.api.PW("onYtShowToast",this.Y.postMessageAction);this.B.hide()}; g.u.onClick=function(v){this.JK.length>0&&this.Ek();U2.prototype.onClick.call(this,v)};g.C(sO,g.X);g.u=sO.prototype;g.u.cW=function(){this.reset();g.X.prototype.cW.call(this)}; g.u.reset=function(){g.hi(this.B);this.C=!1;this.Y&&this.Y.stop();this.Z.stop();this.G&&(this.G=!1,this.L.play())}; g.u.start=function(){this.reset();this.B.S(this.U,"mouseover",this.P4,this);this.B.S(this.U,"mouseout",this.Ts,this);this.tK&&(this.B.S(this.U,"focusin",this.P4,this),this.B.S(this.U,"focusout",this.Ts,this));this.Y?this.Y.start():(this.C=this.G=!0,g.ym(this.U,{opacity:this.j}))}; g.u.P4=function(){this.G&&(this.G=!1,this.L.play());this.Z.stop();this.Y&&this.Y.stop()}; g.u.Ts=function(){this.C?this.Z.start():this.Y&&this.Y.start()}; g.u.pm=function(){this.G||(this.G=!0,this.X.play(),this.C=!0)};var rrm=[new gY("b.f_",!1,0),new gY("j.s_",!1,2),new gY("r.s_",!1,4),new gY("e.h_",!1,6),new gY("i.s_",!0,8),new gY("s.t_",!1,10),new gY("p.h_",!1,12),new gY("s.i_",!1,14),new gY("f.i_",!1,16),new gY("a.b_",!1,18),new gY("a.o_",!1),new gY("g.o_",!1,22),new gY("p.i_",!1,24),new gY("p.m_",!1),new gY("n.k_",!0,20),new gY("i.f_",!1),new gY("a.s_",!0),new gY("m.c_",!1),new gY("n.h_",!1,26),new gY("o.p_",!1),new gY("m.p_",!0,28),new gY("o.a_",!1),new gY("d.p_",!1)].reduce(function(v,O){v[O.U]=O;return v}, {});g.C(cK,Sd);g.u=cK.prototype; g.u.init=function(v,O,Y){Sd.prototype.init.call(this,v,O,Y);this.Ug=O;(this.N3=oCQ(this))&&g.Br(Error("hasAdControlInClickCommands_ is true."));if(!O||g.tY(O))g.LP(Error("SkipButtonRenderer was not specified or empty."));else if(!O.message||g.tY(O.message))g.LP(Error("SkipButtonRenderer.message was not specified or empty."));else{v=this.C?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};O=BH(v);O==null?g.LP(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+v.iconType+".")): (this.G=new g.k9({J:"button",hK:[this.C?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],K:[{J:"span",W:this.C?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",K:[O]}]}),g.w(this,this.G),this.G.C1(this.B.element),this.U=new OO(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,"ytp-ad-skip-button-text"),this.C&&this.U.element.classList.add("ytp-ad-skip-button-text-centered"),this.U.init(s2("ad-text"),this.Ug.message,Y),g.w(this,this.U),vL(this.G.element,this.U.element, 0));var S=S===void 0?null:S;Y=this.api.D();!(this.JK.length>0)&&Y.U&&(uq?0:"ontouchstart"in document.documentElement&&(DNJ()||n4()))&&(this.g2(this.n1),S&&this.g2(S),this.JK=[this.S(this.element,"touchstart",this.onTouchStart,this),this.S(this.element,"touchmove",this.onTouchMove,this),this.S(this.element,"touchend",this.onTouchEnd,this)])}}; g.u.clear=function(){this.g8.reset();this.hide()}; g.u.hide=function(){this.B.hide();this.U&&this.U.hide();rY(this);Sd.prototype.hide.call(this)}; g.u.onClick=function(v){if(this.G!=null){if(v){var O=v||window.event;O.returnValue=!1;O.preventDefault&&O.preventDefault()}var Y;if(Sx$(v,{contentCpn:((Y=this.api.getVideoData(1))==null?void 0:Y.clientPlaybackNonce)||""})===0)this.api.PW("onAbnormalityDetected");else if(Sd.prototype.onClick.call(this,v),this.publish("j"),this.api.PW("onAdSkip"),this.XO||!this.N3)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.u.LK=function(v){if(!this.XO)return this.N3&&f_("SkipButton click commands not pruned while ALC exist"),v;var O,Y=(O=g.q(v,g.uC))==null?void 0:O.commands;if(!Y)return v;v=[];for(O=0;O=this.C&&jMw(this,!0)};g.C(ye,Zn);ye.prototype.init=function(v,O,Y){Zn.prototype.init.call(this,v,O,Y);v=!1;O.text!=null&&(v=g.ui(O.text),v=!g.Vh(v));v?O.navigationEndpoint==null?g.Br(Error("No visit advertiser clickthrough provided in renderer,")):O.style!=="STYLE_UNKNOWN"?g.Br(Error("Button style was not a link-style type in renderer,")):this.show():g.Br(Error("No visit advertiser text was present in the renderer."))};g.C(aE,U2); aE.prototype.init=function(v,O,Y){U2.prototype.init.call(this,v,O,Y);v=O.text;g.Vh(cH(v))?g.Br(Error("SimpleAdBadgeRenderer has invalid or empty text")):(v&&v.text&&(O=v.text,this.G&&!this.U&&(O=this.api.D(),O=v.text+" "+(O&&O.U?"\u2022":"\u00b7")),O={text:O,isTemplated:v.isTemplated},v.style&&(O.style=v.style),v.targetId&&(O.targetId=v.targetId),v=new OO(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd),v.init(s2("simple-ad-badge"),O,Y),v.C1(this.element),g.w(this,v)),this.show())}; aE.prototype.clear=function(){this.hide()};g.C(x8,gK);g.C(p_,g.MU);g.u=p_.prototype;g.u.BL=function(){return this.durationMs}; g.u.stop=function(){this.Y&&this.bk.g2(this.Y)}; g.u.vD=function(v){this.U={seekableStart:0,seekableEnd:this.durationMs/1E3,current:v.current};this.publish("h")}; g.u.getProgressState=function(){return this.U}; g.u.i7=function(v){g.UO(v,2)&&this.publish("g")};g.C(TX,g.MU);g.u=TX.prototype;g.u.BL=function(){return this.durationMs}; g.u.start=function(){this.Y||(this.Y=!0,this.KP.start())}; g.u.stop=function(){this.Y&&(this.Y=!1,this.KP.stop())}; g.u.vD=function(){this.Q5+=100;var v=!1;this.Q5>this.durationMs&&(this.Q5=this.durationMs,this.KP.stop(),v=!0);this.U={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Q5/1E3};this.publish("h");v&&this.publish("g")}; g.u.getProgressState=function(){return this.U};g.C(h1,Sd);g.u=h1.prototype;g.u.init=function(v,O,Y){Sd.prototype.init.call(this,v,O,Y);var S;if(O==null?0:(S=O.templatedCountdown)==null?0:S.templatedAdText){v=O.templatedCountdown.templatedAdText;if(!v.isTemplated){g.Br(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.U=new OO(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd);this.U.init(s2("ad-text"),v,{});this.U.C1(this.element);g.w(this,this.U)}this.show()}; g.u.clear=function(){this.hide()}; g.u.hide=function(){rY(this);Sd.prototype.hide.call(this)}; g.u.Iq=function(){this.hide()}; g.u.nT=function(){if(this.Y!=null){var v=this.Y.getProgressState();if(v!=null&&v.current!=null&&this.U){var O=this.Y instanceof p_?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:v.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.Y instanceof TX?v.seekableEnd:this.api.getDuration(2,!1);v=v.current;var Y,S,d=((Y=this.api.getVideoData())==null?0:(S=Y.lM)==null?0:S.call(Y))?Math.max(O-v,0):O-v;Y8(this.U,{FORMATTED_AD_DURATION_REMAINING:String(g.lC(d)), TIME_REMAINING:String(Math.ceil(d))})}}}; g.u.show=function(){dY(this);Sd.prototype.show.call(this)};g.C(RE,OO);RE.prototype.onClick=function(v){OO.prototype.onClick.call(this,v);this.api.onAdUxClicked(this.componentType)};g.C(EO,U2);EO.prototype.init=function(v,O){U2.prototype.init.call(this,v,O,{});if(v=O.content){g.S9(this.element,v);var Y,S;O=((Y=O.interaction)==null?void 0:(S=Y.accessibility)==null?void 0:S.label)||v;this.element.setAttribute("aria-label",O)}else g.LP(Error("AdSimpleAttributedString does not have text content"))}; EO.prototype.clear=function(){this.hide()}; EO.prototype.onClick=function(v){U2.prototype.onClick.call(this,v)};g.C(Qe,U2); Qe.prototype.init=function(v,O){U2.prototype.init.call(this,v,O,{});(v=O.label)&&v.content&&!g.Vh(v.content)?(this.adBadgeText.init(s2("ad-simple-attributed-string"),new ed(v)),(O=O.adPodIndex)&&O.content&&!g.Vh(O.content)&&(this.Y=new EO(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd),this.Y.C1(this.element),g.w(this,this.Y),this.Y.element.classList.add("ytp-ad-badge__pod-index"),this.Y.init(s2("ad-simple-attributed-string"),new ed(O))),this.element.classList.add(this.U?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.LP(Error("No label is returned in AdBadgeViewModel."))}; Qe.prototype.show=function(){this.adBadgeText.show();var v;(v=this.Y)==null||v.show();U2.prototype.show.call(this)}; Qe.prototype.hide=function(){this.adBadgeText.hide();var v;(v=this.Y)==null||v.hide();U2.prototype.hide.call(this)};g.C(L_,U2);L_.prototype.init=function(v,O){U2.prototype.init.call(this,v,O,{});(v=O.adPodIndex)&&v.content&&!g.Vh(v.content)&&(this.Y=new EO(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd),this.Y.C1(this.element),g.w(this,this.Y),this.Y.init(s2("ad-simple-attributed-string"),new ed(v)),O.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()}; L_.prototype.show=function(){var v;(v=this.Y)==null||v.show();U2.prototype.show.call(this)}; L_.prototype.hide=function(){var v;(v=this.Y)==null||v.hide();U2.prototype.hide.call(this)};g.C(BK,U2); BK.prototype.init=function(v,O){U2.prototype.init.call(this,v,O,{});if(O!=null&&O.text){var Y;if(((Y=O.text)==null?0:Y.content)&&!g.Vh(O.text.content)){this.Y=new g.k9({J:"div",W:"ytp-ad-disclosure-banner__text",M3:O.text.content});g.w(this,this.Y);this.Y.C1(this.element);var S,d;v=((S=O.interaction)==null?void 0:(d=S.accessibility)==null?void 0:d.label)||O.text.content;this.element.setAttribute("aria-label",v);var r;if((r=O.interaction)==null?0:r.onTap)this.U=new g.k9({J:"div",W:"ytp-ad-disclosure-banner__chevron",K:[g.x9()]}), g.w(this,this.U),this.U.C1(this.element);this.show()}}else g.LP(Error("No banner text found in AdDisclosureBanner."))}; BK.prototype.clear=function(){this.hide()};ZY.prototype.getLength=function(){return this.Y-this.U};g.C(wY,g.k9);wY.prototype.vD=function(){var v=this.U.getProgressState(),O=v.seekableEnd;this.api.getPresentingPlayerType()===2&&(O=this.G?this.G/1E3:v.seekableEnd);v=Xk(new ZY(v.seekableStart,O),v.current,0);this.progressBar.style.width=v*100+"%"}; wY.prototype.onStateChange=function(){g.RP(this.api.D())||(this.api.getPresentingPlayerType()===2?this.Y===-1&&(this.show(),this.Y=this.U.subscribe("h",this.vD,this),this.vD()):this.Y!==-1&&(this.hide(),this.U.jN(this.Y),this.Y=-1))};g.C(IE,U2); IE.prototype.init=function(v,O,Y,S){U2.prototype.init.call(this,v,O,Y);if(O.skipOrPreviewRenderer){if(v=g.q(O.skipOrPreviewRenderer,zo))Y=new C_(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,this.U,this.j),Y.C1(this.AK),Y.init(s2("skip-button"),v,this.macros),g.w(this,Y);if(v=g.q(O.skipOrPreviewRenderer,zo))var d=v.skipOffsetMilliseconds}O.brandInteractionRenderer&&(v=O.brandInteractionRenderer.brandInteractionRenderer,Y=new zX(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd), Y.C1(this.N3),Y.init(s2("instream-user-sentiment"),v,this.macros),g.w(this,Y));if(v=g.q(O,tUt))if(v=g.q(v,tUt))Y=new WK(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,this.U,!!O.showWithoutLinkedMediaLayout),g.w(this,Y),Y.C1(this.C),Y.init(s2("flyout-cta"),v,this.macros);S=S&&S.videoAdDurationSeconds;O.adBadgeRenderer&&(Y=O.adBadgeRenderer,v=g.q(Y,qm),v!=null?(Y=new Qe(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,!1),g.w(this,Y),Y.C1(this.Y),Y.init(s2("ad-badge"), v,this.macros),this.G=Y.element):(v=Y.simpleAdBadgeRenderer,v==null&&(v={text:{text:"Ad",isTemplated:!1}}),Y=new aE(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,!0),g.w(this,Y),Y.C1(this.Y),Y.init(s2("simple-ad-badge"),v,this.macros)));O.adPodIndex&&(v=g.q(O.adPodIndex,bgN),v!=null&&(Y=new L_(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd),g.w(this,Y),Y.C1(this.Y),Y.init(s2("ad-pod-index"),v)));O.adDurationRemaining&&!O.showWithoutLinkedMediaLayout&&(v=O.adDurationRemaining.adDurationRemainingRenderer, v==null&&(v={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),S=new h1(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,this.U,S,!1),g.w(this,S),S.C1(this.Y),S.init(s2("ad-duration-remaining"),v,this.macros));O.adInfoRenderer&&(S=g.q(O.adInfoRenderer,ZF))&&(v=new vK(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,this.element,void 0,!1),g.w(this,v),this.G!==null?this.Y.insertBefore(v.element,this.G.nextSibling):v.C1(this.Y), v.init(s2("ad-info-hover-text-button"),S,this.macros));O.visitAdvertiserRenderer&&(v=g.q(O.visitAdvertiserRenderer,g.wZ))&&(Y=sMQ(this)&&this.B?this.B:this.Y)&&(S=new ye(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd),g.w(this,S),S.C1(Y),S.init(s2("visit-advertiser"),v,this.macros),JB(S.element),v=GV(S.element),PM(S.element,v+" This link opens in new tab"));!(S=this.api.D())||g.F_(S)||g.aP(S)||S.controlsType!="3"&&!S.disableOrganicUi||(d=new wY(this.api,this.U,d,!1),d.C1(this.g8), g.w(this,d));O.adDisclosureBannerRenderer&&(O=g.q(O.adDisclosureBannerRenderer,rsJ))&&(d=new BK(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd),d.C1(this.Ug),d.init(s2("ad-disclosure-banner"),O),g.w(this,d));this.api.D().V("enable_updated_html5_player_focus_style")&&g.on(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; IE.prototype.clear=function(){this.hide()};J1.prototype.set=function(v,O,Y){Y=Y!==void 0?Date.now()+Y:void 0;this.Y.set(v,O,Y)}; J1.prototype.get=function(v){return this.Y.get(v)}; J1.prototype.remove=function(v){this.Y.remove(v)};var Mx7=null;var mC=null,t1=null,DY=null,kYd=null;g.Gc("yt.www.ads.eventcache.getLastCompanionData",function(){return mC}); g.Gc("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Gc("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return t1}); g.Gc("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return DY}); g.Gc("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return kYd});var crw=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);HK.prototype.handleResponse=function(v,O){if(!O)throw Error("request needs to be passed into ConsistencyService");var Y,S;O=((Y=O.WA.context)==null?void 0:(S=Y.request)==null?void 0:S.consistencyTokenJars)||[];var d;(v=(d=v.responseContext)==null?void 0:d.consistencyTokenJar)&&this.replace(O,v)}; HK.prototype.replace=function(v,O){v=g.y(v);for(var Y=v.next();!Y.done;Y=v.next())delete this.Y[Y.value.encryptedTokenJarContents];CAc(this,O)};var kKL=window.location.hostname.split(".").slice(-2).join("."),TF;vT.getInstance=function(){TF=g.il("yt.clientLocationService.instance");TF||(TF=new vT,g.Gc("yt.clientLocationService.instance",TF));return TF}; g.u=vT.prototype; g.u.setLocationOnInnerTubeContext=function(v){v.client||(v.client={});if(this.Y)v.client.locationInfo||(v.client.locationInfo={}),v.client.locationInfo.latitudeE7=Math.floor(this.Y.coords.latitude*1E7),v.client.locationInfo.longitudeE7=Math.floor(this.Y.coords.longitude*1E7),v.client.locationInfo.horizontalAccuracyMeters=Math.round(this.Y.coords.accuracy),v.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.G||this.locationPlayabilityToken)v.client.locationPlayabilityToken=this.G|| this.locationPlayabilityToken}; g.u.handleResponse=function(v){var O;v=(O=v.responseContext)==null?void 0:O.locationPlayabilityToken;v!==void 0&&(this.locationPlayabilityToken=v,this.Y=void 0,g.Gq("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=NB(this))&&this.localStorage.set("yt-location-playability-token",v,15552E3):g.Bf("YT_CL",JSON.stringify({loctok:v}),15552E3,kKL,!0))}; g.u.clearLocationPlayabilityToken=function(v){v==="TVHTML5"?(this.localStorage=NB(this))&&this.localStorage.remove("yt-location-playability-token"):g.XB("YT_CL");this.G=void 0;this.U!==-1&&(clearTimeout(this.U),this.U=-1)}; g.u.getCurrentPositionFromGeolocation=function(){var v=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var O=!1,Y=1E4;g.Gq("INNERTUBE_CLIENT_NAME")==="MWEB"&&(O=!0,Y=15E3);return new Promise(function(S,d){navigator.geolocation.getCurrentPosition(function(r){v.Y=r;S(r)},function(r){d(r)},{enableHighAccuracy:O, maximumAge:0,timeout:Y})})}; g.u.createUnpluggedLocationInfo=function(v){var O={};v=v.coords;if(v==null?0:v.latitude)O.latitudeE7=Math.floor(v.latitude*1E7);if(v==null?0:v.longitude)O.longitudeE7=Math.floor(v.longitude*1E7);if(v==null?0:v.accuracy)O.locationRadiusMeters=Math.round(v.accuracy);return O}; g.u.createLocationInfo=function(v){var O={};v=v.coords;if(v==null?0:v.latitude)O.latitudeE7=Math.floor(v.latitude*1E7);if(v==null?0:v.longitude)O.longitudeE7=Math.floor(v.longitude*1E7);return O};g.u=TTF.prototype;g.u.contains=function(v){return Object.prototype.hasOwnProperty.call(this.Y,v)}; g.u.get=function(v){if(this.contains(v))return this.Y[v]}; g.u.set=function(v,O){this.Y[v]=O}; g.u.y_=function(){return Object.keys(this.Y)}; g.u.remove=function(v){delete this.Y[v]};gg.prototype.getModuleId=function(v){return v.serviceId.getModuleId()}; gg.prototype.get=function(v){a:{var O=this.mappings.get(v.toString());switch(O.type){case "mapping":v=O.value;break a;case "factory":O=O.value();this.mappings.set(v.toString(),{type:"mapping",value:O});v=O;break a;default:v=my(O)}}return v}; gg.prototype.registerService=function(v,O){this.mappings.set(v.toString(),{type:"mapping",value:O});return v}; new gg;var lv={},l_m=(lv.WEB_UNPLUGGED="^unplugged/",lv.WEB_UNPLUGGED_ONBOARDING="^unplugged/",lv.WEB_UNPLUGGED_OPS="^unplugged/",lv.WEB_UNPLUGGED_PUBLIC="^unplugged/",lv.WEB_CREATOR="^creator/",lv.WEB_KIDS="^kids/",lv.WEB_EXPERIMENTS="^experiments/",lv.WEB_MUSIC="^music/",lv.WEB_REMIX="^music/",lv.WEB_MUSIC_EMBEDDED_PLAYER="^music/",lv.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",lv);A_.prototype.Z=function(v,O,Y){O=O===void 0?{}:O;Y=Y===void 0?gT:Y;var S={context:g.O4(v.clickTrackingParams,!1,this.B)};var d=this.U(v);if(d){this.Y(S,d,O);var r;O=g.V7(this.G());(d=(r=g.q(v.commandMetadata,g.kj))==null?void 0:r.apiUrl)&&(O=d);r=$An(wG(O));v=Object.assign({},{command:v},void 0);S={input:r,YH:IZ(r),WA:S,config:v};S.config.MG?S.config.MG.identity=Y:S.config.MG={identity:Y};return S}Y=new g.iK("Error: Failed to create Request from Command.",v);g.LP(Y)}; g.bl.Object.defineProperties(A_.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.C(fw,A_);g.C($x,fw);$x.prototype.Z=function(){return{input:"/getDatasyncIdsEndpoint",YH:IZ("/getDatasyncIdsEndpoint","GET"),WA:{}}}; $x.prototype.G=function(){return[]}; $x.prototype.U=function(){}; $x.prototype.Y=function(){};var Unt={},j7d=(Unt.GET_DATASYNC_IDS=M0($x),Unt);var Fr={},cc0=(Fr["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",Fr["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",Fr["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",Fr["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",Fr["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",Fr["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",Fr["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", Fr["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",Fr["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",Fr["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",Fr["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",Fr["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",Fr["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",Fr["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",Fr["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", Fr["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",Fr["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",Fr["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",Fr["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",Fr["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",Fr["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",Fr["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", Fr["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",Fr.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",Fr["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",Fr["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",Fr["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",Fr["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",Fr["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",Fr["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", Fr["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",Fr["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",Fr["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",Fr["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",Fr["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",Fr["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",Fr["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",Fr["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",Fr["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",Fr["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",Fr.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",Fr["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",Fr["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",Fr["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",Fr["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",Fr["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",Fr["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",Fr["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",Fr["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",Fr["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",Fr["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",Fr["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Fr["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Fr["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",Fr["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",Fr["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",Fr["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",Fr["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",Fr["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",Fr["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",Fr["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",Fr["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", Fr["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",Fr["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",Fr["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",Fr["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",Fr["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",Fr["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",Fr["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",Fr["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",Fr["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", Fr["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",Fr["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",Fr["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",Fr["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",Fr["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",Fr["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",Fr["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",Fr["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", Fr),RY={},L_$=(RY.auto_search="LATENCY_ACTION_AUTO_SEARCH",RY.ad_to_ad="LATENCY_ACTION_AD_TO_AD",RY.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",RY.app_startup="LATENCY_ACTION_APP_STARTUP",RY.browse="LATENCY_ACTION_BROWSE",RY.cast_splash="LATENCY_ACTION_CAST_SPLASH",RY.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",RY.channels="LATENCY_ACTION_CHANNELS",RY.chips="LATENCY_ACTION_CHIPS",RY.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",RY.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", RY.editor="LATENCY_ACTION_EDITOR",RY.embed="LATENCY_ACTION_EMBED",RY.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",RY.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",RY.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",RY.explore="LATENCY_ACTION_EXPLORE",RY.favorites="LATENCY_ACTION_FAVORITES",RY.home="LATENCY_ACTION_HOME",RY.inboarding="LATENCY_ACTION_INBOARDING",RY.landing="LATENCY_ACTION_LANDING",RY.library="LATENCY_ACTION_LIBRARY",RY.live= "LATENCY_ACTION_LIVE",RY.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",RY.management="LATENCY_ACTION_MANAGEMENT",RY.mini_app="LATENCY_ACTION_MINI_APP_PLAY",RY.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",RY.onboarding="LATENCY_ACTION_ONBOARDING",RY.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",RY.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",RY.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",RY.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", RY.prebuffer="LATENCY_ACTION_PREBUFFER",RY.prefetch="LATENCY_ACTION_PREFETCH",RY.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",RY.profile_switcher="LATENCY_ACTION_LOGIN",RY.projects="LATENCY_ACTION_PROJECTS",RY.reel_watch="LATENCY_ACTION_REEL_WATCH",RY.results="LATENCY_ACTION_RESULTS",RY.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",RY.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",RY.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",RY.review="LATENCY_ACTION_REVIEW",RY.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",RY.search_ui="LATENCY_ACTION_SEARCH_UI",RY.search_suggest="LATENCY_ACTION_SUGGEST",RY.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",RY.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",RY.seek="LATENCY_ACTION_PLAYER_SEEK",RY.settings="LATENCY_ACTION_SETTINGS",RY.store="LATENCY_ACTION_STORE",RY.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",RY.tenx="LATENCY_ACTION_TENX",RY.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",RY.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", RY.watch="LATENCY_ACTION_WATCH",RY.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",RY["watch,watch7"]="LATENCY_ACTION_WATCH",RY["watch,watch7_html5"]="LATENCY_ACTION_WATCH",RY["watch,watch7ad"]="LATENCY_ACTION_WATCH",RY["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",RY.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",RY.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",RY.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",RY.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",RY.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",RY.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",RY.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",RY.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",RY);Object.assign(L_$,cc0);g.C(pw,MF);var txd=new VZ("aft-recorded",pw);var upY=g.Pm.ytLoggingGelSequenceIdObj_||{};g.Gc("ytLoggingGelSequenceIdObj_",upY);var FO=g.Pm.ytLoggingLatencyUsageStats_||{};g.Gc("ytLoggingLatencyUsageStats_",FO);TU.prototype.tick=function(v,O,Y,S){h_(this,"tick_"+v+"_"+O)||g.z2("latencyActionTicked",{tickName:v,clientActionNonce:O},{timestamp:Y,cttAuthInfo:S})}; TU.prototype.info=function(v,O,Y){var S=Object.keys(v).join("");h_(this,"info_"+S+"_"+O)||(v=Object.assign({},v),v.clientActionNonce=O,g.z2("latencyActionInfo",v,{cttAuthInfo:Y}))}; TU.prototype.jspbInfo=function(v,O,Y){for(var S="",d=0;d<$Z(v).length;d++)$Z(v)[d]!==void 0&&(S=d===0?S.concat(""+d):S.concat("_"+d));if(!h_(this,"info_"+S+"_"+O)){dy(v,2,O);Y={cttAuthInfo:Y};O=g.uF("jspb_sparse_encoded_pivot")?new q7([{}]):new q7;v=eei(v,Xb);wD(O,7,ChK,v);Y=Y===void 0?{}:Y;v=!1;g.Gq("ytLoggingEventsDefaultDisabled",!1)&&(v=!0);v=v?null:g.NF;Y=Y===void 0?{}:Y;S=Math.round(Y.timestamp||(0,g.J)());Sp(O,1,S=d.length?(O.append(d),v-=d.length):v?(O.append(new Uint8Array(d.buffer,d.byteOffset,v)),Y.append(new Uint8Array(d.buffer,d.byteOffset+v,d.length-v)),v=0):Y.append(d);return{I5:O,M6:Y}}; g.u.isFocused=function(v){return v>=this.J2&&v=64&&(this.C.set(v.subarray(0,64-this.U),this.U),O=64-this.U,this.U=0,D1n(this,this.C,0));for(;O+64<=Y;O+=64)D1n(this,v,O);O=this.start&&(v=2&&Y.ssdaiAdsConfig&&f_("Unexpected ad placement renderers length",v.slot,null,{length:S.length});var d;((d=Y.adSlots)==null?0:d.some(function(r){var b,z;return((b=g.q(r,nG))==null?void 0:(z=b.adSlotMetadata)==null?void 0:z.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||S.some(function(r){var b,z,M,V; return!!((b=r.renderer)==null?0:(z=b.linearAdSequenceRenderer)==null?0:(M=z.linearAds)==null?0:M.length)||!((V=r.renderer)==null||!V.instreamVideoAdRenderer)})||c6m(v)})}; WZ.prototype.fX=function(){r6E(this.Y)};zR.prototype.qP=function(){var v=this;dUF(this.U,function(){var O=oj(v.slot.clientMetadata,"metadata_type_ad_break_request_data");return O.cueProcessedMs?v.Y.get().fetch({NN:O.getAdBreakUrl,vX:new g.dh(O.oe,O.rU),cueProcessedMs:O.cueProcessedMs}):v.Y.get().fetch({NN:O.getAdBreakUrl,vX:new g.dh(O.oe,O.rU)})})}; zR.prototype.fX=function(){r6E(this.U)};sF.prototype.qP=function(){var v=this.slot.clientMetadata,O,Y=(O=this.slot.fulfilledLayout)!=null?O:oj(v,"metadata_type_fulfilled_layout");ZPd(this.callback,this.slot,Y)}; sF.prototype.fX=function(){cv(this.callback,this.slot,new m("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")};M5.prototype.build=function(v,O){return O.fulfilledLayout||gh(O,{M2:["metadata_type_fulfilled_layout"]})?new sF(v,O):this.G(v,O)};g.C(VT,M5); VT.prototype.G=function(v,O){if(gh(O,{M2:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new WZ(v,O,this.Y,this.U,this.cY,this.e4,this.L1,this.Zu,this.eO);if(gh(O,{M2:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new zR(v,O,this.Y,this.U,this.cY,this.e4);throw new m("Unsupported slot with type: "+O.slotType+" and client metadata: "+jG(O.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.C(A8,M5);A8.prototype.G=function(v,O){throw new m("Unsupported slot with type: "+O.slotType+" and client metadata: "+jG(O.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.u=us7.prototype;g.u.l3=function(){return this.slot}; g.u.lc=function(){return this.layout}; g.u.init=function(){}; g.u.release=function(){}; g.u.startRendering=function(v){if(v.layoutId!==this.layout.layoutId)this.callback.U_(this.slot,v,new rL("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 O=oj(v.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.jh(this.slot,v),ZLF(this.G, this.slot,O)):f_("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,v)}}; g.u.Y4=function(v,O){v.layoutId!==this.layout.layoutId?this.callback.U_(this.slot,v,new rL("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.ma(this.slot,v,O),y6m(this),an$(this))};g.C(cZ,g.MU);g.u=cZ.prototype;g.u.l3=function(){return this.U.slot}; g.u.lc=function(){return this.U.layout}; g.u.init=function(){this.G.get().addListener(this)}; g.u.release=function(){this.G.get().removeListener(this);this.dispose()}; g.u.zL=function(){}; g.u.Ib=function(){}; g.u.sL=function(){}; g.u.a5=function(){}; g.u.startRendering=function(v){var O=this;UF(this.U,v,function(){return void O.EG()})}; g.u.EG=function(){this.G.get().EG(this.Y)}; g.u.Y4=function(v,O){var Y=this;UF(this.U,v,function(){var S=Y.G.get();Zow(S,Y.Y,3);Y.Y=[];Y.callback.ma(Y.slot,v,O)})}; g.u.cW=function(){this.G.vW()||this.G.get().removeListener(this);g.MU.prototype.cW.call(this)}; g.bl.Object.defineProperties(cZ.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.U.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.U.layout}}});lI.prototype.IS=function(v,O){O=O===void 0?!1:O;var Y=(this.G.get(v)||[]).concat();if(O=O&&lnn(v)){var S=this.G.get(O);S&&Y.push.apply(Y,g.F(S))}R1(this,v,Y);this.Y.add(v);O&&this.Y.add(O)}; lI.prototype.wR=function(v,O){O=O===void 0?!1:O;if(!this.Y.has(v)){var Y=O&&lnn(v);Y&&(O=!this.Y.has(Y));this.IS(v,O)}};g.C(Rxd,gK);g.C(BZ,cZ);g.u=BZ.prototype;g.u.dT=function(v,O){a1("ads-engagement-panel-layout",v,this.C.get().HP,this.L1.get(),this.B,this.Z,this.l3(),this.lc(),O)}; g.u.startRendering=function(v){CN(this.K1,this.l3(),this.lc(),g.q(this.lc().renderingContent,WW),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(O,Y,S,d,r){return new Rxd(O,Y,S,d,r)},this.Y); cZ.prototype.startRendering.call(this,v)}; g.u.jh=function(v,O){this.Z===O.layoutId&&(this.B===null?this.B=this.L1.get().mE():f_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.ma=function(){}; g.u.Rn=function(){}; g.u.Le=function(){}; g.u.FQ=function(){}; g.u.ST=function(){}; g.u.XZ=function(){}; g.u.vB=function(){}; g.u.kW=function(){}; g.u.Ul=function(){}; g.u.JM=function(){}; g.u.DQ=function(){}; g.u.cW=function(){kV(this.Oq(),this);cZ.prototype.cW.call(this)};g.C(E9c,gK);g.C(ZV,cZ);g.u=ZV.prototype;g.u.dT=function(v,O){a1("banner-image",v,this.C.get().HP,this.L1.get(),this.B,this.Z,this.l3(),this.lc(),O)}; g.u.startRendering=function(v){CN(this.K1,this.l3(),this.lc(),g.q(this.lc().renderingContent,oR),this.callback,"metadata_type_banner_image_layout_view_model",function(O,Y,S,d,r){return new E9c(O,Y,S,d,r)},this.Y); cZ.prototype.startRendering.call(this,v)}; g.u.jh=function(v,O){this.Z===O.layoutId&&(this.B===null?this.B=this.L1.get().mE():f_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.ma=function(){}; g.u.Rn=function(){}; g.u.Le=function(){}; g.u.FQ=function(){}; g.u.ST=function(){}; g.u.XZ=function(){}; g.u.vB=function(){}; g.u.kW=function(){}; g.u.Ul=function(){}; g.u.JM=function(){}; g.u.DQ=function(){}; g.u.cW=function(){kV(this.Oq(),this);cZ.prototype.cW.call(this)};g.C(Xm,gK);g.C(wh,cZ);g.u=wh.prototype;g.u.dT=function(v,O){a1("action-companion",v,this.C.get().HP,this.L1.get(),this.B,this.Z,this.l3(),this.lc(),O)}; g.u.startRendering=function(v){CN(this.K1,this.l3(),this.lc(),g.q(this.lc().renderingContent,dZ),this.callback,"metadata_type_action_companion_ad_renderer",function(O,Y,S,d,r){return new Xm(O,Y,S,d,r)},this.Y); cZ.prototype.startRendering.call(this,v)}; g.u.jh=function(v,O){O.layoutId===this.layout.layoutId?this.K1.wR("impression"):this.Z===O.layoutId&&(this.B===null?this.B=this.L1.get().mE():f_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.ma=function(){}; g.u.Rn=function(){}; g.u.Le=function(){}; g.u.FQ=function(){}; g.u.ST=function(){}; g.u.XZ=function(){}; g.u.vB=function(){}; g.u.kW=function(){}; g.u.Ul=function(){}; g.u.JM=function(){}; g.u.DQ=function(){}; g.u.cW=function(){kV(this.Oq(),this);cZ.prototype.cW.call(this)};g.C(BKi,gK);g.C(I1,cZ);g.u=I1.prototype;g.u.dT=function(v,O){a1("image-companion",v,this.C.get().HP,this.L1.get(),this.B,this.Z,this.l3(),this.lc(),O)}; g.u.startRendering=function(v){CN(this.K1,this.l3(),this.lc(),g.q(this.lc().renderingContent,rZ),this.callback,"metadata_type_image_companion_ad_renderer",function(O,Y,S,d,r){return new BKi(O,Y,S,d,r)},this.Y); cZ.prototype.startRendering.call(this,v)}; g.u.jh=function(v,O){O.layoutId===this.layout.layoutId?this.K1.wR("impression"):this.Z===O.layoutId&&(this.B===null?this.B=this.L1.get().mE():f_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.ma=function(){}; g.u.Rn=function(){}; g.u.Le=function(){}; g.u.FQ=function(){}; g.u.ST=function(){}; g.u.XZ=function(){}; g.u.vB=function(){}; g.u.kW=function(){}; g.u.Ul=function(){}; g.u.JM=function(){}; g.u.DQ=function(){}; g.u.cW=function(){kV(this.Oq(),this);cZ.prototype.cW.call(this)};g.C(XHE,gK);g.C(q5,cZ);g.u=q5.prototype;g.u.dT=function(v,O){a1("shopping-companion",v,this.C.get().HP,this.L1.get(),this.B,this.Z,this.l3(),this.lc(),O)}; g.u.startRendering=function(v){CN(this.K1,this.l3(),this.lc(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(O,Y,S,d,r){return new XHE(O,Y,S,d,r)},this.Y); cZ.prototype.startRendering.call(this,v)}; g.u.jh=function(v,O){O.layoutId===this.layout.layoutId?this.K1.wR("impression"):this.Z===O.layoutId&&(this.B===null?this.B=this.L1.get().mE():f_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.ma=function(){}; g.u.Rn=function(){}; g.u.Le=function(){}; g.u.FQ=function(){}; g.u.ST=function(){}; g.u.XZ=function(){}; g.u.vB=function(){}; g.u.kW=function(){}; g.u.Ul=function(){}; g.u.JM=function(){}; g.u.DQ=function(){}; g.u.cW=function(){kV(this.Oq(),this);cZ.prototype.cW.call(this)};g.C(J8,cZ);g.u=J8.prototype;g.u.startRendering=function(v){CN(this.K1,this.l3(),this.lc(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(O,Y,S,d,r){return new Xm(O,Y,S,d,r)},this.Y); cZ.prototype.startRendering.call(this,v)}; g.u.jh=function(){}; g.u.ma=function(){}; g.u.Rn=function(){}; g.u.Le=function(){}; g.u.FQ=function(){}; g.u.ST=function(){}; g.u.XZ=function(){}; g.u.vB=function(){}; g.u.kW=function(){}; g.u.Ul=function(){}; g.u.JM=function(){}; g.u.DQ=function(){}; g.u.cW=function(){kV(this.Oq(),this);cZ.prototype.cW.call(this)}; g.u.dT=function(){};g.u=KhQ.prototype;g.u.l3=function(){return this.slot}; g.u.lc=function(){return this.layout}; g.u.init=function(){this.Zu.get().addListener(this);this.Zu.get().Hf.push(this);var v=oj(this.layout.clientMetadata,"metadata_type_video_length_seconds"),O=oj(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");xD(this.layout.Ge)&&NI(this.eh.get(),this.layout.layoutId,{Jx:O,HH:v,listener:this})}; g.u.release=function(){this.Zu.get().removeListener(this);R5d(this.Zu.get(),this);xD(this.layout.Ge)&&vo(this.eh.get(),this.layout.layoutId)}; g.u.startRendering=function(v){this.callback.jh(this.slot,v)}; g.u.Y4=function(v,O){YrF(this.e4.get())&&!this.Y&&(this.K1.wR("abandon"),this.Y=!0);this.callback.ma(this.slot,v,O)}; g.u.uq=function(v){switch(v.id){case "part2viewed":this.K1.wR("start");this.K1.wR("impression");break;case "videoplaytime25":this.K1.wR("first_quartile");break;case "videoplaytime50":this.K1.wR("midpoint");break;case "videoplaytime75":this.K1.wR("third_quartile");break;case "videoplaytime100":YrF(this.e4.get())?this.Y||(this.K1.wR("complete"),this.Y=!0):this.K1.wR("complete");LN(this.K1)&&EF(this.K1,Infinity,!0);Sr7(this.e4.get())&&nN(this.U,Infinity,!0);break;case "engagedview":LN(this.K1)||this.K1.wR("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:f_("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.u.onVolumeChange=function(){}; g.u.bq=function(){}; g.u.VH=function(){}; g.u.fW=function(){}; g.u.onFullscreenToggled=function(){}; g.u.l6=function(){}; g.u.i8=function(){}; g.u.Nt=function(v){Sr7(this.e4.get())&&nN(this.U,v*1E3,!1);LN(this.K1)&&EF(this.K1,v*1E3,!1)}; g.u.Ez=function(){}; g.u.E5=function(){this.K1.wR("active_view_measurable")}; g.u.Tb=function(){this.K1.wR("active_view_viewable")}; g.u.Kh=function(){this.K1.wR("active_view_fully_viewable_audible_half_duration")}; g.u.ag=function(){this.K1.wR("audio_measurable")}; g.u.fh=function(){this.K1.wR("audio_audible")};g.C(KN,cZ);g.u=KN.prototype;g.u.init=function(){cZ.prototype.init.call(this);var v=oj(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),O={adsClientData:this.layout.Lj};this.Y.push(new x8(v,this.layout.layoutId,oj(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),O,!0))}; g.u.u4=function(){this.B||this.Zu.get().resumeVideo(1)}; g.u.startRendering=function(v){cZ.prototype.startRendering.call(this,v);oV(this.Zu.get(),"ad-showing");this.callback.jh(this.slot,v);this.Z.m6=this}; g.u.Y4=function(v,O){cZ.prototype.Y4.call(this,v,O);jf(this.Zu.get(),"ad-showing");Po(this.Z,this)}; g.u.dT=function(v){switch(v){case "ad-info-icon-button":(this.B=this.Zu.get().mj(1))||this.Zu.get().pauseVideo();break;case "visit-advertiser":this.Zu.get().pauseVideo()}}; g.u.cW=function(){cZ.prototype.cW.call(this)};g.C(PZ,gK);g.C(GR,cZ);g.u=GR.prototype;g.u.startRendering=function(v){CN(this.K1,this.l3(),this.lc(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(O,Y,S,d,r){return new PZ(O,Y,S,d,r)},this.Y); cZ.prototype.startRendering.call(this,v)}; g.u.jh=function(){}; g.u.ma=function(){}; g.u.Rn=function(){}; g.u.Le=function(){}; g.u.FQ=function(){}; g.u.ST=function(){}; g.u.XZ=function(){}; g.u.vB=function(){}; g.u.kW=function(){}; g.u.Ul=function(){}; g.u.JM=function(){}; g.u.DQ=function(){}; g.u.cW=function(){kV(this.Oq(),this);cZ.prototype.cW.call(this)}; g.u.dT=function(){};g.C(iI,gK);g.C(mL,cZ);mL.prototype.init=function(){cZ.prototype.init.call(this);this.Y.push(new iI(g.q(this.layout.renderingContent,RR),this.layout.layoutId,{adsClientData:this.layout.Lj}))}; mL.prototype.dT=function(){EQ(this.B.get(),this.Z)&&yT(this.L1.get(),3)}; mL.prototype.startRendering=function(v){cZ.prototype.startRendering.call(this,v);this.callback.jh(this.slot,v)}; mL.prototype.cW=function(){cZ.prototype.cW.call(this)};g.C(t8,gK);g.C(DV,cZ);DV.prototype.init=function(){cZ.prototype.init.call(this);var v=g.q(this.layout.renderingContent,sn)||oj(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),O=uI(this.K1);this.Y.push(new t8(v,O,this.layout.layoutId,{adsClientData:this.layout.Lj},!0,!0))}; DV.prototype.startRendering=function(v){cZ.prototype.startRendering.call(this,v);this.callback.jh(this.slot,v)}; DV.prototype.dT=function(v,O){if(O===this.layout.layoutId)switch(v){case "skip-button":var Y;(v=(Y=oj(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:Y.current)&&v.oT(this.l3(),this.layout)}}; DV.prototype.cW=function(){cZ.prototype.cW.call(this)};N5.prototype.build=function(v,O,Y,S){if(HZ(S,{M2:["metadata_type_ad_break_response_data"],IF:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new us7(v,Y,S,this.U,this.G,this.Y);throw new rL("Unsupported layout with type: "+S.layoutType+" and client metadata: "+jG(S.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.C(iuc,gK);g.C(va,cZ);g.u=va.prototype;g.u.dT=function(v,O){a1("ads-engagement-panel",v,this.C.get().HP,this.L1.get(),this.B,this.Z,this.l3(),this.lc(),O)}; g.u.startRendering=function(v){CN(this.K1,this.l3(),this.lc(),g.q(this.lc().renderingContent,br),this.callback,"metadata_type_ads_engagement_panel_renderer",function(O,Y,S,d,r){return new iuc(O,Y,S,d,r)},this.Y); cZ.prototype.startRendering.call(this,v)}; g.u.jh=function(v,O){O.layoutId===this.layout.layoutId?this.K1.wR("impression"):this.Z===O.layoutId&&(this.B===null?this.B=this.L1.get().mE():f_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.ma=function(){}; g.u.Rn=function(){}; g.u.Le=function(){}; g.u.FQ=function(){}; g.u.ST=function(){}; g.u.XZ=function(){}; g.u.vB=function(){}; g.u.kW=function(){}; g.u.Ul=function(){}; g.u.JM=function(){}; g.u.DQ=function(){}; g.u.cW=function(){kV(this.Oq(),this);cZ.prototype.cW.call(this)};g.C(On,cZ);g.u=On.prototype;g.u.dT=function(v,O){a1("top-banner-image-text-icon-buttoned",v,this.C.get().HP,this.L1.get(),this.B,this.Z,this.l3(),this.lc(),O)}; g.u.startRendering=function(v){CN(this.K1,this.l3(),this.lc(),g.q(this.lc().renderingContent,jq),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(O,Y,S,d,r){return new PZ(O,Y,S,d,r)},this.Y); cZ.prototype.startRendering.call(this,v)}; g.u.jh=function(v,O){this.Z===O.layoutId&&(this.B===null?this.B=this.L1.get().mE():f_("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.u.ma=function(){}; g.u.Rn=function(){}; g.u.Le=function(){}; g.u.FQ=function(){}; g.u.ST=function(){}; g.u.XZ=function(){}; g.u.vB=function(){}; g.u.kW=function(){}; g.u.Ul=function(){}; g.u.JM=function(){}; g.u.DQ=function(){}; g.u.cW=function(){kV(this.Oq(),this);cZ.prototype.cW.call(this)};DU3.prototype.build=function(v,O,Y,S){if(HZ(S,mUE())||g.q(S.renderingContent,br)!==void 0)return new va(v,Y,S,this.MX,this.L1,this.Oq,this.eh,this.Y);if(HZ(S,Lhn())||g.q(S.renderingContent,dZ)!==void 0)return new wh(v,Y,S,this.MX,this.L1,this.Oq,this.eh,this.Y);if(HZ(S,Zun())||g.q(S.renderingContent,rZ)!==void 0)return new I1(v,Y,S,this.MX,this.L1,this.Oq,this.eh,this.Y);if(HZ(S,wHi()))return new q5(v,Y,S,this.MX,this.L1,this.Oq,this.eh,this.Y);if(HZ(S,J6F()))return new J8(v,Y,S,this.MX,this.L1,this.Oq, this.eh,this.Y);if(HZ(S,QFE())||g.q(S.renderingContent,oR)!==void 0)return new ZV(v,Y,S,this.MX,this.L1,this.Oq,this.eh,this.Y);if(HZ(S,tFl())||g.q(S.renderingContent,jq)!==void 0)return new On(v,Y,S,this.MX,this.L1,this.Oq,this.eh,this.Y);if(HZ(S,PiJ()))return new GR(v,Y,S,this.MX,this.L1,this.Oq,this.eh,this.Y);if(HZ(S,exl())||g.q(S.renderingContent,WW)!==void 0)return new BZ(v,Y,S,this.MX,this.L1,this.Oq,this.eh,this.Y);throw new rL("Unsupported layout with type: "+S.layoutType+" and client metadata: "+ jG(S.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};Huc.prototype.build=function(v,O,Y,S){if(HZ(S,{M2:["metadata_type_linked_player_bytes_layout_id"],IF:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new mL(v,Y,S,this.MX,this.L1,this.Y);throw new rL("Unsupported layout with type: "+S.layoutType+" and client metadata: "+jG(S.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.u=NKl.prototype;g.u.l3=function(){return this.slot}; g.u.lc=function(){return this.layout}; g.u.init=function(){}; g.u.release=function(){}; g.u.startRendering=function(v){v.layoutId!==this.layout.layoutId?this.callback.U_(this.slot,v,new rL("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.jh(this.slot,v),this.K1.wR("impression"),tm(this.u8,v,"normal"))}; g.u.Y4=function(v,O){v.layoutId!==this.layout.layoutId?this.callback.U_(this.slot,v,new rL("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.ma(this.slot,v,O)};g.u=O_F.prototype;g.u.l3=function(){return this.slot}; g.u.lc=function(){return this.layout}; g.u.init=function(){}; g.u.release=function(){}; g.u.startRendering=function(v){v.layoutId!==this.layout.layoutId?this.callback.U_(this.slot,v,new rL("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.jh(this.slot,v),this.K1.wR("impression"),tm(this.u8,v,"normal"))}; g.u.Y4=function(v,O){v.layoutId!==this.layout.layoutId?this.callback.U_(this.slot,v,new rL("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.ma(this.slot,v,O)};Yu.prototype.build=function(v,O,Y,S){if(!this.e4.get().N.D().V("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(HZ(S,v8m()))return new NKl(v,Y,S,this.L1,this.u8)}else if(HZ(S,{M2:[],IF:["LAYOUT_TYPE_FORECASTING"]}))return new O_F(v,Y,S,this.L1,this.u8);throw new rL("Unsupported layout with type: "+S.layoutType+" and client metadata: "+jG(S.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.C(dBw,gK);g.C(SX,cZ);g.u=SX.prototype;g.u.init=function(){cZ.prototype.init.call(this);var v=g.q(this.layout.renderingContent,zB)||oj(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),O={adsClientData:this.layout.Lj};this.Y.push(new dBw(v,oj(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,O))}; g.u.u4=function(){this.B||this.Zu.get().resumeVideo(2)}; g.u.startRendering=function(v){cZ.prototype.startRendering.call(this,v);this.callback.jh(this.slot,v);this.Z.m6=this}; g.u.Y4=function(v,O){cZ.prototype.Y4.call(this,v,O);Po(this.Z,this)}; g.u.dT=function(v,O){if(!tE(this.e4.get(),"stop_handling_click_for_non_rendering_overlay_layout")||O===this.layout.layoutId){if(EQ(this.C.get(),this.L))switch(v){case "visit-advertiser-link":yT(this.L1.get(),3)}switch(v){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.B||this.Zu.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.B=this.Zu.get().mj(2))||this.Zu.get().pauseVideo();break; case "visit-advertiser-link":this.Zu.get().pauseVideo();r1F(this).dY();break;case "skip-button":if(v=r1F(this),this.layout.renderingContent&&!YV(this.layout.clientMetadata,"metadata_type_dai")||!v.QA){var Y;(v=(Y=oj(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:Y.current)&&v.oT(this.l3(),this.layout)}else f_("Requesting to skip by LegacyPlayerBytes when components enabled"),v.zb(this.l3(),this.layout)}}}; g.u.cW=function(){cZ.prototype.cW.call(this)};g.C(ro,cZ);g.u=ro.prototype;g.u.init=function(){cZ.prototype.init.call(this);var v=g.q(this.layout.renderingContent,Wa)||oj(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),O={adsClientData:this.layout.Lj},Y;(Y=!!this.layout.renderingContent)||(Y=!bJ(this).QA);this.Y.push(new x8(v,this.layout.layoutId,oj(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),O,Y))}; g.u.u4=function(){this.B||this.Zu.get().resumeVideo(2)}; g.u.startRendering=function(v){cZ.prototype.startRendering.call(this,v);this.callback.jh(this.slot,v);this.Z.m6=this}; g.u.Y4=function(v,O){cZ.prototype.Y4.call(this,v,O);Po(this.Z,this)}; g.u.dT=function(v,O){if(!this.e4||!tE(this.e4.get(),"stop_handling_click_for_non_rendering_overlay_layout")||O===this.layout.layoutId){if(EQ(this.C.get(),this.L))switch(v){case "visit-advertiser":yT(this.L1.get(),3)}switch(v){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.B||this.Zu.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.B=this.Zu.get().mj(2))||this.Zu.get().pauseVideo();break; case "visit-advertiser":this.Zu.get().pauseVideo();bJ(this).dY();break;case "skip-button":if(v=bJ(this),this.layout.renderingContent&&!YV(this.layout.clientMetadata,"metadata_type_dai")||!v.QA){var Y;(v=(Y=oj(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:Y.current)&&v.oT(this.l3(),this.layout)}else f_("Requesting to skip by LegacyPlayerBytes"),v.zb(this.l3(),this.layout)}}}; g.u.cW=function(){cZ.prototype.cW.call(this)};g.C(o8l,gK);g.C(oA,cZ);g.u=oA.prototype;g.u.startRendering=function(v){var O=this;UF(this.U,v,function(){O.Y.push(new o8l(oj(O.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),v.layoutId,v.Lj));O.EG();O.callback.jh(O.slot,v);g.G(HA(O.Zu.get(),1),512)&&O.callback.U_(O.l3(),O.lc(),new rL("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.u.i8=function(){}; g.u.l6=function(v){if(v.state.isError()){var O;this.callback.U_(this.l3(),this.lc(),new rL("A player error happened during adNotify",{playerErrorCode:(O=v.state.ib)==null?void 0:O.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.u.onFullscreenToggled=function(){}; g.u.VH=function(){}; g.u.fW=function(){}; g.u.bq=function(){}; g.u.onVolumeChange=function(){}; g.u.uq=function(){}; g.u.Ez=function(){}; g.u.dT=function(){};g.C(WCJ,gK);g.C(jX,cZ);jX.prototype.init=function(){cZ.prototype.init.call(this);var v=g.q(this.layout.renderingContent,go),O=uI(this.K1);this.Y.push(new WCJ(v,O,this.layout.layoutId,{adsClientData:this.layout.Lj}))}; jX.prototype.startRendering=function(v){cZ.prototype.startRendering.call(this,v);this.callback.jh(this.slot,v)}; jX.prototype.dT=function(v,O){if(O===this.layout.layoutId)switch(v){case "skip-button":var Y;(v=(Y=oj(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:Y.current)&&v.oT(this.l3(),this.layout)}}; jX.prototype.cW=function(){cZ.prototype.cW.call(this)};zo1.prototype.build=function(v,O,Y,S){if(v=Mu(v,Y,S,this.MX,this.Zu,this.L1,this.U,this.Y,this.e4))return v;throw new rL("Unsupported layout with type: "+S.layoutType+" and client metadata: "+jG(S.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.u=fD.prototype;g.u.l3=function(){return this.slot}; g.u.lc=function(){return this.layout}; g.u.init=function(){this.Zu.get().addListener(this);this.Zu.get().Hf.push(this);if(this.layout.renderingContent){var v=this.S4.get();v=u7(v,1).pK/1E3}else v=oj(this.layout.clientMetadata,"metadata_type_video_length_seconds");var O=g.q(this.layout.renderingContent,lr),Y=O?pN(O.pings):oj(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");O=O?TKE(O.pings):oj(this.layout.clientMetadata,"metadata_type_active_view_identifier");xD(this.layout.Ge)&&NI(this.eh.get(),this.layout.layoutId, {Jx:Y,HH:v,listener:this,HJ:O})}; g.u.release=function(){this.Zu.get().removeListener(this);R5d(this.Zu.get(),this);xD(this.layout.Ge)&&vo(this.eh.get(),this.layout.layoutId)}; g.u.startRendering=function(v){this.callback.jh(this.slot,v)}; g.u.Y4=function(v,O){$u(this,"abandon");this.callback.ma(this.slot,v,O)}; g.u.uq=function(v){switch(v.id){case "part2viewed":this.K1.wR("start");this.K1.wR("impression");break;case "videoplaytime25":this.K1.wR("first_quartile");break;case "videoplaytime50":this.K1.wR("midpoint");break;case "videoplaytime75":this.K1.wR("third_quartile");break;case "videoplaytime100":$u(this,"complete");LN(this.K1)&&EF(this.K1,Infinity,!0);break;case "engagedview":LN(this.K1)||this.K1.wR("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:f_("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.u.onVolumeChange=function(){}; g.u.bq=function(){}; g.u.VH=function(){}; g.u.fW=function(){}; g.u.onFullscreenToggled=function(){}; g.u.l6=function(v){this.Y||(g.UO(v,4)&&!g.UO(v,2)?ea(this.K1,"pause"):k8(v,4)<0&&!(k8(v,2)<0)&&ea(this.K1,"resume"))}; g.u.i8=function(){}; g.u.Nt=function(v){LN(this.K1)&&EF(this.K1,v*1E3,!1)}; g.u.Ez=function(){$u(this,"swipe")}; g.u.E5=function(){this.K1.wR("active_view_measurable")}; g.u.Tb=function(){this.K1.wR("active_view_viewable")}; g.u.Kh=function(){this.K1.wR("active_view_fully_viewable_audible_half_duration")}; g.u.ag=function(){this.K1.wR("audio_measurable")}; g.u.fh=function(){this.K1.wR("audio_audible")};sEm.prototype.build=function(v,O,Y,S){if(Y.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.q(S.renderingContent,lr)!==void 0)return new fD(v,Y,S,this.Zu,this.L1,this.e4,this.eh,this.S4);O=["metadata_type_ad_placement_config"];for(var d=g.y(Fm()),r=d.next();!r.done;r=d.next())O.push(r.value);if(HZ(S,{M2:O,IF:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return Y.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new fD(v,Y,S,this.Zu,this.L1,this.e4,this.eh,this.S4):new KhQ(v,Y,S,this.Zu,this.L1, this.gR,this.e4,this.eh);throw new rL("Unsupported layout with type: "+S.layoutType+" and client metadata: "+jG(S.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var uJ={contentCpn:"",Uc:new Map};ukw.prototype.Yy=function(v,O){var Y={};O=Object.assign({},O,(Y.cc=this.Mp.W7(),Y));this.Mp.N.G0(v,O)};var wEN,BP; wEN={tZx:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Llg:"AUTHENTICATION_MALFORMED",AFW:"AUTHENTICATION_MISSING",XE0:"BAD_REQUEST",iSK:"CAST_SESSION_DEVICE_MISMATCHED",uN0:"CAST_SESSION_VIDEO_MISMATCHED",x71:"CAST_TOKEN_EXPIRED",fT1:"CAST_TOKEN_FAILED",aTg:"CAST_TOKEN_MALFORMED",KlK:"CGI_PARAMS_MALFORMED",Ebg:"CGI_PARAMS_MISSING",Nyu:"DEVICE_FALLBACK",xY0:"GENERIC_WITH_LINK_AND_CPN",f0x:"ERROR_HDCP",a0g:"LICENSE",Efg:"VIDEO_UNAVAILABLE",jvx:"FORMAT_UNAVAILABLE",Oqc:"GEO_FAILURE", hqO:"HTML5_AUDIO_RENDERER_ERROR",geO:"GENERIC_WITHOUT_LINK",V68:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",FKd:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",ve3:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",kFg:"HTML5_SPS_UMP_STATUS_REJECTED",l_W:"INVALID_DRM_MESSAGE",g84:"PURCHASE_NOT_FOUND",Vi0:"PURCHASE_REFUNDED",SYg:"RENTAL_EXPIRED",wS4:"RETRYABLE_ERROR",T70:"SERVER_ERROR",OUO:"SIGNATURE_EXPIRED",eAW:"STOPPED_BY_ANOTHER_PLAYBACK",HUK:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",QJg:"STREAMING_NOT_ALLOWED", B6O:"STREAM_LICENSE_NOT_FOUND",gqW:"TOO_MANY_REQUESTS",VIx:"TOO_MANY_REQUESTS_WITH_LINK",FyO:"TOO_MANY_STREAMS_PER_ENTITLEMENT",vq1:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",PL8:"VIDEO_FORBIDDEN",ySO:"VIDEO_NOT_FOUND",lTx:"BROWSER_OR_EXTENSION_ERROR"};BP={}; g.Lp=(BP.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.",BP.DEVICE_FALLBACK="Sorry, this video is not available on this device.",BP.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",BP.LICENSE="Sorry, there was an error licensing this video.",BP.VIDEO_UNAVAILABLE= "Video unavailable",BP.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",BP.GEO_FAILURE="This video isn't available in your country.",BP.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",BP.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",BP.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",BP.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", BP.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",BP.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",BP.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",BP.PURCHASE_NOT_FOUND="This video requires payment.",BP.PURCHASE_REFUNDED="This video's purchase has been refunded.",BP.RENTAL_EXPIRED="This video's rental has expired.",BP.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",BP.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",BP.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",BP.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",BP.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",BP.SERVER_ERROR="There was an internal server error. Please try again later.",BP.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",BP.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",BP.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",BP.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",BP.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",BP.TOO_MANY_REQUESTS="Please log in to watch this video.", BP.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",BP.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",BP.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",BP.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",BP.VIDEO_FORBIDDEN="Access to this video is forbidden.",BP.VIDEO_NOT_FOUND="This video can not be found.",BP.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",BP);var ICt;var q7w=g.yh(),nr8=q7w.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!nr8||nr8.length<2)ICt=void 0;else{var Jcw=q7w.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);ICt=Jcw&&Jcw.length===6?Number(Jcw[5].replace("_",".")):0}var I2=ICt,hM=I2>=0;g.C(g.Z6,lK);g.Z6.prototype.S=function(v,O,Y,S,d){return lK.prototype.S.call(this,v,O,Y,S,d)};var Zi={},kA=(Zi.FAIRPLAY="fairplay",Zi.PLAYREADY="playready",Zi.WIDEVINE="widevine",Zi.CLEARKEY=null,Zi.FLASHACCESS=null,Zi.UNKNOWN=null,Zi.WIDEVINE_CLASSIC=null,Zi);XW.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var Xr={},y5=(Xr.WIDTH={name:"width",video:!0,valid:640,Md:99999},Xr.HEIGHT={name:"height",video:!0,valid:360,Md:99999},Xr.FRAMERATE={name:"framerate",video:!0,valid:30,Md:9999},Xr.BITRATE={name:"bitrate",video:!0,valid:3E5,Md:2E9},Xr.EOTF={name:"eotf",video:!0,valid:"bt709",Md:"catavision"},Xr.CHANNELS={name:"channels",video:!1,valid:2,Md:99},Xr.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Md:"invalidformat"},Xr.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", Md:"nope"},Xr.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Md:"av99.0.05M.08"},Xr.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Md:"invalid"},Xr);var K4Y=["h","H"],PgL=["9","("],GKC=["9h","(h"],idC=["8","*"],mnt=["a","A"],tRw=["o","O"],DnN=["m","M"],HdL=["mac3","MAC3"],NnY=["meac3","MEAC3"],ws={},F91=(ws.h=K4Y,ws.H=K4Y,ws["9"]=PgL,ws["("]=PgL,ws["9h"]=GKC,ws["(h"]=GKC,ws["8"]=idC,ws["*"]=idC,ws.a=mnt,ws.A=mnt,ws.o=tRw,ws.O=tRw,ws.m=DnN,ws.M=DnN,ws.mac3=HdL,ws.MAC3=HdL,ws.meac3=NnY,ws.MEAC3=NnY,ws),vWK=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),ALi=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var H={},KD=(H["0"]="f",H["160"]="h",H["133"]="h",H["134"]="h",H["135"]="h",H["136"]="h",H["137"]="h",H["264"]="h",H["266"]="h",H["138"]="h",H["298"]="h",H["299"]="h",H["304"]="h",H["305"]="h",H["214"]="h",H["216"]="h",H["374"]="h",H["375"]="h",H["140"]="a",H["141"]="a",H["327"]="sa",H["258"]="m",H["380"]="mac3",H["328"]="meac3",H["161"]="H",H["142"]="H",H["143"]="H",H["144"]="H",H["222"]="H",H["223"]="H",H["145"]="H",H["224"]="H",H["225"]="H",H["146"]="H",H["226"]="H",H["227"]="H",H["147"]="H",H["384"]= "H",H["376"]="H",H["385"]="H",H["377"]="H",H["149"]="A",H["261"]="M",H["381"]="MAC3",H["329"]="MEAC3",H["598"]="9",H["278"]="9",H["242"]="9",H["243"]="9",H["244"]="9",H["775"]="9",H["776"]="9",H["777"]="9",H["778"]="9",H["779"]="9",H["780"]="9",H["781"]="9",H["782"]="9",H["783"]="9",H["247"]="9",H["248"]="9",H["353"]="9",H["355"]="9",H["356"]="9",H["271"]="9",H["577"]="9",H["313"]="9",H["579"]="9",H["272"]="9",H["302"]="9",H["303"]="9",H["407"]="9",H["408"]="9",H["308"]="9",H["315"]="9",H["330"]= "9h",H["331"]="9h",H["332"]="9h",H["333"]="9h",H["334"]="9h",H["335"]="9h",H["336"]="9h",H["337"]="9h",H["338"]="so",H["600"]="o",H["250"]="o",H["251"]="o",H["774"]="o",H["194"]="*",H["195"]="*",H["220"]="*",H["221"]="*",H["196"]="*",H["197"]="*",H["279"]="(",H["280"]="(",H["317"]="(",H["318"]="(",H["273"]="(",H["274"]="(",H["357"]="(",H["358"]="(",H["275"]="(",H["359"]="(",H["360"]="(",H["276"]="(",H["583"]="(",H["584"]="(",H["314"]="(",H["585"]="(",H["561"]="(",H["277"]="(",H["361"]="(h",H["362"]= "(h",H["363"]="(h",H["364"]="(h",H["365"]="(h",H["366"]="(h",H["591"]="(h",H["592"]="(h",H["367"]="(h",H["586"]="(h",H["587"]="(h",H["368"]="(h",H["588"]="(h",H["562"]="(h",H["409"]="(",H["410"]="(",H["411"]="(",H["412"]="(",H["557"]="(",H["558"]="(",H["394"]="1",H["395"]="1",H["396"]="1",H["397"]="1",H["398"]="1",H["399"]="1",H["720"]="1",H["721"]="1",H["400"]="1",H["401"]="1",H["571"]="1",H["402"]="1",H["694"]="1h",H["695"]="1h",H["696"]="1h",H["697"]="1h",H["698"]="1h",H["699"]="1h",H["700"]="1h", H["701"]="1h",H["702"]="1h",H["703"]="1h",H["386"]="3",H["387"]="w",H["406"]="6",H["787"]="1",H["788"]="1",H["548"]="1e",H["549"]="1e",H["550"]="1e",H["551"]="1e",H["809"]="1e",H["810"]="1e",H["552"]="1e",H["811"]="1e",H["812"]="1e",H["553"]="1e",H["813"]="1e",H["814"]="1e",H["554"]="1e",H["815"]="1e",H["816"]="1e",H["555"]="1e",H["817"]="1e",H["818"]="1e",H["572"]="1e",H["556"]="1e",H["645"]="(",H["646"]="(",H["647"]="(",H["648"]="(",H["649"]="(",H["650"]="(",H["651"]="(",H["652"]="(",H["653"]="(", H["654"]="(",H["655"]="(",H["656"]="(",H["657"]="(",H["658"]="(",H["659"]="(",H["660"]="(",H["661"]="(",H["662"]="(",H["663"]="(",H["664"]="(",H["665"]="(",H["666"]="(",H["667"]="(",H["668"]="(",H["669"]="(",H["670"]="(",H["671"]="(",H["672"]="(",H["673"]="(",H["674"]="(h",H["675"]="(h",H["676"]="(h",H["677"]="(h",H["678"]="(h",H["679"]="(h",H["680"]="(h",H["681"]="(h",H["682"]="(h",H["683"]="(h",H["684"]="(h",H["685"]="(h",H["686"]="(h",H["687"]="(h",H["688"]="A",H["689"]="A",H["690"]="A",H["691"]= "MEAC3",H["773"]="i",H["806"]="I",H["805"]="I",H["829"]="9",H["830"]="9",H["831"]="9",H["832"]="9",H["833"]="9",H["834"]="9",H["835"]="9",H["836"]="9",H["837"]="9",H["838"]="9",H["839"]="9",H["840"]="9",H["841"]="(",H["842"]="(",H["843"]="(",H["844"]="(",H["845"]="(",H["846"]="(",H["847"]="(",H["848"]="(",H["849"]="(",H["850"]="(",H["851"]="(",H["852"]="(",H["865"]="9",H["866"]="9",H["867"]="9",H["868"]="9",H["869"]="9",H["870"]="9",H["871"]="9",H["872"]="9",H["873"]="9",H["874"]="9",H["875"]="9", H["876"]="9",H["877"]="(",H["878"]="(",H["879"]="(",H["880"]="(",H["881"]="(",H["882"]="(",H["883"]="(",H["884"]="(",H["885"]="(",H["886"]="(",H["887"]="(",H["888"]="(",H);var IY={},zbF=(IY.STEREO_LAYOUT_UNKNOWN=0,IY.STEREO_LAYOUT_LEFT_RIGHT=1,IY.STEREO_LAYOUT_TOP_BOTTOM=2,IY);var qX,Wz;qX={};g.IA=(qX.auto=0,qX.tiny=144,qX.light=144,qX.small=240,qX.medium=360,qX.large=480,qX.hd720=720,qX.hd1080=1080,qX.hd1440=1440,qX.hd2160=2160,qX.hd2880=2880,qX.highres=4320,qX);Wz={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var nD="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");qu.prototype.isHdr=function(){return this.Y==="smpte2084"||this.Y==="arib-std-b67"};Pa.prototype.BY=function(){return this.containerType===2}; Pa.prototype.isEncrypted=function(){return!!this.LP}; Pa.prototype.hM=function(){return!!this.audio}; Pa.prototype.EM=function(){return!!this.video}; var tL=!1;g.C(nl,g.MU);g.u=nl.prototype;g.u.appendBuffer=function(v,O,Y){if(this.Gd.xV()!==this.appendWindowStart+this.start||this.Gd.e5()!==this.appendWindowEnd+this.start||this.Gd.En()!==this.timestampOffset+this.start)this.Gd.supports(1),this.Gd.cN(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Gd.Xt(this.timestampOffset+this.start);this.Gd.appendBuffer(v,O,Y)}; g.u.abort=function(){this.Gd.abort()}; g.u.remove=function(v,O){this.Gd.remove(v+this.start,O+this.start)}; g.u.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.u.clear=function(){this.Gd.clear()}; g.u.cN=function(v,O){this.appendWindowStart=v;this.appendWindowEnd=O}; g.u.fF=function(){return this.timestampOffset+this.start}; g.u.xV=function(){return this.appendWindowStart}; g.u.e5=function(){return this.appendWindowEnd}; g.u.Xt=function(v){this.timestampOffset=v}; g.u.En=function(){return this.timestampOffset}; g.u.UM=function(v){v=this.Gd.UM(v===void 0?!1:v);return qO(v,this.start,this.end)}; g.u.Rr=function(){return this.Gd.Rr()}; g.u.uY=function(){return this.Gd.uY()}; g.u.x8=function(){return this.Gd.x8()}; g.u.g$=function(){return this.Gd.g$()}; g.u.BM=function(){this.Gd.BM()}; g.u.eH=function(v){return this.Gd.eH(v)}; g.u.oz=function(){return this.Gd.oz()}; g.u.h5=function(){return this.Gd.h5()}; g.u.pA=function(v,O,Y){this.Gd.pA(v,O,Y)}; g.u.eR=function(v,O,Y){this.Gd.eR(v,O,Y)}; g.u.Qy=function(v,O){return this.Gd.Qy(v,O)}; g.u.supports=function(v){return this.Gd.supports(v)}; g.u.V1=function(){return this.Gd.V1()}; g.u.isView=function(){return!0}; g.u.kX=function(){return this.Gd.kX()?this.isActive:!1}; g.u.isLocked=function(){return this.mO&&!this.isActive}; g.u.Yu=function(v){v=this.Gd.Yu(v);v.vw=this.start+"-"+this.end;return v}; g.u.ge=function(){return this.Gd.ge()}; g.u.jW=function(){return this.Gd.jW()}; g.u.l_=function(){return this.Gd.l_()}; g.u.cW=function(){this.Gd.hf(this.NV);g.MU.prototype.cW.call(this)};var si=!1;g.C(Kl,g.MU);g.u=Kl.prototype;g.u.appendBuffer=function(v,O,Y){this.zv=!1;Y&&(this.f2=Y);if(v.length){var S;((S=this.A$)==null?0:S.appendBuffer)?this.A$.appendBuffer(v):this.A$?this.A$.append(v):this.AE&&this.AE.webkitSourceAppend(this.id,v)}O&&(O.isEncrypted()&&(this.iU=this.f2),O.type===3&&(this.O_=O),this.xs.push(O.d2()),this.xs.length>4&&this.xs.shift());this.D$&&(this.D$.length>=2||v.length>1048576?delete this.D$:this.D$.push(v))}; g.u.abort=function(){try{this.A$?this.A$.abort():this.AE&&this.AE.webkitSourceAbort(this.id)}catch(O){if(Wim){var v=new g.iK("Error while abort the source buffer: "+O.name+", "+O.message);g.LP(v)}}this.f2=this.O_=null}; g.u.remove=function(v,O,Y){this.zv=!1;var S;if((S=this.A$)==null?0:S.remove)Y&&Y({b:WS(this.UM()),s:v,e:O}),this.A$.remove(v,O)}; g.u.removeAll=function(){this.remove(this.xV(),this.e5())}; g.u.clear=function(){this.x8()||(this.abort(),this.removeAll(),this.iU=this.f2=this.O_=null,this.appendWindowStart=this.timestampOffset=0,this.iX=j5([],[]),this.zv=!1,this.D$=Jo?[]:void 0,this.r5=!0)}; g.u.xV=function(){if(si&&this.EM)return this.appendWindowStart;var v;return((v=this.A$)==null?void 0:v.appendWindowStart)||0}; g.u.e5=function(){var v;return((v=this.A$)==null?void 0:v.appendWindowEnd)||0}; g.u.cN=function(v,O){this.A$&&(si&&this.EM?(this.appendWindowStart=v,this.A$.appendWindowEnd=O):v>this.xV()?(this.A$.appendWindowEnd=O,this.A$.appendWindowStart=v):(this.A$.appendWindowStart=v,this.A$.appendWindowEnd=O))}; g.u.fF=function(){return this.timestampOffset}; g.u.Xt=function(v){si?this.timestampOffset=v:this.supports(1)&&(this.A$.timestampOffset=v)}; g.u.En=function(){return si?this.timestampOffset:this.supports(1)?this.A$.timestampOffset:0}; g.u.UM=function(v){if(v===void 0?0:v)return this.zv||this.Rr()||(this.iX=this.UM(!1),this.zv=!0),this.iX;try{return this.A$?this.A$.buffered:this.AE?this.AE.webkitSourceBuffered(this.id):j5([0],[Infinity])}catch(O){return j5([],[])}}; g.u.Rr=function(){var v;return((v=this.A$)==null?void 0:v.updating)||!1}; g.u.x8=function(){return this.r5}; g.u.g$=function(){return!this.r5&&this.Rr()}; g.u.BM=function(){this.r5=!1}; g.u.eH=function(v){var O=v==null?void 0:v.z0;v=v==null?void 0:v.containerType;return!O&&!v||O===this.z0&&v===this.containerType}; g.u.oz=function(){return this.f2}; g.u.h5=function(){return this.iU}; g.u.Qy=function(v,O){return this.containerType!==v||this.z0!==O}; g.u.pA=function(v,O,Y){if(this.containerType!==v||Y&&this.Qy(v,Y))this.supports(4),PS()&&this.A$.changeType(O),Y&&(this.z0=Y);this.containerType=v}; g.u.eR=function(v,O,Y){this.containerType&&this.Qy(v,O)&&PS()&&this.A$.changeType(Y);this.containerType=v;this.z0=O}; g.u.V1=function(){return this.O_}; g.u.isView=function(){return!1}; g.u.supports=function(v){switch(v){case 1:var O;return((O=this.A$)==null?void 0:O.timestampOffset)!==void 0;case 0:var Y;return!((Y=this.A$)==null||!Y.appendBuffer);case 2:var S;return!((S=this.A$)==null||!S.remove);case 3:var d,r;return!!(((d=this.A$)==null?0:d.addEventListener)&&((r=this.A$)==null?0:r.removeEventListener));case 4:return!(!this.A$||!this.A$.changeType);default:return!1}}; g.u.kX=function(){return!this.Rr()}; g.u.isLocked=function(){return!1}; g.u.Yu=function(v){v.to=this.En();v.up=this.Rr();var O,Y=((O=this.A$)==null?void 0:O.appendWindowStart)||0,S;O=((S=this.A$)==null?void 0:S.appendWindowEnd)||Infinity;v.aw=Y.toFixed(3)+"-"+O.toFixed(3);return v}; g.u.uY=function(){var v;return((v=this.A$)==null?void 0:v.writeHead)||0}; g.u.ge=function(){for(var v={},O=0;O=7&&CCg(this,function(){g.fS(function(){wKd(v,v.getCurrentTime(),0)},500)}); return O}; g.u.seekTo=function(v){this.h3()>0&&(hM&&I2<4&&(v=Math.max(.1,v)),this.setCurrentTime(v))}; g.u.Oy=function(){if(!this.U&&this.Du)if(this.Du.Z)try{var v;Do(this,{l:"mer",sr:(v=this.Og)==null?void 0:v.eE(),rs:NO(this.Du)});this.Du.clear();this.U=this.Du;this.Du=void 0}catch(O){v=new g.iK("Error while clearing Media Source in MediaElement: "+O.name+", "+O.message),g.LP(v),this.stopVideo()}else this.stopVideo()}; g.u.stopVideo=function(){var v=this;if(!this.U){var O;(O=this.Du)==null||BY$(O);if(bk3){if(!this.G){var Y=new OK;Y.then(void 0,function(){}); this.G=Y;onF&&this.pause();g.fS(function(){v.G===Y&&(rC(v),Y.resolve())},200)}}else rC(this)}}; g.u.A2=function(){var v=this.s_();return V6(v)&&this.getDuration()?gb(v,this.getCurrentTime()):0}; g.u.lx=function(){var v=this.getDuration();return v===Infinity?1:v?this.A2()/v:0}; g.u.Yu=function(){try{var v=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:WS(this.ix(),",",3),vbu:WS(this.s_()),vbs:WS(this.zo()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.h3(),vns:""+this.kE(),vec:""+this.ub(),vemsg:this.Bj(),vvol:""+this.getVolume(),vdom:""+ +this.Vb(),vsrc:""+ +!!this.eZ(),vw:""+v.width,vh:""+v.height}}catch(O){return{}}}; g.u.hasError=function(){return this.ub()>0}; g.u.addEventListener=function(v,O){this.B.listen(v,O,!1,this);this.EC(v)}; g.u.removeEventListener=function(v,O){this.B.g2(v,O,!1,this)}; g.u.dispatchEvent=function(v){if(this.G&&v.type==="pause")return!1;if(jel){var O,Y=((O=v.Y)==null?void 0:O.timeStamp)||Infinity;O=Y>performance.now()?Y-Date.now()+performance.now():Y;Y=this.U||this.Du;if((Y==null?0:Y.x8())||O<=((Y==null?void 0:Y.C)||0)){var S;Do(this,{l:"mede",sr:(S=this.Og)==null?void 0:S.eE(),et:v.type});return!1}if(this.Y1)return Do(this,{l:"medes",et:v.type}),Y&&v.type==="seeking"&&(Y.C=performance.now(),this.Y1=!1),!1}return this.B.dispatchEvent(v)}; g.u.wc=function(){this.C=!1}; g.u.SF=function(){this.C=!0;this.PZ(!0)}; g.u.Xw=function(){this.C&&!this.vL()&&this.PZ(!0)}; g.u.equals=function(v){return!!v&&v.dR()===this.dR()}; g.u.cW=function(){this.L&&this.removeEventListener("volumechange",this.Xw);bk3&&rC(this);g.X.prototype.cW.call(this)}; var bk3=!1,onF=!1,jel=!1,n8Q=!1;g.u=g.oK.prototype;g.u.isPaused=function(){return g.G(this,4)}; g.u.isPlaying=function(){return g.G(this,8)&&!g.G(this,512)&&!g.G(this,64)&&!g.G(this,2)}; g.u.isOrWillBePlaying=function(){return g.G(this,8)&&!g.G(this,2)&&!g.G(this,1024)}; g.u.isCued=function(){return g.G(this,64)&&!g.G(this,8)&&!g.G(this,4)}; g.u.isBuffering=function(){return g.G(this,1)&&!g.G(this,2)}; g.u.isError=function(){return g.G(this,128)}; g.u.isSuspended=function(){return g.G(this,512)}; g.u.Hd=function(){return g.G(this,64)&&g.G(this,4)}; g.u.toString=function(){return"PSt."+this.state.toString(16)}; var nW={},Jb=(nW.BUFFERING="buffering-mode",nW.CUED="cued-mode",nW.ENDED="ended-mode",nW.PAUSED="paused-mode",nW.PLAYING="playing-mode",nW.SEEKING="seeking-mode",nW.UNSTARTED="unstarted-mode",nW);g.C($2,g.X);g.u=$2.prototype;g.u.TH=function(){return this.G}; g.u.l3=function(){return this.slot}; g.u.lc=function(){return this.layout}; g.u.init=function(){var v=oj(this.layout.clientMetadata,"metadata_type_video_length_seconds"),O=oj(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");xD(this.layout.Ge)&&NI(this.eh.get(),this.layout.layoutId,{Jx:O,HH:v,listener:this,dS:this.Vr()});y2c(this.L1.get(),this);v=this.El;O=this.layout.layoutId;var Y={dS:this.Vr()};v.Y.set(O,Y);this.O7()}; g.u.Cu=function(){}; g.u.release=function(){xD(this.layout.Ge)&&vo(this.eh.get(),this.layout.layoutId);aB7(this.L1.get(),this);this.El.Y.delete(this.layout.layoutId);this.H9()}; g.u.W1=function(){}; g.u.Re=function(){}; g.u.startRendering=function(v){aA(k2(this));if(UK(this,v)){var O=this.Y;xu(O.params.Im.e4.get(),!0)&&c1i(O,"p_sr",{});cN(this);this.v9(v);this.Vr()||this.JA(!1)}}; g.u.jh=function(v,O){if(O.layoutId===this.layout.layoutId){this.nj="rendering";this.U=this.Zu.get().isMuted()||this.Zu.get().getVolume()===0;this.wR("impression");this.wR("start");if(this.Zu.get().isMuted()){pa(this,"mute");var Y;v=((Y=fa(this))==null?void 0:Y.muteCommands)||[];Pv(this.gR.get(),v,this.layout.layoutId)}if(this.Zu.get().isFullscreen()){this.IS("fullscreen");var S;Y=((S=fa(this))==null?void 0:S.fullscreenCommands)||[];Pv(this.gR.get(),Y,this.layout.layoutId)}this.Vr()||(S=this.ZU.get(), S.G&&!S.U&&(S.Z=!1,S.U=!0,S.actionType!=="ad_to_video"&&(i1("pbs",void 0,S.actionType),g.uF("finalize_all_timelines")&&O8g(S.actionType))));this.ji(1);this.Xb(O);var d;O=((d=fa(this))==null?void 0:d.impressionCommands)||[];Pv(this.gR.get(),O,this.layout.layoutId)}}; g.u.tj=function(v,O,Y){this.L={Lk:3,pH:v==="load_timeout"?402:400,errorMessage:O.message};this.wR("error");var S;v=((S=fa(this))==null?void 0:S.errorCommands)||[];Pv(this.gR.get(),v,this.layout.layoutId);this.Vr()||this.DK.U_(this.slot,this.layout,O,Y)}; g.u.dX=function(){if(this.nj==="rendering"){pa(this,"pause");var v,O=((v=fa(this))==null?void 0:v.pauseCommands)||[];Pv(this.gR.get(),O,this.layout.layoutId);this.ji(2)}}; g.u.JJ=function(){if(this.nj==="rendering"){pa(this,"resume");var v,O=((v=fa(this))==null?void 0:v.resumeCommands)||[];Pv(this.gR.get(),O,this.layout.layoutId)}}; g.u.XX=function(v,O){O=O===void 0?!1:O;if(this.nj==="rendering"){var Y={currentTimeSec:v,flush:O};pD(this.Y,"p_ip",Y);EF(this.K1,v*1E3,O);this.U||EF(this.K1,v*1E3,O===void 0?!1:O);var S=this.PM();if(S){S/=1E3;if(v>=S*.25||O)this.wR("first_quartile"),pD(this.Y,"p_fq",Y);if(v>=S*.5||O)this.wR("midpoint"),pD(this.Y,"p_sq",Y);if(v>=S*.75||O)this.wR("third_quartile"),pD(this.Y,"p_tq",Y);this.e4.get().N.D().experiments.T0("enable_progress_command_flush_on_kabuki")?nN(this.B,v*1E3,O):nN(this.B,v*1E3,mBc(this)? O:!1)}}}; g.u.W7=function(){var v;return((v=u7(this.S4.get(),1))==null?void 0:v.clientPlaybackNonce)||""}; g.u.D8=function(v,O){v.layoutId!==this.layout.layoutId?this.DK.U_(this.slot,v,new rL("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"):O()}; g.u.ma=function(v,O,Y){if(O.layoutId===this.layout.layoutId)switch(this.nj="not_rendering",this.layoutExitReason=void 0,this.Vr()||(v=Y!=="normal"||this.position+1===this.C)&&this.JA(v),this.BC(Y),this.ji(0),Y){case "abandoned":if(QT(this.K1,"impression")){var S,d=((S=fa(this))==null?void 0:S.abandonCommands)||[];Pv(this.gR.get(),d,this.layout.layoutId)}break;case "normal":S=((d=fa(this))==null?void 0:d.completeCommands)||[];Pv(this.gR.get(),S,this.layout.layoutId);break;case "skipped":var r;S=((r= fa(this))==null?void 0:r.skipCommands)||[];Pv(this.gR.get(),S,this.layout.layoutId)}}; g.u.sI=function(){return this.layout.layoutId}; g.u.HG=function(){return this.L}; g.u.E5=function(){if(this.nj==="rendering"){this.K1.wR("active_view_measurable");var v,O=((v=fa(this))==null?void 0:v.activeViewMeasurableCommands)||[];Pv(this.gR.get(),O,this.layout.layoutId)}}; g.u.Kh=function(){if(this.nj==="rendering"){this.K1.wR("active_view_fully_viewable_audible_half_duration");var v,O=((v=fa(this))==null?void 0:v.activeViewFullyViewableAudibleHalfDurationCommands)||[];Pv(this.gR.get(),O,this.layout.layoutId)}}; g.u.Tb=function(){if(this.nj==="rendering"){this.K1.wR("active_view_viewable");var v,O=((v=fa(this))==null?void 0:v.activeViewViewableCommands)||[];Pv(this.gR.get(),O,this.layout.layoutId)}}; g.u.fh=function(){if(this.nj==="rendering"){this.K1.wR("audio_audible");var v,O=((v=fa(this))==null?void 0:v.activeViewAudioAudibleCommands)||[];Pv(this.gR.get(),O,this.layout.layoutId)}}; g.u.ag=function(){if(this.nj==="rendering"){this.K1.wR("audio_measurable");var v,O=((v=fa(this))==null?void 0:v.activeViewAudioMeasurableCommands)||[];Pv(this.gR.get(),O,this.layout.layoutId)}}; g.u.JA=function(v){this.ZU.get().JA(oj(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,v,this.position,this.C,!1)}; g.u.onFullscreenToggled=function(v){if(this.nj==="rendering")if(v){this.IS("fullscreen");var O,Y=((O=fa(this))==null?void 0:O.fullscreenCommands)||[];Pv(this.gR.get(),Y,this.layout.layoutId)}else this.IS("end_fullscreen"),O=((Y=fa(this))==null?void 0:Y.endFullscreenCommands)||[],Pv(this.gR.get(),O,this.layout.layoutId)}; g.u.onVolumeChange=function(){if(this.nj==="rendering")if(this.Zu.get().isMuted()){pa(this,"mute");var v,O=((v=fa(this))==null?void 0:v.muteCommands)||[];Pv(this.gR.get(),O,this.layout.layoutId)}else pa(this,"unmute"),v=((O=fa(this))==null?void 0:O.unmuteCommands)||[],Pv(this.gR.get(),v,this.layout.layoutId)}; g.u.VH=function(){}; g.u.fW=function(){}; g.u.bq=function(){}; g.u.uq=function(){}; g.u.Ez=function(){}; g.u.IS=function(v){this.K1.IS(v,!this.U)}; g.u.wR=function(v){this.K1.wR(v,!this.U)}; g.u.Vr=function(){var v=oj(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return v===void 0?(f_("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.e4.get().Vr(v)};g.C(RK,$2);g.u=RK.prototype;g.u.O7=function(){}; g.u.H9=function(){var v=this.L1.get();v.Pv===this&&(v.Pv=null);this.KP.stop()}; g.u.W1=function(){this.KP.stop();$2.prototype.dX.call(this)}; g.u.Re=function(){EK(this);$2.prototype.JJ.call(this)}; g.u.PM=function(){return oj(this.lc().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.u.Y4=function(v,O){var Y=this;this.D8(v,function(){Y.nj!=="rendering_stop_requested"&&(Y.nj="rendering_stop_requested",Y.layoutExitReason=O,Ca(Y,O),Y.KP.stop())})}; g.u.vD=function(){var v=Date.now(),O=v-this.au;this.au=v;this.Q5+=O;this.Q5>=this.PM()?this.MV():(this.XX(this.Q5/1E3),e_(this,this.Q5))}; g.u.BC=function(){}; g.u.i8=function(){}; g.C(Qa,RK);g.u=Qa.prototype;g.u.l6=function(v){if(this.nj!=="not_rendering"){v=ya(this,v);var O=this.Zu.get().getPresentingPlayerType()===2;this.nj==="rendering_start_requested"?O&&V9(v)&&this.Dl():O?g.UO(v,2)?f_("Receive player ended event during MediaBreak",this.l3(),this.lc()):aK(this,v):this.OS()}}; g.u.v9=function(){GX1(this);QlE(this.Zu.get());this.L1.get().Pv=this;PT("pbp")||PT("pbs")||i1("pbp");PT("pbp","watch")||PT("pbs","watch")||i1("pbp",void 0,"watch");this.Dl()}; g.u.Xb=function(v){this.ZU.get();var O=oj(v.clientMetadata,"metadata_type_ad_placement_config").kind,Y=this.position===0;v=oj(v.clientMetadata,"metadata_type_linked_in_player_layout_type");v={adBreakType:x2(O),adType:bwi(v)};var S=void 0;Y?O!=="AD_PLACEMENT_KIND_START"&&(S="video_to_ad"):S="ad_to_ad";nw("ad_mbs",void 0,S);g.J_(v,S);EK(this)}; g.u.OS=function(){this.cf()}; g.u.MV=function(){DB$(this);this.cf()}; g.C(La,RK);g.u=La.prototype;g.u.l6=function(v){this.nj!=="not_rendering"&&(v=ya(this,v),aK(this,v))}; g.u.v9=function(){f_("Not used in SSAP")}; g.u.Xb=function(){EK(this)}; g.u.OS=function(){f_("Not used in SSAP")}; g.u.MV=function(){DB$(this);this.DK.XS(this.l3(),this.lc(),"normal")}; g.C(BN,La);BN.prototype.Y4=function(v,O){var Y=this;this.D8(v,function(){Un(Y.G,O)&&(Y.nj="rendering_stop_requested",Y.layoutExitReason=O,Ca(Y,O),Y.KP.stop())})}; BN.prototype.startRendering=function(v){aA(k2(this));UK(this,v)&&(cN(this),this.L1.get().Pv=this)};g.C(wC,$2);g.u=wC.prototype;g.u.OS=function(){this.cf()}; g.u.l6=function(v){if(this.nj!=="not_rendering"){v=ya(this,v);var O=this.Zu.get().getPresentingPlayerType()===2;this.nj==="rendering_start_requested"?O&&V9(v)&&this.Dl():!O||g.UO(v,2)?this.cf():aK(this,v)}}; g.u.O7=function(){oj(this.lc().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=oj(this.lc().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.u.H9=function(){oj(this.lc().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.iQ){var v=this.context.Im,O=this.iQ,Y=this.lc().layoutId;if(xu(v.e4.get(),!0)){var S={};v.Yy("mccru",(S.cid=O,S.p_ac=Y,S))}this.SO.get().removeCueRange(this.iQ)}this.iQ=void 0;var d;(d=this.fJ)==null||d.dispose();this.Ph&&this.Ph.dispose()}; g.u.v9=function(v){var O=ZD(this.e4.get()),Y=Xj(this.e4.get());if(O&&Y&&!this.Vr()){Y=oj(v.clientMetadata,"metadata_type_preload_player_vars");var S=this.e4.get();S=g.Vq(S.N.D().experiments,"html5_preload_wait_time_secs");Y&&this.Ph&&this.Ph.start(S*1E3)}vxl(this,v);GX1(this);O?(Y=this.BD.get(),v=oj(v.clientMetadata,"metadata_type_player_vars"),Y.N.loadVideoByPlayerVars(v,!1,2)):tSQ(this.BD.get(),oj(v.clientMetadata,"metadata_type_player_vars"));var d;(d=this.fJ)==null||d.start();O||this.BD.get().N.playVideo(2)}; g.u.Xb=function(){var v;(v=this.fJ)==null||v.stop();this.iQ="adcompletioncuerange:"+this.lc().layoutId;this.SO.get().addCueRange(this.iQ,0x7ffffffffffff,0x8000000000000,!1,this,2,2);v=this.context.Im;var O=this.iQ,Y=this.lc().layoutId;if(xu(v.e4.get(),!0)){var S={};v.Yy("mccr",(S.cid=O,S.p_ac=Y,S))}(this.adCpn=PCQ(this))||f_("Media layout confirmed started, but ad CPN not set.");this.K_.get().Pd("onAdStart",this.adCpn);this.Ia=Date.now()}; g.u.PM=function(){var v;return(v=u7(this.S4.get(),2))==null?void 0:v.pK}; g.u.dY=function(){this.K1.IS("clickthrough")}; g.u.Y4=function(v,O){var Y=this;this.D8(v,function(){if(Y.nj!=="rendering_stop_requested"){Y.nj="rendering_stop_requested";Y.layoutExitReason=O;Ca(Y,O);var S;(S=Y.fJ)==null||S.stop();Y.Ph&&Y.Ph.stop();OwF(Y)}})}; g.u.onCueRangeEnter=function(v){if(v!==this.iQ)f_("Received CueRangeEnter signal for unknown layout.",this.l3(),this.lc(),{cueRangeId:v});else{var O=this.context.Im,Y=this.lc().layoutId;if(xu(O.e4.get(),!0)){var S={};O.Yy("mccre",(S.cid=v,S.p_ac=Y,S))}this.SO.get().removeCueRange(this.iQ);this.iQ=void 0;tE(this.context.e4.get(),"html5_ssap_flush_at_stop_rendering")&&this.Vr()||(v=oj(this.lc().clientMetadata,"metadata_type_video_length_seconds"),this.XX(v,!0),this.wR("complete"))}}; g.u.BC=function(v){v!=="abandoned"&&this.K_.get().Pd("onAdComplete");this.K_.get().Pd("onAdEnd",this.adCpn)}; g.u.onCueRangeExit=function(){}; g.u.i8=function(v){this.nj==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&v>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Zu.get().tp(!0),this.XX(v))}; g.u.XX=function(v,O){$2.prototype.XX.call(this,v,O===void 0?!1:O);O=Date.now()-this.Ia;var Y=v*1E3,S={contentCpn:this.W7(),adCpn:PCQ(this)};if(v-this.tY>=5){var d=O=2||(this.xu.Y4(this.layout,O),v=tE(this.params.context.e4.get(),"html5_ssap_pass_transition_reason")&&O==="abandoned",this.Mn()&&!v&&(tE(this.params.context.e4.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(O)||f_("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:O})),this.eO.get().finishSegmentByCpn(this.layout.layoutId, u7(this.S4.get(),1).clientPlaybackNonce,l7(O,this.params.context.e4))),this.Zu.get().removeListener(this),this.GK()&&ca(this.xu.TH())&&this.je.ma(this.slot,this.layout,this.xu.TH().Y))}; g.u.hd=function(v,O,Y){kXm({cpn:v,Mp:this.S4.get(),QB:!0});this.lc().layoutId!==v||tE(this.params.context.e4.get(),"html5_ssap_pass_transition_reason")&&Y===5||(this.xu.TH().currentState<2&&(v=Fj(Y,this.params.context.e4),v==="error"?this.je.U_(this.slot,this.layout,new rL("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:Y},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):tm(this.hm, this.layout,v)),tE(this.params.context.e4.get(),"html5_ssap_exit_without_waiting_for_transition")||this.je.ma(this.slot,this.layout,this.xu.TH().Y))};g.C(Ka,g.X);g.u=Ka.prototype;g.u.l3=function(){return this.slot}; g.u.lc=function(){return this.layout}; g.u.gM=function(){}; g.u.zO=function(){return this.yH[this.fp]}; g.u.A3=function(){return this.fp}; g.u.W1=function(v,O){var Y=this.zO();O.layoutId!==GH(Y,v,O)?f_("pauseLayout for a PlayerBytes layout that is not currently active",v,O):Y.W1()}; g.u.Re=function(v,O){var Y=this.zO();O.layoutId!==GH(Y,v,O)?f_("resumeLayout for a PlayerBytes layout that is not currently active",v,O):Y.Re()}; g.u.zb=function(v,O){var Y=this.zO();stl(this,v,O);gxn(Y,v,O)&&this.Gq(Y.l3(),Y.lc(),"skipped")}; g.u.oT=function(v,O){var Y=this.zO();MVw(this);VVw(Y,v,O)&&(v=A_F(this,Y,v,O),v!==void 0&&(this.Vr()?f_("Should not happen. Should delete"):$0c(this,Y.l3(),Y.lc(),v)))}; g.u.aH=function(v,O){var Y=Object.assign({},PN(this),{layoutId:O.layoutId}),S=Y.layoutId,d=Y.QB;if(Y.dS){var r={};y9(Y.Mp,"wrse",(r.ec=S,r.is=d,r.ctp=CD(S),r))}F3(this.qd,v,O)}; g.u.jh=function(v,O){var Y;(Y=this.zO())==null||Y.jh(v,O)}; g.u.ma=function(v,O,Y){O.layoutId===this.lc().layoutId&&(this.jP=!1,kV(this.Oq(),this));var S;(S=this.zO())==null||S.ma(v,O,Y)}; g.u.i8=function(v){var O;(O=this.zO())==null||O.i8(v)}; g.u.K7=function(v,O,Y){this.A3()===-1&&(this.callback.jh(this.slot,this.layout),this.fp++);var S=this.zO();S?(S.tj(v,O,Y),this.Vr()&&this.callback.U_(this.slot,this.layout,O,Y)):f_("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.A3()),layoutId:this.lc().layoutId})}; g.u.onFullscreenToggled=function(v){var O;(O=this.zO())==null||O.onFullscreenToggled(v)}; g.u.VH=function(v){var O;(O=this.zO())==null||O.VH(v)}; g.u.bq=function(v){var O;(O=this.zO())==null||O.bq(v)}; g.u.onVolumeChange=function(){var v;(v=this.zO())==null||v.onVolumeChange()}; g.u.eF=function(v,O,Y){hE(this.qd,v,O,Y)}; g.u.iC=function(v){v.startRendering(v.lc())}; g.u.init=function(){var v=oj(this.lc().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");v&&(v.current=this);if(this.yH.length<1)throw new m("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.yH.length)});if(v=oj(this.lc().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))v.current=this;v=g.y(this.yH);for(var O=v.next();!O.done;O=v.next())O=O.value,O.init(),Xri(this.qd,this.slot,O.lc()),wr7(this.qd,this.slot,O.lc()); if(this.Vr())for(this.S4.get().addListener(this),g81(zlF(this),this.S4.get()),v=zlF(this),v=g.y(v),O=v.next();!O.done;O=v.next())this.Ah(O.value)}; g.u.Ah=function(v){var O=oj(v.clientMetadata,"metadata_type_player_vars");O?(v.layoutType!=="LAYOUT_TYPE_MEDIA"&&f_("Non-video ad contains playerVars",this.slot,v),this.BD.get().addPlayerResponseForAssociation({playerVars:O})):(v=oxw(v),this.BD.get().addPlayerResponseForAssociation({yO:v}))}; g.u.release=function(){var v=oj(this.lc().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");v&&(v.current=null);if(v=oj(this.lc().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))v.current=null;v=g.y(this.yH);for(var O=v.next();!O.done;O=v.next())O=O.value,IXJ(this.qd,this.slot,O.lc()),O.release();this.Vr()&&(this.S4.get().removeListener(this),Mdd())}; g.u.D8=function(v){return v.layoutId!==this.lc().layoutId?(this.callback.U_(this.l3(),v,new rL("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.lc().layoutId+("and LayoutType: "+this.lc().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.u.cQ=function(){this.Zu.get().addListener(this);$V(this.Oq(),this)}; g.u.l6=function(v){if(v.state.isError()){var O,Y;this.K7((O=v.state.ib)==null?void 0:O.errorCode,new rL("There was a player error during this media layout.",{playerErrorCode:(Y=v.state.ib)==null?void 0:Y.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(O=this.zO())&&O.l6(v)}; g.u.Vr=function(){var v=oj(this.l3().clientMetadata,"metadata_type_eligible_for_ssap");return v===void 0?(f_("Expected SSAP eligibility in PlayerBytes slots",this.l3(),this.lc()),!1):this.e4.get().Vr(v)}; g.u.fW=function(){}; g.u.Rn=function(){}; g.u.Le=function(){}; g.u.FQ=function(){}; g.u.ST=function(){}; g.u.XZ=function(){}; g.u.vB=function(){}; g.u.kW=function(){}; g.u.Ul=function(){}; g.u.JM=function(){}; g.u.DQ=function(){}; g.u.uq=function(){}; g.u.Ez=function(){}; g.C(DD,Ka);g.u=DD.prototype;g.u.EX=function(v,O,Y){this.Gq(v,O,Y)}; g.u.KG=function(v,O){this.Gq(v,O,"error")}; g.u.Gq=function(v,O,Y){var S=this;f93(this,v,O,Y,function(){i7(S,S.A3()+1)})}; g.u.startRendering=function(v){this.D8(v)&&(this.cQ(),G8w(this.ZU.get()),vSn(this.e4.get())||QlE(this.Zu.get()),this.A3()===-1&&i7(this,this.A3()+1))}; g.u.Y4=function(v,O){var Y=this;this.jP=!0;this.A3()===this.yH.length?this.callback.ma(this.slot,this.layout,O):(v=this.zO(),v.Y4(v.lc(),O),this.oM=function(){Y.callback.ma(Y.slot,Y.layout,O)}); this.Zu.get().N.QW();tSQ(this.BD.get(),{});v=HA(this.Zu.get(),1);v.isPaused()&&!g.G(v,2)&&this.Zu.get().playVideo();this.Zu.get().removeListener(this);this.jP&&kU3(this)}; g.u.hd=function(){}; g.u.Zj=function(){}; g.u.XS=function(){}; g.C(HN,Ka);g.u=HN.prototype;g.u.EX=function(v,O,Y){v=Object.assign({},PN(this),{layoutId:O.layoutId,layoutExitReason:Y});O=v.layoutId;Y=v.layoutExitReason;var S={};y9(v.Mp,"prse",(S.xc=O,S.ler=Y,S.ctp=CD(O),S))}; g.u.KG=function(){f_("onSubLayoutError in SSAP")}; g.u.Gq=function(){f_("exitSubLayoutAndPlayNext in SSAP")}; g.u.zO=function(){return this.vY}; g.u.A3=function(){var v=this;return this.yH.findIndex(function(O){var Y;return O.lc().layoutId===((Y=v.vY)==null?void 0:Y.lc().layoutId)})}; g.u.iC=function(v){A1(this.vY===void 0,"replacing another adapter");this.vY=v;v.startRendering(v.lc())}; g.u.eF=function(v,O,Y){hE(this.qd,v,O,Y);var S;A1(O.layoutId===((S=this.vY)==null?void 0:S.lc().layoutId),"currentAdapter does not match exiting layout",{slot:v?"slot: "+v.slotType:"",subLayout:Ve(O)})&&(this.vY=void 0)}; g.u.release=function(){Ka.prototype.release.call(this);A1(this.vY===void 0,"currentAdapter is still active during release");this.vY=void 0}; g.u.Mn=function(){return this.Zu.get().getPresentingPlayerType()===2}; g.u.Y4=function(v,O){function Y(){Ns(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(O)||f_("Composite stopRendering: Unexpected layout exit reason",this.slot,v,{layoutExitReason:O}))} function S(){this.vY&&vq(this,this.vY,O);if(this.Mn()&&(!Ns(this)||O!=="abandoned")){Y.call(this);var r;var b=((r=this.S4.get().N.getVideoData())==null?void 0:r.clientPlaybackNonce)||"";r=u7(this.S4.get(),1).clientPlaybackNonce;this.eO.get().finishSegmentByCpn(b,r,l7(O,this.e4))}U0m(this,O)} function d(){if(this.vY){var r=this.vY;r.TH().currentState<2&&r.Y4(r.lc(),O);r=Ns(this)&&O==="abandoned";this.Mn()&&!r&&(Y.call(this),this.eO.get().finishSegmentByCpn(this.vY.lc().layoutId,u7(this.S4.get(),1).clientPlaybackNonce,l7(O,this.e4)))}} A1(v.layoutId===this.lc().layoutId,"StopRendering for wrong layout")&&Un(this.vI.U,O)&&(this.GK()?S.call(this):d.call(this))}; g.u.ma=function(v,O,Y){Ka.prototype.ma.call(this,v,O,Y);O.layoutId===this.lc().layoutId&&this.Zu.get().removeListener(this)}; g.u.W7=function(){return u7(this.S4.get(),1).clientPlaybackNonce}; g.u.hd=function(v,O,Y){kXm(Object.assign({},PN(this),{cpn:v}));if(!Ns(this)||Y!==5)if(this.GK()){if(this.vY&&this.vY.lc().layoutId!==O){var S=this.vY.lc().layoutId;S!==v&&f_("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:S,exitingCpn:v,enteringCpn:O});v=Fj(Y,this.e4);vq(this,this.vY,v)}else this.vY&&f_("onClipExited: active layout is entering again");O===this.W7()&&uOQ(this,Y)}else{if(this.vY&&this.vY.lc().layoutId===v)c_m(this,this.vY,Y);else{var d;f_("Exiting cpn does not match active cpn", this.slot,(S=this.vY)==null?void 0:S.lc(),{exitingCpn:v,transitionReason:Y,activeCpn:(d=this.vY)==null?void 0:d.lc().layoutId})}O===this.W7()&&(this.vY!==void 0&&(f_("active adapter is not properly exited",this.slot,this.layout,{activeLayout:Ve(this.vY.lc())}),c_m(this,this.vY,Y)),uOQ(this,Y),U0m(this,this.vI.U.Y))}}; g.u.GK=function(){return tE(this.e4.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.u.startRendering=function(v){this.D8(v)&&(v=this.vI,A1(v.Y===1,"tickStartRendering: state is not initial"),v.Y=2,this.cQ())}; g.u.Zj=function(v){$B3(Object.assign({},PN(this),{cpn:v}));var O=this.yH.find(function(Y){return Y.lc().layoutId===v}); O?(this.vI.Y!==2&&(O03(this.FH,this.slot.slotId),A1(this.vI.Y===2,"Expect started"),this.callback.jh(this.slot,this.layout)),this.iC(O),F3(this.qd,this.slot,O.lc())):C1m(this,v)}; g.u.zb=function(v,O){stl(this,v,O);var Y=this.zO();Y?gxn(Y,v,O)&&y_F(this,"skipped"):a9F(this,"onSkipRequested")}; g.u.oT=function(v,O){var Y;a:{if(Y=this.zO()){if(MVw(this),VVw(Y,v,O)&&(v=A_F(this,Y,v,O),v!==void 0)){Y={e2:Y,u40:this.yH[v]};break a}}else a9F(this,"SkipWithAdPodSkip");Y=void 0}if(v=Y)Y=v.e2,O=v.u40,v=Y.lc().layoutId,this.GK()?vq(this,Y,"skipped"):Y.Y4(Y.lc(),"skipped"),Y=O.lc().layoutId,this.eO.get().finishSegmentByCpn(v,Y,l7("skipped",this.e4))}; g.u.aH=function(){f_("Not used in html5_ssap_fix_layout_exit")}; g.u.l6=function(v){var O;(O=this.zO())==null||O.l6(v)}; g.u.K7=function(){f_("Not used in html5_ssap_fix_layout_exit")}; g.u.XS=function(v,O,Y){var S;if(((S=this.zO())==null?void 0:S.lc().layoutId)!==O.layoutId)return void f_("requestToExitSubLayout: wrong layout");y_F(this,Y)};g.C(Om,g.X);g.u=Om.prototype;g.u.l3=function(){return this.xu.l3()}; g.u.lc=function(){return this.xu.lc()}; g.u.init=function(){var v=oj(this.lc().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");v&&(v.current=this);this.O7()}; g.u.O7=function(){this.xu.init()}; g.u.release=function(){var v=oj(this.lc().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");v&&(v.current=null);this.H9()}; g.u.H9=function(){this.xu.release()}; g.u.W1=function(){this.xu.W1()}; g.u.Re=function(){this.xu.Re()}; g.u.zb=function(v,O){f_("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.l3(),this.lc(),{requestingSlot:v,requestingLayout:O})}; g.u.startRendering=function(v){v.layoutId!==this.lc().layoutId?this.callback.U_(this.l3(),v,new rL("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.lc().layoutId+("and LayoutType: "+this.lc().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Zu.get().addListener(this),$V(this.Oq(),this),G8w(this.ZU.get()),vSn(this.e4.get())||QlE(this.Zu.get()),this.xu.startRendering(v))}; g.u.Y4=function(v,O){this.jP=!0;this.xu.Y4(v,O);this.Zu.get().N.QW();tSQ(this.BD.get(),{});v=HA(this.Zu.get(),1);v.isPaused()&&!g.G(v,2)&&this.Zu.get().playVideo();this.Zu.get().removeListener(this);this.jP&&this.xu.OS()}; g.u.jh=function(v,O){this.xu.jh(v,O)}; g.u.ma=function(v,O,Y){O.layoutId===this.lc().layoutId&&(this.jP=!1,kV(this.Oq(),this));this.xu.ma(v,O,Y);O.layoutId===this.lc().layoutId&&m9(this.ZU.get())}; g.u.i8=function(v){this.xu.i8(v)}; g.u.l6=function(v){if(v.state.isError()){var O,Y;this.K7((O=v.state.ib)==null?void 0:O.errorCode,new rL("There was a player error during this media layout.",{playerErrorCode:(Y=v.state.ib)==null?void 0:Y.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.xu.l6(v)}; g.u.K7=function(v,O,Y){this.xu.tj(v,O,Y)}; g.u.onFullscreenToggled=function(v){this.xu.onFullscreenToggled(v)}; g.u.VH=function(v){this.xu.VH(v)}; g.u.bq=function(v){this.xu.bq(v)}; g.u.onVolumeChange=function(){this.xu.onVolumeChange()}; g.u.fW=function(){}; g.u.Rn=function(){}; g.u.Le=function(){}; g.u.FQ=function(){}; g.u.ST=function(){}; g.u.XZ=function(){}; g.u.vB=function(){}; g.u.kW=function(){}; g.u.Ul=function(){}; g.u.JM=function(){}; g.u.DQ=function(){}; g.u.uq=function(){}; g.u.Ez=function(){};g.u=Y7.prototype;g.u.l3=function(){return this.slot}; g.u.lc=function(){return this.layout}; g.u.init=function(){this.Pq.get().addListener(this);this.Zu.get().addListener(this);var v=oj(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var O=oj(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.B){var Y=this.Pq.get().C0.slice(-1)[0];Y!==void 0&&(v=Y.startSecs*1E3,O=(Y.startSecs+Y.kZ)*1E3)}this.Cu(v,O);var S;Y=(S=this.S4.get().kT)==null?void 0:S.clientPlaybackNonce;S=this.layout.Lj.adClientDataEntry;Sh(this.L1.get(),{daiStateTrigger:{filledAdsDurationMs:O-v,contentCpn:Y, adClientData:S}});var d=this.Pq.get();d=Tg3(d.G,v,O);d!==null&&(Sh(this.L1.get(),{daiStateTrigger:{filledAdsDurationMs:d-v,contentCpn:Y,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:S}}),this.eO.get().Qo(d,O))}; g.u.release=function(){this.H9();this.Pq.get().removeListener(this);this.Zu.get().removeListener(this)}; g.u.startRendering=function(){this.v9();this.callback.jh(this.slot,this.layout)}; g.u.Y4=function(v,O){this.lw(O);this.driftRecoveryMs!==null&&(d6(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(l9$(this)-oj(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Zu.get().N.S_()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.ma(this.slot,this.layout,O)}; g.u.u5=function(){return!1}; g.u.Cc=function(v){var O=oj(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),Y=oj(this.layout.clientMetadata,"metadata_type_layout_exit_ms");v*=1E3;if(O<=v&&v0&&Rj(this.Y(),O)}; g.u.Le=function(v){this.Z.delete(v.slotId);for(var O=[],Y=g.y(this.h$.values()),S=Y.next();!S.done;S=Y.next()){S=S.value;var d=S.trigger;d instanceof Nz&&d.triggeringSlotId===v.slotId&&O.push(S)}O.length>0&&Rj(this.Y(),O)}; g.u.FQ=function(v){for(var O=[],Y=g.y(this.h$.values()),S=Y.next();!S.done;S=Y.next()){S=S.value;var d=S.trigger;d instanceof nz&&d.slotType===v.slotType&&d.Y!==v.slotId&&O.push(S)}O.length>0&&Rj(this.Y(),O)}; g.u.ST=function(v){this.G.add(v.slotId);for(var O=[],Y=g.y(this.h$.values()),S=Y.next();!S.done;S=Y.next())S=S.value,S.trigger instanceof iz&&v.slotId===S.trigger.triggeringSlotId&&O.push(S);O.length>0&&Rj(this.Y(),O)}; g.u.XZ=function(v){this.G.delete(v.slotId);this.B.add(v.slotId);for(var O=[],Y=g.y(this.h$.values()),S=Y.next();!S.done;S=Y.next())if(S=S.value,S.trigger instanceof mr)v.slotId===S.trigger.triggeringSlotId&&O.push(S);else if(S.trigger instanceof RQ){var d=S.trigger;v.slotId===d.slotId&&this.U.has(d.triggeringLayoutId)&&O.push(S)}O.length>0&&Rj(this.Y(),O)}; g.u.vB=function(v){for(var O=[],Y=g.y(this.h$.values()),S=Y.next();!S.done;S=Y.next())S=S.value,S.trigger instanceof tO&&v.slotId===S.trigger.triggeringSlotId&&O.push(S);O.length>0&&Rj(this.Y(),O)}; g.u.kW=function(v){for(var O=[],Y=g.y(this.h$.values()),S=Y.next();!S.done;S=Y.next())S=S.value,S.trigger instanceof Dp&&v.slotId===S.trigger.triggeringSlotId&&O.push(S);O.length>0&&Rj(this.Y(),O)}; g.u.Ul=function(v,O){this.C.add(O.layoutId)}; g.u.JM=function(v,O){this.C.delete(O.layoutId)}; g.u.jh=function(v,O){this.U.add(O.layoutId);for(var Y=[],S=g.y(this.h$.values()),d=S.next();!d.done;d=S.next())if(d=d.value,d.trigger instanceof eh)O.layoutId===d.trigger.triggeringLayoutId&&Y.push(d);else if(d.trigger instanceof qz){var r=d.trigger;v.slotType===r.slotType&&O.layoutType===r.layoutType&&O.layoutId!==r.Y&&Y.push(d)}else d.trigger instanceof RQ&&(r=d.trigger,O.layoutId===r.triggeringLayoutId&&this.B.has(r.slotId)&&Y.push(d));Y.length>0&&Rj(this.Y(),Y)}; g.u.ma=function(v,O,Y){this.U.delete(O.layoutId);v=[];for(var S=g.y(this.h$.values()),d=S.next();!d.done;d=S.next())if(d=d.value,d.trigger instanceof QA&&O.layoutId===d.trigger.triggeringLayoutId&&v.push(d),d.trigger instanceof Em){var r=d.trigger;O.layoutId===r.triggeringLayoutId&&r.Y.includes(Y)&&v.push(d)}v.length>0&&Rj(this.Y(),v)}; g.u.DQ=function(){}; g.u.xf=function(){this.B.clear()}; g.u.TZ=function(){};g.C(qr,g.X);qr.prototype.Yp=function(v,O,Y,S){if(this.h$.has(O.triggerId))throw new m("Tried to register duplicate trigger for slot.");if(!(O instanceof Fe))throw new m("Incorrect TriggerType: Tried to register trigger of type "+O.triggerType+" in CloseRequestedTriggerAdapter");this.h$.set(O.triggerId,new YN(v,O,Y,S))}; qr.prototype.pT=function(v){this.h$.delete(v.triggerId)};g.C(Jj,g.X);Jj.prototype.Yp=function(v,O,Y,S){if(this.h$.has(O.triggerId))throw new m("Tried to register duplicate trigger for slot.");if(!(O instanceof lz||O instanceof Kz))throw new m("Incorrect TriggerType: Tried to register trigger of type "+O.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.h$.set(O.triggerId,new YN(v,O,Y,S))}; Jj.prototype.pT=function(v){this.h$.delete(v.triggerId)}; Jj.prototype.xf=function(v){for(var O=[],Y=O.push,S=Y.apply,d=[],r=g.y(this.h$.values()),b=r.next();!b.done;b=r.next())b=b.value,b.trigger instanceof lz&&b.trigger.Zh===v&&d.push(b);S.call(Y,O,g.F(d));Y=O.push;S=Y.apply;d=[];r=g.y(this.h$.values());for(b=r.next();!b.done;b=r.next())b=b.value,b.trigger instanceof Kz&&b.trigger.Y!==v&&d.push(b);S.call(Y,O,g.F(d));O.length&&Rj(this.Y(),O)}; Jj.prototype.TZ=function(v){for(var O=[],Y=O.push,S=Y.apply,d=[],r=g.y(this.h$.values()),b=r.next();!b.done;b=r.next()){b=b.value;var z=b.trigger;z instanceof Kz&&z.Y===v&&d.push(b)}S.call(Y,O,g.F(d));O.length&&Rj(this.Y(),O)};g.C(Ki,g.X);g.u=Ki.prototype;g.u.Yp=function(v,O,Y,S){if(this.h$.has(O.triggerId))throw new m("Tried to register duplicate trigger for slot.");var d="adtriggercuerange:"+O.triggerId;if(O instanceof w6)P$i(this,v,O,Y,S,d,O.Y.start,O.Y.end,O.Zh,O.visible);else if(O instanceof hO)P$i(this,v,O,Y,S,d,0x7ffffffffffff,0x8000000000000,O.Zh,O.visible);else throw new m("Incorrect TriggerType: Tried to register trigger of type "+O.triggerType+" in CueRangeTriggerAdapter");}; g.u.pT=function(v){var O=this.h$.get(v.triggerId);O&&this.SO.get().removeCueRange(O.cueRangeId);this.h$.delete(v.triggerId)}; g.u.onCueRangeEnter=function(v){var O=GGl(this,v);if(O&&(O=this.h$.get(O)))if(g.G(HA(this.Zu.get()),32))this.Y.add(O.cueRangeId);else{var Y=O==null?void 0:O.IU.trigger;if(Y instanceof w6||Y instanceof hO){if(xu(this.context.e4.get())){var S=O.IU.slot,d=O.IU.layout,r={};this.context.Im.Yy("cre",(r.ca=O.IU.category,r.tt=Y.triggerType,r.st=S.slotType,r.lt=d==null?void 0:d.layoutType,r.cid=v,r))}Rj(this.U(),[O.IU])}}}; g.u.onCueRangeExit=function(v){(v=GGl(this,v))&&(v=this.h$.get(v))&&this.Y.delete(v.cueRangeId)}; g.u.l6=function(v){if(k8(v,16)<0){v=g.y(this.Y);for(var O=v.next();!O.done;O=v.next())this.onCueRangeEnter(O.value,!0);this.Y.clear()}}; g.u.Rn=function(){}; g.u.Le=function(){}; g.u.FQ=function(){}; g.u.ST=function(){}; g.u.XZ=function(){}; g.u.vB=function(){}; g.u.kW=function(){}; g.u.Ul=function(){}; g.u.JM=function(){}; g.u.jh=function(){}; g.u.ma=function(){}; g.u.DQ=function(){}; g.u.i8=function(){}; g.u.onFullscreenToggled=function(){}; g.u.VH=function(){}; g.u.fW=function(){}; g.u.bq=function(){}; g.u.onVolumeChange=function(){}; g.u.uq=function(){}; g.u.Ez=function(){};g.C(P8,g.X);g.u=P8.prototype; g.u.Yp=function(v,O,Y,S){if(this.U.has(O.triggerId)||this.G.has(O.triggerId))throw new m("Tried to re-register the trigger.");v=new YN(v,O,Y,S);if(v.trigger instanceof Xe)this.U.set(v.trigger.triggerId,v);else if(v.trigger instanceof Lz)this.G.set(v.trigger.triggerId,v);else throw new m("Incorrect TriggerType: Tried to register trigger of type "+v.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.U.has(v.trigger.triggerId)&&v.slot.slotId===this.Y&&Rj(this.B(),[v])}; g.u.pT=function(v){this.U.delete(v.triggerId);this.G.delete(v.triggerId)}; g.u.gM=function(v){v=v.slotId;if(this.Y!==v){var O=[];this.Y!=null&&O.push.apply(O,g.F(iMl(this.G,this.Y)));v!=null&&O.push.apply(O,g.F(iMl(this.U,v)));this.Y=v;O.length&&Rj(this.B(),O)}}; g.u.hd=function(){}; g.u.Zj=function(){};g.C(Gy,g.X);g.u=Gy.prototype;g.u.Yp=function(v,O,Y,S){if(this.h$.has(O.triggerId))throw new m("Tried to register duplicate trigger for slot.");if(!(O instanceof JO))throw new m("Incorrect TriggerType: Tried to register trigger of type "+O.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.h$.set(O.triggerId,new YN(v,O,Y,S))}; g.u.pT=function(v){this.h$.delete(v.triggerId)}; g.u.jh=function(){}; g.u.ma=function(){}; g.u.Rn=function(){}; g.u.Le=function(){}; g.u.FQ=function(){}; g.u.ST=function(){}; g.u.XZ=function(){}; g.u.vB=function(){}; g.u.kW=function(){}; g.u.Ul=function(){}; g.u.JM=function(){}; g.u.DQ=function(){};g.C(i0,g.X);g.u=i0.prototype;g.u.DQ=function(v,O){for(var Y=[],S=g.y(this.h$.values()),d=S.next();!d.done;d=S.next()){d=d.value;var r=d.trigger;r.opportunityType===v&&(r.associatedSlotId&&r.associatedSlotId!==O||Y.push(d))}Y.length&&Rj(this.Y(),Y)}; g.u.Yp=function(v,O,Y,S){if(this.h$.has(O.triggerId))throw new m("Tried to register duplicate trigger for slot.");if(!(O instanceof S2c))throw new m("Incorrect TriggerType: Tried to register trigger of type "+O.triggerType+" in OpportunityEventTriggerAdapter");this.h$.set(O.triggerId,new YN(v,O,Y,S))}; g.u.pT=function(v){this.h$.delete(v.triggerId)}; g.u.Rn=function(){}; g.u.Le=function(){}; g.u.FQ=function(){}; g.u.ST=function(){}; g.u.XZ=function(){}; g.u.vB=function(){}; g.u.kW=function(){}; g.u.Ul=function(){}; g.u.JM=function(){}; g.u.jh=function(){}; g.u.ma=function(){};g.C(m5,g.X);g.u=m5.prototype;g.u.Yp=function(v,O,Y,S){v=new YN(v,O,Y,S);if(O instanceof Bq||O instanceof IQ||O instanceof Zp||O instanceof Pq||O instanceof SXE){if(this.h$.has(O.triggerId))throw new m("Tried to register duplicate trigger for slot.");this.h$.set(O.triggerId,v)}else throw new m("Incorrect TriggerType: Tried to register trigger of type "+O.triggerType+" in PrefetchTriggerAdapter");}; g.u.pT=function(v){this.h$.delete(v.triggerId)}; g.u.Rn=function(v){var O=v.slotFulfillmentTriggers.find(function(Y){return Y instanceof Bq}); O&&(tj(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",O.breakDurationMs,new Set([v.slotId]),!0),bz(this.L1.get(),"ads_css","sid."+v.slotId+";bd."+O.breakDurationMs))}; g.u.Le=function(){}; g.u.FQ=function(){}; g.u.ST=function(){}; g.u.XZ=function(){}; g.u.vB=function(){}; g.u.kW=function(){}; g.u.Ul=function(){}; g.u.JM=function(){}; g.u.jh=function(){}; g.u.ma=function(){}; g.u.DQ=function(){}; g.u.u5=function(v){var O=this;if(!this.Y)return f_("Unexpected cue break before fetch instructions are available"),!1;this.U&&this.U.stop();this.G&&g.HM(this.G);var Y=DHn(this,v);if(!Y){for(var S=[],d=g.y(this.h$.values()),r=d.next();!r.done;r=d.next())r=r.value.trigger,r instanceof Bq&&S.push(r.breakDurationMs);bz(this.L1.get(),"ads_ncfs","cid."+v.identifier+";cd."+v.kZ.toFixed(3)+S.slice(0,6).map(function(b){return";bd."+b}).join("")); return!1}(new g.mX(function(){var b=Y.trigger,z=Y.slot;tj(O,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",b.breakDurationMs,new Set,!0);tj(O,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",b.breakDurationMs,new Set,!1);for(var M=0,V=g.y(O.h$.values()),A=V.next();!A.done;A=V.next()){A=A.value;var f=A.trigger;A.slot.slotId===z.slotId&&(O.h$.delete(f.triggerId),M++)}bz(O.L1.get(),"ads_csf","sid."+z.slotId+";bd."+b.breakDurationMs+";dt."+M)},10)).start(); return!0}; g.u.Cc=function(){}; g.u.xf=function(v){this.Y&&this.Y.contentCpn!==v?(f_("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:v,fetchInstructionsCpn:this.Y.contentCpn}),Dk(this)):t77(this)}; g.u.TZ=function(v){this.Y&&this.Y.contentCpn!==v&&f_("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:v,fetchInstructionsCpn:this.Y.contentCpn},!0);Dk(this)}; g.u.VT=function(v){var O=this;if(this.Y)f_("Unexpected multiple fetch instructions for the current content");else{this.Y=v;v=NId(v);this.U=new g.mX(function(){t77(O)},v?v:6E5); this.U.start();this.G=new g.mX(function(){O.Y&&(O.U&&(O.U.stop(),O.U.start()),mHJ(O,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},HMn(this.Y)); v=this.Zu.get().getCurrentTimeSec(1,!1);for(var Y=g.y(this.Pq.get().C0),S=Y.next();!S.done;S=Y.next())S=S.value,bz(this.L1.get(),"nocache","ct."+Date.now()+";cmt."+v+";d."+S.kZ.toFixed(3)+";tw."+(S.startSecs-v)+";cid."+S.identifier+";")}}; g.u.cW=function(){g.X.prototype.cW.call(this);Dk(this)};g.C(H8,g.X);g.u=H8.prototype;g.u.Yp=function(v,O,Y,S){if(this.h$.has(O.triggerId))throw new m("Tried to register duplicate trigger for slot.");if(!(O instanceof OB))throw new m("Incorrect TriggerType: Tried to register trigger of type "+O.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.h$.set(O.triggerId,new YN(v,O,Y,S));v=this.Y.has(O.triggeringLayoutId)?this.Y.get(O.triggeringLayoutId):new Set;v.add(O);this.Y.set(O.triggeringLayoutId,v)}; g.u.pT=function(v){this.h$.delete(v.triggerId);if(!(v instanceof OB))throw new m("Incorrect TriggerType: Tried to unregister trigger of type "+v.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var O=this.U.get(v.triggerId);O&&(O.dispose(),this.U.delete(v.triggerId));if(O=this.Y.get(v.triggeringLayoutId))O.delete(v),O.size===0&&this.Y.delete(v.triggeringLayoutId)}; g.u.Rn=function(){}; g.u.Le=function(){}; g.u.FQ=function(){}; g.u.ST=function(){}; g.u.XZ=function(){}; g.u.vB=function(){}; g.u.kW=function(){}; g.u.Ul=function(){}; g.u.JM=function(){}; g.u.DQ=function(){}; g.u.jh=function(v,O){var Y=this;if(this.Y.has(O.layoutId)){v=this.Y.get(O.layoutId);v=g.y(v);var S=v.next();for(O={};!S.done;O={pk:void 0},S=v.next())O.pk=S.value,S=new g.mX(function(d){return function(){var r=Y.h$.get(d.pk.triggerId);Rj(Y.G(),[r])}}(O),O.pk.durationMs),S.start(),this.U.set(O.pk.triggerId,S)}}; g.u.ma=function(){};g.C(Nr,g.X);Nr.prototype.Yp=function(v,O,Y,S){if(this.h$.has(O.triggerId))throw new m("Tried to register duplicate trigger for slot.");if(!(O instanceof pz))throw new m("Incorrect TriggerType: Tried to register trigger of type "+O.triggerType+" in VideoTransitionTriggerAdapter.");this.h$.set(O.triggerId,new YN(v,O,Y,S))}; Nr.prototype.pT=function(v){this.h$.delete(v.triggerId)};Sv.prototype.Bd=function(v){return v.kind==="AD_PLACEMENT_KIND_START"};g.C(b4,g.X);g.u=b4.prototype;g.u.logEvent=function(v){this.m4(v)}; g.u.HV=function(v,O,Y){this.m4(v,void 0,void 0,void 0,O,void 0,void 0,void 0,O.adSlotLoggingData,void 0,void 0,Y)}; g.u.b8=function(v,O,Y,S){this.m4(v,void 0,void 0,void 0,O,Y?Y:void 0,void 0,void 0,O.adSlotLoggingData,Y?Y.adLayoutLoggingData:void 0,void 0,S)}; g.u.bX=function(v,O,Y,S){tE(this.e4.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+v,"trigger:",Y,"slot:",O,"layout:",S);gL(this.Y.get())&&this.m4(v,void 0,void 0,void 0,O,S?S:void 0,void 0,Y,O.adSlotLoggingData,S?S.adLayoutLoggingData:void 0)}; g.u.RC=function(v,O,Y,S,d){this.m4(v,O,Y,S,void 0,void 0,void 0,void 0,void 0,void 0,void 0,d)}; g.u.Jy=function(v,O,Y,S){this.m4("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,Y,S,void 0,void 0,Y.adSlotLoggingData,S?S.adLayoutLoggingData:void 0,{errorType:v,errorMessage:O})}; g.u.m4=function(v,O,Y,S,d,r,b,z,M,V,A,f){var k=this;f=f===void 0?0:f;tE(this.e4.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+v,"slot:",d,"layout:",r,"ping:",b,"Opportunity:",{opportunityType:O,associatedSlotId:Y,Ax4:S,XIW:z,adSlotLoggingData:M,adLayoutLoggingData:V});try{var U=function(){if(!k.e4.get().N.D().V("html5_disable_client_tmp_logs")&&v!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){v||f_("Empty PACF event type",d,r);var c=gL(k.Y.get()),a={eventType:v,eventOrder:++k.eventCount},x={}; d&&(x.slotData=sV(c,d));r&&(x.layoutData=Esm(c,r));b&&(x.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:b.Y.serializedAdPingMetadata,pingIndex:b.index});z&&(x.triggerData=zb(z.trigger,z.category));O&&(x.opportunityData=Qmg(c,O,Y,S));c={organicPlaybackContext:{contentCpn:u7(k.S4.get(),1).clientPlaybackNonce}};c.organicPlaybackContext.isLivePlayback=u7(k.S4.get(),1).FL;var T;c.organicPlaybackContext.isMdxPlayback=(T=u7(k.S4.get(),1))==null?void 0:T.isMdxPlayback; var l;if((l=u7(k.S4.get(),1))==null?0:l.daiEnabled)c.organicPlaybackContext.isDaiContent=!0;var Q;if(T=(Q=u7(k.S4.get(),2))==null?void 0:Q.clientPlaybackNonce)c.adVideoPlaybackContext={adVideoCpn:T};c&&(x.externalContext=c);a.adClientData=x;M&&(a.serializedSlotAdServingData=M.serializedSlotAdServingDataEntry);V&&(a.serializedAdServingData=V.serializedAdServingDataEntry);A&&(a.errorInfo=A);g.z2("adsClientStateChange",{adsClientEvent:a})}}; f&&f>0?g.NL(g.O8(),function(){return U()},f):U()}catch(c){tE(this.e4.get(),"html5_log_pacf_logging_errors")&&g.NL(g.O8(),function(){f_(c instanceof Error?c:String(c),d,r,{pacf_message:"exception during pacf logging"})})}};var YvC=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.C(oy,b4);g.u=oy.prototype; g.u.HV=function(v,O,Y){b4.prototype.HV.call(this,v,O,Y);xu(this.e4.get())&&(Y={},this.context.Im.Yy("pacf",(Y.et=v,Y.st=O.slotType,Y.si=O.slotId,Y)))}; g.u.b8=function(v,O,Y,S){var d=YvC.has(v);b4.prototype.b8.call(this,v,O,Y,S);xu(this.e4.get(),d)&&(S={},this.context.Im.Yy("pacf",(S.et=v,S.st=O.slotType,S.si=O.slotId,S.lt=Y==null?void 0:Y.layoutType,S.li=Y==null?void 0:Y.layoutId,S.p_ac=Y==null?void 0:Y.layoutId,S)))}; g.u.RC=function(v,O,Y,S,d){b4.prototype.RC.call(this,v,O,Y,S,d);xu(this.e4.get())&&(Y={},this.context.Im.Yy("pacf",(Y.et=v,Y.ot=O,Y.ss=S==null?void 0:S.length,Y)))}; g.u.bX=function(v,O,Y,S){b4.prototype.bX.call(this,v,O,Y,S);if(xu(this.e4.get())){var d={};this.context.Im.Yy("pacf",(d.et=v,d.tt=Y.trigger.triggerType,d.tc=Y.category,d.st=O.slotType,d.si=O.slotId,d.lt=S==null?void 0:S.layoutType,d.li=S==null?void 0:S.layoutId,d.p_ac=S==null?void 0:S.layoutId,d))}}; g.u.Jy=function(v,O,Y,S){b4.prototype.Jy.call(this,v,O,Y,S);if(xu(this.e4.get(),!0)){var d={};this.context.Im.Yy("perror",(d.ert=v,d.erm=O,d.st=Y.slotType,d.si=Y.slotId,d.lt=S==null?void 0:S.layoutType,d.li=S==null?void 0:S.layoutId,d.p_ac=S==null?void 0:S.layoutId,d))}}; g.u.m4=function(v,O,Y,S,d,r,b,z,M,V,A){var f=this.e4.get();g.lx(f.N.D())?(f=this.e4.get(),f=g.Vq(f.N.D().experiments,"H5_async_logging_delay_ms")):f=void 0;b4.prototype.m4.call(this,v,O,Y,S,d,r,b,z,M,V,A,f)};jv.prototype.clear=function(){this.Y.clear()};g.u=Wc.prototype;g.u.state=function(){return this.tq==="fulfilled"?{state:"fulfilled",value:this.result}:this.W$()?{state:"rejected",reason:this.error}:{state:"pending"}}; g.u.W$=function(){return this.tq==="rejected"}; g.u.wait=function(){var v=this;return function Y(){return Ln(Y,function(S){if(S.U==1)return g.ul(S,2),g.E(S,{cL:v},4);if(S.U!=2)return S.return(S.Y);g.Fw(S);return g.Ri(S,0)})}()}; g.u.Lg=function(v){sR(v)||zm(v)?fs(gQ(v),this.Lg.bind(this),this.reject.bind(this)):(this.tq="fulfilled",this.result=v,AZ(this))}; g.u.reject=function(v){this.tq="rejected";this.error=v;AZ(this)}; var zm=qy(function(v){return y3S(v)?v instanceof Wc:!1});Object.freeze({ir4:function(v){var O=Cs(v);return fs(u4(O,function(Y){return O[Y].W$()}),function(Y){return Number.isNaN(Y)?O.map(function(S){return S.state().value}):O[Y]})}, uJ8:function(v){var O=Cs(v);return fs(u4(O),function(){return O.map(function(Y){return Y.state()})})}, xaK:function(v){var O=Cs(v);return fs(u4(O,function(Y){return O[Y].tq==="fulfilled"}),function(Y){return Number.isNaN(Y)?M6(new AggregateError(O.map(function(S){return S.state().reason}))):O[Y].state().value})}, fxO:function(v){var O=Cs(v);return fs(u4(O,function(){return!0}),function(Y){return O[Y]})}});var yf=window.ivu||"en";g.u=Tm.prototype;g.u.LQ=function(v){this.client=v}; g.u.Po=function(v,O){var Y=this;O=O===void 0?{}:O;g.N7(function(){var S,d,r,b=((S=g.q(v==null?void 0:v.commandMetadata,g.kj))==null?void 0:S.rootVe)||((d=g.q(v==null?void 0:v.commandMetadata,uUN))==null?void 0:(r=d.screenVisualElement)==null?void 0:r.uiType);if(b){S=g.q(v==null?void 0:v.commandMetadata,IcY);if(S==null?0:S.parentTrackingParams){var z=g.am(S.parentTrackingParams);if(S.parentCsn)var M=S.parentCsn}else O.clickedVisualElement?z=O.clickedVisualElement:v.clickTrackingParams&&(z=g.am(v.clickTrackingParams)); a:{S=g.q(v,g.Gj);d=g.q(v,EIJ);if(S){if(d=kbn(S,"VIDEO")){S={token:d,videoId:S.videoId};break a}}else if(d&&(S=kbn(d,"PLAYLIST"))){S={token:S,playlistId:d.playlistId};break a}S=void 0}O=Object.assign({},{cttAuthInfo:S,parentCsn:M},O);if(g.uF("expectation_logging")){var V;O.loggingExpectations=((V=g.q(v==null?void 0:v.commandMetadata,uUN))==null?void 0:V.loggingExpectations)||void 0}FS(Y,b,z,O)}else g.Br(new g.iK("Error: Trying to create a new screen without a rootVeType",v))})()}; g.u.clickCommand=function(v,O,Y){v=v.clickTrackingParams;Y=Y===void 0?0:Y;v?(Y=g.TS(Y===void 0?0:Y))?(vH(this.client,Y,g.am(v),O),O=!0):O=!1:O=!1;return O}; g.u.stateChanged=function(v,O,Y){this.visualElementStateChanged(g.am(v),O,Y===void 0?0:Y)}; g.u.visualElementStateChanged=function(v,O,Y){Y=Y===void 0?0:Y;Y===0&&this.U.has(Y)?this.X.push([v,O]):aH1(this,v,O,Y)};ER.prototype.fetch=function(v,O,Y){var S=this,d=TLE(v,O,Y);return new Promise(function(r,b){function z(){if(Y==null?0:Y.EZ)try{var V=S.handleResponse(v,d.status,d.response,Y);r(V)}catch(A){b(A)}else r(S.handleResponse(v,d.status,d.response,Y))} d.onerror=z;d.onload=z;var M;d.send((M=O.body)!=null?M:null)})}; ER.prototype.handleResponse=function(v,O,Y,S){Y=Y.replace(")]}'","");try{var d=JSON.parse(Y)}catch(r){g.Br(new g.iK("JSON parsing failed after XHR fetch",v,O,Y));if((S==null?0:S.EZ)&&Y)throw new g.rf(1,"JSON parsing failed after XHR fetch");d={}}O!==200&&(g.Br(new g.iK("XHR API fetch failed",v,O,Y)),d=Object.assign({},d,{errorMetadata:{status:O}}));return d};Qf.getInstance=function(){var v=g.il("ytglobal.storage_");v||(v=new Qf,g.Gc("ytglobal.storage_",v));return v}; Qf.prototype.estimate=function(){var v,O,Y;return g.B(function(S){v=navigator;return((O=v.storage)==null?0:O.estimate)?S.return(v.storage.estimate()):((Y=v.webkitTemporaryStorage)==null?0:Y.queryUsageAndQuota)?S.return(lHw()):S.return()})}; g.Gc("ytglobal.storageClass_",Qf);jN.prototype.fq=function(v){this.handleError(v)}; jN.prototype.logEvent=function(v,O){switch(v){case "IDB_DATA_CORRUPTED":g.uF("idb_data_corrupted_killswitch")||this.Y("idbDataCorrupted",O);break;case "IDB_UNEXPECTEDLY_CLOSED":this.Y("idbUnexpectedlyClosed",O);break;case "IS_SUPPORTED_COMPLETED":g.uF("idb_is_supported_completed_killswitch")||this.Y("idbIsSupportedCompleted",O);break;case "QUOTA_EXCEEDED":ht3(this,O);break;case "TRANSACTION_ENDED":this.G&&Math.random()<=.1&&this.Y("idbTransactionEnded",O);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":v= Object.assign({},O,{hasWindowUnloaded:this.U}),this.Y("idbTransactionAborted",v)}};var KW={},Vqg=g.vQ("yt-player-local-media",{hq:(KW.index={SI:2},KW.media={SI:2},KW.captions={SI:5},KW),shared:!1,upgrade:function(v,O){O(2)&&(g.FF(v,"index"),g.FF(v,"media"));O(5)&&g.FF(v,"captions");O(6)&&(hk(v,"metadata"),hk(v,"playerdata"))}, version:5});var Sv0={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},PP;a:{var GF=g.yh();GF=GF.toLowerCase();if(g.fg(GF,"android")){var dyN=GF.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(dyN){var rvt=parseFloat(dyN[1]);if(rvt<100){PP=rvt;break a}}var b4C=GF.match("("+Object.keys(Sv0).join("|")+")");PP=b4C?Sv0[b4C[0]]:0}else PP=void 0}var lq=PP,Ta=lq>=0;var Xud=window;var Rtw=My(function(){var v,O;return(O=(v=window).matchMedia)==null?void 0:O.call(v,"(prefers-reduced-motion: reduce)").matches});var Bc;g.Ls=new R9;Bc=0;var Df=Xvg()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.i9?!0:!1;var wQ={M8:function(v,O){var Y=v[0];v[0]=v[O%v[W[4]]];v[O%v[W[4]]]=Y}, wf:function(v){v[W[34]]()}, WJ:function(v,O){v[W[36]](0,O)}};var sQg={KEO:"adunit",Jzd:"detailpage",Szx:"editpage",rzg:"embedded",M_g:"leanback",Jy3:"previewpage",CSx:"profilepage",UU:"unplugged",B70:"playlistoverview",cSg:"sponsorshipsoffer",zYK:"shortspage",QrO:"handlesclaiming",A28:"immersivelivepage",QvK:"creatormusic",WKg:"immersivelivepreviewpage",RG4:"admintoolyurt",jqW:"shortsaudiopivot",G8O:"consumption"};var IH3=2592E3;var iv,oWY,UY;iv={};g.Gm=(iv.STOP_EVENT_PROPAGATION="html5-stop-propagation",iv.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",iv.IV_DRAWER_OPEN="ytp-iv-drawer-open",iv.MAIN_VIDEO="html5-main-video",iv.VIDEO_CONTAINER="html5-video-container",iv.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",iv.HOUSE_BRAND="house-brand",iv);oWY={};UY=(oWY.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",oWY.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",oWY);var tGn={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var vug={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},ODl={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"},mgw={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var ENl={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.di.prototype.getLanguageInfo=function(){return this.Dg}; g.di.prototype.getXtags=function(){if(!this.xtags){var v=this.id.split(";");v.length>1&&(this.xtags=v[1])}return this.xtags}; g.di.prototype.toString=function(){return this.Dg.name}; g.di.prototype.getLanguageInfo=g.di.prototype.getLanguageInfo;ri.prototype.equals=function(v){return this.U===v.U&&this.Y===v.Y&&this.G===v.G&&this.reason===v.reason&&(!oa||this.b3===v.b3)}; ri.prototype.isLocked=function(){return this.G&&!!this.U&&this.U===this.Y}; ri.prototype.compose=function(v){if(v.G&&jZ(v))return Xu;if(v.G||jZ(this))return v;if(this.G||jZ(v))return this;var O=this.U&&v.U?Math.max(this.U,v.U):this.U||v.U,Y=this.Y&&v.Y?Math.min(this.Y,v.Y):this.Y||v.Y;O=Math.min(O,Y);var S=0;oa&&(S=this.b3!==0&&v.b3!==0?Math.min(this.b3,v.b3):this.b3===0?v.b3:this.b3);return oa&&O===this.U&&Y===this.Y&&S===this.b3||!oa&&O===this.U&&Y===this.Y?this:oa?new ri(O,Y,!1,Y===this.Y&&S===this.b3?this.reason:v.reason,S):new ri(O,Y,!1,Y===this.Y?this.reason:v.reason)}; ri.prototype.B=function(v){return!v.video||oa&&this.b3!==0&&this.b3=0}; g.u.Kr=function(){var v=this.segments[this.segments.length-1];return v?v.endTime:NaN}; g.u.jO=function(){return this.segments[0].startTime}; g.u.IN=function(){return this.segments.length}; g.u.lS=function(){return 0}; g.u.cE=function(v){return(v=this.oN(v))?v.Vx:-1}; g.u.XD=function(v){return(v=this.fU(v))?v.sourceURL:""}; g.u.getStartTime=function(v){return(v=this.fU(v))?v.startTime:0}; g.u.Fq=function(v){return this.getStartTime(v)+this.getDuration(v)}; g.u.Dv=vm(1);g.u.isLoaded=function(){return this.segments.length>0}; g.u.fU=function(v){if(this.Y&&this.Y.Vx===v)return this.Y;v=g.Tw(this.segments,new Ra(v,0,0,0,""),function(O,Y){return O.Vx-Y.Vx}); return this.Y=v>=0?this.segments[v]:null}; g.u.oN=function(v){if(this.Y&&this.Y.startTime<=v&&v=0?this.segments[v]:this.segments[Math.max(0,-v-2)]}; g.u.append=function(v){if(v.length)if(v=g.c0(v),this.segments.length){var O=this.segments.length?g.zw(this.segments).endTime:0,Y=v[0].Vx-this.Eq();Y>1&&ClJ(this.segments);for(Y=Y>0?0:-Y+1;Yv.Vx&&this.index.Pu()<=v.Vx+1}; g.u.update=function(v,O,Y){this.index.append(v);hm7(this.index,Y);v=this.index;v.U=O;v.G="update"}; g.u.gT=function(){return this.ol()?!0:lZ.prototype.gT.call(this)}; g.u.d0=function(v,O){var Y=this.index.XD(v),S=this.index.getStartTime(v),d=this.index.getDuration(v),r;O?d=r=0:r=this.info.b3>0?this.info.b3*d:1E3;return new I0([new EZ(3,this,void 0,"liveCreateRequestInfoForSegment",v,S,d,0,r,!O)],Y)}; g.u.Xq=function(){return this.ol()?0:this.initRange.length}; g.u.Br=function(){return!1};iZ.prototype.update=function(v){var O=void 0;this.U&&(O=this.U);var Y=new iZ,S=Array.from(v.getElementsByTagName("S"));if(S.length){var d=+P7(v,"timescale")||1,r=(+S[0].getAttribute("t")||0)/d,b=+P7(v,"startNumber")||0;Y.B=r;var z=O?O.startSecs+O.kZ:0,M=Date.parse(ao1(P7(v,"yt:segmentIngestTime")))/1E3;Y.Z=v.parentElement.tagName==="SegmentTemplate";Y.Z&&(Y.L=P7(v,"media"));v=O?b-O.Vx:1;Y.C=v>0?0:-v+1;v=g.y(S);for(S=v.next();!S.done;S=v.next()){S=S.value;for(var V=+S.getAttribute("d")/d,A=(+S.getAttribute("yt:sid")|| 0)/d,f=+S.getAttribute("r")||0,k=0;k<=f;k++)if(O&&b<=O.Vx)b++;else{var U=new Csi(b,z,V,M+A,r);Y.Y.push(U);var c=S;var a=d,x=U.startSecs;U=c.getAttribute("yt:cuepointTimeOffset");var T=c.getAttribute("yt:cuepointDuration");if(U&&T){U=Number(U);x=-U/a+x;a=Number(T)/a;T=c.getAttribute("yt:cuepointContext")||null;var l=c.getAttribute("yt:cuepointIdentifier")||"";c=c.getAttribute("yt:cuepointEvent")||"";c=new qD(x,a,T,l,WON[c]||"unknown",U)}else c=null;c&&Y.G.push(c);b++;z+=V;r+=V;M+=V+A}}Y.Y.length&& (Y.U=g.zw(Y.Y))}this.C=Y.C;this.U=Y.U||this.U;g.CC(this.Y,Y.Y);g.CC(this.G,Y.G);this.Z=Y.Z;this.L=Y.L;this.B===-1&&(this.B=Y.getStreamTimeOffset())}; iZ.prototype.getStreamTimeOffset=function(){return this.B===-1?0:this.B};g.C(tV,g.eZ);g.u=tV.prototype;g.u.Hc=function(){return this.kN}; g.u.Uo=function(v,O){v=D5(this,v);return v>=0&&(O||!this.segments[v].pending)}; g.u.Pu=function(){return this.Xk?this.segments.length?this.oN(this.jO()).Vx:-1:g.eZ.prototype.Pu.call(this)}; g.u.jO=function(){if(this.XH)return 0;if(!this.Xk)return g.eZ.prototype.jO.call(this);if(!this.segments.length)return 0;var v=Math.max(g.zw(this.segments).endTime-this.xi,0);return this.Zq>0&&this.oN(v).Vx0)return this.uS/1E3;if(!this.segments.length)return g.eZ.prototype.Kr.call(this);var v=this.Eq();if(!this.Xk||v<=this.segments[this.segments.length-1].Vx)v=this.segments[this.segments.length-1];else{var O=this.segments[this.segments.length-1];v=new Ra(v,Math.max(0,O.startTime-(O.Vx-v)*this.kN),this.kN,0,"sq/"+v,void 0,void 0,!0)}return this.XH?Math.min(this.xi,v.endTime):v.endTime}; g.u.IN=function(){return this.Xk?this.segments.length?this.Eq()-this.Pu()+1:0:g.eZ.prototype.IN.call(this)}; g.u.Eq=function(){var v=Math.min(this.ZT,Math.max(g.eZ.prototype.Eq.call(this),this.LD)),O=this.xi*1E3;O=this.uS>0&&this.uS0&&this.LD>0&&!O&&(O=this.oN(this.xi))&&(v=Math.min(O.Vx-1,v));return v}; g.u.qG=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.u.ij=function(v){var O=D5(this,v.Vx);if(O>=0)this.segments[O]=v;else if(this.segments.splice(-(O+1),0,v),this.ES&&v.Vx%(300/this.kN)===0){var Y=this.segments[0].Vx,S=Math.floor(this.ES/this.kN);v=v.Vx-S;O=-(O+1)-S;O>0&&v>Y&&(this.segments=this.segments.slice(O))}}; g.u.C7=function(){return this.LD}; g.u.DC=function(v){return mt?!this.U&&v>=0&&this.Eq()<=v:g.eZ.prototype.DC.call(this,v)}; g.u.oN=function(v){if(!this.Xk)return g.eZ.prototype.oN.call(this,v);if(!this.segments.length)return null;var O=this.segments[this.segments.length-1];if(v=O.endTime)O=O.Vx+Math.floor((v-O.endTime)/this.kN+1);else{O=hY(this.segments,function(S){return v=S.endTime?1:0}); if(O>=0)return this.segments[O];var Y=-(O+1);O=this.segments[Y-1];Y=this.segments[Y];O=Math.floor((v-O.endTime)/((Y.startTime-O.endTime)/(Y.Vx-O.Vx-1))+1)+O.Vx}return this.fU(O)}; g.u.fU=function(v){if(!this.Xk)return g.eZ.prototype.fU.call(this,v);if(!this.segments.length)return null;var O=D5(this,v);if(O>=0)return this.segments[O];var Y=-(O+1);O=this.kN;if(Y===0)var S=Math.max(0,this.segments[0].startTime-(this.segments[0].Vx-v)*O);else Y===this.segments.length?(S=this.segments[this.segments.length-1],S=S.endTime+(v-S.Vx-1)*O):(S=this.segments[Y-1],O=this.segments[Y],O=(O.startTime-S.endTime)/(O.Vx-S.Vx-1),S=S.endTime+(v-S.Vx-1)*O);return new Ra(v,S,O,0,"sq/"+v,void 0,void 0, !0)}; var mt=!1;g.C(H7,Kc);g.u=H7.prototype;g.u.Lu=function(){return!0}; g.u.gT=function(){return!0}; g.u.BI=function(v){return this.U5()&&v.G&&!v.Z||!v.Y.index.DC(v.Vx)}; g.u.wJ=function(){}; g.u.sP=function(v,O){return typeof v!=="number"||isFinite(v)?Kc.prototype.sP.call(this,v,O===void 0?!1:O):new I0([new EZ(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.nW,void 0,this.nW*this.info.b3)],"")}; g.u.d0=function(v,O){var Y=Y===void 0?!1:Y;if(this.index.Uo(v))return Kc.prototype.d0.call(this,v,O);var S=this.index.getStartTime(v),d=Math.round(this.nW*this.info.b3),r=this.nW;O&&(r=d=0);return new I0([new EZ(Y?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",v,S,r,void 0,d,!O)],v>=0?"sq/"+v:"")};g.C(NY,lZ);g.u=NY.prototype;g.u.aq=function(){return!1}; g.u.U5=function(){return!1}; g.u.Lu=function(){return!1}; g.u.wJ=function(){return new I0([new EZ(1,this,void 0,"otfInit")],this.Z)}; g.u.P9=function(){return null}; g.u.H6=function(v){this.BI(v);return eC1(this,Z5(v),!1)}; g.u.sP=function(v,O){O=O===void 0?!1:O;v=this.index.cE(v);O&&(v=Math.min(this.index.Eq(),v+1));return eC1(this,v,!0)}; g.u.jd=function(v){v.info.type===1&&(this.Y||(this.Y=xb(v.Y)),v.U&&v.U.uri==="http://youtube.com/streaming/otf/durations/112015"&&Ez3(this,v.U))}; g.u.BI=function(v){return v.G===0?!0:this.index.Eq()>v.Vx&&this.index.Pu()<=v.Vx+1}; g.u.Xq=function(){return 0}; g.u.Br=function(){return!1};g.vY.prototype.info=function(){}; g.vY.prototype.debug=function(){}; g.vY.prototype.Y=function(v){OL.apply(null,[5,this.tag,v].concat(g.F(g.Bm.apply(1,arguments))))}; var Bbw=new Map,wS1=new Map,Zl3=new function(){var v=this;this.Y=new Map;this.Qg={an3:function(){return v.Y}}};YA.prototype.cq=function(){return this.Y.cq()};g.u=g.j$.prototype;g.u.Uo=function(v){return v<=this.Eq()}; g.u.lS=function(v){return this.offsets[v]}; g.u.getStartTime=function(v){return this.startTicks[v]/this.Y}; g.u.Fq=function(v){return this.getStartTime(v)+this.getDuration(v)}; g.u.Dv=vm(0);g.u.Hq=function(){return NaN}; g.u.getDuration=function(v){v=this.S8(v);return v>=0?v/this.Y:-1}; g.u.S8=function(v){return v+1=0}; g.u.Kr=function(){return this.U?this.startTicks[this.count]/this.Y:NaN}; g.u.jO=function(){return 0}; g.u.IN=function(){return this.count}; g.u.XD=function(){return""}; g.u.cE=function(v){v=g.Tw(this.startTicks.subarray(0,this.count),v*this.Y);return v>=0?v:Math.max(0,-v-2)}; g.u.isLoaded=function(){return this.Eq()>=0}; g.u.iR=function(v,O){if(v>=this.Eq())return 0;var Y=0;for(O=this.getStartTime(v)+O;vthis.getStartTime(v);v++)Y=Math.max(Y,mOn(this,v)/this.getDuration(v));return Y}; g.u.resize=function(v){v+=2;var O=this.offsets;this.offsets=new Float64Array(v+1);var Y=this.startTicks;this.startTicks=new Float64Array(v+1);for(v=0;v0&&v&&(Y=Y.range.end+1,v=Math.min(v,this.info.contentLength-Y),v>0&&S.push(new EZ(4,this,R0(Y,v),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,O)));return new I0(S)}; g.u.jd=function(v){if(v.info.type===1){if(this.Y)return;this.Y=xb(v.Y)}else if(v.info.type===2){if(this.Z||this.index.Eq()>=0)return;if(g.vS(this.info)){var O=this.index,Y=v.cq();v=v.info.range.start;var S=g.Gi(Y,0,1936286840);Y=nuJ(S);O.Y=Y.timescale;var d=Y.Ag;O.offsets[0]=Y.Uh+v+S.size;O.startTicks[0]=d;O.U=!0;v=Y.fb.length;for(S=0;S0&&v===r[0].qR)for(v=0;v=O+Y)break}d.length||(v=new g.iK("b189619593",""+v,""+O,""+Y),g.LP(v));return new I0(d)}; g.u.yV=function(v){for(var O=this.qD(v.info),Y=v.info.range.start+v.info.U,S=[],d=0;d=this.index.lS(Y+1);)Y++;return this.GD(Y,O,v.G).Id}; g.u.BI=function(v){v.D0();return this.gT()?!0:v.range.end+1this.info.contentLength&&(O=new FN(O.start,this.info.contentLength-1)),new I0([new EZ(4,v.Y,O,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,v.clipId)]);v.type===4&&(v=this.qD(v),v=v[v.length-1]);var Y=0,S=v.range.start+v.U+v.G;v.type===3&&(v.D0(),Y=v.Vx,S===v.range.end+1&&(Y+=1));return this.GD(Y,S,O)}; g.u.H6=function(){return null}; g.u.sP=function(v,O){O=O===void 0?!1:O;v=this.index.cE(v);O&&(v=Math.min(this.index.Eq(),v+1));return this.GD(v,this.index.lS(v),0,void 0)}; g.u.aq=function(){return!0}; g.u.U5=function(){return!0}; g.u.Lu=function(){return!1}; g.u.Xq=function(){return this.indexRange.length+this.initRange.length}; g.u.Br=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var tb={},sK3=(tb.COLOR_PRIMARIES_BT709="bt709",tb.COLOR_PRIMARIES_BT2020="bt2020",tb.COLOR_PRIMARIES_UNKNOWN=null,tb.COLOR_PRIMARIES_UNSPECIFIED=null,tb),Di={},DO$=(Di.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Di.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Di.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Di.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Di.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Di.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Di);g.sL.prototype.getName=function(){return this.name}; g.sL.prototype.getId=function(){return this.id}; g.sL.prototype.getIsDefault=function(){return this.isDefault}; g.sL.prototype.toString=function(){return this.name}; g.sL.prototype.getName=g.sL.prototype.getName;g.sL.prototype.getId=g.sL.prototype.getId;g.sL.prototype.getIsDefault=g.sL.prototype.getIsDefault;var Oan=/action_display_post/;var YKd,VM,At;g.C(fT,g.MU);g.u=fT.prototype;g.u.isLoading=function(){return this.state===1}; g.u.Ey=function(){return this.state===3}; g.u.Pkd=function(v){var O=v.getElementsByTagName("Representation");if(v.getElementsByTagName("SegmentList").length>0||v.getElementsByTagName("SegmentTemplate").length>0){this.FL=this.U=!0;this.timeline||(this.timeline=new pS7);hCl(this.timeline,v);this.publish("refresh");for(v=0;v=0?A=hV(k):f=f+"?range="+k}M.call(z,new Ra(V.Vx,V.startSecs,V.kZ,V.Y,f,A,V.U))}S=d}Y.update(S,this.isLive,this.XO)}RC1(this.timeline);return!0}this.duration=yon(P7(v,"mediaPresentationDuration")); a:{for(v=0;v0))return this.gK()-v}}v=this.Y;for(var O in v){var Y=v[O].index;if(Y.isLoaded()&&!rb(v[O].info.mimeType))return Y.jO()}return 0}; g.u.getStreamTimeOffset=function(){return this.L}; g.u.Hq=function(v){for(var O in this.Y){var Y=this.Y[O].index;if(Y.isLoaded()){var S=Y.cE(v),d=Y.Hq(S);if(d)return d+v-Y.getStartTime(S)}}return NaN}; var ht=null,zuL,RW=!((zuL=navigator.mediaCapabilities)==null||!zuL.decodingInfo),$si={commentary:1,alternate:2,dub:3,main:4};var d8=new Set,e$=new Map;LT.prototype.clone=function(v){return new LT(this.flavor,v,this.U,this.experiments)}; LT.prototype.Yu=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; LT.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 sfY={},PY=(sfY.playready=["com.youtube.playready","com.microsoft.playready"],sfY.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],sfY),HP={},y$d=(HP.widevine="DRM_SYSTEM_WIDEVINE",HP.fairplay="DRM_SYSTEM_FAIRPLAY",HP.playready="DRM_SYSTEM_PLAYREADY",HP),NX={},gWC=(NX.widevine=1,NX.fairplay=2,NX.playready=3,NX);var mw;g.C(G6,g.X); G6.prototype.initialize=function(v,O){for(var Y=this,S=g.y(Object.keys(v)),d=S.next();!d.done;d=S.next()){d=g.y(v[d.value]);for(var r=d.next();!r.done;r=d.next())if(r=r.value,r.LP)for(var b=g.y(Object.keys(r.LP)),z=b.next();!z.done;z=b.next()){var M=z.value;z=M;M=PY[M];!M&&this.V("html5_enable_vp9_fairplay")&&z==="fairplay"&&(M=["com.youtube.fairplay.sbdl"]);if(M){M=g.y(M);for(var V=M.next();!V.done;V=M.next())V=V.value,this.G[V]=this.G[V]||new LT(z,V,r.LP[z],this.Qx.experiments),this.Y[z]=this.Y[z]|| {},this.Y[z][r.mimeType]=!0}}}Gn()&&(this.G["com.youtube.fairplay"]=new LT("fairplay","com.youtube.fairplay","",this.Qx.experiments),this.V("html5_enable_vp9_fairplay")||(this.Y.fairplay=this.Y.fairplay||{},this.Y.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.Y.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.U=hbd(O,this.useCobaltWidevine,this.V("html5_enable_safari_fairplay")&&!0,this.V("html5_enable_vp9_fairplay")).filter(function(A){return!!Y.G[A]})}; G6.prototype.V=function(v){return this.Qx.experiments.T0(v)};var M9w={"":"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"};ZaF.prototype.V=function(v){return this.experiments.T0(v)};var Mhi={RED:"red",o$4:"white"};XN3.prototype.T0=function(v){v=this.flags[v];JSON.stringify(v);return v==="true"};var qKE=Promise.resolve(),P7E=window.queueMicrotask?window.queueMicrotask.bind(window):n2E;N9.prototype.canPlayType=function(v,O){v=v.canPlayType?v.canPlayType(O):!1;G2?v=v||V9Y[O]:lq===2.2?v=v||Avv[O]:KS()&&(v=v||fQt[O]);return!!v}; N9.prototype.isTypeSupported=function(v){return this.j?window.cast.receiver.platform.canDisplayType(v):Q9(v)}; var Avv={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},fQt={"application/x-mpegURL":"maybe"},V9Y={"application/x-mpegURL":"maybe"};g.C(Yk,g.MU);Yk.prototype.add=function(v,O){if(!this.items[v]&&(O.AA||O.PF||O.HC)){var Y=this.items,S=O;Object.isFrozen&&!Object.isFrozen(O)&&(S=Object.create(O),Object.freeze(S));Y[v]=S;this.publish("vast_info_card_add",v)}}; Yk.prototype.remove=function(v){var O=this.get(v);delete this.items[v];return O}; Yk.prototype.get=function(v){return this.items[v]||null}; Yk.prototype.isEmpty=function(){return g.tY(this.items)};var dw;rw.prototype.add=function(v){if(this.pos+20>this.data.length){var O=new Uint8Array(this.data.length*2);O.set(this.data);this.data=O}for(;v>31;)this.data[this.pos++]=dw[(v&31)+32],v>>=5;this.data[this.pos++]=dw[v|0]}; rw.prototype.Gn=function(){return g.FA(this.data.subarray(0,this.pos))}; rw.prototype.reset=function(){this.pos=0};oP.prototype.TG=function(v,O){var Y=Math.pow(this.alpha,v);this.Y=O*(1-Y)+Y*this.Y;this.U+=v}; oP.prototype.In=function(){return this.Y/(1-Math.pow(this.alpha,this.U))};jj.prototype.TG=function(v,O){for(var Y=0;Y<10;Y++){var S=this.Y[Y],d=S+(Y===0?v:0),r=1*Math.pow(2,Y);if(d<=r)break;S=Math.min(1,(d-r*.5)/S);for(d=0;d<16;d++)r=this.values[Y*16+d]*S,this.values[(Y+1)*16+d]+=r,this.Y[Y+1]+=r,this.values[Y*16+d]-=r,this.Y[Y]-=r}S=Y=0;d=8192;O>8192&&(Y=Math.ceil(Math.log(O/8192)/Math.log(2)),S=8192*Math.pow(2,Y-1),d=S*2);Y+2>16?this.values[15]+=v:(O=(O-S)/(d-S),this.values[Y]+=v*(1-O),this.values[Y+1]+=v*O);this.Y[0]+=v}; jj.prototype.In=function(){var v=v===void 0?this.U:v;var O=O===void 0?.02:O;var Y=Y===void 0?.98:Y;for(var S=this.G,d=0;d<16;d++)S[d]=this.values[d];d=this.Y[0];for(var r=1;r<11;r++){var b=this.Y[r];if(b===0)break;for(var z=Math.min(1,(v-d)/b),M=0;M<16;M++)S[M]+=this.values[r*16+M]*z;d+=b*z;if(z<1)break}for(r=v=b=0;r<16;r++){z=b+S[r]/d;v+=Math.max(0,Math.min(z,Y)-Math.max(b,O))*(r>0?8192*Math.pow(2,r-1):0);if(z>Y)break;b=z}return v/(Y-O)};WD.prototype.TG=function(v,O){v=Math.min(this.Y,Math.max(1,Math.round(v*this.resolution)));v+this.U>=this.Y&&(this.G=!0);for(;v--;)this.values[this.U]=O,this.U=(this.U+1)%this.Y;this.uQ=!0}; WD.prototype.percentile=function(v){var O=this;if(!this.G&&this.U===0)return 0;this.uQ&&(g.R8(this.Z,function(Y,S){return O.values[Y]-O.values[S]}),this.uQ=!1); return this.values[this.Z[Math.round(v*((this.G?this.Y:this.U)-1))]]||0}; WD.prototype.In=function(){return this.C?(this.percentile(this.B-this.C)+this.percentile(this.B)+this.percentile(this.B+this.C))/3:this.percentile(this.B)};g.C(za,g.X);za.prototype.f1=function(){var v;(v=this.AK)==null||v.start();if(kk(this)&&this.policy.X){var O;(O=this.WD)==null||O.q4()}};dz3.prototype.V=function(v){return this.experiments.T0(v)};g.C(bzn,g.X);var g7l="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),koF={m7d:"caoe",JFW:"capsv",qKg:"cbrand",D73:"cbr",wEx:"cbrver",P8g:"cchip",Yz3:"ccappver",bWW:"ccrv",I04:"cfrmver",XVu:"c",qQx:"cver",oe1:"ctheme",r2c:"cplayer",r3W:"cmodel",a7:"cnetwork",npg:"cos",OS_VERSION:"cosver",pSs:"cplatform",o8c:"crqyear"};g.C(X_,g.X);g.u=X_.prototype;g.u.V=function(v){return this.experiments.T0(v)}; g.u.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.u.getVideoUrl=function(v,O,Y,S,d,r,b){O={list:O};Y&&(d?O.time_continue=Y:O.t=Y);Y=b?"music.youtube.com":g.IP(this);d=Y==="www.youtube.com";!r&&S&&d?r="https://youtu.be/"+v:g.RP(this)?(r="https://"+Y+"/fire",O.v=v):(r&&d?(r=this.protocol+"://"+Y+"/shorts/"+v,S&&(O.feature="share")):(r=this.protocol+"://"+Y+"/watch",O.v=v),G2&&(v=qCF())&&(O.ebc=v));return g.Te(r,O)}; g.u.getVideoEmbedCode=function(v,O,Y,S){O="https://"+g.IP(this)+"/embed/"+O;S&&(O=g.Te(O,{list:S}));S=Y.width;Y=Y.height;O=VX(O);v=VX(v!=null?v:"YouTube video player");return'')}; g.u.supportsGaplessAudio=function(){return g.En&&!G2&&qS()>=74||g.Jt&&g.au(68)?!0:!1}; g.u.supportsGaplessShorts=function(){return!this.V("html5_enable_short_gapless")||this.f1||g.ch?!1:!0}; g.u.getPlayerType=function(){return this.Y.cplayer}; g.u.XL=function(){return this.RD}; var Czm=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],$zQ=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],cOE=[19];var vs={},xzF=(vs["140"]={numChannels:2},vs["141"]={numChannels:2},vs["251"]={audioSampleRate:48E3,numChannels:2},vs["774"]={audioSampleRate:48E3,numChannels:2},vs["380"]={numChannels:6},vs["328"]={numChannels:6},vs["773"]={},vs),ON={},yOm=(ON["1"]='video/mp4; codecs="av01.0.08M.08"',ON["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',ON["1e"]='video/mp4; codecs="av01.0.08M.08"',ON["9"]='video/webm; codecs="vp9"',ON["("]='video/webm; codecs="vp9"',ON["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', ON.h='video/mp4; codecs="avc1.64001e"',ON.H='video/mp4; codecs="avc1.64001e"',ON.o='audio/webm; codecs="opus"',ON.a='audio/mp4; codecs="mp4a.40.2"',ON.ah='audio/mp4; codecs="mp4a.40.2"',ON.mac3='audio/mp4; codecs="ac-3"; channels=6',ON.meac3='audio/mp4; codecs="ec-3"; channels=6',ON.i='audio/mp4; codecs="iamf.001.001.Opus"',ON),YM={},apl=(YM["337"]={width:3840,height:2160,bitrate:3E7,fps:30},YM["336"]={width:2560,height:1440,bitrate:15E6,fps:30},YM["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, YM["702"]={width:7680,height:4320,bitrate:4E7,fps:60},YM["701"]={width:3840,height:2160,bitrate:2E7,fps:60},YM["700"]={width:2560,height:1440,bitrate:1E7,fps:60},YM["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},YM["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},YM["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},YM["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, YM["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},YM["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},YM["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},YM["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},YM["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},YM["315"]={width:3840,height:2160,bitrate:2E7,fps:60},YM["308"]={width:2560, height:1440,bitrate:1E7,fps:60},YM["303"]={width:1920,height:1080,bitrate:5E6,fps:60},YM["302"]={width:1280,height:720,bitrate:25E5,fps:60},YM["299"]={width:1920,height:1080,bitrate:75E5,fps:60},YM["298"]={width:1280,height:720,bitrate:35E5,fps:60},YM["571"]={width:7680,height:4320,bitrate:3E7,fps:60},YM["401"]={width:3840,height:2160,bitrate:15E6,fps:60},YM["400"]={width:2560,height:1440,bitrate:75E5,fps:60},YM["399"]={width:1920,height:1080,bitrate:2E6,fps:60},YM["398"]={width:1280,height:720,bitrate:1E6, fps:60},YM["397"]={width:854,height:480,bitrate:4E5,fps:30},YM["396"]={width:640,height:360,bitrate:25E4,fps:30},YM["787"]={width:1080,height:608,bitrate:2E5,fps:30},YM["788"]={width:1080,height:608,bitrate:4E5,fps:30},YM["572"]={width:7680,height:4320,bitrate:3E7,fps:60},YM["555"]={width:3840,height:2160,bitrate:15E6,fps:60},YM["554"]={width:2560,height:1440,bitrate:75E5,fps:60},YM["553"]={width:1920,height:1080,bitrate:2E6,fps:60},YM["552"]={width:1280,height:720,bitrate:1E6,fps:60},YM["551"]={width:854, height:480,bitrate:4E5,fps:30},YM["550"]={width:640,height:360,bitrate:25E4,fps:30},YM["313"]={width:3840,height:2160,bitrate:8E6,fps:30},YM["271"]={width:2560,height:1440,bitrate:4E6,fps:30},YM["248"]={width:1920,height:1080,bitrate:2E6,fps:30},YM["247"]={width:1280,height:720,bitrate:15E5,fps:30},YM["244"]={width:854,height:480,bitrate:52E4,fps:30},YM["243"]={width:640,height:360,bitrate:28E4,fps:30},YM["137"]={width:1920,height:1080,bitrate:4E6,fps:30},YM["136"]={width:1280,height:720,bitrate:3E6, fps:30},YM["135"]={width:854,height:480,bitrate:1E6,fps:30},YM["385"]={width:1920,height:1080,bitrate:6503313,fps:60},YM["376"]={width:1280,height:720,bitrate:5706960,fps:60},YM["384"]={width:1280,height:720,bitrate:3660979,fps:60},YM["225"]={width:1280,height:720,bitrate:5805E3,fps:30},YM["224"]={width:1280,height:720,bitrate:453E4,fps:30},YM["145"]={width:1280,height:720,bitrate:2682052,fps:30},YM);g.u=SJ.prototype;g.u.getInfo=function(){return this.Y}; g.u.QE=function(){return null}; g.u.rg=function(){var v=this.QE();return v?(v=g.rG(v.m9),Number(v.expire)):NaN}; g.u.GC=function(){}; g.u.getHeight=function(){return this.Y.video.height};Frg.prototype.build=function(){eTw(this);var v=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],O={};a:if(this.Y)var Y=this.Y;else{Y="";for(var S=g.y(this.G),d=S.next();!d.done;d=S.next())if(d=d.value,d.Dg){if(d.Dg.getIsDefault()){Y=d.Dg.getId();break a}Y||(Y=d.Dg.getId())}}S=g.y(this.G);for(d=S.next();!d.done;d=S.next())if(d=d.value,this.C||!d.Dg||d.Dg.getId()===Y)O[d.itag]||(O[d.itag]=[]),O[d.itag].push(d);Y=g.y(this.U);for(S=Y.next();!S.done;S=Y.next())if(S=S.value,d=O[S.Y]){d=g.y(d);for(var r=d.next();!r.done;r= d.next()){var b=v,z=b.push;r=r.value;var M="#EXT-X-MEDIA:TYPE=AUDIO,",V="YES",A="audio";if(r.Dg){A=r.Dg;var f=A.getId().split(".")[0];f&&(M+='LANGUAGE="'+f+'",');(this.Y?this.Y===A.getId():A.getIsDefault())||(V="NO");A=A.getName()}f="";S!==null&&(f=S.itag.toString());f=r2(this,r.url,f);M=M+('NAME="'+A+'",DEFAULT='+(V+',AUTOSELECT=YES,GROUP-ID="'))+(RTw(r,S)+'",URI="'+(f+'"'));z.call(b,M)}}Y=g.y(this.Z);for(S=Y.next();!S.done;S=Y.next())S=S.value,d=$yN,S=(b=S.Dg)?'#EXT-X-MEDIA:URI="'+r2(this,S.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+d+'",LANGUAGE="'+b.getId()+'",NAME="'+b.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,S&&v.push(S);Y=this.Z.length>0?$yN:void 0;S=g.y(this.U);for(d=S.next();!d.done;d=S.next())d=d.value,z=O[d.Y],b=void 0,((b=z)==null?void 0:b.length)>0&&(b=d,z=z[0],z="#EXT-X-STREAM-INF:BANDWIDTH="+(b.bitrate+z.bitrate)+',CODECS="'+(b.codecs+","+z.codecs+'",RESOLUTION=')+(b.width+"x"+b.height+',AUDIO="')+(RTw(z,b)+'",')+(Y?'SUBTITLES="'+Y+'",':"")+"CLOSED-CAPTIONS=NONE",b.fps>1&&(z+= ",FRAME-RATE="+b.fps),b.kD&&(z+=",VIDEO-RANGE="+b.kD),v.push(z),v.push(r2(this,d.url,"")));return v.join("\n")}; var $yN="text";g.C(bt,SJ);bt.prototype.rg=function(){return this.expiration}; bt.prototype.QE=function(){if(!this.m9||this.m9.vW()){var v=this.U.build();v="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(v);this.m9=new Gz(v)}return this.m9};g.C(oJ,SJ);oJ.prototype.QE=function(){return new Gz(this.U.Sp())}; oJ.prototype.GC=function(){this.U=FY(this.U)};g.C(jJ,SJ);jJ.prototype.QE=function(){return new Gz(this.U)};var SA={},n77=(SA.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",SA.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",SA.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",SA);g.u=g.WO.prototype;g.u.getId=function(){return this.id}; g.u.getName=function(){return this.name}; g.u.isServable=function(){return this.Y}; g.u.Sp=function(){return this.url}; g.u.getXtags=function(){return this.xtags}; g.u.toString=function(){return this.languageCode+": "+g.zj(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.u.equals=function(v){return v?this.toString()===v.toString():!1}; g.u.sE=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var mzc={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},thg={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},DzJ=/^(\d*)_((\d*)_?(\d*))$/;var N6E={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},vNn={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var d0={},kON=(d0.ALWAYS=1,d0.BY_REQUEST=3,d0.UNKNOWN=void 0,d0),r0={},Uyw=(r0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",r0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",r0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",r0.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",r0);var ETd; ETd=function(v){for(var O=Object.keys(v),Y={},S=0;SS-O?-1:v}; g.u.yW=function(){return this.U.Eq()}; g.u.Ox=function(){return this.U.Pu()}; g.u.IA=function(v){this.U=v};g.C(ZZ,Lm);ZZ.prototype.U=function(v,O){return Lm.prototype.U.call(this,"$N|"+v,O)}; ZZ.prototype.Z=function(v,O,Y){return new BO(v,O,Y,this.isLive)};var ZGm=[],Jw=new Set;g.C(g.w2,g.MU);g.u=g.w2.prototype; g.u.setData=function(v){v=v||{};var O=v.errordetail;O!=null&&(this.errorDetail=O);var Y=v.errorcode;Y!=null?this.errorCode=Y:v.status==="fail"&&(this.errorCode="auth");var S=v.reason;S!=null&&(this.errorReason=S);var d=v.subreason;d!=null&&(this.uL=d);this.V("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=v.cpn||(this.Qx.XL()?"r"+g.a7(15):g.a7(16)));this.yx=dV(this.Qx.yx,v.livemonitor);hrQ(this,v);var r=v.raw_player_response;if(r)this.ir=r;else{var b=v.player_response; b&&(r=JSON.parse(b))}if(this.V("html5_enable_ssap_entity_id")){var z=v.cached_load;z&&(this.tb=dV(this.tb,z));if(!this.clientPlaybackNonce){var M=v.cpn;M?(this.Li("ssei","shdc"),this.clientPlaybackNonce=M):this.clientPlaybackNonce=this.Qx.XL()?"r"+g.a7(15):g.a7(16)}}r&&(this.playerResponse=r);if(this.playerResponse){var V=this.playerResponse.annotations;if(V)for(var A=g.y(V),f=A.next();!f.done;f=A.next()){var k=f.value.playerAnnotationsUrlsRenderer;if(k){k.adsOnly&&(this.LM=!0);var U=k.loadPolicy; U&&(this.annotationsLoadPolicy=kON[U]);var c=k.invideoUrl;c&&(this.AK=YD(c));break}}var a=this.playerResponse.attestation;a&&YB$(this,a);var x=this.playerResponse.cotn;x&&(this.cotn=x);var T=this.playerResponse.heartbeatParams;if(T){lkQ(this)&&(this.Nn=!0);var l=T.heartbeatToken;l&&(this.drmSessionId=T.drmSessionId||"",this.heartbeatToken=l,this.VA=Number(T.intervalMilliseconds),this.aZ=Number(T.maxRetries),this.Yd=!!T.softFailOnError,this.F5=!!T.useInnertubeHeartbeatsForDrm,this.l4=!0);this.heartbeatServerData= T.heartbeatServerData;var Q;this.B7=!((Q=T.heartbeatAttestationConfig)==null||!Q.requiresAttestation)}var L=this.playerResponse.messages;L&&bGi(this,L);var I=this.playerResponse.overlay;if(I){var t=I.playerControlsOverlayRenderer;if(t)if(jRm(this,t.controlBgHtml),t.mutedAutoplay){var P=g.q(t.mutedAutoplay,B3L);if(P&&P.endScreen){var YQ=g.q(P.endScreen,ZgN);YQ&&YQ.text&&(this.LA=g.ui(YQ.text))}}else this.mutedAutoplay=!1}var dF=this.playerResponse.playabilityStatus;if(dF){var N=dF.backgroundability; N&&N.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var j1,D;if((j1=dF.offlineability)==null?0:(D=j1.offlineabilityRenderer)==null?0:D.offlineable)this.offlineable=!0;var yd=dF.contextParams;yd&&(this.contextParams=yd);var pn=dF.pictureInPicture;pn&&pn.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);dF.playableInEmbed&&(this.allowEmbed=!0);var Qd=dF.ypcClickwrap;if(Qd){var uL=Qd.playerLegacyDesktopYpcClickwrapRenderer,jU=Qd.ypcRentalActivationRenderer;if(uL)this.vA=uL.durationMessage|| "",this.eA=!0;else if(jU){var ll=jU.durationMessage;this.vA=ll?g.ui(ll):"";this.eA=!0}}var xQ=dF.errorScreen;if(xQ){if(xQ.playerLegacyDesktopYpcTrailerRenderer){var dS=xQ.playerLegacyDesktopYpcTrailerRenderer;this.Nw=dS.trailerVideoId||"";var p=xQ.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var oi=p&&p.ypcTrailerRenderer}else if(xQ.playerLegacyDesktopYpcOfferRenderer)dS=xQ.playerLegacyDesktopYpcOfferRenderer;else if(xQ.ypcTrailerRenderer){oi=xQ.ypcTrailerRenderer;var P0=oi.fullVideoMessage;this.o9= P0?g.ui(P0):"";var uh,lL;this.Nw=((uh=g.q(oi,X5t))==null?void 0:(lL=uh.videoDetails)==null?void 0:lL.videoId)||""}dS&&(this.q$=dS.itemTitle||"",dS.itemUrl&&(this.L4=dS.itemUrl),dS.itemBuyUrl&&(this.GA=dS.itemBuyUrl),this.Mh=dS.itemThumbnail||"",this.wk=dS.offerHeadline||"",this.I9=dS.offerDescription||"",this.Cy=dS.offerId||"",this.rk=dS.offerButtonText||"",this.gL=dS.offerButtonFormattedText||null,this.Q8=dS.overlayDurationMsec||NaN,this.o9=dS.fullVideoMessage||"",this.Iv=!0);if(oi){var AY=g.q(oi, X5t);if(AY)this.Zr={raw_player_response:AY};else{var Xw=g.q(oi,mvv);this.Zr=Xw?Se(Xw):null}this.Iv=!0}}}var Qv=this.playerResponse.playbackTracking;if(Qv){var Ft=v,h=Aw(Qv.googleRemarketingUrl);h&&(this.googleRemarketingUrl=h);var R=Aw(Qv.youtubeRemarketingUrl);R&&(this.youtubeRemarketingUrl=R);var e={},Z=Aw(Qv.ptrackingUrl);if(Z){var n=fm(Z),Cn=n.oid;Cn&&(this.Wm=Cn);var OE=n.pltype;OE&&(this.SR=OE);var kQ=n.ptchn;kQ&&(this.A1=kQ);var S1=n.ptk;S1&&(this.s3=encodeURIComponent(S1));var h3=n.m;h3&& (this.f$=h3)}var t3=Aw(Qv.qoeUrl);if(t3){for(var yv=g.rG(t3),Cg=g.y(Object.keys(yv)),eY=Cg.next();!eY.done;eY=Cg.next()){var G1=eY.value,Gg=yv[G1];yv[G1]=Array.isArray(Gg)?Gg.join(","):Gg}this.jw=yv;var iM=yv.cat;iM&&(this.V("html5_enable_qoe_cat_list")?this.vu=this.vu.concat(iM.split(",")):this.TF=iM);var Cx=yv.live;Cx&&(this.iT=Cx);var VU=yv.drm_product;VU&&(this.drmProduct=VU)}var Rp=Aw(Qv.videostatsPlaybackUrl);if(Rp){var fd=fm(Rp),e2=fd.adformat;if(e2){Ft.adformat=e2;var Pd=this.D(),GA=Hz3(e2, this.By,Pd.B,Pd.X);GA&&(this.adFormat=GA)}var p9=fd.aqi;p9&&(Ft.ad_query_id=p9);var dn=fd.autoplay;dn&&(this.Tn=dn=="1",this.bQ=dn=="1");var mm=fd.autonav;mm&&(this.isAutonav=mm=="1");var r3=fd.delay;r3&&(this.Mj=kr(r3));var FH=fd.ei;FH&&(this.eventId=FH);if(fd.adcontext||e2)this.Tn=!0;var iu=fd.feature;iu&&(this.kq=iu);var As=fd.list;As&&(this.playlistId=As);var fl=fd.of;fl&&(this.TD=fl);var $z=fd.osid;$z&&(this.osid=$z);var kz=fd.referrer;kz&&(this.referrer=kz);var Yx=fd.sdetail;Yx&&(this.Oj=Yx); var g1=fd.ssrt;g1&&(this.yP=g1=="1");var Uo=fd.subscribed;Uo&&(this.subscribed=Uo=="1");var SV=fd.uga;SV&&(this.userGenderAge=SV);var cS=fd.upt;cS&&(this.SP=cS);var us=fd.vm;us&&(this.videoMetadata=us);e.playback=fd}var Cl=Aw(Qv.videostatsWatchtimeUrl);if(Cl){var y6=fm(Cl),aI=y6.ald;aI&&(this.hp=aI);e.watchtime=y6}var xz=Aw(Qv.atrUrl);if(xz){var tz=fm(xz);e.atr=tz}var hB=Aw(Qv.engageUrl);if(hB){var Dd=fm(hB);e.engage=Dd}this.g6=e;if(Qv.promotedPlaybackTracking){var Kr=Qv.promotedPlaybackTracking; Kr.startUrls&&(this.zK=Kr.startUrls);Kr.firstQuartileUrls&&(this.bj=Kr.firstQuartileUrls);Kr.secondQuartileUrls&&(this.NZ=Kr.secondQuartileUrls);Kr.thirdQuartileUrls&&(this.CH=Kr.thirdQuartileUrls);Kr.completeUrls&&(this.IT=Kr.completeUrls);Kr.engagedViewUrls&&(Kr.engagedViewUrls.length>1&&g.Br(new g.iK("There are more than one engaged_view_urls.")),this.bx=Kr.engagedViewUrls[0])}}var dg=this.playerResponse.playerCueRanges;dg&&dg.length>0&&(this.cueRanges=dg);var pl=this.playerResponse.playerCueRangeSet; pl&&g.Km(this,pl);a:{var rg=this.playerResponse.adPlacements;if(rg)for(var Tz=g.y(rg),b1=Tz.next();!b1.done;b1=Tz.next()){var ls=void 0,F4=void 0,ho=(ls=b1.value.adPlacementRenderer)==null?void 0:(F4=ls.renderer)==null?void 0:F4.videoAdTrackingRenderer;if(ho){var RI=ho;break a}}RI=null}var ot=RI;Qv&&Qv.promotedPlaybackTracking&&ot&&g.Br(new g.iK("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var kC;if(!(kC=ot))a:{for(var e5=g.y(this.playerResponse.adSlots||[]), jV=e5.next();!jV.done;jV=e5.next()){var WT=g.q(jV.value,nG);if(WT===void 0||!Tfi(WT))break;var Eo=void 0,Hj=(Eo=WT.fulfillmentContent)==null?void 0:Eo.fulfilledLayout,Q6=g.q(Hj,EB);if(Q6&&FK(Q6)){kC=!0;break a}}kC=!1}kC&&(this.mI=!0);var Ll=this.playerResponse.playerAds;if(Ll)for(var NJ=v,BS=g.y(Ll),Ux=BS.next();!Ux.done;Ux=BS.next()){var Zo=Ux.value;if(Zo){var X4=Zo.playerLegacyDesktopWatchAdsRenderer;if(X4){var R6=X4.playerAdParams;if(R6){R6.autoplay=="1"&&(this.bQ=this.Tn=!0);this.FC=R6.encodedAdSafetyReason|| null;R6.showContentThumbnail!==void 0&&(this.mU=!!R6.showContentThumbnail);NJ.enabled_engage_types=R6.enabledEngageTypes;break}}}}var ZQ=this.playerResponse.playerConfig;if(ZQ){var iN=ZQ.manifestlessWindowedLiveConfig;if(iN){var wb=Number(iN.minDvrSequence),zU=Number(iN.maxDvrSequence),cQ=Number(iN.minDvrMediaTimeMs),uA=Number(iN.maxDvrMediaTimeMs),s4=Number(iN.startWalltimeMs);wb&&(this.Zq=wb);cQ&&(this.HW=cQ/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&Ol(this)&&(this.TV=cQ/ 1E3));zU&&(this.ZT=zU);uA&&(this.Cj=uA/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&Ol(this)&&(this.dW=uA/1E3));s4&&(this.rR=s4/1E3);(wb||cQ)&&(zU||uA)&&(this.allowLiveDvr=this.isLivePlayback=this.tK=!0,this.XH=!1)}var mG=ZQ.daiConfig;if(mG){if(mG.enableDai){this.b6=!0;var CR=mG.enableServerStitchedDai;CR&&(this.enableServerStitchedDai=CR);var II=mG.enablePreroll;II&&(this.xH=II)}var OT;if(mG.daiType==="DAI_TYPE_SS_DISABLED"||((OT=mG.debugInfo)==null?0:OT.isDisabledUnpluggedChannel))this.oU= !0;mG.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.iW=!0)}var VP=ZQ.audioConfig;if(VP){var mq=VP.loudnessDb;mq!=null&&(this.aI=mq);var Ws7=VP.trackAbsoluteLoudnessLkfs;Ws7!=null&&(this.xE=Ws7);var zP1=VP.loudnessTargetLkfs;zP1!=null&&(this.loudnessTargetLkfs=zP1);VP.audioMuted&&(this.e_=!0);VP.muteOnStart&&(this.PH=!0);var fG=VP.loudnessNormalizationConfig;if(fG){fG.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);fG.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var shm=fG.minimumLoudnessTargetLkfs;shm!=null&&(this.minimumLoudnessTargetLkfs=shm);var gew=fG.maxStatefulTimeThresholdSec;gew!=null&&(this.maxStatefulTimeThresholdSec=gew)}VP.playAudioOnly&&(this.iO=!0)}var W0J=ZQ.playbackEndConfig;if(W0J){var MEE=W0J.endSeconds,VEQ=W0J.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(MEE&&(this.endSeconds=MEE),VEQ&&(this.limitedPlaybackDurationInSeconds=VEQ))}var fF=ZQ.fairPlayConfig;if(fF){var A4l=fF.certificate;A4l&&(this.XO=Sj(A4l));var fE7=Number(fF.keyRotationPeriodMs); fE7>0&&(this.K$=fE7);var $GJ=Number(fF.keyPrefetchMarginMs);$GJ>0&&(this.aO=$GJ)}var NP=ZQ.playbackStartConfig;if(NP){this.V_=Number(NP.startSeconds);var kWJ=NP.liveUtcStartSeconds,UGi=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;kWJ&&!UGi&&(this.liveUtcStartSeconds=Number(kWJ));var zsJ=NP.startPosition;if(zsJ){var c41=zsJ.utcTimeMillis;c41&&!UGi&&(this.liveUtcStartSeconds=Number(c41)*.001);var uMm=zsJ.streamTimeMillis;uMm&&(this.N2=Number(uMm)*.001)}this.progressBarStartPosition=NP.progressBarStartPosition; this.progressBarEndPosition=NP.progressBarEndPosition}else{var svQ=ZQ.skippableSegmentsConfig;if(svQ){var Cbn=svQ.introSkipDurationMs;Cbn&&(this.CU=Number(Cbn)/1E3);var y4Q=svQ.outroSkipDurationMs;y4Q&&(this.iD=Number(y4Q)/1E3)}}var gKn=ZQ.skippableIntroConfig;if(gKn){var aEE=Number(gKn.startMs),xGd=Number(gKn.endMs);isNaN(aEE)||isNaN(xGd)||(this.M7=aEE,this.lO=xGd)}var p2d=ZQ.streamSelectionConfig;p2d&&(this.oI=Number(p2d.maxBitrate));var TBl=ZQ.vrConfig;TBl&&(this.AP=TBl.partialSpherical=="1"); var $N=ZQ.webDrmConfig;if($N){$N.skipWidevine&&(this.i9=!0);var lEc=$N.widevineServiceCert;lEc&&(this.N6=Sj(lEc));$N.useCobaltWidevine&&(this.useCobaltWidevine=!0);$N.startWithNoQualityConstraint&&(this.Qc=!0)}var tB=ZQ.mediaCommonConfig;if(tB){var $E=tB.dynamicReadaheadConfig;if($E){this.maxReadAheadMediaTimeMs=$E.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=$E.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=$E.readAheadGrowthRateMs||NaN;var Fsw,hPd=tB==null?void 0:(Fsw=tB.mediaUstreamerRequestConfig)== null?void 0:Fsw.videoPlaybackUstreamerConfig;hPd&&(this.WE=Sj(hPd));var Mlw=tB==null?void 0:tB.sabrContextUpdates;if(Mlw&&Mlw.length>0)for(var RP3=g.y(Mlw),Vl1=RP3.next();!Vl1.done;Vl1=RP3.next()){var $T=Vl1.value;if($T.type&&$T.value){var GqN={type:$T.type,scope:$T.scope,value:Sj($T.value)||void 0,sendByDefault:$T.sendByDefault};this.sabrContextUpdates.set($T.type,GqN)}}}var eP$=tB.serverPlaybackStartConfig;eP$&&(this.serverPlaybackStartConfig=eP$);tB.useServerDrivenAbr&&(this.y5=!0);var Ee3=tB.requestPipeliningConfig; Ee3&&(this.requestPipeliningConfig=Ee3)}var QhE=ZQ.inlinePlaybackConfig;QhE&&(this.WQ=!!QhE.showAudioControls);var kE=ZQ.embeddedPlayerConfig;if(kE){this.embeddedPlayerConfig=kE;var Alm=kE.embeddedPlayerMode;if(Alm){var Lsw=this.D();Lsw.JK=Alm;Lsw.G=Alm==="EMBEDDED_PLAYER_MODE_PFL"}var BBn=kE.permissions;BBn&&(this.allowImaMonetization=!!BBn.allowImaMonetization)}var Ub=ZQ.webPlayerConfig;Ub&&(Ub.gatewayExperimentGroup&&(this.gatewayExperimentGroup=Ub.gatewayExperimentGroup),Ub.isProximaEligible&& (this.isProximaLatencyEligible=!0))}var DO=this.playerResponse.streamingData;if(DO){var fjw=DO.formats;if(fjw){for(var kN=[],ZUF=g.y(fjw),$WJ=ZUF.next();!$WJ.done;$WJ=ZUF.next()){var kQE=$WJ.value;kN.push(kQE.itag+"/"+kQE.width+"x"+kQE.height)}this.W6=kN.join(",");kN=[];for(var X2F=g.y(fjw),UWw=X2F.next();!UWw.done;UWw=X2F.next()){var UB=UWw.value,cW={itag:UB.itag,type:UB.mimeType,quality:UB.quality},w2Q=UB.url;w2Q&&(cW.url=w2Q);var cu=hK(UB),iY0=cu.Oc,m78=cu.uN,tr8=cu.s;cu.ZS&&(cW.url=iY0,cW.sp= m78,cW.s=tr8);kN.push(g.pV(cW))}this.RD=kN.join(",")}var cld=DO.hlsFormats;if(cld&&!this.V("safari_live_drm_captions_fix")){var IEg=ZQ||null,ua={};if(IEg){var uzl=IEg.audioPairingConfig;if(uzl&&uzl.pairs)for(var qT7=g.y(uzl.pairs),CVm=qT7.next();!CVm.done;CVm=qT7.next()){var ne7=CVm.value,yl3=ne7.videoItag;ua[yl3]||(ua[yl3]=[]);ua[yl3].push(ne7.audioItag)}}for(var J4F={},Ksc=g.y(cld),ajg=Ksc.next();!ajg.done;ajg=Ksc.next()){var Pb1=ajg.value;J4F[Pb1.itag]=Pb1.bitrate}for(var GWc=[],iUn=g.y(cld),xW$= iUn.next();!xW$.done;xW$=iUn.next()){var S2=xW$.value,Fn={itag:S2.itag,type:S2.mimeType,url:S2.url,bitrate:S2.bitrate,width:S2.width,height:S2.height,fps:S2.fps},CF=S2.audioTrack;if(CF){var mGm=CF.displayName;mGm&&(Fn.name=mGm,Fn.audio_track_id=CF.id,CF.audioIsDefault&&(Fn.is_default="1"))}if(S2.drmFamilies){for(var tEl=[],DG7=g.y(S2.drmFamilies),pUd=DG7.next();!pUd.done;pUd=DG7.next())tEl.push(kA[pUd.value]);Fn.drm_families=tEl.join(",")}var yQ=ua[S2.itag];if(yQ&&yQ.length){Fn.audio_itag=yQ.join(","); var HU3=J4F[yQ[0]];HU3&&(Fn.bitrate+=HU3)}var NBw=Hli(S2);NBw&&(Fn.eotf=NBw);S2.audioChannels&&(Fn.audio_channels=S2.audioChannels);GWc.push(g.pV(Fn))}this.hlsFormats=GWc.join(",")}var Tal=DO.licenseInfos;if(Tal&&Tal.length>0){for(var vJi={},OXQ=g.y(Tal),ljw=OXQ.next();!ljw.done;ljw=OXQ.next()){var YtF=ljw.value,Stg=YtF.drmFamily,di1=YtF.url;Stg&&di1&&(vJi[kA[Stg]]=di1)}this.LP=vJi}var rg1=DO.drmParams;rg1&&(this.drmParams=rg1);var bXn=DO.dashManifestUrl;bXn&&(this.yC=g.Te(bXn,{cpn:this.clientPlaybackNonce})); var oJ1=DO.hlsManifestUrl;oJ1&&(this.hlsvp=oJ1);var jgw=DO.probeUrl;jgw&&(this.probeUrl=YD(g.Te(jgw,{cpn:this.clientPlaybackNonce})));var WWF=DO.serverAbrStreamingUrl;WWF&&(this.PP=new g.aa(WWF,!0))}var zI$=this.playerResponse.trackingParams;zI$&&(this.g8=zI$);var rn=this.playerResponse.videoDetails;if(rn){var hd=v,F0g=rn.videoId;F0g&&(this.videoId=F0g,hd.video_id||(hd.video_id=F0g));var hsE=rn.title;hsE&&(this.title=hsE,hd.title||(hd.title=hsE));var Rsl=rn.lengthSeconds;Rsl&&(this.lengthSeconds= Number(Rsl),hd.length_seconds||(hd.length_seconds=Rsl));var sgE=rn.keywords;sgE&&(this.keywords=LJg(sgE));var esd=rn.channelId;esd&&(this.HS=esd,hd.ucid||(hd.ucid=esd));var gJJ=rn.viewCount;gJJ&&(this.rawViewCount=Number(gJJ));var EKi=rn.author;EKi&&(this.author=EKi,hd.author||(hd.author=EKi));var MIl=rn.shortDescription;MIl&&(this.shortDescription=MIl);var VId=rn.isCrawlable;VId&&(this.isListed=VId);var Agi=rn.musicVideoType;Agi&&(this.musicVideoType=Agi);var Qv3=rn.isLive;Qv3!=null&&(this.isLivePlayback= Qv3);if(Qv3||rn.isUpcoming)this.isPremiere=!rn.isLiveContent;var fml=rn.thumbnail;fml&&(this.X=VK(fml));var $il=rn.isExternallyHostedPodcast;$il&&(this.isExternallyHostedPodcast=$il);var L03=rn.viewerLivestreamJoinPosition;if(L03==null?0:L03.utcTimeMillis)this.qF=kr(L03.utcTimeMillis);var kCl=ZQ||null,Ba$=v;rn.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);rn.isUpcoming&&(this.isUpcoming=!0);if(rn.isPostLiveDvr){this.XH=!0;var UiE=rn.latencyClass;UiE&&(this.latencyClass=Uyw[UiE]||"UNKNOWN"); rn.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var ZeE=!1;this.yx?(this.allowLiveDvr=vD()?!0:Hf&&I2<5?!1:!0,this.isLivePlayback=!0):rn.isLive?(Ba$.livestream="1",this.allowLiveDvr=rn.isLiveDvrEnabled?vD()?!0:Hf&&I2<5?!1:!0:!1,this.partnerId=27,ZeE=!0):rn.isUpcoming&&(ZeE=!0);if(rn.isLive||this.yx){rn.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var cgw=rn.latencyClass;cgw&&(this.latencyClass=Uyw[cgw]||"UNKNOWN");var uZc=rn.liveChunkReadahead;uZc&&(this.liveChunkReadahead= uZc);var ve=kCl&&kCl.livePlayerConfig;if(ve){ve.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);ve.hasSubfragmentedWebm&&(this.C2=!0);ve.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var Cym=ve.liveExperimentalContentId;Cym&&(this.liveExperimentalContentId=Number(Cym));var ygE=ve.isLiveHeadPlayable;this.V("html5_live_head_playable")&&ygE!=null&&(this.isLiveHeadPlayable=ygE)}}ZeE&&(this.isLivePlayback=!0,Ba$.adformat&&Ba$.adformat.split("_")[1]!=="8"||this.Ug.push("heartbeat"), this.l4=!0)}var amF=rn.isPrivate;amF!==void 0&&(this.isPrivate=dV(this.isPrivate,amF))}if(dF){var xig=rn||null,pCc=!1,Od=dF.errorScreen;pCc=Od&&(Od.playerLegacyDesktopYpcOfferRenderer||Od.playerLegacyDesktopYpcTrailerRenderer||Od.ypcTrailerRenderer)?!0:xig&&xig.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(dF.status);if(!pCc){this.errorCode=JOE(dF.errorCode)||"auth";var ak=Od&&Od.playerErrorMessageRenderer;if(ak){this.playerErrorMessageRenderer=ak;var Tpc=ak.reason;Tpc&&(this.errorReason= g.ui(Tpc));var XU7=ak.subreason;XU7&&(this.uL=g.ui(XU7),this.E3=XU7)}else this.errorReason=dF.reason||null;var wUg=dF.status;if(wUg==="LOGIN_REQUIRED")this.errorDetail="1";else if(wUg==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(wUg==="AGE_CHECK_REQUIRED"){var lm1=dF.errorScreen,FWm=lm1&&lm1.playerKavRenderer;this.errorDetail=FWm&&FWm.kavUrl?"4":"3"}else this.errorDetail=dF.isBlockedInRestrictedMode?"5":"0"}}var hIl=this.playerResponse.interstitialPods;hIl&&rXi(this,hIl);this.AK&&this.eventId&& (this.AK=oZ(this.AK,{ei:this.eventId}));var Ij3=this.playerResponse.captions;if(Ij3&&Ij3.playerCaptionsTracklistRenderer)a:{var Rw=Ij3.playerCaptionsTracklistRenderer;this.captionTracks=[];if(Rw.captionTracks)for(var RIg=g.y(Rw.captionTracks),qud=RIg.next();!qud.done;qud=RIg.next()){var ey=qud.value,eIn=erJ(ey.baseUrl);if(!eIn)break a;var nK$={is_translateable:!!ey.isTranslatable,languageCode:ey.languageCode,languageName:ey.name&&g.ui(ey.name),url:eIn,vss_id:ey.vssId,kind:ey.kind};nK$.name=ey.trackName; nK$.displayName=ey.name&&g.ui(ey.name);this.captionTracks.push(new g.WO(nK$))}this.a6=Rw.audioTracks||[];this.nH=Rw.defaultAudioTrackIndex||0;this.Af=[];if(Rw.translationLanguages)for(var EJg=g.y(Rw.translationLanguages),Jli=EJg.next();!Jli.done;Jli=EJg.next()){var Yl=Jli.value,kT={};kT.languageCode=Yl.languageCode;kT.languageName=g.ui(Yl.languageName);if(Yl.translationSourceTrackIndices){kT.translationSourceTrackIndices=[];for(var Qg$=g.y(Yl.translationSourceTrackIndices),K0F=Qg$.next();!K0F.done;K0F= Qg$.next())kT.translationSourceTrackIndices.push(K0F.value)}if(Yl.excludeAudioTrackIndices){kT.excludeAudioTrackIndices=[];for(var LWQ=g.y(Yl.excludeAudioTrackIndices),PVE=LWQ.next();!PVE.done;PVE=LWQ.next())kT.excludeAudioTrackIndices.push(PVE.value)}this.Af.push(kT)}this.Er=[];if(Rw.defaultTranslationSourceTrackIndices)for(var Bpn=g.y(Rw.defaultTranslationSourceTrackIndices),GQc=Bpn.next();!GQc.done;GQc=Bpn.next())this.Er.push(GQc.value);this.L$=!!Rw.contribute&&!!Rw.contribute.captionsMetadataRenderer}(this.clipConfig= this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.V_=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&oN$(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var ZXw;this.compositeLiveIngestionOffsetToken=(ZXw=this.playerResponse.playbackTracking)==null?void 0:ZXw.compositeLiveIngestionOffsetToken; var XC7;this.compositeLiveStatusToken=(XC7=this.playerResponse.playbackTracking)==null?void 0:XC7.compositeLiveStatusToken}qC(this,v);v.queue_info&&(this.queueInfo=v.queue_info);var wC3=v.hlsdvr;wC3!=null&&(this.allowLiveDvr=Number(wC3)===1?vD()?!0:Hf&&I2<5?!1:!0:!1);this.adQueryId=v.ad_query_id||null;this.FC||(this.FC=v.encoded_ad_safety_reason||null);this.e_=dV(this.e_,v.infringe||v.muted);this.tO=v.authkey;this.uA=v.authuser;this.mutedAutoplay=dV(this.mutedAutoplay,v&&v.playmuted);this.mutedAutoplayDurationMode= bK(this.mutedAutoplayDurationMode,v&&v.muted_autoplay_duration_mode);this.iF=dV(this.iF,v&&v.mutedautoplay);var xE=v.length_seconds;xE&&(this.lengthSeconds=typeof xE==="string"?kr(xE):xE);if(this.isAd()||this.d6||!g.s9(g.EU(this.Qx)))this.endSeconds=bK(this.endSeconds,this.iD||v.end||v.endSeconds);else{var D7N=g.EU(this.Qx),pF=this.lengthSeconds;switch(D7N){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":pF>30?this.limitedPlaybackDurationInSeconds=30:pF<30&&pF>10&&(this.limitedPlaybackDurationInSeconds= 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=pF*.2}}this.g8=oU(this.g8,v.itct);this.lT=dV(this.lT,v.is_live_destination);this.isLivePlayback=dV(this.isLivePlayback,v.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.FL();v.isUpcoming&&(this.isUpcoming=dV(this.isUpcoming,v.isUpcoming));this.XH=dV(this.XH,v.post_live_playback);this.tK&&(this.XH=!1);this.isMdxPlayback=dV(this.isMdxPlayback,v.mdx);var Tr=v.mdx_control_mode; Tr&&(this.mdxControlMode=typeof Tr==="number"?Tr:kr(Tr));this.isInlinePlaybackNoAd=dV(this.isInlinePlaybackNoAd,v.is_inline_playback_no_ad);this.Te=bK(this.Te,v.reload_count);this.reloadReason=oU(this.reloadReason,v.reload_reason);this.mU=dV(this.mU,v.show_content_thumbnail);this.cycToken=v.cyc||null;var Im$=MC(v);Object.keys(Im$).length>0&&(this.X=Im$);this.JK=oU(this.JK,v.vvt);this.mdxEnvironment=oU(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.AI=v.osig;this.eventId||(this.eventId=v.eventid);this.osid||(this.osid=v.osid);this.playlistId=oU(this.playlistId,v.list);v.index&&(this.playlistIndex=this.playlistIndex===void 0?bK(0,v.index):bK(this.playlistIndex,v.index));this.hw=v.pyv_view_beacon_url;this.Aw=v.pyv_quartile25_beacon_url;this.Wi=v.pyv_quartile50_beacon_url;this.S0=v.pyv_quartile75_beacon_url;this.LB=v.pyv_quartile100_beacon_url; var qtc=v.session_data;!this.XB&&qtc&&(this.XB=Oq(qtc,"&").feature);this.isFling=bK(this.isFling?1:0,v.is_fling)===1;this.vnd=bK(this.vnd,v.vnd);this.forceAdsUrl=oU(this.forceAdsUrl,v.force_ads_url);this.cP=oU(this.cP,v.ctrl);this.t3=oU(this.t3,v.ytr);this.MP=v.ytrcc;this.rD=v.ytrexp;this.ZB=v.ytrext;this.w4=oU(this.w4,v.adformat);this.By=oU(this.By,v.attrib);this.slotPosition=bK(this.slotPosition,v.slot_pos);this.breakType=v.break_type;this.yP=dV(this.yP,v.ssrt);this.videoId=Wp(v)||this.videoId; this.C=oU(this.C,v.vss_credentials_token);this.Q_=oU(this.Q_,v.vss_credentials_token_type);this.iO=dV(this.iO,v.audio_only);this.f1=dV(this.f1,v.aac_high);this.Rt=dV(this.Rt,v.prefer_low_quality_audio);this.yD=dV(this.yD,v.uncap_inline_quality);this.V("html5_enable_qoe_cat_list")?v.qoe_cat&&(this.vu=this.vu.concat(v.qoe_cat.split(","))):this.TF=oU(this.TF,v.qoe_cat);this.u0=dV(this.u0,v.download_media);var nJ3=v.prefer_gapless;this.L=nJ3!=null?dV(this.L,nJ3):this.L?this.L:this.Qx.preferGapless&&this.Qx.supportsGaplessShorts(); SVJ(this.playerResponse)&&this.Ug.push("ad");var JgE=v.adaptive_fmts;JgE&&(this.adaptiveFormats=JgE,this.G0("adpfmts",{},!0));var KW1=v.allow_embed;KW1&&(this.allowEmbed=Number(KW1)===1);var Pyi=v.backgroundable;Pyi&&(this.backgroundable=Number(Pyi)===1);var GCQ=v.autonav;GCQ&&(this.isAutonav=Number(GCQ)===1);var iX7=v.autoplay;iX7&&(this.Tn=this.bQ=Number(iX7)===1);var miJ=v.iv_load_policy;miJ&&(this.annotationsLoadPolicy=rV(this.annotationsLoadPolicy,miJ,Qg));var tIn=v.cc_lang_pref;tIn&&(this.captionsLanguagePreference= oU(tIn,this.captionsLanguagePreference));var Dil=v.cc_load_policy;Dil&&(this.AZ=rV(this.AZ,Dil,Qg));var HXQ;this.deviceCaptionsOn=(HXQ=v.device_captions_on)!=null?HXQ:void 0;var Npd;this.O0=(Npd=v.device_captions_lang_pref)!=null?Npd:"";var vm3;this.Z2=(vm3=v.viewer_selected_caption_langs)!=null?vm3:[];if(!this.V("html5_enable_ssap_entity_id")){var O$$=v.cached_load;O$$&&(this.tb=dV(this.tb,O$$))}if(v.dash==="0"||v.dash===0||v.dash===!1)this.hB=!0;var YDm=v.dashmpd;YDm&&(this.yC=g.Te(YDm,{cpn:this.clientPlaybackNonce})); var SD7=v.delay;SD7&&(this.Mj=kr(SD7));var ie$=this.iD||v.end;if(this.R1?ie$!=null:ie$!=void 0)this.clipEnd=bK(this.clipEnd,ie$);var dqn=v.fmt_list;dqn&&(this.W6=dqn);v.heartbeat_preroll&&this.Ug.push("heartbeat");this.WO=-Math.floor(Math.random()*10);this.S9=-Math.floor(Math.random()*40);var rC7=v.is_listed;rC7&&(this.isListed=dV(this.isListed,rC7));var b$i=v.is_private;b$i&&(this.isPrivate=dV(this.isPrivate,b$i));var omg=v.is_dni;omg&&(this.KE=dV(this.KE,omg));var j3F=v.dni_color;j3F&&(this.HA= oU(this.HA,j3F));var WE$=v.pipable;WE$&&(this.pipable=dV(this.pipable,WE$));this.u9=(this.Es=this.pipable&&this.Qx.Ap)&&!this.Qx.showMiniplayerButton;var zii=v.paid_content_overlay_duration_ms;zii&&(this.paidContentOverlayDurationMs=kr(zii));var s3n=v.paid_content_overlay_text;s3n&&(this.paidContentOverlayText=s3n);var gmQ=v.url_encoded_fmt_stream_map;gmQ&&(this.RD=gmQ);var M8E=v.hls_formats;M8E&&(this.hlsFormats=M8E);var V87=v.hlsvp;V87&&(this.hlsvp=V87);var la=v.live_start_walltime;la&&(this.Tt= typeof la==="number"?la:kr(la));var Fo=v.live_manifest_duration;Fo&&(this.TK=typeof Fo==="number"?Fo:kr(Fo));var AC1=v.player_params;AC1&&(this.playerParams=AC1);var f8i=v.partnerid;f8i&&(this.partnerId=bK(this.partnerId,f8i));var $q1=v.probe_url;$q1&&(this.probeUrl=YD(g.Te($q1,{cpn:this.clientPlaybackNonce})));var mWd=v.pyv_billable_url;mWd&&sFg(mWd)&&(this.bx=mWd);var tlJ=v.pyv_conv_url;tlJ&&sFg(tlJ)&&(this.gD=tlJ);BZw(this,v);this.startSeconds>0?this.V("html5_log_start_seconds_inconsistency")&& this.startSeconds!==(this.V_||this.CU||v.start||v.startSeconds)&&this.G0("lss",{css:this.startSeconds,pcss:this.V_,iss:this.CU,ps:v.start||void 0,pss:v.startSeconds||void 0}):this.pj=this.startSeconds=bK(this.startSeconds,this.V_||this.CU||v.start||v.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var kJ$=v.live_utc_start;if(kJ$!=null)this.liveUtcStartSeconds=Number(kJ$);else{var DWc=this.startSeconds;DWc&&isFinite(DWc)&&DWc>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&& this.liveUtcStartSeconds>0)){var Uq3=v.utc_start_millis;Uq3&&(this.liveUtcStartSeconds=Number(Uq3)*.001)}var cC7=v.stream_time_start_millis;cC7&&(this.N2=Number(cC7)*.001);var He1=this.CU||v.start;(this.R1?He1==null||Number(v.resume)===1:He1==void 0||v.resume=="1")||this.isLivePlayback||(this.clipStart=bK(this.clipStart,He1));var uIw=v.url_encoded_third_party_media;uIw&&(this.CT=dG(uIw));var Nac=v.ypc_offer_button_formatted_text;if(Nac){var CW3=JSON.parse(Nac);this.gL=CW3!=null?CW3:null;this.Y6=Nac}var yCw= v.ypc_offer_button_text;yCw&&(this.rk=yCw);var a8Q=v.ypc_offer_description;a8Q&&(this.I9=a8Q);var xq3=v.ypc_offer_headline;xq3&&(this.wk=xq3);var pXF=v.ypc_full_video_message;pXF&&(this.o9=pXF);var Tqm=v.ypc_offer_id;Tqm&&(this.Cy=Tqm);var l8n=v.ypc_buy_url;l8n&&(this.GA=l8n);var FEm=v.ypc_item_thumbnail;FEm&&(this.Mh=FEm);var hiF=v.ypc_item_title;hiF&&(this.q$=hiF);var Ri1=v.ypc_item_url;Ri1&&(this.L4=Ri1);var ein=v.ypc_vid;ein&&(this.Nw=ein);v.ypc_overlay_timeout&&(this.Q8=Number(v.ypc_overlay_timeout)); var Eml=v.ypc_trailer_player_vars;Eml&&(this.Zr=Se(Eml));var Q3J=v.ypc_original_itct;Q3J&&(this.XBg=Q3J);this.HS=oU(this.HS,v.ucid);this.Be=v.storyboard_spec||null;this.PK=v.live_storyboard_spec||null;this.jx=v.iv_endscreen_url||null;this.l4=dV(this.l4,v.ypc_license_checker_module);this.Iv=dV(this.Iv,v.ypc_module);this.eA=dV(this.eA,v.ypc_clickwrap_module);this.Iv&&this.Ug.push("ypc");this.eA&&this.Ug.push("ypc_clickwrap");this.l$={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};Rr3(this,v);var LEF=v.cotn;LEF&&(this.cotn=LEF);if(tqn(this))dX(this)&&(this.isLivePlayback&&this.yC&&(this.D9= !0),this.XO&&(this.ZI=!0));else if(DcJ(this))this.D9=!0;else{var BqF,Z$3,XXw=((BqF=this.playerResponse)==null?void 0:(Z$3=BqF.streamingData)==null?void 0:Z$3.adaptiveFormats)||[];if(XXw.length>0)var ur=mcF(this,XXw);else{var wXg=this.adaptiveFormats;if(wXg&&!dX(this)){this.Qx.Z.G&&(RW=!0);var Sc=sl(wXg),vZg=this.LP,I8d=this.lengthSeconds,HYL=this.isLivePlayback,CG=this.XH,d$=this.Qx,NzS=g2d(Sc);if(HYL||CG){var qD7=d$==null?void 0:d$.experiments,n9=new fT("",qD7,!0);n9.FL=!0;n9.isManifestless=!0;n9.U= !CG;n9.isLive=!CG;n9.XH=CG;for(var nmw=g.y(Sc),Orl=nmw.next();!Orl.done;Orl=nmw.next()){var r$=Orl.value,JCw=cY(r$,vZg),Ua=uP(r$.url,r$.sp,r$.s),KEw=Ua.get("id");KEw&&KEw.includes("%7E")&&(n9.j=!0);var PWJ=void 0,vcN=(PWJ=qD7)==null?void 0:PWJ.T0("html5_max_known_end_time_rebase"),OSJ=Number(r$.target_duration_sec)||5,Yqv=Number(r$.max_dvr_duration_sec)||14400,GJ$=Number(Ua.get("mindsq")||Ua.get("min_sq")||"0"),i$7=Number(Ua.get("maxdsq")||Ua.get("max_sq")||"0")||Infinity;n9.Zq=n9.Zq||GJ$;n9.ZT=n9.ZT|| i$7;var SqN=!rb(JCw.mimeType);Ua&&M9(n9,new H7(Ua,JCw,{nW:OSJ,Xk:SqN,xi:Yqv,Zq:GJ$,ZT:i$7,ES:300,XH:CG,G5:vcN}))}var mqQ=n9}else{if(NzS==="FORMAT_STREAM_TYPE_OTF"){var h0=I8d;h0=h0===void 0?0:h0;var bc=new fT("",d$==null?void 0:d$.experiments,!1);bc.duration=h0||0;for(var t8w=g.y(Sc),YcJ=t8w.next();!YcJ.done;YcJ=t8w.next()){var o9=YcJ.value,Scn=cY(o9,vZg,bc.duration),d3d=uP(o9.url,o9.sp,o9.s);if(d3d)if(Scn.streamType==="FORMAT_STREAM_TYPE_OTF")M9(bc,new NY(d3d,Scn,"sq/0"));else{var dSC=hV(o9.init), ry8=hV(o9.index);M9(bc,new z6(d3d,Scn,dSC,ry8))}}bc.isOtf=!0;var Dqi=bc}else{var Rk=I8d;Rk=Rk===void 0?0:Rk;var eT=new fT("",d$==null?void 0:d$.experiments,!1);eT.duration=Rk||0;for(var H$w=g.y(Sc),rQ1=H$w.next();!rQ1.done;rQ1=H$w.next()){var jc=rQ1.value,bSN=cY(jc,vZg,eT.duration),ocU=hV(jc.init),jZv=hV(jc.index),Nqi=uP(jc.url,jc.sp,jc.s);Nqi&&M9(eT,new z6(Nqi,bSN,ocU,jZv))}Dqi=eT}mqQ=Dqi}var vaQ=mqQ;if(Sc.length>0){var O2n=Sc[0];if(this.D().playerStyle==="hangouts-meet"&&O2n.url){var WnJ=g.rG(O2n.url); this.cA=this.cA||Number(WnJ.expire)}}var zaY=this.isLivePlayback&&!this.XH&&!this.tK&&!this.isPremiere;this.V("html5_live_head_playable")&&(!rX(this)&&zaY&&this.G0("missingLiveHeadPlayable",{}),this.Qx.tK==="yt"&&(vaQ.AK=!0));ur=vaQ}else ur=null;this.G0("pafmts",{isManifestFilled:!!ur})}if(ur){jz(this,ur);var Yid=!0}else Yid=!1;Yid?this.enableServerStitchedDai=this.enableServerStitchedDai&&b8(this):this.yC&&(this.Qx.tK==="yt"&&this.FL()&&this.V("drm_manifestless_unplugged")&&this.V("html5_deprecate_manifestful_fallback")? this.G0("deprecateMflFallback",{}):this.D9=!0)}var brg=v.adpings;brg&&(this.V8=brg?Se(brg):null);var Siw=v.feature;Siw&&(this.kq=Siw);var djF=v.referrer;djF&&(this.referrer=djF);this.clientScreenNonce=oU(this.clientScreenNonce,v.csn);this.Ns=bK(this.Ns,v.root_ve_type);this.wL=bK(this.wL,v.kids_age_up_mode);this.R1||v.kids_app_info==void 0||(this.kidsAppInfo=v.kids_app_info);this.R1&&v.kids_app_info!=null&&(this.kidsAppInfo=v.kids_app_info);this.j9=dV(this.j9,v.upg_content_filter_mode);this.unpluggedFilterModeType= bK(this.unpluggedFilterModeType,v.unplugged_filter_mode_type);var r$l=v.unplugged_location_info;r$l&&(this.nP=r$l);var b23=v.unplugged_partner_opt_out;b23&&(this.qv=oU("",b23));this.kt=dV(this.kt,v.disable_watch_next);this.rL=oU(this.rL,v.internal_ip_override);this.D2=!!v.is_yto_interstitial;(this.interstitials.length||this.D2)&&this.Ug.push("yto");var oan=v.EY;oan&&(this.EY=oan);this.j=oU(this.j,v.csi_timer);v.watchUrl&&(this.watchUrl=v.watchUrl);var cG=v.watch_endpoint;this.V("html5_attach_watch_endpoint_ustreamer_config")&& cG&&Gog(this,cG);if(cG==null?0:cG.ustreamerConfig)this.aX=Sj(cG.ustreamerConfig);var jH3,Wln,zp3=cG==null?void 0:(jH3=cG.loggingContext)==null?void 0:(Wln=jH3.qoeLoggingContext)==null?void 0:Wln.serializedContextData;zp3&&(this.Kn1=zp3);g.aP(this.Qx)&&this.Qx.NE&&(this.embedsRct=oU(this.embedsRct,v.rct),this.embedsRctn=oU(this.embedsRctn,v.rctn));this.e6=this.e6||!!v.pause_at_start;v.default_active_source_video_id&&(this.defaultActiveSourceVideoId=v.default_active_source_video_id)}; g.u.D=function(){return this.Qx}; g.u.V=function(v){return this.Qx.V(v)}; g.u.Ol=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.u.hasSupportedAudio51Tracks=function(){var v;return!((v=this.q8)==null||!v.yx)}; g.u.getUserAudio51Preference=function(){var v=1;Ga(this.Qx)&&this.V("html5_ytv_surround_toggle_default_off")?v=0:g.J7(this.Qx)&&this.isLivePlayback&&this.aS()&&(v=0);var O;return(O=g.Ly("yt-player-audio51"))!=null?O:v}; g.u.Nx=function(){this.vW()||(this.Y.U||this.Y.unsubscribe("refresh",this.Nx,this),this.Wo(-1))}; g.u.Wo=function(v){if(!this.isLivePlayback||!this.Z||this.Z.flavor!=="fairplay"){var O=V_Q(this.Y,this.RU);if(O.length>0){for(var Y=g.y(O),S=Y.next();!S.done;S=Y.next())S=S.value,S.startSecs=Math.max(S.startSecs,this.jO()),this.V("html5_cuepoint_identifier_logging")&&S.event==="start"&&this.G0("cuepoint",{pubCue:S.identifier,segNum:v});this.publish("cuepointupdated",O,v);this.RU+=O.length;if(b8(this)&&this.Qx.XL())for(O=g.y(O),Y=O.next();!Y.done;Y=O.next())Y=Y.value,this.G0("cuepoint",{segNum:v,event:Y.event, startSecs:Y.startSecs,id:Y.identifier.slice(-16)}),Y.event==="start"&&(Y=Y.startSecs,this.lF.start=this.PT,this.lF.end=Y+3)}}}; g.u.OR=function(){this.vW()||(this.loading=!1,this.publish("dataloaded"))}; g.u.aS=function(){return this.Wb!==void 0?this.Wb:this.Wb=!!this.LP||!!this.Y&&$$(this.Y)}; g.u.NR=function(v){var O=this;if(this.vW())return ee();this.w2=this.Eg=this.G=null;qJ(this,"html5_high_res_logging_always")&&(this.Qx.RD=!0);return Oil(this,v).then(void 0,function(){return SQg(O,v)}).then(void 0,function(){return drg(O)}).then(void 0,function(){return bi1(O)})}; g.u.qc=function(v){this.G=v;YQd(this,this.G.getAvailableAudioTracks());if(this.G){v=g.y(this.G.videoInfos);for(var O=v.next();!O.done;O=v.next()){O=O.value;var Y=O.containerType;Y!==0&&(this.PO[Y]=O.id)}}v=this.getAvailableAudioTracks();v=v.concat(this.H7);for(O=0;O0?this.G.getAvailableAudioTracks():this.GF||[]:[]}; g.u.getAudioTrack=function(){var v=this;if(this.B&&!Oo(this.B)){var O=g.gS(this.getAvailableAudioTracks(),function(d){return d.id===v.B.id}),Y; if(!O&&((Y=this.B.Dg)==null?0:Y.id)){var S=this.B.Dg.id;O=g.gS(this.getAvailableAudioTracks(),function(d){return d.Dg.id===S}); this.G0("nat",{id:this.B.id,track:!!O})}return O||this.H7}if(this.GF){if(!this.Pa)for(O=g.y(this.GF),Y=O.next();!Y.done;Y=O.next())if(Y=Y.value,Y.Dg.getIsDefault()){this.Pa=Y;break}return this.Pa||this.H7}return this.H7}; g.u.getPlayerResponse=function(){return this.playerResponse}; g.u.getWatchNextResponse=function(){return this.N3}; g.u.getHeartbeatResponse=function(){return this.S1}; g.u.qY=function(){return this.watchUrl?this.watchUrl:this.Qx.getVideoUrl(this.videoId)}; g.u.F6=function(){return!!this.Y&&(rmg(this.Y)||ba7(this.Y)||o2d(this.Y))}; g.u.getEmbeddedPlayerResponse=function(){return this.RS}; g.u.wy=function(){return(this.eventLabel||this.Qx.N3)==="shortspage"}; g.u.isAd=function(){return!!this.adFormat}; g.u.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.u.lM=function(){var v,O,Y;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((v=this.playerResponse)==null?0:(O=v.playerConfig)==null?0:(Y=O.daiConfig)==null?0:Y.ssaEnabledPlayback)}; g.u.vN=function(){return lkQ(this)?this.Nn:this.l4||this.rf}; g.u.Df=function(){return this.Iv||this.rf}; g.u.HQ=function(){return qJ(this,"html5_samsung_vp9_live")}; g.u.G0=function(v,O,Y){this.publish("ctmp",v,O,Y)}; g.u.Li=function(v,O,Y){this.publish("ctmpstr",v,O,Y)}; g.u.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.u.getGetAdBreakContext=function(v,O){v=v===void 0?NaN:v;O=O===void 0?NaN:O;var Y={isSabr:Ol(this)},S,d=(S=this.getHeartbeatResponse())==null?void 0:S.adBreakHeartbeatParams;d&&(Y.adBreakHeartbeatParams=d);if(this.V("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.Y&&!isNaN(v)&&!isNaN(O)){O=v-O;for(var r in this.Y.Y)if(S=this.Y.Y[r],S.info.EM()||S.info.hM())if(S=S.index,S.isLoaded()){r=S.cE(O);S=S.Hq(r)+O-S.getStartTime(r);this.G0("gabc",{t:v.toFixed(3),mt:O.toFixed(3),sg:r,igt:S.toFixed(3)}); Y.livePlaybackPosition={utcTimeMillis:""+(S*1E3).toFixed(0)};break}}return Y}; g.u.isEmbedsShortsMode=function(v,O){if(!g.aP(this.Qx)||(this.Qx.JK||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||O)return!1;var Y,S;return!!(((Y=this.embeddedPlayerConfig)==null?0:(S=Y.embeddedPlayerFlags)==null?0:S.isShortsExperienceEligible)&&v.width<=v.height)}; g.u.cW=function(){g.MU.prototype.cW.call(this);this.V8=null;delete this.Wg;delete this.accountLinkingConfig;delete this.Y;this.G=this.S1=this.playerResponse=this.N3=null;this.RD=this.adaptiveFormats="";delete this.botguardData;this.xg=this.suggestions=this.Ap=null;this.sabrContextUpdates.clear()};var BMm={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},Zil={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},QL3={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},RLn={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"},EOw={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},eLw={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"},L57={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.C(mj,g.X);g.u=mj.prototype;g.u.handleExternalCall=function(v,O,Y){var S=this.state.L[v],d=this.state.X[v],r=S;if(d)if(Y&&Nt(Y,XEw))r=d;else if(!S)throw Error('API call from an untrusted origin: "'+Y+'"');this.logApiCall(v,Y);if(r){Y=!1;S=g.y(O);for(d=S.next();!d.done;d=S.next())if(String(d.value).includes("javascript:")){Y=!0;break}Y&&g.Br(Error('Dangerous call to "'+v+'" with ['+O+"]."));return r.apply(this,O)}throw Error('Unknown API method: "'+v+'".');}; g.u.logApiCall=function(v,O,Y){var S=this.app.D();S.Pa&&!this.state.j.has(v)&&(this.state.j.add(v),g.z2("webPlayerApiCalled",{callerUrl:S.loaderUrl,methodName:v,origin:O||void 0,playerStyle:S.playerStyle||void 0,embeddedPlayerMode:S.JK,errorCode:Y}))}; g.u.publish=function(v){var O=g.Bm.apply(1,arguments);this.state.G.publish.apply(this.state.G,[v].concat(g.F(O)));if(v==="videodatachange"||v==="resize"||v==="cardstatechange")this.state.U.publish.apply(this.state.U,[v].concat(g.F(O))),this.state.B.publish.apply(this.state.B,[v].concat(g.F(O)))}; g.u.PW=function(v){var O=g.Bm.apply(1,arguments);this.state.G.publish.apply(this.state.G,[v].concat(g.F(O)));this.state.U.publish.apply(this.state.U,[v].concat(g.F(O)))}; g.u.zf=function(v){var O=g.Bm.apply(1,arguments);this.state.G.publish.apply(this.state.G,[v].concat(g.F(O)));this.state.U.publish.apply(this.state.U,[v].concat(g.F(O)));this.state.B.publish.apply(this.state.B,[v].concat(g.F(O)))}; g.u.oD=function(v){var O=g.Bm.apply(1,arguments);this.state.G.publish.apply(this.state.G,[v].concat(g.F(O)));this.state.U.publish.apply(this.state.U,[v].concat(g.F(O)));this.state.B.publish.apply(this.state.B,[v].concat(g.F(O)));this.state.Z.publish.apply(this.state.Z,[v].concat(g.F(O)))}; g.u.V=function(v){return this.app.D().V(v)}; g.u.cW=function(){if(this.state.element){var v=this.state.element,O;for(O in this.state.Y)this.state.Y.hasOwnProperty(O)&&(v[O]=null);this.state.element=null}g.X.prototype.cW.call(this)};g.C(rB,g.lE);rB.prototype.publish=function(v){var O=g.Bm.apply(1,arguments);if(this.Z.has(v))return this.Z.get(v).push(O),!0;var Y=!1;try{for(O=[O],this.Z.set(v,O);O.length;)Y=g.lE.prototype.publish.call.apply(g.lE.prototype.publish,[this,v].concat(g.F(O.shift())))}finally{this.Z.delete(v)}return Y};g.C(bb,g.X);bb.prototype.cW=function(){this.Z.dispose();this.B.dispose();this.U.dispose();this.G.dispose();this.j=this.Y=this.X=this.L=this.C=void 0};var K51=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.C(jE,mj);g.u=jE.prototype;g.u.getApiInterface=function(){return Array.from(this.state.C)}; g.u.FA=function(v,O){this.state.Z.subscribe(v,O)}; g.u.rmx=function(v,O){this.state.Z.unsubscribe(v,O)}; g.u.getPlayerState=function(v){return mpd(this.app,v)}; g.u.Xz=function(){return mpd(this.app)}; g.u.Y_8=function(v,O,Y){sT(this)&&(Q3(this.app,!0,1),ZP(this.app,v,O,Y,1))}; g.u.getCurrentTime=function(v,O,Y){var S=this.getPlayerState(v);if(this.app.getAppState()===2&&S===5){var d;return((d=this.app.getVideoData())==null?void 0:d.startSeconds)||0}return this.V("web_player_max_seekable_on_ended")&&S===0?Td(this.app,v):v?this.app.getCurrentTime(v,O,Y):this.app.getCurrentTime(v)}; g.u.CZ=function(){return this.app.getCurrentTime(1)}; g.u.kG=function(){var v=this.app.Hq(1);return isNaN(v)?this.getCurrentTime(1):v}; g.u.gO=function(){return this.app.getDuration(1)}; g.u.Rw=function(v,O){v=g.xr(Math.floor(v),0,100);isFinite(v)&&xP(this.app,{volume:v,muted:this.isMuted()},O)}; g.u.NT1=function(v){this.Rw(v,!1)}; g.u.jf=function(v){xP(this.app,{muted:!0,volume:this.getVolume()},v)}; g.u.luu=function(){this.jf(!1)}; g.u.Bz=function(v){zW(this.app)&&!this.V("embeds_enable_emc3ds_muted_autoplay")||xP(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},v)}; g.u.Uo3=function(){zW(this.app)&&this.V("embeds_enable_emc3ds_muted_autoplay")||this.Bz(!1)}; g.u.getPlayerMode=function(){var v={};this.app.getVideoData().KE&&(v.pfp={enableIma:g.Jz(this.app.getVideoData())&&this.app.pP().allowImaMonetization,autoplay:RO(this.app.pP()),mutedAutoplay:this.app.pP().mutedAutoplay});return v}; g.u.mD=function(){var v=this.app.getPresentingPlayerType();if(v===2&&!this.app.b6()){var O=a2(this.app.QC());if(!(Dbd(O)||this.app.D().V("embeds_emc3ds_dompaused_fix")&&g.aP(this.app.D())&&g.G(this.app.uc().getPlayerState(),1024))||HEd(O))return}(O=this.app.o4().hF)?O.playVideo():this.app.playVideo(v)}; g.u.U8W=function(){Q3(this.app,!0,1);this.mD()}; g.u.pauseVideo=function(v){var O=this.app.getPresentingPlayerType();if(O!==2||this.app.b6()||Dbd(a2(this.app.QC()))){var Y=this.app.o4().hF;Y?Y.pauseVideo():this.app.pauseVideo(O,v)}}; g.u.oN3=function(){var v=this.app,O=!1;v.Yg.R1&&(v.r8.publish("pageTransition"),O=!0);v.stopVideo(O)}; g.u.clearVideo=function(){}; g.u.getAvailablePlaybackRates=function(){var v=this.app.D();return v.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(v.B?v.ancestorOrigins[0]:window.location.origin)||v.yP?VRv:v.supportsVarispeedExtendedFeatures?Ac0:v.V("web_remix_allow_up_to_3x_playback_rate")&&g.qB(v)?fCJ:pW:[1]}; g.u.getPlaybackQuality=function(v){return(v=this.app.Am(v))?v.getPlaybackQuality():"unknown"}; g.u.Hos=function(){}; g.u.getAvailableQualityLevels=function(v){return(v=this.app.Am(v))?(v=g.DQ(v.KU(),function(O){return O.quality}),v.length&&(v[0]==="auto"&&v.shift(),v=v.concat(["auto"])),v):[]}; g.u.dO=function(){return this.getAvailableQualityLevels(1)}; g.u.wO=function(){return this.tX()}; g.u.RL=function(){return 1}; g.u.getVideoLoadedFraction=function(v){return this.app.getVideoLoadedFraction(v)}; g.u.tX=function(){return this.getVideoLoadedFraction()}; g.u.xG=function(){return 0}; g.u.getSize=function(){var v=this.app.j4().getPlayerSize();return{width:v.width,height:v.height}}; g.u.setSize=function(){this.app.j4().resize()}; g.u.loadVideoById=function(v,O,Y,S){if(!v)return!1;v=oh(v,O,Y);return this.app.loadVideoByPlayerVars(v,S)}; g.u.cKx=function(v,O,Y){v=this.loadVideoById(v,O,Y,1);Q3(this.app,v,1)}; g.u.cueVideoById=function(v,O,Y,S){v=oh(v,O,Y);this.app.cueVideoByPlayerVars(v,S)}; g.u.QK=function(v,O,Y){this.cueVideoById(v,O,Y,1)}; g.u.loadVideoByUrl=function(v,O,Y,S){v=JjQ(v,O,Y);return this.app.loadVideoByPlayerVars(v,S)}; g.u.Qds=function(v,O,Y){v=this.loadVideoByUrl(v,O,Y,1);Q3(this.app,v,1)}; g.u.cueVideoByUrl=function(v,O,Y,S){v=JjQ(v,O,Y);this.app.cueVideoByPlayerVars(v,S)}; g.u.mz=function(v,O,Y){this.cueVideoByUrl(v,O,Y,1)}; g.u.aL=function(){var v=this.app.D();if(v.Ug)return"";var O=this.app.pP(),Y=void 0;O.isLivePlayback||(Y=Math.floor(this.app.getCurrentTime(1)));return v.getVideoUrl(O.videoId,this.getPlaylistId()||void 0,Y)}; g.u.hO=function(){return this.app.getDebugText()}; g.u.getVideoEmbedCode=function(){var v=this.app.D();if(v.Ug)return"";var O=this.app.pP();return v.getVideoEmbedCode(O.isPrivate?"":O.title,this.app.pP().videoId,this.app.j4().getPlayerSize(),this.getPlaylistId()||void 0)}; g.u.g3=function(v,O,Y){return Spd(this.app,v,O,Y)}; g.u.removeCueRange=function(v){return rW7(this.app,v)}; g.u.loadPlaylist=function(v,O,Y,S){this.app.loadPlaylist(v,O,Y,S)}; g.u.M4s=function(v,O,Y,S){this.loadPlaylist(v,O,Y,S);Q3(this.app,!0,1)}; g.u.cuePlaylist=function(v,O,Y,S){this.app.cuePlaylist(v,O,Y,S)}; g.u.nextVideo=function(v,O){this.app.nextVideo(v,O)}; g.u.wWx=function(){this.nextVideo();Q3(this.app,!0,1)}; g.u.previousVideo=function(v){this.app.previousVideo(v)}; g.u.Jmc=function(){this.previousVideo();Q3(this.app,!0,1)}; g.u.playVideoAt=function(v){this.app.playVideoAt(v)}; g.u.tTg=function(v){this.playVideoAt(v);Q3(this.app,!0,1)}; g.u.setShuffle=function(v){var O=this.app.getPlaylist();O&&O.setShuffle(v)}; g.u.setLoop=function(v){var O=this.app.getPlaylist();O&&(O.loop=v)}; g.u.oL=function(){var v=this.app.getPlaylist();if(!v)return null;for(var O=[],Y=0;Y=400)if(v=this.pP(),this.N.D().V("client_respect_autoplay_switch_button_renderer"))v=!!v.autoplaySwitchButtonRenderer;else{var O,Y,S,d;v=!!((O=v.getWatchNextResponse())==null?0:(Y=O.contents)==null?0:(S=Y.twoColumnWatchNextResults)==null?0:(d=S.autoplay)==null?0:d.autoplay)!==!1}if(v)this.Y||(this.Y=!0,this.t9(this.Y),this.N.D().V("web_player_autonav_toggle_always_listen")||AZm(this), O=this.pP(),this.jn(O.autonavState),this.N.logVisibility(this.element,this.Y));else if(this.Y=!1,this.t9(this.Y),!this.N.D().V("web_player_autonav_toggle_always_listen"))for(this.N.D().V("web_player_autonav_toggle_always_listen"),O=g.y(this.U),Y=O.next();!Y.done;Y=O.next())this.g2(Y.value)}; g.u.jn=function(v){$6w(this)?this.isChecked=v!==1:((v=v!==1)||(g.qL(),v=g.uF("web_autonav_allow_off_by_default")&&!g.ny(0,141)&&g.Gq("AUTONAV_OFF_BY_DEFAULT")?!1:!g.ny(0,140)),this.isChecked=v);fWg(this)}; g.u.onClick=function(){this.isChecked=!this.isChecked;this.N.Jr(this.isChecked?2:1);fWg(this);if($6w(this)){var v=this.pP().autoplaySwitchButtonRenderer;this.isChecked&&(v==null?0:v.onEnabledCommand)?this.N.PW("innertubeCommand",v.onEnabledCommand):!this.isChecked&&(v==null?0:v.onDisabledCommand)&&this.N.PW("innertubeCommand",v.onDisabledCommand)}this.N.logClick(this.element)}; g.u.getValue=function(){return this.isChecked}; g.u.pP=function(){return this.N.getVideoData(1)};g.C(kmd,J4);g.C(DE,g.wB);DE.prototype.onClick=function(){this.enabled&&(H2(this,!this.checked),this.publish("select",this.checked))}; DE.prototype.getValue=function(){return this.checked}; DE.prototype.setEnabled=function(v){(this.enabled=v)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var cZ7=["en-CA","en","es-MX","fr-CA"];g.C(rp,DE);rp.prototype.q3=function(v){v?this.Y||(this.HT.L_(this),this.Y=!0):this.Y&&(this.HT.u6(this),this.Y=!1);this.Y&&H2(this,etQ())}; rp.prototype.B=function(){g.WI(this.element,"ytp-menuitem-highlight-transition-enabled")}; rp.prototype.G=function(v){var O=etQ();v!==O&&(O=g.qL(),Ky(190,v),Ky(192,!0),O.save(),this.N.PW("cinematicSettingsToggleChange",v))}; rp.prototype.cW=function(){this.Y&&this.HT.u6(this);DE.prototype.cW.call(this)};g.C(by,J4);by.prototype.updateCinematicSettings=function(v){this.Y=v;var O;(O=this.menuItem)==null||O.q3(v);this.api.publish("onCinematicSettingsVisibilityChange",v)};g.C(aWF,J4);g.C(og,J4);og.prototype.setCreatorEndscreenVisibility=function(v){var O;(O=ln(this.api.QC()))==null||O.t9(v)}; og.prototype.Y=function(v){function O(S){S==="creatorendscreen"&&(S=ln(Y.api.QC()))&&S.cMu(Y.hideButton)} var Y=this;this.hideButton=v;this.events.S(this.api,"modulecreated",O);O("creatorendscreen")};g.C(jI,DE);jI.prototype.B=function(v){this.G(v?1:0)}; jI.prototype.U=function(){var v=this.hasDrcAudioTrack(),O=this.Y()===1&&v;H2(this,O);this.setEnabled(v)}; jI.prototype.cW=function(){this.HT.u6(this);DE.prototype.cW.call(this)};g.C(WC,J4);WC.prototype.getDrcUserPreference=function(){return this.Y}; WC.prototype.setDrcUserPreference=function(v){g.QD("yt-player-drc-pref",v,31536E3);v!==this.Y&&(this.Y=v,this.updateEnvironmentData(),this.U()&&this.api.Bb())}; WC.prototype.updateEnvironmentData=function(){this.api.D().uO=this.Y===1}; WC.prototype.U=function(){var v,O,Y=(v=this.api.getVideoData())==null?void 0:(O=v.G)==null?void 0:O.Y;if(!Y)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.V("mta_drc_mutual_exclusion_removal")){var S,d,r=(S=this.api.ly())==null?void 0:(d=S.Dg)==null?void 0:d.id;return H4(Y,function(b){var z;return b.audio.Y&&((z=b.Dg)==null?void 0:z.id)===r})}return H4(Y,function(b){var z; return((z=b.audio)==null?void 0:z.Y)===!0})};g.C(zC,J4);zC.prototype.onVideoDataChange=function(){var v=this,O=this.api.getVideoData();this.api.oF("embargo",1);var Y=O==null?void 0:O.o6.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(Y==null?0:Y.length)?pcF(this,Y.filter(function(S){return x6E(v,S)})):(O==null?0:O.cueRanges)&&pcF(this,O.cueRanges.filter(function(S){return x6E(v,S)}))}; zC.prototype.U=function(v){return v.embargo!==void 0}; zC.prototype.cW=function(){J4.prototype.cW.call(this);this.Y={}};g.C(gp,J4); gp.prototype.addEmbedsConversionTrackingParams=function(v){var O=this.api.D(),Y=O.widgetReferrer,S=O.yC,d=this.Y,r="",b=O.getWebPlayerContextConfig();b&&(r=b.embedsIframeOriginParam||"");Y.length>0&&(v.embeds_widget_referrer=Y);S.length>0&&(v.embeds_referring_euri=S);O.B&&r.length>0&&(v.embeds_referring_origin=r);b&&b.embedsFeature&&(v.feature=b.embedsFeature);d.length>0&&(O.V("embeds_web_enable_lite_experiment_control_arm_logging")?d.unshift(28572):g.s9(g.EU(O))&&d.unshift(159628),O=d.join(","),O= g.Pf()?O:g.ov(O,4),v.source_ve_path=O);this.Y.length=0};g.C(TQg,J4);g.C(lWn,J4);g.C(Mi,g.X);Mi.prototype.cW=function(){g.X.prototype.cW.call(this);this.Y=null;this.U&&this.U.disconnect()};g.C(h4d,J4);g.C(V4,g.K);V4.prototype.show=function(){g.K.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; V4.prototype.stopTimer=function(){this.Y&&(this.Y.dispose(),this.Y=null)}; V4.prototype.onVideoDataChange=function(v){var O,Y,S=(O=this.api.getVideoData())==null?void 0:(Y=O.getPlayerResponse())==null?void 0:Y.playabilityStatus;S&&(O=R4$(S),g.G(this.api.getPlayerStateObject(),128)||v==="dataloaderror"||!O?(this.U=0,this.stopTimer(),this.hide()):(v=(O.remainingTimeSecs||0)*1E3,v>0&&(this.show(),this.updateValue("label",xi(O.label)),Eim(this,v))))}; V4.prototype.cW=function(){this.stopTimer();g.K.prototype.cW.call(this)};g.C(Qy1,J4);g.C(Ag,g.K);Ag.prototype.onClick=function(){this.r8.logClick(this.element);this.r8.PW("onFullerscreenEduClicked")}; Ag.prototype.q3=function(){this.r8.isFullscreen()?this.Y?this.fade.hide():this.fade.show():this.hide();this.r8.logVisibility(this.element,this.r8.isFullscreen()&&!this.Y)};g.C(fX,J4);fX.prototype.updateFullerscreenEduButtonSubtleModeState=function(v){var O;(O=this.Y)!=null&&(g.gr(O.element,"ytp-fullerscreen-edu-button-subtle",v),v&&!O.U&&(O.element.setAttribute("title","Scroll for details"),$e(O.r8,O.element,O),O.U=!0))}; fX.prototype.updateFullerscreenEduButtonVisibility=function(v){var O;(O=this.Y)!=null&&(O.Y=v,O.q3())};g.C(L2g,g.K);g.C(Xcg,J4);g.C($J,J4);$J.prototype.getSphericalProperties=function(){var v=g.xe(this.api.QC());return v?v.getSphericalProperties():{}}; $J.prototype.setSphericalProperties=function(v){if(v){var O=g.xe(this.api.QC());O&&O.setSphericalProperties(v,!0)}};g.C(kJ,J4);g.u=kJ.prototype;g.u.createClientVe=function(v,O,Y,S){this.api.createClientVe(v,O,Y,S===void 0?!1:S)}; g.u.createServerVe=function(v,O,Y){this.api.createServerVe(v,O,Y===void 0?!1:Y)}; g.u.setTrackingParams=function(v,O){this.api.setTrackingParams(v,O)}; g.u.logClick=function(v,O){this.api.logClick(v,O)}; g.u.logVisibility=function(v,O,Y){this.api.logVisibility(v,O,Y)}; g.u.hasVe=function(v){return this.api.hasVe(v)}; g.u.destroyVe=function(v){this.api.destroyVe(v)};var IWJ=!1;cC.prototype.setPlaybackRate=function(v){this.playbackRate=Math.max(1,v)}; cC.prototype.getPlaybackRate=function(){return this.playbackRate};xJ.prototype.bD=function(v){var O=g.Yz(v.info.Y.info,this.WW.FL),Y=v.info.Vx+this.B,S=v.info.startTime*1E3;if(this.policy.Eg)try{S=this.policy.Eg?g.de(v)*1E3:v.info.startTime*1E3}catch(b){Math.random()>.99&&this.logger&&(S=xb(v.Y).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:v.info.d2(),encodedDataView:g.bV(S,4)})),S=v.info.startTime*1E3}var d=v.info.clipId,r=this.policy.Eg?g.JoJ(v)*1E3:v.info.duration*1E3;this.policy.Eg&&(S<0||r<0)&&(this.logger&&(this.logger({missingSegInfo:v.info.d2(), startTimeMs:S,durationMs:r}),this.policy.Zr||(S<0&&(S=v.info.startTime*1E3),r<0&&(r=v.info.duration*1E3))),this.policy.Zr&&(S<0&&(S=v.info.startTime*1E3),r<0&&(r=v.info.duration*1E3)));return{formatId:O,Vx:Y,startTimeMs:S,clipId:d,L8:r}}; xJ.prototype.Xt=function(v){this.timestampOffset=v};pX.prototype.seek=function(v,O){v!==this.Y&&(this.seekCount=0);this.Y=v;var Y=this.videoTrack.U,S=this.audioTrack.U,d=this.audioTrack.A$,r=rKF(this,this.videoTrack,v,this.videoTrack.A$,O);O=rKF(this,this.audioTrack,this.policy.II?v:r,d,O);v=Math.max(v,r,O);this.Z=!0;this.WW.isManifestless&&(v$w(this,this.videoTrack,Y),v$w(this,this.audioTrack,S));return v}; pX.prototype.isSeeking=function(){return this.Z}; pX.prototype.Zm=function(v){this.G=v}; var dDc=2/24;var jaJ=0;g.u=Zm.prototype;g.u.E9=function(){this.j=this.now();Oz3(this.C_,this.j);this.BT.E9()}; g.u.LL=function(v,O){var Y=this.policy.U?(0,g.J)():0;XZ(this,v,O);v-this.C<10&&this.U>0||this.l0(v,O);this.BT.LL(v,O);this.policy.U&&(v=(0,g.J)()-Y,this.Cj+=v,this.n1=Math.max(v,this.n1))}; g.u.l0=function(v,O){var Y=(v-this.C)/1E3,S=O-this.G;this.eG||(A7(this.C_,Y,S),this.zR(Y,S));this.C=v;this.G=O}; g.u.Ft=function(){this.JK&&WIg(this);this.BT.Ft()}; g.u.F2=function(v){this.JK||(this.JK=this.Z-this.rR+v,this.PT=this.Z,this.yC=this.L)}; g.u.s9=function(v,O){v=v===void 0?this.L:v;O=O===void 0?this.Z:O;this.U>0||(this.X=v,this.U=O,this.tK=this.isActive=!0)}; g.u.FD=function(){return this.kN||2}; g.u.X9=function(){}; g.u.qw=function(){var v,O={rn:this.requestNumber,rt:(this.L-this.Y).toFixed(),lb:this.Z,stall:(1E3*this.B).toFixed(),ht:(this.j-this.Y).toFixed(),elt:(this.X-this.Y).toFixed(),elb:this.U,d:(v=this.N3)==null?void 0:v.Gn()};this.url&&wci(O,this.url);this.policy.U&&(O.mph=this.n1.toFixed(),O.tph=this.Cj.toFixed());O.ulb=this.FO;O.ult=this.Ug;return O}; g.u.now=function(){return(0,g.J)()}; g.u.deactivate=function(){this.isActive&&(this.isActive=!1)};g.C(Ig,Zm);g.u=Ig.prototype;g.u.qw=function(){var v=Zm.prototype.qw.call(this);v.pb=this.XW;v.pt=(1E3*this.On).toFixed();v.se=this.R1;return v}; g.u.Qu=function(){var v=this.BT;this.Eg||(this.Eg=v.Qu?v.Qu():1);return this.Eg}; g.u.X6=function(){return this.yc?this.Qu()!==1:!1}; g.u.eY=function(v,O,Y){if(!this.Te){this.Te=!0;if(!this.eG){XZ(this,v,O);this.l0(v,O);var S=this.Qu();this.R1=Y;if(!this.eG)if(S===2){S=v-this.X0)||qi(this,S,O),this.U>0&&M_(this.C_,O,this.B));v=(v-this.Y)/ 1E3||.01;this.policy.X&&!(this.U>0)||gw(this.C_,v,this.G,sa3(this),this.DI)}this.deactivate()}}; g.u.xO=function(v,O,Y){Y&&(this.Eg=2);v<0&&this.kN&&(v=this.kN);O?this.f1+=v:this.XO+=v}; g.u.FD=function(){return this.XO||this.f1||Zm.prototype.FD.call(this)}; g.u.l0=function(v,O){var Y=(v-this.C)/1E3,S=O-this.G,d=this.Qu();this.isActive?d===1&&((S>0||this.policy.Z)&&(Y>.2||S<1024)?(this.B+=Y,S>0&&Y>.2&&qi(this,this.sy?Y:.05,S),this.Mj=!0):S>0&&(qi(this,Y,S),this.Mj=!0)):O&&O>=this.policy.Y&&this.s9(v,O);Zm.prototype.l0.call(this,v,O)}; g.u.Uv=function(v){if(!this.eG){XZ(this,v,this.Z);var O=(v-this.Y)/1E3;this.Qu()!==2&&this.U>0&&(this.B+=(v-this.C)/1E3,M_(this.C_,this.G,this.B));gw(this.C_,O,this.G,sa3(this),this.DI,!0);v=(v-this.C)/1E3;A7(this.C_,v,0);this.zR(v,0)}}; g.u.s9=function(v,O){v=v===void 0?this.L:v;O=O===void 0?this.Z:O;if(!(this.U>0)&&(Zm.prototype.s9.call(this,v,O),this.Qu()===1)){O=(this.j-this.Y)/1E3;var Y=(v-this.j)/1E3;this.yc&&nX(this,this.now());this.pj||this.eG||(this.kN&&(Y=Math.max(0,Y-this.kN)),v=this.C_,v.X.TG(1,O),v.N3.TG(1,Y))}}; g.u.Pp=function(){this.yc&&nX(this,this.now());return this.AK}; g.u.Gb=function(){var v;if(v=this.G>this.tV)v=(v=this.G)?v>=this.policy.Y:!1;return v}; g.u.S5=function(){return this.xg}; g.u.lJ=function(v){v=v===void 0?this.now():v;if(this.yc){nX(this,v);if(this.Eg?this.X6():this.HW!==this.g8){var O=this.g8;if(v0?Y+v:Y+Math.max(v,O)}; g.u.m_=function(){return this.now()-this.X}; g.u.qJ=function(){return(this.G-this.U)*1E3/this.m_()||0}; g.u.IG=function(){return this.X};Jg.prototype.feed=function(v){u2(this.Y,v);this.Vw()}; Jg.prototype.Vw=function(){if(this.B){if(!this.Y.getLength())return;var v=this.Y.split(this.G-this.U),O=v.I5;v=v.M6;if(!this.BT.F2(this.B,O,this.U,this.G))return;this.U+=O.getLength();this.Y=v;this.U===this.G&&(this.B=this.G=this.U=void 0)}for(;;){var Y=0;v=g.y(AKF(this.Y,Y));O=v.next().value;Y=v.next().value;Y=g.y(AKF(this.Y,Y));v=Y.next().value;Y=Y.next().value;if(O<0||v<0)break;if(!this.Y.Ej(Y,v)){if(!this.BT.F2||!this.Y.Ej(Y,1))break;Y=this.Y.split(Y).M6;this.BT.F2(O,Y,0,v)&&(this.B=O,this.U= Y.getLength(),this.G=v,this.Y=new c3([]));break}v=this.Y.split(Y).M6.split(v);Y=v.M6;this.BT.MD(O,v.I5);this.Y=Y}}; Jg.prototype.dispose=function(){this.Y=new c3};g.u=KX.prototype;g.u.NJ=function(){return 0}; g.u.C7=function(){return null}; g.u.DO=function(){return null}; g.u.J_=function(){return this.state>=1}; g.u.isComplete=function(){return this.state>=3}; g.u.Ey=function(){return this.state===5}; g.u.onStateChange=function(){}; g.u.uM=function(v){var O=this.state;this.state=v;this.onStateChange(O);this.callback&&this.callback(this,O)}; g.u.nu=function(v){v&&this.state=this.xhr.HEADERS_RECEIVED}; g.u.getResponseHeader=function(v){try{return this.xhr.getResponseHeader(v)}catch(O){return""}}; g.u.Ec=function(){return+this.getResponseHeader("content-length")}; g.u.Dr=function(){return this.U}; g.u.p4=function(){return this.status>=200&&this.status<300&&!!this.U}; g.u.KT=function(){return this.Y.getLength()>0}; g.u.VW=function(){var v=this.Y;this.Y=new c3;return v}; g.u.xd=function(){return this.Y}; g.u.abort=function(){this.vW=!0;this.xhr.abort()}; g.u.dB=function(){return!0}; g.u.UG=function(){return this.G}; g.u.Bj=function(){return""};iy.prototype.Y8=function(v,O){O=O===void 0?1:O;this.qk+=O;this.U+=v;v/=O;for(var Y=0;Y0)S+="."+GC[d].toFixed(0)+"_"+Y.Y[d].toFixed(0);else break;Y=S}Y&&(v[O]=Y)}this.Y=new $DJ;return v}; g.u.toString=function(){return""};g.u=CB7.prototype;g.u.isActive=function(){return!1}; g.u.GX=function(){}; g.u.hP=function(){}; g.u.HO=function(){}; g.u.qI=function(){}; g.u.SV=function(v,O){O()}; g.u.VS=function(){return{}}; g.u.toString=function(){return""};var oC,cvt,uRS,CSv,yvN,jA,Ue,tg,hcc;oC=new CB7;cvt=!!+t5("html5_enable_profiler");uRS=!!+t5("html5_onesie_enable_profiler");CSv=!!+t5("html5_offline_encryption_enable_profiler");yvN=!!+t5("html5_performance_impact_profiling_timer_ms");jA=cvt||uRS||CSv||yvN?new UDQ:oC;g.Rq=cvt?jA:oC;Ue=uRS?jA:oC;tg=CSv?jA:oC;hcc=yvN?jA:oC;g.u=xDm.prototype;g.u.getResponseHeader=function(v){return v==="content-type"?this.Y.get("type"):""}; g.u.abort=function(){}; g.u.t_=function(){return!0}; g.u.Ec=function(){return this.range.length}; g.u.Dr=function(){return this.loaded}; g.u.p4=function(){return!!this.loaded}; g.u.KT=function(){return!!this.U.getLength()}; g.u.VW=function(){var v=this.U;this.U=new c3;return v}; g.u.xd=function(){return this.U}; g.u.dB=function(){return!0}; g.u.UG=function(){return!!this.error}; g.u.Bj=function(){return this.error};g.u=TiQ.prototype;g.u.start=function(v){var O={credentials:"include",cache:"no-store"};Object.assign(O,this.L);this.B&&(O.signal=this.B.signal);v=new Request(v,O);fetch(v).then(this.j,this.onError).then(void 0,Wh)}; g.u.onDone=function(){this.vW()||this.BT.Ft()}; g.u.getResponseHeader=function(v){return this.responseHeaders?this.responseHeaders.get(v):null}; g.u.t_=function(){return!!this.responseHeaders}; g.u.Dr=function(){return this.U}; g.u.Ec=function(){return+this.getResponseHeader("content-length")}; g.u.p4=function(){return this.status>=200&&this.status<300&&!!this.U}; g.u.KT=function(){return!!this.Y.getLength()}; g.u.VW=function(){this.KT();var v=this.Y;this.Y=new c3;return v}; g.u.xd=function(){this.KT();return this.Y}; g.u.vW=function(){return this.Z}; g.u.abort=function(){this.G&&this.G.cancel().catch(function(){}); this.B&&this.B.abort();this.Z=!0}; g.u.dB=function(){return!0}; g.u.UG=function(){return this.C}; g.u.Bj=function(){return this.errorMessage};g.u=lvE.prototype;g.u.onDone=function(){if(!this.vW){this.status=this.xhr.status;try{this.response=this.xhr.response,this.U=this.response.byteLength}catch(v){}this.Y=!0;this.BT.Ft()}}; g.u.t0=function(){this.xhr.readyState===2&&this.BT.E9()}; g.u.wT=function(v){this.vW||(this.status=this.xhr.status,this.Y||(this.U=v.loaded),this.BT.LL((0,g.J)(),v.loaded))}; g.u.t_=function(){return this.xhr.readyState>=2}; g.u.getResponseHeader=function(v){try{return this.xhr.getResponseHeader(v)}catch(O){return g.Br(Error("Could not read XHR header "+v)),""}}; g.u.Ec=function(){return+this.getResponseHeader("content-length")}; g.u.Dr=function(){return this.U}; g.u.p4=function(){return this.status>=200&&this.status<300&&this.Y&&!!this.U}; g.u.KT=function(){return this.Y&&!!this.response&&!!this.response.byteLength}; g.u.VW=function(){this.KT();var v=this.response;this.response=void 0;return new c3([new Uint8Array(v)])}; g.u.xd=function(){this.KT();return new c3([new Uint8Array(this.response)])}; g.u.abort=function(){this.vW=!0;this.xhr.abort()}; g.u.dB=function(){return!1}; g.u.UG=function(){return!1}; g.u.Bj=function(){return""};g.C(HC,g.X);HC.prototype.UY=function(){if(!this.yr.length)return[];var v=this.yr;this.yr=[];this.G=g.zw(v).info;return v}; HC.prototype.un=function(){return this.yr}; HC.prototype.cW=function(){g.X.prototype.cW.call(this);this.Y=null;this.yr.length=0;this.Id.length=0;this.G=null};g.C(vX,g.X);g.u=vX.prototype; g.u.wYW=function(){if(!this.vW()){var v=(0,g.J)(),O=!1;if(this.policy.dW){v=v-(this.timing.U>0?this.timing.X:this.timing.Y)-this.timing.FD()*1E3;var Y=c7(OD(this),!1);v>=2E3*Y?O=!0:v>=this.policy.Q8*Y&&(this.Y=this.policy.Qc)}else if(this.timing.U>0){if(this.Z){this.policy.rR&&(this.Y=0);return}var S=this.timing.S5();this.timing.lJ();var d=this.timing.S5();d-S>=this.policy.w4*.8?(this.Y++,this.logger.debug(function(){return"Mispredicted by "+(d-S).toFixed(0)}),O=this.Y>=5):this.Y=0}else{var r=v-this.timing.Pp(); this.policy.Qc&&r>0&&(this.Y+=1);O=c7(OD(this),!1)*this.policy.w9;(O=r>O*1E3)&&this.logger.debug(function(){return"Elbow late by "+r.toFixed(3)})}this.Y>0&&this.BT.nF(); O?this.C$():this.U.start()}}; g.u.C$=function(){this.B=!0;this.BT.YK();this.lastError="net.timeout";S8(this)}; g.u.canRetry=function(v){var O=OD(this);v=v?this.policy.Mh:this.policy.y5;return O.timedOut0&&(O=O.Y.getUint8(0),v.ubyte=O,Y===1&&O===0&&(v.b248180278=!0))}this.rT&&(v.rc=this.policy.N6?this.rT:this.rT.toString());this.policy.oI&&this.bE&&(v.tr=this.bE);v.itag=this.info.Id[0].Y.info.itag;v.ml=""+ +this.info.Id[0].Y.gT();v.sq=""+this.info.Id[0].Vx;this.Jl&&(v.ifi=""+ +lB(this.info.m9.U));this.rT!==410&&this.rT!==500&&this.rT!==503||(v.fmt_unav="true");var S;(Y=this.errorMessage||((S=this.xhr)==null? void 0:S.Bj()))&&(v.msg=Y);this.fQ&&(v.smb="1");this.info.isDecorated()&&(v.sdai="1");return v}; g.u.Wp=function(){return g$7(this.timing)}; g.u.Bj=function(){return this.xhr.Bj()||""}; g.u.Gb=function(){return this.isComplete()||this.timing.Gb()}; g.u.LL=function(){!this.vW()&&this.xhr&&(this.rT=this.xhr.status,this.policy.FC&&this.Np&&this.Rq(!1),this.sY()?this.nu(2):!this.vk&&this.Gb()&&(this.nu(),this.vk=!0))}; g.u.E9=function(){if(!this.vW()&&this.xhr){if(!this.JL&&this.xhr.t_()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var v=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.JL=((0,g.J)()-v)/1E3}this.xhr.t_()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.VA&&!Gb3()&&g.QD("yt-player-headers-readable",!0,2592E3);v=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var O=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),Y;(Y=this.rr)==null||Y.stop();this.LD=v||this.LD; this.uS=O||this.uS}}; g.u.Ft=function(){var v=this.xhr;if(!this.vW()&&v){this.rT=v.status;v=this.t8(v);if(this.policy.oI){var O;(O=this.rr)==null||O.stop()}v===5?S8(this.Fh):this.uM(v);this.Fh.U.stop()}}; g.u.t8=function(v){var O=this;j0l(this);if(dq(this.Fh,this.xhr.status,this.r0?this.timing.tK||this.Qv:this.xhr.p4(),!1,this.ph))return 5;var Y="";rq(this.Fh,this.xhr)&&(Y=Qal(this.Fh,this.xhr));if(Y)return UZ(OD(this.Fh)),this.info.S6(this.Jl,Y),3;Y=v.Dr();if(this.cS){this.Rq(!0);j0l(this);if(dq(this.Fh,this.xhr.status,this.timing.tK||this.Qv,!1,this.ph))return 5;if(!this.gX){if(this.Qv)return UZ(OD(this.Fh)),3;this.Fh.lastError="net.closed";return 5}}else{if(dq(this.Fh,this.xhr.status,this.xhr.p4(), !1,this.ph))return 5;var S=this.info.G;if(S&&S!==Y||v.UG())return this.Fh.lastError="net.closed",5;this.Rq(!0)}S=fv3(this)?v.getResponseHeader("X-Bandwidth-Est"):0;if(v=fv3(this)?v.getResponseHeader("X-Bandwidth-Est3"):0)this.UV=!0,this.policy.PH&&(S=v);ezE(this.Fh,Y,S?Number(S):0,this.info.Id[0].type===5);this.logger.debug(function(){var d=O.timing;return"Succeeded, rtpd="+(d.On*1E3+d.Y-Date.now()).toFixed(0)}); return 4}; g.u.canRetry=function(){this.vW();var v=this.info.isDecorated();return this.Fh.canRetry(v)}; g.u.onStateChange=function(){this.isComplete()&&(this.policy.q$?this.YK():this.timing.deactivate())}; g.u.C$=function(){this.Fh.C$()}; g.u.nF=function(){this.callback&&this.callback(this,this.state)}; g.u.sZ=function(){return this.Fh.sZ()}; g.u.dispose=function(){KX.prototype.dispose.call(this);this.Fh.dispose();var v;(v=this.rr)==null||v.dispose();this.policy.q$||this.YK()}; g.u.YK=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.u.UY=function(){if(!this.un().length)return[];this.UF=!0;return this.Np.UY()}; g.u.sY=function(){if(this.state<1)return!1;if(this.Np&&this.Np.yr.length)return!0;var v;return((v=this.xhr)==null?0:v.KT())?!0:!1}; g.u.un=function(){this.Rq(!1);return this.Np?this.Np.un():[]}; g.u.Rq=function(v){try{if(v||this.xhr.t_()&&this.xhr.KT()&&!rq(this.Fh,this.xhr)&&!this.HZ)this.Np||(this.Np=new HC(this.policy,this.info.Id)),this.xhr.KT()&&(this.cS?this.cS.feed(this.xhr.VW()):Ni(this.Np,this.xhr.VW(),v&&!this.xhr.KT()))}catch(O){this.cS?rVE(this,O):g.Br(O)}}; g.u.MD=function(v,O){switch(v){case 21:v=O.split(1).M6;bc7(this,v);break;case 22:this.gX=!0;Ni(this.Np,new c3([]),!0);break;case 43:if(v=wf(new EX(O),1))this.info.S6(this.Jl,v),this.Qv=!0;break;case 45:O=SZ(new EX(O));v=O.n9;O=O.YA;v&&O&&(this.g5=v/O);break;case 44:this.ud=GRi(new EX(O));var Y,S,d;!this.timing.tK&&((Y=this.ud)==null?void 0:Y.action)===4&&((S=this.ud)==null?0:(d=S.s4)==null?0:d.r0)&&(this.r0=this.ud.s4.r0);break;case 53:this.policy.oI&&(v=J8d(new EX(O)).i4)&&(this.rr||(this.i4=v,this.rr= new g.mX(this.iG,v,this)),this.rr.start());break;case 60:this.Rl=Y$(new EX(O));break;case 58:if(v=umn(new EX(O)))this.Gc=v,v.Gc===3&&(this.ph=!0)}}; g.u.F2=function(v,O,Y,S){Y||this.timing.F2(S);if(v!==21)return!1;if(v=this.policy.FC)if(S=O.getLength()+Y===S,v*=this.info.Id[0].Y.info.b3,!S&&O.getLength()0)return!1;if(!this.xhr.t_())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.cS)var v=!this.info.G;else this.xhr.Ec()?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.No)){v=this.xhr.getResponseHeader("x-head-seqnum");var O=this.timing.policy.L?1:0;if(!v)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(v)>this.info.Id[0].Vx+O)return!1}return!0}; g.u.i_=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.u.C7=function(){this.xhr&&(this.LD=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.LD}; g.u.DO=function(){this.xhr&&(this.uS=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.uS}; g.u.ub=function(){return this.Fh.ub()}; g.u.iG=function(){if(!this.vW()&&this.xhr){this.bE="heartbeat";var v=this.Fh;v.Y+=2;this.nF()}};g.C(VV,Zm);g.u=VV.prototype;g.u.l0=function(v,O){var Y=(v-this.C)/1E3,S=O-this.G;this.U>0?S>0&&(this.HW&&(Y>.2||S<1024?(this.B+=Y,Y>.2&&WtF(this,.05,S)):WtF(this,Y,S)),this.g8&&(this.AK+=S,this.XO+=Y)):O>this.policy.Y&&this.s9(v,O);Zm.prototype.l0.call(this,v,O)}; g.u.eY=function(v,O){XZ(this,v,O);this.l0(v,O);this.HW&&(O=this.G*this.snapshot.stall+this.G/this.snapshot.byterate,this.U>0&&M_(this.C_,this.AK,this.B),v=(v-this.Y)/1E3||.01,this.policy.X&&!(this.U>0)||gw(this.C_,v,this.G,O,!1))}; g.u.Uv=function(v){XZ(this,v,this.Z);var O=(v-this.C)/1E3;A7(this.C_,O,0);this.zR(O,0);!this.HW&&this.U>0||(O=this.G*this.snapshot.stall+this.G/this.snapshot.byterate,this.U>0&&(this.B+=(v-this.C)/1E3,M_(this.C_,this.AK,this.B)),gw(this.C_,((v-this.Y)/1E3||.01)*this.policy.tK,this.G,O,!1,!0))}; g.u.qK=function(v){v=v.lX||2147483647;(v&2)!==2&&(this.g8=!1);(v&1)===1&&(this.HW=!0)}; g.u.v_=function(v){v=v.lX||2147483647;(v&2)===2&&(this.g8=!1);(v&1)===1&&(this.HW=!1)}; g.u.IG=function(){return this.X}; g.u.m_=function(){var v=this.g8?this.now()-this.C:0;return Math.max(this.XO*1E3+v,1)}; g.u.qJ=function(){return this.AK*1E3/this.m_()}; g.u.s9=function(v,O){v=v===void 0?this.L:v;O=O===void 0?this.Z:O;this.U>0||(Zm.prototype.s9.call(this,v,O),O=this.C_,v=(v-this.j)/1E3,O.X.TG(1,(this.j-this.Y)/1E3),O.N3.TG(1,v))}; g.u.X9=function(v){this.f1=v}; g.u.qw=function(){var v=Zm.prototype.qw.call(this);v.rbw=this.qJ();v.rbe=+this.g8;v.gbe=+this.HW;v.ackt=(this.f1-this.Y).toFixed();return v}; g.u.lJ=function(){}; g.u.S5=function(){return NaN}; g.u.Pp=function(){return this.Y+this.snapshot.delay*1E3};AC.prototype.MD=function(v,O){O.getLength();switch(v){case 20:v=new EX(O);v={GV:B3(v,1),videoId:wf(v,2),itag:B3(v,3),lmt:B3(v,4),xtags:wf(v,5),x5:B3(v,6),Ba:Zu(v,8),Ss:B3(v,9),pA1:B3(v,10),startMs:B3(v,11),durationMs:B3(v,12),xj:B3(v,14),timeRange:Ix(v,15,r8n),jE:B3(v,16),Gr:B3(v,17),clipId:wf(v,1E3)};this.DA(v);break;case 21:this.qt(O,!1);break;case 22:this.fD(O);break;case 31:v=J9(O,LLQ);this.RE(v);break;case 52:v=J9(O,KLm);this.UR(v);break;default:this.gF(v,O)}}; AC.prototype.DA=function(){}; AC.prototype.gF=function(){};g.C(f$,AC);g.u=f$.prototype; g.u.gF=function(v,O){O.getLength();switch(v){case 35:this.a9(O);break;case 44:this.So(O);break;case 43:this.Ty(O);break;case 53:this.xF(O);break;case 55:v=new EX(O);Ix(v,1,m5d);Ix(v,2,HNm);break;case 56:this.Ad();break;case 57:this.jH(O);break;case 42:this.kF(O);break;case 45:this.KD(O);break;case 59:this.W_(O);break;case 51:this.rl(O);break;case 49:this.qK(O);break;case 50:this.v_(O);break;case 47:this.XT(O);break;case 58:this.aE(O);break;case 61:this.BT.UE.X9((0,g.J)());break;case 66:this.v1(O); break;case 46:this.kz(O);break;case 67:this.onSnackbarMessage(O)}}; g.u.rl=function(v){v=new EX(v);v={tgO:nL(v,1,vz),Orc:nL(v,2,vz)};this.BT.rl(v)}; g.u.W_=function(v){var O=new EX(v);v=qP(O,1);var Y=qP(O,2);O=qP(O,3);this.BT.W_(v,Y,O)}; g.u.KD=function(v){v=SZ(new EX(v));this.BT.KD(v)}; g.u.XT=function(v){v=J9(v,XZl);this.BT.XT(v)}; g.u.kF=function(v){v=new EX(v);v={videoId:wf(v,1),formatId:Ix(v,2,vz),endTimeMs:B3(v,3),hO1:B3(v,4),mimeType:wf(v,5),xk:Ix(v,6,FL1),indexRange:Ix(v,7,FL1),MJ:Ix(v,8,hKF)};this.BT.kF(v)}; g.u.jH=function(v){v=HNm(new EX(v));this.BT.jH(v)}; g.u.Ad=function(){this.BT.Ad()}; g.u.a9=function(v){v=Bhw(new EX(v));this.BT.a9(v)}; g.u.xF=function(v){v=J8d(new EX(v));this.BT.xF(v)}; g.u.So=function(v){v=GRi(new EX(v));this.BT.So(v)}; g.u.Ty=function(v){v={redirectUrl:wf(new EX(v),1)};this.BT.Ty(v)}; g.u.qt=function(v){var O=v.getUint8(0);if(v.getLength()!==1){v=v.split(1).M6;var Y=this.U[O]||null;Y&&yV(this.BT.tM,O,Y,v)}}; g.u.fD=function(v){v=v.getUint8(0);var O=this.U[v]||null;O&&this.BT.fD(v,O)}; g.u.UR=function(v){this.BT.UR(v)}; g.u.DA=function(v){var O=v.GV,Y=v.Ba,S=v.x5,d=v.Gr,r=v.jE,b=v.Ss,z=v.startMs,M=v.durationMs,V=v.timeRange,A=v.xj,f=v.clipId,k=TD(v);v=vWK.has(KD[""+v.itag]);this.U[O]=k;this.BT.xO(k,v,{GV:O,Ba:!!Y,x5:S!=null?S:-1,Ss:b!=null?b:-1,startMs:z!=null?z:-1,durationMs:M!=null?M:-1,xj:A,Gr:d,jE:r,clipId:f,timeRange:V})}; g.u.qK=function(v){v={lX:B3(new EX(v),1)};this.BT.qK(v)}; g.u.v_=function(v){v={lX:B3(new EX(v),1)};this.BT.v_(v)}; g.u.RE=function(v){this.BT.RE(v)}; g.u.aE=function(v){v=umn(new EX(v));this.BT.aE(v)}; g.u.v1=function(v){v={L2:Ix(new EX(v),1,qF$)};this.BT.v1(v)}; g.u.onSnackbarMessage=function(v){v=B3(new EX(v),1);this.BT.onSnackbarMessage(v)}; g.u.kz=function(v){v=new EX(v);v={reloadPlaybackParams:Ix(v,1,c87),RK:Zu(v,2)};this.BT.kz(v)};g.C($m,g.X);g.u=$m.prototype;g.u.uu=function(){return Array.from(this.DU.keys())}; g.u.s$=function(v){v=this.DU.get(v);var O=v.yr;v.eJ+=O.getLength();v.yr=new c3;return O}; g.u.bb=function(v){return this.DU.get(v).bb}; g.u.zM=function(v){return this.DU.get(v).zM}; g.u.xO=function(v,O,Y,S){this.DU.get(v)||VMl(this,v,O);O=this.DU.get(v);if(this.WW){v=f5l(this,v,Y);if(S)for(var d=g.y(v),r=d.next();!r.done;r=d.next()){r=r.value;var b=S;r.Ug=b;r.startTime+=b;r.B+=b;r.C+=b}AVc(this,Y.GV,O,v)}else Y.Ba?O.uI=Y.xj:O.GN.push(Y),O.Oe.push(Y)}; g.u.CD=function(v){var O;return((O=this.DU.get(v))==null?void 0:O.Id)||[]}; g.u.nu=function(){for(var v=g.y(this.DU.values()),O=v.next();!O.done;O=v.next())O=O.value,O.vr&&(O.wT&&O.wT(),O.vr=!1)}; g.u.fD=function(v,O){this.logger.debug(function(){return"[onMediaEnd] formatId: "+O}); var Y=this.DU.get(O);if(km){if(Y&&!Y.bb){if(Y.iq.get(v))Y.iq.get(v).O5=!0;else{var S;((S=this.rK)==null?0:S.PT)&&Y.iq.set(v,{data:new c3,hA:0,O5:!0})}Y.zM=!0}}else Y&&!Y.zM&&(Y.zM=!0)}; g.u.UY=function(v){if(km){var O=this.DU.get(v);if(O)for(var Y=g.y(O.iq),S=Y.next();!S.done;S=Y.next()){var d=g.y(S.value);S=d.next().value;d=d.next().value;var r=O.RQ.get(S);if(QO(r[0])){if(!d.O5)continue;var b=r,z=d.data;z.getLength();r=0;var M=[];b=g.y(b);for(var V=b.next();!V.done;V=b.next()){V=V.value;var A=V.G,f=CL(z,r,A);r+=A;M.push(new YA(V,f))}O.D7.push.apply(O.D7,g.F(M))}else if(d.data.getLength()>0||!r[0].range&&d.O5)z=void 0,r=r[0],M=d.hA,b=d.data,r.range||(z=d.O5),V=b.getLength(),z=new YA($Om(r, r.U+M,V,z),b),d.hA+=z.info.G,O.D7.push(z);O.iq.get(S).data=new c3;d.O5&&O.iq.delete(S)}v=this.DU.get(v);if(!v)return[];O=v.D7;v.D7=[];Y=g.y(O);for(S=Y.next();!S.done;S=Y.next())v.eJ+=S.value.info.G;return O||[]}Y=(O=this.DU.get(v))==null?void 0:O.Np;if(!Y)return[];this.Rq(v,Y);return Y.UY()}; g.u.sY=function(v){if(km)return C$(this,v);var O,Y,S;return!!((Y=(O=this.DU.get(v))==null?void 0:O.Np)==null?0:(S=Y.un())==null?0:S.length)||C$(this,v)}; g.u.Rq=function(v,O){for(;C$(this,v);){var Y=this.s$(v);var S=v;S=this.DU.get(S).bb&&!uW(this,S);Ni(O,Y,S&&MMF(this,v))}}; g.u.cW=function(){g.X.prototype.cW.call(this);for(var v=g.y(this.DU.keys()),O=v.next();!O.done;O=v.next())UD(this,O.value);var Y;if((Y=this.rK)==null?0:Y.e6)for(v=g.y(this.DU.values()),O=v.next();!O.done;O=v.next())O=O.value,O.iq.clear(),O.RQ.clear(),O.D7.length=0,O.Id.length=0,O.Oe.length=0,O.GN.length=0;this.DU.clear()}; var km=!1;g.C(a3,g.X);g.u=a3.prototype;g.u.LL=function(){!this.vW()&&this.xhr&&(this.Rq(!1),w7(this.BT,this))}; g.u.E9=function(){}; g.u.Ft=function(){if(!this.vW()&&this.xhr){var v=this.t8();v===5?S8(this.Fh):this.uM(v);this.Fh.U.stop();var O;(O=this.pQ)==null||O.stop()}}; g.u.t8=function(){var v="";rq(this.Fh,this.xhr)&&(v=Qal(this.Fh,this.xhr));if(v)return this.info.m9.S6(this.Jl,v),3;this.Rq(!0);if(dq(this.Fh,this.xhr.status,this.xhr.p4(),this.info.MU(),this.ph))return 5;if(this.Iy)return 3;ezE(this.Fh,this.xhr.Dr(),0,this.MU());this.policy.R1&&YlE(this.BT);return 4}; g.u.Rq=function(v){var O=this.xhr;if((v||!rq(this.Fh,this.xhr))&&O.KT()){v=O.VW();var Y=v.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+Y}); this.cS.feed(v)}}; g.u.MD=function(v,O){this.xhr.dB()&&v===21&&uNc(this);this.ju.MD(v,O)}; g.u.F2=function(v,O,Y,S){Y||(this.UE.F2(S),this.policy.Be&&v===21&&uNc(this));if(v!==21)return!1;this.UE.tK=!0;v=O.getLength();Y||(this.kh=O.getUint8(0),O=O.split(1).M6);var d=this.policy.K0,r=this.ju.U[this.kh],b=this.WW.G.get(r);if(d&&b&&(d*=b.info.b3,v+Y!==S&&v0){this.policy.dW&&this.Fh.U.stop();v=this.UE.m_();O=this.UE.qJ();var Y=CZw(this,v);if(!(O>Y.TX||Y.OW>0&&this.info.gG()>Y.OW)){this.RW=(0,g.J)();var S;(S=this.pQ)==null||S.stop();this.policy.R1&&(S=this.BT,v={m8:Math.round(O*v/1E3),AT:v},S.policy.R1&&(S.N3=v,S.nD++));this.C$()}}}}; g.u.C$=function(){this.Fh.C$()}; g.u.So=function(v){this.BT.So(v,this.zH())}; g.u.Ty=function(v){this.Iy=!0;this.info.m9.S6(this.Jl,v.redirectUrl)}; g.u.qK=function(v){this.UE instanceof VV&&this.UE.qK(v)}; g.u.v_=function(v){this.UE instanceof VV&&this.UE.v_(v)}; g.u.kF=function(v){var O=v.formatId,Y=TD({itag:O.itag,lmt:O.lmt,xtags:O.xtags}),S,d,r=new FN(((S=v.xk)==null?void 0:S.first)||0,((d=v.xk)==null?void 0:d.OO)||0),b,z;S=new FN(((b=v.indexRange)==null?void 0:b.first)||0,((z=v.indexRange)==null?void 0:z.OO)||0);this.WW.G.get(Y)||(Y=v.MJ||{},Y.mimeType=v.mimeType,Y.itag=O.itag,Y.lastModified=""+(O.lmt||0),Y.xtags=O.xtags,v=this.WW,O=uP(""),Y=UL(Y,null),M9(v,new z6(O,Y,r,S)))}; g.u.KD=function(v){this.BT.KD(v)}; g.u.onSnackbarMessage=function(v){if(this.policy.wL)this.BT.onSnackbarMessage(v)}; g.u.RE=function(v){this.kL=v;this.hH=(0,g.J)();this.BT.RE(v)}; g.u.W_=function(v,O,Y){this.BT.W_(v,O,Y)}; g.u.jH=function(v){v.scope===2&&(this.z1=v);this.BT.jH(v)}; g.u.Ad=function(){this.O6=!0;this.BT.Ad()}; g.u.rl=function(v){this.policy.vA&&this.BT.rl(v)}; g.u.XT=function(v){this.BT.XT(v,this.zH())}; g.u.aE=function(v){v.Gc===3&&(this.ph=!0);this.BT.aE(v)}; g.u.v1=function(v){this.BT.v1(v)}; g.u.kz=function(v){this.BT.kz(v)}; g.u.canRetry=function(){this.vW();return this.Fh.canRetry(!1)}; g.u.dispose=function(){if(!this.vW()){g.X.prototype.dispose.call(this);this.Fh.dispose();var v;(v=this.pQ)==null||v.dispose();this.uM(-1);this.YK()}}; g.u.uM=function(v){this.state=v;w7(this.BT,this)}; g.u.MU=function(){return this.info.MU()}; g.u.xI=function(){return this.O6}; g.u.wG=function(){return this.z1}; g.u.xO=function(v,O,Y){Y.clipId&&(this.clipId=Y.clipId);this.policy.G&&!O&&(this.bS=Y.Ss);this.tM.xO(v,O,Y,0);if(this.policy.B7&&this.kL&&this.UE instanceof Ig){var S=this.kL.ZC;this.UE.xO(Y.durationMs/1E3,O,S>0&&Y.Ss+1>=S)}this.tM.DU.get(v).xt=!0}; g.u.fD=function(v,O){this.tM.fD(v,O)}; g.u.UR=function(v){this.requestIdentifier=v}; g.u.UY=function(v){return this.tM.UY(v)}; g.u.CD=function(v){return this.tM.CD(v)}; g.u.sY=function(v){return this.tM.sY(v)}; g.u.uu=function(){return this.tM.uu()}; g.u.Qu=function(){return 1}; g.u.zH=function(){return this.UE.requestNumber}; g.u.DG=function(){return this.requestIdentifier}; g.u.Sp=function(){return this.Jl.Sp()}; g.u.Gw=function(){this.YK()}; g.u.YK=function(){this.UE.deactivate();var v;(v=this.xhr)==null||v.abort()}; g.u.isComplete=function(){return this.state>=3}; g.u.YP=function(){return this.state===3}; g.u.Ey=function(){return this.state===5}; g.u.bG=function(){return this.state===4}; g.u.AX=function(){return this.isComplete()}; g.u.J_=function(){return this.state>=1}; g.u.sZ=function(){return this.policy.rR?this.Fh.sZ():0}; g.u.nF=function(){this.policy.rR&&w7(this.BT,this)}; g.u.j8=function(){return XD$(this.info)}; g.u.ub=function(){return this.Fh.ub()}; g.u.dN=function(){var v=LIi(this.Fh);Object.assign(v,ISQ(this.info));v.req="sabr";v.rn=this.zH();var O;if((O=this.xhr)==null?0:O.status)v.rc=this.policy.N6?this.xhr.status:this.xhr.status.toString();var Y;(O=(Y=this.xhr)==null?void 0:Y.Bj())&&(v.msg=O);this.RW&&(Y=CZw(this,this.RW-this.UE.IG()),v.letm=Y.nI,v.mrbps=Y.TX,v.mram=Y.OW);return v};yVn.prototype.tick=function(v,O){this.ticks[v]=O?window.performance.timing.navigationStart+O:(0,g.J)()};g.C(p$,g.MU);g.u=p$.prototype; g.u.Zw=function(v,O,Y,S){if(this.policy.IX&&this.policy.G){var d=v.Jm||null;d?(X77(this,v.Vx,R3(this,v.startTime,v.Vx),{Jm:d,Vx:v.Vx,U9:!!O,EM:Y},this.G),S&&this.G&&this.G.fz(v.Vx,v.startTime,this.U,(O==null?void 0:O.Y)||[],(O==null?void 0:O.G)||[],(O==null?void 0:O.U)||[],Y,(O==null?void 0:O.by)||0,(O==null?void 0:O.B)||void 0)):this.U===1&&lW(this,5,"noad")}else{var r=!1;this.policy.G&&(r=Y?this.JK===v.Vx:this.HW===v.Vx);if(this.G&&S&&!r){S=[];r=[];var b=[],z=void 0,M=0;O&&(S=O.Y,r=O.G,b=O.U,z= O.B,M=O.by,this.G0("sdai",{sq:v.Vx,ssvicpns:S.join("."),ssvid:r.join(".")}));this.policy.G&&(Y?this.JK=v.Vx:this.HW=v.Vx);this.G.fz(v.Vx,v.startTime,this.U,S,r,b,Y,M,z)}this.policy.G?Y&&(this.U===1&&lW(this,5,"noad"),v.Vx!==((d=this.Y)==null?void 0:d.Vx)&&(LtE(this,v,O,Y),isNaN(v.startTime)||B57(this,v.Vx,R3(this,v.startTime,v.Vx),!!O,this.G))):Y&&LtE(this,v,O)}}; g.u.l5=function(v,O,Y){var S=this.videoTrack.Y.index.Eq()<=O;this.Y={Jm:v,Vx:O,U9:Y};S&&TJ(this,v,O)}; g.u.f3=function(){this.G&&this.G.f3()}; g.u.G0=function(v,O,Y){(v!=="sdai"||this.policy.o9||(Y===void 0?0:Y))&&this.loader.G0(v,O)}; g.u.UJ=function(v,O){var Y=this.videoTrack.Y.index.cE(v);if(Y>=0){var S;var d=((S=O.f_.nC(Y,2))==null?void 0:S.An)||"";if(this.policy.G||d)return O.cK(v,Y),FI(this.loader,v,v,Y),this.G0("sdai",{cmskpad:1,t:v.toFixed(3),sq:Y}),!0}this.G0("sdai",{cmskpad:0,t:v.toFixed(3),sq:Y});return!1};g.C(L$,g.X);L$.prototype.ut=function(v,O,Y){Y=Y===void 0?{}:Y;this.policy.vP=QM(v,Y,this.B,O===void 0?!1:O)};I3.prototype.m1=function(v){var O=this;if(this.policy.rL){var Y=new Set(v);Y.size===this.N3.size&&[].concat(g.F(Y)).every(function(S){return O.N3.has(S)})||(this.loader.G0("lwnmow",{itagDenylist:[].concat(g.F(v)).join(",")}),this.loader.m7(!!Y.size),this.j=-1,this.N3=Y,qq(this,this.Y),this.AK=!0)}}; I3.prototype.ut=function(v,O,Y){Y=Y===void 0?{}:Y;var S=this.policy.vP;this.Z.ut(v,O===void 0?!1:O,Y);if(S!==this.policy.vP){qq(this,this.Y);n$(this);var d,r;S>this.policy.vP&&((d=this.G)==null?0:D6(d.info))&&((r=this.nextVideo)==null||!D6(r.info))&&(this.tK=!0)}};GJ.prototype.Xt=function(v){this.timestampOffset=v;this.flush()}; GJ.prototype.flush=function(){if(this.Y.pos>0){var v={a:this.track.hM(),u:this.Y.Gn(),pd:Math.round(this.B),ad:Math.round(this.G)},O=this.U;if(O){var Y=O.Y.info;v.itag=Y.itag;Y.Y&&(v.xtags=Y.Y);v.sq=O.Vx;v.st=O.startTime;v.sd=O.duration;this.track.policy.o6&&(v.si=O.d2());O.Z&&(v.esl=O.U+O.G);O.D0()&&(v.eos=1)}isNaN(this.timestampOffset)||(v.to=this.timestampOffset);var S;if(O=(S=this.track.A$)==null?void 0:S.Yu({})){for(var d in O)this.C[d]!==O[d]&&(v["sb_"+d]=O[d]);this.C=O}this.track.G0("sbu", v);this.Y.reset();this.buffered=[];this.Z=this.G=this.B=0;this.timestampOffset=this.U=void 0}};mE.prototype.dispose=function(){this.Ug=!0}; mE.prototype.vW=function(){return this.Ug}; g.C(Oi,Error);dO.prototype.skip=function(v){this.offset+=v}; dO.prototype.lS=function(){return this.offset};g.u=pYm.prototype;g.u.T2=function(){return this.U}; g.u.k$=function(){return this.U.length?this.U[this.U.length-1]:null}; g.u.rE=function(){this.U=[];W$(this);oH(this)}; g.u.s$=function(v){this.XO=this.U.shift().info;v.info.equals(this.XO)}; g.u.CD=function(){return g.DQ(this.U,function(v){return v.info})}; g.u.hM=function(){return!!this.C.info.audio}; g.u.isDrm=function(){return!!this.C.info.LP}; g.u.getDuration=function(){return this.C.index.Kr()};g.C(TC,KX);g.u=TC.prototype;g.u.onStateChange=function(){this.vW()&&(cX(this.tM,this.formatId),this.Y.dispose())}; g.u.dN=function(){var v=gRc(this.tM,this.formatId),O;var Y=((O=this.tM.DU.get(this.formatId))==null?void 0:O.bytesReceived)||0;var S;O=((S=this.tM.DU.get(this.formatId))==null?void 0:S.eJ)||0;return{expected:v,received:Y,bytesShifted:O,sliceLength:uW(this.tM,this.formatId),isAnyMediaEndReceived:this.tM.zM(this.formatId)}}; g.u.Wp=function(){return 0}; g.u.Gb=function(){return!0}; g.u.UY=function(){return this.tM.UY(this.formatId)}; g.u.un=function(){return[]}; g.u.sY=function(){return this.tM.sY(this.formatId)}; g.u.ub=function(){return this.lastError}; g.u.sZ=function(){return 0};g.C(Mj,g.X);g.u=Mj.prototype;g.u.hM=function(){return!!this.Y.info.audio}; g.u.k$=function(){return this.B.k$()}; g.u.s$=function(v){this.B.s$(v);var O;(O=this.X)!=null&&(O.Z.add(v.info.Vx),O.Y=ism(O,O.cD,O.PS,v,O.Y),O.G=v,O.C=(0,g.J)());this.b3=Math.max(this.b3,v.info.Y.info.b3||0)}; g.u.getDuration=function(){return this.Y.index.Kr()}; g.u.rE=function(){FZ(this);this.B.rE()}; g.u.Sd=function(){return this.B}; g.u.isRequestPending=function(v){return this.G.length?v===this.G[this.G.length-1].info.Id[0].Vx:!1}; g.u.Xt=function(v){var O;(O=this.X)==null||O.Xt(v);var Y;(Y=this.j)==null||Y.Xt(v)}; g.u.G0=function(v,O){this.loader.G0(v,O)}; g.u.Xp=function(){return this.loader.Xp()}; g.u.dispose=function(){var v;(v=this.j)==null||v.flush();g.X.prototype.dispose.call(this)};g.C(L2,g.X);L2.prototype.G=function(){this.U++>15||(this.Y=!this.Y,new A7l(this.loader,this.policy,this.C_,this.m9,this.Y),this.delay.start())}; g.u=A7l.prototype;g.u.E9=function(){}; g.u.LL=function(){}; g.u.Ft=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Dr()===this.size)this.loader.G0("rqs",this.getInfo());else{var v="net.connect";this.xhr.status>200?v="net.badstatus":this.xhr.t_()&&(v="net.closed");this.onError(v)}}; g.u.onError=function(v){var O=this;this.loader.handleError(v,this.getInfo());Ut("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(Y){O.loader.G0("pathprobe",Y)},function(Y){O.loader.handleError(Y.errorCode,Y.details)})}; g.u.getInfo=function(){var v=this.timing.qw();v.shost=pA(this.location.PE);v.pb=this.size;return v};g.C(B$,g.X); B$.prototype.L=function(v,O){if(v.L){this.WW.isLive?(v=this.WW.Zq&&this.WW.B?v.Y.d0(this.WW.Zq,!1):v.Y.sP(Infinity),v.No=this.No):v=v.Y.d0(0,!1);if(this.tK){var Y=this.tK;v.No===0&&(v.Z=Y.X)}else v.Z=this.j;return v}Y=v.U;if(!Y.Y.gT())return Y.Y.aq()?(v=CX(this.Z,v.Y.info.b3,O.Y.info.b3,0),v=Y.Y.P9(Y,v)):v=Y.Y.H6(Y),v;var S=Y.C-this.loader.getCurrentTime(),d=!Y.range||Y.G===0&&Y.U===0?0:Y.range.length-(Y.U+Y.G),r=Y.Y;this.A8(v,S)&&d===0&&(this.WW.isManifestless?r=v.Y:(r=Y.startTime+tzn,Y.G&&(r+=Y.duration), eI(v,r),Y=v.U,r=Y.Y));r.aq()?(d=this.G,O=CX(this.Z,r.info.b3,O.Y.info.b3,S,d.B.length>0&&d.X===0&&this.loader.pL),S=lw(v),v=Y.Y.P9(Y,O),(O=v.G)&&v.Id.length>1&&(S||v.m9.G||v.Id[0].Y!==Y.Y?v=Y.Y.P9(Y,v.Id[0].G):(S=v.Id[v.Id.length-1],r=S.G/O,!S.Z&&r<.4&&(v=Y.Y.P9(Y,O-S.G))))):(Y.Vx<0&&(O=XN(Y),O.pr=""+v.G.length,this.loader.isSeeking()&&(O.sk="1"),O.snss=Y.X,this.loader.G0("nosq",O)),v=r.H6(Y));if(this.policy.JK)for(Y=g.y(v.Id),O=Y.next();!O.done;O=Y.next())O.value.type=6;return v}; B$.prototype.A8=function(v,O){if(!lw(v)||!v.Y.gT())return!1;var Y=this.G.AK||vkE(v)||O<=this.policy.DL||this.G.tK;this.logger.debug(function(){return"ready to adapt: "+Y+", upgrade pending: "+vkE(v)+", health: "+O}); return Y}; B$.prototype.cW=function(){g.X.prototype.cW.call(this)}; var tzn=2/24;g.C(G$,g.X);G$.prototype.B5=function(v,O,Y){var S;var d=((S=this.U)==null?void 0:S.reason)==="m"?"m":this.U&&lS3(this,this.U)?this.U.reason:"a";this.loader.B5(new QV(v,d,Y));J$(this.loader,O,v,!0)}; G$.prototype.nK=function(v,O){for(var Y=g.y(this.JK),S=Y.next();!S.done;S=Y.next())if(S.value.id===v)return this.Z=this.WW.Y[v],zJ(this.rK)&&(this.tK=!0),v=new QV(this.Z,O?"t":"m"),O&&(this.L=!0),v;this.G=[];return null}; G$.prototype.ut=function(v,O,Y){Y=Y===void 0?{}:Y;this.Y.ut(v,O===void 0?!1:O,Y)};ml.prototype.setData=function(v,O,Y){var S=this;Y=Y===void 0?{}:Y;if(O==null?0:O.Mj)this.Ar=cVF(this,O,Y),v.Jn=this.m9.Jn();if(this.MU())return!0;this.data=v;this.Y=Bwi(v,function(d,r){var b;(b=S.BT)==null||b.Yy(d,r)},O==null?void 0:O.U); if(!this.Y)return!1;this.U=g.H3(this.Y,x5F);return!0}; ml.prototype.MU=function(){return this.requestType===1}; ml.prototype.gG=function(){var v;return((v=this.BT)==null?void 0:v.gG())||0}; ml.prototype.isDecorated=function(){var v;return!((v=this.data)==null||!v.Yq)};t$.prototype.encrypt=function(v){this.Y.exports.AES128CTRCipher_encrypt(this.cipher,v.byteOffset,v.byteLength);return v}; t$.prototype.vW=function(){return this.cipher===0}; t$.prototype.dispose=function(){this.Y.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};DT.prototype.encrypt=function(v,O){return gQ(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:O},this.key,v).catch(function(Y){return Promise.reject(Y.name+": "+Y.message)}).then(function(Y){return new Uint8Array(Y)}))}; DT.prototype.vW=function(){return this.Y}; DT.prototype.dispose=function(){this.Y=!0}; H$.prototype.encrypt=function(v,O){return gQ(this.U(v,O))}; H$.prototype.U=function(v,O){ce(this.G,O);return this.G.encrypt(v)}; H$.prototype.vW=function(){return this.Y}; H$.prototype.dispose=function(){this.Y=!0}; Nj.prototype.encrypt=function(v,O){return gQ(this.U(v,O))}; Nj.prototype.U=function(v,O){O=this.G.Q6(O);var Y=this.Y;Y.Y.exports.AES128CTRCipher_setCounter(Y.cipher,O.byteOffset);this.G.free(O.byteOffset);O=this.G.Q6(v);this.Y.encrypt(O!=null?O:v);return O?this.G.s7(O):v}; Nj.prototype.vW=function(){return this.Y.vW()}; Nj.prototype.dispose=function(){this.Y.dispose()}; Ue.hP(DT,{encrypt:nkF("oan2")});Ue.hP(H$,{encrypt:nkF("oap")});Ue.hP(Nj,{encrypt:nkF("oalw")});vu.prototype.encrypt=function(v,O){var Y=this,S=M6("");v.length<=this.JQ&&this.Y&&!this.Z&&(S=$i(S,function(){return Y.Y?Y.Y.encrypt(v,O):M6("wasm unavailable")})); v.length<=this.RB&&(this.Y&&this.Z&&(S=$i(S,function(){return Y.Y?Y.Y.encrypt(v,O):M6("wasm unavailable")})),S=$i(S,function(){return Pqw(Y,v,O)})); return $i($i(S,function(){return Ga1(Y,v,O)}),function(){return Pqw(Y,v,O)})}; vu.prototype.U=function(v,O){if(this.Y)return this.Y.U(v,O);this.G||(this.G=new H$(this.key));return this.G.U(v,O)}; vu.prototype.vW=function(){return this.C}; vu.prototype.dispose=function(){this.C=!0;var v;(v=this.B)==null||fs(v,g.sM);g.sM(this.Y);g.sM(this.G)};Ob.prototype.encrypt=function(v){(0,g.J)();return(new g.xl(this.Y.Y)).encrypt(v,this.iv)}; Ob.prototype.decrypt=function(v,O){(0,g.J)();return(new g.xl(this.Y.Y)).decrypt(v,O)}; Ob.prototype.vW=function(){return this.G}; Ob.prototype.dispose=function(){this.G=!0;g.sM(this.U)};g.C(YE,g.X);YE.prototype.G=function(v,O){if(O){O=O instanceof g.aa?O:ST(this,O);var Y;((Y=this.Y.get(v))==null?void 0:pA(Y.location))!==pA(O)&&this.Y.set(v,new S3J(O,v))}else this.Y.delete(v)}; YE.prototype.load=function(){var v=this,O,Y,S,d,r,b,z,M,V,A;return g.B(function(f){switch(f.U){case 1:O=v.Y.get(0);g.cm(f,2);var k;if(k=O&&!v.U)k=pA(O.location),k=v.U===Ym(k);if(k){f.d8(4);break}return g.E(f,OmQ(v,v.U?2:0),5);case 5:if(Y=f.Y)v.G(0,Y),lB(Y)&&v.G(1,FY(Y));case 4:g.ai(f,3);break;case 2:S=g.Tc(f);g.Br(S);if(!v.U){f.d8(3);break}v.U=!1;return g.E(f,v.load(),7);case 7:return f.return();case 3:if(!v.Yg.experiments.T0("html5_onesie_probe_ec_hosts")){f.d8(0);break}g.cm(f,9);d=v;r=d.G;b=3;return g.E(f, OmQ(v,1),11);case 11:return r.call(d,b,f.Y),z=v,M=z.G,V=4,g.E(f,OmQ(v,2),12);case 12:M.call(z,V,f.Y);g.ai(f,0);break;case 9:A=g.Tc(f),g.Br(A),g.UE(f)}})}; YE.prototype.L=function(){var v=this,O,Y;return g.B(function(S){g.HM(v.X);O=g.Vq(v.Yg.experiments,"html5_onesie_prewarm_max_lact_ms");if(lj()>=O)return S.return();(Y=v.Y.get(0))&&vfn(v,Y);g.UE(S)})}; var HHc={N7s:0,KT3:1,kZx:2,E80:3,mYg:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};bmw.prototype.decrypt=function(v){var O=this,Y,S,d,r,b,z;return g.B(function(M){switch(M.U){case 1:if(dCi(O))return M.return();O.U=!0;O.G8.Tf("omd_s");Y=new Uint8Array(16);yn()?S=new g.a9(v):d=new g.xl(v);case 2:if(!O.Y.length||!O.Y[0].isEncrypted){M.d8(4);break}r=O.Y.shift();if(!S){b=d.decrypt(r.buffer.ov(),Y);M.d8(5);break}return g.E(M,S.decrypt(r.buffer.ov(),Y),6);case 6:b=M.Y;case 5:z=b;rwi(Y);var V=O.G8,A=r.videoId,f=r.GV,k=r.formatId,U=new c3([z]),c;(c=r7(V.Gf,A))==null||yV(c,f,k,U);M.d8(2); break;case 4:O.G8.Tf("omd_c"),ba(O),O.U=!1,O.G8.Cw(),g.UE(M)}})}; bmw.prototype.enqueue=function(v,O,Y,S,d){this.Y.push({videoId:v,GV:O,formatId:Y,buffer:S,isEncrypted:d});this.U||ba(this)};var fZc=!!Uint8Array.prototype.copyWithin,ok=[],of7=[],zWJ=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Wu=[],jT=[],zr=[],jJm=[];g7.prototype.wA=function(v){return g.Aw1(new g.W6n(v))}; g7.prototype.RM=function(v){function O(b){if(!b.done)return r.append(b.value),d.read().then(function(z){return O(z)})} if(!("DecompressionStream"in window))return M6("native decompression unavailable");var Y=new DecompressionStream("gzip"),S=Y.writable.getWriter();S.write(v).then(function(){return S.close()}); var d=Y.readable.getReader(),r=new c3([]);return $i(fs(fs(gQ(d.read()),O),function(){return r.ov()}),function(b){return M6(b.message)})}; g7.prototype.iI=function(v,O){var Y=void 0,S=O.Q6(v);S&&(Y=S.byteOffset,v=S);S=O.exports.getInflatedSize(v.byteOffset,v.length);if(S===0)return M6("bad compressed input");var d=O.malloc(S);if(O.exports.inflateGzip(v.byteOffset,v.length,d))return O.free(d),M6("inflateGzip failed");Y&&O.free(Y);return gQ(new Uint8Array(O.exports.memory.buffer,d,S))}; Ue.hP(g7,{wA:function(v){return{profile:"gzjb",qk:Math.ceil(v.byteLength/16)}}, RM:function(v){return{profile:"gznb",qk:Math.ceil(v.byteLength/16)}}, iI:function(v){return{profile:"gzwb",qk:Math.ceil(v.byteLength/16)}}});g.C(Ctd,AC);g.u=Ctd.prototype;g.u.Cw=function(){this.Gf.Cw()}; g.u.gF=function(v,O){switch(v){case 10:var Y=J9(O,EDd);v=Y.Ikg;var S=!1;switch(v){case 0:this.G=!Y.BU.KI;this.iv=Y.BU.iv;break;case 2:break;case 23:var d=this.Gf;Y=Y.LsO;d.Tf("omp_r");Y.videoId&&(d.TR=Y.videoId);d.TR!==d.videoData.videoId&&(d.videoData.Ix=d.TR,d.G0("ompp","vid."+d.TR));d.Iu=!0;break;case 24:Y=this.Gf;Y.Tf("omp_c");Y.Iu=!1;Y.Bv=!1;var r=(d=Y.mq)==null?void 0:d.get(Y.TR);Y.notifySubscribers(Y.TR);r!=null&&(r.Y=!0);A0(Y);break;default:S=!0}this.Gf.iS&&this.Gf.G0("ombup","id.10;pt."+ v+";len."+O.getLength()+(S?";ignored.1":""));this.B=v;break;case 11:xCl(this,O);break;case 12:this.qt(O,!0);break;case 37:O=J9(O,Q1E);(O.r3||O.h1)&&O.videoId&&this.Gf.k9.set(O.videoId,O);break;case 60:this.SY(O);break;case 47:this.V("html5_server_playback_start_policy")&&(O=J9(O,XZl),this.Gf.playbackStartPolicy=O);break;case 35:this.a9(O);break;case 45:this.KD(O);break;case 66:this.v1(O);break;default:this.Gf.iS&&this.Gf.G0("ombup","id."+v+";len."+O.getLength()+";ignored.1")}}; g.u.RE=function(v){this.Gf.RE(v)}; g.u.SY=function(v){v=J9(v,Y$);this.Gf.SY(v)}; g.u.KD=function(v){v=J9(v,SZ);this.Gf.KD(v)}; g.u.DA=function(v){var O=v.GV,Y=v.Ba,S=v.x5,d=v.jE,r=v.Ss,b=v.startMs,z=v.durationMs,M=v.timeRange,V=v.xj,A=TD(v),f=vWK.has(KD[""+v.itag]);Y&&this.Tf(f?"oais_r":"ovis_r");var k=this.Y[A]!==void 0;this.Gf.iS&&this.Gf.G0("ombup","id.20;hid."+O+";fid."+A);var U=v.videoId||"";this.U[O]=A;this.Z[O]=U;k||(this.Y[A]={videoId:U,hX:!1,hM:f,headers:[]});this.Y[A].headers.push(v);this.Gf.xO(U,A,f,{GV:O,Ba:!!Y,x5:S!=null?S:-1,Ss:r!=null?r:-1,startMs:b!=null?b:-1,durationMs:z!=null?z:-1,xj:V!=null?V:0,jE:d,timeRange:M})}; g.u.qt=function(v,O){var Y=v.getUint8(0);this.Gf.iS&&this.Gf.G0("ombup","id."+(O?12:21)+";len."+v.getLength()+";hid."+Y);if(v.getLength()!==1){v=v.split(1).M6;var S=this.U[Y]||null,d=this.Z[Y]||"";S&&(this.cB(this.Y[S].hM?"oafs_r":"ovfs_r"),this.queue.enqueue(d,Y,S,v,O))}}; g.u.fD=function(v){var O=v.getUint8(0);this.Gf.iS&&this.Gf.G0("ombup","id.22;len."+v.getLength()+";hid."+O);v=this.U[O]||null;var Y=this.Z[O]||"";if(v)if(this.V("html5_use_ump_request_slicer")){var S=this.queue;S.Y.push({videoId:Y,GV:O,formatId:v,isEncrypted:!1,cn:!0});S.U||ba(S)}else this.Gf.fD(Y,O,v)}; g.u.UR=function(v){this.Gf.UR(v)}; g.u.hj=function(v,O){var Y=this,S,d,r,b,z,M,V,A,f,k;return g.B(function(U){switch(U.U){case 1:Y.Gf.hj();S=v.ov();if(!O){r=S;U.d8(2);break}return g.E(U,B2d(Y.Gf,S,Y.iv),3);case 3:r=U.Y;case 2:d=r;if(!Y.Gf.enableCompression){U.d8(4);break}z=(b=performance)==null?void 0:b.now();return g.E(U,$C3(d),5);case 5:d=U.Y,Y.Gf.G0("decompression",{ds:"DecompressionStream"in window,rt:((M=performance)==null?NaN:M.now())-z});case 4:try{V=J9(d,U5m)}catch(c){return A=c instanceof Error?{name:c.name,message:c.message}: {},A.webcrypto=""+ +!!yn(),A.enc=""+ +Y.G,f=new lJ("onesie.response.parse",A),U.return(Promise.reject(f))}uuc(V);k=g.FA(V.body);return U.return(k)}})}; g.u.a9=function(v){this.V("html5_consume_onesie_next_request_policy_for_sabr")&&(v=J9(v,Bhw),this.Gf.a9(v))}; g.u.v1=function(v){v={L2:Ix(new EX(v),1,qF$)};this.Gf.v1(v)}; g.u.Tf=function(v){this.Gf.Tf(v)}; g.u.cB=function(v){return this.Gf.cB(v)}; g.u.V=function(v){return this.Gf.V(v)};g.C(VQ,g.X);g.u=VQ.prototype;g.u.uu=function(v){var O,Y;return((Y=(O=this.mq)==null?void 0:O.get(v))==null?void 0:Y.uu())||[]}; g.u.sY=function(v,O){var Y;return!((Y=r7(this,O))==null||!Y.sY(v))}; g.u.UY=function(v,O){var Y;return((Y=r7(this,O))==null?void 0:Y.UY(v))||[]}; g.u.CD=function(v,O){var Y;return((Y=r7(this,O))==null?void 0:Y.CD(v))||[]}; g.u.uM=function(v){this.state=v;this.notifySubscribers()}; g.u.MU=function(){return!1}; g.u.xI=function(){return!1}; g.u.wG=function(){}; g.u.Tf=function(v){this.Og.Tf(v)}; g.u.cB=function(v){return this.Og.cB(v)}; g.u.F2=function(v,O,Y,S){Y||this.UE.F2(S);return!1}; g.u.MD=function(v,O){this.G8.MD(v,O)}; g.u.Fb=function(){this.Tf("orfb");this.Ht=!0;if(Zmw(this)&&this.xhr){var v={rc:this.xhr.status,lb:this.xhr.Dr(),rt:(1E3*g$7(this.UE)).toFixed(),shost:g.c4(this.bJ),trigger:"o1"};this.G0("pathprobe",TB(v))}}; g.u.hj=function(){this.Tf("opr_r");this.Fu=!0}; g.u.xO=function(v,O,Y,S){if(this.mq){if(!this.mq.has(v)){var d=new $m(this);this.mq.set(v,d);g.w(this,d)}var r;(r=this.mq.get(v))==null||r.xO(O,Y,S);A0(this);Y||(this.bS=S.Ss)}else A0(this)}; g.u.RE=function(v){this.Vq=v;v.F1!=null&&this.Og.e$(v.F1)}; g.u.SY=function(v){this.Rl=v}; g.u.a9=function(v){v.videoId&&this.bB.set(v.videoId,v)}; g.u.Cw=function(){if(this.mq)for(var v=g.y(this.mq.keys()),O=v.next();!O.done;O=v.next()){var Y=void 0;(Y=this.mq.get(O.value))==null||Y.nu()}}; g.u.KD=function(v){this.j7=v}; g.u.v1=function(v){if(v==null?0:v.L2)if(v=v.L2.vp){v=g.y(v);for(var O=v.next();!O.done;O=v.next())O=O.value,O.videoId&&this.GL.set(O.videoId,O)}}; g.u.G0=function(v,O,Y){this.Og.G0(v,O,Y===void 0?!1:Y)}; g.u.fD=function(v,O,Y){var S;(S=r7(this,v))==null||S.fD(O,Y)}; g.u.UR=function(v){this.Ry.set(v.videoId,v)}; g.u.fetch=function(){var v=this,O,Y,S,d,r,b,z,M,V,A,f,k,U,c,a,x,T,l,Q,L,I;return g.B(function(t){switch(t.U){case 1:v.logger.debug("Onesie fetch started.");v.Us?v.Ih.start():v.Dj.start();v.Tf("or_i");O=v.Yg.experiments.T0("html5_onesie_verbose_timing");Y={};S=(0,g.J)();d=function(P){O&&(Y[P]=(0,g.J)()-S)}; d("loc_s");if(r=T2F(v.videoData,v.pu)){t.d8(2);break}d("loc_async");b=g.Vq(v.Yg.experiments,"html5_onesie_redirector_timeout_ms");return g.E(t,lZ3(v.videoData,v.pu,b),3);case 3:r=t.Y;case 2:if(!r)return v.logger.info("Onesie URL creation failed."),z={url:"0"},M=new lJ("onesie.unavailable.hotconfig",z),v.jZ(M),t.return(v.Mw);v.Ar=pA(r);d("loc_e");V=g.vO(v.Yg,g.ez(v.videoData));A=!!V.Y;if(!A){f=V.getValue();t.d8(4);break}return g.E(t,V.Y,5);case 5:f=t.Y;case 4:k=f;v.V("html5_log_onesie_empty_oauth")&& !k&&v.G0("no_token",{async:A});d("oauth");U=hWc(v.playerRequest,v.Yg,v.videoData,k,Ym(v.Ar));g.cm(t,6);if(!L6g(v,U)){d("or_s_sync");v.Xf=eWE(U,v.cZ,v.Yg,v.Og,v.F$.onesieUstreamerConfig,(c=v.videoData.Y3)==null?void 0:c.aX);t.d8(8);break}d("or_s_async");return g.E(t,QJE(U,v.cZ,v.Yg,v.Og,v.F$.onesieUstreamerConfig,(a=v.videoData.Y3)==null?void 0:a.aX),9);case 9:v.Xf=t.Y;case 8:g.ai(t,7);break;case 6:return x=g.Tc(t),v.logger.info("Failed to create OnesieRequestProto."),v.jZ(x),t.return(v.Mw);case 7:return d("or_e"), O&&v.G0("oreqvt",Y),v.enableCompression=v.Xf.CO.Rf,v.Tf("osor"),T=sPQ(),l=g.H3(v.Xf,ON1),Q={method:"POST",body:l,headers:{"Content-Type":"text/plain",Referer:location.origin}},L=v.V("html5_onesie_media_capabilities"),F6w(r,v.videoData,wOm(v),L),v.logger.debug("Starting Onesie network request."),v.iS&&v.G0("ombrs","1"),I=v.Og.D().schedule,v.UE=new Ig(v,{C_:I,s0:v.iS,zR:function(P,YQ){v.Og.bN(P,YQ)}, DI:!0}),r.set("rn",""+v.UE.requestNumber),v.bJ=r.Sp(),wp(v.UE,v.bJ),v.Tf("or_p"),v.xhr=Dm(new $R(r),T,v.UE,Df,Q),v.sX.start(),t.return(v.Mw)}})}; g.u.Qu=function(){return 2}; g.u.E9=function(){this.Tf("orh_r")}; g.u.LL=function(){!this.Ht&&this.xhr.Dr()&&this.Fb();if(this.VJ&&!this.Us){var v;(v=this.Sv)==null||v.start()}this.Rq()}; g.u.Ft=function(v){v=v===void 0?!1:v;this.logger.debug("onXhrDone");this.Rq();if(!(this.vW()||this.state>=4)){var O=Mg(this),Y=this.xhr;O.rc=Y.status;v&&(O.ab=!0);if(Y.Bj()){var S="onesie.net";O.msg=Y.Bj()}else Y.status>=400?S="onesie.net.badstatus":Y.p4()?this.Fu||(S="onesie.response.noplayerresponse"):S=Y.status===204?"onesie.net.nocontent":"onesie.net.connect";S?this.jZ(new lJ(S,O)):(this.Tf("or_fs"),this.UE.eY((0,g.J)(),Y.Dr(),0),this.uM(4),this.iS&&this.G0("rqs",O));this.iS&&this.G0("ombre", "ok."+ +!S);this.Bv=!1;A0(this);yw7(this.G8);if(!this.Us){this.Dj.stop();var d;(d=this.Sv)==null||d.stop()}var r;if(v=(r=this.pu)==null?void 0:Y3i(r))for(r=0;r1E3){var v;(v=this.UE)==null||v.Uv((0,g.J)());v=Mg(this);if(this.Yg.XL()&&this.xhr instanceof PC){var O=this.xhr;v.xrs=O.xhr.readyState;v.xpb=O.Y.getLength();v.xdc=O.B}this.jZ(new lJ("net.timeout",v))}}else(0,g.J)()-this.UE.Y>1E4&&((O=this.UE)==null||O.Uv((0,g.J)()),this.bU());this.isComplete()||this.Ih.start()}}; g.u.bU=function(){this.logger.info("Onesie request timed out");this.Bv=!1;if(!A0(this)){var v=Mg(this);v.timeout="1";this.jZ(new lJ("onesie.request",v))}}; g.u.jZ=function(v){var O=this;v=hL(v);this.VJ?this.Og.OE(v):(this.Mw.reject(v),this.VJ=!0);yw7(this.G8);this.Us||this.Dj.stop();this.Tf("or_fe");var Y,S;(Y=this.pu)==null||(S=Y3i(Y))==null||S.forEach(function(d){O.G0("pathprobe",d)}); this.uM(5);this.dispose()}; g.u.isComplete=function(){return this.state>=3}; g.u.bG=function(){return this.state===4}; g.u.AX=function(v){var O,Y;return this.isComplete()||!!((O=this.mq)==null?0:(Y=O.get(v))==null?0:Y.Y)}; g.u.YP=function(){return!1}; g.u.Ey=function(){return this.state===5}; g.u.notifySubscribers=function(v){for(var O=0;O102400&&!this.yh&&(this.Tf("or100k"),this.yh=!0);if(v.KT()){var O=v.VW(),Y=O.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+Y}); this.iS&&this.G0("ombrss","len."+Y);this.cS.feed(O)}if(this.mq)for(var S=g.y(this.mq.keys()),d=S.next();!d.done;d=S.next()){var r=d.value;v=void 0;(v=this.mq.get(r))==null||v.nu();this.notifySubscribers(r)}}catch(b){this.jZ(b)}}; g.u.zH=function(){return this.UE.requestNumber}; g.u.DG=function(v){return this.Ry.get(v)};g.C(q3m,g.X);g.u=q3m.prototype;g.u.wU=function(v,O){this.Ug=void 0;YlE(this);OhF(this,v,O)}; g.u.kJ=function(v){if(this.Y.length===0)return!1;var O=this.Y[0];return O instanceof VQ?v===this.loader.getCurrentTime()*1E3:!(O instanceof a3&&wD$(O.info))&&Math.abs(O.j8()-v)<50}; g.u.a9=function(v){this.U=v;this.Ug=(0,g.J)()+(v.backoffTimeMs||0)}; g.u.So=function(v,O){if(v.action===void 0){var Y=this.Og.Rz();Y!==void 0&&this.loader.Lz(Y)}else if(v.action!==0||!this.XO)switch(v.action===0&&this.policy.v6&&(v.action=2),Y={},Y.reason=v.AV,Y.action=v.action,Y.rn=O,v.action){case 1:this.policy.G&&this.X&&this.X.LC(void 0,void 0,Y);break;case 0:this.XO=!0;this.videoData.lM()&&this.policy.G&&this.X&&this.X.LC(void 0,void 0,Y,!1);this.loader.X$(Y);break;case 2:Krc(v.AV)!=="sabr.config"&&delete Y.reason;this.loader.handleError(Krc(v.AV),Y,1);break; case 3:this.policy.Mj&&((v=this.WW.X)!=null&&(v.X=!0),this.loader.handleError("sabr.hostfallback",Y))}}; g.u.jH=function(v){v&&(this.loader.G0("sabrctxt",{onsbrctxt:v.type,scp:v.scope,dflt:v.sendByDefault}),v.type&&v.sendByDefault&&this.Xd.add(v.type),v.scope!==2&&(v.type&&this.videoData.sabrContextUpdates.set(v.type,v),this.Og.jH(v)))}; g.u.Ad=function(){}; g.u.KD=function(v){if(v.n9!==void 0&&v.YA){var O=v.n9/v.YA;this.audioTrack.L=!1;this.videoTrack.L=!1;if(this.policy.Ug||this.policy.M7||this.policy.V_)this.loader.Pj.U=!1;this.loader.oJ(O,1);if(this.Og.getCurrentTime()!==O){var Y={Vg:"sabr_seek",Cz:!0,v3:!0};v.seekSource&&(Y.seekSource=v.seekSource);LX(this.loader,O+.1,Y)}}}; g.u.onSnackbarMessage=function(v){this.Og.publish("onSnackbarMessage",v)}; g.u.RE=function(v){v.ZC&&v.GW&&lP(this.WW,v.ZC,v.GW);this.policy.Af&&(v.Ps&&v.yq&&(this.WW.TV=v.Ps/v.yq),v.DE&&v.lG&&(this.WW.dW=v.DE/v.lG));this.policy.xE&&u8(this.videoData)&&!this.videoData.tK&&v.GW&&this.loader.oJ(v.GW,1E3);v.F1!=null&&this.Og.e$(v.F1);this.policy.cA&&v.FP&&(v=((0,g.J)()-v.FP)/1E3,this.loader.Gu.TG(1,v))}; g.u.aE=function(v){this.loader.aE(v)}; g.u.rh=function(v){return this.Xd.has(v)}; g.u.W_=function(v,O,Y){this.policy.U&&this.loader.G0("sabrctxtplc",{start:v?v.join("_"):"",stop:O?O.join("_"):"",discard:Y?Y.join("_"):""});if(v){v=g.y(v);for(var S=v.next();!S.done;S=v.next())this.Xd.add(S.value)}if(O)for(O=g.y(O),v=O.next();!v.done;v=O.next())v=v.value,this.Xd.has(v)&&this.Xd.delete(v);if(Y)for(Y=g.y(Y),O=Y.next();!O.done;O=Y.next())if(O=O.value,this.videoData.sabrContextUpdates.has(O)&&(this.videoData.sabrContextUpdates.delete(O),O===3&&(this.videoData.w9="")),this.policy.j&&this.Y.length)for(v= g.y(this.Y),S=v.next();!S.done;S=v.next())if(S=S.value,!(S instanceof VQ)){var d=void 0;((d=S.z1)==null?void 0:d.type)===O&&(S.z1=void 0)}}; g.u.rl=function(){}; g.u.B3=function(v){this.L=v}; g.u.HN=function(v){this.C=v}; g.u.XT=function(v,O){Qz(this.policy,v,4,O)}; g.u.v1=function(v){if(v==null?0:v.L2)if(v=v.L2.vp){v=g.y(v);for(var O=v.next();!O.done;O=v.next())if(O=O.value,O.formatId){var Y=this.WW.G.get(TD(O.formatId));Y&&Y.info&&(Y.info.debugInfo=O.debugInfo)}}}; g.u.kz=function(v){this.videoData.D().V("html5_server_controlled_resume_time_refactor")?this.Og.publish("reloadplayer",v):(v=v==null?void 0:v.reloadPlaybackParams)&&this.Og.publish("reloadplayer",v)}; g.u.fE=function(){return this.Og.fE()||""}; g.u.gG=function(){var v=yz(this.audioTrack,!0)*1E3,O=yz(this.videoTrack,!0)*1E3;return Math.min(v,O)}; g.u.Yy=function(v,O){this.loader.G0(v,O)}; g.u.pR=function(v){yzc(this.loader,vAd(this.Eg,v))}; g.u.cW=function(){g.X.prototype.cW.call(this);this.U=void 0;OhF(this,!0,"i");this.Y=[]};rzE.prototype.Vw=function(v,O){if(this.B)return zh3(this,O);if(O=BC(v)){var Y=O.U;Y&&Y.G&&Y.Y&&(v=v.G.length?v.G[0]:null)&&v.state>=2&&!v.Ey()&&v.info.No===0&&(this.B=v,this.L=Y,this.U=O.info,this.C=this.startTimeSecs=Date.now()/1E3,this.Z=this.U.startTime)}return NaN}; rzE.prototype.clear=function(){this.U=this.L=this.B=null;this.Y=this.Z=this.C=this.startTimeSecs=NaN;this.G=!1};g.C(g.nF,g.X);g.u=g.nF.prototype;g.u.initialize=function(v,O,Y){this.logger.debug(function(){return"Initialized, t="+v}); v=v||0;this.policy.Y||(O=YLd(this.Y),pjm(this.Og,new QV(O.video,O.reason)),this.Og.s5(new QV(O.audio,O.reason)));this.policy.Y&&wO(this);this.WW.isManifestless&&aSg(this.Z);this.L&&oLi(this.L,this.videoTrack.Y);O=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var S=!this.WW.isManifestless;this.policy.f$&&(S=S||this.WW.XH);this.policy.N3||(this.currentTime=S?v:O);this.policy.Ug&&this.seek(this.getCurrentTime(),{}).bv(function(){}); if(this.policy.Y){var d;((d=this.j)==null?0:IZc(d,this.fE()||""))&&Az7(this)&&Vz7(this,this.videoTrack)&&Vz7(this,this.audioTrack)&&(Slg(this.U,this.j),this.policy.Z&&Mz3(this))}else this.Ug&&(fdc(this,this.videoTrack),fdc(this,this.audioTrack),s0F(this.Ug),delete this.Ug);Y?(this.policy.rf?(this.Cj=Y,J0(this,Y)):J0(this,!1),g.HM(this.fu)):(Y=this.getCurrentTime()===0,IH(this.Z,this.videoTrack,this.videoTrack.Y,Y),IH(this.Z,this.audioTrack,this.audioTrack.Y,Y),this.policy.Y&&K6w(this.U,!0),this.policy.Ug|| this.seek(this.getCurrentTime(),{}).bv(function(){}),this.timing.tick("gv")); (this.WW.Zq||this.WW.ZT||this.WW.HW||this.WW.Cj||this.WW.rR)&&this.Og.Yx(this.WW)}; g.u.resume=function(){if(this.isSuspended||this.pL){this.logger.debug("Resumed.");this.E0=this.pL=this.isSuspended=!1;try{this.Vw()}catch(v){g.LP(v)}}}; g.u.YM=function(){return!this.policy.aI}; g.u.kK=function(v,O){v=v===void 0?!1:v;O=O===void 0?!1:O;this.logger.debug("detaching media source");czl(this);this.Og.eE()&&(this.C=NaN);v?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.FO&&this.G0("loader",{setsmb:1}),this.policy.JK=!0,this.rE()):(this.policy.rf?J0(this,this.Cj):J0(this,!1),O||this.rE())}; g.u.setAudioTrack=function(v,O,Y){Y=Y===void 0?!1:Y;if(!this.vW()){var S=!isNaN(O);Y&&S&&(this.audioTrack.Ug=Date.now(),this.policy.FZ&&(this.xg=!0));if(this.policy.Y){var d=this.B.nK(v.id,S);this.logger.debug(function(){return"Logging new audio format: "+d.Y.info.id}); this.Og.s5(d)}else{var r=N5i(this.Y,v.id,S);this.logger.debug(function(){return"Logging new audio format: "+r.audio.info.id}); this.Og.s5(new QV(r.audio,r.reason))}if(S&&(Y=this.audioTrack.Y.index.cE(O),this.G0("setAudio",{id:v.id,cmt:O,sq:Y}),Y>=0)){this.policy.Y&&this.wU(!0,"mosaic");aH(this.audioTrack,Y,NaN,NaN);!this.policy.N2&&this.WW.isLive&&T6(this.WW,Y,!1);return}this.Og.Ae()}}; g.u.setPlaybackRate=function(v){v!==this.X.getPlaybackRate()&&this.X.setPlaybackRate(v)}; g.u.bF=function(v){var O=this.U.L;this.U.B3(v);this.G0("scfidc",{curr:TD(O),"new":TD(v)});v&&TD(v)!==TD(O)&&(this.wU(!0,"caption change"),this.Vw())}; g.u.YD=function(v){this.U.HN(v)}; g.u.B5=function(v){var O=v.Y.info.hM();this.logger.debug(function(){return"New "+(O?"audio":"video")+" format from SABR: "+oI(v.Y.info)}); O?this.Og.s5(v):pjm(this.Og,v)}; g.u.pR=function(v){Lc(v.Id[v.Id.length-1])&&yzc(this,vAd(this.Y,v.Id[0].Y))}; g.u.jI=function(){return this.Og.jI()}; g.u.WL=function(){return this.Og.WL()}; g.u.aE=function(v){this.Og.D().XL()&&this.G0("sps",{status:v.Gc||""});if(v.Gc===1)this.Og.videoData.DL=0;else if(v.Gc===2||v.Gc===3){var O=!1;if(v.Gc===3){O=this.Og.IY();var Y;this.yC=(Y=v.Wng)!=null?Y:Infinity;this.Og.videoData.DL=O+1;(O=K2(this))&&this.SH(!0)}this.Og.sW(!0,O)}}; g.u.jJ=function(){return this.Og.jJ()}; g.u.wE=function(){return this.Og.wE()}; g.u.zy=function(v){this.Og.zy(v)}; g.u.cm0=function(){var v,O=(v=this.Og.Bq())==null?void 0:v.getCurrentTime();O?this.Og.G0("rms",{cta:O}):g.HM(this.R1)}; g.u.Vw=function(){C8c(this);if(this.Du&&mK(this.Du)&&!this.Du.Rr()&&(!this.policy.N3||isFinite(this.getCurrentTime()))){var v=A$(this.videoTrack);v=this.policy.IT&&v&&v.D0();this.WW.isManifestless&&this.WW.B&&yM(this.WW)?(this.C=yM(this.WW),this.Du.OJ(this.C)):FT(this.WW)&&!v?isNaN(this.C)?(this.C=this.getCurrentTime()+3600,this.Du.OJ(this.C)):this.C<=this.getCurrentTime()+1800&&(this.C=Math.max(this.C+1800,this.getCurrentTime()+3600),this.Du.OJ(this.C)):this.Du.isView||(v=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.C)||this.C!==v)&&v>0&&(this.Du.OJ(v),this.C=v))}if(!this.vW())if(CT(this.WW)&&this.WW.Ey()){var O=this.WW;this.handleError("manifest.net.retryexhausted",O.xg?{rc:O.rT}:{rc:O.rT.toString()},1)}else if(this.policy.Y)a:{try{Hm7(this.U);this.WW.isManifestless&&this.policy.Z&&Et(this.Pj);var Y;((Y=this.Du)==null?0:HS(Y))&&this.ND();K6w(this.U)}catch(b){g.Br(b);O=b;if(O.message.includes("changeType")){this.G0("ctype",{exp:O.name,msg:O.message,s:O.stack});break a}this.handleError("fmt.unplayable", {exp:O.name,msg:O.message,s:O.stack},1)}Kj$(this);g.HM(this.f1)}else if(!this.WW.U||!SUi(this.videoTrack)&&!SUi(this.audioTrack)||(this.videoTrack.Z||this.audioTrack.Z)&&this.policy.n1?Y=!1:(this.rE(),this.Og.seekTo(Infinity,{Vg:"checkLoaderTracksSync",oJ:!0}),Y=!0),!Y){C8c(this);this.WW.isManifestless&&(d_g(this.videoTrack),d_g(this.audioTrack),Et(this.Pj),(Y=BC(this.videoTrack))&&Y.U&&(Y=Y.U.G&&!this.policy.Ve,this.G0(Y===this.policy.L.mF?"strm":"strmbug",{strm:Y,sfmp4:this.policy.L.mF,dfs:this.policy.Ve}, !0)));if(this.Du)this.ND();else if(this.policy.B){var S;Y=!1;if(this.policy.Er){var d;v=g.y([this.videoTrack,this.audioTrack]);for(d=v.next();!d.done;d=v.next()){var r=d.value;for(d=BC(r);d&&r.k$()!==A$(r);d=BC(r))r.s$(d);Y=Y||!!d}}else(O=BC(this.videoTrack))&&this.videoTrack.s$(O),(S=BC(this.audioTrack))&&this.audioTrack.s$(S);c$(this.videoTrack)&&c$(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(O||S||Y)&&Xo(this)}$J3(this);IH(this.Z,this.videoTrack,this.videoTrack.Y, !1);IH(this.Z,this.audioTrack,this.audioTrack.Y,!1);this.policy.kt||xJc(this,this.videoTrack,this.audioTrack);ka3(this.Z,this.videoTrack,this.audioTrack);ka3(this.Z,this.audioTrack,this.videoTrack);Kj$(this);this.L&&(O=this.L,O.B?(S=O.C+O.policy.rk,O.G||(S=Math.min(S,O.startTimeSecs+O.policy.J3)),O=Math.max(0,S*1E3-Date.now())):O=NaN,isNaN(O)||g.HM(this.oI,O));g.HM(this.f1)}}; g.u.X$=function(v){this.Og.X$(v)}; g.u.ND=function(){var v=this;if(this.Du){var O=this.Du.Y,Y=this.Du.U;NXw(this,this.audioTrack);NXw(this,this.videoTrack);var S=ldc(this);if(S){if(this.policy.Jp){if(!O.oz()){var d=BC(this.audioTrack);if(d){if(!qg(this,this.audioTrack,O,d.info))return;Rhg(this,this.audioTrack,O,d)}}if(!Y.oz()&&(d=BC(this.videoTrack))){if(!qg(this,this.videoTrack,Y,d.info))return;Rhg(this,this.videoTrack,Y,d)}}this.b4||(this.b4=(0,g.J)(),this.logger.debug(function(){return"Appends pause start "+v.b4+" reason "+S}), this.policy.U&&this.G0("apdps",{r:S}))}else if(this.b4&&(TXg(this,this.b4),this.b4=0),Fjd(this),d=!1,BXn(this,this.videoTrack,Y)&&(d=!0,p7Q(this.timing),hJn(this.timing)),this.Du&&!this.Du.bb()&&(BXn(this,this.audioTrack,O)&&(d=!0,T5d(this.timing),RJi(this.timing)),!this.vW()&&this.Du))!this.policy.aI&&c$(this.videoTrack)&&c$(this.audioTrack)&&mK(this.Du)&&!this.Du.Rr()&&(Y=!1,Y=A$(this.audioTrack).Y,Y=Y===this.WW.Y[Y.info.id])&&(this.logger.debug("Setting EOS"),QEE(this.Du),Ymi(this.schedule)),d&& !this.Du.isAsync()&&Xo(this)}}; g.u.f6=function(v){var O,Y=v===((O=this.Du)==null?void 0:O.Y)?this.audioTrack:this.videoTrack,S;if((S=BC(Y))==null?0:S.isLocked){if(this.Og.D().XL()){var d;this.G0("eosl",{ounlock:(d=BC(Y))==null?void 0:d.info.d2()})}var r;nL3(this,v===((r=this.Du)==null?void 0:r.Y))}var b;if(this.policy.FZ&&v===((b=this.Du)==null?void 0:b.Y)&&this.yx){O=this.yx-this.getCurrentTime();var z;this.Og.G0("asl",{l:O,xtag:(z=A$(this.audioTrack))==null?void 0:z.Y.info.Y});this.xg=!1;this.yx=0}v.x8()&&v.UM().length===0&& (v.BM(),this.Du&&!this.Du.x8()&&(this.Og.D().XL()&&this.Og.G0("rms",{ld:"seek"}),this.Du.C=performance.now(),this.Og.UL(),this.Og.D().XL()&&g.HM(this.R1)));var M;(M=Y.j)!=null&&iW(M,0);this.policy.Te?n2(this):this.Vw()}; g.u.sdK=function(v){if(this.Du){var O=A$(v===this.Du.Y?this.audioTrack:this.videoTrack);if(v=v.l_())for(var Y=0;Y5&&v.tK.shift();O=O.Vx;var V;if((V=this.Og.getVideoData())==null?0:V.enableServerStitchedDai)V=WMm(this.audioTrack,O),Y=WMm(this.videoTrack,O),V!==0&&Y!==0&&V!==Y&&this.handleError("ssdai.avsync",{sq:O,a:V,v:Y},0)}}; g.u.l5=function(v,O,Y,S){v.info.video&&this.G.l5(O,Y,S)}; g.u.m1=function(v){this.Y.m1(v)}; g.u.Qa=vm(20);g.u.qQ=function(){return this.videoTrack.L||this.audioTrack.L}; g.u.seek=function(v,O){if(this.vW())return ld();if(this.qQ())return ld("seeking to head");if(this.policy.Ug&&!isFinite(v))return YGQ(this.Pj),g.T7(Infinity);C8c(this);wO(this);this.policy.Y||$J3(this,v);this.Du&&this.Du.Y&&this.Du.U&&!this.Og.getVideoData().T5&&(this.Du.Y.isLocked()||this.Du.U.isLocked())&&this.Og.Ae({reattachOnLockedBuffer:1,vsb:""+this.Du.U.isLocked(),asb:""+this.Du.Y.isLocked()});var Y=this.getCurrentTime(),S=this.Pj.seek(v,O);this.policy.N3||(this.currentTime=S);e8(this.G,v,Y, this.policy.Qs&&!O.Cz);Xo(this);return g.T7(S)}; g.u.kJ=function(v){return this.policy.Y&&this.U.kJ(v)}; g.u.rh=function(v){return this.U.rh(v)}; g.u.wU=function(v,O){this.U.wU(v,O)}; g.u.getCurrentTime=function(){if(this.policy.N3){var v=this.En()||0;return this.Og.getCurrentTime()-v}return this.currentTime}; g.u.ZG=function(){return this.audioTrack.Y.info}; g.u.BA=function(){return this.videoTrack.Y.info}; g.u.uy=function(){return this.audioTrack.Y.info.z0}; g.u.xK=function(){return this.videoTrack.Y.info.z0}; g.u.cW=function(){try{this.kK(),FZ(this.audioTrack),FZ(this.videoTrack),F7(this.audioTrack),F7(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.X.prototype.cW.call(this)}catch(v){g.LP(v)}}; g.u.handleError=function(v,O,Y){Y=Y===void 0?0:Y;var S=FW(Y);v==="fmt.unplayable"&&this.WW.isLive&&(this.policy.Jp=!1,pT(this.WW));O=new lJ(v,O,Y);g.OJ(this);TB(O.details);this.Og.handleError(O);v!=="html5.invalidstate"&&O.errorCode!=="fmt.unplayable"&&v!=="fmt.unparseable"&&S&&this.dispose()}; g.u.Yu=function(){var v=A$(this.audioTrack),O=A$(this.videoTrack);v={lct:this.getCurrentTime().toFixed(3),lsk:this.Pj.isSeeking(),lmf:this.Y.Y.isLocked(),lbw:fH(this.schedule).toFixed(3),lhd:Vg(this.schedule).toFixed(3),lst:((this.schedule.L.In()||0)*1E9).toFixed(3),laa:v?v.d2():"",lva:O?O.d2():"",lar:this.audioTrack.U?this.audioTrack.U.d2():"",lvr:this.videoTrack.U?this.videoTrack.U.d2():"",laq:""+uw(this.audioTrack),lvq:""+uw(this.videoTrack)};this.Du&&!this.Du.bb()&&this.Du.Y&&this.Du.U&&(v.lab= WS(this.Du.Y.UM()),v.lvb=WS(this.Du.U.UM()));this.b4&&(v.lapt=((0,g.J)()-this.b4).toFixed(0),v.lapr=ldc(this));this.N3&&(v.lapmabht=((0,g.J)()-this.N3).toFixed(0),v.lapmabh=Rg(this,this.audioTrack).toFixed(0));this.g8&&(v.lapmvbht=((0,g.J)()-this.g8).toFixed(0),v.lapmvbh=Rg(this,this.videoTrack).toFixed(0));this.FO&&(v.lapsdai=((0,g.J)()-this.FO).toFixed(0));return v}; g.u.rE=function(){try{this.policy.Y&&this.U.wU(!1,"pending"),this.audioTrack.rE(),this.videoTrack.rE()}catch(v){g.LP(v)}this.policy.B=""}; g.u.dG=function(){return uy(this.X)}; g.u.G0=function(v,O,Y){this.Og.G0(v,O,Y===void 0?!1:Y)}; g.u.fE=function(){return this.Og.fE()}; g.u.oJ=function(v,O){v/=O;isNaN(this.timestampOffset)&&ve$(this,v-Math.min(v,this.policy.f0));return(v-this.timestampOffset)*O}; g.u.En=function(){return this.timestampOffset}; g.u.isSeeking=function(){return this.Pj.isSeeking()}; g.u.f3=function(){this.G.f3()}; g.u.ut=function(v,O,Y){O=O===void 0?!1:O;Y=Y===void 0?{}:Y;this.policy.Y?this.B.ut(v,O,Y):this.Y.ut(v,O,Y)}; g.u.UJ=function(v,O){if(this.tK&&this.G.UJ(v,this.tK))return ve$(this,this.timestampOffset-O),Xo(this),this.policy.G&&(pT(this.WW),F7(this.audioTrack),F7(this.videoTrack),this.rE()),!0;O=this.videoTrack.Y.index.cE(v);this.handleError("ad.skipfailed",{dec:!!this.tK,t:v.toFixed(3),sq:O});return!1}; g.u.getManifest=function(){return this.WW}; g.u.isOffline=function(){return!!this.Og.getVideoData().cotn}; g.u.bN=function(v,O){this.Og.bN(v,O)}; g.u.lf=function(v){if(this.policy.Y)this.U.wU(!0,"utc"),this.Vw();else{var O=this.Og.getVideoData().WE;if(O){var Y=this.Z;Y.SN=v;Y.WE=O;P$(this)}}}; g.u.Lz=function(v){this.videoTrack.L=!1;this.audioTrack.L=!1;this.Pj.U=!1;this.Og.Lz(v)}; g.u.Zm=function(v){this.Pj.Zm(v-this.En())}; g.u.tD=function(){this.Og.tD()}; g.u.SH=function(v){v!==this.policy.oS&&((this.policy.oS=v)||this.Vw())}; g.u.A0=function(v,O){var Y=this.audioTrack.A$,S=this.videoTrack.A$;Y&&S&&(Y.remove(v,O),S.remove(v,O))}; g.u.Ae=function(v){this.Og.Ae(v)}; g.u.m7=function(v){this.Og.m7(v)}; g.u.IY=function(){return this.Og.IY()}; g.u.GT=function(){pT(this.WW);this.rE()};g.u=g.Pu.prototype;g.u.fC=function(v,O,Y,S,d,r){return this.f_.fC(v,O,Y,S,d,r)}; g.u.iY=function(v,O,Y,S,d,r){return this.f_.iY(v,O,Y,S,d,r)}; g.u.u_=function(v){return this.f_.u_(v)}; g.u.f7=function(v){this.f_.f7(v)}; g.u.LC=function(v,O,Y,S){return this.f_.LC(v,O,Y,S)}; g.u.f3=function(){this.f_.f3()}; g.u.cK=function(v,O){this.f_.cK(v,O)}; g.u.K9=function(){this.f_.K9()}; g.u.Tu=vm(62);g.u.S6=function(v,O,Y){this.f_.S6(v,O,Y)}; g.u.gB=vm(65);g.u.fz=function(v,O,Y,S,d,r,b,z,M){this.f_.fz(v,O,Y,S,d,r,b,z,M)}; g.u.Vp=function(v){this.f_.Vp(v)}; g.u.wr=function(v){return this.f_.wr(v)}; g.u.Dt=function(v){return this.f_.Dt(v)};g.C(Gr,g.MU);g.C(ia,Gr);ia.prototype.C=function(v,O){if(v&&O){var Y=Number(Fa(v,"cpi"))*1+1;isNaN(Y)||Y<=0||Ythis.G&&(this.G=Y,g.tY(this.Y)||(this.Y={},this.B.stop(),this.U.stop())),this.Y[O]=v,g.HM(this.U))}}; ia.prototype.Z=function(){for(var v=g.y(Object.keys(this.Y)),O=v.next();!O.done;O=v.next()){var Y=O.value;O=this.publish;for(var S=this.G,d=g.Uz(this.Y[Y]),r=[],b=g.y(d[6].split("&")),z=b.next();!z.done;z=b.next())z=z.value,z.indexOf("cpi=")===0?r.push("cpi="+S.toString()):z.indexOf("ek=")===0?r.push("ek="+g.gn(Y)):r.push(z);d[6]="?"+r.join("&");Y="skd://"+d.slice(2).join("");d=Y.length*2;S=new Uint8Array(d+4);S[0]=d%256;S[1]=(d-S[0])/256;for(d=0;d0)for(var Y=g.y(this.Y),S=Y.next();!S.done;S=Y.next())if(O===S.value.info.cryptoPeriodIndex){O=!0;break a}O=!1}if(!O){O=(0,g.J)();a:{Y=v.cryptoPeriodIndex;if(!isNaN(Y)){S=g.y(this.G.values());for(var d=S.next();!d.done;d=S.next())if(Math.abs(d.value.cryptoPeriodIndex-Y)<=1){Y=!0;break a}}Y=!1}Y?(Y=v.Y,Y=Math.max(0,Math.random()*((isNaN(Y)?120:Y)-30))*1E3):Y=0;this.publish("log_qoe",{wvagt:"delay."+Y,cpi:v.cryptoPeriodIndex,reqlen:this.Y.length, ignore:this.B});Y<=0?dGn(this,v):this.B||(this.Y.push({time:O+Y,info:v}),g.HM(this.U,Y))}}; m1.prototype.cW=function(){this.Y=[];Gr.prototype.cW.call(this)};var f3={},sHw=(f3.DRM_TRACK_TYPE_AUDIO="AUDIO",f3.DRM_TRACK_TYPE_SD="SD",f3.DRM_TRACK_TYPE_HD="HD",f3.DRM_TRACK_TYPE_UHD1="UHD1",f3);g.C(oen,g.X);g.C(MO$,g.MU);g.u=MO$.prototype;g.u.xo=function(v){var O=this;if(!(this.vW()||v.size<=0)){var Y={};v.forEach(function(S,d){var r=XT(O.U)?d:S;d=new Uint8Array(XT(O.U)?S:d);XT(O.U)&&Fll(d);S=g.bV(d,4);Fll(d);d=g.bV(d,4);O.Y[S]?O.Y[S].status=r:O.Y[d]?O.Y[d].status=r:O.Y[S]={type:"",status:r};r=O.Y[S].type;S=TOE(r);Hu(O,r)&&!Y[S]&&(O.NT.push(S),Y[S]=!0)}); xjd(this,",");t0(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.u.error=function(v,O,Y,S){this.vW()||(this.publish("licenseerror",v,O,Y,S),v==="drm.provision"&&(v=(Date.now()-this.C)/1E3,this.C=NaN,this.publish("ctmp","provf",{et:v.toFixed(3)})));FW(O)&&this.dispose()}; g.u.shouldRetry=function(v,O){return!v&&this.requestNumber===O.requestNumber}; g.u.cW=function(){this.Y={};g.MU.prototype.cW.call(this)}; g.u.Yu=function(){var v={ctype:this.X.contentType||"",length:this.X.initData.length,requestedKeyIds:this.HW,cryptoPeriodIndex:this.cryptoPeriodIndex};this.G&&(v.keyStatuses=this.Y);return v}; g.u.getInfo=function(){var v=this.B.join();if(D1(this)){var O=new Set,Y;for(Y in this.Y)this.Y[Y].status!=="usable"&&O.add(this.Y[Y].type);v+="/UKS."+Array.from(O)}return v+="/"+this.cryptoPeriodIndex}; g.u.Sp=function(){return this.url};g.C(Ng,g.X);g.u=Ng.prototype;g.u.K6=function(v){if(this.Z){var O=v.messageType||"license-request";this.Z(new Uint8Array(v.message),O)}}; g.u.xo=function(){this.L&&this.L(this.Y.keyStatuses)}; g.u.onClosed=function(){this.vW()||g.Jy("xboxone")&&this.G&&this.G("closedShouldNotRetry")}; g.u.S7=function(v){this.Z&&this.Z(v.message,"license-request")}; g.u.W2=function(v){if(this.G){if(this.U){var O=this.U.error.code;v=this.U.error.systemCode}else O=v.errorCode,v=v.systemCode;this.G("t.prefixedKeyError;c."+O+";sc."+v,O,v)}}; g.u.LG=function(){this.C&&this.C()}; g.u.update=function(v){var O=this;if(this.Y)return this.Y.update(v).then(null,ps(function(Y){Rp1(O,"t.update",Y)})); this.U?this.U.update(v):this.element.addKey?this.element.addKey(this.X.keySystem,v,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.X.keySystem,v,this.initData,this.sessionId);return Eq()}; g.u.cW=function(){this.Y&&(this.j?this.Y.close().catch(g.Br):this.Y.close());this.element=null;g.X.prototype.cW.call(this)};g.C(vx,g.X);g.u=vx.prototype;g.u.setServerCertificate=function(){return this.U.setServerCertificate?this.Y.flavor==="widevine"&&this.Y.N6?this.U.setServerCertificate(this.Y.N6):q9(this.Y)&&this.Y.XO?this.U.setServerCertificate(this.Y.XO):null:null}; g.u.createSession=function(v,O){var Y=v.initData;if(this.Y.keySystemAccess){O&&O("createsession");var S=this.U.createSession();IW(this.Y)?Y=QHw(Y,this.Y.XO):q9(this.Y)&&(Y=STF(Y)||new Uint8Array(0));O&&O("genreq");v=S.generateRequest(v.contentType,Y);var d=new Ng(null,null,null,S,null,this.L);v.then(function(){O&&O("genreqsuccess")},ps(function(b){Rp1(d,"t.generateRequest",b)})); return d}if(Zf(this.Y))return BOF(this,Y);if(we(this.Y))return LlQ(this,Y);if((S=this.element)==null?0:S.generateKeyRequest)this.element.generateKeyRequest(this.Y.keySystem,Y);else{var r;(r=this.element)==null||r.webkitGenerateKeyRequest(this.Y.keySystem,Y)}return this.B=new Ng(this.element,this.Y,Y,null,null,this.L)}; g.u.P0=function(v){var O=Z2E(this,v);O&&O.S7(v)}; g.u.TU=function(v){var O=Z2E(this,v);O&&O.W2(v)}; g.u.Eu=function(v){var O=Z2E(this,v);O&&O.LG(v)}; g.u.getMetrics=function(){if(this.U&&this.U.getMetrics)try{var v=this.U.getMetrics()}catch(O){}return v}; g.u.cW=function(){this.G=this.U=null;var v;(v=this.B)==null||v.dispose();v=g.y(Object.values(this.C));for(var O=v.next();!O.done;O=v.next())O.value.dispose();this.C={};g.X.prototype.cW.call(this);delete this.element};g.u=Oj.prototype;g.u.get=function(v){v=this.findIndex(v);return v!==-1?this.values[v]:null}; g.u.remove=function(v){v=this.findIndex(v);v!==-1&&(this.keys.splice(v,1),this.values.splice(v,1))}; g.u.removeAll=function(){this.keys=[];this.values=[]}; g.u.set=function(v,O){var Y=this.findIndex(v);Y!==-1?this.values[Y]=O:(this.keys.push(v),this.values.push(O))}; g.u.findIndex=function(v){return g.MN(this.keys,function(O){return g.eU(v,O)})};g.C(ITn,g.MU);g.u=ITn.prototype;g.u.vyx=function(v){this.gy({onecpt:1});v.initData&&J$1(this,new Uint8Array(v.initData),v.initDataType)}; g.u.y$x=function(v){this.gy({onndky:1});J$1(this,v.initData,v.contentType)}; g.u.Ig=function(v){this.gy({onneedkeyinfo:1});this.Yg.V("html5_eme_loader_sync")&&(this.L.get(v.initData)||this.L.set(v.initData,v));nad(this,v)}; g.u.zE=function(v){this.G.push(v);YF(this)}; g.u.createSession=function(v){var O=Pwl(this)?uT3(v):g.bV(v.initData);this.U.get(O);this.JK=!0;v=new MO$(this.videoData,this.Yg,v,this.drmSessionId);this.U.set(O,v);v.subscribe("ctmp",this.e7,this);v.subscribe("keystatuseschange",this.xo,this);v.subscribe("licenseerror",this.Jj,this);v.subscribe("newlicense",this.Vk,this);v.subscribe("newsession",this.Fl,this);v.subscribe("sessionready",this.uB,this);v.subscribe("fairplay_next_need_key_info",this.CG,this);this.Yg.V("html5_enable_vp9_fairplay")&&v.subscribe("qualitychange", this.J1,this);v.subscribe("sabrlicenseconstraint",this.HP0,this);$jm(v,this.B)}; g.u.Vk=function(v){this.vW()||(this.gy({onnelcswhb:1}),v&&!this.heartbeatParams&&(this.heartbeatParams=v,this.publish("heartbeatparams",v)))}; g.u.Fl=function(){this.vW()||(this.gy({newlcssn:1}),this.G.shift(),this.JK=!1,YF(this))}; g.u.uB=function(){if(Zf(this.Y)&&(this.gy({onsnrdy:1}),this.g8--,this.g8===0)){var v=this.tK,O,Y;(O=v.element)==null||(Y=O.msSetMediaKeys)==null||Y.call(O,v.G)}}; g.u.xo=function(v){if(!this.vW()){!this.FO&&this.videoData.V("html5_log_drm_metrics_on_key_statuses")&&(G$d(this),this.FO=!0);this.gy({onksch:1});var O=this.J1;if(!D1(v)&&g.i9&&v.U.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var Y="large";else{Y=[];var S=!0;if(D1(v))for(var d=g.y(Object.keys(v.Y)),r=d.next();!r.done;r=d.next())r=r.value,v.Y[r].status==="usable"&&Y.push(v.Y[r].type),v.Y[r].status!=="unknown"&&(S=!1);if(!D1(v)||S)Y=v.B;Y=aTQ(Y)}O.call(this,Y);if(!D1(v)){O= {};Y=[];S=g.y(v.B);for(d=S.next();!d.done;d=S.next())d=TOE(d.value),O[d]||(Y.push(d),O[d]=!0);v.NT=Y}this.videoData.NT=v.NT;this.publish("keystatuseschange",v)}}; g.u.e7=function(v,O){this.vW()||this.publish("ctmp",v,O)}; g.u.CG=function(v,O){this.vW()||this.publish("fairplay_next_need_key_info",v,O)}; g.u.Jj=function(v,O,Y,S){this.vW()||(this.videoData.V("html5_log_drm_metrics_on_error")&&G$d(this),this.publish("licenseerror",v,O,Y,S))}; g.u.DR=function(){return this.X}; g.u.J1=function(v){var O=g.bB("auto",v,!1,"l");if(this.videoData.Qc){if(this.X.equals(O))return}else if(Snd(this.X,v))return;this.X=O;this.publish("qualitychange");this.gy({updtlq:v})}; g.u.HP0=function(v){this.videoData.sabrLicenseConstraint=v}; g.u.cW=function(){this.Y.keySystemAccess&&this.element&&(this.HW?this.element.setMediaKeys(null).catch(g.Br):this.element.setMediaKeys(null));this.element=null;this.G=[];for(var v=g.y(this.U.values()),O=v.next();!O.done;O=v.next())O=O.value,O.unsubscribe("ctmp",this.e7,this),O.unsubscribe("keystatuseschange",this.xo,this),O.unsubscribe("licenseerror",this.Jj,this),O.unsubscribe("newlicense",this.Vk,this),O.unsubscribe("newsession",this.Fl,this),O.unsubscribe("sessionready",this.uB,this),O.unsubscribe("fairplay_next_need_key_info", this.CG,this),this.Yg.V("html5_enable_vp9_fairplay")&&O.unsubscribe("qualitychange",this.J1,this),O.dispose();this.U.clear();this.C.removeAll();this.L.removeAll();this.heartbeatParams=null;g.MU.prototype.cW.call(this)}; g.u.Yu=function(){for(var v={systemInfo:this.Y.Yu(),sessions:[]},O=g.y(this.U.values()),Y=O.next();!Y.done;Y=O.next())v.sessions.push(Y.value.Yu());return v}; g.u.getInfo=function(){return this.U.size<=0?"no session":""+this.U.values().next().value.getInfo()+(this.Z?"/KR":"")}; g.u.gy=function(v,O){O=O===void 0?!1:O;this.vW()||(TB(v),(this.Yg.XL()||O)&&this.publish("ctmp","drmlog",v))};g.C(H2F,g.X);g.u=H2F.prototype;g.u.Io=function(){return!!this.K2}; g.u.Hy=function(){return this.U}; g.u.handleError=function(v){var O=this;dgE(this,v);if((v.errorCode!=="html5.invalidstate"&&v.errorCode!=="fmt.unplayable"&&v.errorCode!=="fmt.unparseable"||!SbJ(this,v.errorCode,v.details))&&!jkw(this,v)){if(this.Qx.tK!=="yt"&&bFd(this,v)&&this.videoData.cA&&(0,g.J)()/1E3>this.videoData.cA&&this.Qx.tK==="hm"){var Y=Object.assign({e:v.errorCode},v.details);Y.stalesigexp="1";Y.expire=this.videoData.cA;Y.init=this.videoData.XP/1E3;Y.now=(0,g.J)()/1E3;Y.systelapsed=((0,g.J)()-this.videoData.XP)/1E3;v= new lJ(v.errorCode,Y,2);this.Og.g4(v.errorCode,2,"SIGNATURE_EXPIRED",TB(v.details))}if(FW(v.severity)){var S;Y=(S=this.Og.loader)==null?void 0:S.Y.Y;if(this.Qx.V("html5_use_network_error_code_enums"))if(r0Q(v)&&Y&&Y.isLocked())var d="FORMAT_UNAVAILABLE";else if(this.Qx.C||v.errorCode!=="auth"||v.details.rc!==429)v.errorCode==="ump.spsrejectfailure"&&(d="HTML5_SPS_UMP_STATUS_REJECTED");else{d="TOO_MANY_REQUESTS";var r="6"}else r0Q(v)&&Y&&Y.isLocked()?d="FORMAT_UNAVAILABLE":this.Qx.C||v.errorCode!== "auth"||v.details.rc!=="429"?v.errorCode==="ump.spsrejectfailure"&&(d="HTML5_SPS_UMP_STATUS_REJECTED"):(d="TOO_MANY_REQUESTS",r="6");this.Og.g4(v.errorCode,v.severity,d,TB(v.details),r)}else this.Og.publish("nonfatalerror",v),S=/^pp/.test(this.videoData.clientPlaybackNonce),this.OE(v.errorCode,v.details),S&&v.errorCode==="manifest.net.connect"&&(v="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.J)(),Ut(v,"manifest",function(b){O.C=!0;O.G0("pathprobe",b)}, function(b){O.OE(b.errorCode,b.details)}))}}; g.u.G0=function(v,O){this.Og.Kj().G0(v,O)}; g.u.OE=function(v,O){O=TB(O);this.Og.Kj().OE(v,O)};SH.prototype.Qf=function(v){var O=MTl(this);if(!v)return{Mf:Xu,nm:Xu,Lx:Xu,ED:Xu,Hp:Xu,W3:Xu,Dp:O};var Y=Xu;if(jZ(O)||this.V("html5_perf_cap_override_sticky"))Y=xgm(this,v);return{Mf:Y,nm:UgQ(this,v),Lx:$gi(this,v),ED:pud(this,v.videoData),Hp:T7c(this,v.videoData,v),W3:A0d(this,v),Dp:O}}; SH.prototype.Q1=function(v){var O;g.F_(this.Yg)&&(O=window.screen&&window.screen.width?new g.hc(window.screen.width,window.screen.height):null);O||(O=this.Yg.Fk?this.Yg.Fk.clone():this.Mv.Q$());(Db||PX||v)&&O.scale(g.KH());return O}; SH.prototype.V=function(v){return this.Yg.V(v)};g.C(r8,g.X);r8.prototype.onError=function(v){if(v!=="player.fatalexception"||this.provider.V("html5_exception_to_health"))v==="sabr.fallback"&&(this.encounteredSabrFallback=!0),v.match(aQN)?this.networkErrorCount++:this.nonNetworkErrorCount++}; r8.prototype.send=function(){if(!(this.G||this.Y<0)){hSJ(this);var v=g.KF(this.provider)-this.Y,O="PLAYER_PLAYBACK_STATE_UNKNOWN",Y=this.playerState.ib;this.playerState.isError()?O=Y&&Y.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.G(this.playerState,2)?O="PLAYER_PLAYBACK_STATE_ENDED":g.G(this.playerState,64)?O="PLAYER_PLAYBACK_STATE_UNSTARTED":g.G(this.playerState,16)||g.G(this.playerState,32)?O="PLAYER_PLAYBACK_STATE_SEEKING":g.G(this.playerState,1)&&g.G(this.playerState, 4)?O="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.G(this.playerState,1)?O="PLAYER_PLAYBACK_STATE_BUFFERING":g.G(this.playerState,4)?O="PLAYER_PLAYBACK_STATE_PAUSED":g.G(this.playerState,8)&&(O="PLAYER_PLAYBACK_STATE_PLAYING");Y=M9w[Az(this.provider.videoData)];a:switch(this.provider.Yg.playerCanaryState){case "canary":var S="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":S="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:S="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var d=RSi(this.provider), r=this.U<0?v:this.U-this.Y;v=this.provider.Yg.iO+36E5<(0,g.J)();O={started:this.U>=0,stateAtSend:O,joinLatencySecs:r,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:S,playerCanaryStage:d,isAd:this.provider.videoData.isAd(),liveMode:Y,hasDrm:!!g.MJ(this.provider.videoData),isGapless:this.provider.videoData.L,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:Ol(this.provider.videoData)};v||g.z2("html5PlayerHealthEvent",O);this.G=!0;this.dispose()}}; r8.prototype.cW=function(){this.G||this.send();window.removeEventListener("error",this.bd);window.removeEventListener("unhandledrejection",this.bd);g.X.prototype.cW.call(this)}; var aQN=/\bnet\b/;g.C(EEm,g.X);EEm.prototype.cW=function(){L1c(this);g.X.prototype.cW.call(this)};var B7c=/[?&]cpn=/;g.C(bG,g.X);bG.prototype.flush=function(){var v={};this.U&&(v.pe=this.U);this.Y.length>0&&(v.pt=this.Y.join("."));this.Y=[];return v}; bG.prototype.stop=function(){var v=this,O,Y,S;return g.B(function(d){if(d.U==1)return g.cm(d,2),g.E(d,(O=v.B)==null?void 0:O.stop(),4);if(d.U!=2)return(Y=d.Y)&&v.logTrace(Y),g.ai(d,0);S=g.Tc(d);v.U=J0i(S.message);g.UE(d)})}; bG.prototype.logTrace=function(v){this.encoder.reset();this.encoder.add(1);this.encoder.add(v.resources.length);for(var O=g.y(v.resources),Y=O.next();!Y.done;Y=O.next()){Y=Y.value.replace("https://www.youtube.com/s/","");this.encoder.add(Y.length);for(var S=0;S=0?v:g.KF(this.provider),this.JK?xy8.has(this.RF)&&(this.Y.size||(this.RF==="PL"?v>=this.U+30:v<=this.Ug+30||v>=this.U+1200&&v<=this.Ug+86400))&&(g.Wx(this,v,"vps",[this.RF]),this.U=v):["PL","B","S"].indexOf(this.RF)>-1&&(this.Y.size||v>=this.U+30)&&(g.Wx(this,v,"vps",[this.RF]),this.U=v),this.Y.size)){this.sequenceNumber===7E3&&g.Br(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){g8(this,v);var O=this.provider.Og.BG(); O=g.y(O);for(var Y=O.next();!Y.done;Y=O.next())Y=Y.value,this.G0(Y.key,Y.value);O=v;Y=this.provider.Og.mW();var S=Y.droppedVideoFrames||0,d=Y.totalVideoFrames||0,r=S-this.Z$,b=d&&!this.h0;S>Y.totalVideoFrames||r>5E3?Sj1(this,"html5.badframedropcount","df."+S+";tf."+Y.totalVideoFrames):(r>0||b)&&g.Wx(this,O,"df",[r]);this.Z$=S;this.h0=d;this.X>0&&(g.Wx(this,v,"glf",[this.X]),this.X=0);jA.isActive()&&(v=jA.VS(),Object.keys(v).length>0&&this.G0("profile",v));this.Cj&&MQ(this,"lwnmow");this.provider.Yg.XL()&& this.provider.V("html5_record_now")&&this.G0("now",{wt:(0,g.J)()});v={};this.provider.videoData.U&&(v.fmt=this.provider.videoData.U.itag,(O=this.provider.videoData.B)&&O.itag!==v.fmt&&(v.afmt=O.itag));v.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(v.adcpn=this.adCpn);this.tL&&(v.addocid=this.tL);this.contentCpn&&(v.ccpn=this.contentCpn);this.tK&&(v.cdocid=this.tK);this.provider.videoData.cotn&&(v.cotn=this.provider.videoData.cotn);v.el=l8(this.provider.videoData);v.content_v=hz(this.provider.videoData); v.ns=this.provider.Yg.tK;v.fexp=IDw(this.provider.Yg.experiments).toString();v.cl=(760426699).toString();(O=this.provider.videoData.adFormat||this.adFormat)&&(v.adformat=O);(O=Az(this.provider.videoData))&&(v.live=O);this.provider.videoData.aS()&&(v.drm=1,this.provider.videoData.Z&&(v.drm_system=gWC[this.provider.videoData.Z.flavor]||0),this.provider.videoData.drmProduct&&(v.drm_product=this.provider.videoData.drmProduct));Wf()&&this.provider.videoData.C&&(v.ctt=this.provider.videoData.C,v.cttype= this.provider.videoData.Q_,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.Yr&&(v.dai_fallback="1")):this.provider.videoData.PD?v.dai="cs":this.provider.videoData.oU&&(v.dai="disabled");v.seq=this.sequenceNumber++;if(this.provider.videoData.jw){if(O=this.provider.videoData.jw,v&&O)for(O.ns==="3pp"&&(v.ns="3pp"),this.II.has(O.ns)&& MQ(this,"hbps"),O.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=O.shbpslc),this.provider.Yg.experiments.T0("html5_use_server_qoe_el_value")&&this.yx.delete("el"),Y=g.y(Object.keys(O)),S=Y.next();!S.done;S=Y.next())S=S.value,this.yx.has(S)||(v[S]=O[S])}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.Yg.Y);if(O=v.seq)O={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+O,serializedWatchEndpointLoggingContext:this.provider.videoData.Kn1},this.serializedHouseBrandPlayerServiceLoggingContext&&(O.serializedHouseBrandPlayerServiceLoggingContext=jl(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(O.playerResponseCpn=this.provider.videoData.playerResponseCpn),jH.length&&(O.decoderInfo=jH),this.remoteControlMode&&(O.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(O.remoteConnectedDevices= this.remoteConnectedDevices),O=g.H3(O,lVE),O=g.bV(O,4),this.Y.set("qclc",[O]);v=g.Te("//"+this.provider.Yg.vu+"/api/stats/qoe",v);Y=O="";S=g.y(this.Y.entries());for(d=S.next();!d.done;d=S.next())r=g.y(d.value),d=r.next().value,r=r.next().value,b=void 0,(b=r)!=null&&b.join&&(d="&"+d+"="+r.join(","),d.length>100?Y+=d:O+=d);N77(this,v+O,Y.replace(/ /g,"%20"))}this.Y.clear()}}; g.u.m7=function(v){this.Cj=v}; g.u.H3=function(){if(this.provider.videoData.Z){var v=this.provider.videoData.Z;MQ(this,"eme-"+(v.keySystemAccess?"final":Zf(v)?"ms":IW(v)?"ytfp":we(v)?"safarifp":"nonfinal"))}}; g.u.I4=vm(59);g.u.zF=function(v){this.isEmbargoed=v}; g.u.i6=vm(36);g.u.PB=vm(42);g.u.onPlaybackRateChange=function(v){var O=g.KF(this.provider);v&&v!==this.oI&&(g.Wx(this,O,"rate",[v]),this.oI=v);this.JK||this.reportStats(O)}; g.u.Oz=vm(30);g.u.getPlayerState=function(v){if(g.G(v,128))return"ER";if(g.G(v,2048))return"B";if(g.G(v,512))return"SU";if(g.G(v,16)||g.G(v,32))return"S";if(v.isOrWillBePlaying()&&g.G(v,64))return"B";var O=pLv[Am(v)];g.lx(this.provider.Yg)&&O==="B"&&this.provider.Og.getVisibilityState()===3&&(O="SU");O==="B"&&g.G(v,4)&&(O="PB");return O}; g.u.cW=function(){g.X.prototype.cW.call(this);g.Uq(this.HW);g.Uq(this.rR)}; g.u.Mc=function(v){this.isOffline=v;g.Wx(this,g.KF(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.u.G0=function(v,O,Y){var S=this.aI.indexOf(v)!==-1;S||this.aI.push(v);if(!Y||!S){var d=typeof O!=="string"?TB(O):O;d=rqm(d);if(!Y&&!/^t[.]/.test(d)){var r=g.KF(this.provider)*1E3;d="t."+r.toFixed()+";"+d}sj(this,"ctmp",v+":"+d);this.logger.debug(function(){return"ctmp "+v+" "+d}); vFg(this);return r}}; g.u.jk=function(v,O,Y){this.Z={PO1:Number(this.G0("glrem",{nst:v.toFixed(),rem:O.toFixed(),ca:+Y})),OX:v,SMs:O,isAd:Y}}; g.u.qU=function(v,O,Y){g.Wx(this,g.KF(this.provider),"ad_playback",[v,O,Y])}; g.u.IE=function(v,O){var Y=g.KF(this.provider)*1E3;sj(this,"daism","t."+Y.toFixed(0)+";smw."+(v*1E3).toFixed(0)+";smo."+(O*1E3).toFixed(0))}; g.u.resume=function(){var v=this;isNaN(this.HW)?O6l(this):this.HW=g.$c(function(){v.reportStats()},1E4)}; var $M={},pLv=($M[5]="N",$M[-1]="N",$M[3]="B",$M[0]="EN",$M[2]="PA",$M[1]="PL",$M[-1E3]="ER",$M[1E3]="N",$M),xy8=new Set(["PL","B","S"]),jH=[];oFm.prototype.update=function(){if(this.L){var v=this.nE()||0,O=g.KF(this.provider);v>=this.provider.Og.getDuration()-.1&&(this.previouslyEnded=!0);if(v!==this.Y||zGm(this,v,O)){var Y;if(!(Y=vO-this.Dn+2||zGm(this,v,O))){Y=this.provider.Og.getVolume();var S=Y!==this.j,d=this.provider.Og.isMuted()?1:0;d!==this.X?(this.X=d,Y=!0):(!S||this.B>=0||(this.j=Y,this.B=O),Y=O-this.B,this.B>=0&&Y>2?(this.B=-1,Y=!0):Y=!1)}Y&&($F(this),this.G=v);this.Dn=O;this.Y=v}}}; oFm.prototype.nE=function(){var v=this.provider.Og.nE();return this.provider.Yg.V("html5_disable_live_dvr_shrink_for_cdm_vss")&&El(this.provider.videoData)?v+this.provider.Og.En():v};sG3.prototype.send=function(v){var O=this;if(!this.xg){var Y=MHm(this),S=g.Te(this.uri,Y);this.Yg.V("vss_through_gel_double")&&VHl(S);this.JK&&!this.Yg.V("html5_simplify_pings")?UQ$(this,S):gFJ(this,v).then(function(d){O.JK&&(d=d||{},d.method="POST",d.postParams={atr:O.attestationResponse});I13(S,d,{token:O.Ug,Is:O.pj,mdxEnvironment:O.mdxEnvironment},O.Yg,v,O.N3,O.isFinal&&O.iO||O.FO||O.G&&O.uO)}); this.xg=!0}}; sG3.prototype.U=function(v){v===void 0&&(v=NaN);return Number(v.toFixed(3)).toString()}; var kM={},$Ql=(kM.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,kM.LIVING_ROOM_APP_MODE_MAIN=1,kM.LIVING_ROOM_APP_MODE_KIDS=2,kM.LIVING_ROOM_APP_MODE_MUSIC=3,kM.LIVING_ROOM_APP_MODE_UNPLUGGED=4,kM.LIVING_ROOM_APP_MODE_GAMING=5,kM),UN={},fec=(UN.EMBEDDED_PLAYER_MODE_UNKNOWN=0,UN.EMBEDDED_PLAYER_MODE_DEFAULT=1,UN.EMBEDDED_PLAYER_MODE_PFP=2,UN.EMBEDDED_PLAYER_MODE_PFL=3,UN);g.C(Uj,g.X);Uj.prototype.wT=function(){this.Y.update();le7(this)&&(CGc(this),yqJ(this))}; Uj.prototype.cW=function(){g.X.prototype.cW.call(this);C6(this);jGm(this.Y)}; Uj.prototype.Yu=function(){return MHm(cx(this,"playback"))}; Uj.prototype.mE=function(v){var O=cx(this,"engage");O.HW=v;return AqJ(O,QGm(this.provider))};EFc.prototype.isEmpty=function(){return this.endTime===this.startTime};aG.prototype.V=function(v){return this.Yg.V(v)}; aG.prototype.getCurrentTime=function(){return this.Og.getCurrentTime()}; aG.prototype.nE=function(){return this.Og.nE()}; var L3l={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.C(g.xF,g.X);g.u=g.xF.prototype;g.u.wT=function(){if(this.provider.videoData.enableServerStitchedDai&&this.DT){var v;(v=this.G.get(this.DT))==null||v.wT()}else this.Y&&this.Y.wT()}; g.u.zF=function(v){this.qoe&&this.qoe.zF(v)}; g.u.i6=vm(35);g.u.PB=vm(41);g.u.IE=function(v,O){this.qoe&&this.qoe.IE(v,O)}; g.u.L3=function(){if(this.provider.videoData.enableServerStitchedDai&&this.DT){var v;(v=this.G.get(this.DT))!=null&&$F(v.Y)}else this.Y&&$F(this.Y.Y)}; g.u.OE=function(v,O){this.qoe&&Sj1(this.qoe,v,O);if(this.U)this.U.onError(v)}; g.u.onPlaybackRateChange=function(v){if(this.qoe)this.qoe.onPlaybackRateChange(v);this.Y&&$F(this.Y.Y)}; g.u.I4=vm(58);g.u.G0=function(v,O,Y){this.qoe&&this.qoe.G0(v,O,Y)}; g.u.jk=function(v,O,Y){this.qoe&&this.qoe.jk(v,O,Y)}; g.u.e$=function(v){var O;(O=this.qoe)==null||O.e$(v)}; g.u.Yx=function(v){var O;(O=this.qoe)==null||O.Yx(v)}; g.u.m7=function(v){this.qoe&&this.qoe.m7(v)}; g.u.qU=function(v,O,Y){this.qoe&&this.qoe.qU(v,O,Y)}; g.u.Oz=vm(29);g.u.nf=function(){if(this.qoe)return this.qoe.nf()}; g.u.Yu=function(){if(this.provider.videoData.enableServerStitchedDai&&this.DT){var v,O;return(O=(v=this.G.get(this.DT))==null?void 0:v.Yu())!=null?O:{}}return this.Y?this.Y.Yu():{}}; g.u.TI=function(){var v;return(v=this.qoe)==null?void 0:v.TI()}; g.u.U3=function(v,O){var Y;(Y=this.qoe)==null||Y.U3(v,O)}; g.u.mE=function(v){return this.Y?this.Y.mE(v):function(){}}; g.u.getVideoData=function(){return this.provider.videoData}; g.u.resume=function(){this.qoe&&this.qoe.resume()};g.C(lG,g.X);lG.prototype.E6=function(){if(this.Y.has(void 0)){var v=this.Y.get(void 0);if(!(void 0).videoId||v.Y&&v.qoe)return;this.Y.has(void 0)&&(IeE(this.Y.get(void 0)),this.Y.delete(void 0))}if(!this.Y.has(void 0)){v=new aG(void 0,this.Yg,this.Og);var O=Math.round(p6(this.U)*1E3);v=new g.xF(v,O);v.Y&&v.qoe||this.U.G0("nqv",{vv:(void 0).videoId});O=this.U.getVideoData();this.Y.set(void 0,v);if(v.qoe){var Y=v.qoe,S=O.videoId||"";Y.contentCpn=O.clientPlaybackNonce;Y.tK=S}B8$(v)}}; lG.prototype.VX=function(v){if(v!==void 0){var O=this.Kj(v),Y=this.Kj(),S,d=v===((S=O.getVideoData())==null?void 0:S.clientPlaybackNonce),r;S=void 0===((r=Y.getVideoData())==null?void 0:r.clientPlaybackNonce);var b;r=d?((b=O.getVideoData())==null?void 0:b.videoId)||"":"nvd";var z;b=S?((z=Y.getVideoData())==null?void 0:z.videoId)||"":"nvd";d&&(O=O.qoe)!=null&&(Aq(O,4,0,void 0,b),O.reportStats());S&&(T5(Y),(O=Y.qoe)!=null&&(Aq(O,4,1,v,r),O.reportStats()),wxm(Y,new g.$8(void 0,Y.RF)),Z6d(Y))}}; lG.prototype.Kj=function(v){v=v||this.DT;return this.Y.get(v)||this.U};g.C(g.FP,g.X);g.u=g.FP.prototype;g.u.YZ=function(v,O){this.sync();O&&this.Y.array.length>=2E3&&this.Tc("captions",1E4);O=this.Y;if(v.length>1&&v.length>O.array.length)O.array=O.array.concat(v),O.array.sort(O.Y);else{v=g.y(v);for(var Y=v.next();!Y.done;Y=v.next())Y=Y.value,!O.array.length||O.Y(Y,O.array[O.array.length-1])>0?O.array.push(Y):g.EJ(O.array,Y,O.Y)}this.G=NaN;this.sync()}; g.u.Uy=function(v){v.length>1E4&&g.Br(new g.iK("Over 10k cueRanges removal occurs with a sample: ",v[0]));if(!this.vW()){var O=new Set(v);this.U=this.U.filter(function(Y){return!O.has(Y)}); H6n(this.Y,O);this.sync()}}; g.u.Tc=function(v,O){var Y=(isNaN(this.G)?g.G(this.Og.getPlayerState(),2)?0x8000000000000:this.Og.getCurrentTime()*1E3:this.G)-O;O=this.wE().filter(function(S){return S.namespace===v&&S.endthis.Y,r=g.G(Y,8)&&g.G(Y,16),b=this.Og.R4().isBackground()||Y.isSuspended();w8(this,this.xg,r&&!b,d,"qoe.slowseek",function(){},"timeout"); var z=isFinite(this.Y);z=r&&z&&qO$(O,this.Y);var M=!S||Math.abs(S-this.Y)>10,V=this.Yg.V("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),A=S===0&&this.U&&[11,10].includes(this.U);w8(this,this.yx,z&&M&&!b&&(!V||!A),d,"qoe.slowseek",function(){O.seekTo(v.Y)},"set_cmt"); M=z&&so(O.s_(),this.Y);var f=this.Og.loader;z=!f||f.YM();var k=function(){O.seekTo(v.Y+.001)}; w8(this,this.g8,M&&z&&!b,d,"qoe.slowseek",k,"jiggle_cmt");z=function(){return v.Og.jA()}; w8(this,this.XO,M&&!b,d,"qoe.slowseek",z,"new_elem");M=Va(Y);V=Y.isBuffering();var U=O.s_(),c=zz(U,S),a=c>=0&&U.end(c)>S+5,x=M&&V&&a;A=this.Og.getVideoData();w8(this,this.AK,S<.002&&this.Y<.002&&r&&g.lx(this.Yg)&&g.F8(A)&&!b,d,"qoe.slowseek",z,"slow_seek_shorts");w8(this,this.j,A.wy()&&r&&!b&&!A.FO,d,"qoe.slowseek",z,"slow_seek_gapless_shorts");w8(this,this.Ug,x&&!b,M&&!V,"qoe.longrebuffer",k,"jiggle_cmt");w8(this,this.HW,x&&!b,M&&!V,"qoe.longrebuffer",z,"new_elem_nnr");if(f){var T=f.getCurrentTime(); r=O.ix();r=hoc(r,T);r=!f.isSeeking()&&S===r;w8(this,this.pj,M&&V&&r&&!b,M&&!V&&!r,"qoe.longrebuffer",function(){O.seekTo(T)},"seek_to_loader")}r={}; k=zz(U,Math.max(S-3.5,0));x=k>=0&&S>U.end(k)-1.1;var l=k>=0&&k+1=0&&x&&l<11;r.close2edge=x;r.gapsize=l;r.buflen=U.length;this.U&&(r.seekSour=this.U);w8(this,this.JK,M&&V&&!b,M&&!V,"qoe.longrebuffer",function(){},"timeout",r); r=Y.isSuspended();r=this.Og.QP()&&!r;w8(this,this.L,r,!r,"qoe.start15s",function(){v.Og.po("ad")},"ads_preroll_timeout"); r=this.Yg.experiments.T0("html5_use_playback_rate_in_skip_slow_ad")?this.Og.getPlaybackRate()*1E3:1E3;c=S-this.B5;w8(this,this.Eg,g.F8(A)&&f,M&&!V,"qoe.longrebuffer",function(){v.Og.Ae()},"reset_media_source"); w8(this,this.f1,g.F8(A)&&f,M&&!V,"qoe.longrebuffer",z,"reset_media_element");this.B===0&&(this.C=S);f=V&&this.Y===0&&S>1&&S===this.C;w8(this,this.FO,g.F8(A)&&f,M&&!V,"qoe.slowseek",function(){O.seekTo(0)},"reseek_after_time_jump"); b=Y.isOrWillBePlaying()&&!b;a=this.Og.SE()-S<6&&!a&&this.Og.G_();w8(this,this.X,A.wy()&&b&&V&&a,M&&!V,"qoe.longrebuffer",function(){v.Og.jA(!1,!0)},"handoff_end_long_buffer_reload"); Y=HO(A)&&this.U===104&&b&&(V||g.G(Y,8)&&g.G(Y,16));w8(this,this.tK,Y,d,"qoe.start15s",z,"gapless_slow_start");this.B=S;this.Z.start()}}; XP.prototype.OE=function(v,O,Y){O=this.Yu(O);O.wn=Y;O.wdup=this.G[v]?"1":"0";this.Og.OE(new lJ(v,O));this.G[v]=!0}; XP.prototype.Yu=function(v){v=Object.assign(this.Og.Yu(!0),v.Yu());this.Y&&(v.stt=this.Y.toFixed(3));this.Og.getVideoData().isLivePlayback&&(v.ct=this.Og.getCurrentTime().toFixed(3),v.to=this.Og.En().toFixed(3));delete v.uga;delete v.euri;delete v.referrer;delete v.fexp;delete v.vm;return v}; Bx.prototype.reset=function(){this.Y=this.U=this.G=this.startTimestamp=0;this.B=!1}; Bx.prototype.test=function(v){if(!this.Z||this.U)return!1;if(!v)return this.reset(),!1;v=(0,g.J)();if(!this.startTimestamp)this.startTimestamp=v,this.G=0;else if(this.G>=this.Z)return this.U=v,!0;this.G+=1;return!1}; Bx.prototype.Yu=function(){var v={},O=(0,g.J)();this.startTimestamp&&(v.wsd=(O-this.startTimestamp).toFixed());this.U&&(v.wtd=(O-this.U).toFixed());this.Y&&(v.wssd=(O-this.Y).toFixed());return v};g.C(kZd,g.X);g.u=kZd.prototype;g.u.setMediaElement=function(v){(this.mediaElement=v)?(this.mediaElement&&(this.Z||this.G||!this.mediaElement.x3()||this.seekTo(.01,{Vg:"seektimeline_setupMediaElement"})),IG(this)):n6(this)}; g.u.getCurrentTime=function(){if(qQ(this.Og)){if(!isNaN(this.U))return this.U}else if(!isNaN(this.U)&&isFinite(this.U))return this.U;return this.mediaElement&&ewn(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.G||0}; g.u.Rz=function(){return this.xg}; g.u.nE=function(){return this.getCurrentTime()-this.En()}; g.u.WP=function(){return this.Y?this.Y.WP():Infinity}; g.u.isAtLiveHead=function(v){if(!this.Y)return!1;v===void 0&&(v=this.getCurrentTime());return QE(this.Y,v)}; g.u.rN=function(){return!!this.Y&&this.Y.rN()}; g.u.seekTo=function(v,O){var Y=O===void 0?{}:O;O=Y.ZL===void 0?!1:Y.ZL;var S=Y.Um===void 0?0:Y.Um;var d=Y.Iz===void 0?!1:Y.Iz;var r=Y.jc===void 0?0:Y.jc;var b=Y.Vg===void 0?"":Y.Vg;var z=Y.seekSource===void 0?void 0:Y.seekSource;var M=Y.oJ===void 0?!1:Y.oJ;var V=Y.Cz===void 0?!1:Y.Cz;Y=Y.v3===void 0?!1:Y.v3;M&&(v+=this.En());Ol(this.videoData)&&z===29&&(this.xg=void 0);M=v=this.gK())||!g.cj(this.videoData),A||(a={st:a,mst:this.gK()},this.Y&&this.V("html5_high_res_seek_logging")&&(a.ht=this.Y.WP(),a.adft=sbF(this.Y)),this.Og.G0("seeknotallowed",a)),a=A));if(!a)return this.B&&(this.B=null,Fag(this)),g.T7(this.getCurrentTime());a=.005;V&&this.V("html5_sabr_seek_no_shift_tolerance")&&(a=0);if(Math.abs(v-this.U)<=a&&this.HW)return this.Z;b&&(a=v,(this.Yg.XL()||this.V("html5_log_seek_reasons"))&&this.Og.G0("seekreason",{reason:b, tgt:a}));z&&(this.j.U=z);this.HW&&n6(this);this.Z||(this.Z=new OK);v&&!isFinite(v)&&C61(this,!1);(b=Y||M)||(b=v,b=!(this.videoData.isLivePlayback&&this.videoData.G&&!this.videoData.G.Y&&!(this.mediaElement&&this.mediaElement.h3()>0&&S_(this.mediaElement)>0)||b8(this.videoData)&&this.jO()===this.gK(!1)?0:isFinite(b)||!b8(this.videoData)));b||(v=K6(this,v,d));v&&!isFinite(v)&&C61(this,!1);this.G=v;this.XO=r;this.U=v;this.C=0;this.Y&&(d=this.Y,r=v,g61(d,r,!1),M3l(d,r));d=this.Og;r=v;b={ZL:O,seekSource:z}; d.A9.G=r;Y=d.sf;Y.mediaTime=r;Y.Y=!0;b.ZL&&d.QD(b);b=r>d.videoData.endSeconds&&r>d.videoData.limitedPlaybackDurationInSeconds;d.fM&&b&&isFinite(r)&&z71(d);rO.start&&z71(this.Og);return this.Z}; g.u.gK=function(v){if(!this.videoData.isLivePlayback)return this.Og.videoData.gK();var O;return nh(this.videoData)&&((O=this.mediaElement)==null?0:O.isPaused())&&this.videoData.Y?(v=this.getCurrentTime(),p8E(this.Hq(v)*1E3)+v):this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&Ol(this.videoData)&&this.videoData.Y?v?this.videoData.Y.Ug||0:this.videoData.Y.dW||0:b8(this.videoData)&&this.videoData.tK&&this.videoData.Y?this.videoData.Y.gK()+this.timestampOffset:this.videoData.G&&this.videoData.G.Y? !v&&this.Y?this.Y.WP():this.Og.videoData.gK()+this.timestampOffset:this.mediaElement?Gn()?p8E(this.mediaElement.lj().getTime()):S_(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.u.jO=function(){if(this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&Ol(this.videoData)){var v;return((v=this.videoData.Y)==null?void 0:v.TV)||0}v=this.videoData?this.videoData.jO()+this.timestampOffset:this.timestampOffset;if(nh(this.videoData)&&this.videoData.Y){var O,Y=Number((O=this.videoData.progressBarStartPosition)==null?void 0:O.utcTimeMillis)/1E3;O=this.getCurrentTime();O=this.Hq(O)-O;if(!isNaN(Y)&&!isNaN(O))return Math.max(v,Y-O)}return v}; g.u.UL=function(){this.Z||this.seekTo(this.G,{Vg:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.u.qQ=function(){return this.HW&&!isFinite(this.U)}; g.u.cW=function(){yAJ(this,null);this.j.dispose();g.X.prototype.cW.call(this)}; g.u.Yu=function(){var v={};this.loader&&Object.assign(v,this.loader.Yu());this.mediaElement&&Object.assign(v,this.mediaElement.Yu());return v}; g.u.jY=function(v){this.timestampOffset=v}; g.u.getStreamTimeOffset=function(){return b8(this.videoData)?0:this.videoData.Y?this.videoData.Y.getStreamTimeOffset():0}; g.u.En=function(){return this.timestampOffset}; g.u.Hq=function(v){return this.videoData&&this.videoData.Y?this.videoData.Y.Hq(v-this.timestampOffset):NaN}; g.u.lx=function(){if(!this.mediaElement)return 0;if(u8(this.videoData)){var v=this.mediaElement,O=v.s_();v=(V6(O)&&v.getDuration()?O.end(O.length-1):0)+this.timestampOffset-this.jO();O=this.gK()-this.jO();return Math.max(0,Math.min(1,v/O))}return this.mediaElement.lx()}; g.u.s5=function(v){this.L&&(this.L.Y=v)}; g.u.lf=function(v,O){this.Og.G0("requestUtcSeek",{time:v});Ol(this.videoData)&&(this.xg=v);var Y;(Y=this.loader)==null||Y.lf(v);O&&(this.JK=O)}; g.u.Lz=function(v){Ol(this.videoData)&&(this.xg=void 0);if(this.JK)this.Og.G0("utcSeekingFallback",{source:"streamTime",timeSeconds:this.JK}),this.Og.seekTo(this.JK,{Vg:"utcSeekingFallback_streamTime"}),this.JK=0;else{var O=this.getCurrentTime();isNaN(O)||(v=this.Hq(O)-v,O-=v,this.Og.G0("utcSeekingFallback",{source:"estimate",timeSeconds:O}),this.Og.seekTo(O,{Vg:"utcSeekingFallback_estimate"}))}}; g.u.tD=function(){this.JK=0}; g.u.V=function(v){return this.Yg&&this.Yg.V(v)};g.C(Px,g.X);Px.prototype.start=function(){this.U.start()}; Px.prototype.stop=function(){this.U.stop()}; Px.prototype.clear=function(){for(var v=g.y(this.Y.values()),O=v.next();!O.done;O=v.next())O.value.clear()}; Px.prototype.sample=function(){for(var v=g.y(this.G),O=v.next();!O.done;O=v.next()){var Y=g.y(O.value);O=Y.next().value;Y=Y.next().value;this.Y.has(O)||this.Y.set(O,new XR7(THK.has(O)));this.Y.get(O).update(Y())}this.U.start()}; var THK=new Set(["networkactivity"]);XR7.prototype.update=function(v){this.U?(this.buffer.add(v-this.Y||0),this.Y=v):this.buffer.add(v)}; XR7.prototype.clear=function(){this.buffer.clear();this.Y=0};m3.prototype.J_=function(){return this.started}; m3.prototype.start=function(){this.started=!0}; m3.prototype.reset=function(){this.finished=this.started=!1};var JAE=!1;g.C(g.NQ,g.MU);g.u=g.NQ.prototype;g.u.cW=function(){this.logger.debug("dispose");g.Uq(this.Kw);DjQ(this.Gm);this.visibility.unsubscribe("visibilitystatechange",this.Gm);Ye3(this);Y6(this);g.qA.Cq(this.Ud);this.FN();this.TO=null;g.sM(this.videoData);g.sM(this.kp);g.sM(this.rV);g.sM(this.oh);g.gv(this.uOg);this.fM=null;g.MU.prototype.cW.call(this)}; g.u.qU=function(v,O,Y,S,d){if(this.Yg.V("html5_log_ad_playback_docid")){var r=this.Kj();if(r.qoe){r=r.qoe;var b=this.Yg.tK||"yt";g.Wx(r,g.KF(r.provider),"ad_playback",[v,O,Y,d,b])}}else this.Kj().qU(v,O,Y);this.V("html5_log_media_perf_info")&&this.G0("adloudness",{ld:S.toFixed(3),cpn:v})}; g.u.uy=function(){var v;return(v=this.loader)==null?void 0:v.uy()}; g.u.xK=function(){var v;return(v=this.loader)==null?void 0:v.xK()}; g.u.BA=function(){var v;return(v=this.loader)==null?void 0:v.BA()}; g.u.ZG=function(){var v;return(v=this.loader)==null?void 0:v.ZG()}; g.u.aS=function(){return this.videoData.aS()}; g.u.eE=function(){return this.V("html5_not_reset_media_source")&&!this.aS()&&!this.videoData.isLivePlayback&&g.F8(this.videoData)&&!this.Yg.supportsGaplessShorts()}; g.u.Ur=function(){this.videoData.L&&(this.videoData.cI=this.videoData.cI||this.WD.uc().uy(),this.videoData.Zz=this.videoData.Zz||this.WD.uc().xK());if(Ajg(this.videoData)||!IO(this.videoData)){var v=this.videoData.errorDetail;this.g4(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),v,v,this.videoData.uL||void 0)}this.V("html5_generate_content_po_token")&&this.VD();this.V("html5_enable_d6de4")&&this.Os()}; g.u.vn=function(){return this.Au}; g.u.E6=function(){!this.Lh||this.Lh.vW();this.Lh=new g.xF(new aG(this.videoData,this.Yg,this));this.Yg.V("html5_ssap_logging_manager_cleanup")||(this.Au=new lG(this.Yg,this,this.Lh))}; g.u.getVideoData=function(){return this.videoData}; g.u.D=function(){return this.Yg}; g.u.Qf=function(){return this.T8.Qf(this.TO)}; g.u.Kj=function(v){if(this.Yg.V("html5_ssap_logging_manager_cleanup"))v=this.Lh;else if(v)a:{for(var O=this.Au,Y=g.y(O.Y.values()),S=Y.next();!S.done;S=Y.next())if(S=S.value,S.getVideoData().videoId===v){v=S;break a}v=O.U}else v=this.Au.Kj();return v}; g.u.R4=function(){return this.visibility}; g.u.zI=function(){return this.mediaElement&&this.mediaElement.Dh()?this.mediaElement.dR():null}; g.u.Bq=function(){return this.mediaElement}; g.u.ZR=function(){if(this.V("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.D().C&&this.D().houseBrandUserStatus&&this.G0("hbut",{status:this.D().houseBrandUserStatus});if(this.videoData.sE())return!0;this.g4("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.u.Ie=function(v){(v=v===void 0?!1:v)||T5(this.Kj());this.Q3=v;!this.ZR()||this.Se.J_()?g.lx(this.Yg)&&this.videoData.isLivePlayback&&this.Se.J_()&&!this.Se.finished&&!this.Q3&&this.jj():(this.Se.start(),v=this.Kj(),p6(v),v.qoe&&O6l(v.qoe),this.jj())}; g.u.jj=function(){if(this.videoData.isLoaded()){var v=this.kp;g.Vq(v.Qx.experiments,"html5_player_min_build_cl")>0&&g.Vq(v.Qx.experiments,"html5_player_min_build_cl")>760426699&&oE3(v,"oldplayer");bpg(this)}else this.videoData.D9||this.videoData.ZI?this.Q3&&g.lx(this.Yg)&&this.videoData.isLivePlayback||(this.videoData.D9?NZ3(this.videoData):(v=this.Kj(),v.qoe&&(v=v.qoe,MQ(v,"protected"),v.provider.videoData.Z?v.H3():v.provider.videoData.subscribe("dataloaded",v.H3,v)),iGd(this.videoData))):!this.videoData.loading&& this.RP&&SeJ(this)}; g.u.wY=function(v){this.f_=v;this.loader&&(G3i(this.loader,new g.Pu(v)),this.G0("sdai",{sdsstm:1}))}; g.u.Yk=function(){return null}; g.u.sJ=vm(16);g.u.isFullscreen=function(){return this.visibility.isFullscreen()}; g.u.isBackground=function(){return this.visibility.isBackground()}; g.u.Bb=function(){var v=this;this.logger.debug("Updating for format change");vR(this).then(function(){return Hx(v)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.u.e9=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.Ie();this.ZR()&&!g.G(this.playerState,128)&&(this.X2.J_()||(this.X2.start(),this.videoData.e6?this.HD(zH(this.playerState,4)):this.HD(zH(zH(this.playerState,8),1))),doc(this))}; g.u.oB=function(){return this.Se.finished}; g.u.sendAbandonmentPing=function(){g.G(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Ww(!0),Ye3(this),g.qA.Cq(this.Ud))}; g.u.O3=function(v,O){v=v===void 0?!0:v;(O===void 0||O)&&this.mediaElement&&this.mediaElement.pause();this.HD(v?new g.oK(14):new g.oK)}; g.u.UP=function(){this.Kj().L3()}; g.u.g4=function(v,O,Y,S,d,r){this.logger.debug(function(){return"set player error: ec="+v+", detail="+d}); var b,z;g.iL(wEN,Y)?b=Y:Y?z=Y:b="GENERIC_WITHOUT_LINK";S=(S||"")+(";a6s."+gf());if(v==="auth"||v==="drm.auth"||v==="heartbeat.stop")Y&&(S+=";r."+Y.replaceAll(" ","_")),r&&(S+="sr."+r.replaceAll(" ","_"));O={errorCode:v,errorDetail:d,errorMessage:z||g.Lp[b]||"",y0:b,uL:r||"",OG:S,Ow:O,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=v;OA(this,"dataloaderror");this.HD(WN(this.playerState,128,O));g.qA.Cq(this.Ud);Y6(this);this.Oy()}; g.u.po=function(v){this.Tx=this.Tx.filter(function(O){return v!==O}); this.logger.debug(function(){return"set preroll ready for "+v}); this.X2.J_()&&doc(this)}; g.u.a4=function(){var v;(v=!!this.Tx.length)||(v=this.q7.Y.array[0],v=!!v&&v.start<=-0x8000000000000);return v}; g.u.rN=function(){return this.A9.rN()}; g.u.isPlaying=function(){return this.playerState.isPlaying()}; g.u.Hd=function(){return this.playerState.Hd()&&this.videoData.e6}; g.u.getPlayerState=function(){return this.playerState}; g.u.bF=function(v){var O;(O=this.loader)==null||O.bF(v)}; g.u.YD=function(v){var O;(O=this.loader)==null||O.YD(v)}; g.u.getPlayerType=function(){return this.playerType}; g.u.getPreferredQuality=function(){if(this.TO){var v=this.TO;v=v.videoData.TM.compose(v.videoData.z5);v=zi(v)}else v="auto";return v}; g.u.N$=vm(22);g.u.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.u.setMediaElement=function(v){this.logger.debug("set media element");if(this.mediaElement&&v.dR()===this.mediaElement.dR()&&(v.isView()||this.mediaElement.isView())){if(v.isView()||!this.mediaElement.isView())this.WZ(),this.mediaElement=v,this.mediaElement.Og=this,Cn$(this),this.A9.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.FN();if(!this.playerState.isError()){var O=sK(this.playerState,512);g.G(O,8)&&!g.G(O,2)&&(O=zH(O,1));v.isView()&&(O=sK(O,64));this.HD(O)}this.mediaElement= v;this.mediaElement.Og=this;!g.lx(this.Yg)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);Cn$(this);this.A9.setMediaElement(this.mediaElement);this.V("html5_prewarm_media_source")&&!this.kp.Io()&&Z_i(this.mediaElement)}}; g.u.FN=function(v,O,Y){v=v===void 0?!1:v;O=O===void 0?!1:O;Y=Y===void 0?!1:Y;this.logger.debug("remove media element");if(this.mediaElement){var S=this.getCurrentTime();S>0&&(this.A9.G=S);this.A9.setMediaElement(null);!v&&this.eE()?$on(this):this.jG(Y);this.loader&&(Xo(this.loader),b6(this,O));this.Fn.stop();if(this.mediaElement&&(!this.X2.J_()&&!this.QP()||this.playerState.isError()||g.G(this.playerState,2)||this.HD(zH(this.playerState,512)),this.mediaElement)){this.WZ();if(v||!this.mediaElement.isView())this.Zg.Jf("mesv_s"), this.mediaElement.stopVideo(),ob(this);this.mediaElement=this.mediaElement.Og=null}}}; g.u.playVideo=function(v,O){v=v===void 0?!1:v;O=O===void 0?!1:O;var Y=this,S,d,r,b,z,M;return g.B(function(V){if(V.U==1){Y.logger.debug("start play video");var A=window.google_image_requests;A&&A.length>10&&(window.google_image_requests=A.slice(-10));if(g.G(Y.playerState,128))return V.return();if(Y.kp.Hy())return Y.publish("signatureexpired"),V.return();Y.mediaElement&&T5(Y.Kj());Y.e9();(g.G(Y.playerState,64)||v)&&Y.HD(zH(Y.playerState,8));return Y.X2.finished&&Y.mediaElement?Y.TO||!Y.RT?V.d8(2): g.E(V,Y.RT,3):V.return()}if(V.U!=2&&g.G(Y.playerState,128))return V.return();if(!Y.videoData.G)return Y.videoData.isLivePlayback&&!g.OU(Y.Yg.Z,!0)?(S="html5.unsupportedlive",d=2):(S=Y.videoData.aS()?"fmt.unplayable":"fmt.noneavailable",d=1),g.Br(Error("selectableFormats")),Y.g4(S,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),V.return();if(Y.YW()&&Y.videoData.G.Y)return Y.logger.debug("rebuild playbackData for airplay"),V.return(vR(Y));if(qQ(Y))A=Y.A9,rX(A.videoData)&&!A.isAtLiveHead(A.getCurrentTime())&& A.rN()&&A.Og.seekTo(Infinity,{Vg:"seektimeline_peggedToLive",seekSource:34});else if(rX(Y.videoData)&&(r=Y.getCurrentTime()b;if(!z||!b){r&&z&&(S=Math.max(S,r));var M;r=VTi(O,(M=d.Y)==null?void 0:M.videoInfos);M=O.Og.getPlaybackRate();M>1&&r&&(M=K9F(O.Yg.Z,d.Y.videoInfos,M),v.Y!==0&& M=480;if(O.V("html5_exponential_memory_for_sticky")){V=O.Yg.lO;A=1;var f=f===void 0?!1:f;o7w(V,"sticky-lifetime");V.values["sticky-lifetime"]&&V.zc["sticky-lifetime"]||(V.values["sticky-lifetime"]=0,V.zc["sticky-lifetime"]=0);f&&UU(V,"sticky-lifetime")>.0625&&(A=V.zc["sticky-lifetime"]*2); V.values["sticky-lifetime"]+=1*Math.pow(2,V.Y/A);V.zc["sticky-lifetime"]=A;V.B.start()}if(O.V("html5_perf_cap_override_sticky")){f=O.G;V=O.V("html5_perserve_av1_perf_cap");V=V===void 0?!1:V;if(V===void 0?0:V){A=ns();v=g.y(Object.keys(A));for(O=v.next();!O.done;O=v.next())O=O.value,O.indexOf("1")!==0&&delete A[O];g.QD("yt-player-performance-cap",A,2592E3)}else g.Bp("yt-player-performance-cap");Kk3(V);if(V){V=g.y(e$.keys());for(A=V.next();!A.done;A=V.next())A=A.value,A.startsWith("1")||e$.delete(A); V=g.y(d8.values());for(A=V.next();!A.done;A=V.next())A=A.value,A.startsWith("1")||d8.delete(A);V=g.y(f.keys());for(A=V.next();!A.done;A=V.next())A=A.value,A.startsWith("1")||f.delete(A)}else e$.clear(),d8.clear(),f.clear()}}}this.loader&&(f=this.loader,Y=Y||"",f.policy.Y?XI(f.B.Y,Y):XI(f.Y.Z,Y));this.di()}; g.u.getUserPlaybackQualityPreference=function(){return this.videoData.G&&!this.videoData.G.Y?zi(this.videoData.TM):Wz[Iy()]}; g.u.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.u.setUserAudio51Preference=function(v,O){this.getUserAudio51Preference()!==v&&(this.G0("toggle51",{pref:v}),g.QD("yt-player-audio51",v,O?31536E3:2592E3),this.Bb())}; g.u.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.u.setProximaLatencyPreference=function(v){var O=this.getProximaLatencyPreference();this.G0("proxima",{pref:v});g.QD("yt-player-proxima-pref",v,31536E3);O!==v&&(v=this.A9,v.yx=!0,v.Og.seekTo(Infinity,{Vg:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.u.getProximaLatencyPreference=function(){var v;return(v=q6())!=null?v:0}; g.u.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.u.VD=function(){this.videoData.videoId?this.WD.VD(this.videoData):this.G0("povid",{})}; g.u.Os=function(){this.videoData.videoId?this.WD.Os(this.videoData):this.G0("piavid",{})}; g.u.di=function(){if(!this.vW()&&!g.G(this.playerState,128)&&this.videoData.G){if(this.videoData.G.Y)De(this);else{var v=rt(this),O=this.videoData;a:{var Y=this.videoData.w2;if(v.Y){for(var S=g.y(Y),d=S.next();!d.done;d=S.next()){d=d.value;var r=d.getInfo(),b=g.IA[r.video.quality];if((!v.G||r.video.quality!=="auto")&&b<=v.Y){Y=d;break a}}Y=Y[Y.length-1]}else Y=Y[0]}O.Eg=Y;s2E(this,v.reason,xo7(this,this.videoData.Eg))}if(this.V("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.A9.X= !1,this.playVideo()}}; g.u.qh=function(v,O){if(this.vW()||g.G(this.playerState,128))return!1;var Y,S=!((Y=this.videoData.G)==null||!Y.Y);Y=S&&O?this.getCurrentTime()-this.En():NaN;if(this.Yg.experiments.T0("html5_record_audio_format_intent")){var d=this.Kj();if(d.qoe){d=d.qoe;var r=[v.Dg.id,isNaN(Y)?"m":"t"];g.Wx(d,g.KF(d.provider),"afi",r)}}if(S)return O&&(S=xkn(this.A9),this.G0("aswh",{id:v.id,xtags:v.xtags,bh:S.toFixed(3)})),this.loader.setAudioTrack(v,Y,O),!0;if(MKd(this)){a:{O=this.mediaElement.audioTracks();for(S= 0;S=0?v:this.getCurrentTime()}; g.u.Hq=function(){var v;return((v=this.videoData.Y)==null?0:v.Hq)?this.videoData.Y.Hq(this.getCurrentTime()-this.En()):this.mediaElement&&(v=this.mediaElement.lj())&&(v=v.getTime(),!isNaN(v))?v/1E3+this.getCurrentTime():NaN}; g.u.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.En():this.gK()?this.gK():0}; g.u.MQ=function(){var v=new K31;if(this.loader){var O=this.Yg.schedule,Y=this.Yg.XL();Y=Y===void 0?!1:Y;v.nL=O.HW;v.NH=O.XO;v.bandwidthEstimate=$k(O);if(Y){Y=(O.X.In()*1E3).toFixed();var S=(O.N3.In()*1E3).toFixed(),d=Vg(O).toFixed(2),r=((O.L.In()||0)*1E9).toFixed(2),b=O.G.In().toFixed(0),z=O.FO.In().toFixed(0),M=O.j.percentile(.5).toFixed(2),V=O.j.percentile(.92).toFixed(2),A=O.j.percentile(.96).toFixed(2),f=O.j.percentile(.98).toFixed(2);O.Y?O.Y.reset():O.Y=new rw;O.Y.add(O.JK);O.Y.add(O.interruptions.length); for(var k=0,U=O.interruptions.length-1;U>=0;U--){var c=O.interruptions[U];O.Y.add(c-k);k=c}k=0;for(U=O.B.length-1;U>=0;U--){c=O.B[U];var a=c.stamp/36E5;O.Y.add(a-k);k=a;O.Y.add(c.net/1E3);O.Y.add(c.max)}O=O.Y.Gn();v.Y={ttr:Y,ttm:S,d:d,st:r,bw:b,abw:z,v50:M,v92:V,v96:A,v98:f,"int":O}}P8E(this.loader,v)}else this.mediaElement&&(v.dJ=dC(this.mediaElement));v.nL=this.nL;v.NH=this.NH;v.G=this.isAtLiveHead()&&this.isPlaying()?vhc(this):NaN;return v}; g.u.bN=function(v,O){this.NH+=v;this.nL+=O}; g.u.lx=function(){return this.mediaElement?g.cj(this.videoData)?1:u8(this.videoData)?this.isAtLiveHead()||this.rN()?1:this.A9.lx():this.mediaElement.lx():0}; g.u.Yl=function(){var v=this.uC,O=iG(v,"bandwidth"),Y=iG(v,"bufferhealth"),S=iG(v,"livelatency"),d=iG(v,"networkactivity"),r=G5(v,"bandwidth"),b=G5(v,"bufferhealth"),z=G5(v,"livelatency");v=G5(v,"networkactivity");var M=this.mW(),V=M.droppedVideoFrames;M=M.totalVideoFrames;var A=this.getCurrentTime();if(this.OM){var f="IT/"+(this.OM.Y.getInfo()+"/"+zi(this.DR()));f+="/"+this.OM.getInfo()}else f="";var k=this.isGapless(),U=this.JF(),c=this.nf(),a=g.dt(this),x=this.getPlayerState(),T=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var l=0;var Q="";if(this.f_){if(this.f_.XF){Q="D,";break a}l=this.f_.RJ;Q=this.f_.Wq.substring(0,4)}l>0?(l="AD"+l+", ",Q&&(l+=Q+", "),Q=l):Q=""}return{Jo:r,pC:b,currentTime:A,V6:f,droppedVideoFrames:V,isGapless:k,JF:U,DD:c,Bs:O,mB:Y,NO:S,Cd:d,gm:z,zz:v,zw:a,playerState:x,mJ:T,Y0:Q,totalVideoFrames:M}}; g.u.Yu=function(v){var O={};if(v===void 0?0:v){Object.assign(O,this.Kj().Yu());this.mediaElement&&(Object.assign(O,this.mediaElement.Yu()),v=this.mW(),O.dvf=v.droppedVideoFrames,O.tvf=v.totalVideoFrames);this.loader&&Object.assign(O,this.loader.Yu());this.OM&&(O.drm=JSON.stringify(this.OM.Yu()));O.state=this.playerState.state.toString(16);g.G(this.playerState,128)&&(O.debug_error=JSON.stringify(this.playerState.ib));this.a4()&&(O.prerolls=this.Tx.join(","));this.videoData.oI&&(O.ismb=this.videoData.oI); this.videoData.latencyClass!=="UNKNOWN"&&(O.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(O.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)O.is_mosaic=1;this.videoData.cotn&&(O.is_offline=1,O.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(O.playerResponseCpn=this.videoData.playerResponseCpn);this.WD.isOrchestrationLeader()&&(O.leader=1);this.videoData.isLivePlayback&& (this.videoData.Y&&xA(this.videoData.Y)&&(O.segduration=xA(this.videoData.Y)),v=this.A9,O.lat=v.L?rAc(v.L.B):0,O.liveutcstart=this.videoData.liveUtcStartSeconds);O.relative_loudness=this.videoData.aI.toFixed(3);if(v=g.dt(this))O.optimal_format=v.video.qualityLabel;O.user_qual=Iy();O.release_version=W[49]}O.debug_videoId=this.videoData.videoId;return O}; g.u.addCueRange=function(v){this.Cr([v])}; g.u.removeCueRange=function(v){this.q7.Uy([v])}; g.u.VM=function(){this.q7.sync()}; g.u.Tc=function(v,O){return this.q7.Tc(v,O)}; g.u.Cr=function(v,O){this.q7.YZ(v,O)}; g.u.dk=function(v){this.q7.Uy(v)}; g.u.wE=function(){return this.q7.wE()||[]}; g.u.Zv=function(){return this.AU}; g.u.YW=function(){return this.visibility.YW()}; g.u.rS=function(){this.mediaElement&&this.mediaElement.rS()}; g.u.uHx=function(){OA(this)}; g.u.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.u.WZ=function(){g.hi(this.cH)}; g.u.uhO=function(){this.vD();this.publish("onLoadProgress",this.lx())}; g.u.yk=function(v){var O=v.target.eZ();if(this.mediaElement&&this.mediaElement.eZ()&&this.mediaElement.eZ()===O){e7c(this,v.type);switch(v.type){case "error":var Y=b7(this.mediaElement)||"",S=this.mediaElement.Bj();if(Y==="capability.changed"){this.V("html5_restart_on_capability_change")?(this.G0("capchg",{msg:S}),this.jA(!0)):vR(this);return}if(this.mediaElement.hasError()&&SbJ(this.kp,Y,{msg:S}))return;if(this.isBackground()&&this.mediaElement.ub()===4){this.Oy();S3(this,"unplayable");return}break; case "durationchange":Y=this.mediaElement.getDuration();isFinite(Y)&&(!this.Du||Y>0)&&Y!==1&&this.OJ(Y);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());N8m(this.q7);this.Kj().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":Q23(this);this.publish("onLoadedMetadata");aal(this);Y=this.Hq();this.videoData.qF&&(this.videoData.qF=Y);break;case "loadstart":aal(this);break;case "progress":case "suspend":this.qx.oC();break;case "playing":this.Zg.Jf("plev"); this.bC&&!qQ(this)&&(this.bC=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Vg:"videoplayer_onPlaying"})));break;case "timeupdate":Y=this.mediaElement&&!this.mediaElement.getCurrentTime();S=this.mediaElement&&this.mediaElement.h3()===0;if(Y&&(!this.bV||S))return;this.bV=this.bV||!!this.mediaElement.getCurrentTime();yM7(this);this.vD();if(!this.mediaElement||this.mediaElement.eZ()!==O)return;this.publish("onVideoProgress",this.getCurrentTime());break; case "waiting":if(this.mediaElement.ix().length>0&&this.mediaElement.s_().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.V("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.h3()>2||!this.mediaElement.isSeeking()&&so(this.mediaElement.s_(),this.mediaElement.getCurrentTime()))&&(Y=this.mediaElement.Yu(),Y.bh=dC(this.mediaElement).toFixed(3),this.G0("uwe",Y));break;case "resize":Q23(this);this.videoData.U&& this.videoData.U.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.QO&&g.G(this.playerState,8)&&!g.G(this.playerState,1024)&&this.getCurrentTime()===0&&g.ch){S3(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.eZ()===O){Lal(this.A9,v);this.publish("videoelementevent",v);O=this.playerState;S=this.sf;var d=this.mediaElement;Y=this.videoData.clientPlaybackNonce;if(!g.G(O,128)){var r=O.state;d=d?d:v.target;var b= d.getCurrentTime();if(!g.G(O,64)||v.type!=="ended"&&v.type!=="pause"){var z=d.getDuration();z=d.isEnded()||b>1&&Math.abs(b-z)<1.1;var M=v.type==="pause"&&d.isEnded();b=v.type==="ended"||v.type==="waiting"||v.type==="timeupdate"&&!g.G(O,4)&&!hq(S,b);if(M||z&&b)d.kE()>0&&d.eZ()&&(r=14);else switch(v.type){case "error":b7(d)&&(r|=128);break;case "pause":g.G(O,256)?(r^=256)||(r=64):g.G(O,32)||g.G(O,2)||g.G(O,4)||(r=4,g.G(O,1)&&g.G(O,8)&&(r|=1));break;case "playing":b=r;r=(r|8)&-1093;b&4?(r|=1,j_(S,d, !0)):hq(S,d.getCurrentTime())&&(r&=-2);g.G(O,1)&&j_(S,d)&&(r|=1);break;case "seeking":r|=16;g.G(O,8)&&(r|=1);r&=-3;break;case "seeked":r&=-17;j_(S,d,!0);break;case "waiting":g.G(O,2)||(r|=1);j_(S,d);break;case "timeupdate":b=g.G(O,16),z=g.G(O,4),(g.G(O,8)||b)&&!z&&hq(S,d.getCurrentTime())&&(r=8),j_(S,d)&&(r|=1)}}S=r;r=null;S&128&&(r=v.target,d=b7(r),b=1,d?(d==="capability.changed"&&(b=2),z="GENERIC_WITHOUT_LINK",M=r.Yu(),M.mediaElem="1",/AUDIO_RENDERER/.test(r.Bj())&&(z="HTML5_AUDIO_RENDERER_ERROR"), r={errorCode:d,errorMessage:g.Lp[z]||"",y0:z,OG:TB(M),Ow:b,cpn:O.ib?O.ib.cpn:""}):r=null,r&&(r.cpn=Y));O=WN(O,S,r)}!g.G(this.playerState,1)&&g.G(O,1)&&R71(this,"evt"+v.type);this.HD(O)}}}; g.u.Eg0=function(v){v=v.Y.availability==="available";v!==this.AU&&(this.AU=v,this.publish("airplayavailabilitychange"))}; g.u.T8O=function(){var v=(0,g.J)(),O=this.mediaElement.YW();this.G0("airplay",{ia:O});!O&&!isNaN(this.ZN)&&v-this.ZN<2E3||(this.ZN=v,O!==this.YW()&&(v=this.visibility,v.Y!==O&&(v.Y=O,v.Gm()),this.G0("airplay",{rbld:O}),this.Bb()),this.publish("airplayactivechange"))}; g.u.YO=function(v){if(this.loader){var O=this.loader,Y=O.G,S=O.getCurrentTime(),d=Date.now()-Y.j;Y.j=NaN;Y.G0("sdai",{adfetchdone:v,d:d});v&&!isNaN(Y.L)&&Y.U!==3&&FI(Y.loader,S,Y.L,Y.C);Y.policy.G?Y.Z=NaN:Y.B=NaN;lW(Y,4,Y.U===3?"adfps":"adf");Xo(O)}}; g.u.dl=function(){g.Uq(this.Kw);this.Fn.stop();this.videoData.FO=!0;this.Yg.TV=!0;this.Yg.Cj=0;var v=this.kp;if(v.videoData.U){var O=v.Qx.Z,Y=v.videoData.U.z0;O.B.has(Y)&&(O.B.delete(Y),O.U=!0)}v.Y.stop();this.YV();g.G(this.playerState,8)&&this.HD(sK(this.playerState,65));this.Q3=!1;Z6d(this.Kj());g.HM(this.rV);this.publish("playbackstarted");(v=g.il("yt.scheduler.instance.clearPriorityThreshold"))?v():SN(0)}; g.u.YV=function(){var v=this.WD.pP(),O={},Y={};!PT("pbs",this.Zg.timerName)&&Rt.measure&&Rt.getEntriesByName&&(Rt.getEntriesByName("mark_nr")[0]?Ya1("mark_nr"):Ya1());v.videoId&&(O.videoId=v.videoId);v.clientPlaybackNonce&&!this.V("web_player_early_cpn")&&(O.clientPlaybackNonce=v.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(Y.isPausedOnLoad=!0);Y.itag=v.U?Number(v.U.itag):-1;v.dE&&(Y.preloadType=String(this.LR?2:1));O.liveStreamMode=M9w[Az(v)];O.playerInfo=Y;this.Zg.infoGel(O); if(this.loader){v=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(v.G&&(O=window.performance.getEntriesByName(v.G),O.length&&(O=O[0],v.tick("vri",O.fetchStart),v.tick("vdns",O.domainLookupEnd),v.tick("vreq",O.requestStart),v.tick("vrc",O.responseEnd))),v.U&&(O=window.performance.getEntriesByName(v.U),O.length&&(O=O[0],v.tick("ari",O.fetchStart),v.tick("adns",O.domainLookupEnd),v.tick("areq",O.requestStart),v.tick("arc",O.responseEnd))));v=v.ticks;for(var S in v)v.hasOwnProperty(S)&& this.Zg.tick(S,v[S])}}; g.u.vD=function(v){var O=this;v=v===void 0?!1:v;if(this.mediaElement&&this.videoData){pRn(this.A9,this.isPlaying());var Y=this.getCurrentTime();!this.loader||g.G(this.playerState,4)&&g.cj(this.videoData)||g.G(this.playerState,32)&&Ol(this.videoData)||DJE(this.loader,Y);Y>5&&(this.A9.G=Y);var S=g.Yd();S?g.qA.Cq(this.Ud):g.kc(this.Ud);var d=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!d||nh(this.videoData))&&!g.G(this.playerState,128)){var r=function(){if(O.mediaElement&&!g.G(O.playerState, 128)){O.Yg.XL()&&e7c(O,"pfx");var b=O.getCurrentTime();O.V("html5_buffer_underrun_transition_fix")&&(b-=O.En());var z=dC(O.mediaElement),M=g.G(O.playerState,8),V=hq(O.sf,b),A=J1m(O.sf,b,(0,g.J)(),z);M&&V?O.HD(sK(O.playerState,1)):M&&A?(M=O.getDuration(),V=rX(O.videoData),M&&Math.abs(M-b)<1.1?(O.G0("setended",{ct:b,bh:z,dur:M,live:V}),O.mediaElement.IJ()?(O.logger.debug("seek to 0 because of looping"),O.seekTo(0,{Vg:"videoplayer_loop",seekSource:37})):O.O3()):(O.playerState.isBuffering()||R71(O,"progress_fix"), O.HD(zH(O.playerState,1)))):(M&&!V&&!A&&b>0&&(M=(Date.now()-O.K2)/1E3,V=O.getDuration(),b>V-1&&O.G0("misspg",{t:b.toFixed(2),d:V.toFixed(2),r:M.toFixed(2),bh:z.toFixed(2)})),O.playerState.isPaused()&&O.playerState.isBuffering()&&dC(O.mediaElement)>5&&O.HD(sK(O.playerState,1)));O.vD()}}; this.mediaElement.ix().length===0?this.Ud=S?g.qA.EK(r,100):g.fS(r,100):this.Ud=S?g.qA.EK(r,500):g.fS(r,500)}this.videoData.PT=Y;!v&&this.isPlaying()&&pwi(this);a11(this.T8,this.TO,this.Bq(),this.isBackground())&&De(this);this.publish("progresssync",v);d&&nh(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.u.IL=function(){this.g4("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.u.nf=function(){return this.Kj().nf()}; g.u.dG=function(){return this.loader?this.loader.dG():$k(this.Yg.schedule,!0)}; g.u.HD=function(v){if(!g.Ms(this.playerState,v)){this.logger.debug(function(){return"Setting state "+v.toString()}); var O=new g.$8(v,this.playerState);this.playerState=v;Ehg(this);var Y=!this.Tr.length;this.Tr.push(O);var S=this.mediaElement&&this.mediaElement.isSeeking();S=O.oldState.state===8&&!S;g.UO(O,1)&&S&&g.G(this.playerState,8)&&!g.G(this.playerState,64)&&this.loader&&(k3F(this.loader),this.mediaElement&&dC(this.mediaElement)>=5&&Ca1(this.T8,this.TO)&&De(this));(S=g.Vq(this.Yg.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.G(v,1)&&(g.G(v,8)||g.G(v,16))?this.Z4.start(S):this.Z4.stop();(k8(O, 8)<0||g.UO(O,1024))&&this.Fn.stop();!g.UO(O,8)||this.videoData.FO||g.G(O.state,1024)||this.Fn.start();g.G(O.state,8)&&k8(O,16)<0&&!g.G(O.state,32)&&!g.G(O.state,2)&&this.playVideo();g.G(O.state,2)&&u8(this.videoData)&&(this.OJ(this.getCurrentTime()),this.vD(!0));g.UO(O,2)&&(this.Ww(!0),this.Yg.XL()&&this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&Ol(this.videoData)&&this.videoData.Y&&(S={minst:""+this.videoData.Y.TV,cminst:""+(this.videoData.Y.jO()+this.En()),maxst:""+this.videoData.Y.dW, hts:""+this.videoData.Y.Ug,cmaxst:""+(this.videoData.Y.gK()+this.En())},this.G0("sabrSeekableBoundaries",S)));g.UO(O,128)&&this.Oy();this.videoData.Y&&this.videoData.isLivePlayback&&!this.X0&&(k8(O,8)<0?C7g(this.videoData.Y):g.UO(O,8)&&this.videoData.Y.resume());a2Q(this.A9,O);wxm(this.Kj(),O);if(Y&&!this.vW())try{for(var d=g.y(this.Tr),r=d.next();!r.done;r=d.next()){var b=r.value;v67(this.q7,b);this.publish("statechange",b)}}finally{this.Tr.length=0}}}; g.u.EW=function(){this.Zg.tick("qoes")}; g.u.UL=function(){this.A9.UL()}; g.u.Jj=function(v,O,Y,S){a:{var d=this.kp;S=S===void 0?"LICENSE":S;Y=Y.substring(0,256);var r=FW(O);v==="drm.keyerror"&&this.OM&&this.OM.U.keys.length>1&&d.B<96&&(v="drm.sessionlimitexhausted",r=!1);var b=d.Qx.experiments.T0("html5_retry_on_drm_unavailable"),z=d.Qx.experiments.T0("html5_retry_on_drm_key_error"),M=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(b&&v==="drm.unavailable"||z&&v==="drm.keyerror"&&!Y.match(M))d.OE("qoe.restart",{retryOnDrmError:1,e:v,detail:Y}),d.Og.jA(!0);else{if(r)if(d.videoData.U&& d.videoData.U.video.isHdr())W13(d,v);else{if(d.Og.g4(v,O,S,Y),vEw(d,{detail:Y}))break a}else d.OE(v,{detail:Y});v==="drm.sessionlimitexhausted"&&(d.G0("retrydrm",{sessionLimitExhausted:1}),d.B++,h7Q(d.Og))}}}; g.u.lg0=function(){var v=this,O=g.Vq(this.Yg.experiments,"html5_license_constraint_delay"),Y=Yw();O&&Y?(O=new g.mX(function(){v.di();OA(v)},O),g.w(this,O),O.start()):(this.di(),OA(this))}; g.u.AG=function(v){this.publish("heartbeatparams",v)}; g.u.xo=function(v){this.G0("keystatuses",p$1(v));var O="auto",Y=!1;this.videoData.U&&(O=this.videoData.U.video.quality,Y=this.videoData.U.video.isHdr());a:{switch(O){case "highres":case "hd2880":O="UHD2";break;case "hd2160":case "hd1440":O="UHD1";break;case "hd1080":case "hd720":O="HD";break;case "large":case "medium":case "small":case "light":case "tiny":O="SD";break;default:O="";break a}Y&&(O+="HDR")}O=D1(v)?Hu(v,O):v.B.includes(O);if(this.V("html5_enable_vp9_fairplay")){if(Y)if(v.L){var S;if((S= this.OM)==null?0:q9(S.Y))if((Y=this.OM)==null)Y=0;else{for(var d=S=void 0,r=g.y(Y.U.values()),b=r.next();!b.done;b=r.next())b=b.value,S||(S=lTd(b,"SD")),d||(d=lTd(b,"AUDIO"));Y.gy({sd:S,audio:d});Y=S==="output-restricted"||d==="output-restricted"}else Y=!O;if(Y){this.G0("drm",{dshdr:1});W13(this.kp);return}}else{this.videoData.VE||(this.videoData.VE=!0,this.G0("drm",{dphdr:1}),this.jA(!0));return}var z;if((z=this.OM)==null?0:q9(z.Y))return}else if(z=v.L&&O,Y&&!z){W13(this.kp);return}O||Hu(v,"AUDIO")&& Hu(v,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),v=p$1(v),this.Pr?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.V("html5_report_fatal_drm_restricted_error_killswitch")||this.g4("drm.keyerror",2,void 0,"info."+v)):(this.Pr=!0,this.OE(new lJ("qoe.restart",Object.assign({},{retrydrm:1},v))),De(this),h7Q(this)))}; g.u.wTc=function(){if(!this.videoData.FO&&this.mediaElement&&!this.isBackground()){var v="0";this.mediaElement.h3()>0&&dC(this.mediaElement)>=5&&this.videoData.G&&this.videoData.G.Y&&(this.HD(zH(this.playerState,1)),R71(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),v="1");Ehg(this);var O=this.videoData.G;v={restartmsg:v,mfmt:!DZ(this.videoData),mdrm:!(!(O&&O.videoInfos&&O.videoInfos.length&&O.videoInfos[0].LP)||this.OM),mfmtinfo:!this.videoData.U,prerolls:this.a4()?this.Tx.join(","): "0"};if(this.OM){O=this.OM;if(O.U.size<=0){var Y="ns;";O.j||(Y+="nr;");O=Y+="ql."+O.G.length}else O=p$1(O.U.values().next().value),O=TB(O);v.drmp=O}var S;Object.assign(v,((S=this.loader)==null?void 0:S.Yu())||{});var d;Object.assign(v,((d=this.mediaElement)==null?void 0:d.Yu())||{});this.Kj().OE("qoe.start15s",TB(v));this.publish("loadsofttimeout")}}; g.u.OJ=function(v){this.videoData.lengthSeconds!==v&&(this.videoData.lengthSeconds=v,OA(this))}; g.u.Ww=function(v,O){var Y=this;v=v===void 0?!1:v;if(!this.d5)if(PT("att_s","player_att")||i1("att_s",void 0,"player_att"),this.V("use_rta_for_player"))(function(){var d,r,b,z;return g.B(function(M){switch(M.U){case 1:if(!(d=v)){M.d8(2);break}return g.E(M,g.hfi(),3);case 3:d=!M.Y;case 2:if(d)return M.return();g.cm(M,4);r=nF7(Y.Kj());if(!r)throw Error();b={};return g.E(M,g.Fcc((b.cpn=Y.videoData.clientPlaybackNonce,b.encryptedVideoId=Y.videoData.videoId||"",b),3E4),6);case 6:z=M.Y;if(Y.d5)throw Error(); if(!z.challenge)throw g.Br(Error("Not sending attestation ping; no attestation challenge string")),Error();Y.d5=!0;var V=[z.challenge];z.error?V.push("r1c="+z.error):z.webResponse&&V.push("r1a="+z.webResponse);var A;((A=z.adblockReporting)==null?void 0:A.reportingStatus)!==void 0&&V.push("r6a="+z.adblockReporting.reportingStatus);var f;((f=z.adblockReporting)==null?void 0:f.broadSpectrumDetectionResult)!==void 0&&V.push("r6b="+z.adblockReporting.broadSpectrumDetectionResult);r(V.join("&"));i1("att_f", void 0,"player_att");g.ai(M,0);break;case 4:g.Tc(M),i1("att_e",void 0,"player_att"),g.UE(M)}})})().then(function(){O==null||O()}); else{var S=new g.BLm(this.videoData);if("c1a"in S.Ay&&!g.Ls.isInitialized()){i1("att_wb",void 0,"player_att");this.Xx===2&&Math.random()<.01&&g.Br(Error("Botguard not available after 2 attempts"));if(v)return;if(this.Xx<5){g.HM(this.oh);this.Xx++;return}}(S=g.Z0E(S))?(i1("att_f",void 0,"player_att"),qjw(this.Kj(),S),this.d5=!0):i1("att_e",void 0,"player_att")}}; g.u.SE=function(v){v=v===void 0?!1:v;return rX(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.rN()||g.cj(this.videoData))?this.getCurrentTime():this.gK(v)}; g.u.y8=function(){return this.jO()}; g.u.gK=function(v){return this.A9.gK(v===void 0?!1:v)}; g.u.jO=function(){return this.A9.jO()}; g.u.En=function(){return this.A9?this.A9.En():0}; g.u.getStreamTimeOffset=function(){return this.A9?this.A9.getStreamTimeOffset():0}; g.u.WV=function(){var v=0;this.Yg.V("web_player_ss_media_time_offset")&&(v=this.getStreamTimeOffset()===0?this.En():this.getStreamTimeOffset());return v}; g.u.setPlaybackRate=function(v){var O;this.playbackRate!==v&&VTi(this.T8,(O=this.videoData.G)==null?void 0:O.videoInfos)&&(this.playbackRate=v,De(this));this.playbackRate=v;this.mediaElement&&this.mediaElement.setPlaybackRate(v)}; g.u.getPlaybackRate=function(){return this.playbackRate}; g.u.getPlaybackQuality=function(){var v="unknown";if(this.videoData.U&&(v=this.videoData.U.video.quality,v==="auto"&&this.mediaElement)){var O=this.zI();O&&O.videoHeight>0&&(v=wo(O.videoWidth,O.videoHeight))}return v}; g.u.isHdr=function(){return!!(this.videoData.U&&this.videoData.U.video&&this.videoData.U.video.isHdr())}; g.u.sendVideoStatsEngageEvent=function(v,O){var Y=this.Kj();Y.Y?(Y=cx(Y.Y,"engage"),Y.HW=v,Y.send(O)):O&&O()}; g.u.mE=function(v){return this.Kj().mE(v)}; g.u.isAtLiveHead=function(v,O){O=O===void 0?!1:O;return rX(this.videoData)&&(this.CR||O)?this.A9.isAtLiveHead(v):!1}; g.u.S_=function(){var v=this.gK(),O=this.getCurrentTime(),Y;(Y=!rX(this.videoData))||(Y=this.A9,Y=!(Y.Y&&Y.Y.G));return Y||this.rN()||isNaN(v)||isNaN(O)?0:Math.max(0,v-O)}; g.u.NC=function(v){(this.CR=v)||this.Fn.stop();this.videoData.Y&&(v?this.videoData.Y.resume():C7g(this.videoData.Y));if(this.loader){var O=this.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&this.QP()&&this.videoData.isLivePlayback;v&&!O?this.loader.resume():b6(this,!0)}g.G(this.playerState,2)||v?g.G(this.playerState,512)&&v&&this.HD(sK(this.playerState,512)):this.HD(zH(this.playerState,512));O=this.Kj();O.qoe&&(O=O.qoe,g.Wx(O,g.KF(O.provider),"stream",[v?"A":"I"]))}; g.u.H5=function(v){v={n:v.name,m:v.message};this.Kj().OE("player.exception",TB(v))}; g.u.Oz=vm(28);g.u.I4=vm(57);g.u.zF=function(v){this.Kj().zF(v)}; g.u.e$=function(v){this.Kj().e$(v)}; g.u.m7=function(v){this.Kj().m7(v)}; g.u.i6=vm(34);g.u.PB=vm(40);g.u.Yx=function(v){this.Kj().Yx(v)}; g.u.X1=function(){this.G0("hidden",{},!0)}; g.u.mW=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.u.YM=function(){return this.loader?this.loader.YM():!0}; g.u.setLoop=function(v){this.loop=v;this.mediaElement&&!g.lx(this.Yg)&&this.mediaElement.setLoop(v)}; g.u.IJ=function(){return this.mediaElement&&!g.lx(this.Yg)?this.mediaElement.IJ():this.loop}; g.u.jY=function(v){this.G0("timestamp",{o:v.toString()});this.A9.jY(v)}; g.u.Tf=function(v){this.Zg.tick(v)}; g.u.cB=function(v){return this.Zg.cB(v)}; g.u.Jf=function(v){this.Zg.Jf(v)}; g.u.G0=function(v,O,Y){Y=Y===void 0?!1:Y;this.Kj().G0(v,O,Y)}; g.u.Li=function(v,O,Y){Y=Y===void 0?!1:Y;this.Kj().G0(v,O,Y)}; g.u.OE=function(v){this.Kj().OE(v.errorCode,TB(v.details));v=v.errorCode;if(this.videoData.isLivePlayback&&(v==="qoe.longrebuffer"||v==="qoe.slowseek")||v==="qoe.restart"){v=this.loader?PPJ(this.loader.videoTrack):{};var O,Y;this.G0("lasoe",Object.assign(this.loader?PPJ(this.loader.audioTrack):{},(O=this.Du)==null?void 0:(Y=O.Y)==null?void 0:Y.ge()));var S,d;this.G0("lvsoe",Object.assign(v,(S=this.Du)==null?void 0:(d=S.U)==null?void 0:d.ge()))}}; g.u.jk=function(v,O,Y){this.Kj().jk(v,O,Y)}; g.u.nz=function(v,O,Y,S,d,r,b,z){var M;if((M=this.videoData.Y)!=null&&M.isLive){var V=O.playerType===2?O:v,A=v.videoData.videoId,f=O.videoData.videoId;if(A&&f){M=this.Kj();if(M.qoe){var k=M.qoe,U=v.cpn,c=O.cpn,a=V.videoData.w4,x=k.provider.videoData.clientPlaybackNonce,T=k.provider.videoData.videoId,l=c!==x&&f!==T;x=U!==x&&A!==T;k.reportStats();k.adCpn&&k.adCpn!==U||(k.adCpn=x?U:"",k.tL=x?A:"",k.adFormat=x?a:void 0,Aq(k,2,r?4:d?2:0,c,f,S),k.reportStats(),k.adCpn=l?c:"",k.tL=l?f:"",k.adFormat=l?a: void 0,Aq(k,2,r?5:d?3:1,U,A,Y),k.reportStats())}Y=v.cpn;if(M.G.has(Y)){if(d=M.G.get(Y),yE(d,!0).send(),C6(d),Y!==M.provider.videoData.clientPlaybackNonce){hGE(d);var Q;(Q=M.Y)==null||xQE(Q);M.G.delete(Y)}}else M.DT=M.provider.videoData.clientPlaybackNonce,M.DT&&M.Y&&(M.G.set(M.DT,M.Y),yE(M.Y).send(),C6(M.Y));Q=O.cpn;V=V.videoData;S-=this.WV();if(M.G.has(Q)){S=M.G.get(Q);var L=S.G&&isNaN(S.Z)?uG(S):NaN;S=F3c(S,!1);isNaN(L)||(S.L=L);S.send()}else S=Jqm(M,M.provider,V,S),M.G.set(Q,S),RG1(S,new g.$8(zH(new g.oK, 8),new g.oK)),aew(S),(L=M.Y)==null||C6(L);M.DT=Q;if(this.V("html5_unify_csi_server_stitched_transition_logging")){if(M=this.Zg,L=O.cpn,S=this.videoData.clientPlaybackNonce,O=O.videoData,v=(v.cpn===S?"video":"ad")+"_to_"+(L===S?"video":"ad"),v!=="video_to_ad"){S=v==="ad_to_video"?void 0:O;V=S==null?void 0:S.yO;Q={};if(O==null?0:O.C)Q.cttAuthInfo={token:O.C,videoId:O.videoId};b&&(Q.startTime=b);Kw(v,Q);var I,t,P;b={targetVideoId:(I=O==null?void 0:O.videoId)!=null?I:"empty_video",targetCpn:L,adVideoId:(t= S==null?void 0:S.videoId)!=null?t:"empty_video",adClientPlaybackNonce:(P=V==null?void 0:V.cpn)!=null?P:S==null?void 0:S.clientPlaybackNonce};V&&(b.adBreakType=V.adBreakType,b.adType=V.adType);g.J_(b,v);o2(M,z,v)}}else I=this.Zg,P=this.videoData.clientPlaybackNonce,t=O.videoData,P=(v.cpn===P?"video":"ad")+"_to_"+(O.cpn===P?"video":"ad"),v={},t.C&&(v.cttAuthInfo={token:t.C,videoId:t.videoId}),b&&(v.startTime=b),Kw(P,v),g.J_({targetVideoId:t.videoId,targetCpn:O.cpn,isSsdai:!0},P),I.Yg.V("html5_enable_ssdai_transition_with_only_enter_cuerange")? b||o2(I,z,P):o2(I,z,P)}}else this.logger.Y(360717806,"SSTEvent for nonSS")}; g.u.BG=function(){var v=this.WD,O=v.MB;v.MB=[];return O}; g.u.X$=function(v){this.videoData.j5=!0;this.OE(new lJ("sabr.fallback",v));this.jA(!0)}; g.u.Tp=function(v,O){this.videoData.Yr=!0;if(O===void 0||O)this.OE(new lJ("qoe.restart",v)),this.jA(!0);this.videoData.lM()&&this.V("html5_reload_caption_on_ssdai_fallback")&&this.WD.B9()}; g.u.pY=function(v){this.G0("sdai",{aftimeout:v});this.OE(new lJ("ad.fetchtimeout",{timeout:v}))}; g.u.cw=function(v,O){this.G0("timelineerror",v);v=new lJ("dai.timelineerror",v);O?this.g4("dai.timelineerror",1,"RETRYABLE_ERROR",TB(v.details)):this.OE(v)}; g.u.Xp=function(){return p6(this.Kj())}; g.u.getPlayerSize=function(){return this.Mv.getPlayerSize()}; g.u.Q$=function(){return this.Mv.Q$()}; g.u.pS=function(){return this.Zg}; g.u.I2=function(){return this.WD.I2()}; g.u.getVolume=function(){return this.WD.getVolume()}; g.u.SG=function(){return this.WD.SG()}; g.u.isMuted=function(){return this.WD.isMuted()}; g.u.iy=function(){return this.WD.iy()}; g.u.ow=function(){this.X0=!0}; g.u.V=function(v){return this.Yg.V(v)}; g.u.zN=function(v,O,Y,S,d){this.G0("xvt",{m:v,g:O?1:0,tt:Y?1:0,np:S?1:0,c:d})}; g.u.gY=function(){var v;(v=this.loader)==null||v.resume()}; g.u.QP=function(){return g.Vv(this.Tx,"ad")}; g.u.UJ=function(){var v=this.getCurrentTime(),O=v-this.En();var Y=this.mediaElement?MO(this.mediaElement.s_()):0;Y=Math.floor(Math.max(Y-O,0))+100;var S;return((S=this.loader)==null?0:S.UJ(O,Y))?(this.G0("sdai",{skipad:1,ct:O.toFixed(3),adj:Y.toFixed(3)}),Ol(this.videoData)&&this.loader.seek(O+Y,{seekSource:89,Vg:"videoplayer_skipServerStitchedAd"}),Zq7(this.A9,v),!0):!1}; g.u.XL=function(){return this.Yg.XL()}; g.u.jI=function(){if(this.V("html5_generate_content_po_token"))return this.videoData.YX||"";this.WD.Bm();return this.Yg.eA||""}; g.u.WL=function(){if(this.videoData.videoId)return this.videoData.I6}; g.u.fE=function(){return this.videoData.videoId}; g.u.jJ=function(){return this.WD.Y_}; g.u.Wh=function(){return this.Q3}; g.u.G_=function(){return this.WD.G_()}; g.u.lf=function(v,O){this.A9.lf(v,O)}; g.u.tD=function(){this.A9.tD()}; g.u.sW=function(v,O){var Y=this.V("html5_generate_content_po_token")?this.videoData:void 0;this.WD.sW(v,O,Y)}; g.u.A0=function(v,O){var Y;(Y=this.loader)==null||Y.A0(v,O)}; g.u.HM=function(){var v=this.rW();return!!v&&v.HM()}; g.u.U3=function(v,O){this.Kj().U3(v,O)}; g.u.TI=function(){return this.Kj().TI()}; g.u.IY=function(){return this.videoData.DL}; g.u.JF=function(){return this.WD.JF()}; g.u.LO=function(){return this.WD.LO(this)}; g.u.SH=function(v){var O;(O=this.loader)==null||O.SH(v)}; g.u.GT=function(){var v;(v=this.loader)==null||v.GT()};g.C(LgE,J4);g.C(Bx1,J4);g.u=Bx1.prototype;g.u.seekToChapterWithAnimation=function(v){var O=this;if(g.W2(this.api)&&!(v<0)){var Y=this.api.getVideoData(),S=Y.oS;if(S&&v=0)return;O=~O;g.xY(this.items,O,0,v);vL(this.menuItems.element,v.element,O)}v.subscribe("size-change",this.wF,this);this.menuItems.publish("size-change")}; g.u.u6=function(v){v.unsubscribe("size-change",this.wF,this);this.vW()||(g.$Y(this.items,v),this.menuItems.element.removeChild(v.element),this.menuItems.publish("size-change"))}; g.u.wF=function(){this.menuItems.publish("size-change")}; g.u.focus=function(){for(var v=0,O=0;O1&&g.ab(this)}; g.u.FV=function(){sBl(this);this.t$&&(Wow(this),g.Ev(this.element,this.size))}; g.u.MY=function(){var v=this.Y.pop();zQ7(this,v,this.Y[this.Y.length-1],!0)}; g.u.yl=function(v){if(!v.defaultPrevented)switch(v.keyCode){case 27:this.VC();v.preventDefault();break;case 37:this.Y.length>1&&this.MY();v.preventDefault();break;case 39:v.preventDefault()}}; g.u.focus=function(){this.Y.length&&this.Y[this.Y.length-1].focus()}; g.u.cW=function(){g.QN.prototype.cW.call(this);this.C&&this.C.dispose();this.L&&this.L.dispose()};g.C(x6,g.Cq);x6.prototype.open=function(v,O){this.initialize(v.items)&&this.RI(O,!!O)}; x6.prototype.initialize=function(v){g.u6(this.eT);if(v===void 0||v.length===0)return!1;var O=v.length;v=g.y(v);for(var Y=v.next();!Y.done;Y=v.next())this.L_(Y.value,O--);return!0}; x6.prototype.L_=function(v,O){v.menuNavigationItemRenderer?Vo7(this,v.menuNavigationItemRenderer,O):v.menuServiceItemRenderer&&Ahd(this,v.menuServiceItemRenderer,O)};g.C(pq,k6);g.u=pq.prototype;g.u.NK=function(v){v.target!==this.dismissButton.element&&v.target!==this.overflowButton.element&&(this.Xn(),this.onClickCommand&&this.N.PW("innertubeCommand",this.onClickCommand))}; g.u.l1=function(){this.enabled=!1;this.j.hide()}; g.u.p$=function(){return!!this.Y&&this.enabled}; g.u.onVideoDataChange=function(v,O){this.G$(O);if(this.Y){this.eQ();a:if(!this.isCounterfactual){var Y,S,d;this.banner.update({title:(Y=this.Y)==null?void 0:Y.title,subtitle:(S=this.Y)==null?void 0:S.subtitle,metadata:(d=this.Y)==null?void 0:d.metadataText});var r;this.onClickCommand=g.q((r=this.Y)==null?void 0:r.onTap,Xf);var b;if(v=g.q((b=this.Y)==null?void 0:b.onOverflow,Xf))this.L=g.q(v,lcS);var z;if((z=this.Y)==null?0:z.thumbnailImage){var M,V;b=((M=this.Y)==null?void 0:(V=M.thumbnailImage)== null?void 0:V.sources)||[];if(b.length===0)break a;this.thumbnailImage.update({url:b[0].url})}else{var A;if((A=this.Y)==null?0:A.thumbnailIconName){var f;this.thumbnailIcon.update({icon:(f=this.Y)==null?void 0:f.thumbnailIconName})}}var k;this.shouldShowOverflowButton=!((k=this.Y)==null||!k.shouldShowOverflowButton);var U;this.shouldHideDismissButton=!((U=this.Y)==null||!U.shouldHideDismissButton)}var c;this.banner.element.setAttribute("aria-label",((c=this.Y)==null?void 0:c.a11yLabel)||"");var a; this.f1=(a=this.Y)==null?void 0:a.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;$aF(this)}}; g.u.kec=function(){this.isVisible=!0;$aF(this)}; g.u.A$3=function(){this.isVisible=!1;$aF(this)}; g.u.DN=function(){k6.prototype.DN.call(this);this.U&&this.N.logVisibility(this.banner.element,this.isVisible)}; g.u.Xn=function(){k6.prototype.Xn.call(this,!1);this.U&&this.N.logClick(this.banner.element)}; g.u.I3=function(v){this.C||(this.C=new x6(this.N),g.w(this,this.C));var O,Y;if((O=this.L)==null?0:(Y=O.menu)==null?0:Y.menuRenderer)this.C.open(this.L.menu.menuRenderer,v.target),v.preventDefault()}; g.u.G$=function(){}; g.u.eQ=function(){}; g.u.cW=function(){this.N.oF("suggested_action_view_model");k6.prototype.cW.call(this)};g.C(TZ,pq); TZ.prototype.G$=function(v){var O,Y,S;this.productUpsellSuggestedActionViewModel=g.q((O=v.getWatchNextResponse())==null?void 0:(Y=O.playerOverlays)==null?void 0:(S=Y.playerOverlayRenderer)==null?void 0:S.suggestedActionViewModel,KyS);var d;if((d=this.productUpsellSuggestedActionViewModel)==null?0:d.content){var r;this.Y=g.q((r=this.productUpsellSuggestedActionViewModel)==null?void 0:r.content,xvU)}var b,z;if(this.U=!!((b=this.productUpsellSuggestedActionViewModel)==null?0:(z=b.loggingDirectives)==null? 0:z.trackingParams)){var M,V;this.N.setTrackingParams(this.banner.element,((M=this.productUpsellSuggestedActionViewModel)==null?void 0:(V=M.loggingDirectives)==null?void 0:V.trackingParams)||null)}var A;this.isCounterfactual=!((A=this.productUpsellSuggestedActionViewModel)==null||!A.isCounterfactualServing)}; TZ.prototype.eQ=function(){var v=[],O,Y=g.y(((O=this.productUpsellSuggestedActionViewModel)==null?void 0:O.ranges)||[]);for(O=Y.next();!O.done;O=Y.next()){var S=O.value;S&&(O=Number(S.startTimeMilliseconds),S=Number(S.endTimeMilliseconds),isNaN(O)||isNaN(S)||v.push(new g.dh(O,S,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.N.YZ(v)};g.C(k93,J4);g.C(l6,J4);l6.prototype.onVideoDataChange=function(v,O){var Y=this;if(!Lh(O)){v==="newdata"&&ch3(this);var S=this.api.V("html5_fix_duplicate_get_setting_values_requests");if(this.G&&this.Y&&v==="dataloaded"){S&&(this.Y=!1);var d;$i(fs(O3(this.api.D(),(d=this.api.getVideoData())==null?void 0:g.ez(d)),function(r){S||(Y.Y=!1);TP1(Y,r)}),function(){Y.Y=!0})}}}; l6.prototype.Rm=function(){var v=this;if(g.lx(this.api.D())){var O,Y=g.vO(this.api.D(),(O=this.api.getVideoData())==null?void 0:g.ez(O));return fs(gQ(Y),function(S){var d=Rh();eE(d,S);return v.api.Rm(d)})}return gQ(this.api.Rm())};g.C(g.hA,g.wB);g.u=g.hA.prototype;g.u.open=function(){g.yb(this.HT,this.U)}; g.u.tF=function(v){ltc(this);var O=this.options[v];O&&(O.element.setAttribute("aria-checked","true"),this.yg(this.gW(v)),this.G=v)}; g.u.Vc=function(v){g.u6(this.U);for(var O={},Y=!1,S=0;S=0?this.Y.playbackRate:1}catch(v){return 1}}; g.u.setPlaybackRate=function(v){this.getPlaybackRate()!==v&&(this.Y.playbackRate=v);return v}; g.u.IJ=function(){return this.Y.loop}; g.u.setLoop=function(v){this.Y.loop=v}; g.u.canPlayType=function(v,O){return this.Y.canPlayType(v,O)}; g.u.isPaused=function(){return this.Y.paused}; g.u.isSeeking=function(){return this.Y.seeking}; g.u.isEnded=function(){return this.Y.ended}; g.u.vL=function(){return this.Y.muted}; g.u.PZ=function(v){Ba();this.Y.muted=v}; g.u.ix=function(){return this.Y.played||j5([],[])}; g.u.s_=function(){try{var v=this.Y.buffered}catch(O){}return v||j5([],[])}; g.u.zo=function(){return this.Y.seekable||j5([],[])}; g.u.lj=function(){var v=this.Y;return v.getStartDate?v.getStartDate():null}; g.u.getCurrentTime=function(){return this.Y.currentTime}; g.u.setCurrentTime=function(v){this.Y.currentTime=v}; g.u.getDuration=function(){return this.Y.duration}; g.u.load=function(){var v=this.Y.playbackRate;try{this.Y.load()}catch(O){}this.Y.playbackRate=v}; g.u.pause=function(){this.Y.pause()}; g.u.play=function(){var v=this.Y.play();if(!v||!v.then)return null;v.then(void 0,function(){}); return v}; g.u.h3=function(){return this.Y.readyState}; g.u.kE=function(){return this.Y.networkState}; g.u.ub=function(){return this.Y.error?this.Y.error.code:null}; g.u.Bj=function(){return this.Y.error?this.Y.error.message:""}; g.u.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.Y instanceof window.HTMLVideoElement&&this.Y.getVideoPlaybackQuality)return this.Y.getVideoPlaybackQuality();if(this.Y){var v=this.Y,O=v.webkitDroppedFrameCount;if(v=v.webkitDecodedFrameCount)return{droppedVideoFrames:O||0,totalVideoFrames:v}}return{}}; g.u.YW=function(){return!!this.Y.webkitCurrentPlaybackTargetIsWireless}; g.u.rS=function(){return!!this.Y.webkitShowPlaybackTargetPicker()}; g.u.togglePictureInPicture=function(){var v=this.Y,O=window.document;window.document.pictureInPictureEnabled?this.Y!==O.pictureInPictureElement?v.requestPictureInPicture():O.exitPictureInPicture():LD()&&v.webkitSetPresentationMode(v.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.u.EP=function(){var v=this.Y;return new g.lg(v.offsetLeft,v.offsetTop)}; g.u.getSize=function(){return g.Qm(this.Y)}; g.u.setSize=function(v){g.Ev(this.Y,v)}; g.u.getVolume=function(){return this.Y.volume}; g.u.setVolume=function(v){Ba();this.Y.volume=v}; g.u.EC=function(v){this.Z[v]||(this.Y.addEventListener(v,this.listener),this.Z[v]=this.listener)}; g.u.setAttribute=function(v,O){this.Y.setAttribute(v,O)}; g.u.removeAttribute=function(v){this.Y.removeAttribute(v)}; g.u.hasAttribute=function(v){return this.Y.hasAttribute(v)}; g.u.Kp=vm(67);g.u.E1=vm(69);g.u.Tg=vm(71);g.u.dn=vm(73);g.u.rP=function(){return cp(this.Y)}; g.u.Na=function(v){g.on(this.Y,v)}; g.u.er=function(v){return g.xW(this.Y,v)}; g.u.Vb=function(){return g.YW(document.body,this.Y)}; g.u.audioTracks=function(){var v=this.Y;if("audioTracks"in v)return v.audioTracks}; g.u.cW=function(){for(var v=g.y(Object.keys(this.Z)),O=v.next();!O.done;O=v.next())O=O.value,this.Y.removeEventListener(O,this.Z[O]);Y2.prototype.cW.call(this)}; g.u.BN=function(v){this.Y.disableRemotePlayback=v};g.C(nq,g.K);g.C(Kq,g.K);Kq.prototype.show=function(){g.K.prototype.show.call(this);this.q3();this.r8.V("html5_enable_moving_s4n_window")&&g.lx(this.r8.D())&&this.X()}; Kq.prototype.hide=function(){g.K.prototype.hide.call(this);this.delay.stop();this.B.stop()}; Kq.prototype.q3=function(){var v=(0,g.J)(),O=It$(this.r8);JA(this.Y,O.bandwidth_samples);JA(this.L,O.network_activity_samples);JA(this.G,O.live_latency_samples);JA(this.U,O.buffer_health_samples);var Y={};O=g.y(Object.entries(O));for(var S=O.next();!S.done;S=O.next()){var d=g.y(S.value);S=d.next().value;d=d.next().value;this.j[S]!==d&&(Y[S]=" "+String(d));this.j[S]=d}this.update(Y);v=(0,g.J)()-v>25?5E3:500;this.delay.start(v)}; Kq.prototype.X=function(){this.C?(this.position+=1,this.position>15&&(this.C=!1)):(--this.position,this.position<=0&&(this.C=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.B.start(2E4)};g.C(JhF,J4);g.C(PR,g.X);PR.prototype.Y=function(){var v=(0,g.J)()-this.startTime;v=vthis.B[v])&&(this.Y=v,i6(this))}; g.u.onCueRangeExit=function(v){var O=SYE(this,v);O&&this.Y===v&&this.api.PW("innertubeCommand",O);this.clearTimeout();this.Y=void 0}; g.u.onTimeout=function(v){this.Y!==void 0&&(v==null?void 0:v.cueRangeId)===this.Y&&(this.X=!1,(v=SYE(this,this.Y))&&this.api.PW("innertubeCommand",v))}; g.u.yT=function(v){this.U=v}; g.u.PR=function(){i6(this);this.U=void 0}; g.u.setTimeout=function(v){var O=this,Y=Number(v==null?void 0:v.maxVisibleDurationMilliseconds);Y&&(this.clearTimeout(),this.j=setTimeout(function(){O.onTimeout(v)},Y))}; g.u.clearTimeout=function(){this.j&&clearTimeout(this.j);this.j=void 0;this.X=!1}; g.u.cW=function(){this.timelyActions=this.U=this.Y=this.videoId=void 0;this.B={};this.Uy();this.clearTimeout();J4.prototype.cW.call(this)};g.C(bjF,J4);g.C(tA,DE);tA.prototype.C=function(v){this.B(v?2:1)}; tA.prototype.U=function(){var v=this.N.getPresentingPlayerType();v===2||v===3?(this.Y=!1,this.HT.u6(this)):this.Y||(v=this.hasVoiceBoostAudioTrack(),this.setEnabled(v),v=this.G()===2&&v,H2(this,v),this.HT.L_(this),this.Y=!0)}; tA.prototype.cW=function(){this.HT.u6(this);DE.prototype.cW.call(this)};g.C(D2,J4);D2.prototype.getVoiceBoostUserPreference=function(){return this.Y}; D2.prototype.setVoiceBoostUserPreference=function(v){this.api.G0("vb_set",{pref:v});g.QD("yt-player-voice-boost",v);v!==this.Y&&(this.Y=v,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.Bb())}; D2.prototype.hasVoiceBoostAudioTrack=function(){var v,O,Y=(v=this.api.getVideoData())==null?void 0:(O=v.G)==null?void 0:O.Y;return Y?H4(Y,function(S){var d;return((d=S.audio)==null?void 0:d.U)===!0}):!1}; D2.prototype.updateEnvironmentData=function(){this.api.D().kq=this.Y};var $hw=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.C(vw,J4);vw.prototype.cW=function(){this.L&&(g.Uq(this.L),this.L=void 0);J4.prototype.cW.call(this)}; vw.prototype.Bm=function(){(this.U?!this.Y:this.G)&&Yh(this)}; vw.prototype.xb=function(v,O,Y){var S=this;if(WVF(v)){var d=Y||"";if(this.Y)O=SK(this,d),zAQ(v,O);else{var r=new g.Mf;O.push(r.promise);this.Z.promise.then(function(){var b=SK(S,d);zAQ(v,b);r.resolve()})}}}; vw.prototype.VD=function(v){var O=this;if(this.U||this.G)v.YX=SK(this,v.videoId),this.Y||(this.B=new OK,this.Z.promise.then(function(){O.Zg.cB("pot_if");v.YX=SK(O,v.videoId)}))};g.C(rx,J4);rx.prototype.setFullscreenQuickActions=function(v){this.Y&&this.api.getRootNode().removeChild(this.Y);v?(g.on(v,"ytp-fullscreen-quick-actions"),g.on(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.TW(this.api,v,4)):g.WI(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions");this.Y=v;dx(this)}; rx.prototype.setPlayerOverlayVideoDetailsRenderer=function(v){this.playerOverlayVideoDetailsRenderer&&this.api.getRootNode().removeChild(this.playerOverlayVideoDetailsRenderer);v?(g.on(v,"ytp-fullscreen-metadata"),this.api.V("delhi_modern_web_player_fullscreen_metadata_bottom")?g.on(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"):g.on(this.api.getRootNode(),"ytp-fullscreen-metadata-top"),g.TW(this.api,v,4)):(g.WI(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.WI(this.api.getRootNode(), "ytp-fullscreen-metadata-bottom"));this.playerOverlayVideoDetailsRenderer=v;dx(this)};g.C(Uhd,J4);g.C(bn,g.X);bn.prototype.Y=function(){for(var v=g.y(g.Bm.apply(0,arguments)),O=v.next();!O.done;O=v.next())(O=O.value)&&this.features.push(O)}; bn.prototype.cW=function(){for(var v=this.features.length-1;v>=0;v--)this.features[v].dispose();this.features.length=0;g.X.prototype.cW.call(this)};cGg.prototype.reset=function(){this.Y=this.U=NaN};g.u=uVF.prototype;g.u.reset=function(){wg(this.timerName)}; g.u.tick=function(v,O){nw(v,O,this.timerName)}; g.u.cB=function(v){return GU(v,void 0,this.timerName)}; g.u.Jf=function(v){g.hm(v,void 0,this.timerName)}; g.u.infoGel=function(v){g.J_(v,this.timerName)};g.C(aNm,g.MU);g.u=aNm.prototype;g.u.fT=function(v){return this.loop||!!v||this.index+1=0}; g.u.setShuffle=function(v){this.shuffle=v;v=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var O=0;O0)||Fl(this,1,!0)}; g.u.Oi=function(){this.C=!0;this.Y.g2(this.Z);this.Z=this.Y.S(document,"mouseup",this.YY)}; g.u.YY=function(){this.C=!1;Fl(this,8,!1);this.Y.g2(this.Z);this.Z=this.Y.S(this.target,"mousedown",this.Oi)}; g.u.Ui=function(v){if(v=(v=v.changedTouches)&&v[0])this.HW=v.identifier,this.Y.g2(this.X),this.X=this.Y.S(this.target,"touchend",this.bZ,void 0,!0),Fl(this,1024,!0)}; g.u.bZ=function(v){if(v=v.changedTouches)for(var O=0;O1280||d>720)if(O=S.JE("maxresdefault.jpg"))break;if(r>640||d>480)if(O=S.JE("maxresdefault.jpg"))break;if(r>320||d>180)if(O=S.JE("sddefault.jpg")||S.JE("hqdefault.jpg")||S.JE("mqdefault.jpg"))break;if(O=S.JE("default.jpg"))break}g.iq(v)&&(v=new Image,v.addEventListener("load", function(){oTd()}),v.src=O?O:"",this.api.pS().tick("ftr")); this.B.style.backgroundImage=O?"url("+O+")":""};g.C(g.Ee,g.K);g.Ee.prototype.resize=function(){}; g.Ee.prototype.U=function(v){var O=this;this.G=!1;$Ig(this);var Y=v.y0,S=this.api.D();Y!=="GENERIC_WITHOUT_LINK"||S.C?Y==="TOO_MANY_REQUESTS"?(S=this.api.getVideoData(),this.yg(Bw(this,"TOO_MANY_REQUESTS_WITH_LINK",S.qY(),void 0,void 0,void 0,!1))):Y!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||S.C?this.api.D().V("html5_enable_bandaid_error_screen")&&Y==="HTML5_SPS_UMP_STATUS_REJECTED"&&!S.C?(S=S.hostLanguage,v="//support.google.com/youtube?p=videoError",S&&(v=g.Te(v,{hl:S})),this.yg(Bw(this,"HTML5_SPS_UMP_STATUS_REJECTED", v))):this.api.D().V("enable_adb_handling_in_sabr")&&Y==="BROWSER_OR_EXTENSION_ERROR"&&!S.C?(S=S.hostLanguage,v="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",S&&(v=g.Te(v,{hl:S})),this.yg(Bw(this,"BROWSER_OR_EXTENSION_ERROR",v))):this.yg(g.Qt(v.errorMessage)):this.yg(Bw(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(v=S.hostLanguage,Y="//support.google.com/youtube/?p=player_error1",v&&(Y=g.Te(Y, {hl:v})),this.yg(Bw(this,"GENERIC_WITH_LINK_AND_CPN",Y,!0)),S.R1&&!S.B&&fPg(this,function(r){if(g.NG(r,O.api,!nH(O.api.D()))){r={as3:!1,html5:!0,player:!0,cpn:O.api.getVideoData().clientPlaybackNonce};var b=O.api;b.zf("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:r});b.isFullscreen()&&b.toggleFullscreen()}})); if(this.G){var d=this.BW("ytp-error-link");d&&(this.api.createClientVe(d,this,216104),this.api.logVisibility(d,!0),fPg(this,function(){O.api.logClick(d)}))}}; var ANi=/([^<>]+)<\/a>/;g.C(kd1,g.K);g.u=kd1.prototype;g.u.onClick=function(v){this.innertubeCommand?(this.N.PW("innertubeCommand",this.innertubeCommand),v.preventDefault()):g.NG(v,this.N,!0);this.N.logClick(this.element)}; g.u.onVideoDataChange=function(v,O){cNc(this,O);this.RF&&uXc(this,this.RF)}; g.u.Ob=function(v){var O=this.N.getVideoData();this.videoId!==O.videoId&&cNc(this,O);this.Y&&uXc(this,v.state);this.RF=v.state}; g.u.RI=function(){this.fade.show();this.N.publish("paidcontentoverlayvisibilitychange",!0);this.N.logVisibility(this.element,!0)}; g.u.VC=function(){this.fade.hide();this.N.publish("paidcontentoverlayvisibilitychange",!1);this.N.logVisibility(this.element,!1)};g.C(Za,g.K);Za.prototype.hide=function(){this.Y.stop();this.message.style.display="none";g.K.prototype.hide.call(this)}; Za.prototype.onStateChange=function(v){this.uM(v.state)}; Za.prototype.uM=function(v){if(g.G(v,128)||this.api.Wh())var O=!1;else{var Y;O=this.api.V("web_watch_enable_multiview_manager")&&((Y=this.api.getVideoData())==null?0:Lh(Y))?!1:g.G(v,16)||g.G(v,1)?!0:!1}O?this.Y.start():this.hide()}; Za.prototype.U=function(){this.message.style.display="block"};g.C(Xl,g.QN);Xl.prototype.onMutedAutoplayChange=function(v){this.G&&(v?(CfJ(this),this.RI()):(this.Y&&this.logClick(),this.VC()))}; Xl.prototype.Uz=function(v){this.api.isMutedByMutedAutoplay()&&g.UO(v,2)&&this.VC()}; Xl.prototype.onClick=function(){this.api.unMute();this.logClick()}; Xl.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.C(g.wx,g.Z6);g.u=g.wx.prototype;g.u.init=function(){var v=this.api,O=v.getPlayerStateObject();this.t7=v.getPlayerSize();this.HD(O);this.m2();this.ze();this.api.publish("basechromeinitialized",this);this.xw()&&this.api.publish("standardControlsInitialized")}; g.u.onVideoDataChange=function(v,O){var Y=this.aB!==O.videoId;if(Y||v==="newdata")v=this.api,v.isFullscreen()||(this.t7=v.getPlayerSize());Y&&(this.aB=O.videoId,Y=this.AM,Y.JK=3E3,Fl(Y,512,!0),this.m2());this.api.V("web_render_jump_buttons")&&O.showSeekingControls&&(this.kQ=572)}; g.u.b_d=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.u.Gk=function(){var v=this.api.mK()&&this.api.O8(),O=this.api.Bt();return this.BX||v||this.Mm||O}; g.u.OP=function(){var v=!this.Gk();g.gr(this.api.getRootNode(),"ytp-menu-shown",!v)}; g.u.Lt=function(v){try{if(!g.YW(this.api.getRootNode(),v))return!1}catch(O){return!1}for(;v&&!X0n(v);)v=v===this.api.getRootNode()?null:v.parentElement||null;return!!v}; g.u.Y5=function(v){var O=this.api.getRootNode();g.gr(O,"ytp-autohide",v);g.gr(O,"ytp-autohide-active",!0);this.eb.start(v?250:100);v&&(this.GB=!1,g.WI(O,"ytp-touch-mode"));this.dc=!v;this.api.rY(!v)}; g.u.dF=function(){var v=this.api.getRootNode();g.gr(v,"ytp-autohide-active",!1)}; g.u.pq1=function(){this.Y7=!0}; g.u.Mpd=function(v){if(this.api.D().V("player_doubletap_to_seek")||this.api.D().L)this.Y7=!1,this.b$&&this.g2(this.b$),this.m0===0&&qo(this,v)?(this.pO(),this.PQ.start(),this.b$=this.S(this.api.j4(),"touchmove",this.pq1,void 0,!0)):this.PQ.stop();pAn(this)&&qo(this,v)&&!this.api.D().L&&aP3(this);var O=this.GQ.qT();if(!g.aP(this.api.D())&&cD&&TuJ(this,v))O&&v.preventDefault();else if(this.GB=!0,g.on(this.api.getRootNode(),"ytp-touch-mode"),this.AM.YC(),this.api.D().V("player_doubletap_to_seek")||this.api.D().L)if(O= this.api.getPlayerStateObject(),!(!this.api.Ol()||g.G(O,2)&&g.c2(this.api)||g.G(O,64))){O=Date.now()-this.MO;this.m0+=1;if(O<=350){this.gP=!0;O=this.api.getPlayerSize().width/3;var Y=this.api.getRootNode().getBoundingClientRect(),S=v.targetTouches[0].clientX-Y.left;Y=v.targetTouches[0].clientY-Y.top;var d=(this.m0-1)*10;S>0&&SO*2&&S=650,S=v.width<528;this.AM.resize();g.gr(O,"ytp-fullscreen",this.api.isFullscreen());g.gr(O,"ytp-large-width-mode",Y);this.api.V("delhi_modern_web_player")?g.gr(O,"ytp-xsmall-width-mode",S):g.gr(O,"ytp-small-mode",this.tE());g.gr(O,"ytp-tiny-mode",this.dQ());g.gr(O,"ytp-big-mode",this.Z9());this.SA&&this.SA.resize(v)}; g.u.Uz=function(v){this.HD(v.state);this.m2()}; g.u.Ip=vm(5);g.u.Ac=function(){var v=!!this.aB&&!this.api.WY()&&!this.G1,O=this.api.getPresentingPlayerType()===2,Y=this.api.D();if(O){if($$Y&&Y.V("enable_visit_advertiser_support_on_ipad_mweb"))return!1;O=a2(this.api.QC());v&&(O&&O.player?v=(v=O.player.getVideoData(2))?v.isListed&&!g.p0(O.player.D()):!1:(f_("showInfoBarDuringAd: this is null"),v=!1));return v}return v&&(Y.ZI||this.api.isFullscreen()||Y.ME)}; g.u.m2=function(){var v=this.Ac();this.Ha!==v&&(this.Ha=v,g.gr(this.api.getRootNode(),"ytp-hide-info-bar",!v))}; g.u.HD=function(v){var O=v.isCued()||this.api.a4()&&this.api.getPresentingPlayerType()!==3;O!==this.isCued&&(this.isCued=O,this.Om&&this.g2(this.Om),this.Om=this.S(this.api.j4(),"touchstart",this.Mpd,void 0,O));var Y=this.AM,S=v.isPlaying()&&!g.G(v,32)||this.api.Xj();Fl(Y,128,!S);Y=this.AM;S=this.api.getPresentingPlayerType()===3;Fl(Y,256,S);Y=this.api.getRootNode();g.G(v,2)?S=[Jb.ENDED]:(S=[],g.G(v,8)?S.push(Jb.PLAYING):g.G(v,4)&&S.push(Jb.PAUSED),g.G(v,1)&&!g.G(v,32)&&S.push(Jb.BUFFERING),g.G(v, 32)&&S.push(Jb.SEEKING),g.G(v,64)&&S.push(Jb.UNSTARTED));g.eU(this.CX,S)||(g.zf(Y,this.CX),this.CX=S,g.ji(Y,S));S=this.api.D();var d=g.G(v,2);a:{var r=this.api.D();var b=r.controlsType;switch(b){case "2":case "0":r=!1;break a}r=b==="3"&&!g.G(v,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:HEd(a2(this.api.QC())))||this.api.Bt()||g.aP(r)&&this.api.getPresentingPlayerType()===2?!1:!0}g.gr(Y,"ytp-hide-controls",!r);g.gr(Y,"ytp-native-controls",S.controlsType==="3"&&!O&&!d&&!this.Mm);g.G(v, 128)&&!g.aP(S)?(this.SA||(this.SA=new g.Ee(this.api),g.w(this,this.SA),g.TW(this.api,this.SA.element,4)),this.SA.U(v.ib),this.SA.show()):this.SA&&(this.SA.dispose(),this.SA=null)}; g.u.KM=function(){return this.api.mK()&&this.api.O8()?(this.api.ER(!1,!1),!0):this.api.WY()?(g.ub(this.api,!0),!0):!1}; g.u.onMutedAutoplayChange=function(v){this.Mm=v;this.OP()}; g.u.Z9=function(){return!1}; g.u.tE=function(){return!this.Z9()&&(this.api.getPlayerSize().width=0&&O.left>=0&&O.bottom>O.top&&O.right>O.left?O:null;O=this.size;v=v.clone();O=O.clone();S&&(b=O,d=5,(d&65)==65&&(v.x=S.right)&&(d&=-2),(d&132)==132&&(v.y=S.bottom)&&(d&=-5),v.xS.right&&(b.width=Math.min(S.right-v.x,r+b.width-S.left),b.width=Math.max(b.width,0))),v.x+b.width>S.right&&d&1&&(v.x=Math.max(S.right-b.width,S.left)),v.yS.bottom&&(b.height=Math.min(S.bottom-v.y,r+b.height-S.top),b.height=Math.max(b.height,0))),v.y+b.height>S.bottom&&d&4&&(v.y=Math.max(S.bottom-b.height,S.top)));S=new g.cL(0,0,0,0);S.left=v.x;S.top=v.y;S.width= O.width;S.height=O.height;g.FR(this.element,new g.lg(S.left,S.top));g.hi(this.B);this.B.S(LU(this),"contextmenu",this.hh0);this.B.S(this.N,"fullscreentoggled",this.onFullscreenToggled);this.B.S(this.N,"pageTransition",this.pn)}; g.u.hh0=function(v){if(!v.defaultPrevented){var O=py(v);g.YW(this.element,O)||this.VC();this.N.D().disableNativeContextMenu&&v.preventDefault()}}; g.u.onFullscreenToggled=function(){this.VC();HvJ(this)}; g.u.pn=function(){this.VC()};g.C(Hw,g.K);Hw.prototype.onClick=function(){var v=this,O,Y,S,d;return g.B(function(r){if(r.U==1)return O=v.api.D(),Y=v.api.getVideoData(),S=v.api.getPlaylistId(),d=O.getVideoUrl(Y.videoId,S,void 0,!0),g.E(r,OId(v,d),2);r.Y&&vgE(v);v.api.logClick(v.element);g.UE(r)})}; Hw.prototype.q3=function(){this.updateValue("icon",{J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{J:"path",p_:!0,W:"ytp-svg-fill",T:{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=Nui(this);g.gr(this.element,"ytp-copylink-button-visible",this.visible); this.t9(this.visible);this.tooltip.GG();this.api.logVisibility(this.element,this.visible&&this.Z)}; Hw.prototype.o1=function(v){g.K.prototype.o1.call(this,v);this.api.logVisibility(this.element,this.visible&&v)}; Hw.prototype.cW=function(){g.K.prototype.cW.call(this);g.WI(this.element,"ytp-copylink-button-visible")};g.C(Y5m,g.K);g.u=Y5m.prototype;g.u.show=function(){g.K.prototype.show.call(this);g.HM(this.U)}; g.u.hide=function(){this.B.stop();this.G=0;this.BW("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.WI(this.element,"ytp-chapter-seek");g.WI(this.element,"ytp-time-seeking");g.K.prototype.hide.call(this)}; g.u.Sa=function(v,O,Y,S){this.G=v===this.L?this.G+S:S;this.L=v;var d=v===-1?this.j:this.X;d&&this.N.logClick(d);this.C?this.U.stop():g.vI(this.U);this.B.start();this.element.setAttribute("data-side",v===-1?"back":"forward");var r=3*this.N.j4().getPlayerSize().height;d=this.N.j4().getPlayerSize();d=d.width/3-3*d.height;this.Y.style.width=r+"px";this.Y.style.height=r+"px";v===1?(this.Y.style.left="",this.Y.style.right=d+"px"):v===-1&&(this.Y.style.right="",this.Y.style.left=d+"px");var b=r*2.5;r=b/ 2;var z=this.BW("ytp-doubletap-ripple");z.style.width=b+"px";z.style.height=b+"px";v===1?(v=this.N.j4().getPlayerSize().width-O+Math.abs(d),z.style.left="",z.style.right=v-r+"px"):v===-1&&(v=Math.abs(d)+O,z.style.right="",z.style.left=v-r+"px");z.style.top="calc((33% + "+Math.round(Y)+"px) - "+r+"px)";if(Y=this.BW("ytp-doubletap-ripple"))Y.classList.remove("ytp-doubletap-ripple"),Y.classList.add("ytp-doubletap-ripple");S5Q(this,this.C?this.G:S)}; g.u.zx=function(v,O,Y){if(Y=Y===void 0?null:Y){var S=v===-1?this.j.visualElement:this.X.visualElement;Y={seekData:Y};var d=g.TS();d&&g.N7(Ne)(void 0,d,S,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",Y,void 0)}this.G=v===this.L?this.G+O:O;this.L=v;S=this.N.j4().getPlayerSize();this.C?this.U.stop():g.vI(this.U);this.B.start();this.element.setAttribute("data-side",v===-1?"back":"forward");g.on(this.element,"ytp-time-seeking");this.Y.style.width="110px";this.Y.style.height="110px";Y=S.width*.1-15;v=== 1?this.tK?(this.Y.style.right=Y+"px",this.Y.style.left=""):(this.Y.style.right="",this.Y.style.left=S.width*.8-30+"px"):v===-1&&(this.tK?(this.Y.style.right="",this.Y.style.left=Y+"px"):(this.Y.style.right="",this.Y.style.left=S.width*.1-15+"px"));this.Y.style.top=S.height*.5+15+"px";S5Q(this,this.C?this.G:O)}; g.u.Gg=function(v,O,Y){Y=Y===void 0?null:Y;g.vI(this.U);this.B.start();switch(v){case -1:v="back";break;case 1:v="forward";break;default:v=""}this.element.setAttribute("data-side",v);this.Y.style.width="0";this.Y.style.height="0";g.on(this.element,"ytp-chapter-seek");this.updateValue("seekText",O);this.updateValue("seekTime","");O=this.BW("ytp-seek-icon");if(Y){a:if(Y){switch(Y){case "PREMIUM_STANDALONE":Y=eV1();break a;case "PREMIUM_STANDALONE_CAIRO":Y=Ed3();break a}Y=void 0}else Y=null;this.updateValue("seekIcon", Y);O.style.display="inline-block"}else O.style.display="none"};g.C(dmw,k6);g.u=dmw.prototype;g.u.Hl=function(v){this.g8||(this.g8=new x6(this.N),g.w(this,this.g8));var O,Y;if((O=this.Mj)==null?0:(Y=O.menu)==null?0:Y.menuRenderer)this.g8.open(this.Mj.menu.menuRenderer,v.target),v.preventDefault()}; g.u.p$=function(){return!!this.Y}; g.u.fY=function(){return!!this.Y}; g.u.NK=function(v){v.target===this.overflowButton.element?v.preventDefault():(this.yC&&this.N.PW("innertubeCommand",this.yC),this.Xn(!1))}; g.u.l1=function(){this.Xn(!0);var v,O;((v=this.Y)==null?0:(O=v.bannerData)==null?0:O.dismissedStatusKey)&&this.rR.push(this.Y.bannerData.dismissedStatusKey);this.tv()}; g.u.zs=function(){this.tv();O0(this)}; g.u.pjW=function(v){var O=this,Y;if(v.id!==((Y=this.Y)==null?void 0:Y.identifier)){this.tv();Y=g.y(this.JK);for(var S=Y.next();!S.done;S=Y.next()){var d=S.value,r=void 0,b=void 0;if((S=(r=d)==null?void 0:(b=r.bannerData)==null?void 0:b.itemData)&&d.identifier===v.id){b=r=void 0;var z=((r=d)==null?void 0:(b=r.bannerData)==null?void 0:b.dismissedStatusKey)||"";if(this.rR.includes(z))return;this.Y=d;this.banner.element.setAttribute("aria-label",S.accessibilityLabel||"");S.trackingParams&&(this.B=!0, this.N.setTrackingParams(this.badge.element,S.trackingParams));this.j.show();$6(this);this.N3.t9(!S.stayInApp);fy1(this);bI1(this);vi(this);this.yC=g.q(S.onTapCommand,Xf);if(d=g.q(S.menuOnTap,Xf))this.Mj=g.q(d,lcS);d=void 0;this.banner.update({thumbnail:(d=(S.thumbnailSources||[])[0])==null?void 0:d.url,title:S.productTitle,price:S.priceReplacementText?S.priceReplacementText:S.price,salesOriginalPrice:WeJ(this),priceDropReferencePrice:z8Q(this),promotionText:jVJ(this),priceA11yText:sVm(this),affiliateDisclaimer:S.affiliateDisclaimer, vendor:ggJ(this)});z=b=r=d=void 0;((d=S)==null?0:(r=d.hiddenProductOptions)==null?0:r.showDropCountdown)&&((b=S)==null?0:(z=b.hiddenProductOptions)==null?0:z.dropTimestampMs)&&(this.Cj=new g.mX(function(){AaQ(O)},1E3),this.N3.hide(),this.countdownTimer.show(),AaQ(this)); this.N.V("web_player_enable_featured_product_banner_exclusives_on_desktop")&&ra1(this)&&(this.R1=new g.mX(function(){ogQ(O)},1E3),ogQ(this))}}this.N.getRootNode()&&g.on(this.N.getRootNode(),"ytp-featured-product-shown")}}; g.u.tv=function(){this.Y&&(this.Y=void 0,this.OQ(),this.N.getRootNode()&&g.WI(this.N.getRootNode(),"ytp-featured-product-shown"))}; g.u.onVideoDataChange=function(v,O){var Y=this;v==="dataloaded"&&O0(this);var S,d,r;v=g.q((S=O.getWatchNextResponse())==null?void 0:(d=S.playerOverlays)==null?void 0:(r=d.playerOverlayRenderer)==null?void 0:r.productsInVideoOverlayRenderer,p5J);this.overflowButton.show();this.dismissButton.hide();var b=v==null?void 0:v.featuredProductsEntityKey;this.trendingOfferEntityKey=v==null?void 0:v.trendingOfferEntityKey;this.JK.length||(Vf3(this,b),vi(this));var z;(z=this.oI)==null||z.call(this);this.oI=g.tw.subscribe(function(){Vf3(Y, b);vi(Y)})}; g.u.cW=function(){O0(this);fy1(this);bI1(this);k6.prototype.cW.call(this)};g.C(udm,g.K);udm.prototype.onClick=function(){this.N.logClick(this.element,this.U)};g.C(Co3,g.QN);g.u=Co3.prototype;g.u.show=function(){g.QN.prototype.show.call(this);this.N.publish("infopaneldetailvisibilitychange",!0);this.N.logVisibility(this.element,!0);yad(this,!0)}; g.u.hide=function(){g.QN.prototype.hide.call(this);this.N.publish("infopaneldetailvisibilitychange",!1);this.N.logVisibility(this.element,!1);yad(this,!1)}; g.u.getId=function(){return this.B}; g.u.Jb=function(){return this.itemData.length}; g.u.onVideoDataChange=function(v,O){if(O){var Y,S,d,r;this.update({title:((Y=O.cV)==null?void 0:(S=Y.title)==null?void 0:S.content)||"",body:((d=O.cV)==null?void 0:(r=d.bodyText)==null?void 0:r.content)||""});var b;v=((b=O.cV)==null?void 0:b.trackingParams)||null;this.N.setTrackingParams(this.element,v);b=g.y(this.itemData);for(v=b.next();!v.done;v=b.next())v.value.dispose();this.itemData=[];var z;if((z=O.cV)==null?0:z.ctaButtons)for(O=g.y(O.cV.ctaButtons),z=O.next();!z.done;z=O.next())if(z=g.q(z.value, csS))z=new udm(this.N,z,this.Y),z.sE&&(this.itemData.push(z),z.C1(this.items))}}; g.u.cW=function(){this.hide();g.QN.prototype.cW.call(this)};g.C(po$,g.K);g.u=po$.prototype;g.u.onVideoDataChange=function(v,O){xmQ(this,O);this.RF&&lyQ(this,this.RF)}; g.u.dC=function(v){var O=this.N.getVideoData();this.videoId!==O.videoId&&xmQ(this,O);lyQ(this,v.state);this.RF=v.state}; g.u.JH=function(v){(this.G=v)?this.hide():this.Y&&this.show()}; g.u.Bl=function(){this.U||this.RI();this.showControls=!0}; g.u.QU=function(){this.U||this.VC();this.showControls=!1}; g.u.RI=function(){var v,O=(v=this.N)==null?void 0:v.getPlayerSize();v=O.width<380;var Y;O=O.height<(((Y=this.N)==null?0:Y.isEmbedsShortsMode())?400:280);var S,d;(((S=this.N)==null?0:S.getPlayerStateObject().isCued())||((d=this.N)==null?0:g.G(d.getPlayerStateObject(),1024)))&&v&&O||!this.Y||this.G||(this.fade.show(),this.N.publish("infopanelpreviewvisibilitychange",!0),this.N.logVisibility(this.element,!0))}; g.u.VC=function(){this.Y&&!this.G&&(this.fade.hide(),this.N.publish("infopanelpreviewvisibilitychange",!1),this.N.logVisibility(this.element,!1))}; g.u.dpx=function(){this.U=!1;this.showControls||this.VC()};var RuC={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(RuC).reduce(function(v,O){v[RuC[O]]=O;return v},{}); var euY={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(euY).reduce(function(v,O){v[euY[O]]=O;return v},{}); var EW0={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(EW0).reduce(function(v,O){v[EW0[O]]=O;return v},{});var QfK,LOU;QfK=[{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"}];LOU=[{option:0,text:Y5(0)},{option:.25,text:Y5(.25)},{option:.5,text:Y5(.5)},{option:.75,text:Y5(.75)},{option:1,text:Y5(1)}]; g.bO=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:QfK},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:Y5(.5)},{option:-1,text:Y5(.75)},{option:0,text:Y5(1)},{option:1,text:Y5(1.5)},{option:2, text:Y5(2)},{option:3,text:Y5(3)},{option:4,text:Y5(4)}]},{option:"background",text:"Background color",options:QfK},{option:"backgroundOpacity",text:"Background opacity",options:LOU},{option:"windowColor",text:"Window color",options:QfK},{option:"windowOpacity",text:"Window opacity",options:LOU},{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:Y5(.25)},{option:.5,text:Y5(.5)},{option:.75,text:Y5(.75)},{option:1,text:Y5(1)}]}];var BHt=[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.C(QVw,g.Z6);g.u=QVw.prototype; g.u.dA=function(v){v.repeat||(this.G.hU=!1);var O=!1,Y=v.keyCode,S=py(v),d=!v.altKey&&!v.ctrlKey&&!v.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||BHt.includes(Y)),r=!1,b=!1,z=this.api.D();v.defaultPrevented?(d=!1,b=!0):z.q8&&!this.api.isMutedByEmbedsMutedAutoplay()&&(d=!1);if(Y===9)O=!0;else{if(S)switch(Y){case 32:case 13:if(S.tagName==="BUTTON"||S.tagName==="A"||S.tagName==="INPUT")O=!0,d=!1;else if(d){var M=S.getAttribute("role");!M||M!=="option"&&M!=="button"&&M.indexOf("menuitem")!==0|| (O=!0,S.click(),r=!0)}break;case 37:case 39:case 36:case 35:O=S.getAttribute("role")==="slider";break;case 38:case 40:M=S.getAttribute("role"),S=Y===38?S.previousSibling:S.nextSibling,M==="slider"?O=!0:d&&(M==="option"?(S&&S.getAttribute("role")==="option"&&S.focus(),r=O=!0):M&&M.indexOf("menuitem")===0&&(S&&S.hasAttribute("role")&&S.getAttribute("role").indexOf("menuitem")===0&&S.focus(),r=O=!0))}if(d&&!r)switch(Y){case 38:r=Math.min(this.api.getVolume()+5,100);Kp(this.q2,r,!1);this.api.setVolume(r); b=r=!0;break;case 40:r=Math.max(this.api.getVolume()-5,0);Kp(this.q2,r,!0);this.api.setVolume(r);b=r=!0;break;case 36:this.api.Ol()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),b=r=!0);break;case 35:this.api.Ol()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),b=r=!0)}}O&&dP(this,!0);(O||b)&&this.AM.YC();(r||d&&this.handleGlobalKeyDown(Y,v.shiftKey,v.ctrlKey,v.altKey,v.metaKey,v.key,v.code,v.repeat))&&v.preventDefault();z.X&&(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.oD("onKeyPress",v))}; g.u.mA=function(v){var O=v.keyCode;(!this.api.V("web_player_spacebar_control_bugfix")||this.api.V("web_player_spacebar_control_bugfix")&&!this.G.J7)&&this.handleGlobalKeyUp(O,v.shiftKey,v.ctrlKey,v.altKey,v.metaKey,v.key,v.code)&&v.preventDefault()}; g.u.handleGlobalKeyUp=function(v,O,Y,S,d,r,b){this.api.publish("keyboardserviceglobalkeyup",{keyCode:v,shiftKey:O,ctrlKey:Y,altKey:S,metaKey:d,key:r,code:b});O=!1;if(this.G.hU)return O;(r=g.xe(this.api.QC()))&&(r=r.HK)&&r.t$&&(r.Qh(v),O=!0);switch(v){case 9:dP(this,!0);O=!0;break;case 32:if(this.api.V("web_speedmaster_spacebar_control")&&(!this.api.V("web_player_spacebar_control_bugfix")&&!this.G.J7||this.api.V("web_player_spacebar_control_bugfix"))&&!this.api.D().q8){var z,M;v=(z=this.progressBar)== null?void 0:(M=z.U)==null?void 0:M.isEnabled;O=this.z_(v)}break;case 39:(PX?S:Y)&&!d&&this.api.Ol()&&this.api.V("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),z=(z=this.api.getVideoData())?z.oS:[],M=h8g(z,this.api.getCurrentTime()*1E3),M!==-1&&this.Y!=null&&(this.Y.Gg(1,z[M].title),this.api.seekTo(z[M].startTime/1E3,void 0,void 0,void 0,52),O=!0))}return O}; g.u.handleGlobalKeyDown=function(v,O,Y,S,d,r,b,z){z||(this.G.hU=!1);var M=!1,V=this.api.D();if(V.q8&&!this.api.isMutedByEmbedsMutedAutoplay())return M;var A=g.xe(this.api.QC());if(A&&(A=A.HK)&&A.t$)switch(v){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:M=A.Hk(v)}V.C||M||(M=r||String.fromCharCode(v).toLowerCase(),this.U+=M,"awesome".indexOf(this.U)===0||this.api.V("web_player_rtr_ctrls")&&"bday".indexOf(this.U)===0?(M=!0,4===this.U.length&&this.U==="bday"&&this.api.V("web_player_rtr_ctrls")&& (k0d(this.Z),this.AM.YC()),7===this.U.length&&this.U==="awesome"&&l4d(this.api.getRootNode(),"ytp-color-party")):(this.U=M,M="awesome".indexOf(this.U)===0||"bday".indexOf(this.U)===0));if(!M&&(!this.api.isMutedByEmbedsMutedAutoplay()||BHt.includes(v))){var f=this.api.getVideoData(),k,U;A=(k=this.progressBar)==null?void 0:(U=k.U)==null?void 0:U.isEnabled;k=f?f.oS:[];U=PX?S:Y;switch(v){case 80:O&&!V.XO&&(JM(this.q2,QzJ(),"Previous"),this.api.previousVideo(),M=!0);break;case 78:O&&!V.XO&&(JM(this.q2, li(),"Next"),this.api.nextVideo(),M=!0);break;case 74:this.api.Ol()&&(this.api.startSeekCsiAction(),this.Y?this.api.V("enable_key_press_seek_logging")?(M=rP(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.Y.zx(-1,10,M)):this.Y.zx(-1,10):JM(this.q2,{J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{J:"path",p_:!0,W:"ytp-svg-fill",T:{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),M=!0);break;case 76:this.api.Ol()&&(this.api.startSeekCsiAction(),this.Y?this.api.V("enable_key_press_seek_logging")?(M=rP(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.Y.zx(1,10,M)):this.Y.zx(1,10):JM(this.q2,{J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{J:"path",p_:!0,W:"ytp-svg-fill",T:{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),M=!0);break;case 37:this.api.Ol()&&(this.api.startSeekCsiAction(),U?(U=R8i(k,this.api.getCurrentTime()*1E3),U!==-1&&this.Y!=null&&(this.Y.Gg(-1,k[U].title),this.api.seekTo(k[U].startTime/1E3,void 0,void 0,void 0,53),M=!0)):(this.Y?this.api.V("enable_key_press_seek_logging")?(M=rP(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.Y.zx(-1,5,M)):this.Y.zx(-1,5):JM(this.q2,{J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},K:[{J:"path",p_:!0,W:"ytp-svg-fill",T:{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),M=!0));break;case 39:this.api.Ol()&&(this.api.startSeekCsiAction(),U?this.api.V("web_enable_keyboard_shortcut_for_timely_actions")||(U=h8g(k,this.api.getCurrentTime()*1E3),U!==-1&&this.Y!=null&&(this.Y.Gg(1,k[U].title),this.api.seekTo(k[U].startTime/1E3,void 0,void 0,void 0,52),M=!0)):(this.Y!=null?this.api.V("enable_key_press_seek_logging")?(M=rP(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.Y.zx(1,5,M)):this.Y.zx(1, 5):JM(this.q2,{J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{J:"path",p_:!0,W:"ytp-svg-fill",T:{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),M=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),Kp(this.q2,this.api.getVolume(),!1)):(this.api.mute(),Kp(this.q2,0,!0));M=!0;break;case 32:M=this.api.V("web_speedmaster_spacebar_control")?!this.api.D().XO:this.z_(A);break;case 75:M=this.z_(A);break;case 190:O?V.enableSpeedOptions&&BUF(this)&&(M=this.api.getPlaybackRate(),this.api.setPlaybackRate(M+.25,!0),FQc(this.q2,!1),M=!0):this.api.Ol()&&(this.step(1),M=!0);break;case 188:O? V.enableSpeedOptions&&BUF(this)&&(M=this.api.getPlaybackRate(),this.api.setPlaybackRate(M-.25,!0),FQc(this.q2,!0),M=!0):this.api.Ol()&&(this.step(-1),M=!0);break;case 70:U6i(this.api)&&(this.api.toggleFullscreen().catch(function(){}),M=!0); break;case 27:A?(this.progressBar.rJ(),M=!0):this.C()&&(M=!0)}if(V.controlsType!=="3")switch(v){case 67:g.cw(this.api.QC())&&(V=this.api.getOption("captions","track"),this.api.toggleSubtitles(),h$7(this.q2,!V||V&&!V.displayName),M=!0);break;case 79:oB(this,"textOpacity");break;case 87:oB(this,"windowOpacity");break;case 187:case 61:oB(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:oB(this,"fontSizeIncrement",!0,!0)}var c;O||Y||S||(v>=48&&v<=57?c=v-48:v>=96&&v<=105&&(c=v-96));c!=null&&this.api.Ol()&& (this.api.startSeekCsiAction(),V=this.api.getProgressState(),this.api.seekTo(c/10*(V.seekableEnd-V.seekableStart)+V.seekableStart,void 0,void 0,void 0,81),M=!0);M&&this.AM.YC()}this.api.publish("keyboardserviceglobalkeydown",{keyCode:v,shiftKey:O,ctrlKey:Y,altKey:S,metaKey:d,key:r,code:b,repeat:z},this.G);return M}; g.u.step=function(v){this.api.Ol();if(this.api.getPlayerStateObject().isPaused()){var O=this.api.getVideoData().U;O&&(O=O.video)&&this.api.seekBy(v/(O.fps||30),void 0,void 0,v>0?77:78)}}; g.u.z_=function(v){if(!this.api.D().XO){var O;var Y,S=(O=this.api.getVideoData())==null?void 0:(Y=O.getPlayerResponse())==null?void 0:Y.playabilityStatus;if(S){var d;O=((d=g.q(S.miniplayer,LyY))==null?void 0:d.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else O=!1;O&&this.api.PW("onExpandMiniplayer");v?this.progressBar.b_():(v=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.q2.lN(v),v?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.u.cW=function(){g.vI(this.B);g.Z6.prototype.cW.call(this)};g.C(g.jo,g.K);g.jo.prototype.E$=vm(11); g.jo.prototype.q3=function(){var v=this.N.D(),O=v.G||this.N.V("web_player_hide_overflow_button_if_empty_menu")&&this.gE.isEmpty();v=g.aP(v)&&g.yN(this.N)&&g.G(this.N.getPlayerStateObject(),128);var Y=this.N.getPlayerSize();this.visible=this.N.tE()&&!v&&Y.width>=240&&!g.Jz(this.N.getVideoData())&&!O&&!this.Y&&!this.N.isEmbedsShortsMode();g.gr(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.N.GG();this.N.logVisibility(this.element,this.visible&&this.Z)}; g.jo.prototype.o1=function(v){g.K.prototype.o1.call(this,v);this.N.logVisibility(this.element,this.visible&&v)}; g.jo.prototype.cW=function(){g.K.prototype.cW.call(this);g.WI(this.element,"ytp-overflow-button-visible")};g.C(ZIm,g.QN);g.u=ZIm.prototype;g.u.mN=function(v){v=py(v);g.YW(this.element,v)&&(g.YW(this.Y,v)||g.YW(this.closeButton,v)||B2(this))}; g.u.VC=function(){g.QN.prototype.VC.call(this);this.N.Ly(this.element)}; g.u.show=function(){this.t$&&this.N.publish("OVERFLOW_PANEL_OPENED");g.QN.prototype.show.call(this);this.element.setAttribute("aria-modal","true");woF(this,!0)}; g.u.hide=function(){g.QN.prototype.hide.call(this);this.element.removeAttribute("aria-modal");woF(this,!1)}; g.u.onFullscreenToggled=function(v){!v&&this.qT()&&B2(this)}; g.u.isEmpty=function(){return this.actionButtons.length===0}; g.u.focus=function(){for(var v=g.y(this.actionButtons),O=v.next();!O.done;O=v.next())if(O=O.value,O.t$){O.focus();break}};g.C(IyE,g.K);g.C(q5J,g.K);q5J.prototype.onClick=function(v){g.NG(v,this.api)&&this.api.playVideoAt(this.index)};g.C(ngw,g.QN);g.u=ngw.prototype;g.u.show=function(){g.QN.prototype.show.call(this);this.Y.S(this.api,"videodatachange",this.cF);this.Y.S(this.api,"onPlaylistUpdate",this.cF);this.cF()}; g.u.hide=function(){g.QN.prototype.hide.call(this);g.hi(this.Y);this.updatePlaylist(null)}; g.u.cF=function(){this.updatePlaylist(this.api.getPlaylist());this.api.D().G&&(this.BW("ytp-playlist-menu-title-name").removeAttribute("href"),this.G&&(this.g2(this.G),this.G=null))}; g.u.CY=function(){var v=this.playlist,O=v.author,Y=O?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",S={CURRENT_POSITION:String(v.index+1),PLAYLIST_LENGTH:String(v.getLength())};O&&(S.AUTHOR=O);this.update({title:v.title,subtitle:g.kD(Y,S),playlisturl:this.api.getVideoUrl(!0)});O=v.U;if(O===this.B)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[v.index];else{Y=g.y(this.playlistData);for(S=Y.next();!S.done;S=Y.next())S.value.dispose(); Y=v.getLength();this.playlistData=[];for(S=0;S=this.U&&!v.G&&!O.isAd()&&!this.api.isEmbedsShortsMode()}else v=!1;this.visible=v;this.t9(this.visible);g.gr(this.element,"ytp-search-button-visible",this.visible);g.gr(this.element,"ytp-show-search-title",!this.api.tE());this.api.logVisibility(this.element,this.visible&&this.Z)}; gP.prototype.o1=function(v){g.K.prototype.o1.call(this,v);this.api.logVisibility(this.element,this.visible&&v)};g.C(Ma,g.K); Ma.prototype.trigger=function(v,O,Y,S){this.show();if(this.B&&v!==this.B){var d=1;this.U&&(d=OWn(this));tf$(this,d,!1);vjE(this)}this.B=v;this.G=this.B===-1?this.X:this.j;v="";O?(this.L+=O,v=g.lC(this.L)):this.L=0;this.updateValue(this.B===-1?"durationBack":"durationForward",v);if(this.Y==="hidden"||this.Y==="fading-out")O=0,this.Y==="fading-out"&&(O=OWn(this),NU1(this)),Dmi(this,O),this.Y!=="fading-out"&&HI7(this,this.G.querySelector(".ytp-seek-overlay-arrow-persistent")),this.Y="fading-in";else if(this.Y=== "fading-in"||this.Y==="lingering")O=this.G.querySelector(".ytp-seek-overlay-duration"),v=g.Vq(this.N.D().experiments,"web_player_seek_overlay_duration_bump_scale")||.95,O.animate([{offset:0,transform:"scale(1)"},{offset:.5,transform:"scale("+v+")"},{offset:1,transform:"scale(1)"}],{duration:200,easing:"cubic-bezier(0, 1, 0.1, 1)"}),NU1(this),this.Y==="lingering"&&(this.C.stop(),this.C.start());this.tK=(0,g.J)();Y&&Ygd(this,Y,S)}; Ma.prototype.Sa=function(v,O,Y,S){this.trigger(v,S)}; Ma.prototype.zx=function(v,O,Y){this.trigger(v,O);Y&&(v=v===-1?this.j.visualElement:this.X.visualElement,Y={seekData:Y},(O=g.TS())&&g.N7(Ne)(void 0,O,v,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",Y,void 0))}; Ma.prototype.Gg=function(v,O,Y){this.trigger(v,void 0,O,Y)};g.C(g.Vx,g.K);g.u=g.Vx.prototype;g.u.T_=vm(8);g.u.onClick=function(){var v=this,O=this.api.D(),Y=this.api.getVideoData(this.api.getPresentingPlayerType()),S=this.api.getPlaylistId();O=this.api.V("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):O.getVideoUrl(Y.videoId,S,void 0,!0);if(navigator.share)try{var d=navigator.share({title:Y.title,url:O});d instanceof Promise&&d.catch(function(r){dXg(v,r)})}catch(r){r instanceof Error&&dXg(this,r)}else this.Y.KM(),B2(this.G,this.element,!1); this.api.logClick(this.element)}; g.u.q3=function(){var v=this.api.D(),O=this.api.isEmbedsShortsMode();g.gr(this.element,"ytp-show-share-title",g.aP(v)&&!O);this.Y.Z9()&&O?(v=(this.api.j4().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.ym(this.element,"right",v+"px")):O&&g.ym(this.element,"right","0px");this.updateValue("icon",{J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{J:"path",p_:!0,W:"ytp-svg-fill",T:{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=SgQ(this);g.gr(this.element,"ytp-share-button-visible",this.visible);this.t9(this.visible);this.tooltip.GG();this.api.logVisibility(this.element,SgQ(this)&&this.Z)}; g.u.o1=function(v){g.K.prototype.o1.call(this,v);this.api.logVisibility(this.element,this.visible&&v)}; g.u.cW=function(){g.K.prototype.cW.call(this);g.WI(this.element,"ytp-share-button-visible")};g.C(bWm,g.QN);g.u=bWm.prototype;g.u.ZH=function(v){v=py(v);g.YW(this.C,v)||g.YW(this.closeButton,v)||B2(this)}; g.u.VC=function(){g.QN.prototype.VC.call(this);this.tooltip.Ly(this.element);this.api.logVisibility(this.Y,!1);for(var v=g.y(this.G),O=v.next();!O.done;O=v.next())O=O.value,this.api.hasVe(O.element)&&this.api.logVisibility(O.element,!1)}; g.u.show=function(){var v=this.t$;g.QN.prototype.show.call(this);this.q3();v||this.api.PW("onSharePanelOpened")}; g.u.JKx=function(){this.t$&&this.q3()}; g.u.q3=function(){var v=this;g.on(this.element,"ytp-share-panel-loading");g.WI(this.element,"ytp-share-panel-fail");var O=this.api.getVideoData(),Y=this.api.getPlaylistId()&&this.B.checked;O.getSharePanelCommand&&t_(this.api.Rm(),O.getSharePanelCommand,{includeListId:Y}).then(function(S){v.vW()||(g.WI(v.element,"ytp-share-panel-loading"),WPi(v,S))}); O=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",O);this.updateValue("linkText",O);this.updateValue("shareLinkWithUrl",g.kD("Share link $URL",{URL:O}));YJ(this.Y);this.api.logVisibility(this.Y,!0)}; g.u.onFullscreenToggled=function(v){!v&&this.qT()&&B2(this)}; g.u.focus=function(){this.Y.focus()}; g.u.cW=function(){g.QN.prototype.cW.call(this);ojE(this)};g.C(gjJ,k6);g.u=gjJ.prototype;g.u.cW=function(){$XJ(this);k6.prototype.cW.call(this)}; g.u.NK=function(v){v.target!==this.dismissButton.element&&(this.Xn(!1),this.N.PW("innertubeCommand",this.onClickCommand))}; g.u.l1=function(){this.Eg=!0;this.Xn(!0);this.OQ()}; g.u.oug=function(v){this.L=v;this.OQ()}; g.u.onVideoDataChange=function(v,O){if(v=!!O.videoId&&this.videoId!==O.videoId)this.videoId=O.videoId,this.Eg=!1,this.HW=!0,this.X=this.Ug=!1,$XJ(this),fil(this,!1),this.U=this.Y=!1,ff(this),MtJ(this);if(v||!O.videoId)this.tK=this.B=!1;var Y,S;if(O==null?0:(Y=O.getPlayerResponse())==null?0:(S=Y.videoDetails)==null?0:S.isLiveContent)this.Gm(!1);else{var d,r,b;O=g.q((d=O.getWatchNextResponse())==null?void 0:(r=d.playerOverlays)==null?void 0:(b=r.playerOverlayRenderer)==null?void 0:b.productsInVideoOverlayRenderer, p5J);this.L=this.enabled=!1;if(O){if(d=O==null?void 0:O.featuredProductsEntityKey){r=g.tw.getState().entities;var z;if((z=g$(r,"featuredProductsEntity",d))==null?0:z.productsData){this.Gm(!1);return}}this.enabled=!0;if(!this.B){var M;z=(M=O.badgeInteractionLogging)==null?void 0:M.trackingParams;(this.B=!!z)&&this.N.setTrackingParams(this.badge.element,z||null)}if(!this.tK){var V;if(this.tK=!((V=O.dismissButton)==null||!V.trackingParams)){var A;this.N.setTrackingParams(this.dismissButton.element,((A= O.dismissButton)==null?void 0:A.trackingParams)||null)}}O.isContentForward&&(M=O.productsData,fil(this,!0),MtJ(this),M=Ab7(this,M),V=[],M.length>0&&V.push(M[0]),M.length>1&&(A=new g.K({J:"div",W:"ytp-suggested-action-more-products-icon"}),g.w(this,A),V.push(A),V.push.apply(V,g.F(M.slice(1)))),this.C=new g.K({J:"div",K:V,W:"ytp-suggested-action-content-forward-container"}),g.w(this,this.C),this.FO.element.append(this.C.element));this.text=g.ui(O.text);var f;if(M=(f=O.dismissButton)==null?void 0:f.a11yLabel)this.f1= g.ui(M);this.onClickCommand=O.onClickCommand;this.timing=O.timing;this.YZ()}o5E(this);$6(this);this.OQ()}}; g.u.p$=function(){return!this.L&&this.enabled&&!this.Eg&&!this.N.tE()&&!this.pj&&(this.X||this.HW)}; g.u.ev=function(v){k6.prototype.ev.call(this,v);if(this.Y||this.U)this.timing&&Ah(this.timing.preview)&&(this.Y=!1,ff(this),this.U=!1,ff(this),this.N.oF("shopping_overlay_preview_collapsed"),this.N.oF("shopping_overlay_preview_expanded"),v=$5(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),Ah(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.N.oF("shopping_overlay_expanded"),v.end=this.timing.expanded.endSec*1E3),this.N.YZ([v])), this.Ug=!0,$6(this);ff(this)}; g.u.Gm=function(v){(this.X=v)?(fq(this),$6(this,!1)):($XJ(this),this.AK.start());this.OQ()}; g.u.YZ=function(v){var O=this.timing;v=(v===void 0?0:v)+this.N.getCurrentTime();var Y=[],S=O.visible,d=O.preview;O=O.expanded;Ah(S)&&(z6E(S,v),Y.push($5(S.startSec,S.endSec,"shopping_overlay_visible")));Ah(d)&&(z6E(d,v),S=d.startSec+1,Y.push($5(d.startSec,S,"shopping_overlay_preview_collapsed")),Y.push($5(S,d.endSec,"shopping_overlay_preview_expanded")));Ah(O)&&(z6E(O,v),Y.push($5(O.startSec,O.endSec,"shopping_overlay_expanded")));this.N.YZ(Y)}; g.u.OQ=function(){k6.prototype.OQ.call(this);this.N.getRootNode()&&g.gr(this.N.getRootNode(),"ytp-shopping-pill-shown",this.p$())};g.C(cbm,g.K); cbm.prototype.q3=function(){var v=this.api.D();this.t9(g.aP(v)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.t$);var O=this.api.getVideoData(),Y=!1;this.api.getPresentingPlayerType()===2?Y=!!O.videoId&&!!O.isListed&&!!O.author&&!!O.On&&!!O.profilePicture:g.aP(v)&&(Y=!!O.videoId&&!!O.On&&!!O.profilePicture&&!g.Jz(O)&&!v.G&&!(v.L&&this.api.getPlayerSize().width<200));var S=O.profilePicture;v=g.aP(v)?O.expandedTitle:O.author;S=S===void 0? "":S;v=v===void 0?"":v;Y?(this.U!==S&&(this.Y.style.backgroundImage="url("+S+")",this.U=S),this.updateValue("channelLogoLabel",g.kD("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:v})),g.on(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.WI(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.Y,Y&&this.Z);this.api.logVisibility(this.channelName,Y&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=O.HS);this.updateValue("expandedTitle",O.expandedTitle)};g.C(k5,g.QN);k5.prototype.show=function(){g.QN.prototype.show.call(this);this.Y.start()}; k5.prototype.hide=function(){g.QN.prototype.hide.call(this);this.Y.stop()}; k5.prototype.xp=function(v,O){v==="dataloaded"&&((this.M7=O.M7,this.lO=O.lO,isNaN(this.M7)||isNaN(this.lO))?this.G&&(this.N.oF("intro"),this.N.removeEventListener(g.bI("intro"),this.L),this.N.removeEventListener(g.o1("intro"),this.C),this.N.removeEventListener("onShowControls",this.B),this.hide(),this.G=!1):(this.N.addEventListener(g.bI("intro"),this.L),this.N.addEventListener(g.o1("intro"),this.C),this.N.addEventListener("onShowControls",this.B),v=new g.dh(this.M7,this.lO,{priority:9,namespace:"intro"}), this.N.YZ([v]),this.G=!0))};g.C(U0,g.K);U0.prototype.onClick=function(){this.N.rS()}; U0.prototype.q3=function(){var v=!0;g.aP(this.N.D())&&(v=v&&this.N.j4().getPlayerSize().width>=480);this.t9(v);this.updateValue("icon",this.N.YW()?{J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{J:"path",p_:!0,T:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}: {J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{J:"path",p_:!0,W:"ytp-svg-fill",T:{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.C(Cvl,g.K);Cvl.prototype.cW=function(){this.Y=null;g.K.prototype.cW.call(this)};g.C(ci,g.K);ci.prototype.onClick=function(){this.N.PW("innertubeCommand",this.U)}; ci.prototype.tK=function(v){v!==this.L&&(this.update({title:v,ariaLabel:v}),this.L=v);v?this.show():this.hide()}; ci.prototype.j=function(){this.Y.disabled=this.U==null;g.gr(this.Y,"ytp-chapter-container-disabled",this.Y.disabled);this.vD()};g.C(uO,ci);uO.prototype.onClickCommand=function(v){g.q(v,m6)&&this.vD()}; uO.prototype.updateVideoData=function(v,O){var Y,S,d;v=g.q((Y=O.getWatchNextResponse())==null?void 0:(S=Y.playerOverlays)==null?void 0:(d=S.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,ut);Y=g.q(v==null?void 0:v.playerBarActionButton,g.wZ);if(this.N.V("web_player_updated_entrypoint")){this.X=xi(Y==null?void 0:Y.text);var r;S=(r=Y==null?void 0:Y.tooltip)!=null?r:"View chapter";this.C.setAttribute("title",S)}this.U=Y==null?void 0:Y.command;ci.prototype.j.call(this)}; uO.prototype.vD=function(){var v=this.X,O=this.B.Y,Y,S=((Y=this.N.getLoopRange())==null?void 0:Y.type)==="clips";if(O.length>1&&!S){v=this.N.getProgressState().current*1E3;Y=So(O,v);v=O[Y].title||"Chapters";if(Y!==this.currentIndex||this.G)this.N.PW("innertubeCommand",O[Y].onActiveCommand),this.currentIndex=Y;this.G=!1}else this.G=!0;ci.prototype.tK.call(this,v)};g.C(Cf,g.k9);Cf.prototype.U=function(){var v;(v=this.element.parentElement)==null||v.classList.contains("ytp-right-controls-left");(this.Y=!this.Y)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; Cf.prototype.isExpanded=function(){return this.Y};g.C(yx,g.K);yx.prototype.G=function(v){g.G(v.state,32)?aig(this,this.api.HE()):this.t$&&(g.G(v.state,16)||g.G(v.state,1))||this.fade.hide()}; yx.prototype.wT=function(){var v=this.api.getPlayerStateObject();(g.G(v,32)||g.G(v,16))&&xXi(this)}; yx.prototype.B=function(){this.frameIndex=NaN;xXi(this)}; yx.prototype.hide=function(){this.Y&&aig(this,null);g.K.prototype.hide.call(this)};g.C(pPd,g.K);g.u=pPd.prototype;g.u.onClick=function(){var v=this;if(this.N.D().Mj||this.N.D().L){this.N.logClick(this.element);try{this.N.toggleFullscreen().catch(function(O){v.JU(O)})}catch(O){this.JU(O)}}else B2(this.message,this.element,!0)}; g.u.JU=function(v){String(v).includes("fullscreen error")?g.Br(v):g.LP(v);this.Lc()}; g.u.Lc=function(){this.disable();this.message.RI(this.element,!0)}; g.u.ys=function(){U9()===this.N.getRootNode()?this.G.start():(this.G.stop(),this.message&&this.message.hide())}; g.u.fV=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var v=window.screen.width*.9,O=window.screen.height*.9,Y=Math.max(window.outerWidth,window.innerWidth),S=Math.max(window.outerHeight,window.innerHeight);if(Y>S!==v>O){var d=Y;Y=S;S=d}v>Y&&O>S&&this.Lc()}}; g.u.disable=function(){var v=this;if(!this.message){var O=(fy(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.QN(this.N,{J:"div",hK:["ytp-popup","ytp-generic-popup"],T:{role:"alert",tabindex:"0"},K:[O[0],{J:"a",T:{href:"https://support.google.com/youtube/answer/6276924", target:this.N.D().j},M3:O[2]},O[4]]},100,!0);this.message.hide();g.w(this,this.message);this.message.subscribe("show",function(Y){v.U.AD(v.message,Y)}); g.TW(this.N,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.Y)();this.Y=null}}; g.u.q3=function(){var v=U6i(this.N),O=this.N.D().L&&this.N.getPlayerSize().width<250;this.t9(v&&!O);var Y;((Y=this.N.D())==null?0:Y.V("embeds_use_parent_visibility_in_ve_logging"))?this.N.logVisibility(this.element,this.t$&&this.Z):this.N.logVisibility(this.element,this.t$)}; g.u.OY=function(v){if(v){var O=g.ke(this.N,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.N.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(Y){g.Br(Y)})}else O=g.ke(this.N,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"}); v=Tsn(this,v);O=this.message?null:O;this.update({title:O,icon:v});this.U.wK().GG()}; g.u.cW=function(){this.message||((0,this.Y)(),this.Y=null);g.K.prototype.cW.call(this)}; g.u.o1=function(v){g.K.prototype.o1.call(this,v);var O;((O=this.N.D())==null?0:O.V("embeds_use_parent_visibility_in_ve_logging"))&&this.N.logVisibility(this.element,this.t$&&v)};g.C(aB,g.K);aB.prototype.onClick=function(){this.N.logClick(this.element);this.N.seekBy(this.Y,!0);var v=this.Y>0?1:-1,O=Math.abs(this.Y),Y=this.N.l8().Sg;Y&&Y.zx(v,O);this.U.isActive()?this.G=!0:(v=["ytp-jump-spin"],this.Y<0&&v.push("backwards"),this.element.classList.add.apply(this.element.classList,g.F(v)),g.HM(this.U))};g.C(x5,ci);x5.prototype.onClickCommand=function(v){g.q(v,ac8)&&this.vD()}; x5.prototype.updateVideoData=function(){var v,O;this.U=(v=FPm(this))==null?void 0:(O=v.onTap)==null?void 0:O.innertubeCommand;ci.prototype.j.call(this)}; x5.prototype.vD=function(){var v="",O=this.B.L,Y,S=(Y=FPm(this))==null?void 0:Y.headerTitle;Y=S?g.ui(S):"";var d;S=((d=this.N.getLoopRange())==null?void 0:d.type)==="clips";O.length>1&&!S&&(v=this.N.getProgressState().current*1E3,d=Fel(O,v),v=d!=null?O[d].title:Y,d!=null&&d!==this.currentIndex&&(this.N.PW("innertubeCommand",O[d].onActiveCommand),this.currentIndex=d));ci.prototype.tK.call(this,v)};g.C(pf,g.K);pf.prototype.onClick=function(){this.N.PW("onCollapseMiniplayer");this.N.logClick(this.element)}; pf.prototype.q3=function(){this.visible=!this.N.isFullscreen();this.t9(this.visible);this.N.logVisibility(this.element,this.visible&&this.Z)}; pf.prototype.o1=function(v){g.K.prototype.o1.call(this,v);this.N.logVisibility(this.element,this.visible&&v)};g.C(T9,g.K);T9.prototype.init=function(){this.updateValue("minvalue",this.G);this.updateValue("maxvalue",this.B);this.updateValue("stepvalue",this.C);this.updateValue("slidervalue",this.Y);h6l(this,this.Y)}; T9.prototype.FT=function(){lO(this,Number(this.U.value));this.U.focus()}; T9.prototype.j$=function(v){if(!v.defaultPrevented){switch(v.code){case "ArrowDown":v=-this.C;break;case "ArrowUp":v=this.C;break;default:return}lO(this,Math.min(this.B,Math.max(Number((this.Y+v).toFixed(2)),this.G)))}};g.C(R6l,T9);g.u=R6l.prototype;g.u.onVolumeChange=function(v){if(this.L)this.L=!1;else{var O=v.volume;O===0||v.muted?lO(this,0):lO(this,O)}}; g.u.FT=function(){T9.prototype.FT.call(this);this.X(this.Y)}; g.u.j$=function(v){T9.prototype.j$.call(this,v);this.X(this.Y)}; g.u.h6=function(v){var O=v.deltaX||v.deltaY;O=v.deltaMode?g.xr(this.Y+O,0,100):g.xr(this.Y+g.xr(O/10,-10,10),0,100);O===0?lO(this,0):lO(this,O);this.X(O);v.preventDefault()}; g.u.gC=function(v,O){this.L=!0;v===0||O?this.N.mute():(this.N.isMuted()&&this.N.unMute(),this.N.setVolume(v))};g.C(e6$,g.K);g.C(hh,g.K);g.u=hh.prototype;g.u.pB=function(v){this.visible=v.width>=300||this.g8;this.t9(this.visible);this.N.logVisibility(this.element,this.visible&&this.Z)}; g.u.i5=function(){this.N.D().FO?this.N.isMuted()?this.N.unMute():this.N.mute():B2(this.message,this.element,!0);this.N.logClick(this.element)}; g.u.x2g=function(v){if(this.N.D().FO&&this.Y)if(v.target===this.G){var O;if(!this.N.wx()||((O=this.Y)==null?0:O.isVisible))this.i5();else{var Y;(Y=this.Y)!=null&&Fx(Y,!0)}}else{var S;(S=this.Y)!=null&&Fx(S,!0)}else this.i5()}; g.u.onVolumeChange=function(v){this.setVolume(v.volume,v.muted)}; g.u.setVolume=function(v,O){var Y=this,S=O?0:v/100,d=this.N.D();v=S===0?1:v>50?1:0;if(this.X!==v){var r=this.JK;isNaN(r)?Bsn(this,v):G9E(this.FO,function(z){Bsn(Y,r+(Y.X-r)*z)},250); this.X=v}S=S===0?1:0;if(this.L!==S){var b=this.Ug;isNaN(b)?ZW7(this,S):G9E(this.HW,function(z){ZW7(Y,b+(Y.L-b)*z)},250); this.L=S}d.FO&&(d=g.ke(this.N,"Mute","m"),S=g.ke(this.N,"Unmute","m"),this.updateValue("title",O?S:d),this.update({"data-title-no-tooltip":O?"Unmute":"Mute"}),this.tooltip.GG(-120))}; g.u.o1=function(v){g.K.prototype.o1.call(this,v);this.N.logVisibility(this.element,this.visible&&v)}; var QYg=["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"],LPm=["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.C(g.RB,g.K);g.u=g.RB.prototype;g.u.onStateChange=function(v){this.uM(v.state);var O;((O=this.N.D())==null?0:O.V("embeds_use_parent_visibility_in_ve_logging"))&&this.N.logVisibility(this.element,this.t$&&this.Z)}; g.u.uM=function(v){var O=g.cj(this.N.getVideoData()),Y=!1;v.isOrWillBePlaying()?v=O?4:2:g.G(v,2)?(v=3,Y=O):v=1;this.element.disabled=Y;if(this.Y!==v){O=null;switch(v){case 2:O=g.ke(this.N,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:O="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:O=g.ke(this.N,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:O="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}v=== 3?this.update({title:O,icon:XP3(this,v)}):(this.update({title:O}),(O=XP3(this,v))&&this.Y&&this.Y!==3?ma1(this.transition,this.element,O):this.updateValue("icon",O));this.tooltip.GG();this.Y=v}}; g.u.onVideoDataChange=function(){g.gr(this.element,"ytp-play-button-playlist",g.yN(this.N))}; g.u.z_=function(v){this.N.logClick(this.element);if(this.N.getPlayerStateObject().isOrWillBePlaying())this.N.pauseVideo();else{if(this.N.isMinimized()&&this.N.getPlayerStateObject().isCued()){var O={},Y;if((Y=this.N.getVideoData())==null?0:Y.C)O.cttAuthInfo={token:this.N.getVideoData().C,videoId:this.N.getVideoData().videoId};Kw("direct_playback",O);this.N.pS().timerName="direct_playback"}this.N.playVideo()}this.N.isMinimized()&&(v==null?void 0:v.type)==="click"&&this.element.blur()}; g.u.o1=function(v){g.K.prototype.o1.call(this,v);var O;((O=this.N.D())==null?0:O.V("embeds_use_parent_visibility_in_ve_logging"))&&this.N.logVisibility(this.element,this.t$&&v)};g.C(g.eo,g.K);g.u=g.eo.prototype;g.u.onVideoDataChange=function(){Iic(this);this.B&&(this.g2(this.B),this.B=null);this.videoData=this.N.getVideoData(1);if(this.playlist=this.N.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.B=this.S(this.N,"progresssync",this.VU);this.G=qgE(this);wPJ(this);this.ej(this.N.j4().getPlayerSize())}; g.u.ej=function(v){v=v===void 0?this.N.j4().getPlayerSize():v;var O,Y=((O=this.N.getLoopRange())==null?void 0:O.type)==="clips";v=(g.yN(this.N)||this.Y&&g.lb(this.N)&&!this.N.V("web_hide_next_button")||njJ(this))&&!Y&&(this.Y||v.width>=400);this.t9(v);this.N.logVisibility(this.element,v)}; g.u.onClick=function(v){this.N.logClick(this.element);var O=!0;this.L?O=g.NG(v,this.N):v.preventDefault();O&&(this.Y&&this.N.getPresentingPlayerType()===5?this.N.publish("ytoprerollinternstitialnext"):this.Y?(jK(this.N.pS()),this.N.publish("playlistnextbuttonclicked",this.element),this.N.nextVideo(!0)):this.G?this.N.seekTo(0):(jK(this.N.pS()),this.N.publish("playlistprevbuttonclicked",this.element),this.N.previousVideo(!0)))}; g.u.VU=function(){var v=qgE(this);v!==this.G&&(this.G=v,wPJ(this))}; g.u.cW=function(){this.U&&(this.U(),this.U=null);Iic(this);g.K.prototype.cW.call(this)};g.C(KPE,g.K);g.u=KPE.prototype;g.u.vl=function(v){this.Qt(v.pageX);this.HF(v.pageX+v.deltaX);Pvg(this)}; g.u.Qt=function(v){this.tK=v-this.g8}; g.u.HF=function(v){v-=this.g8;!isNaN(this.tK)&&this.thumbnails.length>0&&(this.j=v-this.tK,this.thumbnails.length>0&&this.j!==0&&(this.G=this.X+this.j,v=DXQ(this,this.G),this.G<=this.Y/2&&this.G>=ttE(this)?(this.api.seekTo(v,!1,void 0,void 0,25),g.ym(this.HW,"transform","translateX("+(this.G-this.Y/2)+"px)"),Jbl(this,v)):this.G=this.X))}; g.u.Fs=function(){this.Ug&&(this.Ug.md=!0);var v=(0,g.J)()-this.XO<300;if(Math.abs(this.j)<5&&!v){this.XO=(0,g.J)();v=this.tK+this.j;var O=this.Y/2-v;this.Qt(v);this.HF(v+O);Pvg(this);this.api.logClick(this.C)}Pvg(this)}; g.u.kY=function(){E0(this,this.api.getCurrentTime())}; g.u.play=function(v){this.api.seekTo(DXQ(this,this.G),void 0,void 0,void 0,26);this.api.playVideo();v&&this.api.logClick(this.playButton)}; g.u.onExit=function(v){this.api.seekTo(this.AK,void 0,void 0,void 0,63);this.api.playVideo();v&&this.api.logClick(this.dismissButton)}; g.u.ze=function(v,O){this.g8=v;this.Y=O;E0(this,this.api.getCurrentTime())}; g.u.enable=function(){this.isEnabled||(this.isEnabled=!0,this.AK=this.api.getCurrentTime(),Jbl(this,this.AK),g.gr(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.FO=this.S(this.element,"wheel",this.vl),this.logVisibility(this.isEnabled))}; g.u.disable=function(){this.isEnabled=!1;this.hide();g.gr(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.FO&&this.g2(this.FO);this.logVisibility(this.isEnabled)}; g.u.reset=function(){this.disable();this.B=[];this.N3=!1}; g.u.logVisibility=function(v){this.api.logVisibility(this.element,v);this.api.logVisibility(this.C,v);this.api.logVisibility(this.dismissButton,v);this.api.logVisibility(this.playButton,v)}; g.u.cW=function(){for(;this.U.length;){var v=void 0;(v=this.U.pop())==null||v.dispose()}g.K.prototype.cW.call(this)}; g.C(GFi,g.K);g.C(iW7,g.K);g.C(HWn,g.K);g.C(Qx,g.K);Qx.prototype.dR=function(v){return v==="PLAY_PROGRESS"?this.X:v==="LOAD_PROGRESS"?this.L:v==="LIVE_BUFFER"?this.C:this.G};O3g.prototype.update=function(v,O,Y,S){Y=Y===void 0?0:Y;this.width=O;this.B=Y;this.Y=O-Y-(S===void 0?0:S);this.position=g.xr(v,Y,Y+this.Y);this.G=this.position-Y;this.U=this.G/this.Y};g.C(YNm,g.K);g.C(g.Zt,g.k9);g.u=g.Zt.prototype; g.u.Sx=function(){var v=!1,O=this.api.getVideoData();if(!O)return v;this.api.oF("timedMarkerCueRange");rPw(this);for(var Y=g.y(O.xg),S=Y.next();!S.done;S=Y.next()){S=S.value;var d=void 0,r=(d=this.f1[S])==null?void 0:d.markerType;d=void 0;var b=(d=this.f1[S])==null?void 0:d.markers;if(!b)break;if(r==="MARKER_TYPE_TIMESTAMPS"){v=g.y(b);for(r=v.next();!r.done;r=v.next()){d=r.value;r=new YNm;b=void 0;r.title=((b=d.title)==null?void 0:b.simpleText)||"";r.timeRangeStartMillis=Number(d.startMillis);r.Y= Number(d.durationMillis);var z=b=void 0;r.onActiveCommand=(z=(b=d.onActive)==null?void 0:b.innertubeCommand)!=null?z:void 0;sCw(this,r)}gMl(this,this.L);v=this.L;r=this.uO;d=[];b=null;for(z=0;zM&&(b.end=M);M=e8E(M,M+A);d.push(M);b=M;r[M.id]=v[z].onActiveCommand}}this.api.YZ(d);this.rf=this.f1[S];v=!0}else if(r==="MARKER_TYPE_HEATMAP"){S=this.f1[S];A=V=d=M=z=b=void 0;if(S&& S.markers){r=(d=(A=S.markersMetadata)==null?void 0:(V=A.heatmapMetadata)==null?void 0:V.minHeightDp)!=null?d:0;d=(b=(M=S.markersMetadata)==null?void 0:(z=M.heatmapMetadata)==null?void 0:z.maxHeightDp)!=null?b:60;b=this.Y.length;z=null;for(M=0;M=A&&c<=f&&V.push(U)}d>0&&(this.Ug.style.height= d+"px");A=this.B[M];f=V;U=r;var a=d,x=M===0;x=x===void 0?!1:x;Nsc(A,a);k=f;c=A.U;x=x===void 0?!1:x;var T=1E3/k.length,l=[];l.push({x:0,y:100});for(var Q=0;Q0&&(z=V[V.length-1])}g.Xx(this)}d=void 0;r=[];if(S=(d=S.markersDecoration)==null?void 0:d.timedMarkerDecorations)for(S=g.y(S),d=S.next();!d.done;d=S.next())d=d.value,M=z=b=void 0,r.push({visibleTimeRangeStartMillis:(b=d.visibleTimeRangeStartMillis)!=null?b:-1,visibleTimeRangeEndMillis:(z=d.visibleTimeRangeEndMillis)!=null?z:-1,decorationTimeMillis:(M=d.decorationTimeMillis)!= null?M:NaN,label:d.label?g.ui(d.label):""});S=r;this.heatMarkersDecorations=S}}O.KH=this.L;g.gr(this.element,"ytp-timed-markers-enabled",v);return v}; g.u.ze=function(){g.Xx(this);qa(this);gMl(this,this.L);if(this.U){var v=g.Rf(this.element).x||0;this.U.ze(v,this.C)}}; g.u.YEx=function(){var v=this.api.getVideoData();v&&yPd(this,v)}; g.u.onClickCommand=function(v){if(v=g.q(v,m6)){var O=v.key;v.isVisible&&O&&fUc(this,O)}}; g.u.o4s=function(v){this.api.PW("innertubeCommand",this.uO[v.id])}; g.u.vD=function(){qa(this);var v=this.api.getCurrentTime();(vthis.clipEnd)&&this.Q9()}; g.u.Ln=function(v){if(!v.defaultPrevented){var O=!1;switch(v.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);O=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);O=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);O=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);O=!0;break;case 38:this.api.V("enable_key_press_seek_logging")&&iO(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);O=!0;break;case 40:this.api.V("enable_key_press_seek_logging")&&iO(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),O=!0}O&&v.preventDefault()}}; g.u.xp=function(v,O){this.updateVideoData(O,v==="newdata")}; g.u.G3=function(){this.xp("newdata",this.api.getVideoData())}; g.u.updateVideoData=function(v,O){O=O===void 0?!1:O;var Y=!!v&&v.sE();Y&&(nh(v)||uci(this)?this.eA=!1:this.eA=v.allowLiveDvr,g.gr(this.api.getRootNode(),"ytp-enable-live-buffer",!(v==null||!nh(v))),this.api.V("enable_custom_playhead_parsing")&&yPd(this,v));B0d(this,this.api.Ol());if(O){if(Y){O=v.clipEnd;this.clipStart=v.clipStart;this.clipEnd=O;mo(this);for(Kf(this,this.tK,this.Mj);this.B.length>0;)this.B.pop().dispose();this.heatMarkersDecorations=[];this.Cj={};var S;(S=this.U)==null||S.reset(); vJ(this);g.gr(this.api.getRootNode(),"ytp-fine-scrubbing-exp",Bi(this))}else this.Q9();this.BE()}if(v){var d;S=((d=this.Nj)==null?void 0:d.type)==="clips";if(d=!v.isLivePlayback){d=this.api.getVideoData();O=g.Cm(d);Y=oMw(d);var r;d=O!=null||Y!=null&&Y.length>0||((r=d.yI)==null?void 0:r.length)>0}if(d&&!S){r=this.api.getVideoData();S=g.Cm(r);d=!1;if(S==null?0:S.markersMap){d=this.api.getVideoData();var b;d.wB=((b=S.visibleOnLoad)==null?void 0:b.key)||d.wB;b=g.y(S.markersMap);for(S=b.next();!S.done;S= b.next())S=S.value,S.key&&S.value&&(this.Cj[S.key]=S.value,S.value.onChapterRepeat&&(d.YMc=S.value.onChapterRepeat));d.wB!=null&&fUc(this,d.wB);d=!0}var z;if(((z=r.yI)==null?void 0:z.length)>0){z=g.tw.getState().entities;b=g.y(r.yI);for(S=b.next();!S.done;S=b.next()){S=S.value;Y=void 0;O=(Y=g$(z,"macroMarkersListEntity",S))==null?void 0:Y.markersList;var M=Y=void 0;if(((Y=O)==null?void 0:Y.markerType)==="MARKER_TYPE_TIMESTAMPS"||((M=O)==null?void 0:M.markerType)==="MARKER_TYPE_HEATMAP")this.f1[S]= O}d=this.Sx()||d}!d&&(z=oMw(r))&&(WYw(this,z),r.oS=this.Y,jCw(this));aUg(this,null);v.Yc&&this.B.length===0&&(v=v.Yc,z=v.key,v.isVisible&&z&&fUc(this,z))}else SNl(this),rPw(this)}qa(this)}; g.u.Mu=function(v){this.X&&!g.G(v.state,32)&&this.api.getPresentingPlayerType()!==3&&this.X.cancel();var O;((O=this.U)==null?0:O.isEnabled)&&g.G(v.state,8)&&this.api.pauseVideo();v=this.api.getPresentingPlayerType()===2||!this.api.Ol()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.gr(this.RD,"ytp-hide-scrubber-button",v)}; g.u.e0=function(v){var O=!!this.Nj!==!!v,Y=this.Nj;this.Nj=v;aUg(this,Y);(v==null?void 0:v.type)!=="clips"&&v||(v?(this.updateValue("clipstarticon",TJc()),this.updateValue("clipendicon",TJc()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",k2E()),this.updateValue("clipendicon",$ld()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),O&&(this.updateVideoData(this.api.getVideoData(), !0),g.Xx(this)),mo(this));Kf(this,this.tK,this.Mj)}; g.u.lU8=function(v,O,Y){var S=g.Rf(this.element),d=IB(this).Y,r=Y?Y.getAttribute("data-tooltip"):void 0,b=Y?Y.getAttribute("data-position"):void 0,z=Y?Y.getAttribute("data-offset-y"):void 0;z=z?Number(z):0;b&&(v=Xk(this.G,Number(Y.getAttribute("data-position")),0)*d+g.Rf(this.progressBar).x);this.On.x=v-S.x;this.On.y=O-S.y;v=IB(this);Y=G9(this,v);O=0;var M;if((M=this.api.getVideoData())==null?0:nh(M))(M=this.api.getProgressState().seekableEnd)&&Y>M&&(Y=M,v.position=Xk(this.G,M)*IB(this).Y),O=this.G.U; uci(this)&&(O=this.G.U);M=r||g.lC(this.eA?Y-this.G.Y:Y-O);O=v.position+this.dE;Y-=this.api.En();var V;if((V=this.U)==null||!V.isEnabled)if(this.api.HE()){if(this.Y.length>1){V=Pi(this,this.On.x,!0);if(!this.Nj)for(S=0;S1)for(S=0;S0)for(V=this.On.x,S=g.y(this.L),d=S.next();!d.done;d=S.next())d=d.value,b=wP(this,d.timeRangeStartMillis/ (this.G.Y*1E3),IB(this)),g.gr(d.element,"ytp-timed-marker-hover",b<=V&&b+6>=V);S=this.tooltip.scale;V=this.api.V("delhi_modern_web_player")?67:45;z=(isNaN(z)?0:z)-V*S;this.api.V("web_key_moments_markers")?this.rf?(V=Fel(this.L,Y*1E3),V=V!=null?this.L[V].title:""):(V=So(this.Y,Y*1E3),V=this.Y[V].title):(V=So(this.Y,Y*1E3),V=this.Y[V].title);V||(z+=16*S);this.tooltip.scale===.6&&(g.PD(this.api.D())?(z=this.api.j4().getPlayerSize().height-225,S=this.api.V("delhi_modern_web_player")?70:110,z=V?z+S:z+ S+16):z=V?110:126);S=So(this.Y,Y*1E3);this.N3=xxd(this,Y,S)?S:xxd(this,Y,S+1)?S+1:-1;g.gr(this.api.getRootNode(),"ytp-progress-bar-snap",this.N3!==-1&&this.Y.length>1);S=!1;d=g.y(this.heatMarkersDecorations);for(b=d.next();!b.done;b=d.next()){b=b.value;var A=Y*1E3;A>=b.visibleTimeRangeStartMillis&&A<=b.visibleTimeRangeEndMillis&&(V=b.label,M=g.lC(b.decorationTimeMillis/1E3),S=!0)}this.q8!==S&&(this.q8=S,this.api.logVisibility(this.nP,this.q8));g.gr(this.api.getRootNode(),"ytp-progress-bar-decoration", S);S=160*this.tooltip.scale*2;d=V.length*(this.j?8.55:5.7);d=d<=S?d:S;b=d<160*this.tooltip.scale;S=3;!b&&d/2>v.position&&(S=1);!b&&d/2>this.C-v.position&&(S=2);this.api.D().L&&(z-=10);this.B.length&&this.B[0].sE&&(z-=14*(this.j?2:1),this.AK||(this.AK=!0,this.api.logVisibility(this.Ug,this.AK)));var f;if(Bi(this)&&(((f=this.U)==null?0:f.isEnabled)||this.xg>0)){var k;z-=((k=this.U)==null?0:k.isEnabled)?Dt(this):this.xg}f=void 0;Bi(this)&&!this.api.V("web_player_hide_fine_scrubbing_edu")&&(f="Pull up for precise seeking", this.g8||(this.g8=!0,this.api.logVisibility(this.N2,this.g8)));this.tooltip.Th(O,Y,M,!!r,z,V,S,f)}else this.tooltip.Th(O,Y,M,!!r,z);g.on(this.api.getRootNode(),"ytp-progress-bar-hover");cPc(this)}; g.u.DXg=function(){this.BE();g.WI(this.api.getRootNode(),"ytp-progress-bar-hover");this.AK&&(this.AK=!1,this.api.logVisibility(this.Ug,this.AK));this.g8&&(this.g8=!1,this.api.logVisibility(this.N2,this.g8))}; g.u.qqW=function(v,O){var Y=g.Rf(this.element);this.qX=v-Y.x;Bi(this)&&this.U&&(this.U.N3?E0(this.U,this.api.getCurrentTime()):mXc(this.U),this.U.show(),g.gr(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.U.isEnabled));this.w4&&(this.w4.dispose(),this.w4=null);this.N7=O;this.lO=this.api.getCurrentTime();this.Y.length>1&&this.N3!==-1?this.api.seekTo(this.Y[this.N3].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(G9(this,IB(this)),!1,void 0,void 0,7);g.on(this.element,"ytp-drag");(this.Lo= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.u.wD3=function(){if(Bi(this)&&this.U){var v=Dt(this);this.xg>=v*.5?(this.U.enable(),E0(this.U,this.api.getCurrentTime()),LYQ(this,v)):vJ(this)}if(g.G(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var O;if((O=this.U)==null?0:O.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.Y.length>1&&this.N3!==-1)this.api.V("html5_enable_progress_bar_slide_seek_logging")&&iO(this,this.lO,this.Y[this.N3].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.Y[this.N3].startTime/1E3,void 0,void 0,void 0,7);else{v=G9(this,IB(this));this.api.V("html5_enable_progress_bar_slide_seek_logging")&&iO(this,this.lO,v,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(v,void 0,void 0,void 0,7);O=g.y(this.heatMarkersDecorations);for(var Y=O.next();!Y.done;Y=O.next())Y=Y.value,v*1E3>=Y.visibleTimeRangeStartMillis&&v*1E3<=Y.visibleTimeRangeEndMillis&& this.api.logClick(this.nP)}g.WI(this.element,"ytp-drag");this.JK&&(this.HW.src=this.JK);this.Lo&&!g.G(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.u.Ri4=function(v,O){var Y=this,S=IB(this),d=G9(this,S);this.api.V("enable_custom_playhead_parsing")&&!this.api.j4().Wa&&(S.position>this.qX+2?this.yC&&(this.HW.src=this.yC):S.position1);this.t9(v&&this.N.j4().getPlayerSize().width>=400);this.N.logVisibility(this.element,this.t$);var O=1;v&&this.isActive()&&(O=2);if(this.Y!==O){this.Y=O;switch(O){case 1:this.updateValue("icon",{J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},K:[{J:"path",p_:!0,T:{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.Akg())}g.gr(this.element,"ytp-remote-button-active",this.isActive())}}; OY.prototype.U=function(){if(this.N.getOption("remote","quickCast"))this.N.setOption("remote","quickCast",!0);else{var v=this.HT,O=this.element;if(v.qT())v.VC();else{v.initialize();a:{var Y=g.y(v.eT.items);for(var S=Y.next();!S.done;S=Y.next())if(S=S.value,S.priority===1){Y=S;break a}Y=null}Y&&(Y.open(),v.RI(O));v.RI(O)}}this.N.logClick(this.element)};g.C(Yy,g.K);Yy.prototype.Y=function(v){var O=this.N.D(),Y=400;this.N.V("web_player_small_hbp_settings_menu")&&O.C?Y=300:O.L&&(Y=200);v=this.U&&v.width>=Y;this.t9(v);this.N.V("embeds_use_parent_visibility_in_ve_logging")?this.N.logVisibility(this.element,v&&this.Z):this.N.logVisibility(this.element,v)}; Yy.prototype.G=function(){if(this.HT.t$)this.HT.VC();else{var v=g.cw(this.N.QC());v&&!v.loaded&&(v.UK("tracklist",{includeAsr:!0}).length||v.load());this.N.logClick(this.element);this.HT.RI(this.element)}}; Yy.prototype.updateBadge=function(){var v=this.N.isHdr(),O=this.N.getPresentingPlayerType(),Y=O!==2&&O!==3,S=g.pU(this.N),d=Y&&!!g.xe(this.N.QC());O=d&&S.displayMode===1;S=d&&S.displayMode===2;Y=(d=O||S)||!Y?null:this.N.getPlaybackQuality();g.gr(this.element,"ytp-hdr-quality-badge",v);g.gr(this.element,"ytp-hd-quality-badge",!v&&(Y==="hd1080"||Y==="hd1440"));g.gr(this.element,"ytp-4k-quality-badge",!v&&Y==="hd2160");g.gr(this.element,"ytp-5k-quality-badge",!v&&Y==="hd2880");g.gr(this.element,"ytp-8k-quality-badge", !v&&Y==="highres");g.gr(this.element,"ytp-3d-badge-grey",!v&&d&&O);g.gr(this.element,"ytp-3d-badge",!v&&d&&S)};g.C(SP,DE);SP.prototype.isLoaded=function(){var v=g.Tv(this.N.QC());return v!==void 0&&v.loaded}; SP.prototype.q3=function(){g.Tv(this.N.QC())!==void 0&&this.N.getPresentingPlayerType()!==3?this.Y||(this.HT.L_(this),this.Y=!0):this.Y&&(this.HT.u6(this),this.Y=!1);H2(this,this.isLoaded())}; SP.prototype.onSelect=function(v){this.isLoaded();v?this.N.loadModule("annotations_module"):this.N.unloadModule("annotations_module");this.N.publish("annotationvisibility",v)}; SP.prototype.cW=function(){this.Y&&this.HT.u6(this);DE.prototype.cW.call(this)};g.C(dl,g.hA);dl.prototype.q3=function(){var v=this.N.getAvailableAudioTracks();v.length>1?(this.Vc(g.DQ(v,this.Y)),this.tracks=g.B0(v,this.Y,this),this.countLabel.yg(v.length?" ("+v.length+")":""),this.publish("size-change"),this.tF(this.Y(this.N.getAudioTrack())),this.enable(!0)):this.enable(!1)}; dl.prototype.QH=function(v){g.hA.prototype.QH.call(this,v);this.N.setAudioTrack(this.tracks[v]);this.HT.MY()}; dl.prototype.Y=function(v){return v.toString()};g.C(rl,DE); rl.prototype.U=function(){var v=this.N.getPresentingPlayerType();if(v!==2&&v!==3&&g.lb(this.N))this.Y||(this.HT.L_(this),this.Y=!0,this.G.push(this.S(this.N,"videodatachange",this.U)),this.G.push(this.S(this.N,"videoplayerreset",this.U)),this.G.push(this.S(this.N,"onPlaylistUpdate",this.U)),this.G.push(this.S(this.N,"autonavchange",this.B)),v=this.N.getVideoData(),this.B(v.autonavState),this.N.logVisibility(this.element,this.Y));else if(this.Y){this.HT.u6(this);this.Y=!1;v=g.y(this.G);for(var O=v.next();!O.done;O= v.next())this.g2(O.value)}}; rl.prototype.B=function(v){H2(this,v!==1)}; rl.prototype.onSelect=function(v){this.N.Jr(v?2:1);this.Y&&(this.N.logVisibility(this.element,this.Y),this.N.logClick(this.element))}; rl.prototype.cW=function(){this.Y&&this.HT.u6(this);DE.prototype.cW.call(this)};g.C(Xs$,g.wB);Xs$.prototype.onClick=function(v){v.preventDefault();var O,Y;(O=g.W2(this.N))==null||(Y=O.Ds())==null||Y.VC();var S,d;(S=g.W2(this.N))==null||(d=S.Ai())==null||d.RI(v.target)};g.C(ws3,g.hA);g.u=ws3.prototype; g.u.dL=function(){var v=this.N.getPresentingPlayerType();if(v!==2&&v!==3){this.HW=this.N.KU();var O=this.N.getAvailableQualityLevels();if(this.Y){this.B={};v=g.dB(this.N,"getAvailableQualityData",[]);v=g.y(v);for(var Y=v.next();!Y.done;Y=v.next())Y=Y.value,this.B[Y.qualityLabel]=Y;v=Object.keys(this.B);O[O.length-1]==="auto"&&v.push("auto");this.JK=new Set(O)}else if(this.C){Y=g.dB(this.N,"getAvailableQualityData",[]);v=[];Y=g.y(Y);for(var S=Y.next();!S.done;S=Y.next())S=S.value,this.j[S.quality]= S,S.quality&&v.push(S.quality);O[O.length-1]==="auto"&&v.push("auto")}else v=O;g.d6F(this.N)&&this.N.K3()&&v.unshift("missing-qualities");O=this.N.app.uc();Y=O.getVideoData();if(!Y.U||!Y.U.video||Y.U.video.qualityOrdinal<1080||Y.bW)O=!1;else{S=/^qsa/.test(Y.clientPlaybackNonce);var d="r";Y.U.id.indexOf(";")>=0&&(S=/^[a-p]/.test(Y.clientPlaybackNonce),d="x");S?(O.G0("iqss",{trigger:d},!0),O=!0):O=!1}O&&v.unshift("inline-survey");this.Vc(v);O=this.N.getVideoData().cotn?!0:!1;Y=this.Ug.hE();Y=!g.PD(this.N.D())|| !(O===void 0?0:O)||!(Y===void 0||Y);O=this.U;Y=Y===void 0?!1:Y;O.gA&&g.gr(O.BW("ytp-panel-footer"),"ytp-panel-hide-footer",Y===void 0?!1:Y);if(v.length){this.Hi();this.enable(!0);return}}this.enable(!1)}; g.u.Hi=function(){if(this.Y){var v=this.N.getPreferredQuality();this.JK.has(v)&&(this.L=this.N.getPlaybackQuality(),this.tK=this.N.getPlaybackQualityLabel(),v==="auto"?(this.tF(v),this.yg(this.gW(v))):this.tF(this.tK))}else v=this.N.getPreferredQuality(),this.options[v]&&(this.L=this.N.getPlaybackQuality(),this.tF(v),v==="auto"&&this.yg(this.gW(v)))}; g.u.QH=function(v){if(v!=="missing-qualities"){g.hA.prototype.QH.call(this,v);var O=this.Y?this.B[v]:this.j[v];var Y=O==null?void 0:O.quality,S=O==null?void 0:O.formatId,d=O==null?void 0:O.paygatedQualityDetails;O=d==null?void 0:d.endpoint;if(d){var r;d=(r=this.options[v])==null?void 0:r.element;this.N.logClick(d)}if(this.Y){var b,z;if((b=g.q(O,g.kgw))==null?0:(z=b.popup)==null?0:z.notificationActionRenderer)this.N.PW("innertubeCommand",O);else if(O){this.N.PW("innertubeCommand",O);return}S?this.N.setPlaybackQuality(Y, S):this.N.setPlaybackQuality(Y)}else{if(this.C){var M,V;if((M=g.q(O,g.kgw))==null?0:(V=M.popup)==null?0:V.notificationActionRenderer)this.N.PW("innertubeCommand",O);else if(O){this.N.PW("innertubeCommand",O);return}}this.N.setPlaybackQuality(v)}this.HT.VC();this.dL()}}; g.u.open=function(){for(var v=g.y(Object.values(this.options)),O=v.next();!O.done;O=v.next()){O=O.value;var Y=void 0;this.N.hasVe((Y=O)==null?void 0:Y.element)&&(Y=void 0,this.N.logVisibility((Y=O)==null?void 0:Y.element,!0))}g.hA.prototype.open.call(this);this.N.logClick(this.element)}; g.u.cM=function(v,O,Y){var S=this;if(v==="missing-qualities")return new g.wB({J:"a",hK:["ytp-menuitem"],T:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.N.D().j,tabindex:"0",role:"menuitemradio"},K:[{J:"div",hK:["ytp-menuitem-label"],M3:"{{label}}"}]},O,this.gW(v));if(v!=="inline-survey"){var d,r=(d=this.Y?this.B[v]:this.j[v])==null?void 0:d.paygatedQualityDetails;d=r==null?void 0:r.veType;r=r==null?void 0:r.trackingParams;O=g.hA.prototype.cM.call(this,v,O,Y);r?(this.N.createServerVe(O.element, this,!0),this.N.setTrackingParams(O.element,r)):d&&this.N.createClientVe(O.element,this,d,!0);return O}v=[{J:"span",M3:"Looks good?"}];Y=g.y([!0,!1]);r=Y.next();for(d={};!r.done;d={H$:void 0},r=Y.next())d.H$=r.value,r=new g.K({J:"span",W:"ytp-menuitem-inline-survey-response",K:[d.H$?phn():uFQ()],T:{tabindex:"0",role:"button"}}),r.listen("click",function(b){return function(){var z=S.N.app.uc();z.G0("iqsr",{tu:b.H$});z.getVideoData().bW=!0;S.HT.VC();S.dL()}}(d)),v.push(r); return new g.wB({J:"div",W:"ytp-menuitem",T:{"aria-disabled":"true"},K:[{J:"div",hK:["ytp-menuitem-label"],K:v}]},O)}; g.u.gW=function(v,O){O=O===void 0?!1:O;if(v==="missing-qualities")return{J:"div",M3:"Missing options?"};if(v==="inline-survey")return"";var Y=this.C||this.Y?[nME(this,v,O,!1)]:[qNm(this,v)];var S=this.N.getPreferredQuality();O||S!=="auto"||v!=="auto"||(Y.push(" "),this.Y?Y.push(nME(this,this.tK,O,!0,["ytp-menu-label-secondary"])):this.C?Y.push(nME(this,this.L,O,!0,["ytp-menu-label-secondary"])):Y.push(qNm(this,this.L,["ytp-menu-label-secondary"])));return{J:"div",K:Y}};g.C(b_,T9);b_.prototype.FT=function(){T9.prototype.FT.call(this);this.L&&JPg(this)}; b_.prototype.tK=function(){this.X()}; b_.prototype.j=function(){this.N.setPlaybackRate(this.Y,!0)}; b_.prototype.j$=function(v){T9.prototype.j$.call(this,v);this.X();JPg(this);v.preventDefault()};g.C(oq,g.K);g.u=oq.prototype;g.u.init=function(){this.gk(this.Y);this.updateValue("minvalue",this.U);this.updateValue("maxvalue",this.G)}; g.u.St=function(v){if(!v.defaultPrevented){switch(v.keyCode){case 37:case 40:var O=-this.X;break;case 39:case 38:O=this.X;break;default:return}this.gk(this.Y+O);v.preventDefault()}}; g.u.A6=function(v){var O=this.Y;O+=(v.deltaX||-v.deltaY)<0?-this.j:this.j;this.gk(O);v.preventDefault()}; g.u.Wl=function(v){v=(v-g.Rf(this.B).x)/this.tK*this.range+this.U;this.gk(v)}; g.u.gk=function(v,O){O=O===void 0?"":O;v=g.xr(v,this.U,this.G);O===""&&(O=v.toString());this.updateValue("valuenow",v);this.updateValue("valuetext",O);this.Ug.style.left=(v-this.U)/this.range*(this.tK-this.N3)+"px";this.Y=v}; g.u.focus=function(){this.FO.focus()};g.C(jP,oq);jP.prototype.HW=function(){this.N.setPlaybackRate(this.Y,!0)}; jP.prototype.gk=function(v){oq.prototype.gk.call(this,v,PY1(this,v).toString());this.C&&(KYl(this),this.JK())}; jP.prototype.updateValues=function(){var v=this.N.getPlaybackRate();PY1(this,this.Y)!==v&&(this.gk(v),KYl(this))};g.C(GPg,g.k9);GPg.prototype.focus=function(){this.Y.focus()};g.C(i3m,UA);g.C(mxd,g.hA);g.u=mxd.prototype;g.u.gW=function(v){return v==="1"?"Normal":v.toLocaleString()}; g.u.q3=function(){var v,O=(v=this.N.getVideoData())==null?void 0:v.lM();v=this.N.getPresentingPlayerType(O);this.enable(v!==2&&v!==3);H3i(this)}; g.u.Vc=function(v){g.hA.prototype.Vc.call(this,v);this.L&&this.L.U.focus()}; g.u.It=function(v){g.hA.prototype.It.call(this,v);v?(this.tK=this.S(this.N,"onPlaybackRateChange",this.onPlaybackRateChange),H3i(this),tAi(this,this.N.getPlaybackRate())):(this.g2(this.tK),this.tK=null)}; g.u.onPlaybackRateChange=function(v){var O=this.N.getPlaybackRate();!this.B&&this.j.includes(O)||Dx7(this,O);tAi(this,v)}; g.u.cM=function(v,O,Y){return v===this.Y&&N07(this.N)?g.hA.prototype.cM.call(this,v,O,Y,{J:"div",W:"ytp-speed-slider-menu-footer",K:[this.L]}):g.hA.prototype.cM.call(this,v,O,Y)}; g.u.QH=function(v){g.hA.prototype.QH.call(this,v);v===this.Y?this.N.setPlaybackRate(this.C,!0):this.N.setPlaybackRate(Number(v),!0);N07(this.N)&&v===this.Y||this.HT.MY()}; g.u.Ux=function(v){var O=v===this.Y;this.B=!1;O&&WJ(this.N)&&!N07(this.N)?(v=new i3m(this.N),g.yb(this.HT,v)):g.hA.prototype.Ux.call(this,v)};g.C(OJQ,g.hA);g.u=OJQ.prototype;g.u.tF=function(v){g.hA.prototype.tF.call(this,v)}; g.u.QR=function(v){return v.option.toString()}; g.u.getOption=function(v){return this.settings[v]}; g.u.gW=function(v){return this.getOption(v).text||""}; g.u.QH=function(v){g.hA.prototype.QH.call(this,v);this.publish("settingChange",this.setting,this.settings[v].option)};g.C(sY,g.cR);sY.prototype.LS=function(v){for(var O=g.y(Object.keys(v)),Y=O.next();!Y.done;Y=O.next()){var S=Y.value;if(Y=this.Sk[S]){var d=v[S].toString();S=!!v[S+"Override"];Y.options[d]&&(Y.tF(d),Y.B.element.setAttribute("aria-checked",String(!S)),Y.Y.element.setAttribute("aria-checked",String(S)))}}}; sY.prototype.PV=function(v,O){this.publish("settingChange",v,O)};g.C(gl,g.hA);gl.prototype.Y=function(v){return v.languageCode}; gl.prototype.gW=function(v){return this.languages[v].languageName||""}; gl.prototype.QH=function(v){this.publish("select",v);this.N.logClick(this.element);g.ab(this.HT)};g.C(dwn,g.hA);g.u=dwn.prototype;g.u.mx=function(v){return g.tY(v)?"__off__":v.displayName}; g.u.gW=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.u.QH=function(v){if(v==="__translate__")this.Y.open();else if(v==="__contribute__"){this.N.pauseVideo();this.N.isFullscreen()&&this.N.toggleFullscreen();var O=g.ZW(this.N.D(),this.N.getVideoData());g.iC(O)}else if(v==="__correction__"){this.N.pauseVideo();this.N.isFullscreen()&&this.N.toggleFullscreen();var Y=rfl(this);Mh(this,Y);g.hA.prototype.QH.call(this,this.mx(Y));var S,d;Y=(O=this.N.getVideoData().getPlayerResponse())==null?void 0:(S=O.captions)==null?void 0:(d=S.playerCaptionsTracklistRenderer)== null?void 0:d.openTranscriptCommand;this.N.PW("innertubeCommand",Y);this.HT.MY();this.B&&this.N.logClick(this.B)}else{if(v==="__correction__"){this.N.pauseVideo();this.N.isFullscreen()&&this.N.toggleFullscreen();O=rfl(this);Mh(this,O);g.hA.prototype.QH.call(this,this.mx(O));var r,b;O=(Y=this.N.getVideoData().getPlayerResponse())==null?void 0:(r=Y.captions)==null?void 0:(b=r.playerCaptionsTracklistRenderer)==null?void 0:b.openTranscriptCommand;this.N.PW("innertubeCommand",O)}else this.N.logClick(this.element), Mh(this,v==="__off__"?{}:this.tracks[v]),g.hA.prototype.QH.call(this,v);this.HT.MY()}}; g.u.q3=function(){var v=this.N.getOptions();v=v&&v.indexOf("captions")!==-1;var O=this.N.getVideoData(),Y=O&&O.L$,S,d=!((S=this.N.getVideoData())==null||!g.wX(S));S={};if(v||Y){var r;if(v){var b=this.N.getOption("captions","track");S=this.N.getOption("captions","tracklist",{includeAsr:!0});var z=d?[]:this.N.getOption("captions","translationLanguages");this.tracks=g.B0(S,this.mx,this);d=g.DQ(S,this.mx);var M,V;rfl(this)&&((r=O.getPlayerResponse())==null?0:(M=r.captions)==null?0:(V=M.playerCaptionsTracklistRenderer)== null?0:V.openTranscriptCommand)&&d.push("__correction__");if(z.length&&!g.tY(b)){if((r=b.translationLanguage)&&r.languageName){var A=r.languageName;r=z.findIndex(function(f){return f.languageName===A}); F7$(z,r)}Y11(this.Y,z);d.push("__translate__")}r=this.mx(b)}else this.tracks={},d=[],r="__off__";d.unshift("__off__");this.tracks.__off__={};Y&&d.unshift("__contribute__");this.tracks[r]||(this.tracks[r]=b,d.push(r));this.Vc(d);this.tF(r);b&&b.translationLanguage?this.Y.tF(this.Y.Y(b.translationLanguage)):ltc(this.Y);v&&this.C.LS(this.N.getSubtitlesUserSettings());this.countLabel.yg(S&&S.length?" ("+S.length+")":"");this.publish("size-change");this.N.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.u.Xs=function(v){var O=this.N.getOption("captions","track");O=g.NN(O);O.translationLanguage=this.Y.languages[v];Mh(this,O)}; g.u.PV=function(v,O){if(v==="reset")this.N.resetSubtitlesUserSettings();else{var Y={};Y[v]=O;this.N.updateSubtitlesUserSettings(Y)}S1g(this,!0);this.L.start();this.C.LS(this.N.getSubtitlesUserSettings())}; g.u.Ckc=function(v){v||g.vI(this.L)}; g.u.cW=function(){g.vI(this.L);g.hA.prototype.cW.call(this)}; g.u.open=function(){g.hA.prototype.open.call(this);this.options.__correction__&&!this.B&&(this.B=this.options.__correction__.element,this.N.createClientVe(this.B,this,167341),this.N.logVisibility(this.B,!0))};g.C(bJd,g.Cq);g.u=bJd.prototype; g.u.initialize=function(){if(!this.isInitialized){var v=this.N.D();this.isInitialized=!0;try{this.Wr=new ws3(this.N,this)}catch(Y){g.Br(Error("QualityMenuItem creation failed"))}g.w(this,this.Wr);var O=new dwn(this.N,this);g.w(this,O);v.G||(O=new SP(this.N,this),g.w(this,O));v.enableSpeedOptions&&(O=new mxd(this.N,this),g.w(this,O));(g.aP(v)||v.C)&&(v.U||v.f1)&&(O=new Xs$(this.N,this),g.w(this,O));v.nP&&!v.V("web_player_move_autonav_toggle")&&(v=new rl(this.N,this),g.w(this,v));v=new dl(this.N,this); g.w(this,v);this.N.publish("settingsMenuInitialized");Z33(this.settingsButton,this.eT.Jb())}}; g.u.L_=function(v){this.initialize();this.eT.L_(v);Z33(this.settingsButton,this.eT.Jb())}; g.u.u6=function(v){this.t$&&this.eT.Jb()<=1&&this.hide();this.eT.u6(v);Z33(this.settingsButton,this.eT.Jb())}; g.u.RI=function(v){this.initialize();this.eT.Jb()>0&&g.Cq.prototype.RI.call(this,v)}; g.u.VC=function(){this.lV?this.lV=!1:g.Cq.prototype.VC.call(this)}; g.u.show=function(){g.Cq.prototype.show.call(this);g.on(this.N.getRootNode(),"ytp-settings-shown")}; g.u.hide=function(){g.Cq.prototype.hide.call(this);g.WI(this.N.getRootNode(),"ytp-settings-shown")}; g.u.Gm=function(v){this.N.logVisibility(this.element,v);this.N.publish("settingsMenuVisibilityChanged",v)};g.C(j5$,g.K);g.u=j5$.prototype;g.u.onClick=function(){if(W$d(this)&&(this.N.toggleSubtitles(),this.N.logClick(this.element),!this.isEnabled())){var v=!1,O=g.ny(g.qL(),65);g.PD(this.N.D())&&O!=null&&(v=!O);v&&this.N.D().V("web_player_nitrate_promo_tooltip")&&this.N.publish("showpromotooltip",this.element)}}; g.u.D2W=function(v){var O,Y;(O=g.W2(this.N))==null||(Y=O.Ds())==null||Y.RI(v)}; g.u.isEnabled=function(){return!!this.N.getOption("captions","track").displayName}; g.u.q3=function(){var v=W$d(this),O=300;this.N.D().L&&(O=480);if(this.N.D().C){this.updateValue("title",g.ke(this.N,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var Y=v}else{if(v)(Y=this.BW("ytp-subtitles-button-icon"))==null||Y.setAttribute("fill-opacity","1"),this.updateValue("title",g.ke(this.N,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var S;(S=this.BW("ytp-subtitles-button-icon"))== null||S.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}Y=!0}this.tooltip.GG();Y=Y&&this.N.j4().getPlayerSize().width>=O;this.t9(Y);this.N.V("embeds_use_parent_visibility_in_ve_logging")?this.N.logVisibility(this.element,Y&&this.Z):this.N.logVisibility(this.element,Y);v?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.u.o1=function(v){g.K.prototype.o1.call(this,v);this.N.D().V("embeds_use_parent_visibility_in_ve_logging")&&this.N.logVisibility(this.element,this.t$&&v)};g.C(g.Vi,g.K);g.u=g.Vi.prototype; g.u.vD=function(){var v=this.api.j4().getPlayerSize().width,O=this.j;this.api.D().L&&(O=400);O=v>=O&&(!AG(this)||!g.G(this.api.getPlayerStateObject(),64));this.t9(O);g.gr(this.element,"ytp-time-display-allow-autohide",O&&v<400);v=this.api.getProgressState();if(O){var Y=this.api.getPresentingPlayerType();O=this.api.getCurrentTime(Y,!1);this.U&&(O-=v.airingStart);fj(this)&&(O-=this.Nj.startTimeMs/1E3);fj(this)||AG(this)||!this.G||(O-=this.api.getDuration(Y,!1));var S=g.lC(O);this.B!==S&&(this.updateValue("currenttime", S),this.B=S);Y=fj(this)?(this.Nj.endTimeMs-this.Nj.startTimeMs)/1E3:this.api.getDuration(Y,!1);S=g.lC(Y);this.C!==S&&(this.updateValue("duration",S),this.C=S,O&&(O=g.kD("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.lC(O,!0),DURATION:g.lC(Y,!0)}),this.updateValue("timeDisplayAriaLabel",O)))}zMQ(this,v.isAtLiveHead);s51(this,this.api.getLoopRange())}; g.u.onLoopRangeChange=function(v){var O=this.Nj!==v;this.Nj=v;O&&(this.vD(),gpE(this))}; g.u.fkg=function(){this.api.setLoopRange(null)}; g.u.mj1=function(){this.G=!this.G;this.vD()}; g.u.onVideoDataChange=function(v,O,Y){this.updateVideoData((this.api.D().V("enable_topsoil_wta_for_halftime")||this.api.D().V("enable_topsoil_wta_for_halftime_live_infra"))&&Y===2?this.api.getVideoData(1):O);this.vD();gpE(this)}; g.u.updateVideoData=function(v){this.Sr=v.isLivePlayback&&!v.yx;this.U=nh(v);this.isPremiere=v.isPremiere;g.gr(this.element,"ytp-live",AG(this))}; g.u.onClick=function(v){v.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.u.cW=function(){this.Y&&this.Y();g.K.prototype.cW.call(this)};g.C(Vbw,g.K);g.u=Vbw.prototype;g.u.ys=function(){var v=this.api.Z9();this.G!==v&&(this.G=v,Mb1(this,this.api.getVolume(),this.api.isMuted()))}; g.u.Bi=function(v){this.t9(v.width>=350)}; g.u.qW=function(v){if(!v.defaultPrevented){var O=v.keyCode,Y=null;O===37?Y=this.volume-5:O===39?Y=this.volume+5:O===36?Y=0:O===35&&(Y=100);Y!==null&&(Y=g.xr(Y,0,100),Y===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(Y)),v.preventDefault())}}; g.u.rC=function(v){var O=v.deltaX||-v.deltaY;v.deltaMode?this.api.setVolume(this.volume+(O<0?-10:10)):this.api.setVolume(this.volume+g.xr(O/10,-10,10));v.preventDefault()}; g.u.v4c=function(){$y(this,this.Y,!0,this.U,this.api.wx());this.j=this.volume;this.api.isMuted()&&this.api.unMute()}; g.u.o7=function(v){var O=this.G?78:52,Y=this.G?18:12;v-=g.Rf(this.X).x;this.api.setVolume(g.xr((v-Y/2)/(O-Y),0,1)*100)}; g.u.FV4=function(){$y(this,this.Y,!1,this.U,this.api.wx());this.volume===0&&(this.api.mute(),this.api.setVolume(this.j))}; g.u.onVolumeChange=function(v){Mb1(this,v.volume,v.muted)}; g.u.Sb=function(){$y(this,this.Y,this.isDragging,this.U,this.api.wx())}; g.u.cW=function(){g.K.prototype.cW.call(this);g.WI(this.L,"ytp-volume-slider-active")};g.C(ky,g.K); ky.prototype.onVideoDataChange=function(){var v=this.api.D();this.ze();this.visible=!!this.api.getVideoData().videoId&&!g.Jz(this.api.getVideoData(1));this.t9(this.visible);this.api.logVisibility(this.element,this.visible&&this.Z);if(this.visible){var O=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",O)}v.G&&(this.Y&&(this.g2(this.Y),this.Y=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.on(this.element,"no-link")); O=this.api.D();v=this.api.getVideoData();var Y="";O.G||(O=g.IP(O),O.indexOf("www.")===0&&(O=O.substring(4)),Y=g.Kh(v)?"Watch on YouTube Music":O==="youtube.com"?"Watch on YouTube":g.kD("Watch on $WEBSITE",{WEBSITE:O}));this.updateValue("title",Y)}; ky.prototype.onClick=function(v){this.api.V("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var O=this.api.D(),Y=this.api.getVideoUrl(!g.Fk(v),!1,!0,!0);if(g.aP(O)){var S={};g.aP(O)&&g.dB(this.api,"addEmbedsConversionTrackingParams",[S]);Y=g.Te(Y,S)}g.vC(Y,this.api,v);this.api.V("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; ky.prototype.ze=function(){var v={J:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},K:[{J:"path",p_:!0,W:"ytp-svg-fill",T:{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 "}}]}, O=28666,Y=this.api.getVideoData();this.api.isEmbedsShortsMode()?v={J:"svg",T:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},K:[{J:"path",T:{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.Kh(Y)&&(v={J:"svg",T:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},K:[{J:"path",T:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{J:"path",T:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{J:"path",T:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{J:"path",T:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{J:"path",T:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{J:"path",T:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{J:"path",T:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{J:"path",T:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{J:"path",T:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{J:"path",T:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{J:"path",T:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{J:"path",T:{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"}}]},O=216163);g.Kh(Y)?g.on(this.element,"ytp-youtube-music-button"):g.WI(this.element,"ytp-youtube-music-button");v.T=Object.assign({},v.T,{"aria-hidden":"true"});this.updateValue("logoSvg",v);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,O,!0)}; ky.prototype.o1=function(v){g.K.prototype.o1.call(this,v);this.api.logVisibility(this.element,this.visible&&v)};g.C($wd,g.Z6);g.u=$wd.prototype;g.u.wT=function(){if(this.N.V("web_player_max_seekable_on_ended")||!g.G(this.N.getPlayerStateObject(),2))this.progressBar.vD(),this.FO.vD()}; g.u.Y5=function(){this.mL();this.AM.U?this.wT():this.progressBar.BE()}; g.u.DH=function(){this.wT();this.j.start()}; g.u.mL=function(){var v;if(v=!this.N.D().U){v=this.progressBar;var O=2*g.KH()*v.C;v=v.G.getLength()*1E3/v.api.getPlaybackRate()/O<300}v=v&&this.N.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;O=!v;this.AM.U||(v=O=!1);O?this.HW||(this.HW=this.S(this.N,"progresssync",this.wT)):this.HW&&(this.g2(this.HW),this.HW=null);v?this.j.isActive()||this.j.start():this.j.stop()}; g.u.ze=function(){var v=this.N.Z9(),O=this.N.j4().getPlayerSize(),Y=this.N.j4().Wa,S=Uwc(this),d=cfi(this),r=Math.max(O.width-S*2,100);if(this.Mj!==O.width||this.On!==v||this.N.V("web_player_rtr_ctrls")&&this.EA!==Y)this.Mj=O.width,this.On=v,this.EA=Y,this.B.element.style.width=d+"px",this.B.element.style.left=S+"px",g.EMg(this.progressBar,S,d,v),this.N.wK().dD=d;Y=this.G;r=Math.min(570*(v?1.5:1),r);v=Math.min(413*(v?1.5:1),Math.round((O.height-u0n(this))*.82));Y.maxWidth=r;Y.maxHeight=v;Y.FV();this.mL(); this.N.D().V("html5_player_dynamic_bottom_gradient")&&urd(this.n1,O.height)}; g.u.onVideoDataChange=function(){var v=this.N.getVideoData();this.f1.style.background=v.KE?v.HA:"";this.Ug&&lim(this.Ug,v.showSeekingControls);this.tK&&lim(this.tK,v.showSeekingControls)}; g.u.dR=function(){return this.B.element};g.C(CXw,k6);g.u=CXw.prototype;g.u.NK=function(v){v.target!==this.dismissButton.element&&(this.onClickCommand&&this.N.PW("innertubeCommand",this.onClickCommand),this.l1())}; g.u.l1=function(){this.enabled=!1;this.j.hide()}; g.u.onVideoDataChange=function(v,O){v==="dataloaded"&&yfn(this);v=[];var Y,S,d,r;if(O=(r=g.q((Y=O.getWatchNextResponse())==null?void 0:(S=Y.playerOverlays)==null?void 0:(d=S.playerOverlayRenderer)==null?void 0:d.suggestedActionsRenderer,GgN))==null?void 0:r.suggestedActions)for(Y=g.y(O),S=Y.next();!S.done;S=Y.next())(S=g.q(S.value,igC))&&g.q(S.trigger,Phv)&&v.push(S);if(v.length!==0){Y=[];v=g.y(v);for(S=v.next();!S.done;S=v.next())if(S=S.value,d=g.q(S.trigger,Phv))r=(r=S.title)?g.ui(r):"View Chapters", O=d.timeRangeStartMillis,d=d.timeRangeEndMillis,O!=null&&d!=null&&S.tapCommand&&(Y.push(new g.dh(O,d,{priority:9,namespace:"suggested_action_button_visible",id:r})),this.suggestedActions[r]=S.tapCommand);this.N.YZ(Y)}}; g.u.p$=function(){return this.enabled}; g.u.Gm=function(){this.enabled?this.AK.start():fq(this);this.OQ()}; g.u.cW=function(){yfn(this);k6.prototype.cW.call(this)};var y$={},u_=(y$.CHANNEL_NAME="ytp-title-channel-name",y$.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",y$.LINK="ytp-title-link",y$.SESSIONLINK="yt-uix-sessionlink",y$.SUBTEXT="ytp-title-subtext",y$.TEXT="ytp-title-text",y$.TITLE="ytp-title",y$);g.C(Cj,g.K);Cj.prototype.onClick=function(v){this.api.logClick(this.element);var O=this.api.D(),Y=this.api.getVideoUrl(!g.Fk(v),!1,!0);g.aP(O)&&(O={},g.dB(this.api,"addEmbedsConversionTrackingParams",[O]),Y=g.Te(Y,O));g.vC(Y,this.api,v)}; Cj.prototype.q3=function(){var v=this.api.getVideoData(),O=this.api.D();this.updateValue("title",v.title);var Y={J:"a",W:u_.CHANNEL_NAME,T:{href:"{{channelLink}}",target:"_blank"},M3:"{{channelName}}"};this.api.D().G&&(Y={J:"span",W:u_.CHANNEL_NAME,M3:"{{channelName}}",T:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",Y);azi(this);this.api.getPresentingPlayerType()===2&&(Y=this.api.getVideoData(),Y.videoId&&Y.isListed&&Y.author&&Y.On&&Y.profilePicture?(this.updateValue("channelLink", Y.On),this.updateValue("channelName",Y.author),this.updateValue("channelTitleFocusable","0")):azi(this));Y=O.externalFullscreen||!this.api.isFullscreen()&&O.ME;g.gr(this.link,u_.FULLERSCREEN_LINK,Y);O.Ug||!v.videoId||Y||g.Jz(v)||O.G?this.Y&&(this.updateValue("url",null),this.g2(this.Y),this.Y=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.Y||(this.Y=this.S(this.link,"click",this.onClick)));O.G&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.aP(O)?v.expandedTitle: v.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.C(g.aq,g.K);g.u=g.aq.prototype;g.u.setEnabled=function(v){if(this.type!=null)if(v)switch(this.type){case 3:case 2:pyn(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.C=v}; g.u.Th=function(v,O,Y,S,d,r,b,z){if(!this.HW||this.env.L){this.type===3&&this.BE();this.type!==1&&(g.rr(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.C&&this.fade.show(),this.U&&this.U.dispose(),(this.U=this.api.HE())&&this.U.subscribe("l",this.ZF,this));if(z){var M=g.Qm(this.bg).height||141;this.JK.style.bottom=M+2+"px"}else this.JK.style.display="none";this.env.V("delhi_modern_web_player")?(this.update({pillTimeStamp:Y,pillTitle:r!=null?r:"",eduText:z!=null?z:""}),g.on(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:Y,title:r!=null?r:"",eduText:z!=null?z:""}),g.gr(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!r));this.api.isInline()&&g.on(this.bottomText,"ytp-modern-tooltip-text");g.gr(this.element,"ytp-text-detail",!!S);Y=-1;this.U&&(Y=RJ(this.U,243*this.scale),this.env.V("web_l3_storyboard")&&this.U.levels.length===4&&(Y=this.U.levels.length-1),Y=lFd(this.U,Y,O));lzc(this,Y);if(b)switch(O=g.Qm(this.element).width,b){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=O+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=O/2+"px",this.title.style.textAlign="center"}TRn(this,!!S,v,d)}}; g.u.c$=function(){this.type===1&&this.BE()}; g.u.wv=function(v,O){if(this.type)if(this.type===3)this.BE();else return;xwQ(this,v,3,O)}; g.u.GG=function(v){this.Y&&!this.L&&this.Y.hasAttribute("title")&&(this.G=this.Y.getAttribute("title")||"",this.Y.removeAttribute("title"),this.C&&pyn(this,v))}; g.u.ZF=function(v,O){v<=this.B&&this.B<=O&&(v=this.B,this.B=NaN,lzc(this,v))}; g.u.G0x=function(){pWg(this.U,this.B,243*this.scale)}; g.u.BE=function(){switch(this.type){case 2:var v=this.Y;v.removeEventListener("mouseout",this.X);v.addEventListener("mouseover",this.N3);v.removeEventListener("blur",this.X);v.addEventListener("focus",this.N3);F$l(this);break;case 3:F$l(this);break;case 1:this.U&&(this.U.unsubscribe("l",this.ZF,this),this.U=null),this.api.removeEventListener("videoready",this.j),this.tK.stop()}this.type=null;this.C&&this.fade.hide()}; g.u.Ly=function(){if(this.Y)for(var v=0;v=0;O--)if(this.oE[O]===v){this.oE.splice(O,1);break}Fl(this.AM,64,this.oE.length>0)}; g.u.Gk=function(){this.api.mK()&&this.api.O8();return!!this.dP||L$Q(this)||g.wx.prototype.Gk.call(this)}; g.u.sR=vm(3);g.u.T_=vm(7);g.u.E$=vm(10); g.u.OP=function(){var v=!this.Gk(),O=v&&this.api.mK()&&!g.G(this.api.getPlayerStateObject(),2)&&!g.Jz(this.api.getVideoData())&&!this.api.D().G&&!this.api.isEmbedsShortsMode(),Y=this.U$&&g.yN(this.api)&&g.G(this.api.getPlayerStateObject(),128);v||Y?(this.tN.show(),this.Ua.show()):(this.tN.hide(),this.Ua.hide(),this.api.Ly(this.AF.element));O?this.df.RI():this.df.VC();this.xN&&ks$(this.xN,this.Up||!v);this.api.V("web_player_hide_overflow_button_if_empty_menu")&&BR$(this);g.wx.prototype.OP.call(this)}; g.u.Od=function(v,O,Y,S,d){v.style.left="";v.style.top="";v.style.bottom="";var r=g.Qm(v),b=S||this.xN&&g.YW(this.xN.dR(),O),z=S=null;Y!=null&&b||(S=g.Qm(O),z=g.e9(O,this.api.getRootNode()),Y==null&&(Y=z.x+S.width/2));Y-=r.width/2;b?(O=this.xN,S=Uwc(O),z=cfi(O),b=this.api.j4().getPlayerSize().height,Y=g.xr(Y,S,S+z-r.width),r=b-u0n(O)-r.height):g.YW(this.AF.element,O)?(O=this.api.j4().getPlayerSize().width,Y=g.xr(Y,12,O-r.width-12),r=this.Z9()?this.nX:this.zS,this.api.D().playerStyle==="gvn"&&(r+= 20),this.U$&&(r-=this.Z9()?26:18)):(O=this.api.j4().getPlayerSize(),Y=g.xr(Y,12,O.width-r.width-12),r=z.y>(O.height-S.height)/2?z.y-r.height-12:z.y+S.height+12);v.style.top=r+(d||0)+"px";v.style.left=Y+"px"}; g.u.Y5=function(v){v&&(this.api.Ly(this.AF.element),this.xN&&this.api.Ly(this.xN.dR()));this.pJ&&(g.gr(this.contextMenu.element,"ytp-autohide",v),g.gr(this.contextMenu.element,"ytp-autohide-active",!0));g.wx.prototype.Y5.call(this,v)}; g.u.dF=function(){g.wx.prototype.dF.call(this);this.pJ&&(g.gr(this.contextMenu.element,"ytp-autohide-active",!1),this.pJ&&(this.contextMenu.hide(),this.gE&&this.gE.hide()))}; g.u.wW=function(v,O){var Y=this.api.j4().getPlayerSize();Y=new g.cL(0,0,Y.width,Y.height);if(v||this.AM.U&&!this.Gk()){if(this.api.D().ZI||O)v=this.Z9()?this.nX:this.zS,Y.top+=v,Y.height-=v;this.xN&&(Y.height-=u0n(this.xN))}return Y}; g.u.ys=function(v){var O=this.api.getRootNode();v?O.parentElement?(O.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.D().externalFullscreen||(O.parentElement.insertBefore(this.R_.element,O),O.parentElement.insertBefore(this.wP.element,O.nextSibling))):g.LP(Error("Player not in DOM.")):(O.setAttribute("aria-label","YouTube Video Player"),this.R_.detach(),this.wP.detach());this.ze();this.m2()}; g.u.Z9=function(){var v=this.api.D();return this.api.isFullscreen()&&!v.L||!1}; g.u.showControls=function(v){this.BX=!v;this.OP()}; g.u.ze=function(){var v=this.Z9();this.tooltip.scale=v?1.5:1;this.contextMenu&&g.gr(this.contextMenu.element,"ytp-big-mode",v);this.OP();this.api.V("web_player_hide_overflow_button_if_empty_menu")||BR$(this);this.m2();var O=this.api.isEmbedsShortsMode();O&&v?(v=(this.api.j4().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.ym(this.AF.element,"padding-left",v+"px"),g.ym(this.AF.element,"padding-right",v+"px")):O&&(g.ym(this.AF.element,"padding-left",""),g.ym(this.AF.element,"padding-right", ""));g.wx.prototype.ze.call(this)}; g.u.Ac=function(){if(L$Q(this)&&!g.yN(this.api))return!1;var v=this.api.getVideoData();return!g.aP(this.api.D())||this.api.getPresentingPlayerType()===2||!this.RS||((v=this.RS||v.RS)?(v=v.embedPreview)?(v=v.thumbnailPreviewRenderer,v=v.videoDetails&&g.q(v.videoDetails,gOi)||null):v=null:v=null,v&&v.collapsedRenderer&&v.expandedRenderer)?g.wx.prototype.Ac.call(this):!1}; g.u.m2=function(){g.wx.prototype.m2.call(this);this.api.logVisibility(this.title.element,!!this.Ha);this.J0&&this.J0.o1(!!this.Ha);this.channelAvatar.o1(!!this.Ha);this.overflowButton&&this.overflowButton.o1(this.tE()&&!!this.Ha);this.shareButton&&this.shareButton.o1(!this.tE()&&!!this.Ha);this.Kv&&this.Kv.o1(!this.tE()&&!!this.Ha);this.searchButton&&this.searchButton.o1(!this.tE()&&!!this.Ha);this.copyLinkButton&&this.copyLinkButton.o1(!this.tE()&&!!this.Ha);if(!this.Ha){this.api.Ly(this.AF.element); for(var v=0;v5&&O.G0("glrs",{cmt:Y});O.seekTo(0,{seekSource:58});O.G0("glrre",{cmt:Y})}}; FV.prototype.cW=function(){this.Y=null;g.X.prototype.cW.call(this)};g.C(g.hG,Y2);g.u=g.hG.prototype;g.u.isView=function(){return!0}; g.u.x3=function(){var v=this.mediaElement.getCurrentTime();if(v1;so(v.UM(),S-.01)&&!d&&(eP(this,4),Y.isActive=!1,Y.mO=Y.mO||Y.isActive,(this.Z===1?this.Y:this.U).G0("sbh",{}),O.isActive=!0,O.mO=O.mO||O.isActive,this.Z!==0&&(this.Y.getVideoData().T5=!0));v=this.B.U;if(this.B.Y.isActive&&v.isActive&&(eP(this,5),this.Z!==0)){v=this.U.BA();Y=this.Y.BA(); this.Y.G0("sbs",{citag:Y==null?void 0:Y.itag,nitag:v==null?void 0:v.itag});this.U.G0("gitags",{pitag:Y==null?void 0:Y.itag,citag:v==null?void 0:v.itag});var r;(r=this.U)==null||r.Ov()}}}; g.u.gb=function(){this.G_()&&this.Mo("player-reload-after-handoff")}; g.u.Mo=function(v,O){O=O===void 0?{}:O;if(!this.vW()&&this.status.status!==6){var Y=this.status.status>=4&&v!=="player-reload-after-handoff";this.status={status:Infinity,error:v};if(this.Y&&this.U){var S=this.U.getVideoData().clientPlaybackNonce;this.Y.OE(new lJ("dai.transitionfailure",Object.assign(O,{cpn:S,transitionTimeMs:this.eI,msg:v})));this.Y.xT(Y)}this.Mw.reject(v);this.dispose()}}; g.u.G_=function(){return this.status.status>=4&&this.status.status<6}; g.u.cW=function(){tbm(this);this.Y.unsubscribe("newelementrequired",this.gb,this);if(this.G){var v=this.G.U;this.G.Y.Gd.unsubscribe("updateend",this.zA,this);v.Gd.unsubscribe("updateend",this.zA,this)}g.X.prototype.cW.call(this)}; g.u.Jw=function(v){g.UO(v,128)&&this.Mo("player-error-event")};g.C(EY,g.X);EY.prototype.clearQueue=function(v,O){v=v===void 0?!1:v;O=O===void 0?!1:O;this.B&&this.B.reject("Queue cleared");this.app.D().V("html5_gapless_fallback_on_qoe_restart_v2")||O&&this.U&&this.U.xT(!1);Qi(this,v)}; EY.prototype.JF=function(){return!this.Y}; EY.prototype.G_=function(){var v;return((v=this.G)==null?void 0:v.G_())||!1}; EY.prototype.cW=function(){Qi(this);g.X.prototype.cW.call(this)};g.C(Sh1,g.MU);g.u=Sh1.prototype;g.u.getVisibilityState=function(v,O,Y,S,d,r,b,z){return v?4:i2w()?3:O?2:Y?1:S?5:d?7:r?8:b?9:z?10:0}; g.u.OY=function(v){this.fullscreen!==v&&(this.fullscreen=v,this.Gm())}; g.u.setMinimized=function(v){this.U!==v&&(this.U=v,this.Gm())}; g.u.setInline=function(v){this.inline!==v&&(this.inline=v,this.Gm())}; g.u.tf=function(v){this.pictureInPicture!==v&&(this.pictureInPicture=v,this.Gm())}; g.u.setSqueezeback=function(v){this.G!==v&&(this.G=v,this.Gm())}; g.u.tZ=function(v){this.B!==v&&(this.B=v,this.Gm())}; g.u.YW=function(){return this.Y}; g.u.SG=function(){return this.fullscreen!==0}; g.u.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.u.I_=function(){return this.fullscreen}; g.u.isMinimized=function(){return this.U}; g.u.isInline=function(){return this.inline}; g.u.isBackground=function(){return i2w()}; g.u.lq=function(){return this.pictureInPicture}; g.u.F_=function(){return!1}; g.u.qb=function(){return this.G}; g.u.Rv=function(){return this.B}; g.u.Gm=function(){this.publish("visibilitychange");var v=this.getVisibilityState(this.YW(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.lq(),this.F_(),this.qb(),this.Rv());v!==this.C&&this.publish("visibilitystatechange");this.C=v}; g.u.cW=function(){DjQ(this.Z);g.MU.prototype.cW.call(this)};g.C(g.Lj,g.X);g.u=g.Lj.prototype;g.u.cW=function(){this.videoData=this.playerState=null;g.X.prototype.cW.call(this)}; g.u.addCueRange=function(){}; g.u.Cr=function(){}; g.u.YV=function(){}; g.u.HM=function(){return!1}; g.u.ZR=function(){return!1}; g.u.fm=function(){return!1}; g.u.L3=function(){}; g.u.Tp=function(){}; g.u.Tc=function(){return[]}; g.u.De=function(){}; g.u.getAudioTrack=function(){return this.getVideoData().H7}; g.u.ly=function(){return null}; g.u.getAvailableAudioTracks=function(){return[]}; g.u.KU=function(){return[]}; g.u.xC=function(){return[]}; g.u.Lq=function(){return""}; g.u.wE=function(){return[]}; g.u.uy=function(){}; g.u.nE=function(){return 0}; g.u.getCurrentTime=function(){return 0}; g.u.xK=function(){}; g.u.BA=function(){}; g.u.Yu=function(){return{}}; g.u.getDuration=function(){return 0}; g.u.WP=function(){return 0}; g.u.Hq=function(){return 0}; g.u.Zv=function(){return!1}; g.u.S_=function(){return 0}; g.u.A2=function(){return 0}; g.u.sJ=vm(15);g.u.Xp=function(){return 0}; g.u.IJ=function(){return!1}; g.u.SE=function(){return 0}; g.u.Bq=function(){return null}; g.u.rW=function(){return null}; g.u.jO=function(){return 0}; g.u.y8=function(){return 0}; g.u.jA=function(){return g.B(function(v){g.UE(v)})}; g.u.N$=vm(21);g.u.getPlaybackQuality=function(){return"auto"}; g.u.getPlaybackRate=function(){return 1}; g.u.getPlayerState=function(){this.playerState||(this.playerState=new g.oK);return this.playerState}; g.u.getPlayerType=function(){return 0}; g.u.getPlaylistSequenceForTime=function(){return null}; g.u.mE=function(){return function(){}}; g.u.jI=function(){return""}; g.u.getPreferredQuality=function(){return"unknown"}; g.u.TI=function(){}; g.u.getProximaLatencyPreference=function(){return 0}; g.u.qg=function(){return Xu}; g.u.HE=function(){return null}; g.u.getStoryboardFormat=function(){return null}; g.u.getStreamTimeOffset=function(){return 0}; g.u.WV=function(){return 0}; g.u.En=function(){return 0}; g.u.Yl=function(){return{Jo:[],pC:[],currentTime:0,V6:"",droppedVideoFrames:0,isGapless:!1,JF:!0,DD:0,Bs:0,mB:0,NO:0,Cd:0,gm:[],zz:[],zw:null,playerState:this.getPlayerState(),mJ:null,Y0:"",totalVideoFrames:0}}; g.u.getUserAudio51Preference=function(){return 0}; g.u.getUserPlaybackQualityPreference=function(){return""}; g.u.getVideoData=function(){this.videoData||(this.videoData=new g.w2(this.Yg),g.w(this,this.videoData));return this.videoData}; g.u.EL=function(){return null}; g.u.zI=function(){return null}; g.u.fE=function(){}; g.u.getVideoLoadedFraction=function(){return 0}; g.u.YO=function(){}; g.u.handleError=function(){}; g.u.xT=function(){}; g.u.Ew=function(){}; g.u.Vu=vm(46);g.u.a4=function(){return!1}; g.u.hasSupportedAudio51Tracks=function(){return!1}; g.u.QP=function(){return!1}; g.u.YW=function(){return!1}; g.u.isAtLiveHead=function(){return!1}; g.u.YM=function(){return!0}; g.u.isGapless=function(){return!1}; g.u.isHdr=function(){return!1}; g.u.Hd=function(){return!1}; g.u.oB=function(){return!1}; g.u.Wh=function(){return!1}; g.u.isProximaLatencyEligible=function(){return!1}; g.u.JF=function(){return!0}; g.u.rh=function(){return!1}; g.u.Hy=function(){return!1}; g.u.X1=function(){}; g.u.SH=function(){}; g.u.Ov=function(){}; g.u.q4=function(){}; g.u.dl=function(){}; g.u.VM=function(){}; g.u.H5=function(){}; g.u.I4=vm(56);g.u.Oz=vm(27);g.u.GT=function(){}; g.u.pauseVideo=function(){}; g.u.playVideo=function(){return g.B(function(v){return v.return()})}; g.u.qU=function(){}; g.u.i6=vm(33);g.u.PB=vm(39);g.u.zN=function(){}; g.u.G0=function(){}; g.u.zF=function(){}; g.u.IE=function(){}; g.u.jk=function(){}; g.u.OE=function(){}; g.u.pY=function(){}; g.u.cw=function(){}; g.u.nz=function(){}; g.u.rq=function(){}; g.u.eS=function(){}; g.u.Oy=function(){}; g.u.A0=function(){}; g.u.removeCueRange=function(){}; g.u.dk=function(){}; g.u.oF=function(){return[]}; g.u.jG=function(){}; g.u.FN=function(){}; g.u.WZ=function(){}; g.u.xa=function(){}; g.u.gY=function(){}; g.u.lf=function(){}; g.u.seekTo=function(){}; g.u.sendAbandonmentPing=function(){}; g.u.sendVideoStatsEngageEvent=function(){}; g.u.O3=function(){}; g.u.setLoop=function(){}; g.u.ow=function(){}; g.u.setMediaElement=function(){}; g.u.TT=function(){}; g.u.setPlaybackRate=function(){}; g.u.g4=function(){}; g.u.U3=function(){}; g.u.po=function(){}; g.u.setProximaLatencyPreference=function(){}; g.u.YD=function(){}; g.u.bF=function(){}; g.u.Ur=function(){}; g.u.wY=function(){}; g.u.setUserAudio51Preference=function(){}; g.u.X8=function(){}; g.u.eE=function(){return!1}; g.u.rS=function(){}; g.u.UJ=function(){return!1}; g.u.Ie=function(){}; g.u.e9=function(){}; g.u.QD=function(){}; g.u.stopVideo=function(){}; g.u.subscribe=function(){return NaN}; g.u.pU=function(){}; g.u.togglePictureInPicture=function(){}; g.u.bu=function(){return 0}; g.u.unsubscribe=function(){return!1}; g.u.hf=function(){}; g.u.qh=function(){return!1}; g.u.di=function(){}; g.u.NC=function(){}; g.u.Bb=function(){};g.C(XV,g.X);g.u=XV.prototype;g.u.get=function(v){BJ(this);var O=this.data.find(function(Y){return Y.key===v}); return O?O.value:null}; g.u.set=function(v,O,Y){this.remove(v,!0);BJ(this);v={key:v,value:O,expire:Infinity};Y&&isFinite(Y)&&(Y*=1E3,v.expire=(0,g.J)()+Y);for(this.data.push(v);this.data.length>this.G;)(Y=this.data.shift())&&wl(this,Y,!0);ZN(this)}; g.u.remove=function(v,O){O=O===void 0?!1:O;var Y=this.data.find(function(S){return S.key===v}); Y&&(wl(this,Y,O),g.kY(this.data,function(S){return S.key===v}),ZN(this))}; g.u.removeAll=function(v){if(v=v===void 0?!1:v)for(var O=g.y(this.data),Y=O.next();!Y.done;Y=O.next())wl(this,Y.value,v);this.data=[];ZN(this)}; g.u.cW=function(){var v=this;g.X.prototype.cW.call(this);this.data.forEach(function(O){wl(v,O,!0)}); this.data=[]};g.C(g.Iq,g.X);g.u=g.Iq.prototype;g.u.cW=function(){for(var v=g.y(Object.values(this.G)),O=v.next();!O.done;O=v.next())O.value.dispose();dTl(this);this.Y.dispose();g.X.prototype.cW.call(this)}; g.u.Am=function(v){return v?v===1?this.X:this.U.getVideoData().enableServerStitchedDai&&v===2?this.U.getVideoData().xH?this.G[2]||this.U:this.U:this.G[v]||null:this.U}; g.u.lk=function(v){var O=v.cpn;v=v.playerType;if(O)a:{v=g.y(Object.values(this.G));for(var Y=v.next();!Y.done;Y=v.next())if(Y=Y.value,Y.Lq()===O){O=Y;break a}O=this.L[O]||null}else O=v?this.Am(v):this.U;return O}; g.u.cT=function(){return this.X}; g.u.X5=function(v){this.X=v}; g.u.uc=function(){return this.U}; g.u.P1=function(v){this.U=v;qh(this)}; g.u.Wv=vm(52);g.u.U1=vm(54);g.C(nj,g.X);nj.prototype.enqueue=function(v){if(v.Y()!==this)return!1;this.segments.push(v);return!0}; nj.prototype.removeAll=function(){for(;this.segments.length;){var v=void 0;(v=this.segments.pop())==null||v.dispose()}this.Y.clear()}; nj.prototype.cW=function(){this.removeAll();g.X.prototype.cW.call(this)};g.C(Mnw,g.ET);g.u=Mnw.prototype;g.u.G2=function(){}; g.u.Lq=function(){return this.videoData.clientPlaybackNonce}; g.u.getVideoData=function(){if(g.ET.prototype.getVideoData.call(this).V("html5_huli_ssdai_use_playback_state"))var v=this.videoData;else{var O=this.f_;var Y=g.ET.prototype.getCurrentTime.call(this);if(O.XF)O=void 0;else{var S=void 0;O.Wq&&(S=O.B.get(O.Wq));if(!S){S=xTF(O,Y*1E3);var d,r=(d=S)==null?void 0:d.cpn;O.Wq?r&&O.Wq!==r&&O.Yy({cpcnm:r+"_"+O.Wq,cmt:Y.toFixed(3)}):O.Yy({cpcna:r,cmt:Y.toFixed(3)})}O=(v=S)==null?void 0:v.videoData}v=O||g.ET.prototype.getVideoData.call(this)}return v}; g.u.getCurrentTime=function(v){var O=g.ET.prototype.getCurrentTime.call(this);g.ET.prototype.getVideoData.call(this).V("html5_huli_ssdai_use_playback_state")?this.endTime===0?v||(O-=this.startTime):v&&(O=this.endTime-this.startTime):(v?v=this.f_.PA/1E3||O:(v=O,v=(O=a7n(this.f_,v*1E3))?v-O.start/1E3:v),O=v);return O}; g.u.getDuration=function(){if(g.ET.prototype.getVideoData.call(this).V("html5_huli_ssdai_use_playback_state"))var v=this.duration;else{v=this.f_;var O=g.ET.prototype.getCurrentTime.call(this);v=(v=xTF(v,O*1E3))?v.durationMs/1E3:0}return v}; g.u.OJ=function(v){this.duration=v};g.JG.prototype.nC=function(v,O){if(O===1)return this.Y.get(v);if(O===2)return this.G.get(v);if(O===3)return this.U.get(v)}; g.JG.prototype.gB=vm(64);g.JG.prototype.fz=function(v,O,Y,S){Y={An:S,by:Y};O?this.G.set(v,Y):this.Y.set(v,Y)}; g.JG.prototype.clearAll=function(){this.Y.clear();this.G.clear();this.U.clear()}; g.C(g.Kj,g.X);g.u=g.Kj.prototype;g.u.oW=function(v){var O=v.Wu?v.Wu*1E3:v.qj,Y=this.U.get(v.cpn);Y&&this.playback.removeCueRange(Y);this.U.delete(v.cpn);this.B.delete(v.cpn);Y=this.Z.indexOf(v);Y>=0&&this.Z.splice(Y,1);Y=[];for(var S=g.y(this.C),d=S.next();!d.done;d=S.next())d=d.value,d.end<=O?this.playback.removeCueRange(d):Y.push(d);this.C=Y;Qe$(this,0,O+v.durationMs)}; g.u.onCueRangeEnter=function(v){this.AK.push(v);var O=v.getId();this.Yy({oncueEnter:1,cpn:O,start:v.start,end:v.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.nE()||0).toFixed(3)});var Y=O==="";this.Eg.add(v.U);var S=this.B.get(O);if(Y){var d;if(this.playback.getVideoData().lM()&&((d=this.Y)==null?0:d.J4)&&this.G){this.RJ=0;this.Y=void 0;this.Ug&&(this.events.g2(this.Ug),this.Ug=null);this.G="";this.XO=!0;return}}else if(this.Yy({enterAdCueRange:1}),this.playback.getVideoData().lM()&& (S==null?0:S.X_))return;if(this.XO&&!this.Y)this.XO=!1,!Y&&S&&(Y=this.playback.getCurrentTime(),DN(this,{Al:v,isAd:!0,XR:!0,XQ:Y,adCpn:O},{isAd:!1,XR:!1,XQ:Y}),this.Wq=S.cpn,this.Oo(S.cpn,Y),mV(this,S),v=i_(this,"midab",S),this.Yy(v),this.RJ=1),this.X=!1;else if(this.Y){if(this.Y.XR)this.Yy({a_pair_of_same_transition_occurs_enter:1,acpn:this.Y.adCpn,transitionTime:this.Y.XQ,cpn:O,currentTime:this.playback.getCurrentTime()}),S=this.playback.getCurrentTime(),v={Al:v,isAd:!Y,XR:!0,XQ:S,adCpn:O},O={Al:this.Y.Al, isAd:this.Y.isAd,XR:!1,XQ:S,adCpn:this.Y.adCpn},this.Y.Al&&this.Eg.delete(this.Y.Al.U),DN(this,v,O);else{if(this.Y.Al===v){this.Yy({same_cue_range_pair_enter:1,acpn:this.Y.adCpn,transitionTime:this.Y.XQ,cpn:O,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:v.start,cueRangeEndTime:v.end});this.Y=void 0;return}if(this.Y.adCpn===O){O&&this.Yy({dchtsc:O});this.Y=void 0;return}v={Al:v,isAd:!Y,XR:!0,XQ:this.playback.getCurrentTime(),adCpn:O};DN(this,v,this.Y)}this.Y=void 0;this.X=!1}else this.Y= {Al:v,isAd:!Y,XR:!0,XQ:this.playback.getCurrentTime(),adCpn:O}}; g.u.Oo=function(v,O){if(v===this.playback.Lq())rH3(this.app.o4(),this.playback,!1);else{var Y=this.Mj.get(v);Y?(Y.endTime=0,Y.startTime=O,rH3(this.app.o4(),Y,!0)):this.Yy({nop_s:v})}}; g.u.onCueRangeExit=function(v){var O=v.getId();this.Yy({oncueExit:1,cpn:O,start:v.start,end:v.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.nE()||0).toFixed(3)});var Y=O==="",S=this.B.get(O);Y||yHF(this,O,this.playback.getCurrentTime());if(this.playback.getVideoData().lM()&&!Y&&S){if(S.X_)return;S.X_=!0;this.j.clear();if(this.Yg.V("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.HM()){var d=S.qj;this.playback.A0(d/1E3,(d+S.durationMs)/1E3)}else this.playback.G0("lifa",{remove:0})}if(this.Eg.has(v.U))if(this.Eg.delete(v.U), this.AK=this.AK.filter(function(r){return r!==v}),this.XO&&(this.X=this.XO=!1,this.Yy({cref:1})),this.Y){if(this.Y.XR){if(this.Y.Al===v){this.Yy({same_cue_range_pair_exit:1, acpn:this.Y.adCpn,transitionTime:this.Y.XQ,cpn:O,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:v.start,cueRangeEndTime:v.end});this.Y=void 0;return}if(this.Y.adCpn===O){O&&this.Yy({dchtsc:O});this.Y=void 0;return}O={Al:v,isAd:!Y,XR:!1,XQ:this.playback.getCurrentTime(),adCpn:O};DN(this,this.Y,O)}else if(this.Yy({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.Y.adCpn,transitionTime:this.Y.XQ,upcomingCpn:O,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.Y.adCpn===O)return;this.Y=void 0;this.X=!1}else this.Y={Al:v,isAd:!Y,XR:!1,XQ:this.playback.getCurrentTime(),adCpn:O};else this.Yy({ignore_single_exit:1})}; g.u.q6=function(){return{cpn:this.playback.Lq(),durationMs:0,qj:0,playerType:1,Qw:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.u.gh=function(){if(this.XF)return!1;var v=void 0;this.Wq&&(v=this.B.get(this.Wq));return this.playback.getVideoData().lM()?!!v&&!v.X_:!!v}; g.u.seekTo=function(v,O,Y,S){v=v===void 0?0:v;O=O===void 0?{}:O;Y=Y===void 0?!1:Y;S=S===void 0?null:S;if(this.playback.getVideoData().lM()&&v<=this.PA/1E3)this.playback.pauseVideo(),this.PA=0,this.X=!0,this.playback.jA(),this.playback.seekTo(v),this.playback.playVideo();else if(this.X=!0,Y)AH7(this,v,O);else{Y=this.app.uc();var d=Y===this.f1?this.Cj:null;Nh(this,!1);this.R1=v;this.rR=O;S!=null&&this.Te.start(S);Y&&(this.Cj=d||Y.getPlayerState(),Y.QD(O),this.f1=Y)}}; g.u.cW=function(){Nh(this,!1);TmF(this);l7F(this);g.X.prototype.cW.call(this)}; g.u.Vp=function(v){this.oI=v;this.Yy({swebm:v})}; g.u.S6=function(v,O,Y){if(Y&&O){var S=this.j.get(v);if(S){S.locations||(S.locations=new Map);var d=Number(O.split(";")[0]);Y=new g.aa(Y);this.Yy({hdlredir:1,itag:O,seg:v,hostport:pA(Y)});S.locations.set(d,Y)}}}; g.u.iY=function(v,O,Y,S,d,r){var b=S===3,z=hqw(this,v,O,S,Y,r);if(!z){OH(this,O,b);var M=g.Fid(this,O)?"undec":"ncp";this.Yy({gvprp:M,mt:v,seg:O,tt:S,itag:Y,ce:r});return null}b||this.j.set(O,z);r=z.V5;var V;S=((V=this.nC(O-1,S,d))==null?void 0:V.An)||"";S===""&&this.Yy({eds:1});V=eqJ(this,z.ssdaiAdsConfig);d=this.playback.getVideoData();var A;b=((A=d.U)==null?void 0:A.containerType)||0;A=d.PO[b];z=z.UZ&&O>=z.UZ?z.UZ:void 0;A={OI:r?Bmd(this,r):[],nB:V,An:S,Dm:z,x0:kr(A.split(";")[0]),aK:A.split(";")[1]|| ""};z={Yq:A};this.n1&&(v={gvprpro:"v",sq:O,mt:v.toFixed(3),itag:Y,acpns:((M=A.OI)==null?void 0:M.join("_"))||"none",abid:r},this.Yy(v));return z}; g.u.u_=function(v){a:{if(!this.XF){var O=RqQ(this,v);if(!(this.playback.getVideoData().lM()&&(O==null?0:O.X_)))break a}O=void 0}var Y=O;if(!Y)return this.Yy({gvprp:"ncp",mt:v}),null;O=Y.V5;var S=eqJ(this,Y.ssdaiAdsConfig);Y=Y.UZ&&Y.y9&&v>=Y.y9?Y.UZ:void 0;var d=this.playback.getVideoData(),r,b=((r=d.U)==null?void 0:r.containerType)||0;r=d.PO[b];r={OI:O?Bmd(this,O):[],nB:S,Dm:Y,x0:kr(r.split(";")[0]),aK:r.split(";")[1]||""};var z;v={gvprpro:"v",mt:v.toFixed(3),acpns:((z=r.OI)==null?void 0:z.join("_"))|| "none",abid:O};this.Yy(v);return r}; g.u.fC=function(v,O,Y,S,d,r){var b=Number(Y.split(";")[0]),z=S===3;v=hqw(this,v,O,S,Y,r);this.Yy({gdu:1,seg:O,itag:b,pb:""+!!v});if(!v)return OH(this,O,z),null;v.locations||(v.locations=new Map);if(!v.locations.has(b)){var M,V;r=(M=v.videoData.getPlayerResponse())==null?void 0:(V=M.streamingData)==null?void 0:V.adaptiveFormats;if(!r)return this.Yy({gdu:"noadpfmts",seg:O,itag:b}),OH(this,O,z),null;M=r.find(function(k){return k.itag===b}); if(!M||!M.url){var A=v.videoData.videoId;v=[];var f=g.y(r);for(S=f.next();!S.done;S=f.next())v.push(S.value.itag);this.Yy({gdu:"nofmt",seg:O,vid:A,itag:b,fullitag:Y,itags:v.join(",")});OH(this,O,z);return null}v.locations.set(b,new g.aa(M.url,!0))}r=v.locations.get(b);if(!r)return this.Yy({gdu:"nourl",seg:O,itag:b}),OH(this,O,z),null;r=new $R(r);this.oI&&(r.get("dvc")?this.Yy({dvc:r.get("dvc")||""}):r.set("dvc","webm"));(S=(f=this.nC(O-1,S,d))==null?void 0:f.An)&&r.set("daistate",S);v.UZ&&O>=v.UZ&& r.set("skipsq",""+v.UZ);(f=this.playback.getVideoData().clientPlaybackNonce)&&r.set("cpn",f);f=[];v.V5&&(f=Bmd(this,v.V5),f.length>0&&r.set("acpns",f.join(",")));z||this.j.set(O,v);z=null;z=r.get("aids");S=r.Sp();(S==null?void 0:S.length)>2048&&this.Yy({urltoolong:1,sq:O,itag:b,len:S.length});this.n1&&(S&&(r=v.cpn,d=v.V5,wFm(this,r,d),d&&!this.II.has(d)&&(r=Zkc(this,r,d),M=XFn(this,d),this.Yy({iofa:r}),this.Yy({noawnzd:M-r}),this.Yy({acpns:f.join("."),aids:(A=z)==null?void 0:A.replace(/,/g,".")}), this.II.add(d))),this.Yy({gdu:"v",seg:O,itag:Y,ast:v.qj.toFixed(3),alen:v.durationMs.toFixed(3),acpn:v.cpn,avid:v.videoData.videoId}));return S}; g.u.cK=function(v,O,Y){Y=Y===void 0?!1:Y;var S=vA(this,v,O);if(S){var d=void 0,r=S.V5;if(r){this.Yy({skipadonsq:O,sts:Y,abid:r,acpn:S.cpn,avid:S.videoData.videoId});Y=this.L.get(r);if(!Y)return;Y=g.y(Y);for(r=Y.next();!r.done;r=Y.next())r=r.value,r.UZ=O,r.y9=v,r.qj>S.qj&&(d=r)}this.G=S.cpn;EnQ(this);v=this.playback.getCurrentTime();tG(this,S,d,v,v,!1,!0)}}; g.u.K9=function(){for(var v=g.y(this.Z),O=v.next();!O.done;O=v.next())O=O.value,O.UZ=NaN,O.y9=NaN;EnQ(this);this.Yy({rsac:"resetSkipAd",sac:this.G});this.G=""}; g.u.nC=function(v,O,Y){return this.FO.nC(v,O,Y)}; g.u.gB=vm(63); g.u.fz=function(v,O,Y,S,d,r,b,z,M){S.length>0&&this.Yy({onssinfo:1,sq:v,start:O.toFixed(3),cpns:S.join(","),ds:d.join(","),isVideo:b?1:0});M&&this.FO.fz(v,b,z,M);if(b){if(S.length&&d.length)for(this.G&&this.G===S[0]&&this.Yy({skipfail:1,sq:v,acpn:this.G}),v=O+this.WV(),b=0;b0&&(this.RJ=0,this.Wq="",this.api.publish("serverstitchedvideochange"));this.playback.Tp(Y,S);return!0}; g.u.f3=function(){this.Yy({rstdaist:1});this.FO.clearAll()}; g.u.u1=function(v){var O;if(v!==((O=this.HW)==null?void 0:O.identifier))this.Yy({ignorenoad:v});else{this.pj.add(v);this.Yy({noadrcv:v});var Y;((Y=this.HW)==null?void 0:Y.identifier)===v&&Gt(this)}}; g.u.wr=function(v){if(this.XF)return this.Yy({dai_disabled:v.event}),!1;if(this.playback.getVideoData().lM()&&(this.Yg.V("html5_lifa_no_gab_on_predict_start")&&v.event==="predictStart"||v.event==="continue"||v.event==="stop"))return this.Yy({cuepoint_skipped:v.event}),!1;var O=a2(this.api.QC());if(O=O?O.wr(v):!1)this.tK={cg:v.identifier,Gp:v.startSecs};else if(this.tK&&this.tK.cg===v.identifier&&v.startSecs>this.tK.Gp+1){this.Yy({cueStChg:v.identifier,oldSt:this.tK.Gp.toFixed(3),newSt:v.startSecs.toFixed(3), abid:this.tK.U0});if(this.tK.U0){var Y=v.startSecs-this.tK.Gp,S=this.L.get(this.tK.U0);if(S){S=g.y(S);for(var d=S.next();!d.done;d=S.next())d=d.value,d.qj>=0&&(d.qj+=Y*1E3,this.Yg.V("html5_ssdai_update_timeline_on_start_time_change")&&(d.Qw+=Y*1E3),this.Yy({newApEt:d.qj,newApPrt:d.Qw,acpn:d.cpn}))}}this.tK.Gp=v.startSecs}return O}; g.u.Dt=function(v){return this.XF?!1:!!RqQ(this,v)}; g.u.Pw=function(v){var O=this;if(this.Yg.V("html5_lifa_ignore_multiple_skips")&&this.Ug)return this.Yy({ufs_ad:this.G,ufs_cur:this.Wq,ufs_cont:this.q6().cpn}),!1;this.playback.pauseVideo();var Y=this.playback.getCurrentTime(),S=this.Yg.V("html5_lifa_reset_segment_index_on_skip"),d=S?Y+this.playback.WV():Y,r=this.B.get(this.Wq),b=this.U.get(this.Wq);if(r){this.G=this.Wq;this.X=!1;r.X_=!0;Y=this.playback.getCurrentTime();this.Y={Al:b,isAd:!0,XR:!1,XQ:Y,adCpn:this.Wq,J4:r,L6x:v};this.playback.nz(r,this.q6(), Y,this.playback.getCurrentTime(),!1,!0,v,(0,g.J)());S&&this.playback.GT();if(b==null?0:b.start)this.PA=Y*1E3-b.start;this.j.clear();this.playback.jA();v=this.q6();this.Wq=v.cpn;this.Oo(v.cpn,Y);this.api.publish("serverstitchedvideochange");this.playback.seekTo(d,{seekSource:89,Vg:"lifa_skip"});this.playback.playVideo();this.Ug||(this.Ug=this.events.S(this.api,"progresssync",function(){O.oW(r)})); return!0}this.Yy({skipFail:Y},!0);return!1}; g.u.Yy=function(v,O){((O===void 0?0:O)||this.n1||this.playback.getVideoData().lM())&&this.playback.G0("sdai",v)}; var UTE=0;g.C(I7Q,g.Kj);g.u=I7Q.prototype; g.u.onCueRangeEnter=function(v){var O=v.getId();this.playback.G0("sdai",{oncueEnter:1,cpn:O,start:v.start,end:v.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.nE()||0).toFixed(3)});var Y=this.B.get(O);this.playback.G0("sdai",{enterAdCueRange:1});var S=this.Wq||this.q6().cpn,d;S=(d=this.B.get(S))!=null?d:this.q6();Y&&(Y={If:S,T7:Y,PX:this.playback.getCurrentTime()},this.VX(Y),this.api.V("html5_ssdai_log_ssevt_in_loader")&&qh7(this,O,v.start/1E3,this.playback.getCurrentTime()))}; g.u.onCueRangeExit=function(v){for(var O=this.playback.getCurrentTime()*1E3,Y=v.getId(),S=g.y(this.U.values()),d=S.next();!d.done;d=S.next())if(d=d.value,d.getId()!==Y&&O>=d.start&&O<=d.end)return;if(O=this.B.get(Y))O={If:O,T7:this.q6(),PX:this.playback.getCurrentTime()},this.VX(O),this.api.V("html5_ssdai_log_ssevt_in_loader")&&qh7(this,this.playback.Lq(),v.end/1E3,this.playback.getCurrentTime())}; g.u.VX=function(v){this.G||this.X||SD(this,this.Wq);var O=v.If,Y=v.T7;if(Y.cpn===this.Wq)this.playback.G0("sdai",{igtranssame:1,enter:Y.cpn,exit:O.cpn});else{var S=this.X,d=!!this.G;this.G="";var r=v.PX,b=O.playerType===2?O.qj/1E3+O.videoData.PT:this.q6().videoData.PT;this.api.V("html5_ssdai_enable_media_end_cue_range")&&(d||S||O.playerType!==2?(S||d)&&this.Yy({mecr:0,seek:S,skip:d}):this.api.bu(O.cpn));if(O.playerType===2&&Y.playerType===2)d?this.playback.G0("sdai",{igtransskip:1,enter:Y.cpn,exit:O.cpn, seek:S,skip:this.G}):tG(this,O,Y,b,r,S,d);else{this.Wq=Y.cpn;yHF(this,O.cpn,r);this.Oo(Y.cpn,r);v=v.Fqx;if(O.playerType===1&&Y.playerType===2){this.PA=0;mV(this,Y);var z=i_(this,"c2a",Y);this.playback.G0("sdai",z);this.RJ++}else if(O.playerType===2&&Y.playerType===1){z=O.videoData.PT;this.api.publish("serverstitchedvideochange");var M=i_(this,"a2c");this.playback.G0("sdai",M);this.RJ=0;this.PA=z*1E3;this.N2=b;Kid(this,O.V5)}this.playback.nz(O,Y,b,r,S,d,v)}this.G="";this.X=!1}}; g.u.seekTo=function(v,O,Y,S){v=v===void 0?0:v;O=O===void 0?{}:O;Y=Y===void 0?!1:Y;S=S===void 0?null:S;SD(this,this.Wq);this.playback.getVideoData().lM()&&v<=this.N2?(this.playback.pauseVideo(),this.N2=this.PA=0,nnJ(this,v)):g.Kj.prototype.seekTo.call(this,v,O,Y,S)}; g.u.cK=function(v,O,Y){Y=Y===void 0?!1:Y;var S=vA(this,v,O);if(S){var d=void 0,r=S.V5;if(r){this.playback.G0("sdai",{skipadonsq:O,sts:Y,abid:r,acpn:S.cpn,avid:S.videoData.videoId});Y=this.L.get(r);if(!Y)return;Y=g.y(Y);for(r=Y.next();!r.done;r=Y.next())r=r.value,r.UZ=O,r.y9=v,r.qj>S.qj&&(d=r)}SD(this,this.Wq);this.G=S.cpn;EnQ(this);v=this.playback.getCurrentTime();tG(this,S,d,v,v,!1,!0);this.G="";this.X=!1}}; g.u.fz=function(v,O,Y,S,d,r,b,z,M){S.length>0&&this.playback.G0("sdai",{onssinfo:1,sq:v,start:O.toFixed(3),cpns:S.join(","),ds:d.join(","),isVideo:b?1:0});M&&this.FO.fz(v,b,z,M);if(b){if(S.length&&d.length)for(this.G&&this.G===S[0]&&this.playback.G0("sdai",{skipfail:1,sq:v,acpn:this.G}),v=O+this.WV(),Y=0;Y=0&&this.Z.splice(v,1)};g.C(Gln,g.X);g.u=Gln.prototype;g.u.onCueRangeEnter=function(v){if(this.Y===this.app.uc()){var O=this.Z.get(v);O?Nmn(this,O.target,O.eI,v):this.OE("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:v.toString()})}else if(O=this.U.find(function(d){return d.oY.Al===v})){var Y=O.oY,S=Y.target; Y=Y.eI;S?Nmn(this,S,Y,v):Hki(this,O.Qw,Y,v)}}; g.u.onQueuedVideoLoaded=function(){var v=this.L;oo(this);if(v){if(!bf(this,v)){var O=this.app.uc();this.OE("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:O==null?void 0:O.getVideoData().clientPlaybackNonce,ccpn:""+v.playerVars.cpn})}this.app.uc().addCueRange(v.oY.Al)}}; g.u.seekTo=function(v,O,Y,S){v=v===void 0?0:v;O=O===void 0?{}:O;S=S===void 0?null:S;if(Y===void 0?0:Y)PRc(this,v,O);else{Y=this.app.uc()||null;var d=Y===this.B?this.C:null;jD(this,!1);this.tK=v;this.j=O;S!=null&&this.X.start(S);Y&&(this.C=d||Y.getPlayerState(),Y.QD(),this.B=Y)}}; g.u.Uz=function(v){g.UO(v,128)&&dpd(this)}; g.u.isManifestless=function(){return b8(this.Y.getVideoData())}; g.u.cW=function(){jD(this,!1);b1c(this);g.X.prototype.cW.call(this)}; g.u.OE=function(v,O){this.Y.OE(new lJ(v,O))}; var ikm=0;var oqJ="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_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.C(WA,g.X);WA.prototype.J5=function(v){if(v)return this.U.get(v)}; WA.prototype.cW=function(){this.Y.removeAll();this.U.removeAll();g.X.prototype.cW.call(this)};g.Z4L=My(function(){var v=window.AudioContext||window.webkitAudioContext;try{return new v}catch(O){return O.name}});g.C(gqm,g.K);g.u=gqm.prototype;g.u.Na=function(){g.ji(this.element,g.Bm.apply(0,arguments))}; g.u.FN=function(){this.Uq&&(this.Uq.removeEventListener("focus",this.vR),g.Ov(this.Uq),this.Uq=null)}; g.u.AC=function(){this.vW();var v=this.app.D();v.V_||this.Na("tag-pool-enabled");v.C&&this.Na(g.Gm.HOUSE_BRAND);v.playerStyle==="gvn"&&(this.Na("ytp-gvn"),this.element.style.backgroundColor="transparent");v.R1&&(this.HX=g.bj("yt-dom-content-change",this.resize,this));this.S(window,"orientationchange",this.resize,this);this.S(window,"resize",this.resize,this)}; g.u.rY=function(v){g.F_(this.app.D());this.zq=!v;zd(this)}; g.u.resize=function(){if(this.Uq){var v=this.Q$();if(!v.isEmpty()){var O=!g.Ru(v,this.Ci.getSize()),Y=$pl(this);O&&(this.Ci.width=v.width,this.Ci.height=v.height);v=this.app.D();(Y||O||this.Ep||v.R1)&&this.app.r8.publish("resize",this.getPlayerSize())}}}; g.u.xp=function(v,O){this.updateVideoData(O)}; g.u.updateVideoData=function(v){if(this.Uq){var O=this.app.D();G2&&(this.Uq.setAttribute("x-webkit-airplay","allow"),v.title?this.Uq.setAttribute("title",v.title):this.Uq.removeAttribute("title"));this.Uq.setAttribute("controlslist","nodownload");O.Wb&&v.videoId&&(this.Uq.poster=v.JE("default.jpg"))}O=g.fh(v,"yt:bgcolor");this.gJ.style.backgroundColor=O?O:"";this.nO=jQ(g.fh(v,"yt:stretch"));this.YF=jQ(g.fh(v,"yt:crop"),!0);g.gr(this.element,"ytp-dni",v.KE);this.resize()}; g.u.setGlobalCrop=function(v){this.PG=jQ(v,!0);this.resize()}; g.u.setCenterCrop=function(v){this.Ao=v;this.resize()}; g.u.OY=function(){}; g.u.getPlayerSize=function(){var v=this.app.D(),O=this.app.r8.isFullscreen(),Y=v.externalFullscreen&&g.aP(v);if(O&&KS()&&!Y)return new g.hc(window.outerWidth,window.outerHeight);Y=!isNaN(this.lr.width)&&!isNaN(this.lr.height);var S=this.app.D().V("kevlar_player_enable_squeezeback_fullscreen_sizing");if(O&&!Y&&S)return new g.hc(this.element.clientWidth,this.element.clientHeight);if(O||v.q$){if(window.matchMedia){v="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.Yz&&this.Yz.media=== v||(this.Yz=window.matchMedia(v));var d=this.Yz&&this.Yz.matches}if(d)return new g.hc(window.innerWidth,window.innerHeight)}else if(Y)return this.lr.clone();return new g.hc(this.element.clientWidth,this.element.clientHeight)}; g.u.Q$=function(){var v=this.app.D().V("enable_desktop_player_underlay"),O=this.getPlayerSize(),Y=g.Vq(this.app.D().experiments,"player_underlay_min_player_width");return v&&this.hV&&O.width>Y?(v=g.Vq(this.app.D().experiments,"player_underlay_video_width_fraction"),new g.hc(Math.min(O.height*this.getVideoAspectRatio(),O.width*v),Math.min(O.height,O.width*v/this.getVideoAspectRatio()))):O}; g.u.getVideoAspectRatio=function(){return isNaN(this.nO)?Vwg(this):this.nO}; g.u.getVideoContentRect=function(v){var O=this.Q$();v=ADi(this,O,this.getVideoAspectRatio(),v);return new g.cL((O.width-v.width)/2,(O.height-v.height)/2,v.width,v.height)}; g.u.tp=function(v){this.hV=v;this.resize()}; g.u.Sz=function(){return this.P5}; g.u.onMutedAutoplayChange=function(){zd(this)}; g.u.setInternalSize=function(v){g.Ru(this.lr,v)||(this.lr=v,this.resize())}; g.u.cW=function(){this.HX&&g.o7(this.HX);this.FN();g.K.prototype.cW.call(this)};g.u=Upm.prototype;g.u.click=function(v,O){this.elements.has(v);this.Y.has(v);var Y=g.TS();Y&&v.visualElement&&g.zT(Y,v.visualElement,O)}; g.u.createClientVe=function(v,O,Y,S){var d=this;S=S===void 0?!1:S;this.elements.has(v);this.elements.add(v);Y=yin(Y);v.visualElement=Y;var r=g.TS(),b=g.pP();r&&b&&(g.uF("combine_ve_grafts")?hZ(l4(),Y,b):g.N7(g.i5)(void 0,r,b,Y));O.addOnDisposeCallback(function(){d.elements.has(v)&&d.destroyVe(v)}); S&&this.U.add(v)}; g.u.createServerVe=function(v,O,Y){var S=this;Y=Y===void 0?!1:Y;this.elements.has(v);this.elements.add(v);O.addOnDisposeCallback(function(){S.destroyVe(v)}); Y&&this.U.add(v)}; g.u.destroyVe=function(v){this.elements.has(v);this.elements.delete(v);this.G.delete(v);this.Y.delete(v);this.U.delete(v)}; g.u.Po=function(v,O){this.clientPlaybackNonce!==O&&(this.clientPlaybackNonce=O,FS(l4(),v),cDE(this))}; g.u.setTrackingParams=function(v,O){this.elements.has(v);O&&(v.visualElement=g.am(O))}; g.u.t9=function(v,O,Y){this.elements.has(v);O?this.Y.add(v):this.Y.delete(v);var S=g.TS(),d=v.visualElement;this.U.has(v)?S&&d&&(O?g.jF(S,[d]):g.WH(S,[d])):O&&!this.G.has(v)&&(S&&d&&g.oF(S,d,void 0,Y),this.G.add(v))}; g.u.hasVe=function(v){return this.elements.has(v)};g.C(g.MI,g.X);g.MI.create=function(v,O,Y,S){try{var d=typeof v==="string"?v:"player"+g.OJ(v),r=aC[d];if(r){try{r.dispose()}catch(z){g.LP(z)}aC[d]=null}var b=new g.MI(v,O,Y,S);b.addOnDisposeCallback(function(){aC[d]=null;b.F0&&b.F0()}); return aC[d]=b}catch(z){throw g.LP(z),(z&&z instanceof Error?z:Error(String(z))).stack;}}; g.u=g.MI.prototype;g.u.R4=function(){return this.visibility}; g.u.X5=function(v){var O=this.cT();if(v!==O){v.getVideoData().autonavState=O.getVideoData().autonavState;O.hf(this.Sj,this);var Y=O.getPlaybackRate();O.dispose();this.J9.X5(v);v.setPlaybackRate(Y);v.pU(this.Sj,this);T9E(this)}}; g.u.Rm=function(){this.ZZ||(this.ZZ=g.ju(Rh(),pv$()));return this.ZZ}; g.u.FN=function(v){if(this.mediaElement){this.L0&&(this.events.g2(this.L0),this.L0=null);g.hi(this.A_);this.uc().FN(!0,!1,v);this.template.FN();try{this.V("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Bw()}catch(O){g.Br(O)}this.mediaElement=null}}; g.u.P1=function(v,O,Y){Y=Y===void 0?!1:Y;if(v!==this.uc()){this.logger.debug(function(){return"start set presenting player, type "+v.getPlayerType()+", vid "+v.getVideoData().videoId}); var S=null;Y||(Y=this.uc(),S=Y.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),Cp(this.GO,3),BA(this,"cuerangesremoved",Y.wE()),this.UQ&&!v.isGapless()&&Y.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),Y=v.eE()&&Y.eE(),this.Zg.Jf("iv_s"),Z1d(this,Y));v.getPlayerType()===1&&this.X5(v);B9c(this,v);this.J9.P1(v);this.mediaElement&&v.setMediaElement(this.mediaElement);v.pU(this.Zd,this);v.Hy()?sXE(this,"setPresenting",!1):(this.xp("newdata",v,v.getVideoData()), S&&!g.Ms(S,v.getPlayerState())&&this.rb(new g.$8(v.getPlayerState(),S)),O=O&&this.V("html5_player_preload_ad_fix")&&v.getPlayerType()===1,v.oB()&&!O&&this.xp("dataloaded",v,v.getVideoData()),(O=(O=v.getVideoData().U)&&O.video)&&this.r8.oD("onPlaybackQualityChange",O.quality),BA(this,"cuerangesadded",v.wE()),O=v.getPlayerState(),g.G(O,2)?Ldl(this):g.G(O,8)?v.playVideo():v.Hd()&&v.pauseVideo(),O=this.cT(),v.getPlayerType()===2&&(v.getVideoData().fH=O.getVideoData().clientPlaybackNonce),v.getPlayerType()!== 2||this.b6()||(S=v.getVideoData(),O.qU(S.clientPlaybackNonce,S.w4||"",S.breakType||0,S.aI,S.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.u.QW=function(){if(this.cT()!==this.uc()){var v=this.uc();this.logger.debug(function(){return"release presenting player, type "+v.getPlayerType()+", vid "+v.getVideoData().videoId}); this.P1(this.cT())}}; g.u.o4=function(){return this.J9}; g.u.lk=function(v){return this.J9.lk(v)}; g.u.Am=function(v){return this.J9.Am(v)}; g.u.cT=function(){return this.J9.cT()}; g.u.uc=function(){return this.J9.uc()}; g.u.Bf=vm(50);g.u.Iud=function(){UH(this)||(this.logger.debug("application playback ready"),this.OZ(5))}; g.u.CMc=function(){if(!UH(this)){this.logger.debug("playback ready");oBF(this);var v=this.uc(),O=v.getPlayerState();v.Hd()?this.pauseVideo():O.isOrWillBePlaying()&&this.playVideo()}}; g.u.canPlayType=function(v){return eX(v)}; g.u.D=function(){return this.Yg}; g.u.getVideoData=function(){return this.uc().getVideoData()}; g.u.Qa=vm(19);g.u.pP=function(){return this.cT().getVideoData()}; g.u.getVideoLoadedFraction=function(v){return(v=this.lk({playerType:v}))?v.getVideoLoadedFraction():this.J9.Y.getVideoLoadedFraction()}; g.u.j4=function(){return this.template}; g.u.QC=function(){return this.GO}; g.u.pS=function(){return this.Zg}; g.u.zT=function(v){var O=this.lk({playerType:1});O&&O.O3(v)}; g.u.I2=function(){var v=this.GO.I2();this.r8.publish("videoStatsPingCreated",v);return v}; g.u.getVolume=function(){return Math.round(this.r8.getVolume())}; g.u.isMuted=function(){return this.r8.isMuted()}; g.u.iy=function(){if(this.cT()===this.uc()&&this.Nj)return this.Nj.postId}; g.u.kO3=function(){var v=this;this.V("use_rta_for_player")||(g.lx(this.Yg)?g.vO(this.Yg,g.ez(this.getVideoData())).then(function(O){eE(Rh(),O);nOg(v.getVideoData(),v.Yg,v.Rm())}):nOg(this.getVideoData(),this.Yg,this.Rm()))}; g.u.VD=function(v){this.r8.publish("poTokenVideoBindingChange",v)}; g.u.Os=function(v){this.r8.publish("d6de4videobindingchange",v)}; g.u.Bm=function(){this.Jt&&this.Jt.Bm()}; g.u.NB=function(v){this.Jt=v}; g.u.sN=function(v){if(v===1){this.Zg.tick("vr");var O=this.uc();O.YV();C_J(this.Zg,O.getVideoData(),bt7(this));rNl(this.GO)}O=this.Yg;if(DS(O)&&O.X||g.RP(O)){var Y;(((Y=this.uc().getVideoData())==null?0:Y.enableServerStitchedDai)||!this.b6())&&this.r8.oD("onAdStateChange",v)}}; g.u.setLoopVideo=function(v){var O=this.uc();O===this.cT()&&O.IJ()!==v&&(O.setLoop(v),this.r8.PW("onLoopChange",v))}; g.u.getLoopVideo=function(){return this.uc().IJ()}; g.u.setLoopRange=function(v){var O=!1;!!this.Nj!==!!v?O=!0:this.Nj&&v&&(O=this.Nj.startTimeMs!==v.startTimeMs||this.Nj.endTimeMs!==v.endTimeMs||this.Nj.postId!==v.postId||this.Nj.type!==v.type);if(O){O=this.uc();HO(O.getVideoData())&&O.G0("slr",{et:(v==null?void 0:v.endTimeMs)||-1});O=this.cT();O.oF("applooprange");if(v){var Y=new g.dh(v.startTimeMs,v.endTimeMs,{id:"looprange",namespace:"applooprange"});O.addCueRange(Y)}else{this.pP().clipConfig=void 0;var S;((Y=this.Nj)==null?void 0:Y.type)!=="repeatChapter"|| isNaN(Number((S=this.Nj)==null?void 0:S.loopCount))||(Y={loopCount:String(this.Nj.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.z2("repeatChapterLoopEvent",Y))}this.Nj=v;this.r8.PW("onLoopRangeChange",v||void 0);this.cT()===this.uc()&&(this.LY(),O.L3())}}; g.u.getLoopRange=function(){return this.Nj}; g.u.LY=function(){var v="",O=this.cT();this.Nj?O!==this.uc()?v="pnea":PD$(this,O.getCurrentTime())&&(this.Nj.loopCount=0,v="ilr"):v="nlr";var Y=this.uc();if(HO(Y.getVideoData()))if(this.V("html5_gapless_log_loop_range_info")){var S,d;Y.G0("slrre",{rej:v,ct:O.getCurrentTime(),lst:(S=this.Nj)==null?void 0:S.startTimeMs,let:(d=this.Nj)==null?void 0:d.endTimeMs})}else Y.G0("slrre",{});v||i13(this)}; g.u.setPlaybackRate=function(v,O){if(!isNaN(v)){v=Rc3(this,v);var Y=this.cT();Y.getPlaybackRate()!==v&&(Y.setPlaybackRate(v),O&&!this.Yg.B&&g.QD("yt-player-playback-rate",v),this.r8.oD("onPlaybackRateChange",v))}}; g.u.getCurrentTime=function(v,O){O=O===void 0?!0:O;var Y=this.J9.hF;if(Y)return Y.getCurrentTime();var S=v===2&&this.getVideoData().enableServerStitchedDai;Y=null;S?Y=this.uc():Y=this.lk({playerType:v});return Y?S&&this.jp?(v=this.J9.C)?v.getCurrentTime(O):Y.getCurrentTime():O?(O=kP(this,Y),FX(this,O.getCurrentTime(),O)):Y.getCurrentTime():this.J9.Y.getCurrentTime()}; g.u.A2=function(){var v=this.lk({playerType:void 0});if(!v)return this.J9.Y.A2();v=kP(this,v);return FX(this,v.A2(),v)}; g.u.getDuration=function(v,O){O=O===void 0?!0:O;var Y=this.J9.hF;if(Y)return Y.getDuration();Y=this.getVideoData();var S=v===2&&Y.enableServerStitchedDai,d=null;S?d=this.uc():d=this.lk({playerType:v});if(!d)return this.J9.Y.getDuration();if(Y.hasProgressBarBoundaries()&&!S){var r,b=Number((r=Y.progressBarStartPosition)==null?void 0:r.utcTimeMillis),z;r=Number((z=Y.progressBarEndPosition)==null?void 0:z.utcTimeMillis);if(!isNaN(b)&&!isNaN(r))return(r-b)/1E3}if(HO(Y)&&!Y.isLivePlayback)return Td(this, v);if(O)return v=$P(this,d),FX(this,v.getDuration(),v);if(S&&this.jp){if(this.V("html5_huli_ssdai_use_playback_state"))return v=this.J9,v=v.Z===v.C?v.Z:null,(v==null?void 0:v.getDuration())||0;var M;return((M=this.J9.C)==null?void 0:M.getDuration())||0}return d.getDuration()}; g.u.Hq=function(v){var O=this.lk({playerType:v});return O?this.b6(O)?(O=$P(this,O),O.Hq()-O.getCurrentTime()+this.getCurrentTime(v)):O.Hq():this.J9.Y.Hq()}; g.u.addPlayerResponseForAssociation=function(){}; g.u.finishSegmentByCpn=function(){return[]}; g.u.AC=function(){this.template.AC();var v=this.r8;v.state.element=this.template.element;var O=v.state.element,Y;for(Y in v.state.Y)v.state.Y.hasOwnProperty(Y)&&(O[Y]=v.state.Y[Y]);(v=Z71(this.template.element))&&this.events.S(this.template,v,this.onFullscreenChange)}; g.u.getDebugText=function(v){var O=this.cT().Yu(v),Y=this.uc();if(Y!==this.cT()){Y=Y.Yu(v);for(var S=g.y(Object.keys(Y)),d=S.next();!d.done;d=S.next())d=d.value,O["ad"+d]=Y[d];if(v){Y=O;S={};if(d=wn(document,"movie_player"))S.bounds=d.getBoundingClientRect(),S["class"]=d.className;d={};var r=g.Jc("video-ads");r?(VSw(r,d),d.html=r.outerHTML):d.missing=1;r={};var b=g.Jc("videoAdUiSkipContainer"),z=g.Jc("ytp-ad-skip-button-container"),M=g.Jc("ytp-skip-ad-button"),V=b||z||M;V?(VSw(V,r),r.ima=b?1:0,r.bulleit= z?1:0,r.component=M?1:0):r.missing=1;S=JSON.stringify({player:S,videoAds:d,skipButton:r});Y.ad_skipBtnDbgInfo=S}}v&&this.mediaElement&&(O["0sz"]=""+(+eR(this.mediaElement.getSize())===0),O.op=this.mediaElement.er("opacity"),Y=this.mediaElement.EP().y+this.mediaElement.getSize().height,O.yof=""+(+Y<=0),O.dis=this.mediaElement.er("display"));v&&((v=(0,g.VE)())&&(O.gpu=v),(v=this.Yg.playerStyle)&&(O.ps=v),this.Yg.f1&&(O.webview=1));O.debug_playbackQuality=this.r8.getPlaybackQuality(1);O.debug_date=(new Date).toString(); O.origin=window.origin;O.timestamp=Date.now();delete O.uga;delete O.q;return JSON.stringify(O,null,2)}; g.u.getFeedbackProductData=function(){var v={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.D().experiments.experimentIds.join(", "),player_release:W[49]},O=this.getPlayerStateObject().ib;O&&(v.player_error_code=O.errorCode,v.player_error_details=JSON.stringify(O.errorDetail));return v}; g.u.getPresentingPlayerType=function(v){if(this.appState===1)return 1;if(UH(this))return 3;var O;return v&&((O=this.jp)==null?0:O.gh(this.getCurrentTime()))?2:this.uc().getPlayerType()}; g.u.Bt=function(){return!1}; g.u.getPlayerStateObject=function(v){var O=this.J9.hF;return O?O.getPlayerState():this.lk({playerType:v}).getPlayerState()}; g.u.getAppState=function(){return this.appState}; g.u.Sqx=function(v){switch(v.type){case "loadedmetadata":this.Z5.start();v=g.y(this.Rp);for(var O=v.next();!O.done;O=v.next())O=O.value,d4w(this,O.id,O.VNW,O.gW1,void 0,!1);this.Rp=[];break;case "loadstart":this.Zg.Jf("gv");break;case "progress":case "timeupdate":MO(v.target.s_())>=2&&this.Zg.Jf("l2s");break;case "playing":g.mM&&this.Z5.start();if(g.lx(this.Yg))v=!1;else{O=g.xe(this.QC());v=this.mediaElement.er("display")==="none"||eR(this.mediaElement.getSize())===0;var Y=sH(this.template),S=this.uc().getVideoData(), d=g.qB(this.Yg);S=NC(S);O=!Y||O||d||S||this.Yg.n1;v=v&&!O}v&&(v=this.uc(),v.X1(),this.getVideoData().Te||(this.getVideoData().Te=1,this.Xl(),v.playVideo()))}}; g.u.dXx=function(v){this.r8.zf("onLoadProgress",v)}; g.u.A9s=function(){this.r8.publish("playbackstalledatstart")}; g.u.VO8=function(v,O){this.r8.publish("sabrCaptionsDataLoaded",v,O)}; g.u.ems=function(v){this.uc().bF(v)}; g.u.clx=function(v){this.uc().YD(v)}; g.u.r9s=function(v){v=kP(this,this.uc());v=FX(this,v.getCurrentTime(),v);this.r8.oD("onVideoProgress",v);this.Yg.d6&&vBQ(this,this.visibility.lq())&&this.pauseVideo()}; g.u.MO3=function(){this.r8.oD("onAutoplayBlocked");var v=this.uc().getVideoData();v&&(v.yd=!0);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.aP(this.Yg)&&(v={autoplayBrowserPolicy:i4(),autoplayIntended:m2(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.z2("embedsAutoplayStatusChanged",v))}; g.u.hi8=function(){this.r8.publish("progresssync")}; g.u.N2s=function(){this.r8.zf("onPlaybackPauseAtStart")}; g.u.zxs=function(v){if(this.getPresentingPlayerType()===1){g.UO(v,1)&&!g.G(v.state,64)&&this.pP().isLivePlayback&&this.cT().isAtLiveHead()&&this.r8.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.UO(v,2)){if(this.Nj&&this.Nj.endTimeMs>=(this.getDuration()-1)*1E3){i13(this);return}Ldl(this)}if(g.G(v.state,128)){var O=v.state;this.cancelPlayback(5);O=O.ib;JSON.stringify({errorData:O,debugInfo:this.getDebugText(!0)});this.r8.oD("onError",Os3(O.errorCode));this.r8.zf("onDetailedError",{errorCode:O.errorCode, errorDetail:O.errorDetail,message:O.errorMessage,messageKey:O.y0,cpn:O.cpn});(0,g.J)()-this.Yg.iO>6048E5&&this.r8.zf("onReloadRequired")}O={};if(v.state.isPlaying()&&!v.state.isBuffering()&&!PT("pbresume","ad_to_video")&&PT("_start","ad_to_video")){var Y=this.getVideoData();O.clientPlaybackNonce=Y.clientPlaybackNonce;Y.videoId&&(O.videoId=Y.videoId);g.J_(O,"ad_to_video");nw("pbresume",void 0,"ad_to_video");rNl(this.GO)}this.r8.publish("applicationplayerstatechange",v)}}; g.u.rb=function(v){this.J9.hF||this.r8.publish("presentingplayerstatechange",v)}; g.u.Uz=function(v){fv(this,Am(v.state));g.G(v.state,1024)&&this.r8.isMutedByMutedAutoplay()&&(xP(this,{muted:!1,volume:this.KS.volume},!1),pv(this,!1))}; g.u.ngO=function(v,O){v==="newdata"&&T9E(this);this.r8.publish("applicationvideodatachange",v,O)}; g.u.Gf4=function(v,O){this.V("html5_afmt_change_update_volume")&&oBF(this);this.r8.zf("onPlaybackAudioChange",this.r8.getAudioTrack().Dg.name);this.r8.publish("internalaudioformatchange",this.r8.getAudioTrack().Dg.id,O)}; g.u.XD3=function(v){var O=this.uc().getVideoData();v===O&&this.r8.oD("onPlaybackQualityChange",v.U.video.quality)}; g.u.XY=function(){var v=this.J9.G[2]||null;v&&(v=v.getVideoData(),this.uc().G0("ssdai",{cleanaply:1,acpn:v==null?void 0:v.clientPlaybackNonce,avid:v.videoId,isDai:this.pP().enableServerStitchedDai?1:0}),delete this.J9.G[2])}; g.u.Wag=function(v,O){this.xp(v,this.uc(),O)}; g.u.xp=function(v,O,Y){this.logger.debug(function(){return"on video data change "+v+", player type "+O.getPlayerType()+", vid "+Y.videoId}); this.Yg.XL()&&O.G0("vdc",{type:v,vid:Y.videoId||"",cpn:Y.clientPlaybackNonce||""});O===this.cT()&&(this.Yg.N7=Y.oauthToken);O===this.cT()&&(this.getVideoData().enableServerStitchedDai&&!this.jp?(this.cT().G0("sdai",{initSstm:1}),this.jp=this.V("html5_enable_ssdai_transition_with_only_enter_cuerange")||this.V("html5_ssdai_log_ssevt_in_loader")?new I7Q(this.r8,this.Yg,this.cT(),this):new g.Kj(this.r8,this.Yg,this.cT(),this)):!this.getVideoData().enableServerStitchedDai&&this.jp&&(this.jp.dispose(), this.jp=null,dTl(this.J9)));if(v==="newdata")this.logger.debug("new video data, destroy modules"),Cp(this.GO,2),this.r8.publish("videoplayerreset",O);else{if(!this.mediaElement)return;v==="dataloaded"&&(this.cT()===this.uc()?(BD(Y.Qx,Y.l$),qwn(this)):w9d(this));O.getPlayerType()===1&&(this.Yg.FO&&MSg(this),this.getVideoData().isLivePlayback&&!this.Yg.FC&&this.Mo("html5.unsupportedlive",2,"DEVICE_FALLBACK"),Y.isLoaded()&&((zLm(Y)||this.getVideoData().V8)&&this.r8.publish("legacyadtrackingpingchange", this.getVideoData()),Y.hasProgressBarBoundaries()&&twg(this)));this.r8.publish("videodatachange",v,Y,O.getPlayerType())}this.r8.oD("onVideoDataChange",{type:v,playertype:O.getPlayerType()});this.LY();var S=Y.Ns;S?this.O$.Po(S,Y.clientPlaybackNonce):cDE(this.O$)}; g.u.OC=function(){uf(this,null);this.r8.zf("onPlaylistUpdate")}; g.u.i_0=function(v){delete this.YL[v.getId()];this.cT().removeCueRange(v);a:{v=this.getVideoData();var O,Y,S,d,r,b,z,M,V,A,f=((O=v.N3)==null?void 0:(Y=O.contents)==null?void 0:(S=Y.singleColumnWatchNextResults)==null?void 0:(d=S.autoplay)==null?void 0:(r=d.autoplay)==null?void 0:r.sets)||((b=v.N3)==null?void 0:(z=b.contents)==null?void 0:(M=z.twoColumnWatchNextResults)==null?void 0:(V=M.autoplay)==null?void 0:(A=V.autoplay)==null?void 0:A.sets);if(f)for(O=g.y(f),Y=O.next();!Y.done;Y=O.next())if(Y= Y.value,d=S=void 0,Y=Y.autoplayVideo||((S=Y.autoplayVideoRenderer)==null?void 0:(d=S.autoplayEndpointRenderer)==null?void 0:d.endpoint),S=g.q(Y,g.Gj),r=d=void 0,Y!=null&&((d=S)==null?void 0:d.videoId)===v.videoId&&((r=S)==null?0:r.continuePlayback)){v=Y;break a}v=null}(O=g.q(v,g.Gj))&&this.r8.PW("onPlayVideo",{sessionData:{autonav:"1",itct:v==null?void 0:v.clickTrackingParams},videoId:O.videoId,watchEndpoint:O})}; g.u.OZ=function(v){var O=this;v!==this.appState&&(this.logger.debug(function(){return"app state change "+O.appState+" -> "+v}),v===2&&this.getPresentingPlayerType()===1&&(fv(this,-1),fv(this,5)),this.appState=v,this.r8.publish("appstatechange",v))}; g.u.Mo=function(v,O,Y,S,d){this.cT().g4(v,O,Y,S,d)}; g.u.yB=function(v,O){this.cT().handleError(new lJ(v,O))}; g.u.isAtLiveHead=function(v,O){O=O===void 0?!1:O;var Y=this.lk({playerType:v});if(!Y)return this.J9.Y.isAtLiveHead();v=$P(this,Y);Y=kP(this,Y);return v!==Y?v.isAtLiveHead(FX(this,Y.getCurrentTime(),Y),!0):v.isAtLiveHead(void 0,O)}; g.u.S_=function(){var v=this.lk({playerType:void 0});return v?$P(this,v).S_():this.J9.Y.S_()}; g.u.seekTo=function(v,O,Y,S,d){O=O!==!1;if(S=this.lk({playerType:S}))this.appState===2&&y3(this),this.b6(S)?hN(this)?this.jp.seekTo(v,{seekSource:d},O,Y):this.f_.seekTo(v,{seekSource:d},O,Y):S.seekTo(v,{ZL:!O,Um:Y,Vg:"application",seekSource:d})}; g.u.seekBy=function(v,O,Y,S){this.seekTo(this.getCurrentTime()+v,O,Y,S)}; g.u.Fax=function(){this.r8.oD("SEEK_COMPLETE")}; g.u.O_8=function(){this.r8.PW("onAbnormalityDetected")}; g.u.Lac=function(v){this.r8.PW("onSnackbarMessage",v)}; g.u.vux=function(v){var O=this.uc(),Y=O.getVideoData();if(this.appState===1||this.appState===2)Y.startSeconds=v;this.appState===2?g.G(O.getPlayerState(),512)||y3(this):this.r8.oD("SEEK_TO",v)}; g.u.tOW=function(){this.r8.publish("airplayactivechange");this.Yg.V("html5_external_airplay_events")&&this.r8.zf("onAirPlayActiveChange",this.r8.YW())}; g.u.UXW=function(){this.r8.publish("airplayavailabilitychange");this.Yg.V("html5_external_airplay_events")&&this.r8.zf("onAirPlayAvailabilityChange",this.r8.AU())}; g.u.showAirplayPicker=function(){this.uc().rS()}; g.u.pDx=function(){this.r8.publish("beginseeking")}; g.u.ei1=function(){this.r8.publish("endseeking")}; g.u.getStoryboardFormat=function(v){return(v=this.lk({playerType:v}))?$P(this,v).getStoryboardFormat():this.J9.Y.getStoryboardFormat()}; g.u.HE=function(v){return(v=this.lk({playerType:v}))?$P(this,v).getVideoData().HE():this.J9.Y.HE()}; g.u.b6=function(v){v=(v||this.uc()).getVideoData();if(hN(this))v=v===this.jp.playback.getVideoData();else a:{var O=this.f_;if(v===O.Y.getVideoData()&&O.U.length)v=!0;else{O=g.y(O.U);for(var Y=O.next();!Y.done;Y=O.next())if(v.PD===Y.value.PD){v=!0;break a}v=!1}}return v}; g.u.aU=function(v,O,Y,S,d,r,b,z){this.logger.debug(function(){return"Adding video to timeline id="+v.video_id+"\n lengthMs="+S+" enterTimeMs="+d}); var M="",V=hN(this);this.uc().G0("appattl",{sstm:this.jp?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:V});M=V?uEE(this.jp,v,O,Y,S,d,r,b,z):DTQ(this.f_,v,Y,S,d,r);this.logger.debug(function(){return"Video added to timeline id="+v.video_id+" timelinePlaybackId="+M}); return M}; g.u.Va=function(v,O,Y,S,d,r,b,z){if(hN(this)){var M=uEE(this.jp,v,O,Y,S,d,r,b,z);this.logger.debug(function(){return"Remaining video added to timeline id="+v.video_id+" timelinePlaybackId="+M})}return""}; g.u.u1=function(v){var O;(O=this.jp)==null||O.u1(v)}; g.u.Qo=function(v,O){v=v===void 0?-1:v;O=O===void 0?Infinity:O;hN(this)||b1c(this.f_,v,O)}; g.u.tQ=function(v,O,Y){if(hN(this)){var S=this.jp,d=S.PT.get(v);d?(Y===void 0&&(Y=d.Qw),pF3(S,d,O,Y)):S.fq("Invalid_timelinePlaybackId_"+v+"_specified")}else{S=this.f_;d=null;for(var r=g.y(S.U),b=r.next();!b.done;b=r.next())if(b=b.value,b.PD===v){d=b;break}d?(Y===void 0&&(Y=d.Qw),rDm(S,d,O,Y)):du(S,"InvalidTimelinePlaybackId timelinePlaybackId="+v)}}; g.u.enqueueVideoByPlayerVars=function(v,O,Y,S){Y=Y===void 0?Infinity:Y;S=S===void 0?"":S;this.b6();v=new g.w2(this.Yg,v);S&&(v.PD=S);Dpc(this,v,O,Y)}; g.u.queueNextVideo=function(v,O,Y,S,d){Y=Y===void 0?NaN:Y;v=this.preloadVideoByPlayerVars(v,O===void 0?1:O,Y,S===void 0?"":S,d===void 0?"":d);O=this.uc();v&&(this.V("html5_check_queue_on_data_loaded")?this.D().supportsGaplessShorts()&&O.getVideoData().L&&(Y=this.Vv,S=this.UQ.L,Y.B!==v&&(Y.U=O,Y.B=v,Y.G=1,Y.Y=v.getVideoData(),Y.Z=S,Y.Y.isLoaded()?Y.C():Y.Y.subscribe("dataloaded",Y.C,Y))):(Y=q11(O,v,this.UQ.L),Y!=null?(O.G0("sgap",Y),O.getVideoData().L&&O.xT(!1)):(v=v.getVideoData(),O=this.Vv,O.Y!== v&&(O.Y=v,O.G=1,v.isLoaded()?O.L():O.Y.subscribe("dataloaded",O.L,O)))))}; g.u.nt=function(v,O,Y,S){var d=this;Y=Y===void 0?0:Y;S=S===void 0?0:S;$P(this,this.uc()).ow();vng(this.UQ,v,O,Y,S).then(function(){d.r8.zf("onQueuedVideoLoaded")},function(){})}; g.u.JF=function(){return this.UQ.JF()}; g.u.LO=function(v){var O=this.UQ.Y;return O?O.fm(v):!1}; g.u.clearQueue=function(v,O){v=v===void 0?!1:v;O=O===void 0?!1:O;this.logger.debug("Clearing queue");this.UQ.clearQueue(v,O)}; g.u.loadVideoByPlayerVars=function(v,O,Y,S,d,r){O=O===void 0?1:O;var b=this.cT();if(O===2&&this.pP().enableServerStitchedDai&&b&&!b.QP())return b.G0("lvonss",{vid:(v==null?void 0:v.videoId)||"",ptype:O}),!1;var z=!1;b=new g.w2(this.Yg,v);b.n1=r;g.iq(this.Yg)&&!b.Tn&&jK(this.Zg);var M;r=this.Zg;var V=(M=b.j)!=null?M:"";r.timerName=V;this.Zg.cB("pl_i");this.V("web_player_early_cpn")&&b.clientPlaybackNonce&&this.Zg.infoGel({clientPlaybackNonce:b.clientPlaybackNonce});X8Q(b).supportsVp9Encoding===!1&& this.uc().G0("noVp9enc",{});if(this.D().supportsGaplessShorts()){M=Yh$(this.UQ,b,O);if(M==null){fv(this,-1);this.Yg.XL()&&this.Yg.V("html5_short_gapless_unlisten_after_seek")&&this.uc().G0("sgap",{ul:1});v=this.UQ;v.app.D().V("html5_gapless_new_slr")?lf(v.app,"gaplessshortslooprange"):v.app.setLoopRange(null);v.app.getVideoData().v6=!0;var A;(A=v.Y)==null||A.gY();var f;(f=v.Y)==null||f.rq();Y={Vg:"gapless_to_next_video",seekSource:60};S=g.Vq(v.app.D().experiments,"html5_gapless_seek_offset");var k; (k=v.app.uc())==null||k.seekTo(Ok1(v)+S,Y);if(!v.app.getPlayerStateObject(O).isPlaying()){var U;(U=v.app.uc())==null||U.playVideo(!0)}if(v.app.D().V("html5_short_gapless_unlisten_after_seek")){var c;(c=v.app.uc())==null||c.WZ()}v.C();return!0}k=this.V("html5_shorts_gapless_preload_fallback");U=this.UQ.Y;k&&U&&!U.vW()&&(c=U.getVideoData(),c=this.Yg.V("html5_autonav_autoplay_in_preload_key")?eD(this,O,c):EH(this,O,c.videoId,c.PD),this.J9.B.set(c,U,3600));this.UQ.clearQueue(k);this.uc().G0("sgap",{f:M})}if(d){for(;b.EY.length&& b.EY[0].isExpired();)b.EY.shift();z=b.EY.length-1;z=z>0&&d.U(b.EY[z])&&d.U(b.EY[z-1]);b.EY.push(d)}Y||(v&&xhc(v)?(nH(this.Yg)&&!this.Az&&(v.fetch=0),uf(this,v)):this.playlist&&uf(this,null),v&&(this.Az=dV(!1,v.external_list)));this.r8.publish("loadvideo");O=this.FK(b,O,S);z&&this.Mo("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+b.EY.join()).replace(/[;:,]/g,"_"));return O}; g.u.preloadVideoByPlayerVars=function(v,O,Y,S,d){O=O===void 0?1:O;Y=Y===void 0?NaN:Y;S=S===void 0?"":S;d=d===void 0?"":d;var r="";if(this.Yg.V("html5_autonav_autoplay_in_preload_key"))r=N9i(this,O,v,d);else{var b=Wp(v);r=EH(this,O,b,d)}if(this.J9.B.get(r))return this.logger.debug(function(){return"already preloaded "+r}),null; v=new g.w2(this.Yg,v);d&&(v.PD=d);return H1i(this,v,O,Y,S)}; g.u.setMinimized=function(v){this.visibility.setMinimized(v);(v=jo3(this.GO))&&(this.isMinimized()?v.load():v.unload());this.r8.publish("minimized")}; g.u.setInline=function(v){this.visibility.setInline(v)}; g.u.setInlinePreview=function(v){this.visibility.setInline(v)}; g.u.tf=function(v){Ot$(this,v)||this.visibility.tf(v)}; g.u.setSqueezeback=function(v){this.visibility.setSqueezeback(v)}; g.u.VO=function(){var v,O=(v=this.mediaElement)==null?void 0:v.dR();O&&(this.Yg.Ma&&$i(Vf(function(){return document.exitFullscreen()}),function(){}),$i(Vf(function(){return cp(O)}),function(){}))}; g.u.QFg=function(){this.mediaElement.dR();this.mediaElement.dR().webkitPresentationMode==="picture-in-picture"?this.tf(!0):this.tf(!1)}; g.u.togglePictureInPicture=function(){this.uc().togglePictureInPicture()}; g.u.FK=function(v,O,Y){O=O===void 0?1:O;this.logger.debug(function(){return"start load video, id "+v.videoId+", type "+O}); PT("_start",this.Zg.timerName)||g.N7(Lw)(void 0,this.Zg.timerName);var S=!1,d=KdQ(this,O,v,!1);d?(S=!0,v.dispose()):(d=V3(this,O,v,!0,Y),(this.V("html5_onesie")||this.V("html5_load_before_stop"))&&d.ZR()&&d.Ie(),this.Z5.stop(),O===1&&O!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,O),this.P1(d));d===this.cT()&&(this.Yg.N7=v.oauthToken);if(!d.ZR())return!1;if(d===this.cT())return this.OZ(1),Y=y3(this),S&&this.V("html5_player_preload_ad_fix")&&d.getPlayerType()===1&& d.oB()&&this.xp("dataloaded",d,d.getVideoData()),Y;d.e9();return!0}; g.u.cueVideoByPlayerVars=function(v,O){var Y=this;O=O===void 0?1:O;var S=this.cT();if(this.pP().enableServerStitchedDai&&S&&!S.QP()&&v&&Object.keys(v).length>0)S.G0("qvonss",{vid:(v==null?void 0:v.videoId)||"",ptype:O});else if(v&&xhc(v))if(this.MF=!0,uf(this,v),(v=g.Ww(this.playlist))&&v.sE())Lv(this,v,O);else this.playlist.onReady(function(){Cv(Y)}); else{O||(O=this.getPresentingPlayerType());O===1&&this.OC();S=new g.w2(this.Yg,v);var d=g.aP(this.Yg)&&!this.Yg.Ug&&O===1&&!S.isAd()&&!S.w4;this.r8.publish("cuevideo");d?(this.uc().getVideoData().loading=!0,eAm(S,v?v:{}).then(function(r){Lv(Y,r,O)}),S.dispose()):Lv(this,S,O)}}; g.u.Bu=function(v,O,Y,S,d,r,b){if(!v&&!Y)throw Error("Playback source is invalid");if(pH(this.Yg)||g.p0(this.Yg))return O=O||{},O.lact=lj(),O.vis=this.r8.getVisibilityState(),this.r8.PW("onPlayVideo",{videoId:v,watchEndpoint:r,sessionData:O,listId:Y}),!1;yGi(this.Zg);this.Zg.reset();v={video_id:v};S&&(v.autoplay="1");S&&(v.autonav="1");r&&(v.player_params=r.playerParams);b&&(v.oauth_token=b);Y?(v.list=Y,this.loadPlaylist(v)):this.loadVideoByPlayerVars(v,1);return!0}; g.u.cuePlaylist=function(v,O,Y,S){this.MF=!0;YpE(this,v,O,Y,S)}; g.u.loadPlaylist=function(v,O,Y,S){this.MF=!1;YpE(this,v,O,Y,S)}; g.u.Kf=function(){return this.r8.isMutedByMutedAutoplay()?!1:this.J9.hF?!0:!(!this.playlist||!this.playlist.fT())}; g.u.RY=vm(13); g.u.nextVideo=function(v,O){var Y=g.it(this.cT().getVideoData());g.lb(this.r8)&&Y?this.Bu(Y.videoId,O?Y.SW:Y.sessionData,Y.playlistId,O,void 0,Y.Ho||void 0):this.Az?this.r8.zf("onPlaylistNext"):this.getPresentingPlayerType()===3?CU(this.GO).nextVideo():!this.playlist||nH(this.Yg)&&!this.r8.isFullscreen()||(this.playlist.fT(v)&&lNl(this.playlist,pJc(this.playlist)),this.playlist.loaded?(v=O&&this.Yg.V("html5_player_autonav_logging"),O&&this.r8.publish("playlistautonextvideo"),this.FK(g.Ww(this.playlist,void 0, O,v),1)):this.MF=!1)}; g.u.previousVideo=function(v){this.Az?this.r8.zf("onPlaylistPrevious"):this.getPresentingPlayerType()===3?CU(this.GO).Ic():!this.playlist||nH(this.Yg)&&!this.r8.isFullscreen()||(this.playlist.FR(v)&&lNl(this.playlist,Tl3(this.playlist)),this.playlist.loaded?this.FK(g.Ww(this.playlist),1):this.MF=!1)}; g.u.playVideoAt=function(v){this.Az?this.r8.zf("onPlaylistIndex",v):this.playlist&&(this.playlist.loaded?this.FK(g.Ww(this.playlist,v),1):this.MF=!1,lNl(this.playlist,v))}; g.u.getPlaylist=function(){return this.playlist}; g.u.OA=vm(25);g.u.Pc8=function(v){this.r8.oD("onCueRangeEnter",v.getId())}; g.u.yKd=function(v){this.r8.oD("onCueRangeExit",v.getId())}; g.u.B9=function(){var v=g.cw(this.QC());v&&v.B9()}; g.u.Cr=function(v,O,Y){var S=this.lk({playerType:O});if(S){if(this.V("html5_ssdai_enable_media_end_cue_range")&&this.jp){S.getPlayerType()===2&&this.jp.gh(this.getCurrentTime())&&(S=this.cT());for(var d=g.y(v),r=d.next();!r.done;r=d.next())r.value.G=this.jp.Wq}S.Cr(v,Y);O&&this.getPresentingPlayerType()!==O||BA(this,"cuerangesadded",v)}}; g.u.dk=function(v,O){var Y=this.lk({playerType:O});Y&&(Y.dk(v),O&&this.getPresentingPlayerType()!==O||BA(this,"cuerangesremoved",v))}; g.u.bu=function(v){return this.uc().bu(v)}; g.u.jdc=function(){function v(){var S=O.screenLayer||(O.isMinimized()?3:0),d=g.TS(S);if(d&&d!=="UNDEFINED_CSN"){var r=O.Yg.V("web_player_attach_player_response_ve"),b=O.Yg.V("web_playback_associated_ve");S={cpn:O.getVideoData().clientPlaybackNonce,csn:d};O.getVideoData().g8&&(r||b)&&(r=g.am(O.getVideoData().g8),g.oF(d,r),b&&(S.playbackVe=r.getAsJson()));O.getVideoData().queueInfo&&(S.queueInfo=O.getVideoData().queueInfo);d={};O.V("web_playback_associated_log_ctt")&&O.getVideoData().C&&(d.cttAuthInfo= {token:O.getVideoData().C,videoId:O.getVideoData().videoId});g.z2("playbackAssociated",S,d)}else g.Br(new g.iK("CSN Missing or undefined during playback association"))} var O=this,Y=this.uc();this.getPresentingPlayerType();C_J(this.Zg,Y.getVideoData(),bt7(this));cA(this)&&this.Yg.B&&l8(this.pP())==="embedded"&&this.Ws&&Math.random()<.01&&g.z2("autoplayTriggered",{intentional:this.intentionalPlayback});this.Ws=!1;rNl(this.GO);this.V("web_player_defer_ad")&&Iwl(this);this.r8.zf("onPlaybackStartExternal");(this.Yg.V("mweb_client_log_screen_associated"),ZS(this.Yg))||v();Y={};this.getVideoData().C&&(Y.cttAuthInfo={token:this.getVideoData().C,videoId:this.getVideoData().videoId}); Y.sampleRate=20;Kw("player_att",Y);if(this.getVideoData().botguardData||this.V("fetch_att_independently"))g.PD(this.Yg)||g.tt(this.Yg)==="MWEB"?g.NL(g.O8(),function(){ao(O)}):ao(this); this.LY();G0d(this);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.aP(this.Yg)&&(Y={autoplayBrowserPolicy:i4(),autoplayIntended:m2(this.getVideoData()),autoplayStatus:Dti(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.z2("embedsAutoplayStatusChanged",Y))}; g.u.QIs=function(){this.r8.publish("internalAbandon");Ro(this)}; g.u.onApiChange=function(){var v=this.uc();this.Yg.X?this.r8.oD("onApiChange",v.getPlayerType()):this.r8.oD("onApiChange")}; g.u.K98=function(){var v=this.mediaElement;v={volume:g.xr(Math.floor(v.getVolume()*100),0,100),muted:v.vL()};v.muted||pv(this,!1);this.KS=g.NN(v);this.r8.oD("onVolumeChange",v)}; g.u.mutedAutoplay=function(v){var O=this.getVideoData().videoId;isNaN(this.Gy)&&(this.Gy=this.getVideoData().startSeconds);if((v==null?0:v.videoId)||O)this.loadVideoByPlayerVars({video_id:(v==null?0:v.videoId)?v==null?void 0:v.videoId:O,playmuted:!0,start:this.Gy,muted_autoplay_duration_mode:v==null?void 0:v.durationMode}),this.r8.zf("onMutedAutoplayStarts")}; g.u.onFullscreenChange=function(){var v=jXi(this);this.OY(v?1:0);zF3(this,!!v)}; g.u.OY=function(v){var O=!!v,Y=!!this.I_()!==O;this.visibility.OY(v);this.template.OY(O);this.V("html5_media_fullscreen")&&!O&&this.mediaElement&&jXi(this)===this.mediaElement.dR()&&this.mediaElement.rP();this.template.resize();Y&&this.Zg.tick("fsc");Y&&(this.r8.publish("fullscreentoggled",O),v=this.pP(),O={fullscreen:O,videoId:v.Fi||v.videoId,time:this.getCurrentTime()},this.r8.getPlaylistId()&&(O.listId=this.r8.getPlaylistId()),this.r8.oD("onFullscreenChange",O))}; g.u.SG=function(){return this.visibility.SG()}; g.u.isFullscreen=function(){return this.visibility.isFullscreen()}; g.u.I_=function(){return this.visibility.I_()}; g.u.nuu=function(){var v=this.I_();v!==0&&v!==1||this.OY(jXi(this)?1:0);v=window.screen.width*window.screen.height;var O=window.outerHeight*window.outerWidth;this.Yg.cI?(this.T6=Math.max(this.T6,v,O),v=O/this.T60&&(M=Math.floor(V/1E3))}M=O?O.kZ:M;var A={AD_BLOCK:this.Y++,AD_BREAK_LENGTH:M,AUTONAV_STATE:XX(this.player.D()),CA_TYPE:"image",CPN:z.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.S_()*1E3,LACT:lj(),LIVE_INDEX:O?this.G++:1,LIVE_TARGETING_CONTEXT:O&&O.context?O.context:"",MIDROLL_POS:r? Math.round(r.start/1E3):0,MIDROLL_POS_MS:r?Math.round(r.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.j4().Q$().height,P_W:this.player.j4().Q$().width,YT_REMOTE:d?d.join(","):""},f=gG(sq);Object.keys(f).forEach(function(U){f[U]!=null&&(A[U.toUpperCase()]=f[U].toString())}); Y!==""&&(A.BISCOTTI_ID=Y);Y={};zn(v)&&(Y.sts="20227",(O=this.player.D().forcedExperiments)&&(Y.forced_experiments=O));var k=oZ(g.lp(v,A),Y);return k.split("?").length!==2?ld(Error("Invalid AdBreakInfo URL")):g.vO(this.player.D(),z==null?void 0:z.oauthToken).then(function(U){if(U&&Wf()){var c=Rh();eE(c,U)}U=S.player.Rm(c);c=LAm(S,k,A,z.isMdxPlayback,b);return g.D9(U,c,"/youtubei/v1/player/ad_break").then(function(a){return a})})}; wu.prototype.reset=function(){this.G=this.Y=1};g.C(B_i,wu); B_i.prototype.U=function(v,O,Y){O=O===void 0?{}:O;var S=O.Fg;var d=O.Al;var r=O.cueProcessedMs;Y=Y===void 0?"":Y;O=this.Y;this.Y++;var b=this.player.D().V("h5_disable_macro_substitution_in_get_ad_break")?v:Ztm(this,v,{Fg:S,Al:d,cueProcessedMs:r},Y,O);if(b.split("?").length!==2)return Math.random()<.1&&g.Br(Error("Invalid AdBreakInfo URL")),ld(Error("Invalid AdBreakInfo URL"));var z=this.player.getVideoData(1).isMdxPlayback,M=Y;Y=lRi.exec(b);Y=Y!=null&&Y.length>=2?Y[1]:"";v=FAE.test(b);var V=hFd.exec(b); V=V!=null&&V.length>=2?V[1]:"";var A=RFg.exec(b);A=A!=null&&A.length>=2&&!Number.isNaN(Number(A[1]))?Number(A[1]):1;var f=eF1.exec(b);f=f!=null&&f.length>=2?f[1]:"0";var k=LH(this.player.D().SZ),U=g.O4(this.player.getVideoData(1).g8,!0);Ckl(this,U,b,M===""?"":M,this.player.D(),this.player.getVideoData(1));M={splay:!1,lactMilliseconds:String(lj()),playerHeightPixels:Math.trunc(this.player.j4().Q$().height),playerWidthPixels:Math.trunc(this.player.j4().Q$().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20227,autonavState:XX(this.player.D())};if(z){z={};var c=this.player.D().PP;x4d(z,c?c.join(","):"")&&(M.mdxContext=z)}if(z=EBi.includes(k)?void 0:g.Zb("PREF")){c=z.split(RegExp("[:&]"));for(var a=0,x=c.length;a1&&T[1].toUpperCase()==="TRUE"){U.user.lockedSafetyMode=!0;break}}M.autoCaptionsDefaultOn=T_i(z)}b=QX7.exec(b);(b=b!=null&&b.length>=2?b[1]:"")&&V&&(U.user.credentialTransferTokens= [{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:M};M=this.player.getVideoData(1).getGetAdBreakContext();z=this.player.getVideoData(1).clientPlaybackNonce;c=r!==void 0?Math.round(r).toString():void 0;a=(S==null?0:S.context)?S.context:void 0;x=0;r&&d&&!S&&(d=d.end-d.start,d>0&&(x=Math.floor(d/1E3)));S=(S=Math.trunc((S?S.kZ:x)*1E3))?String(S):void 0;d=this.player.S_()*1E3;d=Number.isNaN(d)?0:Math.trunc(d);O={adBlock:O,params:Y,breakIndex:A,breakPositionMs:f,clientPlaybackNonce:z,topLevelDomain:k, isProxyAdTagRequest:v,context:U,overridePlaybackContext:b,cueProcessedMs:c,videoId:V?V:void 0,liveTargetingParams:a,breakLengthMs:S,driftFromHeadMs:d?String(d):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:M?M:void 0};return X_7(this,O)};var wLU={XSO:"replaceUrlMacros",Is8:"onAboutThisAdPopupClosed",PqO:"executeCommand"};w_g.prototype.Pb=function(){return"adPingingEndpoint"}; w_g.prototype.b1=function(v,O,Y){Cm$(this.L1.get(),v,O,Y)};IRJ.prototype.Pb=function(){return"changeEngagementPanelVisibilityAction"}; IRJ.prototype.b1=function(v){this.N.PW("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:v})};qpi.prototype.Pb=function(){return"loggingUrls"}; qpi.prototype.b1=function(v,O,Y){v=g.y(v);for(var S=v.next();!S.done;S=v.next())S=S.value,Cm$(this.L1.get(),S.baseUrl,O,Y,S.attributionSrcMode)};g.C(JW$,g.X);g.C(qI,g.X);g.u=qI.prototype;g.u.addListener=function(v){this.listeners.push(v)}; g.u.removeListener=function(v){this.listeners=this.listeners.filter(function(O){return O!==v})}; g.u.xf=function(v,O,Y,S,d,r,b,z){if(v==="")f_("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(v!==this.Y||Y){this.Y=v;this.Zu.get().xf(v,O,Y,S,d,r,b,z);this.S4.get().xf(v,O,Y,S,d,r,b,z);var M;(M=this.Pq)==null||M.get().xf(v,O,Y,S,d,r,b,z);this.U.xf(v,O,Y,S,d,r,b,z);M=g.y(this.listeners);for(var V=M.next();!V.done;V=M.next())V.value.xf(v,O,Y,S,d,r,b,z)}else f_("Duplicate content video loaded signal")}; g.u.qnK=function(){this.Y&&this.TZ(this.Y)}; g.u.TZ=function(v){this.Y=void 0;for(var O=g.y(this.listeners),Y=O.next();!Y.done;Y=O.next())Y.value.TZ(v)};nv.prototype.JA=function(v,O,Y,S,d){KA$(this);this.Z=!O&&Y===0;var r=this.N.getVideoData(1),b=this.N.getVideoData(2);r&&(this.contentCpn=r.clientPlaybackNonce,this.videoId=r.videoId,this.Y=r.C);b&&(this.adCpn=b.clientPlaybackNonce,this.adVideoId=b.videoId,this.adFormat=b.adFormat);this.B=v;S<=0?(KA$(this),this.Z=!O&&Y===0):(this.actionType=this.Z?O?"unknown_type":"video_to_ad":O?"ad_to_video":"ad_to_ad",this.videoStreamType=d?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.G=!0,PT("_start",this.actionType)&&itl(this)))}; nv.prototype.reset=function(){return new nv(this.N)};g.C(JN,g.X);JN.prototype.addCueRange=function(v,O,Y,S,d,r,b){r=r===void 0?3:r;b=b===void 0?1:b;this.Y.has(v)?f_("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:v}):(v=new m4m(v,O,Y,S,r),this.Y.set(v.id,{Al:v,listener:d,fv:b}),this.N.YZ([v],b))}; JN.prototype.removeCueRange=function(v){var O=this.Y.get(v);O?(this.N.Uy([O.Al],O.fv),this.Y.delete(O.Al.id)):f_("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:v})}; JN.prototype.onCueRangeEnter=function(v){if(this.Y.has(v.id))this.Y.get(v.id).listener.onCueRangeEnter(v.id)}; JN.prototype.onCueRangeExit=function(v){if(this.Y.has(v.id))this.Y.get(v.id).listener.onCueRangeExit(v.id)}; g.C(m4m,g.dh);Kv.prototype.addPlayerResponseForAssociation=function(v){this.N.addPlayerResponseForAssociation(v)};PA.prototype.sN=function(v){this.N.sN(v)}; PA.prototype.Pd=function(v){var O=g.Bm.apply(1,arguments);v==="onAdStart"||v==="onAdEnd"?this.N.oD.apply(this.N,[v].concat(g.F(O))):this.N.PW.apply(this.N,[v].concat(g.F(O)))};Gd.prototype.Vr=function(v){return v&&mQ(this)};var bow=null;g.C(r2l,g.MU);r2l.prototype.vG=function(v){return this.Y.hasOwnProperty(v)?this.Y[v].vG():{}}; g.Gc("ytads.bulleit.getVideoMetadata",function(v){return tN().vG(v)}); g.Gc("ytads.bulleit.triggerExternalActivityEvent",function(v,O,Y){var S=tN();Y=dKc(Y);Y!==null&&S.publish(Y,{queryId:v,viewabilityString:O})});g.u=DP.prototype;g.u.IS=function(v,O){if(!this.Y.has(v))return{};if(O==="seek"){O=!1;O=O===void 0?!1:O;var Y=vU(N2).R5(v,{});Y?iH(Y):O&&(v=vU(N2).O1(null,qV(),!1,v),v.Kq=3,xEE([v]));return{}}O=jln(O);if(O===null)return{};var S=this.N.zI();if(!S)return{};var d=this.N.getPresentingPlayerType(!0);if((Y=this.N.getVideoData(d))==null||!Y.isAd())return{};Y={opt_adElement:S,opt_fullscreen:this.Zu.get().isFullscreen()};return xV3(O,v,Y)}; g.u.VI=function(v,O,Y,S,d){this.Y.has(v)&&(S<=0||d<=0||vU(N2).VI(v,O,Y,S,d))}; g.u.E5=function(v){var O;(O=this.Y.get(v.queryId))==null||O.E5()}; g.u.Kh=function(v){var O;(O=this.Y.get(v.queryId))==null||O.Kh()}; g.u.Tb=function(v){var O;(O=this.Y.get(v.queryId))==null||O.Tb()}; g.u.fh=function(v){var O;(O=this.Y.get(v.queryId))==null||O.fh()}; g.u.ag=function(v){var O;(O=this.Y.get(v.queryId))==null||O.ag()};$KQ.prototype.send=function(v,O,Y,S){try{kxw(this,v,O,Y,S===void 0?!1:S)}catch(d){}};g.C(UKl,$KQ);c21.prototype.send=function(v,O,Y,S){var d=!1;try{if(S==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||S==="ATTRIBUTION_SRC_MODE_XHR_OPTION")d=!0,v=Me1(v);S=d;var r=g.Uz(v);if(r[1]==="https")var b=v;else r[1]="https",b=kU("https",r[2],r[3],r[4],r[5],r[6],r[7]);var z=jwd(b);r=[];var M=tmg(b)&&this.e4.get().N.D().experiments.T0("add_auth_headers_to_remarketing_google_dot_com_ping");if(zn(b)||M)r.push({headerType:"USER_AUTH"}),r.push({headerType:"PLUS_PAGE_ID"}),r.push({headerType:"VISITOR_ID"}),r.push({headerType:"EOM_VISITOR_ID"}), r.push({headerType:"AUTH_USER"}),r.push({headerType:"DATASYNC_ID"});this.Y.send({baseUrl:b,scrubReferrer:z,headers:r},O,Y,S)}catch(V){}};Yg.prototype.mE=function(){return this.N.mE(1)};g.C(Sf,g.X);g.u=Sf.prototype;g.u.W7=function(){return this.N.getVideoData(1).clientPlaybackNonce}; g.u.addListener=function(v){this.listeners.push(v)}; g.u.removeListener=function(v){this.listeners=this.listeners.filter(function(O){return O!==v})}; g.u.xf=function(){this.vF.clear();this.KO=null;this.eB.get().clear()}; g.u.TZ=function(){}; g.u.iPs=function(v,O,Y,S,d){O.videoId==="nPpU29QrbiU"&&this.N.G0("ads_ssm_vdc_s",{pt:Y,dvt:v});xO(this.e4.get())&&v!=="dataloaded"||FxJ(this,O,Y);if(mQ(this.e4.get())&&v==="newdata"&&d!==void 0){v=this.W7();var r=O.clientPlaybackNonce,b={};y9(this,"rte",(b.ec=r,b.xc=S==null?void 0:S.clientPlaybackNonce,b.tr=d,b.pt=Y,b.ia=r!==v,b.ctp=CD(r),b));O=O.clientPlaybackNonce;S=S==null?void 0:S.clientPlaybackNonce;d=h5d(d);if(d!==1)if(S!==void 0)for(Y=g.y(this.listeners),v=Y.next();!v.done;v=Y.next())v.value.hd(S, O,d);else f_("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:O,transitionReason:String(d)});d=g.y(this.listeners);for(S=d.next();!S.done;S=d.next())S.value.Zj(O)}}; g.u.Jld=function(v,O){v!==void 0&&(this.KO=v,O===void 0?f_("Expected ad video start time on SS video changed"):this.vF.set(v,O));var Y=this.N.getPresentingPlayerType(!0),S=this.N.getVideoData(Y),d;v===void 0?d=null:d=this.eB.get().Y.get(v)||null;this.N.getVideoData(1).G0("ads_ssvc",{pt:Y,cpn:S==null?void 0:S.clientPlaybackNonce,crtt:this.N.getCurrentTime(1,!1),atlh:this.N.isAtLiveHead(),adstt:O,pid:v,slid:d==null?void 0:d.layoutId});S?FxJ(this,S,Y):f_("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.N.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:v})}; g.u.NR=function(v,O){var Y=v.author,S=v.clientPlaybackNonce,d=v.isListed,r=v.PD,b=v.title,z=v.cP,M=v.t3,V=v.isMdxPlayback,A=v.Q_,f=v.mdxEnvironment,k=v.isAutonav,U=v.bQ,c=v.Tn,a=v.tb,x=v.videoId||"",T=v.profilePicture||"",l=v.HS||"",Q=v.wy()||!1,L=v.lM()||!1;v=v.MP||void 0;r=this.eB.get().Y.get(r)||{layoutId:null,slotId:null};var I=this.N.getVideoData(1),t=I.FL();I=I.getPlayerResponse();O=1E3*this.N.getDuration(O);var P=1E3*this.N.getDuration(1),YQ,dF,N=(I==null?void 0:(YQ=I.playerConfig)==null?void 0: (dF=YQ.daiConfig)==null?void 0:dF.enableDai)||!1,j1,D;YQ=(I==null?void 0:(j1=I.playerConfig)==null?void 0:(D=j1.daiConfig)==null?void 0:D.enablePreroll)||!1;return Object.assign({},r,{videoId:x,author:Y,clientPlaybackNonce:S,pK:O,sK:P,daiEnabled:N,jb:YQ,isListed:d,FL:t,profilePicture:T,title:b,HS:l,cP:z,t3:M,MP:v,isMdxPlayback:V,Q_:A,mdxEnvironment:f,isAutonav:k,bQ:U,Tn:c,tb:a,wy:Q,lM:L})}; g.u.cW=function(){this.listeners.length=0;this.kT=null;g.X.prototype.cW.call(this)};g.C(dU,g.X);g.u=dU.prototype;g.u.xf=function(){var v=this;mQ(this.e4.get())||(this.Y=Vm(function(){v.N.vW()||v.N.po("ad",1)}))}; g.u.TZ=function(){}; g.u.addListener=function(v){this.listeners.push(v)}; g.u.removeListener=function(v){this.listeners=this.listeners.filter(function(O){return O!==v})}; g.u.Nt=function(){}; g.u.playVideo=function(){this.N.playVideo()}; g.u.pauseVideo=function(){this.N.pauseVideo()}; g.u.resumeVideo=function(v){this.mj(v)&&this.N.playVideo()}; g.u.mj=function(v){return this.N.getPlayerState(v)===2}; g.u.getCurrentTimeSec=function(v,O,Y){var S=this.S4.get().KO;if(v===2&&!O&&S!==null)return e5i(this,S);tE(this.e4.get(),"html5_ssap_use_cpn_to_get_time")||(Y=void 0);return Y!==void 0?this.N.getCurrentTime(v,O,Y):this.N.getCurrentTime(v,O)}; g.u.getVolume=function(){return this.N.getVolume()}; g.u.isMuted=function(){return this.N.isMuted()}; g.u.getPresentingPlayerType=function(){return this.N.getPresentingPlayerType(!0)}; g.u.getPlayerState=function(v){return this.N.getPlayerState(v)}; g.u.isFullscreen=function(){return this.N.isFullscreen()}; g.u.isAtLiveHead=function(){return this.N.isAtLiveHead()}; g.u.tp=function(v){this.N.tp(v)}; g.u.xXd=function(){var v=this.N.getPresentingPlayerType(!0),O=this.getCurrentTimeSec(v,!1);if(v===2){v=g.y(this.listeners);for(var Y=v.next();!Y.done;Y=v.next())Y.value.i8(O)}else if(v===1)for(v=g.y(this.Hf),Y=v.next();!Y.done;Y=v.next())Y.value.Nt(O)}; g.u.Z_d=function(v){for(var O=g.y(this.listeners),Y=O.next();!Y.done;Y=O.next())Y.value.l6(v,this.getPresentingPlayerType())}; g.u.onFullscreenToggled=function(v){for(var O=g.y(this.listeners),Y=O.next();!Y.done;Y=O.next())Y.value.onFullscreenToggled(v)}; g.u.onVolumeChange=function(){for(var v=g.y(this.listeners),O=v.next();!O.done;O=v.next())O.value.onVolumeChange()}; g.u.VH=function(){for(var v=this.N.isMinimized(),O=g.y(this.listeners),Y=O.next();!Y.done;Y=O.next())Y.value.VH(v)}; g.u.fW=function(v){for(var O=g.y(this.listeners),Y=O.next();!Y.done;Y=O.next())Y.value.fW(v)}; g.u.ze=function(){for(var v=this.N.j4().Q$(),O=g.y(this.listeners),Y=O.next();!Y.done;Y=O.next())Y.value.bq(v)}; g.u.uq=function(v){for(var O=g.y(this.listeners),Y=O.next();!Y.done;Y=O.next())Y.value.uq(v)}; g.u.Ez=function(){for(var v=g.y(this.listeners),O=v.next();!O.done;O=v.next())O.value.Ez()};g.C(Lx$,g.X);g.C(Wo,g.X);Wo.prototype.cW=function(){this.Cv.vW()||this.Cv.get().removeListener(this);g.X.prototype.cW.call(this)};zN.prototype.fetch=function(v){var O=v.vX;return this.Y.fetch(v.NN,{Fg:v.Fg===void 0?void 0:v.Fg,Al:O,cueProcessedMs:v.cueProcessedMs===void 0?0:v.cueProcessedMs}).then(function(Y){return Bj1(Y,O)})};g.C(s5,g.X);g.u=s5.prototype;g.u.addListener=function(v){this.listeners.push(v)}; g.u.removeListener=function(v){this.listeners=this.listeners.filter(function(O){return O!==v})}; g.u.EG=function(v){Zow(this,v,1)}; g.u.onAdUxClicked=function(v,O){gU(this,function(Y){Y.dT(v,O)})}; g.u.BR=function(v){gU(this,function(O){O.Ib(v)})}; g.u.QT=function(v){gU(this,function(O){O.sL(v)})}; g.u.Ks0=function(v){gU(this,function(O){O.a5(v)})};Mm.prototype.reduce=function(v){switch(v.event){case "unknown":return}var O=v.identifier;var Y=this.Y[O];Y?O=Y:(Y={mS:null,JY:-Infinity},O=this.Y[O]=Y);Y=v.startSecs+v.Y/1E3;if(!(Y=this.Y.startSecs&&Y.startSecs<=this.Y.startSecs+this.Y.kZ)){var S=void 0;if(pi(this.e4.get())&&Y.identifier!==((S=this.Y)==null?void 0:S.identifier)){var d=S=void 0,r=void 0,b=void 0;bz(this.L1.get(),"ocud","ccpi."+Y.identifier+";ccpe."+Y.event+";ccps."+Y.startSecs+";\n ccpd."+Y.kZ+";pcpi."+((S=this.Y)==null?void 0:S.identifier)+ ";pcpe."+((d=this.Y)==null?void 0:d.event)+";\n pcps."+((r=this.Y)==null?void 0:r.startSecs)+";pcpd."+((b=this.Y)==null?void 0:b.kZ)+";")}S=void 0;Y.identifier!==((S=this.Y)==null?void 0:S.identifier)&&f_("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.Y=Y,IB$(this,Y)}}; g.u.cW=function(){this.U!=null&&(this.U.unsubscribe("cuepointupdated",this.ZA,this),this.U=null);this.listeners.length=0;this.C0.length=0;g.X.prototype.cW.call(this)};g.u=fI.prototype;g.u.aU=function(v,O,Y,S,d,r,b){return this.N.aU(v,O,Y,S,d,r,b)}; g.u.Qo=function(v,O){this.N.Qo(v,O)}; g.u.tQ=function(v,O,Y){this.N.tQ(v,O,Y)}; g.u.u1=function(v){this.N.u1(v)}; g.u.Va=function(v,O,Y,S,d,r,b){return this.N.Va(v,O,Y,S,d,r,b)}; g.u.UJ=function(v){return this.N.UJ(v)}; g.u.finishSegmentByCpn=function(v,O,Y){Y=J2E(Y);this.N.finishSegmentByCpn(v,O,Y)};g.C($g,g.X);g.C(Pm1,g.X);g.C(Gxn,g.X);g.C(iog,g.X);g.C(mKg,g.X);g.C(tLl,g.X);g.C(Ho7,g.X);Ho7.prototype.G=function(){return this.U};g.C(Njn,mh); Njn.prototype.B=function(v){var O=v.content;if(O.componentType==="shopping-companion")switch(v.actionType){case 1:case 2:v=this.Y.getVideoData(1);this.Y.PW("updateKevlarOrC3Companion",{contentVideoId:v&&v.videoId,shoppingCompanionCarouselRenderer:O.renderer,layoutId:O.layoutId,macros:O.macros,onLayoutVisibleCallback:O.Y,interactionLoggingClientData:O.interactionLoggingClientData});break;case 3:this.Y.PW("updateKevlarOrC3Companion",{})}else if(O.componentType==="action-companion")switch(v.actionType){case 1:case 2:v=this.Y.getVideoData(1); this.Y.PW("updateKevlarOrC3Companion",{contentVideoId:v&&v.videoId,actionCompanionAdRenderer:O.renderer,layoutId:O.layoutId,macros:O.macros,onLayoutVisibleCallback:O.Y,interactionLoggingClientData:O.interactionLoggingClientData});break;case 3:O.renderer&&(O=this.Y.getVideoData(1),this.Y.PW("updateKevlarOrC3Companion",{contentVideoId:O&&O.videoId})),this.Y.PW("updateKevlarOrC3Companion",{})}else if(O.componentType==="image-companion")switch(v.actionType){case 1:case 2:v=this.Y.getVideoData(1);this.Y.PW("updateKevlarOrC3Companion", {contentVideoId:v&&v.videoId,imageCompanionAdRenderer:O.renderer,layoutId:O.layoutId,macros:O.macros,onLayoutVisibleCallback:O.Y,interactionLoggingClientData:O.interactionLoggingClientData});break;case 3:O=this.Y.getVideoData(1),this.Y.PW("updateKevlarOrC3Companion",{contentVideoId:O&&O.videoId}),this.Y.PW("updateKevlarOrC3Companion",{})}else if(O.componentType==="top-banner-image-text-icon-buttoned")switch(v.actionType){case 1:case 2:v=this.Y.getVideoData(1);this.Y.PW("updateKevlarOrC3Companion", {contentVideoId:v&&v.videoId,topBannerImageTextIconButtonedLayoutViewModel:O.renderer,layoutId:O.layoutId,macros:O.macros,onLayoutVisibleCallback:O.Y,interactionLoggingClientData:O.interactionLoggingClientData});break;case 3:O.renderer&&(O=this.Y.getVideoData(1),this.Y.PW("updateKevlarOrC3Companion",{contentVideoId:O&&O.videoId})),this.Y.PW("updateKevlarOrC3Companion",{})}else if(O.componentType==="banner-image")switch(v.actionType){case 1:case 2:v=this.Y.getVideoData(1);this.Y.PW("updateKevlarOrC3Companion", {contentVideoId:v&&v.videoId,bannerImageLayoutViewModel:O.renderer,layoutId:O.layoutId,macros:O.macros,onLayoutVisibleCallback:O.Y,interactionLoggingClientData:O.interactionLoggingClientData});break;case 3:O=this.Y.getVideoData(1),this.Y.PW("updateKevlarOrC3Companion",{contentVideoId:O&&O.videoId}),this.Y.PW("updateKevlarOrC3Companion",{})}else if(O.componentType==="ads-engagement-panel")switch(O=O.renderer,v.actionType){case 1:case 2:this.Y.PW("updateEngagementPanelAction",O.addAction);this.Y.PW("changeEngagementPanelVisibility", O.expandAction);break;case 3:this.Y.PW("changeEngagementPanelVisibility",O.hideAction),this.Y.PW("updateEngagementPanelAction",O.removeAction)}else if(O.componentType==="ads-engagement-panel-layout"){var Y=O.renderer;switch(v.actionType){case 1:case 2:this.Y.PW("updateEngagementPanelAction",{action:Im(Y.addAction),layoutId:O.layoutId,onLayoutVisibleCallback:O.Y,interactionLoggingClientData:O.interactionLoggingClientData});this.Y.PW("changeEngagementPanelVisibility",Im(Y.expandAction));break;case 3:this.Y.PW("changeEngagementPanelVisibility", Im(Y.hideAction)),this.Y.PW("updateEngagementPanelAction",{action:Im(Y.removeAction)})}}};g.C(v4l,Sd);g.u=v4l.prototype;g.u.init=function(v,O,Y){Sd.prototype.init.call(this,v,O,Y);g.ym(this.G,"stroke-dasharray","0 "+this.U);this.G.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.C.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.B.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.u.clear=function(){this.hide()}; g.u.hide=function(){rY(this);Sd.prototype.hide.call(this)}; g.u.show=function(){dY(this);Sd.prototype.show.call(this)}; g.u.Iq=function(){this.hide()}; g.u.nT=function(){if(this.Y){var v=this.Y.getProgressState();v!=null&&v.current!=null&&g.ym(this.G,"stroke-dasharray",v.current/v.seekableEnd*this.U+" "+this.U)}};g.C(OEF,U2);g.u=OEF.prototype; g.u.init=function(v,O,Y){U2.prototype.init.call(this,v,O,Y);if(O.image&&O.image.thumbnail)if(O.headline)if(O.description)if(O.backgroundImage&&O.backgroundImage.thumbnail)if(O.actionButton&&g.q(O.actionButton,g.wZ))if(v=O.durationMilliseconds||0,typeof v!=="number"||v<=0)g.LP(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+v));else if(O.navigationEndpoint){var S=this.api.getVideoData(2);if(S!=null){var d=O.image.thumbnail.thumbnails;d!=null&& d.length>0&&g.Vh(g.Ac(d[0].url))&&(d[0].url=S.profilePicture,g.Vh(g.Ac(S.profilePicture))&&QI7("VideoPlayer",239976093,"Expected non-empty profile picture."));d=O.backgroundImage.thumbnail.thumbnails;d!=null&&d.length>0&&g.Vh(g.Ac(d[0].url))&&(d[0].url=S.JE());d=O.headline;d!=null&&g.Vh(g.Ac(d.text))&&(d.text=S.author)}this.j.init(s2("ad-image"),O.image,Y);this.C.init(s2("ad-text"),O.headline,Y);this.G.init(s2("ad-text"),O.description,Y);this.XO.init(s2("ad-image"),O.backgroundImage,Y);S=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.C.element.classList.add("ytp-ad-action-interstitial-headline-light");this.G.element.classList.add("ytp-ad-action-interstitial-description-light");S.push("ytp-ad-action-interstitial-action-button-dark");this.api.D().U&&(S.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),S.push("ytp-ad-action-interstitial-action-button-dark"));this.api.D().V("enable_unified_action_endcap_on_web")&& !this.api.D().U&&(S.push("ytp-ad-action-interstitial-action-button-unified"),this.xg.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.j.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.yx.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.xZ.classList.add("ytp-ad-action-interstitial-card-unified"),this.Ug.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.G.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.N3.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.g8.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.AK.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Zn(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,S);g.w(this,this.actionButton);this.actionButton.C1(this.xg); this.actionButton.init(s2("button"),g.q(O.actionButton,g.wZ),Y);JB(this.actionButton.element);S=GV(this.actionButton.element);PM(this.actionButton.element,S+" This link opens in new tab");this.navigationEndpoint=O.navigationEndpoint;this.B.S(this.g8,"click",this.sC,this);this.B.S(this.Ug,"click",this.sC,this);!this.api.D().V("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.D().U||this.B.S(this.N3,"click",this.sC,this);this.Y=this.As?new p_(this.api,v):new TX(v);g.w(this,this.Y);if(O.skipButton){(v= g.q(O.skipButton,YIK))&&this.Y&&(this.skipButton=new cK(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,this.Y,this.xL),g.w(this,this.skipButton),this.skipButton.C1(this.element),this.skipButton.init(s2("skip-button"),v,Y));if(Y=O.adBadgeRenderer)if(Y=g.q(Y,OgY))v=new aE(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,!0,!0),v.C1(this.AK),v.init(s2("simple-ad-badge"),Y,this.macros),g.w(this,v);if(Y=O.adInfoRenderer)if(Y=g.q(Y,ZF))v=new vK(this.api,this.layoutId,this.interactionLoggingClientData, this.Rd,this.element,void 0,!0),v.C1(this.AK),v.init(s2("ad-info-hover-text-button"),Y,this.macros),g.w(this,v)}else O.nonskippableOverlayRenderer&&(v=g.q(O.nonskippableOverlayRenderer,XK))&&this.Y&&(this.U=new jd(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,this.Y,!1),g.w(this,this.U),this.U.C1(this.element),this.U.init(s2("ad-preview"),v,Y));O.countdownRenderer&&(O=O.countdownRenderer,g.q(O,SI0)&&this.Y&&(Y=new v4l(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd, this.Y),g.w(this,Y),Y.C1(this.element),Y.init(s2("timed-pie-countdown"),g.q(O,SI0),this.macros)));this.show();this.element.focus()}else g.LP(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.LP(Error("AdActionInterstitialRenderer has no button."));else g.LP(Error("AdActionInterstitialRenderer has no background AdImage."));else g.LP(Error("AdActionInterstitialRenderer has no description AdText."));else g.LP(Error("AdActionInterstitialRenderer has no headline AdText."));else g.LP(Error("AdActionInterstitialRenderer has no image."))}; g.u.clear=function(){g.hi(this.B);this.hide()}; g.u.show=function(){Y_F(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.U&&this.U.show();U2.prototype.show.call(this)}; g.u.hide=function(){Y_F(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.U&&this.U.hide();U2.prototype.hide.call(this)}; g.u.sC=function(){this.navigationEndpoint&&(this.layoutId?this.Rd.executeCommand(this.navigationEndpoint,this.layoutId):g.LP(Error("Missing layoutId for ad action interstitial.")))};var o47={iconType:"CLOSE"},uo=new g.hc(320,63);g.C(bEJ,U2);g.u=bEJ.prototype; g.u.init=function(v,O,Y){U2.prototype.init.call(this,v,O,Y);this.B=O;this.j=g.c0(this.B.onClickCommands||[]);this.AK=this.B.onErrorCommand||null;if(v=this.B.contentSupportedRenderer)v=this.B.contentSupportedRenderer,O=this.B.adInfoRenderer||null,g.q(v,HCY)?(this.C=g.Jc("ytp-ad-overlay-ad-info-button-container",this.G.element),j4m(this,O),v=zjJ(this,g.q(v,HCY))):g.q(v,NSN)?(this.C=g.Jc("ytp-ad-overlay-ad-info-button-container",this.U.element),j4m(this,O),v=s4n(this,g.q(v,NSN))):g.q(v,vIw)?(this.C= g.Jc("ytp-ad-overlay-ad-info-button-container",this.Y.element),j4m(this,O),v=g4d(this,g.q(v,vIw))):(g.LP(Error("InvideoOverlayAdRenderer content could not be initialized.")),v=!1);v&&(this.show(),MCc(this,!0))}; g.u.clear=function(){MCc(this,!1);this.g8.reset();this.Ug=0;this.G.hide();this.logVisibility(this.G.element,!1);this.U.hide();this.logVisibility(this.U.element,!1);this.Y.hide();this.logVisibility(this.Y.element,!1);this.hide();this.dispose()}; g.u.Xqg=function(){this.xg&&(this.layoutId?this.Rd.executeCommand(this.xg,this.layoutId):g.LP(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.u.SK=function(){a:{if(this.B&&this.B.closeButton&&this.B.closeButton.buttonRenderer){var v=this.B.closeButton.buttonRenderer;if(v.serviceEndpoint){v=[v.serviceEndpoint];break a}}v=[]}v=g.y(v);for(var O=v.next();!O.done;O=v.next())O=O.value,this.layoutId?this.Rd.executeCommand(O,this.layoutId):g.LP(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.u.fug=function(){this.XO||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.u.Rk=function(){this.XO||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.Rk("invideo-overlay")}; g.u.au4=function(v){v.target===this.C&&g.Jc("ytp-ad-button",this.yx.element).click()};g.C(VCQ,Sd);g.u=VCQ.prototype;g.u.init=function(v,O,Y){Sd.prototype.init.call(this,v,O,Y);v=O.durationMs;this.G=v==null||v===0?0:v+this.Y.getProgressState().current*1E3;if(O.text)var S=O.text.templatedAdText;else O.staticMessage&&(S=O.staticMessage);this.messageText.init(s2("ad-text"),S,Y);this.messageText.C1(this.U.element);this.B.show(100);this.show()}; g.u.clear=function(){this.hide()}; g.u.hide=function(){AJ3(this,!1);Sd.prototype.hide.call(this);this.U.hide();this.messageText.hide();rY(this)}; g.u.show=function(){AJ3(this,!0);Sd.prototype.show.call(this);dY(this);this.U.show();this.messageText.show()}; g.u.Iq=function(){this.hide()}; g.u.nT=function(){if(this.Y!=null){var v=this.Y.getProgressState();v!=null&&v.current!=null&&(v=1E3*v.current,!this.Ug&&v>=this.G?(this.B.hide(),this.Ug=!0):this.messageText&&this.messageText.isTemplated()&&(v=Math.max(0,Math.ceil((this.G-v)/1E3)),v!==this.C&&(Y8(this.messageText,{TIME_REMAINING:String(v)}),this.C=v)))}};g.C(fG7,U2);g.u=fG7.prototype; g.u.init=function(v,O,Y){U2.prototype.init.call(this,v,O,{});O.image&&O.image.thumbnail?O.headline?O.description?O.actionButton&&g.q(O.actionButton,g.wZ)?(this.G.init(s2("ad-image"),O.image,Y),this.U.init(s2("ad-text"),O.headline,Y),this.B.init(s2("ad-text"),O.description,Y),v=["ytp-ad-underlay-action-button"],this.api.D().V("use_blue_buttons_for_desktop_player_underlay")&&v.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new Zn(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd, v),O.backgroundColor&&g.ym(this.element,"background-color",g.n_(O.backgroundColor)),g.w(this,this.actionButton),this.actionButton.C1(this.C),this.actionButton.init(s2("button"),g.q(O.actionButton,g.wZ),Y),O=g.Vq(this.api.D().experiments,"player_underlay_video_width_fraction"),this.api.D().V("place_shrunken_video_on_left_of_player")?(Y=this.Y,g.WI(Y,"ytp-ad-underlay-left-container"),g.on(Y,"ytp-ad-underlay-right-container"),g.ym(this.Y,"margin-left",Math.round((O+.02)*100)+"%")):(Y=this.Y,g.WI(Y,"ytp-ad-underlay-right-container"), g.on(Y,"ytp-ad-underlay-left-container")),g.ym(this.Y,"width",Math.round((1-O-.04)*100)+"%"),this.api.Sz()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.x7.bind(this)),this.api.addEventListener("resize",this.u$.bind(this))):g.LP(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.LP(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.LP(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.LP(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.u.show=function(){$bm(!0);this.actionButton&&this.actionButton.show();U2.prototype.show.call(this)}; g.u.hide=function(){$bm(!1);this.actionButton&&this.actionButton.hide();U2.prototype.hide.call(this)}; g.u.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.x7.bind(this));this.api.removeEventListener("resize",this.u$.bind(this));this.hide()}; g.u.onClick=function(v){U2.prototype.onClick.call(this,v);this.actionButton&&g.YW(this.actionButton.element,v.target)&&this.api.pauseVideo()}; g.u.x7=function(v){v==="transitioning"?(this.Y.classList.remove("ytp-ad-underlay-clickable"),this.show()):v==="visible"?this.Y.classList.add("ytp-ad-underlay-clickable"):v==="hidden"&&(this.hide(),this.Y.classList.remove("ytp-ad-underlay-clickable"))}; g.u.u$=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.ym(this.U.element,"font-size",v.width/40+"px")};g.C(CI,U2); CI.prototype.init=function(v,O,Y){U2.prototype.init.call(this,v,O,Y);O.toggledLoggingParams&&(this.toggledLoggingParams=O.toggledLoggingParams);O.answer&&g.q(O.answer,g.wZ)?(v=new Zn(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),v.C1(this.answer),v.init(s2("ytp-ad-survey-answer-button"),g.q(O.answer,g.wZ),Y),v.show()):O.answer&&g.q(O.answer,Ug)&&(this.Y=new GT(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd, ["ytp-ad-survey-answer-toggle-button"]),this.Y.C1(this.answer),g.w(this,this.Y),this.Y.init(s2("survey-answer-button"),g.q(O.answer,Ug),Y));this.show()}; CI.prototype.CQ=function(v){this.layoutId?Gb(this.Rd,v,this.layoutId,this.macros):(v=new g.iK("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.LP(v))}; CI.prototype.onClick=function(v){U2.prototype.onClick.call(this,v);if(this.api.D().V("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; CI.prototype.clear=function(){this.hide()};g.C(kp$,U2);kp$.prototype.init=function(v,O,Y){U2.prototype.init.call(this,v,O,Y);O.answer&&g.q(O.answer,Ug)&&(this.button=new GT(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.C1(this.Y),this.button.init(s2("survey-none-of-the-above-button"),g.q(O.answer,Ug),Y));this.show()};g.C(yR,Zn);yR.prototype.init=function(v,O,Y){Zn.prototype.init.call(this,v,O,Y);v=!1;O.text&&(O=g.ui(O.text),v=!g.Vh(O));v||g.Br(Error("No submit text was present in the renderer."))}; yR.prototype.onClick=function(v){this.publish("l");Zn.prototype.onClick.call(this,v)};g.C(aV,U2); aV.prototype.init=function(v,O,Y){U2.prototype.init.call(this,v,O,Y);if(v=O.skipOrPreviewRenderer)g.q(v,zo)?(v=g.q(v,zo),Y=new C_(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,this.B,!0),Y.C1(this.skipOrPreview),Y.init(s2("skip-button"),v,this.macros),g.w(this,Y),this.Y=Y):g.q(v,XK)&&(v=g.q(v,XK),Y=new jd(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,this.B,!1),Y.C1(this.skipOrPreview),Y.init(s2("ad-preview"),v,this.macros),Y.Ug.show(100),Y.show(),g.w(this,Y), this.Y=Y);this.Y==null&&(v=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(O)),g.LP(v));O.submitButton&&(v=O.submitButton,g.q(v,g.wZ)&&(v=g.q(v,g.wZ),Y=new yR(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd),Y.C1(this.submitButton),Y.init(s2("survey-submit"),v,this.macros),g.w(this,Y),this.U=Y));if(v=O.adBadgeRenderer)v=g.q(v,OgY),Y=new aE(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,!0,!0,!0),Y.C1(this.G),Y.init(s2("simple-ad-badge"), v,this.macros),this.adBadge=Y.element,g.w(this,Y);if(v=O.adDurationRemaining)v=g.q(v,mNS),Y=new h1(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,this.B,void 0,!0),Y.C1(this.G),Y.init(s2("ad-duration-remaining"),v,this.macros),g.w(this,Y);(O=O.adInfoRenderer)&&g.q(O,ZF)&&(v=new vK(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,this.element,void 0,!0),g.w(this,v),this.adBadge!==void 0?this.G.insertBefore(v.element,this.adBadge.nextSibling):v.C1(this.G),v.init(s2("ad-info-hover-text-button"), g.q(O,ZF),this.macros));this.show()}; aV.prototype.clear=function(){this.hide()};g.C(xg,U2);xg.prototype.init=function(v,O,Y){U2.prototype.init.call(this,v,O,Y);yJ7(this)}; xg.prototype.show=function(){this.G=Date.now();U2.prototype.show.call(this)}; xg.prototype.qf=function(){};g.C(aGJ,xg);g.u=aGJ.prototype;g.u.init=function(v,O,Y){var S=this;xg.prototype.init.call(this,v,O,Y);O.questionText&&Ub7(this,O.questionText);O.answers&&O.answers.forEach(function(d,r){g.q(d,fW)&&cJm(S,g.q(d,fW),Y,r)}); this.C=new Set(this.U.map(function(d){return d.Y.Y})); (v=O.noneOfTheAbove)&&(v=g.q(v,DNK))&&xbd(this,v,Y);O.surveyAdQuestionCommon&&CQi(this,O.surveyAdQuestionCommon);O.submitEndpoints&&(this.submitEndpoints=O.submitEndpoints);this.S(this.element,"change",this.onChange);this.show()}; g.u.qf=function(){p6g(this,!1);this.B.U.subscribe("l",this.WV8,this)}; g.u.onChange=function(v){v.target===this.noneOfTheAbove.button.Y?TWQ(this):this.C.has(v.target)&&(this.noneOfTheAbove.button.toggleButton(!1),p6g(this,!0))}; g.u.WV8=function(){var v=[],O=this.U.reduce(function(d,r,b){var z=r.toggledLoggingParams;r.Y&&r.Y.isToggled()&&z&&(d.push(z),v.push(b));return d},[]).join("&"),Y=this.submitEndpoints.map(function(d){if(!d.loggingUrls)return d; d=g.v5(d);d.loggingUrls=d.loggingUrls.map(function(r){r.baseUrl&&(r.baseUrl=lT(r.baseUrl,O));return r}); return d}); if(Y){Y=g.y(Y);for(var S=Y.next();!S.done;S=Y.next())S=S.value,this.layoutId?Gb(this.Rd,S,this.layoutId,this.macros):g.LP(Error("Missing layoutId for multi_select_question."))}this.api.D().V("supports_multi_step_on_desktop")&&this.Ug(v)}; g.u.clear=function(){this.api.D().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.C(pI,xg);pI.prototype.init=function(v,O,Y){var S=this;xg.prototype.init.call(this,v,O,Y);O.questionText&&Ub7(this,O.questionText);O.answers&&O.answers.forEach(function(d,r){g.q(d,fW)&&cJm(S,g.q(d,fW),Y,r)}); O.surveyAdQuestionCommon?CQi(this,O.surveyAdQuestionCommon):Wh(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(O)));this.show()}; pI.prototype.clear=function(){this.api.D().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.C(TN,U2);TN.prototype.init=function(v,O,Y){var S=this;U2.prototype.init.call(this,v,O,Y);if(this.api.D().V("supports_multi_step_on_desktop")){var d;this.conditioningRules=(d=O.conditioningRules)!=null?d:[];var r;this.U=(r=O.questions)!=null?r:[];var b;((b=O.questions)==null?0:b.length)&&Rj1(this,0)}else(O.questions||[]).forEach(function(z){g.q(z,LG)?FHE(S,g.q(z,LG),Y):g.q(z,QS)&&hjn(S,g.q(z,QS),Y)}); this.show()}; TN.prototype.clear=function(){this.api.D().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; TN.prototype.B=function(v){var O=this;if(this.api.D().V("supports_multi_step_on_desktop")){var Y;if((Y=this.conditioningRules)==null?0:Y.length){var S;if(v.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(d){return d.questionIndex===O.Y})==null)g.LP(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(d){if(d.questionIndex===O.Y)switch(d.condition){case "CONDITION_ALL_OF":var r;if((r=d.answerIndices)==null?0:r.every(function(z){return v.includes(z)}))S=d.nextQuestionIndex; break;case "CONDITION_ANY_OF":var b;if((b=d.answerIndices)==null?0:b.some(function(z){return v.includes(z)}))S=d.nextQuestionIndex; break;default:g.LP(Error("Expected specified condition in survey conditioning rules."))}}),S!=null)Rj1(this,S); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.LP(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.C(lo,U2); lo.prototype.init=function(v,O,Y){var S=this;U2.prototype.init.call(this,v,O,Y);v=O.timeoutSeconds||0;if(typeof v!=="number"||v<0)g.LP(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+v));else if(O.timeoutCommands)if(O.text)if(O.ctaButton&&g.q(O.ctaButton,g.wZ))if(O.brandImage)if(O.backgroundImage&&g.q(O.backgroundImage,IR)&&g.q(O.backgroundImage,IR).landscape){this.layoutId||g.LP(Error("Missing layoutId for survey interstitial."));ejE(this.interstitial,g.q(O.backgroundImage, IR).landscape);ejE(this.logoImage,O.brandImage);g.S9(this.text,g.ui(O.text));var d=["ytp-ad-survey-interstitial-action-button"];d.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Zn(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,d);g.w(this,this.actionButton);this.actionButton.C1(this.U);this.actionButton.init(s2("button"),g.q(O.ctaButton,g.wZ),Y);this.actionButton.show();this.Y=new p_(this.api,v*1E3);this.Y.subscribe("g",function(){S.transition.hide()}); g.w(this,this.Y);this.S(this.element,"click",function(r){var b=r.target===S.interstitial;r=S.actionButton.element.contains(r.target);if(b||r)if(S.transition.hide(),b)S.api.onAdUxClicked(S.componentType,S.layoutId)}); this.transition.show(100)}else g.LP(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.LP(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.LP(Error("SurveyTextInterstitialRenderer has no button."));else g.LP(Error("SurveyTextInterstitialRenderer has no text."));else g.LP(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; lo.prototype.clear=function(){this.hide()}; lo.prototype.show=function(){E4c(!0);U2.prototype.show.call(this)}; lo.prototype.hide=function(){E4c(!1);U2.prototype.hide.call(this)};g.C(Fd,Sd);g.u=Fd.prototype; g.u.init=function(v,O){Sd.prototype.init.call(this,v,O,{});if(O.durationMilliseconds){if(O.durationMilliseconds<0){g.LP(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+O.durationMilliseconds));return}this.U=O.durationMilliseconds}else this.U=this.Y.BL();var Y;if((Y=O.previewText)==null||!Y.text||g.Vh(O.previewText.text))g.LP(Error("No text is returned for AdPreview."));else{this.C=O.previewText;O.previewText.isTemplated||g.S9(this.G,O.previewText.text);var S; if(((S=this.api.getVideoData(1))==null?0:S.mU)&&O.previewImage){var d,r;(v=((r=lc(((d=O.previewImage)==null?void 0:d.sources)||[],52,!1))==null?void 0:r.url)||"")&&v.length?(this.previewImage=new g.k9({J:"img",W:"ytp-preview-ad__image",T:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",v),g.w(this,this.previewImage),this.previewImage.C1(this.element)):g.LP(Error("Failed to get imageUrl in AdPreview."))}else this.G.classList.add("ytp-preview-ad__text--padding--wide")}}; g.u.clear=function(){this.hide()}; g.u.hide=function(){rY(this);Sd.prototype.hide.call(this)}; g.u.show=function(){dY(this);Sd.prototype.show.call(this)}; g.u.Iq=function(){this.hide()}; g.u.nT=function(){if(this.Y){var v=this.Y.getProgressState();if(v!=null&&v.current)if(v=1E3*v.current,v>=this.U)this.transition.hide();else{var O;if((O=this.C)==null?0:O.isTemplated)if(O=Math.max(0,Math.ceil((this.U-v)/1E3)),O!==this.B){var Y,S;(v=(Y=this.C)==null?void 0:(S=Y.text)==null?void 0:S.replace("{TIME_REMAINING}",String(O)))&&g.S9(this.G,v);this.B=O}}}};g.C(ha,U2); ha.prototype.init=function(v,O){U2.prototype.init.call(this,v,O,{});var Y,S;if((v=((S=lc(((Y=O.image)==null?void 0:Y.sources)||[],Q4F(O),!0))==null?void 0:S.url)||"")&&v.length){Y=this.BW("ytp-ad-avatar");Y.src=v;var d,r;if(S=(d=O.interaction)==null?void 0:(r=d.accessibility)==null?void 0:r.label)Y.alt=S;switch(O.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(O.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.LP(Error("Failed to get imageUrl in AdAvatar."))}; ha.prototype.clear=function(){this.hide()}; ha.prototype.onClick=function(v){U2.prototype.onClick.call(this,v)};g.C(RV,U2); RV.prototype.init=function(v,O){U2.prototype.init.call(this,v,O,{});var Y;v=(Y=O.label)==null?void 0:Y.content;if((Y=v!=null&&!g.Vh(v))||O.iconImage){Y&&(this.buttonText=new g.k9({J:"span",W:"ytp-ad-button-vm__text",M3:v}),g.w(this,this.buttonText),this.buttonText.C1(this.element));var S,d,r=((S=O.interaction)==null?0:(d=S.accessibility)==null?0:d.label)||Y?v:"";r&&PM(this.element,r+" This link opens in new tab");JB(this.element);if(O.iconImage){S=void 0;if(O.iconImage){a:{d=O.iconImage;if(d.sources)for(d= g.y(d.sources),v=d.next();!v.done;v=d.next())if(v=v.value,r=void 0,(r=v.clientResource)==null?0:r.imageName){d=v;break a}d=void 0}if(d){var b;S={iconType:(b=d.clientResource)==null?void 0:b.imageName}}}b=BH(S,!1,this.U);b!=null&&(this.buttonIcon=new g.k9({J:"span",W:"ytp-ad-button-vm__icon",K:[b]}),g.w(this,this.buttonIcon),O.iconLeading?(vL(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):Y?(this.buttonIcon.C1(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.C1(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(O.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.Y?"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(O.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.Br(Error("AdButton does not have label or an icon."))}; RV.prototype.clear=function(){this.hide()}; RV.prototype.onClick=function(v){U2.prototype.onClick.call(this,v)};g.C(LHF,Sd);g.u=LHF.prototype; g.u.init=function(v,O){Sd.prototype.init.call(this,v,O,{});this.api.D().V("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.BW("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"),vL(this.BW("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(v=g.q(O.avatar,IV)){var Y=O.headline;if(Y){var S=O.description;if(S){var d=g.q(O.button,nI);d?(this.adAvatar.init(s2("ad-avatar"),v),this.headline.init(s2("ad-simple-attributed-string"),new ed(Y)),this.description.init(s2("ad-simple-attributed-string"),new ed(S)),Y.content&&Y.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(s2("ad-button"),d),this.startMilliseconds=O.startMs||0,this.api.Sz()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.fA.bind(this)),dY(this)):g.LP(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.LP(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.LP(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.LP(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.u.nT=function(){if(this.Y){var v=this.Y.getProgressState();v&&v.current&&1E3*v.current>=this.startMilliseconds&&(rY(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.u.Iq=function(){this.clear()}; g.u.onClick=function(v){this.api.pauseVideo();Sd.prototype.onClick.call(this,v)}; g.u.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.fA.bind(this))}; g.u.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Sd.prototype.show.call(this)}; g.u.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Sd.prototype.hide.call(this)}; g.u.fA=function(v){v==="hidden"?this.show():this.hide()};g.C(ef,U2);g.u=ef.prototype; g.u.init=function(v,O){U2.prototype.init.call(this,v,O,{});if(!O.label||g.Vh(O.label))g.LP(Error("No label is returned for SkipAdButton."));else if(g.S9(this.B,O.label),v=BH({iconType:"SKIP_NEXT_NEW"}),v==null)g.LP(Error("Unable to retrieve icon for SkipAdButton"));else if(this.G=new g.k9({J:"span",W:"ytp-skip-ad-button__icon",K:[v]}),g.w(this,this.G),this.G.C1(this.element),this.api.D().experiments.T0("enable_skip_to_next_messaging")&&(O=g.Ac(O.targetId)))this.U=!0,this.element.setAttribute("data-tooltip-target-id",O), this.element.setAttribute("data-tooltip-target-fixed","")}; g.u.onClick=function(v){v&&v.preventDefault();var O,Y;Sx$(v,{contentCpn:(Y=(O=this.api.getVideoData(1))==null?void 0:O.clientPlaybackNonce)!=null?Y:""})===0?this.api.PW("onAbnormalityDetected"):(U2.prototype.onClick.call(this,v),this.api.PW("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.u.clear=function(){this.Y.reset();this.hide()}; g.u.hide=function(){U2.prototype.hide.call(this)}; g.u.show=function(){this.Y.start();U2.prototype.show.call(this);this.U&&this.api.D().experiments.T0("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.C(BWd,Sd);g.u=BWd.prototype; g.u.init=function(v,O){Sd.prototype.init.call(this,v,O,{});v=g.q(O.preskipState,z_C);var Y;if((Y=this.api.getVideoData())==null?0:Y.isDaiEnabled()){if(!v){g.LP(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.U=new Fd(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,this.Y);g.w(this,this.U);this.U.C1(this.element);var S;(S=this.U)==null||S.init(s2("preview-ad"),v);(Y=this.U)!=null&&(Y.transition.show(100),Y.show())}(Y=g.q(O.skippableState,gIY))?(O.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=O.skipOffsetMilliseconds:(g.Br(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.G.init(s2("skip-button"),Y),this.show()):g.LP(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.u.show=function(){dY(this);Sd.prototype.show.call(this)}; g.u.hide=function(){!this.isSkippable&&this.U?this.U.hide():this.G&&this.G.hide();rY(this);Sd.prototype.hide.call(this)}; g.u.clear=function(){var v;(v=this.U)==null||v.clear();this.G&&this.G.clear();rY(this);Sd.prototype.hide.call(this)}; g.u.Iq=function(){this.hide()}; g.u.nT=function(){if(1E3*this.Y.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var v;(v=this.U)!=null&&v.transition.hide();(v=this.G)!=null&&(v.transition.show(),v.show())}};g.C(E5,U2); E5.prototype.init=function(v,O){U2.prototype.init.call(this,v,O,{});if(O.label){var Y;((Y=O.label)==null?0:Y.content)&&!g.Vh(O.label.content)&&(this.linkText=new g.k9({J:"span",W:"ytp-visit-advertiser-link__text",M3:O.label.content}),g.w(this,this.linkText),this.linkText.C1(this.element));var S,d;if((S=O.interaction)==null?0:(d=S.accessibility)==null?0:d.label)PM(this.element,O.interaction.accessibility.label+" This link opens in new tab");else{var r;((r=O.label)==null?0:r.content)&&!g.Vh(O.label.content)&&PM(this.element, O.label.content+" This link opens in new tab")}JB(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.LP(Error("No label found in VisitAdvertiserLink."))}; E5.prototype.onClick=function(v){U2.prototype.onClick.call(this,v);this.api.onAdUxClicked(this.componentType,this.layoutId)}; E5.prototype.clear=function(){this.hide()};g.C(QR,U2); QR.prototype.init=function(v,O,Y,S){U2.prototype.init.call(this,v,O,{});if(O.skipOrPreview){Y=O.skipOrPreview;v=g.q(Y,MYN);Y=g.q(Y,z_C);if(v)this.cK=new BWd(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,this.U),g.w(this,this.cK),this.cK.C1(this.j),this.cK.init(s2("skip-ad"),v);else{var d;Y&&((d=this.api.getVideoData())==null?0:d.isDaiEnabled())&&(this.B=new Fd(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,this.U,1),g.w(this,this.B),this.B.C1(this.j),this.B.init(s2("ad-preview"), Y),d=this.B,d.transition.show(100),d.show())}if(d=g.q(O.skipOrPreview,MYN))var r=d.skipOffsetMilliseconds}O.playerAdCard&&(d=g.q(O.playerAdCard,sTw))&&(this.playerAdCard=new LHF(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,this.U),g.w(this,this.playerAdCard),this.playerAdCard.C1(this.N3),this.playerAdCard.init(s2("ad-avatar-lockup-card"),d));O.adBadgeRenderer&&((d=g.q(O.adBadgeRenderer,qm))?(this.G=new Qe(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,!0),g.w(this, this.G),this.G.C1(this.Y),this.G.init(s2("ad-badge"),d)):g.LP(Error("AdBadgeViewModel is not found in player overlay layout.")));O.adPodIndex&&(d=g.q(O.adPodIndex,bgN))&&(this.adPodIndex=new L_(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd),g.w(this,this.adPodIndex),this.adPodIndex.C1(this.Y),this.adPodIndex.init(s2("ad-pod-index"),d));O.adInfoRenderer&&((d=g.q(O.adInfoRenderer,ZF))?(this.adInfoButton=new vK(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,this.element, void 0,!0),g.w(this,this.adInfoButton),this.G!==void 0?this.Y.insertBefore(this.adInfoButton.element,this.G.element.nextSibling):this.adInfoButton.C1(this.Y),this.adInfoButton.init(s2("ad-info-hover-text-button"),d,this.macros)):g.Br(Error("AdInfoRenderer is not found in player overlay layout.")));var b;d=(b=this.api.getVideoData())==null?void 0:b.isDaiEnabled();O.adDurationRemaining&&d&&(b=g.q(O.adDurationRemaining,mNS))&&(this.adDurationRemaining=new h1(this.api,this.layoutId,this.interactionLoggingClientData, this.Rd,this.U,S.videoAdDurationSeconds,!0),g.w(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.Y.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.C1(this.Y),this.adDurationRemaining.init(s2("ad-duration-remaining"),b,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));O.visitAdvertiserLink&&(S=g.q(O.visitAdvertiserLink,AsU))&&(this.visitAdvertiserLink=new E5(this.api,this.layoutId, this.interactionLoggingClientData,this.Rd),g.w(this,this.visitAdvertiserLink),this.visitAdvertiserLink.C1(this.Y),this.visitAdvertiserLink.init(s2("visit-advertiser-link"),S));O.adDisclosureBanner&&(O=g.q(O.adDisclosureBanner,rsJ))&&(this.adDisclosureBanner=new BK(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd),g.w(this,this.adDisclosureBanner),this.adDisclosureBanner.C1(this.Ug),this.adDisclosureBanner.init(s2("ad-disclosure-banner"),O));this.C=new wY(this.api,this.U,r,!0);g.w(this, this.C);g.TW(this.api,this.C.element,4);this.show()}; QR.prototype.clear=function(){this.hide()};g.C(ZEJ,U2);g.u=ZEJ.prototype; g.u.init=function(v,O){U2.prototype.init.call(this,v,O,{});if(O!=null&&O.title)if(v=O.title)if(this.headline.init(s2("ad-simple-attributed-string"),new ed(v)),v=g.q(O.moreInfoButton,nI)){if(this.moreInfoButton.init(s2("ad-button"),v),O.descriptions)O.descriptions.length>0&&(v=O.descriptions[0])&&(this.Y=new EO(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd),g.w(this,this.Y),this.Y.C1(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.Y.init(s2("ad-simple-attributed-string"), new ed(v))),O.descriptions.length>1&&(O=O.descriptions[1])&&(this.U=new EO(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd),g.w(this,this.U),this.U.C1(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.U.init(s2("ad-simple-attributed-string"),new ed(O)))}else g.LP(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.LP(Error("No headline found in AdGridCardText."));else g.LP(Error("No headline found in AdGridCardText."))}; g.u.onClick=function(v){U2.prototype.onClick.call(this,v);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.u.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var v;(v=this.Y)==null||v.clear();var O;(O=this.U)==null||O.clear()}; g.u.hide=function(){this.headline.hide();this.moreInfoButton.hide();var v;(v=this.Y)==null||v.hide();var O;(O=this.U)==null||O.hide();U2.prototype.hide.call(this)}; g.u.show=function(){U2.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var v;(v=this.Y)==null||v.show();var O;(O=this.U)==null||O.show()};g.C(LI,U2);LI.prototype.init=function(v,O){U2.prototype.init.call(this,v,O,{});if(O!=null&&O.gridCards)if(O.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.LP(Error("Only single column style is currently supported in AdGridCardCollection."));else for(v=g.y(O.gridCards),O=v.next();!O.done;O=v.next()){if(O=g.q(O.value,Wyv)){var Y=new ZEJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd);g.w(this,Y);Y.C1(this.element);Y.init(s2("ad-grid-card-text"),O);this.Y.push(Y)}}else g.LP(Error("No grid cards found in AdGridCardCollection."))}; LI.prototype.show=function(){for(var v=g.y(this.Y),O=v.next();!O.done;O=v.next())O.value.show();U2.prototype.show.call(this)}; LI.prototype.clear=function(){this.hide();for(var v=g.y(this.Y),O=v.next();!O.done;O=v.next())O.value.clear()}; LI.prototype.hide=function(){for(var v=g.y(this.Y),O=v.next();!O.done;O=v.next())O.value.hide();U2.prototype.hide.call(this)};g.C(Bo,Sd);g.u=Bo.prototype;g.u.init=function(v,O,Y,S,d){d=d===void 0?0:d;Sd.prototype.init.call(this,v,O,Y,S);this.playerProgressOffsetMs=d;dY(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.JX.bind(this));this.api.addEventListener("resize",this.aR.bind(this));this.api.Sz()?(this.U=!0,this.api.tp(!0),this.show()):this.hide()}; g.u.nT=function(){if(this.Y){var v=this.Y.getProgressState();v&&v.current&&!this.U&&1E3*v.current>=this.playerProgressOffsetMs&&(this.U=!0,this.api.tp(!0),this.show())}}; g.u.Iq=function(){this.U&&this.api.tp(!1);this.hide()}; g.u.clear=function(){this.api.tp(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.JX.bind(this));this.api.removeEventListener("resize",this.aR.bind(this));rY(this);this.hide()}; g.u.hide=function(){X6g(!1);Sd.prototype.hide.call(this)}; g.u.show=function(){X6g(!0);Sd.prototype.show.call(this)};g.C(w6n,Bo);g.u=w6n.prototype; g.u.init=function(v,O,Y,S){if(O!=null&&O.adGridCardCollection)if(O!=null&&O.adButton){var d=Number(O.playerProgressOffsetMs||"0");isNaN(d)?Bo.prototype.init.call(this,v,O,Y,S):Bo.prototype.init.call(this,v,O,Y,S,d);v=O.headline;Y=g.q(O.adAvatar,IV);v&&Y?(this.headline=new EO(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd),g.w(this,this.headline),this.headline.C1(this.BW("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(s2("ad-simple-attributed-string"),new ed(v)), this.adAvatar=new ha(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd),g.w(this,this.adAvatar),this.adAvatar.C1(this.BW("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(s2("ad-avatar"),Y)):this.B.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");v=g.q(O.adGridCardCollection,jTN);this.adGridCardCollection.init(s2("ad-grid-card-collection"),v);O=g.q(O.adButton,nI);this.adButton.init(s2("ad-button"),O); this.hide()}else g.LP(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.LP(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.u.onClick=function(v){(this.adButton&&g.YW(this.adButton.element,v.target)||this.adAvatar&&g.YW(this.adAvatar.element,v.target))&&this.api.pauseVideo();Bo.prototype.onClick.call(this,v);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.u.aR=function(){}; g.u.clear=function(){this.hide();var v;(v=this.headline)==null||v.clear();var O;(O=this.adAvatar)==null||O.clear();this.adGridCardCollection.clear();this.adButton.clear();Bo.prototype.clear.call(this)}; g.u.show=function(){var v;(v=this.headline)==null||v.show();var O;(O=this.adAvatar)==null||O.show();this.adGridCardCollection.show();this.adButton.show();Bo.prototype.show.call(this)}; g.u.hide=function(){var v;(v=this.headline)==null||v.hide();var O;(O=this.adAvatar)==null||O.hide();this.adGridCardCollection.hide();this.adButton.hide();Bo.prototype.hide.call(this)}; g.u.JX=function(v){v==="transitioning"?(this.G.classList.remove("ytp-ad-underlay-clickable"),this.show()):v==="visible"?this.G.classList.add("ytp-ad-underlay-clickable"):v==="hidden"&&(this.hide(),this.G.classList.remove("ytp-ad-underlay-clickable"))};g.C(Zy,U2); Zy.prototype.init=function(v,O){U2.prototype.init.call(this,v,O,{});if(O.attributes===void 0)g.LP(Error("No attributes found in AdDetailsLineViewModel."));else if(O.style===void 0)g.LP(Error("No style found in AdDetailsLineViewModel."));else{v=g.y(O.attributes);for(var Y=v.next();!Y.done;Y=v.next())if(Y=Y.value,Y.text!==void 0){Y=Y.text;var S=O.style,d=new EO(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd);g.w(this,d);d.C1(this.element);a:switch(S){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":S="ytp-ad-details-line__text--style-responsive"; break a;default:S="ytp-ad-details-line__text--style-standard"}d.element.classList.add(S);d.init(s2("ad-simple-attributed-string"),new ed(Y));this.Y.push(d)}this.show()}}; Zy.prototype.show=function(){this.Y.forEach(function(v){v.show()}); U2.prototype.show.call(this)}; Zy.prototype.clear=function(){this.hide()}; Zy.prototype.hide=function(){this.Y.forEach(function(v){v.hide()}); U2.prototype.hide.call(this)};g.C(Xd,U2);Xd.prototype.init=function(v,O){U2.prototype.init.call(this,v,O,{});var Y,S;(v=((S=lc(((Y=O.image)==null?void 0:Y.sources)||[]))==null?void 0:S.url)||"")&&v.length?(Y=this.BW("ytp-image-background-image"),g.ym(Y,"backgroundImage","url("+v+")"),O.blurLevel!==void 0&&g.ym(Y,"filter","blur("+O.blurLevel+"px)"),O.gradient!==void 0&&(O=new g.K({J:"div",hK:["ytp-image-background--gradient-vertical"]}),g.w(this,O),O.C1(this.element)),this.show()):g.LP(Error("Failed to get imageUrl in ImageBackground."))}; Xd.prototype.clear=function(){this.hide()};g.C(IGE,Sd);g.u=IGE.prototype;g.u.init=function(v,O){Sd.prototype.init.call(this,v,O,{});g.ym(this.G,"stroke-dasharray","0 "+this.U);this.show()}; g.u.clear=function(){this.hide()}; g.u.hide=function(){rY(this);Sd.prototype.hide.call(this)}; g.u.show=function(){dY(this);Sd.prototype.show.call(this)}; g.u.Iq=function(){this.hide()}; g.u.nT=function(){if(this.Y){var v=this.Y.getProgressState();v!=null&&v.current!=null&&g.ym(this.G,"stroke-dasharray",v.current/v.seekableEnd*this.U+" "+this.U)}};g.C(wU,U2); wU.prototype.init=function(v,O){U2.prototype.init.call(this,v,O,{});if(n4n(O)){this.adAvatar=new ha(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd);g.w(this,this.adAvatar);this.adAvatar.C1(this.BW("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(s2("ad-avatar"),g.q(O.adAvatar,IV));this.headline=new EO(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd);g.w(this,this.headline);this.headline.C1(this.BW("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(s2("ad-simple-attributed-string"),new ed(O.headline));if(v=g.q(O.adDetailsLine,dvN))this.detailsLine=new Zy(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd),g.w(this,this.detailsLine),this.detailsLine.C1(this.BW("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(s2("ad-details-line"),v);this.adButton=new RV(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,!0);g.w(this,this.adButton); this.adButton.C1(this.BW("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(s2("ad-button"),g.q(O.adButton,nI));this.adBadge=new Qe(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,!0);g.w(this,this.adBadge);this.adBadge.C1(this.B);this.adBadge.init(s2("ad-badge"),g.q(O.adBadge,qm));this.adInfoButton=new vK(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,this.element,void 0,!0);g.w(this,this.adInfoButton);this.adInfoButton.C1(this.B); this.adInfoButton.init(s2("ad-info-hover-text-button"),g.q(O.adInfoRenderer,ZF),this.macros);if(v=g.q(O.skipAdButton,gIY))this.skipAdButton=new ef(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd),g.w(this,this.skipAdButton),this.skipAdButton.C1(this.element),this.skipAdButton.init(s2("skip-button"),v);this.U=new TX(O.durationMilliseconds);g.w(this,this.U);if(v=g.q(O.countdownViewModel,VYL))this.Y=new IGE(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd,this.U),g.w(this, this.Y),this.Y.C1(this.BW("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.Y.init(s2("timed-pie-countdown"),v);if(O=g.q(O.imageBackground,oIL))this.imageBackground=new Xd(this.api,this.layoutId,this.interactionLoggingClientData,this.Rd),g.w(this,this.imageBackground),this.imageBackground.C1(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(s2("image-background"), O);this.show();this.element.focus()}}; wU.prototype.clear=function(){g.hi(this.G);this.hide()}; wU.prototype.show=function(){q_Q(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();U2.prototype.show.call(this)}; wU.prototype.hide=function(){q_Q(!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.Y&&this.Y.hide();this.imageBackground&&this.imageBackground.hide();U2.prototype.hide.call(this)};g.C(Ja,g.MU);g.u=Ja.prototype;g.u.BL=function(){return 1E3*this.api.getDuration(this.fv,!1)}; g.u.stop=function(){this.Y&&this.bk.g2(this.Y)}; g.u.vD=function(){var v=this.api.getProgressState(this.fv);this.U={seekableStart:v.seekableStart,seekableEnd:v.seekableEnd,current:this.api.getCurrentTime(this.fv,!1)};this.publish("h")}; g.u.getProgressState=function(){return this.U}; g.u.kc=function(v){g.UO(v,2)&&this.publish("g")};var IQK="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.C(KI,mh); KI.prototype.B=function(v){var O=v.id,Y=v.content,S=Y.componentType;if(!IQK.includes(S))switch(v.actionType){case 1:v=this.api;var d=this.Rd,r=Y.layoutId,b=Y.interactionLoggingClientData,z=Y instanceof t8?Y.As:!1,M=Y instanceof t8||Y instanceof x8?Y.xL:!1;b=b===void 0?{}:b;z=z===void 0?!1:z;M=M===void 0?!1:M;switch(S){case "invideo-overlay":v=new bEJ(v,r,b,d);break;case "player-overlay":v=new IE(v,r,b,d,new Ja(v),M);break;case "player-overlay-layout":v=new QR(v,r,b,d,new Ja(v));break;case "survey":v= new TN(v,r,b,d);break;case "ad-action-interstitial":v=new OEF(v,r,b,d,z,M);break;case "video-interstitial-buttoned-centered":v=new wU(v,r,b,d);break;case "survey-interstitial":v=new lo(v,r,b,d);break;case "ad-message":v=new VCQ(v,r,b,d,new Ja(v,1));break;case "player-underlay":v=new fG7(v,r,b,d);break;case "display-underlay-text-grid-cards":v=new w6n(v,r,b,d,new Ja(v));break;default:v=null}if(!v){g.Br(Error("No UI component returned from ComponentFactory for type: "+S));break}g.Gw(this.U,O)?g.Br(Error("Ad UI component already registered: "+ O)):this.U[O]=v;v.bind(Y);Y instanceof iI?this.G?this.G.append(v.IW):g.Br(Error("Underlay view was not created but UnderlayRenderer was created")):this.Z.append(v.IW);break;case 2:O=JJJ(this,v);if(O==null)break;O.bind(Y);break;case 3:Y=JJJ(this,v),Y!=null&&(g.sM(Y),g.Gw(this.U,O)?(Y=this.U,O in Y&&delete Y[O]):g.Br(Error("Ad UI component does not exist: "+O)))}}; KI.prototype.cW=function(){g.gv(Object.values(this.U));this.U={};mh.prototype.cW.call(this)};g.C(KH7,g.gx);g.u=KH7.prototype;g.u.create=function(){try{PQF(this),this.load(),this.created=!0,PQF(this)}catch(v){f_(v instanceof Error?v:String(v))}}; g.u.load=function(){try{mbg(this)}finally{mQ(U5(this.Y).LT)&&this.player.po("ad",1)}}; g.u.destroy=function(){var v=this.player.getVideoData(1);this.Y.Y.Py.TZ(v&&v.clientPlaybackNonce||"");this.unload();this.created=!1}; g.u.unload=function(){g.gx.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(O){f_(O instanceof Error?O:String(O))}if(this.U!=null){var v=this.U;this.U=null;v.dispose()}this.G.reset()}; g.u.tS=function(){return!1}; g.u.getAdState=function(){return-1}; g.u.getOptions=function(){return Object.values(wLU)}; g.u.UK=function(v,O){O=O===void 0?{}:O;switch(v){case "replaceUrlMacros":return v=O,v.url?(O=gSE(this.player),Object.assign(O,v.Kj3),v=g.lp(v.url,O)):v=null,v;case "onAboutThisAdPopupClosed":this.u4(O);break;case "executeCommand":v=O;v.command&&v.layoutId&&this.executeCommand(v);break;default:return null}}; g.u.wr=function(v){var O;return!((O=this.Y.Y.Pq)==null||!O.get().wr(v))}; g.u.u4=function(v){v.isMuted&&ufg(U5(this.Y).TY,U5(this.Y).gS,v.layoutId);this.m6&&this.m6.u4()}; g.u.executeCommand=function(v){U5(this.Y).Rd.executeCommand(v.command,v.layoutId)};g.Gc("yt.player.Application.create",g.MI.create);g.Gc("yt.player.Application.createAlternate",g.MI.create);wpJ(Rm(),XLN);var qv8=g.il("ytcsi.tick");qv8&&qv8("pe");g.se("ad",KH7);g.C(g.io,g.X);g.io.prototype.start=function(v,O,Y){this.config={from:v,to:O,duration:Y,startTime:(0,g.J)()};this.next()}; g.io.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.io.prototype.next=function(){if(this.config){var v=this.config,O=v.from,Y=v.to,S=v.duration;v=v.startTime;var d=(0,g.J)()-v;v=this.Y;S=Kzi(v,d/S);if(S==0)v=v.L;else if(S==1)v=v.X;else{d=TK(v.L,v.Z,S);var r=TK(v.Z,v.C,S);v=TK(v.C,v.X,S);d=TK(d,r,S);r=TK(r,v,S);v=TK(d,r,S)}v=g.xr(v,0,1);this.callback(O+(Y-O)*v);v<1&&this.delay.start()}};g.C(g.me,g.K);g.u=g.me.prototype;g.u.hasSuggestions=function(){return this.suggestionData.length>0}; g.u.L5=function(){this.U&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.u.show=function(){g.K.prototype.show.call(this);OnC(this)}; g.u.AR=function(){this.U&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.u.ys=function(){this.ze(this.api.j4().getPlayerSize())}; g.u.ze=function(v){var O=this.api.isEmbedsShortsMode()?.5625:16/9,Y=this.api.Z9();v=v.width-(Y?112:58);Y=Math.ceil(v/(Y?320:192));var S=(v-Y*8)/Y;O=Math.floor(S/O);for(var d=g.y(this.Y),r=d.next();!r.done;r=d.next())r=r.value.BW("ytp-suggestion-image"),r.style.width=S+"px",r.style.height=O+"px";this.suggestions.element.style.height=O+"px";this.B=S;this.X=O;this.containerWidth=v;this.columns=Y;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.ta(this)}; g.u.onVideoDataChange=function(){var v=this.api.D(),O=this.api.getVideoData();this.C=O.KE?!1:v.B;this.suggestionData=O.suggestions?g.EM(O.suggestions,function(Y){return Y&&!Y.playlistId}):[]; SEJ(this);O.KE?this.title.update({title:g.kD("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:O.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.u.scrollTo=function(v){v=g.xr(v,this.containerWidth-this.suggestionData.length*(this.B+8),0);this.L.start(this.scrollPosition,v,1E3);this.scrollPosition=v;g.ta(this);OnC(this)};})(_yt_player);