var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opener = _____WB$wombat$assign$function_____("opener");
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 o5='?;---;\\.a1\\.googlevideo\\.com$;cmo=;1;;1970-01-01T04:45:34.000+04:45;1970-01-01T08:31:14.000+08:30;mn;/api/manifest;1970-01-01T05:16:00.000+05:15;youtube.player.web_20250402_01_RC00;Untrusted URL;true;1969-12-31T22:48:39.000-01:15;,[}[u;XuP1rNHD1M81Z0BquL-_w8_;,;rr;/;/file/index.m3u8;/videoplayback;=;cmo=td;redirector.googlevideo.com;1970-01-01T07:30:16.000+07:30;&;fallback_count;1970-01-01T02:45:44.000+02:45;www.youtube.com;://;cmo=pf;1970-01-01T02:00:10.000+02:00;\\.googlevideo\\.com$;a1.googlevideo.com;local;)}"{},;%3D;r;undefined;:;OY-iRjM;playerfallback;cmo;//;/initplayback;mA6LeRr;rr?[1-9].*\\.c\\.youtube\\.com$;index.m3u8;fvip;application/json;({(,,'.split(";"),
zp,kp9,oYa,EC,zan,ik6,q9,D9C,N9,$9R,uD,wI,mn,j59,eaH,CDI,tn,ZM,AnR,p6a,EYM,X6a,c6,OC,VR,I5,H6,a5,qCI,SH,R5,gI,ux5,w6k,zt,m9D,TIx,i7,lMH,Q5I,pC,E$,XY,s5H,rnC,BIR,Gpp,U9n,tHx,Zkp,vYR,N$,cnY,mA,PD9,Hk5,Tt,aMH,SCH,Qn,bkn,Bl,U$,O$,Vn,Ip,Hl,d9k,Jnn,ap,d9,SC,ynI,Ran,gY6,YCC,JD,nY5,yn,Rp,g9,MH6,Ln9,nC,Knk,WnC,ir,FAC,C8,ktH,oGC,jS,zV9,x$6,iCI,ur,D$I,jpn,XlC,lr,EG5,C7a,N95,m$n,hO,rN,G8,BY,T9C,hV5,U7,tO,ZP,PY,O7,VY,HY,SS,br,ZCC,JO,vGH,R2,gN,Yr,f8,VCY,Fs,zn,iI,IHn,xN,HCY,aHH,DT,oh,$N,ji,ei,S$x,Ce,pe,d$n,Ep,Xs,
q3,RVn,Qp,gGI,Y$5,nGn,MCp,lI,Tn,wR,JDH,yDk,LA6,KA9,WAp,FvD,rR,B9,Gn,k89,Up,ZT,v9,c9,orI,Op,z5Y,H9,Ih,$Tp,Si,dR,j26,e55,Jl,yp,Rh,gR,ne,YN,Le,M3,pY6,oK,fe,W9,Fv,Ern,x6,XYx,it,Da,CW,A0,pW,$6,eY,jY,Xv,AOa,q6,q7p,DH,uNp,N6,ut,Ke,k6,w$,mq,eC,TS,mT5,lt,QC,sD,r$,BR,GS,TN5,UD,lP5,t0,Q2n,vR,Za,cR,PR,OD,VC,IK,h5R,rOx,aK,BNp,G8x,UTC,bt,d$,RK,Z8M,g$,vrn,Y6,Prn,nW,VSx,M6,LW,fW,IPY,KW,H8I,WR,aPn,S7R,Ff,b8p,k$,ou,x$,iY,JOC,jy,gr5,dTD,ey,AE,pU,MSa,Y79,Xf,NX,Lva,KvD,WvI,uY,we,mL,TP,lY,Q$,hE,knI,oN9,zuD,ie9,D3M,B1,
$3D,jha,GP,Uv,tE,Zg,euY,END,X9H,NRM,qp5,usn,m3C,Ov,V$,Iu,H1,au,bY,de,huC,y$,ge,Y$,nU,LU,fU,sh6,KU,W1,ks,BR9,GnC,oM,xs,i3,$s,jI,Cx,Ag,Vip,ITk,HeH,aTY,px,qv,SpR,beI,d3R,Nv,u3,wf,mP,TT,hg,rf,UV,vB,Jl5,yln,aM,Ruk,Mv,Lx,nNY,Wsn,fTk,kSR,WB,FE,iE,x6C,D6D,iWn,$M,e0,$6x,j0,XE,Kx,enn,jKM,mX,wd,fx,TV,lE,Qz,CtR,sy,pRk,GV,E6n,Uy,ts,ZA,vk,XRn,qDn,N$C,ck,uva,re,x3p,Hk,wRa,m6C,a_,T$p,I_,QKD,lan,Vz,S0,bE,hnH,sKn,r0Y,B$D,dd,GSC,Js,Al6,CI6,yz,R_,YM,fi,ZWn,Ki,Wk,kV,v6n,c0p,oU,HWk,j8,OWk,IaY,DJ,xV,pw,Ez,aaD,Nt,SDn,uh,
wP,bW6,J05,QD,Rnn,sz,rP,B4,g6H,t1,v4,Lq5,fan,KqI,Oz,o$H,Gh,n6x,xX5,kPI,WqD,FLH,iUk,zgY,IU,S8,$XM,jun,egM,CYn,AE9,dP,p19,yD,E$a,NeY,ufa,RU,gP,YV,fw,mXp,Kw,W4,Fb,Tep,lgp,zQ,QuR,iy,Dd,hDM,rgH,GTn,BfY,UvY,jX,AK,qn,uy,wL,mm,TQ,ly,vsR,cgx,QX,P3M,hK,s2,Nn,rL,BM,U2,$G,tK,Oxp,vM,HxI,cM,PM,O2,a8Y,SVM,bxn,dv9,VX,JgC,IW,HM,RDR,nsp,MID,aW,WP5,KPC,FXY,kVx,oMx,SX,zRY,LP6,by,x_5,iiD,dL,$_a,j_H,eR6,CEa,AsH,RW,pkx,EMa,Xkp,qyR,wkk,Ndn,gL,Yy,n7,Mn,L7,f7,K7,WM,TdR,kD,FB,lAk,o4,Q_M,zi,hRR,s_Y,rsC,Bdk,xD,DE,t0n,i8,ZiD,
$D,jK,vMn,eK,Cf,Aa,pf,EF,XB,IAx,csI,wl,V0H,m$,OiD,u8,qr,PEk,Nr,l8,aAC,ha,Q4,UF,ta,vD,d_a,ZE,OF,JsR,V4,SyI,gMD,Yy9,nMC,a4,SK,b8,M0M,gl,YD,nf,Mr,LXI,Lf,ff,Kf,fAk,KX6,WD,WXx,oVY,gsn,khn,zHn,xta,iwn,FQp,$ta,jUH,Fm,ChM,kk,eHx,A1M,p4n,o6,EVp,zy,xk,iQ,DO,$k,j3,e3,X46,Cc,AW,pc,qzx,uzD,w4I,Xm,N2,q2,wH,mG,Ty,TPH,lJY,lQ,Q0,hW,hHn,sUn,Gh9,r1I,Uta,c15,sQ,vVY,t8x,rH,B8,PhR,Gy,OwI,UQ,IJH,V8n,Hwp,aJC,c8,P8,Sza,bw5,dtM,OQ,V0,J16,I6,y1x,RHn,Yz9,fJH,H8,KQY,WQM,Fmn,kQC,oyx,bQ,zwa,xnR,i75,nc,Yk,gH,Dna,$np,jWn,M2,Lc,fc,
Cy6,oY,zO,xQ,iU,Dt,$Q,pMD,EyY,XMn,jU,CV,pV,uU,wQ,lU,NLk,wMn,ubn,mnx,TLC,GO,ldp,QWa,U0,hwC,sWp,rKI,BL6,IY,Zt,HS,aY,SU,GQp,Unx,tXH,bU,dQ,Z7H,J9,vya,cKa,Py5,y1,O7M,RY,gQ,VXY,IdY,H7R,adM,S2p,b79,YQ,nV,MO,fV,yK5,KV,WS,Rw9,JKR,LV,gyM,FJ,km,om,xm,zA,Y2n,nyC,MXn,iR,fdp,D5,Wmn,F$D,kiC,oDp,zOC,xrk,if5,Dr6,er,CT,Ai,j46,$ra,eOI,C8p,Eg,AaY,XJ,pDR,EDR,ql,Nl,uR,XD9,wC,TA,qF9,lR,Q_,hi,sg,rC,BK,GA,Ug,Nlx,uBn,wD9,mrR,ti,Tln,Q4I,lEp,vK,cK,s4k,hOk,Gia,ZfC,tKa,PK,vDM,cak,P8C,VKI,Ofk,IEa,Og,HfD,aEC,Im,SFM,bfD,dra,Jan,
HK,yaR,am,ROM,Sr,bR,YFH,dC,nDR,Ji,y_,MKR,L$Y,Rm,Ym,K$R,nT,fEn,W$R,FGD,kyH,zrx,Ml,x2C,KT,WK,D26,$2n,CQ5,AWx,FR,k2,oC,zr,x2,iV,Dv,$2,ju,eu,CS,AC,pS,qQR,X8Y,NH5,w85,umk,THM,Ekk,m29,p8C,EX,qd,Q6n,hrY,s6Y,m6,Tr,lV,Nd,BHx,Q9,lOa,U29,t35,Gyk,hC,sX,rY,BN,ZcI,rWn,vkC,Gr,cWR,PQI,Ocp,V3R,IOC,SQa,bcn,d2x,JW9,UX,Rrn,gka,M3D,LGM,Zv,KGk,vN,tC,F8H,WGn,zi5,PN,V9,iVY,DO9,$O6,jYM,CUY,dY,bV,A9n,eik,XSx,NQn,mOk,y9,TQa,JC,gY,ltp,Y2,Md,LS,QYa,hiI,zl,sYH,$e,r9n,BQC,Ng,GOp,tUx,uT,ZVn,vQ5,It9,c9a,lT,Qu,hF,r6,Bj,dOR,Gl,UW,
tF,y9k,cj,RiH,gQC,Pj,nQC,Vu,IR,Hj,aR,L8Y,Sd,d6,JF,yu,RR,ft6,K8C,W8I,Ye,n6,Mg,L6,f6,K6,Fbp,kAI,oma,z4C,xla,iTD,Wj,DlH,D3,$lR,jmx,e4C,$c,eg,CX,AU,Xk,qJ,NJ,AiI,m3,Ts,l1,pKI,EmD,QM,XKY,qgC,sr,h4R,smD,rip,rU,BCM,GAn,ZTH,Gs,ciH,vmn,tU,OTp,Vrn,I5Y,vI,cI,HT6,PI,Or,VM,IA,HI,aA,Sg,b1,dU,JU,yM,RA,gU,Yc,a5I,SgY,bTC,MJ,WI,dl6,zE,xT,iP,DC,$T,el,Cg,gmY,AB,pg,EY,nmx,YgR,Ji6,Nz,qz,KbC,uP,Bp,hB,GE,UY,F6x,zTR,ZC,Ddn,xdx,iSn,jCx,E2H,eTx,ACH,pNk,cp,vp,XNn,OY,VL,IS,qXn,JB,NYY,yL,RS,gz,Mz,uRI,fg,Kg,wNY,Wp,FG,TYn,z_,Du,
$n,jZ,eZ,Cu,Ax,pu,EN,XG,QC9,q5,wa,un,sCx,Ud5,BY9,GrM,tuM,ZSp,cCn,PVC,v25,Vup,ln,QB,ra,Ivx,HS5,sN,BW,SXC,bSn,RTx,yCx,Zu,vW,cW,PW,ON,Ix,YXa,n2C,Mu5,yB,Rx,L6a,fvn,K6x,fu,Ku,WW,W6k,FC9,oek,xg6,zX,i6x,D0,xK,eB,CM,pM,Dg5,mg,TX,lM,QE,r3,BA,Ut,AF6,pj6,Z0,Een,XjD,cA,qWH,N6C,PA,Ot,uFY,wja,T6M,aw,QRa,h6D,Iw,sRH,rFk,Glk,B6x,J6,len,tdR,Z6R,MA,YK,ve9,cF6,LM,fM,PTD,O6D,FK,Vdk,IeC,H6k,aex,ia,SWx,b66,dgC,JF6,yF6,R6D,gex,YW5,$4,nen,eA,LCC,fep,KCM,WCM,F3p,Cb,NK,ocH,iXn,ua,DJC,jAn,ks9,eJx,C16,AUY,zJp,xJp,Ay,pb,qK,$Jn,
XK,Ea,pIY,Eca,XI6,qrC,NUH,ukx,QAH,wIM,la,Ql,sa,rUD,UJ9,GsH,hy,cy,tgx,Vl,ZXx,cUp,ba,vcn,dJH,P1D,bXk,R9,JUa,gck,g4,yl,yUp,RJ5,YrI,nb,Mga,L3D,f3C,K3H,W36,FzI,kEn,ncR,zca,xzI,igk,$zY,DzM,ecR,Kb,CPC,Wy,FU,k3,ABp,ppn,x3,ie,Xpx,ETR,D1,qYn,ue5,mzp,wpM,TzI,hcp,lCH,ue,Tb,mf,sSC,wX,rX,Bt,Gb,Ux,rBI,Z1,GEY,Pt,ct,Vj,Ij,Ht,aj,UzD,SF,dX,tlM,yj,gX,Y3,Zga,vT6,cB9,PPM,nF,LF,OgY,fF,KF,Wt,ICx,Fw,kZ,Hg6,zG,DW,id,xZ,$Z,jb,bg9,YYI,Mlx,gT5,Rcn,nTC,AV,Xw,Wzp,Lz9,fCC,Kz5,SYC,jxn,sK,$5I,AxH,D5H,Cd,rF,wF,QI,ep6,NE,JBk,dzn,yBR,
EK,iup,tV,uGp,ZW,m5R,TaD,luM,cz,Qxa,hpn,sxI,Ba9,G_I,VI,tZa,Is,Zuk,vna,PnM,OuI,as,VZn,Hup,Sb,auH,bd,dF,qA,RpH,L9D,nd,K9I,kX6,Ld,zPH,xAn,iMD,jL,$B,DAM,iG,BUI,zm,D4,xB,fd,Nh,qh,wt,Tm,jwR,lG,hL,se,eP9,CMD,Gm,pAk,EK5,XAa,qtp,N35,uaH,wA9,mAn,T3x,l0x,vx,Qw9,cx,Oe,hPR,sw9,r6C,V7,B3D,GXH,SL,bG,dt,UAx,JL,tBI,Ra,vKp,ZMR,YB,nJ,Mh,LJ,c66,fJ,KJ,PMR,OMR,Wx,FI,a0C,VBR,HMk,I0H,ka,oc,zo,Sta,bMI,dAx,xa,y66,YtI,gKk,iH,Db,$a,j_,e_,AI,pv,Eq,XI,qf,Nf,nK9,MBC,LgC,uH,w8,m2,To,Qo,sq,WgY,KgD,Bu,FND,Go,Uq,tI,Zb,vu,Oq,Vo,Ic,
Hu,ac,S_,bH,d8,JI,yo,Rc,zL6,Ya,Mf,xKM,Lv,DKR,$KY,j95,CaH,pyk,oH,E4p,xx,zN,N4x,uKn,wyx,DQ,$x,T4Y,en,Cl,AZ,pl,Q9p,ES,rE,BC,hL6,GN,lZn,US,tZ,ry5,s95,ZQ,vC,cC,PC,Va,GI5,UKD,HC,aH,b0,dE,tA5,Sn,cy6,PaD,ObM,VAn,IZp,Hbn,aZD,ya,JZ,v4D,dKp,RH,yyD,RLk,Ll,g4R,Yx,nl,YaH,fl,MAa,fZp,Kl,WC,KNk,FT,Ff5,k_,DHk,xHa,kbk,z$n,o3p,zD,x_,iZ,Dh,$_,j1,e1,Ac,jjD,APY,XT,fOY,qW,ptY,XtH,uZ,lZ,wx,TD,mr,uU9,NXx,qxx,wtp,Qx,mHM,h$n,hc,rx,rPx,BZ,GD,UP,tc,BXk,Zh,Gbn,UHa,cZ,Id,HZ,ad,S1,bZ,dx,Jc,yx,Rd,gx,Y_,n1,MW,tFD,ZFk,L1,f1,K1,WZ,F0,
kW,v3n,cPp,oz,Dc,VFn,I1n,us,wk,si,rk,a1H,Ui,Sx9,bFR,va,dHR,yPR,JPa,R$5,g3H,YxI,n3Y,MFD,LfD,Kfa,f1n,Wfn,oZx,xEC,kGx,idk,DED,js6,Pa,Oi,CdR,eoM,Vc,Iz,Ha,pzx,az,Sv,bs,Xzx,qKC,dk,EZR,J5,wzI,yc,Rz,gk,YW,nB,MN,LB,fB,KB,Wa,Fl,kS,oq,zB,xS,iF,DR,$S,jM,eM,C2,Au,p2,EE,Xl,qy,Ny,uF,wo,mu,TB,lF,Qf,hu,sE,ro,B0,GB,UE,tu,ZR,v0,c0,P0,OE,Vf,Iq,H0,aq,SM,bF,Ju,yf,Rq,go,YS,n2,My,L2,f2,K2,W0,FX,kR,oG,zM,xR,iw,Do,$R,CE,Az,TFI,pE,L,EB,ea,XX,qG,NG,Qsn,w_,ss5,uw,rVC,TM,BFk,Qi,mK,hz,sB,r_,GM,UEC,tb6,ZdI,vZa,IG,He,ce,aG,Pd6,OdM,
Vbx,IWM,GGD,HdD,Be,aWI,SK5,bw,g_,d_,tz,bdR,UB,Sa,Jz,YR,JVC,Zo,ve,RG,yi,yVk,nE,MG,LE,fE,Ron,KE,We,F$,kI,ov,gZI,YKR,MbH,L5n,iX,DV,$I,j9,kmR,z7H,iJ5,DhD,Cs,jaM,e7p,NQ,CGp,uX,wG,mR,TU,lX,Qk,AL5,EB5,Xxk,px9,qe9,Nta,Bn,GU,te,vn,cn,Pn,uHa,Oc,wx6,Vk,Iv,Uc,S9,bX,dG,Je,mhC,av,l4R,yk,QaD,h7Y,Rv,san,gG,YI,rLC,Bt9,ns,GmR,UhR,MQ,tLD,ZJ9,vBY,cL9,Ls,fs,PGD,OJY,Ks,Wn,Fo,VLa,kg,oN,z7,xg,I4n,iv,D6,HJ6,$g,a4R,jD,SeM,bJR,dh6,JLC,yLM,R7H,eD,gBI,Yen,nB5,CP,MLp,Aw,LiH,pP,f4Y,E3,KiR,Wi6,Xo,mS,F26,T7,lv,QQ,hw,koI,s3,ru,Bw,
oak,zsM,U3,tw,ivM,Z6,Dfn,$fn,xfn,jcn,esR,CHx,cw,AIa,Pw,O3,VQ,IN,puR,Hw,aN,bv,Eak,du,Jw,XuR,RN,nP,gu,KP,Ww,qq6,FW,N86,oD,z$,xb,uIx,Dm,wuD,jQ,eQ,Cm,LP,At,pm,EH,mfn,XW,qi,Ni,T8x,uK,wW,mx,T$,lK,ht,Mi,Lm,fm,lbn,Qcp,hsC,scR,kh,Km,oQ,zF,rIM,B89,Goa,xh,iN,DG,Uf6,t_x,Fg,Zvx,vaY,$h,cIR,j5,e5,AH,pR,EI,Xg,qj,uN,wB,TF,lN,QN,hH,mW,V_Y,Ibk,rB,BE,GF,HvM,tH,Sqa,ZG,vE,bvR,cE,PE,OI,IQ,dfY,VN,HE,aQ,S5,JIp,JH,RsD,gaY,yN,RQ,YqR,naR,M_C,gB,fbC,UI,L2a,K2H,Yh,W2C,nR,F_H,Mj,kNR,oxx,zhn,xFD,iln,LR,$FY,DFD,fR,FZ,jHn,kj,eh9,
oo,C0D,AZ6,zz,pCp,Exn,XCn,qSC,xj,NEI,ic,wCn,jG,eG,TEY,mFI,lQx,QHx,hhp,Aj,pp,E9,sHx,rZx,BEp,GNx,UFx,tnI,Zln,vxD,cZn,P0k,qL,NL,Ola,Vn9,uc,wA,IQM,mh,Tz,Q8,Hl5,hj,s9,rA,aQn,B7,SSx,Gz,bl6,U9,dFR,JZI,tj,yZx,Rha,gxk,Zk,v7,c7,P7,O9,YSp,nx9,V8,Io,H7,Mnx,ao,SG,bc,dA,Jj,L_9,fQx,y8,Ro,K_Y,gA,Yj,np,ML,nZx,W_5,Fra,Lp,kD9,o_x,zKp,fp,Kp,W7,F4,k8,oO,zJ,x8,iB,D$,$8,xW9,i1n,X4,qZ,DWp,NZ,h8,w0,PQ,pZC,uTn,E_H,wZ5,Txk,lhI,mWR,Qdn,hKI,sdn,g0,GDp,t1H,v_M,cc6,PZx,MZ,LG,V1H,Ihn,b1p,fG,dWa,H15,KG,WQ,F_,kX,ycY,YPa,RKC,LrM,zWM,
oWY,fh6,xNk,zW,Wrx,Krp,$NR,Cs5,eWC,Xan,A5D,xX,iq,mNI,jc,TkC,Gxk,BkC,r5D,szn,QzM,ZBR,tvn,hWp,Vvk,OBa,Icn,El,Six,HBC,ac5,lcI,bBD,dNx,ec,Ak,c56,vWM,Psa,J5p,C$,UNx,RWI,YiR,Mvn,fck,Fua,kBx,zXx,xy5,Dyn,i2x,Aun,jq6,$yn,p0p,qED,No5,ul5,w0p,sl,UWx,lR5,mya,GW,sqH,Zn,Bok,GBp,ru9,vF,Uyp,cF,PF,he,Ol,BxH,Vs,IT,HF,tMx,Z2C,aT,vSk,cuD,PFx,Sc,bq,d2,Jk,ys,RT,g2,YX,n$,O2k,VMD,Mx,IRM,L$,WE,f$,K$,aRn,H2I,WF,SEC,b2n,Ft,ki,dy9,ol,JuD,yun,Z1R,hXC,RXI,zZ,sc,xI,X_,gSC,YER,ik,wan,Dn,nSI,r2,BF,Nx,qx,oT,w2,KIM,oSx,uq,qiD,ESR,
MMI,iBn,FIM,D7,Qqa,nG,fRY,LuM,Jcp,WIa,KuR,X0k,Qs,Nkn,u0k,jz6,LI5,nWY,M1p,g_x,SPa,ahY,O1n,y5k,kxx,eX6,paa,EW6,TW,lq,mp,CF6,gWk,FK5,Wu6,$i,jj,ej,CN,Ad,Xt,uk,wM,mM,TZ,QK,hd,kMa,pN,Ew,lk,zeD,oRk,rM,xGR,iE5,GZ,DGn,$GM,Uw,td,Z7,vc,cc,Pc,Ow,VK,Azn,Hc,peH,Il,ERn,ee5,CwH,XeR,al,Sj,qBn,N_x,bk,uXp,Xa,mG6,weH,loR,he5,sGn,QG6,rzC,UG5,ZEM,Yi,nN,vRC,czD,MD,LN,PwD,OEI,VaD,Iop,KN,FM,kC,aoH,SBY,Jz5,Rex,gRp,yzp,xC,DN,ij,YB9,nRk,oy,MaC,LKH,fon,KKk,zf,oID,zI9,xQC,kUn,FR9,WKC,is6,DQa,bEM,$QD,dGk,jva,eIk,EIC,CXx,Aek,pnD,
NGC,Xn5,qcH,u$I,wnY,jp,lVC,mQn,Qvn,TGx,hID,svY,ren,BGa,GUM,UQ9,t9x,ZsI,vIp,cep,PXC,Osn,ep,IVC,Hsx,aVa,V9n,Sck,bsk,yen,AX,XM,N4,RIa,uj,wV,my,M9p,fVa,LRY,WRD,jNR,k7I,Gf,lj,KR5,nIH,YcM,gIY,BO,QJ,rV,cO,PO,AwH,O_,VJ,vO,q36,pw5,Egp,Nu5,Iy,HO,wwn,Sp,bj,dV,JX,yJ,Ry,gV,mmH,TuM,YC,nt,Lt,QN5,hmn,M4,ft,BuR,G7H,Kt,UmD,kd,tDa,o0,xd,ZPR,z6,il,vgC,$d,Pva,OPY,ew,Cz,qp,I66,pz,Np,ws,HPp,T6,X5,ul,a6C,ll,S3M,QF,bPn,Av,EO,VDa,mD,hv,dmx,Jw9,sO,ywn,rs,Bf,G6,UO,RmR,Zr,tv,vf,cf,ggM,Y35,Pf,OO,VF,I0,Hf,ngx,a0,Sw,MDR,LSM,bl,
ds,Jv,KSM,f6x,yF,WS5,FxM,k$p,R0,obD,zBk,xia,imI,DiD,gs,Yd,nz,Mp,$iD,jDY,fz,eBk,Kz,Wf,CKH,Ata,FQ,pHI,EbY,uWI,wH5,XHC,qHM,NWx,o3,zk,xl,i4,miM,TWY,DY,lmH,hBn,QDn,C3,eJ,rtH,BWR,G$R,UiC,AQ,tQn,E1,XQ,Zmx,ct6,PKY,Ns,Tk,Hmn,Dm5,hX,SH9,bmx,diH,JtR,ytx,Tf,u4,RBp,hQ,s1,nbD,MQC,Lx9,ri,FW6,fmD,KxH,ohp,zAY,BU,xjR,kFC,iR6,Gk,U1,tQ,DjY,$j6,ZY,vU,jQp,cU,eA6,PU,l4,HU,CND,$mM,FSY,a3,SJ,di,JQ,yg,R3,gi,b4,Ms,pE5,f3,XEp,K3,NBx,uga,qIC,Eha,wEa,mjk,TBD,oB,lGC,QQn,sQa,z9,CvD,xH,BBk,UjC,U_,t59,DX,vhp,s_,ZRD,ogY,xmY,iPn,rHn,
$H,cHR,PNH,jP,ORH,C_,AJ,p_,E5,XA,V5x,qU,NU,IGC,HRI,uW,ww,ma,T9,lW,Qq,SI6,aGM,hJ,bRC,JHI,s5,yHI,djI,yq,dw,RB,YH,n_,FA,RAn,KWH,OB,JJ,K_,ojC,xLk,vJ,ot,ZX,ze,DL,bW,$E,eUH,jm,em,Ccx,Aja,p7Y,Ej6,CK,X7n,q9M,AT,NAY,lkY,TAM,uZp,mLY,w7I,pK,Qoa,Em,hU9,sop,BAH,Gzx,ULY,PcI,wg,mY,IkY,Te,lJ,Hpn,bpa,dLn,JjY,yjR,Q6,RUn,Y9n,njM,Om,zEp,KhY,Wh6,iGR,V6,DZ5,jOn,$Za,eE9,H3,bJ,CBn,It,dg,JT,A8H,E8p,N0n,YE,KK,zC,Dx,t7n,ZG6,C9,ek,p9,Eh,v86,OGD,PBn,V7n,q8,Xq,I$C,a$9,SjH,dZM,wy,bG5,J8R,y8C,TC,lx,g8H,gg,ux,ry,l$H,pQR,r8k,tb,Ab,
HGk,Ik,xJ,ak,Sk,bx,i$n,xxR,ix,Jb,yT,Rk,$xx,gy,YJ,jTn,$J,n9,c8n,L9,f$I,kp,ejC,wQI,u4p,XQD,zL,iA,$p,mxR,wF6,lnk,QTx,CY,pY,EJ,AM,qa,Na,hjk,uA,rkR,w5,GWp,lA,B2R,QU,hM,vXR,sJ,O$9,VcM,GL,In5,an9,b$5,Sx,d5,JM,g5,dx9,Yp,nY,KY,Wv,FC,k0,Jk5,oP,zu,YlC,x0,io,nX5,Mc5,DI,LpR,fnR,Kpn,WpD,$0,jT,FMC,oiD,Aq,ph,qB,NB,z1k,xD6,uo,wp,mF,Tu,iND,DD6,lo,$DM,jlk,QP,CkD,e15,AdH,hq,Ei6,pcI,sA,Xca,rp,BV,qwk,utY,wc5,Gu,UA,tq,mDx,ZI,l7I,cV,QlC,h1D,vV,PV,OA,VP,GZD,tjH,slY,UDY,ZNH,rdI,BM6,viI,cdD,aP,Pk5,Vjk,a7k,bNH,Swx,Y0,gp,Lh,
Jdp,fh,Kh,WV,R16,Fj,gik,ydp,k7,Mj6,oi,zv,LMC,x7,DF,f7D,KMC,WM6,Fyx,kfC,$7,zYn,x4R,fkC,o8D,D4n,itD,jyp,$49,eY9,es,CjY,AXD,AS,XOp,p4,Eu,Xj,NVM,m46,uL,wv,m0,lND,TVx,qo,QyH,hY6,syI,BVH,Tv,Vp5,rv,Br,d4x,bo,yXa,RYC,gCn,Y_I,nCC,Uu,Mp5,tS,ZF,vr,Lyn,Ou,fNY,KyI,Vr,Ii,WyR,FDp,k6C,od6,zMY,Hr,Pr,xpC,ai,Dpp,$pD,j0D,Ss,eMI,ClM,AvR,pf5,Edn,Xfn,qO9,Nsp,u5k,wfY,bL,Tsk,dv,lrY,yr,Q0n,s0I,Y7,mpR,JS,n4,Mo,L4,f4,K4,Wr,rvx,F1,Bsk,ob,vdp,Ozn,Vwa,Irp,Hzn,i9,arD,Plp,Zz9,SOY,za,bzk,Jv6,kF,xF,Up6,twa,D_,yvn,RMp,cvx,G6Y,gdk,j2,
YOD,e2,Cj,nda,A4,fr5,Mwx,LD6,pj,KDM,Ef,X1,qu,Nu,WD5,Fcp,kkC,u9,zG6,xsx,w7,i36,mT,Ta,DsR,$s5,j3I,eGD,C4C,AQn,Nin,Eln,I7Y,Qw,wUa,ms6,XUn,q1H,pUR,r7,s3k,sf,h4,uQx,BiI,hGC,Q3M,lYx,TiY,Ga,Gk9,ST,Uf,t4,Z_,Usn,vg,tJn,cg,Z3n,MB,vlI,cQx,Jq,RP,ONH,Of,Ib,IYn,H35,aYD,ab,Vw,Pg,b9,O3a,P4a,VJ9,d7,S1a,b3a,gv,hM9,dp,J4,dsR,Hg,JQM,yQM,RGH,glx,Y1H,yw,MJ9,Lck,fYx,Kcx,WcI,Faa,k9n,dpR,g7,YF,zFn,Rb,xUR,Yw9,nik,nj,i_p,DUn,$Ua,jBn,Mu,AJn,eFH,pJp,XJn,CWn,q5M,uAk,NwR,Tw9,Lj,Wg,hFR,QBI,G9C,rJp,UUp,tPH,sBD,Bw5,lXI,Z_5,Fc,vHp,
O_I,cJ6,PWM,on,izn,VPH,IXM,H_H,aX5,S5Y,zg,b_5,xt,dUI,i$,Dz,JJM,$t,yJn,RFa,jN,gHk,Y56,nHD,MPC,eN,wO6,CA,KaY,AA,fXY,WaC,FY5,uM6,No,keD,oEn,E4,exD,jt9,wS,CJn,$kp,EE6,mt,X3n,qmR,w39,mkx,lLx,ud6,Qtp,hxC,stD,rTR,BgI,UkI,tma,ZK6,GeY,l$,pA,cTY,NgC,PJa,Tgn,QA,Vmk,vEx,Tg,IL9,HKn,bK6,RxR,dkk,gEC,yTY,Ym5,aLn,hA,nEC,Sma,Rn,KYD,FeD,WYx,kCD,oJH,z09,fLa,x8R,i9D,dS,D8Y,$8D,jkx,e05,Cxa,EJa,pPR,Abn,Yt,XPn,NyM,uqk,wPM,m8k,TyC,LA,Ri,lxR,Qkp,h06,Byn,rb9,skC,GCY,tkM,Z9n,U86,yA,wJD,cb6,Pxn,O9R,d8n,H95,axR,ShH,JbD,R09,rQH,
nA,IxY,VkC,ybC,nh,b9Y,l9,yP,JTD,LeH,Mka,fxx,Ke5,opH,zyM,qhn,Kj,fj,Yh9,xan,nJn,iY6,DaI,EHx,$aI,LYY,Mm5,gJM,mUC,Wi,Fp,eyR,kO,CAp,AMD,pv9,Epa,Xva,N55,uhx,l99,wvx,T5R,QLn,zc,B5n,sLp,rMM,txR,ZY5,vpR,xO,cMM,oI,PAa,Uax,hyn,i6,OYR,maH,Vxp,DU,HYD,I9Y,RCH,gFM,Yfn,a9I,$O,LTp,M2n,WTx,KT9,f_D,Ftx,kgp,j6,otk,ztD,iAC,D79,x7k,$79,pi6,etY,C$C,AAn,EtR,Xin,q4I,uc5,NSa,wiY,m75,TSC,Qnx,htn,rAp,sn5,BSM,lzp,Gga,tNR,ZAx,cAH,OAR,vt5,A7,VN6,Izp,U7n,HAk,P$5,pZ,az5,S45,bA5,d7D,JAC,yAM,Rtx,Y45,MN9,LtC,fz5,KtD,WtI,EZ,FOk,Xp,oOD,
z8Y,wh,iZD,mO,$qH,jIR,e8C,C6H,phk,A7D,FJC,qZk,NhM,WeM,Tc,Qm,EOx,Xhn,sZ,rh,whH,upY,mqY,Thn,lUI,sIa,QIn,Gc5,Bh,h8a,Uqn,Gc,P6n,t65,t7,ZU,OZR,UZ,V6I,vh,aUa,HZx,vOY,c7I,SZC,bZC,dqk,ZZI,J79,ch,y7n,IUC,Dq5,h7,gO5,OZ,YZM,nOa,M6H,LOH,fUp,KO6,WOa,F4p,kdH,Vm,oPR,z_k,inC,DCx,$Cn,xCD,jrY,e_C,COR,Arp,pqk,EP5,Hh,OvR,XqY,qRI,aI,N1p,u6n,b6,T16,l2R,dh,h_D,srY,Qrx,mC9,J7,S6,wqD,gh,RI,rr6,YO,ym,t4a,crx,Onk,V49,HnI,Gd6,POk,a2Y,UCk,SRk,bnY,KZ,nZ,JrC,yrx,dC5,LZ,YRC,nPH,vPR,Zn9,gPD,M4n,I26,B1Y,Wh,F6,kP,L46,or,ofn,W4H,zNp,
FVH,K4n,xeI,f2R,j7R,i0p,zd,eNk,A_I,EfC,Xmk,qLC,wmI,$P,meH,Nmk,fZ,Q7Y,hNk,pn,OKk,xP,s7I,r_R,G0R,BmR,UeR,lqk,e4,tRp,Z0C,vfk,PpM,c_6,vJ5,O0n,j4,VRR,H0n,IqR,SLR,aqY,pmx,deD,b0D,Cn,iO,J_Y,X6,y_I,RNp,gf6,YLR,nfD,ER,jnI,uPI,MRk,jLR,Mq,LVx,fqC,KVR,WVI,FUR,qC,NC,o9R,zdH,xwY,k1n,iaI,uO,edn,$wR,jFa,C2M,w1,ARa,pLR,E9p,m4,XLn,NOY,uiR,wLH,Td,qUD,lO,Qe,mwI,TOC,r1,hr,sR,lpY,Bq,QFC,hdM,sFa,BOI,rRn,cq,Uwp,tf9,G1n,ZaI,Pq,v9Y,OR,cRp,Ve,P2k,Oak,apD,HaD,dwk,Vfn,SU5,Ir,Ip5,ban,JRM,yRM,Rdp,g9n,ar,YUR,d1,S4,n9C,Jr,ye,LUI,
g1,YP,fpn,Rr,KU5,nn,FjR,WU6,Ln,fn,Kn,zbI,k56,ooD,Wq,xI6,jgx,DIM,ioa,$Ia,FP,CfM,XXx,qkI,kf,Nbp,uSk,AhR,pXI,Tb9,llI,Qg9,hbR,sgC,rha,xf,tha,ip,G5x,UI6,PfY,z0,Dq,$f,Bbx,Zox,Oo5,jR,VhH,IlR,Hon,eR,alD,C0,Skk,box,dID,JhI,yhn,RbD,gox,Mh5,Ykn,LjH,flR,Wj6,FBH,lp,DcM,o5C,zSY,$cD,jEk,iDn,kRn,eSR,Amk,Cm9,p2R,w2Y,h_,lw6,sE6,hSM,QEC,NTk,uOY,E5H,X2I,mcI,sL,rm,BTk,cv,UxR,GR5,G0,t_,tzk,Ucn,TTI,v59,cmp,PmH,Zq,ODD,Hm,IwD,HDx,awn,bD5,S89,dck,a7,SR,JmD,g5x,Y8Y,J_,RS5,n5R,Mzn,ym9,Yf,LBH,fwR,gm,KBa,WBR,F1C,kYR,z3k,oAk,DbR,
$b6,xbR,e3I,Cz6,iQY,L0,f0,AYD,EA5,K0,p5C,X5x,NZn,qTn,unH,Wm,w5n,mba,TZR,Fi,k9,oF,ljx,QXn,h3R,rYI,sXC,BZx,GYM,Ubn,to6,ZQk,cY9,x9,z1,i2,Pzn,OQ5,vAR,STI,bQ9,dbn,R3p,yYM,JYp,gA9,YTH,Dp,$9,nAD,Moa,L1p,fjx,W1n,Fd6,ef,k4Y,jf,AR,K1H,oL5,z9x,xSH,irH,DS9,EU,$S5,jeD,AN5,Xi,p$H,Cgk,qw,Nw,ELx,X$Y,NJn,w$p,qd5,uup,wO,mS9,lBI,Qe9,seM,rND,mU,T1,BJk,TJp,tqk,USx,G4n,l2,QV,vLn,Zrn,hR,sU,cNp,rO,PgD,OrD,Vqa,BL,IB9,G1,HrR,UU,tR,bra,dSk,JND,R9k,gL6,YdC,yNH,Mqa,nLn,LdD,Wdn,cL,kja,FlD,fBH,KdY,oza,zfn,PL,OU,xMH,iLD,DMI,$Mp,
jVM,efn,A$9,psI,Tcn,qGH,Nca,Ezn,QVx,b2,JR,BcM,gO,Y9,GjM,hf5,Sf,La,Mw,yV,ttC,ZLI,fa,c$k,OLk,P_n,Ka,RF,aF,vzD,na,sV6,UMC,IDx,VV,WL,HLC,aDH,dO,r$D,FS,ko,SGM,og,z5,xo,bLn,dMk,y$R,Rf5,J$H,Dl,$o,gza,jh,YGY,eh,Co,nzp,MtM,LlY,fDC,Kln,Wlk,kKD,FkR,po,Ah,o1R,xRn,zZR,Ek,XS,iqk,$Rn,jJ6,qI,DR6,eZk,CCa,Aok,pGM,E1R,XGH,qMa,uf,wb,u9H,Njk,mj,T5,wGM,mRI,lf,Tj5,Q5,lyY,hZI,QJC,sJx,sk,roI,BjH,BX,GKk,G5,UR6,te6,Zqn,v1n,co6,OqD,VeC,IyC,PCY,Hqx,ay6,SMn,bqH,dRR,JoM,yok,RZx,cX,g1M,YMD,n16,fyH,kwC,Wkk,Lk5,V5,Kkn,MeH,FoD,Ig,
zqC,oqM,HX,xVn,iOM,DV9,e6,ApR,p_I,Eqx,bf,X_n,Jh,gS,qb5,y5,Nrx,db,uy9,w_a,sfY,MI,Lo,Ko,WX,Brx,rpk,mVn,FO,GwH,UV5,ZOM,k5,vqk,cpk,P5D,fo,VVx,OOk,oE,zR,QfM,Yo,ISY,HOI,aSa,SbM,TrC,lSn,no,bO5,dVn,JpH,ypp,nqa,MVx,fSM,YbY,F79,IP,HV,JA,zQn,xPY,ovk,iy9,Lon,kqa,RqY,DPM,Wox,$PI,KoH,S2,nlM,R_a,x5,kt,gq6,eQR,Ev5,Dw,XdY,qoY,AGx,jz,NDn,uLY,j8Y,wdM,pdC,mPY,ez,$5,TDM,Q8D,li6,im,s8I,pD,Sla,CD,E8,Am,XO,TmI,rGY,UP6,Gqa,Zyn,vvn,tO6,Nc,qc,PSY,Oy6,VOI,RQH,by6,dPD,aia,nvY,HyH,mB,fiD,MO9,K79,W7H,wT,lm,QG,z2a,ouY,k3I,s8,yG5,
U8,iHn,GR,hm,$0p,e2D,Cbk,Yo5,j$D,c2,Afn,JGD,x05,rT,pTx,TR,Euk,XTY,qsH,VG,IE,D0I,Nq5,u3D,H2,aE,wTD,B2,L7n,m0a,Tq6,lKI,v2,Q$Y,tm,h2n,Zw,TL,s$Y,BqI,Sz,bm,G35,U06,t$p,O8,P2,ZHp,BDR,vua,cf5,PbH,OHC,V$R,dT,Jm,aKH,d0p,yfk,HHp,KwC,WwM,FHC,kHI,owR,zzn,xYp,DYI,i5x,yG,RE,gT,$YR,jZR,ezC,KR,CuC,Y5,A3R,nD,Mc,vw,LD,zU,po9,Ul,Ton,Ewp,$X,Xop,bN,dB,qnn,xi,NKD,uVI,tk,woI,mYC,fD,lsk,QZx,KD,Fn,kA,hzR,BK5,GHk,oX,UYx,sZD,r36,tED,Z55,vwa,c3x,Pu5,zY,VEY,Ttn,ZV,Dk,IsI,H5D,Cp,O5k,Hn,as6,SnR,b5k,xA,sI,J3n,y3I,iz,Dj,RzC,$A,gwH,
W2,Yna,nwI,yII,jo,eo,MEC,CQ,AY,LHI,pQ,fsC,ET,Xn,KHn,WHn,uDD,qb,FZM,oUR,k2C,Nb,zvY,uz,wZ,x1H,iIk,D1k,$15,j1n,evk,Cip,pba,TY,A2I,EUn,Xbx,q6D,Nnn,Tn9,u26,wbn,m1H,Q1C,s1I,r2D,BnY,hvI,lz,G2M,U19,tWC,ZI6,vUM,hY,c2H,sT,rZ,B5,PiM,OIR,IfH,HIn,afk,S6H,d1Y,bIH,J2C,GY,UT,gUI,y2p,Rv6,tY,Y6Y,nUC,Zj,v5,MWC,c5,LZp,P5,ffH,OT,Vv,KZC,IX,H5,WZa,Fnl,aX,So,kp$,bz,oYV,zaD,RX,gZ,x9n,ikl,D9$,eaC,j5$,YA,CD9,Ann,p6V,rcY,$9n,X6V,qC9,uxp,Fn6,pk;zp=function(F){return function(){return Fn6[F].apply(this,arguments)}};
g.Ck=function(F,k){return Fn6[F]=k};
kp9=function(F){var k=0;return function(){return k<F.length?{done:!1,value:F[k++]}:{done:!0}}};
oYa=function(F){F=["object"==typeof globalThis&&globalThis,F,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var k=0;k<F.length;++k){var z=F[k];if(z&&z.Math==Math)return z}throw Error("Cannot find global object");};
EC=function(F,k){if(k)a:{var z=g.An;F=F.split(".");for(var x=0;x<F.length-1;x++){var D=F[x];if(!(D in z))break a;z=z[D]}F=F[F.length-1];x=z[F];k=k(x);k!=x&&k!=null&&pk(z,F,{configurable:!0,writable:!0,value:k})}};
zan=function(F){F={next:F};F[Symbol.iterator]=function(){return this};
return F};
g.T=function(F,k){F.prototype=x9R(k.prototype);F.prototype.constructor=F;if(Xx)Xx(F,k);else for(var z in k)if(z!="prototype")if(Object.defineProperties){var x=Object.getOwnPropertyDescriptor(k,z);x&&Object.defineProperty(F,z,x)}else F[z]=k[z];F.XA=k.prototype};
g.l=function(F){var k=typeof Symbol!="undefined"&&Symbol.iterator&&F[Symbol.iterator];if(k)return k.call(F);if(typeof F.length=="number")return{next:kp9(F)};throw Error(String(F)+" is not an iterable or ArrayLike");};
ik6=function(F){for(var k,z=[];!(k=F.next()).done;)z.push(k.value);return z};
g.r=function(F){return F instanceof Array?F:ik6(g.l(F))};
q9=function(F){return D9C(F,F)};
D9C=function(F,k){F.raw=k;Object.freeze&&(Object.freeze(F),Object.freeze(k));return F};
N9=function(F,k){return Object.prototype.hasOwnProperty.call(F,k)};
$9R=function(F){if(!(F instanceof Object))throw new TypeError("Iterator result "+F+" is not an object");};
uD=function(){this.G=!1;this.j=null;this.L=void 0;this.Y=1;this.W=this.S=0;this.K=this.U=null};
wI=function(F){if(F.G)throw new TypeError("Generator is already running");F.G=!0};
mn=function(F,k){F.U={iI:k,Zz:!0};F.Y=F.S||F.W};
g.c=function(F,k,z){F.Y=z;return{value:k}};
j59=function(F,k,z){k=g.l(k);var x=k.next();$9R(x);if(x.done)F.L=x.value,F.Y=z;else return F.j=k,g.c(F,x.value,z)};
g.Tp=function(F){F.Y=0};
g.lD=function(F,k,z){F.S=k;z!=void 0&&(F.W=z)};
g.hn=function(F,k){F.S=0;F.W=k||0};
g.sC=function(F,k,z){F.Y=k;F.S=z||0};
g.rI=function(F,k){F.S=k||0;k=F.U.iI;F.U=null;return k};
g.B6=function(F,k,z,x){x?F.K[x]=F.U:F.K=[F.U];F.S=k||0;F.W=z||0};
g.UC=function(F,k,z){z=F.K.splice(z||0)[0];(z=F.U=F.U||z)?z.Zz?F.Y=F.S||F.W:z.Sk!=void 0&&F.W<z.Sk?(F.Y=z.Sk,F.U=null):F.Y=F.W:F.Y=k};
eaH=function(F){this.Y=new uD;this.L=F};
CDI=function(F,k){wI(F.Y);var z=F.Y.j;if(z)return tn(F,"return"in z?z["return"]:function(x){return{value:x,done:!0}},k,F.Y.return);
F.Y.return(k);return ZM(F)};
tn=function(F,k,z,x){try{var D=k.call(F.Y.j,z);$9R(D);if(!D.done)return F.Y.G=!1,D;var e=D.value}catch(C){return F.Y.j=null,mn(F.Y,C),ZM(F)}F.Y.j=null;x.call(F.Y,e);return ZM(F)};
ZM=function(F){for(;F.Y.Y;)try{var k=F.L(F.Y);if(k)return F.Y.G=!1,{value:k.value,done:!1}}catch(z){F.Y.L=void 0,mn(F.Y,z)}F.Y.G=!1;if(F.Y.U){k=F.Y.U;F.Y.U=null;if(k.Zz)throw k.iI;return{value:k.return,done:!0}}return{value:void 0,done:!0}};
AnR=function(F){this.next=function(k){wI(F.Y);F.Y.j?k=tn(F,F.Y.j.next,k,F.Y.B):(F.Y.B(k),k=ZM(F));return k};
this.throw=function(k){wI(F.Y);F.Y.j?k=tn(F,F.Y.j["throw"],k,F.Y.B):(mn(F.Y,k),k=ZM(F));return k};
this.return=function(k){return CDI(F,k)};
this[Symbol.iterator]=function(){return this}};
p6a=function(F,k){k=new AnR(new eaH(k));Xx&&F.prototype&&Xx(k,F.prototype);return k};
EYM=function(F){function k(x){return F.next(x)}
function z(x){return F.throw(x)}
return new Promise(function(x,D){function e(C){C.done?x(C.value):Promise.resolve(C.value).then(k,z).then(e,D)}
e(F.next())})};
g.O=function(F){return EYM(new AnR(new eaH(F)))};
g.v6=function(){for(var F=Number(this),k=[],z=F;z<arguments.length;z++)k[z-F]=arguments[z];return k};
X6a=function(F,k,z){F instanceof String&&(F=String(F));for(var x=F.length,D=0;D<x;D++){var e=F[D];if(k.call(z,e,D,F))return{mm:D,Jm:e}}return{mm:-1,Jm:void 0}};
c6=function(F,k,z){if(F==null)throw new TypeError("The 'this' value for String.prototype."+z+" must not be null or undefined");if(k instanceof RegExp)throw new TypeError("First argument to String.prototype."+z+" must not be a regular expression");return F+""};
OC=function(F,k){F instanceof String&&(F+="");var z=0,x=!1,D={next:function(){if(!x&&z<F.length){var e=z++;return{value:k(e,F[e]),done:!1}}x=!0;return{done:!0,value:void 0}}};
D[Symbol.iterator]=function(){return D};
return D};
VR=function(F){return F?F:Array.prototype.fill};
I5=function(F){return F?F:Array.prototype.copyWithin};
H6=function(F){F=Math.trunc(F)||0;F<0&&(F+=this.length);if(!(F<0||F>=this.length))return this[F]};
a5=function(F){return F?F:H6};
qCI=function(F,k,z){F instanceof String&&(F=String(F));for(var x=F.length-1;x>=0;x--){var D=F[x];if(k.call(z,D,x,F))return{mm:x,Jm:D}}return{mm:-1,Jm:void 0}};
SH=function(F){return F?F:function(k,z){return qCI(this,k,z).mm}};
g.dI=function(F,k,z){F=F.split(".");z=z||g.bD;for(var x;F.length&&(x=F.shift());)F.length||k===void 0?z[x]&&z[x]!==Object.prototype[x]?z=z[x]:z=z[x]={}:z[x]=k};
R5=function(F,k){var z=g.yR("CLOSURE_FLAGS");F=z&&z[F];return F!=null?F:k};
g.yR=function(F,k){F=F.split(".");k=k||g.bD;for(var z=0;z<F.length;z++)if(k=k[F[z]],k==null)return null;return k};
gI=function(F){var k=typeof F;return k!="object"?k:F?Array.isArray(F)?"array":k:"null"};
g.nk=function(F){var k=gI(F);return k=="array"||k=="object"&&typeof F.length=="number"};
g.M9=function(F){var k=typeof F;return k=="object"&&F!=null||k=="function"};
g.Kk=function(F){return Object.prototype.hasOwnProperty.call(F,Lk)&&F[Lk]||(F[Lk]=++NIR)};
ux5=function(F,k,z){return F.call.apply(F.bind,arguments)};
w6k=function(F,k,z){if(!F)throw Error();if(arguments.length>2){var x=Array.prototype.slice.call(arguments,2);return function(){var D=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(D,x);return F.apply(k,D)}}return function(){return F.apply(k,arguments)}};
g.W6=function(F,k,z){g.W6=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ux5:w6k;return g.W6.apply(null,arguments)};
g.FY=function(F,k){var z=Array.prototype.slice.call(arguments,1);return function(){var x=z.slice();x.push.apply(x,arguments);return F.apply(this,x)}};
g.op=function(){return Date.now()};
zt=function(F){return F};
g.xG=function(F,k){function z(){}
z.prototype=k.prototype;F.XA=k.prototype;F.prototype=new z;F.prototype.constructor=F;F.base=function(x,D,e){for(var C=Array(arguments.length-2),p=2;p<arguments.length;p++)C[p-2]=arguments[p];return k.prototype[D].apply(x,C)}};
m9D=function(F,k){if(k!==null&&k!==void 0){if(typeof k!=="object"&&typeof k!=="function")throw new TypeError("Object expected.");if(z===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var z=k[Symbol.dispose]}if(typeof z!=="function")throw new TypeError("Object not disposable.");F.stack.push({value:k,dispose:z,async:!1})}return k};
TIx=function(F){function k(e){F.error=F.hasError?new SuppressedError(e,F.error,"An error was suppressed during disposal."):e;F.hasError=!0}
function z(){for(;x=F.stack.pop();)try{if(!x.async&&D===1)return D=0,F.stack.push(x),Promise.resolve().then(z);if(x.dispose){var e=x.dispose.call(x.value);if(x.async)return D|=2,Promise.resolve(e).then(z,function(C){k(C);return z()})}else D|=1}catch(C){k(C)}if(D===1)return F.hasError?Promise.reject(F.error):Promise.resolve();
if(F.hasError)throw F.error;}
var x,D=0;z()};
i7=function(F,k,z){z=z===void 0?Error():z;var x=Error.call(this);this.message=x.message;"stack"in x&&(this.stack=x.stack);this.code=F;k+=":";z instanceof Error?(this.message=k+z.message,this.stack=z.stack||""):(this.message=k+String(z),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
lMH=function(F){var k=k===void 0?49:k;var z=[];DH(F,$G,6).forEach(function(x){eC(x,2)<=k&&z.push(eC(x,1))});
return z};
Q5I=function(F){var k=k===void 0?49:k;var z=[];DH(F,$G,6).forEach(function(x){eC(x,2)>k&&z.push(eC(x,1))});
return z};
g.CC=function(F){F&&typeof F.dispose=="function"&&F.dispose()};
g.AD=function(F){for(var k=0,z=arguments.length;k<z;++k){var x=arguments[k];g.nk(x)?g.AD.apply(null,x):g.CC(x)}};
g.S=function(){this.py=this.py;this.Rx=this.Rx};
g.b=function(F,k){F.addOnDisposeCallback(g.FY(g.CC,k))};
pC=function(F){F.then(function(){},function(){})};
E$=function(){g.S.apply(this,arguments);this.j=1;this[haC]=this.dispose};
XY=function(F){return{fieldType:2,fieldName:F}};
g.q$=function(F){return{fieldType:3,fieldName:F}};
s5H=function(F){this.Y=F;F.DY("/client_streamz/bg/frs",g.q$("mk"))};
rnC=function(F){this.Y=F;F.DY("/client_streamz/bg/wrl",g.q$("mn"),XY("ac"),XY("sc"),g.q$("rk"),g.q$("mk"))};
BIR=function(F){this.Y=F;F.Gu("/client_streamz/bg/ec",g.q$("en"),g.q$("mk"))};
Gpp=function(F){this.Y=F;F.DY("/client_streamz/bg/el",g.q$("en"),g.q$("mk"))};
U9n=function(F){this.Y=F;F.Gu("/client_streamz/bg/cec",XY("ec"),g.q$("mk"))};
tHx=function(F){this.Y=F;F.Gu("/client_streamz/bg/po/csc",XY("cs"),g.q$("mk"))};
Zkp=function(F){this.Y=F;F.Gu("/client_streamz/bg/po/ctav",g.q$("av"),g.q$("mk"))};
vYR=function(F){this.Y=F;F.Gu("/client_streamz/bg/po/cwsc",g.q$("su"),g.q$("mk"))};
N$=function(F,k){if(Error.captureStackTrace)Error.captureStackTrace(this,N$);else{var z=Error().stack;z&&(this.stack=z)}F&&(this.message=String(F));k!==void 0&&(this.cause=k)};
cnY=function(){};
mA=function(){throw Error("Invalid UTF8");};
PD9=function(F,k){k=String.fromCharCode.apply(null,k);return F==null?k:F+k};
Hk5=function(F){var k=!1;k=k===void 0?!1:k;if(OkH){if(k&&(VHD?!F.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(F)))throw Error("Found an unpaired surrogate");F=(IMY||(IMY=new TextEncoder)).encode(F)}else{for(var z=0,x=new Uint8Array(3*F.length),D=0;D<F.length;D++){var e=F.charCodeAt(D);if(e<128)x[z++]=e;else{if(e<2048)x[z++]=e>>6|192;else{if(e>=55296&&e<=57343){if(e<=56319&&D<F.length){var C=F.charCodeAt(++D);if(C>=56320&&C<=57343){e=(e-55296)*1024+
C-56320+65536;x[z++]=e>>18|240;x[z++]=e>>12&63|128;x[z++]=e>>6&63|128;x[z++]=e&63|128;continue}else D--}if(k)throw Error("Found an unpaired surrogate");e=65533}x[z++]=e>>12|224;x[z++]=e>>6&63|128}x[z++]=e&63|128}}F=z===x.length?x:x.subarray(0,z)}return F};
Tt=function(F){g.bD.setTimeout(function(){throw F;},0)};
aMH=function(F){return Array.prototype.map.call(F,function(k){k=k.toString(16);return k.length>1?k:"0"+k}).join("")};
SCH=function(F){for(var k=[],z=0;z<F.length;z+=2)k.push(parseInt(F.substring(z,z+2),16));return k};
g.l7=function(F){for(var k=[],z=0,x=0;x<F.length;x++){var D=F.charCodeAt(x);D<128?k[z++]=D:(D<2048?k[z++]=D>>6|192:((D&64512)==55296&&x+1<F.length&&(F.charCodeAt(x+1)&64512)==56320?(D=65536+((D&1023)<<10)+(F.charCodeAt(++x)&1023),k[z++]=D>>18|240,k[z++]=D>>12&63|128):k[z++]=D>>12|224,k[z++]=D>>6&63|128),k[z++]=D&63|128)}return k};
Qn=function(F,k){return F.lastIndexOf(k,0)==0};
bkn=function(F,k){var z=F.length-k.length;return z>=0&&F.indexOf(k,z)==z};
g.hD=function(F){return/^[\s\xa0]*$/.test(F)};
g.r9=function(F,k){return F.indexOf(k)!=-1};
Bl=function(F,k){return g.r9(F.toLowerCase(),k.toLowerCase())};
g.tD=function(F,k){var z=0;F=Gt(String(F)).split(".");k=Gt(String(k)).split(".");for(var x=Math.max(F.length,k.length),D=0;z==0&&D<x;D++){var e=F[D]||"",C=k[D]||"";do{e=/(\d*)(\D*)(.*)/.exec(e)||["","","",""];C=/(\d*)(\D*)(.*)/.exec(C)||["","","",""];if(e[0].length==0&&C[0].length==0)break;z=U$(e[1].length==0?0:parseInt(e[1],10),C[1].length==0?0:parseInt(C[1],10))||U$(e[2].length==0,C[2].length==0)||U$(e[2],C[2]);e=e[3];C=C[3]}while(z==0)}return z};
U$=function(F,k){return F<k?-1:F>k?1:0};
g.ZH=function(){var F=g.bD.navigator;return F&&(F=F.userAgent)?F:""};
O$=function(F){if(!vl&&!cl||!Pl)return!1;for(var k=0;k<Pl.brands.length;k++){var z=Pl.brands[k].brand;if(z&&g.r9(z,F))return!0}return!1};
Vn=function(F){return g.r9(g.ZH(),F)};
Ip=function(){return vl||cl?!!Pl&&Pl.brands.length>0:!1};
Hl=function(){return Ip()?!1:Vn("Opera")};
d9k=function(){return Ip()?!1:Vn("Trident")||Vn("MSIE")};
Jnn=function(){return Ip()?O$("Microsoft Edge"):Vn("Edg/")};
ap=function(){return Vn("Firefox")||Vn("FxiOS")};
d9=function(){return Vn("Safari")&&!(SC()||(Ip()?0:Vn("Coast"))||Hl()||(Ip()?0:Vn("Edge"))||Jnn()||(Ip()?O$("Opera"):Vn("OPR"))||ap()||Vn("Silk")||Vn("Android"))};
SC=function(){return Ip()?O$("Chromium"):(Vn("Chrome")||Vn("CriOS"))&&!(Ip()?0:Vn("Edge"))||Vn("Silk")};
ynI=function(){return Vn("Android")&&!(SC()||ap()||Hl()||Vn("Silk"))};
Ran=function(F){var k={};F.forEach(function(z){k[z[0]]=z[1]});
return function(z){return k[z.find(function(x){return x in k})]||""}};
gY6=function(F){var k=g.ZH();if(F==="Internet Explorer"){if(d9k())if((F=/rv: *([\d\.]*)/.exec(k))&&F[1])k=F[1];else{F="";var z=/MSIE +([\d\.]+)/.exec(k);if(z&&z[1])if(k=/Trident\/(\d.\d)/.exec(k),z[1]=="7.0")if(k&&k[1])switch(k[1]){case "4.0":F="8.0";break;case "5.0":F="9.0";break;case "6.0":F="10.0";break;case "7.0":F="11.0"}else F="7.0";else F=z[1];k=F}else k="";return k}var x=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");z=[];for(var D;D=x.exec(k);)z.push([D[1],D[2],D[3]||void 0]);
k=Ran(z);switch(F){case "Opera":if(Hl())return k(["Version","Opera"]);if(Ip()?O$("Opera"):Vn("OPR"))return k(["OPR"]);break;case "Microsoft Edge":if(Ip()?0:Vn("Edge"))return k(["Edge"]);if(Jnn())return k(["Edg"]);break;case "Chromium":if(SC())return k(["Chrome","CriOS","HeadlessChrome"])}return F==="Firefox"&&ap()||F==="Safari"&&d9()||F==="Android Browser"&&ynI()||F==="Silk"&&Vn("Silk")?(k=z[2])&&k[1]||"":""};
YCC=function(F){if(Ip()&&F!=="Silk"){var k=Pl.brands.find(function(z){return z.brand===F});
if(!k||!k.version)return NaN;k=k.version.split(".")}else{k=gY6(F);if(k==="")return NaN;k=k.split(".")}return k.length===0?NaN:Number(k[0])};
JD=function(){return vl||cl?!!Pl&&!!Pl.platform:!1};
nY5=function(){return JD()?Pl.platform==="Android":Vn("Android")};
yn=function(){return Vn("iPhone")&&!Vn("iPod")&&!Vn("iPad")};
Rp=function(){return yn()||Vn("iPad")||Vn("iPod")};
g9=function(){return JD()?Pl.platform==="macOS":Vn("Macintosh")};
MH6=function(){return JD()?Pl.platform==="Windows":Vn("Windows")};
g.YG=function(F){return F[F.length-1]};
Ln9=function(F,k){var z=F.length,x=typeof F==="string"?F.split(""):F;for(--z;z>=0;--z)z in x&&k.call(void 0,x[z],z,F)};
g.M$=function(F,k,z){k=nC(F,k,z);return k<0?null:typeof F==="string"?F.charAt(k):F[k]};
nC=function(F,k,z){for(var x=F.length,D=typeof F==="string"?F.split(""):F,e=0;e<x;e++)if(e in D&&k.call(z,D[e],e,F))return e;return-1};
g.LC=function(F,k,z){var x=F.length,D=typeof F==="string"?F.split(""):F;for(--x;x>=0;x--)if(x in D&&k.call(z,D[x],x,F))return x;return-1};
g.fC=function(F,k){return fMM(F,k)>=0};
Knk=function(F){if(!Array.isArray(F))for(var k=F.length-1;k>=0;k--)delete F[k];F.length=0};
g.FN=function(F,k){k=fMM(F,k);var z;(z=k>=0)&&g.Wl(F,k);return z};
g.Wl=function(F,k){return Array.prototype.splice.call(F,k,1).length==1};
g.kr=function(F,k){k=nC(F,k);k>=0&&g.Wl(F,k)};
WnC=function(F,k){var z=0;Ln9(F,function(x,D){k.call(void 0,x,D,F)&&g.Wl(F,D)&&z++})};
g.o2=function(F){return Array.prototype.concat.apply([],arguments)};
g.z8=function(F){var k=F.length;if(k>0){for(var z=Array(k),x=0;x<k;x++)z[x]=F[x];return z}return[]};
g.xr=function(F,k){for(var z=1;z<arguments.length;z++){var x=arguments[z];if(g.nk(x)){var D=F.length||0,e=x.length||0;F.length=D+e;for(var C=0;C<e;C++)F[D+C]=x[C]}else F.push(x)}};
g.$r=function(F,k,z,x){Array.prototype.splice.apply(F,ir(arguments,1))};
ir=function(F,k,z){return arguments.length<=2?Array.prototype.slice.call(F,k):Array.prototype.slice.call(F,k,z)};
FAC=function(F){for(var k=0,z=0,x={};z<F.length;){var D=F[z++],e=g.M9(D)?"o"+g.Kk(D):(typeof D).charAt(0)+D;Object.prototype.hasOwnProperty.call(x,e)||(x[e]=!0,F[k++]=D)}F.length=k};
g.eS=function(F,k,z){return ktH(F,z||jS,!1,k)};
C8=function(F,k){return ktH(F,k,!0)};
ktH=function(F,k,z,x){for(var D=0,e=F.length,C;D<e;){var p=D+(e-D>>>1),E=void 0;z?E=k.call(void 0,F[p],p,F):E=k(x,F[p]);E>0?D=p+1:(e=p,C=!E)}return C?D:-D-1};
g.AO=function(F,k){F.sort(k||jS)};
oGC=function(F,k){var z=jS;g.AO(F,function(x,D){return z(k(x),k(D))})};
g.p8=function(F,k,z){if(!g.nk(F)||!g.nk(k)||F.length!=k.length)return!1;var x=F.length;z=z||zV9;for(var D=0;D<x;D++)if(!z(F[D],k[D]))return!1;return!0};
jS=function(F,k){return F>k?1:F<k?-1:0};
zV9=function(F,k){return F===k};
g.E7=function(F,k,z){z=g.eS(F,k,z);z<0&&g.$r(F,-(z+1),0,k)};
g.qT=function(F,k,z){var x={};(0,g.XN)(F,function(D,e){x[k.call(z,D,e,F)]=D});
return x};
x$6=function(F){for(var k=[],z=0;z<F;z++)k[z]="";return k};
iCI=function(F,k){k=Array.prototype.splice.call(F,k,1);Array.prototype.splice.call(F,0,0,k[0])};
ur=function(F){ur[" "](F);return F};
D$I=function(F,k){try{return ur(F[k]),!0}catch(z){}return!1};
jpn=function(F,k){var z=$$Y;return Object.prototype.hasOwnProperty.call(z,F)?z[F]:z[F]=k(F)};
g.wN=function(F){return jpn(F,function(){return g.tD(eVH,F)>=0})};
g.mv=function(F,k){k===void 0&&(k=0);C7a();k=AD5[k];for(var z=Array(Math.floor(F.length/3)),x=k[64]||"",D=0,e=0;D<F.length-2;D+=3){var C=F[D],p=F[D+1],E=F[D+2],X=k[C>>2];C=k[(C&3)<<4|p>>4];p=k[(p&15)<<2|E>>6];E=k[E&63];z[e++]=""+X+C+p+E}X=0;E=x;switch(F.length-D){case 2:X=F[D+1],E=k[(X&15)<<2]||x;case 1:F=F[D],z[e]=""+k[F>>2]+k[(F&3)<<4|X>>4]+E+x}return z.join("")};
g.T8=function(F,k){if(pl9&&!k)F=g.bD.btoa(F);else{for(var z=[],x=0,D=0;D<F.length;D++){var e=F.charCodeAt(D);e>255&&(z[x++]=e&255,e>>=8);z[x++]=e}F=g.mv(z,k)}return F};
XlC=function(F){var k=[];EG5(F,function(z){k.push(z)});
return k};
lr=function(F){var k=F.length,z=k*3/4;z%3?z=Math.floor(z):g.r9("=.",F[k-1])&&(z=g.r9("=.",F[k-2])?z-2:z-1);var x=new Uint8Array(z),D=0;EG5(F,function(e){x[D++]=e});
return D!==z?x.subarray(0,D):x};
EG5=function(F,k){function z(E){for(;x<F.length;){var X=F.charAt(x++),q=QY[X];if(q!=null)return q;if(!g.hD(X))throw Error("Unknown base64 encoding at char: "+X);}return E}
C7a();for(var x=0;;){var D=z(-1),e=z(0),C=z(64),p=z(64);if(p===64&&D===-1)break;k(D<<2|e>>4);C!=64&&(k(e<<4&240|C>>2),p!=64&&k(C<<6&192|p))}};
C7a=function(){if(!QY){QY={};for(var F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),k=["+/=","+/","-_=","-_.","-_"],z=0;z<5;z++){var x=F.concat(k[z].split(""));AD5[z]=x;for(var D=0;D<x.length;D++){var e=x[D];QY[e]===void 0&&(QY[e]=D)}}}};
N95=function(F){return q$Y[F]||""};
m$n=function(F){if(!uYD)return lr(F);wla.test(F)&&(F=F.replace(wla,N95));F=atob(F);for(var k=new Uint8Array(F.length),z=0;z<F.length;z++)k[z]=F.charCodeAt(z);return k};
hO=function(F,k){T9C(k);this.Y=F;if(F!=null&&F.length===0)throw Error("ByteString should be constructed with non-empty values");};
rN=function(){return lHx||(lHx=new hO(null,s7))};
G8=function(F){return new Uint8Array(BY(F)||0)};
BY=function(F){T9C(s7);var k=F.Y;k=k==null||QpH&&k!=null&&k instanceof Uint8Array?k:typeof k==="string"?m$n(k):null;return k==null?k:F.Y=k};
T9C=function(F){if(F!==s7)throw Error("illegal external caller");};
hV5=function(F,k){F.__closure__error__context__984382||(F.__closure__error__context__984382={});F.__closure__error__context__984382.severity=k};
U7=function(F){F=Error(F);hV5(F,"warning");return F};
tO=function(F,k){if(F!=null){var z;var x=(z=spH)!=null?z:spH={};z=x[F]||0;z>=k||(x[F]=z+1,F=Error(),hV5(F,"incident"),Tt(F))}};
ZP=function(F,k,z){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(z===void 0?0:z)&&Symbol.for&&F?Symbol.for(F):F!=null?Symbol(F):Symbol():k};
PY=function(F,k){vY||cY in F||rD6(F,B9p);F[cY]|=k};
O7=function(F,k){vY||cY in F||rD6(F,B9p);F[cY]=k};
VY=function(F){F[cY]&=-3};
HY=function(F){F=F[I2];var k=F===Gt9;U$H&&F&&!k&&tO(tCx,3);return k};
SS=function(F,k){if(k===void 0){if(k=F.Y!==a2)HY(F),k=!!(2&(F.aS[cY]|0));F=k}else F=!!(2&k)&&F.Y!==a2;return F};
br=function(F){return F!==null&&typeof F==="object"&&!Array.isArray(F)&&F.constructor===Object};
ZCC=function(F,k){if(F!=null)if(typeof F==="string")F=F?new hO(F,s7):rN();else if(F.constructor!==hO)if(QpH&&F!=null&&F instanceof Uint8Array)F=F.length?new hO(new Uint8Array(F),s7):rN();else{if(!k)throw Error();F=void 0}return F};
JO=function(F,k){if(typeof k!=="number"||k<0||k>=F.length)throw Error();};
vGH=function(F,k,z){var x=k&512?0:-1,D=F.length;k=k&64?k&256:!!D&&br(F[D-1]);for(var e=D+(k?-1:0),C=0;C<e;C++)z(C-x,F[C]);if(k){F=F[D-1];for(var p in F)!isNaN(p)&&z(+p,F[p])}};
R2=function(F){return F&512?yY:void 0};
gN=function(){return typeof BigInt==="function"};
Yr=function(F){F.LLG=!0;return F};
f8=function(F){var k=F;if(cDC(k)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(k))throw Error(String(k));}else if(P7C(k)&&!Number.isSafeInteger(k))throw Error(String(k));return L8?BigInt(F):F=OCa(F)?F?"1":"0":cDC(F)?F.trim()||"0":String(F)};
VCY=function(F,k){if(F.length>k.length)return!1;if(F.length<k.length||F===k)return!0;for(var z=0;z<F.length;z++){var x=F[z],D=k[z];if(x>D)return!1;if(x<D)return!0}};
Fs=function(F){var k=F>>>0;K8=k;WY=(F-k)/4294967296>>>0};
zn=function(F){if(F<0){Fs(0-F);var k=g.l(oh(K8,WY));F=k.next().value;k=k.next().value;K8=F>>>0;WY=k>>>0}else Fs(F)};
iI=function(F,k){var z=k*4294967296+(F>>>0);return Number.isSafeInteger(z)?z:xN(F,k)};
IHn=function(F,k){var z=k&2147483648;z&&(F=~F+1>>>0,k=~k>>>0,F==0&&(k=k+1>>>0));F=iI(F,k);return typeof F==="number"?z?-F:F:z?"-"+F:F};
xN=function(F,k){k>>>=0;F>>>=0;if(k<=2097151)var z=""+(4294967296*k+F);else gN()?z=""+(BigInt(k)<<BigInt(32)|BigInt(F)):(z=(F>>>24|k<<8)&16777215,k=k>>16&65535,F=(F&16777215)+z*6777216+k*6710656,z+=k*8147497,k*=2,F>=1E7&&(z+=F/1E7>>>0,F%=1E7),z>=1E7&&(k+=z/1E7>>>0,z%=1E7),z=k+HCY(z)+HCY(F));return z};
HCY=function(F){F=String(F);return"0000000".slice(F.length)+F};
aHH=function(){var F=K8,k=WY;k&2147483648?gN()?F=""+(BigInt(k|0)<<BigInt(32)|BigInt(F>>>0)):(k=g.l(oh(F,k)),F=k.next().value,k=k.next().value,F="-"+xN(F,k)):F=xN(F,k);return F};
DT=function(F){if(F.length<16)zn(Number(F));else if(gN())F=BigInt(F),K8=Number(F&BigInt(4294967295))>>>0,WY=Number(F>>BigInt(32)&BigInt(4294967295));else{var k=+(F[0]==="-");WY=K8=0;for(var z=F.length,x=0+k,D=(z-k)%6+k;D<=z;x=D,D+=6)x=Number(F.slice(x,D)),WY*=1E6,K8=K8*1E6+x,K8>=4294967296&&(WY+=Math.trunc(K8/4294967296),WY>>>=0,K8>>>=0);k&&(k=g.l(oh(K8,WY)),F=k.next().value,k=k.next().value,K8=F,WY=k)}};
oh=function(F,k){k=~k;F?F=~F+1:k+=1;return[F,k]};
$N=function(F){return Array.prototype.slice.call(F)};
ji=function(F,k){throw Error(k===void 0?"unexpected value "+F+"!":k);};
ei=function(F){if(F!=null&&typeof F!=="number")throw Error("Value of float/double field must be a number, found "+typeof F+": "+F);return F};
S$x=function(F){return F.displayName||F.name||"unknown type name"};
Ce=function(F){if(F!=null&&typeof F!=="boolean")throw Error("Expected boolean but got "+gI(F)+": "+F);return F};
pe=function(F){switch(typeof F){case "bigint":return!0;case "number":return Al(F);case "string":return bC9.test(F);default:return!1}};
d$n=function(F){if(typeof F!=="number")throw U7("int32");if(!Al(F))throw U7("int32");return F|0};
Ep=function(F){return F==null?F:d$n(F)};
Xs=function(F){if(F==null)return F;if(typeof F==="string"&&F)F=+F;else if(typeof F!=="number")return;return Al(F)?F|0:void 0};
q3=function(F){if(F==null)return F;if(typeof F==="string"&&F)F=+F;else if(typeof F!=="number")return;return Al(F)?F>>>0:void 0};
RVn=function(F){var k=0;k=k===void 0?0:k;if(!pe(F))throw U7("int64");var z=typeof F;switch(k){case 2048:switch(z){case "string":return wR(F);case "bigint":return String(ms(64,F));default:return Tn(F)}case 4096:switch(z){case "string":return JDH(F);case "bigint":return f8(ms(64,F));default:return yDk(F)}case 0:switch(z){case "string":return wR(F);case "bigint":return f8(ms(64,F));default:return lI(F)}default:return ji(k,"Unknown format requested type for int64")}};
Qp=function(F){return F==null?F:RVn(F)};
gGI=function(F){if(F[0]==="-")return!1;var k=F.length;return k<20?!0:k===20&&Number(F.substring(0,6))<184467};
Y$5=function(F){var k=F.length;return F[0]==="-"?k<20?!0:k===20&&Number(F.substring(0,7))>-922337:k<19?!0:k===19&&Number(F.substring(0,6))<922337};
nGn=function(F){if(F<0){zn(F);var k=xN(K8,WY);F=Number(k);return hl(F)?F:k}k=String(F);if(gGI(k))return k;zn(F);return iI(K8,WY)};
MCp=function(F){if(Y$5(F))return F;DT(F);return aHH()};
lI=function(F){pe(F);F=sp(F);hl(F)||(zn(F),F=IHn(K8,WY));return F};
Tn=function(F){pe(F);F=sp(F);if(hl(F))F=String(F);else{var k=String(F);Y$5(k)?F=k:(zn(F),F=aHH())}return F};
wR=function(F){pe(F);var k=sp(Number(F));if(hl(k))return String(k);k=F.indexOf(".");k!==-1&&(F=F.substring(0,k));return MCp(F)};
JDH=function(F){var k=sp(Number(F));if(hl(k))return f8(k);k=F.indexOf(".");k!==-1&&(F=F.substring(0,k));return gN()?f8(ms(64,BigInt(F))):f8(MCp(F))};
yDk=function(F){return hl(F)?f8(lI(F)):f8(Tn(F))};
LA6=function(F){if(F==null)return F;var k=typeof F;if(k==="bigint")return String(ms(64,F));if(pe(F)){if(k==="string")return wR(F);if(k==="number")return lI(F)}};
KA9=function(F){if(F==null)return F;var k=typeof F;if(k==="bigint")return String(fHp(64,F));if(pe(F)){if(k==="string")return pe(F),k=sp(Number(F)),hl(k)&&k>=0?F=String(k):(k=F.indexOf("."),k!==-1&&(F=F.substring(0,k)),gGI(F)||(DT(F),F=xN(K8,WY))),F;if(k==="number")return pe(F),F=sp(F),F>=0&&hl(F)?F:nGn(F)}};
WAp=function(F){if(F==null||typeof F=="string"||F instanceof hO)return F};
FvD=function(F){if(typeof F!=="string")throw Error();return F};
rR=function(F){if(F!=null&&typeof F!=="string")throw Error();return F};
B9=function(F){return F==null||typeof F==="string"?F:void 0};
Gn=function(F,k){if(!(F instanceof k))throw Error("Expected instanceof "+S$x(k)+" but got "+(F&&S$x(F.constructor)));return F};
k89=function(F,k,z){if(F!=null&&typeof F==="object"&&HY(F))return F;if(Array.isArray(F)){var x=F[cY]|0,D=x;D===0&&(D|=z&32);D|=z&2;D!==x&&O7(F,D);return new k(F)}};
Up=function(F){return F};
ZT=function(F){var k=zt(tl);return k?F[k]:void 0};
v9=function(){};
c9=function(F,k){for(var z in F)!isNaN(z)&&k(F,+z,F[z])};
orI=function(F){var k=new v9;c9(F,function(z,x,D){k[x]=$N(D)});
k.Y=F.Y;return k};
Op=function(F,k,z,x,D){var e=x?!!(k&32):void 0;x=[];var C=F.length,p=!1;if(k&64){if(k&256){C--;var E=F[C];var X=C}else X=4294967295,E=void 0;if(!(D||k&512)){p=!0;var q;var N=((q=P9)!=null?q:Up)(E?X- -1:k>>16&1023||536870912,-1,F,E);X=N+-1}}else X=4294967295,k&1||(E=C&&F[C-1],br(E)?(C--,X=C,N=0):E=void 0);q=void 0;for(var u=0;u<C;u++){var w=F[u];if(w!=null&&(w=z(w,e))!=null)if(u>=X){var m=void 0;((m=q)!=null?m:q={})[u- -1]=w}else x[u]=w}if(E)for(var h in E)C=E[h],C!=null&&(C=z(C,e))!=null&&(u=+h,u<
N?x[u+-1]=C:(u=void 0,((u=q)!=null?u:q={})[h]=C));q&&(p?x.push(q):x[X]=q);D&&(O7(x,k&67043905|(q!=null?290:34)),zt(tl)&&(F=ZT(F))&&F instanceof v9&&(x[tl]=orI(F)));return x};
z5Y=function(F){switch(typeof F){case "number":return Number.isFinite(F)?F:""+F;case "bigint":return Vp(F)?Number(F):""+F;case "boolean":return F?1:0;case "object":if(Array.isArray(F)){var k=F[cY]|0;return F.length===0&&k&1?void 0:Op(F,k,z5Y,!1,!1)}if(HY(F))return Ih(F);if(F instanceof hO){k=F.Y;if(k==null)F="";else if(typeof k==="string")F=k;else{if(uYD){for(var z="",x=0,D=k.length-10240;x<D;)z+=String.fromCharCode.apply(null,k.subarray(x,x+=10240));z+=String.fromCharCode.apply(null,x?k.subarray(x):
k);k=btoa(z)}else k=g.mv(k);F=F.Y=k}return F}return}return F};
H9=function(F,k){if(k){P9=k==null||k===Up||k[xTI]!==i8H?Up:k;try{return Ih(F)}finally{P9=void 0}}return Ih(F)};
Ih=function(F){HY(F);F=F.aS;return Op(F,F[cY]|0,z5Y,void 0,!1)};
$Tp=function(F){switch(typeof F){case "boolean":return ah||(ah=[0,void 0,!0]);case "number":return F>0?void 0:F===0?DTY||(DTY=[0,void 0]):[-F,void 0];case "string":return[0,F];case "object":return F}};
Si=function(F,k,z){F=j26(F,k[0],k[1],z?1:2);k!==ah&&z&&PY(F,8192);return F};
dR=function(F,k,z){return j26(F,k,z,3)};
j26=function(F,k,z,x){if(F==null){var D=96;z?(F=[z],D|=512):F=[];k&&(D=D&-67043329|(k&1023)<<16)}else{if(!Array.isArray(F))throw Error("narr");D=F[cY]|0;8192&D||!(64&D)||2&D||e55();if(D&1024)throw Error("farr");if(D&64)return x!==3||D&16384||O7(F,D|16384),F;x===1||x===2||(D|=64);if(z&&(D|=512,z!==F[0]))throw Error("mid");a:{z=F;var e=z.length;if(e){var C=e-1,p=z[C];if(br(p)){D|=256;k=D&512?0:-1;C-=k;if(C>=1024)throw Error("pvtlmt");for(var E in p)e=+E,e<C&&(z[e+k]=p[E],delete p[E]);D=D&-67043329|
(C&1023)<<16;break a}}if(k){E=Math.max(k,e-(D&512?0:-1));if(E>1024)throw Error("spvt");D=D&-67043329|(E&1023)<<16}}}x===3&&(D|=16384);O7(F,D);return F};
e55=function(){tO(Crp,5)};
Jl=function(F,k){if(typeof F!=="object")return F;if(Array.isArray(F)){var z=F[cY]|0;if(F.length===0&&z&1)return;if(z&2)return F;var x;if(x=k)x=z===0||!!(z&32)&&!(z&64||!(z&16));return x?(PY(F,34),z&4&&Object.freeze(F),F):Op(F,z,Jl,k!==void 0,!0)}if(HY(F))return HY(F),HY(F),k=F.aS,z=k[cY]|0,SS(F,z)?F:Op(k,z,Jl,!0,!0);if(F instanceof hO)return F};
yp=function(F){var k=F;HY(k);k=k.aS;var z=k[cY]|0;if(!SS(F,z))return F;k=F=new F.constructor(Op(k,z,Jl,!0,!0));HY(k);VY(k.aS);return F};
Rh=function(F){if(F.Y!==a2)return!1;HY(F);var k=F.aS;k=Op(k,k[cY]|0,Jl,!0,!0);VY(k);HY(F);F.aS=k;F.Y=void 0;return!0};
gR=function(F){var k;if(k=!Rh(F))HY(F),k=SS(F,F.aS[cY]|0);if(k)throw Error();};
ne=function(F,k,z){Object.isExtensible(F);HY(F);return YN(F.aS,void 0,k,z)};
YN=function(F,k,z,x,D){if(z===-1)return null;x=z+(x?0:-1);var e=F.length-1;if(x>=e&&(k!=null?k:F[cY]|0)&256){k=F[e][z];var C=!0}else if(x<=e)k=F[x];else return;if(D&&k!=null){D=D(k);if(D==null)return D;if(D!==k)return C?F[e][z]=D:F[x]=D,D}return k};
Le=function(F,k,z,x){gR(F);HY(F);var D=F.aS;M3(D,D[cY]|0,k,z,x);return F};
M3=function(F,k,z,x,D){var e=z+(D?0:-1),C=F.length-1,p;if(e>=C&&((p=k)!=null?p:k=F[cY]|0)&256)return F[C][z]=x,k;if(e<=C)return F[e]=x,k;x!==void 0&&(C=k>>16&1023||536870912,z>=C?x!=null&&(e={},F[C+(D?0:-1)]=(e[z]=x,e),k|=256,O7(F,k)):F[e]=x);return k};
pY6=function(F,k,z){HY(F);F=F.aS;return AOa(F,F[cY]|0,k,z)!==void 0};
oK=function(F,k,z,x,D){HY(F);var e=F.aS;var C=e[cY]|0;x=SS(F,C)?1:x;D=!!D||x===3;x===2&&Rh(F)&&(HY(F),e=F.aS,C=e[cY]|0);F=fe(e,C,k);var p=F[cY]|0;if(!(4&p)){4&p&&(F=$N(F),p=Ke(p,C),C=M3(e,C,k,F));for(var E=0,X=0;E<F.length;E++){var q=z(F[E]);q!=null&&(F[X++]=q)}X<E&&(F.length=X);p=W9(p,C);z=(p|20)&-2049;p=z&=-4097;O7(F,p);2&p&&Object.freeze(F)}x===1||x===4&&32&p?Fv(p)||(D=p,p|=2,p!==D&&O7(F,p),Object.freeze(F)):(x===2&&Fv(p)&&(F=$N(F),p=Ke(p,C),p=k6(p,C,D),O7(F,p),C=M3(e,C,k,F)),Fv(p)||(k=p,p=k6(p,
C,D),p!==k&&O7(F,p)));return F};
fe=function(F,k,z,x){F=YN(F,k,z,x);return Array.isArray(F)?F:zS};
W9=function(F,k){F===0&&(F=Ke(F,k),F|=16);return F|1};
Fv=function(F){return!!(2&F)&&!!(4&F)||!!(1024&F)};
Ern=function(F){return ZCC(F,!0)};
x6=function(F,k){HY(F);F=YN(F.aS,void 0,k,void 0,Ern);return F==null?rN():F};
XYx=function(F,k,z){gR(F);HY(F);var x=F.aS;var D=x[cY]|0;if(k==null)return M3(x,D,3),F;if(!Array.isArray(k))throw U7();var e=k[cY]|0,C=e,p=Fv(e),E=p||Object.isFrozen(k);p||(e=0);E||(k=$N(k),C=0,e=Ke(e,D),e=k6(e,D,!0),E=!1);e|=21;p=4&e?2048&e?2048:4096&e?4096:0:void 0;p=p!=null?p:0;for(var X=0;X<k.length;X++){var q=k[X],N=z(q,p);Object.is(q,N)||(E&&(k=$N(k),C=0,e=Ke(e,D),e=k6(e,D,!0),E=!1),k[X]=N)}e!==C&&(E&&(k=$N(k),e=Ke(e,D),e=k6(e,D,!0)),O7(k,e));M3(x,D,3,k);return F};
it=function(F,k,z,x,D){gR(F);HY(F);var e=F.aS;M3(e,e[cY]|0,k,(x==="0"?Number(z)===0:z===x)?void 0:z,D);return F};
Da=function(F,k,z){if(k&2)throw Error();var x=!!(64&k)||!(8192&k),D=R2(k),e=fe(F,k,z,D),C=e!==zS;if(x||!C){C=x=e===zS?55:e[cY]|0;if(2&C||Fv(C)||4&C&&!(32&C))e=$N(e),x=0,C=Ke(C,k),k=M3(F,k,z,e,D);C=W9(C,k)&-13;C=k6(C,k,!0);C!==x&&O7(e,C)}return e};
CW=function(F,k,z,x){gR(F);HY(F);var D=F.aS;var e=D[cY]|0;if(x==null){var C=$6(D);if(jY(C,D,e,z)===k)C.set(z,0);else return F}else e=eY(D,e,z,k);M3(D,e,k,x);return F};
A0=function(F,k,z,x){var D=F[cY]|0,e=R2(D);D=eY(F,D,z,k,e);M3(F,D,k,x,e)};
pW=function(F,k,z){HY(F);F=F.aS;return jY($6(F),F,void 0,k)===z?z:-1};
$6=function(F){if(vY){var k;return(k=F[ED])!=null?k:F[ED]=new Map}if(ED in F)return F[ED];k=new Map;Object.defineProperty(F,ED,{value:k});return k};
eY=function(F,k,z,x,D){z.includes(x);var e=$6(F),C=jY(e,F,k,z,D);C!==x&&(C&&(k=M3(F,k,C,void 0,D)),e.set(z,x));return k};
jY=function(F,k,z,x,D){var e=F.get(x);if(e!=null)return e;for(var C=e=0;C<x.length;C++){var p=x[C];YN(k,z,p,D)!=null&&(e!==0&&(z=M3(k,z,e,void 0,D)),e=p)}F.set(x,e);return e};
Xv=function(F,k,z){var x=F[cY]|0,D=R2(x),e=YN(F,x,z,D);if(e!=null&&HY(e))return k=yp(e),k!==e&&M3(F,x,z,k,D),Rh(k),HY(k),k.aS;if(Array.isArray(e)){var C=e[cY]|0;if(C&2){var p=Si(Op(e,C,Jl,!0,!0),k,!0);VY(p)}else C&64?p=e:p=Si(p,k,!0)}else p=Si(void 0,k,!0);p!==e&&M3(F,x,z,p,D);return p};
AOa=function(F,k,z,x,D){var e=YN(F,k,x,D);z=k89(e,z,k);z!==e&&z!=null&&M3(F,k,x,z,D);return z};
q6=function(F,k,z,x){HY(F);var D=F.aS;var e=D[cY]|0;k=AOa(D,e,k,z,x);if(k==null)return k;e=D[cY]|0;if(!SS(F,e)){var C=yp(k);C!==k&&(Rh(F)&&(HY(F),D=F.aS,e=D[cY]|0),k=C,M3(D,e,z,k,x))}return k};
q7p=function(F,k,z,x,D,e,C,p){var E=SS(F,z);e=E?1:e;C=!!C||e===3;E=p&&!E;(e===2||E)&&Rh(F)&&(HY(F),k=F.aS,z=k[cY]|0);F=fe(k,z,D);var X=F[cY]|0;p=!!(4&X);if(!p){X=W9(X,z);var q=F,N=z,u=!!(2&X);u&&(N|=2);for(var w=!u,m=!0,h=0,B=0;h<q.length;h++){var U=k89(q[h],x,N);if(U instanceof x){if(!u){var v=SS(U);w&&(w=!v);m&&(m=v)}q[B++]=U}}B<h&&(q.length=B);X|=4;X=m?X|16:X&-17;X=w?X|8:X&-9;O7(q,X);u&&Object.freeze(q)}if(E&&!(8&X||!F.length&&(e===1||e===4&&32&X))){Fv(X)&&(F=$N(F),X=Ke(X,z),z=M3(k,z,D,F));x=F;
E=X;for(q=0;q<x.length;q++)X=x[q],N=yp(X),X!==N&&(x[q]=N);E|=8;E=x.length?E&-17:E|16;O7(x,E);X=E}e===1||e===4&&32&X?Fv(X)||(z=X,X|=!F.length||16&X&&(!p||32&X)?2:1024,X!==z&&O7(F,X),Object.freeze(F)):(e===2&&Fv(X)&&(F=$N(F),X=Ke(X,z),X=k6(X,z,C),O7(F,X),z=M3(k,z,D,F)),Fv(X)||(k=X,X=k6(X,z,C),X!==k&&O7(F,X)));return F};
DH=function(F,k,z){HY(F);var x=F.aS;return q7p(F,x,x[cY]|0,k,z,void 0===NNC?2:4,!1,!0)};
uNp=function(F,k){F!=null?Gn(F,k):F=void 0;return F};
N6=function(F,k,z,x,D){x=uNp(x,k);Le(F,z,x,D);return F};
ut=function(F,k,z,x){gR(F);HY(F);var D=F.aS;var e=D[cY]|0;if(x==null)return M3(D,e,z),F;if(!Array.isArray(x))throw U7();for(var C=x[cY]|0,p=C,E=Fv(C),X=E||Object.isFrozen(x),q=!0,N=!0,u=0;u<x.length;u++){var w=x[u];Gn(w,k);E||(w=SS(w),q&&(q=!w),N&&(N=w))}E||(C=q?13:5,C=N?C|16:C&-17);X&&C===p||(x=$N(x),p=0,C=Ke(C,e),C=k6(C,e,!0));C!==p&&O7(x,C);M3(D,e,z,x);return F};
Ke=function(F,k){2&F&&(F|=16);F=(2&k?F|2:F&-3)|32;return F&=-1025};
k6=function(F,k,z){32&k&&z||(F&=-33);return F};
w$=function(F,k,z,x){gR(F);HY(F);var D=F.aS;F=q7p(F,D,D[cY]|0,z,k,2,!0);x=x!=null?Gn(x,z):new z;F.push(x);k=z=F[cY]|0;SS(x)?(z&=-9,F.length===1&&(z|=16)):z&=-17;z!==k&&O7(F,z)};
mq=function(F,k,z){return B9(ne(F,k,z))};
eC=function(F,k,z){z=z===void 0?0:z;var x;return(x=Xs(ne(F,k)))!=null?x:z};
TS=function(F,k){var z=z===void 0?0:z;var x;return(x=q3(ne(F,k)))!=null?x:z};
mT5=function(F,k,z){z=z===void 0?wY6:z;F=ne(F,k);k=typeof F;F=F==null?F:k==="bigint"?f8(ms(64,F)):pe(F)?k==="string"?JDH(F):yDk(F):void 0;return F!=null?F:z};
lt=function(F,k,z,x){z=z===void 0?"":z;var D;return(D=mq(F,k,x))!=null?D:z};
QC=function(F,k){var z=z===void 0?0:z;F=ne(F,k);F=F==null?F:Al(F)?F|0:void 0;return F!=null?F:z};
sD=function(F,k,z){return Le(F,k,Qp(z))};
r$=function(F,k,z){return Le(F,k,rR(z))};
BR=function(F,k,z,x){return it(F,k,rR(z),"",x)};
GS=function(F,k,z){if(z!=null){if(!Al(z))throw U7("enum");z|=0}return Le(F,k,z)};
TN5=function(F,k){return Error("Invalid wire type: "+F+" (at position "+k+")")};
UD=function(){return Error("Failed to read varint, encoding is invalid.")};
lP5=function(F,k){return Error("Tried to read past the end of the data "+k+" > "+F)};
t0=function(F,k){if(typeof F==="string")return{buffer:m$n(F),uh:k};if(Array.isArray(F))return{buffer:new Uint8Array(F),uh:k};if(F.constructor===Uint8Array)return{buffer:F,uh:!1};if(F.constructor===ArrayBuffer)return{buffer:new Uint8Array(F),uh:!1};if(F.constructor===hO)return{buffer:BY(F)||new Uint8Array(0),uh:!0};if(F instanceof Uint8Array)return{buffer:new Uint8Array(F.buffer,F.byteOffset,F.byteLength),uh:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers");
};
Q2n=function(F,k,z,x){this.L=null;this.W=!1;this.Y=this.U=this.j=0;this.init(F,k,z,x)};
vR=function(F){var k=0,z=0,x=0,D=F.L,e=F.Y;do{var C=D[e++];k|=(C&127)<<x;x+=7}while(x<32&&C&128);x>32&&(z|=(C&127)>>4);for(x=3;x<32&&C&128;x+=7)C=D[e++],z|=(C&127)<<x;Za(F,e);if(C<128)return IHn(k>>>0,z>>>0);throw UD();};
Za=function(F,k){F.Y=k;if(k>F.U)throw lP5(F.U,k);};
cR=function(F){var k=F.L,z=F.Y,x=k[z++],D=x&127;if(x&128&&(x=k[z++],D|=(x&127)<<7,x&128&&(x=k[z++],D|=(x&127)<<14,x&128&&(x=k[z++],D|=(x&127)<<21,x&128&&(x=k[z++],D|=x<<28,x&128&&k[z++]&128&&k[z++]&128&&k[z++]&128&&k[z++]&128&&k[z++]&128)))))throw UD();Za(F,z);return D};
PR=function(F){var k=F.L,z=F.Y,x=k[z+0],D=k[z+1],e=k[z+2];k=k[z+3];Za(F,F.Y+4);return(x<<0|D<<8|e<<16|k<<24)>>>0};
OD=function(F){var k=PR(F);F=PR(F);return iI(k,F)};
VC=function(F){var k=PR(F),z=PR(F);F=(z>>31)*2+1;var x=z>>>20&2047;k=4294967296*(z&1048575)+k;return x==2047?k?NaN:F*Infinity:x==0?F*4.9E-324*k:F*Math.pow(2,x-1075)*(k+4503599627370496)};
IK=function(F){for(var k=0,z=F.Y,x=z+10,D=F.L;z<x;){var e=D[z++];k|=e;if((e&128)===0)return Za(F,z),!!(k&127)}throw UD();};
h5R=function(F,k){if(k<0)throw Error("Tried to read a negative byte length: "+k);var z=F.Y,x=z+k;if(x>F.U)throw lP5(k,F.U-z);F.Y=x;return z};
rOx=function(F,k){if(k==0)return rN();var z=h5R(F,k);F.m8&&F.W?z=F.L.subarray(z,z+k):(F=F.L,k=z+k,z=z===k?new Uint8Array(0):s2C?F.slice(z,k):new Uint8Array(F.subarray(z,k)));return z.length==0?rN():new hO(z,s7)};
aK=function(F,k,z,x){if(HR.length){var D=HR.pop();D.init(F,k,z,x);F=D}else F=new Q2n(F,k,z,x);this.Y=F;this.U=this.Y.Y;this.L=this.j=-1;BNp(this,x)};
BNp=function(F,k){k=k===void 0?{}:k;F.vG=k.vG===void 0?!1:k.vG};
G8x=function(F,k,z,x){if(SY.length){var D=SY.pop();BNp(D,x);D.Y.init(F,k,z,x);return D}return new aK(F,k,z,x)};
UTC=function(F){var k=F.Y;if(k.Y==k.U)return!1;F.U=F.Y.Y;var z=cR(F.Y)>>>0;k=z>>>3;z&=7;if(!(z>=0&&z<=5))throw TN5(z,F.U);if(k<1)throw Error("Invalid field number: "+k+" (at position "+F.U+")");F.j=k;F.L=z;return!0};
bt=function(F){switch(F.L){case 0:F.L!=0?bt(F):IK(F.Y);break;case 1:F=F.Y;Za(F,F.Y+8);break;case 2:if(F.L!=2)bt(F);else{var k=cR(F.Y)>>>0;F=F.Y;Za(F,F.Y+k)}break;case 5:F=F.Y;Za(F,F.Y+4);break;case 3:k=F.j;do{if(!UTC(F))throw Error("Unmatched start-group tag: stream EOF");if(F.L==4){if(F.j!=k)throw Error("Unmatched end-group tag");break}bt(F)}while(1);break;default:throw TN5(F.L,F.U);}};
d$=function(F,k,z){var x=F.Y.U,D=cR(F.Y)>>>0,e=F.Y.Y+D,C=e-x;C<=0&&(F.Y.U=e,z(k,F,void 0,void 0,void 0),C=e-F.Y.Y);if(C)throw Error("Message parsing ended unexpectedly. Expected to read "+(D+" bytes, instead read "+(D-C)+" bytes, either the data ended unexpectedly or the message misreported its own length"));F.Y.Y=e;F.Y.U=x};
RK=function(F){var k=cR(F.Y)>>>0;F=F.Y;var z=h5R(F,k);F=F.L;if(tSY){var x=F,D;(D=J0)||(D=J0=new TextDecoder("utf-8",{fatal:!0}));k=z+k;x=z===0&&k===x.length?x:x.subarray(z,k);try{var e=D.decode(x)}catch(X){if(yC===void 0){try{D.decode(new Uint8Array([128]))}catch(q){}try{D.decode(new Uint8Array([97])),yC=!0}catch(q){yC=!1}}!yC&&(J0=void 0);throw X;}}else{e=z;k=e+k;z=[];for(var C=null,p,E;e<k;)p=F[e++],p<128?z.push(p):p<224?e>=k?mA():(E=F[e++],p<194||(E&192)!==128?(e--,mA()):z.push((p&31)<<6|E&63)):
p<240?e>=k-1?mA():(E=F[e++],(E&192)!==128||p===224&&E<160||p===237&&E>=160||((D=F[e++])&192)!==128?(e--,mA()):z.push((p&15)<<12|(E&63)<<6|D&63)):p<=244?e>=k-2?mA():(E=F[e++],(E&192)!==128||(p<<28)+(E-144)>>30!==0||((D=F[e++])&192)!==128||((x=F[e++])&192)!==128?(e--,mA()):(p=(p&7)<<18|(E&63)<<12|(D&63)<<6|x&63,p-=65536,z.push((p>>10&1023)+55296,(p&1023)+56320))):mA(),z.length>=8192&&(C=PD9(C,z),z.length=0);e=PD9(C,z)}return e};
Z8M=function(F){var k=cR(F.Y)>>>0;return rOx(F.Y,k)};
g$=function(F,k,z){F=dR(F,k,z);HY(this);this.aS=F};
vrn=function(F,k){if(k==null||k=="")return new F;k=JSON.parse(k);if(!Array.isArray(k))throw Error("dnarr");PY(k,32);return new F(k)};
Y6=function(F,k){this.L=F>>>0;this.Y=k>>>0};
Prn=function(F){if(!F)return cOC||(cOC=new Y6(0,0));if(!/^\d+$/.test(F))return null;DT(F);return new Y6(K8,WY)};
nW=function(F,k){this.L=F>>>0;this.Y=k>>>0};
VSx=function(F){if(!F)return O8a||(O8a=new nW(0,0));if(!/^-?\d+$/.test(F))return null;DT(F);return new nW(K8,WY)};
M6=function(){this.Y=[]};
LW=function(F,k,z){for(;z>0||k>127;)F.Y.push(k&127|128),k=(k>>>7|z<<25)>>>0,z>>>=7;F.Y.push(k)};
fW=function(F,k){for(;k>127;)F.Y.push(k&127|128),k>>>=7;F.Y.push(k)};
IPY=function(F,k){if(k>=0)fW(F,k);else{for(var z=0;z<9;z++)F.Y.push(k&127|128),k>>=7;F.Y.push(1)}};
KW=function(F,k){F.Y.push(k>>>0&255);F.Y.push(k>>>8&255);F.Y.push(k>>>16&255);F.Y.push(k>>>24&255)};
H8I=function(){this.U=[];this.L=0;this.Y=new M6};
WR=function(F,k){k.length!==0&&(F.U.push(k),F.L+=k.length)};
aPn=function(F,k){Ff(F,k,2);k=F.Y.end();WR(F,k);k.push(F.L);return k};
S7R=function(F,k){var z=k.pop();for(z=F.L+F.Y.length()-z;z>127;)k.push(z&127|128),z>>>=7,F.L++;k.push(z);F.L++};
Ff=function(F,k,z){fW(F.Y,k*8+z)};
b8p=function(F,k,z){if(z!=null){switch(typeof z){case "string":Prn(z)}Ff(F,k,1);switch(typeof z){case "number":F=F.Y;Fs(z);KW(F,K8);KW(F,WY);break;case "bigint":z=BigInt.asUintN(64,z);z=new Y6(Number(z&BigInt(4294967295)),Number(z>>BigInt(32)));F=F.Y;k=z.Y;KW(F,z.L);KW(F,k);break;default:z=Prn(z),F=F.Y,k=z.Y,KW(F,z.L),KW(F,k)}}};
k$=function(F,k,z){Ff(F,k,2);fW(F.Y,z.length);WR(F,F.Y.end());WR(F,z)};
ou=function(){function F(){throw Error();}
Object.setPrototypeOf(F,F.prototype);return F};
x$=function(F,k,z){this.pz=F;this.Cz=k;F=zt(zP);this.Y=!!F&&z===F||!1};
iY=function(F,k){var z=z===void 0?zP:z;return new x$(F,k,z)};
JOC=function(F,k,z,x,D){k=dTD(k,x);k!=null&&(z=aPn(F,z),D(k,F),S7R(F,z))};
jy=function(F,k,z,x){var D=x[F];if(D)return D;D={};D.kJ=x;D.LQ=$Tp(x[0]);var e=x[1],C=1;e&&e.constructor===Object&&(D.extensions=e,e=x[++C],typeof e==="function"&&(D.Dz=!0,Dg!=null||(Dg=e),$$!=null||($$=x[C+1]),e=x[C+=2]));for(var p={};e&&Array.isArray(e)&&e.length&&typeof e[0]==="number"&&e[0]>0;){for(var E=0;E<e.length;E++)p[e[E]]=e;e=x[++C]}for(E=1;e!==void 0;){typeof e==="number"&&(E+=e,e=x[++C]);var X=void 0;if(e instanceof x$)var q=e;else q=yO6,C--;e=void 0;if((e=q)==null?0:e.Y){e=x[++C];X=
x;var N=C;typeof e==="function"&&(e=e(),X[N]=e);X=e}e=x[++C];N=E+1;typeof e==="number"&&e<0&&(N-=e,e=x[++C]);for(;E<N;E++){var u=p[E];X?z(D,E,q,X,u):k(D,E,q,u)}}return x[F]=D};
gr5=function(F){return Array.isArray(F)?F[0]instanceof x$?F:[R5R,F]:[F,void 0]};
dTD=function(F,k){if(F instanceof g$)return HY(F),F.aS;if(Array.isArray(F))return Si(F,k,!1)};
ey=function(F,k,z,x){var D=z.pz;F[k]=x?function(e,C,p){return D(e,C,p,x)}:D};
AE=function(F,k,z,x,D){var e=z.pz,C,p;F[k]=function(E,X,q){return e(E,X,q,p||(p=jy(CU,ey,AE,x).LQ),C||(C=pU(x)),D)}};
pU=function(F){var k=F[Ev];if(k!=null)return k;var z=jy(CU,ey,AE,F);k=z.Dz?function(x,D){return Dg(x,D,z)}:function(x,D){for(var e=x[cY]|0;UTC(D)&&D.L!=4;){var C=D.j,p=z[C];
if(p==null){var E=z.extensions;E&&(E=E[C])&&(E=Y79(E),E!=null&&(p=z[C]=E))}if(p==null||!p(D,x,C)){E=D;p=E.U;bt(E);if(E.vG)var X=void 0;else{var q=E.Y.Y-p;E.Y.Y=p;X=rOx(E.Y,q)}q=E=p=void 0;var N=x;X&&((p=(E=(q=N[tl])!=null?q:N[tl]=new v9)[C])!=null?p:E[C]=[]).push(X)}}if(D=ZT(x))D.Y=z.kJ[nr5];e&8192&&PY(x,34);return!0};
F[Ev]=k;F[nr5]=MSa.bind(F);return k};
MSa=function(F,k,z){var x=this[CU],D=this[Ev],e=Si(void 0,x.LQ,!1),C=ZT(F);if(C){var p=!1,E=x.extensions;if(E&&(C==null||c9(C,function(N,u,w){if(w.length!==0)if(E[u])for(N=g.l(w),u=N.next();!u.done;u=N.next()){u=G8x(u.value);try{p=!0,D(e,u)}finally{u.free()}}else z==null||z(F,u,w)}),p)){var X=F[cY]|0;
if(X&2&&X&16384)throw Error();var q=R2(X);vGH(e,e[cY]|0,function(N,u){if(YN(F,X,N,q)!=null)switch(k==null?void 0:k.uFG){case 1:return;default:throw Error();}X=M3(F,X,N,u,q);delete C[N]})}}};
Y79=function(F){F=gr5(F);var k=F[0].pz;if(F=F[1]){var z=pU(F),x=jy(CU,ey,AE,F).LQ;return function(D,e,C){return k(D,e,C,x,z)}}return k};
Xf=function(F,k,z){F[k]=z.Cz};
NX=function(F,k,z,x){var D,e,C=z.Cz;F[k]=function(p,E,X){return C(p,E,X,e||(e=jy(qX,Xf,NX,x).LQ),D||(D=Lva(x)))}};
Lva=function(F){var k=F[fPa];if(!k){var z=jy(qX,Xf,NX,F);k=function(x,D){return KvD(x,D,z)};
F[fPa]=k}return k};
KvD=function(F,k,z){vGH(F,F[cY]|0|(z.LQ[1]?512:0),function(x,D){if(D!=null){var e=WvI(z,x);e&&e(k,D,x)}});
(F=ZT(F))&&c9(F,function(x,D,e){WR(k,k.Y.end());for(x=0;x<e.length;x++)WR(k,BY(e[x])||new Uint8Array(0))})};
WvI=function(F,k){var z=F[k];if(z)return z;if(z=F.extensions)if(z=z[k]){z=gr5(z);var x=z[0].Cz;if(z=z[1]){var D=Lva(z),e=jy(qX,Xf,NX,z).LQ;z=F.Dz?$$(e,D):function(C,p,E){return x(C,p,E,e,D)}}else z=x;
return F[k]=z}};
uY=function(F,k,z){if(Array.isArray(k)){var x=k[cY]|0;if(x&4)return k;for(var D=0,e=0;D<k.length;D++){var C=F(k[D]);C!=null&&(k[e++]=C)}e<D&&(k.length=e);z&&(O7(k,(x|21)&-6145),x&2&&Object.freeze(k));return k}};
we=function(F,k,z){return new x$(F,k,z)};
mL=function(F,k,z){return new x$(F,k,z)};
TP=function(F,k,z){M3(F,F[cY]|0,k,z,R2(F[cY]|0))};
lY=function(F,k,z){k=k==null||typeof k==="number"?k:k==="NaN"||k==="Infinity"||k==="-Infinity"?Number(k):void 0;k!=null&&(Ff(F,z,1),F=F.Y,z=Fsx||(Fsx=new DataView(new ArrayBuffer(8))),z.setFloat64(0,+k,!0),K8=z.getUint32(0,!0),WY=z.getUint32(4,!0),KW(F,K8),KW(F,WY))};
Q$=function(F,k,z){k=LA6(k);if(k!=null){switch(typeof k){case "string":VSx(k)}if(k!=null)switch(Ff(F,z,0),typeof k){case "number":F=F.Y;zn(k);LW(F,K8,WY);break;case "bigint":z=BigInt.asUintN(64,k);z=new nW(Number(z&BigInt(4294967295)),Number(z>>BigInt(32)));LW(F.Y,z.L,z.Y);break;default:z=VSx(k),LW(F.Y,z.L,z.Y)}}};
hE=function(F,k,z){k=Xs(k);k!=null&&k!=null&&(Ff(F,z,0),IPY(F.Y,k))};
knI=function(F,k,z){k=k==null||typeof k==="boolean"?k:typeof k==="number"?!!k:void 0;k!=null&&(Ff(F,z,0),F.Y.Y.push(k?1:0))};
oN9=function(F,k,z){k=B9(k);k!=null&&k$(F,z,Hk5(k))};
zuD=function(F,k,z,x,D){k=dTD(k,x);k!=null&&(z=aPn(F,z),D(k,F),S7R(F,z))};
ie9=function(){var F=re;this.Y=x3p;this.isRepeated=0;this.L=q6;this.defaultValue=void 0;this.U=F.messageId!=null?yY:void 0};
D3M=function(F){return function(){var k=new H8I;HY(this);KvD(this.aS,k,jy(qX,Xf,NX,F));WR(k,k.Y.end());for(var z=new Uint8Array(k.L),x=k.U,D=x.length,e=0,C=0;C<D;C++){var p=x[C];z.set(p,e);e+=p.length}k.U=[z];return z}};
B1=function(F){return function(k){return vrn(F,k)}};
$3D=function(F){F=dR(F);HY(this);this.aS=F};
jha=function(F,k){return XYx(F,k,d$n)};
GP=function(F){F=dR(F);HY(this);this.aS=F};
Uv=function(F){F=dR(F);HY(this);this.aS=F};
tE=function(F){F=dR(F);HY(this);this.aS=F};
Zg=function(F){F=dR(F);HY(this);this.aS=F};
euY=function(F){F=dR(F);HY(this);this.aS=F};
g.p9D=function(F){var k=new Zg;k=r$(k,1,F.L);var z=CI6(F);k=XYx(k,z,FvD);z=[];for(var x=[],D=g.l(F.Y.keys()),e=D.next();!e.done;e=D.next())x.push(e.value.split(","));for(D=0;D<x.length;D++){e=x[D];for(var C=F.j,p=F.xU(e)||[],E=[],X=0;X<p.length;X++){var q=p[X],N=q&&q.Y;q=new Uv;switch(C){case 3:N=Number(N);Number.isFinite(N)&&CW(q,1,v1,Qp(N));break;case 2:CW(q,2,v1,ei(Number(N)))}E.push(q)}C=E;for(p=0;p<C.length;p++){E=C[p];X=new tE;E=N6(X,Uv,2,E);X=[];q=Al6(F);for(N=0;N<q.length;N++){var u=q[N],
w=e[N],m=new GP;switch(u){case 3:CW(m,1,c1,rR(String(w)));break;case 2:u=Number(w);Number.isFinite(u)&&CW(m,2,c1,Ep(u));break;case 1:CW(m,3,c1,Ce(w==="true"))}X.push(m)}ut(E,GP,1,X);z.push(E)}}ut(k,tE,4,z);return k};
END=function(F){if(!F)return"";if(/^about:(?:blank|srcdoc)$/.test(F))return window.origin||"";F.indexOf("blob:")===0&&(F=F.substring(5));F=F.split("#")[0].split("?")[0];F=F.toLowerCase();F.indexOf("//")==0&&(F=window.location.protocol+F);/^[\w\-]*:\/\//.test(F)||(F=window.location.href);var k=F.substring(F.indexOf("://")+3),z=k.indexOf("/");z!=-1&&(k=k.substring(0,z));z=F.substring(0,F.indexOf("://"));if(!z)throw Error("URI is missing protocol: "+F);if(z!=="http"&&z!=="https"&&z!=="chrome-extension"&&
z!=="moz-extension"&&z!=="file"&&z!=="android-app"&&z!=="chrome-search"&&z!=="chrome-untrusted"&&z!=="chrome"&&z!=="app"&&z!=="devtools")throw Error("Invalid URI scheme in origin: "+z);F="";var x=k.indexOf(":");if(x!=-1){var D=k.substring(x+1);k=k.substring(0,x);if(z==="http"&&D!=="80"||z==="https"&&D!=="443")F=":"+D}return z+"://"+k+F};
X9H=function(){function F(){D[0]=1732584193;D[1]=4023233417;D[2]=2562383102;D[3]=271733878;D[4]=3285377520;q=X=0}
function k(N){for(var u=C,w=0;w<64;w+=4)u[w/4]=N[w]<<24|N[w+1]<<16|N[w+2]<<8|N[w+3];for(w=16;w<80;w++)N=u[w-3]^u[w-8]^u[w-14]^u[w-16],u[w]=(N<<1|N>>>31)&4294967295;N=D[0];var m=D[1],h=D[2],B=D[3],U=D[4];for(w=0;w<80;w++){if(w<40)if(w<20){var v=B^m&(h^B);var P=1518500249}else v=m^h^B,P=1859775393;else w<60?(v=m&h|B&(m|h),P=2400959708):(v=m^h^B,P=3395469782);v=((N<<5|N>>>27)&4294967295)+v+U+P+u[w]&4294967295;U=B;B=h;h=(m<<30|m>>>2)&4294967295;m=N;N=v}D[0]=D[0]+N&4294967295;D[1]=D[1]+m&4294967295;D[2]=
D[2]+h&4294967295;D[3]=D[3]+B&4294967295;D[4]=D[4]+U&4294967295}
function z(N,u){if(typeof N==="string"){N=unescape(encodeURIComponent(N));for(var w=[],m=0,h=N.length;m<h;++m)w.push(N.charCodeAt(m));N=w}u||(u=N.length);w=0;if(X==0)for(;w+64<u;)k(N.slice(w,w+64)),w+=64,q+=64;for(;w<u;)if(e[X++]=N[w++],q++,X==64)for(X=0,k(e);w+64<u;)k(N.slice(w,w+64)),w+=64,q+=64}
function x(){var N=[],u=q*8;X<56?z(p,56-X):z(p,64-(X-56));for(var w=63;w>=56;w--)e[w]=u&255,u>>>=8;k(e);for(w=u=0;w<5;w++)for(var m=24;m>=0;m-=8)N[u++]=D[w]>>m&255;return N}
for(var D=[],e=[],C=[],p=[128],E=1;E<64;++E)p[E]=0;var X,q;F();return{reset:F,update:z,digest:x,Hg:function(){for(var N=x(),u="",w=0;w<N.length;w++)u+="0123456789ABCDEF".charAt(Math.floor(N[w]/16))+"0123456789ABCDEF".charAt(N[w]%16);return u}}};
NRM=function(F,k,z){var x=String(g.bD.location.href);return x&&F&&k?[k,qp5(END(x),F,z||null)].join(" "):null};
qp5=function(F,k,z){var x=[],D=[];if((Array.isArray(z)?2:1)==1)return D=[k,F],g.XN(x,function(p){D.push(p)}),usn(D.join(" "));
var e=[],C=[];g.XN(z,function(p){C.push(p.key);e.push(p.value)});
z=Math.floor((new Date).getTime()/1E3);D=e.length==0?[z,k,F]:[e.join(":"),z,k,F];g.XN(x,function(p){D.push(p)});
F=usn(D.join(" "));F=[z,F];C.length==0||F.push(C.join(""));return F.join("_")};
usn=function(F){var k=X9H();k.update(F);return k.Hg().toLowerCase()};
m3C=function(){var F=null;if(!w9R)return F;try{var k=function(z){return z};
F=w9R.createPolicy("goog#html",{createHTML:k,createScript:k,createScriptURL:k})}catch(z){}return F};
Ov=function(){P1===void 0&&(P1=m3C());return P1};
V$=function(F){this.Y=F};
Iu=function(F){var k=Ov();return new V$(k?k.createScriptURL(F):F)};
H1=function(F){if(F instanceof V$)return F.Y;throw Error("");};
au=function(F){this.Y=F};
g.Sy=function(F){if(F instanceof au)return F.Y;throw Error("");};
bY=function(F){this.ut=F};
de=function(F){return new bY(function(k){return k.substr(0,F.length+1).toLowerCase()===F+":"})};
g.JE=function(F,k){k=k===void 0?TRk:k;a:if(k=k===void 0?TRk:k,!(F instanceof au)){for(var z=0;z<k.length;++z){var x=k[z];if(x instanceof bY&&x.ut(F)){F=new au(F);break a}}F=void 0}return F||lTR};
huC=function(F){if(QhC.test(F))return F};
y$=function(F){return F instanceof au?g.Sy(F):huC(F)};
g.Ru=function(F,k){k=y$(k);k!==void 0&&(F.href=k)};
ge=function(F){this.Y=F};
Y$=function(F){var k=Ov();return new ge(k?k.createHTML(F):F)};
nU=function(F){if(F instanceof ge)return F.Y;throw Error("");};
g.MX=function(F,k,z,x){k=y$(k);return k!==void 0?F.open(k,z,x):null};
LU=function(F){F=F===void 0?document:F;var k,z;F=(z=(k=F).querySelector)==null?void 0:z.call(k,"script[nonce]");return F==null?"":F.nonce||F.getAttribute("nonce")||""};
fU=function(F){this.Y=F};
sh6=function(F){var k=Ov();return new fU(k?k.createScript(F):F)};
KU=function(F){if(F instanceof fU)return F.Y;throw Error("");};
W1=function(F){var k=LU(F.ownerDocument);k&&F.setAttribute("nonce",k)};
g.F7=function(F,k){F.src=H1(k);W1(F)};
ks=function(){this.Y=rlY[0].toLowerCase()};
BR9=function(F){var k="true".toString(),z=[new ks];if(z.length===0)throw Error("");if(z.map(function(x){if(x instanceof ks)x=x.Y;else throw Error("");return x}).every(function(x){return"data-loaded".indexOf(x)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.');
F.setAttribute("data-loaded",k)};
GnC=function(F){var k=g.yR("window.location.href");F==null&&(F='Unknown Error of type "null/undefined"');if(typeof F==="string")return{message:F,name:"Unknown error",lineNumber:"Not available",fileName:k,stack:"Not available"};var z=!1;try{var x=F.lineNumber||F.line||"Not available"}catch(C){x="Not available",z=!0}try{var D=F.fileName||F.filename||F.sourceURL||g.bD.$googDebugFname||k}catch(C){D="Not available",z=!0}k=oM(F);if(!(!z&&F.lineNumber&&F.fileName&&F.stack&&F.message&&F.name)){z=F.message;
if(z==null){if(F.constructor&&F.constructor instanceof Function){if(F.constructor.name)z=F.constructor.name;else if(z=F.constructor,zT[z])z=zT[z];else{z=String(z);if(!zT[z]){var e=/function\s+([^\(]+)/m.exec(z);zT[z]=e?e[1]:"[Anonymous]"}z=zT[z]}z='Unknown Error of type "'+z+'"'}else z="Unknown Error of unknown type";typeof F.toString==="function"&&Object.prototype.toString!==F.toString&&(z+=": "+F.toString())}return{message:z,name:F.name||"UnknownError",lineNumber:x,fileName:D,stack:k||"Not available"}}return{message:F.message,
name:F.name,lineNumber:F.lineNumber,fileName:F.fileName,stack:k}};
oM=function(F,k){k||(k={});k[xs(F)]=!0;var z=F.stack||"",x=F.cause;x&&!k[xs(x)]&&(z+="\nCaused by: ",x.stack&&x.stack.indexOf(x.toString())==0||(z+=typeof x==="string"?x:x.message+"\n"),z+=oM(x,k));F=F.errors;if(Array.isArray(F)){x=1;var D;for(D=0;D<F.length&&!(x>4);D++)k[xs(F[D])]||(z+="\nInner error "+x++ +": ",F[D].stack&&F[D].stack.indexOf(F[D].toString())==0||(z+=typeof F[D]==="string"?F[D]:F[D].message+"\n"),z+=oM(F[D],k));D<F.length&&(z+="\n... "+(F.length-D)+" more inner errors")}return z};
xs=function(F){var k="";typeof F.toString==="function"&&(k=""+F);return k+F.stack};
i3=function(F,k,z){return F.parseFromString(nU(k),z)};
g.D8=function(F){return encodeURIComponent(String(F))};
$s=function(F){return decodeURIComponent(F.replace(/\+/g," "))};
jI=function(F){U3k.test(F)&&(F.indexOf("&")!=-1&&(F=F.replace(tin,"&amp;")),F.indexOf("<")!=-1&&(F=F.replace(ZeC,"&lt;")),F.indexOf(">")!=-1&&(F=F.replace(vNk,"&gt;")),F.indexOf('"')!=-1&&(F=F.replace(clR,"&quot;")),F.indexOf("'")!=-1&&(F=F.replace(PI5,"&#39;")),F.indexOf("\x00")!=-1&&(F=F.replace(Oe9,"&#0;")));return F};
g.eI=function(F){return F==null?"":String(F)};
Cx=function(F){for(var k=0,z=0;z<F.length;++z)k=31*k+F.charCodeAt(z)>>>0;return k};
Ag=function(F){var k=Number(F);return k==0&&g.hD(F)?NaN:k};
Vip=function(F){return String(F).replace(/\-([a-z])/g,function(k,z){return z.toUpperCase()})};
ITk=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
HeH=function(F){return F.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(k,z,x){return z+x.toUpperCase()})};
aTY=function(F){var k=1;F=F.split(":");for(var z=[];k>0&&F.length;)z.push(F.shift()),k--;F.length&&z.push(F.join(":"));return z};
px=function(F){this.Y=F||{cookie:""}};
qv=function(F){F=(F.Y.cookie||"").split(";");for(var k=[],z=[],x,D,e=0;e<F.length;e++)D=Gt(F[e]),x=D.indexOf("="),x==-1?(k.push(""),z.push(D)):(k.push(D.substring(0,x)),z.push(D.substring(x+1)));return{keys:k,values:z}};
SpR=function(){var F=g.bD.__SAPISID||g.bD.__APISID||g.bD.__3PSAPISID||g.bD.__1PSAPISID||g.bD.__OVERRIDE_SID;if(F)return!0;typeof document!=="undefined"&&(F=new px(document),F=F.get("SAPISID")||F.get("APISID")||F.get("__Secure-3PAPISID")||F.get("__Secure-1PAPISID"));return!!F};
beI=function(F,k,z,x){(F=g.bD[F])||typeof document==="undefined"||(F=(new px(document)).get(k));return F?NRM(F,z,x):null};
d3R=function(F){var k=END(String(g.bD.location.href)),z=[];if(SpR()){k=k.indexOf("https:")==0||k.indexOf("chrome-extension:")==0||k.indexOf("chrome-untrusted://new-tab-page")==0||k.indexOf("moz-extension:")==0;var x=k?g.bD.__SAPISID:g.bD.__APISID;x||typeof document==="undefined"||(x=new px(document),x=x.get(k?"SAPISID":"APISID")||x.get("__Secure-3PAPISID"));(x=x?NRM(x,k?"SAPISIDHASH":"APISIDHASH",F):null)&&z.push(x);k&&((k=beI("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",F))&&z.push(k),(F=beI("__3PSAPISID",
"__Secure-3PAPISID","SAPISID3PHASH",F))&&z.push(F))}return z.length==0?null:z.join(" ")};
Nv=function(){};
u3=function(F){F=dR(F);HY(this);this.aS=F};
wf=function(F,k){this.intervalMs=F;this.callback=k;this.enabled=!1;this.Y=function(){return g.op()};
this.L=this.Y()};
mP=function(F){F=dR(F);HY(this);this.aS=F};
TT=function(F){F=dR(F);HY(this);this.aS=F};
g.l3=function(F,k,z){return Math.min(Math.max(F,k),z)};
g.Qd=function(F,k){F%=k;return F*k<0?F+k:F};
hg=function(F,k,z){return F+z*(k-F)};
g.sV=function(F,k){this.x=F!==void 0?F:0;this.y=k!==void 0?k:0};
rf=function(F,k){return F==k?!0:F&&k?F.x==k.x&&F.y==k.y:!1};
g.BB=function(F,k){this.width=F;this.height=k};
g.GT=function(F,k){return F==k?!0:F&&k?F.width==k.width&&F.height==k.height:!1};
UV=function(F){return F.width*F.height};
g.tg=function(F,k,z){for(var x in F)k.call(z,F[x],x,F)};
g.Z8=function(F,k,z){var x={},D;for(D in F)k.call(z,F[D],D,F)&&(x[D]=F[D]);return x};
vB=function(F,k){var z={},x;for(x in F)z[x]=k.call(void 0,F[x],x,F);return z};
g.cB=function(F,k,z){for(var x in F)if(k.call(z,F[x],x,F))return!0;return!1};
Jl5=function(F,k){for(var z in F)if(!k.call(void 0,F[z],z,F))return!1;return!0};
g.PB=function(F){for(var k in F)return k};
yln=function(F){for(var k in F)return F[k]};
g.OV=function(F){var k=[],z=0,x;for(x in F)k[z++]=F[x];return k};
g.Vd=function(F){var k=[],z=0,x;for(x in F)k[z++]=x;return k};
g.IM=function(F,k){return F!==null&&k in F};
g.HB=function(F,k){for(var z in F)if(F[z]==k)return!0;return!1};
aM=function(F,k){for(var z in F)if(k.call(void 0,F[z],z,F))return z};
Ruk=function(F,k){return(k=aM(F,k))&&F[k]};
g.SI=function(F){for(var k in F)return!1;return!0};
g.gNI=function(F){for(var k in F)delete F[k]};
g.b3=function(F,k,z){return F!==null&&k in F?F[k]:z};
g.df=function(F,k){for(var z in F)if(!(z in k)||F[z]!==k[z])return!1;for(var x in k)if(!(x in F))return!1;return!0};
g.Jg=function(F){var k={},z;for(z in F)k[z]=F[z];return k};
g.yd=function(F){if(!F||typeof F!=="object")return F;if(typeof F.clone==="function")return F.clone();if(typeof Map!=="undefined"&&F instanceof Map)return new Map(F);if(typeof Set!=="undefined"&&F instanceof Set)return new Set(F);if(F instanceof Date)return new Date(F.getTime());var k=Array.isArray(F)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(F)||F instanceof DataView?{}:new F.constructor(F.length),z;for(z in F)k[z]=g.yd(F[z]);return k};
g.RM=function(F,k){for(var z,x,D=1;D<arguments.length;D++){x=arguments[D];for(z in x)F[z]=x[z];for(var e=0;e<YpC.length;e++)z=YpC[e],Object.prototype.hasOwnProperty.call(x,z)&&(F[z]=x[z])}};
Mv=function(F,k){this.Y=F===nx&&k||""};
Lx=function(F){if(F instanceof ge)return F;F=String(F).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");return Y$(F)};
nNY=function(F){var k=Lx("");return Y$(F.map(function(z){return nU(Lx(z))}).join(nU(k).toString()))};
Wsn=function(F){var k;if(!Mi9.test("div"))throw Error("");if(Lsx.indexOf("DIV")!==-1)throw Error("");var z="<div";F&&(z+=fTk(F));Array.isArray(k)||(k=k===void 0?[]:[k]);Ksp.indexOf("DIV")!==-1?z+=">":(F=nNY(k.map(function(x){return x instanceof ge?x:Lx(String(x))})),z+=">"+F.toString()+"</div>");
return Y$(z)};
fTk=function(F){for(var k="",z=Object.keys(F),x=0;x<z.length;x++){var D=z[x],e=F[D];if(!Mi9.test(D))throw Error("");if(e!==void 0&&e!==null){if(/^on./i.test(D))throw Error("");Fqa.indexOf(D.toLowerCase())!==-1&&(e=e instanceof au?e.toString():huC(String(e))||"about:invalid#zClosurez");e=D+'="'+Lx(String(e))+'"';k+=" "+e}}return k};
kSR=function(F){var k=g.v6.apply(1,arguments);if(k.length===0)return Iu(F[0]);for(var z=F[0],x=0;x<k.length;x++)z+=encodeURIComponent(k[x])+F[x+1];return Iu(z)};
WB=function(F){return F?new fx(Kx(F)):o6C||(o6C=new fx)};
FE=function(F,k){return typeof k==="string"?F.getElementById(k):k};
g.kM=function(F,k){return(k||document).getElementsByTagName(String(F))};
g.o_=function(F,k){return(k||document).querySelectorAll("."+F)};
g.xM=function(F,k){var z=k||document;z.getElementsByClassName?F=z.getElementsByClassName(F)[0]:(z=document,F=F?(k||z).querySelector(F?"."+F:""):g.zV(z,"*",F,k)[0]||null);return F||null};
g.zV=function(F,k,z,x){F=x||F;return(k=k&&k!="*"?String(k).toUpperCase():"")||z?F.querySelectorAll(k+(z?"."+z:"")):F.getElementsByTagName("*")};
iE=function(F,k){g.tg(k,function(z,x){x=="style"?F.style.cssText=z:x=="class"?F.className=z:x=="for"?F.htmlFor=z:znk.hasOwnProperty(x)?F.setAttribute(znk[x],z):Qn(x,"aria-")||Qn(x,"data-")?F.setAttribute(x,z):F[x]=z})};
x6C=function(F){F=F.document;F=F.compatMode=="CSS1Compat"?F.documentElement:F.body;return new g.BB(F.clientWidth,F.clientHeight)};
D6D=function(F){var k=iWn(F);F=F.defaultView;return new g.sV(F.pageXOffset||k.scrollLeft,F.pageYOffset||k.scrollTop)};
iWn=function(F){return F.scrollingElement?F.scrollingElement:g.DA||F.compatMode!="CSS1Compat"?F.body||F.documentElement:F.documentElement};
$M=function(F){return F?F.defaultView:window};
e0=function(F,k,z){var x=arguments,D=document,e=x[1],C=j0(D,String(x[0]));e&&(typeof e==="string"?C.className=e:Array.isArray(e)?C.className=e.join(" "):iE(C,e));x.length>2&&$6x(D,C,x,2);return C};
$6x=function(F,k,z,x){function D(p){p&&k.appendChild(typeof p==="string"?F.createTextNode(p):p)}
for(;x<z.length;x++){var e=z[x];if(!g.nk(e)||g.M9(e)&&e.nodeType>0)D(e);else{a:{if(e&&typeof e.length=="number"){if(g.M9(e)){var C=typeof e.item=="function"||typeof e.item=="string";break a}if(typeof e==="function"){C=typeof e.item=="function";break a}}C=!1}g.XN(C?g.z8(e):e,D)}}};
g.Ci=function(F){return j0(document,F)};
j0=function(F,k){k=String(k);F.contentType==="application/xhtml+xml"&&(k=k.toLowerCase());return F.createElement(k)};
g.As=function(F){return document.createTextNode(String(F))};
g.pi=function(F,k){F.appendChild(k)};
g.Ey=function(F){for(var k;k=F.firstChild;)F.removeChild(k)};
XE=function(F,k,z){F.insertBefore(k,F.childNodes[z]||null)};
g.q_=function(F){return F&&F.parentNode?F.parentNode.removeChild(F):null};
g.N_=function(F,k){if(!F||!k)return!1;if(F.contains&&k.nodeType==1)return F==k||F.contains(k);if(typeof F.compareDocumentPosition!="undefined")return F==k||!!(F.compareDocumentPosition(k)&16);for(;k&&F!=k;)k=k.parentNode;return k==F};
Kx=function(F){return F.nodeType==9?F:F.ownerDocument||F.document};
g.uE=function(F,k){if("textContent"in F)F.textContent=k;else if(F.nodeType==3)F.data=String(k);else if(F.firstChild&&F.firstChild.nodeType==3){for(;F.lastChild!=F.firstChild;)F.removeChild(F.lastChild);F.firstChild.data=String(k)}else g.Ey(F),F.appendChild(Kx(F).createTextNode(String(k)))};
enn=function(F){return F.tagName=="A"&&F.hasAttribute("href")||F.tagName=="INPUT"||F.tagName=="TEXTAREA"||F.tagName=="SELECT"||F.tagName=="BUTTON"?!F.disabled&&(!F.hasAttribute("tabindex")||jKM(F)):F.hasAttribute("tabindex")&&jKM(F)};
jKM=function(F){F=F.tabIndex;return typeof F==="number"&&F>=0&&F<32768};
mX=function(F,k,z){if(!k&&!z)return null;var x=k?String(k).toUpperCase():null;return wd(F,function(D){return(!x||D.nodeName==x)&&(!z||typeof D.className==="string"&&g.fC(D.className.split(/\s+/),z))},!0)};
wd=function(F,k,z){F&&!z&&(F=F.parentNode);for(z=0;F;){if(k(F))return F;F=F.parentNode;z++}return null};
fx=function(F){this.Y=F||g.bD.document||document};
TV=function(F){F=dR(F);HY(this);this.aS=F};
lE=function(F){F=dR(F);HY(this);this.aS=F};
Qz=function(F){F=dR(F);HY(this);this.aS=F};
CtR=function(F,k){ut(F,lE,1,k)};
sy=function(F){F=dR(F);HY(this);this.aS=F};
pRk=function(F,k){k=k===void 0?A0R:k;if(!rd){var z;F=(z=F.navigator)==null?void 0:z.userAgentData;if(!F||typeof F.getHighEntropyValues!=="function"||F.brands&&typeof F.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));z=(F.brands||[]).map(function(D){var e=new lE;e=r$(e,1,D.brand);return r$(e,2,D.version)});
CtR(Le(Bk,2,Ce(F.mobile)),z);rd=F.getHighEntropyValues(k)}var x=new Set(k);return rd.then(function(D){var e=Bk.clone();x.has("platform")&&r$(e,3,D.platform);x.has("platformVersion")&&r$(e,4,D.platformVersion);x.has("architecture")&&r$(e,5,D.architecture);x.has("model")&&r$(e,6,D.model);x.has("uaFullVersion")&&r$(e,7,D.uaFullVersion);return e}).catch(function(){return Bk.clone()})};
GV=function(F){F=dR(F);HY(this);this.aS=F};
E6n=function(F){F=dR(F);HY(this);this.aS=F};
Uy=function(F){F=dR(F,4);HY(this);this.aS=F};
ts=function(F){F=dR(F,36);HY(this);this.aS=F};
ZA=function(F){F=dR(F,19);HY(this);this.aS=F};
vk=function(F,k){this.Rt=k=k===void 0?!1:k;this.uach=this.locale=null;this.L=0;this.isFinal=!1;this.Y=new ZA;Number.isInteger(F)&&this.Y.M8(F);k||(this.locale=document.documentElement.getAttribute("lang"));XRn(this,new GV)};
XRn=function(F,k){N6(F.Y,GV,1,k);QC(k,1)||GS(k,1,1);F.Rt||(k=ck(F),lt(k,5)||r$(k,5,F.locale));F.uach&&(k=ck(F),q6(k,Qz,9)||N6(k,Qz,9,F.uach))};
qDn=function(F,k){F.L=k};
N$C=function(F){var k=k===void 0?A0R:k;var z=F.Rt?void 0:$M();z?pRk(z,k).then(function(x){F.uach=x;x=ck(F);N6(x,Qz,9,F.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)};
ck=function(F){F=q6(F.Y,GV,1);var k=q6(F,sy,11);k||(k=new sy,N6(F,sy,11,k));return k};
uva=function(F){return g.DA?"webkit"+F:F.toLowerCase()};
g.Pk=function(F,k,z,x){this.j=F;this.W=k;this.Y=this.U=F;this.S=z||0;this.G=x||2};
g.Oy=function(F){F.Y=Math.min(F.W,F.Y*F.G);F.U=Math.min(F.W,F.Y+(F.S?Math.round(F.S*(Math.random()-.5)*2*F.Y):0));F.L++};
re=function(F){F=dR(F,8);HY(this);this.aS=F};
x3p=function(F){F=dR(F);HY(this);this.aS=F};
Hk=function(F){g.S.call(this);var k=this;this.componentId="";this.Y=[];this.l$="";this.pageId=null;this.J4=this.mp=-1;this.G=this.experimentIds=null;this.S=this.j=0;this.K=null;this.PR=this.t4=0;this.RU=1;this.timeoutMillis=0;this.Xf=!1;this.logSource=F.logSource;this.XT=F.XT||function(){};
this.U=new vk(F.logSource,F.Rt);this.network=F.network||null;this.uT=F.uT||null;this.B=F.b$U||null;this.sessionIndex=F.sessionIndex||null;this.A6=F.A6||!1;this.logger=null;this.withCredentials=!F.KZ;this.Rt=F.Rt||!1;this.Qh=!this.Rt&&!!$M()&&!!$M().navigator&&$M().navigator.sendBeacon!==void 0;this.cR=typeof URLSearchParams!=="undefined"&&!!(new URL(Vz())).searchParams&&!!(new URL(Vz())).searchParams.set;var z=GS(new GV,1,1);XRn(this.U,z);this.W=new g.Pk(1E4,3E5,.1);F=wRa(this,F.h7);this.L=new wf(this.W.getValue(),
F);this.yh=new wf(6E5,F);this.A6||this.yh.start();this.Rt||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){I_(k);var x;(x=k.K)==null||x.flush()}}),document.addEventListener("pagehide",function(){I_(k);
var x;(x=k.K)==null||x.flush()}))};
wRa=function(F,k){return F.cR?k?function(){k().then(function(){F.flush()})}:function(){F.flush()}:function(){}};
m6C=function(F){F.B||(F.B=Vz());try{return(new URL(F.B)).toString()}catch(k){return(new URL(F.B,$M().location.origin)).toString()}};
a_=function(F,k,z){F.K&&F.K.uc(k,z)};
T$p=function(F,k,z){z=z===void 0?F.XT():z;var x=x===void 0?F.withCredentials:x;var D={},e=new URL(m6C(F));z&&(D.Authorization=z);F.sessionIndex&&(D["X-Goog-AuthUser"]=F.sessionIndex,e.searchParams.set("authuser",F.sessionIndex));F.pageId&&(Object.defineProperty(D,"X-Goog-PageId",{value:F.pageId}),e.searchParams.set("pageId",F.pageId));return{url:e.toString(),body:k,Zt:1,requestHeaders:D,requestType:"POST",withCredentials:x,timeoutMillis:F.timeoutMillis}};
I_=function(F){F.U.isFinal=!0;F.flush();F.U.isFinal=!1};
QKD=function(F){lan(F,function(k,z){k=new URL(k);k.searchParams.set("format","json");var x=!1;try{x=$M().navigator.sendBeacon(k.toString(),z.Y9())}catch(D){}x||(F.Qh=!1);return x})};
lan=function(F,k){if(F.Y.length!==0){var z=new URL(m6C(F));z.searchParams.delete("format");var x=F.XT();x&&z.searchParams.set("auth",x);z.searchParams.set("authuser",F.sessionIndex||"0");for(x=0;x<10&&F.Y.length;++x){var D=F.Y.slice(0,32),e=F.U.build(D,F.j,F.S,F.uT,F.t4,F.PR);if(!k(z.toString(),e)){++F.S;break}F.j=0;F.S=0;F.t4=0;F.PR=0;F.Y=F.Y.slice(D.length)}F.L.enabled&&F.L.stop()}};
Vz=function(){return"https://play.google.com/log?format=json&hasfast=true"};
S0=function(){this.zS=typeof AbortController!=="undefined"};
bE=function(F,k){g.S.call(this);this.logSource=F;this.sessionIndex=k;this.Oo="https://web.archive.org/web/20250411103644/https://play.google.com/log?format=json&hasfast=true";this.L=null;this.j=!1;this.network=null;this.componentId="";this.Y=this.uT=null;this.U=!1;this.pageId=null};
hnH=function(F,k){F.L=k;return F};
sKn=function(F,k){F.network=k;return F};
r0Y=function(F,k){F.Y=k};
B$D=function(F){F.U=!0;return F};
dd=function(F,k,z,x,D,e,C){F=F===void 0?-1:F;k=k===void 0?"":k;z=z===void 0?"":z;x=x===void 0?!1:x;D=D===void 0?"":D;g.S.call(this);this.logSource=F;this.componentId=k;e?k=e:(F=new bE(F,"0"),F.componentId=k,g.b(this,F),z!==""&&(F.Oo=z),x&&(F.j=!0),D&&hnH(F,D),C&&sKn(F,C),k=F.build());this.Y=k};
GSC=function(F){this.Y=F};
Js=function(F,k,z){this.L=F;this.j=k;this.fields=z||[];this.Y=new Map};
Al6=function(F){return F.fields.map(function(k){return k.fieldType})};
CI6=function(F){return F.fields.map(function(k){return k.fieldName})};
yz=function(F,k){Js.call(this,F,3,k)};
R_=function(F,k){Js.call(this,F,2,k)};
g.gd=function(F,k){this.type=F;this.currentTarget=this.target=k;this.defaultPrevented=this.L=!1};
YM=function(F,k){g.gd.call(this,F?F.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.Y=null;F&&this.init(F,k)};
fi=function(F){return!(!F||!F[U65])};
ZWn=function(F,k,z,x,D){this.listener=F;this.proxy=null;this.src=k;this.type=z;this.capture=!!x;this.j9=D;this.key=++tYn;this.removed=this.Gx=!1};
Ki=function(F){F.removed=!0;F.listener=null;F.proxy=null;F.src=null;F.j9=null};
Wk=function(F){this.src=F;this.listeners={};this.Y=0};
g.Fz=function(F,k){var z=k.type;z in F.listeners&&g.FN(F.listeners[z],k)&&(Ki(k),F.listeners[z].length==0&&(delete F.listeners[z],F.Y--))};
kV=function(F,k,z,x){for(var D=0;D<F.length;++D){var e=F[D];if(!e.removed&&e.listener==k&&e.capture==!!z&&e.j9==x)return D}return-1};
g.zh=function(F,k,z,x,D){if(x&&x.once)return oU(F,k,z,x,D);if(Array.isArray(k)){for(var e=0;e<k.length;e++)g.zh(F,k[e],z,x,D);return null}z=xV(z);return fi(F)?F.listen(k,z,g.M9(x)?!!x.capture:!!x,D):v6n(F,k,z,!1,x,D)};
v6n=function(F,k,z,x,D,e){if(!k)throw Error("Invalid event type");var C=g.M9(D)?!!D.capture:!!D,p=DJ(F);p||(F[$V]=p=new Wk(F));z=p.add(k,z,x,C,e);if(z.proxy)return z;x=c0p();z.proxy=x;x.src=F;x.listener=z;if(F.addEventListener)Ptn||(D=C),D===void 0&&(D=!1),F.addEventListener(k.toString(),x,D);else if(F.attachEvent)F.attachEvent(OWk(k.toString()),x);else if(F.addListener&&F.removeListener)F.addListener(x);else throw Error("addEventListener and attachEvent are unavailable.");VYD++;return z};
c0p=function(){function F(z){return k.call(F.src,F.listener,z)}
var k=IaY;return F};
oU=function(F,k,z,x,D){if(Array.isArray(k)){for(var e=0;e<k.length;e++)oU(F,k[e],z,x,D);return null}z=xV(z);return fi(F)?F.iA(k,z,g.M9(x)?!!x.capture:!!x,D):v6n(F,k,z,!0,x,D)};
HWk=function(F,k,z,x,D){if(Array.isArray(k))for(var e=0;e<k.length;e++)HWk(F,k[e],z,x,D);else x=g.M9(x)?!!x.capture:!!x,z=xV(z),fi(F)?F.er(k,z,x,D):F&&(F=DJ(F))&&(k=F.Xh(k,z,x,D))&&j8(k)};
j8=function(F){if(typeof F!=="number"&&F&&!F.removed){var k=F.src;if(fi(k))g.Fz(k.ME,F);else{var z=F.type,x=F.proxy;k.removeEventListener?k.removeEventListener(z,x,F.capture):k.detachEvent?k.detachEvent(OWk(z),x):k.addListener&&k.removeListener&&k.removeListener(x);VYD--;(z=DJ(k))?(g.Fz(z,F),z.Y==0&&(z.src=null,k[$V]=null)):Ki(F)}}};
OWk=function(F){return F in e8?e8[F]:e8[F]="on"+F};
IaY=function(F,k){if(F.removed)F=!0;else{k=new YM(k,this);var z=F.listener,x=F.j9||F.src;F.Gx&&j8(F);F=z.call(x,k)}return F};
DJ=function(F){F=F[$V];return F instanceof Wk?F:null};
xV=function(F){if(typeof F==="function")return F;F[Cw]||(F[Cw]=function(k){return F.handleEvent(k)});
return F[Cw]};
g.A1=function(){g.S.call(this);this.ME=new Wk(this);this.bk=this;this.JZ=null};
pw=function(F,k,z,x){k=F.ME.listeners[String(k)];if(!k)return!0;k=k.concat();for(var D=!0,e=0;e<k.length;++e){var C=k[e];if(C&&!C.removed&&C.capture==z){var p=C.listener,E=C.j9||C.src;C.Gx&&g.Fz(F.ME,C);D=p.call(E,x)!==!1&&D}}return D&&!x.defaultPrevented};
Ez=function(F,k){this.U=F;this.j=k;this.L=0;this.Y=null};
aaD=function(F,k){F.j(k);F.L<100&&(F.L++,k.next=F.Y,F.Y=k)};
Nt=function(F){F=Xz(F);qt||(qt=SDn());qt(F)};
SDn=function(){if(typeof MessageChannel!=="undefined"){var F=new MessageChannel,k={},z=k;F.port1.onmessage=function(){if(k.next!==void 0){k=k.next;var x=k.SY;k.SY=null;x()}};
return function(x){z.next={SY:x};z=z.next;F.port2.postMessage(0)}}return function(x){g.bD.setTimeout(x,0)}};
uh=function(){this.L=this.Y=null};
wP=function(){this.next=this.scope=this.Y=null};
g.lh=function(F,k){mQ||bW6();Th||(mQ(),Th=!0);d6I.add(F,k)};
bW6=function(){var F=Promise.resolve(void 0);mQ=function(){F.then(J05)}};
J05=function(){for(var F;F=d6I.remove();){try{F.Y.call(F.scope)}catch(k){Tt(k)}aaD(y0x,F)}Th=!1};
QD=function(F){return function(){return F}};
g.h1=function(){};
Rnn=function(F){var k=k||0;return function(){return F.apply(this,Array.prototype.slice.call(arguments,0,k))}};
sz=function(F){var k=!1,z;return function(){k||(z=F(),k=!0);return z}};
rP=function(F){var k=F;return function(){if(k){var z=k;k=null;z()}}};
B4=function(F,k,z){var x=0;return function(D){g.bD.clearTimeout(x);var e=arguments;x=g.bD.setTimeout(function(){F.apply(z,e)},k)}};
g.Uz=function(F){this.Y=0;this.G=void 0;this.j=this.L=this.U=null;this.W=this.S=!1;if(F!=g.h1)try{var k=this;F.call(void 0,function(z){Gh(k,2,z)},function(z){Gh(k,3,z)})}catch(z){Gh(this,3,z)}};
g6H=function(){this.next=this.context=this.L=this.U=this.Y=null;this.j=!1};
t1=function(F,k,z){var x=YD6.get();x.U=F;x.L=k;x.context=z;return x};
g.ZJ=function(F){if(F instanceof g.Uz)return F;var k=new g.Uz(g.h1);Gh(k,2,F);return k};
v4=function(F){return new g.Uz(function(k,z){z(F)})};
g.MYa=function(F,k,z){n6x(F,k,z,null)||g.lh(g.FY(k,F))};
Lq5=function(F){return new g.Uz(function(k,z){F.length||k(void 0);for(var x,D=0;D<F.length;D++)x=F[D],g.MYa(x,k,z)})};
fan=function(F,k,z,x){Oz(F,t1(k||g.h1,z||null,x))};
g.VD=function(F,k){k=Xz(k);k=t1(k,k);k.j=!0;Oz(F,k);return F};
KqI=function(F,k){if(F.Y==0)if(F.U){var z=F.U;if(z.L){for(var x=0,D=null,e=null,C=z.L;C&&(C.j||(x++,C.Y==F&&(D=C),!(D&&x>1)));C=C.next)D||(e=C);D&&(z.Y==0&&x==1?KqI(z,k):(e?(x=e,x.next==z.j&&(z.j=x),x.next=x.next.next):WqD(z),FLH(z,D,3,k)))}F.U=null}else Gh(F,3,k)};
Oz=function(F,k){F.L||F.Y!=2&&F.Y!=3||kPI(F);F.j?F.j.next=k:F.L=k;F.j=k};
o$H=function(F,k,z,x){var D=t1(null,null,null);D.Y=new g.Uz(function(e,C){D.U=k?function(p){try{var E=k.call(x,p);e(E)}catch(X){C(X)}}:e;
D.L=z?function(p){try{var E=z.call(x,p);E===void 0&&p instanceof IU?C(p):e(E)}catch(X){C(X)}}:C});
D.Y.U=F;Oz(F,D);return D.Y};
Gh=function(F,k,z){F.Y==0&&(F===z&&(k=3,z=new TypeError("Promise cannot resolve to itself")),F.Y=1,n6x(z,F.XlK,F.TiG,F)||(F.G=z,F.Y=k,F.U=null,kPI(F),k!=3||z instanceof IU||zgY(F,z)))};
n6x=function(F,k,z,x){if(F instanceof g.Uz)return fan(F,k,z,x),!0;if(F)try{var D=!!F.$goog_Thenable}catch(C){D=!1}else D=!1;if(D)return F.then(k,z,x),!0;if(g.M9(F))try{var e=F.then;if(typeof e==="function")return xX5(F,e,k,z,x),!0}catch(C){return z.call(x,C),!0}return!1};
xX5=function(F,k,z,x,D){function e(E){p||(p=!0,x.call(D,E))}
function C(E){p||(p=!0,z.call(D,E))}
var p=!1;try{k.call(F,C,e)}catch(E){e(E)}};
kPI=function(F){F.S||(F.S=!0,g.lh(F.i8,F))};
WqD=function(F){var k=null;F.L&&(k=F.L,F.L=k.next,k.next=null);F.L||(F.j=null);return k};
FLH=function(F,k,z,x){if(z==3&&k.L&&!k.j)for(;F&&F.W;F=F.U)F.W=!1;if(k.Y)k.Y.U=null,iUk(k,z,x);else try{k.j?k.U.call(k.context):iUk(k,z,x)}catch(D){DXY.call(null,D)}aaD(YD6,k)};
iUk=function(F,k,z){k==2?F.U.call(F.context,z):F.L&&F.L.call(F.context,z)};
zgY=function(F,k){F.W=!0;g.lh(function(){F.W&&DXY.call(null,k)})};
IU=function(F){N$.call(this,F)};
g.H4=function(F,k){g.A1.call(this);this.UF=F||1;this.X3=k||g.bD;this.Ed=(0,g.W6)(this.Yih,this);this.Fg=g.op()};
g.aU=function(F,k,z){if(typeof F==="function")z&&(F=(0,g.W6)(F,z));else if(F&&typeof F.handleEvent=="function")F=(0,g.W6)(F.handleEvent,F);else throw Error("Invalid listener argument");return Number(k)>2147483647?-1:g.bD.setTimeout(F,k||0)};
S8=function(F,k){var z=null;return(new g.Uz(function(x,D){z=g.aU(function(){x(k)},F);
z==-1&&D(Error("Failed to schedule timer."))})).UT(function(x){g.bD.clearTimeout(z);
throw x;})};
g.bh=function(F){g.S.call(this);this.G=F;this.j=0;this.U=100;this.W=!1;this.L=new Map;this.S=new Set;this.flushInterval=3E4;this.Y=new g.H4(this.flushInterval);this.Y.listen("tick",this.Yt,!1,this);g.b(this,this.Y)};
$XM=function(F){F.Y.enabled||F.Y.start();F.j++;F.j>=F.U&&F.Yt()};
jun=function(F,k){return F.S.has(k)?void 0:F.L.get(k)};
egM=function(F){for(var k=0;k<F.length;k++)F[k].clear()};
CYn=function(F){switch(F){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
AE9=function(F){switch(F){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
dP=function(F,k,z){z=z===void 0?{}:z;k=Error.call(this,k);this.message=k.message;"stack"in k&&(this.stack=k.stack);this.code=F;this.metadata=z;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
g.J1=function(F){return(new p19).Y9(F)};
p19=function(){};
yD=function(F,k,z){if(k==null)z.push("null");else{if(typeof k=="object"){if(Array.isArray(k)){var x=k;k=x.length;z.push("[");for(var D="",e=0;e<k;e++)z.push(D),yD(F,x[e],z),D=",";z.push("]");return}if(k instanceof String||k instanceof Number||k instanceof Boolean)k=k.valueOf();else{z.push("{");D="";for(x in k)Object.prototype.hasOwnProperty.call(k,x)&&(e=k[x],typeof e!="function"&&(z.push(D),E$a(x,z),z.push(":"),yD(F,e,z),D=","));z.push("}");return}}switch(typeof k){case "string":E$a(k,z);break;case "number":z.push(isFinite(k)&&
!isNaN(k)?String(k):"null");break;case "boolean":z.push(String(k));break;case "function":z.push("null");break;default:throw Error("Unknown type: "+typeof k);}}};
E$a=function(F,k){k.push('"',F.replace(X19,function(z){var x=qv5[z];x||(x="\\u"+(z.charCodeAt(0)|65536).toString(16).slice(1),qv5[z]=x);return x}),'"')};
NeY=function(F){switch(F){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};
ufa=function(){};
RU=function(){};
gP=function(F,k,z,x,D,e,C){var p="";F&&(p+=F+":");z&&(p+="//",k&&(p+=k+"@"),p+=z,x&&(p+=":"+x));D&&(p+=D);e&&(p+="?"+e);C&&(p+="#"+C);return p};
YV=function(F){return F?decodeURI(F):F};
g.Mt=function(F,k){return k.match(nw)[F]||null};
g.Lw=function(F){return YV(g.Mt(3,F))};
g.w1n=function(F){F=F.match(nw);return gP(F[1],F[2],F[3],F[4])};
fw=function(F){F=F.match(nw);return gP(null,null,null,null,F[5],F[6],F[7])};
mXp=function(F){var k=F.indexOf("#");return k<0?F:F.slice(0,k)};
Kw=function(F,k){if(F){F=F.split("&");for(var z=0;z<F.length;z++){var x=F[z].indexOf("="),D=null;if(x>=0){var e=F[z].substring(0,x);D=F[z].substring(x+1)}else e=F[z];k(e,D?$s(D):"")}}};
W4=function(F,k){if(!k)return F;var z=F.indexOf("#");z<0&&(z=F.length);var x=F.indexOf("?");if(x<0||x>z){x=z;var D=""}else D=F.substring(x+1,z);F=[F.slice(0,x),D,F.slice(z)];z=F[1];F[1]=k?z?z+"&"+k:k:z;return F[0]+(F[1]?"?"+F[1]:"")+F[2]};
Fb=function(F,k,z){if(Array.isArray(k))for(var x=0;x<k.length;x++)Fb(F,String(k[x]),z);else k!=null&&z.push(F+(k===""?"":"="+g.D8(k)))};
Tep=function(F,k){var z=[];for(k=k||0;k<F.length;k+=2)Fb(F[k],F[k+1],z);return z.join("&")};
g.ky=function(F){var k=[],z;for(z in F)Fb(z,F[z],k);return k.join("&")};
lgp=function(F,k){var z=arguments.length==2?Tep(arguments[1],0):Tep(arguments,1);return W4(F,z)};
g.oW=function(F,k){k=g.ky(k);return W4(F,k)};
zQ=function(F,k,z){z=z!=null?"="+g.D8(z):"";return W4(F,k+z)};
QuR=function(F,k,z,x){for(var D=z.length;(k=F.indexOf(z,k))>=0&&k<x;){var e=F.charCodeAt(k-1);if(e==38||e==63)if(e=F.charCodeAt(k+D),!e||e==61||e==38||e==35)return k;k+=D+1}return-1};
iy=function(F,k){var z=F.search(l8k),x=QuR(F,0,k,z);if(x<0)return null;var D=F.indexOf("&",x);if(D<0||D>z)D=z;x+=k.length+1;return $s(F.slice(x,D!==-1?D:0))};
Dd=function(F,k){for(var z=F.search(l8k),x=0,D,e=[];(D=QuR(F,x,k,z))>=0;)e.push(F.substring(x,D)),x=Math.min(F.indexOf("&",D)+1||z,z);e.push(F.slice(x));return e.join("").replace(QMH,"$1")};
hDM=function(F,k,z){return zQ(Dd(F,k),k,z)};
g.$y=function(F){g.A1.call(this);this.headers=new Map;this.Xf=F||null;this.U=!1;this.Y=null;this.B="";this.L=0;this.j="";this.W=this.t4=this.K=this.PR=!1;this.Qh=0;this.S=null;this.mp="";this.G=!1};
rgH=function(F,k,z,x,D,e,C){var p=new g.$y;sMY.push(p);k&&p.listen("complete",k);p.iA("ready",p.LS);e&&(p.Qh=Math.max(0,e));C&&(p.G=C);p.send(F,z,x,D)};
GTn=function(F,k){F.U=!1;F.Y&&(F.W=!0,F.Y.abort(),F.W=!1);F.j=k;F.L=5;BfY(F);jX(F)};
BfY=function(F){F.PR||(F.PR=!0,F.dispatchEvent("complete"),F.dispatchEvent("error"))};
UvY=function(F){if(F.U&&typeof eX!="undefined")if(F.K&&g.C7(F)==4)setTimeout(F.wv.bind(F),0);else if(F.dispatchEvent("readystatechange"),F.isComplete()){F.getStatus();F.U=!1;try{if(AK(F))F.dispatchEvent("complete"),F.dispatchEvent("success");else{F.L=6;try{var k=g.C7(F)>2?F.Y.statusText:""}catch(z){k=""}F.j=k+" ["+F.getStatus()+"]";BfY(F)}}finally{jX(F)}}};
jX=function(F,k){if(F.Y){F.S&&(clearTimeout(F.S),F.S=null);var z=F.Y;F.Y=null;k||F.dispatchEvent("ready");try{z.onreadystatechange=null}catch(x){}}};
AK=function(F){var k=F.getStatus();a:switch(k){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var z=!0;break a;default:z=!1}if(!z){if(k=k===0)F=g.Mt(1,String(F.B)),!F&&g.bD.self&&g.bD.self.location&&(F=g.bD.self.location.protocol.slice(0,-1)),k=!tIk.test(F?F.toLowerCase():"");z=k}return z};
g.C7=function(F){return F.Y?F.Y.readyState:0};
g.p7=function(F){try{return F.Y?F.Y.responseText:""}catch(k){return""}};
g.E2=function(F){try{if(!F.Y)return null;if("response"in F.Y)return F.Y.response;switch(F.mp){case "":case "text":return F.Y.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in F.Y)return F.Y.mozResponseArrayBuffer}return null}catch(k){return null}};
g.ZxR=function(F){var k={};F=(F.Y&&g.C7(F)>=2?F.Y.getAllResponseHeaders()||"":"").split("\r\n");for(var z=0;z<F.length;z++)if(!g.hD(F[z])){var x=aTY(F[z]),D=x[0];x=x[1];if(typeof x==="string"){x=x.trim();var e=k[D]||[];k[D]=e;e.push(x)}}return vB(k,function(C){return C.join(", ")})};
g.Xb=function(F,k){return F.Y?F.Y.getResponseHeader(k):null};
qn=function(){};
uy=function(F,k){this.logger=F;this.event=k;this.startTime=Nn()};
wL=function(){E$.apply(this,arguments);this.Pe={Z2:function(){return[]}}};
mm=function(F,k,z){var x=Nn();k=k();F.iT(z,Nn()-x);return k};
TQ=function(){wL.apply(this,arguments)};
ly=function(F){wL.call(this);var k=this;this.logger=F;this.Pe={r3R:function(){return k.logger},
Z2:function(){return k.logger.Pe.Z2()}};
this.addOnDisposeCallback(function(){return void k.logger.dispose()})};
vsR=function(F){return{JHt:new s5H(F),errorCount:new U9n(F),eventCount:new BIR(F),tj:new Gpp(F),qi$:new rnC(F),f3K:new tHx(F),sA:new Zkp(F),AGf:new vYR(F)}};
cgx=function(F,k,z,x){F=B$D(sKn(hnH(new bE(1828,"0"),F),new qn));k.length&&r0Y(F,jha(new $3D,k));x!==void 0&&(F.Oo=x);var D=new dd(1828,"","",!1,"",F.build());g.b(D,F);var e=new g.bh({flush:function(C){try{D.flush(C)}catch(p){z(p)}}});
e.addOnDisposeCallback(function(){setTimeout(function(){try{e.Yt()}finally{D.dispose()}})});
e.U=1E5;e.flushInterval=3E4;e.Y.setInterval(3E4);return e};
QX=function(F,k){g.S.call(this);var z=this;this.callback=F;this.L=k;this.Y=-k;this.addOnDisposeCallback(function(){return void clearTimeout(z.Dj)})};
P3M=function(F){if(F.Dj===void 0){var k=Math.max(0,F.Y+F.L-Nn());F.Dj=setTimeout(function(){try{F.callback()}finally{F.Y=Nn(),F.Dj=void 0}},k)}};
hK=function(F,k){wL.call(this);this.metrics=F;this.r$=k};
s2=function(F,k){k=k===void 0?[]:k;var z={r$:F.r$||"_",dJ:F.dJ||[],GN:F.GN|0,Oo:F.Oo,cP:F.cP||function(){},
TE:F.TE||function(e,C){return cgx(e,C,z.cP,z.Oo)}},x=z.TE("49",z.dJ.concat(k));
hK.call(this,vsR(x),z.r$);var D=this;this.U=k;this.Pe={Z2:function(){return D.options.dJ.concat(D.U).sort(function(e,C){return e-C})}};
this.options=z;this.service=x;this.L=!F.TE;this.Y=new QX(function(){return void D.service.Yt()},z.GN);
this.addOnDisposeCallback(function(){D.Y.dispose();D.L&&D.service.dispose()})};
Nn=function(){var F,k,z;return(z=(F=globalThis.performance)==null?void 0:(k=F.now)==null?void 0:k.call(F))!=null?z:Date.now()};
rL=function(F){F=dR(F);HY(this);this.aS=F};
BM=function(F){F=dR(F);HY(this);this.aS=F};
U2=function(F){F=dR(F,0,U2.messageId);HY(this);this.aS=F};
$G=function(F){F=dR(F);HY(this);this.aS=F};
tK=function(F){F=dR(F);HY(this);this.aS=F};
g.Zd=function(){var F=this;this.promise=new Promise(function(k,z){F.resolve=k;F.reject=z})};
Oxp=function(F,k,z){if(F.disable)return new TQ;k=k?lMH(k):[];if(z)return z.nz(k),z.share();F={r$:F.r$,dJ:F.EY,GN:F.HNR,Oo:F.Oo,cP:F.cP,TE:F.TE};z=k;z=z===void 0?[]:z;return new s2(F,z)};
vM=function(F){function k(m,h,B,U){Promise.resolve().then(function(){E.done();p.Pn();p.dispose();C.resolve({wL:m,bnG:h,YhJ:B,do4:U})})}
function z(m,h,B,U){if(!x.logger.z4()){var v="k";h?v="h":B&&(v="u");v!=="k"?U!==0&&(x.logger.Yy(v),x.logger.iT(v,m)):x.L<=0?(x.logger.Yy(v),x.logger.iT(v,m),x.L=Math.floor(Math.random()*200)):x.L--}}
g.S.call(this);var x=this;this.L=Math.floor(Math.random()*200);this.Y=new tK;if("challenge"in F&&VIR(F.challenge)){var D=lt(F.challenge,4,void 0,yY);var e=lt(F.challenge,5,void 0,yY);lt(F.challenge,7,void 0,yY)&&(this.Y=I8R(lt(F.challenge,7,void 0,yY)))}else D=F.program,e=F.globalName;this.addOnDisposeCallback(function(){var m,h,B;return g.O(function(U){if(U.Y==1)return g.c(U,x.U,2);m=U.L;h=m.bnG;(B=h)==null||B();g.Tp(U)})});
this.logger=Oxp(F.UR||{},this.Y,F.QQ);g.b(this,this.logger);var C=new g.Zd;this.U=C.promise;this.logger.Yy("t");var p=this.logger.share(),E=new uy(p,"t");if(!g.bD[e])throw this.logger.Q3(25),Error("EGOU");if(!g.bD[e].a)throw this.logger.Q3(26),Error("ELIU");try{var X=g.bD[e].a;e=[];for(var q=[],N=lMH(this.Y),u=0;u<N.length;u++)e.push(N[u]),q.push(1);var w=Q5I(this.Y);for(N=0;N<w.length;N++)e.push(w[N]),q.push(2);this.j=g.l(X(D,k,!0,F.fW,z,[e,q],lt(this.Y,5))).next().value;this.Ua=C.promise.then(function(){})}catch(m){throw this.logger.Q3(28),
m;
}};
HxI=function(F){if(!F)return null;F=mq(F,4);return F===null||F===void 0?null:Iu(F)};
cM=function(){this.L={};this.Y=null};
PM=function(){cM.instance||(cM.instance=new cM);return cM.instance};
O2=function(F,k){return a8Y(F,q6(k,rL,1,yY),q6(k,BM,2,yY),lt(k,3,void 0,yY))};
a8Y=function(F,k,z,x){if(!k&&!z)return Promise.resolve();if(!x)return SVM(k,z);var D;(D=F.L)[x]||(D[x]=new Promise(function(e,C){SVM(k,z).then(function(){F.Y=x;e()},function(p){delete F.L[x];
C(p)})}));
return F.L[x]};
SVM=function(F,k){return k?bxn(k):F?dv9(F):Promise.resolve()};
bxn=function(F){return new Promise(function(k,z){var x=g.Ci("SCRIPT"),D=HxI(F);g.F7(x,D);x.onload=function(){g.q_(x);k()};
x.onerror=function(){g.q_(x);z(Error("EWLS"))};
(g.kM("HEAD")[0]||document.documentElement).appendChild(x)})};
dv9=function(F){return new Promise(function(k){var z=g.Ci("SCRIPT");if(F){var x=mq(F,6);x=x===null||x===void 0?null:sh6(x)}else x=null;z.textContent=KU(x);W1(z);(g.kM("HEAD")[0]||document.documentElement).appendChild(z);g.q_(z);k()})};
VX=function(F){F=dR(F);HY(this);this.aS=F};
JgC=function(F,k){return BR(F,1,k)};
IW=function(F){F=dR(F);HY(this);this.aS=F};
HM=function(F,k,z){this.client=F;this.cC=k;this.Y=z};
RDR=function(F,k,z,x,D){var e,C,p,E,X;return g.O(function(q){if(q.Y==1)return e=JgC(new VX,F.cC),k&&BR(e,2,k),z&&BR(e,3,z),C=F.Y(),g.c(q,x.EQ("c",F.cC,D,F.client.create(e,C)),2);p=q.L;E=G8(x6(p,2));if(E.length)return q.return(mm(x,function(){for(var N=new Uint8Array(E.length),u=0;u<E.length;u++)N[u]=E[u]+97;if(g.bD.TextDecoder)N=(new TextDecoder).decode(N);else if(N.length<=8192)N=String.fromCharCode.apply(null,N);else{u="";for(var w=0;w<N.length;w+=8192)u+=String.fromCharCode.apply(null,Array.prototype.slice.call(N,
w,w+8192));N=u}return ygC(N)},"U"));
X=q6(p,U2,1);if(!X)throw Error("Missing field");return q.return(X)})};
nsp=function(F,k,z,x){var D,e;return g.O(function(C){D=F.Y();var p=new IW;p=BR(p,1,F.cC);e=BR(p,2,k);p=C.return;var E=z.EQ,X=F.cC;var q=F.client;q=gsn(q.Y,q.L+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",e,D||{},YVn);return p.call(C,E.call(z,"g",X,x,q))})};
MID=function(F,k,z,x,D){return F instanceof HM?RDR(F,x,D,k,z):F.rE(x,D)};
aW=function(F){g.S.call(this);var k=this;this.options=F;this.S=new g.Zd;this.Ua=this.S.promise;this.W=new g.Zd;this.B=1;this.U=new g.Zd;this.j=[];this.IR=F.IR||function(){};
this.logger=new ly(Oxp(F.UR||{}));LP6(this,F.Cd,F.N3,F.Mbk,F.anJ,Object.assign({},f85,F.Ti||{}));this.addOnDisposeCallback(function(){return void KPC(k)})};
WP5=function(F){var k;return g.O(function(z){if(F.z4())throw Error("Already disposed");(k=F.Y)!=null&&(k.endTimeMs=0,k.UV(1));return g.c(z,F.U.promise,0)})};
KPC=function(F){F.G=Error("Cancelled by dispose");F.W.resolve();pC(F.S.promise);F.S.reject(Error("Cancelled by dispose"));F.logger.dispose();Promise.all(F.j).then(function(){var z;return g.O(function(x){(z=F.L)==null||z.dispose();F.L=void 0;g.Tp(x)})});
F.j=[];var k;(k=F.Y)!=null&&(k.endTimeMs=0,k.UV(1));pC(F.U.promise);F.U.reject(Error("Cancelled by dispose"))};
FXY=function(F,k){var z=F.IR;F.IR=function(){z();k()}};
kVx=function(F,k){F.z4()||(F.L=k,F.logger.update(k.rg()),F.W.resolve(),F.S.resolve(void 0),F.IR())};
oMx=function(F,k){k&&(Promise.all(F.j).then(function(){return void k.dispose()}),F.j=[])};
SX=function(F,k){F.B=k;var z,x;(x=(z=F.options).xwG)==null||x.call(z,k)};
zRY=function(F){F.z4()||(F.U.resolve(),F.U=new g.Zd)};
LP6=function(F,k,z,x,D,e){x=x===void 0?PM():x;D=D===void 0?Promise.resolve(void 0):D;var C,p,E,X,q,N,u,w,m,h,B,U;g.O(function(v){switch(v.Y){case 1:return g.c(v,0,3);case 3:p=null;if(!C){v.Sk(6);break}SX(F,7);g.lD(v,7);return g.c(v,by(C.snapshot({}),e.XQ,function(){return Promise.resolve("E:CTO")}),9);
case 9:p=v.L;g.sC(v,6);break;case 7:g.rI(v),p="E:UCE";case 6:E=void 0,X=C?e.PB:e.aE,q=new g.Pk(X,e.hj,e.Fw,e.QG),N=1;case 10:if(!(N<=e.maxAttempts)){v.Sk(12);break}if(N===1){v.Sk(13);break}SX(F,0);F.Y=new x_5(q.getValue(),e.Kq,e.Ur);return g.c(v,F.Y.promise,14);case 14:u=v.L,F.Y=void 0,u===1?(N=1,q.reset()):g.Oy(q);case 13:g.lD(v,15);w=void 0;if(z){w=z;v.Sk(17);break}SX(F,5);m=x.Y;return g.c(v,by(MID(k,F.logger,N,m,p),e.ev,function(){return Promise.reject(Error("RGF:Fetch timed out"))}),18);
case 18:w=v.L;case 17:return SX(F,3),g.c(v,by(O2(x,w),e.Eua,function(){return Promise.reject(Error("DTZ:Script timed out"))}),19);
case 19:return SX(F,8),g.c(v,D,20);case 20:return h=new vM({challenge:w,UR:F.options.UR,fW:F.options.fW}),g.c(v,by(h.Ua,e.oAa,function(){return Promise.reject(Error("QEG:Setup timed out"))}),21);
case 21:E=h;v.Sk(12);break;case 15:B=g.rI(v),F.handleError(B),zRY(F);case 11:N++;v.Sk(10);break;case 12:if(F.z4()){v.Sk(5);break}E&&(z=void 0,oMx(F,C),C=E,kVx(F,E),zRY(F));SX(F,2);F.Y=new x_5(e.VOt,e.Kq,e.Ur);return g.c(v,F.Y.promise,22);case 22:F.Y=void 0;if(F.z4()){v.Sk(5);break}v.Sk(3);break;case 5:(U=C)==null||U.dispose(),g.Tp(v)}})};
by=function(F,k,z){var x,D=new Promise(function(e){x=setTimeout(e,k)});
return Promise.race([F.finally(function(){return void clearTimeout(x)}),
D.then(z)])};
x_5=function(F,k,z){function x(){var e=D.endTimeMs-Date.now();e<=z?D.UV(0):setTimeout(x,Math.min(e,k))}
var D=this;this.endTimeMs=Date.now()+F;this.promise=new Promise(function(e){D.UV=e});
x()};
iiD=function(F,k){try{return globalThis.sessionStorage.setItem(F,k),!0}catch(z){return!1}};
dL=function(F,k,z,x){k=k===void 0?0:k;z=z===void 0?F.length:z;var D=0;for(x&&(D=dL(x));k<z;k++)x=typeof F==="string"?F.charCodeAt(k):F[k],D=D_C(31,D)+x|0;return D};
$_a=function(F,k){return[dL(F,0,F.length>>1,k),dL(F,F.length>>1)]};
j_H=function(F){var k=g.l($_a(F,JK));F=k.next().value;k=k.next().value;return F.toString(16)+k.toString(16)};
eR6=function(F,k){var z=$_a(k);F=new Uint32Array(F.buffer);k=F[0];var x=g.l(z);z=x.next().value;x=x.next().value;for(var D=1;D<F.length;D+=2){for(var e=k,C=D,p=z,E=x,X=0;X<22;X++)C=C>>>8|C<<24,C+=e|0,C^=p+38293,e=e<<3|e>>>29,e^=C,E=E>>>8|E<<24,E+=p|0,E^=X+38293,p=p<<3|p>>>29,p^=E;e=[e,C];F[D]^=e[0];D+1<F.length&&(F[D+1]^=e[1])}};
CEa=function(F,k,z,x,D){var e=(4-(JK.length+z.length)%4)%4,C=new Uint8Array(4+e+JK.length+4+z.length),p=new DataView(C.buffer),E=0;p.setUint32(E,Math.random()*4294967295);E=E+4+e;C.set(JK,E);E+=JK.length;p.setUint32(E,D);C.set(z,E+4);eR6(C,x);return F.ZT(k,function(X){return void globalThis.sessionStorage.removeItem(X)})?iiD(k,g.mv(C))?"s":"t":"i"};
AsH=function(F,k){var z=globalThis.sessionStorage.getItem(F);if(!z)return["m"];try{var x=lr(z);eR6(x,k)}catch(D){return globalThis.sessionStorage.removeItem(F),["c"]}for(k=4;k<7&&x[k]===0;)k++;for(z=0;z<JK.length;z++)if(x[k++]!==JK[z])return globalThis.sessionStorage.removeItem(F),["d"];z=(new DataView(x.buffer)).getUint32(k);return Math.floor(Date.now()/1E3)>=z?(globalThis.sessionStorage.removeItem(F),["e"]):["a",new Uint8Array(x.buffer,k+4)]};
RW=function(F,k,z){z=z===void 0?[]:z;this.maxItems=F;this.Y=k===void 0?0:k;this.L=z};
pkx=function(F){var k=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!k)return new RW(F);var z=k.split(",");if(z.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new RW(F);k=z.slice(1);k.length===1&&k[0]===""&&(k=[]);z=Number(z[0]);return isNaN(z)||z<0||z>k.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new RW(F)):new RW(F,z,k)};
EMa=function(F,k){this.logger=k;try{var z=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(x){z=!1}z&&(this.index=pkx(F))};
Xkp=function(F,k,z,x,D){var e=F.index?mm(F.logger,function(){return CEa(F.index,j_H(k),z,x,D)},"W"):"u";
F.logger.R1(e)};
qyR=function(F,k,z){var x=g.l(F.index?mm(F.logger,function(){return AsH(j_H(k),z)},"R"):["u"]),D=x.next().value;
x=x.next().value;F.logger.I1(D);return x};
wkk=function(F){function k(){z-=x;z-=D;z^=D>>>13;x-=D;x-=z;x^=z<<8;D-=z;D-=x;D^=x>>>13;z-=x;z-=D;z^=D>>>12;x-=D;x-=z;x^=z<<16;D-=z;D-=x;D^=x>>>5;z-=x;z-=D;z^=D>>>3;x-=D;x-=z;x^=z<<10;D-=z;D-=x;D^=x>>>15}
F=Ndn(F);for(var z=2654435769,x=2654435769,D=314159265,e=F.length,C=e,p=0;C>=12;C-=12,p+=12)z+=gL(F,p),x+=gL(F,p+4),D+=gL(F,p+8),k();D+=e;switch(C){case 11:D+=F[p+10]<<24;case 10:D+=F[p+9]<<16;case 9:D+=F[p+8]<<8;case 8:x+=F[p+7]<<24;case 7:x+=F[p+6]<<16;case 6:x+=F[p+5]<<8;case 5:x+=F[p+4];case 4:z+=F[p+3]<<24;case 3:z+=F[p+2]<<16;case 2:z+=F[p+1]<<8;case 1:z+=F[p+0]}k();return uEC.toString(D)};
Ndn=function(F){for(var k=[],z=0;z<F.length;z++)k.push(F.charCodeAt(z));return k};
gL=function(F,k){return F[k+0]+(F[k+1]<<8)+(F[k+2]<<16)+(F[k+3]<<24)};
Yy=function(F){g.S.call(this);var k=this;this.logger=F;this.L=new g.Zd;this[m_n]=this.dispose;this.addOnDisposeCallback(function(){pC(k.L.promise);k.L.reject()})};
n7=function(F,k){var z=setTimeout(function(){F.L.resolve()},k);
F.addOnDisposeCallback(function(){return void clearTimeout(z)})};
Mn=function(F,k,z,x){return mm(F.logger,function(){return z?F.uB(k,x):F.BT(k,x)},F.Y)};
L7=function(F,k,z,x){Yy.call(this,F);this.j=k;this.S=z;this.Y="m";this.U="x";this.W=0;n7(this,x)};
f7=function(F,k,z){Yy.call(this,F);this.j=k;this.Y="f";this.U="z";n7(this,z)};
K7=function(F,k,z){Yy.call(this,F);this.j=k;this.Y="w";this.U="z";n7(this,z)};
WM=function(F,k){Yy.call(this,F);this.error=k;this.Y="e";this.U="y"};
TdR=function(F,k){var z=(k(F.error.message)+":"+k(F.error.stack)).substring(0,2048);k=z.length+1;z=FB(z);var x=new Uint8Array(4+z.length);x.set([42,k&127|128,k>>7,F.error.code]);x.set(z,4);return x};
kD=function(F,k,z){Yy.call(this,F);this.j=k;this.clientState=z;this.Y="S";this.U="q"};
FB=function(F){return globalThis.TextEncoder?(new TextEncoder).encode(F):g.l7(F)};
lAk=function(F,k,z){return F instanceof HM?nsp(F,z,k,1):F.mV(z)};
o4=function(F,k,z){g.S.call(this);var x=this;this.logger=F;this.onError=k;this.state=z;this.G=0;this.L=void 0;this.addOnDisposeCallback(function(){x.Y&&(x.Y.dispose(),x.Y=void 0)})};
Q_M=function(F,k){k=k instanceof i7?k:new i7(5,"TVD:error",k);return F.reportError(k)};
zi=function(F,k,z){try{if(F.z4())throw new i7(21,"BNT:disposed");if(!F.Y&&F.L)throw F.L;var x,D;return(D=(x=hRR(F,k,z))!=null?x:s_Y(F,k,z))!=null?D:rsC(F,k,z)}catch(e){if(!k.bR)throw Q_M(F,e);return Bdk(F,z,e)}};
hRR=function(F,k,z){var x;return(x=F.Y)==null?void 0:Mn(x,function(){return xD(F,k)},z,function(D){var e;
if(F.Y instanceof L7&&((e=k.Fb)==null?0:e.Ea))try{var C;(C=F.cache)==null||Xkp(C,xD(F,k),D,k.Fb.Ct,F.B-120)}catch(p){F.reportError(new i7(24,"ELX:write",p))}})};
s_Y=function(F,k,z){var x;if((x=k.Fb)!=null&&x.hL)try{var D,e=(D=F.cache)==null?void 0:qyR(D,xD(F,k),k.Fb.Ct);return e?z?mm(F.logger,function(){return g.mv(e,2)},"a"):e:void 0}catch(C){F.reportError(new i7(23,"RXO:read",C))}};
rsC=function(F,k,z){var x={stack:[],error:void 0,hasError:!1};try{if(!k.lR)throw new i7(29,"SDF:notready");return Mn(m9D(x,new kD(F.logger,F.G,F.state)),function(){return xD(F,k)},z)}catch(D){x.error=D,x.hasError=!0}finally{TIx(x)}};
Bdk=function(F,k,z){var x={stack:[],error:void 0,hasError:!1};try{var D=Q_M(F,z);return Mn(m9D(x,new WM(F.logger,D)),function(){return[]},k)}catch(e){x.error=e,x.hasError=!0}finally{TIx(x)}};
xD=function(F,k){return k.ZU?k.ZU:k.vl?mm(F.logger,function(){return k.ZU=FB(k.vl)},"c"):[]};
DE=function(F){var k;o4.call(this,F.d9.rg(),(k=F.onError)!=null?k:function(){},2);
var z=this;this.W=0;this.j=new g.Zd;this.U=!1;this.d9=F.d9;this.Cd=F.Cd;this.Ti=Object.assign({},GV9,F.Ti||{});this.vH=F.vH||!1;if(U_D(F)){var x=this.d9;this.S=function(){return WP5(x).catch(function(C){C=z.reportError(new i7(z.U?20:32,"TRG:Disposed",C));z.L=C;var p;(p=z.Y)==null||p.dispose();z.Y=void 0;z.j.reject(C)})};
FXY(x,function(){return void i8(z)});
x.B===2&&i8(this)}else this.S=F.nKJ,i8(this);var D=this.logger.share();D.Yy("o");var e=new uy(D,"o");this.j.promise.then(function(){e.done();D.Pn();D.dispose()},function(){return void D.dispose()});
this.addOnDisposeCallback(function(){z.U||(z.L?z.logger.Pn():(z.L=z.reportError(new i7(32,"TNP:Disposed")),z.logger.Pn(),z.j.reject(z.L)))});
g.b(this,this.logger)};
t0n=function(F,k){if(!(k instanceof i7))if(k instanceof dP){var z=Error(k.toString());z.stack=k.stack;k=new i7(11,"EBH:Error",z)}else k=new i7(12,"BSO:Unknown",k);return F.reportError(k)};
i8=function(F){var k,z,x,D,e,C,p,E,X,q,N,u,w,m,h;return g.O(function(B){switch(B.Y){case 1:k=void 0;F.W++;z=new g.Zd;F.d9 instanceof aW&&F.d9.j.push(z.promise);if(!F.vH){B.Sk(2);break}x=new g.Zd;setTimeout(function(){return void x.resolve()});
return g.c(B,x.promise,2);case 2:return D=F.logger.share(),g.lD(B,4,5),F.state=5,e={},C=[],g.c(B,by(F.d9.snapshot({vl:e,qx:C}),F.Ti.RE4,function(){return Promise.reject(new i7(15,"MDA:Timeout"))}),7);
case 7:p=B.L;if(F.z4())throw new i7(F.U?20:32,"MDA:Disposed");E=C[0];F.state=6;return g.c(B,by(lAk(F.Cd,D,p),F.Ti.WB,function(){return Promise.reject(new i7(10,"BWB:Timeout"))}),8);
case 8:X=B.L;if(F.z4())throw new i7(F.U?20:32,"BWB:Disposed");F.state=7;k=mm(D,function(){var v=ZiD(F,X,z,E);v.L.promise.then(function(){return void F.S()}).catch(function(){});
return v},"i");
case 5:g.B6(B);D.dispose();g.UC(B,6);break;case 4:q=g.rI(B);(N=k)==null||N.dispose();if(!F.L){u=t0n(F,q);z.resolve();var U;if(U=F.d9 instanceof aW&&F.W<2)a:if(q instanceof i7)U=q.code!==32&&q.code!==20&&q.code!==10;else{if(q instanceof dP)switch(q.code){case 2:case 13:case 14:case 4:break;default:U=!1;break a}U=!0}if(U)return w=(1+Math.random()*.25)*(F.U?6E4:1E3),m=setTimeout(function(){return void F.S()},w),F.addOnDisposeCallback(function(){return void clearTimeout(m)}),B.return();
F.L=u}D.Q3(F.U?13:14);F.j.reject(F.L);return B.return();case 6:F.state=8,F.W=0,(h=F.Y)==null||h.dispose(),F.Y=k,F.U=!0,F.j.resolve(),g.Tp(B)}})};
ZiD=function(F,k,z,x){var D=TS(k,2)*1E3;if(D<=0)throw new i7(31,"TTM:Invalid");if(lt(k,4))return new K7(F.logger,lt(k,4),D);if(!TS(k,3))return new f7(F.logger,G8(x6(k,1)),D);if(!x)throw new i7(4,"PMD:Undefined");x=x(G8(x6(k,1)));if(!(x instanceof Function))throw new i7(16,"APF:Failed");F.B=Math.floor((Date.now()+D)/1E3);F=new L7(F.logger,x,TS(k,3),D);F.addOnDisposeCallback(function(){return void z.resolve()});
return F};
$D=function(){var F=0,k;return function(z){k||(k=new TQ);var x=new kD(k,F,1),D=Mn(x,function(){return FB(z)},!0);
x.dispose();F++;return D}};
jK=function(F){F=dR(F);HY(this);this.aS=F};
vMn=function(F,k,z){this.Zl=F;this.Zf=k;this.metadata=z};
eK=function(F,k){k=k===void 0?{}:k;this.kU4=F;this.metadata=k;this.status=null};
Cf=function(F,k,z,x,D){this.name=F;this.methodType="unary";this.requestType=k;this.responseType=z;this.Y=x;this.L=D};
Aa=function(F){F=dR(F);HY(this);this.aS=F};
pf=function(F){F=dR(F);HY(this);this.aS=F};
EF=function(F){F=dR(F);HY(this);this.aS=F};
XB=function(F,k){this.G=F.k$4;this.B=k;this.Y=F.xhr;this.U=[];this.W=[];this.S=[];this.j=[];this.L=[];this.G&&csI(this)};
IAx=function(F,k){var z=new PEk;g.zh(F.Y,"complete",function(){if(AK(F.Y)){var x=g.p7(F.Y);if(k&&F.Y.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");x=atob(x)}try{var D=F.B(x)}catch(p){qr(F,Nr(new dP(13,"Error when deserializing response data; error: "+p+(", response: "+x)),z));return}x=CYn(F.Y.getStatus());u8(F,wl(F));x==0?OiD(F,D):qr(F,Nr(new dP(x,"Xhr succeeded but the status code is not 200"),z))}else{x=g.p7(F.Y);D=wl(F);if(x){var e=V0H(F,
x);x=e.code;var C=e.details;e=e.metadata}else x=2,C="Rpc failed due to xhr error. uri: "+String(F.Y.B)+", error code: "+F.Y.L+", error: "+F.Y.getLastError(),e=D;u8(F,D);qr(F,Nr(new dP(x,C,e),z))}})};
csI=function(F){F.G.ZA("data",function(k){if("1"in k){var z=k["1"];try{var x=F.B(z)}catch(D){qr(F,new dP(13,"Error when deserializing response data; error: "+D+(", response: "+z)))}x&&OiD(F,x)}if("2"in k)for(k=V0H(F,k["2"]),z=0;z<F.S.length;z++)F.S[z](k)});
F.G.ZA("end",function(){u8(F,wl(F));for(var k=0;k<F.j.length;k++)F.j[k]()});
F.G.ZA("error",function(){if(F.L.length!=0){var k=F.Y.L;k!==0||AK(F.Y)||(k=6);var z=-1;switch(k){case 0:var x=2;break;case 7:x=10;break;case 8:x=4;break;case 6:z=F.Y.getStatus();x=CYn(z);break;default:x=14}u8(F,wl(F));k=NeY(k)+", error: "+F.Y.getLastError();z!=-1&&(k+=", http status code: "+z);qr(F,new dP(x,k))}})};
wl=function(F){var k={},z=g.ZxR(F.Y);Object.keys(z).forEach(function(x){k[x]=z[x]});
return k};
V0H=function(F,k){var z=2,x={};try{var D=HiC(k);z=eC(D,1);var e=D.getMessage();DH(D,pf,3).length&&(x["grpc-web-status-details-bin"]=k)}catch(C){F.Y&&F.Y.getStatus()===404?(z=5,e="Not Found: "+String(F.Y.B)):(z=14,e="Unable to parse RpcStatus: "+C)}return{code:z,details:e,metadata:x}};
m$=function(F,k){k=F.indexOf(k);k>-1&&F.splice(k,1)};
OiD=function(F,k){for(var z=0;z<F.U.length;z++)F.U[z](k)};
u8=function(F,k){for(var z=0;z<F.W.length;z++)F.W[z](k)};
qr=function(F,k){for(var z=0;z<F.L.length;z++)F.L[z](k)};
PEk=function(){var F=Error.call(this);this.message=F.message;"stack"in F&&(this.stack=F.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
Nr=function(F,k){k.stack&&(F.stack+="\n"+k.stack);return F};
g.Ti=function(F){this.j=F.Nip||null;this.U=F.My||!1;this.L=void 0};
l8=function(F,k){g.A1.call(this);this.PR=F;this.S=k;this.W=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.B=new Headers;this.L=null;this.Qh="GET";this.K="";this.Y=!1;this.G=this.U=this.j=null};
aAC=function(F){F.U.read().then(F.mJ4.bind(F)).catch(F.v4.bind(F))};
ha=function(F){F.readyState=4;F.j=null;F.U=null;F.G=null;Q4(F)};
Q4=function(F){F.onreadystatechange&&F.onreadystatechange.call(F)};
g.sF=function(F){this.Y=this.B=this.W="";this.U=null;this.S=this.L="";this.G=!1;var k;F instanceof g.sF?(this.G=F.G,g.rl(this,F.W),this.B=F.B,g.BD(this,F.Y),g.Gi(this,F.U),this.L=F.L,UF(this,F.j.clone()),this.S=F.S):F&&(k=String(F).match(nw))?(this.G=!1,g.rl(this,k[1]||"",!0),this.B=ta(k[2]||""),g.BD(this,k[3]||"",!0),g.Gi(this,k[4]),this.L=ta(k[5]||"",!0),UF(this,k[6]||"",!0),this.S=ta(k[7]||"")):(this.G=!1,this.j=new ZE(null,this.G))};
g.rl=function(F,k,z){F.W=z?ta(k,!0):k;F.W&&(F.W=F.W.replace(/:$/,""))};
g.BD=function(F,k,z){F.Y=z?ta(k,!0):k};
g.Gi=function(F,k){if(k){k=Number(k);if(isNaN(k)||k<0)throw Error("Bad port number "+k);F.U=k}else F.U=null};
UF=function(F,k,z){k instanceof ZE?(F.j=k,SyI(F.j,F.G)):(z||(k=vD(k,biH)),F.j=new ZE(k,F.G))};
g.cD=function(F,k,z){F.j.set(k,z)};
g.PD=function(F){return F instanceof g.sF?F.clone():new g.sF(F)};
ta=function(F,k){return F?k?decodeURI(F.replace(/%25/g,"%2525")):decodeURIComponent(F):""};
vD=function(F,k,z){return typeof F==="string"?(F=encodeURI(F).replace(k,d_a),z&&(F=F.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),F):null};
d_a=function(F){F=F.charCodeAt(0);return"%"+(F>>4&15).toString(16)+(F&15).toString(16)};
ZE=function(F,k){this.L=this.Y=null;this.U=F||null;this.j=!!k};
OF=function(F){F.Y||(F.Y=new Map,F.L=0,F.U&&Kw(F.U,function(k,z){F.add($s(k),z)}))};
JsR=function(F,k){OF(F);k=V4(F,k);return F.Y.has(k)};
g.ysD=function(F,k,z){F.remove(k);z.length>0&&(F.U=null,F.Y.set(V4(F,k),g.z8(z)),F.L=F.L+z.length)};
V4=function(F,k){k=String(k);F.j&&(k=k.toLowerCase());return k};
SyI=function(F,k){k&&!F.j&&(OF(F),F.U=null,F.Y.forEach(function(z,x){var D=x.toLowerCase();x!=D&&(this.remove(x),g.ysD(this,D,z))},F));
F.j=k};
g.RRI=function(F){var k="";g.tg(F,function(z,x){k+=x;k+=":";k+=z;k+="\r\n"});
return k};
g.I4=function(F,k,z){if(g.SI(z))return F;z=g.RRI(z);if(typeof F==="string")return zQ(F,g.D8(k),z);g.cD(F,k,z);return F};
g.HD=function(F){g.S.call(this);this.L=F;this.Y={}};
gMD=function(F,k,z,x,D,e){if(Array.isArray(z))for(var C=0;C<z.length;C++)gMD(F,k,z[C],x,D,e);else{k=oU(k,z,x||F.handleEvent,D,e||F.L||F);if(!k)return F;F.Y[k.key]=k}return F};
Yy9=function(){this.U=!0;this.L=0;this.Y=""};
nMC=function(F,k,z){F.U=!1;throw Error("The stream is broken @"+F.L+". Error: "+z+". With input:\n"+k);};
a4=function(){this.S=null;this.G=[];this.j=this.L=this.U=this.Y=this.K=0;this.W=null;this.B=0};
SK=function(F,k,z,x){F.Y=3;F.S="The stream is broken @"+F.K+"/"+z+". Error: "+x+". With input:\n"+k;throw Error(F.S);};
b8=function(){this.Y=null;this.L=0;this.U=new Yy9;this.j=new a4};
M0M=function(F,k,z){F.Y="The stream is broken @"+F.L+". Error: "+z+". With input:\n"+k;throw Error(F.Y);};
gl=function(F){return F=="\r"||F=="\n"||F==" "||F=="\t"};
YD=function(F){this.K=null;this.S=[];this.j="";this.PR=[];this.U=this.L=0;this.G=!1;this.B=0;this.t4=/[\\"]/g;this.Y=this.W=0;this.Qh=!(!F||!F.fS)};
nf=function(F,k,z){F.W=3;F.K="The stream is broken @"+F.U+"/"+z+". With input:\n"+k;throw Error(F.K);};
Mr=function(){this.W=this.U=null;this.L=this.Y=0;this.j=[];this.S=!1};
LXI=function(F){var k=g.Xb(F,"Content-Type");if(!k)return null;k=k.toLowerCase();return k.startsWith("application/json")?k.startsWith("application/json+protobuf")?new Mr:new YD:k.startsWith("application/x-protobuf")?(F=g.Xb(F,"Content-Transfer-Encoding"))?F.toLowerCase()=="base64"?new b8:null:new a4:null};
Lf=function(F){this.Y=F;this.L=null;this.W=this.U=0;this.K=!1;this.j=this.G=this.S=null;this.B=new g.HD(this);this.B.listen(this.Y,"readystatechange",this.Qh)};
ff=function(F,k){F.W!=k&&(F.W=k,F.G&&F.G())};
Kf=function(F){F.B.removeAll();if(F.Y){var k=F.Y;F.Y=null;k.abort();k.dispose()}};
fAk=function(F){F=this.U=F;var k=(0,g.W6)(this.zxp,this);F.j=k;F=this.U;k=(0,g.W6)(this.GMa,this);F.G=k;this.L={};this.Y={}};
KX6=function(F,k){for(var z={},x=0;x<F.length;z={MW:void 0},x++)z.MW=F[x],k.forEach(function(D){return function(e){try{e(D.MW)}catch(C){}}}(z))};
WD=function(F,k){var z=F.L[k];z&&z.forEach(function(x){try{x()}catch(D){}});
(z=F.Y[k])&&z.forEach(function(x){x()});
F.Y[k]=[]};
WXx=function(){var F={format:"jspb"};F=F===void 0?{}:F;this.W=F.S7h||g.yR("suppressCorsPreflight",F)||!1;this.L=F.withCredentials||g.yR("withCredentials",F)||!1;this.j=F.TJ4||[];this.S=F.zdk||[];this.Y=F.V3h;this.U=F.lna||!1};
oVY=function(F,k,z,x,D,e){e=e===void 0?{}:e;var C=k.substring(0,k.length-D.name.length),p,E=(p=e)==null?void 0:p.signal;return FQp(function(X){return new Promise(function(q,N){if(E==null?0:E.aborted){var u=new dP(1,"Aborted");u.cause=E.reason;N(u)}else{var w={},m=khn(F,X,C);m.ZA("error",function(h){return N(h)});
m.ZA("metadata",function(h){w=h});
m.ZA("data",function(h){var B=w;B=B===void 0?{}:B;q(new eK(h,B))});
E&&E.addEventListener("abort",function(){m.cancel();var h=new dP(1,"Aborted");h.cause=E.reason;N(h)})}})},F.S).call(F,D.G(z,x)).then(function(X){return X.kU4})};
gsn=function(F,k,z,x,D){var e=e===void 0?{}:e;return oVY(F,k,z,x,D,e)};
khn=function(F,k,z){var x=k.Zf,D=k.getMetadata(),e=zHn(F,!0);F=xta(F,D,e,z+x.getName());z=iwn(e,x.L,!1);IAx(z,D["X-Goog-Encode-Response-If-Executable"]=="base64");k=x.Y(k.Zl);e.send(F,"POST",k);return z};
zHn=function(F,k){k=F.U&&!k;return F.Y||k?new g.$y(new g.Ti({Nip:F.Y,My:k})):new g.$y};
xta=function(F,k,z,x){k["Content-Type"]="application/json+protobuf";k["X-User-Agent"]="grpc-web-javascript/0.1";var D=k.Authorization;if(D&&Dt5.has(D.split(" ")[0])||F.L)z.G=!0;if(F.W)x=g.I4(x,"$httpHeaders",k);else for(var e in k)z.headers.set(e,k[e]);return x};
iwn=function(F,k,z){if(z){F.isActive();z=new Lf(F);var x=new fAk(z)}return new XB({xhr:F,k$4:x},k)};
FQp=function(F,k){return k.reduce(function(z,x){return function(D){return x.intercept(D,z)}},F)};
$ta=function(){this.Y=new WXx;this.L="https://web.archive.org/web/20250411103644/https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
jUH=function(F){var k={vl:F.vl,ZU:F.ZU,lR:!0,bR:!0};F.Fb&&(F=F.Fb,k.Fb={Ct:F.Ct,hL:F.hL,Ea:F.Ea});return k};
Fm=function(F){var k;o4.call(this,F.RVp?new TQ:new s2({r$:F.r$,dJ:F.dJ},[]),(k=F.onError)!=null?k:function(){},1);
this.U=new g.Zd;this.N3=void 0;this.Cd=F.Cd;this.cC=F.cC;this.v_=F.v_;var z;this.onEvent=(z=F.onEvent)!=null?z:function(){}};
ChM=function(F){var k,z,x,D,e,C,p,E,X,q,N,u,w,m,h,B;return g.O(function(U){switch(U.Y){case 1:k=void 0,z=F.isReady()?6E4:1E3,x=new g.Pk(z,6E5,.25,2),D={},e=1;case 2:if(!(e<=2)){U.Sk(4);break}g.lD(U,5);F.state=3;F.G=e-1;return g.c(U,F.N3&&e===1?F.N3:F.rE(e),7);case 7:return C=U.L,F.N3=void 0,F.state=4,p=new uy(F.logger,"b"),g.c(U,O2(PM(),C),8);case 8:return F.state=5,F.onEvent(1),D.aW=3,D.gC=new vM({challenge:C,QQ:F.logger}),E=kk(F,12E4).then(function(P){return function(){F.onEvent(P.aW);return Promise.reject(new i7(15,
"MDA:Timeout"))}}(D)),g.c(U,Promise.race([D.gC.Ua,
E]),9);case 9:return F.onEvent(2),X=[],F.onEvent(4),D.aW=6,g.c(U,Promise.race([D.gC.snapshot({qx:X}),E]),10);case 10:return q=U.L,F.onEvent(5),N=g.l(X),u=N.next().value,D.gG=u,p.done(),F.state=6,g.c(U,eHx(F,F.logger.EQ("g",F.cC,e,F.Cd.mV(q)),new i7(10,"BWB:Timeout")),11);case 11:return D.HK=U.L,F.state=7,w=mm(F.logger,function(P){return function(){var I=P.HK;var d=P.gC;var W=P.gG;if(lt(I,4))d.dispose(),d=new K7(F.logger,lt(I,4),TS(I,2)*1E3);else if(TS(I,3)){if(!W)throw new i7(4,"PMD:Undefined");var M=
W(G8(x6(I,1)));if(!(M instanceof Function))throw new i7(16,"APF:Failed");W=TS(I,2)*1E3;I=new L7(F.logger,M,TS(I,3),W);g.b(I,d);F.B=Math.floor((Date.now()+W)/1E3);d=I}else d.dispose(),d=new f7(F.logger,G8(x6(I,1)),TS(I,2)*1E3);return d}}(D),"i"),h=m=void 0,(h=(m=F).v_)==null||h.call(m,G8(x6(D.HK,1))),F.state=8,U.return(w);
case 5:B=g.rI(U);k=B instanceof i7?B:B instanceof o6?new i7(20,"WTO:Disposed",B):B instanceof dP?new i7(11,"EBH:Error",B):new i7(12,"BSO:Unknown",B);F.reportError(k);a:{if(B instanceof dP)switch(B.code){case 2:case 13:case 14:case 4:var v=!0;break a;default:v=!1;break a}v=B instanceof i7?B.code!==20:!0}if(!v)throw k;return g.c(U,kk(F,x.getValue()),12);case 12:g.Oy(x);case 3:D={aW:void 0,HK:void 0,gC:void 0,gG:void 0};e++;U.Sk(2);break;case 4:throw k;}})};
kk=function(F,k){if(F.z4())return Promise.reject(new o6);var z=new g.Zd;setTimeout(z.resolve,k);F.addOnDisposeCallback(function(){z.reject(new o6)});
return z.promise};
eHx=function(F,k,z){return Promise.race([k,kk(F,12E4).then(function(){return Promise.reject(z)})])};
A1M=function(F){var k,z,x;g.O(function(D){switch(D.Y){case 1:return k=void 0,g.lD(D,5),g.c(D,ChM(F),7);case 7:k=D.L;g.sC(D,6);break;case 5:z=g.rI(D);if(F.Y){F.logger.Q3(13);D.Sk(0);break}F.logger.Q3(14);k=new WM(F.logger,z instanceof i7?z:new i7(14,"SOM:Init",z instanceof Error?z:Error(String(z))));case 6:return x=void 0,(x=F.Y)==null||x.dispose(),F.Y=k,F.U.resolve(),g.lD(D,8),g.c(D,F.Y.L.promise,10);case 10:g.sC(D,1);break;case 8:g.rI(D),D.Sk(0)}})};
p4n=function(F,k){k.Fb&&!F.cache&&F.fP(Math.min(k.Fb.ouG,150))};
o6=function(){N$.call(this,"Timer disposed");this.name="TimerDisposedError"};
EVp=function(F){var k={};g.XN(F,function(z){var x=z.event,D=k[x];k.hasOwnProperty(x)?D!==null&&(z.VZ(D)||(k[x]=null)):k[x]=z});
WnC(F,function(z){return k[z.event]===null})};
zy=function(){this.wl=0;this.Y=!1;this.L=-1;this.Mt=!1;this.Fz=0};
xk=function(){this.L=null;this.Y=!1};
iQ=function(F){xk.call(this);this.j=F};
DO=function(){xk.call(this)};
$k=function(){xk.call(this)};
j3=function(){this.Y={};this.L=!0;this.U={}};
e3=function(F,k,z){F.Y[k]||(F.Y[k]=new iQ(z));return F.Y[k]};
X46=function(F){F.Y.queryid||(F.Y.queryid=new $k)};
Cc=function(F,k,z){(F=F.Y[k])&&F.U(z)};
AW=function(F,k){if(g.IM(F.U,k))return F.U[k];if(F=F.Y[k])return F.getValue()};
pc=function(F){var k={},z=g.Z8(F.Y,function(x){return x.Y});
g.tg(z,function(x,D){x=F.U[D]!==void 0?String(F.U[D]):x.Y&&x.L!==null?String(x.L):"";x.length>0&&(k[D]=x)},F);
return k};
qzx=function(F){F=pc(F);var k=[];g.tg(F,function(z,x){x in Object.prototype||typeof z!="undefined"&&k.push([x,":",z].join(""))});
return k};
uzD=function(F){e3(F,"od",NPY);e3(F,"opac",EQ).Y=!0;e3(F,"sbeos",EQ).Y=!0;e3(F,"prf",EQ).Y=!0;e3(F,"mwt",EQ).Y=!0;e3(F,"iogeo",EQ)};
w4I=function(){this.Y=this.MI=null};
Xm=function(){};
N2=function(){if(!q2())throw Error();};
q2=function(){return!(!uQ||!uQ.performance)};
wH=function(F){return F?F.passive&&mtD()?F:F.capture||!1:!1};
mG=function(F,k,z,x){return F.addEventListener?(F.addEventListener(k,z,wH(x)),!0):!1};
Ty=function(F){if(F.prerendering)return 3;var k;return(k={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[F.visibilityState||F.webkitVisibilityState||F.mozVisibilityState||""])!=null?k:0};
TPH=function(){};
lJY=function(){return(vl||cl)&&Pl?Pl.mobile:!lQ()&&(Vn("iPod")||Vn("iPhone")||Vn("Android")||Vn("IEMobile"))};
lQ=function(){return(vl||cl)&&Pl?!Pl.mobile&&(Vn("iPad")||Vn("Android")||Vn("Silk")):Vn("iPad")||Vn("Android")&&!Vn("Mobile")||Vn("Silk")};
Q0=function(F){try{return!!F&&F.location.href!=null&&D$I(F,"foo")}catch(k){return!1}};
hW=function(F,k){if(F)for(var z in F)Object.prototype.hasOwnProperty.call(F,z)&&k(F[z],z,F)};
hHn=function(){var F=[];hW(QU6,function(k){F.push(k)});
return F};
sUn=function(F){var k,z;return(z=(k=/https?:\/\/[^\/]+/.exec(F))==null?void 0:k[0])!=null?z:""};
Gh9=function(){var F=r1I("IFRAME"),k={};g.XN(BPn(),function(z){F.sandbox&&F.sandbox.supports&&F.sandbox.supports(z)&&(k[z]=!0)});
return k};
r1I=function(F,k){k=k===void 0?document:k;return k.createElement(String(F).toLowerCase())};
Uta=function(F){for(var k=F;F&&F!=F.parent;)F=F.parent,Q0(F)&&(k=F);return k};
c15=function(F){F=F||sQ();for(var k=new t8x(g.bD.location.href,!1),z=null,x=F.length-1,D=x;D>=0;--D){var e=F[D];!z&&Zwp.test(e.url)&&(z=e);if(e.url&&!e.Y){k=e;break}}D=null;e=F.length&&F[x].url;k.depth!==0&&e&&(D=F[x]);return new vVY(k,D,z)};
sQ=function(){var F=g.bD,k=[],z=null;do{var x=F;if(Q0(x)){var D=x.location.href;z=x.document&&x.document.referrer||null}else D=z,z=null;k.push(new t8x(D||""));try{F=x.parent}catch(e){F=null}}while(F&&x!==F);x=0;for(F=k.length-1;x<=F;++x)k[x].depth=F-x;x=g.bD;if(x.location&&x.location.ancestorOrigins&&x.location.ancestorOrigins.length===k.length-1)for(F=1;F<k.length;++F)D=k[F],D.url||(D.url=x.location.ancestorOrigins[F-1]||"",D.Y=!0);return k};
vVY=function(F,k,z){this.Y=F;this.L=k;this.U=z};
t8x=function(F,k){this.url=F;this.Y=!!k;this.depth=null};
rH=function(){this.U="&";this.L={};this.j=0;this.Y=[]};
B8=function(F,k){var z={};z[F]=k;return[z]};
PhR=function(F,k,z,x,D){var e=[];hW(F,function(C,p){(C=Gy(C,k,z,x,D))&&e.push(p+"="+C)});
return e.join(k)};
Gy=function(F,k,z,x,D){if(F==null)return"";k=k||"&";z=z||",$";typeof z==="string"&&(z=z.split(""));if(F instanceof Array){if(x||(x=0),x<z.length){for(var e=[],C=0;C<F.length;C++)e.push(Gy(F[C],k,z,x+1,D));return e.join(z[x])}}else if(typeof F==="object")return D||(D=0),D<2?encodeURIComponent(PhR(F,k,z,x,D+1)):"...";return encodeURIComponent(String(F))};
OwI=function(F){var k=1,z;for(z in F.L)z.length>k&&(k=z.length);return 3997-k-F.U.length-1};
UQ=function(F,k){this.Y=F;this.depth=k};
IJH=function(){function F(p,E){return p==null?E:p}
var k=sQ(),z=Math.max(k.length-1,0),x=c15(k);k=x.Y;var D=x.L,e=x.U,C=[];e&&C.push(new UQ([e.url,e.Y?2:0],F(e.depth,1)));D&&D!=e&&C.push(new UQ([D.url,2],0));k.url&&k!=e&&C.push(new UQ([k.url,0],F(k.depth,z)));x=g.tW(C,function(p,E){return C.slice(0,C.length-E)});
!k.url||(e||D)&&k!=e||(D=sUn(k.url))&&x.push([new UQ([D,1],F(k.depth,z))]);x.push([]);return g.tW(x,function(p){return V8n(z,p)})};
V8n=function(F,k){g.ZO(k,function(D){return D.depth>=0});
var z=v8(k,function(D,e){return Math.max(D,e.depth)},-1),x=x$6(z+2);
x[0]=F;g.XN(k,function(D){return x[D.depth+1]=D.Y});
return x};
Hwp=function(){var F=F===void 0?IJH():F;return F.map(function(k){return Gy(k)})};
aJC=function(F){var k=!1;k=k===void 0?!1:k;uQ.google_image_requests||(uQ.google_image_requests=[]);var z=r1I("IMG",uQ.document);k&&(z.attributionSrc="");z.src=F;uQ.google_image_requests.push(z)};
c8=function(F){var k="lG";if(F.lG&&F.hasOwnProperty(k))return F.lG;var z=new F;F.lG=z;F.hasOwnProperty(k);return z};
P8=function(){this.L=new TPH;this.Y=q2()?new N2:new Xm};
Sza=function(){OQ();var F=uQ.document;return!!(F&&F.body&&F.body.getBoundingClientRect&&typeof uQ.setInterval==="function"&&typeof uQ.clearInterval==="function"&&typeof uQ.setTimeout==="function"&&typeof uQ.clearTimeout==="function")};
bw5=function(){OQ();return Hwp()};
dtM=function(){};
OQ=function(){var F=c8(dtM);if(!F.Y){if(!uQ)throw Error("Context has not been set and window is undefined.");F.Y=c8(P8)}return F.Y};
V0=function(F){F=dR(F);HY(this);this.aS=F};
J16=function(F){this.U=F;this.Y=-1;this.L=this.j=0};
I6=function(F,k){return function(){var z=g.v6.apply(0,arguments);if(F.Y>-1)return k.apply(null,g.r(z));try{return F.Y=F.U.Y.now(),k.apply(null,g.r(z))}finally{F.j+=F.U.Y.now()-F.Y,F.Y=-1,F.L+=1}}};
y1x=function(F,k){this.L=F;this.U=k;this.Y=new J16(F)};
RHn=function(){this.Y={}};
Yz9=function(){var F=H8().flags,k=gVx;F=F.Y[k.key];if(k.valueType==="proto"){try{var z=JSON.parse(F);if(Array.isArray(z))return z}catch(x){}return k.defaultValue}return typeof F===typeof k.defaultValue?F:k.defaultValue};
fJH=function(){this.U=void 0;this.L=this.S=0;this.W=-1;this.zD=new j3;e3(this.zD,"mv",nVI).Y=!0;e3(this.zD,"omid",EQ);e3(this.zD,"epoh",EQ).Y=!0;e3(this.zD,"epph",EQ).Y=!0;e3(this.zD,"umt",EQ).Y=!0;e3(this.zD,"phel",EQ).Y=!0;e3(this.zD,"phell",EQ).Y=!0;e3(this.zD,"oseid",M8C).Y=!0;var F=this.zD;F.Y.sloi||(F.Y.sloi=new DO);F.Y.sloi.Y=!0;e3(this.zD,"mm",a6);e3(this.zD,"ovms",LQY).Y=!0;e3(this.zD,"xdi",EQ).Y=!0;e3(this.zD,"amp",EQ).Y=!0;e3(this.zD,"prf",EQ).Y=!0;e3(this.zD,"gtx",EQ).Y=!0;e3(this.zD,
"mvp_lv",EQ).Y=!0;e3(this.zD,"ssmol",EQ).Y=!0;e3(this.zD,"fmd",EQ).Y=!0;e3(this.zD,"gen204simple",EQ);this.Y=new y1x(OQ(),this.zD);this.j=!1;this.flags=new RHn};
H8=function(){return c8(fJH)};
KQY=function(F,k,z,x){if(Math.random()<(x||F.Y))try{if(z instanceof rH)var D=z;else D=new rH,hW(z,function(C,p){var E=D,X=E.j++;C=B8(p,C);E.Y.push(X);E.L[X]=C});
var e=D.q5(F.L,"pagead2.googlesyndication.com","/pagead/gen_204?id="+k+"&");e&&(OQ(),aJC(e))}catch(C){}};
WQM=function(F,k,z){z=z===void 0?{}:z;this.error=F;this.meta=z;this.context=k.context;this.msg=k.message||"";this.id=k.id||"jserror"};
Fmn=function(){var F=F===void 0?g.bD:F;return(F=F.performance)&&F.now&&F.timing?Math.floor(F.now()+F.timing.navigationStart):g.op()};
kQC=function(){var F=F===void 0?g.bD:F;return(F=F.performance)&&F.now?F.now():null};
oyx=function(F,k,z){this.label=F;this.type=k;this.value=z;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()};
bQ=function(){var F=window;this.events=[];this.L=F||g.bD;var k=null;F&&(F.google_js_reporting_queue=F.google_js_reporting_queue||[],this.events=F.google_js_reporting_queue,k=F.google_measure_js_timing);this.Y=S3()||(k!=null?k:Math.random()<1)};
zwa=function(F){F&&dH&&S3()&&(dH.clearMarks("goog_"+F.label+"_"+F.uniqueId+"_start"),dH.clearMarks("goog_"+F.label+"_"+F.uniqueId+"_end"))};
xnR=function(){var F=JW;this.Y=y0;this.Fj="jserror";this.pT=!0;this.sO=null;this.L=this.TB;this.Be=F===void 0?null:F};
i75=function(F,k,z){var x=R6;return I6(H8().Y.Y,function(){try{if(x.Be&&x.Be.Y){var D=x.Be.start(F.toString(),3);var e=k();x.Be.end(D)}else e=k()}catch(p){var C=x.pT;try{zwa(D),C=x.L(F,new gH(Yk(p)),void 0,z)}catch(E){x.TB(217,E)}if(!C)throw p;}return e})()};
nc=function(F,k,z,x){return I6(H8().Y.Y,function(){var D=g.v6.apply(0,arguments);return i75(F,function(){return k.apply(z,D)},x)})};
Yk=function(F){var k=F.toString();F.name&&k.indexOf(F.name)==-1&&(k+=": "+F.name);F.message&&k.indexOf(F.message)==-1&&(k+=": "+F.message);if(F.stack)a:{F=F.stack;var z=k;try{F.indexOf(z)==-1&&(F=z+"\n"+F);for(var x;F!=x;)x=F,F=F.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");k=F.replace(/\n */g,"\n");break a}catch(D){k=z;break a}k=void 0}return k};
gH=function(F){WQM.call(this,Error(F),{message:F})};
Dna=function(){uQ&&typeof uQ.google_measure_js_timing!="undefined"&&(uQ.google_measure_js_timing||JW.disable())};
$np=function(F){R6.sO=function(k){g.XN(F,function(z){z(k)})}};
jWn=function(F,k){return i75(F,k)};
M2=function(F,k){return nc(F,k)};
Lc=function(F,k,z,x){R6.TB(F,k,z,x)};
fc=function(){return Date.now()-ewk};
Cy6=function(){var F=H8().U,k=Kc>=0?fc()-Kc:-1,z=W8?fc()-Fr:-1,x=kQ>=0?fc()-kQ:-1;if(F==947190542)return 100;if(F==79463069)return 200;F=[2E3,4E3];var D=[250,500,1E3];Lc(637,Error(),.001);var e=k;z!=-1&&z<k&&(e=z);for(k=0;k<F.length;++k)if(e<F[k]){var C=D[k];break}C===void 0&&(C=D[F.length]);return x!=-1&&x>1500&&x<4E3?500:C};
oY=function(F,k,z,x){this.top=F;this.right=k;this.bottom=z;this.left=x};
zO=function(F){return F.right-F.left};
xQ=function(F,k){return F==k?!0:F&&k?F.top==k.top&&F.right==k.right&&F.bottom==k.bottom&&F.left==k.left:!1};
iU=function(F,k,z){k instanceof g.sV?(F.left+=k.x,F.right+=k.x,F.top+=k.y,F.bottom+=k.y):(F.left+=k,F.right+=k,typeof z==="number"&&(F.top+=z,F.bottom+=z));return F};
Dt=function(F,k,z){var x=new oY(0,0,0,0);this.time=F;this.volume=null;this.U=k;this.Y=x;this.L=z};
$Q=function(F,k,z,x,D,e,C,p){this.j=F;this.G=k;this.U=z;this.S=x;this.Y=D;this.W=e;this.L=C;this.B=p};
pMD=function(F){var k=F!==F.top,z=F.top===Uta(F),x=-1,D=0;if(k&&z&&F.top.mraid){x=3;var e=F.top.mraid}else x=(e=F.mraid)?k?z?2:1:0:-1;e&&(e.IS_GMA_SDK||(D=2),Jl5(AKI,function(C){return typeof e[C]==="function"})||(D=1));
return{Gf:e,compatibility:D,V5f:x}};
EyY=function(){var F=window.document;return F&&typeof F.elementFromPoint==="function"};
XMn=function(F,k,z){if(F&&k!==null&&k!=k.top){if(!k.top)return new g.BB(-12245933,-12245933);k=k.top}try{return(z===void 0?0:z)?(new g.BB(k.innerWidth,k.innerHeight)).round():x6C(k||window).round()}catch(x){return new g.BB(-12245933,-12245933)}};
jU=function(F,k,z){try{if(F){if(!k.top)return new oY(-12245933,-12245933,-12245933,-12245933);k=k.top}var x=XMn(F,k,z),D=x.height,e=x.width;if(e===-12245933)return new oY(e,e,e,e);var C=D6D(WB(k.document).Y),p=C.x,E=C.y;return new oY(E,p+e,E+D,p)}catch(X){return new oY(-12245933,-12245933,-12245933,-12245933)}};
g.eU=function(F,k,z,x){this.left=F;this.top=k;this.width=z;this.height=x};
CV=function(F,k){return F==k?!0:F&&k?F.left==k.left&&F.width==k.width&&F.top==k.top&&F.height==k.height:!1};
g.Xr=function(F,k,z){if(typeof k==="string")(k=pV(F,k))&&(F.style[k]=z);else for(var x in k){z=F;var D=k[x],e=pV(z,x);e&&(z.style[e]=D)}};
pV=function(F,k){var z=q25[k];if(!z){var x=Vip(k);z=x;F.style[x]===void 0&&(x=(g.DA?"Webkit":qO?"Moz":null)+HeH(x),F.style[x]!==void 0&&(z=x));q25[k]=z}return z};
g.NO=function(F,k){var z=F.style[Vip(k)];return typeof z!=="undefined"?z:F.style[pV(F,k)]||""};
uU=function(F,k){var z=Kx(F);return z.defaultView&&z.defaultView.getComputedStyle&&(F=z.defaultView.getComputedStyle(F,null))?F[k]||F.getPropertyValue(k)||"":""};
wQ=function(F,k){return uU(F,k)||(F.currentStyle?F.currentStyle[k]:null)||F.style&&F.style[k]};
g.TO=function(F,k,z){if(k instanceof g.sV){var x=k.x;k=k.y}else x=k,k=z;F.style.left=g.m8(x,!1);F.style.top=g.m8(k,!1)};
lU=function(F){try{return F.getBoundingClientRect()}catch(k){return{left:0,top:0,right:0,bottom:0}}};
NLk=function(F){var k=Kx(F),z=wQ(F,"position"),x=z=="fixed"||z=="absolute";for(F=F.parentNode;F&&F!=k;F=F.parentNode)if(F.nodeType==11&&F.host&&(F=F.host),z=wQ(F,"position"),x=x&&z=="static"&&F!=k.documentElement&&F!=k.body,!x&&(F.scrollWidth>F.clientWidth||F.scrollHeight>F.clientHeight||z=="fixed"||z=="absolute"||z=="relative"))return F;return null};
g.Q1=function(F){var k=Kx(F),z=new g.sV(0,0);if(F==(k?Kx(k):document).documentElement)return z;F=lU(F);k=D6D(WB(k).Y);z.x=F.left+k.x;z.y=F.top+k.y;return z};
wMn=function(F,k){var z=new g.sV(0,0),x=$M(Kx(F));if(!D$I(x,"parent"))return z;do{var D=x==k?g.Q1(F):ubn(F);z.x+=D.x;z.y+=D.y}while(x&&x!=k&&x!=x.parent&&(F=x.frameElement)&&(x=x.parent));return z};
g.h9=function(F,k){F=mnx(F);k=mnx(k);return new g.sV(F.x-k.x,F.y-k.y)};
ubn=function(F){F=lU(F);return new g.sV(F.left,F.top)};
mnx=function(F){if(F.nodeType==1)return ubn(F);F=F.changedTouches?F.changedTouches[0]:F;return new g.sV(F.clientX,F.clientY)};
g.s0=function(F,k,z){if(k instanceof g.BB)z=k.height,k=k.width;else if(z==void 0)throw Error("missing height argument");F.style.width=g.m8(k,!0);F.style.height=g.m8(z,!0)};
g.m8=function(F,k){typeof F=="number"&&(F=(k?Math.round(F):F)+"px");return F};
g.rQ=function(F){var k=TLC;if(wQ(F,"display")!="none")return k(F);var z=F.style,x=z.display,D=z.visibility,e=z.position;z.visibility="hidden";z.position="absolute";z.display="inline";F=k(F);z.display=x;z.position=e;z.visibility=D;return F};
TLC=function(F){var k=F.offsetWidth,z=F.offsetHeight,x=g.DA&&!k&&!z;return(k===void 0||x)&&F.getBoundingClientRect?(F=lU(F),new g.BB(F.right-F.left,F.bottom-F.top)):new g.BB(k,z)};
g.BS=function(F,k){F.style.display=k?"":"none"};
GO=function(F,k){k=Math.pow(10,k);return Math.floor(F*k)/k};
ldp=function(F){return new oY(F.top,F.right,F.bottom,F.left)};
QWa=function(F){var k=F.top||0,z=F.left||0;return new oY(k,z+(F.width||0),k+(F.height||0),z)};
U0=function(F){return F!=null&&F>=0&&F<=1};
hwC=function(){var F=g.ZH();return F?t9("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(k){return Bl(F,k)})||Bl(F,"OMI/")&&!Bl(F,"XiaoMi/")?!0:Bl(F,"Presto")&&Bl(F,"Linux")&&!Bl(F,"X11")&&!Bl(F,"Android")&&!Bl(F,"Mobi"):!1};
sWp=function(){this.U=!Q0(uQ.top);this.isMobileDevice=lQ()||lJY();var F=sQ();this.domain=F.length>0&&F[F.length-1]!=null&&F[F.length-1].url!=null?g.Lw(F[F.length-1].url)||"":"";this.Y=new oY(0,0,0,0);this.j=new g.BB(0,0);this.W=new g.BB(0,0);this.G=new oY(0,0,0,0);this.frameOffset=new g.sV(0,0);this.S=0;this.B=!1;this.L=!(!uQ||!pMD(uQ).Gf);this.update(uQ)};
rKI=function(F,k){k&&k.screen&&(F.j=new g.BB(k.screen.width,k.screen.height))};
BL6=function(F,k){a:{var z=F.Y?new g.BB(zO(F.Y),F.Y.getHeight()):new g.BB(0,0);k=k===void 0?uQ:k;k!==null&&k!=k.top&&(k=k.top);var x=0,D=0;try{var e=k.document,C=e.body,p=e.documentElement;if(e.compatMode=="CSS1Compat"&&p.scrollHeight)x=p.scrollHeight!=z.height?p.scrollHeight:p.offsetHeight,D=p.scrollWidth!=z.width?p.scrollWidth:p.offsetWidth;else{var E=p.scrollHeight,X=p.scrollWidth,q=p.offsetHeight,N=p.offsetWidth;p.clientHeight!=q&&(E=C.scrollHeight,X=C.scrollWidth,q=C.offsetHeight,N=C.offsetWidth);
E>z.height?E>q?(x=E,D=X):(x=q,D=N):E<q?(x=E,D=X):(x=q,D=N)}var u=new g.BB(D,x);break a}catch(w){u=new g.BB(-12245933,-12245933);break a}u=void 0}F.W=u};
IY=function(){var F=Zt();if(F.S>0||F.B)return!0;F=OQ().L.isVisible();var k=Ty(vS)===0;return F||k};
Zt=function(){return c8(sWp)};
HS=function(F){this.U=F;this.L=0;this.Y=null};
aY=function(F,k,z){this.U=F;this.l$=z===void 0?"na":z;this.W=[];this.isInitialized=!1;this.j=new Dt(-1,!0,this);this.Y=this;this.B=k;this.Qh=this.K=!1;this.Xf="uk";this.mp=!1;this.S=!0};
SU=function(F,k){g.fC(F.W,k)||(F.W.push(k),k.jJ(F.Y),k.zC(F.j),k.g2()&&(F.K=!0))};
GQp=function(F){F=F.Y;F.Ha();F.f7();var k=Zt();k.G=jU(!1,F.U,k.isMobileDevice);BL6(Zt(),F.U);F.j.Y=F.s4()};
Unx=function(F){F.K=F.W.length?t9(F.W,function(k){return k.g2()}):!1};
tXH=function(F){var k=g.z8(F.W);g.XN(k,function(z){z.zC(F.j)})};
bU=function(F){var k=g.z8(F.W);g.XN(k,function(z){z.jJ(F.Y)});
F.Y!=F||tXH(F)};
dQ=function(F,k,z,x){this.element=F;this.Y=new oY(0,0,0,0);this.U=null;this.S=new oY(0,0,0,0);this.L=k;this.zD=z;this.mp=x;this.t4=!1;this.timestamp=-1;this.K=new $Q(k.j,this.element,this.Y,new oY(0,0,0,0),0,0,fc(),0);this.W=void 0};
Z7H=function(F,k){return F.W?new oY(Math.max(k.top+F.W.top,k.top),Math.min(k.left+F.W.right,k.right),Math.min(k.top+F.W.bottom,k.bottom),Math.max(k.left+F.W.left,k.left)):k.clone()};
J9=function(F){this.W=!1;this.Y=F;this.j=function(){}};
vya=function(F,k,z){this.U=z===void 0?0:z;this.L=F;this.Y=k==null?"":k};
cKa=function(F){switch(Math.trunc(F.U)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Py5=function(F,k){return F.U<k.U?!0:F.U>k.U?!1:F.L<k.L?!0:F.L>k.L?!1:typeof F.Y<typeof k.Y?!0:typeof F.Y>typeof k.Y?!1:F.Y<k.Y};
y1=function(){this.U=0;this.Y=[];this.L=!1};
O7M=function(F,k){(0,g.XN)(k.Y,function(z){F.add(z.L,z.Y,cKa(z))})};
RY=function(F,k){var z=z===void 0?0:z;var x=x===void 0?!0:x;hW(k,function(D,e){x&&D===void 0||F.add(e,D,z)});
return F};
gQ=function(F){var k=VXY;F.L&&(g.AO(F.Y,function(z,x){return Py5(x,z)?1:Py5(z,x)?-1:0}),F.L=!1);
return v8(F.Y,function(z,x){x=k(x);return""+z+(z!=""&&x!=""?"&":"")+x},"")};
VXY=function(F){var k=F.L;F=F.Y;return F===""?k:typeof F==="boolean"?F?k:"":Array.isArray(F)?F.length===0?k:k+"="+F.join():k+"="+(g.fC(["mtos","tos","p"],k)?F:encodeURIComponent(F))};
IdY=function(F){var k=k===void 0?!0:k;this.Y=new y1;F!==void 0&&O7M(this.Y,F);k&&this.Y.add("v","unreleased",-16)};
H7R=function(F){var k=[],z=[];g.tg(F,function(x,D){if(!(D in Object.prototype)&&typeof x!="undefined")switch(Array.isArray(x)&&(x=x.join(",")),x=[D,"=",x].join(""),D){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":k.unshift(x);break;case "req":case "url":case "referrer":case "iframe_loc":z.push(x);break;default:k.push(x)}});
return k.concat(z)};
adM=function(F){F=F.toString();OQ();aJC(F)};
S2p=function(){this.Y=0};
b79=function(F,k,z){(0,g.XN)(F.U,function(x){var D=F.Y;if(!x.Y&&(x.U(k,z),x.j())){x.Y=!0;var e=x.L(),C=new y1;C.add("id","av-js");C.add("type","verif");C.add("vtype",x.W);x=c8(S2p);C.add("i",x.Y++);C.add("adk",D);RY(C,e);D=new IdY(C);adM(D)}})};
YQ=function(){this.L=this.U=this.j=this.Y=0};
nV=function(F){this.L=F=F===void 0?dnn:F;this.Y=g.tW(this.L,function(){return new YQ})};
MO=function(F,k){return JKR(F,function(z){return z.Y},k===void 0?!0:k)};
fV=function(F,k){return LV(F,k,function(z){return z.Y})};
yK5=function(F,k){return JKR(F,function(z){return z.U},k===void 0?!0:k)};
KV=function(F,k){return LV(F,k,function(z){return z.U})};
WS=function(F,k){return LV(F,k,function(z){return z.L})};
Rw9=function(F){g.XN(F.Y,function(k){k.L=0})};
JKR=function(F,k,z){F=g.tW(F.Y,function(x){return k(x)});
return z?F:gyM(F)};
LV=function(F,k,z){var x=g.LC(F.L,function(D){return k<=D});
return x==-1?0:z(F.Y[x])};
gyM=function(F){return g.tW(F,function(k,z,x){return z>0?x[z]-x[z-1]:x[z]})};
FJ=function(){this.L=new nV;this.l$=this.cR=0;this.RU=new YQ;this.PR=this.G=-1;this.kG=1E3;this.vR=new nV([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Xf=this.t4=-1};
km=function(F,k){return yK5(F.L,k===void 0?!0:k)};
om=function(F,k,z,x){var D=D===void 0?!1:D;z=nc(x,z);mG(F,k,z,{capture:D})};
xm=function(F,k){k=zA(k);return k===0?0:zA(F)/k};
zA=function(F){return Math.max(F.bottom-F.top,0)*Math.max(F.right-F.left,0)};
Y2n=function(F,k){if(!F||!k)return!1;for(var z=0;F!==null&&z++<100;){if(F===k)return!0;try{if(F=F.parentElement||F){var x=Kx(F),D=x&&$M(x),e=D&&D.frameElement;e&&(F=e)}}catch(C){break}}return!1};
nyC=function(F,k,z){if(!F||!k)return!1;k=iU(F.clone(),-k.left,-k.top);F=(k.left+k.right)/2;k=(k.top+k.bottom)/2;Q0(window.top)&&window.top&&window.top.document&&(window=window.top);if(!EyY())return!1;F=window.document.elementFromPoint(F,k);if(!F)return!1;k=(k=(k=Kx(z))&&k.defaultView&&k.defaultView.frameElement)&&Y2n(k,F);var x=F===z;F=!x&&F&&wd(F,function(D){return D===z});
return!(k||x||F)};
MXn=function(F,k,z,x){return Zt().U?!1:zO(F)<=0||F.getHeight()<=0?!0:z&&x?jWn(208,function(){return nyC(F,k,z)}):!1};
iR=function(F,k,z){g.S.call(this);this.position=Lma.clone();this.pX=this.RP();this.iR=-2;this.timeCreated=Date.now();this.QB=-1;this.rV=k;this.lD=null;this.uH=!1;this.XW=null;this.opacity=-1;this.requestSource=z;this.hqf=!1;this.SA=function(){};
this.lm=function(){};
this.xZ=new w4I;this.xZ.MI=F;this.xZ.Y=F;this.Vl=!1;this.LU={x7:null,n_:null};this.Rr=!0;this.Q9=null;this.zJ=this.LYG=!1;H8().S++;this.yL=this.kU();this.rG=-1;this.M5=null;this.hasCompleted=this.vGk=!1;this.zD=new j3;uzD(this.zD);fdp(this);this.requestSource==1?Cc(this.zD,"od",1):Cc(this.zD,"od",0)};
fdp=function(F){F=F.xZ.MI;var k;if(k=F&&F.getAttribute)k=/-[a-z]/.test("googleAvInapp")?!1:KmM&&F.dataset?"googleAvInapp"in F.dataset:F.hasAttribute?F.hasAttribute("data-"+ITk()):!!F.getAttribute("data-"+ITk());k&&(Zt().L=!0)};
D5=function(F,k){k!=F.zJ&&(F.zJ=k,F=Zt(),k?F.S++:F.S>0&&F.S--)};
Wmn=function(F,k){if(F.M5){if(k.getName()===F.M5.getName())return;F.M5.dispose();F.M5=null}k=k.create(F.xZ.Y,F.zD,F.g2());if(k=k!=null&&k.observe()?k:null)F.M5=k};
F$D=function(F,k,z){if(!F.lD||F.rV==-1||k.L===-1||F.lD.L===-1)return 0;F=k.L-F.lD.L;return F>z?0:F};
kiC=function(F,k,z){if(F.M5){F.M5.uW();var x=F.M5.K,D=x.j,e=D.Y;if(x.S!=null){var C=x.U;F.XW=new g.sV(C.left-e.left,C.top-e.top)}e=F.YD()?Math.max(x.Y,x.W):x.Y;C={};D.volume!==null&&(C.volume=D.volume);D=F.HQ(x);F.lD=x;F.G4(e,k,z,!1,C,D,x.B)}};
oDp=function(F){if(F.uH&&F.Q9){var k=AW(F.zD,"od")==1,z=Zt().Y,x=F.Q9,D=F.M5?F.M5.getName():"ns",e=F.XW,C=new g.BB(zO(z),z.getHeight());z=F.YD();F={pct:D,XW:e,JG$:C,YD:z,wl:F.yL.wl,x4h:k};if(k=x.L){k.uW();D=k.K;e=D.j.Y;var p=C=null;D.S!=null&&e&&(C=D.U,C=new g.sV(C.left-e.left,C.top-e.top),p=new g.BB(e.right-e.left,e.bottom-e.top));D=z?Math.max(D.Y,D.W):D.Y;z={pct:k.getName(),XW:C,JG$:p,YD:z,x4h:!1,wl:D}}else z=null;z&&b79(x,F,z)}};
zOC=function(F,k,z){k&&(F.SA=k);z&&(F.lm=z)};
g.$m=function(){};
g.jr=function(F){return{value:F,done:!1}};
xrk=function(){this.j=this.Y=this.U=this.L=this.W=0};
if5=function(F){var k={};var z=g.op()-F.W;k=(k.ptlt=z,k);(z=F.L)&&(k.pnk=z);(z=F.U)&&(k.pnc=z);(z=F.j)&&(k.pnmm=z);(F=F.Y)&&(k.pns=F);return k};
Dr6=function(){zy.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
er=function(F){return U0(F.volume)&&F.volume>0};
CT=function(F,k,z,x){z=z===void 0?!0:z;x=x===void 0?function(){return!0}:x;
return function(D){var e=D[F];if(Array.isArray(e)&&x(D))return $ra(e,k,z)}};
Ai=function(F,k){return function(z){return k(z)?z[F]:void 0}};
j46=function(F){return function(k){for(var z=0;z<F.length;z++)if(F[z]===k.e||F[z]===void 0&&!k.hasOwnProperty("e"))return!0;return!1}};
$ra=function(F,k,z){return z===void 0||z?g.pT(F,function(x,D){return g.fC(k,D)}):g.tW(k,function(x,D,e){return F.slice(D>0?e[D-1]+1:0,x+1).reduce(function(C,p){return C+p},0)})};
eOI=function(){this.L=this.Y=""};
C8p=function(){};
Eg=function(F,k){var z={};if(F!==void 0)if(k!=null)for(var x in k){var D=k[x];x in Object.prototype||D!=null&&(z[x]=typeof D==="function"?D(F):F[D])}else g.RM(z,F);return gQ(RY(new y1,z))};
AaY=function(){var F={};this.L=(F.vs=[1,0],F.vw=[0,1],F.am=[2,2],F.a=[4,4],F.f=[8,8],F.bm=[16,16],F.b=[32,32],F.avw=[0,64],F.avs=[64,0],F.pv=[256,256],F.gdr=[0,512],F.p=[0,1024],F.r=[0,2048],F.m=[0,4096],F.um=[0,8192],F.ef=[0,16384],F.s=[0,32768],F.pmx=[0,16777216],F.mut=[33554432,33554432],F.umutb=[67108864,67108864],F.tvoff=[134217728,134217728],F);this.Y={};for(var k in this.L)this.L[k][1]>0&&(this.Y[k]=0);this.U=0};
XJ=function(F,k){var z=F.L[k],x=z[1];F.U+=z[0];x>0&&F.Y[k]==0&&(F.Y[k]=1)};
pDR=function(F){var k=g.Vd(F.L),z=0,x;for(x in F.Y)g.fC(k,x)&&F.Y[x]==1&&(z+=F.L[x][1],F.Y[x]=2);return z};
EDR=function(F){var k=0,z;for(z in F.Y){var x=F.Y[z];if(x==1||x==2)k+=F.L[z][1]}return k};
ql=function(){this.Y=this.L=0};
Nl=function(){FJ.call(this);this.U=new YQ;this.J4=this.K=this.mp=0;this.B=-1;this.dH=new YQ;this.W=new YQ;this.Y=new nV;this.S=this.j=-1;this.Qh=new YQ;this.kG=2E3;this.yh=new ql;this.NJ=new ql;this.u$=new ql};
uR=function(F,k,z){var x=F.J4;W8||z||F.B==-1||(x+=k-F.B);return x};
XD9=function(){this.U=!1};
wC=function(F,k){this.U=!1;this.j=F;this.K=k;this.W=0};
TA=function(F,k){wC.call(this,F,k);this.G=[]};
qF9=function(){};
lR=function(){};
Q_=function(F,k,z,x){dQ.call(this,F,k,z,x)};
hi=function(F,k,z){dQ.call(this,null,F,k,z);this.B=F.isActive();this.G=0};
sg=function(F){return[F.top,F.left,F.bottom,F.right]};
rC=function(F,k,z,x,D,e){e=e===void 0?new lR:e;iR.call(this,k,z,x);this.fA=D;this.Op=0;this.GY={};this.Kp=new AaY;this.M2={};this.EF="";this.u$=null;this.mY=!1;this.Y=[];this.HT=e.L();this.S=e.U();this.j=null;this.U=-1;this.l$=this.K=void 0;this.PR=this.Qh=0;this.Xf=-1;this.kG=this.NJ=!1;this.mp=this.B=this.L=this.bN=this.UH=0;new nV;this.yh=this.J4=0;this.RU=-1;this.sT=0;this.G=g.h1;this.t4=[this.RP()];this.qD=2;this.xQ={};this.xQ.pause="p";this.xQ.resume="r";this.xQ.skip="s";this.xQ.mute="m";this.xQ.unmute=
"um";this.xQ.exitfullscreen="ef";this.W=null;this.vR=this.dH=!1;this.Xm=Math.floor(Date.now()/1E3-1704067200);this.cR=0};
BK=function(F){F.hasCompleted=!0;F.sT!=0&&(F.sT=3)};
GA=function(F){return F===void 0?F:Number(F)?GO(F,3):0};
Ug=function(F,k){return F.t4[k!=null&&k<F.t4.length?k:F.t4.length-1]};
Nlx=function(F){var k=!!AW(H8().zD,"umt");return F.K||!k&&!F.l$?0:1};
uBn=function(F,k){F.bK()?k=0:F.rV==-1?k=0:(k-=F.rV,k=k>Math.max(1E4,F.U/3)?0:k);var z=F.G(F)||{};z=z.currentTime!==void 0?z.currentTime:F.Qh;var x=z-F.Qh,D=0;x>=0?(F.PR+=k,F.yh+=Math.max(k-x,0),D=Math.min(x,F.PR)):F.J4+=Math.abs(x);x!=0&&(F.PR=0);F.RU==-1&&x>0&&(F.RU=kQ>=0?fc()-kQ:-1);F.Qh=z;return D};
wD9=function(F,k){t9(F.S,function(z){return z.j==k.j})||F.S.push(k)};
mrR=function(F){var k=fV(F.Rz().Y,1);return ti(F,k)};
ti=function(F,k,z){return k>=15E3?!0:F.NJ?(z===void 0?0:z)?!0:F.U>0?k>=F.U/2:F.Xf>0?k>=F.Xf:!1:!1};
Tln=function(F){var k=GO(F.yL.wl,2),z=F.Kp.U,x=F.yL,D=Ug(F),e=GA(D.j),C=GA(D.S),p=GA(x.volume),E=GO(D.G,2),X=GO(D.PR,2),q=GO(x.wl,2),N=GO(D.t4,2),u=GO(D.Xf,2);x=GO(x.Fz,2);var w=F.X7().clone().round();F=F.M5&&F.M5.U?(F.M5?F.M5.U:null).clone().round():null;D=km(D,!1);return{GYQ:k,Bf:z,Of:e,fX:C,Fu:p,KX:E,NK:X,wl:q,du:N,wm:u,Fz:x,position:w,zG:F,Lx:D}};
Q4I=function(F,k){lEp(F.Y,k,function(){return{GYQ:0,Bf:void 0,Of:-1,fX:-1,Fu:-1,KX:-1,NK:-1,wl:-1,du:-1,wm:-1,Fz:-1,position:void 0,zG:void 0,Lx:[]}});
F.Y[k]=Tln(F)};
lEp=function(F,k,z){for(var x=F.length;x<k+1;)F.push(z()),x++};
vK=function(F,k,z){var x=F.M2[k];if(x!=null)return x;x=hOk(F,k);var D=aM(Z5,function(e){return e==k});
F=s4k(F,x,x,z,raH[Z5[D]]);k=="fully_viewable_audible_half_duration_impression"&&(F.std="csm");return F};
cK=function(F,k,z){var x=[k];if(F!=k||z!=k)x.unshift(F),x.push(z);return x};
s4k=function(F,k,z,x,D){if(F.Vl)return{"if":0,vs:0};var e=F.X7().clone().round(),C=F.M5?F.M5.U:null,p=Zt(),E=H8(),X=F.Rz(),q=F.M5?F.M5.getName():"ns",N={};N["if"]=p.U?1:void 0;N.sdk=F.j?F.j:void 0;N.t=F.timeCreated;N.p=[e.top,e.left,e.bottom,e.right];e&&C&&!xQ(C,e)&&(e=C.round(),N.cp=[e.top,e.left,e.bottom,e.right]);N.tos=MO(X.L,!1);N.mtos=km(X);N.mcvt=X.RU.U;N.ps=void 0;e=uR(X,fc(),F.bK());N.vht=e;N.mut=X.dH.U;N.a=GA(F.yL.volume);N.mv=GA(X.S);N.fs=F.zJ?1:0;N.ft=X.Qh.Y;N.at=X.W.Y;N.as=X.j>0?1:0;N.atos=
MO(X.Y);N.ssb=MO(X.vR,!1);N.amtos=yK5(X.Y,!1);N.uac=F.UH;N.vpt=X.U.Y;q=="nio"&&(N.nio=1,N.avms="nio");N.gmm="4";N.gdr=ti(F,X.U.Y,!0)?1:0;N.efpf=F.qD;if(q=="gsv"||q=="nis")q=F.M5,q.G>0&&(N.nnut=q.G);N.tcm=Nlx(F);N.nmt=F.J4;N.bt=F.yh;N.pst=F.RU;N.vpaid=F.K;N.dur=F.U;N.vmtime=F.Qh;N.is=F.Kp.U;F.Y.length>=1&&(N.i0=F.Y[0].Bf,N.a0=[F.Y[0].Fu],N.c0=[F.Y[0].wl],N.ss0=[F.Y[0].Fz],q=F.Y[0].position,e=F.Y[0].zG,N.p0=q?sg(q):void 0,q&&e&&!xQ(e,q)&&(N.cp0=sg(e)));F.Y.length>=2&&(N.i1=F.Y[1].Bf,N.a1=cK(F.Y[1].Of,
F.Y[1].Fu,F.Y[1].fX),N.c1=cK(F.Y[1].KX,F.Y[1].wl,F.Y[1].NK),N.ss1=cK(F.Y[1].du,F.Y[1].Fz,F.Y[1].wm),q=F.Y[1].position,e=F.Y[1].zG,N.p1=q?sg(q):void 0,q&&e&&!xQ(e,q)&&(N.cp1=sg(e)),N.mtos1=F.Y[1].Lx);F.Y.length>=3&&(N.i2=F.Y[2].Bf,N.a2=cK(F.Y[2].Of,F.Y[2].Fu,F.Y[2].fX),N.c2=cK(F.Y[2].KX,F.Y[2].wl,F.Y[2].NK),N.ss2=cK(F.Y[2].du,F.Y[2].Fz,F.Y[2].wm),q=F.Y[2].position,e=F.Y[2].zG,N.p2=q?sg(q):void 0,q&&e&&!xQ(e,q)&&(N.cp2=sg(e)),N.mtos2=F.Y[2].Lx);F.Y.length>=4&&(N.i3=F.Y[3].Bf,N.a3=cK(F.Y[3].Of,F.Y[3].Fu,
F.Y[3].fX),N.c3=cK(F.Y[3].KX,F.Y[3].wl,F.Y[3].NK),N.ss3=cK(F.Y[3].du,F.Y[3].Fz,F.Y[3].wm),q=F.Y[3].position,e=F.Y[3].zG,N.p3=q?sg(q):void 0,q&&e&&!xQ(e,q)&&(N.cp3=sg(e)),N.mtos3=F.Y[3].Lx);N.cs=EDR(F.Kp);k&&(N.ic=pDR(F.Kp),N.dvpt=X.U.L,N.dvs=WS(X.L,.5),N.dfvs=WS(X.L,1),N.davs=WS(X.Y,.5),N.dafvs=WS(X.Y,1),z&&(X.U.L=0,Rw9(X.L),Rw9(X.Y)),F.R9()&&(N.dtos=X.mp,N.dav=X.K,N.dtoss=F.Op+1,z&&(X.mp=0,X.K=0,F.Op++)),N.dat=X.W.L,N.dft=X.Qh.L,z&&(X.W.L=0,X.Qh.L=0));N.ps=[p.W.width,p.W.height];N.bs=[zO(p.Y),p.Y.getHeight()];
N.scs=[p.j.width,p.j.height];N.dom=p.domain;F.bN&&(N.vds=F.bN);if(F.S.length>0||F.HT)k=g.z8(F.S),F.HT&&k.push(F.HT),N.pings=g.tW(k,function(u){return u.toString()});
k=g.tW(g.pT(F.S,function(u){return u.S()}),function(u){return u.getId()});
FAC(k);N.ces=k;F.L&&(N.vmer=F.L);F.B&&(N.vmmk=F.B);F.mp&&(N.vmiec=F.mp);N.avms=F.M5?F.M5.getName():"ns";F.M5&&g.RM(N,F.M5.F7());x?(N.c=GO(F.yL.wl,2),N.ss=GO(F.yL.Fz,2)):N.tth=fc()-BlM;N.mc=GO(X.PR,2);N.nc=GO(X.G,2);N.mv=GA(X.S);N.nv=GA(X.j);N.lte=GO(F.iR,2);x=Ug(F,D);km(X);N.qmtos=km(x);N.qnc=GO(x.G,2);N.qmv=GA(x.S);N.qnv=GA(x.j);N.qas=x.j>0?1:0;N.qi=F.EF;N.avms||(N.avms="geo");N.psm=X.yh.Y;N.psv=X.yh.getValue();N.psfv=X.NJ.getValue();N.psa=X.u$.getValue();E=qzx(E.zD);E.length&&(N.veid=E);F.W&&g.RM(N,
if5(F.W));N.avas=F.eN();N.vs=F.rU();N.co=Gia(F);N.tm=X.cR;N.tu=X.l$;return N};
hOk=function(F,k){if(g.fC(UrC,k))return!0;var z=F.GY[k];return z!==void 0?(F.GY[k]=!0,!z):!1};
Gia=function(F){var k=F.cR.toString(10).padStart(2,"0");k=""+F.Xm+k;F.cR<99&&F.cR++;return k};
ZfC=function(){this.Y={};var F=$M();PK(this,F,document);var k=tKa();try{if("1"==k){for(var z=F.parent;z!=F.top;z=z.parent)PK(this,z,z.document);PK(this,F.top,F.top.document)}}catch(x){}};
tKa=function(){var F=document.documentElement;try{if(!Q0($M().top))return"2";var k=[],z=$M(F.ownerDocument);for(F=z;F!=z.top;F=F.parent)if(F.frameElement)k.push(F.frameElement);else break;return k&&k.length!=0?"1":"0"}catch(x){return"2"}};
PK=function(F,k,z){om(z,"mousedown",function(){return vDM(F)},301);
om(k,"scroll",function(){return cak(F)},302);
om(z,"touchmove",function(){return P8C(F)},303);
om(z,"mousemove",function(){return Ofk(F)},304);
om(z,"keydown",function(){return VKI(F)},305)};
vDM=function(F){g.tg(F.Y,function(k){k.U>1E5||++k.U})};
cak=function(F){g.tg(F.Y,function(k){k.Y>1E5||++k.Y})};
P8C=function(F){g.tg(F.Y,function(k){k.Y>1E5||++k.Y})};
VKI=function(F){g.tg(F.Y,function(k){k.L>1E5||++k.L})};
Ofk=function(F){g.tg(F.Y,function(k){k.j>1E5||++k.j})};
IEa=function(){this.Y=[];this.L=[]};
Og=function(F,k){return g.M$(F.Y,function(z){return z.EF==k})};
HfD=function(F,k){return k?g.M$(F.Y,function(z){return z.xZ.MI==k}):null};
aEC=function(F,k){return g.M$(F.L,function(z){return z.q9()==2&&z.EF==k})};
Im=function(){var F=V_;return F.Y.length==0?F.L:F.L.length==0?F.Y:g.o2(F.L,F.Y)};
SFM=function(F,k){F=k.q9()==1?F.Y:F.L;var z=nC(F,function(x){return x==k});
return z!=-1?(F.splice(z,1),k.M5&&k.M5.unobserve(),k.dispose(),!0):!1};
bfD=function(F){var k=V_;if(SFM(k,F)){switch(F.q9()){case 0:var z=function(){return null};
case 2:z=function(){return aEC(k,F.EF)};
break;case 1:z=function(){return Og(k,F.EF)}}for(var x=z();x;x=z())SFM(k,x)}};
dra=function(F){var k=V_;F=g.pT(F,function(z){return!HfD(k,z.xZ.MI)});
k.Y.push.apply(k.Y,g.r(F))};
Jan=function(F){var k=[];g.XN(F,function(z){t9(V_.Y,function(x){return x.xZ.MI===z.xZ.MI&&x.EF===z.EF})||(V_.Y.push(z),k.push(z))})};
HK=function(){this.Y=this.L=null};
yaR=function(F,k){function z(x,D){k(x,D)}
if(F.L==null)return!1;F.Y=g.M$(F.L,function(x){return x!=null&&x.N7()});
F.Y&&(F.Y.init(z)?GQp(F.Y.Y):k(F.Y.Y.D2(),F.Y));return F.Y!=null};
am=function(F){F=ROM(F);J9.call(this,F.length?F[F.length-1]:new aY(uQ,0));this.U=F;this.L=null};
ROM=function(F){if(!F.length)return[];F=(0,g.pT)(F,function(z){return z!=null&&z.QJ()});
for(var k=1;k<F.length;k++)SU(F[k-1],F[k]);return F};
Sr=function(F,k,z,x){dQ.call(this,F,k,z,x);this.PR=this.Qh=this.G=this.B=this.j=null};
bR=function(F){return F.j&&F.j.takeRecords?F.j.takeRecords():[]};
YFH=function(F){if(!F.element)return!1;var k=F.element,z=F.L.Y.U,x=H8().Y.Y;F.j=new z.IntersectionObserver(I6(x,function(D){return dC(F,D)}),gDD);
x=I6(x,function(){F.j.unobserve(k);F.j.observe(k);dC(F,bR(F))});
z.ResizeObserver?(F.B=new z.ResizeObserver(x),F.B.observe(k)):z.MutationObserver&&(F.G=new g.bD.MutationObserver(x),F.G.observe(k,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));F.j.observe(k);dC(F,bR(F));return!0};
dC=function(F,k){try{if(k.length){F.Qh||(F.Qh=fc());var z=nDR(k),x=wMn(F.element,F.L.Y.U),D=x.x,e=x.y;F.U=new oY(Math.round(e),Math.round(D)+z.boundingClientRect.width,Math.round(e)+z.boundingClientRect.height,Math.round(D));F.Y=Z7H(F,F.U);var C=ldp(z.intersectionRect);F.S=iU(C,F.U.left-C.left,F.U.top-C.top)}}catch(p){F.unobserve(),Lc(299,p)}};
nDR=function(F){return v8(F,function(k,z){return k.time>z.time?k:z},F[0])};
Ji=function(F){F=F===void 0?uQ:F;J9.call(this,new aY(F,2))};
y_=function(){var F=MKR();aY.call(this,uQ.top,F,"geo")};
MKR=function(){H8();var F=Zt();return F.U||F.L?0:2};
L$Y=function(){};
Rm=function(){this.done=!1;this.Y={nM:0,CG:0,pn$:0,dU:0,Gq:-1,SL:0,Tb:0,eL:0,uY$:0};this.W=null;this.S=!1;this.U=null;this.G=0;this.L=new HS(this)};
Ym=function(){var F=gC;F.S||(F.S=!0,fEn(F,function(){return F.j.apply(F,g.r(g.v6.apply(0,arguments)))}),F.j())};
K$R=function(){c8(L$Y);var F=c8(HK);F.Y!=null&&F.Y.Y?GQp(F.Y.Y):Zt().update(uQ)};
nT=function(F,k,z){if(!F.done&&(F.L.cancel(),k.length!=0)){F.U=null;try{K$R();var x=fc();H8().W=x;if(c8(HK).Y!=null)for(var D=0;D<k.length;D++)kiC(k[D],x,z);for(x=0;x<k.length;x++)oDp(k[x]);++F.Y.dU}finally{z?g.XN(k,function(e){e.yL.wl=0}):F.L.schedule()}}};
fEn=function(F,k){if(!F.W){k=nc(142,k);OQ();var z;vS.visibilityState?z="visibilitychange":vS.mozVisibilityState?z="mozvisibilitychange":vS.webkitVisibilityState&&(z="webkitvisibilitychange");z&&mG(vS,z,k,{capture:!1})&&(F.W=k)}};
W$R=function(){var F=c8(HK);if(F.Y!=null){var k=F.Y;g.XN(Im(),function(z){return Wmn(z,k)})}};
FGD=function(F,k){F=F.G;W8&&(F+=k-Fr);return F};
kyH=function(F){F=F===void 0?function(){return{}}:F;
R6.Fj="av-js";y0.Y=.01;$np([function(k){var z=H8(),x={};x=(x.bin=z.L,x.type="error",x);z=pc(z.zD);if(!gC.U){var D=gC,e=uQ.document,C=Kc>=0?fc()-Kc:-1,p=fc();D.Y.Gq==-1&&(C=p);var E=Zt(),X=H8(),q=pc(X.zD),N=Im();try{if(N.length>0){var u=E.Y;u&&(q.bs=[zO(u),u.getHeight()]);var w=E.W;w&&(q.ps=[w.width,w.height]);uQ.screen&&(q.scs=[uQ.screen.width,uQ.screen.height])}else q.url=encodeURIComponent(uQ.location.href.substring(0,512)),e.referrer&&(q.referrer=encodeURIComponent(e.referrer.substring(0,512)));
q.tt=C;q.pt=Kc;q.bin=X.L;uQ.google_osd_load_pub_page_exp!==void 0&&(q.olpp=uQ.google_osd_load_pub_page_exp);q.deb=[1,D.Y.nM,D.Y.CG,D.Y.dU,D.Y.Gq,0,D.L.L,D.Y.SL,D.Y.Tb,D.Y.eL,D.Y.uY$,-1].join(";");q.tvt=FGD(D,p);E.L&&(q.inapp=1);if(uQ!==null&&uQ!=uQ.top){N.length>0&&(q.iframe_loc=encodeURIComponent(uQ.location.href.substring(0,512)));var m=E.G;q.is=[zO(m),m.getHeight()]}}catch(h){q.error=1}gC.U=q}u=g.Jg(gC.U);w=H8().Y;AW(w.U,"prf")==1?(m=new V0,D=w.Y,e=0,D.Y>-1&&(e=D.U.Y.now()-D.Y),m=it(m,1,ei(D.j+
e),0),D=w.Y,m=it(m,5,Ep(D.Y>-1?D.L+1:D.L),0),m=it(m,2,Qp(w.L.Y.U()),"0"),m=it(m,3,Qp(w.L.Y.L()),"0"),w=it(m,4,Qp(w.L.Y.Y()),"0"),m={},w=(m.pf=g.mv(w.L()),m)):w={};g.RM(u,w);g.RM(k,x,z,u,F())}])};
zrx=function(){var F=okY||uQ;if(!F)return"";var k=[];if(!F.location||!F.location.href)return"";k.push("url="+encodeURIComponent(F.location.href.substring(0,512)));F.document&&F.document.referrer&&k.push("referrer="+encodeURIComponent(F.document.referrer.substring(0,512)));return k.join("&")};
Ml=function(){var F="youtube.player.web_20250402_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250402_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250402_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250402_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),k;if(((k=F)==null?void 0:k.length)==2)return F[1];F="youtube.player.web_20250402_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var z;return((z=F)==null?void 0:z.length)==3?"20"+F[1]+F[2]:null};
x2C=function(){return"av.default_js".includes("ima_html5_sdk")?{gV:"ima",yV:null}:"av.default_js".includes("ima_native_sdk")?{gV:"nima",yV:null}:"av.default_js".includes("admob-native-video-javascript")?{gV:"an",yV:null}:"youtube.player.web_20250402_01_RC00".includes("cast_js_sdk")?{gV:"cast",yV:Ml()}:"youtube.player.web_20250402_01_RC00".includes("youtube.player.web")?{gV:"yw",yV:Ml()}:"youtube.player.web_20250402_01_RC00".includes("outstream_web_client")?{gV:"out",yV:Ml()}:"youtube.player.web_20250402_01_RC00".includes("drx_rewarded_web")?
{gV:"r",yV:Ml()}:"youtube.player.web_20250402_01_RC00".includes("gam_native_web_video")?{gV:"n",yV:Ml()}:"youtube.player.web_20250402_01_RC00".includes("admob_interstitial_video")?{gV:"int",yV:Ml()}:{gV:"j",yV:null}};
KT=function(F,k){var z={sv:"966"};LT!==null&&(z.v=LT);z.cb=icI;z.nas=V_.Y.length;z.msg=F;k!==void 0&&(F=D26(k))&&(z.e=fT[F]);return z};
WK=function(F){return Qn(F,"custom_metric_viewable")};
D26=function(F){var k=WK(F)?"custom_metric_viewable":F.toLowerCase();return aM(Z5,function(z){return z==k})};
$2n=function(){this.Y=void 0;this.L=!1;this.U=0;this.j=-1;this.W="tos"};
CQ5=function(F){try{var k=F.split(",");return k.length>g.Vd(j6D).length?null:v8(k,function(z,x){x=x.toLowerCase().split("=");if(x.length!=2||erM[x[0]]===void 0||!erM[x[0]](x[1]))throw Error("Entry ("+x[0]+", "+x[1]+") is invalid.");z[x[0]]=x[1];return z},{})}catch(z){return null}};
AWx=function(F,k){if(F.Y==void 0)return 0;switch(F.W){case "mtos":return F.L?KV(k.Y,F.Y):KV(k.L,F.Y);case "tos":return F.L?fV(k.Y,F.Y):fV(k.L,F.Y)}return 0};
FR=function(F,k,z,x){wC.call(this,k,x);this.G=F;this.B=z};
k2=function(){};
oC=function(F){wC.call(this,"fully_viewable_audible_half_duration_impression",F)};
zr=function(F){this.Y=F};
x2=function(F,k){wC.call(this,F,k)};
iV=function(F){TA.call(this,"measurable_impression",F)};
Dv=function(){zr.apply(this,arguments)};
$2=function(F,k,z){hi.call(this,F,k,z)};
ju=function(F){F=F===void 0?uQ:F;J9.call(this,new aY(F,2))};
eu=function(F,k,z){hi.call(this,F,k,z)};
CS=function(F){F=F===void 0?uQ:F;J9.call(this,new aY(F,2))};
AC=function(){aY.call(this,uQ,2,"mraid");this.yh=0;this.PR=this.t4=!1;this.G=null;this.L=pMD(this.U);this.j.Y=new oY(0,0,0,0);this.cR=!1};
pS=function(F,k,z){F.y$("addEventListener",k,z)};
qQR=function(F){H8().j=!!F.y$("isViewable");pS(F,"viewableChange",p8C);F.y$("getState")==="loading"?pS(F,"ready",Ekk):X8Y(F)};
X8Y=function(F){typeof F.L.Gf.AFMA_LIDAR==="string"?(F.t4=!0,NH5(F)):(F.L.compatibility=3,F.G="nc",F.YR("w"))};
NH5=function(F){F.PR=!1;var k=AW(H8().zD,"rmmt")==1,z=!!F.y$("isViewable");(k?!z:1)&&OQ().setTimeout(M2(524,function(){F.PR||(umk(F),Lc(540,Error()),F.G="mt",F.YR("w"))}),500);
w85(F);pS(F,F.L.Gf.AFMA_LIDAR,m29)};
w85=function(F){var k=AW(H8().zD,"sneio")==1,z=F.L.Gf.AFMA_LIDAR_EXP_1!==void 0,x=F.L.Gf.AFMA_LIDAR_EXP_2!==void 0;(k=k&&x)&&(F.L.Gf.AFMA_LIDAR_EXP_2=!0);z&&(F.L.Gf.AFMA_LIDAR_EXP_1=!k)};
umk=function(F){F.y$("removeEventListener",F.L.Gf.AFMA_LIDAR,m29);F.t4=!1};
THM=function(F,k){if(F.y$("getState")==="loading")return new g.BB(-1,-1);k=F.y$(k);if(!k)return new g.BB(-1,-1);F=parseInt(k.width,10);k=parseInt(k.height,10);return isNaN(F)||isNaN(k)?new g.BB(-1,-1):new g.BB(F,k)};
Ekk=function(){try{var F=c8(AC);F.y$("removeEventListener","ready",Ekk);X8Y(F)}catch(k){Lc(541,k)}};
m29=function(F,k){try{var z=c8(AC);z.PR=!0;var x=F?new oY(F.y,F.x+F.width,F.y+F.height,F.x):new oY(0,0,0,0);var D=fc(),e=IY();var C=new Dt(D,e,z);C.Y=x;C.volume=k;z.zC(C)}catch(p){Lc(542,p)}};
p8C=function(F){var k=H8(),z=c8(AC);F&&!k.j&&(k.j=!0,z.cR=!0,z.G&&z.YR("w",!0))};
EX=function(){this.isInitialized=!1;this.Y=this.L=null;var F={};this.G=(F.start=this.fQf,F.firstquartile=this.G4p,F.midpoint=this.R__,F.thirdquartile=this.Ha$,F.complete=this.xJ4,F.error=this.VkK,F.pause=this.AZ,F.resume=this.rk,F.skip=this.A4$,F.viewable_impression=this.AS,F.mute=this.zE,F.unmute=this.zE,F.fullscreen=this.J4t,F.exitfullscreen=this.IQQ,F.fully_viewable_audible_half_duration_impression=this.AS,F.measurable_impression=this.AS,F.abandon=this.AZ,F.engagedview=this.AS,F.impression=this.AS,
F.creativeview=this.AS,F.progress=this.zE,F.custom_metric_viewable=this.AS,F.bufferstart=this.AZ,F.bufferfinish=this.rk,F.audio_measurable=this.AS,F.audio_audible=this.AS,F);F={};this.B=(F.overlay_resize=this.qKK,F.abandon=this.WK,F.close=this.WK,F.collapse=this.WK,F.overlay_unmeasurable_impression=function(k){return vK(k,"overlay_unmeasurable_impression",IY())},F.overlay_viewable_immediate_impression=function(k){return vK(k,"overlay_viewable_immediate_impression",IY())},F.overlay_unviewable_impression=
function(k){return vK(k,"overlay_unviewable_impression",IY())},F.overlay_viewable_end_of_session_impression=function(k){return vK(k,"overlay_viewable_end_of_session_impression",IY())},F);
H8().L=3;lOa(this);this.U=null};
qd=function(F,k,z,x){F=F.yC(null,x,!0,k);F.j=z;dra([F]);return F};
Q6n=function(F,k,z){EVp(k);var x=F.Y;g.XN(k,function(D){var e=g.tW(D.criteria,function(C){var p=CQ5(C);if(p==null)C=null;else if(C=new $2n,p.visible!=null&&(C.Y=p.visible/100),p.audible!=null&&(C.L=p.audible==1),p.time!=null){var E=p.timetype=="mtos"?"mtos":"tos",X=bkn(p.time,"%")?"%":"ms";p=parseInt(p.time,10);X=="%"&&(p/=100);C.setTime(p,X,E)}return C});
t9(e,function(C){return C==null})||wD9(z,new FR(D.id,D.event,e,x))})};
hrY=function(){var F=[],k=H8();F.push(c8(y_));AW(k.zD,"mvp_lv")&&F.push(c8(AC));k=[new ju,new CS];k.push(new am(F));k.push(new Ji(uQ));return k};
s6Y=function(F){if(!F.isInitialized){F.isInitialized=!0;try{var k=fc(),z=H8(),x=Zt();Kc=k;z.U=79463069;F.L!=="o"&&(okY=Uta(uQ));if(Sza()){gC.Y.CG=0;gC.Y.Gq=fc()-k;var D=hrY(),e=c8(HK);e.L=D;yaR(e,function(){Nd()})?gC.done||(W$R(),SU(e.Y.Y,F),Ym()):x.U?Nd():Ym()}else uV=!0}catch(C){throw V_.reset(),C;
}}};
m6=function(F){gC.L.cancel();wY=F;gC.done=!0};
Tr=function(F){if(F.L)return F.L;var k=c8(HK).Y;if(k)switch(k.getName()){case "nis":F.L="n";break;case "gsv":F.L="m"}F.L||(F.L="h");return F.L};
lV=function(F,k,z){if(F.Y==null)return k.bN|=4,!1;F=rWn(F.Y,z,k);k.bN|=F;return F==0};
Nd=function(){var F=[new Ji(uQ)],k=c8(HK);k.L=F;yaR(k,function(){m6("i")})?gC.done||(W$R(),Ym()):m6("i")};
BHx=function(F,k){if(!F.mY){var z=vK(F,"start",IY());z=F.fA.Y(z).Y;var x={id:"lidarv"};x.r=k;x.sv="966";LT!==null&&(x.v=LT);Kw(z,function(D,e){return x[D]=D=="mtos"||D=="tos"?e:encodeURIComponent(e)});
k=zrx();Kw(k,function(D,e){return x[D]=encodeURIComponent(e)});
k="//web.archive.org/web/20250411103644/https://pagead2.googlesyndication.com/pagead/gen_204?"+gQ(RY(new y1,x));adM(k);F.mY=!0}};
Q9=function(F,k,z){nT(gC,[F],!IY());Q4I(F,z);z!=4&&lEp(F.t4,z,F.RP);return vK(F,k,IY())};
lOa=function(F){kyH(function(){var k=Gyk();F.L!=null&&(k.sdk=F.L);var z=c8(HK);z.Y!=null&&(k.avms=z.Y.getName());return k})};
U29=function(F,k,z,x){var D=HfD(V_,z);D!==null&&D.EF!==k&&(F.K3(D),D=null);D||(k=F.yC(z,fc(),!1,k),V_.L.length==0&&(H8().U=79463069),Jan([k]),D=k,D.j=Tr(F),x&&(D.u$=x));return D};
t35=function(F,k){var z=F[k];z!==void 0&&z>0&&(F[k]=Math.floor(z*1E3))};
Gyk=function(){var F=Zt(),k={},z={},x={};return Object.assign({},(k.sv="966",k),LT!==null&&(z.v=LT,z),(x["if"]=F.U?"1":"0",x.nas=String(V_.Y.length),x))};
hC=function(F){wC.call(this,"audio_audible",F)};
sX=function(F){TA.call(this,"audio_measurable",F)};
rY=function(){zr.apply(this,arguments)};
BN=function(){};
ZcI=function(F){this.Y=F};
rWn=function(F,k,z){F=F.L();if(typeof F==="function"){var x={};var D={};x=Object.assign({},LT!==null&&(x.v=LT,x),(D.sv="966",D.cb=icI,D.e=vkC(k),D));D=vK(z,k,IY());g.RM(x,D);z.M2[k]=D;x=z.q9()==2?H7R(x).join("&"):z.fA.Y(x).Y;try{return F(z.EF,x,k),0}catch(e){return 2}}else return 1};
vkC=function(F){var k=WK(F)?"custom_metric_viewable":F;F=aM(Z5,function(z){return z==k});
return fT[F]};
Gr=function(){EX.call(this);this.S=null;this.W=!1;this.j="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
cWR=function(F,k,z){z=z.opt_configurable_tracking_events;F.Y!=null&&Array.isArray(z)&&Q6n(F,z,k)};
PQI=function(F,k,z){var x=Og(V_,k);x||(x=z.opt_nativeTime||-1,x=qd(F,k,Tr(F),x),z.opt_osdId&&(x.u$=z.opt_osdId));return x};
Ocp=function(F,k,z){var x=Og(V_,k);x||(x=qd(F,k,"n",z.opt_nativeTime||-1));return x};
V3R=function(F,k){var z=Og(V_,k);z||(z=qd(F,k,"h",-1));return z};
IOC=function(F){H8();switch(Tr(F)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};
SQa=function(F,k,z,x){z=z===void 0?{}:z;var D={};g.RM(D,{opt_adElement:void 0,opt_fullscreen:void 0},z);var e=F.pH(k,z);z=e?e.fA:F.wW();if(D.opt_bounds)return z.Y(KT("ol",x));if(x!==void 0)if(D26(x)!==void 0)if(uV)F=KT("ue",x);else if(s6Y(F),wY=="i")F=KT("i",x),F["if"]=0;else if(k=F.pH(k,D)){b:{wY=="i"&&(k.Vl=!0);e=D.opt_fullscreen;e!==void 0&&D5(k,!!e);var C;if(e=!Zt().L)(e=Bl(g.ZH(),"CrKey")&&!(Bl(g.ZH(),"CrKey")&&Bl(g.ZH(),"SmartSpeaker"))||Bl(g.ZH(),"PlayStation")||Bl(g.ZH(),"Roku")||hwC()||Bl(g.ZH(),
"Xbox"))||(e=g.ZH(),e=Bl(e,"AppleTV")||Bl(e,"Apple TV")||Bl(e,"CFNetwork")||Bl(e,"tvOS")),e||(e=g.ZH(),e=Bl(e,"sdk_google_atv_x86")||Bl(e,"Android TV")),e=!e;e&&(OQ(),e=Ty(vS)===0);if(C=e){switch(k.q9()){case 1:BHx(k,"pv");break;case 2:F.Ye(k)}m6("pv")}e=x.toLowerCase();if(C=!C)C=AW(H8().zD,"ssmol")&&e==="loaded"?!1:g.fC(Hck,e);if(C&&k.sT==0){wY!="i"&&(gC.done=!1);C=D!==void 0?D.opt_nativeTime:void 0;kQ=C=typeof C==="number"?C:fc();k.uH=!0;var p=IY();k.sT=1;k.GY={};k.GY.start=!1;k.GY.firstquartile=
!1;k.GY.midpoint=!1;k.GY.thirdquartile=!1;k.GY.complete=!1;k.GY.resume=!1;k.GY.pause=!1;k.GY.skip=!1;k.GY.mute=!1;k.GY.unmute=!1;k.GY.viewable_impression=!1;k.GY.measurable_impression=!1;k.GY.fully_viewable_audible_half_duration_impression=!1;k.GY.fullscreen=!1;k.GY.exitfullscreen=!1;k.Op=0;p||(k.Rz().B=C);nT(gC,[k],!p)}(C=k.xQ[e])&&XJ(k.Kp,C);AW(H8().zD,"fmd")||g.fC(aOM,e)&&k.HT&&k.HT.L(k,null);switch(k.q9()){case 1:var E=WK(e)?F.G.custom_metric_viewable:F.G[e];break;case 2:E=F.B[e]}if(E&&(x=E.call(F,
k,D,x),AW(H8().zD,"fmd")&&g.fC(aOM,e)&&k.HT&&k.HT.L(k,null),x!==void 0)){D=KT(void 0,e);g.RM(D,x);x=D;break b}x=void 0}k.sT==3&&F.K3(k);F=x}else F=KT("nf",x);else F=void 0;else uV?F=KT("ue"):e?(F=KT(),g.RM(F,s4k(e,!0,!1,!1))):F=KT("nf");return typeof F==="string"?z.Y():z.Y(F)};
bcn=function(F,k){k&&(F.j=k)};
d2x=function(F){var k={};return k.viewability=F.Y,k.googleViewability=F.L,k};
JW9=function(F,k,z){z=z===void 0?{}:z;F=SQa(c8(Gr),k,z,F);return d2x(F)};
UX=function(F){var k=g.v6.apply(1,arguments).filter(function(x){return x}).join("&");
if(!k)return F;var z=F.match(/[?&]adurl=/);return z?F.slice(0,z.index+1)+k+"&"+F.slice(z.index+1):F+(F.indexOf("?")===-1?"?":"&")+k};
Rrn=function(F){var k=F.url;F=F.yrf;this.Y=k;this.G=F;F=/[?&]dsh=1(&|$)/.test(k);this.W=!F&&/[?&]ae=1(&|$)/.test(k);this.S=!F&&/[?&]ae=2(&|$)/.test(k);if((this.L=/[?&]adurl=([^&]*)/.exec(k))&&this.L[1]){try{var z=decodeURIComponent(this.L[1])}catch(x){z=null}this.U=z}this.j=(new Date).getTime()-yWa};
gka=function(F){F=F.G;if(!F)return"";var k="";F.platform&&(k+="&uap="+encodeURIComponent(F.platform));F.platformVersion&&(k+="&uapv="+encodeURIComponent(F.platformVersion));F.uaFullVersion&&(k+="&uafv="+encodeURIComponent(F.uaFullVersion));F.architecture&&(k+="&uaa="+encodeURIComponent(F.architecture));F.model&&(k+="&uam="+encodeURIComponent(F.model));F.bitness&&(k+="&uab="+encodeURIComponent(F.bitness));F.fullVersionList&&(k+="&uafvl="+encodeURIComponent(F.fullVersionList.map(function(z){return encodeURIComponent(z.brand)+
";"+encodeURIComponent(z.version)}).join("|")));
typeof F.wow64!=="undefined"&&(k+="&uaw="+Number(F.wow64));return k.substring(1)};
M3D=function(F,k,z,x,D){var e=window;var C=C===void 0?!1:C;var p;z?p=(C===void 0?0:C)?"//web.archive.org/web/20250411103644/https://ep1.adtrafficquality.google/bg/"+jI(z)+".js":"//web.archive.org/web/20250411103644/https://pagead2.googlesyndication.com/bg/"+jI(z)+".js":p="";C=C===void 0?!1:C;z=e.document;var E={};k&&(E._scs_=k);E._bgu_=p;E._bgp_=x;E._li_="v_h.3.0.0.0";D&&(E._upb_=D);(k=e.GoogleTyFxhY)&&typeof k.push=="function"||(k=e.GoogleTyFxhY=[]);k.push(E);k=WB(z).createElement("SCRIPT");k.type="text/javascript";k.async=!0;F=(C===void 0?0:C)?kSR(YQR,jI(F)+".js"):kSR(nkI,jI(F)+
".js");g.F7(k,F);(e=(e.GoogleTyFxhYEET||{})[k.src])?e():z.getElementsByTagName("head")[0].appendChild(k)};
LGM=function(){try{var F,k;return!!((F=window)==null?0:(k=F.top)==null?0:k.location.href)&&!1}catch(z){return!0}};
Zv=function(){var F=fOY();F=F===void 0?"bevasrsg":F;return new Promise(function(k){var z=window===window.top?window:LGM()?window:window.top,x=z[F],D;((D=x)==null?0:D.bevasrs)?k(new tC(x.bevasrs)):(x||(x={},x=(x.nqfbel=[],x),z[F]=x),x.nqfbel.push(function(e){k(new tC(e))}))})};
KGk=function(F){var k={c:F.vl,e:F.ZU,mc:F.lR,me:F.bR};F.Fb&&(k.co={c:F.Fb.Ct,a:F.Fb.hL,s:F.Fb.Ea});return k};
vN=function(F){g.S.call(this);this.wpc=F};
tC=function(F){g.S.call(this);var k=this;this.d9=F;this.U="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.Y=void 0;this.Ua=this.d9.p;this.j=this.Cx.bind(this);this.addOnDisposeCallback(function(){return void WGn(k)})};
F8H=function(F){var k;return g.O(function(z){if(z.Y==1){if(!F.d9.wpc)throw new i7(30,"NWA");return F.L?z.return(F.L):g.c(z,F.d9.wpc(),2)}k=z.L;F.L=new vN(k);return z.return(F.L)})};
WGn=function(F){F.Y!==void 0&&(F.U.forEach(function(k){var z;(z=F.Y)==null||z.removeEventListener(k,F.j)}),F.Y=void 0)};
zi5=function(F){if(g.hD(g.eI(F)))return!1;if(F.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var k=new g.sF(F)}catch(z){return g.M$(kO9,function(x){return F.search(x)>0})!=null}return k.S.match(oQY)?!0:g.M$(kO9,function(z){return F.match(z)!=null})!=null};
g.cN=function(F,k){return F.replace(xOn,function(z,x){try{var D=g.b3(k,x);if(D==null||D.toString()==null)return z;D=D.toString();if(D==""||!g.hD(g.eI(D)))return encodeURIComponent(D).replace(/%2C/g,",")}catch(e){}return z})};
PN=function(F,k){return Object.is(F,k)};
V9=function(F){var k=OX;OX=F;return k};
iVY=function(F){if(F.Z_!==void 0){var k=Su;Su=!0;try{for(var z=g.l(F.Z_),x=z.next();!x.done;x=z.next()){var D=x.value;D.hg||(F=void 0,D.hg=!0,iVY(D),(F=D.qY)==null||F.call(D,D))}}finally{Su=k}}};
DO9=function(){var F;return((F=OX)==null?void 0:F.J7)!==!1};
$O6=function(F){F&&(F.PP=0);return V9(F)};
jYM=function(F,k){V9(k);if(F&&F.x9!==void 0&&F.XG!==void 0&&F.aM!==void 0){if(bV(F))for(k=F.PP;k<F.x9.length;k++)dY(F.x9[k],F.XG[k]);for(;F.x9.length>F.PP;)F.x9.pop(),F.aM.pop(),F.XG.pop()}};
CUY=function(F,k,z){eik(F);if(F.Z_.length===0&&F.x9!==void 0)for(var x=0;x<F.x9.length;x++)F.XG[x]=CUY(F.x9[x],F,x);F.Pv.push(z);return F.Z_.push(k)-1};
dY=function(F,k){eik(F);if(F.Z_.length===1&&F.x9!==void 0)for(var z=0;z<F.x9.length;z++)dY(F.x9[z],F.XG[z]);z=F.Z_.length-1;F.Z_[k]=F.Z_[z];F.Pv[k]=F.Pv[z];F.Z_.length--;F.Pv.length--;k<F.Z_.length&&(z=F.Pv[k],F=F.Z_[k],A9n(F),F.XG[z]=k)};
bV=function(F){var k,z;return F.RA||((z=F==null?void 0:(k=F.Z_)==null?void 0:k.length)!=null?z:0)>0};
A9n=function(F){F.x9!=null||(F.x9=[]);F.XG!=null||(F.XG=[]);F.aM!=null||(F.aM=[])};
eik=function(F){F.Z_!=null||(F.Z_=[]);F.Pv!=null||(F.Pv=[])};
XSx=function(F){function k(){if(Su)throw Error("");if(OX!==null){var x=OX.PP++;A9n(OX);x<OX.x9.length&&OX.x9[x]!==z&&bV(OX)&&dY(OX.x9[x],OX.XG[x]);OX.x9[x]!==z&&(OX.x9[x]=z,OX.XG[x]=bV(OX)?CUY(z,OX,x):0);OX.aM[x]=z.version}return z.value}
var z=Object.create(pSn);z.value=F;k[EQa]=z;return k};
NQn=function(F,k){if(!DO9())throw Error();F.sy(F.value,k)||(F.value=k,F.version++,q0p++,iVY(F))};
mOk=function(F,k){k=k===void 0?"":k;F=XSx(F);var z=F[EQa];z.Dd=k!=null?k:"[signal]";return[F,function(x){if(urR.Qn){var D,e;(e=(D=performance).mark)==null||e.call(D,"signalSetStart__"+z.Dd)}try{if(x&&x[wSH]){var C=x[wSH];if(!DO9())throw Error();NQn(z,C(z.value))}else NQn(z,x)}finally{if(x=z.Dd,urR.Qn){var p,E;(E=(p=performance).measure)==null||E.call(p,"signalSet__"+x,"signalSetStart__"+x)}}}]};
y9=function(F){g.A1.call(this);var k=this;this.W=this.L=0;this.xq=F!=null?F:{Oi:function(D,e){return setTimeout(D,e)},
o6:function(D){clearTimeout(D)}};
var z,x;this.Y=(x=(z=window.navigator)==null?void 0:z.onLine)!=null?x:!0;this.U=function(){return g.O(function(D){return g.c(D,JC(k),0)})};
window.addEventListener("offline",this.U);window.addEventListener("online",this.U);this.W||this.Ib()};
TQa=function(){var F=g.RC;y9.instance||(y9.instance=new y9(F));return y9.instance};
JC=function(F,k){return F.j?F.j:F.j=new Promise(function(z){var x,D,e,C;return g.O(function(p){switch(p.Y){case 1:return x=window.AbortController?new window.AbortController:void 0,e=(D=x)==null?void 0:D.signal,C=!1,g.lD(p,2,3),x&&(F.L=F.xq.Oi(function(){x.abort()},k||2E4)),g.c(p,fetch("/generate_204",{method:"HEAD",
signal:e}),5);case 5:C=!0;case 3:g.B6(p);F.j=void 0;F.L&&(F.xq.o6(F.L),F.L=0);C!==F.Y&&(F.Y=C,F.Y?F.dispatchEvent("networkstatus-online"):F.dispatchEvent("networkstatus-offline"));z(C);g.UC(p,0);break;case 2:g.rI(p),C=!1,p.Sk(3)}})})};
gY=function(){this.data=[];this.Y=-1};
ltp=function(F){F.Y===-1&&(F.Y=F.data.reduce(function(k,z,x){return k+(z?Math.pow(2,x):0)},0));
return F.Y};
Y2=function(F){F.setAttribute("role","link")};
Md=function(F,k){Array.isArray(k)&&(k=k.join(" "));k===""||k==void 0?(nS||(k={},nS=(k.atomic=!1,k.autocomplete="none",k.dropeffect="none",k.haspopup=!1,k.live="off",k.multiline=!1,k.multiselectable=!1,k.orientation="vertical",k.readonly=!1,k.relevant="additions text",k.required=!1,k.sort="none",k.busy=!1,k.disabled=!1,k.hidden=!1,k.invalid="false",k)),k=nS,"label"in k?F.setAttribute("aria-label",k.label):F.removeAttribute("aria-label")):F.setAttribute("aria-label",k)};
LS=function(F){F=F.getAttribute("aria-label");return F==null||F==void 0?"":String(F)};
g.fS=function(F,k,z){g.S.call(this);this.Y=null;this.j=!1;this.S=F;this.W=z;this.L=k||window;this.U=(0,g.W6)(this.Ko,this)};
QYa=function(F){F=F.L;return F.requestAnimationFrame||F.webkitRequestAnimationFrame||F.mozRequestAnimationFrame||F.oRequestAnimationFrame||F.msRequestAnimationFrame||null};
hiI=function(F){F=F.L;return F.cancelAnimationFrame||F.cancelRequestAnimationFrame||F.webkitCancelRequestAnimationFrame||F.mozCancelRequestAnimationFrame||F.oCancelRequestAnimationFrame||F.msCancelRequestAnimationFrame||null};
g.KS=function(F,k,z){g.S.call(this);this.Y=F;this.UF=k||0;this.L=z;this.U=(0,g.W6)(this.Ba,this)};
g.WN=function(F,k){F.isActive()||F.start(k)};
g.FF=function(F){F.stop();F.Ba()};
g.ke=function(F){F.isActive()&&g.FF(F)};
g.oR=function(F,k,z){g.S.call(this);this.j=z!=null?F.bind(z):F;this.UF=k;this.U=null;this.Y=!1;this.L=0;this.Be=null};
zl=function(F){F.Be=g.aU(function(){F.Be=null;F.Y&&!F.L&&(F.Y=!1,zl(F))},F.UF);
var k=F.U;F.U=null;F.j.apply(null,k)};
g.xe=function(F,k){this.Y=F[g.bD.Symbol.iterator]();this.L=k};
sYH=function(F){return typeof F.className=="string"?F.className:F.getAttribute&&F.getAttribute("class")||""};
$e=function(F){return F.classList?F.classList:sYH(F).match(/\S+/g)||[]};
g.jd=function(F,k){typeof F.className=="string"?F.className=k:F.setAttribute&&F.setAttribute("class",k)};
g.ed=function(F,k){return F.classList?F.classList.contains(k):g.fC($e(F),k)};
g.C6=function(F,k){if(F.classList)F.classList.add(k);else if(!g.ed(F,k)){var z=sYH(F);g.jd(F,z+(z.length>0?" "+k:k))}};
g.AF=function(F,k){if(F.classList)Array.prototype.forEach.call(k,function(D){g.C6(F,D)});
else{var z={};Array.prototype.forEach.call($e(F),function(D){z[D]=!0});
Array.prototype.forEach.call(k,function(D){z[D]=!0});
k="";for(var x in z)k+=k.length>0?" "+x:x;g.jd(F,k)}};
g.p6=function(F,k){F.classList?F.classList.remove(k):g.ed(F,k)&&g.jd(F,Array.prototype.filter.call($e(F),function(z){return z!=k}).join(" "))};
g.EW=function(F,k){F.classList?Array.prototype.forEach.call(k,function(z){g.p6(F,z)}):g.jd(F,Array.prototype.filter.call($e(F),function(z){return!g.fC(k,z)}).join(" "))};
g.XF=function(F,k,z){z?g.C6(F,k):g.p6(F,k)};
r9n=function(F,k){var z=!g.ed(F,k);g.XF(F,k,z)};
g.qg=function(){g.A1.call(this);this.Y=0;this.endTime=this.startTime=null};
BQC=function(F,k){Array.isArray(k)||(k=[k]);k=k.map(function(z){return typeof z==="string"?z:z.property+" "+z.duration+"s "+z.timing+" "+z.delay+"s"});
g.Xr(F,"transition",k.join(","))};
Ng=function(F,k,z,x,D){g.qg.call(this);this.L=F;this.W=k;this.S=z;this.j=x;this.G=Array.isArray(D)?D:[D]};
GOp=function(F,k,z,x){return new Ng(F,k,{opacity:z},{opacity:x},{property:"opacity",duration:k,timing:"ease-in",delay:0})};
tUx=function(F){F=Gt(F);if(F=="")return null;var k=String(F.slice(0,4)).toLowerCase();if(("url("<k?-1:"url("==k?0:1)==0)return!F.endsWith(")")||(F?F.split("(").length-1:0)>1||F&&F.split(")"),null;if(F.indexOf("(")>0){if(/"|'/.test(F))return null;k=/([\-\w]+)\(/g;for(var z;z=k.exec(F);)if(!(z[1].toLowerCase()in UOn))return null}return F};
uT=function(F,k){F=g.bD[F];return F&&F.prototype?(k=Object.getOwnPropertyDescriptor(F.prototype,k))&&k.get||null:null};
ZVn=function(F){var k=g.bD.CSSStyleDeclaration;return k&&k.prototype&&k.prototype[F]||null};
vQ5=function(F,k,z,x){if(F)return F.apply(k,x);if(g.w6&&document.documentMode<10){if(!k[z].call)throw Error("IE Clobbering detected");}else if(typeof k[z]!="function")throw Error("Clobbering detected");return k[z].apply(k,x)};
It9=function(F){if(!F)return"";var k=document.createElement("div").style;c9a(F).forEach(function(z){var x=g.DA&&z in PUn?z:z.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Qn(x,"--")||Qn(x,"var")||(z=vQ5(OVD,F,F.getPropertyValue?"getPropertyValue":"getAttribute",[z])||"",z=tUx(z),z!=null&&vQ5(VUn,k,k.setProperty?"setProperty":"setAttribute",[x,z]))});
return k.cssText||""};
c9a=function(F){g.nk(F)?F=g.z8(F):(F=g.Vd(F),g.FN(F,"cssText"));return F};
g.Tl=function(F){var k,z=k=0,x=!1;F=F.split(HVD);for(var D=0;D<F.length;D++){var e=F[D];g.mC.test(e)?(k++,z++):atk.test(e)?x=!0:S0C.test(e)?z++:bV9.test(e)&&(x=!0)}k=z==0?x?1:0:k/z>.4?-1:1;return(k==0?null:k)==-1?"rtl":"ltr"};
g.sW=function(F){if(F instanceof lT||F instanceof Qu||F instanceof hF)return F;if(typeof F.next=="function")return new lT(function(){return F});
if(typeof F[Symbol.iterator]=="function")return new lT(function(){return F[Symbol.iterator]()});
if(typeof F.Va=="function")return new lT(function(){return F.Va()});
throw Error("Not an iterator or iterable.");};
lT=function(F){this.L=F};
Qu=function(F){this.L=F};
hF=function(F){lT.call(this,function(){return F});
this.U=F};
r6=function(F,k,z,x,D,e,C,p){this.Y=F;this.G=k;this.U=z;this.W=x;this.j=D;this.S=e;this.L=C;this.B=p};
Bj=function(F,k){if(k==0)return F.Y;if(k==1)return F.L;var z=hg(F.Y,F.U,k),x=hg(F.U,F.j,k);F=hg(F.j,F.L,k);z=hg(z,x,k);x=hg(x,F,k);return hg(z,x,k)};
dOR=function(F,k){var z=(k-F.Y)/(F.L-F.Y);if(z<=0)return 0;if(z>=1)return 1;for(var x=0,D=1,e=0,C=0;C<8;C++){e=Bj(F,z);var p=(Bj(F,z+1E-6)-e)/1E-6;if(Math.abs(e-k)<1E-6)return z;if(Math.abs(p)<1E-6)break;else e<k?x=z:D=z,z-=(e-k)/p}for(C=0;Math.abs(e-k)>1E-6&&C<8;C++)e<k?(x=z,z=(z+D)/2):(D=z,z=(z+x)/2),e=Bj(F,z);return z};
Gl=function(F,k){this.start=F<k?F:k;this.end=F<k?k:F};
UW=function(F){return(F=F.exec(g.ZH()))?F[1]:""};
tF=function(F){return g.tD(J9p,F)>=0};
g.Ze=function(F){g.S.call(this);this.S=1;this.U=[];this.j=0;this.Y=[];this.L={};this.G=!!F};
y9k=function(F,k,z){g.lh(function(){F.apply(k,z)})};
g.vj=function(F){this.Y=F};
cj=function(F){this.Y=F};
RiH=function(F){this.data=F};
gQC=function(F){return F===void 0||F instanceof RiH?F:new RiH(F)};
Pj=function(F){this.Y=F};
g.Y0H=function(F){var k=F.creation;F=F.expiration;return!!F&&F<g.op()||!!k&&k>g.op()};
g.OW=function(F){this.Y=F};
nQC=function(){};
Vu=function(){};
IR=function(F){this.Y=F;this.L=null};
Hj=function(F){if(F.Y==null)throw Error("Storage mechanism: Storage unavailable");var k;(MU9?F.isAvailable():(k=F.L)!=null?k:F.isAvailable())||Tt(Error("Storage mechanism: Storage unavailable"))};
aR=function(){var F=null;try{F=g.bD.localStorage||null}catch(k){}IR.call(this,F)};
L8Y=function(){var F=null;try{F=g.bD.sessionStorage||null}catch(k){}IR.call(this,F)};
Sd=function(F,k){this.L=F;this.Y=k+"::"};
g.bT=function(F){var k=new aR;return k.isAvailable()?F?new Sd(k,F):k:null};
d6=function(F,k){this.Y=F;this.L=k};
JF=function(F){this.Y=[];if(F)a:{if(F instanceof JF){var k=F.mD();F=F.OS();if(this.Y.length<=0){for(var z=this.Y,x=0;x<k.length;x++)z.push(new d6(k[x],F[x]));break a}}else k=g.Vd(F),F=g.OV(F);for(z=0;z<k.length;z++)this.ZT(k[z],F[z])}};
yu=function(){JF.apply(this,arguments)};
RR=function(){};
ft6=function(){var F=Error();F.name="SecurityError";throw F;};
K8C=function(){return{get opener(){return null},get closed(){return!0},get location(){ft6()},get document(){ft6()},postMessage:function(){},
close:function(){},
focus:function(){}}};
W8I=function(F){var k,z,x=F.length,D=0;for(k=0;k<x;k++){var e=F.charCodeAt(k);if((e&64512)===55296&&k+1<x){var C=F.charCodeAt(k+1);(C&64512)===56320&&(e=65536+(e-55296<<10)+(C-56320),k++)}D+=e<128?1:e<2048?2:e<65536?3:4}var p=new g6.R4(D);for(k=z=0;z<D;k++)e=F.charCodeAt(k),(e&64512)===55296&&k+1<x&&(C=F.charCodeAt(k+1),(C&64512)===56320&&(e=65536+(e-55296<<10)+(C-56320),k++)),e<128?p[z++]=e:(e<2048?p[z++]=192|e>>>6:(e<65536?p[z++]=224|e>>>12:(p[z++]=240|e>>>18,p[z++]=128|e>>>12&63),p[z++]=128|e>>>
6&63),p[z++]=128|e&63);return p};
Ye=function(F){for(var k=F.length;--k>=0;)F[k]=0};
n6=function(F,k,z,x,D){this.BW=F;this.Xw=k;this.m4=z;this.ZE=x;this.Vzp=D;this.yg=F&&F.length};
Mg=function(F,k){this.Y_=F;this.d_=0;this.q_=k};
L6=function(F,k){F.GU[F.pending++]=k&255;F.GU[F.pending++]=k>>>8&255};
f6=function(F,k,z){F.AG>16-z?(F.xR|=k<<F.AG&65535,L6(F,F.xR),F.xR=k>>16-F.AG,F.AG+=z-16):(F.xR|=k<<F.AG&65535,F.AG+=z)};
K6=function(F,k,z){f6(F,z[k*2],z[k*2+1])};
Fbp=function(F,k){var z=0;do z|=F&1,F>>>=1,z<<=1;while(--k>0);return z>>>1};
kAI=function(F,k,z){var x=Array(16),D=0,e;for(e=1;e<=15;e++)x[e]=D=D+z[e-1]<<1;for(z=0;z<=k;z++)D=F[z*2+1],D!==0&&(F[z*2]=Fbp(x[D]++,D))};
oma=function(F){var k;for(k=0;k<286;k++)F.G1[k*2]=0;for(k=0;k<30;k++)F.FT[k*2]=0;for(k=0;k<19;k++)F.ri[k*2]=0;F.G1[512]=1;F.vT=F.iN=0;F.Px=F.matches=0};
z4C=function(F){F.AG>8?L6(F,F.xR):F.AG>0&&(F.GU[F.pending++]=F.xR);F.xR=0;F.AG=0};
xla=function(F,k,z){z4C(F);L6(F,z);L6(F,~z);g6.Ps(F.GU,F.window,k,z,F.pending);F.pending+=z};
iTD=function(F,k,z,x){var D=k*2,e=z*2;return F[D]<F[e]||F[D]===F[e]&&x[k]<=x[z]};
Wj=function(F,k,z){for(var x=F.fp[z],D=z<<1;D<=F.bB;){D<F.bB&&iTD(k,F.fp[D+1],F.fp[D],F.depth)&&D++;if(iTD(k,x,F.fp[D],F.depth))break;F.fp[z]=F.fp[D];z=D;D<<=1}F.fp[z]=x};
DlH=function(F,k,z){var x=0;if(F.Px!==0){do{var D=F.GU[F.J6+x*2]<<8|F.GU[F.J6+x*2+1];var e=F.GU[F.Y7+x];x++;if(D===0)K6(F,e,k);else{var C=Fk[e];K6(F,C+256+1,k);var p=kc[C];p!==0&&(e-=oA[C],f6(F,e,p));D--;C=D<256?zs[D]:zs[256+(D>>>7)];K6(F,C,z);p=xc[C];p!==0&&(D-=i1[C],f6(F,D,p))}}while(x<F.Px)}K6(F,256,k)};
D3=function(F,k){var z=k.Y_,x=k.q_.BW,D=k.q_.yg,e=k.q_.ZE,C,p=-1;F.bB=0;F.iY=573;for(C=0;C<e;C++)z[C*2]!==0?(F.fp[++F.bB]=p=C,F.depth[C]=0):z[C*2+1]=0;for(;F.bB<2;){var E=F.fp[++F.bB]=p<2?++p:0;z[E*2]=1;F.depth[E]=0;F.vT--;D&&(F.iN-=x[E*2+1])}k.d_=p;for(C=F.bB>>1;C>=1;C--)Wj(F,z,C);E=e;do C=F.fp[1],F.fp[1]=F.fp[F.bB--],Wj(F,z,1),x=F.fp[1],F.fp[--F.iY]=C,F.fp[--F.iY]=x,z[E*2]=z[C*2]+z[x*2],F.depth[E]=(F.depth[C]>=F.depth[x]?F.depth[C]:F.depth[x])+1,z[C*2+1]=z[x*2+1]=E,F.fp[1]=E++,Wj(F,z,1);while(F.bB>=
2);F.fp[--F.iY]=F.fp[1];C=k.Y_;E=k.d_;x=k.q_.BW;D=k.q_.yg;e=k.q_.Xw;var X=k.q_.m4,q=k.q_.Vzp,N,u=0;for(N=0;N<=15;N++)F.Qd[N]=0;C[F.fp[F.iY]*2+1]=0;for(k=F.iY+1;k<573;k++){var w=F.fp[k];N=C[C[w*2+1]*2+1]+1;N>q&&(N=q,u++);C[w*2+1]=N;if(!(w>E)){F.Qd[N]++;var m=0;w>=X&&(m=e[w-X]);var h=C[w*2];F.vT+=h*(N+m);D&&(F.iN+=h*(x[w*2+1]+m))}}if(u!==0){do{for(N=q-1;F.Qd[N]===0;)N--;F.Qd[N]--;F.Qd[N+1]+=2;F.Qd[q]--;u-=2}while(u>0);for(N=q;N!==0;N--)for(w=F.Qd[N];w!==0;)x=F.fp[--k],x>E||(C[x*2+1]!==N&&(F.vT+=(N-
C[x*2+1])*C[x*2],C[x*2+1]=N),w--)}kAI(z,p,F.Qd)};
$lR=function(F,k,z){var x,D=-1,e=k[1],C=0,p=7,E=4;e===0&&(p=138,E=3);k[(z+1)*2+1]=65535;for(x=0;x<=z;x++){var X=e;e=k[(x+1)*2+1];++C<p&&X===e||(C<E?F.ri[X*2]+=C:X!==0?(X!==D&&F.ri[X*2]++,F.ri[32]++):C<=10?F.ri[34]++:F.ri[36]++,C=0,D=X,e===0?(p=138,E=3):X===e?(p=6,E=3):(p=7,E=4))}};
jmx=function(F,k,z){var x,D=-1,e=k[1],C=0,p=7,E=4;e===0&&(p=138,E=3);for(x=0;x<=z;x++){var X=e;e=k[(x+1)*2+1];if(!(++C<p&&X===e)){if(C<E){do K6(F,X,F.ri);while(--C!==0)}else X!==0?(X!==D&&(K6(F,X,F.ri),C--),K6(F,16,F.ri),f6(F,C-3,2)):C<=10?(K6(F,17,F.ri),f6(F,C-3,3)):(K6(F,18,F.ri),f6(F,C-11,7));C=0;D=X;e===0?(p=138,E=3):X===e?(p=6,E=3):(p=7,E=4)}}};
e4C=function(F){var k=4093624447,z;for(z=0;z<=31;z++,k>>>=1)if(k&1&&F.G1[z*2]!==0)return 0;if(F.G1[18]!==0||F.G1[20]!==0||F.G1[26]!==0)return 1;for(z=32;z<256;z++)if(F.G1[z*2]!==0)return 1;return 0};
$c=function(F,k,z){F.GU[F.J6+F.Px*2]=k>>>8&255;F.GU[F.J6+F.Px*2+1]=k&255;F.GU[F.Y7+F.Px]=z&255;F.Px++;k===0?F.G1[z*2]++:(F.matches++,k--,F.G1[(Fk[z]+256+1)*2]++,F.FT[(k<256?zs[k]:zs[256+(k>>>7)])*2]++);return F.Px===F.Eu-1};
eg=function(F,k){F.msg=jg[k];return k};
CX=function(F){for(var k=F.length;--k>=0;)F[k]=0};
AU=function(F){var k=F.state,z=k.pending;z>F.Um&&(z=F.Um);z!==0&&(g6.Ps(F.output,k.GU,k.Y5,z,F.jp),F.jp+=z,k.Y5+=z,F.tV+=z,F.Um-=z,k.pending-=z,k.pending===0&&(k.Y5=0))};
Xk=function(F,k){var z=F.qV>=0?F.qV:-1,x=F.Wj-F.qV,D=0;if(F.level>0){F.Zj.Zx===2&&(F.Zj.Zx=e4C(F));D3(F,F.y8);D3(F,F.D9);$lR(F,F.G1,F.y8.d_);$lR(F,F.FT,F.D9.d_);D3(F,F.ip);for(D=18;D>=3&&F.ri[CRn[D]*2+1]===0;D--);F.vT+=3*(D+1)+5+5+4;var e=F.vT+3+7>>>3;var C=F.iN+3+7>>>3;C<=e&&(e=C)}else e=C=x+5;if(x+4<=e&&z!==-1)f6(F,k?1:0,3),xla(F,z,x);else if(F.strategy===4||C===e)f6(F,2+(k?1:0),3),DlH(F,pX,Er);else{f6(F,4+(k?1:0),3);z=F.y8.d_+1;x=F.D9.d_+1;D+=1;f6(F,z-257,5);f6(F,x-1,5);f6(F,D-4,4);for(e=0;e<D;e++)f6(F,
F.ri[CRn[e]*2+1],3);jmx(F,F.G1,z-1);jmx(F,F.FT,x-1);DlH(F,F.G1,F.FT)}oma(F);k&&z4C(F);F.qV=F.Wj;AU(F.Zj)};
qJ=function(F,k){F.GU[F.pending++]=k};
NJ=function(F,k){F.GU[F.pending++]=k>>>8&255;F.GU[F.pending++]=k&255};
AiI=function(F,k){var z=F.fL,x=F.Wj,D=F.ai,e=F.jy,C=F.Wj>F.cM-262?F.Wj-(F.cM-262):0,p=F.window,E=F.DL,X=F.mG,q=F.Wj+258,N=p[x+D-1],u=p[x+D];F.ai>=F.Y6&&(z>>=2);e>F.DD&&(e=F.DD);do{var w=k;if(p[w+D]===u&&p[w+D-1]===N&&p[w]===p[x]&&p[++w]===p[x+1]){x+=2;for(w++;p[++x]===p[++w]&&p[++x]===p[++w]&&p[++x]===p[++w]&&p[++x]===p[++w]&&p[++x]===p[++w]&&p[++x]===p[++w]&&p[++x]===p[++w]&&p[++x]===p[++w]&&x<q;);w=258-(q-x);x=q-258;if(w>D){F.KV=k;D=w;if(w>=e)break;N=p[x+D-1];u=p[x+D]}}}while((k=X[k&E])>C&&--z!==
0);return D<=F.DD?D:F.DD};
m3=function(F){var k=F.cM,z;do{var x=F.Dr-F.DD-F.Wj;if(F.Wj>=k+(k-262)){g6.Ps(F.window,F.window,k,k,0);F.KV-=k;F.Wj-=k;F.qV-=k;var D=z=F.Y4;do{var e=F.head[--D];F.head[D]=e>=k?e-k:0}while(--z);D=z=k;do e=F.mG[--D],F.mG[D]=e>=k?e-k:0;while(--z);x+=k}if(F.Zj.b0===0)break;D=F.Zj;z=F.window;e=F.Wj+F.DD;var C=D.b0;C>x&&(C=x);C===0?z=0:(D.b0-=C,g6.Ps(z,D.input,D.ol,C,e),D.state.wrap===1?D.ob=u1(D.ob,z,C,e):D.state.wrap===2&&(D.ob=wU(D.ob,z,C,e)),D.ol+=C,D.c6+=C,z=C);F.DD+=z;if(F.DD+F.ZT>=3)for(x=F.Wj-F.ZT,
F.rl=F.window[x],F.rl=(F.rl<<F.lB^F.window[x+1])&F.o9;F.ZT&&!(F.rl=(F.rl<<F.lB^F.window[x+3-1])&F.o9,F.mG[x&F.DL]=F.head[F.rl],F.head[F.rl]=x,x++,F.ZT--,F.DD+F.ZT<3););}while(F.DD<262&&F.Zj.b0!==0)};
Ts=function(F,k){for(var z;;){if(F.DD<262){m3(F);if(F.DD<262&&k===0)return 1;if(F.DD===0)break}z=0;F.DD>=3&&(F.rl=(F.rl<<F.lB^F.window[F.Wj+3-1])&F.o9,z=F.mG[F.Wj&F.DL]=F.head[F.rl],F.head[F.rl]=F.Wj);z!==0&&F.Wj-z<=F.cM-262&&(F.TM=AiI(F,z));if(F.TM>=3)if(z=$c(F,F.Wj-F.KV,F.TM-3),F.DD-=F.TM,F.TM<=F.XP&&F.DD>=3){F.TM--;do F.Wj++,F.rl=(F.rl<<F.lB^F.window[F.Wj+3-1])&F.o9,F.mG[F.Wj&F.DL]=F.head[F.rl],F.head[F.rl]=F.Wj;while(--F.TM!==0);F.Wj++}else F.Wj+=F.TM,F.TM=0,F.rl=F.window[F.Wj],F.rl=(F.rl<<F.lB^
F.window[F.Wj+1])&F.o9;else z=$c(F,0,F.window[F.Wj]),F.DD--,F.Wj++;if(z&&(Xk(F,!1),F.Zj.Um===0))return 1}F.ZT=F.Wj<2?F.Wj:2;return k===4?(Xk(F,!0),F.Zj.Um===0?3:4):F.Px&&(Xk(F,!1),F.Zj.Um===0)?1:2};
l1=function(F,k){for(var z,x;;){if(F.DD<262){m3(F);if(F.DD<262&&k===0)return 1;if(F.DD===0)break}z=0;F.DD>=3&&(F.rl=(F.rl<<F.lB^F.window[F.Wj+3-1])&F.o9,z=F.mG[F.Wj&F.DL]=F.head[F.rl],F.head[F.rl]=F.Wj);F.ai=F.TM;F.IZ=F.KV;F.TM=2;z!==0&&F.ai<F.XP&&F.Wj-z<=F.cM-262&&(F.TM=AiI(F,z),F.TM<=5&&(F.strategy===1||F.TM===3&&F.Wj-F.KV>4096)&&(F.TM=2));if(F.ai>=3&&F.TM<=F.ai){x=F.Wj+F.DD-3;z=$c(F,F.Wj-1-F.IZ,F.ai-3);F.DD-=F.ai-1;F.ai-=2;do++F.Wj<=x&&(F.rl=(F.rl<<F.lB^F.window[F.Wj+3-1])&F.o9,F.mG[F.Wj&F.DL]=
F.head[F.rl],F.head[F.rl]=F.Wj);while(--F.ai!==0);F.mj=0;F.TM=2;F.Wj++;if(z&&(Xk(F,!1),F.Zj.Um===0))return 1}else if(F.mj){if((z=$c(F,0,F.window[F.Wj-1]))&&Xk(F,!1),F.Wj++,F.DD--,F.Zj.Um===0)return 1}else F.mj=1,F.Wj++,F.DD--}F.mj&&($c(F,0,F.window[F.Wj-1]),F.mj=0);F.ZT=F.Wj<2?F.Wj:2;return k===4?(Xk(F,!0),F.Zj.Um===0?3:4):F.Px&&(Xk(F,!1),F.Zj.Um===0)?1:2};
pKI=function(F,k){for(var z,x,D,e=F.window;;){if(F.DD<=258){m3(F);if(F.DD<=258&&k===0)return 1;if(F.DD===0)break}F.TM=0;if(F.DD>=3&&F.Wj>0&&(x=F.Wj-1,z=e[x],z===e[++x]&&z===e[++x]&&z===e[++x])){for(D=F.Wj+258;z===e[++x]&&z===e[++x]&&z===e[++x]&&z===e[++x]&&z===e[++x]&&z===e[++x]&&z===e[++x]&&z===e[++x]&&x<D;);F.TM=258-(D-x);F.TM>F.DD&&(F.TM=F.DD)}F.TM>=3?(z=$c(F,1,F.TM-3),F.DD-=F.TM,F.Wj+=F.TM,F.TM=0):(z=$c(F,0,F.window[F.Wj]),F.DD--,F.Wj++);if(z&&(Xk(F,!1),F.Zj.Um===0))return 1}F.ZT=0;return k===
4?(Xk(F,!0),F.Zj.Um===0?3:4):F.Px&&(Xk(F,!1),F.Zj.Um===0)?1:2};
EmD=function(F,k){for(var z;;){if(F.DD===0&&(m3(F),F.DD===0)){if(k===0)return 1;break}F.TM=0;z=$c(F,0,F.window[F.Wj]);F.DD--;F.Wj++;if(z&&(Xk(F,!1),F.Zj.Um===0))return 1}F.ZT=0;return k===4?(Xk(F,!0),F.Zj.Um===0?3:4):F.Px&&(Xk(F,!1),F.Zj.Um===0)?1:2};
QM=function(F,k,z,x,D){this.jUk=F;this.xDR=k;this.CLJ=z;this.nuQ=x;this.func=D};
XKY=function(){this.Zj=null;this.status=0;this.GU=null;this.wrap=this.pending=this.Y5=this.Et=0;this.e9=null;this.cF=0;this.method=8;this.uY=-1;this.DL=this.JV=this.cM=0;this.window=null;this.Dr=0;this.head=this.mG=null;this.jy=this.Y6=this.strategy=this.level=this.XP=this.fL=this.ai=this.DD=this.KV=this.Wj=this.mj=this.IZ=this.TM=this.qV=this.lB=this.o9=this.zq=this.Y4=this.rl=0;this.G1=new g6.Dv(1146);this.FT=new g6.Dv(122);this.ri=new g6.Dv(78);CX(this.G1);CX(this.FT);CX(this.ri);this.ip=this.D9=
this.y8=null;this.Qd=new g6.Dv(16);this.fp=new g6.Dv(573);CX(this.fp);this.iY=this.bB=0;this.depth=new g6.Dv(573);CX(this.depth);this.AG=this.xR=this.ZT=this.matches=this.iN=this.vT=this.J6=this.Px=this.Eu=this.Y7=0};
qgC=function(F,k){if(!F||!F.state||k>5||k<0)return F?eg(F,-2):-2;var z=F.state;if(!F.output||!F.input&&F.b0!==0||z.status===666&&k!==4)return eg(F,F.Um===0?-5:-2);z.Zj=F;var x=z.uY;z.uY=k;if(z.status===42)if(z.wrap===2)F.ob=0,qJ(z,31),qJ(z,139),qJ(z,8),z.e9?(qJ(z,(z.e9.text?1:0)+(z.e9.bF?2:0)+(z.e9.extra?4:0)+(z.e9.name?8:0)+(z.e9.comment?16:0)),qJ(z,z.e9.time&255),qJ(z,z.e9.time>>8&255),qJ(z,z.e9.time>>16&255),qJ(z,z.e9.time>>24&255),qJ(z,z.level===9?2:z.strategy>=2||z.level<2?4:0),qJ(z,z.e9.os&
255),z.e9.extra&&z.e9.extra.length&&(qJ(z,z.e9.extra.length&255),qJ(z,z.e9.extra.length>>8&255)),z.e9.bF&&(F.ob=wU(F.ob,z.GU,z.pending,0)),z.cF=0,z.status=69):(qJ(z,0),qJ(z,0),qJ(z,0),qJ(z,0),qJ(z,0),qJ(z,z.level===9?2:z.strategy>=2||z.level<2?4:0),qJ(z,3),z.status=113);else{var D=8+(z.JV-8<<4)<<8;D|=(z.strategy>=2||z.level<2?0:z.level<6?1:z.level===6?2:3)<<6;z.Wj!==0&&(D|=32);z.status=113;NJ(z,D+(31-D%31));z.Wj!==0&&(NJ(z,F.ob>>>16),NJ(z,F.ob&65535));F.ob=1}if(z.status===69)if(z.e9.extra){for(D=
z.pending;z.cF<(z.e9.extra.length&65535)&&(z.pending!==z.Et||(z.e9.bF&&z.pending>D&&(F.ob=wU(F.ob,z.GU,z.pending-D,D)),AU(F),D=z.pending,z.pending!==z.Et));)qJ(z,z.e9.extra[z.cF]&255),z.cF++;z.e9.bF&&z.pending>D&&(F.ob=wU(F.ob,z.GU,z.pending-D,D));z.cF===z.e9.extra.length&&(z.cF=0,z.status=73)}else z.status=73;if(z.status===73)if(z.e9.name){D=z.pending;do{if(z.pending===z.Et&&(z.e9.bF&&z.pending>D&&(F.ob=wU(F.ob,z.GU,z.pending-D,D)),AU(F),D=z.pending,z.pending===z.Et)){var e=1;break}e=z.cF<z.e9.name.length?
z.e9.name.charCodeAt(z.cF++)&255:0;qJ(z,e)}while(e!==0);z.e9.bF&&z.pending>D&&(F.ob=wU(F.ob,z.GU,z.pending-D,D));e===0&&(z.cF=0,z.status=91)}else z.status=91;if(z.status===91)if(z.e9.comment){D=z.pending;do{if(z.pending===z.Et&&(z.e9.bF&&z.pending>D&&(F.ob=wU(F.ob,z.GU,z.pending-D,D)),AU(F),D=z.pending,z.pending===z.Et)){e=1;break}e=z.cF<z.e9.comment.length?z.e9.comment.charCodeAt(z.cF++)&255:0;qJ(z,e)}while(e!==0);z.e9.bF&&z.pending>D&&(F.ob=wU(F.ob,z.GU,z.pending-D,D));e===0&&(z.status=103)}else z.status=
103;z.status===103&&(z.e9.bF?(z.pending+2>z.Et&&AU(F),z.pending+2<=z.Et&&(qJ(z,F.ob&255),qJ(z,F.ob>>8&255),F.ob=0,z.status=113)):z.status=113);if(z.pending!==0){if(AU(F),F.Um===0)return z.uY=-1,0}else if(F.b0===0&&(k<<1)-(k>4?9:0)<=(x<<1)-(x>4?9:0)&&k!==4)return eg(F,-5);if(z.status===666&&F.b0!==0)return eg(F,-5);if(F.b0!==0||z.DD!==0||k!==0&&z.status!==666){x=z.strategy===2?EmD(z,k):z.strategy===3?pKI(z,k):hU[z.level].func(z,k);if(x===3||x===4)z.status=666;if(x===1||x===3)return F.Um===0&&(z.uY=
-1),0;if(x===2&&(k===1?(f6(z,2,3),K6(z,256,pX),z.AG===16?(L6(z,z.xR),z.xR=0,z.AG=0):z.AG>=8&&(z.GU[z.pending++]=z.xR&255,z.xR>>=8,z.AG-=8)):k!==5&&(f6(z,0,3),xla(z,0,0),k===3&&(CX(z.head),z.DD===0&&(z.Wj=0,z.qV=0,z.ZT=0))),AU(F),F.Um===0))return z.uY=-1,0}if(k!==4)return 0;if(z.wrap<=0)return 1;z.wrap===2?(qJ(z,F.ob&255),qJ(z,F.ob>>8&255),qJ(z,F.ob>>16&255),qJ(z,F.ob>>24&255),qJ(z,F.c6&255),qJ(z,F.c6>>8&255),qJ(z,F.c6>>16&255),qJ(z,F.c6>>24&255)):(NJ(z,F.ob>>>16),NJ(z,F.ob&65535));AU(F);z.wrap>0&&
(z.wrap=-z.wrap);return z.pending!==0?0:1};
sr=function(F){if(!(this instanceof sr))return new sr(F);F=this.options=g6.assign({level:-1,method:8,chunkSize:16384,Og:15,qHQ:8,strategy:0,Gc:""},F||{});F.raw&&F.Og>0?F.Og=-F.Og:F.h_$&&F.Og>0&&F.Og<16&&(F.Og+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Zj=new NCk;this.Zj.Um=0;var k=this.Zj;var z=F.level,x=F.method,D=F.Og,e=F.qHQ,C=F.strategy;if(k){var p=1;z===-1&&(z=6);D<0?(p=0,D=-D):D>15&&(p=2,D-=16);if(e<1||e>9||x!==8||D<8||D>15||z<0||z>9||C<0||C>4)k=eg(k,-2);else{D===8&&(D=9);
var E=new XKY;k.state=E;E.Zj=k;E.wrap=p;E.e9=null;E.JV=D;E.cM=1<<E.JV;E.DL=E.cM-1;E.zq=e+7;E.Y4=1<<E.zq;E.o9=E.Y4-1;E.lB=~~((E.zq+3-1)/3);E.window=new g6.R4(E.cM*2);E.head=new g6.Dv(E.Y4);E.mG=new g6.Dv(E.cM);E.Eu=1<<e+6;E.Et=E.Eu*4;E.GU=new g6.R4(E.Et);E.J6=1*E.Eu;E.Y7=3*E.Eu;E.level=z;E.strategy=C;E.method=x;if(k&&k.state){k.c6=k.tV=0;k.Zx=2;z=k.state;z.pending=0;z.Y5=0;z.wrap<0&&(z.wrap=-z.wrap);z.status=z.wrap?42:113;k.ob=z.wrap===2?0:1;z.uY=0;if(!uJI){x=Array(16);for(e=C=0;e<28;e++)for(oA[e]=
C,D=0;D<1<<kc[e];D++)Fk[C++]=e;Fk[C-1]=e;for(e=C=0;e<16;e++)for(i1[e]=C,D=0;D<1<<xc[e];D++)zs[C++]=e;for(C>>=7;e<30;e++)for(i1[e]=C<<7,D=0;D<1<<xc[e]-7;D++)zs[256+C++]=e;for(D=0;D<=15;D++)x[D]=0;for(D=0;D<=143;)pX[D*2+1]=8,D++,x[8]++;for(;D<=255;)pX[D*2+1]=9,D++,x[9]++;for(;D<=279;)pX[D*2+1]=7,D++,x[7]++;for(;D<=287;)pX[D*2+1]=8,D++,x[8]++;kAI(pX,287,x);for(D=0;D<30;D++)Er[D*2+1]=5,Er[D*2]=Fbp(D,5);wKR=new n6(pX,kc,257,286,15);ml9=new n6(Er,xc,0,30,15);TCI=new n6([],l5H,0,19,7);uJI=!0}z.y8=new Mg(z.G1,
wKR);z.D9=new Mg(z.FT,ml9);z.ip=new Mg(z.ri,TCI);z.xR=0;z.AG=0;oma(z);z=0}else z=eg(k,-2);z===0&&(k=k.state,k.Dr=2*k.cM,CX(k.head),k.XP=hU[k.level].xDR,k.Y6=hU[k.level].jUk,k.jy=hU[k.level].CLJ,k.fL=hU[k.level].nuQ,k.Wj=0,k.qV=0,k.DD=0,k.ZT=0,k.TM=k.ai=2,k.mj=0,k.rl=0);k=z}}else k=-2;if(k!==0)throw Error(jg[k]);F.header&&(k=this.Zj)&&k.state&&k.state.wrap===2&&(k.state.e9=F.header);if(F.RK){var X;typeof F.RK==="string"?X=W8I(F.RK):Qma.call(F.RK)==="[object ArrayBuffer]"?X=new Uint8Array(F.RK):X=F.RK;
F=this.Zj;e=X;C=e.length;if(F&&F.state)if(X=F.state,k=X.wrap,k===2||k===1&&X.status!==42||X.DD)k=-2;else{k===1&&(F.ob=u1(F.ob,e,C,0));X.wrap=0;C>=X.cM&&(k===0&&(CX(X.head),X.Wj=0,X.qV=0,X.ZT=0),z=new g6.R4(X.cM),g6.Ps(z,e,C-X.cM,X.cM,0),e=z,C=X.cM);z=F.b0;x=F.ol;D=F.input;F.b0=C;F.ol=0;F.input=e;for(m3(X);X.DD>=3;){e=X.Wj;C=X.DD-2;do X.rl=(X.rl<<X.lB^X.window[e+3-1])&X.o9,X.mG[e&X.DL]=X.head[X.rl],X.head[X.rl]=e,e++;while(--C);X.Wj=e;X.DD=2;m3(X)}X.Wj+=X.DD;X.qV=X.Wj;X.ZT=X.DD;X.DD=0;X.TM=X.ai=2;
X.mj=0;F.ol=x;F.input=D;F.b0=z;X.wrap=k;k=0}else k=-2;if(k!==0)throw Error(jg[k]);this.pZK=!0}};
h4R=function(F,k){k=k||{};k.h_$=!0;k=new sr(k);k.push(F,!0);if(k.err)throw k.msg||jg[k.err];return k.result};
smD=function(){var F=g.v6.apply(0,arguments);return F.length===0?function(k){return k}:F.length===1?F[0]:F.reduce(function(k,z){return function(){return k(z.apply(null,g.r(g.v6.apply(0,arguments))))}})};
rip=function(){var F=g.v6.apply(0,arguments);return function(k){return function(z,x){function D(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
z=k(z,x);var e={getState:z.getState,dispatch:function(C){return D.apply(null,[C].concat(g.r(g.v6.apply(1,arguments))))}};
x=F.map(function(C){return C(e)});
D=smD.apply(null,g.r(x))(z.dispatch);return Object.assign({},z,{dispatch:D})}}};
rU=function(){return Math.random().toString(36).substring(7).split("").join(".")};
BCM=function(F){Object.keys(F).forEach(function(k){var z=F[k];if(typeof z(void 0,{type:BI})==="undefined")throw Error('The slice reducer for key "'+k+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(typeof z(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+rU()})==="undefined")throw Error('The slice reducer for key "'+
k+"\" returned undefined when probed with a random type. Don't try to handle '"+(BI+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})};
GAn=function(F,k,z){function x(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return p}
function D(w){if(typeof w!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof w+"'");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var m=!0;X===E&&(X=E.slice());X.push(w);return function(){if(m){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
m=!1;X===E&&(X=E.slice());X.splice(X.indexOf(w),1);E=null}}}
function e(w){if(typeof w!=="object"||w===null)var m=!1;else{for(m=w;Object.getPrototypeOf(m)!==null;)m=Object.getPrototypeOf(m);m=Object.getPrototypeOf(w)===m}if(!m)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof w+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
if(typeof w.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,p=C(p,w)}finally{q=!1}m=E=X;for(var h=0;h<m.length;h++)(0,m[h])();return w}
if(typeof k==="function"&&typeof z==="function"||typeof z==="function"&&typeof arguments[3]==="function")throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");typeof k==="function"&&typeof z==="undefined"&&(z=k,k=void 0);if(typeof z!=="undefined"){if(typeof z!=="function")throw Error("Expected the enhancer to be a function. Instead, received: '"+
typeof z+"'");return z(GAn)(F,k)}if(typeof F!=="function")throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof F+"'");var C=F,p=k,E=[],X=E,q=!1;e({type:BI});var N={},u=(N.dispatch=e,N.subscribe=D,N.getState=x,N.replaceReducer=function(w){if(typeof w!=="function")throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof w);C=w;e({type:Ul5});return u},N[tr5]=function(){var w={};
return w.subscribe=function(m){function h(){m.next&&m.next(x())}
if(typeof m!=="object"||m===null)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof m+"'");h();return{unsubscribe:D(h)}},w[tr5]=function(){return this},w},N);
return u};
ZTH=function(F){return F?(F=F.privateDoNotAccessOrElseSafeScriptWrappedValue)?sh6(F):null:null};
Gs=function(F){return F?(F=F.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?Iu(F):null:null};
ciH=function(F){F=vmn(F);return Y$(F)};
g.Ur=function(F){F=vmn(F);return Iu(F)};
vmn=function(F){return F===null?"null":F===void 0?"undefined":F};
tU=function(F){F=dR(F);HY(this);this.aS=F};
OTp=function(F){var k=F.split(F.slice(0,0)),z=[1978678695,1642471632,169030967,-2121717110,1018448607,function(x,D,e,C,p,E){return D(C,p,E)},
-1029212239,-1834312035,function(x,D){if(x.length!=0){D=(D%x.length+x.length)%x.length;var e=x[0];x[0]=x[D];x[D]=e}},
function(x,D,e,C,p){return D(e,C,p)},
function(x){x.reverse()},
1842856852,-1191625432,-1303738141,function(x,D){for(x=(x%D.length+D.length)%D.length;x--;)D.unshift(D.pop())},
-1922583078,1674703155,-1602588066,-225622117,-1477733266,-933972935,-1977297877,2096024194,-902849284,2140149492,1116307815,-1778905184,o5[15],-1587210066,function(x,D,e){var C=D.length;x.forEach(function(p,E,X){this.push(X[E]=D[(D.indexOf(p)-D.indexOf(this[E])+E+C--)%D.length])},e.split(o5[5]))},
function(x,D){x.push(D)},
null,o5[36],-1126357823,o5[46],2090202165,2041549877,function(x,D,e,C,p,E,X,q,N,u,w){return x(e,C,p,E,X,q,N,u,w)},
-1587210066,function(x,D){D=(D%x.length+x.length)%x.length;x.splice(D,1)},
976528426,1736869842,-378136734,function(){for(var x=64,D=[];++x-D.length-32;){switch(x){case 58:x-=14;case 91:case 92:case 93:continue;case 123:x=47;case 94:case 95:case 96:continue;case 46:x=95}D.push(String.fromCharCode(x))}return D},
function(){for(var x=64,D=[];++x-D.length-32;)switch(x){case 46:x=95;default:D.push(String.fromCharCode(x));case 94:case 95:case 96:break;case 123:x-=76;case 92:case 93:continue;case 58:x=44;case 91:}return D},
1235781116,function(x){for(var D=x.length;D;)x.push(x.splice(--D,1)[0])},
72246207,function(x,D,e,C,p,E,X,q){return D(e,C,p,E,X,q)},
o5[51],1878405994,539388197,-1477733266,k,-1721188257,420419267,677134798,function(x,D){x.length!=0&&(D=(D%x.length+x.length)%x.length,x.splice(0,1,x.splice(D,1,x[0])[0]))},
-419554265,-1846379791,-1924833487,-1848140,k,2063915732,2064158043,o5[41],null,-1383561213,-1114189977,1327513679,2125311046,-1440661553,2065436425,function(x,D){x.splice(x.length,0,D)},
k,function(x,D,e,C,p,E,X,q,N,u){return D(p,E,X,q,N,u)},
-2078436935,function(){for(var x=64,D=[];++x-D.length-32;){switch(x){case 91:x=44;continue;case 123:x=65;break;case 65:x-=18;continue;case 58:x=96;continue;case 46:x=95}D.push(String.fromCharCode(x))}return D},
function(){for(var x=64,D=[];++x-D.length-32;)switch(x){case 58:x=96;continue;case 91:x=44;break;case 65:x=47;continue;case 46:x=153;case 123:x-=58;default:D.push(String.fromCharCode(x))}return D},
-430234630,null,function(x,D,e,C,p,E,X){return x(p,E,X)},
-1359522925,function(x,D){D=(D%x.length+x.length)%x.length;x.splice(-D).reverse().forEach(function(e){x.unshift(e)})},
-657421467];z[31]=z;z[66]=z;z[80]=z;if(typeof PRp===o5[39])return F;try{try{z[41]<=1&&((0,z[14])(z[82],z[80]),5)||(0,z[57])(z[53],z[6])}catch(x){(0,z[8])(z[62],z[84])}finally{z[33]<-7&&(z[28]>=-1?(0,z[48])(((((0,z[14])(z[4],z[66]),z[39])(z[80],z[20]),z[39])(z[53],z[25]),z[57])(z[66],z[54]),z[9],(0,z[29])(z[62],(0,z[new Date(o5[28])/1E3])(),z[65]),z[29],z[62],(0,z[77])(),z[34]):(0,z[75])((0,z[39])(z[62],z[17]),z[9],(0,z[14])(z[70],z[66]),((0,z[41])(z[84]),z[3])(z[26],z[49]),(0,z[45])(z[22],z[20]),
z[45],z[76],z[12])),z[45]!==5&&(z[36]!==-4&&((0,z[70])(z[51],z[64]),o5[13])||(0,z[70])(z[39],z[24])),z[24]>=2&&(z[75]>=5?((((0,z[72])(z[57]),z[new Date(o5[25])/1E3])(z[8],z[75]),z[67])((0,z[60])(z[8],z[28])<=(0,z[16])(z[39],z[74]),z[6],(0,z[new Date(o5[10])/1E3])(z[39],z[49]),z[30],(0,z[21])(),z[42])<=(0,z[new Date(o5[6])/1E3])(z[30],z[62]))/(0,z[72])(z[51]):(((0,z[67])(((0,z[76])(z[15],z[43]),(0,z[57])(z[64]),z[40])(z[0],(0,z[55])(),z[45]),z[19],(0,z[20])((0,z[9])(z[125+new Date(o5[14])/1E3*119+
-26109],z[32]),z[28],z[8],z[9]),z[13],z[31]),z[22])(z[5],z[47]),z[10])(z[80])),z[61]!=new Date(o5[32])/1E3&&(z[83]===-9||((0,z[new Date(o5[7])/1E3])(z[18]),0))&&(0,z[39])(z[80],z[24])}try{z[61]!==-1&&(z[40]<=5?(0,z[81])(z[14],(((0,z[39])(z[62],z[3]),z[37])(z[81],(0,z[39])(z[53],z[68]),z[46],(0,z[14])(z[41],z[80]),(0,z[57])(z[31],z[55]),(0,z[46])(z[66]),z[31]),z[9])(((0,z[39])(z[80],z[58]),z[14])(z[61],z[80]),z[46],z[74]),(0,z[29])(z[53],(0,z[44])(),z[34]),(0,z[39])(z[74],z[35]),z[19],z[74]):(0,z[48])((0,z[30])(z[80],
z[54])|((0,z[9])((0,z[83])(z[62],z[69]),z[73],z[80],z[56]),z[8])(z[80],z[64]),z[5],(0,z[8])(z[74],z[11]),z[83],((0,z[46])(z[62]),z[57])(z[74],z[1]),z[31],z[22])*((((0,z[24])(z[46],z[72]),z[67])(z[76],z[25]),z[6])(z[63],z[52]),(0,z[20])(z[72]))),z[57]>-6&&((0,z[58])((((((0,z[67])(z[84],z[26]),(0,z[6])(z[3],z[0]),z[76])(z[24],z[52]),z[3])(z[48],(0,z[52])(),z[39]),z[20])(z[36]),z[31])(z[54],z[0]),z[70],(0,z[69])(z[36],z[7]),z[57],z[54],z[28]),z[36])(z[62],z[9]),z[23]>1&&(z[28]!==3&&((0,z[31])((0,z[79])(z[1],
z[72]),z[30],z[9],z[21]),1)||(0,z[31])((0,z[51])(z[9],(0,z[65])(),z[43]),z[61],z[75],z[85]))}catch(x){(0,z[68])(z[75]),(0,z[61])(z[84],z[82]),(0,z[51])(z[75],(0,z[66])(),z[43])}}catch(x){return o5[16]+F}return k.join(o5[5])};
Vrn=function(F){return F,o5[50][10+!!F]};
g.Z3=function(F){this.name=F};
I5Y=function(F){F=dR(F);HY(this);this.aS=F};
vI=function(F){F=dR(F);HY(this);this.aS=F};
cI=function(F){F=dR(F);HY(this);this.aS=F};
HT6=function(F){F=dR(F);HY(this);this.aS=F};
PI=function(F){F=dR(F);HY(this);this.aS=F};
Or=function(F){F=dR(F);HY(this);this.aS=F};
VM=function(F){F=dR(F);HY(this);this.aS=F};
IA=function(F){F=dR(F);HY(this);this.aS=F};
HI=function(F){F=dR(F);HY(this);this.aS=F};
aA=function(F){F=dR(F);HY(this);this.aS=F};
Sg=function(F){F=dR(F);HY(this);this.aS=F};
b1=function(F){F=dR(F);HY(this);this.aS=F};
dU=function(F){F=dR(F);HY(this);this.aS=F};
JU=function(F){F=dR(F);HY(this);this.aS=F};
yM=function(F){F=dR(F);HY(this);this.aS=F};
RA=function(F){F=dR(F,500);HY(this);this.aS=F};
gU=function(F){F=dR(F);HY(this);this.aS=F};
Yc=function(F){F=dR(F);HY(this);this.aS=F};
a5I=function(F){F=dR(F);HY(this);this.aS=F};
SgY=function(){return g.yR("yt.ads.biscotti.lastId_")||""};
bTC=function(F){g.dI("yt.ads.biscotti.lastId_",F)};
MJ=function(){var F=arguments,k=nX;F.length>1?k[F[0]]=F[1]:F.length===1&&Object.assign(k,F[0])};
g.LX=function(F,k){return F in nX?nX[F]:k};
WI=function(F){var k=nX.EXPERIMENT_FLAGS;return k?k[F]:void 0};
dl6=function(F){Fe.forEach(function(k){return k(F)})};
g.oS=function(F){return F&&window.yterr?function(){try{return F.apply(this,arguments)}catch(k){g.kT(k)}}:F};
g.kT=function(F){var k=g.yR("yt.logging.errors.log");k?k(F,"ERROR",void 0,void 0,void 0,void 0,void 0):(k=g.LX("ERRORS",[]),k.push([F,"ERROR",void 0,void 0,void 0,void 0,void 0]),MJ("ERRORS",k));dl6(F)};
zE=function(F,k,z,x,D){var e=g.yR("yt.logging.errors.log");e?e(F,"WARNING",k,z,x,void 0,D):(e=g.LX("ERRORS",[]),e.push([F,"WARNING",k,z,x,void 0,D]),MJ("ERRORS",e))};
xT=function(F,k){k=F.split(k);for(var z={},x=0,D=k.length;x<D;x++){var e=k[x].split("=");if(e.length===1&&e[0]||e.length===2)try{var C=Ji6(e[0]||""),p=Ji6(e[1]||"");if(C in z){var E=z[C];Array.isArray(E)?g.xr(E,p):z[C]=[E,p]}else z[C]=p}catch(u){var X=u,q=e[0],N=String(xT);X.args=[{key:q,value:e[1],query:F,method:yik===N?"unchanged":N}];R49.hasOwnProperty(q)||zE(X)}}return z};
iP=function(F){var k=[];g.tg(F,function(z,x){var D=g.D8(x);g.XN(Array.isArray(z)?z:[z],function(e){e==""?k.push(D):k.push(D+"="+g.D8(e))})});
return k.join("&")};
DC=function(F){F.charAt(0)==="?"&&(F=F.substring(1));return xT(F,"&")};
$T=function(F){return F.split(",").map(function(k){return DC(k)})};
g.jl=function(F){return F.indexOf("?")!==-1?(F=(F||"").split("#")[0],F=F.split("?",2),DC(F.length>1?F[1]:F[0])):{}};
el=function(F,k){return gmY(F,k||{},!0)};
Cg=function(F,k){return gmY(F,k||{},!1)};
gmY=function(F,k,z){var x=F.split("#",2);F=x[0];x=x.length>1?"#"+x[1]:"";var D=F.split("?",2);F=D[0];D=DC(D[1]||"");for(var e in k)if(z||!g.IM(D,e))D[e]=k[e];return g.oW(F,D)+x};
AB=function(F){if(!k)var k=window.location.href;var z=g.Mt(1,F),x=g.Lw(F);z&&x?(F=F.match(nw),k=k.match(nw),F=F[3]==k[3]&&F[1]==k[1]&&F[4]==k[4]):F=x?g.Lw(k)===x&&(Number(g.Mt(4,k))||null)===(Number(g.Mt(4,F))||null):!0;return F};
pg=function(F){F||(F=document.location.href);F=g.Mt(1,F);return F!==null&&F==="https"};
EY=function(F){F=YgR(F);return F===null?!1:F[0]==="com"&&F[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
nmx=function(F){F=YgR(F);return F===null?!1:F[1]==="google"?!0:F[2]==="google"?F[0]==="au"&&F[1]==="com"?!0:F[0]==="uk"&&F[1]==="co"?!0:!1:!1};
YgR=function(F){F=g.Lw(F);return F!==null?F.split(".").reverse():null};
Ji6=function(F){return F&&F.match(Mr9)?F:$s(F)};
Nz=function(F){var k=Xe;F=F===void 0?SgY():F;var z=Object,x=z.assign,D=qz(k);var e=k.Y;try{var C=e.screenX;var p=e.screenY}catch(U){}try{var E=e.outerWidth;var X=e.outerHeight}catch(U){}try{var q=e.innerWidth;var N=e.innerHeight}catch(U){}try{var u=e.screenLeft;var w=e.screenTop}catch(U){}try{q=e.innerWidth,N=e.innerHeight}catch(U){}try{var m=e.screen.availWidth;var h=e.screen.availTop}catch(U){}e=[u,w,C,p,m,h,E,X,q,N];C=XMn(!1,k.Y.top);p={};var B=B===void 0?g.bD:B;E=new gY;"SVGElement"in B&&"createElementNS"in
B.document&&E.set(0);X=Gh9();X["allow-top-navigation-by-user-activation"]&&E.set(1);X["allow-popups-to-escape-sandbox"]&&E.set(2);B.crypto&&B.crypto.subtle&&E.set(3);"TextDecoder"in B&&"TextEncoder"in B&&E.set(4);B=ltp(E);k=(p.bc=B,p.bih=C.height,p.biw=C.width,p.brdim=e.join(),p.vis=Ty(k.L),p.wgl=!!uQ.WebGLRenderingContext,p);z=x.call(z,D,k);z.ca_type="image";F&&(z.bid=F);return z};
qz=function(F){var k={};k.dt=LbC;k.flash="0";a:{try{var z=F.Y.top.location.href}catch(q){F=2;break a}F=z?z===F.L.location.href?0:1:2}k=(k.frm=F,k);try{k.u_tz=-(new Date).getTimezoneOffset();var x=x===void 0?uQ:x;try{var D=x.history.length}catch(q){D=0}k.u_his=D;var e;k.u_h=(e=uQ.screen)==null?void 0:e.height;var C;k.u_w=(C=uQ.screen)==null?void 0:C.width;var p;k.u_ah=(p=uQ.screen)==null?void 0:p.availHeight;var E;k.u_aw=(E=uQ.screen)==null?void 0:E.availWidth;var X;k.u_cd=(X=uQ.screen)==null?void 0:
X.colorDepth}catch(q){}return k};
KbC=function(){if(!f5D)return null;var F=f5D();return"open"in F?F:null};
g.wz=function(F){switch(uP(F)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
uP=function(F){return F&&"status"in F?F.status:-1};
g.mz=function(F,k){typeof F==="function"&&(F=g.oS(F));return window.setTimeout(F,k)};
g.TE=function(F,k){typeof F==="function"&&(F=g.oS(F));return window.setInterval(F,k)};
g.lP=function(F){window.clearTimeout(F)};
g.QL=function(F){window.clearInterval(F)};
g.sY=function(F){F=hB(F);return typeof F==="string"&&F==="false"?!1:!!F};
g.rz=function(F,k){F=hB(F);return F===void 0&&k!==void 0?k:Number(F||0)};
Bp=function(){return g.LX("EXPERIMENTS_TOKEN","")};
hB=function(F){return g.LX("EXPERIMENT_FLAGS",{})[F]};
GE=function(){for(var F=[],k=g.LX("EXPERIMENTS_FORCED_FLAGS",{}),z=g.l(Object.keys(k)),x=z.next();!x.done;x=z.next())x=x.value,F.push({key:x,value:String(k[x])});z=g.LX("EXPERIMENT_FLAGS",{});x=g.l(Object.keys(z));for(var D=x.next();!D.done;D=x.next())D=D.value,D.startsWith("force_")&&k[D]===void 0&&F.push({key:D,value:String(z[D])});return F};
UY=function(F,k,z,x,D,e,C,p){function E(){(X&&"readyState"in X?X.readyState:0)===4&&k&&g.oS(k)(X)}
z=z===void 0?"GET":z;x=x===void 0?"":x;p=p===void 0?!1:p;var X=KbC();if(!X)return null;"onloadend"in X?X.addEventListener("loadend",E,!1):X.onreadystatechange=E;g.sY("debug_forward_web_query_parameters")&&(F=Wba(F,window.location.search));X.open(z,F,!0);e&&(X.responseType=e);C&&(X.withCredentials=!0);z=z==="POST"&&(window.FormData===void 0||!(x instanceof FormData));if(D=F6x(F,D))for(var q in D)X.setRequestHeader(q,D[q]),"content-type"===q.toLowerCase()&&(z=!1);z&&X.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");if(p&&"setAttributionReporting"in XMLHttpRequest.prototype){F={eventSourceEligible:!0,triggerEligible:!1};try{X.setAttributionReporting(F)}catch(N){zE(N)}}X.send(x);return X};
F6x=function(F,k){k=k===void 0?{}:k;var z=AB(F),x=g.LX("INNERTUBE_CLIENT_NAME"),D=g.sY("web_ajax_ignore_global_headers_if_set"),e;for(e in kr6){var C=g.LX(kr6[e]),p=e==="X-Goog-AuthUser"||e==="X-Goog-PageId";e!=="X-Goog-Visitor-Id"||C||(C=g.LX("VISITOR_DATA"));var E;if(!(E=!C)){if(!(E=z||(g.Lw(F)?!1:!0))){E=F;var X;if(X=g.sY("add_auth_headers_to_remarketing_google_dot_com_ping")&&e==="Authorization"&&(x==="TVHTML5"||x==="TVHTML5_UNPLUGGED"||x==="TVHTML5_SIMPLY")&&nmx(E))E=YV(g.Mt(5,E))||"",E=E.split("/"),
E="/"+(E.length>1?E[1]:""),X=E==="/pagead";E=X?!0:!1}E=!E}E||D&&k[e]!==void 0||x==="TVHTML5_UNPLUGGED"&&p||(k[e]=C)}"X-Goog-EOM-Visitor-Id"in k&&"X-Goog-Visitor-Id"in k&&delete k["X-Goog-Visitor-Id"];if(z||!g.Lw(F))k["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(z||!g.Lw(F)){try{var q=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(N){}q&&(k["X-YouTube-Time-Zone"]=q)}document.location.hostname.endsWith("youtubeeducation.com")||!z&&g.Lw(F)||(k["X-YouTube-Ad-Signals"]=
iP(Nz()));return k};
zTR=function(F,k){var z=g.Lw(F);g.sY("debug_handle_relative_url_for_query_forward_killswitch")||!z&&AB(F)&&(z=document.location.hostname);var x=YV(g.Mt(5,F));x=(z=z&&(z.endsWith("youtube.com")||z.endsWith("youtube-nocookie.com")))&&x&&x.startsWith("/api/");if(!z||x)return F;var D=DC(k),e={};g.XN(o2R,function(C){D[C]&&(e[C]=D[C])});
return Cg(F,e)};
ZC=function(F,k){k.method="POST";k.postParams||(k.postParams={});return g.tB(F,k)};
Ddn=function(F,k){if(window.fetch&&k.format!=="XML"){var z={method:k.method||"GET",credentials:"same-origin"};k.headers&&(z.headers=k.headers);k.priority&&(z.priority=k.priority);F=xdx(F,k);var x=iSn(F,k);x&&(z.body=x);k.withCredentials&&(z.credentials="include");var D=k.context||g.bD,e=!1,C;fetch(F,z).then(function(p){if(!e){e=!0;C&&g.lP(C);var E=p.ok,X=function(q){q=q||{};E?k.onSuccess&&k.onSuccess.call(D,q,p):k.onError&&k.onError.call(D,q,p);k.onFinish&&k.onFinish.call(D,q,p)};
(k.format||"JSON")==="JSON"&&(E||p.status>=400&&p.status<500)?p.json().then(X,function(){X(null)}):X(null)}}).catch(function(){k.onError&&k.onError.call(D,{},{})});
F=k.timeout||0;k.onFetchTimeout&&F>0&&(C=g.mz(function(){e||(e=!0,g.lP(C),k.onFetchTimeout.call(k.context||g.bD))},F))}else g.tB(F,k)};
g.tB=function(F,k){var z=k.format||"JSON";F=xdx(F,k);var x=iSn(F,k),D=!1,e=$dY(F,function(E){if(!D){D=!0;p&&g.lP(p);var X=g.wz(E),q=null,N=400<=E.status&&E.status<500,u=500<=E.status&&E.status<600;if(X||N||u)q=jCx(F,z,E,k.convertToSafeHtml);X&&(X=eTx(z,E,q));q=q||{};N=k.context||g.bD;X?k.onSuccess&&k.onSuccess.call(N,E,q):k.onError&&k.onError.call(N,E,q);k.onFinish&&k.onFinish.call(N,E,q)}},k.method,x,k.headers,k.responseType,k.withCredentials);
x=k.timeout||0;if(k.onTimeout&&x>0){var C=k.onTimeout;var p=g.mz(function(){D||(D=!0,e.abort(),g.lP(p),C.call(k.context||g.bD,e))},x)}return e};
xdx=function(F,k){k.includeDomain&&(F=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+F);var z=g.LX("XSRF_FIELD_NAME");if(k=k.urlParams)k[z]&&delete k[z],F=el(F,k);return F};
iSn=function(F,k){var z=g.LX("XSRF_FIELD_NAME"),x=g.LX("XSRF_TOKEN"),D=k.postBody||"",e=k.postParams,C=g.LX("XSRF_FIELD_NAME"),p;k.headers&&(p=k.headers["Content-Type"]);k.excludeXsrf||g.Lw(F)&&!k.withCredentials&&g.Lw(F)!==document.location.hostname||k.method!=="POST"||p&&p!=="application/x-www-form-urlencoded"||k.postParams&&k.postParams[C]||(e||(e={}),e[z]=x);(g.sY("ajax_parse_query_data_only_when_filled")&&e&&Object.keys(e).length>0||e)&&typeof D==="string"&&(D=DC(D),g.RM(D,e),D=k.postBodyFormat&&
k.postBodyFormat==="JSON"?JSON.stringify(D):g.ky(D));e=D||e&&!g.SI(e);!CV6&&e&&k.method!=="POST"&&(CV6=!0,g.kT(Error("AJAX request with postData should use POST")));return D};
jCx=function(F,k,z,x){var D=null;switch(k){case "JSON":try{var e=z.responseText}catch(C){throw x=Error("Error reading responseText"),x.params=F,zE(x),C;}F=z.getResponseHeader("Content-Type")||"";e&&F.indexOf("json")>=0&&(e.substring(0,5)===")]}'\n"&&(e=e.substring(5)),D=JSON.parse(e));break;case "XML":if(F=(F=z.responseXML)?ACH(F):null)D={},g.XN(F.getElementsByTagName("*"),function(C){D[C.tagName]=pNk(C)})}x&&E2H(D);
return D};
E2H=function(F){if(g.M9(F))for(var k in F)k==="html_content"||bkn(k,"_html")?F[k]=Y$(F[k]):E2H(F[k])};
eTx=function(F,k,z){if(k&&k.status===204)return!0;switch(F){case "JSON":return!!z;case "XML":return Number(z&&z.return_code)===0;case "RAW":return!0;default:return!!z}};
ACH=function(F){return F?(F=("responseXML"in F?F.responseXML:F).getElementsByTagName("root"))&&F.length>0?F[0]:null:null};
pNk=function(F){var k="";g.XN(F.childNodes,function(z){k+=z.nodeValue});
return k};
cp=function(F,k){var z=g.Jg(k),x;return(new g.Uz(function(D,e){z.onSuccess=function(C){g.wz(C)?D(new XNn(C)):e(new vp("Request failed, status="+uP(C),"net.badstatus",C))};
z.onError=function(C){e(new vp("Unknown request error","net.unknown",C))};
z.onTimeout=function(C){e(new vp("Request timed out","net.timeout",C))};
x=g.tB(F,z)})).UT(function(D){if(D instanceof IU){var e;
(e=x)==null||e.abort()}return v4(D)})};
g.Pp=function(F,k,z,x){function D(p,E,X){return p.UT(function(q){if(E<=0||uP(q.xhr)===403)return v4(new vp("Request retried too many times","net.retryexhausted",q.xhr,q));q=Math.pow(2,z-E+1)*X;var N=C>0?Math.min(C,q):q;return e(X).then(function(){return D(cp(F,k),E-1,N)})})}
function e(p){return new g.Uz(function(E){setTimeout(E,p)})}
var C=C===void 0?-1:C;return D(cp(F,k),z-1,x)};
vp=function(F,k,z){N$.call(this,F+", errorCode="+k);this.errorCode=k;this.xhr=z;this.name="PromiseAjaxError"};
XNn=function(F){this.xhr=F};
OY=function(F){this.Y=F===void 0?null:F;this.U=0;this.L=null};
VL=function(F){var k=new OY;F=F===void 0?null:F;k.U=2;k.L=F===void 0?null:F;return k};
IS=function(F){var k=new OY;F=F===void 0?null:F;k.U=1;k.L=F===void 0?null:F;return k};
g.Sl=function(F,k,z,x,D){Hp||aS.set(""+F,k,{SM:z,path:"/",domain:x===void 0?"youtube.com":x,secure:D===void 0?!1:D})};
g.bP=function(F,k){if(!Hp)return aS.get(""+F,k)};
g.dz=function(F,k,z){Hp||aS.remove(""+F,k===void 0?"/":k,z===void 0?"youtube.com":z)};
qXn=function(){if(g.sY("embeds_web_enable_cookie_detection_fix")){if(!g.bD.navigator.cookieEnabled)return!1}else if(!aS.isEnabled())return!1;if(!aS.isEmpty())return!0;g.sY("embeds_web_enable_cookie_detection_fix")?aS.set("TESTCOOKIESENABLED","1",{SM:60,d$p:"none",secure:!0}):aS.set("TESTCOOKIESENABLED","1",{SM:60});if(aS.get("TESTCOOKIESENABLED")!=="1")return!1;aS.remove("TESTCOOKIESENABLED");return!0};
g.J=function(F,k){if(F)return F[k.name]};
JB=function(F){var k=g.LX("INNERTUBE_HOST_OVERRIDE");k&&(F=String(k)+String(fw(F)));return F};
NYY=function(F){var k={};g.sY("json_condensed_response")&&(k.prettyPrint="false");return F=Cg(F,k)};
yL=function(F,k){var z=z===void 0?{}:z;F={method:k===void 0?"POST":k,mode:AB(F)?"same-origin":"cors",credentials:AB(F)?"same-origin":"include"};k={};for(var x=g.l(Object.keys(z)),D=x.next();!D.done;D=x.next())D=D.value,z[D]&&(k[D]=z[D]);Object.keys(k).length>0&&(F.headers=k);return F};
RS=function(){var F=/Chrome\/(\d+)/.exec(g.ZH());return F?parseFloat(F[1]):NaN};
gz=function(){var F=/\sCobalt\/(\S+)\s/.exec(g.ZH());if(!F)return NaN;var k=[];F=g.l(F[1].split("."));for(var z=F.next();!z.done;z=F.next())z=parseInt(z.value,10),z>=0&&k.push(z);return parseFloat(k.join("."))};
Mz=function(){return g.ng("android")&&g.ng("chrome")&&!(g.ng("trident/")||g.ng("edge/"))&&!g.ng("cobalt")};
uRI=function(){return g.ng("armv7")||g.ng("aarch64")||g.ng("android")};
g.Lg=function(){return g.ng("cobalt")};
fg=function(){return g.ng("cobalt")&&g.ng("appletv")};
Kg=function(){return g.ng("(ps3; leanback shell)")||g.ng("ps3")&&g.Lg()};
wNY=function(){return g.ng("(ps4; leanback shell)")||g.ng("ps4")&&g.Lg()};
g.mdC=function(){return g.Lg()&&(g.ng("ps4 vr")||g.ng("ps4 pro vr"))};
Wp=function(){var F=/WebKit\/([0-9]+)/.exec(g.ZH());return!!(F&&parseInt(F[1],10)>=600)};
FG=function(){var F=/WebKit\/([0-9]+)/.exec(g.ZH());return!!(F&&parseInt(F[1],10)>=602)};
TYn=function(){return g.ng("iemobile")||g.ng("windows phone")&&g.ng("edge")};
z_=function(){return(kn||ox)&&g.ng("applewebkit")&&!g.ng("version")&&(!g.ng("safari")||g.ng("gsa/"))};
Du=function(){return g.xn&&g.ng("version/")};
$n=function(){return g.ng("smart-tv")&&g.ng("samsung")};
g.ng=function(F){var k=g.ZH();return k?k.toLowerCase().indexOf(F)>=0:!1};
jZ=function(){return SpR()||z_()||Du()?!0:g.LX("EOM_VISITOR_DATA")?!1:!0};
eZ=function(F,k){return k===void 0||k===null?F:k==="1"||k===!0||k===1||k==="True"?!0:!1};
Cu=function(F,k,z){for(var x in z)if(z[x]==k)return z[x];return F};
Ax=function(F,k){return k===void 0||k===null?F:Number(k)};
pu=function(F,k){return k===void 0||k===null?F:k.toString()};
EN=function(F,k){if(k){if(F==="fullwidth")return Infinity;if(F==="fullheight")return 0}return F&&(k=F.match(lvC))&&(F=Number(k[2]),k=Number(k[1]),!isNaN(F)&&!isNaN(k)&&F>0)?k/F:NaN};
XG=function(F){var k=F.docid||F.video_id||F.videoId||F.id;if(k)return k;k=F.raw_player_response;k||(F=F.player_response)&&(k=JSON.parse(F));return k&&k.videoDetails&&k.videoDetails.videoId||null};
QC9=function(F){return q5(F,!1)==="EMBEDDED_PLAYER_MODE_PFL"};
g.N5=function(F){return F==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||F==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1};
q5=function(F,k){k=(k===void 0?0:k)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(k="EMBEDDED_PLAYER_MODE_PFL");var z=F.raw_embedded_player_response;if(!z&&(F=F.embedded_player_response))try{z=JSON.parse(F)}catch(x){return k}return z?Cu(k,z.embeddedPlayerMode,hTn):k};
wa=function(F){N$.call(this,F.message||F.description||F.name);this.isMissing=F instanceof un;this.isTimeout=F instanceof vp&&F.errorCode=="net.timeout";this.isCanceled=F instanceof IU};
un=function(){N$.call(this,"Biscotti ID is missing from server")};
sCx=function(){if(g.sY("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!jZ())return Error("User has not consented - not fetching biscotti id.");var F=g.LX("PLAYER_VARS",{});if(g.b3(F,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(QC9(F))return Error("Biscotti id fetching has been disabled for pfl.")};
Ud5=function(){var F=sCx();if(F!==void 0)return v4(F);m9||(m9=cp("//web.archive.org/web/20250411103644/https://googleads.g.doubleclick.net/pagead/id",rCn).then(BY9).UT(function(k){return GrM(2,k)}));
return m9};
BY9=function(F){F=F.xhr.responseText;if(!Qn(F,")]}'"))throw new un;F=JSON.parse(F.substr(4));if((F.type||1)>1)throw new un;F=F.id;bTC(F);m9=IS(F);tuM(18E5,2);return F};
GrM=function(F,k){k=new wa(k);bTC("");m9=VL(k);F>0&&tuM(12E4,F-1);throw k;};
tuM=function(F,k){g.mz(function(){cp("//web.archive.org/web/20250411103644/https://googleads.g.doubleclick.net/pagead/id",rCn).then(BY9,function(z){return GrM(k,z)}).UT(g.h1)},F)};
ZSp=function(){try{var F=g.yR("yt.ads.biscotti.getId_");return F?F():Ud5()}catch(k){return v4(k)}};
cCn=function(F){F&&(F.dataset?F.dataset[v25()]="true":BR9(F))};
PVC=function(F){return F?F.dataset?F.dataset[v25()]:F.getAttribute("data-loaded"):null};
v25=function(){return OSC.loaded||(OSC.loaded="loaded".replace(/\-([a-z])/g,function(F,k){return k.toUpperCase()}))};
Vup=function(){var F=document;if("visibilityState"in F)return F.visibilityState;var k=T_+"VisibilityState";if(k in F)return F[k]};
ln=function(F,k){var z;t9(F,function(x){z=k[x];return!!z});
return z};
QB=function(F){if(F.requestFullscreen)F=F.requestFullscreen(void 0);else if(F.webkitRequestFullscreen)F=F.webkitRequestFullscreen();else if(F.mozRequestFullScreen)F=F.mozRequestFullScreen();else if(F.msRequestFullscreen)F=F.msRequestFullscreen();else if(F.webkitEnterFullscreen)F=F.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return F instanceof Promise?F:Promise.resolve()};
ra=function(F){var k;g.hx()?sN()==F&&(k=document):k=F;return k&&(F=ln(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],k))?(k=F.call(k),k instanceof Promise?k:Promise.resolve()):Promise.resolve()};
Ivx=function(F){return g.M$(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(k){return"on"+k.toLowerCase()in F})};
HS5=function(){var F=document;return g.M$(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(k){return"on"+k.toLowerCase()in F})};
g.hx=function(){return!!ln(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
sN=function(F){F=F===void 0?!1:F;var k=ln(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(F)for(;k&&k.shadowRoot;)k=k.shadowRoot.fullscreenElement;return k?k:null};
BW=function(F){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(F=F||window.event){this.event=F;for(var k in F)k in av6||(this[k]=F[k]);this.scale=F.scale;this.rotation=F.rotation;var z=F.target||F.srcElement;z&&z.nodeType==3&&(z=z.parentNode);this.target=z;var x=F.relatedTarget;
if(x)try{x=x.nodeName?x:null}catch(D){x=null}else this.type=="mouseover"?x=F.fromElement:this.type=="mouseout"&&(x=F.toElement);this.relatedTarget=x;this.clientX=F.clientX!=void 0?F.clientX:F.pageX;this.clientY=F.clientY!=void 0?F.clientY:F.pageY;this.keyCode=F.keyCode?F.keyCode:F.which;this.charCode=F.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=F.altKey;this.ctrlKey=F.ctrlKey;this.shiftKey=F.shiftKey;this.metaKey=F.metaKey;this.Y=F.pageX;this.L=F.pageY}}catch(D){}};
SXC=function(F){if(document.body&&document.documentElement){var k=document.body.scrollTop+document.documentElement.scrollTop;F.Y=F.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);F.L=F.clientY+k}};
bSn=function(F,k,z,x){x=x===void 0?{}:x;F.addEventListener&&(k!="mouseenter"||"onmouseenter"in document?k!="mouseleave"||"onmouseenter"in document?k=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(k="MozMousePixelScroll"):k="mouseout":k="mouseover");return aM(G_,function(D){var e=typeof D[4]==="boolean"&&D[4]==!!x,C=g.M9(D[4])&&g.M9(x)&&g.df(D[4],x);return!!D.length&&D[0]==F&&D[1]==k&&D[2]==z&&(e||C)})};
g.UN=function(F,k,z,x){x=x===void 0?{}:x;if(!F||!F.addEventListener&&!F.attachEvent)return"";var D=bSn(F,k,z,x);if(D)return D;D=++ddn.count+"";var e=!(k!="mouseenter"&&k!="mouseleave"||!F.addEventListener||"onmouseenter"in document);var C=e?function(p){p=new BW(p);if(!wd(p.relatedTarget,function(E){return E==F},!0))return p.currentTarget=F,p.type=k,z.call(F,p)}:function(p){p=new BW(p);
p.currentTarget=F;return z.call(F,p)};
C=g.oS(C);F.addEventListener?(k=="mouseenter"&&e?k="mouseover":k=="mouseleave"&&e?k="mouseout":k=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(k="MozMousePixelScroll"),JCx()||typeof x==="boolean"?F.addEventListener(k,C,x):F.addEventListener(k,C,!!x.capture)):F.attachEvent("on"+k,C);G_[D]=[F,k,z,C,x];return D};
RTx=function(F){return yCx(F,function(k){return g.ed(k,"ytp-ad-has-logging-urls")})};
yCx=function(F,k){var z=document.body||document;return g.UN(z,"click",function(x){var D=wd(x.target,function(e){return e===z||k(e)},!0);
D&&D!==z&&!D.disabled&&(x.currentTarget=D,F.call(D,x))})};
g.tx=function(F){F&&(typeof F=="string"&&(F=[F]),g.XN(F,function(k){if(k in G_){var z=G_[k],x=z[0],D=z[1],e=z[3];z=z[4];x.removeEventListener?JCx()||typeof z==="boolean"?x.removeEventListener(D,e,z):x.removeEventListener(D,e,!!z.capture):x.detachEvent&&x.detachEvent("on"+D,e);delete G_[k]}}))};
Zu=function(F){for(var k in G_)G_[k][0]==F&&g.tx(k)};
vW=function(F){F=F||window.event;var k;F.composedPath&&typeof F.composedPath==="function"?k=F.composedPath():k=F.path;k&&k.length?F=k[0]:(F=F||window.event,F=F.target||F.srcElement,F.nodeType==3&&(F=F.parentNode));return F};
cW=function(F){this.G=F;this.Y=null;this.j=0;this.S=null;this.W=0;this.L=[];for(F=0;F<4;F++)this.L.push(0);this.U=0;this.PR=g.UN(window,"mousemove",(0,g.W6)(this.K,this));this.B=g.TE((0,g.W6)(this.Qh,this),25)};
PW=function(F){g.S.call(this);this.B=[];this.mY=F||this};
ON=function(F,k,z,x){for(var D=0;D<z.length;D++)F.N(k,z[D],x)};
g.VB=function(F,k){for(;F.B.length;){var z=F.B.pop(),x=void 0;k&&g2R()&&(x={passive:!0});z.target.removeEventListener(z.name,z.callback,x)}};
Ix=function(F){F=F||{};var k={},z={};this.url=F.url||"";this.args=F.args||g.Jg(k);this.assets=F.assets||{};this.attrs=F.attrs||g.Jg(z);this.fallback=F.fallback||null;this.fallbackMessage=F.fallbackMessage||null;this.html5=!!F.html5;this.disable=F.disable||{};this.loaded=!!F.loaded;this.messages=F.messages||{}};
YXa=function(F){F instanceof Ix||(F=new Ix(F));return F};
g.SZ=function(F,k,z){var x=z&&z>0?z:0;z=x?Date.now()+x*1E3:0;if((x=x?(0,g.HW)():ax())&&window.JSON){typeof k!=="string"&&(k=JSON.stringify(k,void 0));try{x.set(F,k,z)}catch(D){x.remove(F)}}};
g.bn=function(F){var k=ax(),z=(0,g.HW)();if(!k&&!z||!window.JSON)return null;try{var x=k.get(F)}catch(D){}if(typeof x!=="string")try{x=z.get(F)}catch(D){}if(typeof x!=="string")return null;try{x=JSON.parse(x,void 0)}catch(D){}return x};
n2C=function(){var F=(0,g.HW)();if(F&&(F=F.L("yt-player-quality")))return F.creation};
g.da=function(F){try{var k=ax(),z=(0,g.HW)();k&&k.remove(F);z&&z.remove(F)}catch(x){}};
g.Jx=function(){return g.bn("yt-remote-session-screen-id")};
Mu5=function(F){var k=this;this.L=void 0;this.Y=!1;F.addEventListener("beforeinstallprompt",function(z){z.preventDefault();k.L=z});
F.addEventListener("appinstalled",function(){k.Y=!0},{once:!0})};
yB=function(){if(!g.bD.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.bD.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.bD.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.bD.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.bD.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(F){return"WEB_DISPLAY_MODE_UNKNOWN"}};
Rx=function(){this.Z6=!0};
L6a=function(){Rx.instance||(Rx.instance=new Rx);return Rx.instance};
fvn=function(F){switch(F){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
K6x=function(){this.Y=g.LX("ALT_PREF_COOKIE_NAME","PREF");this.L=g.LX("ALT_PREF_COOKIE_DOMAIN","youtube.com");var F=g.bP(this.Y);F&&this.parse(F)};
g.nu=function(){Yn||(Yn=new K6x);return Yn};
g.M5=function(F,k){return!!((W6k("f"+(Math.floor(k/31)+1))||0)&1<<k%31)};
fu=function(F,k){var z="f"+(Math.floor(F/31)+1);F=1<<F%31;var x=W6k(z)||0;x=k?x|F:x&~F;x===0?delete Lu[z]:(k=x.toString(16),Lu[z]=k.toString())};
Ku=function(F){if(/^f([1-9][0-9]*)$/.test(F))throw Error("ExpectedRegexMatch: "+F);};
WW=function(F){if(!/^\w+$/.test(F))throw Error("ExpectedRegexMismatch: "+F);};
W6k=function(F){F=Lu[F]!==void 0?Lu[F].toString():null;return F!=null&&/^[A-Fa-f0-9]+$/.test(F)?parseInt(F,16):null};
FC9=function(){var F=g.bD.navigator;return F?F.connection:void 0};
oek=function(){var F=FC9();if(F){var k=klp[F.type||"unknown"]||"CONN_UNKNOWN";F=klp[F.effectiveType||"unknown"]||"CONN_UNKNOWN";k==="CONN_CELLULAR_UNKNOWN"&&F!=="CONN_UNKNOWN"&&(k=F);if(k!=="CONN_UNKNOWN")return k;if(F!=="CONN_UNKNOWN")return F}};
xg6=function(){var F=FC9();if(F!=null&&F.effectiveType)return z6C.hasOwnProperty(F.effectiveType)?z6C[F.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
g.Fa=function(F){var k=g.v6.apply(1,arguments);var z=Error.call(this,F);this.message=z.message;"stack"in z&&(this.stack=z.stack);this.args=[].concat(g.r(k));Object.setPrototypeOf(this,this.constructor.prototype)};
g.ow=function(){try{return g.kK(),!0}catch(F){return!1}};
g.kK=function(F){if(g.LX("DATASYNC_ID")!==void 0)return g.LX("DATASYNC_ID");throw new g.Fa("Datasync ID not set",F===void 0?"unknown":F);};
zX=function(){this.Y=new WeakMap};
g.iM=function(F,k,z){return xK(k,0,z)};
i6x=function(F){var k=g.yR("yt.scheduler.instance.addImmediateJob");k?k(F):F()};
D0=function(){zX.apply(this,arguments)};
g.$K=function(){D0.instance||(D0.instance=new D0);return D0.instance};
g.jB=function(){return!!g.yR("yt.scheduler.instance")};
xK=function(F,k,z){z!==void 0&&Number.isNaN(Number(z))&&(z=void 0);var x=g.yR("yt.scheduler.instance.addJob");return x?x(F,k,z):z===void 0?(F(),NaN):g.mz(F,z||0)};
eB=function(F,k){(F=g.yR("yt.scheduler.instance.setPriorityThreshold"))&&F(k)};
CM=function(F){this.Y=(F=g.bT(F))?new Pj(F):null;this.L=document.domain||window.location.hostname};
pM=function(){var F;return(F=A6())==null?void 0:F.get("LAST_RESULT_ENTRY_KEY",!0)};
Dg5=function(){var F={};for(Et=new Xa(F.handleError===void 0?qA:F.handleError,F.logEvent===void 0?g.NA:F.logEvent);uM.length>0;)switch(F=uM.shift(),F.type){case "ERROR":Et.Q3(F.payload);break;case "EVENT":Et.logEvent(F.eventType,F.payload)}};
mg=function(F){w3||(Et?Et.Q3(F):(uM.push({type:"ERROR",payload:F}),uM.length>10&&uM.shift()))};
TX=function(F,k){w3||(Et?Et.logEvent(F,k):(uM.push({type:"EVENT",eventType:F,payload:k}),uM.length>10&&uM.shift()))};
lM=function(F){if(F.indexOf(":")>=0)throw Error("Database name cannot contain ':'");};
QE=function(F){return F.substr(0,F.indexOf(":"))||F};
g.h6=function(F,k,z,x,D){k=k===void 0?{}:k;z=z===void 0?$g5[F]:z;x=x===void 0?jR6[F]:x;D=D===void 0?e69[F]:D;g.Fa.call(this,z,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:F},k));this.type=F;this.message=z;this.level=x;this.Y=D;Object.setPrototypeOf(this,g.h6.prototype)};
r3=function(F,k){g.h6.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:k,foundObjectStores:F},$g5.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,r3.prototype)};
BA=function(F,k){var z=Error.call(this);this.message=z.message;"stack"in z&&(this.stack=z.stack);this.index=F;this.objectStore=k;Object.setPrototypeOf(this,BA.prototype)};
Ut=function(F,k,z,x){k=QE(k);var D=F instanceof Error?F:Error("Unexpected error: "+F);if(D instanceof g.h6)return D;F={objectStoreNames:z,dbName:k,dbVersion:x};if(D.name==="QuotaExceededError")return new g.h6("QUOTA_EXCEEDED",F);if(g.GX&&D.name==="UnknownError")return new g.h6("QUOTA_MAYBE_EXCEEDED",F);if(D instanceof BA)return new g.h6("MISSING_INDEX",Object.assign({},F,{objectStore:D.objectStore,index:D.index}));if(D.name==="InvalidStateError"&&CTC.some(function(e){return D.message.includes(e)}))return new g.h6("EXECUTE_TRANSACTION_ON_CLOSED_DB",
F);
if(D.name==="AbortError")return new g.h6("UNKNOWN_ABORT",F,D.message);D.args=[Object.assign({},F,{name:"IdbError",Np:D.name})];D.level="WARNING";return D};
g.t6=function(F,k,z){var x=pM();return new g.h6("IDB_NOT_SUPPORTED",{context:{caller:F,publicName:k,version:z,hasSucceededOnce:x==null?void 0:x.hasSucceededOnce}})};
AF6=function(F){if(!F)throw Error();throw F;};
pj6=function(F){return F};
Z0=function(F){this.Y=F};
g.vA=function(F){function k(D){if(x.state.status==="PENDING"){x.state={status:"REJECTED",reason:D};D=g.l(x.L);for(var e=D.next();!e.done;e=D.next())e=e.value,e()}}
function z(D){if(x.state.status==="PENDING"){x.state={status:"FULFILLED",value:D};D=g.l(x.Y);for(var e=D.next();!e.done;e=D.next())e=e.value,e()}}
var x=this;this.state={status:"PENDING"};this.Y=[];this.L=[];F=F.Y;try{F(z,k)}catch(D){k(D)}};
Een=function(F,k,z,x,D){try{if(F.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var e=z(F.state.value);e instanceof g.vA?cA(F,k,e,x,D):x(e)}catch(C){D(C)}};
XjD=function(F,k,z,x,D){try{if(F.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var e=z(F.state.reason);e instanceof g.vA?cA(F,k,e,x,D):x(e)}catch(C){D(C)}};
cA=function(F,k,z,x,D){k===z?D(new TypeError("Circular promise chain detected.")):z.then(function(e){e instanceof g.vA?cA(F,k,e,x,D):x(e)},function(e){D(e)})};
qWH=function(F,k,z){function x(){z(F.error);e()}
function D(){k(F.result);e()}
function e(){try{F.removeEventListener("success",D),F.removeEventListener("error",x)}catch(C){}}
F.addEventListener("success",D);F.addEventListener("error",x)};
N6C=function(F){return new Promise(function(k,z){qWH(F,k,z)})};
PA=function(F){return new g.vA(new Z0(function(k,z){qWH(F,k,z)}))};
Ot=function(F,k){return new g.vA(new Z0(function(z,x){function D(){var e=F?k(F):null;e?e.then(function(C){F=C;D()},x):z()}
D()}))};
uFY=function(F,k){this.request=F;this.cursor=k};
wja=function(F){return PA(F).then(function(k){return k?new uFY(F,k):null})};
g.mgx=function(F){F.cursor.continue(void 0);return wja(F.request)};
T6M=function(F,k){this.Y=F;this.options=k;this.transactionCount=0;this.U=Math.round((0,g.VE)());this.L=!1};
g.HA=function(F,k,z){F=F.Y.createObjectStore(k,z);return new Iw(F)};
aw=function(F,k){F.Y.objectStoreNames.contains(k)&&F.Y.deleteObjectStore(k)};
g.d3=function(F,k,z){return g.SB(F,[k],{mode:"readwrite",nN:!0},function(x){return g.bM(x.objectStore(k),z)})};
g.SB=function(F,k,z,x){var D,e,C,p,E,X,q,N,u,w,m,h;return g.O(function(B){switch(B.Y){case 1:var U={mode:"readonly",nN:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof z==="string"?U.mode=z:Object.assign(U,z);D=U;F.transactionCount++;e=D.nN?3:1;C=0;case 2:if(p){B.Sk(4);break}C++;E=Math.round((0,g.VE)());g.lD(B,5);X=F.Y.transaction(k,D.mode);U=new J6(X);U=len(U,x);return g.c(B,U,7);case 7:return q=B.L,N=Math.round((0,g.VE)()),QRa(F,E,N,C,void 0,k.join(),D),B.return(q);case 5:u=g.rI(B);w=Math.round((0,g.VE)());
m=Ut(u,F.Y.name,k.join(),F.Y.version);if((h=m instanceof g.h6&&!m.Y)||C>=e)QRa(F,E,w,C,m,k.join(),D),p=m;B.Sk(2);break;case 4:return B.return(Promise.reject(p))}})};
QRa=function(F,k,z,x,D,e,C){k=z-k;D?(D instanceof g.h6&&(D.type==="QUOTA_EXCEEDED"||D.type==="QUOTA_MAYBE_EXCEEDED")&&TX("QUOTA_EXCEEDED",{dbName:QE(F.Y.name),objectStoreNames:e,transactionCount:F.transactionCount,transactionMode:C.mode}),D instanceof g.h6&&D.type==="UNKNOWN_ABORT"&&(z-=F.U,z<0&&z>=2147483648&&(z=0),TX("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:e,transactionDuration:k,transactionCount:F.transactionCount,dbDuration:z}),F.L=!0),h6D(F,!1,x,e,k,C.tag),mg(D)):h6D(F,!0,x,e,k,
C.tag)};
h6D=function(F,k,z,x,D,e){TX("TRANSACTION_ENDED",{objectStoreNames:x,connectionHasUnknownAbortedTransaction:F.L,duration:D,isSuccessful:k,tryCount:z,tag:e===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":e})};
Iw=function(F){this.Y=F};
g.yE=function(F,k,z){F.Y.createIndex(k,z,{unique:!1})};
sRH=function(F,k){return g.Rw(F,{query:k},function(z){return z.delete().then(function(){return g.g3(z)})}).then(function(){})};
rFk=function(F,k,z){var x=[];return g.Rw(F,{query:k},function(D){if(!(z!==void 0&&x.length>=z))return x.push(D.getValue()),g.g3(D)}).then(function(){return x})};
Glk=function(F){return"getAllKeys"in IDBObjectStore.prototype?PA(F.Y.getAllKeys(void 0,void 0)):B6x(F)};
B6x=function(F){var k=[];return g.UgY(F,{query:void 0},function(z){k.push(z.cursor.primaryKey);return g.mgx(z)}).then(function(){return k})};
g.bM=function(F,k,z){return PA(F.Y.put(k,z))};
g.Rw=function(F,k,z){F=F.Y.openCursor(k.query,k.direction);return YK(F).then(function(x){return Ot(x,z)})};
g.UgY=function(F,k,z){var x=k.query;k=k.direction;F="openKeyCursor"in IDBObjectStore.prototype?F.Y.openKeyCursor(x,k):F.Y.openCursor(x,k);return wja(F).then(function(D){return Ot(D,z)})};
J6=function(F){var k=this;this.Y=F;this.U=new Map;this.L=!1;this.done=new Promise(function(z,x){k.Y.addEventListener("complete",function(){z()});
k.Y.addEventListener("error",function(D){D.currentTarget===D.target&&x(k.Y.error)});
k.Y.addEventListener("abort",function(){var D=k.Y.error;if(D)x(D);else if(!k.L){D=g.h6;for(var e=k.Y.objectStoreNames,C=[],p=0;p<e.length;p++){var E=e.item(p);if(E===null)throw Error("Invariant: item in DOMStringList is null");C.push(E)}D=new D("UNKNOWN_ABORT",{objectStoreNames:C.join(),dbName:k.Y.db.name,mode:k.Y.mode});x(D)}})})};
len=function(F,k){var z=new Promise(function(x,D){try{k(F).then(function(e){x(e)}).catch(D)}catch(e){D(e),F.abort()}});
return Promise.all([z,F.done]).then(function(x){return g.l(x).next().value})};
tdR=function(F){this.Y=F};
Z6R=function(F,k,z){var x=[];return g.nM(F,{query:k},function(D){if(!(z!==void 0&&x.length>=z))return x.push(D.getValue()),g.g3(D)}).then(function(){return x})};
g.nM=function(F,k,z){F=F.Y.openCursor(k.query===void 0?null:k.query,k.direction===void 0?"next":k.direction);return YK(F).then(function(x){return Ot(x,z)})};
MA=function(F,k){this.request=F;this.cursor=k};
YK=function(F){return PA(F).then(function(k){return k?new MA(F,k):null})};
g.g3=function(F){F.cursor.continue(void 0);return YK(F.request)};
ve9=function(F,k,z){return new Promise(function(x,D){function e(){u||(u=new T6M(C.result,{closed:N}));return u}
var C=k!==void 0?self.indexedDB.open(F,k):self.indexedDB.open(F);var p=z.blocked,E=z.blocking,X=z.rH4,q=z.upgrade,N=z.closed,u;C.addEventListener("upgradeneeded",function(w){try{if(w.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(C.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");w.dataLoss&&w.dataLoss!=="none"&&TX("IDB_DATA_CORRUPTED",{reason:w.dataLossMessage||"unknown reason",dbName:QE(F)});var m=e(),h=new J6(C.transaction);
q&&q(m,function(B){return w.oldVersion<B&&w.newVersion>=B},h);
h.done.catch(function(B){D(B)})}catch(B){D(B)}});
C.addEventListener("success",function(){var w=C.result;E&&w.addEventListener("versionchange",function(){E(e())});
w.addEventListener("close",function(){TX("IDB_UNEXPECTEDLY_CLOSED",{dbName:QE(F),dbVersion:w.version});X&&X()});
x(e())});
C.addEventListener("error",function(){D(C.error)});
p&&C.addEventListener("blocked",function(){p()})})};
cF6=function(F,k,z){z=z===void 0?{}:z;return ve9(F,k,z)};
LM=function(F,k){k=k===void 0?{}:k;var z,x,D,e;return g.O(function(C){if(C.Y==1)return g.lD(C,2),z=self.indexedDB.deleteDatabase(F),x=k,(D=x.blocked)&&z.addEventListener("blocked",function(){D()}),g.c(C,N6C(z),4);
if(C.Y!=2)return g.sC(C,0);e=g.rI(C);throw Ut(e,F,"",-1);})};
fM=function(F,k){this.name=F;this.options=k;this.U=!0;this.W=this.j=0};
PTD=function(F,k){return new g.h6("INCOMPATIBLE_DB_VERSION",{dbName:F.name,oldVersion:F.options.version,newVersion:k})};
g.KM=function(F,k){if(!k)throw g.t6("openWithToken",QE(F.name));return F.open()};
O6D=function(F,k){var z;return g.O(function(x){if(x.Y==1)return g.c(x,g.KM(WA,k),2);z=x.L;return x.return(g.SB(z,["databases"],{nN:!0,mode:"readwrite"},function(D){var e=D.objectStore("databases");return e.get(F.actualName).then(function(C){if(C?F.actualName!==C.actualName||F.publicName!==C.publicName||F.userIdentifier!==C.userIdentifier:1)return g.bM(e,F).then(function(){})})}))})};
FK=function(F,k){var z;return g.O(function(x){if(x.Y==1)return F?g.c(x,g.KM(WA,k),2):x.return();z=x.L;return x.return(z.delete("databases",F))})};
Vdk=function(F,k){var z,x;return g.O(function(D){return D.Y==1?(z=[],g.c(D,g.KM(WA,k),2)):D.Y!=3?(x=D.L,g.c(D,g.SB(x,["databases"],{nN:!0,mode:"readonly"},function(e){z.length=0;return g.Rw(e.objectStore("databases"),{},function(C){F(C.getValue())&&z.push(C.getValue());return g.g3(C)})}),3)):D.return(z)})};
IeC=function(F,k){return Vdk(function(z){return z.publicName===F&&z.userIdentifier!==void 0},k)};
H6k=function(){var F,k,z,x;return g.O(function(D){switch(D.Y){case 1:F=pM();if((k=F)==null?0:k.hasSucceededOnce)return D.return(!0);if(k4&&Wp()&&!FG()||g.o9)return D.return(!1);try{if(z=self,!(z.indexedDB&&z.IDBIndex&&z.IDBKeyRange&&z.IDBObjectStore))return D.return(!1)}catch(e){return D.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return D.return(!1);g.lD(D,2);x={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.c(D,O6D(x,zI),4);case 4:return g.c(D,FK("yt-idb-test-do-not-use",zI),5);case 5:return D.return(!0);case 2:return g.rI(D),D.return(!1)}})};
aex=function(){if(x4!==void 0)return x4;w3=!0;return x4=H6k().then(function(F){w3=!1;var k;if((k=A6())!=null&&k.Y){var z;k={hasSucceededOnce:((z=pM())==null?void 0:z.hasSucceededOnce)||F};var x;(x=A6())==null||x.set("LAST_RESULT_ENTRY_KEY",k,2592E3,!0)}return F})};
ia=function(){return g.yR("ytglobal.idbToken_")||void 0};
g.DZ=function(){var F=ia();return F?Promise.resolve(F):aex().then(function(k){(k=k?zI:void 0)&&g.dI("ytglobal.idbToken_",k);return k})};
SWx=function(F){if(!g.ow())throw F=new g.h6("AUTH_INVALID",{dbName:F}),mg(F),F;var k=g.kK();return{actualName:F+":"+k,publicName:F,userIdentifier:k}};
b66=function(F,k,z,x){var D,e,C,p,E,X;return g.O(function(q){switch(q.Y){case 1:return e=(D=Error().stack)!=null?D:"",g.c(q,g.DZ(),2);case 2:C=q.L;if(!C)throw p=g.t6("openDbImpl",F,k),g.sY("ytidb_async_stack_killswitch")||(p.stack=p.stack+"\n"+e.substring(e.indexOf("\n")+1)),mg(p),p;lM(F);E=z?{actualName:F,publicName:F,userIdentifier:void 0}:SWx(F);g.lD(q,3);return g.c(q,O6D(E,C),5);case 5:return g.c(q,cF6(E.actualName,k,x),6);case 6:return q.return(q.L);case 3:return X=g.rI(q),g.lD(q,7),g.c(q,FK(E.actualName,
C),9);case 9:g.sC(q,8);break;case 7:g.rI(q);case 8:throw X;}})};
dgC=function(F,k,z){z=z===void 0?{}:z;return b66(F,k,!1,z)};
JF6=function(F,k,z){z=z===void 0?{}:z;return b66(F,k,!0,z)};
yF6=function(F,k){k=k===void 0?{}:k;var z,x;return g.O(function(D){if(D.Y==1)return g.c(D,g.DZ(),2);if(D.Y!=3){z=D.L;if(!z)return D.return();lM(F);x=SWx(F);return g.c(D,LM(x.actualName,k),3)}return g.c(D,FK(x.actualName,z),0)})};
R6D=function(F,k,z){F=F.map(function(x){return g.O(function(D){return D.Y==1?g.c(D,LM(x.actualName,k),2):g.c(D,FK(x.actualName,z),0)})});
return Promise.all(F).then(function(){})};
gex=function(F){var k=k===void 0?{}:k;var z,x;return g.O(function(D){if(D.Y==1)return g.c(D,g.DZ(),2);if(D.Y!=3){z=D.L;if(!z)return D.return();lM(F);return g.c(D,IeC(F,z),3)}x=D.L;return g.c(D,R6D(x,k,z),0)})};
YW5=function(F,k){k=k===void 0?{}:k;var z;return g.O(function(x){if(x.Y==1)return g.c(x,g.DZ(),2);if(x.Y!=3){z=x.L;if(!z)return x.return();lM(F);return g.c(x,LM(F,k),3)}return g.c(x,FK(F,z),0)})};
$4=function(F,k){fM.call(this,F,k);this.options=k;lM(F)};
nen=function(F,k){var z;return function(){z||(z=new $4(F,k));return z}};
g.jA=function(F,k){return nen(F,k)};
eA=function(F){return g.KM(MdR(),F)};
LCC=function(F,k,z,x){var D,e,C;return g.O(function(p){switch(p.Y){case 1:return D={config:F,hashData:k,timestamp:x!==void 0?x:(0,g.VE)()},g.c(p,eA(z),2);case 2:return e=p.L,g.c(p,e.clear("hotConfigStore"),3);case 3:return g.c(p,g.d3(e,"hotConfigStore",D),4);case 4:return C=p.L,p.return(C)}})};
fep=function(F,k,z,x,D){var e,C,p;return g.O(function(E){switch(E.Y){case 1:return e={config:F,hashData:k,configData:z,timestamp:D!==void 0?D:(0,g.VE)()},g.c(E,eA(x),2);case 2:return C=E.L,g.c(E,C.clear("coldConfigStore"),3);case 3:return g.c(E,g.d3(C,"coldConfigStore",e),4);case 4:return p=E.L,E.return(p)}})};
KCM=function(F){var k,z;return g.O(function(x){return x.Y==1?g.c(x,eA(F),2):x.Y!=3?(k=x.L,z=void 0,g.c(x,g.SB(k,["coldConfigStore"],{mode:"readwrite",nN:!0},function(D){return g.nM(D.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(e){z=e.getValue()})}),3)):x.return(z)})};
WCM=function(F){var k,z;return g.O(function(x){return x.Y==1?g.c(x,eA(F),2):x.Y!=3?(k=x.L,z=void 0,g.c(x,g.SB(k,["hotConfigStore"],{mode:"readwrite",nN:!0},function(D){return g.nM(D.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(e){z=e.getValue()})}),3)):x.return(z)})};
F3p=function(){return g.O(function(F){return g.c(F,gex("ytGcfConfig"),0)})};
Cb=function(){g.S.call(this);this.L=[];this.Y=[];var F=g.yR("yt.gcf.config.hotUpdateCallbacks");F?(this.L=[].concat(g.r(F)),this.Y=F):(this.Y=[],g.dI("yt.gcf.config.hotUpdateCallbacks",this.Y))};
NK=function(){var F=this;this.W=!1;this.U=this.j=0;this.S=new Cb;this.Pe={rgk:function(){F.W=!0},
Zyp:function(){return F.Y},
Y7J:function(k){Ay(F,k)},
iW:function(k){F.iW(k)},
s5k:function(k){pb(F,k)},
Jj:function(){return F.coldHashData},
wh:function(){return F.hotHashData},
i04:function(){return F.L},
U6U:function(){return Ea()},
PBp:function(){return XK()},
Q94:function(){return g.yR("yt.gcf.config.coldHashData")},
aAK:function(){return g.yR("yt.gcf.config.hotHashData")},
crf:function(){ks9(F)},
B5p:function(){F.iW(void 0);qK(F);delete NK.instance},
rf$:function(k){F.U=k},
vy_:function(){return F.U}}};
ocH=function(){if(!NK.instance){var F=new NK;NK.instance=F}return NK.instance};
iXn=function(F){var k;g.O(function(z){if(z.Y==1)return g.sY("start_client_gcf")||g.sY("delete_gcf_config_db")?g.sY("start_client_gcf")?g.c(z,g.DZ(),3):z.Sk(2):z.return();z.Y!=2&&((k=z.L)&&g.ow()&&!g.sY("delete_gcf_config_db")?(F.W=!0,ks9(F)):(zJp(F),xJp(F)));return g.sY("delete_gcf_config_db")?g.c(z,F3p(),0):z.Sk(0)})};
ua=function(){var F;return(F=XK())!=null?F:g.LX("RAW_HOT_CONFIG_GROUP")};
DJC=function(F){var k,z,x,D,e,C;return g.O(function(p){switch(p.Y){case 1:if(F.L)return p.return(XK());if(!F.W)return k=g.t6("getHotConfig IDB not initialized"),zE(k),p.return(Promise.reject(k));z=ia();x=g.LX("TIME_CREATED_MS");if(!z){D=g.t6("getHotConfig token error");zE(D);p.Sk(2);break}return g.c(p,WCM(z),3);case 3:if((e=p.L)&&e.timestamp>x)return Ay(F,e.config),F.iW(e.hashData),p.return(XK());case 2:xJp(F);if(!(z&&F.L&&F.hotHashData)){p.Sk(4);break}return g.c(p,LCC(F.L,F.hotHashData,z,x),4);case 4:return F.L?
p.return(XK()):(C=new g.Fa("Config not available in ytConfig"),zE(C),p.return(Promise.reject(C)))}})};
jAn=function(F){var k,z,x,D,e,C;return g.O(function(p){switch(p.Y){case 1:if(F.Y)return p.return(Ea());if(!F.W)return k=g.t6("getColdConfig IDB not initialized"),zE(k),p.return(Promise.reject(k));z=ia();x=g.LX("TIME_CREATED_MS");if(!z){D=g.t6("getColdConfig");zE(D);p.Sk(2);break}return g.c(p,KCM(z),3);case 3:if((e=p.L)&&e.timestamp>x)return pb(F,e.config),$Jn(F,e.configData),qK(F,e.hashData),p.return(Ea());case 2:zJp(F);if(!(z&&F.Y&&F.coldHashData&&F.configData)){p.Sk(4);break}return g.c(p,fep(F.Y,
F.coldHashData,F.configData,z,x),4);case 4:return F.Y?p.return(Ea()):(C=new g.Fa("Config not available in ytConfig"),zE(C),p.return(Promise.reject(C)))}})};
ks9=function(F){if(!F.L||!F.Y){if(!ia()){var k=g.t6("scheduleGetConfigs");zE(k)}F.j||(F.j=g.RC.Oi(function(){return g.O(function(z){switch(z.Y){case 1:return g.lD(z,2),g.c(z,DJC(F),4);case 4:g.sC(z,3);break;case 2:g.rI(z);case 3:return g.lD(z,5),g.c(z,jAn(F),7);case 7:g.sC(z,6);break;case 5:g.rI(z);case 6:F.j&&(F.j=0),g.Tp(z)}})},100))}};
eJx=function(F,k,z){var x,D,e;return g.O(function(C){switch(C.Y){case 1:if(!g.sY("start_client_gcf")){C.Sk(0);break}z&&Ay(F,z);F.iW(k);x=ia();if(!x){C.Sk(3);break}if(z){C.Sk(4);break}return g.c(C,WCM(x),5);case 5:D=C.L,z=(e=D)==null?void 0:e.config;case 4:return g.c(C,LCC(z,k,x),3);case 3:if(z)for(var p=z,E=g.l(F.S.Y),X=E.next();!X.done;X=E.next())X=X.value,X(p);g.Tp(C)}})};
C16=function(F,k,z){var x,D,e,C;return g.O(function(p){if(p.Y==1){if(!g.sY("start_client_gcf"))return p.Sk(0);qK(F,k);return(x=ia())?z?p.Sk(4):g.c(p,KCM(x),5):p.Sk(0)}p.Y!=4&&(D=p.L,z=(e=D)==null?void 0:e.config);if(!z)return p.Sk(0);C=z.configData;return g.c(p,fep(z,k,C,x),0)})};
AUY=function(){var F=ocH(),k=(0,g.VE)()-F.U;if(!(F.U!==0&&k<g.rz("send_config_hash_timer"))){k=g.yR("yt.gcf.config.coldConfigData");var z=g.yR("yt.gcf.config.hotHashData"),x=g.yR("yt.gcf.config.coldHashData");k&&z&&x&&(F.U=(0,g.VE)());return{coldConfigData:k,hotHashData:z,coldHashData:x}}};
zJp=function(F){pb(F,g.LX("RAW_COLD_CONFIG_GROUP"));qK(F,g.LX("SERIALIZED_COLD_HASH_DATA"));var k;$Jn(F,(k=F.Y)==null?void 0:k.configData)};
xJp=function(F){Ay(F,g.LX("RAW_HOT_CONFIG_GROUP"));F.iW(g.LX("SERIALIZED_HOT_HASH_DATA"))};
Ay=function(F,k){F.L=k;g.dI("yt.gcf.config.hotConfigGroup",F.L||null)};
pb=function(F,k){F.Y=k;g.dI("yt.gcf.config.coldConfigGroup",F.Y||null)};
qK=function(F,k){F.coldHashData=k;g.dI("yt.gcf.config.coldHashData",F.coldHashData||null)};
$Jn=function(F,k){F.configData=k;g.dI("yt.gcf.config.coldConfigData",F.configData||null)};
XK=function(){return g.yR("yt.gcf.config.hotConfigGroup")};
Ea=function(){return g.yR("yt.gcf.config.coldConfigGroup")};
pIY=function(){return"INNERTUBE_API_KEY"in nX&&"INNERTUBE_API_VERSION"in nX};
g.w4=function(){return{innertubeApiKey:g.LX("INNERTUBE_API_KEY"),innertubeApiVersion:g.LX("INNERTUBE_API_VERSION"),tU:g.LX("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),Jy:g.LX("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),Nh:g.LX("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.LX("INNERTUBE_CONTEXT_CLIENT_VERSION"),qg:g.LX("INNERTUBE_CONTEXT_HL"),Rd:g.LX("INNERTUBE_CONTEXT_GL"),wr:g.LX("INNERTUBE_HOST_OVERRIDE")||"",Bb:!!g.LX("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),C$K:!!g.LX("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.LX("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.mN=function(F){var k={client:{hl:F.qg,gl:F.Rd,clientName:F.Jy,clientVersion:F.innertubeContextClientVersion,configInfo:F.tU}};navigator.userAgent&&(k.client.userAgent=String(navigator.userAgent));var z=g.bD.devicePixelRatio;z&&z!=1&&(k.client.screenDensityFloat=String(z));z=Bp();z!==""&&(k.client.experimentsToken=z);z=GE();z.length>0&&(k.request={internalExperimentFlags:z});Eca(F,void 0,k);XI6(void 0,k);qrC(void 0,k);NUH(F,void 0,k);ukx(void 0,k);g.sY("start_client_gcf")&&wIM(void 0,k);g.LX("DELEGATED_SESSION_ID")&&
!g.sY("pageid_as_header_web")&&(k.user={onBehalfOfUser:g.LX("DELEGATED_SESSION_ID")});!g.sY("fill_delegate_context_in_gel_killswitch")&&(F=g.LX("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(k.user=Object.assign({},k.user,{serializedDelegationContext:F}));F=g.LX("INNERTUBE_CONTEXT");var x;if(g.sY("enable_persistent_device_token")&&(F==null?0:(x=F.client)==null?0:x.rolloutToken)){var D;k.client.rolloutToken=F==null?void 0:(D=F.client)==null?void 0:D.rolloutToken}x=Object;D=x.assign;F=k.client;
z={};for(var e=g.l(Object.entries(DC(g.LX("DEVICE","")))),C=e.next();!C.done;C=e.next()){var p=g.l(C.value);C=p.next().value;p=p.next().value;C==="cbrand"?z.deviceMake=p:C==="cmodel"?z.deviceModel=p:C==="cbr"?z.browserName=p:C==="cbrver"?z.browserVersion=p:C==="cos"?z.osName=p:C==="cosver"?z.osVersion=p:C==="cplatform"&&(z.platform=p)}k.client=D.call(x,F,z);return k};
Eca=function(F,k,z){F=F.Jy;if(F==="WEB"||F==="MWEB"||F===1||F===2)if(k){z=q6(k,cI,96)||new cI;var x=yB();x=Object.keys(mJp).indexOf(x);x=x===-1?null:x;x!==null&&GS(z,3,x);N6(k,cI,96,z)}else z&&(z.client.mainAppWebInfo=(x=z.client.mainAppWebInfo)!=null?x:{},z.client.mainAppWebInfo.webDisplayMode=yB())};
XI6=function(F,k){var z=g.yR("yt.embedded_player.embed_url");z&&(F?(k=q6(F,HI,7)||new HI,r$(k,4,z),N6(F,HI,7,k)):k&&(k.thirdParty={embedUrl:z}))};
qrC=function(F,k){var z;if(g.sY("web_log_memory_total_kbytes")&&((z=g.bD.navigator)==null?0:z.deviceMemory)){var x;z=(x=g.bD.navigator)==null?void 0:x.deviceMemory;F?Le(F,95,Qp(z*1E6)):k&&(k.client.memoryTotalKbytes=""+z*1E6)}};
NUH=function(F,k,z){if(F.appInstallData)if(k){var x;z=(x=q6(k,vI,62))!=null?x:new vI;r$(z,6,F.appInstallData);N6(k,vI,62,z)}else z&&(z.client.configInfo=z.client.configInfo||{},z.client.configInfo.appInstallData=F.appInstallData)};
ukx=function(F,k){var z=oek();z&&(F?GS(F,61,TUH[z]):k&&(k.client.connectionType=z));g.sY("web_log_effective_connection_type")&&(z=xg6())&&(F?GS(F,94,l3Y[z]):k&&(k.client.effectiveConnectionType=z))};
QAH=function(F,k,z){z=z===void 0?{}:z;var x={};g.LX("EOM_VISITOR_DATA")?x={"X-Goog-EOM-Visitor-Id":g.LX("EOM_VISITOR_DATA")}:x={"X-Goog-Visitor-Id":z.visitorData||g.LX("VISITOR_DATA","")};if(k&&k.includes("www.youtube-nocookie.com"))return x;k=z.LZ||g.LX("AUTHORIZATION");k||(F?k="Bearer "+g.yR("gapi.auth.getToken")().access_token:(F=L6a().a_(TI),g.sY("pageid_as_header_web")||delete F["X-Goog-PageId"],x=Object.assign({},x,F)));k&&(x.Authorization=k);return x};
wIM=function(F,k){var z=AUY();if(z){var x=z.coldConfigData,D=z.coldHashData;z=z.hotHashData;if(F){var e;k=(e=q6(F,vI,62))!=null?e:new vI;x=r$(k,1,x);r$(x,3,D).iW(z);N6(F,vI,62,k)}else k&&(k.client.configInfo=k.client.configInfo||{},x&&(k.client.configInfo.coldConfigData=x),D&&(k.client.configInfo.coldHashData=D),z&&(k.client.configInfo.hotHashData=z))}};
la=function(F,k){this.version=F;this.args=k};
Ql=function(F,k){this.topic=F;this.Y=k};
sa=function(F,k){var z=hy();z&&z.publish.call(z,F.toString(),F,k)};
rUD=function(F){var k=hJk,z=hy();if(!z)return 0;var x=z.subscribe(k.toString(),function(D,e){var C=g.yR("ytPubsub2Pubsub2SkipSubKey");C&&C==x||(C=function(){if(ZZ[x])try{if(e&&k instanceof Ql&&k!=D)try{var p=k.Y,E=e;if(!E.args||!E.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!p.ZL){var X=new p;p.ZL=X.version}var q=p.ZL}catch(N){}if(!q||E.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{e=Reflect.construct(p,
g.z8(E.args))}catch(N){throw N.message="yt.pubsub2.Data.deserialize(): "+N.message,N;}}catch(N){throw N.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+k.toString()+": "+N.message,N;}F.call(window,e)}catch(N){g.kT(N)}},sAM[k.toString()]?g.jB()?g.RC.Oi(C):g.mz(C,0):C())});
ZZ[x]=!0;vy[k.toString()]||(vy[k.toString()]=[]);vy[k.toString()].push(x);return x};
UJ9=function(){var F=BUI,k=rUD(function(z){F.apply(void 0,arguments);GsH(k)});
return k};
GsH=function(F){var k=hy();k&&(typeof F==="number"&&(F=[F]),g.XN(F,function(z){k.unsubscribeByKey(z);delete ZZ[z]}))};
hy=function(){return g.yR("ytPubsub2Pubsub2Instance")};
cy=function(F,k,z){z=z===void 0?{sampleRate:.1}:z;Math.random()<Math.min(.02,z.sampleRate/100)&&sa("meta_logging_csi_event",{timerName:F,edp:k})};
tgx=function(){Py||(Py=Gs(g.LX("WORKER_SERIALIZATION_URL")));return Py||void 0};
Vl=function(){var F=tgx();Oa||F===void 0||(Oa=new Worker(H1(F),void 0));return Oa};
ZXx=function(){return typeof Worker==="function"&&tgx()?!0:!1};
cUp=function(){if(ZXx()&&!I9){var F=function(z){z=z.data;if(z.op==="gzippedGelBatch"){var x=Hy.get(z.key);x&&(vcn(z.gzippedBatch,x.latencyPayload,x.url,x.options,x.sendFn),Hy.delete(z.key))}},k=Vl();
k&&(k.addEventListener("message",F),k.onerror=function(){Hy.clear()},I9=!0)}};
ba=function(F,k,z,x,D){D=D===void 0?!1:D;var e={startTime:(0,g.VE)(),ticks:{},infos:{}};if(a9)try{var C=P1D(k);if(C!=null&&(C>OXY||C<Vg9))x(F,z);else{if(g.sY("gzip_gel_with_worker")&&(g.sY("initial_gzip_use_main_thread")&&!I3I||!g.sY("initial_gzip_use_main_thread"))){I9||cUp();var p=Vl();if(p&&!D){Hy.set(SA,{latencyPayload:e,url:F,options:z,sendFn:x});p.postMessage({op:"gelBatchToGzip",serializedBatch:k,key:SA});SA++;return}}var E=h4R(HXY(k));vcn(E,e,F,z,x)}}catch(X){zE(X),x(F,z)}else x(F,z)};
vcn=function(F,k,z,x,D){I3I=!1;var e=(0,g.VE)();k.ticks.gelc=e;d4++;g.sY("disable_compression_due_to_performance_degredation")&&e-k.startTime>=a3C&&(Jy++,g.sY("abandon_compression_after_N_slow_zips")?d4===g.rz("compression_disable_point")&&Jy>Srn&&(a9=!1):a9=!1);bXk(k);x.headers||(x.headers={});x.headers["Content-Encoding"]="gzip";x.postBody=F;x.postParams=void 0;D(z,x)};
dJH=function(F){var k=k===void 0?!1:k;var z=z===void 0?!1:z;var x=(0,g.VE)(),D={startTime:x,ticks:{},infos:{}},e=k?g.yR("yt.logging.gzipForFetch",!1):!0;if(a9&&e){if(!F.body)return F;try{var C=z?F.body:typeof F.body==="string"?F.body:JSON.stringify(F.body);e=C;if(!z&&typeof C==="string"){var p=P1D(C);if(p!=null&&(p>OXY||p<Vg9))return F;z=k?{level:1}:void 0;e=h4R(HXY(C),z);var E=(0,g.VE)();D.ticks.gelc=E;if(k){d4++;if((g.sY("disable_compression_due_to_performance_degredation")||g.sY("disable_compression_due_to_performance_degradation_lr"))&&
E-x>=a3C)if(Jy++,g.sY("abandon_compression_after_N_slow_zips")||g.sY("abandon_compression_after_N_slow_zips_lr")){k=Jy/d4;var X=Srn/g.rz("compression_disable_point");d4>0&&d4%g.rz("compression_disable_point")===0&&k>=X&&(a9=!1)}else a9=!1;bXk(D)}}F.headers=Object.assign({},{"Content-Encoding":"gzip"},F.headers||{});F.body=e;return F}catch(q){return zE(q),F}}else return F};
P1D=function(F){try{return(new Blob(F.split(""))).size}catch(k){return zE(k),null}};
bXk=function(F){g.sY("gel_compression_csi_killswitch")||!g.sY("log_gel_compression_latency")&&!g.sY("log_gel_compression_latency_lr")||cy("gel_compression",F,{sampleRate:.1})};
R9=function(F){var k=this;this.n3=this.Y=!1;this.potentialEsfErrorCounter=this.L=0;this.handleError=function(){};
this.hP=function(){};
this.now=Date.now;this.Ht=!1;this.Pe={KLR:function(q){k.dR=q},
gC4:function(){k.eE()},
KM:function(){k.mz()},
Hf:function(q){return g.O(function(N){return g.c(N,k.Hf(q),0)})},
lw:function(q,N){return k.lw(q,N)},
JW:function(){k.JW()}};
var z;this.O5=(z=F.O5)!=null?z:100;var x;this.Yc=(x=F.Yc)!=null?x:1;var D;this.pK=(D=F.pK)!=null?D:2592E6;var e;this.fK=(e=F.fK)!=null?e:12E4;var C;this.dG=(C=F.dG)!=null?C:5E3;var p;this.dR=(p=F.dR)!=null?p:void 0;this.LH=!!F.LH;var E;this.f3=(E=F.f3)!=null?E:.1;var X;this.L6=(X=F.L6)!=null?X:10;F.handleError&&(this.handleError=F.handleError);F.hP&&(this.hP=F.hP);F.Ht&&(this.Ht=F.Ht);F.n3&&(this.n3=F.n3);this.Ca=F.Ca;this.xq=F.xq;this.Oz=F.Oz;this.V_=F.V_;this.sendFn=F.sendFn;this.nA=F.nA;this.qG=
F.qG;yl(this)&&(!this.Ca||this.Ca("networkless_logging"))&&JUa(this)};
JUa=function(F){yl(F)&&!F.Ht&&(F.Y=!0,F.LH&&Math.random()<=F.f3&&F.Oz.Yz(F.dR),F.JW(),F.V_.bG()&&F.eE(),F.V_.listen(F.nA,F.eE.bind(F)),F.V_.listen(F.qG,F.mz.bind(F)))};
gck=function(F,k){if(!yl(F))throw Error("IndexedDB is not supported: updateRequestHandlers");var z=k.options.onError?k.options.onError:function(){};
k.options.onError=function(D,e){var C,p,E,X;return g.O(function(q){switch(q.Y){case 1:C=yUp(e);(p=RJ5(e))&&F.Ca&&F.Ca("web_enable_error_204")&&F.handleError(Error("Request failed due to compression"),k.url,e);if(!(F.Ca&&F.Ca("nwl_consider_error_code")&&C||F.Ca&&!F.Ca("nwl_consider_error_code")&&F.potentialEsfErrorCounter<=F.L6)){q.Sk(2);break}if(!F.V_.wg){q.Sk(3);break}return g.c(q,F.V_.wg(),3);case 3:if(F.V_.bG()){q.Sk(2);break}z(D,e);if(!F.Ca||!F.Ca("nwl_consider_error_code")||((E=k)==null?void 0:
E.id)===void 0){q.Sk(6);break}return g.c(q,F.Oz.hc(k.id,F.dR,!1),6);case 6:return q.return();case 2:if(F.Ca&&F.Ca("nwl_consider_error_code")&&!C&&F.potentialEsfErrorCounter>F.L6)return q.return();F.potentialEsfErrorCounter++;if(((X=k)==null?void 0:X.id)===void 0){q.Sk(8);break}return k.sendCount<F.Yc?g.c(q,F.Oz.hc(k.id,F.dR,!0,p?!1:void 0),12):g.c(q,F.Oz.Ik(k.id,F.dR),8);case 12:F.xq.Oi(function(){F.V_.bG()&&F.eE()},F.dG);
case 8:z(D,e),g.Tp(q)}})};
var x=k.options.onSuccess?k.options.onSuccess:function(){};
k.options.onSuccess=function(D,e){var C;return g.O(function(p){if(p.Y==1)return((C=k)==null?void 0:C.id)===void 0?p.Sk(2):g.c(p,F.Oz.Ik(k.id,F.dR),2);F.V_.yF&&F.Ca&&F.Ca("vss_network_hint")&&F.V_.yF(!0);x(D,e);g.Tp(p)})};
return k};
g4=function(F,k){F.Or&&!F.V_.bG()?F.Or(k):F.handleError(k)};
yl=function(F){return!!F.dR||F.n3};
yUp=function(F){var k;return(F=F==null?void 0:(k=F.error)==null?void 0:k.code)&&F>=400&&F<=599?!1:!0};
RJ5=function(F){var k;F=F==null?void 0:(k=F.error)==null?void 0:k.code;return!(F!==400&&F!==415)};
YrI=function(){if(Y4)return Y4();var F={};Y4=g.jA("LogsDatabaseV2",{C0:(F.LogsRequestsStore={Ot:2},F),shared:!1,upgrade:function(k,z,x){z(2)&&g.HA(k,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});z(3);z(5)&&(x=x.objectStore("LogsRequestsStore"),x.Y.indexNames.contains("newRequest")&&x.Y.deleteIndex("newRequest"),g.yE(x,"newRequestV2",["status","interface","timestamp"]));z(7)&&aw(k,"sapisid");z(9)&&aw(k,"SWHealthLog")},
version:9});return Y4()};
nb=function(F){return g.KM(YrI(),F)};
Mga=function(F,k){var z,x,D,e;return g.O(function(C){if(C.Y==1)return z={startTime:(0,g.VE)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.c(C,nb(k),2);if(C.Y!=3)return x=C.L,D=Object.assign({},F,{options:JSON.parse(JSON.stringify(F.options)),interface:g.LX("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.c(C,g.d3(x,"LogsRequestsStore",D),3);e=C.L;z.ticks.tc=(0,g.VE)();ncR(z);return C.return(e)})};
L3D=function(F,k){var z,x,D,e,C,p,E,X;return g.O(function(q){if(q.Y==1)return z={startTime:(0,g.VE)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.c(q,nb(k),2);if(q.Y!=3)return x=q.L,D=g.LX("INNERTUBE_CONTEXT_CLIENT_NAME",0),e=[F,D,0],C=[F,D,(0,g.VE)()],p=IDBKeyRange.bound(e,C),E="prev",g.sY("use_fifo_for_networkless")&&(E="next"),X=void 0,g.c(q,g.SB(x,["LogsRequestsStore"],{mode:"readwrite",nN:!0},function(N){return g.nM(N.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:p,direction:E},function(u){u.getValue()&&(X=u.getValue(),F==="NEW"&&(X.status="QUEUED",u.update(X)))})}),3);
z.ticks.tc=(0,g.VE)();ncR(z);return q.return(X)})};
f3C=function(F,k){var z;return g.O(function(x){if(x.Y==1)return g.c(x,nb(k),2);z=x.L;return x.return(g.SB(z,["LogsRequestsStore"],{mode:"readwrite",nN:!0},function(D){var e=D.objectStore("LogsRequestsStore");return e.get(F).then(function(C){if(C)return C.status="QUEUED",g.bM(e,C).then(function(){return C})})}))})};
K3H=function(F,k,z,x){z=z===void 0?!0:z;var D;return g.O(function(e){if(e.Y==1)return g.c(e,nb(k),2);D=e.L;return e.return(g.SB(D,["LogsRequestsStore"],{mode:"readwrite",nN:!0},function(C){var p=C.objectStore("LogsRequestsStore");return p.get(F).then(function(E){return E?(E.status="NEW",z&&(E.sendCount+=1),x!==void 0&&(E.options.compress=x),g.bM(p,E).then(function(){return E})):g.vA.resolve(void 0)})}))})};
W36=function(F,k){var z;return g.O(function(x){if(x.Y==1)return g.c(x,nb(k),2);z=x.L;return x.return(z.delete("LogsRequestsStore",F))})};
FzI=function(F){var k,z;return g.O(function(x){if(x.Y==1)return g.c(x,nb(F),2);k=x.L;z=(0,g.VE)()-2592E6;return g.c(x,g.SB(k,["LogsRequestsStore"],{mode:"readwrite",nN:!0},function(D){return g.Rw(D.objectStore("LogsRequestsStore"),{},function(e){if(e.getValue().timestamp<=z)return e.delete().then(function(){return g.g3(e)})})}),0)})};
kEn=function(){g.O(function(F){return g.c(F,gex("LogsDatabaseV2"),0)})};
ncR=function(F){g.sY("nwl_csi_killswitch")||cy("networkless_performance",F,{sampleRate:1})};
zca=function(F){return g.KM(oTR(),F)};
xzI=function(F){var k,z;g.O(function(x){if(x.Y==1)return g.c(x,zca(F),2);k=x.L;z=(0,g.VE)()-2592E6;return g.c(x,g.SB(k,["SWHealthLog"],{mode:"readwrite",nN:!0},function(D){return g.Rw(D.objectStore("SWHealthLog"),{},function(e){if(e.getValue().timestamp<=z)return e.delete().then(function(){return g.g3(e)})})}),0)})};
igk=function(F){var k;return g.O(function(z){if(z.Y==1)return g.c(z,zca(F),2);k=z.L;return g.c(z,k.clear("SWHealthLog"),0)})};
g.MK=function(F,k,z,x,D,e,C){D=D===void 0?"":D;e=e===void 0?!1:e;C=C===void 0?!1:C;if(F)if(z&&!g.Lg())zE(new g.Fa("Legacy referrer-scrubbed ping detected")),F&&DzM(F,void 0,{scrubReferrer:!0});else if(D)UY(F,k,"POST",D,x);else if(g.LX("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||x||C)UY(F,k,"GET","",x,void 0,e,C);else{b:{try{var p=new Rrn({url:F});if(p.W?typeof p.U!=="string"||p.U.length===0?0:{version:3,NQ:p.U,BX:UX(p.Y,"act=1","ri=1",gka(p))}:p.S&&{version:4,NQ:UX(p.Y,"dct=1","suid="+p.j,""),BX:UX(p.Y,
"act=1","ri=1","suid="+p.j)}){var E=YV(g.Mt(5,F));var X=!(!E||!E.endsWith("/aclk")||iy(F,"ri")!=="1");break b}}catch(q){}X=!1}X?$zY(F)?(k&&k(),z=!0):z=!1:z=!1;z||DzM(F,k)}};
$zY=function(F,k){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(F,k===void 0?"":k))return!0}catch(z){}return!1};
DzM=function(F,k,z){z=z===void 0?{}:z;var x=new Image,D=""+jS6++;Lb[D]=x;x.onload=x.onerror=function(){k&&Lb[D]&&k();delete Lb[D]};
z.scrubReferrer&&(x.referrerPolicy="no-referrer");x.src=F};
ecR=function(F){var k;return((k=document.featurePolicy)==null?0:k.allowedFeatures().includes("attribution-reporting"))?F+"&nis=6":F+"&nis=5"};
Kb=function(){fb||(fb=new CM("yt.offline"));return fb};
CPC=function(F){if(g.sY("offline_error_handling")){var k=Kb().get("errors",!0)||{};k[F.message]={name:F.name,stack:F.stack};F.level&&(k[F.message].level=F.level);Kb().set("errors",k,2592E3,!0)}};
Wy=function(){this.Y=new Map;this.L=!1};
FU=function(){if(!Wy.instance){var F=g.yR("yt.networkRequestMonitor.instance")||new Wy;g.dI("yt.networkRequestMonitor.instance",F);Wy.instance=F}return Wy.instance};
k3=function(){g.A1.call(this);var F=this;this.L=!1;this.Y=TQa();this.Y.listen("networkstatus-online",function(){if(F.L&&g.sY("offline_error_handling")){var k=Kb().get("errors",!0);if(k){for(var z in k)if(k[z]){var x=new g.Fa(z,"sent via offline_errors");x.name=k[z].name;x.stack=k[z].stack;x.level=k[z].level;g.kT(x)}Kb().set("errors",{},2592E3,!0)}}})};
ABp=function(){if(!k3.instance){var F=g.yR("yt.networkStatusManager.instance")||new k3;g.dI("yt.networkStatusManager.instance",F);k3.instance=F}return k3.instance};
g.oj=function(F){F=F===void 0?{}:F;g.A1.call(this);var k=this;this.Y=this.j=0;this.L=ABp();var z=g.yR("yt.networkStatusManager.instance.listen").bind(this.L);z&&(F.rateLimit?(this.rateLimit=F.rateLimit,z("networkstatus-online",function(){ppn(k,"publicytnetworkstatus-online")}),z("networkstatus-offline",function(){ppn(k,"publicytnetworkstatus-offline")})):(z("networkstatus-online",function(){k.dispatchEvent("publicytnetworkstatus-online")}),z("networkstatus-offline",function(){k.dispatchEvent("publicytnetworkstatus-offline")})))};
ppn=function(F,k){F.rateLimit?F.Y?(g.RC.o6(F.j),F.j=g.RC.Oi(function(){F.U!==k&&(F.dispatchEvent(k),F.U=k,F.Y=(0,g.VE)())},F.rateLimit-((0,g.VE)()-F.Y))):(F.dispatchEvent(k),F.U=k,F.Y=(0,g.VE)()):F.dispatchEvent(k)};
x3=function(){var F=R9.call;zb||(zb=new g.oj({EKU:!0,SIR:!0}));F.call(R9,this,{Oz:{Yz:FzI,Ik:W36,Nv:L3D,zlt:f3C,hc:K3H,set:Mga},V_:zb,handleError:function(k,z,x){var D,e=x==null?void 0:(D=x.error)==null?void 0:D.code;if(e===400||e===415){var C;zE(new g.Fa(k.message,z,x==null?void 0:(C=x.error)==null?void 0:C.code),void 0,void 0,void 0,!0)}else g.kT(k)},
hP:zE,sendFn:ETR,now:g.VE,Or:CPC,xq:g.$K(),nA:"publicytnetworkstatus-online",qG:"publicytnetworkstatus-offline",LH:!0,f3:.1,L6:g.rz("potential_esf_error_limit",10),Ca:g.sY,Ht:!(g.ow()&&g.Lw(document.location.toString())!=="www.youtube-nocookie.com")});this.U=new g.Zd;g.sY("networkless_immediately_drop_all_requests")&&kEn();YW5("LogsDatabaseV2")};
ie=function(){var F=g.yR("yt.networklessRequestController.instance");F||(F=new x3,g.dI("yt.networklessRequestController.instance",F),g.sY("networkless_logging")&&g.DZ().then(function(k){F.dR=k;JUa(F);F.U.resolve();F.LH&&Math.random()<=F.f3&&F.dR&&xzI(F.dR);g.sY("networkless_immediately_drop_sw_health_store")&&Xpx(F)}));
return F};
Xpx=function(F){var k;g.O(function(z){if(!F.dR)throw k=g.t6("clearSWHealthLogsDb"),k;return z.return(igk(F.dR).catch(function(x){F.handleError(x)}))})};
ETR=function(F,k,z,x){x=x===void 0?!1:x;k=g.sY("web_fp_via_jspb")?Object.assign({},k):k;g.sY("use_cfr_monitor")&&qYn(F,k);if(g.sY("use_request_time_ms_header"))k.headers&&AB(F)&&(k.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.VE)())));else{var D;if((D=k.postParams)==null?0:D.requestTimeMs)k.postParams.requestTimeMs=Math.round((0,g.VE)())}z&&Object.keys(k).length===0?g.MK(F):k.compress?k.postBody?(typeof k.postBody!=="string"&&(k.postBody=JSON.stringify(k.postBody)),ba(F,k.postBody,
k,g.tB,x)):ba(F,JSON.stringify(k.postParams),k,ZC,x):g.tB(F,k)};
D1=function(F,k){g.sY("use_event_time_ms_header")&&AB(F)&&(k.headers||(k.headers={}),k.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.VE)())));return k};
qYn=function(F,k){var z=k.onError?k.onError:function(){};
k.onError=function(D,e){FU().requestComplete(F,!1);z(D,e)};
var x=k.onSuccess?k.onSuccess:function(){};
k.onSuccess=function(D,e){FU().requestComplete(F,!0);x(D,e)}};
g.$3=function(F){this.config_=null;F?this.config_=F:pIY()&&(this.config_=g.w4())};
g.jF=function(F,k,z,x){function D(X){try{if((X===void 0?0:X)&&x.retry&&!x.networklessOptions.bypassNetworkless)e.method="POST",x.networklessOptions.writeThenSend?ie().writeThenSend(E,e):ie().sendAndWrite(E,e);else if(x.compress){var q=!x.networklessOptions.writeThenSend;if(e.postBody){var N=e.postBody;typeof N!=="string"&&(N=JSON.stringify(e.postBody));ba(E,N,e,g.tB,q)}else ba(E,JSON.stringify(e.postParams),e,ZC,q)}else g.sY("web_all_payloads_via_jspb")?g.tB(E,e):ZC(E,e)}catch(u){if(u.name==="InvalidAccessError")zE(Error("An extension is blocking network request."));
else throw u;}}
!g.LX("VISITOR_DATA")&&k!=="visitor_id"&&Math.random()<.01&&zE(new g.Fa("Missing VISITOR_DATA when sending innertube request.",k,z,x));if(!F.isReady())throw F=new g.Fa("innertube xhrclient not ready",k,z,x),g.kT(F),F;var e={headers:x.headers||{},method:"POST",postParams:z,postBody:x.postBody,postBodyFormat:x.postBodyFormat||"JSON",onTimeout:function(){x.onTimeout()},
onFetchTimeout:x.onTimeout,onSuccess:function(X,q){if(x.onSuccess)x.onSuccess(q)},
onFetchSuccess:function(X){if(x.onSuccess)x.onSuccess(X)},
onError:function(X,q){if(x.onError)x.onError(q)},
onFetchError:function(X){if(x.onError)x.onError(X)},
timeout:x.timeout,withCredentials:!0,compress:x.compress};e.headers["Content-Type"]||(e.headers["Content-Type"]="application/json");z="";var C=F.config_.wr;C&&(z=C);C=F.config_.Bb||!1;var p=QAH(C,z,x);Object.assign(e.headers,p);e.headers.Authorization&&!z&&C&&(e.headers["x-origin"]=window.location.origin);var E=el(""+z+("/youtubei/"+F.config_.innertubeApiVersion+"/"+k),{alt:"json"});g.yR("ytNetworklessLoggingInitializationOptions")&&NzI.isNwlInitialized?aex().then(function(X){D(X)}):D(!1)};
g.Ex=function(F,k,z){var x=g.eF();if(x&&k){var D=x.subscribe(F,function(){function e(){CF[D]&&k.apply&&typeof k.apply=="function"&&k.apply(z||window,C)}
var C=arguments;try{g.AP[F]?e():g.mz(e,0)}catch(p){g.kT(p)}},z);
CF[D]=!0;pF[F]||(pF[F]=[]);pF[F].push(D);return D}return 0};
ue5=function(F){var k=g.Ex("LOGGED_IN",function(z){F.apply(void 0,arguments);g.XU(k)})};
g.XU=function(F){var k=g.eF();k&&(typeof F==="number"?F=[F]:typeof F==="string"&&(F=[parseInt(F,10)]),g.XN(F,function(z){k.unsubscribeByKey(z);delete CF[z]}))};
g.qH=function(F,k){var z=g.eF();return z?z.publish.apply(z,arguments):!1};
mzp=function(F){var k=g.eF();if(k)if(k.clear(F),F)wpM(F);else for(var z in pF)wpM(z)};
g.eF=function(){return g.bD.ytPubsubPubsubInstance};
wpM=function(F){pF[F]&&(F=pF[F],g.XN(F,function(k){CF[k]&&delete CF[k]}),F.length=0)};
g.NH=function(F,k,z){TzI(F,k,z===void 0?null:z)};
TzI=function(F,k,z){z=z===void 0?null:z;var x=lCH(F),D=document.getElementById(x),e=D&&PVC(D),C=D&&!e;e?k&&k():(k&&(e=g.Ex(x,k),k=""+g.Kk(k),QSD[k]=e),C||(D=hcp(F,x,function(){PVC(D)||(cCn(D),g.qH(x),g.mz(function(){mzp(x)},0))},z)))};
hcp=function(F,k,z,x){x=x===void 0?null:x;var D=g.Ci("SCRIPT");D.id=k;D.onload=function(){z&&setTimeout(z,0)};
D.onreadystatechange=function(){switch(D.readyState){case "loaded":case "complete":D.onload()}};
x&&D.setAttribute("nonce",x);g.F7(D,g.Ur(F));F=document.getElementsByTagName("head")[0]||document.body;F.insertBefore(D,F.firstChild);return D};
lCH=function(F){var k=document.createElement("a");g.Ru(k,F);F=k.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Cx(F)};
ue=function(F,k){if(F===k)F=!0;else if(Array.isArray(F)&&Array.isArray(k))F=g.p8(F,k,ue);else if(g.M9(F)&&g.M9(k))a:if(g.Vd(F).length!=g.Vd(k).length)F=!1;else{for(var z in F)if(!ue(F[z],k[z])){F=!1;break a}F=!0}else F=!1;return F};
Tb=function(F){var k=g.v6.apply(1,arguments);if(!wX(F)||k.some(function(x){return!wX(x)}))throw Error("Only objects may be merged.");
k=g.l(k);for(var z=k.next();!z.done;z=k.next())mf(F,z.value)};
mf=function(F,k){for(var z in k)if(wX(k[z])){if(z in F&&!wX(F[z]))throw Error("Cannot merge an object into a non-object.");z in F||(F[z]={});mf(F[z],k[z])}else if(rX(k[z])){if(z in F&&!rX(F[z]))throw Error("Cannot merge an array into a non-array.");z in F||(F[z]=[]);sSC(F[z],k[z])}else F[z]=k[z];return F};
sSC=function(F,k){k=g.l(k);for(var z=k.next();!z.done;z=k.next())z=z.value,wX(z)?F.push(mf({},z)):rX(z)?F.push(sSC([],z)):F.push(z);return F};
wX=function(F){return typeof F==="object"&&!Array.isArray(F)};
rX=function(F){return typeof F==="object"&&Array.isArray(F)};
Bt=function(F){g.S.call(this);this.L=F};
Gb=function(F){Bt.call(this,!0);this.Y=F};
Ux=function(F,k){g.S.call(this);var z=this;this.U=[];this.G=!1;this.L=0;this.W=this.S=this.j=!1;this.Qh=null;var x=(0,g.W6)(F,k);this.Y=new g.KS(function(){return x(z.Qh)},300);
g.b(this,this.Y);this.K=this.B=Infinity};
rBI=function(F,k){if(!k)return!1;for(var z=0;z<k.length;z++){var x=k.item(z);if(x&&F.U.includes(x.identifier))return!0}return!1};
Z1=function(F){if(window.crypto&&window.crypto.getRandomValues)try{var k=Array(F),z=new Uint8Array(F);window.crypto.getRandomValues(z);for(var x=0;x<k.length;x++)k[x]=z[x];return k}catch(e){}k=Array(F);for(z=0;z<F;z++){x=Date.now();for(var D=0;D<x%23;D++)k[z]=Math.random();k[z]=Math.floor(Math.random()*256)}if(tP)for(z=1,x=0;x<tP.length;x++)k[z%F]^=k[(z-1)%F]/4^tP.charCodeAt(x),z++;return k};
g.vt=function(F){F=Z1(F);for(var k=[],z=0;z<F.length;z++)k.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(F[z]&63));return k.join("")};
g.Bzn=function(){return g.tW(Z1(16),function(F){return(F&15).toString(16)}).join("")};
GEY=function(){var F={};var k=F.m0_===void 0?!1:F.m0_;F=F.s$===void 0?!0:F.s$;if(g.yR("_lact",window)==null){var z=parseInt(g.LX("LACT"),10);z=isFinite(z)?Date.now()-Math.max(z,0):-1;g.dI("_lact",z,window);g.dI("_fact",z,window);z==-1&&ct();g.UN(document,"keydown",ct);g.UN(document,"keyup",ct);g.UN(document,"mousedown",ct);g.UN(document,"mouseup",ct);k?g.UN(window,"touchmove",function(){Pt("touchmove",200)},{passive:!0}):(g.UN(window,"resize",function(){Pt("resize",200)}),F&&g.UN(window,"scroll",
function(){Pt("scroll",200)}));
new cW(function(){Pt("mouse",100)});
g.UN(document,"touchstart",ct,{passive:!0});g.UN(document,"touchend",ct,{passive:!0})}};
Pt=function(F,k){Ox[F]||(Ox[F]=!0,g.RC.Oi(function(){ct();Ox[F]=!1},k))};
ct=function(){g.yR("_lact",window)==null&&(GEY(),g.yR("_lact",window));var F=Date.now();g.dI("_lact",F,window);g.yR("_fact",window)==-1&&g.dI("_fact",F,window);(F=g.yR("ytglobal.ytUtilActivityCallback_"))&&F()};
Vj=function(){var F=g.yR("_lact",window);return F==null?-1:Math.max(Date.now()-F,0)};
Ij=function(F){this.name=F};
Ht=function(F){this.key=F};
aj=function(F){return new Ht(F)};
UzD=function(){var F=this;this.Y=new Map;this.U=new Map;this.L=new Map;this.Pe={m6K:function(){return new Map(F.Y)}}};
SF=function(F,k){F.Y.set(k.G7,k);var z=F.U.get(k.G7);if(z)try{z.UV(F.resolve(k.G7))}catch(x){z.rd(x)}};
dX=function(F,k,z,x){x=x===void 0?!1:x;if(z.indexOf(k)>-1)throw Error("Deps cycle for: "+k);if(F.L.has(k))return F.L.get(k);if(!F.Y.has(k)){if(x)return;throw Error("No provider for: "+k);}x=F.Y.get(k);z.push(k);if(x.Vp!==void 0)var D=x.Vp;else if(x.n9K)D=x[be]?tlM(F,x[be],z):[],D=x.n9K.apply(x,g.r(D));else if(x.xi){D=x.xi;var e=D[be]?tlM(F,D[be],z):[];D=new (Function.prototype.bind.apply(D,[null].concat(g.r(e))))}else throw Error("Could not resolve providers for: "+k);z.pop();x.EC$||F.L.set(k,D);
return D};
tlM=function(F,k,z){return k?k.map(function(x){return x instanceof Ht?dX(F,x.key,z,!0):dX(F,x,z)}):[]};
yj=function(){JP||(JP=new UzD);return JP};
gX=function(){var F,k;return"h5vcc"in Rj&&((F=Rj.h5vcc.traceEvent)==null?0:F.traceBegin)&&((k=Rj.h5vcc.traceEvent)==null?0:k.traceEnd)?1:"performance"in Rj&&Rj.performance.mark&&Rj.performance.measure?2:0};
Y3=function(F){var k=gX();switch(k){case 1:Rj.h5vcc.traceEvent.traceBegin("YTLR",F);break;case 2:Rj.performance.mark(F+"-start");break;case 0:break;default:ji(k,"unknown trace type")}};
Zga=function(F){var k=gX();switch(k){case 1:Rj.h5vcc.traceEvent.traceEnd("YTLR",F);break;case 2:k=F+"-start";var z=F+"-end";Rj.performance.mark(z);Rj.performance.measure(F,k,z);break;case 0:break;default:ji(k,"unknown trace type")}};
vT6=function(F){var k,z;(z=(k=window).onerror)==null||z.call(k,F.message,"",0,0,F)};
cB9=function(F){var k=this;var z=z===void 0?0:z;var x=x===void 0?g.$K():x;this.U=z;this.scheduler=x;this.L=new g.Zd;this.Y=F;for(F={JT:0};F.JT<this.Y.length;F={Zs:void 0,JT:F.JT},F.JT++)F.Zs=this.Y[F.JT],z=function(D){return function(){D.Zs.dj();k.Y[D.JT].PL=!0;k.Y.every(function(e){return e.PL===!0})&&k.L.resolve()}}(F),x=xK(z,nF(this,F.Zs)),this.Y[F.JT]=Object.assign({},F.Zs,{dj:z,
jobId:x})};
PPM=function(F){var k=Array.from(F.Y.keys()).sort(function(x,D){return nF(F,F.Y[D])-nF(F,F.Y[x])});
k=g.l(k);for(var z=k.next();!z.done;z=k.next())z=F.Y[z.value],z.jobId===void 0||z.PL||(F.scheduler.o6(z.jobId),xK(z.dj,10))};
nF=function(F,k){var z;return(z=k.priority)!=null?z:F.U};
LF=function(F){this.state=F;this.plugins=[];this.U=void 0;this.j={};MH&&Y3(this.state)};
OgY=function(F,k){var z=k.filter(function(D){return fF(F,D)===10}),x=k.filter(function(D){return fF(F,D)!==10});
return F.j.hdQ?function(){var D=g.v6.apply(0,arguments);return g.O(function(e){if(e.Y==1)return g.c(e,F.D0t.apply(F,[z].concat(g.r(D))),2);F.yT.apply(F,[x].concat(g.r(D)));g.Tp(e)})}:function(){var D=g.v6.apply(0,arguments);
F.sgK.apply(F,[z].concat(g.r(D)));F.yT.apply(F,[x].concat(g.r(D)))}};
fF=function(F,k){var z,x;return(x=(z=F.U)!=null?z:k.priority)!=null?x:0};
KF=function(F){MH&&F&&Y3(F)};
Wt=function(F){MH&&F&&Zga(F)};
ICx=function(F,k,z){VlH&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+F.constructor.name+"] '"+F.state+"' to '"+k+"'"),console.log("with message: ",z),console.groupEnd())};
Fw=function(F){if(g.sY("web_lifecycle_error_handling_killswitch"))return F();try{return F()}catch(k){vT6(k)}};
kZ=function(F){LF.call(this,F===void 0?"none":F);this.Y=null;this.U=10;this.transitions=[{from:"none",Gc:"application_navigating",action:this.W},{from:"application_navigating",Gc:"none",action:this.S},{from:"application_navigating",Gc:"application_navigating",action:function(){}},
{from:"none",Gc:"none",action:function(){}}]};
Hg6=function(){os||(os=new kZ);return os};
zG=function(){var F=this;this.store={};this.Y=0;this.L={};this.Pe={YcQ:function(){return F.Y}}};
DW=function(F,k){var z=xZ(k);if(F.L[z])return F.L[z];var x=Object.keys(F.store)||[];if(x.length<=1&&xZ(k)===x[0])return x;for(var D=[],e=0;e<x.length;e++){var C=x[e].split("/");if(id(k.auth,C[0])){var p=k.isJspb;id(p===void 0?"undefined":p?"true":"false",C[1])&&id(k.cttAuthInfo,C[2])&&(p=k.tier,p=p===void 0?"undefined":JSON.stringify(p),id(p,C[3])&&D.push(x[e]))}}return F.L[z]=D};
id=function(F,k){return F===void 0||F==="undefined"?!0:F===k};
xZ=function(F){return[F.auth===void 0?"undefined":F.auth,F.isJspb===void 0?"undefined":F.isJspb,F.cttAuthInfo===void 0?"undefined":F.cttAuthInfo,F.tier===void 0?"undefined":F.tier].join("/")};
$Z=function(){this.j=this.Y=this.L=0;this.U=!1};
jb=function(){var F=g.yR("yt.logging.ims");F||(F=new zG,g.dI("yt.logging.ims",F));return F};
bg9=function(){if(ZXx()&&!aCR){var F=function(z){z=z.data;if(z.op==="serializedGelBatch"){var x=eb.get(z.key);x&&(SYC(z.serializedBatch,x.client,x.resolve,x.networklessOptions,x.isIsolated,x.useVSSEndpoint,x.dangerousLogToVisitorSession,x.requestsOutstanding),eb.delete(z.key))}},k=Vl();
k&&(k.addEventListener("message",F),k.onerror=function(){eb.clear()});
aCR=!0}};
YYI=function(F,k){if(F.endpoint==="log_event"){Cd(F);var z=AV(F),x=dzn(F.payload)||"",D=JBk(x),e=200;if(D){if(D.enabled===!1&&!g.sY("web_payload_policy_disabled_killswitch"))return;e=yBR(D.tier);if(e===400){Rcn(F,k);return}}pd[z]=!0;z={cttAuthInfo:z,isJspb:!1,tier:e};jb().storePayload(z,F.payload);gT5(k,!1,z,EK(x))}};
Mlx=function(F,k,z){if(k.endpoint==="log_event"){Cd(void 0,k);var x=AV(k,!0),D=JBk(F),e=200;if(D){if(D.enabled===!1&&!g.sY("web_payload_policy_disabled_killswitch"))return;e=yBR(D.tier);if(e===400){nTC(F,k,z);return}}pd[x]=!0;x={cttAuthInfo:x,isJspb:!0,tier:e};jb().storePayload(x,H9(k.payload));gT5(z,!0,x,EK(F))}};
gT5=function(F,k,z,x){function D(){Xw({writeThenSend:!0},k,z.tier)}
k=k===void 0?!1:k;x=x===void 0?!1:x;F&&(qE=new F);F=g.rz("tvhtml5_logging_max_batch_ads_fork")||g.rz("tvhtml5_logging_max_batch")||g.rz("web_logging_max_batch")||100;var e=(0,g.VE)(),C=NE(k,z.tier),p=C.j;x&&(C.U=!0);x=0;z&&(x=jb().getSequenceCount(z));x>=1E3?D():x>=F?ud||(ud=wF(function(){D();ud=void 0},0)):e-p>=10&&(Lz9(k,z.tier),C.j=e)};
Rcn=function(F,k){if(F.endpoint==="log_event"){g.sY("more_accurate_gel_parser")&&jb().storePayload({isJspb:!1},F.payload);Cd(F);var z=AV(F),x=new Map;x.set(z,[F.payload]);var D=dzn(F.payload)||"";k&&(qE=new k);return new g.Uz(function(e,C){qE&&qE.isReady()?fCC(x,qE,e,C,{bypassNetworkless:!0},!0,EK(D)):e()})}};
nTC=function(F,k,z){if(k.endpoint==="log_event"){Cd(void 0,k);var x=AV(k,!0),D=new Map;D.set(x,[H9(k.payload)]);z&&(qE=new z);return new g.Uz(function(e){qE&&qE.isReady()?Kz5(D,qE,e,{bypassNetworkless:!0},!0,EK(F)):e()})}};
AV=function(F,k){var z="";if(F.dangerousLogToVisitorSession)z="visitorOnlyApprovedKey";else if(F.cttAuthInfo){if(k===void 0?0:k){k=F.cttAuthInfo.token;z=F.cttAuthInfo;var x=new Yc;z.videoId?x.setVideoId(z.videoId):z.playlistId&&CW(x,2,m5,rR(z.playlistId));TG[k]=x}else k=F.cttAuthInfo,z={},k.videoId?z.videoId=k.videoId:k.playlistId&&(z.playlistId=k.playlistId),ld[F.cttAuthInfo.token]=z;z=F.cttAuthInfo.token}return z};
Xw=function(F,k,z){F=F===void 0?{}:F;k=k===void 0?!1:k;new g.Uz(function(x,D){var e=NE(k,z),C=e.U;e.U=!1;QI(e.L);QI(e.Y);e.Y=0;qE&&qE.isReady()?z===void 0&&g.sY("enable_web_tiered_gel")?Wzp(x,D,F,k,300,C):Wzp(x,D,F,k,z,C):(Lz9(k,z),x())})};
Wzp=function(F,k,z,x,D,e){var C=qE;z=z===void 0?{}:z;x=x===void 0?!1:x;D=D===void 0?200:D;e=e===void 0?!1:e;var p=new Map,E=new Map,X={isJspb:x,cttAuthInfo:void 0,tier:D},q={isJspb:x,cttAuthInfo:void 0};if(x){k=g.l(Object.keys(pd));for(D=k.next();!D.done;D=k.next())D=D.value,E=g.sY("enable_web_tiered_gel")?jb().smartExtractMatchingEntries({keys:[X,q],sizeLimit:1E3}):jb().extractMatchingEntries({isJspb:!0,cttAuthInfo:D}),E.length>0&&p.set(D,E),(g.sY("web_fp_via_jspb_and_json")&&z.writeThenSend||!g.sY("web_fp_via_jspb_and_json"))&&
delete pd[D];Kz5(p,C,F,z,!1,e)}else{p=g.l(Object.keys(pd));for(X=p.next();!X.done;X=p.next())X=X.value,q=g.sY("enable_web_tiered_gel")?jb().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:X,tier:D},{isJspb:!1,cttAuthInfo:X}],sizeLimit:1E3}):jb().extractMatchingEntries({isJspb:!1,cttAuthInfo:X}),q.length>0&&E.set(X,q),(g.sY("web_fp_via_jspb_and_json")&&z.writeThenSend||!g.sY("web_fp_via_jspb_and_json"))&&delete pd[X];fCC(E,C,F,k,z,!1,e)}};
Lz9=function(F,k){function z(){Xw({writeThenSend:!0},F,k)}
F=F===void 0?!1:F;k=k===void 0?200:k;var x=NE(F,k),D=x===F9H||x===k_n?5E3:onI;g.sY("web_gel_timeout_cap")&&!x.Y&&(D=wF(function(){z()},D),x.Y=D);
QI(x.L);D=g.LX("LOGGING_BATCH_TIMEOUT",g.rz("web_gel_debounce_ms",1E4));g.sY("shorten_initial_gel_batch_timeout")&&hV&&(D=zpn);D=wF(function(){g.rz("gel_min_batch_size")>0?jb().getSequenceCount({cttAuthInfo:void 0,isJspb:F,tier:k})>=x5I&&z():z()},D);
x.L=D};
fCC=function(F,k,z,x,D,e,C){D=D===void 0?{}:D;var p=Math.round((0,g.VE)()),E=F.size,X=iup(C);F=g.l(F);var q=F.next();for(C={};!q.done;C={GB:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,cU:void 0,p_:void 0},q=F.next()){var N=g.l(q.value);q=N.next().value;N=N.next().value;C.batchRequest=g.yd({context:g.mN(k.config_||g.w4())});if(!g.nk(N)&&!g.sY("throw_err_when_logevent_malformed_killswitch")){x();break}C.batchRequest.events=N;(N=ld[q])&&D5H(C.batchRequest,q,N);delete ld[q];C.dangerousLogToVisitorSession=
q==="visitorOnlyApprovedKey";$5I(C.batchRequest,p,C.dangerousLogToVisitorSession);jxn(D);C.cU=function(u){g.sY("start_client_gcf")&&g.RC.Oi(function(){return g.O(function(w){return g.c(w,ep6(u),0)})});
E--;E||z()};
C.GB=0;C.p_=function(u){return function(){u.GB++;if(D.bypassNetworkless&&u.GB===1)try{g.jF(k,X,u.batchRequest,sK({writeThenSend:!0},u.dangerousLogToVisitorSession,u.cU,u.p_,e)),hV=!1}catch(w){g.kT(w),x()}E--;E||z()}}(C);
try{g.jF(k,X,C.batchRequest,sK(D,C.dangerousLogToVisitorSession,C.cU,C.p_,e)),hV=!1}catch(u){g.kT(u),x()}}};
Kz5=function(F,k,z,x,D,e){x=x===void 0?{}:x;var C=Math.round((0,g.VE)()),p={value:F.size},E=new Map([].concat(g.r(F)));E=g.l(E);for(var X=E.next();!X.done;X=E.next()){var q=g.l(X.value).next().value,N=F.get(q);X=new a5I;var u=k.config_||g.w4(),w=new b1,m=new PI;r$(m,1,u.qg);r$(m,2,u.Rd);GS(m,16,u.Nh);r$(m,17,u.innertubeContextClientVersion);if(u.tU){var h=u.tU,B=new vI;h.coldConfigData&&r$(B,1,h.coldConfigData);h.appInstallData&&r$(B,6,h.appInstallData);h.coldHashData&&r$(B,3,h.coldHashData);h.hotHashData&&
B.iW(h.hotHashData);N6(m,vI,62,B)}(h=g.bD.devicePixelRatio)&&h!=1&&Le(m,65,ei(h));h=Bp();h!==""&&r$(m,54,h);h=GE();if(h.length>0){B=new IA;for(var U=0;U<h.length;U++){var v=new Or;r$(v,1,h[U].key);CW(v,2,Cn9,rR(h[U].value));w$(B,15,Or,v)}N6(w,IA,5,B)}Eca(u,m);XI6(w);qrC(m);NUH(u,m);ukx(m);g.sY("start_client_gcf")&&wIM(m);g.LX("DELEGATED_SESSION_ID")&&!g.sY("pageid_as_header_web")&&(u=new Sg,r$(u,3,g.LX("DELEGATED_SESSION_ID")));!g.sY("fill_delegate_context_in_gel_killswitch")&&(h=g.LX("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
(B=q6(w,Sg,3)||new Sg,u=w,h=r$(B,18,h),N6(u,Sg,3,h));u=m;h=g.l(Object.entries(DC(g.LX("DEVICE",""))));for(B=h.next();!B.done;B=h.next())U=g.l(B.value),B=U.next().value,U=U.next().value,B==="cbrand"?r$(u,12,U):B==="cmodel"?r$(u,13,U):B==="cbr"?r$(u,87,U):B==="cbrver"?r$(u,88,U):B==="cos"?r$(u,18,U):B==="cosver"?r$(u,19,U):B==="cplatform"&&GS(u,42,fvn(U));w.u2(m);N6(X,b1,1,w);if(m=TG[q])a:{if(m.xP())w=1;else if(m.getPlaylistId())w=2;else break a;N6(X,Yc,4,m);m=q6(X,b1,1)||new b1;u=q6(m,Sg,3)||new Sg;
h=new aA;h.setToken(q);GS(h,1,w);w$(u,12,aA,h);N6(m,Sg,3,u)}delete TG[q];q=q==="visitorOnlyApprovedKey";rF()||sD(X,2,C);!q&&(w=g.LX("EVENT_ID"))&&(m=AxH(),u=new gU,r$(u,1,w),sD(u,2,m),N6(X,gU,5,u));jxn(x);if(g.sY("jspb_serialize_with_worker")&&(w=Vl())&&x.writeThenSend){eb.set(Bz,{client:k,resolve:z,networklessOptions:x,isIsolated:D,useVSSEndpoint:e,dangerousLogToVisitorSession:q,requestsOutstanding:p});w.postMessage({op:"gelBatchToSerialize",batchRequest:H9(X),clientEvents:N,key:Bz});Bz++;break}if(N){w=
[];for(m=0;m<N.length;m++)try{w.push(new RA(N[m]))}catch(P){g.kT(new g.Fa("Transport failed to deserialize "+String(N[m])))}N=w}else N=[];N=g.l(N);for(w=N.next();!w.done;w=N.next())w$(X,3,RA,w.value);N={startTime:(0,g.VE)(),ticks:{},infos:{}};X=X.Y9();N.ticks.geljspc=(0,g.VE)();g.sY("log_jspb_serialize_latency")&&cy("gel_jspb_serialize",N,{sampleRate:.1});SYC(X,k,z,x,D,e,q,p)}};
SYC=function(F,k,z,x,D,e,C,p){x=x===void 0?{}:x;p=p===void 0?{value:0}:p;e=iup(e);x=sK(x,C,function(E){g.sY("start_client_gcf")&&g.RC.Oi(function(){return g.O(function(X){return g.c(X,ep6(E),0)})});
p.value--;p.value||z()},function(){p.value--;
p.value||z()},D);
x.headers["Content-Type"]="application/json+protobuf";x.postBodyFormat="JSPB";x.postBody=F;g.jF(k,e,"",x);hV=!1};
jxn=function(F){g.sY("always_send_and_write")&&(F.writeThenSend=!1)};
sK=function(F,k,z,x,D){F={retry:!0,onSuccess:z,onError:x,networklessOptions:F,dangerousLogToVisitorSession:k,rSf:!!D,headers:{},postBodyFormat:"",postBody:"",compress:g.sY("compress_gel")||g.sY("compress_gel_lr")};rF()&&(F.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.VE)())));return F};
$5I=function(F,k,z){rF()||(F.requestTimeMs=String(k));g.sY("unsplit_gel_payloads_in_logs")&&(F.unsplitGelPayloadsInLogs=!0);!z&&(k=g.LX("EVENT_ID"))&&(z=AxH(),F.serializedClientEventId={serializedEventId:k,clientCounter:String(z)})};
AxH=function(){var F=g.LX("BATCH_CLIENT_COUNTER")||0;F||(F=Math.floor(Math.random()*65535/2));F++;F>65535&&(F=1);MJ("BATCH_CLIENT_COUNTER",F);return F};
D5H=function(F,k,z){if(z.videoId)var x="VIDEO";else if(z.playlistId)x="PLAYLIST";else return;F.credentialTransferTokenTargetId=z;F.context=F.context||{};F.context.user=F.context.user||{};F.context.user.credentialTransferTokens=[{token:k,scope:x}]};
Cd=function(F,k){if(!g.yR("yt.logging.transport.enableScrapingForTest")){var z=hB("il_payload_scraping");if((z!==void 0?String(z):"")==="enable_il_payload_scraping")GG=[],g.dI("yt.logging.transport.enableScrapingForTest",!0),g.dI("yt.logging.transport.scrapedPayloadsForTesting",GG),g.dI("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.dI("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
g.dI("yt.logging.transport.scrapeClientEvent",!0);else return}z=g.yR("yt.logging.transport.scrapedPayloadsForTesting");var x=g.yR("yt.logging.transport.payloadToScrape");k&&(k=k.payload,(k=g.yR("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(k)())&&z.push(k));k=g.yR("yt.logging.transport.scrapeClientEvent");if(x&&x.length>=1)for(var D=0;D<x.length;D++)if(F&&F.payload[x[D]])if(k)z.push(F.payload);else{var e=void 0;z.push(((e=F)==null?void 0:e.payload)[x[D]])}g.dI("yt.logging.transport.scrapedPayloadsForTesting",
z)};
rF=function(){return g.sY("use_request_time_ms_header")||g.sY("lr_use_request_time_ms_header")};
wF=function(F,k){return g.sY("transport_use_scheduler")===!1?g.mz(F,k):g.sY("logging_avoid_blocking_during_navigation")||g.sY("lr_logging_avoid_blocking_during_navigation")?g.iM(0,function(){if(Hg6().currentState==="none")F();else{var z={};Hg6().install((z.none={callback:F},z))}},k):xK(F,0,k)};
QI=function(F){g.sY("transport_use_scheduler")?g.RC.o6(F):g.lP(F)};
ep6=function(F){var k,z,x,D,e,C,p,E,X,q;return g.O(function(N){return N.Y==1?(x=(k=F)==null?void 0:(z=k.responseContext)==null?void 0:z.globalConfigGroup,D=g.J(x,pWa),C=(e=x)==null?void 0:e.hotHashData,p=g.J(x,EnY),X=(E=x)==null?void 0:E.coldHashData,(q=yj().resolve(aj(NK)))?C?D?g.c(N,eJx(q,C,D),2):g.c(N,eJx(q,C),2):N.Sk(2):N.return()):X?p?g.c(N,C16(q,X,p),0):g.c(N,C16(q,X),0):N.Sk(0)})};
NE=function(F,k){k=k===void 0?200:k;return F?k===300?F9H:XWR:k===300?k_n:qN6};
JBk=function(F){if(g.sY("enable_web_tiered_gel")){F=Nap[F||""];var k,z,x,D=yj().resolve(aj(NK))==null?void 0:(k=ua())==null?void 0:(z=k.loggingHotConfig)==null?void 0:(x=z.eventLoggingConfig)==null?void 0:x.payloadPolicies;if(D)for(k=0;k<D.length;k++)if(D[k].payloadNumber===F)return D[k]}};
dzn=function(F){F=Object.keys(F);F=g.l(F);for(var k=F.next();!k.done;k=F.next())if(k=k.value,Nap[k])return k};
yBR=function(F){switch(F){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
EK=function(F){return F==="gelDebuggingEvent"};
iup=function(F){return(F===void 0?0:F)&&g.sY("vss_through_gel_video_stats")?"video_stats":"log_event"};
tV=function(F,k,z,x){x=x===void 0?{}:x;var D={},e=Math.round(x.timestamp||(0,g.VE)());D.eventTimeMs=e<Number.MAX_SAFE_INTEGER?e:0;D[F]=k;F=Vj();D.context={lastActivityMs:String(x.timestamp||!isFinite(F)?-1:F)};x.sequenceGroup&&!g.sY("web_gel_sequence_info_killswitch")&&(F=D.context,k=x.sequenceGroup,k={index:uGp(k),groupKey:k},F.sequence=k,x.endOfSequence&&delete UK[x.sequenceGroup]);(x.sendIsolatedPayload?Rcn:YYI)({endpoint:"log_event",payload:D,cttAuthInfo:x.cttAuthInfo,dangerousLogToVisitorSession:x.dangerousLogToVisitorSession},
z)};
uGp=function(F){UK[F]=F in UK?UK[F]+1:0;return UK[F]};
g.NA=function(F,k,z){z=z===void 0?{}:z;var x=g.$3;g.LX("ytLoggingEventsDefaultDisabled",!1)&&g.$3===g.$3&&(x=null);tV(F,k,x,z)};
ZW=function(F){this.Y=F};
g.vz=function(F){return new ZW({trackingParams:F})};
m5R=function(F,k,z,x,D,e){var C=wWR++;return new ZW({veType:F,veCounter:C,elementIndex:z,dataElement:k,youtubeData:x,jspbYoutubeData:D,loggingDirectives:e})};
TaD=function(F){return g.LX("client-screen-nonce-store",{})[F===void 0?0:F]};
luM=function(F,k){k=k===void 0?0:k;var z=g.LX("client-screen-nonce-store");z||(z={},MJ("client-screen-nonce-store",z));z[k]=F};
cz=function(F){F=F===void 0?0:F;return F===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+F};
Qxa=function(F){return g.LX(cz(F===void 0?0:F))};
g.Pz=function(F){return(F=Qxa(F===void 0?0:F))?new ZW({veType:F,youtubeData:void 0,jspbYoutubeData:void 0}):null};
hpn=function(){var F=g.LX("csn-to-ctt-auth-info");F||(F={},MJ("csn-to-ctt-auth-info",F));return F};
sxI=function(){return Object.values(g.LX("client-screen-nonce-store",{})).filter(function(F){return F!==void 0})};
g.OK=function(F){F=TaD(F===void 0?0:F);if(!F&&!g.LX("USE_CSN_FALLBACK",!0))return null;F||(F="UNDEFINED_CSN");return F?F:null};
Ba9=function(F){for(var k=g.l(Object.values(rxY)),z=k.next();!z.done;z=k.next())if(g.OK(z.value)===F)return!0;return!1};
G_I=function(F,k,z){var x=hpn();(z=g.OK(z))&&delete x[z];k&&(x[F]=k)};
VI=function(F){return hpn()[F]};
tZa=function(F,k,z,x){z=z===void 0?0:z;if(F!==TaD(z)||k!==g.LX(cz(z)))if(G_I(F,x,z),luM(F,z),MJ(cz(z),k),k=function(){setTimeout(function(){F&&g.NA("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:U56,clientScreenNonce:F})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(k)}catch(D){k()}else k()};
Is=function(F,k){var z=z===void 0?!0:z;var x=g.LX("VALID_SESSION_TEMPDATA_DOMAINS",[]),D=g.Lw(window.location.href);D&&x.push(D);D=g.Lw(F);if(g.fC(x,D)||!D&&Qn(F,"/"))if(x=document.createElement("a"),g.Ru(x,F),F=x.href)if(F=fw(F),F=mXp(F))if(z&&!k.csn&&(k.itct||k.ved)&&(k=Object.assign({csn:g.OK()},k)),e){var e=parseInt(e,10);isFinite(e)&&e>0&&Zuk(F,k,e)}else Zuk(F,k)};
Zuk=function(F,k,z){F=vna(F);k=k?g.ky(k):"";z=z||5;jZ()&&g.Sl(F,k,z)};
vna=function(F){for(var k=g.l(cxa),z=k.next();!z.done;z=k.next())F=Dd(F,z.value);return"ST-"+Cx(F).toString(36)};
PnM=function(F){if(F.name==="JavaException")return!0;F=F.stack;return F.includes("chrome://")||F.includes("chrome-extension://")||F.includes("moz-extension://")};
OuI=function(){this.PT=[];this.wM=[]};
as=function(){if(!Hz){var F=Hz=new OuI;F.wM.length=0;F.PT.length=0;VZn(F,Iu5)}return Hz};
VZn=function(F,k){k.wM&&F.wM.push.apply(F.wM,k.wM);k.PT&&F.PT.push.apply(F.PT,k.PT)};
Hup=function(F){function k(){return F.charCodeAt(x++)}
var z=F.length,x=0;do{var D=Sb(k);if(D===Infinity)break;var e=D>>3;switch(D&7){case 0:D=Sb(k);if(e===2)return D;break;case 1:if(e===2)return;x+=8;break;case 2:D=Sb(k);if(e===2)return F.substr(x,D);x+=D;break;case 5:if(e===2)return;x+=4;break;default:return}}while(x<z)};
Sb=function(F){var k=F(),z=k&127;if(k<128)return z;k=F();z|=(k&127)<<7;if(k<128)return z;k=F();z|=(k&127)<<14;if(k<128)return z;k=F();return k<128?z|(k&127)<<21:Infinity};
auH=function(F,k,z,x){if(F)if(Array.isArray(F)){var D=x;for(x=0;x<F.length&&!(F[x]&&(D+=bd(x,F[x],k,z),D>500));x++);x=D}else if(typeof F==="object")for(D in F){if(F[D]){var e=D;var C=F[D],p=k,E=z;e=typeof C!=="string"||e!=="clickTrackingParams"&&e!=="trackingParams"?0:(C=Hup(atob(C.replace(/-/g,"+").replace(/_/g,"/"))))?bd(e+".ve",C,p,E):0;x+=e;x+=bd(D,F[D],k,z);if(x>500)break}}else z[k]=dF(F),x+=z[k].length;else z[k]=dF(F),x+=z[k].length;return x};
bd=function(F,k,z,x){z+="."+F;F=dF(k);x[z]=F;return z.length+F.length};
dF=function(F){try{return(typeof F==="string"?F:String(JSON.stringify(F))).substr(0,500)}catch(k){return"unable to serialize "+typeof F+" ("+k.message+")"}};
qA=function(F){g.JV(F)};
g.yI=function(F){g.JV(F,"WARNING")};
g.JV=function(F,k){var z=z===void 0?{}:z;z.name=g.LX("INNERTUBE_CONTEXT_CLIENT_NAME",1);z.version=g.LX("INNERTUBE_CONTEXT_CLIENT_VERSION");k=k===void 0?"ERROR":k;var x=!1;k=k===void 0?"ERROR":k;x=x===void 0?!1:x;if(F){F.hasOwnProperty("level")&&F.level&&(k=F.level);if(g.sY("console_log_js_exceptions")){var D=[];D.push("Name: "+F.name);D.push("Message: "+F.message);F.hasOwnProperty("params")&&D.push("Error Params: "+JSON.stringify(F.params));F.hasOwnProperty("args")&&D.push("Error args: "+JSON.stringify(F.args));
D.push("File name: "+F.fileName);D.push("Stacktrace: "+F.stack);window.console.log(D.join("\n"),F)}if(!(SND>=5)){D=[];for(var e=g.l(buR),C=e.next();!C.done;C=e.next()){C=C.value;try{C()&&D.push(C())}catch(h){}}D=[].concat(g.r(d5C),g.r(D));var p=GnC(F);e=p.message||"Unknown Error";C=p.name||"UnknownError";var E=p.stack||F.L||"Not available";if(E.startsWith(C+": "+e)){var X=E.split("\n");X.shift();E=X.join("\n")}X=p.lineNumber||"Not available";p=p.fileName||"Not available";var q=0;if(F.hasOwnProperty("args")&&
F.args&&F.args.length)for(var N=0;N<F.args.length&&!(q=auH(F.args[N],"params."+N,z,q),q>=500);N++);else if(F.hasOwnProperty("params")&&F.params){var u=F.params;if(typeof F.params==="object")for(N in u){if(u[N]){var w="params."+N,m=dF(u[N]);z[w]=m;q+=w.length+m.length;if(q>500)break}}else z.params=dF(u)}if(D.length)for(N=0;N<D.length&&!(q=auH(D[N],"params.context."+N,z,q),q>=500);N++);navigator.vendor&&!z.hasOwnProperty("vendor")&&(z["device.vendor"]=navigator.vendor);z={message:e,name:C,lineNumber:X,
fileName:p,stack:E,params:z,sampleWeight:1};N=Number(F.columnNumber);isNaN(N)||(z.lineNumber=z.lineNumber+":"+N);if(F.level==="IGNORED")F=0;else a:{F=as();N=g.l(F.wM);for(D=N.next();!D.done;D=N.next())if(D=D.value,z.message&&z.message.match(D.N6)){F=D.weight;break a}F=g.l(F.PT);for(N=F.next();!N.done;N=F.next())if(N=N.value,N.callback(z)){F=N.weight;break a}F=1}z.sampleWeight=F;F=g.l(Jxp);for(N=F.next();!N.done;N=F.next())if(N=N.value,N.kd[z.name])for(e=g.l(N.kd[z.name]),D=e.next();!D.done;D=e.next())if(C=
D.value,D=z.message.match(C.Kb)){z.params["params.error.original"]=D[0];e=C.groups;C={};for(X=0;X<e.length;X++)C[e[X]]=D[X+1],z.params["params.error."+e[X]]=D[X+1];z.message=N.c_(C);break}z.params||(z.params={});F=as();z.params["params.errorServiceSignature"]="msg="+F.wM.length+"&cb="+F.PT.length;z.params["params.serviceWorker"]="false";g.bD.document&&g.bD.document.querySelectorAll&&(z.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Mv(nx,"sample")).constructor!==
Mv&&(z.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(z);if(z.sampleWeight!==0&&!yxx.has(z.message)){if(x&&g.sY("web_enable_error_204"))RpH(k===void 0?"ERROR":k,z);else{k=k===void 0?"ERROR":k;k==="ERROR"?(Rs.publish("handleError",z),g.sY("record_app_crashed_web")&&gn6===0&&z.sampleWeight===1&&(gn6++,x={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.sY("report_client_error_with_app_crash_ks")||(x.systemHealth={crashData:{clientError:{logMessage:{message:z.message}}}}),
g.NA("appCrashed",x)),YN6++):k==="WARNING"&&Rs.publish("handleWarning",z);if(g.sY("kevlar_gel_error_routing")){x=k;F=void 0;F=F===void 0?{}:F;b:{N=g.l(nnM);for(D=N.next();!D.done;D=N.next())if(g.ng(D.value.toLowerCase())){N=!0;break b}N=!1}if(N)F=void 0;else{D={stackTrace:z.stack};z.fileName&&(D.filename=z.fileName);N=z.lineNumber&&z.lineNumber.split?z.lineNumber.split(":"):[];N.length!==0&&(N.length!==1||isNaN(Number(N[0]))?N.length!==2||isNaN(Number(N[0]))||isNaN(Number(N[1]))||(D.lineNumber=Number(N[0]),
D.columnNumber=Number(N[1])):D.lineNumber=Number(N[0]));N={level:"ERROR_LEVEL_UNKNOWN",message:z.message,errorClassName:z.name,sampleWeight:z.sampleWeight};x==="ERROR"?N.level="ERROR_LEVEL_ERROR":x==="WARNING"&&(N.level="ERROR_LEVEL_WARNNING");D={isObfuscated:!0,browserStackInfo:D};F.pageUrl=window.location.href;F.kvPairs=[];g.LX("FEXP_EXPERIMENTS")&&(F.experimentIds=g.LX("FEXP_EXPERIMENTS"));e=g.LX("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!WI("web_disable_gel_stp_ecatcher_killswitch")&&e)for(C=
g.l(Object.keys(e)),X=C.next();!X.done;X=C.next())X=X.value,F.kvPairs.push({key:X,value:String(e[X])});if(e=z.params)for(C=g.l(Object.keys(e)),X=C.next();!X.done;X=C.next())X=X.value,F.kvPairs.push({key:"client."+X,value:String(e[X])});e=g.LX("SERVER_NAME");C=g.LX("SERVER_VERSION");e&&C&&(F.kvPairs.push({key:"server.name",value:e}),F.kvPairs.push({key:"server.version",value:C}));F={errorMetadata:F,stackTrace:D,logMessage:N}}if(F&&(g.NA("clientError",F),x==="ERROR"||g.sY("errors_flush_gel_always_killswitch")))a:{if(g.sY("web_fp_via_jspb")){x=
!0;x=x===void 0?!1:x;F=MZM;MZM=[];if(F)for(F=g.l(F),N=F.next();!N.done;N=F.next())N=N.value,x?tV(N.payloadName,N.payload,g.$3,N.options):g.NA(N.payloadName,N.payload,N.options);Xw(void 0,!0);if(!g.sY("web_fp_via_jspb_and_json"))break a}Xw(void 0,!1)}}g.sY("suppress_error_204_logging")||RpH(k,z)}try{yxx.add(z.message)}catch(h){}SND++}}}};
RpH=function(F,k){var z=k.params||{};F={urlParams:{a:"logerror",t:"jserror",type:k.name,msg:k.message.substr(0,250),line:k.lineNumber,level:F,"client.name":z.name},postParams:{url:g.LX("PAGE_NAME",window.location.href),file:k.fileName},method:"POST"};z.version&&(F["client.version"]=z.version);if(F.postParams){k.stack&&(F.postParams.stack=k.stack);k=g.l(Object.keys(z));for(var x=k.next();!x.done;x=k.next())x=x.value,F.postParams["client."+x]=z[x];if(z=g.LX("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(k=
g.l(Object.keys(z)),x=k.next();!x.done;x=k.next())x=x.value,F.postParams[x]=z[x];(z=g.LX("LAVA_VERSION"))&&(F.postParams["lava.version"]=z);z=g.LX("SERVER_NAME");k=g.LX("SERVER_VERSION");z&&k&&(F.postParams["server.name"]=z,F.postParams["server.version"]=k)}g.tB(g.LX("ECATCHER_REPORT_HOST","")+"/error_204",F)};
L9D=function(F){var k=g.v6.apply(1,arguments);F.args||(F.args=[]);Array.isArray(F.args)&&F.args.push.apply(F.args,g.r(k))};
nd=function(F){var k=g.J(F,gF);if(k)return k;if((k=g.J(F,fuY))&&k.commands)return K9I(k.commands);if((k=g.J(F,W96))&&k.commands)return K9I(k.commands);if((F=g.J(F,Fgp))&&F.identifier&&F.command&&(YZ||(YZ=[]),!YZ.includes(F.identifier)))return YZ.push(F.identifier),g.J(F.command,gF)};
K9I=function(F){if(F.length!==0){var k=[];F=g.l(F);for(var z=F.next();!z.done;z=F.next())(z=nd(z.value))&&k.push(z);return{commandExecutorCommand:{commands:k}}}};
g.ME=function(F,k,z){z===void 0?delete F[k.name]:F[k.name]=z};
kX6=function(F){for(var k=0,z=0;z<F.length;z++)k=k*31+F.charCodeAt(z),z<F.length-1&&(k%=0x800000000000);return k%1E5};
Ld=function(F){la.call(this,1,arguments);this.csn=F};
zPH=function(F,k,z,x,D,e,C,p){var E=oK9(),X=new ZW({veType:k,youtubeData:e,jspbYoutubeData:void 0});e=fd({},E);D&&(e.cttAuthInfo=D);D={csn:E,pageVe:X.getAsJson()};g.sY("expectation_logging")&&p&&p.screenCreatedLoggingExpectations&&(D.screenCreatedLoggingExpectations=p.screenCreatedLoggingExpectations);z&&z.visualElement?(D.implicitGesture={parentCsn:z.clientScreenNonce,gesturedVe:z.visualElement.getAsJson()},C&&(D.implicitGesture.gestureType=C)):z&&g.yI(new g.Fa("newScreen() parent element does not have a VE - rootVe",
k));x&&(D.cloneCsn=x);F?tV("screenCreated",D,F,e):g.NA("screenCreated",D,e);sa(hJk,new Ld(E));Kd.clear();Wz.clear();FH.clear();return E};
g.oa=function(F,k,z,x,D){g.kB(F,k,z,[x],D===void 0?!1:D)};
g.kB=function(F,k,z,x,D){D=D===void 0?!1:D;for(var e=fd({cttAuthInfo:VI(k)||void 0},k),C=g.l(x),p=C.next();!p.done;p=C.next()){p=p.value;var E=p.getAsJson();(g.SI(E)||!E.trackingParams&&!E.veType)&&g.yI(Error("Child VE logged with no data"));if(g.sY("no_client_ve_attach_unless_shown")){var X=zm(p,k);if(E.veType&&!Wz.has(X)&&!FH.has(X)&&!D){if(!g.sY("il_attach_cache_limit")||Kd.size<1E3){Kd.set(X,[F,k,z,p]);return}g.sY("il_attach_cache_limit")&&Kd.size>1E3&&g.yI(new g.Fa("IL Attach cache exceeded limit"))}p=
zm(z,k);Kd.has(p)?xB(z,k):FH.set(p,!0)}}x=x.filter(function(q){q.csn!==k?(q.csn=k,q=!0):q=!1;return q});
z={csn:k,parentVe:z.getAsJson(),childVes:g.tW(x,function(q){return q.getAsJson()})};
k==="UNDEFINED_CSN"?iG("visualElementAttached",e,z):F?tV("visualElementAttached",z,F,e):g.NA("visualElementAttached",z,e)};
xAn=function(F,k,z,x,D){D4(z,k);x=fd({cttAuthInfo:VI(k)||void 0},k);z={csn:k,ve:z.getAsJson(),eventType:1};D&&(z.clientData=D);k==="UNDEFINED_CSN"?iG("visualElementShown",x,z):F?tV("visualElementShown",z,F,x):g.NA("visualElementShown",z,x)};
iMD=function(F,k,z,x){var D=(x=x===void 0?!1:x)?16:8;x=fd({cttAuthInfo:VI(k)||void 0,endOfSequence:x},k);z={csn:k,ve:z.getAsJson(),eventType:D};k==="UNDEFINED_CSN"?iG("visualElementHidden",x,z):F?tV("visualElementHidden",z,F,x):g.NA("visualElementHidden",z,x)};
jL=function(F,k,z,x,D){$B(F,k,z,void 0,x,D)};
$B=function(F,k,z,x,D){D4(z,k);x=x||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var e=fd({cttAuthInfo:VI(k)||void 0},k);z={csn:k,ve:z.getAsJson(),gestureType:x};D&&(z.clientData=D);k==="UNDEFINED_CSN"?iG("visualElementGestured",e,z):F?tV("visualElementGestured",z,F,e):g.NA("visualElementGestured",z,e)};
DAM=function(){var F=Z1(16);for(var k=[],z=0;z<F.length;z++)k.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(F[z]&63));return k.join("")};
iG=function(F,k,z){eL.push({payloadName:F,payload:z,j5J:void 0,options:k});CJ||(CJ=UJ9())};
BUI=function(F){if(eL){for(var k=g.l(eL),z=k.next();!z.done;z=k.next())z=z.value,z.payload&&(z.payload.csn=F.csn,g.NA(z.payloadName,z.payload,z.options));eL.length=0}CJ=0};
zm=function(F,k){return""+F.getAsJson().veType+F.getAsJson().veCounter+k};
D4=function(F,k){if(g.sY("no_client_ve_attach_unless_shown")){var z=zm(F,k);Wz.set(z,!0);xB(F,k)}};
xB=function(F,k){F=zm(F,k);Kd.has(F)&&(k=Kd.get(F)||[],g.oa(k[0],k[1],k[2],k[3],!0),Kd.delete(F))};
fd=function(F,k){g.sY("log_sequence_info_on_gel_web")&&(F.sequenceGroup=k);return F};
g.AL=function(F,k,z,x){g.oS(xAn)(void 0,F,k,z,x,void 0)};
g.pJ=function(F,k){g.oS(function(){g.XN(k,function(z){D4(z,F);var x=fd({cttAuthInfo:VI(F)||void 0},F);z={csn:F,ve:z.getAsJson(),eventType:4};F==="UNDEFINED_CSN"?iG("visualElementShown",x,z):g.NA("visualElementShown",z,x)})})()};
g.Ee=function(F,k){g.oS(function(){g.XN(k,function(z){iMD(void 0,F,z)})})()};
g.XH=function(F,k,z){g.oS(jL)(void 0,F,k,z,void 0)};
Nh=function(F,k,z,x,D,e){z=z===void 0?{}:z;this.componentType=F;this.renderer=k===void 0?null:k;this.macros=z;this.layoutId=x;this.interactionLoggingClientData=D;this.Y=e;this.id=qh(F)};
qh=function(F){var k=":"+(RR.getInstance().Y++).toString(36);return F+k};
g.uG=function(F){F=F===void 0?!1:F;g.S.call(this);this.OF=new g.Ze(F);g.b(this,this.OF)};
wt=function(){var F="ytp-id-"+$Ak.toString();$Ak++;return F};
g.mi=function(F){g.S.call(this);this.mY={};this.zM={};this.element=this.createElement(F)};
Tm=function(F,k,z,x){if(x.substring(0,2)==="{{")F.zM[x]=[k,z];else return x};
jwR=function(F,k){var z=[];if(!k)return z;k=g.l(k);for(var x=k.next();!x.done;x=k.next())if(x=x.value,x!=null){var D=x.nodeType;D===1||D===3?z.push(x):x&&typeof x.X==="string"?z.push(F.createElement(x)):x.element?z.push(x.element):typeof x==="string"&&x.indexOf("\n")!==-1?x.split("\n").forEach(function(e,C){C>0&&z.push(g.Ci("BR"));z.push(g.As(e))}):z.push(g.As(x))}return z};
lG=function(F,k,z,x){if(z==="child"){g.Ey(k);var D;x===void 0?D=void 0:D=!Array.isArray(x)||x&&typeof x.X==="string"?[x]:x;z=jwR(F,D);z=g.l(z);for(F=z.next();!F.done;F=z.next())k.appendChild(F.value)}else z==="style"?g.Xr(k,"cssText",x?x:""):x===null||x===void 0?k.removeAttribute(z):(F=x.toString(),z==="href"&&(F=g.Sy(g.JE(F))),k.setAttribute(z,F))};
g.Y=function(F){g.mi.call(this,F);this.Q2=!0;this.W=!1;this.listeners=[]};
g.Q7=function(F){g.Y.call(this,F);this.J4=new g.uG;g.b(this,this.J4)};
hL=function(F,k,z,x,D,e,C){C=C===void 0?null:C;g.Q7.call(this,k);this.api=F;this.macros={};this.componentType=z;this.G=this.B=null;this.dH=C;this.layoutId=x;this.interactionLoggingClientData=D;this.BR=e;this.u$=null;this.mX=new Gb(this.element);g.b(this,this.mX);this.vR=this.N(this.element,"click",this.onClick);this.mp=[];this.t4=new Ux(this.onClick,this);g.b(this,this.t4);this.UH=!1;this.yh=this.Qh=null};
se=function(F,k){F=F===void 0?null:F;k=k===void 0?null:k;if(F==null)return g.yI(Error("Got null or undefined adText object")),"";var z=g.eI(F.text);if(!F.isTemplated)return z;if(k==null)return g.yI(Error("Missing required parameters for a templated message")),z;F=g.l(Object.entries(k));for(k=F.next();!k.done;k=F.next()){var x=g.l(k.value);k=x.next().value;x=x.next().value;z=z.replace("{"+k+"}",x)}return z};
eP9=function(F){F=F===void 0?null:F;return F!=null&&(F=F.thumbnail,F!=null&&F.thumbnails!=null&&F.thumbnails.length!=0&&F.thumbnails[0].url!=null)?g.eI(F.thumbnails[0].url):""};
CMD=function(F){F=F===void 0?null:F;return F!=null&&(F=F.thumbnail,F!=null&&F.thumbnails!=null&&F.thumbnails.length!=0&&F.thumbnails[0].width!=null&&F.thumbnails[0].height!=null)?new g.BB(F.thumbnails[0].width||0,F.thumbnails[0].height||0):new g.BB(0,0)};
g.rt=function(F){if(F.simpleText)return F.simpleText;if(F.runs){var k=[];F=g.l(F.runs);for(var z=F.next();!z.done;z=F.next())z=z.value,z.text&&k.push(z.text);return k.join("")}return""};
g.Bx=function(F){if(F.simpleText)return F=document.createTextNode(F.simpleText),F;var k=[];if(F.runs)for(var z=0;z<F.runs.length;z++){var x=F.runs[z];if(x.text){var D=k,e=D.push,C=null;var p=x.text;x.bold&&(C=e0("B",null,C||p));x.italics&&(C=e0("I",null,C||p));x.strikethrough&&(C=e0("STRIKE",null,C||p));x.navigationEndpoint&&x.navigationEndpoint.urlEndpoint&&(x=x.navigationEndpoint.urlEndpoint,C=e0("A",null,C||p),g.Ru(C,x.url),x.target=="TARGET_NEW_WINDOW"&&(C.target="_blank"));p=C||e0("SPAN",null,
p);e.call(D,p)}}return k.length==1?k[0]:e0("SPAN",null,k)};
g.A6R=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,D:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
Gm=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",D:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.Ue=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},Z:[{X:"path",D:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.tL=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},Z:[{X:"path",D:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
pAk=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},Z:[{X:"path",D:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{X:"path",D:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
EK5=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},Z:[{X:"path",Qz:!0,D:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
XAa=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},Z:[{X:"path",Qz:!0,D:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.Z4=function(){return{X:"svg",D:{height:"100%",viewBox:"0 0 24 24",width:"100%"},Z:[{X:"path",D:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
qtp=function(){return{X:"svg",D:{height:"100%",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",D:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
N35=function(){return{X:"svg",D:{viewBox:"0 0 24 24"},Z:[{X:"path",D:{d:"M0 0h24v24H0z",fill:"none"}},{X:"path",D:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
uaH=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}};
wA9=function(){return{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{X:"path",D:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
fill:"white","fill-rule":"evenodd"}}]}};
mAn=function(){return{X:"svg",D:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},Z:[{X:"path",D:{d:"M0 0h48v48H0z",fill:"none"}},{X:"path",D:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
T3x=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"m 17,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
l0x=function(){return{X:"svg",D:{viewBox:"0 0 24 24"},Z:[{X:"path",D:{d:"M0 0h24v24H0z",fill:"none"}},{X:"path",D:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
vx=function(){return{X:"svg",D:{height:"100%",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",D:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
Qw9=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},Z:[{X:"path",Qz:!0,D:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
cx=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.Px=function(){return{X:"svg",D:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},Z:[{X:"path",D:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
Oe=function(){return{X:"svg",D:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},Z:[{X:"path",D:{d:"M0 0h48v48H0z",fill:"none"}},{X:"path",D:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]}};
hPR=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
sw9=function(){return{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{X:"path",J:"ytp-svg-fill",D:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}};
r6C=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,D:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
V7=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
B3D=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.Ia=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
g.Hx=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,D:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
g.aa=function(){return{X:"svg",D:{height:"100%",viewBox:"0 0 16 16",width:"100%"},Z:[{X:"path",D:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}};
GXH=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
SL=function(){return{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
bG=function(F,k,z){k=k===void 0?!1:k;z=z===void 0?!1:z;if(!F)return null;switch(F.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return z?{X:"svg",D:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},Z:[{X:"path",D:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:Oe();case "CHECK_BOX":return{X:"svg",D:{height:"100%",viewBox:"0 0 24 24",width:"100%"},Z:[{X:"path",D:{d:"M0 0h24v24H0z",fill:"none"}},{X:"path",D:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",
fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{X:"svg",D:{height:"100%",viewBox:"0 0 24 24",width:"100%"},Z:[{X:"path",D:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{X:"path",D:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.Z4();case "INFO_OUTLINE":return k?{X:"svg",D:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},Z:[{X:"path",D:{d:"M430.09-270.8h101.34V-528H430.09v257.2Zm49.52-338.03q20.94 0 35.34-14.01 14.4-14.01 14.4-34.95 0-20.94-14.01-35.34-14.01-14.39-34.95-14.39-20.94 0-35.34 14.01-14.4 14.01-14.4 34.95 0 20.94 14.01 35.34 14.01 14.39 34.95 14.39Zm.67 548.18q-86.64 0-163.19-32.66-76.56-32.66-133.84-89.94t-89.94-133.8q-32.66-76.51-32.66-163.41 0-87.15 32.72-163.31t90.14-133.61q57.42-57.44 133.79-89.7 76.38-32.27 163.16-32.27 87.14 0 163.31 32.26 76.16 32.26 133.61 89.71 57.45 57.45 89.71 133.86 32.26 76.42 32.26 163.33 0 86.91-32.27 163.08-32.26 76.18-89.7 133.6-57.45 57.42-133.83 90.14-76.39 32.72-163.27 32.72Zm-.33-105.18q131.13 0 222.68-91.49 91.54-91.49 91.54-222.63 0-131.13-91.49-222.68-91.49-91.54-222.63-91.54-131.13 0-222.68 91.49-91.54 91.49-91.54 222.63 0 131.13 91.49 222.68 91.49 91.54 222.63 91.54ZM480-480Z"}}]}:
mAn();case "REMOVE_CIRCLE":return{X:"svg",D:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},Z:[{X:"path",D:{d:"M0 0h24v24H0z",fill:"none"}},{X:"path",D:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return cx();case "SKIP_NEXT_NEW":return{X:"svg",D:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},Z:[{X:"path",D:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return l0x();
case "DISLIKE":return N35();default:return g.yI(new g.Fa("Unexpected icon:",F)),null}};
dt=function(F,k,z,x,D,e,C,p,E){D=D===void 0?[]:D;C=C===void 0?!1:C;E=E===void 0?!1:E;D={X:"button",WR:["ytp-ad-button"].concat(D)};p!=null&&(D.D={tabindex:p});hL.call(this,F,D,e===void 0?"button":e,k,z,x);this.Y=this.L=this.U=null;this.S=C;this.j=E;this.hide()};
UAx=function(F){var k=null;F.Y!=null&&(k=[F.Y.serviceEndpoint,F.Y.navigationEndpoint].filter(function(z){return z!=null}),F.Y.command&&(k=k.concat(F.Y.command)));
return k||[]};
JL=function(){g.S.call(this);var F=this;this.Y=new Map;this.L=RTx(function(k){if(k.target&&(k=F.Y.get(k.target))&&k)for(var z=0;z<k.length;z++)g.MK(k[z])})};
tBI=function(){y7==null&&(y7=new JL);return y7};
Ra=function(F,k){if(F.simpleText){a:{F=F.simpleText;if(k&&(k=ZMR(F))){k=e0("SPAN",null,k);break a}k=g.As(F)}return k}var z=[];if(F.runs)for(var x=0;x<F.runs.length;x++){var D=F.runs[x];D.text&&z.push(vKp(D,k))}return z.length==1?z[0]:e0("SPAN",null,z)};
vKp=function(F,k){var z=null,x=F.text;k&&(x=ZMR(x)||x);F.bold&&(z=e0("B",null,z||x));F.italics&&(z=e0("I",null,z||x));F.strikethrough&&(z=e0("STRIKE",null,z||x));F.navigationEndpoint&&g.J(F.navigationEndpoint,g.gt)&&(k=g.J(F.navigationEndpoint,g.gt),z=e0("A",null,z||x),g.Ru(z,k.url),k.target=="TARGET_NEW_WINDOW"&&(z.target="_blank"),F=F.navigationEndpoint.loggingUrls)&&(F=F.map(function(D){return D.baseUrl}),tBI().register(z,F),g.C6(z,"ytp-ad-has-logging-urls"));
return z||e0("SPAN",null,x)};
ZMR=function(F){F=F.split(/(?:\r\n|\r|\n)/g);if(F.length>1){for(var k=[F[0]],z=1;z<F.length;z++)k.push(e0("BR")),k.push(F[z]);return k}return null};
YB=function(F,k,z,x,D,e,C,p,E){e=e===void 0?!1:e;C=C===void 0?[]:C;E=E===void 0?!1:E;hL.call(this,F,{X:"span",WR:["ytp-ad-hover-text-button"].concat(C)},p===void 0?"ad-hover-text-button":p,k,z,x);this.button=this.L=null;this.K=e;this.S=D;this.U=E;this.hide()};
nJ=function(F){return F&&F.thumbnails&&(F.thumbnails||null).length!=0&&F.thumbnails[0].url?g.eI(F.thumbnails[0].url):""};
Mh=function(F,k,z,x,D,e){e=e===void 0?!1:e;hL.call(this,F,{X:"img",J:"ytp-ad-image"},"ad-image",k,z,x,D===void 0?null:D);this.Y=e;this.hide()};
LJ=function(F,k,z,x,D,e){D=D===void 0?[]:D;hL.call(this,F,{X:"div",WR:["ytp-ad-confirm-dialog-background"],Z:[{X:"div",J:"ytp-ad-confirm-dialog-container",Z:[{X:"div",WR:["ytp-ad-confirm-dialog"].concat(D),D:{role:"dialog",tabindex:"-1"},Z:[{X:"div",J:"ytp-ad-confirm-dialog-title",jk:"{{title}}"},{X:"div",J:"ytp-ad-confirm-dialog-messages"},{X:"div",J:"ytp-ad-confirm-dialog-confirm-container",Z:[{X:"button",J:"ytp-ad-confirm-dialog-cancel-button",jk:"{{cancelLabel}}"},{X:"button",J:"ytp-ad-confirm-dialog-confirm-button",
jk:"{{confirmLabel}}"}]}]}]},{X:"button",WR:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],Z:[{X:"span",J:"ytp-ad-button-icon",Z:[g.Z4()]}]}]},e===void 0?"confirm-dialog":e,k,z,x);this.K=this.EK("ytp-ad-confirm-dialog-close-overlay-button");this.j=this.EK("ytp-ad-confirm-dialog-cancel-button");this.S=this.EK("ytp-ad-confirm-dialog-confirm-button");this.PR=this.EK("ytp-ad-confirm-dialog-messages");this.U=null;this.Y=new PW;g.b(this,this.Y);this.L=null;this.hide()};
c66=function(F,k){if(k.title){var z=g.rt(k.title);F.updateValue("title",z)}if(k.dialogMessages){z=g.l(k.dialogMessages);for(var x=z.next();!x.done;x=z.next())x=Ra(x.value),F.PR.appendChild(x)}k.cancelLabel&&(z=g.rt(k.cancelLabel),F.updateValue("cancelLabel",z),F.Y.N(F.j,"click",function(D){return F.SG(D)}));
k.confirmLabel&&(k=g.rt(k.confirmLabel),F.updateValue("confirmLabel",k),F.Y.N(F.S,"click",function(D){return F.wj(D)}));
F.Y.N(F.K,"click",function(D){return F.NG(D)})};
fJ=function(F,k,z,x,D,e){D=D===void 0?[]:D;e=e===void 0?"toggle-button":e;var C=qh("ytp-ad-toggle-button-input"),p={role:"button","aria-label":"{{tooltipText}}"};F.C().experiments.Ca("fix_h5_toggle_button_a11y")&&(p.tabindex="0");F.C().experiments.Ca("fix_toggle_button_role_for_ad_components")&&(p.role="checkbox");hL.call(this,F,{X:"div",WR:["ytp-ad-toggle-button"].concat(D),Z:[{X:"label",J:"ytp-ad-toggle-button-label",D:{"for":C},Z:[{X:"span",J:"ytp-ad-toggle-button-icon",D:p,Z:[{X:"span",J:"ytp-ad-toggle-button-untoggled-icon",
jk:"{{untoggledIconTemplateSpec}}"},{X:"span",J:"ytp-ad-toggle-button-toggled-icon",jk:"{{toggledIconTemplateSpec}}"}]},{X:"input",J:"ytp-ad-toggle-button-input",D:{id:C,type:"checkbox"}},{X:"span",J:"ytp-ad-toggle-button-text",jk:"{{buttonText}}"},{X:"span",J:"ytp-ad-toggle-button-tooltip",jk:"{{tooltipText}}"}]}]},e,k,z,x);this.j=this.EK("ytp-ad-toggle-button");this.Y=this.EK("ytp-ad-toggle-button-input");this.L=this.EK("ytp-ad-toggle-button-icon");this.K=this.EK("ytp-ad-toggle-button-untoggled-icon");
this.S=this.EK("ytp-ad-toggle-button-toggled-icon");this.Xf=this.EK("ytp-ad-toggle-button-text");this.U=null;this.PR=!1;this.hide()};
KJ=function(F){F.PR&&(F.isToggled()?(g.BS(F.K,!1),g.BS(F.S,!0),F.api.C().experiments.Ca("fix_toggle_button_role_for_ad_components")&&F.L.setAttribute("aria-checked",!0)):(g.BS(F.K,!0),g.BS(F.S,!1),F.api.C().experiments.Ca("fix_toggle_button_role_for_ad_components")&&F.L.setAttribute("aria-checked",!1)))};
PMR=function(F,k){var z=null;F.U&&(z=(k?[F.U.defaultServiceEndpoint,F.U.defaultNavigationEndpoint]:[F.U.toggledServiceEndpoint]).filter(function(x){return x!=null}));
return z||[]};
OMR=function(F,k,z){this.actionType=k;this.id=z;this.content=F};
Wx=function(F){PW.call(this);this.Y=F;this.N(this.Y,"onAdUxUpdate",this.S)};
FI=function(F,k,z,x){hL.call(this,F,{X:"div",J:"ytp-ad-feedback-dialog-background",Z:[{X:"div",J:"ytp-ad-feedback-dialog-container",Z:[{X:"div",J:"ytp-ad-feedback-dialog-form",D:{role:"dialog",tabindex:"-1"},Z:[{X:"div",J:"ytp-ad-feedback-dialog-title",Z:[{X:"span",jk:"{{title}}"}]},{X:"span",J:"ytp-ad-info-dialog-feedback-options-title",jk:"{{reasonsTitle}}"},{X:"div",J:"ytp-ad-info-dialog-feedback-options"},{X:"div",J:"ytp-ad-feedback-dialog-confirm-container",Z:[{X:"button",J:"ytp-ad-feedback-dialog-cancel-button",
jk:"{{cancelLabel}}"},{X:"button",J:"ytp-ad-feedback-dialog-confirm-button",jk:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",k,z,x);this.j=[];this.Y=null;this.S=this.EK("ytp-ad-feedback-dialog-cancel-button");this.K=this.EK("ytp-ad-feedback-dialog-confirm-button");this.PR=this.EK("ytp-ad-info-dialog-feedback-options");this.Xf=this.EK("ytp-ad-feedback-dialog-title");this.U=this.L=null;this.hide()};
a0C=function(F,k){var z=k.cancelRenderer&&k.cancelRenderer.buttonRenderer||null;z&&(F.Y=new dt(F.api,F.layoutId,F.interactionLoggingClientData,F.BR,["ytp-ad-feedback-dialog-close-button"],"button"),g.b(F,F.Y),F.Y.init(qh("button"),z,F.macros),F.Y.listen("click",F.Tg,F),F.Y.T4(F.element));k.title&&(z=g.rt(k.title),F.updateValue("title",z));k.reasonsTitle&&(z=g.rt(k.reasonsTitle),F.updateValue("reasonsTitle",z));k.reasons&&VBR(F,k.reasons);k.cancelLabel&&(z=g.rt(k.cancelLabel),F.updateValue("cancelLabel",
z),g.UN(F.S,"click",function(){return F.Tg()}));
k.confirmLabel&&(z=g.rt(k.confirmLabel),F.updateValue("confirmLabel",z),g.UN(F.K,"click",function(){return I0H(F)}));
k.undoRenderer&&HMk(F,k.undoRenderer)};
VBR=function(F,k){k=g.l(k);for(var z=k.next();!z.done;z=k.next()){var x=z.value;z=x.reason;if(z==null)g.yI(Error("AdFeedbackReason.reason was not set."));else if(x=x.endpoint,x==null)g.yI(Error("AdFeedbackReason.endpoint was not set."));else{z=new ka(z,x);g.b(F,z);x=F.PR;var D=z.T$();x.appendChild(D);F.j.push(z)}}};
HMk=function(F,k){if(k=k&&k.buttonRenderer||null)k.serviceEndpoint?(F.L=new dt(F.api,F.layoutId,F.interactionLoggingClientData,F.BR,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.b(F,F.L),F.L.init(qh("ad-feedback-undo-mute-button"),k,F.macros),F.L.listen("click",F.uv_,F),F.L.T4(F.Xf)):g.yI(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
I0H=function(F){var k=F.j.filter(function(z){return z.isChecked()});
k.length!==0&&(k=k[0].getCommand(),F.layoutId?F.BR.executeCommand(k,F.layoutId):g.JV(Error("Missing layoutId for ad feedback dialog.")),F.api.onAdUxClicked("ad-feedback-dialog-confirm-button",F.layoutId),F.publish("a"),F.hide())};
ka=function(F,k){this.L=k;this.Y=new g.Q7({X:"label",J:"ytp-ad-feedback-dialog-reason-label",Z:[{X:"input",J:"ytp-ad-feedback-dialog-reason-input",D:{type:"radio",name:"feedback-reason-group"}},{X:"span",J:"ytp-ad-feedback-dialog-reason-text",jk:g.rt(F)}]});this.U=this.Y.EK("ytp-ad-feedback-dialog-reason-input")};
oc=function(F,k,z,x){LJ.call(this,F,k,z,x,[],"ad-mute-confirm-dialog")};
zo=function(F,k,z,x,D){hL.call(this,F,{X:"div",J:"ytp-ad-info-dialog-background",Z:[{X:"div",J:"ytp-ad-info-dialog-container",Z:[{X:"div",J:"ytp-ad-info-dialog-form",D:{role:"dialog",tabindex:"-1"},Z:[{X:"div",J:"ytp-ad-info-dialog-title",jk:"{{title}}"},{X:"ul",J:"ytp-ad-info-dialog-ad-reasons"},{X:"div",J:"ytp-ad-info-dialog-message"},{X:"div",J:"ytp-ad-info-dialog-mute-container"},{X:"div",J:"ytp-ad-info-dialog-confirm-container",Z:[{X:"button",J:"ytp-ad-info-dialog-confirm-button",jk:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",k,z,x);this.Y=this.L=null;this.K=this.EK("ytp-ad-info-dialog-confirm-button");this.NJ=this.EK("ytp-ad-info-dialog-mute-container");this.RU=this.EK("ytp-ad-info-dialog-message");this.cR=this.EK("ytp-ad-info-dialog-ad-reasons");this.j=this.U=null;this.Xf=D;this.S=null;this.l$=!1;this.PR=null;this.hide()};
Sta=function(F,k){if(k=k.content&&k.content.adFeedbackRenderer||null)F.L=new FI(F.api,F.layoutId,F.interactionLoggingClientData,F.BR),g.b(F,F.L),F.L.init(qh("ad-feedback-dialog"),k,F.macros),F.L.T4(F.Xf),F.L.subscribe("a",function(){return F.publish("c")})};
bMI=function(F,k){if(k=k.content&&k.content.confirmDialogRenderer||null)F.j=new oc(F.api,F.layoutId,F.interactionLoggingClientData,F.BR),g.b(F,F.j),F.j.init(qh("ad-mute-confirm-dialog"),k,F.macros),F.j.T4(F.Xf),F.j.subscribe("b",function(){return F.publish("c")})};
dAx=function(F){F.Y&&F.Y.listen("click",F.M7,F);g.UN(F.K,"click",function(){return F.M7()})};
xa=function(F,k,z,x,D,e,C){YB.call(this,F,k,z,x,e===void 0?!0:e,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",C===void 0?!1:C);this.Y=null;this.j=D;this.hide()};
y66=function(F,k,z){k=k.dialog&&g.J(k.dialog,J6I)||null;k==null?g.JV(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(F.Y=new zo(F.api,F.layoutId,F.interactionLoggingClientData,F.BR,F.j),g.b(F,F.Y),F.Y.init(qh("ad-info-dialog"),k,z),F.Y.T4(F.j),F.Y.subscribe("d",function(){return F.publish("f")}),F.Y.subscribe("c",function(){return F.publish("e")}))};
YtI=function(F,k,z){F.button==null?g.JV(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(F.L&&g.C6(F.L.element,"ytp-ad-info-hover-text-short"),(k=k&&k.serviceEndpoint&&g.J(k.serviceEndpoint,RPn)||null)?(y66(F,k,z),F.button.listen("click",function(){F.Y&&!F.Y.Q2&&(F.Y.show(),gKk(F))})):F.button.listen("click",function(){return gKk(F)}))};
gKk=function(F){F.api.onAdUxClicked("ad-info-icon-button",F.layoutId)};
iH=function(F,k,z,x,D,e){hL.call(this,F,{X:"div",J:"ytp-ad-text"},e===void 0?"ad-text":e,k,z,x,D===void 0?null:D);this.Y=null;this.hide()};
Db=function(F,k){k&&g.uE(F.element,se(F.Y,k))};
$a=function(F,k,z,x,D,e,C){hL.call(this,F,k,z,x,D,e);this.Y=C;g.b(this,this.Y);this.l$=this.K=-1};
j_=function(F){F.Y&&F.K===-1&&(F.K=F.Y.subscribe("h",F.j1,F),F.l$=F.Y.subscribe("g",F.Xk,F),F.j1())};
e_=function(F){F.Y!=null&&F.K!==-1&&(F.Y.QL(F.K),F.Y.QL(F.l$),F.l$=-1,F.K=-1)};
g.Cv=function(F,k,z,x,D,e){g.S.call(this);this.element=F;this.state=null;z||F.hide();this.L=k;this.U=x===void 0?k:x;this.Y=e;this.onHidden=D;this.delay=new g.KS(this.dC,0,this);g.b(this,this.delay)};
AI=function(F,k){F=F.element.element;k?F.setAttribute("aria-hidden","true"):F.removeAttribute("aria-hidden")};
pv=function(F,k,z,x,D,e){$a.call(this,F,{X:"div",J:"ytp-ad-preview-slot"},"ad-preview",k,z,x,D);var C=this;this.NJ=-1;this.j=this.api.C().experiments.Ca("enable_modern_skip_button_on_web");this.L=new g.Q7({X:"span",J:"ytp-ad-preview-container"});this.j&&this.L.element.classList.add("ytp-ad-preview-container-detached");g.b(this,this.L);this.U=this.j?new iH(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,"ytp-ad-preview-text-modern"):new iH(this.api,this.layoutId,this.interactionLoggingClientData,
this.BR,"ytp-ad-preview-text");g.b(this,this.U);this.U.T4(this.L.element);this.Xf=this.j?new g.Q7({X:"span",J:"ytp-ad-preview-image-modern"}):new g.Q7({X:"span",J:"ytp-ad-preview-image"});g.b(this,this.Xf);this.S=new Mh(this.api,this.layoutId,this.interactionLoggingClientData,this.BR);g.b(this,this.S);this.S.T4(this.Xf.element);this.Xf.T4(this.L.element);this.L.T4(this.element);this.PR=new g.Cv(this.L,400,!1,100,function(){return C.hide()});
g.b(this,this.PR);this.cR=0;this.RU=!1;this.kG=e;this.hide()};
Eq=function(F,k,z,x,D,e){$a.call(this,F,{X:"div",WR:["ytp-flyout-cta","ytp-flyout-cta-inactive"],Z:[{X:"div",J:"ytp-flyout-cta-icon-container"},{X:"div",J:"ytp-flyout-cta-body",Z:[{X:"div",J:"ytp-flyout-cta-text-container",Z:[{X:"div",J:"ytp-flyout-cta-headline-container"},{X:"div",J:"ytp-flyout-cta-description-container"}]},{X:"div",J:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",k,z,x,D);this.U=new Mh(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,"ytp-flyout-cta-icon");
g.b(this,this.U);this.U.T4(this.EK("ytp-flyout-cta-icon-container"));this.U.element.classList.add("ytp-flyout-cta-icon-rounded");this.S=new iH(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,"ytp-flyout-cta-headline");g.b(this,this.S);this.S.T4(this.EK("ytp-flyout-cta-headline-container"));this.j=new iH(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,"ytp-flyout-cta-description");g.b(this,this.j);this.j.T4(this.EK("ytp-flyout-cta-description-container"));F=["ytp-flyout-cta-action-button"];
this.api.C().V("web_modern_buttons")&&F.push("ytp-flyout-cta-action-button-rounded");this.L=new dt(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,F);g.b(this,this.L);this.L.T4(this.EK("ytp-flyout-cta-action-button-container"));this.L.element.setAttribute("tabIndex","-1");Y2(this.L.element);this.PR=null;this.Xf=0;this.cR=e;this.hide()};
XI=function(F,k,z,x,D){hL.call(this,F,{X:"div",J:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",k,z,x,D===void 0?null:D);var e=this;this.Y=null;this.U=new fJ(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,["ytp-ad-instream-user-sentiment-like-button"]);g.b(this,this.U);this.U.T4(this.element);this.L=new fJ(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,["ytp-ad-instream-user-sentiment-dislike-button"]);g.b(this,this.L);this.L.T4(this.element);
this.j=new g.Cv(this,400,!1,500,function(){return e.hide()});
g.b(this,this.j);this.hide()};
qf=function(F,k,z,x,D,e){D=D===void 0?0:D;e=e===void 0?!1:e;g.S.call(this);this.L=F;this.U=!1;this.K=x;this.Qh=e;this.S=!1;this.Y=null;k>0&&(this.Y=new g.KS(this.Ud,k,this),g.b(this,this.Y));this.W=new g.KS(this.Ud,z,this);g.b(this,this.W);this.B=GOp(this.L,D,1,x);g.b(this,this.B);this.G=GOp(this.L,0,x,1);g.b(this,this.G);this.j=new PW;g.b(this,this.j)};
Nf=function(F,k,z){this.L=F;this.isAsync=k;this.Y=z};
nK9=function(F){switch(F){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:ji(F,"unknown result type")}};
MBC=function(F,k){var z=1;F.isTrusted===!1&&(z=0);MJ("ISDSTAT",z);uH(z,"i.s_",{triggerContext:"sk",metadata:k});return z};
LgC=function(F,k){var z=[];k?k.isTrusted===!0?z.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):k.isTrusted===!1?z.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):z.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):z.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");uH(0,"a.s_",{metadata:F,states:z});MJ("ASDSTAT",0)};
uH=function(F,k,z){k=f0a[k];var x,D,e={detected:F===0,source:""+k.L+((x=z.triggerContext)!=null?x:"")+((D=z.GS)!=null?D:""),detectionStates:z.states,durationMs:z.IH};z.metadata&&(e.contentCpn=z.metadata.contentCpn,e.adCpn=z.metadata.adCpn);g.NA("biscottiBasedDetection",e);k.Y!==void 0&&(z=Number(g.LX("CATSTAT",0)),k.Y!==void 0?(k=k.Y,F=nK9(F),F=z&~(3<<k)|F<<k):F=z,MJ("CATSTAT",F))};
w8=function(F){return F?"layout:  "+F.layoutType:""};
m2=function(F,k,z){return F?!0:(g.yI(new g.Fa("Assertion: "+k,z)),!1)};
To=function(F,k,z,x,D){x=x===void 0?{}:x;if(!D||Math.random()<5E-4){k=k||null;z=z||null;F=F instanceof Error?F:new g.Fa(F);if(F.args)for(var e=g.l(F.args),C=e.next();!C.done;C=e.next())C=C.value,C instanceof Object&&(x=Object.assign({},C,x));x.category="H5 Ads Control Flow";k&&(x.slot=k?"slot:  "+k.slotType:"");z&&(x.layout=w8(z),x.layoutId=z.layoutId);D&&(x.known_error_aggressively_sampled=!0);F.args=[x];g.yI(F)}};
g.lH=function(F,k){this.state=F;this.oldState=k};
Qo=function(F,k){return g.n(F.state,k)&&!g.n(F.oldState,k)?1:!g.n(F.state,k)&&g.n(F.oldState,k)?-1:0};
g.hI=function(F,k){return Qo(F,k)>0};
sq=function(F,k,z,x,D,e){$a.call(this,F,{X:"div",J:"ytp-ad-skip-button-slot"},"skip-button",k,z,x,D);var C=this;this.PR=null;this.Xf=!1;this.RU=e;this.S=this.api.C().experiments.Ca("enable_modern_skip_button_on_web");this.NJ=!1;this.U=new g.Q7({X:"span",WR:["ytp-ad-skip-button-container"]});this.S&&this.U.element.classList.add("ytp-ad-skip-button-container-detached");this.api.V("enable_ad_pod_index_autohide")&&this.U.element.classList.add("ytp-ad-skip-button-container--clean-player");g.b(this,this.U);
this.U.T4(this.element);this.L=this.j=null;this.kG=new g.Cv(this.U,500,!1,100,function(){return C.hide()});
g.b(this,this.kG);this.cR=new qf(this.U.element,15E3,5E3,.5,.5,this.S);g.b(this,this.cR);this.hide()};
WgY=function(F){F=F.PR&&F.PR.adRendererCommands;return(F&&F.clickCommand&&g.J(F.clickCommand,g.r8)&&g.J(F.clickCommand,g.r8).commands||[]).some(function(k){return k.adLifecycleCommand?KgD(k.adLifecycleCommand):!1})};
KgD=function(F){return F.action==="END_LINEAR_AD"||F.action==="END_LINEAR_AD_PLACEMENT"};
Bu=function(F,k,z,x,D,e){$a.call(this,F,{X:"div",J:"ytp-ad-skip-ad-slot"},"skip-ad",k,z,x,D);this.PR=e;this.j=!1;this.S=0;this.U=this.L=null;this.hide()};
FND=function(F,k){F.j||(F.j=!0,F.L&&(k?F.L.PR.hide():F.L.hide()),k?(F=F.U,F.kG.show(),F.show()):F.U.show())};
Go=function(F,k,z,x){dt.call(this,F,k,z,x,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
Uq=function(F,k,z,x,D,e,C){e=e===void 0?!1:e;C=C===void 0?!1:C;hL.call(this,F,{X:"span",J:"ytp-ad-simple-ad-badge"},"simple-ad-badge",k,z,x);this.U=D;this.Y=this.EK("ytp-ad-simple-ad-badge");(this.L=e)&&this.Y.classList.add("ytp-ad-simple-ad-badge--clean-player");C&&this.Y.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()};
tI=function(F,k,z,x,D){D=D===void 0?!1:D;Nh.call(this,"player-overlay",F,{},k,x);this.videoAdDurationSeconds=z;this.interactionLoggingClientData=x;this.vL=D};
Zb=function(F,k){g.uG.call(this);this.api=F;this.durationMs=k;this.Y=null;this.j9=new PW(this);g.b(this,this.j9);this.L=kIk;this.j9.N(this.api,"presentingplayerstatechange",this.rS);this.Y=this.j9.N(this.api,"onAdPlaybackProgress",this.xj)};
vu=function(F){g.uG.call(this);this.Y=!1;this.Sj=0;this.j9=new PW(this);g.b(this,this.j9);this.durationMs=F;this.Dj=new g.H4(100);g.b(this,this.Dj);this.j9.N(this.Dj,"tick",this.xj);this.L={seekableStart:0,seekableEnd:F/1E3,current:0};this.start()};
g.cu=function(F,k){var z=Math.abs(Math.floor(F)),x=Math.floor(z/86400),D=Math.floor(z%86400/3600),e=Math.floor(z%3600/60);z=Math.floor(z%60);if(k){k="";x>0&&(k+=" "+x+" Days");if(x>0||D>0)k+=" "+D+" Hours";k+=" "+e+" Minutes";k+=" "+z+" Seconds";x=k.trim()}else{k="";x>0&&(k+=x+":",D<10&&(k+="0"));if(x>0||D>0)k+=D+":",e<10&&(k+="0");k+=e+":";z<10&&(k+="0");x=k+z}return F>=0?x:"-"+x};
g.Pu=function(F){return(!("button"in F)||typeof F.button!=="number"||F.button===0)&&!("shiftKey"in F&&F.shiftKey)&&!("altKey"in F&&F.altKey)&&!("metaKey"in F&&F.metaKey)&&!("ctrlKey"in F&&F.ctrlKey)};
Oq=function(F,k,z,x,D,e,C){$a.call(this,F,{X:"span",J:C?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",k,z,x,D);this.videoAdDurationSeconds=e;this.L=null;C&&this.api.C().L&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),k4&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()};
Vo=function(F,k,z,x){iH.call(this,F,k,z,x,"ytp-video-ad-top-bar-title","ad-title")};
Ic=function(F){this.content=F.content;if(F.commandRuns){F=g.l(F.commandRuns);for(var k=F.next();!k.done;k=F.next())k=k.value,this.loggingDirectives=g.J(k,o4n),k.onTap&&(this.interaction={onTap:k.onTap})}};
Hu=function(F,k,z,x){hL.call(this,F,{X:"div",J:"ad-simple-attributed-string"},"ad-simple-attributed-string",k,z,x);this.hide()};
ac=function(F,k,z,x,D){hL.call(this,F,{X:"span",J:D?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",k,z,x);this.L=D;this.adBadgeText=new Hu(this.api,this.layoutId,this.interactionLoggingClientData,this.BR);this.adBadgeText.T4(this.element);g.b(this,this.adBadgeText);D?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),k4&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()};
S_=function(F,k,z,x){hL.call(this,F,{X:"span",J:"ytp-ad-pod-index"},"ad-pod-index",k,z,x);this.api.C().L&&(this.element.classList.add("ytp-ad-pod-index--mweb"),k4&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()};
bH=function(F,k,z,x){hL.call(this,F,{X:"div",J:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",k,z,x);this.hide()};
d8=function(F,k){this.L=F;this.Y=k};
JI=function(F,k,z){if(!F.getLength())return z!=null?z:Infinity;F=(k-F.L)/F.getLength();return g.l3(F,0,1)};
yo=function(F,k,z,x){x=x===void 0?!1:x;g.Q7.call(this,{X:"div",J:"ytp-ad-persistent-progress-bar-container",Z:[{X:"div",J:"ytp-ad-persistent-progress-bar"}]});this.api=F;this.L=k;this.U=z;x&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.b(this,this.L);this.progressBar=this.EK("ytp-ad-persistent-progress-bar");this.Y=-1;this.N(F,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
Rc=function(F,k,z,x,D,e){hL.call(this,F,{X:"div",J:"ytp-ad-player-overlay",Z:[{X:"div",J:"ytp-ad-player-overlay-flyout-cta"},{X:"div",J:"ytp-ad-player-overlay-instream-info"},{X:"div",J:"ytp-ad-player-overlay-skip-or-preview"},{X:"div",J:"ytp-ad-player-overlay-progress-bar"},{X:"div",J:"ytp-ad-player-overlay-instream-user-sentiment"},{X:"div",J:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",k,z,x);this.K=e;this.S=this.EK("ytp-ad-player-overlay-flyout-cta");this.S.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
this.Y=this.EK("ytp-ad-player-overlay-instream-info");this.j=null;zL6(this)&&(F=e0("div"),g.C6(F,"ytp-ad-player-overlay-top-bar-gradients"),k=this.Y,k.parentNode&&k.parentNode.insertBefore(F,k),(k=this.api.getVideoData(2))&&k.isListed&&k.title&&(z=new Vo(this.api,this.layoutId,this.interactionLoggingClientData,this.BR),z.T4(F),z.init(qh("ad-title"),{text:k.title},this.macros),g.b(this,z)),this.j=F);this.U=null;this.l$=this.EK("ytp-ad-player-overlay-skip-or-preview");this.cR=this.EK("ytp-ad-player-overlay-progress-bar");
this.Xf=this.EK("ytp-ad-player-overlay-instream-user-sentiment");this.PR=this.EK("ytp-ad-player-overlay-ad-disclosure-banner");this.L=D;g.b(this,this.L);this.hide()};
zL6=function(F){F=F.api.C();var k=g.g8(F)&&F.L;return F.V("embeds_embc3ds_atb")&&F.disableOrganicUi&&!0||k};
Ya=function(F,k,z){var x={};k&&(x.v=k);z&&(x.list=z);F={name:F,locale:void 0,feature:void 0};for(var D in x)F[D]=x[D];x=g.oW("/sharing_services",F);g.MK(x)};
g.nv=function(F){F&=16777215;var k=[(F&16711680)>>16,(F&65280)>>8,F&255];F=k[0];var z=k[1];k=k[2];F=Number(F);z=Number(z);k=Number(k);if(F!=(F&255)||z!=(z&255)||k!=(k&255))throw Error('"('+F+","+z+","+k+'") is not a valid RGB color');z=F<<16|z<<8|k;return F<16?"#"+(16777216|z).toString(16).slice(1):"#"+z.toString(16)};
Mf=function(F){this.Y=new Pj(F)};
xKM=function(){var F=!1;try{F=!!window.sessionStorage.getItem("session_logininfo")}catch(k){F=!0}return(g.LX("INNERTUBE_CLIENT_NAME")==="WEB"||g.LX("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&F};
Lv=function(F){if(g.LX("LOGGED_IN",!0)&&xKM()){var k=g.LX("VALID_SESSION_TEMPDATA_DOMAINS",[]);var z=g.Lw(window.location.href);z&&k.push(z);z=g.Lw(F);g.fC(k,z)||!z&&Qn(F,"/")?(k=fw(F),(k=mXp(k))?(k=vna(k),k=(k=g.bP(k)||null)?DC(k):{}):k=null):k=null;k==null&&(k={});z=k;var x=void 0;xKM()?(x||(x=g.LX("LOGIN_INFO")),x?(z.session_logininfo=x,z=!0):z=!1):z=!1;z&&Is(F,k)}};
g.ibH=function(F){var k=k===void 0?{}:k;var z=z===void 0?"":z;var x=x===void 0?window:x;F=g.oW(F,k);Lv(F);z=g.JE(F+z);x=x.location;z=y$(z);z!==void 0&&(x.href=z)};
g.fv=function(F,k,z){k=k===void 0?{}:k;z=z===void 0?!1:z;var x=g.LX("EVENT_ID");x&&(k.ei||(k.ei=x));k&&Is(F,k);z||(Lv(F),g.ibH(F))};
g.Kv=function(F,k,z,x,D){D=D===void 0?!1:D;z&&Is(F,z);z=g.JE(F);var e=g.Sy(z);F!=e&&zE(Error("Unsafe window.open URL: "+F));F=e;k=k||Cx(F).toString(36);try{if(D)return D=F,D=ecR(D),Lv(D),g.MX(window,D,k,"attributionsrc")}catch(C){g.kT(C)}Lv(F);return g.MX(window,z,k,x)};
DKR=function(F){Wu=F};
$KY=function(F){FD=F};
j95=function(F){kx=F};
CaH=function(){eLx=kx=FD=Wu=null};
pyk=function(){var F=F===void 0?window.location.href:F;if(g.sY("kevlar_disable_theme_param"))return null;var k=YV(g.Mt(5,F));if(g.sY("enable_dark_theme_only_on_shorts")&&k!=null&&k.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var z=g.jl(F).theme;return Ay6.get(z)||null}catch(x){}return null};
oH=function(){this.Y={};if(this.L=qXn()){var F=g.bP("CONSISTENCY");F&&E4p(this,{encryptedTokenJarContents:F})}};
E4p=function(F,k){if(k.encryptedTokenJarContents&&(F.Y[k.encryptedTokenJarContents]=k,typeof k.expirationSeconds==="string")){var z=Number(k.expirationSeconds);setTimeout(function(){delete F.Y[k.encryptedTokenJarContents]},z*1E3);
F.L&&g.Sl("CONSISTENCY",k.encryptedTokenJarContents,z,void 0,!0)}};
xx=function(){this.L=-1;var F=g.LX("LOCATION_PLAYABILITY_TOKEN");g.LX("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=zN(this))&&(F=this.localStorage.get("yt-location-playability-token"));F&&(this.locationPlayabilityToken=F,this.Y=void 0)};
zN=function(F){return F.localStorage===void 0?new CM("yt-client-location"):F.localStorage};
g.i0=function(F,k,z){k=k===void 0?!1:k;z=z===void 0?!1:z;var x=g.LX("INNERTUBE_CONTEXT");if(!x)return g.JV(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};x=g.yd(x);g.sY("web_no_tracking_params_in_shell_killswitch")||delete x.clickTracking;x.client||(x.client={});var D=x.client;D.clientName==="MWEB"&&D.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(D.clientFormFactor=g.LX("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 e=e===void 0?!1:e;g.nu();var C="USER_INTERFACE_THEME_LIGHT";g.M5(0,165)?C="USER_INTERFACE_THEME_DARK":g.M5(0,174)?C="USER_INTERFACE_THEME_LIGHT":!g.sY("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&
(C="USER_INTERFACE_THEME_DARK");e=e?C:pyk()||C;D.userInterfaceTheme=e;if(!k){if(e=oek())D.connectionType=e;g.sY("web_log_effective_connection_type")&&(e=xg6())&&(x.client.effectiveConnectionType=e)}var p;if(g.sY("web_log_memory_total_kbytes")&&((p=g.bD.navigator)==null?0:p.deviceMemory)){var E;p=(E=g.bD.navigator)==null?void 0:E.deviceMemory;x.client.memoryTotalKbytes=""+p*1E6}g.sY("web_gcf_hashes_innertube")&&(e=AUY())&&(E=e.coldConfigData,p=e.coldHashData,e=e.hotHashData,x.client.configInfo=x.client.configInfo||
{},E&&(x.client.configInfo.coldConfigData=E),p&&(x.client.configInfo.coldHashData=p),e&&(x.client.configInfo.hotHashData=e));E=g.jl(g.bD.location.href);!g.sY("web_populate_internal_geo_killswitch")&&E.internalcountrycode&&(D.internalGeo=E.internalcountrycode);D.clientName==="MWEB"||D.clientName==="WEB"?(D.mainAppWebInfo={graftUrl:g.bD.location.href},g.sY("kevlar_woffle")&&Mu5.instance&&(E=Mu5.instance,D.mainAppWebInfo.pwaInstallabilityStatus=!E.Y&&E.L?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":
"PWA_INSTALLABILITY_STATUS_UNKNOWN"),D.mainAppWebInfo.webDisplayMode=yB(),D.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):D.clientName==="TVHTML5"&&(!g.sY("web_lr_app_quality_killswitch")&&(E=g.LX("LIVING_ROOM_APP_QUALITY"))&&(D.tvAppInfo=Object.assign(D.tvAppInfo||{},{appQuality:E})),E=g.LX("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(D.tvAppInfo=Object.assign(D.tvAppInfo||{},{certificationScope:E}));if(!g.sY("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!==
"undefined")try{var X=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(I){}X=void 0}X&&(D.timeZone=X)}(X=Bp())?D.experimentsToken=X:delete D.experimentsToken;X=GE();oH.instance||(oH.instance=new oH);x.request=Object.assign({},x.request,{internalExperimentFlags:X,consistencyTokenJars:g.OV(oH.instance.Y)});!g.sY("web_prequest_context_killswitch")&&(X=g.LX("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(x.request.externalPrequestContext=X);D=g.nu();X=g.M5(0,58);D=D.get("gsml","");x.user=Object.assign({},
x.user);X&&(x.user.enableSafetyMode=X);D&&(x.user.lockedSafetyMode=!0);g.sY("warm_op_csn_cleanup")?z&&(k=g.OK())&&(x.clientScreenNonce=k):!k&&(k=g.OK())&&(x.clientScreenNonce=k);F&&(x.clickTracking={clickTrackingParams:F});if(F=g.yR("yt.mdx.remote.remoteClient_"))x.remoteClient=F;xx.getInstance().setLocationOnInnerTubeContext(x);try{var q=Nz(),N=q.bid;delete q.bid;x.adSignalsInfo={params:[],bid:N};for(var u=g.l(Object.entries(q)),w=u.next();!w.done;w=u.next()){var m=g.l(w.value),h=m.next().value,
B=m.next().value;q=h;N=B;F=void 0;(F=x.adSignalsInfo.params)==null||F.push({key:q,value:""+N})}var U,v;if(((U=x.client)==null?void 0:U.clientName)==="TVHTML5"||((v=x.client)==null?void 0:v.clientName)==="TVHTML5_UNPLUGGED"){var P=g.LX("INNERTUBE_CONTEXT");P.adSignalsInfo&&(x.adSignalsInfo.advertisingId=P.adSignalsInfo.advertisingId,x.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",x.adSignalsInfo.limitAdTracking=P.adSignalsInfo.limitAdTracking)}}catch(I){g.JV(I)}return x};
N4x=function(F,k){if(!F)return!1;var z,x=(z=g.J(F,XyH))==null?void 0:z.signal;if(x&&k.t9)return!!k.t9[x];var D;if((z=(D=g.J(F,qaH))==null?void 0:D.request)&&k.JB)return!!k.JB[z];for(var e in F)if(k.nP[e])return!0;return!1};
uKn=function(F){var k={"Content-Type":"application/json"};g.LX("EOM_VISITOR_DATA")?k["X-Goog-EOM-Visitor-Id"]=g.LX("EOM_VISITOR_DATA"):g.LX("VISITOR_DATA")&&(k["X-Goog-Visitor-Id"]=g.LX("VISITOR_DATA"));k["X-Youtube-Bootstrap-Logged-In"]=g.LX("LOGGED_IN",!1);g.LX("DEBUG_SETTINGS_METADATA")&&(k["X-Debug-Settings-Metadata"]=g.LX("DEBUG_SETTINGS_METADATA"));F!=="cors"&&((F=g.LX("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(k["X-Youtube-Client-Name"]=F),(F=g.LX("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(k["X-Youtube-Client-Version"]=
F),(F=g.LX("CHROME_CONNECTED_HEADER"))&&(k["X-Youtube-Chrome-Connected"]=F),(F=g.LX("DOMAIN_ADMIN_STATE"))&&(k["X-Youtube-Domain-Admin-State"]=F),g.LX("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(F=g.LX("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(k["X-YouTube-Lava-Device-Context"]=F));return k};
wyx=function(){this.Y={}};
DQ=function(){this.mappings=new wyx};
$x=function(F){return function(){return new F}};
T4Y=function(F){var k=k===void 0?"UNKNOWN_INTERFACE":k;if(F.length===1)return F[0];var z=mKa[k];if(z){z=new RegExp(z);for(var x=g.l(F),D=x.next();!D.done;D=x.next())if(D=D.value,z.exec(D))return D}var e=[];Object.entries(mKa).forEach(function(C){var p=g.l(C);C=p.next().value;p=p.next().value;k!==C&&e.push(p)});
z=new RegExp(e.join("|"));F.sort(function(C,p){return C.length-p.length});
x=g.l(F);for(D=x.next();!D.done;D=x.next())if(D=D.value,!z.exec(D))return D;return F[0]};
g.jn=function(F){return"/youtubei/v1/"+T4Y(F)};
en=function(){};
Cl=function(){};
AZ=function(){};
pl=function(F){return g.yR("ytcsi."+(F||"")+"data_")||lZn(F)};
Q9p=function(){var F=pl();F.info||(F.info={});return F.info};
ES=function(F){F=pl(F);F.metadata||(F.metadata={});return F.metadata};
rE=function(F){F=pl(F);F.tick||(F.tick={});return F.tick};
BC=function(F){F=pl(F);if(F.gel){var k=F.gel;k.gelInfos||(k.gelInfos={});k.gelTicks||(k.gelTicks={})}else F.gel={gelTicks:{},gelInfos:{}};return F.gel};
hL6=function(F){F=BC(F);F.gelInfos||(F.gelInfos={});return F.gelInfos};
GN=function(F){var k=pl(F).nonce;k||(k=g.vt(16),pl(F).nonce=k);return k};
lZn=function(F){var k={tick:{},info:{}};g.dI("ytcsi."+(F||"")+"data_",k);return k};
US=function(){var F=g.yR("ytcsi.debug");F||(F=[],g.dI("ytcsi.debug",F),g.dI("ytcsi.reference",{}));return F};
tZ=function(F){F=F||"";var k=s95();if(k[F])return k[F];var z=US(),x={timerName:F,info:{},tick:{},span:{},jspbInfo:[]};z.push(x);return k[F]=x};
ry5=function(F){F=F||"";var k=s95();k[F]&&delete k[F];var z=US(),x={timerName:F,info:{},tick:{},span:{},jspbInfo:[]};z.push(x);k[F]=x};
s95=function(){var F=g.yR("ytcsi.reference");if(F)return F;US();return g.yR("ytcsi.reference")};
ZQ=function(F){return B4H[F]||"LATENCY_ACTION_UNKNOWN"};
vC=function(F,k){la.call(this,1,arguments);this.Dj=k};
cC=function(){this.Y=0};
PC=function(){cC.instance||(cC.instance=new cC);return cC.instance};
Va=function(F,k){OS[k]=OS[k]||{count:0};var z=OS[k];z.count++;z.time=(0,g.VE)();F.Y||(F.Y=g.iM(0,function(){var x=(0,g.VE)(),D;for(D in OS)OS[D]&&x-OS[D].time>6E4&&delete OS[D];F&&(F.Y=0)},5E3));
return z.count>5?(z.count===6&&Math.random()*1E5<1&&(z=new g.Fa("CSI data exceeded logging limit with key",k.split("_")),k.indexOf("plev")>=0||g.yI(z)),!0):!1};
GI5=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
UKD=function(){var F;if(g.sY("csi_use_performance_navigation_timing")||g.sY("csi_use_performance_navigation_timing_tvhtml5")){var k,z,x,D=IH==null?void 0:(F=IH.getEntriesByType)==null?void 0:(k=F.call(IH,"navigation"))==null?void 0:(z=k[0])==null?void 0:(x=z.toJSON)==null?void 0:x.call(z);D?(D.requestStart=HC(D.requestStart),D.responseEnd=HC(D.responseEnd),D.redirectStart=HC(D.redirectStart),D.redirectEnd=HC(D.redirectEnd),D.domainLookupEnd=HC(D.domainLookupEnd),D.connectStart=HC(D.connectStart),
D.connectEnd=HC(D.connectEnd),D.responseStart=HC(D.responseStart),D.secureConnectionStart=HC(D.secureConnectionStart),D.domainLookupStart=HC(D.domainLookupStart),D.isPerformanceNavigationTiming=!0,F=D):F=IH.timing}else F=g.sY("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(IH.timing)):IH.timing;return F};
HC=function(F){return Math.round(aH()+F)};
aH=function(){return(g.sY("csi_use_time_origin")||g.sY("csi_use_time_origin_tvhtml5"))&&IH.timeOrigin?Math.floor(IH.timeOrigin):IH.timing.navigationStart};
b0=function(F,k){Sn("_start",F,k)};
dE=function(F,k){if(!g.sY("web_csi_action_sampling_enabled")||!pl(k).actionDisabled){var z=tZ(k||"");Tb(z.info,F);F.loadType&&(z=F.loadType,ES(k).loadType=z);Tb(hL6(k),F);z=GN(k);k=pl(k).cttAuthInfo;PC().info(F,z,k)}};
tA5=function(){var F,k,z,x;return((x=yj().resolve(aj(NK))==null?void 0:(F=ua())==null?void 0:(k=F.loggingHotConfig)==null?void 0:(z=k.csiConfig)==null?void 0:z.debugTicks)!=null?x:[]).map(function(D){return Object.values(D)[0]})};
Sn=function(F,k,z){if(!g.sY("web_csi_action_sampling_enabled")||!pl(z).actionDisabled){var x=GN(z),D;if(D=g.sY("web_csi_debug_sample_enabled")&&x){(yj().resolve(aj(NK))==null?0:ua())&&!Zbx&&(Zbx=!0,Sn("gcfl",(0,g.VE)(),z));var e,C,p;D=(yj().resolve(aj(NK))==null?void 0:(e=ua())==null?void 0:(C=e.loggingHotConfig)==null?void 0:(p=C.csiConfig)==null?void 0:p.debugSampleWeight)||0;if(e=D!==0)b:{e=tA5();if(e.length>0)for(C=0;C<e.length;C++)if(F===e[C]){e=!0;break b}e=!1}e?(D=kX6(x)%D!==0,pl(z).debugTicksExcludedLogged||
(e={},e.debugTicksExcluded=D,dE(e,z)),pl(z).debugTicksExcludedLogged=!0):D=!1}if(!D){if(F[0]!=="_"&&(D=F,e=k,IH.mark))if(D.startsWith("mark_")||(D="mark_"+D),z&&(D+=" ("+z+")"),e===void 0||g.sY("web_csi_disable_alt_time_performance_mark"))IH.mark(D);else{e=g.sY("csi_use_performance_navigation_timing")||g.sY("csi_use_performance_navigation_timing_tvhtml5")?e-IH.timeOrigin:e-(IH.timeOrigin||IH.timing.navigationStart);try{IH.mark(D,{startTime:e})}catch(E){}}D=tZ(z||"");D.tick[F]=k||(0,g.VE)();if(D.callback&&
D.callback[F])for(D=g.l(D.callback[F]),e=D.next();!e.done;e=D.next())e=e.value,e();D=BC(z);D.gelTicks&&(D.gelTicks[F]=!0);e=rE(z);D=k||(0,g.VE)();g.sY("log_repeated_ytcsi_ticks")?F in e||(e[F]=D):e[F]=D;e=pl(z).cttAuthInfo;F==="_start"?(F=PC(),Va(F,"baseline_"+x)||g.NA("latencyActionBaselined",{clientActionNonce:x},{timestamp:k,cttAuthInfo:e})):PC().tick(F,x,k,e);v4D(z);return D}}};
cy6=function(){var F,k=(F=IH.getEntriesByType)==null?void 0:F.call(IH,"mark");k&&k.forEach(function(z){if(z.name.startsWith("mark_")){var x;(x=IH.clearMarks)==null||x.call(IH,z.name)}})};
PaD=function(){switch(Vup()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
ObM=function(F){function k(e,C,p){C=C.match("_rid")?C.split("_rid")[0]:C;typeof p==="number"&&(p=JSON.stringify(p));e.requestIds?e.requestIds.push({endpoint:C,id:p}):e.requestIds=[{endpoint:C,id:p}]}
var z={};F=g.l(Object.entries(F));for(var x=F.next();!x.done;x=F.next()){var D=g.l(x.value);x=D.next().value;D=D.next().value;switch(x){case "GetBrowse_rid":k(z,x,D);break;case "GetGuide_rid":k(z,x,D);break;case "GetHome_rid":k(z,x,D);break;case "GetPlayer_rid":k(z,x,D);break;case "GetSearch_rid":k(z,x,D);break;case "GetSettings_rid":k(z,x,D);break;case "GetTrending_rid":k(z,x,D);break;case "GetWatchNext_rid":k(z,x,D);break;case "yt_red":z.isRedSubscriber=!!D;break;case "yt_ad":z.isMonetized=!!D}}return z};
VAn=function(F,k){F=document.querySelector(F);if(!F)return!1;var z="",x=F.nodeName;x==="SCRIPT"?(z=F.src,z||(z=F.getAttribute("data-timing-href"))&&(z=window.location.protocol+z)):x==="LINK"&&(z=F.href);LU(document)&&F.setAttribute("nonce",LU(document));return z?(F=IH.getEntriesByName(z))&&F[0]&&(F=F[0],z=aH(),Sn("rsf_"+k,z+Math.round(F.fetchStart)),Sn("rse_"+k,z+Math.round(F.responseEnd)),F.transferSize!==void 0&&F.transferSize===0)?!0:!1:!1};
IZp=function(){var F=window.location.protocol,k=IH.getEntriesByType("resource");k=g.pT(k,function(z){return z.name.indexOf(F+"//web.archive.org/web/20250411103644/https://fonts.gstatic.com/s/")===0});
(k=v8(k,function(z,x){return x.duration>z.duration?x:z},{duration:0}))&&k.startTime>0&&k.responseEnd>0&&(Sn("wffs",HC(k.startTime)),Sn("wffe",HC(k.responseEnd)))};
Hbn=function(F,k,z){IH&&IH.measure&&(F.startsWith("measure_")||(F="measure_"+F),z?IH.measure(F,k,z):k?IH.measure(F,k):IH.measure(F))};
aZD=function(F){var k=JZ("aft",F);if(k)return k;k=g.LX((F||"")+"TIMING_AFT_KEYS",["ol"]);for(var z=k.length,x=0;x<z;x++){var D=JZ(k[x],F);if(D)return D}return NaN};
ya=function(F,k){g.dI("ytglobal.timing"+(k||"")+"ready_",F)};
JZ=function(F,k){if(F=rE(k)[F])return typeof F==="number"?F:F[F.length-1]};
v4D=function(F){var k=JZ("_start",F),z=aZD(F),x=!Saa;k&&z&&x&&(sa(bb6,new vC(Math.round(z-k),F)),Saa=!0)};
dKp=function(){if(IH.getEntriesByType){var F=IH.getEntriesByType("paint");if(F=g.M$(F,function(z){return z.name==="first-paint"}))return HC(F.startTime)}var k;
g.sY("csi_use_performance_navigation_timing")||g.sY("csi_use_performance_navigation_timing_tvhtml5")?k=IH.getEntriesByType("first-paint")[0].startTime:k=IH.timing.gKa;return k?Math.max(0,k):0};
RH=function(F){lZn(F);Jy9();cy6();F||(g.LX("TIMING_ACTION")&&MJ("PREVIOUS_ACTION",g.LX("TIMING_ACTION")),MJ("TIMING_ACTION",""))};
yyD=function(){var F=["pbs","pbu"];g.oS(function(){tZ("").info.actionType="watch";F&&MJ("TIMING_AFT_KEYS",F);MJ("TIMING_ACTION","watch");var k=ObM(g.LX("TIMING_INFO",{}));Object.keys(k).length>0&&dE(k);k={isNavigation:!0,actionType:ZQ(g.LX("TIMING_ACTION"))};var z=g.LX("PREVIOUS_ACTION");z&&(k.previousAction=ZQ(z));if(z=g.LX("CLIENT_PROTOCOL"))k.httpProtocol=z;if(z=g.LX("CLIENT_TRANSPORT"))k.transportProtocol=z;(z=g.OK())&&z!=="UNDEFINED_CSN"&&(k.clientScreenNonce=z);z=PaD();if(z===1||z===-1)k.isVisible=
!0;z=ES().loadType==="cold";var x=Q9p();z||(z=x.yt_lt==="cold");if(z){k.loadType="cold";z=Q9p();x=UKD();var D=aH(),e=g.LX("CSI_START_TIMESTAMP_MILLIS",0);e>0&&!g.sY("embeds_web_enable_csi_start_override_killswitch")&&(D=e);D&&(Sn("srt",x.responseStart),z.prerender!==1&&b0(D));z=dKp();z>0&&Sn("fpt",z);z=UKD();z.isPerformanceNavigationTiming&&dE({performanceNavigationTiming:!0},void 0);Sn("nreqs",z.requestStart,void 0);Sn("nress",z.responseStart,void 0);Sn("nrese",z.responseEnd,void 0);z.redirectEnd-
z.redirectStart>0&&(Sn("nrs",z.redirectStart,void 0),Sn("nre",z.redirectEnd,void 0));z.domainLookupEnd-z.domainLookupStart>0&&(Sn("ndnss",z.domainLookupStart,void 0),Sn("ndnse",z.domainLookupEnd,void 0));z.connectEnd-z.connectStart>0&&(Sn("ntcps",z.connectStart,void 0),Sn("ntcpe",z.connectEnd,void 0));z.secureConnectionStart>=aH()&&z.connectEnd-z.secureConnectionStart>0&&(Sn("nstcps",z.secureConnectionStart,void 0),Sn("ntcpe",z.connectEnd,void 0));IH&&"getEntriesByType"in IH&&IZp();z=[];if(document.querySelector&&
IH&&IH.getEntriesByName)for(var C in gE)gE.hasOwnProperty(C)&&(x=gE[C],VAn(C,x)&&z.push(x));if(z.length>0)for(k.resourceInfo=[],C=g.l(z),z=C.next();!z.done;z=C.next())k.resourceInfo.push({resourceCache:z.value})}dE(k);k=BC();k.preLoggedGelInfos||(k.preLoggedGelInfos=[]);C=k.preLoggedGelInfos;k=hL6();z=void 0;for(x=0;x<C.length;x++)if(D=C[x],D.loadType){z=D.loadType;break}if(ES().loadType==="cold"&&(k.loadType==="cold"||z==="cold")){z=rE();x=BC();x=x.gelTicks?x.gelTicks:x.gelTicks={};for(var p in z)if(!(p in
x))if(typeof z[p]==="number")Sn(p,JZ(p));else if(g.sY("log_repeated_ytcsi_ticks"))for(D=g.l(z[p]),e=D.next();!e.done;e=D.next())Sn(p.slice(1),e.value);p={};z=!1;C=g.l(C);for(x=C.next();!x.done;x=C.next())z=x.value,Tb(k,z),Tb(p,z),z=!0;z&&dE(p)}ya(!0);p=g.LX("TIMING_ACTION");g.yR("ytglobal.timingready_")&&p&&Yx()&&aZD()&&v4D()})()};
RLk=function(){var F=F===void 0?{}:F;g.oS(function(){Yx()&&nl("aa",void 0,void 0);ry5();RH();ya(!1);F.cttAuthInfo&&(pl().cttAuthInfo=F.cttAuthInfo);MJ("TIMING_AFT_KEYS",[]);F.Uw4?g.MF({loadType:"hot"}):g.MF({loadType:"warm"});MJ("TIMING_ACTION","");delete g.LX("TIMING_INFO",{}).yt_lt;g.oS(b0)(F.startTime,void 0)})()};
Ll=function(F,k){k=k===void 0?{}:k;g.oS(function(){g4R(F);var z=k.sampleRate;if(!g.sY("web_csi_action_sampling_enabled")||z===void 0||z<=1)z=!1;else{var x=GN(F);z=kX6(x)%z!==0}z&&(pl(F).actionDisabled=!0);tZ(F||"").info.actionType=F;k.cttAuthInfo&&(pl(F).cttAuthInfo=k.cttAuthInfo);MJ(F+"TIMING_ACTION",F);g.oS(b0)(k.startTime,F);z={actionType:ZQ(F)};k.mwt&&(z.previousAction=ZQ(g.LX("TIMING_ACTION")));(x=g.OK())&&x!=="UNDEFINED_CSN"&&(z.clientScreenNonce=x);g.MF(z,F);ya(!0,F)})()};
g4R=function(F){g.oS(function(){Yx(F)&&nl("aa",void 0,F);ry5(F);RH(F)})()};
Yx=function(F){return g.oS(function(){return fl("_start",F)})()};
g.MF=function(F,k,z){g.oS(dE)(F,k,z===void 0?!1:z)};
nl=function(F,k,z){return g.oS(Sn)(F,k,z)};
YaH=function(F){g.oS(Hbn)("action_finished",F,void 0)};
fl=function(F,k){return g.oS(function(){var z=rE(k);return F in z})()};
MAa=function(F){if(!g.sY("universal_csi_network_ticks"))return"";F=YV(g.Mt(5,F))||"";for(var k=Object.keys(n4k),z=0;z<k.length;z++){var x=k[z];if(F.includes(x))return x}return""};
fZp=function(F){if(!g.sY("universal_csi_network_ticks"))return function(){};
var k=n4k[F];return k?(Kl(k),function(){var z=g.sY("universal_csi_network_ticks")?(z=LN5[F])?Kl(z):!1:!1;return z}):function(){}};
Kl=function(F,k,z){return g.oS(function(){if(fl(F,z))return!1;nl(F,k,z);return!0})()};
WC=function(F,k,z){g.oS(function(){if(!Yx(z)||fl(F,z))return!1;nl(F,k,z);return!0})()};
KNk=function(){g.oS(function(){var F=GN();requestAnimationFrame(function(){setTimeout(function(){F===GN()&&nl("ftl",void 0,void 0)},0)})})()};
FT=function(F,k,z,x){this.UL=F;this.V_=k;this.Y=z;this.j=x;this.U=void 0;this.L=new Map;F.t9||(F.t9={});F.t9=Object.assign({},WNH,F.t9)};
Ff5=function(F,k,z,x){if(FT.instance!==void 0){if(x=FT.instance,F=[F!==x.UL,k!==x.V_,z!==x.Y,!1,!1,!1,void 0!==x.U],F.some(function(D){return D}))throw new g.Fa("InnerTubeTransportService is already initialized",F);
}else FT.instance=new FT(F,k,z,x)};
k_=function(F,k,z){var x=x===void 0?TI:x;var D=kbk(F,k);return D?new g.Uz(function(e,C){var p,E,X,q,N;return g.O(function(u){switch(u.Y){case 1:return g.c(u,D,2);case 2:p=u.L;E=p.W(k,z,x);if(!E){C(new g.Fa("Error: Failed to build request for command.",k));u.Sk(0);break}Lv(E.input);q=((X=E.gq)==null?void 0:X.mode)==="cors"?"cors":void 0;if(F.Y.Z6){N=o3p(F,E.config,q);u.Sk(4);break}return g.c(u,z$n(F,E.config,q),5);case 5:N=u.L;case 4:e(xHa(F,E,N)),g.Tp(u)}})}):v4(new g.Fa("Error: No request builder found for command.",
k))};
g.od=function(F,k,z,x,D){function e(){}
D=D===void 0?{AA:{identity:TI}}:D;var C=C===void 0?!0:C;e=fZp(MAa(z));k.context||(k.context=g.i0(x,C));return new g.Uz(function(p){var E,X,q,N,u;return g.O(function(w){if(w.Y==1)return E=JB(z),X=AB(E)?"same-origin":"cors",F.Y.Z6?(q=o3p(F,D,X),w.Sk(2)):g.c(w,z$n(F,D,X),3);w.Y!=2&&(q=w.L);N=NYY(JB(z));u={input:N,gq:yL(N),M9:k,config:D};p(xHa(F,u,q,e));g.Tp(w)})})};
DHk=function(F,k,z){var x;if(k&&!(k==null?0:(x=k.sequenceMetaData)==null?0:x.skipProcessing)&&F.j){x=g.l(iFH);for(var D=x.next();!D.done;D=x.next())D=D.value,F.j[D]&&F.j[D].handleResponse(k,z)}};
xHa=function(F,k,z,x){x=x===void 0?function(){}:x;
var D,e,C,p,E,X,q,N,u,w,m,h,B,U,v,P,I,d,W,M,xY,$Y,Fx,y,K,Q,R,Jn,s$,u7;return g.O(function(Gp){switch(Gp.Y){case 1:Gp.Sk(2);break;case 3:if((D=Gp.L)&&!D.isExpired())return Gp.return(Promise.resolve(D.Y()));case 2:if(!((e=k)==null?0:(C=e.M9)==null?0:C.context)){Gp.Sk(4);break}p=k.M9.context;Gp.Sk(5);break;case 5:E=g.l([]),X=E.next();case 8:if(X.done){Gp.Sk(4);break}q=X.value;return g.c(Gp,q.N5U(p),9);case 9:X=E.next();Gp.Sk(8);break;case 4:if((N=F.U)==null||!N.jtJ(k.input,k.M9)){Gp.Sk(12);break}return g.c(Gp,
F.U.ict(k.input,k.M9),13);case 13:return u=Gp.L,DHk(F,u,k),Gp.return(u);case 12:return(h=(m=k.config)==null?void 0:m.cC)&&F.L.has(h)?w=F.L.get(h):(B=JSON.stringify(k.M9),P=(v=(U=k.gq)==null?void 0:U.headers)!=null?v:{},k.gq=Object.assign({},k.gq,{headers:Object.assign({},P,z)}),I=Object.assign({},k.gq),k.gq.method==="POST"&&(I=Object.assign({},I,{body:B})),((d=k.config)==null?0:d.MOJ)&&nl(k.config.MOJ),W=function(){return F.V_.fetch(k.input,I,k.config)},w=W(),h&&F.L.set(h,w)),g.c(Gp,w,14);
case 14:if((M=Gp.L)&&"error"in M&&((xY=M)==null?0:($Y=xY.error)==null?0:$Y.details))for(Fx=M.error.details,y=g.l(Fx),K=y.next();!K.done;K=y.next())Q=K.value,(R=Q["@type"])&&$Hk.indexOf(R)>-1&&(delete Q["@type"],M=Q);h&&F.L.has(h)&&F.L.delete(h);((Jn=k.config)==null?0:Jn.Zpa)&&nl(k.config.Zpa);if(M||(s$=F.U)==null||!s$.vv4(k.input,k.M9)){Gp.Sk(15);break}return g.c(Gp,F.U.tbR(k.input,k.M9),16);case 16:M=Gp.L;case 15:return DHk(F,M,k),((u7=k.config)==null?0:u7.zVJ)&&nl(k.config.zVJ),x(),Gp.return(M||
void 0)}})};
kbk=function(F,k){a:{F=F.UL;var z,x=(z=g.J(k,XyH))==null?void 0:z.signal;if(x&&F.t9&&(z=F.t9[x])){var D=z();break a}var e;if((z=(e=g.J(k,qaH))==null?void 0:e.request)&&F.JB&&(e=F.JB[z])){D=e();break a}for(D in k)if(F.nP[D]&&(k=F.nP[D])){D=k();break a}D=void 0}if(D!==void 0)return Promise.resolve(D)};
z$n=function(F,k,z){var x,D,e,C,p,E,X;return g.O(function(q){if(q.Y==1){e=((x=k)==null?void 0:(D=x.AA)==null?void 0:D.identity)||TI;E=(C=k)==null?void 0:(p=C.AA)==null?void 0:p.sessionIndex;var N=g.ZJ(F.Y.a_(e,{sessionIndex:E}));return g.c(q,N,2)}X=q.L;return q.return(Promise.resolve(Object.assign({},uKn(z),X)))})};
o3p=function(F,k,z){var x,D=(k==null?void 0:(x=k.AA)==null?void 0:x.identity)||TI,e;k=k==null?void 0:(e=k.AA)==null?void 0:e.sessionIndex;F=F.Y.a_(D,{sessionIndex:k});return Object.assign({},uKn(z),F)};
zD=function(){};
x_=function(){};
iZ=function(F){this.S=F};
Dh=function(){};
$_=function(){};
j1=function(){};
e1=function(){};
g.C1=function(F,k){var z=g.v6.apply(2,arguments);F=F===void 0?0:F;g.Fa.call(this,k,z);this.errorType=F;Object.setPrototypeOf(this,this.constructor.prototype)};
Ac=function(F,k,z,x){this.Y=F;this.L=k;this.U=z;this.j=x};
jjD=function(F,k,z){if(F.Y){var x=YV(g.Mt(5,Dd(k,"key")))||"/UNKNOWN_PATH";F.Y.start(x)}x=z;g.sY("wug_networking_gzip_request")&&(x=dJH(z));var D;return new ((D=F.j)!=null?D:window.Request)(k,x)};
g.EP=function(F,k){if(!p1){var z=yj();SF(z,{G7:e$D,xi:Ac});var x={nP:{feedbackEndpoint:$x(Dh),modifyChannelNotificationPreferenceEndpoint:$x($_),playlistEditEndpoint:$x(j1),shareEntityEndpoint:$x(iZ),subscribeEndpoint:$x(zD),unsubscribeEndpoint:$x(x_),webPlayerShareEntityServiceEndpoint:$x(e1)}},D=xx.getInstance(),e={};D&&(e.client_location=D);F===void 0&&(F=L6a());k===void 0&&(k=z.resolve(e$D));Ff5(x,k,F,e);SF(z,{G7:CeH,Vp:FT.instance});p1=z.resolve(CeH)}return p1};
APY=function(F){var k=new U2;if(F.interpreterJavascript){var z=ZTH(F.interpreterJavascript);z=KU(z).toString();var x=new rL;r$(x,6,z);N6(k,rL,1,x,yY)}else F.interpreterUrl&&(z=Gs(F.interpreterUrl),z=H1(z).toString(),x=new BM,r$(x,4,z),N6(k,BM,2,x,yY));F.interpreterHash&&BR(k,3,F.interpreterHash,yY);F.program&&BR(k,4,F.program,yY);F.globalName&&BR(k,5,F.globalName,yY);F.clientExperimentsStateBlob&&BR(k,7,F.clientExperimentsStateBlob,yY);return k};
XT=function(F){var k={};F=F.split("&");F=g.l(F);for(var z=F.next();!z.done;z=F.next())z=z.value.split("="),z.length===2&&(k[z[0]]=z[1]);return k};
fOY=function(){if(g.sY("bg_st_hr"))return"havuokmhhs-0";var F,k=((F=performance)==null?void 0:F.timeOrigin)||0;return"havuokmhhs-"+Math.floor(k)};
qW=function(F){this.Y=F};
ptY=function(){return new Promise(function(F){var k=window.top;k.ntpevasrs!==void 0?F(new qW(k.ntpevasrs)):(k.ntpqfbel===void 0&&(k.ntpqfbel=[]),k.ntpqfbel.push(function(z){F(new qW(z))}))})};
XtH=function(){if(!g.sY("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.sY("disable_biscotti_fetch_entirely_for_all_web_clients")&&jZ()){var F=g.LX("PLAYER_VARS",{});if(g.b3(F,"privembed",!1)!="1"&&!QC9(F)){var k=function(){NW=!0;"google_ad_status"in window?MJ("DCLKSTAT",1):MJ("DCLKSTAT",2)};
try{g.NH("//web.archive.org/web/20250411103644/https://static.doubleclick.net/instream/ad_status.js",k)}catch(z){}E3k.push(g.RC.Oi(function(){if(!(NW||"google_ad_status"in window)){try{if(k){var z=""+g.Kk(k),x=QSD[z];x&&g.XU(x)}}catch(D){}NW=!0;MJ("DCLKSTAT",3)}},5E3))}}};
uZ=function(){var F=Number(g.LX("DCLKSTAT",0));return isNaN(F)?0:F};
lZ=function(F,k,z){var x=this;this.network=F;this.options=k;this.L=z;this.Y=null;if(k.oCG){var D=new g.Zd;this.Y=D.promise;g.bD.ytAtRC&&xK(function(){var e,C;return g.O(function(p){if(p.Y==1){if(!g.bD.ytAtRC)return p.return();e=wx(null);return g.c(p,mr(x,e),2)}C=p.L;g.bD.ytAtRC&&g.bD.ytAtRC(JSON.stringify(C));g.Tp(p)})},2);
ptY().then(function(e){var C,p,E,X;return g.O(function(q){if(q.Y==1)return e.bindInnertubeChallengeFetcher(function(N){return mr(x,wx(N))}),g.c(q,Zv(),2);
C=q.L;p=e.getLatestChallengeResponse();E=p.challenge;if(!E)throw Error("BGE_MACIL");X={challenge:E,Hz:XT(E),d9:C,bgChallenge:new U2};D.resolve(X);e.registerChallengeFetchedCallback(function(N){N=N.challenge;if(!N)throw Error("BGE_MACR");N={challenge:N,Hz:XT(N),d9:C,bgChallenge:new U2};x.Y=Promise.resolve(N)});
g.Tp(q)})})}else k.preload&&qxx(this,new Promise(function(e){g.iM(0,function(){e(TD(x))},0)}))};
wx=function(F){var k={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};F&&(k.interpreterHash=F);return k};
TD=function(F,k){k=k===void 0?0:k;var z,x,D,e,C,p,E,X,q,N,u,w;return g.O(function(m){switch(m.Y){case 1:z=wx(PM().Y);if(g.sY("att_fet_ks"))return g.lD(m,7),g.c(m,mr(F,z),9);g.lD(m,4);return g.c(m,NXx(F,z),6);case 6:C=m.L;D=C.rvf;e=C.vPh;x=C;g.sC(m,3);break;case 4:return g.rI(m),g.yI(Error("Failed to fetch attestation challenge after "+(k+" attempts; not retrying for 24h."))),Qx(F,864E5),m.return({challenge:"",Hz:{},d9:void 0,bgChallenge:void 0});case 9:x=m.L;if(!x)throw Error("Fetching Attestation challenge returned falsy");
if(!x.challenge)throw Error("Missing Attestation challenge");D=x.challenge;e=XT(D);if("c1a"in e&&(!x.bgChallenge||!x.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.sC(m,3);break;case 7:p=g.rI(m);g.yI(p);k++;if(k>=5)return g.yI(Error("Failed to fetch attestation challenge after "+(k+" attempts; not retrying for 24h."))),Qx(F,864E5),m.return({challenge:"",Hz:{},d9:void 0,bgChallenge:void 0});E=1E3*Math.pow(2,k-1)+Math.random()*1E3;return m.return(new Promise(function(h){g.iM(0,
function(){h(TD(F,k))},E)}));
case 3:X=Number(e.t)||7200;Qx(F,X*1E3);q=void 0;if(!("c1a"in e&&x.bgChallenge)){m.Sk(10);break}N=APY(x.bgChallenge);g.lD(m,11);return g.c(m,O2(PM(),N),13);case 13:g.sC(m,12);break;case 11:return u=g.rI(m),g.yI(u),m.return({challenge:D,Hz:e,d9:q,bgChallenge:N});case 12:return g.lD(m,14),q=new vM({challenge:N,UR:{r$:"aGIf"}}),g.c(m,q.Ua,16);case 16:g.sC(m,10);break;case 14:w=g.rI(m),g.yI(w),q=void 0;case 10:return m.return({challenge:D,Hz:e,d9:q,bgChallenge:N})}})};
mr=function(F,k){var z;return g.O(function(x){z=F.L;if(!z||z.bG())return x.return(mr(F.network,k));WC("att_pna",void 0,"attestation_challenge_fetch");return x.return(new Promise(function(D){z.iA("publicytnetworkstatus-online",function(){mr(F.network,k).then(D)})}))})};
uU9=function(F){if(!F)throw Error("Fetching Attestation challenge returned falsy");if(!F.challenge)throw Error("Missing Attestation challenge");var k=F.challenge,z=XT(k);if("c1a"in z&&(!F.bgChallenge||!F.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},F,{rvf:k,vPh:z})};
NXx=function(F,k){var z,x,D,e,C;return g.O(function(p){switch(p.Y){case 1:z=void 0,x=0,D={};case 2:if(!(x<5)){p.Sk(4);break}if(!(x>0)){p.Sk(5);break}D.FC=1E3*Math.pow(2,x-1)+Math.random()*1E3;return g.c(p,new Promise(function(E){return function(X){g.iM(0,function(){X(void 0)},E.FC)}}(D)),5);
case 5:return g.lD(p,7),g.c(p,mr(F,k),9);case 9:return e=p.L,p.return(uU9(e));case 7:z=C=g.rI(p),C instanceof Error&&g.yI(C);case 8:x++;D={FC:void 0};p.Sk(2);break;case 4:throw z;}})};
qxx=function(F,k){F.Y=k};
wtp=function(F){var k,z,x;return g.O(function(D){if(D.Y==1)return g.c(D,Promise.race([F.Y,null]),2);k=D.L;var e=TD(F);F.Y=e;(z=k)==null||(x=z.d9)==null||x.dispose();g.Tp(D)})};
Qx=function(F,k){function z(){var D;return g.O(function(e){D=x-Date.now();return D<1E3?g.c(e,wtp(F),0):(xK(z,0,Math.min(D,6E4)),e.Sk(0))})}
var x=Date.now()+k;z()};
mHM=function(F,k){return new Promise(function(z){g.iM(0,function(){z(k())},F)})};
g.TXa=function(F,k){var z;return g.O(function(x){var D=g.yR("yt.aba.att");return(z=D?D:lZ.instance!==void 0?lZ.instance.U.bind(lZ.instance):null)?x.return(z("ENGAGEMENT_TYPE_PLAYBACK",F,k)):x.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
g.l1Y=function(){var F;return(F=(F=g.yR("yt.aba.att2"))?F:lZ.instance!==void 0?lZ.instance.j.bind(lZ.instance):null)?F():Promise.resolve(!1)};
h$n=function(F,k){var z=g.yR("ytDebugData.callbacks");z||(z={},g.dI("ytDebugData.callbacks",z));if(g.sY("web_dd_iu")||Qj6.includes(F))z[F]=k};
hc=function(){var F=sjn;var k=k===void 0?[]:k;var z=z===void 0?[]:z;k=smD.apply(null,[rip.apply(null,g.r(k))].concat(g.r(z)));this.store=GAn(F,void 0,k)};
g.sP=function(F,k,z){for(var x=Object.assign({},F),D=g.l(Object.keys(k)),e=D.next();!e.done;e=D.next()){e=e.value;var C=F[e],p=k[e];if(p===void 0)delete x[e];else if(C===void 0)x[e]=p;else if(Array.isArray(p)&&Array.isArray(C))x[e]=z?[].concat(g.r(C),g.r(p)):p;else if(!Array.isArray(p)&&g.M9(p)&&!Array.isArray(C)&&g.M9(C))x[e]=g.sP(C,p,z);else if(typeof p===typeof C)x[e]=p;else return k=new g.Fa("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:e,Vbf:C,updateValue:p}),g.JV(k),
F}return x};
rx=function(F){var k=this;F=F===void 0?[]:F;this.TU=[];this.y7=this.oz=0;this.dw=void 0;this.totalLength=0;F.forEach(function(z){k.append(z)})};
rPx=function(F,k){return F.TU.length===0?!1:(F=F.TU[F.TU.length-1])&&F.buffer===k.buffer&&F.byteOffset+F.length===k.byteOffset};
BZ=function(F,k){k=g.l(k.TU);for(var z=k.next();!z.done;z=k.next())F.append(z.value)};
GD=function(F,k,z){return F.split(k).X9.split(z).LX};
UP=function(F){F.dw=void 0;F.oz=0;F.y7=0};
tc=function(F,k,z){F.isFocused(k);return k-F.y7+z<=F.TU[F.oz].length};
BXk=function(F){if(!F.dw){var k=F.TU[F.oz];F.dw=new DataView(k.buffer,k.byteOffset,k.length)}return F.dw};
Zh=function(F,k,z){F=F.fk(k===void 0?0:k,z===void 0?-1:z);k=new Uint8Array(F.length);try{k.set(F)}catch(x){for(z=0;z<F.length;z++)k[z]=F[z]}return k};
Gbn=function(F,k){F.focus(k);return tc(F,k,4)?BXk(F).getUint32(k-F.y7):256*(256*(256*F.getUint8(k)+F.getUint8(k+1))+F.getUint8(k+2))+F.getUint8(k+3)};
UHa=function(F){for(var k=new Uint8Array(F.length),z=0;z<F.length;z++)k[z]=F.charCodeAt(z);return k};
cZ=function(F){return F.length?vZ?vZ.decode(F):String.fromCharCode.apply(null,F):""};
g.OP=function(F){if(!F.length)return"";try{if(vZ)return vZ.decode(F);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(F)}catch(C){}for(var k=0,z=[],x=F.length;k<x;){for(var D=0;D<1024&&k<x;){var e=F[k++];if(e<128)PZ[D++]=e;else{if(e<224)e=(e&31)<<6|F[k++]&63;else if(e<240)e=(e&15)<<12|(F[k++]&63)<<6|F[k++]&63;else{if(D+1===1024){--k;break}e=(e&7)<<18|(F[k++]&63)<<12|(F[k++]&63)<<6|F[k++]&63;e-=65536;PZ[D++]=55296|e>>10;e=56320|e&1023}PZ[D++]=e}}e=String.fromCharCode.apply(String,PZ);
D<1024&&(e=e.substring(0,D));z.push(e)}return z.join("")};
Id=function(F,k){var z;if((z=Vx)==null?0:z.encodeInto)return k=Vx.encodeInto(F,k),k.read<F.length?F.length*4:k.written;for(var x=z=0;x<F.length;x++){var D=F.charCodeAt(x);D<128?k[z++]=D:(D<2048?k[z++]=D>>6|192:((D&64512)===55296&&x+1<F.length&&(F.charCodeAt(x+1)&64512)===56320?(D=65536+((D&1023)<<10)+(F.charCodeAt(++x)&1023),k[z++]=D>>18|240,k[z++]=D>>12&63|128):k[z++]=D>>12|224,k[z++]=D>>6&63|128),k[z++]=D&63|128)}return z};
HZ=function(F){if(Vx)return Vx.encode(F);var k=new Uint8Array(Math.ceil(F.length*1.2)),z=Id(F,k);k.length<z&&(k=new Uint8Array(z),z=Id(F,k));k.length>z&&(k=k.subarray(0,z));return k};
ad=function(F){this.Y=F;this.pos=0;this.L=-1};
S1=function(F){var k=F.Y.getUint8(F.pos);++F.pos;if(k<128)return k;for(var z=k&127,x=1;k>=128;)k=F.Y.getUint8(F.pos),++F.pos,x*=128,z+=(k&127)*x;return z};
bZ=function(F,k){var z=F.L;for(F.L=-1;F.Y.I0(F.pos,1);){z<0&&(z=S1(F));var x=z>>3,D=z&7;if(x===k)return!0;if(x>k){F.L=z;break}z=-1;switch(D){case 0:S1(F);break;case 1:F.pos+=8;break;case 2:x=S1(F);F.pos+=x;break;case 5:F.pos+=4}}return!1};
dx=function(F,k){if(bZ(F,k))return S1(F)};
Jc=function(F,k){if(bZ(F,k))return!!S1(F)};
yx=function(F,k){if(bZ(F,k)){k=S1(F);var z=F.Y.fk(F.pos,k);F.pos+=k;return z}};
Rd=function(F,k){if(F=yx(F,k))return g.OP(F)};
gx=function(F,k,z){if(F=yx(F,k))return z(new ad(new rx([F])))};
Y_=function(F,k){for(var z=[];bZ(F,k);)z.push(S1(F));return z.length?z:void 0};
n1=function(F,k,z){for(var x=[],D;D=yx(F,k);)x.push(z(new ad(new rx([D]))));return x.length?x:void 0};
MW=function(F,k){F=F instanceof Uint8Array?new rx([F]):F;return k(new ad(F))};
tFD=function(F,k,z){if(k&&z&&z.buffer===k.exports.memory.buffer){var x=k.realloc(z.byteOffset,F);if(x)return new Uint8Array(k.exports.memory.buffer,x,F)}F=k?new Uint8Array(k.exports.memory.buffer,k.malloc(F),F):new Uint8Array(F);z&&F.set(z);return F};
ZFk=function(F,k){this.E3=k;this.pos=0;this.L=[];this.Y=tFD(F===void 0?4096:F,k);this.view=new DataView(this.Y.buffer,this.Y.byteOffset,this.Y.byteLength)};
L1=function(F,k){k=F.pos+k;if(!(F.Y.length>=k)){for(var z=F.Y.length*2;z<k;)z*=2;F.Y=tFD(z,F.E3,F.Y.subarray(0,F.pos));F.view=new DataView(F.Y.buffer,F.Y.byteOffset,F.Y.byteLength)}};
f1=function(F,k){if(k>268435455){L1(F,4);for(var z=k&1073741823,x=0;x<4;x++)F.view.setUint8(F.pos,z&127|128),z>>=7,F.pos+=1;k=Math.floor(k/268435456)}for(L1(F,4);k>127;)F.view.setUint8(F.pos,k&127|128),k>>=7,F.pos+=1;F.view.setUint8(F.pos,k);F.pos+=1};
K1=function(F,k,z){z!==void 0&&(f1(F,k*8),f1(F,z))};
WZ=function(F,k,z){z!==void 0&&K1(F,k,z?1:0)};
F0=function(F,k,z){z!==void 0&&(f1(F,k*8+2),k=z.length,f1(F,k),L1(F,k),F.Y.set(z,F.pos),F.pos+=k)};
kW=function(F,k,z){z!==void 0&&(v3n(F,k,Math.ceil(Math.log2(z.length*4+2)/7)),L1(F,z.length*1.2),k=Id(z,F.Y.subarray(F.pos)),F.pos+k>F.Y.length&&(L1(F,k),k=Id(z,F.Y.subarray(F.pos))),F.pos+=k,cPp(F))};
v3n=function(F,k,z){z=z===void 0?2:z;f1(F,k*8+2);F.L.push(F.pos);F.L.push(z);F.pos+=z};
cPp=function(F){for(var k=F.L.pop(),z=F.L.pop(),x=F.pos-z-k;k--;){var D=k?128:0;F.view.setUint8(z++,x&127|D);x>>=7}};
oz=function(F,k,z,x,D){z&&(v3n(F,k,D===void 0?3:D),x(F,z),cPp(F))};
g.zx=function(F,k,z){z=new ZFk(4096,z);k(z,F);return new Uint8Array(z.Y.buffer,z.Y.byteOffset,z.pos)};
g.xW=function(F){var k=new ad(new rx([lr(decodeURIComponent(F))]));F=Rd(k,2);k=dx(k,4);var z=Pea[k];if(typeof z==="undefined")throw F=new g.Fa("Failed to recognize field number",{name:"EntityKeyHelperError",GcU:k}),g.JV(F),F;return{UY:k,entityType:z,entityId:F}};
g.is=function(F,k){var z=z===void 0?0:z;var x=new ZFk;F0(x,2,HZ(F));F=OF5[k];if(typeof F==="undefined")throw z=new g.Fa("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:k}),g.JV(z),z;K1(x,4,F);K1(x,5,1);k=new Uint8Array(x.Y.buffer,x.Y.byteOffset,x.pos);return encodeURIComponent(g.mv(k,z))};
Dc=function(F,k,z,x){if(x===void 0)return x=Object.assign({},F[k]||{}),z=(delete x[z],x),x={},Object.assign({},F,(x[k]=z,x));var D={},e={};return Object.assign({},F,(e[k]=Object.assign({},F[k],(D[z]=x,D)),e))};
VFn=function(F,k,z,x,D){var e=F[k];if(e==null||!e[z])return F;x=g.sP(e[z],x,D==="REPEATED_FIELDS_MERGE_OPTION_APPEND");D={};e={};return Object.assign({},F,(e[k]=Object.assign({},F[k],(D[z]=x,D)),e))};
I1n=function(F,k){F=F===void 0?{}:F;switch(k.type){case "ENTITY_LOADED":return k.payload.reduce(function(x,D){var e,C=(e=D.options)==null?void 0:e.persistenceOption;if(C&&C!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&C!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return x;if(!D.entityKey)return g.JV(Error("Missing entity key")),x;if(D.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!D.payload)return g.JV(new g.Fa("REPLACE entity mutation is missing a payload",{entityKey:D.entityKey})),x;var p=g.PB(D.payload);
return Dc(x,p,D.entityKey,D.payload[p])}if(D.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{D=D.entityKey;try{var E=g.xW(D).entityType;p=Dc(x,E,D);break a}catch(N){if(N instanceof Error){g.JV(new g.Fa("Failed to deserialize entity key",{entityKey:D,xa:N.message}));p=x;break a}throw N;}p=void 0}return p}if(D.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!D.payload)return g.JV(new g.Fa("UPDATE entity mutation is missing a payload",{entityKey:D.entityKey})),x;p=g.PB(D.payload);var X,q;return VFn(x,p,D.entityKey,
D.payload[p],(X=D.fieldMask)==null?void 0:(q=X.mergeOptions)==null?void 0:q.repeatedFieldsMergeOption)}return x},F);
case "REPLACE_ENTITY":var z=k.payload;return Dc(F,z.entityType,z.key,z.LY);case "REPLACE_ENTITIES":return Object.keys(k.payload).reduce(function(x,D){var e=k.payload[D];return Object.keys(e).reduce(function(C,p){return Dc(C,D,p,e[p])},x)},F);
case "UPDATE_ENTITY":return z=k.payload,VFn(F,z.entityType,z.key,z.LY,z.T5h);default:return F}};
us=function(F,k,z){return F[k]?F[k][z]||null:null};
wk=function(F){return window.Int32Array?new Int32Array(F):Array(F)};
si=function(F){g.S.call(this);this.counter=[0,0,0,0];this.L=new Uint8Array(16);this.Y=16;if(!HF6){var k,z=new Uint8Array(256),x=new Uint8Array(256);var D=1;for(k=0;k<256;k++)z[D]=k,x[k]=D,D^=D<<1^(D>>7&&283);mI=new Uint8Array(256);Tx=wk(256);ls=wk(256);Qc=wk(256);h5=wk(256);for(var e=0;e<256;e++){D=e?x[255^z[e]]:0;D^=D<<1^D<<2^D<<3^D<<4;D=D&255^D>>>8^99;mI[e]=D;k=D<<1^(D>>7&&283);var C=k^D;Tx[e]=k<<24|D<<16|D<<8|C;ls[e]=C<<24|Tx[e]>>>8;Qc[e]=D<<24|ls[e]>>>8;h5[e]=D<<24|Qc[e]>>>8}HF6=!0}D=wk(44);for(z=
0;z<4;z++)D[z]=F[4*z]<<24|F[4*z+1]<<16|F[4*z+2]<<8|F[4*z+3];for(x=1;z<44;z++)F=D[z-1],z%4||(F=(mI[F>>16&255]^x)<<24|mI[F>>8&255]<<16|mI[F&255]<<8|mI[F>>>24],x=x<<1^(x>>7&&283)),D[z]=D[z-4]^F;this.key=D};
rk=function(F,k){for(var z=0;z<4;z++)F.counter[z]=k[z*4]<<24|k[z*4+1]<<16|k[z*4+2]<<8|k[z*4+3];F.Y=16};
a1H=function(F){for(var k=F.key,z=F.counter[0]^k[0],x=F.counter[1]^k[1],D=F.counter[2]^k[2],e=F.counter[3]^k[3],C=3;C>=0&&!(F.counter[C]=-~F.counter[C]);C--);for(var p,E,X=4;X<40;)C=Tx[z>>>24]^ls[x>>16&255]^Qc[D>>8&255]^h5[e&255]^k[X++],p=Tx[x>>>24]^ls[D>>16&255]^Qc[e>>8&255]^h5[z&255]^k[X++],E=Tx[D>>>24]^ls[e>>16&255]^Qc[z>>8&255]^h5[x&255]^k[X++],e=Tx[e>>>24]^ls[z>>16&255]^Qc[x>>8&255]^h5[D&255]^k[X++],z=C,x=p,D=E;F=F.L;C=k[40];F[0]=mI[z>>>24]^C>>>24;F[1]=mI[x>>16&255]^C>>16&255;F[2]=mI[D>>8&255]^
C>>8&255;F[3]=mI[e&255]^C&255;C=k[41];F[4]=mI[x>>>24]^C>>>24;F[5]=mI[D>>16&255]^C>>16&255;F[6]=mI[e>>8&255]^C>>8&255;F[7]=mI[z&255]^C&255;C=k[42];F[8]=mI[D>>>24]^C>>>24;F[9]=mI[e>>16&255]^C>>16&255;F[10]=mI[z>>8&255]^C>>8&255;F[11]=mI[x&255]^C&255;C=k[43];F[12]=mI[e>>>24]^C>>>24;F[13]=mI[z>>16&255]^C>>16&255;F[14]=mI[x>>8&255]^C>>8&255;F[15]=mI[D&255]^C&255};
Ui=function(){if(!Ba&&!g.o9){if(Gx)return Gx;var F;Gx=(F=window.crypto)==null?void 0:F.subtle;var k,z,x;if(((k=Gx)==null?0:k.importKey)&&((z=Gx)==null?0:z.sign)&&((x=Gx)==null?0:x.encrypt))return Gx;Gx=void 0}};
g.t5=function(F){this.L=F};
Sx9=function(F,k,z,x){var D,e;return g.O(function(C){switch(C.Y){case 1:if(F.U){C.Sk(2);break}return g.c(C,x.importKey("raw",F.L,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:F.U=C.L;case 2:return D={name:"AES-CTR",counter:z,length:128},g.c(C,x.encrypt(D,F.U,k),4);case 4:return e=C.L,C.return(new Uint8Array(e))}})};
bFR=function(F,k,z){F.Y||(F.Y=new si(F.L));rk(F.Y,z);return F.Y.encrypt(k)};
g.Zc=function(F){this.L=F};
va=function(F){this.W=new Uint8Array(64);this.U=new Uint8Array(64);this.j=0;this.S=new Uint8Array(64);this.L=0;this.W.set(F);this.U.set(F);for(F=0;F<64;F++)this.W[F]^=92,this.U[F]^=54;this.reset()};
dHR=function(F,k,z){for(var x=F.G,D=F.Y[0],e=F.Y[1],C=F.Y[2],p=F.Y[3],E=F.Y[4],X=F.Y[5],q=F.Y[6],N=F.Y[7],u,w,m,h=0;h<64;)h<16?(x[h]=m=k[z]<<24|k[z+1]<<16|k[z+2]<<8|k[z+3],z+=4):(u=x[h-2],w=x[h-15],m=x[h-7]+x[h-16]+((u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),x[h]=m),u=N+ca[h]+m+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&X^~E&q),w=((D>>>2|D<<30)^(D>>>13|D<<19)^(D>>>22|D<<10))+(D&e^D&C^e&C),N=u+w,p+=u,h++,h<16?(x[h]=m=k[z]<<24|k[z+1]<<16|k[z+2]<<8|k[z+3],z+=4):(u=
x[h-2],w=x[h-15],m=x[h-7]+x[h-16]+((u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),x[h]=m),u=q+ca[h]+m+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&E^~p&X),w=((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+(N&D^N&e^D&e),q=u+w,C+=u,h++,h<16?(x[h]=m=k[z]<<24|k[z+1]<<16|k[z+2]<<8|k[z+3],z+=4):(u=x[h-2],w=x[h-15],m=x[h-7]+x[h-16]+((u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),x[h]=m),u=X+ca[h]+m+((C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7))+(C&p^
~C&E),w=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&N^q&D^N&D),X=u+w,e+=u,h++,h<16?(x[h]=m=k[z]<<24|k[z+1]<<16|k[z+2]<<8|k[z+3],z+=4):(u=x[h-2],w=x[h-15],m=x[h-7]+x[h-16]+((u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),x[h]=m),u=E+ca[h]+m+((e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7))+(e&C^~e&p),w=((X>>>2|X<<30)^(X>>>13|X<<19)^(X>>>22|X<<10))+(X&q^X&N^q&N),m=N,N=p,p=m,m=q,q=C,C=m,m=X,X=e,e=m,E=D+u,D=u+w,h++;F.Y[0]=D+F.Y[0]|0;F.Y[1]=e+F.Y[1]|0;F.Y[2]=C+F.Y[2]|0;F.Y[3]=
p+F.Y[3]|0;F.Y[4]=E+F.Y[4]|0;F.Y[5]=X+F.Y[5]|0;F.Y[6]=q+F.Y[6]|0;F.Y[7]=N+F.Y[7]|0};
yPR=function(F){var k=new Uint8Array(32),z=64-F.L;F.L>55&&(z+=64);var x=new Uint8Array(z);x[0]=128;for(var D=F.j*8,e=1;e<9;e++){var C=D%256;x[z-e]=C;D=(D-C)/256}F.update(x);for(z=0;z<8;z++)k[z*4]=F.Y[z]>>>24,k[z*4+1]=F.Y[z]>>>16&255,k[z*4+2]=F.Y[z]>>>8&255,k[z*4+3]=F.Y[z]&255;JPa(F);return k};
JPa=function(F){F.Y=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];F.G=[];F.G.length=64;F.j=0;F.L=0};
R$5=function(F){this.Y=F};
g3H=function(F,k,z){F=new va(F.Y);F.update(k);F.update(z);k=yPR(F);F.update(F.W);F.update(k);k=yPR(F);F.reset();return k};
YxI=function(F){this.L=F};
n3Y=function(F,k,z,x){var D,e,C;return g.O(function(p){switch(p.Y){case 1:if(F.Y){p.Sk(2);break}return g.c(p,x.importKey("raw",F.L,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:F.Y=p.L;case 2:return D=new Uint8Array(k.length+z.length),D.set(k),D.set(z,k.length),e={name:"HMAC",hash:"SHA-256"},g.c(p,x.sign(e,F.Y,D),4);case 4:return C=p.L,p.return(new Uint8Array(C))}})};
MFD=function(F,k,z){F.U||(F.U=new R$5(F.L));return g3H(F.U,k,z)};
LfD=function(F,k,z){var x,D;return g.O(function(e){if(e.Y==1){x=Ui();if(!x)return e.return(MFD(F,k,z));g.lD(e,3);return g.c(e,n3Y(F,k,z,x),5)}if(e.Y!=3)return e.return(e.L);D=g.rI(e);g.yI(D);Ba=!0;return e.return(MFD(F,k,z))})};
Kfa=function(F){for(var k="",z=0;z<F.length;z++){var x=F[z];if(z===0)x="M "+x.x.toFixed(1)+","+x.y.toFixed(1);else{var D=f1n(F[z-1],F[z-2],x),e=f1n(x,F[z-1],F[z+1],!0);x=" C "+(D.x.toFixed(1)+","+D.y.toFixed(1)+" "+e.x.toFixed(1)+","+e.y.toFixed(1)+" "+x.x.toFixed(1)+","+x.y.toFixed(1))}k+=x}return k};
f1n=function(F,k,z,x){x=x===void 0?!1:x;k=new Wfn(k||F,z||F);return{x:F.x+((x===void 0?0:x)?k.Y*-1:k.Y)*.2,y:F.y+((x===void 0?0:x)?k.L*-1:k.L)*.2}};
Wfn=function(F,k){this.L=this.Y=0;this.Y=k.x-F.x;this.L=k.y-F.y};
oZx=function(F,k){var z,x,D;return g.O(function(e){if(e.Y==1)return z={context:g.i0(),settingItemIds:k},x=g.jn(F5n),g.c(e,g.od(F,z,x),2);D=e.L;return!D||D.errorMetadata?(kGx("GetSettingValuesRequest",D),e.return(void 0)):e.return(D.settingValues)})};
xEC=function(F,k,z){var x,D,e;g.O(function(C){if(C.Y==1)return x={context:g.i0(),settingItemId:k,newValue:z},D=g.jn(zoH),g.c(C,g.od(F,x,D),2);e=C.L;if(!e||e.errorMetadata)return kGx("SetSettingRequest",e),C.return(void 0);g.Tp(C)})};
kGx=function(F,k){k?k.errorMetadata&&g.yI(new g.Fa(F+" failed with status "+k.errorMetadata.status)):g.yI(new g.Fa(F+" failed with empty response"))};
idk=function(F){return F.includes("gclid")||F.includes("gad_source")};
DED=function(){this.Y=new Map};
js6=function(F,k){var z=yj().resolve($Ek);if(idk(k)){k={handleEvent:function(C){F&&!F.closed&&typeof F.postMessage==="function"&&C&&C.origin&&C.source===F&&C.data&&C.data.action==="gcl_setup"&&(g.yI(Error("PostMessage Tunnel triggered during No-Op phase")),F.postMessage({action:"gcl_transfer",gadSource:2},C.origin))}};
for(var x=g.l(z.Y),D=x.next();!D.done;D=x.next()){var e=g.l(D.value);D=e.next().value;e=e.next().value;if(D.closed)try{window.removeEventListener("message",e),z.Y.delete(D)}catch(C){g.JV(C)}}F&&z.Y.size<15&&(z.Y.set(F,k),window.addEventListener("message",k))}};
Pa=function(F,k,z){if(!k)return F.length>=1?F[F.length-1]:null;for(var x=g.l(F),D=x.next();!D.done;D=x.next())if(D=D.value,D.width&&D.height&&(z&&D.width>=k||!z&&D.height>=k))return D;for(k=F.length-1;k>=0;k--)if(z&&F[k].width||!z&&F[k].height)return F[k];return F[0]};
Oi=function(){this.state=1;this.d9=null;this.e5=void 0};
CdR=function(F,k,z,x,D,e){var C=C===void 0?"trayride":C;z?(F.pJ(2),g.NH(z,function(){if(window[C])eoM(F,x,C,D);else{F.pJ(3);var p=lCH(z),E=document.getElementById(p);E&&(mzp(p),E.parentNode.removeChild(E));g.yI(new g.Fa("BL:ULB",""+z))}},e)):k?(e=g.Ci("SCRIPT"),k instanceof fU?(e.textContent=KU(k),W1(e)):e.textContent=k,e.nonce=LU(document),document.head.appendChild(e),document.head.removeChild(e),window[C]?eoM(F,x,C,D):(F.pJ(4),g.yI(new g.Fa("BL:ULBJ")))):g.yI(new g.Fa("BL:ULV"))};
eoM=function(F,k,z,x){F.pJ(5);var D=!!F.e5&&AVp.includes(g.Lw(F.e5)||"");try{var e=new vM({program:k,globalName:z,UR:{disable:!g.sY("att_web_record_metrics")||!g.sY("att_skip_metrics_for_cookieless_domains_ks")&&D,r$:"aGIf"}});e.Ua.then(function(){F.pJ(6);x&&x(k)});
F.RT(e)}catch(C){F.pJ(7),C instanceof Error&&g.yI(C)}};
Vc=function(){var F=g.yR("yt.abuse.playerAttLoader");return F&&["bgvma","bgvmb","bgvmc"].every(function(k){return k in F})?F:null};
Iz=function(){Oi.apply(this,arguments)};
Ha=function(){};
pzx=function(F,k,z){for(var x=!1,D=g.l(F.TO.entries()),e=D.next();!e.done;e=D.next())e=g.l(e.value).next().value,e.slotType==="SLOT_TYPE_PLAYER_BYTES"&&e.HR==="core"&&(x=!0);if(x){a:if(!z){F=g.l(F.TO.entries());for(z=F.next();!z.done;z=F.next())if(x=g.l(z.value),z=x.next().value,x=x.next().value,z.slotType==="SLOT_TYPE_IN_PLAYER"&&z.HR==="core"){z=x.layoutId;break a}z=void 0}z?k.X6(z):To("No triggering layout ID available when attempting to mute.")}};
az=function(F,k){this.vO=F;this.JI=k};
Sv=function(){};
bs=function(){};
Xzx=function(F){g.S.call(this);var k=this;this.sJ=F;this.Y=new Map;dk(this,"commandExecutorCommand",function(z,x,D){EZR(k,z.commands,x,D)});
dk(this,"clickTrackingParams",function(){})};
qKC=function(F,k){dk(F,k.Sq(),function(z,x,D){k.yl(z,x,D)})};
dk=function(F,k,z){F.z4();F.Y.get(k)&&g.JV(Error("Extension name "+k+" already registered"));F.Y.set(k,z)};
EZR=function(F,k,z,x){k=k===void 0?[]:k;F.z4();var D=[],e=[];k=g.l(k);for(var C=k.next();!C.done;C=k.next())C=C.value,g.J(C,NFH)||g.J(C,uwa)?D.push(C):e.push(C);D=g.l(D);for(k=D.next();!k.done;k=D.next())J5(F,k.value,z,x);e=g.l(e);for(D=e.next();!D.done;D=e.next())J5(F,D.value,z,x)};
J5=function(F,k,z,x){F.z4();k.loggingUrls&&wzI(F,"loggingUrls",k.loggingUrls,z,x);k=g.l(Object.entries(k));for(var D=k.next();!D.done;D=k.next()){var e=g.l(D.value);D=e.next().value;e=e.next().value;D==="openPopupAction"?F.sJ.get().Eg("innertubeCommand",{openPopupAction:e}):D==="confirmDialogEndpoint"?F.sJ.get().Eg("innertubeCommand",{confirmDialogEndpoint:e}):mEC.hasOwnProperty(D)||wzI(F,D,e,z,x)}};
wzI=function(F,k,z,x,D){if((F=F.Y.get(k))&&typeof F==="function")try{F(z,x,D)}catch(e){g.JV(e)}else k=new g.Fa("Unhandled field",k),g.yI(k)};
yc=function(F,k,z){this.Eh=F;this.Y=k;this.oU=z;SF(yj(),{G7:$Ek,xi:DED})};
Rz=function(F){this.value=F};
gk=function(F){this.value=F};
YW=function(F){this.value=F};
nB=function(F){this.value=F};
MN=function(F){this.value=F};
LB=function(F){this.value=F};
fB=function(F){this.value=F};
KB=function(){Rz.apply(this,arguments)};
Wa=function(F){this.value=F};
Fl=function(F){this.value=F};
kS=function(F){this.value=F};
oq=function(F){this.value=F};
zB=function(F){this.value=F};
xS=function(F){this.value=F};
iF=function(F){this.value=F};
DR=function(F){this.value=F};
$S=function(F){this.value=F};
jM=function(F){this.value=F};
eM=function(){Rz.apply(this,arguments)};
C2=function(F){this.value=F};
Au=function(F){this.value=F};
p2=function(F){this.value=F};
EE=function(F){this.value=F};
Xl=function(F){this.value=F};
qy=function(F){this.value=F};
Ny=function(F){this.value=F};
uF=function(F){this.value=F};
wo=function(F){this.value=F};
mu=function(F){this.value=F};
TB=function(F){this.value=F};
lF=function(F){this.value=F};
Qf=function(F){this.value=F};
hu=function(F){this.value=F};
sE=function(F){this.value=F};
ro=function(F){this.value=F};
B0=function(F){this.value=F};
GB=function(F){this.value=F};
UE=function(F){this.value=F};
tu=function(F){this.value=F};
ZR=function(F){this.value=F};
v0=function(F){this.value=F};
c0=function(F){this.value=F};
P0=function(F){this.value=F};
OE=function(F){this.value=F};
Vf=function(F){this.value=F};
Iq=function(F){this.value=F};
H0=function(F){this.value=F};
aq=function(F){this.value=F};
SM=function(F){this.value=F};
bF=function(F){this.value=F};
Ju=function(F){this.value=F};
yf=function(F){this.value=F};
Rq=function(F){this.value=F};
go=function(F){this.value=F};
YS=function(F){this.value=F};
n2=function(F){this.value=F};
My=function(F){this.value=F};
L2=function(){Rz.apply(this,arguments)};
f2=function(F){this.value=F};
K2=function(){Rz.apply(this,arguments)};
W0=function(){Rz.apply(this,arguments)};
FX=function(){Rz.apply(this,arguments)};
kR=function(){Rz.apply(this,arguments)};
oG=function(){Rz.apply(this,arguments)};
zM=function(F){this.value=F};
xR=function(F){this.value=F};
iw=function(F){this.value=F};
Do=function(F){this.value=F};
$R=function(F){this.value=F};
CE=function(F,k,z){if(z&&!z.includes(F.layoutType))return!1;k=g.l(k);for(z=k.next();!z.done;z=k.next())if(!ea(F.clientMetadata,z.value))return!1;return!0};
Az=function(){return""};
TFI=function(F,k){switch(F){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return k(F),8}};
pE=function(F,k,z,x){x=x===void 0?!1:x;N$.call(this,F);this.RO=z;this.qd=x;this.args=[];k&&this.args.push(k)};
L=function(F,k,z,x){x=x===void 0?!1:x;N$.call(this,F);this.RO=z;this.qd=x;this.args=[];k&&this.args.push(k)};
EB=function(F){var k=new Map;F.forEach(function(z){k.set(z.getType(),z)});
this.Y=k};
ea=function(F,k){return F.Y.has(k)};
XX=function(F,k){F=F.Y.get(k);if(F!==void 0)return F.get()};
qG=function(F){return Array.from(F.Y.keys())};
NG=function(F,k,z){if(z&&z!==F.slotType)return!1;k=g.l(k);for(z=k.next();!z.done;z=k.next())if(!ea(F.clientMetadata,z.value))return!1;return!0};
Qsn=function(F){var k;return((k=lWk.get(F))==null?void 0:k.TI)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
w_=function(F,k){var z={type:k.slotType,controlFlowManagerLayer:hop.get(k.HR)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};k.slotEntryTrigger&&(z.entryTriggerType=k.slotEntryTrigger.triggerType);k.slotPhysicalPosition!==1&&(z.slotPhysicalPosition=k.slotPhysicalPosition);if(F){z.debugData={slotId:k.slotId};if(F=k.slotEntryTrigger)z.debugData.slotEntryTriggerData=uw(F);F=k.slotFulfillmentTriggers;z.debugData.fulfillmentTriggerData=[];F=g.l(F);for(var x=F.next();!x.done;x=F.next())z.debugData.fulfillmentTriggerData.push(uw(x.value));
k=k.slotExpirationTriggers;z.debugData.expirationTriggerData=[];k=g.l(k);for(F=k.next();!F.done;F=k.next())z.debugData.expirationTriggerData.push(uw(F.value))}return z};
ss5=function(F,k){var z={type:k.layoutType,controlFlowManagerLayer:hop.get(k.HR)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};F&&(z.debugData={layoutId:k.layoutId});return z};
uw=function(F,k){var z={type:F.triggerType};k!=null&&(z.category=k);F.triggeringSlotId!=null&&(z.triggerSourceData||(z.triggerSourceData={}),z.triggerSourceData.associatedSlotId=F.triggeringSlotId);F.triggeringLayoutId!=null&&(z.triggerSourceData||(z.triggerSourceData={}),z.triggerSourceData.associatedLayoutId=F.triggeringLayoutId);return z};
rVC=function(F,k,z,x){k={opportunityType:k};F&&(x||z)&&(x=g.tW(x||[],function(D){return w_(F,D)}),k.debugData=Object.assign({},z&&z.length>0?{associatedSlotId:z}:{},x.length>0?{slots:x}:{}));
return k};
TM=function(F,k){return function(z){return BFk(mK(F),k.slotId,k.slotType,k.slotPhysicalPosition,k.HR,k.slotEntryTrigger,k.slotFulfillmentTriggers,k.slotExpirationTriggers,z.layoutId,z.layoutType,z.HR)}};
BFk=function(F,k,z,x,D,e,C,p,E,X,q){return{adClientDataEntry:{slotData:w_(F,{slotId:k,slotType:z,slotPhysicalPosition:x,HR:D,slotEntryTrigger:e,slotFulfillmentTriggers:C,slotExpirationTriggers:p,clientMetadata:new EB([])}),layoutData:ss5(F,{layoutId:E,layoutType:X,HR:q,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],hp:new Map,clientMetadata:new EB([]),V2:{}})}}};
Qi=function(F){this.Ff=F;F=Math.random();var k=this.Ff.get();k=g.lw(k.T.C().experiments,"html5_debug_data_log_probability");k=Number.isFinite(k)&&k>=0&&k<=1?k:0;this.Y=F<k};
mK=function(F){return F.Y||F.Ff.get().T.C().V("html5_force_debug_data_for_client_tmp_logs")};
hz=function(F,k,z,x){g.S.call(this);this.L=k;this.IS=z;this.Ff=x;this.Y=F(this,this,this,this,this);g.b(this,this.Y);F=g.l(k);for(k=F.next();!k.done;k=F.next())g.b(this,k.value)};
sB=function(F,k){F.L.add(k)};
r_=function(F,k){F.L.delete(k)};
GM=function(F,k,z,x){To(z,k,void 0,void 0,z.qd);z.RO?F.IS.bf(x,z.RO,k):To("adsClientErrorMessage is missing.",k);Be(F,k,!0)};
UEC=function(F,k,z){if(UB(F.Y,k))if(tz(F.Y,k).j=z?"filled":"not_filled",z===null){F.IS.jU("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",k);z=g.l(F.L);for(var x=z.next();!x.done;x=z.next())x.value.JH(k);Be(F,k,!1)}else{F.IS.jU("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",k,z);F.IS.jU("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",k,z);var D,e=(D=z.Ve)!=null?D:XX(z.clientMetadata,"metadata_type_sub_layouts");if(e)for(D=g.l(e),e=D.next();!e.done;e=D.next())F.IS.jU("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",
k,e.value);D=g.l(F.L);for(e=D.next();!e.done;e=D.next())e.value.R3(k);if(UB(F.Y,k))if(tz(F.Y,k).W)Be(F,k,!1);else{F.IS.jU("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",k,z);try{x=F.Y;if(!tz(x,k))throw new pE("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!x.Hc.wJ.get(k.slotType))throw new pE("No LayoutRenderingAdapterFactory registered for slot of type: "+k.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");
if(z.layoutExitNormalTriggers.length==0&&z.layoutExitSkipTriggers.length==0&&z.layoutExitMuteTriggers.length==0&&z.layoutExitUserInputSubmittedTriggers.length==0&&z.Ry.length==0)throw new pE("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");Zo(x,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",z.layoutExitNormalTriggers);Zo(x,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",z.layoutExitSkipTriggers);Zo(x,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",z.layoutExitMuteTriggers);
Zo(x,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",z.layoutExitUserInputSubmittedTriggers);Zo(x,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",z.Ry)}catch(X){X instanceof pE?F.hh(k,z,X,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):F.hh(k,z,new pE("Unexpected error: "+X,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");Be(F,k,!0);return}tz(F.Y,k).S=!0;try{var C=F.Y,p=tz(C,k),E=C.Hc.wJ.get(k.slotType).get().build(C.j,C.L,k,z);E.init();p.layout=
z;if(p.U)throw new pE("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");p.U=E;ve(C,p,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",z.layoutExitNormalTriggers);ve(C,p,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",z.layoutExitSkipTriggers);ve(C,p,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",z.layoutExitMuteTriggers);ve(C,p,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",z.layoutExitUserInputSubmittedTriggers);ve(C,p,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",
z.Ry)}catch(X){ce(F,k);X instanceof pE?F.hh(k,z,X,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):F.hh(k,z,new pE("Unexpected error: "+X,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");Be(F,k,!0);return}F.IS.jU("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",k,z);x=g.l(F.L);for(C=x.next();!C.done;C=x.next())C.value.FY(k,z);ce(F,k);GGD(F,k)}else F=F.Ff.get(),g.Pe(F.T.C())||OB(F.T.C())||g.Vi(F.T.C())?F=!0:(To("Composite VOD on legacy path."),F=!1),F&&To("slot is unscheduled after been fulfilled.",
k,z)}};
tb6=function(F,k,z){k.HR!=="core"&&F.IS.jU("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",k,z,void 0)};
ZdI=function(F,k,z){F.IS.jU("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",k,z,void 0);F=g.l(F.L);for(var x=F.next();!x.done;x=F.next())x.value.FY(k,z)};
vZa=function(F,k,z){F=g.l(F.L);for(var x=F.next();!x.done;x=F.next())x.value.gR(k,z)};
IG=function(F,k,z){F.IS.jU("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",k,z,void 0);F=g.l(F.L);for(var x=F.next();!x.done;x=F.next())x.value.sH(k,z)};
He=function(F,k,z,x){F.IS.jU(Qsn(x),k,z,void 0);F=g.l(F.L);for(var D=F.next();!D.done;D=F.next())D.value.XI(k,z,x)};
ce=function(F,k){if(UB(F.Y,k)){tz(F.Y,k).S=!1;var z=aG;k=tz(F.Y,k);var x=[].concat(g.r(k.B));Knk(k.B);z(F,x)}};
aG=function(F,k){k.sort(function(e,C){function p(E){To("TriggerCategoryOrder enum does not contain trigger category: "+E)}
return e.category===C.category?e.trigger.triggerId.localeCompare(C.trigger.triggerId):TFI(e.category,p)-TFI(C.category,p)});
var z=new Map;k=g.l(k);for(var x=k.next();!x.done;x=k.next())if(x=x.value,UB(F.Y,x.slot))if(tz(F.Y,x.slot).S)tz(F.Y,x.slot).B.push(x);else{F.IS.Ww("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",x.slot,x,x.layout);var D=z.get(x.category);D||(D=[]);D.push(x);z.set(x.category,D)}k=g.l(cVI);for(x=k.next();!x.done;x=k.next())D=g.l(x.value),x=D.next().value,D=D.next().value,(x=z.get(x))&&Pd6(F,x,D);(k=z.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&OdM(F,k);(k=z.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&Vbx(F,
k);(z=z.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&IWM(F,z)};
Pd6=function(F,k,z){k=g.l(k);for(var x=k.next();!x.done;x=k.next())x=x.value,x.layout&&Sa(F.Y,x.slot)&&HdD(F,x.slot,x.layout,z)};
OdM=function(F,k){k=g.l(k);for(var z=k.next();!z.done;z=k.next())Be(F,z.value.slot,!1)};
Vbx=function(F,k){k=g.l(k);for(var z=k.next();!z.done;z=k.next()){z=z.value;a:switch(tz(F.Y,z.slot).j){case "not_filled":var x=!0;break a;default:x=!1}x&&(F.IS.Se("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",z.slot),F.Y.vt(z.slot))}};
IWM=function(F,k){k=g.l(k);for(var z=k.next();!z.done;z=k.next()){z=z.value;F.IS.Se("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",z.slot);for(var x=g.l(F.L),D=x.next();!D.done;D=x.next())D.value.Gr(z.slot);try{var e=F.Y,C=z.slot,p=tz(e,C);if(!p)throw new L("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!p.L)throw new L("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(p.Y!=="scheduled")throw new L("Tried to enter a slot from stage: "+
p.Y,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(bw(p))throw new L("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var E=g.l(d_(e,C.slotType+"_"+C.slotPhysicalPosition).values()),X=E.next();!X.done;X=E.next()){var q=X.value;if(p!==q&&bw(q))throw new L("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:q.Y},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(N){N instanceof L&&N.RO?(F.IS.bf("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
N.RO,z.slot),To(N,z.slot,Jz(F.Y,z.slot),void 0,N.qd)):(F.IS.bf("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",z.slot),To(N,z.slot));Be(F,z.slot,!0);continue}z=tz(F.Y,z.slot);z.Y!=="scheduled"&&yi(z.slot,z.Y,"enterSlot");z.Y="enter_requested";z.L.jN()}};
GGD=function(F,k){if(UB(F.Y,k)&&bw(tz(F.Y,k))&&Jz(F.Y,k)&&!Sa(F.Y,k)){var z;F.IS.jU("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",k,(z=Jz(F.Y,k))!=null?z:void 0);F=tz(F.Y,k);F.Y!=="entered"&&yi(F.slot,F.Y,"enterLayoutForSlot");F.Y="rendering";F.U.startRendering(F.layout)}};
HdD=function(F,k,z,x){if(UB(F.Y,k)){var D=F.IS,e=D.jU,C;var p=((C=lWk.get(x))==null?void 0:C.L1)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";e.call(D,p,k,z);F=tz(F.Y,k);F.Y!=="rendering"&&yi(F.slot,F.Y,"exitLayout");F.Y="rendering_stop_requested";F.U.Qf(z,x)}};
Be=function(F,k,z){if(UB(F.Y,k)){a:switch(tz(F.Y,k).Y){case "exit_requested":var x=!0;break a;default:x=!1}if(!x)a:switch(tz(F.Y,k).Y){case "rendering_stop_requested":x=!0;break a;default:x=!1}if(x&&(tz(F.Y,k).W=!0,!z))return;if(bw(tz(F.Y,k)))tz(F.Y,k).W=!0,aWI(F,k,z);else{a:switch(tz(F.Y,k).j){case "fill_requested":z=!0;break a;default:z=!1}if(z)tz(F.Y,k).W=!0,UB(F.Y,k)&&(F.IS.Se("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",k),k=tz(F.Y,k),k.j="fill_cancel_requested",k.G.Ep());else{z=
Jz(F.Y,k);(x=F.Ff.get().T.C().experiments.Ca("h5_enable_layout_unscheduling_events"))&&(z?F.gR(k,z):To(Error("Layout is null for LayoutUnscheduled event."),k,z,void 0,!1));F.IS.Se("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",k);var D=tz(F.Y,k),e=k.slotEntryTrigger,C=D.t4.get(e.triggerId);C&&(C.iJ(e),D.t4.delete(e.triggerId));e=g.l(k.slotFulfillmentTriggers);for(C=e.next();!C.done;C=e.next()){C=C.value;var p=D.Qh.get(C.triggerId);p&&(p.iJ(C),D.Qh.delete(C.triggerId))}e=g.l(k.slotExpirationTriggers);
for(C=e.next();!C.done;C=e.next())if(C=C.value,p=D.K.get(C.triggerId))p.iJ(C),D.K.delete(C.triggerId);D.layout!=null&&(e=D.layout,RG(D,e.layoutExitNormalTriggers),RG(D,e.layoutExitSkipTriggers),RG(D,e.layoutExitMuteTriggers),RG(D,e.layoutExitUserInputSubmittedTriggers),RG(D,e.Ry));D.G=void 0;D.L!=null&&(D.L.release(),D.L=void 0);D.U!=null&&(D.U.release(),D.U=void 0);D=F.Y;tz(D,k)&&(D=d_(D,k.slotType+"_"+k.slotPhysicalPosition))&&D.delete(k.slotId);F.IS.Se("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
k);F=g.l(F.L);for(D=F.next();!D.done;D=F.next())D=D.value,D.q$(k),z&&!x&&D.gR(k,z)}}}};
aWI=function(F,k,z){if(UB(F.Y,k)&&bw(tz(F.Y,k))){var x=Jz(F.Y,k);if(x&&Sa(F.Y,k))HdD(F,k,x,z?"error":"abandoned");else{F.IS.Se("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",k);try{var D=tz(F.Y,k);if(!D)throw new L("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");D.Y!=="enter_requested"&&D.Y!=="entered"&&D.Y!=="rendering"&&yi(D.slot,D.Y,"exitSlot");D.Y="exit_requested";if(D.L===void 0)throw D.Y="scheduled",new L("Cannot exit slot because adapter is not defined",
void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");D.L.Fc()}catch(e){e instanceof L&&e.RO?(F.IS.bf("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",e.RO,k),To(e,k,void 0,void 0,e.qd)):(F.IS.bf("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",k),To(e,k))}}}};
SK5=function(F){this.slot=F;this.t4=new Map;this.Qh=new Map;this.K=new Map;this.PR=new Map;this.U=this.layout=this.L=this.G=void 0;this.S=this.W=!1;this.B=[];this.Y="not_scheduled";this.j="not_filled"};
bw=function(F){return F.Y==="enter_requested"||F.isActive()};
g_=function(F,k,z,x,D,e){g.S.call(this);this.Hc=F;this.U=k;this.W=z;this.j=x;this.L=D;this.Ff=e;this.Y=new Map};
d_=function(F,k){return(F=F.Y.get(k))?F:new Map};
tz=function(F,k){return d_(F,k.slotType+"_"+k.slotPhysicalPosition).get(k.slotId)};
bdR=function(F){var k=[];F.Y.forEach(function(z){z=g.l(z.values());for(var x=z.next();!x.done;x=z.next())k.push(x.value.slot)});
return k};
UB=function(F,k){return tz(F,k)!=null};
Sa=function(F,k){F=tz(F,k);if(k=F.layout!=null)a:switch(F.Y){case "rendering":case "rendering_stop_requested":k=!0;break a;default:k=!1}return k};
Jz=function(F,k){(F=tz(F,k))?F.layout!=null&&!F.layout&&To("Unexpected empty layout",k):To("Unexpected undefined slotState",k);return(F==null?void 0:F.layout)||null};
YR=function(F,k,z){if(z.length==0)throw new L("No "+dEY.get(k)+" triggers found for slot.",void 0,JVC(k));z=g.l(z);for(var x=z.next();!x.done;x=z.next())if(x=x.value,!F.Hc.JR.get(x.triggerType))throw new L("No trigger adapter registered for "+k+" trigger of type: "+x.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
JVC=function(F){switch(F){case "TRIGGER_CATEGORY_SLOT_ENTRY":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_ENTRY_TRIGGER";case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_EXPIRATION_TRIGGER";case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_FULFILLMENT_TRIGGER";default:return"ADS_CLIENT_ERROR_MESSAGE_INVALID_TRIGGER"}};
Zo=function(F,k,z){z=g.l(z);for(var x=z.next();!x.done;x=z.next())if(x=x.value,!F.Hc.JR.get(x.triggerType))throw new pE("No trigger adapter registered for "+dEY.get(k)+" trigger of type: "+x.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
ve=function(F,k,z,x){x=g.l(x);for(var D=x.next();!D.done;D=x.next()){D=D.value;var e=F.Hc.JR.get(D.triggerType);e.aO(z,D,k.slot,k.layout?k.layout:null);k.PR.set(D.triggerId,e)}};
RG=function(F,k){k=g.l(k);for(var z=k.next();!z.done;z=k.next()){z=z.value;var x=F.PR.get(z.triggerId);x&&(x.iJ(z),F.PR.delete(z.triggerId))}};
yi=function(F,k,z){To("Slot stage was "+k+" when calling method "+z,F)};
yVk=function(F){return nE(F.W1).concat(nE(F.JR)).concat(nE(F.U7)).concat(nE(F.Gw)).concat(nE(F.wJ))};
nE=function(F){var k=[];F=g.l(F.values());for(var z=F.next();!z.done;z=F.next())z=z.value,z.Q_&&k.push(z);return k};
MG=function(F){g.S.call(this);var k=this;this.Y=F;this.instance=null;this.addOnDisposeCallback(function(){g.CC(k.instance);k.instance=null})};
LE=function(F){return new MG(F)};
fE=function(F){g.S.call(this);this.Y=F;this.L=Ron(this)};
Ron=function(F){var k=new hz(function(z,x,D,e){return new g_(F.Y.Hc,z,x,D,e,F.Y.Ff)},new Set(yVk(F.Y.Hc).concat(F.Y.listeners)),F.Y.IS,F.Y.Ff);
g.b(F,k);return k};
KE=function(F){this.Y=F};
We=function(F,k,z){EZR(F.Y(),k,z)};
F$=function(F,k,z,x){(F=F.Y())||To("Could not initiate a command router instance.");J5(F,k,z,x)};
kI=function(){this.listeners=new Set};
ov=function(F){this.Ff=F};
gZI=function(F,k){var z=k.bgp&&k.bgub,x=!!k.upb;k.siub&&k.scs&&(z||x)&&(x&&zU(F.Ff.get(),"html5_export_sodar_snapshot")?Zv().then(function(D){D=D.snapshot.bind(D);g.dI("yt.abuse.playerAttLoaderRun",D);M3D(k.siub,k.scs,k.bgub,k.bgp,k.upb)}):M3D(k.siub,k.scs,k.bgub,k.bgp,k.upb))};
YKR=function(F,k,z,x,D){this.callback=F;this.slot=k;this.L=z;this.Fv=x;this.Ff=D;this.Y=null};
MbH=function(F,k,z,x){F.Y&&To("Currently active request ongoing for slot. This should never happen",F.slot);F.Y=k();F.Y.then(function(D){F.Y=null;x&&x(D);var e=D.SE?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",C=F.L.get(),p=F.slot.slotId,E=TM(F.Fv.get(),{slotId:F.slot.slotId,slotType:F.slot.slotType,slotPhysicalPosition:F.slot.slotPhysicalPosition,HR:F.slot.HR,slotEntryTrigger:F.slot.slotEntryTrigger,slotFulfillmentTriggers:F.slot.slotFulfillmentTriggers,slotExpirationTriggers:F.slot.slotExpirationTriggers}),
X=xI(C.L.get(),e,p),q={layoutId:X,layoutType:e,HR:"core"};D={layoutId:X,layoutType:e,hp:new Map,layoutExitNormalTriggers:[new nZx(C.Y,p)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:"core",clientMetadata:new EB([new go(D)]),V2:E(q)};UEC(F.callback,F.slot,D)},function(D){F.Y=null;
z&&z();D instanceof IU||GM(F.callback,F.slot,new L(D,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
L5n=function(F){if(F.Y==null)F.callback.Jk(F.slot);else try{F.Y.cancel(),F.Y=null,F.callback.Jk(F.slot)}catch(k){F.Y=null,GM(F.callback,F.slot,new L(k,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
iX=function(F,k,z,x){!F&&(z===void 0?0:z)&&g.yI(Error("Player URL validator detects invalid url. "+(x===void 0?"":x)+": "+k));return F};
DV=function(F,k){return k&&k.test(F)?!0:!1};
$I=function(F){return(F=fWa&&fWa.exec(F))?F[0]:""};
j9=function(F){var k=k===void 0?!1:k;return iX(DV(F,K5H),F,k,"Trusted Stream URL")};
g.e9=function(F){var k=k===void 0?!1:k;return iX(DV(F,W5M),F,k,"Trusted Image URL")};
kmR=function(F){var k=k===void 0?!1:k;return iX(DV(F,FiR),F,k,"Trusted Promoted Video Domain URL")};
z7H=function(F){var k=k===void 0?!1:k;return iX(DV(F,oBI),F,k,"Drm Licensor URL")};
iJ5=function(F,k){k=k===void 0?!1:k;return iX(DV(F,xhp),F,k,"Captions URL")};
DhD=function(F){F=new g.sF(F);g.rl(F,document.location.protocol);g.BD(F,document.location.hostname);document.location.port&&g.Gi(F,document.location.port);return F.toString()};
Cs=function(F){F=new g.sF(F);g.rl(F,document.location.protocol);return F.toString()};
g.ps=function(F,k,z){z=z===void 0?{}:z;this.start=F;this.end=k;this.active=!0;this.color="";this.US=0;this.L=$hx++;this.id=z.id||"";this.priority=z.priority||9;this.visible=z.visible||!1;this.style=z.style||Ae.AD_MARKER;this.namespace=z.namespace||"";if(F=z.color)F=F.toString(16),this.color="#"+Array(7-F.length).join("0")+F;this.tooltip=z.tooltip;this.icons=z.icons?z.icons.filter(function(x){return g.ZO(x.thumbnails,function(D){return g.e9(D.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
jaM=function(F){return F===-0x8000000000000?"BEFORE_MEDIA_START":F===0?"MEDIA_START":F===0x7ffffffffffff?"MEDIA_END":F===0x8000000000000?"AFTER_MEDIA_END":F.toString()};
e7p=function(F,k){switch(F.style){case Ae.CHAPTER_MARKER:return k?8:5;case Ae.AD_MARKER:return 6;case Ae.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.Ec=function(F,k){return F.start-k.start||F.priority-k.priority||F.L-k.L};
g.X$=function(F){return"crn_"+F};
g.qQ=function(F){return"crx_"+F};
NQ=function(F,k,z,x,D,e,C,p,E){this.slot=k;this.L=z;this.oU=C;this.ek=p;this.jr=E;this.Y=new YKR(F,k,x,D,e)};
CGp=function(F){var k;(k=F.jr)==null||k.get().LB(XX(F.slot.clientMetadata,"metadata_type_cue_point").identifier)};
uX=function(F,k,z,x,D,e){this.slot=k;this.Y=z;this.L=new YKR(F,k,x,D,e)};
wG=function(F,k){this.callback=F;this.slot=k};
mR=function(F,k){return NG(F,k.Xs,k.slotType)?!0:!1};
TU=function(){};
lX=function(F,k,z,x,D,e,C){this.Y=F;this.L=k;this.Fv=z;this.Ff=x;this.oU=D;this.ek=e;this.jr=C};
Qk=function(){};
AL5=function(F,k,z,x,D,e){this.callback=F;this.slot=k;this.layout=z;this.U=x;this.Y=D;this.L=e};
EB5=function(F){if(XX(F.slot.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var k=px9(F,F.slot);he(F.Y.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[k]})}};
Xxk=function(F){if(XX(F.slot.clientMetadata,"metadata_type_prefetch_metadata")){var k=px9(F,F.slot);he(F.Y.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[k]})}};
px9=function(F,k){var z=sc(F.L.get(),F.slot.slotType),x=Object,D=x.assign;F=F.slot;if(k.slotEntryTrigger){var e=k.slotId;var C=k.slotEntryTrigger;e=C.triggeringSlotId!=null&&C.triggeringSlotId===e?C.clone(z):C}else e=void 0;return D.call(x,{},F,{slotId:z,slotEntryTrigger:e,slotFulfillmentTriggers:qe9(k.slotId,z,k.slotFulfillmentTriggers),slotExpirationTriggers:qe9(k.slotId,z,k.slotExpirationTriggers)})};
qe9=function(F,k,z){var x=[];z=g.l(z);for(var D=z.next();!D.done;D=z.next()){var e=x,C=e.push;var p=F;var E=k;D=D.value;p=D.triggeringSlotId!=null&&D.triggeringSlotId===p?D.clone(E):D;C.call(e,p)}return x};
g.rG=function(F,k){for(var z=g.l(Object.keys(k)),x=z.next(),D={};!x.done;D={placeholder:void 0},x=z.next())x=x.value,D.placeholder=k[x],F=F.replace(new RegExp("\\$"+x,"gi"),function(e){return function(){return e.placeholder}}(D));
return F};
Nta=function(F,k,z){this.Y=F;this.slot=k;this.layout=z};
Bn=function(F,k,z){k.layoutId!==F.layout.layoutId?F.Y.hh(F.slot,k,new pE("Unknown layout received. Required LayoutId: "+F.layout.layoutId+("and LayoutType: "+F.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):z()};
GU=function(F,k,z,x){g.uG.call(this);this.callback=F;this.U=x;this.Y=[];this.L=new Nta(F,k,z)};
te=function(F,k,z,x,D,e,C,p){x=x||XX(z.clientMetadata,e);F=Uc(F);var E=rP(function(){D.sH(k,z)});
p.push(C(x,F,z.layoutId,{adsClientData:z.V2},function(){E()}))};
vn=function(F,k,z,x,D,e,C,p,E){if(k===F)if(E){if(E===p.layoutId){a:{F=g.l(z.keys());for(k=F.next();!k.done;k=F.next())if(k=k.value,k.slotType==="SLOT_TYPE_PLAYER_BYTES"&&e===z.get(k).layoutId){z=!0;break a}z=!1}z?ZV(x,1):D?D():To("Tried to call engagePingCallback but it is null",C,p)}}else To("Companion AdUxClick received without a layoutId",C,p)};
cn=function(F){var k,z,x,D,e;return!((k=F.get("active_view_viewable"))==null||!k.length)||!((z=F.get("active_view_measurable"))==null||!z.length)||!((x=F.get("active_view_fully_viewable_audible_half_duration"))==null||!x.length)||!((D=F.get("audio_audible"))==null||!D.length)||!((e=F.get("audio_measurable"))==null||!e.length)};
Pn=function(F){var k,z;return(z=F==null?void 0:(k=F.activeViewTracking)==null?void 0:k.trafficType)!=null?z:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
uHa=function(F){var k;return F==null?void 0:(k=F.activeViewTracking)==null?void 0:k.identifier};
Oc=function(F){var k,z;return new Map([["impression",F.impressionPings||[]],["error",F.errorPings||[]],["mute",F.mutePings||[]],["unmute",F.unmutePings||[]],["pause",F.pausePings||[]],["rewind",F.rewindPings||[]],["resume",F.resumePings||[]],["skip",F.skipPings||[]],["swipe",F.swipePings||[]],["close",F.closePings||[]],["progress",F.progressPings||[]],["clickthrough",F.clickthroughPings||[]],["fullscreen",F.fullscreenPings||[]],["active_view_viewable",F.activeViewViewablePings||[]],["active_view_measurable",
F.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",F.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",((k=F.activeViewTracking)==null?void 0:k.activeViewAudioAudiblePings)||[]],["audio_measurable",((z=F.activeViewTracking)==null?void 0:z.activeViewAudioMeasurablePings)||[]],["end_fullscreen",F.endFullscreenPings||[]],["channel_clickthrough",F.channelClickthroughPings||[]],["abandon",F.abandonPings||[]],["start",F.startPings||[]],["first_quartile",
F.firstQuartilePings||[]],["midpoint",F.secondQuartilePings||[]],["third_quartile",F.thirdQuartilePings||[]],["complete",F.completePings||[]],["unmuted_impression",F.unmutedImpressionPings||[]],["unmuted_error",F.unmutedErrorPings||[]],["unmuted_mute",F.unmutedMutePings||[]],["unmuted_unmute",F.unmutedUnmutePings||[]],["unmuted_pause",F.unmutedPausePings||[]],["unmuted_resume",F.unmutedResumePings||[]],["unmuted_close",F.unmutedClosePings||[]],["unmuted_progress",F.unmutedProgressPings||[]],["unmuted_clickthrough",
F.unmutedClickthroughPings||[]],["unmuted_fullscreen",F.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",F.unmutedEndFullscreenPings||[]],["unmuted_abandon",F.unmutedAbandonPings||[]],["unmuted_start",F.unmutedStartPings||[]],["unmuted_first_quartile",F.unmutedFirstQuartilePings||[]],["unmuted_midpoint",F.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",F.unmutedThirdQuartilePings||[]],["unmuted_complete",F.unmutedCompletePings||[]],["unmuted_skip",F.unmutedSkipPings||[]]])};
wx6=function(F){switch(F){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen";
case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "swipe":return null;case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile";
case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null;
default:return null}};
Vk=function(F,k,z,x,D){D=D===void 0?null:D;this.U=F;this.oU=k;this.layoutId=x;this.j=0;this.S=null;this.W=void 0;this.Y=new Set;this.L=Array.from(this.U.get("progress")||[]);this.L.sort(function(e,C){return(e.offsetMilliseconds||0)-(C.offsetMilliseconds||0)});
this.G={adPlacementConfig:z,u3:D}};
Iv=function(){return["metadata_type_ad_placement_config"]};
Uc=function(F){var k=F.oU.get();return Hn(k,F.G)};
S9=function(F,k,z){z=z===void 0?!1:z;F.Y.has(k)?av(F,k,[]):F.wH(k,z)};
bX=function(F,k,z){for(z=z===void 0?!1:z;F.j<F.L.length;){var x=F.L[F.j];if(x.offsetMilliseconds<=k||z)av(F,"progress",[x]),F.j++;else break}};
dG=function(F,k){return F.Y.has(k)};
Je=function(F){return F.L.every(function(k){return k.hasOwnProperty("offsetMilliseconds")})};
mhC=function(F,k,z){F.S=k;F.W=z};
av=function(F,k,z){var x;Ttn(F.oU.get(),F.layoutId,k,z,(x=F.S)!=null?x:void 0,F.W)};
l4R=function(F,k,z,x,D){Nh.call(this,"ads-engagement-panel-layout",F,k,z,x,D)};
yk=function(F,k,z,x,D,e,C,p){GU.call(this,F,k,z,x);this.oU=D;this.d3=e;this.S=p;this.Q_=!0;this.j=null;this.W=XX(z.clientMetadata,"metadata_type_linked_player_bytes_layout_id");sB(this.d3(),this);F=XX(z.clientMetadata,"metadata_type_ad_placement_config");this.MJ=new Vk(z.hp,this.oU,F,z.layoutId)};
QaD=function(){var F=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];Iv().forEach(function(k){F.push(k)});
return{Xs:F,v7:["LAYOUT_TYPE_PANEL"]}};
h7Y=function(F,k,z,x,D){Nh.call(this,"banner-image",F,k,z,x,D)};
Rv=function(F,k,z,x,D,e,C,p){GU.call(this,F,k,z,x);this.oU=D;this.d3=e;this.S=p;this.Q_=!0;this.j=null;this.W=XX(z.clientMetadata,"metadata_type_linked_player_bytes_layout_id");sB(this.d3(),this);this.adPlacementConfig=XX(z.clientMetadata,"metadata_type_ad_placement_config");this.MJ=new Vk(z.hp,this.oU,this.adPlacementConfig,z.layoutId)};
san=function(){var F=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];Iv().forEach(function(k){F.push(k)});
return{Xs:F,v7:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
gG=function(F,k,z,x,D){Nh.call(this,"action-companion",F,k,z,x,D)};
YI=function(F,k,z,x,D,e,C,p){GU.call(this,F,k,z,x);this.oU=D;this.d3=e;this.S=p;this.Q_=!0;this.j=null;this.W=XX(z.clientMetadata,"metadata_type_linked_player_bytes_layout_id");sB(this.d3(),this);F=XX(z.clientMetadata,"metadata_type_ad_placement_config");this.MJ=new Vk(z.hp,this.oU,F,z.layoutId)};
rLC=function(){var F=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];Iv().forEach(function(k){F.push(k)});
return{Xs:F,v7:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
Bt9=function(F,k,z,x,D){Nh.call(this,"image-companion",F,k,z,x,D)};
ns=function(F,k,z,x,D,e,C,p){GU.call(this,F,k,z,x);this.oU=D;this.d3=e;this.S=p;this.Q_=!0;this.j=null;this.W=XX(z.clientMetadata,"metadata_type_linked_player_bytes_layout_id");sB(this.d3(),this);F=XX(z.clientMetadata,"metadata_type_ad_placement_config");this.MJ=new Vk(z.hp,this.oU,F,z.layoutId)};
GmR=function(){var F=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];Iv().forEach(function(k){F.push(k)});
return{Xs:F,v7:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
UhR=function(F,k,z,x,D){Nh.call(this,"shopping-companion",F,k,z,x,D)};
MQ=function(F,k,z,x,D,e,C,p){GU.call(this,F,k,z,x);this.oU=D;this.d3=e;this.S=p;this.Q_=!0;this.j=null;this.W=XX(z.clientMetadata,"metadata_type_linked_player_bytes_layout_id");sB(this.d3(),this);F=XX(z.clientMetadata,"metadata_type_ad_placement_config");this.MJ=new Vk(z.hp,this.oU,F,z.layoutId)};
tLD=function(){var F=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];Iv().forEach(function(k){F.push(k)});
return{Xs:F,v7:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
ZJ9=function(F){var k;if(((k=F.adVideoOffset)==null?void 0:k.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var z;return((z=F.adVideoOffset)==null?void 0:z.percent)!=null};
vBY=function(F){var k;if(((k=F.adVideoOffset)==null?void 0:k.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var z;return((z=F.adVideoOffset)==null?void 0:z.milliseconds)!=null&&!isNaN(Number(F.adVideoOffset.milliseconds))};
cL9=function(F,k,z,x){this.z$=F;this.layoutId=z;this.W=x;this.L=[];this.Y=[];this.U=this.j=0;F=g.l(k);for(k=F.next();!k.done;k=F.next())switch(k=k.value,z=void 0,(z=k.adVideoOffset)==null?void 0:z.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":ZJ9(k)?this.L.push(k):To("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":vBY(k)?this.Y.push(k):To("Invalid AdVideoProgressMillisecondsCommand");break;default:To("Unknown or invalid AdVideoProgressOffSet kind")}this.L.sort(function(D,
e){return D.adVideoOffset.percent-e.adVideoOffset.percent});
this.Y.sort(function(D,e){return Number(D.adVideoOffset.milliseconds)-Number(e.adVideoOffset.milliseconds)})};
Ls=function(F,k,z){z=z===void 0?!1:z;var x=F.W();if(x){for(;F.j<F.L.length;){var D=F.L[F.j];if(D.adVideoOffset.percent*x<=k||z)F.z$.get().executeCommand(D.command,F.layoutId),F.j++;else break}for(;F.U<F.Y.length;)if(x=F.Y[F.U],Number(x.adVideoOffset.milliseconds)<=k||z)F.z$.get().executeCommand(x.command,F.layoutId),F.U++;else break}};
fs=function(F,k,z,x,D,e){GU.call(this,F,k,z,x);this.oU=D;this.d3=e;this.Q_=!0;sB(this.d3(),this);F=XX(z.clientMetadata,"metadata_type_ad_placement_config");this.MJ=new Vk(z.hp,this.oU,F,z.layoutId)};
PGD=function(){var F=["metadata_type_action_companion_ad_renderer"];Iv().forEach(function(k){F.push(k)});
return{Xs:F,v7:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
OJY=function(F,k,z,x,D,e,C,p){this.callback=F;this.slot=k;this.layout=z;this.ek=x;this.oU=D;this.Ff=C;this.Fm=p;this.Y=!1;F=XX(z.clientMetadata,"metadata_type_ad_placement_config");this.MJ=new Vk(z.hp,this.oU,F,z.layoutId);var E;F=((E=XX(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:E.progressCommands)||[];var X=XX(z.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.L=new cL9(e,F,z.layoutId,function(){return X*1E3})};
Ks=function(F,k,z,x,D,e){GU.call(this,F,k,z,x);this.ek=D;this.W=e;this.j=!1};
Wn=function(F,k,z,x,D){Nh.call(this,"top-banner-image-text-icon-buttoned",F,k,z,x,D)};
Fo=function(F,k,z,x,D,e){GU.call(this,F,k,z,x);this.oU=D;this.d3=e;this.Q_=!0;sB(this.d3(),this);F=XX(z.clientMetadata,"metadata_type_ad_placement_config");this.MJ=new Vk(z.hp,this.oU,F,z.layoutId)};
VLa=function(){var F=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];Iv().forEach(function(k){F.push(k)});
return{Xs:F,v7:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
kg=function(F,k,z){Nh.call(this,"display-underlay-text-grid-cards",F,{},k,z);this.interactionLoggingClientData=z};
oN=function(F,k,z,x,D,e){GU.call(this,F,k,z,x);this.oU=D;this.j=e;this.W=XX(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
z7=function(F,k,z,x,D,e){D=D===void 0?!1:D;e=e===void 0?!1:e;Nh.call(this,"ad-action-interstitial",F,k,z,x);this.interactionLoggingClientData=x;this.BJ=D;this.vL=e};
xg=function(F,k,z,x,D){GU.call(this,F,k,z,x);F=XX(z.clientMetadata,"metadata_type_ad_placement_config");this.MJ=new Vk(z.hp,D,F,z.layoutId)};
I4n=function(){var F=["metadata_type_ad_action_interstitial_renderer"];Iv().forEach(function(k){F.push(k)});
return{Xs:F,v7:["LAYOUT_TYPE_ENDCAP"]}};
iv=function(F,k){return CE(F,k.Xs,k.v7)?!0:!1};
D6=function(F,k,z){this.L=F;this.U=k;this.Y=z};
HJ6=function(F,k,z,x,D){Nh.call(this,"ads-engagement-panel",F,k,z,x,D)};
$g=function(F,k,z,x,D,e,C,p){GU.call(this,F,k,z,x);this.oU=D;this.d3=e;this.S=p;this.Q_=!0;this.j=null;this.W=XX(z.clientMetadata,"metadata_type_linked_player_bytes_layout_id");sB(this.d3(),this);F=XX(z.clientMetadata,"metadata_type_ad_placement_config");this.MJ=new Vk(z.hp,this.oU,F,z.layoutId)};
a4R=function(){var F=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];Iv().forEach(function(k){F.push(k)});
return{Xs:F,v7:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
jD=function(F,k,z,x,D,e,C,p){GU.call(this,F,k,z,x);this.oU=D;this.d3=e;this.S=p;this.Q_=!0;this.j=null;this.W=XX(z.clientMetadata,"metadata_type_linked_player_bytes_layout_id");sB(this.d3(),this);this.adPlacementConfig=XX(z.clientMetadata,"metadata_type_ad_placement_config");this.MJ=new Vk(z.hp,this.oU,this.adPlacementConfig,z.layoutId)};
SeM=function(){var F=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];Iv().forEach(function(k){F.push(k)});
return{Xs:F,v7:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
bJR=function(F,k,z,x,D){this.UJ=F;this.oU=k;this.d3=z;this.Y=x;this.Fm=D};
dh6=function(F,k,z){this.UJ=F;this.oU=k;this.Y=z};
JLC=function(F,k,z,x,D){this.callback=F;this.slot=k;this.layout=z;this.oU=x;this.p$=D;F=XX(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.MJ=new Vk(z.hp,this.oU,F,z.layoutId)};
yLM=function(){var F=["metadata_type_client_forecasting_ad_renderer"];Iv().forEach(function(k){F.push(k)});
return{Xs:F,v7:["LAYOUT_TYPE_FORECASTING"]}};
R7H=function(F,k,z,x,D){this.callback=F;this.slot=k;this.layout=z;this.oU=x;this.p$=D;F=XX(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.MJ=new Vk(z.hp,this.oU,F,z.layoutId)};
eD=function(F,k,z,x){this.Ff=F;this.oU=k;this.p$=z;this.Fm=x};
gBI=function(F,k){return ea(F.clientMetadata,"metadata_type_ad_info_ad_metadata")?XX(F.clientMetadata,"metadata_type_ad_info_ad_metadata"):k?{channelId:k.Wz,channelThumbnailUrl:k.profilePicture,channelTitle:k.author,videoTitle:k.title}:(To("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})};
Yen=function(F,k){return ea(F.clientMetadata,"metadata_ad_video_is_listed")?XX(F.clientMetadata,"metadata_ad_video_is_listed"):k?k.isListed:(To("No layout metadata nor AdPlayback specified for ad video isListed"),!1)};
nB5=function(F,k,z,x){Nh.call(this,"player-overlay-layout",F,{},z,x);this.videoAdDurationSeconds=k;this.interactionLoggingClientData=x};
CP=function(F,k,z,x,D,e,C,p){GU.call(this,F,k,z,x);this.ek=D;this.oU=e;this.S=C;this.W=p;this.j=!1;this.G=XX(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
MLp=function(F){if(F.layout.renderingContent){var k;return(k=XX(F.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:k.current}return XX(F.layout.clientMetadata,"metadata_type_player_bytes_callback")};
Aw=function(F,k,z,x,D,e,C,p){GU.call(this,F,k,z,x);this.ek=D;this.oU=e;this.S=C;this.W=p;this.j=!1;this.G=XX(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
LiH=function(){return{Xs:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],v7:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
pP=function(F){if(F.layout.renderingContent){var k;return(k=XX(F.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:k.current}return XX(F.layout.clientMetadata,"metadata_type_player_bytes_callback")};
f4Y=function(F,k,z){Nh.call(this,"ad-message",F,void 0,k,z)};
E3=function(F,k,z,x,D,e){GU.call(this,z,F,k,x);this.ek=D;this.Ff=e};
KiR=function(){return{Xs:["metadata_type_valid_ad_message_renderer"],v7:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
Wi6=function(F,k,z,x){Nh.call(this,"video-interstitial-buttoned-centered",F,k,z,x);this.interactionLoggingClientData=x};
Xo=function(F,k,z,x,D){GU.call(this,F,k,z,x);F=XX(z.clientMetadata,"metadata_type_ad_placement_config");this.MJ=new Vk(z.hp,D,F,z.layoutId)};
mS=function(F,k,z,x,D,e,C,p,E){return iv(z,LiH())||z.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.J(z.renderingContent,qm)!==void 0?new Aw(F,k,z,x,D,e,C,p):iv(z,{Xs:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],v7:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||z.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.J(z.renderingContent,Nm)!==void 0?
new CP(F,k,z,x,D,e,C,p):iv(z,I4n())||z.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.J(z.renderingContent,uv)!==void 0?new xg(F,k,z,x,e):iv(z,KiR())?new E3(k,z,F,x,D,E):iv(z,{Xs:["metadata_type_instream_ad_player_overlay_renderer"],v7:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new Ks(F,k,z,x,D,p):z.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.J(z.renderingContent,wu)!==void 0?new Xo(F,k,z,x,e):null};
F26=function(F,k,z,x,D,e){this.UJ=F;this.ek=k;this.oU=z;this.L=x;this.Y=D;this.Ff=e};
T7=function(F){return!F.oldState.isPlaying()&&F.state.isPlaying()};
lv=function(F,k,z){return F<k?!1:z!=null?z<=k:F<=k+1};
QQ=function(F,k,z,x,D,e,C,p){this.callback=F;this.slot=k;this.layout=z;this.ek=x;this.oU=D;this.Ff=e;this.Fm=C;this.xG=p;this.Y=!1;F=XX(z.clientMetadata,"metadata_type_ad_placement_config");this.MJ=new Vk(z.hp,this.oU,F,z.layoutId)};
hw=function(F,k){F.Y||(F.MJ.wH(k),F.Y=!0)};
koI=function(F,k,z,x,D,e){this.ek=F;this.oU=k;this.z$=z;this.Ff=x;this.Fm=D;this.xG=e};
s3=function(){this.currentState=1;this.Y="unknown"};
ru=function(F,k){if(F.currentState>1){g.yI(new g.Fa("Exit already started",{current:F.currentState}));var z=!1}else z=!0;if(!z)return!1;F.currentState=2;F.Y=k;return!0};
Bw=function(F){if(F.currentState!==2)return!1;F.currentState=3;return!0};
oak=function(F,k){var z=new Map;F=g.l(F);for(var x=F.next();!x.done;x=F.next()){x=x.value;if(x.layoutType==="LAYOUT_TYPE_MEDIA")var D="v";else x.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(D=XX(x.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";z.set(x.layoutId,D);if(D==="u"){var e={};D=k;x=(e.c=x.layoutId,e);D.T.UK("uct",x)}}F=
k.NV();G7={contentCpn:F,Mw:z};x={};z=(x.ct=z.size,x.c=F,x);k.T.UK("acc",z)};
zsM=function(){G7={contentCpn:"",Mw:new Map}};
U3=function(F){var k;return(k=G7.Mw.get(F))!=null?k:"u"};
tw=function(F,k,z){F.T.UK(k,z);xfn(F)};
ivM=function(F){var k=F.layoutId,z=F.Jg;if(F.lK){var x={};tw(F.Eh,"slso",(x.ec=k,x.is=z,x.ctp=U3(k),x))}};
Z6=function(F){var k=F.layoutId,z=F.Jg;if(F.lK){var x={};tw(F.Eh,"slse",(x.ec=k,x.is=z,x.ctp=U3(k),x))}};
Dfn=function(F){var k=F.layoutId,z=F.Jg,x=F.Eh;F.lK&&(F={},tw(x,"sleo",(F.xc=k,F.is=z,F.ctp=U3(k),F)),xfn(x))};
$fn=function(F){var k=F.cpn,z=F.Eh;F=F.Jg;var x=z.NV(),D={};tw(z,"ce",(D.ec=k,D.ia=k!==x,D.r=G7.Mw.has(k),D.is=F,D.ctp=U3(k),D))};
xfn=function(F){if(F.NV()!==G7.contentCpn){var k={};k=(k.c=G7.contentCpn,k);F.T.UK("ccm",k)}};
jcn=function(F){var k=F.cpn,z=F.Eh;F=F.Jg;var x=z.NV(),D={};tw(z,"cx",(D.xc=k,D.ia=k!==x,D.r=G7.Mw.has(k),D.is=F,D.ctp=U3(k),D))};
esR=function(F){this.params=F;this.Y=new Set};
CHx=function(F,k,z){if(!F.Y.has(k)){F.Y.add(k);var x={};F.params.dI.LN(k,Object.assign({},z,(x.p_ac=F.params.adCpn,x.p_isv=F.params.UDG&&F.params.Ci,x)))}};
cw=function(F,k,z){if(vw(F.params.dI.Ff.get(),!0)){var x=z.flush,D={};CHx(F,k,(D.cts=z.currentTimeSec,D.f=x,D))}};
AIa=function(F,k){this.Eh=F;this.Ff=k};
Pw=function(F){var k=[];if(F){F=g.l(Object.entries(F));for(var z=F.next();!z.done;z=F.next()){var x=g.l(z.value);z=x.next().value;x=x.next().value;x!==void 0&&(x=typeof x==="boolean"?""+ +x:(""+x).replace(/[:,=]/g,"_"),k.push(z+"."+x))}}return k.join(";")};
O3=function(F,k,z){k=k===void 0?{}:k;this.errorCode=F;this.details=k;this.severity=z===void 0?0:z};
VQ=function(F){return F===1||F===2};
IN=function(F,k){k=k===void 0?0:k;if(F instanceof O3)return F;F=F&&F instanceof Error?F:Error(""+F);VQ(k)?g.JV(F):g.yI(F);return new O3(k===1?"player.fatalexception":"player.exception",{name:""+F.name,message:""+F.message},k)};
puR=function(F,k){function z(){var x=g.v6.apply(0,arguments);F.removeEventListener("playing",z);k.apply(null,g.r(x))}
F.addEventListener("playing",z)};
Hw=function(){var F=g.yR("yt.player.utils.videoElement_");F||(F=g.Ci("VIDEO"),g.dI("yt.player.utils.videoElement_",F));return F};
aN=function(F){var k=Hw();return!!(k&&k.canPlayType&&k.canPlayType(F))};
bv=function(F){if(/opus/.test(F)&&g.SD&&!tF("38")&&!g.Lg())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(F);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(F);if(/webm/.test(F)&&!wNY())return!1;F==='audio/mp4; codecs="mp4a.40.2"'&&(F='video/mp4; codecs="avc1.4d401f"');return!!aN(F)};
Eak=function(F){try{var k=bv('video/mp4; codecs="avc1.42001E"')||bv('video/webm; codecs="vp9"');return(bv('audio/mp4; codecs="mp4a.40.2"')||bv('audio/webm; codecs="opus"'))&&(k||!F)||aN('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(z){return"html5.missingapi"}};
du=function(){var F=Hw();return!(!F.webkitSupportsPresentationMode||typeof F.webkitSetPresentationMode!=="function")};
Jw=function(){var F=Hw();try{var k=F.muted;F.muted=!k;return F.muted!==k}catch(z){}return!1};
XuR=function(){var F;return((F=navigator.connection)==null?void 0:F.type)||""};
g.yQ=function(){PW.apply(this,arguments)};
RN=function(F,k,z,x,D,e,C){this.sampleRate=F===void 0?0:F;this.numChannels=k===void 0?0:k;this.spatialAudioType=z===void 0?"SPATIAL_AUDIO_TYPE_NONE":z;this.Y=x===void 0?!1:x;this.U=D===void 0?0:D;this.L=e===void 0?0:e;this.audioQuality=C===void 0?"AUDIO_QUALITY_UNKNOWN":C};
nP=function(F,k,z,x,D,e,C,p,E){this.width=F;this.height=k;this.quality=e||gu(F,k);this.qualityOrdinal=g.Yg[this.quality];this.fps=z||0;this.stereoLayout=!D||x!=null&&x!=="UNKNOWN"&&x!=="RECTANGULAR"?0:D;this.projectionType=x?x==="EQUIRECTANGULAR"&&D===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":x:"UNKNOWN";(F=C)||(F=g.Yg[this.quality],F===0?F="Auto":(k=this.fps,z=this.projectionType,F=F.toString()+(z==="EQUIRECTANGULAR"||z==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||z==="MESH"?"s":"p")+(k>55?"60":k>49?"50":
k>39?"48":"")));this.qualityLabel=F;this.Y=p||"";this.primaries=E||""};
gu=function(F,k){var z=Math.max(F,k);F=Math.min(F,k);k=Mm[0];for(var x=0;x<Mm.length;x++){var D=Mm[x],e=g.Yg[D];if(z>=Math.floor(e*16/9)*1.3||F>=e*1.3)return k;k=D}return"tiny"};
KP=function(F,k,z){z=z===void 0?{}:z;this.id=F;this.mimeType=k;z.Yu>0||(z.Yu=16E3);Object.assign(this,z);F=g.l(this.id.split(";"));this.itag=F.next().value;this.Y=F.next().value;this.containerType=LP(k);this.DQ=fP[this.itag]||""};
Ww=function(F){return F.DQ==="9"||F.DQ==="("||F.DQ==="9h"||F.DQ==="(h"};
qq6=function(F){return F.DQ==="H"||F.DQ==="h"};
FW=function(F){return F.DQ==="9h"||F.DQ==="(h"};
N86=function(F){return!!F.J5&&!!F.J5.fairplay&&(F.DQ==="("||F.DQ==="(h"||F.DQ==="A"||F.DQ==="MEAC3")||kb&&!!F.J5&&F.DQ==="1e"};
oD=function(F){return F.DQ==="1"||F.DQ==="1h"||kb&&F.DQ==="1e"};
z$=function(F){return F.DQ==="mac3"||F.DQ==="meac3"||F.DQ==="m"||F.DQ==="i"};
xb=function(F){return F.DQ==="MAC3"||F.DQ==="MEAC3"||F.DQ==="M"||F.DQ==="I"};
g.iK=function(F){return F.containerType===1};
uIx=function(F){return F.DQ==="("||F.DQ==="(h"||F.DQ==="H"||kb&&F.DQ==="1e"};
Dm=function(F){return F.mimeType==="application/x-mpegURL"};
g.$b=function(F,k){return{itag:+F.itag,lmt:k?0:F.lastModified,xtags:F.Y||""}};
wuD=function(F){var k=navigator.mediaCapabilities;if(k==null||!k.decodingInfo||F.DQ==="f")return Promise.resolve();var z={type:F.audio&&F.video?"file":"media-source"};F.video&&(z.video={contentType:F.mimeType,width:F.video.width||640,height:F.video.height||360,bitrate:F.Yu*8||1E6,framerate:F.video.fps||30});F.audio&&(z.audio={contentType:F.mimeType,channels:""+(F.audio.numChannels||2),bitrate:F.Yu*8||128E3,samplerate:F.audio.sampleRate||44100});return k.decodingInfo(z).then(function(x){F.L=x})};
jQ=function(F){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(F)};
eQ=function(F){return/(vp9|vp09|vp8|avc1|av01)/.test(F)};
Cm=function(F){return F.includes("vtt")||F.includes("text/mp4")};
LP=function(F){return F.indexOf("/mp4")>=0?1:F.indexOf("/webm")>=0?2:F.indexOf("/x-flv")>=0?3:F.indexOf("/vtt")>=0?4:0};
At=function(F,k,z,x,D,e){var C=new RN;k in g.Yg||(k="small");k==="light"&&(k="tiny");x&&D?(D=Number(D),x=Number(x)):(D=g.Yg[k],x=Math.round(D*16/9));e=new nP(x,D,0,null,void 0,k,e);F=unescape(F.replace(/&quot;/g,'"'));return new KP(z,F,{audio:C,video:e})};
pm=function(F){var k="id="+F.id;F.video&&(k+=", res="+F.video.qualityLabel);var z,x;return k+", byterate=("+((z=F.Nd)==null?void 0:z.toFixed(0))+", "+((x=F.Yu)==null?void 0:x.toFixed(0))+")"};
EH=function(F,k){return{start:function(z){return F[z]},
end:function(z){return k[z]},
length:F.length}};
mfn=function(F,k,z){for(var x=[],D=[],e=0;e<F.length;e++)x.push(F.start(e)),D.push(F.end(e));x.push(k);D.push(z);x.sort(function(C,p){return C-p});
D.sort(function(C,p){return C-p});
return EH(x,D)};
XW=function(F,k,z){k=k===void 0?",":k;z=z===void 0?F?F.length:0:z;var x=[];if(F)for(z=Math.max(F.length-z,0);z<F.length;z++)x.push(F.start(z).toFixed(3)+"-"+F.end(z).toFixed(3));return x.join(k)};
qi=function(F,k){if(!F)return-1;try{for(var z=0;z<F.length;z++)if(F.start(z)<=k&&F.end(z)>=k)return z}catch(x){}return-1};
Ni=function(F,k){return qi(F,k)>=0};
T8x=function(F,k){if(!F)return NaN;k=qi(F,k);return k>=0?F.start(k):NaN};
uK=function(F,k){if(!F)return NaN;k=qi(F,k);return k>=0?F.end(k):NaN};
wW=function(F){return F&&F.length?F.end(F.length-1):NaN};
mx=function(F,k){F=uK(F,k);return F>=0?F-k:0};
T$=function(F,k,z){for(var x=[],D=[],e=0;e<F.length;e++)F.end(e)<k||F.start(e)>z||(x.push(Math.max(k,F.start(e))-k),D.push(Math.min(z,F.end(e))-k));return EH(x,D)};
lK=function(F,k,z,x){g.uG.call(this);var D=this;this.U3=F;this.start=k;this.end=z;this.isActive=x;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.tQ={error:function(){!D.z4()&&D.isActive&&D.publish("error",D)},
updateend:function(){!D.z4()&&D.isActive&&D.publish("updateend",D)}};
this.U3.Ij(this.tQ);this.qP=this.isActive};
ht=function(F,k,z,x,D,e){g.uG.call(this);var C=this;this.xu=F;this.fn=k;this.id=z;this.containerType=x;this.DQ=D;this.Ci=e;this.QW=this.QY=this.ag=null;this.H9=!1;this.appendWindowStart=this.timestampOffset=0;this.hB=EH([],[]);this.TG=!1;this.Uu=[];this.Ne=QH?[]:void 0;this.j9=function(E){return C.publish(E.type,C)};
var p;if((p=this.xu)==null?0:p.addEventListener)this.xu.addEventListener("updateend",this.j9),this.xu.addEventListener("error",this.j9)};
Mi=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
Lm=function(F,k){this.ez=F;this.Y=k===void 0?!1:k;this.L=!1};
fm=function(F,k,z){z=z===void 0?!1:z;g.S.call(this);this.mediaElement=F;this.IU=k;this.isView=z;this.S=0;this.j=!1;this.W=!0;this.K=0;this.callback=null;this.B=!1;this.IU||(this.fn=this.mediaElement.T$());this.events=new g.yQ(this);g.b(this,this.events);this.U=new Lm(this.IU?window.URL.createObjectURL(this.IU):this.fn.webkitMediaSourceURL,!0);F=this.IU||this.fn;ON(this.events,F,["sourceopen","webkitsourceopen"],this.IFK);ON(this.events,F,["sourceclose","webkitsourceclose"],this.VZ4);this.G={updateend:this.v0}};
lbn=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
Qcp=function(F,k){Km(F)?g.lh(function(){k(F)}):F.callback=k};
hsC=function(F,k,z){if(WH){var x;Fg(F.mediaElement,{l:"mswssb",sr:(x=F.mediaElement.La)==null?void 0:x.XZ()},!1);k.Ij(F.G,F);z.Ij(F.G,F)}F.Y=k;F.L=z;g.b(F,k);g.b(F,z)};
scR=function(F,k,z,x){x=k.mimeType+(x===void 0?"":x);var D=z.mimeType;k=k.DQ;z=z.DQ;var e;F.Qh=(e=F.IU)==null?void 0:e.addSourceBuffer(D);var C;F.PR=x.split(";")[0]==="fakesb"?void 0:(C=F.IU)==null?void 0:C.addSourceBuffer(x);F.fn&&(F.fn.webkitSourceAddId("0",D),F.fn.webkitSourceAddId("1",x));e=new ht(F.Qh,F.fn,"0",LP(D),z,!1);x=new ht(F.PR,F.fn,"1",LP(x),k,!0);hsC(F,e,x)};
kh=function(F){return!!F.Y||!!F.L};
Km=function(F){try{return oQ(F)==="open"}catch(k){return!1}};
oQ=function(F){if(F.IU)return F.IU.readyState;switch(F.fn.webkitSourceState){case F.fn.SOURCE_OPEN:return"open";case F.fn.SOURCE_ENDED:return"ended";default:return"closed"}};
zF=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource};
rIM=function(F){Km(F)&&(F.IU?F.IU.endOfStream():F.fn.webkitSourceEndOfStream(F.fn.EOS_NO_ERROR))};
B89=function(F,k,z,x){if(!F.Y||!F.L)return null;var D=F.Y.isView()?F.Y.U3:F.Y,e=F.L.isView()?F.L.U3:F.L,C=new fm(F.mediaElement,F.IU,!0);C.U=F.U;hsC(C,new lK(D,k,z,x),new lK(e,k,z,x));Km(F)||F.Y.g8(F.Y.Hj());return C};
Goa=function(F){var k;(k=F.Y)==null||k.Sx();var z;(z=F.L)==null||z.Sx();F.W=!1};
xh=function(){var F=this;this.rd=this.UV=cnY;this.promise=new g.Uz(function(k,z){F.UV=k;F.rd=z})};
iN=function(){g.S.call(this);this.j0=!1;this.ez=null;this.G=this.S=!1;this.j=new g.A1;this.La=null;g.b(this,this.j)};
DG=function(F){F=F.UB();return F.length<1?NaN:F.end(F.length-1)};
Uf6=function(F){!F.L&&lbn()&&(F.U?F.U.then(function(){return Uf6(F)}):F.TY()||(F.L=F.MV()))};
t_x=function(F){F.L&&(F.L.dispose(),F.L=void 0)};
Fg=function(F,k,z){var x;((x=F.La)==null?0:x.Jp())&&F.La.UK("rms",k,z===void 0?!1:z)};
Zvx=function(F,k,z){F.isPaused()||F.getCurrentTime()>k||z>10||(F.play(),g.mz(function(){Zvx(F,F.getCurrentTime(),z+1)},500))};
vaY=function(F,k){F.ez&&F.ez.VZ(k)||(F.ez&&F.ez.dispose(),F.ez=k)};
$h=function(F){return mx(F.Ln(),F.getCurrentTime())};
cIR=function(F,k){if(F.gp()===0||F.hasError())return!1;var z=F.getCurrentTime()>0;return k>=0&&(F=F.UB(),F.length||!z)?Ni(F,k):z};
j5=function(F){F.TY()&&(F.La&&F.La.H$("rs_s"),k4&&F.getCurrentTime()>0&&F.seekTo(0),F.gg(),F.load(),vaY(F,null));delete F.U};
e5=function(F){switch(F.Cn()){case 2:return"progressive.net.retryexhausted";case 3:return F=F.SO(),(F==null?0:F.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||PHR&&(F==null?0:F.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
g.CR=function(F,k,z){this.YA=k===void 0?null:k;this.seekSource=z===void 0?null:z;this.state=F||64};
AH=function(F,k,z){z=z===void 0?!1:z;return OvR(F,k.getCurrentTime(),(0,g.VE)(),$h(k),z)};
pR=function(F,k,z,x){if(!(k===F.state&&z===F.YA&&x===F.seekSource||k!==void 0&&(k&128&&!z||k&2&&k&16))){var D;if(D=k)D=k||F.state,D=!!(D&16||D&32);F=new g.CR(k,z,D?x?x:F.seekSource:null)}return F};
EI=function(F,k,z){return pR(F,F.state|k,null,z===void 0?null:z)};
Xg=function(F,k){return pR(F,F.state&~k,null,null)};
qj=function(F,k,z,x){return pR(F,(F.state|k)&~z,null,x===void 0?null:x)};
g.n=function(F,k){return!!(F.state&k)};
g.Nj=function(F,k){return k.state===F.state&&k.YA===F.YA};
uN=function(F){return F.isPlaying()&&!g.n(F,16)&&!g.n(F,32)};
wB=function(F){return g.n(F,128)?-1:g.n(F,2)?0:g.n(F,2048)?3:g.n(F,64)?-1:g.n(F,1)&&!g.n(F,32)?3:g.n(F,8)?1:g.n(F,4)?2:-1};
TF=function(F,k,z,x,D,e,C,p,E,X,q,N,u,w,m,h,B){g.S.call(this);var U=this;this.Zm=F;this.slot=k;this.layout=z;this.oU=x;this.Fm=D;this.xG=e;this.ek=C;this.yz=p;this.z$=E;this.Ty=X;this.position=N;this.S=u;this.Ff=w;this.Ar=m;this.Kn=h;this.context=B;this.Q_=!0;this.W=!1;this.KN="not_rendering";this.L=!1;this.U=new s3;F=XX(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.MJ=new Vk(z.hp,this.oU,F,z.layoutId);var v;F=((v=mW(this))==null?void 0:v.progressCommands)||[];this.j=new cL9(E,
F,z.layoutId,function(){return U.KE()});
this.Y=new esR({adCpn:this.layout.layoutId,dI:B.dI,UDG:this.Ar,Ci:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})};
lN=function(F){return{layoutId:F.rX(),Jg:F.Ar,Eh:F.xG.get(),lK:F.g9()}};
QN=function(F,k){return k.layoutId!==F.layout.layoutId?(F.Zm.hh(F.slot,k,new pE("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+F.layout.layoutId+("and LayoutType: "+F.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
hH=function(F){F.KN="rendering_start_requested";F.Ty(-1)};
mW=function(F){return XX(F.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
V_Y=function(F){To("Received layout exit signal when not in layout exit flow.",F.slot,F.layout)};
Ibk=function(F){var k;return((k=sI(F.xG.get(),2))==null?void 0:k.clientPlaybackNonce)||""};
rB=function(F,k){switch(k){case "normal":F.wH("complete");break;case "skipped":F.wH("skip");break;case "abandoned":dG(F.MJ,"impression")&&F.wH("abandon")}};
BE=function(F,k){F.W||(k=new g.lH(k.state,new g.CR),F.W=!0);return k};
GF=function(F,k){T7(k)?F.Ty(1):g.hI(k,4)&&!g.hI(k,2)&&F.Er();Qo(k,4)<0&&!(Qo(k,2)<0)&&F.mZ()};
HvM=function(F){F.position===0&&(F.yz.get(),F=XX(F.layout.clientMetadata,"metadata_type_ad_placement_config").kind,F={adBreakType:UI(F)},nl("ad_bl"),g.MF(F))};
tH=function(F,k){S9(F.MJ,k,!F.L)};
Sqa=function(F){var k;return(((k=mW(F))==null?void 0:k.progressCommands)||[]).findIndex(function(z){return!!g.J(z==null?void 0:z.command,abn)})!==-1};
ZG=function(F,k){var z=XX(F.clientMetadata,"metadata_type_eligible_for_ssap");return z===void 0?(To("Expected SSAP eligibility in PlayerBytes factory",F),!1):k.g9(z)};
vE=function(F,k){if(!zU(k.get(),"html5_ssap_pass_transition_reason"))return 3;switch(F){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return To("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return To("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:F}),3;default:ji(F,"unknown layoutExitReason")}};
bvR=function(F){To("getExitReason: unexpected reason",void 0,void 0,{reason:F})};
cE=function(F,k){if(zU(k.get(),"html5_ssap_pass_transition_reason"))switch(F){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return bvR(F),"abandoned";case 3:case 1:return bvR(F),"error";default:ji(F,"unexpected transition reason")}else switch(F){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return To("getExitReason: unexpected reason",void 0,void 0,{reason:F}),"error";default:ji(F,"unexpected transition reason")}};
PE=function(F,k,z){fl(F,z)||WC(F,k,z);fl(F,"video_to_ad")||WC(F,k,"video_to_ad");fl(F,"ad_to_video")||WC(F,k,"ad_to_video");fl(F,"ad_to_ad")||WC(F,k,"ad_to_ad")};
OI=function(F,k,z,x,D,e,C,p,E,X,q,N,u,w,m,h,B,U){TF.call(this,F,k,z,x,D,e,C,p,X,q,N,u,w,m,h,B,U);var v=this;this.sJ=E;this.uC=N;this.TN=!0;this.jA=this.Sj=0;this.B9=rP(function(){ivM(lN(v));v.Zm.sH(v.slot,v.layout)});
this.yE=rP(function(){Dfn(lN(v));v.KN!=="rendering_stop_requested"&&v.uC(v);v.layoutExitReason?v.Zm.XI(v.slot,v.layout,v.layoutExitReason):V_Y(v)});
this.Dj=new g.H4(200);this.Dj.listen("tick",function(){v.xj()});
g.b(this,this.Dj)};
IQ=function(F){F.jA=Date.now();VN(F,F.Sj);F.Dj.start()};
dfY=function(F){F.Sj=F.KE();F.gQ(F.Sj/1E3,!0);VN(F,F.Sj)};
VN=function(F,k){k={current:k/1E3,duration:F.KE()/1E3};F.sJ.get().Eg("onAdPlaybackProgress",k)};
HE=function(F){OI.call(this,F.Zm,F.slot,F.Jh,F.oU,F.Fm,F.xG,F.ek,F.yz,F.sJ,F.z$,F.Ty,F.uC,F.Vt,F.Wu,F.Ff,F.Ar,F.Kn,F.context)};
aQ=function(F){OI.call(this,F.Zm,F.slot,F.Jh,F.oU,F.Fm,F.xG,F.ek,F.yz,F.sJ,F.z$,F.Ty,F.uC,F.Vt,F.Wu,F.Ff,F.Ar,F.Kn,F.context)};
S5=function(){aQ.apply(this,arguments)};
JIp=function(F){return ZG(F.slot,F.Ff.get())?new S5(F):new HE(F)};
JH=function(F){TF.call(this,F.callback,F.slot,F.Jh,F.oU,F.Fm,F.xG,F.ek,F.yz,F.z$,F.Ty,F.uC,F.Vt,F.Wu,F.Ff,F.Ar,F.Kn,F.context);var k=this;this.adCpn="";this.LL=this.ZZ=0;this.B9=rP(function(){ivM(lN(k));k.Zm.sH(k.slot,k.layout)});
this.yE=rP(function(){Dfn(lN(k));k.KN!=="rendering_stop_requested"&&k.uC(k);k.layoutExitReason?k.Zm.XI(k.slot,k.layout,k.layoutExitReason):V_Y(k)});
this.DF=F.DF;this.DR=F.DR;this.Jl=F.Jl;this.sJ=F.sJ;this.N0=F.N0;this.uC=F.uC;if(!this.g9()){zU(this.Ff.get(),"html5_disable_media_load_timeout")||(this.ZV=new g.KS(function(){k.ib("load_timeout",new pE("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4));
F=bN(this.Ff.get());var z=dB(this.Ff.get());F&&z&&(this.Y0=new g.KS(function(){var x=XX(k.layout.clientMetadata,"metadata_type_preload_player_vars");x&&k.DR.get().T.preloadVideoByPlayerVars(x,2,300)}))}};
RsD=function(F,k){var z=XX(k.clientMetadata,"metadata_type_ad_video_id"),x=XX(k.clientMetadata,"metadata_type_legacy_info_card_vast_extension");z&&x&&F.N0.get().T.C().yh.add(z,{Ab:x});(k=XX(k.clientMetadata,"metadata_type_sodar_extension_data"))&&gZI(F.DF.get(),k);yII(F.ek.get(),!1)};
gaY=function(F){yII(F.ek.get(),!0);var k;((k=F.shrunkenPlayerBytesConfig)==null?0:k.shouldRequestShrunkenPlayerBytes)&&F.ek.get().oV(!1)};
yN=function(){JH.apply(this,arguments)};
RQ=function(){yN.apply(this,arguments)};
YqR=function(F){return JIp(Object.assign({},F,{Zm:F.callback,Ty:function(){}}))};
naR=function(F){return new JH(Object.assign({},F,{Ty:function(k){F.sJ.get().Eg("onAdIntroStateChange",k)}}))};
M_C=function(F){function k(z){F.sJ.get().m6(z)}
return ZG(F.slot,F.Ff.get())?new RQ(Object.assign({},F,{Ty:k})):new JH(Object.assign({},F,{Ty:k}))};
gB=function(F){for(var k=F.Jh,z=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],x=g.l(Iv()),D=x.next();!D.done;D=x.next())z.push(D.value);if(iv(k,{Xs:z,v7:["LAYOUT_TYPE_MEDIA_BREAK"]}))return YqR(F);k=F.Jh;z=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];x=g.l(Iv());for(D=x.next();!D.done;D=x.next())z.push(D.value);if(iv(k,{Xs:z,v7:["LAYOUT_TYPE_MEDIA"]}))return ea(F.Jh.clientMetadata,"metadata_type_ad_intro")?naR(F):M_C(F)};
fbC=function(F){var k=XX(F.clientMetadata,"metadata_type_ad_placement_config").kind,z=XX(F.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:F.layoutId,adType:L2a(z),adBreakType:UI(k)}};
UI=function(F){switch(F){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}};
L2a=function(F){switch(F){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}};
K2H=function(F){try{return new Yh(F.zl,F.slot,F.layout,F.GA,F.c8,F.xG,F.jr,F.DR,F.d3,F.ek,F.CG4,F)}catch(k){}};
Yh=function(F,k,z,x,D,e,C,p,E,X,q,N){g.S.call(this);this.zl=F;this.slot=k;this.layout=z;this.GA=x;this.c8=D;this.xG=e;this.jr=C;this.DR=p;this.d3=E;this.ek=X;this.params=N;this.Q_=!0;F=gB(q);if(!F)throw Error("Invalid params for sublayout");this.CJ=F};
W2C=function(){this.Y=1;this.L=new s3};
nR=function(F,k,z,x,D,e,C,p,E,X,q,N,u){g.S.call(this);this.callback=F;this.xG=k;this.jr=z;this.DR=x;this.ek=D;this.yz=e;this.kq=C;this.slot=p;this.layout=E;this.GA=X;this.p$=q;this.d3=N;this.Ff=u;this.Q_=!0;this.fU=!1;this.L$=[];this.Pt=-1;this.Ng=!1;this.Cc=new W2C};
F_H=function(F){var k;return(k=F.layout.Ve)!=null?k:XX(F.layout.clientMetadata,"metadata_type_sub_layouts")};
Mj=function(F){return{Eh:F.xG.get(),Jg:!1,lK:F.g9()}};
kNR=function(F,k,z){if(F.HO()===F.L$.length-1){var x,D;To("Unexpected skip requested during the last sublayout",(x=F.YY())==null?void 0:x.ND(),(D=F.YY())==null?void 0:D.qJ(),{requestingSlot:k,requestingLayout:z})}};
oxx=function(F,k,z){return z.layoutId!==LR(F,k,z)?(To("onSkipRequested for a PlayerBytes layout that is not currently active",F.ND(),F.qJ()),!1):!0};
zhn=function(F){F.HO()===F.L$.length-1&&To("Unexpected skip with target requested during the last sublayout")};
xFD=function(F,k,z){return z.renderingContent===void 0&&z.layoutId!==LR(F,k,z)?(To("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",F.ND(),F.qJ(),{requestingSlot:k,requestingLayout:z}),!1):!0};
iln=function(F,k,z,x){var D=XX(k.qJ().clientMetadata,"metadata_type_ad_pod_skip_target");if(D&&D>0&&D<F.L$.length){a:{for(var e=D;e<F.L$.length;){if(D===XX(F.L$[e].qJ().clientMetadata,"metadata_type_ad_pod_skip_index")){F=e;break a}e++}F=void 0}if(F===void 0)To("Skip-to-index was requested but target index was not found",k.ND(),k.qJ(),{requestingSlot:z,requestingLayout:x});else return F}else To("Invalid ad pod skip target index",k.ND(),k.qJ(),{requestingSlot:z,requestingLayout:x})};
LR=function(F,k,z){var x=XX(F.qJ().clientMetadata,"metadata_type_linked_in_player_layout_id");return x?x:(To("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",F.ND(),F.qJ(),{requestingSlot:k,requestingLayout:z}),null)};
$FY=function(F,k,z,x){DFD(F,k,z,"skipped",function(){fR(F,x)})};
DFD=function(F,k,z,x,D){if(!F.Ng){var e=F.YY();if(e){e.qJ().layoutId!==z.layoutId&&To("SubLayout mismatch in exitSubLayout",k,z,{exitingSubLayout:z.layoutId,activeSubLayout:e.qJ().layoutId});F.Ng=!0;e.Qf(e.qJ(),x);e=Object.assign({},Mj(F),{layoutId:z.layoutId,layoutExitReason:x});var C=e.layoutId,p=e.layoutExitReason;if(e.lK){var E={};tw(e.Eh,"wrsx",(E.xc=C,E.ler=p,E.ctp=U3(C),E))}F.IW(k,z,x);F.Ng=!1;F.x6?(F.x6(),F.g9()||KR(F.yz.get())):D()}else To("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",
k,z)}};
fR=function(F,k){if(F.HO()===F.L$.length-1)F.Pt++,WE(F.p$,F.layout,"normal"),F.g9()||KR(F.yz.get());else a:{if(F.HO()===-1&&(F.callback.sH(F.slot,F.layout),k>0)){To("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",F.slot,F.layout,{indexToPlay:k,layoutId:F.layout.layoutId});break a}F.Pt=k;k=F.YY();if(F.HO()>0&&!F.g9()){var z=F.yz.get();z.L=!1;var x={};z.Y&&z.videoId&&(x.cttAuthInfo={token:z.Y,videoId:z.videoId});Ll("ad_to_ad",x)}F.KT(k)}};
FZ=function(F){nR.call(this,F.zl,F.xG,F.jr,F.DR,F.ek,F.yz,F.kq,F.slot,F.layout,F.GA,F.p$,F.d3,F.Ff)};
jHn=function(F){(F=F.YY())&&F.aF()};
kj=function(F){nR.call(this,F.zl,F.xG,F.jr,F.DR,F.ek,F.yz,F.kq,F.slot,F.layout,F.GA,F.p$,F.d3,F.Ff);this.oI=void 0};
eh9=function(F,k){F.V$()&&!Bw(F.Cc.L)||F.callback.XI(F.slot,F.layout,k)};
oo=function(F){return zU(F.Ff.get(),"html5_ssap_pass_transition_reason")};
C0D=function(F,k,z){k.iK().currentState<2&&(z=cE(z,F.Ff),k.Qf(k.qJ(),z));z=k.iK().Y;F.IW(F.slot,k.qJ(),z)};
AZ6=function(F,k){if(F.Cc.L.currentState<2){var z=cE(k,F.Ff);z==="error"?F.callback.hh(F.slot,F.layout,new pE("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:k},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):WE(F.p$,F.layout,z)}};
zz=function(F,k,z){k.iK().currentState>=2||(k.Qf(k.qJ(),z),Bw(k.iK())&&(He(F.kq,F.slot,k.qJ(),z),F.oI=void 0))};
pCp=function(F,k){F.Cc.Y===2&&k!==F.NV()&&To("onClipEntered: unknown cpn",F.slot,F.layout,{cpn:k})};
Exn=function(F,k){var z=F.YY();if(z){var x=z.qJ().layoutId,D=F.HO()+1;F.V$()?zz(F,z,k):z.Qf(z.qJ(),k);D>=0&&D<F.L$.length?(z=F.L$[D].qJ().layoutId,oo(F)&&(["normal","skipped"].includes(k)||To("exitActiveLayoutAndPlayNext: unexpected exit reason",F.slot,F.layout,{exitReason:k})),F.jr.get().finishSegmentByCpn(x,z,vE(k,F.Ff))):D===F.L$.length?WE(F.p$,F.layout,"normal"):To("unexpected index",F.slot,F.layout,{index:D})}else To("exitActiveLayoutAndPlayNext: no active adapter",F.slot,F.layout)};
XCn=function(F,k){To(k+": undefined adapter",F.slot,F.layout)};
qSC=function(F){return ZG(F.slot,F.Ff.get())?new kj(F):new FZ(F)};
xj=function(F,k,z,x,D,e,C){g.S.call(this);this.callback=F;this.DR=k;this.ek=z;this.yz=x;this.CJ=D;this.d3=e;this.Ff=C;this.Q_=!0;this.fU=!1};
NEI=function(F,k,z,x,D,e,C,p,E,X,q,N,u,w,m,h,B,U,v,P,I,d){function W(){var Fx=gB(Object.assign({},$Y,{callback:{sH:F.sH.bind(F),XI:F.XI.bind(F),fQ:function(){},
hh:F.hh.bind(F)},slot:z,Jh:x,uC:function(){WE(C,x,"normal")},
Vt:0,Wu:1,Ar:!0}));return Fx?new xj(F,q,u,m,Fx,D,v):Fx}
function M(){var Fx=Object.assign({},$Y,{callback:{sH:function(){},
XI:function(){},
fQ:function(){return void WE(C,x,"normal")},
hh:function(){}},
slot:z,Jh:x,uC:function(){},
Vt:0,Wu:1,Ar:!0});return K2H({zl:F,slot:z,layout:x,GA:e,c8:C,xG:N,jr:P,DR:q,d3:D,ek:u,CG4:Fx,context:I})}
function xY(){var Fx,y=(Fx=x.Ve)!=null?Fx:XX(x.clientMetadata,"metadata_type_sub_layouts");Fx=qSC({zl:F,xG:N,jr:P,DR:q,ek:u,yz:m,kq:k,slot:z,layout:x,GA:e,p$:C,d3:D,Ff:v});for(var K=[],Q={R0:0};Q.R0<y.length;Q={R0:Q.R0},Q.R0++){var R=gB(Object.assign({},$Y,{callback:{sH:Fx.Ok.bind(Fx),XI:Fx.vE.bind(Fx),fQ:Fx.fQ.bind(Fx),hh:Fx.Kr.bind(Fx)},slot:z,Jh:y[Q.R0],uC:function(Jn){return function(s$){s$.Qf(y[Jn.R0],"normal")}}(Q),
Vt:Q.R0,Wu:y.length,Ar:!1}));if(!R)return;K.push(R)}Fx.L$=K;return Fx}
var $Y={oU:p,Fm:E,DF:X,DR:q,xG:N,ek:u,Jl:w,yz:m,sJ:h,z$:B,N0:U,Ff:v,context:I,Kn:d};p=iv(x,{Xs:["metadata_type_sub_layouts"],v7:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||x.Ve!==void 0&&x.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";E=ZG(z,v.get())&&iv(x,{Xs:[],v7:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});X=iv(x,{Xs:[],v7:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(p)return xY();if(E)return M();if(X)return W()};
ic=function(F,k,z,x,D,e,C,p,E,X){this.callback=F;this.slot=k;this.layout=z;this.xG=x;this.jr=D;this.O3=e;this.ek=C;this.MJ=p;this.oU=E;this.W=X;this.driftRecoveryMs=XX(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.j=XX(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0};
wCn=function(F){var k=XX(F.layout.clientMetadata,"metadata_type_layout_enter_ms"),z=XX(F.layout.clientMetadata,"metadata_type_layout_exit_ms");F=F.O3.get();k=uDD(F.U,k,z);return Math.min(z,k!==null?k:Infinity)};
jG=function(F,k){var z;Dk(F.oU.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(z=F.xG.get().Qw)==null?void 0:z.clientPlaybackNonce,adClientData:F.layout.V2.adClientDataEntry},k)})};
eG=function(F,k,z,x,D,e,C,p,E,X,q){ic.call(this,F,k,z,x,D,e,C,p,E,X);this.U=q;this.L=this.Y=null;F=g.l(this.U);for(k=F.next();!k.done;k=F.next())k=k.value,ea(k.qJ().clientMetadata,"metadata_type_survey_overlay")&&(this.L=k.qJ().layoutId)};
TEY=function(F,k){var z=mFI(F,k);z||To("Expected subLRA found by layout ID",F.slot,F.layout,{layoutId:k});F.Y={Ii:z};z?z.startRendering(z.qJ()):k===F.L&&To("Failed to find rendering adapter for survey media layout",F.slot,F.layout,{surveyMediaLayoutId:k})};
mFI=function(F,k){return k==null?null:F.U.find(function(z){return z.qJ().layoutId===k})||null};
lQx=function(F,k,z,x,D,e,C,p,E,X){var q=D-x,N=ea(k.clientMetadata,"metadata_type_survey_overlay"),u,w=((u=F.fulfilledLayout||XX(F.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:XX(u.clientMetadata,"metadata_type_ssdai_ads_config"))||"";if(!q)return C.ww(z,w,2,e,x,D,F.slotId),Cp(X,"ads_iraot","sid."+F.slotId+";enterMs."+x+";exitMs."+D+";hso."+N+";vid."+z.video_id),null;q=C.aK(z,w,2,e,x,D,F.slotId);Cp(X,"ads_atct","sid."+F.slotId+";enterMs."+x+";exitMs."+D+";hso."+N+";vid."+z.video_id);
if(!q)return To("Unexpected failure to add to playback timeline",F,k,E()),null;F=F.slotId;k=k.layoutId;q?(p.Y.has(q)&&To("Unexpected remap of timeline playback"),p.Y.set(q,{slotId:F,layoutId:k})):To("Invalid timeline playback ID");x+e>D&&C.zi(q,D-x);return q};
QHx=function(F,k,z){var x=XX(k.clientMetadata,"metadata_type_sodar_extension_data");if(x)try{gZI(z,x)}catch(D){To("Unexpected error when loading Sodar",F,k,{error:D})}};
hhp=function(F,k,z,x,D,e,C){Aj(F,k,new g.lH(z,new g.CR),x,D,C,!1,e)};
Aj=function(F,k,z,x,D,e,C,p){C=C===void 0?!0:C;T7(z)&&lv(D,0,null)&&(!dG(F,"impression")&&p&&p(),F.wH("impression"));dG(F,"impression")&&(g.hI(z,4)&&!g.hI(z,2)&&F.Ui("pause"),Qo(z,4)<0&&!(Qo(z,2)<0)&&F.Ui("resume"),g.hI(z,16)&&D>=.5&&F.Ui("seek"),C&&g.hI(z,2)&&pp(F,z.state,k,x,D,e))};
pp=function(F,k,z,x,D,e,C,p){dG(F,"impression")&&(e?(e=D-x,e=e>=-1&&e<=2):e=Math.abs(x-D)<=1,E9(F,k,e?x:D,z,x,C,p&&e),e&&F.wH("complete"))};
E9=function(F,k,z,x,D,e,C){bX(F,z*1E3,C);D<=0||z<=0||(k==null?0:g.n(k,16))||(k==null?0:g.n(k,32))||(lv(z,D*.25,x)&&(e&&!dG(F,"first_quartile")&&e("first"),F.wH("first_quartile")),lv(z,D*.5,x)&&(e&&!dG(F,"midpoint")&&e("second"),F.wH("midpoint")),lv(z,D*.75,x)&&(e&&!dG(F,"third_quartile")&&e("third"),F.wH("third_quartile")))};
sHx=function(F,k){dG(F,"impression")&&F.Ui(k?"fullscreen":"end_fullscreen")};
rZx=function(F){dG(F,"impression")&&F.Ui("clickthrough")};
BEp=function(F){F.Ui("active_view_measurable")};
GNx=function(F){dG(F,"impression")&&!dG(F,"seek")&&F.Ui("active_view_fully_viewable_audible_half_duration")};
UFx=function(F){dG(F,"impression")&&!dG(F,"seek")&&F.Ui("active_view_viewable")};
tnI=function(F){dG(F,"impression")&&!dG(F,"seek")&&F.Ui("audio_audible")};
Zln=function(F){dG(F,"impression")&&!dG(F,"seek")&&F.Ui("audio_measurable")};
vxD=function(F,k,z,x,D,e,C,p,E,X,q,N){this.callback=F;this.slot=k;this.layout=z;this.jr=x;this.MJ=D;this.ek=e;this.ym=C;this.Fm=p;this.DF=E;this.Ff=X;this.oU=q;this.xG=N;this.TN=!0;this.KJ=this.KN=null;this.adCpn=void 0;this.Y=!1};
cZn=function(F,k,z){var x;Cp(F.oU.get(),"ads_qua","cpn."+XX(F.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((x=sI(F.xG.get(),2))==null?void 0:x.clientPlaybackNonce)+";qt."+k+";clr."+z)};
P0k=function(F,k){var z,x;Cp(F.oU.get(),"ads_imp","cpn."+XX(F.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((z=sI(F.xG.get(),2))==null?void 0:z.clientPlaybackNonce)+";clr."+k+";skp."+!!g.J((x=XX(F.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:x.skipOrPreviewRenderer,XZ))};
qL=function(F){return{enterMs:XX(F.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:XX(F.clientMetadata,"metadata_type_layout_exit_ms")}};
NL=function(F,k,z,x,D,e,C,p,E,X,q,N,u,w){ic.call(this,F,k,z,x,D,C,p,E,X,N);this.ym=e;this.DF=q;this.Fm=u;this.Ff=w;this.KJ=this.KN=null};
Ola=function(F,k){var z;Cp(F.oU.get(),"ads_imp","acpn."+((z=sI(F.xG.get(),2))==null?void 0:z.clientPlaybackNonce)+";clr."+k)};
Vn9=function(F,k,z){var x;Cp(F.oU.get(),"ads_qua","cpn."+XX(F.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((x=sI(F.xG.get(),2))==null?void 0:x.clientPlaybackNonce)+";qt."+k+";clr."+z)};
uc=function(F,k,z,x,D,e,C,p,E,X,q,N,u,w,m,h,B,U,v,P,I){this.d3=F;this.GA=k;this.p$=z;this.xG=x;this.jr=D;this.ek=e;this.oU=C;this.ym=p;this.O3=E;this.Fm=X;this.DF=q;this.DR=N;this.Jl=u;this.yz=w;this.sJ=m;this.z$=h;this.N0=B;this.Ff=U;this.Y=v;this.context=P;this.Kn=I};
wA=function(F,k,z,x,D,e,C,p,E,X,q,N,u,w,m,h,B,U){this.d3=F;this.GA=k;this.p$=z;this.oU=x;this.Fm=D;this.DF=e;this.DR=C;this.xG=p;this.ek=E;this.Jl=X;this.yz=q;this.sJ=N;this.z$=u;this.N0=w;this.Ff=m;this.jr=h;this.context=B;this.Kn=U};
IQM=function(F,k,z,x){Nh.call(this,"survey-interstitial",F,k,z,x)};
mh=function(F,k,z,x,D){GU.call(this,z,F,k,x);this.oU=D;F=XX(k.clientMetadata,"metadata_type_ad_placement_config");this.MJ=new Vk(k.hp,D,F,k.layoutId)};
Tz=function(F){return Math.round(F.width)+"x"+Math.round(F.height)};
Q8=function(F,k,z){z=z===void 0?lc:z;z.width<lc.width&&(z=lc);if(F.width<z.width||F.height<z.height)return{u9:3,xt:501,errorMessage:"ad("+Tz(z)+") larger than container("+Tz(F)+")."};if(z.width*z.height>F.width*F.height*.2)return{u9:3,xt:501,errorMessage:"ad("+Tz(z)+") to container("+Tz(F)+") ratio exceeds limit."};if(z.height>F.height/3-k)return{u9:3,xt:501,errorMessage:"ad("+Tz(z)+") covers container("+Tz(F)+") center."}};
Hl5=function(F,k){var z=XX(F.clientMetadata,"metadata_type_ad_placement_config");return new Vk(F.hp,k,z,F.layoutId)};
hj=function(F){return XX(F.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")};
s9=function(F,k,z,x){Nh.call(this,"invideo-overlay",F,k,z,x);this.interactionLoggingClientData=x};
rA=function(F,k,z,x,D,e,C,p,E,X,q,N){GU.call(this,e,F,k,D);this.oU=z;this.j=C;this.ek=p;this.z$=E;this.Ff=X;this.S=q;this.W=N;this.MJ=Hl5(k,z)};
aQn=function(){var F=["metadata_type_invideo_overlay_ad_renderer"];Iv().forEach(function(k){F.push(k)});
return{Xs:F,v7:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
B7=function(F,k,z,x,D,e,C,p,E,X,q,N,u){GU.call(this,e,F,k,D);this.oU=z;this.j=C;this.B=p;this.ek=E;this.z$=X;this.Ff=q;this.S=N;this.W=u;this.MJ=Hl5(k,z)};
SSx=function(){for(var F=["metadata_type_invideo_overlay_ad_renderer"],k=g.l(Iv()),z=k.next();!z.done;z=k.next())F.push(z.value);return{Xs:F,v7:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
Gz=function(F){this.ek=F;this.Y=!1};
bl6=function(F,k,z){Nh.call(this,"survey",F,{},k,z)};
U9=function(F,k,z,x,D,e,C){GU.call(this,z,F,k,x);this.j=D;this.ek=e;this.Ff=C};
dFR=function(F,k,z,x,D,e,C,p,E,X){this.UJ=F;this.ek=k;this.oU=z;this.j=x;this.Fm=D;this.L=e;this.U=C;this.z$=p;this.Ff=E;this.Y=X};
JZI=function(F,k,z,x,D,e,C,p,E,X){this.UJ=F;this.ek=k;this.oU=z;this.j=x;this.Fm=D;this.L=e;this.U=C;this.z$=p;this.Ff=E;this.Y=X};
tj=function(F,k,z,x,D,e,C,p,E,X){Aw.call(this,F,k,z,x,D,e,C,E);this.kF=p;this.xG=X};
yZx=function(){var F=LiH();F.Xs.push("metadata_type_ad_info_ad_metadata");return F};
Rha=function(F,k,z,x,D,e,C){this.UJ=F;this.ek=k;this.oU=z;this.L=x;this.kF=D;this.Y=e;this.xG=C};
gxk=function(F,k,z,x,D,e,C,p){this.UJ=F;this.ek=k;this.oU=z;this.L=x;this.kF=D;this.Y=e;this.Ff=C;this.xG=p};
Zk=function(F,k){this.slotId=k;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=F(this.triggerType)};
v7=function(F,k){this.adPodIndex=F;this.Y=k.length;this.adBreakLengthSeconds=k.reduce(function(x,D){return x+D},0);
var z=0;for(F+=1;F<k.length;F++)z+=k[F];this.adBreakRemainingLengthSeconds=z};
c7=function(F,k,z){this.uv=k;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=z||F(this.triggerType)};
P7=function(F,k,z){this.Y=k;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=z||F(this.triggerType)};
O9=function(F,k,z,x){this.uv=k;this.visible=z;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=x||F(this.triggerType)};
YSp=function(F){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=F(this.triggerType)};
nx9=function(F){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=F(this.triggerType)};
V8=function(F,k,z){this.triggeringLayoutId=k;this.slotId=z;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=F(this.triggerType)};
Io=function(F,k,z){this.triggeringLayoutId=k;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=z||F(this.triggerType)};
H7=function(F,k,z,x){this.triggeringLayoutId=k;this.Y=z;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=x||F(this.triggerType)};
Mnx=function(F){switch(F){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new L("Invalid layout exit reason: "+
F)}};
ao=function(F,k,z){this.triggeringLayoutId=k;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=z||F(this.triggerType)};
SG=function(F,k){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=k||F(this.triggerType)};
bc=function(F,k){this.breakDurationMs=F;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED";this.triggerId=k||""};
dA=function(F,k){this.breakDurationMs=F;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED";this.triggerId=k||""};
Jj=function(F,k){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=k||F(this.triggerType)};
L_9=function(F){this.triggerId=F;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
fQx=function(F,k,z,x,D){this.uv=k;this.Y=z;this.visible=x;this.layoutId=D;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=F(this.triggerType)};
y8=function(F,k,z,x,D){this.uv=k;this.Y=z;this.visible=x;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=D||F(this.triggerType)};
Ro=function(F,k){this.breakDurationMs=F;this.triggerType="TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION";this.triggerId=k||""};
K_Y=function(F,k,z){this.uv=k;this.Y=z;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=F(this.triggerType)};
gA=function(F,k,z,x,D){this.Y=k;this.slotType=z;this.layoutType=x;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=D||F(this.triggerType)};
Yj=function(F,k){this.Y=k;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=F(this.triggerType)};
np=function(F,k,z){this.layoutId=k;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=z||F(this.triggerType)};
ML=function(F,k,z){this.Y=k;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=z||F(this.triggerType)};
nZx=function(F,k){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=k;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=F(this.triggerType)};
W_5=function(F,k){this.Y=F;this.index=k};
Fra=function(F){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=F(this.triggerType)};
Lp=function(F,k){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=k||F(this.triggerType)};
kD9=function(F,k,z){this.layoutId=k;this.offsetMs=z;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=F(this.triggerType)};
o_x=function(F,k){this.layoutId=k;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=F(this.triggerType)};
zKp=function(F,k,z){this.layoutId=k;this.offsetMs=z;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=F(this.triggerType)};
fp=function(F,k,z){this.triggeringLayoutId=k;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=z||F(this.triggerType)};
Kp=function(F,k,z){this.triggeringSlotId=k;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=z||F(this.triggerType)};
W7=function(F,k,z){this.triggeringSlotId=k;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=z||F(this.triggerType)};
F4=function(F,k){this.triggeringSlotId=k;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=F(this.triggerType)};
k8=function(F,k){this.triggeringSlotId=k;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=F(this.triggerType)};
oO=function(F,k,z){this.triggeringSlotId=k;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=z||F(this.triggerType)};
zJ=function(F,k){this.triggeringSlotId=k;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=F(this.triggerType)};
x8=function(F,k,z){this.triggeringLayoutId=k;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=z||F(this.triggerType)};
iB=function(F,k,z,x){this.durationMs=k;this.triggeringLayoutId=z;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=x||F(this.triggerType)};
D$=function(F,k,z,x){this.category=F;this.trigger=k;this.slot=z;this.layout=x};
$8=function(F){return(F==null?void 0:F.layoutId)!=null&&(F==null?void 0:F.layoutType)!=null};
xW9=function(F){if(!$8(F.adLayoutMetadata))return!1;F=F.renderingContent;return g.J(F,j7)||g.J(F,e7)||g.J(F,CG)||g.J(F,A8)||g.J(F,pG)||g.J(F,Ej)?!0:!1};
i1n=function(F){return(F==null?void 0:F.durationMs)!=null&&(F==null?void 0:F.durationMs)>0};
X4=function(F){return!!(F.sUp&&F.slot&&F.layout)};
qZ=function(F){var k,z=(k=F.config)==null?void 0:k.adPlacementConfig;F=F.renderer;return!(!z||z.kind==null||!F)};
DWp=function(F){if(!$8(F.adLayoutMetadata))return!1;F=F.renderingContent;return g.J(F,uv)||g.J(F,wu)||g.J(F,qm)||g.J(F,Nm)?!0:!1};
NZ=function(F){return F.playerVars!==void 0&&F.pings!==void 0&&F.externalVideoId!==void 0};
h8=function(F){if(!$8(F.adLayoutMetadata))return!1;F=F.renderingContent;var k=g.J(F,uB);return k?w0(k):(k=g.J(F,mE))?NZ(k):(k=g.J(F,TJ))?k.playerVars!==void 0:(k=g.J(F,uv))?k.durationMilliseconds!==void 0:g.J(F,lB)||g.J(F,QS)?!0:!1};
w0=function(F){F=(F.sequentialLayouts||[]).map(function(k){return g.J(k,vQ)});
return F.length>0&&F.every(h8)};
PQ=function(F){return $8(F.adLayoutMetadata)?(F=g.J(F.renderingContent,cQ))&&F.pings?!0:!1:!1};
pZC=function(F){if(!$8(F.adLayoutMetadata))return!1;if(g.J(F.renderingContent,$WM)||g.J(F.renderingContent,jdD))return!0;var k=g.J(F.renderingContent,Oj);return g.J(F.renderingContent,VS)||g.J(k==null?void 0:k.sidePanel,eKa)||g.J(k==null?void 0:k.sidePanel,CZx)||g.J(k==null?void 0:k.sidePanel,Ac6)?!0:!1};
uTn=function(F){var k;(k=!F)||(k=F.adSlotMetadata,k=!((k==null?void 0:k.slotId)!==void 0&&(k==null?void 0:k.slotType)!==void 0));if(k||!(E_H(F)||F.slotEntryTrigger&&F.slotFulfillmentTriggers&&F.slotExpirationTriggers))return!1;var z;F=(z=F.fulfillmentContent)==null?void 0:z.fulfilledLayout;return(z=g.J(F,vQ))?h8(z):(z=g.J(F,IO))?pZC(z):(z=g.J(F,XZD))?DWp(z):(z=g.J(F,qP9))?xW9(z):(z=g.J(F,NxD))?$8(z.adLayoutMetadata)?g.J(z.renderingContent,j7)?!0:!1:!1:(F=g.J(F,HQ))?PQ(F):!1};
E_H=function(F){var k;F=g.J((k=F.fulfillmentContent)==null?void 0:k.fulfilledLayout,IO);var z;return F&&((z=F.adLayoutMetadata)==null?void 0:z.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&F.layoutExitNormalTriggers===void 0};
wZ5=function(F){var k;return(F==null?void 0:(k=F.adSlotMetadata)==null?void 0:k.slotType)==="SLOT_TYPE_IN_PLAYER"};
Txk=function(F,k){var z;if((z=F.questions)==null||!z.length||!F.playbackCommands||(k===void 0||!k)&&F.questions.length!==1)return!1;F=g.l(F.questions);for(k=F.next();!k.done;k=F.next()){k=k.value;var x=z=void 0,D=((z=g.J(k,aO))==null?void 0:z.surveyAdQuestionCommon)||((x=g.J(k,S7))==null?void 0:x.surveyAdQuestionCommon);if(!mWR(D))return!1}return!0};
lhI=function(F){F=((F==null?void 0:F.playerOverlay)||{}).instreamSurveyAdRenderer;var k;if(F)if(F.playbackCommands&&F.questions&&F.questions.length===1){var z,x=((k=g.J(F.questions[0],aO))==null?void 0:k.surveyAdQuestionCommon)||((z=g.J(F.questions[0],S7))==null?void 0:z.surveyAdQuestionCommon);k=mWR(x)}else k=!1;else k=!1;return k};
mWR=function(F){if(!F)return!1;F=g.J(F.instreamAdPlayerOverlay,bB);var k=g.J(F==null?void 0:F.skipOrPreviewRenderer,XZ),z=g.J(F==null?void 0:F.adInfoRenderer,d0);return(g.J(F==null?void 0:F.skipOrPreviewRenderer,J8)||k)&&z?!0:!1};
Qdn=function(F){return F.linearAds!=null&&$8(F.adLayoutMetadata)};
hKI=function(F){return F.linearAd!=null&&F.adVideoStart!=null};
sdn=function(F){if(isNaN(Number(F.timeoutSeconds))||!F.text||!F.ctaButton||!g.J(F.ctaButton,g.yS)||!F.brandImage)return!1;var k;return F.backgroundImage&&g.J(F.backgroundImage,RO)&&((k=g.J(F.backgroundImage,RO))==null?0:k.landscape)?!0:!1};
g0=function(F,k,z,x,D,e,C){g.S.call(this);this.Ff=F;this.Y=k;this.U=x;this.xG=D;this.j=e;this.L=C};
GDp=function(F,k,z){var x,D=((x=z.adSlots)!=null?x:[]).map(function(p){return g.J(p,Y8)});
if(z.SE)if(XX(k.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))he(F.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},k.slotId);
else{if(F.Ff.get().T.C().V("h5_check_forecasting_renderer_for_throttled_midroll")){var e=z.Rq.filter(function(p){var E;return((E=p.renderer)==null?void 0:E.clientForecastingAdRenderer)!=null});
e.length!==0?rcY(F.L,e,D,k.slotId,z.ssdaiAdsConfig):he(F.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},k.slotId)}else he(F.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},k.slotId);
BxH(F.j,k)}else{var C;x={Qm:Math.round(((e=XX(k.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:e.Qm)||0),Uo:(C=XX(k.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:C.Uo};rcY(F.L,z.Rq,D,k.slotId,z.ssdaiAdsConfig,x)}};
t1H=function(F,k,z,x,D,e,C){var p=sI(F.xG.get(),1);he(F.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return UWx(F.U.get(),z,x,D,p.clientPlaybackNonce,p.V3,p.daiEnabled,p,e,C)},k)};
v_M=function(F,k,z,x,D,e,C){k=Z1R(k,e,Number(x.prefetchMilliseconds)||0,C);F=k instanceof L?k:nG(F,x,D,k,z);return F instanceof L?F:[F]};
cc6=function(F,k,z,x,D){var e=sc(F.L.get(),"SLOT_TYPE_AD_BREAK_REQUEST");x=[new Rq({getAdBreakUrl:x.getAdBreakUrl,Qm:0,Uo:0}),new iw(!0)];F=k.pauseDurationMs?k.lactThresholdMs?{slotId:e,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new oO(F.Y,e),slotFulfillmentTriggers:[new nx9(F.Y)],slotExpirationTriggers:[new ML(F.Y,D),new W7(F.Y,e)],HR:"core",clientMetadata:new EB(x),adSlotLoggingData:z}:new L("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new L("AdPlacementConfig for Pause Ads is missing pause_duration_ms");
return F instanceof L?F:[F]};
PZx=function(F){var k,z;return((k=F.renderer)==null?void 0:(z=k.adBreakServiceRenderer)==null?void 0:z.getAdBreakUrl)!==void 0};
MZ=function(F,k,z){if(F.beforeContentVideoIdStartedTrigger)F=F.beforeContentVideoIdStartedTrigger?new c7(Az,k,F.id):new L("Not able to create BeforeContentVideoIdStartedTrigger");else{if(F.layoutIdExitedTrigger){var x;k=(x=F.layoutIdExitedTrigger)!=null&&x.triggeringLayoutId?new ao(Az,F.layoutIdExitedTrigger.triggeringLayoutId,F.id):new L("Not able to create LayoutIdExitedTrigger")}else{if(F.layoutExitedForReasonTrigger){var D,e;((D=F.layoutExitedForReasonTrigger)==null?0:D.triggeringLayoutId)&&((e=
F.layoutExitedForReasonTrigger)==null?0:e.layoutExitReason)?(k=Mnx(F.layoutExitedForReasonTrigger.layoutExitReason),F=k instanceof L?k:new H7(Az,F.layoutExitedForReasonTrigger.triggeringLayoutId,[k],F.id)):F=new L("Not able to create LayoutIdExitedForReasonTrigger")}else{if(F.onLayoutSelfExitRequestedTrigger){var C;k=(C=F.onLayoutSelfExitRequestedTrigger)!=null&&C.triggeringLayoutId?new np(Az,F.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,F.id):new L("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(F.onNewPlaybackAfterContentVideoIdTrigger)F=
F.onNewPlaybackAfterContentVideoIdTrigger?new ML(Az,k,F.id):new L("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(F.skipRequestedTrigger){var p;k=(p=F.skipRequestedTrigger)!=null&&p.triggeringLayoutId?new fp(Az,F.skipRequestedTrigger.triggeringLayoutId,F.id):new L("Not able to create SkipRequestedTrigger")}else if(F.slotIdEnteredTrigger){var E;k=(E=F.slotIdEnteredTrigger)!=null&&E.triggeringSlotId?new Kp(Az,F.slotIdEnteredTrigger.triggeringSlotId,F.id):new L("Not able to create SlotIdEnteredTrigger")}else if(F.slotIdExitedTrigger){var X;
k=(X=F.slotIdExitedTrigger)!=null&&X.triggeringSlotId?new W7(Az,F.slotIdExitedTrigger.triggeringSlotId,F.id):new L("Not able to create SkipRequestedTrigger")}else if(F.surveySubmittedTrigger){var q;k=(q=F.surveySubmittedTrigger)!=null&&q.triggeringLayoutId?new x8(Az,F.surveySubmittedTrigger.triggeringLayoutId,F.id):new L("Not able to create SurveySubmittedTrigger")}else{if(F.mediaResumedTrigger)F=F.mediaResumedTrigger&&F.id?new L_9(F.id):new L("Not able to create MediaResumedTrigger");else{if(F.closeRequestedTrigger){var N;
k=(N=F.closeRequestedTrigger)!=null&&N.triggeringLayoutId?new P7(Az,F.closeRequestedTrigger.triggeringLayoutId,F.id):new L("Not able to create CloseRequestedTrigger")}else if(F.slotIdScheduledTrigger){var u;k=(u=F.slotIdScheduledTrigger)!=null&&u.triggeringSlotId?new oO(Az,F.slotIdScheduledTrigger.triggeringSlotId,F.id):new L("Not able to create SlotIdScheduledTrigger")}else{if(F.mediaTimeRangeTrigger){var w;x=Number((w=F.mediaTimeRangeTrigger)==null?void 0:w.offsetStartMilliseconds);var m;C=Number((m=
F.mediaTimeRangeTrigger)==null?void 0:m.offsetEndMilliseconds);isFinite(x)&&isFinite(C)?(m=C,m===-1&&(m=z),z=x>m?new L("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:x,offsetEndMs:m},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",m===z&&x-500<=m):new Gl(x,m),F=z instanceof L?z:new y8(Az,k,z,!1,F.id)):F=new L("Not able to create MediaTimeRangeTrigger")}else if(F.contentVideoIdEndedTrigger)F=F.contentVideoIdEndedTrigger?new O9(Az,k,!1,F.id):new L("Not able to create ContentVideoIdEndedTrigger");
else{if(F.layoutIdEnteredTrigger){var h;k=(h=F.layoutIdEnteredTrigger)!=null&&h.triggeringLayoutId?new Io(Az,F.layoutIdEnteredTrigger.triggeringLayoutId,F.id):new L("Not able to create LayoutIdEnteredTrigger")}else if(F.timeRelativeToLayoutEnterTrigger){var B;k=(B=F.timeRelativeToLayoutEnterTrigger)!=null&&B.triggeringLayoutId?new iB(Az,Number(F.timeRelativeToLayoutEnterTrigger.durationMs),F.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,F.id):new L("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(F.onDifferentLayoutIdEnteredTrigger){var U;
k=(U=F.onDifferentLayoutIdEnteredTrigger)!=null&&U.triggeringLayoutId&&F.onDifferentLayoutIdEnteredTrigger.slotType&&F.onDifferentLayoutIdEnteredTrigger.layoutType?new gA(Az,F.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,F.onDifferentLayoutIdEnteredTrigger.slotType,F.onDifferentLayoutIdEnteredTrigger.layoutType,F.id):new L("Not able to create CloseRequestedTrigger")}else{if(F.liveStreamBreakStartedTrigger)F=F.liveStreamBreakStartedTrigger&&F.id?new Jj(Az,F.id):new L("Not able to create LiveStreamBreakStartedTrigger");
else if(F.liveStreamBreakEndedTrigger)F=F.liveStreamBreakEndedTrigger&&F.id?new SG(Az,F.id):new L("Not able to create LiveStreamBreakEndedTrigger");else{if(F.liveStreamBreakScheduledDurationMatchedTrigger){var v;k=(v=F.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&v.breakDurationMs?new bc(Number(F.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,F.id):new L("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(F.liveStreamBreakScheduledDurationNotMatchedTrigger){var P;
k=(P=F.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&P.breakDurationMs?new dA(Number(F.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,F.id):new L("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(F.newSlotScheduledWithBreakDurationTrigger){var I;k=(I=F.newSlotScheduledWithBreakDurationTrigger)!=null&&I.breakDurationMs?new Ro(Number(F.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,F.id):new L("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else k=
F.prefetchCacheExpiredTrigger?new Lp(Az,F.id):new L("Not able to convert an AdsControlflowTrigger.");F=k}k=F}F=k}k=F}F=k}k=F}F=k}k=F}F=k}k=F}F=k}return F};
LG=function(F,k){k.Y>=2&&(F.slot_pos=k.adPodIndex);F.autoplay="1"};
V1H=function(F,k,z,x,D,e,C,p){return k===null?new L("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:k,ActionCompanionAdRenderer:x}):[O1n(F,k,C,e,function(E){var X=E.slotId;E=p(E);var q=x.adLayoutLoggingData,N=new EB([new gk(x),new xS(D)]);X=xI(z.L.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",X);var u={layoutId:X,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",HR:"core"};return{layoutId:X,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",hp:new Map,
layoutExitNormalTriggers:[new ML(z.Y,C)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:"core",clientMetadata:N,V2:E(u),adLayoutLoggingData:q}})]};
Ihn=function(F,k,z,x,D,e,C,p){return k===null?new L("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:k,TopBannerImageTextIconButtonedLayoutViewModel:x}):[O1n(F,k,C,e,function(E){var X=E.slotId;E=p(E);var q=x.adLayoutLoggingData,N=new EB([new YW(x),new xS(D)]);X=xI(z.L.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",X);var u={layoutId:X,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",HR:"core"};return{layoutId:X,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
hp:new Map,layoutExitNormalTriggers:[new ML(z.Y,C)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:"core",clientMetadata:N,V2:E(u),adLayoutLoggingData:q}})]};
b1p=function(F,k,z,x,D,e){if(!e)for(k=g.l(k),e=k.next();!e.done;e=k.next())e=e.value,fG(F,e.renderer,e.config.adPlacementConfig.kind);F=Array.from(F.values()).filter(function(q){return H15(q)});
k=[];e=g.l(F);for(var C=e.next(),p={};!C.done;p={DG:void 0},C=e.next()){p.DG=C.value;C=g.l(p.DG.pm);for(var E=C.next(),X={};!E.done;X={ZW:void 0},E=C.next())X.ZW=E.value,E=function(q,N){return function(u){return q.ZW.HG(u,N.DG.instreamVideoAdRenderer.elementId,q.ZW.Mu)}}(X,p),X.ZW.isContentVideoCompanion?k.push(ahY(z,x,D,p.DG.instreamVideoAdRenderer.elementId,X.ZW.associatedCompositePlayerBytesLayoutId,X.ZW.adSlotLoggingData,E)):F.length>1?k.push(SPa(z,x,D,p.DG.instreamVideoAdRenderer.elementId,X.ZW.adSlotLoggingData,
function(q,N){return function(u){return q.ZW.HG(u,N.DG.instreamVideoAdRenderer.elementId,q.ZW.Mu,q.ZW.associatedCompositePlayerBytesLayoutId)}}(X,p))):k.push(SPa(z,x,D,p.DG.instreamVideoAdRenderer.elementId,X.ZW.adSlotLoggingData,E))}return k};
fG=function(F,k,z){if(k=dWa(k)){k=g.l(k);for(var x=k.next();!x.done;x=k.next())if((x=x.value)&&x.externalVideoId){var D=KG(F,x.externalVideoId);D.instreamVideoAdRenderer||(D.instreamVideoAdRenderer=x,D.uM=z)}else To("InstreamVideoAdRenderer without externalVideoId")}};
dWa=function(F){var k=[],z=F.sandwichedLinearAdRenderer&&F.sandwichedLinearAdRenderer.linearAd&&g.J(F.sandwichedLinearAdRenderer.linearAd,mE);if(z)return k.push(z),k;if(F.instreamVideoAdRenderer)return k.push(F.instreamVideoAdRenderer),k;if(F.linearAdSequenceRenderer&&F.linearAdSequenceRenderer.linearAds){F=g.l(F.linearAdSequenceRenderer.linearAds);for(z=F.next();!z.done;z=F.next())z=z.value,g.J(z,mE)&&k.push(g.J(z,mE));return k}return null};
H15=function(F){if(F.instreamVideoAdRenderer===void 0)return To("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var k=g.l(F.pm),z=k.next();!z.done;z=k.next()){z=z.value;if(z.HG===void 0)return!1;if(z.Mu===void 0)return To("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(F.uM===void 0||z.tb===void 0||F.uM!==z.tb&&z.tb!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(F.instreamVideoAdRenderer.elementId===void 0)return To("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:F.uM,"matching APSR kind":z.tb}),!1}return!0};
KG=function(F,k){F.has(k)||F.set(k,{instreamVideoAdRenderer:void 0,uM:void 0,adVideoId:k,pm:[]});return F.get(k)};
WQ=function(F,k,z,x,D,e,C,p,E){D?KG(F,D).pm.push({CC_:k,tb:z,isContentVideoCompanion:x,Mu:C,associatedCompositePlayerBytesLayoutId:e,adSlotLoggingData:p,HG:E}):To("Companion AdPlacementSupportedRenderer without adVideoId")};
F_=function(F){var k=0;F=g.l(F.questions);for(var z=F.next();!z.done;z=F.next())if(z=z.value,z=g.J(z,aO)||g.J(z,S7)){var x=void 0;k+=((x=z.surveyAdQuestionCommon)==null?void 0:x.durationMilliseconds)||0}return k};
kX=function(F){var k,z,x,D,e=((z=g.J((k=F.questions)==null?void 0:k[0],aO))==null?void 0:z.surveyAdQuestionCommon)||((D=g.J((x=F.questions)==null?void 0:x[0],S7))==null?void 0:D.surveyAdQuestionCommon),C;k=[].concat(g.r(((C=F.playbackCommands)==null?void 0:C.instreamAdCompleteCommands)||[]),g.r((e==null?void 0:e.timeoutCommands)||[]));var p,E,X,q,N,u,w,m,h,B,U,v,P,I,d,W,M,xY,$Y,Fx;return{impressionCommands:(p=F.playbackCommands)==null?void 0:p.impressionCommands,errorCommands:(E=F.playbackCommands)==
null?void 0:E.errorCommands,muteCommands:(X=F.playbackCommands)==null?void 0:X.muteCommands,unmuteCommands:(q=F.playbackCommands)==null?void 0:q.unmuteCommands,pauseCommands:(N=F.playbackCommands)==null?void 0:N.pauseCommands,rewindCommands:(u=F.playbackCommands)==null?void 0:u.rewindCommands,resumeCommands:(w=F.playbackCommands)==null?void 0:w.resumeCommands,skipCommands:(m=F.playbackCommands)==null?void 0:m.skipCommands,progressCommands:(h=F.playbackCommands)==null?void 0:h.progressCommands,UoJ:(B=
F.playbackCommands)==null?void 0:B.clickthroughCommands,fullscreenCommands:(U=F.playbackCommands)==null?void 0:U.fullscreenCommands,activeViewViewableCommands:(v=F.playbackCommands)==null?void 0:v.activeViewViewableCommands,activeViewMeasurableCommands:(P=F.playbackCommands)==null?void 0:P.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(I=F.playbackCommands)==null?void 0:I.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(d=F.playbackCommands)==
null?void 0:(W=d.activeViewTracking)==null?void 0:W.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(M=F.playbackCommands)==null?void 0:(xY=M.activeViewTracking)==null?void 0:xY.activeViewAudioMeasurableCommands,endFullscreenCommands:($Y=F.playbackCommands)==null?void 0:$Y.endFullscreenCommands,abandonCommands:(Fx=F.playbackCommands)==null?void 0:Fx.abandonCommands,completeCommands:k}};
ycY=function(F,k,z,x,D,e,C){return function(p,E){return Jcp(F,E.slotId,p,e,function(X,q){var N=E.layoutId;X=C(X);return oT(k,N,q,D,X,"LAYOUT_TYPE_SURVEY",[new TB(z),x],z.adLayoutLoggingData)})}};
YPa=function(F,k,z,x,D,e,C){if(!RKC(F))return new L("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:F});var p=F.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[g_x(e,k,z,x,function(E){var X=E.slotId;E=C(E);X=xI(D.L.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",X);var q={layoutId:X,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",HR:"core"},N=new ao(D.Y,x);return{layoutId:X,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",hp:new Map,layoutExitNormalTriggers:[N],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:"core",clientMetadata:new EB([new lF(p)]),V2:E(q)}})]};
RKC=function(F){F=g.J(F==null?void 0:F.additionalPlayerOverlay,n_R);if(!F)return!1;var k=F.slidingMessages;return F.title&&k&&k.length!==0?!0:!1};
LrM=function(F,k,z,x,D){var e;if((e=F.playerOverlay)==null||!e.instreamSurveyAdRenderer)return function(){return[]};
if(!lhI(F))return function(){return new L("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:F})};
var C=F.playerOverlay.instreamSurveyAdRenderer,p=F_(C);return p<=0?function(){return new L("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:C})}:function(E,X){var q=M1p(E,z,x,function(N){var u=N.slotId;
N=X(N);var w=kX(C);u=xI(D.L.get(),"LAYOUT_TYPE_SURVEY",u);var m={layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",HR:"core"},h=new ao(D.Y,x),B=new fp(D.Y,u),U=new x8(D.Y,u),v=new Fra(D.Y);return{layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",hp:new Map,layoutExitNormalTriggers:[h,v],layoutExitSkipTriggers:[B],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[U],Ry:[],HR:"core",clientMetadata:new EB([new mu(C),new xS(k),new n2(p/1E3),new K2(w)]),V2:N(m),adLayoutLoggingData:C.adLayoutLoggingData}});
E=YPa(F,z,q.slotId,x,D,E,X);return E instanceof L?E:[q].concat(g.r(E))}};
zWM=function(F,k,z,x,D,e,C){C=C===void 0?!1:C;var p=[];try{var E=[];if(z.renderer.linearAdSequenceRenderer)var X=function(h){h=fh6(h.slotId,z,k,D(h),x,e,C);E=h.s3a;return h.Rf};
else if(z.renderer.instreamVideoAdRenderer)X=function(h){var B=h.slotId;h=D(h);var U=C,v=z.config.adPlacementConfig,P=Krp(v),I=P.hd,d=P.E4;P=z.renderer.instreamVideoAdRenderer;var W;if(P==null?0:(W=P.playerOverlay)==null?0:W.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var M=zW(P,U);W=Math.min(I+M.videoLengthSeconds*1E3,d);U=new v7(0,[M.videoLengthSeconds]);d=M.videoLengthSeconds;var xY=M.playerVars,$Y=M.instreamAdPlayerOverlayRenderer,Fx=M.playerOverlayLayoutRenderer,
y=M.adVideoId,K=Wrx(z),Q=M.hp;M=M.Hn;var R=P==null?void 0:P.adLayoutLoggingData;P=P==null?void 0:P.sodarExtensionData;B=xI(k.L.get(),"LAYOUT_TYPE_MEDIA",B);var Jn={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",HR:"core"};return{layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",hp:Q,layoutExitNormalTriggers:[new SG(k.Y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:"core",clientMetadata:new EB([new C2(x),new v0(d),new c0(xY),new Vf(I),new Iq(W),$Y&&new Au($Y),
Fx&&new p2(Fx),new xS(v),new eM(y),new iF(U),new Ju(K),P&&new OE(P),new GB({current:null}),new aq({}),new kR(M)].filter(FIM)),V2:h(Jn),adLayoutLoggingData:R}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var q=kxx(F,x,z.adSlotLoggingData,X);p.push(q);for(var N=g.l(E),u=N.next();!u.done;u=N.next()){var w=u.value,m=w(F,D);if(m instanceof L)return m;p.push.apply(p,g.r(m))}}catch(h){return new L(h,{errorMessage:h.message,AdPlacementRenderer:z,numberOfSurveyRenderers:oWY(z)})}return p};
oWY=function(F){F=(F.renderer.linearAdSequenceRenderer||{}).linearAds;return F!=null&&F.length?F.filter(function(k){var z,x;return((z=g.J(k,mE))==null?void 0:(x=z.playerOverlay)==null?void 0:x.instreamSurveyAdRenderer)!=null}).length:0};
fh6=function(F,k,z,x,D,e,C){var p=k.config.adPlacementConfig,E=Krp(p),X=E.hd,q=E.E4;E=(k.renderer.linearAdSequenceRenderer||{}).linearAds;if(E==null||!E.length)throw new TypeError("Expected linear ads");var N=[],u={ac:X,Vt:0,krR:N};E=E.map(function(m){return xNk(F,m,u,z,x,p,D,q,C)}).map(function(m,h){h=new v7(h,N);
return m(h)});
var w=E.map(function(m){return m.qQ});
return{Rf:iBn(z,F,X,w,p,Wrx(k),x,q,e),s3a:E.map(function(m){return m.D$t})}};
xNk=function(F,k,z,x,D,e,C,p,E){var X=zW(g.J(k,mE),E),q=z.ac,N=z.Vt,u=Math.min(q+X.videoLengthSeconds*1E3,p);z.ac=u;z.Vt++;z.krR.push(X.videoLengthSeconds);var w,m,h=(w=g.J(k,mE))==null?void 0:(m=w.playerOverlay)==null?void 0:m.instreamSurveyAdRenderer;if(X.adVideoId==="nPpU29QrbiU"&&h==null)throw new TypeError("Survey slate media has no survey overlay");return function(B){LG(X.playerVars,B);var U,v,P=X.videoLengthSeconds,I=X.playerVars,d=X.hp,W=X.Hn,M=X.instreamAdPlayerOverlayRenderer,xY=X.playerOverlayLayoutRenderer,
$Y=X.adVideoId,Fx=(U=g.J(k,mE))==null?void 0:U.adLayoutLoggingData;U=(v=g.J(k,mE))==null?void 0:v.sodarExtensionData;v=xI(x.L.get(),"LAYOUT_TYPE_MEDIA",F);var y={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",HR:"adapter"};B={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",hp:d,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:"adapter",clientMetadata:new EB([new C2(C),new v0(P),new c0(I),new Vf(q),new Iq(u),new H0(N),new GB({current:null}),
M&&new Au(M),xY&&new p2(xY),new xS(e),new eM($Y),new iF(B),U&&new OE(U),h&&new FX(h),new aq({}),new kR(W)].filter(FIM)),V2:D(y),adLayoutLoggingData:Fx};P=LrM(g.J(k,mE),e,C,B.layoutId,x);return{qQ:B,D$t:P}}};
zW=function(F,k){if(!F)throw new TypeError("Expected instream video ad renderer");if(!F.playerVars)throw new TypeError("Expected player vars in url encoded string");var z=DC(F.playerVars),x=Number(z.length_seconds);if(isNaN(x))throw new TypeError("Expected valid length seconds in player vars");var D=Number(F.trimmedMaxNonSkippableAdDurationMs);x=isNaN(D)?x:Math.min(x,D/1E3);D=F.playerOverlay||{};D=D.instreamAdPlayerOverlayRenderer===void 0?null:D.instreamAdPlayerOverlayRenderer;var e=F.playerOverlay||
{};e=e.playerOverlayLayoutRenderer===void 0?null:e.playerOverlayLayoutRenderer;var C=z.video_id;C||(C=(C=F.externalVideoId)?C:void 0);if(!C)throw new TypeError("Expected valid video id in IVAR");if(k&&x===0){var p;k=(p=DNM[C])!=null?p:x}else k=x;return{playerVars:z,videoLengthSeconds:k,instreamAdPlayerOverlayRenderer:D,playerOverlayLayoutRenderer:e,adVideoId:C,hp:F.pings?Oc(F.pings):new Map,Hn:Pn(F.pings)}};
Wrx=function(F){F=Number(F.driftRecoveryMs);return isNaN(F)||F<=0?null:F};
Krp=function(F){var k=F.adTimeOffset||{};F=k.offsetEndMilliseconds;k=Number(k.offsetStartMilliseconds);if(isNaN(k))throw new TypeError("Expected valid start offset");F=Number(F);if(isNaN(F))throw new TypeError("Expected valid end offset");return{hd:k,E4:F}};
$NR=function(F){var k,z=(k=XX(F.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:k.current;if(!z)return null;k=XX(F.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var x=F.layoutId,D=XX(F.clientMetadata,"metadata_type_content_cpn"),e=XX(F.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),C=XX(F.clientMetadata,"metadata_type_player_underlay_renderer"),p=XX(F.clientMetadata,"metadata_type_ad_placement_config"),E=XX(F.clientMetadata,"metadata_type_video_length_seconds");
var X=ea(F.clientMetadata,"metadata_type_layout_enter_ms")&&ea(F.clientMetadata,"metadata_type_layout_exit_ms")?(XX(F.clientMetadata,"metadata_type_layout_exit_ms")-XX(F.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{RV:x,contentCpn:D,BU:z,Cm:k,instreamAdPlayerOverlayRenderer:e,instreamAdPlayerUnderlayRenderer:C,adPlacementConfig:p,videoLengthSeconds:E,CX:X,inPlayerLayoutId:XX(F.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:XX(F.clientMetadata,"metadata_type_linked_in_player_slot_id")}};
Cs5=function(F,k,z,x,D,e,C,p,E,X,q,N,u,w,m){x=sc(x,"SLOT_TYPE_PLAYER_BYTES");F=jz6(D,F,C,z,x,E,X);if(F instanceof L)return F;var h;X=(h=XX(F.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:h.layoutId;if(!X)return new L("Invalid adNotify layout");k=eWC(X,D,e,z,p,k,E,q,N,u,w,m,C);return k instanceof L?k:[F].concat(g.r(k))};
eWC=function(F,k,z,x,D,e,C,p,E,X,q,N,u){z=A5D(k,z,x,e,C,p,E,X,q,N,u);if(z instanceof L)return z;F=paa(k,F,C,D,z);return F instanceof L?F:[].concat(g.r(F.Jv),[F.wK])};
Xan=function(F,k,z,x,D,e,C,p,E,X,q,N,u,w){k=A5D(F,k,z,D,e,p,E,X,q,N,u,w);if(k instanceof L)return k;F=EW6(F,z,e,C,x,p.oS,k);return F instanceof L?F:F.Jv.concat(F.wK)};
A5D=function(F,k,z,x,D,e,C,p,E,X,q,N){var u=xX(x,z,X);return u instanceof pE?new L(u):X.T.C().experiments.Ca("html5_refactor_in_player_slot_generation")?function(w){var m=new v7(0,[u.EE]);w=qiD(k,u.layoutId,u.Kg,z,iq(u.playerVars,u.RQ,e,E,m),u.EE,D,m,C(w),p.get(u.Kg.externalVideoId),N);m=[];if(u.Kg.playerOverlay.instreamAdPlayerOverlayRenderer){var h=$NR(w);if(!h)return To("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,w),{layout:w,Jv:[]};
m=[Nkn(F,h.contentCpn,h.RV,function(U){return Dn(k,U.slotId,"core",h,TM(q,U))},h.inPlayerSlotId)].concat(g.r(m));
if(h.instreamAdPlayerUnderlayRenderer&&$X(X)){var B=h.instreamAdPlayerUnderlayRenderer;m=[u0k(F,h.contentCpn,h.RV,function(U){return wan(k,U.slotId,B,h.adPlacementConfig,h.RV,TM(q,U))})].concat(g.r(m))}}return{layout:w,
Jv:m}}:function(w){var m=new v7(0,[u.EE]);
return{layout:qiD(k,u.layoutId,u.Kg,z,iq(u.playerVars,u.RQ,e,E,m),u.EE,D,m,C(w),p.get(u.Kg.externalVideoId),N),Jv:[]}}};
xX=function(F,k,z){if(!F.playerVars)return new pE("No playerVars available in InstreamVideoAdRenderer.");var x,D;if(F.elementId==null||F.playerVars==null||F.playerOverlay==null||((x=F.playerOverlay)==null?void 0:x.instreamAdPlayerOverlayRenderer)==null&&((D=F.playerOverlay)==null?void 0:D.playerOverlayLayoutRenderer)==null||F.pings==null||F.externalVideoId==null)return new pE("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:F});x=DC(F.playerVars);D=Number(x.length_seconds);
isNaN(D)&&(D=0,To("Expected valid length seconds in player vars but got NaN"));if(z.g9(k.kind==="AD_PLACEMENT_KIND_START")){if(F.layoutId===void 0)return new pE("Expected server generated layout ID in instreamVideoAdRenderer");k=F.layoutId}else k=F.elementId;return{layoutId:k,Kg:F,playerVars:x,RQ:F.playerVars,EE:D}};
iq=function(F,k,z,x,D){F.iv_load_policy=x;k=DC(k);if(k.cta_conversion_urls)try{F.cta_conversion_urls=JSON.parse(k.cta_conversion_urls)}catch(e){To(e)}z.m3&&(F.ctrl=z.m3);z.rI&&(F.ytr=z.rI);z.Ym&&(F.ytrcc=z.Ym);z.isMdxPlayback&&(F.mdx="1");F.vvt&&(F.vss_credentials_token=F.vvt,z.qZ&&(F.vss_credentials_token_type=z.qZ),z.mdxEnvironment&&(F.mdx_environment=z.mdxEnvironment));LG(F,D);return F};
mNI=function(F){var k=new Map;F=g.l(F);for(var z=F.next();!z.done;z=F.next())(z=z.value.renderer.remoteSlotsRenderer)&&z.hostElementId&&k.set(z.hostElementId,z);return k};
jc=function(F){return F.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"};
TkC=function(F){return F!=null};
Gxk=function(F,k,z,x,D,e,C,p,E,X,q,N,u,w){for(var m=[],h=g.l(F),B=h.next();!B.done;B=h.next())if(B=B.value,!E_H(B)&&!wZ5(B)){var U=jc(B)&&!!B.slotEntryTrigger.beforeContentVideoIdStartedTrigger,v=E.g9(U),P=lcI(B,X,x,z.V3,v);if(P instanceof L)return P;var I=void 0,d={slotId:B.adSlotMetadata.slotId,slotType:B.adSlotMetadata.slotType,slotPhysicalPosition:(I=B.adSlotMetadata.slotPhysicalPosition)!=null?I:1,HR:"core",slotEntryTrigger:P.slotEntryTrigger,slotFulfillmentTriggers:P.slotFulfillmentTriggers,
slotExpirationTriggers:P.slotExpirationTriggers},W=g.J(B.fulfillmentContent.fulfilledLayout,vQ);if(W){if(!h8(W))return new L("Invalid PlayerBytesAdLayoutRenderer");I=N&&!(jc(B)&&B.slotEntryTrigger.beforeContentVideoIdStartedTrigger);P=P.slotFulfillmentTriggers.some(function(M){return M instanceof bc});
v=I?QzM(d,B.adSlotMetadata.triggerEvent,W,z,x,e,X,F,v,u,P,w):hWp(d,B.adSlotMetadata.triggerEvent,W,k,z,x,D,e,C,p,E,X,F,q,v,B.adSlotMetadata.triggeringSourceLayoutId);if(v instanceof L)return v;P=[];jc(B)&&P.push(new Do({Jr:jc(B)&&!!B.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));I&&P.push(new aq({}));z.oS&&P.push(new W0({}));P.push(new xR(U));B=Object.assign({},d,{clientMetadata:new EB(P),fulfilledLayout:v.layout,adSlotLoggingData:B.adSlotMetadata.adSlotLoggingData});m.push.apply(m,g.r(v.Jv));
m.push(B)}else if(U=g.J(B.fulfillmentContent.fulfilledLayout,IO)){if(!pZC(U))return new L("Invalid PlayerUnderlayAdLayoutRenderer");U=szn(U,x,z.V3,e,d,B.adSlotMetadata.triggerEvent,B.adSlotMetadata.triggeringSourceLayoutId);if(U instanceof L)return U;B=Object.assign({},d,{clientMetadata:new EB([]),fulfilledLayout:U,adSlotLoggingData:B.adSlotMetadata.adSlotLoggingData});m.push(B)}else if(U=g.J(B.fulfillmentContent.fulfilledLayout,qP9)){if(!xW9(U))return new L("Invalid AboveFeedAdLayoutRenderer");U=
r5D(U,x,z.V3,e,d,B.adSlotMetadata.triggerEvent,B.adSlotMetadata.triggeringSourceLayoutId);if(U instanceof L)return U;B=Object.assign({},d,{clientMetadata:new EB([]),fulfilledLayout:U,adSlotLoggingData:B.adSlotMetadata.adSlotLoggingData});m.push(B)}else if(U=g.J(B.fulfillmentContent.fulfilledLayout,NxD)){if(!$8(U.adLayoutMetadata)||!g.J(U.renderingContent,j7))return new L("Invalid BelowPlayerAdLayoutRenderer");U=r5D(U,x,z.V3,e,d,B.adSlotMetadata.triggerEvent,B.adSlotMetadata.triggeringSourceLayoutId);
if(U instanceof L)return U;B=Object.assign({},d,{clientMetadata:new EB([]),fulfilledLayout:U,adSlotLoggingData:B.adSlotMetadata.adSlotLoggingData});m.push(B)}else if(U=g.J(B.fulfillmentContent.fulfilledLayout,HQ)){if(!PQ(U))return new L("Invalid PlayerBytesSequenceItemAdLayoutRenderer");U=BkC(U,x,z.V3,e,d,B.adSlotMetadata.triggerEvent);if(U instanceof L)return U;B=Object.assign({},d,{clientMetadata:new EB([]),fulfilledLayout:U,adSlotLoggingData:B.adSlotMetadata.adSlotLoggingData});m.push(B)}else return new L("Unable to retrieve a client slot ["+
d.slotType+"] from a given AdSlotRenderer")}return m};
BkC=function(F,k,z,x,D,e){var C={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,HR:"core"};k=ec(F,k,z);return k instanceof L?k:(z=g.J(F.renderingContent,cQ))&&z.pings?Object.assign({},C,{renderingContent:F.renderingContent,hp:Oc(z.pings)},k,{V2:TM(x,D)(C),clientMetadata:new EB([new xS(C$(e))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData}):new L("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")};
r5D=function(F,k,z,x,D,e,C){var p={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,HR:"core"};k=ec(F,k,z);if(k instanceof L)return k;z=[];z.push(new xS(C$(e)));e==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&C!==void 0&&z.push(new Qf(C));return Object.assign({},p,{renderingContent:F.renderingContent,hp:new Map([["impression",UNx(F)]])},k,{V2:TM(x,D)(p),clientMetadata:new EB(z),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})};
szn=function(F,k,z,x,D,e,C){if(F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(C=g.J(F.renderingContent,Oj))if(C=g.J(C.sidePanel,CZx)){var p={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,HR:"core"};k=ec(F,k,z);F=k instanceof L?k:Object.assign({},p,{renderingContent:F.renderingContent,hp:new Map([["impression",C.impressionPings||[]],["resume",C.resumePings||[]]])},k,{V2:TM(x,D)(p),clientMetadata:new EB([new xS(C$(e))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})}else F=
new L("DismissablePanelTextPortraitImageRenderer is missing");else F=new L("SqueezebackPlayerSidePanelRenderer is missing");else F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.J(F.renderingContent,$WM)?(C={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,HR:"core"},k=ec(F,k,z),F=k instanceof L?k:Object.assign({},C,{renderingContent:F.renderingContent,hp:new Map},k,{V2:TM(x,D)(C),clientMetadata:new EB([new xS(C$(e))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})):
F=new L("CounterfactualRenderer is missing"):F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?F=new L("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?F=new L("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.J(F.renderingContent,VS)?(e={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,
HR:"core"},k=ec(F,k,z),F=k instanceof L?k:C?Object.assign({},e,{renderingContent:F.renderingContent,hp:new Map},k,{V2:TM(x,D)(e),clientMetadata:new EB([new Qf(C)]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData}):new L("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):F=new L("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.J(F.renderingContent,jdD)?
(e={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,HR:"core"},k=ec(F,k,z),F=k instanceof L?k:Object.assign({},e,{renderingContent:F.renderingContent,hp:new Map([])},k,{V2:TM(x,D)(e),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new EB([])})):F=new L("AdsEngagementPanelSectionListViewModel is missing"):F=new L("LayoutType ["+F.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return F};
QzM=function(F,k,z,x,D,e,C,p,E,X,q,N){if((N==null?void 0:N.Qm)===void 0||(N==null?void 0:N.Uo)===void 0)return new L("Cached ad break range from cue point is missing");var u=ec(z,D,x.V3);if(u instanceof L)return u;u={layoutExitMuteTriggers:[],layoutExitNormalTriggers:u.layoutExitNormalTriggers,layoutExitSkipTriggers:[],Ry:[],layoutExitUserInputSubmittedTriggers:[]};if(g.J(z.renderingContent,mE))return F=tvn(F,k,z,u,D,e,p,E,x.V3,C,N.Qm,N.Uo),F instanceof L?F:F.Cv===void 0?new L("Expecting associatedInPlayerSlot for single DAI media layout"):
{layout:F.layout,Jv:[F.Cv]};var w=g.J(z.renderingContent,uB);if(w){if(!$8(z.adLayoutMetadata))return new L("Invalid ad layout metadata");if(!w0(w))return new L("Invalid sequential layout");w=w.sequentialLayouts.map(function(m){return m.playerBytesAdLayoutRenderer});
F=ZBR(F,k,z,u,w,D,x,e,C,E,p,X,N.Qm,N.Uo,q);return F instanceof L?F:{layout:F.xE,Jv:F.Jv}}return new L("Not able to convert a sequential layout")};
ZBR=function(F,k,z,x,D,e,C,p,E,X,q,N,u,w,m){var h=vWM(D,u,w);if(h instanceof L)return h;var B=[],U=[];h=g.l(h);for(var v=h.next();!v.done;v=h.next()){var P=v.value;v=F;var I=D[P.Vt],d=P,W=k;P=e;var M=C,xY=p,$Y=E,Fx=X,y=q,K=Ak(I);if(K instanceof L)v=K;else{var Q={layoutId:I.adLayoutMetadata.layoutId,layoutType:I.adLayoutMetadata.layoutType,HR:"adapter"};d=c56(W,I,d,P);d instanceof L?v=d:(v=Object.assign({},Q,p$,{hp:K,renderingContent:I.renderingContent,clientMetadata:new EB(d),V2:TM(xY,v)(Q),adLayoutLoggingData:I.adLayoutMetadata.adLayoutLoggingData}),
v=(I=El(y,v,P,M.V3,xY,$Y,Fx,void 0,!0))?I instanceof L?I:{layout:v,Cv:I}:new L("Expecting associatedInPlayerSlot"))}if(v instanceof L)return v;B.push(v.layout);U.push(v.Cv)}D={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,HR:"core"};k=[new Ju(Number(z.driftRecoveryMs)),new Vf(u),new Iq(w),new xS(C$(k)),new zM(N),new aq({})];m&&k.push(new $R({}));return{xE:Object.assign({},D,x,{Ve:B,hp:new Map,clientMetadata:new EB(k),V2:TM(p,F)(D)}),Jv:U}};
tvn=function(F,k,z,x,D,e,C,p,E,X,q,N){if(!h8(z))return new L("Invalid PlayerBytesAdLayoutRenderer");var u=Ak(z);if(u instanceof L)return u;var w={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,HR:"core"},m=g.J(z.renderingContent,mE);if(!m)return new L("Invalid rendering content for DAI media layout");m=zW(m,!1);q={Ow:m,Vt:0,ac:q,Cq:Math.min(q+m.videoLengthSeconds*1E3,N),iC:new v7(0,[m.videoLengthSeconds])};var h;N=(h=Number(z.driftRecoveryMs))!=null?h:void 0;k=c56(k,
z,q,D,N);if(k instanceof L)return k;F=Object.assign({},w,x,{hp:u,renderingContent:z.renderingContent,clientMetadata:new EB(k),V2:TM(e,F)(w),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData});return(D=El(C,F,D,E,e,X,p,void 0,!0))?D instanceof L?D:{layout:F,Cv:D}:new L("Expecting associatedInPlayerSlot")};
hWp=function(F,k,z,x,D,e,C,p,E,X,q,N,u,w,m,h){var B=ec(z,e,D.V3);if(B instanceof L)return B;if(g.J(z.renderingContent,mE)){E=Psa([z],D,E);if(E instanceof L)return E;if(E.length!==1)return new L("Only expected one media layout.");F=OBa(F,k,z,B,E[0],void 0,"core",x,e,C,p,X,u,w,m,D.V3,N,void 0,h);return F instanceof L?F:{layout:F.layout,Jv:F.Cv?[F.Cv]:[]}}var U=g.J(z.renderingContent,uB);if(U){if(!$8(z.adLayoutMetadata))return new L("Invalid ad layout metadata");if(!w0(U))return new L("Invalid sequential layout");
U=U.sequentialLayouts.map(function(v){return v.playerBytesAdLayoutRenderer});
F=Vvk(F,k,z.adLayoutMetadata,B,U,x,e,D,E,C,p,X,q,N,m,u,w,h);return F instanceof L?F:{layout:F.xE,Jv:F.Jv}}return new L("Not able to convert a sequential layout")};
Vvk=function(F,k,z,x,D,e,C,p,E,X,q,N,u,w,m,h,B,U){var v=new jM({current:null}),P=Psa(D,p,E);if(P instanceof L)return P;E=[];for(var I=[],d=void 0,W=0;W<D.length;W++){var M=D[W];if(g.J(M.renderingContent,mE)){d=bN(u)&&dB(u)?P[W+1]:void 0;d=OBa(F,k,M,p$,P[W],d,"adapter",e,C,X,q,N,h,B,m,p.V3,w,v,U);if(d instanceof L)return d;E.push(d.layout);d.Cv&&I.push(d.Cv);d=P[W]}else if(g.J(M.renderingContent,TJ)){var xY=F,$Y=q;if(h8(M)){var Fx=g.J(M.renderingContent,TJ);if(Fx&&Fx.playerVars!==void 0){var y={layoutId:M.adLayoutMetadata.layoutId,
layoutType:M.adLayoutMetadata.layoutType,HR:"adapter"};Fx=DC(Fx.playerVars);Fx.autoplay="1";M=Object.assign({},y,p$,{renderingContent:M.renderingContent,clientMetadata:new EB([new SM({}),new xS({kind:"AD_PLACEMENT_KIND_START"}),new GB({current:null}),new c0(Fx)]),hp:new Map,V2:TM($Y,xY)(y),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData})}else M=new L("Invalid ad intro renderer")}else M=new L("Invalid PlayerBytesAdLayoutRenderer");if(M instanceof L)return M;E.push(M)}else if(g.J(M.renderingContent,
uv))if(B){M=Icn(F,M,q,C$(k),d);if(M instanceof L)return M;E.push(M);M=El(h,M,C,p.V3,q,w,m,v,!1);if(M instanceof L)return M;if(M)I.push(M);else return new L("Not able to retrieve InPlayer slot for endcap")}else{a:{xY=M.adLayoutMetadata.layoutId;$Y=g.l(e);for(y=$Y.next();!y.done;y=$Y.next()){y=y.value;var K=Fx=void 0,Q=((Fx=y.renderer)==null?void 0:(K=Fx.linearAdSequenceRenderer)==null?void 0:K.linearAds)||[];Fx=g.l(Q);for(K=Fx.next();!K.done;K=Fx.next())if((K=g.J(K.value,uv))&&K.inPlayerSlotId!==void 0&&
K.inPlayerLayoutId!==void 0&&K.associatedPlayerBytesLayoutId!==void 0&&K.associatedPlayerBytesLayoutId===xY){xY={P4:K,adPlacementConfig:y.config.adPlacementConfig};break a}}xY=new L("Not able to find associated InPlayer slot for endcap")}if(xY instanceof L)return xY;M=Icn(F,M,q,xY.adPlacementConfig,d);if(M instanceof L)return M;E.push(M);M=HBC(M.layoutId,w,C,xY,v,q);if(M instanceof L)return M;I.push(M)}}k={layoutId:z.layoutId,layoutType:z.layoutType,HR:"core"};return{xE:Object.assign({},k,x,{Ve:E,
hp:new Map,clientMetadata:new EB([v]),V2:TM(q,F)(k)}),Jv:I}};
OBa=function(F,k,z,x,D,e,C,p,E,X,q,N,u,w,m,h,B,U,v){if(!h8(z))return new L("Invalid PlayerBytesAdLayoutRenderer");var P=Ak(z);if(P instanceof L)return P;C={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,HR:C};a:{var I=z.adLayoutMetadata.layoutId,d=g.J(z.renderingContent,mE);if(d&&NZ(d)){var W=[];if(w)W.push(new xS(C$(k)));else{b:{p=g.l(p);for(k=p.next();!k.done;k=p.next()){k=k.value;var M=dWa(k.renderer)||[],xY=g.l(M);for(M=xY.next();!M.done;M=xY.next())if(M=M.value,
M.associatedPlayerBytesLayoutId===I){M.associatedPlayerBytesLayoutId?(p=M.playerOverlay,xY=p!==void 0&&p.playerOverlayLayoutRenderer!==void 0&&p.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&p.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,p=p!==void 0&&p.instreamAdPlayerOverlayRenderer!==void 0&&p.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&p.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||xY):p=!1;k=p?{instreamVideoAdRenderer:M,adPlacementConfig:k.config.adPlacementConfig}:
new L("Invalid InPlayer shim");break b}}k=new L("Not able to find associated InPlayer slot")}if(k instanceof L){e=k;break a}p=k.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;M=k.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var $Y;xY=($Y=p==null?void 0:p.inPlayerSlotId)!=null?$Y:M==null?void 0:M.inPlayerSlotId;var Fx;$Y=(Fx=p==null?void 0:p.inPlayerLayoutId)!=null?Fx:M==null?void 0:M.inPlayerLayoutId;if(xY===void 0){e=new L("InPlayer shim slot id is undefined");
break a}if($Y===void 0){e=new L("InPlayer shim layout id is undefined");break a}W.push(new hu($Y),new ro(xY),new H0(D.iC.adPodIndex),new xS(k.adPlacementConfig));p&&W.push(new Au(p));M&&W.push(new p2(M))}W.push(new iF(D.iC),new eM(d.externalVideoId),new C2(E),new K2({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands,progressCommands:d.adVideoProgressCommands}),new c0(D.t6),new GB({current:null}),new v0(D.FER.EE),new kR(Pn(d.pings)),new DR(D.iC.adPodIndex));
v&&W.push(new Qf(v));(D=ac5(I,u))&&W.push(new Xl(D));e&&W.push(new P0(e.t6));d.adNextParams&&W.push(new LB(d.adNextParams));d.clickthroughEndpoint&&W.push(new fB(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&W.push(new L2(d.legacyInfoCardVastExtension));d.sodarExtensionData&&W.push(new OE(d.sodarExtensionData));U&&d.adPodSkipTarget&&d.adPodSkipTarget>0&&(W.push(U),W.push(new $S(d.adPodSkipTarget)));(e=X.get(d.externalVideoId))&&W.push(new YS(e));e=W}else e=new L("Invalid vod media renderer")}if(e instanceof
L)return e;F=Object.assign({},C,x,{hp:P,renderingContent:z.renderingContent,clientMetadata:new EB(e),V2:TM(q,F)(C),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData});z=g.J(z.renderingContent,mE);if(!z||!NZ(z))return new L("Invalid meida renderer");N=KG(N,z.externalVideoId);N.instreamVideoAdRenderer=z;N.uM="AD_PLACEMENT_KIND_START";return w?(E=El(u,F,E,h,q,B,m,U,!1),E instanceof L?E:ac5(F.layoutId,u)&&E?{layout:Object.assign({},F,{clientMetadata:new EB(e.concat(new qy(E)))})}:{layout:F,Cv:E}):
{layout:F}};
Icn=function(F,k,z,x,D){if(!h8(k))return new L("Invalid PlayerBytesAdLayoutRenderer");var e=g.J(k.renderingContent,uv);if(!e||e.durationMilliseconds===void 0)return new L("Invalid endcap renderer");var C={layoutId:k.adLayoutMetadata.layoutId,layoutType:k.adLayoutMetadata.layoutType,HR:"adapter"};x=[new My(e.durationMilliseconds),new K2({impressionCommands:void 0,abandonCommands:e.abandonCommands?[{commandExecutorCommand:e.abandonCommands}]:void 0,completeCommands:e.completionCommands}),new xS(x),
new sE("LAYOUT_TYPE_ENDCAP")];if(D){x.push(new DR(D.iC.adPodIndex-1));x.push(new H0(D.iC.adPodIndex));var p;x.push(new $S((p=D.adPodSkipTarget)!=null?p:-1))}return Object.assign({},C,p$,{renderingContent:k.renderingContent,clientMetadata:new EB(x),hp:e.skipPings?new Map([["skip",e.skipPings]]):new Map,V2:TM(z,F)(C),adLayoutLoggingData:k.adLayoutMetadata.adLayoutLoggingData})};
El=function(F,k,z,x,D,e,C,p,E){F=F.filter(function(q){return q.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&q.adSlotMetadata.triggeringSourceLayoutId===k.layoutId});
if(F.length!==0){if(F.length!==1)return new L("Invalid InPlayer slot association for the given PlayerBytes layout");F=F[0];C=lcI(F,e,z,x,C);if(C instanceof L)return C;var X;e={slotId:F.adSlotMetadata.slotId,slotType:F.adSlotMetadata.slotType,slotPhysicalPosition:(X=F.adSlotMetadata.slotPhysicalPosition)!=null?X:1,HR:"core",slotEntryTrigger:C.slotEntryTrigger,slotFulfillmentTriggers:C.slotFulfillmentTriggers,slotExpirationTriggers:C.slotExpirationTriggers};X=g.J(F.fulfillmentContent.fulfilledLayout,
XZD);if(!X||!DWp(X))return new L("Invalid InPlayerAdLayoutRenderer");C={layoutId:X.adLayoutMetadata.layoutId,layoutType:X.adLayoutMetadata.layoutType,HR:"core"};z=ec(X,z,x);if(z instanceof L)return z;x=[];E&&x.push(new aq({}));if(X.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")x.push.apply(x,g.r(Six(F.adSlotMetadata.triggerEvent,k)));else if(X.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")x.push(new xS(C$(F.adSlotMetadata.triggerEvent))),p&&x.push(p);else return new L("Not able to parse an SDF InPlayer layout");
D=Object.assign({},C,z,{renderingContent:X.renderingContent,hp:new Map,V2:TM(D,e)(C),clientMetadata:new EB(x),adLayoutLoggingData:X.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},e,{fulfilledLayout:D,clientMetadata:new EB([])})}};
Six=function(F,k){var z=[];z.push(new xS(C$(F)));z.push(new Qf(k.layoutId));(F=XX(k.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&z.push(new GB(F));(F=XX(k.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&z.push(new jM(F));(F=XX(k.clientMetadata,"metadata_type_remote_slots_data"))&&z.push(new YS(F));(F=XX(k.clientMetadata,"metadata_type_ad_next_params"))&&z.push(new LB(F));(F=XX(k.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&z.push(new fB(F));(F=
XX(k.clientMetadata,"metadata_type_ad_pod_info"))&&z.push(new iF(F));(k=XX(k.clientMetadata,"metadata_type_ad_video_id"))&&z.push(new eM(k));return z};
HBC=function(F,k,z,x,D,e){function C(X){return X_(k,X)}
var p=x.P4.inPlayerSlotId,E={layoutId:x.P4.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",HR:"core"};z={slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,HR:"core",slotEntryTrigger:new Io(C,F),slotFulfillmentTriggers:[new Kp(C,p)],slotExpirationTriggers:[new W7(C,p),new ML(C,z)]};F=Object.assign({},E,{layoutExitNormalTriggers:[new ao(C,F)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],hp:new Map,clientMetadata:new EB([new uF(x.P4),
new xS(x.adPlacementConfig),D]),V2:TM(e,z)(E),adLayoutLoggingData:x.P4.adLayoutLoggingData});return Object.assign({},z,{clientMetadata:new EB([new yf(F)])})};
ac5=function(F,k){k=g.l(k);for(var z=k.next();!z.done;z=k.next())if(z=z.value,z.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var x=g.J(z.fulfillmentContent.fulfilledLayout,IO);if(x&&(x=g.J(x.renderingContent,Oj))&&x.associatedPlayerBytesLayoutId===F)return z}};
lcI=function(F,k,z,x,D){var e=bBD(MZ(F.slotEntryTrigger,z,x),D,F,k);if(e instanceof L)return e;for(var C=[],p=g.l(F.slotFulfillmentTriggers),E=p.next();!E.done;E=p.next()){E=MZ(E.value,z,x);if(E instanceof L)return E;C.push(E)}C=dNx(C,D,F,k);k=[];F=g.l(F.slotExpirationTriggers);for(D=F.next();!D.done;D=F.next()){D=MZ(D.value,z,x);if(D instanceof L)return D;k.push(D)}return{slotEntryTrigger:e,slotFulfillmentTriggers:C,slotExpirationTriggers:k}};
bBD=function(F,k,z,x){return k&&z.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&F instanceof c7?new Zk(function(D){return X_(x,D)},z.adSlotMetadata.slotId):F};
dNx=function(F,k,z,x){return k&&z.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?F.map(function(D){return D instanceof Kp?new oO(function(e){return X_(x,e)},z.adSlotMetadata.slotId):D}):F};
ec=function(F,k,z){for(var x=[],D=g.l(F.layoutExitNormalTriggers||[]),e=D.next();!e.done;e=D.next()){e=MZ(e.value,k,z);if(e instanceof L)return e;x.push(e)}D=[];e=g.l(F.layoutExitSkipTriggers||[]);for(var C=e.next();!C.done;C=e.next()){C=MZ(C.value,k,z);if(C instanceof L)return C;D.push(C)}e=[];C=g.l(F.layoutExitMuteTriggers||[]);for(var p=C.next();!p.done;p=C.next()){p=MZ(p.value,k,z);if(p instanceof L)return p;e.push(p)}C=[];F=g.l(F.layoutExitUserInputSubmittedTriggers||[]);for(p=F.next();!p.done;p=
F.next()){p=MZ(p.value,k,z);if(p instanceof L)return p;C.push(p)}return{layoutExitNormalTriggers:x,layoutExitSkipTriggers:D,layoutExitMuteTriggers:e,layoutExitUserInputSubmittedTriggers:C,Ry:[]}};
Ak=function(F){var k=g.J(F.renderingContent,mE);if(k==null?0:k.pings)return Oc(k.pings);F=g.J(F.renderingContent,uv);return(F==null?0:F.skipPings)?new Map([["skip",F.skipPings]]):new Map};
c56=function(F,k,z,x,D){k=g.J(k.renderingContent,mE);if(!k)return new L("Invalid rendering content for DAI media layout");F=[new C2(x),new v0(z.Ow.videoLengthSeconds),new c0(z.Ow.playerVars),new Vf(z.ac),new Iq(z.Cq),new H0(z.Vt),new xS(C$(F)),new eM(z.Ow.adVideoId),new iF(z.iC),k.sodarExtensionData&&new OE(k.sodarExtensionData),new GB({current:null}),new aq({}),new kR(Pn(k.pings))].filter(TkC);D!==void 0&&F.push(new Ju(D));return F};
vWM=function(F,k,z){F=F.map(function(E){return zW(g.J(E.renderingContent,mE),!1)});
var x=F.map(function(E){return E.videoLengthSeconds}),D=x.map(function(E,X){return new v7(X,x)}),e=k,C=z,p=[];
F.forEach(function(E,X){C=Math.min(e+E.videoLengthSeconds*1E3,z);LG(E.playerVars,D[X]);p.push({Ow:E,ac:e,Cq:C,Vt:X,iC:D[X]});e=C});
return p};
Psa=function(F,k,z){for(var x=[],D=g.l(F),e=D.next();!e.done;e=D.next())if(e=g.J(e.value.renderingContent,mE)){if(!NZ(e))return new L("Invalid vod media renderer");x.push(J5p(e))}D=x.map(function(N){return N.EE});
e=[];for(var C=0,p=0;p<F.length;p++){var E=g.J(F[p].renderingContent,mE);if(E){var X=new v7(C,D),q=iq(x[C].playerVars,x[C].RQ,k,z,X);e[p]={iC:X,adPodSkipTarget:E.adPodSkipTarget,FER:x[C],t6:q};C++}}return e};
J5p=function(F){var k=DC(F.playerVars),z=Number(k.length_seconds);isNaN(z)&&(z=0,To("Expected valid length seconds in player vars but got NaN"));return{playerVars:k,RQ:F.playerVars,EE:z}};
C$=function(F){switch(F){case "SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED":return{kind:"AD_PLACEMENT_KIND_LAYOUT_ID_ENTERED"};case "SLOT_TRIGGER_EVENT_BEFORE_CONTENT":return{kind:"AD_PLACEMENT_KIND_START"};case "SLOT_TRIGGER_EVENT_CONTENT_OFFSET":return{kind:"AD_PLACEMENT_KIND_MILLISECONDS"};case "SLOT_TRIGGER_EVENT_AFTER_CONTENT":return{kind:"AD_PLACEMENT_KIND_END"};case "SLOT_TRIGGER_EVENT_CONTENT_PAUSED":return{kind:"AD_PLACEMENT_KIND_PAUSE"};default:return{kind:"AD_PLACEMENT_KIND_UNKNOWN"}}};
UNx=function(F){if(g.J(F.renderingContent,CG)){var k;return((k=g.J(F.renderingContent,CG))==null?void 0:k.impressionPings)||[]}if(g.J(F.renderingContent,j7)){var z;return((z=g.J(F.renderingContent,j7))==null?void 0:z.impressionPings)||[]}if(g.J(F.renderingContent,e7)){var x;return((x=g.J(F.renderingContent,e7))==null?void 0:x.impressionPings)||[]}return[]};
RWI=function(F,k,z,x,D,e,C,p,E){var X=z.pings;return X?[y5k(F,e,p,D,function(q){var N=q.slotId;q=E(q);var u=z.adLayoutLoggingData,w=z.progressCommands;N=xI(k.L.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",N);var m={layoutId:N,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",HR:"core"};return{layoutId:N,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",hp:Oc(X),layoutExitNormalTriggers:[new ML(k.Y,e)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],
Ry:[],HR:"core",clientMetadata:new EB([new xS(x),new kR(Pn(X)),new oG(uHa(X)),new v0(C/1E3),new K2({progressCommands:w}),new n2(C/1E3)]),V2:q(m),adLayoutLoggingData:u}})]:new L("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:z})};
YiR=function(F,k,z,x,D,e,C,p){F=gWk(F,z,e,C,x,function(E){var X=E.slotId;E=p(E);X=xI(k.L.get(),"LAYOUT_TYPE_FORECASTING",X);var q={layoutId:X,layoutType:"LAYOUT_TYPE_FORECASTING",HR:"core"},N=new Map,u=D.impressionUrls;u&&N.set("impression",u);return{layoutId:X,layoutType:"LAYOUT_TYPE_FORECASTING",hp:N,layoutExitNormalTriggers:[new np(k.Y,X)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:"core",clientMetadata:new EB([new bF(D),new xS(z)]),V2:E(q)}});
return F instanceof L?F:[F]};
Mvn=function(F,k,z,x,D,e,C){return[nWY(F,e,x,function(p){var E=p.slotId;p=C(p);E=xI(k.L.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",E);var X={layoutId:E,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",HR:"core"};return{layoutId:E,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",hp:new Map,layoutExitNormalTriggers:[new ML(k.Y,e)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:"core",clientMetadata:new EB([new Au(D),new xS(z)]),V2:p(X),
adLayoutLoggingData:D.adLayoutLoggingData}})]};
fck=function(F,k,z,x,D,e,C,p){F=LI5(F,z,e,C,x,function(E,X){var q=E.slotId;E=p(E);var N=D.contentSupportedRenderer;N?N.textOverlayAdContentRenderer?(N=xI(k.L.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",q),X=qx(k,N,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",D,z,E,Nx(k,X,q))):N.enhancedTextOverlayAdContentRenderer?(N=xI(k.L.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",q),X=qx(k,N,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",D,z,E,Nx(k,X,q))):N.imageOverlayAdContentRenderer?(N=xI(k.L.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
q),X=Nx(k,X,q),X.push(new iB(k.Y,45E3,N)),X=qx(k,N,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",D,z,E,X)):X=new pE("InvideoOverlayAdRenderer without appropriate sub renderer"):X=new pE("InvideoOverlayAdRenderer without contentSupportedRenderer");return X});
return F instanceof L?F:[F]};
Fua=function(F,k,z,x,D,e,C,p,E){var X=Number(x.durationMilliseconds);return isNaN(X)?new L("Expected valid duration for AdActionInterstitialRenderer."):function(q){return KIM(k,q.slotId,z,x,X,{impressionCommands:void 0,abandonCommands:x.abandonCommands?[{commandExecutorCommand:x.abandonCommands}]:void 0,completeCommands:x.completionCommands},x.skipPings?new Map([["skip",x.skipPings]]):new Map,C(q),function(N){return WIa(F,N,D,function(u,w){var m=u.slotId;u=C(u);m=xI(k.L.get(),"LAYOUT_TYPE_ENDCAP",
m);return oT(k,m,w,z,u,"LAYOUT_TYPE_ENDCAP",[new uF(x),p],x.adLayoutLoggingData)})},E,e-1,x.adLayoutLoggingData,e)}};
kBx=function(F,k,z,x){if(!z.playerVars)return new L("No playerVars available in AdIntroRenderer.");var D=DC(z.playerVars);D.autoplay="1";return function(e){var C=e.slotId;e=x(e);C=xI(F.L.get(),"LAYOUT_TYPE_MEDIA",C);var p={layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA",HR:"adapter"};return{Jh:{layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA",hp:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:"adapter",clientMetadata:new EB([new SM({}),
new xS(k),new GB({current:null}),new c0(D)]),V2:e(p)},Bz:[new H7(F.Y,C,["error"])],bd:[],zd:[],yx:[]}}};
zXx=function(F,k,z,x,D,e,C,p,E,X){X=X===void 0?!1:X;var q=F_(D);if(!Txk(D,X))return new L("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:D});if(q<=0)return new L("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:D});var N=ycY(F,k,D,e,z,x,C);return N instanceof L?N:function(u){return oSx(k,u.slotId,z,q,D,kX(D),C(u),N,p,E)}};
xy5=function(F,k,z,x,D,e,C,p){function E(N){return WIa(F,N,x,X)}
function X(N,u){var w=N.slotId;N=C(N);w=xI(k.L.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",w);return oT(k,w,u,z,N,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new wo(D),e],D.adLayoutLoggingData)}
if(!sdn(D))return new L("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:D});var q=D.timeoutSeconds*1E3;return function(N){var u=N.slotId,w={impressionCommands:D.impressionCommands,completeCommands:D.timeoutCommands,skipCommands:D.dismissCommands};N=C(N);u=uq(k,u,z,q,w,new Map,N,E,void 0,w2(k,z,D.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));w=new hu(u.wu);N=new DR(p);return{Jh:{layoutId:u.layoutId,layoutType:u.layoutType,hp:u.hp,layoutExitNormalTriggers:[],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:u.HR,clientMetadata:new EB([].concat(g.r(u.Ws),[w,N])),V2:u.V2,adLayoutLoggingData:u.adLayoutLoggingData},Bz:[],bd:u.layoutExitMuteTriggers,zd:u.layoutExitUserInputSubmittedTriggers,yx:u.Ry,Cv:u.Cv}}};
Dyn=function(F,k,z,x,D,e,C,p,E,X,q,N,u,w,m,h){F=sc(F,"SLOT_TYPE_PLAYER_BYTES");x=jz6(k,C,x,D,F,X,q);if(x instanceof L)return x;var B;C=(B=XX(x.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:B.layoutId;if(!C)return new L("Invalid adNotify layout");k=i2x(C,k,z,D,e,E,p,X,N,u,w,m,h);return k instanceof L?k:[x].concat(g.r(k))};
i2x=function(F,k,z,x,D,e,C,p,E,X,q,N,u){z=$yn(k,z,x,e,C,p,E,X,q,N,u);jq6(e)?(x=eX6(k,F),F=sc(k.L.get(),"SLOT_TYPE_IN_PLAYER"),e=xI(k.L.get(),"LAYOUT_TYPE_SURVEY",F),p=mp(k,x,p),k=[].concat(g.r(p.slotExpirationTriggers),[new P7(k.Y,e)]),F=z({slotId:p.slotId,slotType:p.slotType,slotPhysicalPosition:p.slotPhysicalPosition,slotEntryTrigger:p.slotEntryTrigger,slotFulfillmentTriggers:p.slotFulfillmentTriggers,slotExpirationTriggers:k,HR:p.HR},{slotId:F,layoutId:e}),D=F instanceof L?F:{wK:Object.assign({},
p,{slotExpirationTriggers:k,clientMetadata:new EB([new yf(F.layout)]),adSlotLoggingData:D}),Jv:F.Jv}):D=paa(k,F,p,D,z);return D instanceof L?D:[].concat(g.r(D.Jv),[D.wK])};
Aun=function(F,k,z,x,D,e,C,p,E,X,q,N,u,w){k=$yn(F,k,z,D,e,C,E,X,q,N,u,w);jq6(D)?(D=CF6(F,z,C,p),D instanceof L?F=D:(p=sc(F.L.get(),"SLOT_TYPE_IN_PLAYER"),E=xI(F.L.get(),"LAYOUT_TYPE_SURVEY",p),C=[].concat(g.r(D.slotExpirationTriggers),[new P7(F.Y,E)]),p=k({slotId:D.slotId,slotType:D.slotType,slotPhysicalPosition:D.slotPhysicalPosition,HR:D.HR,slotEntryTrigger:D.slotEntryTrigger,slotFulfillmentTriggers:D.slotFulfillmentTriggers,slotExpirationTriggers:C},{slotId:p,layoutId:E}),F=p instanceof L?p:{wK:{slotId:D.slotId,
slotType:D.slotType,slotPhysicalPosition:D.slotPhysicalPosition,slotEntryTrigger:TW(F,z,D.slotId,D.slotEntryTrigger),slotFulfillmentTriggers:lq(F,z,D.slotId,D.slotFulfillmentTriggers),slotExpirationTriggers:C,HR:D.HR,clientMetadata:new EB([new xR(Qs(z)),new yf(p.layout),new Do({Jr:F.Jr(z)})]),adSlotLoggingData:x},Jv:p.Jv})):F=EW6(F,z,C,p,x,E.oS,k);return F instanceof L?F:F.Jv.concat(F.wK)};
jq6=function(F){F=g.l(F);for(var k=F.next();!k.done;k=F.next())if(g.J(k.value,lB))return!0;return!1};
$yn=function(F,k,z,x,D,e,C,p,E,X,q,N){return function(u,w){if(bN(q)&&dB(q))a:{var m=p0p(x,z,q);if(m instanceof L)w=m;else{for(var h=0,B=[],U=[],v=[],P=[],I=[],d=[],W=new UE({current:null}),M=new jM({current:null}),xY=!1,$Y=[],Fx=0,y=[],K=0;K<x.length;K++){var Q=x[K],R=g.J(Q,mE);if(R){R=xX(R,z,q);if(R instanceof pE){w=new L(R);break a}var Jn=new v7(Fx,m),s$=iq(R.playerVars,R.RQ,C,X,Jn);Fx++;y[K]={renderer:Q,data:R,iC:Jn,t6:s$}}}Fx=-1;for(m=0;m<x.length;m++)if(K=x[m],Q=g.J(K,TJ)){K=kBx(k,z,Q,p);if(K instanceof
L){w=K;break a}K=K(u);B.push(K.Jh);U=[].concat(g.r(K.Bz),g.r(U));v=[].concat(g.r(K.bd),g.r(v));K.Cv&&($Y=[K.Cv].concat(g.r($Y)))}else if(g.J(K,mE))Q=y[m],Fx=Q.data,K=Q.iC,Q=Q.t6,R=y[m+1],Jn=void 0,R&&(Jn=R.t6),K=ESR(k,Fx.layoutId,Fx.Kg,z,Q,Fx.EE,e,K,p(u),M,E.get(Fx.Kg.externalVideoId),Jn,N),h++,B.push(K.Jh),U=[].concat(g.r(K.Bz),g.r(U)),v=[].concat(g.r(K.bd),g.r(v)),xY||(d.push(M),xY=!0),Fx=(Fx=Fx.Kg.adPodSkipTarget)&&Fx>0?Fx:-1;else if(Q=g.J(K,uv)){K=Fua(F,k,z,Q,e,h,p,M,Fx);if(K instanceof L){w=
K;break a}K=K(u);B.push(K.Jh);U=[].concat(g.r(K.Bz),g.r(U));v=[].concat(g.r(K.bd),g.r(v));K.Cv&&($Y=[K.Cv].concat(g.r($Y)))}else if(Q=g.J(K,lB)){if(w===void 0){w=new L("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Q});break a}K=zXx(F,k,z,e,Q,W,p,w,h,zU(q,"supports_multi_step_on_desktop"));if(K instanceof L){w=K;break a}K=K(u);B.push(K.Jh);K.Cv&&$Y.push(K.Cv);U=[].concat(g.r(K.Bz),g.r(U));v=[].concat(g.r(K.bd),g.r(v));P=[].concat(g.r(K.zd),g.r(P));
I=[].concat(g.r(K.yx),g.r(I));d=[W].concat(g.r(d))}else if(K=g.J(K,QS)){K=xy5(F,k,z,e,K,W,p,h);if(K instanceof L){w=K;break a}K=K(u);B.push(K.Jh);K.Cv&&$Y.push(K.Cv);v=[].concat(g.r(K.bd),g.r(v))}else{w=new L("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}w={Ve:B,layoutExitSkipTriggers:U,layoutExitUserInputSubmittedTriggers:P,Ry:I,layoutExitMuteTriggers:v,Ws:d,Jv:$Y}}}else a:if(h=p0p(x,z,q),h instanceof L)w=h;else{B=0;U=[];v=[];P=[];I=[];d=[];W=[];M=new UE({current:null});xY=new jM({current:null});
$Y=!1;y=[];Fx=-1;m=g.l(x);for(K=m.next();!K.done;K=m.next())if(K=K.value,g.J(K,TJ)){K=kBx(k,z,g.J(K,TJ),p);if(K instanceof L){w=K;break a}K=K(u);U.push(K.Jh);v=[].concat(g.r(K.Bz),g.r(v));P=[].concat(g.r(K.bd),g.r(P));K.Cv&&(y=[K.Cv].concat(g.r(y)))}else if(g.J(K,mE)){Fx=xX(g.J(K,mE),z,q);if(Fx instanceof pE){w=new L(Fx);break a}K=new v7(B,h);K=ESR(k,Fx.layoutId,Fx.Kg,z,iq(Fx.playerVars,Fx.RQ,C,X,K),Fx.EE,e,K,p(u),xY,E.get(Fx.Kg.externalVideoId),void 0,N);B++;U.push(K.Jh);v=[].concat(g.r(K.Bz),g.r(v));
P=[].concat(g.r(K.bd),g.r(P));$Y||(W.push(xY),$Y=!0);Fx=(Fx=Fx.Kg.adPodSkipTarget)&&Fx>0?Fx:-1}else if(g.J(K,uv)){K=Fua(F,k,z,g.J(K,uv),e,B,p,xY,Fx);if(K instanceof L){w=K;break a}K=K(u);U.push(K.Jh);v=[].concat(g.r(K.Bz),g.r(v));P=[].concat(g.r(K.bd),g.r(P));K.Cv&&(y=[K.Cv].concat(g.r(y)))}else if(g.J(K,lB)){if(w===void 0){w=new L("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.J(K,lB)});break a}K=zXx(F,k,z,e,g.J(K,lB),M,p,w,B,zU(q,"supports_multi_step_on_desktop"));
if(K instanceof L){w=K;break a}K=K(u);U.push(K.Jh);K.Cv&&y.push(K.Cv);v=[].concat(g.r(K.Bz),g.r(v));P=[].concat(g.r(K.bd),g.r(P));I=[].concat(g.r(K.zd),g.r(I));d=[].concat(g.r(K.yx),g.r(d));W=[M].concat(g.r(W))}else if(g.J(K,QS)){K=xy5(F,k,z,e,g.J(K,QS),M,p,B);if(K instanceof L){w=K;break a}K=K(u);U.push(K.Jh);K.Cv&&y.push(K.Cv);P=[].concat(g.r(K.bd),g.r(P))}else{w=new L("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}w={Ve:U,layoutExitSkipTriggers:v,layoutExitUserInputSubmittedTriggers:I,
Ry:d,layoutExitMuteTriggers:P,Ws:W,Jv:y}}w instanceof L?u=w:(d=u.slotId,h=w.Ve,B=w.layoutExitSkipTriggers,U=w.layoutExitMuteTriggers,v=w.layoutExitUserInputSubmittedTriggers,P=w.Ws,u=p(u),I=D?D.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",d=D?D.layoutId:xI(k.L.get(),I,d),W={layoutId:d,layoutType:I,HR:"core"},u={layout:{layoutId:d,layoutType:I,hp:new Map,layoutExitNormalTriggers:[new np(k.Y,d)],layoutExitSkipTriggers:B,layoutExitMuteTriggers:U,layoutExitUserInputSubmittedTriggers:v,Ry:[],HR:"core",
clientMetadata:new EB([new tu(h)].concat(g.r(P))),V2:u(W)},Jv:w.Jv});return u}};
p0p=function(F,k,z){var x=[];F=g.l(F);for(var D=F.next();!D.done;D=F.next())if(D=D.value,g.J(D,mE)){D=xX(g.J(D,mE),k,z);if(D instanceof pE)return new L(D);x.push(D.EE)}return x};
qED=function(F,k,z,x,D,e,C,p){if(!Txk(z,p===void 0?!1:p))return new L("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:z});var E=F_(z);if(E<=0)return new L("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:z});var X=new UE({current:null}),q=ycY(F,k,z,X,x,e,C);return X0k(F,x,e,E,D,function(N,u){var w=N.slotId,m=kX(z);N=C(N);var h,B=(h=w2(k,x,z.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?h:
xI(k.L.get(),"LAYOUT_TYPE_MEDIA_BREAK",w);w={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",HR:"core"};h=q(B,u);var U=XX(h.clientMetadata,"metadata_type_fulfilled_layout");U||To("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");m=[new xS(x),new My(E),new K2(m),X];U&&m.push(new sE(U.layoutType));return{Jpk:{layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",hp:new Map,layoutExitNormalTriggers:[new np(k.Y,B)],layoutExitSkipTriggers:[new fp(k.Y,
u.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new x8(k.Y,u.layoutId)],Ry:[],HR:"core",clientMetadata:new EB(m),V2:N(w)},Mk_:h}})};
No5=function(F){if(!hKI(F))return!1;var k=g.J(F.adVideoStart,hk);return k?g.J(F.linearAd,mE)&&X4(k)?!0:(To("Invalid Sandwich with notify"),!1):!1};
ul5=function(F){if(F.linearAds==null)return!1;F=g.J(F.adStart,hk);return F?X4(F)?!0:(To("Invalid LASR with notify"),!1):!1};
w0p=function(F){if(!Qdn(F))return!1;F=g.J(F.adStart,hk);return F?X4(F)?!0:(To("Invalid LASR with notify"),!1):!1};
sl=function(F,k,z,x,D,e,C,p,E,X){this.j=F;this.L=k;this.Y=z;this.Ff=x;this.Fv=D;this.U=e;this.ek=C;this.V7=p;this.kP=E;this.loadPolicy=X===void 0?1:X};
UWx=function(F,k,z,x,D,e,C,p,E,X){var q=[];if(k.length===0&&x.length===0&&z.length===0)return q;k=k.filter(qZ);var N=z.filter(uTn),u=x.filter(qZ),w=new Map,m=mNI(k),h=z.some(function(R){var Jn;return(R==null?void 0:(Jn=R.adSlotMetadata)==null?void 0:Jn.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),B=z.some(function(R){var Jn;
return(R==null?void 0:(Jn=R.adSlotMetadata)==null?void 0:Jn.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),U=z.some(function(R){var Jn;
return(R==null?void 0:(Jn=R.adSlotMetadata)==null?void 0:Jn.slotType)==="SLOT_TYPE_IN_PLAYER"}),v=z.some(function(R){var Jn,s$;
return(R==null?void 0:(Jn=R.adSlotMetadata)==null?void 0:Jn.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(R==null?void 0:(s$=R.adSlotMetadata)==null?void 0:s$.slotType)==="SLOT_TYPE_ABOVE_FEED"});
z=z.some(function(R){var Jn;return(R==null?void 0:(Jn=R.adSlotMetadata)==null?void 0:Jn.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"});
if(h||B||U||v||z)X=Gxk(N,k,p,D,m,F.Fv.get(),F.loadPolicy,w,F.Ff.get(),F.j.get(),U,C,E,X),X instanceof L?To(X,void 0,void 0,{contentCpn:D}):q.push.apply(q,g.r(X));X=g.l(k);for(z=X.next();!z.done;z=X.next())z=z.value,B=mya(F,w,z,D,e,C,h,p,m,E,N),B instanceof L?To(B,void 0,void 0,{renderer:z.renderer,config:z.config.adPlacementConfig,kind:z.config.adPlacementConfig.kind,contentCpn:D,daiEnabled:C}):q.push.apply(q,g.r(B));Ton(F.Ff.get())||(e=lR5(F,u,D,p,m,w),q.push.apply(q,g.r(e)));if(F.U===null||C&&!p.CZ){var P,
I,d;F=p.oS&&k.length===1&&((P=k[0].config)==null?void 0:(I=P.adPlacementConfig)==null?void 0:I.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((d=k[0].renderer)==null?void 0:d.adBreakServiceRenderer);if(!q.length&&!F){var W,M,xY,$Y;To("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":k.length,contentCpn:D,"first APR kind":(W=k[0])==null?void 0:(M=W.config)==null?void 0:(xY=M.adPlacementConfig)==null?void 0:xY.kind,renderer:($Y=k[0])==null?void 0:
$Y.renderer})}return q}P=x.filter(qZ);q.push.apply(q,g.r(b1p(w,P,F.L.get(),F.U,D,h)));if(!q.length){var Fx,y,K,Q;To("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":k.length,contentCpn:D,daiEnabled:C.toString(),"first APR kind":(Fx=k[0])==null?void 0:(y=Fx.config)==null?void 0:(K=y.adPlacementConfig)==null?void 0:K.kind,renderer:(Q=k[0])==null?void 0:Q.renderer})}return q};
lR5=function(F,k,z,x,D,e){function C(u){return TM(F.Fv.get(),u)}
var p=[];k=g.l(k);for(var E=k.next();!E.done;E=k.next()){E=E.value;var X=E.renderer,q=X.sandwichedLinearAdRenderer,N=X.linearAdSequenceRenderer;q&&No5(q)?(To("Found AdNotify with SandwichedLinearAdRenderer"),N=g.J(q.adVideoStart,hk),q=g.J(q.linearAd,mE),fG(e,X,E.config.adPlacementConfig.kind),X=void 0,N=eWC((X=N)==null?void 0:X.layout.layoutId,F.L.get(),F.Y.get(),E.config.adPlacementConfig,E.adSlotLoggingData,q,z,x,C,D,F.loadPolicy,F.Ff.get(),F.Fv.get()),N instanceof L?To(N):p.push.apply(p,g.r(N))):
N&&(!N.adLayoutMetadata&&ul5(N)||N.adLayoutMetadata&&w0p(N))&&(To("Found AdNotify with LinearAdSequenceRenderer"),fG(e,X,E.config.adPlacementConfig.kind),X=void 0,q=i2x((X=g.J(N.adStart,hk))==null?void 0:X.layout.layoutId,F.L.get(),F.Y.get(),E.config.adPlacementConfig,E.adSlotLoggingData,N.linearAds,$8(N.adLayoutMetadata)?N.adLayoutMetadata:void 0,z,x,C,D,F.loadPolicy,F.Ff.get()),q instanceof L?To(q):p.push.apply(p,g.r(q)))}return p};
mya=function(F,k,z,x,D,e,C,p,E,X,q){function N(U){return TM(F.Fv.get(),U)}
var u=z.renderer,w=z.config.adPlacementConfig,m=w.kind,h=z.adSlotLoggingData,B=p.CZ&&m==="AD_PLACEMENT_KIND_START";B=e&&!B;if(u.adsEngagementPanelRenderer!=null)return WQ(k,z.elementId,m,u.adsEngagementPanelRenderer.isContentVideoEngagementPanel,u.adsEngagementPanelRenderer.adVideoId,u.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,w,h,function(U,v,P,I){var d=F.Y.get(),W=U.slotId,M=u.adsEngagementPanelRenderer;U=TM(F.Fv.get(),U);return r2(d,W,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new nB(M),v,P,M.impressionPings,U,u.adsEngagementPanelRenderer.adLayoutLoggingData,I)}),[];
if(u.adsEngagementPanelLayoutViewModel)return WQ(k,z.elementId,m,u.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,u.adsEngagementPanelLayoutViewModel.adVideoId,u.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,w,h,function(U,v,P,I){var d=F.Y.get(),W=U.slotId,M=u.adsEngagementPanelLayoutViewModel;U=TM(F.Fv.get(),U);return BF(d,W,"LAYOUT_TYPE_PANEL",new MN(M),v,P,U,u.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,I)}),[];
if(u.actionCompanionAdRenderer!=null){if(u.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return V1H(F.L.get(),F.U,F.Y.get(),u.actionCompanionAdRenderer,w,h,x,N);WQ(k,z.elementId,m,u.actionCompanionAdRenderer.isContentVideoCompanion,u.actionCompanionAdRenderer.adVideoId,u.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,w,h,function(U,v,P,I){var d=F.Y.get(),W=U.slotId,M=u.actionCompanionAdRenderer;U=TM(F.Fv.get(),U);return r2(d,W,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
new gk(M),v,P,M.impressionPings,U,u.actionCompanionAdRenderer.adLayoutLoggingData,I)})}else if(u.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(u.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return Ihn(F.L.get(),F.U,F.Y.get(),u.topBannerImageTextIconButtonedLayoutViewModel,w,h,x,N);
WQ(k,z.elementId,m,u.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,u.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,u.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,w,h,function(U,v,P,I){var d=F.Y.get(),W=U.slotId,M=u.topBannerImageTextIconButtonedLayoutViewModel;U=TM(F.Fv.get(),U);return BF(d,W,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new YW(M),v,P,U,u.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,I)})}else if(u.imageCompanionAdRenderer)WQ(k,
z.elementId,m,u.imageCompanionAdRenderer.isContentVideoCompanion,u.imageCompanionAdRenderer.adVideoId,u.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,w,h,function(U,v,P,I){var d=F.Y.get(),W=U.slotId,M=u.imageCompanionAdRenderer;
U=TM(F.Fv.get(),U);return r2(d,W,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Wa(M),v,P,M.impressionPings,U,u.imageCompanionAdRenderer.adLayoutLoggingData,I)});
else if(u.bannerImageLayoutViewModel)WQ(k,z.elementId,m,u.bannerImageLayoutViewModel.isContentVideoCompanion,u.bannerImageLayoutViewModel.adVideoId,u.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,w,h,function(U,v,P,I){var d=F.Y.get(),W=U.slotId,M=u.bannerImageLayoutViewModel;U=TM(F.Fv.get(),U);return BF(d,W,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Fl(M),v,P,U,u.bannerImageLayoutViewModel.adLayoutLoggingData,I)});
else if(u.shoppingCompanionCarouselRenderer)WQ(k,z.elementId,m,u.shoppingCompanionCarouselRenderer.isContentVideoCompanion,u.shoppingCompanionCarouselRenderer.adVideoId,u.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,w,h,function(U,v,P,I){var d=F.Y.get(),W=U.slotId,M=u.shoppingCompanionCarouselRenderer;U=TM(F.Fv.get(),U);return r2(d,W,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new kS(M),v,P,M.impressionPings,U,u.shoppingCompanionCarouselRenderer.adLayoutLoggingData,I)});
else if(u.adBreakServiceRenderer){if(!PZx(z))return[];if(m==="AD_PLACEMENT_KIND_PAUSE")return cc6(F.L.get(),w,h,z.renderer.adBreakServiceRenderer,x);if(m!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&m!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return v_M(F.L.get(),w,h,z.renderer.adBreakServiceRenderer,x,D,e);p.oS||To("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:m,adPlacementConfig:w,daiEnabledForContentVideo:String(e),isServedFromLiveInfra:String(p.oS),clientPlaybackNonce:p.clientPlaybackNonce});
if(m==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!F.ek)return new L("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!F.kP)return new L("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");F.kP.k7({adPlacementRenderer:z,contentCpn:x,V3:D});D=F.ek.get().getCurrentTimeSec(1,!1);return Qqa(F.L.get(),z.renderer.adBreakServiceRenderer,w,D,x,h,e)}if(!F.V7)return new L("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");
F.V7.k7({adPlacementRenderer:z,contentCpn:x,V3:D})}else{if(u.clientForecastingAdRenderer)return YiR(F.L.get(),F.Y.get(),w,h,u.clientForecastingAdRenderer,x,D,N);if(u.invideoOverlayAdRenderer)return fck(F.L.get(),F.Y.get(),w,h,u.invideoOverlayAdRenderer,x,D,N);if(u.instreamAdPlayerOverlayRenderer)return Mvn(F.L.get(),F.Y.get(),w,h,u.instreamAdPlayerOverlayRenderer,x,N);if((u.linearAdSequenceRenderer||u.instreamVideoAdRenderer)&&B)return zWM(F.L.get(),F.Y.get(),z,x,N,X,!F.Ff.get().T.C().V("html5_override_ad_video_length_killswitch"));
if(u.linearAdSequenceRenderer&&!B){if(C)return[];fG(k,u,m);if(u.linearAdSequenceRenderer.adLayoutMetadata){if(!Qdn(u.linearAdSequenceRenderer))return new L("Received invalid LinearAdSequenceRenderer.")}else if(u.linearAdSequenceRenderer.linearAds==null)return new L("Received invalid LinearAdSequenceRenderer.");if(g.J(u.linearAdSequenceRenderer.adStart,hk)){To("Found AdNotify in LinearAdSequenceRenderer");z=g.J(u.linearAdSequenceRenderer.adStart,hk);if(!i1n(z))return new L("Invalid AdMessageRenderer.");
e=u.linearAdSequenceRenderer.linearAds;return Dyn(F.j.get(),F.L.get(),F.Y.get(),F.Fv.get(),w,h,z,$8(u.linearAdSequenceRenderer.adLayoutMetadata)?u.linearAdSequenceRenderer.adLayoutMetadata:void 0,e,x,D,p,N,E,F.loadPolicy,F.Ff.get())}return Aun(F.L.get(),F.Y.get(),w,h,u.linearAdSequenceRenderer.linearAds,$8(u.linearAdSequenceRenderer.adLayoutMetadata)?u.linearAdSequenceRenderer.adLayoutMetadata:void 0,x,D,p,N,E,F.loadPolicy,F.Ff.get(),q)}if(!u.remoteSlotsRenderer||e){if(u.instreamVideoAdRenderer&&
!B){if(C)return[];fG(k,u,m);return Xan(F.L.get(),F.Y.get(),w,h,u.instreamVideoAdRenderer,x,D,p,N,E,F.loadPolicy,F.Ff.get(),F.Fv.get(),q)}if(u.instreamSurveyAdRenderer)return qED(F.L.get(),F.Y.get(),u.instreamSurveyAdRenderer,w,h,x,N,zU(F.Ff.get(),"supports_multi_step_on_desktop"));if(u.sandwichedLinearAdRenderer!=null)return hKI(u.sandwichedLinearAdRenderer)?g.J(u.sandwichedLinearAdRenderer.adVideoStart,hk)?(To("Found AdNotify in SandwichedLinearAdRenderer"),z=g.J(u.sandwichedLinearAdRenderer.adVideoStart,
hk),i1n(z)?(e=g.J(u.sandwichedLinearAdRenderer.linearAd,mE))?Cs5(z,e,w,F.j.get(),F.L.get(),F.Y.get(),F.Fv.get(),h,x,D,p,N,E,F.loadPolicy,F.Ff.get()):new L("Missing IVAR from Sandwich"):new L("Invalid AdMessageRenderer.")):Aun(F.L.get(),F.Y.get(),w,h,[u.sandwichedLinearAdRenderer.adVideoStart,u.sandwichedLinearAdRenderer.linearAd],void 0,x,D,p,N,E,F.loadPolicy,F.Ff.get()):new L("Received invalid SandwichedLinearAdRenderer.");if(u.videoAdTrackingRenderer!=null)return RWI(F.L.get(),F.Y.get(),u.videoAdTrackingRenderer,
w,h,x,D,p.wI,N)}}return[]};
GW=function(F,k,z,x,D,e,C,p){g.S.call(this);var E=this;this.L=F;this.U=k;this.O3=x;this.ek=D;this.Ff=e;this.oU=C;this.jr=p;this.Y=null;z.get().addListener(this);this.addOnDisposeCallback(function(){z.z4()||z.get().removeListener(E)});
x.get().addListener(this);this.addOnDisposeCallback(function(){x.z4()||x.get().removeListener(E)})};
sqH=function(F,k,z){var x=F.ek.get().getCurrentTimeSec(1,!1);F.Ff.get().T.C().Jp()&&Cp(F.oU.get(),"sdai","onopp.1;evt."+z.event+";start."+z.startSecs.toFixed(3)+";d."+z.B8.toFixed(3));he(F.L.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var D=F.U.get(),e=k.adPlacementRenderer.renderer.adBreakServiceRenderer,C=k.contentCpn,p=k.adPlacementRenderer.adSlotLoggingData,E=Ul(F.Ff.get()),X=F.oU;if(D.Ff.get().T.C().experiments.Ca("enable_smearing_expansion_dai")){var q=g.lw(D.Ff.get().T.C().experiments,
"max_prefetch_window_sec_for_livestream_optimization");var N=g.lw(D.Ff.get().T.C().experiments,"min_prefetch_offset_sec_for_livestream_optimization");E={Sa:hXC(z),JX:!1,cueProcessedMs:x*1E3};var u=z.startSecs+z.B8;if(x===0)E.ax=new Gl(0,u*1E3);else{N=z.startSecs-N;var w=N-x;E.ax=w<=0?new Gl(N*1E3,u*1E3):new Gl(Math.floor(x+Math.random()*Math.min(w,q))*1E3,u*1E3)}q=E}else q={Sa:hXC(z),JX:!1},u=z.startSecs+z.B8,z.startSecs<=x?E=new Gl((z.startSecs-4)*1E3,u*1E3):(N=Math.max(0,z.startSecs-x-10),E=new Gl(Math.floor(x+
Math.random()*(E?x===0?0:Math.min(N,5):N))*1E3,u*1E3)),q.ax=E;e=nG(D,e,C,q,p,[new ZR(z)]);tk(D.Ff.get())&&Cp(X.get(),"abrsm","cpi."+z.identifier+";cps."+z.startSecs+";cpd."+z.B8+";cts."+x+";rbf."+q.ax.start);X.get().T.Tw(q.ax.start/1E3-x,z.startSecs-x);return[e]})};
Zn=function(F){var k,z=(k=XX(F.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:k.current;if(!z)return null;k=XX(F.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var x=F.layoutId,D=XX(F.clientMetadata,"metadata_type_content_cpn"),e=XX(F.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),C=XX(F.clientMetadata,"metadata_type_player_overlay_layout_renderer"),p=XX(F.clientMetadata,"metadata_type_player_underlay_renderer"),E=XX(F.clientMetadata,
"metadata_type_ad_placement_config"),X=XX(F.clientMetadata,"metadata_type_video_length_seconds");var q=ea(F.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?XX(F.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):ea(F.clientMetadata,"metadata_type_layout_enter_ms")&&ea(F.clientMetadata,"metadata_type_layout_exit_ms")?(XX(F.clientMetadata,"metadata_type_layout_exit_ms")-XX(F.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{RV:x,contentCpn:D,BU:z,Cm:k,instreamAdPlayerOverlayRenderer:e,
playerOverlayLayoutRenderer:C,instreamAdPlayerUnderlayRenderer:p,adPlacementConfig:E,videoLengthSeconds:X,CX:q,inPlayerLayoutId:XX(F.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:XX(F.clientMetadata,"metadata_type_linked_in_player_slot_id")}};
Bok=function(F,k){return ru9(F,k)};
GBp=function(F,k){k=ru9(F,k);if(!k)return null;var z;k.CX=(z=XX(F.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:z.adBreakRemainingLengthSeconds;return k};
ru9=function(F,k){var z,x=(z=XX(F.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:z.current;if(!x)return null;z=Yen(F,k);return{xJ:gBI(F,k),adPlacementConfig:XX(F.clientMetadata,"metadata_type_ad_placement_config"),Ju:z,contentCpn:XX(F.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:XX(F.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:XX(F.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:XX(F.clientMetadata,
"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,CX:void 0,BU:x,RV:F.layoutId,videoLengthSeconds:XX(F.clientMetadata,"metadata_type_video_length_seconds")}};
vF=function(F,k,z,x,D,e,C,p,E){g.S.call(this);this.j=F;this.S=k;this.W=z;this.U=x;this.Y=D;this.L=e;this.Fv=C;this.Ff=p;this.xG=E;this.Q_=!0};
Uyp=function(F,k,z){return u0k(F.Y.get(),k.contentCpn,k.RV,function(x){return wan(F.L.get(),x.slotId,z,k.adPlacementConfig,k.RV,TM(F.Fv.get(),x))})};
cF=function(F,k,z,x,D,e,C,p){g.S.call(this);this.L=F;this.Y=k;this.U=z;this.Ff=x;this.j=D;this.xG=e;this.ek=C;this.yz=p};
PF=function(F){g.S.call(this);this.Y=F};
he=function(F,k,z,x){F.Y().wR(k,x);z=z();F=F.Y();F.IS.Uw("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",k,x,z);k=g.l(z);for(z=k.next();!z.done;z=k.next())a:{x=F;z=z.value;x.IS.Se("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",z);x.IS.Se("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",z);try{var D=x.Y;if(g.hD(z.slotId))throw new L("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(tz(D,z))throw new L("Duplicate registration for slot.",{slotId:z.slotId,slotEntryTriggerType:z.slotEntryTrigger.triggerType},
"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!D.Hc.U7.has(z.slotType))throw new L("No fulfillment adapter factory registered for slot of type: "+z.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!D.Hc.Gw.has(z.slotType))throw new L("No SlotAdapterFactory registered for slot of type: "+z.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");YR(D,"TRIGGER_CATEGORY_SLOT_ENTRY",z.slotEntryTrigger?[z.slotEntryTrigger]:[]);YR(D,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
z.slotFulfillmentTriggers);YR(D,"TRIGGER_CATEGORY_SLOT_EXPIRATION",z.slotExpirationTriggers);var e=x.Y,C=z.slotType+"_"+z.slotPhysicalPosition,p=d_(e,C);if(tz(e,z))throw new L("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");p.set(z.slotId,new SK5(z));e.Y.set(C,p)}catch(xY){xY instanceof L&&xY.RO?(x.IS.bf("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",xY.RO,z),To(xY,z,void 0,void 0,xY.qd)):(x.IS.bf("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
z),To(xY,z));break a}tz(x.Y,z).S=!0;try{var E=x.Y,X=tz(E,z),q=z.slotEntryTrigger,N=E.Hc.JR.get(q.triggerType);N&&(N.aO("TRIGGER_CATEGORY_SLOT_ENTRY",q,z,null),X.t4.set(q.triggerId,N));for(var u=g.l(z.slotFulfillmentTriggers),w=u.next();!w.done;w=u.next()){var m=w.value,h=E.Hc.JR.get(m.triggerType);h&&(h.aO("TRIGGER_CATEGORY_SLOT_FULFILLMENT",m,z,null),X.Qh.set(m.triggerId,h))}for(var B=g.l(z.slotExpirationTriggers),U=B.next();!U.done;U=B.next()){var v=U.value,P=E.Hc.JR.get(v.triggerType);P&&(P.aO("TRIGGER_CATEGORY_SLOT_EXPIRATION",
v,z,null),X.K.set(v.triggerId,P))}var I=E.Hc.U7.get(z.slotType).get().build(E.U,z);X.G=I;var d=E.Hc.Gw.get(z.slotType).get().build(E.W,z);d.init();X.L=d}catch(xY){xY instanceof L&&xY.RO?(x.IS.bf("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",xY.RO,z),To(xY,z,void 0,void 0,xY.qd)):(x.IS.bf("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",z),To(xY,z));Be(x,z,!0);break a}x.IS.Se("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",z);x.Y.M0(z);for(var W=g.l(x.L),M=W.next();!M.done;M=
W.next())M.value.M0(z);ce(x,z)}};
Ol=function(F,k,z,x,D){g.S.call(this);var e=this;this.L=F;this.U=k;this.Jl=z;this.context=D;this.Y=new Map;x.get().addListener(this);this.addOnDisposeCallback(function(){x.z4()||x.get().removeListener(e)})};
BxH=function(F,k){var z=0x8000000000000;var x=0;for(var D=g.l(k.slotFulfillmentTriggers),e=D.next();!e.done;e=D.next())e=e.value,e instanceof y8?(z=Math.min(z,e.Y.start),x=Math.max(x,e.Y.end)):To("Found unexpected fulfillment trigger for throttled slot.",k,null,{fulfillmentTrigger:e});x=new Gl(z,x);z="throttledadcuerange:"+k.slotId;F.Y.set(z,k);F.Jl.get().addCueRange(z,x.start,x.end,!1,F);vw(F.context.Ff.get())&&(k=x.start,x=x.end,D={},F.context.dI.LN("tcrr",(D.cid=z,D.sm=k,D.em=x,D)))};
Vs=function(){g.S.apply(this,arguments);this.Q_=!0;this.TO=new Map;this.Y=new Map};
IT=function(F,k){F=g.l(F.TO.values());for(var z=F.next();!z.done;z=F.next())if(z.value.layoutId===k)return!0;return!1};
HF=function(F,k){F=g.l(F.Y.values());for(var z=F.next();!z.done;z=F.next()){z=g.l(z.value);for(var x=z.next();!x.done;x=z.next())if(x=x.value,x.layoutId===k)return x}To("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.hD(k)),layoutId:k})};
tMx=function(){this.Y=new Map};
Z2C=function(F,k){this.callback=F;this.slot=k};
aT=function(){};
vSk=function(F,k,z){this.callback=F;this.slot=k;this.ek=z};
cuD=function(F,k,z){this.callback=F;this.slot=k;this.ek=z;this.L=!1;this.Y=0};
PFx=function(F,k,z){this.callback=F;this.slot=k;this.ek=z};
Sc=function(F){this.ek=F};
bq=function(F){g.S.call(this);this.eG=F;this.lL=new Map};
d2=function(F,k){for(var z=[],x=g.l(F.lL.values()),D=x.next();!D.done;D=x.next()){D=D.value;var e=D.trigger;e instanceof x8&&e.triggeringLayoutId===k&&z.push(D)}z.length?aG(F.eG(),z):To("Survey is submitted but no registered triggers can be activated.")};
Jk=function(F,k,z){bq.call(this,F);var x=this;this.Ff=z;k.get().addListener(this);this.addOnDisposeCallback(function(){k.z4()||k.get().removeListener(x)})};
ys=function(F){g.S.call(this);this.Y=F;this.Q_=!0;this.lL=new Map;this.W=new Set;this.U=new Set;this.j=new Set;this.S=new Set;this.L=new Set};
RT=function(F){g.S.call(this);this.Y=F;this.lL=new Map};
g2=function(F,k){for(var z=[],x=g.l(F.lL.values()),D=x.next();!D.done;D=x.next())D=D.value,D.trigger.Y===k.layoutId&&z.push(D);z.length&&aG(F.Y(),z)};
YX=function(F,k,z){g.S.call(this);var x=this;this.Y=F;this.context=z;this.lL=new Map;k.get().addListener(this);this.addOnDisposeCallback(function(){k.z4()||k.get().removeListener(x)})};
n$=function(F,k,z,x,D){g.S.call(this);var e=this;this.L=F;this.Jl=k;this.ek=z;this.xG=x;this.context=D;this.Q_=!0;this.lL=new Map;this.Y=new Set;z.get().addListener(this);this.addOnDisposeCallback(function(){z.z4()||z.get().removeListener(e)})};
O2k=function(F,k,z,x,D,e,C,p,E,X){if(sI(F.xG.get(),1).clientPlaybackNonce!==E)throw new L("Cannot register CueRange-based trigger for different content CPN",{trigger:z});F.lL.set(z.triggerId,{m2:new D$(k,z,x,D),cueRangeId:e});F.Jl.get().addCueRange(e,C,p,X,F);vw(F.context.Ff.get())&&(E={},F.context.dI.LN("crr",(E.ca=k,E.tt=z.triggerType,E.st=x.slotType,E.lt=D==null?void 0:D.layoutType,E.cid=e,E.sm=C,E.em=p,E)))};
VMD=function(F,k){F=g.l(F.lL.entries());for(var z=F.next();!z.done;z=F.next()){var x=g.l(z.value);z=x.next().value;x=x.next().value;if(k===x.cueRangeId)return z}return""};
Mx=function(F,k){g.S.call(this);var z=this;this.j=F;this.L=new Map;this.U=new Map;this.Y=null;k.get().addListener(this);this.addOnDisposeCallback(function(){k.z4()||k.get().removeListener(z)});
var x;this.Y=((x=k.get().Qw)==null?void 0:x.slotId)||null};
IRM=function(F,k){var z=[];F=g.l(F.values());for(var x=F.next();!x.done;x=F.next())x=x.value,x.slot.slotId===k&&z.push(x);return z};
L$=function(F){g.S.call(this);this.Y=F;this.Q_=!0;this.lL=new Map};
WE=function(F,k,z){k=k.layoutId;for(var x=[],D=g.l(F.lL.values()),e=D.next();!e.done;e=D.next())if(e=e.value,e.trigger instanceof np){var C;if(C=e.trigger.layoutId===k){C=z;var p=cVI.get(e.category);C=p?p===C:!1}C&&x.push(e)}x.length&&aG(F.Y(),x)};
f$=function(F){g.S.call(this);this.Y=F;this.Q_=!0;this.lL=new Map};
K$=function(F,k,z,x,D){g.S.call(this);var e=this;this.W=F;this.O3=k;this.ek=z;this.oU=x;this.Y=null;this.Q_=!0;this.lL=new Map;this.j=new Set;k.get().addListener(this);this.addOnDisposeCallback(function(){k.z4()||k.get().removeListener(e)});
D.get().addListener(this);this.addOnDisposeCallback(function(){D.z4()||D.get().removeListener(e)})};
aRn=function(F){F.Y&&(F.L&&(F.L.stop(),F.L.start()),H2I(F,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))};
H2I=function(F,k){for(var z=[],x=g.l(F.lL.values()),D=x.next();!D.done;D=x.next())D=D.value,D.trigger.triggerType===k&&z.push(D);z.length>0&&aG(F.W(),z)};
WF=function(F,k,z,x,D){for(var e=[],C=g.l(F.lL.values()),p=C.next();!p.done;p=C.next()){var E=p=p.value,X=E.trigger;E=E.slot;if(X.triggerType===k){if(X instanceof bc||X instanceof dA||X instanceof Ro){if(D&&X.breakDurationMs!==z)continue;if(!D&&X.breakDurationMs===z)continue;if(x.has(E.slotId))continue;if(F.j.has(E.slotId))continue}e.push(p)}}e.length>0&&aG(F.W(),e)};
SEC=function(F){F=F.adPlacementRenderer.config.adPlacementConfig;if(!F.prefetchModeConfig||!F.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;F=Number(F.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(F)||F<=0?0:Math.floor(Math.random()*F)};
b2n=function(F){F=F.adPlacementRenderer.config.adPlacementConfig;if(F.prefetchModeConfig&&F.prefetchModeConfig.cacheFetchRefreshDurationMs&&(F=Number(F.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(F)||F<=0)))return F};
Ft=function(F){F.Y=null;F.lL.clear();F.j.clear();F.L&&F.L.stop();F.U&&F.U.stop()};
ki=function(F){g.S.call(this);this.U=F;this.Q_=!0;this.lL=new Map;this.Y=new Map;this.L=new Map};
dy9=function(F,k){var z=[];if(k=F.Y.get(k.layoutId)){k=g.l(k);for(var x=k.next();!x.done;x=k.next())(x=F.L.get(x.value.triggerId))&&z.push(x)}return z};
ol=function(F){g.S.call(this);this.Y=F;this.lL=new Map};
JuD=function(F,k){for(var z=[],x=g.l(F.lL.values()),D=x.next();!D.done;D=x.next())D=D.value,D.trigger instanceof Zk&&D.trigger.slotId===k&&z.push(D);z.length>=1&&aG(F.Y(),z)};
yun=function(F,k){var z={slotId:sc(k,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],HR:"surface",clientMetadata:new EB([])},x=Object,D=x.assign;k=xI(k,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",z.slotId);k={layoutId:k,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",hp:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:"surface",
clientMetadata:new EB([]),V2:BFk(!1,z.slotId,z.slotType,z.slotPhysicalPosition,z.HR,z.slotEntryTrigger,z.slotFulfillmentTriggers,z.slotExpirationTriggers,k,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return D.call(x,{},F,{sUp:!0,slot:z,layout:k})};
Z1R=function(F,k,z,x){var D=F.kind;x=x?!1:!F.hideCueRangeMarker;switch(D){case "AD_PLACEMENT_KIND_START":return x={Sa:new Gl(-0x8000000000000,-0x8000000000000),JX:x},z!=null&&(x.ax=new Gl(-0x8000000000000,-0x8000000000000)),x;case "AD_PLACEMENT_KIND_END":return x={Sa:new Gl(0x7ffffffffffff,0x8000000000000),JX:x},z!=null&&(x.ax=new Gl(Math.max(0,k-z),0x8000000000000)),x;case "AD_PLACEMENT_KIND_MILLISECONDS":D=F.adTimeOffset;D.offsetStartMilliseconds||To("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
D.offsetEndMilliseconds||To("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");F=Number(D.offsetStartMilliseconds);D=Number(D.offsetEndMilliseconds);D===-1&&(D=k);if(Number.isNaN(F)||Number.isNaN(D)||F>D)return new L("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:F,offsetEndMs:D},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",D===k&&F-500<=D);x={Sa:new Gl(F,D),JX:x};if(z!=null){F=Math.max(0,F-z);if(F===D)return x;x.ax=new Gl(F,D)}return x;
default:return new L("AdPlacementKind not supported in convertToRange.",{kind:D,adPlacementConfig:F})}};
hXC=function(F){var k=F.startSecs*1E3;return new Gl(k,k+F.B8*1E3)};
RXI=function(F){if(!F||!F.adPlacements&&!F.adSlots)return!1;for(var k=g.l(F.adPlacements||[]),z=k.next();!z.done;z=k.next())if(z=z.value)if(z=z.adPlacementRenderer,z!=null&&(z.config&&z.config.adPlacementConfig&&z.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;F=g.l(F.adSlots||[]);for(k=F.next();!k.done;k=F.next()){var x=z=void 0;if(((z=g.J(k.value,Y8))==null?void 0:(x=z.adSlotMetadata)==null?void 0:x.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1};
zZ=function(F){this.Ff=F;this.L=new Map;this.Y=new Map;this.U=new Map};
sc=function(F,k){if(xi(F.Ff.get())){var z=F.L.get(k)||0;z++;F.L.set(k,z);return k+"_"+z}return g.vt(16)};
xI=function(F,k,z){if(xi(F.Ff.get())){var x=F.Y.get(k)||0;x++;F.Y.set(k,x);return z+"_"+k+"_"+x}return g.vt(16)};
X_=function(F,k){if(xi(F.Ff.get())){var z=F.U.get(k)||0;z++;F.U.set(k,z);return k+"_"+z}return g.vt(16)};
gSC=function(F){var k=[new Qf(F.RV),new B0(F.BU),new xS(F.adPlacementConfig),new v0(F.videoLengthSeconds),new n2(F.CX)];F.instreamAdPlayerOverlayRenderer&&k.push(new Au(F.instreamAdPlayerOverlayRenderer));F.playerOverlayLayoutRenderer&&k.push(new p2(F.playerOverlayLayoutRenderer));F.Cm&&k.push(new jM(F.Cm));return k};
YER=function(F,k,z,x,D,e){F=z.inPlayerLayoutId?z.inPlayerLayoutId:xI(e,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",F);var C,p,E=z.instreamAdPlayerOverlayRenderer?(C=z.instreamAdPlayerOverlayRenderer)==null?void 0:C.adLayoutLoggingData:(p=z.playerOverlayLayoutRenderer)==null?void 0:p.adLayoutLoggingData;C={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",HR:k};return{layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",hp:new Map,layoutExitNormalTriggers:[new ao(function(X){return X_(e,
X)},z.RV)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:k,clientMetadata:x,V2:D(C),adLayoutLoggingData:E}};
ik=function(F,k){var z=this;this.L=F;this.Ff=k;this.Y=function(x){return X_(z.L.get(),x)}};
wan=function(F,k,z,x,D,e){z=new EB([new EE(z),new xS(x)]);k=xI(F.L.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",k);x={layoutId:k,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",HR:"core"};return{layoutId:k,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",hp:new Map,layoutExitNormalTriggers:[new ao(function(C){return X_(F.L.get(),C)},D)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:"core",clientMetadata:z,V2:e(x),adLayoutLoggingData:void 0}};
Dn=function(F,k,z,x,D){var e=gSC(x);return YER(k,z,x,new EB(e),D,F.L.get())};
nSI=function(F,k,z,x,D){var e=gSC(x);e.push(new oq(x.xJ));e.push(new zB(x.Ju));return YER(k,z,x,new EB(e),D,F.L.get())};
r2=function(F,k,z,x,D,e,C,p,E,X){k=xI(F.L.get(),z,k);var q={layoutId:k,layoutType:z,HR:"core"},N=new Map;C&&N.set("impression",C);C=[new gA(F.Y,D,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];X&&C.push(new H7(F.Y,X,["normal"]));return{layoutId:k,layoutType:z,hp:N,layoutExitNormalTriggers:C,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:"core",clientMetadata:new EB([x,new xS(e),new Qf(D)]),V2:p(q),adLayoutLoggingData:E}};
BF=function(F,k,z,x,D,e,C,p,E){k=xI(F.L.get(),z,k);var X={layoutId:k,layoutType:z,HR:"core"},q=[new gA(F.Y,D,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];E&&q.push(new H7(F.Y,E,["normal"]));return{layoutId:k,layoutType:z,hp:new Map,layoutExitNormalTriggers:q,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:"core",clientMetadata:new EB([x,new xS(e),new Qf(D)]),V2:C(X),adLayoutLoggingData:p}};
Nx=function(F,k,z){var x=[];x.push(new Yj(F.Y,z));k&&x.push(k);return x};
qx=function(F,k,z,x,D,e,C){var p={layoutId:k,layoutType:z,HR:"core"};return{layoutId:k,layoutType:z,hp:new Map,layoutExitNormalTriggers:C,layoutExitSkipTriggers:[new P7(F.Y,k)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:"core",clientMetadata:new EB([new KB(x),new xS(D)]),V2:e(p),adLayoutLoggingData:x.adLayoutLoggingData}};
oT=function(F,k,z,x,D,e,C,p){var E={layoutId:k,layoutType:e,HR:"core"};return{layoutId:k,layoutType:e,hp:new Map,layoutExitNormalTriggers:[new ao(F.Y,z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:"core",clientMetadata:new EB([new xS(x)].concat(g.r(C))),V2:D(E),adLayoutLoggingData:p}};
w2=function(F,k,z,x){if(F.Ff.get().g9(k.kind==="AD_PLACEMENT_KIND_START"))if(z===void 0)To("Expected SSAP layout ID in renderer",void 0,void 0,{caller:x});else return z};
KIM=function(F,k,z,x,D,e,C,p,E,X,q,N,u){F=uq(F,k,z,D,e,C,p,E,N,w2(F,z,x.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),u);k=F.Ws;z=new hu(F.wu);x=F.layoutExitSkipTriggers;X>0&&(k.push(z),k.push(new $S(X)),x=[]);k.push(new DR(q));return{Jh:{layoutId:F.layoutId,layoutType:F.layoutType,hp:F.hp,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:F.HR,clientMetadata:new EB(k),V2:F.V2,adLayoutLoggingData:F.adLayoutLoggingData},
Bz:x,bd:F.layoutExitMuteTriggers,zd:F.layoutExitUserInputSubmittedTriggers,yx:F.Ry,Cv:F.Cv}};
oSx=function(F,k,z,x,D,e,C,p,E,X){k=uq(F,k,z,x,e,new Map,C,function(q){return p(q,E)},void 0,w2(F,z,D.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey"));
F=new x8(F.Y,k.wu);z=new hu(k.wu);X=new DR(X);return{Jh:{layoutId:k.layoutId,layoutType:k.layoutType,hp:k.hp,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:k.HR,clientMetadata:new EB([].concat(g.r(k.Ws),[z,X])),V2:k.V2,adLayoutLoggingData:k.adLayoutLoggingData},Bz:k.layoutExitSkipTriggers,bd:k.layoutExitMuteTriggers,zd:[].concat(g.r(k.layoutExitUserInputSubmittedTriggers),[F]),yx:k.Ry,Cv:k.Cv}};
uq=function(F,k,z,x,D,e,C,p,E,X,q){k=X!=null?X:xI(F.L.get(),"LAYOUT_TYPE_MEDIA_BREAK",k);X={layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",HR:"adapter"};p=p(k);var N=XX(p.clientMetadata,"metadata_type_fulfilled_layout");N||To("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var u=N?N.layoutId:"";z=[new xS(z),new My(x),new K2(D)];N&&z.push(new sE(N.layoutType));q&&z.push(new H0(q));return{layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",
hp:e,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new fp(F.Y,u)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:"adapter",Ws:z,V2:C(X),adLayoutLoggingData:E,Cv:p,wu:u}};
qiD=function(F,k,z,x,D,e,C,p,E,X,q){F=MMI(F,k,"core",z,x,D,e,C,p,E,X,void 0,q);return{layoutId:F.layoutId,layoutType:F.layoutType,hp:F.hp,layoutExitNormalTriggers:F.layoutExitNormalTriggers,layoutExitSkipTriggers:F.layoutExitSkipTriggers,layoutExitMuteTriggers:F.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:F.layoutExitUserInputSubmittedTriggers,Ry:F.Ry,HR:F.HR,clientMetadata:new EB(F.nZ),V2:F.V2,adLayoutLoggingData:F.adLayoutLoggingData}};
ESR=function(F,k,z,x,D,e,C,p,E,X,q,N,u){k=MMI(F,k,"adapter",z,x,D,e,C,p,E,q,N,u);x=k.layoutExitSkipTriggers;D=k.nZ;z.adPodSkipTarget&&z.adPodSkipTarget>0&&(D.push(X),D.push(new $S(z.adPodSkipTarget)),x=[]);D.push(new DR(p.adPodIndex));z.isCritical&&(x=[new H7(F.Y,k.layoutId,["error"])].concat(g.r(x)));return{Jh:{layoutId:k.layoutId,layoutType:k.layoutType,hp:k.hp,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:k.HR,clientMetadata:new EB(D),
V2:k.V2,adLayoutLoggingData:k.adLayoutLoggingData},Bz:x,bd:k.layoutExitMuteTriggers,zd:k.layoutExitUserInputSubmittedTriggers,yx:k.Ry}};
MMI=function(F,k,z,x,D,e,C,p,E,X,q,N,u){var w={layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",HR:z};D=[new xS(D),new iF(E),new eM(x.externalVideoId),new C2(p),new K2({impressionCommands:x.impressionCommands,abandonCommands:x.onAbandonCommands,completeCommands:x.completeCommands,progressCommands:x.adVideoProgressCommands}),new c0(e),new GB({current:null}),new v0(C)];(e=x.playerOverlay.instreamAdPlayerOverlayRenderer)&&D.push(new Au(e));(C=x.playerOverlay.playerOverlayLayoutRenderer)&&D.push(new p2(C));
N&&D.push(new P0(N));(N=x.playerUnderlay)&&D.push(new EE(N));p=sc(F.L.get(),"SLOT_TYPE_IN_PLAYER");N=(N=e?e.elementId:C==null?void 0:C.layoutId)?N:xI(F.L.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",p);D.push(new hu(N));D.push(new ro(p));D.push(new H0(E.adPodIndex));x.adNextParams&&D.push(new LB(x.adNextParams));x.shrunkenPlayerBytesConfig&&D.push(new Ny(x.shrunkenPlayerBytesConfig));x.clickthroughEndpoint&&D.push(new fB(x.clickthroughEndpoint));x.legacyInfoCardVastExtension&&D.push(new L2(x.legacyInfoCardVastExtension));
x.sodarExtensionData&&D.push(new OE(x.sodarExtensionData));q&&D.push(new YS(q));D.push(new kR(Pn(x.pings)));E=Oc(x.pings);if(u){a:{u=g.l(u);for(q=u.next();!q.done;q=u.next())if(q=q.value,q.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(e=g.J(q.fulfillmentContent.fulfilledLayout,IO))&&(e=g.J(e.renderingContent,Oj))&&e.associatedPlayerBytesLayoutId===k){u=q;break a}u=void 0}u&&D.push(new Xl(u))}return{layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA",hp:E,layoutExitNormalTriggers:[new np(F.Y,k)],layoutExitSkipTriggers:x.skipOffsetMilliseconds?
[new fp(F.Y,N)]:[],layoutExitMuteTriggers:[new fp(F.Y,N)],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:z,nZ:D,V2:X(w),adLayoutLoggingData:x.adLayoutLoggingData}};
iBn=function(F,k,z,x,D,e,C,p,E){x.every(function(q){return CE(q,[],["LAYOUT_TYPE_MEDIA"])})||To("Unexpect subLayout type for DAI composite layout");
k=xI(F.L.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",k);var X={layoutId:k,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",HR:"core"};return{layoutId:k,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",hp:new Map,layoutExitNormalTriggers:[new SG(F.Y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ry:[],HR:"core",clientMetadata:new EB([new Vf(z),new Iq(p),new tu(x),new xS(D),new Ju(e),new aq({}),new zM(E)]),V2:C(X)}};
FIM=function(F){return F!=null};
D7=function(F,k,z){var x=this;this.L=F;this.U=k;this.Ff=z;this.Y=function(D){return X_(x.L.get(),D)}};
Qqa=function(F,k,z,x,D,e,C){if(!z.prefetchModeConfig)return new L("AdPlacementConfig for Live Prefetch is missing prefetch_config");z=z.prefetchModeConfig;x*=1E3;var p=[];if(!z.breakLengthMs)return new L("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var E=g.l(z.breakLengthMs),X=E.next();!X.done;X=E.next())if(X=X.value,Number(X)>0){var q=x+Number(z.startTimeOffsetMs),N=q+Number(z.cacheFetchSmearingDurationMs);X={Sa:new Gl(N,N+Number(X)),JX:!1,ax:new Gl(Math.floor(q+Math.random()*
Number(z.cacheFetchSmearingDurationMs)),N),cueProcessedMs:x?x:q};q=[];q.push(new $R({}));N=[];N.push(new Lp(F.Y));N.push(new YSp(F.Y));C&&q.push(new aq({}));p.push(nG(F,k,D,X,e,q,N))}return p};
nG=function(F,k,z,x,D,e,C){e=e===void 0?[]:e;var p=sc(F.L.get(),"SLOT_TYPE_AD_BREAK_REQUEST");C||(C=[],x.ax&&x.ax.start!==x.Sa.start&&C.push(new y8(F.Y,z,new Gl(x.ax.start,x.Sa.start),!1)),C.push(new y8(F.Y,z,new Gl(x.Sa.start,x.Sa.end),x.JX)));x={getAdBreakUrl:k.getAdBreakUrl,Qm:x.Sa.start,Uo:x.Sa.end,cueProcessedMs:x.cueProcessedMs};k=new k8(F.Y,p);e=[new Rq(x)].concat(g.r(e));return{slotId:p,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:C,
slotExpirationTriggers:[new ML(F.Y,z),new W7(F.Y,p),new F4(F.Y,p)],HR:"core",clientMetadata:new EB(e),adSlotLoggingData:D}};
fRY=function(F,k,z){var x=[];z=g.l(z);for(var D=z.next();!D.done;D=z.next())x.push(LuM(F,k,D.value));return x};
LuM=function(F,k,z){return z.triggeringSlotId!=null&&z.triggeringSlotId===F?z.clone(k):z};
Jcp=function(F,k,z,x,D){return KuR(F,k,z,x,D)};
WIa=function(F,k,z,x){var D=sc(F.L.get(),"SLOT_TYPE_IN_PLAYER");return KuR(F,D,k,z,x)};
KuR=function(F,k,z,x,D){var e=new Io(F.Y,z),C=[new Kp(F.Y,k)];F=[new W7(F.Y,k),new ML(F.Y,x)];return{slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:e,slotFulfillmentTriggers:C,slotExpirationTriggers:F,HR:"core",clientMetadata:new EB([new yf(D({slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,HR:"core",slotEntryTrigger:e,slotFulfillmentTriggers:C,slotExpirationTriggers:F},z))]),adSlotLoggingData:void 0}};
X0k=function(F,k,z,x,D,e){var C=sc(F.L.get(),"SLOT_TYPE_PLAYER_BYTES"),p=sc(F.L.get(),"SLOT_TYPE_IN_PLAYER"),E=xI(F.L.get(),"LAYOUT_TYPE_SURVEY",p);x=$i(F,k,z,x);var X=[new Kp(F.Y,C)];z=[new W7(F.Y,C),new ML(F.Y,z),new P7(F.Y,E)];if(x instanceof L)return x;p=e({slotId:C,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,HR:"core",slotEntryTrigger:x,slotFulfillmentTriggers:X,slotExpirationTriggers:z},{slotId:p,layoutId:E});e=p.Jpk;p=p.Mk_;return[{slotId:C,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:TW(F,k,C,x),slotFulfillmentTriggers:lq(F,k,C,X),slotExpirationTriggers:z,HR:"core",clientMetadata:new EB([new yf(e),new xR(Qs(k)),new Do({Jr:F.Jr(k)})]),adSlotLoggingData:D},p]};
Qs=function(F){return F.kind==="AD_PLACEMENT_KIND_START"};
Nkn=function(F,k,z,x,D){D=D?D:sc(F.L.get(),"SLOT_TYPE_IN_PLAYER");z=new Io(F.Y,z);var e=[new Kp(F.Y,D)];F=[new ML(F.Y,k),new W7(F.Y,D)];return{slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:e,slotExpirationTriggers:F,HR:"core",clientMetadata:new EB([new yf(x({slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,HR:"core",slotEntryTrigger:z,slotFulfillmentTriggers:e,slotExpirationTriggers:F}))])}};
u0k=function(F,k,z,x){var D=sc(F.L.get(),"SLOT_TYPE_PLAYER_UNDERLAY");z=new Io(F.Y,z);var e=[new Kp(F.Y,D)];F=[new ML(F.Y,k),new W7(F.Y,D)];return{slotId:D,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:e,slotExpirationTriggers:F,HR:"core",clientMetadata:new EB([new yf(x({slotId:D,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,HR:"core",slotEntryTrigger:z,slotFulfillmentTriggers:e,slotExpirationTriggers:F}))])}};
jz6=function(F,k,z,x,D,e,C){var p=sc(F.L.get(),"SLOT_TYPE_IN_PLAYER"),E=xI(F.L.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",p);x=Wu6(F,x,e,C,E);if(x instanceof L)return x;C=[new Kp(F.Y,p)];D=[new ML(F.Y,e),new Kp(F.Y,D),new zJ(F.Y,D)];z=TM(z,{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,HR:"core",slotEntryTrigger:x,slotFulfillmentTriggers:C,slotExpirationTriggers:D});F=F.U.get();e={layoutId:E,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",HR:"core"};k={layoutId:E,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
hp:new Map,layoutExitNormalTriggers:[new kD9(F.Y,E,k.durationMs)],layoutExitSkipTriggers:[new zKp(F.Y,E,k.durationMs)],Ry:[new o_x(F.Y,E)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],HR:"core",clientMetadata:new EB([new f2(k)]),V2:z(e)};return{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,HR:"core",slotEntryTrigger:x,slotFulfillmentTriggers:C,slotExpirationTriggers:D,clientMetadata:new EB([new yf(k)])}};
LI5=function(F,k,z,x,D,e){k=$i(F,k,z,x);if(k instanceof L)return k;var C=k instanceof y8?new K_Y(F.Y,z,k.Y):null;x=sc(F.L.get(),"SLOT_TYPE_IN_PLAYER");var p=[new Kp(F.Y,x)];F=[new ML(F.Y,z),new W7(F.Y,x)];e=e({slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,HR:"core",slotEntryTrigger:k,slotFulfillmentTriggers:p,slotExpirationTriggers:F},C);return e instanceof pE?new L(e):{slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:p,slotExpirationTriggers:F,
HR:"core",clientMetadata:new EB([new yf(e)]),adSlotLoggingData:D}};
nWY=function(F,k,z,x){var D=sc(F.L.get(),"SLOT_TYPE_IN_PLAYER"),e=new c7(F.Y,k),C=[new oO(F.Y,D)];F=[new ML(F.Y,k),new W7(F.Y,D)];return{slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:e,slotFulfillmentTriggers:C,slotExpirationTriggers:F,HR:"core",clientMetadata:new EB([new yf(x({slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,HR:"core",slotEntryTrigger:e,slotFulfillmentTriggers:C,slotExpirationTriggers:F}))]),adSlotLoggingData:z}};
M1p=function(F,k,z,x){var D=sc(F.L.get(),"SLOT_TYPE_IN_PLAYER");z=new Io(F.Y,z);var e=[new Kp(F.Y,D)],C=[new W7(F.Y,D),new ML(F.Y,k)];e={slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,HR:"core",slotEntryTrigger:z,slotFulfillmentTriggers:e,slotExpirationTriggers:C};return{slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:[new Kp(F.Y,D)],slotExpirationTriggers:[new ML(F.Y,k),new W7(F.Y,D)],HR:"core",clientMetadata:new EB([new yf(x(e))])}};
g_x=function(F,k,z,x,D){var e=sc(F.L.get(),"SLOT_TYPE_IN_PLAYER");z=new V8(F.Y,x,z);x=[new Kp(F.Y,e)];F=[new ML(F.Y,k)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:x,slotExpirationTriggers:F,HR:"core",clientMetadata:new EB([new yf(D({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,HR:"core",slotEntryTrigger:z,slotFulfillmentTriggers:x,slotExpirationTriggers:F}))])}};
SPa=function(F,k,z,x,D,e){var C=sc(F.L.get(),k);return jj(F,C,k,new Io(F.Y,x),[new ML(F.Y,z),new W7(F.Y,C),new H7(F.Y,x,["error"])],D,e)};
ahY=function(F,k,z,x,D,e,C){var p=sc(F.L.get(),k);return jj(F,p,k,new H7(F.Y,D,["normal"]),[new ML(F.Y,z),new W7(F.Y,p),new H7(F.Y,x,["error"])],e,C)};
O1n=function(F,k,z,x,D){var e=sc(F.L.get(),k);return jj(F,e,k,new c7(F.Y,z),[new ML(F.Y,z),new W7(F.Y,e)],x,D)};
y5k=function(F,k,z,x,D){z=z?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var e=sc(F.L.get(),z);k=new c7(F.Y,k);var C=[new Kp(F.Y,e)];F=[new W7(F.Y,e)];return{slotId:e,slotType:z,slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:C,slotExpirationTriggers:F,HR:"core",clientMetadata:new EB([new yf(D({slotId:e,slotType:z,slotPhysicalPosition:1,HR:"core",slotEntryTrigger:k,slotFulfillmentTriggers:C,slotExpirationTriggers:F}))]),adSlotLoggingData:x}};
kxx=function(F,k,z,x){var D=sc(F.L.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new Jj(F.Y),C=[new oO(F.Y,D)];F=[new ML(F.Y,k)];return{slotId:D,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:e,slotFulfillmentTriggers:C,slotExpirationTriggers:F,HR:"core",clientMetadata:new EB([new yf(x({slotId:D,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,HR:"core",slotEntryTrigger:e,slotFulfillmentTriggers:C,slotExpirationTriggers:F})),new aq({})]),adSlotLoggingData:z}};
eX6=function(F,k){return Ton(F.Ff.get())?new H7(F.Y,k,["normal","error","skipped"]):new H7(F.Y,k,["normal"])};
paa=function(F,k,z,x,D){k=eX6(F,k);F=mp(F,k,z);D=D({slotId:F.slotId,slotType:F.slotType,slotPhysicalPosition:F.slotPhysicalPosition,slotEntryTrigger:F.slotEntryTrigger,slotFulfillmentTriggers:F.slotFulfillmentTriggers,slotExpirationTriggers:F.slotExpirationTriggers,HR:F.HR});return D instanceof L?D:{wK:Object.assign({},F,{clientMetadata:new EB([new yf(D.layout)]),adSlotLoggingData:x}),Jv:D.Jv}};
EW6=function(F,k,z,x,D,e,C){z=CF6(F,k,z,x);if(z instanceof L)return z;C=C({slotId:z.slotId,slotType:z.slotType,slotPhysicalPosition:z.slotPhysicalPosition,slotEntryTrigger:z.slotEntryTrigger,slotFulfillmentTriggers:z.slotFulfillmentTriggers,slotExpirationTriggers:z.slotExpirationTriggers,HR:z.HR});if(C instanceof L)return C;x=[new xR(Qs(k)),new yf(C.layout),new Do({Jr:F.Jr(k)})];e&&x.push(new W0({}));return{wK:{slotId:z.slotId,slotType:z.slotType,slotPhysicalPosition:z.slotPhysicalPosition,slotEntryTrigger:TW(F,
k,z.slotId,z.slotEntryTrigger),slotFulfillmentTriggers:lq(F,k,z.slotId,z.slotFulfillmentTriggers),slotExpirationTriggers:z.slotExpirationTriggers,HR:z.HR,clientMetadata:new EB(x),adSlotLoggingData:D},Jv:C.Jv}};
TW=function(F,k,z,x){return F.Ff.get().g9(Qs(k))?new Zk(F.Y,z):x};
lq=function(F,k,z,x){return F.Ff.get().g9(Qs(k))?[new oO(F.Y,z)]:x};
mp=function(F,k,z){var x=sc(F.L.get(),"SLOT_TYPE_PLAYER_BYTES"),D=[new Kp(F.Y,x)];F=[new W7(F.Y,x),new ML(F.Y,z)];return{slotId:x,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:D,slotExpirationTriggers:F,HR:"core"}};
CF6=function(F,k,z,x){k=$i(F,k,z,x);return k instanceof L?k:mp(F,k,z)};
gWk=function(F,k,z,x,D,e){var C=sc(F.L.get(),"SLOT_TYPE_FORECASTING");k=$i(F,k,z,x);if(k instanceof L)return k;x=[new Kp(F.Y,C)];F=[new W7(F.Y,C),new ML(F.Y,z)];return{slotId:C,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:k,slotFulfillmentTriggers:x,slotExpirationTriggers:F,HR:"core",clientMetadata:new EB([new yf(e({slotId:C,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,HR:"core",slotEntryTrigger:k,slotFulfillmentTriggers:x,slotExpirationTriggers:F}))]),adSlotLoggingData:D}};
FK5=function(F,k,z,x,D){var e=!k.hideCueRangeMarker;switch(k.kind){case "AD_PLACEMENT_KIND_START":return new c7(F.Y,z);case "AD_PLACEMENT_KIND_MILLISECONDS":return F=Z1R(k,x),F instanceof L?F:D(F.Sa,e);case "AD_PLACEMENT_KIND_END":return new O9(F.Y,z,e);default:return new L("Cannot construct entry trigger",{kind:k.kind})}};
Wu6=function(F,k,z,x,D){return FK5(F,k,z,x,function(e,C){return new fQx(F.Y,z,e,C,D)})};
$i=function(F,k,z,x){return FK5(F,k,z,x,function(D,e){return new y8(F.Y,z,D,e)})};
jj=function(F,k,z,x,D,e,C){F=[new oO(F.Y,k)];return{slotId:k,slotType:z,slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:F,slotExpirationTriggers:D,HR:"core",clientMetadata:new EB([new yf(C({slotId:k,slotType:z,slotPhysicalPosition:1,HR:"core",slotEntryTrigger:x,slotFulfillmentTriggers:F,slotExpirationTriggers:D}))]),adSlotLoggingData:e}};
ej=function(F,k){g.S.call(this);this.Ff=F;this.Y=k;this.eventCount=0};
CN=function(F,k,z,x){ej.call(this,F,k);this.Ff=F;this.xG=z;this.context=x};
Ad=function(){this.Y=new Map};
Xt=function(F,k){var z=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=F;this.result=k.result;this.error=k.error;k.promise&&k.promise.then(function(x){pN(z,x)},function(x){Ew(z,x)})};
uk=function(F){if(qD(F)){if(F instanceof Xt)return F;if(ND(F))return new Xt("wait",{promise:F})}return new Xt("done",{result:F})};
wM=function(){return new Xt("wait",{})};
mM=function(F){return new Xt("fail",{error:F})};
TZ=function(F){try{return uk(F())}catch(k){return mM(k)}};
QK=function(F,k){var z=wM();F.onSuccess.push(function(x){try{var D=k(x);pN(z,D)}catch(e){Ew(z,e)}});
F.onFailure.push(function(x){Ew(z,x)});
lk(F);return z};
hd=function(F,k){var z=wM();F.onSuccess.push(function(x){pN(z,x)});
F.onFailure.push(function(x){try{var D=k(x);pN(z,D)}catch(e){Ew(z,e)}});
lk(F);return z};
kMa=function(F,k){var z=wM();F.onSuccess.push(function(x){try{k(),pN(z,x)}catch(D){Ew(z,D)}});
F.onFailure.push(function(x){try{k(),Ew(z,x)}catch(D){Ew(z,D)}});
lk(F)};
pN=function(F,k){if(qD(k)){if(ND(k)){k.then(function(z){pN(F,z)},function(z){Ew(F,z)});
return}if(k instanceof Xt){QK(k,function(z){pN(F,z)});
hd(k,function(z){Ew(F,z)});
return}}F.currentState="done";F.result=k;lk(F)};
Ew=function(F,k){F.currentState="fail";F.error=k;lk(F)};
lk=function(F){if(F.currentState==="done"){var k=F.onSuccess;F.onSuccess=[];F.onFailure=[];k=g.l(k);for(var z=k.next();!z.done;z=k.next())z=z.value,z(F.result)}else if(F.currentState==="fail")for(k=F.onFailure,F.onSuccess=[],F.onFailure=[],k=g.l(k),z=k.next();!z.done;z=k.next())z=z.value,z(F.error)};
zeD=function(F){return function(){return oRk(F.apply(this,g.v6.apply(0,arguments)))}};
oRk=function(F){return TZ(function(){return rM(F,F.next())})};
rM=function(F,k){return k.done?uk(k.value):hd(QK(k.value.l8,function(z){return rM(F,F.next(z))}),function(z){return rM(F,F.throw(z))})};
xGR=function(F,k){if(F.length===0)return uk(NaN);var z=wM(),x=F.length;F.forEach(function(D,e){kMa(uk(D),function(){z.currentState==="wait"&&(k!==void 0&&k(e)&&z.currentState==="wait"?z.resolve(e):(--x,x===0&&z.resolve(NaN)))})});
return z};
iE5=function(F){return F.map(function(k){return uk(k)})};
GZ=function(F){var k=F.hours||0;var z=F.minutes||0,x=F.seconds||0;k=x+z*60+k*3600+(F.days||0)*86400+(F.weeks||0)*604800+(F.months||0)*2629800+(F.years||0)*31557600;k<=0?k={hours:0,minutes:0,seconds:0}:(F=k,k=Math.floor(F/3600),F%=3600,z=Math.floor(F/60),x=Math.floor(F%60),k={hours:k,minutes:z,seconds:x});var D=k.hours===void 0?0:k.hours;z=k.minutes===void 0?0:k.minutes;F=k.seconds===void 0?0:k.seconds;x=D>0;k=[];if(x){D=(new Intl.NumberFormat("en-u-nu-latn")).format(D);var e=["fr"],C="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(Bc)?D.replace(",","\u00a0"):e.includes(Bc)?D.replace(",","\u202f"):C.includes(Bc)?D.replace(",","."):D;k.push(D)}x=x===void 0?!1:x;z=(["af","be","lt"].includes(Bc)||x)&&z<10?DGn().format(z):(new Intl.NumberFormat("en-u-nu-latn")).format(z);k.push(z);z=DGn().format(F);k.push(z);z=":";"da fi id si sr sr-Latn".split(" ").includes(Bc)&&(z=".");return k.join(z)};
DGn=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
$GM=function(F,k){var z,x;F=((z=F.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(x=z.videoAuthorizationToken)==null?void 0:x.credentialTransferTokens)||[];for(z=0;z<F.length;++z)if(F[z].scope===k)return F[z].token||void 0};
Uw=function(F){if(F&&F.simpleText)return F.simpleText;var k="";if(F&&F.runs)for(var z=0;z<F.runs.length;z++)F.runs[z].text&&(k+=F.runs[z].text);return k};
td=function(F){return F?function(){try{return F.apply(this,arguments)}catch(k){g.JV(k)}}:F};
Z7=function(){this.U=new Set;this.L=new Set;this.j=new Map;this.client=void 0;this.csn=null};
vc=function(){Z7.instance||(Z7.instance=new Z7);return Z7.instance};
cc=function(){};
Pc=function(){this.G=[];this.B=[];this.Y=[];this.PR=[];this.W=[];this.K=[];this.U=new Map;this.S=new Map;this.L=new Set;this.t4=new Map};
Ow=function(){Pc.instance||(Pc.instance=new Pc);return Pc.instance};
VK=function(F,k,z,x){x=x===void 0?{}:x;g.oS(function(){jG6.includes(k)||(g.yI(new g.Fa("createClientScreen() called with a non-page VE",k)),k=83769);x.isHistoryNavigation||(F.PR=[],F.Y.push({rootVe:k,key:x.key||""}));F.G=[];F.B=[];x.Zd?ee5(F,k,z,x):CwH(F,k,z,x)})()};
Azn=function(F,k,z){z=z===void 0?0:z;g.oS(function(){k.then(function(x){F.L.has(z)&&F.j&&F.j();var D=g.OK(z),e=g.Pz(z);if(D&&e){var C;(x==null?0:(C=x.response)==null?0:C.trackingParams)&&g.oa(F.client,D,e,g.vz(x.response.trackingParams));var p;(x==null?0:(p=x.playerResponse)==null?0:p.trackingParams)&&g.oa(F.client,D,e,g.vz(x.playerResponse.trackingParams))}})})()};
Hc=function(F){var k=Ow();g.oS(function(){var z=g.vz(F);Il(k,z);return z})()};
peH=function(F){var k={veType:253246};return g.oS(function(){if(!k.veType)return g.JV(new g.Fa("Error: Trying to graft a client VE without a veType.")),null;if(k.visibilityTypes){var z=k.visibilityTypes.reduce(function(x,D){return x|D});
z={visibility:{types:String(z)}}}z=m5R(k.veType,k.visualElement,k.elementIndex,k.clientYouTubeData,void 0,z);return Il(F,z)?z:null})()};
Il=function(F,k,z,x){x=x===void 0?0:x;return g.oS(function(){if(F.L.has(x))return F.G.push([k,z]),!0;var D=g.OK(x),e=z||g.Pz(x);if(D&&e){if(g.sY("combine_ve_grafts")){var C=F.U.get(e.toString());C?C.push(k):(F.S.set(e.toString(),e),F.U.set(e.toString(),[k]));F.Qh||(F.Qh=g.iM(0,function(){al(F,D)},1200))}else g.oa(F.client,D,e,k);
return!0}return!1})()};
ERn=function(F,k,z,x){x=x===void 0?0:x;var D=g.OK(x);k=k||g.Pz(x);D&&k&&(F=F.client,x=fd({cttAuthInfo:VI(D)||void 0},D),z={csn:D,ve:k.getAsJson(),clientData:z},D==="UNDEFINED_CSN"?iG("visualElementStateChanged",x,z):F?tV("visualElementStateChanged",z,F,x):g.NA("visualElementStateChanged",z,x))};
ee5=function(F,k,z,x){x=x===void 0?{}:x;F.L.add(x.layer||0);F.j=function(){CwH(F,k,z,x);var C=g.Pz(x.layer);if(C){for(var p=g.l(F.G),E=p.next();!E.done;E=p.next())E=E.value,Il(F,E[0],E[1]||C,x.layer);C=g.l(F.B);for(p=C.next();!p.done;p=C.next())p=p.value,ERn(F,p[0],p[1])}};
z||g.OK(x.layer)||F.j();if(x.Zd)for(var D=g.l(x.Zd),e=D.next();!e.done;e=D.next())Azn(F,e.value,x.layer);else g.JV(Error("Delayed screen needs a data promise."))};
CwH=function(F,k,z,x){x=x===void 0?{}:x;var D=void 0;x.layer||(x.layer=0);D=x.parentLayer!==void 0?x.parentLayer:x.layer;var e=g.OK(D);D=g.Pz(D);var C=z||D,p;C&&(x.parentCsn!==void 0?p={clientScreenNonce:x.parentCsn,visualElement:C}:e&&e!=="UNDEFINED_CSN"&&(p={clientScreenNonce:e,visualElement:C}));var E,X=g.LX("EVENT_ID");e==="UNDEFINED_CSN"&&X&&(E={servletData:{serializedServletEventId:X}});g.sY("combine_ve_grafts")&&e&&al(F,e);g.sY("no_client_ve_attach_unless_shown")&&C&&e&&xB(C,e);try{var q=zPH(F.client,
k,p,x.MY,x.cttAuthInfo,E,x.implicitGestureType,x.loggingExpectations)}catch(w){L9D(w,{RM:k,rootVe:D,Jf4:z,hBp:e,Gla:p,MY:x.MY});g.JV(w);return}tZa(q,k,x.layer,x.cttAuthInfo);e&&e!=="UNDEFINED_CSN"&&D&&!Ba9(e)&&iMD(F.client,e,D,!0);F.Y[F.Y.length-1]&&!F.Y[F.Y.length-1].csn&&(F.Y[F.Y.length-1].csn=q||"");g.MF({clientScreenNonce:q});cc.instance||(cc.instance=new cc);g.oS(vc().Y).bind(vc())();var N=g.Pz(x.layer);e&&e!=="UNDEFINED_CSN"&&N&&(g.sY("web_mark_root_visible")||g.sY("music_web_mark_root_visible"))&&
g.AL(q,N);F.L.delete(x.layer||0);F.j=void 0;var u;(u=F.t4.get(x.layer))==null||u.forEach(function(w,m){w?Il(F,m,w,x.layer):N&&Il(F,m,N,x.layer)});
XeR(F)};
XeR=function(F){for(var k=0;k<F.W.length;k++){var z=F.W[k];try{z()}catch(x){g.JV(x)}}for(k=F.W.length=0;k<F.K.length;k++){z=F.K[k];try{z()}catch(x){g.JV(x)}}};
al=function(F,k){if(k===void 0)for(var z=sxI(),x=0;x<z.length;x++)z[x]!==void 0&&al(F,z[x]);else F.U.forEach(function(D,e){(e=F.S.get(e))&&g.kB(F.client,k,e,D)}),F.U.clear(),F.S.clear(),F.Qh=void 0};
Sj=function(){};
qBn=function(){Sj.instance||(Sj.instance=new Sj);return Sj.instance};
N_x=function(F,k,z){var x=new XMLHttpRequest;if(z==null?0:z.ER)x.onreadystatechange=function(e){z.ER(x,e)};
var D;x.open((D=k.method)!=null?D:"GET",F,!0);x.responseType="text";x.withCredentials=!0;if(k.headers)for(F=g.l(Object.entries(k.headers)),k=F.next();!k.done;k=F.next())D=g.l(k.value),k=D.next().value,D=D.next().value,x.setRequestHeader(k,D);return x};
bk=function(){};
uXp=function(){var F=navigator;return new Promise(function(k,z){var x;(x=F.webkitTemporaryStorage)!=null&&x.queryUsageAndQuota?F.webkitTemporaryStorage.queryUsageAndQuota(function(D,e){k({usage:D,quota:e})},function(D){z(D)}):z(Error("webkitTemporaryStorage is not supported."))})};
Xa=function(F,k){var z=this;this.handleError=F;this.Y=k;this.L=!1;self.document===void 0||self.addEventListener("beforeunload",function(){z.L=!0});
this.U=Math.random()<=.2};
mG6=function(F,k){bk.getInstance().estimate().then(function(z){z=Object.assign({},k,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:weH(z==null?void 0:z.usage),deviceStorageQuotaMbytes:weH(z==null?void 0:z.quota)});F.Y("idbQuotaExceeded",z)})};
weH=function(F){return typeof F==="undefined"?"-1":String(Math.ceil(F/1048576))};
loR=function(){g.nu();return g.M5(0,192)?g.M5(0,190):!(g.sY("web_watch_cinematics_disabled_by_default")||g.sY("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&T_5())};
he5=function(F,k){QG6(F.program,k.I7G)&&(WC("bg_i",void 0,"player_att"),g.dM.initialize(F,function(){WC("bg_l",void 0,"player_att");Jd=(0,g.VE)()},k.cspNonce,k.e5))};
sGn=function(F){F=F===void 0?{}:F;return g.dM.invoke(F)};
QG6=function(F,k){if(F){var z;g.dM.isLoading()?z=!1:z=!Jd||(0,g.VE)()-Jd>k;F=z}else F=!1;return F};
rzC=function(F){F=F.split(o5[5]);yK.Ri(F,3);yK.Vf(F,63);yK.Ri(F,3);yK.Vf(F,45);yK.g6(F,74);yK.Ri(F,1);yK.g6(F,51);yK.Ri(F,1);return F.join(o5[5])};
g.Rl=function(F,k){return F.e5+"timedtext_video?ref=player&v="+k.videoId};
g.B_5=function(F){var k=this;this.videoData=F;F={};this.Y=(F.c1a=function(){var z=[];if(g.dM.isInitialized()){var x="";k.videoData&&k.videoData.Uc&&(x=k.videoData.Uc+("&r1b="+k.videoData.clientPlaybackNonce));var D={};x=(D.atr_challenge=x,D);WC("bg_v",void 0,"player_att");(x=sGn(x))?(WC("bg_s",void 0,"player_att"),z.push("r1a="+x)):(WC("bg_e",void 0,"player_att"),z.push("r1c=2"))}else WC("bg_e",void 0,"player_att"),window.trayride||window.botguard?z.push("r1c=1"):z.push("r1c=4");z.push("r1d="+g.dM.getState());
return z.join("&")},F.c6a=function(z){return"r6a="+(Number(z.c)^uZ())},F.c6b=function(z){return"r6b="+(Number(z.c)^Number(g.LX("CATSTAT",0)))},F);
this.videoData&&this.videoData.Uc?this.Hz=DC(this.videoData.Uc):this.Hz={}};
g.GMk=function(F){if(F.videoData&&F.videoData.Uc){for(var k=[F.videoData.Uc],z=g.l(Object.keys(F.Y)),x=z.next();!x.done;x=z.next())x=x.value,F.Hz[x]&&F.Y[x]&&(x=F.Y[x](F.Hz))&&k.push(x);return k.join("&")}return null};
g.gM=function(F,k){he5(F,{I7G:g.lw(k.experiments,"bg_vm_reinit_threshold"),cspNonce:k.cspNonce,e5:k.e5||""})};
UG5=function(){var F=XMLHttpRequest.prototype.fetch;return!!F&&F.length===3};
ZEM=function(F){ta5=2592E3*(F||1)};
Yi=function(F){F=F===void 0?ta5:F;if(F>0&&!(n2C()>(0,g.VE)()-F*1E3))return 0;F=g.bn("yt-player-quality");if(typeof F==="string"){if(F=g.Yg[F],F>0)return F}else if(F instanceof Object)return F.quality;return 0};
nN=function(){var F=g.bn("yt-player-proxima-pref");return F==null?null:F};
vRC=function(){var F=g.bn("yt-player-quality");if(F instanceof Object&&F.quality&&F.previousQuality){if(F.quality>F.previousQuality)return 1;if(F.quality<F.previousQuality)return-1}return 0};
czD=function(){var F={values:{},zn:{}};try{var k=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);F.values=k.values;F.halfLives=k.halfLives}catch(z){}return F};
MD=function(){return g.bn("yt-player-performance-cap")||{}};
LN=function(){var F;return(F=g.bn("yt-player-performance-cap-active-set"))!=null?F:[]};
PwD=function(F){(F===void 0?0:F)?(F=LN().filter(function(k){return k.startsWith("1")}),g.SZ("yt-player-performance-cap-active-set",F,2592E3)):g.SZ("yt-player-performance-cap-active-set",[],2592E3)};
OEI=function(F){g.SZ("yt-player-watch-later-pending",F)};
VaD=function(){return!!g.bn("yt-player-headers-readable")};
Iop=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(F){return 0}};
g.fN=function(){var F=g.bn("yt-player-caption-language-preferences");return F?F:[]};
KN=function(){var F=g.bn("yt-player-user-settings"),k=new Map;if(F){F=g.l(Object.entries(F));for(var z=F.next();!z.done;z=F.next()){var x=g.l(z.value);z=x.next().value;x=x.next().value;k.set(z,x)}}return k};
FM=function(){try{var F=window.navigator;if(F.getAutoplayPolicy&&typeof F.getAutoplayPolicy==="function"){var k=document.getElementsByClassName(g.Wc.nf$);var z=k.length>0&&k[0]?F.getAutoplayPolicy(k[0]):F.getAutoplayPolicy("mediaelement");if(HER[z])return HER[z]}}catch(x){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"};
kC=function(F){return F.Av||F.k9||F.mutedAutoplay};
aoH=function(F,k){return kC(F)?k!==1&&k!==2&&k!==0?"AUTOPLAY_STATUS_UNAVAILABLE":F.aR?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"};
SBY=function(F,k,z){var x=k.C();F.thirdParty||(F.thirdParty={});x.ancestorOrigins&&(F.thirdParty.embeddedPlayerContext=Object.assign({},F.thirdParty.embeddedPlayerContext,{ancestorOrigins:x.ancestorOrigins}));x.V("embeds_enable_autoplay_and_visibility_signals")&&(x.TR!=null&&(F.thirdParty.embeddedPlayerContext=Object.assign({},F.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(x.TR)})),x.Sh&&(F.thirdParty.embeddedPlayerContext=Object.assign({},F.thirdParty.embeddedPlayerContext,{visibilityFractionSource:x.Sh})),
F.thirdParty.embeddedPlayerContext=Object.assign({},F.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:FM(),autoplayIntended:kC(k),autoplayStatus:aoH(k,z)}))};
Jz5=function(F,k){oz(F,2,k.a9,oy,3);oz(F,3,k.Ay,bEM,3);F0(F,4,k.onesieUstreamerConfig);F0(F,9,k.vF);oz(F,10,k.Xi,zf,3);oz(F,15,k.reloadPlaybackParams,dGk,3)};
Rex=function(F,k){oz(F,1,k.formatId,xC,3);K1(F,2,k.startTimeMs);K1(F,3,k.durationMs);K1(F,4,k.t$);K1(F,5,k.d$);oz(F,9,k.D9K,yzp,3);oz(F,11,k.Rs$,ij,1);oz(F,12,k.RJ,ij,1)};
gRp=function(F,k){kW(F,1,k.videoId);K1(F,2,k.lmt)};
yzp=function(F,k){if(k.kI)for(var z=0;z<k.kI.length;z++)oz(F,1,k.kI[z],gRp,3)};
xC=function(F,k){K1(F,1,k.itag);K1(F,2,k.lmt);kW(F,3,k.xtags)};
DN=function(F){return{itag:dx(F,1),lmt:dx(F,2),xtags:Rd(F,3)}};
ij=function(F,k){K1(F,1,k.startTicks);K1(F,2,k.Bt);K1(F,3,k.timescale)};
YB9=function(F){return{startTicks:dx(F,1),Bt:dx(F,2),timescale:dx(F,3)}};
nRk=function(F,k){K1(F,1,k.defaultPolicy);K1(F,2,k.smooth);K1(F,3,k.visibility);K1(F,4,k.vg);K1(F,5,k.performance);K1(F,6,k.speed)};
oy=function(F,k){K1(F,13,k.timeSinceLastManualFormatSelectionMs);var z=k.lastManualDirection;z!==void 0&&(f1(F,112),f1(F,z<<1^z>>31));K1(F,16,k.jSR);K1(F,17,k.detailedNetworkType);K1(F,18,k.jL);K1(F,19,k.Pg);K1(F,21,k.wcU);K1(F,23,k.CM);K1(F,28,k.MO);K1(F,29,k.U4$);K1(F,34,k.visibility);z=k.playbackRate;if(z!==void 0){var x=new ArrayBuffer(4);(new Float32Array(x))[0]=z;z=(new Uint32Array(x))[0];if(z!==void 0)for(f1(F,285),L1(F,4),x=0;x<4;)F.view.setUint8(F.pos,z&255),z>>=8,F.pos+=1,x+=1}K1(F,36,k.kz);
oz(F,38,k.mediaCapabilities,MaC,3);K1(F,39,k.L$G);K1(F,40,k.kO);K1(F,44,k.playerState);WZ(F,46,k.MQ);K1(F,48,k.P6);K1(F,50,k.Md);K1(F,51,k.eW);K1(F,54,k.WC);if(k.z1)for(z=0;z<k.z1.length;z++)K1(F,55,k.z1[z]);WZ(F,56,k.NHU);K1(F,57,k.mq);WZ(F,58,k.Nm);K1(F,59,k.l0);K1(F,60,k.zH);WZ(F,61,k.isPrefetch);K1(F,62,k.xw);F0(F,63,k.sabrLicenseConstraint);K1(F,64,k.FYU);K1(F,66,k.hl4);K1(F,67,k.esh);K1(F,68,k.lD$);kW(F,69,k.audioTrackId);WZ(F,71,k.ZG);oz(F,72,k.bp_,nRk,1);K1(F,74,k.eM);K1(F,75,k.Wy)};
MaC=function(F,k){if(k.videoFormatCapabilities)for(var z=0;z<k.videoFormatCapabilities.length;z++)oz(F,1,k.videoFormatCapabilities[z],LKH,1);if(k.audioFormatCapabilities)for(z=0;z<k.audioFormatCapabilities.length;z++)oz(F,2,k.audioFormatCapabilities[z],fon,1);oz(F,4,k.perPlaybackAttributes,KKk,3);K1(F,5,k.hdrModeBitmask)};
LKH=function(F,k){K1(F,1,k.videoCodec);K1(F,3,k.maxHeight);K1(F,4,k.maxWidth);K1(F,11,k.maxFramerate);K1(F,12,k.maxBitrateBps);WZ(F,15,k.is10BitSupported)};
fon=function(F,k){K1(F,1,k.audioCodec);K1(F,2,k.numChannels);K1(F,3,k.maxBitrateBps);K1(F,6,k.spatialCapabilityBitmask)};
KKk=function(F,k){if(k.itagDenylist)for(var z=0;z<k.itagDenylist.length;z++)K1(F,1,k.itagDenylist[z])};
zf=function(F,k){oz(F,1,k.clientInfo,WKC,3);F0(F,2,k.E_);F0(F,3,k.playbackCookie);F0(F,4,k.vF);if(k.QI)for(var z=0;z<k.QI.length;z++)oz(F,5,k.QI[z],FR9,3);if(k.yq)for(z=0;z<k.yq.length;z++)K1(F,6,k.yq[z]);kW(F,7,k.nA$);oz(F,8,k.z7,kUn,3)};
oID=function(F,k){K1(F,1,k.FLk);K1(F,2,k.WLt)};
zI9=function(F,k){var z=k.code;z!==void 0&&(f1(F,8),f1(F,z<<1^z>>31));kW(F,2,k.message)};
xQC=function(F,k){K1(F,1,k.clientState);oz(F,2,k.cfU,oID,1)};
kUn=function(F,k){F0(F,1,k.P7K);oz(F,2,k.QgJ,zI9,3);oz(F,3,k.coldStartInfo,xQC,3)};
FR9=function(F,k){K1(F,1,k.type);F0(F,2,k.value)};
WKC=function(F,k){kW(F,1,k.hl);kW(F,12,k.deviceMake);kW(F,13,k.deviceModel);K1(F,16,k.clientName);kW(F,17,k.clientVersion);kW(F,18,k.osName);kW(F,19,k.osVersion)};
is6=function(F,k){kW(F,1,k.name);kW(F,2,k.value)};
DQa=function(F,k){kW(F,1,k.url);if(k.xH)for(var z=0;z<k.xH.length;z++)oz(F,2,k.xH[z],is6,3);F0(F,3,k.postBody);WZ(F,4,k.oY_);WZ(F,6,k.jE)};
bEM=function(F,k){F0(F,2,k.jR);F0(F,5,k.encryptedClientKey);F0(F,6,k.iv);F0(F,7,k.o7);WZ(F,10,k.tJ);WZ(F,13,k.U4);WZ(F,14,k.L2);F0(F,16,k.Sif);WZ(F,17,k.AN)};
$QD=function(F){return{QP:dx(F,1),b4:dx(F,2),body:yx(F,4)}};
dGk=function(F,k){kW(F,1,k.token)};
jva=function(F){return{token:Rd(F,1)}};
eIk=function(F){return{bV:dx(F,1),GUQ:dx(F,2)}};
EIC=function(F,k){oz(F,1,k.a9,oy,3);if(k.Hr)for(var z=0;z<k.Hr.length;z++)oz(F,2,k.Hr[z],xC,3);if(k.pN)for(z=0;z<k.pN.length;z++)oz(F,3,k.pN[z],Rex,3);F0(F,5,k.videoPlaybackUstreamerConfig);if(k.Pz)for(z=0;z<k.Pz.length;z++)oz(F,6,k.Pz[z],CXx,3);if(k.HI)for(z=0;z<k.HI.length;z++)oz(F,16,k.HI[z],xC,3);if(k.ws)for(z=0;z<k.ws.length;z++)oz(F,17,k.ws[z],xC,3);if(k.N8)for(z=0;z<k.N8.length;z++)oz(F,18,k.N8[z],xC,3);oz(F,19,k.Xi,zf,3);oz(F,21,k.ea,Aek,3);K1(F,22,k.nX);K1(F,23,k.o1);if(k.UD)for(z=0;z<k.UD.length;z++)oz(F,
1E3,k.UD[z],pnD,3)};
CXx=function(F,k){oz(F,1,k.formatId,xC,3);K1(F,2,k.vM);K1(F,3,k.sequenceNumber);oz(F,4,k.Xc,ij,1);K1(F,5,k.SQ);K1(F,6,k.td)};
Aek=function(F,k){if(k.YM)for(var z=0;z<k.YM.length;z++)kW(F,1,k.YM[z]);F0(F,2,k.OU);kW(F,3,k.jl);K1(F,4,k.Z0);K1(F,5,k.wP);kW(F,6,k.BH)};
pnD=function(F,k){if(k.Hr)for(var z=0;z<k.Hr.length;z++)oz(F,1,k.Hr[z],xC,3);if(k.pN)for(z=0;z<k.pN.length;z++)oz(F,2,k.pN[z],Rex,3);kW(F,3,k.clipId)};
g.$C=function(F,k){oz(F,1,k.a9,oy,3);F0(F,3,k.videoPlaybackUstreamerConfig);oz(F,5,k.Xi,zf,3);oz(F,6,k.ea,Aek,3)};
NGC=function(F,k){kW(F,1,k.cpn);K1(F,2,k.sequenceNumber);kW(F,3,k.serializedWatchEndpointLoggingContext);if(k.decoderInfo)for(var z=0;z<k.decoderInfo.length;z++)oz(F,6,k.decoderInfo[z],Xn5,3);kW(F,9,k.playerResponseCpn);K1(F,10,k.transitionStitchType);K1(F,12,k.timestampOffsetMsecs);K1(F,15,k.remoteControlMode);if(k.remoteConnectedDevices)for(z=0;z<k.remoteConnectedDevices.length;z++)oz(F,16,k.remoteConnectedDevices[z],qcH,3);F0(F,17,k.serializedHouseBrandPlayerServiceLoggingContext)};
Xn5=function(F,k){K1(F,1,k.elapsedTimeMs);kW(F,3,k.videoDecoderName)};
qcH=function(F,k){K1(F,1,k.deviceInterface);kW(F,2,k.deviceVersion);WZ(F,3,k.isSleeping)};
u$I=function(F){return{first:dx(F,1),rr:dx(F,2)}};
wnY=function(F){return{bitrate:dx(F,6),width:dx(F,7),height:dx(F,8),fps:dx(F,25),averageBitrate:dx(F,31),audioSampleRate:dx(F,45),audioChannels:dx(F,46)}};
jp=function(F){return{itagDenylist:Y_(F,1)}};
lVC=function(F){return{d04:dx(F,1),itag:Rd(F,3),gk:gx(F,4,mQn),lmt:dx(F,5),xop:dx(F,7),xtags:Rd(F,15),Rl4:gx(F,23,TGx),pV:gx(F,34,jp)}};
mQn=function(F){return{iv:yx(F,5),r4G:Jc(F,7)}};
Qvn=function(F){return{pM:Y_(F,2),videoId:Rd(F,3),IC:dx(F,4)}};
TGx=function(F){return{videoId:Rd(F,2)}};
hID=function(F){return{A8:dx(F,3),tP:dx(F,4),RC:dx(F,5),EYQ:Jc(F,8),s9U:dx(F,10),Ol:dx(F,12),KL:dx(F,13),Bk:dx(F,14),uD:dx(F,15),V8:dx(F,16)}};
svY=function(F){return{targetAudioReadaheadMs:dx(F,1),targetVideoReadaheadMs:dx(F,2),backoffTimeMs:dx(F,4),playbackCookie:yx(F,7),videoId:Rd(F,8)}};
ren=function(F){return{minBandwidthBytesPerSec:dx(F,1),minReadaheadMs:dx(F,2)}};
BGa=function(F){return{startMinReadaheadPolicy:n1(F,1,ren),resumeMinReadaheadPolicy:n1(F,2,ren)}};
GUM=function(F){return{label:Rd(F,1),text:Rd(F,2)}};
UQ9=function(F){return{videoId:Rd(F,1),formatId:gx(F,2,DN),debugInfo:n1(F,3,GUM)}};
t9x=function(F){return{gU:n1(F,1,UQ9)}};
ZsI=function(F){return{zB:dx(F,1),vk:dx(F,2),minReadaheadMs:dx(F,3)}};
vIp=function(F){return{by:dx(F,1),items:n1(F,2,ZsI),Ly:dx(F,3)}};
cep=function(F){return{token:Rd(F,1),videoId:Rd(F,2)}};
PXC=function(F){return{r5:dx(F,1)}};
Osn=function(F){return{l7t:Rd(F,1),action:dx(F,2),U5:gx(F,3,PXC)}};
ep=function(F){return{TF:dx(F,1),S$:dx(F,2),seekSource:dx(F,3)}};
IVC=function(F){return{YX:n1(F,1,V9n),x$R:Rd(F,2)}};
Hsx=function(F){return{df:Rd(F,1),yP:dx(F,2),elh:dx(F,3),xT:dx(F,4),V1:dx(F,5),zv:dx(F,6)}};
aVa=function(F){return{Hk:dx(F,1)}};
V9n=function(F){return{clipId:Rd(F,1),xK:gx(F,2,Hsx),Ja:gx(F,3,aVa)}};
Sck=function(F){return{type:dx(F,1),scope:dx(F,2),value:yx(F,3),sendByDefault:Jc(F,4),writePolicy:dx(F,5)}};
bsk=function(F){var k=[];F=g.l(F.split(","));for(var z=F.next();!z.done;z=F.next()){var x=z.value;x&&((z=x.startsWith("!"))&&(x=x.substring(1)),x=x.split("-"),x.length<3||k.push({fq:x[0],platform:x[1],deviceVersion:x[2],Vg:z}))}return k};
yen=function(F){return bsk(F).map(function(k){return{deviceInterface:dQ6[JeM[k.fq]]||0,deviceVersion:k.deviceVersion||"",isSleeping:k.Vg}})};
g.Ct=function(F,k){this.id=F;this.ZD=k;this.captionTracks=[];this.U=this.j=null;this.xtags="";this.W=!1;this.Y=null;this.L="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";F=this.ZD.id.split(".");F.length>1&&(this.W=F[1]==="2")};
AX=function(F,k,z,x,D){this.L=F;this.Y=k;this.U=z;this.reason=x;this.Yu=D===void 0?0:D};
g.pt=function(F,k,z,x){return new AX(g.Yg[F]||0,g.Yg[k]||0,z,x)};
XM=function(F){if(E_&&F.Yu)return!1;var k=g.Yg.auto;return F.L===k&&F.Y===k};
N4=function(F){return q4[F.Y||F.L]||"auto"};
RIa=function(F,k){k=g.Yg[k];return F.L<=k&&(!F.Y||F.Y>=k)};
uj=function(F){return"["+F.L+"-"+F.Y+", override: "+(F.U+", reason: "+F.reason+"]")};
wV=function(F,k,z){this.videoInfos=F;this.Y=k;this.audioTracks=[];if(this.Y){F=new Set;z==null||z({ainfolen:this.Y.length});k=g.l(this.Y);for(var x=k.next();!x.done;x=k.next())if(x=x.value,!x.ZD||F.has(x.ZD.id)){var D=void 0,e=void 0,C=void 0;(C=z)==null||C({atkerr:!!x.ZD,itag:x.itag,xtag:x.Y,lang:((D=x.ZD)==null?void 0:D.name)||"",langid:((e=x.ZD)==null?void 0:e.id)||""})}else D=new g.Ct(x.id,x.ZD),F.add(x.ZD.id),this.audioTracks.push(D);z==null||z({atklen:this.audioTracks.length})}};
my=function(){g.S.apply(this,arguments);this.Y=null};
M9p=function(F,k,z,x,D,e,C){if(F.Y)return F.Y;var p={},E=new Set,X={};if(Tf(x)){for(var q in x.Y)x.Y.hasOwnProperty(q)&&(F=x.Y[q],X[F.info.DQ]=[F.info]);return X}q=gIY(k,x,p);e&&D({aftsrt:lj(q)});for(var N={},u=g.l(Object.keys(q)),w=u.next();!w.done;w=u.next()){w=w.value;for(var m=g.l(q[w]),h=m.next();!h.done;h=m.next()){h=h.value;var B=h.itag,U=void 0,v=w+"_"+(((U=h.video)==null?void 0:U.fps)||0);N.hasOwnProperty(v)?N[v]===!0?X[w].push(h):p[B]=N[v]:(U=QJ(k,h,z,x.isLive,E),U!==!0?(C.add(w),p[B]=U,
U==="disablevp9hfr"&&(N[v]="disablevp9hfr")):(X[w]=X[w]||[],X[w].push(h),N[v]=!0))}}e&&D({bfflt:lj(X)});for(var P in X)X.hasOwnProperty(P)&&(x=P,X[x]&&X[x][0].Ci()&&(X[x]=X[x],X[x]=YcM(k,X[x],p),X[x]=nIH(X[x],p)));e&&Object.keys(p).length>0&&D({rjr:Pw(p)});k=g.l(E.values());for(x=k.next();!x.done;x=k.next())(x=z.L.get(x.value))&&--x.vA;e&&D({aftflt:lj(X)});F.Y=g.Z8(X,function(I){return!!I.length});
return F.Y};
fVa=function(F,k,z,x,D,e,C,p){p=p===void 0?!1:p;if(k.fJ&&C&&C.length>1&&!(k.l0>0||k.K)){for(var E=k.L||!!D,X=E&&k.RS?e:void 0,q=gIY(k,x),N=[],u=[],w={},m=0;m<C.length;m++){var h=C[m],B=x.U.get(h);if(B&&B.info){var U=B.info;B=U.DQ;if(QJ(k,U,z,x.isLive)){h=U.Ci()?N:u;U=g.l(q[B]);for(var v=U.next();!v.done;v=U.next()){v=v.value;var P=void 0,I=B+"_"+(((P=v.video)==null?void 0:P.fps)||0);w.hasOwnProperty(I)?w[I]===!0&&h.push(v):QJ(k,v,z,x.isLive)&&(h.push(v),w[I]=!0)}}else E&&e({opfu:h})}}if(N.length&&
u.length)return E&&e({opfm:N[0].itag+","+u[0].itag}),IS(new wV(N,u,X))}return LRY(F,k,z,x,D,e,p)};
LRY=function(F,k,z,x,D,e,C){function p(U){return!!N[U]}
var E=k.L||!!D,X=E&&k.RS?e:void 0,q=new Set,N=M9p(F,k,z,x,e,E,q);hX(x)&&(N=KR5(z,N,D,E,e,k),E&&e({enflt:lj(N)}));k.dH=WRD(N,k);if(Tf(x))return e=g.M$(Object.values(N),function(U){return!!U.length&&!!U[0].audio}),E=g.M$(Object.values(N),function(U){return!!U.length&&!!U[0].video}),e&&E||VL(),IS(new wV(E,e,X));
D=FSY(k);if(k.U){F=N.a;var u=!1;k.l$&&D[0]!=="a"&&k7I(F)&&(D.unshift("a"),u=!0);E&&(e({preferHighQualityAudio:k.l$}),e({forcedAacForHqa:u}))}E&&e({audioPrefOrder:D.join("_")});F=[];if(k.MD){D=g.pT(D,p);u=new Set;for(var w=g.l(D),m=w.next();!m.done;m=w.next()){m=g.l(N[m.value]);for(var h=m.next();!h.done;h=m.next())h=h.value,h.ZD&&!u.has(h.ZD.id)&&(u.add(h.ZD.id),F.push(h))}if(F.length===0){if(D.length===0)return E&&e({noaudio:1}),VL();F=N[D[0]]}}else{F=g.M$(D,p);if(!F)return E&&e({noaudio:1}),VL();
F=N[F]}N["9"]&&N.h&&x.oS&&!k.RU&&(E&&e({dltvp9:1}),delete N["9"]);if(C){E&&e({bfsflt:lj(N),bfsflta:s_(z)});ogY(z,q);E&&e({bfsfltb:s_(z)});for(var B in N)if(N.hasOwnProperty(B)&&(C=B,!(C==="f"||k.yh===0&&zmI.has(C))))for(q=g.l(N[C]),D=q.next();!D.done;D=q.next())D=D.value,k.yf?xmY(z,C,D):iPn(z,C,D);E&&e({aftsflt:s_(z)})}C=N["1h"]?"1h":"1";z=N["9h"]?"9h":"9";D=N[C];u=N[z];D&&D.length&&(k.Y.highestAv1Resolution=D[D.length-1].video.qualityOrdinal);u&&u.length&&(k.Y.highestVp9Resolution=u[u.length-1].video.qualityOrdinal);
B=[];q=[];if(k.YP&&D)B=D,q=[C],e({forceAv1:C});else if(k.K&&!k.Nm)for(q=Dm5(x)?N["1h"]||N["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],E&&e({newhybpref:q.join(".")}),D=g.l(q),u=D.next();!u.done;u=D.next())B=B.concat(N[u.value]).filter(function(U){return U});
else k.l0>0&&u&&D&&(q=[C,z],B=D.concat(u).filter(function(U){return U}));
if(B.length&&!k.Nm){rV(B,q);if(E){E=[];k=g.l(B);for(x=k.next();!x.done;x=k.next())E.push(x.value.itag);e({hbdfmt:E.join(".")})}return IS(new wV(B,F,X))}B=$mM(k);B=g.M$(B,p);if(!B){if(N[C])return e=N[C],rV(e),IS(new wV(e,F,X));E&&e({novideo:1});return VL()}k.We&&(B==="1"||B==="1h")&&N[z]&&(C=BO(N[B]),q=BO(N[z]),q>C?B=z:q===C&&jNR(N[z])&&(B=z));B==="9"&&N.h&&BO(N.h)>BO(N["9"])&&(B="h");k.mY&&x.isLive&&B==="("&&N.H&&BO(N["("])<1440&&(B="H");E&&e({vfmly:Gf(B)});k=N[B];if(!k.length)return E&&e({novfmly:Gf(B)}),
VL();rV(k);return IS(new wV(k,F,X))};
WRD=function(F,k){var z=!(!F.m&&!F.M),x=!(!F.mac3&&!F.MAC3),D=!(!F.meac3&&!F.MEAC3);F=!(!F.i&&!F.I);k.ZR=F;return z||x||D||F};
jNR=function(F){F=g.l(F);for(var k=F.next();!k.done;k=F.next())if(k=k.value,k.itag&&emn.has(k.itag))return!0;return!1};
k7I=function(F){F=g.l(F);for(var k=F.next();!k.done;k=F.next())if(k.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1};
Gf=function(F){switch(F){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return F}};
lj=function(F){var k=[],z;for(z in F)if(F.hasOwnProperty(z)){var x=z;k.push(Gf(x));x=g.l(F[x]);for(var D=x.next();!D.done;D=x.next())k.push(D.value.itag)}return k.join(".")};
KR5=function(F,k,z,x,D,e){var C={},p={};g.tg(k,function(E,X){E=E.filter(function(q){var N=q.itag;if(!q.J5)return p[N]="noenc",!1;if(e.Xm&&q.DQ==="(h"&&e.UH)return p[N]="lichdr",!1;if(!F.j&&q.DQ==="1e")return p[N]="noav1enc",!1;if(q.DQ==="("||q.DQ==="(h"){if(F.U&&z&&z.flavor==="widevine"){var u=q.mimeType+"; experimental=allowed";(u=!!q.J5[z.flavor]&&!!z.Y[u])||(p[N]=q.J5[z.flavor]?"unspt":"noflv");return u}if(!U_(F,tX.CRYPTOBLOCKFORMAT)&&!F.yh||F.mp)return p[N]=F.mp?"disvp":"vpsub",!1}return z&&q.J5[z.flavor]&&
z.Y[q.mimeType]?!0:(p[N]=z?q.J5[z.flavor]?"unspt":"noflv":"nosys",!1)});
E.length&&(C[X]=E)});
x&&Object.entries(p).length&&D({rjr:Pw(p)});return C};
nIH=function(F,k){var z=v8(F,function(x,D){return D.video.fps>32?Math.min(x,D.video.width):x},Infinity);
z<Infinity&&(F=F.filter(function(x){if(x.video.fps>32||x.video.width<z)return!0;k[x.itag]="hfrfirst";return!1}));
Kg()&&(F=F.filter(function(x){if(x.itag!=="299")return!0;k[x.itag]="ps3hfr1080";return!1}));
return F};
YcM=function(F,k,z){return k=k.filter(function(x){if(x.video.qualityOrdinal<=F.uL)return!0;z[x.itag]="maxquality";return!1})};
gIY=function(F,k,z){var x={},D;for(D in k.Y)if(k.Y.hasOwnProperty(D)){var e=k.Y[D].info;if(F.B&&e.video&&e.video.qualityOrdinal<F.B)z&&(z[e.itag]="min"+F.B);else{var C=e.DQ;x[C]=x[C]||[];x[C].push(e)}}F=g.l(Object.keys(x));for(k=F.next();!k.done;k=F.next())rV(x[k.value]);return x};
BO=function(F){return v8(F,function(k,z){return Math.max(k,z.video.qualityOrdinal)},0)};
QJ=function(F,k,z,x,D){D=D===void 0?new Set:D;if(k.DQ==="")return"unkn";if((k.itag==="304"||k.itag==="266")&&F.t4)return"blk2khfr";if(F.G&&k.video&&k.video.qualityOrdinal>F.G)return"max"+F.G;if(F.vR&&k.DQ==="h"&&k.video&&k.video.qualityOrdinal>1080)return"blkhigh264";if(k.DQ==="(h"&&!z.G)return"enchdr";if((x===void 0?0:x)&&xb(k)&&!F.J4)return"blk51live";if((k.DQ==="MAC3"||k.DQ==="mac3")&&!F.W)return"blkac3";if((k.DQ==="MEAC3"||k.DQ==="meac3")&&!F.S)return"blkeac3";if(k.DQ==="M"||k.DQ==="m")return"blkaac51";
if((k.DQ==="so"||k.DQ==="sa")&&!F.PR)return"blkamb";if(!F.Xm&&N86(k)&&(!z.j||k.DQ!=="1e"))return"cbc";if(!z.j&&N86(k)&&k.DQ==="1e")return"cbcav1";if((k.DQ==="i"||k.DQ==="I")&&!F.qD)return"blkiamf";if(k.itag==="774"&&!F.mp)return"blkouh";var e,C;if(F.NJ&&(k.DQ==="1"||k.DQ==="1h"||z.j&&k.DQ==="1e")&&((e=k.video)==null?0:e.qualityOrdinal)&&((C=k.video)==null?void 0:C.qualityOrdinal)>F.NJ)return"av1cap";if((x=z.L.get(k.DQ))&&x.vA>0)return D.add(k.DQ),"byerr";var p;if((p=k.video)==null?0:p.fps>32){if(!z.Xf&&
!U_(z,tX.FRAMERATE))return"capHfr";if(F.kG&&k.video.qualityOrdinal>=4320)return"blk8khfr";if(Ww(k)&&F.m_&&k.J5&&k.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(F.Yu&&k.Yu>F.Yu)return"ratecap";F=CvD(z,k);return F!==!0?F:!0};
rV=function(F,k){k=k===void 0?[]:k;g.AO(F,function(z,x){var D=x.Yu-z.Yu;if(!z.Ci()||!x.Ci())return D;var e=x.video.height*x.video.width-z.video.height*z.video.width;!e&&k&&k.length>0&&(z=k.indexOf(z.DQ)+1,x=k.indexOf(x.DQ)+1,e=z===0||x===0?x||-1:z-x);e||(e=D);return e})};
g.ZN=function(F,k){this.L=F;this.j=k===void 0?!1:k;this.U=this.path=this.scheme=o5[5];this.Y={};this.url=o5[5]};
cO=function(F){vO(F);return F.U};
PO=function(F){return F.L?F.L.startsWith(o5[35]):F.scheme===o5[35]};
AwH=function(F){vO(F);return g.cB(F.Y,function(k){return k!==null})};
O_=function(F){vO(F);var k=decodeURIComponent(F.get(o5[8])||o5[5]).split(o5[17]);return F.path===o5[21]&&k.length>1&&!!k[1]};
VJ=function(F,k){k=k===void 0?!1:k;vO(F);if(F.path!==o5[21]){var z=F.clone();z.set(o5[42],o5[4]);return z}var x=F.q5();z=new g.sF(x);var D=F.get(o5[49]),e=decodeURIComponent(F.get(o5[8])||o5[5]).split(o5[17]);if(D&&e&&e.length>1&&e[1])return x=z.Y,F=x.replace(/^[^.]*/,o5[5]),g.BD(z,(x.indexOf(o5[18])===0?o5[18]:o5[38])+D+o5[1]+e[1]+F),z=new g.ZN(z.toString()),z.set(o5[27],o5[4]),z;if(k)return z=F.clone(),z.set(o5[27],o5[4]),z;D=z.Y.match(o5[2]);z.Y.match(o5[33])?(g.BD(z,o5[24]),x=z.toString()):z.Y.match(o5[47])?
(g.BD(z,o5[29]),x=z.toString()):(z=DhD(x),j9(z)&&(x=z));z=new g.ZN(x);z.set(o5[31],o5[4]);D&&z.set(o5[23],o5[34]);return z};
vO=function(F){if(F.L){if(!j9(F.L)&&!F.L.startsWith(o5[35]))throw new g.Fa(o5[12],F.L);var k=g.PD(F.L);F.scheme=k.W;F.U=k.Y+(k.U!=null?o5[40]+k.U:o5[5]);var z=k.L;if(z.startsWith(o5[21]))F.path=o5[21],z=z.slice(14);else if(z.startsWith(o5[45]))F.path=o5[45],z=z.slice(13);else if(z.startsWith(o5[9])){var x=z.indexOf(o5[19],12),D=z.indexOf(o5[19],x+1);x>0&&D>0?(F.path=z.slice(0,D),z=z.slice(D+1)):(F.path=z,z=o5[5])}else F.path=z,z=o5[5];x=F.Y;F.Y=pw5(z);Object.assign(F.Y,Egp(k.j.toString()));Object.assign(F.Y,
x);F.Y.file===o5[48]&&(delete F.Y.file,F.path+=o5[20]);F.L=o5[5];F.url=o5[5];F.j&&(k=Vrn(),vO(F),z=F.Y[k]||null)&&(z=XwH[0](z),F.set(k,z),F.j||Vrn(o5[5]))}};
q36=function(F){vO(F);var k=F.scheme+(F.scheme?o5[30]:o5[44])+F.U+F.path;if(AwH(F)){var z=[];g.tg(F.Y,function(x,D){x!==null&&z.push(D+o5[22]+x)});
k+=o5[0]+z.join(o5[26])}return k};
pw5=function(F){F=F.split(o5[19]);var k=0;F[0]||k++;for(var z={};k<F.length;k+=2)F[k]&&Nu5(z,F[k],F[k+1]);return z};
Egp=function(F){F=F.split(o5[26]);for(var k={},z=0;z<F.length;z++){var x=F[z],D=x.indexOf(o5[22]);D>0?Nu5(k,x.slice(0,D),x.slice(D+1)):x&&(k[x]=o5[5])}return k};
Nu5=function(F,k,z){if(k===o5[43]){var x;(x=z.indexOf(o5[22]))>=0?(k=o5[3]+z.slice(0,x),z=z.slice(x+1)):(x=z.indexOf(o5[37]))>=0&&(k=o5[3]+z.slice(0,x),z=z.slice(x+3))}F[k]=z};
Iy=function(F){var k=g.J(F,uo6)||F.signatureCipher;F={EN:!1,e4:o5[5],L8:o5[5],s:o5[5]};if(!k)return F;k=DC(k);F.EN=!0;F.e4=k.url;F.L8=k.sp;F.s=k.s;return F};
HO=function(F,k,z,x,D,e,C,p,E){this.gt=F;this.startTime=k;this.duration=z;this.ingestionTime=x;this.sourceURL=D;this.w9=E;this.endTime=k+z;this.Y=C||0;this.range=e||null;this.pending=p||!1;this.w9=E||null};
g.ay=function(){this.segments=[];this.Y=null;this.L=!0;this.U=""};
wwn=function(F,k){if(k>F.OJ())F.segments=[];else{var z=nC(F.segments,function(x){return x.gt>=k},F);
z>0&&F.segments.splice(0,z)}};
Sp=function(F,k,z,x,D){D=D===void 0?!1:D;this.data=F;this.offset=k;this.size=z;this.type=x;this.Y=(this.L=D)?0:8;this.dataOffset=this.offset+this.Y};
bj=function(F){var k=F.data.getUint8(F.offset+F.Y);F.Y+=1;return k};
dV=function(F){var k=F.data.getUint16(F.offset+F.Y);F.Y+=2;return k};
JX=function(F){var k=F.data.getInt32(F.offset+F.Y);F.Y+=4;return k};
yJ=function(F){var k=F.data.getUint32(F.offset+F.Y);F.Y+=4;return k};
Ry=function(F){var k=F.data;var z=F.offset+F.Y;k=k.getUint32(z)*4294967296+k.getUint32(z+4);F.Y+=8;return k};
gV=function(F,k){k=k===void 0?NaN:k;if(isNaN(k))var z=F.size;else for(z=F.Y;z<F.size&&F.data.getUint8(F.offset+z)!==k;)++z;k=new Uint8Array(F.data.buffer,F.offset+F.Y+F.data.byteOffset,z-F.Y);F.Y=Math.min(z+1,F.size);return cZ(k)};
mmH=function(F){return new Uint8Array(F.data.buffer,F.offset+F.data.byteOffset,F.size)};
TuM=function(F){this.offset=0;this.data=new DataView(new ArrayBuffer(F))};
YC=function(F,k,z,x){(new Uint8Array(F.data.buffer,F.offset,x)).set(new Uint8Array(k.buffer,z+k.byteOffset,x));F.offset+=x};
nt=function(F,k,z,x,D,e){this.startSecs=F;this.B8=k;this.context=z;this.identifier=x;this.event=D;this.Y=e};
Lt=function(F,k){this.data=F;this.uri=k||"https://web.archive.org/web/20250411103644/http://youtube.com/streaming/metadata/segment/102015";this.Io=M4(this,"Sequence-Number");this.j=M4(this,"Segment-Count");this.W=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=M4(this,"Ingestion-Walltime-Us")/1E6;this.Y=(M4(this,"First-Frame-Time-Us")+M4(this,"First-Frame-Uncertainty-Us"))/1E6;this.dO=M4(this,"Target-Duration-Us")/1E6;this.HM=this.data["Stream-Finished"]==="T";this.U=this.data.Streamable==="T";this.cryptoPeriodIndex=M4(this,"Crypto-Period-Index");
this.L=M4(this,"Crypto-Period-Seconds")};
QN5=function(F){return F.data["Cuepoint-Type"]?new nt(-(Number(F.data["Cuepoint-Playhead-Time-Sec"])||0),Number(F.data["Cuepoint-Total-Duration-Sec"])||0,F.data["Cuepoint-Context"],F.data["Cuepoint-Identifier"]||"",l65[F.data["Cuepoint-Event"]||""]||"unknown",(Number(F.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null};
hmn=function(F){return Number(F.data["Start-Media-Time-Us"])/1E6||0};
M4=function(F,k){return Number(F.data[k])||0};
ft=function(F){return F.data["Stitched-Video-Cpn"]?F.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.sN6=function(F){return F.data["Serialized-State"]?F.data["Serialized-State"]:""};
g.rw5=function(F){switch(F.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
BuR=function(F,k){this.Y=F;this.duration=k};
G7H=function(F,k,z,x,D){this.L=D;this.Y=F||0;this.pitch=k||0;this.yaw=z||0;this.roll=x||0;this.crc=D.getUint32(4)};
Kt=function(F){var k={};F=F.split("\r\n");for(var z=0;z<F.length;z++){if(F[z].length===0)return k;var x=F[z].match(/([^:]+):\s+([\S\s]+)/);x!=null&&(k[x[1]]=x[2])}return null};
UmD=function(F,k){var z=g.WO(F,0,1952868452);F=g.WO(F,0,1953658222);if(z&&F){z.skip(1);var x=bj(z)<<16|dV(z);z.skip(4);x&1&&z.skip(8);x&2&&z.skip(4);if(x&8){x=z.Y;var D=yJ(z);z.data.setUint32(z.offset+x,k>1?Math.ceil(D*k):Math.floor(D*k))}F.skip(1);z=bj(F)<<16|dV(F);if(z&256){x=z&1;D=z&4;var e=z&512,C=z&1024,p=z&2048;z=yJ(F);x&&F.skip(4);D&&F.skip(4);x=(e?4:0)+(C?4:0)+(p?4:0);for(D=0;D<z;D++)e=F.Y,C=yJ(F),F.data.setUint32(F.offset+e,k>1?Math.ceil(C*k):Math.floor(C*k)),F.skip(x)}}};
kd=function(F){F=new DataView(F.buffer,F.byteOffset,F.byteLength);return(F=g.WO(F,0,1836476516))?g.F5(F):NaN};
tDa=function(F){var k=g.WO(F,0,1937011556);if(!k)return null;k=o0(F,k.dataOffset+8,1635148593)||o0(F,k.dataOffset+8,1635135537);if(!k)return null;var z=o0(F,k.dataOffset+78,1936995172),x=o0(F,k.dataOffset+78,1937126244);if(!x)return null;k=null;if(z)switch(z.skip(4),bj(z)){default:k=0;break;case 1:k=2;break;case 2:k=1;break;case 3:k=255}var D=z=null,e=null;if(x=o0(F,x.dataOffset,1886547818)){var C=o0(F,x.dataOffset,1886546020),p=o0(F,x.dataOffset,2037673328);if(!p&&(p=o0(F,x.dataOffset,1836279920),
!p))return null;C&&(C.skip(4),z=JX(C)/65536,e=JX(C)/65536,D=JX(C)/65536);F=mmH(p);F=new DataView(F.buffer,F.byteOffset+8,F.byteLength-8);return new G7H(k,z,e,D,F)}return null};
o0=function(F,k,z){for(;z6(F,k);){var x=xd(F,k);if(x.type===z)return x;k+=x.size}return null};
g.WO=function(F,k,z){for(;z6(F,k);){var x=xd(F,k);if(x.type===z)return x;k=il(x.type)?k+8:k+x.size}return null};
g.Dr=function(F){if(F.data.getUint8(F.dataOffset)){var k=F.data;F=F.dataOffset+4;k=k.getUint32(F)*4294967296+k.getUint32(F+4)}else k=F.data.getUint32(F.dataOffset+4);return k};
xd=function(F,k){var z=F.getUint32(k),x=F.getUint32(k+4);return new Sp(F,k,z,x)};
g.F5=function(F){var k=F.data.getUint8(F.dataOffset)?20:12;return F.data.getUint32(F.dataOffset+k)};
ZPR=function(F){F=new Sp(F.data,F.offset,F.size,F.type,F.L);var k=bj(F);F.skip(7);var z=yJ(F);if(k===0){k=yJ(F);var x=yJ(F)}else k=Ry(F),x=Ry(F);F.skip(2);for(var D=dV(F),e=[],C=[],p=0;p<D;p++){var E=yJ(F);e.push(E);C.push(yJ(F));F.skip(4)}return{timescale:z,CS:k,cB:x,nYU:e,Yi:C}};
z6=function(F,k){if(F.byteLength-k<8)return!1;var z=F.getUint32(k);if(z<8||F.byteLength-k<z)return!1;for(z=4;z<8;z++){var x=F.getInt8(k+z);if(x<48||x>122)return!1}return!0};
il=function(F){return F===1701082227||F===1836019558||F===1836019574||F===1835297121||F===1835626086||F===1937007212||F===1953653094||F===1953653099||F===1836475768};
vgC=function(F){F.skip(4);return{YzJ:gV(F,0),value:gV(F,0),timescale:yJ(F),Hca:yJ(F),gyQ:yJ(F),id:yJ(F),CL:gV(F),offset:F.offset}};
g.cw6=function(F){var k=o0(F,0,1701671783);if(!k)return null;var z=vgC(k),x=z.YzJ;z=Kt(z.CL);if(F=o0(F,k.offset+k.size,1701671783))if(F=vgC(F),F=Kt(F.CL),z&&F){k=g.l(Object.keys(F));for(var D=k.next();!D.done;D=k.next())D=D.value,z[D]=F[D]}return z?new Lt(z,x):null};
$d=function(F,k){for(var z=o0(F,0,k);z;){var x=z;x.type=1936419184;x.data.setUint32(x.offset+4,1936419184);z=o0(F,z.offset+z.size,k)}};
g.jw=function(F,k){for(var z=0,x=[];z6(F,z);){var D=xd(F,z);D.type===k&&x.push(D);z=il(D.type)?z+8:z+D.size}return x};
Pva=function(F,k){var z=g.WO(F,0,1937011556),x=g.WO(F,0,1953654136);if(!z||!x||F.getUint32(z.offset+12)>=2)return null;var D=new DataView(k.buffer,k.byteOffset,k.length),e=g.WO(D,0,1937011556);if(!e)return null;k=D.getUint32(e.dataOffset+8);x=D.getUint32(e.dataOffset+12);if(x!==1701733217&&x!==1701733238)return null;x=new TuM(F.byteLength+k);YC(x,F,0,z.offset+12);x.data.setInt32(x.offset,2);x.offset+=4;YC(x,F,z.offset+16,z.size-16);YC(x,D,D.byteOffset+e.dataOffset+8,k);YC(x,F,z.offset+z.size,F.byteLength-
(z.offset+z.size));z=g.l([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(D=z.next();!D.done;D=z.next())D=g.WO(F,0,D.value),x.data.setUint32(D.offset,D.size+k);F=g.WO(x.data,0,1953654136);x.data.setUint32(F.offset+16,2);return x.data};
OPY=function(F){var k=g.WO(F,0,1937011556);if(!k)return null;var z=F.getUint32(k.dataOffset+12);if(z!==1701733217&&z!==1701733238)return null;k=o0(F,k.offset+24+(z===1701733217?28:78),1936289382);if(!k)return null;z=o0(F,k.offset+8,1935894637);if(!z||F.getUint32(z.offset+12)!==1667392371)return null;k=o0(F,k.offset+8,1935894633);if(!k)return null;k=o0(F,k.offset+8,1952804451);if(!k)return null;z=new Uint8Array(16);for(var x=0;x<16;x++)z[x]=F.getInt8(k.offset+16+x);return z};
ew=function(F,k){this.Y=F;this.pos=0;this.start=k||0};
Cz=function(F){return F.pos>=F.Y.byteLength};
qp=function(F,k,z){var x=new ew(z);if(!Av(x,F))return!1;x=pz(x);if(!EO(x,k))return!1;for(F=0;k;)k>>>=8,F++;k=x.start+x.pos;var D=X5(x,!0);x=F+(x.start+x.pos-k)+D;x=x>9?VDa(x-9,8):VDa(x-2,1);F=k-F;z.setUint8(F++,236);for(k=0;k<x.length;k++)z.setUint8(F++,x[k]);return!0};
I66=function(F){var k=new ew(F);k.ox();if(Av(k,[408125543,374648427,174,224]))k=pz(k);else return null;for(var z=F=null;!Cz(k);){var x=X5(k,!1);if(x===21432)switch(Np(k)){default:F=0;break;case 1:F=1;break;case 3:F=2;break;case 15:F=255}else x===30320?z=pz(k):ul(k)}if(!z)return null;for(var D,e=x=k=null;!Cz(z);)switch(X5(z,!1)){case 30321:if(Np(z)!==3)return null;break;case 30324:k=ws(z);break;case 30323:e=ws(z);break;case 30325:x=ws(z);break;case 30322:D=X5(z,!0);D=mD(z,D);D=new DataView(D.buffer,
D.byteOffset,D.byteLength);break;default:ul(z)}return D?new G7H(F,k,e,x,D):null};
pz=function(F){var k=X5(F,!0),z=F.Y.byteOffset+F.pos;z=new DataView(F.Y.buffer,z,Math.min(k,F.Y.buffer.byteLength-z));z=new ew(z,F.start+F.pos);F.pos+=k;return z};
Np=function(F){for(var k=X5(F,!0),z=T6(F),x=1;x<k;x++)z=z*256+T6(F);return z};
ws=function(F){var k=X5(F,!0),z=0;k===4?z=F.Y.getFloat32(F.pos):k===8&&(z=F.Y.getFloat64(F.pos));F.pos+=k;return z};
HPp=function(F){var k=X5(F,!0);return cZ(mD(F,k))};
T6=function(F){return F.Y.getUint8(F.pos++)};
X5=function(F,k){var z=T6(F);if(z===1){for(k=z=0;k<7;k++)z=z*256+T6(F);return z}for(var x=128,D=0;D<6&&x>z;D++)z=z*256+T6(F),x*=128;return k?z-x:z};
ul=function(F){var k=X5(F,!0);F.pos+=k};
a6C=function(F){if(!EO(F,440786851,!0))return null;var k=F.pos;X5(F,!1);var z=X5(F,!0)+F.pos-k;F.pos=k+z;if(!EO(F,408125543,!1))return null;X5(F,!0);if(!EO(F,357149030,!0))return null;var x=F.pos;X5(F,!1);var D=X5(F,!0)+F.pos-x;F.pos=x+D;if(!EO(F,374648427,!0))return null;var e=F.pos;X5(F,!1);var C=X5(F,!0)+F.pos-e,p=new Uint8Array(z+12+D+C),E=new DataView(p.buffer);p.set(new Uint8Array(F.Y.buffer,F.Y.byteOffset+k,z));E.setUint32(z,408125543);E.setUint32(z+4,33554431);E.setUint32(z+8,4294967295);
p.set(new Uint8Array(F.Y.buffer,F.Y.byteOffset+x,D),z+12);p.set(new Uint8Array(F.Y.buffer,F.Y.byteOffset+e,C),z+12+D);return p};
ll=function(F){var k=F.pos;F.pos=0;var z=1E6;Av(F,[408125543,357149030,2807729])&&(z=Np(F));F.pos=k;return z};
S3M=function(F,k){var z=F.pos;F.pos=0;if(F.Y.getUint8(F.pos)!==160&&!QF(F)||!EO(F,160))return F.pos=z,NaN;X5(F,!0);var x=F.pos;if(!EO(F,161))return F.pos=z,NaN;X5(F,!0);T6(F);var D=T6(F)<<8|T6(F);F.pos=x;if(!EO(F,155))return F.pos=z,NaN;x=Np(F);F.pos=z;return(D+x)*k/1E9};
QF=function(F){if(!bPn(F)||!EO(F,524531317))return!1;X5(F,!0);return!0};
bPn=function(F){if(F.ox()){if(!EO(F,408125543))return!1;X5(F,!0)}return!0};
Av=function(F,k){for(var z=0;z<k.length;z++){if(!EO(F,k[z]))return!1;z!==k.length-1&&X5(F,!0)}return!0};
EO=function(F,k,z){z=z===void 0?!1:z;if(Cz(F))return!1;for(var x=F.pos;X5(F,!1)!==k;)if(ul(F),x=F.pos,Cz(F))return!1;z&&(F.pos=x);return!0};
VDa=function(F,k){k||(k=Math.ceil(Math.log(F+2)/Math.log(2)/7));for(var z=1<<8-k,x=[];x.length<k-1;)x.unshift(F%256),F=Math.floor(F/256);x.unshift(F|z);return x};
mD=function(F,k){var z=new Uint8Array(F.Y.buffer,F.Y.byteOffset+F.pos,k);F.pos+=k;return z};
hv=function(F){this.base=F;this.Y={};this.url=""};
dmx=function(F,k){var z=k.indexOf("?");if(z>0){var x=Egp(k.substring(z+1));g.tg(x,function(D,e){this.set(e,D)},F);
k=k.substring(0,z)}k=pw5(k);g.tg(k,function(D,e){this.set(e,D)},F)};
Jw9=function(F){var k=F.base.q5(),z=[];g.tg(F.Y,function(D,e){z.push(e+"="+D)});
if(!z.length)return k;var x=z.join("&");F=AwH(F.base)?"&":"?";return k+F+x};
sO=function(F,k){var z=new g.ZN(k);(k=z.get("req_id"))&&F.set("req_id",k);g.tg(F.Y,function(x,D){z.set(D,null)});
return z};
ywn=function(){this.j=this.U=this.Y=this.timedOut=this.started=this.W=this.L=0};
rs=function(F){F.W=(0,g.VE)();F.started=0;F.timedOut=0;F.Y=0};
Bf=function(F,k){var z=F.started+F.Y*4;k&&(z+=F.U);z=Math.max(0,z-3);return Math.pow(1.6,z)};
G6=function(F,k){F[k]||(F[k]=new ywn);return F[k]};
UO=function(F){this.K=this.G=this.W=this.L=0;this.B=this.S=!1;this.Y=F;this.U=F.clone()};
RmR=function(F,k,z){if(PO(F.Y))return!1;var x=G6(z,cO(F.Y));if(x.timedOut<1&&x.Y<1)return!1;x=x.timedOut+x.Y;F=tv(F,k);z=G6(z,cO(F));return z.timedOut+z.Y+0<x};
Zr=function(F,k,z){F=k?tv(F,z):F.Y;return new hv(F)};
tv=function(F,k){k=k?k.hS:!1;F.j||(F.j=VJ(F.U,k));return F.j};
vf=function(F,k,z){return cO(k?tv(F,z):F.Y)};
cf=function(F,k,z,x){k.lJ&&(x===void 0?0:x)>1?k=k.lJ:(z=G6(z,vf(F,F.PN(k,z),k)),k=Math.max(F.W,z.timedOut)+k.Uf*(F.L-F.W)+.25*F.G,k=k>3?1E3*Math.pow(1.6,k-3):0);return k===0?!0:F.K+k<(0,g.VE)()};
ggM=function(F,k,z){F.Y.set(k,z);F.U.set(k,z);F.j&&F.j.set(k,z)};
Y35=function(F,k,z,x,D){++F.L;k&&++F.W;cO(z.base).startsWith("redirector.")&&(F.Y=F.U.clone(),delete F.j,x.Za&&delete D[cO(F.Y)])};
Pf=function(F){return F?(F.itag||"")+";"+(F.lmt||0)+";"+(F.xtags||""):""};
OO=function(F,k,z,x){this.initRange=z;this.indexRange=x;this.Y=null;this.U=!1;this.S=0;this.j=this.wE=this.L=null;this.info=k;this.ez=new UO(F)};
VF=function(F,k){this.start=F;this.end=k;this.length=k-F+1};
I0=function(F){F=F.split("-");var k=Number(F[0]),z=Number(F[1]);if(!isNaN(k)&&!isNaN(z)&&F.length===2&&(F=new VF(k,z),!isNaN(F.start)&&!isNaN(F.end)&&!isNaN(F.length)&&F.length>0))return F};
Hf=function(F,k){return new VF(F,F+k-1)};
ngx=function(F){return F.end==null?{start:String(F.start)}:{start:String(F.start),end:String(F.end)}};
a0=function(F){if(!F)return new VF(0,0);var k=Number(F.start);F=Number(F.end);if(!isNaN(k)&&!isNaN(F)&&(k=new VF(k,F),k.length>0))return k};
Sw=function(F,k,z,x,D,e,C,p,E,X,q,N){x=x===void 0?"":x;this.type=F;this.Y=k;this.range=z;this.source=x;this.vM=q;this.clipId=N===void 0?"":N;this.K=[];this.G="";this.gt=-1;this.Qh=this.PR=0;this.G=x;this.gt=D>=0?D:-1;this.startTime=e||0;this.duration=C||0;this.L=p||0;this.U=E>=0?E:this.range?this.range.length:NaN;this.W=this.range?this.L+this.U===this.range.length:X===void 0?!!this.U:X;this.range?(this.j=this.startTime+this.duration*this.L/this.range.length,this.B=this.duration*this.U/this.range.length,
this.S=this.j+this.B):MDR(this)};
MDR=function(F){F.j=F.startTime;F.B=F.duration;F.S=F.j+F.B};
LSM=function(F,k,z){var x=!(!k||k.Y!==F.Y||k.type!==F.type||k.gt!==F.gt);return z?x&&!!k&&(F.range&&k.range?k.range.end===F.range.end:k.range===F.range)&&k.L+k.U===F.L+F.U:x};
bl=function(F){return F.type===1||F.type===2};
ds=function(F){return F.type===3||F.type===6};
Jv=function(F,k){return F.Y===k.Y?F.range&&k.range?F.range.start+F.L+F.U===k.range.start+k.L:F.gt===k.gt?F.L+F.U===k.L:F.gt+1===k.gt&&k.L===0&&F.W:!1};
KSM=function(F,k){return F.gt!==k.gt&&k.gt!==F.gt+1||F.type!==k.type?!1:Jv(F,k)?!0:Math.abs(F.j-k.j)<=1E-6&&F.gt===k.gt?!1:f6x(F,k)};
f6x=function(F,k){return Jv(F,k)||Math.abs(F.S-k.j)<=1E-6||F.gt+1===k.gt&&k.L===0&&F.W?!0:!1};
yF=function(F){return F.gt+(F.W?1:0)};
WS5=function(F){F.length===1||g.ZO(F,function(z){return!!z.range});
for(var k=1;k<F.length;k++);k=F[F.length-1];return new VF(F[0].range.start+F[0].L,k.range.start+k.L+k.U-1)};
FxM=function(F){for(var k=1;k<F.length;k++)if(!Jv(F[k-1],F[k]))return!1;return!0};
k$p=function(F){var k=0;F=g.l(F);for(var z=F.next();!z.done;z=F.next())k+=z.value.range.length;return k};
R0=function(F){var k={};k.itag=F.Y.info.itag;k.type=""+F.type;k.src=""+F.source;k.segsrc=F.G;k.seg=String(F.gt);F.range&&(k.range=F.range.start+F.L+"-"+(F.range.start+F.L+F.U-1));k.time=F.j.toFixed(1)+"-"+(F.j+F.B).toFixed(1);k.off=String(F.L);k.len=String(F.U);F.W&&(k.end="1");F.HM()&&(k.eos="1");F.clipId&&(k.cid=F.clipId);return k};
obD=function(F){return new Sw(F.type,F.Y,F.range,"getEmptyStubBefore"+F.G,F.gt,F.startTime,0,F.L,0)};
zBk=function(F){return new Sw(F.type,F.Y,F.range,"getEmptyStubAfter"+F.G,F.gt,F.startTime+F.duration,0,F.L+F.U,0)};
xia=function(F,k,z,x){return new Sw(F.type,F.Y,F.range,"reslice"+F.G,F.gt,F.startTime,F.duration,k,z,x,F.vM,F.clipId)};
imI=function(F,k){return F.Y!==k.Y?!1:F.range&&k.range?F.range.start+F.L>=k.range.start+k.L&&F.range.start+F.L+F.U<=k.range.start+k.L+k.U:F.gt===k.gt&&F.L>=k.L&&(F.L+F.U<=k.L+k.U||k.W)};
DiD=function(F,k){return F.Y!==k.Y?!1:F.type===4&&k.type===3&&F.Y.Ig()?(F=F.Y.H1(F),t9(F,function(z){return DiD(z,k)})):F.gt===k.gt&&!!k.U&&k.L+k.U>F.L&&k.L+k.U<=F.L+F.U};
gs=function(F,k){var z=k.gt;F.G="updateWithSegmentInfo";F.gt=z;if(F.startTime!==k.startTime||F.duration!==k.duration)F.startTime=k.startTime+F.PR,F.duration=k.duration,MDR(F)};
Yd=function(F,k){var z=this;this.sK=F;this.j=this.Y=null;this.W=this.o3=NaN;this.PN=this.requestId=null;this.Pe={x6K:function(){return z.range}};
this.ez=F[0].Y.ez;this.L=k||"";this.sK[0].range&&this.sK[0].U>0&&(FxM(F)?(this.range=WS5(F),this.U=this.range.length):(this.range=this.sK[this.sK.length-1].range,this.U=k$p(F)))};
nz=function(F){return!bl(F.sK[F.sK.length-1])};
Mp=function(F){return F.sK[F.sK.length-1].type===4};
g.Lz=function(F,k,z){z=F.PN===null?F.ez.PN(k,z,F.sK[0].type):F.PN;if(F.Y){k=z?VJ(F.Y,k.hS):F.Y;var x=new hv(k);x.get("alr")||x.set("alr","yes");F.L&&dmx(x,F.L)}else/http[s]?:\/\//.test(F.L)?x=new hv(new g.ZN(F.L)):(x=Zr(F.ez,z,k),F.L&&dmx(x,F.L));(k=F.range)?x.set("range",k.toString()):F.sK[0].Y.CU()&&F.sK.length===1&&F.sK[0].L&&x.set("range",F.sK[0].L+"-");F.requestId&&x.set("req_id",F.requestId);isNaN(F.o3)||x.set("headm",F.o3.toString());isNaN(F.W)||x.set("mffa",F.W+"ms");F.urlParams&&g.tg(F.urlParams,
function(D,e){x.set(e,D)});
return x};
$iD=function(F){if(F.range)return F.U;F=F.sK[0];return Math.round(F.B*F.Y.info.Yu)};
jDY=function(F,k){return Math.max(0,F.sK[0].j-k)};
fz=function(F,k,z,x,D,e){e=e===void 0?0:e;OO.call(this,F,k,x,void 0);this.W=z;this.dO=e;this.index=D||new g.ay};
eBk=function(F,k,z,x,D){this.gt=F;this.startSecs=k;this.B8=z;this.Y=x||NaN;this.L=D||NaN};
Kz=function(F,k,z){for(;F;F=F.parentNode)if(F.attributes&&(!z||F.nodeName===z)){var x=F.getAttribute(k);if(x)return x}return""};
Wf=function(F,k){for(;F;F=F.parentNode){var z=F.getElementsByTagName(k);if(z.length>0)return z[0]}return null};
CKH=function(F){if(!F)return 0;var k=F.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return k?(Number(k[2])|0)*3600+(Number(k[4])|0)*60+(Number(k[6])|0):Number(F)|0};
Ata=function(F){return F.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?F+"Z":F};
FQ=function(){this.Y=[];this.L=null;this.S=0;this.U=[];this.W=!1;this.G="";this.j=-1};
pHI=function(F){var k=F.U;F.U=[];return k};
EbY=function(){this.j=[];this.Y=null;this.L={};this.U={}};
uWI=function(F,k){var z=[];k=Array.from(k.getElementsByTagName("SegmentTimeline"));k=g.l(k);for(var x=k.next();!x.done;x=k.next()){x=x.value;var D=x.parentNode.parentNode,e=null;D.nodeName==="Period"?e=XHC(F):D.nodeName==="AdaptationSet"?(D=D.getAttribute("id")||D.getAttribute("mimetype")||"",e=qHM(F,D)):D.nodeName==="Representation"&&(D=D.getAttribute("id")||"",e=NWx(F,D));if(e==null)return;e.update(x);g.xr(z,pHI(e))}g.xr(F.j,z);oGC(F.j,function(C){return C.startSecs*1E3+C.Y})};
wH5=function(F){F.Y&&(F.Y.Y=[]);g.tg(F.L,function(k){k.Y=[]});
g.tg(F.U,function(k){k.Y=[]})};
XHC=function(F){F.Y||(F.Y=new FQ);return F.Y};
qHM=function(F,k){F.L[k]||(F.L[k]=new FQ);return F.L[k]};
NWx=function(F,k){F.U[k]||(F.U[k]=new FQ);return F.U[k]};
o3=function(F){var k=F===void 0?{}:F;F=k.dO===void 0?0:k.dO;var z=k.Ks===void 0?!1:k.Ks;var x=k.FJ===void 0?0:k.FJ;var D=k.W8===void 0?0:k.W8;var e=k.zY===void 0?Infinity:k.zY;var C=k.ra===void 0?0:k.ra;var p=k.A5===void 0?!1:k.A5;k=k.b6===void 0?!1:k.b6;g.ay.call(this);this.YF=this.wV=-1;this.Rg=F;this.FJ=x;this.Ks=z;this.W8=D;this.zY=e;this.ra=C;((this.A5=p)||isFinite(e)&&this.zY>0)&&z&&kl&&(this.L=!1,this.U="postLive");this.b6=k};
zk=function(F,k){return C8(F.segments,function(z){return k-z.gt})};
xl=function(F,k,z){z=z===void 0?{}:z;fz.call(this,F,k,"",void 0,void 0,z.dO||0);this.index=new o3(z)};
i4=function(F,k,z){OO.call(this,F,k);this.W=z;F=this.index=new g.ay;F.L=!1;F.U="d"};
miM=function(F,k,z){var x=F.index.NL(k),D=F.index.getStartTime(k),e=F.index.getDuration(k);z?e=z=0:z=F.info.Yu*e;return new Yd([new Sw(3,F,void 0,"otfCreateRequestInfoForSegment",k,D,e,0,z)],x)};
TWY=function(F,k){if(!F.index.isLoaded()){var z=[],x=k.j;k=k.W.split(",").filter(function(q){return q.length>0});
for(var D=0,e=0,C=0,p=/^(\d+)/,E=/r=(\d+)/,X=0;X<x;X++){if(C<=0)if(C=k.shift(),e=(e=p.exec(C))?+e[1]/1E3:0)C=(C=E.exec(C))?+C[1]:0,C+=1;else return;z.push(new HO(X,D,e,NaN,"sq/"+(X+1)));D+=e;C--}F.index.append(z)}};
DY=function(F,k){this.info=F;this.Y=k;this.L=null;this.j=this.U=-1;this.timestampOffset=0;this.isLocked=this.S=!1;this.W=this.info.Y.fV()&&!this.info.L};
lmH=function(F,k){F.Y.getLength();k=Math.min(k,F.info.U);var z=F.Y.split(k),x=z.X9;z=new DY(new Sw(F.info.type,F.info.Y,F.info.range,F.info.G,F.info.gt,F.info.startTime,F.info.duration,F.info.L,k,!1,F.info.vM,F.info.clipId),z.LX);z.j=F.j;z.U=F.U;k=new DY(new Sw(F.info.type,F.info.Y,F.info.range,F.info.G,F.info.gt,F.info.startTime,F.info.duration,F.info.L+k,F.info.U-k,F.info.W,F.info.vM,F.info.clipId),x);k.j=F.j;k.U=F.U;return[z,k]};
g.$l=function(F,k,z,x){z=z===void 0?!1:z;x=x===void 0?0:x;if(F.isLocked||k.isLocked||!Jv(F.info,k.info)||F.info.W)return null;if(x){if(F.Y.getLength()+k.Y.getLength()>x)return null}else if(z&&(z=F.Y,x=k.Y,z=!(x.TU.length?rPx(z,x.TU[0]):1)),z)return null;z=new Sw(F.info.type,F.info.Y,F.info.range,F.info.G,F.info.gt,F.info.startTime,F.info.duration,F.info.L,F.info.U,F.info.W,F.info.vM,F.info.clipId);x=k.info;z.U+=x.U;z.range&&(z.B+=x.B);z.S=x.S;z.W=x.W;x=new rx;BZ(x,F.Y);BZ(x,k.Y);z=new DY(z,x);z.L=
k.L||F.L;z.U=F.U!==-1?F.U:k.U;z.j=F.j!==-1?F.j:k.j;return z};
g.jJ=function(F){g.iK(F.info.Y.info)||F.info.Y.info.Xv();if(F.U!==-1)return F.U;if(F.L&&hmn(F.L))return F.U=hmn(F.L),F.U;if(g.iK(F.info.Y.info)){var k=F.TA();for(var z=F.info.Y.Y,x=NaN,D=NaN,e=0;z6(k,e);){var C=xd(k,e);C.type===1936286840?D=C.data.getUint32(C.dataOffset+8):C.type===1836476516?D=g.F5(C):C.type===1952867444&&isNaN(x)&&(x=g.Dr(C));e=il(C.type)?e+8:e+C.size}!D&&z&&(D=kd(z));k=x/D}else k=new ew(F.TA()),z=F.W?k:new ew(new DataView(F.info.Y.Y.buffer)),x=ll(z),z=k.pos,k.pos=0,QF(k)?EO(k,
231)?(x=Np(k)*x/1E9,k.pos=z,k=x):(k.pos=z,k=NaN):(k.pos=z,k=NaN);F.U=k||F.info.j;return F.U};
hBn=function(F,k){F.timestampOffset>0&&(k-=F.timestampOffset);var z=g.jJ(F)+k;QDn(F,z);F.timestampOffset=k};
QDn=function(F,k){g.iK(F.info.Y.info)||F.info.Y.info.Xv();F.U=k;if(g.iK(F.info.Y.info)){var z=F.TA();F=F.info.Y.Y;for(var x=NaN,D=NaN,e=0;z6(z,e);){var C=xd(z,e);isNaN(x)&&(C.type===1936286840?x=C.data.getUint32(C.dataOffset+8):C.type===1836476516&&(x=g.F5(C)));if(C.type===1952867444){!x&&F&&(x=kd(F));var p=g.Dr(C);isNaN(D)&&(D=Math.round(k*x)-p);var E=C;p+=D;if(E.data.getUint8(E.dataOffset)){var X=E.data;E=E.dataOffset+4;X.setUint32(E,Math.floor(p/4294967296));X.setUint32(E+4,p&4294967295)}else E.data.setUint32(E.dataOffset+
4,p)}e=il(C.type)?e+8:e+C.size}return!0}z=new ew(F.TA());F=F.W?z:new ew(new DataView(F.info.Y.Y.buffer));x=ll(F);F=z.pos;z.pos=0;if(QF(z)&&EO(z,231))if(D=X5(z,!0),k=Math.floor(k*1E9/x),Math.ceil(Math.log(k)/Math.log(2)/8)>D)k=!1;else{for(x=D-1;x>=0;x--)z.Y.setUint8(z.pos+x,k&255),k>>>=8;z.pos=F;k=!0}else k=!1;return k};
C3=function(F,k){k=k===void 0?!1:k;var z=eJ(F);F=k?0:F.info.B;return z||F};
eJ=function(F){g.iK(F.info.Y.info)||F.info.Y.info.Xv();if(F.L&&F.info.type===6)return F.L.dO;if(g.iK(F.info.Y.info)){var k=F.TA();var z=0;k=g.jw(k,1936286840);k=g.l(k);for(var x=k.next();!x.done;x=k.next())x=ZPR(x.value),z+=x.Yi[0]/x.timescale;z=z||NaN;if(!(z>=0))a:{z=F.TA();k=F.info.Y.Y;for(var D=x=0,e=0;z6(z,x);){var C=xd(z,x);if(C.type===1836476516)D=g.F5(C);else if(C.type===1836019558){!D&&k&&(D=kd(k));if(!D){z=NaN;break a}var p=o0(C.data,C.dataOffset,1953653094),E=p;p=D;var X=o0(E.data,E.dataOffset,
1952868452);E=o0(E.data,E.dataOffset,1953658222);var q=JX(X);JX(X);q&2&&JX(X);X=q&8?JX(X):0;var N=JX(E),u=N&1;q=N&4;var w=N&256,m=N&512,h=N&1024;N&=2048;var B=yJ(E);u&&JX(E);q&&JX(E);for(var U=u=0;U<B;U++){var v=w?JX(E):X;m&&JX(E);q&&U===0||!h||JX(E);N&&JX(E);u+=v}e+=u/p}x=il(C.type)?x+8:x+C.size}z=e||NaN}z||g.yI(new g.Fa("Missing duration while parsing bmff",F.info.mu()))}else z=new ew(F.TA()),F=F.W?z:new ew(new DataView(F.info.Y.Y.buffer)),z=S3M(z,ll(F));return z};
g.sDn=function(F){if(F.info.Y.Ut())return F.info.duration;F.j===-1&&(F.j=eJ(F));return F.j||F.info.duration};
rtH=function(F){var k=F.TA();var z=(z=g.WO(k,0,1936286840))?z.data.getUint32(z.dataOffset+8):NaN;isNaN(z)&&(F=F.info.Y.Y,z=(k=g.WO(k,0,1836476516))?g.F5(k):F?kd(F):NaN);return z};
BWR=function(F){return F.info.Y.info.Xv()&&F.Y.getUint8(0)===160};
G$R=function(F){if(!F.L){g.iK(F.info.Y.info)||F.info.Y.info.Xv();if(g.iK(F.info.Y.info))var k=g.cw6(F.TA());else{k=new ew(F.TA());var z=k.pos;k.pos=0;var x=null,D=null;if(Av(k,[408125543,307544935]))for(var e=k.pos+X5(k,!0);k.pos<e;)if(X5(k,!1)!==29555)ul(k);else for(var C=k.pos+X5(k,!0);k.pos<C;)if(X5(k,!1)!==26568)ul(k);else for(var p=k.pos+X5(k,!0);k.pos<p;){var E=X5(k,!1);if(E===17543){if(E=HPp(k),E=Kt(E))if(D)for(var X=g.l(Object.keys(E)),q=X.next();!q.done;q=X.next())q=q.value,D[q]=E[q];else D=
E}else E===17827?(E=HPp(k),x||(x=E)):ul(k)}k.pos=z;k=D?new Lt(D,x):null}F.L=k}};
UiC=function(F){if(g.iK(F.info.Y.info))$d(F.TA(),1836019574),$d(F.TA(),1718909296);else{var k=new ew(F.TA());bPn(k);EO(k,524531317,!0);F.Y=F.Y.split(k.start+k.pos).X9}F.W=!1};
AQ=function(F){if(!F.S){if(g.iK(F.info.Y.info)){var k=F.TA();var z=o0(k,0,1836019574);if(z){z=z.offset+z.size;var x=new Uint8Array(z);x.set(new Uint8Array(k.buffer,k.byteOffset,z));k=x}else k=null}else k=a6C(new ew(F.TA()));k&&(F.info.Y.Y=k,F.S=!0)}};
g.p3=function(){this.count=0;this.Y=1;this.L=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)};
tQn=function(F,k){return k+1<F.count||F.L?F.offsets[k+1]-F.offsets[k]:-1};
E1=function(F){F.offsets.length<F.count+1&&F.resize(F.offsets.length*2)};
XQ=function(F,k,z,x){OO.call(this,F,k,z,x);var D=this;this.W=null;this.Pe={o_:function(e,C,p,E){return D.o_(e,C,p,E)}};
this.index=new g.p3};
Zmx=function(F,k,z,x,D,e){this.displayName=F;this.vssId=k;this.languageCode=z;this.kind=x===void 0?"":x;this.xtags=D===void 0?"":D;this.id=e===void 0?"":e};
ct6=function(F){if(F=F.colorInfo)if(F=F.transferCharacteristics)return vbn[F];return null};
g.qs=function(F,k,z){this.name=F;this.id=k;this.isDefault=z};
PKY=function(F){return Ns(function(k,z){return g.Pp(k,z,4,1E3)},F,{format:"RAW",
method:"GET",withCredentials:!0})};
g.OmY=function(F){var k;F.responseType&&F.responseType!=="text"?F.responseType==="arraybuffer"&&(k=cZ(new Uint8Array(F.response))):k=F.responseText;return!k||k.length>2048?"":k.indexOf("https://")===0?k:""};
Ns=function(F,k,z){k.match(VQ6);return F(k,z).then(function(x){var D=g.OmY(x.xhr);return D?Ns(F,D,z):x.xhr})};
Tk=function(F,k,z){F=F===void 0?"":F;k=k===void 0?null:k;z=z===void 0?!1:z;g.uG.call(this);var x=this;this.sourceUrl=F;this.isLivePlayback=z;this.u$=this.duration=0;this.isPremiere=this.A5=this.j=this.isLiveHeadPlayable=this.isLive=this.L=!1;this.zY=this.W8=0;this.isOtf=this.oS=!1;this.J4=(0,g.VE)();this.Qh=Infinity;this.Y={};this.U=new Map;this.state=this.H5=0;this.timeline=null;this.isManifestless=!1;this.t4=[];this.S=null;this.mp=0;this.W="";this.Xf=NaN;this.cR=this.uL=this.timestampOffset=this.G=
0;this.oO=this.FG=NaN;this.We=0;this.RU=this.K=!1;this.yh=[];this.l$={};this.PR=NaN;this.Pe={kz4:function(p){u4(x,p)}};
var D;this.NJ=(D=k)==null?void 0:D.Ca("html5_use_network_error_code_enums");Im9=!!k&&k.Ca("html5_modern_vp9_mime_type");var e;wi=!((e=k)==null||!e.Ca("html5_enable_flush_during_seek"))&&g.Lg();var C;mc=!((C=k)==null||!C.Ca("html5_enable_reset_audio_decoder"))&&g.Lg()};
Hmn=function(F){return g.cB(F.Y,function(k){return!!k.info.video&&k.info.video.qualityOrdinal>=2160})};
Dm5=function(F){return g.cB(F.Y,function(k){return!!k.info.video&&k.info.video.isHdr()})};
hX=function(F){return g.cB(F.Y,function(k){return!!k.info.J5})};
g.amI=function(F){return g.cB(F.Y,function(k){return Cm(k.info.mimeType)})};
SH9=function(F){return g.cB(F.Y,function(k){return k.info.video?k.info.video.projectionType==="EQUIRECTANGULAR":!1})};
bmx=function(F){return g.cB(F.Y,function(k){return k.info.video?k.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})};
diH=function(F){return g.cB(F.Y,function(k){return k.info.video?k.info.video.projectionType==="MESH":!1})};
JtR=function(F){return g.cB(F.Y,function(k){return k.info.video?k.info.video.stereoLayout===1:!1})};
ytx=function(F){return Jl5(F.Y,function(k){return k.info.video?k.HU():!0})};
Tf=function(F){return g.cB(F.Y,function(k){return PO(k.ez.Y)})};
u4=function(F,k){F.Y[k.info.id]=k;F.U.set(Pf(g.$b(k.info,F.oS)),k)};
RBp=function(F,k){return Pf({itag:k.itag,lmt:F.oS?0:k.lmt||0,xtags:k.xtags})};
hQ=function(F,k,z){z=z===void 0?0:z;var x=F.mimeType||"",D=F.itag;var e=F.xtags;D=D?D.toString():"";e&&(D+=";"+e);e=D;if(eQ(x)){var C=F.width||640;D=F.height||360;var p=F.fps,E=F.qualityLabel,X=F.colorInfo,q=F.projectionType,N;F.stereoLayout&&(N=gbH[F.stereoLayout]);var u=ct6(F)||void 0;if(X==null?0:X.primaries)var w=YH9[X.primaries]||void 0;C=new nP(C,D,p,q,N,void 0,E,u,w);x=l4(x,C,fP[F.itag||""]);wi&&(x+="; enableflushduringseek=true");mc&&(x+="; enableresetaudiodecoder=true")}var m;if(jQ(x)){var h=
F.audioSampleRate;N=F.audioTrack;h=new RN(h?+h:void 0,F.audioChannels,F.spatialAudioType,F.isDrc,F.loudnessDb,F.trackAbsoluteLoudnessLkfs,F.audioQuality||"AUDIO_QUALITY_UNKNOWN");N&&(w=N.displayName,D=N.id,N=N.audioIsDefault,w&&(m=new g.qs(w,D||"",!!N)))}var B;F.captionTrack&&(E=F.captionTrack,N=E.displayName,w=E.vssId,D=E.languageCode,p=E.kind,E=E.id,N&&w&&D&&(B=new Zmx(N,w,D,p,F.xtags,E)));N=Number(F.bitrate)/8;w=Number(F.contentLength);D=Number(F.lastModified);E=F.drmFamilies;p=F.type;z=z&&w?w/
z:0;F=Number(F.approxDurationMs);if(k&&E){var U={};E=g.l(E);for(X=E.next();!X.done;X=E.next())(X=Qg[X.value])&&(U[X]=k[X])}return new KP(e,x,{audio:h,video:C,ZD:m,J5:U,Yu:N,Nd:z,contentLength:w,lastModified:D,captionTrack:B,streamType:p,approxDurationMs:F})};
s1=function(F,k,z){z=z===void 0?0:z;var x=F.type;var D=F.itag;var e=F.xtags;e&&(D=F.itag+";"+e);if(eQ(x)){var C=(F.size||"640x360").split("x");C=new nP(+C[0],+C[1],+F.fps,F.projection_type,+F.stereo_layout,void 0,F.quality_label,F.eotf,F.primaries);x=l4(x,C,fP[F.itag]);wi&&(x+="; enableflushduringseek=true");mc&&(x+="; enableresetaudiodecoder=true")}var p;if(jQ(x)){var E=new RN(+F.audio_sample_rate||void 0,+F.audio_channels||0,F.spatial_audio_type,!!F.drc);F.name&&(p=new g.qs(F.name,F.audio_track_id,
F.isDefault==="1"))}var X;F.caption_display_name&&F.caption_vss_id&&F.caption_language_code&&(X=new Zmx(F.caption_display_name,F.caption_vss_id,F.caption_language_code,F.caption_kind,F.xtags,F.caption_id));e=Number(F.bitrate)/8;var q=Number(F.clen),N=Number(F.lmt);z=z&&q?q/z:0;if(k&&F.drm_families){var u={};for(var w=g.l(F.drm_families.split(",")),m=w.next();!m.done;m=w.next())m=m.value,u[m]=k[m]}return new KP(D,x,{audio:E,video:C,ZD:p,J5:u,Yu:e,Nd:z,contentLength:q,lastModified:N,captionTrack:X,
streamType:F.stream_type,approxDurationMs:Number(F.approx_duration_ms)})};
nbD=function(F){return t9(F,function(k){return"FORMAT_STREAM_TYPE_OTF"===k.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
MQC=function(F){return t9(F,function(k){return"FORMAT_STREAM_TYPE_OTF"===k.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
Lx9=function(F,k){return F.timeline?ir(F.timeline.j,k):F.t4.length?ir(F.t4,k):[]};
ri=function(F,k,z){k=k===void 0?"":k;z=z===void 0?"":z;F=new g.ZN(F,!0);F.set("alr","yes");z&&(z=rzC(decodeURIComponent(z)),F.set(k,encodeURIComponent(z)));return F};
FW6=function(F,k){var z=Kz(k,"id");z=z.replace(":",";");var x=Kz(k,"mimeType"),D=Kz(k,"codecs");x=D?x+'; codecs="'+D+'"':x;D=Number(Kz(k,"bandwidth"))/8;var e=Number(Wf(k,"BaseURL").getAttribute(F.W+":contentLength")),C=F.duration&&e?e/F.duration:0;if(eQ(x)){var p=Number(Kz(k,"width"));var E=Number(Kz(k,"height")),X=Number(Kz(k,"frameRate")),q=fmD(Kz(k,F.W+":projectionType"));a:switch(Kz(k,F.W+":stereoLayout")){case "layout_left_right":var N=1;break a;case "layout_top_bottom":N=2;break a;default:N=
0}p=new nP(p,E,X,q,N)}if(jQ(x)){var u=Number(Kz(k,"audioSamplingRate"));var w=Number(Kz(k.getElementsByTagName("AudioChannelConfiguration")[0],"value"));E=KxH(Kz(k,F.W+":spatialAudioType"));u=new RN(u,w,E);a:{w=Kz(k,"lang")||"und";if(E=Wf(k,"Role"))if(q=Kz(E,"value")||"",g.IM(Wxx,q)){E=w+"."+Wxx[q];X=q==="main";F=Kz(k,F.W+":langName")||w+" - "+q;w=new g.qs(F,E,X);break a}w=void 0}}if(k=Wf(k,"ContentProtection"))if(k.getAttribute("schemeIdUri")==="https://web.archive.org/web/20250411103644/http://youtube.com/drm/2012/10/10"){var m={};for(k=
k.firstChild;k!=null;k=k.nextSibling)k instanceof Element&&/SystemURL/.test(k.nodeName)&&(F=k.getAttribute("type"),E=k.textContent,F&&E&&(m[F]=E.trim()))}else m=void 0;return new KP(z,x,{audio:u,video:p,ZD:w,J5:m,Yu:D,Nd:C,contentLength:e})};
fmD=function(F){switch(F){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}};
KxH=function(F){switch(F){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}};
ohp=function(F,k){k=k===void 0?"":k;F.state=1;F.J4=(0,g.VE)();return PKY(k||F.sourceUrl).then(function(z){if(!F.z4()){F.H5=z.status;z=z.responseText;var x=new DOMParser;z=i3(x,ciH(z),"text/xml").getElementsByTagName("MPD")[0];F.Qh=CKH(Kz(z,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(z.attributes){x=g.l(z.attributes);for(var D=x.next();!D.done;D=x.next())if(D=D.value,D.value==="https://web.archive.org/web/20250411103644/http://youtube.com/yt/2012/10/10"){x=D.name.split(":")[1];break b}}x=""}F.W=x;F.isLive=F.Qh<Infinity&&F.isLivePlayback;F.u$=
Number(Kz(z,F.W+":earliestMediaSequence"))||0;if(x=Date.parse(Ata(Kz(z,F.W+":mpdResponseTime"))))F.mp=((0,g.VE)()-x)/1E3;F.isLive&&z.getElementsByTagName("SegmentTimeline").length<=0||g.ZO(z.getElementsByTagName("Period"),F.KHp,F);F.state=2;F.publish("loaded");kFC(F)}return F}).UT(function(z){if(z instanceof vp){var x=z.xhr;
F.H5=x.status}F.state=3;F.publish("loaderror");return v4(x)})};
zAY=function(F,k,z){return ohp(new Tk(F,k,z),F)};
BU=function(F){return F.isLive&&(0,g.VE)()-F.J4>=F.Qh};
xjR=function(F){F.S&&F.S.stop()};
kFC=function(F){var k=F.Qh;isFinite(k)&&(BU(F)?F.refresh():(k=Math.max(0,F.J4+k-(0,g.VE)()),F.S||(F.S=new g.KS(F.refresh,k,F),g.b(F,F.S)),F.S.start(k)))};
iR6=function(F){F=F.Y;for(var k in F){var z=F[k].index;if(z.isLoaded())return z.OJ()+1}return 0};
Gk=function(F){return F.uL?F.uL-(F.G||F.timestampOffset):0};
U1=function(F){return F.cR?F.cR-(F.G||F.timestampOffset):0};
tQ=function(F){if(!isNaN(F.Xf))return F.Xf;var k=F.Y,z;for(z in k){var x=k[z].index;if(x.isLoaded()&&!Cm(k[z].info.mimeType)){k=0;for(z=x.E0();z<=x.OJ();z++)k+=x.getDuration(z);k/=x.Y8();k=Math.round(k/.5)*.5;x.Y8()>10&&(F.Xf=k);return k}if(F.isLive&&(x=k[z],x.dO))return x.dO}return NaN};
DjY=function(F,k){F=Ruk(F.Y,function(x){return x.index.isLoaded()});
if(!F)return NaN;F=F.index;var z=F.kA(k);return F.getStartTime(z)===k?k:z<F.OJ()?F.getStartTime(z+1):NaN};
$j6=function(F,k){if(!F.Y["0"]){var z=new KP("0","fakesb",{video:new nP(0,0,0,void 0,void 0,"auto")});F.Y["0"]=k?new fz(new g.ZN("https://web.archive.org/web/20250411103644/http://www.youtube.com/videoplayback"),z,"fake"):new XQ(new g.ZN("https://web.archive.org/web/20250411103644/http://www.youtube.com/videoplayback"),z,new VF(0,0),new VF(0,0))}};
ZY=function(F){if(F.isManifestless)for(var k in F.Y)F.Y[k].index.segments=[]};
vU=function(F,k,z){for(var x in F.Y){var D=Cm(F.Y[x].info.mimeType)||F.Y[x].info.Ci();if(z===D&&(D=F.Y[x].index)!=null){var e=zk(D,k);e>=0&&D.segments.splice(e,1)}}};
jQp=function(F){for(var k in F.Y)Cm(F.Y[k].info.mimeType)||wwn(F.Y[k].index,Infinity)};
cU=function(F,k,z){for(var x in F.Y){var D=F.Y[x].index,e=k,C=z;D.Ks&&(e&&(D.wV=Math.max(D.wV,e)),C&&(D.YF=Math.max(D.YF||0,C)))}z&&(F.PR=z/1E3)};
eA6=function(F){F.cR=0;F.uL=0;F.We=0};
PU=function(F){return F.RU&&F.isManifestless?F.isLiveHeadPlayable:F.isLive};
l4=function(F,k,z){O1===null&&(O1=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(Im9&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return O1||z!=="9"&&z!=="("?O1||z!=="9h"&&z!=="(h"||(F='video/webm; codecs="vp9.2"'):F='video/webm; codecs="vp9"',F;if(!O1&&!Vg||F!=='video/webm; codecs="vp9"'&&F!=='video/webm; codecs="vp9.2"')return F;
z="00";var x="08",D="01",e="01",C="01";F==='video/webm; codecs="vp9.2"'&&(z="02",x="10",k.primaries==="bt2020"&&(C=D="09"),k.Y==="smpte2084"&&(e="16"),k.Y==="arib-std-b67"&&(e="18"));return'video/webm; codecs="'+["vp09",z,"51",x,"01",D,e,C,"00"].join(".")+'"'};
HU=function(F,k,z){F=""+F+(k>49?"p60":k>32?"p48":"");k=MD()[F];if(k!=null&&k>0)return k;k=I3.get(F);if(k!=null&&k>0)return k;z=z==null?void 0:z.get(F);return z!=null&&z>0?z:8192};
CND=function(F){this.i$=F;this.vj=this.Nm=this.cR=this.S=this.W=this.l$=this.u$=this.PR=!1;this.B=this.G=0;this.vR=!1;this.t4=!0;this.kG=!1;this.l0=0;this.Xn=this.Xf=!1;this.We=!0;this.RU=this.J4=!1;this.Y={};this.MD=this.disableAv1=this.UH=this.ZR=this.dH=this.mY=this.L=this.K=!1;this.P7=this.i$.V("html5_disable_aac_preference");this.uL=Infinity;this.yh=0;this.RS=this.i$.Jp();this.Xm=this.i$.experiments.Ca("html5_enable_vp9_fairplay");this.YP=this.i$.V("html5_force_av1_for_testing");this.NJ=g.lw(this.i$.experiments,
"html5_av1_ordinal_cap");this.m_=this.i$.V("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.fJ=this.i$.V("html5_account_onesie_format_selection_during_format_filter");this.Yu=g.lw(this.i$.experiments,"html5_max_byterate");this.U=this.i$.V("html5_sunset_aac_high_codec_family");this.mp=this.i$.V("html5_sunset_aac_high_codec_family");this.qD=this.i$.V("html5_enable_iamf_audio");this.yf=this.i$.experiments.Ca("html5_allow_capability_merge");this.Vz=this.i$.V("html5_enable_encrypted_av1")};
$mM=function(F){if(F.u$)return["f"];if(g.ng("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var k=["9h","9","h","8"];F.Vz&&k.push("1e");k=k.concat(["(h","(","H","*"]);F.Xf&&(k.unshift("1"),k.unshift("1h"));F.Nm&&k.unshift("h");F.Qh&&(k=(AHn[F.Qh]||[F.Qh]).concat(k));return k};
FSY=function(F){var k=["o","a","A"];F.yh===1&&(F.W&&(k=["mac3","MAC3"].concat(k)),F.S&&(k=["meac3","MEAC3"].concat(k)),F.qD&&(k=["i","I"].concat(k)));F.PR&&(k=["so","sa"].concat(k));!F.vj||F.cR||F.j||F.P7||k.unshift("a");F.l$&&!F.U&&k.unshift("ah");F.j&&(k=(AHn[F.j]||[F.j]).concat(k));return k};
a3=function(F,k,z,x){k=k===void 0?{}:k;if(x===void 0?0:x)return k.disabled=1,0;if(U_(F.W,tX.AV1_CODECS)&&U_(F.W,tX.HEIGHT)&&U_(F.W,tX.BITRATE))return k.isCapabilityUsable=1,8192;try{var D=Iop();if(D)return k.localPref=D}catch(p){}x=1080;D=navigator.hardwareConcurrency;D<=2&&(x=480);k.coreCount=D;if(D=g.lw(F.experiments,"html5_default_av1_threshold"))x=k["default"]=D;!F.V("html5_disable_av1_arm_check")&&uRI()&&(k.isArm=1,x=240);if(F=F.W.t4)k.mcap=F,x=Math.max(x,F);if(z){var e,C;if(F=(e=z.videoInfos.find(function(p){return oD(p)}))==
null?void 0:(C=e.L)==null?void 0:C.powerEfficient)x=8192,k.isEfficient=1;
z=z.videoInfos[0].video;e=Math.min(HU("1",z.fps),HU("1",30));k.perfCap=e;x=Math.min(x,e);z.isHdr()&&!F&&(k.hdr=1,x*=.75)}else z=HU("1",30),k.perfCap30=z,x=Math.min(x,z),z=HU("1",60),k.perfCap60=z,x=Math.min(x,z);return k.av1Threshold=x};
SJ=function(F,k,z,x){this.flavor=F;this.keySystem=k;this.L=z;this.experiments=x;this.Y={};this.kG=this.keySystemAccess=null;this.JA=this.Bi=-1;this.GR=null;this.U=!!x&&x.Ca("edge_nonprefixed_eme");x&&x.Ca("html5_enable_vp9_fairplay")};
di=function(F){return F.U?!1:!F.keySystemAccess&&!!b4()&&F.keySystem==="com.microsoft.playready"};
JQ=function(F){return F.keySystem==="com.microsoft.playready"};
yg=function(F){return!F.keySystemAccess&&!!b4()&&F.keySystem==="com.apple.fps.1_0"};
R3=function(F){return F.keySystem==="com.youtube.fairplay"};
gi=function(F){return F.keySystem==="com.youtube.fairplay.sbdl"};
g.Yl=function(F){return F.flavor==="fairplay"};
b4=function(){var F=window,k=F.MSMediaKeys;Wp()&&!k&&(k=F.WebKitMediaKeys);return k&&k.isTypeSupported?k:null};
Ms=function(F){return navigator.requestMediaKeySystemAccess?g.SD&&!g.Lg()?tF("45"):g.o9||g.w6?F.Ca("edge_nonprefixed_eme"):g.n3?tF("47"):g.GX&&F.Ca("html5_enable_safari_fairplay")?!1:!0:!1};
pE5=function(F,k,z,x){var D=fg(),e=(z=D||z&&Wp())?["com.youtube.fairplay"]:["com.widevine.alpha"];k&&e.unshift("com.youtube.widevine.l3");D&&x&&e.unshift("com.youtube.fairplay.sbdl");return z?e:F?[].concat(g.r(e),g.r(L3.playready)):[].concat(g.r(L3.playready),g.r(e))};
f3=function(F,k,z,x,D){x=x===void 0?!1:x;g.S.call(this);this.i$=k;this.useCobaltWidevine=x;this.UK=D;this.L=[];this.U={};this.Y={};this.callback=null;this.W=!1;this.j=[];this.initialize(F,!z)};
XEp=function(F,k){F.callback=k;F.j=[];Ms(F.i$.experiments)?K3(F):Eha(F)};
K3=function(F){if(!F.z4())if(F.L.length===0)F.callback(F.j);else{var k=F.L[0],z=F.U[k],x=qIC(F,z);if(WU&&WU.keySystem===k&&WU.p5K===JSON.stringify(x))F.UK("remksa",{re:!0}),NBx(F,z,WU.keySystemAccess);else{var D,e;F.UK("remksa",{re:!1,ok:(e=(D=WU)==null?void 0:D.keySystem)!=null?e:""});WU=void 0;navigator.requestMediaKeySystemAccess(k,x).then(td(function(C){NBx(F,z,C,x)}),td(function(){F.W=!F.W&&F.U[F.L[0]].flavor==="widevine";
F.W||F.L.shift();K3(F)}))}}};
NBx=function(F,k,z,x){if(!F.z4()){x&&(WU={keySystem:k.keySystem,keySystemAccess:z,p5K:JSON.stringify(x)});k.keySystemAccess=z;if(JQ(k)){z=Hw();x=g.l(Object.keys(F.Y[k.flavor]));for(var D=x.next();!D.done;D=x.next())D=D.value,k.Y[D]=!!z.canPlayType(D)}else{z=k.keySystemAccess.getConfiguration();if(z.audioCapabilities)for(x=g.l(z.audioCapabilities),D=x.next();!D.done;D=x.next())uga(F,k,D.value);if(z.videoCapabilities)for(z=g.l(z.videoCapabilities),x=z.next();!x.done;x=z.next())uga(F,k,x.value)}F.j.push(k);
F.useCobaltWidevine||F.V("html5_enable_vp9_fairplay")&&gi(k)?(F.L.shift(),K3(F)):F.callback(F.j)}};
uga=function(F,k,z){F.V("log_robustness_for_drm")?k.Y[z.contentType]=z.robustness||!0:k.Y[z.contentType]=!0};
qIC=function(F,k){var z={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(F.V("html5_enable_vp9_fairplay")&&R3(k))return z.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),z.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[z];JQ(k)&&(z.initDataTypes=["keyids","cenc"]);for(var x=g.l(Object.keys(F.Y[k.flavor])),D=x.next();!D.done;D=x.next()){D=D.value;var e=D.indexOf("audio/")===0,C=e?z.audioCapabilities:z.videoCapabilities;k.flavor!==
"widevine"||F.W?C.push({contentType:D}):e?C.push({contentType:D,robustness:"SW_SECURE_CRYPTO"}):(g.SD&&g.ng("windows nt")&&!F.V("html5_drm_enable_moho")||C.push({contentType:D,robustness:"HW_SECURE_ALL"}),e=D,F.i$.W.U&&D.includes("vp09")&&(e=D+"; experimental=allowed"),C.push({contentType:e,robustness:"SW_SECURE_DECODE"}),FA(F.i$)==="MWEB"&&(Du()||Mz())&&(F.UK("swcrypto",{}),C.push({contentType:D,robustness:"SW_SECURE_CRYPTO"})))}return[z]};
Eha=function(F){if(b4()&&(g.GX||kn))F.j.push(new SJ("fairplay","com.apple.fps.1_0","",F.i$.experiments));else{var k=wEa(),z=g.M$(F.L,function(x){var D=F.U[x],e=!1,C=!1,p;for(p in F.Y[D.flavor])k(p,x)&&(D.Y[p]=!0,e=e||p.indexOf("audio/")===0,C=C||p.indexOf("video/")===0);return e&&C});
z&&F.j.push(F.U[z]);F.L=[]}F.callback(F.j)};
wEa=function(){var F=b4();if(F){var k=F.isTypeSupported;return function(x,D){return k(D,x)}}var z=Hw();
return z&&(z.addKey||z.webkitAddKey)?function(x,D){return!!z.canPlayType(x,D)}:function(){return!1}};
mjk=function(F){this.experiments=F;this.Y=2048;this.j=0;this.t4=(this.G=this.V("html5_streaming_resilience"))?.5:.25;var k=k===void 0?0:k;this.U=g.lw(this.experiments,"html5_media_time_weight_prop")||k;this.PR=g.lw(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.K=(this.W=this.experiments.Ca("html5_consider_end_stall"))&&kH;this.L=this.experiments.Ca("html5_measure_max_progress_handling");this.B=this.V("html5_treat_requests_pre_elbow_as_metadata");this.S=this.V("html5_media_time_weight")||
!!this.U;this.Qh=g.lw(this.experiments,"html5_streaming_fallback_byterate");this.V("html5_sabr_live_audio_early_return_fix")&&kH&&(this.Y=65536)};
TBD=function(F,k){this.Y=void 0;this.experimentIds=F?F.split(","):[];this.flags=xT(k||"","&");F={};k=g.l(this.experimentIds);for(var z=k.next();!z.done;z=k.next())F[z.value]=!0;this.experiments=F};
g.lw=function(F,k){F=F.flags[k];JSON.stringify(F);return Number(F)||0};
oB=function(F,k){return(F=F.flags[k])?F.toString():""};
lGC=function(F){if(F=F.flags.html5_web_po_experiment_ids)if(F=F.replace(/\[ *(.*?) *\]/,"$1"))return F.split(",").map(Number);return[]};
QQn=function(F){if(F.Y)return F.Y;if(F.experimentIds.length<=1)return F.Y=F.experimentIds,F.Y;var k=[].concat(g.r(F.experimentIds)).map(function(x){return Number(x)});
k.sort();for(var z=k.length-1;z>0;--z)k[z]-=k[z-1];F.Y=k.map(function(x){return x.toString()});
F.Y.unshift("v1");return F.Y};
sQa=function(F){return hA9.then(F)};
z9=function(F,k,z){this.experiments=F;this.Xf=k;this.yh=z===void 0?!1:z;this.PR=!!g.yR("cast.receiver.platform.canDisplayType");this.K={};this.B=!1;this.L=new Map;this.G=!0;this.W=this.U=!1;this.Y=new Map;this.t4=0;this.mp=this.experiments.Ca("html5_disable_vp9_encrypted");this.j=this.experiments.Ca("html5_enable_encrypted_av1");F=g.yR("cast.receiver.platform.getValue");this.S=!this.PR&&F&&F("max-video-resolution-vpx")||null;rHn(this);this.U=!!(fg()&&gz()>=21)};
CvD=function(F,k,z){z=z===void 0?1:z;var x=k.itag;if(x==="0")return!0;var D=k.mimeType;if(k.DQ==="1e"&&!F.j)return"dav1enc";if(oD(k)&&F.B)return"dav1";if(k.video&&(k.video.isHdr()||k.video.primaries==="bt2020")&&!(U_(F,tX.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(x==="338"&&!(g.SD?tF(53):g.n3&&tF(64)))return"dopus";var e=z;e=e===void 0?1:e;
z={};k.video&&(k.video.width&&(z[tX.WIDTH.name]=k.video.width),k.video.height&&(z[tX.HEIGHT.name]=k.video.height),k.video.fps&&(z[tX.FRAMERATE.name]=k.video.fps*e),k.video.Y&&(z[tX.EOTF.name]=k.video.Y),k.Yu&&(z[tX.BITRATE.name]=k.Yu*8*e),k.DQ==="("&&(z[tX.CRYPTOBLOCKFORMAT.name]="subsample"),k.video.projectionType==="EQUIRECTANGULAR"||k.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||k.video.projectionType==="MESH")&&(z[tX.DECODETOTEXTURE.name]="true");k.audio&&k.audio.numChannels&&(z[tX.CHANNELS.name]=
k.audio.numChannels);F.U&&Ww(k)&&(z[tX.EXPERIMENTAL.name]="allowed");e=g.l(Object.keys(tX));for(var C=e.next();!C.done;C=e.next()){C=tX[C.value];var p;if(p=z[C.name])if(p=!(C===tX.EOTF&&k.mimeType.indexOf("vp09.02")>0)){p=C;var E=k;p=!(F.experiments.Ca("html5_ignore_h264_framerate_cap")&&p===tX.FRAMERATE&&qq6(E))}if(p)if(U_(F,C))if(F.S){if(F.S[C.name]<z[C.name])return C.name}else D=D+"; "+C.name+"="+z[C.name];else if(FW(k)&&C===tX.EOTF)return"dvp92"}F.PR&&k.video&&k.video.qualityOrdinal>1080&&k.J5&&
(D+="; hdcp=2.2");return x==="227"?"hqcenc":x!=="585"&&x!=="588"&&x!=="583"&&x!=="586"&&x!=="584"&&x!=="587"&&x!=="591"&&x!=="592"||F.experiments.Ca("html5_enable_new_hvc_enc")?F.isTypeSupported(D)?!0:"tpus":"newhvc"};
xH=function(){var F=Mz()&&!tF(29),k=g.ng("google tv")&&g.ng("chrome")&&!tF(30);return F||k?!1:lbn()};
BBk=function(F,k,z){var x=480;k=g.l(k);for(var D=k.next();!D.done;D=k.next()){D=D.value;var e=D.video.qualityOrdinal;e<=1080&&e>x&&CvD(F,D,z)===!0&&(x=e)}return x};
g.iW=function(F,k){k=k===void 0?!1:k;return xH()&&F.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!k&&F.canPlayType(Hw(),"application/x-mpegURL")?!0:!1};
UjC=function(F){GF5(function(){for(var k=g.l(Object.keys(tX)),z=k.next();!z.done;z=k.next())U_(F,tX[z.value])})};
U_=function(F,k){k.name in F.K||(F.K[k.name]=t59(F,k));return F.K[k.name]};
t59=function(F,k){if(F.S)return!!F.S[k.name];if(k===tX.BITRATE&&F.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!F.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(k===tX.AV1_CODECS)return F.isTypeSupported("video/mp4; codecs="+k.valid)&&!F.isTypeSupported("video/mp4; codecs="+k.g0);if(k.video){var z='video/webm; codecs="vp9"';F.isTypeSupported(z)||(z='video/mp4; codecs="avc1.4d401e"')}else z='audio/webm; codecs="opus"',
F.isTypeSupported(z)||(z='audio/mp4; codecs="mp4a.40.2"');return F.isTypeSupported(z+"; "+k.name+"="+k.valid)&&!F.isTypeSupported(z+"; "+k.name+"="+k.g0)};
DX=function(F){F.W=!0;F.experiments.Ca("html5_ssap_update_capabilities_on_change")&&ZRD(F)};
vhp=function(F,k){var z=0;F.L.has(k)&&(z=F.L.get(k).TT);F.L.set(k,{TT:z+1,vA:Math.pow(2,z+1)});DX(F)};
s_=function(F){for(var k=[],z=g.l(F.Y.keys()),x=z.next();!x.done;x=z.next()){x=x.value;var D=F.Y.get(x);k.push(x+"_"+D.maxWidth+"_"+D.maxHeight)}return k.join(".")};
ZRD=function(F){F.Qh=[];for(var k=g.l(F.Y.values()),z=k.next();!z.done;z=k.next()){z=z.value;var x=z.DQ;F.experiments.Ca("html5_ssap_force_mp4_aac")&&x!=="a"&&x!=="h"||F.L.has(x)||F.B&&(x==="1"||x==="1h"||F.j&&x==="1e")||F.Qh.push(z)}};
ogY=function(F,k){for(var z=new Map,x=g.l(F.Y.keys()),D=x.next();!D.done;D=x.next()){D=D.value;var e=D.split("_")[0];k.has(e)||z.set(D,F.Y.get(D))}F.Y=z};
xmY=function(F,k,z){var x,D=((x=z.video)==null?void 0:x.fps)||0;x=k+"_"+D;var e=!!z.audio,C={itag:z.itag,DQ:k,QZ:e};if(e)C.numChannels=z.audio.numChannels;else{var p=z.video;C.maxWidth=p==null?void 0:p.width;C.maxHeight=p==null?void 0:p.height;C.maxFramerate=D;U_(F,tX.BITRATE)&&(C.maxBitrateBps=z.Yu*8);C.C5=p==null?void 0:p.isHdr()}p=F.Y.get(x);p?e||(z=Math.max(p.maxWidth||0,p.maxHeight||0)>Math.max(C.maxWidth||0,C.maxHeight||0)?p:C,k={itag:z.itag,DQ:k,QZ:e,maxWidth:Math.max(p.maxWidth||0,C.maxWidth||
0),maxHeight:Math.max(p.maxHeight||0,C.maxHeight||0),maxFramerate:D,C5:z.C5},U_(F,tX.BITRATE)&&(k.maxBitrateBps=z.maxBitrateBps),F.Y.set(x,k)):F.Y.set(x,C)};
iPn=function(F,k,z){var x,D=((x=z.video)==null?void 0:x.fps)||0;x=k+"_"+D;var e=!!z.audio,C=F.Y.get(x);a:{var p=F.Y.get(x),E=!!z.audio;if(p){if(E){var X=!1;break a}var q;if(!E&&((X=z.video)==null?0:X.height)&&p.maxHeight&&p.maxHeight>=((q=z.video)==null?void 0:q.height)){X=!1;break a}}X=!0}X&&(X=z.itag,k=C?C:{itag:X,DQ:k,QZ:e},e?k.numChannels=z.audio.numChannels:(e=z.video,k.maxWidth=e==null?void 0:e.width,k.maxHeight=e==null?void 0:e.height,k.maxFramerate=D,U_(F,tX.BITRATE)&&(k.maxBitrateBps=z.Yu*
8),k.C5=e==null?void 0:e.isHdr()),F.Y.set(x,k))};
rHn=function(F){var k;(k=navigator.mediaCapabilities)!=null&&k.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(z){z.smooth&&z.powerEfficient&&(F.t4=2160)})};
$H=function(){g.uG.call(this);this.items={}};
cHR=function(F,k,z){this.encryptedClientKey=k;this.W=z;this.Y=new Uint8Array(F.buffer,0,16);this.U=new Uint8Array(F.buffer,16)};
PNH=function(F){F.L||(F.L=new g.t5(F.Y));return F.L};
jP=function(F){try{return lr(F)}catch(k){return null}};
ORH=function(F,k){if(!k&&F)try{k=JSON.parse(F)}catch(D){}if(k){F=k.clientKey?jP(k.clientKey):null;var z=k.encryptedClientKey?jP(k.encryptedClientKey):null,x=k.keyExpiresInSeconds?Number(k.keyExpiresInSeconds)*1E3+(0,g.VE)():null;F&&z&&x&&(this.Y=new cHR(F,z,x));k.onesieUstreamerConfig&&(this.onesieUstreamerConfig=jP(k.onesieUstreamerConfig)||void 0);this.baseUrl=k.baseUrl}};
C_=function(){this.data=new Uint8Array(2048);this.pos=0;eP||(eP=HZ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))};
AJ=function(F,k){F.add(k==null||isNaN(k)?0:k+1)};
p_=function(F){this.Y=this.L=0;this.alpha=Math.exp(Math.log(.5)/F)};
E5=function(F){this.L=F===void 0?15:F;this.values=new Float64Array(176);this.Y=new Float64Array(11);this.U=new Float64Array(16)};
XA=function(F,k,z,x){z=z===void 0?.5:z;x=x===void 0?0:x;this.resolution=k;this.L=0;this.U=!1;this.hg=!0;this.Y=Math.round(F*this.resolution);this.values=Array(this.Y);for(F=0;F<this.Y;F++)this.values[F]=Infinity;this.W=V5x(this);this.j=z;this.S=x};
V5x=function(F){for(var k=Array(F.Y),z=0;z<F.Y;z++)k[z]=z;return k};
qU=function(F,k,z){g.S.call(this);this.policy=F;this.L=k;this.GD=z;this.t4=this.J4=0;this.PR=-1;this.mp=this.W=0;this.Qh=!1;this.interruptions=[];this.j=[{stamp:0,net:0,max:0}];this.cR=this.S=(0,g.VE)();this.B=new XA(4,1,.6,.4);this.Xf=new XA(4,1,.6,.4);this.G=new XA(20,1,.5,.4);F.PR?this.U=new E5(F.Y):F.L?this.U=new p_(F.Y):this.U=new XA(F.Y,20,.5,.4);this.yh=new XA(5,1,.25);this.K=new XA(30,1,.5);F=g.bn("yt-player-bandwidth")||{};k=this.policy.U;if(F.byterate>0)k=F.byterate,this.Qh=!0;else{var x;
z=(((x=navigator.connection)==null?void 0:x.downlink)||0)*64*1024;z>0&&(k=z,this.Qh=!0)}this.U.K$(this.policy.S,k);F.delay>0&&this.B.K$(1,Math.min(F.delay,2));F.stall>0&&this.G.K$(1,F.stall);F.init>0&&(this.cR=Math.min(F.init,this.cR));F.interruptions&&(this.j=this.j.concat(F.interruptions),this.j.length>16&&this.j.pop());this.PR=(0,g.VE)();this.policy.G>0&&(this.l$=new g.KS(this.RU,this.policy.G,this),g.b(this,this.l$),this.l$.start())};
NU=function(F,k,z,x){F.U.K$(x===void 0?k:x,z/k);F.S=(0,g.VE)()};
IGC=function(F){F.W||(F.W=(0,g.VE)());F.policy.K&&(F.S=(0,g.VE)())};
HRI=function(F,k){if(F.W){var z=k-F.W;if(z<6E4){if(z>1E3){var x=F.interruptions;x.push(Math.ceil(z));x.sort(function(D,e){return e-D});
x.length>16&&x.pop()}F.mp+=z}}F.W=k};
uW=function(F,k,z,x,D,e){e=e===void 0?!1:e;F.yh.K$(k,z/k);F.S=(0,g.VE)();D||F.K.K$(1,k-x);e||(F.W=0);F.PR>-1&&(0,g.VE)()-F.PR>3E4&&aGM(F)};
ww=function(F,k,z){k=Math.max(k,F.L.Y);F.G.K$(1,z/k)};
ma=function(F){F=F.B.Uz()+F.Xf.Uz()||0;F=isNaN(F)?.5:F;return F=Math.min(F,5)};
T9=function(F,k,z){isNaN(z)||(F.t4+=z);isNaN(k)||(F.J4+=k)};
lW=function(F){F=F.U.Uz();return F>0?F:1};
Qq=function(F,k,z){k=k===void 0?!1:k;z=z===void 0?1048576:z;var x=lW(F);x=1/((F.G.Uz()||0)*F.policy.Qh+1/x);var D=F.yh.Uz();D=D>0?D:1;var e=Math.max(x,D);F.policy.W>0&&D<x&&(e=Math.min(F.policy.W,1),e=(1-e)*x+e*D);if(!k)return e;k=1E-9+ma(F);z=e*Math.min(1,z/(e*k));F.policy.j||(F=((F.K.percentile(.98)||0)-1)/2,F=Math.max(0,Math.min(1,F)),z*=1-.5*F);return z};
SI6=function(F){var k={delay:ma(F),stall:F.G.Uz()||0,byterate:lW(F),init:F.cR},z=F.j[0];z.stamp=Math.round(F.S/36E5)*36E5;z.net=Math.ceil(F.mp);z.max=F.interruptions[0]||0;k.interruptions=F.j;return k};
aGM=function(F){g.SZ("yt-player-bandwidth",SI6(F),2592E3);F.PR=(0,g.VE)();F.Qh=!0};
hJ=function(F){return(0,g.VE)()-F.S>=4E3};
bRC=function(F){this.experiments=F;this.Y=17;this.U=13E4;this.S=.5;this.L=!1;this.PR=this.V("html5_use_histogram_for_bandwidth");this.j=!1;this.W=g.lw(this.experiments,"html5_auxiliary_estimate_weight");this.Qh=g.lw(this.experiments,"html5_stall_factor")||1;this.G=g.lw(this.experiments,"html5_check_for_idle_network_interval_ms");this.B=this.experiments.Ca("html5_trigger_loader_when_idle_network");this.K=this.experiments.Ca("html5_sabr_fetch_on_idle_network_preloaded_players")};
JHI=function(F,k){F=F===void 0?{}:F;k=k===void 0?{}:k;g.S.call(this);var z=this;this.values=F;this.zn=k;this.L={};this.U=this.Y=0;this.j=new g.KS(function(){djI(z)},1E4);
g.b(this,this.j)};
s5=function(F,k){yHI(F,k);return F.values[k]&&F.zn[k]?F.values[k]/Math.pow(2,F.Y/F.zn[k]):0};
yHI=function(F,k){F.values[k]||(k=czD(),F.values=k.values||{},F.zn=k.halfLives||{},F.L=k.values?Object.assign({},k.values):{})};
djI=function(F){var k=czD();if(k.values){k=k.values;for(var z={},x=g.l(Object.keys(F.values)),D=x.next();!D.done;D=x.next())D=D.value,k[D]&&F.L[D]&&(F.values[D]+=k[D]-F.L[D]),z[D]=s5(F,D);F.L=z}k=F.zn;z={};z.values=F.L;z.halfLives=k;g.SZ("yt-player-memory",z,2592E3)};
yq=function(F,k,z,x,D){g.S.call(this);this.webPlayerContextConfig=k;this.oO=x;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.BM=this.RS=this.u$=this.Ji=this.userDisplayName=this.userDisplayImage=this.uG="";this.Y={};this.MD={};this.controlsType="0";this.yf=NaN;this.dH=!1;this.Nk=(0,g.VE)();this.uL=0;this.lJ=this.hS=!1;this.Bx=!0;this.preferGapless=this.eh=this.H8=this.U=this.WO=this.Av=!1;this.BF=[];this.Om=!1;F=F?g.Jg(F):{};k&&k.csiPageType&&(this.csiPageType=k.csiPageType);k&&k.csiServiceName&&
(this.csiServiceName=k.csiServiceName);k&&k.preferGapless&&(this.preferGapless=k.preferGapless);this.experiments=new TBD(k?k.serializedExperimentIds:F.fexp,k?k.serializedExperimentFlags:F.fflags);this.forcedExperiments=k?k.serializedForcedExperimentIds:pu("",F.forced_experiments)||void 0;this.cspNonce=(k==null?0:k.cspNonce)?k.cspNonce:pu("",F.csp_nonce);this.V("web_player_deprecated_uvr_killswitch");try{var e=document.location.toString()}catch(xY){e=""}this.y6=e;this.ancestorOrigins=(x=window.location.ancestorOrigins)?
Array.from(x):[];this.j=eZ(!1,k?k.isEmbed:F.is_embed);if(k&&k.device){if(x=k.device,x.androidOsExperience&&(this.Y.caoe=""+x.androidOsExperience),x.androidPlayServicesVersion&&(this.Y.capsv=""+x.androidPlayServicesVersion),x.brand&&(this.Y.cbrand=x.brand),x.browser&&(this.Y.cbr=x.browser),x.browserVersion&&(this.Y.cbrver=x.browserVersion),x.cobaltReleaseVehicle&&(this.Y.ccrv=""+x.cobaltReleaseVehicle),this.Y.c=x.interfaceName||"WEB",this.Y.cver=x.interfaceVersion||"html5",x.interfaceTheme&&(this.Y.ctheme=
x.interfaceTheme),this.Y.cplayer=x.interfacePlayerType||"UNIPLAYER",x.model&&(this.Y.cmodel=x.model),x.network&&(this.Y.cnetwork=x.network),x.os&&(this.Y.cos=x.os),x.osVersion&&(this.Y.cosver=x.osVersion),x.platform&&(this.Y.cplatform=x.platform),e=oB(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),e==="all"||e==="once")x.chipset&&(this.MD.cchip=x.chipset),x.cobaltAppVersion&&(this.MD.ccappver=x.cobaltAppVersion),x.firmwareVersion&&(this.MD.cfrmver=x.firmwareVersion),x.deviceYear&&(this.MD.crqyear=
x.deviceYear)}else this.Y.c=F.c||"web",this.Y.cver=F.cver||"html5",this.Y.cplayer="UNIPLAYER";this.loaderUrl=k?this.j||RAn(this)&&k.loaderUrl?k.loaderUrl||"":this.y6:this.j||RAn(this)&&F.loaderUrl?pu("",F.loaderUrl):this.y6;this.j&&g.dI("yt.embedded_player.embed_url",this.loaderUrl);this.G=DV(this.loaderUrl,gh6);x=this.loaderUrl;var C=C===void 0?!1:C;this.qo=iX(DV(x,YIM),x,C,"Trusted Ad Domain URL");this.Vz=eZ(!1,F.privembed);this.protocol=this.y6.indexOf("http:")===0?"http":"https";this.e5=$I((k?
k.customBaseYoutubeUrl:F.BASE_YT_URL)||"")||$I(this.y6)||this.protocol+"://www.youtube.com/";C=k?k.eventLabel:F.el;x="detailpage";C==="adunit"?x=this.j?"embedded":"detailpage":C==="embedded"||this.G?x=Cu(x,C,nhH):C&&(x="embedded");this.Xf=x;GEY();C=null;x=k?k.playerStyle:F.ps;e=g.fC(M59,x);!x||e&&!this.G||(C=x);this.playerStyle=C;this.S=g.fC(M59,this.playerStyle);this.houseBrandUserStatus=k==null?void 0:k.houseBrandUserStatus;this.PR=this.S&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";
this.Tc=!this.PR;this.cR=eZ(!1,F.disableplaybackui);this.disablePaidContentOverlay=eZ(!1,k==null?void 0:k.disablePaidContentOverlay);this.disableSeek=eZ(!1,k==null?void 0:k.disableSeek);this.enableSpeedOptions=(k==null?void 0:k.enableSpeedOptions)||(Hw().defaultPlaybackRate?rw||g.xn||BJ?g.n3&&tF("20")||g.SD&&tF("4")||g.G9&&tF("11")||FG():!(g.G9&&!g.ng("chrome")||rw||g.ng("android")||g.ng("silk")):!1);this.tS=eZ(!1,F.enable_faster_speeds);var p;this.supportsVarispeedExtendedFeatures=(p=k==null?void 0:
k.supportsVarispeedExtendedFeatures)!=null?p:!1;this.L=eZ(this.playerStyle==="blazer",F.is_html5_mobile_device||k&&k.isMobileDevice);this.J4=z_()||Du();this.FG=this.V("mweb_allow_background_playback")?!1:this.L&&!this.S;this.l$=Jw();this.UE=g.U5;var E;this.bJ=!!(k==null?0:(E=k.embedsHostFlags)==null?0:E.optOutApiDeprecation);var X;this.N9=!!(k==null?0:(X=k.embedsHostFlags)==null?0:X.allowPfpImaIntegration);this.OE=this.V("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var q;k?k.hideInfo!==
void 0&&(q=!k.hideInfo):q=F.showinfo;this.NZ=g.tJ(this)&&!this.bJ||eZ(!ZX(this)&&!vJ(this)&&!this.S,q);this.J$=k?!!k.mobileIphoneSupportsInlinePlayback:eZ(!1,F.playsinline);p=this.L&&cJ&&PJ!=null&&PJ>0&&PJ<=2.3;E=k?k.useNativeControls:F.use_native_controls;this.B=g.tJ(this)&&this.L;X=this.L&&!this.B;E=g.O5(this)||!p&&eZ(X,E)?"3":"1";this.disableOrganicUi=!(k==null||!k.disableOrganicUi);X=k?k.controlsType:F.controls;this.controlsType=this.disableOrganicUi?"0":X!=="0"&&X!==0?E:"0";this.T1=this.L;this.color=
Cu("red",k?k.progressBarColor:F.color,LWY);this.Mo=this.controlsType==="3";this.We=!this.j;this.w8=(E=!this.We&&!vJ(this)&&!this.PR&&!this.S&&!ZX(this))&&!this.Mo&&this.controlsType==="1";this.P7=g.Vq(this)&&E&&this.controlsType==="0"&&!this.w8&&!(k==null?0:k.embedsEnableEmc3ds);this.sI=this.Lu=p;this.fJ=(this.controlsType==="3"||this.L||eZ(!1,F.use_media_volume))&&!this.B;this.uo=kn&&!g.wN(601)?!1:!0;this.vZ=this.j||!1;this.NJ=vJ(this)?"":(this.loaderUrl||F.post_message_origin||"").substring(0,128);
this.widgetReferrer=pu("",k?k.widgetReferrer:F.widget_referrer);var N;k?k.disableCastApi&&(N=!1):N=F.enablecastapi;N=!this.G||eZ(!0,N);p=!0;k&&k.disableMdxCast&&(p=!1);this.OF=this.V("enable_cast_for_web_unplugged")&&g.IB(this)&&p||g.g8(this)&&p||N&&p&&this.controlsType==="1"&&!this.L&&(vJ(this)||g.Vq(this)||g.HJ(this));this.PZ=!!window.document.pictureInPictureEnabled||du();N=k?!!k.supportsAutoplayOverride:eZ(!1,F.autoplayoverride);this.D7=!(this.L&&!g.tJ(this))&&!g.ng("nintendo wiiu")||N;this.Tr=
(k?!!k.enableMutedAutoplay:eZ(!1,F.mutedautoplay))&&!1;N=(vJ(this)||ZX(this))&&this.playerStyle==="blazer";this.YZ=k?!!k.disableFullscreen:!eZ(!0,F.fs);p=g.N5(g.aB(this))&&g.tJ(this);this.qD=!this.YZ&&(N||g.hx())&&!p;this.Zv=this.V("html5_picture_in_picture_logging_onresize");var u;this.Yv=(u=g.lw(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?u:.33;this.nF=this.V("html5_picture_in_picture_blocking_onresize");this.VH=this.V("html5_picture_in_picture_blocking_ontimeupdate");
this.Cy=this.V("html5_picture_in_picture_blocking_document_fullscreen");this.GR=this.V("html5_picture_in_picture_blocking_standard_api");u=Mz()&&tF(58)&&!Du();N=k4||typeof MediaSource==="undefined";this.Xz=this.V("uniplayer_block_pip")&&(u||N)||this.nF||this.VH||this.GR;u=g.tJ(this)&&!this.bJ;var w;k?k.disableRelatedVideos!==void 0&&(w=!k.disableRelatedVideos):w=F.rel;this.ZR=u||eZ(!this.S,w);this.Hx=eZ(!1,k?k.enableContentOwnerRelatedVideos:F.co_rel);this.K=Du()&&PJ>0&&PJ<=4.4?"_top":"_blank";this.Z7=
g.HJ(this);this.X1=eZ(this.playerStyle==="blazer",k?k.enableCsiLogging:F.enablecsi);switch(this.playerStyle){case "blogger":w="bl";break;case "gmail":w="gm";break;case "gac":w="ga";break;case "ads-preview":w="ap";break;case "books":w="gb";break;case "docs":case "flix":w="gd";break;case "duo":w="gu";break;case "google-live":w="gl";break;case "google-one":w="go";break;case "play":w="gp";break;case "chat":w="hc";break;case "hangouts-meet":w="hm";break;case "photos-edu":case "picasaweb":w="pw";break;
default:w="yt"}this.Qh=w;this.t4=pu("",k?k.authorizedUserIndex:F.authuser);this.vj=g.tJ(this)&&(this.Vz||!qXn()||this.J4);var m;k?k.disableWatchLater!==void 0&&(m=!k.disableWatchLater):m=F.showwatchlater;this.xY=((w=!this.vj)||!!this.t4&&w)&&eZ(!this.PR,this.G?m:void 0);this.YP=k?k.isMobileDevice||!!k.disableKeyboardControls:eZ(!1,F.disablekb);this.loop=eZ(!1,F.loop);this.pageId=pu("",k?k.initialDelegatedSessionId:F.pageid);this.QV=eZ(!0,F.canplaylive);this.vR=eZ(!1,F.livemonitor);this.disableSharing=
eZ(this.S,k?k.disableSharing:F.ss);(m=k&&this.V("fill_video_container_size_override_from_wpcc")?k.videoContainerOverride:F.video_container_override)?(w=m.split("x"),w.length!==2?m=null:(m=Number(w[0]),w=Number(w[1]),m=isNaN(m)||isNaN(w)||m*w<=0?null:new g.BB(m,w))):m=null;this.MZ=m;this.mute=k?!!k.startMuted:eZ(!1,F.mute);this.storeUserVolume=!this.mute&&eZ(this.controlsType!=="0",k?k.storeUserVolume:F.store_user_volume);m=k?k.annotationsLoadPolicy:F.iv_load_policy;this.annotationsLoadPolicy=this.controlsType===
"3"?3:Cu(void 0,m,SP);this.captionsLanguagePreference=k?k.captionsLanguagePreference||"":pu("",F.cc_lang_pref);m=Cu(2,k?k.captionsLanguageLoadPolicy:F.cc_load_policy,SP);this.controlsType==="3"&&m===2&&(m=3);this.UH=m;this.mY=k?k.hl||"en_US":pu("en_US",F.hl);this.region=k?k.contentRegion||"US":pu("US",F.cr);this.hostLanguage=k?k.hostLanguage||"en":pu("en",F.host_language);this.Fp=!this.Vz&&Math.random()<g.lw(this.experiments,"web_player_api_logging_fraction");this.RU=!this.Vz;this.enabledEngageTypes=
new Set;this.deviceIsAudioOnly=!(k==null||!k.deviceIsAudioOnly);this.yf=Ax(this.yf,F.ismb);this.Tc?(m=F.vss_host||"s.youtube.com",m==="s.youtube.com"&&(m=bW(this.e5)||"www.youtube.com")):m="video.google.com";this.Cs=m;dw(this,F,!0);this.yh=new $H;g.b(this,this.yh);w=k?k.innertubeApiKey:pu("",F.innertube_api_key);u=k?k.innertubeApiVersion:pu("",F.innertube_api_version);m=k?k.innertubeContextClientVersion:pu("",F.innertube_context_client_version);w=g.LX("INNERTUBE_API_KEY")||w;u=g.LX("INNERTUBE_API_VERSION")||
u;N=g.LX("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");p=FA(this);E=typeof this.Y.c==="number"?Number(this.Y.c):Object.keys(fGn).indexOf(this.Y.c);this.je={innertubeApiKey:w,innertubeApiVersion:u,tU:N,Jy:p,Nh:E,innertubeContextClientVersion:g.LX("INNERTUBE_CONTEXT_CLIENT_VERSION")||m,qg:this.hostLanguage,Rd:this.region,wr:g.LX("INNERTUBE_HOST_OVERRIDE")||"",Bb:!!g.LX("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),C$K:!!g.LX("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.xf=window.WebKitPlaybackTargetAvailabilityEvent!=
null;this.W=new z9(this.experiments,this.V("html5_force_hfr_support")?!0:OB(this)||Kg()||wNY()||KWH(this),g.SD&&g.wN(56)||g.n3&&g.wN(54)||this.V("html5_force_vp9_subsample_encryption_support")||KWH(this));m=g.Vi(this);w=this.yf;u=this.experiments;N=new bRC(u);m&&(N.L=!0,N.S=.1);u.Ca("html5_media_time_weight")&&(N.L=!1);w&&(N.U=w/8);N.j=Yi()>=480;this.schedule=new qU(N,new mjk(this.experiments),D);g.b(this,this.schedule);var h;this.enableSafetyMode=(h=k==null?void 0:k.initialEnableSafetyMode)!=null?
h:eZ(!1,F.enable_safety_mode);D=this.cR?!1:vJ(this)&&this.playerStyle!=="blazer";var B;k?k.disableAutonav!=null&&(B=!k.disableAutonav):B=F.allow_autonav;this.m_=eZ(D,!this.PR&&B);this.sendVisitorIdHeader=k?!!k.sendVisitorIdHeader:eZ(!1,F.send_visitor_id_header);var U;this.playerStyle==="docs"&&(k?U=k.disableNativeContextMenu:U=F.disable_native_context_menu);this.disableNativeContextMenu=eZ(!1,U);this.sE=OB(this)&&this.V("enable_skip_intro_button");this.embedConfig=pu("",k?k.serializedEmbedConfig:
F.embed_config);this.mp=q5(F,g.tJ(this));this.U=this.mp==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(k==null||!k.embedsErrorLinks);this.Q7=eZ(!1,F.full_window);var v;this.kG=!((v=this.webPlayerContextConfig)==null?0:v.chromeless);var P;this.livingRoomAppMode=Cu("LIVING_ROOM_APP_MODE_UNSPECIFIED",F.living_room_app_mode||(k==null?void 0:(P=k.device)==null?void 0:P.livingRoomAppMode),WWI);var I;B=Ax(NaN,k==null?void 0:(I=k.device)==null?void 0:I.deviceYear);isNaN(B)||(this.deviceYear=B);this.transparentBackground=
k?!!k.transparentBackground:eZ(!1,F.transparent_background);this.showMiniplayerButton=k?!!k.showMiniplayerButton:eZ(!1,F.show_miniplayer_button);var d;g.tJ(this)&&!(k==null?0:(d=k.embedsHostFlags)==null?0:d.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=k?!!k.externalFullscreen:eZ(!1,F.external_fullscreen);this.showMiniplayerUiWhenMinimized=k?!!k.showMiniplayerUiWhenMinimized:eZ(!1,F.use_miniplayer_ui);var W;this.Bx=(W=F.show_loop_video_toggle)!=null?W:!0;this.BC=Math.random()<
1E-4;this.En=F.onesie_hot_config||(k==null?0:k.onesieHotConfig)?new ORH(F.onesie_hot_config,k==null?void 0:k.onesieHotConfig):void 0;this.isTectonic=k?!!k.isTectonic:!!F.isTectonic;this.playerCanaryState=z;this.playerCanaryStage=k==null?void 0:k.canaryStage;this.zM=new JHI;g.b(this,this.zM);this.WO=eZ(!1,F.force_gvi);this.datasyncId=(k==null?void 0:k.datasyncId)||g.LX("DATASYNC_ID");this.F1=g.LX("LOGGED_IN",!1);this.fb=(k==null?void 0:k.allowWoffleManagement)||!1;this.ET=Infinity;this.mA=NaN;this.livingRoomPoTokenId=
k==null?void 0:k.livingRoomPoTokenId;this.V("html5_high_res_logging_always")?this.H8=!0:this.H8=Math.random()*100<g.lw(this.experiments,"html5_high_res_logging_percent");var M;this.eh=!!(k==null?0:(M=k.embedsHostFlags)==null?0:M.allowRcat);this.zz=!g.IB(this)&&!JJ(this)};
g.aB=function(F){var k,z;if(!((k=F.webPlayerContextConfig)==null?0:(z=k.embedsHostFlags)==null?0:z.enableLiteUx)||F.Vz||F.S||F.U||F.mp==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";F=g.lw(F.experiments,"embeds_web_lite_mode");return F===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":F>=0&&F<Fh9.length?Fh9[F]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
dw=function(F,k,z){z=z===void 0?!1:z;F.RS=pu(F.RS,k.video_id);F.u$=pu(F.u$,k.eventid);F.u$&&(tP=F.u$);for(var x=[],D=g.l(Object.keys(kzn)),e=D.next();!e.done;e=D.next()){e=kzn[e.value];var C=k[e];C!=null&&(C!==F.Y[e]&&x.push(e),F.Y[e]=C)}!z&&x.length>0&&F.BC&&(x.sort(),g.yI(new g.Fa("Player client parameters changed after startup",x)));F.userAge=Ax(F.userAge,k.user_age);F.uG=pu(F.uG,k.user_display_email);F.userDisplayImage=pu(F.userDisplayImage,k.user_display_image);g.e9(F.userDisplayImage)||(F.userDisplayImage=
"");F.userDisplayName=pu(F.userDisplayName,k.user_display_name);F.Ji=pu(F.Ji,k.user_gender);F.csiPageType=pu(F.csiPageType,k.csi_page_type);F.csiServiceName=pu(F.csiServiceName,k.csi_service_name);F.X1=eZ(F.X1,k.enablecsi);F.pageId=pu(F.pageId,k.pageid);if(z=k.enabled_engage_types)F.enabledEngageTypes=new Set(z.split(","));k.living_room_session_po_token&&(F.Ki=k.living_room_session_po_token.toString())};
RB=function(F,k){return!F.S&&Mz()&&tF(55)&&F.controlsType==="3"&&!k};
g.gw=function(F){F=bW(F.e5);return F==="www.youtube-nocookie.com"?"www.youtube.com":F};
YH=function(F,k,z){return F.protocol+"://i1.ytimg.com/vi/"+k+"/"+(z||"hqdefault.jpg")};
n_=function(F){return vJ(F)&&!g.IB(F)};
g.O5=function(F){return F.V("html5_local_playsinline")?kn&&!g.wN(602)&&!("playsInline"in Hw()):kn&&!F.J$||g.ng("nintendo wiiu")?!0:!1};
FA=function(F){return F.Y.c};
g.Vi=function(F){return/^TVHTML5/.test(FA(F))};
g.MU=function(F){return FA(F)==="TVHTML5"};
RAn=function(F){return FA(F)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"};
KWH=function(F){return F.Y.cmodel==="CHROMECAST ULTRA/STEAK"||F.Y.cmodel==="CHROMECAST/STEAK"};
g.L_=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1};
OB=function(F){return/web/i.test(FA(F))};
g.f_=function(F){return FA(F).toUpperCase()==="WEB"};
JJ=function(F){return FA(F)==="WEB_KIDS"};
g.IB=function(F){return FA(F)==="WEB_UNPLUGGED"};
K_=function(F){return FA(F)==="TVHTML5_UNPLUGGED"};
g.Pe=function(F){return g.IB(F)||FA(F)==="TV_UNPLUGGED_CAST"||K_(F)};
g.g8=function(F){return FA(F)==="WEB_REMIX"};
g.WJ=function(F){return FA(F)==="WEB_EMBEDDED_PLAYER"};
g.kE=function(F){return(F.deviceIsAudioOnly||!g.SD||k4||F.controlsType==="3"?!1:g.xn?F.j&&g.wN(51):!0)||(F.deviceIsAudioOnly||!g.n3||k4||F.controlsType==="3"?!1:g.xn?F.j&&g.wN(48):g.wN(38))||(F.deviceIsAudioOnly||!g.G9||k4||F.controlsType==="3"?!1:g.xn?F.j&&g.wN(37):g.wN(27))||!F.deviceIsAudioOnly&&g.Fd&&!TYn()&&g.wN(11)||!F.deviceIsAudioOnly&&g.GX&&g.wN("604.4")};
ojC=function(F){if(g.Vq(F)&&cJ)return!1;if(g.n3){if(!g.wN(47)||!g.wN(52)&&g.wN(51))return!1}else if(g.GX)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
xLk=function(F,k){return F.enabledEngageTypes.has(k.toString())||zUx.includes(k)};
vJ=function(F){return F.Xf==="detailpage"};
g.Vq=function(F){return F.Xf==="embedded"};
ot=function(F){return F.Xf==="leanback"};
ZX=function(F){return F.Xf==="adunit"||F.playerStyle==="gvn"};
g.HJ=function(F){return F.Xf==="profilepage"};
g.tJ=function(F){return F.j&&g.Vq(F)&&!ZX(F)&&!F.S};
ze=function(F){if(!F.userDisplayImage)return"";var k=F.userDisplayImage.split("/");if(k.length===5)return F=k[k.length-1].split("="),F[1]="s20-c",k[k.length-1]=F.join("="),k.join("/");if(k.length===8)return k.splice(7,0,"s20-c"),k.join("/");if(k.length===9)return k[7]+="-s20-c",k.join("/");g.yI(new g.Fa("Profile image not a FIFE URL.",F.userDisplayImage));return F.userDisplayImage};
g.xE=function(F){var k=g.gw(F);ipI.includes(k)&&(k="www.youtube.com");return F.protocol+"://"+k};
g.iJ=function(F,k){k=k===void 0?"":k;if(F.oO){var z=new xh,x,D=F.oO();D.signedOut?x="":D.token?x=D.token:D.pendingResult.then(function(e){D.signedOut?z.resolve(""):z.resolve(e.token)},function(e){g.yI(new g.Fa("b189348328_oauth_callback_failed",{error:e}));
z.resolve(k)});
return x!==void 0?IS(x):new OY(z)}return IS(k)};
DL=function(F,k){k=k===void 0?"":k;return F.F1?uk(!0):hd(QK(uk(g.iJ(F,k)),function(z){return uk(!!z)}),function(){return uk(!1)})};
bW=function(F){var k=g.Lw(F);return(F=Number(g.Mt(4,F))||null)?k+":"+F:k};
$E=function(F,k){k=k===void 0?!1:k;var z=fP[F],x=DLp[z],D=$L5[F];if(!D||!x)return null;k=new nP(k?D.height:D.width,k?D.width:D.height,D.fps);x=l4(x,k,z);return new KP(F,x,{video:k,Yu:D.bitrate/8})};
eUH=function(F){var k=DLp[fP[F]],z=jon[F];return z&&k?new KP(F,k,{audio:new RN(z.audioSampleRate,z.numChannels)}):null};
jm=function(F){this.Y=F};
em=function(F,k,z,x){if(z)return VL();z={};var D=Hw();k=g.l(k);for(var e=k.next();!e.done;e=k.next())if(e=e.value,F.canPlayType(D,e.getInfo().mimeType)||x){var C=e.Y.video.quality;if(!z[C]||z[C].getInfo().Xv())z[C]=e}F=[];z.auto&&F.push(z.auto);x=g.l(Mm);for(D=x.next();!D.done;D=x.next())(D=z[D.value])&&F.push(D);return F.length?IS(F):VL()};
Ccx=function(F){this.itag=F.itag;this.url=F.url;this.codecs=F.codecs;this.width=F.width;this.height=F.height;this.fps=F.fps;this.bitrate=F.bitrate;var k;this.L=((k=F.audioItag)==null?void 0:k.split(","))||[];this.nI=F.nI;this.J5=F.J5||"";this.ZD=F.ZD;this.audioChannels=F.audioChannels;this.Y=""};
Aja=function(F,k,z,x){k=k===void 0?!1:k;z=z===void 0?!0:z;x=x===void 0?{}:x;var D={};F=g.l(F);for(var e=F.next();!e.done;e=F.next()){e=e.value;if(k&&MediaSource&&MediaSource.isTypeSupported){var C=e.type;e.audio_channels&&(C=C+"; channels="+e.audio_channels);if(!MediaSource.isTypeSupported(C)){x[e.itag]="tpus";continue}}if(z||!e.drm_families||e.eotf!=="smpte2084"&&e.eotf!=="arib-std-b67"){C=void 0;var p={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},E=e.type.match(/codecs="([^"]*)"/);
E=E?E[1]:"";e.audio_track_id&&(C=new g.qs(e.name,e.audio_track_id,!!e.is_default));var X=e.eotf;e=new Ccx({itag:e.itag,url:e.url,codecs:E,width:Number(e.width),height:Number(e.height),fps:Number(e.fps),bitrate:Number(e.bitrate),audioItag:e.audio_itag,nI:X?p[X]:void 0,J5:e.drm_families,ZD:C,audioChannels:Number(e.audio_channels)});D[e.itag]=D[e.itag]||[];D[e.itag].push(e)}else x[e.itag]="enchdr"}return D};
p7Y=function(F,k,z,x,D){this.U=F;this.L=k;this.W=z;this.cpn=x;this.S=D;this.j=0;this.Y=""};
Ej6=function(F,k){F.U.some(function(z){var x;return((x=z.ZD)==null?void 0:x.getId())===k});
F.Y=k};
CK=function(F,k,z){F.cpn&&(k=g.oW(k,{cpn:F.cpn}));z&&(k=g.oW(k,{paired:z}));return k};
X7n=function(F,k){F=F.itag.toString();k!==null&&(F+=k.itag.toString());return F};
q9M=function(F){for(var k=[],z=[],x=g.l(F.L),D=x.next();!D.done;D=x.next())D=D.value,D.bitrate<=F.j?k.push(D):z.push(D);k.sort(function(e,C){return C.bitrate-e.bitrate});
z.sort(function(e,C){return e.bitrate-C.bitrate});
F.L=k.concat(z)};
AT=function(F,k,z){this.Y=F;this.L=k;this.expiration=z;this.ez=null};
NAY=function(F,k){if(!(k4||Wp()||fg()))return null;F=Aja(k,F.V("html5_filter_fmp4_in_hls"));if(!F)return null;k=[];for(var z={},x=g.l(Object.keys(F)),D=x.next();!D.done;D=x.next()){D=g.l(F[D.value]);for(var e=D.next();!e.done;e=D.next()){var C=e.value;C.ZD&&(e=C.ZD.getId(),z[e]||(C=new g.Ct(e,C.ZD),z[e]=C,k.push(C)))}}return k.length>0?k:null};
lkY=function(F,k,z,x,D,e,C){if(!(k4||Wp()||fg()))return VL();var p={},E=uZp(z),X=Aja(z,F.V("html5_filter_fmp4_in_hls"),F.W.G,p);if(!X)return C({noplst:1}),VL();w7I(X);z={};var q=(z.fairplay="https://web.archive.org/web/20250411103644/https://youtube.com/api/drm/fps?ek=uninitialized",z),N;z=[];var u=[],w=[],m=null,h="";x=x&&x.match(/hls_timedtext_playlist/)?new Ccx({itag:"0",url:x,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,ZD:new g.qs("English","en",!1)}):null;for(var B=g.l(Object.keys(X)),U=B.next();!U.done;U=B.next())if(U=U.value,!F.V("html5_disable_drm_hfr_1080")||
U!=="383"&&U!=="373"){U=g.l(X[U]);for(var v=U.next();!v.done;v=U.next())if(v=v.value,v.width){for(var P=g.l(v.L),I=P.next();!I.done;I=P.next())if(I=I.value,X[I]){v.Y=I;break}v.Y||(v.Y=mLY(X,v));if(P=X[v.Y])if(z.push(v),v.J5==="fairplay"&&(N=q),I="",v.nI==="PQ"?I="smpte2084":v.nI==="HLG"&&(I="arib-std-b67"),I&&(h=I),w.push(TAM(P,[v],x,e,v.itag,v.width,v.height,v.fps,E,void 0,void 0,N,I)),!m||v.width*v.height*v.fps>m.width*m.height*m.fps)m=v}else u.push(v)}else p[U]="disdrmhfr";w.reduce(function(d,
W){return W.getInfo().isEncrypted()&&d},!0)&&(N=q);
D=Math.max(D,0);q=m||{};X=q.fps===void 0?0:q.fps;m=q.width===void 0?0:q.width;q=q.height===void 0?0:q.height;B=F.V("html5_native_audio_track_switching");w.push(TAM(u,z,x,e,"93",m,q,X,E,"auto",D,N,h,B));Object.entries(p).length&&C(p);return em(F.W,w,RB(F,k),!1)};
TAM=function(F,k,z,x,D,e,C,p,E,X,q,N,u,w){for(var m=0,h="",B=g.l(F),U=B.next();!U.done;U=B.next())U=U.value,h||(h=U.itag),U.audioChannels&&U.audioChannels>m&&(m=U.audioChannels,h=U.itag);D=new KP(D,"application/x-mpegURL",{audio:new RN(0,m),video:new nP(e,C,p,null,void 0,X,void 0,u),J5:N,QK:h});F=new p7Y(F,k,z?[z]:[],x,!!w);F.j=q?q:1369843;return new AT(D,F,E)};
uZp=function(F){F=g.l(F);for(var k=F.next();!k.done;k=F.next())if(k=k.value,k.url&&(k=k.url.split("expire/"),!(k.length<=1)))return+k[1].split("/")[0];return NaN};
mLY=function(F,k){for(var z=g.l(Object.keys(F)),x=z.next();!x.done;x=z.next()){x=x.value;var D=F[x][0];if(!D.width&&D.J5===k.J5&&!D.audioChannels)return x}return""};
w7I=function(F){for(var k=new Set,z=g.l(Object.values(F)),x=z.next();!x.done;x=z.next())x=x.value,x.length&&(x=x[0],x.height&&x.codecs.startsWith("vp09")&&k.add(x.height));z=[];if(k.size){x=g.l(Object.keys(F));for(var D=x.next();!D.done;D=x.next())if(D=D.value,F[D].length){var e=F[D][0];e.height&&k.has(e.height)&&!e.codecs.startsWith("vp09")&&z.push(D)}}k=g.l(z);for(z=k.next();!z.done;z=k.next())delete F[z.value]};
pK=function(F,k){this.Y=F;this.L=k};
Qoa=function(F,k,z,x){var D=[];z=g.l(z);for(var e=z.next();!e.done;e=z.next()){var C=e.value;if(C.url){e=new g.ZN(C.url,!0);if(C.s){var p=e,E=C.sp,X=rzC(decodeURIComponent(C.s));p.set(E,encodeURIComponent(X))}p=g.l(Object.keys(x));for(E=p.next();!E.done;E=p.next())E=E.value,e.set(E,x[E]);C=At(C.type,C.quality,C.itag,C.width,C.height);D.push(new pK(C,e))}}return em(F.W,D,RB(F,k),!1)};
Em=function(F,k){this.Y=F;this.L=k};
hU9=function(F,k,z){var x=[];z=g.l(z);for(var D=z.next();!D.done;D=z.next())if((D=D.value)&&D.url){var e=At(D.type,"medium","0");x.push(new Em(e,D.url))}return em(F.W,x,RB(F,k),!1)};
sop=function(F,k){var z=[],x=At(k.type,"auto",k.itag);z.push(new Em(x,k.url));return em(F.W,z,!1,!0)};
BAH=function(F){return F&&rjR[F]?rjR[F]:null};
Gzx=function(F){if(F=F.commonConfig)this.url=F.url,this.urlQueryOverride=F.urlQueryOverride,F.ustreamerConfig&&(this.vF=jP(F.ustreamerConfig)||void 0)};
ULY=function(F,k){var z;if(k=k==null?void 0:(z=k.watchEndpointSupportedOnesieConfig)==null?void 0:z.html5PlaybackOnesieConfig)F.lE=new Gzx(k)};
g.Xd=function(F){F=F===void 0?{}:F;this.languageCode=F.languageCode||"";this.languageName=F.languageName||null;this.kind=F.kind||"";this.name=F.name===void 0?null:F.name;this.displayName=F.displayName||null;this.id=F.id||null;this.Y=F.is_servable||!1;this.isTranslateable=F.is_translateable||!1;this.url=F.url||null;this.vssId=F.vss_id||"";this.isDefault=F.is_default||!1;this.translationLanguage=F.translationLanguage||null;this.xtags=F.xtags||"";this.captionId=F.captionId||""};
g.Nk=function(F){var k={languageCode:F.languageCode,languageName:F.languageName,displayName:g.qk(F),kind:F.kind,name:F.name,id:F.id,is_servable:F.Y,is_default:F.isDefault,is_translateable:F.isTranslateable,vss_id:F.vssId};F.xtags&&(k.xtags=F.xtags);F.captionId&&(k.captionId=F.captionId);F.translationLanguage&&(k.translationLanguage=F.translationLanguage);return k};
g.uJ=function(F){return F.translationLanguage?F.translationLanguage.languageCode:F.languageCode};
g.tGk=function(F){var k=F.vssId;F.translationLanguage&&k&&(k="t"+k+"."+g.uJ(F));return k};
g.qk=function(F){var k=[];if(F.displayName)k.push(F.displayName);else{var z=F.languageName||"";k.push(z);F.kind==="asr"&&z.indexOf("(")===-1&&k.push(" (Automatic Captions)");F.name&&k.push(" - "+F.name)}F.translationLanguage&&k.push(" >> "+F.translationLanguage.languageName);return k.join("")};
PcI=function(F,k,z,x){F||(F=k&&Zpk.hasOwnProperty(k)&&vjC.hasOwnProperty(k)?vjC[k]+"_"+Zpk[k]:void 0);k=F;if(!k)return null;F=k.match(cjD);if(!F||F.length!==5)return null;if(F=k.match(cjD)){var D=Number(F[3]),e=[7,8,10,5,6];F=!(Number(F[1])===1&&D===8)&&e.indexOf(D)>=0}else F=!1;return z||x||F?k:null};
wg=function(F,k){for(var z={},x=g.l(Object.keys(Op9)),D=x.next();!D.done;D=x.next()){D=D.value;var e=k?k+D:D;e=F[e+"_webp"]||F[e];g.e9(e)&&(z[Op9[D]]=e)}return z};
mY=function(F){var k={};if(!F||!F.thumbnails)return k;F=F.thumbnails.filter(function(p){return!!p.url});
F.sort(function(p,E){return p.width-E.width||p.height-E.height});
for(var z=g.l(Object.keys(VGx)),x=z.next();!x.done;x=z.next()){var D=Number(x.value);x=VGx[D];for(var e=g.l(F),C=e.next();!C.done;C=e.next())if(C=C.value,C.width>=D){D=IkY(C.url);g.e9(D)&&(k[x]=D);break}}(F=F.pop())&&F.width>=1280&&(F=IkY(F.url),g.e9(F)&&(k["maxresdefault.jpg"]=F));return k};
IkY=function(F){return F.startsWith("//")?"https:"+F:F};
Te=function(F){return F&&F.baseUrl||""};
lJ=function(F){F=g.jl(F);for(var k=g.l(Object.keys(F)),z=k.next();!z.done;z=k.next()){z=z.value;var x=F[z];F[z]=Array.isArray(x)?x[0]:x}return F};
Hpn=function(F,k){F.botguardData=k.playerAttestationRenderer.botguardData;k=k.playerAttestationRenderer.challenge;k!=null&&(F.Uc=k)};
bpa=function(F,k){k=g.l(k);for(var z=k.next();!z.done;z=k.next()){z=z.value;var x=z.interstitials.map(function(C){var p=g.J(C,akI);if(p)return{is_yto_interstitial:!0,raw_player_response:p};if(C=g.J(C,S9p))return Object.assign({is_yto_interstitial:!0},DC(C))});
x=g.l(x);for(var D=x.next();!D.done;D=x.next())switch(D=D.value,z.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":F.interstitials=F.interstitials.concat({time:0,playerVars:D,r0:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":F.interstitials=F.interstitials.concat({time:0x7ffffffffffff,playerVars:D,r0:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var e=Number(z.podConfig.timeToInsertAtMillis);F.interstitials=F.interstitials.concat({time:e,playerVars:D,
r0:e===0?5:7})}}};
dLn=function(F,k){if(k=k.find(function(z){return!(!z||!z.tooltipRenderer)}))F.tooltipRenderer=k.tooltipRenderer};
JjY=function(F,k){k.subscribeCommand&&(F.subscribeCommand=k.subscribeCommand);k.unsubscribeCommand&&(F.unsubscribeCommand=k.unsubscribeCommand);k.addToWatchLaterCommand&&(F.addToWatchLaterCommand=k.addToWatchLaterCommand);k.removeFromWatchLaterCommand&&(F.removeFromWatchLaterCommand=k.removeFromWatchLaterCommand);k.getSharePanelCommand&&(F.getSharePanelCommand=k.getSharePanelCommand)};
yjR=function(F,k){k!=null?(F.bC=k,F.Mk=!0):(F.bC="",F.Mk=!1)};
Q6=function(F,k){this.type=F||"";this.id=k||""};
g.hT=function(F){return new Q6(F.substring(0,2),F.substring(2))};
g.sm=function(F,k){this.i$=F;this.author="";this.DU=null;this.playlistLength=0;this.Y=this.sessionData=null;this.K={};this.title="";if(k){this.author=k.author||k.playlist_author||"";this.title=k.playlist_title||"";if(F=k.session_data)this.sessionData=xT(F,"&");var z;this.Y=((z=k.thumbnail_ids)==null?void 0:z.split(",")[0])||null;this.K=wg(k,"playlist_");this.videoId=k.video_id||void 0;if(z=k.list)switch(k.listType){case "user_uploads":this.playlistId=(new Q6("UU","PLAYER_"+z)).toString();break;default:if(F=
k.playlist_length)this.playlistLength=Number(F)||0;this.playlistId=g.hT(z).toString();if(k=k.video)this.videoId=(k[0]||null).video_id||void 0}else k.playlist&&(this.playlistLength=k.playlist.toString().split(",").length)}};
g.rg=function(F,k){this.i$=F;this.w5=this.author="";this.DU=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.UQ=this.lengthText="";this.sessionData=null;this.K={};this.title="";if(k){this.ariaLabel=k.aria_label||void 0;this.author=k.author||"";this.w5=k.w5||"";if(F=k.endscreen_autoplay_session_data)this.DU=xT(F,"&");this.fE=k.fE;this.isLivePlayback=k.live_playback==="1";this.isUpcoming=!!k.isUpcoming;if(F=k.length_seconds)this.lengthSeconds=typeof F==="string"?Number(F):F;this.lengthText=
k.lengthText||"";this.UQ=k.UQ||"";this.publishedTimeText=k.publishedTimeText||void 0;if(F=k.session_data)this.sessionData=xT(F,"&");this.shortViewCount=k.short_view_count_text||void 0;this.K=wg(k);this.title=k.title||"";this.videoId=k.docid||k.video_id||k.videoId||k.id||void 0;this.watchUrl=k.watchUrl||void 0}};
RUn=function(F){var k,z,x=(k=F.getWatchNextResponse())==null?void 0:(z=k.contents)==null?void 0:z.twoColumnWatchNextResults,D,e,C,p,E;F=(D=F.getWatchNextResponse())==null?void 0:(e=D.playerOverlays)==null?void 0:(C=e.playerOverlayRenderer)==null?void 0:(p=C.endScreen)==null?void 0:(E=p.watchNextEndScreenRenderer)==null?void 0:E.results;if(!F){var X,q;F=x==null?void 0:(X=x.endScreen)==null?void 0:(q=X.endScreen)==null?void 0:q.results}return F};
g.Ge=function(F){var k,z,x;F=g.J((k=F.getWatchNextResponse())==null?void 0:(z=k.playerOverlays)==null?void 0:(x=z.playerOverlayRenderer)==null?void 0:x.decoratedPlayerBarRenderer,B3);return g.J(F==null?void 0:F.playerBar,gjM)};
Y9n=function(F){this.Y=F.playback_progress_0s_url;this.U=F.playback_progress_2s_url;this.L=F.playback_progress_10s_url};
njM=function(){if(Um===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(k){}a:{try{var F=!!self.localStorage}catch(k){F=!1}if(F&&(F=g.bT(g.kK()+"::yt-player"))){Um=new Mf(F);break a}Um=void 0}}return Um};
g.tT=function(){var F=njM();if(!F)return{};try{var k=F.get("yt-player-lv");return JSON.parse(k||"{}")}catch(z){return{}}};
g.MGn=function(F){var k=njM();k&&(F=JSON.stringify(F),k.set("yt-player-lv",F))};
g.ZL=function(F){return g.tT()[F]||0};
g.v3=function(F,k){var z=g.tT();k!==z[F]&&(k!==0?z[F]=k:delete z[F],g.MGn(z))};
g.c3=function(F){return g.O(function(k){return k.return(g.KM(Lhk(),F))})};
Om=function(F,k,z,x,D,e,C,p){var E,X,q,N,u,w;return g.O(function(m){switch(m.Y){case 1:return E=g.ZL(F),E===4?m.return(4):g.c(m,g.DZ(),2);case 2:X=m.L;if(!X)throw g.t6("wiac");if(!p||C===void 0){m.Sk(3);break}return g.c(m,fkC(p,C),4);case 4:C=m.L;case 3:return q=z.lastModified||"0",g.c(m,g.c3(X),5);case 5:return N=m.L,g.lD(m,6),P3++,g.c(m,g.SB(N,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",nN:!0},function(h){if(e!==void 0&&C!==void 0){var B=""+F+"|"+k.id+"|"+q+"|"+String(e).padStart(10,
"0");B=g.bM(h.objectStore("media"),C,B)}else B=g.vA.resolve(void 0);var U=KhY(F,k.Ci()),v=KhY(F,!k.Ci()),P={fmts:Wh6(x),format:z||{}};U=g.bM(h.objectStore("index"),P,U);var I=x.downloadedEndTime===-1;P=I?h.objectStore("index").get(v):g.vA.resolve(void 0);var d={fmts:"music",format:{}};h=I&&D&&!k.Ci()?g.bM(h.objectStore("index"),d,v):g.vA.resolve(void 0);return g.vA.all([h,P,B,U]).then(function(W){W=g.l(W);W.next();W=W.next().value;P3--;var M=g.ZL(F);if(M!==4&&I&&D||W!==void 0&&g.FE6(W.fmts))M=1,g.v3(F,
M);return M})}),8);
case 8:return m.return(m.L);case 6:u=g.rI(m);P3--;w=g.ZL(F);if(w===4)return m.return(w);g.v3(F,4);throw u;}})};
g.kJ9=function(F){var k,z;return g.O(function(x){if(x.Y==1)return g.c(x,g.DZ(),2);if(x.Y!=3){k=x.L;if(!k)throw g.t6("ri");return g.c(x,g.c3(k),3)}z=x.L;return x.return(g.SB(z,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(D){var e=IDBKeyRange.bound(F+"|",F+"~");return D.objectStore("index").getAll(e).then(function(C){return C.map(function(p){return p?p.format:{}})})}))})};
zEp=function(F,k,z,x,D){var e,C,p;return g.O(function(E){if(E.Y==1)return g.c(E,g.DZ(),2);if(E.Y!=3){e=E.L;if(!e)throw g.t6("rc");return g.c(E,g.c3(e),3)}C=E.L;p=g.SB(C,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(X){var q=""+F+"|"+k+"|"+z+"|"+String(x).padStart(10,"0");return X.objectStore("media").get(q)});
return D?E.return(p.then(function(X){if(X===void 0)throw Error("No data from indexDb");return o8D(D,X)}).catch(function(X){throw new g.Fa("Error while reading chunk: "+X.name+", "+X.message);
})):E.return(p)})};
g.FE6=function(F){return F?F==="music"?!0:F.includes("dlt=-1")||!F.includes("dlt="):!1};
KhY=function(F,k){return""+F+"|"+(k?"v":"a")};
Wh6=function(F){var k={};return iP((k.dlt=F.downloadedEndTime.toString(),k.mket=F.maxKnownEndTime.toString(),k.avbr=F.averageByteRate.toString(),k))};
iGR=function(F){var k={},z={};F=g.l(F);for(var x=F.next();!x.done;x=F.next()){var D=x.value,e=D.split("|");D.match(g.xZR)?(x=Number(e.pop()),isNaN(x)?z[D]="?":(e=e.join("|"),(D=k[e])?(e=D[D.length-1],x===e.end+1?e.end=x:D.push({start:x,end:x})):k[e]=[{start:x,end:x}])):z[D]="?"}F=g.l(Object.keys(k));for(x=F.next();!x.done;x=F.next())x=x.value,z[x]=k[x].map(function(C){return C.start+"-"+C.end}).join(",");
return z};
V6=function(F){g.uG.call(this);this.Y=null;this.U=new yu;this.Y=null;this.S=new Set;this.crossOrigin=F||""};
DZ5=function(F,k,z){for(z=It(F,z);z>=0;){var x=F.levels[z];if(x.isLoaded(H3(x,k))&&(x=g.at(x,k)))return x;z--}return g.at(F.levels[0],k)};
jOn=function(F,k,z){z=It(F,z);for(var x,D;z>=0;z--)if(x=F.levels[z],D=H3(x,k),!x.isLoaded(D)){x=F;var e=z,C=e+"-"+D;x.S.has(C)||(x.S.add(C),x.U.enqueue(e,{eQ:e,Yp:D}))}$Za(F)};
$Za=function(F){if(!F.Y&&!F.U.isEmpty()){var k=F.U.remove();F.Y=eE9(F,k)}};
eE9=function(F,k){var z=document.createElement("img");F.crossOrigin&&(z.crossOrigin=F.crossOrigin);z.src=F.levels[k.eQ].q5(k.Yp);z.onload=function(){var x=k.eQ,D=k.Yp;F.Y!==null&&(F.Y.onload=null,F.Y=null);x=F.levels[x];x.loaded.add(D);$Za(F);var e=x.columns*x.rows;D*=e;x=Math.min(D+e-1,x.oP()-1);D=[D,x];F.publish("l",D[0],D[1])};
return z};
g.Sm=function(F,k,z,x){this.level=F;this.j=k;this.loaded=new Set;this.level=F;this.j=k;F=z.split("#");this.width=Math.floor(Number(F[0]));this.height=Math.floor(Number(F[1]));this.frameCount=Math.floor(Number(F[2]));this.columns=Math.floor(Number(F[3]));this.rows=Math.floor(Number(F[4]));this.Y=Math.floor(Number(F[5]));this.U=F[6];this.signature=F[7];this.videoLength=x};
H3=function(F,k){return Math.floor(k/(F.columns*F.rows))};
g.at=function(F,k){k>=F.cw()&&F.sV();var z=H3(F,k),x=F.columns*F.rows,D=k%x;k=D%F.columns;D=Math.floor(D/F.columns);var e=F.sV()+1-x*z;if(e<F.columns){var C=e;x=1}else C=F.columns,x=e<x?Math.ceil(e/F.columns):F.rows;return{url:F.q5(z),column:k,columns:C,row:D,rows:x,z5:F.width*C,Wv:F.height*x}};
bJ=function(F,k,z,x,D){x=x===void 0?!1:x;D=D===void 0?!1:D;V6.call(this,z);this.isLive=x;this.G=!!D;this.levels=this.L(F,k);this.j=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
CBn=function(F,k,z){return(F=F.levels[k])?F.P9(z):-1};
It=function(F,k){var z=F.j.get(k);if(z)return z;z=F.levels.length;for(var x=0;x<z;x++)if(F.levels[x].width>=k)return F.j.set(k,x),x;F.j.set(k,z-1);return z-1};
dg=function(F,k,z,x){z=z.split("#");z=[z[1],z[2],0,z[3],z[4],-1,z[0],""].join("#");g.Sm.call(this,F,k,z,0);this.L=null;this.W=x?2:0};
JT=function(F,k,z,x){bJ.call(this,F,0,void 0,k,!(x===void 0||!x));for(F=0;F<this.levels.length;F++)this.levels[F].O8(z)};
A8H=function(F,k,z){k={cpn:k};F.indexOf("/ibw/")===-1&&(k.ibw=z?String(z):"1369843");return{url:g.oW(F,k),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.Rt=function(F,k){g.uG.call(this);var z=this;this.i$=F;this.adaptiveFormats="";this.e0=this.T9=this.adQueryId=this.Xq=null;this.xV={start:NaN,end:NaN};this.cueRanges=this.J5=null;this.Gs=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.sI=void 0;this.X1=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.NJ="";this.SI=!1;this.bP=null;this.Tr=this.F1=this.Lu=!1;this.j=null;this.sf=this.mA=!1;this.YZ=
NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=0;this.wD=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.tS=0;this.WO=!1;this.Bh=this.cycToken=null;this.author="";this.aR=!1;this.u$=0;this.NZ=!1;this.MU=null;this.Kf=[];this.Si=this.OW=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.Xm=this.H8="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=
this.endSeconds=this.qD=0;this.GR=this.kG=this.L=null;this.hO="";this.loading=!1;this.yf=this.Ts=0;this.gm=this.pipable=this.Mm=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.k9=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.vR=this.isPrivate=this.isListed=this.f8=this.zM=!1;this.A2="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.NP=this.yh=this.A5=!1;this.latencyClass="UNKNOWN";this.Bu=
this.Wp=this.gD=this.x4=this.YO=this.Vb=this.S_=this.enableServerStitchedDai=this.P5=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.vj=0;this.reloadReason="";this.RN=this.y0=this.Av=!1;this.keywords={};this.mY="";this.Fp=0;this.GI=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.Sh=null;this.Wh=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.u6=this.paygated=!1;this.aj=[];this.Hx=
!1;this.t4=[];this.q4=null;this.N2=this.racyCheckOk=!1;this.fG={};this.isProximaLatencyEligible=!1;this.RM=0;this.U=null;this.autonavState=1;this.PY=null;this.shortDescription="";this.mp=this.KW=!1;this.y6=this.RS=this.startSeconds=0;this.J9=this.K6=this.KB=y6;this.eI=this.suggestions=null;this.Lt=this.UZ=void 0;this.isExternallyHostedPodcast=!1;this.VH=null;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.bO=void 0;this.UH=[];this.pn=[];this.hlsFormats=this.Z7="";this.G0=
this.VI=this.En=this.P7=this.dH=this.Tc=this.Xz=null;this.qZ="vvt";this.uG=!1;this.dE=null;this.AV="";this.QV=NaN;this.PZ=this.f1=this.Yv=this.A9=this.qn=this.J$=this.Zv=this.Nn=this.UE=this.H6="";this.xf=null;this.qj=!1;this.G={};this.clipStart=0;this.clipEnd=Infinity;this.fC=!1;this.heartbeatToken="";this.pC=this.H3=NaN;this.ZR=this.hS=this.Ji=this.DJ=this.CC=!1;this.lJ=!0;this.K={};this.captionTracks=[];this.Hh=[];this.Fx=0;this.wB=[];this.yb=[];this.gx=!1;this.uq={};this.fb=new g.Ct("und",new g.qs("Default",
"und",!0));this.qU=0;this.W=null;this.sE=[];this.Yk=!1;this.rq=this.MD="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.J4=this.NU=this.VY=this.playerResponse=this.w1=this.SF=this.Bx=this.Hl=this.K5=this.Ih=this.bq=null;this.xg=!1;this.Qh=null;this.isInlinePlaybackNoAd=this.T1=this.rB=this.useCobaltWidevine=this.Zr=this.GJ=!1;this.BV=!0;this.Ki=this.BM=NaN;this.defraggedFromSubfragments=this.q3=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.sabrContextUpdates=
new Map;this.yI="";this.MN=!1;this.gatewayExperimentGroup="";this.yJ=this.l$=this.D7=!1;this.interstitials=[];this.Mk=this.Hu=!1;this.bC="";this.allowImaMonetization=!1;this.xI="";this.A0=!1;this.BF="";this.OE=[];this.Bq=[];this.KJ="";this.sW=this.B=this.ZJ=!1;this.Cy="";this.N9=this.uN=this.Cs=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.BC=!1;this.nF=this.xY=!0;this.errorDetail=this.userGenderAge="";this.Mr=this.ZM=this.getSharePanelCommand=
this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.QX=this.errorReason=this.errorCode=null;this.lO=this.z9="";this.w8=!1;this.Yg=[];this.We=this.cR=this.uL=this.zY=this.W8=0;this.fetchType=null;this.Hp=!0;this.transitionEndpointAtEndOfStream=void 0;this.qr=this.hW=-1;this.bJ=this.YP=!1;this.Nk=null;this.RU="";this.uo=!1;this.watchUrl=null;this.vr=[];this.visibleOnLoadKeys=[];this.Uf=[];this.inlineMetricEnabled=this.eh=
!1;this.embedsRctn=this.embedsRct="";this.Xo=NaN;this.z1=[];this.AY=(0,g.VE)();this.v$=this.Mo=0;this.vF=null;this.m_=0;this.je=this.J2=!1;this.Vz=this.i$.experiments.Ca("html5_use_triple_equals");this.Za=!1;this.Lq=g.lw(this.i$.experiments,"html5_gapless_loop_seek_offset_in_milli");this.Rh=0;this.zz={};this.Pe={setData:function(x){z.setData(x)},
iz:function(){z.iz()},
p6:function(x){z.p6(x)}};
this.YP=this.V("web_new_autonav_countdown");this.bJ=this.V("web_new_big_thumbnail_endscreen");this.setData(k);this.nt=new my;g.b(this,this.nt)};
g.nK=function(F,k,z){k&&k.cpn&&g.yI(new g.Fa("CPN provided in VideoData update",{zsQ:k.cpn,v5:F.clientPlaybackNonce,Z0K:z}));z?(XG(k),F.setData(k),gg(F)&&F.iz()):(k=k||{},pQR(F,k),YE(F,k),E8p(F,k),F.publish("dataupdated"))};
E8p=function(F,k){F.fflags=pu(F.fflags,k.fflags);var z=k.iv_invideo_url;z&&(F.NJ=Cs(z));F.SI=eZ(F.SI,k.iv_ads_only);if(z=k.cta_conversion_urls)F.oL=z;F.isPharma=eZ(F.isPharma,k.is_pharma);F.author=pu(F.author,k.author);F.H8=XQD(k.ttsurl)||F.H8;F.NZ=eZ(F.NZ,k.cc_asr);F.Xm=pu(F.Xm,k.channel_path);if(z=k.profile_picture)F.profilePicture=pu(F.profilePicture,z);F.videoCountText=pu(F.videoCountText,k.video_count_text);F.autonavState=Cu(F.autonavState,k.autonav_state,qjx);if(F.V("html5_enable_ssap_entity_id")){var x;
z=!!k.cotn||!((x=F.playerResponse)==null||!x.cotn);x=g.lw(F.i$.experiments,"html5_entity_id_simplified_preferred_record_size");F.playerResponse&&!z&&(F.clientPlaybackNonce=N0n(F,F.playerResponse,x)||F.clientPlaybackNonce);F.clientPlaybackNonce||(k.cpn&&F.sQ("ssei","uhdc"),F.clientPlaybackNonce=pu(F.clientPlaybackNonce,k.cpn))}else F.clientPlaybackNonce=pu(F.clientPlaybackNonce,k.cpn);F.subscribed=eZ(F.subscribed,k.subscribed);F.rawViewCount=Ax(F.rawViewCount,k.view_count);F.shortViewCount=pu(F.shortViewCount,
k.short_view_count_text);F.publishedTimeText=pu(F.publishedTimeText||"",k.publishedTimeText);F.lengthText=pu(F.lengthText||"",k.lengthText);F.UQ=pu(F.UQ||"",k.UQ);F.w5=pu(F.w5||"",k.w5);F.title=pu(F.title,k.title);F.subtitle=pu(F.subtitle,k.subtitle);F.expandedTitle=pu(F.expandedTitle,k.expanded_title);F.expandedSubtitle=pu(F.expandedSubtitle,k.expanded_subtitle);F.ypcPreview=pu(F.ypcPreview,k.ypc_preview);F.Le=pu(F.Le,k.ypc_origin);F.uG=eZ(F.uG,k.ypc_is_premiere_trailer);F.Cy=pu(F.Cy,k.ypc_clickwrap_message);
F.paygated=eZ(F.paygated,k.paygated);F.qj=eZ(F.qj,k.requires_purchase);F.showShareButton=!eZ(!F.showShareButton,k.ss);F.xY=eZ(F.xY,k.showwatchlater);F.nF=eZ(F.nF,k.shownotifybutton);F.BC=eZ(F.BC,k.copy_share);if(x=k.el)F.eventLabel=x;if(x=k.keywords)F.keywords=u4p(x.split(","));if(x=k.rvs)F.suggestions=$T(x).map(function(D){return D.playlist||D.list||D.api?new g.sm(F.i$,D):new g.rg(F.i$,D)});
F.contentCheckOk=eZ(F.contentCheckOk,k.cco);F.racyCheckOk=eZ(F.racyCheckOk,k.rco);F.isLivingRoomDeeplink=eZ(F.isLivingRoomDeeplink,k.is_living_room_deeplink);F.oauthToken=pu(F.oauthToken,k.oauth_token);F.mY=pu(F.mY,k.kpt);F.visitorData=pu(F.visitorData,k.visitor_data);if(x=k.session_data)F.sessionData=xT(x,"&");F.G9=pu(F.G9,k.endscreen_ad_tracking_data);F.YB=eZ(F.YB,k.wait_for_vast_info_cards_xml);F.Nr=eZ(F.Nr,k.suppress_creator_endscreen);F.gb=eZ(F.gb,k.is_trueview_action);F.rP=pu(F.rP,k.tracking_list);
F.z9=pu(F.z9,k.clip);F.lO=pu(F.lO,k.clipt);wQI(F,k)};
N0n=function(F,k,z){var x,D=(x=k.cpnInfo)==null?void 0:x.cpn;F.playerResponseCpn=D!=null?D:"";g.Mk(F)&&!D&&F.sQ("ssei","eim_"+F.clientPlaybackNonce);var e;return((e=k.cacheMetadata)==null?0:e.isCacheHit)||F.Si||!D?"":(LK.has(D)?z="":(k=mZp.push(D),LK.add(D),k>(z!=null?z:50)&&(z=mZp.shift())&&LK.delete(z),z=D),D!==z&&F.sQ("ssei","dcpn_"+D+"_"+z+"_"+F.clientPlaybackNonce),z)};
YE=function(F,k){var z=k.raw_watch_next_response;if(!z){var x=k.watch_next_response;x&&(z=JSON.parse(x))}if(z){F.J4=z;var D=F.J4.playerCueRangeSet;D&&g.fK(F,D);var e=F.J4.playerOverlays;if(e){var C=e.playerOverlayRenderer;if(C){var p=C.autonavToggle;p&&(F.autoplaySwitchButtonRenderer=g.J(p,T0H),F.V("web_player_autonav_use_server_provided_state")&&KK(F)&&(F.autonavState=F.autoplaySwitchButtonRenderer.enabled?2:1));var E=C.videoDetails;if(E){var X=E.embeddedPlayerOverlayVideoDetailsRenderer;var q=E.playerOverlayVideoDetailsRenderer;
q&&(q.title&&(k.title=g.rt(q.title)),q.subtitle&&(k.subtitle=g.rt(q.subtitle)))}g.Vq(F.i$)&&(F.xY=!!C.addToMenu);l$H(F,C.shareButton);C.startPosition&&C.endPosition&&(F.progressBarStartPosition=C.startPosition,F.progressBarEndPosition=C.endPosition);var N=C.gatedActionsOverlayRenderer;N&&(F.gf=g.J(N,QOD));var u,w,m,h=g.J((u=F.getWatchNextResponse())==null?void 0:(w=u.playerOverlays)==null?void 0:(m=w.playerOverlayRenderer)==null?void 0:m.infoPanel,hEn);if(h){F.Xo=Number(h==null?void 0:h.durationMs)||
NaN;if(h==null?0:h.infoPanelOverviewViewModel)F.Om=h==null?void 0:h.infoPanelOverviewViewModel;if(h==null?0:h.infoPanelDetailsViewModel)F.TR=h==null?void 0:h.infoPanelDetailsViewModel}F.showSeekingControls=!!C.showSeekingControls}}var B,U,v=(B=F.getWatchNextResponse())==null?void 0:(U=B.contents)==null?void 0:U.twoColumnWatchNextResults;if(v){var P=v.desktopOverlay&&g.J(v.desktopOverlay,sOa);P&&(P.suppressShareButton&&(F.showShareButton=!1),P.suppressWatchLaterButton&&(F.xY=!1))}X&&r8k(F,k,X);var I=
Ax(0,k.autoplay_count),d=F.getWatchNextResponse(),W,M=(W=d.contents)==null?void 0:W.twoColumnWatchNextResults,xY,$Y,Fx,y=(xY=d.playerOverlays)==null?void 0:($Y=xY.playerOverlayRenderer)==null?void 0:(Fx=$Y.autoplay)==null?void 0:Fx.playerOverlayAutoplayRenderer,K=RUn(F),Q,R=(Q=d.contents)==null?void 0:Q.singleColumnWatchNextResults;if(R){var Jn;if(((Jn=R.autoplay)==null?0:Jn.autoplay)&&!R.playlist){var s$=R.autoplay.autoplay.sets,u7={},Gp=new g.rg(F.C()),kG=null,jC;if(s$){for(var w9=g.l(s$),G=w9.next();!G.done;G=
w9.next()){var t=G.value.autoplayVideoRenderer;if(t&&t.compactVideoRenderer){kG=t.compactVideoRenderer;break}}if(jC=s$[0].autoplayVideo){var Z=jC.clickTrackingParams;Z&&(u7.itct=Z);u7.autonav="1";u7.playnext=String(I)}}else u7.feature="related-auto";var V=g.J(jC,g.W3);if(kG){Gp.videoId=kG.videoId;var H=kG.shortBylineText;H&&(Gp.author=g.rt(H));var kY=kG.title;kY&&(Gp.title=g.rt(kY))}else V!=null&&V.videoId&&(Gp.videoId=V.videoId);Gp.DU=u7;F.suggestions=[];F.eI=Gp}}if(K){for(var iD=[],DM=g.l(K),a=
DM.next();!a.done;a=DM.next()){var QR=a.value,jH=void 0,eH=null;if(QR.endScreenVideoRenderer){var P6=QR.endScreenVideoRenderer,fk=P6.title;eH=new g.rg(F.C());eH.videoId=P6.videoId;eH.lengthSeconds=P6.lengthInSeconds||0;var b7=P6.publishedTimeText;b7&&(eH.publishedTimeText=g.rt(b7));var KC=P6.shortBylineText;KC&&(eH.author=g.rt(KC));var YY=P6.shortViewCountText;YY&&(eH.shortViewCount=g.rt(YY));if(fk){eH.title=g.rt(fk);var n8=fk.accessibility;if(n8){var bI=n8.accessibilityData;bI&&bI.label&&(eH.ariaLabel=
bI.label)}}var N3=P6.navigationEndpoint;if(N3){jH=N3.clickTrackingParams;var gf=g.J(N3,g.W3),EV=g.J(N3,g.gt);gf?eH.fE=gf:EV!=null&&(eH.watchUrl=EV.url)}var ni=P6.thumbnailOverlays;if(ni)for(var dN=g.l(ni),M_=dN.next();!M_.done;M_=dN.next()){var hs=M_.value.thumbnailOverlayTimeStatusRenderer;if(hs)if(hs.style==="LIVE"){eH.isLivePlayback=!0;break}else if(hs.style==="UPCOMING"){eH.isUpcoming=!0;break}}eH.K=mY(P6.thumbnail)}else if(QR.endScreenPlaylistRenderer){var X7=QR.endScreenPlaylistRenderer,c4=
X7.navigationEndpoint;if(!c4)continue;var uI=g.J(c4,g.W3);if(!uI)continue;var P4=uI.videoId;eH=new g.sm(F.C());eH.playlistId=X7.playlistId;eH.playlistLength=Number(X7.videoCount)||0;eH.Y=P4||null;eH.videoId=P4;var dl=X7.title;dl&&(eH.title=g.rt(dl));var Ja=X7.shortBylineText;Ja&&(eH.author=g.rt(Ja));jH=c4.clickTrackingParams;eH.K=mY(X7.thumbnail)}eH&&(jH&&(eH.sessionData={itct:jH}),iD.push(eH))}F.suggestions=iD}if(y){F.Hp=!!y.preferImmediateRedirect;F.YP=F.YP||!!y.webShowNewAutonavCountdown;F.bJ=
F.bJ||!!y.webShowBigThumbnailEndscreen;if(F.YP||F.bJ){var GQ=M||null,kN=new g.rg(F.C());kN.videoId=y.videoId;var Li=y.videoTitle;if(Li){kN.title=g.rt(Li);var DP=Li.accessibility;if(DP){var IC=DP.accessibilityData;IC&&IC.label&&(kN.ariaLabel=IC.label)}}var fX=y.byline;fX&&(kN.author=g.rt(fX));var NT=y.publishedTimeText;NT&&(kN.publishedTimeText=g.rt(NT));var sH=y.shortViewCountText;sH&&(kN.shortViewCount=g.rt(sH));var rW=y.thumbnailOverlays;if(rW)for(var BH=g.l(rW),XD=BH.next();!XD.done;XD=BH.next()){var A9=
XD.value.thumbnailOverlayTimeStatusRenderer;if(A9)if(A9.style==="LIVE"){kN.isLivePlayback=!0;break}else if(A9.style==="UPCOMING"){kN.isUpcoming=!0;break}else if(A9.style==="DEFAULT"&&A9.text){kN.lengthText=g.rt(A9.text);var qF=A9.text.accessibility;if(qF){var NF=qF.accessibilityData;NF&&NF.label&&(kN.UQ=NF.label||"")}break}}kN.K=mY(y.background);var G$=y.nextButton;if(G$){var UH=G$.buttonRenderer;if(UH){var tt=UH.navigationEndpoint;if(tt){var Zm=g.J(tt,g.W3);Zm&&(kN.fE=Zm)}}}if(y.topBadges){var vH=
y.topBadges[0];if(vH){var cH=g.J(vH,B0R);cH&&cH.style==="BADGE_STYLE_TYPE_PREMIUM"&&(kN.lTh=!0)}}var f9=y.alternativeTitle;f9&&(kN.w5=g.rt(f9));var HN={autonav:"1",playnext:String(I)};kN.playlistId&&(HN.autoplay="1");if(GQ){var K9,Ys,u0,PH,wE=(K9=GQ.autoplay)==null?void 0:(Ys=K9.autoplay)==null?void 0:(u0=Ys.sets)==null?void 0:(PH=u0[0])==null?void 0:PH.autoplayVideo;if(wE){var OH=wE.clickTrackingParams;OH&&(HN.itct=OH);var m_=g.J(wE,g.W3);m_&&(kN.PY=m_)}}else if(y){var VH,ID,HH,aD=(VH=y.nextButton)==
null?void 0:(ID=VH.buttonRenderer)==null?void 0:(HH=ID.navigationEndpoint)==null?void 0:HH.clickTrackingParams;aD&&(HN.itct=aD)}HN.itct||(HN.feature="related-auto");kN.DU=HN;F.suggestions||(F.suggestions=[]);F.eI=kN}y.countDownSecs!=null&&(F.hW=y.countDownSecs*1E3);y.countDownSecsForFullscreen!=null&&(F.qr=y.countDownSecsForFullscreen>=0?y.countDownSecsForFullscreen*1E3:-1);F.V("web_autonav_color_transition")&&y.watchToWatchTransitionRenderer&&(F.watchToWatchTransitionRenderer=g.J(y.watchToWatchTransitionRenderer,
GJ9))}var TN=RUn(F);if(TN){var r4,SQ,l0,Qa=TN==null?void 0:(r4=TN[0])==null?void 0:(SQ=r4.endScreenVideoRenderer)==null?void 0:(l0=SQ.navigationEndpoint)==null?void 0:l0.clickTrackingParams,bK=g.Fq(F);Qa&&bK&&(bK.sessionData={itct:Qa})}F.J4.currentVideoThumbnail&&(F.K=mY(F.J4.currentVideoThumbnail));var WP,dW,Jt,Fh,yH,By=(WP=F.J4)==null?void 0:(dW=WP.contents)==null?void 0:(Jt=dW.twoColumnWatchNextResults)==null?void 0:(Fh=Jt.results)==null?void 0:(yH=Fh.results)==null?void 0:yH.contents;if(By&&By[1]){var RD,
gW,aC,h0,y4=(RD=By[1].videoSecondaryInfoRenderer)==null?void 0:(gW=RD.owner)==null?void 0:(aC=gW.videoOwnerRenderer)==null?void 0:(h0=aC.thumbnail)==null?void 0:h0.thumbnails;y4&&y4.length&&(F.profilePicture=y4[y4.length-1].url)}var Yb=XG(k),hZ,GI=(hZ=F.getWatchNextResponse())==null?void 0:hZ.onResponseReceivedEndpoints;if(GI)for(var Ua=g.l(GI),sS=Ua.next();!sS.done;sS=Ua.next()){var R4=sS.value;g.J(R4,kJ)&&(F.nG=g.J(R4,kJ));var ty=g.J(R4,UZ5),nm=void 0;if((nm=ty)==null?0:nm.entityKeys)F.vr=ty.entityKeys||
[],ty.visibleOnLoadKeys&&(F.visibleOnLoadKeys=ty.visibleOnLoadKeys)}if(F.V("web_key_moments_markers")){var oL=g.ok.getState().entities,E0=g.is("visibility_override","markersVisibilityOverrideEntity");var KX=us(oL,"markersVisibilityOverrideEntity",E0);F.UH=(KX==null?void 0:KX.videoId)===(F.videoId||Yb)&&(KX==null?0:KX.visibilityOverrideMarkersKey)?KX.visibilityOverrideMarkersKey:F.visibleOnLoadKeys;F.visibleOnLoadKeys=[].concat(g.r(F.UH))}}};
KK=function(F){var k;return((k=F.autoplaySwitchButtonRenderer)==null?void 0:k.enabled)!==void 0};
zC=function(F){return!!(F.U&&F.U.videoInfos&&F.U.videoInfos.length)};
g.jk=function(F){var k=F.B;F.V("html5_gapless_unlimit_format_selection")&&xJ(F)&&(k=!1);var z=!!F.Y&&F.Y.oS,x=F.i$,D=F.uj(),e=ix(F),C=F.l$,p=k,E=F.isOtf();k=F.Xn();var X=F.vR,q=F.getUserAudio51Preference(),N=Dx(F),u=new CND(x);if(x.Jp()||x.V("html5_logging_format_selection"))u.L=!0;u.u$=e;u.l$=C&&x.G;u.yh=q;g.ng("windows nt 5.1")&&!g.n3&&(u.Nm=!0);if(e=D)e=g.kE(x)?ojC(x):!1;e&&(u.PR=!0);p&&(u.Nm=!0,u.vj=!0);E&&!x.V("html5_otf_prefer_vp9")&&(u.Nm=!0);x.playerStyle==="picasaweb"&&(E&&(u.Nm=!1),u.t4=
!1);X&&(u.Nm=!0);U_(x.W,tX.CHANNELS)&&(x.V("html5_enable_ac3")&&(u.W=!0),x.V("html5_enable_eac3")&&(u.S=!0),x.V("html5_enable_ac3_gapless")&&(u.cR=!0));x.V("html5_block_8k_hfr")&&(u.kG=!0);u.G=g.lw(x.experiments,"html5_max_selectable_quality_ordinal");u.B=g.lw(x.experiments,"html5_min_selectable_quality_ordinal");BJ&&(u.uL=480);if(z||D)u.t4=!1;u.vR=!1;u.disableAv1=N;z=a3(x,u.Y,void 0,u.disableAv1);z>0&&z<2160&&(Mi()||x.V("html5_format_hybridization"))&&(u.Y.supportsChangeType=+Mi(),u.l0=z);z>=2160&&
(u.Xf=!0);Iop()&&(u.Y.serveVp9OverAv1IfHigherRes=0,u.We=!1);u.Xn=k;u.RU=g.o9||$n()&&!k?!1:!0;u.K=x.V("html5_format_hybridization");u.mY=x.V("html5_disable_encrypted_vp9_live_non_2k_4k");$J(F)&&(u.MD=F.V("html5_prefer_language_over_codec"));fg()&&F.playerResponse&&F.playerResponse.playerConfig&&F.playerResponse.playerConfig.webPlayerConfig&&F.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(u.W=!0,u.S=!0);F.B&&F.isAd()&&(F.UZ&&(u.Qh=F.UZ),F.Lt&&(u.j=F.Lt));u.J4=F.isLivePlayback&&
F.sz()&&F.i$.V("html5_drm_live_audio_51");u.UH=F.rB;return F.Nk=u};
Dx=function(F){return F.i$.V("html5_disable_av1")||F.V("html5_gapless_shorts_disable_av1")&&xJ(F)?!0:!1};
t7n=function(F){nl("drm_pb_s",void 0,F.RU);F.kG||F.Y&&hX(F.Y);var k={};F.Y&&(k=M9p(F.nt,g.jk(F),F.i$.W,F.Y,function(z){return F.publish("ctmp","fmtflt",z)},!0,new Set));
k=new f3(k,F.i$,F.Zr,F.useCobaltWidevine?fg()?ek(F):!1:!1,function(z,x){F.UK(z,x)});
g.b(F,k);F.hS=!1;F.loading=!0;XEp(k,function(z){nl("drm_pb_f",void 0,F.RU);for(var x=g.l(z),D=x.next();!D.done;D=x.next())switch(D=D.value,D.flavor){case "fairplay":D.kG=F.kG;D.Bi=F.Bi;D.JA=F.JA;break;case "widevine":D.GR=F.GR}F.sE=z;if(F.sE.length>0&&(F.W=F.sE[0],F.i$.Jp())){z={};x=g.l(Object.entries(F.W.Y));for(D=x.next();!D.done;D=x.next()){var e=g.l(D.value);D=e.next().value;e=e.next().value;var C="unk";(D=D.match(/(.*)codecs="(.*)"/))&&(C=D[2]);z[C]=e}F.UK("drmProbe",z)}F.iz()})};
ZG6=function(F,k){if(k.length===0||C9(F))return null;F.i$.W.U&&(Vg=!0);var z=F.J5;var x=F.lengthSeconds,D=F.isLivePlayback,e=F.A5,C=F.i$,p=MQC(k);if(D||e){C=C.experiments;x=new Tk("",C,!0);x.L=!e;x.oS=!0;x.isManifestless=!0;x.isLive=!e;x.A5=e;k=g.l(k);for(D=k.next();!D.done;D=k.next()){var E=D.value;D=hQ(E,z);p=Iy(E);p=ri(p.e4||E.url||"",p.L8,p.s);var X=p.get("id");X&&X.includes("%7E")&&(x.K=!0);var q=void 0;X=(q=C)==null?void 0:q.Ca("html5_max_known_end_time_rebase");q=Number(E.targetDurationSec||
5);E=Number(E.maxDvrDurationSec||14400);var N=Number(p.get("mindsq")||p.get("min_sq")||"0"),u=Number(p.get("maxdsq")||p.get("max_sq")||"0")||Infinity;x.W8=x.W8||N;x.zY=x.zY||u;var w=!Cm(D.mimeType);p&&u4(x,new xl(p,D,{dO:q,Ks:w,FJ:E,W8:N,zY:u,ra:300,A5:e,b6:X}))}z=x}else if(p==="FORMAT_STREAM_TYPE_OTF"){x=x===void 0?0:x;e=new Tk("",C.experiments,!1);e.duration=x||0;C=g.l(k);for(x=C.next();!x.done;x=C.next())x=x.value,k=hQ(x,z,e.duration),D=Iy(x),(D=ri(D.e4||x.url||"",D.L8,D.s))&&(k.streamType==="FORMAT_STREAM_TYPE_OTF"?
u4(e,new i4(D,k,"sq/0")):u4(e,new XQ(D,k,a0(x.initRange),a0(x.indexRange))));e.isOtf=!0;z=e}else{x=x===void 0?0:x;e=new Tk("",C.experiments,!1);e.duration=x||0;C=g.l(k);for(x=C.next();!x.done;x=C.next())p=x.value,x=hQ(p,z,e.duration),k=a0(p.initRange),D=a0(p.indexRange),X=Iy(p),(p=ri(X.e4||p.url||"",X.L8,X.s))&&u4(e,new XQ(p,x,k,D));z=e}e=F.isLivePlayback&&!F.A5&&!F.yh&&!F.isPremiere;F.V("html5_live_head_playable")&&(!Ab(F)&&e&&F.UK("missingLiveHeadPlayable",{}),F.i$.Qh==="yt"&&(z.RU=!0));return z};
C9=function(F){return fg()?!ek(F):Wp()?!(!F.kG||!F.V("html5_enable_safari_fairplay")&&xH()):!1};
ek=function(F){return F.V("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
g.fK=function(F,k){k=g.l(k);for(var z=k.next();!z.done;z=k.next())if(z=z.value,z.cueRangeSetIdentifier){var x=void 0;F.Gs.set(z.cueRangeSetIdentifier,(x=z.playerCueRanges)!=null?x:[])}};
p9=function(F){return!(!F.Y||!F.Y.isManifestless)};
Eh=function(F){return F.Vz?F.isLowLatencyLiveStream&&F.Y!=null&&tQ(F.Y)>=5:F.isLowLatencyLiveStream&&F.Y!=void 0&&tQ(F.Y)>=5};
v86=function(F){return fg()&&ek(F)?!1:C9(F)&&(g.Pe(F.i$)?!F.isLivePlayback:F.hlsvp)||!xH()||F.OW?!0:!1};
OGD=function(F){F.loading=!0;F.Ji=!1;if(c8n(F))g.kJ9(F.videoId).then(function(x){PBn(F,x)}).then(function(){F.iz()});
else{j9(F.fJ)||g.yI(new g.Fa("DASH MPD Origin invalid: ",F.fJ));var k=F.fJ,z=g.lw(F.i$.experiments,"dash_manifest_version")||4;k=g.oW(k,{mpd_version:z});F.isLowLatencyLiveStream&&F.latencyClass!=="NORMAL"||(k=g.oW(k,{pacing:0}));zAY(k,F.i$.experiments,F.isLivePlayback).then(function(x){F.z4()||(Xq(F,x,!0),nl("mrc",void 0,F.RU),F.iz())},function(x){F.z4()||(F.loading=!1,F.publish("dataloaderror",new O3("manifest.net.retryexhausted",{backend:"manifest",
rc:x.status},1)))});
nl("mrs",void 0,F.RU)}};
PBn=function(F,k){var z=k.map(function(E){return E.itag}),x;
if((x=F.playerResponse)!=null&&x.streamingData){x=[];if(F.V("html5_offline_always_use_local_formats")){z=0;for(var D=g.l(k),e=D.next();!e.done;e=D.next()){e=e.value;var C=Object.assign({},e);C.signatureCipher="";x.push(C);C=g.l(F.playerResponse.streamingData.adaptiveFormats);for(var p=C.next();!p.done;p=C.next())if(p=p.value,e.itag===p.itag&&e.xtags===p.xtags){z+=1;break}}z<k.length&&F.UK("offnpf",{prlen:z,lflen:k.length})}else for(D=g.l(F.playerResponse.streamingData.adaptiveFormats),C=D.next(),
e={};!C.done;e={Lb:void 0},C=D.next())if(e.Lb=C.value,F.V("html5_fix_multi_audio_offline_playback"))for(C=g.l(k),p=C.next();!p.done;p=C.next())p=p.value,p.itag===e.Lb.itag&&p.xtags===e.Lb.xtags&&(e.Lb=Object.assign({},e.Lb),e.Lb.url=k.find(function(E){return function(X){return X.itag===E.Lb.itag}}(e)).url,e.Lb.signatureCipher="",x.push(e.Lb));
else z.includes(e.Lb.itag)&&(e.Lb=Object.assign({},e.Lb),e.Lb.url=k.find(function(E){return function(X){return X.itag===E.Lb.itag}}(e)).url,e.Lb.signatureCipher="",x.push(e.Lb));
x.length<2&&F.UK("offmlf",{len:x.length});k=ZG6(F,x);ix(F)&&$j6(k,!1);Xq(F,k);F.UK("dlr",{})}else F.UK("offsdm",{cotn:F.NU?F.NU.cotn:"0",cpn:F.clientPlaybackNonce})};
V7n=function(F){var k;return!((k=F.i$.getWebPlayerContextConfig())==null||!k.enableProximaLowLatency)};
q8=function(F){if(!F.isProximaLatencyEligible)return 0;var k=nN();return V7n(F)?2:k===1?1:F.V("html5_enable_proxima")?2:0};
Xq=function(F,k,z){z=z===void 0?!1:z;F.Wi=void 0;F.Y=k;g.b(F,k);k.W8=F.W8;k.zY=F.zY;k.cR=F.cR;k.uL=F.uL;k.We=F.We;F.Q7&&(k.B=new UO(F.Q7));(F.uj()||g.N8(F))&&F.t4.push("webgl");F.Y.isLive||(F.isLivePlayback=!1);var x=k.sourceUrl.split("/");if(F.Vz?x.indexOf("manifest_duration")!==-1:x.indexOf("manifest_duration")!=-1)F.Sh=Number(x[x.indexOf("manifest_duration")+1]);if(k.L||k.isManifestless)k.subscribe("clienttemp",F.UK,F),z?k.subscribe("refresh",F.WE,F):k.subscribe("cuepointsadded",F.yk,F);hX(k)?
F.hS=!0:WU=void 0;F.yh&&(k.j=F.yh,k.isLive=!0,F.isLivePlayback=!0);k.isPremiere=F.isPremiere;k.isLiveHeadPlayable=F.isLiveHeadPlayable};
I$C=function(F,k){var z=k||v86(F)||F.isExternallyHostedPodcast;if(!F.Y||z)return F.UK("skipDash",{dm:!!F.Y,air:k,dd:F.OW,mss:xH(),"3pp":F.isExternallyHostedPodcast}),VL();ix(F)&&$j6(F.Y,F.isLivePlayback);return IS().then(function(){return fVa(F.nt,g.jk(F),F.i$.W,F.Y,F.W,function(x){return F.publish("ctmp","fmtflt",x)},F.Bq,$J(F)&&F.V("html5_enable_server_format_filter")).then(function(x){F.p6(x);
F.nt.Y=null;/^av/.test(F.clientPlaybackNonce)&&F.Nk&&F.UK("av1",F.Nk.Y)})})};
a$9=function(F,k){if(k&&F.hlsvp)return VL();if(F.hlsFormats){k=ux(F.hlsFormats);var z;if(((z=F.Nk)==null?0:z.L)&&k){z=[];for(var x=g.l(k),D=x.next();!D.done;D=x.next())z.push(D.value.itag);F.UK("hlsfmt",{itags:z.join(".")})}F.Xz=NAY(F.i$,k);F.Xz&&HGk(F,F.Xz);z=F.clientPlaybackNonce;var e,C,p,E;return lkY(F.i$,F.isAd(),k,(E=(e=F.playerResponse)==null?void 0:(C=e.captions)==null?void 0:(p=C.playerCaptionsRenderer)==null?void 0:p.baseUrl)!=null?E:null,F.yf,z,function(X){return F.publish("ctmp","hlsflt",
X)}).then(function(X){for(var q=0,N=[],u=g.l(X),w=u.next();!w.done;w=u.next()){w=w.value;
var m=void 0;N.push((m=w.getInfo())==null?void 0:m.itag);var h=m=void 0;((m=w.getInfo())==null?void 0:(h=m.audio)==null?void 0:h.numChannels)>q&&(q=w.getInfo().audio.numChannels)}q>2&&F.UK("hlschl",{mn:q});var B;((B=F.Nk)==null?0:B.L)&&F.UK("hlsfmtaf",{itags:N.join(".")});var U;if(F.V("html5_enable_vp9_fairplay")&&((U=F.W)==null?0:gi(U)))for(F.UK("drm",{sbdlfbk:1}),q=g.l(F.sE),N=q.next();!N.done;N=q.next())if(N=N.value,R3(N)){F.W=N;break}wy(F,X)})}return VL()};
SjH=function(F){if(F.isExternallyHostedPodcast&&F.Z7){var k=ux(F.Z7);if(!k[0])return VL();F.Z1=k[0];return sop(F.i$,k[0]).then(function(z){wy(F,z)})}return F.VH&&F.y0?hU9(F.i$,F.isAd(),F.VH).then(function(z){wy(F,z)}):VL()};
dZM=function(F){if(F.isExternallyHostedPodcast)return VL();var k=ux(F.Z7,F.hO);if(F.hlsvp){var z=A8H(F.hlsvp,F.clientPlaybackNonce,F.yf);k.push(z)}return Qoa(F.i$,F.isAd(),k,bG5(F)).then(function(x){wy(F,x)})};
wy=function(F,k){F.P7=k;F.p6(new wV(g.tW(F.P7,function(z){return z.getInfo()})))};
bG5=function(F){var k={cpn:F.clientPlaybackNonce,c:F.i$.Y.c,cver:F.i$.Y.cver};F.dK&&(k.ptk=F.dK,k.oid=F.IB,k.ptchn=F.V0,k.pltype=F.G_,F.Iq&&(k.m=F.Iq));return k};
g.me=function(F){return C9(F)&&F.kG?(F={},F.fairplay="https://web.archive.org/web/20250411103644/https://youtube.com/api/drm/fps?ek=uninitialized",F):F.L&&F.L.J5||null};
J8R=function(F){var k=TC(F);return k&&k.text?g.rt(k.text):F.paidContentOverlayText};
y8C=function(F){var k=TC(F);return k&&k.durationMs?Ag(k.durationMs):F.paidContentOverlayDurationMs};
TC=function(F){var k,z,x;return F.playerResponse&&F.playerResponse.paidContentOverlay&&F.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.J((k=F.J4)==null?void 0:(z=k.playerOverlays)==null?void 0:(x=z.playerOverlayRenderer)==null?void 0:x.playerDisclosure,REn)||null};
lx=function(F){var k="";if(F.A2)return F.A2;F.isLivePlayback&&(k=F.allowLiveDvr?"dvr":F.isPremiere?"lp":F.yh?"window":"live");F.A5&&(k="post");return k};
g.QT=function(F,k){return typeof F.keywords[k]!=="string"?null:F.keywords[k]};
g8H=function(F){return!!F.sF||!!F.Ss||!!F.pj||!!F.Cj||F.u6||F.G.focEnabled||F.G.rmktEnabled};
g.sh=function(F){return!!(F.fJ||F.Z7||F.VH||F.hlsvp||F.Vw())};
gg=function(F){if(F.V("html5_onesie")&&F.errorCode)return!1;var k=g.fC(F.t4,"ypc");F.ypcPreview&&(k=!1);return F.ut()&&!F.loading&&(g.sh(F)||g.fC(F.t4,"heartbeat")||k)};
ux=function(F,k){F=$T(F);var z={};if(k){k=g.l(k.split(","));for(var x=k.next();!x.done;x=k.next())(x=x.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(z[x[1]]={width:x[2],height:x[3]})}k=g.l(F);for(x=k.next();!x.done;x=k.next()){x=x.value;var D=z[x.itag];D&&(x.width=D.width,x.height=D.height)}return F};
ry=function(F){var k=F.getAvailableAudioTracks();k=k.concat(F.fb);for(var z=0;z<F.Hh.length;z++)for(var x=F.Hh[z],D=0;D<k.length;D++){var e=k[D],C=e.ZD.id===x.audioTrackId;if(e.ZD.isDefault&&z===F.Fx||C){if(x.captionTrackIndices)for(C=0;C<x.captionTrackIndices.length;C++)e.captionTracks[C]=F.captionTracks[x.captionTrackIndices[C]];x.defaultCaptionTrackIndex!==void 0&&(e.U=F.captionTracks[x.defaultCaptionTrackIndex]);x.forcedCaptionTrackIndex!==void 0&&(e.Y=F.captionTracks[x.forcedCaptionTrackIndex]);
e.L=x.visibility||"UNKNOWN";e.captionsInitialState=x.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}};
l$H=function(F,k){F.showShareButton=!!k;var z,x,D=((z=g.J(k,g.yS))==null?void 0:z.navigationEndpoint)||((x=g.J(k,g.yS))==null?void 0:x.command);D&&(F.BC=!!g.J(D,Yj6))};
pQR=function(F,k){var z=k.raw_embedded_player_response;if(!z){var x=k.embedded_player_response;x&&(z=JSON.parse(x))}z&&(F.Hl=z);if(F.Hl){F.embeddedPlayerConfig=F.Hl.embeddedPlayerConfig||null;if(z=F.Hl.videoFlags)z.playableInEmbed&&(F.allowEmbed=!0),z.isPrivate&&(F.isPrivate=!0),z.userDisplayName&&(k.user_display_name=z.userDisplayName),z.userDisplayImage&&(k.user_display_image=z.userDisplayImage);if(z=F.Hl.embedPreview){z=z.thumbnailPreviewRenderer;yjR(F,z.controlBgHtml);if(x=z.defaultThumbnail)F.K=
mY(x);F.V("embeds_web_enable_search_button")&&z.searchButton&&(x=g.J(z.searchButton,g.yS))&&(F.Ax=g.J(x.navigationEndpoint,g.BP));(x=g.J(z==null?void 0:z.videoDetails,n8Y))&&r8k(F,k,x);x=g.J(z==null?void 0:z.videoDetails,M7k);F.xY=!!z.addToWatchLaterButton;l$H(F,z.shareButton);if(x==null?0:x.musicVideoType)F.musicVideoType=x.musicVideoType;var D,e,C,p,E;if(x=g.J((D=F.getEmbeddedPlayerResponse())==null?void 0:(e=D.embedPreview)==null?void 0:(C=e.thumbnailPreviewRenderer)==null?void 0:(p=C.playButton)==
null?void 0:(E=p.buttonRenderer)==null?void 0:E.navigationEndpoint,g.W3))ULY(F,x),F.videoId=x.videoId||F.videoId;z.videoDurationSeconds&&(F.lengthSeconds=Ag(z.videoDurationSeconds));z.webPlayerActionsPorting&&JjY(F,z.webPlayerActionsPorting);if(D=g.J(z==null?void 0:z.playlist,LEI)){F.Hx=!0;e=[];C=Number(D.currentIndex);if(D.contents)for(p=0,E=D.contents.length;p<E;p++)if(z=D.contents[p].playlistPanelVideoRenderer){x=z.shortBylineText?g.rt(z.shortBylineText):"";var X=z.title?g.rt(z.title):"";e.push({author:x,
encrypted_id:z.videoId,title:X,channel_path:p===C?k.channel_path:"",profile_picture:p===C?k.profile_picture:"",is_private:p===C?F.isPrivate:!0,is_dni:p===C?F.Mk:!1,dni_color:p===C?F.bC:""})}k={index:D.currentIndex,list:D.playlistId,playlist_length:D.totalVideos,video:e};D.titleText&&(k.title=g.rt(D.titleText));D.shortBylineText&&(k.author=g.rt(D.shortBylineText));F.w1=k}var q,N,u;if(k=g.J((q=F.getEmbeddedPlayerResponse())==null?void 0:(N=q.embedPreview)==null?void 0:(u=N.thumbnailPreviewRenderer)==
null?void 0:u.infoPanel,hEn)){F.Xo=Number(k==null?void 0:k.durationMs)||NaN;if(k==null?0:k.infoPanelOverviewViewModel)F.Om=k==null?void 0:k.infoPanelOverviewViewModel;if(k==null?0:k.infoPanelDetailsViewModel)F.TR=k==null?void 0:k.infoPanelDetailsViewModel}}if(F.Hl.previewPlayabilityStatus){if(F.SF=F.Hl.previewPlayabilityStatus,q=F.SF,!["OK","LIVE_STREAM_OFFLINE"].includes(q.status)){F.errorCode=BAH(q.errorCode);N=q.errorScreen;if(u=N==null?void 0:N.playerErrorMessageRenderer){F.QM=u;if(k=u.reason)F.errorReason=
g.rt(k);if(u=u.subreason)F.QX=g.rt(u)}else F.errorReason=q.reason||null;switch(q.status){case "LOGIN_REQUIRED":F.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":F.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var w;(N==null?0:(w=N.playerKavRenderer)==null?0:w.kavUrl)?F.errorDetail="4":F.errorDetail="3";break;default:F.errorDetail=q.isBlockedInRestrictedMode?"5":"0"}}}else F.Hl.playabilityStatus&&(F.Bx=F.Hl.playabilityStatus,f$I(F)&&(F.errorDetail="0",F.Bx&&((w=F.Bx.embeddedPlayerErrorMessageRenderer)?
F.QM=g.J(w,KEx):F.errorReason=F.Bx.reason||null)));(w=F.Hl.attestation)&&Hpn(F,w);(w=F.Hl.permissions)&&w.allowImaMonetization&&(F.allowImaMonetization=!0)}};
r8k=function(F,k,z){var x=z.channelThumbnail;x&&(x=x.thumbnails)&&(x=x[0])&&(k.profile_picture=x.url);var D;if(x=g.J((D=g.J(z==null?void 0:z.channelThumbnailEndpoint,WE9))==null?void 0:D.urlEndpoint,g.gt))k.channel_path=x.url;if(D=z.collapsedRenderer)if(D=g.J(D,Fpx)){if(x=D.title)k.title=g.rt(x);if(D=D.subtitle)k.subtitle=g.rt(D)}if(z=z.expandedRenderer)if(z=g.J(z,kWM)){if(D=z.title)k.expanded_title=g.rt(D);if(D=z.subtitle)k.expanded_subtitle=g.rt(D);if(z=z.subscribeButton)F.subscribeButtonRenderer=
g.J(z,g.GC),F.subscribeButtonRenderer&&(k.ucid=F.subscribeButtonRenderer.channelId,k.subscribed=F.subscribeButtonRenderer.subscribed,F.nF=!!F.subscribeButtonRenderer.notificationPreferenceToggleButton,F.subscribeButtonRenderer.notificationPreferenceToggleButton&&F.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(k=F.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,k.isToggled?(F.ZM=k.toggledServiceEndpoint||null,F.Mr=k.defaultServiceEndpoint||
null):(F.ZM=k.defaultServiceEndpoint||null,F.Mr=k.toggledServiceEndpoint||null)))}};
g.Uh=function(F){return Ab(F)&&!F.allowLiveDvr};
tb=function(F){return Ab(F)&&F.allowLiveDvr};
Ab=function(F){return F.V("html5_live_head_playable")&&p9(F)&&F.i$.Qh==="yt"?F.isLiveHeadPlayable:F.isLivePlayback};
HGk=function(F,k){k.sort(function(z,x){return z.toString().localeCompare(x.toString(),F.i$.hostLanguage)})};
g.Zx=function(F){return!!F.Y&&SH9(F.Y)};
g.vP=function(F){return!!F.Y&&bmx(F.Y)};
g.cP=function(F){return!!F.Y&&diH(F.Y)};
g.N8=function(F){return!!F.Y&&JtR(F.Y)};
g.oXx=function(F){if(F.Nr)return null;var k=F.bP;k||(k=F.playerResponse&&F.playerResponse.endscreen&&F.playerResponse.endscreen.endscreenUrlRenderer&&F.playerResponse.endscreen.endscreenUrlRenderer.url);return k||null};
g.zjM=function(F){return F.Nr?null:F.playerResponse&&F.playerResponse.endscreen&&F.playerResponse.endscreen.endscreenRenderer||null};
g.PP=function(F){return F.V("enable_wn_infocards")};
g.Oh=function(F){var k,z,x,D;return(g.PP(F)?(k=F.J4)==null?void 0:(z=k.cards)==null?void 0:z.cardCollectionRenderer:(x=F.playerResponse)==null?void 0:(D=x.cards)==null?void 0:D.cardCollectionRenderer)||null};
g.VT=function(F){if(!F.playerResponse||!F.playerResponse.annotations)return null;F=g.l(F.playerResponse.annotations);for(var k=F.next();!k.done;k=F.next())if(k=k.value,k.playerAnnotationsExpandedRenderer&&k.playerAnnotationsExpandedRenderer.featuredChannel)return k.playerAnnotationsExpandedRenderer;return null};
Ik=function(F){return F.adFormat&&(F.Vz?F.adFormat!=="1_5":F.adFormat!="1_5")?"adunit":F.eventLabel||F.i$.Xf};
g.HP=function(F){return Ik(F)==="shortspage"};
xJ=function(F){return F.wI()&&F.C().supportsGaplessShorts()};
ak=function(F){if(F.isAd()&&(F.Vz?F.videoId!==F.i$.RS:F.videoId!=F.i$.RS))return F.i$.RS};
Sk=function(F){return F.k9||Ik(F)==="detailpage"||Ik(F)==="shortspage"||F.mutedAutoplay};
bx=function(F){var k=(k=F.V("enable_cleanup_masthead_autoplay_hack_fix"))&&Ik(F)==="adunit"?F.Mm:Sk(F)?Ik(F)==="detailpage"||Ik(F)==="shortspage"?F.isAutonav||F.vj>0:k||F.adFormat!=="17_8"||F.isAutonav||g.WJ(F.i$)||F.Mm?F.zM?!1:F.i$.D7||F.i$.Tr||!g.tJ(F.i$)?!k&&Ik(F)==="adunit"&&F.sF?!1:!0:!1:!1:(F.zM?0:F.Av)&&g.tJ(F.i$)?!0:!1;F.V("html5_log_detailpage_autoplay")&&Ik(F)==="detailpage"&&F.UK("autoplay_info",{autoplay:F.k9,autonav:F.isAutonav,wasDompaused:F.zM,result:k});return k};
g.dy=function(F){return F.oauthToken||F.i$.BM};
i$n=function(F){if(F.V("html5_stateful_audio_normalization")){var k=1,z=g.lw(F.i$.experiments,"html5_default_ad_gain");z&&F.isAd()&&(k=z);var x;if(z=((x=F.j)==null?void 0:x.audio.L)||F.wD){x=(0,g.VE)();F.tS=2;var D=x-F.i$.mA<=F.maxStatefulTimeThresholdSec*1E3;F.applyStatefulNormalization&&D?F.tS=4:D||(F.i$.ET=Infinity,F.i$.mA=NaN);D=(F.tS===4?g.l3(F.i$.ET,F.minimumLoudnessTargetLkfs,F.loudnessTargetLkfs):F.loudnessTargetLkfs)-z;if(F.tS!==4){var e,C,p,E,X=((e=F.playerResponse)==null?void 0:(C=e.playerConfig)==
null?void 0:(p=C.audioConfig)==null?void 0:(E=p.loudnessNormalizationConfig)==null?void 0:E.statelessLoudnessAdjustmentGain)||0;D+=X}D=Math.min(D,0);F.preserveStatefulLoudnessTarget&&(F.i$.ET=z+D,F.i$.mA=x);F=Math.min(1,Math.pow(10,D/20))||k}else F=xxR(F)}else F=xxR(F);return F};
xxR=function(F){var k=1,z=g.lw(F.i$.experiments,"html5_default_ad_gain");z&&F.isAd()&&(k=z);var x;if(z=((x=F.j)==null?void 0:x.audio.U)||F.YZ)F.tS=1;return Math.min(1,Math.pow(10,-z/20))||k};
ix=function(F){var k=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],z=FA(F.i$)==="TVHTML5_SIMPLY"&&F.i$.Y.ctheme==="MUSIC";F.D7||!g.g8(F.i$)&&!z||!k.includes(F.musicVideoType)&&!F.isExternallyHostedPodcast||(F.D7=!0);if(k=g.Lg())k=/Starboard\/([0-9]+)/.exec(g.ZH()),k=(k?parseInt(k[1],10):NaN)<10;z=F.i$;z=(FA(z)==="TVHTML5_CAST"||FA(z)==="TVHTML5"&&(z.Y.cver.startsWith("6.20130725")||z.Y.cver.startsWith("6.20130726")))&&F.i$.Y.ctheme==="MUSIC";var x;if(x=!F.D7)z||(z=F.i$,z=FA(z)===
"TVHTML5"&&z.Y.cver.startsWith("7")),x=z;x&&!k&&(k=F.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",z=(F.V("cast_prefer_audio_only_for_atv_and_uploads")||F.V("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&F.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",k||z||F.isExternallyHostedPodcast)&&(F.D7=!0);return F.i$.deviceIsAudioOnly||F.D7&&F.i$.G};
Jb=function(F){var k,z,x;return((k=F.playerResponse)==null?void 0:(z=k.playerConfig)==null?void 0:(x=z.compositeVideoConfig)==null?void 0:x.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"};
g.Dxn=function(F){return F.V("html5_enable_sabr_live_captions")&&F.oS()&&$J(F)||Jb(F)};
yT=function(F){var k,z,x;return!!((k=F.playerResponse)==null?0:(z=k.playerConfig)==null?0:(x=z.mediaCommonConfig)==null?0:x.splitScreenEligible)};
Rk=function(F){var k;return!((k=F.playerResponse)==null||!k.compositePlayabilityStatus)};
$xx=function(F){return isNaN(F)?0:Math.max((Date.now()-F)/1E3-30,0)};
gy=function(F){return!(!F.w8||!F.i$.G)&&F.Vw()};
YJ=function(F){return F.Vb&&F.enableServerStitchedDai};
jTn=function(F){return F.je&&!F.Q7};
$J=function(F){var k=F.V("html5_enable_sabr_on_drive")&&F.i$.Qh==="gd";if(F.Bu)return F.je&&F.UK("fds",{fds:!0},!0),!1;if(F.i$.Qh!=="yt"&&!k)return F.je&&F.UK("dsvn",{ns:F.i$.Qh},!0),!1;if(F.cotn||!F.Y||F.Y.isOtf||F.S_&&!F.V("html5_enable_sabr_csdai"))return!1;if(F.V("html5_use_sabr_requests_for_debugging"))return!0;F.je&&F.UK("esfw",{usbc:F.je,hsu:!!F.Q7},!0);if(F.je&&F.Q7)return!0;if(F.V("html5_remove_client_sabr_determination"))return!1;var z=!F.Y.oS&&!F.sz();k=z&&kH&&F.V("html5_enable_sabr_vod_streaming_xhr");
z=z&&!kH&&F.V("html5_enable_sabr_vod_non_streaming_xhr");var x=n9(F),D=F.V("html5_enable_sabr_drm_vod_streaming_xhr")&&kH&&F.sz()&&!F.Y.oS&&(F.X1==="1"?!1:!0);(k=k||z||x||D)&&!F.Q7&&F.UK("sabr",{loc:"m"},!0);return k&&!!F.Q7};
n9=function(F){var k;if(!(k=kH&&F.oS()&&F.sz()&&(F.X1==="1"?!1:!0)&&F.V("html5_sabr_live_drm_streaming_xhr"))){k=F.oS()&&!F.sz()&&kH;var z=F.oS()&&F.latencyClass!=="ULTRALOW"&&!F.isLowLatencyLiveStream&&F.V("html5_sabr_live_normal_latency_streaming_xhr"),x=F.isLowLatencyLiveStream&&F.V("html5_sabr_live_low_latency_streaming_xhr"),D=F.latencyClass==="ULTRALOW"&&F.V("html5_sabr_live_ultra_low_latency_streaming_xhr");k=k&&(z||x||D)}z=k;k=F.enableServerStitchedDai&&z&&F.V("html5_enable_sabr_ssdai_streaming_xhr");
z=!F.enableServerStitchedDai&&z;x=F.oS()&&!kH&&F.V("html5_enable_sabr_live_non_streaming_xhr");F=kH&&(F.w3()||yT(F)&&F.V("html5_enable_sabr_for_lifa_eligible_streams"));return k||z||x||F};
g.Mk=function(F){return F.MN&&$J(F)};
c8n=function(F){var k;if(k=!!F.cotn)k=F.videoId,k=!!k&&g.ZL(k)===1;return k&&!F.w8};
g.M8=function(F){if(!F.Y||!F.L||!F.j)return!1;var k=F.Y.Y,z=!!k[F.L.id]&&PO(k[F.L.id].ez.Y);k=!!k[F.j.id]&&PO(k[F.j.id].ez.Y);return(F.L.itag==="0"||z)&&k};
L9=function(F){return F.SF?["OK","LIVE_STREAM_OFFLINE"].includes(F.SF.status):!0};
f$I=function(F){return(F=F.Bx)&&F.showError?F.showError:!1};
kp=function(F,k){return F.V(k)?!0:(F.fflags||"").includes(k+"=true")};
ejC=function(F){return F.V("html5_heartbeat_iff_heartbeat_params_filled")};
wQI=function(F,k){k.inlineMetricEnabled&&(F.inlineMetricEnabled=!0);k.playback_progress_0s_url&&(F.Cj=new Y9n(k));if(k=k.video_masthead_ad_quartile_urls)F.Ss=k.quartile_0_url,F.wb=k.quartile_25_url,F.Bp=k.quartile_50_url,F.KG=k.quartile_75_url,F.N1=k.quartile_100_url,F.pj=k.quartile_0_urls,F.zs=k.quartile_25_urls,F.lq=k.quartile_50_urls,F.nf=k.quartile_75_urls,F.gB=k.quartile_100_urls};
u4p=function(F){var k={};F=g.l(F);for(var z=F.next();!z.done;z=F.next()){z=z.value;var x=z.split("=");x.length===2?k[x[0]]=x[1]:k[z]=!0}return k};
XQD=function(F){if(F){if(iJ5(F))return F;F=DhD(F);if(iJ5(F,!0))return F}return""};
g.Cqx=function(F){return F.captionsLanguagePreference||F.i$.captionsLanguagePreference||g.QT(F,"yt:cc_default_lang")||F.i$.mY};
zL=function(F){return!(!F.isLivePlayback||!F.hasProgressBarBoundaries())};
g.Fq=function(F){var k;return F.eI||((k=F.suggestions)==null?void 0:k[0])||null};
g.xp=function(F){return F.Mk&&(F.V("embeds_enable_pfp_always_unbranded")||F.i$.N9)};
iA=function(F,k){F.V("html5_log_autoplay_src")&&xJ(F)&&F.UK("apsrc",{src:k})};
g.D9=function(F){var k,z;return!!((k=F.embeddedPlayerConfig)==null?0:(z=k.embeddedPlayerFlags)==null?0:z.enableMusicUx)};
$p=function(F){return F.i$.j&&F.isPrivate};
g.ex=function(F){var k=F.C(),z=g.jx(k),x=k.NJ;(k.V("embeds_web_enable_iframe_api_send_full_embed_url")||k.V("embeds_web_enable_rcat_validation_in_havs")||k.V("embeds_enable_autoplay_and_visibility_signals"))&&g.Vq(k)&&(x&&(z.thirdParty=Object.assign({},z.thirdParty,{embedUrl:x})),SBY(z,F));if(x=F.Xf)z.clickTracking={clickTrackingParams:x};x=z.client||{};var D="EMBED",e=Ik(F);e==="leanback"?D="WATCH":k.V("gvi_channel_client_screen")&&e==="profilepage"?D="CHANNEL":F.vR?D="LIVE_MONITOR":e==="detailpage"?
D="WATCH_FULL_SCREEN":e==="adunit"?D="ADUNIT":e==="sponsorshipsoffer"&&(D="UNKNOWN");x.clientScreen=D;if(k=F.kidsAppInfo)x.kidsAppInfo=JSON.parse(k);(D=F.Fp)&&!k&&(x.kidsAppInfo={contentSettings:{ageUpMode:Aka[D]}});if(k=F.GI)x.unpluggedAppInfo={enableFilterMode:!0};(D=F.unpluggedFilterModeType)&&!k&&(x.unpluggedAppInfo={filterModeType:pFn[D]});if(k=F.Qh)x.unpluggedLocationInfo=k;z.client=x;x=z.request||{};F.ZR&&(x.isPrefetch=!0);if(k=F.mdxEnvironment)x.mdxEnvironment=k;if(k=F.mdxControlMode)x.mdxControlMode=
EXx[k];z.request=x;x=z.user||{};if(k=F.PR)x.credentialTransferTokens=[{token:k,scope:"VIDEO"}];if(k=F.mY)x.delegatePurchases={oauthToken:k},x.kidsParent={oauthToken:k};z.user=x;if(x=F.contextParams)z.activePlayers=[{playerContextParams:x}];if(F=F.clientScreenNonce)z.clientScreenNonce=F;return z};
g.jx=function(F){var k=g.i0(),z=k.client||{};if(F.forcedExperiments){var x=F.forcedExperiments.split(","),D=[];x=g.l(x);for(var e=x.next();!e.done;e=x.next())D.push(Number(e.value));z.experimentIds=D}if(D=F.homeGroupInfo)z.homeGroupInfo=JSON.parse(D);if(D=F.getPlayerType())z.playerType=D;if(D=F.Y.ctheme)z.theme=D;if(D=F.livingRoomAppMode)z.tvAppInfo=Object.assign({},z.tvAppInfo,{livingRoomAppMode:D});D=F.deviceYear;F.V("html5_propagate_device_year")&&D&&(z.tvAppInfo=Object.assign({},z.tvAppInfo,{deviceYear:D}));
if(D=F.livingRoomPoTokenId)z.tvAppInfo=Object.assign({},z.tvAppInfo,{livingRoomPoTokenId:D});k.client=z;z=k.user||{};F.enableSafetyMode&&(z=Object.assign({},z,{enableSafetyMode:!0}));F.pageId&&(z=Object.assign({},z,{onBehalfOfUser:F.pageId}));k.user=z;z=F.NJ;F.V("embeds_web_enable_iframe_api_send_full_embed_url")||F.V("embeds_web_enable_rcat_validation_in_havs")||F.V("embeds_enable_autoplay_and_visibility_signals")||!z||(k.thirdParty={embedUrl:z});return k};
mxR=function(F,k,z){var x=F.videoId,D=g.ex(F),e=F.C(),C={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Vj()),referer:document.location.toString(),signatureTimestamp:20181};g.nu();F.isAutonav&&(C.autonav=!0);g.M5(0,141)&&(C.autonavState=g.M5(0,140)?"STATE_OFF":"STATE_ON");C.autoCaptionsDefaultOn=g.M5(0,66);bx(F)&&(C.autoplay=!0);e.G&&F.cycToken&&(C.cycToken=F.cycToken);e.enablePrivacyFilter&&(C.enablePrivacyFilter=!0);F.isFling&&(C.fling=!0);var p=F.forceAdsUrl;if(p){var E={},X=[];p=p.split(",");
p=g.l(p);for(var q=p.next();!q.done;q=p.next()){q=q.value;var N=q.split("|");N.length!==3||q.includes("=")||(N[0]="breaktype="+N[0],N[1]="offset="+N[1],N[2]="url="+N[2]);q={adtype:"video_ad"};N=g.l(N);for(var u=N.next();!u.done;u=N.next()){var w=g.l(u.value.split("="));u=w.next().value;w=ik6(w);q[u]=w.join("=")}N=q.url;u=q.presetad;w=q.viralresponseurl;var m=Number(q.campaignid);if(q.adtype==="in_display_ad")N&&(E.url=N),u&&(E.presetAd=u),w&&(E.viralAdResponseUrl=w),m&&(E.viralCampaignId=String(m));
else if(q.adtype==="video_ad"){var h={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(q.offset)||0)}};if(q=XFk[q.breaktype])h.breakType=q;N&&(h.url=N);u&&(h.presetAd=u);w&&(h.viralAdResponseUrl=w);m&&(h.viralCampaignId=String(m));X.push(h)}}C.forceAdParameters={videoAds:X,inDisplayAd:E}}F.isInlinePlaybackNoAd&&(C.isInlinePlaybackNoAd=!0);F.isLivingRoomDeeplink&&(C.isLivingRoomDeeplink=!0);E=F.Hq;if(E!=null){E={startWalltime:String(E)};if(X=F.Sh)E.manifestDuration=String(X||14400);C.liveContext=
E}if(F.mutedAutoplay){C.mutedAutoplay=!0;E=e.getWebPlayerContextConfig();var B,U;(E==null?0:(B=E.embedsHostFlags)==null?0:B.allowMutedAutoplayDurationMode)&&(E==null?0:(U=E.embedsHostFlags)==null?0:U.allowMutedAutoplayDurationMode.includes(qlx[F.mutedAutoplayDurationMode]))&&(C.mutedAutoplayDurationMode=qlx[F.mutedAutoplayDurationMode])}if(F.zM?0:F.Av)C.splay=!0;B=F.vnd;B===5&&(C.vnd=B);B={};if(U=F.isMdxPlayback)B.triggeredByMdx=U;if(U=F.Ym)B.skippableAdsSupported=U.split(",").includes("ska");if(X=
F.rI){U=F.VJ;E=[];X=g.l(bsk(X));for(p=X.next();!p.done;p=X.next()){p=p.value;q=p.platform;p={applicationState:p.Vg?"INACTIVE":"ACTIVE",clientFormFactor:N2n[q]||"UNKNOWN_FORM_FACTOR",clientName:JeM[p.fq]||"UNKNOWN_INTERFACE",clientVersion:p.deviceVersion||"",platform:u_k[q]||"UNKNOWN_PLATFORM"};q={};if(U){N=void 0;try{N=JSON.parse(U)}catch(v){g.yI(v)}N&&(q={params:[{key:"ms",value:N.ms}]},N.advertising_id&&(q.advertisingId=N.advertising_id),N.limit_ad_tracking!==void 0&&N.limit_ad_tracking!==null&&
(q.limitAdTracking=N.limit_ad_tracking),p.osName=N.os_name,p.userAgent=N.user_agent,p.windowHeightPoints=N.window_height_points,p.windowWidthPoints=N.window_width_points)}E.push({adSignalsInfo:q,remoteClient:p})}B.remoteContexts=E}U=F.sourceContainerPlaylistId;E=F.serializedMdxMetadata;if(U||E)X={},U&&(X.mdxPlaybackContainerInfo={sourceContainerPlaylistId:U}),E&&(X.serializedMdxMetadata=E),B.mdxPlaybackSourceContext=X;C.mdxContext=B;B=k.width;B>0&&(C.playerWidthPixels=Math.round(B));if(k=k.height)C.playerHeightPixels=
Math.round(k);z!==0&&(C.vis=z);if(z=e.widgetReferrer)C.widgetReferrer=z.substring(0,128);g.tJ(e)&&C&&(C.ancestorOrigins=e.ancestorOrigins);F.defaultActiveSourceVideoId&&(C.compositeVideoContext={defaultActiveSourceVideoId:F.defaultActiveSourceVideoId});if(e=e.getWebPlayerContextConfig())C.encryptedHostFlags=e.encryptedHostFlags;x={videoId:x,context:D,playbackContext:{contentPlaybackContext:C}};F.reloadPlaybackParams&&(x.playbackContext.reloadPlaybackContext={reloadPlaybackParams:F.reloadPlaybackParams});
F.contentCheckOk&&(x.contentCheckOk=!0);if(D=F.clientPlaybackNonce)x.cpn=D;if(D=F.playerParams)x.params=D;if(D=F.playlistId)x.playlistId=D;F.racyCheckOk&&(x.racyCheckOk=!0);D=F.C();if(C=D.embedConfig)x.serializedThirdPartyEmbedConfig=C;x.captionParams={};C=g.M5(g.nu(),65);F.deviceCaptionsOn!=null?x.captionParams.deviceCaptionsOn=F.deviceCaptionsOn:g.f_(D)&&(x.captionParams.deviceCaptionsOn=C!=null?!C:!1);F.HV&&(x.captionParams.deviceCaptionsLangPref=F.HV);F.Kf.length?x.captionParams.viewerSelectedCaptionLangs=
F.Kf:g.f_(D)&&(C=g.fN(),C==null?0:C.length)&&(x.captionParams.viewerSelectedCaptionLangs=C);C=F.fetchType==="onesie"&&F.V("html5_onesie_attach_po_token");e=F.fetchType!=="onesie"&&F.V("html5_non_onesie_attach_po_token");if(C||e)C=F.C(),C.Ki&&(x.serviceIntegrityDimensions={},x.serviceIntegrityDimensions.poToken=C.Ki);D.V("fetch_att_independently")&&(x.attestationRequest={omitBotguardData:!0});x.playbackContext||(x.playbackContext={});x.playbackContext.devicePlaybackCapabilities=wF6(F);x.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===
!1&&F.UK("noVp9",{});return x};
wF6=function(F){var k=!(F==null?0:F.Xn())&&(F==null?void 0:F.oS())&&$n(),z;if(z=F==null?0:F.V("html5_report_supports_vp9_encoding")){if(F==null)z=0;else{z=g.jk(F);F=F.C().W;var x=$E("243");z=x?QJ(z,x,F,!0)===!0:!1}z=z&&!k}return{supportsVp9Encoding:!!z,supportXhr:kH}};
lnk=function(F,k){var z,x,D;return g.O(function(e){if(e.Y==1)return z={context:g.jx(F.C()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:F.videoId,cpn:F.clientPlaybackNonce}}]},x=g.jn(T2I),g.c(e,g.od(k,z,x),2);D=e.L;return e.return(D)})};
QTx=function(F,k,z){var x=g.lw(k.experiments,"bg_vm_reinit_threshold");(!Jd||(0,g.VE)()-Jd>x)&&lnk(F,z).then(function(D){D&&(D=D.botguardData)&&g.gM(D,k)},function(D){F.z4()||(D=IN(D),F.UK("attf",D.details))})};
CY=function(F,k){g.S.call(this);this.app=F;this.state=k};
pY=function(F,k,z){F.state.Y.hasOwnProperty(k)||AM(F,k,z);F.state.G[k]=function(){return z.apply(F,g.v6.apply(0,arguments))};
F.state.S.add(k)};
EJ=function(F,k,z){F.state.Y.hasOwnProperty(k)||AM(F,k,z);F.app.C().G&&(F.state.B[k]=function(){return z.apply(F,g.v6.apply(0,arguments))},F.state.S.add(k))};
AM=function(F,k,z){F.state.Y[k]=function(){return z.apply(F,g.v6.apply(0,arguments))}};
g.Xh=function(F,k,z){return F.state.Y[k].apply(F.state.Y,g.r(z))};
qa=function(){g.Ze.call(this);this.W=new Map};
Na=function(){g.S.apply(this,arguments);this.element=null;this.S=new Set;this.G={};this.B={};this.Y={};this.K=new Set;this.U=new qa;this.L=new qa;this.j=new qa;this.W=new qa};
hjk=function(F,k,z){typeof F==="string"&&(F={mediaContentUrl:F,startSeconds:k,suggestedQuality:z});a:{if((k=F.mediaContentUrl)&&(k=/\/([ve]|embed)\/([^#?]+)/.exec(k))&&k[2]){k=k[2];break a}k=null}F.videoId=k;return uA(F)};
uA=function(F,k,z){if(typeof F==="string")return{videoId:F,startSeconds:k,suggestedQuality:z};k={};z=g.l(sTp);for(var x=z.next();!x.done;x=z.next())x=x.value,F[x]&&(k[x]=F[x]);return k};
rkR=function(F,k,z,x){if(g.M9(F)&&!Array.isArray(F)){k="playlist list listType index startSeconds suggestedQuality".split(" ");z={};for(x=0;x<k.length;x++){var D=k[x];F[D]&&(z[D]=F[D])}return z}k={index:k,startSeconds:z,suggestedQuality:x};typeof F==="string"&&F.length===16?k.list="PL"+F:k.playlist=F;return k};
w5=function(){CY.apply(this,arguments)};
GWp=function(F){pY(F,"cueVideoById",F.xz);pY(F,"loadVideoById",F.mDf);pY(F,"cueVideoByUrl",F.Gb);pY(F,"loadVideoByUrl",F.SHJ);pY(F,"playVideo",F.jgf);pY(F,"pauseVideo",F.pauseVideo);pY(F,"stopVideo",F.M5J);pY(F,"clearVideo",F.clearVideo);pY(F,"getVideoBytesLoaded",F.rh);pY(F,"getVideoBytesTotal",F.vB);pY(F,"getVideoLoadedFraction",F.K9);pY(F,"getVideoStartBytes",F.Lph);pY(F,"cuePlaylist",F.cuePlaylist);pY(F,"loadPlaylist",F.iN$);pY(F,"nextVideo",F.pjR);pY(F,"previousVideo",F.WEJ);pY(F,"playVideoAt",
F.a7a);pY(F,"setShuffle",F.setShuffle);pY(F,"setLoop",F.setLoop);pY(F,"getPlaylist",F.sY);pY(F,"getPlaylistIndex",F.getPlaylistIndex);pY(F,"getPlaylistId",F.getPlaylistId);pY(F,"loadModule",F.zt);pY(F,"unloadModule",F.zo);pY(F,"setOption",F.Vo);pY(F,"getOption",F.u8);pY(F,"getOptions",F.ZX);pY(F,"mute",F.Mz4);pY(F,"unMute",F.m4R);pY(F,"isMuted",F.isMuted);pY(F,"setVolume",F.zE4);pY(F,"getVolume",F.getVolume);pY(F,"seekTo",F.PG$);pY(F,"getPlayerMode",F.getPlayerMode);pY(F,"getPlayerState",F.Zi);pY(F,
"getAvailablePlaybackRates",F.getAvailablePlaybackRates);pY(F,"getPlaybackQuality",function(){return F.getPlaybackQuality(1)});
pY(F,"setPlaybackQuality",F.Sz_);pY(F,"getAvailableQualityLevels",F.IE);pY(F,"getCurrentTime",F.qc);pY(F,"getDuration",F.HB);pY(F,"addEventListener",F.fM);pY(F,"removeEventListener",F.Ahh);pY(F,"getDebugText",F.fY);pY(F,"getVideoData",function(){return B2R(F)});
pY(F,"addCueRange",F.qT);pY(F,"removeCueRange",F.removeCueRange);pY(F,"setSize",F.setSize);pY(F,"getApiInterface",F.getApiInterface);pY(F,"destroy",F.destroy);pY(F,"mutedAutoplay",F.mutedAutoplay);var k=F.app.C();k.S||(pY(F,"getVideoEmbedCode",F.getVideoEmbedCode),pY(F,"getVideoUrl",F.QUR));pY(F,"getMediaReferenceTime",F.BB);pY(F,"getSize",F.getSize);pY(F,"setFauxFullscreen",F.EAU);k.V("embeds_enable_move_set_center_crop_to_public")&&pY(F,"setCenterCrop",F.setCenterCrop);k.S||pY(F,"logImaAdEvent",
F.logImaAdEvent);pY(F,"preloadVideoById",F.X5f);pY(F,"wakeUpControls",F.wakeUpControls)};
g.mJ=function(F){return(F=UxR(F.app.iL()))?F.N4():null};
lA=function(F){var k=g.aB(F.app.C()),z,x=(z=F.app.getVideoData())==null?void 0:z.Hx;F=TL(F.app);return g.N5(k)&&!x||F?!1:!0};
B2R=function(F,k){var z={};if(k=F.app.CN(k===void 0?1:k)){k=k.getVideoData();if($p(k))return{};z.video_id=k.videoId;z.author=k.author;z.title=k.title;z.isPlayable=L9(k);z.errorCode=k.errorCode;if(k.L&&k.L.video){z.video_quality=k.L.video.quality;k=k.L.video;var x=[];k.fps>32&&x.push("hfr");k.isHdr()&&x.push("hdr");k.primaries==="bt2020"&&x.push("wcg");z.video_quality_features=x}}if(F=F.getPlaylistId())z.list=F;return z};
QU=function(){w5.apply(this,arguments)};
hM=function(F,k){var z={};if(F.app.C().PR){F=g.l(tcn);for(var x=F.next();!x.done;x=F.next())x=x.value,k.hasOwnProperty(x)&&(z[x]=k[x]);if(k=z.qoe_cat)F="",typeof k==="string"&&k.length>0&&(F=k.split(",").filter(function(D){return Z$n.includes(D)}).join(",")),z.qoe_cat=F;
vXR(z)}else for(F=g.l(ckR),x=F.next();!x.done;x=F.next())x=x.value,k.hasOwnProperty(x)&&(z[x]=k[x]);return z};
vXR=function(F){var k=F.raw_player_response;if(!k){var z=F.player_response;z&&(k=JSON.parse(z))}delete F.player_response;delete F.raw_player_response;if(k){F.raw_player_response={streamingData:k.streamingData,playerConfig:k.playerConfig};var x;if((x=k.playbackTracking)==null?0:x.qoeUrl)F.raw_player_response=Object.assign({},F.raw_player_response,{playbackTracking:{qoeUrl:k.playbackTracking.qoeUrl}});var D;if((D=k.videoDetails)==null?0:D.videoId)F.raw_player_response=Object.assign({},F.raw_player_response,
{videoDetails:{videoId:k.videoDetails.videoId}})}};
sJ=function(F,k,z){var x=F.app.B7(z);if(!x)return 0;F=x-F.app.getCurrentTime(z);return k-F};
O$9=function(F){var k=k===void 0?5:k;return F?Pqx[F]||k:k};
g.r5=function(){QU.apply(this,arguments)};
VcM=function(F){AM(F,"getInternalApiInterface",F.getInternalApiInterface);AM(F,"addEventListener",F.Au);AM(F,"removeEventListener",F.qhp);AM(F,"cueVideoByPlayerVars",F.VQ);AM(F,"loadVideoByPlayerVars",F.Xj$);AM(F,"preloadVideoByPlayerVars",F.TRa);AM(F,"getAdState",F.getAdState);AM(F,"sendAbandonmentPing",F.sendAbandonmentPing);AM(F,"setLoopRange",F.setLoopRange);AM(F,"getLoopRange",F.getLoopRange);AM(F,"setAutonavState",F.setAutonavState);AM(F,"seekTo",F.Q3Q);AM(F,"seekBy",F.LBk);AM(F,"seekToLiveHead",
F.seekToLiveHead);AM(F,"requestSeekToWallTimeSeconds",F.requestSeekToWallTimeSeconds);AM(F,"seekToStreamTime",F.seekToStreamTime);AM(F,"startSeekCsiAction",F.startSeekCsiAction);AM(F,"getStreamTimeOffset",F.getStreamTimeOffset);AM(F,"getVideoData",F.dJk);AM(F,"setInlinePreview",F.setInlinePreview);AM(F,"getAppState",F.getAppState);AM(F,"updateLastActiveTime",F.updateLastActiveTime);AM(F,"setBlackout",F.setBlackout);AM(F,"setUserEngagement",F.setUserEngagement);AM(F,"updateSubtitlesUserSettings",F.updateSubtitlesUserSettings);
AM(F,"getPresentingPlayerType",F.fH);AM(F,"canPlayType",F.canPlayType);AM(F,"updatePlaylist",F.updatePlaylist);AM(F,"updateVideoData",F.updateVideoData);AM(F,"updateEnvironmentData",F.updateEnvironmentData);AM(F,"sendVideoStatsEngageEvent",F.FBk);AM(F,"productsInVideoVisibilityUpdated",F.productsInVideoVisibilityUpdated);AM(F,"setSafetyMode",F.setSafetyMode);AM(F,"isAtLiveHead",function(k){return F.isAtLiveHead(void 0,k)});
AM(F,"getVideoAspectRatio",F.getVideoAspectRatio);AM(F,"getPreferredQuality",F.getPreferredQuality);AM(F,"getPlaybackQualityLabel",F.getPlaybackQualityLabel);AM(F,"setPlaybackQualityRange",F.eEJ);AM(F,"onAdUxClicked",F.onAdUxClicked);AM(F,"getFeedbackProductData",F.getFeedbackProductData);AM(F,"getStoryboardFrame",F.getStoryboardFrame);AM(F,"getStoryboardFrameIndex",F.getStoryboardFrameIndex);AM(F,"getStoryboardLevel",F.getStoryboardLevel);AM(F,"getNumberOfStoryboardLevels",F.getNumberOfStoryboardLevels);
AM(F,"getCaptionWindowContainerId",F.getCaptionWindowContainerId);AM(F,"getAvailableQualityLabels",F.getAvailableQualityLabels);AM(F,"addCueRange",F.addCueRange);AM(F,"addUtcCueRange",F.addUtcCueRange);AM(F,"showAirplayPicker",F.showAirplayPicker);AM(F,"dispatchReduxAction",F.dispatchReduxAction);AM(F,"getPlayerResponse",F.pY);AM(F,"getWatchNextResponse",F.P$U);AM(F,"getHeartbeatResponse",F.Nc);AM(F,"getCurrentTime",F.RE);AM(F,"getDuration",F.x_);AM(F,"getPlayerState",F.getPlayerState);AM(F,"getPlayerStateObject",
F.CY);AM(F,"getVideoLoadedFraction",F.getVideoLoadedFraction);AM(F,"getProgressState",F.getProgressState);AM(F,"getVolume",F.getVolume);AM(F,"setVolume",F.OM);AM(F,"isMuted",F.isMuted);AM(F,"mute",F.Ub);AM(F,"unMute",F.l9);AM(F,"loadModule",F.loadModule);AM(F,"unloadModule",F.unloadModule);AM(F,"getOption",F.BQ);AM(F,"getOptions",F.getOptions);AM(F,"setOption",F.setOption);AM(F,"loadVideoById",F.b3);AM(F,"loadVideoByUrl",F.nL);AM(F,"playVideo",F.NO);AM(F,"loadPlaylist",F.loadPlaylist);AM(F,"nextVideo",
F.nextVideo);AM(F,"previousVideo",F.previousVideo);AM(F,"playVideoAt",F.playVideoAt);AM(F,"getDebugText",F.getDebugText);AM(F,"getWebPlayerContextConfig",F.getWebPlayerContextConfig);AM(F,"notifyShortsAdSwipeEvent",F.notifyShortsAdSwipeEvent);AM(F,"getVideoContentRect",F.getVideoContentRect);AM(F,"setSqueezeback",F.setSqueezeback);AM(F,"toggleSubtitlesOn",F.toggleSubtitlesOn);AM(F,"isSubtitlesOn",F.isSubtitlesOn);AM(F,"reportPlaybackIssue",F.reportPlaybackIssue);AM(F,"setAutonav",F.setAutonav);AM(F,
"isNotServable",F.isNotServable);AM(F,"channelSubscribed",F.channelSubscribed);AM(F,"channelUnsubscribed",F.channelUnsubscribed);AM(F,"togglePictureInPicture",F.togglePictureInPicture);AM(F,"supportsGaplessAudio",F.supportsGaplessAudio);AM(F,"supportsGaplessShorts",F.supportsGaplessShorts);AM(F,"enqueueVideoByPlayerVars",function(k){return void F.enqueueVideoByPlayerVars(k)});
AM(F,"clearQueue",F.clearQueue);AM(F,"getAudioTrack",F.b8);AM(F,"setAudioTrack",F.t5J);AM(F,"getAvailableAudioTracks",F.VG);AM(F,"getMaxPlaybackQuality",F.getMaxPlaybackQuality);AM(F,"getUserPlaybackQualityPreference",F.getUserPlaybackQualityPreference);AM(F,"getSubtitlesUserSettings",F.getSubtitlesUserSettings);AM(F,"resetSubtitlesUserSettings",F.resetSubtitlesUserSettings);AM(F,"setMinimized",F.setMinimized);AM(F,"setOverlayVisibility",F.setOverlayVisibility);AM(F,"confirmYpcRental",F.confirmYpcRental);
AM(F,"queueNextVideo",F.queueNextVideo);AM(F,"handleExternalCall",F.handleExternalCall);AM(F,"logApiCall",F.logApiCall);AM(F,"isExternalMethodAvailable",F.isExternalMethodAvailable);AM(F,"setScreenLayer",F.setScreenLayer);AM(F,"getCurrentPlaylistSequence",F.getCurrentPlaylistSequence);AM(F,"getPlaylistSequenceForTime",F.getPlaylistSequenceForTime);AM(F,"shouldSendVisibilityState",F.shouldSendVisibilityState);AM(F,"syncVolume",F.syncVolume);AM(F,"highlightSettingsMenuItem",F.highlightSettingsMenuItem);
AM(F,"openSettingsMenuItem",F.openSettingsMenuItem);AM(F,"getEmbeddedPlayerResponse",F.getEmbeddedPlayerResponse);AM(F,"getVisibilityState",F.getVisibilityState);AM(F,"isMutedByMutedAutoplay",F.isMutedByMutedAutoplay);AM(F,"isMutedByEmbedsMutedAutoplay",F.isMutedByEmbedsMutedAutoplay);AM(F,"setGlobalCrop",F.setGlobalCrop);AM(F,"setInternalSize",F.setInternalSize);AM(F,"setFauxFullscreen",F.setFauxFullscreen);AM(F,"setAppFullscreen",F.setAppFullscreen)};
GL=function(F,k,z){F=g.Bv(F.aI(),k);return z?(z.addOnDisposeCallback(F),null):F};
g.UJ=function(F,k,z){return F.app.C().YP?k:g.rG("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:k,SHORTCUT:z})};
In5=function(F){F.aI().element.setAttribute("aria-live","polite")};
g.tM=function(F,k){g.r5.call(this,F,k);VcM(this);EJ(this,"addEventListener",this.HX);EJ(this,"removeEventListener",this.f7$);EJ(this,"cueVideoByPlayerVars",this.If);EJ(this,"loadVideoByPlayerVars",this.THQ);EJ(this,"preloadVideoByPlayerVars",this.Shk);EJ(this,"loadVideoById",this.b3);EJ(this,"loadVideoByUrl",this.nL);EJ(this,"playVideo",this.NO);EJ(this,"loadPlaylist",this.loadPlaylist);EJ(this,"nextVideo",this.nextVideo);EJ(this,"previousVideo",this.previousVideo);EJ(this,"playVideoAt",this.playVideoAt);
EJ(this,"getVideoData",this.O4);EJ(this,"seekBy",this.U$k);EJ(this,"seekTo",this.aTG);EJ(this,"showControls",this.showControls);EJ(this,"hideControls",this.hideControls);EJ(this,"cancelPlayback",this.cancelPlayback);EJ(this,"getProgressState",this.getProgressState);EJ(this,"isInline",this.isInline);EJ(this,"setInline",this.setInline);EJ(this,"setLoopVideo",this.setLoopVideo);EJ(this,"getLoopVideo",this.getLoopVideo);EJ(this,"getVideoContentRect",this.getVideoContentRect);EJ(this,"getVideoStats",this.UJJ);
EJ(this,"getCurrentTime",this.Aj);EJ(this,"getDuration",this.x_);EJ(this,"getPlayerState",this.Di);EJ(this,"getVideoLoadedFraction",this.YKh);EJ(this,"mute",this.Ub);EJ(this,"unMute",this.l9);EJ(this,"setVolume",this.OM);EJ(this,"loadModule",this.loadModule);EJ(this,"unloadModule",this.unloadModule);EJ(this,"getOption",this.BQ);EJ(this,"getOptions",this.getOptions);EJ(this,"setOption",this.setOption);EJ(this,"addCueRange",this.addCueRange);EJ(this,"getDebugText",this.getDebugText);EJ(this,"getStoryboardFormat",
this.getStoryboardFormat);EJ(this,"toggleFullscreen",this.toggleFullscreen);EJ(this,"isFullscreen",this.isFullscreen);EJ(this,"getPlayerSize",this.getPlayerSize);EJ(this,"toggleSubtitles",this.toggleSubtitles);this.app.C().V("embeds_enable_move_set_center_crop_to_public")||EJ(this,"setCenterCrop",this.setCenterCrop);EJ(this,"setFauxFullscreen",this.setFauxFullscreen);EJ(this,"setSizeStyle",this.setSizeStyle);EJ(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);EJ(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);
GWp(this)};
g.Z9=function(F){F=F.iL();var k=F.hv.get("endscreen");return k&&k.Ia()?!0:F.s_()};
g.vv=function(F,k){F.getPresentingPlayerType()===3?F.publish("mdxautoplaycancel"):F.ZQ("onAutonavCancelled",k)};
g.Pv=function(F){var k=cv(F.iL());return F.app.GO&&!F.isFullscreen()||F.getPresentingPlayerType()===3&&k&&k.D4()&&k.HZ()||!!F.getPlaylist()};
g.OJ=function(F,k){g.Xh(F,"addEmbedsConversionTrackingParams",[k])};
g.IL=function(F){return(F=g.VU(F.iL()))?F.wY():{}};
g.H$x=function(F){F=(F=F.getVideoData())&&F.L;return!!F&&!(!F.audio||!F.video)&&F.mimeType!=="application/x-mpegURL"};
g.Hv=function(F,k,z){F=F.Ka().element;var x=C8(F.children,function(D){D=Number(D.getAttribute("data-layer"));return z-D||1});
x<0&&(x=-(x+1));XE(F,k,x);k.setAttribute("data-layer",String(z))};
g.aL=function(F){var k=F.C();if(!k.m_)return!1;var z=F.getVideoData();if(!z||F.getPresentingPlayerType()===3)return!1;var x=(!z.isLiveDefaultBroadcast||k.V("allow_poltergust_autoplay"))&&!zL(z);x=z.isLivePlayback&&(!k.V("allow_live_autoplay")||!x);var D=z.isLivePlayback&&k.V("allow_live_autoplay_on_mweb");F=F.getPlaylist();F=!!F&&F.D4();var e=z.J4&&z.J4.playerOverlays||null;e=!!(e&&e.playerOverlayRenderer&&e.playerOverlayRenderer.autoplay);e=z.Mk&&e;return!z.ypcPreview&&(!x||D)&&!g.fC(z.t4,"ypc")&&
!F&&(!g.tJ(k)||e)};
an9=function(F){F=F.app.A4();if(!F)return!1;var k=F.getVideoData();if(!k.L||!k.L.video||k.L.video.qualityOrdinal<1080||k.ZJ)return!1;var z=/^qsa/.test(k.clientPlaybackNonce),x="r";k.L.id.indexOf(";")>=0&&(z=/^[a-p]/.test(k.clientPlaybackNonce),x="x");return z?(F.UK("iqss",{trigger:x},!0),!0):!1};
b$5=function(F,k){F=Sla(F.app.E7().j);F=g.l(F);for(var z=F.next();!z.done;z=F.next()){z=z.value;var x=z.getAvailableAudioTracks(),D=null;x=g.l(x);for(var e=x.next();!e.done;e=x.next())if(e=e.value,e.getLanguageInfo().getId()===k){D=e;break}D&&z.o4(D,!0)}};
Sx=function(){Rx.apply(this,arguments);this.requestHeaders={}};
d5=function(){bA||(bA=new Sx);return bA};
JM=function(F,k){k?F.requestHeaders.Authorization="Bearer "+k:delete F.requestHeaders.Authorization};
g.yU=function(F){g.S.call(this);var k=this;this.La=F;this.Pe={Mq_:function(){return k.La}}};
g.RL=function(F,k,z,x){x=x===void 0?!1:x;g.Q7.call(this,k);var D=this;this.T=F;this.t4=x;this.B=new g.yQ(this);this.fade=new g.Cv(this,z,!0,void 0,void 0,function(){D.cQ()});
g.b(this,this.B);g.b(this,this.fade)};
g5=function(F){var k=F.T.getRootNode();return F.T.V("web_watch_pip")||F.T.V("web_shorts_pip")?Kx(k):document};
dx9=function(F){F.L&&(document.activeElement&&g.N_(F.element,document.activeElement)&&F.L.focus(),F.L.setAttribute("aria-expanded","false"),F.L=void 0);g.VB(F.B);F.K=void 0};
Yp=function(F,k,z){F.ud()?F.bL():F.NR(k,z)};
nY=function(F,k,z,x){x=new g.Y({X:"div",WR:["ytp-linked-account-popup-button"],jk:x,D:{role:"button",tabindex:"0"}});k=new g.Y({X:"div",J:"ytp-linked-account-popup",D:{role:"dialog","aria-modal":"true",tabindex:"-1"},Z:[{X:"div",J:"ytp-linked-account-popup-title",jk:k},{X:"div",J:"ytp-linked-account-popup-description",jk:z},{X:"div",J:"ytp-linked-account-popup-buttons",Z:[x]}]});g.RL.call(this,F,{X:"div",J:"ytp-linked-account-popup-container",Z:[k]},100);var D=this;this.dialog=k;g.b(this,this.dialog);
x.listen("click",function(){D.bL()});
g.b(this,x);g.Hv(this.T,this.element,4);this.hide()};
g.LY=function(F,k,z,x){g.Q7.call(this,F);this.priority=k;z&&g.Ma(this,z);x&&this.r3(x)};
g.fY=function(F,k,z,x){F=F===void 0?{}:F;k=k===void 0?[]:k;z=z===void 0?!1:z;x=x===void 0?!1:x;k.push("ytp-menuitem");var D=F;"role"in D||(D.role="menuitem");z||(D=F,"tabindex"in D||(D.tabindex="0"));F={X:z?"a":"div",WR:k,D:F,Z:[{X:"div",J:"ytp-menuitem-icon",jk:"{{icon}}"},{X:"div",J:"ytp-menuitem-label",jk:"{{label}}"},{X:"div",J:"ytp-menuitem-content",jk:"{{content}}"}]};x&&F.Z.push({X:"div",J:"ytp-menuitem-secondary-icon",jk:"{{secondaryIcon}}"});return F};
g.Ma=function(F,k){F.updateValue("label",k)};
KY=function(F){g.LY.call(this,g.fY({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var k=this;this.T=F;this.L=this.Y=!1;this.Sz=F.sS();F.createServerVe(this.element,this,!0);this.N(this.T,"settingsMenuVisibilityChanged",function(z){k.fN(z)});
this.N(this.T,"videodatachange",this.j);this.listen("click",this.onClick);this.j()};
Wv=function(F){return F?g.rt(F):""};
FC=function(F){g.S.call(this);this.api=F};
k0=function(F){FC.call(this,F);var k=this;AM(F,"setAccountLinkState",function(z){k.setAccountLinkState(z)});
AM(F,"updateAccountLinkingConfig",function(z){k.updateAccountLinkingConfig(z)});
F.addEventListener("videodatachange",function(z,x){k.onVideoDataChange(x)});
F.addEventListener("settingsMenuInitialized",function(){k.menuItem=new KY(k.api);g.b(k,k.menuItem)})};
Jk5=function(F){this.api=F;this.Y={}};
oP=function(F,k,z,x){k in F.Y||(z=new g.ps(z,x,{id:k,priority:2,namespace:"appad"}),F.api.Li([z],1),F.Y[k]=z)};
zu=function(F){FC.call(this,F);var k=this;this.events=new g.yQ(this);g.b(this,this.events);this.Y=new Jk5(this.api);this.events.N(this.api,"legacyadtrackingpingreset",function(){k.Y.Y={}});
this.events.N(this.api,"legacyadtrackingpingchange",function(z){var x=k.Y;oP(x,"part2viewed",1,0x8000000000000);oP(x,"engagedview",Math.max(1,z.qD*1E3),0x8000000000000);if(!z.isLivePlayback){var D=z.lengthSeconds*1E3;xJ(z)&&x.api.V("html5_shorts_gapless_ads_duration_fix")&&(D=x.api.getProgressState().seekableEnd*1E3-z.Lq);oP(x,"videoplaytime25",D*.25,D);oP(x,"videoplaytime50",D*.5,D);oP(x,"videoplaytime75",D*.75,D);oP(x,"videoplaytime100",D,0x8000000000000);oP(x,"conversionview",D,0x8000000000000);
oP(x,"videoplaybackstart",1,D);oP(x,"videoplayback2s",2E3,D);oP(x,"videoplayback10s",1E4,D)}});
this.events.N(this.api,g.X$("appad"),this.L);this.events.N(this.api,g.qQ("appad"),this.L)};
YlC=function(F,k,z){if(!(z in k))return!1;k=k[z];Array.isArray(k)||(k=[k]);k=g.l(k);for(z=k.next();!z.done;z=k.next()){z=z.value;var x={CPN:F.api.getVideoData().clientPlaybackNonce};z=g.cN(z,x);x=void 0;x=x===void 0?!1:x;(x=iX(DV(z,ykI),z,x,"Active View 3rd Party Integration URL"))||(x=void 0,x=x===void 0?!1:x,x=iX(DV(z,RjH),z,x,"Google/YouTube Brand Lift URL"));x||(x=void 0,x=x===void 0?!1:x,x=iX(DV(z,gXH),z,x,"Nielsen OCR URL"));g.MK(z,void 0,x)}return!0};
x0=function(F,k){nX5(F,k).then(function(z){g.MK(k,void 0,void 0,z)})};
io=function(F,k){k.forEach(function(z){x0(F,z)})};
nX5=function(F,k){return g.Vi(F.api.C())&&EY(k)&&pg(k)?g.iJ(F.api.C(),g.dy(F.api.getVideoData())).then(function(z){var x;z&&(x={Authorization:"Bearer "+z});return x},void 0):IS()};
Mc5=function(F){FC.call(this,F);this.events=new g.yQ(F);g.b(this,this.events);this.events.N(F,"videoready",function(k){if(F.getPresentingPlayerType()===1){var z,x,D={playerDebugData:{pmlSignal:!!((z=k.getPlayerResponse())==null?0:(x=z.adPlacements)==null?0:x.some(function(e){var C;return e==null?void 0:(C=e.adPlacementRenderer)==null?void 0:C.renderer})),
contentCpn:k.clientPlaybackNonce}};g.NA("adsClientStateChange",D)}})};
DI=function(F){g.Y.call(this,{X:"button",WR:["ytp-button"],D:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},Z:[{X:"div",J:"ytp-autonav-toggle-button-container",Z:[{X:"div",J:"ytp-autonav-toggle-button",D:{"aria-checked":"true"}}]}]});this.T=F;this.L=[];this.Y=!1;this.isChecked=!0;F.createClientVe(this.element,this,113681);this.N(F,"presentingplayerstatechange",this.iq);this.listen("click",this.onClick);this.T.C().V("web_player_autonav_toggle_always_listen")&&
LpR(this);GL(F,this.element,this);this.iq()};
LpR=function(F){F.L.push(F.N(F.T,"videodatachange",F.iq));F.L.push(F.N(F.T,"videoplayerreset",F.iq));F.L.push(F.N(F.T,"onPlaylistUpdate",F.iq));F.L.push(F.N(F.T,"autonavchange",F.K7))};
fnR=function(F){F.isChecked=F.isChecked;F.EK("ytp-autonav-toggle-button").setAttribute("aria-checked",String(F.isChecked));var k=F.isChecked?"Autoplay is on":"Autoplay is off";F.updateValue("title",k);F.updateValue("label",k);F.T.Ei()};
Kpn=function(F){return F.T.C().V("web_player_autonav_use_server_provided_state")&&KK(F.uu())};
WpD=function(F){FC.call(this,F);var k=this;this.events=new g.yQ(F);g.b(this,this.events);this.events.N(F,"standardControlsInitialized",function(){var z=new DI(F);g.b(k,z);F.Qx(z,"RIGHT_CONTROLS_LEFT")})};
$0=function(F,k){g.LY.call(this,g.fY({role:"menuitemcheckbox","aria-checked":"false"}),k,F,{X:"div",J:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)};
jT=function(F,k){F.checked=k;F.element.setAttribute("aria-checked",String(F.checked))};
FMC=function(F){var k=!F.C().YZ&&F.getPresentingPlayerType()!==3;return F.isFullscreen()||k};
g.eT=function(F,k,z,x){var D=F.currentTarget;if((z===void 0||!z)&&g.Pu(F))return F.preventDefault(),!0;k.pauseVideo();F=D.getAttribute("href");g.fv(F,x,!0);return!1};
g.Ch=function(F,k,z){if(n_(k.C())&&k.getPresentingPlayerType()!==2){if(g.Pu(z))return k.isFullscreen()&&!k.C().externalFullscreen&&k.toggleFullscreen(),z.preventDefault(),!0}else{var x=g.Pu(z);x&&k.pauseVideo();g.fv(F,void 0,!0);x&&(g.Kv(F),z.preventDefault())}return!1};
oiD=function(){var F=kZR.includes("en")?{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,D:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
fill:"#fff"}}]}:{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,D:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};F.J="ytp-subtitles-button-icon";return F};
Aq=function(){return{X:"div",J:"ytp-spinner-container",Z:[{X:"div",J:"ytp-spinner-rotator",Z:[{X:"div",J:"ytp-spinner-left",Z:[{X:"div",J:"ytp-spinner-circle"}]},{X:"div",J:"ytp-spinner-right",Z:[{X:"div",J:"ytp-spinner-circle"}]}]}]}};
ph=function(F){if(document.createRange){var k=document.createRange();k&&(k.selectNodeContents(F),F=window.getSelection())&&(F.removeAllRanges(),F.addRange(k))}};
qB=function(F){var k=F.V("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";$0.call(this,k,g.EA.eP);var z=this;this.T=F;this.Y=!1;this.L=new g.KS(function(){g.p6(z.element,"ytp-menuitem-highlighted")},0);
this.Sz=F.sS();this.setIcon({X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{X:"path",D:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.U,this);this.listen(XC,this.j);g.b(this,this.L)};
NB=function(F){FC.call(this,F);var k=this;this.Y=!1;F.addEventListener("settingsMenuInitialized",function(){z1k(k)});
F.addEventListener("highlightSettingsMenu",function(z){z1k(k);var x=k.menuItem;z==="menu_item_cinematic_lighting"&&(g.C6(x.element,"ytp-menuitem-highlighted"),g.C6(x.element,"ytp-menuitem-highlight-transition-enabled"),x.L.start())});
AM(F,"updateCinematicSettings",function(z){k.updateCinematicSettings(z)})};
z1k=function(F){F.menuItem||(F.menuItem=new qB(F.api),g.b(F,F.menuItem),F.menuItem.G4(F.Y))};
xD6=function(F){FC.call(this,F);var k=this;this.events=new g.yQ(F);g.b(this,this.events);this.events.N(F,"applicationvideodatachange",function(z,x){x=x.clipConfig;z==="dataloaded"&&x&&x.startTimeMs!=null&&x.endTimeMs!=null&&k.api.setLoopRange({startTimeMs:Math.floor(Number(x.startTimeMs)),endTimeMs:Math.floor(Number(x.endTimeMs)),postId:x.postId,type:"clips"})})};
uo=function(F){FC.call(this,F);this.events=new g.yQ(F);g.b(this,this.events);AM(F,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));AM(F,"setCreatorEndscreenHideButton",this.Y.bind(this))};
wp=function(F,k,z,x){$0.call(this,"Stable Volume",g.EA.EA);g.C6(this.element,"ytp-drc-menu-item");this.Sz=F.sS();this.j=k;this.Y=z;this.hasDrcAudioTrack=x;F.addEventListener("videodatachange",this.L.bind(this));F.V("mta_drc_mutual_exclusion_removal")&&this.N(F,"onPlaybackAudioChange",this.L);F=this.Y()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{X:"path",D:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",
fill:"white"}}]});this.subscribe("select",this.U,this);jT(this,F);this.Sz.Iy(this)};
mF=function(F){FC.call(this,F);var k=this;this.events=new g.yQ(F);g.b(this,this.events);F.V("html5_show_drc_toggle")&&F.addEventListener("settingsMenuInitialized",function(){k.menuItem||(k.menuItem=new wp(k.api,k.setDrcUserPreference.bind(k),k.getDrcUserPreference.bind(k),k.L.bind(k)),g.b(k,k.menuItem))});
AM(this.api,"setDrcUserPreference",function(x){k.setDrcUserPreference(x)});
AM(this.api,"getDrcUserPreference",function(){return k.getDrcUserPreference()});
AM(this.api,"hasDrcAudioTrack",function(){return k.L()});
var z;this.Y=(z=g.bn("yt-player-drc-pref"))!=null?z:1;this.updateEnvironmentData()};
Tu=function(F){FC.call(this,F);var k=this;this.Y={};this.events=new g.yQ(F);g.b(this,this.events);this.events.N(F,"videodatachange",function(){k.onVideoDataChange()});
this.events.N(F,g.X$("embargo"),function(z){k.api.PO(!0);var x,D=(x=k.Y[z.id])!=null?x:[];x=g.l(D);for(D=x.next();!D.done;D=x.next()){var e=D.value;k.api.hideControls();k.api.qk("auth",2,"This video isn't available in your current playback area",Pw({embargoed:1,id:z.id,idx:z.L,start:z.start}));D=void 0;(e=(D=e.embargo)==null?void 0:D.onTrigger)&&k.api.ZQ("innertubeCommand",e)}})};
iND=function(F,k){var z;return(z=k.onEnter)==null?void 0:z.some(F.L)};
DD6=function(F,k){k=g.l(k);for(var z=k.next();!z.done;z=k.next()){z=z.value;var x=void 0,D=Number((x=z.playbackPosition)==null?void 0:x.utcTimeMillis)/1E3,e=void 0;x=D+Number((e=z.duration)==null?void 0:e.seconds);e="embargo_"+D;F.api.addUtcCueRange(e,D,x,"embargo",!1);z.onEnter&&(F.Y[e]=z.onEnter.filter(F.L))}};
lo=function(F){FC.call(this,F);var k=this;this.Y=[];this.events=new g.yQ(F);g.b(this,this.events);AM(F,"addEmbedsConversionTrackingParams",function(z){k.api.C().OE&&k.addEmbedsConversionTrackingParams(z)});
this.events.N(F,"veClickLogged",function(z){k.api.hasVe(z)&&(z=eC(z.visualElement.getAsJspb(),2),k.Y.push(z))})};
$DM=function(F){FC.call(this,F);AM(F,"isEmbedsShortsMode",function(){return F.isEmbedsShortsMode()})};
jlk=function(F){FC.call(this,F);var k=this;this.events=new g.yQ(F);g.b(this,this.events);this.events.N(F,"initialvideodatacreated",function(z){VK(Ow(),16623);k.Y=g.OK();var x=F.C().D7&&!z.zM;if(Sk(z)&&x){VK(Ow(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(z.getWatchNextResponse()){var D,e=(D=z.getWatchNextResponse())==null?void 0:D.trackingParams;e&&Hc(e)}if(z.getPlayerResponse()){var C;(z=(C=z.getPlayerResponse())==null?void 0:C.trackingParams)&&Hc(z)}}else VK(Ow(),
32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),z.getEmbeddedPlayerResponse()&&(C=(e=z.getEmbeddedPlayerResponse())==null?void 0:e.trackingParams)&&Hc(C)});
this.events.N(F,"loadvideo",function(){VK(Ow(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:k.Y})});
this.events.N(F,"cuevideo",function(){VK(Ow(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:k.Y})});
this.events.N(F,"largeplaybuttonclicked",function(z){VK(Ow(),27240,z.visualElement)});
this.events.N(F,"playlistnextbuttonclicked",function(z){VK(Ow(),27240,z.visualElement)});
this.events.N(F,"playlistprevbuttonclicked",function(z){VK(Ow(),27240,z.visualElement)});
this.events.N(F,"playlistautonextvideo",function(){VK(Ow(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})};
QP=function(F,k){g.S.call(this);var z=this;this.Y=null;this.U=k;k=[];for(var x=0;x<=100;x++)k.push(x/100);k={threshold:k,trackVisibility:!0,delay:1E3};(this.L=window.IntersectionObserver?new IntersectionObserver(function(D){D=D[D.length-1];typeof D.isVisible==="undefined"?document.visibilityState==="visible"&&D.isIntersecting&&D.intersectionRatio>0?z.Y=D.intersectionRatio:document.visibilityState==="hidden"?z.Y=0:z.Y=null:z.Y=D.isVisible?D.intersectionRatio:0;typeof z.U==="function"&&z.U(z.Y)},k):
null)&&this.L.observe(F)};
CkD=function(F){FC.call(this,F);var k=this;this.events=new g.yQ(F);g.b(this,this.events);this.events.N(F,"applicationInitialized",function(){e15(k)})};
e15=function(F){var k=F.api.getRootNode(),z,x=F.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((z=k.parentElement)==null?void 0:z.parentElement)||k:k;F.Y=new QP(x,function(D){D!=null&&(F.api.C().TR=D,F.api.C().Sh="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")});
g.b(F,F.Y);F.events.N(F.api,"videoStatsPingCreated",function(D){var e=F.Y;e=e.Y==null?null:Math.round(e.Y*100)/100;D.inview=e!=null?e:void 0;e=F.api.getPlayerSize();if(e.height>0&&e.width>0){e=[Math.round(e.width),Math.round(e.height)];var C=g.L_();C>1&&e.push(C);e=e.join(":")}else e=void 0;D.size=e})};
AdH=function(F){var k;return((k=((F==null?void 0:F.messageRenderers)||[]).find(function(z){return!!z.timeCounterRenderer}))==null?void 0:k.timeCounterRenderer)||null};
hq=function(F){g.Y.call(this,{X:"div",WR:["ytp-player-content","ytp-iv-player-content"],Z:[{X:"div",J:"ytp-free-preview-countdown-timer",Z:[{X:"span",jk:"{{label}}"},{X:"span",J:"ytp-free-preview-countdown-timer-separator",jk:"\u2022"},{X:"span",jk:"{{duration}}"}]}]});this.api=F;this.Y=null;this.U=this.L=0;this.N(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)};
Ei6=function(F,k){F.Y||(F.L=k,F.U=(0,g.VE)(),F.Y=new g.fS(function(){pcI(F)},null),pcI(F))};
pcI=function(F){var k=Math,z=k.round,x=Math.min((0,g.VE)()-F.U,F.L);k=z.call(k,(F.L-x)/1E3);F.updateValue("duration",GZ({seconds:k}));k<=0&&F.Y?sA(F):F.Y&&F.Y.start()};
sA=function(F){F.Y&&(F.Y.dispose(),F.Y=null)};
Xca=function(F){FC.call(this,F);var k=this;this.events=new g.yQ(F);g.b(this,this.events);this.events.N(F,"basechromeinitialized",function(){k.Y=new hq(F);g.b(k,k.Y);g.Hv(F,k.Y.element,4);k.Y.hide()})};
rp=function(F){g.Y.call(this,{X:"button",WR:["ytp-fullerscreen-edu-button","ytp-button"],Z:[{X:"div",WR:["ytp-fullerscreen-edu-text"],jk:"Scroll for details"},{X:"div",WR:["ytp-fullerscreen-edu-chevron"],Z:[{X:"svg",D:{height:"100%",viewBox:"0 0 24 24",width:"100%"},Z:[{X:"path",D:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],D:{"data-priority":"1"}});this.Vh=F;this.fade=new g.Cv(this,250,void 0,100);this.L=this.Y=!1;F.createClientVe(this.element,this,61214);g.b(this,
this.fade);this.N(F,"fullscreentoggled",this.G4);this.N(F,"presentingplayerstatechange",this.G4);this.listen("click",this.onClick);this.G4()};
BV=function(F){FC.call(this,F);var k=this;this.events=new g.yQ(F);g.b(this,this.events);AM(this.api,"updateFullerscreenEduButtonSubtleModeState",function(x){k.updateFullerscreenEduButtonSubtleModeState(x)});
AM(this.api,"updateFullerscreenEduButtonVisibility",function(x){k.updateFullerscreenEduButtonVisibility(x)});
var z=F.C();F.V("external_fullscreen_with_edu")&&z.externalFullscreen&&n_(z)&&z.controlsType==="1"&&this.events.N(F,"standardControlsInitialized",function(){k.Y=new rp(F);g.b(k,k.Y);F.Qx(k.Y)})};
qwk=function(F){g.Y.call(this,{X:"div",J:"ytp-gated-actions-overlay",Z:[{X:"div",J:"ytp-gated-actions-overlay-background",Z:[{X:"div",J:"ytp-gated-actions-overlay-background-overlay"}]},{X:"button",WR:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],D:{"aria-label":"Close"},Z:[g.Z4()]},{X:"div",J:"ytp-gated-actions-overlay-bar",Z:[{X:"div",J:"ytp-gated-actions-overlay-text-container",Z:[{X:"div",J:"ytp-gated-actions-overlay-title",jk:"{{title}}"},{X:"div",J:"ytp-gated-actions-overlay-subtitle",
jk:"{{subtitle}}"}]},{X:"div",J:"ytp-gated-actions-overlay-button-container"}]}]});var k=this;this.api=F;this.background=this.EK("ytp-gated-actions-overlay-background");this.L=this.EK("ytp-gated-actions-overlay-button-container");this.Y=[];this.N(this.EK("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){k.api.ZQ("onCloseMiniplayer")});
this.hide()};
utY=function(F,k){var z=0;z=0;for(var x={};z<k.length;x={oX:void 0},z++){var D=F.Y[z],e=void 0,C=(e=D)==null?void 0:e.element;C||(C=new g.Y({X:"button",J:"ytp-gated-actions-overlay-button",D:{tabindex:"0"},Z:[{X:"div",J:"ytp-gated-actions-overlay-button-title",jk:"{{buttonText}}"}]}),g.b(F,C),C.T4(F.L),D={element:C});x.oX=g.J(k[z],NMH);var p=e=void 0,E=void 0,X=((e=x.oX)==null?void 0:e.title)||((p=x.oX)==null?void 0:(E=p.titleFormatted)==null?void 0:E.content)||"";C.update({buttonText:X});D.listener&&
C.er(D.listener);D.listener=C.listen("click",function(q){return function(){var N,u=g.J((N=q.oX)==null?void 0:N.onTap,gF);u&&F.api.ZQ("innertubeCommand",u)}}(x));
F.Y[z]=D}for(;z<F.Y.length;)F.Y.pop().element.dispose()};
wc5=function(F){FC.call(this,F);var k=this;this.events=new g.yQ(F);g.b(this,this.events);this.Y=new qwk(this.api);g.b(this,this.Y);this.events.N(F,"videodatachange",function(){var z,x=(z=k.api.getVideoData())==null?void 0:z.gf;z=k.Y;if(x){var D,e,C=((D=x.title)==null?void 0:D.content)||"";D=((e=x.subtitle)==null?void 0:e.content)||"";z.update({title:C,subtitle:D});C=x.thumbnail;e="none";if(C==null?0:C.sources){D=0;C=g.l(C.sources);for(var p=C.next();!p.done;p=C.next())p=p.value,p.width&&p.url&&p.width>
D&&(D=p.width,e="url("+p.url+")")}z.background.style.backgroundImage=e;utY(z,x.actionButtons||[]);z.show()}else z.hide()});
g.Hv(this.api,this.Y.element,4)};
Gu=function(F){FC.call(this,F);var k=this;EJ(this.api,"getSphericalProperties",function(){return k.getSphericalProperties()});
EJ(this.api,"setSphericalProperties",function(){k.setSphericalProperties.apply(k,g.r(g.v6.apply(0,arguments)))});
pY(this.api,"getSphericalProperties",function(){return k.api.getPresentingPlayerType()===2?{}:k.getSphericalProperties()});
pY(this.api,"setSphericalProperties",function(){var z=g.v6.apply(0,arguments);k.api.getPresentingPlayerType()!==2&&k.setSphericalProperties.apply(k,g.r(z))})};
UA=function(F){FC.call(this,F);AM(F,"createClientVe",this.createClientVe.bind(this));AM(F,"createServerVe",this.createServerVe.bind(this));AM(F,"destroyVe",this.destroyVe.bind(this));AM(F,"hasVe",this.hasVe.bind(this));AM(F,"logClick",this.logClick.bind(this));AM(F,"logVisibility",this.logVisibility.bind(this));AM(F,"setTrackingParams",this.setTrackingParams.bind(this))};
tq=function(F,k,z,x){function D(C){var p=!(C.status!==204&&C.status!==200&&!C.response),E;C={succ:""+ +p,rc:C.status,lb:((E=C.response)==null?void 0:E.byteLength)||0,rt:((0,g.VE)()-e).toFixed(),shost:g.Lw(F),trigger:k};mDx(C,F);z&&z(C);x&&!p&&x(new O3("pathprobe.net",C))}
var e=(0,g.VE)();g.tB(F,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:D,onTimeout:D})};
mDx=function(F,k){var z;((z=window.performance)==null?0:z.getEntriesByName)&&(k=performance.getEntriesByName(k))&&k.length&&(k=k[0],F.pedns=(k.domainLookupEnd-k.startTime).toFixed(),F.pecon=(k.connectEnd-k.domainLookupEnd).toFixed(),F.perqs=(k.requestStart-k.connectEnd).toFixed(),TM5&&(F.perqsa=k.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
ZI=function(F,k){this.g3=F;this.policy=k;this.playbackRate=1};
l7I=function(F,k){var z=Math.min(2.5,ma(F.g3));F=vV(F);return k-z*F};
cV=function(F,k,z,x,D){D=D===void 0?!1:D;if(F.policy.Zv)return Math.ceil(F.policy.Zv*k);F.policy.NZ&&(x=Math.abs(x));x/=F.playbackRate;var e=1/Qq(F.g3);z=Math.max(.9*(x-3),ma(F.g3)+F.g3.L.Y*e)/e*.8/(k+z);z=Math.min(z,x);F.policy.je>0&&D&&(z=Math.max(z,F.policy.je));return QlC(F,z,k)};
QlC=function(F,k,z){return Math.ceil(Math.max(Math.max(F.policy.Xz,F.policy.tT*z),Math.min(Math.min(F.policy.RU,31*z),Math.ceil(k*z))))||F.policy.Xz};
h1D=function(F,k,z){z=cV(F,k.Y.info.Yu,z.Y.info.Yu,0);var x=ma(F.g3)+z/Qq(F.g3);return Math.max(x,x+F.policy.nf-z/k.Y.info.Yu)};
vV=function(F){return Qq(F.g3,!F.policy.F1,F.policy.Bi)};
PV=function(F){return vV(F)/F.playbackRate};
OA=function(F,k,z){var x=F.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],D=F.policy.playbackStartPolicy.startMinReadaheadPolicy||[];F=Infinity;k=g.l(k&&x.length>0?x:D);for(x=k.next();!x.done;x=k.next())x=x.value,D=x.minReadaheadMs||0,z<(x.minBandwidthBytesPerSec||0)||F>D&&(F=D);return F<Infinity?F/1E3:F};
VP=function(F,k,z,x){var D=this;this.G=F;this.b$=k;this.policy=z;this.logger=x;this.tR=[];this.pN=[];this.Y=-1;this.xu=null;this.S=this.timestampOffset=0;this.qR=null;this.L=10;this.W=new Set;this.Pe={Sd:function(e){return D.Sd(e)}};
this.j=k.oS?0:1;z.SI>0&&(this.L=z.SI)};
GZD=function(F,k,z,x,D){if(!x.info.W){if(z.length===0)z.push(x);else{var e;(F=(e=z.pop())==null?void 0:g.$l(e,x))?z.push(F):z.push(x)}return D}var C;(z=(C=z.pop())==null?void 0:g.$l(C,x))||(z=x);if(F.policy.Vz&&z.info.L)return F.logger&&F.logger({incompleteSegment:z.info.mu()}),D;C=F.Sd(z);x=C.formatId;D=C.gt;z=C.clipId;e=C.pS;C=C.startTimeMs;if(!F.policy.pn&&F.policy.L&&F.qR){var p=IP(F.qR,z);C+=p}x={clipId:z,formatId:x,startTimeMs:C,durationMs:e,t$:D,d$:D};D=slY(k,x.startTimeMs);(z=D>=0?k[D]:null)&&
rdI(F,z,x)?x=z:(D+=1,k.splice(D,0,x));z=0;for(e=D+1;e<k.length;e++){C=F;p=k[e];var E=x,X=p.startTimeMs+p.durationMs,q=E.startTimeMs+E.durationMs;q>=X+C.L?C=!0:q+C.L<p.startTimeMs?C=!1:BM6(C,p.formatId,E.formatId)?(E.durationMs=X-E.startTimeMs,E.d$=p.d$,C=!0):(p.startTimeMs=q,p.t$=E.d$+1,C=!1);if(!C)break;z++}z&&k.splice(D+1,z);return D};
tjH=function(F,k,z){F.policy.Vz&&z!=null&&z.q6||(F.tR=[]);F.policy.VH?(k=g.eS(F.pN,{startTimeMs:k*1E3},function(x,D){return x.startTimeMs-D.startTimeMs}),F.Y!==k&&(F.Y=-1,F.U=void 0)):(UDY(F,!0),F.Y=slY(F.pN,k*1E3))};
slY=function(F,k){F=g.eS(F,{startTimeMs:k},function(z,x){return z.startTimeMs-x.startTimeMs});
return F>=0?F:-F-2};
UDY=function(F,k){if(F.xu){var z=F.xu.Kv();if(z.length!==0){if(F.U&&k){var x=F.U,D=x.info.j;!Ni(z,D)&&x.info.B>0&&(0,g.VE)()-F.S<5E3&&(F.logger&&F.logger({dend:x.info.mu()}),z=mfn(z,D,D+.01))}F.policy.VH&&F.logger&&F.logger({cbri:""+F.Y});x=[];for(var e=D=0;D<z.length&&e<F.pN.length;){var C=z.start(D),p=z.end(D),E=F.pN[e].startTimeMs/1E3,X=(F.pN[e].startTimeMs+F.pN[e].durationMs)/1E3;if(E<=p&&X>=C){var q=0;if(F.qR){var N=HV(F.qR,E*1E3);N&&(q=N.US/1E3)}N=Object.assign({},F.pN[e]);var u=F.b$.U.get(Pf(F.pN[e].formatId)),
w=Math.max(E,C);C=u.index.kA(w+F.L/1E3-q);E=u.index.getStartTime(C)+q;var m=C+ +(Math.abs(E-w)>F.L/1E3);w=m+F.j;m=(u.index.getStartTime(m)+q)*1E3;e!==F.Y||k?(N.t$=w,N.startTimeMs=m):(F.logger&&F.logger({pEvict:"1",og:N.startTimeMs,adj:E*1E3}),N.t$=C+F.j,N.startTimeMs=E*1E3);C=void 0;E=((C=F.U)==null?void 0:C.info.duration)||11;e===F.Y&&p<X&&X-p<=E*1.01&&(p=X);C=Math.min(X,p);E=u.index.kA(C-F.L/1E3-q);w=F.policy;(w.L||w.i$.V("html5_sabr_include_tail_media_chunk"))&&u.index.d8(E+1)&&u.index.yA(E+1)+
q<=C&&(E+=1);w=u.index.yA(E)+q;E-=+(Math.abs(w-C)>F.L/1E3);C=E+F.j;q=(u.index.yA(E)+q)*1E3;N.d$=C;N.durationMs=q-N.startTimeMs;N.t$<=N.d$&&x.push(N)}X<p?e+=1:D+=1}F.pN=x}}};
ZNH=function(F){var k=[],z=[].concat(g.r(F.tR));F.pN.forEach(function(C){k.push(Object.assign({},C))});
for(var x=F.Y,D=g.l(F.G.Mv()),e=D.next();!e.done;e=D.next())x=GZD(F,k,z,e.value,x);k.forEach(function(C){C.startTimeMs&&(C.startTimeMs+=F.timestampOffset*1E3)});
return{pN:k,tR:z}};
rdI=function(F,k,z){var x=k.startTimeMs+k.durationMs,D=z.startTimeMs+z.durationMs;if(z.startTimeMs-x>F.L)return!1;if(BM6(F,k.formatId,z.formatId))return k.durationMs=Math.max(x,D)-k.startTimeMs,k.d$=Math.max(k.d$,z.d$),!0;if(Math.abs(k.startTimeMs-z.startTimeMs)<=F.L){if(k.durationMs>z.durationMs+F.L){F=k.formatId;var e=k.t$,C=k.d$;k.formatId=z.formatId;k.durationMs=z.durationMs;k.t$=z.t$;k.d$=z.d$;z.formatId=F;z.startTimeMs=D;z.durationMs=x-D;z.t$=e;z.d$=C;return!1}k.formatId=z.formatId;return!0}x>
z.startTimeMs&&(k.durationMs=z.startTimeMs-k.startTimeMs,k.clipId===z.clipId&&(k.d$=z.t$-1));return!1};
BM6=function(F,k,z){return k.itag!==z.itag||k.xtags!==z.xtags?!1:F.b$.oS||k.lmt===z.lmt};
viI=function(F,k,z){if(F.logger){for(var x=[],D=0;D<k.length;D++){var e=k[D],C=void 0;if((C=e.RJ)==null?0:C.startTicks){var p=C=void 0,E=void 0;x.push("i."+((C=e.formatId)==null?void 0:C.itag)+"_st."+(e.startTimeMs+"_psst.")+(((p=e.RJ)==null?void 0:p.startTicks)+"_psd.")+((E=e.RJ)==null?void 0:E.Bt))}C=void 0;x.push("i."+((C=e.formatId)==null?void 0:C.itag)+"_st."+(e.startTimeMs+"_e."+(e.startTimeMs+e.durationMs)+"_d."+e.durationMs)+("_sn."+e.t$)+("_en."+e.d$))}F.logger({p:""+z,br:x.join(";")})}};
cdD=function(F){F.pN=[];F.tR=[];F.W.clear();F.Y=-1;F.U=void 0};
aP=function(F,k,z,x,D){this.aU=F;this.b$=k;this.videoTrack=z;this.audioTrack=x;this.policy=D;this.seekCount=this.Y=0;this.W=!1;this.j=null;this.U=0;this.L=this.b$.isManifestless&&!this.b$.A5};
Pk5=function(F,k,z){if(!F.policy.S){F=k.Y.index;var x=k.L.gt;F.d8(x)||z&&z.gt===x?(k.W=!F.d8(x),k.t4=!F.d8(x)):(k.W=!0,k.t4=!0)}};
Vjk=function(F){var k=Math.max(F.videoTrack.j.U||0,F.audioTrack.j.U||0);ONH(F.videoTrack);ONH(F.audioTrack);F.policy.S||jQp(F.b$);F.b$.isManifestless&&!F.policy.S&&(F.L=!0,F.U=0);var z=F.aU;z.policy.Xf||(z.currentTime=k);F.W=!0;F.j=new xh;return F.j};
a7k=function(F,k,z,x,D){var e=F.policy.Vz?D:void 0;if(!k.Y.Ig()){if(!(e=z===0||!!k.U.length&&k.U[0]instanceof ST))a:{if(k.U.length&&(e=k.U[0],e instanceof bo&&e.w$&&e.q4)){e=!0;break a}e=!1}e||F.policy.Y||dp(k);return z}var C=Jq(k,z);if(!isNaN(C))return C;if(F.aU.CR(z*1E3))return z;D.q6?F.policy.Vb&&(F=yP(F.aU,k),I7Y(k.j,z+F,!0)):(k.f$(),F.aU.jb(!1,"sta_"+ +k.Y.info.QZ()));return x&&(F=uK(x.Kv(),z),!isNaN(F))?(RP(k,F+HN6,e),z):RP(k,z,e)};
bNH=function(F,k,z,x){if(F.policy.S)!x||!F.L&&F.policy.mY||g.lh(function(){gp(F)});
else{if(F.isSeeking()&&F.Y){var D=Swx(F,k,z);if(D!==-1){F.videoTrack.W=!1;F.audioTrack.W=!1;F.L=!0;F.U=0;g.lh(function(){F.aU.UK("seekreason",{reason:"behindMinSq",tgt:D});Y0(F,D)});
return}}z?F.videoTrack.t4=!1:F.audioTrack.t4=!1;var e=!F.L;Jq(F.videoTrack,F.Y)>=0&&Jq(F.audioTrack,F.Y)>=0&&e?((F.videoTrack.W||F.audioTrack.W)&&F.aU.UK("iterativeSeeking",{status:"done",count:F.seekCount}),F.videoTrack.W=!1,F.audioTrack.W=!1):x&&g.lh(function(){if(F.L||!F.policy.mY)gp(F);else{var C=k.startTime,p=k.duration;if(!F.policy.S){var E=z?F.videoTrack.W:F.audioTrack.W,X=F.videoTrack.S!==-1&&F.audioTrack.S!==-1,q=F.Y>=C&&F.Y<C+p+.1,N=!F.videoTrack.t4&&!F.audioTrack.t4,u=F.policy.Ts&&Jq(F.videoTrack,
C)&&Jq(F.audioTrack,C);E&&X&&N&&(q||u?((z?F.videoTrack:F.audioTrack).W=!1,F.videoTrack.W||F.audioTrack.W||(F.aU.UK("iterativeSeeking",{status:"done",target:C,originalTime:C+F.aU.Hj(),count:F.seekCount}),F.seekCount=0)):F.seekCount<8?(F.seekCount++,F.aU.UK("iterativeSeeking",{status:"inprogress",count:F.seekCount,target:F.Y,actual:C,duration:p,isVideo:z}),F.seek(F.Y,{})):(F.aU.UK("iterativeSeeking",{status:"incomplete",count:F.seekCount,target:F.Y,actual:C}),F.seekCount=0,F.videoTrack.W=!1,F.audioTrack.W=
!1,nh(F.aU,C+.1,{AT:!0,Sr:"chunkSelectorSynchronizeMedia",AK:!0})))}}})}};
Swx=function(F,k,z){if(!F.isSeeking())return-1;z=(z?F.videoTrack:F.audioTrack).Y.index;var x=z.kA(F.Y);return(z.d8(F.b$.W8)||k.gt===F.b$.W8)&&x<F.b$.W8?F.b$.oy():-1};
Y0=function(F,k,z){F.L&&F.videoTrack.S!==-1&&F.audioTrack.S!==-1&&(F.L=!1,F.Y=k,nh(F.aU,k+.1,{AT:!0,Sr:"chunkSelectorSynchronize",AK:!0,seekSource:z}))};
gp=function(F){var k=F.videoTrack.S!==-1,z=F.audioTrack.S!==-1;if(!k||!z)if(k=!k&&MB(F.videoTrack),z=!z&&MB(F.audioTrack),k||z){z=k?F.videoTrack:F.audioTrack;k=k?F.audioTrack:F.videoTrack;z.S=MB(z).info.gt;if(F.policy.S){var x;k.S=((x=MB(k))==null?void 0:x.info.gt)||k.S}if(k.S!==-1){var D=Math.max(k.Y.index.getStartTime(k.S),z.Y.index.getStartTime(z.S));U1(F.b$)&&Math.abs(D-U1(F.b$))>432E3&&eA6(F.b$);F.U&&(D=F.U,F.U=0);g.lh(function(){F.policy.S||Y0(F,D,102)});
F.aU.UK("initManifestlessSync",{st:D,ost:D+F.aU.Hj(),a:F.audioTrack.S,v:F.videoTrack.S});F.j&&(F.j.resolve(D+.1),F.j=null);F.policy.S&&Y0(F,D,102)}}};
Lh=function(F,k){var z=this;this.EH=F;this.requestNumber=++dDp;this.Y=this.now();this.B=this.K=NaN;this.G=this.Y;this.U=this.RS=this.W=0;this.S=this.Y;this.NJ=this.PR=this.yh=this.vj=this.MD=this.mp=this.L=this.j=0;this.Qh=this.isActive=!1;this.Xm=this.vR=0;this.Pe={aef:function(){return z.d0}};
this.g3=k.g3;this.snapshot=SI6(this.g3);this.policy=this.g3.L;this.lC=!!k.lC;this.eC=k.eC;this.Ld=k.Ld||0;this.Rg=k.Rg||0;k.U2&&(this.Xf=new C_);var x;this.d0=(x=k.d0)!=null?x:!1;this.lC||IGC(this.g3)};
Jdp=function(F){F.yh=Math.max(F.yh,F.W-F.MD);F.PR=Math.max(F.PR,F.G-F.vj);F.mp=0};
fh=function(F,k,z){HRI(F.g3,k);F.Xf&&(F.Xf.add(Math.ceil(k)-Math.ceil(F.G)),F.Xf.add(Math.max(0,Math.ceil(z/1024)-Math.ceil(F.W/1024))));var x=k-F.G,D=z-F.W;F.RS=D;F.NJ=Math.max(F.NJ,D/(x+.01)*1E3);F.G=k;F.W=z;F.mp&&z>F.mp&&Jdp(F)};
Kh=function(F,k){F.url=k;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
WV=function(F,k){Lh.call(this,F,k);this.UH=this.qD=!1;this.cR=this.t4=Infinity;this.l$=NaN;this.mY=!1;this.kG=NaN;this.uL=this.J4=this.RU=0;this.Hs=k.Hs||1;this.V5=k.V5||this.Hs;this.Yf=k.Yf;this.gt=k.gt;this.o3=k.o3;ydp(this);this.LT(this.Y);this.dH=(this.kG-this.Y)/1E3};
R16=function(F){var k=F.J4||F.RU;return k?F.snapshot.delay+Math.min(F.Rg,(F.B-F.K)/1E3)+k:F.dH};
Fj=function(F,k,z){if(!F.lC){k=Math.max(k,.01);var x=F.Ld?Math.max(k,z/F.Ld):k,D=F.g3.L.U;D&&(x=k,F.Ld&&(x=Math.max(k,z/F.Ld*D)));NU(F.g3,k,z,x)}};
gik=function(F){return(F.S-F.Y)/1E3};
ydp=function(F){F.l$=F.Y+F.snapshot.delay*1E3;F.mY=!1};
k7=function(F,k){if(F.Yf&&F.gt!==void 0&&F.o3!==void 0){var z=Math,x=z.min,D=F.t4;var e=F.Yf;var C=F.Y;if(Yw9(e,F.gt))e=k;else{var p=0;e.WM&&(p=.2);e=C+(e.Rg+p)*1E3}F.t4=x.call(z,D,e);z=Math;x=z.min;D=F.cR;e=F.Yf;C=F.Y;p=nik(e,F.gt,F.o3);p!==2&&(k=p?k:C+e.Rg*1E3,e.WM&&(k+=e.Rg*1E3));F.cR=x.call(z,D,k);F.t4<=F.Y?ydp(F):(F.l$=F.t4,F.mY=!0)}};
Mj6=function(F,k){if(F.I0(k,1)){var z=F.getUint8(k);z=z<128?1:z<192?2:z<224?3:z<240?4:5}else z=0;if(z<1||!F.I0(k,z))return[-1,k];if(z===1)F=F.getUint8(k++);else if(z===2)z=F.getUint8(k++),F=F.getUint8(k++),F=(z&63)+64*F;else if(z===3){z=F.getUint8(k++);var x=F.getUint8(k++);F=F.getUint8(k++);F=(z&31)+32*(x+256*F)}else if(z===4){z=F.getUint8(k++);x=F.getUint8(k++);var D=F.getUint8(k++);F=F.getUint8(k++);F=(z&15)+16*(x+256*(D+256*F))}else z=k+1,F.focus(z),tc(F,z,4)?F=BXk(F).getUint32(z-F.y7,!0):(x=
F.getUint8(z+2)+256*F.getUint8(z+3),F=F.getUint8(z)+256*(F.getUint8(z+1)+256*x)),k+=5;return[F,k]};
oi=function(F){this.EH=F;this.Y=new rx};
zv=function(F,k){this.info=F;this.callback=k;this.state=1;this.g_=this.yr=!1;this.yZ=null};
LMC=function(F){return g.ZO(F.info.sK,function(k){return k.type===3})};
x7=function(F,k,z,x){var D=this;x=x===void 0?{}:x;this.policy=k;this.EH=z;this.status=0;this.Y=new rx;this.L=0;this.z4=this.j=this.U=!1;this.xhr=new XMLHttpRequest;this.xhr.open(x.method||"GET",F);if(x.headers)for(F=x.headers,k=g.l(Object.keys(F)),z=k.next();!z.done;z=k.next())z=z.value,this.xhr.setRequestHeader(z,F[z]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return D.ER()};
this.xhr.onload=function(){return D.onDone()};
this.xhr.onerror=function(){return D.onError()};
this.xhr.fetch(function(e){D.Y.append(e);D.L+=e.length;e=(0,g.VE)();D.EH.rM(e,D.L)},function(){},x.body||null)};
DF=function(){this.L=this.vx=0;this.Y=Array.from({length:iL.length}).fill(0)};
f7D=function(){};
KMC=function(){this.startTimeMs=(0,g.VE)();this.Y=!1};
WM6=function(){this.Y=new f7D};
Fyx=function(F,k,z,x){x=x===void 0?1:x;z>=0&&(k in F.Y||(F.Y[k]=new DF),F.Y[k].hK(z,x))};
kfC=function(F,k,z,x,D){var e=(0,g.VE)(),C=D?D(k):void 0,p;D=(p=C==null?void 0:C.vx)!=null?p:1;if(D!==0){var E;p=(E=C==null?void 0:C.profile)!=null?E:z;Fyx(F,p,e-x,D)}return k};
$7=function(F,k,z,x,D){if(k&&typeof k==="object"){var e=function(C){return kfC(F,C,z,x,D)};
if(ND(k))return k.then(e);if(oCY(k))return QK(k,e)}return kfC(F,k,z,x,D)};
zYn=function(){};
x4R=function(F,k){this.L=(new TextEncoder).encode(F);this.Y=(new TextEncoder).encode(k)};
fkC=function(F,k){var z,x,D;return g.O(function(e){if(e.Y==1){if(!k)return e.return(k);z=js.Fi();x=new g.t5(F.L);return g.c(e,x.encrypt(k,F.Y),2)}D=e.L;js.wX("woe",z,Math.ceil(k.byteLength/16));return e.return(D)})};
o8D=function(F,k){var z,x,D;return g.O(function(e){if(e.Y==1){if(!k)return e.return(k);z=js.Fi();x=new g.t5(F.L);return g.c(e,x.decrypt(k,F.Y),2)}D=e.L;js.wX("wod",z,Math.ceil(k.byteLength/16));return e.return(D)})};
D4n=function(F,k){var z=this;this.Y=F;this.EH=k;this.loaded=this.status=0;this.error="";F=I0(this.Y.get("range")||"");if(!F)throw Error("bad range");this.range=F;this.L=new rx;itD(this).then(function(){z.EH.AI()},function(x){z.error=""+x||"unknown_err";
z.EH.AI()})};
itD=function(F){var k,z,x,D,e,C,p,E,X,q,N,u,w,m,h;return g.O(function(B){if(B.Y==1){F.status=200;k=F.Y.get("docid");z=$s(F.Y.get("fmtid")||"");x=F.Y.get("lmt")||"0";D=+(F.Y.get("csz")||0);if(!k||!z||!D)throw Error("Invalid local URL");F.Y.get("ck")&&F.Y.get("civ")&&(e=new x4R(F.Y.get("ck"),F.Y.get("civ")));C=F.range;p=Math.floor(C.start/D);E=Math.floor(C.end/D);X=p}if(B.Y!=5)return X<=E?g.c(B,zEp(k,z,x,X,e),5):B.Sk(0);q=B.L;if(q===void 0)throw Error("invariant: data is undefined");N=X*D;u=(X+1)*D;
w=Math.max(0,C.start-N);m=Math.min(C.end+1,u)-(w+N);h=new Uint8Array(q.buffer,w,m);F.L.append(h);F.loaded+=m;F.loaded<C.length&&F.EH.rM((0,g.VE)(),F.loaded);X++;return B.Sk(2)})};
jyp=function(F,k,z,x){var D=this;x=x===void 0?{}:x;this.policy=k;this.EH=z;this.G=x;this.status=0;this.response=void 0;this.L=0;this.W=this.S=!1;this.errorMessage="";this.K=function(e){if(e)if(D.status=e.status,e.ok&&e.body&&D.status!==204)D.status=D.status||242,D.U=e.body.getReader(),D.z4()?D.U.cancel().catch(function(){}):(D.responseHeaders=e.headers,D.EH.hw(),$49(D));
else D.onDone();else D.onError(Error("null_response"))};
this.B=function(e){var C=(0,g.VE)();D.z4()||(e.done?(D.U=void 0,D.onDone()):(e=e.value,D.L+=e.length,D.Y.append(e),$49(D),D.EH.rM(C,D.L)))};
this.onError=function(e){D.errorMessage=String(e);D.S=!0;D.onDone()};
this.Y=new rx;this.j=window.AbortController?new AbortController:void 0;this.start(F)};
$49=function(F){F.U.read().then(F.B,F.onError).then(void 0,qA)};
eY9=function(F,k,z){var x=this;z=z===void 0?{}:z;this.EH=k;this.L=this.status=0;this.z4=this.Y=!1;this.xhr=new XMLHttpRequest;this.xhr.open(z.method||"GET",F);if(z.headers){F=z.headers;k=g.l(Object.keys(F));for(var D=k.next();!D.done;D=k.next())D=D.value,this.xhr.setRequestHeader(D,F[D])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(e){x.ER(e)};
F=td(function(e){x.onDone(e)});
this.xhr.addEventListener("load",F,!1);this.xhr.addEventListener("error",F,!1);z.body?this.xhr.send(z.body):this.xhr.send();this.xhr.addEventListener("progress",td(function(e){x.u7(e)}),!1)};
es=function(F,k,z,x,D){if(PO(F.base))return new D4n(F,z);F=F.q5();return x?UG5()?new x7(F,k,z,D):new jyp(F,k,z,D):new eY9(F,z,D)};
g.C4=function(F){this.tag=F};
CjY=function(F,k){AS.apply(null,[6,F,k].concat(g.r(g.v6.apply(2,arguments))))};
AXD=function(F,k){AS.apply(null,[5,F,k].concat(g.r(g.v6.apply(2,arguments))))};
AS=function(F,k,z){var x=g.v6.apply(3,arguments),D=F===6?"ERROR":"WARNING",e="b"+z;g.JV(new (Function.prototype.bind.apply(g.Fa,[null,e].concat(g.r(x)))),D);x.unshift(e);x=x.join(", ");D=pO9.get(k);if(!D){D="ytplog."+k;e=5;try{window.localStorage&&!isNaN(+window.localStorage[D])&&(e=+window.localStorage[D]),window.sessionStorage&&!isNaN(+window.sessionStorage[D])&&(e=+window.sessionStorage[D])}catch(E){}pO9.set(k,e);D=e}if(!(F<D)){D=ECD;e=D.Y.get(k);e||(e=new XOp,D.Y.set(k,e));D=e;e=Date.now();var C=
Math.floor((e-D.L)*.01);C>0&&(D.Y=Math.min(D.Y+C,10),D.L=e);D.Y>0?(D.Y--,D=!0):D=!1;if(D)typeof x==="function"&&(x=x()),console.log("plyr."+k,x);else{var p;x=((p=q_Y.get(k))!=null?p:0)+1;q_Y.set(k,x);x%100===1&&console.warn("plyr","plyr."+k+" is chatty, dropping logs.")}}};
XOp=function(){this.Y=10;this.L=Date.now()};
p4=function(F,k){g.S.call(this);var z=this;this.policy=F;this.sK=k;this.L=0;this.Y=null;this.ZF=[];this.U=null;this.Pe={Rp:function(){return z.sK}};
this.sK.length===1||g.ZO(this.sK,function(x){return!!x.range})};
Eu=function(F,k,z){F.Y&&(BZ(F.Y,k),k=F.Y,F.Y=null);for(var x=0,D=0,e=g.l(F.sK),C=e.next();!C.done;C=e.next())if(C=C.value,C.range&&x+C.U<=F.L)x+=C.U;else{k.getLength();if(bl(C)&&!z&&F.L+k.getLength()-D<x+C.U){F.Y=k.split(D).X9;return}a:{var p=F;var E=C,X=F.L-x,q=D,N=k,u=!!z,w=N.getLength()-q;E.range&&(w=Math.min(E.U-X,w));E=xia(E,E.L+X,w,E.range?E.L+X+w===E.range.length:u);q=GD(N,q,w);q=new DY(E,q);if(p.policy.useUmp&&p.ZF.length&&(N=g.$l(p.ZF[p.ZF.length-1],q))){p.ZF[p.ZF.length-1]=N;p=w;break a}p.ZF.push(q);
p=w}F.L+=p;D+=p;x+=C.U;if(D===k.getLength())break}k.getLength()};
Xj=function(F,k,z,x,D,e,C,p,E){E=E===void 0?!1:E;g.S.call(this);this.EH=F;this.policy=k;this.c7=z;this.ez=x;this.timing=D;this.logger=e;this.U=C;this.NS=p;this.W=E;this.lastError=null;this.Y=0;this.j=!1;this.L=new g.KS(this.BRJ,this.policy.Ki,this)};
NVM=function(F){F.ez.K=(0,g.VE)();F=qo(F);F.L=(0,g.VE)();F.started+=1};
m46=function(F,k,z,x){F.timing.Ru((0,g.VE)(),k,z);k=F.ez;k.L=0;k.W=0;k.G=0;rs(qo(F));x&&(x=qo(F),x.U+=1);if((x=F.NS)!=null&&(F=F.c7.base,!((0,g.VE)()<x.S+3E5||PO(F))&&(k=cO(F))&&uM6(k)&&x.L===No(k))){var D;O_(F)&&(D=cO(VJ(F)));g.SZ("yt-player-bandaid-host",{primary:k,secondary:D},864E3);x.S=(0,g.VE)();wO6(x,{primary:k,secondary:D})}};
uL=function(F){if(F.lastError==="ump.spsrejectfailure")F.policy.lJ||F.timing.Qh||Y35(F.ez,!1,F.c7,F.policy,F.U);else{if(F.lastError==="net.timeout")F.timing.Eb((0,g.VE)());else{var k=F.timing;fh(k,(0,g.VE)(),k.W)}if(F.lastError==="net.nocontent")++F.ez.G;else{if((k=F.lastError==="net.timeout"||F.lastError==="net.connect"||F.lastError==="net.closed")&&!PO(F.c7.base)){var z=qo(F);z.timedOut+=1}else z=qo(F),z.Y+=1;F.timing.Qh||Y35(F.ez,k,F.c7,F.policy,F.U)}}F.EH.pJ(5)};
wv=function(F,k,z,x,D){return k>=400?(F.lastError="net.badstatus",!0):(D===void 0?0:D)?(F.lastError="ump.spsrejectfailure",!0):z||x!==void 0&&x?!1:(F.lastError=k===204?"net.nocontent":"net.connect",!0)};
m0=function(F,k){if(F.policy.xV)return!1;var z=k.getResponseHeader("content-type"),x=k.h8();F=!x||x<=F.policy.Lt;return(!k.Aw()||!z||z.indexOf("text/plain")!==-1)&&F};
lND=function(F,k){var z="";k=k.Ds();k.getLength()<=F.policy.Lt&&(z=TVx(F,k.fk()));return z};
TVx=function(F,k){var z=cZ(k);return j9(z)?(F.logger.debug(function(){return"Redirecting to "+z}),z):""};
qo=function(F){return G6(F.U,cO(F.c7.base))};
QyH=function(F){var k=F.timing.Yr();k.shost=cO(F.c7.base);return k};
hY6=function(F,k){return(F==null?void 0:F.maxWidth)>(k==null?void 0:k.maxWidth)||(F==null?void 0:F.maxHeight)>(k==null?void 0:k.maxHeight)};
syI=function(F,k){for(var z=g.l(k.keys()),x=z.next();!x.done;x=z.next())if(x=k.get(x.value),x.length!==0){g.AO(x,function(p,E){return E.maxFramerate-p.maxFramerate});
for(var D=[x[0]],e=0,C=1;C<x.length;C++)hY6(x[C],D[e])&&(D.push(x[C]),e++);F=F.concat(D)}return F};
BVH=function(F,k){var z=[];k=g.l(k);for(var x=k.next();!x.done;x=k.next()){x=x.value;var D=rX5[x]||0;F.Y&&D>F.Y||z.push(x)}return z};
Tv=function(F,k,z){var x=GfH[F]||[];z.V("html5_shorts_onesie_mismatched_fix")&&(x=U4D[F]||[]);k.push.apply(k,g.r(x));z.V("html5_early_media_for_drm")&&k.push.apply(k,g.r(tpp[F]||[]))};
Vp5=function(F,k){var z=g.jk(F),x=F.C(),D=x.W;x=x.V("html5_shorts_onesie_mismatched_fix");var e=F.wI();if(x){if(!D.W){if(e&&lL)return lL;if(Qr)return Qr}}else if(Qr&&!D.W)return Qr;var C=[],p=[],E={},X=hS.concat(Zt6);x&&(X=hS.concat(vCn));F.V("html5_early_media_for_drm")&&(X=X.concat(cX5),F.V("allow_vp9_1080p_mq_enc")&&X.push(PjH));var q=[].concat(g.r(Ot9));if(z.U)for(var N=0;N<q.length;N++)q[N].length&&fP[q[N][0]]==="a"&&(q[N]=["141"]);if(z.mp)for(N=0;N<q.length;N++)q[N].length&&fP[q[N][0]]==="o"&&
(q[N]=["774"]);F.V("html5_iamf_audio_onesie_fmt")&&q.push(["773"]);X=g.l(X);for(var u=X.next();!u.done;u=X.next()){N=!1;u=g.l(u.value);for(var w=u.next();!w.done;w=u.next()){w=w.value;var m=$E(w,e&&x);if(m&&m.video&&!(oD(m)&&!z.Xf&&m.video.qualityOrdinal>z.l0)){var h=g.lw(F.C().experiments,"html5_drm_byterate_soft_cap");h>0&&uIx(m)&&m.Yu>h||(N?(C.push(w),Tv(w,C,F)):(m=QJ(z,m,D),m===!0?(N=!0,C.push(w),Tv(w,C,F)):E[w]=m))}}}q=g.l(q);for(X=q.next();!X.done;X=q.next())for(X=g.l(X.value),N=X.next();!N.done;N=
X.next())if(N=N.value,(u=eUH(N))&&u.audio&&(F.V("html5_onesie_51_audio")||!z$(u)&&!xb(u)))if(u=QJ(z,u,D),u===!0){p.push(N);Tv(N,p,F);break}else E[N]=u;z.L&&k("orfmts",E);if(x)return D.W&&(D.W=!1,lL=Qr=void 0),e?lL={video:C,audio:p}:Qr={video:C,audio:p};Qr={video:C,audio:p};D.W=!1;return Qr};
g.aN6=function(F,k,z){var x=z.W,D=[],e=[],C=z.V("html5_shorts_onesie_mismatched_fix");F=F.wI();var p=hS.concat(Zt6);C&&(p=hS.concat(vCn));z.V("html5_early_media_for_drm")&&(p=p.concat(cX5),z.V("allow_vp9_1080p_mq_enc")&&p.push(PjH));var E=[].concat(g.r(Ot9));if(k.U)for(var X=0;X<E.length;X++)E[X].length&&fP[E[X][0]]==="a"&&(E[X]=["141"]);if(k.mp)for(X=0;X<E.length;X++)E[X].length&&fP[E[X][0]]==="o"&&(E[X]=["774"]);z.V("html5_iamf_audio_onesie_fmt")&&E.push(["773"]);p=g.l(p);for(X=p.next();!X.done;X=
p.next()){X=g.l(X.value);for(var q=X.next();!q.done;q=X.next()){q=q.value;var N=$E(q,F&&C);if(N&&N.video){var u=g.lw(z.experiments,"html5_drm_byterate_soft_cap");if(!(u>0&&uIx(N)&&N.Yu>u)&&QJ(k,N,x)===!0){D.push({videoCodec:INn[fP[q]],maxWidth:N.video.width,maxHeight:N.video.height,maxFramerate:N.video.fps});break}}}}C=g.l(E);for(F=C.next();!F.done;F=C.next())for(F=g.l(F.value),E=F.next();!E.done;E=F.next())if(E=E.value,(p=eUH(E))&&p.audio&&(z.V("html5_onesie_51_audio")||!z$(p)&&!xb(p))&&QJ(k,p,x)===
!0){e.push({audioCodec:HtH[fP[E]],numChannels:p.audio.numChannels});break}return{videoFormatCapabilities:D,audioFormatCapabilities:e}};
rv=function(F){var k={},z=F.La,x=F.i$,D=z.getVideoData(),e=Yi(0),C=z.getPlayerSize(),p=z.getVisibilityState();e&&(k.jSR=e,k.lastManualDirection=vRC(),e=n2C()||0,e>0&&(e=(x.V("html5_use_date_now_for_local_storage")?Date.now():(0,g.VE)())-e,x.V("html5_use_date_now_for_local_storage")?e>0&&(k.timeSinceLastManualFormatSelectionMs=e):k.timeSinceLastManualFormatSelectionMs=e));e=x.V("html5_use_streamer_bandwidth_for_low_latency_live")&&D.isLowLatencyLiveStream;if(x.schedule.Qh&&!e){var E;e=x.V("html5_disable_bandwidth_cofactors_for_sabr_live")?
!((E=F.dl)==null||!E.F1):!1;k.CM=Qq(x.schedule,!e)}E=g.L_();var X=g.Yg.medium,q=Math.floor(X*16/9);e=D.wI()?X:q;X=D.wI()?q:X;k.jL=Math.max(C.width*E,e);k.Pg=Math.max(C.height*E,X);k.visibility=p;k.L$G=Vj();k.kz=z.uJ()*1E3;C=F.La.lS(!0);var N,u,w,m,h,B;k.bp_={defaultPolicy:(C==null?void 0:(N=C.AM)==null?void 0:N.Y)||0,smooth:(C==null?void 0:(u=C.GrQ)==null?void 0:u.Y)||0,visibility:(C==null?void 0:(w=C.RqG)==null?void 0:w.Y)||0,vg:(C==null?void 0:(m=C.dh)==null?void 0:m.Y)||0,performance:(C==null?
void 0:(h=C.XS)==null?void 0:h.Y)||0,speed:(C==null?void 0:(B=C.AHp)==null?void 0:B.Y)||0};var U;k.wcU=(C==null?void 0:(U=C.N$K)==null?void 0:U.Y)||0;x.V("html5_enable_sabr_authorized_drm_track_types")&&(k.z1=F.z1&&F.z1.length>0?F.z1:[1,2]);x.V("html5_enable_sabr_drm_hd720p")&&F.sabrLicenseConstraint&&(k.sabrLicenseConstraint=F.sabrLicenseConstraint);if(x.V("html5_onesie_media_capabilities")||x.V("html5_enable_server_format_filter"))k.kO=3;x.V("html5_onesie_audio_only_playback")&&ix(D)&&(k.kO=1);
var v;((v=F.dl)==null?0:v.UH)&&F.Kp4&&(k.kO=k.kO===void 0?7:k.kO|4);N=D.Nk?D.Nk:g.jk(D);x.V("html5_onesie_media_capabilities")&&(k.mediaCapabilities=g.aN6(D,N,x));var P;if((P=F.dl)==null?0:P.Y&&P.xY){w=x.W;P=[];u=[];m=new Map;x.V("html5_ssap_update_capabilities_on_change")?(w.Qh||ZRD(w),h=w.Qh||[]):h=Array.from(w.Y.values());h=g.l(h);for(B=h.next();!B.done;B=h.next())U=B.value,U.QZ?u.push({audioCodec:HtH[U.DQ],numChannels:U.numChannels,spatialCapabilityBitmask:S_6[U.DQ]}):(v=INn[U.DQ],B={videoCodec:v,
maxWidth:U.maxWidth||0,maxHeight:U.maxHeight||0,maxFramerate:U.maxFramerate||0,is10BitSupported:U.C5||!1},U.maxBitrateBps&&(B.maxBitrateBps=U.maxBitrateBps,C=$E(U.itag),p=void 0,((p=C)==null?0:p.video)&&QJ(N,C,w)===!0&&(C=C.Yu*8,C>B.maxBitrateBps&&(B.maxBitrateBps=C))),U=v+"_"+U.C5,v=m.get(U)||[],v.push(B),m.set(U,v));P=syI(P,m);w={};x.V("html5_ssff_denylist_opus_low")&&(w={itagDenylist:[249,350]});k.mediaCapabilities={videoFormatCapabilities:P,audioFormatCapabilities:u,hdrModeBitmask:3,perPlaybackAttributes:w}}var I;
if((I=F.dl)==null?0:I.Y){k.Nm=N.Nm;var d;k.l0=(d=F.dl)==null?void 0:d.l0}x.Om&&(k.MQ=x.Om);k.MO=F.GG;k.eM=F.eM;k.Wy=F.Wy;k.P6=F.P6;if(x.V("html5_fix_time_since_last_seek_reporting")?F.Ku!==void 0:F.Ku)k.U4$=(0,g.VE)()-F.Ku;F.isPrefetch&&x.V("html5_report_prefetch_requests")&&(k.isPrefetch=!0);kH||(k.NHU=!0);I=ma(x.schedule)*1E3;I>0&&(k.mq=I);var W;((W=F.dl)==null?0:W.JA)&&F.zH&&F.zH<Infinity&&(k.zH=F.zH);z=z.getPlaybackRate();z!==1&&(k.playbackRate=z);var M;((M=F.dl)==null?0:M.We)&&F.WC&&(k.Md=F.Md,
k.eW=F.eW,k.WC=F.WC);x.V("allow_proxima_live_latency")&&(nN()===1&&(k.FYU=1),x.V("html5_sabr_force_proxima")&&(k.hl4=1),M=g.lw(x.experiments,"html5_sabr_force_max_network_interruption_duration_ms"),k.lD$=M>0?M:x.schedule.interruptions[0]||0);var xY;if((xY=F.dl)==null?0:xY.qD)k.ZG=F.ZG;x.V("html5_sabr_enable_server_xtag_selection")&&(D.ET||x.Xm)&&(k.audioTrackId=D.ET||x.Xm);var $Y;if(($Y=F.dl)==null?0:$Y.x4)if(F=XuR())k.detailedNetworkType=btn[F]||btn.other;return k};
Br=function(F,k,z,x,D,e,C){var p={};k&&(p.z7=k);if(!F)return p;p.playbackCookie=z==null?void 0:z.playbackCookie;D&&(p.E_=D);p.yq=[];p.QI=[];if(C==null?0:C.size)for(k=g.l(C.values()),z=k.next();!z.done;z=k.next())p.QI.push(z.value);if(F.sabrContextUpdates.size>0)for(k=g.l(F.sabrContextUpdates.values()),z=k.next();!z.done;z=k.next())d4x(p,z.value,x);$J(F)&&!g.Mk(F)&&F.V("html5_enable_sabr_request_pipelining")&&e&&d4x(p,e,x);F.yI&&(p.nA$=F.yI);x=F.C().Y;p.clientInfo={clientName:JXn[x.c.toUpperCase()]||
0};x.cbrand&&(p.clientInfo.deviceMake=x.cbrand);x.cmodel&&(p.clientInfo.deviceModel=x.cmodel);x.cver&&(p.clientInfo.clientVersion=x.cver);x.cos&&(p.clientInfo.osName=x.cos);x.cosver&&(p.clientInfo.osVersion=x.cosver);x=F.C();x.V("html5_sabr_enable_server_xtag_selection")&&x.mY&&(p.clientInfo.hl=x.mY);F.vF&&(p.vF=F.vF);return p};
d4x=function(F,k,z){var x=k.type||0;(z==null?0:z.has(x))?F.QI.push(k):F.yq.push(x)};
bo=function(F,k,z,x,D,e){var C=e===void 0?{}:e;var p=C.Ll===void 0?[]:C.Ll;var E=C.Pu===void 0?!1:C.Pu;var X=C.uO===void 0?0:C.uO;var q=C.poToken===void 0?"":C.poToken;var N=C.NS===void 0?void 0:C.NS;var u=C.T8===void 0?"":C.T8;var w=C.w$===void 0?0:C.w$;var m=C.q4===void 0?new Uint8Array(0):C.q4;var h=C.aG===void 0?!1:C.aG;e=C.Ly===void 0?0:C.Ly;C=C.z7===void 0?void 0:C.z7;zv.call(this,k,D);var B=this;this.policy=F;this.logger=new g.C4("dash/request");this.gX=this.H5=0;this.il=!1;this.YF=this.wV=
null;this.Wb=!1;this.q4=this.w$=null;this.oG=this.cH=!1;this.VD=null;this.Ly=this.r5=0;this.Oe=!1;this.Pe={pJ:function(v){B.pJ(v)},
GnK:function(){return B.yZ},
Qt4:function(v){B.yZ=v},
UIR:function(v){B.H5=v},
LgK:function(v){B.nJ.lastError=v},
PK:function(){return B.xhr}};
this.timing=new WV(this,z);this.Pu=E;this.w$=w;this.q4=m;this.c7=g.Lz(this.info,this.policy,x);this.c7.set("rn",this.Dh().toString());this.c7.set("rbuf",(X*1E3).toFixed().toString());this.Pu&&this.c7.set("smb","1");this.policy.Bx&&q&&this.c7.set("pot",q);u&&this.c7.set("bbs",u);this.policy.useUmp&&!PO(this.c7.base)&&(this.S1=new oi(this),this.c7.set("ump","1"),this.c7.set("srfvp","1"));if(F=this.policy.w2?this.policy.e0&&!isNaN(this.info.o3)&&this.info.o3>this.policy.pI?!1:!0:!1)k=null,this.policy.RN&&
this.policy.I6?k=[1]:h&&(k=[]),k!=null&&(this.policy.c9&&k.push(2),this.c7.set("defsel",k.join(",")));this.nJ=new Xj(this,this.policy,this.c7,this.info.ez,this.timing,this.logger,x,N);this.Ll=p||null;this.g_=yXa(this);NVM(this.nJ);x=void 0;if(this.policy.wD||this.S1||this.policy.yh)x={method:"POST"},p=(0,g.Gv)([120,0]),N={},this.policy.OW&&C&&(C=Br(void 0,C),N.Xi=C),this.policy.pj&&this.q4&&(N.videoPlaybackUstreamerConfig=this.q4),this.policy.yh&&(C=this.info.j)&&Object.assign(N,C),Object.keys(N).length>
0?x.body=g.zx(N,g.$C):x.body=p;if(this.w$&&this.q4){this.c7.set("iwts","1");x={method:"POST"};C={P6:this.w$*1E3};var U;p=(U=this.info.j)==null?void 0:U.ea;U=g.zx({a9:C,ea:p||void 0,videoPlaybackUstreamerConfig:this.q4},g.$C);x.body=U}try{this.xhr=es(this.c7,this.policy.B,this.timing,F,x),this.nJ.L.start(),e&&(this.Dn=new g.KS(this.NW,e,this),this.Dn.start(e+(this.timing.g3.B.Uz()||0)*1E3)),this.policy.nt&&Kh(this.timing,this.q5()),this.logger.debug(function(){return"Sent, itag="+B.c7.get("itag")+
" seg="+B.info.sK[0].gt+" range="+B.c7.get("range")+" time="+Math.round(B.info.sK[0].j)+"-"+Math.round(g.YG(B.info.sK).S)+" rtp="+(B.timing.H4()-Date.now()).toFixed(0)}),g.lh(function(){})}catch(v){RYC(this,v,!0)}};
yXa=function(F){if(!(Mp(F.info)&&F.info.d0()&&F.policy.Om&&F.Ll)||F.info.ez.L>=2||Yi()>0||!VaD())return!1;var k=F.c7.get("aitags");if(!k)return!1;k=$s(k).split(",");for(var z=[],x=g.l(F.Ll),D=x.next();!D.done;D=x.next())D=D.value,g.fC(k,D)&&z.push(D);if(!z.length)return!1;F.c7.set("altitags",g.D8(z.join(",")));return!0};
RYC=function(F,k,z){z=z===void 0?!1:z;g.JV(k);F.nJ.lastError="player.exception";F.errorMessage=k.name+"_"+k.message;z?g.lh(function(){uL(F.nJ)}):uL(F.nJ)};
gCn=function(F,k){F.timing.Qh=!0;F.xhr.Aw()&&F.timing.X4();if(F.policy.yf){var z;(z=F.Dn)==null||z.stop()}Eu(F.yZ,k,!1)};
Y_I=function(F,k){F.info=k;if(F.yZ){var z=F.yZ;k=k.sK;(k.length!==z.sK.length||k.length<z.ZF.length)&&AXD("dash/request",260511119,""+k.length,""+z.sK.length,""+z.ZF.length);z.sK=k;for(var x=k[0].range,D=new rx,e=0;e<z.ZF.length;e++)BZ(D,z.ZF[e].Y);for(e=0;e<z.ZF.length;e++){z.ZF[e].info=k[e];var C=k[e].range;z.ZF[e].Y=GD(D,C.start-x.start,C.length)}}F.g_=!1};
nCC=function(F){F.r5&&(F.xhr.status=F.r5,F.H5=F.r5)};
Uu=function(F,k){Lh.call(this,F,k);this.cR=!0;this.t4=!1;this.J4=this.l$=0;this.RU=NaN};
Mp5=function(F,k,z){var x=F.Ld?Math.max(k,z/F.Ld):k,D=F.g3.L.U;D&&(x=k,F.Ld&&(x=Math.max(k,z/F.Ld*D)));NU(F.g3,k,z,x)};
tS=function(F){this.L={};this.logger=new g.C4(F)};
ZF=function(F){tS.call(this,"sabr");this.EH=F};
vr=function(F){g.S.call(this);this.j=F;this.logger=new g.C4("onesie");this.Al=new Map;this.L=this.Y=!1;this.dl=this.b$=null;this.U=!1};
Lyn=function(F,k,z){F.Al.get(k).u7=z};
Ou=function(F,k){F.Al.has(k)&&(cr?F.Al.get(k).u0.clear():F.Al.get(k).ZF=new rx,Pr(F,k),F.L=!0)};
fNY=function(F){for(var k=g.l(F.Al),z=k.next();!z.done;z=k.next()){var x=g.l(z.value);z=x.next().value;x=x.next().value;x.QE||Ou(F,z)}};
KyI=function(F,k){k=F.Al.get(k);if(!k)return 0;F=0;if(k.sK.length>0){k=g.l(k.sK);for(var z=k.next();!z.done;z=k.next()){var x=void 0;F+=((x=z.value.range)==null?void 0:x.length)||0}return F}if(k.g7.length>0)for(z=g.l(k.g7),x=z.next();!x.done;x=z.next())F+=x.value.tf||0;return F+k.AQ};
Vr=function(F,k){if(cr){var z=0;F=F.Al.get(k);if(F==null||!F.u0)return 0;F=g.l(F.u0.values());for(k=F.next();!k.done;k=F.next())z+=k.value.data.getLength();return z}return((z=F.Al.get(k))==null?void 0:z.ZF.getLength())||0};
Ii=function(F,k){F=F.Al.get(k);if(cr){if(F==null||!F.QE)return!1;k=F.u0.size>0;return F.eF.length>0||k}return!(F==null||!F.QE)&&!(F==null||!F.ZF.getLength())};
WyR=function(F,k){var z=F.Al.get(k),x=KyI(F,k),D=!x&&!!z.bytesReceived;if(cr){var e;if((e=F.b$)==null?0:e.oS){F=g.l(z.u0.values());for(k=F.next();!k.done;k=F.next())if(!k.value.pU)return!1;return D}}else if(e=F.Nt(k),D&&F.Y&&e!==void 0)return e;return(D||z.bytesReceived===x)&&z.E9+Vr(F,k)===z.bytesReceived};
FDp=function(F,k,z){F.Al.set(k,{ZF:new rx,E9:0,bytesReceived:0,AQ:0,Dc:!1,j5:!1,Nt:!1,QZ:z,WJ:[],sK:[],g7:[],QE:!1,u0:new Map,dD:new Map,eF:[]});F.logger.debug(function(){return"[initStream] formatId: "+k})};
k6C=function(F,k,z,x){z.sK.push.apply(z.sK,g.r(x));if(cr){z.dD.has(k)||z.dD.set(k,[]);var D;(D=z.dD.get(k)).push.apply(D,g.r(x))}else if(z.yZ)for(F=g.l(x),k=F.next();!k.done;k=F.next())z.yZ.sK.push(k.value);else{z.yZ=new p4(F.dl,[].concat(g.r(z.sK)));var e;((e=F.dl)==null?0:e.Sh)&&g.b(F,z.yZ)}};
od6=function(F,k,z){var x,D=(x=F.b$)==null?void 0:x.U.get(k);if(!D)return[];if(z.ox){var e;return((e=D.z0(0,z.clipId))==null?void 0:e.sK)||[]}if(D.Ut()){var C=z.startMs,p=z.durationMs,E=1E3,X;if(((X=F.dl)==null?0:X.Y)&&z.timeRange){var q;C=(q=z.timeRange.startTicks)!=null?q:-1;var N;p=(N=z.timeRange.Bt)!=null?N:-1;var u;E=(u=z.timeRange.timescale)!=null?u:-1}if(z.Me<0||z.uK<0||p<0||C<0||z.tf<0||E<0)return Ou(F,k),[];F=Hf(z.Me,z.tf);k=z.mS||0;return[new Sw(3,D,F,"makeSliceInfosMediaBytes",z.uK-1,C/
E,p/E,k,F.length-k,void 0,z.vM,z.clipId)]}if(z.uK<0)return Ou(F,k),[];var w;return((w=F.b$)==null?0:w.oS)?(k=D.dO,X=k*D.info.Yu,q=((C=F.dl)==null?0:C.Vz)?z.mS:void 0,((E=F.dl)==null?0:E.KB)&&z.timeRange&&!q&&(p=z.timeRange.startTicks/z.timeRange.timescale),[new Sw(3,D,void 0,"makeSliceInfosMediaBytes",z.uK,p,k,q,X,!0,z.vM,z.clipId)]):[]};
zMY=function(F,k,z){F.b$=k;F.dl=z;k=g.l(F.Al);for(z=k.next();!z.done;z=k.next()){var x=g.l(z.value);z=x.next().value;x=x.next().value;for(var D=g.l(x.WJ),e=D.next();!e.done;e=D.next()){e=e.value;var C=od6(F,z,e);k6C(F,e.BZ,x,C)}}};
Hr=function(F,k,z,x){F.logger.debug(function(){return"[addStreamData] formatId: "+z+",headerId: "+k+" bytes: "+x.getLength()});
(F=F.Al.get(z))&&!F.j5&&(cr?(F.u0.has(k)||F.u0.set(k,{data:new rx,xW:0,pU:!1}),BZ(F.u0.get(k).data,x)):BZ(F.ZF,x),F.bytesReceived+=x.getLength(),F.Dc=!0)};
Pr=function(F,k){F.logger.debug(function(){return"[closeStream] formatId: "+k});
var z=F.Al.get(k);z&&!z.j5&&(z.j5=!0,z.u7&&z.u7(),xpC(F)&&F.j.Fd())};
xpC=function(F){F=g.l(F.Al.values());for(var k=F.next();!k.done;k=F.next())if(!k.value.j5)return!1;return!0};
ai=function(F,k,z,x,D,e,C,p){g.S.call(this);this.policy=F;this.info=k;this.b$=z;this.EH=D;this.Bo=p;this.logger=new g.C4("sabr");this.S1=new oi(this);this.PW=new ZF(this);this.jO=new vr(this);this.state=1;this.QT=!1;this.Qo=0;this.clipId="";this.zw=this.Io=-1;this.CK=0;this.kE=-1;this.Oe=this.vp=!1;this.oD=0;this.PQ=!1;this.policy.YO?this.Fs=new Uu(this,e):this.Fs=new WV(this,e);this.c7=this.policy.qD?k.HL:izn(k,this.policy,x);this.c7.set("rn",""+this.Dh());this.c7.set("alr","yes");zMY(this.jO,z,
F);this.nJ=new Xj(this,this.policy,this.c7,k.ez,this.Fs,this.logger,x,C,this.policy.enableServerDrivenRequestCancellation);NVM(this.nJ);var E;if((E=this.policy)==null?0:E.Sh)g.b(this,this.jO),g.b(this,this.nJ);F=k.L;k={method:"POST",body:F};F&&(this.CK=F.length);try{this.xhr=es(this.c7,this.policy.B,this.Fs,kH,k),this.policy.nt&&Kh(this.Fs,this.q5()),this.nJ.L.start()}catch(X){g.yI(X)}};
Dpp=function(F){F.policy.SF&&F.ql&&!F.PQ?F.PQ=!0:F.Fs.X4()};
$pD=function(F,k){var z=-1,x=-1,D=-1,e;if((e=F.UP)==null?0:e.items)for(F=g.l(F.UP.items),e=F.next();!e.done;e=F.next())e=e.value,k<e.zB||e.zB<z||(z=e.zB,x=e.vk,D=e.minReadaheadMs);return{aDk:z,vk:x,ou:D}};
j0D=function(F){this.Y=F;this.K=this.cR=this.G=this.Xf=this.j=this.W=this.S=this.mp=this.B=this.yh=this.PR=this.t4=this.Qh=0;this.ticks={}};
Ss=function(F){F.Qh||(F.Qh=(0,g.VE)(),PE("mb_s",F.Qh,F.Y))};
eMI=function(F){F.t4||(F.t4=(0,g.VE)(),PE("ovfs_rp",F.t4,F.Y))};
ClM=function(F){F.PR||(F.PR=(0,g.VE)(),PE("oafs_rp",F.PR,F.Y))};
AvR=function(F){F.W||(F.W=(0,g.VE)(),PE("vda",F.W,F.Y),F.j&&eB(g.$K(),4))};
pf5=function(F){F.j||(F.j=(0,g.VE)(),PE("ada",F.j,F.Y),F.W&&eB(g.$K(),4))};
Edn=function(F){F.Xf||(F.Xf=(0,g.VE)(),PE("vis_a",F.Xf,F.Y))};
Xfn=function(F){F.G||(F.G=(0,g.VE)(),PE("ais_a",F.G,F.Y))};
qO9=function(F){F.cR||(F.cR=(0,g.VE)(),PE("vrb_f",F.cR,F.Y))};
Nsp=function(F){F.K||(F.K=(0,g.VE)(),PE("arb_f",F.K,F.Y))};
u5k=function(F,k,z){var x=k instanceof ai&&!F.U&&!F.L,D=!F.U&&(z==null?void 0:z.info.video);z=!F.L&&(z==null?void 0:z.info.audio);k.state===3?((D||x)&&F.tick("vrr"),(z||x)&&F.tick("arr")):k.state===4?D?(F.U=k.q5(),eB(g.$K(),4)):z&&(F.L=k.q5()):k instanceof bo&&k.ZO()&&D&&eB(g.$K(),4)};
wfY=function(F){return!!F.L&&!!F.U};
bL=function(F,k,z,x,D,e,C){g.uG.call(this);var p=this;this.aU=F;this.b$=k;this.policy=z;this.videoTrack=x;this.audioTrack=D;this.w3=C;this.Qh=this.Y=null;this.S=this.G=NaN;this.B=0;this.K=NaN;this.U=null;this.mp=this.t4=NaN;this.Xf=new Map;this.PR=this.W=this.j=NaN;this.Pe={AgU:function(){return p.L}};
this.L=e?1:0};
Tsk=function(F,k,z,x){x=x===void 0?!0:x;if(z&&!F.Xf.has(k.gt)){for(var D=k.startTime,e=[],C=0;C<z.Y.length;C++){var p=z.Y[C],E=D;D=E+z.L[C];e.push({startTime:E,endTime:D,adCpn:p})}F.Xf.set(k.gt,e)}if(F.policy.D7)if(D=F.Qh&&k.gt===F.Qh.gt+1,F.Qh=k,e=F.Y&&k.gt===F.Y.gt+1,e=F.Y&&D&&e&&F.Y.w9.event!=="stop"&&F.Y.w9.event!=="predictStart",C=k.w9||null,p=F.videoTrack.Y.index.OJ(),p=k.gt>=p,E=F.b$.isManifestless&&F.policy.bO,C){var X;if(((X=F.Y)==null?void 0:X.w9.event)==="predictStart"&&F.Y.gt<k.gt&&C.event===
"stop"){var q;F.aU.handleError("ssdai.missingstartcueevent",{lastpredict:((q=F.Y)==null?void 0:q.gt)||0,csq:k.gt},0)}F.Y={w9:C,gt:k.gt,FB:!!z,Ci:x};p?dv(F,C,k.gt):E&&(D?e?dv(F,C,k.gt):C.event==="continue"||C.event==="stop"?mpR(F,k):dv(F,C,k.gt):dv(F,C,k.gt))}else e&&mpR(F,k),F.L===4&&JS(F,5,"qend")};
dv=function(F,k,z){k.startSecs+=isNaN(F.B)?0:F.B;F=F.b$;F.t4.push(k);F.publish("cuepointsadded",z)};
lrY=function(F,k,z){if(F.L!==0&&z&&k.sK[0].Ci()){var x=k.sK[0].gt,D=k.sK[0].j;k=k.isDecorated();yr(F,x,D,k,z)}};
yr=function(F,k,z,x,D){var e;k!==((e=F.Y)==null?void 0:e.gt)||F.L===1||x||F.Y.w9.event==="predictStart"||F.UK("sdai",{undecevt:1,sq:k,mt:z,evt:F.Y.w9.event},!0);k>F.S&&(F.S=NaN,F.G=NaN);F.Y&&F.Y.gt===k?Q0n(F,k,z,F.Y,D):F.L===1&&JS(F,5,"noad")};
Q0n=function(F,k,z,x,D){if(D&&x){var e=x.w9,C=D.vD(e);e.event==="predictStart"&&(F.PR=k);F.UK("sdai",{onqevt:e.event,sq:k,mt:z,gab:C,cst:e.startSecs,cueid:F.policy.oh&&(C||e.event==="start")?e.identifier:void 0},!0);if(C)if(e.event!=="predictStart")e.event==="start"&&F.PR===k-1&&F.UK("sdai",{gabonstart:k}),x.FB?JS(F,4,"cue"):(F.S=k,F.G=z,F.UK("sdai",{joinad:F.L,sg:F.S,st:F.G.toFixed(3)}),F.K=Date.now(),JS(F,2,"join"),D.Da(x.w9));else{var p=k+Math.max(Math.ceil(-e.Y/5E3),1);C=Math.floor(z-e.Y/1E3);
F.policy.W?F.W=C:F.j=p;F.UK("sdai",{onpred:z,estsq:p,estmt:C.toFixed(3)});Ri(F.aU,C,C,p);F.K=Date.now();JS(F,3,"predict");D.Da(x.w9)}else F.L===1?((p=F.U)==null?0:p.d6(z))?(Ri(F.aU,z,z,k),JS(F,4,"sk2had")):JS(F,5,"nogab"):e.event==="predictStart"&&(F.policy.W&&F.W>0?(z=Math.floor(z-e.Y/1E3),F.W!==z&&F.UK("sdai",{updateSt:z,old:F.W}),F.W=z):F.j>0&&(z=k+Math.max(Math.ceil(-e.Y/5E3),1),F.j!==z&&(F.UK("sdai",{updateSt:z,old:F.j}),F.j=z)));var E,X;if(F.w3&&e.event==="start"&&((E=F.Y)==null?void 0:E.w9.event)!==
"predictStart"&&((X=F.Y)==null?void 0:X.gt)===k-1){var q;F.UK("sdai",{ovlpst:(q=F.Y)==null?void 0:q.w9.event,sq:k})}}else F.UK("sdai",{nulldec:1,sq:k,mt:z.toFixed(3),evt:(x==null?void 0:(e=x.w9)==null?void 0:e.event)||"none"})};
s0I=function(F,k,z){if(F.policy.qo&&F.policy.W)return!(F.L===1||F.L===2||F.L===3&&z>=F.j);if(F.L===1||F.L===2)return!1;if(F.L!==0&&k===F.audioTrack){if(F.policy.W)return hM9(F.videoTrack,z)||hM9(F.videoTrack,z+1);F=gv(F.videoTrack);if(z>(F?F.gt:-1))return!1}return!0};
Y7=function(F,k,z){return(z<0||z===F.S)&&!isNaN(F.G)?F.G:k};
mpR=function(F,k){if(F.Y){var z=F.Y.w9.B8-(k.startTime+F.B-F.Y.w9.startSecs);z<=0||(z=new nt(F.Y.w9.startSecs-(isNaN(F.B)?0:F.B),z,F.Y.w9.context,F.Y.w9.identifier,"stop",F.Y.w9.Y+k.duration*1E3),F.UK("cuepointdiscontinuity",{segNum:k.gt}),dv(F,z,k.gt))}};
JS=function(F,k,z){F.L!==k&&(F.UK("sdai",{setsst:k,old:F.L,r:z}),F.L=k)};
n4=function(F,k,z,x){(x===void 0?0:x)?JS(F,1,"seek"):k>0&&Math.abs(k-z)>=5&&F.L===4&&JS(F,5,"sk2t."+k.toFixed(2)+";ct."+z.toFixed(2))};
Mo=function(F,k,z){this.audio=F;this.video=k;this.reason=z};
L4=function(F,k,z){this.Y=F;this.reason=k;this.token=z;this.videoId=void 0};
f4=function(F,k,z){g.S.call(this);this.policy=F;this.j=k;this.UK=z;this.U=new Map;this.W=0;this.S=!1;this.Y="";this.L=!1};
K4=function(F,k,z){if(z===void 0?0:z)F.S=!0;++F.W;z=6E4*Math.pow(2,F.W);z=(0,g.VE)()+z;F.U.set(k.info.id,z)};
Wr=function(F){for(var k=g.l(F.U.entries()),z=k.next();!z.done;z=k.next()){var x=g.l(z.value);z=x.next().value;x=x.next().value;x<(0,g.VE)()&&F.U.delete(z)}return F.U};
rvx=function(F){return F.S&&Wr(F).size>0};
F1=function(F,k){F.Y!==k&&(F.Y=k,F.L=!0)};
Bsk=function(F,k){var z;k&&(z=g.M$(F.j.Y,function(D){return D.id===k}));
if(!z&&(z=g.M$(F.j.Y,function(D){var e;return!((e=D.ZD)==null||!e.isDefault)}),k)){var x;
F.UK("iaf",{id:k,sid:(x=z)==null?void 0:x.id})}return z};
ob=function(F,k,z,x,D,e){var C=this;e=e===void 0?[]:e;this.aU=F;this.t4=k;this.policy=z;this.b$=x;this.S=D;this.kG=e;this.logger=new g.C4("dash/abr");this.Y=y6;this.U=this.G=null;this.K=-1;this.cR=!1;this.nextVideo=this.L=null;this.j=[];this.J4=new Set;this.yh={};this.NJ=new p_(1);this.B=0;this.RU=this.PR=this.Qh=!1;this.mp=0;this.u$=!1;this.Xf=new Set;this.l$=!1;this.Pe={hJ:function(){kF(C)}};
this.W=new f4(this.policy,D,function(p,E){C.aU.UK(p,E)})};
vdp=function(F,k,z){za(F,k);k=Bsk(F.W,z);z||k||(k=G6Y(F));k=k||F.S.Y[0];F.L=F.b$.Y[k.id];kF(F);F.G=F.L;Up6(F);twa(F);F.U=F.nextVideo;F.G=F.L;return Zz9(F)};
Ozn=function(F,k){if(cvx(F,k))return null;if(k.reason==="m"&&k.isLocked())return F.logger.debug(function(){return"User sets constraint to: "+uj(k)}),za(F,k),F.B=F.j.length-1,kF(F),xF(F),F.PR=F.PR||F.U!==F.nextVideo,F.U=F.nextVideo,new Mo(F.L,F.U,k.reason);
k.reason==="r"&&(F.K=-1);za(F,k);xF(F);if(k.reason==="r"&&F.nextVideo===F.U)return new Mo(F.L,F.nextVideo,k.reason);Plp(F);return null};
Vwa=function(F,k,z){F.L=F.b$.Y[k];F.G=F.L;return new Mo(F.G,F.U,z?"t":"m")};
Irp=function(F,k){if(k.info.video){if(F.U!==k)return F.U=k,Zz9(F)}else F.RU=F.G!==k,F.G=k;return null};
Hzn=function(F,k){if(k.Y.info.video&&k.W){var z=(k.L+k.U)/k.duration,x=k.Y.info.Yu;z&&x&&(F.NJ.K$(1,z/x),F.policy.U&&z/x>1.5&&F.aU.UK("overshoot",{sq:k.gt,br:z,max:x}))}};
i9=function(F,k,z){K4(F.W,k,z===void 0?!1:z);F.K=-1;za(F,F.Y)};
arD=function(F,k){return new Mo(F.G,F.U,k||F.Y.reason)};
Plp=function(F){if(F.U&&F.nextVideo&&D_(F,F.U.info)<D_(F,F.nextVideo.info)){var k=F.Y.reason;F.Qh=F.Qh||k==="r"||k==="u"||k==="v"}};
Zz9=function(F){F.cR?F.cR=!1:F.K=(0,g.VE)();F.Qh=!1;F.l$=!1;return new Mo(F.G,F.U,F.Y.reason)};
SOY=function(F,k){var z={};k=g.l(k);for(var x=k.next();!x.done;x=k.next())if((x=x.value)&&x.video){var D=x.video.qualityOrdinal,e=z[D],C=e&&oD(e)&&e.video.qualityOrdinal>F.policy.l0,p=D<=F.policy.l0?oD(x):Ww(x);if(!e||C||p)z[D]=x}return z};
za=function(F,k){F.Y=k;var z=F.S.videoInfos;if(!F.Y.isLocked()){var x=(0,g.VE)();z=g.pT(z,function(p){if(p.Yu>this.policy.Yu)return!1;var E=this.b$.Y[p.id];return Wr(this.W).get(p.id)>x?!1:E.ez.L>4||E.S>4?(this.logger.debug(function(){return"Remove "+pm(p)+"; 4 load failures"}),!1):this.Xf.has(+p.itag)?!1:!0},F);
rvx(F.W)&&(z=g.pT(z,function(p){return p.video.width<=854&&p.video.height<=480}))}z.length||(z=F.S.videoInfos);
var D=z;F.policy.Yv&&(D=bzk(F,D,k));D=g.pT(D,k.j,k);if(F.Y.isLocked()&&F.W.Y){var e=g.M$(z,function(p){return p.id===F.W.Y});
e?D=[e]:F1(F.W,"")}F.policy.Yv||(D=bzk(F,D,k));D.length||(D=[z[0]]);D.sort(function(p,E){return D_(F,p)-D_(F,E)});
k={};for(z=1;z<D.length;k={Q4:void 0,Hw:void 0},z++)k.Hw=D[z-1],k.Q4=D[z],k.Hw.video.width>k.Q4.video.width?(g.Wl(D,z),z--):D_(F,k.Hw)*F.policy.K>D_(F,k.Q4)&&(g.Wl(D,z-1),z--);var C=D[D.length-1];F.u$=!!F.U&&!!F.U.info&&F.U.info.DQ!==C.DQ;F.logger.debug(function(){return"Constraint: "+uj(F.Y)+", "+D.length+" fmts selectable, max selectable fmt: "+pm(C)});
F.j=D;F.J4.clear();k=!1;for(z=0;z<D.length;z++)k?F.J4.add(D[z].itag):D[z].video.qualityOrdinal>=1080&&(k=!0);dpR(F.policy,C,F.b$.oS)};
bzk=function(F,k,z){var x=z.reason==="m"||z.reason==="s";F.policy.VY&&$F&&g.GX&&(!x||z.Y<1080)&&(k=k.filter(function(X){return X.video&&(!X.L||X.L.powerEfficient)}));
if(k.length>0)if(Mi()){var D=SOY(F,k);k=k.filter(function(X){return!!X&&!!X.video&&X.DQ===D[X.video.qualityOrdinal].DQ})}else{var e,C,p=(e=k[0])==null?void 0:(C=e.video)==null?void 0:C.qualityOrdinal;
if(p){z=k.filter(function(X){return!!X&&!!X.video&&X.video.qualityOrdinal===p});
var E=SOY(F,z)[p].DQ;k=k.filter(function(X){return!!X&&!!X.video&&X.DQ===E})}}return k};
Jv6=function(F,k){for(var z=0;z+1<F.j.length&&F.j[z].video.quality==="tiny";)z++;var x=PV(F.t4)/F.policy.K;return D_(F,k.info)+D_(F,F.j[z])>x};
kF=function(F){if(!F.L||!F.policy.j&&!F.L.info.ZD){var k=F.S.Y;F.L&&(k=k.filter(function(x){return x.audio.Y===F.L.info.audio.Y}),k.length||(k=F.S.Y));
F.L=F.b$.Y[k[0].id];if(k.length>1){if(F.policy.Hx){if(F.policy.qn&&F.G===null){var z=g.tW(k,function(x){return x.audio.audioQuality});
F.aU.UK("aq",{hqa:F.policy.l$,qs:z.join("_")})}if(F.policy.l$)return;if(z=g.M$(k,function(x){return x.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}))F.L=F.b$.Y[z.id]}z=!1;
if(z=F.policy.ZR?!0:F.Y.isLocked()?F.Y.Y<240:Jv6(F,F.L))F.L=F.b$.Y[g.YG(k).id]}}};
xF=function(F){if(!F.nextVideo||!F.policy.j)if(F.Y.isLocked())F.nextVideo=F.Y.Y<=360?F.b$.Y[F.j[0].id]:F.b$.Y[g.YG(F.j).id],F.logger.debug(function(){return"Select max fmt: "+pm(F.nextVideo.info)});
else{for(var k=Math.min(F.B,F.j.length-1),z=PV(F.t4),x=D_(F,F.L.info),D=z/F.policy.Qh-x;k>0&&!(D_(F,F.j[k])<=D);k--);for(var e=z/F.policy.K-x;k<F.j.length-1&&!(D_(F,F.j[k+1])>=e);k++);F.nextVideo=F.b$.Y[F.j[k].id];F.B!==k&&F.logger.info(function(){return"Adapt to: "+pm(F.nextVideo.info)+", bandwidth: "+z.toFixed(0)+", bandwidth to downgrade: "+D.toFixed(0)+", bandwidth to upgrade: "+e.toFixed(0)+", constraint: "+uj(F.Y)});
F.B=k}};
Up6=function(F){var k=F.policy.Qh,z=PV(F.t4),x=z/k-D_(F,F.L.info);k=g.LC(F.j,function(D){return D_(this,D)<x},F);
k<0&&(k=0);F.B=k;F.nextVideo=F.b$.Y[F.j[k].id];F.logger.info(function(){return"Initial selected fmt: "+pm(F.nextVideo.info)+", bandwidth: "+z.toFixed(0)+", max video byterate: "+x.toFixed(0)})};
twa=function(F){if(F.kG.length){var k=F.kG,z=function(x,D){if(x.info.DQ==="f"||k.includes(Pf(g.$b(x.info,F.b$.oS))))return x;for(var e={},C=0;C<D.length;e={yN:void 0,aC:void 0},C++){var p=F.b$.Y[D[C].id];if(k.includes(Pf(g.$b(p.info,F.b$.oS)))){var E=x.info.DQ,X=p.info.DQ;if(E===X||Mi()){if(x.info.Y!==p.info.Y)return F.aU.UK("ombifa",{mismatch:"xtag",f:x.info.id,t:p.info.id}),x;e.yN=x.info.itag;e.aC=p.info.itag;F.aU.UK("ombifa",{f:e.yN,t:e.aC});F.logger.info(function(q){return function(){return"Initial format selection changed from "+
q.yN+" to "+q.aC+" based on prefetched media."}}(e));
F.cR=!0;return p}F.aU.UK("ombifa",{mismatch:"efficient",fc:E,tc:X})}}F.aU.UK("ombifa",{mismatch:"unselectable",fmts:k.join(".")});return x};
F.nextVideo=z(F.nextVideo,F.S.videoInfos);F.L=z(F.L,F.S.Y)}};
D_=function(F,k){if(!F.yh[k.id]){var z=F.b$.Y[k.id].index.Ad(F.mp,15);z=k.Nd&&F.U&&F.U.index.isLoaded()?z||k.Nd:z||k.Yu;F.yh[k.id]=z}z=F.yh[k.id];F.J4.has(k.itag)&&(z*=1.5);return z*=Math.max(1,F.NJ.Uz()||0)};
yvn=function(F,k){F=Ruk(F.b$.Y,function(z){return z.info.itag===k});
if(!F)throw Error("Itag "+k+" from server not known.");return F};
RMp=function(F){var k=[];if(F.Y.reason==="m"||F.Y.reason==="s")return k;if(ytx(F.b$)){for(var z=Math.max(0,F.B-2);z<F.B&&z<F.j.length;z++)k.push(F.j[z].itag);k.reverse()}return k};
cvx=function(F,k){var z;return F.Y.VZ(k)&&(!F.W.Y||!F.Y.isLocked()||((z=F.nextVideo)==null?void 0:z.info.id)===F.W.Y)};
G6Y=function(F){var k=g.M$(F.S.Y,function(x){return x.audio.Y}),z=g.M$(F.S.Y,function(x){return!x.audio.Y});
return k?F.policy.sW?k:z:null};
gdk=function(F){var k=F===void 0?{}:F;F=k.WM===void 0?!1:k.WM;var z=k.I6===void 0?!1:k.I6;k=k.w2===void 0?!1:k.w2;return F?k?3:2:z?-1:1};
j2=function(F){this.track=F;this.buffered=[];this.U=this.j=0;this.S={};this.W=0;this.Y=new C_};
YOD=function(F,k,z){F.flush();F.L=z;e2(F,3,k)};
e2=function(F,k,z){var x=[],D=F.track.xu;if(D){D=D.Kv();for(var e=0;e<D.length;e++)x.push(Math.round(D.start(e)*1E3)),x.push(Math.round(D.end(e)*1E3))}D=1;e=x.length;if(e===F.buffered.length){for(var C=0;C<=e&&x[C]===F.buffered[C];C++);C>e?D=0:x[C]>F.buffered[C]&&(C===e-1?D=2:C===e-2&&x[C+1]>F.buffered[C+1]&&(D=3))}F.Y.add(k<<3|(z&&4)|D);k=Math.ceil(F.track.uJ()*1E3);F.Y.add(k-F.W);F.W=k;if(D===1)for(F.Y.add(e),C=k=0;C<e;C++)F.Y.add(x[C]-k),k=x[C];D===3&&F.Y.add(x[e-2]-F.buffered[e-2]);D>=2&&F.Y.add(x[e-
1]-F.buffered[e-1]);z&&F.Y.add(z);F.buffered=x};
Cj=function(F,k,z){var x=this;this.policy=F;this.Y=k;this.mp=z;this.j=this.L=0;this.ag=null;this.Qh=new Set;this.K=[];this.indexRange=this.initRange=null;this.B=new xh;this.PR=this.t4=!1;this.Pe={lAa:function(){return x.U},
kcf:function(){return x.chunkSize},
N2p:function(){return x.G},
Hyk:function(){return x.S}};
(k=nda(this))?(this.chunkSize=k.csz,this.U=Math.floor(k.clen/k.csz),this.G=k.ck,this.S=k.civ):(this.chunkSize=F.wB,this.U=0,this.G=g.vt(16),this.S=g.vt(16));this.W=new Uint8Array(this.chunkSize);this.G&&this.S&&(this.crypto=new x4R(this.G,this.S))};
nda=function(F){if(F.policy.Tr&&F.policy.kV)for(var k=g.l(F.policy.Tr),z=k.next(),x={};!z.done;x={oW:void 0,Mq:void 0},z=k.next())if(z=g.jl(z.value),x.oW=+z.clen,x.Mq=+z.csz,x.oW>0&&x.Mq>0&&F.policy.j===z.docid&&F.Y.info.id===z.fmtid&&F.Y.info.lastModified===+z.lmt)return F={},F.clen=x.oW,F.csz=x.Mq,F.ck=z.ck,F.civ=z.civ,F};
A4=function(F){return!!F.ag&&F.ag.HM()};
fr5=function(F,k){if(!A4(F)&&!F.z4()){if(!(F.t4||(F.t4=!0,F.U>0))){var z=pj(F);z=Om(F.policy.j,F.Y.info,Ef(F),z,F.policy.vR);X1(F,z)}if(k.info.type===1){if(F.ag){qu(F,Error("Woffle: Expect INIT slices to always start us off"));return}F.initRange=Hf(0,k.Y.getLength())}else if(k.info.type===2)F.ag&&F.ag.type===1||qu(F,Error("Woffle: Index before init")),F.indexRange=Hf(F.initRange.end+1,k.Y.getLength());else if(k.info.type===3){if(!F.ag){qu(F,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(F.ag.type===3&&!Jv(F.ag,k.info)&&(F.K=[],k.info.gt!==yF(F.ag)||k.info.L!==0))return;if(k.info.W){z=g.l(F.K);for(var x=z.next();!x.done;x=z.next())Mwx(F,x.value);F.K=[]}else{F.K.push(k);F.ag=k.info;return}}else{qu(F,Error("Woffle: Unexpected slice type"));return}F.ag=k.info;Mwx(F,k);LD6(F)}};
Mwx=function(F,k){var z=0,x=k.Y.fk();if(F.j<F.U){z=F.U*F.chunkSize;var D,e=(((D=k.info.range)==null?void 0:D.start)||0)+k.info.L;z-=e;if(z>=x.length)return;if(z<0)throw Error("Missing data");F.j=F.U;F.L=0}for(D={};z<x.length;D={NN:void 0})if(D.NN=Math.min(x.length-z,F.W.byteLength-F.L),e=new Uint8Array(x.buffer,x.byteOffset+z,D.NN),F.W.set(e,F.L),F.L+=D.NN,z+=D.NN,F.L===F.W.length){if(k.info===F.ag&&A4(F)&&z===x.length)break;D=pj(F);D=Om(F.policy.j,F.Y.info,Ef(F),D,F.policy.vR,F.j,F.W,F.crypto);F.Qh.add(D);
X1(F,D);F.z4()||(D=pj(F),F.mp(Ef(F),D!==void 0?(D.downloadedEndTime||0)*D.averageByteRate:D.maxKnownEndTime*D.averageByteRate,D.maxKnownEndTime*D.averageByteRate));F.W=new Uint8Array(F.chunkSize);F.L=0;F.j+=1}};
LD6=function(F){if(A4(F))if(F.ag&&F.indexRange)if(F.L){var k=new Uint8Array(F.W.buffer,0,F.L),z=KDM(F),x=F.policy.j;Promise.all(F.Qh).then(function(){var D=Om(x,F.ag.Y.info,Ef(F,!0),z,F.policy.vR,F.j,k,F.crypto);X1(F,D,!0)})}else qu(F,new Nu("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else qu(F,new Nu("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
pj=function(F){return{downloadedEndTime:Math.round(F.ag?F.ag.S:0),maxKnownEndTime:Math.round(F.Y.index.iF()),averageByteRate:Math.round(F.Y.info.Nd)}};
KDM=function(F){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(F.Y.index.iF()),averageByteRate:Math.round(F.Y.info.Nd)}};
Ef=function(F,k){k===void 0||!k||F.indexRange&&F.initRange&&F.ag||qu(F,new Nu("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));k={lmt:F.Y.info.lastModified,docid:F.policy.j,fmtid:F.Y.info.id,type:F.Y.info.mimeType.split(";")[0],csz:F.chunkSize,clen:F.j*F.chunkSize+F.L};F.crypto&&(k.ck=F.G,k.civ=F.S);var z="local://localhost/videoplayback?"+iP(k),x,D;k={itag:+F.Y.info.itag,mimeType:F.Y.info.mimeType,bitrate:F.Y.info.Yu*8,lastModified:String(F.Y.info.lastModified),initRange:(x=
F.initRange)==null?void 0:ngx(x),indexRange:(D=F.indexRange)==null?void 0:ngx(D),url:z};if(x=F.Y.info.Y)k.xtags=x;if(x=F.Y.info.video)if(k.quality=x.quality,k.qualityLabel=x.qualityLabel,k.width=x.width,k.height=x.height,x=x.fps)k.fps=x;if(F=F.Y.info.audio){if(x=F.sampleRate)k.audioSampleRate=String(x);if(F=F.numChannels)k.audioChannels=F}return k};
X1=function(F,k,z){z=z===void 0?!1:z;k.then(function(x){F.Qh.delete(k);(z||x===4)&&F.B.resolve(x)},function(x){F.B.reject(x)})};
qu=function(F,k){g.ZL(F.policy.j)!==4&&(g.v3(F.policy.j,4),g.yI(k),F.B.reject(new Nu(k.message)))};
Nu=function(F,k){F=Error.call(this,F);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.Y=k===void 0?!1:k};
WD5=function(F){F=g.jw(F,1886614376);for(var k=g.l(F),z=k.next();!z.done;z=k.next());return g.tW(F,function(x){return mmH(x)})};
Fcp=function(F){var k=v8(F,function(D,e){return D+e.length},0);
k=new Uint8Array(k);var z=0;F=g.l(F);for(var x=F.next();!x.done;x=F.next())x=x.value,k.set(x,z),z+=x.length;return k};
kkC=function(F,k,z,x,D,e){this.ids=F;this.Y=k;this.L=z;this.U=x;this.j=D;this.dX=e};
u9=function(F,k,z){this.initData=F;this.contentType=k;this.isPrefetch=z;this.Y=this.cryptoPeriodIndex=NaN;this.U=[];this.Xv=!1;this.L=null;if((k==null?void 0:k.toLowerCase())==="webm"||F.length===16)this.Xv=!0};
zG6=function(F){a:{var k=F.initData;try{for(var z=0,x=new DataView(k.buffer);z<x.byteLength-8;){var D=x.getUint32(z);if(D<=1)break;if(x.getUint32(z+4)===1886614376){var e=32;if(x.getUint8(z+8)>0){var C=x.getUint32(z+28);e+=C*16+4}var p=x.getUint32(z+e-4);try{var E=olC(k.subarray(z+e,z+e+p));if(E!==null){var X=E;break a}}catch(q){}}z+=D}X=null;break a}catch(q){X=null;break a}X=void 0}if(X!=null)for(k=q3(ne(X,7)),k==null||F.Xv||(F.cryptoPeriodIndex=k),k=q3(ne(X,10)),k!=null&&k>0&&!F.Xv&&(F.Y=k),X=oK(X,
2,Ern,void 0===NNC?2:4),X=g.l(X),k=X.next();!k.done;k=X.next())F.U.push(g.mv(G8(k.value),4))};
xsx=function(F){return isNaN(F.cryptoPeriodIndex)?g.mv(F.initData):""+F.cryptoPeriodIndex};
w7=function(F,k,z){var x=z===void 0?{}:z;z=x.videoDuration===void 0?0:x.videoDuration;var D=x.jS===void 0?void 0:x.jS;x=x.Pk===void 0?!1:x.Pk;this.videoId=F;this.status=k;this.videoDuration=z;this.jS=D;this.Pk=x};
i36=function(F,k,z,x,D){this.videoId=F;this.W2=k;this.L=z;this.bytesDownloaded=x;this.Y=D};
mT=function(F){this.Y=F;this.offset=0};
Ta=function(F){if(F.offset>=F.Y.getLength())throw Error();return F.Y.getUint8(F.offset++)};
DsR=function(F,k){k=k===void 0?!1:k;var z=Ta(F);if(z===1){k=-1;for(z=0;z<7;z++){var x=Ta(F);k===-1&&x!==255&&(k=0);k>-1&&(k=k*256+x)}return k}x=128;for(var D=0;D<6&&x>z;D++)z=z*256+Ta(F),x*=128;return k?z:z-x};
$s5=function(F){try{var k=DsR(F,!0),z=DsR(F,!1);return{id:k,size:z}}catch(x){return{id:-1,size:-1}}};
j3I=function(F){for(var k=new mT(F),z=-1,x=0,D=0;!x||!D;){var e=$s5(k),C=e.id;e=e.size;if(C<0)return;if(C===176){if(e!==2)return;x=k.Zh()}else if(C===186){if(e!==2)return;D=k.Zh()}C===374648427?z=k.Zh()+e:C!==408125543&&C!==174&&C!==224&&k.skip(e)}k=Zh(F,0,z);z=new DataView(k.buffer);z.setUint16(x,3840);z.setUint16(D,2160);x=new rx([k]);BZ(x,F);return x};
eGD=function(F,k,z){var x=this;this.aU=F;this.policy=k;this.S=z;this.logger=new g.C4("dash");this.L=[];this.Y=null;this.t4=-1;this.K=0;this.Xf=NaN;this.Qh=0;this.U=NaN;this.B=this.cR=0;this.u$=-1;this.yh=this.W=this.j=this.mp=null;this.NJ=this.RU=NaN;this.G=this.PR=this.J4=this.kG=null;this.vR=!1;this.l$=this.timestampOffset=0;this.Pe={Mv:function(){return x.L}};
if(this.policy.j){var D=this.S,e=this.policy.j;this.policy.vR&&F.UK("atv",{ap:this.policy.vR});this.G=new Cj(this.policy,D,function(C,p,E){l9(F,new w7(x.policy.j,2,{jS:new i36(e,C,D.info,p,E)}))});
this.G.B.promise.then(function(C){x.G=null;C===1?l9(F,new w7(x.policy.j,C)):x.aU.UK("offlineerr",{status:C.toString()})},function(C){var p=(C.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
C instanceof Nu&&!C.Y?(x.logger.info(function(){return"Assertion failed: "+p}),x.aU.UK("offlinenwerr",{em:p}),Qw(x),l9(F,new w7(x.policy.j,4))):(x.logger.info(function(){return"Failed to write to disk: "+p}),x.aU.UK("dldbwerr",{em:p}),Qw(x),l9(F,new w7(x.policy.j,4,{Pk:!0})))})}};
C4C=function(F){return F.L.length?F.L[0]:null};
AQn=function(F,k){return F.L.some(function(z){return z.info.gt===k})};
Nin=function(F,k,z,x){x=x===void 0?0:x;if(F.W){var D=F.W.L+F.W.U;if(z.info.L>0)if(z.info.gt===F.W.gt&&z.info.L<D){if(z.info.L+z.info.U<=D)return;z=lmH(z,D-z.info.L)[1]}else if(z.info.gt>=0&&F.W.gt>=0&&!Jv(F.W,z.info))throw new g.Fa("improper_continuation",F.W.mu(),z.info.mu());KSM(F.W,z.info)||h4(F,"d")}else if(z.info.L>0)throw new g.Fa("continuation_of_null",z.info.mu());F.W=z.info;F.S=z.info.Y;if(z.info.L===0){if(F.Y)if(!F.aU.isOffline()||F.policy.mA)F.aU.UK("slice_not_fully_processed",{buffered:F.Y.info.mu(),
push:z.info.mu()});else throw new g.Fa("slice_not_fully_processed",F.Y.info.mu(),z.info.mu());sf(F);F.cR=x}else{if(F.cR&&x&&F.cR!==x)throw F=new g.Fa("lmt_mismatch",z.info.gt,F.cR,x),F.level="WARNING",F;!z.info.Y.Ut()&&F.j&&(x=z.info,D=F.j.Io,x.G="updateWithEmsg",x.gt=D)}if(F.Y){x=g.$l(F.Y,z);if(!x)throw new g.Fa("failed_to_merge",F.Y.info.mu(),z.info.mu());F.Y=x}else F.Y=z;a:{z=g.iK(F.Y.info.Y.info);if(F.Y.info.type!==3){if(!F.Y.info.W)break a;F.Y.info.type===6?pUR(F,k,F.Y):Eln(F,F.Y);F.Y=null}for(;F.Y;){x=
F.Y.Y.getLength();if(F.t4<=0&&F.K===0){var e=F.Y.Y,C=-1;D=-1;if(z){for(var p=0;p+8<e.getLength();){var E=Gbn(e,p),X=Gbn(e,p+4);p+=E||1;if(X===1836019558)C=p;else if(X===1835295092){D=p;break}}D<0&&(C=-1)}else{e=new mT(e);for(E=p=!1;;){X=e.Zh();var q=$s5(e),N=q.id;q=q.size;if(!(N>0))break;if(N!==408125543)if(N===524531317)p=!0,q>=0&&(D=e.Zh()+q,E=!0);else{if(p&&(N===160||N===163)&&(C<0&&(C=X),E))break;N===163&&(C=Math.max(0,C),D=e.Zh()+q);if(N===160){C<0&&(D=C=e.Zh()+q);break}e.skip(q)}}C<0&&(D=-1)}if(C<
0)break;F.t4=C;F.K=D-C}if(F.t4>x)break;F.t4?(x=XUn(F,F.t4),x.W&&q1H(F,x),pUR(F,k,x),r7(F,x),F.t4=0):F.K&&(x=XUn(F,F.K<0?Infinity:F.K),F.K-=x.Y.getLength(),r7(F,x))}}F.Y&&F.Y.info.W&&(r7(F,F.Y),F.Y=null)};
Eln=function(F,k){!k.info.Y.Ut()&&k.info.L===0&&(g.iK(k.info.Y.info)||k.info.Y.info.Xv())&&G$R(k);if(k.info.type===1)try{q1H(F,k),uQx(F,k)}catch(D){g.JV(D);var z=R0(k.info);z.hms="1";F.aU.handleError("fmt.unparseable",z||{},1)}z=k.info.Y;z.mw(k);F.G&&fr5(F.G,k);if(z.Ig()&&F.policy.Y)a:{F=F.aU.b$;k=k.info.clipId;z=g.$b(z.info,F.oS);if(k){var x=RBp(F,z);if(F.l$[x])break a;F.l$[x]=k}F.yh.push(z)}};
I7Y=function(F,k,z){if(F.L.length!==0&&(z||F.L.some(function(e){return e.info.j<k}))){z=0;
for(var x=g.l(F.L),D=x.next();!D.done;D=x.next()){D=D.value;if(D.info.j<k)break;F.aU.UK("cmat",{max:k,s:D.info.mu()});z+=1}F.L.splice(0,z)}};
Qw=function(F){var k;(k=F.G)==null||k.dispose();F.G=null};
wUa=function(F){var k=F.L.reduce(function(z,x){return z+x.Y.getLength()},0);
F.Y&&(k+=F.Y.Y.getLength());return k};
ms6=function(F){if(F.PR&&!F.policy.Xq){var k=F.aU;k.b$.isManifestless&&vU(k.b$,F.PR.gt,!!F.S.info.video)}F.PR=null;F.j=null;F.W=F.kG;F.U=F.W?F.U-F.Qh:NaN;sf(F)};
XUn=function(F,k){var z=F.Y;k=Math.min(k,z.Y.getLength());if(k===z.Y.getLength())return F.Y=null,z;z=lmH(z,k);F.Y=z[1];return z[0]};
q1H=function(F,k){k.Y.getLength();var z=k.TA();if(FW(k.info.Y.info)&&k.info.Y.info.video.primaries==="bt2020"){var x=new ew(z);Av(x,[408125543,374648427,174,224,21936,21937])&&(x=x.start+x.pos,z.getUint8(x)===129&&z.getUint8(x+1)===1&&z.setUint8(x+1,9))}x=k.info.Y.info;Ww(x)&&!FW(x)&&(x=k.TA(),(new ew(x)).ox(),qp([408125543,374648427,174,224],21936,x));k.info.Y.info.Ci()&&(x=k.info.Y,x.info&&x.info.video&&x.info.video.projectionType==="MESH"&&!x.L&&(g.iK(x.info)?x.L=tDa(z):x.info.Xv()&&(x.L=I66(z))));
k.info.Y.info.Xv()&&k.info.Ci()&&(z=k.TA(),(new ew(z)).ox(),qp([408125543,374648427,174,224],30320,z)&&qp([408125543,374648427,174,224],21432,z));if(F.policy.gm&&k.info.Y.info.Xv()){z=k.TA();var D=new ew(z);if(Av(D,[408125543,374648427,174,29637])){x=X5(D,!0);D=D.start+D.pos;for(var e=0;e<x-1;e++)z.setUint8(D+e,0);z.setUint8(D+x-1,1)}}if(F.QZ()&&g.iK(k.info.Y.info)){x=k.TA();z=g.WO(x,0,1701606260);e=g.WO(x,0,1836476516);if(z&&e){z.skip(2);var C=dV(z),p=yJ(z);x=[];D=[];var E=[],X=[];if(C)for(C=0;C<
p;++C)x.push(Ry(z)),D.push(Ry(z)),E.push(dV(z)),X.push(dV(z));else for(C=0;C<p;++C)x.push(JX(z)),D.push(JX(z)),E.push(dV(z)),X.push(dV(z));z=g.F5(e);z=new BuR(D[0]/z,x[0]/z)}else z=null;if(z){if(g.iK(k.info.Y.info))for(x=k.TA(),D=g.WO(x,0,1701082227);D;)e=D,e.type=1936419184,e.data.setUint32(e.offset+4,1936419184),D=g.WO(x,D.offset+D.size,1701082227);F.vR=!0;k.info.Y.j=z}}k.info.Y.Ut()||k.info.Y.Y||k.info.Y.indexRange||AQ(k)};
pUR=function(F,k,z){if(z.info.Y.Ut()){if(F.vR&&TiY(z)&&(k=z.TA(),k=g.WO(k,0,1953658222))){k.skip(1);var x=bj(k)<<16|dV(k),D=x&1,e=x&4;if(x&256){var C=x&512,p=x&1024;x&=2048;var E=yJ(k);E<2||(D&&k.skip(4),e&&k.skip(4),D=yJ(k),k.skip((E-1)*(4+(C?4:0)+(p?4:0)+(x?4:0))-4),k.data.setUint32(k.offset+k.Y,D))}}if(k=F.mp&&!!F.mp.S.j)if(k=z.info.Ci())k=rtH(z),C=F.mp,Bg?(p=1/k,k=Ga(F,k)>=Ga(C)+p):k=F.getDuration()>=C.getDuration(),k=!k;k&&TiY(z)&&(k=F.mp,Bg?(p=rtH(z),C=1/p,p=Ga(F,p),k=Ga(k)+C-p):k=k.getDuration()-
F.getDuration(),k=1+k/z.info.duration,UmD(z.TA(),k))}else{C=!1;F.j||(G$R(z),z.L&&(F.j=z.L,C=!0,e=z.info,x=z.L.Io,e.G="updateWithEmsg",e.gt=x,e=z.L,e.HM&&(x=F.S.index,x.L=!e.HM,x.U="emsg"),e=z.info.Y.info,x=z.TA(),g.iK(e)?$d(x,1701671783):e.Xv()&&qp([408125543],307544935,x)));a:if((e=C3(z,F.policy.uL))&&BWR(z))p=lYx(F,z),F.B+=p,e-=p,F.Qh+=e,F.U=F.policy.TR?F.U+e:NaN;else{if(F.policy.SW){if(x=E=F.aU.AK(g.jJ(z),1),F.U>=0&&z.info.type!==6){if(F.policy.TR&&isNaN(F.RU)){g.yI(new g.Fa("Missing duration while processing previous chunk",
z.info.mu()));F.aU.isOffline()&&!F.policy.mA||Q3M(F,z,x);h4(F,"m");break a}var X=E-F.U,q=X-F.B,N=z.info.gt,u=F.yh?F.yh.gt:-1,w=F.NJ,m=F.RU,h=F.policy.sI&&X>F.policy.sI,B=Math.abs(q)>10,U=Math.abs(F.U-x)<1E-7;if(Math.abs(q)>1E-4){F.l$+=1;var v=(D=F.j)==null?void 0:ft(D);D={audio:""+ +F.QZ(),sq:N.toFixed(),sliceStart:E,lastSq:u.toFixed(),lastSliceStart:w,lastSliceDuration:m,totalDrift:(X*1E3).toFixed(),segDrift:(q*1E3).toFixed(),skipRewrite:""+ +(h||B)};if(v==null?0:v.length)D.adCpn=v[0];F.aU.handleError("qoe.avsync",
D);F.u$=N}h||B||U||(x=F.U);D=lYx(F,z,E);e-=D;F.B=X+D;F.policy.U&&(q&&!U||D)&&(X=(p=F.j)==null?void 0:ft(p),F.aU.UK("discontinuityRewrite",{adCpn:(X==null?0:X.length)?X.join("."):"",itag:z.info.Y.info.itag,sq:z.info.gt,originalStartTime:E,rewrittenStartTime:x,startTimeAdjustment:x-E,segDrift:(q*1E3).toFixed(),originalDuration:e+D,rewrittenDuration:e,durationAdjustment:D}))}}else x=isNaN(F.U)?z.info.startTime:F.U;Q3M(F,z,x)&&(F.Qh+=e,F.U=x+e,F.policy.PZ&&F.l$>=F.policy.PZ&&(F.l$=0,F.aU.w0({resetForRewrites:"count"})))}F.yh=
z.info;F.RU=eJ(z);z.U>=0&&(F.NJ=z.U);if(C&&F.j){C=hGC(F,!0);gs(z.info,C);F.Y&&gs(F.Y.info,C);k=g.l(k);for(p=k.next();!p.done;p=k.next())p=p.value,D=void 0,F.policy.S&&p.gt!==((D=F.j)==null?void 0:D.Io)||gs(p,C);(z.info.W||F.Y&&F.Y.info.W)&&z.info.type!==6||(F.PR=C,F.policy.kG?(k=s3k(F.j),F.aU.nx(F.S,C,k)):(k=F.aU,k.b$.isManifestless&&rQH(k,C,null,!!F.S.info.video)),F.policy.D7||BiI(F))}}uQx(F,z);F.timestampOffset&&hBn(z,F.timestampOffset)};
r7=function(F,k){if(k.info.W){F.kG=k.info;if(F.j){var z=F.j,x=hGC(F,!1);z=s3k(z);F.aU.nx(F.S,x,z);F.PR||F.policy.D7||BiI(F);F.PR=null}sf(F)}F.G&&fr5(F.G,k);if(x=F.HF())if(x=g.$l(x,k,F.policy.Nn,F.policy.Nk)){F.L.pop();F.L.push(x);return}F.L.push(k)};
s3k=function(F){if(F.FB()){var k=F.data["Stitched-Video-Id"]?F.data["Stitched-Video-Id"].split(",").slice(0,-1):[],z=ft(F),x=[];if(F.data["Stitched-Video-Duration-Us"])for(var D=g.l(F.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),e=D.next();!e.done;e=D.next())x.push((Number(e.value)||0)/1E6);D=[];if(F.data["Stitched-Video-Start-Frame-Index"]){e=g.l(F.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var C=e.next();!C.done;C=e.next())D.push(Number(C.value)||0)}D=[];
if(F.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(e=g.l(F.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),C=e.next();!C.done;C=e.next())D.push((Number(C.value)||0)/1E6);F=new kkC(k,z,x,D,g.sN6(F),g.rw5(F))}else F=null;return F};
sf=function(F){F.Y=null;F.t4=-1;F.K=0;F.j=null;F.Xf=NaN;F.Qh=0;F.PR=null};
h4=function(F,k){k={rst4disc:k,cd:F.B.toFixed(3),sq:F.yh?F.yh.gt:-1};F.U=NaN;F.B=0;F.u$=-1;F.yh=null;F.NJ=NaN;F.RU=NaN;F.J4=null;F.aU.UK("mdstm",k)};
uQx=function(F,k){if(F.S.info.J5){if(k.info.Y.info.Xv()){var z=new ew(k.TA());if(Av(z,[408125543,374648427,174,28032,25152,20533,18402])){var x=X5(z,!0);z=x!==16?null:mD(z,x)}else z=null;x="webm"}else k.info.K=WD5(k.TA()),z=Fcp(k.info.K),x="cenc";z&&z.length&&(z=new u9(z,x),F.policy.A0&&g.iK(k.info.Y.info)&&(x=OPY(k.TA()))&&(z.L=x),z.Xv=k.info.Y.info.Xv(),k.L&&k.L.cryptoPeriodIndex&&(z.cryptoPeriodIndex=k.L.cryptoPeriodIndex),k.L&&k.L.L&&(z.Y=k.L.L),F.aU.Rl(z))}};
BiI=function(F){var k=F.j,z=QN5(k);z&&(z.startSecs+=F.Xf,F.aU.hZ(F.S,z,k.Io,k.FB()))};
hGC=function(F,k){var z,x=F.j;if(z=QN5(x))z.startSecs+=F.Xf;return new HO(x.Io,F.Xf,k?x.dO:F.Qh,x.ingestionTime,"sq/"+x.Io,void 0,void 0,k,z)};
Q3M=function(F,k,z){if(!QDn(k,z))return k=R0(k.info),k.smst="1",F.aU.handleError("fmt.unparseable",k||{},1),!1;isNaN(F.Xf)&&(F.Xf=z);return!0};
lYx=function(F,k,z){var x=0;if(k.info.Y.info.Xv()&&!BWR(k))return 0;if(F.mp&&!F.QZ()){var D=0;z&&g.iK(k.info.Y.info)?D=z-F.U:k.info.Y.info.Xv()&&(D=F.B);var e=k.info.gt;z=C3(k,F.policy.uL);var C=F.mp;var p=C.u$;C=C.B;var E=Math.abs(C-D)>.02;if((e===p||e>p&&e>F.u$)&&E){x=Math.max(.95,Math.min(1.05,(z-(C-D))/z));if(g.iK(k.info.Y.info))UmD(k.TA(),x);else if(k.info.Y.info.Xv()&&(e=D-C,!g.iK(k.info.Y.info)&&(k.info.Y.info.Xv(),x=new ew(k.TA()),p=k.W?x:new ew(new DataView(k.info.Y.Y.buffer)),C3(k,!0)))){var X=
e*1E3,q=ll(p);p=x.pos;x.pos=0;if(x.Y.getUint8(x.pos)===160||QF(x))if(EO(x,160))if(X5(x,!0),EO(x,155)){if(e=x.pos,E=X5(x,!0),x.pos=e,X=X*1E9/q,q=Np(x),X=q+Math.max(-q*.7,Math.min(q,X)),X=Math.sign(X)*Math.floor(Math.abs(X)),!(Math.ceil(Math.log(X)/Math.log(2)/8)>E)){x.pos=e+1;for(e=E-1;e>=0;e--)x.Y.setUint8(x.pos+e,X&255),X>>>=8;x.pos=p}}else x.pos=p;else x.pos=p;else x.pos=p}x=C3(k,F.policy.uL);x=z-x}x&&k.info.Y.info.Xv()&&F.aU.UK("webmDurationAdjustment",{durationAdjustment:x,videoDrift:D+x,audioDrift:C})}return x};
TiY=function(F){return F.info.Y.Ut()&&F.info.gt===F.info.Y.index.OJ()};
Ga=function(F,k){k=(k=k===void 0?0:k)?Math.round(F.timestampOffset*k)/k:F.timestampOffset;F.S.j&&k&&(k+=F.S.j.Y);return k+F.getDuration()};
Gk9=function(F,k){k<0||(F.L.forEach(function(z){hBn(z,k)}),F.timestampOffset=k)};
ST=function(F,k,z,x,D){zv.call(this,z,D);var e=this;this.policy=F;this.formatId=k;this.jO=x;this.lastError=null;this.u7=function(){e.z4()||(e.jO.Al.has(e.formatId)?(e.isComplete()||e.Y.start(),Ii(e.jO,e.formatId)&&e.hX(2),e.jO.j5(e.formatId)&&(WyR(e.jO,e.formatId)?e.pJ(4):(e.lastError="net.closed",e.pJ(5)))):(e.lastError="player.exception",e.pJ(5)))};
this.Y=new g.KS(function(){e.isComplete()||(e.lastError="net.timeout",e.pJ(5))},1E3);
this.Y.start();Lyn(this.jO,this.formatId,this.u7);g.lh(this.u7)};
Uf=function(F,k,z,x){g.S.call(this);var D=this;this.aU=F;this.policy=k;this.Y=z;this.timing=x;this.logger=new g.C4("dash");this.U=[];this.mp=[];this.L=this.xu=null;this.cR=!1;this.l$=this.J4=0;this.S=-1;this.t4=!1;this.Xf=-1;this.yh=null;this.PR=NaN;this.Qh=[];this.Pe={Mb:function(){return D.j},
z2_:function(){return D.U},
Mwf:function(){return D.G}};
this.j=new eGD(F,k,z);this.policy.Y&&(this.G=new VP(this.j,this.aU.getManifest(),this.policy,function(e){D.policy.UE&&D.UK("buftl",e)}));
this.policy.RS&&(this.K=new j2(this));this.Yu=z.info.Yu;this.B=this.policy.PR?!1:z.VR();this.isManifestless=z.VR();this.W=this.B;g.b(this,this.yh)};
t4=function(F,k,z){z=z===void 0?!1:z;k&&Bg&&Gk9(F.j,k.Us());if(!z){var x;(x=F.G)==null||cdD(x)}F.xu=k;(k=F.G)!=null&&(k.xu=F.xu)};
Z_=function(F){var k=F.xu&&F.xu.VA();if(F.policy.J$){if((F=F.G)==null)F=void 0;else{var z;F=(z=F.U)==null?void 0:z.info}return F||null}return k};
Usn=function(F){for(var k={},z=0;z<F.mp.length;z++)k["r"+z]=F.mp[z];return k};
vg=function(F,k){isNaN(F.PR)||F.UK("aswr",{sq:k.info.sK[0].gt,id:k.info.sK[0].Y.info.itag,xtag:k.info.sK[0].Y.info.Y,ep:Date.now()-F.PR});F.U.push(k);F.L=g.YG(k.info.sK);F.mp.push(k.mu());F.mp.length>4&&F.mp.shift()};
tJn=function(F,k){if(k.mW()){var z=k.tK();z=g.l(z);for(var x=z.next();!x.done;x=z.next())x=x.value,F.policy.U&&k instanceof ST&&F.UK("omblss",{s:x.info.mu()}),cg(F,k.info.sK,x,k.d4())}};
cg=function(F,k,z,x){x=x===void 0?0:x;isNaN(F.PR)||(F.UK("aswm",{sq:k[0].gt,id:k[0].Y.info.itag,xtag:k[0].Y.info.Y,ep:Date.now()-F.PR}),F.PR=NaN);switch(z.info.type){case 1:case 2:Z3n(F,z);break;case 4:var D=z.info.Y,e=D.s8(z),C;((C=F.L)==null?0:C.type===4)&&imI(z.info,F.L)&&(F.L=D.H1(F.L).pop());z=g.l(e);for(D=z.next();!D.done;D=z.next())cg(F,k,D.value,x);break;case 3:z.info.Y.info.video?(D=F.timing,D.mp||(D.mp=(0,g.VE)(),PE("fvb_r",D.mp,D.Y))):(D=F.timing,D.S||(D.S=(0,g.VE)(),PE("fab_r",D.S,D.Y)));
Nin(F.j,k,z,x);F.policy.Y&&vlI(F);break;case 6:Nin(F.j,k,z,x),F.L=z.info}};
Z3n=function(F,k){if(k.info.type===1)if(k.info.Y.info.video){var z=F.timing;z.yh||(z.yh=(0,g.VE)(),PE("vis_r",z.yh,z.Y))}else z=F.timing,z.B||(z.B=(0,g.VE)(),PE("ais_r",z.B,z.Y));Eln(F.j,k);F=F.aU;F.videoTrack.Y.Ig()&&F.audioTrack.Y.Ig()&&F.policy.Y&&!F.b$.oS&&(k=F.audioTrack.getDuration(),z=F.videoTrack.getDuration(),Math.abs(k-z)>1&&F.UK("trBug",{af:""+g.$b(F.audioTrack.Y.info,!1),vf:""+g.$b(F.videoTrack.Y.info,!1),a:""+k,v:""+z}))};
MB=function(F){return C4C(F.j)};
vlI=function(F){F.U.length?F.L=g.YG(g.YG(F.U).info.sK):F.j.L.length?F.L=F.j.HF().info:F.L=Z_(F)};
cQx=function(F,k){var z={pN:[],Pz:[]},x;if((F=F.G)==null)F=void 0;else{viI(F,F.pN,"og");UDY(F,k);viI(F,F.pN,"trim");var D=ZNH(F);k=D.pN;D=D.tR;for(var e=[],C=0;C<D.length;C++){var p=D[C],E=F.policy.NJ&&p.U!==-1?p.U:p.info.startTime,X={startTicks:(E+F.timestampOffset)*1E3,Bt:(F.policy.NJ&&p.j!==-1?p.j:p.info.duration)*1E3,timescale:1E3},q=void 0,N=(q=F.xu)==null?void 0:q.Kv();q=void 0;if(F.policy.G9&&N&&N.length>0){var u=qi(N,E);u>=0&&(q=(N.end(u)-E+.1)*1E3)}e.push({formatId:g.$b(p.info.Y.info,F.b$.oS),
vM:p.info.vM,sequenceNumber:p.info.gt+F.j,Xc:X,SQ:p.info.U,td:q})}F={pN:k,Pz:e}}return(x=F)!=null?x:z};
Jq=function(F,k,z){z=z===void 0?!1:z;if(F.xu){var x=F.xu.Kv(),D=uK(x,k),e=NaN,C=Z_(F);C&&(e=uK(x,C.Y.index.getStartTime(C.gt)));if(D===e&&F.L&&F.L.U&&P4a(O3a(F),0))return k}F=VJ9(F,k,z);return F>=0?F:NaN};
RP=function(F,k,z){F.Y.Ig();var x=VJ9(F,k);if(x>=0)return x;var D;(D=F.G)==null||tjH(D,k,z);z=Math;x=z.min;D=F.j;if(D.G)if(D=D.G,D.ag&&D.ag.type===3)D=D.ag.startTime;else if(D.U>0){var e=D.Y.index;e=g.eS(e.offsets.subarray(0,e.count),D.U*D.chunkSize);D=D.Y.index.getStartTime(e>=0?e:Math.max(0,-e-2))}else D=0;else D=Infinity;k=x.call(z,k,D);if(F.policy.L){var C,p;z=(C=F.aU.Lp())==null?void 0:(p=HV(C,k))==null?void 0:p.clipId;F.L=F.Y.cT(k,void 0,z).sK[0]}else F.L=F.policy.PR?null:F.Y.cT(k).sK[0];Pg(F)&&
(F.xu&&F.xu.abort(),F.policy.dK&&(C=F.G)!=null&&(C.U=void 0));F.l$=0;return F.L?F.L.startTime:k};
ONH=function(F){F.B=!0;F.W=!0;F.S=-1;RP(F,Infinity)};
Of=function(F){for(var k=0,z=g.l(F.U),x=z.next();!x.done;x=z.next())k+=$iD(x.value.info);return k+=wUa(F.j)};
Ib=function(F,k){k=k===void 0?!1:k;var z=F.aU.getCurrentTime(),x=F.j.HF(),D=(x==null?void 0:x.info.S)||0;F.policy.py&&(x==null?0:x.info.Y.VR())&&!x.info.W&&(D=x.info.j);if(F.policy.L&&x&&x.info.clipId){var e,C=(((e=F.aU.Lp())==null?void 0:IP(e,x.info.clipId))||0)/1E3;D+=C}if(!F.xu)return F.policy.Y&&k&&!isNaN(z)&&x?D-z:0;if((e=Z_(F))&&Vw(F,e))return e.S;C=F.xu.Kv(!0);if(k&&x)return e=0,F.policy.Y&&(e=mx(C,D+.02)),e+D-z;D=mx(C,z);F.policy.yJ&&e&&(k=qi(C,z),C=qi(C,e.j-.02),k===C&&(z=e.S-z,F.policy.U&&
z>D+.02&&F.UK("abh",{bh:D,bhtls:z}),D=Math.max(D,z)));return D};
IYn=function(F){var k=Z_(F);return k?k.S-F.aU.getCurrentTime():0};
H35=function(F,k){if(F.U.length){if(F.U[0].info.sK[0].startTime<=k)return;dp(F)}for(var z=F.j,x=z.L.length-1;x>=0;x--)z.L[x].info.startTime>k&&z.L.pop();vlI(F);F.L&&k<F.L.startTime&&(F.l$=0,F.Y.Ig()?F.L=F.Y.cT(k,!0).sK[0]:F.L=null)};
aYD=function(F,k,z,x){if(!F.Y.index.d8(k,!0))return!1;try{dp(F);for(var D=F.j,e=null,C=D.L.length-1;C>=0;C--){var p=D.L[C];p.info.gt>=k&&(D.L.pop(),D.U-=C3(p,D.policy.uL),e=p.info)}e&&(D.W=D.L.length>0?D.L[D.L.length-1].info:D.J4,D.L.length!==0||D.W||h4(D,"r"));D.aU.UK("mdstm",{rollbk:1,itag:e?e.Y.info.itag:"",popped:e?e.gt:-1,sq:k,lastslc:D.W?D.W.gt:-1,lastfraget:D.U.toFixed(3)});if(F.policy.Y)return F.L=null,!0;x>z?RP(F,x):F.L=F.Y.qw(k-1,!1).sK[0]}catch(E){return k=IN(E),k.details.reason="rollbkerr",
F.aU.handleError(k.errorCode,k.details,k.severity),!1}return!0};
ab=function(F,k){var z;for(z=0;z<F.U.length&&k!==F.U[z];z++);if(z===F.U.length)Hg(F,k);else{for(;z<F.U.length;)Hg(F,F.U.pop());var x=gv(F);x&&x.Y.CU()&&t9(k.info.sK,function(D){return DiD(D,x)})?(F.L=x,F.policy.U&&F.UK("cer",{lsr:"lsp",
lsp:x.mu()})):(ds(k.info.sK[0])?(F.L=k.yZ&&k.yZ.U?zBk(k.yZ.U):obD(k.info.sK[0]),F.policy.U&&F.UK("cer",{lsr:F.L.mu(),lsp:x==null?void 0:x.mu()})):(F.L=null,F.policy.U&&F.UK("cer",{lsr:"null",lsp:x==null?void 0:x.mu()})),F.aU.isOffline()&&!F.policy.mA||Hg(F,k,!0))}};
Vw=function(F,k){if(!k)return!1;if(F.policy.L){var z;if((F=(z=F.aU.Lp())==null?void 0:S2(z))&&k.clipId!==F)return!1}return k.HM()};
Pg=function(F){var k;!(k=F.Y.info.DQ==="f")&&(k=F.policy.j)&&(k=F.j,k=!!k.G&&A4(k.G));if(k)return!0;k=Z_(F);if(!k)return!1;var z=Vw(F,k)&&k.W;return F.isManifestless&&F.Xf>0?z||k.gt>=F.Xf:z};
b9=function(F){var k;return Pg(F)||Vw(F,(k=F.j.HF())==null?void 0:k.info)};
O3a=function(F){var k=[],z=Z_(F);z&&k.push(z);k=g.o2(k,F.j.Rp());z=g.l(F.U);for(var x=z.next();!x.done;x=z.next()){x=x.value;for(var D=g.l(x.info.sK),e=D.next(),C={};!e.done;C={VC:void 0},e=D.next())C.VC=e.value,x.yr&&(k=g.pT(k,function(p){return function(E){return!imI(E,p.VC)}}(C))),(ds(C.VC)||C.VC.type===4)&&k.push(C.VC)}F.L&&!LSM(F.L,g.YG(k),F.L.Y.Ut())&&k.push(F.L);
return k};
P4a=function(F,k){if(!F.length)return!1;for(k+=1;k<F.length;k++)if(!f6x(F[k-1],F[k]))return!1;return!0};
VJ9=function(F,k,z){z=z===void 0?!1:z;if(!F.L||!F.L.U)return NaN;F=O3a(F);a:{k+=.02;var x=z;x=x===void 0?!1:x;for(var D=-1,e=0;e<F.length;++e){var C=F[e];if(C.j<=k)if(x)D=e;else if(C.startTime+C.duration>=k){k=e;break a}}k=D}return k<0?NaN:P4a(F,z?k:0)?F[k].startTime:NaN};
d7=function(F){return!(!F.L||F.L.Y===F.Y)};
S1a=function(F){return d7(F)&&F.Y.Ig()&&F.L.Y.info.Yu<F.Y.info.Yu};
b3a=function(F,k,z){if(F.policy.py)return Ib(F,!0)<z;var x=gv(F);return x&&!Vw(F,x)?x.S>k&&x.S<k+z:!1};
gv=function(F){var k=F.j.HF();return k?k.info:Z_(F)};
hM9=function(F,k){var z;return!((z=F.G)==null||!z.W.has(k))||AQn(F.j,k)};
dp=function(F){for(var k=g.l(F.U),z=k.next();!z.done;z=k.next())Hg(F,z.value);F.U=[];F.L=null};
J4=function(F){var k;(k=F.G)==null||cdD(k);F.Qh=[]};
dsR=function(F,k,z){k.yr&&((z===void 0?0:z)||!k.info.sK[0].Y.CU())&&(F.logger.debug(function(){return"Rolling back request with segNum "+k.info.sK[0].gt}),ms6(F.j))};
Hg=function(F,k,z){dsR(F,k,z===void 0?!1:z);k.dispose()};
JQM=function(F){return!!F.L&&F.L.gt!==-1&&F.L.gt<F.Y.index.E0()};
yQM=function(F){var k=F.L;k&&k.gt===-1&&(F=F.j.HF())&&ds(F.info)&&(F=F.info.gt,k.G="updateLastSliceRequested",k.gt=F)};
RGH=function(F){return t9(F.U,function(k){return k.g_})};
glx=function(F,k){F.L&&(F.L.Y=k)};
Y1H=function(F,k){return F.xu?Ni(F.xu.Kv(),k):!0};
yw=function(F){var k=MB(F);F=F.aU.Lp();return k&&F&&k.info.clipId&&!nlM(F,k.info.clipId)?!0:!1};
MJ9=function(F){var k;return!((k=MB(F))==null||!k.isLocked)};
Lck=function(F,k){var z=MB(F);return z&&z.info.type!==6?!s0I(k,F,z.info.gt):!1};
fYx=function(F){var k=Z_(F),z,x=(z=F.xu)==null?void 0:z.Kv();z=NaN;k&&x&&Pg(F)&&(z=uK(x,(k.j+k.S)/2));return!isNaN(z)};
Kcx=function(F){if((F=F.G)==null)F=void 0;else if(F.pN.length===0||F.policy.VH&&F.Y<0)F=null;else{var k=F.pN[F.Y]?F.pN[F.Y].formatId:null;F=k?(F=F.b$.U.get(Pf(k)))?F.info:null:null}return F||null};
WcI=function(F,k){F=g.l(F.Qh);for(var z=F.next();!z.done;z=F.next())if(z=z.value,z.Io===k)return z.B$$?2:1;return 0};
Faa=function(){this.WM=!1};
k9n=function(F){var k=F===void 0?{}:F;F=k.hasSubfragmentedFmp4===void 0?!1:k.hasSubfragmentedFmp4;k=k.q3===void 0?!1:k.q3;var z=new Faa;z.WM=F||k;return z};
g.oH6=function(F){this.i$=F;this.B=new Faa;this.gx=this.Wi=!1;this.Yg=2;this.J4=20971520;this.dH=8388608;this.t4=120;this.tT=this.uo=this.v$=2;this.WO=this.Fp=!1;this.Lu=1E3;this.Xm=15;this.sF=1;this.K=1.15;this.Qh=1.05;this.MZ=1;this.F1=this.YP=!1;this.En=6;this.U=!1;this.J9=100;this.YZ=10;this.VJ=6;this.BF=!1;this.QV=1;this.I6=this.Om=!1;this.T1=2;this.SW=this.fb=!1;this.mY=!0;this.uG=this.P7=this.Hx=this.l$=this.ZR=!1;this.Tc=!0;this.G0=!1;this.j="";this.Tr=[];this.Cs=this.bO=this.RS=!1;this.l0=
0;this.y6="";this.tS=this.eI=this.I4=this.UE=this.JA=this.Ji=this.S=this.N9=this.OF=this.BC=this.Y=this.vR=this.mp=this.dK=this.J$=this.cR=this.L=this.D7=!1;this.Av=!0;this.z9=this.py=this.sE=this.X1=this.W=this.NJ=!1;this.u$=!0;this.H8=this.Mo=this.Iq=this.Vb=this.zM=this.vj=this.KB=this.vr=this.xg=this.G9=this.rq=this.UH=this.Cj=this.PR=this.kG=this.BM=this.Xf=!1;this.EZ=g.lw(this.i$.experiments,"html5_min_readbehind_secs");this.zs=g.lw(this.i$.experiments,"html5_min_readbehind_cap_secs");this.mA=
this.i$.V("html5_offline_reset_media_stream_on_unresumable_slices");this.Yu=NaN;this.Xz=Rb(this,"html5_request_size_min_kb",64)*1024;this.RU=2097152;this.MU=Rb(this,"html5_bypass_contention_secs");this.Bi=1048576;this.Ki=Rb(this,"html5_repredict_interval_ms",1800);this.uN=Rb(this,"html5_head_miss_secs",5);this.nf=Rb(this,"html5_min_upgrade_health_secs",10);this.lq=Rb(this,"html5_min_seconds_between_format_selections",8);this.Bq=Rb(this,"html5_max_buffer_health_for_downgrade_secs",15);this.w2=kH;this.ET=
g.lw(this.i$.experiments,"html5_min_startup_buffered_media_duration_secs");this.yb=g.lw(this.i$.experiments,"html5_post_interrupt_readahead");this.f1=this.i$.V("html5_allow_onesie_for_ssap");this.xV=this.i$.V("html5_disable_classic_alr");this.lO=g.lw(this.i$.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.VI=Rb(this,"html5_ssdai_failure_retry_limit",3);this.hS=this.i$.experiments.Ca("html5_clone_original_for_fallback_location");this.fJ=g.lw(this.i$.experiments,"html5_subsegment_readahead_target_buffer_health_secs");
this.nF=g.lw(this.i$.experiments,"html5_subsegment_readahead_timeout_secs");this.ys=g.lw(this.i$.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.bJ=g.lw(this.i$.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.HV=g.lw(this.i$.experiments,"html5_subsegment_readahead_min_load_speed");this.GI=g.lw(this.i$.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.w1=g.lw(this.i$.experiments,"html5_subsegment_readahead_seek_latency_fudge");
this.je=Rb(this,"html5_hopeless_secs",15);this.e0=this.i$.V("html5_restrict_streaming_xhr_on_sqless_requests");this.pI=g.lw(this.i$.experiments,"html5_max_headm_for_streaming_xhr");this.Nr=this.i$.V("html5_pipeline_manifestless_allow_nonstreaming");this.Kf=this.i$.V("html5_prefer_server_bwe3");this.J2=this.i$.V("html5_last_slice_transition");this.K6=this.i$.V("html5_store_xhr_headers_readable");this.sI=g.lw(this.i$.experiments,"html5_max_drift_per_track_secs");this.Xq=this.i$.V("html5_no_placeholder_rollbacks");
this.Fx=this.i$.V("html5_subsegment_readahead_enable_mffa");this.m_=this.i$.V("html5_allow_video_keyframe_without_audio");this.A0=this.i$.V("html5_enable_vp9_fairplay");this.wB=1048576;this.kV=this.i$.V("html5_woffle_resume");this.NZ=this.i$.V("html5_abs_buffer_health");this.Hu=this.i$.V("html5_interruption_resets_seeked_time");this.Ss=g.lw(this.i$.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.A2=this.i$.V("html5_report_captions_ctmp_qoe");this.Cy=this.i$.V("html5_explicitly_dispose_xhr");
this.Nn=!this.i$.V("html5_encourage_array_coalescing");this.i$.V("html5_limit_media_merge_size")?kH?gz()<21?this.Nk=786432:this.Nk=8388608:this.Nk=262144:this.Nk=0;this.VY=this.i$.V("html5_filter_non_efficient_formats_for_safari");this.i$.V("html5_format_hybridization");this.A9=this.i$.V("html5_abort_before_separate_init");this.gm=FG();this.sf=this.i$.V("html5_serialize_server_stitched_ad_request");this.Bx=this.i$.V("html5_attach_po_token_to_bandaid");this.Lt=g.lw(this.i$.experiments,"html5_max_redirect_response_length")||
8192;this.TR=this.i$.V("html5_rewrite_timestamps_for_webm");this.uL=this.i$.V("html5_only_media_duration_for_discontinuities");this.Uf=g.lw(this.i$.experiments,"html5_resource_bad_status_delay_scaling")||1;this.i$.V("html5_onesie_live");this.BV=this.i$.V("html5_onesie_premieres");this.uq=this.i$.V("html5_drop_onesie_for_live_mode_mismatch");this.Gs=g.lw(this.i$.experiments,"html5_onesie_live_ttl_secs")||8;this.T9=g.lw(this.i$.experiments,"html5_attach_num_random_bytes_to_bandaid");this.MN=this.i$.V("html5_update_container_type_on_codec_family_change")||
this.i$.V("html5_use_update_container_type_codec_family");this.Hh=this.i$.V("html5_dont_call_change_type_on_updating");this.pn=this.i$.V("html5_apply_ssap_slice_info_adjustment");this.qD=this.i$.V("html5_enable_sabr_host_fallback");this.FG=this.i$.V("html5_ssap_enable_legacy_browser_logic");this.Yk=this.i$.V("html5_ssap_enable_delay_init");this.Xo=this.i$.V("html5_gapless_fallback_on_append_error");this.hW=this.i$.V("html5_shorts_stop_request_when_buffer_to_end");this.u6=this.i$.V("html5_vod_stop_request_when_buffer_to_end");
this.yh=this.i$.V("html5_ssdai_use_post_for_media")&&this.i$.V("gab_return_sabr_ssdai_config");this.wD=this.i$.V("html5_use_post_for_media");this.yf=this.i$.V("html5_use_live_ump_heartbeat");this.useUmp=this.i$.V("html5_use_ump");this.sW=this.i$.Om;this.Za=this.i$.V("html5_reset_primary_stats_on_redirector_failure");this.dE=this.i$.V("html5_remap_to_original_host_when_redirected");this.rB=this.i$.V("html5_sabr_support_quality_constraints");this.Le=this.i$.V("html5_sabr_remove_all_quality_constraints");
this.Ts=this.i$.V("html5_iterative_seeking_buffered_time");this.xf=this.i$.V("html5_use_network_error_code_enums");this.Ih=this.i$.V("html5_disable_overlapping_requests");this.enableServerDrivenRequestCancellation=this.i$.V("html5_enable_server_driven_request_cancellation");this.YO=this.i$.V("html5_enable_sabr_request_timing");this.xY=this.i$.V("html5_enable_server_format_filter");this.DM=this.i$.V("html5_enable_lawnmower");this.Rx=this.i$.Jp()?g.lw(this.i$.experiments,"html5_continuous_goodput_probe_interval_ms"):
0;this.NP=g.lw(this.i$.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.qU=this.i$.V("html5_live_defrag_only_h264_playbacks");this.RN=this.i$.V("html5_live_defrag_only_h264_formats");this.nt=this.i$.V("html5_record_now");this.OE=g.lw(this.i$.experiments,"html5_drm_byterate_soft_cap");this.vZ=g.lw(this.i$.experiments,"html5_drm_live_byterate_soft_cap");this.G=this.i$.V("html5_sabr_log_request_creation");this.GR=this.i$.V("html5_use_buffer_timeline_for_sabr_request_creation");this.We=this.i$.V("html5_sabr_report_request_cancellation_info");
this.yI=this.i$.V("html5_spoof_4k");this.UZ=Rb(this,"html5_min_media_duration_for_cabr_slice");this.gB=Rb(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||.01;this.c9=this.i$.V("html5_remove_defrag_without_frame_level_streaming");this.Wh=this.i$.V("html5_consume_all_buffered_bytes_one_poll");this.qr=this.i$.V("html5_disable_urgent_adaptation");this.H6=this.i$.V("html5_apply_constraints_in_client_for_sabr");this.pj=this.i$.V("html5_send_video_playback_ustreamer_config");this.PZ=Rb(this,
"html5_max_discontinuity_rewrite_count");this.Zv=Rb(this,"html5_fixed_media_duration_for_request");this.w8=this.i$.V("html5_apply_fix_for_missing_seg_info_without_logger");this.Z7=Rb(this,"html5_sabr_request_limit_per_period");this.Vz=this.i$.V("html5_sabr_live_partial_segment");this.Sh=this.i$.V("html5_sabr_dispose_media_objects");this.Q7=this.i$.V("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.OW=this.i$.V("html5_enable_d6de4");this.Bu=this.i$.V("html5_ssap_keep_only_ssap_eos_check");this.i$.V("html5_high_res_seek_logging");
this.zz=this.i$.V("html5_disable_chunk_synchronization_sabr_seek");this.hO=this.i$.V("html5_enable_ssap_multi_audio_format_filtering");this.SI=g.lw(this.i$.experiments,"html5_override_micro_discontinuities_threshold_ms");this.bq=this.i$.V("defer_slice_processing_on_healthy_buffer_sabr");this.Yv=this.i$.V("html5_byterate_constraints");this.gD=this.i$.V("html5_refactor_sabr_audio_format_selection_logging");this.QM=this.i$.V("enable_sabr_snackbar_message");this.i$.V("html5_reinit_source_buffer_by_new_element");
this.f8=this.i$.V("html5_refactor_sabr_video_format_selection_logging");this.NU=this.i$.V("html5_log_slice_info_in_sbu");this.MD=Rb(this,"html5_paced_poll_ms");this.Rh=Rb(this,"html5_paced_poll_min_health_ms");this.J0=this.i$.V("html5_disable_sabr_fallback");this.VH=this.i$.V("html5_track_current_buffered_range_at_sync");this.lJ=g.lw(this.i$.experiments,"html5_enable_sps_retry_backoff_ms");this.eh=this.i$.V("html5_sabr_live_timing");this.i$.V("html5_sabr_enable_server_xtag_selection");this.x4=this.i$.V("html5_send_detailed_network_type");
this.oO=this.i$.V("html5_sabr_skip_client_audio_init_selection");this.yJ=this.i$.V("html5_count_updating_slice_for_buffer_health");this.rC=this.i$.V("html5_report_max_buffer_bytes_limit_to_sabr");this.SF=this.i$.V("html5_sabr_live_audio_early_return_fix");this.Bh=g.lw(this.i$.experiments,"html5_platform_max_buffer_health_oversend_duration_secs");this.oh=this.i$.V("html5_cuepoint_identifier_logging");this.qo=this.i$.V("html5_new_sabr_ssdai_cuepoint_logic");this.qn=this.i$.Jp();this.K5=this.i$.V("html5_enable_sps_retry_backoff_metadata_requests");
this.aR=this.i$.V("html5_set_timestamp_offset_from_sabr_live_metadata");this.Hq=this.i$.V("html5_sabr_log_server_xtag_selection_onesie_mismatch");this.Re=this.i$.V("html5_skip_client_drm_license_constraint");this.vr=this.i$.V("html5_reset_last_appended_slice_on_discontinuity")};
dpR=function(F,k,z){z=z===void 0?!1:z;k.video.qualityOrdinal>1080&&!F.Wi&&(F.J4=36700160,F.dH=5242880,F.RU=Math.max(4194304,F.RU),F.Wi=!0);k.video.qualityOrdinal>2160&&!F.gx&&(F.J4=104857600,F.Yu=13107200,F.gx=!0);g.lw(F.i$.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?k.isEncrypted()&&g.Lg()&&g.ng("samsung")&&(g.ng("kant")||g.ng("muse"))&&(F.Yu=g.lw(F.i$.experiments,"html5_samsung_kant_limit_max_bitrate")):k.isEncrypted()&&g.Lg()&&g.ng("kant")&&(F.Yu=1310720);F.OE!==0&&k.isEncrypted()&&
(F.Yu=F.OE);F.vZ!==0&&k.isEncrypted()&&z&&(F.Yu=F.vZ);k.Yu&&(F.Bi=Math.max(F.Xz,Math.min(F.RU,5*k.Yu)))};
g7=function(F){return F.Y&&F.OF&&F.playbackStartPolicy};
YF=function(F){return F.L||F.Y&&F.xY};
zFn=function(F,k,z,x){F.OF&&(F.playbackStartPolicy=k,F.ZM=z,F.Mr=x)};
Rb=function(F,k,z){z=z===void 0?0:z;return g.lw(F.i$.experiments,k)||z};
xUR=function(F){var k=F===void 0?{}:F;F=k.I6;var z=k.WM;var x=k.Rg;var D=k.OJ;k=k.Sl;this.I6=F;this.WM=z;this.Rg=x;this.OJ=D;this.Sl=k};
Yw9=function(F,k){if(k<0)return!0;var z=F.OJ();return k<z||k===z&&!F.I6||k===z&&(F=F.Sl())&&k===F.gt?!0:!1};
nik=function(F,k,z){if(!Yw9(F,k))return 0;if(!F.WM||!isNaN(z)&&z>0)return 2;if(k<0)return 1;z=F.OJ();return k<z||k===z&&(F=F.Sl())&&k===F.gt&&!F.pending?2:1};
nj=function(F,k,z){g.S.call(this);this.aU=F;this.policy=k;this.g3=z;this.L=0;this.Y=!1;this.delay=new g.KS(this.U,this.policy.Rx,this);g.b(this,this.delay)};
i_p=function(F,k){PO(k.Y)||(F.ez=k,F.L=0,g.WN(F.delay))};
DUn=function(F,k,z,x,D){var e=this;this.aU=F;this.policy=k;this.g3=z;this.ez=x;this.PN=D;this.done=!1;this.onTimeout=function(){e.done||(e.done=!0,e.onError("net.timeout"))};
this.size=Math.ceil(Math.min(1E5,.1*Qq(this.g3)));this.timing=new WV(this,{g3:this.g3,Hs:this.size,lC:!0,eC:function(){},
U2:this.policy.U});F=Zr(this.ez,this.PN,this.policy).base.clone();vO(F);F.path!=="/videogoodput"&&(F.path="/videogoodput",F.url=o5[5]);this.location=new hv(F);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=es(this.location,this.policy.B,this.timing,this.policy.w2,{});setTimeout(this.onTimeout,1E4)};
$Ua=function(F,k,z){var x=F.eq();if(F.isComplete()||!x||F.info.ez.PN(k,z))return 0;var D=k.T1;if(!D||x<D)return 0;F=G6(z,vf(F.info.ez,!0,k));return F.Y||F.timedOut||F.started?0:2};
jBn=function(F,k,z){if(!(k.lO&&F.isComplete()&&F.canRetry()&&F.info.ez.PN(k,z))||F.info.ez.B)return 0;F=G6(z,vf(F.info.ez,!1,k));return F.L+k.lO*Bf(F,!0)>(0,g.VE)()?0:1};
Mu=function(F,k,z,x,D,e,C,p,E,X,q,N,u,w){w=w===void 0?null:w;g.S.call(this);var m=this;this.aU=F;this.policy=k;this.videoTrack=z;this.audioTrack=x;this.j=D;this.Y=e;this.timing=C;this.W=p;this.schedule=E;this.b$=X;this.U=q;this.Qh=N;this.aG=u;this.q4=w;this.PR=!1;this.T8="";this.Yf=null;this.o3=NaN;this.t4=!1;this.L=null;this.w$=this.K=NaN;this.Ly=this.S=0;this.logger=new g.C4("dash");this.Pe={Zb:function(h,B){return m.Zb(h,B)}};
this.policy.T9>0&&(this.T8=g.vt(this.policy.T9));this.policy.Rx&&(this.B=new nj(this.aU,this.policy,this.schedule),g.b(this,this.B))};
AJn=function(F,k,z){var x=k.L?k.L.Y.ez:k.Y.ez;var D=F.j,e;(e=!F.policy.dE)||(e=cO(x.Y)===cO(x.U));e?x=!1:(D=G6(D,cO(x.U)),e=6E4*Math.pow(D.j,1.6),(0,g.VE)()<D.L+e?x=!1:(D.L=(0,g.VE)(),D.j+=1,x.Y=x.U.clone(),x=!0));x&&F.aU.UK("hostch",{},!0);if(eFH(F,k,z)){z=F.G(k,z);if(F.L){var C=z.sK[0].Y.info.id;x=F.Y;D=z.sK[0].gt;x=D<0&&!isNaN(x.S)?x.S:D;D=Y7(F.Y,z.sK[0].j,x);var p=k===F.audioTrack?1:2,E=z.sK[0].Y.info.DQ;e=C.split(";")[0];a:{var X=F.Y;if(X.Y){var q=X.Y.w9.event;if(X.Y.gt===x){X=q==="predictStart"?
void 0:X.Y.w9.event;break a}if(X.Y.gt===x-1){X=q==="start"||q==="continue"?q:void 0;break a}}X=void 0}if(F.policy.yh&&F.Y.L!==0){var N=F.L.CH(D,x,C,p,E,X);x<0&&p===2&&n4(F.Y,0,0,!0);if(N){var u;C=((u=N.ea)==null?void 0:u.jl)||"";var w;u=((w=N.ea)==null?void 0:w.Z0)||-1;F.aU.UK("sdai",{ssdaiinfo:"1",ds:C,skipsq:u,itag:e,f:E,sg:x,st:D.toFixed(3)});z.j=N}}else if(w=F.L.kM(D,x,C,p,E,X),x<0&&p===2&&n4(F.Y,0,0,!0),w){u={dec_sq:x,itag:e,st:D.toFixed(3)};if(F.policy.sf&&k.isRequestPending(x-1)){F.aU.UK("sdai",
{wt_daistate_on_sg:x-1});return}F.aU.UK("sdai",u);w&&(z.Y=new g.ZN(w));F.policy.U&&(w=z.ez.qL("id")||"",u=((N=z.Y)==null?void 0:N.get("id"))||"",w!==u&&F.aU.UK("stmidmismatch",{cid:w,aid:u}))}else F.Y.L!==5&&F.aU.UK("sdai",{nodec_sq:x,itag:e,st:D.toFixed(3)})}F.policy.Cs&&z.sK[0].gt!==-1&&z.sK[0].gt<F.b$.W8&&(z=k.Y.qw(F.b$.W8,!1));vg(k,CWn(F,z));Ss(F.timing);var m;(m=F.B)==null||i_p(m,z.ez)}};
eFH=function(F,k,z){if(F.policy.Ji)return!1;var x;var D=F.Y,e=((x=k.L)==null?void 0:x.gt)||-1;D.L===3&&e+1>=D.j?(D.UK("sdai",{haltrq:e+1,est:D.j}),x=!1):x=D.L!==2;if(!x||!cf(k.L?k.L.Y.ez:k.Y.ez,F.policy,F.j,F.aU.e3())||F.aU.isSuspended&&(!hJ(F.schedule)||F.aU.v9))return!1;if(F.policy.j&&P3>=5)return g.WN(F.aU.sB),!1;if(F.b$.isManifestless){if(k.U.length>0&&k.L&&k.L.gt===-1||k.U.length>=F.policy.QV||!F.policy.Nr&&k.U.length>0&&!F.policy.B.WM)return!1;if(k.B)return!F.b$.isLive||!isNaN(F.o3)}if(RGH(k))return F.logger.debug("Pending request with server-selectable format found"),
!1;if(!k.L){if(!k.Y.Ig())return!1;RP(k,F.aU.getCurrentTime())}if(MB(k)&&(k.HF()!==MB(k)||F.aU.isSuspended))return!1;D=(x=F.policy.MU)&&!k.U.length&&Ib(k,!0)<Math.min(x,Ib(z));x=k.U.length+z.U.length;e=!F.policy.Ih&&((k.U.length?k.U[0].ZO():!1)||(z.U.length?z.U[0].ZO():!1)||F.b$.isLive);(D||e)&&--x;if(x+1>=F.policy.Yg)return!1;x=k.L;if(!x)return!0;x.type===4&&x.Y.Ig()&&(k.L=g.YG(x.Y.H1(x)),x=k.L);if(!x.HM()&&!x.Y.R5(x))return!1;e=F.b$.A5||F.b$.j;if(F.b$.isManifestless&&e){e=k.Y.index.OJ();var C=z.Y.index.OJ();
e=Math.min(e,C);if(k.Y.index.l_()>0&&e>0&&x.gt>=e)return k.Xf=e,z.Xf=e,!1}if(x.Y.info.audio&&x.type===4||x.HM())return!1;e=!k.W&&!z.W;if(D=!D)D=x.S,D=!!(z.L&&!Vw(z,z.L)&&z.L.S<D);C=k===F.videoTrack&&F.policy.mp;return D&&(!F.b$.isManifestless||z.L&&z.L.S&&x.S)&&e&&!C||F.policy.mY&&!k.W&&z.W?!1:ds(x)&&x.S>pJp(F,k)?(pJp(F,k),!1):(F=k.xu)&&F.isLocked()?!1:!0};
pJp=function(F,k){var z=F.Y;z=z.Y?z.Y.w9:null;if(F.policy.mp&&z)return z.startSecs+z.B8+15;k=yP(F.aU,k);F.policy.Xm>0&&(z=((0,g.VE)()-F.aU.Ku)/1E3,k=Math.min(k,F.policy.Xm+F.policy.sF*z));z=F.aU.getCurrentTime()+k;return F.policy.yb&&(k=EHx(F.aU)+F.policy.yb,k<z)?(F.aU.UK("mrl",{ori:z,mod:k},!0),F.policy.Hu&&(F=F.aU,z=(0,g.VE)(),F.Ku=z),k):z};
XJn=function(F,k,z){if(z!==0){a:if(k=k.info,z=z===2,k.Y)k=null;else{var x=k.sK[0];if(k.range)var D=Hf(k.range.start,Math.min(4096,k.U));else{if(k.L&&k.L.indexOf("/range/")>=0||k.ez.qL("defrag")==="1"||k.ez.qL("otf")==="1"){k=null;break a}D=Hf(0,4096)}D=new Yd([new Sw(5,x.Y,D,"createProbeRequestInfo"+x.G,x.gt)],k.L);D.PN=z;D.Y=k.Y;k=D}k&&CWn(F,k)}};
CWn=function(F,k){F.aU.UN(k);var z=$iD(k),x=F.aU.AF();z={g3:F.schedule,Hs:z,V5:l7I(F.W,z),d0:bl(k.sK[0]),lC:PO(k.ez.Y),U2:F.policy.U,eC:function(C,p){F.aU.cI(C,p)}};
if(F.schedule.L.S){var D,e;z.Ld=(((D=F.videoTrack.Y)==null?void 0:D.info.Yu)||0)+(((e=F.audioTrack.Y)==null?void 0:e.info.Yu)||0)}F.Yf&&(z.gt=k.sK[0].gt,z.o3=k.o3,z.Yf=F.Yf);x={uO:jDY(k,F.aU.getCurrentTime()),Ll:F.policy.Om&&Mp(k)&&k.sK[0].Y.info.video?RMp(F.U):void 0,Pu:F.policy.mp,poToken:F.aU.eg(),NS:F.aU.LV(),T8:F.T8,w$:isNaN(F.w$)?null:F.w$,q4:F.q4,aG:F.aG,Ly:F.Ly,z7:x};return new bo(F.policy,k,z,F.j,function(C,p){try{a:{var E=C.info.sK[0].Y,X=E.info.video?F.videoTrack:F.audioTrack;if(!(C.state>=
2)||C.isComplete()||C.eq()||!(!F.aU.IU||F.aU.isSuspended||Ib(X)>3)){var q=$Ua(C,F.policy,F.j);q===1&&(F.t4=!0);XJn(F,C,q);if(C.isComplete()||C.z4()&&p<3){if(F.policy.U){var N=C.timing.Yr();N.rst=C.state;N.strm=C.xhr.Aw();N.cncl=C.xhr&&C.nJ.j?1:0;F.aU.UK("rqs",N)}C.il&&F.aU.UK("sbwe3",{},!0)}if(!F.z4()&&C.state>=2){u5k(F.timing,C,E);var u=F.aU;F.w$&&C.VD&&u&&(F.w$=NaN,F.aU.Jc(C.VD),F.aU.Wt(),F.aU.UK("cabrUtcSeek",{mediaTimeSeconds:C.VD}));C.B1&&F.w$&&C.B1&&!C.B1.action&&(F.aU.pw(F.w$),F.w$=NaN,F.aU.UK("cabrUtcSeekFallback",
{targetUtcTimeSeconds:F.w$}));C.bV&&F.aU.P$(C.bV);F.policy.yf&&(F.Ly=C.Ly);if(C.state===3){ab(X,C);Mp(C.info)&&Lj(F,X,E,!0);if(F.L){var w=C.info.kM();w&&F.L.HN(C.info.sK[0].gt,E.info.id,w)}F.aU.Ib()}else if(C.isComplete()&&C.info.sK[0].type===5){if(C.state!==4)C.rp()&&F.aU.handleError(C.Cn(),C.VV());else{var m=(C.info.sK[0].Y.info.video?F.videoTrack:F.audioTrack).U[0]||null;m&&m instanceof bo&&m.eq()&&m.B$()}C.dispose()}else{C.rp()||q5M(F,C);var h;((h=C.pV)==null?0:h.itagDenylist)&&F.aU.z3(C.pV.itagDenylist);
if(C.state===4)NwR(F,C),F.Y&&lrY(F.Y,C.info,F.L);else if(F.policy.w2&&C.mW()&&!C.isComplete()&&!NwR(F,C)&&!C.rp())break a;C.rp()&&(uAk(F,C),isNaN(F.w$)||(F.aU.pw(F.w$),F.w$=NaN));F.policy.MD&&!C.isComplete()?wJD(F.aU):F.aU.Ib();var B=jBn(C,F.policy,F.j);XJn(F,C,B)}}}}}catch(U){p=F.PR?1:0,F.PR=!0,C=VQ(p),p=IN(U,p),F.aU.handleError(p.errorCode,p.details,p.severity),C||F.aU.f$()}},x)};
q5M=function(F,k){if(k.g_&&k.state>=2&&k.state!==3){var z=k.xhr.getResponseHeader("X-Response-Itag");if(z){F.logger.debug(function(){return"Applying streamer-selected format "+z});
var x=yvn(F.U,z),D=k.info.U;D&&(D-=x.C2(),x.U=!0,k.info.sK[0].Y.U=!1,Y_I(k,x.z0(D)),fj(F.aU,F.videoTrack,x),glx(F.videoTrack,x),F.aU.oJ(x.info.video.quality),(D=k.d4())&&x.info.lastModified&&x.info.lastModified!==+D&&ab(F.videoTrack,k))}else k.g_=!1}};
uAk=function(F,k){var z=k.info.sK[0].Y,x=k.Cn();if(PO(z.ez.Y)){var D=g.T8(k.SO(),3);F.aU.UK("dldbrerr",{em:D||"none"})}D=k.info.sK[0].gt;var e=Y7(F.Y,k.info.sK[0].j,D);x==="net.badstatus"&&(F.S+=1);if(k.canRetry()&&mUC(F.aU)){if(!(k.info.ez.L>=F.policy.VI&&F.L&&k.info.isDecorated()&&x==="net.badstatus"&&F.L.JL(e,D))){D=(z.info.video&&z.ez.L>1||k.H5===410||k.H5===500||k.H5===503)&&!(Wr(F.U.W).size>0)&&!PO(z.ez.Y);e=k.VV();var C=z.info.video?F.videoTrack:F.audioTrack;D&&(e.stun="1");F.aU.handleError(x,
e);F.z4()||(D&&(F.logger.debug(function(){return"Stunning format "+z.info.id}),i9(F.U,z)),ab(C,k),F.aU.Ib())}}else C=1,F.L&&k.info.isDecorated()&&x==="net.badstatus"&&F.L.JL(e,D)&&(C=0),F.b$.isLive&&k.Cn()==="net.badstatus"&&F.S<=F.policy.YZ*2?(jQp(F.b$),F.b$.A5||F.b$.isPremiere?nh(F.aU,0,{Sr:"badStatusWorkaround"}):F.b$.j?nh(F.aU,F.b$.cR,{Sr:"badStatusWorkaround",
AK:!0}):Kj(F.aU)):F.aU.handleError(x,k.VV(),C)};
NwR=function(F,k){if(F.policy.useUmp&&k.z4())return!1;try{var z=k.info.sK[0].Y,x=z.info.video?F.videoTrack:F.audioTrack;if(F.b$.isManifestless&&x){F.S=0;x.B&&(k.z4(),k.isComplete()||k.mW(),x.B=!1);k.VN()&&F.aU.gE.K$(1,k.VN());var D=k.l_(),e=k.Jd();cU(F.b$,D,e)}if(k.info.d0()&&!nz(k.info))for(var C=g.l(k.tK()),p=C.next();!p.done;p=C.next())Z3n(x,p.value);for(F.aU.getCurrentTime();x.U.length&&x.U[0].state===4;){var E=x.U.shift();tJn(x,E);x.J4=E.bI()}x.U.length&&tJn(x,x.U[0]);var X=!!MB(x);X&&k instanceof
ST&&(z.info.QZ()?ClM(F.timing):eMI(F.timing));return X}catch(q){k=k.VV();k.origin="hrhs";a:{F=F.aU;z=q;if(z instanceof Error){k.msg||(k.msg=""+z.message);k.name||(k.name=""+z.name);if(z instanceof g.Fa&&z.args)for(x=g.l(Object.entries(z.args)),D=x.next();!D.done;D=x.next())e=g.l(D.value),D=e.next().value,e=e.next().value,k["arg"+D]=""+e;g.yI(z);if(z.level==="WARNING"){F.La.w0(k);break a}}F.handleError("fmt.unplayable",k,1)}return!1}};
Tw9=function(F){var k=F.videoTrack.Y.index;F.Yf=new xUR({I6:F.policy.I6,WM:F.policy.B.WM,Rg:k.n5(),OJ:function(){return k.OJ()},
Sl:function(){return k.Sl()}})};
Lj=function(F,k,z,x){var D=F.policy.K5?F.aU.e3():0;z.Ig()||z.fV()||z.U||!cf(z.ez,F.policy,F.j,D)||z.info.DQ==="f"||F.policy.Y||(x?(x=F.W,D=z.info,x=QlC(x,D.video?x.policy.v$:x.policy.uo,D.Yu)):x=0,x=z.z0(x),F=CWn(F,x),nz(x)&&vg(k,F),z.U=!0)};
Wg=function(F,k,z,x,D,e,C,p){g.S.call(this);var E=this;this.aU=F;this.dl=k;this.videoTrack=z;this.audioTrack=x;this.b$=D;this.K=e;this.isAudioOnly=C;this.S=p;this.L=y6;this.t4=!1;this.logger=new g.C4("sabr");this.B=this.PR=this.Qh=!1;this.videoInfos=this.G=this.K.videoInfos;this.U=this.mp=this.K.Y;this.Y=new f4(k,e,function(X,q){E.aU.UK(X,q)});
this.dl.oO||lXI(this);this.isAudioOnly&&QBI(this,this.b$.Y["0"])};
hFR=function(F,k){var z=[];k=g.l(k);for(var x=k.next();!x.done;x=k.next())z.push(g.$b(x.value,F.b$.oS));return z};
QBI=function(F,k,z){k!==F.j&&(F.j&&(F.t4=!0),F.j=k,F.yK(k,F.videoTrack,z))};
G9C=function(F,k){F.logger.debug("setConstraint: "+uj(k));YF(F.dl)&&(F.PR=k.reason==="m"||k.reason==="l"?!0:!1);k.reason==="m"?k.isLocked()&&sBD(F,k.Y):rJp(F,k)?Bw5(F,k.L,k.Y):F.videoInfos=F.G;F.L=k};
rJp=function(F,k){return F.dl.rB&&k.reason==="b"||F.dl.Re&&k.reason==="l"||F.dl.Le?!1:F.dl.H6?!0:k.reason==="l"||k.reason==="b"||k.reason==="o"};
UUp=function(F,k){return k.isLocked()&&F.Y.L||F.L===void 0?!1:k.VZ(F.L)};
tPH=function(F,k){var z,x=(z=F.j)==null?void 0:z.info.video.qualityOrdinal;return F.t4?!0:F.j?k!==x?!0:!F.Y.L||F.dl.Q7&&F.Y.Y===F.j.info.itag?!1:!0:!1};
sBD=function(F,k){var z=F.Y.Y;if(z){F.videoInfos=F.G;var x=g.M$(F.videoInfos,function(D){return D.id===z});
x&&x.video.qualityOrdinal===k?F.videoInfos=[x]:(x=F.videoInfos.map(function(D){return D.id}),F.aU.UK("sabrpf",{pfid:""+z,
vfids:""+x.join(".")}),Bw5(F,k,k),F1(F.Y,""))}else Bw5(F,k,k)};
Bw5=function(F,k,z){F.videoInfos=F.G;F.videoInfos=g.pT(F.videoInfos,function(x){return x.video.qualityOrdinal>=k&&x.video.qualityOrdinal<=z})};
lXI=function(F){var k=Bsk(F.Y,F.S);k&&(F.U=[k])};
Z_5=function(F,k,z){if(F.dl.oO){if(F.S){var x=g.pT(F.U,function(D){return D.id===F.S});
return Fc(x,z).includes(k)}x=g.pT(F.U,function(D){var e;return!((e=D.ZD)==null||!e.isDefault)});
if(x.length>0)return Fc(x,z).includes(k)}return Fc(F.U,z).includes(k)};
Fc=function(F,k){return F.map(function(z){return Pf(g.$b(z,k))})};
vHp=function(F){var k;if((k=F.L)==null?0:k.isLocked())return F.videoInfos;var z=Wr(F.Y);k=g.pT(F.videoInfos,function(x){return x.Yu>F.dl.Yu?!1:!z.has(x.id)});
rvx(F.Y)&&(k=g.pT(k,function(x){return x.video.width<=854&&x.video.height<=480}));
return k};
O_I=function(F,k,z,x){var D=F.b$,e=F.La.getVideoData(),C=g.Mk(e),p=F.N8,E=rv({i$:e.C(),La:F.La,GG:F.GG,dl:F.dl,Ku:F.Ku,zH:F.zH,Md:F.Md,eW:F.eW,WC:F.WC,isPrefetch:F.isPrefetch,xw:F.xw,sabrLicenseConstraint:e.sabrLicenseConstraint,P6:F.P6,ZG:F.ZG,eM:F.eM,Wy:F.Wy,Kp4:!!p,z1:e.z1}),X=Br(e,F.z7,F.nextRequestPolicy,F.BN,F.E_,F.uAa,F.Wg);x&&z&&(x=X.QI?X.QI.map(function(h){return h.type}):[],z("sabr",{stmctxt:x.join("_"),
unsntctxt:X.yq?X.yq.join("_"):""}));x=F.HI;var q=F.ws;if(q===void 0&&x===void 0){var N;q=cJ6(D.oS,(N=F.Dt)==null?void 0:N.video);var u;x=cJ6(D.oS,(u=F.Dt)==null?void 0:u.audio)}if(e.q4)var w=e.q4;e={a9:E,Pz:F.Pz,HI:x,ws:q,N8:p,videoPlaybackUstreamerConfig:w,Xi:X};F.ea&&(e.ea=F.ea);if(C&&k){C=new Map;var m=g.l(D.yh);for(p=m.next();!p.done;p=m.next())p=p.value,(E=D.l$[RBp(D,p)]||"")?(C.has(E)||C.set(E,[]),C.get(E).push(p)):z&&z("ssap",{nocid4fmt:(p.itag||"")+"_"+(p.lmt||0)+"_"+(p.xtags||"")});D=new Map;
m=g.l(F.pN);for(p=m.next();!p.done;p=m.next())p=p.value,E=p.startTimeMs||0,X=void 0,N=(X=k)==null?void 0:HV(X,E),X=N.clipId,N=N.US,X?(D.has(X)||(u=C.get(X)||[],D.set(X,{clipId:X,pN:[],Hr:u})),N!==0&&(p.startTimeMs=E-N),D.get(X).pN.push(p)):z&&(X=void 0,z("ssap",{nocid4range:"1",fmt:((X=p.formatId)==null?void 0:X.itag)||"",st:E.toFixed(3),d:(p.durationMs||0).toFixed(3),timeline:kt(k)}));e.UD=[];D=g.l(D.entries());for(C=D.next();!C.done;C=D.next())C=g.l(C.value),C.next(),C=C.next().value,e.UD.push(C);
if(F.pN.length&&!e.UD.length){z&&z("ssap",{nobfrange:"1",br:PWM(F.pN),timeline:kt(k)});return}F.nX&&(e.nX=F.nX);F.o1&&(e.o1=F.o1)}else e.pN=F.pN,e.Hr=D.yh,C&&((m=F.pN)==null?void 0:m.length)>0&&!k&&z&&z("ssap",{bldmistlm:"1"});return e};
cJ6=function(F,k){return k?[g.$b(k.info,F)]:[]};
PWM=function(F){var k="";F=g.l(F);for(var z=F.next();!z.done;z=F.next()){z=z.value;var x=void 0,D=void 0,e=void 0;k+="fmt."+(((x=z.formatId)==null?void 0:x.itag)||"")+"_"+(((D=z.formatId)==null?void 0:D.lmt)||0)+"_"+(((e=z.formatId)==null?void 0:e.xtags)||"")+";st."+(z.startTimeMs||0).toFixed(3)+";d."+(z.durationMs||0).toFixed(3)+";"}return k};
on=function(F,k,z){var x=this;this.requestType=F;this.ez=k;this.EH=z;this.L=null;this.Pe={PWQ:function(){var D;return(D=x.data)==null?void 0:D.isPrefetch},
E_:function(){var D;return(D=x.data)==null?void 0:D.E_}}};
izn=function(F,k,z){k=Zr(F.ez,VPH(F,k,z),k);F.I9()&&k.set("probe","1");return k};
VPH=function(F,k,z){F.PN===void 0&&(F.PN=F.ez.PN(k,z));return F.PN};
IXM=function(F){var k,z;return((k=F.Y)==null?void 0:(z=k.a9)==null?void 0:z.MO)||0};
H_H=function(F){var k,z;return!!((k=F.Y)==null?0:(z=k.a9)==null?0:z.P6)};
aX5=function(F){var k={},z=[],x=[];if(!F.data)return k;for(var D=0;D<F.data.pN.length;D++){var e=F.data.pN[D],C=void 0;z.push("i."+((C=e.formatId)==null?void 0:C.itag)+"_st."+(e.startTimeMs+"_e."+(e.startTimeMs+e.durationMs)+"_d."+e.durationMs)+("_sn."+e.t$)+("_en."+e.d$))}for(D=0;D<F.data.Pz.length;D++){e=F.data.Pz[D];var p=C=void 0,E=void 0,X=void 0;x.push("i."+((C=e.formatId)==null?void 0:C.itag)+"_sn."+e.sequenceNumber+"_sl."+(e.vM||NaN)+"_lb."+e.SQ+"_tr.s_"+((p=e.Xc)==null?void 0:p.startTicks)+
"_d_"+((E=e.Xc)==null?void 0:E.Bt)+"_t_"+((X=e.Xc)==null?void 0:X.timescale)+"_ed_"+e.td)}k.ptime=IXM(F);k.rtype=F.requestType;k.brl=z.join(";");k.ps=x.join(";");return k};
S5Y=function(F){if(F.pn)return{d7:g.lw(F.experiments,"html5_future_encryptor_auto_select_js_max_size_bytes"),A1:g.lw(F.experiments,"html5_future_encryptor_auto_select_wasm_max_size_bytes")}};
zg=function(F,k){this.E3=F;this.cipher=this.E3.exports.AES128CTRCipher_create(k.byteOffset)};
b_5=function(F){return function(k){return{profile:F,vx:Math.ceil(k.byteLength/16)}}};
xt=function(F,k){this.key=F;this.subtleCrypto=k;this.Y=!1};
dUI=function(F){var k=globalThis.crypto.subtle;k=k===void 0?window.crypto.subtle:k;return QK(TZ(function(){return k.importKey("raw",F,"AES-CTR",!1,["encrypt"]).catch(function(z){return Promise.reject(z.name+": "+z.message)})}),function(z){return new xt(z,k)})};
i$=function(F){this.Y=!1;this.L=new si(F)};
Dz=function(F,k){this.E3=F;var z=F.lH(k);this.Y=new zg(F,z!=null?z:k);z&&F.free(z.byteOffset)};
JJM=function(F){g.yI("wasm encryptor failed: "+F);throw F;};
$t=function(F,k,z){var x=this;this.key=F;this.j=this.W=!1;this.d7=32768;this.A1=131072;k==null||QK(k,function(D){x.Y=new Dz(D,x.key);x.j=D.Cu});
if(z==null?0:z.A1)this.A1=z.A1;if(z==null?0:z.d7)this.d7=z.d7};
yJn=function(F,k,z){F.L||(F.L=new i$(F.key));return hd(F.L.encrypt(k,z),JJM)};
RFa=function(F,k,z){if(!F.U){if(!("crypto"in globalThis&&"subtle"in globalThis.crypto))return mM("native encryptor unavailable");F.U=dUI(F.key)}return hd(QK(F.U,function(x){return x.encrypt(k,z)}),JJM)};
jN=function(F,k,z){this.Y=F;this.E3=k;this.j=z;this.U=!1;this.iv=(0,g.Gv)(Z1(16))};
gHk=function(F){F.L||(F.L=new $t(F.Y.Y,F.E3,F.j));return F.L};
Y56=function(F,k){var z;return g.O(function(x){(0,g.VE)();z=PNH(F.Y);return x.return(z.encrypt(k,F.iv))})};
nHD=function(F,k){var z;return g.O(function(x){(0,g.VE)();var D=F.Y;D.j||(D.j=new YxI(D.U));z=D.j;return x.return(LfD(z,k,F.iv))})};
MPC=function(F,k,z){var x;return g.O(function(D){(0,g.VE)();x=PNH(F.Y);return D.return(x.decrypt(k,z))})};
eN=function(F){g.S.call(this);var k=this;this.YG=F;this.Y=new Map;this.j=[];this.L=!this.YG.experiments.Ca("html5_disable_trusted_hosts")&&!Ui();this.K=g.lw(this.YG.experiments,"html5_onesie_prewarm_interval_ms");this.B=new g.KS(this.G,this.K,this);this.S=-1;this.Pe={Ftf:function(){return k.Y},
TMU:function(){return k.W},
tqa:function(){return LaD}};
g.b(this,this.B);wO6(this,g.bn("yt-player-bandaid-host"));this.W=this.load();this.K&&this.W.then(function(){k.G()})};
wO6=function(F,k){var z=k==null?void 0:k.primary;F.U(0,z);z=z?fXY(z):void 0;F.U(2,z);F.U(1,k==null?void 0:k.secondary)};
CA=function(F,k){return new g.ZN("https://"+k+F.YG.En.baseUrl)};
KaY=function(F,k){F="https://"+cO(k.location)+"/initplayback?c="+FA(F.YG)+"&owc=1";tq(F,"pw",function(z){z.ht=k.Y})};
AA=function(F,k,z,x){tq("https://"+k+"/videoplayback?probe=1",z,function(D){!x.V("html5_onesie_host_racing")||x.videoData.isLivePlayback||x.V("html5_onesie_probe_ec_hosts")||x.X_||x.eT();F.j.push(D)},function(D){F.j.push(D.details)})};
fXY=function(F){return F.replace(/(\d+)---/g,function(k,z){k=Number(z);return(k===1?2:k-1)+"---"})};
WaC=function(F,k){var z,x,D,e,C,p,E,X;return g.O(function(q){if(q.Y==1){z=CA(F,"redirector.googlevideo.com");z.set("alr","yes");z.set("id",""+Math.round(Math.random()*1E5));if(k===1||k===2)z.set("cmo=sensitive_content","yes"),z.set("sc","yes");k===2&&z.set("cmo=td","c.youtube.com");x={format:"RAW",timeout:5E3};return g.c(q,cp(z.q5(),x),2)}D=q.L;if(D.xhr.status!==200||!D.xhr.responseText)return q.return(Promise.reject(new g.Fa("b204258371_no_host",z.q5(),D.xhr.status)));e=new g.ZN(D.xhr.responseText);
C=cO(e);p=e.get("ms");E=CA(F,C);X=e.get("mm");E.set("ms",p);E.set("mm",X);return C&&uM6(C)?k!==2||No(C)?q.return(E):q.return(Promise.reject(new g.Fa("b204258371_untrusted",C,p))):q.return(Promise.reject(new g.Fa("b204258371_invalid",C,p)))})};
FY5=function(F){var k=F.j;F.j=[];return k};
uM6=function(F){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(F)};
No=function(F){var k=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(F)&&!k.test(F)};
keD=function(F,k){this.location=F;this.Y=k};
oEn=function(F){this.Fk=F;this.L=!1;this.Y=[]};
E4=function(F){for(;F.Y.length&&!F.Y[0].isEncrypted;){var k=F.Y.shift(),z=k.videoId,x=k.BZ,D=k.formatId,e=k.buffer;k=k.oE;if(e)k=void 0,(k=pA(F.Fk.EJ,z))==null||Hr(k,x,D,e);else if(k)F.Fk.EJ.PC(z,x,D);else if(x=F.Fk,x.Y[D].X0=!0,z=pA(x.EJ,z),z==null?0:z.Al.has(D))z==null||Pr(z,D)}};
g.iKH=function(F){this.data=F;this.Y=0;this.j=!1;this.U=0;this.error=!1;this.register=this.L=0;if(Xc.length===0){Xc.length=288;Xc.fill(8);for(F=144;F<280;F++)Xc[F]=F<=255?9:7;zxn.length=32;zxn.fill(5);q7.length=286;q7.fill(0);for(F=261;F<285;F++)q7[F]=Math.floor((F-261)/4);N7[257]=3;for(F=258;F<285;F++){var k=N7[F-1];k+=1<<q7[F-1];N7[F]=k}N7[285]=258;for(F=0;F<30;F++)xkk[F]=F<=3?0:Math.floor((F-2)/2);for(F=u$[0]=1;F<30;F++)k=u$[F-1],k+=1<<xkk[F-1],u$[F]=k}F=100+7*this.data.length;this.data[0]===31&&
this.data[1]===139&&(F=(new DataView(this.data.buffer,this.data.byteOffset+this.data.length-4)).getUint32(0,!0),this.data=this.data.subarray(10,this.data.length-8));this.output=new Uint8Array(F)};
g.AT6=function(F){for(;!F.j&&!F.error;){var k=F;k.j=!!wS(k,1);switch(wS(k,2)){case 2:var z=[],x=[];x.length=19;x.fill(0);var D=wS(k,5)+257;var e=wS(k,5)+1;for(var C=wS(k,4)+4,p=0;p<C;p++)x[Dk6[p]]=wS(k,3);x=$kp(x);for(C=D+e;z.length<C;){p=jt9(k,x);switch(p){case 16:p=z[z.length-1];var E=wS(k,2)+3;break;case 17:p=0;E=wS(k,3)+3;break;case 18:p=0;E=wS(k,7)+11;break;default:E=1}for(;E>0;E--)z.push(p)}z.length!==C?k.error=!0:(e=z.slice(-e),z.length=D,exD(k,z,e));break;case 1:exD(k,Xc,zxn);break;case 0:CJn(k,
k.Y&7);z=wS(k,16);D=wS(k,16);(z^D)!==65535&&(k.error=!0);k.output.set(k.data.subarray(k.L,k.L+z),k.U);k.L+=z;k.U+=z;break;default:k.error=!0}F.U>F.output.length&&(F.output=new Uint8Array(F.U*2),F.U=0,F.L=0,F.j=!1,F.Y=0,F.register=0)}F.output.length!==F.U&&(F.output=F.output.subarray(0,F.U));return F.error?new Uint8Array(0):F.output};
exD=function(F,k,z){k=$kp(k);z=$kp(z);for(var x=F.data,D=F.output,e=F.U,C=F.register,p=F.Y,E=F.L;;){if(p<15){if(E>x.length){F.error=!0;break}C|=(x[E+1]<<8)+x[E]<<p;E+=2;p+=16}var X=k[C&127];if(X<0)for(C>>=7;X<0;)X=k[(C&1)-X],C>>=1;else C>>=X&15;p-=X&15;X>>=4;if(X<256)D[e++]=X;else if(F.register=C,F.Y=p,F.L=E,X>256){C=N7[X];C+=wS(F,q7[X]);E=jt9(F,z);p=u$[E];p+=wS(F,xkk[E]);if(p3a&&C<p)p=e-p,D.copyWithin(e,p,p+C);else for(E=e+C,X=e;X<E;X+=4)D[X]=D[X-p],D[X+1]=D[X-p+1],D[X+2]=D[X-p+2],D[X+3]=D[X-p+3];
e+=C;C=F.register;p=F.Y;E=F.L}else break}F.U=e};
jt9=function(F,k){if(F.Y<7){var z=F.data,x=F.L;x>z.length&&(F.error=!0);F.register|=(z[x+1]<<8)+z[x]<<F.Y;F.L+=2;F.Y+=16}z=k[F.register&127];if(z>=0)return CJn(F,z&15),z>>4;for(CJn(F,7);z<0;)z=k[wS(F,1)-z];return z>>4};
wS=function(F,k){for(;F.Y<k;){if(F.L>=F.data.length)return F.error=!0,0;F.register|=F.data[F.L++]<<F.Y;F.Y+=8}var z=F.register&(1<<k)-1;F.register>>=k;F.Y-=k;return z};
CJn=function(F,k){F.Y-=k;F.register>>=k};
$kp=function(F){for(var k=[],z=g.l(F),x=z.next();!x.done;x=z.next())x=x.value,k[x]||(k[x]=0),k[x]++;var D=k[0]=0;z=[];var e=0;x=0;for(var C=1;C<k.length;C++)k[C]?x=C:k[C]=0,D=D+k[C-1]<<1,z[C]=D,C>7&&(e+=k[C]);for(D=1;D<e;)D<<=1;k=128;x=new Int16Array(128+(D+x)*2);for(e=0;e<F.length;e++)if(C=F[e]){for(var p=z[C]++,E=D=0;E<C;E++)D=D<<1|p>>E&1;p=e<<4|C;if(C<=7)for(E=1<<7-C;E--;)x[E<<C|D]=p;else{E=D&127;C-=7;for(D>>=7;C--;){x[E]||(x[E]=-k,k+=2);var X=D&1;D>>=1;E=X-x[E]}x[E]=p}}return x};
EE6=function(F){var k,z,x,D,e,C,p;return g.O(function(E){switch(E.Y){case 1:if(!("DecompressionStream"in window))return E.return(g.AT6(new g.iKH(F)));k=new DecompressionStream("gzip");z=k.writable.getWriter();z.write(F);z.close();x=k.readable.getReader();D=new rx([]);case 2:return g.c(E,x.read(),5);case 5:e=E.L;C=e.value;if(p=e.done){E.Sk(4);break}D.append(C);E.Sk(2);break;case 4:return E.return(D.fk())}})};
mt=function(F,k){this.Y=F;this.E3=k};
X3n=function(F){return hd(hd(TZ(function(){return QK(F.E3,function(k){return F.qh(F.Y,k)})}),function(){return F.R7(F.Y)}),function(){return F.JQ(F.Y)})};
qmR=function(F,k){return X3n(new mt(F,k))};
w39=function(F){tS.call(this,"onesie");this.EJ=F;this.Y={};this.U=!0;this.j=null;this.queue=new oEn(this);this.W={};this.S=zeD(function(k,z){var x=this;return function e(){var C,p,E,X,q,N,u,w,m,h,B,U,v,P,I,d,W,M,xY,$Y;return p6a(e,function(Fx){switch(Fx.Y){case 1:g.hn(Fx,2);x.EJ.xd();C=function(y){return function(K){throw{name:y,message:K};}};
p=k.fk();g.lD(Fx,4,5);if(!z){Fx.Sk(7);break}return j59(Fx,hd(NgC(x.EJ,p,x.iv),C("DecryptError")).wait(),8);case 8:E=Fx.L;case 7:if(!x.EJ.enableCompression){Fx.Sk(9);break}return j59(Fx,hd(qmR((N=E)!=null?N:p,x.EJ.C().pn),C("DecompressError")).wait(),10);case 10:X=Fx.L;case 9:q=MW((w=(u=X)!=null?u:E)!=null?w:p,$QD);case 5:g.B6(Fx,0,2);if(h=(m=x.EJ.C())==null?void 0:m.E3)((B=E)==null?void 0:B.buffer)===h.exports.memory.buffer&&h.free(E.byteOffset),((U=X)==null?void 0:U.buffer)===h.exports.memory.buffer&&
h.free(X.byteOffset);g.UC(Fx,6);break;case 4:throw P=v=g.rI(Fx),new O3("onesie.response.parse",{name:(M=P.name)!=null?M:"unknown",message:(xY=P.message)!=null?xY:"unknown",wasm:((I=x.EJ.C())==null?0:I.E3)?((d=x.EJ.C())==null?0:(W=d.E3)==null?0:W.Cu)?"1js":"1":"0",enc:x.U,gz:x.EJ.enableCompression,webcrypto:!!Ui()});case 6:return ud6(q),$Y=g.OP(q.body),Fx.return($Y);case 2:g.B6(Fx),g.UC(Fx,0)}})}()})};
mkx=function(F){var k=F.queue;k.Y.length&&k.Y[0].isEncrypted&&!k.L&&(k.Y.length=0);k=g.l(Object.keys(F.Y));for(var z=k.next();!z.done;z=k.next()){z=z.value;var x=F.Y[z];if(!x.X0){var D=F.queue;D.Y.push({videoId:x.videoId,formatId:z,isEncrypted:!1});D.L||E4(D)}}};
lLx=function(F,k){var z=k.getLength(),x=!1;switch(F.j){case 0:F.EJ.V("html5_future_onesie_ump_handler_on_player_response")?hd(QK(F.S(k,F.U),function(D){Tgn(F.EJ,D)}),function(D){F.EJ.YR(D)}):F.xd(k,F.U).then(function(D){Tgn(F.EJ,D)},function(D){F.EJ.YR(D)});
break;case 2:F.t5("ormk");k=k.fk();F.queue.decrypt(k);break;default:x=!0}F.EJ.vz&&F.EJ.UK("ombup","id.11;pt."+F.j+";len."+z+(x?";ignored.1":""));F.j=null};
ud6=function(F){if(F.QP!==1)throw new O3("onesie.response.badproxystatus",{st:F.QP,webcrypto:!!Ui(),textencoder:!!g.bD.TextEncoder});if(F.b4!==200)throw new O3("onesie.response.badstatus",{st:F.b4});};
Qtp=function(F){return new Promise(function(k){setTimeout(k,F)})};
hxC=function(F,k){var z=F.C();z=F.ZR&&z.V("html5_onesie_preload_use_content_owner");var x=F.lE,D=oB(k.YG.experiments,"debug_bandaid_hostname");if(D)k=CA(k,D);else if((z===void 0?0:z)&&(x==null?0:x.url)&&!k.L){var e=cO(new g.ZN(x.url));k=CA(k,e)}else k=(e=k.Y.get(0))==null?void 0:e.location.clone();if(k&&F.videoId){e=jP(F.videoId);F=[];if(e)for(e=g.l(e),z=e.next();!z.done;z=e.next())F.push(z.value.toString(16).padStart(2,"0"));k.set("id",F.join(""));return k}};
stD=function(F,k,z){z=z===void 0?0:z;var x,D;return g.O(function(e){if(e.Y==1)return x=[],x.push(k.load()),z>0&&x.push(Qtp(z)),g.c(e,Promise.race(x),2);D=hxC(F,k);return e.return(D)})};
rTR=function(F,k,z,x){x=x===void 0?!1:x;F.set("cpn",k.clientPlaybackNonce);F.set("opr","1");var D=k.C();F.set("por","1");Ui()||F.set("onem","1");k.startSeconds>0&&F.set("osts",""+k.startSeconds);x||(D.V("html5_onesie_disable_partial_segments")&&F.set("oses","1"),k=D.V("html5_gapless_onesie_no_media_bytes")&&xJ(k)&&k.ZR,z&&!k?(k=z.audio,F.set("pvi",z.video.join(",")),D.V("html5_onesie_disable_audio_bytes")||F.set("pai",k.join(",")),kH||F.set("osh","1")):(F.set("oad","0"),F.set("ovd","0"),F.set("oaad",
"0"),F.set("oavd","0")))};
BgI=function(F,k,z,x,D){D=D===void 0?!1:D;var e="https://web.archive.org/web/20250411103644/https://youtubei.googleapis.com/youtubei/"+k.je.innertubeApiVersion+"/player",C=[{name:"Content-Type",value:"application/json"}];x&&C.push({name:"Authorization",value:"Bearer "+x});C.push({name:"User-Agent",value:g.ZH()});g.LX("EOM_VISITOR_DATA")?C.push({name:"X-Goog-EOM-Visitor-Id",value:g.LX("EOM_VISITOR_DATA")}):(z=z.visitorData||g.LX("VISITOR_DATA"))&&C.push({name:"X-Goog-Visitor-Id",value:z});(z=g.LX("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&C.push({name:"X-YouTube-Lava-Device-Context",
value:z});(k=oB(k.experiments,"debug_sherlog_username"))&&C.push({name:"X-Youtube-Sherlog-Username",value:k});F=HZ(JSON.stringify(F));return{url:e,xH:C,postBody:F,oY_:D,jE:D}};
UkI=function(F,k,z,x,D,e){var C=g.zx(F,DQa,F.jE?void 0:z.E3),p={encryptedClientKey:k.Y.encryptedClientKey,tJ:!0,U4:!0,L2:GeY(z,!!F.jE),AN:z.experiments.Ca("html5_use_jsonformatter_to_parse_player_response")};if(F.jE)p.Sif=C;else{F=k.encrypt(C);var E;if(((E=z.E3)==null?void 0:E.exports.memory.buffer)===C.buffer&&F.byteOffset!==C.byteOffset){var X;(X=z.E3)==null||X.free(C.byteOffset)}var q;F=((q=z.E3)==null?void 0:q.VW(F))||F;C=p.jR=F;(0,g.VE)();C=g3H(new R$5(k.Y.U),C,k.iv);p.o7=C;p.iv=k.iv}k=x.getVideoData();
z=rv({i$:z,La:x,GG:k.startSeconds*1E3});D={Ay:p,a9:z,onesieUstreamerConfig:D,vF:e,Xi:Br(k)};k.reloadPlaybackParams&&(D.reloadPlaybackParams=k.reloadPlaybackParams);return D};
tma=function(F,k,z){var x,D,e;return g.O(function(C){if(C.Y==1)return x=g.zx(k,DQa),g.c(C,Y56(z,x),2);if(C.Y!=3)return D=C.L,g.c(C,nHD(z,D),3);e=C.L;return C.return({jR:D,encryptedClientKey:z.Y.encryptedClientKey,iv:z.iv,o7:e,tJ:!0,U4:!0,L2:GeY(F,!!k.jE),AN:F.experiments.Ca("html5_use_jsonformatter_to_parse_player_response")})})};
ZK6=function(F,k,z,x,D,e){var C,p,E,X;return g.O(function(q){if(q.Y==1)return g.c(q,tma(z,F,k),2);C=q.L;p=x.getVideoData();E=rv({i$:z,La:x,GG:p.startSeconds*1E3});X={Ay:C,a9:E,onesieUstreamerConfig:D,vF:e,Xi:Br(p)};p.reloadPlaybackParams&&(X.reloadPlaybackParams=p.reloadPlaybackParams);return q.return(X)})};
GeY=function(F,k){F=Qq(F.schedule,!0);k=k||!!Ui()&&F>1572864;return"DecompressionStream"in window||!k};
l$=function(F,k){g.S.call(this);var z=this;this.La=F;this.playerRequest=k;this.logger=new g.C4("onesie");this.xhr=null;this.state=1;this.IV=new xh;this.eH=!1;this.playerResponse="";this.S1=new oi(this);this.Fk=new w39(this);this.F4="";this.X_=this.pO=!1;this.bE="";this.enableCompression=this.eA=this.nV=!1;this.jn=[];this.zw=this.Io=-1;this.YG=this.La.C();this.videoData=this.La.getVideoData();this.vz=this.YG.Jp();this.pP=this.YG.En;this.Sp=new jN(this.pP.Y,this.YG.pn,S5Y(this.YG));this.l6=this.YG.V("html5_onesie_check_timeout");
this.e7=new g.KS(this.dc,500,this);this.Dy=new g.KS(this.eT,1E4,this);this.Ak=new g.KS(function(){if(!z.isComplete()){var x=Tg(z);z.YR(new O3("net.timeout",x))}},1E3);
this.Uq=new g.KS(this.IDf,2E3,this);this.EB=this.La.LV();this.G8=this.V("html5_onesie_wait_for_media_availability");g.b(this.videoData,this);g.b(this,this.e7);g.b(this,this.Dy);g.b(this,this.Uq);g.b(this,this.Sp);F=xH();kH&&F&&(this.c5=new Map);this.yn=new Map;this.Qi=new Map;this.kL=new Map;this.eV=new Map};
pA=function(F,k){var z;return(z=F.c5)==null?void 0:z.get(k)};
cTY=function(F,k,z){var x;return g.O(function(D){if(D.Y==1)return F.t5("oprd_s"),vEx(F)?g.c(D,MPC(F.Sp,k,z),3):(x=F.Sp.decrypt(k,z),D.Sk(2));D.Y!=2&&(x=D.L);F.t5("oprd_c");return D.return(x)})};
NgC=function(F,k,z){F.t5("oprd_s");k=gHk(F.Sp).encrypt(k,z);QK(k,function(){F.t5("oprd_c")});
return k};
PJa=function(F){return F.V("html5_onesie_host_probing")||F.vz?kH:!1};
Tgn=function(F,k){F.t5("oprr");F.playerResponse=k;F.eA||(F.G8=!1);QA(F)};
QA=function(F){if(!F.playerResponse)return!1;if(F.nV)return!0;var k=F.videoData.V("html5_onesie_audio_only_playback")&&ix(F.videoData);if(F.c5&&F.G8){if(!F.c5.has(F.F4))return!1;var z=F.c5.get(F.F4),x;if(x=z){x=!1;for(var D=g.l(z.Al.keys()),e=D.next();!e.done;e=D.next())if(e=z.Al.get(e.value))for(var C=g.l(e.g7),p=C.next();!p.done;p=C.next())p.value.tf>0&&(e.QZ?x=!0:k=!0);x=!(k&&x)}if(x)return!1}F.t5("ofr");F.IV.resolve(F.playerResponse);if(!F.l6){var E;(E=F.Ak)==null||E.start();F.Dy.start()}return F.nV=
!0};
Vmk=function(F){if(F.c5&&!F.V("html5_onesie_media_capabilities")){F.t5("ogsf_s");var k=Vp5(F.La.getVideoData(),function(x,D){F.UK(x,D)}),z=OKk(F.La);
k.video=BVH(z,k.video);F.t5("ogsf_c");if(k.video.length)return k;F.UK("ombspf","l."+z.L+";u."+z.Y+";o."+z.U+";r."+z.reason)}};
vEx=function(F,k){return F.V("html5_onesie_sync_request_encryption")||(k==null?0:k.jE)||g.WJ(F.YG)&&F.V("html5_embed_onesie_use_sync_encryption")?!1:!!Ui()};
Tg=function(F){if(!F.Fs)return{};var k=F.Fs.Yr(),z;k.d=(z=F.Fs.Xf)==null?void 0:z.Y9();k.shost=F.HL;k.ty="o";return k};
IL9=function(F,k){var z,x;(x=(F=(z=F.c5)==null?void 0:z.get(k))==null)||(k=F.U?!1:F.U=!0,x=!k);return!x};
HKn=function(F,k,z,x,D,e,C,p,E,X,q){g.S.call(this);var N=this;this.La=F;this.aU=k;this.policy=z;this.audioTrack=x;this.videoTrack=D;this.b$=e;this.g3=C;this.u$=p;this.U=E;this.timing=X;this.K=q;this.Y=[];this.G={};this.J4=this.RU=!1;this.BN=new Set;this.W=this.l$=this.Qh=this.WC=0;this.j=null;this.t4={pN:[],Pz:[]};this.mp={pN:[],Pz:[]};this.S=null;this.cR=[];this.Pe={IAf:function(){return N.Y},
KGa:function(){return N.G},
LGQ:function(){N.Y.length=0},
Er4:function(){return N.BN},
h2p:function(){return N.Qh},
dI$:function(u){N.Qh=u},
PFf:function(u){N.W=u},
z2:function(u){N.S=u}};
this.videoData=this.La.getVideoData();this.policy.Rx&&(this.yh=new nj(this.aU,this.policy,this.g3),g.b(this,this.yh))};
bK6=function(F,k){k=k===void 0?!1:k;if(aLn(F)){F.policy.G&&F.aU.UK("sabrcrq",{create:1});var z=new on(0,F.b$.B,F);F.policy.Z7>0&&F.W++;k=Sma(F,z,k);F.Y.push(k);var x;(x=F.yh)==null||i_p(x,F.b$.B)}};
RxR=function(F,k){var z=dkk(F);if(F.policy.GR){var x=F.t4;var D=F.mp}else x=hA(F,F.audioTrack),D=hA(F,F.videoTrack);var e=[].concat(g.r(x.pN),g.r(D.pN));F.policy.UH&&F.S&&e.push.apply(e,g.r(F.cR));var C=[].concat(g.r(x.Pz),g.r(D.Pz)),p=F.aU.AF(),E,X,q=F.La,N=F.b$,u=F.L,w=F.BN,m=F.policy,h=F.aU.Ku,B=EHx(F.aU)*1E3,U=(E=F.Xf)==null?void 0:E.Md;E=(X=F.Xf)==null?void 0:X.eW;var v;X=Number((v=F.U.j)==null?void 0:v.info.itag)||0;var P;v=Number((P=F.U.W)==null?void 0:P.info.itag)||0;k={La:q,b$:N,pN:e,Pz:C,
GG:z,nextRequestPolicy:u,BN:w,dl:m,Ku:h,zH:B,Md:U,eW:E,WC:F.WC,isPrefetch:k||F.aU.isSuspended,nX:X,o1:v,z7:p,Wg:F.La.Gm()};z=F.aU.eg();e=jP(z);z&&(k.E_=e);if(z=F.La.o0())k.P6=z*1E3;var I;z=F.U;e=z.Qh;if((z.dl.L&&z.dl.hO||((I=z.dl)==null?0:I.Y&&I.xY))&&!e)for(I=g.l(z.U),C=I.next();!C.done;C=I.next())if(C.value.ZD){e=!0;break}I=YF(z.dl)&&!e?[]:hFR(z,z.U);k.HI=I;I=F.U;YF(I.dl)&&!I.PR?I=[]:(z=vHp(I),z.length===0&&(z=I.G),I=hFR(I,z));k.ws=I;k.N8=F.policy.UH&&F.S?[F.S]:void 0;F.policy.rC&&(k.eM=JTD(F.aU,
F.audioTrack),k.Wy=JTD(F.aU,F.videoTrack));if(F.policy.W){x=yTY(F,x.pN,D.pN);var d;if(D=(d=F.j)==null?void 0:d.YH(x))k.ea=D}F.policy.cR&&F.Y.length>0&&F.Y[0].tB()&&(k.uAa=F.Y[0].r6());return k};
dkk=function(F){var k,z=F.policy.S&&((k=F.aU)==null?void 0:k.sX());k=F.aU.getCurrentTime()||0;k=gEC(F,k);var x=F.aU.Hj()||0;k+=x;x=tb(F.videoData)||g.Uh(F.videoData);var D=0;z?(x&&(D=Number.MAX_SAFE_INTEGER),F.videoData.yh&&(D=Math.ceil(F.videoData.cR*1E3))):D=Math.ceil(k*1E3);return Math.min(Number.MAX_SAFE_INTEGER,D)};
gEC=function(F,k){if(F.aU.isSeeking())return k;var z=F.La.S9();if(!z)return k;z=z.Ln();if(z.length===0||Ni(z,k))return k;if(!Y1H(F.videoTrack,k)&&!Y1H(F.audioTrack,k))return F.aU.UK("sundrn",{b:0,lt:k}),k;for(var x=k,D=Infinity,e=0;e<z.length;e++)if(!(z.start(e)>k)){var C=k-z.end(e);C<D&&(D=C,x=z.end(e))}return x!==k&&(F.aU.UK("sundrn",{bre:x,lt:k}),D>=20)?(F.aU.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),k):x};
yTY=function(F,k,z){var x=F.aU.getCurrentTime()||0;k=Ym5(F,k,x);F=Ym5(F,z,x);return Math.min(k,F)};
Ym5=function(F,k,z){F=F.aU.Hj()||0;k=g.l(k);for(var x=k.next();!x.done;x=k.next()){var D=x.value;x=D.startTimeMs?D.startTimeMs/1E3-F:0;D=x+(D.durationMs?D.durationMs/1E3:0);if(x<=z&&z<=D)return D}return z};
aLn=function(F){if(F.policy.Z7>0){var k=Math.floor((0,g.VE)()/1E4);if(k===F.l$){if(F.W>=F.policy.Z7){if(F.W===F.policy.Z7){var z={reason:"toomanyrequests"};z.limit=F.W;F.aU.handleError("player.exception",z);F.W+=1}return!1}}else F.l$=k,F.W=0}if(F.aU.isSuspended&&F.aU.v9)return!1;if(F.PR&&(0,g.VE)()<F.PR)return g.WN(F.aU.sB),!1;if(F.Y.length>0&&(!F.policy.cR||F.Y.length!==1||!F.Y[0].tB()))return!1;var x;if((x=F.b$.B)==null||!cf(x,F.policy,F.G,F.aU.e3()))return!1;k=F.policy.Bu&&F.policy.L&&F.aU.Lp();
if(b9(F.audioTrack)&&b9(F.videoTrack)&&!k)return!1;if(F.policy.L&&F.B&&!F.aU.Lp())return F.LN("ssap",{pauseontlm:1}),!1;if(dS(F,F.audioTrack)&&dS(F,F.videoTrack))return F.policy.U&&F.aU.UK("sabrHeap",{a:""+Of(F.audioTrack),v:""+Of(F.videoTrack)}),!1;if(k=F.policy.W){k=!1;if(F.K.L===2)k=!0;else if(F.K.L===3){dkk(F);F.aU.Hj();x=yTY(F,cQx(F.audioTrack,F.aU.isSeeking()).pN,cQx(F.videoTrack,F.aU.isSeeking()).pN);var D=F.K;x>=D.W?(D.UK("sdai",{haltrq:x,est:D.W}),x=!0):x=!1;x&&(k=!0)}k&&F.policy.G&&F.aU.UK("sabrcrq",
{waitad:1})}if(k)return!1;F.policy.GR&&(F.t4=hA(F,F.audioTrack),F.mp=hA(F,F.videoTrack));if(!F.L)return F.policy.G&&F.aU.UK("sabrcrq",{nopolicy:1}),!0;if(F.La.o0())return F.policy.G&&F.aU.UK("sabrcrq",{utc:1}),!0;if(F.U.B)return F.policy.G&&F.aU.UK("sabrcrq",{audio:1}),!0;if(!F.L.targetAudioReadaheadMs||!F.L.targetVideoReadaheadMs)return F.policy.G&&F.aU.UK("sabrcrq",{noreadahead:1}),!0;if(F.policy.S&&F.aU.sX())return F.policy.G&&F.aU.UK("sabrcrq",{seekToHead:1}),!0;k=Math.min(yP(F.aU,F.audioTrack)*
1E3,F.L.targetAudioReadaheadMs);x=Math.min(yP(F.aU,F.videoTrack)*1E3,F.L.targetVideoReadaheadMs);var e=Math.min(k,x);D=Ib(F.audioTrack,!0)*1E3;var C=Ib(F.videoTrack,!0)*1E3;if(F.policy.GR){var p=F.La.getCurrentTime()*1E3;var E=nEC(F.t4.pN,p);p=nEC(F.mp.pN,p)}else E=D,p=C;var X=E<e&&!dS(F,F.audioTrack);e=p<e&&!dS(F,F.videoTrack);!(e=!X&&!e)&&(e=F.policy.L)&&(e=F.aU,!e.jz||PU(e.b$)?e=!1:(X=JA(e.jz),e=Mm5(e,X)));if(e||F.policy.hW&&LYY(F.aU)&&F.videoData.wI()||F.policy.u6&&LYY(F.aU))return!1;F.policy.G&&
(e=F.aU.rH(),e.car=E,e.vac=p,e.mar=k,e.mvr=x,e.tar=F.L.targetAudioReadaheadMs,e.tvr=F.L.targetVideoReadaheadMs,e.vbu=XW(((z=F.La.S9())==null?void 0:z.Ln())||null),e.abh=D,e.vbh=C,F.aU.UK("sabrcrq",e));return!0};
hA=function(F,k){dkk(F);F.aU.Hj();return cQx(k,F.aU.isSeeking())};
nEC=function(F,k){var z=0,x=-1;F=g.l(F);for(var D=F.next();!D.done;D=F.next())if(D=D.value,!(D.startTimeMs+D.durationMs<k)){if(x<0&&D.startTimeMs>k||x>=0&&D.t$>x+1)break;z=Math.max(z,D.startTimeMs+D.durationMs);x=Math.max(x,D.d$)}return Math.max(0,z-k)};
Sma=function(F,k,z){var x={g3:F.g3,eC:function(E,X){F.La.cI(E,X)},
d0:F.policy.sE,U2:F.policy.U};F.g3.L.S&&(x.Ld=(F.videoTrack.Y.info.Yu||0)+(F.audioTrack.Y.info.Yu||0));F.policy.eh&&(x.Rg=F.audioTrack.Y.index.n5(),x.d0=!1);var D=VPH(k,F.policy,F.G)?2:1;D!==F.Qh&&(F.Qh=D,fLa(F));z=RxR(F,z);if((F.policy.L||F.policy.cR)&&F.policy.U&&z.BN){for(var e=D="",C=g.l(z.BN),p=C.next();!p.done;p=C.next())p=p.value,F.videoData.sabrContextUpdates.has(p)?D+="_"+p:e+="_"+p;F.aU.UK("sabrbldrqs",{ctxts:D,misctxts:e})}k.setData(z,F.aU.Lp(),F.policy,F.G)||!F.policy.L&&!F.policy.cR||
F.aU.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);x=new ai(F.policy,k,F.b$,F.G,F,x,F.aU.LV(),F.policy.pn?F.aU.Lp():void 0);Ss(F.timing);F.policy.G&&F.aU.UK("sabrcrq",{rn:x.Dh(),probe:k.I9()});return x};
Rn=function(F,k){if(k.z4()||F.z4())F.policy.zz||(F.policy.S?yA(F.aU):F.aU.Ib());else{if(F.policy.U&&k.isComplete()&&k instanceof ai){var z=F.aU,x=z.UK,D,e,C=Object.assign(k.Fs.Yr(),{rst:k.state,strm:k.xhr.Aw(),d:(D=k.Fs.Xf)==null?void 0:D.Y9(),cncl:k.xhr&&k.nJ.j?1:0,rqb:k.CK,cwt:k.oD,swt:(e=k.ql)==null?void 0:e.RC});D=Object.assign(aX5(k.info),C);x.call(z,"rqs",D)}if(k.isComplete()&&k.I9()&&k instanceof ai)F.policy.vj?k.ON()?(k.dispose(),F.Y.length===0?F.aU.Ib():(F=F.Y[0],F instanceof ai&&F.eq()&&
F.B$())):k.rp()&&F.aU.handleError(k.Cn(),k.VV()):(k.dispose(),F.aU.Ib());else{if(k.sN())k instanceof ai&&u5k(F.timing,k),fLa(F),KYD(F);else if(k.rp())z=F.La.o0(),k instanceof ai&&H_H(k.info)&&z&&F.aU.pw(z),k instanceof l$?F.Y.pop():(z=1,k.canRetry()&&mUC(F.aU)&&(WYx(F,k),z=0),F.aU.handleError(k.Cn(),k.VV(),z));else{if(F.aU.isSuspended&&!k.isComplete())return;KYD(F)}k.z4()||k instanceof l$||(k.isComplete()?z=jBn(k,F.policy,F.G):(z=$Ua(k,F.policy,F.G),z===1&&(F.RU=!0)),z!==0&&(x=new on(1,k.info.ez),
x.PN=z===2,Sma(F,x)));F.policy.MD&&!k.isComplete()?wJD(F.aU):F.aU.Ib()}}};
KYD=function(F){for(;F.Y.length&&F.Y[0].g4(F.xP());){var k=F.Y.shift();FeD(F,k);if(F.policy.W){var z=F;if(!z.policy.kG&&k.g4(z.xP())){var x=k.Dh();if(z.NJ!==x){var D=k.D8();k=D.Io;var e=D.zw;D=D.isDecorated;!z.j||e<0||(z.NJ=x,x=Y7(z.K,e/1E3,k),e=z.aU.Hj()||0,yr(z.K,k,x-e,D,z.j))}}}}F.Y.length&&FeD(F,F.Y[0])};
FeD=function(F,k){var z=new Set(k.PD(F.xP()));z=g.l(z);for(var x=z.next();!x.done;x=z.next()){var D=x.value;if(!(x=!(k instanceof l$))){x=F.U;var e=x.b$.oS,C=Fc(x.videoInfos,e);e=Z_5(x,D,e);var p=C.includes(D);!x.dl.Hq||e||p||x.aU.UK("sabrcpf",{fid:""+D,vfids:""+C.join("."),said:x.S||""});x=e||C.includes(D)}if(x&&(x=k.Rp(D,F.xP()),C=F.policy.UH&&Cm(x[0].Y.info.mimeType),(!(!C&&F.policy.bq&&x.length>0&&(x[0].Y.info.QZ()?Ib(F.audioTrack):Ib(F.videoTrack))>3)||k.isComplete())&&k.mW(D,F.xP()))){D=k.tK(D,
F.xP());if(F.policy.L&&(e=x[0].Y.info,(p=F.aU.Lp())&&e)){var E=k.zK();p.api.V("html5_ssap_set_format_info_on_video_data")&&E===S2(p)&&(e.QZ()?p.playback.getVideoData().j=e:p.playback.getVideoData().L=e);if(p=gS(p.timeline,E))if(p=p[0].getVideoData())e.QZ()?p.j=e:p.L=e}D=g.l(D);for(e=D.next();!e.done;e=D.next())if(e=e.value,F.policy.U&&k instanceof l$&&F.aU.UK("omblss",{s:e.info.mu()}),C)p=F,p.videoData.oS()&&p.S&&Pf(p.S)===Pf(g.$b(e.info.Y.info,p.b$.oS))&&p.La.publish("sabrCaptionsDataLoaded",e,p.Xt.bind(p));
else{p=e.info.Y.info.QZ();var X=e.info.Y;if(p){E=void 0;var q=F.U,N=(E=k.OL(F.xP()))==null?void 0:E.token;q.B&&X!==q.W?E=!0:(q.B=!1,X!==q.W&&(q.W=X,q.yK(X,q.audioTrack,N)),E=!1);if(E)continue}else E=void 0,QBI(F.U,X,(E=k.OL(F.xP()))==null?void 0:E.token);E=p?F.audioTrack:F.videoTrack;k instanceof l$&&(E.B=!1,k instanceof l$&&(p?ClM(F.timing):eMI(F.timing)));try{cg(E,x,e)}catch(u){e=IN(u),F.aU.handleError(e.errorCode,e.details,e.severity),E.f$(),F.jb(!1,"pushSlice"),yA(F.aU)}}}}};
WYx=function(F,k){F.policy.cR?F.Y.splice(F.Y.indexOf(k)).forEach(function(z){z.dispose()}):(F.Y.pop(),k==null||k.dispose())};
kCD=function(F,k,z){for(var x=[],D=0;D<F.Y.length;D++)k&&F.Y[D]instanceof l$?x.push(F.Y[D]):(F.policy.G&&F.aU.UK("sabrcrq",{d:F.Y[D].Dh(),src:z}),F.Y[D].dispose());F.Y=x};
oJH=function(F,k){k&&k.type&&(F.videoData.sabrContextUpdates.set(k.type,k),k.sendByDefault&&F.BN.add(k.type))};
z09=function(F,k,z){k.ZY(z.Mw,z.version)?F.videoData.yI=z.version||"":F.aU.UK("ssap",{v:z.version,tlnu:1})};
fLa=function(F){F.BN.clear();if(F.videoData.sabrContextUpdates.size>0)for(var k=g.l(F.videoData.sabrContextUpdates.keys()),z=k.next();!z.done;z=k.next()){z=z.value;var x=void 0;((x=F.videoData.sabrContextUpdates.get(z))==null?0:x.sendByDefault)&&F.BN.add(z)}if(F.policy.cR&&F.Y.length)for(k=g.l(F.Y),z=k.next();!z.done;z=k.next())(z=z.value.r6())&&z.type&&z.sendByDefault&&F.BN.add(z.type)};
x8R=function(F){F.policy.We&&(F.Xf=void 0,F.WC=0)};
i9D=function(F,k){if(k.rp()||k.z4()){var z=F.aU,x=z.UK,D=k.state;F=F.xP();var e,C;if((k=(e=k.c5)==null?void 0:e.get(F))==null)k=void 0;else{e=0;F=k.PD();for(var p=0;p<F.length;p++){var E=void 0;e+=((E=k.Al.get(F[p]))==null?void 0:E.bytesReceived)||0}k=e}k=(C=k)!=null?C:-1;x.call(z,"sabromb",{s:D,tbytes:k})}else F.Y.push(k),k.jn.push(F),Ss(F.timing),F.policy.BM&&k.PA&&F.jw(k.PA)};
dS=function(F,k){return F.policy.eI?!F.aU.Xp&&MB(k)&&(k.HF()!==MB(k)||F.aU.isSuspended):!1};
D8Y=function(F){var k="";F=g.l(F);for(var z=F.next();!z.done;z=F.next()){z=z.value;k+=".cid."+z.clipId;if(z.xK){var x=z.xK;k+=".vid."+x.df+(".pst."+x.yP)+(".ps."+x.zv)+(".lst."+x.elh)+(".ld."+x.xT)+(".ls."+x.V1)}z.Ja&&(k+=".nonv."+z.Ja.Hk)}return k};
$8D=function(F){this.j=F;this.Y=0;this.L=!1;this.U=new Map};
jkx=function(F,k,z,x,D){this.aU=F;this.policy=k;this.schedule=z;this.gX=x;this.K=D;this.Qh=NaN;this.L=this.G=this.j=null;this.Y=this.W=this.S=this.startTimeSecs=NaN;this.U=!1;this.B=NaN};
e05=function(F,k,z,x,D,e){return k.BF&&k.m_&&z===3?new jkx(F,k,x,D,e):null};
Cxa=function(F,k){if(F.policy.Fx){var z=k.info.Yu,x=Qq(F.schedule);k=k.index.n5();z=Math.max(1,x/z);F.B=Math.round(Math.max(((z-1)*k+F.policy.fJ)/z,k-F.policy.nF)*1E3)}};
EJa=function(F,k){var z=Date.now()/1E3,x=z-F.startTimeSecs,D=z-F.S,e=D>=F.policy.GI,C=!1;if(e){var p=0;!isNaN(k)&&k>F.W&&(p=k-F.W,F.W=k);p/D<F.policy.HV&&(C=!0);F.S=z}z=x>=F.policy.nF&&!F.U;if(!e&&!z&&Abn(F,k))return NaN;z&&(F.U=!0);a:{x=C;z=(0,g.VE)()/1E3-(F.gX.Uz()||0)-F.G.Y-F.policy.fJ;e=F.L.startTime;z=e+z;if(x){if(isNaN(k)){Yt(F,NaN,"n",k);e=NaN;break a}x=k-F.policy.bJ;x<z&&(z=x)}else F.U&&(x=z+F.policy.fJ-F.Qh+F.policy.w1,isNaN(k)||(x=Math.max(x,Math.min(z,k-F.policy.bJ))),z=x);e=z=Math.max(z,
e)}F.Y=e;if(isNaN(F.Y))return F.clear(),NaN;if(!C&&Abn(F,k))return pPR(F,k),NaN;if(F.Y<=F.L.startTime)return Yt(F,NaN,"y",k),F.clear(),NaN;if(!F.K(F.Y,!1))return!pPR(F,k)&&C&&(Yt(F,NaN,"t",k),F.clear()),NaN;C=F.Y;Yt(F,C,"s",k);F.clear();return C};
pPR=function(F,k){return F.K(F.Y,!0)?!1:(Yt(F,NaN,"ns",k),F.clear(),!0)};
Abn=function(F,k){return isNaN(k)?!0:isNaN(F.Y)?!1:k<F.Y+(F.U?F.policy.bJ:F.policy.ys)};
Yt=function(F,k,z,x){var D=F.j.VV();D.ssr_sk=(k*1E3).toFixed(0);D.ssr_t=(F.Y*1E3).toFixed(0);D.ssr_r=z;D.ssr_st=(F.startTimeSecs*1E3).toFixed(0);D.ssr_n=(0,g.VE)().toFixed(0);D.ssr_f=(F.G.Y*1E3).toFixed(0);D.ssr_fa=F.U?"1":"0";D.ssr_o=(F.gX.Uz()*1E3||0).toFixed(0);D.ssr_v=(x*1E3).toFixed(0);k=F.L.Y.index;k.d8(F.L.gt,!0)&&(D.ssr_ist=(k.getStartTime(F.L.gt)*1E3).toFixed(0),D.ssr_id=(k.getDuration(F.L.gt)*1E3).toFixed(0));F.aU.UK("ssr",D)};
XPn=function(){var F={};if(window.performance){var k=window.performance.memory;k&&(F.jsTotal=k.totalJSHeapSize,F.jsUsed=k.usedJSHeapSize,F.jsLimit=k.jsHeapSizeLimit,F.msTotal=k.totalMediaSourceSize,F.msLimit=k.mediaSourceSizeLimit,F.msUsed=k.usedMediaSourceMemorySize)}var z;if((z=window.h5vcc)==null?0:z.cVal)F.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),F.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),F.cbJs=window.h5vcc.cVal.getValue("Memory.JS");return F};
g.M7=function(F,k,z,x,D,e,C,p,E,X){p=p===void 0?!1:p;g.S.call(this);var q=this;this.La=F;this.schedule=k;this.policy=z;this.b$=x;this.PR=E;this.Vz=X;this.IU=null;this.yh=this.cR=this.Xf=this.Xp=0;this.Gn=this.v9=this.isSuspended=!1;this.u$="";this.fJ={};this.Xm=!1;this.vR=0;this.B=null;this.dH=this.l$=!1;this.Ku=0;this.NJ=!1;this.mp=this.kG=0;this.qD=null;this.uJ=function(){return q.La.uJ()};
this.timing=new j0D(this.Vz);this.K=new ZI(this.schedule,this.policy);this.mY=new g.KS(this.Ib,0,this);this.UH=new g.KS(this.Ib,this.policy.MD,this);this.sB=new g.KS(this.Ib,1E3,this);this.We=new g.KS(this.Ib,void 0,this);this.RU=new g.KS(function(){q.isSuspended||q.Ib()},1E4,this);
this.uL=new g.KS(this.ipt,250,this);this.S=this.currentTime=NaN;this.gE=new p_(5);this.t4=this.timestampOffset=NaN;this.logger=new g.C4("dash");this.vj=Infinity;this.Pe={getAudioTrack:function(){return q.audioTrack},
pTf:function(){return q.videoTrack},
getManifest:function(){return q.b$},
qck:function(){return q.L},
Ib:function(){q.Ib()},
bz:function(){q.Xp=0;q.bz()},
fe4:function(N){return nA(q,q.videoTrack,q.IU.L,N)}};
F=E&&E.PD();E&&(zMY(E,this.b$,this.policy),this.t4=Date.now());this.Y=new ob(this,this.K,z,this.b$,D,F);z=vdp(this.Y,e,C&&C.id);this.audioTrack=new Uf(this,this.policy,z.audio,this.timing);this.videoTrack=new Uf(this,this.policy,z.video,this.timing);this.videoTrack.j.mp=this.audioTrack.Mb();this.J4={updateend:this.L4,error:this.LuQ};g.b(this,this.mY);g.b(this,this.UH);g.b(this,this.sB);g.b(this,this.We);g.b(this,this.RU);z=this.policy.qU&&this.policy.I6?!qq6(this.videoTrack.Y.info):!1;this.RS=gdk({WM:this.policy.B.WM||
z,I6:this.policy.I6&&!z,w2:this.policy.w2});this.G=e05(this,this.policy,this.RS,this.schedule,this.gE,function(N,u){return qhn(q,N,u)});
this.U=new bL(this,this.b$,this.policy,this.videoTrack,this.audioTrack,p,this.La.getVideoData().w3());this.rR=new aP(this,this.b$,this.videoTrack,this.audioTrack,this.policy);p=this.policy.pj?this.La.getVideoData().q4:null;this.W=new Mu(this,this.policy,this.videoTrack,this.audioTrack,this.fJ,this.U,this.timing,this.K,this.schedule,this.b$,this.Y,this.G,z,p);g.b(this,this.W);this.j=new Wg(this,this.policy,this.videoTrack,this.audioTrack,this.b$,D,ix(this.La.getVideoData()),C==null?void 0:C.id);g.b(this,
this.j);G9C(this.j,e);this.L=new HKn(this.La,this,this.policy,this.audioTrack,this.videoTrack,this.b$,this.schedule,this.Y,this.j,this.timing,this.U);g.b(this,this.L);this.Qh=this.La.GD.kC.Cd;this.policy.S||NyM(this);this.policy.H8&&(this.MD=new $8D(this.videoTrack.Y.index));this.logger.debug("Created")};
NyM=function(F){var k,z;if((k=F.Qh)==null?0:(z=k.pV)==null?0:z.itagDenylist){var x;F.z3((x=F.Qh)==null?void 0:x.pV.itagDenylist)}var D;if((D=F.Qh)==null?0:D.playbackStartPolicy){var e,C;zFn(F.policy,(e=F.Qh)==null?void 0:e.playbackStartPolicy,3,(C=F.Qh)==null?void 0:C.Dh())}if(F.policy.tS){k=F.xP();var p;(z=k?(p=F.Qh)==null?void 0:p.Qi.get(k):void 0)&&F.L.aV(z)}if(!F.b$.K){var E;p=(E=F.Qh)==null?void 0:E.ge;(p==null?0:p.A8)&&(p==null?0:p.tP)&&F.b$.oS&&cU(F.b$,p.A8,p.tP)}var X;((X=F.Qh)==null?0:X.eV)&&
(E=F.Qh.eV.get(F.xP()||""))&&F.b$&&E.formatId&&(F=F.b$.U.get(Pf(E.formatId)))&&(F.info.debugInfo=E.debugInfo)};
uqk=function(F,k){if(F.policy.L&&!F.policy.f1)return!1;var z=Pf(g.$b(k.Y.info,F.b$.oS)),x,D=((x=F.PR)==null?void 0:x.Rp(z))||[];if(D.length===0)return F.UK("ombmsi",{}),!1;D=new Yd(D);if(x=!F.policy.PR||isFinite(F.getCurrentTime())||F.La.o0()){a:{x=F.getCurrentTime();D=g.l(D.sK);for(var e=D.next();!e.done;e=D.next())if(e=e.value,e.type===3&&x>=e.j&&x<=e.S){x=!0;break a}x=!1}x=!x}if(x)return F.UK("ostmf",{ct:F.getCurrentTime(),a:k.Y.info.QZ()}),!1;(F=F.PR)!=null&&(F.Al.get(z).QE=!0);return!0};
wPM=function(F){if(!F.b$.oS)return!0;var k=F.La.getVideoData();if(F.La.zf())return F.UK("ombpa",{}),!1;var z,x;if(F.policy.uq&&!!((z=F.Qh)==null?0:(x=z.ge)==null?0:x.EYQ)!==F.b$.A5)return F.UK("ombplmm",{}),!1;z=k.RS||k.liveUtcStartSeconds||k.y6;if(F.b$.A5&&z)return F.UK("ombplst",{}),!1;if(F.b$.K)return F.UK("ombab",{}),!1;z=Date.now();return PU(F.b$)&&!isNaN(F.t4)&&z-F.t4>F.policy.Gs*1E3?(F.UK("ombttl",{}),!1):F.b$.W8&&F.b$.j||!F.policy.BV&&F.b$.isPremiere||!(q8(k)===0||F.policy.Y&&k.V("html5_enable_onesie_media_for_sabr_proxima_optin"))||
k.V("html5_disable_onesie_media_for_mosaic")&&Rk(k)||k.V("html5_disable_onesie_media_for_ssdai")&&k.isDaiEnabled()&&k.enableServerStitchedDai||k.V("html5_disable_onesie_media_for_lifa_eligible")&&yT(k)?!1:!0};
m8k=function(F,k){var z=k.Y,x=F.b$.oS;if(wPM(F))if(F.PR&&F.PR.Al.has(Pf(g.$b(z.info,x)))){if(x=Pf(g.$b(z.info,x)),uqk(F,k)){var D=new Yd(F.PR.Rp(x)),e=function(C){try{if(C.rp())F.handleError(C.Cn(),C.VV()),ab(k,C),Mp(C.info)&&Lj(F.W,k,z,!0),F.Ib();else if(NwR(F.W,C)){var p;(p=F.U)==null||lrY(p,C.info,F.B);F.Ib()}}catch(E){C=IN(E),F.handleError(C.errorCode,C.details,C.severity),F.f$()}};
z.U=!0;nz(D)&&(vg(k,new ST(F.policy,x,D,F.PR,e)),Ss(F.timing))}}else F.UK("ombfmt",{})};
TyC=function(F,k){k=k||F.videoTrack&&F.videoTrack.L&&F.videoTrack.L.startTime||F.getCurrentTime();var z=fj,x=F.videoTrack,D=F.Y;k=D.nextVideo&&D.nextVideo.index.kA(k)||0;D.mp!==k&&(D.yh={},D.mp=k,za(D,D.Y));k=!D.Y.isLocked()&&D.K>-1&&(0,g.VE)()-D.K<D.policy.lq*1E3;var e=D.nextVideo&&D_(D,D.nextVideo.info)*3<PV(D.t4);if(!k||e)kF(D),xF(D),D.PR=D.PR||D.nextVideo!==D.U;D.nextVideo&&!D.nextVideo.index.isLoaded()&&(D.mp=-1);z(F,x,D.nextVideo);fj(F,F.audioTrack,F.Y.L)};
LA=function(F,k){F.v9=k;F.policy.mp||(F.logger.debug("Suspended."),F.isSuspended=!0,F.policy.I4&&(F.sB.stop(),F.UH.stop(),F.mY.stop()),F.RU.stop())};
Ri=function(F,k,z,x){F.policy.W&&F.jb(!1,"rollback");if(F.b$.isManifestless){var D=aYD(F.audioTrack,x,z,k),e=aYD(F.videoTrack,x,z,k);F.policy.zM||(e&&vU(F.b$,x,!0),D&&vU(F.b$,x,!1));e&&(F.videoTrack.Qh=[]);D&&(F.audioTrack.Qh=[]);F.UK("sdai",{rollbk2_seg:x,rbt:z.toFixed(3),lt:k.toFixed(3),a:D,v:e});(D||e)&&F.policy.W&&yA(F)}};
lxR=function(F){F.logger.debug("Rebuffering.");F.Gn=!0;if(F.policy.RS&&F.IU){var k,z,x,D;F.UK("lr_rb",{c:F.getCurrentTime(),s:F.isSeeking(),ab:XW(F.IU.Y.Kv()),ala:(k=Z_(F.audioTrack))==null?void 0:k.mu(),alr:(z=F.audioTrack.L)==null?void 0:z.mu(),vb:XW(F.IU.L.Kv()),vla:(x=Z_(F.videoTrack))==null?void 0:x.mu(),vlr:(D=F.videoTrack.L)==null?void 0:D.mu()})}F.La.e3()!==0&&F.UK("sps_rebuffer",{c:F.getCurrentTime()})};
Qkp=function(F){F.policy.P7=!1;try{F.bz()}catch(k){g.JV(k)}};
h06=function(F){return F.policy.Y&&F.policy.L&&(!Mi()&&F.policy.FG||F.policy.Yk)};
Byn=function(F,k,z,x){z=z===void 0?!1:z;x=x===void 0?!1:x;F.policy.mp&&(F.logger.debug("disable updateMetadataWithoutMediaSource"),F.policy.yh&&F.UK("loader",{setsmb:0}),F.f$(),F.policy.mp=!1);F.logger.debug("attaching media source");skC(F,x);if(h06(F))F.UK("ssap",{delaysb:1}),F.IU=k;else{if(!kh(k)){var D=MB(F.videoTrack);D=D?D.info.Y:F.videoTrack.Y;var e=MB(F.audioTrack);e=e?e.info.Y:F.audioTrack.Y;F.policy.L&&F.UK("ssap",{initsb:1,v:D.info.id,vf:D.info.DQ,a:e.info.id,af:e.info.DQ});scR(k,D.info,
e.info,F.policy.y6)}rb9(F,k,z,x);try{F.Ib()}catch(C){g.JV(C)}}};
rb9=function(F,k,z,x){z=z===void 0?!1:z;x=x===void 0?!1:x;t4(F.videoTrack,k.L||null,x);t4(F.audioTrack,k.Y||null,x);F.IU=k;F.IU.j=!0;z||F.resume();k.Y.Ij(F.J4,F);k.L.Ij(F.J4,F)};
skC=function(F,k){k=k===void 0?!1:k;F.IU&&F.IU.Y&&F.IU.L&&(F.IU.Y.M_(F.J4,F),F.IU.L.M_(F.J4,F));t4(F.audioTrack,null,k);t4(F.videoTrack,null,k);F.IU&&(F.IU.j=!1);F.IU=null};
GCY=function(F){F.IU&&F.IU.j5()&&F.Gd()};
tkM=function(F,k){if(!F.z4())if(F.policy.Y){if(!UUp(F.j,k)){var z=F.j.L;G9C(F.j,k);var x=!1;x=k.isLocked()&&k.reason==="m"&&tPH(F.j,k.Y);var D=F.policy.fb&&k.reason==="l";z=z.Y>k.Y&&k.reason==="b";x||D||z?(F.La.w0({reattachOnConstraint:x?"u":D?"drm":"perf",lo:k.L,up:k.Y}),F.policy.Q7||(F.j.Y.L=!1)):(F.policy.Q7&&(F.j.Y.L=!1),yA(F))}}else if(!cvx(F.Y,k)&&F.videoTrack){F.logger.debug(function(){return"Setting constraint: r="+k.reason+" u="+k.Y});
z=F.Y.Y;U86(F,Ozn(F.Y,k));TyC(F);x=k.isLocked()&&k.reason==="m"&&F.Y.PR;D=F.policy.fb&&k.reason==="l"&&d7(F.videoTrack);z=z.Y>k.Y&&k.reason==="b";var e=F.Y.u$&&!Mi();x||D||z||e?F.La.w0({reattachOnConstraint:x?"u":D?"drm":e?"codec":"perf"}):yA(F)}};
Z9n=function(F,k,z){if((!F.IU||Km(F.IU)&&!F.policy.Fp)&&!F.rR.isSeeking()&&(F.policy.Y||d7(k)&&k.Y.Ig()&&F.Y.Qh)){var x=F.getCurrentTime()+h1D(F.K,k,z);F.logger.debug(function(){return"Clearing back to "+x.toFixed(3)});
H35(k,x)}};
U86=function(F,k){k&&(F.logger.debug(function(){return"Logging new format: "+pm(k.video.info)}),vJ5(F.La,new L4(k.video,k.reason)));
if(F.Y.RU){var z=arD(F.Y,"a");F.La.Jz(new L4(z.audio,z.reason))}};
yA=function(F){g.WN(F.mY)};
wJD=function(F){F.policy.MD&&F.policy.w2&&Math.min(IYn(F.videoTrack),IYn(F.audioTrack))*1E3>F.policy.Rh?g.WN(F.UH):F.Ib()};
cb6=function(F,k){var z=(0,g.VE)()-k,x=Ib(F.audioTrack,!0)*1E3,D=Ib(F.videoTrack,!0)*1E3;F.logger.debug(function(){return"Appends paused for "+z});
if(F.policy.U&&(F.UK("apdpe",{dur:z.toFixed(),abuf:x.toFixed(),vbuf:D.toFixed()}),g7(F.policy))){var e=PV(F.K);F.UK("sdps",{ct:k,ah:x.toFixed(),vh:D.toFixed(),mr:OA(F.K,F.Gn,e),bw:e.toFixed(),js:F.isSeeking(),re:+F.Gn,ps:(F.policy.ZM||"").toString(),rn:(F.policy.Mr||"").toString()})}};
Pxn=function(F){if(F.policy.L&&yw(F.videoTrack)&&yw(F.audioTrack))return"ssap";if(RGH(F.videoTrack))return F.logger.debug("Pausing appends for server-selectable format"),"ssf";if(F.policy.u$&&MJ9(F.videoTrack)&&MJ9(F.audioTrack))return"updateEnd";if(b9(F.audioTrack)||b9(F.videoTrack)&&F.videoTrack.Y.info.DQ!=="f")return"";if(F.rR.isSeeking()){var k=F.K;var z=F.videoTrack;var x=F.audioTrack;if(k.policy.Y){var D=k.policy.ET;g7(k.policy)&&(D=OA(k,!1,PV(k)));k=D;z=Ib(x,!0)>=k&&Ib(z,!0)>=k}else z.U.length||
x.U.length?(D=z.Y.info.Yu+x.Y.info.Yu,D=10*(1-PV(k)/D),k=Math.max(D,k.policy.ET),z=Ib(x,!0)>=k&&Ib(z,!0)>=k):z=!0;if(!z)return"abr";z=F.videoTrack;if(z.U.length>0&&z.j.L.length===1&&C4C(z.j).info.B<z.J4)return"seek"}if(F.policy.W&&Lck(F.videoTrack,F.U)&&Lck(F.audioTrack,F.U))return"ssdai";z=!F.policy.En||F.getCurrentTime()<10;F.policy.Y||(z=z||F.videoTrack.Y.info.video.qualityOrdinal>360);x=g7(F.policy)&&F.policy.N9;if(!F.Gn||!x&&z)return"";z=F.policy.En;g7(F.policy)&&(z=OA(F.K,F.Gn,PV(F.K)));z=b3a(F.videoTrack,
F.getCurrentTime(),z)||b3a(F.audioTrack,F.getCurrentTime(),z);return g7(F.policy)?z?"mbnm":"":(F.videoTrack.U.length>0||F.audioTrack.U.length>0||eFH(F.W,F.videoTrack,F.audioTrack)||eFH(F.W,F.audioTrack,F.videoTrack))&&z?"nord":""};
O9R=function(F){if(F.G){var k=F.G.Ib(F.audioTrack,wW(F.IU.L.Kv()));k&&F.La.seekTo(k,{AT:!0,Sr:"pollSubsegmentReadahead",AK:!0})}};
d8n=function(F,k,z){if(F.policy.u$&&MJ9(k))return!1;if(z.w4())return!0;if(!z.RX())return!1;var x=MB(k);if(!x||x.info.type===6)return!1;var D;if(F.policy.xg||((D=F.U)==null?0:s0I(D,k,x.info.gt)))F.yh=0;else return F.rR.isSeeking()&&yA(F),F.yh=F.yh||(0,g.VE)(),!1;if(!nA(F,k,z,x.info))return!1;if(F.b$.L&&x.info.L===0){if(D=VkC(k,z,x)){var e=Z_(k);F.UK("initchg",{it:x.info.Y.info.id,sr:!!e&&e.Y===x.info.Y,ty:x.info.type,seg:x.info.gt})}e=g.iK(x.info.Y.info);F.policy.YP&&e&&!D&&UiC(x)}e=F.G&&!!F.G.j&&
k.Y.info.audio;D=F.b$.isManifestless||x.W;if(!(F.b$.L&&x.info.L!==0||D&&!e)&&IxY(F,k,z,x))return!0;if(e)return!1;e=yP(F,k);e=F.getCurrentTime()+e;if(x.info.j>e)return F.policy.Y&&H95(F,k),F.policy.Iq&&I7Y(k.j,e,!1),!1;axR(F,k);var C;F.policy.Av&&z===((C=F.IU)==null?void 0:C.Y)&&F.NJ&&(z.kx()===0?(F.NJ=!1,F.policy.Av=!1):F.kG=z.kx());if(!ShH(F,z,x,k))return!1;F.policy.u$&&x.info.HM()?(F.La.C().Jp()&&F.UK("eosl",{ls:x.info.mu()}),x.isLocked=!0):(k.eb(x),Hzn(F.Y,x.info),F.logger.debug(function(){return"Appended "+
x.info.mu()+", buffered: "+XW(z.Kv())}));
D&&b9Y(F,x.info.Y.wE);return!0};
H95=function(F,k){k===F.videoTrack?F.cR=F.cR||(0,g.VE)():F.Xf=F.Xf||(0,g.VE)()};
axR=function(F,k){k===F.videoTrack?F.cR=0:F.Xf=0};
ShH=function(F,k,z,x){var D=F.policy.RS?(0,g.VE)():0,e=z.W&&z.info.Y.Y||void 0,C=z.Y;z.W&&(C=JbD(F,z,C)||C);var p=C.fk();C=F.policy.RS?(0,g.VE)():0;k=ybC(F,k,p,z.info,e);(x=x.K)!=null&&(e=z.info,D=C-D,C=(0,g.VE)()-C,!x.L||KSM(x.L,e)&&x.L.gt===e.gt||x.flush(),x.j+=D,x.U+=C,D=1,!x.L&&e.L&&(D=2),e2(x,D,k),C=Math.ceil(e.L/1024),D===2&&x.Y.add(C),x.Y.add(Math.ceil((e.L+e.U)/1024)-C),x.L=e);F.mp=0;if(k===0)return F.l$&&(F.logger.debug("Retry succeed, back to normal append logic."),F.l$=!1,F.dH=!1),F.vR=
0,!0;if(k===2||k===5)return R09(F,"checked",k,z.info),!1;if(k===1){if(!F.l$)return F.logger.debug("QuotaExceeded, retrying."),F.l$=!0,!1;if(!F.dH)return F.dH=!0,F.La.seekTo(F.getCurrentTime(),{Sr:"quotaExceeded",AK:!0}),!1;z.info.Ci()?(D=F.policy,D.J4=Math.floor(D.J4*.8),D.t4=Math.floor(D.t4*.8)):(D=F.policy,D.dH=Math.floor(D.dH*.8),D.t4=Math.floor(D.t4*.8));F.policy.Y?K4(F.j.Y,z.info.Y,!1):i9(F.Y,z.info.Y)}F.La.w0({reattachOnAppend:k});return!1};
JbD=function(F,k,z){var x;if(x=F.policy.yI&&F.IU&&!F.IU.B&&!F.La.QA())k=k.info.Y.info,x=k.Xv()&&Ww(k)&&k.video&&k.video.width<3840&&k.video.width>k.video.height;if(x&&(F.IU.B=!0,bv('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return z=j3I(z),F.policy.U&&F.UK("sp4k",{s:!!z}),z};
R09=function(F,k,z,x){var D="fmt.unplayable",e=1;z===5||z===3?(D="fmt.unparseable",F.policy.Y?!x.Y.info.video||Wr(F.j.Y).size>0||K4(F.j.Y,x.Y,!1):!x.Y.info.video||Wr(F.Y.W).size>0||i9(F.Y,x.Y)):z===2&&(F.vR<15?(F.vR++,D="html5.invalidstate",e=0):D="fmt.unplayable");x=R0(x);var C;x.mrs=(C=F.IU)==null?void 0:oQ(C);x.origin=k;x.reason=z;F.handleError(D,x,e)};
rQH=function(F,k,z,x,D){var e=F.b$;var C=F.policy.Y,p=!1,E=-1,X;for(X in e.Y){var q=Cm(e.Y[X].info.mimeType)||e.Y[X].info.Ci();if(x===q)if(q=e.Y[X].index,q.d8(k.gt)){p=q;var N=k,u=p.jg(N.gt);u&&u.startTime!==N.startTime?(p.segments=[],p.QD(N),p=!0):p=!1;p?E=k.gt:!k.pending&&C&&(N=q.getDuration(k.gt),N!==k.duration&&(e.publish("clienttemp","mfldurUpdate",{itag:e.Y[X].info.itag,seg:k.gt,od:N,nd:k.duration},!1),q.QD(k),p=!0))}else q.QD(k),p=!0}E>=0&&(C={},e.publish("clienttemp","resetMflIndex",(C[x?
"v":"a"]=E,C),!1));e=p;bNH(F.rR,k,x,e);F.U.nx(k,z,x,D);if(F.policy.H8&&z){var w;(w=F.MD)!=null&&w.U.set(k.gt,z)}k.gt===F.b$.W8&&e&&U1(F.b$)&&k.startTime>U1(F.b$)&&(F.b$.cR=k.startTime+(isNaN(F.timestampOffset)?0:F.timestampOffset),F.rR.isSeeking()&&F.rR.Y<F.b$.oy()&&F.rR.seek(F.b$.oy(),{}))};
nA=function(F,k,z,x){var D=Z_(k);!D||D.W||Jv(D,x)||(z.abort(),F.policy.vr&&F.policy.J$&&(D=k.G)!=null&&(D.U=void 0),(k=k.K)!=null&&(e2(k,4),k.flush()));if(!z.O9()||Mi())try{if(F.policy.MN){if(z.IM(x.Y.info.containerType,x.Y.info.DQ)){if(F.policy.Hh&&z.Ck())return!1;F.UK("ssap",{chgtp:x.Y.info.containerType,cf:x.Y.info.DQ,oldtp:z.O9(),oldcf:z.I2()});z.gN(x.Y.info.containerType,x.Y.info.DQ,x.Y.info.mimeType)}}else z.W3(x.Y.info.containerType,x.Y.info.mimeType)}catch(e){return z=e,g.yI(z),F.UK("ctexp",
{name:z.name,msg:z.message}),!1}else x.Y.info.containerType!==z.O9()&&F.UK("ctu",{ct:Mi(),prev_c:z.O9(),curr_c:x.Y.info.containerType});k=x.Y.j;F.policy.Tc&&k&&(x=0+k.duration,k=-k.Y,0===z.Pf()&&x===z.Tk()||z.oT(0,x),k!==z.Hj()&&(z.g8(k),Bg&&Gk9(F.audioTrack.Mb(),z.Us())));return!0};
IxY=function(F,k,z,x){x.info.Y.Ig();var D=x.info.Y.Y;if(!D||!z.RX()||z.T0()===D)return!1;var e=D,C=z.nH();if(F.policy.G0&&C&&z.isView()&&g.iK(x.info.Y.info)){var p=new DataView(D.buffer,D.byteOffset,D.byteLength);(C=Pva(p,C))?e=new Uint8Array(C.buffer,C.byteOffset,C.byteLength):F.UK("fenc",{})}F.policy.yI&&(C=JbD(F,x,new rx([e])))&&(e=C.fk());var E;(C=x.info.Y.z0(0,x.info.clipId))&&(E=C.sK[0]);if(x===F.qD){if(F.mp+=1,F.La.getVideoData().V("html5_shorts_gapless_restart_on_init_seg_retries")&&F.mp>
5)return F.mp=0,F.La.w0({initSegStuck:1,as:x.info.mu()}),!0}else F.mp=0,F.qD=x;F.policy.A9&&(z.abort(),(C=k.K)!=null&&(e2(C,4),C.flush()));D=ybC(F,z,e,E,D);var X;(X=k.K)==null||YOD(X,D,E);if(D!==0)return gJM(F,D,x),!0;x.info.Ci()?Edn(F.timing):Xfn(F.timing);F.logger.debug(function(){return"Appended init for "+x.info.Y.info.id});
b9Y(F,x.info.Y.wE);return z.Ck()};
VkC=function(F,k,z){if(k.T0()==null){F=Z_(F);if(!(k=!F||F.Y!==z.info.Y)){a:if(F=F.K,z=z.info.K,F.length!==z.length)z=!1;else{for(k=0;k<F.length;k++)if(!g.p8(F[k],z[k])){z=!1;break a}z=!0}k=!z}return k}F=k.T0();z.info.Y.fV()&&AQ(z);z=z.info.Y.Y;return F!==z&&!g.p8(F,z)};
ybC=function(F,k,z,x,D){var e=0;if(F.policy.L&&x&&x.clipId&&F.jz){var C;e=(((C=F.jz)==null?void 0:IP(C,x.clipId))||0)/1E3}try{F.policy.L&&k.Hj()!==e&&k.g8(e);var p,E=k===((p=F.IU)==null?void 0:p.Y)?F.audioTrack:F.videoTrack;if(F.policy.u$&&(x==null?0:x.HM())){if((x==null?void 0:x.Qh)>1)return 6;E.yh=new g.KS(function(){var X=MB(E);F.z4()||X==null||!X.isLocked?F.La.C().Jp()&&F.UK("eosl",{delayA:X==null?void 0:X.info.mu()}):Yh9(E)?(F.La.C().Jp()&&F.UK("eosl",{dunlock:X==null?void 0:X.info.mu()}),nJn(F,
E===F.audioTrack)):(F.UK("nue",{ls:X.info.mu()}),X.info.Qh+=1,F.IU&&F.bz())},1E4,F);
F.La.C().Jp()&&F.UK("eosl",{delayS:x.mu()});E.yh.start()}F.policy.rq&&(x==null?void 0:x.Y)instanceof fz&&x.HM()&&F.UK("poseos",{itag:x.Y.info.itag,seg:x.gt,lseg:x.Y.index.OJ(),es:x.Y.index.U});k.appendBuffer(z,x,D)}catch(X){if(X instanceof DOMException){if(X.code===11)return 2;if(X.code===12)return 5;if(X.code===22||X.message.indexOf("Not enough storage")===0)return k=Object.assign({name:"QuotaExceededError",buffered:XW(k.Kv()).replace(/,/g,"_"),vheap:Of(F.videoTrack),aheap:Of(F.audioTrack),message:g.T8(X.message,
3),track:F.IU?k===F.IU.L?"v":"a":"u"},XPn()),F.handleError("player.exception",k),1;g.JV(X)}return 4}return F.IU.j5()?3:0};
nh=function(F,k,z){F.La.seekTo(k,z)};
b9Y=function(F,k){k&&F.La.Rl(new u9(k.key,k.type))};
l9=function(F,k){F.La.bb(k)};
yP=function(F,k){if(F.l$&&!F.Gn)return 3;if(F.isSuspended)return 1;var z;if((z=F.IU)==null?0:z.IU&&z.IU.streaming===!1)return 4;z=(k.Y.info.audio?F.policy.dH:F.policy.J4)/(k.Yu*F.policy.MZ);if(F.policy.EZ>0&&F.IU&&Km(F.IU)&&(k=k.Y.info.video?F.IU.L:F.IU.Y)&&!k.Ck()){k=k.Kv();var x=qi(k,F.getCurrentTime());x>=0&&(k=F.getCurrentTime()-k.start(x),z+=Math.max(0,Math.min(k-F.policy.EZ,F.policy.zs)))}F.policy.t4>0&&(z=Math.min(z,F.policy.t4));return z};
JTD=function(F,k){return(yP(F,k)+F.policy.Bh)*k.Yu};
LeH=function(F){F.u$&&!F.isSuspended&&hJ(F.schedule)&&(Mka(F,F.u$),F.u$="")};
Mka=function(F,k){tq(k,"cms",function(z){F.policy.U&&F.UK("pathprobe",z)},function(z){F.La.handleError(z)})};
fxx=function(F,k){if(F.IU&&F.IU.j&&!F.IU.j5()&&(k.uO=Ib(F.videoTrack),k.L=Ib(F.audioTrack),F.policy.U)){var z=Of(F.videoTrack),x=Of(F.audioTrack),D=XW(F.IU.L.Kv(),"_",5),e=XW(F.IU.Y.Kv(),"_",5);Object.assign(k.Y,{lvq:z,laq:x,lvb:D,lab:e})}k.bandwidthEstimate=vV(F.K);var C;(C=F.audioTrack.K)==null||C.flush();var p;(p=F.videoTrack.K)==null||p.flush();F.logger.debug(function(){return Pw(k.Y)})};
Ke5=function(F,k){F.B=k;F.U&&(F.U.U=k);F.B.qa(F.videoTrack.Y.info.Xv());F.W.L=F.B;F.policy.W&&(F.L.j=F.B)};
opH=function(F,k){if(F.IU&&F.IU.L){if(F.policy.gD){var z=Kcx(F.audioTrack);if(z&&z.QZ()){var x=F.La;if(x.h6&&(x.h6.Y=z,z=x.Ap(x.h6.videoId),z.qoe)){z=z.qoe;x=x.h6;var D=g.fA(z.provider);WeM(z,D,x)}}}F.policy.f8&&(z=Kcx(F.videoTrack))&&z.Ci()&&(x=F.La,x.Ic&&(x.Ic.Y=z,z=x.Ap(x.Ic.videoId),z.qoe&&FJC(z.qoe,x.Ic)));k-=isNaN(F.timestampOffset)?0:F.timestampOffset;F.getCurrentTime()!==k&&F.resume();F.rR.isSeeking()&&F.IU&&!F.IU.j5()&&(x=F.getCurrentTime()<=k&&k<F.getCurrentTime()+10,z=Ni(F.IU.L.Kv(),F.getCurrentTime()+
kL5),x&&z&&(F.rR.W=!1));F.rR.isSeeking()||F.policy.Xf||(F.currentTime=k);if(F.policy.H8&&(x=F.MD)!=null){z=F.La.getCurrentTime();D=F.UK.bind(F);var e=x.j.kA(k),C=x.j.getStartTime(e);if(x.L||e>=0&&e<Number.POSITIVE_INFINITY&&e!==x.Y){x.L=!1;var p=x.U.get(e);((p==null?void 0:p.U.length)||0)>1?p.L[0]<k-C?D("ssevt",{ssvc:"start",cpn:p.Y[1],vid:p.ids[1],ct:z.toFixed(3),mt:k.toFixed(3),cmt:(C+p.L[0]).toFixed(3),seg:e,lastSeg:x.Y}):x.L=!0:(p==null?void 0:p.U.length)===1&&(p==null?void 0:p.U[0])===0&&D("ssevt",
{ssvc:"start",cpn:p.Y[0],vid:p.ids[0],ct:z.toFixed(3),mt:k.toFixed(3),cmt:C.toFixed(3),seg:e,lastSeg:x.Y});e!==x.Y&&(x.U.delete(x.Y),x.Y=e)}}g.WN(F.sB)}};
zyM=function(F,k){var z=O3a(F.videoTrack).find(function(x){return x.startTime>=k&&qhn(F,x.startTime,!1)});
return z&&z.startTime<k+z.duration*1.5?z.startTime+.1:0};
qhn=function(F,k,z){if(!(F.videoTrack.Y.Ig()&&F.audioTrack.Y.Ig()&&F.IU&&F.IU.L&&F.IU.Y))return!1;if(z&&F.b$.isManifestless&&(F.videoTrack.S===-1||F.audioTrack.S===-1))return!0;var x=Jq(F.videoTrack,k,z);if(isNaN(x))return!1;F=Jq(F.audioTrack,F.policy.m_?k:x,z);return isNaN(F)?!1:!0};
Kj=function(F){F.f$();F.rR.isSeeking()&&F.logger.debug("seeking cancelled by seek-to-head");F.G&&Cxa(F.G,F.videoTrack.Y);yA(F);return Vjk(F.rR)};
fj=function(F,k,z,x){(x===void 0?0:x)&&!k.cR&&(Mi()||(x=k.xu,h06(F)||!x||x.KU(z.info)||(F.UK("ssap",{rstonsrvfmt:z.info.mimeType}),F.La.eO())),k.cR=!0);k.Y!==z&&(F.logger.debug(function(){return"Setting target itag: "+z.info.id+" (was "+k.Y.info.id+")"}),k.Y=z)};
Yh9=function(F){var k,z=(k=MB(F))==null?void 0:k.info;return!z||Y1H(F,Math.min(z.j+kL5,z.S))};
xan=function(F,k){var z;if((z=MB(k))!=null&&z.isLocked&&Yh9(k)){if(F.La.C().Jp()){var x;F.UK("eosl",{munlock:(x=MB(k))==null?void 0:x.info.mu()})}nJn(F,k===F.audioTrack)}};
nJn=function(F,k){if(F.policy.u$&&F.IU){var z,x,D=k?(z=F.IU)==null?void 0:z.Y:(x=F.IU)==null?void 0:x.L;z=k?F.audioTrack:F.videoTrack;k=MB(z);if(k==null?0:k.isLocked){F.La.C().Jp()&&F.UK("eosl",{unlock:k.info.mu()});var e;(e=z.yh)==null||e.stop();k.isLocked=!1;z.eb(k);Hzn(F.Y,k.info);D=D==null?void 0:D.VA();(D==null?void 0:D.mu())!==k.info.mu()&&F.UK("oue",{bls:D==null?void 0:D.mu(),tls:k.info.mu()})}}};
iY6=function(F,k){F.timestampOffset!==k&&(F.timestampOffset=k,F.policy.zM&&ZY(F.b$),F.logger.debug(function(){return"Timestamps will be made relative to "+F.timestampOffset}),F.U.B=F.timestampOffset,F.La.zj(F.timestampOffset),F.b$.isManifestless&&(F.b$.timestampOffset=F.timestampOffset),F.videoTrack.g8(F.timestampOffset),F.audioTrack.g8(F.timestampOffset))};
DaI=function(F){F.audioTrack.Qh=[];F.videoTrack.Qh=[]};
EHx=function(F){var k=F.Xb().filter(function(x){return x.namespace==="ad"});
k=g.l(k);for(var z=k.next();!z.done;z=k.next())if(z=z.value,z.start/1E3>F.getCurrentTime())return z.start/1E3;return Infinity};
$aI=function(F){var k=Z_(F.videoTrack),z=Z_(F.audioTrack);return k&&!fYx(F.videoTrack)?k.startTime:z&&!fYx(F.audioTrack)?z.startTime:NaN};
LYY=function(F){if(F.La.getVideoData().isLivePlayback)return!1;var k=F.La.S9();if(!k)return!1;k=k.getDuration();return Mm5(F,k)};
Mm5=function(F,k){if(!F.IU||!F.IU.Y||!F.IU.L)return!1;var z=F.getCurrentTime(),x=F.IU.Y.Kv();F=F.IU.L.Kv();x=x?uK(x,z):z;z=F?uK(F,z):z;z=Math.min(x,z);return isNaN(z)?!1:z>=k-.01};
gJM=function(F,k,z){F.policy.Xo&&xJ(F.La.getVideoData())?(F.La.kH()||R09(F,"sepInit",k,z.info),jLR(F.La,"sie")):R09(F,"sepInit",k,z.info)};
mUC=function(F){return F.La.e3()<F.vj};
g.KA=function(F){this.qR=F};
Wi=function(){g.uG.apply(this,arguments)};
Fp=function(F,k,z,x){Wi.call(this);var D=this;this.U=-1;this.Y={};this.j=new g.KS(this.W,0,this);g.b(this,this.j);this.L=new g.KS(function(){D.z4()||(D.j.start(Math.random()*z),D.L.start(k))},F,this);
g.b(this,this.L);x.subscribe("fairplay_next_need_key_info",this.S,this)};
eyR=function(F){if(!(F.length<=28))for(var k=(0,g.Gv)([60,0,75,0,73,0,68,0,62,0]),z=28;z<F.length;){a:if(F.length-z<k.length)var x=!1;else{for(x=0;x<k.length;++x)if(F[z+x]!==k[x]){x=!1;break a}x=!0}if(x){z+=k.length;if(F.length<=z+48)break;k=new Uint8Array(24);for(x=0;x<24;++x)k[x]=F[z+x*2];F=cZ(k);F=lr(F);if(!F)break;z=F[0];F[0]=F[3];F[3]=z;z=F[1];F[1]=F[2];F[2]=z;z=F[4];F[4]=F[5];F[5]=z;z=F[6];F[6]=F[7];F[7]=z;return F}z++}};
kO=function(F,k,z){Wi.call(this);var x=this;this.U=F;this.Y=[];this.Pe={d6t:function(){return x.Y.length}};
this.j=z.Ca("html5_ignore_widevine_key_rotation_license_requests");this.L=new g.KS(function(){x.publish("log_qoe",{wvagt:"timer",reqlen:x.Y?x.Y.length:-1});if(x.Y){if(x.Y.length>0){var D=x.Y.shift();CAp(x,D.info)}x.Y.length>0&&(D=x.Y[0].time-(0,g.VE)(),x.L.start(Math.max(0,D)))}},0);
g.b(this,this.L);k.subscribe("widevine_set_need_key_info",this.W,this)};
CAp=function(F,k){a:{var z=k.cryptoPeriodIndex;if(isNaN(z)&&F.U.size>0)z=!0;else{for(var x=g.l(F.U.values()),D=x.next();!D.done;D=x.next())if(D.value.cryptoPeriodIndex===z){z=!0;break a}z=!1}}F.publish("log_qoe",{wvagt:"reqnews",canskip:z});z||F.publish("rotated_need_key_info_ready",k)};
AMD=function(){var F={};var k=F.url;var z=F.interval;F=F.retries;this.url=k;this.interval=z;this.retries=F};
pv9=function(F,k){this.statusCode=F;this.message=k;this.L=this.heartbeatParams=this.errorMessage=null;this.Y={};this.nextFairplayKeyId=null};
Epa=function(F,k,z){z=z===void 0?"":z;g.S.call(this);this.message=F;this.requestNumber=k;this.Dj=z;this.onError=this.onSuccess=null;this.Y=new g.Pk(5E3,2E4,.2)};
Xva=function(F,k,z){F.onSuccess=k;F.onError=z};
N55=function(F,k,z,x){var D={timeout:3E4,onSuccess:function(e){if(!F.z4()){nl("drm_net_r",void 0,F.Dj);var C=e.status==="LICENSE_STATUS_OK"?0:9999,p=null;if(e.license)try{p=lr(e.license)}catch(m){g.JV(m)}if(C!==0||p){p=new pv9(C,p);C!==0&&e.reason&&(p.errorMessage=e.reason);if(e.authorizedFormats){C={};for(var E=[],X={},q=g.l(e.authorizedFormats),N=q.next();!N.done;N=q.next())if(N=N.value,N.trackType&&N.keyId){var u=qJY[N.trackType];if(u){u==="HD"&&e.isHd720&&(u="HD720");N.isHdr&&(u+="HDR");C[u]||
(E.push(u),C[u]=!0);var w=null;try{w=lr(N.keyId)}catch(m){g.JV(m)}w&&(X[g.mv(w,4)]=u)}}p.L=E;p.Y=X}e.nextFairplayKeyId&&(p.nextFairplayKeyId=e.nextFairplayKeyId);e.sabrLicenseConstraint&&(p.sabrLicenseConstraint=lr(e.sabrLicenseConstraint));e=p}else e=null;if(e)F.onSuccess(e,F.requestNumber);else F.onError(F,"drm.net","t.p;p.i")}},
onError:function(e){if(!F.z4())if(e&&e.error)e=e.error,F.onError(F,"drm.net.badstatus","t.r;p.i;c."+e.code+";s."+e.status,e.code);else F.onError(F,"drm.net.badstatus","t.r;p.i;c.n")},
onTimeout:function(){F.onError(F,"drm.net","rt.req."+F.requestNumber)}};
x&&(D.LZ="Bearer "+x);g.jF(z,"player/get_drm_license",k,D)};
uhx=function(F,k,z,x){g.uG.call(this);this.videoData=F;this.YG=k;this.B=z;this.sessionId=x;this.W={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.Qh=this.PR=!1;this.U=null;this.t4=[];this.j=[];this.z1=[];this.G=!1;this.Y={};this.status="";this.S=NaN;this.L=F.W;this.cryptoPeriodIndex=z.cryptoPeriodIndex;F={};Object.assign(F,this.YG.Y);F.cpn=this.videoData.clientPlaybackNonce;this.videoData.PR&&(F.vvt=this.videoData.PR,this.videoData.mdxEnvironment&&(F.mdx_environment=this.videoData.mdxEnvironment));
this.YG.t4&&(F.authuser=this.YG.t4);this.YG.pageId&&(F.pageid=this.YG.pageId);isNaN(this.cryptoPeriodIndex)||(F.cpi=this.cryptoPeriodIndex.toString());var D=(D=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.ZH()))?D[1]:"";D==="ATV"&&(F.cdt=D);this.W=F;this.W.session_id=x;this.K=!0;this.L.flavor==="widevine"&&(this.W.hdr="1");this.L.flavor==="playready"&&(k=Number(oB(k.experiments,"playready_first_play_expiration")),!isNaN(k)&&k>=0&&(this.W.mfpe=""+k),this.K=!1);k="";g.Yl(this.L)?gi(this.L)?(x=z.L)&&(k="https://web.archive.org/web/20250411103644/https://www.youtube.com/api/drm/fps?ek="+
aMH(x)):(k=z.initData.subarray(4),k=new Uint16Array(k.buffer,k.byteOffset,k.byteLength/2),k=String.fromCharCode.apply(null,k).replace("skd://","https://")):k=this.L.L;this.baseUrl=k;this.fairplayKeyId=iy(this.baseUrl,"ek")||"";if(k=iy(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(k);this.t4=z.Xv?[g.mv(z.initData,4)]:z.U;oI(this,{sessioninit:z.cryptoPeriodIndex});this.status="in"};
l99=function(F,k){oI(F,{createkeysession:1});F.status="gr";nl("drm_gk_s",void 0,F.videoData.RU);F.url=wvx(F);try{F.U=k.createSession(F.B,function(z){oI(F,{m:z})})}catch(z){k="t.g";
z instanceof DOMException&&(k+=";c."+z.code);F.publish("licenseerror","drm.unavailable",1,k,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}F.U&&(maH(F.U,function(z,x){T5R(F,z,x)},function(z,x,D){if(!F.z4()){x=void 0;
var e=1;g.Yl(F.L)&&g.IB(F.YG)&&F.YG.V("html5_enable_safari_fairplay")&&D===1212433232&&(x="ERROR_HDCP",e=F.YG.V("html5_safari_fairplay_ignore_hdcp")?0:e);F.error("drm.keyerror",e,z,x)}},function(){F.z4()||(oI(F,{onkyadd:1}),F.Qh||(F.publish("sessionready"),F.Qh=!0))},function(z){F.Qe(z)}),g.b(F,F.U))};
wvx=function(F){var k=F.baseUrl;z7H(k)||F.error("drm.net",2,"t.x");if(!iy(k,"fexp")){var z=["23898307","23914062","23916106","23883098"].filter(function(D){return F.YG.experiments.experiments[D]});
z.length>0&&(F.W.fexp=z.join())}z=g.l(Object.keys(F.W));for(var x=z.next();!x.done;x=z.next())x=x.value,k=hDM(k,x,F.W[x]);return k};
T5R=function(F,k,z){if(!F.z4())if(k){oI(F,{onkmtyp:z});F.status="km";switch(z){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":QLn(F,k);return;default:F.publish("ctmp","message_type",{t:z,l:k.byteLength})}F.PR||(nl("drm_gk_f",void 0,F.videoData.RU),F.PR=!0,F.publish("newsession",F));if(JQ(F.L)&&(k=hyn(k),!k))return;k=new Epa(k,++F.requestNumber,F.videoData.RU);Xva(k,function(x){sLp(F,x)},function(x,D,e){if(!F.z4()){var C=0;
x.Y.L>=3&&(C=1,D="drm.net.retryexhausted");oI(F,{onlcsrqerr:D,info:e});F.error(D,C,e);F.shouldRetry(VQ(C),x)&&rMM(F,x)}});
g.b(F,k);B5n(F,k)}else F.error("drm.unavailable",1,"km.empty")};
QLn=function(F,k){oI(F,{sdpvrq:1});F.S=Date.now();if(F.L.flavor!=="widevine")F.error("drm.provision",1,"e.flavor;f."+F.L.flavor+";l."+k.byteLength);else{var z={cpn:F.videoData.clientPlaybackNonce};Object.assign(z,F.YG.Y);z=g.oW("https://web.archive.org/web/20250411103644/https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",z);k={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,
k)}),responseType:"arraybuffer"};g.Pp(z,k,3,500).then(td(function(x){x=x.xhr;if(!F.z4()){x=new Uint8Array(x.response);var D=String.fromCharCode.apply(null,x);try{var e=JSON.parse(D)}catch(C){}e&&e.signedResponse?(F.publish("ctmp","drminfo",{provisioning:1}),e=(Date.now()-F.S)/1E3,F.S=NaN,F.publish("ctmp","provs",{et:e.toFixed(3)}),F.U&&F.U.update(x)):(e=e&&e.error&&e.error.message,x="e.parse",e&&(x+=";m."+e),F.error("drm.provision",1,x))}}),td(function(x){F.z4()||F.error("drm.provision",1,"e."+x.errorCode+
";c."+(x.xhr&&x.xhr.status))}))}};
zc=function(F){var k;if(k=F.K&&F.U!=null)F=F.U,k=!(!F.Y||!F.Y.keyStatuses);return k};
B5n=function(F,k){F.status="km";nl("drm_net_s",void 0,F.videoData.RU);var z=new g.$3(F.YG.je),x={context:g.mN(z.config_||g.w4())};x.drmSystem=GLk[F.L.flavor];x.videoId=F.videoData.videoId;x.cpn=F.videoData.clientPlaybackNonce;x.sessionId=F.sessionId;x.licenseRequest=g.mv(k.message);x.drmParams=F.videoData.drmParams;isNaN(F.cryptoPeriodIndex)||(x.isKeyRotated=!0,x.cryptoPeriodIndex=F.cryptoPeriodIndex);var D,e,C=!!((D=F.videoData.L)==null?0:(e=D.video)==null?0:e.isHdr());x.drmVideoFeature=C?"DRM_VIDEO_FEATURE_PREFER_HDR":
"DRM_VIDEO_FEATURE_SDR";if(x.context&&x.context.client){if(D=F.YG.Y)x.context.client.deviceMake=D.cbrand,x.context.client.deviceModel=D.cmodel,x.context.client.browserName=D.cbr,x.context.client.browserVersion=D.cbrver,x.context.client.osName=D.cos,x.context.client.osVersion=D.cosver;x.context.user=x.context.user||{};x.context.request=x.context.request||{};F.videoData.PR&&(x.context.user.credentialTransferTokens=[{token:F.videoData.PR,scope:"VIDEO"}]);x.context.request.mdxEnvironment=F.videoData.mdxEnvironment||
x.context.request.mdxEnvironment;F.videoData.mY&&(x.context.user.kidsParent={oauthToken:F.videoData.mY});g.Yl(F.L)&&(x.fairplayKeyId=g.mv(SCH(F.fairplayKeyId)));g.iJ(F.YG,g.dy(F.videoData)).then(function(p){N55(k,x,z,p);F.status="rs"})}else F.error("drm.net",2,"t.r;ic.0")};
sLp=function(F,k){if(!F.z4())if(oI(F,{onlcsrsp:1}),F.status="rr",k.statusCode!==0)F.error("drm.auth",1,"t.f;c."+k.statusCode,k.errorMessage||void 0);else{nl("drm_kr_s",void 0,F.videoData.RU);if(k.heartbeatParams&&k.heartbeatParams.url&&F.videoData.V("outertube_streaming_data_always_use_staging_license_service")){var z=F.L.L.match(/(.*)youtube.com/g);z&&(k.heartbeatParams.url=z[0]+k.heartbeatParams.url)}k.heartbeatParams&&F.publish("newlicense",k.heartbeatParams);k.L&&(F.j=k.L,F.videoData.Yk||F.publish("newlicense",
new AMD),F.videoData.Yk=!0,F.G=t9(F.j,function(x){return x.includes("HDR")}));
k.Y&&(F.YG.V("html5_enable_vp9_fairplay")&&gi(F.L)?(z=g.mv(SCH(F.fairplayKeyId),4),F.Y[z]={type:k.Y[z],status:"unknown"}):F.Y=vB(k.Y,function(x){return{type:x,status:"unknown"}}));
R3(F.L)&&(k.message=UHa(g.mv(k.message)));F.U&&(oI(F,{updtks:1}),F.status="ku",F.U.update(k.message).then(function(){nl("drm_kr_f",void 0,F.videoData.RU);zc(F)||(oI(F,{ksApiUnsup:1}),F.publish("keystatuseschange",F))},function(x){x="msuf.req."+F.requestNumber+";msg."+g.T8(x.message,3);
F.error("drm.keyerror",1,x)}));
g.Yl(F.L)&&F.publish("fairplay_next_need_key_info",F.baseUrl,k.nextFairplayKeyId);F.YG.V("html5_enable_vp9_fairplay")&&gi(F.L)&&F.publish("qualitychange",Uax(F.j));k.sabrLicenseConstraint&&F.publish("sabrlicenseconstraint",k.sabrLicenseConstraint)}};
rMM=function(F,k){var z=k.Y.getValue();z=new g.KS(function(){B5n(F,k)},z);
g.b(F,z);z.start();g.Oy(k.Y);oI(F,{rtyrq:1})};
txR=function(F,k){for(var z=[],x=g.l(Object.keys(F.Y)),D=x.next();!D.done;D=x.next())D=D.value,z.push(D+"_"+F.Y[D].type+"_"+F.Y[D].status);return z.join(k)};
ZY5=function(F){var k={};k[F.status]=zc(F)?txR(F,"."):F.j.join(".");return k};
vpR=function(F){switch(F){case "AUDIO":return 1;case "SD":return 2;case "HD":return 3;case "UHD1":return 4;case "UHD2":return 5;default:return 0}};
xO=function(F,k){for(var z in F.Y)if(F.Y[z].status==="usable"&&F.Y[z].type===k)return!0;return!1};
cMM=function(F,k){for(var z in F.Y)if(F.Y[z].type===k)return F.Y[z].status};
oI=function(F,k){var z=z===void 0?!1:z;Pw(k);(z||F.YG.Jp())&&F.publish("ctmp","drmlog",k)};
PAa=function(F){var k=F[0];F[0]=F[3];F[3]=k;k=F[1];F[1]=F[2];F[2]=k;k=F[4];F[4]=F[5];F[5]=k;k=F[6];F[6]=F[7];F[7]=k};
Uax=function(F){return g.fC(F,"UHD2")||g.fC(F,"UHD2HDR")?"highres":g.fC(F,"UHD1")||g.fC(F,"UHD1HDR")?"hd2160":g.fC(F,"HD")||g.fC(F,"HDHDR")?"hd1080":g.fC(F,"HD720")||g.fC(F,"HD720HDR")?"hd720":"large"};
hyn=function(F){for(var k="",z=0;z<F.length;z+=2)k+=String.fromCharCode(F[z]);F=i3(new DOMParser,Y$(k),"text/xml");return F?(F=F.querySelector("Challenge"))&&F.childNodes&&F.childNodes.length!==0?new Uint8Array((0,g.Gv)(XlC(F.childNodes[0].nodeValue)).buffer):null:null};
i6=function(F,k,z,x,D,e){e=e===void 0?!1:e;g.S.call(this);this.element=F;this.B=k;this.initData=z;this.Y=x;this.L=D;this.K=e;this.sessionId="";this.G=this.S=this.U=this.W=null;this.j=new g.yQ(this);g.b(this,this.j);OYR(this)};
OYR=function(F){F.Y?(F.j.N(F.Y,"message",F.UG),F.j.N(F.Y,"keystatuseschange",F.Qe),F.Y.closed&&F.Y.closed.then(td(function(){F.onClosed()}),null)):F.L&&(ON(F.j,F.L,["mskeymessage",
"webkitkeymessage"],F.J_),ON(F.j,F.L,["mskeyerror","webkitkeyerror"],F.Gg),ON(F.j,F.L,["mskeyadded","webkitkeyadded"],F.ID))};
maH=function(F,k,z,x,D){F.W=k;F.U=z;F.S=x;F.G=D};
Vxp=function(F,k,z){g.JV(z);F.U&&(z instanceof DOMException&&(k+=";n."+z.name+";m."+z.message),F.U(k))};
DU=function(F,k,z){z=z===void 0?!1:z;g.S.call(this);this.element=F;this.Y=k;this.G=z;this.S={};this.j=null;this.W=new g.yQ(this);this.U=this.L=null;g.b(this,this.W)};
HYD=function(F){if(F.Y.keySystemAccess)return F.Y.keySystemAccess.createMediaKeys().then(function(z){if(!F.z4()){F.L=z;var x;(x=F.element)==null||x.setMediaKeys(z)}});
if(di(F.Y))F.U=new (b4())(F.Y.keySystem);else if(yg(F.Y)){F.U=new (b4())(F.Y.keySystem);var k;(k=F.element)==null||k.webkitSetMediaKeys(F.U)}else I9Y(F);return null};
I9Y=function(F){ON(F.W,F.element,["keymessage","webkitkeymessage"],F.aY);ON(F.W,F.element,["keyerror","webkitkeyerror"],F.Pm);ON(F.W,F.element,["keyadded","webkitkeyadded"],F.Qc)};
RCH=function(F,k){k=a9I(k,F.Y.kG);k=F.U.createSession("video/mp4",k);return new i6(null,null,null,null,k,F.G)};
gFM=function(F,k){for(var z=new Uint8Array(270),x=0;x<135;x++)z[x*2]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(x);F=F.U.createSession("video/mp4",k,z);return new i6(null,null,null,null,F)};
Yfn=function(F,k){var z=F.S[k.sessionId];!z&&F.j&&(z=F.j,F.j=null,z.sessionId=k.sessionId,F.S[k.sessionId]=z);return z};
a9I=function(F,k){var z=F.subarray(4);z=new Uint16Array(z.buffer,z.byteOffset,z.byteLength/2);z=String.fromCharCode.apply(null,z).match(/ek=([0-9a-f]+)/)[1];for(var x="",D=0;D<z.length;D+=2)x+=String.fromCharCode(parseInt(z.substring(D,D+2),16));z=x;x=new ArrayBuffer(z.length*2);D=new Uint16Array(x);for(var e=0;e<z.length;e++)D[e]=z.charCodeAt(e);z=new Uint8Array(x);x=0;e=new ArrayBuffer(F.byteLength+4+z.byteLength+4+k.byteLength);D=new Uint8Array(e);e=new DataView(e);D.set(F);x+=F.byteLength;e.setUint32(x,
z.length,!0);x+=4;D.set(z,x);x+=z.length;e.setUint32(x,k.byteLength,!0);D.set(k,x+4);return D};
$O=function(){this.keys=[];this.values=[]};
LTp=function(F,k,z){g.uG.call(this);this.element=F;this.videoData=k;this.YG=z;this.U=[];this.cR=2;this.l$=this.Xf=!1;this.heartbeatParams=null;this.mp=this.K=!1;this.W=null;this.yh=!1;this.Y=this.videoData.W;this.drmSessionId=this.videoData.drmSessionId||g.Bzn();this.L=new Map;this.S=new $O;this.G=new $O;this.PR=new g.yQ(this);this.t4=this.YG.V("html5_eme_ignore_teardown_errors");(F=this.element)&&(F.addKey||F.webkitAddKey)||b4()||Ms(z.experiments);this.YG.V("html5_enable_vp9_fairplay")&&gi(this.Y)?
z=nFn:(z=this.videoData.T1,z=this.Y.flavor==="fairplay"||z?y6:nFn);this.B=z;this.j=new DU(this.element,this.Y,this.t4);g.b(this,this.j);di(this.Y)&&(this.Qh=new DU(this.element,this.Y,this.t4),g.b(this,this.Qh));g.b(this,this.PR);z=this.element;this.Y.keySystemAccess?this.PR.N(z,"encrypted",this.GD4):ON(this.PR,z,di(this.Y)?["msneedkey"]:["needkey","webkitneedkey"],this.Y3U);M2n(this);a:switch(z=this.Y,F=this.YG.experiments,k=this.L,z.flavor){case "fairplay":gz()>19.2999?(F=z.Bi,z=z.JA,z>=F&&(z=F*
.75),k=(F-z)*.5,z=new Fp(k,F,F-k-z,this)):z=null;break a;case "widevine":z=new kO(k,this,F);break a;default:z=null}if(this.W=z)g.b(this,this.W),this.W.subscribe("rotated_need_key_info_ready",this.sU,this),this.W.subscribe("log_qoe",this.y3,this);Ms(this.YG.experiments);this.y3({cks:this.Y.getInfo()})};
M2n=function(F){var k=HYD(F.j);k?k.then(td(function(){f_D(F)}),td(function(z){if(!F.z4()){g.JV(z);
var x="t.a";z instanceof DOMException&&(x+=";n."+z.name+";m."+z.message);F.publish("licenseerror","drm.unavailable",1,x,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(F.y3({mdkrdy:1}),F.K=!0);
F.Qh&&(k=HYD(F.Qh))};
WTx=function(F,k,z){F.l$=!0;z=new u9(k,z);F.YG.V("html5_eme_loader_sync")&&(F.S.get(k)||F.S.set(k,z));KT9(F,z)};
KT9=function(F,k){if(!F.z4()){F.y3({onInitData:1});if(F.YG.V("html5_eme_loader_sync")&&F.videoData.U&&F.videoData.U.Y){var z=F.G.get(k.initData);k=F.S.get(k.initData);if(!z||!k)return;k=z;z=k.initData;F.S.remove(z);F.G.remove(z)}F.y3({initd:k.initData.length,ct:k.contentType});if(F.Y.flavor==="widevine")if(F.Xf&&!F.videoData.isLivePlayback)j6(F);else{if(!(F.YG.V("vp9_drm_live")&&F.videoData.isLivePlayback&&k.Xv)){F.Xf=!0;z=k.cryptoPeriodIndex;var x=k.Y;zG6(k);k.Xv||(x&&k.Y!==x?F.publish("ctmp","cpsmm",
{emsg:x,pssh:k.Y}):z&&k.cryptoPeriodIndex!==z&&F.publish("ctmp","cpimm",{emsg:z,pssh:k.cryptoPeriodIndex}));F.publish("widevine_set_need_key_info",k)}}else F.sU(k)}};
f_D=function(F){if(!F.z4())if(F.YG.V("html5_drm_set_server_cert")||gi(F.Y)){var k=F.j.setServerCertificate();k?k.then(td(function(z){F.YG.Jp()&&F.publish("ctmp","ssc",{success:z})}),td(function(z){F.publish("ctmp","ssce",{n:z.name,
m:z.message})})).then(td(function(){Ftx(F)})):Ftx(F)}else Ftx(F)};
Ftx=function(F){F.z4()||(F.K=!0,F.y3({onmdkrdy:1}),j6(F))};
kgp=function(F){return F.Y.flavor==="widevine"&&F.videoData.V("html5_drm_cpi_license_key")};
j6=function(F){if(F.l$&&F.K&&!F.mp){for(;F.U.length;){var k=F.U[0],z=kgp(F)?xsx(k):g.mv(k.initData);if(gi(F.Y)&&!k.L)F.U.shift();else{if(F.L.get(z))if(F.Y.flavor!=="fairplay"||gi(F.Y)){F.U.shift();continue}else F.L.delete(z);zG6(k);break}}F.U.length&&F.createSession(F.U[0])}};
otk=function(F){var k;if(k=g.Lg()){var z;k=!((z=F.j.L)==null||!z.getMetrics)}k&&(k=F.j.getMetrics())&&(k=g.OP(k),F.publish("ctmp","drm",{metrics:k}))};
ztD=function(){var F=Vup();return!(!F||F==="visible")};
iAC=function(F){var k=x7k();k&&document.addEventListener(k,F,!1)};
D79=function(F){var k=x7k();k&&document.removeEventListener(k,F,!1)};
x7k=function(){if(document.visibilityState)var F="visibilitychange";else{if(!document[T_+"VisibilityState"])return"";F=T_+"visibilitychange"}return F};
$79=function(F){g.S.call(this);var k=this;this.La=F;this.jM=0;this.S=this.L=this.W=!1;this.j=0;this.i$=this.La.C();this.videoData=this.La.getVideoData();this.U=g.lw(this.i$.experiments,"html5_delayed_retry_count");this.Y=new g.KS(function(){k.La.eO()},g.lw(this.i$.experiments,"html5_delayed_retry_delay_ms"));
g.b(this,this.Y)};
pi6=function(F,k,z){var x=F.videoData.L,D=F.videoData.j;xJ(F.La.getVideoData())&&F.i$.V("html5_gapless_fallback_on_qoe_restart")&&jLR(F.La,"pe");if((k==="progressive.net.retryexhausted"||k==="fmt.unplayable"||k==="fmt.decode")&&!F.La.Y1.W&&x&&x.itag==="22")return F.La.Y1.W=!0,F.He("qoe.restart",{reason:"fmt.unplayable.22"}),F.La.bW(),!0;var e=!1;if(F.videoData.isExternallyHostedPodcast){if(e=F.videoData.Z1)z.mimeType=e.type,F.UK("3pp",{url:e.url});z.ns="3pp";F.La.qk(k,1,"VIDEO_UNAVAILABLE",Pw((new O3(k,
z,1)).details));return!0}var C=F.jM+3E4<(0,g.VE)()||F.Y.isActive();if(F.i$.V("html5_empty_src")&&F.videoData.isAd()&&k==="fmt.unplayable"&&/Empty src/.test(""+z.msg))return z.origin="emptysrc",F.He("auth",z),!0;C||e6(F.La.qB())||(z.nonfg="paused",C=!0,F.La.pauseVideo());(k==="fmt.decode"||k==="fmt.unplayable")&&(D==null?0:z$(D)||xb(D))&&(vhp(F.i$.W,D.DQ),z.acfallexp=D.DQ,e=C=!0);!C&&F.U>0&&(F.Y.start(),C=!0,z.delayed="1",--F.U);D=F.La.aU;!C&&((x==null?0:oD(x))||(x==null?0:Ww(x)))&&(vhp(F.i$.W,x.DQ),
e=C=!0,z.cfallexp=x.DQ);if(F.i$.V("html5_ssap_ignore_decode_error_for_next_video")&&g.Mk(F.videoData)&&k==="fmt.unplayable"&&z.cid&&z.ccid&&e6(F.La.qB())){if(z.cid!==z.ccid)return z.ignerr="1",F.He("ssap.transitionfailure",z),!0;F.He("ssap.transitionfailure",z);if(jnI(F.La,k))return!0}if(!C)return etY(F,z);if(F.i$.V("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.Mk(F.videoData)&&k==="fmt.unplayable"&&z.cid&&z.ccid&&z.cid!==z.ccid&&e6(F.La.qB())&&(F.He("ssap.transitionfailure",z),jnI(F.La,
k)))return!0;C=!1;F.W?F.jM=(0,g.VE)():C=F.W=!0;var p=F.videoData;if(p.dH){p=p.dH.Vn();var E=Date.now()/1E3+1800;p=p<E}else p=!1;z.e=k;z.bkg=ztD();p&&(z.staleprog="1");F.He("qoe.restart",z);if(p&&C$C(F))return AAn(F),!0;if(!(!g.ng("philips")||k==="fmt.unplayable"&&D&&D.t4||F.i$.Y.cplatform==="GAME_CONSOLE"))try{window.close()}catch(X){}x&&oD(x)&&!F.i$.V("html5_allow_av1_retry_in_session")?(e=F.i$.W,e.B=!0,DX(e),e=!0):D?C||(k=(k=Z_(D.videoTrack)||D.videoTrack.L)?k.Y:D.videoTrack.Y,k.S+=1,D.policy.Y?
K4(D.j.Y,k,!0):i9(D.Y,k,!0)):F.videoData.dH&&F.videoData.dH.gF();F.Y.isActive()||F.La.eO(e);return!0};
etY=function(F,k){if(F.videoData.mp)return!1;F.i$.uL+=1;if(F.i$.uL<=10)return!1;k.exiled=""+F.i$.uL;F.He("qoe.start15s",k);F.La.publish("playbackstalledatstart");return!0};
C$C=function(F){return F.L?!0:F.i$.Qh==="yt"?F.videoData.mp?F.videoData.vj<25:!F.videoData.vj:!1};
AAn=function(F){if(!F.L){F.L=!0;var k=F.La.getPlayerState();k=k.isPaused()||k.isSuspended();F.La.jh();k&&!gy(F.videoData)||F.La.publish("signatureexpired")}};
EtR=function(F,k){if((F=F.La.S9())&&(k.errorCode==="fmt.unplayable"||k.errorCode==="html5.invalidstate")){var z=F.Cn();k.details.merr=z?z.toString():"0";k.details.mmsg=F.SO()}};
Xin=function(F){return F.errorCode==="net.badstatus"&&(F.severity===1||!!F.details.fmt_unav)};
q4I=function(F,k){return F.i$.V("html5_use_network_error_code_enums")&&k.details.rc===403||k.details.rc==="403"?(F=k.errorCode,F==="net.badstatus"||F==="manifest.net.retryexhausted"):!1};
uc5=function(F,k){if(!q4I(F,k)&&!F.L)return!1;k.details.sts="20181";if(C$C(F))return VQ(k.severity)&&(k=Object.assign({e:k.errorCode},k.details),k=new O3("qoe.restart",k)),F.He(k.errorCode,k.details),AAn(F),!0;(0,g.VE)()-F.i$.Nk>6048E5&&NSa(F,"signature");return!1};
NSa=function(F,k){try{window.location.reload(),F.He("qoe.restart",{detail:"pr."+k})}catch(z){}};
wiY=function(F,k){k=k===void 0?"fmt.noneavailable":k;var z=F.i$.W;z.G=!1;DX(z);F.He("qoe.restart",{e:k,detail:"hdr"});F.La.eO(!0)};
m75=function(F,k,z,x,D,e){this.videoData=F;this.Y=k;this.reason=z;this.L=x;this.token=D;this.videoId=e};
TSC=function(F,k,z){this.YG=F;this.aN=k;this.La=z;this.B=this.S=this.Y=this.j=this.G=this.L=0;this.W=!1;this.K=g.lw(this.YG.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.U=new Map};
Qnx=function(F,k,z){!F.YG.V("html5_tv_ignore_capable_constraint")&&g.Vi(F.YG)&&(z=z.compose(lzp(F,k)));return z};
htn=function(F){if(F.La.qB().isInline())return y6;var k;F.V("html5_exponential_memory_for_sticky")?k=s5(F.YG.zM,"sticky-lifetime")<.5?"auto":q4[Yi()]:k=q4[Yi()];return g.pt("auto",k,!1,"s")};
rAp=function(F,k){var z,x=sn5(F,(z=k.Y)==null?void 0:z.videoInfos);z=F.La.getPlaybackRate();return z>1&&x?(F=BBk(F.YG.W,k.Y.videoInfos,z),new AX(0,F,!0,"o")):new AX(0,0,!1,"o")};
sn5=function(F,k){return k&&g.Vi(F.YG)?k.some(function(z){return z.video.fps>32}):!1};
BSM=function(F,k){if(F.V("html5_disable_ustreamer_constraint_for_sabr")&&$J(k.videoData))return y6;var z=F.La.zk();F.V("html5_use_video_quality_cap_for_ustreamer_constraint")&&z&&z.IC>0&&XM(k.videoData.KB)&&(F=z.IC,k.videoData.KB=new AX(0,F,!1,"u"));return k.videoData.KB};
lzp=function(F,k){if(g.Vi(F.YG)&&U_(F.YG.W,tX.HEIGHT))var z=k.Y.videoInfos[0].video.qualityOrdinal;else{var x=!!k.Y.Y;var D;g.O5(F.YG)&&(D=window.screen&&window.screen.width?new g.BB(window.screen.width,window.screen.height):null);D||(D=F.YG.MZ?F.YG.MZ.clone():F.aN.eU());(kn||$F||x)&&D.scale(g.L_());x=D;ix(k.videoData)||gy(k.videoData);k=k.Y.videoInfos;if(k.length){D=g.lw(F.YG.experiments,"html5_override_oversend_fraction")||.85;var e=k[0].video;e.projectionType!=="MESH"&&e.projectionType!=="EQUIRECTANGULAR"&&
e.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||cJ||(D=.45);F=g.lw(F.YG.experiments,"html5_viewport_undersend_maximum");for(e=0;e<k.length;e++){z=k[e];var C=z.video;if(x===null||C.width*D<x.width&&C.height*D<x.height){F&&e&&C.width<x.width*F&&C.height<x.height*F&&(z=k[e-1]);break}}x=z.video;z=new AX(0,z.itag==="93"?g.Yg[gu(x.width,x.height)]:x.qualityOrdinal,!1,"r")}else z=y6;z=z.Y}z&&(z=Math.max(z,360));return new AX(0,z,!1,"r")};
Gga=function(F,k){var z;a:if((z=k.Y)&&z.videoInfos.length){for(var x=g.l(z.videoInfos),D=x.next();!D.done;D=x.next()){D=D.value;var e=void 0;if((e=D.L)==null?0:e.smooth){z=D.video.qualityOrdinal;break a}}z=z.videoInfos[0].video.qualityOrdinal}else z=0;uRI()&&!g.Vi(F.YG)&&Ww(k.Y.videoInfos[0])&&(z=Math.min(z,g.Yg.large));x=g.lw(F.YG.experiments,"html5_chipset_soft_cap");x>0&&(z=Math.min(z,x));if(x=g.lw(F.YG.experiments,"html5_max_vertical_resolution")){F=4320;for(D=0;D<k.Y.videoInfos.length;D++)e=
k.Y.videoInfos[D],e.video.height>x&&(F=Math.min(F,e.video.qualityOrdinal));if(F<4320){for(D=x=0;D<k.Y.videoInfos.length;D++)e=k.Y.videoInfos[D].video.qualityOrdinal,e<F&&(x=Math.max(x,e));x&&(z=Math.min(x,z))}}return new AX(0,z,!1,"o")};
tNR=function(F,k){var z=4320;!F.YG.L||g.Vq(F.YG)||F.YG.V("hls_for_vod")||F.YG.V("mweb_remove_360p_cap")||(z=g.Yg.medium);var x=g.lw(F.YG.experiments,"html5_default_quality_cap");x&&k.Y.Y&&(F.YG.V("html5_always_apply_default_quality_cap")||!k.videoData.m3&&!k.videoData.J5)&&(z=Math.min(z,x));x=g.lw(F.YG.experiments,"html5_random_playback_cap");var D=/[a-h]$/;x&&D.test(k.videoData.clientPlaybackNonce)&&(z=Math.min(z,x));if(D=x=g.lw(F.YG.experiments,"html5_hfr_quality_cap"))a:{D=k.Y;if(D.Y){D=g.l(D.videoInfos);
for(var e=D.next();!e.done;e=D.next())if(e.value.video.fps>32){D=!0;break a}}D=!1}D&&(z=Math.min(z,x));(x=g.lw(F.YG.experiments,"html5_live_quality_cap"))&&k.videoData.isLivePlayback&&(z=Math.min(z,x));z=U7n(F,k,z);F=g.lw(F.YG.experiments,"html5_byterate_soft_cap");return new AX(0,z===4320?0:z,!1,"d",F)};
ZAx=function(F){var k,z,x,D;return g.O(function(e){switch(e.Y){case 1:return F.Y.Y&&typeof((k=navigator.mediaCapabilities)==null?void 0:k.decodingInfo)==="function"?g.c(e,Promise.resolve(),2):e.return(Promise.resolve());case 2:z=g.l(F.Y.videoInfos),x=z.next();case 3:if(x.done){e.Sk(0);break}D=x.value;return g.c(e,wuD(D),4);case 4:x=z.next(),e.Sk(3)}})};
cAH=function(F,k){if(!k.videoData.L||F.V("html5_disable_performance_downgrade"))return!1;Date.now()-F.G>6E4&&(F.L=0);F.L++;F.G=Date.now();if(F.L!==4)return!1;vt5(F,k.videoData.L);return!0};
OAR=function(F,k,z,x){if(!k||!z||!k.videoData.L)return!1;var D=g.lw(F.YG.experiments,"html5_df_downgrade_thresh"),e=F.V("html5_log_media_perf_info");if(!((0,g.VE)()-F.j<5E3?0:e||D>0))return!1;var C=((0,g.VE)()-F.j)/1E3;F.j=(0,g.VE)();z=z.getVideoPlaybackQuality();if(!z)return!1;var p=z.droppedVideoFrames-F.S,E=z.totalVideoFrames-F.B;F.S=z.droppedVideoFrames;F.B=z.totalVideoFrames;var X=z.displayCompositedVideoFrames===0?0:z.displayCompositedVideoFrames||-1;e&&F.YG.Jp()&&F.La.UK("ddf",{dr:z.droppedVideoFrames,
de:z.totalVideoFrames,comp:X});if(x)return F.Y=0,!1;if((E-p)/C>F.K||!D||g.Vi(F.YG))return!1;F.Y=(E>60?p/E:0)>D?F.Y+1:0;if(F.Y!==3)return!1;vt5(F,k.videoData.L);F.La.UK("dfd",Object.assign({dr:z.droppedVideoFrames,de:z.totalVideoFrames},P$5()));return!0};
vt5=function(F,k){var z=k.DQ,x=k.video.fps,D=k.video.qualityOrdinal-1,e=F.U;k=""+z+(x>49?"p60":x>32?"p48":"");z=HU(z,x,e);D>0&&(z=Math.min(z,D));if(!CZ.has(k)&&LN().includes(k)){var C=z;z=MD();+z[k]>0&&(C=Math.min(+z[k],C));z[k]!==C&&(z[k]=C,g.SZ("yt-player-performance-cap",z,2592E3))}else if(CZ.has(k)||e==null){a:{C=C===void 0?!0:C;x=LN().slice();if(C){if(x.includes(k))break a;x.push(k)}else{if(!x.includes(k))break a;x.splice(x.indexOf(k),1)}g.SZ("yt-player-performance-cap-active-set",x,2592E3)}I3.set(k,
z)}else CZ.add(k),e==null||e.set(k,z);F.La.O0()};
A7=function(F,k){if(!k.Y.Y)return F.W?new AX(0,360,!1,"b"):y6;for(var z=!1,x=!1,D=g.l(k.Y.videoInfos),e=D.next();!e.done;e=D.next())oD(e.value)?z=!0:x=!0;z=z&&x;x=0;D=g.lw(F.YG.experiments,"html5_performance_cap_floor");D=F.YG.L?240:D;k=g.l(k.Y.videoInfos);for(e=k.next();!e.done;e=k.next()){var C=e.value;if(!z||!oD(C))if(e=HU(C.DQ,C.video.fps,F.U),C=C.video.qualityOrdinal,Math.max(e,D)>=C){x=C;break}}return new AX(0,x,!1,"b")};
VN6=function(F,k){var z=F.La.qB();return z.isInline()&&!k.sW?new AX(0,480,!1,"v"):F.YG.V("html5_remove_visibility_constraint_for_background_playbacks")&&$J(k)?y6:z.isBackground()&&Vj()/1E3>60&&!g.Vi(F.YG)?new AX(0,360,!1,"v"):y6};
Izp=function(F,k,z){if(F.YG.experiments.Ca("html5_disable_client_autonav_cap_for_onesie")&&k.fetchType==="onesie"||g.Vi(F.YG)&&(Yi(-1)>=1080||k.osid))return y6;var x=g.lw(F.YG.experiments,"html5_autonav_quality_cap"),D=g.lw(F.YG.experiments,"html5_autonav_cap_idle_secs");return x&&k.isAutonav&&Vj()/1E3>D?(z&&(x=U7n(F,z,x)),new AX(0,x,!1,"e")):y6};
U7n=function(F,k,z){if(F.V("html5_optimality_defaults_chooses_next_higher")&&z)for(F=k.Y.videoInfos,k=1;k<F.length;k++)if(F[k].video.qualityOrdinal<z)return F[k-1].video.qualityOrdinal;return z};
HAk=function(F,k){F.V("html5_log_media_perf_info")&&(F.La.UK("perfdb",P$5()),F.La.UK("sessionperfdb",Object.fromEntries(I3.entries())),F.La.UK("playbackperfdb",Object.fromEntries(F.U.entries())),F.La.UK("hwc",{nch:navigator.hardwareConcurrency},!0),k&&F.La.UK("mcdb",{itags:k.Y.videoInfos.filter(function(z){var x;return((x=z.L)==null?void 0:x.smooth)===!1}).map(function(z){return z.itag}).join("-")}))};
P$5=function(){return vB(MD(),function(F){return""+F})};
pZ=function(F){g.S.call(this);var k=this;this.provider=F;this.Y=-1;this.W=!1;this.L=-1;this.playerState=new g.CR;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.j=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.KS(this.send,6E4,this);this.U=!1;this.jsErrorCount=0;this.Pe={tX:function(){k.tX()}};
this.tX=function(){k.jsErrorCount++};
g.b(this,this.delay);window.addEventListener("error",this.tX);window.addEventListener("unhandledrejection",this.tX)};
az5=function(F){F.Y>=0||(F.provider.La.getVisibilityState()===3?F.W=!0:(F.Y=g.fA(F.provider),F.delay.start()))};
S45=function(F){if(!(F.L<0)){var k=g.fA(F.provider),z=k-F.j;F.j=k;F.playerState.state===8?F.playTimeSecs+=z:F.playerState.isBuffering()&&!g.n(F.playerState,16)&&(F.rebufferTimeSecs+=z)}};
bA5=function(F){var k;switch((k=F.YG.playerCanaryStage)==null?void 0:k.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"}};
d7D=function(F){return window.PressureObserver&&new window.PressureObserver(F)};
JAC=function(F){F=F===void 0?d7D:F;g.S.call(this);var k=this;try{this.U=F(function(x){k.L=x.at(-1)});
var z;this.j=(z=this.U)==null?void 0:z.observe("cpu",{sampleInterval:2E3}).catch(function(x){x instanceof DOMException&&(k.Y=x)})}catch(x){x instanceof DOMException&&(this.Y=x)}};
yAM=function(F){var k={},z=window.h5vcc;k.hwConcurrency=navigator.hardwareConcurrency;F.Y&&(k.cpe=F.Y.message);F.L&&(k.cpt=F.L.time,k.cps=F.L.state);if(z==null?0:z.cVal)k.cb2s=z.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),k.cb5s=z.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),k.cb30s=z.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return k};
Rtx=function(F){var k;g.O(function(z){switch(z.Y){case 1:return g.lD(z,2),g.c(z,F.j,4);case 4:g.sC(z,3);break;case 2:g.rI(z);case 3:(k=F.U)==null||k.disconnect(),g.Tp(z)}})};
Y45=function(F,k){k?gtR.test(F):(F=g.jl(F),Object.keys(F).includes("cpn"))};
MN9=function(F,k,z,x,D,e,C){var p={format:"RAW"},E={};if(AB(F)&&pg()){if(C){var X;((X=ntY.uaChPolyfill)==null?void 0:X.state.type)!==2?C=null:(C=ntY.uaChPolyfill.state.data.values,C={"Synth-Sec-CH-UA-Arch":C.architecture,"Synth-Sec-CH-UA-Model":C.model,"Synth-Sec-CH-UA-Platform":C.platform,"Synth-Sec-CH-UA-Platform-Version":C.platformVersion,"Synth-Sec-CH-UA-Full-Version":C.uaFullVersion});E=Object.assign(E,C);p.withCredentials=!0}(C=g.LX("EOM_VISITOR_DATA"))?E["X-Goog-EOM-Visitor-Id"]=C:x?E["X-Goog-Visitor-Id"]=
x:g.LX("VISITOR_DATA")&&(E["X-Goog-Visitor-Id"]=g.LX("VISITOR_DATA"));z&&(E["X-Goog-PageId"]=z);(x=k.t4)&&!K_(k)&&(E["X-Goog-AuthUser"]=x);D&&(E.Authorization="Bearer "+D);k.V("enable_datasync_id_header_in_web_vss_pings")&&k.F1&&k.datasyncId&&(E["X-YouTube-DataSync-Id"]=k.datasyncId);C||E["X-Goog-Visitor-Id"]||D||z||x?p.withCredentials=!0:k.V("html5_send_cpn_with_options")&&gtR.test(F)&&(p.withCredentials=!0)}Object.keys(E).length>0&&(p.headers=E);e&&(p.onFinish=e);return Object.keys(p).length>1?
p:null};
LtC=function(F,k,z,x,D,e,C,p){pg()&&z.token&&(F=el(F,{ctt:z.token,cttype:z.hV,mdx_environment:z.mdxEnvironment}));x.V("net_pings_low_priority")&&(k||(k={}),k.priority="low");e||p&&x.V("nwl_skip_retry")?(k==null?k={}:Y45(F,x.V("html5_assert_cpn_with_regex")),C?ie().sendAndWrite(F,k):ie().sendThenWrite(F,k,p)):k?(Y45(F,x.V("html5_assert_cpn_with_regex")),x.V("net_pings_use_fetch")?Ddn(F,k):g.tB(F,k)):g.MK(F,D)};
fz5=function(F){for(var k=[],z=0;z<F;z++){for(var x={},D=Math.floor(Math.random()*9*1E8)+1E8,e="",C=0;C<9;C++)e+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(Math.random()*52)];x.videoDecoderName=e;x.elapsedTimeMs=D;k.push(x)}return k};
KtD=function(F){return window.Profiler&&new window.Profiler(F)};
WtI=function(F){/[^a-zA-Z0-9;.!_-]/.test(F)&&(F=F.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return F};
EZ=function(F,k,z){z=z===void 0?KtD:z;g.S.call(this);this.sampleInterval=F;this.maxBufferSize=k;this.W=z;this.encoder=new C_;this.Y=[];this.U=0;FOk(this)};
FOk=function(F){var k=F.sampleInterval,z=F.maxBufferSize;if(k>0&&z>0&&!F.L&&F.U<1E7)try{F.j=F.W({sampleInterval:k,maxBufferSize:z});var x;(x=F.j)==null||x.addEventListener("samplebufferfull",function(){return g.O(function(D){if(D.Y==1)return g.c(D,F.stop(),2);FOk(F);g.Tp(D)})})}catch(D){F.L=WtI(D.message)}};
Xp=function(F,k){var z,x;return!!((z=window.h5vcc)==null?0:(x=z.settings)==null?0:x.set(F,k))};
oOD=function(){var F,k,z,x=(F=window.h5vcc)==null?void 0:(k=F.settings)==null?void 0:(z=k.getPersistentSettingAsString)==null?void 0:z.call(k,"cpu_usage_tracker_intervals");if(x!=null){var D;F=(D=JSON.parse(x))!=null?D:[];D=F.filter(function(X){return X.type==="total"}).map(function(X){return X.seconds});
k=g.l(kcx);for(z=k.next();!z.done;z=k.next())z=z.value,D.indexOf(z)===-1&&F.push({type:"total",seconds:z});var e,C;(e=window.h5vcc)==null||(C=e.settings)==null||C.set("cpu_usage_tracker_intervals_enabled",1);var p,E;(p=window.h5vcc)==null||(E=p.settings)==null||E.set("cpu_usage_tracker_intervals",JSON.stringify(F))}};
z8Y=function(){var F=window.H5vccPlatformService,k="";if(F&&F.has("dev.cobalt.coat.clientloginfo")&&(F=F.open("dev.cobalt.coat.clientloginfo",function(){}))){var z=F.send(new ArrayBuffer(0));
z&&(k=String.fromCharCode.apply(String,g.r(new Uint8Array(z))));F.close()}return k};
g.u6=function(F,k){g.S.call(this);var z=this;this.provider=F;this.logger=new g.C4("qoe");this.Y=new Map;this.sequenceNumber=1;this.S=NaN;this.fv="N";this.K=this.Vu=this.x0=this.t4=this.L=0;this.MD=this.l$=this.G=this.RU="";this.We=this.J4=NaN;this.vj=0;this.fJ=-1;this.Vz=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.mY=this.isEmbargoed=this.yh=this.isOffline=this.isBuffering=!1;this.ZR=[];this.Qh=null;this.UH=this.j=this.dH=this.B=!1;this.U=-1;this.NJ=!1;this.yf=new g.KS(this.y4G,750,this);this.U9=
this.adCpn=this.PR=this.contentCpn="";this.adFormat=void 0;this.m_=0;this.vR=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.P7=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.Xm=!1;this.uL=NaN;this.cR=0;this.qD=!1;this.Xf=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.RS=!1;this.Pe={mT:function(D){z.mT(D)},
XTG:function(){return z.W},
NV:function(){return z.contentCpn},
sVR:function(){return z.PR},
reportStats:function(){z.reportStats()},
pC4:function(){return z.Y.get("cat")||[]},
qL:function(D){return z.Y.get(D)||[]},
BMR:function(){return z.Y},
knt:function(){return z.Xf},
qIK:function(){return{adCpn:z.adCpn,U9:z.U9,adFormat:z.adFormat}}};
this.mp=this.provider.YG.V("html5_qoe_relaxed_reporting");var x=g.lw(this.provider.YG.experiments,"html5_qoe_proto_mock_length");x&&!qq.length&&(qq=fz5(x));g.b(this,this.yf);try{navigator.getBattery().then(function(D){z.Qh=D})}catch(D){}g.Nq(this,0,"vps",["N"]);
F.YG.Jp()&&(this.cR=(0,g.VE)(),this.uL=g.TE(function(){var D=(0,g.VE)(),e=D-z.cR;e>500&&z.UK("vmlock",{diff:e.toFixed()});z.cR=D},250));
F.La.Lp()&&k&&(this.Xf=k-Math.round(g.fA(F)*1E3));this.provider.videoData.m3&&(this.remoteControlMode=xqn[this.provider.videoData.m3]||0);this.provider.videoData.rI&&(k=yen(this.provider.videoData.rI),k==null?0:k.length)&&(this.remoteConnectedDevices=k);if(F.YG.Jp()||F.V("html5_log_cpu_info"))this.kG=new JAC,g.b(this,this.kG);k=g.lw(F.YG.experiments,"html5_js_self_profiler_sample_interval_ms");F=g.lw(F.YG.experiments,"html5_js_self_profiler_max_samples");k>0&&F>0&&(this.u$=new EZ(k,F),g.b(this,this.u$))};
wh=function(F,k,z){var x=F.Y.get(k);x?x.push(z):F.Y.set(k,[z])};
g.Nq=function(F,k,z,x){wh(F,z,k.toFixed(3)+":"+x.join(":"))};
iZD=function(F,k){var z=F.adCpn||F.provider.videoData.clientPlaybackNonce,x=F.provider.getCurrentTime(z);g.Nq(F,k,"cmt",[x.toFixed(3)]);x=F.provider.P8(z);if(F.W&&x*1E3>F.W.aD+100&&F.W){var D=F.W;z=D.isAd;x=x*1E3-D.aD;F.Bd=k*1E3-D.OpJ-x-D.Jht;D=(0,g.VE)()-x;k=F.Bd;x=F.provider.videoData;var e=x.isAd();if(z||e){e=(z?"ad":"video")+"_to_"+(e?"ad":"video");var C={};x.S&&(C.cttAuthInfo={token:x.S,videoId:x.videoId});C.startTime=D-k;Ll(e,C);g.MF({targetVideoId:x.videoId,targetCpn:x.clientPlaybackNonce},
e);nl("pbs",D,e)}else D=F.provider.La.g$(),D.S!==x.clientPlaybackNonce?(D.W=x.clientPlaybackNonce,D.L=k):x.wI()||g.yI(new g.Fa("CSI timing logged before gllat",{cpn:x.clientPlaybackNonce}));F.UK("gllat",{l:F.Bd.toFixed(),prev_ad:+z});delete F.W}};
mO=function(F,k){k=k===void 0?NaN:k;k=k>=0?k:g.fA(F.provider);var z=F.provider.La.lM(),x=z.lW-(F.J4||0);x>0&&g.Nq(F,k,"bwm",[x,(z.N_-(F.We||0)).toFixed(3)]);isNaN(F.J4)&&z.lW&&F.isOffline&&F.mT(!1);F.J4=z.lW;F.We=z.N_;isNaN(z.bandwidthEstimate)||g.Nq(F,k,"bwe",[z.bandwidthEstimate.toFixed(0)]);F.provider.YG.Jp()&&Object.keys(z.Y).length!==0&&F.UK("bwinfo",z.Y);if(F.provider.YG.Jp()||F.provider.YG.V("html5_log_meminfo"))x=XPn(),Object.values(x).some(function(e){return e!==void 0})&&F.UK("meminfo",
x);
if(F.provider.YG.Jp()||F.provider.YG.V("html5_log_cpu_info")){var D;(x=(D=F.kG)==null?void 0:yAM(D))&&Object.values(x).some(function(e){return e!=null})&&F.UK("cpuinfo",x)}F.u$&&F.UK("jsprof",F.u$.flush());
F.Qh&&g.Nq(F,k,"bat",[F.Qh.level,F.Qh.charging?"1":"0"]);D=F.provider.La.getVisibilityState();F.fJ!==D&&(g.Nq(F,k,"vis",[D]),F.fJ=D);iZD(F,k);(D=Dq5(F.provider))&&D!==F.vj&&(g.Nq(F,k,"conn",[D]),F.vj=D);$qH(F,k,z)};
$qH=function(F,k,z){if(!isNaN(z.uO)){var x=z.uO;z.L<x&&(x=z.L);g.Nq(F,k,"bh",[x.toFixed(3)])}};
jIR=function(F,k,z){g.iJ(F.provider.YG,g.dy(F.provider.videoData)).then(function(x){var D=!1;if(k.includes("&dt=")||k.includes("&cotn=")){if(F.provider.YG.V("kevlar_woffle")||F.provider.YG.V("qoe_nwl_downloads"))D=!0}else F.provider.YG.V("qoe_with_networkless")&&(D=!0);var e=F.provider.YG.V("qoe_send_and_write"),C=F.provider.YG;x=MN9(k,C,F.provider.YG.pageId,F.provider.YG.sendVisitorIdHeader?F.provider.videoData.visitorData:void 0,x);C.V("html5_simplify_pings")&&(x=x||{});x?(x.method="POST",x.postBody=
z,LtC(k,x,{token:F.provider.videoData.S,hV:F.provider.videoData.qZ,mdxEnvironment:F.provider.videoData.mdxEnvironment},C,void 0,D,e&&F.yh)):D?(D=F.provider.YG.V("networkless_ajax"),C={method:"POST",postBody:z},e&&F.yh?ie().sendAndWrite(k,C):D?g.tB(k,{method:"POST",postBody:z}):ie().sendThenWrite(k,C)):(e=z,e=e===void 0?"":e,$zY(k,e)||g.MK(k,void 0,void 0,void 0,e))})};
e8C=function(F){if(!F.provider.YG.V("html5_qoe_no_len_check")){for(var k=0,z=g.l(F.Y.entries()),x=z.next();!x.done;x=z.next()){var D=g.l(x.value);x=D.next().value;D=D.next().value;k+=x.length+Number(v8(D,function(e,C){return e+C.length},0))}k>96E3&&(new g.KS(F.reportStats,0,F)).start()}};
C6H=function(F){F.provider.videoData.ZR&&Tc(F,"prefetch");F.provider.videoData.vj&&F.UK("reload",{r:F.provider.videoData.reloadReason,ct:F.provider.videoData.vj});F.provider.videoData.vR&&Tc(F,"monitor");F.provider.videoData.isLivePlayback&&Tc(F,"live");kH&&Tc(F,"streaming");F.provider.videoData.m3&&F.UK("ctrl",{mode:F.provider.videoData.m3},!0);if(F.provider.videoData.rI){var k=F.provider.videoData.rI.replace(/,/g,"_");F.UK("ytp",{type:k},!0)}F.provider.videoData.Tv&&(k=F.provider.videoData.Tv.replace(/,/g,
"."),F.UK("ytrexp",{ids:k},!0));var z=F.provider.videoData;k=F.provider.YG.V("enable_white_noise")||F.provider.YG.V("enable_webgl_noop");z=g.N8(z)||g.Zx(z)||g.vP(z)||g.cP(z);(k||z)&&(k=(0,g.l6)())&&F.Y.set("gpu",[k]);gy(F.provider.videoData)&&g.Nq(F,g.fA(F.provider),"dt",["1"]);F.provider.YG.Jp()&&(k=(0,g.VE)()-F.provider.YG.Nk,F.UK("playerage",{secs:Math.pow(1.6,Math.round(Math.log(k/1E3)/Math.log(1.6))).toFixed()}));F.j=!0;F.S=g.TE(function(){F.reportStats()},1E4)};
phk=function(F,k,z){var x=g.fA(F.provider);A7D(F,x,k,0,z);mO(F,x);e8C(F)};
A7D=function(F,k,z,x,D){var e=F.provider.YG.Y.cbrver;F.provider.YG.Y.cbr==="Chrome"&&/^96[.]/.test(e)&&z==="net.badstatus"&&/rc\.500/.test(D)&&EOx(F,3);F.provider.YG.V("html5_use_ump")&&/b248180278/.test(D)&&EOx(F,4);e=F.provider.getCurrentTime(F.adCpn||F.provider.videoData.clientPlaybackNonce);x=x===1?"fatal":"";z=[z,x,e.toFixed(3)];x&&(D+=";a6s."+uZ());D&&z.push(Xhn(D));g.Nq(F,k,"error",z);F.j=!0};
FJC=function(F,k){var z=g.fA(F.provider);if(!F.provider.YG.experiments.Ca("html5_refactor_sabr_video_format_selection_logging")||k.Y.id!==F.RU){var x=[k.Y.id,k.L,F.RU,k.reason];k.token&&x.push(k.token);g.Nq(F,z,"vfs",x);F.RU=k.Y.id;x=F.provider.La.getPlayerSize();if(x.width>0&&x.height>0){x=[Math.round(x.width),Math.round(x.height)];var D=g.L_();D>1&&x.push(D);g.Nq(F,z,"view",x)}F.dH||(F.provider.YG.Jp()&&Tc(F,"rqs2"),F.provider.videoData.Y&&Tf(F.provider.videoData.Y)&&F.Y.set("preload",["1"]));F.dH=
!0;F.j=!0}k.reason==="m"&&++F.m_===100&&EOx(F,2);g.Nq(F,z,"vps",[F.fv]);F.mp||F.reportStats(z)};
qZk=function(F){F.U>=0||(F.provider.YG.Av||F.provider.La.getVisibilityState()!==3?F.U=g.fA(F.provider):F.NJ=!0)};
NhM=function(F,k,z,x){if(z!==F.fv){F.mp||k<F.L||(F.fv==="PL"?F.playTimeSecs+=k-F.L:F.fv==="B"&&F.isBuffering&&(F.isBuffering=!1,F.rebufferTimeSecs+=k-F.t4,!F.mY&&F.rebufferTimeSecs>=10&&F.playTimeSecs<=180&&(F.Y.set("qoealert",["1"]),F.mY=!0)),z!=="B"||F.fv!=="PL"&&F.fv!=="PB"||(F.isBuffering=!0),F.L=k);F.fv==="PL"&&(z==="B"||z==="S")||F.provider.YG.Jp()?mO(F,k):(F.Xm||z!=="PL"||(F.Xm=!0,$qH(F,k,F.provider.La.lM())),iZD(F,k));z==="PL"&&g.WN(F.yf);var D=[z];z==="S"&&x&&D.push("ss."+x);g.Nq(F,k,"vps",
D);F.fv=z;F.t4=k;F.L=k;F.j=!0}};
WeM=function(F,k,z){if(F.provider.YG.experiments.Ca("html5_refactor_sabr_audio_format_selection_logging")){k=z.Y;var x=[k.audio&&k.video?k.QK?k.QK:"":k.id];k.ZD&&k.ZD.id&&x.push(k.ZD.id);k=x.join(";");k!==F.G&&(x=[k,F.G,z.reason],z.token&&x.push(z.token),g.Nq(F,g.fA(F.provider),"afs",x),F.G=k)}else z.Y.id!==F.G&&(x=[z.Y.id,F.G,z.reason],z.token&&x.push(z.token),g.Nq(F,k,"afs",x),F.G=z.Y.id)};
Tc=function(F,k){wh(F,"cat",k)};
Qm=function(F,k,z,x,D,e){var C=g.fA(F.provider);z!==1&&z!==3&&z!==5||g.Nq(F,C,"vps",[F.fv]);wh(F,"xvt","t."+C.toFixed(3)+";m."+e.toFixed(3)+";g."+k+";tt."+z+";np.0;c."+x+";d."+D)};
EOx=function(F,k){F.UH||(wh(F,"fcnz",""+k),F.UH=!0)};
Xhn=function(F){/[^a-zA-Z0-9;.!_-]/.test(F)&&(F=F.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return F};
sZ=function(F){this.provider=F;this.G=!1;this.Y=0;this.j=-1;this.rV=NaN;this.U=0;this.segments=[];this.S=this.W=0;this.previouslyEnded=!1;this.K=this.provider.La.getVolume();this.B=this.provider.La.isMuted()?1:0;this.L=h7(this.provider)};
rh=function(F){F.L.startTime=F.U;F.L.endTime=F.Y;var k=!1;F.segments.length&&g.YG(F.segments).isEmpty()?(F.segments[F.segments.length-1].previouslyEnded&&(F.L.previouslyEnded=!0),F.segments[F.segments.length-1]=F.L,k=!0):F.segments.length&&F.L.isEmpty()||(F.segments.push(F.L),k=!0);k?F.L.endTime===0&&(F.previouslyEnded=!1):F.L.previouslyEnded&&(F.previouslyEnded=!0);F.W+=F.Y-F.U;F.L=h7(F.provider);F.L.previouslyEnded=F.previouslyEnded;F.previouslyEnded=!1;F.U=F.Y};
whH=function(F){upY(F);F.S=g.TE(function(){F.update()},100);
F.rV=g.fA(F.provider);F.L=h7(F.provider)};
upY=function(F){g.QL(F.S);F.S=NaN};
mqY=function(F,k,z){z-=F.rV;return k===F.Y&&z>.5};
Thn=function(F,k,z,x){this.YG=k;this.uL=z;this.segments=[];this.experimentIds=[];this.u$=this.RS=this.isFinal=this.delayThresholdMet=this.mY=this.Vz=this.autoplay=this.autonav=!1;this.MD="yt";this.S=[];this.G=this.K=null;this.sendVisitorIdHeader=this.NJ=!1;this.B=this.pageId="";this.W=z==="watchtime";this.U=z==="playback";this.mp=z==="atr";this.zM=z==="engage";this.sendVisitorIdHeader=!1;this.uri=this.mp?"/api/stats/"+z:"//"+k.Cs+"/api/stats/"+z;x&&(this.RS=x.fs,x.rtn&&(this.G=x.rtn),this.W?(this.playerState=
x.state,x.rti>0&&(this.K=x.rti)):(this.Av=x.mos,this.Ki=x.volume,x.at&&(this.adType=x.at)),x.autonav&&(this.autonav=x.autonav),x.inview!=null&&(this.We=x.inview),x.size&&(this.vj=x.size),x.playerwidth&&(this.playerWidth=x.playerwidth),x.playerheight&&(this.playerHeight=x.playerheight));this.P7=g.Jg(k.Y);this.B=oB(k.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.B==="all"||this.B==="once")this.Xm=g.Jg(k.MD);this.y6=k.NJ;this.experimentIds=QQn(k.experiments);this.RU=k.mY;this.MD=k.Qh;this.region=
k.region;this.userAge=k.userAge;this.vR=k.Ji;this.yf=Vj();this.sendVisitorIdHeader=k.sendVisitorIdHeader;this.Xf=k.V("vss_pings_using_networkless")||k.V("kevlar_woffle");this.H8=k.V("vss_final_ping_send_and_write");this.yh=k.V("vss_use_send_and_write");this.pageId=k.pageId;this.Nk=k.V("vss_playback_use_send_and_write");k.livingRoomAppMode&&(this.livingRoomAppMode=k.livingRoomAppMode);this.xY=k.j&&k.V("embeds_append_synth_ch_headers");g.tJ(k)&&(this.l$=k.mp);g.N5(g.aB(k))&&this.S.push(1);this.accessToken=
g.dy(F);F.zz[this.uL]?this.j=F.zz[this.uL]:F.zz.playback&&(this.j=F.zz.playback);this.adFormat=F.adFormat;this.adQueryId=F.adQueryId;this.autoplay=bx(F);this.U&&(this.Vz=(F.V("html5_enable_log_server_autoplay")||F.V("enable_cleanup_masthead_autoplay_hack_fix"))&&F.Mm&&Ik(F)==="adunit"?!0:!1);this.autonav=F.isAutonav||this.autonav;this.contentVideoId=ak(F);this.clientPlaybackNonce=F.clientPlaybackNonce;this.mY=F.Mk;F.S&&(this.PR=F.S,this.UH=F.qZ);F.mdxEnvironment&&(this.mdxEnvironment=F.mdxEnvironment);
this.Y=F.u$;this.qD=F.qD;F.L&&(this.ZR=F.L.itag,F.j&&F.j.itag!==this.ZR&&(this.dH=F.j.itag));F.Y&&Tf(F.Y)&&(this.offlineDownloadUserChoice="1");this.eventLabel=Ik(F);this.u$=F.zM?!1:F.Av;this.m_=F.Ts;if(k=lx(F))this.Om=k;this.YP=F.Wh;this.partnerId=F.partnerId;this.eventId=F.eventId;this.playlistId=F.rP||F.playlistId;this.SW=F.SW;this.m3=F.m3;this.rI=F.rI;this.qo=F.qo;this.subscribed=F.subscribed;this.videoId=F.videoId;this.videoMetadata=F.videoMetadata;this.visitorData=F.visitorData;this.osid=F.osid;
this.pI=F.pI;this.referrer=F.referrer;this.vZ=F.KO||F.vZ;this.kG=F.oh;this.I4=F.I4;this.userGenderAge=F.userGenderAge;this.EZ=F.EZ;this.embedsRct=F.embedsRct;this.embedsRctn=F.embedsRctn;g.tJ(this.YG)&&F.mutedAutoplay&&(F.mutedAutoplayDurationMode===2&&F.limitedPlaybackDurationInSeconds===0&&F.endSeconds===0?this.S.push(7):this.S.push(2));F.isEmbedsShortsMode(new g.BB(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.S.push(3);g.D9(F)&&this.S.push(4);this.J4=F.rC;F.compositeLiveIngestionOffsetToken&&
(this.compositeLiveIngestionOffsetToken=F.compositeLiveIngestionOffsetToken)};
lUI=function(F,k){var z=F.sendVisitorIdHeader?F.visitorData:void 0;return g.iJ(F.YG,F.accessToken).then(function(x){return MN9(F.uri,F.YG,F.pageId,z,x,k,F.xY)})};
sIa=function(F,k){return function(){F.YG.V("html5_simplify_pings")?(F.Y=F.cR,F.fJ=k(),F.yf=0,F.send()):lUI(F).then(function(z){var x=QIn(F);x.cmt=x.len;x.lact="0";var D=k().toFixed(3);x.rt=Number(D).toString();x=g.oW(F.uri,x);F.YG.V("vss_through_gel_double")&&h8a(x);F.Xf?(z==null&&(z={}),F.yh?ie().sendAndWrite(x,z):ie().sendThenWrite(x,z)):z?g.tB(x,z):g.MK(x)})}};
QIn=function(F){var k={ns:F.MD,el:F.eventLabel,cpn:F.clientPlaybackNonce,ver:2,cmt:F.L(F.Y),fmt:F.ZR,fs:F.RS?"1":"0",rt:F.L(F.fJ),adformat:F.adFormat,content_v:F.contentVideoId,euri:F.y6,lact:F.yf,live:F.Om,cl:(743363614).toString(),mos:F.Av,state:F.playerState,volume:F.Ki};F.subscribed&&(k.subscribed="1");Object.assign(k,F.P7);F.B==="all"?Object.assign(k,F.Xm):F.B==="once"&&F.U&&Object.assign(k,F.Xm);F.autoplay&&(k.autoplay="1");F.Vz&&(k.sautoplay="1");F.mY&&(k.dni="1");!F.W&&F.l$&&(k.epm=r7x[F.l$]);
F.isFinal&&(k["final"]="1");F.u$&&(k.splay="1");F.qD&&(k.delay=F.qD);F.RU&&(k.hl=F.RU);F.region&&(k.cr=F.region);F.userGenderAge&&(k.uga=F.userGenderAge);F.userAge!==void 0&&F.vR&&(k.uga=F.vR+F.userAge);F.cR!==void 0&&(k.len=F.L(F.cR));!F.W&&F.experimentIds.length>0&&(k.fexp=F.experimentIds.toString());F.G!==null&&(k.rtn=F.L(F.G));F.vZ&&(k.feature=F.vZ);F.m3&&(k.ctrl=F.m3);F.rI&&(k.ytr=F.rI);F.dH&&(k.afmt=F.dH);F.offlineDownloadUserChoice&&(k.ODUC=F.offlineDownloadUserChoice);F.Qh&&(k.lio=F.L(F.Qh));
F.W?(k.idpj=F.m_,k.ldpj=F.YP,F.delayThresholdMet&&(k.dtm="1"),F.K!=null&&(k.rti=F.L(F.K)),F.EZ&&(k.ald=F.EZ),F.compositeLiveIngestionOffsetToken&&(k.clio=F.compositeLiveIngestionOffsetToken)):F.adType!==void 0&&(k.at=F.adType);F.vj&&(F.U||F.W)&&(k.size=F.vj);F.U&&F.S.length&&(k.pbstyle=F.S.join(","));F.We!=null&&(F.U||F.W)&&(k.inview=F.L(F.We));F.W&&(k.volume=Bh(F,g.tW(F.segments,function(x){return x.volume})),k.st=Bh(F,g.tW(F.segments,function(x){return x.startTime})),k.et=Bh(F,g.tW(F.segments,function(x){return x.endTime})),
t9(F.segments,function(x){return x.playbackRate!==1})&&(k.rate=Bh(F,g.tW(F.segments,function(x){return x.playbackRate}))),t9(F.segments,function(x){return x.Y!=="-"})&&(k.als=g.tW(F.segments,function(x){return x.Y}).join(",")),t9(F.segments,function(x){return x.previouslyEnded})&&(k.pe=g.tW(F.segments,function(x){return""+ +x.previouslyEnded}).join(",")));
k.muted=Bh(F,g.tW(F.segments,function(x){return x.muted?1:0}));
t9(F.segments,function(x){return x.visibilityState!==0})&&(k.vis=Bh(F,g.tW(F.segments,function(x){return x.visibilityState})));
t9(F.segments,function(x){return x.connectionType!==0})&&(k.conn=Bh(F,g.tW(F.segments,function(x){return x.connectionType})));
t9(F.segments,function(x){return x.L!==0})&&(k.blo=Bh(F,g.tW(F.segments,function(x){return x.L})));
t9(F.segments,function(x){return!!x.U})&&(k.blo=g.tW(F.segments,function(x){return x.U}).join(","));
t9(F.segments,function(x){return!!x.compositeLiveStatusToken})&&(k.cbs=g.tW(F.segments,function(x){return x.compositeLiveStatusToken}).join(","));
t9(F.segments,function(x){return x.j!=="-"})&&(k.cc=g.tW(F.segments,function(x){return x.j}).join(","));
t9(F.segments,function(x){return x.clipId!=="-"})&&(k.clipid=g.tW(F.segments,function(x){return x.clipId}).join(","));
if(t9(F.segments,function(x){return!!x.audioId})){var z="au";
F.U&&(z="au_d");k[z]=g.tW(F.segments,function(x){return x.audioId}).join(",")}pg()&&F.PR&&(k.ctt=F.PR,k.cttype=F.UH,k.mdx_environment=F.mdxEnvironment);
F.zM&&(k.etype=F.t4!==void 0?F.t4:0);F.kG&&(k.uoo=F.kG);F.livingRoomAppMode&&F.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(k.clram=Bhx[F.livingRoomAppMode]||F.livingRoomAppMode);F.j?Gc5(F,k):(k.docid=F.videoId,k.referrer=F.referrer,k.ei=F.eventId,k.of=F.pI,k.osid=F.osid,k.vm=F.videoMetadata,F.adQueryId&&(k.aqi=F.adQueryId),F.autonav&&(k.autonav="1"),F.playlistId&&(k.list=F.playlistId),F.qo&&(k.ssrt="1"),F.I4&&(k.upt=F.I4));F.U&&(F.embedsRct&&(k.rct=F.embedsRct),F.embedsRctn&&(k.rctn=
F.embedsRctn),F.compositeLiveIngestionOffsetToken&&(k.clio=F.compositeLiveIngestionOffsetToken));F.J4&&(k.host_cpn=F.J4);return k};
Gc5=function(F,k){if(k&&F.j){var z=new Set(["q","feature","mos"]),x=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),D=new Set(["aqi","autonav","list","ssrt","upt"]);F.j.ns==="3pp"&&(k.ns="3pp");for(var e=g.l(Object.keys(F.j)),C=e.next();!C.done;C=e.next())C=C.value,x.has(C)||z.has(C)||D.has(C)&&!F.j[C]||(k[C]=F.j[C])}};
Bh=function(F,k){return g.tW(k,F.L).join(",")};
h8a=function(F){F.indexOf("watchtime")!==-1&&g.NA("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:F}})};
Uqn=function(F,k){F.attestationResponse&&lUI(F).then(function(z){z=z||{};z.method="POST";z.postParams={atr:F.attestationResponse};F.Xf?F.yh?ie().sendAndWrite(k,z):ie().sendThenWrite(k,z):g.tB(k,z)})};
Gc=function(F){g.S.call(this);this.provider=F;this.S="paused";this.W=NaN;this.G=[10,10,10,40];this.K=this.B=0;this.PR=this.mp=this.t4=this.Qh=this.U=!1;this.L=this.j=NaN;this.logger=new g.C4("vss");this.Y=new sZ(F)};
P6n=function(F){if(!F.U){F.provider.videoData.RM===16623&&g.yI(Error("Playback for EmbedPage"));var k=UZ(F,"playback");F.G=t65(F);whH(F.Y);k.G=t7(F);F.L>0&&(k.Y-=F.L);k.send();if(F.provider.videoData.dK){k=F.provider.YG;var z=F.provider.videoData,x={html5:"1",video_id:z.videoId,cpn:z.clientPlaybackNonce,ei:z.eventId,ptk:z.dK,oid:z.IB,ptchn:z.V0,pltype:z.G_,content_v:ak(z)};z.Iq&&Object.assign(x,{m:z.Iq});k=g.oW(k.e5+"ptracking",x);ZZI(F,k)}F.provider.videoData.qD||(vOY(F),c7I(F),F.Rj());F.U=!0;F=
F.Y;F.Y=F.P8();F.rV=g.fA(F.provider);!(F.U===0&&F.Y<5)&&F.Y-F.U>2&&(F.U=F.Y);F.G=!0}};
t65=function(F){var k=F.provider.videoData.Ts,z=F.provider.videoData.Wh,x=[10+k,10,10,40+z-k,40],D,e=(D=F.provider.videoData.getPlayerResponse())==null?void 0:D.playbackTracking,C=e==null?void 0:e.videostatsScheduledFlushWalltimeSeconds;D=e==null?void 0:e.videostatsDefaultFlushIntervalSeconds;if(!(C&&C.length>0&&D))return F.logger.Y(347111855,"Unexpected scheduled pings config "+C+" "+D),x;k=[C[0]+k].concat(g.r(C.slice(1).map(function(p,E){return p-C[E]})),[D+z-k,
D]);return k.some(function(p){return p<0})?(F.logger.Y(347111855,"Neg vss scheduled pings "+C+" "+D),x):k};
t7=function(F,k){k=k===void 0?NaN:k;var z=g.fA(F.provider);k=isNaN(k)?z:k;k=Math.ceil(k);var x=F.G[F.B];F.B+1<F.G.length&&F.B++;var D=k+x;F.W=g.mz(function(){if(!F.z4()){F.W=NaN;var e=OZR(F),C=V6I(F,e);C.K=D;var p=F.K>1E3;!(e.length>1)&&e[0].isEmpty()||p||(C.G=t7(F,D));C.send();F.K++}},(D-z)*1E3);
return F.j=D};
ZU=function(F){g.lP(F.W);F.W=NaN};
OZR=function(F){F.Y.update();F=F.Y;F.segments.length&&F.Y===F.U||rh(F);var k=F.segments;F.segments=[];return k};
UZ=function(F,k){var z=IUC(F.provider);Object.assign(z,{state:F.S});k=new Thn(F.provider.videoData,F.provider.YG,k,z);k.Y=F.provider.La.P8();z=F.provider.videoData.clientPlaybackNonce;k.Y=F.provider.La.qb(z);F.provider.videoData.isLivePlayback||(k.cR=F.provider.La.getDuration(z));F.provider.videoData.Y&&(z=F.provider.videoData.Y.B7(k.Y))&&(k.Qh=z-k.Y,F.provider.YG.V("html5_disable_live_dvr_shrink_for_cdm_vss")&&Jb(F.provider.videoData)&&(k.Y+=F.provider.La.Hj(),k.Qh-=F.provider.La.Hj()));k.fJ=g.fA(F.provider);
k.segments=[h7(F.provider)];return k};
V6I=function(F,k){var z=UZ(F,"watchtime");HZx(F)&&(z.delayThresholdMet=!0,F.t4=!0);if(F.L>0){for(var x=g.l(k),D=x.next();!D.done;D=x.next())D=D.value,D.startTime-=F.L,D.endTime-=F.L;z.Y-=F.L}else z.Y=F.Y.uS();z.segments=k;return z};
vh=function(F,k){var z=aUa(F,!isNaN(F.j));k&&(F.j=NaN);return z};
aUa=function(F,k){var z=V6I(F,OZR(F));!isNaN(F.j)&&k&&(z.K=F.j);return z};
HZx=function(F){var k;if(k=F.provider.videoData.isLoaded()&&F.provider.videoData.qD&&F.U&&!F.t4)k=F.Y,k=k.W+k.P8()-k.U>=F.provider.videoData.qD;return!!k};
vOY=function(F){F.provider.videoData.youtubeRemarketingUrl&&!F.mp&&(ZZI(F,F.provider.videoData.youtubeRemarketingUrl),F.mp=!0)};
c7I=function(F){F.provider.videoData.googleRemarketingUrl&&!F.PR&&(ZZI(F,F.provider.videoData.googleRemarketingUrl),F.PR=!0)};
SZC=function(F){if(!F.z4()&&F.U){F.S="paused";var k=vh(F);k.isFinal=!0;k.send();F.dispose()}};
bZC=function(F,k){if(!F.z4())if(g.n(k.state,2)||g.n(k.state,512)){if(F.S="paused",g.hI(k,2)||g.hI(k,512))g.hI(k,2)&&(F.Y.previouslyEnded=!0),F.U&&(ZU(F),vh(F).send(),F.j=NaN)}else if(g.n(k.state,8)){F.S="playing";var z=F.U&&isNaN(F.W)?t7(F):NaN;if(!isNaN(z)&&(Qo(k,64)<0||Qo(k,512)<0)){var x=aUa(F,!1);x.G=z;x.send()}g.hI(k,16)&&k.state.seekSource===58&&(F.Y.previouslyEnded=!0)}else F.S="paused"};
dqk=function(F,k,z){if(!F.Qh){z||(z=UZ(F,"atr"));z.attestationResponse=k;try{z.send()}catch(x){if(x.message!=="Unknown Error")throw x;}F.Qh=!0}};
ZZI=function(F,k){var z=F.provider.YG;g.iJ(F.provider.YG,g.dy(F.provider.videoData)).then(function(x){var D=F.provider.YG.pageId,e=F.provider.YG.sendVisitorIdHeader?F.provider.videoData.visitorData:void 0,C=F.provider.YG.V("vss_pings_using_networkless")||F.provider.YG.V("kevlar_woffle"),p=F.provider.YG.V("allow_skip_networkless");x=MN9(k,z,D,e,x);LtC(k,x,{token:F.provider.videoData.S,hV:F.provider.videoData.qZ,mdxEnvironment:F.provider.videoData.mdxEnvironment},z,void 0,C&&!p,!1,!0)})};
J79=function(){this.endTime=this.startTime=-1;this.j="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.L=0;this.compositeLiveStatusToken=this.U=void 0;this.volume=this.connectionType=0;this.muted=!1;this.Y=this.clipId="-";this.previouslyEnded=!1};
ch=function(F,k,z){this.videoData=F;this.YG=k;this.La=z;this.Y=void 0};
g.fA=function(F){return y7n(F)()};
y7n=function(F){if(!F.Y){var k=g.FY(function(x){var D=(0,g.VE)();x&&D<=631152E6&&(F.La.UK("ytnerror",{issue:28799967,value:""+D}),D=(new Date).getTime()+2);return D},F.YG.V("html5_validate_yt_now")),z=k();
F.Y=function(){return Math.round(k()-z)/1E3};
F.La.XX()}return F.Y};
IUC=function(F){var k=F.La.gM()||{};k.fs=F.La.pu();k.volume=F.La.getVolume();k.muted=F.La.isMuted()?1:0;k.mos=k.muted;k.clipid=F.La.Ms();var z;k.playerheight=((z=F.La.getPlayerSize())==null?void 0:z.height)||0;var x;k.playerwidth=((x=F.La.getPlayerSize())==null?void 0:x.width)||0;F=F.videoData;z={};F.L&&(z.fmt=F.L.itag,F.j&&(F.Vz?F.j.itag!==F.L.itag:F.j.itag!=F.L.itag)&&(z.afmt=F.j.itag));z.ei=F.eventId;z.list=F.playlistId;z.cpn=F.clientPlaybackNonce;F.videoId&&(z.v=F.videoId);F.mA&&(z.infringe=1);
(F.zM?0:F.Av)&&(z.splay=1);(x=lx(F))&&(z.live=x);F.Mm&&(z.sautoplay=1);F.k9&&(z.autoplay=1);F.SW&&(z.sdetail=F.SW);F.partnerId&&(z.partnerid=F.partnerId);F.osid&&(z.osid=F.osid);F.DM&&(z.cc=g.tGk(F.DM));return Object.assign(k,z)};
Dq5=function(F){var k=XuR();if(k)return R85[k]||R85.other;if(g.Vi(F.YG)){F=navigator.userAgent;if(/[Ww]ireless[)]/.test(F))return 3;if(/[Ww]ired[)]/.test(F))return 30}return 0};
h7=function(F){var k=new J79,z;k.j=((z=IUC(F).cc)==null?void 0:z.toString())||"-";k.playbackRate=F.La.getPlaybackRate();z=F.La.getVisibilityState();z!==0&&(k.visibilityState=z);F.YG.dH&&(k.L=1);k.U=F.videoData.sI;k.compositeLiveStatusToken=F.videoData.compositeLiveStatusToken;z=F.La.getAudioTrack();z.ZD&&z.ZD.id&&z.ZD.id!=="und"&&(k.audioId=z.ZD.id);k.connectionType=Dq5(F);k.volume=F.La.getVolume();k.muted=F.La.isMuted();k.clipId=F.La.Ms()||"-";k.Y=F.videoData.c9||"-";return k};
g.Ph=function(F,k){g.S.call(this);var z=this;this.provider=F;this.j=!1;this.U=new Map;this.fv=new g.CR;this.Pe={b0$:function(){return z.qoe},
CBp:function(){return z.Y},
j9U:function(){return z.L}};
this.provider.videoData.ut()&&!this.provider.videoData.VH&&(this.Y=new Gc(this.provider),this.Y.L=this.provider.videoData.m_/1E3,g.b(this,this.Y),this.qoe=new g.u6(this.provider,k),g.b(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.v5=this.provider.videoData.clientPlaybackNonce)&&this.U.set(this.v5,this.Y));if(F.YG.playerCanaryState==="canary"||F.YG.playerCanaryState==="holdback")this.L=new pZ(this.provider),g.b(this,this.L)};
gO5=function(F){return!!F.Y&&!!F.qoe};
OZ=function(F){F.L&&az5(F.L);F.qoe&&qZk(F.qoe)};
YZM=function(F){if(F.qoe){F=F.qoe;for(var k=F.provider.videoData,z=F.provider.YG,x=g.l(z.BF),D=x.next();!D.done;D=x.next())Tc(F,D.value);if(F.provider.V("html5_enable_qoe_cat_list"))for(x=g.l(k.OE),D=x.next();!D.done;D=x.next())Tc(F,D.value);else k.BF&&Tc(F,F.provider.videoData.BF);k.oS()&&(x=k.Y,p9(k)&&Tc(F,"manifestless"),x&&tQ(x)&&Tc(F,"live-segment-"+tQ(x).toFixed(1)));$J(k)?Tc(F,"sabr"):F.OQ(q8(k));if(yT(k)||k.w3())k.w3()&&Tc(F,"ssa"),Tc(F,"lifa");Jb(k)&&Tc(F,"cdm");k.gatewayExperimentGroup&&
(x=k.gatewayExperimentGroup,x==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?x="spkadtrt":x==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(x="spkadctrl"),Tc(F,x));z.Qh!=="yt"&&F.Y.set("len",[k.lengthSeconds.toFixed(2)]);k.cotn&&!gy(k)&&F.mT(!0);z.Jp()&&(k=z8Y())&&F.UK("cblt",{m:k});if(z.V("html5_log_screen_diagonal")){z=F.UK;var e;k=((e=window.H5vccScreen)==null?0:e.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;z.call(F,"cbltdiag",{v:k})}}};
nOa=function(F){if(F.provider.La.Lp()){if(F.j)return;F.j=!0}F.Y&&P6n(F.Y);if(F.L){F=F.L;var k=g.fA(F.provider);F.Y<0&&(F.Y=k,F.delay.start());F.L=k;F.j=k}};
M6H=function(F,k){F.Y&&(F=F.Y,k===58?F.Y.update():F.U&&(ZU(F),vh(F).send(),F.j=NaN))};
LOH=function(F,k){if(g.hI(k,1024)||g.hI(k,512)||g.hI(k,4)){if(F.L){var z=F.L;z.L>=0||(z.Y=-1,z.delay.stop())}F.qoe&&(z=F.qoe,z.B||(z.U=-1))}if(F.provider.videoData.enableServerStitchedDai&&F.v5){var x;(x=F.U.get(F.v5))==null||bZC(x,k)}else F.Y&&bZC(F.Y,k);if(F.qoe){x=F.qoe;z=k.state;var D=g.fA(x.provider),e=x.getPlayerState(z);NhM(x,D,e,z.seekSource||void 0);e=z.YA;g.n(z,128)&&e&&(e.FH=e.FH||"",A7D(x,D,e.errorCode,e.Oy,e.FH));(g.n(z,2)||g.n(z,128))&&x.reportStats(D);z.isPlaying()&&!x.B&&(x.U>=0&&
x.Y.set("user_intent",[x.U.toString()]),x.B=!0);e8C(x)}F.L&&(x=F.L,S45(x),x.playerState=k.state,x.L>=0&&g.hI(k,16)&&x.seekCount++,k.state.isError()&&x.send());F.provider.La.Lp()&&(F.fv=k.state)};
fUp=function(F){F.L&&F.L.send();if(F.qoe){var k=F.qoe;if(k.j){k.fv==="PL"&&(k.fv="N");var z=g.fA(k.provider);g.Nq(k,z,"vps",[k.fv]);k.B||(k.U>=0&&k.Y.set("user_intent",[k.U.toString()]),k.B=!0);k.provider.YG.Jp()&&k.UK("finalized",{});k.yh=!0;k.reportStats(z)}}if(F.provider.videoData.enableServerStitchedDai)for(k=g.l(F.U.values()),z=k.next();!z.done;z=k.next())SZC(z.value);else F.Y&&SZC(F.Y);F.dispose()};
KO6=function(F,k){F.Y&&dqk(F.Y,k)};
WOa=function(F){if(!F.Y)return null;var k=UZ(F.Y,"atr");return function(z){F.Y&&dqk(F.Y,z,k)}};
F4p=function(F,k,z,x){z.adFormat=z.MD;var D=k.La;k=new Gc(new ch(z,k.YG,{getDuration:function(){return z.lengthSeconds},
getCurrentTime:function(){return D.getCurrentTime()},
P8:function(){return D.P8()},
qb:function(){return D.qb()},
Lp:function(){return D.Lp()},
lM:function(){return D.lM()},
getPlayerSize:function(){return D.getPlayerSize()},
getAudioTrack:function(){return z.getAudioTrack()},
getPlaybackRate:function(){return D.getPlaybackRate()},
Gp:function(){return D.Gp()},
getVisibilityState:function(){return D.getVisibilityState()},
g$:function(){return D.g$()},
gM:function(){return D.gM()},
getVolume:function(){return D.getVolume()},
isMuted:function(){return D.isMuted()},
pu:function(){return D.pu()},
Ms:function(){return D.Ms()},
getProximaLatencyPreference:function(){return D.getProximaLatencyPreference()},
XX:function(){D.XX()},
UK:function(e,C){D.UK(e,C)},
bS:function(){return D.bS()},
Hj:function(){return D.Hj()}}));
k.L=x;g.b(F,k);return k};
kdH=function(){this.uO=0;this.U=this.N_=this.lW=this.L=NaN;this.Y={};this.bandwidthEstimate=NaN};
Vm=function(F,k,z){g.S.call(this);var x=this;this.YG=F;this.La=k;this.L=z;this.Y=new Map;this.v5="";this.Pe={mD:function(){return Array.from(x.Y.keys())}}};
oPR=function(F,k){F.Y.has(k)&&(fUp(F.Y.get(k)),F.Y.delete(k))};
z_k=function(){this.Y=g.Ec;this.array=[]};
inC=function(F,k,z){var x=[];for(k=xCD(F,k);k<F.array.length;++k){var D=F.array[k];(D.end<=z||D.contains(z))&&x.push(D);if(D.start>z)break}return x};
DCx=function(F,k){var z=[];F=g.l(F.array);for(var x=F.next();!x.done&&!(x=x.value,x.contains(k)&&z.push(x),x.start>k);x=F.next());return z};
$Cn=function(F){return F.array.slice(xCD(F,0x7ffffffffffff),F.array.length)};
xCD=function(F,k){F=C8(F.array,function(z){return k-z.start||1});
return F<0?-(F+1):F};
jrY=function(F,k){var z=NaN;F=g.l(F.array);for(var x=F.next();!x.done;x=F.next())if(x=x.value,x.contains(k)&&(isNaN(z)||x.end<z)&&(z=x.end),x.start>k&&(isNaN(z)||x.start<z)){z=x.start;break}return z};
e_C=function(F,k){F.array=F.array.filter(function(z){return!k.has(z)})};
g.II=function(F,k,z){g.S.call(this);this.La=F;this.B=k;this.j=z;this.U=NaN;this.S=this.G=this.started=!1;this.L=[];this.K=new g.KS(this.sync,250,this);g.b(this,this.K);this.W=new g.KS(this.sync,0,this);g.b(this,this.W);this.Y=new z_k};
COR=function(F){F.started=!0;F.sync()};
Arp=function(F,k){F.started&&(F.sync(),g.n(k.oldState,16)&&(k=jrY(F.Y,Math.max(F.U-2E3,0)),!isNaN(k)&&k<0x7ffffffffffff&&F.W.start()))};
pqk=function(F,k){k=g.l(k);for(var z=k.next();!z.done;z=k.next()){z=z.value;var x=z[1];z[0]===1?F.B(g.X$(x.namespace),x):F.B(g.qQ(x.namespace),x)}};
EP5=function(F){this.YG=F;this.U=this.L=this.mediaTime=NaN;this.j=this.Y=!1;this.W=.001;g.Vi(F)&&(this.W=.01)};
Hh=function(F,k){return k>F.mediaTime+F.W&&k<F.mediaTime+5};
OvR=function(F,k,z,x,D){if(x=x>1)F.j=!0;if((D===void 0?0:D)||isNaN(F.L))F.L=k;if(F.Y)k!==F.mediaTime&&(F.Y=!1);else if(k>0&&F.mediaTime===k){D=1500;if(F.YG.V("html5_buffer_underrun_transition_fix")){D=g.lw(F.YG.experiments,"html5_min_playback_advance_for_steady_state_secs");var e=g.lw(F.YG.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");D=D>0&&e>0&&Math.abs(k-F.L)<D?e:1500}return z-F.U>(x||!F.j?D:400)}F.mediaTime=k;F.U=z;return!1};
XqY=function(F,k){this.videoData=F;this.Y=k};
qRI=function(F,k,z){return k.zx(z).then(function(){return IS(new XqY(k,k.U))},function(x){x instanceof Error&&g.yI(x);
var D=aN('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e=bv('audio/mp4; codecs="mp4a.40.2"'),C=D||e,p=k.isLivePlayback&&!g.iW(F.W,!0);x="fmt.noneavailable";p?x="html5.unsupportedlive":C||(x="html5.missingapi");C=p||!C?2:1;D={buildRej:"1",a:k.Vw(),d:!!k.fJ,drm:k.sz(),f18:k.Z7.indexOf("itag=18")>=0,c18:D};k.Y&&(k.sz()?(D.f142=!!k.Y.Y["142"],D.f149=!!k.Y.Y["149"],D.f279=!!k.Y.Y["279"]):(D.f133=!!k.Y.Y["133"],D.f140=!!k.Y.Y["140"],D.f242=!!k.Y.Y["242"]),D.cAAC=e,D.cAVC=bv('video/mp4; codecs="avc1.42001E"'),
D.cVP9=bv('video/webm; codecs="vp9"'));k.W&&(D.drmsys=k.W.keySystem,e=0,k.W.Y&&(e=Object.keys(k.W.Y).length),D.drmst=e);return new O3(x,D,C)})};
aI=function(F){this.data=window.Float32Array?new Float32Array(F):Array(F);this.L=this.Y=F-1};
N1p=function(F){return F.data[F.Y]||0};
u6n=function(F){this.W=F;this.U=this.L=0;this.j=new aI(50)};
b6=function(F,k,z){g.uG.call(this);this.videoData=F;this.experiments=k;this.W=z;this.L=[];this.tL=0;this.U=!0;this.j=!1;this.S=0;z=new wqD;F.latencyClass==="ULTRALOW"&&(z.W=!1);F.vR?z.L=3:g.Uh(F)&&(z.L=2);F.latencyClass==="NORMAL"&&(z.j=!0);g.lw(k,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.lw(k,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||F.latencyClass!=="LOW"&&F.latencyClass!=="ULTRALOW"||(z.j=!0);var x=g.lw(k,"html5_liveness_drift_proxima_override");if(q8(F)!==
0&&x){z.Y=x;var D;((D=F.Y)==null?0:Hmn(D))&&z.Y--}$J(F)&&k.Ca("html5_sabr_parse_live_metadata_playback_boundaries")&&(z.K=!0);if(g.ng("trident/")||g.ng("edge/"))D=g.lw(k,"html5_platform_minimum_readahead_seconds")||3,z.U=Math.max(z.U,D);g.lw(k,"html5_minimum_readahead_seconds")&&(z.U=g.lw(k,"html5_minimum_readahead_seconds"));g.lw(k,"html5_maximum_readahead_seconds")&&(z.B=g.lw(k,"html5_maximum_readahead_seconds"));k.Ca("html5_force_adaptive_readahead")&&(z.W=!0);if(D=g.lw(k,"html5_liveness_drift_chunk_override"))z.Y=
D;Eh(F)&&(z.Y=(z.Y+1)/5,F.latencyClass==="LOW"&&(z.Y*=2));if(F.latencyClass==="ULTRALOW"||F.latencyClass==="LOW")z.S=g.lw(k,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,z.G=g.lw(k,"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=z;this.G=this.policy.L!==1;this.Y=S6(this,mC9(this,isNaN(F.liveChunkReadahead)?3:F.liveChunkReadahead,F))};
T16=function(F,k){if(k)return k=F.videoData,k=mC9(F,isNaN(k.liveChunkReadahead)?3:k.liveChunkReadahead,k),S6(F,k);if(F.L.length){if(Math.min.apply(null,F.L)>1)return S6(F,F.Y-1);if(F.policy.W)return S6(F,F.Y+1)}return F.Y};
l2R=function(F,k){if(!F.L.length)return!1;var z=F.Y;F.Y=T16(F,k===void 0?!1:k);if(k=z!==F.Y)F.L=[],F.tL=0;return k};
dh=function(F,k){return k>=F.qX()-Qrx(F)};
h_D=function(F,k,z){k=dh(F,k);z||k?k&&(F.U=!0):F.U=!1;F.G=F.policy.L===2||F.policy.L===3&&F.U};
srY=function(F,k){k=dh(F,k);F.j!==k&&F.publish("livestatusshift",k);F.j=k};
Qrx=function(F){var k=F.policy.Y;F.j||(k=Math.max(k-1,0));return k*J7(F)};
mC9=function(F,k,z){z.vR&&k--;Eh(z)&&(k=1);if(q8(z)!==0&&(F=g.lw(F.experiments,"html5_live_chunk_readahead_proxima_override"))){k=F;var x;((x=z.Y)==null?0:Hmn(x))&&k++}return k};
J7=function(F){return F.videoData.Y?tQ(F.videoData.Y)||5:5};
S6=function(F,k){k=Math.max(Math.max(1,Math.ceil(F.policy.U/J7(F))),k);return Math.min(Math.min(8,Math.floor(F.policy.B/J7(F))),k)};
wqD=function(){this.U=0;this.B=Infinity;this.W=!0;this.Y=2;this.L=1;this.j=!1;this.G=10;this.K=!1;this.S=1};
gh=function(F){g.S.call(this);this.La=F;this.Y=0;this.L=null;this.S=this.j=0;this.U={};this.YG=this.La.C();this.W=new g.KS(this.Ib,1E3,this);this.vR=new ym({delayMs:g.lw(this.YG.experiments,"html5_seek_timeout_delay_ms")});this.Xf=new ym({delayMs:g.lw(this.YG.experiments,"html5_long_rebuffer_threshold_ms")});this.dH=RI(this,"html5_seek_set_cmt");this.J4=RI(this,"html5_seek_jiggle_cmt");this.u$=RI(this,"html5_seek_new_elem");this.RS=RI(this,"html5_unreported_seek_reseek");this.t4=RI(this,"html5_long_rebuffer_jiggle_cmt");
this.yh=RI(this,"html5_long_rebuffer_ssap_clip_not_match");this.mp=new ym({delayMs:2E4});this.RU=RI(this,"html5_seek_new_elem_shorts");this.kG=RI(this,"html5_seek_new_media_source_shorts_reuse");this.NJ=RI(this,"html5_seek_new_media_element_shorts_reuse");this.l$=RI(this,"html5_reseek_after_time_jump");this.B=RI(this,"html5_gapless_handoff_close_end_long_rebuffer");this.Qh=RI(this,"html5_gapless_slow_seek");this.K=RI(this,"html5_gapless_slice_append_stuck");this.PR=RI(this,"html5_gapless_slow_start");
this.G=RI(this,"html5_ads_preroll_lock_timeout");this.qD=RI(this,"html5_ssap_ad_longrebuffer_new_element");this.UH=new ym({delayMs:g.lw(this.YG.experiments,"html5_skip_slow_ad_delay_ms")||5E3,xM:!this.YG.V("html5_report_slow_ads_as_error")});this.mY=new ym({delayMs:g.lw(this.YG.experiments,"html5_skip_slow_ad_delay_ms")||5E3,xM:!this.YG.V("html5_skip_slow_buffering_ad")});this.Xm=new ym({delayMs:g.lw(this.YG.experiments,"html5_slow_start_timeout_delay_ms")});this.cR=RI(this,"html5_slow_start_no_media_source");
g.b(this,this.W)};
RI=function(F,k){var z=g.lw(F.YG.experiments,k+"_delay_ms");F=F.YG.V(k+"_cfl");return new ym({delayMs:z,xM:F})};
rr6=function(F,k){F.Y=k};
YO=function(F,k,z,x,D,e,C,p){k.test(z)?(F.He(D,k,C),k.xM||e()):(k.zV&&k.L&&!k.j?(z=(0,g.VE)(),x?k.Y||(k.Y=z):k.Y=0,e=!x&&z-k.L>k.zV,z=k.Y&&z-k.Y>k.dF||e?k.j=!0:!1):z=!1,z&&(p=Object.assign({},F.rH(k),p),p.wn=C,p.we=D,p.wsuc=x,F.La.UK("workaroundReport",p),x&&(k.reset(),F.U[D]=!1)))};
ym=function(F){var k=F===void 0?{}:F;F=k.delayMs===void 0?0:k.delayMs;var z=k.dF===void 0?1E3:k.dF;var x=k.zV===void 0?3E4:k.zV;k=k.xM===void 0?!1:k.xM;this.Y=this.L=this.U=this.startTimestamp=0;this.j=!1;this.W=Math.ceil(F/1E3);this.dF=z;this.zV=x;this.xM=k};
t4a=function(F){g.S.call(this);var k=this;this.La=F;this.G=this.Y=this.aU=this.mediaElement=this.playbackData=null;this.U=0;this.W=this.PR=this.j=null;this.t4=!1;this.UH=0;this.Qh=!1;this.timestampOffset=0;this.B=!0;this.J4=0;this.u$=this.Xm=!1;this.S=0;this.kG=!1;this.mp=0;this.YG=this.La.C();this.videoData=this.La.getVideoData();this.policy=new B1Y;this.K=new gh(this.La);this.vR=this.l$=this.cR=this.L=NaN;this.yh=new g.KS(function(){Gd6(k,!1)},2E3);
this.mY=new g.KS(function(){nZ(k)});
this.RU=new g.KS(function(){k.t4=!0;UCk(k,{})});
this.dH=NaN;this.Xf=new g.KS(function(){var z=k.YG.zM;z.Y+=1E4/36E5;z.Y-z.U>1/6&&(djI(z),z.U=z.Y);k.Xf.start()},1E4);
g.b(this,this.K);g.b(this,this.yh);g.b(this,this.RU);g.b(this,this.mY);g.b(this,this.Xf)};
crx=function(F,k){F.playbackData=k;F.videoData.isLivePlayback&&(F.G=new u6n(function(){a:{if(F.playbackData&&F.playbackData.Y.Y){if(p9(F.videoData)&&F.aU){var z=F.aU.gE.Uz()||0;break a}if(F.videoData.Y){z=F.videoData.Y.mp;break a}}z=0}return z}),F.Y=new b6(F.videoData,F.YG.experiments,function(){return F.xN(!0)}));
Mq(F.La)?(k=Zn9(F),k.GP?($J(F.videoData)&&F.a5(k.GP,k.startSeconds),F.U=k.startSeconds):k.startSeconds>0&&F.seekTo(k.startSeconds,{Sr:"seektimeline_startPlayback",seekSource:15}),F.B=!1):vPR(F)||(F.U=F.U||(g.Mk(F.videoData)?0:F.videoData.startSeconds)||0)};
Onk=function(F,k){(F.aU=k)?POk(F,!0):LZ(F)};
V49=function(F,k){g.WN(F.K.W);F.V("html5_exponential_memory_for_sticky")&&(k.state.isPlaying()?g.WN(F.Xf):F.Xf.stop());if(F.mediaElement)if(k.oldState.state===8&&uN(k.state)&&k.state.isBuffering()){k=F.mediaElement.getCurrentTime();var z=F.mediaElement.Ln();var x=F.V("manifestless_post_live_ufph")||F.V("manifestless_post_live")?qi(z,Math.max(k-3.5,0)):qi(z,k-3.5);x>=0&&k>z.end(x)-1.1&&x+1<z.length&&z.start(x+1)-z.end(x)<11&&(x=z.start(x+1)+.2,Math.abs(F.dH-x)<.2||(F.La.UK("seekover",{b:XW(z,"_"),
cmt:k}),F.dH=x,F.seekTo(x,{AT:!0,Sr:"seektimeline_postLiveDisc"})))}else((z=k.state)==null?0:z.state===8)&&!F.u$&&(F.videoData.limitedPlaybackDurationInSeconds>0?(fZ(F.La,F.getCurrentTime()+F.videoData.limitedPlaybackDurationInSeconds),F.u$=!0):F.videoData.isLivePlayback&&F.videoData.endSeconds>0&&(fZ(F.La,F.getCurrentTime()+F.videoData.endSeconds),F.u$=!0))};
HnI=function(F,k){var z=F.getCurrentTime(),x=F.isAtLiveHead(z);if(F.G&&x){var D=F.G;if(D.Y&&!(z>=D.L&&z<D.U)){var e=D.Y.kA(z);e!==-1&&(D.L=D.Y.getStartTime(e),D.U=D.L+D.Y.getDuration(e),e=(0,g.VE)()/1E3-D.Y.B7(e),e-=D.W(),D.j.add(e))}}F.Y&&(x&&(D=F.Y,e=I26(F),D.tL++,D.tL<3||Date.now()-D.S<3E3||(D.S=Date.now(),D.L.push(e),D.L.length>50&&D.L.shift())),D=F.Y,h_D(D,z,k===void 0?!0:k),srY(D,z),k&&Gd6(F,!0));x!==F.Xm&&(k=F.getCurrentTime()-F.vR<=500,z=F.UH>=1E3,k||z||(k=F.La.Ap(),k.qoe&&(k=k.qoe,z=g.fA(k.provider),
g.Nq(k,z,"lh",[x?"1":"0"])),F.Xm=x,F.UH++,F.vR=F.getCurrentTime()))};
Gd6=function(F,k){if(F.Y){var z=F.Y;var x=F.getCurrentTime();!dh(z,x)&&z.DK()?(z.policy.j&&(z.policy.Y=Math.max(z.policy.Y+z.policy.S,z.policy.G)),z=Infinity):z=x<z.videoData.oy()?Math.min(z.videoData.oy()+10,z.qX()):NaN;if(!isNaN(z)){if(F.aU&&k&&(k=F.yh.isActive(),x=F.Y.qX(),(x=zyM(F.aU,x-F.Hj()))&&!k)){F.yh.start();F.La.UK("inBufferPtl",{cmt:F.getCurrentTime(),seekTo:x+F.Hj()});F.V("html5_report_peg_to_live_seek_source")?F.seekTo(x+F.Hj(),{Sr:"seektimeline_inBufferSeek",seekSource:34}):F.seekTo(x+
F.Hj(),{Sr:"seektimeline_inBufferSeek"});return}F.V("html5_report_peg_to_live_seek_source")?F.seekTo(z,{Sr:"seektimeline_pegToLive",seekSource:34}):F.seekTo(z,{Sr:"seektimeline_pegToLive"})}}};
POk=function(F,k){if(F.Y&&F.aU){var z=!1;k?z=!0:F.videoData.isLowLatencyLiveStream||F.videoData.latencyClass==="LOW"||F.videoData.latencyClass==="ULTRALOW"?z=l2R(F.Y):F.kG&&(F.kG=!1,z=l2R(F.Y,!0));z&&(k=F.La.Ap(),z=F.Y,z=J7(z)*z.Y,k.qoe&&(k=k.qoe,g.Nq(k,g.fA(k.provider),"lra",[z]),k.UK("live-readahead-seconds",{v:z})));k=F.aU;z=F.Y.Y;F=F.Y;F=(F.Y-1+F.policy.Y)*J7(F);var x=NaN,D=k.RS;D===2||D===-1?Eh(k.La.getVideoData())&&(x=k.policy.NP):--z;z=Math.max(z,0);D=k.W;D.o3=z;D.K=x;k.G&&(k.G.Qh=F)}};
a2Y=function(F,k){F.U=k};
UCk=function(F,k){SRk(F,k).then(void 0,function(){LZ(F)});
bnY(F).then(function(z){dC5(F,z)},function(){LZ(F)});
F.La.eK(k);F.YG.Jp()&&(k=F.rH(),k["native"]=""+ +F.Qh,k.tgt=""+F.L,k.otgt=""+(F.L+F.timestampOffset),F.Y&&F.V("html5_high_res_seek_logging")&&(k.tht=""+F.Y.W(),k.ht=""+F.Y.qX(),k.adft=""+Qrx(F.Y)),F.V("html5_sabr_parse_live_metadata_playback_boundaries")&&F.videoData.Y&&$J(F.videoData)&&(k.minst=""+F.videoData.Y.FG,k.cminst=""+(F.videoData.Y.oy()+F.timestampOffset),k.maxst=""+F.videoData.Y.oO,k.hts=""+F.videoData.Y.PR,k.cmaxst=""+(F.videoData.Y.xN()+F.timestampOffset)),F.La.UK("startSeek",k))};
SRk=function(F,k){F.PR||(F.aU?isFinite(F.L)?F.PR=F.aU.seek(F.L-F.timestampOffset,k):(Ab(F.videoData),F.PR=Kj(F.aU),n9(F.videoData)||(F.L=F.aU.getCurrentTime()+F.timestampOffset)):F.PR=g.ZJ(F.L-F.timestampOffset));return F.PR};
bnY=function(F){var k=F.j;k||(F.j=new xh,k=F.j,nZ(F));return k};
KZ=function(F,k,z){return isNaN(k)?NaN:g.l3(k,F.oy(),F.xN(z))};
nZ=function(F){if(F.j)if(F.videoData.isLivePlayback&&F.videoData.U&&!F.videoData.U.Y&&F.mediaElement&&F.mediaElement.gp()>0&&DG(F.mediaElement)>0&&(F.L=KZ(F,F.L,!1)),!F.mediaElement||!JrC(F))F.mY.start(750);else if(!isNaN(F.L)&&isFinite(F.L)){var k=F.l$-(F.L-F.timestampOffset);if(!(k===0||F.V("html5_enable_new_seek_timeline_logic")&&Math.abs(k)<.005))if(k=F.mediaElement.getCurrentTime()-F.L,Math.abs(k)<=F.J4||F.V("html5_enable_new_seek_timeline_logic")&&Math.abs(k)<.005)yrx(F);else{if(F.videoData.YO)F.videoData.YO=
!1;else if(!Ab(F.videoData)&&F.L>=F.xN()-.1){F.L=F.xN();F.j.resolve(F.xN());F.La.oa();return}try{var z=F.L-F.timestampOffset;F.mediaElement.seekTo(z);F.K.Y=z;F.l$=z;F.U=F.L;F.V("html5_enable_new_seek_timeline_logic")&&(F.Qh=!1)}catch(x){}}}};
JrC=function(F){if(!F.mediaElement||F.mediaElement.gp()===0||F.mediaElement.hasError())return!1;var k=F.mediaElement.getCurrentTime()>0;if(!(F.videoData.U&&F.videoData.U.Y||F.videoData.isLivePlayback)&&F.videoData.sz())return k;if(F.L>=0){var z=F.mediaElement.UB();if(z.length||!k)return Ni(z,F.L-F.timestampOffset)}return k};
yrx=function(F){F.j&&(F.j.resolve(F.mediaElement.getCurrentTime()),F.K.L=null)};
dC5=function(F,k){F.W&&(F.W.resolve(k),F.La.SK(),F.YG.Jp()&&(k=F.rH(),k["native"]=""+ +F.Qh,k.otgt=""+(F.L+F.timestampOffset),F.La.UK("seekEnd",k)));LZ(F)};
LZ=function(F){F.L=NaN;F.l$=NaN;F.j=null;F.PR=null;F.W=null;F.t4=!1;F.Qh=!1;F.J4=0;F.yh.stop();F.RU.stop()};
YRC=function(F,k,z){var x=F.mediaElement,D=k.type;switch(D){case "seeking":var e=x.getCurrentTime()+F.timestampOffset;if(!F.j||F.Qh&&e!==F.L){var C=!!F.j;F.j=new xh;F.V("html5_enable_new_seek_timeline_logic")&&F.j.then(function(E){dC5(F,E)},function(){LZ(F)});
if(F.videoData.isAd()){var p;LgC({adCpn:F.videoData.clientPlaybackNonce,contentCpn:(p=F.videoData.rC)!=null?p:""},k.Y)}F.l$=e;rr6(F.K,x.getCurrentTime());F.seekTo(e,{seekSource:104,Sr:"seektimeline_mediaElementEvent"});z&&R_a(z,e*1E3,!!C);F.Qh=!0}break;case "seeked":yrx(F);break;case "loadedmetadata":Mq(F.La)||gPD(F);nZ(F);break;case "progress":nZ(F);break;case "pause":F.S=F.getCurrentTime()}F.S&&((D==="play"||D==="playing"||D==="timeupdate"||D==="progress")&&F.getCurrentTime()-F.S>10&&(F.V("html5_enable_new_media_element_puase_jump")?
(F.La.He(new O3("qoe.restart",{reason:"pauseJump"})),F.La.eO(),F.seekTo(F.S,{Sr:"pauseJumpNewElement"})):F.seekTo(F.S,{Sr:"pauseJump"})),D!=="pause"&&D!=="play"&&D!=="playing"&&D!=="progress"&&(F.S=0))};
nPH=function(F){return(tb(F.videoData)||!!F.videoData.liveUtcStartSeconds)&&(!!F.videoData.liveUtcStartSeconds||vPR(F))&&!!F.videoData.Y};
vPR=function(F){return!!F.videoData.startSeconds&&isFinite(F.videoData.startSeconds)&&F.videoData.startSeconds>1E9};
Zn9=function(F){var k=0,z=NaN,x="";if(!F.B)return{startSeconds:k,GP:z,source:x};F.videoData.yh?k=F.videoData.cR:Ab(F.videoData)&&(k=Infinity);if(g.Uh(F.videoData))return{startSeconds:k,GP:z,source:x};F.videoData.startSeconds?(x="ss",k=F.videoData.startSeconds):F.videoData.y6&&(x="stss",k=F.videoData.y6);F.videoData.liveUtcStartSeconds&&(z=F.videoData.liveUtcStartSeconds);if(isFinite(k)&&(k>F.xN()||k<F.oy())){var D={};D.minSeekableTime=F.oy();D.maxSeekableTime=F.xN();D.cmt=F.getCurrentTime();D.ss=
k;D.utc=z;D.src=x;F.La.UK("startSecondsOutOfBounds",D);F.videoData.oS()&&(k=KZ(F,k,!1))}return{startSeconds:k,GP:z,source:x}};
gPD=function(F){if(F.B)if(g.Uh(F.videoData))F.B=!1;else{var k="ss",z=0,x;((x=F.videoData.Y)==null?0:x.isManifestless)&&F.videoData.RS&&!vPR(F)&&(k="mss",z=F.videoData.RS);(F.videoData.yh?F.V("html5_prioritize_windowed_st_start_seconds"):F.V("html5_prioritize_st_start_seconds"))&&!z&&F.videoData.y6&&(k="stss",z=F.videoData.y6);!z&&nPH(F)&&(z=F.videoData.liveUtcStartSeconds||F.videoData.RS,k="utc",z=F.xN()-F.B7(F.xN())+z);z||F.V("html5_prefer_initial_ss_over_stream_time_ss_for_vod")&&!F.videoData.oS()||
!F.videoData.y6||(k="stss",z=F.videoData.y6);x={};if(z){if(z>F.xN()||z<F.oy())x.minSeekableTime=F.oy(),x.maxSeekableTime=F.xN(),x.cmt=F.getCurrentTime(),x.it=F.B7(F.getCurrentTime()),x.ss=z,x.utc=nPH(F)?F.videoData.liveUtcStartSeconds||F.videoData.RS:0,F.La.UK("startSecondsOutOfBounds",x),F.videoData.oS()&&(z=KZ(F,z,!1));F.seekTo(z,{Sr:"seektimeline_startSeconds"});x[k]=z;F.La.UK("startSeconds",x);F.B=!1}else F.videoData.RS&&(x[k]=F.videoData.RS+F.Hj(),F.La.UK("startSeconds",x))}};
M4n=function(F,k){F.La.UK("sdai",{adj4t:k.toFixed(3)});F.cR=k;k+=1;F.L=k;F.U=k;bnY(F).then(function(z){dC5(F,z)},function(){LZ(F)})};
I26=function(F){return F.mediaElement?$h(F.mediaElement):0};
B1Y=function(){};
Wh=function(F){g.S.call(this);this.U=F;this.Y=new Map;this.L=new g.KS(this.sample,250,this);g.b(this,this.L);this.start()};
F6=function(F,k){if((F=F.Y.get(k))==null)F=void 0;else{F=F.buffer;for(k=[];F.L!==F.Y;)F.L=(F.L+1)%F.data.length,k.push(F.data[F.L]);F=k}return F||[]};
kP=function(F,k){var z;return((z=F.Y.get(k))==null?void 0:N1p(z.buffer))||0};
L46=function(F){this.L=F;this.Y=NaN;this.buffer=new aI(100)};
or=function(){this.finished=this.started=!1};
ofn=function(F){function k(D){return z.WO&&(!x.w8||!x.i$.G)||z.Qh!=="yt"&&(x.partnerId===38&&z.playerStyle==="books"||x.partnerId===30&&z.playerStyle==="docs"||x.partnerId===33&&z.playerStyle==="google-live")?f2R(F,x,D):K4n(F,x).then(function(){zd(F,x)},function(e){zd(F,x,!0);
throw e;})}
var z=F.C(),x=F.getVideoData();x.z4();x.loading=!0;return W4H(F)?FVH(F,x).then(function(){zd(F,x)},function(D){D=IN(D);
if(VQ(D.severity))return zd(F,x,!0),Promise.reject(D);D.errorCode==="onesie.response.badproxystatus"&&""+D.details.st==="3"&&(k0R=!0);F.handleError(D);return k("onesie")}):k("gvi")};
W4H=function(F){var k=F.C();if(k.V("html5_disable_onesie_when_no_subtlecrypto")&&!Ui()||k.V("html5_disable_onesie")||!k.V("html5_onesie")||!k.V("html5_onesie_inline")&&F.getVisibilityState()===5||k.Qh!=="yt")return!1;var z=k.En;if(!z||!z.Y)return F.handleError(new O3("onesie.unavailable.hotconfig",{key:"0"})),!1;if(z.Y.W<(0,g.VE)()&&(F.UK("okexp","1"),(z=F.LV())&&k.V("html5_prefer_trusted_host_on_key_expiration"))){z.L=!0;var x;(k=(x=z.Y.get(0))==null?void 0:cO(x.location))&&!No(k)&&z.Y.delete(0)}if(k0R)return F.UK("ost3",
"1"),!1;x={};return Object.keys(x).length>0?(x.onesie="0",F.handleError(new O3("html5.missingapi",x)),!1):!0};
zNp=function(F){var k=d5();JM(k,F);return g.EP(k,qBn())};
FVH=function(F,k){var z,x,D,e,C,p,E,X,q,N,u,w,m,h,B,U,v,P,I,d,W,M,xY,$Y,Fx,y;return g.O(function(K){if(K.Y==1)return k.fetchType="onesie",z=mxR(k,F.getPlayerSize(),F.getVisibilityState()),x=new l$(F,z),g.c(K,x.fetch(),2);D=K.L;e={player_response:D};k.loading=!1;C=F.GD.kC;if(x.c5){p=g.l(x.c5.entries());for(E=p.next();!E.done;E=p.next())X=E.value,q=g.l(X),N=q.next().value,u=q.next().value,w=N,m=u,C.Y.set(w,m,180),w===k.videoId&&(h=m.PD(),k.Bq=h);C.Cd=x}B=g.l(x.yn.entries());for(U=B.next();!U.done;U=
B.next())v=U.value,P=g.l(v),I=P.next().value,d=P.next().value,W=I,M=d,C.L.set(W,M,180);g.nK(k,e,!0);if(k.loading||gg(k))return K.return(Promise.resolve());C.Y.removeAll();C.L.removeAll();k.Bq=[];xY={};$Y="onesie.response";Fx=0;k.errorCode?($Y="auth",xY.ec=k.errorCode,xY.ed=k.errorDetail,xY.es=k.QX||"",Fx=2):(xY.successButUnplayable="1",xY.disposed=""+ +k.z4(),xY.afmts=""+ +/adaptiveFormats/.test(D),xY.cpn=k.clientPlaybackNonce);y=new O3($Y,xY,Fx);return K.return(Promise.reject(y))})};
K4n=function(F,k){var z,x,D,e,C,p,E,X,q,N,u;return g.O(function(w){switch(w.Y){case 1:z=k.isAd(),x=!z,D=z?1:3,e=0;case 2:if(!(e<D)){w.Sk(4);break}if(!(e>0)){w.Sk(5);break}return g.c(w,S8(5E3),6);case 6:C=new g.Fa("Retrying OnePlatform request",{attempt:e}),g.yI(C);case 5:return g.lD(w,7),g.c(w,xeI(F,k),9);case 9:return w.return();case 7:p=g.rI(w);E=IN(p);X=E.errorCode;q=F.C();N=q.V("html5_use_network_error_code_enums")?401:"401";x&&X==="manifest.net.badstatus"&&E.details.rc===N&&(x=!1,e===D-1&&(D+=
1));if(e===D-1)return u=i0p(z,E.details),u.details.backend="op",u.details.originec=X,w.return(Promise.reject(u));if(X==="auth"||X==="manifest.net.retryexhausted")return w.return(Promise.reject(E));F.handleError(E);if(VQ(E.severity)){w.Sk(4);break}case 3:e++;w.Sk(2);break;case 4:return w.return(Promise.reject(i0p(z,{backend:"op"})))}})};
xeI=function(F,k){function z($Y){$Y.readyState===2&&F.t5("ps_c")}
var x,D,e,C,p,E,X,q,N,u,w,m,h,B,U,v,P,I,d,W,M,xY;return g.O(function($Y){switch($Y.Y){case 1:k.fetchType="gp";x=F.C();D=g.iJ(x,g.dy(k));if(!D.Y){e=D.getValue();$Y.Sk(2);break}return g.c($Y,D.Y,3);case 3:e=$Y.L;case 2:return C=e,p=zNp(C),E=mxR(k,F.getPlayerSize(),F.getVisibilityState()),X=g.jn(Dep),q=g.dy(k),N=(0,g.VE)(),u=!1,w="empty",m=0,F.t5("psns"),h={ER:z},g.c($Y,g.od(p,E,X,void 0,h),4);case 4:B=$Y.L;F.t5("psnr");if(k.z4())return $Y.return();B?"error"in B&&B.error?(u=!0,w="esf:"+B.error.message,
m=B.error.code):B.errorMetadata&&(u=!0,w="its",m=B.errorMetadata.status):u=!0;if(u)return U=0,v=((0,g.VE)()-N).toFixed(),P={},P=x.V("html5_use_network_error_code_enums")?{backend:"op",rc:m,rt:v,reason:w,has_kpt:k.mY?"1":"0",has_mdx_env:k.mdxEnvironment?"1":"0",has_omit_key_flag:g.LX("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:x.pageId?"1":"0",has_token:q?"1":"0",has_vvt:k.PR?"1":"0",is_mdx:k.isMdxPlayback?"1":"0",mdx_ctrl:k.m3||"",token_eq:q===g.dy(k)?"1":"0"}:{backend:"op",
rc:""+m,rt:v,reason:w,has_kpt:k.mY?"1":"0",has_mdx_env:k.mdxEnvironment?"1":"0",has_omit_key_flag:g.LX("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:x.pageId?"1":"0",has_token:q?"1":"0",has_vvt:k.PR?"1":"0",is_mdx:k.isMdxPlayback?"1":"0",mdx_ctrl:k.m3||"",token_eq:q===g.dy(k)?"1":"0"},I="manifest.net.connect",m===429?(I="auth",U=2):m>200&&(I="manifest.net.badstatus",m===400&&(U=2)),$Y.return(Promise.reject(new O3(I,P,U)));k.loading=!1;g.nK(k,{raw_player_response:B},!0);
d=B;g.Vq(k.C())&&d&&d.trackingParams&&Hc(d.trackingParams);if(k.errorCode)return W={ec:k.errorCode,ed:k.errorDetail,es:k.QX||""},$Y.return(Promise.reject(new O3("auth",W,2)));if(!k.loading&&!gg(k))return M=k.isAd()?"auth":"manifest.net.retryexhausted",xY=k.isAd()?2:1,$Y.return(Promise.reject(new O3(M,{successButUnplayable:"1",hasMedia:g.sh(k)?"1":"0"},xY)));g.Tp($Y)}})};
f2R=function(F,k,z){function x(m){m=IN(m);if(VQ(m.severity))return Promise.reject(m);F.handleError(m);return!1}
function D(){return!0}
var e,C,p,E,X,q,N,u,w;return g.O(function(m){switch(m.Y){case 1:var h=F.C(),B=F.getPlayerSize(),U=F.getVisibilityState();F.isFullscreen();var v=window.location.search;if(k.partnerId===38&&h.playerStyle==="books")v=k.videoId.indexOf(":"),v=g.oW("//web.archive.org/web/20250411103644/https://play.google.com/books/volumes/"+k.videoId.slice(0,v)+"/content/media",{aid:k.videoId.slice(v+1),sig:k.Gh});else if(k.partnerId===30&&h.playerStyle==="docs")v=g.oW("https://web.archive.org/web/20250411103644/https://docs.google.com/get_video_info",{docid:k.videoId,authuser:k.Th,authkey:k.nD,eurl:h.NJ});
else if(k.partnerId===33&&h.playerStyle==="google-live")v=g.oW("//web.archive.org/web/20250411103644/https://google-liveplayer.appspot.com/get_video_info",{key:k.videoId});else{h.Qh!=="yt"&&g.JV(Error("getVideoInfoUrl for invalid namespace: "+h.Qh));var P={html5:"1",video_id:k.videoId,cpn:k.clientPlaybackNonce,eurl:h.NJ,ps:h.playerStyle,el:Ik(k),hl:h.mY,list:k.playlistId,agcid:k.e0,aqi:k.adQueryId,sts:20181,lact:Vj()};Object.assign(P,h.Y);h.forcedExperiments&&(P.forced_experiments=h.forcedExperiments);k.PR?(P.vvt=k.PR,k.mdxEnvironment&&(P.mdx_environment=
k.mdxEnvironment)):g.dy(k)&&(P.access_token=g.dy(k));k.adFormat&&(P.adformat=k.adFormat);k.slotPosition>=0&&(P.slot_pos=k.slotPosition);k.breakType&&(P.break_type=k.breakType);k.bq!==null&&(P.ad_id=k.bq);k.Ih!==null&&(P.ad_sys=k.Ih);k.K5!==null&&(P.encoded_ad_playback_context=k.K5);h.captionsLanguagePreference&&(P.cc_lang_pref=h.captionsLanguagePreference);h.UH&&h.UH!==2&&(P.cc_load_policy=h.UH);var I=g.M5(g.nu(),65);g.f_(h)&&I!=null&&!I&&(P.device_captions_on="1");h.mute&&(P.mute=h.mute);k.annotationsLoadPolicy&&
h.annotationsLoadPolicy!==2&&(P.iv_load_policy=k.annotationsLoadPolicy);k.G9&&(P.endscreen_ad_tracking=k.G9);(I=h.yh.get(k.videoId))&&I.S8&&(P.ic_track=I.S8);k.Xf&&(P.itct=k.Xf);bx(k)&&(P.autoplay="1");k.mutedAutoplay&&(P.mutedautoplay=k.mutedAutoplay);k.isAutonav&&(P.autonav="1");k.f8&&(P.noiba="1");k.isMdxPlayback&&(P.mdx="1",P.ytr=k.rI);k.mdxControlMode&&(P.mdx_control_mode=k.mdxControlMode);k.Ym&&(P.ytrcc=k.Ym);k.RN&&(P.utpsa="1");k.isFling&&(P.is_fling="1");k.isInlinePlaybackNoAd&&(P.mute="1");
k.vnd&&(P.vnd=k.vnd);k.forceAdsUrl&&(I=k.forceAdsUrl.split("|").length===3,P.force_ad_params=I?k.forceAdsUrl:"||"+k.forceAdsUrl);k.ZR&&(P.preload=k.ZR);B.width&&(P.width=B.width);B.height&&(P.height=B.height);(k.zM?0:k.Av)&&(P.splay="1");k.ypcPreview&&(P.ypc_preview="1");ak(k)&&(P.content_v=ak(k));k.vR&&(P.livemonitor=1);h.t4&&(P.authuser=h.t4);h.pageId&&(P.pageid=h.pageId);h.u$&&(P.ei=h.u$);h.j&&(P.iframe="1");k.contentCheckOk&&(P.cco="1");k.racyCheckOk&&(P.rco="1");h.G&&k.Hq&&(P.live_start_walltime=
k.Hq);h.G&&k.Sh&&(P.live_manifest_duration=k.Sh);h.G&&k.playerParams&&(P.player_params=k.playerParams);h.G&&k.cycToken&&(P.cyc=k.cycToken);h.G&&k.Bh&&(P.tkn=k.Bh);U!==0&&(P.vis=U);h.enableSafetyMode&&(P.enable_safety_mode="1");k.mY&&(P.kpt=k.mY);k.Fp&&(P.kids_age_up_mode=k.Fp);k.kidsAppInfo&&(P.kids_app_info=k.kidsAppInfo);k.GI&&(P.upg_content_filter_mode="1");h.widgetReferrer&&(P.widget_referrer=h.widgetReferrer.substring(0,128));k.Qh?(B=k.Qh.latitudeE7!=null&&k.Qh.longitudeE7!=null?k.Qh.latitudeE7+
","+k.Qh.longitudeE7:",",B+=","+(k.Qh.clientPermissionState||0)+","+(k.Qh.locationRadiusMeters||"")+","+(k.Qh.locationOverrideToken||"")):B=null;B&&(P.uloc=B);k.MZ&&(P.internalipoverride=k.MZ);h.embedConfig&&(P.embed_config=h.embedConfig);h.Hx&&(P.co_rel="1");h.ancestorOrigins.length>0&&(P.ancestor_origins=Array.from(h.ancestorOrigins).join(","));h.homeGroupInfo!==void 0&&(P.home_group_info=h.homeGroupInfo);h.livingRoomAppMode!==void 0&&(P.living_room_app_mode=h.livingRoomAppMode);h.enablePrivacyFilter&&
(P.enable_privacy_filter="1");k.isLivingRoomDeeplink&&(P.is_living_room_deeplink="1");k.z9&&k.lO&&(P.clip=k.z9,P.clipt=k.lO);k.xg&&(P.disable_watch_next="1");k.uo&&(P.forced_by_var="1");for(var d in P)!$eH.has(d)&&P[d]&&String(P[d]).length>512&&(g.yI(Error("GVI param too long: "+d)),P[d]="");d=h.e5;g.IB(h)&&(d=$I(d.replace(/\b(?:www|web)([.-])/,"tv$1"))||h.e5);h=g.oW(d+"get_video_info",P);v&&(h=zTR(h,v));v=h}e=v;p=(C=k.isAd())?1:3;E=0;case 2:if(!(E<p)){m.Sk(4);break}X=e;if(!(E>0)){m.Sk(5);break}return g.c(m,
S8(5E3),6);case 6:q={playerretry:E,playerretrysrc:z},C||(q.recover="embedded"),X=Cg(e,q);case 5:return g.c(m,j7R(k,X).then(D,x),7);case 7:if(N=m.L)return m.return();E++;m.Sk(2);break;case 4:u=C?"auth":"manifest.net.retryexhausted";w=C?2:1;if(!C&&Math.random()<1E-4)try{g.yI(new g.Fa("b/152131571",btoa(e)))}catch(W){}return m.return(Promise.reject(new O3(u,{backend:"gvi"},w)))}})};
j7R=function(F,k){function z(B){return x(B.xhr)}
function x(B){if(!F.z4()){B=B?B.status:-1;var U=0,v=((0,g.VE)()-q).toFixed();v=D.V("html5_use_network_error_code_enums")?{backend:"gvi",rc:B,rt:v}:{backend:"gvi",rc:""+B,rt:v};var P="manifest.net.connect";B===429?(P="auth",U=2):B>200&&(P="manifest.net.badstatus",B===400&&(U=2));return Promise.reject(new O3(P,v,U))}}
var D,e,C,p,E,X,q,N,u,w,m,h;return g.O(function(B){if(B.Y==1){F.fetchType="gvi";D=F.C();var U={};F.VJ&&(U.ytrext=F.VJ);(p=g.SI(U)?void 0:U)?(e={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:p},C=Cg(k,{action_display_post:1})):(e={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},C=k);E={};D.sendVisitorIdHeader&&F.visitorData&&(E["X-Goog-Visitor-Id"]=F.visitorData);(X=oB(D.experiments,"debug_sherlog_username"))&&(E["X-Youtube-Sherlog-Username"]=X);Object.keys(E).length>
0&&(e.headers=E);q=(0,g.VE)();return g.c(B,Ns(cp,C,e).then(void 0,z),2)}N=B.L;if(!N||!N.responseText)return B.return(x(N));F.loading=!1;u=DC(N.responseText);g.nK(F,u,!0);if(F.errorCode)return w={ec:F.errorCode,ed:F.errorDetail,es:F.QX||""},B.return(Promise.reject(new O3("auth",w,2)));if(!F.loading&&!gg(F))return m=F.isAd()?"auth":"manifest.net.retryexhausted",h=F.isAd()?2:1,B.return(Promise.reject(new O3(m,{successButUnplayable:"1"},h)));g.Tp(B)})};
i0p=function(F,k){return new O3(F?"auth":"manifest.net.retryexhausted",k,F?2:1)};
zd=function(F,k,z){z=z===void 0?!1:z;var x,D,e,C;g.O(function(p){if(p.Y==1){x=F.C();if(z&&(!g.WJ(x)||Ik(k)!=="embedded")||k.xg||Ik(k)!=="adunit"&&(g.Vi(x)||JJ(x)||g.g8(x)||g.IB(x)||FA(x)==="WEB_CREATOR"))return p.return();D=g.iJ(x,g.dy(k));return D.Y?g.c(p,D.Y,3):(e=D.getValue(),p.Sk(2))}p.Y!=2&&(e=p.L);C=e;return p.return(eNk(F,k,C))})};
eNk=function(F,k,z){var x,D,e,C,p;return g.O(function(E){if(E.Y==1){g.lD(E,2);x=zNp(z);var X=k.C();g.nu();var q={context:g.ex(k),videoId:k.videoId,racyCheckOk:k.racyCheckOk,contentCheckOk:k.contentCheckOk,autonavState:"STATE_NONE"};Ik(k)==="adunit"&&(q.isAdPlayback=!0);X.embedConfig&&(q.serializedThirdPartyEmbedConfig=X.embedConfig);X.Hx&&(q.showContentOwnerOnly=!0);k.N2&&(q.showShortsOnly=!0);g.M5(0,141)&&(q.autonavState=g.M5(0,140)?"STATE_OFF":"STATE_ON");if(g.f_(X)){var N=g.M5(0,65);N=N!=null?
!N:!1;var u=!!g.bn("yt-player-sticky-caption");q.captionsRequested=N&&u}var w;if(X=(w=X.getWebPlayerContextConfig())==null?void 0:w.encryptedHostFlags)q.playbackContext={encryptedHostFlags:X};D=q;e=g.jn(Cpa);F.t5("wn_s");return g.c(E,g.od(x,D,e),4)}if(E.Y!=2)return C=E.L,F.t5("wn_r"),!C||"error"in C&&C.error||(p=C,g.Vq(k.C())&&p.trackingParams&&Hc(p.trackingParams),g.nK(k,{raw_watch_next_response:C},!1)),g.sC(E,0);g.rI(E);g.Tp(E)})};
A_I=function(F){F.t5("vir");F.t5("ps_s");WC("vir",void 0,"video_to_ad");var k=ofn(F);k.then(function(){F.t5("virc");WC("virc",void 0,"video_to_ad");F.t5("ps_r");WC("ps_r",void 0,"video_to_ad")},function(){F.t5("virc");
WC("virc",void 0,"video_to_ad")});
return k};
g.D2=function(F,k,z,x,D,e,C,p,E,X){E=E===void 0?new g.Rt(F):E;X=X===void 0?!0:X;g.uG.call(this);var q=this;this.YG=F;this.playerType=k;this.gH=z;this.aN=x;this.getVisibilityState=e;this.visibility=C;this.GD=p;this.videoData=E;this.OA=X;this.logger=new g.C4("VideoPlayer");this.Q6=null;this.yu=new $O;this.iB=null;this.i4=!0;this.IU=this.aU=null;this.t3=[];this.YK=new or;this.i7=this.Kh=null;this.Lc=new or;this.sb=null;this.gr=this.GC=!1;this.Ob=NaN;this.WA=!1;this.playerState=new g.CR;this.dg=[];this.V9=
new g.yQ;this.A$=new $79(this);this.mediaElement=null;this.jF=new g.KS(this.MrJ,15E3,this);this.e$=this.hk=!1;this.MS=NaN;this.W9=!1;this.dW=0;this.p5=!1;this.zN=NaN;this.vJ=new Wh(new Map([["bufferhealth",function(){return I26(q.bu)}],
["bandwidth",function(){return q.n2()}],
["networkactivity",function(){return q.YG.schedule.t4}],
["livelatency",function(){return q.isAtLiveHead()&&q.isPlaying()?pmx(q):NaN}],
["rawlivelatency",function(){return pmx(q)}]]));
this.jM=0;this.loop=!1;this.playbackRate=1;this.Q1=0;this.bu=new t4a(this);this.aA=!1;this.vP=[];this.U6=this.cA=0;this.EP=this.Is=!1;this.N_=this.lW=0;this.Z9=-1;this.dT="";this.Bw=new g.KS(this.Fpf,0,this);this.jz=this.qR=null;this.ZNk=[this.V9,this.Bw,this.jF,this.vJ];this.Ic=this.h6=null;this.FA=function(){var N=q.Ap();N.provider.YG.Av||N.provider.La.getVisibilityState()===3||(N.provider.YG.Av=!0);N.Pr();if(N.L){var u=N.L;u.W&&u.Y<0&&u.provider.La.getVisibilityState()!==3&&az5(u)}N.qoe&&(N=N.qoe,
N.NJ&&N.U<0&&N.provider.YG.Av&&qZk(N),N.j&&mO(N));q.aU&&xP(q);q.YG.FG&&!q.videoData.backgroundable&&q.mediaElement&&!q.Pc()&&(q.isBackground()&&q.mediaElement.YW()?(q.UK("bgmobile",{suspend:1}),q.jh(!0,!0)):q.isBackground()||iO(q)&&q.UK("bgmobile",{resume:1}))};
this.Pe={Qe:function(N){q.Qe(N)},
vK4:function(N){q.Q6=N},
Sca:function(){return q.Zk},
Tp:function(){return q.Dk},
MV:function(){return q.IU},
wC4:function(){return q.YE},
B2h:function(){return q.LP},
lep:function(){},
C:function(){return q.YG},
S9:function(){return q.mediaElement},
bcp:function(N){q.LK(N)},
H04:function(){return q.aN}};
this.logger.debug(function(){return"creating, type "+k});
this.Ey=new EP5(this.YG);this.Y1=new TSC(this.YG,this.aN,this);this.m$=new g.II(this,function(N,u){N!==g.X$("endcr")||g.n(q.playerState,32)||q.oa();D(N,u,q.playerType)},function(N,u){g.Mk(q.videoData)&&q.UK(N,u)});
g.b(this,this.m$);g.b(this,this.bu);EfC(this,E);this.videoData.subscribe("dataupdated",this.p8K,this);this.videoData.subscribe("dataloaded",this.WG,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.UK,this);this.videoData.subscribe("ctmpstr",this.sQ,this);this.Nq();iAC(this.FA);this.visibility.subscribe("visibilitystatechange",this.FA);this.YE=new g.KS(this.Nl,g.lw(this.YG.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.LP=
new g.KS(this.Nl,g.lw(this.YG.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.NA=new g.oR(this.HE,g.lw(this.YG.experiments,"html5_progress_event_throttle_ms")||350,this);g.b(this,this.NA)};
EfC=function(F,k){if(F.playerType===2||F.YG.qo)k.y0=!0;var z=PcI(k.MD,k.rq,F.YG.j,F.YG.G);z&&(k.adFormat=z);F.playerType===2&&(k.k9=!0);if(F.isFullscreen()||F.YG.j)z=g.bn("yt-player-autonavstate"),k.autonavState=z||(F.YG.j?2:F.videoData.autonavState);k.endSeconds&&k.endSeconds>k.startSeconds&&fZ(F,k.endSeconds)};
Xmk=function(F){fUp(F.Zk);g.CC(F.Zk);for(var k=F.Dk,z=g.l(k.Y.values()),x=z.next();!x.done;x=z.next())fUp(x.value);k.Y.clear();g.CC(F.Dk)};
qLC=function(F){var k=F.videoData;A_I(F).then(void 0,function(z){F.videoData!==k||k.z4()||(z=IN(z),z.errorCode==="auth"&&F.videoData.errorDetail?F.qk(z.errorCode,2,unescape(F.videoData.errorReason),Pw(z.details),F.videoData.errorDetail,F.videoData.QX||void 0):F.handleError(z))})};
wmI=function(F){if(!g.n(F.playerState,128))if(F.videoData.isLoaded(),F.logger.debug("finished loading playback data"),F.t3=g.z8(F.videoData.t4),g.sh(F.videoData)){F.gH.tick("bpd_s");$P(F).then(function(){F.gH.tick("bpd_c");if(!F.z4()){F.GC&&(F.FI(EI(EI(F.playerState,512),1)),iO(F));var x=F.videoData;x.endSeconds&&x.endSeconds>x.startSeconds&&fZ(F,x.endSeconds);F.YK.finished=!0;j4(F,"dataloaded");F.Lc.qI()&&Nmk(F);HAk(F.Y1,F.i7)}});
F.V("html5_log_media_perf_info")&&F.UK("loudness",{v:F.videoData.YZ.toFixed(3)},!0);var k,z=(k=F.mediaElement)==null?void 0:k.T$();if(z&&"disablePictureInPicture"in z&&F.YG.GR)try{z.disablePictureInPicture=F.YG.Xz&&!F.videoData.backgroundable}catch(x){g.yI(x)}uPI(F)}else j4(F,"dataloaded")};
$P=function(F){e4(F);F.i7=null;var k=qRI(F.YG,F.videoData,F.Pc());F.Kh=k;F.Kh.then(function(z){meH(F,z)},function(z){F.z4()||(z=IN(z),F.visibility.isBackground()?(Cn(F,"vp_none_avail"),F.Kh=null,F.YK.reset()):(F.YK.finished=!0,F.qk(z.errorCode,z.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Pw(z.details))))});
return k};
meH=function(F,k){if(!F.z4()&&!k.videoData.z4()){F.logger.debug("finished building playback data");F.i7=k;crx(F.bu,F.i7);if(F.videoData.isLivePlayback){var z=TmI(F.GD.kC,F.videoData.videoId)||F.aU&&!isNaN(F.aU.t4);z=F.V("html5_onesie_live")&&z;Mq(F)||F.videoData.RS>0&&!p9(F.videoData)||z||F.seekTo(F.xN(),{Sr:"videoplayer_playbackData",seekSource:18})}if(F.videoData.U.Y){if(F.V("html5_sabr_report_missing_url_as_error")&&jTn(F.videoData)){F.handleError(new O3("fmt.missing",{missabrurl:"1"},2));return}F.aU?
g.yI(Error("Duplicated Loader")):(z=g.lw(F.YG.experiments,"html5_onesie_defer_content_loader_ms"))&&F.zf()&&TmI(F.GD.kC,F.videoData.Jx)?g.mz(function(){F.z4()||F.aU||lqk(F)},z):lqk(F)}else!F.videoData.U.Y&&gy(F.videoData)&&F.bb(new w7(F.videoData.videoId||"",4));
F.HC();ZAx(k).then(function(){var x={};F.O0(x);F.YG.Jp()&&F.V("html5_log_media_perf_info")&&F.UK("av1Info",x);xP(F)})}};
Nmk=function(F){F.z4();F.logger.debug("try finish readying playback");if(F.Lc.finished)F.logger.debug("already finished readying");else if(F.YK.finished)if(g.n(F.playerState,128))F.logger.debug("cannot finish readying because of error");else if(F.t3.length)F.logger.debug(function(){return"cannot finish readying because of pending preroll: "+F.t3});
else if(F.m$.started||COR(F.m$),F.wO())F.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{F.aU&&(F.gr=wfY(F.aU.timing));F.Lc.finished||(F.Lc.finished=!0);var k=F.V("html5_onesie_live")&&F.aU&&!isNaN(F.aU.t4);!F.videoData.isLivePlayback||F.videoData.RS>0&&!p9(F.videoData)||k||Mq(F)||(F.logger.debug("seek to head for live"),F.seekTo(Infinity,{Sr:"videoplayer_readying",seekSource:18}),F.isBackground()&&(F.e$=!0));YZM(F.Ap());F.logger.debug("finished readying playback");
F.publish("playbackready");fl("pl_c",F.gH.timerName)||(F.gH.tick("pl_c"),WC("pl_c",void 0,"video_to_ad"));fl("pbr",F.gH.timerName)||(F.gH.tick("pbr"),WC("pbr",void 0,"video_to_ad"))}else F.logger.debug("playback data not loaded")};
fZ=function(F,k){F.iB&&Q7Y(F);F.iB=new g.ps(k*1E3,0x7ffffffffffff);F.iB.namespace="endcr";F.addCueRange(F.iB)};
Q7Y=function(F){F.removeCueRange(F.iB);F.iB=null};
hNk=function(F,k,z,x,D){var e=F.Ap(D),C=g.Mk(F.videoData)?e.getVideoData():F.videoData;C.L=z;var p=g.Ar(F);z=new m75(C,z,k,p?p.itag:"",x);F.YG.experiments.Ca("html5_refactor_sabr_video_format_selection_logging")?(z.videoId=D,F.Ic=z):e.qoe&&FJC(e.qoe,z);D=F.Y1;D.L=0;D.Y=0;F.publish("internalvideoformatchange",C,k==="m")};
g.Ar=function(F){var k=pn(F);return XM(k)||!F.i7?null:g.M$(F.i7.Y.videoInfos,function(z){return k.j(z)})};
pn=function(F){if(F.i7){var k=F.Y1;var z=F.i7;F=F.Wr();var x=htn(k);if(XM(x)){if(x=lzp(k,z).compose(Gga(k,z)).compose(tNR(k,z)).compose(VN6(k,z.videoData)).compose(Izp(k,z.videoData,z)).compose(A7(k,z)).compose(rAp(k,z)),XM(F)||k.V("html5_apply_pbr_cap_for_drm"))x=x.compose(BSM(k,z))}else k.V("html5_perf_cap_override_sticky")&&(x=x.compose(A7(k,z))),k.V("html5_ustreamer_cap_override_sticky")&&(x=x.compose(BSM(k,z)));x=x.compose(rAp(k,z));k=z.videoData.J9.compose(x).compose(z.videoData.K6).compose(F)}else k=
y6;return k};
OKk=function(F){var k=F.Y1;F=F.videoData;var z=VN6(k,F);k.V("html5_disable_client_autonav_cap_for_onesie")||z.compose(Izp(k,F));return z};
xP=function(F){if(F.videoData.U&&F.videoData.U.Y){var k=pn(F);F.aU&&tkM(F.aU,k)}};
s7I=function(F){var k;return!!(F.V("html5_native_audio_track_switching")&&g.GX&&((k=F.videoData.L)==null?0:Dm(k)))};
r_R=function(F){if(!s7I(F))return!1;var k;F=(k=F.mediaElement)==null?void 0:k.audioTracks();return!!(F&&F.length>1)};
G0R=function(F){var k=BmR(F);if(k)return F.videoData.getAvailableAudioTracks().find(function(z){return z.ZD.getName()===k})};
BmR=function(F){var k;if(F=(k=F.mediaElement)==null?void 0:k.audioTracks())for(k=0;k<F.length;++k){var z=F[k];if(z.enabled)return z.label}};
UeR=function(F){var k,z=F.videoData.getAvailableAudioTracks(),x=F.videoData.ET||F.YG.Xm;x&&(k=z.find(function(e){return e.getLanguageInfo().id===x}));
if(F.YG.experiments.Ca("enable_audio_description_setting")&&g.M5(g.nu(),198)){z=g.l(z);for(var D=z.next();!D.done;D=z.next())if(D=D.value,D.W){k=D;break}}k||(F=F.getAudioTrack(),k=F.ZD.isDefault?void 0:F);return k};
lqk=function(F){for(var k=F.videoData.Y,z=g.l(Object.entries({cpn:F.videoData.clientPlaybackNonce,c:F.YG.Y.c,cver:F.YG.Y.cver})),x=z.next();!x.done;x=z.next()){var D=g.l(x.value);x=D.next().value;D=D.next().value;for(var e=g.l(Object.values(k.Y)),C=e.next();!C.done;C=e.next())ggM(C.value.ez,x,D);e=void 0;(e=k.B)==null||ggM(e,x,D)}z=F.YG;x=F.videoData;k=new g.oH6(z);D=k9n({hasSubfragmentedFmp4:x.hasSubfragmentedFmp4,q3:x.q3});k.B=D;k.t4=x.maxReadAheadMediaTimeMs/1E3||k.t4;D=z.schedule;D.U.Uz()===D.policy.U?
k.Xm=10:k.Xm=x.minReadAheadMediaTimeMs/1E3||k.Xm;k.sF=x.readAheadGrowthRateMs/1E3||k.sF;k.Fp=!zF();g.Vi(z)||!zF()?(D=z.experiments,k.J4=8388608,k.dH=524288,k.uo=5,k.RU=1048576,k.tT=1.5,k.Yu=4587520,Kg()&&(k.Yu=786432),k.K*=1.1,k.Qh*=1.1,k.YP=!0,k.uG=D.Ca("persist_disable_player_preload_on_tv")||D.Ca("persist_disable_player_preload_on_tv_for_living_room")||!1):z.L&&(k.K*=1.3,k.Qh*=1.3);g.SD&&g.ng("crkey")&&(D=z.Y.cmodel==="CHROMECAST/ANCHOVY",k.J4=20971520,k.dH=1572864,D&&(k.Yu=812500,k.Ki=1E3,k.v$=
5,k.RU=2097152));g.n3&&(k.YP=!0);z.supportsGaplessAudio()||(k.Tc=!1);BJ&&(k.ZR=!0);k.Om=z.V("html5_peak_shave");x.fetchType==="onesie"&&z.V("html5_disable_peak_shave_for_onesie")&&(k.Om=!1);var p;D=(p=x.Y)==null?void 0:hX(p);if(p9(x)){k.D7=!0;k.eh||(k.F1=!0);k.uL=!0;k.TR=!0;k.SW=!0;if(x.latencyClass==="ULTRALOW"||x.latencyClass==="LOW"&&!z.V("html5_disable_low_pipeline"))k.QV=2,k.Yg=4;k.I6=x.defraggedFromSubfragments;if(x.P5||z.V("html5_publish_all_cuepoints"))k.bO=!0;g.Uh(x)&&(k.mY=!1);k.Cs=g.Pe(z)}x.isAd()&&
(k.En=0,k.je=0);k.BF=z.V("html5_enable_subsegment_readahead_v3")||z.V("html5_ultra_low_latency_subsegment_readahead")&&x.latencyClass==="ULTRALOW";k.U=z.Jp();$n()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(z.Y.cmodel)&&!z.V("html5_disable_move_pssh_to_moov")&&D&&(k.YP=!1);e=0;z.V("html5_live_use_alternate_bandwidth_window_sizes")&&(e=z.schedule.policy.Y,x.isLivePlayback&&(e=g.lw(z.experiments,x.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":x.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":
"html5_live_normal_latency_bandwidth_window")||e));p=z.schedule;p.L.j=p9(x)?.5:0;if(!p.policy.L&&e&&(p=p.U,e=Math.round(e*p.resolution),e!==p.Y)){C=Array(e);var E=Math.min(e,p.U?p.Y:p.L),X=p.L-E;X<0&&(X+=p.Y);for(var q=0;q<E;++q)C[q]=p.values[(X+q)%p.Y];for(;q<e;++q)C[q]=Infinity;p.Y=e;p.values=C;p.L=E%e;p.U=E===e;p.hg=!0;p.W=V5x(p)}x.isLivePlayback&&(k.ET=g.lw(z.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,k.u$=!1);x.sz()&&(k.u$=!1);Eh(x)&&(k.BF=!0,x.latencyClass===
"LOW"?k.fJ=g.lw(z.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):x.latencyClass==="ULTRALOW"&&(k.fJ=g.lw(z.experiments,"html5_jumbo_ull_subsegment_readahead_target")),k.Xq=!0);x.oS()&&(k.MZ=1.3);k.ZR=k.ZR||x.yJ;k.l$=(k.l$||x.l$)&&z.G;k.Hx=z.V("html5_sunset_aac_high_codec_family");k.L=g.Mk(x);k.P7=x.B||k.L&&!z.V("html5_enable_ssap_seteos");z.Jp()&&(k.RS=!0);x.B&&!D&&(k.G0=!0);x.B&&x.isAd()&&(k.K*=1.6,k.Qh*=1.6);gy(x)&&(k.j=x.videoId,k.NZ=!0,k.J9=100,x.Yg&&x.Yg.length>0&&(k.Tr=x.Yg));
k.fb=x.T1;k.l0=a3(z,{},x.U||void 0,Dx(x));k.vR=ix(x)&&g.g8(z);$J(x)&&(k.m_=!0,z.V("html5_sabr_report_partial_segment_estimated_duration")&&(k.G9=!0),k.Y=!0,k.BC=z.V("html5_sabr_enable_live_clock_offset"),k.N9=z.V("html5_disable_client_resume_policy_for_sabr"),k.I4=z.V("html5_trigger_loader_when_idle_network"),k.X1=z.V("html5_sabr_parse_live_metadata_playback_boundaries"),k.eI=z.V("html5_enable_platform_backpressure_with_sabr"),k.tS=z.V("html5_consume_onesie_next_request_policy_for_sabr"),k.JA=z.V("html5_sabr_report_next_ad_break_time"),
k.UE=z.V("html5_log_high_res_buffer_timeline")&&z.Jp(),k.Iq=z.V("html5_remove_stuck_slices_beyond_max_buffer_limits"),k.J$=z.V("html5_gapless_sabr_btl_last_slice")&&xJ(x),k.dK=z.V("html5_reset_last_appended_slice_on_seek")&&xJ(x),p9(x)?(k.Vb=!0,k.sE=z.V("html5_disable_variability_tracker_for_live"),k.NJ=z.V("html5_sabr_use_accurate_slice_info_params"),z.V("html5_simplified_backup_timeout_sabr_live")&&(k.WO=!0,k.Ki=k.Lu)):k.vj=z.V("html5_probe_request_on_sabr_request_progress"),k.z9=z.V("html5_serve_start_seconds_seek_for_post_live_sabr"),
k.zM=z.V("html5_flush_index_on_updated_timestamp_offset"),k.cR=z.V("html5_enable_sabr_request_pipelining")&&!g.Mk(x),k.py=z.V("html5_ignore_partial_segment_from_live_readahead"),k.rq=z.V("html5_use_non_active_broadcast_for_post_live"),k.Xf=z.V("html5_use_centralized_player_time"),k.BM=z.V("html5_consume_onesie_sabr_seek"),k.PR=z.V("html5_enable_sabr_seek_loader_refactor"),k.KB=z.V("html5_update_segment_start_time_from_media_header"),x.enableServerStitchedDai&&(k.W=!0,k.Cj=z.V("html5_reset_server_stitch_state_for_non_sabr_seek"),
k.xg=z.V("html5_remove_ssdai_append_pause")&&!x.w3(),k.kG=z.V("html5_consume_ssdai_info_with_streaming"),k.H8=z.V("html5_ssdai_log_ssevt_in_loader")),k.Mo=z.Jp()||x.w3());k.S=k.Y&&z.V("html5_sabr_live");k.UH=g.Dxn(x);U_(z.W,tX.BITRATE)&&(k.Yu=NaN);if(p=g.lw(z.experiments,"html5_request_size_max_kb"))k.RU=p*1024;z.W.U?k.y6="; "+tX.EXPERIMENTAL.name+"=allowed":z.V("html5_enable_cobalt_tunnel_mode")&&(k.y6="; tunnelmode=true");p=x.serverPlaybackStartConfig;(p==null?0:p.enable)&&(p==null?0:p.playbackStartPolicy)&&
(k.OF=!0,zFn(k,p.playbackStartPolicy,2));p=UeR(F);F.yu.removeAll();a:{z=F.GD.kC;if(x=F.videoData.videoId)if(D=z.Y.get(x)){z.Y.remove(x);z=D;break a}z=void 0}F.aU=new g.M7(F,F.YG.schedule,k,F.videoData.Y,F.videoData.U,pn(F),p,F.videoData.enableServerStitchedDai,z,F.videoData.RU);k=F.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&F.videoData.isLivePlayback&&F.zf()?!0:F.GC&&g.Vi(F.YG)&&F.videoData.isLivePlayback;F.aU.initialize(F.getCurrentTime(),pn(F),k);F.videoData.probeUrl&&(F.aU.u$=
F.videoData.probeUrl);if(F.t3.length||F.GC)F.videoData.cotn||ER(F,!1);Onk(F.bu,F.aU);F.qR&&(Ke5(F.aU,new g.KA(F.qR)),F.UK("sdai",{sdl:1}));F.jz&&(F.aU.xn(F.jz),F.bu.B=!1);g.M8(F.videoData)&&(F=F.aU,F.policy.YZ=F.policy.VJ)};
e4=function(F){F.aU&&(F.aU.dispose(),F.aU=null,Onk(F.bu,null));F.XZ()?tRp(F):F.ew()};
tRp=function(F){if(F.IU)if(F.logger.debug("release media source"),F.Gd(),F.IU.W)try{F.YG.Jp()&&F.UK("rms",{l:"vprms",sr:F.XZ(),rs:oQ(F.IU)});F.IU.clear();var k;(k=F.mediaElement)!=null&&(k.L=F.IU);F.IU=null}catch(z){k=new g.Fa("Error while clearing Media Source in VideoPlayer: "+z.name+", "+z.message),k=IN(k),F.handleError(k),F.ew()}else F.ew()};
Z0C=function(F,k){k=k===void 0?!1:k;if(F.IU)return F.IU.U;F.logger.debug("update media source");a:{k=k===void 0?!1:k;try{g.Lg()&&F.videoData.uj()&&t_x(F.mediaElement);var z=F.mediaElement.MV(F.xv(),F.R2())}catch(D){if(pi6(F.A$,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",D);F.qk("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}F.k0(z,!1,!1,k)}var x;return((x=F.MV())==null?void 0:x.U)||null};
vfk=function(F,k){k=k===void 0?!1:k;if(F.aU){F.videoData.enableServerStitchedDai&&DaI(F.aU);var z=F.getCurrentTime()-F.Hj();F.aU.seek(z,{q6:k}).UT(function(){})}else lqk(F)};
PpM=function(F,k,z,x){z=z===void 0?!1:z;x=x===void 0?!1:x;if(F.IU&&(!k||F.IU===k)){F.logger.debug("media source opened");var D=F.getDuration();!D&&p9(F.videoData)&&(D=25200);if(F.IU.isView){var e=D;F.logger.debug(function(){return"Set media source duration to "+e+", video duration "+D});
e>F.IU.getDuration()&&c_6(F,e)}else c_6(F,D);Byn(F.aU,F.IU,z,x);F.publish("mediasourceattached")}};
c_6=function(F,k){if(F.IU){F.IU.zc(k);var z;(z=F.aU)!=null&&z.policy.Xf&&(z.S=k)}};
vJ5=function(F,k){hNk(F,k.reason,k.Y.info,k.token,k.videoId)};
O0n=function(F,k){F.YG.experiments.Ca("enable_adb_handling_in_sabr")&&(F.pauseVideo(!0),F.publish("onAbnormalityDetected"),k&&F.qk("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))};
j4=function(F,k){F.publish("internalvideodatachange",k===void 0?"dataupdated":k,F.videoData)};
VRR=function(F){var k="loadstart loadedmetadata play playing pause ended seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");F.V("html5_remove_progress_event_listener")||(k.push("progress"),k.push("suspend"));k=g.l(k);for(var z=k.next();!z.done;z=k.next())F.V9.N(F.mediaElement,z.value,F.LK,F);F.YG.xf&&F.mediaElement.tA()&&(F.V9.N(F.mediaElement,"webkitplaybacktargetavailabilitychanged",F.rpa,F),F.V9.N(F.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",F.vu_,
F))};
H0n=function(F){g.QL(F.Ob);IqR(F)||(F.Ob=g.TE(function(){return IqR(F)},100))};
IqR=function(F){var k=F.mediaElement;k&&F.hk&&!F.videoData.mp&&!fl("vfp",F.gH.timerName)&&k.gp()>=2&&!k.isEnded()&&wW(k.Ln())>0&&F.gH.tick("vfp");return(k=F.mediaElement)&&!F.videoData.mp&&k.getDuration()>0&&(k.isPaused()&&k.gp()>=2&&wW(k.Ln())>0&&(fl("pbp",F.gH.timerName)||F.gH.tick("pbp"),!F.videoData.eh||F.WA||k.isSeeking()||(F.WA=!0,F.publish("onPlaybackPauseAtStart"))),k=k.getCurrentTime(),Hh(F.Ey,k))?(F.nh(),!0):!1};
SLR=function(F){F.Ap().u7();if(Ab(F.videoData)&&Date.now()>F.Q1+6283){if(!(!F.isAtLiveHead()||F.videoData.Y&&BU(F.videoData.Y))){var k=F.Ap();if(k.qoe){k=k.qoe;var z=k.provider.La.lM(),x=g.fA(k.provider);$qH(k,x,z);z=z.U;isNaN(z)||g.Nq(k,x,"e2el",[z.toFixed(3)])}}F.V("html5_alc_live_log_rawlat")?(k=F.videoData,k=g.Pe(k.C())?!0:g.MU(k.C())?k.X1==="6":!1):k=g.Pe(F.YG);k&&F.UK("rawlat",{l:kP(F.vJ,"rawlivelatency").toFixed(3)});F.Q1=Date.now()}F.videoData.L&&Dm(F.videoData.L)&&(k=F.cD())&&k.videoHeight!==
F.U6&&(F.U6=k.videoHeight,hNk(F,"a",aqY(F,F.videoData.dH)))};
aqY=function(F,k){if(k.Y.video.quality==="auto"&&Dm(k.getInfo())&&F.videoData.P7)for(var z=g.l(F.videoData.P7),x=z.next();!x.done;x=z.next())if(x=x.value,x.getHeight()===F.U6&&x.Y.video.quality!=="auto")return x.getInfo();return k.getInfo()};
pmx=function(F){if(!Ab(F.videoData))return NaN;var k=0;F.aU&&F.videoData.Y&&(k=p9(F.videoData)?F.aU.gE.Uz()||0:F.videoData.Y.mp);return(0,g.VE)()/1E3-F.B7()-k};
deD=function(F){F.mediaElement&&F.mediaElement.Pc()&&(F.zN=(0,g.VE)());F.YG.UE?g.mz(function(){b0D(F)},0):b0D(F)};
b0D=function(F){var k;if((k=F.IU)==null||!k.Ls()){if(F.mediaElement)try{F.sb=F.mediaElement.playVideo()}catch(x){Cn(F,"err."+x)}if(F.sb){var z=F.sb;z.then(void 0,function(x){F.logger.debug(function(){return"playMediaElement failed: "+x});
if(!g.n(F.playerState,4)&&!g.n(F.playerState,256)&&F.sb===z)if(x&&x.name==="AbortError"&&x.message&&x.message.includes("load"))F.logger.debug(function(){return"ignore play media element failure: "+x.message});
else{var D="promise";x&&x.name&&(D+=";m."+x.name);Cn(F,D);F.aA=!0;F.videoData.zM=!0}})}}};
Cn=function(F,k){g.n(F.playerState,128)||(F.FI(qj(F.playerState,1028,9)),F.UK("dompaused",{r:k}),F.publish("onAutoplayBlocked"))};
iO=function(F,k){k=k===void 0?!1:k;if(!F.mediaElement||!F.videoData.U)return!1;var z=k;z=z===void 0?!1:z;var x=null;var D;if((D=F.videoData.U)==null?0:D.Y){x=Z0C(F,z);var e;(e=F.aU)==null||e.resume()}else e4(F),F.videoData.dH&&(x=F.videoData.dH.t0());D=F.mediaElement.YW();z=!1;D&&D.VZ(x)||(J_Y(F,x),z=!0);g.n(F.playerState,2)||(x=F.bu,k=k===void 0?!1:k,x.W||!(x.U>0)||x.mediaElement&&x.mediaElement.getCurrentTime()>0||(k={Sr:"seektimeline_resumeTime",q6:k},x.videoData.mp||(k.seekSource=15),x.seekTo(x.U,
k)));a:{k=z;if($J(F.videoData)){if(!F.videoData.sz())break a}else if(!g.me(F.videoData))break a;if(F.mediaElement)if((x=F.videoData.W)&&F.mediaElement.tA()){D=F.mediaElement.T$();if(F.Q6)if(D!==F.Q6.element)X6(F);else if(k&&x.flavor==="fairplay"&&!fg())X6(F);else break a;if(F.V("html5_report_error_for_unsupported_tvos_widevine")&&fg()&&x.flavor==="widevine")F.qk("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{F.Q6=new LTp(D,F.videoData,F.YG);F.Q6.subscribe("licenseerror",
F.oR,F);F.Q6.subscribe("qualitychange",F.uIf,F);F.Q6.subscribe("heartbeatparams",F.K_,F);F.Q6.subscribe("keystatuseschange",F.Qe,F);F.Q6.subscribe("ctmp",F.UK,F);k=g.l(F.yu.keys);for(x=k.next();!x.done;x=k.next())x=F.yu.get(x.value),F.Q6.Rl(x);F.V("html5_eme_loader_sync")||F.yu.removeAll()}}else F.qk("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return z};
J_Y=function(F,k){F.gH.tick("vta");WC("vta",void 0,"video_to_ad");F.getCurrentTime()>0&&a2Y(F.bu,F.getCurrentTime());F.mediaElement.activate(k);F.IU&&eB(0,4);!F.videoData.mp&&F.playerState.isOrWillBePlaying()&&F.jF.start();if(s7I(F)){var z;if(k=(z=F.mediaElement)==null?void 0:z.audioTracks())k.onchange=function(){F.publish("internalaudioformatchange",F.videoData,!0)}}};
X6=function(F){F.Q6&&(F.Q6.dispose(),F.Q6=null)};
y_I=function(F){var k=k===void 0?!1:k;F.logger.debug("reattachVideoSource");F.mediaElement&&(F.IU?(X6(F),F.ew(),Z0C(F,k)):(F.videoData.dH&&F.videoData.dH.gF(),F.mediaElement.stopVideo()),F.playVideo())};
RNp=function(F,k){F.YG.V("html5_log_rebuffer_reason")&&(k={r:k,lact:Vj()},F.mediaElement&&(k.bh=$h(F.mediaElement)),F.UK("bufreason",k))};
gf6=function(F,k){if(F.YG.Jp()&&F.mediaElement){var z=F.mediaElement.rH();z.omt=(F.mediaElement.getCurrentTime()+F.Hj()).toFixed(3);z.ps=F.playerState.state.toString(16);z.rt=(g.fA(F.Ap().provider)*1E3).toFixed();z.e=k;F.vP[F.cA++%5]=z}try{if(k==="timeupdate"||k==="progress")return}catch(x){}F.logger.debug(function(){return"video element event "+k})};
YLR=function(F){if(F.YG.Jp()){F.vP.sort(function(x,D){return+x.rt-+D.rt});
for(var k=g.l(F.vP),z=k.next();!z.done;z=k.next())z=z.value,F.UK("vpe",Object.assign({t:z.rt},z));F.vP=[];F.cA=0}};
nfD=function(F){if(g.ng("cobalt")&&g.ng("nintendo switch")){var k=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;F.UK("nxdock",{d:k})}};
ER=function(F,k){var z;(z=F.aU)==null||LA(z,k)};
jnI=function(F,k){return g.Mk(F.videoData)&&F.jz?F.jz.handleError(k,void 0):!1};
uPI=function(F){kp(F.videoData,"html5_set_debugging_opt_in")&&(F=g.nu(),g.M5(0,183)||(fu(183,!0),F.save()))};
MRk=function(F){return g.Mk(F.videoData)&&F.jz?JA(F.jz):F.videoData.xN()};
jLR=function(F,k){F.GD.gi()||(F.UK("sgap",{f:k}),F.GD.clearQueue(!1,k==="pe"))};
Mq=function(F){return F.V("html5_disable_video_player_initiated_seeks")&&$J(F.videoData)};
LVx=function(F){FC.call(this,F);var k=this;this.events=new g.yQ(F);g.b(this,this.events);AM(this.api,"isLifaAdPlaying",function(){return k.api.isLifaAdPlaying()});
this.events.N(F,"serverstitchedvideochange",function(){var z;(z=k.api.getVideoData())!=null&&z.w3()&&(k.api.isLifaAdPlaying()?(k.playbackRate=k.api.getPlaybackRate(),k.api.setPlaybackRate(1)):k.api.setPlaybackRate(k.playbackRate))});
this.playbackRate=1};
fqC=function(F){FC.call(this,F);var k=this;this.events=new g.yQ(F);g.b(this,this.events);AM(this.api,"seekToChapterWithAnimation",function(z){k.seekToChapterWithAnimation(z)});
AM(this.api,"seekToTimeWithAnimation",function(z,x){k.seekToTimeWithAnimation(z,x)});
AM(this.api,"renderChapterSeekingAnimation",function(z,x,D){k.api.renderChapterSeekingAnimation(z,x,D)});
AM(this.api,"setMacroMarkers",function(z){k.setMacroMarkers(F,z)});
AM(this.api,"changeMarkerVisibility",function(z,x,D){k.changeMarkerVisibility(z,x,D)});
AM(this.api,"isSameMarkerTypeVisible",function(z){return k.isSameMarkerTypeVisible(z)})};
KVR=function(F,k,z){var x=F.api.getCurrentTime()*1E3<k?1:-1;F.api.renderChapterSeekingAnimation(x,z);F.api.seekTo(k/1E3,void 0,void 0,void 0,3)};
WVI=function(F,k){var z,x;return(z=us(F,"macroMarkersListEntity",k))==null?void 0:(x=z.markersList)==null?void 0:x.markerType};
FUR=function(F,k){var z=g.ok.getState().entities;F=WVI(z,F);k=g.l(k.UH);for(var x=k.next();!x.done;x=k.next())if(F===WVI(z,x.value))return!0;return!1};
qC=function(F){FC.call(this,F);var k=this;this.events=new g.yQ(F);g.b(this,this.events);this.events.N(F,"videodatachange",function(){k.updateMetadata()});
this.events.N(F,"presentingplayerstatechange",function(){k1n(k)})};
NC=function(F,k){try{navigator.mediaSession.setActionHandler(F,k)}catch(z){}};
o9R=function(F){NC("play",function(){F.api.playVideo()});
NC("pause",function(){F.api.pauseVideo()});
NC("seekbackward",function(){F.api.seekBy(-5*F.api.getPlaybackRate())});
NC("seekforward",function(){F.api.seekBy(5*F.api.getPlaybackRate())});
NC("seekto",function(k){k=k.seekTime;k!=null&&F.api.seekTo(k)})};
zdH=function(F){var k,z,x,D;return(k=F.api.getVideoData().getWatchNextResponse())==null?void 0:(z=k.playerOverlays)==null?void 0:(x=z.playerOverlayRenderer)==null?void 0:(D=x.browserMediaSession)==null?void 0:D.browserMediaSessionRenderer};
xwY=function(F){var k=[];if(!F||!F.thumbnails)return k;F=g.l(F.thumbnails);for(var z=F.next();!z.done;z=F.next())z=z.value,z.url&&(!z.width||z.width<=0||!z.height||z.height<=0||g.e9(z.url)&&k.push({src:z.url||"",sizes:z.width+"x"+z.height,type:"image/jpeg"}));return k};
k1n=function(F){F=F.api.getPlayerStateObject();F=F.isCued()||F.isError()?"none":F.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=F};
iaI=function(F){var k=F.api.getProgressState().seekableEnd;k&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({duration:k,playbackRate:F.api.getPlaybackRate(),position:F.api.getCurrentTime()})};
uO=function(F){FC.call(this,F);var k=this;this.L=new Map;this.U=this.Y=void 0;this.compositeVideoState=null;this.events=new g.yQ(F);g.b(this,this.events);this.events.N(F,"modulecreated",function(z){var x;a:{var D,e,C,p=(D=k.api.getVideoData())==null?void 0:(e=D.getPlayerResponse())==null?void 0:(C=e.overlay)==null?void 0:C.playerControlsOverlayRenderer;if(p&&(D=g.J(p.compositeVideoOverlay,DwH),D==null?0:(x=D.sources)==null?0:x.length))for(x=g.l(D==null?void 0:D.sources),D=x.next();!D.done;D=x.next())if(D=
D.value,D.isActive){x=D;break a}x=void 0}z==="captions"&&(x==null?void 0:x.topLeftCornerX)!==void 0&&(x==null?void 0:x.topLeftCornerY)!==void 0&&(x==null?void 0:x.width)!==void 0&&(x==null?void 0:x.height)!==void 0&&k.api.b9({top:x.topLeftCornerY,right:1-x.topLeftCornerX-x.width,bottom:1-x.topLeftCornerY-x.height,left:x.topLeftCornerX})});
this.events.N(F,"videodatachange",function(z){var x=k.api.getVideoData();k.Y=void 0;k.L.clear();k.api.H7("compositeembargo",1);var D=x==null?void 0:x.Gs.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(D==null?0:D.length)?$wR(k,D.filter(function(e){return jFa(k,e)})):(x==null?0:x.cueRanges)&&$wR(k,x.cueRanges.filter(function(e){return jFa(k,e)}));
z==="dataupdated"&&(x==null?void 0:x.compositeLiveStatusToken)!==k.U&&(k.U=x==null?void 0:x.compositeLiveStatusToken,k.api.Vm())});
this.events.N(F,g.X$("compositeembargo"),function(z){var x;if(((x=k.Y)==null?void 0:x.id)!==z.id&&(k.api.PO(!0),k.L.has(z.id))){var D=k.L.get(z.id);x=k.api.getVideoData();D=g.l(D);for(var e=D.next();!e.done;e=D.next()){var C=void 0;e=(C=e.value.compositeEmbargo)==null?void 0:C.embargoStatusToken;x.sI!==e&&(x.sI=e,k.api.Vm());edn(k,z)}}});
this.events.N(F,g.qQ("compositeembargo"),function(z){var x;if(((x=k.Y)==null?void 0:x.id)===z.id&&(k.api.PO(!1),k.L.has(z.id))){if(z=k.api.getVideoData())z.sI=void 0;k.api.Vm();edn(k)}});
this.events.N(F,"heartbeatRequest",function(z){k.compositeVideoState!==null&&(z.playbackState||(z.playbackState={}),z.playbackState.compositeVideoState=k.compositeVideoState)});
this.events.N(F,"internalaudioformatchange",function(z){if(k.api.V("html5_sabr_enable_server_xtag_selection")){var x=k.api.getVideoData(void 0,!0);if(x&&Rk(x)){var D=k.api.getAvailableAudioTracks();D=g.l(D);for(var e=D.next();!e.done;e=D.next())if(e.value.getLanguageInfo().getId()===z){x.ET=z;k.api.C().Xm=z;break}}}});
this.events.N(F,"onPlaybackAudioChange",function(){k.api.Vm()});
AM(F,"setCompositeParam",function(z){k.compositeVideoState=z})};
edn=function(F,k){var z;((z=F.Y)==null?void 0:z.id)!==(k==null?void 0:k.id)&&(F.Y&&(F.L.delete(F.Y.id),F.api.h$([F.Y],1)),F.Y=k)};
$wR=function(F,k){k=g.l(k);for(var z=k.next();!z.done;z=k.next()){var x=z.value,D=void 0;z=Number((D=x.playbackRelativePosition)==null?void 0:D.utcTimeMs)/1E3;var e=void 0;D=z+Number((e=x.duration)==null?void 0:e.seconds);e="composite_embargo_"+z;x.onEnter&&(x=x.onEnter.filter(F.j),x.length&&(F.L.set(e,x),F.api.addUtcCueRange(e,z,D,"compositeembargo",!1)))}};
jFa=function(F,k){var z;return(z=k.onEnter)==null?void 0:z.some(F.j)};
C2M=function(F){FC.call(this,F);AM(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));AM(this.api,"updateDownloadState",this.updateDownloadState.bind(this));AM(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));AM(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));AM(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));AM(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));AM(this.api,"setUpPositionSyncInterval",
this.setUpPositionSyncInterval.bind(this))};
w1=function(F){FC.call(this,F);var k=this;AM(F,"getAvailableQualityData",function(){return k.getAvailableQualityData()});
AM(F,"getAvailableQualityDataAndMessaging",function(){return k.getAvailableQualityDataAndMessaging()})};
ARa=function(F,k,z){var x=[],D=k?156595:151874;F=g.l(F);for(var e=F.next();!e.done;e=F.next()){var C=e.value;e=C.video;C={formatId:C.id,qualityLabel:e.qualityLabel,quality:e.quality,isPlayable:k};if(e=z.get(e.qualityLabel))C.paygatedQualityDetails={paygatedIndicatorText:e.paygatedIndicatorText,endpoint:e.endpoint,veType:D,trackingParams:e.trackingParams};x.push(C)}return x};
pLR=function(F){for(var k=0,z=0;z<F.length;z++)if(F[z].paygatedQualityDetails){var x=F[z];F.splice(z,1);F.splice(k,0,x);k++}};
E9p=function(F){var k=new Set,z=new Map,x={};F=g.l(F);for(var D=F.next();!D.done;D=F.next()){D=D.value;var e=D.quality,C=D.isPlayable,p=D.qualityLabel;p&&e&&(C&&z.has(e)&&z.get(e)!==p?k.add(e):C&&z.set(e,p),x[p]||(x[p]=D))}z=[];x=g.l(Object.values(x));for(F=x.next();!F.done;F=x.next())D=F.value,(F=D.quality)&&!k.has(F)&&(D.formatId=void 0),z.push(D);return z};
m4=function(F){FC.call(this,F);var k=this;this.U=1;this.gH=null;this.Pe={ort:function(){return k.U}};
this.events=new g.yQ(F);g.b(this,this.events);this.events.N(F,"d6de4videobindingchange",function(z){k.y9(z)});
this.events.N(F,"csiinitialized",function(){XLn(k)})};
XLn=function(F){if(qUD()){F.gH=F.api.g$();F.Y=new xh;F.U=2;var k=g.lw(F.api.C().experiments,"html5_d6de4_defer_timeout_ms");F.gH.l7("pt_pish");k?g.mz(function(){NOY(F)},k):F.api.V("html5_enable_d6de4_idle_priority_job")&&window.requestIdleCallback?window.requestIdleCallback(function(){NOY(F)}):NOY(F)}};
NOY=function(F){if(qUD()){F.gH=F.api.g$();var k=g.lw(F.api.C().experiments,"html5_d6de4_cloud_project_number");F.gH.l7("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:k}).then(function(x){F.L=x;var D;(D=F.Y)==null||D.resolve();F.gH.l7("pt_pif")}).catch(function(x){Td(x,"player_start");
F.gH.l7("pt_pie");var D;(D=F.Y)==null||D.reject(x)})}catch(x){Td(x,"player_start_catch");
F.api.UK("pfes",{});var z;(z=F.Y)==null||z.reject(x)}}};
uiR=function(F,k){if(F.L&&!F.V("html5_disable_d6de4_mint_debug")){var z=k.videoId;F.U=3;F.gH.l7("pt_ms");try{F.L.requestToken(z).then(function(x){F.gH.l7("pt_mf");if(x=jP(x))k.kV={P7K:x}}).catch(function(x){F.gH.l7("pt_me");
Td(x,"player_generate");F.handleError(x,k)})}catch(x){Td(x,"player_generate_catch"),F.handleError(x,k)}}};
wLH=function(F,k){F.api.V("html5_enable_d6de4_cold_start_and_error")&&(k.kV={coldStartInfo:{clientState:F.U}})};
Td=function(F,k){F.message&&g.yI(Error(k+"_"+F.message))};
qUD=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider};
lO=function(F){g.Y.call(this,{X:"button",WR:["ytp-pip-button","ytp-button"],D:{title:"{{title}}","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},Z:[r6C()]});var k=this;this.api=F;this.listen("click",this.onClick);var z=this.api.qB(),x=z.subscribe("visibilitystatechange",function(){k.G4(z.NB())});
this.addOnDisposeCallback(function(){z.QL(x)});
GL(F,this.element,this);this.G4(z.NB())};
Qe=function(F){FC.call(this,F);var k=this;this.events=new g.yQ(F);g.b(this,this.events);this.events.N(F,"standardControlsInitialized",function(){k.createButton()});
g.f_(this.api.C())&&(this.V("web_watch_pip")||this.V("web_shorts_pip"))&&AM(this.api,"setDocumentPictureInPicture",function(z){k.setDocumentPictureInPicture(z)})};
mwI=function(F){var k=F.api.getVideoData();F.button.Yj(k.KW)};
TOC=function(F){FC.call(this,F);var k=this;this.events=new g.yQ(F);g.b(this,this.events);AM(this.api,"musicDisableUi",function(){g.C6(k.api.getRootNode(),"ytp-player-in-bar-disable-ui")});
AM(this.api,"musicEnableUi",function(){g.p6(k.api.getRootNode(),"ytp-player-in-bar-disable-ui")})};
r1=function(F,k,z){k=k===void 0?!0:k;z=z===void 0?!1:z;g.Y.call(this,{X:"div",J:"ytp-suggested-action"});var x=this;this.T=F;this.Xm=this.PR=this.t4=this.Qh=this.j=this.B=this.expanded=this.enabled=this.u$=!1;this.vR=new g.KS(function(){x.badge.element.style.width=""},200,this);
this.l$=new g.KS(function(){hr(x);sR(x)},200,this);
this.J4=this.T.V("delhi_modern_web_player")?40:34;this.dismissButton=new g.Y({X:"button",WR:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.b(this,this.dismissButton);this.U=new g.Y({X:"div",J:"ytp-suggested-action-badge-expanded-content-container",Z:[{X:"label",J:"ytp-suggested-action-badge-title",jk:"{{badgeLabel}}"},this.dismissButton]});g.b(this,this.U);this.yh=new g.Y({X:"div",J:"ytp-suggested-action-badge-icon-container",Z:[k?{X:"div",J:"ytp-suggested-action-badge-icon"}:
""]});g.b(this,this.yh);this.badge=new g.Y({X:z?"div":"button",WR:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],Z:[this.yh,this.U]});g.b(this,this.badge);this.badge.T4(this.element);this.K=new g.Cv(this.badge,250,!1,100);g.b(this,this.K);this.kG=new g.Cv(this.U,250,!1,100);g.b(this,this.kG);this.dH=new g.fS(this.fTa,null,this);g.b(this,this.dH);this.NJ=new g.fS(this.KS,null,this);g.b(this,this.NJ);g.b(this,this.vR);g.b(this,this.l$);this.T.createServerVe(this.badge.element,
this.badge,!0);this.T.createServerVe(this.dismissButton.element,this.dismissButton,!0);this.N(this.T,"onHideControls",function(){x.eB(!1)});
this.N(this.T,"onShowControls",function(){x.eB(!0)});
this.N(this.badge.element,"click",this.In);this.N(this.dismissButton.element,"click",this.rJ);this.N(this.T,"pageTransition",this.rZ);this.N(this.T,"appresize",this.e1);this.N(this.T,"fullscreentoggled",this.AlR);this.N(this.T,"cardstatechange",this.EjR);this.N(this.T,"annotationvisibility",this.cG_,this);this.N(this.T,"offlineslatestatechange",this.g94,this)};
hr=function(F){g.XF(F.badge.element,"ytp-suggested-action-badge-with-controls",F.t4||!F.B)};
sR=function(F,k){var z=F.d1();F.expanded!==z&&(F.expanded=z,k===void 0||k?(F.dH.stop(),F.NJ.stop(),F.vR.stop(),F.dH.start()):(F.U.Yj(F.expanded),g.XF(F.badge.element,"ytp-suggested-action-badge-expanded",F.expanded)),F.MK())};
lpY=function(F){var k=F.text||"",z=g.xM("ytp-suggested-action-badge-title",F.element);z&&g.uE(z,k);F.badge.element.setAttribute("aria-label",k);F.dismissButton.element.setAttribute("aria-label",F.RU?F.RU:"")};
Bq=function(F,k,z,x,D,e){var C={X:"div",J:"ytp-panel"};if(z){var p="ytp-panel-back-button";var E="ytp-panel-title";var X={X:"div",J:"ytp-panel-header",Z:[{X:"div",WR:["ytp-panel-back-button-container"],Z:[{D:{"aria-label":"Back to previous menu"},X:"button",WR:["ytp-button",p]}]},{X:"span",WR:[E],D:F.V("web_enable_a11y_header_role_in_panel")?{role:"heading","aria-level":"2"}:void 0,Z:[z]}]};if(D){var q="ytp-panel-options";X.Z.push({X:"button",WR:["ytp-button",q],Z:[x]})}C.Z=[X]}x=!1;e&&(e={X:"div",
J:"ytp-panel-footer",Z:[e]},x=!0,C.Z?C.Z.push(e):C.Z=[e]);g.Q7.call(this,C);this.content=k;x&&C.Z?k.T4(this.element,C.Z.length-1):k.T4(this.element);this.SH=!1;this.TW=x;z&&(z=this.EK(E),this.N(this.EK(p),"click",this.iZ),this.N(z,"click",this.iZ),this.SH=!0,D&&this.N(this.EK(q),"click",D));k.subscribe("size-change",this.Sy,this);this.N(F,"fullscreentoggled",this.Sy);this.T=F};
g.Gd=function(F,k,z,x,D,e){k=k===void 0?null:k;var C={role:"menu"};k&&(C.id=k);k=new g.Q7({X:"div",J:"ytp-panel-menu",D:C});Bq.call(this,F,k,z,x,D,e);this.menuItems=k;this.items=[];g.b(this,this.menuItems)};
g.UR=function(F){for(var k=g.l(F.items),z=k.next();!z.done;z=k.next())z.value.unsubscribe("size-change",F.FX,F);F.items=[];try{g.Ey(F.menuItems.element)}catch(e){var x,D;g.yI(new g.Fa("Failed to remove menu items from panel menu.",{error:e.message,originalStack:e.stack,childToBeRemoved:(D=(x=F.menuItems.element.firstChild)==null?void 0:x.textContent)!=null?D:"child element not found"}))}F.menuItems.publish("size-change")};
QFC=function(F,k){return k.priority-F.priority};
g.tr=function(F,k){g.RL.call(this,F,{X:"div",WR:["ytp-popup",k||""]},100,!0);this.Y=[];this.G=this.S=null;this.maxHeight=this.maxWidth=0;this.size=new g.BB(0,0);this.listen("keydown",this.jD)};
hdM=function(F){var k=F.Y[F.Y.length-1];if(k){g.s0(F.element,F.maxWidth||"100%",F.maxHeight||"100%");g.Xr(k.element,"width","");g.Xr(k.element,"height","");g.Xr(k.element,"maxWidth","100%");g.Xr(k.element,"maxHeight","100%");g.Xr(k.content.element,"height","");var z=g.rQ(k.element);z.width+=1;z.height+=1;g.Xr(k.element,"width",z.width+"px");g.Xr(k.element,"height",z.height+"px");g.Xr(k.element,"maxWidth","");g.Xr(k.element,"maxHeight","");var x=0;k.SH&&(x=g.rQ(k.EK("ytp-panel-header")).height);var D=
0;k.TW&&(D=k.EK("ytp-panel-footer"),g.Xr(D,"width",z.width+"px"),D=g.rQ(D).height);g.Xr(k.content.element,"height",z.height-x-D+"px");k.element instanceof HTMLElement&&(x=k.element,D=x.scrollWidth-x.clientWidth,x.offsetWidth-x.clientWidth>0&&D>0&&(z.width+=D,g.Xr(k.element,"width",z.width+"px")));F.size=z}};
g.Z2=function(F,k){var z=F.Y[F.Y.length-1];z!==k&&(F.Y.push(k),sFa(F,z,k))};
g.vq=function(F){if(!(F.Y.length<=1)){var k=F.Y.pop(),z=F.Y[0];F.Y=[z];sFa(F,k,z,!0)}};
sFa=function(F,k,z,x){rRn(F);k&&(k.unsubscribe("size-change",F.lN,F),k.unsubscribe("back",F.FZ,F));z.subscribe("size-change",F.lN,F);z.subscribe("back",F.FZ,F);if(F.Q2){g.C6(z.element,x?"ytp-panel-animate-back":"ytp-panel-animate-forward");z.T4(F.element);z.focus();F.element.scrollLeft=0;F.element.scrollTop=0;var D=F.size;hdM(F);g.s0(F.element,D);F.S=new g.KS(function(){BOI(F,k,z,x)},20,F);
F.S.start()}else z.T4(F.element),k&&k.detach()};
BOI=function(F,k,z,x){F.S.dispose();F.S=null;g.C6(F.element,"ytp-popup-animating");x?(g.C6(k.element,"ytp-panel-animate-forward"),g.p6(z.element,"ytp-panel-animate-back")):(g.C6(k.element,"ytp-panel-animate-back"),g.p6(z.element,"ytp-panel-animate-forward"));g.s0(F.element,F.size);F.G=new g.KS(function(){g.p6(F.element,"ytp-popup-animating");k.detach();g.EW(k.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);F.G.dispose();F.G=null},250,F);
F.G.start()};
rRn=function(F){F.S&&g.FF(F.S);F.G&&g.FF(F.G)};
cq=function(F){g.tr.call(this,F,"ytp-shopping-product-menu");this.tv=new g.Gd(this.T);g.b(this,this.tv);this.hide();g.Z2(this,this.tv);g.Hv(this.T,this.element,4)};
Uwp=function(F,k,z){var x,D=k==null?void 0:(x=k.text)==null?void 0:x.simpleText;D&&(z=G1n(F,z,D,k==null?void 0:k.icon,k==null?void 0:k.secondaryIcon),k.navigationEndpoint&&z.listen("click",function(){F.T.ZQ("innertubeCommand",k.navigationEndpoint);F.hide()},F))};
tf9=function(F,k,z){var x,D=k==null?void 0:(x=k.text)==null?void 0:x.simpleText;D&&G1n(F,z,D,k==null?void 0:k.icon).listen("click",function(){var e;(k==null?void 0:(e=k.icon)==null?void 0:e.iconType)==="HIDE"?F.T.publish("featuredproductdismissed"):k.serviceEndpoint&&F.T.ZQ("innertubeCommand",k.serviceEndpoint);F.hide()},F)};
G1n=function(F,k,z,x,D){k=new g.LY(g.fY({},[],!1,!!D),k,z);D&&k.updateValue("secondaryIcon",ZaI(D));k.setIcon(ZaI(x));g.b(F,k);F.tv.Iy(k,!0);return k};
ZaI=function(F){if(!F)return null;switch(F.iconType){case "ACCOUNT_CIRCLE":return{X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{X:"path",D:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z",
fill:"#fff"}}]};case "FLAG":return{X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{X:"path",D:{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 wA9();case "HIDE":return{X:"svg",D:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{X:"g",Z:[{X:"path",D:{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 Oe()}};
Pq=function(F){r1.call(this,F,!1,!0);this.isCounterfactual=this.L=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.B=!0;this.overflowButton=new g.Y({X:"button",WR:["ytp-featured-product-overflow-icon","ytp-button"],D:{"aria-haspopup":"true"}});this.overflowButton.hide();g.b(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.Y({X:"img",J:"ytp-suggested-action-badge-img",D:{src:"{{url}}"}});
this.thumbnailImage.hide();g.b(this,this.thumbnailImage);this.thumbnailIcon=new g.Y({X:"div",J:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.b(this,this.thumbnailIcon);this.banner=new g.Y({X:"a",J:"ytp-suggested-action-container",Z:[this.thumbnailImage,this.thumbnailIcon,{X:"div",J:"ytp-suggested-action-details",Z:[{X:"text",J:"ytp-suggested-action-title",jk:"{{title}}"},{X:"text",J:"ytp-suggested-action-subtitle",jk:"{{subtitle}}"},{X:"text",J:"ytp-suggested-action-metadata-text",
jk:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.b(this,this.banner);this.banner.T4(this.U.element);this.N(this.T,"videodatachange",this.onVideoDataChange);this.N(this.T,g.X$("suggested_action_view_model"),this.JlU);this.N(this.T,g.qQ("suggested_action_view_model"),this.qJG);this.N(this.overflowButton.element,"click",this.hC);this.N(F,"featuredproductdismissed",this.rJ);this.T.createServerVe(this.banner.element,this.banner,!0)};
v9Y=function(F){F.isInitialized&&(F.enabled=F.isVisible,F.PR=F.isVisible,sR(F),F.e1(),F.thumbnailImage.Yj(F.isVisible),F.shouldHideDismissButton||F.dismissButton.Yj(F.isVisible),F.shouldShowOverflowButton&&F.overflowButton.Yj(F.isVisible))};
OR=function(){Pq.apply(this,arguments)};
cRp=function(F){FC.call(this,F);this.Y=new OR(this.api);g.b(this,this.Y);g.Hv(this.api,this.Y.element,4)};
Ve=function(F){FC.call(this,F);var k=this;this.Y="";this.U=!0;this.L=this.api.V("html5_enable_audio_track_stickiness_phase_two");var z=new g.yQ(F);g.b(this,z);z.N(F,"internalaudioformatchange",function(x,D){P2k(k,x,D)});
z.N(F,"videoplayerreset",function(){Oak(k)});
z.N(F,"videodatachange",function(x,D){k.onVideoDataChange(x,D)})};
P2k=function(F,k,z){if(z){var x="";if(Vfn(F,k)&&(x=k,F.L||(F.Y=k),F.api.V("html5_sabr_enable_server_xtag_selection"))){if(z=F.api.getVideoData(void 0,!0))z.ET=k;F.api.C().Xm=k}if(F.L&&x&&Ip5(F,x)){b$5(F.api,F.Y||x);var D;QK(DL(F.api.C(),(D=F.api.getVideoData())==null?void 0:g.dy(D)),function(e){HaD(F,x,e)})}}};
Oak=function(F){if(F.Y)apD(F);else{var k;if(F.L&&((k=KN())==null?0:k.size)){var z;QK(DL(F.api.C(),(z=F.api.getVideoData())==null?void 0:g.dy(z)),function(x){if((x=SU5(x))&&Ip5(F,x)){var D=F.api.getVideoData(void 0,!0);D&&(D.ET=x);F.api.C().Xm=x}})}}};
apD=function(F){var k=F.api.getVideoData(void 0,!0);k&&(k.ET=F.Y)};
HaD=function(F,k,z){SU5(z)!==k&&(ban([{settingItemId:Ir(z),settingOptionValue:{stringValue:k}}]),QK(F.Bl(),function(x){xEC(x,Ir(z),{stringValue:k})}))};
dwk=function(F,k){hd(QK(QK(F.Bl(),function(z){return oZx(z,[Ir(k)])}),function(z){if(z){z=g.l(z);
for(var x=z.next();!x.done;x=z.next()){var D=x.value;x=D.key;D=D.value;x&&D&&(ban([{settingItemId:x,settingOptionValue:D}]),Oak(F))}}}),function(){F.U=!0})};
Vfn=function(F,k){F=F.api.getAvailableAudioTracks();F=g.l(F);for(var z=F.next();!z.done;z=F.next())if(z=z.value,z.getLanguageInfo().getId()===k)return z;return null};
SU5=function(F){F=Ir(F);var k=KN();F=k?k.get(F):void 0;return F&&F.stringValue?F.stringValue:""};
Ir=function(F){var k=(484).toString();F&&(k=(483).toString());return k};
Ip5=function(F,k){var z;return k.split(".")[0]!==""&&((z=F.api.getVideoData())==null?void 0:!Rk(z))};
ban=function(F){var k=KN();k||(k=new Map);F=g.l(F);for(var z=F.next();!z.done;z=F.next())z=z.value,k.set(z.settingItemId,z.settingOptionValue);k=JSON.stringify(Object.fromEntries(k));g.SZ("yt-player-user-settings",k,2592E3)};
g.Hq=function(F,k,z,x,D,e,C){g.LY.call(this,g.fY({"aria-haspopup":"true"}),k,F);this.Sz=x;this.B=!1;this.U=null;this.options={};this.L=new g.Gd(z,void 0,F,D,e,C);g.b(this,this.L);this.listen("keydown",this.Fl);this.listen("click",this.open)};
JRM=function(F){if(F.U){var k=F.options[F.U];k.element.getAttribute("aria-checked");k.element.setAttribute("aria-checked","false");F.U=null}};
yRM=function(F,k){g.Hq.call(this,"Sleep timer",g.EA.SLEEP_TIMER,F,k);this.T=F;this.K={};this.S=this.s9("Off");this.G=this.Y="";F.V("web_settings_menu_icons")&&this.setIcon({X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{X:"path",D:{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.j=new g.Y({X:"div",WR:["ytp-menuitem-label-wrapper"],Z:[{X:"div",jk:"End of video"},{X:"div",WR:["ytp-menuitem-sublabel"],jk:"{{content}}"}]});g.b(this,this.j);this.listen("click",this.onClick);this.N(F,"videodatachange",this.onVideoDataChange);this.N(F,"presentingplayerstatechange",this.G4);this.N(F,"settingsMenuVisibilityChanged",this.zK4);F.createClientVe(this.element,this,218889);this.G4();this.T.ZQ("onSleepTimerFeatureAvailable")};
Rdp=function(F){var k="Off 10 15 20 30 45 60".split(" "),z;((z=F.T.getVideoData())==null?0:z.isLivePlayback)||k.push("End of video");z=F.T.getPlaylist();var x;z&&((x=z.listId)==null?void 0:x.type)!=="RD"&&k.push("End of playlist");F.zR(g.tW(k,F.s9));F.K=g.qT(k,F.s9,F);k=F.s9("End of video");F.options[k]&&g.Ma(F.options[k],F.j)};
g9n=function(F,k){var z=F.K[k],x=z==="End of video"||z==="End of playlist";z==="Off"&&(F.Y="");F.T.getPlayerState()!==0&&F.T.getPlayerState()!==5||!x?(F.S=k,g.Hq.prototype.XY.call(F,k),F.hG(k),F.T.ZQ("onSleepTimerSettingsChanged",z)):F.T.ZQ("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})};
ar=function(F){FC.call(this,F);var k=this;F.addEventListener("settingsMenuInitialized",function(){k.menuItem||(k.menuItem=new yRM(k.api,k.api.sS()),g.b(k,k.menuItem))});
F.addEventListener("openSettingsMenuItem",function(z){if(z==="menu_item_sleep_timer"){if(!k.menuItem){var x;(x=k.api.sS())==null||x.NR()}k.menuItem.open()}});
AM(F,"resetSleepTimerMenuSettings",function(){k.resetSleepTimerMenuSettings()});
AM(F,"setSleepTimerTimeLeft",function(z){k.setSleepTimerTimeLeft(z)});
AM(F,"setVideoTimeLeft",function(z){k.setVideoTimeLeft(z)})};
YUR=function(F){FC.call(this,F);var k=this;this.events=new g.yQ(F);g.b(this,this.events);this.events.N(F,"onSnackbarMessage",function(z){switch(z){case 1:z=k.api.getPlayerStateObject(),z.isBuffering()&&g.n(z,8)&&g.n(z,16)&&k.api.ZQ("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://web.archive.org/web/20250411103644/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://web.archive.org/web/20250411103644/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.bO=function(F,k,z,x,D){k=k===void 0?!1:k;x=x===void 0?!1:x;D=D===void 0?!1:D;g.uG.call(this);this.K=D;this.G=!1;this.j=new PW(this);this.W=this.S=null;this.U=this.L=!1;g.b(this,this.j);this.target=F;this.Y=k;this.B=z||F;this.G=x;k&&(g.DA&&this.target.setAttribute("draggable","true"),D||(this.target.style.touchAction="none"));S4(this)};
d1=function(F){g.VB(F.j,!F.Y)};
S4=function(F){F.W=null;F.S=null;F.N(Jr("over"),F.gK);F.N("touchstart",F.ow);F.Y&&F.N(Jr("down"),F.BHf)};
n9C=function(F,k){for(var z=0;z<k.changedTouches.length;z++){var x=k.changedTouches[z];if(x.identifier===F.S)return x}return null};
Jr=function(F){return window.navigator.msPointerEnabled?"MSPointer"+F.charAt(0).toUpperCase()+F.substring(1):"mouse"+F};
ye=function(F){return F&&Mf9?Kx(F)||document:document};
LUI=function(F,k){g.Y.call(this,{X:"div",WR:["ytp-overlay","ytp-speedmaster-overlay"],Z:[{X:"div",J:"ytp-speedmaster-user-edu",Z:[{X:"div",J:"ytp-speedmaster-label",jk:k},{X:"div",J:"ytp-speedmaster-icon",jk:"{{icon}}"}]}]});this.T=F;this.Y=this.EK("ytp-speedmaster-user-edu");this.updateValue("icon",uaH());g.C6(this.Y,"ytp-speedmaster-has-icon");this.T.createClientVe(this.Y,this,173040,!0);this.Wl()};
g1=function(F){FC.call(this,F);var k=this;this.j=this.U=!1;this.l$=g.lw(this.api.C().experiments,"speedmaster_touch_activation_ms")||500;this.t4=g.lw(this.api.C().experiments,"speedmaster_cancellation_movement_dp")||10;this.cR=g.lw(this.api.C().experiments,"speedmaster_playback_rate")||2;this.L=new g.yQ(F);g.b(this,this.L);this.K="2x";this.speedmasterUserEdu=new LUI(F,this.K);g.b(this,this.speedmasterUserEdu);g.Hv(this.api,this.speedmasterUserEdu.element,4);this.Y=new g.bO(this.api.Ka().bX,!0,null,
!1,!0);g.b(this,this.Y);this.delay=new g.KS(this.Xf,this.l$,this);g.b(this,this.delay);this.L.N(F,"videodatachange",function(){Rr(k)},this);
this.L.N(F,"presentingplayerstatechange",function(){Rr(k)},this);
this.L.N(F,"autonavvisibility",function(){Rr(k)},this);
this.api.qB().subscribe("visibilitystatechange",function(){Rr(k)});
this.L.N(F,"rootnodemousedown",function(z){k.G=z});
this.V("web_speedmaster_spacebar_control")&&(this.L.N(F,"keyboardserviceglobalkeydown",function(z,x){k.Qh=x;fpn(k,z,x.Wk,!0)},this),this.L.N(F,"keyboardserviceglobalkeyup",function(z){fpn(k,z,!1,!1)},this))};
YP=function(F){F.delay.stop();F.Y.unsubscribe("dragmove",F.S,F);F.Y.unsubscribe("dragend",F.W,F);F.U&&(F.U=!1,F.speedmasterUserEdu.Wl(),F.api.setPlaybackRate(F.mp),F.api.showControls(),F.yh&&F.api.pauseVideo())};
fpn=function(F,k,z,x){z||(x?k.keyCode!==32||k.repeat||F.U||!F.j||g.WN(F.delay):YP(F))};
Rr=function(F){var k,z;var x=!!F.K&&!((k=F.api.getVideoData())==null?0:k.isLivePlayback)&&!F.api.V6()&&F.api.getPresentingPlayerType()!==2&&!g.n(F.api.getPlayerStateObject(),2)&&!((z=g.mJ(F.api))==null?0:z.hH())&&!F.api.isEmbedsShortsMode()&&e6(F.api.qB());F.j!==x&&(F.j=x,F.j?F.Y.subscribe("dragstart",F.PR,F):(F.Y.unsubscribe("dragstart",F.PR,F),F.Y.unsubscribe("dragmove",F.S,F),F.Y.unsubscribe("dragend",F.W,F),YP(F)))};
KU5=function(F){FC.call(this,F);var k=this;this.events=new g.yQ(F);g.b(this,this.events);AM(this.api,"addPlayerResponseForAssociation",function(z){k.api.addPlayerResponseForAssociation(z)});
AM(this.api,"finishSegmentByCpn",function(z,x,D){return k.api.finishSegmentByCpn(z,x,D)});
this.events.N(F,"modulecreated",function(z){if(z==="ad"&&(z=k.api.getVideoData(1))&&(z=z.getPlayerResponse())){var x;z=(x=z.adPlacements)!=null?x:[];x=g.l(z);for(var D=x.next();!D.done;D=x.next()){var e=z=void 0,C=void 0;if(D=(z=D.value.adPlacementRenderer)==null?void 0:(e=z.renderer)==null?void 0:(C=e.instreamVideoAdRenderer)==null?void 0:C.playerVars)z=DC(D),k.api.addPlayerResponseForAssociation({playerVars:z})}}});
this.events.N(F,"videodatachange",function(z,x){k.onVideoDataChange(z,x)})};
nn=function(F,k,z){g.gd.call(this,k,F);this.Y=z};
g.MC=function(F){iN.call(this);var k=this;this.Y=F;this.W={};this.listener=function(z){k.dispatchEvent(new nn(k,z.type,z))}};
FjR=function(F){var k=F.getVideoData(),z=F.S9(),x=z.T$(),D=F.C(),e=F.Pd(),C=e.tq*8/1024,p=e.Tt/1024,E=e.El,X=e.wE,q=e.playerState.state.toString(16),N=z.getCurrentTime().toFixed(2),u=XW(z.Ln(),",",3),w="";if(k.isDaiEnabled()){k.enableServerStitchedDai&&(w+=k.gD?"DS":"SS");w=k.w3()?w+"LIFA, ":w+"DAI, ";var m=e.P3;m&&(w+=m)}yT(k)&&!k.w3()&&(w+="LIFAE, ");var h;((h=F.getVideoData(1))==null?0:g.Mk(h))?(w+="SSAP, ",(m=e.P3)&&(w+=m)):$J(k)&&(w+="SABR, ");if(k.fetchType){switch(k.fetchType){case "onesie":m=
"o";break;case "gp":m="gp";break;default:m="gvi"}w+="vd:"+m+", "}D.E3&&(w=D.E3.Cu?w+"wa, ":w+"w, ");w+="s:"+q+" t:"+N+" b:"+u+" ";z.isSeeking()&&(w+="S");z.isPaused()&&(w+="P");z.isEnded()&&(w+="E");F.isOrchestrationLeader()&&(w+=" L");(z=e.Bd)&&(w+=" l:"+z.toFixed());z=e.currentTime;D=k.xV;z&&z>D.start&&z<D.end&&(w+=" as");z=w;w=g.oS(JZ)("_start",void 0);D=[];q=g.l(["pl_i","vir","or_p","orfb","pbs"]);for(N=q.next();!N.done;N=q.next())N=N.value,(u=g.oS(JZ)(N,void 0))&&w&&(u-=w,D.push(N+":"+Math.round(u)));
w=D.join(" ");D=g.L_();q=g.IL(F).pRa;N=k.U&&!k.U.Y?"display:none":"";if((u=k.clientPlaybackNonce)&&u.length==16){u+="AAAA";m=0;h="";for(var B=0;B<20;B++)if(m=(m<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(u.charAt(B)),B%5==4){for(var U="",v=0;v<6;v++)U="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(m&31)+U,m>>=5;h+=U}u=h.substr(0,4)+" "+h.substr(4,4)+" "+h.substr(8,4)+" "+(h.substr(12,4)+" "+h.substr(16,4))}else u="";C={video_id_and_cpn:String(k.videoId)+" / "+u,codecs:"",
dims_and_frames:"",bandwidth_kbps:C.toFixed(0)+" Kbps",buffer_health_seconds:E.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:X?"":"display:none",drm:X,debug_info:z,extra_debug_info:"",bandwidth_style:N,network_activity_style:N,network_activity_bytes:p.toFixed(0)+" KB",shader_info:q,shader_info_style:q?"":"display:none",playback_categories:""};p=x.clientWidth+"x"+x.clientHeight+(D>1?"*"+D.toFixed(2):"");E="-";e.totalVideoFrames&&(E=(e.droppedVideoFrames||0)+" dropped of "+e.totalVideoFrames);
C.dims_and_frames=p+" / "+E;F=F.getVolume();p=i$n(k);var P;E=((P=k.j)==null?0:P.audio.Y)?"DRC":Math.round(F*p)+"%";P=Math.round(F)+"% / "+E;F=k.YZ.toFixed(1);isFinite(Number(F))&&(P+=" (content loudness "+F+"dB)");C.volume=P;C.resolution=x.videoWidth+"x"+x.videoHeight;if(x=k.L){if(P=x.video)F=P.fps,F>1&&(C.resolution+="@"+F),(F=e.aZ)&&F.video&&(C.resolution+=" / "+F.video.width+"x"+F.video.height,F.video.fps>1&&(C.resolution+="@"+F.video.fps)),C.codecs=WU6(x),!k.j||x.audio&&x.video?x.QK&&(C.codecs+=
" / "+x.QK+"A"):C.codecs+=" / "+WU6(k.j),P.Y||P.primaries?(F=P.Y||"unknown",F==="smpte2084"?F+=" (PQ)":F==="arib-std-b67"&&(F+=" (HLG)"),C.color=F+" / "+(P.primaries||"unknown"),C.color_style=""):C.color_style="display:none";if(x.debugInfo)for(C.fmt_debug_info="",x=g.l(x.debugInfo),P=x.next();!P.done;P=x.next())P=P.value,C.fmt_debug_info+=P.label+":"+P.text+" ";C.fmt_debug_info_style=C.fmt_debug_info&&C.fmt_debug_info.length>0?"":"display:none"}x=k.isLivePlayback;P=k.A5;C.live_mode_style=x||P?"":
"display:none";C.live_latency_style=x?"":"display:none";if(P)C.live_mode="Post-Live"+(p9(k)?" Manifestless":"");else if(x){P=e.Xg;C.live_latency_secs=P.toFixed(2)+"s";x=p9(k)?"Manifestless, ":"";k.yh&&(x+="Windowed, ");F="Uncertain";if(P>=0&&P<120)if(k.latencyClass&&k.latencyClass!=="UNKNOWN")switch(k.latencyClass){case "NORMAL":F="Optimized for Normal Latency";break;case "LOW":F="Optimized for Low Latency";break;case "ULTRALOW":F="Optimized for Ultra Low Latency";break;default:F="Unknown Latency Setting"}else F=
k.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";x+=F;(P=e.oZ)&&(x+=", seq "+P.sequence);C.live_mode=x}!e.isGapless||xJ(k)&&e.gi||(C.playback_categories+="Gapless ");C.playback_categories_style=C.playback_categories?"":"display:none";C.bandwidth_samples=e.t7;C.network_activity_samples=e.Lr;C.live_latency_samples=e.Wo;C.buffer_health_samples=e.tL;e=g.M8(k);if(k.cotn||e)C.cotn_and_local_media=(k.cotn?k.cotn:"null")+" / "+e;C.cotn_and_local_media_style=C.cotn_and_local_media?
"":"display:none";kp(k,"web_player_release_debug")?(C.release_name=o5[11],C.release_style=""):C.release_style="display:none";C.debug_info&&w.length>0&&C.debug_info.length+w.length<=60?C.debug_info+=" "+w:C.extra_debug_info=w;C.extra_debug_info_style=C.extra_debug_info&&C.extra_debug_info.length>0?"":"display:none";return C};
WU6=function(F){var k=/codecs="([^"]*)"/.exec(F.mimeType);return k&&k[1]?k[1]+" ("+F.itag+")":F.itag};
Ln=function(F,k,z,x,D){g.Y.call(this,{X:"div",J:"ytp-horizonchart"});this.G=k;this.sampleCount=z;this.j=x;this.S=D;this.index=0;this.heightPx=-1;this.U=this.L=null;this.Y=Math.round(F/z);this.element.style.width=this.Y*this.sampleCount+"px";this.element.style.height=this.G+"em"};
fn=function(F,k){if(F.heightPx===-1){var z=null;try{z=g.Ci("CANVAS"),F.L=z.getContext("2d")}catch(p){}if(F.L){var x=F.Y*F.sampleCount;F.U=z;F.U.width=x;F.U.style.width=x+"px";F.element.appendChild(F.U)}else for(F.sampleCount=Math.floor(F.sampleCount/4),F.Y*=4,z=0;z<F.sampleCount;z++)x=g.Ci("SPAN"),x.style.width=F.Y+"px",x.style.left=F.Y*z+"px",F.element.appendChild(x)}z=F.element.clientHeight||24;z!==F.heightPx&&(F.heightPx=z,F.L&&(z=(window.devicePixelRatio||1)>1?2:1,F.U.height=F.heightPx*z,F.U.style.height=
F.heightPx+"px",F.L.scale(1,z)));k=g.l(k);for(x=k.next();!x.done;x=k.next()){z=F;var D=F.index,e=x.value;for(x=0;x+2<z.j.length&&z.j[x+1]<e;)x++;e=Math.min(1,(e-z.j[x])/(z.j[x+1]-z.j[x]));if(z.L)z.L.fillStyle=z.S[x],z.L.fillRect(D*z.Y,0,z.Y,z.heightPx),z.L.fillStyle=z.S[x+1],z.L.fillRect(D*z.Y,z.heightPx*(1-e),z.Y,z.heightPx);else{D=z.element.children[D];var C=window.devicePixelRatio||1;e=Math.min(z.heightPx,Math.round(z.heightPx*e*C)/C)||0;D.style.height=e+"px";D.style.backgroundColor=z.S[x+1];D.style.borderTop=
"solid "+(z.heightPx-e)+"px "+z.S[x]}F.index=(F.index+1)%F.sampleCount}k=F.index;F.L?F.L.clearRect(k*F.Y,0,F.Y,F.heightPx):(F=F.element.children[k],F.style.height="0px",F.style.borderTop="")};
Kn=function(F){var k=null;k={X:"button",WR:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],D:{title:"close"},jk:"[X]"};g.Y.call(this,{X:"div",WR:["html5-video-info-panel","ytp-sfn"],Z:[k,{X:"div",WR:["html5-video-info-panel-content","ytp-sfn-content"],Z:[{X:"div",Z:[{X:"div",jk:"Video ID / sCPN"},{X:"span",jk:"{{video_id_and_cpn}}",J:"ytp-sfn-cpn"}]},{X:"div",Z:[{X:"div",jk:"Viewport / Frames"},{X:"span",jk:"{{dims_and_frames}}"}]},{X:"div",Z:[{X:"div",jk:"Current / Optimal Res"},{X:"span",
jk:"{{resolution}}"}]},{X:"div",Z:[{X:"div",jk:"Volume / Normalized"},{X:"span",jk:"{{volume}}"}]},{X:"div",Z:[{X:"div",jk:"Codecs"},{X:"span",jk:"{{codecs}}"}]},{X:"div",D:{style:"{{shader_info_style}}"},Z:[{X:"div",jk:"Shader Info"},{X:"span",jk:"{{shader_info}}"}]},{X:"div",D:{style:"{{color_style}}"},Z:[{X:"div",jk:"Color"},{X:"span",jk:"{{color}}"}]},{X:"div",D:{style:"{{drm_style}}"},Z:[{X:"div",jk:"Protected"},{X:"span",jk:"{{drm}}"}]},{X:"div",D:{style:"{{bandwidth_style}}"},Z:[{X:"div",jk:"Connection Speed"},
{X:"span",Z:[{X:"span",jk:"{{bandwidth_chart}}"},{X:"span",jk:"{{bandwidth_kbps}}"}]}]},{X:"div",D:{style:"{{network_activity_style}}"},Z:[{X:"div",jk:"Network Activity"},{X:"span",Z:[{X:"span",jk:"{{network_activity_chart}}"},{X:"span",jk:"{{network_activity_bytes}}"}]}]},{X:"div",Z:[{X:"div",jk:"Buffer Health"},{X:"span",Z:[{X:"span",jk:"{{buffer_health_chart}}"},{X:"span",jk:"{{buffer_health_seconds}}"}]}]},{X:"div",D:{style:"{{live_latency_style}}"},Z:[{X:"div",jk:"Live Latency"},{X:"span",Z:[{X:"span",
jk:"{{live_latency_chart}}"},{X:"span",jk:"{{live_latency_secs}}"}]}]},{X:"div",D:{style:"{{live_mode_style}}"},Z:[{X:"div",jk:"Live Mode"},{X:"span",jk:"{{live_mode}}"}]},{X:"div",D:{style:"{{playback_categories_style}}"},Z:[{X:"div",jk:"Playback Categories"},{X:"span",jk:"{{playback_categories}}"}]},{X:"div",D:{style:"{{fmt_debug_info_style}}"},Z:[{X:"div",jk:"Format Debug Info"},{X:"span",jk:"{{fmt_debug_info}}"}]},{X:"div",Z:[{X:"div",jk:"Mystery Text"},{X:"span",jk:"{{debug_info}}"}]},{X:"div",
D:{style:"{{extra_debug_info_style}}"},Z:[{X:"div",jk:""},{X:"span",Z:[{X:"span",jk:"{{extra_debug_info}}"}]}]},{X:"div",Z:[{X:"div",jk:"Date"},{X:"span",jk:"{{date}}"}]},{X:"div",D:{style:"{{cotn_and_local_media_style}}"},Z:[{X:"div",jk:"COTN / Local Media"},{X:"span",jk:"{{cotn_and_local_media}}"}]},{X:"div",D:{style:"{{release_style}}"},Z:[{X:"div",jk:"Player Release"},{X:"span",jk:"{{release_name}}"}]}]}]});this.Vh=F;this.position=0;this.S=!0;k?this.N(this.EK("ytp-sfn-close"),"click",this.hide):
this.N(this.element,"click",this.hide);F=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];k="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var z=F.map(function(x){return x/4});
this.K={};this.Y=new Ln(300,1,150,F,k);g.b(this,this.Y);this.updateValue("bandwidth_chart",this.Y);this.U=new Ln(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.b(this,this.U);this.updateValue("live_latency_chart",this.U);this.L=new Ln(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.b(this,this.L);this.updateValue("buffer_health_chart",this.L);this.G=new Ln(300,1,150,z,k);g.b(this,this.G);this.updateValue("network_activity_chart",
this.G);this.delay=new g.KS(this.G4,500,this);g.b(this,this.delay);this.j=new g.KS(this.B,2E4,this);g.b(this,this.j)};
zbI=function(F){FC.call(this,F);var k=this;AM(F,"getStatsForNerds",function(){return FjR(k.api)});
pY(F,"showVideoInfo",function(){k56(k,!0)});
pY(F,"hideVideoInfo",function(){k56(k,!1)});
pY(F,"isVideoInfoVisible",function(){return ooD(k)})};
k56=function(F,k){var z=ooD(F);F.Y||(F.Y=new Kn(F.api),g.b(F,F.Y),g.Hv(F.api,F.Y.element,4));F.Y.Yj(k);var x=cv(F.api.iL());x&&x.loaded&&z!==k&&x.j6();k&&F.api.UK("sfn",{},!0)};
ooD=function(F){var k;return!((k=F.Y)==null||!k.Q2)};
Wq=function(){g.S.call(this);this.L=null;this.startTime=this.duration=0;this.delay=new g.fS(this.Y,null,this);g.b(this,this.delay)};
xI6=function(F,k){if(k.X==="path")return k.D.d;if(k.Z)for(var z=0;z<k.Z.length;z++){var x=k.Z[z];if(x&&typeof x!=="string"&&(x=xI6(F,x)))return x}};
jgx=function(F,k,z){z=xI6(F,z);var x=k.getElementsByTagName("path")[0],D=x.getAttribute("d");if(x.getAttribute("id")){var e=wt();k=k.getElementsByTagName("use");for(var C=0;C<k.length;C++)k[C].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+e);x.setAttribute("id",e)}var p=ioa(D),E=ioa(z);DIM(F,function(X){x.setAttribute("d",$Ia(p,E,X))},200)};
DIM=function(F,k,z){F.L=k;F.startTime=(0,g.VE)();F.duration=z;F.Y()};
ioa=function(F){var k=[];F=F.match(ebI);for(var z=0;z<F.length;z++){var x=F[z]===" "?NaN:Number(F[z]);k.push(isNaN(x)?F[z]:x)}return k};
$Ia=function(F,k,z){for(var x="",D=0;D<F.length;D++){var e=F[D];x=typeof e==="number"?x+(e+(k[D]-e)*z):x+e}return x};
FP=function(F){g.Y.call(this,{X:"button",WR:["ytp-size-button","ytp-button"],D:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}"},jk:"{{icon}}"});this.api=F;this.MX=null;this.transition=new Wq;g.b(this,this.transition);this.N(F,"sizestylechange",this.G4);this.N(F,"fullscreentoggled",this.G4);this.N(F,"presentingplayerstatechange",this.G4);F.createClientVe(this.element,this,139116);this.G4();this.listen("click",this.onClick);GL(F,this.element,
this)};
CfM=function(F){FC.call(this,F);var k=this;this.events=new g.yQ(F);g.b(this,this.events);this.events.N(F,"standardControlsInitialized",function(){k.button=new FP(F);g.b(k,k.button);F.Qx(k.button,"RIGHT_CONTROLS_RIGHT")})};
XXx=function(F){FC.call(this,F);var k=this,z={};this.G=(z.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},z.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(x){return AhR(k,x)},z.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(x){return AhR(k,x)},z);
this.j={};this.events=new g.yQ(F);g.b(this,this.events);this.events.N(F,"videodatachange",function(x,D){if(x!=="dataupdated"||D.videoId!==k.videoId||!ue(k.timelyActions,pXI(D)))k.onVideoDataChange(D)});
this.events.N(F,"presentingplayerstatechange",function(x){k.oo(x)});
this.events.N(F,g.X$("timelyAction"),function(x){k.onCueRangeEnter(x.getId())});
this.events.N(F,g.qQ("timelyAction"),function(x){k.onCueRangeExit(x.getId())});
this.api.V("web_enable_keyboard_shortcut_for_timely_actions")&&this.events.N(this.api,"keyboardserviceglobalkeydown",function(x,D){if(($F?x.altKey:x.ctrlKey)&&x.keyCode===39&&k.W&&k.Y){var e;x=g.J((e=kf(k,k.Y))==null?void 0:e.rendererContext,Eo9);if(e=nd(x==null?void 0:x.onTap))k.api.ZQ("innertubeCommand",e),D&&(D.f5=!0),D=Ow(),(e=peH(D))&&(x=g.OK(0))&&jL(D.client,x,e,void 0)}},this);
this.U=new g.Y({X:"div",WR:["ytp-player-content","ytp-timely-actions-content"]});this.U.hide();AM(F,"insertTimelyActionUi",function(x){k.U.element.children.length>0&&g.Ey(k.U.element);x.classList.add("ytp-timely-actions-overlay");k.U.element.appendChild(x)});
g.b(this,this.U);g.Hv(this.api,this.U.element,4)};
qkI=function(F){F.timelyActions&&(F.j=F.timelyActions.reduce(function(k,z){if(z.cueRangeId===void 0)return k;k[z.cueRangeId]=0;return k},{}))};
kf=function(F,k){if(F.timelyActions){F=g.l(F.timelyActions);for(var z=F.next();!z.done;z=F.next())if(z=z.value,z.cueRangeId===k)return z}};
Nbp=function(F,k){if((F=kf(F,k))&&F.onCueRangeExit)return nd(F.onCueRangeExit)};
uSk=function(F){if(F.Y!==void 0){var k=(k=kf(F,F.Y))&&k.onCueRangeEnter?nd(k.onCueRangeEnter):void 0;var z=kf(F,F.Y);if(z&&z.additionalTrigger){var x=!1;for(var D=g.l(z.additionalTrigger),e=D.next();!e.done;e=D.next())e=e.value,e.type&&e.args&&F.G[e.type]!==void 0&&(x=x||F.G[e.type](e.args))}else x=!0;k&&x&&(F.api.ZQ("innertubeCommand",k),F.setTimeout(z),F.j[F.Y]!==void 0&&F.j[F.Y]++,F.W=!0)}};
AhR=function(F,k){return F.L===void 0?!1:k.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(k.seekLengthMilliseconds)===5E3?F.L===72:k.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(k.seekLengthMilliseconds)===1E4?F.L===74:k.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(k.seekLengthMilliseconds)===5E3?F.L===71:k.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(k.seekLengthMilliseconds)===1E4?F.L===73:!1};
pXI=function(F){if(F=F.getWatchNextResponse()){var k,z;F=(k=F.playerOverlays)==null?void 0:(z=k.playerOverlayRenderer)==null?void 0:z.timelyActionsOverlayViewModel;k=g.J(F,wXa);if(k!=null&&k.timelyActions)return k==null?void 0:k.timelyActions.map(function(x){return g.J(x,mIp)}).filter(function(x){return!!x})}};
Tb9=function(F){FC.call(this,F);var k=this;pY(this.api,"getPlaybackRate",function(){return k.api.getPlaybackRate()});
pY(this.api,"setPlaybackRate",function(z){typeof z==="number"&&k.api.setPlaybackRate(z)})};
llI=function(F){F=F.q5();if(!F)return!1;F=g.jl(F).exp||"";return F.includes("xpv")||F.includes("xpe")};
Qg9=function(F){F=g.l(g.o7(F,!0));for(var k=F.next();!k.done;k=F.next())if(llI(k.value))return!0;return!1};
hbR=function(F,k){F=g.l(g.o7(F,!0));for(var z=F.next();!z.done;z=F.next())if(z=z.value,llI(z)){var x={potc:"1",pot:k};z.url&&(z.url=el(z.url,x))}};
sgC=function(F){var k=new $ta,z={},x=(z["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",z);return new HM(k,F,function(){return x})};
rha=function(F){return g.O(function(k){if(k.Y==1)return g.lD(k,2),g.c(k,F,4);if(k.Y!=2)return g.sC(k,0);g.rI(k);g.Tp(k)})};
xf=function(F){FC.call(this,F);var k=this;this.useLivingRoomPoToken=!1;this.j=new g.Zd;this.gH=null;this.G=!1;this.U=null;this.W=!1;var z=F.C().getWebPlayerContextConfig();this.events=new g.yQ(F);g.b(this,this.events);this.events.N(F,"spsumpreject",function(x,D,e){k.W=D;x&&k.G&&!k.U&&(k.V("html5_generate_content_po_token")&&e?k.oN(e):k.V("html5_generate_session_po_token")&&Bbx(k));k.U||k.api.UK("stp",{s:+k.G,b:+k.W})});
this.events.N(F,"poTokenVideoBindingChange",function(x){k.oN(x)});
this.useLivingRoomPoToken=!(z==null||!z.useLivingRoomPoToken);F.addEventListener("csiinitialized",function(){k.gH=F.g$();var x=(k.V("html5_generate_session_po_token")||k.V("html5_generate_content_po_token"))&&!k.useLivingRoomPoToken;try{if(k.V("html5_use_shared_owl_instance"))G5x(k);else if(x){k.gH.l7("pot_isc");k.V("html5_new_wpo_client")||UI6(k);var D=g.lw(k.api.C().experiments,"html5_webpo_kaios_defer_timeout_ms");D?(k.V("html5_new_wpo_client")&&(k.L=$D()),g.mz(function(){z0(k)},D)):k.V("html5_webpo_idle_priority_job")?
(k.V("html5_new_wpo_client")&&(k.L=$D()),g.iM(g.$K(),function(){z0(k)})):z0(k)}}catch(e){e instanceof Error&&g.yI(e)}});
F.addEventListener("trackListLoaded",this.C$.bind(this));F.IT(this)};
tha=function(F){var k=oB(F.experiments,"html5_web_po_request_key");return k?k:g.Vi(F)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"};
ip=function(F,k){if(F.V("html5_webpo_bge_ctmp")){var z,x={hwpo:!!F.Y,hwpor:!((z=F.Y)==null||!z.isReady())};F.api.UK(k,x)}};
G5x=function(F){var k,z;g.O(function(x){if(x.Y==1)return ip(F,"swpo_i"),F.L=$D(),Dq(F),g.c(x,Zv(),2);if(x.Y!=3)return k=x.L,ip(F,"swpo_co"),g.c(x,F8H(k),3);z=x.L;F.Y=Zox(F,z);ip(F,"swpo_cc");F.Y.ready().then(function(){F.j.resolve();ip(F,"swpo_re")});
g.mz(function(){z0(F);ip(F,"swpo_si")},0);
g.Tp(x)})};
UI6=function(F){var k=F.api.C(),z=tha(k),x=sgC(z);k=new Fm({r$:"CLEn",cC:z,Cd:x,onEvent:function(D){(D=voR[D])&&F.gH.l7(D)},
onError:g.yI,dJ:lGC(k.experiments),v_:function(){return void F.api.UK("itr",{})},
RVp:k.experiments.Ca("html5_web_po_disable_remote_logging")||chn.includes(g.Lw(k.e5)||"")});k.ready().then(function(){return void F.j.resolve()});
g.b(F,k);F.Y=k};
PfY=function(F){var k=F.api.C(),z=sgC(tha(k)),x=z.mV.bind(z);z.mV=function(p){var E;return g.O(function(X){if(X.Y==1)return g.c(X,x(p),2);E=X.L;F.api.UK("itr",{});return X.return(E)})};
try{var D=new aW({Cd:z,Ti:{maxAttempts:5},UR:{r$:"CLEn",disable:k.experiments.Ca("html5_web_po_disable_remote_logging")||chn.includes(g.Lw(k.e5)||""),EY:lGC(k.experiments),HNR:F.V("wpo_dis_lfdms")?0:1E3},Rxh:g.yI});var e=new DE({d9:D,Cd:z,onError:g.yI});rha(e.Tm()).then(function(){return void F.j.resolve()});
g.b(F,D);g.b(F,e);F.Y=Zox(F,e)}catch(p){g.yI(p);var C;(C=D)==null||C.dispose()}};
z0=function(F){var k=F.api.C();F.gH.l7("pot_ist");F.Y?F.Y.start():F.V("html5_new_wpo_client")&&PfY(F);F.V("html5_bandaid_attach_content_po_token")||(F.V("html5_generate_session_po_token")&&(Dq(F),Bbx(F)),k=g.lw(k.experiments,"html5_session_po_token_interval_time_ms")||0,k>0&&(F.S=g.TE(function(){Dq(F)},k)),F.G=!0)};
Dq=function(F){var k,z,x,D;g.O(function(e){if(!F.V("html5_generate_session_po_token")||F.useLivingRoomPoToken)return e.return();k=F.api.C();z=g.LX("EOM_VISITOR_DATA")||g.LX("VISITOR_DATA");x=k.F1?k.datasyncId:z;D=oB(k.experiments,"html5_mock_content_binding_for_session_token")||k.livingRoomPoTokenId||x;k.Ki=$f(F,D);g.Tp(e)})};
$f=function(F,k){if(!F.Y){if(F.L)try{return F.L(k)}catch(C){g.yI(C)}return""}try{var z=F.Y.isReady();F.gH.l7(z?"pot_cms":"pot_csms");var x="";x=F.V("html5_web_po_token_disable_caching")?F.Y.uB({vl:k}):F.Y.uB({vl:k,Fb:{Ct:k,ouG:150,hL:!0,Ea:!0}});F.gH.l7(z?"pot_cmf":"pot_csmf");if(z){var D;(D=F.U)==null||D.resolve();F.U=null;if(F.W){F.W=!1;var e;(e=F.api.app.A4())==null||e.X2(!1)}}return x}catch(C){return g.yI(C),""}};
Bbx=function(F){F.Y&&(F.U=new xh,F.Y.ready().then(function(){F.gH.l7("pot_if");Dq(F)}))};
Zox=function(F,k){F.V("html5_web_po_token_disable_caching")||k.fP(150);var z=!1,x=rha(k.Tm()).then(function(){z=!0});
return{isReady:function(){return z},
ready:function(){return x},
uB:function(D){return k.uB({vl:D.vl,lR:!0,bR:!0,Fb:D.Fb?{Ct:D.Fb.Ct,hL:D.Fb.hL,Ea:D.Fb.Ea}:void 0})},
start:function(){}}};
Oo5=function(F){FC.call(this,F);var k=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.yQ(F);g.b(this,this.events);this.events.N(F,"heartbeatRequest",function(z){if(k.freePreviewUsageDetails.length||k.freePreviewWatchedDuration!==null)z.heartbeatRequestParams||(z.heartbeatRequestParams={}),z.heartbeatRequestParams.unpluggedParams||(z.heartbeatRequestParams.unpluggedParams={}),k.freePreviewUsageDetails.length>0?z.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails=
k.freePreviewUsageDetails:z.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+k.freePreviewWatchedDuration}});
AM(F,"setFreePreviewWatchedDuration",function(z){k.freePreviewWatchedDuration=z});
AM(F,"setFreePreviewUsageDetails",function(z){k.freePreviewUsageDetails=z})};
jR=function(F){g.S.call(this);this.features=[];var k=this.Y,z=new UA(F),x=new k0(F),D=new w1(F),e=new xf(F);var C=g.Pe(F.C())?void 0:new Tu(F);var p=new uO(F),E=new zbI(F),X=new Tb9(F),q=new Gu(F);var N=g.Pe(F.C())?new Oo5(F):void 0;var u=F.V("html5_enable_ssap")?new KU5(F):void 0;var w=F.V("web_cinematic_watch_settings")&&(w=F.C().getWebPlayerContextConfig())!=null&&w.cinematicSettingsAvailable?new NB(F):void 0;var m=new BV(F);var h=F.V("enable_courses_player_overlay_purchase")?new wc5(F):void 0;
var B=g.f_(F.C())?new Xca(F):void 0;var U=new lo(F);var v=F.C().j?new jlk(F):void 0;var P=g.tJ(F.C())?new $DM(F):void 0;var I=F.V("web_player_move_autonav_toggle")&&F.C().m_?new WpD(F):void 0;var d=g.f_(F.C())?new fqC(F):void 0;var W=F.V("web_enable_speedmaster")&&g.f_(F.C())?new g1(F):void 0;var M=F.C().Q7?void 0:new CfM(F);var xY=F.V("report_pml_debug_signal")?new Mc5(F):void 0;var $Y=new C2M(F),Fx=new Qe(F);var y=g.g8(F.C())?new TOC(F):void 0;var K=navigator.mediaSession&&window.MediaMetadata&&
F.C().zz?new qC(F):void 0;var Q=F.V("html5_enable_drc")&&!F.C().S?new mF(F):void 0;var R=new zu(F);var Jn=g.f_(F.C())?new cRp(F):void 0;var s$=F.V("html5_enable_d6de4")?new m4(F):void 0;var u7=g.f_(F.C())&&F.V("web_sleep_timer")?new ar(F):void 0;var Gp=g.tJ(F.C())?new CkD(F):void 0;var kG=new Ve(F),jC=new xD6(F),w9=new LVx(F);var G=F.V("enable_sabr_snackbar_message")?new YUR(F):void 0;var t=F.V("web_enable_timely_actions")?new XXx(F):void 0;k.call(this,z,x,D,e,C,p,E,X,q,N,u,w,m,h,B,U,v,P,I,d,W,M,
xY,$Y,Fx,y,void 0,K,Q,R,void 0,Jn,s$,u7,Gp,void 0,kG,jC,w9,void 0,G,t,new uo(F))};
VhH=function(){this.L=this.Y=NaN};
IlR=function(F,k){this.YG=F;this.timerName="";this.U=!1;this.L=NaN;this.j=new VhH;this.Y=k||null;this.U=!1};
Hon=function(F,k,z){var x=g.Vq(k.i$)&&!k.i$.S;if(k.i$.X1&&(vJ(k.i$)||k.i$.Xf==="shortspage"||ot(k.i$)||x)&&!F.U){F.U=!0;F.S=k.clientPlaybackNonce;g.LX("TIMING_ACTION")||MJ("TIMING_ACTION",F.YG.csiPageType);F.YG.csiServiceName&&MJ("CSI_SERVICE_NAME",F.YG.csiServiceName);if(F.Y){x=F.Y.g$();for(var D=g.l(Object.keys(x)),e=D.next();!e.done;e=D.next())e=e.value,nl(e,x[e],F.timerName);x=g.oS(ObM)(F.Y.C3);g.MF(x,F.timerName);x=F.Y;x.L={};x.C3={}}g.MF({playerInfo:{visibilityState:g.oS(PaD)()},playerType:"LATENCY_PLAYER_HTML5"},
F.timerName);F.W!==k.clientPlaybackNonce||Number.isNaN(F.L)||(fl("_start",F.timerName)?z=g.oS(JZ)("_start",F.timerName)+F.L:g.yI(new g.Fa("attempted to log gapless pbs before CSI timeline started",{cpn:k.clientPlaybackNonce})));z&&!fl("pbs",F.timerName)&&eR(F,z)}};
eR=function(F,k,z){nl("pbs",k!=null?k:(0,g.VE)(),z!=null?z:F.timerName)};
alD=function(F,k,z,x,D,e,C,p){k=(k===x?"video":"ad")+"_to_"+(z===x?"video":"ad");if(k!=="video_to_ad"||C!=null&&C.mp){C=k==="ad_to_video"?C:D;x=C==null?void 0:C.kW;var E={};if(D==null?0:D.S)E.cttAuthInfo={token:D.S,videoId:D.videoId};e&&(E.startTime=e);Ll(k,E);var X,q,N;D={targetVideoId:(X=D==null?void 0:D.videoId)!=null?X:"empty_video",targetCpn:z,adVideoId:(q=C==null?void 0:C.videoId)!=null?q:"empty_video",adClientPlaybackNonce:(N=x==null?void 0:x.cpn)!=null?N:C==null?void 0:C.clientPlaybackNonce};
x&&(D.adBreakType=x.adBreakType,D.adType=x.adType);g.MF(D,k);eR(F,p,k)}};
C0=function(F){RLk();yyD();F.timerName=""};
Skk=function(F){if(F.Y){var k=F.Y;k.L={};k.C3={}}F.U=!1;F.W=void 0;F.L=NaN};
box=function(F,k){g.uG.call(this);this.i$=F;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.K={};this.L=0;if(F=k.session_data)this.sessionData=xT(F,"&");this.index=Math.max(0,Number(k.index)||0);this.loop=!!k.loop;this.startSeconds=Number(k.startSeconds)||0;this.title=k.playlist_title||"";this.description=k.playlist_description||"";this.author=
k.author||k.playlist_author||"";k.video_id&&(this.items[this.index]=k);if(F=k.api)typeof F==="string"&&F.length===16?k.list="PL"+F:k.playlist=F;if(F=k.list)switch(k.listType){case "user_uploads":this.listId=new Q6("UU","PLAYER_"+F);break;default:var z=k.playlist_length;z&&(this.length=Number(z)||0);this.listId=g.hT(F);if(F=k.video)this.items=F.slice(0),this.loaded=!0}else if(k.playlist){F=k.playlist.toString().split(",");this.index>0&&(this.items=[]);F=g.l(F);for(z=F.next();!z.done;z=F.next())(z=
z.value)&&this.items.push({video_id:z});this.length=this.items.length;if(F=k.video)this.items=F.slice(0),this.loaded=!0}this.setShuffle(!!k.shuffle);if(F=k.suggestedQuality)this.quality=F;this.K=wg(k,"playlist_");this.U=(k=k.thumbnail_ids)?k.split(","):[]};
dID=function(F){return!!(F.playlist||F.list||F.api)};
JhI=function(F){var k=F.index+1;return k>=F.length?0:k};
yhn=function(F){var k=F.index-1;return k<0?F.length-1:k};
g.A_=function(F,k,z,x){k=k!==void 0?k:F.index;k=F.items&&k in F.items?F.items[F.order[k]]:null;var D=null;k&&(z&&(k.autoplay="1"),x&&(k.autonav="1"),D=new g.Rt(F.i$,k),g.b(F,D),D.Hx=!0,D.startSeconds=F.startSeconds||D.clipStart||0,F.listId&&(D.playlistId=F.listId.toString()));return D};
RbD=function(F,k){F.index=g.l3(k,0,F.length-1);F.startSeconds=0};
gox=function(F,k){if(k.video&&k.video.length){F.title=k.title||"";F.description=k.description;F.views=k.views;F.likes=k.likes;F.dislikes=k.dislikes;F.author=k.author||"";var z=k.loop;z&&(F.loop=z);z=g.A_(F);F.items=[];for(var x=g.l(k.video),D=x.next();!D.done;D=x.next())if(D=D.value)D.video_id=D.encrypted_id,F.items.push(D);F.length=F.items.length;(k=k.index)?F.index=k:F.findIndex(z);F.setShuffle(!1);F.loaded=!0;F.L++;F.Y&&F.Y()}};
Mh5=function(F,k){var z,x,D,e,C,p,E;return g.O(function(X){if(X.Y==1){z=g.EP();var q=F.C(),N={context:g.ex(F),playbackContext:{contentPlaybackContext:{ancestorOrigins:q.ancestorOrigins}}},u=q.getWebPlayerContextConfig();if(u==null?0:u.encryptedHostFlags)N.playbackContext.contentPlaybackContext.encryptedHostFlags=u.encryptedHostFlags;if(u==null?0:u.hideInfo)N.playerParams={showinfo:!1};q=q.embedConfig;u=k.docid||k.video_id||k.videoId||k.id;if(!u){u=k.raw_embedded_player_response;if(!u){var w=k.embedded_player_response;
w&&(u=JSON.parse(w))}if(u){var m,h,B,U,v,P;u=((P=g.J((m=u)==null?void 0:(h=m.embedPreview)==null?void 0:(B=h.thumbnailPreviewRenderer)==null?void 0:(U=B.playButton)==null?void 0:(v=U.buttonRenderer)==null?void 0:v.navigationEndpoint,g.W3))==null?void 0:P.videoId)||null}else u=null}m=(m=u)?m:void 0;h=F.playlistId?F.playlistId:k.list;B=k.listType;if(h){var I;B==="user_uploads"?I={username:h}:I={playlistId:h};Ykn(q,m,k,I);N.playlistRequest=I}else k.playlist?(I={templistVideoIds:k.playlist.toString().split(",")},
Ykn(q,m,k,I),N.playlistRequest=I):m&&(I={videoId:m},q&&(I.serializedThirdPartyEmbedConfig=q),N.singleVideoRequest=I);x=N;D=g.jn(noI);g.lD(X,2);return g.c(X,g.od(z,x,D),4)}if(X.Y!=2)return e=X.L,C=F.C(),k.raw_embedded_player_response=e,C.mp=q5(k,g.tJ(C)),C.U=C.mp==="EMBEDDED_PLAYER_MODE_PFL",e&&(p=e,p.trackingParams&&Hc(p.trackingParams)),X.return(new g.Rt(C,k));E=g.rI(X);E instanceof Error||(E=Error("b259802748"));g.JV(E);return X.return(F)})};
Ykn=function(F,k,z,x){z.index&&(x.playlistIndex=String(Number(z.index)+1));x.videoId=k?k:"";F&&(x.serializedThirdPartyEmbedConfig=F)};
g.EL=function(F,k){p0.get(F);p0.set(F,k)};
g.XP=function(F){g.uG.call(this);this.loaded=!1;this.player=F};
LjH=function(){this.L=[];this.Y=[]};
g.o7=function(F,k){return k?F.Y.concat(F.L):F.Y};
g.qe=function(F,k){switch(k.kind){case "asr":flR(k,F.L);break;default:flR(k,F.Y)}};
flR=function(F,k){g.M$(k,function(z){return F.VZ(z)})||k.push(F)};
g.Ne=function(F){g.S.call(this);this.Vh=F;this.L=new LjH;this.j=null;this.W=[];this.B=[]};
g.up=function(F,k,z){g.Ne.call(this,F);this.videoData=k;this.audioTrack=z;this.Y=null;this.U=!1;this.W=k.yb;this.B=k.wB;this.U=g.HP(k)};
g.wm=function(F,k){return Cm(F.info.mimeType)?k?F.info.itag===k:!0:!1};
g.Kj9=function(F,k){if(F.Y!=null&&g.Pe(k.C())&&!F.Y.isManifestless&&F.Y.Y.rawcc!=null)return!0;if(!F.oS())return!1;k=!!F.Y&&F.Y.isManifestless&&Object.values(F.Y.Y).some(function(z){return g.wm(z,"386")});
F=!!F.Y&&!F.Y.isManifestless&&g.amI(F.Y);return k||F};
g.mV=function(F,k,z,x,D,e){g.Ne.call(this,F);this.videoId=z;this.I7=D;this.eventId=e;this.S={};this.Y=null;F=x||g.jl(k).hl||"";F=F.split("_").join("-");this.U=el(k,{hl:F})};
Wj6=function(F,k){this.L=F;this.Y=k;this.onFailure=void 0};
FBH=function(F,k){return{jx:F.jx&&k.jx,E3:F.E3&&k.E3,sync:F.sync&&k.sync,streaming:F.streaming&&k.streaming}};
lp=function(F,k){var z=kRn,x=this;this.path=F;this.U=k;this.j=z;this.capabilities={jx:!!this.U,E3:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.W=new Wj6([{name:"compileStreaming",condition:function(D){return!!x.L&&D.streaming},
Ee:T0.Vq("wmcx",function(){return WebAssembly.compileStreaming(fetch(x.path))}),
onFailure:function(){return x.capabilities.streaming=!1}},
{name:"sync",condition:function(D){return D.sync},
Ee:function(){return QK(o5C(x),T0.Vq("wmcs",function(D){return new WebAssembly.Module(D)}))},
onFailure:function(){return x.capabilities.sync=!1}},
{name:"async",condition:function(){return!0},
Ee:function(){return QK(o5C(x),T0.Vq("wmca",function(D){return WebAssembly.compile(D)}))},
onFailure:function(){return x.capabilities.E3=!1}}]);
this.S=new Wj6([{name:"instantiateStreaming",condition:function(D){return D.E3&&D.streaming&&!x.L&&!x.Y},
Ee:function(D,e){return T0.SS("wmix",function(){return WebAssembly.instantiateStreaming(fetch(x.path),e)}).then(function(C){x.Y=uk(C.module);
return{instance:C.instance,Cu:!1}})},
onFailure:function(){return x.capabilities.streaming=!1}},
{name:"sync",condition:function(D){return D.E3&&D.sync},
Ee:function(D,e){return QK(zSY(x,D),T0.Vq("wmis",function(C){return{instance:new WebAssembly.Instance(C,e),Cu:!1}}))},
onFailure:function(){return x.capabilities.sync=!1}},
{name:"async",condition:function(D){return D.E3},
Ee:function(D,e){return QK(QK(zSY(x,D),T0.Vq("wmia",function(C){return WebAssembly.instantiate(C,e)})),function(C){return{instance:C,
Cu:!1}})},
onFailure:function(){return x.capabilities.E3=!1}},
{name:"asmjs",condition:function(D){return D.jx},
Ee:function(D,e){return uk(T0.SS("wmij",function(){return x.U(e)}).then(function(C){return{instance:{exports:C},
Cu:!0}}))},
onFailure:function(){return x.capabilities.jx=!1}}],function(D,e,C){return x.j(C,D.instance.exports)})};
DcM=function(F){var k=xcp;return k.instantiate(F?FBH(k.capabilities,F):k.capabilities,new iDn)};
o5C=function(F){if(F.L)return F.L;var k=fetch(F.path).then(function(z){return z.arrayBuffer()}).then(function(z){F.L=uk(z);
return z}).then(void 0,function(z){g.yI(Error("wasm module fetch failure: "+z.message,{cause:z}));
F.L=void 0;throw z;});
F.L=uk(k);return F.L};
zSY=function(F,k){if(!k.E3)return mM(Error("wasm unavailable"));if(F.Y)return F.Y;F.Y=hd(QK(F.compile(k),function(z){F.Y=uk(z);return z}),function(z){g.yI(Error("wasm module compile failure: "+z.message,{cause:z}));
F.Y=void 0;throw z;});
return F.Y};
$cD=function(){};
jEk=function(){var F=this;this.proc_exit=function(){};
this.fd_write=function(k,z,x){if(!F.exports)return 1;k=new Uint32Array(F.exports.memory.buffer,z,x*2);z=[];for(var D=0;D<x;++D){var e=new Uint8Array(F.exports.memory.buffer,k[D*2],k[D*2+1]);e=g.OP(e);z.push(e)}return z.reduce(function(C,p){return C+p.length},0)}};
iDn=function(){this.env=new $cD;this.wasi_snapshot_preview1=new jEk};
kRn=function(F,k){F.wasi_snapshot_preview1.exports=k;F=Math.floor(Math.random()*256);var z=Math.floor(Math.random()*256),x=0;try{x=k.malloc(16);(new Uint8Array(k.memory.buffer,x,16)).fill(F);if(k.sentinel(x,16,z)!==z*16%256)return!1;for(var D=new Uint8Array(k.memory.buffer,x,16),e=0;e<16;e++)if(D[e]!==(F+z)%256)return!1;return!0}finally{x!==0&&k.free(x)}};
eSR=function(F,k){this.instance=F;this.Cu=k;this.exports=this.Y=this.instance.exports};
Amk=function(F,k,z){z=z===void 0?!1:z;var x=x===void 0?!0:x;var D=T0.Fi();return QK(Cm9(F,k,{jx:z,E3:!0,sync:!0,streaming:!0},x),function(e){T0.wX(e.Cu?"winitjs":"winit",D);return e})};
Cm9=function(F,k,z,x){x=x===void 0?!0:x;xcp||(xcp=new lp(F,k));return QK(DcM(z),function(D){return new eSR(D.instance,D.Cu,x)})};
p2R=function(F,k){g.S.call(this);var z=this;this.T=F;this.Y=k;this.C3={};this.L={};this.U=null;this.j=new Set;this.W=new g.yQ(this);this.Pe={R2K:function(){return z.Y},
HJ:function(){return z.HJ()}};
this.S=this.T.V("web_player_defer_modules");this.hv=new Map;g.b(this,this.W);this.W.N(F,"videodatachange",this.onVideoDataChange)};
g.Qt=function(F){return F.hv.get("captions")};
w2Y=function(F,k){switch(k){case "ad":return E5H(F);case "annotations_module":return F.T.isEmbedsShortsMode()?F=!1:(k=F.T,F=k.C(),k=k.getVideoData(),F=F.U||k.gb||F.controlsType==="3"?!1:F.yh.isEmpty()&&F.playerStyle!=="annotation-editor"&&F.playerStyle!=="live-dashboard"?!!k.NJ||!!g.Oh(k)||!!g.VT(k):!0),F;case "asmjs":return F.T.C().V("html5_allow_asmjs");case "creatorendscreen":return X2I(F);case "embed":return g.tJ(F.T.C());case "endscreen":return g.q85(F);case "heartbeat":return F.fT();case "kids":return JJ(F.T.C());
case "remote":return F.T.C().OF;case "miniplayer":return F.T.C().showMiniplayerUiWhenMinimized;case "offline":return F.T.C().fb;case "captions":return NTk(F);case "unplugged":return g.IB(F.T.C());case "ux":return F.T.C().kG;case "webgl":return uOY(F);case "ypc":return F.s_();case "ypc_clickwrap":return F=F.T.getVideoData(),F.Tr&&!F.Hu;case "yto":return!!F.T.getVideoData().t4.includes("yto");default:return g.JV(Error("Module descriptor "+k+" does not match")),!1}};
h_=function(F,k,z,x,D){var e;z=z===void 0?!1:z;x=x===void 0?!1:x;var C=F.hv.get(k);if(!C||x)if(D||(D=function(){h_(F,k,z,x)}),e||(e=function(){F.T.mE(k)}),C=C||mcI(F,k,w2Y(F,k),D,e))F.hv.set(k,C),C.create(),F.T.publish("modulecreated",k),z&&F.T.RI("onApiChange")};
lw6=function(F){var k=k===void 0?!1:k;var z,x,D,e,C;return g.O(function(p){if(p.Y==1)return(z=F.hv.get("asmjs"))&&!k?p.return(z):(x=p0.get("asmjs"))!=null?(D=x,p.Sk(2)):g.c(p,new Promise(function(E,X){TTI(F,"asmjs",function(){var q=p0.get("asmjs");q?E(q):X("cannot load module asmjs")},X)}),3);
p.Y!=2&&(D=p.L);e=D;if(!e)return p.return(Promise.reject("cannot load module asmjs"));C=new e(F.T);F.hv.set("asmjs",C);C.create();return p.return(C)})};
sE6=function(F){QEC(F)&&F.AB();hSM(F)&&(h_(F,"captions",!0),h_(F,"endscreen"),F.Mz(),h_(F,"creatorendscreen",!0))};
hSM=function(F){var k=F.T.getVideoData(),z=F.S&&!k.isInlinePlaybackNoAd;F.T.V("html5_defer_modules_on_ads_only")&&!k.isAd()&&(z=!1);return z};
QEC=function(F){F=F.T.getVideoData();var k;if(k=F.V("web_player_defer_ad")){if(g.fC(F.t4,"ad")||g8H(F)||F.enableServerStitchedDai)F=!1;else{k=F.playerResponse;F=F.startSeconds;var z=k==null?void 0:k.adPlacements;if(k=z){k=Number.MAX_VALUE;z=g.l(z);for(var x=z.next();!x.done;x=z.next())if(x=x.value.adPlacementRenderer){var D=void 0,e=(D=x.config)==null?void 0:D.adPlacementConfig;D=void 0;if(((D=e)==null?void 0:D.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var C=D=void 0;e=Number((D=e)==null?void 0:(C=
D.adTimeOffset)==null?void 0:C.offsetStartMilliseconds)||0;C=D=void 0;x=Number(((D=x.renderer)==null?void 0:(C=D.adBreakServiceRenderer)==null?void 0:C.prefetchMilliseconds)||0);x=e-x;x<k&&(k=x)}}k=k-5E3<=F*1E3}F=k?!1:!0}k=F}return k};
NTk=function(F){var k=F.T.getVideoData();return!!k.H8||!!k.captionTracks.length||g.Kj9(k,F.T)};
g.q85=function(F){var k=F.T.C();if(k.U||ot(k)||k.S||!k.ZR&&!k.Z7)return!1;var z=F.T.getPresentingPlayerType();if(z===2)return!1;if(z===3)return k.V("desktop_enable_autoplay");F=F.T.getVideoData();if(!F)return!1;z=!F.isLiveDefaultBroadcast||k.V("allow_poltergust_autoplay");z=F.isLivePlayback&&(!k.V("allow_live_autoplay")||!z);k=F.isLivePlayback&&k.V("allow_live_autoplay_on_mweb");return!z||k};
g.VU=function(F){return F.hv.get("webgl")};
uOY=function(F){var k=F.T.getVideoData();F=F.T.C();var z=g.mdC(),x=F.V("enable_spherical_kabuki"),D=g.kE(F);if(g.cP(k))return z||x||D;if(g.Zx(k))return D||z||x;if(g.vP(k))return D||z||!1;if(g.N8(k))return D||!1;z=k.L&&k.L.video&&k.L.video.isHdr();return D&&!g.me(k)&&!z&&F.V("enable_webgl_noop")};
E5H=function(F){if(F.T.C().U)return!1;F=F.T.getVideoData(1);var k=F.getPlayerResponse();if(k){var z=k.adPlacements;if(z)for(var x=0;x<z.length;x++)if(z[x].adPlacementRenderer)return!0;if(k.adSlots)return!0}return g.Mk(F)?!0:!1};
X2I=function(F){if(F.T.isEmbedsShortsMode())return!1;F=F.T;var k=F.C();if(k.U)return!1;var z;if(((z=k.getWebPlayerContextConfig())==null?0:z.embedsEnableEmc3ds)||k.controlsType==="3")return!1;if(k.playerStyle==="creator-endscreen-editor")return!0;z=F.getVideoData();return!!z&&(!!g.oXx(z)||!!g.zjM(z))};
mcI=function(F,k,z,x,D){try{if(z){var e=p0.get(k);if(e)return new e(F.T);TTI(F,k,x,D)}else F.T.mE(k)}catch(C){F.T.mE(k),g.JV(C)}return null};
sL=function(F,k,z){if(F.T.C().V("html5_dispose_modules_in_order"))for(var x=g.l(rma),D=x.next();!D.done;D=x.next()){D=D.value;var e=F.hv.get(D);e&&(z||e.zy(k))&&(g.CC(e),F.hv.delete(D))}else for(x=g.l(F.hv),D=x.next();!D.done;D=x.next())e=g.l(D.value),D=e.next().value,(e=e.next().value)&&(z||e.zy(k))&&(g.CC(e),F.hv.delete(D))};
rm=function(F){return F.hv.get("ad")};
BTk=function(F){if(JJ(F.T.C()))return F.hv.get("kids")};
cv=function(F){if(F.T.C().OF)return F.hv.get("remote")};
g.Bm=function(F){if(g.IB(F.T.C()))return F.hv.get("unplugged")};
UxR=function(F){if(F.T.C().kG)return F.hv.get("ux")};
GR5=function(F){if(F.T.C().showMiniplayerUiWhenMinimized)return F.hv.get("miniplayer")};
G0=function(F){if(F.T.C().fb)return F.hv.get("offline")};
g.UL=function(F){return F.hv.get("annotations_module")};
t_=function(F){return F.hv.get("creatorendscreen")};
tzk=function(F,k){var z=F.Y.startsWith("https://")?F.Y+"lib.wasm":F.Y.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";return Amk(z,function(x){var D=F.hv.get("asmjs");return D?Promise.resolve(D.u4(x)):Ucn(F).then(function(e){return e.u4(x)})},k)};
Ucn=function(F){var k,z;return g.O(function(x){if(x.Y==1)return g.c(x,lw6(F),2);z=k=x.L;return x.return(z)})};
TTI=function(F,k,z,x){if(F.Y){var D=ZDa[k];v59(F,F.Y+D,function(){F.j.add(D);z.call(F)},x)}};
v59=function(F,k,z,x){function D(){F.z4()||x.call(F)}
function e(){F.z4()||z.call(F)}
for(var C=g.kM("SCRIPT"),p=!1,E,X=0;X<C.length;X++){var q=C[X];if(q.src===k||q.getAttribute("data-original-src")===k)E=q}E||(E=g.Ci("SCRIPT"),E.setAttribute("data-original-src",k),p=!0);var N=E.onload;E.onload=function(h){Nt(e);N&&N.apply(window,[h])};
var u=E.onerror;E.onerror=function(h){if(Math.random()<.01){var B=new g.Fa("Unable to load player module",k,document.location&&document.location.origin);g.JV(B)}Nt(D);u&&u(h)};
var w=E,m=w.onreadystatechange;w.onreadystatechange=function(h){switch(w.readyState){case "loaded":case "complete":Nt(e)}m&&m(h)};
p&&((C=F.T.C().cspNonce)&&E.setAttribute("nonce",C),g.F7(E,g.Ur(k)),C=g.kM("HEAD")[0]||document.body,C.insertBefore(E,C.firstChild),F.addOnDisposeCallback(function(){E.parentNode&&E.parentNode.removeChild(E)}))};
cmp=function(F,k,z,x,D){g.uG.call(this);var e=this;this.target=F;this.qz=k;this.L=0;this.S=!1;this.j=new g.sV(NaN,NaN);this.Y=new g.yQ(this);this.t4=this.U=this.G=null;g.b(this,this.Y);k=x||D?4E3:3E3;this.K=new g.KS(function(){Zq(e,1,!1)},k,this);
g.b(this,this.K);this.Qh=new g.KS(function(){Zq(e,2,!1)},k,this);
g.b(this,this.Qh);this.PR=new g.KS(function(){Zq(e,512,!1)},k,this);
g.b(this,this.PR);this.mp=3E3;x||(this.U=this.Y.N(F,"mouseover",this.gK),this.Y.N(F,"mousemove",this.iU),this.Y.N(F,"mouseleave",this.uma));qO?this.Y.N(F,"keypress",this.PLt):this.Y.N(F,"focusin",this.gh);this.W=this.Y.N(F,"mousedown",this.UU);this.B=this.Y.N(F,"touchstart",this.Q0,void 0,!0);Zq(this,640,!0)};
PmH=function(F){Zq(F,4,!1);F.G&&(F.Y.er(F.G),F.G=null,F.U=F.Y.N(F.target,"mouseover",F.gK));F.U&&(F.Y.er(F.U),F.U=F.Y.N(F.target,"mouseover",F.gK))};
Zq=function(F,k,z){F.z4();var x=!F.L;z?(F.L|=k,k&1&&F.K.start(),k&2&&F.Qh.start()):(F.L&=~k,k&1&&F.K.stop(),k&2&&F.Qh.stop(),k&512&&F.PR.stop());F.L&512&&!(F.L&128)&&g.WN(F.PR,F.mp);k=!F.L;x!==k&&F.publish("autohideupdate",k)};
g.cm=function(F){g.Y.call(this,{X:"button",WR:["ytp-large-play-button","ytp-button"],D:{"aria-label":"Play",title:"Play"},Z:["{{largePlayButtonChildren}}"]});this.api=F;this.N(F,"videodatachange",this.G4);this.N(F,"basechromeinitialized",this.W$h);F=this.api.C();F.B&&vm&&(this.listen("click",this.tkQ,this),this.listen("touchstart",this.eVk,this));g.Vq(F)&&g.C6(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.G4()};
g.Pm=function(F){var k=F.C(),z=["ytp-cued-thumbnail-overlay"];k.S&&z.push("ytp-exp-contain-thumbnail");k.V("web_player_show_frame_zero_when_cued")&&z.push("ytp-exp-frame0");g.Y.call(this,{X:"div",WR:z,Z:[{X:"div",J:"ytp-cued-thumbnail-overlay-image"}]});k=this.EK("ytp-cued-thumbnail-overlay");z=new g.cm(F);g.b(this,z);z.T4(k);this.U=new g.yQ(this);g.b(this,this.U);this.api=F;this.j=this.EK("ytp-cued-thumbnail-overlay-image");this.L=z;this.fade=new g.Cv(this,250);g.b(this,this.fade);this.Y=new g.KS(this.G4,
0,this);g.b(this,this.Y);this.G4();this.N(F,"appresize",this.OH);this.N(F,"presentingplayerstatechange",this.onStateChange);this.N(F,"ypcStateChanged",this.Oi$);vJ(F.C())&&this.N(F,"videoplayerreset",this.onReset)};
ODD=function(F){if(!F.api.V("web_player_show_frame_zero_when_cued"))return!1;var k=F.api.getCurrentTime();F=F.api.getPlayerStateObject();F=g.n(F,64)&&g.n(F,1);return k===0&&F};
g.OL=function(F){g.Y.call(this,{X:"div",WR:["ytp-error"],D:{role:"alert"},Z:[{X:"div",J:"ytp-error-content",Z:[{X:"div",J:"ytp-error-icon-container",Z:[{X:"svg",D:{fill:"#fff",viewBox:"0 0 48 48"},Z:[{X:"path",D:{d:"M0 0h48v48H0V0z",fill:"none"}},{X:"path",D:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{X:"div",J:"ytp-error-content-wrap",
Z:[{X:"div",J:"ytp-error-content-wrap-reason",jk:"{{content}}"},{X:"div",J:"ytp-error-content-wrap-subreason",jk:"{{subreason}}"}]}]}]});this.api=F;this.keys=[];this.U=!1;F.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.Q2)};
g.Vt=function(F){F=F.split(Vzn);for(var k=[],z=0;z<F.length;z+=3){var x=F[z++].split("\n");k.push(x[0]);for(var D=1;D<x.length;D++)k.push({X:"br"}),k.push(x[D]);z<F.length&&k.push({X:"a",D:{href:F[z],target:F[z+1]},jk:F[z+2]})}return{X:"span",Z:k}};
Hm=function(F,k,z,x,D,e,C){x=x===void 0?!1:x;D=D===void 0?!1:D;C=C===void 0?!0:C;D||(D=F.api.C().j);var p=F.api.getVideoData();k=g.rG(g.I7[k]||"",x?{CPN:p.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);x=[];e&&x.push({X:"h2",jk:e});x.push(k[0]);C&&x.push({X:"br"});x.push({X:"a",D:{href:z,target:D?"_blank":null},J:"ytp-error-link",jk:k[2]});F.U=!0;x.push(k[4]);return{X:"span",Z:x}};
IwD=function(F,k){for(var z=F.element.getElementsByTagName("a"),x=0;x<z.length;x++){var D=F.N(z[x],"click",k);F.keys.push(D)}};
HDx=function(F){for(var k=0;k<F.keys.length;k++)F.er(F.keys[k]);F.keys=[]};
awn=function(F){g.Y.call(this,{X:"div",J:"ytp-paid-content-overlay",D:{"aria-live":"assertive","aria-atomic":"true"}});this.T=F;this.videoId=null;this.U=!1;this.innertubeCommand=this.fv=this.Y=null;var k=F.C();F.V("enable_new_paid_product_placement")&&!g.WJ(k)?(this.L=new g.Y({X:"a",J:"ytp-paid-content-overlay-link",D:{href:"{{href}}",target:"_blank"},Z:[{X:"div",J:"ytp-paid-content-overlay-indicator"},{X:"div",J:"ytp-paid-content-overlay-icon",jk:"{{icon}}"},{X:"div",J:"ytp-paid-content-overlay-text",
jk:"{{text}}"},{X:"div",J:"ytp-paid-content-overlay-chevron",jk:"{{chevron}}"}]}),this.N(this.L.element,"click",this.onClick)):this.L=new g.Y({X:"div",WR:["ytp-button","ytp-paid-content-overlay-text"],jk:"{{text}}"});this.fade=new g.Cv(this.L,250,!1,100);g.b(this,this.L);this.L.T4(this.element);g.b(this,this.fade);this.T.createServerVe(this.element,this);this.N(F,"videodatachange",this.onVideoDataChange);this.N(F,"presentingplayerstatechange",this.Xl)};
bD5=function(F,k){var z=J8R(k),x=y8C(k);if(!k.Tr||!F.T.wO())if(F.Y||F.T.V("enable_paid_content_overlay_bugfix")){if(k.videoId&&k.videoId!==F.videoId){var D;(D=F.Y)==null||g.ke(D);!F.T.V("enable_paid_content_overlay_bugfix")||z&&x?(F.videoId=k.videoId,F.U=!!x,F.U&&z&&S89(F,x,z,k)):F.U=!1}}else z&&x&&!F.T.V("enable_paid_content_overlay_bugfix")&&S89(F,x,z,k)};
S89=function(F,k,z,x){F.Y&&F.Y.dispose();F.Y=new g.KS(F.bL,k,F);g.b(F,F.Y);x=TC(x);k=x==null?void 0:x.navigationEndpoint;var D;x=x==null?void 0:(D=x.icon)==null?void 0:D.iconType;var e;D=(e=g.J(k,g.gt))==null?void 0:e.url;F.T.setTrackingParams(F.element,(k==null?void 0:k.clickTrackingParams)||null);k&&!D?(F.innertubeCommand=k,D="#!"):F.innertubeCommand=null;var C;F.L.update({href:(C=D)!=null?C:"#",text:z,icon:x==="MONEY_HAND"?{X:"svg",D:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},
Z:[{X:"path",D:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
fill:"white"}}]}:null,chevron:D||F.innertubeCommand?g.tL():null})};
dck=function(F,k){F.Y&&(g.n(k,8)&&F.U?(F.U=!1,F.NR(),F.Y.start()):(g.n(k,2)||g.n(k,64))&&F.videoId&&(F.videoId=null))};
a7=function(F){g.Y.call(this,{X:"div",J:"ytp-spinner",Z:[Aq(),{X:"div",J:"ytp-spinner-message",jk:"If playback doesn't begin shortly, try restarting your device."}]});this.api=F;this.message=this.EK("ytp-spinner-message");this.Y=new g.KS(this.show,500,this);g.b(this,this.Y);this.N(F,"presentingplayerstatechange",this.onStateChange);this.N(F,"playbackstalledatstart",this.L);this.pJ(F.getPlayerStateObject())};
SR=function(F){var k=[{X:"div",WR:["ytp-unmute-icon"],Z:[{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{X:"div",WR:["ytp-unmute-text"],jk:"Tap to unmute"}];k.push({X:"div",WR:["ytp-unmute-box"],Z:[]});g.RL.call(this,F,{X:"button",WR:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],Z:[{X:"div",J:"ytp-unmute-inner",Z:k}]},100);this.Y=this.clicked=!1;this.api=F;this.api.createClientVe(this.element,this,51663);this.N(F,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.N(F,"presentingplayerstatechange",this.oo);this.listen("click",this.onClick,this);F=F.isMutedByMutedAutoplay()&&
!g.tJ(this.api.C());this.Yj(F);F&&JmD(this);this.U=F};
JmD=function(F){F.Y||(F.Y=!0,F.api.logVisibility(F.element,!0))};
g.bp=function(F){g.yQ.call(this);var k=this;this.api=F;this.W_=!1;this.yX=null;this.RW=!1;this.Ah=null;this.qq=this.TP=!1;this.Ex=this.XN=null;this.jQ=NaN;this.ix=this.Ni=!1;this.xk=0;this.wA=[];this.Gj=!1;this.F_={height:0,width:0};this.AJ=480;this.H$f=["ytp-player-content","html5-endscreen","ytp-overlay"];this.Yd={yR:!1};var z=F.C(),x=F.Ka();this.F_=F.getPlayerSize();this.Qk=new g.KS(this.H_,0,this);g.b(this,this.Qk);z.disableOrganicUi||(this.Lg=new g.Pm(F),g.b(this,this.Lg),g.Hv(F,this.Lg.element,
4));if(ym9(this)){var D=new a7(F);g.b(this,D);D=D.element;g.Hv(F,D,4)}var e=F.getVideoData();this.Oh=new cmp(x,function(p){return k.qz(p)},e,z.T1,!1);
g.b(this,this.Oh);this.Oh.subscribe("autohideupdate",this.Fy,this);if(!z.disablePaidContentOverlay){var C=new awn(F);g.b(this,C);g.Hv(F,C.element,4)}this.S6=new SR(F);g.b(this,this.S6);g.Hv(this.api,this.S6.element,2);this.lj=this.api.isMutedByMutedAutoplay();this.N(F,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.i9=new g.KS(this.o5,200,this);g.b(this,this.i9);this.Py=e.videoId;this.Oq=new g.KS(function(){k.xk=0},350);
g.b(this,this.Oq);this.Yx=new g.KS(function(){k.ix||RS5(k)},350,this);
g.b(this,this.Yx);e=F.getRootNode();e.setAttribute("aria-label","YouTube Video Player");switch(z.color){case "white":g.C6(e,"ytp-color-white")}this.N(F,"appresize",this.OH);this.N(F,"presentingplayerstatechange",this.oo);this.N(F,"videodatachange",this.onVideoDataChange);this.N(F,"videoplayerreset",this.hNa);this.N(F,"autonavvisibility",function(){k.No()});
this.N(F,"sizestylechange",function(){k.No()});
this.N(x,"click",this.aF4,this);this.N(x,"dblclick",this.jIh,this);this.N(x,"mousedown",this.tZ_,this);z.qD&&(this.N(x,"gesturechange",this.hKt,this),this.N(x,"gestureend",this.FHK,this));this.bA=[x.bX];this.Lg&&this.bA.push(this.Lg.element);D&&this.bA.push(D);this.api.V("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(x.element,this,247482),this.api.logVisibility(x.element,!0))};
g5x=function(F,k){if(!k)return!1;var z=F.api.S9();if(z.tA()&&(z=z.T$())&&g.N_(z,k))return z.controls;for(z=0;z<F.bA.length;z++)if(g.N_(F.bA[z],k))return!1;z=g.l(F.H$f);for(var x=z.next();!x.done;x=z.next())if(g.ed(k,x.value))return!1;return k===F.api.getRootNode()?!1:!0};
Y8Y=function(F){var k=F.api.getPresentingPlayerType()===2&&(F.api.Ka().Q8||F.api.C().disableOrganicUi||!1)&&F.api.C().L&&vm&&dm>=11;F=F.api.C().B&&vm;return!(!k&&!F)};
J_=function(F,k){return!F.api.isInline()&&!g5x(F,vW(k))&&g.Pu(k)};
RS5=function(F){F.Oh.wq();if(F.TP&&F.qq)F.qq=!1;else if(!F.api.C().cR&&!F.Ec()){var k=F.api.getPlayerStateObject();g.n(k,2)&&g.Z9(F.api)||F.O_(k);!F.api.C().qD||k.isCued()||g.n(k,1024)?F.o5():F.i9.isActive()?(F.bj(),F.i9.stop()):F.i9.start()}};
n5R=function(F,k){var z;if((z=F.api.getVideoData())==null?0:z.mutedAutoplay){var x,D;if((x=k.target)==null?0:(D=x.className)==null?0:D.includes("ytp-info-panel"))return!1}return g.Pu(k)&&F.api.isMutedByMutedAutoplay()?(F.api.unMute(),F.api.getPresentingPlayerType()===2&&F.api.playVideo(),k=F.api.getPlayerStateObject(),!g.n(k,4)||g.n(k,8)||g.n(k,2)||F.o5(),!0):!1};
Mzn=function(F,k,z){F.api.isFullscreen()?z<1-k&&F.api.toggleFullscreen():z>1+k&&F.api.toggleFullscreen()};
ym9=function(F){var k=Mz()&&RS()>=67&&!F.api.C().B;F=F.api.C().disableOrganicUi;return!g.ng("tizen")&&!BJ&&!k&&!F};
g.R7=function(F){g.Y.call(this,{X:"div",Z:[{X:"div",J:"ytp-bezel-text-wrapper",Z:[{X:"div",J:"ytp-bezel-text",jk:"{{title}}"}]},{X:"div",J:"ytp-bezel",D:{role:"status","aria-label":"{{label}}"},Z:[{X:"div",J:"ytp-bezel-icon",jk:"{{icon}}"}]}]});this.T=F;this.L=new g.KS(this.show,10,this);F=this.T.V("delhi_modern_web_player")?1E3:500;this.Y=new g.KS(this.hide,F,this);g.b(this,this.L);g.b(this,this.Y);this.hide()};
Yf=function(F,k,z){if(k<=0){z=SL();k="muted";var x=0}else z=z?{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,D:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,D:{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"}}]},x=Math.floor(k),k=x+"volume";gm(F,z,k,x+"%")};
LBH=function(F,k){k=k?{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{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"}}]}:uaH();var z=F.T.getPlaybackRate(),x=g.rG("Speed is $RATE",{RATE:String(z)});gm(F,k,x,z+"x")};
fwR=function(F,k){k=k?"Subtitles/closed captions on":"Subtitles/closed captions off";gm(F,oiD(),k)};
gm=function(F,k,z,x){x=x===void 0?"":x;F.updateValue("label",z===void 0?"":z);F.updateValue("icon",k);g.ke(F.Y);F.L.start();F.updateValue("title",x);g.XF(F.element,"ytp-bezel-text-hide",!x)};
KBa=function(F,k){g.Y.call(this,{X:"button",WR:["ytp-button","ytp-cards-button"],D:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.tJ(F.C()))},Z:[{X:"span",J:"ytp-cards-button-icon-default",Z:[{X:"div",J:"ytp-cards-button-icon",Z:[F.C().V("player_new_info_card_format")?T3x():{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{X:"div",J:"ytp-cards-button-title",jk:"Info"}]},{X:"span",J:"ytp-cards-button-icon-shopping",Z:[{X:"div",J:"ytp-cards-button-icon",Z:[{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",J:"ytp-svg-shadow",D:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{X:"path",J:"ytp-svg-fill",D:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{X:"path",J:"ytp-svg-shadow-fill",D:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{X:"div",
J:"ytp-cards-button-title",jk:"Shopping"}]}]});this.T=F;this.L=k;this.Y=null;this.fade=new g.Cv(this,250,!0,100);g.b(this,this.fade);g.XF(this.L,"ytp-show-cards-title",g.tJ(F.C()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.k5(!0)};
WBR=function(F,k){g.Y.call(this,{X:"div",J:"ytp-cards-teaser",Z:[{X:"div",J:"ytp-cards-teaser-box"},{X:"div",J:"ytp-cards-teaser-text",Z:F.C().V("player_new_info_card_format")?[{X:"button",J:"ytp-cards-teaser-info-icon",D:{"aria-label":"Show cards","aria-haspopup":"true"},Z:[T3x()]},{X:"span",J:"ytp-cards-teaser-label",jk:"{{text}}"},{X:"button",J:"ytp-cards-teaser-close-button",D:{"aria-label":"Close"},Z:[g.Z4()]}]:[{X:"span",J:"ytp-cards-teaser-label",jk:"{{text}}"}]}]});var z=this;this.T=F;this.Wc=
k;this.fade=new g.Cv(this,250,!1,250);this.Y=null;this.G=new g.KS(this.rlG,300,this);this.S=new g.KS(this.Kuh,2E3,this);this.j=[];this.L=null;this.B=new g.KS(function(){z.element.style.margin="0"},250);
this.onClickCommand=this.U=null;g.b(this,this.fade);g.b(this,this.G);g.b(this,this.S);g.b(this,this.B);F.C().V("player_new_info_card_format")?(g.C6(F.getRootNode(),"ytp-cards-teaser-dismissible"),this.N(this.EK("ytp-cards-teaser-close-button"),"click",this.TX),this.N(this.EK("ytp-cards-teaser-info-icon"),"click",this.LC),this.N(this.EK("ytp-cards-teaser-label"),"click",this.LC)):this.listen("click",this.LC);this.N(k.element,"mouseover",this.aB);this.N(k.element,"mouseout",this.Pp);this.N(F,"cardsteasershow",
this.RKK);this.N(F,"cardsteaserhide",this.bL);this.N(F,"cardstatechange",this.nW);this.N(F,"presentingplayerstatechange",this.nW);this.N(F,"appresize",this.nm);this.N(F,"onShowControls",this.nm);this.N(F,"onHideControls",this.U$);this.listen("mouseenter",this.SD)};
F1C=function(F){g.Y.call(this,{X:"button",WR:[n0.BUTTON,n0.TITLE_NOTIFICATIONS],D:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},Z:[{X:"div",J:n0.TITLE_NOTIFICATIONS_ON,D:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},Z:[g.Px()]},{X:"div",J:n0.TITLE_NOTIFICATIONS_OFF,D:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},Z:[{X:"svg",D:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},Z:[{X:"path",D:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});
this.api=F;this.Y=!1;F.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")};
kYR=function(F,k){F.Y=k;F.element.classList.toggle(n0.NOTIFICATIONS_ENABLED,F.Y);var z=F.api.getVideoData();z?(k=k?z.ZM:z.Mr)?(F=F.api.Bl())?k_(F,k):g.JV(Error("No innertube service available when updating notification preferences.")):g.JV(Error("No update preferences command available.")):g.JV(Error("No video data when updating notification preferences."))};
z3k=function(F,k,z){var x=x===void 0?800:x;var D=D===void 0?600:D;var e=document.location.protocol;F=lgp(e+"//"+F+"/signin?context=popup","feature",k,"next",e+"//"+location.hostname+"/post_login");oAk(F,z,x,D)};
oAk=function(F,k,z,x){z=z===void 0?800:z;x=x===void 0?600:x;if(F=g.MX(window,F,"loginPopup","width="+z+",height="+x+",resizable=yes,scrollbars=yes"))ue5(function(){k()}),F.moveTo((screen.width-z)/2,(screen.height-x)/2)};
g.Me=function(F,k,z,x,D,e,C,p,E,X,q,N){F=F.charAt(0)+F.substring(1).toLowerCase();z=z.charAt(0)+z.substring(1).toLowerCase();if(k==="0"||k==="-1")k=null;if(x==="0"||x==="-1")x=null;var u=q.C(),w=u.userDisplayName&&g.Vq(u);g.Y.call(this,{X:"div",WR:["ytp-button","ytp-sb"],Z:[{X:"div",J:"ytp-sb-subscribe",D:w?{title:g.rG("Subscribe as $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":ze(u),"data-tooltip-opaque":String(g.tJ(u)),tabindex:"0",role:"button"}:
{"aria-label":"Subscribe to channel"},Z:[{X:"div",J:"ytp-sb-text",Z:[{X:"div",J:"ytp-sb-icon"},F]},k?{X:"div",J:"ytp-sb-count",jk:k}:""]},{X:"div",J:"ytp-sb-unsubscribe",D:w?{title:g.rG("Subscribed as $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":ze(u),"data-tooltip-opaque":String(g.tJ(u)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},Z:[{X:"div",J:"ytp-sb-text",Z:[{X:"div",J:"ytp-sb-icon"},z]},x?{X:"div",J:"ytp-sb-count",
jk:x}:""]}],D:{"aria-live":"polite"}});var m=this;this.channelId=C;this.T=q;this.U=N;var h=this.EK("ytp-sb-subscribe"),B=this.EK("ytp-sb-unsubscribe");e&&g.C6(this.element,"ytp-sb-classic");if(D){p?this.Y():this.L();var U=function(){if(u.t4){var P=m.channelId;if(E||X){var I={c:P};var d;g.dM.isInitialized()&&(d=sGn(I));I=d||"";if(d=q.getVideoData())if(d=d.subscribeCommand){var W=q.Bl();W?(k_(W,d,{botguardResponse:I,feature:E}),q.ZQ("SUBSCRIBE",P)):g.JV(Error("No innertube service available when updating subscriptions."))}else g.JV(Error("No subscribe command in videoData."));
else g.JV(Error("No video data available when updating subscription."))}B.focus();B.removeAttribute("aria-hidden");h.setAttribute("aria-hidden","true")}else z3k(g.gw(m.T.C()),"sb_button",m.j)},v=function(){var P=m.channelId;
if(E||X){var I=q.getVideoData();k_(q.Bl(),I.unsubscribeCommand,{feature:E});q.ZQ("UNSUBSCRIBE",P)}h.focus();h.removeAttribute("aria-hidden");B.setAttribute("aria-hidden","true")};
this.N(h,"click",U);this.N(B,"click",v);this.N(h,"keypress",function(P){P.keyCode===13&&U(P)});
this.N(B,"keypress",function(P){P.keyCode===13&&v(P)});
this.N(q,"SUBSCRIBE",this.Y);this.N(q,"UNSUBSCRIBE",this.L);this.U&&w&&(In5(q),GL(q,h,this),GL(q,B,this))}else g.C6(h,"ytp-sb-disabled"),g.C6(B,"ytp-sb-disabled")};
DbR=function(F){g.Y.call(this,{X:"div",J:"ytp-title-channel",Z:[{X:"div",J:"ytp-title-beacon"},{X:"a",J:"ytp-title-channel-logo",D:{href:"{{channelLink}}",target:F.C().K,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{X:"div",J:"ytp-title-expanded-overlay",D:{"aria-hidden":"{{flyoutUnfocusable}}"},Z:[{X:"div",J:"ytp-title-expanded-heading",Z:[{X:"div",J:"ytp-title-expanded-title",Z:[{X:"a",jk:"{{expandedTitle}}",D:{href:"{{channelTitleLink}}",target:F.C().K,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{X:"div",J:"ytp-title-expanded-subtitle",jk:"{{expandedSubtitle}}",D:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var k=this;this.api=F;this.channel=this.EK("ytp-title-channel");this.L=this.EK("ytp-title-channel-logo");this.channelName=this.EK("ytp-title-expanded-title");this.S=this.EK("ytp-title-expanded-overlay");this.U=this.Y=this.subscribeButton=null;this.j=!1;F.createClientVe(this.L,this,36925);F.createClientVe(this.channelName,this,
37220);g.tJ(this.api.C())&&xbR(this);this.N(F,"videodatachange",this.G4);this.N(F,"videoplayerreset",this.G4);this.N(this.channelName,"click",function(z){k.api.logClick(k.channelName);g.MX(window,iQY(k));z.preventDefault()});
this.N(this.L,"click",this.T3f);this.G4()};
$b6=function(F){if(!F.api.C().vj){var k=F.api.getVideoData(),z=new g.Me("Subscribe",null,"Subscribed",null,!0,!1,k.Wz,k.subscribed,"channel_avatar",null,F.api,!0);F.api.createServerVe(z.element,F);var x;F.api.setTrackingParams(z.element,((x=k.subscribeButtonRenderer)==null?void 0:x.trackingParams)||null);F.N(z.element,"click",function(){F.api.logClick(z.element)});
F.subscribeButton=z;g.b(F,F.subscribeButton);F.subscribeButton.T4(F.S);F.subscribeButton.hide();var D=new F1C(F.api);F.Y=D;g.b(F,D);D.T4(F.S);D.hide();F.N(F.api,"SUBSCRIBE",function(){k.nF&&(D.show(),F.api.logVisibility(D.element,!0))});
F.N(F.api,"UNSUBSCRIBE",function(){k.nF&&(D.hide(),F.api.logVisibility(D.element,!1),kYR(D,!1))})}};
xbR=function(F){var k=F.api.C();$b6(F);F.updateValue("flyoutUnfocusable","true");F.updateValue("channelTitleFocusable","-1");F.updateValue("shouldHideExpandedTitleForA11y","true");F.updateValue("shouldHideExpandedSubtitleForA11y","true");k.L||k.J4||(F.N(F.channel,"mouseenter",F.iS),F.N(F.channel,"mouseleave",F.le),F.N(F.channel,"focusin",F.iS),F.N(F.channel,"focusout",function(z){F.channel.contains(z.relatedTarget)||F.le()}));
F.U=new g.KS(function(){F.isExpanded()&&(F.api.logVisibility(F.channelName,!1),F.subscribeButton&&(F.subscribeButton.hide(),F.api.logVisibility(F.subscribeButton.element,!1)),F.Y&&(F.Y.hide(),F.api.logVisibility(F.Y.element,!1)),F.channel.classList.remove("ytp-title-expanded"),F.channel.classList.add("ytp-title-show-collapsed"))},500);
g.b(F,F.U);F.N(F.channel,jX5,function(){e3I(F)});
F.N(F.api,"onHideControls",F.j$);F.N(F.api,"appresize",F.j$);F.N(F.api,"fullscreentoggled",F.j$)};
e3I=function(F){F.channel.classList.remove("ytp-title-show-collapsed");F.channel.classList.remove("ytp-title-show-expanded")};
Cz6=function(F){var k=F.api.getPlayerSize();return g.tJ(F.api.C())&&k.width>=524};
iQY=function(F){var k=F.api.C(),z=F.api.getVideoData(),x=g.xE(k)+z.Xm;g.D9(z)&&(x="https://web.archive.org/web/20250411103644/https://music.youtube.com"+z.Xm);if(!g.tJ(k))return x;k={};g.Xh(F.api,"addEmbedsConversionTrackingParams",[k]);return g.oW(x,k)};
L0=function(F){var k=g.fY({"aria-haspopup":"true"});g.LY.call(this,k,F);this.listen("keydown",this.Y)};
f0=function(F,k){F.element.setAttribute("aria-haspopup",String(k))};
AYD=function(F,k){g.Y.call(this,{X:"div",J:"ytp-user-info-panel",D:{"aria-label":"User info"},Z:F.C().t4&&!F.V("embeds_web_always_enable_signed_out_state")?[{X:"div",J:"ytp-user-info-panel-icon",jk:"{{icon}}"},{X:"div",J:"ytp-user-info-panel-content",Z:[{X:"div",J:"ytp-user-info-panel-info",D:{tabIndex:"{{userInfoFocusable}}",role:"text"},jk:"{{watchingAsUsername}}"},{X:"div",J:"ytp-user-info-panel-info",D:{tabIndex:"{{userInfoFocusable2}}",role:"text"},jk:"{{watchingAsEmail}}"}]}]:[{X:"div",J:"ytp-user-info-panel-icon",
jk:"{{icon}}"},{X:"div",J:"ytp-user-info-panel-content",Z:[{X:"div",Z:[{X:"text",D:{tabIndex:"{{userInfoFocusable}}"},jk:"Signed out"}]},{X:"div",J:"ytp-user-info-panel-login",Z:[{X:"a",D:{tabIndex:"{{userInfoFocusable2}}",role:"button"},jk:F.C().vj?"":"Sign in on YouTube"}]}]}]});this.Vh=F;this.Y=k;F.C().t4||F.C().vj||this.N(this.EK("ytp-user-info-panel-login"),"click",this.Wm);this.closeButton=new g.Y({X:"button",WR:["ytp-collapse","ytp-button"],D:{title:"Close"},Z:[g.aa()]});this.closeButton.T4(this.element);
g.b(this,this.closeButton);this.N(window,"blur",this.hide);this.N(document,"click",this.eD);this.G4()};
EA5=function(F,k,z){g.Gd.call(this,F);this.Sz=k;this.N5=z;this.getVideoUrl=new L0(6);this.WF=new L0(5);this.tI=new L0(4);this.rH=new L0(3);this.b2=new g.LY(g.fY({href:"{{href}}",target:this.T.C().K},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.LY(g.fY(),1,"Stats for nerds");this.nE=new g.Q7({X:"div",WR:["ytp-copytext","ytp-no-contextmenu"],D:{draggable:"false",tabindex:"1"},jk:"{{text}}"});this.fZ=new Bq(this.T,this.nE);this.n8=this.nw=null;g.tJ(this.T.C())&&(this.closeButton=
new g.Y({X:"button",WR:["ytp-collapse","ytp-button"],D:{title:"Close"},Z:[g.aa()]}),g.b(this,this.closeButton),this.closeButton.T4(this.element),this.closeButton.listen("click",this.hM,this));g.tJ(this.T.C())&&(this.ES=new g.LY(g.fY(),8,"Account"),g.b(this,this.ES),this.Iy(this.ES,!0),this.ES.listen("click",this.oPh,this),F.createClientVe(this.ES.element,this.ES,137682));this.T.C().Bx&&(this.dn=new $0("Loop",7),g.b(this,this.dn),this.Iy(this.dn,!0),this.dn.listen("click",this.CuK,this),F.createClientVe(this.dn.element,
this.dn,28661));g.b(this,this.getVideoUrl);this.Iy(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.N3U,this);F.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.b(this,this.WF);this.Iy(this.WF,!0);this.WF.listen("click",this.wek,this);F.createClientVe(this.WF.element,this.WF,28660);g.b(this,this.tI);this.Iy(this.tI,!0);this.tI.listen("click",this.HJR,this);F.createClientVe(this.tI.element,this.tI,28658);g.b(this,this.rH);this.Iy(this.rH,!0);this.rH.listen("click",this.fRG,
this);g.b(this,this.b2);this.Iy(this.b2,!0);this.b2.listen("click",this.Ukt,this);g.b(this,this.showVideoInfo);this.Iy(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.lFh,this);g.b(this,this.nE);this.nE.listen("click",this.gjQ,this);g.b(this,this.fZ);k=document.queryCommandSupported&&document.queryCommandSupported("copy");YCC("Chromium")>=43&&(k=!0);YCC("Firefox")<=40&&(k=!1);k&&(this.nw=new g.Y({X:"textarea",J:"ytp-html5-clipboard",D:{readonly:"",tabindex:"-1"}}),g.b(this,this.nw),
this.nw.T4(this.element));var x;(x=this.ES)==null||x.setIcon(sw9());var D;(D=this.dn)==null||D.setIcon({X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{X:"path",D:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.rH.setIcon({X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{X:"path",D:{"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.b2.setIcon(wA9());this.showVideoInfo.setIcon(mAn());this.N(F,"onLoopChange",this.onLoopChange);this.N(F,"videodatachange",this.onVideoDataChange);p5C(this);this.sM(this.T.getVideoData())};
K0=function(F,k){var z=!1;if(F.nw){var x=F.nw.element;x.value=k;x.select();try{z=document.execCommand("copy")}catch(D){}}z?F.Sz.bL():(F.nE.r3(k,"text"),g.Z2(F.Sz,F.fZ),ph(F.nE.element),F.nw&&(F.nw=null,p5C(F)));return z};
p5C=function(F){var k=!!F.nw;g.Ma(F.rH,k?"Copy debug info":"Get debug info");f0(F.rH,!k);g.Ma(F.tI,k?"Copy embed code":"Get embed code");f0(F.tI,!k);g.Ma(F.getVideoUrl,k?"Copy video URL":"Get video URL");f0(F.getVideoUrl,!k);g.Ma(F.WF,k?"Copy video URL at current time":"Get video URL at current time");f0(F.WF,!k);F.tI.setIcon(k?qtp():null);F.getVideoUrl.setIcon(k?vx():null);F.WF.setIcon(k?vx():null)};
X5x=function(F){return g.tJ(F.T.C())?F.ES:F.dn};
NZn=function(F,k){g.tr.call(this,F);this.N5=k;this.j=new g.yQ(this);this.Qh=new g.KS(this.w8U,1E3,this);this.PR=this.U=null;g.b(this,this.j);g.b(this,this.Qh);k=this.T.C();F.createClientVe(this.element,this,28656);g.C6(this.element,"ytp-contextmenu");this.T.C().experiments.Ca("delhi_modern_web_player")&&g.f_(k)&&g.C6(this.element,"ytp-delhi-modern-contextmenu");qTn(this);this.hide()};
qTn=function(F){g.VB(F.j);var k=F.T.C();k.playerStyle==="gvn"||k.L||k.J4||(k=F.T.Ka(),F.j.N(k,"contextmenu",F.WuR),F.j.N(k,"touchstart",F.onTouchStart,null,!0),F.j.N(k,"touchmove",F.dk,null,!0),F.j.N(k,"touchend",F.dk,null,!0))};
unH=function(F){F.T.isFullscreen()?g.Hv(F.T,F.element,10):F.T4(g5(F).body)};
Wm=function(F,k,z){z=z===void 0?240:z;g.Y.call(this,{X:"button",WR:["ytp-button","ytp-copylink-button"],D:{title:"{{title-attr}}","data-tooltip-opaque":String(g.tJ(F.C()))},Z:[{X:"div",J:"ytp-copylink-icon",jk:"{{icon}}"},{X:"div",J:"ytp-copylink-title",jk:"Copy link",D:{"aria-hidden":"true"}}]});this.api=F;this.Y=k;this.L=z;this.visible=!1;this.tooltip=this.Y.aI();k=F.C();this.tooltip.element.setAttribute("aria-live","polite");g.XF(this.element,"ytp-show-copylink-title",g.tJ(k));F.createClientVe(this.element,
this,86570);this.listen("click",this.onClick);this.N(F,"videodatachange",this.G4);this.N(F,"videoplayerreset",this.G4);this.N(F,"appresize",this.G4);this.G4();this.addOnDisposeCallback(g.Bv(this.tooltip,this.element))};
w5n=function(F){var k=F.api.C(),z=F.api.getVideoData(),x=F.api.Ka().getPlayerSize().width;k=k.U;return!!z.videoId&&x>=F.L&&z.BC&&!g.xp(z)&&!F.api.isEmbedsShortsMode()&&!k};
mba=function(F){F.updateValue("icon",Gm());if(F.api.C().L)F.tooltip.Kl(F.element,"Link copied to clipboard");else{F.updateValue("title-attr","Link copied to clipboard");F.tooltip.Ei();F.tooltip.Kl(F.element);var k=F.listen("mouseleave",function(){F.er(k);F.G4();F.tooltip.fd()})}};
TZR=function(F,k){return g.O(function(z){if(z.Y==1)return g.lD(z,2),g.c(z,navigator.clipboard.writeText(k),4);if(z.Y!=2)return z.return(!0);g.rI(z);var x=z.return,D=!1,e=g.Ci("TEXTAREA");e.value=k;e.setAttribute("readonly","");var C=F.api.getRootNode();C.appendChild(e);if(k4){var p=window.getSelection();p.removeAllRanges();var E=document.createRange();E.selectNodeContents(e);p.addRange(E);e.setSelectionRange(0,k.length)}else e.select();try{D=document.execCommand("copy")}catch(X){}C.removeChild(e);
return x.call(z,D)})};
Fi=function(F){g.Y.call(this,{X:"div",J:"ytp-doubletap-ui-legacy",Z:[{X:"div",J:"ytp-doubletap-fast-forward-ve"},{X:"div",J:"ytp-doubletap-rewind-ve"},{X:"div",J:"ytp-doubletap-static-circle",Z:[{X:"div",J:"ytp-doubletap-ripple"}]},{X:"div",J:"ytp-doubletap-overlay-a11y"},{X:"div",J:"ytp-doubletap-seek-info-container",Z:[{X:"div",J:"ytp-doubletap-arrows-container",Z:[{X:"span",J:"ytp-doubletap-base-arrow"},{X:"span",J:"ytp-doubletap-base-arrow"},{X:"span",J:"ytp-doubletap-base-arrow"}]},{X:"div",
J:"ytp-doubletap-tooltip",Z:[{X:"div",J:"ytp-seek-icon-text-container",Z:[{X:"div",J:"ytp-seek-icon",jk:"{{seekIcon}}"},{X:"div",J:"ytp-chapter-seek-text-legacy",jk:"{{seekText}}"}]},{X:"div",J:"ytp-doubletap-tooltip-label",jk:"{{seekTime}}"}]}]}]});this.T=F;this.j=new g.KS(this.show,10,this);this.L=new g.KS(this.hide,700,this);this.G=this.U=0;this.Qh=this.S=!1;this.Y=this.EK("ytp-doubletap-static-circle");g.b(this,this.j);g.b(this,this.L);this.hide();this.B=this.EK("ytp-doubletap-fast-forward-ve");
this.K=this.EK("ytp-doubletap-rewind-ve");this.T.createClientVe(this.B,this,28240);this.T.createClientVe(this.K,this,28239);this.T.logVisibility(this.B,!0);this.T.logVisibility(this.K,!0);this.S=F.V("web_show_cumulative_seek_time");this.Qh=F.V("web_center_static_circles")};
k9=function(F,k,z,x){if(x=x===void 0?null:x){var D=k===-1?F.K.visualElement:F.B.visualElement;x={seekData:x};var e=g.OK();e&&g.oS($B)(void 0,e,D,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",x,void 0)}F.U=k===F.G?F.U+z:z;F.G=k;D=F.T.Ka().getPlayerSize();F.S?F.L.stop():g.ke(F.L);F.j.start();F.element.setAttribute("data-side",k===-1?"back":"forward");g.C6(F.element,"ytp-time-seeking");F.Y.style.width="110px";F.Y.style.height="110px";x=D.width*.1-15;k===1?F.Qh?(F.Y.style.right=x+"px",F.Y.style.left=""):
(F.Y.style.right="",F.Y.style.left=D.width*.8-30+"px"):k===-1&&(F.Qh?(F.Y.style.right="",F.Y.style.left=x+"px"):(F.Y.style.right="",F.Y.style.left=D.width*.1-15+"px"));F.Y.style.top=D.height*.5+15+"px";ljx(F,F.S?F.U:z)};
oF=function(F,k,z,x){x=x===void 0?null:x;g.ke(F.L);F.j.start();switch(k){case -1:k="back";break;case 1:k="forward";break;default:k=""}F.element.setAttribute("data-side",k);F.Y.style.width="0";F.Y.style.height="0";g.C6(F.element,"ytp-chapter-seek");F.updateValue("seekText",z);F.updateValue("seekTime","");z=F.EK("ytp-seek-icon");if(x){a:if(x){switch(x){case "PREMIUM_STANDALONE":x={X:"svg",D:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},Z:[{X:"path",D:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ",
fill:"#c00"}},{X:"path",D:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]};
break a;case "PREMIUM_STANDALONE_CAIRO":x={X:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{X:"rect",D:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{X:"rect",D:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{X:"path",D:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z",
fill:"white"}},{X:"defs",Z:[{X:"linearGradient",D:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},Z:[{X:"stop",D:{offset:"0.3","stop-color":"#E1002D"}},{X:"stop",D:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}x=void 0}else x=null;F.updateValue("seekIcon",x);z.style.display="inline-block"}else z.style.display="none"};
ljx=function(F,k){k=g.rG("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:k.toString()});F.updateValue("seekTime",k)};
QXn=function(F){r1.call(this,F,!1,!0);this.mp=[];this.RS=[];this.B=!0;this.badge.element.classList.add("ytp-featured-product");this.Xf=new g.Y({X:"div",J:"ytp-featured-product-open-in-new"});g.b(this,this.Xf);this.countdownTimer=new g.Y({X:"text",J:"ytp-featured-product-countdown",jk:"{{content}}"});this.countdownTimer.hide();g.b(this,this.countdownTimer);this.L=new g.Y({X:"div",J:"ytp-featured-product-trending",Z:[{X:"div",J:"ytp-featured-product-trending-icon"},{X:"text",J:"ytp-featured-product-trending-text",
jk:"{{trendingOffer}}"}]});this.L.hide();g.b(this,this.L);this.overflowButton=new g.Y({X:"button",WR:["ytp-featured-product-overflow-icon","ytp-button"],D:{"aria-haspopup":"true"}});this.overflowButton.hide();g.b(this,this.overflowButton);this.G=new g.Y({X:"text",J:"ytp-featured-product-exclusive-countdown",jk:"{{content}}",D:{id:"exclusiveCountdown","aria-hidden":"true"}});this.G.hide();g.b(this,this.G);this.S=new g.Y({X:"div",J:"ytp-featured-product-exclusive-container",D:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},
Z:[{X:"div",J:"ytp-featured-product-exclusive-badge-container",Z:[{X:"div",J:"ytp-featured-product-exclusive-badge",Z:[{X:"text",J:"ytp-featured-product-exclusive-badge-text",jk:"{{exclusive}}",D:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.G]});this.S.hide();g.b(this,this.S);this.banner=new g.Y({X:"a",J:"ytp-featured-product-container",Z:[{X:"div",J:"ytp-featured-product-thumbnail",Z:[{X:"img",D:{src:"{{thumbnail}}"}},this.Xf]},{X:"div",J:"ytp-featured-product-details",Z:[{X:"text",J:"ytp-featured-product-title",
jk:"{{title}}"},this.T.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{X:"div",J:"ytp-featured-product-price-container",D:{"aria-label":"{{priceA11yText}}"},Z:[{X:"text",J:"ytp-featured-product-price-when-promotion-text-enabled",jk:"{{price}}",D:{"aria-hidden":"true"}},{X:"text",J:"ytp-featured-product-promotion-text",jk:"{{promotionText}}",D:{"aria-hidden":"true"}}]}:{X:"div",D:{"aria-label":"{{priceA11yText}}"},Z:[{X:"text",J:"ytp-featured-product-price",jk:"{{price}}",
D:{"aria-hidden":"true"}},{X:"text",J:"ytp-featured-product-sales-original-price",jk:"{{salesOriginalPrice}}",D:{"aria-hidden":"true"}},{X:"text",J:"ytp-featured-product-price-drop-reference-price",jk:"{{priceDropReferencePrice}}",D:{"aria-hidden":"true"}}]},this.T.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{X:"div",J:"ytp-featured-product-when-promotion-text-enabled",Z:[{X:"text",J:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",jk:"{{affiliateDisclaimer}}"},
this.L,{X:"text",J:"ytp-featured-product-vendor-when-promotion-text-enabled",jk:"{{vendor}}"}]}:{X:"div",Z:[{X:"text",J:"ytp-featured-product-affiliate-disclaimer",jk:"{{affiliateDisclaimer}}"},this.T.V("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.S:null,this.L,{X:"text",J:"ytp-featured-product-vendor",jk:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.b(this,this.banner);this.banner.T4(this.U.element);this.N(this.T,g.X$("featured_product"),this.m$p);this.N(this.T,
g.qQ("featured_product"),this.z8);this.N(this.T,"videodatachange",this.onVideoDataChange);this.N(this.overflowButton.element,"click",this.yc);this.N(F,"featuredproductdismissed",this.rJ)};
h3R=function(F){var k,z;F=(k=F.Y)==null?void 0:(z=k.bannerData)==null?void 0:z.itemData;var x,D,e;return(F==null||!F.affiliateDisclaimer)&&(F==null?0:(x=F.exclusivesData)==null?0:x.exclusiveOfferLabelText)&&(F==null?0:(D=F.exclusivesData)==null?0:D.expirationTimestampMs)&&(F==null?0:(e=F.exclusivesData)==null?0:e.exclusiveOfferCountdownText)?!0:!1};
rYI=function(F){var k,z,x,D,e=(k=F.Y)==null?void 0:(z=k.bannerData)==null?void 0:(x=z.itemData)==null?void 0:(D=x.exclusivesData)==null?void 0:D.expirationTimestampMs;k=(Number(e)-Date.now())/1E3;if(k>0){if(k<604800){var C,p,E,X;z=(C=F.Y)==null?void 0:(p=C.bannerData)==null?void 0:(E=p.itemData)==null?void 0:(X=E.exclusivesData)==null?void 0:X.exclusiveOfferCountdownText;if(z!==void 0)for(C=Date.now(),p=g.l(z),E=p.next();!E.done;E=p.next())if(E=E.value,E!==void 0&&E.text!==void 0&&(X=Number(E.textDisplayStartTimestampMs),
!isNaN(X)&&C>=X)){E.insertCountdown?(k=E.text.replace(/\$0/,String(GZ({seconds:k}))),F.G.r3(k)):F.G.r3(E.text);F.G.show();break}}var q,N,u,w;F.S.update({exclusive:(q=F.Y)==null?void 0:(N=q.bannerData)==null?void 0:(u=N.itemData)==null?void 0:(w=u.exclusivesData)==null?void 0:w.exclusiveOfferLabelText});F.S.show();z1(F);var m;(m=F.uL)==null||m.start()}else sXC(F)};
sXC=function(F){var k;(k=F.uL)==null||k.stop();F.G.hide();F.S.hide();x9(F)};
BZx=function(F){var k,z,x=(k=F.Y)==null?void 0:(z=k.bannerData)==null?void 0:z.itemData;return F.T.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(x==null||!x.priceReplacementText)&&(x==null?0:x.promotionText)?x==null?void 0:x.promotionText.content:null};
GYM=function(F){var k,z,x=(k=F.Y)==null?void 0:(z=k.bannerData)==null?void 0:z.itemData,D,e;if(!(x!=null&&x.priceReplacementText||F.T.V("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(x==null?0:(D=x.dealsData)==null?0:(e=D.sales)==null?0:e.originalPrice)){var C,p;return x==null?void 0:(C=x.dealsData)==null?void 0:(p=C.sales)==null?void 0:p.originalPrice}return null};
Ubn=function(F){var k,z,x=(k=F.Y)==null?void 0:(z=k.bannerData)==null?void 0:z.itemData,D,e,C,p;if(!((x==null?0:x.priceReplacementText)||F.T.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(x==null?0:(D=x.dealsData)==null?0:(e=D.sales)==null?0:e.originalPrice))&&(x==null?0:(C=x.dealsData)==null?0:(p=C.priceDrop)==null?0:p.referencePrice)){var E,X;return x==null?void 0:(E=x.dealsData)==null?void 0:(X=E.priceDrop)==null?void 0:X.referencePrice}return null};
to6=function(F){var k,z,x=(k=F.Y)==null?void 0:(z=k.bannerData)==null?void 0:z.itemData;if(x==null?0:x.priceReplacementText)return x==null?void 0:x.priceReplacementText;if((x==null?0:x.promotionText)&&F.T.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var D;return(x==null?void 0:x.price)+" "+(x==null?void 0:(D=x.promotionText)==null?void 0:D.content)}var e,C;if(x==null?0:(e=x.dealsData)==null?0:(C=e.sales)==null?0:C.originalPrice){var p,E;return x==null?void 0:(p=x.dealsData)==
null?void 0:(E=p.sales)==null?void 0:E.salesPriceAccessibilityLabel}var X,q;if(x==null?0:(X=x.dealsData)==null?0:(q=X.priceDrop)==null?0:q.referencePrice){var N,u;return(x==null?void 0:x.price)+" "+(x==null?void 0:(N=x.dealsData)==null?void 0:(u=N.priceDrop)==null?void 0:u.referencePrice)}return x==null?void 0:x.price};
ZQk=function(F){if(F.T.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var k,z,x;return F.L.Q2?null:(k=F.Y)==null?void 0:(z=k.bannerData)==null?void 0:(x=z.itemData)==null?void 0:x.vendorName}var D,e,C,p,E,X;return F.L.Q2||F.S.Q2||((D=F.Y)==null?0:(e=D.bannerData)==null?0:(C=e.itemData)==null?0:C.affiliateDisclaimer)?null:(p=F.Y)==null?void 0:(E=p.bannerData)==null?void 0:(X=E.itemData)==null?void 0:X.vendorName};
cY9=function(F,k){i2(F);if(k){var z=g.ok.getState().entities;z=us(z,"featuredProductsEntity",k);if(z!=null&&z.productsData){k=[];z=g.l(z.productsData);for(var x=z.next();!x.done;x=z.next()){x=x.value;var D=void 0;if((D=x)!=null&&D.identifier&&x.featuredSegments){F.mp.push(x);var e=void 0;D=g.l((e=x)==null?void 0:e.featuredSegments);for(e=D.next();!e.done;e=D.next()){var C=e.value;e=vAR(C.startTimeSec);e!==void 0&&(C=vAR(C.endTimeSec),k.push(new g.ps(e*1E3,C===void 0?0x7ffffffffffff:C*1E3,{id:x.identifier,
namespace:"featured_product"})))}}}F.T.Li(k)}}};
x9=function(F){if(F.trendingOfferEntityKey){var k=g.ok.getState().entities;if(k=us(k,"trendingOfferEntity",F.trendingOfferEntityKey)){var z,x,D;k.encodedSkuId!==((z=F.Y)==null?void 0:(x=z.bannerData)==null?void 0:(D=x.itemData)==null?void 0:D.encodedOfferSkuId)?z1(F):(F.L.update({trendingOffer:k.shortLabel+" \u2022 "+k.countLabel}),F.L.show(),F.banner.update({vendor:ZQk(F)}))}else z1(F)}else z1(F)};
z1=function(F){F.L.hide();F.banner.update({vendor:ZQk(F)})};
i2=function(F){F.mp=[];F.z8();F.T.H7("featured_product")};
Pzn=function(F){var k,z,x,D,e=(k=F.Y)==null?void 0:(z=k.bannerData)==null?void 0:(x=z.itemData)==null?void 0:(D=x.hiddenProductOptions)==null?void 0:D.dropTimestampMs;k=(Number(e)-Date.now())/1E3;F.countdownTimer.r3(GZ({seconds:k}));if(k>0){var C;(C=F.qD)==null||C.start()}};
OQ5=function(F){var k;(k=F.qD)==null||k.stop();F.countdownTimer.hide()};
vAR=function(F){if(F!==void 0&&F.trim()!==""&&(F=Math.trunc(Number(F.trim())),!(isNaN(F)||F<0)))return F};
STI=function(F,k,z){g.Y.call(this,{X:"div",WR:["ytp-info-panel-action-item"],Z:[{X:"div",J:"ytp-info-panel-action-item-disclaimer",jk:"{{disclaimer}}"},{X:"a",WR:["ytp-info-panel-action-item-button","ytp-button"],D:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},Z:[{X:"div",J:"ytp-info-panel-action-item-icon",jk:"{{icon}}"},{X:"div",J:"ytp-info-panel-action-item-label",jk:"{{label}}"}]}]});this.T=F;this.Y=z;this.disclaimer=this.EK("ytp-info-panel-action-item-disclaimer");this.button=
this.EK("ytp-info-panel-action-item-button");this.ut=!1;this.T.createServerVe(this.element,this,!0);this.listen("click",this.onClick);F="";z=g.J(k==null?void 0:k.onTap,gF);var x=g.J(z,g.gt);this.ut=!1;x?(F=x.url||"",F.startsWith("//")&&(F="https:"+F),this.ut=!0,g.Ru(this.button,g.JE(F))):(x=g.J(z,Von))&&!this.Y?((F=x.phoneNumbers)&&F.length>0?(F="sms:"+F[0],x.messageText&&(F+="?&body="+encodeURI(x.messageText))):F="",this.ut=!0,g.Ru(this.button,g.JE(F,[Ijn]))):(z=g.J(z,HQC))&&!this.Y&&(F=z.phoneNumber?
"tel:"+z.phoneNumber:"",this.ut=!0,g.Ru(this.button,g.JE(F,[aja])));var D;if(z=(D=k.disclaimerText)==null?void 0:D.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var e;this.update({label:(e=k.bodyText)==null?void 0:e.content,icon:Oe(),disclaimer:z})}else{this.disclaimer.style.display="none";var C;this.update({label:(C=k.bodyText)==null?void 0:C.content,icon:Oe()})}this.T.setTrackingParams(this.element,k.trackingParams||null);this.ut&&(this.L={externalLinkData:{url:F}})};
bQ9=function(F,k){var z=wt();g.RL.call(this,F,{X:"div",J:"ytp-info-panel-detail-skrim",Z:[{X:"div",J:"ytp-info-panel-detail",D:{role:"dialog",id:z},Z:[{X:"div",J:"ytp-info-panel-detail-header",Z:[{X:"div",J:"ytp-info-panel-detail-title",jk:"{{title}}"},{X:"button",WR:["ytp-info-panel-detail-close","ytp-button"],D:{"aria-label":"Close"},Z:[g.Z4()]}]},{X:"div",J:"ytp-info-panel-detail-body",jk:"{{body}}"},{X:"div",J:"ytp-info-panel-detail-items"}]}]},250);this.Y=k;this.items=this.EK("ytp-info-panel-detail-items");
this.U=new g.yQ(this);this.itemData=[];this.j=z;this.N(this.EK("ytp-info-panel-detail-close"),"click",this.bL);this.N(this.EK("ytp-info-panel-detail-skrim"),"click",this.bL);this.N(this.EK("ytp-info-panel-detail"),"click",function(x){x.stopPropagation()});
g.b(this,this.U);this.T.createServerVe(this.element,this,!0);this.N(F,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",F.getVideoData());this.hide()};
dbn=function(F,k){F=g.l(F.itemData);for(var z=F.next();!z.done;z=F.next())z=z.value,z.T.logVisibility(z.element,k)};
R3p=function(F,k){g.Y.call(this,{X:"div",J:"ytp-info-panel-preview",D:{"aria-live":"assertive","aria-atomic":"true","aria-owns":k.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.tJ(F.C()))},Z:[{X:"div",J:"ytp-info-panel-preview-text",jk:"{{text}}"},{X:"div",J:"ytp-info-panel-preview-chevron",jk:"{{chevron}}"}]});var z=this;this.T=F;this.fv=this.Y=this.videoId=null;this.U=this.showControls=this.L=!1;this.N(this.element,"click",function(){F.logClick(z.element);F.Ec();Yp(k)});
this.fade=new g.Cv(this,250,!1,100);g.b(this,this.fade);this.T.createServerVe(this.element,this,!0);this.N(F,"videodatachange",this.onVideoDataChange);this.N(F,"presentingplayerstatechange",this.lU);this.N(this.T,"paidcontentoverlayvisibilitychange",this.ey);this.N(this.T,"infopaneldetailvisibilitychange",this.ey);var x=F.getVideoData()||{};JYp(x)&&yYM(this,x);this.N(F,"onShowControls",this.oY);this.N(F,"onHideControls",this.zX)};
yYM=function(F,k){if(!k.Tr||!F.T.wO()){var z=k.Xo||1E4,x=JYp(k);F.Y?k.videoId&&k.videoId!==F.videoId&&(g.ke(F.Y),F.videoId=k.videoId,x?(gA9(F,z,k),F.NR()):(F.bL(),F.Y.dispose(),F.Y=null)):x&&(k.videoId&&(F.videoId=k.videoId),gA9(F,z,k),F.NR())}};
JYp=function(F){var k,z,x,D;return!!((k=F.Om)==null?0:(z=k.title)==null?0:z.content)||!!((x=F.Om)==null?0:(D=x.bodyText)==null?0:D.content)};
gA9=function(F,k,z){F.Y&&F.Y.dispose();F.Y=new g.KS(F.cHh,k,F);g.b(F,F.Y);var x;k=((x=z.Om)==null?void 0:x.trackingParams)||null;F.T.setTrackingParams(F.element,k);var D;var e,C;if(z==null?0:(e=z.Om)==null?0:(C=e.title)==null?0:C.content){var p;x=(D=z.Om)==null?void 0:(p=D.title)==null?void 0:p.content;var E,X;if((E=z.Om)==null?0:(X=E.bodyText)==null?0:X.content)x+=" \u2022 ";D=x}else D="";var q,N;z=((q=z.Om)==null?void 0:(N=q.bodyText)==null?void 0:N.content)||"";F.update({text:D+z,chevron:g.tL()})};
YTH=function(F,k){F.Y&&(g.n(k,8)?(F.L=!0,F.NR(),F.Y.start()):(g.n(k,2)||g.n(k,64))&&F.videoId&&(F.videoId=null))};
Dp=function(F){var k=null;try{k=F.toLocaleString("en",{style:"percent"})}catch(z){k=F.toLocaleString(void 0,{style:"percent"})}return k};
$9=function(F,k){var z=0;F=g.l(F);for(var x=F.next();!(x.done||x.value.startTime>k);x=F.next())z++;return z===0?z:z-1};
nAD=function(F,k){for(var z=0,x=g.l(F),D=x.next();!D.done;D=x.next()){D=D.value;if(k<D.timeRangeStartMillis)return null;if(k>=D.timeRangeStartMillis&&k<D.timeRangeStartMillis+D.Y)break;z++}z+1<F.length&&F[z+1].timeRangeStartMillis<=k&&z++;return z<F.length?z:null};
Moa=function(F,k){k=$9(F,k)+1;return k<F.length?k:-1};
L1p=function(F,k){return $9(F,k)-1};
fjx=function(F,k){return new g.ps(F,k,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+F})};
W1n=function(F,k,z,x,D,e,C,p){g.yQ.call(this);var E=this;this.api=F;this.contextMenu=z;this.Oh=x;this.N5=D;this.Y=e;this.W=C;this.progressBar=p;this.j=new g.KS(function(){K1H(E,!1)},1E3);
this.U="";this.L={f5:!1,Wk:!1};g.b(this,this.j);this.N(k,"mousedown",function(){jf(E,!1)});
this.N(z.element,"mousedown",function(){jf(E,!1)});
this.N(k,"keydown",this.jH);this.N(z.element,"keydown",this.jH);this.N(k,"keyup",this.hQ);this.N(z.element,"keyup",this.hQ)};
Fd6=function(F,k){return k<0?0:Math.floor(Math.min(k,F.api.getDuration())*1E3)};
ef=function(F,k,z){var x=F.api.getCurrentTime(),D=Fd6(F,x);F=Fd6(F,x+k);return{startMediaTimeMs:D,endMediaTimeMs:F,seekSource:z}};
k4Y=function(F){var k,z=(k=F.api.getVideoData())==null?void 0:k.w3();return F.api.getPresentingPlayerType(z)!==2};
jf=function(F,k){F.L.Wk=k;g.XF(F.api.getRootNode(),"ytp-probably-keyboard-focus",k);g.XF(F.contextMenu.element,"ytp-probably-keyboard-focus",k)};
AR=function(F,k,z,x){var D=g.Qt(F.api.iL());if(D&&D.loaded){var e=F.api.getSubtitlesUserSettings();D=void 0;for(var C=0;C<g.Ca.length;C++){var p=g.Ca[C];if(p.option===k){D=p.options;break}}C=void 0;for(p=0;p<D.length;p++)D[p].option===e[k]&&(C=p);if(x)if(z){if(C===0)return}else if(C===D.length-1)return;x={};x[k]=D[(C+(z?D.length-1:1))%D.length].option;F.api.updateSubtitlesUserSettings(x);K1H(F,!0);F.j.start()}};
K1H=function(F,k){g.Qt(F.api.iL())&&F.api.setOption("captions","sampleSubtitles",k)};
g.pa=function(F,k){g.Y.call(this,{X:"button",WR:["ytp-button","ytp-overflow-button"],D:{title:"More","aria-haspopup":"true","aria-owns":k.element.id},Z:[{X:"div",J:"ytp-overflow-icon",Z:[{X:"svg",D:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},Z:[{X:"path",D:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var z=this;this.T=F;this.n$=k;this.Y=this.visible=!1;F.createClientVe(this.element,
this,16499);this.N(F,"videoplayerreset",this.G4);this.N(F,"appresize",this.G4);this.N(F,"fullscreentoggled",this.G4);this.N(F,"presentingplayerstatechange",this.G4);this.G4();GL(F,this.element,this);this.listen("click",function(){F.logClick(z.element);Yp(k,z.element,!1)});
this.N(k.closeButton,"click",function(){z.focus()})};
oL5=function(F){g.RL.call(this,F,{X:"div",J:"ytp-overflow-panel",D:{id:wt(),role:"dialog"},Z:[{X:"div",J:"ytp-overflow-panel-content",Z:[{X:"div",J:"ytp-overflow-panel-action-buttons",jk:"{{buttons}}"}]},{X:"button",WR:["ytp-overflow-panel-close","ytp-button"],D:{title:"Close"},Z:[g.Z4()]}]},250);this.actionButtons=[];this.Y=this.EK("ytp-overflow-panel-content");this.closeButton=this.EK("ytp-overflow-panel-close");this.N(this.closeButton,"click",this.bL);GL(F,this.closeButton,this);this.listen("click",
this.bU);this.N(F,"videoplayerreset",this.hide);this.N(F,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
z9x=function(F,k){F.actionButtons.includes(k)||(F.actionButtons.push(k),F.updateValue("buttons",F.actionButtons))};
xSH=function(F,k){F=g.l(F.actionButtons);for(var z=F.next();!z.done;z=F.next())z.value.fN(k)};
irH=function(F,k,z){var x=g.A_(k,z),D=x.zr("default.jpg");g.Y.call(this,{X:"a",WR:["ytp-video-menu-item","ytp-button"],D:{role:"menuitemradio","aria-label":x.title,href:F.C().getVideoUrl(x.videoId,k.listId?k.listId.toString():null)},Z:[{X:"div",J:"ytp-video-menu-item-index",jk:String(z+1)},{X:"div",J:"ytp-video-menu-item-now-playing",jk:"\u25b6"},{X:"div",J:"ytp-video-menu-item-thumbnail",D:{style:D?"background-image: url("+D+");":void 0}},{X:"div",J:"ytp-video-menu-item-title",jk:x.title},{X:"div",
J:"ytp-video-menu-item-author",jk:x.author}]});this.api=F;this.index=z;this.listen("click",this.onClick)};
DS9=function(F){g.RL.call(this,F,{X:"div",J:"ytp-playlist-menu",D:{role:"dialog",id:wt()},Z:[{X:"div",J:"ytp-playlist-menu-header",Z:[{X:"div",J:"ytp-playlist-menu-title",Z:[F.C().U?{X:"span",J:"ytp-playlist-menu-title-name",jk:"{{title}}"}:{X:"a",J:"ytp-playlist-menu-title-name",D:{href:"{{playlisturl}}"},jk:"{{title}}"},{X:"button",WR:["ytp-playlist-menu-close","ytp-button"],D:{"aria-label":"Close"},Z:[g.Z4()]}]},{X:"div",J:"ytp-playlist-menu-subtitle",jk:"{{subtitle}}"}]},{X:"div",J:"ytp-playlist-menu-items",
D:{role:"menu"}}]},250);this.api=F;this.U=this.selected=this.j=this.playlist=null;this.items=this.EK("ytp-playlist-menu-items");this.Y=new g.yQ(this);this.playlistData=[];this.N(this.EK("ytp-playlist-menu-close"),"click",this.bL);var k=this.EK("ytp-playlist-menu-title-name");F.C().U||(this.U=this.N(k,"click",this.HiK));g.b(this,this.Y);this.hide()};
EU=function(F,k){g.Y.call(this,{X:"button",WR:["ytp-playlist-menu-button","ytp-button"],D:{title:"{{title}}","aria-owns":String(k.element.id),"aria-haspopup":"true","aria-label":"Playlist"},Z:[{X:"div",J:"ytp-playlist-menu-button-icon",Z:[{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,D:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{X:"div",J:"ytp-playlist-menu-button-title",jk:"{{playlistTitle}}"},{X:"div",J:"ytp-playlist-menu-button-text",jk:"{{text}}"}]});var z=this;this.api=F;this.playlist=null;this.visible=!1;F.createClientVe(this.element,this,70344);this.N(F,"videodatachange",this.Y);this.N(F,"videoplayerreset",this.Y);this.N(F,"onPlaylistUpdate",this.Y);this.N(F,"presentingplayerstatechange",this.G4);this.N(F,"appresize",this.G4);this.hide();this.Y();GL(F,this.element,this);this.listen("click",function(){F.logClick(z.element);
Yp(k,z.element,!1)})};
$S5=function(F,k){g.Y.call(this,{X:"div",J:"ytp-promotooltip-wrapper",Z:[{X:"div",J:"ytp-promotooltip-container",Z:[{X:"div",J:"ytp-promotooltip-content",Z:[{X:"div",J:"ytp-promotooltip-title",jk:"{{title}}"},{X:"div",J:"ytp-promotooltip-details",jk:"{{details}}"}]},{X:"div",J:"ytp-promotooltip-buttons",Z:[{X:"div",J:"ytp-promotooltip-dismiss-button",jk:"{{dismissButtonText}}",D:{tabindex:"0"}},{X:"div",J:"ytp-promotooltip-accept-button",jk:"{{acceptButtonText}}",D:{tabindex:"0","aria-haspopup":"true"}}]}]},
{X:"div",J:"ytp-promotooltip-pointer"}]});var z=this;this.tooltipRenderer=F;this.T=k;this.Y=this.U=null;this.title=this.EK("ytp-promotooltip-title");this.details=this.EK("ytp-promotooltip-details");this.acceptButton=this.EK("ytp-promotooltip-accept-button");this.dismissButton=this.EK("ytp-promotooltip-dismiss-button");this.L=this.S=!1;this.j=!0;this.Qh=this.G=this.K=this.B=!1;this.Pe={BI:function(x){z.BI(x)}};
this.Yj(!1);F=this.tooltipRenderer.trackingParams||null;if(this.L=!!F)this.T.createServerVe(this.element,this,!0),this.T.setTrackingParams(this.element,F);this.N(k,"onShowControls",this.xS);this.N(k,"onHideControls",this.n4);this.N(k,"resize",this.OH);this.N(this.acceptButton,"click",this.DDR);this.N(this.dismissButton,"click",this.bJh);this.N(document,"click",this.Vc)};
jeD=function(F){var k=document.querySelectorAll('[data-tooltip-target-id="'+F.tooltipRenderer.targetId+'"]');k=k.length>0?k[0]:null;var z=g.xM("ytp-chrome-bottom"),x=g.xM("ytp-ad-module");F.j=!(z==null||!z.contains(k));F.B=!(x==null||!x.contains(k));F.K=!(k==null||!k.hasAttribute("data-tooltip-target-fixed"));return k};
AN5=function(F,k,z){if(!F.S){if(k){F.tooltipRenderer=k;k=F.tooltipRenderer.text;var x=!1,D;(k==null?0:(D=k.runs)==null?0:D.length)&&k.runs[0].text&&(F.update({title:k.runs[0].text.toString()}),x=!0);g.BS(F.title,x);k=F.tooltipRenderer.detailsText;D=!1;var e;if((k==null?0:(e=k.runs)==null?0:e.length)&&k.runs[0].text){x=k.runs[0].text.toString();e=x.indexOf("$TARGET_ICON");if(e>-1)if(F.tooltipRenderer.targetId){k=[];x=x.split("$TARGET_ICON");var C=new g.mi({X:"span",J:"ytp-promotooltip-details-icon",
Z:[e9k[F.tooltipRenderer.targetId]]});g.b(F,C);for(var p=[],E=g.l(x),X=E.next();!X.done;X=E.next())X=new g.mi({X:"span",J:"ytp-promotooltip-details-component",jk:X.value}),g.b(F,X),p.push(X);x.length===2?(k.push(p[0].element),k.push(C.element),k.push(p[1].element)):x.length===1&&(e===0?(k.push(C.element),k.push(p[0].element)):(k.push(p[0].element),k.push(C.element)));e=k.length?k:null}else e=null;else e=x;if(e){if(typeof e!=="string")for(g.Ey(F.details),D=g.l(e),e=D.next();!e.done;e=D.next())F.details.appendChild(e.value);
else F.update({details:e});D=!0}}g.BS(F.details,D);D=F.tooltipRenderer.acceptButton;e=!1;var q,N,u;((q=g.J(D,g.yS))==null?0:(N=q.text)==null?0:(u=N.runs)==null?0:u.length)&&g.J(D,g.yS).text.runs[0].text&&(F.update({acceptButtonText:g.J(D,g.yS).text.runs[0].text.toString()}),e=!0);g.BS(F.acceptButton,e);q=F.tooltipRenderer.dismissButton;N=!1;var w,m,h;((w=g.J(q,g.yS))==null?0:(m=w.text)==null?0:(h=m.runs)==null?0:h.length)&&g.J(q,g.yS).text.runs[0].text&&(F.update({dismissButtonText:g.J(q,g.yS).text.runs[0].text.toString()}),
N=!0);g.BS(F.dismissButton,N)}z&&(F.U=z);F.Y=jeD(F);F.G=!1;F.T.C().V("web_player_hide_nitrate_promo_tooltip")||F.Yj(!0);Cgk(F);F.Q2&&!F.Qh&&(F.Qh=!0,F.Pe.BI(0));F.L&&F.T.logVisibility(F.element,F.Q2)}};
Xi=function(F){F.Yj(!1);F.L&&F.T.logVisibility(F.element,F.Q2)};
p$H=function(F){var k,z,x,D=((k=g.J(F.acceptButton,g.yS))==null?void 0:(z=k.text)==null?void 0:(x=z.runs)==null?void 0:x.length)&&!!g.J(F.acceptButton,g.yS).text.runs[0].text,e,C,p;k=((e=g.J(F.dismissButton,g.yS))==null?void 0:(C=e.text)==null?void 0:(p=C.runs)==null?void 0:p.length)&&!!g.J(F.dismissButton,g.yS).text.runs[0].text;return D||k};
Cgk=function(F){var k;if(!(k=!F.Y)){k=F.Y;var z=window.getComputedStyle(k);k=z.display==="none"||z.visibility==="hidden"||k.getAttribute("aria-hidden")==="true"}if(k||F.T.isMinimized())F.Yj(!1);else if(k=g.rQ(F.Y),k.width&&k.height){F.T.Bv(F.element,F.Y);var x=F.T.Ka().getPlayerSize().height;z=g.rQ(F.EK("ytp-promotooltip-container")).height;F.j?F.element.style.top=x-z-k.height-12+"px":F.K||(x=F.T.CF().height-z-k.height-12,F.element.style.top=x+"px");x=F.EK("ytp-promotooltip-pointer");var D=g.h9(F.Y,
F.T.getRootNode()),e=Number(F.element.style.left.replace(/[^\d\.]/g,""));F=F.T.isFullscreen()?18:12;x.style.left=D.x-e+k.width/2-F+"px";x.style.top=z+"px"}else F.Yj(!1)};
qw=function(F){g.Y.call(this,{X:"button",WR:["ytp-replay-button","ytp-button"],D:{title:"Replay"},Z:[g.Ia()]});this.T=F;this.N(F,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.pJ(F.getPlayerStateObject());GL(this.T,this.element,this)};
Nw=function(F,k){k=k===void 0?240:k;g.Y.call(this,{X:"button",WR:["ytp-button","ytp-search-button"],D:{title:"Search","data-tooltip-opaque":String(g.tJ(F.C()))},Z:[{X:"div",J:"ytp-search-icon",jk:"{{icon}}"},{X:"div",J:"ytp-search-title",jk:"Search"}]});this.api=F;this.L=k;this.visible=!1;this.updateValue("icon",{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},Z:[{X:"path",J:"ytp-svg-fill",D:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]});
F.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.Y();this.N(F,"appresize",this.Y);this.N(F,"videodatachange",this.Y);GL(F,this.element,this)};
g.u2=function(F,k,z,x){x=x===void 0?240:x;g.Y.call(this,{X:"button",WR:["ytp-button","ytp-share-button"],D:{title:"Share","aria-haspopup":"true","aria-owns":z.element.id,"data-tooltip-opaque":String(g.tJ(F.C()))},Z:[{X:"div",J:"ytp-share-icon",jk:"{{icon}}"},{X:"div",J:"ytp-share-title",jk:"Share"}]});this.api=F;this.Y=k;this.U=z;this.j=x;this.L=this.visible=!1;this.tooltip=this.Y.aI();F.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.N(F,"videodatachange",this.G4);
this.N(F,"videoplayerreset",this.G4);this.N(F,"appresize",this.G4);this.N(F,"presentingplayerstatechange",this.G4);this.G4();this.addOnDisposeCallback(g.Bv(this.tooltip,this.element))};
ELx=function(F){var k=F.api.C(),z=F.api.getVideoData(),x=g.tJ(k)&&g.Pv(F.api)&&g.n(F.api.getPlayerStateObject(),128);k=k.U||k.disableSharing&&F.api.getPresentingPlayerType()!==2||!z.showShareButton||z.BC||x||g.xp(z)||F.L;x=F.api.Ka().getPlayerSize().width;return!!z.videoId&&x>=F.j&&!k};
X$Y=function(F,k){k.name!=="InvalidStateError"&&k.name!=="AbortError"&&(k.name==="NotAllowedError"?(F.Y.Ec(),Yp(F.U,F.element,!1)):g.JV(k))};
NJn=function(F,k){var z=wt(),x=F.C();z={X:"div",J:"ytp-share-panel",D:{id:wt(),role:"dialog","aria-labelledby":z},Z:[{X:"div",J:"ytp-share-panel-inner-content",Z:[{X:"div",J:"ytp-share-panel-title",D:{id:z},jk:"Share"},{X:"a",WR:["ytp-share-panel-link","ytp-no-contextmenu"],D:{href:"{{link}}",target:x.K,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},jk:"{{linkText}}"},{X:"label",J:"ytp-share-panel-include-playlist",Z:[{X:"input",J:"ytp-share-panel-include-playlist-checkbox",D:{type:"checkbox",
checked:"true"}},"Include playlist"]},{X:"div",J:"ytp-share-panel-loading-spinner",Z:[Aq()]},{X:"div",J:"ytp-share-panel-service-buttons",jk:"{{buttons}}"},{X:"div",J:"ytp-share-panel-error",jk:"An error occurred while retrieving sharing information. Please try again later."}]},{X:"button",WR:["ytp-share-panel-close","ytp-button"],D:{title:"Close"},Z:[g.Z4()]}]};g.RL.call(this,F,z,250);var D=this;this.moreButton=null;this.api=F;this.tooltip=k.aI();this.U=[];this.S=this.EK("ytp-share-panel-inner-content");
this.closeButton=this.EK("ytp-share-panel-close");this.N(this.closeButton,"click",this.bL);this.addOnDisposeCallback(g.Bv(this.tooltip,this.closeButton));this.j=this.EK("ytp-share-panel-include-playlist-checkbox");this.N(this.j,"click",this.G4);this.Y=this.EK("ytp-share-panel-link");this.addOnDisposeCallback(g.Bv(this.tooltip,this.Y));this.api.createClientVe(this.Y,this,164503);this.N(this.Y,"click",function(e){e.preventDefault();D.api.logClick(D.Y);var C=D.api.getVideoUrl(!0,!0,!1,!1);C=qd5(D,C);
g.Ch(C,D.api,e)&&D.api.ZQ("SHARE_CLICKED")});
this.listen("click",this.IY);this.N(F,"videoplayerreset",this.hide);this.N(F,"fullscreentoggled",this.onFullscreenToggled);this.N(F,"onLoopRangeChange",this.yp4);this.hide()};
w$p=function(F,k){uup(F);for(var z=k.links||k.shareTargets,x=0,D={},e=0;e<z.length&&x<2;D={QF:void 0,Wx:void 0},e++){D.QF=z[e];a:switch(D.QF.img||D.QF.iconId){case "facebook":var C={X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},Z:[{X:"rect",D:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{X:"path",D:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":C={X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},Z:[{X:"rect",D:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{X:"path",D:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:C=null}if(C){var p=D.QF.sname||D.QF.serviceName;D.Wx=new g.Y({X:"a",WR:["ytp-share-panel-service-button","ytp-button"],D:{href:D.QF.url,target:"_blank",title:p},Z:[C]});D.Wx.listen("click",function(q){return function(N){var u=q.QF.url;if(g.Pu(N)){var w=w===void 0?{}:w;w.target=w.target||"YouTube";w.width=w.width||"600";w.height=w.height||"600";var m=w;m||(m={});w=window;var h=u instanceof au?u:g.JE(typeof u.href!="undefined"?u.href:String(u));var B=self.crossOriginIsolated!==
void 0,U="strict-origin-when-cross-origin";window.Request&&(U=(new Request("/")).referrerPolicy);var v=m.noreferrer;if(B&&v&&U==="unsafe-url")throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");B=v&&!B;u=m.target||u.target;U=[];v=[];for(var P in m){var I=m[P];switch(P){case "width":case "height":case "top":case "left":U.push(P+"="+I);break;case "target":break;case "noopener":case "noreferrer":I?v.push(P):v.push(P+"=false");break;
case "attributionsrc":U.push(P+(I?"="+I:""));break;default:U.push(P+"="+(I?1:0))}}u===void 0||["_blank","_self","_top","_parent",""].includes(u);P=U.join(",");Rp()&&w.navigator&&w.navigator.standalone&&u&&u!="_self"?(P=g.Ci("A"),g.Ru(P,h),P.target=u,B&&(P.rel="noreferrer"),((m=m.attributionsrc)||m==="")&&P.setAttribute("attributionsrc",m),m=document.createEvent("MouseEvent"),m.initMouseEvent("click",!0,!0,w,1),P.dispatchEvent(m),w=K8C()):B?(w=g.MX(w,"",u,P),m=g.Sy(h),w&&(w.opener=null,m===""&&(m=
"javascript:''"),m=Y$('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+jI(m)+'">'),(h=w.document)&&h.write&&(h.write(nU(m)),h.close()))):((w=g.MX(w,h,u,P))&&m.noopener&&(w.opener=null),w&&m.noreferrer&&(w.opener=null));w&&(w.opener||(w.opener=window),w.focus());N.preventDefault()}}}(D));
D.Wx.addOnDisposeCallback(g.Bv(F.tooltip,D.Wx.element));p==="Facebook"?F.api.createClientVe(D.Wx.element,D.Wx,164504):p==="Twitter"&&F.api.createClientVe(D.Wx.element,D.Wx,164505);F.N(D.Wx.element,"click",function(q){return function(){F.api.logClick(q.Wx.element)}}(D));
F.api.logVisibility(D.Wx.element,!0);F.U.push(D.Wx);x++}}var E=k.more||k.moreLink,X=new g.Y({X:"a",WR:["ytp-share-panel-service-button","ytp-button"],Z:[{X:"span",J:"ytp-share-panel-service-button-more",Z:[{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},Z:[{X:"rect",D:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{X:"path",D:{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"}}]}]}],D:{href:E,target:"_blank",title:"More"}});X.listen("click",function(q){var N=E;F.api.logClick(F.moreButton.element);N=qd5(F,N);g.Ch(N,F.api,q)&&F.api.ZQ("SHARE_CLICKED")});
X.addOnDisposeCallback(g.Bv(F.tooltip,X.element));F.api.createClientVe(X.element,X,164506);F.N(X.element,"click",function(){F.api.logClick(X.element)});
F.api.logVisibility(X.element,!0);F.U.push(X);F.moreButton=X;F.updateValue("buttons",F.U)};
qd5=function(F,k){var z={};g.tJ(F.api.C())&&(g.Xh(F.api,"addEmbedsConversionTrackingParams",[z]),k=g.oW(k,z));return k};
uup=function(F){for(var k=g.l(F.U),z=k.next();!z.done;z=k.next())z=z.value,z.detach(),g.CC(z);F.U=[]};
wO=function(F){return F===void 0||F.startSec===void 0||F.endSec===void 0?!1:!0};
mS9=function(F,k){F.startSec+=k;F.endSec+=k};
lBI=function(F){r1.call(this,F);this.L=this.Y=this.isContentForward=this.G=!1;TJp(this);this.N(this.T,"changeProductsInVideoVisibility",this.w7t);this.N(this.T,"videodatachange",this.onVideoDataChange)};
Qe9=function(F){F.S&&F.yh.element.removeChild(F.S.element);F.S=void 0};
seM=function(F,k){return k.map(function(z){var x,D;if((z=(x=g.J(z,h9Y))==null?void 0:(D=x.thumbnail)==null?void 0:D.thumbnails)&&z.length!==0)return z[0].url}).filter(function(z){return z!==void 0}).map(function(z){z=new g.Y({X:"img",
J:"ytp-suggested-action-product-thumbnail",D:{alt:"",src:z}});g.b(F,z);return z})};
rND=function(F,k){F.isContentForward=k;g.XF(F.badge.element,"ytp-suggested-action-badge-content-forward",k)};
mU=function(F){var k=F.isContentForward&&!F.d1();g.XF(F.badge.element,"ytp-suggested-action-badge-preview-collapsed",k&&F.Y);g.XF(F.badge.element,"ytp-suggested-action-badge-preview-expanded",k&&F.L)};
T1=function(F,k,z){return new g.ps(F*1E3,k*1E3,{priority:9,namespace:z})};
BJk=function(F){F.T.H7("shopping_overlay_visible");F.T.H7("shopping_overlay_preview_collapsed");F.T.H7("shopping_overlay_preview_expanded");F.T.H7("shopping_overlay_expanded")};
TJp=function(F){F.N(F.T,g.X$("shopping_overlay_visible"),function(){F.FA(!0)});
F.N(F.T,g.qQ("shopping_overlay_visible"),function(){F.FA(!1)});
F.N(F.T,g.X$("shopping_overlay_expanded"),function(){F.PR=!0;sR(F)});
F.N(F.T,g.qQ("shopping_overlay_expanded"),function(){F.PR=!1;sR(F)});
F.N(F.T,g.X$("shopping_overlay_preview_collapsed"),function(){F.Y=!0;mU(F)});
F.N(F.T,g.qQ("shopping_overlay_preview_collapsed"),function(){F.Y=!1;mU(F)});
F.N(F.T,g.X$("shopping_overlay_preview_expanded"),function(){F.L=!0;mU(F)});
F.N(F.T,g.qQ("shopping_overlay_preview_expanded"),function(){F.L=!1;mU(F)})};
tqk=function(F){g.Y.call(this,{X:"div",J:"ytp-shorts-title-channel",Z:[{X:"a",J:"ytp-shorts-title-channel-logo",D:{href:"{{channelLink}}",target:F.C().K,"aria-label":"{{channelLogoLabel}}"}},{X:"div",J:"ytp-shorts-title-expanded-heading",Z:[{X:"div",J:"ytp-shorts-title-expanded-title",Z:[{X:"a",jk:"{{expandedTitle}}",D:{href:"{{channelTitleLink}}",target:F.C().K,tabIndex:"0"}}]}]}]});var k=this;this.api=F;this.Y=this.EK("ytp-shorts-title-channel-logo");this.channelName=this.EK("ytp-shorts-title-expanded-title");
this.subscribeButton=null;F.createClientVe(this.Y,this,36925);this.N(this.Y,"click",function(z){k.api.logClick(k.Y);g.MX(window,G4n(k));z.preventDefault()});
F.createClientVe(this.channelName,this,37220);this.N(this.channelName,"click",function(z){k.api.logClick(k.channelName);g.MX(window,G4n(k));z.preventDefault()});
USx(this);this.N(F,"videodatachange",this.G4);this.N(F,"videoplayerreset",this.G4);this.G4()};
USx=function(F){if(!F.api.C().vj){var k=F.api.getVideoData(),z=new g.Me("Subscribe",null,"Subscribed",null,!0,!1,k.Wz,k.subscribed,"channel_avatar",null,F.api,!0);F.api.createServerVe(z.element,F);var x;F.api.setTrackingParams(z.element,((x=k.subscribeButtonRenderer)==null?void 0:x.trackingParams)||null);F.N(z.element,"click",function(){F.api.logClick(z.element)});
F.subscribeButton=z;g.b(F,F.subscribeButton);F.subscribeButton.T4(F.element)}};
G4n=function(F){var k=F.api.C(),z=F.api.getVideoData();z=g.xE(k)+z.Xm;if(!g.tJ(k))return z;k={};g.Xh(F.api,"addEmbedsConversionTrackingParams",[k]);return g.oW(z,k)};
l2=function(F){g.RL.call(this,F,{X:"button",WR:["ytp-skip-intro-button","ytp-popup","ytp-button"],Z:[{X:"div",J:"ytp-skip-intro-button-text",jk:"Skip Intro"}]},100);var k=this;this.U=!1;this.Y=new g.KS(function(){k.hide()},5E3);
this.Ki=this.BM=NaN;g.b(this,this.Y);this.G=function(){k.show()};
this.S=function(){k.hide()};
this.j=function(){var z=k.T.getCurrentTime();z>k.BM/1E3&&z<k.Ki/1E3&&k.show()};
this.N(this.T,"videodatachange",function(z,x){k.Z4(z,x)});
this.N(this.element,"click",function(){k.T.seekTo(k.Ki/1E3)});
this.hide()};
QV=function(F){g.Y.call(this,{X:"button",WR:["ytp-airplay-button","ytp-button"],D:{title:"AirPlay","data-priority":"10"},jk:"{{icon}}"});this.T=F;this.listen("click",this.onClick);this.N(F,"airplayactivechange",this.G4);this.N(F,"airplayavailabilitychange",this.G4);this.G4();GL(F,this.element,this)};
vLn=function(F){g.Y.call(this,{X:"div",J:"ytp-gradient-bottom"});this.L=g.Ci("CANVAS");this.Y=this.L.getContext("2d",{willReadFrequently:!0});this.U=NaN;this.L.width=1;Zrn(this,F.Ka().getPlayerSize().height)};
Zrn=function(F,k){if(F.Y){k=Math.floor(k*.4);k=Math.max(k,47);var z=k+2;if(F.U!==z){F.U=z;F.L.height=z;F.Y.clearRect(0,0,1,z);var x=F.Y.createLinearGradient(0,2,0,2+k),D=k-42;x.addColorStop(0,"rgba(0, 0, 0, 0)");x.addColorStop(D/k,"rgba(0, 0, 0, 0.3)");x.addColorStop(1,"rgba(0, 0, 0, 0.68)");F.Y.fillStyle=x;F.Y.fillRect(0,2,1,k);F.element.style.height=z+"px";try{F.element.style.backgroundImage="url("+F.L.toDataURL()+")"}catch(e){}}}};
hR=function(F,k,z,x){g.Y.call(this,{X:"div",J:"ytp-chapter-container",Z:[{X:"button",WR:["ytp-chapter-title","ytp-button"],Z:[{X:"span",D:{"aria-hidden":"true"},J:"ytp-chapter-title-prefix",jk:"\u2022"},{X:"div",J:"ytp-chapter-title-content",jk:"{{title}}",D:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:x}},{X:"div",J:"ytp-chapter-title-chevron",Z:[{X:"svg",D:{height:"100%",viewBox:"0 0 24 24",width:"100%"},Z:[{X:"path",D:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",
fill:"#fff"}}]}]}]}]});this.T=F;this.j=k;this.S="";this.currentIndex=0;this.L=void 0;this.U=!0;this.Qh=this.EK("ytp-chapter-container");this.Y=this.EK("ytp-chapter-title");this.PR=this.EK("ytp-chapter-title-content");this.updateVideoData("newdata",this.T.getVideoData());this.N(F,"videodatachange",this.updateVideoData);this.N(this.Qh,"click",this.onClick);this.N(F,g.X$(z),this.xj);this.N(F,"onLoopRangeChange",this.xj);this.N(F,"innertubeCommand",this.onClickCommand);(F=g.HJ(this.T.C()))&&g.XF(this.Y,
"ytp-profile-page",!0);this.T.V("web_player_updated_entrypoint")&&g.XF(this.element,"ytp-xs-mono-button-style",!0);g.tJ(this.T.C())||F||GL(this.T,this.PR,this)};
sU=function(F,k){hR.call(this,F,k,"chapterCueRange","View chapter");this.G=""};
cNp=function(F,k,z,x,D){var e=k.Wv/k.rows,C=Math.min(z/(k.z5/k.columns),x/e),p=k.z5*C,E=k.Wv*C;p=Math.floor(p/k.columns)*k.columns;E=Math.floor(E/k.rows)*k.rows;var X=p/k.columns,q=E/k.rows,N=-k.column*X,u=-k.row*q;D&&e<=45&&(q-=1/C);X-=2/C;F=F.style;F.width=X+"px";F.height=q+"px";D||(x=(x-q)/2,z=(z-X)/2,F.marginTop=Math.floor(x)+"px",F.marginBottom=Math.ceil(x)+"px",F.marginLeft=Math.floor(z)+"px",F.marginRight=Math.ceil(z)+"px");F.background="url("+k.url+") "+N+"px "+u+"px/"+p+"px "+E+"px"};
rO=function(F,k){g.Y.call(this,{X:"div",J:"ytp-storyboard-framepreview",Z:[{X:"div",J:"ytp-storyboard-framepreview-timestamp",jk:"{{timestamp}}"},{X:"div",J:"ytp-storyboard-framepreview-img"}]});this.api=F;this.L=this.EK("ytp-storyboard-framepreview-img");this.Y=null;this.frameIndex=NaN;this.events=new g.yQ(this);this.fade=new g.Cv(this,100);g.b(this,this.events);g.b(this,this.fade);this.N(this.api,"presentingplayerstatechange",this.U);k&&this.N(this.element,"click",function(){k.ih()})};
PgD=function(F,k){var z=!!F.Y;F.Y=k;F.Y?(z||(F.events.N(F.api,"videodatachange",function(){PgD(F,F.api.SU())}),F.events.N(F.api,"progresssync",F.u7),F.events.N(F.api,"appresize",F.j)),F.frameIndex=NaN,OrD(F),F.fade.show(200)):(z&&g.VB(F.events),F.fade.hide(),F.fade.stop())};
OrD=function(F){var k=F.Y,z=F.api.getCurrentTime(),x=F.api.Ka().getPlayerSize(),D=It(k,x.width);D=CBn(k,D,z);F.update({timestamp:g.cu(z)});D!==F.frameIndex&&(F.frameIndex=D,jOn(k,D,x.width),k=DZ5(k,D,x.width),cNp(F.L,k,x.width,x.height))};
Vqa=function(F,k){g.Y.call(this,{X:"button",WR:["ytp-fullscreen-button","ytp-button"],D:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"11","data-title-no-tooltip":"{{data-title-no-tooltip}}"},jk:"{{icon}}"});this.T=F;this.L=k;this.message=null;this.Y=g.Bv(this.L.aI(),this.element);this.U=new g.KS(this.vX,2E3,this);g.b(this,this.U);this.N(F,"fullscreentoggled",this.F9);this.N(F,"presentingplayerstatechange",this.G4);this.N(F,"resize",this.G4);this.listen("click",this.onClick);g.hx()&&
(k=this.T.Ka(),this.N(k,HS5(),this.O6),this.N(k,Ivx(document),this.GH));F.C().qD||F.C().B||this.disable();F.createClientVe(this.element,this,139117);this.G4();this.F9(F.isFullscreen())};
BL=function(F,k){g.Y.call(this,{X:"button",WR:["ytp-button","ytp-jump-button"],D:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Z:[k>0?{X:"svg",D:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},Z:[{X:"path",WR:["ytp-circle-arrow","ytp-svg-fill"],D:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}},
{X:"text",WR:["ytp-jump-button-text","ytp-svg-fill"],D:{x:"7.05",y:"15.05"}}]}:{X:"svg",D:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},Z:[{X:"path",WR:["ytp-circle-arrow","ytp-svg-fill"],D:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}},
{X:"text",WR:["ytp-jump-button-text","ytp-svg-fill"],D:{x:"6.5",y:"15"}}]}]});var z=this;this.T=F;this.Y=k;this.L=new g.KS(function(){z.U?(z.U=!1,z.L.start()):z.element.classList.remove("ytp-jump-spin","backwards")},250);
this.U=!1;(k=k>0)?this.T.createClientVe(this.element,this,36843):this.T.createClientVe(this.element,this,36844);var x=g.rG(k?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.Y).toString()});this.update({title:x,"data-title-no-tooltip":x,"aria-keyshortcuts":k?"\u2192":"\u2190"});this.j=this.element.querySelector(".ytp-jump-button-text");this.j.textContent=Math.abs(this.Y).toString();this.listen("click",this.onClick,this);GL(F,this.element,
this)};
IB9=function(F,k){k?F.element.classList.add("ytp-jump-button-enabled"):F.element.classList.remove("ytp-jump-button-enabled");F.T.logVisibility(F.element,k);F.T.Ei()};
G1=function(F,k){hR.call(this,F,k,"timedMarkerCueRange","View key moments");this.N(F,g.qQ("timedMarkerCueRange"),this.xj);this.N(F,"updatemarkervisibility",this.updateVideoData)};
HrR=function(F){var k,z=(k=F.T.getVideoData())==null?void 0:k.UH;if(z)for(F=F.j.l$,z=g.l(z),k=z.next();!k.done;k=z.next())if(k=F[k.value]){var x=void 0,D=void 0,e=void 0;if(((x=k.onTap)==null?void 0:(D=x.innertubeCommand)==null?void 0:(e=D.changeEngagementPanelVisibilityAction)==null?void 0:e.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return k}};
UU=function(F){var k=F.V("web_enable_pip_on_miniplayer");g.Y.call(this,{X:"button",WR:["ytp-miniplayer-button","ytp-button"],D:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},Z:[k?{X:"svg",D:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},Z:[{X:"g",D:{transform:"translate(96, -96) scale(0.8)"},Z:[{X:"path",Qz:!0,D:{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"}}]}]}:
r6C()]});this.T=F;this.visible=!1;this.listen("click",this.onClick);this.N(F,"fullscreentoggled",this.G4);this.updateValue("title",g.UJ(F,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});GL(F,this.element,this);F.createClientVe(this.element,this,62946);this.G4()};
tR=function(F,k,z){z=z===void 0?!1:z;g.Y.call(this,{X:"button",WR:["ytp-mute-button","ytp-button"],D:F.C().l$?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},jk:"{{icon}}"});this.T=F;this.Xf=z;this.Y=null;this.j=this.K=this.S=this.PR=NaN;this.t4=this.G=null;this.U=[];this.L=[];this.visible=!1;this.B=null;F.V("delhi_modern_web_player")&&this.update({"data-priority":3});
z=this.T.C();this.updateValue("icon",SL());this.tooltip=k.aI();this.Y=new g.mi({X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"defs",Z:[{X:"clipPath",D:{id:"ytp-svg-volume-animation-mask"},Z:[{X:"path",D:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{X:"path",D:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{X:"path",J:"ytp-svg-volume-animation-mover",D:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{X:"clipPath",D:{id:"ytp-svg-volume-animation-slash-mask"},
Z:[{X:"path",J:"ytp-svg-volume-animation-mover",D:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{X:"path",Qz:!0,WR:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],D:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{X:"path",Qz:!0,WR:["ytp-svg-fill","ytp-svg-volume-animation-hider"],D:{"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.b(this,this.Y);this.G=this.Y.EK("ytp-svg-volume-animation-speaker");this.t4=this.G.getAttribute("d");this.U=g.o_("ytp-svg-volume-animation-mover",this.Y.element);this.L=g.o_("ytp-svg-volume-animation-hider",this.Y.element);this.mp=new Wq;g.b(this,this.mp);this.Qh=new Wq;g.b(this,this.Qh);this.listen("click",this.vjK);this.N(F,"appresize",this.j_);this.N(F,"onVolumeChange",this.onVolumeChange);var x=null;z.l$?F.V("delhi_modern_web_player")?
this.addOnDisposeCallback(g.Bv(k.aI(),this.element,-120)):this.addOnDisposeCallback(g.Bv(k.aI(),this.element)):(k="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),x=new g.RL(F,{X:"span",WR:["ytp-popup","ytp-generic-popup"],D:{tabindex:"0"},Z:[k[0],{X:"a",D:{href:"https://web.archive.org/web/20250411103644/https://support.google.com/youtube/?p=noaudio",target:z.K},jk:k[2]},k[4]]},100,!0),g.b(this,x),x.hide(),x.subscribe("show",function(D){F.Ce(x,D)}),g.Hv(F,x.element,4));
this.message=x;F.createClientVe(this.element,this,28662);this.j_(F.Ka().getPlayerSize());this.setVolume(F.getVolume(),F.isMuted())};
bra=function(F,k){F.PR=k;var z=F.t4;k&&(z+=$Ia(aBn,SdI,k));F.G.setAttribute("d",z)};
dSk=function(F,k){F.K=k;for(var z=20*k,x=0;x<F.U.length;x++)F.U[x].setAttribute("transform","translate("+z+", "+z+")");var D;k===1?D=SL():D=F.Y;for(z=0;z<F.L.length;z++){x=F.L[z];var e=void 0;if((e=x)==null?0:e.style)x.style.display=k===0?"none":""}D!==F.B&&(F.updateValue("icon",D),F.B=D)};
g.Zp=function(F,k){g.Y.call(this,{X:"button",WR:["ytp-play-button","ytp-button"],D:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},jk:"{{icon}}"});this.T=F;this.Y=null;this.transition=new Wq;this.tooltip=k.aI();g.b(this,this.transition);F.createClientVe(this.element,this,36842);F.V("embeds_use_parent_visibility_in_ve_logging")?F.logVisibility(this.element,this.W):F.logVisibility(this.element,!0);this.N(F,"fullscreentoggled",this.onVideoDataChange);this.N(F,
"presentingplayerstatechange",this.onStateChange);this.N(F,"videodatachange",this.onVideoDataChange);this.pJ(F.getPlayerStateObject());this.listen("click",this.o5,this);this.addOnDisposeCallback(g.Bv(k.aI(),this.element))};
JND=function(F){switch(F){case 1:return V7();case 2:return hPR();case 3:return g.Ia();case 4:return GXH();default:return null}};
g.vL=function(F,k,z){g.Y.call(this,{X:"a",WR:[z?"ytp-next-button":"ytp-prev-button","ytp-button"],D:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},Z:[z?cx():B3D()]});var x=this;this.T=F;this.Y=z;this.playlist=this.videoData=null;this.G=
!1;this.j=this.S=this.L=null;this.U=!1;this.tooltip=k.aI();z?F.createClientVe(this.element,this,6193):F.createClientVe(this.element,this,6194);this.N(F,"fullscreentoggled",this.onVideoDataChange);this.N(F,"videodatachange",this.onVideoDataChange);this.N(F,"onPlaylistUpdate",this.onVideoDataChange);this.N(F,"onLoopRangeChange",this.onVideoDataChange);this.Y||this.N(F,"appresize",this.Vy);this.N(F,"mdxpreviousnextchange",function(){yNH(x);x.Vy()});
this.onVideoDataChange()};
R9k=function(F){F.playlist&&F.playlist.unsubscribe("shuffle",F.onVideoDataChange,F)};
gL6=function(F){return!!F.playlist&&!F.Y&&!!F.videoData&&!F.videoData.isLivePlayback&&F.T.getCurrentTime()>=3&&F.T.getPresentingPlayerType()!==2};
YdC=function(F){var k=cv(F.T.iL());return k?F.Y?k.D4():k.HZ():!1};
yNH=function(F){var k={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},z=F.playlist!=null&&F.playlist.D4();z=g.Pv(F.T)&&(!F.Y||z);var x=F.Y&&g.aL(F.T),D=YdC(F),e=F.Y&&F.T.getPresentingPlayerType()===5,C=g.UJ(F.T,"Next","SHIFT+n"),p=g.UJ(F.T,"Previous","SHIFT+p");if(e)k.title="Start video";else if(F.U)k.title="Replay";else if(z){var E=null;F.playlist&&(E=g.A_(F.playlist,F.Y?JhI(F.playlist):yhn(F.playlist)));if(E){if(E.videoId){var X=F.playlist.listId;
k.url=F.T.C().getVideoUrl(E.videoId,X?X.toString():void 0)}k.text=E.title;k.duration=E.lengthText?E.lengthText:E.lengthSeconds?g.cu(E.lengthSeconds):null;k.preview=E.zr("mqdefault.jpg")}F.Y?(k.title=C,k["data-title-no-tooltip"]="Next",k["aria-keyshortcuts"]="SHIFT+n"):(k.title=p,k["data-title-no-tooltip"]="Previous",k["aria-keyshortcuts"]="SHIFT+p")}else if(x){if(p=(E=F.videoData)==null?void 0:g.Fq(E))k.url=p.Ai(),k.text=p.title,k.duration=p.lengthText?p.lengthText:p.lengthSeconds?g.cu(p.lengthSeconds):
null,k.preview=p.zr("mqdefault.jpg");k.title=C;k["data-title-no-tooltip"]="Next";k["aria-keyshortcuts"]="SHIFT+n"}k.disabled=!x&&!z&&!D&&!e;F.update(k);F.G=!!k.url;x||z||F.U||D||e?F.L||(F.L=g.Bv(F.tooltip,F.element),F.S=F.listen("click",F.onClick,F)):F.L&&(F.L(),F.L=null,F.er(F.S),F.S=null);F.tooltip.Ei();g.XF(F.element,"ytp-playlist-ui",F.Y&&z)};
Mqa=function(F,k){g.Y.call(this,{X:"div",J:"ytp-fine-scrubbing",Z:[{X:"div",J:"ytp-fine-scrubbing-draggable",Z:[{X:"div",J:"ytp-fine-scrubbing-thumbnails",D:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{X:"div",D:{"aria-hidden":"true"},J:"ytp-fine-scrubbing-cursor"},{X:"div",J:"ytp-fine-scrubbing-seek-time",D:{"aria-hidden":"true"},
jk:"{{seekTime}}"},{X:"div",J:"ytp-fine-scrubbing-play",Z:[V7()],D:{title:"Play from this position",role:"button"}},{X:"div",J:"ytp-fine-scrubbing-dismiss",Z:[g.Z4()],D:{title:"Exit precise seeking",role:"button"}}]});var z=this;this.api=F;this.S=this.EK("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.EK("ytp-fine-scrubbing-dismiss");this.t4=this.EK("ytp-fine-scrubbing-draggable");this.playButton=this.EK("ytp-fine-scrubbing-play");this.thumbnails=[];this.L=[];this.cR=this.Y=0;this.yh=void 0;
this.Qh=NaN;this.l$=this.K=this.U=this.B=0;this.j=[];this.interval=this.frameCount=0;this.G=160;this.scale=1;this.J4=0;this.isEnabled=this.Xf=!1;nLn(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.Bv(k,this.dismissButton));this.addOnDisposeCallback(g.Bv(k,this.playButton));this.mp=new g.bO(this.t4,!0);this.mp.subscribe("dragstart",this.Ga,this);this.mp.subscribe("dragmove",this.Iw,this);this.mp.subscribe("dragend",this.JC,this);this.N(F,"SEEK_COMPLETE",this.qf);F.V("web_fix_fine_scrubbing_false_play")&&
this.N(F,"rootnodemousedown",function(x){z.PR=x});
this.S.addEventListener("keydown",function(){});
g.b(this,this.mp);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.S,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)};
nLn=function(F,k){var z=g.cu(k),x=g.rG("Seek to $PROGRESS",{PROGRESS:g.cu(k,!0)});F.update({ariamin:0,ariamax:Math.floor(F.api.getDuration()),arianow:Math.floor(k),arianowtext:x,seekTime:z})};
LdD=function(F){F.Qh=NaN;F.K=0;F.B=F.U};
Wdn=function(F){var k=F.api.SU();if(k){var z=90*F.scale,x=It(k,160*F.scale);if(k=k.levels[x]){F.G=k.width;if(!F.j.length){x=[];for(var D=H3(k,k.sV()),e=k.columns*k.rows,C=k.frameCount,p=0;p<=D;p++)for(var E=C<e?Math.ceil(C/k.columns):k.rows,X=0;X<k.rows;X++){var q=C<k.columns?C:k.columns,N={url:k.q5(p),column:0,columns:q,row:X,rows:E,z5:k.width*q,Wv:k.height*E};x.push(N);C-=q;if(C<=1)break}F.j=x;F.frameCount=k.oP();F.interval=k.Y/1E3||F.api.getDuration()/F.frameCount}for(;F.thumbnails.length>F.j.length;)x=
void 0,(x=F.thumbnails.pop())==null||x.dispose();for(;F.thumbnails.length<F.j.length;)x=new fBH,F.thumbnails.push(x),x.T4(F.S),g.b(F,x);for(x=0;x<F.j.length;x++)D=F.thumbnails[x].element,e=F.j[x],C=F.G*F.scale,p=e.Wv/e.rows,E=z/p,D.style.background="url("+e.url+") 0 "+-e.row*e.Wv/e.rows*E+"px/"+C*k.columns+"px "+p*e.rows*E+"px",D.style.width=C*e.columns+"px",D.style.height=z+"px";cL(F,F.api.getCurrentTime());for(z=F.api.getVideoData().pn;F.L.length>z.length;)x=void 0,(x=F.L.pop())==null||x.dispose();
for(;F.L.length<z.length;)x=new KdY,F.L.push(new KdY),g.b(F,x);for(x=0;x<z.length;x++)D=z[x],F.L[x].update({chapterTitle:D.title}),D=Math.round(D.startTime/k.Y),e=Math.floor(D/k.rows),g.Xr(F.L[x].element,"transform","translateX("+D%k.rows*F.G*F.scale+"px)"),e<F.thumbnails.length&&F.thumbnails[e]&&F.L[x].T4(F.thumbnails[e].element);F.Xf=!0}}};
cL=function(F,k){F.PR&&(F.PR.yR=!0);F.update({seekTime:g.cu(k)});var z=F.G*F.scale;k=k<F.interval/2?-k*z/F.interval*2+F.Y/2:-k*z/F.interval-z/2+F.Y/2;k=g.l3(k,FlD(F),F.Y/2);F.B=k;F.U=F.B;g.Xr(F.t4,"transform","translateX("+(F.B-F.Y/2)+"px)");g.Xr(F.t4,"padding","0px "+F.Y/2+"px");g.Xr(F.S,"position","relative")};
kja=function(F,k){var z=F.G*F.scale;k-=F.Y/2;return k>-z?-k/z*F.interval*.5:-(k+z/2)/z*F.interval};
FlD=function(F){return-((F.S.offsetWidth||(F.frameCount-1)*F.G*F.scale)-F.Y/2)};
fBH=function(){g.Y.call(this,{X:"div",J:"ytp-fine-scrubbing-thumbnail"})};
KdY=function(){g.Y.call(this,{X:"div",J:"ytp-fine-scrubbing-chapter-title",Z:[{X:"div",J:"ytp-fine-scrubbing-chapter-title-content",jk:"{{chapterTitle}}"}]})};
oza=function(F){g.Y.call(this,{X:"div",J:"ytp-heat-map-chapter",Z:[{X:"svg",J:"ytp-heat-map-svg",D:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},Z:[{X:"defs",Z:[{X:"clipPath",D:{id:"{{id}}"},Z:[{X:"path",J:"ytp-heat-map-path",D:{d:"",fill:"white"}}]},{X:"linearGradient",D:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},Z:[{X:"stop",D:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{X:"stop",D:{offset:"100%",
"stop-color":"white","stop-opacity":"0"}}]}]},{X:"rect",J:"ytp-heat-map-graph",D:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{X:"rect",J:"ytp-heat-map-hover",D:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{X:"rect",J:"ytp-heat-map-play",D:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{X:"path",J:"ytp-modern-heat-map",D:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%",
stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=F;this.B=this.EK("ytp-heat-map-svg");this.S=this.EK("ytp-heat-map-path");this.j=this.EK("ytp-heat-map-graph");this.G=this.EK("ytp-heat-map-play");this.Y=this.EK("ytp-heat-map-hover");this.U=this.EK("ytp-modern-heat-map");this.ut=!1;this.L=60;F=""+g.Kk(this);this.update({id:F});F="url(#"+F+")";this.j.setAttribute("clip-path",F);this.G.setAttribute("clip-path",F);this.Y.setAttribute("clip-path",
F)};
zfn=function(F,k){k>0&&(F.L=k,F.B.style.height=F.L+"px")};
PL=function(){g.Y.call(this,{X:"div",J:"ytp-chapter-hover-container",Z:[{X:"div",J:"ytp-progress-bar-padding"},{X:"div",J:"ytp-progress-list",Z:[{X:"div",WR:["ytp-play-progress","ytp-swatch-background-color"]},{X:"div",J:"ytp-progress-linear-live-buffer"},{X:"div",J:"ytp-load-progress"},{X:"div",J:"ytp-hover-progress"},{X:"div",J:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.L=this.EK("ytp-progress-list");this.S=this.EK("ytp-progress-linear-live-buffer");
this.j=this.EK("ytp-ad-progress-list");this.G=this.EK("ytp-load-progress");this.B=this.EK("ytp-play-progress");this.U=this.EK("ytp-hover-progress");this.Y=this.EK("ytp-chapter-hover-container")};
OU=function(F,k){g.Xr(F.Y,"width",k)};
xMH=function(F,k){g.Xr(F.Y,"margin-right",k+"px")};
iLD=function(){this.L=this.position=this.U=this.Y=this.j=this.width=NaN};
DMI=function(){g.Y.call(this,{X:"div",J:"ytp-timed-marker"});this.Y=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.IF=function(F,k){g.Q7.call(this,{X:"div",J:"ytp-progress-bar-container",D:{"aria-disabled":"true"},Z:[{X:"div",WR:["ytp-heat-map-container"],Z:[{X:"div",J:"ytp-heat-map-edu"}]},{X:"div",WR:["ytp-progress-bar"],D:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},Z:[{X:"div",J:"ytp-chapters-container"},{X:"div",J:"ytp-timed-markers-container"},{X:"div",J:"ytp-clip-start-exclude"},
{X:"div",J:"ytp-clip-end-exclude"},{X:"div",J:"ytp-scrubber-container",Z:[{X:"div",WR:["ytp-scrubber-button","ytp-swatch-background-color"],Z:[{X:"div",J:"ytp-scrubber-pull-indicator"},{X:"img",WR:["ytp-decorated-scrubber-button"]}]}]}]},{X:"div",WR:["ytp-fine-scrubbing-container"],Z:[{X:"div",J:"ytp-fine-scrubbing-edu"}]},{X:"div",J:"ytp-bound-time-left",jk:"{{boundTimeLeft}}"},{X:"div",J:"ytp-bound-time-right",jk:"{{boundTimeRight}}"},{X:"div",J:"ytp-clip-start",D:{title:"{{clipstarttitle}}"},jk:"{{clipstarticon}}"},
{X:"div",J:"ytp-clip-end",D:{title:"{{clipendtitle}}"},jk:"{{clipendicon}}"}]});this.api=F;this.Nk=!1;this.YP=this.uG=this.RU=this.S=this.Tr=0;this.xY=null;this.m_=!1;this.cR={};this.RS={};this.clipEnd=Infinity;this.Xm=this.EK("ytp-clip-end");this.MD=new g.bO(this.Xm,!0);this.uL=this.EK("ytp-clip-end-exclude");this.vj=this.EK("ytp-clip-start-exclude");this.clipStart=0;this.qD=this.EK("ytp-clip-start");this.We=new g.bO(this.qD,!0);this.K=this.vR=0;this.progressBar=this.EK("ytp-progress-bar");this.UH=
{};this.l$={};this.u$=this.EK("ytp-chapters-container");this.D7=this.EK("ytp-timed-markers-container");this.Y=[];this.G=[];this.Av={};this.Om=null;this.t4=-1;this.dH=this.mp=0;this.ZR=this.B=null;this.y6=this.EK("ytp-scrubber-button");this.Vz=this.EK("ytp-decorated-scrubber-button");this.pn=this.EK("ytp-scrubber-container");this.kG=new g.sV;this.Ki=new iLD;this.U=new d8(0,0);this.cj=null;this.Qh=this.H8=!1;this.Z7=null;this.PR=this.EK("ytp-heat-map-container");this.yf=this.EK("ytp-heat-map-edu");
this.j=[];this.heatMarkersDecorations=[];this.NJ=this.EK("ytp-fine-scrubbing-container");this.fJ=this.EK("ytp-fine-scrubbing-edu");this.L=void 0;this.Xf=this.P7=this.yh=!1;this.tooltip=k.aI();this.addOnDisposeCallback(g.Bv(this.tooltip,this.Xm));g.b(this,this.MD);this.MD.subscribe("hoverstart",this.Xd,this);this.MD.subscribe("hoverend",this.m0,this);this.N(this.Xm,"click",this.cL);this.addOnDisposeCallback(g.Bv(this.tooltip,this.qD));g.b(this,this.We);this.We.subscribe("hoverstart",this.Xd,this);
this.We.subscribe("hoverend",this.m0,this);this.N(this.qD,"click",this.cL);$Mp(this);this.N(F,"resize",this.OH);this.N(F,"presentingplayerstatechange",this.c4k);this.N(F,"videodatachange",this.Z4);this.N(F,"videoplayerreset",this.Wp$);this.N(F,"cuerangesadded",this.zqK);this.N(F,"cuerangesremoved",this.Hp4);this.N(F,"onLoopRangeChange",this.hY);this.N(F,"innertubeCommand",this.onClickCommand);this.N(F,g.X$("timedMarkerCueRange"),this.fFJ);this.N(F,"updatemarkervisibility",this.VB);this.N(F,"serverstitchedvideochange",
this.o9h);this.updateVideoData(F.getVideoData(),!0);this.hY(F.getLoopRange());VV(this)&&!this.L&&(this.L=new Mqa(this.api,this.tooltip),F=g.Q1(this.element).x||0,this.L.OH(F,this.S),this.L.T4(this.NJ),g.b(this,this.L),this.N(this.L.dismissButton,"click",this.ih),this.N(this.L.playButton,"click",this.X$),this.N(this.L.element,"dblclick",this.X$));this.api.createClientVe(this.PR,this,139609,!0);this.api.createClientVe(this.yf,this,140127,!0);this.api.createClientVe(this.fJ,this,151179,!0);this.api.createClientVe(this.progressBar,
this,38856,!0)};
$Mp=function(F){if(F.Y.length===0){var k=new PL;F.Y.push(k);g.b(F,k);k.T4(F.u$,0)}for(;F.Y.length>1;)F.Y.pop().dispose();OU(F.Y[0],"100%");F.Y[0].startTime=0;F.Y[0].title=""};
jVM=function(F){var k=k===void 0?NaN:k;var z=new oza(F.api);F.j.push(z);g.b(F,z);z.T4(F.PR);k>=0&&(z.element.style.width=k+"px")};
efn=function(F){for(;F.G.length;)F.G.pop().dispose()};
A$9=function(F){var k,z,x,D,e;return(e=g.J((D=g.J((k=F.getWatchNextResponse())==null?void 0:(z=k.playerOverlays)==null?void 0:(x=z.playerOverlayRenderer)==null?void 0:x.decoratedPlayerBarRenderer,B3))==null?void 0:D.playerBar,C_M))==null?void 0:e.chapters};
psI=function(F){for(var k=F.Y,z=[],x=0;x<k.length;x++)if(!isNaN(k[x].startTime)){var D=k[x].startTime;D=new g.ps(D,x===k.length-1?Infinity:k[x+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+D});z.push(D)}F.api.H7("chapterCueRange");F.api.Li(z)};
Tcn=function(F,k){var z,x=(z=F.UH[k])==null?void 0:z.chapters;x&&(Ezn(F,x),F.api.getVideoData().pn=F.Y,psI(F));var D;if((z=(D=F.UH[k])==null?void 0:D.markers)&&k!=="HEATSEEKER"){efn(F);D=g.l(z);for(z=D.next();!z.done;z=D.next())if(x=z.value,z=new DMI,x=g.J(x,g.Xs9)){var e=void 0;z.title=((e=x.title)==null?void 0:e.simpleText)||"";e=void 0;z.timeRangeStartMillis=(e=x.timeRangeStartMillis)!=null?e:NaN;var C=e=void 0;z.onActiveCommand=(C=(e=x)==null?void 0:e.onActiveCommand)!=null?C:void 0;qGH(F,z)}Nca(F,
F.G);D=F.G;z=F.Av;x=[];for(e=0;e<D.length;e++)!isNaN(D[e].timeRangeStartMillis)&&D[e].onActiveCommand&&(C=fjx(D[e].timeRangeStartMillis,e===D.length-1?Infinity:D[e+1].timeRangeStartMillis),x.push(C),z[C.id]=D[e].onActiveCommand);F.api.Li(x)}var p;if(k=g.J((p=F.UH[k])==null?void 0:p.heatmap,u8p)){p=k.heatMarkers||[];var E;D=(E=k.minHeightDp)!=null?E:0;var X;E=(X=k.maxHeightDp)!=null?X:60;X=F.Y.length;z=null;for(x=0;x<X;x++){C=F.Y[x].startTime;var q=x===X-1?Infinity:F.Y[x+1].startTime;x===F.j.length&&
jVM(F);e=[];z&&e.push(z);for(var N=g.l(p),u=N.next();!u.done;u=N.next()){u=u.value;var w=void 0,m=void 0,h=(m=(w=g.J(u,wsn))==null?void 0:w.timeRangeStartMillis)!=null?m:-1;h>=C&&h<=q&&e.push(u)}E>0&&(F.PR.style.height=E+"px");C=F.j[x];q=e;u=D;m=E;h=x===0;h=h===void 0?!1:h;zfn(C,m);N=q;w=C.L;h=h===void 0?!1:h;var B=1E3/N.length,U=[];U.push({x:0,y:100});for(var v=0;v<N.length;v++){var P=void 0,I=((P=g.J(N[v],wsn))==null?void 0:P.heatMarkerIntensityScoreNormalized)||0;P=(v+.5)*B;I=100-g.l3(I*100,u/
w*100,m/w*100);v!==0||h||U.push({x:0,y:I});U.push({x:P,y:I});v===N.length-1&&U.push({x:1E3,y:I})}U.push({x:1E3,y:100});N=U;q=q.length===0?"":Kfa(N);C.api.V("delhi_modern_web_player")?C.U.setAttribute("d",q):C.S.setAttribute("d",q);C.ut=q!=="";g.XF(C.api.getRootNode(),"ytp-heat-map",C.ut);g.XF(C.api.getRootNode(),"ytp-heat-map-played_bar",C.api.V("web_player_heat_map_played_bar")&&q!=="");C.api.V("delhi_modern_web_player")&&(C.U.style.display="block",C.j.style.display="none",C.Y.style.display="none");
e.length>0&&(z=e[e.length-1])}g.HL(F);p=[];k=g.l(k.heatMarkersDecorations||[]);for(D=k.next();!D.done;D=k.next())if(D=g.J(D.value,mMn))E=D.label,x=z=X=void 0,p.push({visibleTimeRangeStartMillis:(X=D.visibleTimeRangeStartMillis)!=null?X:-1,visibleTimeRangeEndMillis:(z=D.visibleTimeRangeEndMillis)!=null?z:-1,decorationTimeMillis:(x=D.decorationTimeMillis)!=null?x:NaN,label:E?g.rt(E):""});F.heatMarkersDecorations=p}};
qGH=function(F,k){F.G.push(k);g.b(F,k);k.T4(F.D7,F.D7.children.length)};
Nca=function(F,k){k=g.l(k);for(var z=k.next();!z.done;z=k.next()){z=z.value;var x=aF(F,z.timeRangeStartMillis/(F.U.Y*1E3),Sf(F));g.Xr(z.element,"transform","translateX("+x+"px) scaleX(0.6)")}};
Ezn=function(F,k){var z=0,x=!1;k=g.l(k);for(var D=k.next();!D.done;D=k.next()){D=D.value;if(g.J(D,lDD)){D=g.J(D,lDD);var e={startTime:NaN,title:null,onActiveCommand:void 0},C=D.title;e.title=C?g.rt(C):"";C=D.timeRangeStartMillis;C!=null&&(e.startTime=C);e.onActiveCommand=D.onActiveCommand;D=e;z===0&&D.startTime!==0&&(F.Y[z].startTime=0,F.Y[z].title="",F.Y[z].onActiveCommand=D.onActiveCommand,z++,x=!0);F.Y.length<=z&&(e=new PL,F.Y.push(e),g.b(F,e),e.T4(F.u$,F.u$.children.length));F.Y[z].startTime=
D.startTime;F.Y[z].title=D.title?D.title:"";F.Y[z].onActiveCommand=D.onActiveCommand;F.Y[z].index=x?z-1:z}z++}for(;z<F.Y.length;)F.Y.pop().dispose();g.HL(F);b2(F)};
g.HL=function(F){F.mp=F.Y.length-1;F.dH=0;QVx(F,!0)&&QVx(F,!1);for(var k=0,z=0;z<F.Y.length;z++)if(F.Y[z].width===0){if(z===F.Y.length-1)for(var x=F.Y.length-1;x>=0;x--)if(F.Y[x].width>0){xMH(F.Y[x],0);var D=Math.floor(F.Y[x].width);F.Y[x].width=D;OU(F.Y[x],D+"px");break}F.Y[z].width=0;OU(F.Y[z],"0")}else z===F.Y.length-1?(x=Math.floor(F.Y[z].width+k),F.Y[z].width=x,OU(F.Y[z],x+"px")):(k=F.Y[z].width+k,x=Math.round(k),k-=x,F.Y[z].width=x,OU(F.Y[z],x+"px"));z=0;if(F.j.length===F.Y.length)for(k=0;k<
F.j.length;k++)x=F.Y[k].width,F.j[k].element.style.width=x+"px",F.j[k].element.style.left=z+"px",z+=x+dO(F);F.api.V("delhi_modern_web_player")&&(F.Y.length===1?F.Y[0].L.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(F.Y[0].L.classList.remove("ytp-progress-bar-end"),F.Y[0].L.classList.add("ytp-progress-bar-start"),F.Y[F.Y.length-1].L.classList.add("ytp-progress-bar-end")))};
QVx=function(F,k){var z=0,x=!1,D=F.Y.length,e=F.U.Y*1E3;e===0&&(e=F.api.getProgressState().seekableEnd*1E3);if(e>0&&F.S>0){for(var C=F.S-dO(F)*F.mp,p=F.dH===0?3:C*F.dH,E=g.l(F.Y),X=E.next();!X.done;X=E.next())X.value.width=0;for(;z<D;){E=e-F.Y[z].startTime;z<D-1&&(E=F.Y[z+1].startTime-F.Y[z].startTime,xMH(F.Y[z],dO(F)));g.XF(F.Y[z].Y,"ytp-exp-chapter-hover-container",F.Y.length>1);X=(e===0?0:E/e*C)+F.Y[z].width;if(X>p)F.Y[z].width=X;else{F.Y[z].width=0;var q=F,N=z,u=q.Y[N-1];u!==void 0&&u.width>0?
u.width+=X:N<q.Y.length-1&&(q.Y[N+1].width+=X);xMH(q.Y[N],0);k&&(F.mp--,E/e>F.dH&&(F.dH=E/e),x=!0)}z++}}return x};
b2=function(F){if(F.S){var k=F.api.getProgressState(),z=F.api.getVideoData();if(!(z&&z.enableServerStitchedDai&&z.Vb)||isFinite(k.current)){var x;if(((x=F.api.getVideoData())==null?0:zL(x))&&k.airingStart&&k.airingEnd)var D=JR(F,k.airingStart,k.airingEnd);else if(F.api.getPresentingPlayerType()===2){var e,C,p;D=(z=(D=F.api.getVideoData())==null?void 0:(e=D.getPlayerResponse())==null?void 0:(C=e.playerConfig)==null?void 0:(p=C.webPlayerConfig)==null?void 0:p.skippableAdProgressBarDuration)?JR(F,k.seekableStart,
z/1E3):JR(F,k.seekableStart,k.seekableEnd)}else D=JR(F,k.seekableStart,k.seekableEnd);e=JI(D,k.loaded,0);k=JI(D,k.current,0);C=F.U.L!==D.L||F.U.Y!==D.Y;F.U=D;yV(F,k,e);C&&hf5(F);sV6(F)}}};
JR=function(F,k,z){return r$D(F)?new d8(Math.max(k,F.cj.startTimeMs/1E3),Math.min(z,F.cj.endTimeMs/1E3)):new d8(k,z)};
BcM=function(F,k){var z;if(((z=F.cj)==null?void 0:z.type)==="repeatChapter"||(k==null?void 0:k.type)==="repeatChapter")k&&(k=F.Y[$9(F.Y,k.startTimeMs)],g.XF(k.Y,"ytp-repeating-chapter",!1)),F.cj&&(k=F.Y[$9(F.Y,F.cj.startTimeMs)],g.XF(k.Y,"ytp-repeating-chapter",!0)),F.Y.forEach(function(x){g.XF(x.Y,"ytp-exp-chapter-hover-container",!F.cj)})};
gO=function(F,k){var z=F.U;z=z.L+k.L*z.getLength();if(F.Y.length>1){z=RF(F,k.U,!0);for(var x=0,D=0;D<z;D++)F.Y[D].width>0&&(x+=F.Y[D].width,x+=dO(F));z=(F.Y[z].startTime+(k.U-x)/F.Y[z].width*((z===F.Y.length-1?F.U.Y*1E3:F.Y[z+1].startTime)-F.Y[z].startTime))/1E3||0}return z};
Y9=function(F,k,z,x,D){k=k<0?0:Math.floor(Math.min(k,F.api.getDuration())*1E3);z=z<0?0:Math.floor(Math.min(z,F.api.getDuration())*1E3);F=F.progressBar.visualElement;x={seekData:{startMediaTimeMs:k,endMediaTimeMs:z,seekSource:x}};(k=g.OK())&&g.oS($B)(void 0,k,F,D,x,void 0)};
GjM=function(F,k,z){if(z>=F.Y.length)return!1;var x=F.S-dO(F)*F.mp;return Math.abs(k-F.Y[z].startTime/1E3)/F.U.Y*x<4};
hf5=function(F){F.y6.style.removeProperty("height");for(var k=g.l(Object.keys(F.cR)),z=k.next();!z.done;z=k.next())UMC(F,z.value);na(F);yV(F,F.K,F.vR)};
Sf=function(F){var k=F.kG.x;k=g.l3(k,0,F.S);F.Ki.update(k,F.S);return F.Ki};
La=function(F){return(F.Qh?135:90)-Mw(F)};
Mw=function(F){var k=48,z=F.api.C();F.Qh?k=54:g.tJ(z)&&!z.L?k=40:F.api.V("delhi_modern_web_player")&&(k=68);return k};
yV=function(F,k,z){F.K=k;F.vR=z;var x=Sf(F),D=F.U.Y;var e=F.U;e=e.L+F.K*e.getLength();var C=g.rG("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.cu(e,!0),DURATION:g.cu(D,!0)}),p=$9(F.Y,e*1E3);p=F.Y[p].title;F.update({ariamin:Math.floor(F.U.L),ariamax:Math.floor(D),arianow:Math.floor(e),arianowtext:p?p+" "+C:C});D=F.clipStart;e=F.clipEnd;F.cj&&F.api.getPresentingPlayerType()!==2&&(D=F.cj.startTimeMs/1E3,e=F.cj.endTimeMs/1E3);D=JI(F.U,D,0);p=JI(F.U,e,1);C=F.api.getVideoData();e=g.l3(k,D,p);z=(C==null?
0:g.M8(C))?1:g.l3(z,D,p);k=aF(F,k,x);g.Xr(F.pn,"transform","translateX("+k+"px)");F.api.V("delhi_modern_web_player")&&ttC(F,k);fa(F,x,D,e,"PLAY_PROGRESS");(C==null?0:zL(C))?(k=F.api.getProgressState().seekableEnd)&&fa(F,x,e,JI(F.U,k),"LIVE_BUFFER"):fa(F,x,D,z,"LOAD_PROGRESS");if(F.api.V("web_player_heat_map_played_bar")){var E;(E=F.j[0])!=null&&E.G.setAttribute("width",(e*100).toFixed(2)+"%")}};
ttC=function(F,k){F.api.getPresentingPlayerType()!==1?F.u$.style.removeProperty("clip-path"):(k||(k=aF(F,F.K,Sf(F))),F.u$.style.clipPath='path("'+(F.m_?ZLI(F,8,k,F.Qh?50:36,0,6):ZLI(F,4,k,F.Qh?34:24,2,3))+'")')};
ZLI=function(F,k,z,x,D,e){var C=z-x/2;z+=x/2;k+=D;return"M 0 "+D+" L 0 "+(k+" L ")+(C+" "+k+" C ")+(C+e+" "+k+" "+(C+e)+" "+D+" "+C+" "+D+" L 0 ")+(D+" M ")+(z+" "+D+" L ")+(F.S+" "+D+" L ")+(F.S+" "+k+" L ")+(z+" "+k+" C ")+(z-e+" "+k+" "+(z-e)+" "+D+" "+z+" "+D)};
fa=function(F,k,z,x,D){var e=F.Y.length,C=k.Y-F.mp*dO(F),p=z*C;z=RF(F,p);var E=x*C;C=RF(F,E);D==="HOVER_PROGRESS"&&(C=RF(F,k.Y*x,!0),E=k.Y*x-vzD(F,k.Y*x)*dO(F));x=Math.max(p-c$k(F,z),0);for(p=z;p<e;p++)F.Y[p].T$(D).style.left=z===p?x+"px":"0";k=aF(F,F.K,k);for(e=z;e<C;e++){p=F.Y[e].T$(D);var X=F.Y[e].width,q=e===z?X-x:X;Ka(F,p,q,X);P_n(F,p,q,X,e,k,D)}e=F.Y[C].width;E=g.l3(E-c$k(F,C),0,e);z===C&&(E-=x);x=F.Y[C].T$(D);Ka(F,x,E,e);P_n(F,x,E,e,C,k,D);E=F.Y.length;for(C+=1;C<E;C++)OLk(F,C,D);for(C=0;C<
z;C++)OLk(F,C,D)};
c$k=function(F,k){if(k>=F.Y.length)return F.S;for(var z=0,x=0;x<k;)z+=F.Y[x].width,x++;return z};
OLk=function(F,k,z){z=F.Y[k].T$(z);Ka(F,z,0,F.Y[k].width)};
P_n=function(F,k,z,x,D,e,C){C==="PLAY_PROGRESS"&&(z=!x||F.api.C().L?1:z/x,F.vj.clientWidth>0||F.uL.clientWidth>0?(e=k.clientWidth/z,F=-1*F.vj.clientWidth/z):(e/=z,F=-1*F.Y[D].element.offsetLeft/z),g.Xr(k,"background-size",e+"px"),g.Xr(k,"background-position-x",F+"px"))};
Ka=function(F,k,z,x,D){D||F.api.C().L?k.style.width=z+"px":g.Xr(k,"transform","scalex("+(x?z/x:0)+")")};
RF=function(F,k,z){var x=0;(z===void 0?0:z)&&(k-=vzD(F,k)*dO(F));z=g.l(F.Y);for(var D=z.next();!D.done;D=z.next()){D=D.value;if(k>D.width)k-=D.width;else break;x++}return x===F.Y.length?x-1:x};
aF=function(F,k,z){var x=k*F.U.Y*1E3;for(var D=-1,e=g.l(F.Y),C=e.next();!C.done;C=e.next())C=C.value,x>C.startTime&&C.width>0&&D++;x=D<0?0:D;D=z.Y-dO(F)*F.mp;return k*D+dO(F)*x+z.j};
vzD=function(F,k){for(var z=F.Y.length,x=0,D=g.l(F.Y),e=D.next();!e.done;e=D.next())if(e=e.value,e.width!==0)if(k>e.width)k-=e.width,k-=dO(F),x++;else break;return x===z?z-1:x};
g.Vt9=function(F,k,z,x){var D=F.S!==z,e=F.Qh!==x;F.Tr=k;F.S=z;F.Qh=x;VV(F)&&(k=F.L)!=null&&(k.scale=x?1.5:1);hf5(F);F.Y.length===1&&(F.Y[0].width=z||0);D&&g.HL(F);F.L&&e&&VV(F)&&(F.L.isEnabled&&(z=F.Qh?135:90,x=z-Mw(F),F.NJ.style.height=z+"px",g.Xr(F.PR,"transform","translateY("+-x+"px)"),g.Xr(F.progressBar,"transform","translateY("+-x+"px)")),Wdn(F.L))};
na=function(F){var k=!!F.cj&&F.api.getPresentingPlayerType()!==2,z=F.clipStart,x=F.clipEnd,D=!0,e=!0;k&&F.cj?(z=F.cj.startTimeMs/1E3,x=F.cj.endTimeMs/1E3):(D=z>F.U.L,e=F.U.Y>0&&x<F.U.Y);var C,p;if(((C=F.cj)==null?0:C.postId)||((p=F.cj)==null?void 0:p.type)==="repeatChapter")e=D=!1;g.XF(F.element,"ytp-loop-range-enabled",k);g.XF(F.element,"ytp-clip-start-enabled",D);g.XF(F.element,"ytp-clip-end-enabled",e);k=D?JI(F.U,z,0):0;x=e?JI(F.U,x,1):1;F.qD.style.left=Math.round(k*1E3)/10+"%";F.Xm.style.left=
Math.round(x*1E3)/10+"%";F.vj.style.width=Math.round(k*1E3)/10+"%";F.uL.style.left=Math.round(x*1E3)/10+"%";F.uL.style.width=Math.round((1-x)*1E3)/10+"%"};
sV6=function(F){var k;if((k=F.api.getVideoData())==null||!zL(k)){k=Sf(F);fa(F,k,F.K,Math.max(k.L,F.K),"HOVER_PROGRESS");for(var z=RF(F,k.Y*F.K,!0),x=RF(F,k.U,!0),D=z;D<=x;D++)g.XF(F.Y[D].U,"ytp-hover-progress-light",k.L>F.K);g.XF(F.y6,"ytp-scrubber-button-hover",z===x&&F.Y.length>1);if(F.api.V("web_player_heat_map_played_bar")){var e;(e=F.j[0])!=null&&e.Y.setAttribute("width",(k.L*100).toFixed(2)+"%")}}};
UMC=function(F,k){var z=F.cR[k];k=F.RS[k];var x=Sf(F),D=JI(F.U,z.start/1E3,0),e=e7p(z,F.Qh)/x.width;var C=JI(F.U,z.end/1E3,1);e!==Number.POSITIVE_INFINITY&&(D=g.l3(D,0,C-e));C=Math.min(C,D+e);z.color&&(k.style.background=z.color);z=D;k.style.left=Math.max(z*x.Y+x.j,0)+"px";Ka(F,k,g.l3((C-z)*x.Y+x.j,0,x.width),x.width,!0)};
IDx=function(F,k){var z=k.getId();F.cR[z]===k&&(g.q_(F.RS[z]),delete F.cR[z],delete F.RS[z])};
VV=function(F){var k=g.f_(F.api.C())&&(F.api.V("web_shorts_pip")||F.api.V("web_watch_pip")),z;return!((z=F.api.getVideoData())==null?0:z.isLivePlayback)&&!F.api.isMinimized()&&!F.api.isInline()&&(!F.api.NB()||!k)};
WL=function(F){F.L&&(F.L.disable(),F.RU=0,F.PR.style.removeProperty("transform"),F.progressBar.style.removeProperty("transform"),F.NJ.style.removeProperty("height"),F.element.parentElement&&F.element.parentElement.style.removeProperty("height"))};
HLC=function(F,k){var z=k/La(F)*Mw(F);g.Xr(F.progressBar,"transform","translateY("+-k+"px)");g.Xr(F.PR,"transform","translateY("+-k+"px)");g.Xr(F.NJ,"transform","translateY("+z+"px)");F.NJ.style.height=k+z+"px";F.element.parentElement&&(F.element.parentElement.style.height=Mw(F)-z+"px")};
aDH=function(F,k){k?F.B||(F.element.removeAttribute("aria-disabled"),F.B=new g.bO(F.progressBar,!0),F.B.subscribe("hovermove",F.M94,F),F.B.subscribe("hoverend",F.usp,F),F.B.subscribe("dragstart",F.BlQ,F),F.B.subscribe("dragmove",F.Cth,F),F.B.subscribe("dragend",F.p7G,F),F.api&&F.api.V("delhi_modern_web_player")&&(F.ZR=new g.bO(F.progressBar,!0),F.ZR.subscribe("hoverstart",function(){F.m_=!0;ttC(F)},F),F.ZR.subscribe("hoverend",function(){F.m_=!1;
ttC(F)},F)),F.Z7=F.listen("keydown",F.AC)):F.B&&(F.element.setAttribute("aria-disabled","true"),F.er(F.Z7),F.B.cancel(),F.B.dispose(),F.B=null)};
dO=function(F){return F.api.V("delhi_modern_web_player")?4:F.Qh?3:2};
r$D=function(F){var k;return!((k=F.cj)==null||!k.postId)&&F.api.getPresentingPlayerType()!==2};
FS=function(F,k){g.Y.call(this,{X:"button",WR:["ytp-remote-button","ytp-button"],D:{title:"Play on TV","aria-haspopup":"true","data-priority":"9"},jk:"{{icon}}"});this.T=F;this.Sz=k;this.Y=null;this.N(F,"onMdxReceiversChange",this.G4);this.N(F,"presentingplayerstatechange",this.G4);this.N(F,"appresize",this.G4);F.createClientVe(this.element,this,139118);this.G4();this.listen("click",this.L,this);GL(F,this.element,this)};
ko=function(F,k){g.Y.call(this,{X:"button",WR:["ytp-button","ytp-settings-button"],D:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":wt(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},Z:[g.Hx()]});this.T=F;this.Sz=k;this.L=!0;this.listen("click",this.U);this.N(F,"onPlaybackQualityChange",this.updateBadge);this.N(F,"videodatachange",this.updateBadge);this.N(F,"webglsettingschanged",this.updateBadge);this.N(F,"appresize",this.Y);GL(F,this.element,this);this.T.createClientVe(this.element,
this,28663);this.updateBadge();this.Y(F.Ka().getPlayerSize())};
SGM=function(F,k){F.L=!!k;F.Y(F.T.Ka().getPlayerSize())};
og=function(F,k){$0.call(this,"Annotations",g.EA.QO);this.T=F;this.Sz=k;this.Y=!1;F.V("web_settings_menu_icons")&&this.setIcon({X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{X:"path",D:{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.N(F,"videodatachange",this.G4);this.N(F,"onApiChange",this.G4);this.subscribe("select",this.onSelect,this);this.G4()};
z5=function(F,k){g.Hq.call(this,"Audio track",g.EA.AUDIO,F,k);this.T=F;this.tracks={};g.C6(this.element,"ytp-audio-menu-item");this.countLabel=new g.Y({X:"div",Z:[{X:"span",jk:"Audio track"},{X:"span",J:"ytp-menuitem-label-count",jk:"{{content}}"}]});F.V("web_settings_menu_icons")&&this.setIcon({X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{X:"path",D:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z            M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z            M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z            M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z            M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z",
fill:"white"}}]});g.b(this,this.countLabel);g.Ma(this,this.countLabel);this.N(F,"videodatachange",this.G4);this.N(F,"onPlaybackAudioChange",this.G4);this.G4()};
xo=function(F,k){$0.call(this,"Autoplay",g.EA.Fe);this.T=F;this.Sz=k;this.Y=!1;this.U=[];this.N(F,"presentingplayerstatechange",this.L);this.subscribe("select",this.onSelect,this);F.createClientVe(this.element,this,113682);this.L()};
bLn=function(F,k){g.LY.call(this,g.fY({"aria-haspopup":"false"}),0,"More options");this.T=F;this.Sz=k;this.N(this.element,"click",this.onClick);this.Sz.Iy(this)};
dMk=function(F,k){var z;g.f_(F.C())&&(z={X:"div",J:"ytp-panel-footer-content",Z:[{X:"span",jk:"Adjust download quality from your "},{X:"a",J:"ytp-panel-footer-content-link",jk:"Settings",D:{href:"/account_downloads"}}]});g.Hq.call(this,"Quality",g.EA.PX,F,k,void 0,void 0,z);this.T=F;this.t4={};this.K={};this.j={};this.mp=new Set;this.Y=this.S=!1;this.G="unknown";this.Qh="";this.PR=new g.oj;g.b(this,this.PR);this.S=this.T.V("web_player_use_new_api_for_quality_pullback");this.Y=this.T.V("web_player_enable_premium_hbr_playback_cap");
F.V("web_settings_menu_icons")&&this.setIcon({X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{X:"path",D:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z            M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.C6(this.L.element,"ytp-quality-menu");this.N(F,"videodatachange",this.EW);this.N(F,"videoplayerreset",this.EW);this.N(F,"onPlaybackQualityChange",this.FV);this.EW();F.createClientVe(this.element,this,137721)};
y$R=function(F,k,z){var x=F.t4[k],D=g.Yg[k];return J$H(F,x?x.qualityLabel:D?D+"p":"Auto",k,z)};
Rf5=function(F,k,z,x,D){var e=(k=F.Y?F.j[k]:F.K[k])&&k.quality,C=k&&k.qualityLabel;C=C?C:"Auto";x&&(C="("+C);F=J$H(F,C,e||"",D);x&&F.Z.push(")");(x=(x=k&&k.paygatedQualityDetails)&&x.paygatedIndicatorText)&&z&&F.Z.push({X:"div",J:"ytp-premium-label",jk:x});return F};
J$H=function(F,k,z,x){k={X:"span",WR:x,Z:[k]};var D;x="ytp-swatch-color";if(F.S||F.Y)x="ytp-swatch-color-white";z==="highres"?D="8K":z==="hd2880"?D="5K":z==="hd2160"?D="4K":z.indexOf("hd")===0&&z!=="hd720"&&(D="HD");D&&(k.Z.push(" "),k.Z.push({X:"sup",J:x,jk:D}));return k};
Dl=function(F,k,z,x,D,e){e=e===void 0?!1:e;var C={X:"div",WR:["ytp-input-slider-section"],Z:[{X:"input",J:"ytp-input-slider",D:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};D&&C.Z.unshift(D);e&&C.WR.push("ytp-vertical-slider");g.Y.call(this,C);this.S=F;this.G=k;this.B=z;this.initialValue=x;this.header=D;this.L=this.EK("ytp-input-slider");this.Y=x?x:F;this.init();this.N(this.L,"input",this.j);this.N(this.L,"keydown",
this.U)};
$o=function(F,k){F.Y=k;F.updateValue("slidervalue",F.Y);F.L.valueAsNumber=F.Y;gza(F,k)};
gza=function(F,k){F.L.style.setProperty("--yt-slider-shape-gradient-percent",(k-F.S)/(F.G-F.S)*100+"%")};
jh=function(F){Dl.call(this,F.getAvailablePlaybackRates()[0],F.getAvailablePlaybackRates()[F.getAvailablePlaybackRates().length-1],.05,F.getPlaybackRate(),{X:"div",J:"ytp-speedslider-indicator-container",Z:[{X:"div",J:"ytp-speedslider-badge"},{X:"p",J:"ytp-speedslider-text"}]});this.T=F;this.Qh=B4(this.PR,50,this);g.C6(this.L,"ytp-speedslider");this.K=this.EK("ytp-speedslider-text");this.mp=this.EK("ytp-speedslider-badge");YGY(this);this.N(this.L,"change",this.t4)};
YGY=function(F){F.K.textContent=F.Y+"x";F.mp.classList.toggle("ytp-speedslider-premium-badge",F.Y>2&&F.T.V("enable_web_premium_varispeed"))};
eh=function(F,k,z,x,D,e,C){g.Y.call(this,{X:"div",J:"ytp-slider-section",D:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},Z:[{X:"div",J:"ytp-slider",Z:[{X:"div",J:"ytp-slider-handle"}]}]});this.B=F;this.K=k;this.L=z;this.U=x;this.Qh=D;this.Xf=e;this.range=this.U-this.L;this.yh=this.EK("ytp-slider-section");this.j=this.EK("ytp-slider");this.PR=this.EK("ytp-slider-handle");this.G=new g.bO(this.j,
!0);this.Y=C?C:z;g.b(this,this.G);this.G.subscribe("dragmove",this.Hm,this);this.N(this.element,"keydown",this.Nf);this.N(this.element,"wheel",this.f4);this.init()};
Co=function(F){eh.call(this,.05,.05,F.getAvailablePlaybackRates()[0],F.getAvailablePlaybackRates()[F.getAvailablePlaybackRates().length-1],150,20,F.getPlaybackRate());this.T=F;this.S=g.Ci("P");this.mp=B4(this.t4,50,this);g.C6(this.j,"ytp-speedslider");g.C6(this.S,"ytp-speedslider-text");F=this.S;var k=this.j;k.parentNode&&k.parentNode.insertBefore(F,k.nextSibling);nzp(this);this.N(this.T,"onPlaybackRateChange",this.updateValues)};
nzp=function(F){F.S.textContent=MtM(F,F.Y)+"x"};
MtM=function(F,k){F=Number(g.l3(k,F.L,F.U).toFixed(2));k=Math.floor((F+.001)*100%5+2E-15);var z=F;k!==0&&(z=F-k*.01);return Number(z.toFixed(2))};
LlY=function(F){g.Q7.call(this,{X:"div",J:"ytp-speedslider-component"});F.V("web_settings_use_input_slider")?this.Y=new jh(F):this.Y=new Co(F);g.b(this,this.Y);this.element.appendChild(this.Y.element)};
fDC=function(F){var k=new LlY(F);Bq.call(this,F,k,"Custom");g.b(this,k)};
Kln=function(F,k){var z=new fDC(F);g.Hq.call(this,"Playback speed",g.EA.FU,F,k,Ah(F)?void 0:"Custom",Ah(F)?void 0:function(){g.Z2(k,z)});
var x=this;this.j=!1;g.b(this,z);this.G=new jh(F);g.b(this,this.G);F.V("web_settings_menu_icons")&&this.setIcon({X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{X:"path",D:{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.T=F;this.j=!1;this.Qh=null;Ah(F)?(this.Y=g.rG("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.T.getPlaybackRate().toString()}),this.S=this.T.getPlaybackRate()):this.S=this.Y=null;this.K=this.T.getAvailablePlaybackRates();this.N(F,"presentingplayerstatechange",this.G4);var D;((D=this.T.getVideoData())==null?0:D.w3())&&this.N(F,"serverstitchedvideochange",this.G4);this.N(this.G.L,"change",function(){x.j=!0;x.G4()});
this.G4()};
Wlk=function(F,k){var z=po(k);F.Y&&(F.j||k===F.S)?(F.hG(F.Y),F.r3(k.toString())):F.hG(z)};
kKD=function(F){F.zR(F.K.map(po));F.Y=null;F.S=null;var k=F.T.getPlaybackRate();Ah(F.T)&&FkR(F,k);!F.K.includes(k)||F.j?F.hG(F.Y):F.hG(po(k))};
FkR=function(F,k){F.S=k;F.Y=g.rG("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:k.toString()});k=F.K.map(po);k.unshift(F.Y);F.zR(k)};
po=function(F){return F.toString()};
Ah=function(F){return F.V("web_settings_menu_surface_custom_playback")};
o1R=function(F){return F.V("web_settings_menu_surface_custom_playback")&&F.V("web_settings_use_input_slider")};
xRn=function(F,k,z,x){var D=new g.Gd(k,void 0,"Video Override");g.Hq.call(this,x.text||"",F,k,z,"Video Override",function(){g.Z2(z,D)});
var e=this;g.C6(this.element,"ytp-subtitles-options-menu-item");this.setting=x.option.toString();F=x.options;this.settings=g.qT(F,this.tY,this);this.S=D;g.b(this,this.S);k=new g.LY({X:"div",J:"ytp-menuitemtitle",jk:"Allow for a different caption style if specified by the video."},0);g.b(this,k);this.S.Iy(k,!0);this.j=new g.LY({X:"div",J:"ytp-menuitem",D:{role:"menuitemradio",tabindex:"0"},Z:[{X:"div",J:"ytp-menuitem-label",jk:"On"}]},-1);g.b(this,this.j);this.S.Iy(this.j,!0);this.N(this.j.element,
"click",function(){zZR(e,!0)});
this.Y=new g.LY({X:"div",J:"ytp-menuitem",D:{role:"menuitemradio",tabindex:"0"},Z:[{X:"div",J:"ytp-menuitem-label",jk:"Off"}]},-2);g.b(this,this.Y);this.S.Iy(this.Y,!0);this.N(this.Y.element,"click",function(){zZR(e,!1)});
this.zR(g.tW(F,this.tY))};
zZR=function(F,k){F.publish("settingChange",F.setting+"Override",!k);F.Sz.FZ()};
Ek=function(F,k){g.Gd.call(this,F,void 0,"Options");var z=this;this.Zn={};for(var x=0;x<g.Ca.length;x++){var D=g.Ca[x],e=new xRn(-x,F,k,D);g.b(this,e);e.subscribe("settingChange",this.rO,this);this.Zn[D.option.toString()]=e;this.Iy(e,!0)}F=new g.LY(g.fY(),-g.Ca.length,"Reset");g.b(this,F);F.listen("click",function(){z.rO("reset",!0)});
this.Iy(F,!0)};
XS=function(F,k){g.Hq.call(this,"Auto-translate",0,F,k);this.T=F;this.languages={};F.createClientVe(this.element,this,127301);F.logVisibility(this.element,!0)};
iqk=function(F,k){F.languages=g.qT(k,F.Y,F);F.zR(g.tW(k,F.Y))};
$Rn=function(F,k){var z=new Ek(F,k),x=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],D;g.f_(F.C())&&(D={X:"div",J:"ytp-panel-footer-content",Z:[{X:"span",jk:x[0]},{X:"a",J:"ytp-panel-footer-content-link",jk:"Settings",D:{href:"/account_playback"}},{X:"span",jk:x[1]}]});g.Hq.call(this,"Subtitles/CC",g.EA.SUBTITLES,F,k,"Options",function(){g.Z2(k,z)},D);
var e=this;this.T=F;this.Sz=k;this.tracks={};this.G=new g.KS(function(){DR6(e,!1)},3E3);
g.b(this,this.G);this.countLabel=new g.Y({X:"div",Z:[{X:"span",jk:"Subtitles/CC"},{X:"span",J:"ytp-menuitem-label-count",jk:"{{content}}"}]});g.b(this,this.countLabel);g.Ma(this,this.countLabel);F.V("web_settings_menu_icons")&&this.setIcon(kZR.includes("en")?{X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{X:"path",D:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z            M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z            M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",
fill:"white"}}]}:{X:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{X:"path",D:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.Y=new XS(F,k);g.b(this,this.Y);this.Y.subscribe("select",this.wy,this);this.S=z;g.b(this,this.S);this.S.subscribe("settingChange",this.rO,this);k.subscribe("show",this.yvp,this);this.N(F,"videodatachange",this.G4);this.N(F,"onApiChange",this.G4);this.N(F,"onCaptionsTrackListChanged",
this.G4);this.N(F,"captionschanged",this.G4);F.createClientVe(this.element,this,127300);this.G4()};
jJ6=function(F){return Object.values(F.tracks).find(function(k){return k.languageCode==="en"&&k.kind==="asr"})};
qI=function(F,k){F.T.setOption("captions","track",k)};
DR6=function(F,k){F.T.setOption("captions","sampleSubtitles",k)};
eZk=function(F){g.tr.call(this,F,"ytp-settings-menu");var k=this;this.tv=new g.Gd(this.T);this.Oj=this.settingsButton=null;this.isInitialized=this.ub=!1;g.b(this,this.tv);this.hide();g.Z2(this,this.tv);F.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(z){k.FA(z)});
this.N(F,"highlightSettingsMenu",function(){k.ub=!0;k.NR()});
this.N(F,"openSettingsMenuItem",function(z){if(z&&(k.ub=!0,k.NR(),z==="menu_item_video_quality_advanced")){var x;(x=k.Oj)==null||x.open()}})};
CCa=function(F,k){F.settingsButton=k;F.element.id=k.element.getAttribute("aria-controls")};
Aok=function(F,k){g.Y.call(this,{X:"button",WR:["ytp-subtitles-button","ytp-button"],D:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"4","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Z:[oiD()]});this.T=F;this.tooltip=k.aI();this.N(F,"videodatachange",this.G4);this.N(F,"appresize",this.G4);this.N(F,"promotooltipacceptbuttonclicked",this.N9U);this.N(F,"onApiChange",this.G4);this.N(F,"onCaptionsTrackListChanged",this.G4);this.N(F,"captionschanged",this.G4);
this.T.createClientVe(this.element,this,127299);this.G4();this.listen("click",this.onClick);this.addOnDisposeCallback(g.Bv(k.aI(),this.element))};
pGM=function(F){return g.Qt(F.T.iL())!=null?g.Qt(F.T.iL()).wF()?!!F.T.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
g.NI=function(F,k,z){z=z===void 0?350:z;g.Y.call(this,{X:"div",WR:["ytp-time-display","notranslate"],Z:[{X:"span",J:"ytp-time-wrapper",Z:[{X:"span",J:"ytp-time-clip-icon",jk:"{{clipicon}}",D:{"aria-label":"Clip"}},{X:"span",J:"ytp-time-current",jk:"{{currenttime}}"},{X:"span",J:"ytp-time-separator",jk:" / "},{X:"span",J:"ytp-time-duration",jk:"{{duration}}"}]},{X:"span",J:"ytp-clip-watch-full-video-button-separator",jk:"\u2022"},{X:"span",J:"ytp-clip-watch-full-video-button",jk:"{{watchfullvideo}}"}]});
var x=this;this.api=F;this.K=z;this.liveBadge=new g.Y({X:"button",WR:["ytp-live-badge","ytp-button"],D:{disabled:"true"},jk:"{{content}}"});this.Y=null;this.kh=this.L=!1;this.B=this.G=null;this.isPremiere=!1;this.S=this.j=null;this.U=!1;this.cj=null;this.Qh=this.EK("ytp-clip-watch-full-video-button");this.api.V("web_player_updated_entrypoint")&&g.XF(this.element,"ytp-xs-mono-button-style",!0);this.liveBadge.r3("Live");g.b(this,this.liveBadge);this.api.V("web_player_updated_entrypoint")||this.api.V("delhi_modern_web_player")?
this.liveBadge.T4(this.element.querySelector(".ytp-time-wrapper")):this.liveBadge.T4(this.element);this.tooltip=k.aI();this.liveBadge.listen("click",this.onClick.bind(this));this.api.V("delhi_modern_web_player")&&this.N(this.EK("ytp-time-current"),"click",this.yl4);this.N(this.Qh,"click",this.kM_);this.N(this.api,"serverstitchedvideochange",function(){E1R(x,x.api.getProgressState().isAtLiveHead)});
this.N(F,"presentingplayerstatechange",this.xj);this.N(F,"appresize",this.xj);this.N(F,"onLoopRangeChange",this.onLoopRangeChange);this.N(F,"videodatachange",this.onVideoDataChange);(k=F.getVideoData())&&this.updateVideoData(k);this.xj();XGH(this,F.getLoopRange())};
E1R=function(F,k){var z=F.liveBadge.element,x=F.api.isLifaAdPlaying();z.disabled=x||k;!uf(F)||F.B===k&&F.G===F.isPremiere||(F.B=k,F.G=F.isPremiere,F.xj(),k?z.classList.add("ytp-live-badge-is-livehead"):z.classList.remove("ytp-live-badge-is-livehead"),F.liveBadge.r3(F.isPremiere?"Premiere":"Live"),k?F.Y&&(F.Y(),F.Y=null,z.removeAttribute("title")):(z.title="Skip ahead to live broadcast.",F.Y=g.Bv(F.tooltip,F.liveBadge.element)))};
XGH=function(F,k){var z=F.cj!==k;F.cj=k;z&&qMa(F)};
qMa=function(F){F.updateValue("clipicon",{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},Z:[{X:"path",D:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]});
F.kh&&!F.L?F.updateValue("watchfullvideo","Watch live stream"):F.updateValue("watchfullvideo","Watch full video");g.XF(F.element,"ytp-clip",wb(F));g.XF(F.element,"ytp-live",uf(F))};
uf=function(F){var k=F.api.C().V("enable_linear_program_progress"),z=F.api.getPresentingPlayerType()===2;return F.kh&&!wb(F)&&(!k||!F.L)&&!z};
wb=function(F){return!!F.cj&&!!F.cj.postId&&F.api.getPresentingPlayerType()!==2&&(!F.cj.type||F.cj.type==="clips")};
u9H=function(F,k){g.Y.call(this,{X:"div",J:"ytp-volume-panel",D:{title:"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},Z:[{X:"div",J:"ytp-volume-slider",Z:[{X:"div",J:"ytp-volume-slider-handle"}]}]});var z=this;this.api=F;this.G=k;this.Qt=!1;this.K=this.volume=0;this.S=null;this.L=this.Y=this.isDragging=!1;this.G=k;this.U=F.DT();this.B=this.EK("ytp-volume-slider");this.Qh=this.EK("ytp-volume-slider-handle");
this.j=new g.bO(this.B,!0);g.b(this,this.j);this.j.subscribe("dragstart",this.xka,this);this.j.subscribe("dragmove",this.uU,this);this.j.subscribe("dragend",this.nPk,this);this.N(F,"onVolumeChange",this.onVolumeChange);this.N(F,"appresize",this.iP);this.N(F,"fullscreentoggled",this.GH);this.N(F,"onShowControls",this.z6);this.N(F,"onHideControls",this.z6);this.N(this.element,"keydown",this.Mf);this.N(this.element,"focus",function(){mj(z,z.Y,z.isDragging,!0,z.api.Qt())});
this.N(this.element,"blur",function(){mj(z,z.Y,z.isDragging,!1,z.api.Qt())});
this.iP(F.Ka().getPlayerSize());Njk(this,F.getVolume(),F.isMuted());GL(F,this.element,this)};
Njk=function(F,k,z){var x=Math.floor(k),D=x+"% volume"+(z?" muted":"");z=z?0:k/100;F.updateValue("valuenow",x);F.updateValue("valuetext",D);F.Qh.style.left=(F.U?60:40)*z+"px";F.volume=k};
mj=function(F,k,z,x,D){var e=F.Y||F.isDragging||F.L||F.Qt;F.Y=k;F.isDragging=z;F.L=x;F.Qt=D;k=F.Y||F.isDragging||F.L||F.Qt;e!==k&&(k?F.S=F.N(F.element,"wheel",F.Bm):(F.er(F.S),F.S=null),g.XF(F.G,"ytp-volume-slider-active",k))};
T5=function(F){var k=F.isMuted()?0:F.getVolume();Dl.call(this,0,100,1,k,void 0,!0);this.T=F;this.Qh=B4(this.PR,10,this);this.K=!1;this.N(F,"onVolumeChange",this.onVolumeChange);this.N(this.element,"keydown",this.U)};
wGM=function(F){g.Y.call(this,{X:"div",WR:["ytp-volume-popover"]});F=new T5(F);g.b(this,F);F.T4(this.element)};
mRI=function(F,k){F.element.classList.toggle("ytp-volume-popover-hovering",k)};
lf=function(F,k){var z=F.C(),x=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];z.U&&x.push("no-link");var D={title:"{{title}}",target:z.K,"data-priority":"5","data-sessionlink":"feature=player-button"};z.U||(D.href="{{url}}");g.Y.call(this,{X:"a",WR:x,D:D,jk:"{{logoSvg}}"});this.Y=null;this.api=F;this.visible=!1;z.U||(this.Y=this.listen("click",this.onClick));this.N(F,"videodatachange",this.onVideoDataChange);this.N(F,"videoplayerreset",this.onVideoDataChange);this.N(F,"onLoopRangeChange",
this.onVideoDataChange);this.N(F,"appresize",this.OH);this.onVideoDataChange();z.U||this.addOnDisposeCallback(g.Bv(k.aI(),this.element));this.OH()};
Tj5=function(F,k,z){g.yQ.call(this);var x=this;this.T=F;this.Xf=k;this.Oh=z;this.dH=NaN;this.t4=this.UH=this.playButton=this.W=this.G=this.u$=this.J4=this.PR=this.Qh=this.S=this.Y=this.kG=this.vR=null;this.U=new eZk(this.T);this.progressBar=new g.IF(this.T,this.Xf);this.yh=new g.NI(this.T,this.Xf);this.mp=new Vqa(this.T,this.Xf);this.K=new g.fS(this.p4,null,this);z=F.C();this.Oh.subscribe("autohideupdate",this.Fy,this);var D=!F.getPlayerStateObject().isCued(),e;F.C().V("html5_player_dynamic_bottom_gradient")?
this.kG=e=new vLn(F):e=new g.Y({X:"div",J:"ytp-gradient-bottom"});g.b(this,e);g.Hv(F,e.element,9);this.l$=new g.Cv(e,250,D,100);g.b(this,this.l$);this.j=new g.Y({X:"div",J:"ytp-chrome-bottom",Z:[{X:"div",J:"ytp-chrome-controls"}]});g.b(this,this.j);g.Hv(F,this.j.element,9);this.cR=new g.Cv(this.j,250,D,100);g.b(this,this.cR);this.RU=this.j.element.children[0];g.b(this,this.U);g.Hv(F,this.U.element,6);this.U.subscribe("show",function(p){x.T.k5(!p);F.xe(x.U,p)});
g.b(this,this.progressBar);this.progressBar.T4(this.j.element,0);D=new rO(F,k);g.b(this,D);g.Hv(F,D.element,4);D=new g.mi({X:"div",J:"ytp-left-controls"});g.b(this,D);D.T4(this.RU);F.V("delhi_modern_web_player")||(e=new g.vL(F,k,!1),g.b(this,e),e.T4(D.element));F.V("web_render_jump_buttons")&&(this.Qh=new BL(F,g.lw(F.C().experiments,"web_jump_button_backward_amount")||-10),g.b(this,this.Qh),this.Qh.T4(D.element));z.cR||(this.playButton=new g.Zp(F,k),g.b(this,this.playButton),this.playButton.T4(D.element));
F.V("web_render_jump_buttons")&&(this.PR=new BL(F,g.lw(F.C().experiments,"web_jump_button_forward_amount")||10),g.b(this,this.PR),this.PR.T4(D.element));F.V("delhi_modern_web_player_remove_nav_buttons")||(F.V("delhi_modern_web_player")&&(e=new g.vL(F,k,!1),g.b(this,e),e.T4(D.element)),e=new g.vL(F,k,!0),g.b(this,e),e.T4(D.element));if(!F.V("delhi_modern_web_player")&&(e=new g.Y({X:"span",J:"ytp-volume-area"}),g.b(this,e),e.T4(D.element),!z.fJ&&(this.Y=new tR(F,k),g.b(this,this.Y),this.Y.T4(e.element),
z.l$&&!z.B))){var C=new u9H(F,this.j.element);this.UH=C;g.b(this,C);C.T4(e.element);e=new g.bO(e.element);g.b(this,e);e.subscribe("hoverstart",function(){Q5(x,!0)});
e=new g.bO(D.element);g.b(this,e);e.subscribe("hoverend",function(){Q5(x,!1)})}g.b(this,this.yh);
this.yh.T4(D.element);this.J4=new sU(F,this.progressBar);g.b(this,this.J4);this.J4.T4(D.element);z.V("web_key_moments_markers")&&(this.u$=new G1(F,this.progressBar),g.b(this,this.u$),this.u$.T4(D.element));F.V("delhi_modern_web_player")?(this.L=new g.mi({X:"div",J:"ytp-right-controls",Z:[{X:"div",J:hh.RIGHT_CONTROLS_LEFT},{X:"div",J:hh.RIGHT_CONTROLS_RIGHT}]}),F.V("delhi_modern_web_player_right_controls_separate")&&g.C6(this.L.element,"ytp-right-controls-separate")):this.L=new g.mi({X:"div",J:"ytp-right-controls"});
g.b(this,this.L);this.L.T4(this.RU);F.V("delhi_modern_web_player")&&(this.Y=new tR(F,k),g.b(this,this.Y),this.Y.T4(this.L.EK(hh.RIGHT_CONTROLS_LEFT)),this.S=new wGM(F),this.S.element.style.bottom="40px",g.b(this,this.S),this.S.T4(this.L.EK(hh.RIGHT_CONTROLS_LEFT)),D=new g.bO(this.Y.element),g.b(this,D),D.subscribe("hoverstart",function(){Q5(x,!0)}),D=new g.bO(this.S.element),g.b(this,D),D.subscribe("hoverend",function(){Q5(x,!1)}));
this.NJ=new Aok(F,k);g.b(this,this.NJ);sk(this,this.NJ,"RIGHT_CONTROLS_LEFT");this.settingsButton=new ko(F,this.U);g.b(this,this.settingsButton);CCa(this.U,this.settingsButton);sk(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");D=F.getVideoData();if(z.w8||D.Mk&&z.controlsType==="1")this.G=new lf(F,k),g.b(this,this.G),this.G.T4(this.L.element);z.showMiniplayerButton&&(this.W=new UU(F),g.b(this,this.W),sk(this,this.W,"RIGHT_CONTROLS_RIGHT"));z.OF&&(k=new FS(F,this.U),g.b(this,k),sk(this,k,"RIGHT_CONTROLS_RIGHT"));
z.xf&&(k=new QV(F),g.b(this,k),sk(this,k,"RIGHT_CONTROLS_RIGHT"));g.b(this,this.mp);sk(this,this.mp,"RIGHT_CONTROLS_RIGHT");g.b(this,this.K);this.N(F,"appresize",this.OH);this.N(F,"fullscreentoggled",this.OH);this.N(F,"presentingplayerstatechange",this.lx);this.N(F,"videodatachange",this.onVideoDataChange);this.OH()};
Q5=function(F,k){F.T.V("delhi_modern_web_player")?mRI(F.S,k):(F=F.UH)!=null&&(g.XF(F.element,"ytp-volume-control-hover",k),mj(F,k,F.isDragging,F.L,F.api.Qt()))};
lyY=function(F,k){if(F.T.getPlayerStateObject().isCued()||k){if(k){F.cR.hide();F.l$.hide();F.Y&&F.Y.fN(!1);F.G&&F.G.fN(!1);F.W&&F.W.fN(!1);if(F.T.V("embeds_use_parent_visibility_in_ve_logging")){var z;(z=F.mp)==null||z.fN(!1);var x;(x=F.settingsButton)==null||x.fN(!1);var D;(D=F.playButton)==null||D.fN(!1)}F.T.fd(F.T$())}}else if(!k){F.cR.show();F.l$.show();F.Y&&F.Y.fN(!0);F.G&&F.G.fN(!0);F.W&&F.W.fN(!0);if(F.T.V("embeds_use_parent_visibility_in_ve_logging")){var e;(e=F.mp)==null||e.fN(!0);var C;
(C=F.NJ)==null||C.fN(!0);var p;(p=F.playButton)==null||p.fN(!0)}F.Fy()}};
hZI=function(F){var k=F.T.Ka().getPlayerSize().width;return Math.max(k-QJC(F)*2,100)};
QJC=function(F){var k=F.T.DT(),z=F.T.getVideoData().Mk,x=0;F.T.DT()&&F.T.isEmbedsShortsMode()&&(x=(F.T.Ka().getPlayerSize().width-F.T.getVideoContentRect().width)/2);return 12*(z?0:k?2:1)+x};
sJx=function(F){var k=F.T.DT()?72:50;F=F.T.C();g.f_(F)&&(k=F.V("delhi_modern_web_player")?78:62,g.Vq(F)&&(k=54));return k};
sk=function(F,k,z){F.T.V("delhi_modern_web_player")?k.T4(F.L.EK(hh[z])):k.T4(F.L.element)};
roI=function(F){r1.call(this,F,!1);var k=this;this.suggestedActions={};this.N(this.T,"videodatachange",this.onVideoDataChange);this.N(this.T,g.X$("suggested_action_button_visible"),function(z){z=z.id;k.text=z;lpY(k);k.onClickCommand=k.suggestedActions[z];k.enabled=!0;k.FA()});
this.N(this.T,g.qQ("suggested_action_button_visible"),function(z){k.enabled=!1;k.FA();k.T.removeCueRange(z.id)})};
BjH=function(F){F.suggestedActions={};F.T.H7("suggested_action_button_visible")};
BX=function(F){g.Y.call(this,{X:"div",J:rb.TITLE,Z:[{X:"div",J:rb.TEXT,Z:[{X:"a",WR:[rb.LINK,rb.SESSIONLINK],D:{target:F.C().K,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},jk:"{{title}}"},{X:"div",J:rb.SUBTEXT,Z:["{{subtextElement}}"]}]}]});this.api=F;this.Y=null;this.link=this.EK(rb.LINK);F.createClientVe(this.element,this,23851);this.N(F,"videodatachange",this.G4);this.N(F,"videoplayerreset",this.G4);this.G4()};
GKk=function(F){F.updateValue("channelLink","");F.updateValue("channelName","");g.Vq(F.api.C())?F.updateValue("channelTitleFocusable","0"):F.updateValue("channelTitleFocusable","-1")};
g.Uk=function(F,k){g.Y.call(this,{X:"div",Z:[{X:"div",J:"ytp-tooltip-text-wrapper",D:{"aria-hidden":"{{ariaHidden}}"},Z:[{X:"div",J:"ytp-tooltip-edu",Z:[{X:"svg",D:{height:"100%",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",D:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{X:"span",jk:"{{eduText}}"}]},{X:"div",J:"ytp-tooltip-image"},{X:"div",J:"ytp-tooltip-title",Z:[{X:"span",jk:"{{title}}"},{X:"div",J:"ytp-tooltip-keyboard-shortcut",
jk:"{{keyBoardShortcutTitle}}"}]},{X:"div",J:"ytp-tooltip-bottom-text",Z:[{X:"span",J:"ytp-tooltip-text",jk:"{{text}}"},{X:"div",J:"ytp-tooltip-keyboard-shortcut",jk:"{{keyBoardShortcut}}"}]}]},{X:"div",J:"ytp-tooltip-bg",Z:[{X:"div",J:"ytp-tooltip-duration",jk:"{{duration}}"}]}]});var z=this;this.api=F;this.yh=k;this.B=function(x){(x=x.relatedTarget)&&g.N_(z.Y,x)||z.Wl()};
this.Xf=function(x){G5(z,x)};
this.K=function(){z.Wl()};
this.type=this.Y=null;this.G=!1;this.L=null;this.U="";this.S=!0;this.scale=1;this.env=this.api.C();this.t4=this.env.L;this.wrapper=this.EK("ytp-tooltip-text-wrapper");this.bg=this.EK("ytp-tooltip-bg");this.mp=this.EK("ytp-tooltip-edu");this.image=this.EK("ytp-tooltip-image");this.text=this.EK("ytp-tooltip-text");this.bottomText=this.EK("ytp-tooltip-bottom-text");this.title=this.EK("ytp-tooltip-title");this.fade=new g.Cv(this,100);this.j=NaN;this.EU=this.api.Ka().getPlayerSize().width;this.Qh=new g.KS(this.tza,
250,this);this.PR=new g.KS(this.Wl,5E3,this);g.b(this,this.fade);g.b(this,this.Qh);g.b(this,this.PR);rw&&(F=this.EK("ytp-tooltip-text"),F.setAttribute("role","text"),F.setAttribute("aria-live","polite"))};
g.Bv=function(F,k,z){if(F.t4)return function(){};
k.addEventListener("mouseover",function(D){G5(F,D,z)});
k.addEventListener("focus",function(D){G5(F,D,z)});
var x=k.getAttribute("title");x&&!k.hasAttribute("aria-label")&&k.setAttribute("aria-label",x);return function(){F.Y===k&&F.Wl();k.removeEventListener("mouseover",function(D){G5(F,D,z)});
k.removeEventListener("focus",function(D){G5(F,D,z)})}};
G5=function(F,k,z){F.type===3&&F.Wl();(k=k.currentTarget)&&k.nodeType===1&&!F.type&&(k.removeEventListener("mouseover",function(x){G5(F,x,z)}),k.addEventListener("mouseout",F.B),k.removeEventListener("focus",function(x){G5(F,x,z)}),k.addEventListener("blur",F.B),UR6(F,k,2,void 0,z))};
UR6=function(F,k,z,x,D){if(k&&!k.hasAttribute)F=new g.Fa("showElementTooltip called with non-element.",k.toString()),g.JV(F);else{isNaN(F.j)||(F.j=NaN,F.bg.style.background="");F.Y=k;F.G=!!x;x?F.U=x:(F.U=k.getAttribute("title"),k.removeAttribute("title"));g.jd(F.element,"ytp-tooltip");var e=k.getAttribute("data-tooltip-image");e&&(F.image.style.backgroundImage="url("+e+")");x?F.update({ariaHidden:"false"}):F.update({ariaHidden:"true"});g.XF(F.element,"ytp-tooltip-image-enabled",!!e);k=k.getAttribute("data-tooltip-opaque");
g.XF(F.element,"ytp-tooltip-opaque",!!k);F.type=z;F.api.addEventListener("appresize",F.K);F.S&&(te6(F,D),F.fade.show(0))}};
te6=function(F,k){if(F.Y){var z=F.Y.getAttribute("data-tooltip-text");if(F.U&&F.Y.getAttribute("aria-label")!==F.U)var x=F.U;var D=F.Y.getAttribute("aria-keyshortcuts"),e=F.Y.getAttribute("data-title-no-tooltip");D&&e&&(x=g.rG("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:e,SHORTCUT_KEY:D}));x&&F.Y.setAttribute("aria-label",x);if(z&&!F.G){var C=F.Y;F.updateValue("text",z);x=C.getAttribute("data-duration");F.update({title:F.U,duration:x});C=C.getAttribute("data-preview");F.env.V("delhi_modern_web_player")&&
(F.updateValue("title",e),F.updateValue("keyBoardShortcutTitle",D.toUpperCase()));D=243*F.scale;e=141*F.scale;F.bg.style.width=D+"px";F.bg.style.height=e+"px";F.bg.style.backgroundImage=C?"url("+C+")":"";F.bg.style.backgroundSize=D+"px "+e+"px";F.wrapper.style.width=D+"px";g.AF(F.element,["ytp-text-detail","ytp-preview"]);g.XF(F.element,"ytp-has-duration",!!x)}else F.updateValue("text",F.U),D&&F.env.V("delhi_modern_web_player")&&(F.updateValue("text",e),F.updateValue("keyBoardShortcut",D.toUpperCase())),
g.EW(F.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);Zqn(F,!!z,void 0,k)}};
Zqn=function(F,k,z,x){var D=Math.min(F.EU,300*F.scale);F.element.style.maxWidth=k?"":D+"px";F.yh.Bv(F.element,F.Y,z,F.type===1,x);F.element.style.top?g.C6(F.element,"ytp-bottom"):F.element.style.bottom&&g.C6(F.element,"ytp-top");F.type===3&&F.PR.start()};
v1n=function(F,k){g.XF(F.element,"ytp-preview",k>=0);if(!(k<0||k===F.j)){F.j=k;k=243*F.scale;var z=141*F.scale,x=DZ5(F.L,F.j,k);cNp(F.bg,x,k,z,!0);F.Qh.start()}};
co6=function(F){var k=F.Y;F.type===3&&F.PR.stop();F.api.removeEventListener("appresize",F.K);F.G||k.setAttribute("title",F.U);F.U="";F.Y=null;F.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});F.wrapper.style.width=""};
OqD=function(F){g.Y.call(this,{X:"button",WR:["ytp-watch-later-button","ytp-button"],D:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.tJ(F.C()))},Z:[{X:"div",J:"ytp-watch-later-icon",jk:"{{icon}}"},{X:"div",J:"ytp-watch-later-title",jk:"Watch later"}]});this.T=F;this.icon=null;this.visible=this.isRequestPending=this.Y=!1;In5(F);F.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.N(F,"videoplayerreset",this.onReset);this.N(F,"appresize",
this.X5);this.N(F,"videodatachange",this.X5);this.N(F,"presentingplayerstatechange",this.X5);this.X5();F=this.T.C();var k=g.bn("yt-player-watch-later-pending");F.j&&k?(OEI(),PCY(this)):this.G4(2);g.XF(this.element,"ytp-show-watch-later-title",g.tJ(F));GL(this.T,this.element,this)};
VeC=function(F){var k=F.T.getPlayerSize(),z=F.T.C(),x=F.T.getVideoData(),D=g.tJ(z)&&g.Pv(F.T)&&g.n(F.T.getPlayerStateObject(),128),e=z.U;return z.xY&&k.width>=240&&!x.isAd()&&x.xY&&!D&&!g.xp(x)&&!F.T.isEmbedsShortsMode()&&!e};
IyC=function(F,k){z3k(g.gw(F.T.C()),"wl_button",function(){OEI({videoId:k});window.location.reload()})};
PCY=function(F){if(!F.isRequestPending){F.isRequestPending=!0;F.G4(3);var k=F.T.getVideoData();k=F.Y?k.removeFromWatchLaterCommand:k.addToWatchLaterCommand;var z=F.T.Bl(),x=F.Y?function(){F.Y=!1;F.isRequestPending=!1;F.G4(2);F.T.C().G&&F.T.ZQ("WATCH_LATER_VIDEO_REMOVED")}:function(){F.Y=!0;
F.isRequestPending=!1;F.G4(1);F.T.C().L&&F.T.Kl(F.element);F.T.C().G&&F.T.ZQ("WATCH_LATER_VIDEO_ADDED")};
k_(z,k).then(x,function(){F.isRequestPending=!1;F.G4(4,"An error occurred. Please try again later.");F.T.C().G&&F.T.ZQ("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}};
Hqx=function(F,k){if(k!==F.icon){switch(k){case 3:var z=Aq();break;case 1:z=Gm();break;case 2:z={X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{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:z={X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",
Qz:!0,D:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}F.updateValue("icon",z);F.icon=k}};
g.th=function(){g.bp.apply(this,arguments);this.m5=(this.xr=g.tJ(this.api.C()))&&(this.api.C().L||Du()||z_());this.cG=48;this.gW=69;this.VE=this.Hl=null;this.s7=[];this.Ev=this.Ro=this.Xx=this.hT=this.N5=null;this.Sn=[];this.contextMenu=this.pp=this.overflowButton=this.n$=this.Wc=this.searchButton=this.copyLinkButton=this.shareButton=this.dV=this.Ez=this.title=this.channelAvatar=this.lz=this.tooltip=null;this.Up=!1;this.Fo=this.Yb=this.L5=this.UX=null;this.IJ=this.W_=this.RW=!1};
ay6=function(F){var k=F.api.C(),z=g.n(F.api.getPlayerStateObject(),128);return k.j&&z&&!F.api.isFullscreen()};
SMn=function(F){if(F.hH()&&!F.api.isEmbedsShortsMode()&&F.n$){var k=F.api.V("web_player_hide_overflow_button_if_empty_menu");!F.dV||k&&!VeC(F.dV)||z9x(F.n$,F.dV);!F.shareButton||k&&!ELx(F.shareButton)||z9x(F.n$,F.shareButton);!F.copyLinkButton||k&&!w5n(F.copyLinkButton)||z9x(F.n$,F.copyLinkButton)}else{if(F.n$){k=F.n$;for(var z=g.l(k.actionButtons),x=z.next();!x.done;x=z.next())x.value.detach();k.actionButtons=[]}F.searchButton&&!g.N_(F.Ez.element,F.searchButton.element)&&F.searchButton.T4(F.Ez.element);
F.dV&&!g.N_(F.Ez.element,F.dV.element)&&F.dV.T4(F.Ez.element);F.shareButton&&!g.N_(F.Ez.element,F.shareButton.element)&&F.shareButton.T4(F.Ez.element);F.copyLinkButton&&!g.N_(F.Ez.element,F.copyLinkButton.element)&&F.copyLinkButton.T4(F.Ez.element)}};
bqH=function(F,k,z){k=z?k.lastElementChild:k.firstElementChild;for(var x=null;k;){if(uU(k,"display")!=="none"&&k.getAttribute("aria-hidden")!=="true"){var D=void 0;k.tabIndex>=0?D=k:D=bqH(F,k,z);D&&(x?z?D.tabIndex>x.tabIndex&&(x=D):D.tabIndex<x.tabIndex&&(x=D):x=D)}k=z?k.previousElementSibling:k.nextElementSibling}return x};
dRR=function(F,k,z){if(F.api.V("web_player_nitrate_promo_tooltip")&&F.api.getPresentingPlayerType(!0)!==2){var x=F.api.getVideoData(1);if(x==null?0:x.tooltipRenderer){x=x.tooltipRenderer;var D;if(D=!F.Fo){if(!(k=!k)){var e,C,p;k=((e=x.tooltipDisplayStrategy)==null?void 0:e.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((C=x.promoConfig)==null?void 0:C.promoId)!=="dtip-edu-player-iseecaptions"&&((p=x.promoConfig)==null?void 0:p.promoId)!=="dtip-edu-player-tc-m2"}D=k}D&&(F.Fo=new $S5(x,F.api),
g.b(F,F.Fo),g.Hv(F.api,F.Fo.element,9));var E;(E=F.Fo)==null||AN5(E,x,z)}}};
g.Zl=function(F){g.XP.call(this,F);this.chrome=null;this.load()};
JoM=function(){for(var F=vX.length;F<4;F++){var k=g.Ci("VIDEO");k.load();vX.push(new g.MC(k))}};
yok=function(F,k,z,x){var D=z.getVideoData(),e=k.getVideoData();if(z.getPlayerState().isError())return{msg:"player-error"};var C=e.U;if(k.P8()>x/1E3+1)return{msg:"in-the-past"};if(e.isLivePlayback&&!isFinite(x))return{msg:"live-infinite"};(x=k.S9())&&x.isView()&&(x=x.mediaElement);if(x&&x.lh().length>12&&g.me(D))return{msg:"played-ranges"};if(!D.U)return null;if(!C)return{msg:"no-pvd-formats"};if(!D.U.Y||!C.Y)return{msg:"non-dash"};x=C.videoInfos[0];var p=D.U.videoInfos[0];F.G&&xJ(e)&&(x=k.xv(),p=
z.xv());if(!x||!p)return{msg:"no-video-info"};if(F.U&&(oD(x)||oD(p)))return{msg:"av1"};k=F.Y&&e.wI()&&Mi();if(p.containerType!==x.containerType)if(k)e.UK("sgap",{ierr:"container"});else return{msg:"container"};if(F.L&&!k&&(p.DQ!==x.DQ||p.DQ===""||x.DQ===""))return{msg:"codec"};if(F.j&&p.video&&x.video&&Math.abs(p.video.width/p.video.height-x.video.width/x.video.height)>.01)return{msg:"ratio"};if(g.me(e)&&g.me(D))return{msg:"content-protection"};C=C.Y[0];D=D.U.Y[0];z=C.audio;var E=D.audio;if(z.sampleRate!==
E.sampleRate&&!g.SD)if(k)e.UK("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:C.itag,cr:z.sampleRate,ni:D.itag,nr:E.sampleRate};return(z.numChannels||2)!==(E.numChannels||2)?{msg:"channel-count"}:F.W&&e.wI()&&x.video.fps!==p.video.fps?{msg:"fps"}:null};
RZx=function(F,k,z){var x=F.getVideoData(),D=k.getVideoData();if(!x.C().supportsGaplessShorts())return{nq:"env"};if(z.S){if(x.k9&&!x.isAd()||D.k9&&!D.isAd())return{nq:"autoplay"}}else if(x.k9||D.k9)return{nq:"autoplay"};if(!x.B)return{nq:"client"};if(!F.gi())return{nq:"no-empty"};F=yok(z,F,k,Infinity);return F!=null?{nq:F.msg}:null};
cX=function(F){g.S.call(this);this.app=F;this.W=this.j=this.L=this.Y=null;this.U=1;this.events=new g.yQ(this);this.events.N(this.app.Vh,g.qQ("gaplessshortslooprange"),this.B);g.b(this,this.events)};
g1M=function(){this.j=this.S=this.U=this.G=this.W=this.L=this.Y=!1};
YMD=function(F){var k=new g1M;k.Y=F.V("h5_gapless_support_types_diff");k.W=F.V("h5_gapless_error_on_fps_diff");k.G=F.V("html5_gapless_use_format_info_fix");k.U=F.V("html5_gapless_disable_on_av1")&&!F.V("html5_gapless_enable_on_av1");k.L=F.V("html5_gapless_check_codec_diff_strictly");k.S=F.V("html5_gapless_on_ad_autoplay");k.j=F.V("html5_gapless_disable_diff_aspect_radio");return k};
g.PX=function(F,k,z,x){x=x===void 0?!1:x;iN.call(this);this.mediaElement=F;this.start=k;this.end=z;this.Y=x};
n16=function(F,k,z,x,D,e){e=e===void 0?0:e;g.S.call(this);var C=this;this.policy=F;this.Y=k;this.L=z;this.GD=D;this.W=e;this.j=this.U=null;this.currentVideoDuration=this.S=-1;this.G=!1;this.IV=new xh;this.Gy=x-k.Hj()*1E3;this.IV.then(void 0,function(){});
this.timeout=new g.KS(function(){C.iG("timeout")},1E4);
g.b(this,this.timeout);this.B=isFinite(x)||this.GD.C().experiments.Ca("html5_pseudogapless_shorts")&&xJ(k.getVideoData());this.status={status:0,error:null}};
fyH=function(F){var k,z,x,D,e,C,p,E,X,q;return g.O(function(N){if(N.Y==1){if(F.z4())return N.return(Promise.reject(Error(F.status.error||"disposed")));F.timeout.start();k=g.Ok.Fi();return g.c(N,F.IV,2)}g.Ok.wX("gtfta",k);z=F.Y.S9();if(z.isEnded())return F.iG("ended_in_finishTransition"),N.return(Promise.reject(Error(F.status.error||"")));if(!F.j||!Km(F.j))return F.iG("next_mse_closed"),N.return(Promise.reject(Error(F.status.error||"")));if(F.L.MV()!==F.j)return F.iG("next_mse_mismatch"),N.return(Promise.reject(Error(F.status.error||
"")));x=MeH(F);D=x.PE;e=x.pZ;C=x.Uk;F.Y.VL(!1,!0);p=Lk5(z,D,C,!F.L.getVideoData().isAd());F.L.setMediaElement(p);(E=F.Y.TC())&&F.L.nB(E.x0,E.Vu);F.B&&(F.L.seekTo(F.L.getCurrentTime()+.001,{AT:!0,FN:3,Sr:"gapless_pseudo"}),p.play(),IS());X=z.rH();X.cpn=F.Y.getVideoData().clientPlaybackNonce;X.st=""+D;X.et=""+C;F.L.UK("gapless",X);F.Y.UK("gaplessTo",{cpn:F.L.getVideoData().clientPlaybackNonce});q=F.Y.getPlayerType()===F.L.getPlayerType();F.Y.eS(e,!0,!1,q,F.L.getVideoData().clientPlaybackNonce);F.L.eS(F.L.getCurrentTime(),
!0,!0,q,F.Y.getVideoData().clientPlaybackNonce);g.lh(function(){!F.L.getVideoData().mp&&F.L.getPlayerState().isOrWillBePlaying()&&F.L.nh()});
V5(F,6);F.dispose();return N.return(Promise.resolve())})};
kwC=function(F){if(F.L.getVideoData().U){var k=F.GD.C().V("html5_gapless_suspend_next_loader")&&F.W===1;F.L.k0(F.j,k,Kkn(F));V5(F,3);Wkk(F);var z=FoD(F);k=z.Ac;z=z.VT;k.subscribe("updateend",F.K1,F);z.subscribe("updateend",F.K1,F);F.K1(k);F.K1(z)}};
Wkk=function(F){F.Y.unsubscribe("internalvideodatachange",F.r8,F);F.L.unsubscribe("internalvideodatachange",F.r8,F);F.GD.C().V("html5_gapless_use_format_info_fix")&&(F.Y.unsubscribe("internalvideoformatchange",F.r8,F),F.L.unsubscribe("internalvideoformatchange",F.r8,F));F.Y.unsubscribe("mediasourceattached",F.r8,F);F.L.unsubscribe("statechange",F.m7,F)};
Lk5=function(F,k,z,x){F=F.isView()?F.mediaElement:F;return new g.PX(F,k,z,x)};
V5=function(F,k){k<=F.status.status||(F.status={status:k,error:null},k===5&&F.IV.resolve())};
Kkn=function(F){return F.GD.C().V("html5_gapless_no_clear_buffer_timeline")&&F.W===1&&$J(F.Y.getVideoData())};
MeH=function(F){var k=F.Y.S9();k=k.isView()?k.start:0;var z=F.Y.getVideoData().isLivePlayback?Infinity:F.Y.Sg(!0);z=Math.min(F.Gy/1E3,z)+k;var x=F.B?100:0;F=z-F.L.P8()+x;return{JM:k,PE:F,pZ:z,Uk:Infinity}};
FoD=function(F){return{Ac:F.U.Y.U3,VT:F.U.L.U3}};
Ig=function(F){g.S.call(this);var k=this;this.app=F;this.W=this.L=this.Y=null;this.B=!1;this.U=this.j=null;this.G=YMD(this.app.C());this.S=function(){g.lh(function(){oqM(k)})}};
zqC=function(F,k,z,x,D){x=x===void 0?0:x;D=D===void 0?0:D;F.gi()||HX(F);F.j=new xh;F.Y=k;var e=z,C=D===0;C=C===void 0?!0:C;var p=F.app.A4(),E=p.getVideoData().isLivePlayback?Infinity:p.Sg(!0)*1E3;e>E&&(e=E-200,F.B=!0);C&&p.getCurrentTime()>=e/1E3?F.S():(F.L=p,C&&(C=e,e=F.L,F.app.Vh.addEventListener(g.X$("vqueued"),F.S),C=isFinite(C)||C/1E3>e.getDuration()?C:0x8000000000000,F.W=new g.ps(C,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(F.W)));C=x/=1E3;e=k.getVideoData().Y;x&&e&&F.L&&(p=x,E=0,
k.getVideoData().isLivePlayback&&(C=Math.min(z/1E3,F.L.Sg(!0)),E=Math.max(0,C-F.L.getCurrentTime()),p=Math.min(x,k.Sg()+E)),C=DjY(e,p)||x,C!==x&&F.Y.UK("qvaln",{st:x,at:C,rm:E,ct:p}));k=C;x=F.Y;x.getVideoData().ZR=!0;x.getVideoData().B=!0;x.cn(!0);e={};F.L&&(e=F.L.uJ(),C=F.L.getVideoData().clientPlaybackNonce,e={crt:(e*1E3).toFixed(),cpn:C});x.UK("queued",e);k!==0&&x.seekTo(k+.01,{AT:!0,FN:3,Sr:"videoqueuer_queued"});F.U=new n16(F.G,F.app.A4(),F.Y,z,F.app,D);z=F.U;z.status.status!==Infinity&&(V5(z,
1),z.Y.subscribe("internalvideodatachange",z.r8,z),z.L.subscribe("internalvideodatachange",z.r8,z),z.GD.C().V("html5_gapless_use_format_info_fix")&&(z.Y.subscribe("internalvideoformatchange",z.r8,z),z.L.subscribe("internalvideoformatchange",z.r8,z)),z.Y.subscribe("mediasourceattached",z.r8,z),z.L.subscribe("statechange",z.m7,z),z.Y.subscribe("newelementrequired",z.lZ,z),z.r8());return F.j};
oqM=function(F){var k,z,x,D,e,C,p,E,X;g.O(function(q){switch(q.Y){case 1:if(F.z4()||!F.j||!F.Y)return q.return();F.B&&F.app.A4().oa(!0,!1);z=F.app.C().V("html5_force_csdai_gapful_transition")&&((k=F.app.A4())==null?void 0:k.getVideoData().isDaiEnabled());x=null;if(!F.U||z){q.Sk(2);break}g.lD(q,3);return g.c(q,fyH(F.U),5);case 5:g.sC(q,2);break;case 3:x=D=g.rI(q);case 2:if(!F.Y)return q.return();g.Ok.SS("vqsp",function(){F.app.Tl(F.Y)});
if(!F.Y)return q.return();e=F.Y.S9();F.app.C().V("html5_gapless_seek_on_negative_time")&&e&&e.getCurrentTime()<-.01&&F.Y.seekTo(0);g.Ok.SS("vqpv",function(){F.app.playVideo()});
if(x||z)F.Y?(C=x?x.message:"forced",(p=F.L)==null||p.UK("gapfulfbk",{r:C}),F.Y.KH(C)):(E=F.L)==null||E.UK("gapsp",{});X=F.j;HX(F);X&&X.resolve();return q.return(Promise.resolve())}})};
HX=function(F,k){k=k===void 0?!1:k;if(F.L){if(F.W){var z=F.L;F.app.Vh.removeEventListener(g.X$("vqueued"),F.S);z.removeCueRange(F.W)}F.L=null;F.W=null}F.U&&(F.U.status.status!==6&&(z=F.U,z.status.status!==Infinity&&z.W!==1&&z.iG("Canceled")),F.U=null);F.j=null;F.Y&&!k&&F.Y!==F.app.Pj()&&F.Y!==F.app.A4()&&F.Y.dispose();F.Y&&k&&F.Y.ew();F.Y=null;F.B=!1};
xVn=function(F){var k;return((k=F.U)==null?void 0:k.currentVideoDuration)||-1};
iOM=function(F,k,z){if(F.gi())return"qie";if(F.Y==null||F.Y.z4()||F.Y.getVideoData()==null)return"qpd";if(k.videoId!==F.Y.xP())return"vinm";if(xVn(F)<=0)return"ivd";if(z!==1)return"upt";if((z=F.U)==null)F=void 0;else if(z.getStatus().status!==5)F="niss";else if(yok(z.policy,z.Y,z.L,z.Gy)!=null)F="pge";else{k=FoD(z);F=k.Ac;var x=k.VT;k=g.lw(z.GD.C().experiments,"html5_shorts_gapless_next_buffer_in_seconds");z=z.S+k;x=Ni(x.Kv(),z);F=Ni(F.Kv(),z);F=!(k>0)||x&&F?null:"neb"}return F!=null?F:null};
DV9=function(){g.uG.call(this);var F=this;this.fullscreen=0;this.j=this.U=this.pictureInPicture=this.Y=this.L=this.inline=!1;this.W=function(){F.FA()};
iAC(this.W);this.S=this.getVisibilityState(this.Pc(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.NB(),this.x8(),this.Hd(),this.MX())};
e6=function(F){return!(F.isMinimized()||F.isInline()||F.isBackground()||F.NB()||F.x8()||F.Hd()||F.MX())};
g.ag=function(F){g.S.call(this);this.YG=F;this.videoData=this.playerState=null};
g.Sh=function(F,k){g.S.call(this);this.U={};this.D_=this.W=null;this.L=this.Y=new g.ag(F);this.j=k};
ApR=function(F){var k=F.experiments,z=k.Ca.bind(k);$Va=z("html5_use_async_stopVideo");jfC=z("html5_pause_for_async_stopVideo");eqM=z("html5_not_reset_media_source");z("html5_listen_for_audio_output_changed")&&(PHR=!0);WH=z("html5_not_reset_media_source");C5I=z("html5_not_reset_media_source");QH=z("html5_retain_source_buffer_appends_for_debugging");Mf9=z("web_watch_pip");z("html5_mediastream_applies_timestamp_offset")&&(Bg=!0);var x=g.lw(k,"html5_cobalt_override_quic");x&&Xp("QUIC",+(x>0));(x=g.lw(k,
"html5_cobalt_audio_write_ahead_ms"))&&Xp("Media.AudioWriteDurationLocal",x);(x=z("html5_cobalt_enable_decode_to_texture"))&&Xp("Media.PlayerConfiguration.DecodeToTexturePreferred",x?1:0);(F.Jp()||z("html5_log_cpu_info"))&&oOD();Error.stackTraceLimit=50;var D=g.lw(k,"html5_idle_rate_limit_ms");D&&Object.defineProperty(window,"requestIdleCallback",{value:function(e){return window.setTimeout(e,D)}});
UjC(F.W);cr=z("html5_use_ump_request_slicer");TM5=z("html5_record_now");z("html5_disable_streaming_xhr")&&(kH=!1);z("html5_byterate_constraints")&&(E_=!0);z("html5_use_non_active_broadcast_for_post_live")&&(kl=!0);z("html5_sunset_aac_high_codec_family")&&(fP["141"]="a");z("html5_enable_encrypted_av1")&&(kb=!0);ZEM(g.lw(F.experiments,"html5_sticky_duration_mos"))};
p_I=function(F){return F.slice(12).replace(/_[a-z]/g,function(k){return k.toUpperCase().replace("_","")}).replace("Dot",".")};
Eqx=function(F){var k={},z;for(z in F.experiments.flags)if(z.startsWith("cobalt_h5vcc")){var x=p_I(z),D=g.lw(F.experiments,z);x&&D&&(k[x]=Xp(x,D))}return k};
bf=function(F,k,z,x,D){D=D===void 0?[]:D;g.S.call(this);this.YG=F;this.G$=k;this.j=z;this.segments=D;this.Y=void 0;this.L=new Map;D.length&&(this.Y=D[0])};
X_n=function(F){if(!(F.segments.length<2)){var k=F.segments.shift();if(k){var z=k.Y,x=[];if(z.size){z=g.l(z.values());for(var D=z.next();!D.done;D=z.next()){D=g.l(D.value);for(var e=D.next();!e.done;e=D.next()){e=e.value;for(var C=g.l(e.segments),p=C.next();!p.done;p=C.next())(p=db(p.value))&&x.push(p);e.removeAll()}}}(z=db(k))&&x.push(z);x=g.l(x);for(z=x.next();!z.done;z=x.next())F.L.delete(z.value);k.dispose()}}};
Jh=function(F,k,z,x){if(!F.Y||k>z)return!1;k=new bf(F.YG,k,z,F.Y,x);x=g.l(x);for(z=x.next();!z.done;z=x.next()){z=z.value;var D=db(z);D&&D!==db(F.Y)&&F.L.set(D,[z])}F=F.Y;F.Y.has(k.lc())?F.Y.get(k.lc()).push(k):F.Y.set(k.lc(),[k]);return!0};
gS=function(F,k){return F.L.get(k)};
qb5=function(F,k,z){F.L.set(k,z)};
y5=function(F,k,z,x,D,e){return new Nrx(z,z+(x||0),!x,k,F,D,e)};
Nrx=function(F,k,z,x,D,e,C){g.S.call(this);this.G$=F;this.U=k;this.L=z;this.type=x;this.j=D;this.videoData=e;this.Hk=C;this.Y=new Map;ry(e)};
db=function(F){return F.videoData.clientPlaybackNonce};
uy9=function(F){if(F.Y.size)for(var k=g.l(F.Y.values()),z=k.next();!z.done;z=k.next()){z=g.l(z.value);for(var x=z.next();!x.done;x=z.next())x.value.dispose()}F.Y.clear()};
w_a=function(F){this.end=this.start=F};
g.Rg=function(){this.Y=new Map;this.U=new Map;this.L=new Map};
g.gb=function(F,k,z,x){g.S.call(this);var D=this;this.api=F;this.YG=k;this.playback=z;this.app=x;this.cR=new g.Rg;this.L=new Map;this.S=[];this.W=[];this.j=new Map;this.MD=new Map;this.G=new Map;this.u$=null;this.uL=NaN;this.Xm=this.RS=null;this.qD=new g.KS(function(){mVn(D,D.uL,D.RS||void 0)});
this.events=new g.yQ(this);this.UH=15E3;this.Xf=new g.KS(function(){D.yh=!0;D.playback.XH(D.UH);TrC(D);if(D.playback.getVideoData().w3()){var e;D.LN({togab:(e=D.PR)==null?void 0:e.identifier})}D.gJ(!1)},this.UH);
this.yh=!1;this.K=new Map;this.vR=[];this.PR=null;this.mY=new Set;this.l$=[];this.vj=[];this.yf=[];this.fJ=[];this.Y=void 0;this.mp=0;this.RU=!0;this.B=!1;this.J4=[];this.kG=new Set;this.P7=new Set;this.ZR=new Set;this.Iz=0;this.NJ=new Set;this.Vz=0;this.uf=this.We=!1;this.tp=this.U="";this.t4=null;this.logger=new g.C4("dai");this.Pe={RB4:function(){return D.L},
DoG:function(){return D.S},
fv4:function(){return D.j},
wT$:function(){return D.U},
Ys:function(e){D.onCueRangeEnter(D.L.get(e))},
nyK:function(e){D.onCueRangeExit(D.L.get(e))},
Dwk:function(e,C){D.L.set(e,C)},
Oc4:function(e){D.tp=e},
F8:function(){return D.F8()},
A3h:function(e){return D.G.get(e)},
NMk:function(){return D.t4}};
this.playback.getPlayerType();this.playback.Do(this);this.dH=this.YG.Jp();g.b(this,this.qD);g.b(this,this.events);g.b(this,this.Xf);this.events.N(this.api,g.X$("serverstitchedcuerange"),this.onCueRangeEnter);this.events.N(this.api,g.qQ("serverstitchedcuerange"),this.onCueRangeExit)};
sfY=function(F,k,z,x,D,e,C,p,E){if(F.YG.V("html5_ignore_ads_after_noadresponse")&&E&&F.mY.has(E))return Yo(F,{reason:"addafternoad",cueid:E}),"";E=lSn(F,e,e+D);F.yh&&F.LN({adaftto:1});z||F.LN({missadcon:1,enter:e,len:D,aid:p});F.Qh&&!F.Qh.jt&&(F.Qh.jt=p);F.uf&&F.LN({adfbk:1,enter:e,len:D,aid:p});var X=F.playback;C=C===void 0?e+D:C;e===C&&!D&&F.YG.V("html5_allow_zero_duration_ads_on_timeline")&&F.LN({attl0d:1});e>C&&Yo(F,{reason:"enterTime_greater_than_return",G$:e,h5:C});var q=X.oy()*1E3;e<q&&Yo(F,
{reason:"enterTime_less_than_minSeekableTime",enterMs:e,minSkMs:q},F.YG.V("html5_report_ssdai_timeline_error_as_fatal"));X=X.getDuration()*1E3;C>X&&Yo(F,{reason:"parent_return_greater_than_content_duration",h5:C,IeK:X});X=null;q=g.eS(F.W,{h5:e},function(N,u){return N.h5-u.h5});
q>=0&&(X=F.W[q],X.h5>e&&QfM(F,k.video_id||"",e,C,X));if(E&&X)for(q=0;q<F.l$.length;q++){if(F.l$[q].identifier===E.identifier){F.l$.splice(q,1);break}}else if(E)return F.LN({rejectAttl:1}),p&&!t9(F.fJ,function(N){return N===p})&&(F.LN({rejectAdBreakAttl:p},!0),F.fJ.push(p)),no(F),"";
E="ss_childplayback_"+hqx++;F.YG.V("html5_enable_ssap_entity_id")?(k=new g.Rt(F.YG,k),q=k.clientPlaybackNonce):(k.cpn||(k.cpn=g.vt(16)),q=k.cpn,k=new g.Rt(F.YG,k));k.KJ=E;z={KJ:E,playerType:x,durationMs:D,G$:e,h5:C,cpn:q,videoData:k,errorCount:0,ssdaiAdsConfig:z};g.E7(F.W,z,function(N,u){return N.G$===u.G$?N.durationMs-u.durationMs:N.G$-u.G$});
F.j.set(q,z);F.MD.set(E,z);F.LN({attlDone:C-e,acpn:q,et:e,prt:C});p?z.zO=p:X?z.zO=X.zO:z.zO=z.cpn;if(e=z.zO)(x=F.G.get(e))?(x.push(z),g.AO(x,function(N,u){return N.G$-u.G$})):F.G.set(e,[z]);
F.Xf.isActive()&&(F.yh=!1,F.Xf.stop(),TrC(F),F.gJ(!0));return E};
MI=function(F,k,z){return{ssvc:k,cpn:(z==null?void 0:z.cpn)||"",vid:(z==null?void 0:z.videoData.videoId)||"",ct:(F.playback.getCurrentTime()||0).toFixed(3),cmt:(F.playback.P8()||0).toFixed(3)}};
Lo=function(F,k){var z=F.app;YJ(z.uu())&&z.MR.U[2]&&F.logger.Y(360717806,"SSTM lingering playback");F.api.XK();F.api.publish("serverstitchedvideochange",k.KJ,k.DW)};
Ko=function(F,k,z){var x=F.B,D=F.F8(),e=F.U;F.U="";var C=k.Bc-z.Bc;Math.abs(C)>.5&&F.LN({ttdtb:1,delta:C,cpn:D.cpn,enter:k.adCpn,exit:z.adCpn,seek:x,skip:e});F.api.V("html5_ssdai_enable_media_end_cue_range")&&F.api.J3();if(k.isAd&&z.isAd){D=!!e;if(k.adCpn&&z.adCpn){var p=F.j.get(k.adCpn);var E=F.j.get(z.adCpn)}D?F.LN({igtransskip:1,enter:k.adCpn,exit:z.adCpn,seek:x,skip:e}):fo(F,E,p,z.Bc,k.Bc,x,D)}else if(!k.isAd&&z.isAd){F.tp=D.cpn;F.api.publish("serverstitchedvideochange");p=MI(F,"a2c");F.LN(p);
F.Iz=0;if(p=z.Rb)F.mp=p.end;var X;z.adCpn&&(X=F.j.get(z.adCpn));X&&F.playback.W$(X,D,z.Bc,k.Bc,x,!!e)}else if(k.isAd&&!z.isAd){var q;k.adCpn&&(q=F.j.get(k.adCpn));q&&(F.mp=0,F.tp=q.cpn,Lo(F,q),X=MI(F,"c2a",q),F.LN(X),F.Iz=1,F.playback.W$(D,q,z.Bc,k.Bc,x,!!e))}};
WX=function(F,k,z){z=z===void 0?0:z;var x=g.eS(F.W,{G$:(k+z)*1E3},function(p,E){return p.G$-E.G$});
x=x<0?(x+2)*-1:x;if(x>=0)for(var D=k*1E3,e=x;e<=x+1&&e<F.W.length;e++){var C=F.W[e];if(D>=C.G$-z*1E3&&D<=C.h5+z*1E3)return{NE:C,Kw:k}}return{NE:void 0,Kw:k}};
Brx=function(F,k){var z="";(k=rpk(F,k))&&(z=k.getId());return z?F.j.get(z):void 0};
rpk=function(F,k){if(F.tp){var z=F.L.get(F.tp);if(z&&z.start-200<=k&&z.end+200>=k)return z}F=g.l(F.L.values());for(z=F.next();!z.done;z=F.next())if(z=z.value,z.start<=k&&z.end>=k)return z};
mVn=function(F,k,z){var x=F.Xm||F.app.A4().getPlayerState();FO(F,!0);F.playback.seekTo(k,z);F=F.app.A4();k=F.getPlayerState();x.isOrWillBePlaying()&&!k.isOrWillBePlaying()?F.playVideo():x.isPaused()&&!k.isPaused()&&F.pauseVideo()};
FO=function(F,k){F.uL=NaN;F.RS=null;F.qD.stop();F.u$&&k&&F.u$.Bs();F.Xm=null;F.u$=null};
GwH=function(F){var k=k===void 0?-1:k;var z=z===void 0?Infinity:z;for(var x=[],D=g.l(F.W),e=D.next();!e.done;e=D.next())e=e.value,(e.G$<k||e.h5>z)&&x.push(e);F.W=x;x=g.l(F.L.values());for(D=x.next();!D.done;D=x.next())D=D.value,D.start>=k&&D.end<=z&&(F.playback.removeCueRange(D),F.L.delete(D.getId()),F.LN({rmAdCR:1}));x=WX(F,k/1E3);k=x.NE;x=x.Kw;if(k&&(x=x*1E3-k.G$,D=k.G$+x,k.durationMs=x,k.h5=D,x=F.L.get(k.cpn))){D=g.l(F.S);for(e=D.next();!e.done;e=D.next())e=e.value,e.start===x.end?e.start=k.G$+
k.durationMs:e.end===x.start&&(e.end=k.G$);x.start=k.G$;x.end=k.G$+k.durationMs}if(k=WX(F,z/1E3).NE){var C;x="playback_timelinePlaybackId_"+k.KJ+"_video_id_"+((C=k.videoData)==null?void 0:C.videoId)+"_durationMs_"+k.durationMs+"_enterTimeMs_"+k.G$+"_parentReturnTimeMs_"+k.h5;F.Q3("Invalid_clearEndTimeMs_"+z+"_that_falls_during_"+x+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
UV5=function(F){F.cR.clearAll();F.L.clear();F.S=[];F.W=[];F.j.clear();F.MD.clear();F.G.clear();F.K.clear();F.vR=[];F.PR=null;F.mY.clear();F.l$=[];F.vj=[];F.yf=[];F.fJ=[];F.J4=[];F.kG.clear();F.P7.clear();F.ZR.clear();F.NJ.clear();F.yh=!1;F.Y=void 0;F.mp=0;F.RU=!0;F.B=!1;F.Iz=0;F.Vz=0;F.We=!1;F.uf=!1;F.U="";F.Xf.isActive()&&no(F)};
ZOM=function(F,k,z,x,D,e){if(!F.uf)if(g.tVa(F,z))F.LN({gdu:"undec",seg:z,itag:D});else if(k=k5(F,k,z,x,e),!(F.playback.getVideoData().w3()&&(k==null?0:k.qM)))return k};
k5=function(F,k,z,x,D){var e=F.K.get(z);if(!e){if(e=vqk(F,k))return e;k=F.QR(z-1,x!=null?x:2);if(D)return F.LN({misscue:D,sq:z,type:x,prevsstate:k==null?void 0:k.dX,prevrecord:F.K.has(z-1)}),F.K.get(z-1);if((k==null?void 0:k.dX)===2)return F.LN({adnf:1,sq:z,type:x,prevrecord:F.K.has(z-1)}),F.K.get(z-1)}return e};
vqk=function(F,k){k+=F.Ao();if(F.playback.getVideoData().w3())a:{var z=1;z=z===void 0?0:z;var x=k*1E3;F=g.l(F.W);for(var D=F.next();!D.done;D=F.next()){D=D.value;var e=D.DW?D.DW*1E3:D.G$;if(x>=D.G$-z*1E3&&x<=e+D.durationMs+z*1E3){x={NE:D,Kw:k};break a}}x={NE:void 0,Kw:k}}else x=WX(F,k),((z=x)==null?0:z.NE)||(x=WX(F,k,1));var C;return(C=x)==null?void 0:C.NE};
cpk=function(F,k){k=k===void 0?"":k;var z=jP(k)||void 0;if(!k||!z){var x;F.LN({adcfg:(x=k)==null?void 0:x.length,dcfg:z==null?void 0:z.length})}return z};
P5D=function(F){if(F.J4.length)for(var k=g.l(F.J4),z=k.next();!z.done;z=k.next())F.onCueRangeExit(z.value);k=g.l(F.L.values());for(z=k.next();!z.done;z=k.next())F.playback.removeCueRange(z.value);k=g.l(F.S);for(z=k.next();!z.done;z=k.next())F.playback.removeCueRange(z.value);F.L.clear();F.S=[];F.cR.clearAll();F.Y||(F.RU=!0)};
fo=function(F,k,z,x,D,e,C){if(k&&z){F.tp=z.cpn;Lo(F,z);var p=MI(F,"a2a",z);F.LN(p);F.Iz++;F.playback.W$(k,z,x||0,D||0,!!e,!!C)}else F.LN({misspbkonadtrans:1,enter:(z==null?void 0:z.cpn)||"",exit:(k==null?void 0:k.cpn)||"",seek:e,skip:C})};
VVx=function(F,k,z,x){if(x)for(x=0;x<F.S.length;){var D=F.S[x];if(D.start<k&&D.end>z){var e=D.end;D.end=k;OOk(F,z,e)}else if(D.start>=k&&D.start<z&&D.end>z)D.start=z;else if(D.end>k&&D.end<=z&&D.start<k)D.end=k;else if(D.start>=k&&D.end<=z){F.playback.removeCueRange(D);if(F.J4.includes(D))F.onCueRangeExit(D);F.S.splice(x,1);continue}x++}else OOk(F,k,z)};
OOk=function(F,k,z){k=F.bH(k,z);z=!0;g.E7(F.S,k,function(C,p){return C.start-p.start});
for(var x=0;x<F.S.length;){if(x>0){var D=F.S[x],e=F.S[x-1];if(Math.round(e.end/1E3)>=Math.round(D.start/1E3)){e.end=D.end;D!==k?F.playback.removeCueRange(D):z=!1;F.S.splice(x,1);continue}}x++}if(z)for(F.playback.addCueRange(k),k=F.playback.Tn("serverstitchedcuerange",36E5),k=g.l(k),z=k.next();!z.done;z=k.next())F.L.delete(z.value.getId())};
oE=function(F,k,z){if(z===void 0||!z){z=g.l(F.vR);for(var x=z.next();!x.done;x=z.next()){x=x.value;if(k>=x.start&&k<=x.end)return;if(k===x.end+1){x.end+=1;return}}F.vR.push(new w_a(k))}};
g.tVa=function(F,k){F=g.l(F.vR);for(var z=F.next();!z.done;z=F.next())if(z=z.value,k>=z.start&&k<=z.end)return!0;return!1};
zR=function(F,k,z){var x;if(x=F.playback.getVideoData().w3()||F.YG.V("html5_ssdai_extent_last_unfinished_ad_cue_range"))x=(x=F.j.get(k))&&x.zO?(F=F.G.get(x==null?void 0:x.zO))&&F.slice(-1)[0].cpn===k:!1;return x&&z===2?1E3:0};
QfM=function(F,k,z,x,D){var e;k={reason:"overlapping_playbacks",oKJ:k,G$:z,h5:x,lvK:D.KJ,byR:((e=D.videoData)==null?void 0:e.videoId)||"",y3t:D.durationMs,zBa:D.G$,oyf:D.h5};Yo(F,k)};
Yo=function(F,k,z){F.playback.TV(k,z)};
ISY=function(F,k){var z=[];F=F.G.get(k);if(!F)return[];F=g.l(F);for(k=F.next();!k.done;k=F.next())k=k.value,k.cpn&&z.push(k.cpn);return z};
HOI=function(F,k,z){var x=0;F=F.G.get(z);if(!F)return-1;F=g.l(F);for(z=F.next();!z.done;z=F.next()){if(z.value.cpn===k)return x;x++}return-1};
aSa=function(F,k){var z=0;F=F.G.get(k);if(!F)return 0;F=g.l(F);for(k=F.next();!k.done;k=F.next())k=k.value,k.durationMs!==0&&k.h5!==k.G$&&z++;return z};
SbM=function(F,k,z){var x=!1;if(z&&(z=F.G.get(z))){z=g.l(z);for(var D=z.next();!D.done;D=z.next())D=D.value,D.durationMs!==0&&D.h5!==D.G$&&(D=D.cpn,k===D&&(x=!0),x&&!F.P7.has(D)&&(F.LN({decoratedAd:D}),F.P7.add(D)))}};
TrC=function(F){F.dH&&F.LN({adf:"0_"+((new Date).getTime()/1E3-F.Vz)+"_isTimeout_"+F.yh})};
lSn=function(F,k,z){if(F.l$.length)for(var x=g.l(F.l$),D=x.next(),e={};!D.done;e={Vx:void 0},D=x.next()){e.Vx=D.value;D=e.Vx.startSecs*1E3;var C=e.Vx.B8*1E3+D;if(k>D&&k<C||z>D&&z<C)return t9(F.yf,function(p){return function(E){return E.identifier===p.Vx.identifier}}(e))||(F.LN({adskip:k}),F.yf.push(e.Vx)),e.Vx}};
no=function(F){F.yh=!1;F.Xf.isActive()&&TrC(F);F.Xf.stop();F.gJ(!1)};
bO5=function(){g.gb.apply(this,arguments);this.m_=0};
dVn=function(F,k,z){F.playback.eO();F.playback.seekTo(k,z);F.playback.playVideo()};
JpH=function(F,k,z,x){k={tE:k,P2:z,jV:F.playback.getCurrentTime(),ITa:x};F.fh(k)};
ypp=function(F,k){if(F.playback.getVideoData().w3()){var z=F.G.get(k);if(z){z=g.l(z);for(var x=z.next();!x.done;x=z.next())F.vU(x.value);F.K.clear();F.G.delete(k)}}};
nqa=function(F,k,z){g.S.call(this);var x=this;this.api=F;this.timeline=k;this.playback=z;this.Yq=new Map;this.nk=new Map;this.Wq=new Map;this.events=new g.yQ(this);this.Iz=0;this.bD=this.tp="";this.vy=[];this.Kk=new Set;this.jB=new g.KS(function(){x.api.playVideo(1,x.api.V("html5_ssap_keep_media_on_finish_segment"));x.api.UK("ssap",{nve:""+x.tp});RqY(x,4)},3E4);
this.EV="";this.vI=new Set;this.JJ=!0;this.e8=new Map;this.Kx=new Set;this.pR=this.Qq=!1;this.Ul="";this.Am=null;this.Pe={OyR:function(){return x.nk},
Ys:function(D){if(D=x.nk.get(D))x.onCueRangeEnter(D)},
onCueRangeEnter:function(D){x.onCueRangeEnter(D)},
fAa:function(){return x.Qq}};
this.playback.getPlayerType();gq6(this);k.U=void 0;this.events.N(this.api,g.X$("ssap"),this.onCueRangeEnter);this.events.N(this.api,"internalAbandon",this.Ya);this.api.V("html5_ssap_timeline_handle_error_and_abandon")&&this.events.N(this.api,"presentingplayerstatechange",this.oo);g.b(this,this.jB);this.j3t=g.lw(F.C().experiments,"html5_ssap_segment_end_media_threshold_ms")||200;this.wc=F.V("html5_disable_ssap_append_pause");this.Qq=YbY(this)};
MVx=function(F,k,z,x){for(var D=g.l(x),e=D.next();!e.done;e=D.next()){var C=e.value;C.L||((e=db(C),C=C.getVideoData(),e&&C&&F.playback.BG(e,C,2),C)?e||(C=void 0,F.api.UK("ssap",{macac:e,maccc:(C=F.timeline.Y)==null?void 0:db(C)})):(C=void 0,F.api.UK("ssap",{mvac:e,mvcc:(C=F.timeline.Y)==null?void 0:db(C)})))}return Jh(F.timeline,k,z,x)};
fSM=function(F,k){if(!F.Kk.has(F.tp)){var z=0,x=0,D=gS(F.timeline,F.tp);if(D==null?0:D.length)for(D=g.l(D),D=D.next();!D.done;D=D.next()){x=D.value;z=x.lc();x=x.wi();break}if(!(x>0&&x>k*1E3+F.j3t)&&(x=Lon(F,z))){k=!1;z=void 0;x=g.l(x.segments);for(D=x.next();!D.done;D=x.next()){D=D.value;if(k){z=D;break}db(D)===F.tp&&(k=!0)}x=void 0;if(z)x=db(z);else if(k){var e;x=(e=F.timeline.Y)==null?void 0:db(e)}if(x)F.finishSegmentByCpn(F.tp,x,2,void 0);else{var C;F.api.UK("ssap",{mfnc:1,mfncc:(C=F.timeline.Y)==
null?void 0:db(C)})}}}};
YbY=function(F){return F.api.V("html5_force_ssap_gapful_switch")||F.api.V("html5_ssap_enable_legacy_browser_logic")&&!Mi()};
F79=function(F,k,z,x){F.Wq.set(k,x);KoH(F,k,z);Wox(F,z)};
IP=function(F,k){F=gS(F.timeline,k);return(F==null?0:F.length)?F[0].lc():0};
HV=function(F,k){var z=z===void 0?!1:z;var x=F.timeline.Y;if(!x)return{clipId:"",US:0};var D=kqa(F,k,z);if(D)return{clipId:db(D)||"",US:D.lc()};F.api.UK("mci",{cs:db(x),mt:k,tl:kt(F),invt:!!z});return{clipId:"",US:0}};
JA=function(F){var k=F.timeline.Y;if(!k)return 0;F=0;if(k.Y.size===0)return(k.wi()-k.lc())/1E3;k=k.Y.values();k=g.l(k);for(var z=k.next();!z.done;z=k.next()){z=g.l(z.value);for(var x=z.next();!x.done;x=z.next())x=x.value,F+=(x.wi()-x.lc())/1E3}return F};
zQn=function(F,k){return(F=ovk(F,k*1E3))?F.lc():0};
xPY=function(F,k){var z=gS(F.timeline,k);k=0;if(z==null?0:z.length)for(F=g.l(z),z=F.next();!z.done;z=F.next())z=z.value,k+=(z.wi()-z.lc())/1E3;else return JA(F);return k};
ovk=function(F,k){if(F=gS(F.timeline,F.tp)){F=g.l(F);for(var z=F.next();!z.done;z=F.next())if(z=z.value,z.lc()<=k&&z.wi()>=k)return z}};
iy9=function(F){var k=F.playback.getVideoData();F.tp&&(F=F.Yq.get(F.tp))&&(k=F);return k};
Lon=function(F,k,z){z=z===void 0?!1:z;var x=F.timeline.Y;if(x){x=x.Y;var D=Array.from(x.keys());g.AO(D);k=g.eS(D,k);k=x.get(D[k<0?(k+2)*-1:k]);if(!z&&k){z=g.l(k);for(k=z.next();!k.done;k=z.next())if(k=k.value,k.lc()!==k.wi())return k;return F.timeline}return k&&k.length>0?k[k.length-1]:void 0}};
kqa=function(F,k,z){z=z===void 0?!1:z;var x=Lon(F,k,z);if(x){if(F=x.segments,F.length){for(var D=g.l(F),e=D.next();!e.done;e=D.next())if(e=e.value,e.lc()<=k&&e.wi()>k)return e;if(z&&x.lc()===x.wi())return F[0]}}else F.api.UK("ssap",{ctnf:1})};
RqY=function(F,k){var z;if(F.EV)for(z=F.vy.shift();z&&z!==F.EV;)z=F.vy.shift();else z=F.vy.shift();if(z){if(F.Kk.has(z))DPM(F,z);else if(k===3||k===4)F.jB.stop(),F.api.playVideo(1,F.api.V("html5_ssap_keep_media_on_finish_segment"));F.Wq.set(F.tp,k);F.api.UK("ssap",{onvftn:1});Wox(F,z);return!1}F.api.UK("ssap",{onvftv:1});F.jB.stop();return!0};
DPM=function(F,k){k=gS(F.timeline,k);if(k==null?0:k.length)F.api.pauseVideo(),F.jB.start(k[0].Hk)};
Wox=function(F,k){var z=F.playback.getVideoData(),x=z.clientPlaybackNonce;F.Am&&(F.events.er(F.Am),F.Am=null,F.playback.VS());var D=F.tp,e=!1;if(D==="")D=x,e=!0;else if(D===void 0){var C=F.playback.lI();C&&F.timeline.L.has(C)&&(D=C);F.api.UK("ssap",{mcc:D+";"+k});F.playback.He(new O3("ssap.timelineerror",{e:"missing_current_cpn",pcpn:D,ccpn:k}))}if(D===k)e&&z&&$PI(F,z,e);else{C=F.Wq.get(D);if(!e&&(!C||C!==3&&C!==5&&C!==6&&C!==7)){var p=F.api.J3(F.tp);F.api.UK("ssap",{nmec:p,cpc:F.tp,ec:k})}C&&C!==
2||F.g5();F.tp=k;F.g5();k=gS(F.timeline,F.tp);if(k==null?0:k.length){k=k[0];p=k.getType();D!==x&&(F.bD=D,z=F.Yq.get(D));C?F.Wq.delete(D):C=e?1:2;F.api.V("html5_ssap_pacf_qoe_ctmp")&&p===2&&!k.L&&(F.Am=F.events.N(F.api,"onVideoProgress",F.Ccf));F.api.UK("ssapt",{ostro:C,pcpn:D,ccpn:F.tp});a:{var E=F.tp;if(!F.nk.has(E))for(var X=g.l(F.nk),q=X.next();!q.done;q=X.next()){var N=g.l(q.value);q=N.next().value;N=N.next().value;if(N.getId().includes(E)){E=q;break a}}}X=F.api.C().V("html5_ssap_insert_su_before_nonvideo")&&
E!==F.tp;F.playback.WW(E,X);E=Math.max(0,x5(F,D));X=F.playback.getCurrentTime();X=Math.max(0,X-IP(F,F.tp)/1E3);q=k.getVideoData();N=C===3||C===5||C===6||C===7;if(F.api.V("html5_ssap_skip_illegal_seeking")){var u=F.playback.getPlayerState();u=!g.n(u,8)&&g.n(u,16);N=N||u;u&&F.api.UK("ssap",{iis:1})}F.playback.DC(D,F.tp,E,X,!1,N,F.playback.getPlayerState(),!0);F.api.UK("ssapt",{ostri:C,pcpn:D,ccpn:F.tp});var w;F.playback.Gt(D,F.tp,x,q,(w=F.e8.get(D))!=null?w:(0,g.VE)(),z);F.e8.delete(D);e?z=void 0:z||
F.api.UK("ssap",{pvdm:D+";"+F.tp,pvdmc:F.tp===x?"1":"0"});F.api.UK("ssap",{tpac:D+";"+F.tp,tpcc:x,tpv:(q==null?0:q.ut())?"1":"0"},!1,1);F.api.C().V("html5_ssap_cleanup_player_switch_ad_player")&&F.api.XK();F.api.publish("videodatachange","newdata",q,p,z,C);k.L||F.playback.getVideoData().publish("dataupdated");F.Kk.delete(D);F.EV="";q&&p===1?$PI(F,q):F.playback.UK("ssap",{nis:F.tp});p===2?F.Iz++:F.Iz=0}}};
$PI=function(F,k,z){z=z===void 0?!1:z;if(k.startSeconds&&F.JJ){var x=k.startSeconds;k=gS(F.timeline,k.clientPlaybackNonce);if(k==null?0:k.length)x+=k[0].lc()/1E3,F.api.V("htm5_ssap_ignore_initial_seek_if_too_big")&&x>=F.uS()||(F.playback.seekTo(x,{CT:!0}),F.JJ=!1,F.playback.UK("ssap",{is:F.tp,co:z?"1":"0",tse:x.toFixed()}))}};
KoH=function(F,k,z){k=gS(F.timeline,k);if(k!=null&&k.length&&(k=Lon(F,k[0].lc()))){k=g.l(k.segments);for(var x=k.next();!x.done;x=k.next()){x=x.value;if(db(x)===z)break;if(x=db(x)){var D=F.nk.get(x);D&&F.playback.removeCueRange(D);F.nk.delete(x)}}}};
S2=function(F){return F.playback.getVideoData().clientPlaybackNonce};
nlM=function(F,k){if(F.Qq&&F.tp!==k)return!1;if(F.wc)return!0;if(k=F.nk.get(k))if(k=k.getId().split(","),k.length>1)for(var z=0;z<k.length;z++){var x=z<k.length-1?k[z+1]:"";if(F.Kk.has(k[z]))return k[z]===F.tp&&!F.Kk.has(x)}return!0};
R_a=function(F,k,z){kqa(F,k)||F.playback.UK("ssap",{ilgsk:k.toFixed(),mep:z?"1":"0",tl:kt(F)})};
x5=function(F,k){k=k||F.tp;var z=F.Yq.get(k);return z?z.u$:k!==S2(F)?0:F.playback.getVideoData().u$};
kt=function(F){var k=F.tp;k||(k=F.playback.getVideoData().clientPlaybackNonce);var z,x,D=Array.from((x=(z=F.timeline.Y)==null?void 0:z.Y.values())!=null?x:[]);z=[];if(D==null?0:D.length)for(x=g.l(D),D=x.next();!D.done;D=x.next())if(D=D.value,D.length&&D[0]&&(D=D[0].segments,D.length)){D=g.l(D);for(var e=D.next();!e.done;e=D.next()){var C=e.value;e="st."+C.lc()+";";e+="et."+C.wi()+";";var p=db(C);p&&(e+="cpn."+p+";",e+="a."+(k===p?1:0)+";");if(C=C.getVideoData())p=void 0,e+="vid."+((p=C.videoId)!=
null?p:"nvd");z.push(e)}}return(z.length?z.join(","):"empty."+k)+";cpcpn."+F.wp()};
gq6=function(F){F.playback.c$(Array.from(F.nk.values()));F.nk.clear()};
eQR=function(F,k,z,x){g.S.call(this);var D=this;this.api=F;this.YG=k;this.Y=z;this.app=x;this.W=new Map;this.L=[];this.U=this.G=null;this.Qh=NaN;this.S=this.j=this.K=null;this.B=new g.KS(function(){j8Y(D,D.Qh,D.K||void 0)});
this.PR=[];this.t4=new g.KS(function(){var e=D.PR.pop();if(e){var C=e.KJ,p=e.playerVars;e=e.playerType;p&&(p.prefer_gapless=!0,D.api.preloadVideoByPlayerVars(p,e,NaN,"",C),D.PR.length&&g.WN(D.t4,4500))}});
this.events=new g.yQ(this);this.Pe={CVR:function(){return D.L}};
this.Y.getPlayerType();g.b(this,this.B);g.b(this,this.t4);g.b(this,this.events);this.events.N(this.api,g.X$("childplayback"),this.onCueRangeEnter);this.events.N(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.N(this.api,"presentingplayerstatechange",this.oo)};
Ev5=function(F,k,z,x,D,e){var C=k.cpn,p=k.docid||k.video_id||k.videoId||k.id,E=F.Y;e=e===void 0?D+x:e;if(D>e)return im(F,"enterAfterReturn enterTimeMs="+D+" is greater than parentReturnTimeMs="+e.toFixed(3),C,p),"";var X=E.oy()*1E3;if(D<X)return im(F,"enterBeforeMinSeekable enterTimeMs="+D+" is less than parentMinSeekableTimeMs="+X,C,p),"";X=E.getDuration()*1E3;if(e>X)return E="returnAfterDuration parentReturnTimeMs="+e.toFixed(3)+" is greater than parentDurationMs="+X+". And timestampOffset in seconds is "+
E.Hj(),im(F,E,C,p),"";X=null;for(var q=g.l(F.L),N=q.next();!N.done;N=q.next()){N=N.value;if(D>=N.G$&&D<N.h5)return im(F,"overlappingEnter",C,p),"";if(e<=N.h5&&e>N.G$)return im(F,"overlappingReturn",C,p),"";if(e===N.G$)return im(F,"outOfOrder",C,p),"";D===N.h5&&(X=N)}C="cs_childplayback_"+CSR++;p={Rb:Dw(x,!0),Gy:Infinity,target:null};var u={KJ:C,playerVars:k,playerType:z,durationMs:x,G$:D,h5:e,vn:p};F.L=F.L.concat(u).sort(function(h,B){return h.G$-B.G$});
X?AGx(F,X,{Rb:Dw(X.durationMs,!0),Gy:X.vn.Gy,target:u}):(k={Rb:Dw(D,!1),Gy:D,target:u},F.W.set(k.Rb,k),E.addCueRange(k.Rb));k=!0;if(F.Y===F.app.A4()&&(E=E.getCurrentTime()*1E3,E>=u.G$&&E<u.h5)){var w=F.app.A4().getPlayerState(),m=E-u.G$;Nt(function(){pdC(F,u,m/1E3,{},w)});
k=!1}k&&(F.PR.unshift(u),g.WN(F.t4,0));return C};
Dw=function(F,k){return new g.ps(Math.max(0,F-5E3),k?0x8000000000000:F-1,{namespace:"childplayback",priority:9})};
XdY=function(F,k,z,x){F.U=x;F.api.aP(F.Y,z,k)};
qoY=function(F,k,z,x){F.U=x;x=k.KJ;var D=k.playerVars,e=k.playerType;F.G=k;D&&(F.YG.V("html5_enable_ssap_entity_id")&&(D.cached_load=!0),F.api.enqueueVideoByPlayerVars(D,e,z,x))};
AGx=function(F,k,z){var x=k.vn;k.vn=z;$5(F,k)&&(z=F.app.A4(),x.Rb===F.U&&jz(F),z.removeCueRange(x.Rb),z.addCueRange(k.vn.Rb))};
jz=function(F){F.G=null;F.U=null;F.api.gi()||F.api.clearQueue()};
NDn=function(F,k){$5(F,k)||im(F,"childPlaybackIsNotPresenting");return k.h5===k.G$+k.durationMs?k.G$+F.app.A4().getCurrentTime()*1E3:k.h5};
uLY=function(F,k){var z=0;F=g.l(F.L);for(var x=F.next();!x.done;x=F.next()){x=x.value;var D=x.G$/1E3+z,e=D+x.durationMs/1E3;if(D>k)break;if(e>k)return{NE:x,Kw:k-D};z=e-x.h5/1E3}return{NE:null,Kw:k-z}};
j8Y=function(F,k,z){z=z===void 0?{}:z;var x=F.S||F.app.A4().getPlayerState();ez(F,!0);k=isFinite(k)?k:F.Y.qX();var D=uLY(F,k);k=D.Kw;var e=(D=D.NE)&&!$5(F,D)||!D&&F.Y!==F.app.A4(),C=k*1E3;C=F.U&&F.U.start<=C&&C<=F.U.end;!e&&C||jz(F);D?pdC(F,D,k,z,x):wdM(F,k,z,x)};
wdM=function(F,k,z,x){var D=F.Y;D!==F.app.A4()&&F.app.rK();D.seekTo(k,Object.assign({},{Sr:"application_timelinemanager"},z));mPY(F,x)};
pdC=function(F,k,z,x,D){var e=$5(F,k);if(!e){k.playerVars.prefer_gapless=!0;F.YG.V("html5_enable_ssap_entity_id")&&(k.playerVars.cached_load=!0);var C=new g.Rt(F.YG,k.playerVars);C.KJ=k.KJ;F.api.uF(C,k.playerType)}C=F.app.A4();e||C.addCueRange(k.vn.Rb);C.seekTo(z,Object.assign({},{Sr:"application_timelinemanager"},x));mPY(F,D)};
mPY=function(F,k){F=F.app.A4();var z=F.getPlayerState();k.isOrWillBePlaying()&&!z.isOrWillBePlaying()?F.playVideo():k.isPaused()&&!z.isPaused()&&F.pauseVideo()};
ez=function(F,k){F.Qh=NaN;F.K=null;F.B.stop();F.j&&k&&F.j.Bs();F.S=null;F.j=null};
$5=function(F,k){F=F.app.A4();return!!F&&F.getVideoData().KJ===k.KJ};
TDM=function(F){var k=F.L.find(function(D){return $5(F,D)});
if(k){var z=F.app.A4();jz(F);var x=new g.CR(8);k=NDn(F,k)/1E3;wdM(F,k,{},x);z.UK("forceParentTransition",{childPlayback:1});F.Y.UK("forceParentTransition",{parentPlayback:1})}};
Q8D=function(F,k,z){k=k===void 0?-1:k;z=z===void 0?Infinity:z;for(var x=k,D=z,e=g.l(F.W),C=e.next();!C.done;C=e.next()){var p=g.l(C.value);C=p.next().value;p=p.next().value;p.Gy>=x&&p.target&&p.target.h5<=D&&(F.Y.removeCueRange(C),F.W.delete(C))}x=k;D=z;e=[];C=g.l(F.L);for(p=C.next();!p.done;p=C.next())if(p=p.value,p.G$>=x&&p.h5<=D){var E=F;E.G===p&&jz(E);$5(E,p)&&E.app.rK()}else e.push(p);F.L=e;x=uLY(F,k/1E3);k=x.NE;x=x.Kw;k&&(x*=1E3,li6(F,k,x,k.h5===k.G$+k.durationMs?k.G$+x:k.h5));(k=uLY(F,z/1E3).NE)&&
im(F,"Invalid clearEndTimeMs="+z+" that falls during playback={timelinePlaybackId="+(k.KJ+" video_id="+k.playerVars.video_id+" durationMs="+k.durationMs+" enterTimeMs="+k.G$+" parentReturnTimeMs="+k.h5+"}.Child playbacks can only have duration updated not their start."))};
li6=function(F,k,z,x){k.durationMs=z;k.h5=x;x={Rb:Dw(z,!0),Gy:z,target:null};AGx(F,k,x);$5(F,k)&&F.app.A4().getCurrentTime()*1E3>z&&(k=NDn(F,k)/1E3,z=F.app.A4().getPlayerState(),wdM(F,k,{},z))};
im=function(F,k,z,x){F.Y.UK("timelineerror",{e:k,cpn:z?z:void 0,videoId:x?x:void 0})};
s8I=function(F){F&&F!=="web"&&hQD.includes(F)};
pD=function(F,k){g.S.call(this);var z=this;this.data=[];this.U=F||NaN;this.L=k||null;this.Y=new g.KS(function(){CD(z);Am(z)});
g.b(this,this.Y)};
Sla=function(F){CD(F);return F.data.map(function(k){return k.value})};
CD=function(F){var k=(0,g.VE)();F.data.forEach(function(z){z.expire<k&&E8(F,z,!0)});
F.data=g.pT(F.data,function(z){return!(z.expire<k)})};
E8=function(F,k,z){z&&F.L&&F.L(k.value)};
Am=function(F){F.Y.stop();var k=Infinity;for(var z=g.l(F.data),x=z.next();!x.done;x=z.next())x=x.value,x.expire<k&&(k=x.expire);k&&isFinite(k)&&(k=Math.max(k-Date.now(),100),F.Y.start(k))};
XO=function(){g.S.call(this);this.Y=new pD(5,null);g.b(this,this.Y);this.L=new pD(15,null);g.b(this,this.L)};
TmI=function(F,k){return k?!!F.Y.get(k):!1};
rGY=function(F,k){F.dataset.version=k};
UP6=function(F){g.Y.call(this,{X:"div",WR:["html5-video-player"],D:{tabindex:F.C().disableOrganicUi?"":"-1",id:F.webPlayerContextConfig?F.webPlayerContextConfig.rootElementId:F.config.attrs.id},Z:[{X:"div",J:g.Wc.VIDEO_CONTAINER,D:{"data-layer":"0"}}]});var k=this;this.app=F;this.bX=this.EK(g.Wc.VIDEO_CONTAINER);this.nQ=new g.eU(0,0,0,0);this.LJ=null;this.QS=new g.eU(0,0,0,0);this.jT=this.yW=this.gj=NaN;this.Q8=this.Y2=this.pA=this.cY=!1;this.GZ=NaN;this.vK=!1;this.T5=null;this.DN=function(){k.element.focus({preventScroll:!0})};
this.RR=function(){k.app.Vh.publish("playerUnderlayVisibilityChange","visible");k.LJ.classList.remove(g.Wc.VIDEO_CONTAINER_TRANSITIONING);k.LJ.removeEventListener(XC,k.RR);k.LJ.removeEventListener("transitioncancel",k.RR)};
var z=this.element.addEventListener,x=this.element.removeEventListener;this.addEventListener=function(e,C,p){z.apply(k.element,[e,C,p])};
this.removeEventListener=function(e,C,p){x.apply(k.element,[e,C,p])};
var D=F.C();D.transparentBackground&&this.Nw("ytp-transparent");D.controlsType==="0"&&this.Nw("ytp-hide-controls");g.C6(this.element,"ytp-exp-bottom-control-flexbox");g.C6(this.element,"ytp-modern-caption");D.V("enable_new_paid_product_placement")&&!g.WJ(D)&&g.C6(this.element,"ytp-exp-ppp-update");D.V("html5_enable_ssap")&&g.C6(this.element,"ytp-ssap");g.C6(this.element,"ytp-livebadge-color");if(D.V("delhi_modern_web_player"))switch(g.C6(this.element,"ytp-delhi-modern"),oB(D.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.C6(this.element,
"ytp-delhi-modern-with-luminosity");break;case "difference":g.C6(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.C6(this.element,"ytp-delhi-modern-with-exclusion")}rGY(this.element,BDR(F));this.G2=!1;this.Yh=new g.BB(NaN,NaN);Gqa(this);this.N(F.Vh,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
Gqa=function(F){function k(){F.LJ&&qc(F);Nc(F)!==F.vK&&F.resize()}
function z(C,p){F.Z4(C,p)}
function x(C){C.getVideoData()&&F.updateVideoData(C.getVideoData())}
function D(){F.QS=new g.eU(0,0,0,0);F.nQ=new g.eU(0,0,0,0)}
var e=F.app.Vh;e.addEventListener("initializingmode",D);e.addEventListener("videoplayerreset",x);e.addEventListener("videodatachange",z);e.addEventListener("presentingplayerstatechange",k);F.addOnDisposeCallback(function(){e.removeEventListener("initializingmode",D);e.removeEventListener("videoplayerreset",x);e.removeEventListener("videodatachange",z);e.removeEventListener("presentingplayerstatechange",k)})};
Zyn=function(F){var k=F.app.A4(),z=k=k?k.getVideoData():null;if(k==null?0:g.Mk(k))z=F.app.Vh.getVideoData();if(z){if(g.Zx(z)||g.vP(z)||g.cP(z))return 16/9;if(zC(z)&&z.U.Y)return F=z.U.videoInfos[0].video,tO6(F.width,F.height)}return(F=F.LJ)?tO6(F.videoWidth,F.videoHeight):16/9};
vvn=function(F,k,z,x){var D=z,e=tO6(k.width,k.height);F.cY?D=z<e?Infinity:0:isNaN(F.jT)?isNaN(F.yW)||(D=F.yW):D=F.jT;isFinite(D)||(D=Math.max(z,e));F=D>e?{width:k.width,height:k.width/D,aspectRatio:D}:D<e?{width:k.height*D,height:k.height,aspectRatio:D}:{width:k.width,height:k.height,aspectRatio:e};x||isNaN(z)||(z>D?F.width=F.height*z:z<D&&(F.height=F.width/z),F.aspectRatio=z);return F};
tO6=function(F,k){return Math.abs(cGa*k-F)<1||Math.abs(cGa/F-k)<1?cGa:F/k};
Nc=function(F){if(F.app.getAppState()===1)return!1;if(F.app.getAppState()===6)return!0;var k=F.app.A4();if(!k||k.wO())return!1;F=F.app.Vh.getPlayerStateObject();k=!g.n(F,2)||k&&k.getVideoData().B;var z=g.n(F,1024);return F&&k&&!z&&!F.isCued()};
qc=function(F){var k=F.app.C().controlsType==="3"&&!F.Q8&&Nc(F)&&!F.app.aQ||!1;F.LJ.controls=k;F.LJ.tabIndex=k?0:-1;F.app.C().j&&(F.LJ.ariaHidden=k||F.app.C().V("video_element_aria_hidden_ks")?"false":"true");k?F.LJ.removeEventListener("focus",F.DN):F.LJ.addEventListener("focus",F.DN)};
PSY=function(F){var k=F.eU(),z=1,x=!1,D=vvn(F,k,F.getVideoAspectRatio()),e=F.app.C(),C=e.V("enable_desktop_player_underlay"),p=TYn(),E=g.lw(e.experiments,"player_underlay_min_player_width");E=C&&F.pA&&F.getPlayerSize().width>E;if(Nc(F)){var X=Zyn(F);var q=isNaN(X)||g.o9||$F&&g.GX||E;k4&&!g.wN(601)?X=D.aspectRatio:q=q||e.controlsType==="3";q?E?(q=e.V("place_shrunken_video_on_left_of_player")?16:F.getPlayerSize().width-k.width-16,X=Math.max((F.getPlayerSize().height-k.height)/2,0),q=new g.eU(q,X,k.width,
k.height),F.LJ.style.setProperty("border-radius","12px")):q=new g.eU(0,0,k.width,k.height):(z=D.aspectRatio/X,q=new g.eU((k.width-D.width/z)/2,(k.height-D.height)/2,D.width/z,D.height),z===1&&g.GX&&(X=q.width-k.height*X,X>0&&(q.width+=X,q.height+=X)));g.XF(F.element,"ytp-fit-cover-video",Math.max(q.width-D.width,q.height-D.height)<1);if(p||F.G2)F.LJ.style.display="";F.vK=!0}else{q=-k.height;k4?q*=window.devicePixelRatio:g.Fd&&(q-=window.screen.height);q=new g.eU(0,q,k.width,k.height);if(p||F.G2)F.LJ.style.display=
"none";F.vK=!1}CV(F.QS,q)||(F.QS=q,g.IB(e)?(F.LJ.style.setProperty("width",q.width+"px","important"),F.LJ.style.setProperty("height",q.height+"px","important")):g.s0(F.LJ,q.getSize()),x=new g.sV(q.left,q.top),g.TO(F.LJ,Math.round(x.x),Math.round(x.y)),x=!0);k=new g.eU((k.width-D.width)/2,(k.height-D.height)/2,D.width,D.height);CV(F.nQ,k)||(F.nQ=k,x=!0);g.Xr(F.LJ,"transform",z===1?"":"scaleX("+z+")");C&&E!==F.Y2&&(E&&(F.LJ.addEventListener(XC,F.RR),F.LJ.addEventListener("transitioncancel",F.RR),F.LJ.classList.add(g.Wc.VIDEO_CONTAINER_TRANSITIONING)),
F.Y2=E,F.app.Vh.publish("playerUnderlayVisibilityChange",F.Y2?"transitioning":"hidden"));return x};
Oy6=function(){this.csn=g.OK();this.clientPlaybackNonce=null;this.elements=new Set;this.U=new Set;this.Y=new Set;this.L=new Set};
VOI=function(F){if(F.csn!==g.OK())if(F.csn==="UNDEFINED_CSN")F.csn=g.OK();else{var k=g.OK(),z=g.Pz();if(k&&z){F.csn=k;for(var x=g.l(F.elements),D=x.next();!D.done;D=x.next())(D=D.value.visualElement)&&D.isClientVe()&&k&&z&&(g.sY("combine_ve_grafts")?Il(Ow(),D,z):g.oS(g.oa)(void 0,k,z,D))}if(k)for(F=g.l(F.Y),z=F.next();!z.done;z=F.next())(z=z.value.visualElement)&&z.isClientVe()&&g.AL(k,z)}};
g.um=function(F,k,z,x){g.S.call(this);var D=this;this.logger=new g.C4("App");this.aQ=this.GO=!1;this.ju={};this.w_=[];this.Hb=!1;this.fR=null;this.intentionalPlayback=!1;this.DO=!0;this.Na=!1;this.hq=this.P_=null;this.Im=!0;this.mediaElement=this.cj=null;this.Iu=NaN;this.Ou=!1;this.s3=this.x3=this.jz=this.kN=this.screenLayer=this.playlist=null;this.zF=[];this.E6=0;this.Pe={E7:function(){return D.MR},
Lp:function(){return D.jz},
xn:function(C){D.jz=C},
ZY:function(C,p){D.jz&&D.jz.ZY(C,p)}};
this.logger.debug("constructor begin");this.config=YXa(k||{});this.webPlayerContextConfig=z;Dg5();k=this.config.args||{};this.YG=new yq(k,z,z?z.canaryState:this.config.assets.player_canary_state,x,this);g.b(this,this.YG);ApR(this.YG);x=Eqx(this.YG);this.YG.Jp()&&this.zF.push({key:"h5vcc",value:x});this.YG.experiments.Ca("jspb_serialize_with_worker")&&bg9();this.YG.experiments.Ca("gzip_gel_with_worker")&&cUp();this.YG.L&&!Iip&&(window.addEventListener(rw?"touchstart":"click",JoM,{capture:!0,passive:!0}),
Iip=!0);this.V("html5_onesie")&&(this.NS=new eN(this.YG),g.b(this,this.NS));this.qy=eZ(vJ(this.YG)&&!0,k.enablesizebutton);this.KR=eZ(!1,k.player_wide);this.visibility=new DV9;g.b(this,this.visibility);this.V("web_log_theater_mode_visibility")&&this.Y3(eZ(!1,k.player_wide));this.GO=eZ(!1,k.external_list);this.events=new g.yQ(this);g.b(this,this.events);this.V("start_client_gcf")&&(SF(yj(),{G7:NK,Vp:ocH()}),this.E$=yj().resolve(NK),iXn(this.E$));this.yh4=new qa;g.b(this,this.yh4);this.n0=new Oy6;x=
new Na;this.Vh=new g.tM(this,x);g.b(this,this.Vh);this.template=new UP6(this);g.b(this,this.template);this.appState=1;this.D3=HyH(this);g.b(this,x);x={};this.rA=(x.internalvideodatachange=this.aRp,x.playbackready=this.URR,x.playbackstarted=this.Qyk,x.statechange=this.PuU,x);this.Sv=new jR(this.Vh);this.jZ=aia(this);x=this.V("html5_load_wasm");k=this.V("html5_allow_asmjs");if(x&&Son||k)this.YG.pn=tzk(this.jZ,k),hd(QK(this.YG.pn,function(C){D.YG.E3=C;var p;(p=D.A4())==null||p.UK("wasm",{a:C.Cu})}),
function(C){g.yI(C);
C="message"in C&&C.message||C.toString()||"";var p;(p=D.A4())==null||p.UK("wasm",{e:C})});
else if(x&&!Son){var e;(e=this.A4())==null||e.UK("wasm",{e:"wasm unavailable"})}this.gH=new IlR(this.YG,this.jZ);this.Vh.publish("csiinitialized");e=10;g.Vi(this.YG)&&(e=3);K_(this.YG)&&(e=g.lw(this.YG.experiments,"tvhtml5_unplugged_preload_cache_size"));e=new pD(e,function(C){C!==D.CN(C.getPlayerType())&&C.dispose()});
g.b(this,e);this.MR=new g.Sh(this.YG,e);e=by6(this);this.MR.BL(e);dPD(this);e={};this.xL=(e.airplayactivechange=this.t9f,e.airplayavailabilitychange=this.ivQ,e.beginseeking=this.X7p,e.sabrCaptionsDataLoaded=this.V94,e.endseeking=this.S3Q,e.internalAbandon=this.W_U,e.internalaudioformatchange=this.EN$,e.internalvideodatachange=this.A5$,e.internalvideoformatchange=this.HvQ,e.liveviewshift=this.c5R,e.playbackstalledatstart=this.q3R,e.progresssync=this.nNG,e.onAbnormalityDetected=this.F_k,e.onSnackbarMessage=
this.RN4,e.onLoadProgress=this.gNt,e.SEEK_COMPLETE=this.Ij4,e.SEEK_TO=this.GAp,e.onVideoProgress=this.Nlf,e.onLoadedMetadata=this.y5a,e.onAutoplayBlocked=this.m5h,e.onPlaybackPauseAtStart=this.oNJ,e.playbackready=this.ljf,e.statechange=this.qA,e.newelementrequired=this.RD,e.heartbeatparams=this.eNa,e.videoelementevent=this.fjf,e.drmoutputrestricted=this.Tl4,e.signatureexpired=this.J54,e.nonfatalerror=this.zN4,e.reloadplayer=this.x5t,e);this.Cw=new g.yQ(this);g.b(this,this.Cw);this.kC=new XO;g.b(this,
this.kC);this.EL=this.E2=-1;this.Ie=new g.KS(this.template.resize,16,this.template);g.b(this,this.Ie);this.qR=new eQR(this.Vh,this.YG,this.Pj(),this);this.iV=new bf(this.YG);this.a6=new Ig(this);g.b(this,this.a6);this.fz=new cX(this);g.b(this,this.fz);s8I(this.YG.Y.c);this.events.N(this.Vh,g.X$("appapi"),this.dRh);this.events.N(this.Vh,g.qQ("appapi"),this.YJ4);this.events.N(this.Vh,g.X$("appprogressboundary"),this.kAt);this.events.N(this.Vh,g.qQ("applooprange"),this.f6);this.events.N(this.Vh,"presentingplayerstatechange",
this.oo);this.events.N(this.Vh,"resize",this.QIp);this.template.T4(FE(document,F));this.events.N(this.Vh,"offlineslatestatechange",this.U5R);this.events.N(this.Vh,"sabrCaptionsTrackChanged",this.X8G);this.events.N(this.Vh,"sabrCaptionsBufferedRangesUpdated",this.mkf);this.jZ.T.C().fb&&h_(this.jZ,"offline");this.YG.kG&&g.EL("ux",g.Zl);F=g.lw(this.YG.experiments,"html5_defer_fetch_att_ms");this.Yw=new g.KS(this.x0U,F,this);g.b(this,this.Yw);this.uu().ut()&&(g.Jx()&&this.uu().t4.push("remote"),JGD(this));
this.gH.tick("fs");yG5(this);this.YG.kG&&h_(this.jZ,"ux",!0);g.tJ(this.jZ.T.C())&&h_(this.jZ,"embed");this.V("web_player_sentinel_is_uniplayer")||g.yI(new g.Fa("Player experiment flags missing","web_player_sentinel_is_uniplayer"));F=this.V("web_player_sentinel_yt_experiments_sync");e=g.sY("web_player_sentinel_yt_experiments_sync");F!==e&&g.yI(new g.Fa("b/195699950",{yt:F,player:e}));z||g.yI(new g.Fa("b/179532961"));this.gP=RQH(this);if(z=g.lw(this.YG.experiments,"html5_block_pip_safari_delay"))this.zm=
new g.KS(this.T6,z,this),g.b(this,this.zm);Hp=this.YG.Vz;z=g.lw(this.YG.experiments,"html5_performance_impact_profiling_timer_ms");z>0&&(this.Eq=new g.H4(z),g.b(this,this.Eq),this.events.N(this.Eq,"tick",function(){D.mM&&gvC.wX("apit",D.mM);D.mM=gvC.Fi()}));
this.Vh.publish("applicationInitialized");this.logger.debug("constructor end")};
RQH=function(F){function k(z){z.stack&&z.stack.indexOf("player")!==-1&&(F.A4()||F.Pj()).WP(z)}
Rs.subscribe("handleError",k);Fe.push(k);return function(){Rs.unsubscribe("handleError",k);var z=Fe.indexOf(k);z!==-1&&Fe.splice(z,1)}};
by6=function(F){var k=new g.Rt(F.YG,F.config.args);F.Vh.publish("initialvideodatacreated",k);return wT(F,1,k,!1)};
dPD=function(F){var k=F.Pj();k.setPlaybackRate(F.YG.j?1:Yo5(F,Number(g.bn("yt-player-playback-rate"))||1));k.Ij(F.rA,F);k.LI()};
aia=function(F){var k="",z=BDR(F);z.indexOf("//")===0&&(z=F.YG.protocol+":"+z);var x=z.lastIndexOf("/base.js");x!==-1&&(k=z.substring(0,x+1));if(z=Error().stack)if(z=z.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))z=z[1],z.includes(k)||g.yI(Error("Player module URL mismatch: "+(z+" vs "+k+".")));k=new p2R(F.Vh,k);nvY(F,k);return k};
nvY=function(F,k){var z={};z=(z.destroyed=function(){F.onApiChange()},z);
k.U=z};
HyH=function(F){if(F.YG.storeUserVolume){F=g.bn("yt-player-volume")||{};var k=F.volume;F={volume:isNaN(k)?100:g.l3(Math.floor(k),0,100),muted:!!F.muted}}else F={volume:100,muted:F.YG.mute};return F};
mB=function(F){F.mediaElement=F.YG.deviceIsAudioOnly?new g.MC(g.Ci("AUDIO")):vX.pop()||new g.MC(g.Ci("VIDEO"));g.b(F,F.mediaElement);var k=F.A4();k&&k.setMediaElement(F.mediaElement);try{F.YG.fJ?(F.x3&&F.events.er(F.x3),F.x3=F.events.N(F.mediaElement,"volumechange",F.OJG)):(F.mediaElement.ZP(F.D3.muted),F.mediaElement.setVolume(F.D3.volume/100))}catch(D){F.iG("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.VB(F.Cw);MO9(F);k=F.template;var z=F.mediaElement.T$();k.LJ=z;k.Q8=!1;k.LJ.parentNode||XE(k.bX,k.LJ,0);k.QS=new g.eU(0,0,0,0);PSY(k);qc(k);z=k.LJ;g.C6(z,"video-stream");g.C6(z,g.Wc.MAIN_VIDEO);var x=k.app.C();x.YZ&&z.setAttribute("data-no-fullscreen","true");x.V("html5_local_playsinline")?"playsInline"in Hw()&&(z.playsInline=!0):x.J$&&(z.setAttribute("webkit-playsinline",""),z.setAttribute("playsinline",""));x.Lu&&k.LJ&&k.N(z,"click",z.play,z);try{F.mediaElement.activate()}catch(D){F.iG("html5.missingapi",
2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(D&&typeof D==="object"&&"message"in D&&typeof D.message==="string"&&D.message.replace(/[;:,]/g,"_")))}};
fiD=function(F){if(!L7n(F)){var k=F.Pj().S9();k&&(k=k.Ke(),k instanceof Promise&&k.catch(function(){}));
TR(F,wB(F.getPlayerStateObject()))}};
MO9=function(F){var k=F.mediaElement;du()?F.Cw.N(k,"webkitpresentationmodechanged",F.Sm_):window.document.pictureInPictureEnabled&&(F.Cw.N(k,"enterpictureinpicture",function(){F.bv(!0)}),F.Cw.N(k,"leavepictureinpicture",function(){F.bv(!1)}));
kn&&(F.Cw.N(k,"webkitbeginfullscreen",function(){F.F9(3)}),F.Cw.N(k,"webkitendfullscreen",function(){F.F9(0)}))};
K79=function(F,k){var z=k.getPlayerType(),x=F.MR.U[z]||null;k!==F.Pj()&&k!==x&&(x==null||x.dispose(),F.MR.U[z]=k)};
W7H=function(F,k){k=k===void 0?!0:k;F.logger.debug("start clear presenting player");var z;if(z=F.s3){z=F.s3;var x=F.mediaElement;z=!!x&&x===z.mediaElement}z&&(F.VL(),mB(F));if(z=F.A4())z.VL(!k),z.M_(F.xL,F),z.getPlayerType()!==1&&z.dispose();k=F.MR;k.L=k.Y;F.logger.debug("finish clear presenting player")};
g.FwH=function(F,k,z,x){var D=F.gH;k===2&&(D=new IlR(F.YG));return new g.D2(F.YG,k,D,F.template,function(e,C,p){F.Vh.publish(e,C,p)},function(){return F.Vh.getVisibilityState()},F.visibility,F,z,x)};
wT=function(F,k,z,x,D){F=g.FwH(F,k,z,D);F=new g.yU(F);x&&F.LI();return F};
lm=function(F,k){return F.P5(k)?F.Pj():k};
QG=function(F,k){var z=F.A4(),x=F.Pj();return z&&k===x&&F.P5(k)&&F.P5(z)?z:k};
z2a=function(F){F.logger.debug("start application playback");if(F.Pj().getPlayerState().isError())F.logger.debug("start application playback done, player in error state");else{var k=hm(F);F.uu().isLoaded();k&&F.ye(6);k3I(F);QEC(F.jZ)||ouY(F)}};
ouY=function(F){if(!hm(F)){var k=rm(F.jZ);k&&!k.created&&E5H(F.jZ)&&(F.logger.debug("reload ad module"),k.create())}};
k3I=function(F){F.logger.debug("start presenter playback");var k=F.getVideoData(),z=F.jZ;QEC(z)||z.AB();!Son&&z.T.V("html5_allow_asmjs")&&Ucn(z);h_(z,"embed");h_(z,"kids");h_(z,"remote");h_(z,"miniplayer");h_(z,"offline");h_(z,"unplugged");h_(z,"ypc",!1,!0);h_(z,"ypc_clickwrap",!1,!0);h_(z,"yto",!1,!0);h_(z,"webgl",!1,!0);hSM(z)||(h_(z,"captions",!0),h_(z,"endscreen"),z.HJ()||z.Mz(),h_(z,"creatorendscreen",!0));z.HY();F.Vh.publish("videoready",k)};
s8=function(F){F=F.uu();F.ut();return Sk(F)};
yG5=function(F){F.logger.debug("start prepare initial playback");F.Dx();var k=F.config.args;mB(F);F.events.N(window,"resize",F.Pct);var z=F.uu();F.Vh.RI("onVolumeChange",F.D3);if(k&&dID(k)){var x=n_(F.YG);x&&!F.GO&&(k.fetch=0);var D=g.tJ(F.YG);D&&!F.GO&&(k.fetch=0);rT(F,k);g.tJ(F.YG)&&F.gH.tick("ep_pr_s");if(!x||F.GO)if(D&&!F.GO)x05(F);else if(!z.ut())F.playlist.onReady(function(){B2(F)})}F.Tl(F.Pj(),!1,!0);
g.n(F.Pj().getPlayerState(),128)||(k=Eak(!F.YG.deviceIsAudioOnly),k==="fmt.noneavailable"?F.iG("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):k==="html5.missingapi"?F.iG(k,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):z&&z.ut()&&s8(F)&&(F.YG.D7||F.YG.Tr)?GR(F):z.A0?F.Vh.mutedAutoplay({durationMode:z.mutedAutoplayDurationMode}):g.bn("yt-player-playback-on-reload")?(g.NA("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!F.YG.t4}),g.SZ("yt-player-playback-on-reload",!1),
GR(F)):ot(F.YG)||iHn(F),g.f_(F.YG)||FA(F.YG)==="MWEB"?(g.iM(g.$K(),function(){U8(F)}),g.iM(g.$K(),function(){XtH()})):(U8(F),XtH()),F.logger.debug("finish prepare initial playback"))};
U8=function(F){if(!F.V("use_rta_for_player"))if(F.V("fetch_att_independently"))g.WN(F.Yw);else{var k=F.getVideoData().botguardData;k&&g.gM(k,F.YG,F.getVideoData().Uc||"")}};
iHn=function(F){F.logger.debug("start initialize to CUED mode");F.Vh.publish("initializingmode");F.ye(2);F.V("embeds_web_enable_defer_loading_remote_js")&&g.WJ(F.YG)?g.iM(g.$K(),function(){h_(F.jZ,"remote")}):h_(F.jZ,"remote");
h_(F.jZ,"miniplayer");F.logger.debug("initialized to CUED mode")};
GR=function(F){F.logger.debug("start initialize application playback");var k=F.Pj();if(g.n(k.getPlayerState(),128))return!1;var z=k.getVideoData();s8(F)&&F.YG.Tr&&(vX.length&&F.aQ?(tm(F,{muted:!1,volume:F.D3.volume},!1),Zw(F,!1)):vX.length||F.D3.muted||(tm(F,{muted:!0,volume:F.D3.volume},!1),Zw(F,!0)));s8(F)&&g.tJ(F.YG)&&z.mutedAutoplay&&(tm(F,{muted:!0,volume:F.D3.volume},!1),Zw(F,!0));z.sf&&tm(F,{muted:!0,volume:F.D3.volume},!1);D0I(F,1,z,!1);F.Vh.publish("initializingmode");F.Tl(F.Pj());F.ye(3);
var x;if(!(x=!F.YG.uo)){if(x=F.s3){x=F.s3;var D=F.mediaElement;x=!!D&&D===x.mediaElement}x=x&&F.Hb}x&&(F.VL(),mB(F),k.setMediaElement(F.mediaElement));k.h2();if(g.n(k.getPlayerState(),128))return!1;z.eh||TR(F,3);return F.Hb=!0};
hm=function(F){F=cv(F.jZ);return!!F&&F.loaded};
$0p=function(F,k){if(!F.cj)return!1;var z=F.cj.startTimeMs*.001-1,x=F.cj.endTimeMs*.001;F.cj.type==="repeatChapter"&&x--;return Math.abs(k-z)<=1E-6||Math.abs(k-x)<=1E-6||k>=z&&k<=x};
e2D=function(F){var k=F.A4();k&&xJ(k.getVideoData())&&!k.Br()&&(k=j$D(F)*1E3-F.getVideoData().Lq,F.V("html5_gapless_new_slr")?(F=F.fz,v2(F.app,"gaplessshortslooprange"),k=new g.ps(0,k,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(F=F.app.A4())&&F.addCueRange(k)):F.setLoopRange({startTimeMs:0,endTimeMs:k,type:"shortsLoop"}))};
Cbk=function(F){var k=F.Pj();if(!(g.n(k.getPlayerState(),64)&&F.uu().isLivePlayback&&F.cj.startTimeMs<5E3)){if(F.cj.type==="repeatChapter"){var z,x=(z=UxR(F.iL()))==null?void 0:z.N4(),D;z=(D=F.getVideoData())==null?void 0:D.pn;x instanceof g.bp&&z&&(D=z[$9(z,F.cj.startTimeMs)],x.renderChapterSeekingAnimation(0,D.title));isNaN(Number(F.cj.loopCount))?F.cj.loopCount=0:F.cj.loopCount++;F.cj.loopCount===1&&F.Vh.ZQ("innertubeCommand",F.getVideoData().RL)}x={Sr:"application_loopRangeStart"};if(F.cj.type===
"clips"||F.cj.type==="shortsLoop")x.seekSource=58;k.seekTo(F.cj.startTimeMs*.001,x)}};
Yo5=function(F,k){var z=F.Vh.getAvailablePlaybackRates();k=Number(k.toFixed(2));F=z[0];z=z[z.length-1];k<=F?k=F:k>=z?k=z:(F=Math.floor(k*100+.001)%5,k=F===0?k:Math.floor((k-F*.01)*100+.001)/100);return k};
j$D=function(F,k){k=F.CN(k);if(!k)return F.MR.Y.Sg();k=lm(F,k);return c2(F,k.Sg(),k)};
c2=function(F,k,z){if(F.P5(z)){z=z.getVideoData();if(P2(F))z=k;else{F=F.qR;for(var x=g.l(F.L),D=x.next();!D.done;D=x.next())if(D=D.value,z.KJ===D.KJ){k+=D.G$/1E3;break}x=k;F=g.l(F.L);for(D=F.next();!D.done;D=F.next()){D=D.value;if(z.KJ===D.KJ)break;var e=D.G$/1E3;if(e<k)x+=D.durationMs/1E3+e-D.h5/1E3;else break}z=x}return z}return k};
Afn=function(F,k){if(F.getPresentingPlayerType()===3)return wB(F.MR.D_.getPlayerState());if((F.getVideoData().enableServerStitchedDai||g.Mk(F.getVideoData()))&&k===2){var z,x;return((z=F.kN)==null?0:z.On(F.getCurrentTime()))||((x=F.jz)==null?0:x.On())?F.E2:-1}return k!==2||F.P5()?F.E2:F.EL};
JGD=function(F){F.logger.debug("reset for new application playback");O8(F);F.setLoopVideo(!1);F.setLoopRange(null);F.Vh.publish("legacyadtrackingpingreset");F.ju={};F.w_=[];Skk(F.gH);if(F.kN){var k=F.kN,z=F.Pj();z.getPlayerType();FO(k,!1);GwH(k);UV5(k);k.playback=z}k=F.qR;F=F.Pj();F.getPlayerType()!==1&&im(k,"invalidParentVideoPlayerType");ez(k,!1);Q8D(k);k.Y=F};
x05=function(F,k){var z=(k?k:F.uu()).w1;F.gH.tick("ep_pr_r");if(z!=null&&(gox(F.playlist,z),F.Na))F.playlist.onReady(function(){B2(F,k)})};
rT=function(F,k){F.playlist&&(g.CC(F.playlist),F.playlist=null);k&&(F.GO&&(k.fetch=0),F.playlist=new box(F.YG,k))};
pTx=function(F){var k,z=Number((k=F.getVideoData().progressBarEndPosition)==null?void 0:k.utcTimeMillis)/1E3;!isNaN(z)&&(k=F.B7())&&(k-=F.getCurrentTime(),z=(z-k)*1E3,k=F.ju.progressEndBoundary,(k==null?void 0:k.start)!==z&&(k&&F.c$([k]),z=new g.ps(z,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),F.Pj().addCueRange(z),F.ju.progressEndBoundary=z))};
TR=function(F,k){F.logger.debug(function(){return"set external state "+k});
var z=F.A4();if(z){var x=z.getPlayerType();if(x===2&&!F.P5()){F.EL!==k&&(F.EL=k,F.Vh.RI("onAdStateChange",k));return}if(x===2&&F.P5()||x===5||x===6||x===7)if(k===-1||k===0||k===5)return}if(k===0){if(F.cj)return;if((z==null?0:z.Tf())&&g.Vi(F.YG)){F.playVideo();return}}F.E2!==k&&(F.E2=k,F.Vh.RI("onStateChange",k))};
Euk=function(F,k,z,x,D){x=x===void 0?Infinity:x;D=D===void 0?0:D;F.logger.debug(function(){return"Enqueuing playerType="+z+" at time="+x+"\n        videoId="+k.videoId});
var e=F.A4();z=z||e.getPlayerType();(e=D0I(F,z,k,!0))||(e=wT(F,z,k,!0));var C=F.Pj();if(z===2&&C){var p=e.getVideoData();C.Sw(p.clientPlaybackNonce,p.MD||"",p.breakType||0,p.YZ,p.videoId||"")}F.aP(e,x,0,D)};
XTY=function(F,k,z,x,D){var e="";e=F.YG.V("html5_autonav_autoplay_in_preload_key")?VG(F,z,k):IE(F,z,k.videoId,k.KJ);F.logger.debug(function(){return"start preload video "+e+", trigger="+D});
var C="",p=F.A4();if(p&&(C=F.YG.V("html5_autonav_autoplay_in_preload_key")?VG(F,p.getPlayerType(),p.getVideoData()):IE(F,p.getPlayerType(),p.getVideoData().videoId,p.getVideoData().KJ),e===C))return p.cn(!0),k.dispose(),null;k.ZR=!0;k=wT(F,z,k,!0);z===1&&K_(F.YG)||k.cn(!0);F.MR.j.set(e,k,x||3600);return k};
qsH=function(F,k,z,x){var D=XG(z);return IE(F,k,D,x,z.autonav==="1"||z.autonav===!0,z.autoplay==="1"||z.autoplay===!0||z.autoplay===1)};
VG=function(F,k,z){return IE(F,k,z.videoId,z.KJ,z.isAutonav,z.Mm)};
IE=function(F,k,z,x,D,e){D=D===void 0?!1:D;e=e===void 0?!1:e;k=k+"_"+z+"_"+x;F.YG.V("html5_autonav_autoplay_in_preload_key")&&(k+="_"+ +D+ +e);return k};
D0I=function(F,k,z,x){var D=F.YG.V("html5_autonav_autoplay_in_preload_key")?VG(F,k,z):IE(F,k,z.videoId,z.KJ);var e=F.MR.j.get(D)||null;if(!e||e.z4())return null;F.MR.j.remove(D);if(g.n(e.getPlayerState(),128))return e.dispose(),null;if(e===F.CN(k))return F.gH.infoGel({isCacheHit:!0}),e;if((e.getVideoData().oauthToken||z.oauthToken)&&e.getVideoData().oauthToken!==z.oauthToken)return null;k===1&&O8(F);x||F.Tl(e,!0);F.gH.infoGel({isCacheHit:!0});return e};
Nq5=function(F,k){var z;return k&&F.YG.Xz&&!((z=F.getVideoData())==null?0:z.backgroundable)};
u3D=function(F,k){return Nq5(F,k)?(F.zm?F.zm.start():F.T6(),!0):!1};
H2=function(F,k,z){k&&(k=F.CN(z))&&k===F.Pj()&&(k.getVideoData().Av=!0)};
aE=function(F,k,z){z=z===void 0?1:z;F.logger.debug(function(){return"start cue video, vid "+k.videoId+", type "+z});
if(k.ut()){var x=wT(F,z,k,!1);F.cancelPlayback(4,z);F.Tl(x);x.LI();if(z===1){F.ye(1);if(g.tJ(F.YG)&&!L9(k)){k.dispose();F.Pj().dispose();return}iHn(F)}F.logger.debug("finish cue video")}else F.logger.debug(function(){return"invalid VideoData in cueVideo"}),k.dispose(),(x=F.CN(z))&&x.dispose(),YJ(F.uu())&&z===2&&F.XK()};
wTD=function(F,k,z,x,D){k=rkR(k,z,x,D);(z=g.tJ(F.YG)&&!F.YG.PR)&&!F.GO&&(k.fetch=0);rT(F,k);g.tJ(F.YG)&&F.gH.tick("ep_a_pr_s");if(z&&!F.GO)z=F.uu(),Mh5(z,k).then(function(e){F.Na=!0;x05(F,e)});
else F.playlist.onReady(function(){B2(F)});
g.tJ(F.YG)&&F.gH.tick("ep_a_pr_r")};
B2=function(F,k){var z=g.tJ(F.YG)&&!F.YG.PR,x=z&&k?k:g.A_(F.playlist);k=z&&k?k:F.getVideoData();x&&(k.k9&&(F.YG.D7||F.YG.Tr)||!F.DO?(k=k.Av,x=F.uF(x,1),k&&H2(F,x)):aE(F,x,1));g.tJ(F.YG)&&F.gH.tick("ep_p_l");F.Na=!1;F.Vh.YN("onPlaylistUpdate")};
L7n=function(F){if(F.playlist&&g.Vq(F.YG)&&F.jd()){var k=F.YG.V("html5_player_autonav_logging");F.nextVideo(!1,k);return!0}return!1};
m0a=function(F,k,z,x,D,e,C){k={id:k,namespace:C!=null?C:"appapi"};e==="chapter"?(k.style=Ae.CHAPTER_MARKER,k.visible=!0):isNaN(D)||(e==="ad"?k.style=Ae.AD_MARKER:(k.style=Ae.TIME_MARKER,k.color=D),k.visible=!0);F.L0([new g.ps(z*1E3,x*1E3,k)],1);return!0};
Tq6=function(F,k,z,x,D,e){e=e===void 0?!0:e;var C=F.B7();if(!C)return e&&F.getVideoData().isLivePlayback&&F.w_.push({id:k,I3t:z,VUp:x}),!1;e=C-F.getCurrentTime();return m0a(F,k,z-e,x-e,void 0,void 0,D)};
lKI=function(F,k){F.w_=g.pT(F.w_,function(C){return C.id!==k});
for(var z=F.Pj(),x=z.Xb(),D=0;D<x.length;D++){var e=x[D];if(e.getId()===k)return z.removeCueRange(e),Sz(F,"cuerangesremoved",[e]),!0}return!1};
v2=function(F,k,z){var x=F.CN(z);x&&(k=x.H7(k),z&&F.getPresentingPlayerType()!==z||Sz(F,"cuerangesremoved",k))};
Q$Y=function(F){var k=(0,g.VE)(),z=F.getCurrentTime();F=F.getVideoData();z=1E3*(z-F.startSeconds);F.isLivePlayback&&(z=0);return k-Math.max(z,0)};
tm=function(F,k,z){F.YG.l$&&(F.D3=k,k.muted||Zw(F,!1),z&&F.YG.storeUserVolume&&!F.YG.fJ&&(z={volume:Math.floor(k.volume),muted:k.muted},z.unstorable||(g.SZ("yt-player-volume",z),g.SZ("yt-player-volume",z,2592E3))),h2n(F),z=g.SD&&F.mediaElement&&!F.mediaElement.TY(),F.YG.fJ&&!z||F.Vh.RI("onVolumeChange",{muted:k.muted,volume:k.volume,unstorable:!F.YG.storeUserVolume}))};
h2n=function(F){var k=F.getVideoData();if(!k.mA){k=F.YG.fJ?1:i$n(k);var z=F.mediaElement;z.ZP(F.D3.muted);try{z.setVolume(F.D3.volume*k/100)}catch(x){g.yI(new g.Fa("b183742307","multiplier: "+k+", volume: "+F.D3.volume))}}};
Zw=function(F,k){k!==F.aQ&&(F.aQ=k,F.Vh.YN("onMutedAutoplayChange",k))};
TL=function(F){return F.aQ&&F.getVideoData().mutedAutoplay};
s$Y=function(F){var k=sN(!0);return k&&(k===F.template.element||F.mediaElement&&k===F.mediaElement.T$())?k:null};
BqI=function(F,k){var z=window.screen&&window.screen.orientation;if((F.YG.V("lock_fullscreen2")||F.YG.B)&&z&&z.lock&&(!g.SD||!rfD))if(k){k=z.type.indexOf("portrait")===0;var x=F.template.getVideoAspectRatio(),D=k;x<1?D=!0:x>1&&(D=!1);if(!F.Ou||D!==k){z=z.lock(D?"portrait":"landscape");if(z!=null)z["catch"](function(){});
F.Ou=!0}}else F.Ou&&(F.Ou=!1,z.unlock())};
Sz=function(F,k,z){F.Vh.publish(k,z);var x=g.Vi(F.YG)||g.IB(F.YG)||g.g8(F.YG);if(z&&x){switch(k){case "cuerangemarkersupdated":var D="onCueRangeMarkersUpdated";break;case "cuerangesadded":D="onCueRangesAdded";break;case "cuerangesremoved":D="onCueRangesRemoved"}D&&F.Vh.ZQ(D,z.map(function(e){return{getId:function(){return this.id},
end:e.end,id:e.getId(),namespace:e.namespace==="ad"?"ad":"",start:e.start,style:e.style,visible:e.visible}}))}};
bm=function(F,k,z,x,D,e){z=z===void 0?!0:z;var C=F.CN(D);C&&(C.getPlayerType()===2&&!F.P5(C)||g.Uh(C.getVideoData()))||(F.getPresentingPlayerType()===3?F.MR.D_.seekTo(k,{zI:!z,zP:x,Sr:"application",seekSource:e}):(C&&C===F.Pj()&&F.cj&&!$0p(F,k)&&F.setLoopRange(null),F.seekTo(k,z,x,D,e)))};
G35=function(F,k,z,x){z&&(F.VL(),mB(F));z=F.A4();z.Su(k);var D=F.getVideoData(),e={};e.video_id=D.videoId;e.adformat=D.adFormat;D.isLivePlayback||(e.start=z.getCurrentTime(),e.resume="1");D.isLivePlayback&&p9(D)&&g.Pe(F.YG)&&(e.live_utc_start=z.B7(),e.resume="1");D.PR&&(e.vvt=D.PR);D.S&&(e.vss_credentials_token=D.S,e.vss_credentials_token_type=D.qZ);D.oauthToken&&(e.oauth_token=D.oauthToken);D.uo&&(e.force_gvi=D.uo);e.autoplay=1;e.reload_count=D.vj+1;e.reload_reason=k;D.oh&&(e.unplugged_partner_opt_out=
D.oh);D.uG&&(e.ypc_is_premiere_trailer=D.uG);D.playerParams&&(e.player_params=D.playerParams);F.loadVideoByPlayerVars(e,void 0,!0,void 0,void 0,x);k==="signature"&&F.kN&&ouY(F)};
U06=function(F,k){F.uu().autonavState=k;g.SZ("yt-player-autonavstate",k);F.Vh.publish("autonavchange",k)};
t$p=function(F){var k=F.getVideoData().mA,z=F.YG.dH,x=F.isInline()&&!F.getVideoData().BV,D=F.mediaElement;k||z||x?D.KP():(D.YU(),tm(F,F.D3))};
O8=function(F){var k=rm(F.iL());k&&k.created&&(F.logger.debug("reset ad module"),k.destroy())};
P2=function(F){return F.getVideoData().enableServerStitchedDai&&!!F.kN};
ZHp=function(F,k){k.bounds=F.getBoundingClientRect();for(var z=g.l(["display","opacity","visibility","zIndex"]),x=z.next();!x.done;x=z.next())x=x.value,k[x]=uU(F,x);k.hidden=!!F.hidden};
BDR=function(F){if(F.webPlayerContextConfig){var k=F.webPlayerContextConfig.trustedJsUrl;return k?Gs(k).toString():F.webPlayerContextConfig.jsUrl}return F.config.assets&&F.config.assets.js?F.config.assets.js:""};
vua=function(F,k){var z=F.CN(1);if(z){if(z.getVideoData().clientPlaybackNonce===k)return z;if((F=F.a6.Y)&&F.getVideoData().clientPlaybackNonce===k)return F}return null};
cf5=function(F){return F.name==="TypeError"&&F.stack.includes("/s/player/")&&RS()<=105};
PbH=function(F){return F.isTimeout?"NO_BID":"ERR_BID"};
OHC=function(){var F=null;ZSp().then(function(k){return F=k},function(k){return F=PbH(k)});
return F};
V$R=function(){var F=S8(1E3,"NO_BID");return g.VD(Lq5([ZSp(),F]).UT(PbH),function(){F.cancel()})};
dT=function(F){return F.m_?g.M5(g.nu(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
Jm=function(F){this.player=F;this.U=this.Y=1};
aKH=function(F,k,z,x,D,e){k.client||(k.client={});F.player.C().V("h5_remove_url_for_get_ad_break")||(k.client.originalUrl=z);var C=AB(z),p=g.Lw(z)?!1:!0;(C||p)&&typeof Intl!=="undefined"&&(k.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);p=g.Lw(z)?!1:!0;if(C||p||x!==""){var E={};z=iP(Nz(x)).split("&");var X=new Map;z.forEach(function(q){q=q.split("=");q.length>1&&X.set(q[0].toString(),decodeURIComponent(q[1].toString()))});
X.has("bid")&&(E.bid=X.get("bid"));E.params=[];IKY.forEach(function(q){X.has(q)&&(q={key:q,value:X.get(q)},E.params.push(q))});
HHp(F,E);k.adSignalsInfo=E}k.client.unpluggedAppInfo||(k.client.unpluggedAppInfo={});k.client.unpluggedAppInfo.enableFilterMode=!1;z=D.Y.cosver;z!=null&&z!=="cosver"&&(k.client.osVersion=z);z=D.Y.cplatform;z!=null&&z!=="cplatform"&&z!==""&&(k.client.platform=z);z=D.Y.cmodel;z!=null&&z!=="cmodel"&&(k.client.deviceModel=z);z=D.Y.cplayer;z!=null&&z!=="cplayer"&&(k.client.playerType=z);z=D.Y.cbrand;z!=null&&z!=="cbrand"&&(k.client.deviceMake=z);k.user||(k.user={});k.user.lockedSafetyMode=!1;(D.V("embeds_web_enable_iframe_api_send_full_embed_url")||
D.V("embeds_enable_autoplay_and_visibility_signals"))&&g.Vq(D)&&SBY(k,e,F.player.getPlayerState(1))};
d0p=function(F,k){var z=!1;if(k==="")return z;k.split(",").forEach(function(x){var D={},e={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},C="ACTIVE";x[0]==="!"&&(x=x.substring(1),C="INACTIVE");x=x.split("-");x.length<3||(x[0]in Ss6&&(e.clientName=Ss6[x[0]]),x[1]in bHn&&(e.platform=bHn[x[1]]),e.applicationState=C,e.clientVersion=x.length>2?x[2]:"",D.remoteClient=e,F.remoteContexts?F.remoteContexts.push(D):F.remoteContexts=[D],z=!0)});
return z};
yfk=function(F){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in Jfp))return!1;F=F.split(RegExp("[:&]"));var k=Jfp.FLAG_AUTO_CAPTIONS_DEFAULT_ON,z="f"+(1+Math.floor(k/31)).toString();k=1<<Math.floor(k%31);for(var x=0,D=F.length;x<D;x++){var e=F[x].split("=");if(e[0]===z&&parseInt("0x"+e[1],16)&k)return!0}return!1};
HHp=function(F,k){F=F.player.C();if(g.MU(F)||K_(F)){F=g.LX("INNERTUBE_CONTEXT");var z,x;(F==null?0:(z=F.adSignalsInfo)==null?0:z.advertisingId)&&typeof(F==null?void 0:(x=F.adSignalsInfo)==null?void 0:x.limitAdTracking)!=="undefined"&&(k.advertisingId=F.adSignalsInfo.advertisingId,k.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",k.limitAdTracking=F.adSignalsInfo.limitAdTracking)}};
KwC=function(F,k,z,x,D){var e=z.DRIFT_FROM_HEAD_MS&&!Number.isNaN(z.DRIFT_FROM_HEAD_MS)?Math.trunc(z.DRIFT_FROM_HEAD_MS):0,C=R2C.exec(k);C=C!=null&&C.length>=2?C[1]:"";var p=gu5.test(k),E=Ysa.exec(k);E=E!=null&&E.length>=2?E[1]:"";var X=nuM.exec(k);X=X!=null&&X.length>=2&&!Number.isNaN(Number(X[1]))?Number(X[1]):1;var q=M$6.exec(k);q=q!=null&&q.length>=2?q[1]:"0";var N=bW(F.player.C().e5),u=F.player.getVideoData(1),w=g.i0(u.Xf,!0),m="BISCOTTI_ID"in z?z.BISCOTTI_ID:"";aKH(F,w,k,m.toString(),F.player.C(),
u);u={splay:!1,lactMilliseconds:z.LACT.toString(),playerHeightPixels:Math.trunc(z.P_H),playerWidthPixels:Math.trunc(z.P_W),vis:Math.trunc(z.VIS),signatureTimestamp:20181,autonavState:dT(F.player.C())};x&&(x={},d0p(x,z.YT_REMOTE)&&(u.mdxContext=x));if(x=Lw6.includes(N)?void 0:g.bP("PREF")){for(var h=x.split(RegExp("[:&]")),B=0,U=h.length;B<U;B++){var v=h[B].split("=");if((v[0].toUpperCase()==="SML"||v[0].toUpperCase()==="GSML")&&v.length>1&&v[1].toUpperCase()==="TRUE"){w.user.lockedSafetyMode=!0;break}}u.autoCaptionsDefaultOn=
yfk(x)}k=fK9.exec(k);(k=k!=null&&k.length>=2?k[1]:"")&&E&&(w.user.credentialTransferTokens=[{token:k,scope:"VIDEO"}]);k={contentPlaybackContext:u};C={adBlock:Math.trunc(z.AD_BLOCK),params:C,breakIndex:X,breakPositionMs:q,clientPlaybackNonce:z.CPN,topLevelDomain:N,isProxyAdTagRequest:p,context:w,adSignalsInfoString:iP(Nz(m.toString())),overridePlaybackContext:k};D!==void 0&&(C.cueProcessedMs=Math.round(D).toString());E&&(C.videoId=E);z.LIVE_TARGETING_CONTEXT&&(C.liveTargetingParams=z.LIVE_TARGETING_CONTEXT);
z.AD_BREAK_LENGTH&&(C.breakLengthMs=Math.trunc(z.AD_BREAK_LENGTH*1E3).toString());e&&(C.driftFromHeadMs=e.toString());C.currentMediaTimeMs=Math.round(F.player.getCurrentTime(1)*1E3);(F=F.player.getGetAdBreakContext())&&(C.getAdBreakContext=F);return C};
WwM=function(){Jm.apply(this,arguments)};
FHC=function(F,k,z,x,D){var e=z.Ue;var C=z.Rb;var p=F.player.C().sF,E=0;z.cueProcessedMs&&C&&!e&&(z=C.end-C.start,z>0&&(E=Math.floor(z/1E3)));var X={AD_BLOCK:D,AD_BREAK_LENGTH:e?e.B8:E,AUTONAV_STATE:dT(F.player.C()),CA_TYPE:"image",CPN:F.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:F.player.BO()*1E3,LACT:Vj(),LIVE_INDEX:e?F.U++:1,LIVE_TARGETING_CONTEXT:e&&e.context?e.context:"",MIDROLL_POS:C?Math.round(C.start/1E3):0,MIDROLL_POS_MS:C?Math.round(C.start):0,VIS:F.player.getVisibilityState(),
P_H:F.player.Ka().eU().height,P_W:F.player.Ka().eU().width,YT_REMOTE:p?p.join(","):""},q=qz(Xe);Object.keys(q).forEach(function(N){q[N]!=null&&(X[N.toUpperCase()]=q[N].toString())});
x!==""&&(X.BISCOTTI_ID=x);x={};EY(k)&&(x.sts="20181",(F=F.player.C().forcedExperiments)&&(x.forced_experiments=F));return Cg(g.cN(k,X),x)};
kHI=function(F,k){var z=F.player.C(),x,D=(x=F.player.getVideoData(1))==null?void 0:x.oauthToken;return g.iJ(z,D).then(function(e){if(e&&pg()){var C=d5();JM(C,e)}return g.od(F.player.Bl(C),k,"/youtubei/v1/player/ad_break").then(function(p){return p})})};
owR=function(F){this.oU=F};
zzn=function(F){this.T=F};
xYp=function(F){this.oU=F};
DYI=function(F){g.S.call(this);this.Y=F;this.C4=i5x(this)};
i5x=function(F){var k=new Xzx(F.Y.sJ);g.b(F,k);F=[new owR(F.Y.oU),new zzn(F.Y.T),new xYp(F.Y.oU),new az(F.Y.vO,F.Y.JI),new bs,new yc(F.Y.Eh,F.Y.fF,F.Y.oU),new Sv,new Ha];F=g.l(F);for(var z=F.next();!z.done;z=F.next())qKC(k,z.value);F=g.l(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(z=F.next();!z.done;z=F.next())dk(k,z.value,function(){});
return k};
yG=function(F){var k=F.xG,z=F.Ff;F=F.Fv;var x=new tMx,D={dI:new AIa(k.get(),z),Ff:z};return{IS:new CN(z,F,k,D),context:D,Kn:x}};
RE=function(F,k,z,x,D){g.S.call(this);this.L=k;this.ek=z;this.xG=x;this.O3=D;this.listeners=[];var e=new PW(this);g.b(this,e);e.N(F,"internalAbandon",this.Ya);this.addOnDisposeCallback(function(){g.VB(e)})};
gT=function(F){this.T=F;this.adVideoId=this.Y=this.videoId=this.adCpn=this.contentCpn=null;this.W=!0;this.L=this.U=!1;this.adFormat=null;this.j="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
$YR=function(F){F.contentCpn=null;F.adCpn=null;F.videoId=null;F.adVideoId=null;F.adFormat=null;F.j="AD_PLACEMENT_KIND_UNKNOWN";F.actionType="unknown_type";F.U=!1;F.L=!1};
jZR=function(F,k){F=g.l(k);for(k=F.next();!k.done;k=F.next())if((k=k.value.renderer)&&(k.instreamVideoAdRenderer||k.linearAdSequenceRenderer||k.sandwichedLinearAdRenderer||k.instreamSurveyAdRenderer)){nl("ad_i");g.MF({isMonetized:!0});break}};
ezC=function(F){var k;(k=F.T.getVideoData(1))!=null&&k.mp&&(F.L=!1,k={},F.Y&&F.videoId&&(k.cttAuthInfo={token:F.Y,videoId:F.videoId}),Ll("video_to_ad",k))};
KR=function(F){F.L=!1;var k={};F.Y&&F.videoId&&(k.cttAuthInfo={token:F.Y,videoId:F.videoId});Ll("ad_to_video",k);CuC(F)};
CuC=function(F){if(F.U)if(F.j==="AD_PLACEMENT_KIND_START"&&F.actionType==="video_to_ad")RH("video_to_ad");else{var k={adBreakType:UI(F.j),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:F.videoStreamType};F.actionType==="ad_to_video"?(F.contentCpn&&(k.targetCpn=F.contentCpn),F.videoId&&(k.targetVideoId=F.videoId)):(F.adCpn&&(k.targetCpn=F.adCpn),F.adVideoId&&(k.targetVideoId=F.adVideoId));F.adFormat&&(k.adType=F.adFormat);F.contentCpn&&
(k.clientPlaybackNonce=F.contentCpn);F.videoId&&(k.videoId=F.videoId);F.adCpn&&(k.adClientPlaybackNonce=F.adCpn);F.adVideoId&&(k.adVideoId=F.adVideoId);g.MF(k,F.actionType);F.T.C().experiments.Ca("html5_ads_csi_qoes")&&(k=F.T.uJ(F.actionType==="ad_to_video"?1:2),k=(0,g.VE)()-1E3*k,Kl("qoes",k,F.actionType))}};
Y5=function(F){g.S.call(this);this.T=F;this.Y=new Map;this.L=new PW(this);g.b(this,this.L);this.L.N(this.T,g.X$("ad"),this.onCueRangeEnter,this);this.L.N(this.T,g.qQ("ad"),this.onCueRangeExit,this)};
A3R=function(F,k,z,x,D){g.ps.call(this,k,z,{id:F,namespace:"ad",priority:D,visible:x})};
nD=function(F){this.T=F};
Mc=function(F){this.T=F;g.lw(this.T.C().experiments,"tv_pacf_logging_sample_rate")};
vw=function(F,k){k=k===void 0?!1:k;return F.T.C().V("html5_ssap_force_ads_ctmp")?!0:(k||F.T.C().Jp())&&F.T.C().V("html5_ssap_pacf_qoe_ctmp")};
LD=function(F){var k,z;return(z=(k=F.T.getVideoData(1))==null?void 0:g.Mk(k))!=null?z:!1};
zU=function(F,k){return F.T.C().V(k)};
po9=function(F){return F.T.C().V("substitute_ad_cpn_macro_in_ssdai")};
Ul=function(F){var k,z,x;return((k=F.T.getVideoData(1).getPlayerResponse())==null?void 0:(z=k.playerConfig)==null?void 0:(x=z.daiConfig)==null?void 0:x.enableServerStitchedDai)||!1};
Ton=function(F){return F.T.C().V("html5_enable_vod_slar_with_notify_pacf")};
Ewp=function(F){return F.T.C().V("html5_recognize_predict_start_cue_point")};
$X=function(F){return F.T.C().experiments.Ca("enable_desktop_player_underlay")};
Xop=function(F){return F.T.C().experiments.Ca("html5_load_empty_player_in_media_break_sub_lra")};
bN=function(F){return F.T.C().experiments.Ca("html5_load_ads_instead_of_cue")};
dB=function(F){return F.T.C().experiments.Ca("html5_preload_ads")};
qnn=function(F){return F.T.C().experiments.Ca("should_ignore_cuepoints_during_lifa_preroll")};
xi=function(F){return F.T.C().experiments.Ca("enable_ads_control_flow_deterministic_id_generation")};
NKD=function(F){return F.T.C().experiments.Ca("enable_desktop_discovery_video_abandon_pings")||g.MU(F.T.C())};
uVI=function(F){return F.T.C().experiments.Ca("enable_progres_commands_lr_feeds")};
tk=function(F){return F.T.C().experiments.Ca("html5_cuepoint_identifier_logging")};
woI=function(F){switch(F){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression";
case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}};
mYC=function(){g.uG.call(this);var F=this;this.Y={};this.addOnDisposeCallback(function(){for(var k=g.l(Object.keys(F.Y)),z=k.next();!z.done;z=k.next())delete F.Y[z.value]})};
fD=function(){if(TKC===null){TKC=new mYC;c8(Gr).L="b";var F=c8(Gr),k=Tr(F)=="h"||Tr(F)=="b",z=!(H8(),!1);k&&z&&(F.W=!0,F.S=new ZfC)}return TKC};
lsk=function(F,k,z){F.Y[k]=z};
QZx=function(F){switch(F){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen";
case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip";
case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}};
KD=function(F,k,z){this.ek=F;this.T=k;this.Ff=z;this.L=new Set;this.Y=new Map;fD().subscribe("adactiveviewmeasurable",this.xb,this);fD().subscribe("adfullyviewableaudiblehalfdurationimpression",this.nj,this);fD().subscribe("adviewableimpression",this.VF,this);fD().subscribe("adaudioaudible",this.lT,this);fD().subscribe("adaudiomeasurable",this.bT,this)};
Fn=function(F,k,z){var x=z.Hn,D=z.Gi,e=z.listener,C=z.lk;z=z.lK===void 0?!1:z.lK;if(F.Y.has(k))To("Unexpected registration of layout in LidarApi");else{if(C){if(F.L.has(C))return;F.L.add(C)}F.Y.set(k,e);Cc(H8().zD,"fmd",1);bcn(c8(Gr),x);var p=z?k:void 0;lsk(fD(),k,{H2:function(){if(!D)return{};var E=F.T.getPresentingPlayerType(!0),X;return(X=F.T.getVideoData(E))!=null&&X.isAd()?{currentTime:F.ek.get().getCurrentTimeSec(E,!1,p),duration:D,isPlaying:W2(F.ek.get(),E).isPlaying(),isVpaid:!1,isYouTube:!0,
volume:F.ek.get().isMuted()?0:F.ek.get().getVolume()/100}:{}}})}};
kA=function(F,k){F.Y.has(k)?(F.Y.delete(k),delete fD().Y[k]):To("Unexpected unregistration of layout in LidarApi")};
hzR=function(F,k){if(F.T.isLifaAdPlaying()){var z=F.T.CF(!0,!0);F.CB(k,z.width*.5*1.1,z.height*.25*1.1,z.width*.5*.9,z.height*.5*.9)}};
BK5=function(F,k,z){var x={};sZD(F,x,k,z);r36(x);x.LACT=oX(function(){return Vj().toString()});
x.VIS=oX(function(){return F.getVisibilityState().toString()});
x.SDKV="h.3.0";x.VOL=oX(function(){return F.isMuted()?"0":Math.round(F.getVolume()).toString()});
x.VED="";return x};
GHk=function(F,k){var z={};if(k)return z;if(!F.kind)return g.JV(Error("AdPlacementConfig without kind")),z;if(F.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||F.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!F.adTimeOffset||!F.adTimeOffset.offsetStartMilliseconds)return g.JV(Error("malformed AdPlacementConfig")),z;z.MIDROLL_POS=oX(QD(Math.round(Ag(F.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else z.MIDROLL_POS=oX(QD("0"));return z};
oX=function(F){return{toString:function(){return F()}}};
UYx=function(F,k,z){function x(p,E){(E=z[E])&&(e[p]=E)}
function D(p,E){(E=z[E])&&(e[p]=C(E))}
if(!z||g.SI(z))return F;var e=Object.assign({},F),C=k?encodeURIComponent:function(p){return p};
D("DV_VIEWABILITY","doubleVerifyViewability");D("IAS_VIEWABILITY","integralAdsViewability");D("MOAT_INIT","moatInit");D("MOAT_VIEWABILITY","moatViewability");x("GOOGLE_VIEWABILITY","googleViewability");x("VIEWABILITY","viewability");return e};
sZD=function(F,k,z,x){k.CPN=oX(function(){var D;(D=F.getVideoData(1))?D=D.clientPlaybackNonce:(g.yI(Error("Video data is null.")),D=null);return D});
k.AD_MT=oX(function(){if(x!=null)var D=x;else{var e=z;F.C().V("html5_ssap_use_cpn_to_get_time")||(e=void 0);if(F.C().V("enable_h5_shorts_ad_fill_ad_mt_macro")||F.C().V("enable_desktop_discovery_pings_ad_mt_macro")||g.MU(F.C())){var C=F.getPresentingPlayerType(!0),p;D=((p=F.getVideoData(C))==null?0:p.isAd())?tED(F,C,e):0}else D=tED(F,2,e)}return Math.round(Math.max(0,D*1E3)).toString()});
k.MT=oX(function(){return Math.round(Math.max(0,F.getCurrentTime(1,!1)*1E3)).toString()});
k.P_H=oX(function(){return F.Ka().eU().height.toString()});
k.P_W=oX(function(){return F.Ka().eU().width.toString()});
k.PV_H=oX(function(){return F.Ka().getVideoContentRect().height.toString()});
k.PV_W=oX(function(){return F.Ka().getVideoContentRect().width.toString()})};
r36=function(F){F.CONN=oX(QD("0"));F.WT=oX(function(){return Date.now().toString()})};
tED=function(F,k,z){return z!==void 0?F.getCurrentTime(k,!1,z):F.getCurrentTime(k,!1)};
Z55=function(){};
vwa=function(F,k,z,x,D){var e,C,p,E,X,q,N,u,w,m,h,B,U;g.O(function(v){switch(v.Y){case 1:e=!!k.scrubReferrer;C=g.cN(k.baseUrl,UYx(z,e,x));p={};if(!k.headers){v.Sk(2);break}E=F.j();if(!E.Y){X=E.getValue();v.Sk(3);break}return g.c(v,E.Y,4);case 4:X=v.L;case 3:q=X;N=g.l(k.headers);for(u=N.next();!u.done;u=N.next())switch(w=u.value,w.headerType){case "VISITOR_ID":g.LX("VISITOR_DATA")&&(p["X-Goog-Visitor-Id"]=g.LX("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.LX("EOM_VISITOR_DATA")&&(p["X-Goog-EOM-Visitor-Id"]=
g.LX("EOM_VISITOR_DATA"));break;case "USER_AUTH":q&&(p.Authorization="Bearer "+q);break;case "PLUS_PAGE_ID":(m=F.W())&&(p["X-Goog-PageId"]=m);break;case "AUTH_USER":h=F.Y();!q&&h&&(p["X-Goog-AuthUser"]=h);break;case "DATASYNC_ID":if(B=void 0,(B=F.U())==null?0:B.Ca("enable_datasync_id_header_in_web_vss_pings"))U=F.L(),AB(C)&&g.LX("LOGGED_IN")&&U&&(p["X-YouTube-DataSync-Id"]=U)}"X-Goog-EOM-Visitor-Id"in p&&"X-Goog-Visitor-Id"in p&&delete p["X-Goog-Visitor-Id"];case 2:g.MK(C,void 0,e,Object.keys(p).length!==
0?p:void 0,"",!0,D),g.Tp(v)}})};
c3x=function(F,k,z,x,D){this.j=F;this.W=k;this.Y=z;this.L=x;this.U=D};
Pu5=function(F,k){this.Y=F;this.Ff=k};
zY=function(F,k,z,x,D,e,C){var p=p===void 0?new c3x(function(){var E=F.C(),X=F.getVideoData(1);return g.iJ(E,X?g.dy(X):"")},function(){return F.C().pageId},function(){return F.C().t4},function(){var E;
return(E=F.C().datasyncId)!=null?E:""},function(){return F.C().experiments}):p;
this.T=F;this.L=k;this.Fm=z;this.xG=x;this.IS=D;this.Ff=e;this.Kn=C;this.j=p;this.t1=null;this.Y=new Map;this.U=new Pu5(p,this.Ff)};
VEY=function(F,k,z,x,D){var e=HF(F.L.get(),z);e?(z=Hn(F,O5k(e),e,void 0,void 0,x),k.hasOwnProperty("baseUrl")?F.j.send(k,z):F.U.send(k,z,{},D)):To("Trying to ping from an unknown layout",void 0,void 0,{layoutId:z})};
Ttn=function(F,k,z,x,D,e){x=x===void 0?[]:x;var C=HF(F.L.get(),k);if(C){var p=F.Fm.get().Ui(k,z),E=Hn(F,O5k(C),C,D,e);x.forEach(function(X,q){X.baseUrl&&(F.U.send(X.baseUrl,E,p,X.attributionSrcMode),X.serializedAdPingMetadata&&F.IS.f0("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,C,new W_5(X,q),void 0,void 0,C.adLayoutLoggingData))})}else To("Trying to track from an unknown layout.",void 0,void 0,{layoutId:k,
trackingType:z})};
ZV=function(F,k){F.T.sendVideoStatsEngageEvent(k,void 0,2)};
Dk=function(F,k){g.NA("adsClientStateChange",k)};
IsI=function(F,k){F.Y.has(k.rX())?To("Trying to register an existing AdErrorInfoSupplier."):F.Y.set(k.rX(),k)};
H5D=function(F,k){F.Y.delete(k.rX())||To("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
Cp=function(F,k,z){typeof z==="string"?F.T.getVideoData(1).sQ(k,z):F.T.getVideoData(1).UK(k,z)};
O5k=function(F){var k=XX(F.clientMetadata,"metadata_type_ad_placement_config");F=XX(F.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:k,u3:F}};
Hn=function(F,k,z,x,D,e){var C=z?as6(F):{},p=z?SnR(F,z.layoutId):{},E=b5k(F),X,q=D!=null?D:(X=sI(F.xG.get(),2))==null?void 0:X.clientPlaybackNonce;D=void 0;if(z){var N;if((N=F.Kn.Y.get(z.layoutId))==null?0:N.lK)D=z.layoutId}N={};F=Object.assign({},BK5(F.T,D,x),GHk(k.adPlacementConfig,(z==null?void 0:z.renderingContent)!==void 0),p,C,E,(N.FINAL=oX(function(){return"1"}),N.AD_CPN=oX(function(){return q||""}),N));
(z==null?void 0:z.renderingContent)!==void 0||(F.SLOT_POS=oX(function(){return(k.u3||0).toString()}));
z={};e=Object.assign({},F,e);F=g.l(Object.values(dYa));for(x=F.next();!x.done;x=F.next())x=x.value,C=e[x],C!=null&&C.toString()!=null&&(z[x]=C.toString());return z};
as6=function(F){var k={},z,x=(z=F.t1)==null?void 0:z.Sj/1E3;x!=null&&(k.SURVEY_ELAPSED_MS=oX(function(){return Math.round(x*1E3).toString()}));
k.SURVEY_LOCAL_TIME_EPOCH_S=oX(function(){return Math.round(Date.now()/1E3).toString()});
return k};
SnR=function(F,k){F=F.Y.get(k);if(!F)return{};F=F.o2();if(!F)return{};k={};return k.YT_ERROR_CODE=F.u9.toString(),k.ERRORCODE=F.xt.toString(),k.ERROR_MSG=F.errorMessage,k};
b5k=function(F){var k={},z=F.T.getVideoData(1);k.ASR=oX(function(){var x;return(x=z==null?void 0:z.T9)!=null?x:null});
k.EI=oX(function(){var x;return(x=z==null?void 0:z.eventId)!=null?x:null});
return k};
xA=function(F,k,z){g.S.call(this);this.T=F;this.ym=k;this.Ff=z;this.listeners=[];this.FP=null;this.k$=new Map;k=new g.yQ(this);g.b(this,k);k.N(F,"videodatachange",this.MZQ);k.N(F,"serverstitchedvideochange",this.cvf);this.Qw=sI(this)};
sI=function(F,k){var z=F.T.getVideoData(k);return z?F.zx(z,k||F.T.getPresentingPlayerType(!0)):null};
J3n=function(F,k,z){var x=F.zx(k,z);F.Qw=x;F.listeners.forEach(function(D){D.VK(x)})};
y3I=function(F){switch(F){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}};
iz=function(F,k,z){g.S.call(this);this.T=F;this.xG=k;this.Ff=z;this.listeners=[];this.oK=[];this.Y=function(){To("Called 'doUnlockPreroll' before it's initialized.")};
k=new PW(this);z=new g.yQ(this);g.b(this,z);g.b(this,k);k.N(F,"progresssync",this.Zvf);k.N(F,"presentingplayerstatechange",this.bvh);k.N(F,"fullscreentoggled",this.onFullscreenToggled);k.N(F,"onVolumeChange",this.onVolumeChange);k.N(F,"minimized",this.I3);k.N(F,"overlayvisibilitychange",this.kR);k.N(F,"shortsadswipe",this.D$);k.N(F,"resize",this.OH);z.N(F,g.X$("appad"),this.MB)};
Dj=function(F){LD(F.Ff.get())||F.Y()};
RzC=function(F,k){F.oK=F.oK.filter(function(z){return z!==k})};
$A=function(F,k,z){return F.getCurrentTimeSec(k,z)};
gwH=function(F,k){var z;k=(z=F.xG.get().k$.get(k))!=null?z:null;if(k===null)return To("Expected ad video start time on playback timeline"),0;F=F.T.getCurrentTime(2,!0);return F<k?0:F-k};
W2=function(F,k){return F.T.getPlayerStateObject(k)};
Yna=function(F){var k=F.T.Ka().eU();F=F.T.CF(!0,!0);return k.height-(F.height+F.top)};
nwI=function(F){F.T.cueVideoByPlayerVars({videoId:"empty_video"},2)};
yII=function(F,k){var z=F.T.C();g.O5(z)||z.controlsType!=="3"||F.T.Ka().uw(k)};
jo=function(F,k){g.C6(F.T.getRootNode(),k)};
eo=function(F,k){g.p6(F.T.getRootNode(),k)};
MEC=function(F,k,z,x,D){g.S.call(this);var e=this,C=LE(function(){return new zZ(e.Ff)});
g.b(this,C);var p=LE(function(){return new ik(C,e.Ff)});
g.b(this,p);var E=LE(function(){return new Vs});
g.b(this,E);x=LE(function(){return new PF(F)});
g.b(this,x);var X=LE(function(){return new D7(C,p,e.Ff)});
g.b(this,X);var q=LE(function(){return new Ad});
g.b(this,q);this.z$=LE(function(){return new KE(D)});
g.b(this,this.z$);this.yz=LE(function(){return new gT(k)});
g.b(this,this.yz);this.Jl=LE(function(){return new Y5(k)});
g.b(this,this.Jl);this.sJ=LE(function(){return new nD(k)});
g.b(this,this.sJ);this.Ff=LE(function(){return new Mc(k)});
g.b(this,this.Ff);var N=LE(function(){return new Qi(e.Ff)});
g.b(this,N);var u=LE(function(){return new sl(C,X,p,e.Ff,N,null,null,null,null)});
g.b(this,u);this.xG=LE(function(){return new xA(k,q,e.Ff)});
g.b(this,this.xG);var w=yG({xG:this.xG,Ff:this.Ff,Fv:N}),m=w.context,h=w.Kn;this.IS=w.IS;this.ek=LE(function(){return new iz(k,e.xG,e.Ff)});
g.b(this,this.ek);this.Fm=LE(function(){return new KD(e.ek,k,e.Ff)});
g.b(this,this.Fm);this.oU=LE(function(){return new zY(k,E,e.Fm,e.xG,e.IS,e.Ff,h)});
g.b(this,this.oU);this.W7=new cF(x,u,z,this.Ff,F,this.xG,this.ek,this.yz);g.b(this,this.W7);var B=new RE(k,this.W7,this.ek,this.xG);this.q0=LE(function(){return B});
this.Il=B;this.Cp=new Ol(x,X,this.Jl,this.q0,m);g.b(this,this.Cp);this.zA=new g0(this.Ff,x,X,u,this.xG,this.Cp,z);g.b(this,this.zA);this.Hc={W1:new Map,U7:new Map,JR:new Map,Gw:new Map,wJ:new Map};this.listeners=[];this.CV={zA:this.zA,fF:this.Ff.get(),BR:this.z$.get(),oQ:this.ek.get(),W7:this.W7,qt:C.get(),FE:null,JI:{X6:function(){}},
vO:E.get(),Eh:this.xG.get()}};
CQ=function(F,k){g.S.call(this);this.Ix=k;this.Ix.get().addListener(this)};
AY=function(F){this.Y=F};
LHI=function(F,k){if(!F)return{Rq:[],adSlots:[],SE:!0,ssdaiAdsConfig:void 0};F.trackingParams&&Hc(F.trackingParams);if(F.adThrottled)return{Rq:[],adSlots:[],SE:!0,ssdaiAdsConfig:void 0};var z,x=(z=F.adSlots)!=null?z:[],D;z=(D=F.playerAds)!=null?D:[];if(!(z&&z.length||x.length))return{Rq:[],adSlots:x,SE:!1,ssdaiAdsConfig:void 0};D=z.map(function(C){return C.adPlacementRenderer}).filter(function(C){return!(!C||!C.renderer)});
if(!D.length&&!x.length)return{Rq:[],adSlots:x,SE:!1,ssdaiAdsConfig:void 0};if(k.end>0){var e=k.end.toString();D.forEach(function(C){(C=C.config&&C.config.adPlacementConfig)&&C.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&C.adTimeOffset&&C.adTimeOffset.offsetEndMilliseconds==="-1"&&C.adTimeOffset.offsetEndMilliseconds!==e&&(C.adTimeOffset.offsetEndMilliseconds=e)});
x.map(function(C){return g.J(C,Y8)}).forEach(function(C){var p;
(C=C==null?void 0:(p=C.slotEntryTrigger)==null?void 0:p.mediaTimeRangeTrigger)&&C.offsetEndMilliseconds==="-1"&&(C.offsetEndMilliseconds=e)})}return{Rq:D,
adSlots:x,SE:!1,ssdaiAdsConfig:F.ssdaiAdsConfig}};
pQ=function(F){g.S.call(this);this.T=F;this.listeners=[];this.Y=new PW(this);g.b(this,this.Y);this.Y.N(this.T,"aduxclicked",this.onAdUxClicked);this.Y.N(this.T,"aduxmouseover",this.f_);this.Y.N(this.T,"aduxmouseout",this.Aa);this.Y.N(this.T,"muteadaccepted",this.KY$)};
fsC=function(F,k,z){k=g.tW(k,function(x){return new OMR(x,z,x.id)});
F.T.ZQ("onAdUxUpdate",k)};
ET=function(F,k){F=g.l(F.listeners);for(var z=F.next();!z.done;z=F.next())k(z.value)};
Xn=function(F,k){this.L=F;this.U=k===void 0?!1:k;this.Y={}};
KHn=function(F,k){var z=F.startSecs+F.B8;z=z<=0?null:z;if(z===null)return null;switch(F.event){case "start":case "continue":case "stop":break;case "predictStart":if(k)break;return null;default:return null}k=Math.max(F.startSecs,0);return{zb:new Gl(k,z),DJK:new nt(k,z-k,F.context,F.identifier,F.event,F.Y)}};
WHn=function(){this.Y=[]};
uDD=function(F,k,z){var x=g.eS(F.Y,k);if(x>=0)return k;k=-x-1;return k>=F.Y.length||F.Y[k]>z?null:F.Y[k]};
qb=function(F,k,z){g.S.call(this);this.T=F;this.Ff=k;this.oU=z;this.listeners=[];this.j=!1;this.cq=[];this.Y=null;this.W=new Xn(this,Ewp(k.get()));this.U=new WHn;this.L=null};
FZM=function(F,k){F.cq.push(k);for(var z=!1,x=g.l(F.listeners),D=x.next();!D.done;D=x.next())z=D.value.iE(k)||z;F.j=z;tk(F.Ff.get())&&Cp(F.oU.get(),"onci","cpi."+k.identifier+";cpe."+k.event+";cps."+k.startSecs+";cbi."+z)};
oUR=function(F,k){Dk(F.oU.get(),{cuepointTrigger:{event:k2C(k.event),cuepointId:k.identifier,totalCueDurationMs:k.B8*1E3,playheadTimeMs:k.Y,cueStartTimeMs:k.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:F.T.getVideoData(1).clientPlaybackNonce}})};
k2C=function(F){switch(F){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return ji(F,"Unexpected cuepoint event")}};
Nb=function(F){this.T=F};
zvY=function(F,k){F.T.cueVideoByPlayerVars(k,2)};
uz=function(F){this.T=F};
wZ=function(F){this.T=F};
x1H=function(F){switch(F){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:ji(F,"unknown transitionReason")}};
iIk=function(F){this.T=F};
D1k=function(F,k,z,x,D){g.S.call(this);var e=this,C=LE(function(){return new zZ(e.Ff)});
g.b(this,C);var p=LE(function(){return new ik(C,e.Ff)});
g.b(this,p);var E=LE(function(){return new Vs});
g.b(this,E);var X=LE(function(){return new PF(F)});
g.b(this,X);var q=LE(function(){return new D7(C,p,e.Ff)});
g.b(this,q);var N=LE(function(){return new Ad});
g.b(this,N);this.UJ=LE(function(){return new pQ(k)});
g.b(this,this.UJ);this.z$=LE(function(){return new KE(D)});
g.b(this,this.z$);this.yz=LE(function(){return new gT(k)});
g.b(this,this.yz);this.Jl=LE(function(){return new Y5(k)});
g.b(this,this.Jl);this.DR=LE(function(){return new Nb(k)});
g.b(this,this.DR);this.sJ=LE(function(){return new nD(k)});
g.b(this,this.sJ);this.Ff=LE(function(){return new Mc(k)});
g.b(this,this.Ff);var u=LE(function(){return new AY(x)});
g.b(this,u);var w=LE(function(){return new Qi(e.Ff)});
g.b(this,w);this.N0=LE(function(){return new uz(k)});
g.b(this,this.N0);this.Ix=LE(function(){return new kI});
g.b(this,this.Ix);this.xG=LE(function(){return new xA(k,N,e.Ff)});
g.b(this,this.xG);var m=yG({xG:this.xG,Ff:this.Ff,Fv:w}),h=m.context,B=m.Kn;this.IS=m.IS;this.O3=LE(function(){return new qb(k,e.Ff,e.oU)});
g.b(this,this.O3);this.jr=LE(function(){return new wZ(k)});
g.b(this,this.jr);this.ek=LE(function(){return new iz(k,e.xG,e.Ff)});
g.b(this,this.ek);m=LE(function(){return new sl(C,q,p,e.Ff,w,"SLOT_TYPE_ABOVE_FEED",e.ek,e.V7,e.kP)});
g.b(this,m);this.DF=LE(function(){return new ov(e.Ff)});
this.Fm=LE(function(){return new KD(e.ek,k,e.Ff)});
g.b(this,this.Fm);this.oU=LE(function(){return new zY(k,E,e.Fm,e.xG,e.IS,e.Ff,B)});
g.b(this,this.oU);this.Un=new vF(Zn,m1,function(v,P,I,d){return Dn(p.get(),v,P,I,d)},X,q,p,w,this.Ff,this.xG);
g.b(this,this.Un);this.W7=new cF(X,m,z,this.Ff,F,this.xG,this.ek,this.yz);g.b(this,this.W7);var U=new RE(k,this.W7,this.ek,this.xG,this.O3);this.q0=LE(function(){return U});
this.Il=U;this.V7=new GW(X,q,this.q0,this.O3,this.ek,this.Ff,this.oU,this.jr);g.b(this,this.V7);this.Cp=new Ol(X,q,this.Jl,this.q0,h);g.b(this,this.Cp);this.zA=new g0(this.Ff,X,q,m,this.xG,this.Cp,z);g.b(this,this.zA);this.cN=LE(function(){return new lX(u,p,w,e.Ff,e.oU,e.ek,e.jr)});
g.b(this,this.cN);this.SZ=LE(function(){return new Qk});
g.b(this,this.SZ);this.S5=new Jk(F,this.UJ,this.Ff);g.b(this,this.S5);this.Bj=new ys(F);g.b(this,this.Bj);this.Kt=new RT(F);g.b(this,this.Kt);this.M$=new YX(F,this.q0,h);g.b(this,this.M$);this.v8=new n$(F,this.Jl,this.ek,this.xG,h);g.b(this,this.v8);this.al=new Mx(F,this.xG);g.b(this,this.al);this.kP=new K$(F,this.O3,this.ek,this.oU,this.q0);g.b(this,this.kP);this.c8=new L$(F);g.b(this,this.c8);this.GA=new ol(F);g.b(this,this.GA);this.vN=new f$(F);g.b(this,this.vN);this.W6=new ki(F);g.b(this,this.W6);
this.GA=new ol(F);g.b(this,this.GA);this.mH=LE(function(){return new aT});
g.b(this,this.mH);this.QH=LE(function(){return new Sc(e.ek)});
g.b(this,this.QH);this.pG=LE(function(){return new bJR(e.UJ,e.oU,F,E,e.Fm)});
g.b(this,this.pG);this.WN=LE(function(){return new D6(e.zA,X,C)});
g.b(this,this.WN);this.Jo=LE(function(){return new eD(e.Ff,e.oU,e.c8,e.Fm)});
g.b(this,this.Jo);this.LF=LE(function(){return new uc(F,e.GA,e.c8,e.xG,e.jr,e.ek,e.oU,N,e.O3,e.Fm,e.DF,e.DR,e.Jl,e.yz,e.sJ,e.z$,e.N0,e.Ff,E,h,B)});
g.b(this,this.LF);this.wd=LE(function(){return new koI(e.ek,e.oU,e.z$,e.Ff,e.Fm,e.xG)});
g.b(this,this.wd);this.xC=LE(function(){return new dFR(e.UJ,e.ek,e.oU,E,e.Fm,e.Kt,e.W6,e.z$,e.Ff,z)});
g.b(this,this.xC);this.yB=LE(function(){return new dh6(e.UJ,e.oU,E)});
g.b(this,this.yB);this.un=new CQ(F,this.Ix,C);g.b(this,this.un);this.Hc={W1:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zA],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.V7],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Un],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.W7],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Cp]]),U7:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.cN],["SLOT_TYPE_ABOVE_FEED",this.SZ],["SLOT_TYPE_FORECASTING",this.SZ],
["SLOT_TYPE_IN_PLAYER",this.SZ],["SLOT_TYPE_PLAYER_BYTES",this.SZ],["SLOT_TYPE_PLAYER_UNDERLAY",this.SZ],["SLOT_TYPE_PLAYBACK_TRACKING",this.SZ],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.SZ]]),JR:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.S5],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.S5],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Bj],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Bj],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Bj],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Bj],["TRIGGER_TYPE_SLOT_ID_ENTERED",
this.Bj],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Bj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Bj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Bj],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Bj],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Bj],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Bj],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Kt],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.M$],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.v8],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.v8],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.v8],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.v8],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.v8],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.v8],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.v8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.al],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.al],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.c8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.M$],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.vN],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.W6],["TRIGGER_TYPE_AD_BREAK_STARTED",this.GA],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.kP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.kP],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.kP],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.kP],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.kP]]),Gw:new Map([["SLOT_TYPE_ABOVE_FEED",this.mH],
["SLOT_TYPE_AD_BREAK_REQUEST",this.mH],["SLOT_TYPE_FORECASTING",this.mH],["SLOT_TYPE_IN_PLAYER",this.mH],["SLOT_TYPE_PLAYER_BYTES",this.QH],["SLOT_TYPE_PLAYER_UNDERLAY",this.mH],["SLOT_TYPE_PLAYBACK_TRACKING",this.mH],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.mH]]),wJ:new Map([["SLOT_TYPE_ABOVE_FEED",this.pG],["SLOT_TYPE_AD_BREAK_REQUEST",this.WN],["SLOT_TYPE_FORECASTING",this.Jo],["SLOT_TYPE_PLAYER_BYTES",this.LF],["SLOT_TYPE_PLAYBACK_TRACKING",this.wd],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",
this.wd],["SLOT_TYPE_IN_PLAYER",this.xC],["SLOT_TYPE_PLAYER_UNDERLAY",this.yB]])};this.listeners=[E.get()];this.CV={zA:this.zA,fF:this.Ff.get(),BR:this.z$.get(),oQ:this.ek.get(),W7:this.W7,qt:C.get(),FE:this.Ix.get(),JI:this.S5,vO:E.get(),Eh:this.xG.get()}};
$15=function(F,k,z,x,D){g.S.call(this);var e=this,C=LE(function(){return new zZ(e.Ff)});
g.b(this,C);var p=LE(function(){return new ik(C,e.Ff)});
g.b(this,p);var E=LE(function(){return new Vs});
g.b(this,E);var X=LE(function(){return new PF(F)});
g.b(this,X);var q=LE(function(){return new D7(C,p,e.Ff)});
g.b(this,q);var N=LE(function(){return new Ad});
g.b(this,N);this.UJ=LE(function(){return new pQ(k)});
g.b(this,this.UJ);this.z$=LE(function(){return new KE(D)});
g.b(this,this.z$);this.yz=LE(function(){return new gT(k)});
g.b(this,this.yz);this.Jl=LE(function(){return new Y5(k)});
g.b(this,this.Jl);this.DR=LE(function(){return new Nb(k)});
g.b(this,this.DR);this.sJ=LE(function(){return new nD(k)});
g.b(this,this.sJ);this.Ff=LE(function(){return new Mc(k)});
g.b(this,this.Ff);var u=LE(function(){return new AY(x)});
g.b(this,u);var w=LE(function(){return new Qi(e.Ff)});
g.b(this,w);var m=LE(function(){return new sl(C,q,p,e.Ff,w,null,null,e.V7,e.kP)});
g.b(this,m);this.N0=LE(function(){return new uz(k)});
g.b(this,this.N0);this.Ix=LE(function(){return new kI});
g.b(this,this.Ix);this.xG=LE(function(){return new xA(k,N,e.Ff)});
g.b(this,this.xG);var h=yG({xG:this.xG,Ff:this.Ff,Fv:w}),B=h.context,U=h.Kn;this.IS=h.IS;this.O3=LE(function(){return new qb(k,e.Ff,e.oU)});
this.ek=LE(function(){return new iz(k,e.xG,e.Ff)});
g.b(this,this.ek);this.Fm=LE(function(){return new KD(e.ek,k,e.Ff)});
g.b(this,this.Fm);this.oU=LE(function(){return new zY(k,E,e.Fm,e.xG,e.IS,e.Ff,U)});
g.b(this,this.oU);this.DF=LE(function(){return new ov(e.Ff)});
g.b(this,this.DF);this.Un=new vF(Zn,m1,function(P,I,d,W){return Dn(p.get(),P,I,d,W)},X,q,p,w,this.Ff,this.xG);
g.b(this,this.Un);this.W7=new cF(X,m,z,this.Ff,F,this.xG,this.ek,this.yz);g.b(this,this.W7);var v=new RE(k,this.W7,this.ek,this.xG,this.O3);this.q0=LE(function(){return v});
this.Il=v;this.V7=new GW(X,q,this.q0,this.O3,this.ek,this.Ff,this.oU);g.b(this,this.V7);this.Cp=new Ol(X,q,this.Jl,this.q0,B);g.b(this,this.Cp);this.zA=new g0(this.Ff,X,q,m,this.xG,this.Cp,z);g.b(this,this.zA);this.cN=LE(function(){return new lX(u,p,w,e.Ff,e.oU,e.ek)});
g.b(this,this.cN);this.SZ=LE(function(){return new Qk});
g.b(this,this.SZ);this.S5=new Jk(F,this.UJ,this.Ff);g.b(this,this.S5);this.Bj=new ys(F);g.b(this,this.Bj);this.Kt=new RT(F);g.b(this,this.Kt);this.M$=new YX(F,this.q0,B);g.b(this,this.M$);this.v8=new n$(F,this.Jl,this.ek,this.xG,B);g.b(this,this.v8);this.c8=new L$(F);g.b(this,this.c8);this.vN=new f$(F);g.b(this,this.vN);this.W6=new ki(F);g.b(this,this.W6);this.jr=LE(function(){return new wZ(k)});
g.b(this,this.jr);this.GA=new ol(F);g.b(this,this.GA);this.kP=new K$(F,this.O3,this.ek,this.oU,this.q0);g.b(this,this.kP);this.mH=LE(function(){return new aT});
g.b(this,this.mH);this.QH=LE(function(){return new Sc(e.ek)});
g.b(this,this.QH);this.WN=LE(function(){return new D6(e.zA,X,C)});
g.b(this,this.WN);this.Jo=LE(function(){return new eD(e.Ff,e.oU,e.c8,e.Fm)});
g.b(this,this.Jo);this.xC=LE(function(){return new JZI(e.UJ,e.ek,e.oU,E,e.Fm,e.Kt,e.W6,e.z$,e.Ff,z)});
g.b(this,this.xC);this.LF=LE(function(){return new wA(F,e.GA,e.c8,e.oU,e.Fm,e.DF,e.DR,e.xG,e.ek,e.Jl,e.yz,e.sJ,e.z$,e.N0,e.Ff,e.jr,B,U)});
g.b(this,this.LF);this.un=new CQ(F,this.Ix,C);g.b(this,this.un);this.Hc={W1:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zA],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.V7],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Un],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.W7],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Cp]]),U7:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.cN],["SLOT_TYPE_FORECASTING",this.SZ],["SLOT_TYPE_IN_PLAYER",this.SZ],
["SLOT_TYPE_PLAYER_BYTES",this.SZ]]),JR:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.S5],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Bj],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Bj],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Bj],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Bj],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Bj],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Bj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Bj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Bj],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Bj],
["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Bj],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Kt],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.M$],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.v8],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.v8],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.v8],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.c8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.M$],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.vN],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
this.W6],["TRIGGER_TYPE_AD_BREAK_STARTED",this.GA],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.kP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.kP],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.kP],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.kP],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.kP]]),Gw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.mH],["SLOT_TYPE_FORECASTING",this.mH],["SLOT_TYPE_IN_PLAYER",this.mH],["SLOT_TYPE_PLAYER_BYTES",this.QH]]),
wJ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WN],["SLOT_TYPE_FORECASTING",this.Jo],["SLOT_TYPE_IN_PLAYER",this.xC],["SLOT_TYPE_PLAYER_BYTES",this.LF]])};this.listeners=[E.get()];this.CV={zA:this.zA,fF:this.Ff.get(),BR:this.z$.get(),oQ:this.ek.get(),W7:this.W7,qt:C.get(),FE:this.Ix.get(),JI:this.S5,vO:E.get(),Eh:this.xG.get()}};
j1n=function(F,k,z,x,D){g.S.call(this);var e=this,C=LE(function(){return new zZ(e.Ff)});
g.b(this,C);var p=LE(function(){return new ik(C,e.Ff)});
g.b(this,p);var E=LE(function(){return new Vs});
g.b(this,E);var X=LE(function(){return new PF(F)});
g.b(this,X);var q=LE(function(){return new D7(C,p,e.Ff)});
g.b(this,q);var N=LE(function(){return new Ad});
g.b(this,N);this.UJ=LE(function(){return new pQ(k)});
g.b(this,this.UJ);this.z$=LE(function(){return new KE(D)});
g.b(this,this.z$);this.yz=LE(function(){return new gT(k)});
g.b(this,this.yz);this.Jl=LE(function(){return new Y5(k)});
g.b(this,this.Jl);this.DR=LE(function(){return new Nb(k)});
g.b(this,this.DR);this.sJ=LE(function(){return new nD(k)});
g.b(this,this.sJ);this.Ff=LE(function(){return new Mc(k)});
g.b(this,this.Ff);var u=LE(function(){return new AY(x)});
g.b(this,u);var w=LE(function(){return new Qi(e.Ff)});
g.b(this,w);var m=LE(function(){return new sl(C,q,p,e.Ff,w,null,null,null,null)});
g.b(this,m);this.N0=LE(function(){return new uz(k)});
g.b(this,this.N0);this.xG=LE(function(){return new xA(k,N,e.Ff)});
g.b(this,this.xG);var h=yG({xG:this.xG,Ff:this.Ff,Fv:w}),B=h.context,U=h.Kn;this.IS=h.IS;this.ek=LE(function(){return new iz(k,e.xG,e.Ff)});
g.b(this,this.ek);this.Fm=LE(function(){return new KD(e.ek,k,e.Ff)});
g.b(this,this.Fm);this.oU=LE(function(){return new zY(k,E,e.Fm,e.xG,e.IS,e.Ff,U)});
g.b(this,this.oU);this.DF=LE(function(){return new ov(e.Ff)});
g.b(this,this.DF);this.Un=new vF(Zn,m1,function(P,I,d,W){return Dn(p.get(),P,I,d,W)},X,q,p,w,this.Ff,this.xG);
g.b(this,this.Un);this.W7=new cF(X,m,z,this.Ff,F,this.xG,this.ek,this.yz);g.b(this,this.W7);var v=new RE(k,this.W7,this.ek,this.xG);this.q0=LE(function(){return v});
this.Il=v;this.Cp=new Ol(X,q,this.Jl,this.q0,B);g.b(this,this.Cp);this.zA=new g0(this.Ff,X,q,m,this.xG,this.Cp,z);g.b(this,this.zA);this.cN=LE(function(){return new lX(u,p,w,e.Ff,e.oU,e.ek)});
g.b(this,this.cN);this.SZ=LE(function(){return new Qk});
g.b(this,this.SZ);this.S5=new Jk(F,this.UJ,this.Ff);g.b(this,this.S5);this.Bj=new ys(F);g.b(this,this.Bj);this.M$=new YX(F,this.q0,B);g.b(this,this.M$);this.v8=new n$(F,this.Jl,this.ek,this.xG,B);g.b(this,this.v8);this.c8=new L$(F);g.b(this,this.c8);this.vN=new f$(F);g.b(this,this.vN);this.jr=LE(function(){return new wZ(k)});
g.b(this,this.jr);this.GA=new ol(F);g.b(this,this.GA);this.mH=LE(function(){return new aT});
g.b(this,this.mH);this.QH=LE(function(){return new Sc(e.ek)});
g.b(this,this.QH);this.WN=LE(function(){return new D6(e.zA,X,C)});
g.b(this,this.WN);this.Jo=LE(function(){return new eD(e.Ff,e.oU,e.c8,e.Fm)});
g.b(this,this.Jo);this.iy=LE(function(){return new F26(e.UJ,e.ek,e.oU,E,z,e.Ff)});
g.b(this,this.iy);this.LF=LE(function(){return new wA(F,e.GA,e.c8,e.oU,e.Fm,e.DF,e.DR,e.xG,e.ek,e.Jl,e.yz,e.sJ,e.z$,e.N0,e.Ff,e.jr,B,U)});
g.b(this,this.LF);this.Hc={W1:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zA],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Un],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.W7],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Cp]]),U7:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.cN],["SLOT_TYPE_FORECASTING",this.SZ],["SLOT_TYPE_IN_PLAYER",this.SZ],["SLOT_TYPE_PLAYER_BYTES",this.SZ]]),JR:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.S5],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Bj],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Bj],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Bj],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Bj],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Bj],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Bj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Bj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Bj],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Bj],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.M$],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.v8],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.v8],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.c8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.M$],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.vN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.GA]]),Gw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.mH],["SLOT_TYPE_ABOVE_FEED",this.mH],["SLOT_TYPE_FORECASTING",this.mH],["SLOT_TYPE_IN_PLAYER",this.mH],["SLOT_TYPE_PLAYER_BYTES",this.QH]]),wJ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WN],["SLOT_TYPE_FORECASTING",this.Jo],["SLOT_TYPE_IN_PLAYER",
this.iy],["SLOT_TYPE_PLAYER_BYTES",this.LF]])};this.listeners=[E.get()];this.CV={zA:this.zA,fF:this.Ff.get(),BR:this.z$.get(),oQ:this.ek.get(),W7:this.W7,qt:C.get(),FE:null,JI:this.S5,vO:E.get(),Eh:this.xG.get()}};
evk=function(F,k,z,x,D){g.S.call(this);var e=this,C=LE(function(){return new zZ(e.Ff)});
g.b(this,C);var p=LE(function(){return new ik(C,e.Ff)});
g.b(this,p);var E=LE(function(){return new Vs});
g.b(this,E);var X=LE(function(){return new PF(F)});
g.b(this,X);var q=LE(function(){return new D7(C,p,e.Ff)});
g.b(this,q);var N=LE(function(){return new Ad});
g.b(this,N);this.kF=LE(function(){return new iIk(k)});
g.b(this,this.kF);this.UJ=LE(function(){return new pQ(k)});
g.b(this,this.UJ);this.z$=LE(function(){return new KE(D)});
g.b(this,this.z$);this.yz=LE(function(){return new gT(k)});
g.b(this,this.yz);this.Jl=LE(function(){return new Y5(k)});
g.b(this,this.Jl);this.DR=LE(function(){return new Nb(k)});
g.b(this,this.DR);this.sJ=LE(function(){return new nD(k)});
g.b(this,this.sJ);this.Ff=LE(function(){return new Mc(k)});
g.b(this,this.Ff);var u=LE(function(){return new AY(x)});
g.b(this,u);var w=LE(function(){return new Qi(e.Ff)});
g.b(this,w);var m=LE(function(){return new sl(C,q,p,e.Ff,w,null,null,null,null)});
g.b(this,m);this.N0=LE(function(){return new uz(k)});
g.b(this,this.N0);this.xG=LE(function(){return new xA(k,N,e.Ff)});
g.b(this,this.xG);var h=yG({xG:this.xG,Ff:this.Ff,Fv:w}),B=h.context,U=h.Kn;this.IS=h.IS;this.ek=LE(function(){return new iz(k,e.xG,e.Ff)});
g.b(this,this.ek);this.Fm=LE(function(){return new KD(e.ek,k,e.Ff)});
g.b(this,this.Fm);this.oU=LE(function(){return new zY(k,E,e.Fm,e.xG,e.IS,e.Ff,U)});
g.b(this,this.oU);this.DF=LE(function(){return new ov(e.Ff)});
g.b(this,this.DF);this.Un=new vF(Bok,m1,function(P,I,d,W){return nSI(p.get(),P,I,d,W)},X,q,p,w,this.Ff,this.xG);
g.b(this,this.Un);this.W7=new cF(X,m,z,this.Ff,F,this.xG,this.ek,this.yz);g.b(this,this.W7);var v=new RE(k,this.W7,this.ek,this.xG);this.q0=LE(function(){return v});
this.Il=v;this.Cp=new Ol(X,q,this.Jl,this.q0,B);g.b(this,this.Cp);this.zA=new g0(this.Ff,X,q,m,this.xG,this.Cp,z);g.b(this,this.zA);this.cN=LE(function(){return new lX(u,p,w,e.Ff,e.oU,e.ek)});
g.b(this,this.cN);this.SZ=LE(function(){return new Qk});
g.b(this,this.SZ);this.S5=new Jk(F,this.UJ,this.Ff);g.b(this,this.S5);this.Bj=new ys(F);g.b(this,this.Bj);this.M$=new YX(F,this.q0,B);g.b(this,this.M$);this.v8=new n$(F,this.Jl,this.ek,this.xG,B);g.b(this,this.v8);this.c8=new L$(F);g.b(this,this.c8);this.vN=new f$(F);g.b(this,this.vN);this.jr=LE(function(){return new wZ(k)});
g.b(this,this.jr);this.GA=new ol(F);g.b(this,this.GA);this.mH=LE(function(){return new aT});
g.b(this,this.mH);this.QH=LE(function(){return new Sc(e.ek)});
g.b(this,this.QH);this.WN=LE(function(){return new D6(e.zA,X,C)});
g.b(this,this.WN);this.Jo=LE(function(){return new eD(e.Ff,e.oU,e.c8,e.Fm)});
g.b(this,this.Jo);this.LF=LE(function(){return new wA(F,e.GA,e.c8,e.oU,e.Fm,e.DF,e.DR,e.xG,e.ek,e.Jl,e.yz,e.sJ,e.z$,e.N0,e.Ff,e.jr,B,U)});
g.b(this,this.LF);this.kX=LE(function(){return new Rha(e.UJ,e.ek,e.oU,E,e.kF,z,e.xG)});
g.b(this,this.kX);this.Hc={W1:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zA],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Un],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.W7],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Cp]]),U7:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.cN],["SLOT_TYPE_FORECASTING",this.SZ],["SLOT_TYPE_IN_PLAYER",this.SZ],["SLOT_TYPE_PLAYER_BYTES",this.SZ]]),JR:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.S5],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Bj],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Bj],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Bj],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Bj],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Bj],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Bj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Bj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Bj],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Bj],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.M$],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.v8],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.v8],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.c8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.M$],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.vN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.GA]]),Gw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.mH],["SLOT_TYPE_FORECASTING",this.mH],["SLOT_TYPE_IN_PLAYER",this.mH],["SLOT_TYPE_PLAYER_BYTES",this.QH]]),wJ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WN],["SLOT_TYPE_FORECASTING",this.Jo],["SLOT_TYPE_IN_PLAYER",this.kX],["SLOT_TYPE_PLAYER_BYTES",
this.LF]])};this.listeners=[E.get()];this.CV={zA:this.zA,fF:this.Ff.get(),BR:this.z$.get(),oQ:this.ek.get(),W7:this.W7,qt:C.get(),FE:null,JI:this.S5,vO:E.get(),Eh:this.xG.get()}};
Cip=function(F,k,z,x,D){g.S.call(this);var e=this,C=LE(function(){return new zZ(e.Ff)});
g.b(this,C);var p=LE(function(){return new ik(C,e.Ff)});
g.b(this,p);var E=LE(function(){return new Vs});
g.b(this,E);var X=LE(function(){return new PF(F)});
g.b(this,X);var q=LE(function(){return new D7(C,p,e.Ff)});
g.b(this,q);var N=LE(function(){return new Ad});
g.b(this,N);this.kF=LE(function(){return new iIk(k)});
g.b(this,this.kF);this.UJ=LE(function(){return new pQ(k)});
g.b(this,this.UJ);this.z$=LE(function(){return new KE(D)});
g.b(this,this.z$);this.yz=LE(function(){return new gT(k)});
g.b(this,this.yz);this.Jl=LE(function(){return new Y5(k)});
g.b(this,this.Jl);this.DR=LE(function(){return new Nb(k)});
g.b(this,this.DR);this.sJ=LE(function(){return new nD(k)});
g.b(this,this.sJ);this.Ff=LE(function(){return new Mc(k)});
g.b(this,this.Ff);var u=LE(function(){return new AY(x)});
g.b(this,u);var w=LE(function(){return new Qi(e.Ff)});
g.b(this,w);this.N0=LE(function(){return new uz(k)});
g.b(this,this.N0);this.xG=LE(function(){return new xA(k,N,e.Ff)});
g.b(this,this.xG);var m=yG({xG:this.xG,Ff:this.Ff,Fv:w}),h=m.context,B=m.Kn;this.IS=m.IS;this.O3=LE(function(){return new qb(k,e.Ff,e.oU)});
g.b(this,this.O3);this.jr=LE(function(){return new wZ(k)});
g.b(this,this.jr);this.ek=LE(function(){return new iz(k,e.xG,e.Ff)});
g.b(this,this.ek);m=LE(function(){return new sl(C,q,p,e.Ff,w,null,e.ek,e.V7,e.kP,3)});
g.b(this,m);this.DF=LE(function(){return new ov(e.Ff)});
this.Fm=LE(function(){return new KD(e.ek,k,e.Ff)});
g.b(this,this.Fm);this.oU=LE(function(){return new zY(k,E,e.Fm,e.xG,e.IS,e.Ff,B)});
g.b(this,this.oU);this.W7=new cF(X,m,z,this.Ff,F,this.xG,this.ek,this.yz);g.b(this,this.W7);var U=new RE(k,this.W7,this.ek,this.xG,this.O3);this.q0=LE(function(){return U});
this.Il=U;this.Un=new vF(GBp,m1,function(v,P,I,d){return nSI(p.get(),v,P,I,d)},X,q,p,w,this.Ff,this.xG);
g.b(this,this.Un);this.V7=new GW(X,q,this.q0,this.O3,this.ek,this.Ff,this.oU,this.jr);g.b(this,this.V7);this.Cp=new Ol(X,q,this.Jl,this.q0,h);g.b(this,this.Cp);this.zA=new g0(this.Ff,X,q,m,this.xG,this.Cp,z);g.b(this,this.zA);this.cN=LE(function(){return new lX(u,p,w,e.Ff,e.oU,e.ek,e.jr)});
g.b(this,this.cN);this.SZ=LE(function(){return new Qk});
g.b(this,this.SZ);this.S5=new Jk(F,this.UJ,this.Ff);g.b(this,this.S5);this.Bj=new ys(F);g.b(this,this.Bj);this.M$=new YX(F,this.q0,h);g.b(this,this.M$);this.v8=new n$(F,this.Jl,this.ek,this.xG,h);g.b(this,this.v8);this.al=new Mx(F,this.xG);g.b(this,this.al);this.kP=new K$(F,this.O3,this.ek,this.oU,this.q0);g.b(this,this.kP);this.c8=new L$(F);g.b(this,this.c8);this.vN=new f$(F);g.b(this,this.vN);this.GA=new ol(F);g.b(this,this.GA);this.mH=LE(function(){return new aT});
g.b(this,this.mH);this.QH=LE(function(){return new Sc(e.ek)});
g.b(this,this.QH);this.WN=LE(function(){return new D6(e.zA,X,C)});
g.b(this,this.WN);this.Jo=LE(function(){return new eD(e.Ff,e.oU,e.c8,e.Fm)});
g.b(this,this.Jo);this.LF=LE(function(){return new uc(F,e.GA,e.c8,e.xG,e.jr,e.ek,e.oU,N,e.O3,e.Fm,e.DF,e.DR,e.Jl,e.yz,e.sJ,e.z$,e.N0,e.Ff,E,h,B)});
g.b(this,this.LF);this.xC=LE(function(){return new gxk(e.UJ,e.ek,e.oU,E,e.kF,z,e.Ff,e.xG)});
g.b(this,this.xC);this.Hc={W1:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zA],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.V7],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Un],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.W7],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Cp]]),U7:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.cN],["SLOT_TYPE_FORECASTING",this.SZ],["SLOT_TYPE_IN_PLAYER",this.SZ],["SLOT_TYPE_PLAYER_BYTES",this.SZ]]),JR:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
this.S5],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Bj],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Bj],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Bj],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Bj],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Bj],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Bj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Bj],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Bj],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Bj],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.M$],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
this.v8],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.v8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.al],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.al],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.c8],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.M$],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.vN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.GA],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.kP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",
this.kP],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.kP],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.kP],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.kP]]),Gw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.mH],["SLOT_TYPE_FORECASTING",this.mH],["SLOT_TYPE_IN_PLAYER",this.mH],["SLOT_TYPE_PLAYER_BYTES",this.QH]]),wJ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WN],["SLOT_TYPE_FORECASTING",this.Jo],["SLOT_TYPE_PLAYER_BYTES",this.LF],["SLOT_TYPE_IN_PLAYER",this.xC]])};this.listeners=[E.get()];
this.CV={zA:this.zA,fF:this.Ff.get(),BR:this.z$.get(),oQ:this.ek.get(),W7:this.W7,qt:C.get(),FE:null,JI:this.S5,vO:E.get(),Eh:this.xG.get()}};
pba=function(F,k,z,x){function D(){return e.L}
g.S.call(this);var e=this;F.C().experiments.Ca("html5_dispose_of_manager_before_dependency")?(this.Y=A2I(D,F,k,z,x),this.L=(new fE(this.Y)).U(),g.b(this,this.L),g.b(this,this.Y)):(this.Y=A2I(D,F,k,z,x),g.b(this,this.Y),this.L=(new fE(this.Y)).U(),g.b(this,this.L))};
TY=function(F){return F.Y.CV};
A2I=function(F,k,z,x,D){try{var e=k.C();if(g.f_(e))var C=new D1k(F,k,z,x,D);else if(g.WJ(e))C=new $15(F,k,z,x,D);else if(JJ(e))C=new j1n(F,k,z,x,D);else if(g.g8(e))C=new evk(F,k,z,x,D);else if(g.IB(e))C=new Cip(F,k,z,x,D);else throw new TypeError("Unknown web interface");return C}catch(p){return C=k.C(),To("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:C.Y.cplatform,interface:C.Y.c,YoU:C.Y.cver,dwa:C.Y.ctheme,vrp:C.Y.cplayer,qoG:C.playerStyle}),new MEC(F,k,z,x,D)}};
EUn=function(F){Wx.call(this,F)};
Xbx=function(F,k,z,x,D){$a.call(this,F,{X:"div",J:"ytp-ad-timed-pie-countdown-container",Z:[{X:"svg",J:"ytp-ad-timed-pie-countdown",D:{viewBox:"0 0 20 20"},Z:[{X:"circle",J:"ytp-ad-timed-pie-countdown-background",D:{r:"10",cx:"10",cy:"10"}},{X:"circle",J:"ytp-ad-timed-pie-countdown-inner",D:{r:"5",cx:"10",cy:"10"}},{X:"circle",J:"ytp-ad-timed-pie-countdown-outer",D:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",k,z,x,D);this.j=this.EK("ytp-ad-timed-pie-countdown-container");this.U=this.EK("ytp-ad-timed-pie-countdown-inner");
this.S=this.EK("ytp-ad-timed-pie-countdown-outer");this.L=Math.ceil(2*Math.PI*5);this.hide()};
q6D=function(F,k,z,x,D,e){hL.call(this,F,{X:"div",J:"ytp-ad-action-interstitial",D:{tabindex:"0"},Z:[{X:"div",J:"ytp-ad-action-interstitial-background-container"},{X:"div",J:"ytp-ad-action-interstitial-slot",Z:[{X:"div",J:"ytp-ad-action-interstitial-instream-info"},{X:"div",J:"ytp-ad-action-interstitial-card",Z:[{X:"div",J:"ytp-ad-action-interstitial-image-container"},{X:"div",J:"ytp-ad-action-interstitial-headline-container"},{X:"div",J:"ytp-ad-action-interstitial-description-container"},{X:"div",
J:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",k,z,x);this.BJ=D;this.vL=e;this.navigationEndpoint=this.Y=this.skipButton=this.L=this.actionButton=null;this.l$=this.EK("ytp-ad-action-interstitial-instream-info");this.cR=this.EK("ytp-ad-action-interstitial-image-container");this.K=new Mh(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,"ytp-ad-action-interstitial-image");g.b(this,this.K);this.K.T4(this.cR);this.Xf=this.EK("ytp-ad-action-interstitial-headline-container");
this.S=new iH(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,"ytp-ad-action-interstitial-headline");g.b(this,this.S);this.S.T4(this.Xf);this.PR=this.EK("ytp-ad-action-interstitial-description-container");this.U=new iH(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,"ytp-ad-action-interstitial-description");g.b(this,this.U);this.U.T4(this.PR);this.kG=this.EK("ytp-ad-action-interstitial-background-container");this.RU=new Mh(this.api,this.layoutId,this.interactionLoggingClientData,
this.BR,"ytp-ad-action-interstitial-background",!0);g.b(this,this.RU);this.RU.T4(this.kG);this.NJ=this.EK("ytp-ad-action-interstitial-action-button-container");this.slot=this.EK("ytp-ad-action-interstitial-slot");this.r9=this.EK("ytp-ad-action-interstitial-card");this.j=new PW;g.b(this,this.j);this.hide()};
Nnn=function(F){var k=g.xM("html5-video-player");k&&g.XF(k,"ytp-ad-display-override",F)};
Tn9=function(F,k,z,x){hL.call(this,F,{X:"div",J:"ytp-ad-overlay-slot",Z:[{X:"div",J:"ytp-ad-overlay-container"}]},"invideo-overlay",k,z,x);this.K=[];this.kG=this.Xf=this.j=this.NJ=this.l$=null;this.RU=!1;this.S=null;this.PR=0;F=this.EK("ytp-ad-overlay-container");this.cR=new qf(F,45E3,6E3,.3,.4);g.b(this,this.cR);this.U=u26(this);g.b(this,this.U);this.U.T4(F);this.L=wbn(this);g.b(this,this.L);this.L.T4(F);this.Y=m1H(this);g.b(this,this.Y);this.Y.T4(F);this.hide()};
u26=function(F){var k=new g.Q7({X:"div",J:"ytp-ad-text-overlay",Z:[{X:"div",J:"ytp-ad-overlay-ad-info-button-container"},{X:"div",J:"ytp-ad-overlay-close-container",Z:[{X:"button",J:"ytp-ad-overlay-close-button",Z:[bG(lfY)]}]},{X:"div",J:"ytp-ad-overlay-title",jk:"{{title}}"},{X:"div",J:"ytp-ad-overlay-desc",jk:"{{description}}"},{X:"div",WR:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],jk:"{{displayUrl}}"}]});F.N(k.EK("ytp-ad-overlay-title"),"click",function(z){lz(F,k.element,z)});
F.N(k.EK("ytp-ad-overlay-link"),"click",function(z){lz(F,k.element,z)});
F.N(k.EK("ytp-ad-overlay-close-container"),"click",F.Jn);k.hide();return k};
wbn=function(F){var k=new g.Q7({X:"div",WR:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],Z:[{X:"div",J:"ytp-ad-overlay-ad-info-button-container"},{X:"div",J:"ytp-ad-overlay-close-container",Z:[{X:"button",J:"ytp-ad-overlay-close-button",Z:[bG(lfY)]}]},{X:"div",J:"ytp-ad-overlay-text-image",Z:[{X:"img",D:{src:"{{imageUrl}}"}}]},{X:"div",J:"ytp-ad-overlay-title",jk:"{{title}}"},{X:"div",J:"ytp-ad-overlay-desc",jk:"{{description}}"},{X:"div",WR:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
jk:"{{displayUrl}}"}]});F.N(k.EK("ytp-ad-overlay-title"),"click",function(z){lz(F,k.element,z)});
F.N(k.EK("ytp-ad-overlay-link"),"click",function(z){lz(F,k.element,z)});
F.N(k.EK("ytp-ad-overlay-close-container"),"click",F.Jn);F.N(k.EK("ytp-ad-overlay-text-image"),"click",F.qmh);k.hide();return k};
m1H=function(F){var k=new g.Q7({X:"div",J:"ytp-ad-image-overlay",Z:[{X:"div",J:"ytp-ad-overlay-ad-info-button-container"},{X:"div",J:"ytp-ad-overlay-close-container",Z:[{X:"button",J:"ytp-ad-overlay-close-button",Z:[bG(lfY)]}]},{X:"div",J:"ytp-ad-overlay-image",Z:[{X:"img",D:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});F.N(k.EK("ytp-ad-overlay-image"),"click",function(z){lz(F,k.element,z)});
F.N(k.EK("ytp-ad-overlay-close-container"),"click",F.Jn);k.hide();return k};
Q1C=function(F,k){if(k){var z=g.J(k,d0)||null;z==null?g.JV(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(k=g.xM("video-ads ytp-ad-module")||null,k==null?g.JV(Error("Could not locate the root ads container element to attach the ad info dialog.")):(F.Xf=new g.Q7({X:"div",J:"ytp-ad-overlay-ad-info-dialog-container"}),g.b(F,F.Xf),F.Xf.T4(k),k=new xa(F.api,F.layoutId,F.interactionLoggingClientData,F.BR,F.Xf.element,!1),g.b(F,k),k.init(qh("ad-info-hover-text-button"),z,F.macros),
F.S?(k.T4(F.S,0),k.subscribe("f",F.sSK,F),k.subscribe("e",F.tZ,F),F.N(F.S,"click",F.ONk),F.N(g.xM("ytp-ad-button",k.element),"click",function(){var x;if(g.J((x=g.J(z.button,g.yS))==null?void 0:x.serviceEndpoint,RPn))F.RU=F.api.getPlayerState(1)===2,F.api.pauseVideo();else F.api.onAdUxClicked("ad-info-hover-text-button",F.layoutId)}),F.kG=k):g.JV(Error("Ad info button container within overlay ad was not present."))))}else g.yI(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
s1I=function(F,k){if(hvI(F,Qv)||F.api.isMinimized())return!1;var z=se(k.title),x=se(k.description);if(g.hD(z)||g.hD(x))return!1;F.createServerVe(F.U.element,k.trackingParams||null);F.U.updateValue("title",se(k.title));F.U.updateValue("description",se(k.description));F.U.updateValue("displayUrl",se(k.displayUrl));k.navigationEndpoint&&g.xr(F.K,k.navigationEndpoint);F.U.show();F.cR.start();F.logVisibility(F.U.element,!0);F.N(F.U.element,"mouseover",function(){F.PR++});
return!0};
r2D=function(F,k){if(hvI(F,Qv)||F.api.isMinimized())return!1;var z=se(k.title),x=se(k.description);if(g.hD(z)||g.hD(x))return!1;F.createServerVe(F.L.element,k.trackingParams||null);F.L.updateValue("title",se(k.title));F.L.updateValue("description",se(k.description));F.L.updateValue("displayUrl",se(k.displayUrl));F.L.updateValue("imageUrl",eP9(k.image));k.navigationEndpoint&&g.xr(F.K,k.navigationEndpoint);F.NJ=k.imageNavigationEndpoint||null;F.L.show();F.cR.start();F.logVisibility(F.L.element,!0);
F.N(F.L.element,"mouseover",function(){F.PR++});
return!0};
BnY=function(F,k){if(F.api.isMinimized())return!1;var z=CMD(k.image),x=z;z.width<Qv.width&&(x=Qv);if(z.width===0||z.height===0||hvI(F,x))return!1;F.createServerVe(F.Y.element,k.trackingParams||null);F.Y.updateValue("imageUrl",eP9(k.image));F.Y.updateValue("width",z.width);F.Y.updateValue("height",z.height);k.navigationEndpoint&&g.xr(F.K,k.navigationEndpoint);g.Xr(F.Y.EK("ytp-ad-image-overlay"),"max-width",z.width+"px");F.Y.show();F.logVisibility(F.Y.element,!0);F.N(F.Y.element,"mouseover",function(){F.PR++;
F.api.f_("invideo-overlay",F.layoutId)});
F.N(F.Y.element,"mouseout",function(){F.api.Aa("invideo-overlay",F.layoutId)});
return!0};
hvI=function(F,k){var z=F.api.Ka().eU(),x=F.api.CF(!0,!1);return(k=Q8(z,z.height-(x.height+x.top),k))?(F.l$&&k&&(z=g.Jg(F.macros),z.ERRORCODE=k.xt.toString(),z.ERROR_MSG=k.errorMessage,F.layoutId?F$(F.BR,F.l$,F.layoutId,z):g.JV(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
lz=function(F,k,z){var x=g.Jg(F.macros),D=g.rQ(k);x.AW={toString:function(){return D.width.toString()}};
x.AH={toString:function(){return D.height.toString()}};
var e=g.h9(z,k).floor();x.I_X={toString:function(){return e.x.toString()}};
x.NX={toString:function(){return e.x.toString()}};
x.I_Y={toString:function(){return e.y.toString()}};
x.NY={toString:function(){return e.y.toString()}};
x.NM={toString:function(){return F.PR.toString()}};
k=g.l(F.K);for(z=k.next();!z.done;z=k.next())z=z.value,F.layoutId?F$(F.BR,z,F.layoutId,x):g.JV(Error("Missing layoutId for invideo_overlay_ad."));F.api.pauseVideo()};
G2M=function(F,k){F=F.api.getRootNode();g.XF(F,"ytp-ad-overlay-open",k);g.XF(F,"ytp-ad-overlay-closed",!k)};
U19=function(F,k,z,x,D){$a.call(this,F,{X:"div",J:"ytp-ad-message-overlay",Z:[{X:"div",J:"ytp-ad-message-slot"}]},"ad-message",k,z,x,D);var e=this;this.S=-1;this.U=0;this.PR=!1;this.Xf=this.EK("ytp-ad-message-slot");this.L=new g.Q7({X:"span",J:"ytp-ad-message-container"});this.L.T4(this.Xf);g.b(this,this.L);this.messageText=new iH(this.api,this.layoutId,this.interactionLoggingClientData,x,"ytp-ad-message-text");g.b(this,this.messageText);this.messageText.T4(this.L.element);this.j=new g.Cv(this.L,
400,!1,100,function(){e.hide()});
g.b(this,this.j);this.hide()};
tWC=function(F,k){F=F.api.getRootNode();g.XF(F,"ytp-ad-overlay-open",k);g.XF(F,"ytp-ad-overlay-closed",!k)};
ZI6=function(F,k,z,x){hL.call(this,F,{X:"div",J:"ytp-ad-underlay-companion",Z:[{X:"div",J:"ytp-ad-underlay-side-container",Z:[{X:"div",J:"ytp-ad-underlay-image-container"},{X:"div",J:"ytp-ad-underlay-description-container"},{X:"div",J:"ytp-ad-underlay-headline-container"},{X:"div",J:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",k,z,x);this.actionButton=null;this.Xf=this.EK("ytp-ad-underlay-image-container");this.U=new Mh(this.api,this.layoutId,this.interactionLoggingClientData,
this.BR,"ytp-ad-underlay-image");g.b(this,this.U);this.U.T4(this.Xf);this.PR=this.EK("ytp-ad-underlay-headline-container");this.L=new iH(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,"ytp-ad-underlay-headline");g.b(this,this.L);this.L.T4(this.PR);this.K=this.EK("ytp-ad-underlay-description-container");this.j=new iH(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,"ytp-ad-underlay-description");g.b(this,this.j);this.j.T4(this.K);this.S=this.EK("ytp-ad-underlay-action-button-container");
this.Y=this.EK("ytp-ad-underlay-side-container");this.hide()};
vUM=function(F){var k=g.xM("html5-video-player");k&&g.XF(k,"ytp-ad-display-override",F)};
hY=function(F,k,z,x,D,e){e=e===void 0?function(){}:e;
hL.call(this,F,{X:"div",J:"ytp-ad-survey-answer"},"survey-answer",k,z,x);this.index=D;this.onSelected=e;this.Y=null;this.toggledLoggingParams="";this.answer=this.EK("ytp-ad-survey-answer");this.hide()};
c2H=function(F,k,z,x){hL.call(this,F,{X:"div",J:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",k,z,x);this.button=null;this.Y=this.EK("ytp-ad-survey-none-of-the-above");this.hide()};
sT=function(F,k,z,x){var D=["ytp-ad-survey-submit-button"];D.push("ytp-ad-survey-submit-button-rounded");dt.call(this,F,k,z,x,D,"survey-submit")};
rZ=function(F,k,z,x,D){hL.call(this,F,{X:"div",J:"ytp-ad-survey-player-overlay",Z:[{X:"div",J:"ytp-ad-survey-player-overlay-instream-info"},{X:"div",J:"ytp-ad-survey-player-overlay-skip-preview-submit",Z:[{X:"div",J:"ytp-ad-survey-player-overlay-skip-or-preview"},{X:"div",J:"ytp-ad-survey-player-overlay-submit"}]},{X:"div",J:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",k,z,x);this.j=D;this.L=this.Y=null;this.U=this.EK("ytp-ad-survey-player-overlay-instream-info");
this.skipOrPreview=this.EK("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.EK("ytp-ad-survey-player-overlay-submit");g.b(this,this.j);this.hide()};
B5=function(F,k,z,x,D,e){e=e===void 0?function(){}:e;
hL.call(this,F,{X:"div",J:"ytp-ad-survey-question",Z:[{X:"div",WR:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{X:"div",WR:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{X:"div",WR:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{X:"div",J:"ytp-ad-survey-question-background"}]},D,k,z,x);this.Xf=e;this.j=null;this.L=[];this.Y=null;this.K=this.api.C().experiments.Ca("a11y_h5_associate_survey_question");this.question=this.EK("ytp-ad-survey-question");
this.cR=this.EK("ytp-ad-survey-question-background");this.questionText=this.EK("ytp-ad-survey-question-text");this.answers=this.EK("ytp-ad-survey-answers");this.playerOverlay=this.EK("ytp-ad-survey-question-player-overlay");this.U=Date.now()};
PiM=function(F,k){k=g.rt(k);g.uE(F.questionText,k);F.K&&F.questionText.setAttribute("id",qh("survey-question-text"))};
OIR=function(F,k,z,x){x=new hY(F.api,F.layoutId,F.interactionLoggingClientData,F.BR,x,F.Xf);x.T4(F.answers);x.init(qh("survey-answer"),k,z);F.K&&(k=F.questionText.getAttribute("id"),k!=null&&(x.Y!==null?x.Y.L.setAttribute("aria-describedby",k):x.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",k)));F.L.push(x)};
IfH=function(F,k){if(k){var z=k.background;z&&g.J(z,VWD)&&(z=(z=g.J(z,VWD).image)&&nJ(z)||"",g.hD(z)?g.yI(Error("Found ThumbnailDetails without valid image URL")):g.Xr(F.cR,"backgroundImage","url("+z+")"));if(k.durationMilliseconds==null||k.durationMilliseconds===void 0||k.durationMilliseconds===0)g.JV(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(k)));else{F.U=g.op();F.Y=new Zb(F.api,k.durationMilliseconds);g.b(F,F.Y);if(F.Y&&k.instreamAdPlayerOverlay&&g.J(k.instreamAdPlayerOverlay,
bB))try{var x=new rZ(F.api,F.layoutId,F.interactionLoggingClientData,F.BR,F.Y);x.T4(F.playerOverlay);x.init(qh("survey-player-overlay"),g.J(k.instreamAdPlayerOverlay,bB),F.macros);F.j=x;g.b(F,x);F.uy()}catch(D){g.JV(Error("ISAPOR had an error when initializing. Error: "+(D+" SurveyAdQuestionCommon: "+JSON.stringify(k))))}else g.JV(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(k)));F.Y&&k.durationMilliseconds&&k.durationMilliseconds>0?(k=new yo(F.api,F.Y),k.T4(F.playerOverlay),
g.b(F,k)):g.JV(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(k)))}}else g.JV(Error("addCommonComponents() needs to be called before starting countdown."))};
HIn=function(F){function k(z){return{toString:function(){return z()}}}
F.macros.SURVEY_LOCAL_TIME_EPOCH_S=k(function(){var z=new Date;return(Math.round(z.valueOf()/1E3)+-1*z.getTimezoneOffset()*60).toString()});
F.macros.SURVEY_ELAPSED_MS=k(function(){return(Date.now()-F.U).toString()})};
afk=function(F,k,z,x,D){B5.call(this,F,k,z,x,"survey-question-multi-select");this.PR=D;this.noneOfTheAbove=null;this.submitEndpoints=[];this.S=null;this.hide()};
S6H=function(F,k,z){F.noneOfTheAbove=new c2H(F.api,F.layoutId,F.interactionLoggingClientData,F.BR);F.noneOfTheAbove.T4(F.answers);F.noneOfTheAbove.init(qh("survey-none-of-the-above"),k,z)};
d1Y=function(F){F.L.forEach(function(k){k.Y.toggleButton(!1)});
bIH(F,!0)};
bIH=function(F,k){var z=F.j;F=J2C(F);k=k===void 0?!1:k;z.Y&&(F?z.Y.hide():z.Y.show(),k&&z.Y instanceof Bu&&!z.Y.j&&FND(z.Y,!1));z.L&&(F?z.L.show():z.L.hide())};
J2C=function(F){return F.L.some(function(k){return k.Y.isToggled()})||F.noneOfTheAbove.button.isToggled()};
GY=function(F,k,z,x,D){B5.call(this,F,k,z,x,"survey-question-single-select",function(C){e.api.C().V("supports_multi_step_on_desktop")&&D([C])});
var e=this;this.hide()};
UT=function(F,k,z,x){hL.call(this,F,{X:"div",J:"ytp-ad-survey",Z:[{X:"div",J:"ytp-ad-survey-questions"}]},"survey",k,z,x);this.questions=[];this.L=[];this.conditioningRules=[];this.Y=0;this.S=this.EK("ytp-ad-survey-questions");this.api.C().V("fix_survey_color_contrast_on_destop")&&this.EK("ytp-ad-survey").classList.add("color-contrast-fix");this.api.C().V("web_enable_speedmaster")&&this.EK("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()};
gUI=function(F,k){var z=F.L[k],x;(x=F.U)==null||x.dispose();g.J(z,S7)?y2p(F,g.J(z,S7),F.macros):g.J(z,aO)&&Rv6(F,g.J(z,aO),F.macros);F.Y=k};
y2p=function(F,k,z){var x=new GY(F.api,F.layoutId,F.interactionLoggingClientData,F.BR,F.j.bind(F));x.T4(F.S);x.init(qh("survey-question-single-select"),k,z);F.api.C().V("supports_multi_step_on_desktop")?F.U=x:F.questions.push(x);g.b(F,x)};
Rv6=function(F,k,z){var x=new afk(F.api,F.layoutId,F.interactionLoggingClientData,F.BR,F.j.bind(F));x.T4(F.S);x.init(qh("survey-question-multi-select"),k,z);F.api.C().V("supports_multi_step_on_desktop")?F.U=x:F.questions.push(x);g.b(F,x)};
tY=function(F,k,z,x){hL.call(this,F,{X:"div",J:"ytp-ad-survey-interstitial",Z:[{X:"div",J:"ytp-ad-survey-interstitial-contents",Z:[{X:"div",J:"ytp-ad-survey-interstitial-logo",Z:[{X:"div",J:"ytp-ad-survey-interstitial-logo-image"}]},{X:"div",J:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",k,z,x);this.Y=this.actionButton=null;this.interstitial=this.EK("ytp-ad-survey-interstitial");this.L=this.EK("ytp-ad-survey-interstitial-contents");this.text=this.EK("ytp-ad-survey-interstitial-text");
this.logoImage=this.EK("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Cv(this,500,!1,300);g.b(this,this.transition)};
Y6Y=function(F,k){k=k&&nJ(k)||"";if(g.hD(k))g.yI(Error("Found ThumbnailDetails without valid image URL"));else{var z=F.style;F=F.style.cssText;var x=document.implementation.createHTMLDocument("").createElement("DIV");x.style.cssText=F;F=It9(x.style);z.cssText=[F,'background-image:url("'+k+'");'].join("")}};
nUC=function(F){var k=g.xM("html5-video-player");k&&g.XF(k,"ytp-ad-display-override",F)};
Zj=function(F,k,z,x,D,e){e=e===void 0?0:e;$a.call(this,F,{X:"div",J:"ytp-preview-ad",Z:[{X:"div",J:"ytp-preview-ad__text"}]},"preview-ad",k,z,x,D);var C=this;this.PR=e;this.L=0;this.j=-1;this.U=this.EK("ytp-preview-ad__text");switch(this.PR){case 1:this.U.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Cv(this,400,!1,100,function(){C.hide()});
g.b(this,this.transition);this.hide()};
v5=function(F,k,z,x){hL.call(this,F,{X:"img",J:"ytp-ad-avatar"},"ad-avatar",k,z,x);this.hide()};
MWC=function(F){switch(F.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}};
c5=function(F,k,z,x,D,e){D=D===void 0?!1:D;e=e===void 0?!1:e;hL.call(this,F,{X:"button",J:"ytp-ad-button-vm"},"ad-button",k,z,x);this.buttonText=this.buttonIcon=null;this.hide();this.Y=D;this.L=e};
LZp=function(F,k,z,x,D){$a.call(this,F,{X:"div",WR:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],Z:[{X:"div",J:"ytp-ad-avatar-lockup-card__avatar_and_text_container",Z:[{X:"div",J:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",k,z,x,D);this.startMilliseconds=0;this.adAvatar=new v5(this.api,this.layoutId,this.interactionLoggingClientData,this.BR);g.b(this,this.adAvatar);XE(this.element,this.adAvatar.element,0);this.headline=new Hu(this.api,this.layoutId,
this.interactionLoggingClientData,this.BR);g.b(this,this.headline);this.headline.T4(this.EK("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new Hu(this.api,this.layoutId,this.interactionLoggingClientData,this.BR);g.b(this,this.description);this.description.T4(this.EK("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new c5(this.api,
this.layoutId,this.interactionLoggingClientData,this.BR);g.b(this,this.adButton);this.adButton.T4(this.element);this.hide()};
P5=function(F,k,z,x){hL.call(this,F,{X:"button",J:"ytp-skip-ad-button",Z:[{X:"div",J:"ytp-skip-ad-button__text"}]},"skip-button",k,z,x);var D=this;this.L=!1;this.j=this.EK("ytp-skip-ad-button__text");this.transition=new g.Cv(this,500,!1,100,function(){D.hide()});
g.b(this,this.transition);this.Y=new qf(this.element,15E3,5E3,.5,.5,!0);g.b(this,this.Y);this.hide()};
ffH=function(F,k,z,x,D){$a.call(this,F,{X:"div",J:"ytp-skip-ad"},"skip-ad",k,z,x,D);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.U=new P5(this.api,this.layoutId,this.interactionLoggingClientData,this.BR);g.b(this,this.U);this.U.T4(this.element);this.hide()};
OT=function(F,k,z,x){hL.call(this,F,{X:"div",J:"ytp-visit-advertiser-link"},"visit-advertiser-link",k,z,x);this.hide()};
Vv=function(F,k,z,x,D){hL.call(this,F,{X:"div",J:"ytp-ad-player-overlay-layout",Z:[{X:"div",J:"ytp-ad-player-overlay-layout__player-card-container"},{X:"div",J:"ytp-ad-player-overlay-layout__ad-info-container",Z:[F.C().V("delhi_modern_web_player")?{X:"div",J:"ytp-ad-player-overlay-layout__ad-info-container-left"}:null]},{X:"div",J:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{X:"div",J:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",k,z,x);this.L=
D;this.cR=this.EK("ytp-ad-player-overlay-layout__player-card-container");this.U=this.EK("ytp-ad-player-overlay-layout__ad-info-container");this.PR=this.EK("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Xf=this.EK("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");F.C().V("delhi_modern_web_player")&&(this.j=this.EK("ytp-ad-player-overlay-layout__ad-info-container-left"));this.hide()};
KZC=function(F,k,z,x){hL.call(this,F,{X:"div",J:"ytp-ad-grid-card-text",Z:[{X:"div",J:"ytp-ad-grid-card-text__metadata",Z:[{X:"div",J:"ytp-ad-grid-card-text__metadata__headline"},{X:"div",J:"ytp-ad-grid-card-text__metadata__description",Z:[{X:"div",J:"ytp-ad-grid-card-text__metadata__description__line"},{X:"div",J:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{X:"div",J:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",k,z,x);this.headline=new Hu(this.api,this.layoutId,this.interactionLoggingClientData,
this.BR);g.b(this,this.headline);this.headline.T4(this.EK("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new c5(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,!0);g.b(this,this.moreInfoButton);this.moreInfoButton.T4(this.EK("ytp-ad-grid-card-text__button"))};
IX=function(F,k,z,x){hL.call(this,F,{X:"div",J:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",k,z,x);this.Y=[]};
H5=function(F,k,z,x,D,e,C){$a.call(this,F,e,C,k,z,x,D);this.playerProgressOffsetMs=0;this.L=!1};
WZa=function(F){var k=g.xM("html5-video-player");k&&g.XF(k,"ytp-ad-display-override",F)};
Fnl=function(F,k,z,x,D){H5.call(this,F,k,z,x,D,{X:"div",J:"ytp-display-underlay-text-grid-cards",Z:[{X:"div",J:"ytp-display-underlay-text-grid-cards__content_container",Z:[{X:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header",Z:[{X:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{X:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{X:"div",J:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"},
{X:"div",J:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new IX(this.api,this.layoutId,this.interactionLoggingClientData,this.BR);g.b(this,this.adGridCardCollection);this.adGridCardCollection.T4(this.EK("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new c5(this.api,this.layoutId,this.interactionLoggingClientData,this.BR);g.b(this,this.adButton);this.adButton.T4(this.EK("ytp-display-underlay-text-grid-cards__content_container__ad_button"));
this.U=this.EK("ytp-display-underlay-text-grid-cards__content_container");this.j=this.EK("ytp-display-underlay-text-grid-cards__content_container__header")};
aX=function(F,k,z,x){hL.call(this,F,{X:"div",J:"ytp-ad-details-line"},"ad-details-line",k,z,x);this.Y=[];this.hide()};
So=function(F,k,z,x){hL.call(this,F,{X:"div",J:"ytp-image-background",Z:[{X:"img",J:"ytp-image-background-image"}]},"image-background",k,z,x);this.hide()};
kp$=function(F,k,z,x,D){$a.call(this,F,{X:"svg",J:"ytp-timed-pie-countdown",D:{viewBox:"0 0 20 20"},Z:[{X:"circle",J:"ytp-timed-pie-countdown__background",D:{r:"10",cx:"10",cy:"10"}},{X:"circle",J:"ytp-timed-pie-countdown__inner",D:{r:"5",cx:"10",cy:"10"}},{X:"circle",J:"ytp-timed-pie-countdown__outer",D:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",k,z,x,D);this.U=this.EK("ytp-timed-pie-countdown__inner");this.L=Math.ceil(2*Math.PI*5);this.hide()};
bz=function(F,k,z,x){hL.call(this,F,{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout",D:{tabindex:"0"},Z:[{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content",Z:[{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",Z:[{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"},
{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{X:"div",J:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",k,z,x);this.L=null;this.j=this.EK("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.U=new PW;g.b(this,this.U);this.hide()};
oYV=function(F){var k=g.xM("html5-video-player");k&&g.XF(k,"ytp-ad-display-override",F)};
zaD=function(F){if(!F.adAvatar||!g.J(F.adAvatar,dZ))return g.JV(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!F.headline)return g.JV(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!F.adBadge||!g.J(F.adBadge,JY))return g.JV(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!F.adButton||!g.J(F.adButton,yv))return g.JV(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!F.adInfoRenderer||
!g.J(F.adInfoRenderer,d0))return g.JV(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;F=F.durationMilliseconds||0;return typeof F!=="number"||F<=0?(g.JV(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+F)),!1):!0};
RX=function(F,k){k=k===void 0?2:k;g.uG.call(this);this.api=F;this.Y=null;this.j9=new PW(this);g.b(this,this.j9);this.L=kIk;this.j9.N(this.api,"presentingplayerstatechange",this.fD);this.Y=this.j9.N(this.api,"progresssync",this.xj);this.r0=k;this.r0===1&&this.xj()};
gZ=function(F,k,z){Wx.call(this,F);this.api=F;this.BR=k;this.L={};F=new g.Y({X:"div",WR:["video-ads","ytp-ad-module"]});g.b(this,F);BJ&&g.C6(F.element,"ytp-ads-tiny-mode");this.W=new Gb(F.element);g.b(this,this.W);g.Hv(this.api,F.element,4);$X(z)&&(z=new g.Y({X:"div",WR:["ytp-ad-underlay"]}),g.b(this,z),this.U=new Gb(z.element),g.b(this,this.U),g.Hv(this.api,z.element,0));g.b(this,tBI())};
x9n=function(F,k){F=g.b3(F.L,k.id,null);F==null&&g.yI(Error("Component not found for element id: "+k.id));return F||null};
ikl=function(F){g.XP.call(this,F);var k=this;this.L=null;this.created=!1;this.U=F.C().V("h5_use_refactored_get_ad_break")?new WwM(this.player):new Jm(this.player);this.j=function(){if(k.L!=null)return k.L;var x=new DYI({JI:TY(k.Y).JI,Eh:TY(k.Y).Eh,T:k.player,fF:TY(k.Y).fF,oU:k.Y.Y.oU,vO:TY(k.Y).vO,sJ:k.Y.Y.sJ});k.L=x.C4;return k.L};
this.Y=new pba(this.player,this,this.U,this.j);g.b(this,this.Y);var z=F.C();!OB(z)||g.IB(z)||JJ(z)||(g.b(this,new gZ(F,TY(this.Y).BR,TY(this.Y).fF)),g.b(this,new EUn(F)))};
D9$=function(F){F.created!==F.loaded&&To("Created and loaded are out of sync")};
eaC=function(F){g.XP.prototype.load.call(F);var k=TY(F.Y).fF;try{F.player.getRootNode().classList.add("ad-created")}catch(E){To(E instanceof Error?E:String(E))}var z=F.player.getVideoData(1),x=z&&z.videoId||"",D=z&&z.getPlayerResponse()||{},e=(!F.player.C().experiments.Ca("debug_ignore_ad_placements")&&D&&D.adPlacements||[]).map(function(E){return E.adPlacementRenderer}),C=((D==null?void 0:D.adSlots)||[]).map(function(E){return g.J(E,Y8)});
D=D.playerConfig&&D.playerConfig.daiConfig&&D.playerConfig.daiConfig.enableDai||!1;z&&z.oS();e=$9n(e,C,k,TY(F.Y).qt);C=z&&z.clientPlaybackNonce||"";z=z&&z.Si||!1;if(vw(k,!0)&&z){var p;k={};(p=F.player.getVideoData())==null||p.UK("p_cpb",(k.cc=C,k))}p=1E3*F.player.getDuration(1);j5$(F);F.Y.Y.Il.Cb(C,p,z,e.Mp,e.DZ,e.Mp,D,x)};
j5$=function(F){var k,z;if(z=(k=F.player.getVideoData(1))==null||!k.Si)k=F.player.C(),z=OB(k)&&!g.Pe(k)&&k.playerStyle==="desktop-polymer";z&&(F=F.player.getInternalApi(),F.addEventListener("updateKevlarOrC3Companion",DKR),F.addEventListener("updateEngagementPanelAction",$KY),F.addEventListener("changeEngagementPanelVisibility",j95),window.addEventListener("yt-navigate-start",CaH))};
YA=function(F,k){k===F.Af&&(F.Af=void 0)};
CD9=function(F){var k=TY(F.Y).W7,z=k.j().v2("SLOT_TYPE_PLAYER_BYTES",1);k=sI(k.xG.get(),1).clientPlaybackNonce;var x=!1;z=g.l(z);for(var D=z.next();!D.done;D=z.next()){D=D.value;var e=D.slotType==="SLOT_TYPE_PLAYER_BYTES"&&D.slotEntryTrigger instanceof c7?D.slotEntryTrigger.uv:void 0;e&&e===k&&(x&&To("More than 1 preroll playerBytes slot detected",D),x=!0)}x||Dj(TY(F.Y).oQ)};
Ann=function(F){if(LD(TY(F.Y).fF))return!0;var k="";F=g.l(TY(F.Y).vO.TO.keys());for(var z=F.next();!z.done;z=F.next()){z=z.value;if(z.slotType==="SLOT_TYPE_PLAYER_BYTES"&&z.HR==="core")return!0;k+=z.slotType+" "}Math.random()<.01&&To("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:k});return!1};
p6V=function(F){F=g.l(TY(F.Y).vO.TO.values());for(var k=F.next();!k.done;k=F.next())if(k.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1};
rcY=function(F,k,z,x,D,e){z=z===void 0?[]:z;x=x===void 0?"":x;D=D===void 0?"":D;var C=TY(F.Y).fF,p=F.player.getVideoData(1);p&&p.getPlayerResponse();p&&p.oS();z=$9n(k,z,C,TY(F.Y).qt);t1H(TY(F.Y).zA,x,z.Mp,z.DZ,k,D,e)};
$9n=function(F,k,z,x){k={Mp:[],DZ:k};F=g.l(F);for(var D=F.next();!D.done;D=F.next())if((D=D.value)&&D.renderer!=null){var e=D.renderer;if(!z.T.C().V("html5_enable_vod_lasr_with_notify_pacf")){var C=void 0,p=void 0,E=void 0,X=void 0,q=x;g.J((X=e.sandwichedLinearAdRenderer)==null?void 0:X.adVideoStart,hk)?(C=g.J((E=e.sandwichedLinearAdRenderer)==null?void 0:E.adVideoStart,hk),C=yun(C,q),g.ME(e.sandwichedLinearAdRenderer.adVideoStart,hk,C)):g.J((p=e.linearAdSequenceRenderer)==null?void 0:p.adStart,hk)&&
(E=g.J((C=e.linearAdSequenceRenderer)==null?void 0:C.adStart,hk),C=yun(E,q),g.ME(e.linearAdSequenceRenderer.adStart,hk,C))}k.Mp.push(D)}return k};
g.nQ=function(F){if(typeof DOMParser!="undefined")return i3(new DOMParser,ciH(F),"application/xml");throw Error("Your browser does not support loading xml documents");};
g.Mb=function(F){g.S.call(this);this.callback=F;this.Y=new r6(0,0,.4,0,.2,1,1,1);this.delay=new g.fS(this.next,window,this);g.b(this,this.delay)};
g.EYH=function(F){var k=F.C();return k.ZR&&!k.U&&g.tJ(k)?F.isEmbedsShortsMode()?(F=F.CF(),Math.min(F.width,F.height)>=315):!F.hH():!1};
g.LQ=function(F){g.Y.call(this,{X:"div",J:"ytp-more-videos-view",D:{tabIndex:"-1"}});var k=this;this.api=F;this.L=!0;this.U=new g.yQ(this);this.Y=[];this.suggestionData=[];this.columns=this.containerWidth=this.B=this.j=this.scrollPosition=0;this.title=new g.Y({X:"h2",J:"ytp-related-title",jk:"{{title}}"});this.previous=new g.Y({X:"button",WR:["ytp-button","ytp-previous"],D:{"aria-label":"Show previous suggested videos"},Z:[g.Ue()]});this.G=new g.Mb(function(z){k.suggestions.element.scrollLeft=-z});
this.next=new g.Y({X:"button",WR:["ytp-button","ytp-next"],D:{"aria-label":"Show more suggested videos"},Z:[g.tL()]});g.b(this,this.U);this.S=F.C().j;g.b(this,this.title);this.title.T4(this.element);this.suggestions=new g.Y({X:"div",J:"ytp-suggestions"});g.b(this,this.suggestions);this.suggestions.T4(this.element);g.b(this,this.previous);this.previous.T4(this.element);this.previous.listen("click",this.NC,this);g.b(this,this.G);X6V(this);g.b(this,this.next);this.next.T4(this.element);this.next.listen("click",
this.HS,this);this.U.N(this.api,"appresize",this.OH);this.U.N(this.api,"fullscreentoggled",this.GH);this.U.N(this.api,"videodatachange",this.onVideoDataChange);this.OH(this.api.Ka().getPlayerSize());this.onVideoDataChange()};
X6V=function(F){for(var k={TJ:0};k.TJ<16;k={TJ:k.TJ},++k.TJ){var z=new g.Y({X:"a",J:"ytp-suggestion-link",D:{href:"{{link}}",target:F.api.C().K,"aria-label":"{{aria_label}}"},Z:[{X:"div",J:"ytp-suggestion-image"},{X:"div",J:"ytp-suggestion-overlay",D:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},Z:[{X:"div",J:"ytp-suggestion-title",jk:"{{title}}"},{X:"div",J:"ytp-suggestion-author",jk:"{{author_and_views}}"},{X:"div",D:{"data-is-live":"{{is_live}}"},J:"ytp-suggestion-duration",
jk:"{{duration}}"}]}]});g.b(F,z);var x=z.EK("ytp-suggestion-link");g.Xr(x,"transitionDelay",k.TJ/20+"s");F.U.N(x,"click",function(D){return function(e){var C=D.TJ;if(F.L){var p=F.suggestionData[C],E=p.sessionData;F.S&&F.api.V("web_player_log_click_before_generating_ve_conversion_params")?(F.api.logClick(F.Y[C].element),C=p.Ai(),p={},g.OJ(F.api,p),C=g.oW(C,p),g.Ch(C,F.api,e)):g.eT(e,F.api,F.S,E||void 0)&&F.api.AR(p.videoId,E,p.playlistId)}else e.preventDefault(),document.activeElement.blur()}}(k));
z.T4(F.suggestions.element);F.Y.push(z);F.api.createServerVe(z.element,z)}};
qC9=function(F){if(F.api.C().V("web_player_log_click_before_generating_ve_conversion_params"))for(var k=Math.floor(-F.scrollPosition/(F.j+8)),z=Math.min(k+F.columns,F.suggestionData.length)-1;k<=z;k++)F.api.logVisibility(F.Y[k].element,!0)};
g.fQ=function(F){var k=F.api.DT()?32:16;k=F.B/2+k;F.next.element.style.bottom=k+"px";F.previous.element.style.bottom=k+"px";k=F.scrollPosition;var z=F.containerWidth-F.suggestionData.length*(F.j+8);g.XF(F.element,"ytp-scroll-min",k>=0);g.XF(F.element,"ytp-scroll-max",k<=z)};
uxp=function(F){for(var k=F.suggestionData.length,z=0;z<k;++z){var x=void 0,D=void 0,e=void 0;x=F;var C=x.api.C(),p=x.suggestionData[z],E=x.Y[z];e=x.api.isEmbedsShortsMode()?p.shortViewCount||"":p.shortViewCount?p.author+" \u2022 "+p.shortViewCount:p.author;E.element.style.display="";g.Xr(E.EK("ytp-suggestion-link"),"display","inline-block");NIn.test(p.title)&&(E.EK("ytp-suggestion-title").dir="rtl");NIn.test(e)&&(E.EK("ytp-suggestion-author").dir="rtl");D=p.isLivePlayback?"Live":p.lengthSeconds?
g.cu(p.lengthSeconds):"";var X=p.Ai(x.api.isEmbedsShortsMode());if(g.tJ(C)&&!C.V("web_player_log_click_before_generating_ve_conversion_params")){var q={};g.Xh(x.api,"addEmbedsConversionTrackingParams",[q]);X=g.oW(X,q)}C.V("web_player_log_click_before_generating_ve_conversion_params")&&(C=(C=p.sessionData)&&C.itct)&&x.api.setTrackingParams(E.element,C);E.update({author_and_views:e,duration:D,link:X,title:p.title,aria_label:p.ariaLabel||p.title,is_live:p.isLivePlayback,aria_hidden:!!p.ariaLabel,blink_rendering_hack:g.SD||
g.G9?"will-change: opacity":void 0});D=E.EK("ytp-suggestion-image");x=x.api.isEmbedsShortsMode()?p.zr("hq2.jpg"):p.zr();D.style.backgroundImage=x?"url("+x+")":""}if(k<16)for(;k<16;++k)g.Xr(F.Y[k].EK("ytp-suggestion-link"),"display","none");g.fQ(F)};
Fn6=[];pk=typeof Object.defineProperties=="function"?Object.defineProperty:function(F,k,z){if(F==Array.prototype||F==Object.prototype)return F;F[k]=z.value;return F};
g.An=oYa(this);EC("Symbol",function(F){function k(e){if(this instanceof k)throw new TypeError("Symbol is not a constructor");return new z(x+(e||"")+"_"+D++,e)}
function z(e,C){this.Y=e;pk(this,"description",{configurable:!0,writable:!0,value:C})}
if(F)return F;z.prototype.toString=function(){return this.Y};
var x="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",D=0;return k});
EC("Symbol.iterator",function(F){if(F)return F;F=Symbol("Symbol.iterator");for(var k="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),z=0;z<k.length;z++){var x=g.An[k[z]];typeof x==="function"&&typeof x.prototype[F]!="function"&&pk(x.prototype,F,{configurable:!0,writable:!0,value:function(){return zan(kp9(this))}})}return F});
var x9R=typeof Object.create=="function"?Object.create:function(F){function k(){}
k.prototype=F;return new k},w6C=function(){function F(){function z(){}
new z;Reflect.construct(z,[],function(){});
return new z instanceof z}
if(typeof Reflect!="undefined"&&Reflect.construct){if(F())return Reflect.construct;var k=Reflect.construct;return function(z,x,D){z=k(z,x);D&&Reflect.setPrototypeOf(z,D.prototype);return z}}return function(z,x,D){D===void 0&&(D=z);
D=x9R(D.prototype||Object.prototype);return Function.prototype.apply.call(z,D,x)||D}}(),m97;
if(typeof Object.setPrototypeOf=="function")m97=Object.setPrototypeOf;else{var TIY;a:{var lMC={a:!0},Q59={};try{Q59.__proto__=lMC;TIY=Q59.a;break a}catch(F){}TIY=!1}m97=TIY?function(F,k){F.__proto__=k;if(F.__proto__!==k)throw new TypeError(F+" is not extensible");return F}:null}var Xx=m97,ha$=typeof Object.assign=="function"?Object.assign:function(F,k){for(var z=1;z<arguments.length;z++){var x=arguments[z];
if(x)for(var D in x)N9(x,D)&&(F[D]=x[D])}return F};
EC("Object.assign",function(F){return F||ha$});
uD.prototype.B=function(F){this.L=F};
uD.prototype.return=function(F){this.U={return:F};this.Y=this.W};
uD.prototype.Sk=function(F){this.Y=F};
EC("globalThis",function(F){return F||g.An});
EC("Reflect",function(F){return F?F:{}});
EC("Reflect.construct",function(){return w6C});
EC("Reflect.setPrototypeOf",function(F){return F?F:Xx?function(k,z){try{return Xx(k,z),!0}catch(x){return!1}}:null});
EC("Promise",function(F){function k(C){this.Y=0;this.U=void 0;this.L=[];this.G=!1;var p=this.j();try{C(p.resolve,p.reject)}catch(E){p.reject(E)}}
function z(){this.Y=null}
function x(C){return C instanceof k?C:new k(function(p){p(C)})}
if(F)return F;z.prototype.L=function(C){if(this.Y==null){this.Y=[];var p=this;this.U(function(){p.W()})}this.Y.push(C)};
var D=g.An.setTimeout;z.prototype.U=function(C){D(C,0)};
z.prototype.W=function(){for(;this.Y&&this.Y.length;){var C=this.Y;this.Y=[];for(var p=0;p<C.length;++p){var E=C[p];C[p]=null;try{E()}catch(X){this.j(X)}}}this.Y=null};
z.prototype.j=function(C){this.U(function(){throw C;})};
k.prototype.j=function(){function C(X){return function(q){E||(E=!0,X.call(p,q))}}
var p=this,E=!1;return{resolve:C(this.t4),reject:C(this.W)}};
k.prototype.t4=function(C){if(C===this)this.W(new TypeError("A Promise cannot resolve to itself"));else if(C instanceof k)this.Xf(C);else{a:switch(typeof C){case "object":var p=C!=null;break a;case "function":p=!0;break a;default:p=!1}p?this.PR(C):this.S(C)}};
k.prototype.PR=function(C){var p=void 0;try{p=C.then}catch(E){this.W(E);return}typeof p=="function"?this.yh(p,C):this.S(C)};
k.prototype.W=function(C){this.B(2,C)};
k.prototype.S=function(C){this.B(1,C)};
k.prototype.B=function(C,p){if(this.Y!=0)throw Error("Cannot settle("+C+", "+p+"): Promise already settled in state"+this.Y);this.Y=C;this.U=p;this.Y===2&&this.mp();this.K()};
k.prototype.mp=function(){var C=this;D(function(){if(C.Qh()){var p=g.An.console;typeof p!=="undefined"&&p.error(C.U)}},1)};
k.prototype.Qh=function(){if(this.G)return!1;var C=g.An.CustomEvent,p=g.An.Event,E=g.An.dispatchEvent;if(typeof E==="undefined")return!0;typeof C==="function"?C=new C("unhandledrejection",{cancelable:!0}):typeof p==="function"?C=new p("unhandledrejection",{cancelable:!0}):(C=g.An.document.createEvent("CustomEvent"),C.initCustomEvent("unhandledrejection",!1,!0,C));C.promise=this;C.reason=this.U;return E(C)};
k.prototype.K=function(){if(this.L!=null){for(var C=0;C<this.L.length;++C)e.L(this.L[C]);this.L=null}};
var e=new z;k.prototype.Xf=function(C){var p=this.j();C.Jb(p.resolve,p.reject)};
k.prototype.yh=function(C,p){var E=this.j();try{C.call(p,E.resolve,E.reject)}catch(X){E.reject(X)}};
k.prototype.then=function(C,p){function E(u,w){return typeof u=="function"?function(m){try{X(u(m))}catch(h){q(h)}}:w}
var X,q,N=new k(function(u,w){X=u;q=w});
this.Jb(E(C,X),E(p,q));return N};
k.prototype.catch=function(C){return this.then(void 0,C)};
k.prototype.Jb=function(C,p){function E(){switch(X.Y){case 1:C(X.U);break;case 2:p(X.U);break;default:throw Error("Unexpected state: "+X.Y);}}
var X=this;this.L==null?e.L(E):this.L.push(E);this.G=!0};
k.resolve=x;k.reject=function(C){return new k(function(p,E){E(C)})};
k.race=function(C){return new k(function(p,E){for(var X=g.l(C),q=X.next();!q.done;q=X.next())x(q.value).Jb(p,E)})};
k.all=function(C){var p=g.l(C),E=p.next();return E.done?x([]):new k(function(X,q){function N(m){return function(h){u[m]=h;w--;w==0&&X(u)}}
var u=[],w=0;do u.push(void 0),w++,x(E.value).Jb(N(u.length-1),q),E=p.next();while(!E.done)})};
return k});
EC("Object.setPrototypeOf",function(F){return F||Xx});
EC("Symbol.dispose",function(F){return F?F:Symbol("Symbol.dispose")});
EC("SuppressedError",function(F){function k(z,x,D){if(!(this instanceof k))return new k(z,x,D);D=Error(D);"stack"in D&&(this.stack=D.stack);this.message=D.message;this.error=z;this.suppressed=x}
if(F)return F;g.T(k,Error);k.prototype.name="SuppressedError";return k});
EC("Array.prototype.find",function(F){return F?F:function(k,z){return X6a(this,k,z).Jm}});
EC("WeakMap",function(F){function k(E){this.Y=(p+=Math.random()+1).toString();if(E){E=g.l(E);for(var X;!(X=E.next()).done;)X=X.value,this.set(X[0],X[1])}}
function z(){}
function x(E){var X=typeof E;return X==="object"&&E!==null||X==="function"}
function D(E){if(!N9(E,C)){var X=new z;pk(E,C,{value:X})}}
function e(E){var X=Object[E];X&&(Object[E]=function(q){if(q instanceof z)return q;Object.isExtensible(q)&&D(q);return X(q)})}
if(function(){if(!F||!Object.seal)return!1;try{var E=Object.seal({}),X=Object.seal({}),q=new F([[E,2],[X,3]]);if(q.get(E)!=2||q.get(X)!=3)return!1;q.delete(E);q.set(X,4);return!q.has(E)&&q.get(X)==4}catch(N){return!1}}())return F;
var C="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var p=0;k.prototype.set=function(E,X){if(!x(E))throw Error("Invalid WeakMap key");D(E);if(!N9(E,C))throw Error("WeakMap key fail: "+E);E[C][this.Y]=X;return this};
k.prototype.get=function(E){return x(E)&&N9(E,C)?E[C][this.Y]:void 0};
k.prototype.has=function(E){return x(E)&&N9(E,C)&&N9(E[C],this.Y)};
k.prototype.delete=function(E){return x(E)&&N9(E,C)&&N9(E[C],this.Y)?delete E[C][this.Y]:!1};
return k});
EC("Map",function(F){function k(){var p={};return p.previous=p.next=p.head=p}
function z(p,E){var X=p[1];return zan(function(){if(X){for(;X.head!=p[1];)X=X.previous;for(;X.next!=X.head;)return X=X.next,{done:!1,value:E(X)};X=null}return{done:!0,value:void 0}})}
function x(p,E){var X=E&&typeof E;X=="object"||X=="function"?e.has(E)?X=e.get(E):(X=""+ ++C,e.set(E,X)):X="p_"+E;var q=p[0][X];if(q&&N9(p[0],X))for(p=0;p<q.length;p++){var N=q[p];if(E!==E&&N.key!==N.key||E===N.key)return{id:X,list:q,index:p,entry:N}}return{id:X,list:q,index:-1,entry:void 0}}
function D(p){this[0]={};this[1]=k();this.size=0;if(p){p=g.l(p);for(var E;!(E=p.next()).done;)E=E.value,this.set(E[0],E[1])}}
if(function(){if(!F||typeof F!="function"||!F.prototype.entries||typeof Object.seal!="function")return!1;try{var p=Object.seal({x:4}),E=new F(g.l([[p,"s"]]));if(E.get(p)!="s"||E.size!=1||E.get({x:4})||E.set({x:4},"t")!=E||E.size!=2)return!1;var X=E.entries(),q=X.next();if(q.done||q.value[0]!=p||q.value[1]!="s")return!1;q=X.next();return q.done||q.value[0].x!=4||q.value[1]!="t"||!X.next().done?!1:!0}catch(N){return!1}}())return F;
var e=new WeakMap;D.prototype.set=function(p,E){p=p===0?0:p;var X=x(this,p);X.list||(X.list=this[0][X.id]=[]);X.entry?X.entry.value=E:(X.entry={next:this[1],previous:this[1].previous,head:this[1],key:p,value:E},X.list.push(X.entry),this[1].previous.next=X.entry,this[1].previous=X.entry,this.size++);return this};
D.prototype.delete=function(p){p=x(this,p);return p.entry&&p.list?(p.list.splice(p.index,1),p.list.length||delete this[0][p.id],p.entry.previous.next=p.entry.next,p.entry.next.previous=p.entry.previous,p.entry.head=null,this.size--,!0):!1};
D.prototype.clear=function(){this[0]={};this[1]=this[1].previous=k();this.size=0};
D.prototype.has=function(p){return!!x(this,p).entry};
D.prototype.get=function(p){return(p=x(this,p).entry)&&p.value};
D.prototype.entries=function(){return z(this,function(p){return[p.key,p.value]})};
D.prototype.keys=function(){return z(this,function(p){return p.key})};
D.prototype.values=function(){return z(this,function(p){return p.value})};
D.prototype.forEach=function(p,E){for(var X=this.entries(),q;!(q=X.next()).done;)q=q.value,p.call(E,q[1],q[0],this)};
D.prototype[Symbol.iterator]=D.prototype.entries;var C=0;return D});
EC("Set",function(F){function k(z){this.Y=new Map;if(z){z=g.l(z);for(var x;!(x=z.next()).done;)this.add(x.value)}this.size=this.Y.size}
if(function(){if(!F||typeof F!="function"||!F.prototype.entries||typeof Object.seal!="function")return!1;try{var z=Object.seal({x:4}),x=new F(g.l([z]));if(!x.has(z)||x.size!=1||x.add(z)!=x||x.size!=1||x.add({x:4})!=x||x.size!=2)return!1;var D=x.entries(),e=D.next();if(e.done||e.value[0]!=z||e.value[1]!=z)return!1;e=D.next();return e.done||e.value[0]==z||e.value[0].x!=4||e.value[1]!=e.value[0]?!1:D.next().done}catch(C){return!1}}())return F;
k.prototype.add=function(z){z=z===0?0:z;this.Y.set(z,z);this.size=this.Y.size;return this};
k.prototype.delete=function(z){z=this.Y.delete(z);this.size=this.Y.size;return z};
k.prototype.clear=function(){this.Y.clear();this.size=0};
k.prototype.has=function(z){return this.Y.has(z)};
k.prototype.entries=function(){return this.Y.entries()};
k.prototype.values=function(){return this.Y.values()};
k.prototype.keys=k.prototype.values;k.prototype[Symbol.iterator]=k.prototype.values;k.prototype.forEach=function(z,x){var D=this;this.Y.forEach(function(e){return z.call(x,e,e,D)})};
return k});
EC("Math.log2",function(F){return F?F:function(k){return Math.log(k)/Math.LN2}});
EC("Object.values",function(F){return F?F:function(k){var z=[],x;for(x in k)N9(k,x)&&z.push(k[x]);return z}});
EC("Object.is",function(F){return F?F:function(k,z){return k===z?k!==0||1/k===1/z:k!==k&&z!==z}});
EC("Array.prototype.includes",function(F){return F?F:function(k,z){var x=this;x instanceof String&&(x=String(x));var D=x.length;z=z||0;for(z<0&&(z=Math.max(z+D,0));z<D;z++){var e=x[z];if(e===k||Object.is(e,k))return!0}return!1}});
EC("String.prototype.includes",function(F){return F?F:function(k,z){return c6(this,k,"includes").indexOf(k,z||0)!==-1}});
EC("Array.from",function(F){return F?F:function(k,z,x){z=z!=null?z:function(p){return p};
var D=[],e=typeof Symbol!="undefined"&&Symbol.iterator&&k[Symbol.iterator];if(typeof e=="function"){k=e.call(k);for(var C=0;!(e=k.next()).done;)D.push(z.call(x,e.value,C++))}else for(e=k.length,C=0;C<e;C++)D.push(z.call(x,k[C],C));return D}});
EC("Object.entries",function(F){return F?F:function(k){var z=[],x;for(x in k)N9(k,x)&&z.push([x,k[x]]);return z}});
EC("Number.isFinite",function(F){return F?F:function(k){return typeof k!=="number"?!1:!isNaN(k)&&k!==Infinity&&k!==-Infinity}});
EC("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
EC("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
EC("Number.isInteger",function(F){return F?F:function(k){return Number.isFinite(k)?k===Math.floor(k):!1}});
EC("Number.isSafeInteger",function(F){return F?F:function(k){return Number.isInteger(k)&&Math.abs(k)<=Number.MAX_SAFE_INTEGER}});
EC("String.prototype.startsWith",function(F){return F?F:function(k,z){var x=c6(this,k,"startsWith");k+="";var D=x.length,e=k.length;z=Math.max(0,Math.min(z|0,x.length));for(var C=0;C<e&&z<D;)if(x[z++]!=k[C++])return!1;return C>=e}});
EC("String.prototype.endsWith",function(F){return F?F:function(k,z){var x=c6(this,k,"endsWith");k+="";z===void 0&&(z=x.length);z=Math.max(0,Math.min(z|0,x.length));for(var D=k.length;D>0&&z>0;)if(x[--z]!=k[--D])return!1;return D<=0}});
EC("Array.prototype.entries",function(F){return F?F:function(){return OC(this,function(k,z){return[k,z]})}});
EC("Math.imul",function(F){return F?F:function(k,z){k=Number(k);z=Number(z);var x=k&65535,D=z&65535;return x*D+((k>>>16&65535)*D+x*(z>>>16&65535)<<16>>>0)|0}});
EC("Math.trunc",function(F){return F?F:function(k){k=Number(k);if(isNaN(k)||k===Infinity||k===-Infinity||k===0)return k;var z=Math.floor(Math.abs(k));return k<0?-z:z}});
EC("Math.clz32",function(F){return F?F:function(k){k=Number(k)>>>0;if(k===0)return 32;var z=0;(k&4294901760)===0&&(k<<=16,z+=16);(k&4278190080)===0&&(k<<=8,z+=8);(k&4026531840)===0&&(k<<=4,z+=4);(k&3221225472)===0&&(k<<=2,z+=2);(k&2147483648)===0&&z++;return z}});
EC("Number.isNaN",function(F){return F?F:function(k){return typeof k==="number"&&isNaN(k)}});
EC("Array.prototype.keys",function(F){return F?F:function(){return OC(this,function(k){return k})}});
EC("Array.prototype.values",function(F){return F?F:function(){return OC(this,function(k,z){return z})}});
EC("Array.prototype.fill",function(F){return F?F:function(k,z,x){var D=this.length||0;z<0&&(z=Math.max(0,D+z));if(x==null||x>D)x=D;x=Number(x);x<0&&(x=Math.max(0,D+x));for(z=Number(z||0);z<x;z++)this[z]=k;return this}});
EC("Int8Array.prototype.fill",VR);EC("Uint8Array.prototype.fill",VR);EC("Uint8ClampedArray.prototype.fill",VR);EC("Int16Array.prototype.fill",VR);EC("Uint16Array.prototype.fill",VR);EC("Int32Array.prototype.fill",VR);EC("Uint32Array.prototype.fill",VR);EC("Float32Array.prototype.fill",VR);EC("Float64Array.prototype.fill",VR);
EC("Object.fromEntries",function(F){return F?F:function(k){var z={};if(!(Symbol.iterator in k))throw new TypeError(""+k+" is not iterable");k=k[Symbol.iterator].call(k);for(var x=k.next();!x.done;x=k.next()){x=x.value;if(Object(x)!==x)throw new TypeError("iterable for fromEntries should yield objects");z[x[0]]=x[1]}return z}});
EC("String.prototype.replaceAll",function(F){return F?F:function(k,z){if(k instanceof RegExp&&!k.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return k instanceof RegExp?this.replace(k,z):this.replace(new RegExp(String(k).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),z)}});
EC("String.prototype.repeat",function(F){return F?F:function(k){var z=c6(this,null,"repeat");if(k<0||k>1342177279)throw new RangeError("Invalid count value");k|=0;for(var x="";k;)if(k&1&&(x+=z),k>>>=1)z+=z;return x}});
EC("Promise.prototype.finally",function(F){return F?F:function(k){return this.then(function(z){return Promise.resolve(k()).then(function(){return z})},function(z){return Promise.resolve(k()).then(function(){throw z;
})})}});
EC("String.prototype.padStart",function(F){return F?F:function(k,z){var x=c6(this,null,"padStart");k-=x.length;z=z!==void 0?String(z):" ";return(k>0&&z?z.repeat(Math.ceil(k/z.length)).substring(0,k):"")+x}});
EC("Array.prototype.findIndex",function(F){return F?F:function(k,z){return X6a(this,k,z).mm}});
EC("Math.sign",function(F){return F?F:function(k){k=Number(k);return k===0||isNaN(k)?k:k>0?1:-1}});
EC("WeakSet",function(F){function k(z){this.Y=new WeakMap;if(z){z=g.l(z);for(var x;!(x=z.next()).done;)this.add(x.value)}}
if(function(){if(!F||!Object.seal)return!1;try{var z=Object.seal({}),x=Object.seal({}),D=new F([z]);if(!D.has(z)||D.has(x))return!1;D.delete(z);D.add(x);return!D.has(z)&&D.has(x)}catch(e){return!1}}())return F;
k.prototype.add=function(z){this.Y.set(z,!0);return this};
k.prototype.has=function(z){return this.Y.has(z)};
k.prototype.delete=function(z){return this.Y.delete(z)};
return k});
EC("Array.prototype.copyWithin",function(F){function k(z){z=Number(z);return z===Infinity||z===-Infinity?z:z|0}
return F?F:function(z,x,D){var e=this.length;z=k(z);x=k(x);D=D===void 0?e:k(D);z=z<0?Math.max(e+z,0):Math.min(z,e);x=x<0?Math.max(e+x,0):Math.min(x,e);D=D<0?Math.max(e+D,0):Math.min(D,e);if(z<x)for(;x<D;)x in this?this[z++]=this[x++]:(delete this[z++],x++);else for(D=Math.min(D,e+x-z),z+=D-x;D>x;)--D in this?this[--z]=this[D]:delete this[--z];return this}});
EC("Int8Array.prototype.copyWithin",I5);EC("Uint8Array.prototype.copyWithin",I5);EC("Uint8ClampedArray.prototype.copyWithin",I5);EC("Int16Array.prototype.copyWithin",I5);EC("Uint16Array.prototype.copyWithin",I5);EC("Int32Array.prototype.copyWithin",I5);EC("Uint32Array.prototype.copyWithin",I5);EC("Float32Array.prototype.copyWithin",I5);EC("Float64Array.prototype.copyWithin",I5);EC("Array.prototype.at",function(F){return F?F:H6});
EC("Int8Array.prototype.at",a5);EC("Uint8Array.prototype.at",a5);EC("Uint8ClampedArray.prototype.at",a5);EC("Int16Array.prototype.at",a5);EC("Uint16Array.prototype.at",a5);EC("Int32Array.prototype.at",a5);EC("Uint32Array.prototype.at",a5);EC("Float32Array.prototype.at",a5);EC("Float64Array.prototype.at",a5);EC("String.prototype.at",function(F){return F?F:H6});
EC("Array.prototype.findLastIndex",function(F){return F?F:function(k,z){return qCI(this,k,z).mm}});
EC("Int8Array.prototype.findLastIndex",SH);EC("Uint8Array.prototype.findLastIndex",SH);EC("Uint8ClampedArray.prototype.findLastIndex",SH);EC("Int16Array.prototype.findLastIndex",SH);EC("Uint16Array.prototype.findLastIndex",SH);EC("Int32Array.prototype.findLastIndex",SH);EC("Uint32Array.prototype.findLastIndex",SH);EC("Float32Array.prototype.findLastIndex",SH);EC("Float64Array.prototype.findLastIndex",SH);EC("Number.parseInt",function(F){return F||parseInt});var eX,Lk,NIR;eX=eX||{};g.bD=this||self;Lk="closure_uid_"+(Math.random()*1E9>>>0);NIR=0;g.T(i7,Error);g.S.prototype.py=!1;g.S.prototype.z4=function(){return this.py};
g.S.prototype.dispose=function(){this.py||(this.py=!0,this.h4())};
g.S.prototype[Symbol.dispose]=function(){this.dispose()};
g.S.prototype.addOnDisposeCallback=function(F,k){this.py?k!==void 0?F.call(k):F():(this.Rx||(this.Rx=[]),k&&(F=F.bind(k)),this.Rx.push(F))};
g.S.prototype.h4=function(){if(this.Rx)for(;this.Rx.length;)this.Rx.shift()()};var haC;g.T(E$,g.S);E$.prototype.share=function(){if(this.z4())throw Error("E:AD");this.j++;return this};
E$.prototype.dispose=function(){--this.j||g.S.prototype.dispose.call(this)};
haC=Symbol.dispose;s5H.prototype.hK=function(F,k){this.Y.hK("/client_streamz/bg/frs",F,k)};
rnC.prototype.hK=function(F,k,z,x,D,e){this.Y.hK("/client_streamz/bg/wrl",F,k,z,x,D,e)};
BIR.prototype.uc=function(F,k){this.Y.lf("/client_streamz/bg/ec",F,k)};
Gpp.prototype.hK=function(F,k,z){this.Y.hK("/client_streamz/bg/el",F,k,z)};
U9n.prototype.uc=function(F,k){this.Y.lf("/client_streamz/bg/cec",F,k)};
tHx.prototype.uc=function(F,k){this.Y.lf("/client_streamz/bg/po/csc",F,k)};
Zkp.prototype.uc=function(F,k){this.Y.lf("/client_streamz/bg/po/ctav",F,k)};
vYR.prototype.uc=function(F,k){this.Y.lf("/client_streamz/bg/po/cwsc",F,k)};g.xG(N$,Error);N$.prototype.name="CustomError";var o6C;var yC=void 0,J0,tSY=typeof TextDecoder!=="undefined",IMY,VHD=typeof String.prototype.isWellFormed==="function",OkH=typeof TextEncoder!=="undefined";var Gt=String.prototype.trim?function(F){return F.trim()}:function(F){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(F)[1]},tin=/&/g,ZeC=/</g,vNk=/>/g,clR=/"/g,PI5=/'/g,Oe9=/\x00/g,U3k=/[\x00&<>"']/;var s5C=R5(1,!0),vl=R5(610401301,!1);R5(899588437,!1);R5(725719775,!1);var rn$=R5(513659523,!1),BIn=R5(568333945,!1);R5(651175828,!1);R5(722764542,!1);var MU9=R5(1981196515,!1);R5(2147483644,!1);R5(2147483645,!1);R5(2147483646,s5C);R5(2147483647,!0);var cl=!!g.yR("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Pl,Gpt=g.bD.navigator;Pl=Gpt?Gpt.userAgentData||null:null;var fMM,v8,t9;fMM=Array.prototype.indexOf?function(F,k){return Array.prototype.indexOf.call(F,k,void 0)}:function(F,k){if(typeof F==="string")return typeof k!=="string"||k.length!=1?-1:F.indexOf(k,0);
for(var z=0;z<F.length;z++)if(z in F&&F[z]===k)return z;return-1};
g.U9A=Array.prototype.lastIndexOf?function(F,k){return Array.prototype.lastIndexOf.call(F,k,F.length-1)}:function(F,k){var z=F.length-1;
z<0&&(z=Math.max(0,F.length+z));if(typeof F==="string")return typeof k!=="string"||k.length!=1?-1:F.lastIndexOf(k,z);for(;z>=0;z--)if(z in F&&F[z]===k)return z;return-1};
g.XN=Array.prototype.forEach?function(F,k,z){Array.prototype.forEach.call(F,k,z)}:function(F,k,z){for(var x=F.length,D=typeof F==="string"?F.split(""):F,e=0;e<x;e++)e in D&&k.call(z,D[e],e,F)};
g.pT=Array.prototype.filter?function(F,k,z){return Array.prototype.filter.call(F,k,z)}:function(F,k,z){for(var x=F.length,D=[],e=0,C=typeof F==="string"?F.split(""):F,p=0;p<x;p++)if(p in C){var E=C[p];
k.call(z,E,p,F)&&(D[e++]=E)}return D};
g.tW=Array.prototype.map?function(F,k,z){return Array.prototype.map.call(F,k,z)}:function(F,k,z){for(var x=F.length,D=Array(x),e=typeof F==="string"?F.split(""):F,C=0;C<x;C++)C in e&&(D[C]=k.call(z,e[C],C,F));
return D};
v8=Array.prototype.reduce?function(F,k,z){return Array.prototype.reduce.call(F,k,z)}:function(F,k,z){var x=z;
(0,g.XN)(F,function(D,e){x=k.call(void 0,x,D,e,F)});
return x};
t9=Array.prototype.some?function(F,k){return Array.prototype.some.call(F,k,void 0)}:function(F,k){for(var z=F.length,x=typeof F==="string"?F.split(""):F,D=0;D<z;D++)if(D in x&&k.call(void 0,x[D],D,F))return!0;
return!1};
g.ZO=Array.prototype.every?function(F,k,z){return Array.prototype.every.call(F,k,z)}:function(F,k,z){for(var x=F.length,D=typeof F==="string"?F.split(""):F,e=0;e<x;e++)if(e in D&&!k.call(z,D[e],e,F))return!1;
return!0};ur[" "]=function(){};var qO,$F,rfD,tHY,Zkt,vYn,rw,BJ,cnG;g.G9=Hl();g.w6=d9k();g.o9=Vn("Edge");g.Fd=g.o9||g.w6;qO=Vn("Gecko")&&!(Bl(g.ZH(),"WebKit")&&!Vn("Edge"))&&!(Vn("Trident")||Vn("MSIE"))&&!Vn("Edge");g.DA=Bl(g.ZH(),"WebKit")&&!Vn("Edge");$F=g9();rfD=MH6();g.xn=nY5();tHY=yn();Zkt=Vn("iPad");vYn=Vn("iPod");rw=Rp();BJ=Bl(g.ZH(),"KaiOS");
a:{var PD$="",OkC=function(){var F=g.ZH();if(qO)return/rv:([^\);]+)(\)|;)/.exec(F);if(g.o9)return/Edge\/([\d\.]+)/.exec(F);if(g.w6)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(F);if(g.DA)return/WebKit\/(\S+)/.exec(F);if(g.G9)return/(?:Version)[ \/]?(\S+)/.exec(F)}();
OkC&&(PD$=OkC?OkC[1]:"");if(g.w6){var KQ,VH7=g.bD.document;KQ=VH7?VH7.documentMode:void 0;if(KQ!=null&&KQ>parseFloat(PD$)){cnG=String(KQ);break a}}cnG=PD$}var eVH=cnG,$$Y={};var kn,ox;g.n3=ap();kn=yn()||Vn("iPod");ox=Vn("iPad");g.U5=ynI();g.SD=SC();g.GX=d9()&&!Rp();var AD5={},QY=null,pl9=qO||g.DA||typeof g.bD.btoa=="function";var QpH=typeof Uint8Array!=="undefined",uYD=!g.w6&&typeof btoa==="function",wla=/[-_.]/g,q$Y={"-":"+",_:"/",".":"="},s7={};hO.prototype.isEmpty=function(){return this.Y==null};
hO.prototype.sizeBytes=function(){var F=BY(this);return F?F.length:0};
var lHx;var spH=void 0;var vY=typeof Symbol==="function"&&typeof Symbol()==="symbol",IMG=ZP("jas",void 0,!0),ED=ZP(void 0,"1oa"),tl=ZP(void 0,Symbol()),Hkp=ZP(void 0,"0ub"),Crp=ZP(void 0,"0actk"),I2=ZP("m_m","Sop",!0),tCx=ZP(void 0,"mrtk"),xTI=ZP(void 0,"vps");Math.max.apply(Math,g.r(Object.values({ahG:1,PfG:2,QiG:4,dZQ:8,vfa:16,CfQ:32,j6$:64,Gfk:128,eJf:256,Snh:512,Yn_:1024,gqR:2048,UVU:4096,WA4:8192,Wrf:16384,ida:32768})));var B9p={k4G:{value:0,configurable:!0,writable:!0,enumerable:!1}},rD6=Object.defineProperties,cY=vY?IMG:"k4G",zS,aMC=[];O7(aMC,55);zS=Object.freeze(aMC);var U$H=typeof I2==="symbol",Gt9={},a2={},NNC=Object.freeze({}),yY={};var P7C=Yr(function(F){return typeof F==="number"}),cDC=Yr(function(F){return typeof F==="string"}),OCa=Yr(function(F){return typeof F==="boolean"}),ND=Yr(function(F){return F!=null&&typeof F==="object"&&typeof F.then==="function"}),qD=Yr(function(F){return!!F&&(typeof F==="object"||typeof F==="function")});var L8=typeof g.bD.BigInt==="function"&&typeof g.bD.BigInt(0)==="bigint";var Vp=Yr(function(F){return L8?F>=SCC&&F<=bkD:F[0]==="-"?VCY(F,d9C):VCY(F,JnA)}),d9C=Number.MIN_SAFE_INTEGER.toString(),SCC=L8?BigInt(Number.MIN_SAFE_INTEGER):void 0,JnA=Number.MAX_SAFE_INTEGER.toString(),bkD=L8?BigInt(Number.MAX_SAFE_INTEGER):void 0;var s2C=typeof Uint8Array.prototype.slice==="function",K8=0,WY=0,Fsx;var ms=typeof BigInt==="function"?BigInt.asIntN:void 0,fHp=typeof BigInt==="function"?BigInt.asUintN:void 0,hl=Number.isSafeInteger,Al=Number.isFinite,sp=Math.trunc,bC9=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var i8H={};var P9;var ah,DTY;var wY6=f8(0);g.A=Q2n.prototype;g.A.init=function(F,k,z,x){var D=x===void 0?{}:x;x=D.m8===void 0?!1:D.m8;D=D.WV===void 0?!1:D.WV;this.m8=x;this.WV=D;F&&(F=t0(F,this.WV),this.L=F.buffer,this.W=F.uh,this.j=k||0,this.U=z!==void 0?this.j+z:this.L.length,this.Y=this.j)};
g.A.free=function(){this.clear();HR.length<100&&HR.push(this)};
g.A.clear=function(){this.L=null;this.W=!1;this.Y=this.U=this.j=0;this.m8=!1};
g.A.reset=function(){this.Y=this.j};
g.A.TA=function(){var F=this.S;F||(F=this.L,F=this.S=new DataView(F.buffer,F.byteOffset,F.byteLength));return F};
var HR=[];aK.prototype.free=function(){this.Y.clear();this.L=this.j=-1;SY.length<100&&SY.push(this)};
aK.prototype.reset=function(){this.Y.reset();this.U=this.Y.Y;this.L=this.j=-1};
var SY=[];g$.prototype.toJSON=function(){return H9(this)};
g$.prototype.Y9=function(F){return JSON.stringify(H9(this,F))};
g$.prototype.clone=function(){var F=this;HY(F);var k=F;HY(k);k=k.aS;k=F=new F.constructor(Op(k,k[cY]|0,Jl,!0,!0));HY(k);VY(k.aS);return F};
g$.prototype.uh=function(){return SS(this)};
g$.prototype[I2]=Gt9;g$.prototype.toString=function(){HY(this);return this.aS.toString()};var cOC,O8a;M6.prototype.length=function(){return this.Y.length};
M6.prototype.end=function(){var F=this.Y;this.Y=[];return F};var zP=ou(),yn9=ou(),RaA=ou(),gYl=ou(),YC$=ou(),nYp=ou(),MHl=ou(),Ln$=ou();var yO6=iY(function(F,k,z,x,D){if(F.L!==2)return!1;d$(F,Xv(k,x,z),D);return!0},JOC),R5R=iY(function(F,k,z,x,D){if(F.L!==2)return!1;
d$(F,Xv(k,x,z),D);return!0},JOC),qX=Symbol(),CU=Symbol(),Ev=Symbol(),fPa=Symbol(),nr5=Symbol(),Dg,$$;var fMH=we(function(F,k,z){if(F.L!==1)return!1;TP(k,z,VC(F.Y));return!0},lY,MHl),KnC=we(function(F,k,z){if(F.L!==1)return!1;
F=VC(F.Y);TP(k,z,F===0?void 0:F);return!0},lY,MHl),Wn$=we(function(F,k,z,x){if(F.L!==1)return!1;
A0(k,z,x,VC(F.Y));return!0},lY,MHl),FA$=we(function(F,k,z){if(F.L!==0)return!1;
TP(k,z,vR(F.Y));return!0},Q$,YC$),ktC=we(function(F,k,z){if(F.L!==0)return!1;
F=vR(F.Y);TP(k,z,F===0?void 0:F);return!0},Q$,YC$),oG$=we(function(F,k,z,x){if(F.L!==0)return!1;
A0(k,z,x,vR(F.Y));return!0},Q$,YC$),zV$=we(function(F,k,z){if(F.L!==0)return!1;
TP(k,z,cR(F.Y));return!0},hE,gYl),x$l=we(function(F,k,z){if(F.L!==0)return!1;
F=cR(F.Y);TP(k,z,F===0?void 0:F);return!0},hE,gYl),iC9=we(function(F,k,z,x){if(F.L!==0)return!1;
A0(k,z,x,cR(F.Y));return!0},hE,gYl),D$9=we(function(F,k,z){if(F.L!==1)return!1;
TP(k,z,OD(F.Y));return!0},function(F,k,z){b8p(F,z,KA9(k))},nYp),$$G=mL(function(F,k,z){if(F.L!==1&&F.L!==2)return!1;
k=Da(k,k[cY]|0,z);if(F.L==2)for(z=cR(F.Y)>>>0,z=F.Y.Y+z;F.Y.Y<z;)k.push(OD(F.Y));else k.push(OD(F.Y));return!0},function(F,k,z){k=uY(KA9,k,!1);
if(k!=null)for(var x=0;x<k.length;x++)b8p(F,z,k[x])},nYp),jpD=we(function(F,k,z){if(F.L!==0)return!1;
TP(k,z,IK(F.Y));return!0},knI,yn9),eVC=we(function(F,k,z,x){if(F.L!==0)return!1;
A0(k,z,x,IK(F.Y));return!0},knI,yn9),W5=we(function(F,k,z){if(F.L!==2)return!1;
TP(k,z,RK(F));return!0},oN9,RaA),C7V=mL(function(F,k,z){if(F.L!==2)return!1;
F=RK(F);Da(k,k[cY]|0,z).push(F);return!0},function(F,k,z){k=uY(B9,k,!0);
if(k!=null)for(var x=0;x<k.length;x++){var D=F,e=z,C=k[x];C!=null&&k$(D,e,Hk5(C))}},RaA),ADp=we(function(F,k,z,x){if(F.L!==2)return!1;
A0(k,z,x,RK(F));return!0},oN9,RaA),Fu,kL=void 0;
kL=kL===void 0?zP:kL;Fu=new x$(function(F,k,z,x,D){if(F.L!==2)return!1;x=Si(void 0,x,!0);Da(k,k[cY]|0,z).push(x);d$(F,x,D);return!0},function(F,k,z,x,D){if(Array.isArray(k))for(var e=0;e<k.length;e++)zuD(F,k[e],z,x,D)},kL);
var oe=iY(function(F,k,z,x,D,e){if(F.L!==2)return!1;var C=k[cY]|0;eY(k,C,e,z,R2(C));k=Xv(k,x,z);d$(F,k,D);return!0},zuD),pl$=we(function(F,k,z){if(F.L!==2)return!1;
TP(k,z,Z8M(F));return!0},function(F,k,z){k=WAp(k);
k!=null&&k$(F,z,t0(k,!0).buffer)},Ln$),EGp=mL(function(F,k,z){if(F.L!==2)return!1;
F=Z8M(F);Da(k,k[cY]|0,z).push(F);return!0},function(F,k,z){k=uY(WAp,k,!1);
if(k!=null)for(var x=0;x<k.length;x++){var D=F,e=z,C=k[x];C!=null&&k$(D,e,t0(C,!0).buffer)}},Ln$),z4=we(function(F,k,z){if(F.L!==0)return!1;
TP(k,z,cR(F.Y)>>>0);return!0},function(F,k,z){k=q3(k);
k!=null&&k!=null&&(Ff(F,z,0),fW(F.Y,k))},ou()),Xl$=we(function(F,k,z){if(F.L!==0)return!1;
TP(k,z,cR(F.Y));return!0},function(F,k,z){k=Xs(k);
k!=null&&(k=parseInt(k,10),Ff(F,z,0),IPY(F.Y,k))},ou());ie9.prototype.register=function(){ur(this)};g.T($3D,g$);g.T(GP,g$);var c1=[1,2,3];var q$G=[0,c1,ADp,iC9,eVC];var N9p=[0,Fu,[0,fMH,FA$]];g.T(Uv,g$);var v1=[1,2,3];var uY7=[0,v1,oG$,Wn$,oe,N9p];g.T(tE,g$);var wlV=[0,Fu,q$G,uY7];var m$A=[0,[1,2,3],oe,[0,W5,-1,jpD],oe,[0,W5,-1,zV$,jpD],oe,[0,W5]];g.T(Zg,g$);Zg.prototype.Sq=function(){var F=oK(this,3,B9,3,!0);JO(F);return F[void 0]};Zg.prototype.L=D3M([0,W5,m$A,C7V,Fu,wlV,D$9,$$G]);g.T(euY,g$);var w9R=globalThis.trustedTypes,P1;V$.prototype.toString=function(){return this.Y+""};au.prototype.toString=function(){return this.Y};
var lTR=new au("about:invalid#zClosurez");var aja=de("tel"),Ijn=de("sms"),TRk=[de("data"),de("http"),de("https"),de("mailto"),de("ftp"),new bY(function(F){return/^[^:]*([/?#]|$)/.test(F)})],QhC=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;ge.prototype.toString=function(){return this.Y+""};fU.prototype.toString=function(){return this.Y+""};ks.prototype.toString=function(){return this.Y};var zT={};g.T9$=String.prototype.repeat?function(F,k){return F.repeat(k)}:function(F,k){return Array(k+1).join(F)};g.A=px.prototype;g.A.isEnabled=function(){if(!g.bD.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{SM:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.A.set=function(F,k,z){var x=!1;if(typeof z==="object"){var D=z.d$p;x=z.secure||!1;var e=z.domain||void 0;var C=z.path||void 0;var p=z.SM}if(/[;=\s]/.test(F))throw Error('Invalid cookie name "'+F+'"');if(/[;\r\n]/.test(k))throw Error('Invalid cookie value "'+k+'"');p===void 0&&(p=-1);z=e?";domain="+e:"";C=C?";path="+C:"";x=x?";secure":"";p=p<0?"":p==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+p*1E3)).toUTCString();this.Y.cookie=F+"="+k+z+C+p+x+(D!=null?";samesite="+
D:"")};
g.A.get=function(F,k){for(var z=F+"=",x=(this.Y.cookie||"").split(";"),D=0,e;D<x.length;D++){e=Gt(x[D]);if(e.lastIndexOf(z,0)==0)return e.slice(z.length);if(e==F)return""}return k};
g.A.remove=function(F,k,z){var x=this.get(F)!==void 0;this.set(F,"",{SM:0,path:k,domain:z});return x};
g.A.mD=function(){return qv(this).keys};
g.A.OS=function(){return qv(this).values};
g.A.isEmpty=function(){return!this.Y.cookie};
g.A.clear=function(){for(var F=qv(this).keys,k=F.length-1;k>=0;k--)this.remove(F[k])};
var aS=new px(typeof document=="undefined"?null:document);Nv.prototype.compress=function(F){var k,z,x,D;return g.O(function(e){switch(e.Y){case 1:return k=new CompressionStream("gzip"),z=(new Response(k.readable)).arrayBuffer(),x=k.writable.getWriter(),g.c(e,x.write((new TextEncoder).encode(F)),2);case 2:return g.c(e,x.close(),3);case 3:return D=Uint8Array,g.c(e,z,4);case 4:return e.return(new D(e.L))}})};
Nv.prototype.isSupported=function(F){return F<1024?!1:typeof CompressionStream!=="undefined"};g.T(u3,g$);wf.prototype.setInterval=function(F){this.intervalMs=F;this.Dj&&this.enabled?(this.stop(),this.start()):this.Dj&&this.stop()};
wf.prototype.start=function(){var F=this;this.enabled=!0;this.Dj||(this.Dj=setTimeout(function(){F.tick()},this.intervalMs),this.L=this.Y())};
wf.prototype.stop=function(){this.enabled=!1;this.Dj&&(clearTimeout(this.Dj),this.Dj=void 0)};
wf.prototype.tick=function(){var F=this;if(this.enabled){var k=Math.max(this.Y()-this.L,0);k<this.intervalMs*.8?this.Dj=setTimeout(function(){F.tick()},this.intervalMs-k):(this.Dj&&(clearTimeout(this.Dj),this.Dj=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.Dj=void 0};g.T(mP,g$);g.T(TT,g$);g.A=g.sV.prototype;g.A.clone=function(){return new g.sV(this.x,this.y)};
g.A.VZ=function(F){return F instanceof g.sV&&rf(this,F)};
g.A.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.A.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.A.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.A.scale=function(F,k){this.x*=F;this.y*=typeof k==="number"?k:F;return this};g.A=g.BB.prototype;g.A.clone=function(){return new g.BB(this.width,this.height)};
g.A.aspectRatio=function(){return this.width/this.height};
g.A.isEmpty=function(){return!UV(this)};
g.A.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.A.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.A.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.A.scale=function(F,k){this.width*=F;this.height*=typeof k==="number"?k:F;return this};var YpC="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Mv.prototype.toString=function(){return this.Y};
var nx={};new Mv(nx,"");var Mi9=/^[a-z][a-z\d-]*$/i,Lsx="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),Ksp="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),Fqa=["action","formaction","href"];var znk={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.A=fx.prototype;g.A.T$=function(F){return FE(this.Y,F)};
g.A.getElementsByTagName=function(F,k){return(k||this.Y).getElementsByTagName(String(F))};
g.A.EK=function(F){return g.xM(F,this.Y)};
g.A.setProperties=iE;g.A.createElement=function(F){return j0(this.Y,F)};
g.A.appendChild=g.pi;g.A.append=function(F,k){$6x(Kx(F),F,arguments,1)};
g.A.canHaveChildren=function(F){if(F.nodeType!=1)return!1;switch(F.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.A.removeNode=g.q_;g.A.getChildren=function(F){return F.children!=void 0?F.children:Array.prototype.filter.call(F.childNodes,function(k){return k.nodeType==1})};
g.A.contains=g.N_;g.T(TV,g$);TV.prototype.ML=function(){return QC(this,1)};g.T(lE,g$);g.T(Qz,g$);g.T(sy,g$);var A0R=["platform","platformVersion","architecture","model","uaFullVersion"],Bk=new Qz,rd=null;g.T(GV,g$);g.T(E6n,g$);g.T(Uy,g$);g.T(ts,g$);ts.prototype.V=function(){return pY6(this,E6n,7)};
ts.prototype.Z2=function(){return q6(this,u3,16)};g.T(ZA,g$);ZA.prototype.M8=function(F){return GS(this,2,F)};vk.prototype.M8=function(F){this.Y.M8(F);return this};
vk.prototype.build=function(F,k,z,x,D,e){k=k===void 0?0:k;z=z===void 0?0:z;x=x===void 0?null:x;D=D===void 0?0:D;e=e===void 0?0:e;if(pY6(q6(this.Y,GV,1),sy,11)){var C=ck(this);var p=new TV;p=GS(p,1,this.L);p=Le(p,2,Ce(this.isFinal));z=Le(p,3,Ep(z>0?z:void 0));z=Le(z,4,Ep(D>0?D:void 0));z=Le(z,5,Ep(e>0?e:void 0));HY(z);D=z.aS;e=D[cY]|0;z=SS(z,e)?z:new z.constructor(Op(D,e,Jl,!0,!0));N6(C,TV,10,z)}C=this.Y.clone();z=Date.now().toString();C=Le(C,4,Qp(z));F=ut(C,ts,3,F.slice());x&&(C=new mP,x=Le(C,13,
Ep(x)),C=new TT,x=N6(C,mP,2,x),C=new Uy,x=N6(C,TT,1,x),x=GS(x,2,9),N6(F,Uy,18,x));k&&sD(F,14,k);return F};var Ptn=function(){if(!g.bD.addEventListener||!Object.defineProperty)return!1;var F=!1,k=Object.defineProperty({},"passive",{get:function(){F=!0}});
try{var z=function(){};
g.bD.addEventListener("test",z,k);g.bD.removeEventListener("test",z,k)}catch(x){}return F}();var jX5=uva("AnimationEnd"),XC=uva("TransitionEnd");g.Pk.prototype.L=0;g.Pk.prototype.reset=function(){this.Y=this.U=this.j;this.L=0};
g.Pk.prototype.getValue=function(){return this.U};g.T(re,g$);var lHY=B1(re);g.T(x3p,g$);var xL=new ie9;g.T(Hk,g.S);g.A=Hk.prototype;g.A.h4=function(){I_(this);this.L.stop();this.yh.stop();g.S.prototype.h4.call(this)};
g.A.dispatch=function(F){if(F instanceof ts)this.log(F);else try{var k=new ts,z=F.Y9();var x=r$(k,8,z);this.log(x)}catch(D){a_(this,4,1)}};
g.A.log=function(F){a_(this,2,1);if(this.cR){F=F.clone();var k=this.RU++;F=sD(F,21,k);this.componentId&&r$(F,26,this.componentId);k=F;var z=ne(k,1);var x=x===void 0?!1:x;var D=typeof z;x=z==null?z:D==="bigint"?String(ms(64,z)):pe(z)?D==="string"?wR(z):x?Tn(z):lI(z):void 0;x==null&&(x=Date.now(),x=Number.isFinite(x)?x.toString():"0",Le(k,1,Qp(x)));x=ne(k,15);x!=null&&(typeof x==="bigint"?Vp(x)?x=Number(x):(x=ms(64,x),x=Vp(x)?Number(x):String(x)):x=pe(x)?typeof x==="number"?lI(x):wR(x):void 0);x!=null||
sD(k,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(x=this.experimentIds.clone(),N6(k,u3,16,x));a_(this,1,1);k=this.Y.length-1E3+1;k>0&&(this.Y.splice(0,k),this.j+=k,a_(this,3,k));this.Y.push(F);this.A6||this.L.enabled||this.L.start()}};
g.A.flush=function(F,k){var z=this;if(this.Y.length===0)F&&F();else if(this.Xf&&this.Qh)this.U.L=3,QKD(this);else{var x=Date.now();if(this.J4>x&&this.mp<x)k&&k("throttled");else{this.network&&(typeof this.network.ML==="function"?qDn(this.U,this.network.ML()):this.U.L=0);var D=this.Y.length,e=this.U.build(this.Y,this.j,this.S,this.uT,this.t4,this.PR),C=this.XT();if(C&&this.l$===C)k&&k("stale-auth-token");else{this.Y=[];this.L.enabled&&this.L.stop();this.j=0;x=e.Y9();var p;this.G&&this.G.isSupported(x.length)&&
(p=this.G.compress(x));var E=T$p(this,x,C),X=function(u){z.W.reset();z.L.setInterval(z.W.getValue());if(u){var w=null;try{var m=JSON.stringify(JSON.parse(u.replace(")]}'\n","")));w=lHY(m)}catch(B){}if(w){u=Number(mT5(w,1,f8("-1")));u>0&&(z.mp=Date.now(),z.J4=z.mp+u);var h;HY(w);HY(w);u=w.aS;m=zt(tl);vY&&m&&((h=u[m])==null?void 0:h[175237375])!=null&&tO(Hkp,3);h=xL.Y?xL.L(w,xL.Y,175237375,xL.U):xL.L(w,175237375,null,xL.U);if(h=h===null?void 0:h)h=eC(h,1,-1),h!==-1&&(z.W=new g.Pk(h<1?1:h,3E5,.1),z.L.setInterval(z.W.getValue()))}}F&&
F();z.S=0},q=function(u,w){var m=DH(e,ts,3);
var h=Number(mT5(e,14));g.Oy(z.W);z.L.setInterval(z.W.getValue());u===401&&C&&(z.l$=C);h&&(z.j+=h);w===void 0&&(w=z.isRetryable(u));w&&(z.Y=m.concat(z.Y),z.A6||z.L.enabled||z.L.start());a_(z,7,1);k&&k("net-send-failed",u);++z.S},N=function(){z.network&&z.network.send(E,X,q)};
p?p.then(function(u){a_(z,5,D);E.requestHeaders["Content-Encoding"]="gzip";E.requestHeaders["Content-Type"]="application/binary";E.body=u;E.Zt=2;N()},function(){a_(z,6,D);
N()}):N()}}}};
g.A.isRetryable=function(F){return 500<=F&&F<600||F===401||F===0};S0.prototype.send=function(F,k,z){var x=this,D,e,C,p,E,X,q,N,u,w;return g.O(function(m){switch(m.Y){case 1:return e=(D=x.zS?new AbortController:void 0)?setTimeout(function(){D.abort()},F.timeoutMillis):void 0,g.lD(m,2,3),C=Object.assign({},{method:F.requestType,
headers:Object.assign({},F.requestHeaders)},F.body&&{body:F.body},F.withCredentials&&{credentials:"include"},{signal:F.timeoutMillis&&D?D.signal:null}),g.c(m,fetch(F.url,C),5);case 5:p=m.L;if(p.status!==200){(E=z)==null||E(p.status);m.Sk(3);break}if((X=k)==null){m.Sk(7);break}return g.c(m,p.text(),8);case 8:X(m.L);case 7:case 3:g.B6(m);clearTimeout(e);g.UC(m,0);break;case 2:q=g.rI(m);switch((N=q)==null?void 0:N.name){case "AbortError":(u=z)==null||u(408);break;default:(w=z)==null||w(400)}m.Sk(3)}})};
S0.prototype.ML=function(){return 4};g.T(bE,g.S);bE.prototype.KZ=function(){this.W=!0;return this};
bE.prototype.build=function(){this.network||(this.network=new S0);var F=new Hk({logSource:this.logSource,XT:this.XT?this.XT:d3R,sessionIndex:this.sessionIndex,b$U:this.Oo,Rt:this.j,A6:!1,KZ:this.W,h7:this.h7,network:this.network});g.b(this,F);if(this.L){var k=this.L,z=ck(F.U);r$(z,7,k)}F.G=new Nv;this.componentId&&(F.componentId=this.componentId);this.uT&&(F.uT=this.uT);this.pageId&&(F.pageId=this.pageId);this.Y&&((z=this.Y)?(F.experimentIds||(F.experimentIds=new u3),k=F.experimentIds,z=z.Y9(),r$(k,
4,z)):F.experimentIds&&Le(F.experimentIds,4));this.U&&(F.Xf=F.Qh);N$C(F.U);this.network.M8&&this.network.M8(this.logSource);this.network.gAJ&&this.network.gAJ(F);return F};g.T(dd,g.S);dd.prototype.flush=function(F){F=F||[];if(F.length){for(var k=new euY,z=[],x=0;x<F.length;x++){var D=F[x],e=g.p9D(D);z.push(e);D.clear()}ut(k,Zg,1,z);this.Y.dispatch(k);this.Y.flush()}};g.A=Js.prototype;g.A.RH=function(F){var k=g.v6.apply(1,arguments),z=this.xU(k);z?z.push(new GSC(F)):this.T2(F,k)};
g.A.T2=function(F){this.Y.set(this.As(g.v6.apply(1,arguments)),[new GSC(F)])};
g.A.xU=function(){var F=this.As(g.v6.apply(0,arguments));return this.Y.has(F)?this.Y.get(F):void 0};
g.A.GT=function(){var F=this.xU(g.v6.apply(0,arguments));return F&&F.length?F[0]:void 0};
g.A.clear=function(){this.Y.clear()};
g.A.As=function(){var F=g.v6.apply(0,arguments);return F?F.join(","):"key"};g.T(yz,Js);yz.prototype.U=function(F){var k=g.v6.apply(1,arguments),z=0,x=this.GT(k);x&&(z=x.Y);this.T2(z+F,k)};g.T(R_,Js);R_.prototype.hK=function(F){this.RH(F,g.v6.apply(1,arguments))};g.gd.prototype.stopPropagation=function(){this.L=!0};
g.gd.prototype.preventDefault=function(){this.defaultPrevented=!0};g.xG(YM,g.gd);
YM.prototype.init=function(F,k){var z=this.type=F.type,x=F.changedTouches&&F.changedTouches.length?F.changedTouches[0]:null;this.target=F.target||F.srcElement;this.currentTarget=k;k=F.relatedTarget;k||(z=="mouseover"?k=F.fromElement:z=="mouseout"&&(k=F.toElement));this.relatedTarget=k;x?(this.clientX=x.clientX!==void 0?x.clientX:x.pageX,this.clientY=x.clientY!==void 0?x.clientY:x.pageY,this.screenX=x.screenX||0,this.screenY=x.screenY||0):(this.clientX=F.clientX!==void 0?F.clientX:F.pageX,this.clientY=
F.clientY!==void 0?F.clientY:F.pageY,this.screenX=F.screenX||0,this.screenY=F.screenY||0);this.button=F.button;this.keyCode=F.keyCode||0;this.key=F.key||"";this.charCode=F.charCode||(z=="keypress"?F.keyCode:0);this.ctrlKey=F.ctrlKey;this.altKey=F.altKey;this.shiftKey=F.shiftKey;this.metaKey=F.metaKey;this.pointerId=F.pointerId||0;this.pointerType=F.pointerType;this.state=F.state;this.Y=F;F.defaultPrevented&&YM.XA.preventDefault.call(this)};
YM.prototype.stopPropagation=function(){YM.XA.stopPropagation.call(this);this.Y.stopPropagation?this.Y.stopPropagation():this.Y.cancelBubble=!0};
YM.prototype.preventDefault=function(){YM.XA.preventDefault.call(this);var F=this.Y;F.preventDefault?F.preventDefault():F.returnValue=!1};var U65="closure_listenable_"+(Math.random()*1E6|0);var tYn=0;g.A=Wk.prototype;g.A.add=function(F,k,z,x,D){var e=F.toString();F=this.listeners[e];F||(F=this.listeners[e]=[],this.Y++);var C=kV(F,k,x,D);C>-1?(k=F[C],z||(k.Gx=!1)):(k=new ZWn(k,this.src,e,!!x,D),k.Gx=z,F.push(k));return k};
g.A.remove=function(F,k,z,x){F=F.toString();if(!(F in this.listeners))return!1;var D=this.listeners[F];k=kV(D,k,z,x);return k>-1?(Ki(D[k]),g.Wl(D,k),D.length==0&&(delete this.listeners[F],this.Y--),!0):!1};
g.A.removeAll=function(F){F=F&&F.toString();var k=0,z;for(z in this.listeners)if(!F||z==F){for(var x=this.listeners[z],D=0;D<x.length;D++)++k,Ki(x[D]);delete this.listeners[z];this.Y--}return k};
g.A.Xh=function(F,k,z,x){F=this.listeners[F.toString()];var D=-1;F&&(D=kV(F,k,z,x));return D>-1?F[D]:null};
g.A.hasListener=function(F,k){var z=F!==void 0,x=z?F.toString():"",D=k!==void 0;return g.cB(this.listeners,function(e){for(var C=0;C<e.length;++C)if(!(z&&e[C].type!=x||D&&e[C].capture!=k))return!0;return!1})};var $V="closure_lm_"+(Math.random()*1E6|0),e8={},VYD=0,Cw="__closure_events_fn_"+(Math.random()*1E9>>>0);g.xG(g.A1,g.S);g.A1.prototype[U65]=!0;g.A=g.A1.prototype;g.A.addEventListener=function(F,k,z,x){g.zh(this,F,k,z,x)};
g.A.removeEventListener=function(F,k,z,x){HWk(this,F,k,z,x)};
g.A.dispatchEvent=function(F){var k=this.JZ;if(k){var z=[];for(var x=1;k;k=k.JZ)z.push(k),++x}k=this.bk;x=F.type||F;if(typeof F==="string")F=new g.gd(F,k);else if(F instanceof g.gd)F.target=F.target||k;else{var D=F;F=new g.gd(x,k);g.RM(F,D)}D=!0;var e;if(z)for(e=z.length-1;!F.L&&e>=0;e--){var C=F.currentTarget=z[e];D=pw(C,x,!0,F)&&D}F.L||(C=F.currentTarget=k,D=pw(C,x,!0,F)&&D,F.L||(D=pw(C,x,!1,F)&&D));if(z)for(e=0;!F.L&&e<z.length;e++)C=F.currentTarget=z[e],D=pw(C,x,!1,F)&&D;return D};
g.A.h4=function(){g.A1.XA.h4.call(this);this.ME&&this.ME.removeAll(void 0);this.JZ=null};
g.A.listen=function(F,k,z,x){return this.ME.add(String(F),k,!1,z,x)};
g.A.iA=function(F,k,z,x){return this.ME.add(String(F),k,!0,z,x)};
g.A.er=function(F,k,z,x){this.ME.remove(String(F),k,z,x)};
g.A.Xh=function(F,k,z,x){return this.ME.Xh(String(F),k,z,x)};
g.A.hasListener=function(F,k){return this.ME.hasListener(F!==void 0?String(F):void 0,k)};var Xz=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(F){return F&&AsyncContext.Snapshot.wrap(F)}:function(F){return F};Ez.prototype.get=function(){if(this.L>0){this.L--;var F=this.Y;this.Y=F.next;F.next=null}else F=this.U();return F};var qt;uh.prototype.add=function(F,k){var z=y0x.get();z.set(F,k);this.L?this.L.next=z:this.Y=z;this.L=z};
uh.prototype.remove=function(){var F=null;this.Y&&(F=this.Y,this.Y=this.Y.next,this.Y||(this.L=null),F.next=null);return F};
var y0x=new Ez(function(){return new wP},function(F){return F.reset()});
wP.prototype.set=function(F,k){this.Y=F;this.scope=k;this.next=null};
wP.prototype.reset=function(){this.next=this.scope=this.Y=null};var mQ,Th=!1,d6I=new uh;g6H.prototype.reset=function(){this.context=this.L=this.U=this.Y=null;this.j=!1};
var YD6=new Ez(function(){return new g6H},function(F){F.reset()});
g.Uz.prototype.then=function(F,k,z){return o$H(this,Xz(typeof F==="function"?F:null),Xz(typeof k==="function"?k:null),z)};
g.Uz.prototype.$goog_Thenable=!0;g.A=g.Uz.prototype;g.A.finally=function(F){var k=this;F=Xz(F);return new Promise(function(z,x){fan(k,function(D){F();z(D)},function(D){F();
x(D)})})};
g.A.UT=function(F,k){return o$H(this,null,Xz(F),k)};
g.A.catch=g.Uz.prototype.UT;g.A.cancel=function(F){if(this.Y==0){var k=new IU(F);g.lh(function(){KqI(this,k)},this)}};
g.A.XlK=function(F){this.Y=0;Gh(this,2,F)};
g.A.TiG=function(F){this.Y=0;Gh(this,3,F)};
g.A.i8=function(){for(var F;F=WqD(this);)FLH(this,F,this.Y,this.G);this.S=!1};
var DXY=Tt;g.xG(IU,N$);IU.prototype.name="cancel";g.xG(g.H4,g.A1);g.A=g.H4.prototype;g.A.enabled=!1;g.A.Be=null;g.A.setInterval=function(F){this.UF=F;this.Be&&this.enabled?(this.stop(),this.start()):this.Be&&this.stop()};
g.A.Yih=function(){if(this.enabled){var F=g.op()-this.Fg;F>0&&F<this.UF*.8?this.Be=this.X3.setTimeout(this.Ed,this.UF-F):(this.Be&&(this.X3.clearTimeout(this.Be),this.Be=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.A.start=function(){this.enabled=!0;this.Be||(this.Be=this.X3.setTimeout(this.Ed,this.UF),this.Fg=g.op())};
g.A.stop=function(){this.enabled=!1;this.Be&&(this.X3.clearTimeout(this.Be),this.Be=null)};
g.A.h4=function(){g.H4.XA.h4.call(this);this.stop();delete this.X3};g.T(g.bh,g.S);g.A=g.bh.prototype;g.A.sendIsolatedPayload=function(F){this.W=F;this.U=1};
g.A.Yt=function(){var F=this.L.values();F=[].concat(g.r(F)).filter(function(k){return k.Y.size});
F.length&&this.G.flush(F,this.W);egM(F);this.j=0;this.Y.enabled&&this.Y.stop()};
g.A.Gu=function(F){var k=g.v6.apply(1,arguments);this.L.has(F)||this.L.set(F,new yz(F,k))};
g.A.DY=function(F){var k=g.v6.apply(1,arguments);this.L.has(F)||this.L.set(F,new R_(F,k))};
g.A.lf=function(F){this.XO(F,1,g.v6.apply(1,arguments))};
g.A.XO=function(F,k){var z=g.v6.apply(2,arguments),x=jun(this,F);x&&x instanceof yz&&(x.U(k,z),$XM(this))};
g.A.hK=function(F,k){var z=g.v6.apply(2,arguments),x=jun(this,F);x&&x instanceof R_&&(x.hK(k,z),$XM(this))};g.T(dP,Error);dP.prototype.toString=function(){var F="RpcError("+(AE9(this.code)||String(this.code))+")";this.message&&(F+=": "+this.message);return F};p19.prototype.Y9=function(F){var k=[];yD(this,F,k);return k.join("")};
var qv5={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},X19=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var QpC;g.xG(RU,ufa);RU.prototype.Y=function(){return new XMLHttpRequest};
QpC=new RU;var nw=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),l8k=/#|$/,QMH=/[?&]($|#)/;g.xG(g.$y,g.A1);var tIk=/^https?$/i,hVp=["POST","PUT"],sMY=[];g.A=g.$y.prototype;g.A.LS=function(){this.dispose();g.FN(sMY,this)};
g.A.send=function(F,k,z,x){if(this.Y)throw Error("[goog.net.XhrIo] Object is active with another request="+this.B+"; newUri="+F);k=k?k.toUpperCase():"GET";this.B=F;this.j="";this.L=0;this.PR=!1;this.U=!0;this.Y=this.Xf?this.Xf.Y():QpC.Y();this.Y.onreadystatechange=Xz((0,g.W6)(this.wv,this));try{this.getStatus(),this.t4=!0,this.Y.open(k,String(F),!0),this.t4=!1}catch(C){this.getStatus();GTn(this,C);return}F=z||"";z=new Map(this.headers);if(x)if(Object.getPrototypeOf(x)===Object.prototype)for(var D in x)z.set(D,
x[D]);else if(typeof x.keys==="function"&&typeof x.get==="function"){D=g.l(x.keys());for(var e=D.next();!e.done;e=D.next())e=e.value,z.set(e,x.get(e))}else throw Error("Unknown input type for opt_headers: "+String(x));x=Array.from(z.keys()).find(function(C){return"content-type"==C.toLowerCase()});
D=g.bD.FormData&&F instanceof g.bD.FormData;!g.fC(hVp,k)||x||D||z.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");k=g.l(z);for(x=k.next();!x.done;x=k.next())z=g.l(x.value),x=z.next().value,z=z.next().value,this.Y.setRequestHeader(x,z);this.mp&&(this.Y.responseType=this.mp);"withCredentials"in this.Y&&this.Y.withCredentials!==this.G&&(this.Y.withCredentials=this.G);try{this.S&&(clearTimeout(this.S),this.S=null),this.Qh>0&&(this.getStatus(),this.S=setTimeout(this.O1.bind(this),
this.Qh)),this.getStatus(),this.K=!0,this.Y.send(F),this.K=!1}catch(C){this.getStatus(),GTn(this,C)}};
g.A.O1=function(){typeof eX!="undefined"&&this.Y&&(this.j="Timed out after "+this.Qh+"ms, aborting",this.L=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.A.abort=function(F){this.Y&&this.U&&(this.getStatus(),this.U=!1,this.W=!0,this.Y.abort(),this.W=!1,this.L=F||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),jX(this))};
g.A.h4=function(){this.Y&&(this.U&&(this.U=!1,this.W=!0,this.Y.abort(),this.W=!1),jX(this,!0));g.$y.XA.h4.call(this)};
g.A.wv=function(){this.z4()||(this.t4||this.K||this.W?UvY(this):this.Ovh())};
g.A.Ovh=function(){UvY(this)};
g.A.isActive=function(){return!!this.Y};
g.A.isComplete=function(){return g.C7(this)==4};
g.A.getStatus=function(){try{return g.C7(this)>2?this.Y.status:-1}catch(F){return-1}};
g.A.getResponseHeader=function(F){if(this.Y&&this.isComplete())return F=this.Y.getResponseHeader(F),F===null?void 0:F};
g.A.getLastError=function(){return typeof this.j==="string"?this.j:String(this.j)};qn.prototype.send=function(F,k,z){k=k===void 0?function(){}:k;
z=z===void 0?function(){}:z;
rgH(F.url,function(x){x=x.target;AK(x)?k(g.p7(x)):z(x.getStatus())},F.requestType,F.body,F.requestHeaders,F.timeoutMillis,F.withCredentials)};
qn.prototype.ML=function(){return 1};uy.prototype.done=function(){this.logger.iT(this.event,Nn()-this.startTime)};
g.T(wL,E$);g.T(TQ,wL);g.A=TQ.prototype;g.A.mO=function(){};
g.A.Yy=function(){};
g.A.iT=function(){};
g.A.Q3=function(){};
g.A.Pn=function(){};
g.A.EQ=function(F,k,z,x){return x};
g.A.qK=function(){};
g.A.I1=function(){};
g.A.R1=function(){};
g.A.nz=function(){};
g.T(ly,wL);g.A=ly.prototype;g.A.update=function(F){this.logger.dispose();this.logger=F};
g.A.Yy=function(F){this.logger.Yy(F)};
g.A.iT=function(F,k){this.logger.iT(F,k)};
g.A.Q3=function(F){this.logger.Q3(F)};
g.A.Pn=function(){this.logger.Pn()};
g.A.EQ=function(F,k,z,x){return this.logger.EQ(F,k,z,x)};
g.A.qK=function(F){this.logger.qK(F)};
g.A.I1=function(F){this.logger.I1(F)};
g.A.R1=function(F){this.logger.R1(F)};
g.A.nz=function(F){this.logger.nz(F)};
g.A.mO=function(F){this.logger.mO(F)};
g.T(QX,g.S);g.T(hK,wL);g.A=hK.prototype;g.A.mO=function(F){this.metrics.JHt.hK(F,this.r$)};
g.A.Yy=function(F){this.metrics.eventCount.uc(F,this.r$)};
g.A.iT=function(F,k){this.metrics.tj.hK(k,F,this.r$)};
g.A.Q3=function(F){this.metrics.errorCount.uc(F,this.r$)};
g.A.EQ=function(F,k,z,x){function D(p){if(!e.z4()){var E=Nn()-C;e.metrics.qi$.hK(E,F,z,p,k,e.r$)}}
var e=this,C=Nn();x.then(function(){return void D(0)},function(p){return void D(p instanceof dP?p.code:-1)});
return x};
g.A.qK=function(F){this.metrics.f3K.uc(F,this.r$)};
g.A.I1=function(F){this.metrics.sA.uc(F,this.r$)};
g.A.R1=function(F){this.metrics.AGf.uc(F,this.r$)};
g.T(s2,hK);s2.prototype.nz=function(F){var k=this;this.Y.dispose();this.L&&this.service.dispose();this.service=this.options.TE("49",this.options.dJ.concat(F));this.Y=new QX(function(){return void k.service.Yt()},this.options.GN);
this.metrics=vsR(this.service);this.U=F};
s2.prototype.Pn=function(){P3M(this.Y)};g.T(rL,g$);g.T(BM,g$);g.T(U2,g$);var ygC=B1(U2),VIR=function(F){return Yr(function(k){return k instanceof F&&!SS(k)})}(U2);
U2.messageId="bfkj";g.T($G,g$);g.T(tK,g$);var I8R=B1(tK);g.T(vM,g.S);vM.prototype.snapshot=function(F){if(this.z4())throw Error("Already disposed");this.logger.Yy("n");var k=this.logger.share();return this.U.then(function(z){var x=z.wL;return new Promise(function(D){var e=new uy(k,"n");x(function(C){e.done();k.mO(C.length);k.Pn();k.dispose();D(C)},[F.vl,
F.Ma,F.qx,F.ke])})})};
vM.prototype.D0=function(F){var k=this;if(this.z4())throw Error("Already disposed");this.logger.Yy("n");var z=mm(this.logger,function(){return k.j([F.vl,F.Ma,F.qx,F.ke])},"n");
this.logger.mO(z.length);this.logger.Pn();return z};
vM.prototype.Cx=function(F){this.U.then(function(k){var z;(z=k.YhJ)==null||z(F)})};
vM.prototype.rg=function(){return this.logger.share()};g.T(VX,g$);g.T(IW,g$);HM.prototype.rE=function(F,k){return RDR(this,F,k,new TQ,0)};
HM.prototype.mV=function(F){return nsp(this,F,new TQ,0)};g.T(aW,g.S);aW.prototype.snapshot=function(F){var k=this;return g.O(function(z){switch(z.Y){case 1:if(k.z4())throw Error("Already disposed");if(k.L||k.G){z.Sk(2);break}return g.c(z,k.W.promise,2);case 2:if(!k.L){z.Sk(4);break}return g.c(z,k.L.snapshot(F),5);case 5:return z.return(z.L);case 4:throw k.G;}})};
aW.prototype.Cx=function(F){var k,z;(k=this.L)==null||(z=k.Cx)==null||z.call(k,F)};
aW.prototype.handleError=function(F){if(!this.z4()){this.G=F;this.W.resolve();var k,z;(z=(k=this.options).Rxh)==null||z.call(k,F)}};
aW.prototype.rg=function(){return this.logger.share()};
var f85={VOt:432E5,Kq:3E5,Ur:10,XQ:1E4,ev:3E4,Eua:3E4,oAa:6E4,aE:1E3,PB:6E4,hj:6E5,Fw:.25,QG:2,maxAttempts:10};var spC,D_C=(spC=Math.imul)!=null?spC:function(F,k){return F*k|0},JK=[196,
200,224,18];RW.prototype.Y9=function(){return String(this.Y)+","+this.L.join()};
RW.prototype.ZT=function(F,k){var z=void 0;if(this.L[this.Y]!==F){var x=this.L.indexOf(F);x!==-1?(this.L.splice(x,1),x<this.Y&&this.Y--,this.L.splice(this.Y,0,F)):(z=this.L[this.Y],this.L[this.Y]=F)}this.Y=(this.Y+1)%this.maxItems;F=iiD("iU5q-!O9@$",this.Y9());z&&F&&k(z);return F};var uEC={toString:function(F){var k=[],z=0;F-=-2147483648;k[z++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(F%52);for(F=Math.floor(F/52);F>0;)k[z++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(F%62),F=Math.floor(F/62);return k.join("")}};var m_n;g.T(Yy,g.S);Yy.prototype.uB=function(F,k){var z=this.BT(F);k==null||k(z);return mm(this.logger,function(){return g.mv(z,2)},this.U)};
m_n=Symbol.dispose;g.T(L7,Yy);L7.prototype.BT=function(F,k){var z=this;this.logger.Yy(this.Y);++this.W>=this.S&&this.L.resolve();var x=F();F=mm(this.logger,function(){return z.j(x)},"C");
if(F===void 0)throw new i7(17,"YNJ:Undefined");if(!(F instanceof Uint8Array))throw new i7(18,"ODM:Invalid");k==null||k(F);return F};
g.T(f7,Yy);f7.prototype.BT=function(){return this.j};
g.T(K7,Yy);K7.prototype.BT=function(){var F=this;return mm(this.logger,function(){return lr(F.j)},"d")};
K7.prototype.uB=function(){return this.j};
g.T(WM,Yy);WM.prototype.BT=function(){if(this.j)return this.j;this.j=TdR(this,function(F){return"_"+wkk(F)});
return TdR(this,function(F){return F})};
g.T(kD,Yy);kD.prototype.BT=function(){var F=Math.floor(Date.now()/1E3),k=[Math.random()*255,Math.random()*255],z=k.concat([this.j&255,this.clientState],[F>>24&255,F>>16&255,F>>8&255,F&255]);F=new Uint8Array(2+z.length);F[0]=34;F[1]=z.length;F.set(z,2);z=F.subarray(2);for(var x=k=k.length;x<z.length;++x)z[x]^=z[x%k];this.logger.qK(this.clientState);return F};var GV9={WB:3E4,RE4:2E4};g.T(o4,g.S);o4.prototype.fP=function(F){if(!(F>150))try{this.cache=new EMa(F,this.logger)}catch(k){this.reportError(new i7(22,"GBJ:init",k))}};
o4.prototype.reportError=function(F){this.logger.Q3(F.code);this.onError(F);return F};
g.T(DE,o4);DE.prototype.Tm=function(){return this.j.promise};
DE.prototype.BT=function(F){return zi(this,Object.assign({},F),!1)};
DE.prototype.uB=function(F){return zi(this,Object.assign({},F),!0)};
var U_D=function(F){return Yr(function(k){if(!qD(k))return!1;for(var z=g.l(Object.entries(F)),x=z.next();!x.done;x=z.next()){var D=g.l(x.value);x=D.next().value;D=D.next().value;if(!(x in k)){if(D.Q5t===!0)continue;return!1}if(!D(k[x]))return!1}return!0})}({d9:function(F){return Yr(function(k){return k instanceof F})}(aW)},"");g.T(jK,g$);var rDl=B1(jK);vMn.prototype.getMetadata=function(){return this.metadata};eK.prototype.getMetadata=function(){return this.metadata};
eK.prototype.getStatus=function(){return this.status};Cf.prototype.G=function(F,k){k=k===void 0?{}:k;return new vMn(F,this,k)};
Cf.prototype.getName=function(){return this.name};var B9t=new Cf("/google.internal.waa.v1.Waa/Create",VX,jK,function(F){return F.Y9()},rDl);g.T(Aa,g$);var YVn=new Cf("/google.internal.waa.v1.Waa/GenerateIT",IW,Aa,function(F){return F.Y9()},B1(Aa));var Dt5=new Set(["SAPISIDHASH","APISIDHASH"]);g.T(pf,g$);pf.prototype.getValue=function(){var F=ne(this,2);if(Array.isArray(F)||F instanceof g$)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return x6(this,2)};g.T(EF,g$);EF.prototype.getMessage=function(){return lt(this,2)};
var HiC=B1(EF);XB.prototype.ZA=function(F,k){F=="data"?this.U.push(k):F=="metadata"?this.W.push(k):F=="status"?this.S.push(k):F=="end"?this.j.push(k):F=="error"&&this.L.push(k);return this};
XB.prototype.removeListener=function(F,k){F=="data"?m$(this.U,k):F=="metadata"?m$(this.W,k):F=="status"?m$(this.S,k):F=="end"?m$(this.j,k):F=="error"&&m$(this.L,k);return this};
XB.prototype.cancel=function(){this.Y.abort()};
XB.prototype.cancel=XB.prototype.cancel;XB.prototype.removeListener=XB.prototype.removeListener;XB.prototype.on=XB.prototype.ZA;g.T(PEk,Error);g.xG(g.Ti,ufa);g.Ti.prototype.Y=function(){var F=new l8(this.j,this.U);this.L&&F.setCredentialsMode(this.L);return F};
g.Ti.prototype.setCredentialsMode=function(F){this.L=F};
g.xG(l8,g.A1);g.A=l8.prototype;g.A.open=function(F,k){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Qh=F;this.K=k;this.readyState=1;Q4(this)};
g.A.send=function(F){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.Y=!0;var k={headers:this.B,method:this.Qh,credentials:this.W,cache:void 0};F&&(k.body=F);(this.PR||g.bD).fetch(new Request(this.K,k)).then(this.lQf.bind(this),this.v4.bind(this))};
g.A.abort=function(){this.response=this.responseText="";this.B=new Headers;this.status=0;this.U&&this.U.cancel("Request was aborted.").catch(function(){});
this.readyState>=1&&this.Y&&this.readyState!=4&&(this.Y=!1,ha(this));this.readyState=0};
g.A.lQf=function(F){if(this.Y&&(this.j=F,this.L||(this.status=this.j.status,this.statusText=this.j.statusText,this.L=F.headers,this.readyState=2,Q4(this)),this.Y&&(this.readyState=3,Q4(this),this.Y)))if(this.responseType==="arraybuffer")F.arrayBuffer().then(this.z_a.bind(this),this.v4.bind(this));else if(typeof g.bD.ReadableStream!=="undefined"&&"body"in F){this.U=F.body.getReader();if(this.S){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');
this.response=[]}else this.response=this.responseText="",this.G=new TextDecoder;aAC(this)}else F.text().then(this.oGK.bind(this),this.v4.bind(this))};
g.A.mJ4=function(F){if(this.Y){if(this.S&&F.value)this.response.push(F.value);else if(!this.S){var k=F.value?F.value:new Uint8Array(0);if(k=this.G.decode(k,{stream:!F.done}))this.response=this.responseText+=k}F.done?ha(this):Q4(this);this.readyState==3&&aAC(this)}};
g.A.oGK=function(F){this.Y&&(this.response=this.responseText=F,ha(this))};
g.A.z_a=function(F){this.Y&&(this.response=F,ha(this))};
g.A.v4=function(){this.Y&&ha(this)};
g.A.setRequestHeader=function(F,k){this.B.append(F,k)};
g.A.getResponseHeader=function(F){return this.L?this.L.get(F.toLowerCase())||"":""};
g.A.getAllResponseHeaders=function(){if(!this.L)return"";for(var F=[],k=this.L.entries(),z=k.next();!z.done;)z=z.value,F.push(z[0]+": "+z[1]),z=k.next();return F.join("\r\n")};
g.A.setCredentialsMode=function(F){this.W=F};
Object.defineProperty(l8.prototype,"withCredentials",{get:function(){return this.W==="include"},
set:function(F){this.setCredentialsMode(F?"include":"same-origin")}});g.sF.prototype.toString=function(){var F=[],k=this.W;k&&F.push(vD(k,Gt$,!0),":");var z=this.Y;if(z||k=="file")F.push("//"),(k=this.B)&&F.push(vD(k,Gt$,!0),"@"),F.push(g.D8(z).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),z=this.U,z!=null&&F.push(":",String(z));if(z=this.L)this.Y&&z.charAt(0)!="/"&&F.push("/"),F.push(vD(z,z.charAt(0)=="/"?U$C:tCY,!0));(z=this.j.toString())&&F.push("?",z);(z=this.S)&&F.push("#",vD(z,ZC$));return F.join("")};
g.sF.prototype.resolve=function(F){var k=this.clone(),z=!!F.W;z?g.rl(k,F.W):z=!!F.B;z?k.B=F.B:z=!!F.Y;z?g.BD(k,F.Y):z=F.U!=null;var x=F.L;if(z)g.Gi(k,F.U);else if(z=!!F.L){if(x.charAt(0)!="/")if(this.Y&&!this.L)x="/"+x;else{var D=k.L.lastIndexOf("/");D!=-1&&(x=k.L.slice(0,D+1)+x)}D=x;if(D==".."||D==".")x="";else if(g.r9(D,"./")||g.r9(D,"/.")){x=Qn(D,"/");D=D.split("/");for(var e=[],C=0;C<D.length;){var p=D[C++];p=="."?x&&C==D.length&&e.push(""):p==".."?((e.length>1||e.length==1&&e[0]!="")&&e.pop(),
x&&C==D.length&&e.push("")):(e.push(p),x=!0)}x=e.join("/")}else x=D}z?k.L=x:z=F.j.toString()!=="";z?UF(k,F.j.clone()):z=!!F.S;z&&(k.S=F.S);return k};
g.sF.prototype.clone=function(){return new g.sF(this)};
var Gt$=/[#\/\?@]/g,tCY=/[#\?:]/g,U$C=/[#\?]/g,biH=/[#\?@]/g,ZC$=/#/g;g.A=ZE.prototype;g.A.add=function(F,k){OF(this);this.U=null;F=V4(this,F);var z=this.Y.get(F);z||this.Y.set(F,z=[]);z.push(k);this.L=this.L+1;return this};
g.A.remove=function(F){OF(this);F=V4(this,F);return this.Y.has(F)?(this.U=null,this.L=this.L-this.Y.get(F).length,this.Y.delete(F)):!1};
g.A.clear=function(){this.Y=this.U=null;this.L=0};
g.A.isEmpty=function(){OF(this);return this.L==0};
g.A.forEach=function(F,k){OF(this);this.Y.forEach(function(z,x){z.forEach(function(D){F.call(k,D,x,this)},this)},this)};
g.A.mD=function(){OF(this);for(var F=Array.from(this.Y.values()),k=Array.from(this.Y.keys()),z=[],x=0;x<k.length;x++)for(var D=F[x],e=0;e<D.length;e++)z.push(k[x]);return z};
g.A.OS=function(F){OF(this);var k=[];if(typeof F==="string")JsR(this,F)&&(k=k.concat(this.Y.get(V4(this,F))));else{F=Array.from(this.Y.values());for(var z=0;z<F.length;z++)k=k.concat(F[z])}return k};
g.A.set=function(F,k){OF(this);this.U=null;F=V4(this,F);JsR(this,F)&&(this.L=this.L-this.Y.get(F).length);this.Y.set(F,[k]);this.L=this.L+1;return this};
g.A.get=function(F,k){if(!F)return k;F=this.OS(F);return F.length>0?String(F[0]):k};
g.A.toString=function(){if(this.U)return this.U;if(!this.Y)return"";for(var F=[],k=Array.from(this.Y.keys()),z=0;z<k.length;z++){var x=k[z],D=g.D8(x);x=this.OS(x);for(var e=0;e<x.length;e++){var C=D;x[e]!==""&&(C+="="+g.D8(x[e]));F.push(C)}}return this.U=F.join("&")};
g.A.clone=function(){var F=new ZE;F.U=this.U;this.Y&&(F.Y=new Map(this.Y),F.L=this.L);return F};g.xG(g.HD,g.S);var vGC=[];g.A=g.HD.prototype;g.A.listen=function(F,k,z,x){Array.isArray(k)||(k&&(vGC[0]=k.toString()),k=vGC);for(var D=0;D<k.length;D++){var e=g.zh(F,k[D],z||this.handleEvent,x||!1,this.L||this);if(!e)break;this.Y[e.key]=e}return this};
g.A.iA=function(F,k,z,x){return gMD(this,F,k,z,x)};
g.A.er=function(F,k,z,x,D){if(Array.isArray(k))for(var e=0;e<k.length;e++)this.er(F,k[e],z,x,D);else z=z||this.handleEvent,x=g.M9(x)?!!x.capture:!!x,D=D||this.L||this,z=xV(z),x=!!x,k=fi(F)?F.Xh(k,z,x,D):F?(F=DJ(F))?F.Xh(k,z,x,D):null:null,k&&(j8(k),delete this.Y[k.key])};
g.A.removeAll=function(){g.tg(this.Y,function(F,k){this.Y.hasOwnProperty(k)&&j8(F)},this);
this.Y={}};
g.A.h4=function(){g.HD.XA.h4.call(this);this.removeAll()};
g.A.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Yy9.prototype.isInputValid=function(){return this.U};a4.prototype.isInputValid=function(){return this.Y!=3};
a4.prototype.SO=function(){return this.S};
a4.prototype.aX=function(){return!0};
a4.prototype.parse=function(F){function k(E){E&128&&SK(e,C,p,"invalid tag");(E&7)!=2&&SK(e,C,p,"invalid wire type");e.U=E>>>3;e.U!=1&&e.U!=2&&e.U!=15&&SK(e,C,p,"unexpected tag");e.Y=1;e.L=0;e.j=0}
function z(E){e.j++;e.j==5&&E&240&&SK(e,C,p,"message length too long");e.L|=(E&127)<<(e.j-1)*7;E&128||(e.Y=2,e.B=0,typeof Uint8Array!=="undefined"?e.W=new Uint8Array(e.L):e.W=Array(e.L),e.L==0&&D())}
function x(E){e.W[e.B++]=E;e.B==e.L&&D()}
function D(){if(e.U<15){var E={};E[e.U]=e.W;e.G.push(E)}e.Y=0}
for(var e=this,C=F instanceof Array?F:new Uint8Array(F),p=0;p<C.length;){switch(e.Y){case 3:SK(e,C,p,"stream already broken");break;case 0:k(C[p]);break;case 1:z(C[p]);break;case 2:x(C[p]);break;default:throw Error("unexpected parser state: "+e.Y);}e.K++;p++}F=e.G;e.G=[];return F.length>0?F:null};b8.prototype.isInputValid=function(){return this.Y===null};
b8.prototype.SO=function(){return this.Y};
b8.prototype.aX=function(){return!1};
b8.prototype.parse=function(F){this.Y!==null&&M0M(this,F,"stream already broken");var k=null;try{var z=this.U;z.U||nMC(z,F,"stream already broken");z.Y+=F;var x=Math.floor(z.Y.length/4);if(x==0)var D=null;else{try{var e=XlC(z.Y.slice(0,x*4))}catch(C){nMC(z,z.Y,C.message)}z.L+=x*4;z.Y=z.Y.slice(x*4);D=e}k=D===null?null:this.j.parse(D)}catch(C){M0M(this,F,C.message)}this.L+=F.length;return k};var cD$={INIT:0,Cf:1,fm:2,rQ:3,GE:4,IN:5,STRING:6,Rw:7,e_:8,JY:9,RB:10,q1:11,Nx:12,wN:13,B3:14,Mx:15,z_:16,oB:17,lP:18,UA:19,An:20};g.A=YD.prototype;g.A.isInputValid=function(){return this.W!=3};
g.A.SO=function(){return this.K};
g.A.done=function(){return this.W===2};
g.A.aX=function(){return!1};
g.A.parse=function(F){function k(){for(;u<F.length;)if(gl(F[u]))u++,e.U++;else break;return u<X}
function z(){for(var m;;){m=F[u++];if(!m)break;e.U++;switch(e.Y){case E.INIT:m==="{"?e.Y=E.fm:m==="["?e.Y=E.GE:gl(m)||nf(e,F,u);continue;case E.Rw:case E.fm:if(gl(m))continue;if(e.Y===E.Rw)C.push(E.e_);else if(m==="}"){D("{}");e.Y=x();continue}else C.push(E.rQ);m==='"'?e.Y=E.STRING:nf(e,F,u);continue;case E.e_:case E.rQ:if(gl(m))continue;m===":"?(e.Y===E.rQ&&(C.push(E.rQ),e.L++),e.Y=E.Cf):m==="}"?(e.L--,D(),e.Y=x()):m===","?(e.Y===E.rQ&&C.push(E.rQ),e.Y=E.Rw):nf(e,F,u);continue;case E.GE:case E.Cf:if(gl(m))continue;
if(e.Y===E.GE)if(e.L++,e.Y=E.Cf,m==="]"){e.L--;if(e.L===0){e.Y=E.IN;return}D("[]");e.Y=x();continue}else C.push(E.IN);m==='"'?e.Y=E.STRING:m==="{"?e.Y=E.fm:m==="["?e.Y=E.GE:m==="t"?e.Y=E.JY:m==="f"?e.Y=E.Nx:m==="n"?e.Y=E.z_:m!=="-"&&("0123456789".indexOf(m)!==-1?e.Y=E.An:nf(e,F,u));continue;case E.IN:if(m===",")C.push(E.IN),e.Y=E.Cf,e.L===1&&(N=u);else if(m==="]"){e.L--;if(e.L===0)return;D();e.Y=x()}else if(gl(m))continue;else nf(e,F,u);continue;case E.STRING:var h=u;a:for(;;){for(;e.B>0;)if(m=F[u++],
e.B===4?e.B=0:e.B++,!m)break a;if(m==='"'&&!e.G){e.Y=x();break}if(m==="\\"&&!e.G&&(e.G=!0,m=F[u++],!m))break;if(e.G)if(e.G=!1,m==="u"&&(e.B=1),m=F[u++])continue;else break;p.lastIndex=u;m=p.exec(F);if(!m){u=F.length+1;break}u=m.index+1;m=F[m.index];if(!m)break}e.U+=u-h;continue;case E.JY:if(!m)continue;m==="r"?e.Y=E.RB:nf(e,F,u);continue;case E.RB:if(!m)continue;m==="u"?e.Y=E.q1:nf(e,F,u);continue;case E.q1:if(!m)continue;m==="e"?e.Y=x():nf(e,F,u);continue;case E.Nx:if(!m)continue;m==="a"?e.Y=E.wN:
nf(e,F,u);continue;case E.wN:if(!m)continue;m==="l"?e.Y=E.B3:nf(e,F,u);continue;case E.B3:if(!m)continue;m==="s"?e.Y=E.Mx:nf(e,F,u);continue;case E.Mx:if(!m)continue;m==="e"?e.Y=x():nf(e,F,u);continue;case E.z_:if(!m)continue;m==="u"?e.Y=E.oB:nf(e,F,u);continue;case E.oB:if(!m)continue;m==="l"?e.Y=E.lP:nf(e,F,u);continue;case E.lP:if(!m)continue;m==="l"?e.Y=x():nf(e,F,u);continue;case E.UA:m==="."?e.Y=E.An:nf(e,F,u);continue;case E.An:if("0123456789.eE+-".indexOf(m)!==-1)continue;else u--,e.U--,e.Y=
x();continue;default:nf(e,F,u)}}}
function x(){var m=C.pop();return m!=null?m:E.Cf}
function D(m){e.L>1||(m||(m=N===-1?e.j+F.substring(q,u):F.substring(N,u)),e.Qh?e.S.push(m):e.S.push(JSON.parse(m)),N=u)}
for(var e=this,C=e.PR,p=e.t4,E=cD$,X=F.length,q=0,N=-1,u=0;u<X;)switch(e.W){case 3:return nf(e,F,u),null;case 2:return k()&&nf(e,F,u),null;case 0:if(k()){var w=F[u++];e.U++;if(w==="["){e.W=1;q=u;e.Y=E.GE;continue}else nf(e,F,u)}return null;case 1:return z(),e.L===0&&e.Y==E.IN?(e.W=2,e.j=F.substring(u)):e.j=N===-1?e.j+F.substring(q):F.substring(N),e.S.length>0?(w=e.S,e.S=[],w):null}return null};Mr.prototype.isInputValid=function(){return this.W===null};
Mr.prototype.SO=function(){return this.W};
Mr.prototype.aX=function(){return!1};
Mr.prototype.parse=function(F){function k(E){e.L=6;e.W="The stream is broken @"+e.Y+"/"+C+". Error: "+E+". With input:\n";throw Error(e.W);}
function z(){e.U=new YD({spk:!0,fS:!0})}
function x(E){if(E)for(var X=0;X<E.length;X++){var q={};q[1]=E[X];e.j.push(q)}}
function D(E){if(E){(e.S||E.length>1)&&k("extra status: "+E);e.S=!0;var X={};X[2]=E[0];e.j.push(X)}}
for(var e=this,C=0;C<F.length;){var p;if(p=e.L!==2){a:{for(;C<F.length;){if(!gl(F[C])){p=!0;break a}C++;e.Y++}p=!1}p=!p}if(p)return null;switch(e.L){case 6:k("stream already broken");break;case 0:F[C]==="["?(e.L=1,C++,e.Y++):k("unexpected input token");break;case 1:F[C]==="["?(e.L=2,z()):F[C]===","||F.slice(C,C+5)=="null,"?e.L=3:F[C]==="]"?(e.L=5,C++,e.Y++):k("unexpected input token");break;case 2:p=e.U.parse(F.substring(C));x(p);e.U.done()?(e.L=3,p=e.U.j,e.Y+=F.length-C-p.length,F=p,C=0):(e.Y+=F.length-
C,C=F.length);break;case 3:F[C]===","||F.slice(C,C+5)=="null,"?(e.L=4,z(),e.U.parse("["),C+=F[C]===","?1:5,e.Y++):F[C]==="]"&&(e.L=5,C++,e.Y++);break;case 4:p=e.U.parse(F.substring(C));D(p);e.U.done()?(e.L=5,p=e.U.j,e.Y+=F.length-C-p.length,F=p,C=0):(e.Y+=F.length-C,C=F.length);break;case 5:k("extra input after stream end")}}return e.j.length>0?(F=e.j,e.j=[],F):null};Lf.prototype.PK=function(){return this.Y};
Lf.prototype.getStatus=function(){return this.W};
Lf.prototype.Qh=function(F){F=F.target;try{if(F==this.Y)a:{var k=g.C7(this.Y),z=this.Y.L,x=this.Y.getStatus(),D=g.p7(this.Y);F=[];if(g.E2(this.Y)instanceof Array){var e=g.E2(this.Y);e.length>0&&e[0]instanceof Uint8Array&&(this.K=!0,F=e)}if(!(k<3||k==3&&!D&&F.length==0))if(x=x==200||x==206,k==4&&(z==8?ff(this,7):z==7?ff(this,8):x||ff(this,3)),this.L||(this.L=LXI(this.Y),this.L==null&&ff(this,5)),this.W>2)Kf(this);else{if(F.length>this.U){var C=F.length;z=[];try{if(this.L.aX())for(var p=0;p<C;p++){var E=
this.L.parse(Array.from(F[p]));E&&(z=z.concat(E))}else{E="";if(!this.S){if(typeof TextDecoder==="undefined")throw Error("TextDecoder is not supported by this browser.");this.S=new TextDecoder}for(p=0;p<C;p++)E+=this.S.decode(F[p],{stream:k==4&&p==C-1});z=this.L.parse(E)}F.splice(0,C);z&&this.j(z)}catch(q){ff(this,5);Kf(this);break a}}else if(D.length>this.U){p=D.slice(this.U);this.U=D.length;try{var X=this.L.parse(p);X!=null&&this.j&&this.j(X)}catch(q){ff(this,5);Kf(this);break a}}k==4?(D.length!=
0||this.K?ff(this,2):ff(this,4),Kf(this)):ff(this,1)}}}catch(q){ff(this,6),Kf(this)}};g.A=fAk.prototype;g.A.ZA=function(F,k){var z=this.L[F];z||(z=[],this.L[F]=z);z.push(k);return this};
g.A.addListener=function(F,k){this.ZA(F,k);return this};
g.A.removeListener=function(F,k){var z=this.L[F];z&&g.FN(z,k);(F=this.Y[F])&&g.FN(F,k);return this};
g.A.once=function(F,k){var z=this.Y[F];z||(z=[],this.Y[F]=z);z.push(k);return this};
g.A.zxp=function(F){var k=this.L.data;k&&KX6(F,k);(k=this.Y.data)&&KX6(F,k);this.Y.data=[]};
g.A.GMa=function(){switch(this.U.getStatus()){case 1:WD(this,"readable");break;case 5:case 6:case 4:case 7:case 3:WD(this,"error");break;case 8:WD(this,"close");break;case 2:WD(this,"end")}};WXx.prototype.serverStreaming=function(F,k,z,x){var D=this,e=F.substring(0,F.length-x.name.length);return FQp(function(C){var p=C.Zf,E=C.getMetadata(),X=zHn(D,!1);E=xta(D,E,X,e+p.getName());var q=iwn(X,p.L,!0);C=p.Y(C.Zl);X.send(E,"POST",C);return q},this.j).call(this,x.G(k,z))};$ta.prototype.create=function(F,k){return gsn(this.Y,this.L+"/$rpc/google.internal.waa.v1.Waa/Create",F,k||{},B9t)};g.T(Fm,o4);g.A=Fm.prototype;g.A.isReady=function(){return!!this.Y};
g.A.ready=function(){var F=this;return g.O(function(k){return g.c(k,F.U.promise,0)})};
g.A.rE=function(F){return eHx(this,this.logger.EQ("c",this.cC,F===void 0?1:F,this.Cd.rE(PM().Y,null)),new i7(10,"JVZ:Timeout"))};
g.A.prefetch=function(){this.state===1&&(this.N3=this.rE())};
g.A.start=function(){if(this.state===1){this.state=2;var F=new uy(this.logger,"r");this.ready().finally(function(){return void F.done()});
A1M(this)}};
g.A.BT=function(F){p4n(this,F);return zi(this,jUH(F),!1)};
g.A.uB=function(F){p4n(this,F);return zi(this,jUH(F),!0)};
g.T(o6,N$);var NPY={NONE:0,ROQ:1},LQY={yO:0,ukf:1,B8J:2,MaK:3},a6={PS:"a",xXU:"d",VIDEO:"v"};zy.prototype.isVisible=function(){return this.Mt?this.wl>=.3:this.wl>=.5};var EQ={teR:0,KAJ:1},nVI={NONE:0,wOR:1,QO$:2};xk.prototype.getValue=function(){return this.L};
g.T(iQ,xk);iQ.prototype.U=function(F){this.L===null&&g.HB(this.j,F)&&(this.L=F)};
g.T(DO,xk);DO.prototype.U=function(F){this.L===null&&typeof F==="number"&&(this.L=F)};
g.T($k,xk);$k.prototype.U=function(F){this.L===null&&typeof F==="string"&&(this.L=F)};j3.prototype.disable=function(){this.L=!1};
j3.prototype.enable=function(){this.L=!0};
j3.prototype.isEnabled=function(){return this.L};
j3.prototype.reset=function(){this.Y={};this.L=!0;this.U={}};var vS=document,uQ=window;var KmM=!g.w6&&!d9();Xm.prototype.now=function(){return 0};
Xm.prototype.L=function(){return 0};
Xm.prototype.U=function(){return 0};
Xm.prototype.Y=function(){return 0};g.T(N2,Xm);N2.prototype.now=function(){return q2()&&uQ.performance.now?uQ.performance.now():Xm.prototype.now.call(this)};
N2.prototype.L=function(){return q2()&&uQ.performance.memory?uQ.performance.memory.totalJSHeapSize||0:Xm.prototype.L.call(this)};
N2.prototype.U=function(){return q2()&&uQ.performance.memory?uQ.performance.memory.usedJSHeapSize||0:Xm.prototype.U.call(this)};
N2.prototype.Y=function(){return q2()&&uQ.performance.memory?uQ.performance.memory.jsHeapSizeLimit||0:Xm.prototype.Y.call(this)};var mtD=sz(function(){var F=!1;try{var k=Object.defineProperty({},"passive",{get:function(){F=!0}});
g.bD.addEventListener("test",null,k)}catch(z){}return F});TPH.prototype.isVisible=function(){return Ty(vS)===1};var QU6={K$h:"allow-forms",rGG:"allow-modals",v9G:"allow-orientation-lock",dBf:"allow-pointer-lock",YFk:"allow-popups",L3$:"allow-popups-to-escape-sandbox",UB4:"allow-presentation",QzQ:"allow-same-origin",P0a:"allow-scripts",a$J:"allow-top-navigation",jzR:"allow-top-navigation-by-user-activation"},BPn=sz(function(){return hHn()});var Zwp=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");rH.prototype.q5=function(F,k,z){F=F+"//"+k+z;var x=OwI(this)-z.length;if(x<0)return"";this.Y.sort(function(X,q){return X-q});
z=null;k="";for(var D=0;D<this.Y.length;D++)for(var e=this.Y[D],C=this.L[e],p=0;p<C.length;p++){if(!x){z=z==null?e:z;break}var E=PhR(C[p],this.U,",$");if(E){E=k+E;if(x>=E.length){x-=E.length;F+=E;k=this.U;break}z=z==null?e:z}}x="";z!=null&&(x=""+k+"trn="+z);return F+x};P8.prototype.setInterval=function(F,k){return uQ.setInterval(F,k)};
P8.prototype.clearInterval=function(F){uQ.clearInterval(F)};
P8.prototype.setTimeout=function(F,k){return uQ.setTimeout(F,k)};
P8.prototype.clearTimeout=function(F){uQ.clearTimeout(F)};g.T(V0,g$);V0.prototype.L=D3M([0,KnC,ktC,-2,x$l]);var M8C={zWQ:1,yv:2,Hd$:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};fJH.prototype.Zc=function(F){if(typeof F==="string"&&F.length!=0){var k=this.zD;if(k.L){F=F.split("&");for(var z=F.length-1;z>=0;z--){var x=F[z].split("="),D=decodeURIComponent(x[0]);x.length>1?(x=decodeURIComponent(x[1]),x=/^[0-9]+$/g.exec(x)?parseInt(x,10):x):x=1;(D=k.Y[D])&&D.U(x)}}}};var ig=null;var dH=g.bD.performance,P7$=!!(dH&&dH.mark&&dH.measure&&dH.clearMarks),S3=sz(function(){var F;if(F=P7$){var k=k===void 0?window:k;if(ig===null){ig="";try{F="";try{F=k.top.location.hash}catch(x){F=k.location.hash}if(F){var z=F.match(/\bdeid=([\d,]+)/);ig=z?z[1]:""}}catch(x){}}k=ig;F=!!k.indexOf&&k.indexOf("1337")>=0}return F});
bQ.prototype.disable=function(){this.Y=!1;this.events!==this.L.google_js_reporting_queue&&(S3()&&g.XN(this.events,zwa),this.events.length=0)};
bQ.prototype.start=function(F,k){if(!this.Y)return null;var z=kQC()||Fmn();F=new oyx(F,k,z);k="goog_"+F.label+"_"+F.uniqueId+"_start";dH&&S3()&&dH.mark(k);return F};
bQ.prototype.end=function(F){if(this.Y&&typeof F.value==="number"){var k=kQC()||Fmn();F.duration=k-F.value;k="goog_"+F.label+"_"+F.uniqueId+"_end";dH&&S3()&&dH.mark(k);!this.Y||this.events.length>2048||this.events.push(F)}};xnR.prototype.TB=function(F,k,z,x,D){D=D||this.Fj;try{var e=new rH;e.Y.push(1);e.L[1]=B8("context",F);k.error&&k.meta&&k.id||(k=new gH(Yk(k)));if(k.msg){var C=k.msg.substring(0,512);e.Y.push(2);e.L[2]=B8("msg",C)}var p=k.meta||{};if(this.sO)try{this.sO(p)}catch(w){}if(x)try{x(p)}catch(w){}x=[p];e.Y.push(3);e.L[3]=x;var E=c15();if(E.L){var X=E.L.url||"";e.Y.push(4);e.L[4]=B8("top",X)}var q={url:E.Y.url||""};if(E.Y.url){var N=E.Y.url.match(nw);var u=gP(N[1],null,N[3],N[4])}else u="";X=[q,{url:u}];e.Y.push(5);
e.L[5]=X;KQY(this.Y,D,e,z)}catch(w){try{KQY(this.Y,D,{context:"ecmserr",rctx:F,msg:Yk(w),url:E&&E.Y.url},z)}catch(m){}}return this.pT};
g.T(gH,WQM);var y0,R6,JW=new bQ;y0=new function(){var F="https:";uQ&&uQ.location&&uQ.location.protocol==="http:"&&(F="http:");this.L=F;this.Y=.01};
R6=new xnR;uQ&&uQ.document&&(uQ.document.readyState=="complete"?Dna():JW.Y&&mG(uQ,"load",function(){Dna()}));var ewk=Date.now(),Fr=-1,Kc=-1,BlM,kQ=-1,W8=!1;g.A=oY.prototype;g.A.getHeight=function(){return this.bottom-this.top};
g.A.clone=function(){return new oY(this.top,this.right,this.bottom,this.left)};
g.A.contains=function(F){return this&&F?F instanceof oY?F.left>=this.left&&F.right<=this.right&&F.top>=this.top&&F.bottom<=this.bottom:F.x>=this.left&&F.x<=this.right&&F.y>=this.top&&F.y<=this.bottom:!1};
g.A.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.A.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
g.A.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.A.scale=function(F,k){k=typeof k==="number"?k:F;this.left*=F;this.right*=F;this.top*=k;this.bottom*=k;return this};Dt.prototype.VZ=function(F,k){return!!F&&(!(k===void 0?0:k)||this.volume==F.volume)&&this.U==F.U&&xQ(this.Y,F.Y)&&!0};$Q.prototype.T$=function(){return this.G};
$Q.prototype.VZ=function(F,k){return this.j.VZ(F.j,k===void 0?!1:k)&&this.G==F.G&&xQ(this.U,F.U)&&xQ(this.S,F.S)&&this.Y==F.Y&&this.W==F.W&&this.L==F.L&&this.B==F.B};var OCV={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Z5={m1:"start",xB:"firstquartile",dL:"midpoint",XU:"thirdquartile",COMPLETE:"complete",ERROR:"error",K4:"metric",PAUSE:"pause",aH:"resume",jf:"skip",gL:"viewable_impression",LM:"mute",WX:"unmute",VO:"fullscreen",b1:"exitfullscreen",Xe:"bufferstart",md:"bufferfinish",IL:"fully_viewable_audible_half_duration_impression",OG:"measurable_impression",LD:"abandon",l1:"engagedview",qC:"impression",WS:"creativeview",D1:"loaded",
nFp:"progress",CLOSE:"close",PdR:"collapse",hW4:"overlay_resize",FWR:"overlay_unmeasurable_impression",taU:"overlay_unviewable_impression",EF4:"overlay_viewable_immediate_impression",isR:"overlay_viewable_end_of_session_impression",cS:"custom_metric_viewable",aL:"audio_audible",hx:"audio_measurable",jP:"audio_impression"},Hck="start firstquartile midpoint thirdquartile resume loaded".split(" "),aOM=["start","firstquartile","midpoint","thirdquartile"],UrC=["abandon"],fT={UNKNOWN:-1,m1:0,xB:1,dL:2,
XU:3,COMPLETE:4,K4:5,PAUSE:6,aH:7,jf:8,gL:9,LM:10,WX:11,VO:12,b1:13,IL:14,OG:15,LD:16,l1:17,qC:18,WS:19,D1:20,cS:21,Xe:22,md:23,jP:27,hx:28,aL:29};var AKI={ub4:"addEventListener",a4h:"getMaxSize",jO4:"getScreenSize",hJa:"getState",Fr_:"getVersion",fW_:"removeEventListener",jik:"isViewable"};g.A=g.eU.prototype;g.A.clone=function(){return new g.eU(this.left,this.top,this.width,this.height)};
g.A.contains=function(F){return F instanceof g.sV?F.x>=this.left&&F.x<=this.left+this.width&&F.y>=this.top&&F.y<=this.top+this.height:this.left<=F.left&&this.left+this.width>=F.left+F.width&&this.top<=F.top&&this.top+this.height>=F.top+F.height};
g.A.getSize=function(){return new g.BB(this.width,this.height)};
g.A.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.A.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.A.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.A.scale=function(F,k){k=typeof k==="number"?k:F;this.left*=F;this.width*=F;this.top*=k;this.height*=k;return this};var q25={};sWp.prototype.update=function(F){F&&F.document&&(this.G=jU(!1,F,this.isMobileDevice),this.Y=jU(!0,F,this.isMobileDevice),BL6(this,F),rKI(this,F))};HS.prototype.cancel=function(){OQ().clearTimeout(this.Y);this.Y=null};
HS.prototype.schedule=function(){var F=this,k=OQ(),z=H8().Y.Y;this.Y=k.setTimeout(I6(z,M2(143,function(){F.L++;F.U.sample()})),Cy6())};g.A=aY.prototype;g.A.QJ=function(){return!1};
g.A.initialize=function(){return this.isInitialized=!0};
g.A.D2=function(){return this.Y.Xf};
g.A.R_=function(){return this.Y.Qh};
g.A.YR=function(F,k){if(!this.Qh||(k===void 0?0:k))this.Qh=!0,this.Xf=F,this.B=0,this.Y!=this||bU(this)};
g.A.getName=function(){return this.Y.l$};
g.A.F7=function(){return this.Y.Rv()};
g.A.Rv=function(){return{}};
g.A.yd=function(){return this.Y.B};
g.A.f7=function(){var F=Zt();F.Y=jU(!0,this.U,F.isMobileDevice)};
g.A.Ha=function(){rKI(Zt(),this.U)};
g.A.s4=function(){return this.j.Y};
g.A.sample=function(){};
g.A.isActive=function(){return this.Y.S};
g.A.jJ=function(F){var k=this.Y;this.Y=F.yd()>=this.B?F:this;k!==this.Y?(this.S=this.Y.S,bU(this)):this.S!==this.Y.S&&(this.S=this.Y.S,bU(this))};
g.A.zC=function(F){if(F.L===this.Y){var k=!this.j.VZ(F,this.K);this.j=F;k&&tXH(this)}};
g.A.g2=function(){return this.K};
g.A.dispose=function(){this.mp=!0};
g.A.z4=function(){return this.mp};g.A=dQ.prototype;g.A.observe=function(){return!0};
g.A.unobserve=function(){};
g.A.CB=function(F){this.W=F};
g.A.dispose=function(){if(!this.z4()){var F=this.L;g.FN(F.W,this);F.K&&this.g2()&&Unx(F);this.unobserve();this.t4=!0}};
g.A.z4=function(){return this.t4};
g.A.F7=function(){return this.L.F7()};
g.A.yd=function(){return this.L.yd()};
g.A.D2=function(){return this.L.D2()};
g.A.R_=function(){return this.L.R_()};
g.A.jJ=function(){};
g.A.zC=function(){this.uW()};
g.A.g2=function(){return this.mp};g.A=J9.prototype;g.A.yd=function(){return this.Y.yd()};
g.A.D2=function(){return this.Y.D2()};
g.A.R_=function(){return this.Y.R_()};
g.A.create=function(F,k,z){var x=null;this.Y&&(x=this.rD(F,k,z),SU(this.Y,x));return x};
g.A.N7=function(){return this.Ph()};
g.A.Ph=function(){return!1};
g.A.init=function(F){return this.Y.initialize()?(SU(this.Y,this),this.j=F,!0):!1};
g.A.jJ=function(F){F.yd()==0&&this.j(F.D2(),this)};
g.A.zC=function(){};
g.A.g2=function(){return!1};
g.A.dispose=function(){this.W=!0};
g.A.z4=function(){return this.W};
g.A.F7=function(){return{}};y1.prototype.add=function(F,k,z){++this.U;F=new vya(F,k,z);this.Y.push(new vya(F.L,F.Y,F.U+this.U/4096));this.L=!0;return this};IdY.prototype.toString=function(){var F="//web.archive.org/web/20250411103644/https://pagead2.googlesyndication.com//pagead/gen_204",k=gQ(this.Y);k.length>0&&(F+="?"+k);return F};YQ.prototype.update=function(F,k,z){F&&(this.Y+=k,this.L+=k,this.j+=k,this.U=Math.max(this.U,this.j));if(z===void 0?!F:z)this.j=0};var dnn=[1,.75,.5,.3,0];nV.prototype.update=function(F,k,z,x,D,e){e=e===void 0?!0:e;k=D?Math.min(F,k):k;for(D=0;D<this.L.length;D++){var C=this.L[D],p=k>0&&k>=C;C=!(F>0&&F>=C)||z;this.Y[D].update(e&&p,x,!e||C)}};FJ.prototype.update=function(F,k,z,x){this.G=this.G!=-1?Math.min(this.G,k.wl):k.wl;this.PR=Math.max(this.PR,k.wl);this.t4=this.t4!=-1?Math.min(this.t4,k.Fz):k.Fz;this.Xf=Math.max(this.Xf,k.Fz);this.vR.update(k.Fz,z.Fz,k.Y,F,x);this.cR+=F;k.wl===0&&(this.l$+=F);this.L.update(k.wl,z.wl,k.Y,F,x);z=x||z.Mt!=k.Mt?z.isVisible()&&k.isVisible():z.isVisible();k=!k.isVisible()||k.Y;this.RU.update(z,F,k)};
FJ.prototype.R9=function(){return this.RU.U>=this.kG};if(vS&&vS.URL){var VCG=vS.URL,IHD;if(IHD=!!VCG){var HCG;a:{if(VCG){var aHC=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var DB=aHC.exec(decodeURIComponent(VCG));if(DB){HCG=DB[1]&&DB[1].length>1?DB[1].substring(1):"true";break a}}catch(F){}}HCG=""}IHD=HCG.length>0}R6.pT=!IHD};var S$Y=new oY(0,0,0,0);var Lma=new oY(0,0,0,0);g.T(iR,g.S);g.A=iR.prototype;
g.A.h4=function(){if(this.xZ.Y){if(this.LU.x7){var F=this.xZ.Y;F.removeEventListener&&F.removeEventListener("mouseover",this.LU.x7,wH());this.LU.x7=null}this.LU.n_&&(F=this.xZ.Y,F.removeEventListener&&F.removeEventListener("mouseout",this.LU.n_,wH()),this.LU.n_=null)}this.Q9&&this.Q9.dispose();this.M5&&this.M5.dispose();delete this.pX;delete this.SA;delete this.lm;delete this.xZ.MI;delete this.xZ.Y;delete this.LU;delete this.Q9;delete this.M5;delete this.zD;g.S.prototype.h4.call(this)};
g.A.X7=function(){return this.M5?this.M5.Y:this.position};
g.A.Zc=function(F){H8().Zc(F)};
g.A.g2=function(){return!1};
g.A.RP=function(){return new FJ};
g.A.Rz=function(){return this.pX};
g.A.HQ=function(F){return F$D(this,F,1E4)};
g.A.G4=function(F,k,z,x,D,e,C){this.Vl||(this.uH&&(F=this.j7(F,z,D,C),x=x&&this.yL.wl>=(this.Mt()?.3:.5),this.zQ(e,F,x),this.rV=k,F.wl>0&&-1===this.rG&&(this.rG=k),this.QB==-1&&this.R9()&&(this.QB=k),this.iR==-2&&(this.iR=zA(this.X7())?F.wl:-1),this.yL=F),this.SA(this))};
g.A.zQ=function(F,k,z){this.Rz().update(F,k,this.yL,z)};
g.A.kU=function(){return new zy};
g.A.j7=function(F,k,z,x){z=this.kU();z.Y=k;k=OQ().L;k=Ty(vS)===0?-1:k.isVisible()?0:1;z.L=k;z.wl=this.V4(F);z.Mt=this.Mt();z.Fz=x;return z};
g.A.V4=function(F){return this.opacity===0&&AW(this.zD,"opac")===1?0:F};
g.A.Mt=function(){return!1};
g.A.YD=function(){return this.vGk||this.LYG};
g.A.gK=function(){fc()};
g.A.P1=function(){fc()};
g.A.q9=function(){return 0};
g.A.R9=function(){return this.pX.R9()};
g.A.rU=function(){var F=this.uH;F=(this.hasCompleted||this.z4())&&!F;var k=H8().L!==2||this.hqf;return this.Vl||k&&F?2:this.R9()?4:3};
g.A.eN=function(){return 0};g.$m.prototype.next=function(){return g.$L};
g.$L={done:!0,value:void 0};g.$m.prototype.Va=function(){return this};g.T(Dr6,zy);var jq=j46([void 0,1,2,3,4,8,16]),eq=j46([void 0,4,8,16]),bC$={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Ai("p0",eq),p1:Ai("p1",eq),p2:Ai("p2",eq),p3:Ai("p3",eq),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:CT("mtos1",[0,2,4],!1,eq),mtos2:CT("mtos2",[0,2,4],!1,eq),mtos3:CT("mtos3",[0,2,4],!1,eq),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Ai("a0",eq),a1:Ai("a1",eq),a2:Ai("a2",eq),a3:Ai("a3",eq),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:Ai("c0",eq),c1:Ai("c1",eq),c2:Ai("c2",eq),c3:Ai("c3",eq),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Ai("qmtos",jq),qnc:Ai("qnc",jq),qmv:Ai("qmv",jq),qnv:Ai("qnv",jq),
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:Ai("ss0",eq),ss1:Ai("ss1",eq),ss2:Ai("ss2",eq),ss3:Ai("ss3",eq),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"},d$A=Object.assign({},bC$,{avid:QD("audio"),avas:"avas",vs:"vs"}),JDC={atos:"atos",avt:CT("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(F,k){return function(z){return z[F]===void 0&&k!==void 0?k:z[F]}}("ss",0),
t:"t"};ql.prototype.getValue=function(){return this.L};
ql.prototype.update=function(F,k){F>=32||(this.Y&1<<F&&!k?this.L&=~(1<<F):this.Y&1<<F||!k||(this.L|=1<<F),this.Y|=1<<F)};g.T(Nl,FJ);
Nl.prototype.update=function(F,k,z,x){if(!k.paused){FJ.prototype.update.call(this,F,k,z,x);var D=er(k)&&er(z),e=(x?Math.min(k.wl,z.wl):z.wl)>=.5;U0(k.volume)&&(this.j=this.j!=-1?Math.min(this.j,k.volume):k.volume,this.S=Math.max(this.S,k.volume));e&&(this.mp+=F,this.K+=D?F:0);this.Y.update(k.wl,z.wl,k.Y,F,x,D);this.U.update(!0,F);this.W.update(D,F);this.Qh.update(z.fullscreen,F);this.dH.update(D&&!e,F);F=Math.floor(k.mediaTime/1E3);this.yh.update(F,k.isVisible());this.NJ.update(F,k.wl>=1);this.u$.update(F,
er(k))}};XD9.prototype.L=function(F){this.U||(this.Y(F)?(F=rWn(this.K,this.j,F),this.W|=F,F=F==0):F=!1,this.U=F)};g.T(wC,XD9);wC.prototype.Y=function(){return!0};
wC.prototype.S=function(){return!1};
wC.prototype.getId=function(){var F=this,k=aM(Z5,function(z){return z==F.j});
return fT[k].toString()};
wC.prototype.toString=function(){var F="";this.S()&&(F+="c");this.U&&(F+="s");this.W>0&&(F+=":"+this.W);return this.getId()+F};g.T(TA,wC);TA.prototype.L=function(F,k){k=k===void 0?null:k;k!=null&&this.G.push(k);wC.prototype.L.call(this,F)};g.T(lR,qF9);lR.prototype.L=function(){return null};
lR.prototype.U=function(){return[]};g.T(Q_,dQ);g.A=Q_.prototype;g.A.Fr=function(){if(this.element){var F=this.element,k=this.L.Y.U;try{try{var z=ldp(F.getBoundingClientRect())}catch(X){z=new oY(0,0,0,0)}var x=z.right-z.left,D=z.bottom-z.top,e=wMn(F,k),C=e.x,p=e.y;var E=new oY(Math.round(p),Math.round(C+x),Math.round(p+D),Math.round(C))}catch(X){E=S$Y.clone()}this.U=E;this.Y=Z7H(this,this.U)}};
g.A.mU=function(){this.S=this.L.j.Y};
g.A.k6=function(F){var k=AW(this.zD,"od")==1;return MXn(F,this.S,this.element,k)};
g.A.XC=function(){this.timestamp=fc()};
g.A.uW=function(){this.XC();this.Fr();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var F=this.element;var k=new g.BB(F.videoWidth,F.videoHeight);F=this.Y;var z=zO(F),x=F.getHeight(),D=k.width;k=k.height;D<=0||k<=0||z<=0||x<=0||(D/=k,k=z/x,F=F.clone(),D>k?(z/=D,x=(x-z)/2,x>0&&(x=F.top+x,F.top=Math.round(x),F.bottom=Math.round(x+z))):(x*=D,z=Math.round((z-x)/2),z>0&&(z=F.left+z,F.left=Math.round(z),F.right=Math.round(z+x))));this.Y=F}this.mU();
F=this.Y;z=this.S;F=F.left<=z.right&&z.left<=F.right&&F.top<=z.bottom&&z.top<=F.bottom?new oY(Math.max(F.top,z.top),Math.min(F.right,z.right),Math.min(F.bottom,z.bottom),Math.max(F.left,z.left)):new oY(0,0,0,0);z=F.top>=F.bottom||F.left>=F.right?new oY(0,0,0,0):F;F=this.L.j;k=D=x=0;if((this.Y.bottom-this.Y.top)*(this.Y.right-this.Y.left)>0)if(this.k6(z))z=new oY(0,0,0,0);else{x=Zt().j;k=new oY(0,x.height,x.width,0);var e;x=xm(z,(e=this.W)!=null?e:this.Y);D=xm(z,Zt().Y);k=xm(z,k)}e=z.top>=z.bottom||
z.left>=z.right?new oY(0,0,0,0):iU(z,-this.Y.left,-this.Y.top);IY()||(D=x=0);this.K=new $Q(F,this.element,this.Y,e,x,D,this.timestamp,k)};
g.A.getName=function(){return this.L.getName()};var yDC=new oY(0,0,0,0);g.T(hi,Q_);g.A=hi.prototype;g.A.observe=function(){this.j();return!0};
g.A.zC=function(){Q_.prototype.uW.call(this)};
g.A.XC=function(){};
g.A.Fr=function(){};
g.A.uW=function(){this.j();Q_.prototype.uW.call(this)};
g.A.jJ=function(F){F=F.isActive();F!==this.B&&(F?this.j():(Zt().Y=new oY(0,0,0,0),this.Y=new oY(0,0,0,0),this.S=new oY(0,0,0,0),this.timestamp=-1));this.B=F};var Cr={},raH=(Cr.firstquartile=0,Cr.midpoint=1,Cr.thirdquartile=2,Cr.complete=3,Cr);g.T(rC,iR);g.A=rC.prototype;g.A.g2=function(){return!0};
g.A.bK=function(){return this.sT==2};
g.A.HQ=function(F){return F$D(this,F,Math.max(1E4,this.U/3))};
g.A.G4=function(F,k,z,x,D,e,C){var p=this,E=this.G(this)||{};g.RM(E,D);this.U=E.duration||this.U;this.K=E.isVpaid||this.K;this.l$=E.isYouTube||this.l$;OQ();this.vR=!1;D=uBn(this,k);Nlx(this)===1&&(e=D);iR.prototype.G4.call(this,F,k,z,x,E,e,C);this.HT&&this.HT.U&&g.XN(this.S,function(X){X.L(p)})};
g.A.zQ=function(F,k,z){iR.prototype.zQ.call(this,F,k,z);Ug(this).update(F,k,this.yL,z);this.kG=er(this.yL)&&er(k);this.Xf==-1&&this.NJ&&(this.Xf=this.Rz().U.Y);this.Kp.U=0;F=this.R9();k.isVisible()&&XJ(this.Kp,"vs");F&&XJ(this.Kp,"vw");U0(k.volume)&&XJ(this.Kp,"am");er(k)?XJ(this.Kp,"a"):XJ(this.Kp,"mut");this.zJ&&XJ(this.Kp,"f");k.L!=-1&&(XJ(this.Kp,"bm"),k.L==1&&(XJ(this.Kp,"b"),er(k)&&XJ(this.Kp,"umutb")));er(k)&&k.isVisible()&&XJ(this.Kp,"avs");this.kG&&F&&XJ(this.Kp,"avw");k.wl>0&&XJ(this.Kp,
"pv");ti(this,this.Rz().U.Y,!0)&&XJ(this.Kp,"gdr");KV(this.Rz().L,1)>=2E3&&XJ(this.Kp,"pmx");this.vR&&XJ(this.Kp,"tvoff")};
g.A.RP=function(){return new Nl};
g.A.Rz=function(){return this.pX};
g.A.kU=function(){return new Dr6};
g.A.j7=function(F,k,z,x){F=iR.prototype.j7.call(this,F,k,z,x===void 0?-1:x);F.fullscreen=this.zJ;F.paused=this.bK();F.volume=z.volume;U0(F.volume)||(this.UH++,k=this.yL,U0(k.volume)&&(F.volume=k.volume));z=z.currentTime;F.mediaTime=z!==void 0&&z>=0?z:-1;return F};
g.A.V4=function(F){return Zt(),this.zJ?1:iR.prototype.V4.call(this,F)};
g.A.q9=function(){return 1};
g.A.getDuration=function(){return this.U};
g.A.rU=function(){return this.Vl?2:mrR(this)?5:this.R9()?4:3};
g.A.eN=function(){return this.dH?this.Rz().W.U>=2E3?4:3:2};
g.A.CB=function(F){this.M5&&this.M5.CB(F)};var RVA=g.op();IEa.prototype.reset=function(){this.Y=[];this.L=[]};
var V_=c8(IEa);g.T(am,J9);g.A=am.prototype;g.A.getName=function(){return(this.L?this.L:this.Y).getName()};
g.A.F7=function(){return(this.L?this.L:this.Y).F7()};
g.A.yd=function(){return(this.L?this.L:this.Y).yd()};
g.A.init=function(F){var k=!1;(0,g.XN)(this.U,function(z){z.initialize()&&(k=!0)});
k&&(this.j=F,SU(this.Y,this));return k};
g.A.dispose=function(){(0,g.XN)(this.U,function(F){F.dispose()});
J9.prototype.dispose.call(this)};
g.A.N7=function(){return t9(this.U,function(F){return F.QJ()})};
g.A.Ph=function(){return t9(this.U,function(F){return F.QJ()})};
g.A.rD=function(F,k,z){return new Q_(F,this.Y,k,z)};
g.A.zC=function(F){this.L=F.L};var gDD={threshold:[0,.3,.5,.75,1]};g.T(Sr,Q_);g.A=Sr.prototype;g.A.observe=function(){var F=this;this.PR||(this.PR=fc());if(jWn(298,function(){return YFH(F)}))return!0;
this.L.YR("msf");return!1};
g.A.unobserve=function(){if(this.j&&this.element)try{this.j.unobserve(this.element),this.B?(this.B.unobserve(this.element),this.B=null):this.G&&(this.G.disconnect(),this.G=null)}catch(F){}};
g.A.uW=function(){var F=bR(this);F.length>0&&dC(this,F);Q_.prototype.uW.call(this)};
g.A.Fr=function(){};
g.A.k6=function(){return!1};
g.A.mU=function(){};
g.A.F7=function(){var F={};return Object.assign(this.L.F7(),(F.niot_obs=this.PR,F.niot_cbk=this.Qh,F))};
g.A.getName=function(){return"nio"};g.T(Ji,J9);Ji.prototype.getName=function(){return"nio"};
Ji.prototype.Ph=function(){return!Zt().L&&this.Y.Y.U.IntersectionObserver!=null};
Ji.prototype.rD=function(F,k,z){return new Sr(F,this.Y,k,z)};g.T(y_,aY);y_.prototype.s4=function(){return Zt().Y};
y_.prototype.QJ=function(){var F=MKR();this.B!==F&&(this.Y!=this&&F>this.Y.B&&(this.Y=this,bU(this)),this.B=F);return F==2};Rm.prototype.sample=function(){nT(this,Im(),!1)};
Rm.prototype.j=function(){var F=IY(),k=fc();F?(W8||(Fr=k,g.XN(V_.Y,function(z){var x=z.Rz();x.J4=uR(x,k,z.sT!=1)})),W8=!0):(this.G=FGD(this,k),W8=!1,BlM=k,g.XN(V_.Y,function(z){z.uH&&(z.Rz().B=k)}));
nT(this,Im(),!F)};
var gC=c8(Rm);var okY=null,wY="",uV=!1;var icI=x2C().gV,LT=x2C().yV;var j6D={rot:"visible",I$K:"audible",oqQ:"time",lmk:"timetype"},erM={visible:function(F){return/^(100|[0-9]{1,2})$/.test(F)},
audible:function(F){return F=="0"||F=="1"},
timetype:function(F){return F=="mtos"||F=="tos"},
time:function(F){return/^(100|[0-9]{1,2})%$/.test(F)||/^([0-9])+ms$/.test(F)}};
$2n.prototype.setTime=function(F,k,z){k=="ms"?(this.U=F,this.j=-1):(this.U=-1,this.j=F);this.W=z===void 0?"tos":z;return this};g.T(FR,wC);FR.prototype.getId=function(){return this.G};
FR.prototype.S=function(){return!0};
FR.prototype.Y=function(F){var k=F.Rz(),z=F.getDuration();return t9(this.B,function(x){if(x.Y!=void 0)var D=AWx(x,k);else b:{switch(x.W){case "mtos":D=x.L?k.W.U:k.U.Y;break b;case "tos":D=x.L?k.W.Y:k.U.Y;break b}D=0}D==0?x=!1:(x=x.U!=-1?x.U:z!==void 0&&z>0?x.j*z:-1,x=x!=-1&&D>=x);return x})};g.T(k2,C8p);k2.prototype.Y=function(F){var k=new eOI;k.Y=Eg(F,bC$);k.L=Eg(F,JDC);return k};g.T(oC,wC);oC.prototype.Y=function(F){return mrR(F)};g.T(zr,qF9);g.T(x2,wC);x2.prototype.Y=function(F){return F.Rz().R9()};g.T(iV,TA);iV.prototype.Y=function(F){var k=g.fC(this.G,AW(H8().zD,"ovms"));return!F.Vl&&(F.sT!=0||k)};g.T(Dv,zr);Dv.prototype.L=function(){return new iV(this.Y)};
Dv.prototype.U=function(){return[new x2("viewable_impression",this.Y),new oC(this.Y)]};g.T($2,hi);$2.prototype.j=function(){var F=g.yR("ima.admob.getViewability"),k=AW(this.zD,"queryid");typeof F==="function"&&k&&F(k)};
$2.prototype.getName=function(){return"gsv"};g.T(ju,J9);ju.prototype.getName=function(){return"gsv"};
ju.prototype.Ph=function(){var F=Zt();H8();return F.L&&!1};
ju.prototype.rD=function(F,k,z){return new $2(this.Y,k,z)};g.T(eu,hi);eu.prototype.j=function(){var F=this,k=g.yR("ima.bridge.getNativeViewability"),z=AW(this.zD,"queryid");typeof k==="function"&&z&&k(z,function(x){g.SI(x)&&F.G++;var D=x.opt_nativeViewVisibleBounds||{},e=x.opt_nativeViewHidden;F.Y=QWa(x.opt_nativeViewBounds||{});var C=F.L.j;C.Y=e?yDC.clone():QWa(D);F.timestamp=x.opt_nativeTime||-1;Zt().Y=C.Y;x=x.opt_nativeVolume;x!==void 0&&(C.volume=x)})};
eu.prototype.getName=function(){return"nis"};g.T(CS,J9);CS.prototype.getName=function(){return"nis"};
CS.prototype.Ph=function(){var F=Zt();H8();return F.L&&!1};
CS.prototype.rD=function(F,k,z){return new eu(this.Y,k,z)};g.T(AC,aY);g.A=AC.prototype;g.A.QJ=function(){return this.L.Gf!=null};
g.A.Rv=function(){var F={};this.yh&&(F.mraid=this.yh);this.t4&&(F.mlc=1);F.mtop=this.L.V5f;this.G&&(F.mse=this.G);this.cR&&(F.msc=1);F.mcp=this.L.compatibility;return F};
g.A.y$=function(F){var k=g.v6.apply(1,arguments);try{return this.L.Gf[F].apply(this.L.Gf,k)}catch(z){Lc(538,z,.01,function(x){x.method=F})}};
g.A.initialize=function(){var F=this;if(this.isInitialized)return!this.R_();this.isInitialized=!0;if(this.L.compatibility===2)return this.G="ng",this.YR("w"),!1;if(this.L.compatibility===1)return this.G="mm",this.YR("w"),!1;Zt().B=!0;this.U.document.readyState&&this.U.document.readyState=="complete"?qQR(this):om(this.U,"load",function(){OQ().setTimeout(M2(292,function(){return qQR(F)}),100)},292);
return!0};
g.A.f7=function(){var F=Zt(),k=THM(this,"getMaxSize");F.Y=new oY(0,k.width,k.height,0)};
g.A.Ha=function(){Zt().j=THM(this,"getScreenSize")};
g.A.dispose=function(){umk(this);aY.prototype.dispose.call(this)};var gVx=new function(F,k){this.key=F;this.defaultValue=k===void 0?!1:k;this.valueType="boolean"}("45378663");g.A=EX.prototype;g.A.K3=function(F){D5(F,!1);bfD(F)};
g.A.pH=function(){};
g.A.yC=function(F,k,z,x){var D=this;F=new rC(uQ,F,z?k:-1,7,this.wW(),this.wT());F.EF=x;X46(F.zD);Cc(F.zD,"queryid",F.EF);F.Zc("");zOC(F,function(){return D.a7.apply(D,g.r(g.v6.apply(0,arguments)))},function(){return D.nGp.apply(D,g.r(g.v6.apply(0,arguments)))});
(x=c8(HK).Y)&&Wmn(F,x);this.U&&(F.CB(this.U),this.U=null);F.xZ.MI&&c8(L$Y);return F};
g.A.jJ=function(F){switch(F.yd()){case 0:if(F=c8(HK).Y)F=F.Y,g.FN(F.W,this),F.K&&this.g2()&&Unx(F);Nd();break;case 2:Ym()}};
g.A.zC=function(){};
g.A.g2=function(){return!1};
g.A.nGp=function(F,k){F.Vl=!0;switch(F.q9()){case 1:BHx(F,k);break;case 2:this.Ye(F)}};
g.A.fQf=function(F){var k=F.G(F);k&&(k=k.volume,F.dH=U0(k)&&k>0);Q4I(F,0);return vK(F,"start",IY())};
g.A.zE=function(F,k,z){nT(gC,[F],!IY());return this.AS(F,k,z)};
g.A.AS=function(F,k,z){return vK(F,z,IY())};
g.A.G4p=function(F){return Q9(F,"firstquartile",1)};
g.A.R__=function(F){F.NJ=!0;return Q9(F,"midpoint",2)};
g.A.Ha$=function(F){return Q9(F,"thirdquartile",3)};
g.A.xJ4=function(F){var k=Q9(F,"complete",4);BK(F);return k};
g.A.VkK=function(F){F.sT=3;return vK(F,"error",IY())};
g.A.rk=function(F,k,z){k=IY();if(F.bK()&&!k){var x=F.Rz(),D=fc();x.B=D}nT(gC,[F],!k);F.bK()&&(F.sT=1);return vK(F,z,k)};
g.A.A4$=function(F,k){k=this.zE(F,k||{},"skip");BK(F);return k};
g.A.J4t=function(F,k){D5(F,!0);return this.zE(F,k||{},"fullscreen")};
g.A.IQQ=function(F,k){D5(F,!1);return this.zE(F,k||{},"exitfullscreen")};
g.A.AZ=function(F,k,z){k=F.Rz();var x=fc();k.J4=uR(k,x,F.sT!=1);nT(gC,[F],!IY());F.sT==1&&(F.sT=2);return vK(F,z,IY())};
g.A.qKK=function(F){nT(gC,[F],!IY());return F.L()};
g.A.WK=function(F){nT(gC,[F],!IY());this.Mj(F);BK(F);return F.L()};
g.A.a7=function(){};
g.A.Ye=function(){};
g.A.Mj=function(){};
g.A.wZ=function(){};
g.A.ue=function(){};
g.A.wT=function(){this.Y||(this.Y=this.ue());return this.Y==null?new lR:new Dv(this.Y)};
g.A.wW=function(){return new k2};g.T(hC,wC);hC.prototype.Y=function(F){return F.eN()==4};g.T(sX,TA);sX.prototype.Y=function(F){F=F.eN();return F==3||F==4};g.T(rY,zr);rY.prototype.L=function(){return new sX(this.Y)};
rY.prototype.U=function(){return[new hC(this.Y)]};g.T(BN,C8p);BN.prototype.Y=function(F){F&&(F.e===28&&(F=Object.assign({},F,{avas:3})),F.vs===4||F.vs===5)&&(F=Object.assign({},F,{vs:3}));var k=new eOI;k.Y=Eg(F,d$A);k.L=Eg(F,JDC);return k};ZcI.prototype.L=function(){return g.yR(this.Y)};g.T(Gr,EX);g.A=Gr.prototype;g.A.pH=function(F,k){var z=this,x=c8(HK);if(x.Y!=null)switch(x.Y.getName()){case "nis":var D=Ocp(this,F,k);break;case "gsv":D=PQI(this,F,k);break;case "exc":D=V3R(this,F)}D||(k.opt_overlayAdElement?D=void 0:k.opt_adElement&&(D=U29(this,F,k.opt_adElement,k.opt_osdId)));D&&D.q9()==1&&(D.G==g.h1&&(D.G=function(e){return z.wZ(e)}),cWR(this,D,k));
return D};
g.A.wZ=function(F){F.L=0;F.mp=0;if(F.j=="h"||F.j=="n"){H8();F.u$&&(H8(),Tr(this)!="h"&&Tr(this));var k=g.yR("ima.common.getVideoMetadata");if(typeof k==="function")try{var z=k(F.EF)}catch(D){F.L|=4}else F.L|=2}else if(F.j=="b")if(k=g.yR("ytads.bulleit.getVideoMetadata"),typeof k==="function")try{z=k(F.EF)}catch(D){F.L|=4}else F.L|=2;else if(F.j=="ml")if(k=g.yR("ima.common.getVideoMetadata"),typeof k==="function")try{z=k(F.EF)}catch(D){F.L|=4}else F.L|=2;else F.L|=1;F.L||(z===void 0?F.L|=8:z===null?
F.L|=16:g.SI(z)?F.L|=32:z.errorCode!=null&&(F.mp=z.errorCode,F.L|=64));z==null&&(z={});k=z;F.B=0;for(var x in OCV)k[x]==null&&(F.B|=OCV[x]);t35(k,"currentTime");t35(k,"duration");U0(z.volume)&&U0()&&(z.volume*=NaN);return z};
g.A.ue=function(){H8();Tr(this)!="h"&&Tr(this);var F=IOC(this);return F!=null?new ZcI(F):null};
g.A.Ye=function(F){!F.Y&&F.Vl&&lV(this,F,"overlay_unmeasurable_impression")&&(F.Y=!0)};
g.A.Mj=function(F){F.Rr&&(F.R9()?lV(this,F,"overlay_viewable_end_of_session_impression"):lV(this,F,"overlay_unviewable_impression"),F.Rr=!1)};
g.A.a7=function(){};
g.A.yC=function(F,k,z,x){if(Yz9()){var D=AW(H8().zD,"mm"),e={};(D=(e[a6.PS]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",e[a6.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",e)[D])&&bcn(this,D);this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&Lc(1044,Error())}F=EX.prototype.yC.call(this,F,k,z,x);this.W&&(k=this.S,F.W==null&&(F.W=new xrk),k.Y[F.EF]=F.W,F.W.W=RVA);return F};
g.A.K3=function(F){F&&F.q9()==1&&this.W&&delete this.S.Y[F.EF];return EX.prototype.K3.call(this,F)};
g.A.wT=function(){this.Y||(this.Y=this.ue());return this.Y==null?new lR:this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new rY(this.Y):new Dv(this.Y)};
g.A.wW=function(){return this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new BN:new k2};
g.A.CB=function(F,k,z,x,D){k=new oY(z,k+x,z+D,k);(F=Og(V_,F))?F.CB(k):this.U=k};
var gG9=nc(193,JW9,void 0,Gyk);g.dI("Goog_AdSense_Lidar_sendVastEvent",gG9);var Y$p=M2(194,function(F,k){k=k===void 0?{}:k;F=SQa(c8(Gr),F,k);return d2x(F)});
g.dI("Goog_AdSense_Lidar_getViewability",Y$p);var nGA=nc(195,function(){return bw5()});
g.dI("Goog_AdSense_Lidar_getUrlSignalsArray",nGA);var MCt=M2(196,function(){return JSON.stringify(bw5())});
g.dI("Goog_AdSense_Lidar_getUrlSignalsList",MCt);var yWa=(new Date("2024-01-01T00:00:00Z")).getTime();var YQR=q9(["//web.archive.org/web/20250411103644/https://ep2.adtrafficquality.google/sodar/",""]),nkI=q9(["//web.archive.org/web/20250411103644/https://tpc.googlesyndication.com/sodar/",""]);g.T(vN,g.S);vN.prototype.Tm=function(){return this.wpc.f()};
vN.prototype.fP=function(F){this.wpc.c(F)};
vN.prototype.BT=function(F){return this.wpc.m(KGk(F))};
vN.prototype.uB=function(F){return this.wpc.mws(KGk(F))};
g.T(tC,g.S);tC.prototype.snapshot=function(F){return this.d9.s(Object.assign({},F.vl&&{c:F.vl},F.Ma&&{s:F.Ma},F.ke!==void 0&&{p:F.ke}))};
tC.prototype.Cx=function(F){this.d9.e(F)};
tC.prototype.rg=function(){return this.d9.l()};var LbC=(new Date).getTime();var kO9="://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(" "),oQY=/\bocr\b/;var xOn=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var urR=Object.assign({},{attributes:{},handleError:function(F){throw F;}},{EyG:!0,
XCp:!0,T2t:rn$,eBa:BIn,Qn:!1,Out:!1,jVQ:!1,moU:!0,iyJ:!1});var OX=null,Su=!1,q0p=1,EQa=Symbol("SIGNAL"),AN={version:0,hsK:0,hg:!1,x9:void 0,aM:void 0,XG:void 0,PP:0,Z_:void 0,Pv:void 0,J7:!1,RA:!1,kind:"unknown",Gv:function(){return!1},
Je:function(){},
qY:function(){},
avR:function(){}};var pr=Symbol("UNSET"),Ed=Symbol("COMPUTING"),Xu=Symbol("ERRORED");Object.assign({},AN,{value:pr,hg:!0,error:null,sy:PN,kind:"computed",Gv:function(F){return F.value===pr||F.value===Ed},
Je:function(F){if(F.value===Ed)throw Error("Detected cycle in computations.");var k=F.value;F.value=Ed;var z=$O6(F),x=!1;try{var D=F.tM();V9(null);x=k!==pr&&k!==Xu&&D!==Xu&&F.sy(k,D)}catch(e){D=Xu,F.error=e}finally{jYM(F,z)}x?F.value=k:(F.value=D,F.version++)}});var pSn=Object.assign({},AN,{sy:PN,value:void 0,kind:"signal"});Object.assign({},AN,{value:pr,hg:!0,error:null,sy:PN,kind:"linkedSignal",Gv:function(F){return F.value===pr||F.value===Ed},
Je:function(F){if(F.value===Ed)throw Error("Detected cycle in computations.");var k=F.value;F.value=Ed;var z=$O6(F);try{var x=F.source();var D=F.tM(x,k===pr||k===Xu?void 0:{source:F.qzf,value:k});F.qzf=x}catch(e){D=Xu,F.error=e}finally{jYM(F,z)}k!==pr&&D!==Xu&&F.sy(k,D)?F.value=k:(F.value=D,F.version++)}});Object.assign({},AN,{RA:!0,J7:!1,qY:function(F){F.schedule!==null&&F.schedule(F.wnG)},
D6$:!1,YIQ:function(){}});var wSH=Symbol("updater");g.T(y9,g.A1);y9.prototype.dispose=function(){window.removeEventListener("offline",this.U);window.removeEventListener("online",this.U);this.xq.o6(this.W);delete y9.instance};
y9.prototype.bG=function(){return this.Y};
y9.prototype.Ib=function(){var F=this;this.W=this.xq.Oi(function(){var k;return g.O(function(z){if(z.Y==1)return F.Y?((k=window.navigator)==null?0:k.onLine)?z.Sk(3):g.c(z,JC(F),3):g.c(z,JC(F),3);F.Ib();g.Tp(z)})},3E4)};gY.prototype.set=function(F,k){k=k===void 0?!0:k;0<=F&&F<52&&Number.isInteger(F)&&this.data[F]!==k&&(this.data[F]=k,this.Y=-1)};
gY.prototype.get=function(F){return!!this.data[F]};var nS;g.xG(g.fS,g.S);g.A=g.fS.prototype;g.A.start=function(){this.stop();this.j=!1;var F=QYa(this),k=hiI(this);F&&!k&&this.L.mozRequestAnimationFrame?(this.Y=g.zh(this.L,"MozBeforePaint",this.U),this.L.mozRequestAnimationFrame(null),this.j=!0):this.Y=F&&k?F.call(this.L,this.U):this.L.setTimeout(Rnn(this.U),20)};
g.A.stop=function(){if(this.isActive()){var F=QYa(this),k=hiI(this);F&&!k&&this.L.mozRequestAnimationFrame?j8(this.Y):F&&k?k.call(this.L,this.Y):this.L.clearTimeout(this.Y)}this.Y=null};
g.A.isActive=function(){return this.Y!=null};
g.A.Ko=function(){this.j&&this.Y&&j8(this.Y);this.Y=null;this.S.call(this.W,g.op())};
g.A.h4=function(){this.stop();g.fS.XA.h4.call(this)};g.xG(g.KS,g.S);g.A=g.KS.prototype;g.A.h0=0;g.A.h4=function(){g.KS.XA.h4.call(this);this.stop();delete this.Y;delete this.L};
g.A.start=function(F){this.stop();this.h0=g.aU(this.U,F!==void 0?F:this.UF)};
g.A.stop=function(){this.isActive()&&g.bD.clearTimeout(this.h0);this.h0=0};
g.A.isActive=function(){return this.h0!=0};
g.A.Ba=function(){this.h0=0;this.Y&&this.Y.call(this.L)};g.T(g.oR,g.S);g.A=g.oR.prototype;g.A.vu=function(F){this.U=arguments;this.Be||this.L?this.Y=!0:zl(this)};
g.A.stop=function(){this.Be&&(g.bD.clearTimeout(this.Be),this.Be=null,this.Y=!1,this.U=null)};
g.A.pause=function(){this.L++};
g.A.resume=function(){this.L--;this.L||!this.Y||this.Be||(this.Y=!1,zl(this))};
g.A.h4=function(){g.S.prototype.h4.call(this);this.stop()};g.xe.prototype[Symbol.iterator]=function(){return this};
g.xe.prototype.next=function(){var F=this.Y.next();return{value:F.done?void 0:this.L.call(void 0,F.value),done:F.done}};g.xG(g.qg,g.A1);g.A=g.qg.prototype;g.A.isPlaying=function(){return this.Y==1};
g.A.isPaused=function(){return this.Y==-1};
g.A.T3=function(){this.U0("begin")};
g.A.DA=function(){this.U0("end")};
g.A.onFinish=function(){this.U0("finish")};
g.A.onStop=function(){this.U0("stop")};
g.A.U0=function(F){this.dispatchEvent(F)};var LAl=sz(function(){var F=g.Ci("DIV"),k=g.DA?"-webkit":qO?"-moz":null,z="transition:opacity 1s linear;";k&&(z+=k+"-transition:opacity 1s linear;");k=Wsn({style:z});if(F.nodeType===1&&/^(script|style)$/i.test(F.tagName))throw Error("");F.innerHTML=nU(k);return g.NO(F.firstChild,"transition")!=""});g.xG(Ng,g.qg);g.A=Ng.prototype;g.A.play=function(){if(this.isPlaying())return!1;this.T3();this.U0("play");this.startTime=g.op();this.Y=1;if(LAl())return g.Xr(this.L,this.S),this.U=g.aU(this.hVU,void 0,this),!0;this.Ta(!1);return!1};
g.A.hVU=function(){g.rQ(this.L);BQC(this.L,this.G);g.Xr(this.L,this.j);this.U=g.aU((0,g.W6)(this.Ta,this,!1),this.W*1E3)};
g.A.stop=function(){this.isPlaying()&&this.Ta(!0)};
g.A.Ta=function(F){g.Xr(this.L,"transition","");g.bD.clearTimeout(this.U);g.Xr(this.L,this.j);this.endTime=g.op();this.Y=0;if(F)this.onStop();else this.onFinish();this.DA()};
g.A.h4=function(){this.stop();Ng.XA.h4.call(this)};
g.A.pause=function(){};var UOn={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};uT("Element","attributes")||uT("Node","attributes");uT("Element","innerHTML")||uT("HTMLElement","innerHTML");uT("Node","nodeName");uT("Node","nodeType");uT("Node","parentNode");uT("Node","childNodes");uT("HTMLElement","style")||uT("Element","style");uT("HTMLStyleElement","sheet");var OVD=ZVn("getPropertyValue"),VUn=ZVn("setProperty");uT("Element","namespaceURI")||uT("Node","namespaceURI");var PUn={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var S0C,NIn,atk,HVD,bV9;S0C=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]");NIn=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.fHt=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.mC=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]");atk=/^http:\/\/.*/;g.KA$=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");HVD=/\s+/;bV9=/[\d\u06f0-\u06f9]/;lT.prototype.Va=function(){return new Qu(this.L())};
lT.prototype[Symbol.iterator]=function(){return new hF(this.L())};
lT.prototype.Y=function(){return new hF(this.L())};
g.T(Qu,g.$m);Qu.prototype.next=function(){return this.L.next()};
Qu.prototype[Symbol.iterator]=function(){return new hF(this.L)};
Qu.prototype.Y=function(){return new hF(this.L)};
g.T(hF,lT);hF.prototype.next=function(){return this.U.next()};r6.prototype.clone=function(){return new r6(this.Y,this.G,this.U,this.W,this.j,this.S,this.L,this.B)};
r6.prototype.VZ=function(F){return this.Y==F.Y&&this.G==F.G&&this.U==F.U&&this.W==F.W&&this.j==F.j&&this.S==F.S&&this.L==F.L&&this.B==F.B};Gl.prototype.clone=function(){return new Gl(this.start,this.end)};
Gl.prototype.getLength=function(){return this.end-this.start};(function(){if(rfD){var F=/Windows NT ([0-9.]+)/;return(F=F.exec(g.ZH()))?F[1]:"0"}return $F?(F=/1[0|1][_.][0-9_.]+/,(F=F.exec(g.ZH()))?F[0].replace(/_/g,"."):"10"):g.xn?(F=/Android\s+([^\);]+)(\)|;)/,(F=F.exec(g.ZH()))?F[1]:""):tHY||Zkt||vYn?(F=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(F=F.exec(g.ZH()))?F[1].replace(/_/g,"."):""):""})();var J9p=function(){if(g.n3)return UW(/Firefox\/([0-9.]+)/);if(g.w6||g.o9||g.G9)return eVH;if(g.SD){if(Rp()||g9()){var F=UW(/CriOS\/([0-9.]+)/);if(F)return F}return UW(/Chrome\/([0-9.]+)/)}if(g.GX&&!Rp())return UW(/Version\/([0-9.]+)/);if(kn||ox){if(F=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.ZH()))return F[1]+"."+F[2]}else if(g.U5)return(F=UW(/Android\s+([0-9.]+)/))?F:UW(/Version\/([0-9.]+)/);return""}();g.xG(g.Ze,g.S);g.A=g.Ze.prototype;g.A.subscribe=function(F,k,z){var x=this.L[F];x||(x=this.L[F]=[]);var D=this.S;this.Y[D]=F;this.Y[D+1]=k;this.Y[D+2]=z;this.S=D+3;x.push(D);return D};
g.A.unsubscribe=function(F,k,z){if(F=this.L[F]){var x=this.Y;if(F=F.find(function(D){return x[D+1]==k&&x[D+2]==z}))return this.QL(F)}return!1};
g.A.QL=function(F){var k=this.Y[F];if(k){var z=this.L[k];this.j!=0?(this.U.push(F),this.Y[F+1]=function(){}):(z&&g.FN(z,F),delete this.Y[F],delete this.Y[F+1],delete this.Y[F+2])}return!!k};
g.A.publish=function(F,k){var z=this.L[F];if(z){var x=Array(arguments.length-1),D=arguments.length,e;for(e=1;e<D;e++)x[e-1]=arguments[e];if(this.G)for(e=0;e<z.length;e++)D=z[e],y9k(this.Y[D+1],this.Y[D+2],x);else{this.j++;try{for(e=0,D=z.length;e<D&&!this.z4();e++){var C=z[e];this.Y[C+1].apply(this.Y[C+2],x)}}finally{if(this.j--,this.U.length>0&&this.j==0)for(;z=this.U.pop();)this.QL(z)}}return e!=0}return!1};
g.A.clear=function(F){if(F){var k=this.L[F];k&&(k.forEach(this.QL,this),delete this.L[F])}else this.Y.length=0,this.L={}};
g.A.h4=function(){g.Ze.XA.h4.call(this);this.clear();this.U.length=0};g.vj.prototype.set=function(F,k){k===void 0?this.Y.remove(F):this.Y.set(F,g.J1(k))};
g.vj.prototype.get=function(F){try{var k=this.Y.get(F)}catch(z){return}if(k!==null)try{return JSON.parse(k)}catch(z){throw"Storage: Invalid value was encountered";}};
g.vj.prototype.remove=function(F){this.Y.remove(F)};g.xG(cj,g.vj);cj.prototype.set=function(F,k){cj.XA.set.call(this,F,gQC(k))};
cj.prototype.L=function(F){F=cj.XA.get.call(this,F);if(F===void 0||F instanceof Object)return F;throw"Storage: Invalid value was encountered";};
cj.prototype.get=function(F){if(F=this.L(F)){if(F=F.data,F===void 0)throw"Storage: Invalid value was encountered";}else F=void 0;return F};g.xG(Pj,cj);Pj.prototype.set=function(F,k,z){if(k=gQC(k)){if(z){if(z<g.op()){Pj.prototype.remove.call(this,F);return}k.expiration=z}k.creation=g.op()}Pj.XA.set.call(this,F,k)};
Pj.prototype.L=function(F,k){var z=Pj.XA.L.call(this,F);if(z)if(!k&&g.Y0H(z))Pj.prototype.remove.call(this,F);else return z};g.xG(g.OW,Pj);g.xG(Vu,nQC);Vu.prototype[Symbol.iterator]=function(){return g.sW(this.Va(!0)).Y()};
Vu.prototype.clear=function(){var F=Array.from(this);F=g.l(F);for(var k=F.next();!k.done;k=F.next())this.remove(k.value)};g.xG(IR,Vu);g.A=IR.prototype;g.A.isAvailable=function(){if(!MU9||this.L===null){var F=this.Y;if(F)try{performance.now();F.setItem("__sak","1");F.removeItem("__sak");performance.now();var k=!0}catch(z){k=z instanceof DOMException&&(z.name==="QuotaExceededError"||z.code===22||z.code===1014||z.name==="NS_ERROR_DOM_QUOTA_REACHED")&&F&&F.length!==0}else k=!1;this.L=k}return this.L};
g.A.set=function(F,k){Hj(this);try{this.Y.setItem(F,k)}catch(z){if(this.Y.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.A.get=function(F){Hj(this);F=this.Y.getItem(F);if(typeof F!=="string"&&F!==null)throw"Storage mechanism: Invalid value was encountered";return F};
g.A.remove=function(F){Hj(this);this.Y.removeItem(F)};
g.A.Va=function(F){Hj(this);var k=0,z=this.Y,x=new g.$m;x.next=function(){if(k>=z.length)return g.$L;var D=z.key(k++);if(F)return g.jr(D);D=z.getItem(D);if(typeof D!=="string")throw"Storage mechanism: Invalid value was encountered";return g.jr(D)};
return x};
g.A.clear=function(){Hj(this);this.Y.clear()};
g.A.key=function(F){Hj(this);return this.Y.key(F)};g.xG(aR,IR);g.xG(L8Y,IR);g.xG(Sd,Vu);Sd.prototype.set=function(F,k){this.L.set(this.Y+F,k)};
Sd.prototype.get=function(F){return this.L.get(this.Y+F)};
Sd.prototype.remove=function(F){this.L.remove(this.Y+F)};
Sd.prototype.Va=function(F){var k=this.L[Symbol.iterator](),z=this,x=new g.$m;x.next=function(){var D=k.next();if(D.done)return D;for(D=D.value;D.slice(0,z.Y.length)!=z.Y;){D=k.next();if(D.done)return D;D=D.value}return g.jr(F?D.slice(z.Y.length):z.L.get(D))};
return x};d6.prototype.getValue=function(){return this.L};
d6.prototype.clone=function(){return new d6(this.Y,this.L)};g.A=JF.prototype;g.A.ZT=function(F,k){var z=this.Y;z.push(new d6(F,k));F=z.length-1;k=this.Y;for(z=k[F];F>0;){var x=F-1>>1;if(k[x].Y>z.Y)k[F]=k[x],F=x;else break}k[F]=z};
g.A.remove=function(){var F=this.Y,k=F.length,z=F[0];if(!(k<=0)){if(k==1)F.length=0;else{F[0]=F.pop();F=0;k=this.Y;for(var x=k.length,D=k[F];F<x>>1;){var e=F*2+1,C=F*2+2;e=C<x&&k[C].Y<k[e].Y?C:e;if(k[e].Y>D.Y)break;k[F]=k[e];F=e}k[F]=D}return z.getValue()}};
g.A.OS=function(){for(var F=this.Y,k=[],z=F.length,x=0;x<z;x++)k.push(F[x].getValue());return k};
g.A.mD=function(){for(var F=this.Y,k=[],z=F.length,x=0;x<z;x++)k.push(F[x].Y);return k};
g.A.clone=function(){return new JF(this)};
g.A.isEmpty=function(){return this.Y.length===0};
g.A.clear=function(){this.Y.length=0};g.T(yu,JF);yu.prototype.enqueue=function(F,k){this.ZT(F,k)};RR.lG=void 0;RR.getInstance=function(){return RR.lG?RR.lG:RR.lG=new RR};
RR.prototype.Y=0;var g6={},WAt=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";g6.assign=function(F){for(var k=Array.prototype.slice.call(arguments,1);k.length;){var z=k.shift();if(z){if(typeof z!=="object")throw new TypeError(z+"must be non-object");for(var x in z)Object.prototype.hasOwnProperty.call(z,x)&&(F[x]=z[x])}}return F};
g6.uQ=function(F,k){if(F.length===k)return F;if(F.subarray)return F.subarray(0,k);F.length=k;return F};
var Fv7={Ps:function(F,k,z,x,D){if(k.subarray&&F.subarray)F.set(k.subarray(z,z+x),D);else for(var e=0;e<x;e++)F[D+e]=k[z+e]},
eR:function(F){var k,z;var x=z=0;for(k=F.length;x<k;x++)z+=F[x].length;var D=new Uint8Array(z);x=z=0;for(k=F.length;x<k;x++){var e=F[x];D.set(e,z);z+=e.length}return D}},k8$={Ps:function(F,k,z,x,D){for(var e=0;e<x;e++)F[D+e]=k[z+e]},
eR:function(F){return[].concat.apply([],F)}};
g6.yHt=function(){WAt?(g6.R4=Uint8Array,g6.Dv=Uint16Array,g6.SP=Int32Array,g6.assign(g6,Fv7)):(g6.R4=Array,g6.Dv=Array,g6.SP=Array,g6.assign(g6,k8$))};
g6.yHt();var or9=!0;try{new Uint8Array(1)}catch(F){or9=!1};var u1={};u1=function(F,k,z,x){var D=F&65535|0;F=F>>>16&65535|0;for(var e;z!==0;){e=z>2E3?2E3:z;z-=e;do D=D+k[x++]|0,F=F+D|0;while(--e);D%=65521;F%=65521}return D|F<<16|0};for(var wU={},qS,z5G=[],NS=0;NS<256;NS++){qS=NS;for(var xT9=0;xT9<8;xT9++)qS=qS&1?3988292384^qS>>>1:qS>>>1;z5G[NS]=qS}wU=function(F,k,z,x){z=x+z;for(F^=-1;x<z;x++)F=F>>>8^z5G[(F^k[x])&255];return F^-1};var jg={};jg={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 kc=[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],xc=[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],l5H=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],CRn=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],pX=Array(576);Ye(pX);var Er=Array(60);Ye(Er);var zs=Array(512);Ye(zs);var Fk=Array(256);Ye(Fk);var oA=Array(29);Ye(oA);var i1=Array(30);Ye(i1);var wKR,ml9,TCI,uJI=!1;var hU;hU=[new QM(0,0,0,0,function(F,k){var z=65535;for(z>F.Et-5&&(z=F.Et-5);;){if(F.DD<=1){m3(F);if(F.DD===0&&k===0)return 1;if(F.DD===0)break}F.Wj+=F.DD;F.DD=0;var x=F.qV+z;if(F.Wj===0||F.Wj>=x)if(F.DD=F.Wj-x,F.Wj=x,Xk(F,!1),F.Zj.Um===0)return 1;if(F.Wj-F.qV>=F.cM-262&&(Xk(F,!1),F.Zj.Um===0))return 1}F.ZT=0;if(k===4)return Xk(F,!0),F.Zj.Um===0?3:4;F.Wj>F.qV&&Xk(F,!1);return 1}),
new QM(4,4,8,4,Ts),new QM(4,5,16,8,Ts),new QM(4,6,32,32,Ts),new QM(4,4,16,16,l1),new QM(8,16,32,32,l1),new QM(8,16,128,128,l1),new QM(8,32,128,256,l1),new QM(32,128,258,1024,l1),new QM(32,258,258,4096,l1)];var NCk={};NCk=function(){this.input=null;this.c6=this.b0=this.ol=0;this.output=null;this.tV=this.Um=this.jp=0;this.msg="";this.state=null;this.Zx=2;this.ob=0};var Qma=Object.prototype.toString;
sr.prototype.push=function(F,k){var z=this.Zj,x=this.options.chunkSize;if(this.ended)return!1;var D=k===~~k?k:k===!0?4:0;typeof F==="string"?z.input=W8I(F):Qma.call(F)==="[object ArrayBuffer]"?z.input=new Uint8Array(F):z.input=F;z.ol=0;z.b0=z.input.length;do{z.Um===0&&(z.output=new g6.R4(x),z.jp=0,z.Um=x);F=qgC(z,D);if(F!==1&&F!==0)return this.DA(F),this.ended=!0,!1;if(z.Um===0||z.b0===0&&(D===4||D===2))if(this.options.Gc==="string"){var e=g6.uQ(z.output,z.jp);k=e;e=e.length;if(e<65537&&(k.subarray&&
or9||!k.subarray))k=String.fromCharCode.apply(null,g6.uQ(k,e));else{for(var C="",p=0;p<e;p++)C+=String.fromCharCode(k[p]);k=C}this.chunks.push(k)}else k=g6.uQ(z.output,z.jp),this.chunks.push(k)}while((z.b0>0||z.Um===0)&&F!==1);if(D===4)return(z=this.Zj)&&z.state?(x=z.state.status,x!==42&&x!==69&&x!==73&&x!==91&&x!==103&&x!==113&&x!==666?F=eg(z,-2):(z.state=null,F=x===113?eg(z,-3):0)):F=-2,this.DA(F),this.ended=!0,F===0;D===2&&(this.DA(0),z.Um=0);return!0};
sr.prototype.DA=function(F){F===0&&(this.result=this.options.Gc==="string"?this.chunks.join(""):g6.eR(this.chunks));this.chunks=[];this.err=F;this.msg=this.Zj.msg};var BI="@@redux/INIT"+rU(),Ul5="@@redux/REPLACE"+rU();var tr5=typeof Symbol==="function"&&Symbol.observable||"@@observable";var i8C=[0,pl$,-3,z4];g.T(tU,g$);tU.prototype.getType=function(){return QC(this,11)};var olC=function(){var F=[0,Xl$,EGp,W5,pl$,W5,-1,z4,pl$,z4,-1,Xl$,z4,EGp,Fu,i8C,W5,-1,z4];return function(k,z){var x={WV:!0};z&&Object.assign(x,z);k=G8x(k,void 0,void 0,x);try{var D=new tU;HY(D);var e=D.aS;pU(F)(e,k);var C=D}finally{k.free()}return C}}();var PRp=-1897548350;var RPn=new g.Z3("adInfoDialogEndpoint");var uwa=new g.Z3("adPingingEndpoint");var abn=new g.Z3("crossDeviceProgressCommand");var j7=new g.Z3("actionCompanionAdRenderer");var uv=new g.Z3("adActionInterstitialRenderer");var DTG=new g.Z3("adDurationRemainingRenderer");var d0=new g.Z3("adHoverTextButtonRenderer");var J6I=new g.Z3("adInfoDialogRenderer");var hk=new g.Z3("adMessageRenderer");var J8=new g.Z3("adPreviewRenderer");var CG=new g.Z3("adsEngagementPanelRenderer");var CZx=new g.Z3("dismissablePanelTextPortraitImageRenderer");var jdD=new g.Z3("adsEngagementPanelSectionListViewModel");var $Tt=new g.Z3("flyoutCtaRenderer");var e7=new g.Z3("imageCompanionAdRenderer");var qm=new g.Z3("instreamAdPlayerOverlayRenderer");var VWD=new g.Z3("instreamSurveyAdBackgroundImageRenderer");var bB=new g.Z3("instreamSurveyAdPlayerOverlayRenderer");var lB=new g.Z3("instreamSurveyAdRenderer"),S7=new g.Z3("instreamSurveyAdSingleSelectQuestionRenderer"),aO=new g.Z3("instreamSurveyAdMultiSelectQuestionRenderer"),ug=new g.Z3("instreamSurveyAdAnswerRenderer"),j2l=new g.Z3("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var mE=new g.Z3("instreamVideoAdRenderer");var e5p=new g.Z3("textOverlayAdContentRenderer"),Crt=new g.Z3("enhancedTextOverlayAdContentRenderer"),AOV=new g.Z3("imageOverlayAdContentRenderer");var Nm=new g.Z3("playerOverlayLayoutRenderer");var wu=new g.Z3("videoInterstitialButtonedCenteredLayoutRenderer");var qP9=new g.Z3("aboveFeedAdLayoutRenderer");var NxD=new g.Z3("belowPlayerAdLayoutRenderer");var XZD=new g.Z3("inPlayerAdLayoutRenderer");var vQ=new g.Z3("playerBytesAdLayoutRenderer");var HQ=new g.Z3("playerBytesSequenceItemAdLayoutRenderer");var IO=new g.Z3("playerUnderlayAdLayoutRenderer");var TJ=new g.Z3("adIntroRenderer");var uB=new g.Z3("playerBytesSequentialLayoutRenderer");var n_R=new g.Z3("slidingTextPlayerOverlayRenderer");var QS=new g.Z3("surveyTextInterstitialRenderer");var cQ=new g.Z3("videoAdTrackingRenderer");var pYl=new g.Z3("simpleAdBadgeRenderer");var XZ=new g.Z3("skipAdRenderer"),ErD=new g.Z3("skipButtonRenderer");var Y8=new g.Z3("adSlotRenderer");var Oj=new g.Z3("squeezebackPlayerSidePanelRenderer");var XYY=new g.Z3("timedPieCountdownRenderer");var dZ=new g.Z3("adAvatarViewModel");var JY=new g.Z3("adBadgeViewModel");var yv=new g.Z3("adButtonViewModel");var q7t=new g.Z3("adDetailsLineViewModel");var NN$=new g.Z3("adDisclosureBannerViewModel");var uNt=new g.Z3("adPodIndexViewModel");var wYl=new g.Z3("imageBackgroundViewModel");var mTp=new g.Z3("adGridCardCollectionViewModel");var TNp=new g.Z3("adGridCardTextViewModel");var lPp=new g.Z3("adPreviewViewModel");var Q2D=new g.Z3("playerAdAvatarLockupCardButtonedViewModel");var h5n=new g.Z3("skipAdButtonViewModel");var s2$=new g.Z3("skipAdViewModel");var rOY=new g.Z3("timedPieCountdownViewModel");var BNt=new g.Z3("visitAdvertiserLinkViewModel");var A8=new g.Z3("bannerImageLayoutViewModel");var pG=new g.Z3("topBannerImageTextIconButtonedLayoutViewModel");var Ej=new g.Z3("adsEngagementPanelLayoutViewModel");var VS=new g.Z3("displayUnderlayTextGridCardsLayoutViewModel");g.BP=new g.Z3("browseEndpoint");var G8Y=new g.Z3("confirmDialogEndpoint");var Eo9=new g.Z3("commandContext");var EnY=new g.Z3("rawColdConfigGroup");var pWa=new g.Z3("rawHotConfigGroup");g.r8=new g.Z3("commandExecutorCommand");g.T(I5Y,g$);var fGn={DmU:0,aKk:1,e0U:32,ova:61,Gzf:67,nvG:103,buh:86,SEK:42,WhR:60,h0R:62,z0J:73,gvK:76,x9h:88,Vi4:90,JSt:99,XZ$:98,IKG:100,ySf:102,R0J:41,qE$:69,AS$:70,fKJ:71,ku$:2,Zdt:27,ANDROID:3,tjk:54,ibk:14,yia:91,ERp:55,mB4:24,XM4:20,TIf:18,e1U:21,W3R:104,oRa:30,nRa:29,xBf:28,YEh:101,Vja:34,z1a:36,SFQ:38,IOS:5,uz$:15,r$$:92,MhU:40,CJ4:25,kRp:17,ZFa:19,DVJ:64,sO_:66,OFU:26,dEG:22,YS4:33,LlG:68,UEK:35,Kr4:53,v1p:37,pOJ:39,q04:7,AI_:57,fm$:43,N0p:59,HgR:93,bbR:74,wFR:75,B0h:85,u84:65,pF4:80,CKk:8,JI4:10,
Zg_:58,kfK:63,Mg_:72,l$k:23,wZU:11,BVk:13,LAR:12,R7k:16,TVf:56,lKt:31,M14:77,th_:84,cSG:87,E1h:89,iFk:94,V1k:95};g.T(vI,g$);vI.prototype.Jj=function(){return lt(this,3)};
vI.prototype.wh=function(){return lt(this,5)};
vI.prototype.iW=function(F){return r$(this,5,F)};g.T(cI,g$);g.T(HT6,g$);g.T(PI,g$);g.A=PI.prototype;g.A.getDeviceId=function(){return lt(this,6)};
g.A.Z2=function(F){var k=oK(this,9,Xs,3,!0);JO(k,F);return k[F]};
g.A.getPlayerType=function(){return QC(this,36)};
g.A.setHomeGroupInfo=function(F){return N6(this,HT6,81,F)};
g.A.clearLocationPlayabilityToken=function(){return Le(this,89)};g.T(Or,g$);Or.prototype.getValue=function(){return lt(this,pW(this,Cn9,2))};
var Cn9=[2,3,4,5,6];g.T(VM,g$);VM.prototype.setTrackingParams=function(F){return Le(this,1,ZCC(F,!1))};g.T(IA,g$);g.T(HI,g$);HI.prototype.Z2=function(F){var k=oK(this,5,q3,3,!0);JO(k,F);return k[F]};g.T(aA,g$);aA.prototype.getToken=function(){return mq(this,2)};
aA.prototype.setToken=function(F){return r$(this,2,F)};g.T(Sg,g$);Sg.prototype.setSafetyMode=function(F){return GS(this,5,F)};g.T(b1,g$);b1.prototype.u2=function(F){return N6(this,PI,1,F)};var RO=new g.Z3("thumbnailLandscapePortraitRenderer");g.UT$=new g.Z3("changeEngagementPanelVisibilityAction");var qaH=new g.Z3("continuationCommand");g.tSG=new g.Z3("openPopupAction");g.wJ=new g.Z3("webCommandMetadata");var B0R=new g.Z3("metadataBadgeRenderer");var XyH=new g.Z3("signalServiceEndpoint");var gF=new g.Z3("innertubeCommand");var o4n=new g.Z3("loggingDirectives");var hTn={NOG:"EMBEDDED_PLAYER_MODE_UNKNOWN",Aoa:"EMBEDDED_PLAYER_MODE_DEFAULT",HkU:"EMBEDDED_PLAYER_MODE_PFP",f_$:"EMBEDDED_PLAYER_MODE_PFL"};var WE9=new g.Z3("channelThumbnailEndpoint");var KEx=new g.Z3("embeddedPlayerErrorMessageRenderer");var n8Y=new g.Z3("embeddedPlayerOverlayVideoDetailsRenderer"),Fpx=new g.Z3("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),kWM=new g.Z3("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var hEn=new g.Z3("embedsInfoPanelRenderer");var Z8H=new g.Z3("feedbackEndpoint");var vrA=new g.Z3("callToActionButtonViewModel");var cO$=new g.Z3("interactionLoggingCommandMetadata");var mJp={m9$:"WEB_DISPLAY_MODE_UNKNOWN",FhJ:"WEB_DISPLAY_MODE_BROWSER",iu4:"WEB_DISPLAY_MODE_MINIMAL_UI",EvU:"WEB_DISPLAY_MODE_STANDALONE",tip:"WEB_DISPLAY_MODE_FULLSCREEN"};g.T(dU,g$);dU.prototype.getPlayerType=function(){return QC(this,7)};
dU.prototype.xP=function(){return lt(this,19)};
dU.prototype.setVideoId=function(F){return r$(this,19,F)};g.T(JU,g$);g.T(yM,g$);g.T(RA,g$);
var PrD=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516];var O8V=new g.Z3("loggingContext");g.T(gU,g$);g.T(Yc,g$);Yc.prototype.xP=function(){return mq(this,pW(this,m5,1))};
Yc.prototype.setVideoId=function(F){return CW(this,1,m5,rR(F))};
Yc.prototype.getPlaylistId=function(){return mq(this,pW(this,m5,2))};
var m5=[1,2];g.T(a5I,g$);var kJ=new g.Z3("changeKeyedMarkersVisibilityCommand");var VSY=new g.Z3("changeMarkersVisibilityCommand");var UZ5=new g.Z3("loadMarkersCommand");var IPG=new g.Z3("suggestedActionDataViewModel");var mIp=new g.Z3("timelyActionViewModel");var wXa=new g.Z3("timelyActionsOverlayViewModel");var h9Y=new g.Z3("productListItemRenderer");var H89=new g.Z3("shoppingOverlayRenderer");var M7k=new g.Z3("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var aPD=new g.Z3("adFeedbackEndpoint");var S7n=new g.Z3("menuEndpoint");var HQC=new g.Z3("phoneDialerEndpoint");var Von=new g.Z3("sendSmsEndpoint");var Yj6=new g.Z3("copyTextEndpoint");var b8t=new g.Z3("shareEndpoint"),dT7=new g.Z3("shareEntityEndpoint"),JO$=new g.Z3("shareEntityServiceEndpoint"),yOl=new g.Z3("webPlayerShareEntityServiceEndpoint");g.gt=new g.Z3("urlEndpoint");g.W3=new g.Z3("watchEndpoint");var R5n=new g.Z3("watchPlaylistEndpoint");g.grp=new g.Z3("offlineOrchestrationActionCommand");var DwH=new g.Z3("compositeVideoOverlayRenderer");var Y7$=new g.Z3("miniplayerRenderer");var REn=new g.Z3("paidContentOverlayRenderer");var nrp=new g.Z3("playerMutedAutoplayOverlayRenderer"),MSV=new g.Z3("playerMutedAutoplayEndScreenRenderer");var akI=new g.Z3("unserializedPlayerResponse"),LvV=new g.Z3("unserializedPlayerResponse");var fPV=new g.Z3("playlistEditEndpoint");var md;g.yS=new g.Z3("buttonRenderer");md=new g.Z3("toggleButtonRenderer");var $WM=new g.Z3("counterfactualRenderer");var Kv7=new g.Z3("resolveUrlCommandMetadata");var Wv9=new g.Z3("modifyChannelNotificationPreferenceEndpoint");var NFH=new g.Z3("pingingEndpoint");var FsY=new g.Z3("unsubscribeEndpoint");g.GC=new g.Z3("subscribeButtonRenderer");var kn9=new g.Z3("subscribeEndpoint");var NMH=new g.Z3("buttonViewModel");var eKa=new g.Z3("qrCodeRenderer");var WWI={gfR:"LIVING_ROOM_APP_MODE_UNSPECIFIED",eLf:"LIVING_ROOM_APP_MODE_MAIN",SSf:"LIVING_ROOM_APP_MODE_KIDS",Wla:"LIVING_ROOM_APP_MODE_MUSIC",cK_:"LIVING_ROOM_APP_MODE_UNPLUGGED",TnJ:"LIVING_ROOM_APP_MODE_GAMING"};var T0H=new g.Z3("autoplaySwitchButtonRenderer");var B3,C_M,gjM,lDD;B3=new g.Z3("decoratedPlayerBarRenderer");C_M=new g.Z3("chapteredPlayerBarRenderer");gjM=new g.Z3("multiMarkersPlayerBarRenderer");lDD=new g.Z3("chapterRenderer");g.Xs9=new g.Z3("markerRenderer");var oN$=new g.Z3("decoratedPlayheadRenderer");var sOa=new g.Z3("desktopOverlayConfigRenderer");var Ac6=new g.Z3("engagementPanelSectionListRenderer");var QOD=new g.Z3("gatedActionsOverlayViewModel");var wsn=new g.Z3("heatMarkerRenderer");var u8p=new g.Z3("heatmapRenderer");var GJ9=new g.Z3("watchToWatchTransitionRenderer");var LEI=new g.Z3("playlistPanelRenderer");var zu7=new g.Z3("productUpsellSuggestedActionViewModel");var x3t=new g.Z3("suggestedActionTimeRangeTrigger"),ie$=new g.Z3("suggestedActionsRenderer"),D3H=new g.Z3("suggestedActionRenderer");var mMn=new g.Z3("timedMarkerDecorationRenderer");var uo6=new g.Z3("cipher");var S9p=new g.Z3("playerVars");var $37=new g.Z3("playerVars");var T4=g.bD.window,jhV,euG,nX=(T4==null?void 0:(jhV=T4.yt)==null?void 0:jhV.config_)||(T4==null?void 0:(euG=T4.ytcfg)==null?void 0:euG.data_)||{};g.dI("yt.config_",nX);var Fe=[];var Mr9=/^[\w.]*$/,R49={q:!0,search_query:!0},yik=String(xT);var Xe=new function(){var F=window.document;this.Y=window;this.L=F};
g.dI("yt.ads_.signals_.getAdSignalsString",function(F){return iP(Nz(F))});g.op();var f5D="XMLHttpRequest"in g.bD?function(){return new XMLHttpRequest}:null;var CIl="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.r(CIl);var kr6={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"},o2R="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.r(CIl)),CV6=!1,Wba=zTR,$dY=UY;g.T(vp,N$);OY.prototype.then=function(F,k,z){return this.Y?this.Y.then(F,k,z):this.U===1&&F?(F=F.call(z,this.L))&&typeof F.then==="function"?F:IS(F):this.U===2&&k?(F=k.call(z,this.L))&&typeof F.then==="function"?F:VL(F):this};
OY.prototype.getValue=function(){return this.L};
OY.prototype.$goog_Thenable=!0;var Hp=!1;var k4=kn||ox;var lvC=/^([0-9\.]+):([0-9\.]+)$/;g.T(wa,N$);wa.prototype.name="BiscottiError";g.T(un,N$);un.prototype.name="BiscottiMissingError";var rCn={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},m9=null;var rlY=q9(["data-"]),OSC={};var All=0,T_=g.DA?"webkit":qO?"moz":g.w6?"ms":g.G9?"o":"",p97=g.yR("ytDomDomGetNextId")||function(){return++All};
g.dI("ytDomDomGetNextId",p97);var av6={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};BW.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
BW.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
BW.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var G_=g.bD.ytEventsEventsListeners||{};g.dI("ytEventsEventsListeners",G_);var ddn=g.bD.ytEventsEventsCounter||{count:0};g.dI("ytEventsEventsCounter",ddn);var g2R=sz(function(){var F=!1;try{var k=Object.defineProperty({},"passive",{get:function(){F=!0}});
window.addEventListener("test",null,k)}catch(z){}return F}),JCx=sz(function(){var F=!1;
try{var k=Object.defineProperty({},"capture",{get:function(){F=!0}});
window.addEventListener("test",null,k)}catch(z){}return F});var lg;lg=window;g.VE=lg.ytcsi&&lg.ytcsi.now?lg.ytcsi.now:lg.performance&&lg.performance.timing&&lg.performance.now&&lg.performance.timing.navigationStart?function(){return lg.performance.timing.navigationStart+lg.performance.now()}:function(){return(new Date).getTime()};g.xG(cW,g.S);cW.prototype.K=function(F){F.Y===void 0&&SXC(F);var k=F.Y;F.L===void 0&&SXC(F);this.Y=new g.sV(k,F.L)};
cW.prototype.X7=function(){return this.Y||new g.sV};
cW.prototype.Qh=function(){if(this.Y){var F=(0,g.VE)();if(this.j!=0){var k=this.S,z=this.Y,x=k.x-z.x;k=k.y-z.y;x=Math.sqrt(x*x+k*k)/(F-this.j);this.L[this.U]=Math.abs((x-this.W)/this.W)>.5?1:0;for(z=k=0;z<4;z++)k+=this.L[z]||0;k>=3&&this.G();this.W=x}this.j=F;this.S=this.Y;this.U=(this.U+1)%4}};
cW.prototype.h4=function(){g.QL(this.B);g.tx(this.PR)};g.T(PW,g.S);PW.prototype.N=function(F,k,z,x,D){z=g.oS((0,g.W6)(z,x||this.mY));z={target:F,name:k,callback:z};var e;D&&g2R()&&(e={passive:!0});F.addEventListener(k,z.callback,e);this.B.push(z);return z};
PW.prototype.er=function(F){for(var k=0;k<this.B.length;k++)if(this.B[k]==F){this.B.splice(k,1);F.target.removeEventListener(F.name,F.callback);break}};
PW.prototype.h4=function(){g.VB(this);g.S.prototype.h4.call(this)};Ix.prototype.clone=function(){var F=new Ix,k;for(k in this)if(this.hasOwnProperty(k)){var z=this[k];F[k]=gI(z)=="object"?g.Jg(z):z}return F};var T2I=["att/get"],noI=["embedded_player"],F5n=["account/get_setting_values"],EN7=["share/get_share_panel"],X9C=["share/get_web_player_share_panel"],qpp=["feedback"],NRH=["notification/modify_channel_preference"],Dep=["player"],usA=["browse/edit_playlist"],zoH=["account/set_setting"],w9n=["subscription/subscribe"],m3$=["subscription/unsubscribe"],Cpa=["next","unplugged/watch_next"];var ax;g.HW=sz(function(){try{var F=new aR;var k=F.isAvailable()?F:null}catch(z){return null}return k?new g.OW(k):null});
ax=sz(function(){var F=new L8Y;return F.isAvailable()?new g.OW(F):null});g.TRC=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.dI("yt.msgs_",g.TRC);Rx.prototype.a_=function(F,k){F={};var z=[];"USER_SESSION_ID"in nX&&z.push({key:"u",value:g.LX("USER_SESSION_ID")});if(z=d3R(z))F.Authorization=z,z=k=k==null?void 0:k.sessionIndex,z===void 0&&(z=Number(g.LX("SESSION_INDEX",0)),z=isNaN(z)?0:z),g.sY("voice_search_auth_header_removal")||(F["X-Goog-AuthUser"]=z.toString()),"INNERTUBE_HOST_OVERRIDE"in nX||(F["X-Origin"]=window.location.origin),k===void 0&&"DELEGATED_SESSION_ID"in nX&&(F["X-Goog-PageId"]=g.LX("DELEGATED_SESSION_ID"));return F};var TI={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Lu=g.yR("ytglobal.prefsUserPrefsPrefs_")||{};g.dI("ytglobal.prefsUserPrefsPrefs_",Lu);var Yn;g.A=K6x.prototype;g.A.get=function(F,k){WW(F);Ku(F);F=Lu[F]!==void 0?Lu[F].toString():null;return F!=null?F:k?k:""};
g.A.set=function(F,k){WW(F);Ku(F);if(k==null)throw Error("ExpectedNotNull");Lu[F]=k.toString()};
g.A.remove=function(F){WW(F);Ku(F);delete Lu[F]};
g.A.save=function(){var F=!0;g.sY("web_secure_pref_cookie_killswitch")&&(F=!1);g.Sl(this.Y,this.dump(),63072E3,this.L,F)};
g.A.clear=function(){g.gNI(Lu)};
g.A.dump=function(){var F=[],k;for(k in Lu)Lu.hasOwnProperty(k)&&F.push(k+"="+encodeURIComponent(String(Lu[k])));return F.join("&")};
g.A.parse=function(F){F=decodeURIComponent(F).split("&");for(var k=0;k<F.length;k++){var z=F[k].split("="),x=z[0];(z=z[1])&&(Lu[x]=z.toString())}};var klp={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},TUH={CONN_DEFAULT:0,CONN_UNKNOWN:1,CONN_NONE:2,CONN_WIFI:3,CONN_CELLULAR_2G:4,CONN_CELLULAR_3G:5,CONN_CELLULAR_4G:6,CONN_CELLULAR_UNKNOWN:7,CONN_DISCO:8,CONN_CELLULAR_5G:9,CONN_WIFI_METERED:10,CONN_CELLULAR_5G_SA:11,
CONN_CELLULAR_5G_NSA:12,CONN_WIRED:30,CONN_INVALID:31},l3Y={EFFECTIVE_CONNECTION_TYPE_UNKNOWN:0,EFFECTIVE_CONNECTION_TYPE_OFFLINE:1,EFFECTIVE_CONNECTION_TYPE_SLOW_2G:2,EFFECTIVE_CONNECTION_TYPE_2G:3,EFFECTIVE_CONNECTION_TYPE_3G:4,EFFECTIVE_CONNECTION_TYPE_4G:5},z6C={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.T(g.Fa,Error);zX.prototype.Oi=function(F,k){return xK(F,1,k)};
zX.prototype.KM=function(F){(F=this.Y.get(F))&&F()};g.yR("yt.scheduler.instance.timerIdMap_");g.T(D0,zX);D0.prototype.o6=function(F){if(F===void 0||!Number.isNaN(Number(F))){var k=g.yR("yt.scheduler.instance.cancelJob");k?k(F):g.lP(F)}};
D0.prototype.start=function(){var F=g.yR("yt.scheduler.instance.start");F&&F()};
D0.prototype.pause=function(){var F=g.yR("yt.scheduler.instance.pause");F&&F()};
g.RC=g.$K();CM.prototype.set=function(F,k,z,x){z=z||31104E3;this.remove(F);if(this.Y)try{this.Y.set(F,k,Date.now()+z*1E3);return}catch(e){}var D="";if(x)try{D=escape(g.J1(k))}catch(e){return}else D=escape(k);g.Sl(F,D,z,this.L)};
CM.prototype.get=function(F,k){var z=void 0,x=!this.Y;if(!x)try{z=this.Y.get(F)}catch(D){x=!0}if(x&&(z=g.bP(F))&&(z=unescape(z),k))try{z=JSON.parse(z)}catch(D){this.remove(F),z=void 0}return z};
CM.prototype.remove=function(F){this.Y&&this.Y.remove(F);g.dz(F,"/",this.L)};
CM.prototype.getCreationTime=function(F){return this.Y&&(F=(this.Y.L(F)||{}).creation,typeof F==="number")?F:null};var A6=function(){var F;return function(){F||(F=new CM("ytidb"));return F}}();var uM=[],Et,w3=!1;var Q3={},$g5=(Q3.AUTH_INVALID="No user identifier specified.",Q3.EXPLICIT_ABORT="Transaction was explicitly aborted.",Q3.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Q3.MISSING_INDEX="Index not created.",Q3.MISSING_OBJECT_STORES="Object stores not created.",Q3.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Q3.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Q3.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Q3.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Q3.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Q3.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Q3.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Q3),hN={},jR6=(hN.AUTH_INVALID="ERROR",hN.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",hN.EXPLICIT_ABORT="IGNORED",
hN.IDB_NOT_SUPPORTED="ERROR",hN.MISSING_INDEX="WARNING",hN.MISSING_OBJECT_STORES="ERROR",hN.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",hN.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",hN.QUOTA_EXCEEDED="WARNING",hN.QUOTA_MAYBE_EXCEEDED="WARNING",hN.UNKNOWN_ABORT="WARNING",hN.INCOMPATIBLE_DB_VERSION="WARNING",hN),sd={},e69=(sd.AUTH_INVALID=!1,sd.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,sd.EXPLICIT_ABORT=!1,sd.IDB_NOT_SUPPORTED=!1,sd.MISSING_INDEX=!1,sd.MISSING_OBJECT_STORES=!1,sd.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,sd.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,sd.QUOTA_EXCEEDED=!1,sd.QUOTA_MAYBE_EXCEEDED=!0,sd.UNKNOWN_ABORT=!0,sd.INCOMPATIBLE_DB_VERSION=!1,sd);g.T(g.h6,g.Fa);g.T(r3,g.h6);g.T(BA,Error);var CTC=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];g.vA.all=function(F){return new g.vA(new Z0(function(k,z){var x=[],D=F.length;D===0&&k(x);for(var e={XB:0};e.XB<F.length;e={XB:e.XB},++e.XB)g.vA.resolve(F[e.XB]).then(function(C){return function(p){x[C.XB]=p;D--;D===0&&k(x)}}(e)).catch(function(C){z(C)})}))};
g.vA.resolve=function(F){return new g.vA(new Z0(function(k,z){F instanceof g.vA?F.then(k,z):k(F)}))};
g.vA.reject=function(F){return new g.vA(new Z0(function(k,z){z(F)}))};
g.vA.prototype.then=function(F,k){var z=this,x=F!=null?F:pj6,D=k!=null?k:AF6;return new g.vA(new Z0(function(e,C){z.state.status==="PENDING"?(z.Y.push(function(){Een(z,z,x,e,C)}),z.L.push(function(){XjD(z,z,D,e,C)})):z.state.status==="FULFILLED"?Een(z,z,x,e,C):z.state.status==="REJECTED"&&XjD(z,z,D,e,C)}))};
g.vA.prototype.catch=function(F){return this.then(void 0,F)};g.A=T6M.prototype;g.A.add=function(F,k,z){return g.SB(this,[F],{mode:"readwrite",nN:!0},function(x){return x.objectStore(F).add(k,z)})};
g.A.clear=function(F){return g.SB(this,[F],{mode:"readwrite",nN:!0},function(k){return k.objectStore(F).clear()})};
g.A.close=function(){this.Y.close();var F;((F=this.options)==null?0:F.closed)&&this.options.closed()};
g.A.count=function(F,k){return g.SB(this,[F],{mode:"readonly",nN:!0},function(z){return z.objectStore(F).count(k)})};
g.A.delete=function(F,k){return g.SB(this,[F],{mode:"readwrite",nN:!0},function(z){return z.objectStore(F).delete(k)})};
g.A.get=function(F,k){return g.SB(this,[F],{mode:"readonly",nN:!0},function(z){return z.objectStore(F).get(k)})};
g.A.getAll=function(F,k,z){return g.SB(this,[F],{mode:"readonly",nN:!0},function(x){return x.objectStore(F).getAll(k,z)})};
g.A.objectStoreNames=function(){return Array.from(this.Y.objectStoreNames)};
g.A.getName=function(){return this.Y.name};
g.A=Iw.prototype;g.A.add=function(F,k){return PA(this.Y.add(F,k))};
g.A.autoIncrement=function(){return this.Y.autoIncrement};
g.A.clear=function(){return PA(this.Y.clear()).then(function(){})};
g.A.count=function(F){return PA(this.Y.count(F))};
g.A.delete=function(F){return F instanceof IDBKeyRange?sRH(this,F):PA(this.Y.delete(F))};
g.A.get=function(F){return PA(this.Y.get(F))};
g.A.getAll=function(F,k){return"getAll"in IDBObjectStore.prototype?PA(this.Y.getAll(F,k)):rFk(this,F,k)};
g.A.index=function(F){try{return new tdR(this.Y.index(F))}catch(k){if(k instanceof Error&&k.name==="NotFoundError")throw new BA(F,this.Y.name);throw k;}};
g.A.getName=function(){return this.Y.name};
g.A.keyPath=function(){return this.Y.keyPath};
J6.prototype.abort=function(){this.Y.abort();this.L=!0;throw new g.h6("EXPLICIT_ABORT");};
J6.prototype.objectStore=function(F){F=this.Y.objectStore(F);var k=this.U.get(F);k||(k=new Iw(F),this.U.set(F,k));return k};
g.A=tdR.prototype;g.A.count=function(F){return PA(this.Y.count(F))};
g.A.delete=function(F){return g.nM(this,{query:F},function(k){return k.delete().then(function(){return g.g3(k)})})};
g.A.get=function(F){return PA(this.Y.get(F))};
g.A.getAll=function(F,k){return"getAll"in IDBIndex.prototype?PA(this.Y.getAll(F,k)):Z6R(this,F,k)};
g.A.keyPath=function(){return this.Y.keyPath};
g.A.unique=function(){return this.Y.unique};
MA.prototype.delete=function(){return PA(this.cursor.delete()).then(function(){})};
MA.prototype.getValue=function(){return this.cursor.value};
MA.prototype.update=function(F){return PA(this.cursor.update(F))};fM.prototype.L=function(F,k,z){z=z===void 0?{}:z;return cF6(F,k,z)};
fM.prototype.delete=function(F){F=F===void 0?{}:F;return LM(this.name,F)};
fM.prototype.open=function(){function F(){var e,C,p,E,X,q,N,u,w,m;return g.O(function(h){switch(h.Y){case 1:return C=(e=Error().stack)!=null?e:"",g.lD(h,2),g.c(h,z.L(z.name,z.options.version,D),4);case 4:for(var B=p=h.L,U=z.options,v=[],P=g.l(Object.keys(U.C0)),I=P.next();!I.done;I=P.next()){I=I.value;var d=U.C0[I],W=d.w5p===void 0?Number.MAX_VALUE:d.w5p;!(B.Y.version>=d.Ot)||B.Y.version>=W||B.Y.objectStoreNames.contains(I)||v.push(I)}E=v;if(E.length===0){h.Sk(5);break}X=Object.keys(z.options.C0);
q=p.objectStoreNames();if(z.W<g.rz("ytidb_reopen_db_retries",0))return z.W++,p.close(),mg(new g.h6("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:z.name,expectedObjectStores:X,foundObjectStores:q})),h.return(F());if(!(z.j<g.rz("ytidb_remake_db_retries",1))){h.Sk(6);break}z.j++;return g.c(h,z.delete(),7);case 7:return mg(new g.h6("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:z.name,expectedObjectStores:X,foundObjectStores:q})),h.return(F());case 6:throw new r3(q,X);case 5:return h.return(p);case 2:N=
g.rI(h);if(N instanceof DOMException?N.name!=="VersionError":"DOMError"in self&&N instanceof DOMError?N.name!=="VersionError":!(N instanceof Object&&"message"in N)||N.message!=="An attempt was made to open a database using a lower version than the existing version."){h.Sk(8);break}return g.c(h,z.L(z.name,void 0,Object.assign({},D,{upgrade:void 0})),9);case 9:u=h.L;w=u.Y.version;if(z.options.version!==void 0&&w>z.options.version+1)throw u.close(),z.U=!1,PTD(z,w);return h.return(u);case 8:throw k(),
N instanceof Error&&!g.sY("ytidb_async_stack_killswitch")&&(N.stack=N.stack+"\n"+C.substring(C.indexOf("\n")+1)),Ut(N,z.name,"",(m=z.options.version)!=null?m:-1);}})}
function k(){z.Y===x&&(z.Y=void 0)}
var z=this;if(!this.U)throw PTD(this);if(this.Y)return this.Y;var x,D={blocking:function(e){e.close()},
closed:k,rH4:k,upgrade:this.options.upgrade};return this.Y=x=F()};var WA=new fM("YtIdbMeta",{C0:{databases:{Ot:1}},upgrade:function(F,k){k(1)&&g.HA(F,"databases",{keyPath:"actualName"})}});var x4,zI=new function(){}(new function(){});new g.Zd;g.T($4,fM);$4.prototype.L=function(F,k,z){z=z===void 0?{}:z;return(this.options.shared?JF6:dgC)(F,k,Object.assign({},z))};
$4.prototype.delete=function(F){F=F===void 0?{}:F;return(this.options.shared?YW5:yF6)(this.name,F)};var lTn={},MdR=g.jA("ytGcfConfig",{C0:(lTn.coldConfigStore={Ot:1},lTn.hotConfigStore={Ot:1},lTn),shared:!1,upgrade:function(F,k){k(1)&&(g.yE(g.HA(F,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.yE(g.HA(F,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});g.T(Cb,g.S);Cb.prototype.h4=function(){for(var F=g.l(this.L),k=F.next();!k.done;k=F.next()){var z=this.Y;k=z.indexOf(k.value);k>=0&&z.splice(k,1)}this.L.length=0;g.S.prototype.h4.call(this)};NK.prototype.iW=function(F){this.hotHashData=F;g.dI("yt.gcf.config.hotHashData",this.hotHashData||null)};var Qh$=typeof TextEncoder!=="undefined"?new TextEncoder:null,HXY=Qh$?function(F){return Qh$.encode(F)}:function(F){F=g.l7(F);
for(var k=new Uint8Array(F.length),z=0;z<k.length;z++)k[z]=F[z];return k};var n4k={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},LN5={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};la.prototype.Y9=function(){return{version:this.version,args:this.args}};Ql.prototype.toString=function(){return this.topic};var hu$=g.yR("ytPubsub2Pubsub2Instance")||new g.Ze;g.Ze.prototype.subscribe=g.Ze.prototype.subscribe;g.Ze.prototype.unsubscribeByKey=g.Ze.prototype.QL;g.Ze.prototype.publish=g.Ze.prototype.publish;g.Ze.prototype.clear=g.Ze.prototype.clear;g.dI("ytPubsub2Pubsub2Instance",hu$);var ZZ=g.yR("ytPubsub2Pubsub2SubscribedKeys")||{};g.dI("ytPubsub2Pubsub2SubscribedKeys",ZZ);var vy=g.yR("ytPubsub2Pubsub2TopicToKeys")||{};g.dI("ytPubsub2Pubsub2TopicToKeys",vy);var sAM=g.yR("ytPubsub2Pubsub2IsAsync")||{};
g.dI("ytPubsub2Pubsub2IsAsync",sAM);g.dI("ytPubsub2Pubsub2SkipSubKey",null);var Oa=void 0,Py=void 0;var OXY=g.rz("max_body_size_to_compress",5E5),Vg9=g.rz("min_body_size_to_compress",500),a9=!0,Jy=0,d4=0,a3C=g.rz("compression_performance_threshold_lr",250),Srn=g.rz("slow_compressions_before_abandon_count",4),I9=!1,Hy=new Map,SA=1,I3I=!0;g.A=R9.prototype;g.A.writeThenSend=function(F,k){var z=this;k=k===void 0?{}:k;if(yl(this)&&this.Y){var x={url:F,options:k,timestamp:this.now(),status:"NEW",sendCount:0};this.Oz.set(x,this.dR).then(function(D){x.id=D;z.V_.bG()&&z.Hf(x)}).catch(function(D){z.Hf(x);
g4(z,D)})}else this.sendFn(F,k)};
g.A.sendThenWrite=function(F,k,z){var x=this;k=k===void 0?{}:k;if(yl(this)&&this.Y){var D={url:F,options:k,timestamp:this.now(),status:"NEW",sendCount:0};this.Ca&&this.Ca("nwl_skip_retry")&&(D.skipRetry=z);if(this.V_.bG()||this.Ca&&this.Ca("nwl_aggressive_send_then_write")&&!D.skipRetry){if(!D.skipRetry){var e=k.onError?k.onError:function(){};
k.onError=function(C,p){return g.O(function(E){if(E.Y==1)return g.c(E,x.Oz.set(D,x.dR).catch(function(X){g4(x,X)}),2);
e(C,p);g.Tp(E)})}}this.sendFn(F,k,D.skipRetry)}else this.Oz.set(D,this.dR).catch(function(C){x.sendFn(F,k,D.skipRetry);
g4(x,C)})}else z=this.Ca&&this.Ca("nwl_skip_retry")&&z,this.sendFn(F,k,z)};
g.A.sendAndWrite=function(F,k){var z=this;k=k===void 0?{}:k;if(yl(this)&&this.Y){var x={url:F,options:k,timestamp:this.now(),status:"NEW",sendCount:0},D=!1,e=k.onSuccess?k.onSuccess:function(){};
x.options.onSuccess=function(C,p){x.id!==void 0?z.Oz.Ik(x.id,z.dR):D=!0;z.V_.yF&&z.Ca&&z.Ca("vss_network_hint")&&z.V_.yF(!0);e(C,p)};
this.sendFn(x.url,x.options,void 0,!0);this.Oz.set(x,this.dR).then(function(C){x.id=C;D&&z.Oz.Ik(x.id,z.dR)}).catch(function(C){g4(z,C)})}else this.sendFn(F,k,void 0,!0)};
g.A.eE=function(){var F=this;if(!yl(this))throw Error("IndexedDB is not supported: throttleSend");this.L||(this.L=this.xq.Oi(function(){var k;return g.O(function(z){if(z.Y==1)return g.c(z,F.Oz.Nv("NEW",F.dR),2);if(z.Y!=3)return k=z.L,k?g.c(z,F.Hf(k),3):(F.mz(),z.return());F.L&&(F.L=0,F.eE());g.Tp(z)})},this.O5))};
g.A.mz=function(){this.xq.o6(this.L);this.L=0};
g.A.Hf=function(F){var k=this,z;return g.O(function(x){switch(x.Y){case 1:if(!yl(k))throw Error("IndexedDB is not supported: immediateSend");if(F.id===void 0){x.Sk(2);break}return g.c(x,k.Oz.zlt(F.id,k.dR),3);case 3:(z=x.L)||k.hP(Error("The request cannot be found in the database."));case 2:if(k.lw(F,k.pK)){x.Sk(4);break}k.hP(Error("Networkless Logging: Stored logs request expired age limit"));if(F.id===void 0){x.Sk(5);break}return g.c(x,k.Oz.Ik(F.id,k.dR),5);case 5:return x.return();case 4:F.skipRetry||
(F=gck(k,F));if(!F){x.Sk(0);break}if(!F.skipRetry||F.id===void 0){x.Sk(8);break}return g.c(x,k.Oz.Ik(F.id,k.dR),8);case 8:k.sendFn(F.url,F.options,!!F.skipRetry),g.Tp(x)}})};
g.A.lw=function(F,k){F=F.timestamp;return this.now()-F>=k?!1:!0};
g.A.JW=function(){var F=this;if(!yl(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Oz.Nv("QUEUED",this.dR).then(function(k){k&&!F.lw(k,F.fK)?F.xq.Oi(function(){return g.O(function(z){if(z.Y==1)return k.id===void 0?z.Sk(2):g.c(z,F.Oz.hc(k.id,F.dR),2);F.JW();g.Tp(z)})}):F.V_.bG()&&F.eE()})};var Y4;var Nap={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515};var shl={},oTR=g.jA("ServiceWorkerLogsDatabase",{C0:(shl.SWHealthLog={Ot:1},shl),shared:!0,upgrade:function(F,k){k(1)&&g.yE(g.HA(F,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Lb={},jS6=0;var fb;Wy.prototype.requestComplete=function(F,k){k&&(this.L=!0);F=this.removeParams(F);this.Y.get(F)||this.Y.set(F,k)};
Wy.prototype.isEndpointCFR=function(F){F=this.removeParams(F);return(F=this.Y.get(F))?!1:F===!1&&this.L?!0:null};
Wy.prototype.removeParams=function(F){return F.split("?")[0]};
Wy.prototype.removeParams=Wy.prototype.removeParams;Wy.prototype.isEndpointCFR=Wy.prototype.isEndpointCFR;Wy.prototype.requestComplete=Wy.prototype.requestComplete;Wy.getInstance=FU;g.T(k3,g.A1);g.A=k3.prototype;g.A.bG=function(){return this.Y.bG()};
g.A.yF=function(F){this.Y.Y=F};
g.A.aQp=function(){var F=window.navigator.onLine;return F===void 0?!0:F};
g.A.DE=function(){this.L=!0};
g.A.listen=function(F,k){return this.Y.listen(F,k)};
g.A.wg=function(F){F=JC(this.Y,F);F.then(function(k){g.sY("use_cfr_monitor")&&FU().requestComplete("generate_204",k)});
return F};
k3.prototype.sendNetworkCheckRequest=k3.prototype.wg;k3.prototype.listen=k3.prototype.listen;k3.prototype.enableErrorFlushing=k3.prototype.DE;k3.prototype.getWindowStatus=k3.prototype.aQp;k3.prototype.networkStatusHint=k3.prototype.yF;k3.prototype.isNetworkAvailable=k3.prototype.bG;k3.getInstance=ABp;g.T(g.oj,g.A1);g.oj.prototype.bG=function(){var F=g.yR("yt.networkStatusManager.instance.isNetworkAvailable");return F?F.bind(this.L)():!0};
g.oj.prototype.yF=function(F){var k=g.yR("yt.networkStatusManager.instance.networkStatusHint").bind(this.L);k&&k(F)};
g.oj.prototype.wg=function(F){var k=this,z;return g.O(function(x){z=g.yR("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(k.L);return g.sY("skip_network_check_if_cfr")&&FU().isEndpointCFR("generate_204")?x.return(new Promise(function(D){var e;k.yF(((e=window.navigator)==null?void 0:e.onLine)||!0);D(k.bG())})):z?x.return(z(F)):x.return(!0)})};var zb;g.T(x3,R9);x3.prototype.writeThenSend=function(F,k){k||(k={});k=D1(F,k);g.ow()||(this.Y=!1);R9.prototype.writeThenSend.call(this,F,k)};
x3.prototype.sendThenWrite=function(F,k,z){k||(k={});k=D1(F,k);g.ow()||(this.Y=!1);R9.prototype.sendThenWrite.call(this,F,k,z)};
x3.prototype.sendAndWrite=function(F,k){k||(k={});k=D1(F,k);g.ow()||(this.Y=!1);R9.prototype.sendAndWrite.call(this,F,k)};
x3.prototype.awaitInitialization=function(){return this.U.promise};var NzI=g.bD.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.dI("ytNetworklessLoggingInitializationOptions",NzI);g.$3.prototype.isReady=function(){!this.config_&&pIY()&&(this.config_=g.w4());return!!this.config_};var rlG,CF,pF;rlG=g.bD.ytPubsubPubsubInstance||new g.Ze;CF=g.bD.ytPubsubPubsubSubscribedKeys||{};pF=g.bD.ytPubsubPubsubTopicToKeys||{};g.AP=g.bD.ytPubsubPubsubIsSynchronous||{};g.Ze.prototype.subscribe=g.Ze.prototype.subscribe;g.Ze.prototype.unsubscribeByKey=g.Ze.prototype.QL;g.Ze.prototype.publish=g.Ze.prototype.publish;g.Ze.prototype.clear=g.Ze.prototype.clear;g.dI("ytPubsubPubsubInstance",rlG);g.dI("ytPubsubPubsubTopicToKeys",pF);g.dI("ytPubsubPubsubIsSynchronous",g.AP);
g.dI("ytPubsubPubsubSubscribedKeys",CF);var QSD={};g.T(Bt,g.S);Bt.prototype.append=function(F){if(!this.L)throw Error("This does not support the append operation");F=F.T$();this.T$().appendChild(F)};
g.T(Gb,Bt);Gb.prototype.T$=function(){return this.Y};g.T(Ux,g.S);Ux.prototype.onTouchStart=function(F){this.G=!0;this.L=F.touches.length;this.Y.isActive()&&(this.Y.stop(),this.W=!0);F=F.touches;this.S=rBI(this,F)||F.length!=1;var k=F.item(0);this.S||!k?this.K=this.B=Infinity:(this.B=k.clientX,this.K=k.clientY);for(k=this.U.length=0;k<F.length;k++){var z=F.item(k);this.U.push(z.identifier)}};
Ux.prototype.onTouchMove=function(F){F=F.changedTouches.item(0);var k;if(k=Rp()){k=g.ZH();var z="";if(MH6())z=/Windows (?:NT|Phone) ([0-9.]+)/,z=(k=z.exec(k))?k[1]:"0.0";else if(Rp())z=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,z=(k=z.exec(k))&&k[1].replace(/_/g,".");else if(g9())z=/Mac OS X ([0-9_.]+)/,z=(k=z.exec(k))?k[1].replace(/_/g,"."):"10";else if(Bl(g.ZH(),"KaiOS"))z=/(?:KaiOS)\/(\S+)/i,z=(k=z.exec(k))&&k[1];else if(nY5())z=/Android\s+([^\);]+)(\)|;)/,z=(k=z.exec(k))&&k[1];else if(JD()?Pl.platform===
"Chrome OS":Vn("CrOS"))z=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,z=(k=z.exec(k))&&k[1];k=!(g.tD(z||"",8)>=0)}if(k||F&&Math.pow(F.clientX-this.B,2)+Math.pow(F.clientY-this.K,2)>25)this.j=!0};
Ux.prototype.onTouchEnd=function(F){var k=F.changedTouches;k&&this.G&&this.L==1&&!this.j&&!this.W&&!this.S&&rBI(this,k)&&(this.Qh=F,this.Y.start());this.L=F.touches.length;this.L===0&&(this.j=this.G=!1,this.U.length=0);this.W=!1};var tP=Date.now().toString();var Ox={};var be=Symbol("injectionDeps");Ij.prototype.toString=function(){return"InjectionToken("+this.name+")"};
UzD.prototype.resolve=function(F){return F instanceof Ht?dX(this,F.key,[],!0):dX(this,F,[])};var JP;var Rj=window;var MH=g.sY("web_enable_lifecycle_monitoring")&&gX()!==0,VlH=g.sY("web_enable_lifecycle_monitoring");cB9.prototype.cancel=function(){for(var F=g.l(this.Y),k=F.next();!k.done;k=F.next())k=k.value,k.jobId===void 0||k.PL||this.scheduler.o6(k.jobId),k.PL=!0;this.L.resolve()};g.A=LF.prototype;g.A.install=function(F){this.plugins.push(F);return this};
g.A.uninstall=function(){var F=this;g.v6.apply(0,arguments).forEach(function(k){k=F.plugins.indexOf(k);k>-1&&F.plugins.splice(k,1)})};
g.A.transition=function(F,k){var z=this;MH&&Zga(this.state);var x=this.transitions.find(function(e){return Array.isArray(e.from)?e.from.find(function(C){return C===z.state&&e.Gc===F}):e.from===z.state&&e.Gc===F});
if(x){this.L&&(PPM(this.L),this.L=void 0);ICx(this,F,k);this.state=F;MH&&Y3(this.state);x=x.action.bind(this);var D=this.plugins.filter(function(e){return e[F]}).map(function(e){return e[F]});
x(OgY(this,D),k)}else throw Error("no transition specified from "+this.state+" to "+F);};
g.A.sgK=function(F){var k=g.v6.apply(1,arguments);g.$K();for(var z=g.l(F),x=z.next(),D={};!x.done;D={tO:void 0},x=z.next())D.tO=x.value,i6x(function(e){return function(){KF(e.tO.name);Fw(function(){return e.tO.callback.apply(e.tO,g.r(k))});
Wt(e.tO.name)}}(D))};
g.A.D0t=function(F){var k=g.v6.apply(1,arguments),z,x,D,e;return g.O(function(C){C.Y==1&&(g.$K(),z=g.l(F),x=z.next(),D={});if(C.Y!=3){if(x.done)return C.Sk(0);D.BD=x.value;D.St=void 0;e=function(p){return function(){KF(p.BD.name);var E=Fw(function(){return p.BD.callback.apply(p.BD,g.r(k))});
ND(E)?p.St=g.sY("web_lifecycle_error_handling_killswitch")?E.then(function(){Wt(p.BD.name)}):E.then(function(){Wt(p.BD.name)},function(X){vT6(X);
Wt(p.BD.name)}):Wt(p.BD.name)}}(D);
i6x(e);return D.St?g.c(C,D.St,3):C.Sk(3)}D={BD:void 0,St:void 0};x=z.next();return C.Sk(2)})};
g.A.yT=function(F){var k=g.v6.apply(1,arguments),z=this,x=F.map(function(D){return{dj:function(){KF(D.name);Fw(function(){return D.callback.apply(D,g.r(k))});
Wt(D.name)},
priority:fF(z,D)}});
x.length&&(this.L=new cB9(x))};
g.An.Object.defineProperties(LF.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var os;g.T(kZ,LF);kZ.prototype.W=function(F,k){var z=this;this.Y=g.iM(0,function(){z.currentState==="application_navigating"&&z.transition("none")},5E3);
F(k==null?void 0:k.event)};
kZ.prototype.S=function(F,k){this.Y&&(g.RC.o6(this.Y),this.Y=null);F(k==null?void 0:k.event)};var GG=[];g.dI("yt.logging.transport.getScrapedGelPayloads",function(){return GG});zG.prototype.storePayload=function(F,k){F=xZ(F);this.store[F]?this.store[F].push(k):(this.L={},this.store[F]=[k]);this.Y++;g.sY("more_accurate_gel_parser")&&(k=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(k));return F};
zG.prototype.smartExtractMatchingEntries=function(F){if(!F.keys.length)return[];for(var k=DW(this,F.keys.splice(0,1)[0]),z=[],x=0;x<k.length;x++)this.store[k[x]]&&F.sizeLimit&&(this.store[k[x]].length<=F.sizeLimit?(z.push.apply(z,g.r(this.store[k[x]])),delete this.store[k[x]]):z.push.apply(z,g.r(this.store[k[x]].splice(0,F.sizeLimit))));this.Y-=z.length;(F==null?0:F.sizeLimit)&&z.length<(F==null?void 0:F.sizeLimit)&&(F.sizeLimit-=z.length,z.push.apply(z,g.r(this.smartExtractMatchingEntries(F))));
return z};
zG.prototype.extractMatchingEntries=function(F){F=DW(this,F);for(var k=[],z=0;z<F.length;z++)this.store[F[z]]&&(k.push.apply(k,g.r(this.store[F[z]])),delete this.store[F[z]]);this.Y-=k.length;return k};
zG.prototype.getSequenceCount=function(F){F=DW(this,F);for(var k=0,z=0;z<F.length;z++){var x=void 0;k+=((x=this.store[F[z]])==null?void 0:x.length)||0}return k};
zG.prototype.getSequenceCount=zG.prototype.getSequenceCount;zG.prototype.extractMatchingEntries=zG.prototype.extractMatchingEntries;zG.prototype.smartExtractMatchingEntries=zG.prototype.smartExtractMatchingEntries;zG.prototype.storePayload=zG.prototype.storePayload;var zpn=g.rz("initial_gel_batch_timeout",2E3),onI=g.rz("gel_queue_timeout_max_ms",6E4),x5I=g.rz("gel_min_batch_size",5),qE=void 0,qN6=new $Z,XWR=new $Z,k_n=new $Z,F9H=new $Z,ud,hV=!0,Bz=1,eb=new Map,ld=g.bD.ytLoggingTransportTokensToCttTargetIds_||{};g.dI("ytLoggingTransportTokensToCttTargetIds_",ld);var TG=g.bD.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.dI("ytLoggingTransportTokensToJspbCttTargetIds_",TG);var pd={},aCR=!1;var UK=g.bD.ytLoggingGelSequenceIdObj_||{};g.dI("ytLoggingGelSequenceIdObj_",UK);var MZM=[];var U56,rJ=g.bD.ytLoggingDocDocumentNonce_;rJ||(rJ=g.vt(16),g.dI("ytLoggingDocDocumentNonce_",rJ));U56=rJ;var rxY={yO:0,szp:1,ikR:2,YJ:3,yoa:4,Qpk:5,pzf:6,SHARE:7,Gya:8,Co4:9,OgG:10,Xxa:11,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH",10:"UNPLUGGED_BROWSE",11:"PICTURE_IN_PICTURE"};var wWR=1;g.A=ZW.prototype;g.A.getAsJson=function(){var F={};this.Y.trackingParams!==void 0?F.trackingParams=this.Y.trackingParams:(F.veType=this.Y.veType,this.Y.veCounter!==void 0&&(F.veCounter=this.Y.veCounter),this.Y.elementIndex!==void 0&&(F.elementIndex=this.Y.elementIndex));this.Y.dataElement!==void 0&&(F.dataElement=this.Y.dataElement.getAsJson());this.Y.youtubeData!==void 0&&(F.youtubeData=this.Y.youtubeData);this.Y.isCounterfactual&&(F.isCounterfactual=!0);return F};
g.A.getAsJspb=function(){var F=new VM;this.Y.trackingParams!==void 0?F.setTrackingParams(this.Y.trackingParams):(this.Y.veType!==void 0&&Le(F,2,Ep(this.Y.veType)),this.Y.veCounter!==void 0&&Le(F,6,Ep(this.Y.veCounter)),this.Y.elementIndex!==void 0&&Le(F,3,Ep(this.Y.elementIndex)),this.Y.isCounterfactual&&Le(F,5,Ce(!0)));if(this.Y.dataElement!==void 0){var k=this.Y.dataElement.getAsJspb();N6(F,VM,7,k)}this.Y.youtubeData!==void 0&&N6(F,I5Y,8,this.Y.jspbYoutubeData);return F};
g.A.toString=function(){return JSON.stringify(this.getAsJson())};
g.A.isClientVe=function(){return!this.Y.trackingParams&&!!this.Y.veType};
g.A.getLoggingDirectives=function(){return this.Y.loggingDirectives};g.dI("yt_logging_screen.getRootVeType",Qxa);g.dI("yt_logging_screen.getCurrentCsn",g.OK);g.dI("yt_logging_screen.getCttAuthInfo",VI);g.dI("yt_logging_screen.setCurrentScreen",tZa);var cxa="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Jxp=[{c_:function(F){return"Cannot read property '"+F.key+"'"},
kd:{Error:[{Kb:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Kb:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Kb:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Kb:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{Kb:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Kb:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Kb:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{c_:function(F){return"Cannot call '"+F.key+"'"},
kd:{TypeError:[{Kb:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Kb:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Kb:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Kb:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Kb:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]},
{Kb:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{c_:function(F){return F.key+" is not defined"},
kd:{ReferenceError:[{Kb:/(.*) is not defined/,groups:["key"]},{Kb:/Can't find variable: (.*)/,groups:["key"]}]}}];var Iu5={wM:[],PT:[{callback:PnM,weight:500}]};var Hz;var Rs=new g.Ze;var yxx=new Set,SND=0,YN6=0,gn6=0,d5C=[],buR=[],nnM=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var fuY=new g.Z3("parallelCommand");var Fgp=new g.Z3("performOnceCommand");var W96=new g.Z3("serialCommand");var YZ=void 0;var BR$=g.l(mOk({},"Z39Sdf"));BR$.next();BR$.next();var Gn$=g.l(mOk(null,"qqrkLd"));Gn$.next();Gn$.next();g.T(Ld,la);var hJk=new Ql("screen-created",Ld),eL=[],oK9=DAM,CJ=0,Kd=new Map,Wz=new Map,FH=new Map;g.xG(g.uG,g.S);g.A=g.uG.prototype;g.A.subscribe=function(F,k,z){return this.z4()?0:this.OF.subscribe(F,k,z)};
g.A.unsubscribe=function(F,k,z){return this.z4()?!1:this.OF.unsubscribe(F,k,z)};
g.A.QL=function(F){return this.z4()?!1:this.OF.QL(F)};
g.A.publish=function(F,k){return this.z4()?!1:this.OF.publish.apply(this.OF,arguments)};
g.A.Ij=function(F,k){for(var z in F)this.subscribe(z,F[z],k)};
g.A.M_=function(F,k){for(var z in F)this.unsubscribe(z,F[z],k)};var cGa=16/9,B$=[.25,.5,.75,1,1.25,1.5,1.75,2],U3C=B$.concat([3,4,5,6,7,8,9,10,15]),tiA=B$.concat([2.5,3,3.5,4]),Ze$=B$.concat([2.5,3]);var $Ak=1;g.T(g.mi,g.S);g.A=g.mi.prototype;
g.A.createElement=function(F,k){k=k||F.X==="svg";var z=F.J,x=F.WR;if(k){var D=document.createElementNS("http://www.w3.org/2000/svg",F.X);g.Fd&&(F.D||(F.D={}),F.D.focusable="false")}else D=g.Ci(F.X);if(z){if(z=Tm(this,D,"class",z))lG(this,D,"class",z),this.mY[z]=D}else if(x){z=g.l(x);for(var e=z.next();!e.done;e=z.next())this.mY[e.value]=D;lG(this,D,"class",x.join(" "))}x=F.jk;z=F.Z;if(x)k=Tm(this,D,"child",x),k!==void 0&&D.appendChild(g.As(k));else if(z)for(x=0,z=g.l(z),e=z.next();!e.done;e=z.next())if(e=
e.value)if(typeof e==="string")e=Tm(this,D,"child",e),e!=null&&D.appendChild(g.As(e));else if(e.element)D.appendChild(e.element);else{var C=e;e=this.createElement(C,k);D.appendChild(e);C.Qz&&(C=wt(),e.id=C,e=document.createElementNS("http://www.w3.org/2000/svg","use"),e.setAttribute("class","ytp-svg-shadow"),e.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+C),XE(D,e,x++))}if(F=F.D)for(k=D,x=g.l(Object.keys(F)),z=x.next();!z.done;z=x.next())z=z.value,e=F[z],lG(this,k,z,typeof e==="string"?
Tm(this,k,z,e):e);return D};
g.A.EK=function(F){return this.mY[F]};
g.A.T4=function(F,k){typeof k==="number"?XE(F,this.element,k):F.appendChild(this.element)};
g.A.detach=function(){g.q_(this.element)};
g.A.update=function(F){for(var k=g.l(Object.keys(F)),z=k.next();!z.done;z=k.next())z=z.value,this.updateValue(z,F[z])};
g.A.updateValue=function(F,k){(F=this.zM["{{"+F+"}}"])&&lG(this,F[0],F[1],k)};
g.A.h4=function(){this.mY={};this.zM={};this.detach();g.S.prototype.h4.call(this)};g.T(g.Y,g.mi);g.A=g.Y.prototype;g.A.r3=function(F,k){this.updateValue(k||"content",F)};
g.A.show=function(){this.Q2||(g.Xr(this.element,"display",""),this.Q2=!0)};
g.A.hide=function(){this.Q2&&(g.Xr(this.element,"display","none"),this.Q2=!1)};
g.A.Yj=function(F){F?this.show():this.hide()};
g.A.fN=function(F){this.W=F};
g.A.listen=function(F,k,z){return this.N(this.element,F,k,z)};
g.A.N=function(F,k,z,x){z=(0,g.W6)(z,x||this);x={target:F,type:k,listener:z};this.listeners.push(x);F.addEventListener(k,z);return x};
g.A.er=function(F){var k=this;this.listeners.forEach(function(z,x){z===F&&(z=k.listeners.splice(x,1)[0],z.target.removeEventListener(z.type,z.listener))})};
g.A.focus=function(){this.element.focus()};
g.A.h4=function(){for(;this.listeners.length;){var F=this.listeners.pop();F&&F.target.removeEventListener(F.type,F.listener)}g.mi.prototype.h4.call(this)};g.T(g.Q7,g.Y);g.Q7.prototype.subscribe=function(F,k,z){return this.J4.subscribe(F,k,z)};
g.Q7.prototype.unsubscribe=function(F,k,z){return this.J4.unsubscribe(F,k,z)};
g.Q7.prototype.QL=function(F){return this.J4.QL(F)};
g.Q7.prototype.publish=function(F){return this.J4.publish.apply(this.J4,[F].concat(g.r(g.v6.apply(1,arguments))))};var vNC=new WeakSet;g.T(hL,g.Q7);g.A=hL.prototype;g.A.bind=function(F){this.u$||F.renderer&&this.init(F.id,F.renderer,{},F);return Promise.resolve()};
g.A.init=function(F,k,z){this.u$=F;this.element.setAttribute("id",this.u$);this.dH&&g.C6(this.element,this.dH);this.Qh=k&&k.adRendererCommands;this.yh=k.interaction;var x;((x=this.yh)==null?0:x.onTap)&&g.C6(this.element,"ytp-ad-component--clickable");this.macros=z;this.B=k.trackingParams||null;var D,e;this.G=(e=(D=g.J(k.rendererContext,O8V))==null?void 0:D.loggingDirectives)!=null?e:k.loggingDirectives;this.B!=null?this.createServerVe(this.element,this.B):this.G&&(F=this.element,k=this.G,this.api.createServerVe(F,
this,!0),this.api.setTrackingParams(F,k.trackingParams||null))};
g.A.clear=function(){};
g.A.hide=function(){g.Q7.prototype.hide.call(this);(this.B!=null||this.G)&&this.logVisibility(this.element,!1)};
g.A.show=function(){g.Q7.prototype.show.call(this);if(!this.UH){this.UH=!0;var F=this.Qh&&this.Qh.impressionCommand,k,z=(k=this.yh)==null?void 0:k.onFirstVisible;F?this.q8(F):z&&(F=nd(z))&&this.q8(F)}(this.B!=null||this.G)&&this.logVisibility(this.element,!0)};
g.A.onClick=function(F){if((this.B||this.G)&&!vNC.has(F)){var k=this.element;this.api.hasVe(k)&&this.Q2&&this.api.logClick(k,this.interactionLoggingClientData);vNC.add(F)}var z=this.Qh&&this.Qh.clickCommand,x;k=(x=this.yh)==null?void 0:x.onTap;if(z)k=this.RZ(z),this.q8(k);else{if(x=k)a:{x=this.element;F=F.composedPath();F=g.l(F);for(z=F.next();!z.done;z=F.next()){z=z.value;if(z===x)break;if(z.className.indexOf("ytp-ad-component--clickable")>=0){x=!1;break a}}x=!0}x&&(k=nd(k))&&this.q8(k)}};
g.A.RZ=function(F){return F};
g.A.onTouchStart=function(F){this.t4.onTouchStart(F)};
g.A.onTouchMove=function(F){this.t4.onTouchMove(F)};
g.A.onTouchEnd=function(F){if(this.t4)this.t4.onTouchEnd(F)};
g.A.q8=function(F){this.layoutId?this.BR.executeCommand(F,this.layoutId):g.JV(new g.Fa("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
g.A.createServerVe=function(F,k){this.api.createServerVe(F,this);this.api.setTrackingParams(F,k)};
g.A.logVisibility=function(F,k){this.api.hasVe(F)&&this.api.logVisibility(F,k,this.interactionLoggingClientData)};
g.A.h4=function(){this.clear(null);this.er(this.vR);for(var F=g.l(this.mp),k=F.next();!k.done;k=F.next())this.er(k.value);g.Q7.prototype.h4.call(this)};g.T(dt,hL);
dt.prototype.init=function(F,k,z){hL.prototype.init.call(this,F,k,z);this.Y=k;if(k.text==null&&k.icon==null)g.yI(Error("ButtonRenderer did not have text or an icon set."));else{switch(k.style||null){case "STYLE_UNKNOWN":F="ytp-ad-button-link";break;default:F=null}F!=null&&g.C6(this.element,F);k.text!=null&&(F=g.rt(k.text),g.hD(F)||(this.element.setAttribute("aria-label",F),this.U=new g.Q7({X:"span",J:"ytp-ad-button-text",jk:F}),g.b(this,this.U),this.U.T4(this.element)));k.accessibilityData&&k.accessibilityData.accessibilityData&&
k.accessibilityData.accessibilityData.label&&!g.hD(k.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",k.accessibilityData.accessibilityData.label);k.icon!=null&&(k=bG(k.icon,this.j),k!=null&&(this.L=new g.Q7({X:"span",J:"ytp-ad-button-icon",Z:[k]}),g.b(this,this.L)),this.S?XE(this.element,this.L.element,0):this.L.T4(this.element))}};
dt.prototype.clear=function(){this.hide()};
dt.prototype.onClick=function(F){hL.prototype.onClick.call(this,F);F=g.l(UAx(this));for(var k=F.next();!k.done;k=F.next())k=k.value,this.layoutId?this.BR.executeCommand(k,this.layoutId):g.JV(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.T(JL,g.S);JL.prototype.h4=function(){this.L&&g.tx(this.L);this.Y.clear();y7=null;g.S.prototype.h4.call(this)};
JL.prototype.register=function(F,k){k&&this.Y.set(F,k)};
var y7=null;g.T(YB,hL);
YB.prototype.init=function(F,k,z){hL.prototype.init.call(this,F,k,z);F=k.hoverText||null;k=k.button&&g.J(k.button,g.yS)||null;k==null?g.JV(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new dt(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,void 0,void 0,void 0,void 0,this.U),g.b(this,this.button),this.button.init(qh("button"),k,this.macros),F&&this.button.element.setAttribute("aria-label",g.rt(F)),this.button.T4(this.element),this.K&&!g.ed(this.button.element,
"ytp-ad-clickable")&&g.C6(this.button.element,"ytp-ad-clickable"),this.U&&g.C6(this.button.element,"ytp-ad-hover-text-button--clean-player"),F&&(this.L=new g.Q7({X:"div",J:"ytp-ad-hover-text-container"}),this.S&&(k=new g.Q7({X:"div",J:"ytp-ad-hover-text-callout"}),k.T4(this.L.element),g.b(this,k)),g.b(this,this.L),this.L.T4(this.element),k=Ra(F),XE(this.L.element,k,0)),this.show())};
YB.prototype.hide=function(){this.button&&this.button.hide();this.L&&this.L.hide();hL.prototype.hide.call(this)};
YB.prototype.show=function(){this.button&&this.button.show();hL.prototype.show.call(this)};g.T(Mh,hL);
Mh.prototype.init=function(F,k,z){hL.prototype.init.call(this,F,k,z);z=(F=k.thumbnail)&&nJ(F)||"";g.hD(z)?Math.random()<.01&&g.yI(Error("Found AdImage without valid image URL")):(this.Y?g.Xr(this.element,"backgroundImage","url("+z+")"):iE(this.element,{src:z}),iE(this.element,{alt:F&&F.accessibility&&F.accessibility.label||""}),k&&k.adRendererCommands&&k.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())};
Mh.prototype.clear=function(){this.hide()};g.T(LJ,hL);g.A=LJ.prototype;g.A.hide=function(){hL.prototype.hide.call(this);this.U&&this.U.focus()};
g.A.show=function(){this.U=document.activeElement;hL.prototype.show.call(this);this.j.focus()};
g.A.init=function(F,k,z){hL.prototype.init.call(this,F,k,z);this.L=k;k.dialogMessages||k.title!=null?k.confirmLabel==null?g.JV(Error("ConfirmDialogRenderer.confirmLabel was not set.")):k.cancelLabel==null?g.JV(Error("ConfirmDialogRenderer.cancelLabel was not set.")):c66(this,k):g.JV(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.A.clear=function(){g.VB(this.Y);this.hide()};
g.A.NG=function(){this.hide()};
g.A.SG=function(){var F=this.L.cancelEndpoint;F&&(this.layoutId?this.BR.executeCommand(F,this.layoutId):g.JV(Error("Missing layoutId for confirm dialog.")));this.hide()};
g.A.wj=function(){var F=this.L.confirmNavigationEndpoint||this.L.confirmEndpoint;F&&(this.layoutId?this.BR.executeCommand(F,this.layoutId):g.JV(Error("Missing layoutId for confirm dialog.")));this.hide()};g.T(fJ,hL);g.A=fJ.prototype;
g.A.init=function(F,k,z){hL.prototype.init.call(this,F,k,z);this.U=k;if(k.defaultText==null&&k.defaultIcon==null)g.JV(Error("ToggleButtonRenderer must have either text or icon set."));else if(k.defaultIcon==null&&k.toggledIcon!=null)g.JV(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(k.style){switch(k.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":F="ytp-ad-toggle-button-default-style";break;default:F=null}F!=null&&g.C6(this.j,F)}F={};k.defaultText?
(z=g.rt(k.defaultText),g.hD(z)||(F.buttonText=z,this.api.C().experiments.Ca("a11y_h5_associate_survey_question")||this.Y.setAttribute("aria-label",z),this.api.C().experiments.Ca("fix_h5_toggle_button_a11y")&&this.L.setAttribute("aria-label",z))):g.BS(this.Xf,!1);k.defaultTooltip&&(F.tooltipText=k.defaultTooltip,this.Y.hasAttribute("aria-label")||this.L.setAttribute("aria-label",k.defaultTooltip));k.defaultIcon?(z=bG(k.defaultIcon),this.updateValue("untoggledIconTemplateSpec",z),k.toggledIcon?(this.PR=
!0,z=bG(k.toggledIcon),this.updateValue("toggledIconTemplateSpec",z)):(g.BS(this.K,!0),g.BS(this.S,!1)),g.BS(this.Y,!1)):g.BS(this.L,!1);g.SI(F)||this.update(F);k.isToggled&&(g.C6(this.j,"ytp-ad-toggle-button-toggled"),this.toggleButton(k.isToggled));KJ(this);this.N(this.element,"change",this.u5);this.show()}};
g.A.onClick=function(F){this.mp.length>0&&(this.toggleButton(!this.isToggled()),this.u5());hL.prototype.onClick.call(this,F)};
g.A.u5=function(){g.XF(this.j,"ytp-ad-toggle-button-toggled",this.isToggled());for(var F=g.l(PMR(this,this.isToggled())),k=F.next();!k.done;k=F.next())k=k.value,this.layoutId?this.BR.executeCommand(k,this.layoutId):g.JV(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);KJ(this)};
g.A.clear=function(){this.hide()};
g.A.toggleButton=function(F){g.XF(this.j,"ytp-ad-toggle-button-toggled",F);this.Y.checked=F;KJ(this)};
g.A.isToggled=function(){return this.Y.checked};g.T(Wx,PW);Wx.prototype.S=function(F){if(Array.isArray(F)){F=g.l(F);for(var k=F.next();!k.done;k=F.next())k=k.value,k instanceof OMR&&this.j(k)}};g.T(FI,hL);g.A=FI.prototype;g.A.init=function(F,k,z){hL.prototype.init.call(this,F,k,z);k.reasons?k.confirmLabel==null?g.JV(Error("AdFeedbackRenderer.confirmLabel was not set.")):(k.cancelLabel==null&&g.yI(Error("AdFeedbackRenderer.cancelLabel was not set.")),k.title==null&&g.yI(Error("AdFeedbackRenderer.title was not set.")),a0C(this,k)):g.JV(Error("AdFeedbackRenderer.reasons were not set."))};
g.A.clear=function(){Zu(this.S);Zu(this.K);this.j.length=0;this.hide()};
g.A.hide=function(){this.Y&&this.Y.hide();this.L&&this.L.hide();hL.prototype.hide.call(this);this.U&&this.U.focus()};
g.A.show=function(){this.Y&&this.Y.show();this.L&&this.L.show();this.U=document.activeElement;hL.prototype.show.call(this);this.S.focus()};
g.A.Tg=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()};
g.A.uv_=function(){this.hide()};
ka.prototype.T$=function(){return this.Y.element};
ka.prototype.getCommand=function(){return this.L};
ka.prototype.isChecked=function(){return this.U.checked};g.T(oc,LJ);oc.prototype.NG=function(F){LJ.prototype.NG.call(this,F);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
oc.prototype.SG=function(F){LJ.prototype.SG.call(this,F);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
oc.prototype.wj=function(F){LJ.prototype.wj.call(this,F);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.T(zo,hL);g.A=zo.prototype;
g.A.init=function(F,k,z){hL.prototype.init.call(this,F,k,z);this.S=k;if(k.dialogMessage==null&&k.title==null)g.JV(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{k.confirmLabel==null&&g.yI(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(F=k.closeOverlayRenderer&&g.J(k.closeOverlayRenderer,g.yS)||null)this.Y=new dt(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
g.b(this,this.Y),this.Y.init(qh("button"),F,this.macros),this.Y.T4(this.element);k.title&&(F=g.rt(k.title),this.updateValue("title",F));if(k.adReasons)for(F=k.adReasons,z=0;z<F.length;z++){var x=Ra(F[z]);if(!g.hD(x.textContent)){var D=e0("LI");D.appendChild(x);this.cR.appendChild(D)}}else g.BS(this.cR,!1);k.dialogMessage&&(F=Ra(k.dialogMessage,!0),this.RU.appendChild(F));k.confirmLabel&&(F=g.rt(k.confirmLabel),this.updateValue("confirmLabel",F));k.muteAdRenderer&&(k=g.J(k.muteAdRenderer,g.yS)||null)&&
(F=k.navigationEndpoint&&g.J(k.navigationEndpoint,aPD)||null,z=k.navigationEndpoint&&g.J(k.navigationEndpoint,G8Y)||null,F==null&&z==null?g.yI(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(F?Sta(this,F):z&&bMI(this,z),this.U=new dt(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,["ytp-ad-info-dialog-mute-button"],"button",!0),g.b(this,this.U),this.U.init(qh("button"),k,this.macros),this.U.listen("click",
this.d5K,this),this.U.T4(this.NJ)));dAx(this)}};
g.A.clear=function(){Zu(this.K);this.hide()};
g.A.hide=function(){this.L?this.L.hide():this.j&&this.j.hide();this.Y&&this.Y.hide();this.U&&this.U.hide();hL.prototype.hide.call(this);this.PR&&this.PR.focus()};
g.A.show=function(){this.Y&&this.Y.show();this.U&&this.U.show();if(!this.l$){for(var F=g.l(this.S&&this.S.impressionEndpoints||[]),k=F.next();!k.done;k=F.next())k=k.value,this.layoutId?this.BR.executeCommand(k,this.layoutId):g.JV(Error("Missing layoutId for ad info dialog."));this.l$=!0}this.PR=document.activeElement;hL.prototype.show.call(this);this.K.focus()};
g.A.M7=function(){if(this.S&&this.S.confirmServiceEndpoint){var F=this.S.confirmServiceEndpoint;this.layoutId?this.BR.executeCommand(F,this.layoutId):g.JV(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()};
g.A.d5K=function(){var F=this.L?this.L:this.j;F&&!F.Q2&&(this.hide(),F.show())};g.T(xa,YB);xa.prototype.init=function(F,k,z){YB.prototype.init.call(this,F,k,z);F=k.button&&g.J(k.button,g.yS)||null;F!=null&&(YtI(this,F,z),this.api.V("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-ad-info-hover-text-button--clean-player"),this.show())};
xa.prototype.hide=function(){this.button&&this.button.hide();this.Y&&this.Y.hide();YB.prototype.hide.call(this)};
xa.prototype.show=function(){this.button&&this.button.show();YB.prototype.show.call(this)};
xa.prototype.clear=function(){this.hide()};g.T(iH,hL);
iH.prototype.init=function(F,k,z){hL.prototype.init.call(this,F,k,z);this.Y=k;this.isTemplated()||g.uE(this.element,se(this.Y));if(k.backgroundImage&&(F=(F=k.backgroundImage.thumbnail)?nJ(F):"",z=(z=this.api.getVideoData(1))&&z.lJ,F&&z&&(this.element.style.backgroundImage="url("+F+")",this.element.style.backgroundSize="100%"),k.style&&k.style.adTextStyle))switch(k.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(F=g.eI(k.targetId))&&this.element.setAttribute("data-tooltip-target-id",F);
k&&k.adRendererCommands&&k.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()};
iH.prototype.isTemplated=function(){return this.Y.isTemplated||!1};
iH.prototype.clear=function(){this.hide()};var kIk={seekableStart:0,seekableEnd:1,current:0};g.T($a,hL);$a.prototype.clear=function(){this.dispose()};g.T(g.Cv,g.S);g.A=g.Cv.prototype;g.A.show=function(F){this.state!==1&&this.state!==2&&(this.state===4&&this.dC(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.Y&&this.Y()):this.element.Q2||(AI(this,!0),this.state=1,F?this.delay.start(F):this.dC()))};
g.A.hide=function(){this.state!==4&&(this.state===1||this.state===2?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Q2&&(AI(this,!0),this.state=4,this.delay.start(this.U)))};
g.A.dC=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:AI(this,!1);this.state=3;this.delay.start(this.L);break;case 3:this.state=null;this.Y&&this.Y();break;case 4:this.element.hide();AI(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}};
g.A.stop=function(){for(;this.state!==null&&this.state!==5;)this.delay.stop(),this.dC()};
g.A.h4=function(){this.element.z4()||this.element.element.removeAttribute("aria-hidden");g.S.prototype.h4.call(this)};g.T(pv,$a);g.A=pv.prototype;
g.A.init=function(F,k,z){$a.prototype.init.call(this,F,k,z);F=k.durationMilliseconds;typeof F==="number"&&F<0&&g.JV(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+F));this.kG&&(this.j?g.C6(this.L.element,"modern-countdown-next-to-thumbnail"):g.C6(this.L.element,"countdown-next-to-thumbnail"));F=k.durationMilliseconds;this.cR=F==null||F===0?this.Y.W4():F;if(k.templatedCountdown)var x=k.templatedCountdown.templatedAdText;else k.staticPreview&&(x=k.staticPreview);
this.U.init(qh("ad-text"),x,z);(x=this.api.getVideoData(1))&&x.lJ&&k.thumbnail?this.S.init(qh("ad-image"),k.thumbnail,z):(this.Xf.hide(),this.j&&this.kG&&g.C6(this.U.element,"ytp-ad-preview-text-modern-postroll"))};
g.A.clear=function(){this.hide()};
g.A.hide=function(){this.L.hide();this.U.hide();this.S.hide();e_(this);$a.prototype.hide.call(this)};
g.A.show=function(){j_(this);this.L.show();this.U.show();this.S.show();$a.prototype.show.call(this)};
g.A.Xk=function(){this.hide()};
g.A.j1=function(){if(this.Y!=null){var F=this.Y.getProgressState();F!=null&&F.current!=null&&(F=1E3*F.current,!this.RU&&F>=this.cR?(this.PR.hide(),this.RU=!0,this.publish("i")):this.U&&this.U.isTemplated()&&(F=Math.max(0,Math.ceil((this.cR-F)/1E3)),F!=this.NJ&&(Db(this.U,{TIME_REMAINING:String(F)}),this.NJ=F)))}};g.T(Eq,$a);g.A=Eq.prototype;
g.A.init=function(F,k,z){$a.prototype.init.call(this,F,k,z);if(k.image&&k.image.thumbnail)if(k.headline)if(k.description)if((F=k.actionButton&&g.J(k.actionButton,g.yS))&&F.navigationEndpoint){var x=this.api.getVideoData(2);if(x!=null)if(k.image&&k.image.thumbnail){var D=k.image.thumbnail.thumbnails;D!=null&&D.length>0&&g.hD(g.eI(D[0].url))&&(D[0].url=x.profilePicture)}else g.yI(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.U.init(qh("ad-image"),k.image,z);this.S.init(qh("ad-text"),
k.headline,z);this.j.init(qh("ad-text"),k.description,z);this.L.init(qh("button"),F,z);z=LS(this.L.element);Md(this.L.element,z+" This link opens in new tab");this.PR=F.navigationEndpoint;this.api.RF()||this.show();this.api.C().V("enable_larger_flyout_cta_on_desktop")&&(this.EK("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.EK("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.EK("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"),
this.EK("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.EK("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.EK("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.L.element.classList.add("ytp-flyout-cta-action-button-large"),this.L.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.EK("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large"));
this.api.addEventListener("playerUnderlayVisibilityChange",this.p7.bind(this));this.Xf=k.startMs||0;j_(this)}else g.JV(Error("FlyoutCtaRenderer has no valid action button."));else g.JV(Error("FlyoutCtaRenderer has no description AdText."));else g.JV(Error("FlyoutCtaRenderer has no headline AdText."));else g.yI(Error("FlyoutCtaRenderer has no image."))};
g.A.onClick=function(F){$a.prototype.onClick.call(this,F);this.api.pauseVideo();!g.N_(this.L.element,F.target)&&this.PR&&(this.layoutId?this.BR.executeCommand(this.PR,this.layoutId):g.JV(Error("Missing layoutId for flyout cta.")))};
g.A.j1=function(){if(this.Y){var F=this.Y.getProgressState();(F&&F.current||this.cR)&&1E3*F.current>=this.Xf&&(e_(this),g.p6(this.element,"ytp-flyout-cta-inactive"),this.L.element.removeAttribute("tabIndex"))}};
g.A.Xk=function(){this.clear()};
g.A.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.p7.bind(this))};
g.A.show=function(){this.L&&this.L.show();$a.prototype.show.call(this)};
g.A.hide=function(){this.L&&this.L.hide();$a.prototype.hide.call(this)};
g.A.p7=function(F){F=="hidden"?this.show():this.hide()};g.T(XI,hL);g.A=XI.prototype;
g.A.init=function(F,k,z){hL.prototype.init.call(this,F,k,z);this.Y=k;if(this.Y.rectangle)for(F=this.Y.likeButton&&g.J(this.Y.likeButton,md),k=this.Y.dislikeButton&&g.J(this.Y.dislikeButton,md),this.U.init(qh("toggle-button"),F,z),this.L.init(qh("toggle-button"),k,z),this.N(this.element,"change",this.C7),this.j.show(100),this.show(),z=g.l(this.Y&&this.Y.impressionCommands||[]),F=z.next();!F.done;F=z.next())F=F.value,this.layoutId?this.BR.executeCommand(F,this.layoutId):g.JV(Error("Missing layoutId for instream user sentiment."))};
g.A.clear=function(){this.hide()};
g.A.hide=function(){this.U.hide();this.L.hide();hL.prototype.hide.call(this)};
g.A.show=function(){this.U.show();this.L.show();hL.prototype.show.call(this)};
g.A.C7=function(){r9n(this.element,"ytp-ad-instream-user-sentiment-selected");this.Y.postMessageAction&&this.api.ZQ("onYtShowToast",this.Y.postMessageAction);this.j.hide()};
g.A.onClick=function(F){this.mp.length>0&&this.C7();hL.prototype.onClick.call(this,F)};g.T(qf,g.S);g.A=qf.prototype;g.A.h4=function(){this.reset();g.S.prototype.h4.call(this)};
g.A.reset=function(){g.VB(this.j);this.S=!1;this.Y&&this.Y.stop();this.W.stop();this.U&&(this.U=!1,this.G.play())};
g.A.start=function(){this.reset();this.j.N(this.L,"mouseover",this.Dg,this);this.j.N(this.L,"mouseout",this.Zg,this);this.Qh&&(this.j.N(this.L,"focusin",this.Dg,this),this.j.N(this.L,"focusout",this.Zg,this));this.Y?this.Y.start():(this.S=this.U=!0,g.Xr(this.L,{opacity:this.K}))};
g.A.Dg=function(){this.U&&(this.U=!1,this.G.play());this.W.stop();this.Y&&this.Y.stop()};
g.A.Zg=function(){this.S?this.W.start():this.Y&&this.Y.start()};
g.A.Ud=function(){this.U||(this.U=!0,this.B.play(),this.S=!0)};var f0a=[new Nf("b.f_",!1,0),new Nf("j.s_",!1,2),new Nf("r.s_",!1,4),new Nf("e.h_",!1,6),new Nf("i.s_",!0,8),new Nf("s.t_",!1,10),new Nf("p.h_",!1,12),new Nf("s.i_",!1,14),new Nf("f.i_",!1,16),new Nf("a.b_",!1,18),new Nf("a.o_",!1),new Nf("g.o_",!1,22),new Nf("p.i_",!1,24),new Nf("p.m_",!1),new Nf("n.k_",!0,20),new Nf("i.f_",!1),new Nf("a.s_",!0),new Nf("m.c_",!1),new Nf("n.h_",!1,26),new Nf("o.p_",!1)].reduce(function(F,k){F[k.L]=k;return F},{});g.T(sq,$a);g.A=sq.prototype;
g.A.init=function(F,k,z){$a.prototype.init.call(this,F,k,z);this.PR=k;(this.Xf=WgY(this))&&g.yI(Error("hasAdControlInClickCommands_ is true."));if(!k||g.SI(k))g.JV(Error("SkipButtonRenderer was not specified or empty."));else if(!k.message||g.SI(k.message))g.JV(Error("SkipButtonRenderer.message was not specified or empty."));else{F=this.S?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};k=bG(F);k==null?g.JV(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+F.iconType+".")):
(this.j=new g.Q7({X:"button",WR:[this.S?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],Z:[{X:"span",J:this.S?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",Z:[k]}]}),g.b(this,this.j),this.j.T4(this.U.element),this.L=new iH(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,"ytp-ad-skip-button-text"),this.S&&this.L.element.classList.add("ytp-ad-skip-button-text-centered"),this.L.init(qh("ad-text"),this.PR.message,z),g.b(this,this.L),XE(this.j.element,this.L.element,
0));var x=x===void 0?null:x;z=this.api.C();!(this.mp.length>0)&&z.L&&(BJ?0:"ontouchstart"in document.documentElement&&(lJY()||lQ()))&&(this.er(this.vR),x&&this.er(x),this.mp=[this.N(this.element,"touchstart",this.onTouchStart,this),this.N(this.element,"touchmove",this.onTouchMove,this),this.N(this.element,"touchend",this.onTouchEnd,this)])}};
g.A.clear=function(){this.cR.reset();this.hide()};
g.A.hide=function(){this.U.hide();this.L&&this.L.hide();e_(this);$a.prototype.hide.call(this)};
g.A.onClick=function(F){if(this.j!=null){if(F){var k=F||window.event;k.returnValue=!1;k.preventDefault&&k.preventDefault()}var z;if(MBC(F,{contentCpn:((z=this.api.getVideoData(1))==null?void 0:z.clientPlaybackNonce)||""})===0)this.api.ZQ("onAbnormalityDetected");else if($a.prototype.onClick.call(this,F),this.publish("j"),this.api.ZQ("onAdSkip"),this.RU||!this.Xf)this.api.onAdUxClicked(this.componentType,this.layoutId)}};
g.A.RZ=function(F){if(!this.RU)return this.Xf&&To("SkipButton click commands not pruned while ALC exist"),F;var k,z=(k=g.J(F,g.r8))==null?void 0:k.commands;if(!z)return F;F=[];for(k=0;k<z.length;k++){var x=z[k];x.adLifecycleCommand&&KgD(x.adLifecycleCommand)||x.pingingEndpoint||x.adPingingEndpoint||F.push(x)}return{commandExecutorCommand:{commands:F}}};
g.A.show=function(){this.cR.start();this.U.show();this.L&&this.L.show();j_(this);$a.prototype.show.call(this);this.NJ&&this.api.C().V("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};
g.A.Xk=function(){this.publish("k")};
g.A.j1=function(){};g.T(Bu,$a);g.A=Bu.prototype;
g.A.init=function(F,k,z){$a.prototype.init.call(this,F,k,z);F=k&&k.preskipRenderer&&g.J(k.preskipRenderer,J8)||{};(F=g.SI(F)?null:F)?(this.S=F.durationMilliseconds!=null&&F.durationMilliseconds!==void 0?F.durationMilliseconds:5E3,this.L=new pv(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.Y,oB(this.api.C().experiments,"preskip_button_style_ads_backend")=="countdown_next_to_thumbnail"&&OB(this.api.C())),this.L.init(qh("preskip-component"),F,z),F=this.L,F.PR.show(100),F.show(),
g.b(this,this.L),this.L.T4(this.element)):k.skipOffsetMilliseconds&&(this.S=k.skipOffsetMilliseconds);F=k&&k.skippableRenderer&&g.J(k.skippableRenderer,ErD)||{};F=g.SI(F)?null:F;F==null?g.JV(Error("SkipButtonRenderer was not set in player response.")):(this.U=new sq(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.Y,this.PR),this.U.init(qh("skip-button"),F,z),g.b(this,this.U),this.U.T4(this.element),this.api.C().experiments.Ca("enable_skip_to_next_messaging")&&(k=g.eI(k.targetId))&&
(z=this.U,z.j!=null&&(z.NJ=!0,z.j.element.setAttribute("data-tooltip-target-id",k),z.j.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
g.A.show=function(){this.j&&this.U?this.U.show():this.L&&this.L.show();j_(this);$a.prototype.show.call(this)};
g.A.Xk=function(){};
g.A.clear=function(){this.L&&this.L.clear();this.U&&this.U.clear();e_(this);$a.prototype.hide.call(this)};
g.A.hide=function(){this.L&&this.L.hide();this.U&&this.U.hide();e_(this);$a.prototype.hide.call(this)};
g.A.j1=function(){1E3*this.Y.getProgressState().current>=this.S&&FND(this,!0)};g.T(Go,dt);Go.prototype.init=function(F,k,z){dt.prototype.init.call(this,F,k,z);F=!1;k.text!=null&&(F=g.rt(k.text),F=!g.hD(F));F?k.navigationEndpoint==null?g.yI(Error("No visit advertiser clickthrough provided in renderer,")):k.style!=="STYLE_UNKNOWN"?g.yI(Error("Button style was not a link-style type in renderer,")):this.show():g.yI(Error("No visit advertiser text was present in the renderer."))};g.T(Uq,hL);
Uq.prototype.init=function(F,k,z){hL.prototype.init.call(this,F,k,z);F=k.text;g.hD(se(F))?g.yI(Error("SimpleAdBadgeRenderer has invalid or empty text")):(F&&F.text&&(k=F.text,this.U&&!this.L&&(k=this.api.C(),k=F.text+" "+(k&&k.L?"\u2022":"\u00b7")),k={text:k,isTemplated:F.isTemplated},F.style&&(k.style=F.style),F.targetId&&(k.targetId=F.targetId),F=new iH(this.api,this.layoutId,this.interactionLoggingClientData,this.BR),F.init(qh("simple-ad-badge"),k,z),F.T4(this.element),g.b(this,F)),this.show())};
Uq.prototype.clear=function(){this.hide()};g.T(tI,Nh);g.T(Zb,g.uG);g.A=Zb.prototype;g.A.W4=function(){return this.durationMs};
g.A.stop=function(){this.Y&&this.j9.er(this.Y)};
g.A.xj=function(F){this.L={seekableStart:0,seekableEnd:this.durationMs/1E3,current:F.current};this.publish("h")};
g.A.getProgressState=function(){return this.L};
g.A.rS=function(F){g.hI(F,2)&&this.publish("g")};g.T(vu,g.uG);g.A=vu.prototype;g.A.W4=function(){return this.durationMs};
g.A.start=function(){this.Y||(this.Y=!0,this.Dj.start())};
g.A.stop=function(){this.Y&&(this.Y=!1,this.Dj.stop())};
g.A.xj=function(){this.Sj+=100;var F=!1;this.Sj>this.durationMs&&(this.Sj=this.durationMs,this.Dj.stop(),F=!0);this.L={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Sj/1E3};this.publish("h");F&&this.publish("g")};
g.A.getProgressState=function(){return this.L};g.T(Oq,$a);g.A=Oq.prototype;g.A.init=function(F,k,z){$a.prototype.init.call(this,F,k,z);var x;if(k==null?0:(x=k.templatedCountdown)==null?0:x.templatedAdText){F=k.templatedCountdown.templatedAdText;if(!F.isTemplated){g.yI(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.L=new iH(this.api,this.layoutId,this.interactionLoggingClientData,this.BR);this.L.init(qh("ad-text"),F,{});this.L.T4(this.element);g.b(this,this.L)}this.show()};
g.A.clear=function(){this.hide()};
g.A.hide=function(){e_(this);$a.prototype.hide.call(this)};
g.A.Xk=function(){this.hide()};
g.A.j1=function(){if(this.Y!=null){var F=this.Y.getProgressState();if(F!=null&&F.current!=null&&this.L){var k=this.Y instanceof Zb?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:F.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.Y instanceof vu?F.seekableEnd:this.api.getDuration(2,!1);F=F.current;var z,x,D=((z=this.api.getVideoData())==null?0:(x=z.w3)==null?0:x.call(z))?Math.max(k-F,0):k-F;Db(this.L,{FORMATTED_AD_DURATION_REMAINING:String(g.cu(D)),
TIME_REMAINING:String(Math.ceil(D))})}}};
g.A.show=function(){j_(this);$a.prototype.show.call(this)};g.T(Vo,iH);Vo.prototype.onClick=function(F){iH.prototype.onClick.call(this,F);this.api.onAdUxClicked(this.componentType)};g.T(Hu,hL);Hu.prototype.init=function(F,k){hL.prototype.init.call(this,F,k,{});if(F=k.content){g.uE(this.element,F);var z,x;k=((z=k.interaction)==null?void 0:(x=z.accessibility)==null?void 0:x.label)||F;this.element.setAttribute("aria-label",k)}else g.JV(Error("AdSimpleAttributedString does not have text content"))};
Hu.prototype.clear=function(){this.hide()};
Hu.prototype.onClick=function(F){hL.prototype.onClick.call(this,F)};g.T(ac,hL);
ac.prototype.init=function(F,k){hL.prototype.init.call(this,F,k,{});(F=k.label)&&F.content&&!g.hD(F.content)?(this.adBadgeText.init(qh("ad-simple-attributed-string"),new Ic(F)),(k=k.adPodIndex)&&k.content&&!g.hD(k.content)&&(this.Y=new Hu(this.api,this.layoutId,this.interactionLoggingClientData,this.BR),this.Y.T4(this.element),g.b(this,this.Y),this.Y.element.classList.add("ytp-ad-badge__pod-index"),this.Y.init(qh("ad-simple-attributed-string"),new Ic(k))),this.element.classList.add(this.L?"ytp-ad-badge--stark-clean-player":
"ytp-ad-badge--stark"),this.show()):g.JV(Error("No label is returned in AdBadgeViewModel."))};
ac.prototype.show=function(){this.adBadgeText.show();var F;(F=this.Y)==null||F.show();hL.prototype.show.call(this)};
ac.prototype.hide=function(){this.adBadgeText.hide();var F;(F=this.Y)==null||F.hide();hL.prototype.hide.call(this)};g.T(S_,hL);S_.prototype.init=function(F,k){hL.prototype.init.call(this,F,k,{});(F=k.adPodIndex)&&F.content&&!g.hD(F.content)&&(this.Y=new Hu(this.api,this.layoutId,this.interactionLoggingClientData,this.BR),this.Y.T4(this.element),g.b(this,this.Y),this.Y.init(qh("ad-simple-attributed-string"),new Ic(F)),k.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()};
S_.prototype.show=function(){var F;(F=this.Y)==null||F.show();hL.prototype.show.call(this)};
S_.prototype.hide=function(){var F;(F=this.Y)==null||F.hide();hL.prototype.hide.call(this)};g.T(bH,hL);
bH.prototype.init=function(F,k){hL.prototype.init.call(this,F,k,{});if(k!=null&&k.text){var z;if(((z=k.text)==null?0:z.content)&&!g.hD(k.text.content)){this.Y=new g.Q7({X:"div",J:"ytp-ad-disclosure-banner__text",jk:k.text.content});g.b(this,this.Y);this.Y.T4(this.element);var x,D;F=((x=k.interaction)==null?void 0:(D=x.accessibility)==null?void 0:D.label)||k.text.content;this.element.setAttribute("aria-label",F);var e;if((e=k.interaction)==null?0:e.onTap)this.L=new g.Q7({X:"div",J:"ytp-ad-disclosure-banner__chevron",Z:[g.tL()]}),
g.b(this,this.L),this.L.T4(this.element);this.show()}}else g.JV(Error("No banner text found in AdDisclosureBanner."))};
bH.prototype.clear=function(){this.hide()};d8.prototype.getLength=function(){return this.Y-this.L};g.T(yo,g.Q7);yo.prototype.xj=function(){var F=this.L.getProgressState(),k=F.seekableEnd;this.api.getPresentingPlayerType()===2&&(k=this.U?this.U/1E3:F.seekableEnd);F=JI(new d8(F.seekableStart,k),F.current,0);this.progressBar.style.width=F*100+"%"};
yo.prototype.onStateChange=function(){g.IB(this.api.C())||(this.api.getPresentingPlayerType()===2?this.Y===-1&&(this.show(),this.Y=this.L.subscribe("h",this.xj,this),this.xj()):this.Y!==-1&&(this.hide(),this.L.QL(this.Y),this.Y=-1))};g.T(Rc,hL);
Rc.prototype.init=function(F,k,z,x){hL.prototype.init.call(this,F,k,z);if(k.skipOrPreviewRenderer){if(F=g.J(k.skipOrPreviewRenderer,XZ))z=new Bu(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.L,this.K),z.T4(this.l$),z.init(qh("skip-button"),F,this.macros),g.b(this,z);if(F=g.J(k.skipOrPreviewRenderer,XZ))var D=F.skipOffsetMilliseconds}k.brandInteractionRenderer&&(F=k.brandInteractionRenderer.brandInteractionRenderer,z=new XI(this.api,this.layoutId,this.interactionLoggingClientData,this.BR),
z.T4(this.Xf),z.init(qh("instream-user-sentiment"),F,this.macros),g.b(this,z));if(F=g.J(k,$Tt))if(F=g.J(F,$Tt))z=new Eq(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.L,!!k.showWithoutLinkedMediaLayout),g.b(this,z),z.T4(this.S),z.init(qh("flyout-cta"),F,this.macros);x=x&&x.videoAdDurationSeconds;k.adBadgeRenderer&&(z=k.adBadgeRenderer,F=g.J(z,JY),F!=null?(z=new ac(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,!1),g.b(this,z),z.T4(this.Y),z.init(qh("ad-badge"),
F,this.macros),this.U=z.element):(F=z.simpleAdBadgeRenderer,F==null&&(F={text:{text:"Ad",isTemplated:!1}}),z=new Uq(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,!0),g.b(this,z),z.T4(this.Y),z.init(qh("simple-ad-badge"),F,this.macros)));k.adPodIndex&&(F=g.J(k.adPodIndex,uNt),F!=null&&(z=new S_(this.api,this.layoutId,this.interactionLoggingClientData,this.BR),g.b(this,z),z.T4(this.Y),z.init(qh("ad-pod-index"),F)));k.adDurationRemaining&&!k.showWithoutLinkedMediaLayout&&(F=k.adDurationRemaining.adDurationRemainingRenderer,
F==null&&(F={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),x=new Oq(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.L,x,!1),g.b(this,x),x.T4(this.Y),x.init(qh("ad-duration-remaining"),F,this.macros));k.adInfoRenderer&&(x=g.J(k.adInfoRenderer,d0))&&(F=new xa(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.element,void 0,!1),g.b(this,F),this.U!==null?this.Y.insertBefore(F.element,this.U.nextSibling):F.T4(this.Y),
F.init(qh("ad-info-hover-text-button"),x,this.macros));k.visitAdvertiserRenderer&&(F=g.J(k.visitAdvertiserRenderer,g.yS))&&(z=zL6(this)&&this.j?this.j:this.Y)&&(x=new Go(this.api,this.layoutId,this.interactionLoggingClientData,this.BR),g.b(this,x),x.T4(z),x.init(qh("visit-advertiser"),F,this.macros),Y2(x.element),F=LS(x.element),Md(x.element,F+" This link opens in new tab"));x=this.api.C();!x||g.O5(x)||x.V("embeds_emc3ds_no_opb")&&g.tJ(x)||x.controlsType!="3"&&!x.disableOrganicUi||(D=new yo(this.api,
this.L,D,!1),D.T4(this.cR),g.b(this,D));k.adDisclosureBannerRenderer&&(k=g.J(k.adDisclosureBannerRenderer,NN$))&&(D=new bH(this.api,this.layoutId,this.interactionLoggingClientData,this.BR),D.T4(this.PR),D.init(qh("ad-disclosure-banner"),k),g.b(this,D));this.api.C().V("enable_updated_html5_player_focus_style")&&g.C6(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
Rc.prototype.clear=function(){this.hide()};Mf.prototype.set=function(F,k,z){z=z!==void 0?Date.now()+z:void 0;this.Y.set(F,k,z)};
Mf.prototype.get=function(F){return this.Y.get(F)};
Mf.prototype.remove=function(F){this.Y.remove(F)};var Wu=null,FD=null,kx=null,eLx=null;g.dI("yt.www.ads.eventcache.getLastCompanionData",function(){return Wu});
g.dI("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.dI("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return FD});
g.dI("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return kx});
g.dI("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return eLx});var Ay6=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);oH.prototype.handleResponse=function(F,k){if(!k)throw Error("request needs to be passed into ConsistencyService");var z,x;k=((z=k.M9.context)==null?void 0:(x=z.request)==null?void 0:x.consistencyTokenJars)||[];var D;(F=(D=F.responseContext)==null?void 0:D.consistencyTokenJar)&&this.replace(k,F)};
oH.prototype.replace=function(F,k){F=g.l(F);for(var z=F.next();!z.done;z=F.next())delete this.Y[z.value.encryptedTokenJarContents];E4p(this,k)};var cln=window.location.hostname.split(".").slice(-2).join("."),G4;xx.getInstance=function(){G4=g.yR("yt.clientLocationService.instance");G4||(G4=new xx,g.dI("yt.clientLocationService.instance",G4));return G4};
g.A=xx.prototype;
g.A.setLocationOnInnerTubeContext=function(F){F.client||(F.client={});if(this.Y)F.client.locationInfo||(F.client.locationInfo={}),F.client.locationInfo.latitudeE7=Math.floor(this.Y.coords.latitude*1E7),F.client.locationInfo.longitudeE7=Math.floor(this.Y.coords.longitude*1E7),F.client.locationInfo.horizontalAccuracyMeters=Math.round(this.Y.coords.accuracy),F.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.U||this.locationPlayabilityToken)F.client.locationPlayabilityToken=this.U||
this.locationPlayabilityToken};
g.A.handleResponse=function(F){var k;F=(k=F.responseContext)==null?void 0:k.locationPlayabilityToken;F!==void 0&&(this.locationPlayabilityToken=F,this.Y=void 0,g.LX("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=zN(this))&&this.localStorage.set("yt-location-playability-token",F,15552E3):g.Sl("YT_CL",JSON.stringify({loctok:F}),15552E3,cln,!0))};
g.A.clearLocationPlayabilityToken=function(F){F==="TVHTML5"?(this.localStorage=zN(this))&&this.localStorage.remove("yt-location-playability-token"):g.dz("YT_CL");this.U=void 0;this.L!==-1&&(clearTimeout(this.L),this.L=-1)};
g.A.getCurrentPositionFromGeolocation=function(){var F=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var k=!1,z=1E4;g.LX("INNERTUBE_CLIENT_NAME")==="MWEB"&&(k=!0,z=15E3);return new Promise(function(x,D){navigator.geolocation.getCurrentPosition(function(e){F.Y=e;x(e)},function(e){D(e)},{enableHighAccuracy:k,
maximumAge:0,timeout:z})})};
g.A.createUnpluggedLocationInfo=function(F){var k={};F=F.coords;if(F==null?0:F.latitude)k.latitudeE7=Math.floor(F.latitude*1E7);if(F==null?0:F.longitude)k.longitudeE7=Math.floor(F.longitude*1E7);if(F==null?0:F.accuracy)k.locationRadiusMeters=Math.round(F.accuracy);return k};
g.A.createLocationInfo=function(F){var k={};F=F.coords;if(F==null?0:F.latitude)k.latitudeE7=Math.floor(F.latitude*1E7);if(F==null?0:F.longitude)k.longitudeE7=Math.floor(F.longitude*1E7);return k};g.A=wyx.prototype;g.A.contains=function(F){return Object.prototype.hasOwnProperty.call(this.Y,F)};
g.A.get=function(F){if(this.contains(F))return this.Y[F]};
g.A.set=function(F,k){this.Y[F]=k};
g.A.mD=function(){return Object.keys(this.Y)};
g.A.remove=function(F){delete this.Y[F]};DQ.prototype.getModuleId=function(F){return F.serviceId.getModuleId()};
DQ.prototype.get=function(F){a:{var k=this.mappings.get(F.toString());switch(k.type){case "mapping":F=k.value;break a;case "factory":k=k.value();this.mappings.set(F.toString(),{type:"mapping",value:k});F=k;break a;default:F=ji(k)}}return F};
DQ.prototype.registerService=function(F,k){this.mappings.set(F.toString(),{type:"mapping",value:k});return F};
new DQ;var Ud={},mKa=(Ud.WEB_UNPLUGGED="^unplugged/",Ud.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Ud.WEB_UNPLUGGED_OPS="^unplugged/",Ud.WEB_UNPLUGGED_PUBLIC="^unplugged/",Ud.WEB_CREATOR="^creator/",Ud.WEB_KIDS="^kids/",Ud.WEB_EXPERIMENTS="^experiments/",Ud.WEB_MUSIC="^music/",Ud.WEB_REMIX="^music/",Ud.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Ud.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Ud);en.prototype.W=function(F,k,z){k=k===void 0?{}:k;z=z===void 0?TI:z;var x={context:g.i0(F.clickTrackingParams,!1,this.j)};var D=this.L(F);if(D){this.Y(x,D,k);var e;k=g.jn(this.U());(D=(e=g.J(F.commandMetadata,g.wJ))==null?void 0:e.apiUrl)&&(k=D);e=NYY(JB(k));F=Object.assign({},{command:F},void 0);x={input:e,gq:yL(e),M9:x,config:F};x.config.AA?x.config.AA.identity=z:x.config.AA={identity:z};return x}g.JV(new g.Fa("Error: Failed to create Request from Command.",F))};
g.An.Object.defineProperties(en.prototype,{j:{configurable:!0,enumerable:!0,get:function(){return!1}}});
g.T(Cl,en);g.T(AZ,Cl);AZ.prototype.W=function(){return{input:"/getDatasyncIdsEndpoint",gq:yL("/getDatasyncIdsEndpoint","GET"),M9:{}}};
AZ.prototype.U=function(){return[]};
AZ.prototype.L=function(){};
AZ.prototype.Y=function(){};var PIp={},WNH=(PIp.GET_DATASYNC_IDS=$x(AZ),PIp);var tN={},Oe$=(tN["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",tN["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",tN["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",tN["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",tN["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",tN["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",tN["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",
tN["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",tN["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",tN["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",tN["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",tN["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",tN["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",tN["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",tN["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",
tN["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",tN["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",tN["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",tN["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",tN["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",tN["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",tN["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",
tN["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",tN.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",tN["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",tN["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",tN["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",tN["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",tN["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",tN["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",
tN["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",tN["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",tN["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",tN["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",tN["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",tN["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",tN["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",tN["dialog.copyright_strikes"]=
"LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",tN["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",tN["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",tN.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",tN["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",tN["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",tN["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",tN["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",tN["owner.asset_groups"]=
"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",tN["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",tN["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",tN["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",tN["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",tN["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",tN["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",tN["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",tN["owner.delivery"]=
"LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",tN["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",tN["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",tN["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",tN["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",tN["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",tN["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",tN["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",tN["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",
tN["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",tN["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",tN["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",tN["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",tN["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",tN["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",tN["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",tN["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",tN["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",
tN["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",tN["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",tN["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",tN["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",tN["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",tN["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",tN["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",tN["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",
tN),ZB={},B4H=(ZB.auto_search="LATENCY_ACTION_AUTO_SEARCH",ZB.ad_to_ad="LATENCY_ACTION_AD_TO_AD",ZB.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",ZB.app_startup="LATENCY_ACTION_APP_STARTUP",ZB.browse="LATENCY_ACTION_BROWSE",ZB.cast_splash="LATENCY_ACTION_CAST_SPLASH",ZB.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",ZB.channels="LATENCY_ACTION_CHANNELS",ZB.chips="LATENCY_ACTION_CHIPS",ZB.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",ZB.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
ZB.editor="LATENCY_ACTION_EDITOR",ZB.embed="LATENCY_ACTION_EMBED",ZB.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",ZB.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",ZB.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",ZB.explore="LATENCY_ACTION_EXPLORE",ZB.favorites="LATENCY_ACTION_FAVORITES",ZB.home="LATENCY_ACTION_HOME",ZB.inboarding="LATENCY_ACTION_INBOARDING",ZB.landing="LATENCY_ACTION_LANDING",ZB.library="LATENCY_ACTION_LIBRARY",ZB.live=
"LATENCY_ACTION_LIVE",ZB.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",ZB.management="LATENCY_ACTION_MANAGEMENT",ZB.mini_app="LATENCY_ACTION_MINI_APP_PLAY",ZB.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",ZB.onboarding="LATENCY_ACTION_ONBOARDING",ZB.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",ZB.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",ZB.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",ZB.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
ZB.prebuffer="LATENCY_ACTION_PREBUFFER",ZB.prefetch="LATENCY_ACTION_PREFETCH",ZB.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",ZB.profile_switcher="LATENCY_ACTION_LOGIN",ZB.projects="LATENCY_ACTION_PROJECTS",ZB.reel_watch="LATENCY_ACTION_REEL_WATCH",ZB.results="LATENCY_ACTION_RESULTS",ZB.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",ZB.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",ZB.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",ZB.review="LATENCY_ACTION_REVIEW",ZB.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",ZB.search_ui="LATENCY_ACTION_SEARCH_UI",ZB.search_suggest="LATENCY_ACTION_SUGGEST",ZB.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",ZB.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",ZB.seek="LATENCY_ACTION_PLAYER_SEEK",ZB.settings="LATENCY_ACTION_SETTINGS",ZB.store="LATENCY_ACTION_STORE",ZB.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",ZB.tenx="LATENCY_ACTION_TENX",ZB.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",ZB.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
ZB.watch="LATENCY_ACTION_WATCH",ZB.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",ZB["watch,watch7"]="LATENCY_ACTION_WATCH",ZB["watch,watch7_html5"]="LATENCY_ACTION_WATCH",ZB["watch,watch7ad"]="LATENCY_ACTION_WATCH",ZB["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",ZB.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",ZB.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",ZB.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",ZB.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",ZB.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",ZB.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",ZB.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",ZB.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",ZB);Object.assign(B4H,Oe$);g.T(vC,la);var bb6=new Ql("aft-recorded",vC);var Vit=g.bD.ytLoggingGelSequenceIdObj_||{};g.dI("ytLoggingGelSequenceIdObj_",Vit);var OS=g.bD.ytLoggingLatencyUsageStats_||{};g.dI("ytLoggingLatencyUsageStats_",OS);cC.prototype.tick=function(F,k,z,x){Va(this,"tick_"+F+"_"+k)||g.NA("latencyActionTicked",{tickName:F,clientActionNonce:k},{timestamp:z,cttAuthInfo:x})};
cC.prototype.info=function(F,k,z){var x=Object.keys(F).join("");Va(this,"info_"+x+"_"+k)||(F=Object.assign({},F),F.clientActionNonce=k,g.NA("latencyActionInfo",F,{cttAuthInfo:z}))};
cC.prototype.jspbInfo=function(F,k,z){for(var x="",D=0;D<H9(F).length;D++)H9(F)[D]!==void 0&&(x=D===0?x.concat(""+D):x.concat("_"+D));if(!Va(this,"info_"+x+"_"+k)){r$(F,2,k);z={cttAuthInfo:z};k=g.sY("jspb_sparse_encoded_pivot")?new RA([{}]):new RA;F=uNp(F,dU);CW(k,7,PrD,F);z=z===void 0?{}:z;F=!1;g.LX("ytLoggingEventsDefaultDisabled",!1)&&(F=!0);F=F?null:g.$3;z=z===void 0?{}:z;x=Math.round(z.timestamp||(0,g.VE)());sD(k,1,x<Number.MAX_SAFE_INTEGER?x:0);x=new yM;z.lact?sD(x,1,isFinite(z.lact)?z.lact:
-1):z.timestamp?sD(x,1,-1):(D=Vj(),sD(x,1,isFinite(D)?D:-1));if(z.sequenceGroup&&!g.sY("web_gel_sequence_info_killswitch")){D=z.sequenceGroup;var e=uGp(D),C=new JU;sD(C,2,e);r$(C,1,D);N6(x,JU,3,C);z.endOfSequence&&delete Vit[z.sequenceGroup]}N6(k,yM,33,x);(z.sendIsolatedPayload?nTC:Mlx)("latencyActionInfo",{endpoint:"log_event",payload:k,cttAuthInfo:z.cttAuthInfo,dangerousLogToVisitorSession:z.dangerousLogToVisitorSession},F)}};
cC.prototype.span=function(F,k,z){var x=Object.keys(F).join("");Va(this,"span_"+x+"_"+k)||(F.clientActionNonce=k,g.NA("latencyActionSpan",F,{cttAuthInfo:z}))};var v$=window,IH=v$.performance||v$.mozPerformance||v$.msPerformance||v$.webkitPerformance||new GI5;var Saa=!1,Zbx=!1,gE={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"},Jy9=(0,g.W6)(IH.clearResourceTimings||IH.webkitClearResourceTimings||IH.mozClearResourceTimings||IH.msClearResourceTimings||IH.oClearResourceTimings||g.h1,IH);var ITC=window;ITC.ytcsi&&(ITC.ytcsi.infoGel=g.MF,ITC.ytcsi.tick=nl);var iFH="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" "),$Hk=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var CeH=new Ij("INNERTUBE_TRANSPORT_TOKEN");g.T(zD,Cl);zD.prototype.U=function(){return w9n};
zD.prototype.L=function(F){return g.J(F,kn9)||void 0};
zD.prototype.Y=function(F,k,z){z=z===void 0?{}:z;k.channelIds&&(F.channelIds=k.channelIds);k.siloName&&(F.siloName=k.siloName);k.params&&(F.params=k.params);z.botguardResponse&&(F.botguardResponse=z.botguardResponse);z.feature&&(F.clientFeature=z.feature)};
g.An.Object.defineProperties(zD.prototype,{j:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.T(x_,Cl);x_.prototype.U=function(){return m3$};
x_.prototype.L=function(F){return g.J(F,FsY)||void 0};
x_.prototype.Y=function(F,k){k.channelIds&&(F.channelIds=k.channelIds);k.siloName&&(F.siloName=k.siloName);k.params&&(F.params=k.params)};
g.An.Object.defineProperties(x_.prototype,{j:{configurable:!0,enumerable:!0,get:function(){return!0}}});var HeC=new Ij("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");g.T(iZ,Cl);iZ.prototype.U=function(){return EN7};
iZ.prototype.L=function(F){return g.J(F,dT7)||g.J(F,JO$)||g.J(F,b8t)};
iZ.prototype.Y=function(F,k){k.serializedShareEntity&&(F.serializedSharedEntity=k.serializedShareEntity);if(k.clientParamIdentifier){var z;if((z=this.S)==null?0:z.Y(k.clientParamIdentifier))F.clientParams=this.S.L(k.clientParamIdentifier)}};
iZ[be]=[HeC];g.T(Dh,Cl);Dh.prototype.U=function(){return qpp};
Dh.prototype.L=function(F){return g.J(F,Z8H)||void 0};
Dh.prototype.Y=function(F,k,z){F.feedbackTokens=[];k.feedbackToken&&F.feedbackTokens.push(k.feedbackToken);if(k=k.cpn||z.cpn)F.feedbackContext={cpn:k};F.isFeedbackTokenUnencrypted=!!z.is_feedback_token_unencrypted;F.shouldMerge=!1;z.extra_feedback_tokens&&(F.shouldMerge=!0,F.feedbackTokens=F.feedbackTokens.concat(z.extra_feedback_tokens))};
g.An.Object.defineProperties(Dh.prototype,{j:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.T($_,Cl);$_.prototype.U=function(){return NRH};
$_.prototype.L=function(F){return g.J(F,Wv9)||void 0};
$_.prototype.Y=function(F,k){k.params&&(F.params=k.params);k.secondaryParams&&(F.secondaryParams=k.secondaryParams)};g.T(j1,Cl);j1.prototype.U=function(){return usA};
j1.prototype.L=function(F){return g.J(F,fPV)||void 0};
j1.prototype.Y=function(F,k){k.actions&&(F.actions=k.actions);k.params&&(F.params=k.params);k.playlistId&&(F.playlistId=k.playlistId)};g.T(e1,Cl);e1.prototype.U=function(){return X9C};
e1.prototype.L=function(F){return g.J(F,yOl)};
e1.prototype.Y=function(F,k,z){z=z===void 0?{}:z;k.serializedShareEntity&&(F.serializedSharedEntity=k.serializedShareEntity);z.includeListId&&(F.includeListId=!0)};var aTG=new Ij("FETCH_FN_TOKEN"),Spn=new Ij("PARSE_FN_TOKEN"),be9=new Ij("WINDOW_REQUEST_TOKEN");g.T(g.C1,g.Fa);var d3n=new Ij("NETWORK_SLI_TOKEN");Ac.prototype.fetch=function(F,k,z){var x=this,D,e,C;return g.O(function(p){D=jjD(x,F,k);C=(e=x.L)!=null?e:fetch;return p.return(C(D).then(function(E){return x.handleResponse(E,z)}).catch(function(E){g.yI(E);
if((z==null?0:z.XJ)&&E instanceof g.C1&&E.errorType===1)return Promise.reject(E)}))})};
Ac.prototype.handleResponse=function(F,k){var z,x=(z=this.U)!=null?z:JSON.parse;z=F.text().then(function(D){if((k==null?0:k.QS$)&&F.ok)return vrn(k.QS$,D);D=D.replace(")]}'","");if((k==null?0:k.XJ)&&D)try{var e=x(D)}catch(p){throw new g.C1(1,"JSON parsing failed after fetch");}var C;return(C=e)!=null?C:x(D)});
F.redirected||F.ok?this.Y&&this.Y.success():(this.Y&&this.Y.Vw_(),z=z.then(function(D){g.yI(new g.Fa("Error: API fetch failed",F.status,F.url,D));return Object.assign({},D,{errorMetadata:{status:F.status}})}));
return z};
Ac[be]=[aj(d3n),aj(aTG),aj(Spn),aj(be9)];var e$D=new Ij("NETWORK_MANAGER_TOKEN");var p1;qW.prototype.bindInnertubeChallengeFetcher=function(F){this.Y.bicf(F)};
qW.prototype.registerChallengeFetchedCallback=function(F){this.Y.bcr(F)};
qW.prototype.getLatestChallengeResponse=function(){return this.Y.blc()};var E3k=[],NW=!1;lZ.prototype.j=function(){var F=this;return g.O(function(k){return k.Y==1?g.c(k,Promise.race([F.Y,null]),2):k.return(!!k.L)})};
lZ.prototype.U=function(F,k,z){var x=this,D,e,C;return g.O(function(p){x.Y===null&&qxx(x,TD(x));D=!1;e={};C=function(){var E,X,q;return g.O(function(N){switch(N.Y){case 1:return g.c(N,x.Y,2);case 2:E=N.L;e.challenge=E.challenge;if(!E.d9){"c1a"in E.Hz&&(e.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");N.Sk(3);break}X=Object.assign({},{c:E.challenge,e:F},k);g.lD(N,4);D=!0;if(g.sY("attbs")&&!g.sY("attmusi")){q=E.d9.D0({vl:X});N.Sk(6);break}return g.c(N,E.d9.snapshot({vl:X}),7);case 7:q=N.L;case 6:q?e.webResponse=
q:e.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.sC(N,3);break;case 4:g.rI(N),e.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(F==="ENGAGEMENT_TYPE_PLAYBACK"){var u=E.Hz,w={};u.c6a&&(w.reportingStatus=String(Number(u.c)^uZ()));u.c6b&&(w.broadSpectrumDetectionResult=String(Number(u.c)^Number(g.LX("CATSTAT",0))));e.adblockReporting=w}return N.return(e)}})};
return p.return(Promise.race([C(),mHM(z,function(){var E=Object.assign({},e);D&&(E.error="ATTESTATION_ERROR_VM_TIMEOUT");return E})]))})};var Qj6=["APP_STATE","PI"];var jG6=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,160866,204249,
222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,
179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,
118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,
145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,
74617,77820,74618,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,218674,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,
152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,
36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,252201,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,
191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,
100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,
138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,
155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,
178921,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];hc.prototype.getState=function(){return this.store.getState()};
hc.prototype.dispatch=function(F){return this.store.dispatch(F)};
hc.prototype.subscribe=function(F){return this.store.subscribe(F)};
hc.prototype.replaceReducer=function(F){return this.store.replaceReducer(F)};
hc.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};g.A=rx.prototype;g.A.getLength=function(){return this.totalLength};
g.A.append=function(F){if(rPx(this,F)){var k=this.TU[this.TU.length-1];this.TU[this.TU.length-1]=new Uint8Array(k.buffer,k.byteOffset,k.length+F.length);UP(this)}else this.TU.push(F);this.totalLength+=F.length};
g.A.split=function(F){for(var k=new rx,z=new rx,x=g.l(this.TU),D=x.next();!D.done;D=x.next())D=D.value,F>=D.length?(k.append(D),F-=D.length):F?(k.append(new Uint8Array(D.buffer,D.byteOffset,F)),z.append(new Uint8Array(D.buffer,D.byteOffset+F,D.length-F)),F=0):z.append(D);return{LX:k,X9:z}};
g.A.isFocused=function(F){return F>=this.y7&&F<this.y7+this.TU[this.oz].length};
g.A.focus=function(F){if(!this.isFocused(F)){for(F<this.y7&&UP(this);this.y7+this.TU[this.oz].length<=F&&this.oz<this.TU.length;)this.y7+=this.TU[this.oz].length,this.oz+=1;this.dw=void 0}};
g.A.I0=function(F,k){return F+k<=this.totalLength};
g.A.TA=function(F,k){F=F===void 0?0:F;k=k===void 0?-1:k;if(!this.totalLength||!k)return new DataView(new ArrayBuffer(0));k<0&&(k=this.totalLength-F);this.focus(F);if(!tc(this,F,k)){var z=this.oz,x=this.y7;this.focus(F+k-1);x=new Uint8Array(this.y7+this.TU[this.oz].length-x);for(var D=0,e=z;e<=this.oz;e++)x.set(this.TU[e],D),D+=this.TU[e].length;this.TU.splice(z,this.oz-z+1,x);UP(this);this.focus(F)}z=this.TU[this.oz];return new DataView(z.buffer,z.byteOffset+F-this.y7,k)};
g.A.fk=function(F,k){F=this.TA(F===void 0?0:F,k===void 0?-1:k);return new Uint8Array(F.buffer,F.byteOffset,F.byteLength)};
g.A.getUint8=function(F){this.focus(F);return this.TU[this.oz][F-this.y7]};var PZ,vZ,Vx;g.Gv=function(){function F(x){for(var D=new Uint8Array(x.length),e=0;e<x.length;e++)D[e]=x[e];return D}
function k(x){return new Uint8Array(x)}
var z=new Uint8Array([1]);return z.length===1&&z[0]===1?k:F}();
PZ=Array(1024);vZ=window.TextDecoder?new TextDecoder:void 0;Vx=window.TextEncoder?new TextEncoder:void 0;for(var OF5={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,
fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,transfer:120,
trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},Pea={},Jlp=g.l(Object.entries(OF5)),ylD=Jlp.next();!ylD.done;ylD=Jlp.next()){var RuC=g.l(ylD.value),gN9=RuC.next().value,Yp$=RuC.next().value,nNG=gN9,Mi$=Yp$;Mi$&&(Pea[Mi$]=nNG)};var HF6=!1,mI,Tx,ls,Qc,h5;g.T(si,g.S);
si.prototype.encrypt=function(F){var k=F.length;F=new Uint8Array(F.buffer.slice(F.byteOffset,F.byteOffset+k));for(var z=this.L,x=0;x<k&&this.Y<16;)F[x++]^=z[this.Y++];for(var D=k-(k-x)%16;x<D;)a1H(this),F[x++]^=z[0],F[x++]^=z[1],F[x++]^=z[2],F[x++]^=z[3],F[x++]^=z[4],F[x++]^=z[5],F[x++]^=z[6],F[x++]^=z[7],F[x++]^=z[8],F[x++]^=z[9],F[x++]^=z[10],F[x++]^=z[11],F[x++]^=z[12],F[x++]^=z[13],F[x++]^=z[14],F[x++]^=z[15];if(x<k)for(a1H(this),this.Y=0;x<k;)F[x++]^=z[this.Y++];return F};var Ba=!1;(function(){function F(x){for(var D=new Uint8Array(x.length),e=0;e<x.length;e++)D[e]=x[e];return D}
function k(x){return new Uint8Array(x)}
var z=new Uint8Array([1]);return z.length===1&&z[0]===1?k:F})();
var Gx;g.t5.prototype.encrypt=function(F,k){var z=this,x,D;return g.O(function(e){if(e.Y==1){x=Ui();if(!x)return e.return(bFR(z,F,k));g.lD(e,3);return g.c(e,Sx9(z,F,k,x),5)}if(e.Y!=3)return e.return(e.L);D=g.rI(e);g.yI(D);Ba=!0;return e.return(bFR(z,F,k))})};
g.t5.prototype.decrypt=function(F,k){return this.encrypt(F,k)};
g.Zc.prototype.encrypt=function(F,k){this.Y||(this.Y=new si(this.L));rk(this.Y,k);return this.Y.encrypt(F)};
g.Zc.prototype.decrypt=function(F,k){return this.encrypt(F,k)};va.prototype.reset=function(){JPa(this);this.update(this.U)};
va.prototype.update=function(F){var k=0,z=F.length;this.j+=z;this.L&&this.L+z>=64&&(this.S.set(F.subarray(0,64-this.L),this.L),k=64-this.L,this.L=0,dHR(this,this.S,0));for(;k+64<=z;k+=64)dHR(this,F,k);k<z&&(F=F.subarray(k),this.S.set(F,this.L),this.L+=F.length)};
var ca=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,
4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var LsY;LsY={};g.fTC=g.jA("yt-idb-pref-storage",{C0:(LsY.prefs={Ot:1},LsY),shared:!1,upgrade:function(F,k){k(1)&&g.yE(g.HA(F,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});var c$;c$={};g.Kst=(c$.INVALID_ENCODER_VERSION="Invalid encoder version",c$.KEY_CREATION_FAILED="Failed to create encoder key",c$.UNKNOWN_DECODE_ERROR="Failed to decode PES data",c$.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",c$.WRONG_DATA_TYPE="Encoder cannot process the data type",c$);g.is("","downloadsPageViewConfigurationEntity");g.is("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");g.P$=g.is("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.is("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");g.is("SMART_DOWNLOADS_ENABLED","settingEntity");g.is("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var $Ek=new Ij("POSTMESSAGE_TUNNEL_TOKEN");var AVp=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];g.A=Oi.prototype;g.A.initialize=function(F,k,z,x){this.e5=x;if(F.program){var D;x=(D=F.interpreterUrl)!=null?D:null;if(F.interpreterSafeScript)D=ZTH(F.interpreterSafeScript);else{var e;D=(e=F.interpreterScript)!=null?e:null}F.interpreterSafeUrl&&(x=Gs(F.interpreterSafeUrl).toString());CdR(this,D,x,F.program,k,z)}else g.yI(Error("BL:CIP"))};
g.A.isInitialized=function(){return this.GQ()};
g.A.getState=function(){return this.state};
g.A.isLoading=function(){return this.state===2};
g.A.invoke=function(F){F=F===void 0?{}:F;return this.GQ()?this.pW({vl:F}):null};
g.A.dispose=function(){this.RT(null);this.pJ(8)};
g.A.GQ=function(){return!!this.d9};
g.A.pW=function(F){return this.d9.D0(F)};
g.A.RT=function(F){g.CC(this.d9);this.d9=F};
g.A.pJ=function(F){this.state=F};g.T(Iz,Oi);Iz.prototype.RT=function(F){var k;(k=Vc())==null||k.bgvma();F?(k={bgvma:F.dispose.bind(F),bgvmb:F.snapshot.bind(F),bgvmc:F.D0.bind(F)},g.dI("yt.abuse.playerAttLoader",k),g.dI("yt.abuse.playerAttLoaderRun",function(z){return F.snapshot(z)})):(g.dI("yt.abuse.playerAttLoader",null),g.dI("yt.abuse.playerAttLoaderRun",null))};
Iz.prototype.GQ=function(){return!!Vc()};
Iz.prototype.pW=function(F){return Vc().bgvmc(F)};Ha.prototype.Sq=function(){return"crossDeviceProgressCommand"};
Ha.prototype.yl=function(F){if(F.crossDevicePings){var k=[];F=g.l(F.crossDevicePings);for(var z=F.next();!z.done;z=F.next())k.push({baseUrl:z.value.baseUrl});g.NA("crossDeviceNotificationTransfer",{crossDevicePings:k})}};az.prototype.Sq=function(){return"muteAdEndpoint"};
az.prototype.yl=function(F,k){switch(F.type){case "SKIP":pzx(this.vO,this.JI,k)}};Sv.prototype.Sq=function(){return"openPopupAction"};
Sv.prototype.yl=function(){};bs.prototype.Sq=function(){return"pingingEndpoint"};
bs.prototype.yl=function(){};var mEC={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.T(Xzx,g.S);var dYa={wl_:"FINAL",plJ:"AD_BREAK_LENGTH",Ci4:"AD_CPN",kYh:"AH",Z$4:"AD_MT",D44:"ASR",O$J:"AW",vRK:"NM",dX_:"NX",YTk:"NY",a_h:"CONN",EZh:"CPN",G1p:"DV_VIEWABILITY",Mek:"ERRORCODE",Zk4:"ERROR_MSG",s6G:"EI",mVp:"GOOGLE_VIEWABILITY",I4p:"IAS_VIEWABILITY",t1k:"LACT",Xzf:"LIVE_TARGETING_CONTEXT",lht:"I_X",bdh:"I_Y",Ihp:"MT",JKh:"MIDROLL_POS",RLa:"MIDROLL_POS_MS",qSK:"MOAT_INIT",AKt:"MOAT_VIEWABILITY",St_:"P_H",eWK:"PV_H",WWt:"PV_W",cR4:"P_W",yRQ:"TRIGGER_TYPE",sjp:"SDKV",Eqf:"SLOT_POS",z7k:"SURVEY_LOCAL_TIME_EPOCH_S",
yIt:"SURVEY_ELAPSED_MS",yv:"VIS",d9a:"VIEWABILITY",Lha:"VED",U9p:"VOL",PCG:"WT",upG:"YT_ERROR_CODE"};yc.prototype.Sq=function(){return"urlEndpoint"};
yc.prototype.yl=function(F,k,z){var x=this.oU.get(),D=HF(x.L.get(),k);D?k=Hn(x,O5k(D),D,void 0,void 0,z):(To("Trying to ping from an unknown layout",void 0,void 0,{layoutId:k}),k={});k=Object.assign({},k);zU(this.Y,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(z=sI(this.Eh,2))&&(k.AD_CPN=z.clientPlaybackNonce);k=g.cN(F.url,k);F=g.Kv(k,void 0,void 0,void 0,F.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME");js6(F,k)};Rz.prototype.get=function(){return this.value};
g.T(gk,Rz);gk.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.T(YW,Rz);YW.prototype.getType=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"};
g.T(nB,Rz);nB.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.T(MN,Rz);MN.prototype.getType=function(){return"metadata_type_ads_engagement_panel_layout_view_model"};
g.T(LB,Rz);LB.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.T(fB,Rz);fB.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.T(KB,Rz);KB.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.T(Wa,Rz);Wa.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.T(Fl,Rz);Fl.prototype.getType=function(){return"metadata_type_banner_image_layout_view_model"};
g.T(kS,Rz);kS.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.T(oq,Rz);oq.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.T(zB,Rz);zB.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.T(xS,Rz);xS.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.T(iF,Rz);iF.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.T(DR,Rz);DR.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.T($S,Rz);$S.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.T(jM,Rz);jM.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.T(eM,Rz);eM.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.T(C2,Rz);C2.prototype.getType=function(){return"metadata_type_content_cpn"};
g.T(Au,Rz);Au.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.T(p2,Rz);p2.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"};
g.T(EE,Rz);EE.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.T(Xl,Rz);Xl.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
g.T(qy,Rz);qy.prototype.getType=function(){return"metadata_type_media_associated_in_player_slot"};
g.T(Ny,Rz);Ny.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.T(uF,Rz);uF.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.T(wo,Rz);wo.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.T(mu,Rz);mu.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.T(TB,Rz);TB.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.T(lF,Rz);lF.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.T(Qf,Rz);Qf.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.T(hu,Rz);hu.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.T(sE,Rz);sE.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
g.T(ro,Rz);ro.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.T(B0,Rz);B0.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.T(GB,Rz);GB.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.T(UE,Rz);UE.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.T(tu,Rz);tu.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.T(ZR,Rz);ZR.prototype.getType=function(){return"metadata_type_cue_point"};
g.T(v0,Rz);v0.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.T(c0,Rz);c0.prototype.getType=function(){return"metadata_type_player_vars"};
g.T(P0,Rz);P0.prototype.getType=function(){return"metadata_type_preload_player_vars"};
g.T(OE,Rz);OE.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.T(Vf,Rz);Vf.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.T(Iq,Rz);Iq.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.T(H0,Rz);H0.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.T(aq,Rz);aq.prototype.getType=function(){return"metadata_type_dai"};
g.T(SM,Rz);SM.prototype.getType=function(){return"metadata_type_ad_intro"};
g.T(bF,Rz);bF.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.T(Ju,Rz);Ju.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.T(yf,Rz);yf.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.T(Rq,Rz);Rq.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.T(go,Rz);go.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.T(YS,Rz);YS.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.T(n2,Rz);n2.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.T(My,Rz);My.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.T(L2,Rz);L2.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.T(f2,Rz);f2.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.T(K2,Rz);K2.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.T(W0,Rz);W0.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.T(FX,Rz);FX.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.T(kR,Rz);kR.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.T(oG,Rz);oG.prototype.getType=function(){return"metadata_type_active_view_identifier"};
g.T(zM,Rz);zM.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};
g.T(xR,Rz);xR.prototype.getType=function(){return"metadata_type_eligible_for_ssap"};
g.T(iw,Rz);iw.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};
g.T(Do,Rz);Do.prototype.getType=function(){return"metadata_type_player_bytes_slot_metadata"};
g.T($R,Rz);$R.prototype.getType=function(){return"metadata_type_prefetch_metadata"};var cVI=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var dEY=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
"trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.T(pE,N$);g.T(L,N$);new Promise(function(){});var hop=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),lWk=new Map([["normal",{L1:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",TI:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{L1:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",TI:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{L1:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",TI:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{L1:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",TI:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{L1:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",TI:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{L1:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",TI:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{L1:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",TI:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.T(hz,g.S);g.A=hz.prototype;g.A.v2=function(F,k){return this.Y.v2(F,k)};
g.A.wR=function(F,k){this.IS.Uw("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",F,k);for(var z=g.l(this.L),x=z.next();!x.done;x=z.next())x.value.wR(F,k)};
g.A.II=function(F){if(UB(this.Y,F)){this.IS.Se("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",F);this.Y.II(F);for(var k=g.l(this.L),z=k.next();!z.done;z=k.next())z.value.II(F);GGD(this,F)}};
g.A.GM=function(F){if(UB(this.Y,F)){this.IS.Se("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",F);this.Y.GM(F);for(var k=g.l(this.L),z=k.next();!z.done;z=k.next())z.value.GM(F);UB(this.Y,F)&&tz(this.Y,F).W&&Be(this,F,!1)}};
g.A.Jk=function(F){this.IS.Se("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",F);UB(this.Y,F)&&(this.Y.Jk(F),Be(this,F,!1))};
g.A.sH=function(F,k){if(UB(this.Y,F)){this.IS.jU("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",F,k);for(var z=g.l(this.L),x=z.next();!x.done;x=z.next())x.value.sH(F,k)}};
g.A.XI=function(F,k,z){if(UB(this.Y,F)){this.IS.jU(Qsn(z),F,k);this.Y.XI(F,k);for(var x=g.l(this.L),D=x.next();!D.done;D=x.next())D.value.XI(F,k,z);(z=Jz(this.Y,F))&&k.layoutId===z.layoutId&&aWI(this,F,!1)}};
g.A.hh=function(F,k,z,x){z.RO&&x?(To(z,F,k,void 0,z.qd),this.IS.bf(x,z.RO,F,k)):To("adsClientErrorMessage is missing.",F,k);Be(this,F,!0)};
g.A.h4=function(){var F=bdR(this.Y);F=g.l(F);for(var k=F.next();!k.done;k=F.next())Be(this,k.value,!1);g.S.prototype.h4.call(this)};
g.A.gR=function(F,k){this.IS.jU("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",F,k);this.IS.jU("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",F,k);for(var z=g.l(this.L),x=z.next();!x.done;x=z.next())x=x.value,k&&x.gR(F,k)};SK5.prototype.isActive=function(){switch(this.Y){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.T(g_,g.S);g.A=g_.prototype;g.A.v2=function(F,k){k=d_(this,F+"_"+k);F=[];k=g.l(k.values());for(var z=k.next();!z.done;z=k.next())F.push(z.value.slot);return F};
g.A.M0=function(F){F=tz(this,F);F.Y!=="not_scheduled"&&yi(F.slot,F.Y,"onSlotScheduled");F.Y="scheduled"};
g.A.vt=function(F){F=tz(this,F);F.j="fill_requested";F.G.vt()};
g.A.II=function(F){F=tz(this,F);F.Y!=="enter_requested"&&yi(F.slot,F.Y,"onSlotEntered");F.Y="entered"};
g.A.Jk=function(F){tz(this,F).j="fill_canceled"};
g.A.GM=function(F){F=tz(this,F);F.Y!=="exit_requested"&&yi(F.slot,F.Y,"onSlotExited");F.Y="scheduled"};
g.A.XI=function(F,k){F=tz(this,F);F.layout!=null&&F.layout.layoutId===k.layoutId&&(F.Y!=="rendering_stop_requested"&&yi(F.slot,F.Y,"onLayoutExited"),F.Y="entered")};g.T(MG,g.S);MG.prototype.get=function(){Math.random()<.001&&this.z4()&&To("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.Y());return this.instance};g.T(fE,g.S);fE.prototype.U=function(){return this.L};KE.prototype.executeCommand=function(F,k){J5(this.Y(),F,k)};kI.prototype.addListener=function(F){this.listeners.add(F)};
kI.prototype.removeListener=function(F){this.listeners.delete(F)};var Od={},Ae=(Od.AD_MARKER="ytp-ad-progress",Od.CHAPTER_MARKER="ytp-chapter-marker",Od.TIME_MARKER="ytp-time-marker",Od);var ykI=RegExp("^https?://([^.]*\\.moatads\\.com/|e[0-9]+\\.yt\\.srs\\.doubleverify\\.com|pagead2\\.googlesyndication\\.com/pagead/gen_204\\?id=yt3p&sr=1&|pm\\.adsafeprotected\\.com/youtube|pm\\.test-adsafeprotected\\.com/youtube|youtube[0-9]+\\.moatpixel\\.com/)"),fWa=RegExp("^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://(([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa|yt-music-green\\.corp)\\.youtube\\.com/|(tv|tv-green-qa|tv-green-qa\\.corp|tv-release-qa|tv-release-qa\\.corp|tv-integration-qa|tv-integration-qa\\.corp|yt-tv-autopush\\.corp|yt-tv-integration\\.corp|yt-tv-staging\\.corp)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/)"),
RjH=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),xhp=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),
oBI=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|prod\\.google\\.com|youtube\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),W5M=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"),
gXH=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),FiR=RegExp("^https?://(googleads\\.g\\.doubleclick\\.net/(aclk|pagead/conversion)|www\\.google\\.com/(aclk|pagead/conversion)|www\\.googleadservices\\.com/(aclk|pagead/(aclk|conversion))|www\\.youtube\\.com/pagead/conversion)"),K5H=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gyz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"),
YIM=RegExp("^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|2mdn\\.net|googlesyndication\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|googleads\\.g\\.doubleclick\\.net|prod\\.google\\.com|static\\.doubleclick\\.net|static\\.googleadsserving\\.cn|studioapi\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|youtubekids\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com)[.]?(:[0-9]+)?/|lightbox-(demos|builder)\\.appspot\\.com/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/ytplayer)"),
gh6=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com(/|$)|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://localhost\\.googleusercontent\\.com(:\\d+)?(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.google\\.com/culturalinstitute/manage/.*$|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|artsandculture\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"),
WsA=RegExp("^(https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://one\\.google\\.com|https://artsandculture\\.google\\.com|https://adstransparency\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?staging\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https://localhost\\.googleusercontent\\.com(:\\d+)?$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.ps.prototype.getId=function(){return this.id};
g.ps.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+jaM(this.start)+", "+jaM(this.end)+"]"};
g.ps.prototype.contains=function(F,k){return F>=this.start&&(F<this.end||F===this.end&&this.start===this.end)&&(k==null||F<k&&k<=this.end)};
var $hx=1;g.ps.prototype.getId=g.ps.prototype.getId;NQ.prototype.vt=function(){var F=this,k=0;MbH(this.Y,function(){var z=XX(F.slot.clientMetadata,"metadata_type_ad_break_request_data");k=Date.now();Cp(F.oU.get(),"abrs","ct."+k+";cmt."+F.ek.get().getCurrentTimeSec(1,!1)+";sid."+F.slot.slotId+";");return F.L.get().fetch({nC:z.getAdBreakUrl,CP:new g.ps(z.Qm,z.Uo),Ue:XX(F.slot.clientMetadata,"metadata_type_cue_point"),cueProcessedMs:z.cueProcessedMs})},function(){CGp(F)},function(z){var x=Date.now()-k;
Cp(F.oU.get(),"abrr","ct."+(new Date).getTime()+";cmt."+F.ek.get().getCurrentTimeSec(1,!1)+";l."+x.toString()+";sid."+F.slot.slotId+";");x=z.Rq;x.length>=2&&z.ssdaiAdsConfig&&To("Unexpected ad placement renderers length",F.slot,null,{length:x.length});var D;((D=z.adSlots)==null?0:D.some(function(e){var C,p;return((C=g.J(e,Y8))==null?void 0:(p=C.adSlotMetadata)==null?void 0:p.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||x.some(function(e){var C,p,E,X;
return!!((C=e.renderer)==null?0:(p=C.linearAdSequenceRenderer)==null?0:(E=p.linearAds)==null?0:E.length)||!((X=e.renderer)==null||!X.instreamVideoAdRenderer)})||CGp(F)})};
NQ.prototype.Ep=function(){L5n(this.Y)};uX.prototype.vt=function(){var F=this;MbH(this.L,function(){var k=XX(F.slot.clientMetadata,"metadata_type_ad_break_request_data");return k.cueProcessedMs?F.Y.get().fetch({nC:k.getAdBreakUrl,CP:new g.ps(k.Qm,k.Uo),cueProcessedMs:k.cueProcessedMs}):F.Y.get().fetch({nC:k.getAdBreakUrl,CP:new g.ps(k.Qm,k.Uo)})})};
uX.prototype.Ep=function(){L5n(this.L)};wG.prototype.vt=function(){var F=this.slot.clientMetadata,k,z=(k=this.slot.fulfilledLayout)!=null?k:XX(F,"metadata_type_fulfilled_layout");UEC(this.callback,this.slot,z)};
wG.prototype.Ep=function(){GM(this.callback,this.slot,new L("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")};TU.prototype.build=function(F,k){return k.fulfilledLayout||mR(k,{Xs:["metadata_type_fulfilled_layout"]})?new wG(F,k):this.U(F,k)};g.T(lX,TU);
lX.prototype.U=function(F,k){if(mR(k,{Xs:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new NQ(F,k,this.Y,this.L,this.Fv,this.Ff,this.oU,this.ek,this.jr);if(mR(k,{Xs:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new uX(F,k,this.Y,this.L,this.Fv,this.Ff);throw new L("Unsupported slot with type: "+k.slotType+" and client metadata: "+qG(k.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.T(Qk,TU);Qk.prototype.U=function(F,k){throw new L("Unsupported slot with type: "+k.slotType+" and client metadata: "+qG(k.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.A=AL5.prototype;g.A.ND=function(){return this.slot};
g.A.qJ=function(){return this.layout};
g.A.init=function(){};
g.A.release=function(){};
g.A.startRendering=function(F){if(F.layoutId!==this.layout.layoutId)this.callback.hh(this.slot,F,new pE("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 k=XX(F.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.sH(this.slot,F),GDp(this.U,
this.slot,k)):To("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,F)}};
g.A.Qf=function(F,k){F.layoutId!==this.layout.layoutId?this.callback.hh(this.slot,F,new pE("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.XI(this.slot,F,k),EB5(this),Xxk(this))};g.T(GU,g.uG);g.A=GU.prototype;g.A.ND=function(){return this.L.slot};
g.A.qJ=function(){return this.L.layout};
g.A.init=function(){this.U.get().addListener(this)};
g.A.release=function(){this.U.get().removeListener(this);this.dispose()};
g.A.X6=function(){};
g.A.Es=function(){};
g.A.ij=function(){};
g.A.s2=function(){};
g.A.startRendering=function(F){var k=this;Bn(this.L,F,function(){return void k.Lz()})};
g.A.Lz=function(){this.U.get().Lz(this.Y)};
g.A.Qf=function(F,k){var z=this;Bn(this.L,F,function(){var x=z.U.get();fsC(x,z.Y,3);z.Y=[];z.callback.XI(z.slot,F,k)})};
g.A.h4=function(){this.U.z4()||this.U.get().removeListener(this);g.uG.prototype.h4.call(this)};
g.An.Object.defineProperties(GU.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.L.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.L.layout}}});Vk.prototype.Ui=function(F,k){k=k===void 0?!1:k;var z=(this.U.get(F)||[]).concat();if(k=k&&wx6(F)){var x=this.U.get(k);x&&z.push.apply(z,g.r(x))}av(this,F,z);this.Y.add(F);k&&this.Y.add(k)};
Vk.prototype.wH=function(F,k){k=k===void 0?!1:k;if(!this.Y.has(F)){var z=k&&wx6(F);z&&(k=!this.Y.has(z));this.Ui(F,k)}};g.T(l4R,Nh);g.T(yk,GU);g.A=yk.prototype;g.A.W5=function(F,k){vn("ads-engagement-panel-layout",F,this.S.get().TO,this.oU.get(),this.j,this.W,this.ND(),this.qJ(),k)};
g.A.startRendering=function(F){te(this.MJ,this.ND(),this.qJ(),g.J(this.qJ().renderingContent,Ej),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(k,z,x,D,e){return new l4R(k,z,x,D,e)},this.Y);
GU.prototype.startRendering.call(this,F)};
g.A.sH=function(F,k){this.W===k.layoutId&&(this.j===null?this.j=this.oU.get().y_():To("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.A.XI=function(){};
g.A.M0=function(){};
g.A.q$=function(){};
g.A.Gr=function(){};
g.A.II=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(){};
g.A.gR=function(){};
g.A.wR=function(){};
g.A.h4=function(){r_(this.d3(),this);GU.prototype.h4.call(this)};g.T(h7Y,Nh);g.T(Rv,GU);g.A=Rv.prototype;g.A.W5=function(F,k){vn("banner-image",F,this.S.get().TO,this.oU.get(),this.j,this.W,this.ND(),this.qJ(),k)};
g.A.startRendering=function(F){te(this.MJ,this.ND(),this.qJ(),g.J(this.qJ().renderingContent,A8),this.callback,"metadata_type_banner_image_layout_view_model",function(k,z,x,D,e){return new h7Y(k,z,x,D,e)},this.Y);
GU.prototype.startRendering.call(this,F)};
g.A.sH=function(F,k){this.W===k.layoutId&&(this.j===null?this.j=this.oU.get().y_():To("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.A.XI=function(){};
g.A.M0=function(){};
g.A.q$=function(){};
g.A.Gr=function(){};
g.A.II=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(){};
g.A.gR=function(){};
g.A.wR=function(){};
g.A.h4=function(){r_(this.d3(),this);GU.prototype.h4.call(this)};g.T(gG,Nh);g.T(YI,GU);g.A=YI.prototype;g.A.W5=function(F,k){vn("action-companion",F,this.S.get().TO,this.oU.get(),this.j,this.W,this.ND(),this.qJ(),k)};
g.A.startRendering=function(F){te(this.MJ,this.ND(),this.qJ(),g.J(this.qJ().renderingContent,j7),this.callback,"metadata_type_action_companion_ad_renderer",function(k,z,x,D,e){return new gG(k,z,x,D,e)},this.Y);
GU.prototype.startRendering.call(this,F)};
g.A.sH=function(F,k){k.layoutId===this.layout.layoutId?this.MJ.wH("impression"):this.W===k.layoutId&&(this.j===null?this.j=this.oU.get().y_():To("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.A.XI=function(){};
g.A.M0=function(){};
g.A.q$=function(){};
g.A.Gr=function(){};
g.A.II=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(){};
g.A.gR=function(){};
g.A.wR=function(){};
g.A.h4=function(){r_(this.d3(),this);GU.prototype.h4.call(this)};g.T(Bt9,Nh);g.T(ns,GU);g.A=ns.prototype;g.A.W5=function(F,k){vn("image-companion",F,this.S.get().TO,this.oU.get(),this.j,this.W,this.ND(),this.qJ(),k)};
g.A.startRendering=function(F){te(this.MJ,this.ND(),this.qJ(),g.J(this.qJ().renderingContent,e7),this.callback,"metadata_type_image_companion_ad_renderer",function(k,z,x,D,e){return new Bt9(k,z,x,D,e)},this.Y);
GU.prototype.startRendering.call(this,F)};
g.A.sH=function(F,k){k.layoutId===this.layout.layoutId?this.MJ.wH("impression"):this.W===k.layoutId&&(this.j===null?this.j=this.oU.get().y_():To("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.A.XI=function(){};
g.A.M0=function(){};
g.A.q$=function(){};
g.A.Gr=function(){};
g.A.II=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(){};
g.A.gR=function(){};
g.A.wR=function(){};
g.A.h4=function(){r_(this.d3(),this);GU.prototype.h4.call(this)};g.T(UhR,Nh);g.T(MQ,GU);g.A=MQ.prototype;g.A.W5=function(F,k){vn("shopping-companion",F,this.S.get().TO,this.oU.get(),this.j,this.W,this.ND(),this.qJ(),k)};
g.A.startRendering=function(F){te(this.MJ,this.ND(),this.qJ(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(k,z,x,D,e){return new UhR(k,z,x,D,e)},this.Y);
GU.prototype.startRendering.call(this,F)};
g.A.sH=function(F,k){k.layoutId===this.layout.layoutId?this.MJ.wH("impression"):this.W===k.layoutId&&(this.j===null?this.j=this.oU.get().y_():To("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.A.XI=function(){};
g.A.M0=function(){};
g.A.q$=function(){};
g.A.Gr=function(){};
g.A.II=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(){};
g.A.gR=function(){};
g.A.wR=function(){};
g.A.h4=function(){r_(this.d3(),this);GU.prototype.h4.call(this)};g.T(fs,GU);g.A=fs.prototype;g.A.startRendering=function(F){te(this.MJ,this.ND(),this.qJ(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(k,z,x,D,e){return new gG(k,z,x,D,e)},this.Y);
GU.prototype.startRendering.call(this,F)};
g.A.sH=function(){};
g.A.XI=function(){};
g.A.M0=function(){};
g.A.q$=function(){};
g.A.Gr=function(){};
g.A.II=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(){};
g.A.gR=function(){};
g.A.wR=function(){};
g.A.h4=function(){r_(this.d3(),this);GU.prototype.h4.call(this)};
g.A.W5=function(){};g.A=OJY.prototype;g.A.ND=function(){return this.slot};
g.A.qJ=function(){return this.layout};
g.A.init=function(){this.ek.get().addListener(this);this.ek.get().oK.push(this);var F=XX(this.layout.clientMetadata,"metadata_type_video_length_seconds"),k=XX(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");cn(this.layout.hp)&&Fn(this.Fm.get(),this.layout.layoutId,{Hn:k,Gi:F,listener:this})};
g.A.release=function(){this.ek.get().removeListener(this);RzC(this.ek.get(),this);cn(this.layout.hp)&&kA(this.Fm.get(),this.layout.layoutId)};
g.A.startRendering=function(F){this.callback.sH(this.slot,F)};
g.A.Qf=function(F,k){NKD(this.Ff.get())&&!this.Y&&(this.MJ.wH("abandon"),this.Y=!0);this.callback.XI(this.slot,F,k)};
g.A.MB=function(F){switch(F.id){case "part2viewed":this.MJ.wH("start");this.MJ.wH("impression");break;case "videoplaytime25":this.MJ.wH("first_quartile");break;case "videoplaytime50":this.MJ.wH("midpoint");break;case "videoplaytime75":this.MJ.wH("third_quartile");break;case "videoplaytime100":NKD(this.Ff.get())?this.Y||(this.MJ.wH("complete"),this.Y=!0):this.MJ.wH("complete");Je(this.MJ)&&bX(this.MJ,Infinity,!0);uVI(this.Ff.get())&&Ls(this.L,Infinity,!0);break;case "engagedview":Je(this.MJ)||this.MJ.wH("progress");
break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:To("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.A.onVolumeChange=function(){};
g.A.PM=function(){};
g.A.I3=function(){};
g.A.kR=function(){};
g.A.onFullscreenToggled=function(){};
g.A.B5=function(){};
g.A.M4=function(){};
g.A.B_=function(F){uVI(this.Ff.get())&&Ls(this.L,F*1E3,!1);Je(this.MJ)&&bX(this.MJ,F*1E3,!1)};
g.A.D$=function(){};
g.A.xb=function(){this.MJ.wH("active_view_measurable")};
g.A.VF=function(){this.MJ.wH("active_view_viewable")};
g.A.nj=function(){this.MJ.wH("active_view_fully_viewable_audible_half_duration")};
g.A.bT=function(){this.MJ.wH("audio_measurable")};
g.A.lT=function(){this.MJ.wH("audio_audible")};g.T(Ks,GU);g.A=Ks.prototype;g.A.init=function(){GU.prototype.init.call(this);var F=XX(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),k={adsClientData:this.layout.V2};this.Y.push(new tI(F,this.layout.layoutId,XX(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),k,!0))};
g.A.UI=function(){this.j||this.ek.get().resumeVideo(1)};
g.A.startRendering=function(F){GU.prototype.startRendering.call(this,F);jo(this.ek.get(),"ad-showing");this.callback.sH(this.slot,F);this.W.Af=this};
g.A.Qf=function(F,k){GU.prototype.Qf.call(this,F,k);eo(this.ek.get(),"ad-showing");YA(this.W,this)};
g.A.W5=function(F){switch(F){case "ad-info-icon-button":(this.j=this.ek.get().bK(1))||this.ek.get().pauseVideo();break;case "visit-advertiser":this.ek.get().pauseVideo()}};
g.A.h4=function(){GU.prototype.h4.call(this)};g.T(Wn,Nh);g.T(Fo,GU);g.A=Fo.prototype;g.A.startRendering=function(F){te(this.MJ,this.ND(),this.qJ(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(k,z,x,D,e){return new Wn(k,z,x,D,e)},this.Y);
GU.prototype.startRendering.call(this,F)};
g.A.sH=function(){};
g.A.XI=function(){};
g.A.M0=function(){};
g.A.q$=function(){};
g.A.Gr=function(){};
g.A.II=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(){};
g.A.gR=function(){};
g.A.wR=function(){};
g.A.h4=function(){r_(this.d3(),this);GU.prototype.h4.call(this)};
g.A.W5=function(){};g.T(kg,Nh);g.T(oN,GU);oN.prototype.init=function(){GU.prototype.init.call(this);this.Y.push(new kg(g.J(this.layout.renderingContent,VS),this.layout.layoutId,{adsClientData:this.layout.V2}))};
oN.prototype.W5=function(){IT(this.j.get(),this.W)&&ZV(this.oU.get(),3)};
oN.prototype.startRendering=function(F){GU.prototype.startRendering.call(this,F);this.callback.sH(this.slot,F)};
oN.prototype.h4=function(){GU.prototype.h4.call(this)};g.T(z7,Nh);g.T(xg,GU);xg.prototype.init=function(){GU.prototype.init.call(this);var F=g.J(this.layout.renderingContent,uv)||XX(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),k=Uc(this.MJ);this.Y.push(new z7(F,k,this.layout.layoutId,{adsClientData:this.layout.V2},!0,!0))};
xg.prototype.startRendering=function(F){GU.prototype.startRendering.call(this,F);this.callback.sH(this.slot,F)};
xg.prototype.W5=function(F,k){if(k===this.layout.layoutId)switch(F){case "skip-button":var z;(F=(z=XX(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:z.current)&&F.Ch(this.ND(),this.layout)}};
xg.prototype.h4=function(){GU.prototype.h4.call(this)};D6.prototype.build=function(F,k,z,x){if(iv(x,{Xs:["metadata_type_ad_break_response_data"],v7:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new AL5(F,z,x,this.L,this.U,this.Y);throw new pE("Unsupported layout with type: "+x.layoutType+" and client metadata: "+qG(x.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.T(HJ6,Nh);g.T($g,GU);g.A=$g.prototype;g.A.W5=function(F,k){vn("ads-engagement-panel",F,this.S.get().TO,this.oU.get(),this.j,this.W,this.ND(),this.qJ(),k)};
g.A.startRendering=function(F){te(this.MJ,this.ND(),this.qJ(),g.J(this.qJ().renderingContent,CG),this.callback,"metadata_type_ads_engagement_panel_renderer",function(k,z,x,D,e){return new HJ6(k,z,x,D,e)},this.Y);
GU.prototype.startRendering.call(this,F)};
g.A.sH=function(F,k){k.layoutId===this.layout.layoutId?this.MJ.wH("impression"):this.W===k.layoutId&&(this.j===null?this.j=this.oU.get().y_():To("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.A.XI=function(){};
g.A.M0=function(){};
g.A.q$=function(){};
g.A.Gr=function(){};
g.A.II=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(){};
g.A.gR=function(){};
g.A.wR=function(){};
g.A.h4=function(){r_(this.d3(),this);GU.prototype.h4.call(this)};g.T(jD,GU);g.A=jD.prototype;g.A.W5=function(F,k){vn("top-banner-image-text-icon-buttoned",F,this.S.get().TO,this.oU.get(),this.j,this.W,this.ND(),this.qJ(),k)};
g.A.startRendering=function(F){te(this.MJ,this.ND(),this.qJ(),g.J(this.qJ().renderingContent,pG),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(k,z,x,D,e){return new Wn(k,z,x,D,e)},this.Y);
GU.prototype.startRendering.call(this,F)};
g.A.sH=function(F,k){this.W===k.layoutId&&(this.j===null?this.j=this.oU.get().y_():To("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.A.XI=function(){};
g.A.M0=function(){};
g.A.q$=function(){};
g.A.Gr=function(){};
g.A.II=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(){};
g.A.gR=function(){};
g.A.wR=function(){};
g.A.h4=function(){r_(this.d3(),this);GU.prototype.h4.call(this)};bJR.prototype.build=function(F,k,z,x){if(iv(x,a4R())||g.J(x.renderingContent,CG)!==void 0)return new $g(F,z,x,this.UJ,this.oU,this.d3,this.Fm,this.Y);if(iv(x,rLC())||g.J(x.renderingContent,j7)!==void 0)return new YI(F,z,x,this.UJ,this.oU,this.d3,this.Fm,this.Y);if(iv(x,GmR())||g.J(x.renderingContent,e7)!==void 0)return new ns(F,z,x,this.UJ,this.oU,this.d3,this.Fm,this.Y);if(iv(x,tLD()))return new MQ(F,z,x,this.UJ,this.oU,this.d3,this.Fm,this.Y);if(iv(x,PGD()))return new fs(F,z,x,this.UJ,this.oU,this.d3,
this.Fm,this.Y);if(iv(x,san())||g.J(x.renderingContent,A8)!==void 0)return new Rv(F,z,x,this.UJ,this.oU,this.d3,this.Fm,this.Y);if(iv(x,SeM())||g.J(x.renderingContent,pG)!==void 0)return new jD(F,z,x,this.UJ,this.oU,this.d3,this.Fm,this.Y);if(iv(x,VLa()))return new Fo(F,z,x,this.UJ,this.oU,this.d3,this.Fm,this.Y);if(iv(x,QaD())||g.J(x.renderingContent,Ej)!==void 0)return new yk(F,z,x,this.UJ,this.oU,this.d3,this.Fm,this.Y);throw new pE("Unsupported layout with type: "+x.layoutType+" and client metadata: "+
qG(x.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};dh6.prototype.build=function(F,k,z,x){if(iv(x,{Xs:["metadata_type_linked_player_bytes_layout_id"],v7:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new oN(F,z,x,this.UJ,this.oU,this.Y);throw new pE("Unsupported layout with type: "+x.layoutType+" and client metadata: "+qG(x.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.A=JLC.prototype;g.A.ND=function(){return this.slot};
g.A.qJ=function(){return this.layout};
g.A.init=function(){};
g.A.release=function(){};
g.A.startRendering=function(F){F.layoutId!==this.layout.layoutId?this.callback.hh(this.slot,F,new pE("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.sH(this.slot,F),this.MJ.wH("impression"),WE(this.p$,F,"normal"))};
g.A.Qf=function(F,k){F.layoutId!==this.layout.layoutId?this.callback.hh(this.slot,F,new pE("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.XI(this.slot,F,k)};g.A=R7H.prototype;g.A.ND=function(){return this.slot};
g.A.qJ=function(){return this.layout};
g.A.init=function(){};
g.A.release=function(){};
g.A.startRendering=function(F){F.layoutId!==this.layout.layoutId?this.callback.hh(this.slot,F,new pE("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.sH(this.slot,F),this.MJ.wH("impression"),WE(this.p$,F,"normal"))};
g.A.Qf=function(F,k){F.layoutId!==this.layout.layoutId?this.callback.hh(this.slot,F,new pE("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.XI(this.slot,F,k)};eD.prototype.build=function(F,k,z,x){if(!this.Ff.get().T.C().V("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(iv(x,yLM()))return new JLC(F,z,x,this.oU,this.p$)}else if(iv(x,{Xs:[],v7:["LAYOUT_TYPE_FORECASTING"]}))return new R7H(F,z,x,this.oU,this.p$);throw new pE("Unsupported layout with type: "+x.layoutType+" and client metadata: "+qG(x.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.T(nB5,Nh);g.T(CP,GU);g.A=CP.prototype;g.A.init=function(){GU.prototype.init.call(this);var F=g.J(this.layout.renderingContent,Nm)||XX(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),k={adsClientData:this.layout.V2};this.Y.push(new nB5(F,XX(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,k))};
g.A.UI=function(){this.j||this.ek.get().resumeVideo(2)};
g.A.startRendering=function(F){GU.prototype.startRendering.call(this,F);this.callback.sH(this.slot,F);this.W.Af=this};
g.A.Qf=function(F,k){GU.prototype.Qf.call(this,F,k);YA(this.W,this)};
g.A.W5=function(F){if(IT(this.S.get(),this.G))switch(F){case "visit-advertiser-link":ZV(this.oU.get(),3)}switch(F){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.j||this.ek.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.j=this.ek.get().bK(2))||this.ek.get().pauseVideo();break;case "visit-advertiser-link":this.ek.get().pauseVideo();MLp(this).yS();break;case "skip-button":if(F=MLp(this),
this.layout.renderingContent&&!ea(this.layout.clientMetadata,"metadata_type_dai")||!F.TN){var k;(F=(k=XX(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:k.current)&&F.Ch(this.ND(),this.layout)}else To("Requesting to skip by LegacyPlayerBytes when components enabled"),F.Az(this.ND(),this.layout)}};
g.A.h4=function(){GU.prototype.h4.call(this)};g.T(Aw,GU);g.A=Aw.prototype;g.A.init=function(){GU.prototype.init.call(this);var F=g.J(this.layout.renderingContent,qm)||XX(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),k={adsClientData:this.layout.V2},z;(z=!!this.layout.renderingContent)||(z=!pP(this).TN);this.Y.push(new tI(F,this.layout.layoutId,XX(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),k,z))};
g.A.UI=function(){this.j||this.ek.get().resumeVideo(2)};
g.A.startRendering=function(F){GU.prototype.startRendering.call(this,F);this.callback.sH(this.slot,F);this.W.Af=this};
g.A.Qf=function(F,k){GU.prototype.Qf.call(this,F,k);YA(this.W,this)};
g.A.W5=function(F){if(IT(this.S.get(),this.G))switch(F){case "visit-advertiser":ZV(this.oU.get(),3)}switch(F){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.j||this.ek.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.j=this.ek.get().bK(2))||this.ek.get().pauseVideo();break;case "visit-advertiser":this.ek.get().pauseVideo();pP(this).yS();break;case "skip-button":if(F=pP(this),this.layout.renderingContent&&
!ea(this.layout.clientMetadata,"metadata_type_dai")||!F.TN){var k;(F=(k=XX(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:k.current)&&F.Ch(this.ND(),this.layout)}else To("Requesting to skip by LegacyPlayerBytes"),F.Az(this.ND(),this.layout)}};
g.A.h4=function(){GU.prototype.h4.call(this)};g.T(f4Y,Nh);g.T(E3,GU);g.A=E3.prototype;g.A.startRendering=function(F){var k=this;Bn(this.L,F,function(){k.Y.push(new f4Y(XX(k.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),F.layoutId,F.V2));k.Lz();k.callback.sH(k.slot,F);g.n(W2(k.ek.get(),1),512)&&k.callback.hh(k.ND(),k.qJ(),new pE("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
g.A.M4=function(){};
g.A.B5=function(F){if(F.state.isError()){var k;this.callback.hh(this.ND(),this.qJ(),new pE("A player error happened during adNotify",{playerErrorCode:(k=F.state.YA)==null?void 0:k.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}};
g.A.onFullscreenToggled=function(){};
g.A.I3=function(){};
g.A.kR=function(){};
g.A.PM=function(){};
g.A.onVolumeChange=function(){};
g.A.MB=function(){};
g.A.D$=function(){};
g.A.W5=function(){};g.T(Wi6,Nh);g.T(Xo,GU);Xo.prototype.init=function(){GU.prototype.init.call(this);var F=g.J(this.layout.renderingContent,wu),k=Uc(this.MJ);this.Y.push(new Wi6(F,k,this.layout.layoutId,{adsClientData:this.layout.V2}))};
Xo.prototype.startRendering=function(F){GU.prototype.startRendering.call(this,F);this.callback.sH(this.slot,F)};
Xo.prototype.W5=function(F,k){if(k===this.layout.layoutId)switch(F){case "skip-button":var z;(F=(z=XX(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:z.current)&&F.Ch(this.ND(),this.layout)}};
Xo.prototype.h4=function(){GU.prototype.h4.call(this)};F26.prototype.build=function(F,k,z,x){if(F=mS(F,z,x,this.UJ,this.ek,this.oU,this.L,this.Y,this.Ff))return F;throw new pE("Unsupported layout with type: "+x.layoutType+" and client metadata: "+qG(x.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.A=QQ.prototype;g.A.ND=function(){return this.slot};
g.A.qJ=function(){return this.layout};
g.A.init=function(){this.ek.get().addListener(this);this.ek.get().oK.push(this);var F=this.layout.renderingContent?sI(this.xG.get(),1).Sm/1E3:XX(this.layout.clientMetadata,"metadata_type_video_length_seconds"),k=g.J(this.layout.renderingContent,cQ),z=k?Pn(k.pings):XX(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");k=k?uHa(k.pings):XX(this.layout.clientMetadata,"metadata_type_active_view_identifier");cn(this.layout.hp)&&Fn(this.Fm.get(),this.layout.layoutId,{Hn:z,Gi:F,listener:this,
lk:k})};
g.A.release=function(){this.ek.get().removeListener(this);RzC(this.ek.get(),this);cn(this.layout.hp)&&kA(this.Fm.get(),this.layout.layoutId)};
g.A.startRendering=function(F){this.callback.sH(this.slot,F)};
g.A.Qf=function(F,k){hw(this,"abandon");this.callback.XI(this.slot,F,k)};
g.A.MB=function(F){switch(F.id){case "part2viewed":this.MJ.wH("start");this.MJ.wH("impression");break;case "videoplaytime25":this.MJ.wH("first_quartile");break;case "videoplaytime50":this.MJ.wH("midpoint");break;case "videoplaytime75":this.MJ.wH("third_quartile");break;case "videoplaytime100":hw(this,"complete");Je(this.MJ)&&bX(this.MJ,Infinity,!0);break;case "engagedview":Je(this.MJ)||this.MJ.wH("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:To("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}};
g.A.onVolumeChange=function(){};
g.A.PM=function(){};
g.A.I3=function(){};
g.A.kR=function(){};
g.A.onFullscreenToggled=function(){};
g.A.B5=function(F){this.Y||(g.hI(F,4)&&!g.hI(F,2)?S9(this.MJ,"pause"):Qo(F,4)<0&&!(Qo(F,2)<0)&&S9(this.MJ,"resume"))};
g.A.M4=function(){};
g.A.B_=function(F){Je(this.MJ)&&bX(this.MJ,F*1E3,!1)};
g.A.D$=function(){hw(this,"swipe")};
g.A.xb=function(){this.MJ.wH("active_view_measurable")};
g.A.VF=function(){this.MJ.wH("active_view_viewable")};
g.A.nj=function(){this.MJ.wH("active_view_fully_viewable_audible_half_duration")};
g.A.bT=function(){this.MJ.wH("audio_measurable")};
g.A.lT=function(){this.MJ.wH("audio_audible")};koI.prototype.build=function(F,k,z,x){if(z.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.J(x.renderingContent,cQ)!==void 0)return new QQ(F,z,x,this.ek,this.oU,this.Ff,this.Fm,this.xG);k=["metadata_type_ad_placement_config"];for(var D=g.l(Iv()),e=D.next();!e.done;e=D.next())k.push(e.value);if(iv(x,{Xs:k,v7:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return z.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new QQ(F,z,x,this.ek,this.oU,this.Ff,this.Fm,this.xG):new OJY(F,z,x,this.ek,this.oU,
this.z$,this.Ff,this.Fm);throw new pE("Unsupported layout with type: "+x.layoutType+" and client metadata: "+qG(x.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var G7={contentCpn:"",Mw:new Map};AIa.prototype.LN=function(F,k){var z={};k=Object.assign({},k,(z.cc=this.Eh.NV(),z));this.Eh.T.UK(F,k)};var FqV,V3;
FqV={h1$:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",GO4:"AUTHENTICATION_MALFORMED",JiR:"AUTHENTICATION_MISSING",qFJ:"BAD_REQUEST",uZ4:"CAST_SESSION_DEVICE_MISMATCHED",MjR:"CAST_SESSION_VIDEO_MISMATCHED",pM$:"CAST_TOKEN_EXPIRED",C0$:"CAST_TOKEN_FAILED",kOJ:"CAST_TOKEN_MALFORMED",Zbf:"CGI_PARAMS_MALFORMED",DBJ:"CGI_PARAMS_MISSING",gZt:"DEVICE_FALLBACK",pNa:"GENERIC_WITH_LINK_AND_CPN",Cdh:"ERROR_HDCP",k14:"LICENSE",DXG:"VIDEO_UNAVAILABLE",dVp:"FORMAT_UNAVAILABLE",PJ_:"GEO_FAILURE",
o1h:"HTML5_AUDIO_RENDERER_ERROR",l4h:"GENERIC_WITHOUT_LINK",bFh:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",n1R:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",xV4:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",Vhk:"HTML5_SPS_UMP_STATUS_REJECTED",Bpa:"INVALID_DRM_MESSAGE",Va$:"PURCHASE_NOT_FOUND",IWQ:"PURCHASE_REFUNDED",Hsf:"RENTAL_EXPIRED",pxJ:"RETRYABLE_ERROR",rR4:"SERVER_ERROR",h7G:"SIGNATURE_EXPIRED",T0k:"STOPPED_BY_ANOTHER_PLAYBACK",S0K:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",e74:"STREAMING_NOT_ALLOWED",
WDU:"STREAM_LICENSE_NOT_FOUND",nq_:"TOO_MANY_REQUESTS",xmG:"TOO_MANY_REQUESTS_WITH_LINK",VgJ:"TOO_MANY_STREAMS_PER_ENTITLEMENT",ImJ:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",rIQ:"VIDEO_FORBIDDEN",vqa:"VIDEO_NOT_FOUND",Hbp:"BROWSER_OR_EXTENSION_ERROR"};V3={};
g.I7=(V3.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.",V3.DEVICE_FALLBACK="Sorry, this video is not available on this device.",V3.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",V3.LICENSE="Sorry, there was an error licensing this video.",V3.VIDEO_UNAVAILABLE=
"Video unavailable",V3.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",V3.GEO_FAILURE="This video isn't available in your country.",V3.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",V3.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",V3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",V3.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",
V3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",V3.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",V3.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",V3.PURCHASE_NOT_FOUND="This video requires payment.",V3.PURCHASE_REFUNDED="This video's purchase has been refunded.",V3.RENTAL_EXPIRED="This video's rental has expired.",V3.CAST_SESSION_DEVICE_MISMATCHED=
"The device in the cast session doesn't match the requested one.",V3.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",V3.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",V3.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",V3.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",V3.SERVER_ERROR="There was an internal server error. Please try again later.",V3.STOPPED_BY_ANOTHER_PLAYBACK=
"Your account is playing this video in another location. Please reload this page to resume watching.",V3.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",V3.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",V3.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",V3.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",V3.TOO_MANY_REQUESTS="Please log in to watch this video.",
V3.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",V3.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",V3.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",V3.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",V3.VIDEO_FORBIDDEN="Access to this video is forbidden.",V3.VIDEO_NOT_FOUND="This video can not be found.",V3.BROWSER_OR_EXTENSION_ERROR=
"Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",V3);var kSn;var o6$=g.ZH(),znC=o6$.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!znC||znC.length<2)kSn=void 0;else{var x6$=o6$.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);kSn=x6$&&x6$.length===6?Number(x6$[5].replace("_",".")):0}var dm=kSn,vm=dm>=0;g.T(g.yQ,PW);g.yQ.prototype.N=function(F,k,z,x,D){return PW.prototype.N.call(this,F,k,z,x,D)};var Ie={},Qg=(Ie.FAIRPLAY="fairplay",Ie.PLAYREADY="playready",Ie.WIDEVINE="widevine",Ie.CLEARKEY=null,Ie.FLASHACCESS=null,Ie.UNKNOWN=null,Ie.WIDEVINE_CLASSIC=null,Ie);RN.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var H$={},tX=(H$.WIDTH={name:"width",video:!0,valid:640,g0:99999},H$.HEIGHT={name:"height",video:!0,valid:360,g0:99999},H$.FRAMERATE={name:"framerate",video:!0,valid:30,g0:9999},H$.BITRATE={name:"bitrate",video:!0,valid:3E5,g0:2E9},H$.EOTF={name:"eotf",video:!0,valid:"bt709",g0:"catavision"},H$.CHANNELS={name:"channels",video:!1,valid:2,g0:99},H$.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",g0:"invalidformat"},H$.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
g0:"nope"},H$.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",g0:"av99.0.05M.08"},H$.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",g0:"invalid"},H$);var iWA=["h","H"],D67=["9","("],$6Y=["9h","(h"],jKH=["8","*"],enD=["a","A"],Ctn=["o","O"],A0n=["m","M"],pRC=["mac3","MAC3"],E6D=["meac3","MEAC3"],ae={},AHn=(ae.h=iWA,ae.H=iWA,ae["9"]=D67,ae["("]=D67,ae["9h"]=$6Y,ae["(h"]=$6Y,ae["8"]=jKH,ae["*"]=jKH,ae.a=enD,ae.A=enD,ae.o=Ctn,ae.O=Ctn,ae.m=A0n,ae.M=A0n,ae.mac3=pRC,ae.MAC3=pRC,ae.meac3=E6D,ae.MEAC3=E6D,ae),XRA=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),zmI=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var f={},fP=(f["0"]="f",f["160"]="h",f["133"]="h",f["134"]="h",f["135"]="h",f["136"]="h",f["137"]="h",f["264"]="h",f["266"]="h",f["138"]="h",f["298"]="h",f["299"]="h",f["304"]="h",f["305"]="h",f["214"]="h",f["216"]="h",f["374"]="h",f["375"]="h",f["140"]="a",f["141"]="ah",f["327"]="sa",f["258"]="m",f["380"]="mac3",f["328"]="meac3",f["161"]="H",f["142"]="H",f["143"]="H",f["144"]="H",f["222"]="H",f["223"]="H",f["145"]="H",f["224"]="H",f["225"]="H",f["146"]="H",f["226"]="H",f["227"]="H",f["147"]="H",
f["384"]="H",f["376"]="H",f["385"]="H",f["377"]="H",f["149"]="A",f["261"]="M",f["381"]="MAC3",f["329"]="MEAC3",f["598"]="9",f["278"]="9",f["242"]="9",f["243"]="9",f["244"]="9",f["775"]="9",f["776"]="9",f["777"]="9",f["778"]="9",f["779"]="9",f["780"]="9",f["781"]="9",f["782"]="9",f["783"]="9",f["247"]="9",f["248"]="9",f["353"]="9",f["355"]="9",f["356"]="9",f["271"]="9",f["577"]="9",f["313"]="9",f["579"]="9",f["272"]="9",f["302"]="9",f["303"]="9",f["407"]="9",f["408"]="9",f["308"]="9",f["315"]="9",
f["330"]="9h",f["331"]="9h",f["332"]="9h",f["333"]="9h",f["334"]="9h",f["335"]="9h",f["336"]="9h",f["337"]="9h",f["338"]="so",f["600"]="o",f["250"]="o",f["251"]="o",f["774"]="o",f["194"]="*",f["195"]="*",f["220"]="*",f["221"]="*",f["196"]="*",f["197"]="*",f["279"]="(",f["280"]="(",f["317"]="(",f["318"]="(",f["273"]="(",f["274"]="(",f["357"]="(",f["358"]="(",f["275"]="(",f["359"]="(",f["360"]="(",f["276"]="(",f["583"]="(",f["584"]="(",f["314"]="(",f["585"]="(",f["561"]="(",f["277"]="(",f["361"]="(h",
f["362"]="(h",f["363"]="(h",f["364"]="(h",f["365"]="(h",f["366"]="(h",f["591"]="(h",f["592"]="(h",f["367"]="(h",f["586"]="(h",f["587"]="(h",f["368"]="(h",f["588"]="(h",f["562"]="(h",f["409"]="(",f["410"]="(",f["411"]="(",f["412"]="(",f["557"]="(",f["558"]="(",f["394"]="1",f["395"]="1",f["396"]="1",f["397"]="1",f["398"]="1",f["399"]="1",f["720"]="1",f["721"]="1",f["400"]="1",f["401"]="1",f["571"]="1",f["402"]="1",f["694"]="1h",f["695"]="1h",f["696"]="1h",f["697"]="1h",f["698"]="1h",f["699"]="1h",f["700"]=
"1h",f["701"]="1h",f["702"]="1h",f["703"]="1h",f["386"]="3",f["387"]="w",f["406"]="6",f["787"]="1",f["788"]="1",f["548"]="1e",f["549"]="1e",f["550"]="1e",f["551"]="1e",f["809"]="1e",f["810"]="1e",f["552"]="1e",f["811"]="1e",f["812"]="1e",f["553"]="1e",f["813"]="1e",f["814"]="1e",f["554"]="1e",f["815"]="1e",f["816"]="1e",f["555"]="1e",f["817"]="1e",f["818"]="1e",f["572"]="1e",f["556"]="1e",f["645"]="(",f["646"]="(",f["647"]="(",f["648"]="(",f["649"]="(",f["650"]="(",f["651"]="(",f["652"]="(",f["653"]=
"(",f["654"]="(",f["655"]="(",f["656"]="(",f["657"]="(",f["658"]="(",f["659"]="(",f["660"]="(",f["661"]="(",f["662"]="(",f["663"]="(",f["664"]="(",f["665"]="(",f["666"]="(",f["667"]="(",f["668"]="(",f["669"]="(",f["670"]="(",f["671"]="(",f["672"]="(",f["673"]="(",f["674"]="(h",f["675"]="(h",f["676"]="(h",f["677"]="(h",f["678"]="(h",f["679"]="(h",f["680"]="(h",f["681"]="(h",f["682"]="(h",f["683"]="(h",f["684"]="(h",f["685"]="(h",f["686"]="(h",f["687"]="(h",f["688"]="A",f["689"]="A",f["690"]="A",f["691"]=
"MEAC3",f["773"]="i",f["806"]="I",f["805"]="I",f["829"]="9",f["830"]="9",f["831"]="9",f["832"]="9",f["833"]="9",f["834"]="9",f["835"]="9",f["836"]="9",f["837"]="9",f["838"]="9",f["839"]="9",f["840"]="9",f["841"]="(",f["842"]="(",f["843"]="(",f["844"]="(",f["845"]="(",f["846"]="(",f["847"]="(",f["848"]="(",f["849"]="(",f["850"]="(",f["851"]="(",f["852"]="(",f["865"]="9",f["866"]="9",f["867"]="9",f["868"]="9",f["869"]="9",f["870"]="9",f["871"]="9",f["872"]="9",f["873"]="9",f["874"]="9",f["875"]="9",
f["876"]="9",f["877"]="(",f["878"]="(",f["879"]="(",f["880"]="(",f["881"]="(",f["882"]="(",f["883"]="(",f["884"]="(",f["885"]="(",f["886"]="(",f["887"]="(",f["888"]="(",f);var Sq={},gbH=(Sq.STEREO_LAYOUT_UNKNOWN=0,Sq.STEREO_LAYOUT_LEFT_RIGHT=1,Sq.STEREO_LAYOUT_TOP_BOTTOM=2,Sq);var bg,q4;bg={};g.Yg=(bg.auto=0,bg.tiny=144,bg.light=144,bg.small=240,bg.medium=360,bg.large=480,bg.hd720=720,bg.hd1080=1080,bg.hd1440=1440,bg.hd2160=2160,bg.hd2880=2880,bg.highres=4320,bg);q4={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var Mm="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");nP.prototype.isHdr=function(){return this.Y==="smpte2084"||this.Y==="arib-std-b67"};KP.prototype.Xv=function(){return this.containerType===2};
KP.prototype.isEncrypted=function(){return!!this.J5};
KP.prototype.QZ=function(){return!!this.audio};
KP.prototype.Ci=function(){return!!this.video};
var kb=!1;g.T(lK,g.uG);g.A=lK.prototype;g.A.appendBuffer=function(F,k,z){if(this.U3.Pf()!==this.appendWindowStart+this.start||this.U3.Tk()!==this.appendWindowEnd+this.start||this.U3.Hj()!==this.timestampOffset+this.start)this.U3.supports(1),this.U3.oT(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.U3.g8(this.timestampOffset+this.start);this.U3.appendBuffer(F,k,z)};
g.A.abort=function(){this.U3.abort()};
g.A.remove=function(F,k){this.U3.remove(F+this.start,k+this.start)};
g.A.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.A.clear=function(){this.U3.clear()};
g.A.oT=function(F,k){this.appendWindowStart=F;this.appendWindowEnd=k};
g.A.Us=function(){return this.timestampOffset+this.start};
g.A.Pf=function(){return this.appendWindowStart};
g.A.Tk=function(){return this.appendWindowEnd};
g.A.g8=function(F){this.timestampOffset=F};
g.A.Hj=function(){return this.timestampOffset};
g.A.Kv=function(F){F=this.U3.Kv(F===void 0?!1:F);return T$(F,this.start,this.end)};
g.A.Ck=function(){return this.U3.Ck()};
g.A.kx=function(){return this.U3.kx()};
g.A.Ls=function(){return this.U3.Ls()};
g.A.w4=function(){return this.U3.w4()};
g.A.Sx=function(){this.U3.Sx()};
g.A.KU=function(F){return this.U3.KU(F)};
g.A.T0=function(){return this.U3.T0()};
g.A.nH=function(){return this.U3.nH()};
g.A.I2=function(){return this.U3.I2()};
g.A.W3=function(F,k,z){this.U3.W3(F,k,z)};
g.A.gN=function(F,k,z){this.U3.gN(F,k,z)};
g.A.IM=function(F,k){return this.U3.IM(F,k)};
g.A.supports=function(F){return this.U3.supports(F)};
g.A.VA=function(){return this.U3.VA()};
g.A.isView=function(){return!0};
g.A.RX=function(){return this.U3.RX()?this.isActive:!1};
g.A.isLocked=function(){return this.qP&&!this.isActive};
g.A.rH=function(F){F=this.U3.rH(F);F.vw=this.start+"-"+this.end;return F};
g.A.xx=function(){return this.U3.xx()};
g.A.O9=function(){return this.U3.O9()};
g.A.K2=function(){return this.U3.K2()};
g.A.h4=function(){this.U3.M_(this.tQ);g.uG.prototype.h4.call(this)};var Bg=!1;g.T(ht,g.uG);g.A=ht.prototype;g.A.appendBuffer=function(F,k,z){this.TG=!1;z&&(this.QY=z);if(F.length){var x;((x=this.xu)==null?0:x.appendBuffer)?this.xu.appendBuffer(F):this.xu?this.xu.append(F):this.fn&&this.fn.webkitSourceAppend(this.id,F)}k&&(k.isEncrypted()&&(this.QW=this.QY),k.type===3&&(this.ag=k),this.Uu.push(k.mu()),this.Uu.length>4&&this.Uu.shift());this.Ne&&(this.Ne.length>=2||F.length>1048576?delete this.Ne:this.Ne.push(F))};
g.A.abort=function(){try{this.xu?this.xu.abort():this.fn&&this.fn.webkitSourceAbort(this.id)}catch(F){C5I&&g.JV(new g.Fa("Error while abort the source buffer: "+F.name+", "+F.message))}this.QY=this.ag=null};
g.A.remove=function(F,k,z){this.TG=!1;var x;if((x=this.xu)==null?0:x.remove)z&&z({b:XW(this.Kv()),s:F,e:k}),this.xu.remove(F,k)};
g.A.removeAll=function(){this.remove(this.Pf(),this.Tk())};
g.A.clear=function(){this.Ls()||(this.abort(),this.removeAll(),this.QW=this.QY=this.ag=null,this.appendWindowStart=this.timestampOffset=0,this.hB=EH([],[]),this.TG=!1,this.Ne=QH?[]:void 0,this.H9=!0)};
g.A.Pf=function(){if(Bg&&this.Ci)return this.appendWindowStart;var F;return((F=this.xu)==null?void 0:F.appendWindowStart)||0};
g.A.Tk=function(){var F;return((F=this.xu)==null?void 0:F.appendWindowEnd)||0};
g.A.oT=function(F,k){this.xu&&(Bg&&this.Ci?(this.appendWindowStart=F,this.xu.appendWindowEnd=k):F>this.Pf()?(this.xu.appendWindowEnd=k,this.xu.appendWindowStart=F):(this.xu.appendWindowStart=F,this.xu.appendWindowEnd=k))};
g.A.Us=function(){return this.timestampOffset};
g.A.g8=function(F){Bg?this.timestampOffset=F:this.supports(1)&&(this.xu.timestampOffset=F)};
g.A.Hj=function(){return Bg?this.timestampOffset:this.supports(1)?this.xu.timestampOffset:0};
g.A.Kv=function(F){if(F===void 0?0:F)return this.TG||this.Ck()||(this.hB=this.Kv(!1),this.TG=!0),this.hB;try{return this.xu?this.xu.buffered:this.fn?this.fn.webkitSourceBuffered(this.id):EH([0],[Infinity])}catch(k){return EH([],[])}};
g.A.Ck=function(){var F;return((F=this.xu)==null?void 0:F.updating)||!1};
g.A.Ls=function(){return this.H9};
g.A.w4=function(){return!this.H9&&this.Ck()};
g.A.Sx=function(){this.H9=!1};
g.A.KU=function(F){var k=F==null?void 0:F.DQ;F=F==null?void 0:F.containerType;return!k&&!F||k===this.DQ&&F===this.containerType};
g.A.T0=function(){return this.QY};
g.A.nH=function(){return this.QW};
g.A.IM=function(F,k){return this.containerType!==F||this.DQ!==k};
g.A.W3=function(F,k,z){if(this.containerType!==F||z&&this.IM(F,z))this.supports(4),Mi()&&this.xu.changeType(k),z&&(this.DQ=z);this.containerType=F};
g.A.gN=function(F,k,z){this.containerType&&this.IM(F,k)&&Mi()&&this.xu.changeType(z);this.containerType=F;this.DQ=k};
g.A.VA=function(){return this.ag};
g.A.isView=function(){return!1};
g.A.supports=function(F){switch(F){case 1:var k;return((k=this.xu)==null?void 0:k.timestampOffset)!==void 0;case 0:var z;return!((z=this.xu)==null||!z.appendBuffer);case 2:var x;return!((x=this.xu)==null||!x.remove);case 3:var D,e;return!!(((D=this.xu)==null?0:D.addEventListener)&&((e=this.xu)==null?0:e.removeEventListener));case 4:return!(!this.xu||!this.xu.changeType);default:return!1}};
g.A.RX=function(){return!this.Ck()};
g.A.isLocked=function(){return!1};
g.A.rH=function(F){F.to=this.Hj();F.up=this.Ck();var k,z=((k=this.xu)==null?void 0:k.appendWindowStart)||0,x;k=((x=this.xu)==null?void 0:x.appendWindowEnd)||Infinity;F.aw=z.toFixed(3)+"-"+k.toFixed(3);return F};
g.A.kx=function(){var F;return((F=this.xu)==null?void 0:F.writeHead)||0};
g.A.xx=function(){for(var F={},k=0;k<this.Uu.length;k++)F["s"+k]=this.Uu[k];return F};
g.A.h4=function(){this.supports(3)&&(this.xu.removeEventListener("updateend",this.j9),this.xu.removeEventListener("error",this.j9));g.uG.prototype.h4.call(this)};
g.A.O9=function(){return this.containerType};
g.A.I2=function(){return this.DQ};
g.A.K2=function(){return this.Ne};
var QH=!1,C5I=!1;Lm.prototype.dispose=function(){if(!this.z4()){if(this.Y)try{URL.revokeObjectURL(this.ez)}catch(F){}this.L=!0}};
Lm.prototype.z4=function(){return this.L};
Lm.prototype.VZ=function(F){return F!==null&&F.ez===this.ez};
Lm.prototype.toString=function(){return"MediaResource {"+this.ez+"}"};g.T(fm,g.S);g.A=fm.prototype;g.A.getDuration=function(){var F;return((F=this.IU)==null?void 0:F.duration)||this.K};
g.A.zc=function(F){try{this.IU?this.IU.duration=F:(this.K=F,this.fn.webkitSourceSetDuration(F))}catch(k){}};
g.A.j5=function(){try{return oQ(this)==="closed"}catch(F){return!0}};
g.A.Ck=function(){return!!(this.Y&&this.Y.Ck()||this.L&&this.L.Ck())};
g.A.isAsync=function(){return this.Y?!!this.Y.supports(0):zF()};
g.A.IFK=function(){!this.z4()&&Km(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.A.VZ4=function(){this.dispose()};
g.A.v0=function(F){if(WH&&!this.j&&F.Ls()&&F.Kv().length===0){var k;Fg(this.mediaElement,{l:"mswoue",sr:(k=this.mediaElement.La)==null?void 0:k.XZ()},!1);F.Sx();this.Ls()||(this.mediaElement.j0=!0,this.mediaElement.setCurrentTime(0))}};
g.A.mC=function(){return!!this.Y.supports(2)};
g.A.clear=function(){Qcp(this,function(){});
var F;(F=this.Y)==null||F.clear();var k;(k=this.L)==null||k.clear()};
g.A.Ls=function(){var F,k;return((F=this.L)==null?void 0:F.Ls())||((k=this.Y)==null?void 0:k.Ls())};
g.A.KU=function(F,k){return!!this.Y&&!!this.L&&this.Y.KU(k)&&this.L.KU(F)};
var WH=!1;xh.prototype.then=function(F,k){return this.promise.then(F,k)};
xh.prototype.resolve=function(F){this.UV(F)};
xh.prototype.reject=function(F){this.rd(F)};g.T(iN,g.S);g.A=iN.prototype;g.A.YW=function(){return this.ez};
g.A.activate=function(F){var k="";F&&(vaY(this,F),k=F.ez);if(!this.TY()||k)k&&this.TY()!==k&&(this.Zo(k),delete this.L,this.U&&(this.U.reject(),delete this.U),!window.MediaSource&&window.ManagedMediaSource&&this.bQ(!(F==null||!F.Y))),F&&F.Y||this.load(),this.G||(this.addEventListener("volumechange",this.oA),this.G=!0)};
g.A.MV=function(F,k){if(this.L)if(eqM&&kh(this.L)&&!this.L.KU(F,k)){var z;Fg(this,{l:"megms",sr:(z=this.La)==null?void 0:z.XZ()});t_x(this);this.stopVideo()}else return this.IU=this.L,this.L=void 0,this.IU;F=window.MediaSource?new fm(this,new window.MediaSource,!1):window.ManagedMediaSource?new fm(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new fm(this,new window.WebKitMediaSource,!1):new fm(this,void 0,!1);this.activate(F.U);this.IU=F;this.j0=!1;return F};
g.A.playVideo=function(){var F=this;this.isEnded()&&this.seekTo(0);!this.TY()&&this.ez&&(g.JV(Error("playVideo without src")),this.Zo(this.ez.ez),this.ez.Y||this.load());var k=this.play(),z;((z=this.La)==null?0:z.V("html5_remove_ios_7_hack_force_play"))||!k&&vm&&(dm||0)>=7&&puR(this,function(){g.mz(function(){Zvx(F,F.getCurrentTime(),0)},500)});
return k};
g.A.seekTo=function(F){this.gp()>0&&(vm&&dm<4&&(F=Math.max(.1,F)),this.setCurrentTime(F))};
g.A.jh=function(){if(!this.L&&this.IU)if(this.IU.W)try{var F;Fg(this,{l:"mer",sr:(F=this.La)==null?void 0:F.XZ(),rs:oQ(this.IU)});this.IU.clear();this.L=this.IU;this.IU=void 0}catch(k){F=new g.Fa("Error while clearing Media Source in MediaElement: "+k.name+", "+k.message),g.JV(F),this.stopVideo()}else this.stopVideo()};
g.A.stopVideo=function(){var F=this;if(!this.L){var k;(k=this.IU)==null||Goa(k);if($Va){if(!this.U){var z=new xh;z.then(void 0,function(){});
this.U=z;jfC&&this.pause();g.mz(function(){F.U===z&&(j5(F),z.resolve())},200)}}else j5(this)}};
g.A.Gz=function(){var F=this.Ln();return wW(F)>0&&this.getDuration()?uK(F,this.getCurrentTime()):0};
g.A.yw=function(){var F=this.getDuration();return F===Infinity?1:F?this.Gz()/F:0};
g.A.rH=function(){try{var F=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:XW(this.lh(),",",3),vbu:XW(this.Ln()),vbs:XW(this.UB()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.gp(),vns:""+this.JF(),vec:""+this.Cn(),vemsg:this.SO(),vvol:""+this.getVolume(),vdom:""+ +this.BK(),vsrc:""+ +!!this.TY(),vw:""+F.width,vh:""+F.height}}catch(k){return{}}};
g.A.hasError=function(){return this.Cn()>0};
g.A.addEventListener=function(F,k){this.j.listen(F,k,!1,this);this.QN(F)};
g.A.removeEventListener=function(F,k){this.j.er(F,k,!1,this)};
g.A.dispatchEvent=function(F){if(this.U&&F.type==="pause")return!1;if(eqM){var k,z=((k=F.Y)==null?void 0:k.timeStamp)||Infinity;k=z>performance.now()?z-Date.now()+performance.now():z;z=this.L||this.IU;if((z==null?0:z.Ls())||k<=((z==null?void 0:z.S)||0)){var x;Fg(this,{l:"mede",sr:(x=this.La)==null?void 0:x.XZ(),et:F.type});return!1}if(this.j0)return Fg(this,{l:"medes",et:F.type}),z&&F.type==="seeking"&&(z.S=performance.now(),this.j0=!1),!1}return this.j.dispatchEvent(F)};
g.A.YU=function(){this.S=!1};
g.A.KP=function(){this.S=!0;this.ZP(!0)};
g.A.oA=function(){this.S&&!this.Gk()&&this.ZP(!0)};
g.A.VZ=function(F){return!!F&&F.T$()===this.T$()};
g.A.h4=function(){this.G&&this.removeEventListener("volumechange",this.oA);$Va&&j5(this);g.S.prototype.h4.call(this)};
var $Va=!1,jfC=!1,eqM=!1,PHR=!1;g.A=g.CR.prototype;g.A.isPaused=function(){return g.n(this,4)};
g.A.isPlaying=function(){return g.n(this,8)&&!g.n(this,512)&&!g.n(this,64)&&!g.n(this,2)};
g.A.isOrWillBePlaying=function(){return g.n(this,8)&&!g.n(this,2)&&!g.n(this,1024)};
g.A.isCued=function(){return g.n(this,64)&&!g.n(this,8)&&!g.n(this,4)};
g.A.isBuffering=function(){return g.n(this,1)&&!g.n(this,2)};
g.A.isError=function(){return g.n(this,128)};
g.A.isSuspended=function(){return g.n(this,512)};
g.A.It=function(){return g.n(this,64)&&g.n(this,4)};
g.A.toString=function(){return"PSt."+this.state.toString(16)};
var dJ={},JN=(dJ.BUFFERING="buffering-mode",dJ.CUED="cued-mode",dJ.ENDED="ended-mode",dJ.PAUSED="paused-mode",dJ.PLAYING="playing-mode",dJ.SEEKING="seeking-mode",dJ.UNSTARTED="unstarted-mode",dJ);g.T(TF,g.S);g.A=TF.prototype;g.A.iK=function(){return this.U};
g.A.ND=function(){return this.slot};
g.A.qJ=function(){return this.layout};
g.A.init=function(){var F=XX(this.layout.clientMetadata,"metadata_type_video_length_seconds"),k=XX(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");cn(this.layout.hp)&&Fn(this.Fm.get(),this.layout.layoutId,{Hn:k,Gi:F,listener:this,lK:this.g9()});IsI(this.oU.get(),this);F=this.Kn;k=this.layout.layoutId;var z={lK:this.g9()};F.Y.set(k,z);this.hU()};
g.A.lY=function(){};
g.A.release=function(){cn(this.layout.hp)&&kA(this.Fm.get(),this.layout.layoutId);H5D(this.oU.get(),this);this.Kn.Y.delete(this.layout.layoutId);this.Kj()};
g.A.d5=function(){};
g.A.hf=function(){};
g.A.startRendering=function(F){Z6(lN(this));if(QN(this,F)){var k=this.Y;vw(k.params.dI.Ff.get(),!0)&&CHx(k,"p_sr",{});hH(this);this.Xa(F);this.g9()||this.yD(!1)}};
g.A.sH=function(F,k){if(k.layoutId===this.layout.layoutId){this.KN="rendering";this.L=this.ek.get().isMuted()||this.ek.get().getVolume()===0;this.wH("impression");this.wH("start");if(this.ek.get().isMuted()){tH(this,"mute");var z;F=((z=mW(this))==null?void 0:z.muteCommands)||[];We(this.z$.get(),F,this.layout.layoutId)}if(this.ek.get().isFullscreen()){this.Ui("fullscreen");var x;z=((x=mW(this))==null?void 0:x.fullscreenCommands)||[];We(this.z$.get(),z,this.layout.layoutId)}this.g9()||(x=this.yz.get(),
x.U&&!x.L&&(x.W=!1,x.L=!0,x.actionType!=="ad_to_video"&&(WC("pbs",void 0,x.actionType),g.sY("finalize_all_timelines")&&g4R(x.actionType))));this.Ty(1);this.Uj(k);var D;k=((D=mW(this))==null?void 0:D.impressionCommands)||[];We(this.z$.get(),k,this.layout.layoutId)}};
g.A.ib=function(F,k,z){this.G={u9:3,xt:F==="load_timeout"?402:400,errorMessage:k.message};this.wH("error");var x;F=((x=mW(this))==null?void 0:x.errorCommands)||[];We(this.z$.get(),F,this.layout.layoutId);this.g9()||this.Zm.hh(this.slot,this.layout,k,z)};
g.A.Er=function(){if(this.KN==="rendering"){tH(this,"pause");var F,k=((F=mW(this))==null?void 0:F.pauseCommands)||[];We(this.z$.get(),k,this.layout.layoutId);this.Ty(2)}};
g.A.mZ=function(){if(this.KN==="rendering"){tH(this,"resume");var F,k=((F=mW(this))==null?void 0:F.resumeCommands)||[];We(this.z$.get(),k,this.layout.layoutId)}};
g.A.gQ=function(F,k){k=k===void 0?!1:k;if(this.KN==="rendering"){var z={currentTimeSec:F,flush:k};cw(this.Y,"p_ip",z);bX(this.MJ,F*1E3,k);this.L||bX(this.MJ,F*1E3,k===void 0?!1:k);var x=this.KE();if(x){x/=1E3;if(F>=x*.25||k)this.wH("first_quartile"),cw(this.Y,"p_fq",z);if(F>=x*.5||k)this.wH("midpoint"),cw(this.Y,"p_sq",z);if(F>=x*.75||k)this.wH("third_quartile"),cw(this.Y,"p_tq",z);this.Ff.get().T.C().experiments.Ca("enable_progress_command_flush_on_kabuki")?Ls(this.j,F*1E3,k):Ls(this.j,F*1E3,Sqa(this)?
k:!1)}}};
g.A.NV=function(){var F;return((F=sI(this.xG.get(),1))==null?void 0:F.clientPlaybackNonce)||""};
g.A.n1=function(F,k){F.layoutId!==this.layout.layoutId?this.Zm.hh(this.slot,F,new pE("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"):k()};
g.A.XI=function(F,k,z){if(k.layoutId===this.layout.layoutId)switch(this.KN="not_rendering",this.layoutExitReason=void 0,this.g9()||(F=z!=="normal"||this.position+1===this.S)&&this.yD(F),this.im(z),this.Ty(0),z){case "abandoned":if(dG(this.MJ,"impression")){var x,D=((x=mW(this))==null?void 0:x.abandonCommands)||[];We(this.z$.get(),D,this.layout.layoutId)}break;case "normal":x=((D=mW(this))==null?void 0:D.completeCommands)||[];We(this.z$.get(),x,this.layout.layoutId);break;case "skipped":var e;x=((e=
mW(this))==null?void 0:e.skipCommands)||[];We(this.z$.get(),x,this.layout.layoutId)}};
g.A.rX=function(){return this.layout.layoutId};
g.A.o2=function(){return this.G};
g.A.xb=function(){if(this.KN==="rendering"){this.MJ.wH("active_view_measurable");var F,k=((F=mW(this))==null?void 0:F.activeViewMeasurableCommands)||[];We(this.z$.get(),k,this.layout.layoutId)}};
g.A.nj=function(){if(this.KN==="rendering"){this.MJ.wH("active_view_fully_viewable_audible_half_duration");var F,k=((F=mW(this))==null?void 0:F.activeViewFullyViewableAudibleHalfDurationCommands)||[];We(this.z$.get(),k,this.layout.layoutId)}};
g.A.VF=function(){if(this.KN==="rendering"){this.MJ.wH("active_view_viewable");var F,k=((F=mW(this))==null?void 0:F.activeViewViewableCommands)||[];We(this.z$.get(),k,this.layout.layoutId)}};
g.A.lT=function(){if(this.KN==="rendering"){this.MJ.wH("audio_audible");var F,k=((F=mW(this))==null?void 0:F.activeViewAudioAudibleCommands)||[];We(this.z$.get(),k,this.layout.layoutId)}};
g.A.bT=function(){if(this.KN==="rendering"){this.MJ.wH("audio_measurable");var F,k=((F=mW(this))==null?void 0:F.activeViewAudioMeasurableCommands)||[];We(this.z$.get(),k,this.layout.layoutId)}};
g.A.yD=function(F){this.yz.get().yD(XX(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,F,this.position,this.S,!1)};
g.A.onFullscreenToggled=function(F){if(this.KN==="rendering")if(F){this.Ui("fullscreen");var k,z=((k=mW(this))==null?void 0:k.fullscreenCommands)||[];We(this.z$.get(),z,this.layout.layoutId)}else this.Ui("end_fullscreen"),k=((z=mW(this))==null?void 0:z.endFullscreenCommands)||[],We(this.z$.get(),k,this.layout.layoutId)};
g.A.onVolumeChange=function(){if(this.KN==="rendering")if(this.ek.get().isMuted()){tH(this,"mute");var F,k=((F=mW(this))==null?void 0:F.muteCommands)||[];We(this.z$.get(),k,this.layout.layoutId)}else tH(this,"unmute"),F=((k=mW(this))==null?void 0:k.unmuteCommands)||[],We(this.z$.get(),F,this.layout.layoutId)};
g.A.I3=function(){};
g.A.kR=function(){};
g.A.PM=function(){};
g.A.MB=function(){};
g.A.D$=function(){};
g.A.Ui=function(F){this.MJ.Ui(F,!this.L)};
g.A.wH=function(F){this.MJ.wH(F,!this.L)};
g.A.g9=function(){var F=XX(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return F===void 0?(To("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Ff.get().g9(F)};g.T(OI,TF);g.A=OI.prototype;g.A.hU=function(){};
g.A.Kj=function(){var F=this.oU.get();F.t1===this&&(F.t1=null);this.Dj.stop()};
g.A.d5=function(){this.Dj.stop();TF.prototype.Er.call(this)};
g.A.hf=function(){IQ(this);TF.prototype.mZ.call(this)};
g.A.KE=function(){return XX(this.qJ().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.A.Qf=function(F,k){var z=this;this.n1(F,function(){z.KN!=="rendering_stop_requested"&&(z.KN="rendering_stop_requested",z.layoutExitReason=k,rB(z,k),z.Dj.stop())})};
g.A.xj=function(){var F=Date.now(),k=F-this.jA;this.jA=F;this.Sj+=k;this.Sj>=this.KE()?this.LO():(this.gQ(this.Sj/1E3),VN(this,this.Sj))};
g.A.im=function(){};
g.A.M4=function(){};
g.T(HE,OI);g.A=HE.prototype;g.A.B5=function(F){if(this.KN!=="not_rendering"){F=BE(this,F);var k=this.ek.get().getPresentingPlayerType()===2;this.KN==="rendering_start_requested"?k&&T7(F)&&this.B9():k?g.hI(F,2)?To("Receive player ended event during MediaBreak",this.ND(),this.qJ()):GF(this,F):this.aF()}};
g.A.Xa=function(){HvM(this);nwI(this.ek.get());this.oU.get().t1=this;fl("pbp")||fl("pbs")||WC("pbp");fl("pbp","watch")||fl("pbs","watch")||WC("pbp",void 0,"watch");this.B9()};
g.A.Uj=function(F){this.yz.get();var k=XX(F.clientMetadata,"metadata_type_ad_placement_config").kind,z=this.position===0;F=XX(F.clientMetadata,"metadata_type_linked_in_player_layout_type");F={adBreakType:UI(k),adType:L2a(F)};var x=void 0;z?k!=="AD_PLACEMENT_KIND_START"&&(x="video_to_ad"):x="ad_to_ad";nl("ad_mbs",void 0,x);g.MF(F,x);IQ(this)};
g.A.aF=function(){this.yE()};
g.A.LO=function(){dfY(this);this.yE()};
g.T(aQ,OI);g.A=aQ.prototype;g.A.B5=function(F){this.KN!=="not_rendering"&&(F=BE(this,F),GF(this,F))};
g.A.Xa=function(){To("Not used in SSAP")};
g.A.Uj=function(){IQ(this)};
g.A.aF=function(){To("Not used in SSAP")};
g.A.LO=function(){dfY(this);this.Zm.fQ(this.ND(),this.qJ(),"normal")};
g.T(S5,aQ);S5.prototype.Qf=function(F,k){var z=this;this.n1(F,function(){ru(z.U,k)&&(z.KN="rendering_stop_requested",z.layoutExitReason=k,rB(z,k),z.Dj.stop())})};
S5.prototype.startRendering=function(F){Z6(lN(this));QN(this,F)&&(hH(this),this.oU.get().t1=this)};g.T(JH,TF);g.A=JH.prototype;g.A.aF=function(){this.yE()};
g.A.B5=function(F){if(this.KN!=="not_rendering"){F=BE(this,F);var k=this.ek.get().getPresentingPlayerType()===2;this.KN==="rendering_start_requested"?k&&T7(F)&&this.B9():!k||g.hI(F,2)?this.yE():GF(this,F)}};
g.A.hU=function(){XX(this.qJ().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=XX(this.qJ().clientMetadata,"metadata_type_shrunken_player_bytes_config")};
g.A.Kj=function(){XX(this.qJ().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.jq){var F=this.context.dI,k=this.jq,z=this.qJ().layoutId;if(vw(F.Ff.get(),!0)){var x={};F.LN("mccru",(x.cid=k,x.p_ac=z,x))}this.Jl.get().removeCueRange(this.jq)}this.jq=void 0;var D;(D=this.ZV)==null||D.dispose();this.Y0&&this.Y0.dispose()};
g.A.Xa=function(F){var k=bN(this.Ff.get()),z=dB(this.Ff.get());if(k&&z&&!this.g9()){z=XX(F.clientMetadata,"metadata_type_preload_player_vars");var x=g.lw(this.Ff.get().T.C().experiments,"html5_preload_wait_time_secs");z&&this.Y0&&this.Y0.start(x*1E3)}RsD(this,F);HvM(this);k?(z=this.DR.get(),F=XX(F.clientMetadata,"metadata_type_player_vars"),z.T.loadVideoByPlayerVars(F,!1,2)):zvY(this.DR.get(),XX(F.clientMetadata,"metadata_type_player_vars"));var D;(D=this.ZV)==null||D.start();k||this.DR.get().T.playVideo(2)};
g.A.Uj=function(){var F;(F=this.ZV)==null||F.stop();this.jq="adcompletioncuerange:"+this.qJ().layoutId;this.Jl.get().addCueRange(this.jq,0x7ffffffffffff,0x8000000000000,!1,this,2,2);F=this.context.dI;var k=this.jq,z=this.qJ().layoutId;if(vw(F.Ff.get(),!0)){var x={};F.LN("mccr",(x.cid=k,x.p_ac=z,x))}(this.adCpn=Ibk(this))||To("Media layout confirmed started, but ad CPN not set.");this.sJ.get().Eg("onAdStart",this.adCpn);this.ZZ=Date.now()};
g.A.KE=function(){var F;return(F=sI(this.xG.get(),2))==null?void 0:F.Sm};
g.A.yS=function(){this.MJ.Ui("clickthrough")};
g.A.Qf=function(F,k){var z=this;this.n1(F,function(){if(z.KN!=="rendering_stop_requested"){z.KN="rendering_stop_requested";z.layoutExitReason=k;rB(z,k);var x;(x=z.ZV)==null||x.stop();z.Y0&&z.Y0.stop();gaY(z)}})};
g.A.onCueRangeEnter=function(F){if(F!==this.jq)To("Received CueRangeEnter signal for unknown layout.",this.ND(),this.qJ(),{cueRangeId:F});else{var k=this.context.dI,z=this.qJ().layoutId;if(vw(k.Ff.get(),!0)){var x={};k.LN("mccre",(x.cid=F,x.p_ac=z,x))}this.Jl.get().removeCueRange(this.jq);this.jq=void 0;zU(this.context.Ff.get(),"html5_ssap_flush_at_stop_rendering")&&this.g9()||(F=XX(this.qJ().clientMetadata,"metadata_type_video_length_seconds"),this.gQ(F,!0),this.wH("complete"))}};
g.A.im=function(F){F!=="abandoned"&&this.sJ.get().Eg("onAdComplete");this.sJ.get().Eg("onAdEnd",this.adCpn)};
g.A.onCueRangeExit=function(){};
g.A.M4=function(F){this.KN==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&F>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.ek.get().oV(!0),this.gQ(F))};
g.A.gQ=function(F,k){TF.prototype.gQ.call(this,F,k===void 0?!1:k);k=Date.now()-this.ZZ;var z=F*1E3,x={contentCpn:this.NV(),adCpn:Ibk(this)};if(F-this.LL>=5){var D=k<z*.4?0:1;uH(D,"n.k_",{metadata:x,IH:k,GS:Math.floor(z/1E3)});MJ("NKDSTAT",D);if(k=D===0)k=XX(this.ND().clientMetadata,"metadata_type_player_bytes_slot_metadata"),k===void 0&&To("PlayerBytesSlotMetadata is not filled",this.ND(),this.qJ()),k=(k==null?void 0:k.Jr)===!0;k&&this.sJ.get().Eg("onAbnormalityDetected");this.LL=F}};g.T(yN,JH);yN.prototype.B5=function(F){this.KN!=="not_rendering"&&(F=BE(this,F),GF(this,F))};
yN.prototype.Xa=function(){To("Not used in SSAP")};
g.T(RQ,yN);RQ.prototype.Qf=function(F,k){var z=this;this.n1(F,function(){if(ru(z.U,k)){z.KN="rendering_stop_requested";z.layoutExitReason=k;rB(z,k);if(zU(z.context.Ff.get(),"html5_ssap_flush_at_stop_rendering")&&k==="normal"){var x=XX(z.qJ().clientMetadata,"metadata_type_video_length_seconds");z.gQ(x,!0)}gaY(z)}})};
RQ.prototype.startRendering=function(F){Z6(lN(this));QN(this,F)&&(hH(this),RsD(this,F))};g.T(Yh,g.S);g.A=Yh.prototype;g.A.init=function(){var F=XX(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");F&&(F.current=this);this.xG.get().addListener(this);this.CJ.init();oak([this.layout],this.xG.get());this.OO()};
g.A.OO=function(){var F=XX(this.CJ.qJ().clientMetadata,"metadata_type_player_vars");F?this.DR.get().addPlayerResponseForAssociation({playerVars:F}):(F=fbC(this.CJ.qJ()),this.DR.get().addPlayerResponseForAssociation({kW:F}))};
g.A.VK=function(){};
g.A.ND=function(){return this.slot};
g.A.qJ=function(){return this.layout};
g.A.d5=function(){this.CJ.d5()};
g.A.hf=function(){this.CJ.hf()};
g.A.Az=function(){To("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter.  Skip should be handled by Triggers")};
g.A.sH=function(F,k){this.CJ.sH(F,k)};
g.A.M0=function(){};
g.A.q$=function(){};
g.A.Gr=function(){};
g.A.II=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(){};
g.A.gR=function(){};
g.A.wR=function(){};
g.A.M4=function(F){this.CJ.M4(F)};
g.A.onFullscreenToggled=function(F){this.CJ.onFullscreenToggled(F)};
g.A.I3=function(F){this.CJ.I3(F)};
g.A.PM=function(F){this.CJ.PM(F)};
g.A.onVolumeChange=function(){this.CJ.onVolumeChange()};
g.A.MB=function(){};
g.A.D$=function(){};
g.A.kR=function(){};
g.A.Ef=function(){return this.ek.get().getPresentingPlayerType()===2};
g.A.JO=function(F){$fn({cpn:F,Eh:this.xG.get(),Jg:!0});this.layout.layoutId===F&&(JuD(this.GA,this.slot.slotId),this.zl.sH(this.slot,this.layout))};
g.A.startRendering=function(F){if(F.layoutId!==this.layout.layoutId)return void To("wrong layout");this.ek.get().addListener(this);sB(this.d3(),this);this.CJ.startRendering(this.layout)};
g.A.B5=function(F){this.CJ.B5(F)};
g.A.XI=function(F,k,z){this.CJ.XI(F,k,z)};
g.A.release=function(){this.xG.get().removeListener(this);this.CJ.release();zsM();r_(this.d3(),this)};
g.A.V$=function(){return zU(this.params.context.Ff.get(),"html5_ssap_exit_without_waiting_for_transition")};
g.A.Qf=function(F,k){F.layoutId!==this.layout.layoutId?To("wrong layout"):this.V$()&&this.CJ.iK().currentState>=2||(this.CJ.Qf(this.layout,k),F=zU(this.params.context.Ff.get(),"html5_ssap_pass_transition_reason")&&k==="abandoned",this.Ef()&&!F&&(zU(this.params.context.Ff.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(k)||To("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:k})),this.jr.get().finishSegmentByCpn(this.layout.layoutId,
sI(this.xG.get(),1).clientPlaybackNonce,vE(k,this.params.context.Ff))),this.ek.get().removeListener(this),this.V$()&&Bw(this.CJ.iK())&&this.zl.XI(this.slot,this.layout,this.CJ.iK().Y))};
g.A.Rn=function(F,k,z){jcn({cpn:F,Eh:this.xG.get(),Jg:!0});this.qJ().layoutId!==F||zU(this.params.context.Ff.get(),"html5_ssap_pass_transition_reason")&&z===5||(this.CJ.iK().currentState<2&&(F=cE(z,this.params.context.Ff),F==="error"?this.zl.hh(this.slot,this.layout,new pE("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:z},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):WE(this.c8,
this.layout,F)),zU(this.params.context.Ff.get(),"html5_ssap_exit_without_waiting_for_transition")||this.zl.XI(this.slot,this.layout,this.CJ.iK().Y))};g.T(nR,g.S);g.A=nR.prototype;g.A.ND=function(){return this.slot};
g.A.qJ=function(){return this.layout};
g.A.VK=function(){};
g.A.YY=function(){return this.L$[this.Pt]};
g.A.HO=function(){return this.Pt};
g.A.d5=function(F,k){var z=this.YY();k.layoutId!==LR(z,F,k)?To("pauseLayout for a PlayerBytes layout that is not currently active",F,k):z.d5()};
g.A.hf=function(F,k){var z=this.YY();k.layoutId!==LR(z,F,k)?To("resumeLayout for a PlayerBytes layout that is not currently active",F,k):z.hf()};
g.A.Az=function(F,k){var z=this.YY();kNR(this,F,k);oxx(z,F,k)&&this.i_(z.ND(),z.qJ(),"skipped")};
g.A.Ch=function(F,k){var z=this.YY();zhn(this);xFD(z,F,k)&&(F=iln(this,z,F,k),F!==void 0&&(this.g9()?To("Should not happen. Should delete"):$FY(this,z.ND(),z.qJ(),F)))};
g.A.Ok=function(F,k){var z=Object.assign({},Mj(this),{layoutId:k.layoutId}),x=z.layoutId,D=z.Jg;if(z.lK){var e={};tw(z.Eh,"wrse",(e.ec=x,e.is=D,e.ctp=U3(x),e))}IG(this.kq,F,k)};
g.A.sH=function(F,k){var z;(z=this.YY())==null||z.sH(F,k)};
g.A.XI=function(F,k,z){k.layoutId===this.qJ().layoutId&&(this.fU=!1,r_(this.d3(),this));var x;(x=this.YY())==null||x.XI(F,k,z)};
g.A.M4=function(F){var k;(k=this.YY())==null||k.M4(F)};
g.A.O2=function(F,k,z){this.HO()===-1&&(this.callback.sH(this.slot,this.layout),this.Pt++);var x=this.YY();x?(x.ib(F,k,z),this.g9()&&this.callback.hh(this.slot,this.layout,k,z)):To("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.HO()),layoutId:this.qJ().layoutId})};
g.A.onFullscreenToggled=function(F){var k;(k=this.YY())==null||k.onFullscreenToggled(F)};
g.A.I3=function(F){var k;(k=this.YY())==null||k.I3(F)};
g.A.PM=function(F){var k;(k=this.YY())==null||k.PM(F)};
g.A.onVolumeChange=function(){var F;(F=this.YY())==null||F.onVolumeChange()};
g.A.IW=function(F,k,z){He(this.kq,F,k,z)};
g.A.KT=function(F){F.startRendering(F.qJ())};
g.A.init=function(){var F=XX(this.qJ().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");F&&(F.current=this);if(this.L$.length<1)throw new L("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.L$.length)});if(F=XX(this.qJ().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))F.current=this;F=g.l(this.L$);for(var k=F.next();!k.done;k=F.next())k=k.value,k.init(),tb6(this.kq,this.slot,k.qJ()),ZdI(this.kq,this.slot,k.qJ());
if(this.g9())for(this.xG.get().addListener(this),oak(F_H(this),this.xG.get()),F=F_H(this),F=g.l(F),k=F.next();!k.done;k=F.next())this.OO(k.value)};
g.A.OO=function(F){var k=XX(F.clientMetadata,"metadata_type_player_vars");k?(F.layoutType!=="LAYOUT_TYPE_MEDIA"&&To("Non-video ad contains playerVars",this.slot,F),this.DR.get().addPlayerResponseForAssociation({playerVars:k})):(F=fbC(F),this.DR.get().addPlayerResponseForAssociation({kW:F}))};
g.A.release=function(){var F=XX(this.qJ().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");F&&(F.current=null);if(F=XX(this.qJ().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))F.current=null;F=g.l(this.L$);for(var k=F.next();!k.done;k=F.next())k=k.value,vZa(this.kq,this.slot,k.qJ()),k.release();this.g9()&&(this.xG.get().removeListener(this),zsM())};
g.A.n1=function(F){return F.layoutId!==this.qJ().layoutId?(this.callback.hh(this.ND(),F,new pE("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.qJ().layoutId+("and LayoutType: "+this.qJ().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
g.A.Ew=function(){this.ek.get().addListener(this);sB(this.d3(),this)};
g.A.B5=function(F){if(F.state.isError()){var k,z;this.O2((k=F.state.YA)==null?void 0:k.errorCode,new pE("There was a player error during this media layout.",{playerErrorCode:(z=F.state.YA)==null?void 0:z.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(k=this.YY())&&k.B5(F)};
g.A.g9=function(){var F=XX(this.ND().clientMetadata,"metadata_type_eligible_for_ssap");return F===void 0?(To("Expected SSAP eligibility in PlayerBytes slots",this.ND(),this.qJ()),!1):this.Ff.get().g9(F)};
g.A.kR=function(){};
g.A.M0=function(){};
g.A.q$=function(){};
g.A.Gr=function(){};
g.A.II=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(){};
g.A.gR=function(){};
g.A.wR=function(){};
g.A.MB=function(){};
g.A.D$=function(){};
g.T(FZ,nR);g.A=FZ.prototype;g.A.vE=function(F,k,z){this.i_(F,k,z)};
g.A.Kr=function(F,k){this.i_(F,k,"error")};
g.A.i_=function(F,k,z){var x=this;DFD(this,F,k,z,function(){fR(x,x.HO()+1)})};
g.A.startRendering=function(F){this.n1(F)&&(this.Ew(),ezC(this.yz.get()),Xop(this.Ff.get())||nwI(this.ek.get()),this.HO()===-1&&fR(this,this.HO()+1))};
g.A.Qf=function(F,k){var z=this;this.fU=!0;this.HO()===this.L$.length?this.callback.XI(this.slot,this.layout,k):(F=this.YY(),F.Qf(F.qJ(),k),this.x6=function(){z.callback.XI(z.slot,z.layout,k)});
this.ek.get().T.rK();zvY(this.DR.get(),{});F=W2(this.ek.get(),1);F.isPaused()&&!g.n(F,2)&&this.ek.get().playVideo();this.ek.get().removeListener(this);this.fU&&jHn(this)};
g.A.Rn=function(){};
g.A.JO=function(){};
g.A.fQ=function(){};
g.T(kj,nR);g.A=kj.prototype;g.A.vE=function(F,k,z){F=Object.assign({},Mj(this),{layoutId:k.layoutId,layoutExitReason:z});k=F.layoutId;z=F.layoutExitReason;var x={};tw(F.Eh,"prse",(x.xc=k,x.ler=z,x.ctp=U3(k),x))};
g.A.Kr=function(){To("onSubLayoutError in SSAP")};
g.A.i_=function(){To("exitSubLayoutAndPlayNext in SSAP")};
g.A.YY=function(){return this.oI};
g.A.HO=function(){var F=this;return this.L$.findIndex(function(k){var z;return k.qJ().layoutId===((z=F.oI)==null?void 0:z.qJ().layoutId)})};
g.A.KT=function(F){m2(this.oI===void 0,"replacing another adapter");this.oI=F;F.startRendering(F.qJ())};
g.A.IW=function(F,k,z){He(this.kq,F,k,z);var x;m2(k.layoutId===((x=this.oI)==null?void 0:x.qJ().layoutId),"currentAdapter does not match exiting layout",{slot:F?"slot:  "+F.slotType:"",subLayout:w8(k)})&&(this.oI=void 0)};
g.A.release=function(){nR.prototype.release.call(this);m2(this.oI===void 0,"currentAdapter is still active during release");this.oI=void 0};
g.A.Ef=function(){return this.ek.get().getPresentingPlayerType()===2};
g.A.Qf=function(F,k){function z(){oo(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(k)||To("Composite stopRendering: Unexpected layout exit reason",this.slot,F,{layoutExitReason:k}))}
function x(){this.oI&&zz(this,this.oI,k);if(this.Ef()&&(!oo(this)||k!=="abandoned")){z.call(this);var e;var C=((e=this.xG.get().T.getVideoData())==null?void 0:e.clientPlaybackNonce)||"";e=sI(this.xG.get(),1).clientPlaybackNonce;this.jr.get().finishSegmentByCpn(C,e,vE(k,this.Ff))}eh9(this,k)}
function D(){if(this.oI){var e=this.oI;e.iK().currentState<2&&e.Qf(e.qJ(),k);e=oo(this)&&k==="abandoned";this.Ef()&&!e&&(z.call(this),this.jr.get().finishSegmentByCpn(this.oI.qJ().layoutId,sI(this.xG.get(),1).clientPlaybackNonce,vE(k,this.Ff)))}}
m2(F.layoutId===this.qJ().layoutId,"StopRendering for wrong layout")&&ru(this.Cc.L,k)&&(this.V$()?x.call(this):D.call(this))};
g.A.XI=function(F,k,z){nR.prototype.XI.call(this,F,k,z);k.layoutId===this.qJ().layoutId&&this.ek.get().removeListener(this)};
g.A.NV=function(){return sI(this.xG.get(),1).clientPlaybackNonce};
g.A.Rn=function(F,k,z){jcn(Object.assign({},Mj(this),{cpn:F}));if(!oo(this)||z!==5)if(this.V$()){if(this.oI&&this.oI.qJ().layoutId!==k){var x=this.oI.qJ().layoutId;x!==F&&To("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:x,exitingCpn:F,enteringCpn:k});F=cE(z,this.Ff);zz(this,this.oI,F)}else this.oI&&To("onClipExited: active layout is entering again");k===this.NV()&&AZ6(this,z)}else{if(this.oI&&this.oI.qJ().layoutId===F)C0D(this,this.oI,z);else{var D;To("Exiting cpn does not match active cpn",
this.slot,(x=this.oI)==null?void 0:x.qJ(),{exitingCpn:F,transitionReason:z,activeCpn:(D=this.oI)==null?void 0:D.qJ().layoutId})}k===this.NV()&&(this.oI!==void 0&&(To("active adapter is not properly exited",this.slot,this.layout,{activeLayout:w8(this.oI.qJ())}),C0D(this,this.oI,z)),AZ6(this,z),eh9(this,this.Cc.L.Y))}};
g.A.V$=function(){return zU(this.Ff.get(),"html5_ssap_exit_without_waiting_for_transition")};
g.A.startRendering=function(F){this.n1(F)&&(F=this.Cc,m2(F.Y===1,"tickStartRendering: state is not initial"),F.Y=2,this.Ew())};
g.A.JO=function(F){$fn(Object.assign({},Mj(this),{cpn:F}));var k=this.L$.find(function(z){return z.qJ().layoutId===F});
k?(this.Cc.Y!==2&&(JuD(this.GA,this.slot.slotId),m2(this.Cc.Y===2,"Expect started"),this.callback.sH(this.slot,this.layout)),this.KT(k),IG(this.kq,this.slot,k.qJ())):pCp(this,F)};
g.A.Az=function(F,k){kNR(this,F,k);var z=this.YY();z?oxx(z,F,k)&&Exn(this,"skipped"):XCn(this,"onSkipRequested")};
g.A.Ch=function(F,k){var z;a:{if(z=this.YY()){if(zhn(this),xFD(z,F,k)&&(F=iln(this,z,F,k),F!==void 0)){z={oH:z,Ona:this.L$[F]};break a}}else XCn(this,"SkipWithAdPodSkip");z=void 0}if(F=z)z=F.oH,k=F.Ona,F=z.qJ().layoutId,this.V$()?zz(this,z,"skipped"):z.Qf(z.qJ(),"skipped"),z=k.qJ().layoutId,this.jr.get().finishSegmentByCpn(F,z,vE("skipped",this.Ff))};
g.A.Ok=function(){To("Not used in html5_ssap_fix_layout_exit")};
g.A.B5=function(F){var k;(k=this.YY())==null||k.B5(F)};
g.A.O2=function(){To("Not used in html5_ssap_fix_layout_exit")};
g.A.fQ=function(F,k,z){var x;if(((x=this.YY())==null?void 0:x.qJ().layoutId)!==k.layoutId)return void To("requestToExitSubLayout: wrong layout");Exn(this,z)};g.T(xj,g.S);g.A=xj.prototype;g.A.ND=function(){return this.CJ.ND()};
g.A.qJ=function(){return this.CJ.qJ()};
g.A.init=function(){var F=XX(this.qJ().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");F&&(F.current=this);this.hU()};
g.A.hU=function(){this.CJ.init()};
g.A.release=function(){var F=XX(this.qJ().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");F&&(F.current=null);this.Kj()};
g.A.Kj=function(){this.CJ.release()};
g.A.d5=function(){this.CJ.d5()};
g.A.hf=function(){this.CJ.hf()};
g.A.Az=function(F,k){To("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.ND(),this.qJ(),{requestingSlot:F,requestingLayout:k})};
g.A.startRendering=function(F){F.layoutId!==this.qJ().layoutId?this.callback.hh(this.ND(),F,new pE("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.qJ().layoutId+("and LayoutType: "+this.qJ().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.ek.get().addListener(this),sB(this.d3(),this),ezC(this.yz.get()),Xop(this.Ff.get())||nwI(this.ek.get()),this.CJ.startRendering(F))};
g.A.Qf=function(F,k){this.fU=!0;this.CJ.Qf(F,k);this.ek.get().T.rK();zvY(this.DR.get(),{});F=W2(this.ek.get(),1);F.isPaused()&&!g.n(F,2)&&this.ek.get().playVideo();this.ek.get().removeListener(this);this.fU&&this.CJ.aF()};
g.A.sH=function(F,k){this.CJ.sH(F,k)};
g.A.XI=function(F,k,z){k.layoutId===this.qJ().layoutId&&(this.fU=!1,r_(this.d3(),this));this.CJ.XI(F,k,z);k.layoutId===this.qJ().layoutId&&KR(this.yz.get())};
g.A.M4=function(F){this.CJ.M4(F)};
g.A.B5=function(F){if(F.state.isError()){var k,z;this.O2((k=F.state.YA)==null?void 0:k.errorCode,new pE("There was a player error during this media layout.",{playerErrorCode:(z=F.state.YA)==null?void 0:z.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.CJ.B5(F)};
g.A.O2=function(F,k,z){this.CJ.ib(F,k,z)};
g.A.onFullscreenToggled=function(F){this.CJ.onFullscreenToggled(F)};
g.A.I3=function(F){this.CJ.I3(F)};
g.A.PM=function(F){this.CJ.PM(F)};
g.A.onVolumeChange=function(){this.CJ.onVolumeChange()};
g.A.kR=function(){};
g.A.M0=function(){};
g.A.q$=function(){};
g.A.Gr=function(){};
g.A.II=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(){};
g.A.gR=function(){};
g.A.wR=function(){};
g.A.MB=function(){};
g.A.D$=function(){};g.A=ic.prototype;g.A.ND=function(){return this.slot};
g.A.qJ=function(){return this.layout};
g.A.init=function(){this.O3.get().addListener(this);this.ek.get().addListener(this);var F=XX(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var k=XX(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.j){var z=this.O3.get().cq.slice(-1)[0];z!==void 0&&(F=z.startSecs*1E3,k=(z.startSecs+z.B8)*1E3)}this.lY(F,k);var x;z=(x=this.xG.get().Qw)==null?void 0:x.clientPlaybackNonce;x=this.layout.V2.adClientDataEntry;Dk(this.oU.get(),{daiStateTrigger:{filledAdsDurationMs:k-F,contentCpn:z,
adClientData:x}});var D=this.O3.get();D=uDD(D.U,F,k);D!==null&&(Dk(this.oU.get(),{daiStateTrigger:{filledAdsDurationMs:D-F,contentCpn:z,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:x}}),this.jr.get().Td(D,k))};
g.A.release=function(){this.Kj();this.O3.get().removeListener(this);this.ek.get().removeListener(this)};
g.A.startRendering=function(){this.Xa();this.callback.sH(this.slot,this.layout)};
g.A.Qf=function(F,k){this.ul(k);this.driftRecoveryMs!==null&&(jG(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(wCn(this)-XX(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.ek.get().T.BO()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.XI(this.slot,this.layout,k)};
g.A.iE=function(){return!1};
g.A.uR=function(F){var k=XX(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),z=XX(this.layout.clientMetadata,"metadata_type_layout_exit_ms");F*=1E3;if(k<=F&&F<z){var x;Dk(this.oU.get(),{daiStateTrigger:{filledAdsDurationMs:F-k,contentCpn:(x=this.xG.get().Qw)==null?void 0:x.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.V2.adClientDataEntry}});this.jr.get().Td(F,z)}};
g.A.M4=function(F){this.h_(F);F=$A(this.ek.get(),2,!0);if(IT(this.W.get(),this.layout.layoutId)){var k=XX(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),z=this.driftRecoveryMs;if(!(z===null||F*1E3<k+z)){this.driftRecoveryMs=null;var x=wCn(this),D=this.ek.get().T.BO(),e=Math.min(F+D,x/1E3);e<=F?jG(this,{driftRecoveryMs:z.toString(),breakDurationMs:Math.round(x-k).toString(),driftFromHeadMs:Math.round(D*1E3).toString()}):(jG(this,{driftRecoveryMs:z.toString(),breakDurationMs:Math.round(x-
k).toString(),driftFromHeadMs:Math.round(D*1E3).toString(),appliedDriftRecoveryMs:Math.round(F*1E3-k).toString(),destinationMs:Math.round(e*1E3-k).toString()}),this.ek.get().T.seekTo(e,void 0,void 0,1))}}};
g.A.I3=function(){};
g.A.kR=function(){};
g.A.PM=function(){};
g.A.onVolumeChange=function(){};
g.A.MB=function(){};
g.A.D$=function(){};g.T(eG,ic);g.A=eG.prototype;g.A.lY=function(F,k){this.xG.get().addListener(this);if(this.j){var z=F,x=0,D=[];F=this.U.slice();F.sort(function(e,C){return XX(e.qJ().clientMetadata,"metadata_type_media_sub_layout_index")-XX(C.qJ().clientMetadata,"metadata_type_media_sub_layout_index")});
F.forEach(function(e){var C=z,p=XX(e.qJ().clientMetadata,"metadata_type_video_length_seconds"),E=Math.min(C+p*1E3,k);z=E;x++;D.push(p);e.lY(C,E)})}else this.U.forEach(function(e){e.init()});
this.L!=null&&Cp(this.oU.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.L)};
g.A.Kj=function(){this.xG.get().removeListener(this);this.Y=null;this.U.forEach(function(F){F.release()})};
g.A.Xa=function(){if(this.Y)To("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.L)});else{var F,k=(F=this.xG.get().Qw)==null?void 0:F.layoutId;TEY(this,k)}};
g.A.ul=function(F){var k,z,x,D;(x=this.Y)==null||(D=x.Ii)==null||D.Qf((k=this.Y)==null?void 0:(z=k.Ii)==null?void 0:z.qJ(),F);this.Y=null};
g.A.VK=function(F){var k=F.videoId;F=F.layoutId;if(k==="nPpU29QrbiU"){var z,x;Cp(this.oU.get(),"ads_ssmplra_opdcs","vid."+k+";lid."+this.layout.layoutId+";smlid."+this.L+";slrs."+!!this.Y+";slrslid."+((z=this.Y)==null?void 0:(x=z.Ii)==null?void 0:x.qJ().layoutId))}if(this.Y){var D;if(((D=this.Y.Ii)==null?void 0:D.qJ().layoutId)===F)To("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:F});else{var e,C;(C=this.Y.Ii)==null||C.Qf((e=this.Y.Ii)==null?void 0:e.qJ(),"normal");
TEY(this,F)}}};
g.A.Rn=function(){};
g.A.JO=function(){};
g.A.h_=function(){};
g.A.B5=function(){};
g.A.onFullscreenToggled=function(){};g.A=vxD.prototype;g.A.ND=function(){return this.slot};
g.A.qJ=function(){return this.layout};
g.A.iK=function(){To("Should not get exitStateMachine for DAI");return new s3};
g.A.lY=function(F,k){var z=this;XX(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.KJ=lQx(this.slot,this.layout,XX(this.layout.clientMetadata,"metadata_type_player_vars"),F,k,XX(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.jr.get(),this.ym.get(),function(){var x=Object,D=x.assign,e=qL(z.layout);var C=XX(z.slot.clientMetadata,"metadata_type_fulfilled_layout")||z.slot.fulfilledLayout;var p=XX(C.clientMetadata,"metadata_type_sub_layouts")||
C.Ve;C=Object.assign({},qL(C),{adPlacementConfig:XX(C.clientMetadata,"metadata_type_ad_placement_config"),subLayouts:(p||[]).map(qL)});return D.call(x,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},e,{compositeLayout:C,hasSurveyOverlay:ea(z.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:XX(z.layout.clientMetadata,"metadata_type_survey_overlay")})},this.oU.get());
this.ek.get().addListener(this);F=XX(this.layout.clientMetadata,"metadata_type_video_length_seconds");k=XX(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");cn(this.layout.hp)&&Fn(this.Fm.get(),this.layout.layoutId,{Hn:k,Gi:F,listener:this});tb6(this.callback,this.slot,this.layout);ZdI(this.callback,this.slot,this.layout)};
g.A.init=function(){var F=XX(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),k=XX(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.lY(F,k)};
g.A.release=function(){this.ek.get().removeListener(this);cn(this.layout.hp)&&kA(this.Fm.get(),this.layout.layoutId);this.Ff.get();vZa(this.callback,this.slot,this.layout)};
g.A.startRendering=function(){var F=this;ea(this.layout.clientMetadata,"metadata_type_survey_overlay")&&Cp(this.oU.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.KN)To("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:ea(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:XX(this.layout.clientMetadata,"metadata_type_survey_overlay")});else{this.KN={VX:null,fl:!1};this.Y=!1;if(po9(this.Ff.get())){var k;this.adCpn=
(k=sI(this.xG.get(),2))==null?void 0:k.clientPlaybackNonce}this.Ff.get().T.C().experiments.Ca("html5_disable_sodar_for_tvhtml5")||QHx(this.slot,this.layout,this.DF.get());cn(this.layout.hp)&&hzR(this.Fm.get(),this.layout.layoutId);this.MJ.wH("start");if(Ul(this.Ff.get())){k=W2(this.ek.get());var z=XX(this.layout.clientMetadata,"metadata_type_video_length_seconds"),x=$A(this.ek.get(),2,!1);hhp(this.MJ,this.KN.VX,k,z,x,function(){return void P0k(F,"teois")},sI(this.xG.get(),1).w3)}IG(this.callback,
this.slot,this.layout);
ea(this.layout.clientMetadata,"metadata_type_survey_overlay")&&Cp(this.oU.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.A.Qf=function(F,k){var z=this;if(this.KN){if(Ul(this.Ff.get()))if(this.KJ===null)To("Unexpected media sub layout exited without a timeline playback ID");else{F=XX(this.layout.clientMetadata,"metadata_type_video_length_seconds");var x=gwH(this.ek.get(),this.KJ);po9(this.Ff.get())&&this.adCpn===void 0&&To("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:XX(this.layout.clientMetadata,"metadata_type_content_cpn")});mhC(this.MJ,x,this.adCpn);pp(this.MJ,null,this.KN.VX,F,x,sI(this.xG.get(),
1).w3,function(D){return void cZn(z,D,"fue")},po9(this.Ff.get()))}this.KN=null;
He(this.callback,this.slot,this.layout,this.Y&&this.Ff.get().T.C().V("dai_layout_log_skip_exit_reason")?"skipped":k)}else To("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.A.ib=function(){};
g.A.aF=function(){};
g.A.M4=function(F){var k=this;if(this.KN){if(dG(this.MJ,"impression")){var z=W2(this.ek.get()),x=XX(this.layout.clientMetadata,"metadata_type_video_length_seconds");E9(this.MJ,z,F,this.KN.VX,x,function(D){return void cZn(k,D,"tpaqe")})}this.KN.VX=F}};
g.A.B5=function(F){var k=this;if(this.KN){Ul(this.Ff.get())||this.KN.fl||(this.KN.fl=!0,F=new g.lH(F.state,new g.CR));var z=XX(this.layout.clientMetadata,"metadata_type_video_length_seconds"),x=$A(this.ek.get(),2,!1);Aj(this.MJ,this.KN.VX,F,z,x,sI(this.xG.get(),1).w3,!Ul(this.Ff.get()),function(){return void P0k(k,"teosc")})}};
g.A.onFullscreenToggled=function(F){sHx(this.MJ,F)};
g.A.I3=function(){};
g.A.kR=function(){};
g.A.PM=function(){};
g.A.Az=function(F,k){var z;F=this.oU.get();var x="ti."+dG(this.MJ,"impression")+";ts."+dG(this.MJ,"skip")+";hp.",D;var e=!((D=this.MJ.U.get("skip"))==null||!D.length);Cp(F,"ads_dsr",x+e+";cpn."+XX(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((z=sI(this.xG.get(),2))==null?void 0:z.clientPlaybackNonce)+";sl."+(XX(k.clientMetadata,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));dG(this.MJ,"impression")&&this.MJ.wH("skip");k=sI(this.xG.get(),1).w3;this.Y=!0;
this.jr.get().xF(k)||(this.Y=!1,To("Unexpected failure to skip a server stitched ad",this.slot,this.layout))};
g.A.onVolumeChange=function(){};
g.A.sH=function(){};
g.A.XI=function(){};
g.A.d5=function(){};
g.A.hf=function(){};
g.A.yS=function(){rZx(this.MJ)};
g.A.xb=function(){BEp(this.MJ)};
g.A.nj=function(){GNx(this.MJ)};
g.A.VF=function(){UFx(this.MJ)};
g.A.lT=function(){tnI(this.MJ)};
g.A.bT=function(){Zln(this.MJ)};
g.A.MB=function(){};
g.A.D$=function(){};g.T(NL,ic);g.A=NL.prototype;
g.A.lY=function(){var F=this;XX(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;var k=XX(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),z=XX(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.KJ=lQx(this.slot,this.layout,XX(this.layout.clientMetadata,"metadata_type_player_vars"),k,z,XX(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.jr.get(),this.ym.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:k,
exitMs:z,adPlacementConfig:XX(F.layout.clientMetadata,"metadata_type_ad_placement_config")}},this.oU.get());
var x=XX(this.layout.clientMetadata,"metadata_type_video_length_seconds"),D=XX(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");cn(this.layout.hp)&&Fn(this.Fm.get(),this.layout.layoutId,{Hn:D,Gi:x,listener:this})};
g.A.Kj=function(){cn(this.layout.hp)&&kA(this.Fm.get(),this.layout.layoutId)};
g.A.Xa=function(){var F=this;if(this.KN)To("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.KN={VX:null,fl:!1},QHx(this.slot,this.layout,this.DF.get()),this.MJ.wH("start"),Ul(this.Ff.get())){var k=W2(this.ek.get()),z=XX(this.layout.clientMetadata,"metadata_type_video_length_seconds"),x=$A(this.ek.get(),2,!1);hhp(this.MJ,this.KN.VX,k,z,x,function(){return void Ola(F,"teois")},!1)}};
g.A.ul=function(){var F=this;if(this.KN){if(Ul(this.Ff.get()))if(this.KJ===null)To("Unexpected single media layout exited without a timeline playback ID");else{var k=XX(this.layout.clientMetadata,"metadata_type_video_length_seconds"),z=gwH(this.ek.get(),this.KJ);mhC(this.MJ,z);pp(this.MJ,null,this.KN.VX,k,z,!1,function(x){return void Vn9(F,x,"fue")})}this.KN=null}else To("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.A.h_=function(F){var k=this;if(this.KN){if(dG(this.MJ,"impression")){var z=W2(this.ek.get()),x=XX(this.layout.clientMetadata,"metadata_type_video_length_seconds");E9(this.MJ,z,F,this.KN.VX,x,function(D){return void Vn9(k,D,"tpaqe")})}this.KN.VX=F}};
g.A.B5=function(F){var k=this;if(this.KN){Ul(this.Ff.get())||this.KN.fl||(this.KN.fl=!0,F=new g.lH(F.state,new g.CR));var z=XX(this.layout.clientMetadata,"metadata_type_video_length_seconds"),x=$A(this.ek.get(),2,!1);Aj(this.MJ,this.KN.VX,F,z,x,!1,!Ul(this.Ff.get()),function(){return void Ola(k,"teosc")})}};
g.A.onFullscreenToggled=function(F){sHx(this.MJ,F)};
g.A.yS=function(){rZx(this.MJ)};
g.A.xb=function(){BEp(this.MJ)};
g.A.nj=function(){GNx(this.MJ)};
g.A.VF=function(){UFx(this.MJ)};
g.A.lT=function(){tnI(this.MJ)};
g.A.bT=function(){Zln(this.MJ)};uc.prototype.build=function(F,k,z,x){if(ea(z.clientMetadata,"metadata_type_dai")){var D=XX(x.clientMetadata,"metadata_type_ad_placement_config");iv(x,{Xs:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),v7:["LAYOUT_TYPE_MEDIA"]})&&D!==void 0?(D=new Vk(x.hp,this.oU,D,x.layoutId,null),D=new NL(F,z,x,this.xG,this.jr,this.ym,this.O3,this.ek,D,this.oU,this.DF,
this.Y,this.Fm,this.Ff)):D=null;if(D)return D;a:{var e,C=(e=x.Ve)!=null?e:XX(x.clientMetadata,"metadata_type_sub_layouts");D=XX(x.clientMetadata,"metadata_type_ad_placement_config");if(iv(x,{Xs:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],v7:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&C!==void 0&&D!==void 0){e=[];C=g.l(C);for(var p=C.next();!p.done;p=C.next()){p=p.value;var E=XX(p.clientMetadata,"metadata_type_media_sub_layout_index");if(!iv(p,{Xs:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),
v7:["LAYOUT_TYPE_MEDIA"]})||E===void 0){F=null;break a}E=new Vk(p.hp,this.oU,D,p.layoutId,E);e.push(new vxD(k,z,p,this.jr,E,this.ek,this.ym,this.Fm,this.DF,this.Ff,this.oU,this.xG))}k=new Vk(x.hp,this.oU,D,x.layoutId);F=new eG(F,z,x,this.xG,this.jr,this.O3,this.ek,k,this.oU,this.Y,e)}else F=null}if(F)return F}else if(F=NEI(F,k,z,x,this.d3,this.GA,this.p$,this.oU,this.Fm,this.DF,this.DR,this.xG,this.ek,this.Jl,this.yz,this.sJ,this.z$,this.N0,this.Ff,this.jr,this.context,this.Kn))return F;throw new pE("Unsupported layout with type: "+
x.layoutType+" and client metadata: "+qG(x.clientMetadata)+" in PlayerBytesLayoutRenderingAdapterFactory.");};wA.prototype.build=function(F,k,z,x){if(F=NEI(F,k,z,x,this.d3,this.GA,this.p$,this.oU,this.Fm,this.DF,this.DR,this.xG,this.ek,this.Jl,this.yz,this.sJ,this.z$,this.N0,this.Ff,this.jr,this.context,this.Kn))return F;throw new pE("Unsupported layout with type: "+x.layoutType+" and client metadata: "+qG(x.clientMetadata)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.T(IQM,Nh);g.T(mh,GU);mh.prototype.startRendering=function(F){var k=Uc(this.MJ),z={adsClientData:this.layout.V2};this.Y.push(new IQM(XX(this.layout.clientMetadata,"metadata_type_valid_survey_text_interstitial_renderer"),k,this.qJ().layoutId,z));GU.prototype.startRendering.call(this,F);this.callback.sH(this.slot,F)};
mh.prototype.W5=function(F,k){k!==this.layout.layoutId||F!=="survey-interstitial"&&F!=="button"||((F=XX(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?F.Az(this.slot,this.layout):To("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
mh.prototype.h4=function(){GU.prototype.h4.call(this)};var lc=new g.BB(320,63);g.T(s9,Nh);g.T(rA,GU);g.A=rA.prototype;g.A.M4=function(){};
g.A.B5=function(){};
g.A.onFullscreenToggled=function(){};
g.A.I3=function(F){F&&g2(this.j,this.layout)};
g.A.kR=function(){};
g.A.PM=function(F){var k=hj(this.layout);if(this.G=Q8(F,Yna(this.ek.get())))k.onErrorCommand&&this.z$.get().executeCommand(k.onErrorCommand,this.layout.layoutId),g2(this.j,this.layout)};
g.A.onVolumeChange=function(){};
g.A.rX=function(){return this.qJ().layoutId};
g.A.o2=function(){return this.G};
g.A.W5=function(F){this.W.W5(F);F==="in_video_overlay_close_button"&&g2(this.j,this.layout)};
g.A.s2=function(F){F==="invideo-overlay"&&g2(this.j,this.layout)};
g.A.UI=function(){this.W.UI()};
g.A.startRendering=function(F){GU.prototype.startRendering.call(this,F);this.callback.sH(this.slot,F);this.S.Af=this};
g.A.Qf=function(F,k){GU.prototype.Qf.call(this,F,k);YA(this.S,this)};
g.A.init=function(){GU.prototype.init.call(this);IsI(this.oU.get(),this);this.ek.get().addListener(this);this.Y.push(new s9(hj(this.layout),Uc(this.MJ),this.layout.layoutId,{adsClientData:this.layout.V2}))};
g.A.release=function(){GU.prototype.release.call(this);this.ek.get().removeListener(this);H5D(this.oU.get(),this)};
g.A.MB=function(){};
g.A.D$=function(){};g.T(B7,GU);g.A=B7.prototype;g.A.init=function(){GU.prototype.init.call(this);IsI(this.oU.get(),this);this.ek.get().addListener(this);this.Y.push(new s9(hj(this.layout),Uc(this.MJ),this.layout.layoutId,{adsClientData:this.layout.V2}))};
g.A.UI=function(){this.W.UI()};
g.A.startRendering=function(F){GU.prototype.startRendering.call(this,F);this.callback.sH(this.slot,F);this.S.Af=this};
g.A.Qf=function(F,k){GU.prototype.Qf.call(this,F,k);YA(this.S,this)};
g.A.W5=function(F){this.W.W5(F);F==="in_video_overlay_close_button"&&g2(this.j,this.layout)};
g.A.Es=function(F){if(F==="invideo-overlay"){F=dy9(this.B,this.layout);F=g.l(F);for(var k=F.next();!k.done;k=F.next())k.value.stop()}};
g.A.s2=function(F){F==="invideo-overlay"&&g2(this.j,this.layout)};
g.A.ij=function(F){if(F==="invideo-overlay"){F=dy9(this.B,this.layout);F=g.l(F);for(var k=F.next();!k.done;k=F.next())k.value.start()}};
g.A.M4=function(){};
g.A.B5=function(){};
g.A.onFullscreenToggled=function(){};
g.A.I3=function(F){F&&g2(this.j,this.layout)};
g.A.kR=function(){};
g.A.PM=function(F){var k=hj(this.layout),z=k.contentSupportedRenderer.imageOverlayAdContentRenderer,x=Yna(this.ek.get());a:{z=z.image;z=z===void 0?null:z;if(z!=null&&(z=z.thumbnail,z!=null&&z.thumbnails!=null&&z.thumbnails.length!=0&&z.thumbnails[0].width!=null&&z.thumbnails[0].height!=null)){z=new g.BB(z.thumbnails[0].width||0,z.thumbnails[0].height||0);break a}z=new g.BB(0,0)}if(this.G=Q8(F,x,z))k.onErrorCommand&&this.z$.get().executeCommand(k.onErrorCommand,this.layout.layoutId),g2(this.j,this.layout)};
g.A.onVolumeChange=function(){};
g.A.rX=function(){return this.qJ().layoutId};
g.A.o2=function(){return this.G};
g.A.release=function(){GU.prototype.release.call(this);this.ek.get().removeListener(this);H5D(this.oU.get(),this)};
g.A.MB=function(){};
g.A.D$=function(){};Gz.prototype.W5=function(F){F==="ad-info-hover-text-button"&&((this.Y=this.ek.get().bK(1))||this.ek.get().pauseVideo())};
Gz.prototype.UI=function(){this.Y||this.ek.get().resumeVideo(1)};g.T(bl6,Nh);g.T(U9,GU);g.A=U9.prototype;g.A.init=function(){GU.prototype.init.call(this);this.ek.get().addListener(this)};
g.A.startRendering=function(F){var k=XX(this.layout.clientMetadata,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.Y.push(new bl6(k,this.layout.layoutId,{adsClientData:this.layout.V2}));GU.prototype.startRendering.call(this,F);this.callback.sH(this.slot,F)};
g.A.sH=function(){};
g.A.W5=function(F,k){k!==this.layout.layoutId||F!=="ad-info-icon-button"&&F!=="ad-info-dialog-close-button"||((k=XX(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?F==="ad-info-icon-button"?k.d5(this.slot,this.layout):F==="ad-info-dialog-close-button"&&k.hf(this.slot,this.layout):To("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:F}))};
g.A.PM=function(F){F.width<450&&g2(this.j,this.layout)};
g.A.onVolumeChange=function(){};
g.A.M4=function(){};
g.A.onFullscreenToggled=function(){};
g.A.I3=function(){};
g.A.kR=function(){};
g.A.B5=function(){};
g.A.MB=function(){};
g.A.D$=function(){};
g.A.h4=function(){GU.prototype.h4.call(this)};
g.A.release=function(){GU.prototype.release.call(this);this.ek.get().removeListener(this)};dFR.prototype.build=function(F,k,z,x){if(k=mS(F,z,x,this.UJ,this.ek,this.oU,this.j,this.Y,this.Ff))return k;if(iv(x,SSx()))return new B7(z,x,this.oU,this.Fm,this.UJ,F,this.L,this.U,this.ek,this.z$,this.Ff,this.Y,new Gz(this.ek));if(iv(x,aQn()))return new rA(z,x,this.oU,this.Fm,this.UJ,F,this.L,this.ek,this.z$,this.Ff,this.Y,new Gz(this.ek));if(iv(x,{Xs:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],v7:["LAYOUT_TYPE_SURVEY"]}))return new U9(z,x,F,this.UJ,this.L,this.ek,this.Ff);if(iv(x,
{Xs:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],v7:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new mh(z,x,F,this.UJ,this.oU);if(iv(x,KiR()))return new E3(z,x,F,this.UJ,this.ek,this.Ff);throw new pE("Unsupported layout with type: "+x.layoutType+" and client metadata: "+qG(x.clientMetadata)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};JZI.prototype.build=function(F,k,z,x){if(k=mS(F,z,x,this.UJ,this.ek,this.oU,this.j,this.Y,this.Ff))return k;if(iv(x,SSx()))return new B7(z,x,this.oU,this.Fm,this.UJ,F,this.L,this.U,this.ek,this.z$,this.Ff,this.Y,new Gz(this.ek));if(iv(x,aQn()))return new rA(z,x,this.oU,this.Fm,this.UJ,F,this.L,this.ek,this.z$,this.Ff,this.Y,new Gz(this.ek));throw new pE("Unsupported layout with type: "+x.layoutType+" and client metadata: "+qG(x.clientMetadata)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");
};g.T(tj,Aw);tj.prototype.startRendering=function(F){Aw.prototype.startRendering.call(this,F);if(F.renderingContent?Yen(F,sI(this.xG.get(),2)||void 0):XX(this.layout.clientMetadata,"metadata_ad_video_is_listed"))F=F.renderingContent?gBI(F,sI(this.xG.get(),2)||void 0):XX(this.layout.clientMetadata,"metadata_type_ad_info_ad_metadata"),this.kF.get().T.ZQ("onAdMetadataAvailable",F)};Rha.prototype.build=function(F,k,z,x){if(iv(x,yZx())||x.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.J(x.renderingContent,qm)!==void 0)return new tj(F,z,x,this.UJ,this.ek,this.oU,this.L,this.kF,this.Y,this.xG);throw new pE("Unsupported layout with type: "+x.layoutType+" and client metadata: "+qG(x.clientMetadata)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};gxk.prototype.build=function(F,k,z,x){if(iv(x,yZx()))return new tj(F,z,x,this.UJ,this.ek,this.oU,this.L,this.kF,this.Y,this.xG);if(F=mS(F,z,x,this.UJ,this.ek,this.oU,this.L,this.Y,this.Ff))return F;throw new pE("Unsupported layout with type: "+x.layoutType+" and client metadata: "+qG(x.clientMetadata)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};Kp.prototype.clone=function(F){var k=this;return new Kp(function(){return k.triggerId},F)};W7.prototype.clone=function(F){var k=this;return new W7(function(){return k.triggerId},F)};F4.prototype.clone=function(F){var k=this;return new F4(function(){return k.triggerId},F)};k8.prototype.clone=function(F){var k=this;return new k8(function(){return k.triggerId},F)};oO.prototype.clone=function(F){var k=this;return new oO(function(){return k.triggerId},F)};zJ.prototype.clone=function(F){var k=this;return new zJ(function(){return k.triggerId},F)};g.T(g0,g.S);var DNM={WVdDU7FEFNo:15,"c-6Sb-muKCY":6,"O9f9wIR-UI8":6,"JNL-wFYNAP0":15,dLYcTkdHPNA:15,ZdVP0_LJZUE:15,VXcUXyDNdEI:15,VGQ8C9uQc_I:15,"o2HqYt-U7YU":15,rwNqPgKVbus:15,ATgzDto2XcY:15,attyPCCLlC4:15,w3aSYOeWyYU:15,wZMtuR2zzRA:30,e3TvPYADCQA:15,eMOw2R8yUHg:15,"6lLyZenufEY":15,"4q_FdWfUxR4":15,"3NOPsNQV0zY":15,IcEJuv4zMSI:15,"8Eo9vaW_CqY":15,O0DMDUDJK88:15,wnboazT1Lio:15,ZfRdOlbXmog:5,"X-sKfjrb7uc":15,RCVZbiJbZA0:6,"7syqtZsUUwY":15,OrlZSFgzFVA:15,ulrgBGVttFg:15,"1qC82K99ecI":15,E9lmhFAK78w:30,QSJFJNk_VSg:15,
"i-8wX-g3FjI":30,vgSkhTaAP6U:15,iqslKcmG9zA:15,VkNDKDDDSWA:15,"2-Sj3oWDJCk":6,z4zsVPqUVnc:15,xKc7UMf8V4s:15,wwrWuIYPaDE:6,"_5NVge-Kmpk":6,"eUdn6DcJx-4":6,gxvBLc_C6Io:15,O40oPma0obU:15,"6xXRRLxj3DA":15,T5sMvex24Os:15,"74ccAT84jIY":15,"YTlgTC-KM2U":15,XxcipO9EBWc:15,zI7xwG4M62k:15,XrUrvpDMmOk:15,H5KIgG21WjA:15,R94pfM1wcac:6,"TD0-7fMqNOE":5,_evnWGoDAT8:15,Wov4GF3oUSM:6,DKcQEuGWmp4:15,kp4aH06VQBg:15,CI3LdgGodUw:15,lcQzcg6e73Y:15};var p$={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],Ry:[],layoutExitUserInputSubmittedTriggers:[]};var SP={yKU:1,zLR:2,ofp:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.T(GW,g.S);g.A=GW.prototype;g.A.k7=function(F){if(this.Y)To("Unexpected multiple fetch instructions for the current content");else{this.Y=F;F=g.l(this.O3.get().cq);for(var k=F.next();!k.done;k=F.next())sqH(this,this.Y,k.value)}};
g.A.iE=function(F){if(!this.Y){if(!this.Ff.get().T.C().V("high_ccv_client_side_caching_h5")){var k;(k=this.jr)==null||k.get().LB(F.identifier)}return!1}sqH(this,this.Y,F);return!0};
g.A.uR=function(){};
g.A.Cb=function(F){this.Y&&this.Y.contentCpn!==F&&(To("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:F,fetchInstructionsCpn:this.Y.contentCpn}),this.Y=null)};
g.A.hR=function(F){this.Y&&this.Y.contentCpn!==F&&To("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:F,fetchInstructionsCpn:this.Y.contentCpn},!0);this.Y=null};
g.A.h4=function(){g.S.prototype.h4.call(this);this.Y=null};var m1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],qDA=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.T(vF,g.S);g.A=vF.prototype;g.A.sH=function(F,k){var z=this;if(k.layoutType==="LAYOUT_TYPE_MEDIA"&&(CE(k,this.S)||CE(k,qDA))){var x=sI(this.xG.get(),2),D=this.j(k,x||void 0);D?he(this.U.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var e=[Nkn(z.Y.get(),D.contentCpn,D.RV,function(C){return z.W(C.slotId,"core",D,TM(z.Fv.get(),C))},D.inPlayerSlotId)];
D.instreamAdPlayerUnderlayRenderer&&$X(z.Ff.get())&&e.push(Uyp(z,D,D.instreamAdPlayerUnderlayRenderer));return e}):To("Expected MediaLayout to carry valid opportunity on entered",F,k)}};
g.A.M0=function(){};
g.A.q$=function(){};
g.A.II=function(){};
g.A.Gr=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(){};
g.A.gR=function(){};
g.A.wR=function(){};
g.A.XI=function(){};g.T(cF,g.S);cF.prototype.Cb=function(F,k,z,x,D,e,C){var p=this,E=sI(this.xG.get(),1);!zU(this.Ff.get(),"html5_ssap_play_cached_preroll")&&E.Si?Dj(this.ek.get()):(jZR(this.yz.get(),x),he(this.L.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return UWx(p.Y.get(),x,D,e,F,k,C,E,"")}),CD9(this.U))};
cF.prototype.hR=function(){};g.T(PF,g.S);g.T(Ol,g.S);Ol.prototype.onCueRangeEnter=function(){};
Ol.prototype.onCueRangeExit=function(F){var k=this,z=this.Y.get(F);z&&(this.Y.delete(F),this.Jl.get().removeCueRange(F),he(this.L.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var x=k.U.get();x=sc(x.L.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},z,{slotId:x,slotEntryTrigger:z.slotEntryTrigger?LuM(z.slotId,x,z.slotEntryTrigger):void 0,slotFulfillmentTriggers:fRY(z.slotId,x,z.slotFulfillmentTriggers),slotExpirationTriggers:fRY(z.slotId,x,z.slotExpirationTriggers)})]},
z.slotId))};
Ol.prototype.Cb=function(){for(var F=g.l(this.Y.keys()),k=F.next();!k.done;k=F.next())k=k.value,this.Jl.get().removeCueRange(k);this.Y.clear()};
Ol.prototype.hR=function(){};g.T(Vs,g.S);g.A=Vs.prototype;g.A.M0=function(){};
g.A.q$=function(F){var k=this;g.iM(g.$K(),function(){var z=k.Y.get(F);z&&To("Expected layouts to be properly unscheduled",F,void 0,{slotType:F.slotType,layoutTypes:[].concat(g.r(z)).map(function(x){return x.layoutType})})},0)};
g.A.II=function(){};
g.A.Gr=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(F,k){this.Y.has(F)||this.Y.set(F,new Set);this.Y.get(F).add(k)};
g.A.gR=function(F,k){this.TO.has(F)&&this.TO.get(F)===k&&To("Unscheduled a Layout that is currently entered.",F,k);if(this.Y.has(F)){var z=this.Y.get(F);z.has(k)?(z.delete(k),z.size===0&&this.Y.delete(F)):To("Trying to unscheduled a Layout that was not scheduled.",F,k)}else To("Trying to unscheduled a Layout that was not scheduled.",F,k)};
g.A.sH=function(F,k){this.TO.set(F,k)};
g.A.XI=function(F){this.TO.delete(F)};
g.A.wR=function(){};g.A=Z2C.prototype;g.A.init=function(){};
g.A.ND=function(){return this.slot};
g.A.jN=function(){this.callback.II(this.slot)};
g.A.Fc=function(){this.callback.GM(this.slot)};
g.A.release=function(){};aT.prototype.build=function(F,k){return new Z2C(F,k)};g.A=vSk.prototype;g.A.init=function(){};
g.A.ND=function(){return this.slot};
g.A.jN=function(){jo(this.ek.get(),"ad-showing");this.callback.II(this.slot)};
g.A.Fc=function(){this.callback.GM(this.slot);eo(this.ek.get(),"ad-showing")};
g.A.release=function(){};g.A=cuD.prototype;g.A.init=function(){};
g.A.ND=function(){return this.slot};
g.A.jN=function(){jo(this.ek.get(),"ad-showing");jo(this.ek.get(),"ad-interrupting");this.L=this.ek.get().isAtLiveHead();this.Y=Math.ceil(Date.now()/1E3);this.callback.II(this.slot)};
g.A.Fc=function(){eo(this.ek.get(),"ad-showing");eo(this.ek.get(),"ad-interrupting");var F=this.L?Infinity:$A(this.ek.get(),1,!0)+Math.floor(Date.now()/1E3)-this.Y;this.ek.get().T.seekTo(F,void 0,void 0,1);this.callback.GM(this.slot)};
g.A.release=function(){};g.A=PFx.prototype;g.A.init=function(){};
g.A.ND=function(){return this.slot};
g.A.jN=function(){jo(this.ek.get(),"ad-showing");jo(this.ek.get(),"ad-interrupting");this.callback.II(this.slot)};
g.A.Fc=function(){Dj(this.ek.get());eo(this.ek.get(),"ad-showing");eo(this.ek.get(),"ad-interrupting");this.callback.GM(this.slot)};
g.A.release=function(){Dj(this.ek.get())};Sc.prototype.build=function(F,k){if(NG(k,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new vSk(F,k,this.ek);if(k.slotEntryTrigger instanceof y8&&NG(k,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new cuD(F,k,this.ek);if(NG(k,[],"SLOT_TYPE_PLAYER_BYTES"))return new PFx(F,k,this.ek);throw new L("Unsupported slot with type "+k.slotType+" and client metadata: "+(qG(k.clientMetadata)+" in PlayerBytesSlotAdapterFactory."));};g.T(bq,g.S);bq.prototype.Y=function(F){for(var k=[],z=g.l(this.lL.values()),x=z.next();!x.done;x=z.next()){x=x.value;var D=x.trigger;D instanceof fp&&x.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&&D.triggeringLayoutId===F&&k.push(x)}k.length?aG(this.eG(),k):To("Mute requested but no registered triggers can be activated.")};g.T(Jk,bq);g.A=Jk.prototype;g.A.W5=function(F,k){if(k)if(F==="skip-button"){F=[];for(var z=g.l(this.lL.values()),x=z.next();!x.done;x=z.next()){x=x.value;var D=x.trigger;D instanceof fp&&x.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&D.triggeringLayoutId===k&&F.push(x)}F.length&&aG(this.eG(),F)}else zU(this.Ff.get(),"supports_multi_step_on_desktop")?F==="ad-action-submit-survey"&&d2(this,k):F==="survey-submit"?d2(this,k):F==="survey-single-select-answer-button"&&d2(this,k)};
g.A.X6=function(F){bq.prototype.Y.call(this,F)};
g.A.aO=function(F,k,z,x){if(this.lL.has(k.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(k instanceof x8||k instanceof fp))throw new L("Incorrect TriggerType: Tried to register trigger of type "+k.triggerType+" in AdUxUpdateTriggerAdapter.");this.lL.set(k.triggerId,new D$(F,k,z,x))};
g.A.iJ=function(F){this.lL.delete(F.triggerId)};
g.A.Es=function(){};
g.A.ij=function(){};
g.A.s2=function(){};g.T(ys,g.S);g.A=ys.prototype;
g.A.aO=function(F,k,z,x){if(this.lL.has(k.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(k instanceof Kp||k instanceof W7||k instanceof F4||k instanceof k8||k instanceof oO||k instanceof zJ||k instanceof Yj||k instanceof Io||k instanceof ao||k instanceof H7||k instanceof gA||k instanceof V8))throw new L("Incorrect TriggerType: Tried to register trigger of type "+k.triggerType+" in AdsControlFlowEventTriggerAdapter");F=new D$(F,k,z,x);this.lL.set(k.triggerId,F);k instanceof
oO&&this.W.has(k.triggeringSlotId)&&aG(this.Y(),[F]);k instanceof Kp&&this.U.has(k.triggeringSlotId)&&aG(this.Y(),[F]);k instanceof Io&&this.L.has(k.triggeringLayoutId)&&aG(this.Y(),[F])};
g.A.iJ=function(F){this.lL.delete(F.triggerId)};
g.A.M0=function(F){this.W.add(F.slotId);for(var k=[],z=g.l(this.lL.values()),x=z.next();!x.done;x=z.next())x=x.value,x.trigger instanceof oO&&F.slotId===x.trigger.triggeringSlotId&&k.push(x);k.length>0&&aG(this.Y(),k)};
g.A.q$=function(F){this.W.delete(F.slotId);for(var k=[],z=g.l(this.lL.values()),x=z.next();!x.done;x=z.next()){x=x.value;var D=x.trigger;D instanceof zJ&&D.triggeringSlotId===F.slotId&&k.push(x)}k.length>0&&aG(this.Y(),k)};
g.A.Gr=function(F){for(var k=[],z=g.l(this.lL.values()),x=z.next();!x.done;x=z.next()){x=x.value;var D=x.trigger;D instanceof Yj&&D.slotType===F.slotType&&D.Y!==F.slotId&&k.push(x)}k.length>0&&aG(this.Y(),k)};
g.A.II=function(F){this.U.add(F.slotId);for(var k=[],z=g.l(this.lL.values()),x=z.next();!x.done;x=z.next())x=x.value,x.trigger instanceof Kp&&F.slotId===x.trigger.triggeringSlotId&&k.push(x);k.length>0&&aG(this.Y(),k)};
g.A.GM=function(F){this.U.delete(F.slotId);this.j.add(F.slotId);for(var k=[],z=g.l(this.lL.values()),x=z.next();!x.done;x=z.next())if(x=x.value,x.trigger instanceof W7)F.slotId===x.trigger.triggeringSlotId&&k.push(x);else if(x.trigger instanceof V8){var D=x.trigger;F.slotId===D.slotId&&this.L.has(D.triggeringLayoutId)&&k.push(x)}k.length>0&&aG(this.Y(),k)};
g.A.JH=function(F){for(var k=[],z=g.l(this.lL.values()),x=z.next();!x.done;x=z.next())x=x.value,x.trigger instanceof F4&&F.slotId===x.trigger.triggeringSlotId&&k.push(x);k.length>0&&aG(this.Y(),k)};
g.A.R3=function(F){for(var k=[],z=g.l(this.lL.values()),x=z.next();!x.done;x=z.next())x=x.value,x.trigger instanceof k8&&F.slotId===x.trigger.triggeringSlotId&&k.push(x);k.length>0&&aG(this.Y(),k)};
g.A.FY=function(F,k){this.S.add(k.layoutId)};
g.A.gR=function(F,k){this.S.delete(k.layoutId)};
g.A.sH=function(F,k){this.L.add(k.layoutId);for(var z=[],x=g.l(this.lL.values()),D=x.next();!D.done;D=x.next())if(D=D.value,D.trigger instanceof Io)k.layoutId===D.trigger.triggeringLayoutId&&z.push(D);else if(D.trigger instanceof gA){var e=D.trigger;F.slotType===e.slotType&&k.layoutType===e.layoutType&&k.layoutId!==e.Y&&z.push(D)}else D.trigger instanceof V8&&(e=D.trigger,k.layoutId===e.triggeringLayoutId&&this.j.has(e.slotId)&&z.push(D));z.length>0&&aG(this.Y(),z)};
g.A.XI=function(F,k,z){this.L.delete(k.layoutId);F=[];for(var x=g.l(this.lL.values()),D=x.next();!D.done;D=x.next())if(D=D.value,D.trigger instanceof ao&&k.layoutId===D.trigger.triggeringLayoutId&&F.push(D),D.trigger instanceof H7){var e=D.trigger;k.layoutId===e.triggeringLayoutId&&e.Y.includes(z)&&F.push(D)}F.length>0&&aG(this.Y(),F)};
g.A.wR=function(){};
g.A.Cb=function(){this.j.clear()};
g.A.hR=function(){};g.T(RT,g.S);RT.prototype.aO=function(F,k,z,x){if(this.lL.has(k.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(k instanceof P7))throw new L("Incorrect TriggerType: Tried to register trigger of type "+k.triggerType+" in CloseRequestedTriggerAdapter");this.lL.set(k.triggerId,new D$(F,k,z,x))};
RT.prototype.iJ=function(F){this.lL.delete(F.triggerId)};g.T(YX,g.S);YX.prototype.aO=function(F,k,z,x){if(this.lL.has(k.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(k instanceof c7||k instanceof ML))throw new L("Incorrect TriggerType: Tried to register trigger of type "+k.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.lL.set(k.triggerId,new D$(F,k,z,x))};
YX.prototype.iJ=function(F){this.lL.delete(F.triggerId)};
YX.prototype.Cb=function(F){for(var k=[],z=k.push,x=z.apply,D=[],e=g.l(this.lL.values()),C=e.next();!C.done;C=e.next())C=C.value,C.trigger instanceof c7&&C.trigger.uv===F&&D.push(C);x.call(z,k,g.r(D));z=k.push;x=z.apply;D=[];e=g.l(this.lL.values());for(C=e.next();!C.done;C=e.next())C=C.value,C.trigger instanceof ML&&C.trigger.Y!==F&&D.push(C);x.call(z,k,g.r(D));k.length&&aG(this.Y(),k)};
YX.prototype.hR=function(F){for(var k=[],z=k.push,x=z.apply,D=[],e=g.l(this.lL.values()),C=e.next();!C.done;C=e.next()){C=C.value;var p=C.trigger;p instanceof ML&&p.Y===F&&D.push(C)}x.call(z,k,g.r(D));k.length&&aG(this.Y(),k)};g.T(n$,g.S);g.A=n$.prototype;g.A.aO=function(F,k,z,x){if(this.lL.has(k.triggerId))throw new L("Tried to register duplicate trigger for slot.");var D="adtriggercuerange:"+k.triggerId;if(k instanceof y8)O2k(this,F,k,z,x,D,k.Y.start,k.Y.end,k.uv,k.visible);else if(k instanceof O9)O2k(this,F,k,z,x,D,0x7ffffffffffff,0x8000000000000,k.uv,k.visible);else throw new L("Incorrect TriggerType: Tried to register trigger of type "+k.triggerType+" in CueRangeTriggerAdapter");};
g.A.iJ=function(F){var k=this.lL.get(F.triggerId);k&&this.Jl.get().removeCueRange(k.cueRangeId);this.lL.delete(F.triggerId)};
g.A.onCueRangeEnter=function(F){var k=VMD(this,F);if(k&&(k=this.lL.get(k)))if(g.n(W2(this.ek.get()),32))this.Y.add(k.cueRangeId);else{var z=k==null?void 0:k.m2.trigger;if(z instanceof y8||z instanceof O9){if(vw(this.context.Ff.get())){var x=k.m2.slot,D=k.m2.layout,e={};this.context.dI.LN("cre",(e.ca=k.m2.category,e.tt=z.triggerType,e.st=x.slotType,e.lt=D==null?void 0:D.layoutType,e.cid=F,e))}aG(this.L(),[k.m2])}}};
g.A.onCueRangeExit=function(F){(F=VMD(this,F))&&(F=this.lL.get(F))&&this.Y.delete(F.cueRangeId)};
g.A.B5=function(F){if(Qo(F,16)<0){F=g.l(this.Y);for(var k=F.next();!k.done;k=F.next())this.onCueRangeEnter(k.value,!0);this.Y.clear()}};
g.A.M0=function(){};
g.A.q$=function(){};
g.A.Gr=function(){};
g.A.II=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(){};
g.A.gR=function(){};
g.A.sH=function(){};
g.A.XI=function(){};
g.A.wR=function(){};
g.A.M4=function(){};
g.A.onFullscreenToggled=function(){};
g.A.I3=function(){};
g.A.kR=function(){};
g.A.PM=function(){};
g.A.onVolumeChange=function(){};
g.A.MB=function(){};
g.A.D$=function(){};g.T(Mx,g.S);g.A=Mx.prototype;
g.A.aO=function(F,k,z,x){if(this.L.has(k.triggerId)||this.U.has(k.triggerId))throw new L("Tried to re-register the trigger.");F=new D$(F,k,z,x);if(F.trigger instanceof Jj)this.L.set(F.trigger.triggerId,F);else if(F.trigger instanceof SG)this.U.set(F.trigger.triggerId,F);else throw new L("Incorrect TriggerType: Tried to register trigger of type "+F.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.L.has(F.trigger.triggerId)&&F.slot.slotId===this.Y&&aG(this.j(),[F])};
g.A.iJ=function(F){this.L.delete(F.triggerId);this.U.delete(F.triggerId)};
g.A.VK=function(F){F=F.slotId;if(this.Y!==F){var k=[];this.Y!=null&&k.push.apply(k,g.r(IRM(this.U,this.Y)));F!=null&&k.push.apply(k,g.r(IRM(this.L,F)));this.Y=F;k.length&&aG(this.j(),k)}};
g.A.Rn=function(){};
g.A.JO=function(){};g.T(L$,g.S);g.A=L$.prototype;g.A.aO=function(F,k,z,x){if(this.lL.has(k.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(k instanceof np))throw new L("Incorrect TriggerType: Tried to register trigger of type "+k.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.lL.set(k.triggerId,new D$(F,k,z,x))};
g.A.iJ=function(F){this.lL.delete(F.triggerId)};
g.A.sH=function(){};
g.A.XI=function(){};
g.A.M0=function(){};
g.A.q$=function(){};
g.A.Gr=function(){};
g.A.II=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(){};
g.A.gR=function(){};
g.A.wR=function(){};g.T(f$,g.S);g.A=f$.prototype;g.A.wR=function(F,k){for(var z=[],x=g.l(this.lL.values()),D=x.next();!D.done;D=x.next()){D=D.value;var e=D.trigger;e.opportunityType===F&&(e.associatedSlotId&&e.associatedSlotId!==k||z.push(D))}z.length&&aG(this.Y(),z)};
g.A.aO=function(F,k,z,x){if(this.lL.has(k.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(k instanceof nZx))throw new L("Incorrect TriggerType: Tried to register trigger of type "+k.triggerType+" in OpportunityEventTriggerAdapter");this.lL.set(k.triggerId,new D$(F,k,z,x))};
g.A.iJ=function(F){this.lL.delete(F.triggerId)};
g.A.M0=function(){};
g.A.q$=function(){};
g.A.Gr=function(){};
g.A.II=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(){};
g.A.gR=function(){};
g.A.sH=function(){};
g.A.XI=function(){};g.T(K$,g.S);g.A=K$.prototype;g.A.aO=function(F,k,z,x){F=new D$(F,k,z,x);if(k instanceof bc||k instanceof Ro||k instanceof dA||k instanceof Lp||k instanceof YSp){if(this.lL.has(k.triggerId))throw new L("Tried to register duplicate trigger for slot.");this.lL.set(k.triggerId,F)}else throw new L("Incorrect TriggerType: Tried to register trigger of type "+k.triggerType+" in PrefetchTriggerAdapter");};
g.A.iJ=function(F){this.lL.delete(F.triggerId)};
g.A.M0=function(F){var k=F.slotFulfillmentTriggers.find(function(z){return z instanceof bc});
k&&WF(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",k.breakDurationMs,new Set([F.slotId]),!0)};
g.A.q$=function(){};
g.A.Gr=function(){};
g.A.II=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(){};
g.A.gR=function(){};
g.A.sH=function(){};
g.A.XI=function(){};
g.A.wR=function(){};
g.A.iE=function(F){if(!this.Y)return To("Unexpected cue break before fetch instructions are available"),!1;this.L&&this.L.stop();this.U&&g.WN(this.U);F=(F.B8+1)*1E3;var k=void 0;for(var z=g.l(this.lL.values()),x=z.next();!x.done;x=z.next()){var D=x.value;x=D.trigger;D=D.slot;x instanceof bc&&x.breakDurationMs<=F&&(!k||x.breakDurationMs>k.trigger.breakDurationMs)&&(k={slot:D,trigger:x})}if(!k)return!1;F=k.trigger;k=k.slot;WF(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",F.breakDurationMs,
new Set,!0);WF(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",F.breakDurationMs,new Set,!1);this.j.add(k.slotId);return!0};
g.A.uR=function(){};
g.A.Cb=function(F){this.Y&&this.Y.contentCpn!==F?(To("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:F,fetchInstructionsCpn:this.Y.contentCpn}),Ft(this)):aRn(this)};
g.A.hR=function(F){this.Y&&this.Y.contentCpn!==F&&To("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:F,fetchInstructionsCpn:this.Y.contentCpn},!0);Ft(this)};
g.A.k7=function(F){var k=this;if(this.Y)To("Unexpected multiple fetch instructions for the current content");else{this.Y=F;F=b2n(F);this.L=new g.KS(function(){aRn(k)},F?F:6E5);
this.L.start();this.U=new g.KS(function(){k.Y&&(k.L&&(k.L.stop(),k.L.start()),H2I(k,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},SEC(this.Y));
F=this.ek.get().getCurrentTimeSec(1,!1);for(var z=g.l(this.O3.get().cq),x=z.next();!x.done;x=z.next())x=x.value,Cp(this.oU.get(),"nocache","ct."+Date.now()+";cmt."+F+";d."+x.B8.toFixed(3)+";tw."+(x.startSecs-F)+";cid."+x.identifier+";")}};
g.A.h4=function(){g.S.prototype.h4.call(this);Ft(this)};g.T(ki,g.S);g.A=ki.prototype;g.A.aO=function(F,k,z,x){if(this.lL.has(k.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(k instanceof iB))throw new L("Incorrect TriggerType: Tried to register trigger of type "+k.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.lL.set(k.triggerId,new D$(F,k,z,x));F=this.Y.has(k.triggeringLayoutId)?this.Y.get(k.triggeringLayoutId):new Set;F.add(k);this.Y.set(k.triggeringLayoutId,F)};
g.A.iJ=function(F){this.lL.delete(F.triggerId);if(!(F instanceof iB))throw new L("Incorrect TriggerType: Tried to unregister trigger of type "+F.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var k=this.L.get(F.triggerId);k&&(k.dispose(),this.L.delete(F.triggerId));if(k=this.Y.get(F.triggeringLayoutId))k.delete(F),k.size===0&&this.Y.delete(F.triggeringLayoutId)};
g.A.M0=function(){};
g.A.q$=function(){};
g.A.Gr=function(){};
g.A.II=function(){};
g.A.GM=function(){};
g.A.JH=function(){};
g.A.R3=function(){};
g.A.FY=function(){};
g.A.gR=function(){};
g.A.wR=function(){};
g.A.sH=function(F,k){var z=this;if(this.Y.has(k.layoutId)){F=this.Y.get(k.layoutId);F=g.l(F);var x=F.next();for(k={};!x.done;k={cV:void 0},x=F.next())k.cV=x.value,x=new g.KS(function(D){return function(){var e=z.lL.get(D.cV.triggerId);aG(z.U(),[e])}}(k),k.cV.durationMs),x.start(),this.L.set(k.cV.triggerId,x)}};
g.A.XI=function(){};g.T(ol,g.S);ol.prototype.aO=function(F,k,z,x){if(this.lL.has(k.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(k instanceof Zk))throw new L("Incorrect TriggerType: Tried to register trigger of type "+k.triggerType+" in VideoTransitionTriggerAdapter.");this.lL.set(k.triggerId,new D$(F,k,z,x))};
ol.prototype.iJ=function(F){this.lL.delete(F.triggerId)};D7.prototype.Jr=function(F){return F.kind==="AD_PLACEMENT_KIND_START"};g.T(ej,g.S);g.A=ej.prototype;g.A.logEvent=function(F){this.f0(F)};
g.A.Se=function(F,k,z){this.f0(F,void 0,void 0,void 0,k,void 0,void 0,void 0,k.adSlotLoggingData,void 0,void 0,z)};
g.A.jU=function(F,k,z,x){this.f0(F,void 0,void 0,void 0,k,z?z:void 0,void 0,void 0,k.adSlotLoggingData,z?z.adLayoutLoggingData:void 0,void 0,x)};
g.A.Ww=function(F,k,z,x){zU(this.Ff.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+F,"trigger:",z,"slot:",k,"layout:",x);mK(this.Y.get())&&this.f0(F,void 0,void 0,void 0,k,x?x:void 0,void 0,z,k.adSlotLoggingData,x?x.adLayoutLoggingData:void 0)};
g.A.Uw=function(F,k,z,x,D){this.f0(F,k,z,x,void 0,void 0,void 0,void 0,void 0,void 0,void 0,D)};
g.A.bf=function(F,k,z,x){this.f0("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,z,x,void 0,void 0,z.adSlotLoggingData,x?x.adLayoutLoggingData:void 0,{errorType:F,errorMessage:k})};
g.A.f0=function(F,k,z,x,D,e,C,p,E,X,q,N){var u=this;N=N===void 0?0:N;zU(this.Ff.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+F,"slot:",D,"layout:",e,"ping:",C,"Opportunity:",{opportunityType:k,associatedSlotId:z,XDJ:x,WgG:p,adSlotLoggingData:E,adLayoutLoggingData:X});try{var w=function(){if(!u.Ff.get().T.C().V("html5_disable_client_tmp_logs")&&F!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){F||To("Empty PACF event type",D,e);var m=mK(u.Y.get()),h={eventType:F,eventOrder:++u.eventCount},B={};
D&&(B.slotData=w_(m,D));e&&(B.layoutData=ss5(m,e));C&&(B.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:C.Y.serializedAdPingMetadata,pingIndex:C.index});p&&(B.triggerData=uw(p.trigger,p.category));k&&(B.opportunityData=rVC(m,k,z,x));m={organicPlaybackContext:{contentCpn:sI(u.xG.get(),1).clientPlaybackNonce}};m.organicPlaybackContext.isLivePlayback=sI(u.xG.get(),1).oS;var U;m.organicPlaybackContext.isMdxPlayback=(U=sI(u.xG.get(),1))==null?void 0:U.isMdxPlayback;
var v;if((v=sI(u.xG.get(),1))==null?0:v.daiEnabled)m.organicPlaybackContext.isDaiContent=!0;var P;if(U=(P=sI(u.xG.get(),2))==null?void 0:P.clientPlaybackNonce)m.adVideoPlaybackContext={adVideoCpn:U};m&&(B.externalContext=m);h.adClientData=B;E&&(h.serializedSlotAdServingData=E.serializedSlotAdServingDataEntry);X&&(h.serializedAdServingData=X.serializedAdServingDataEntry);q&&(h.errorInfo=q);g.NA("adsClientStateChange",{adsClientEvent:h})}};
N&&N>0?g.iM(g.$K(),function(){return w()},N):w()}catch(m){zU(this.Ff.get(),"html5_log_pacf_logging_errors")&&g.iM(g.$K(),function(){To(m instanceof Error?m:String(m),D,e,{pacf_message:"exception during pacf logging"})})}};var N$$=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.T(CN,ej);g.A=CN.prototype;
g.A.Se=function(F,k,z){ej.prototype.Se.call(this,F,k,z);vw(this.Ff.get())&&(z={},this.context.dI.LN("pacf",(z.et=F,z.st=k.slotType,z.si=k.slotId,z)))};
g.A.jU=function(F,k,z,x){var D=N$$.has(F);ej.prototype.jU.call(this,F,k,z,x);vw(this.Ff.get(),D)&&(x={},this.context.dI.LN("pacf",(x.et=F,x.st=k.slotType,x.si=k.slotId,x.lt=z==null?void 0:z.layoutType,x.li=z==null?void 0:z.layoutId,x.p_ac=z==null?void 0:z.layoutId,x)))};
g.A.Uw=function(F,k,z,x,D){ej.prototype.Uw.call(this,F,k,z,x,D);vw(this.Ff.get())&&(z={},this.context.dI.LN("pacf",(z.et=F,z.ot=k,z.ss=x==null?void 0:x.length,z)))};
g.A.Ww=function(F,k,z,x){ej.prototype.Ww.call(this,F,k,z,x);if(vw(this.Ff.get())){var D={};this.context.dI.LN("pacf",(D.et=F,D.tt=z.trigger.triggerType,D.tc=z.category,D.st=k.slotType,D.si=k.slotId,D.lt=x==null?void 0:x.layoutType,D.li=x==null?void 0:x.layoutId,D.p_ac=x==null?void 0:x.layoutId,D))}};
g.A.bf=function(F,k,z,x){ej.prototype.bf.call(this,F,k,z,x);if(vw(this.Ff.get(),!0)){var D={};this.context.dI.LN("perror",(D.ert=F,D.erm=k,D.st=z.slotType,D.si=z.slotId,D.lt=x==null?void 0:x.layoutType,D.li=x==null?void 0:x.layoutId,D.p_ac=x==null?void 0:x.layoutId,D))}};
g.A.f0=function(F,k,z,x,D,e,C,p,E,X,q){if(g.Vi(this.Ff.get().T.C())){var N=this.Ff.get();N=g.lw(N.T.C().experiments,"H5_async_logging_delay_ms")}else N=void 0;ej.prototype.f0.call(this,F,k,z,x,D,e,C,p,E,X,q,N)};Ad.prototype.clear=function(){this.Y.clear()};Xt.prototype.resolve=function(F){pN(this,F)};
Xt.prototype.reject=function(F){Ew(this,F)};
Xt.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}};
Xt.prototype.wait=function(){var F=this;return function z(){return p6a(z,function(x){if(x.Y==1)return g.hn(x,2),g.c(x,{l8:F},4);if(x.Y!=2)return x.return(x.L);g.B6(x);return g.UC(x,0)})}()};
var oCY=Yr(function(F){return qD(F)?F instanceof Xt:!1});Object.freeze({nCK:function(F){var k=iE5(F);return QK(xGR(k,function(z){return k[z].currentState==="fail"}),function(z){return Number.isNaN(z)?k.map(function(x){return x.state().result}):k[z]})},
xIR:function(F){var k=iE5(F);return QK(xGR(k),function(){return k.map(function(z){return z.state()})})}});var Bc=window.MiJ||"en";Z7.prototype.u2=function(F){this.client=F};
Z7.prototype.Y=function(){this.clear();this.csn=g.OK()};
Z7.prototype.clear=function(){this.U.clear();this.L.clear();this.j.clear();this.csn=null};cc.prototype.u2=function(F){g.oS(vc().u2).bind(vc())(F)};
cc.prototype.clear=function(){g.oS(vc().clear).bind(vc())()};g.A=Pc.prototype;g.A.u2=function(F){this.client=F};
g.A.BY=function(F,k){var z=this;k=k===void 0?{}:k;g.oS(function(){var x,D,e,C=((x=g.J(F==null?void 0:F.commandMetadata,g.wJ))==null?void 0:x.rootVe)||((D=g.J(F==null?void 0:F.commandMetadata,cO$))==null?void 0:(e=D.screenVisualElement)==null?void 0:e.uiType);if(C){x=g.J(F==null?void 0:F.commandMetadata,Kv7);if(x==null?0:x.parentTrackingParams){var p=g.vz(x.parentTrackingParams);if(x.parentCsn)var E=x.parentCsn}else k.clickedVisualElement?p=k.clickedVisualElement:F.clickTrackingParams&&(p=g.vz(F.clickTrackingParams));
a:{x=g.J(F,g.W3);D=g.J(F,R5n);if(x){if(D=$GM(x,"VIDEO")){x={token:D,videoId:x.videoId};break a}}else if(D&&(x=$GM(D,"PLAYLIST"))){x={token:x,playlistId:D.playlistId};break a}x=void 0}k=Object.assign({},{cttAuthInfo:x,parentCsn:E},k);if(g.sY("expectation_logging")){var X;k.loggingExpectations=((X=g.J(F==null?void 0:F.commandMetadata,cO$))==null?void 0:X.loggingExpectations)||void 0}VK(z,C,p,k)}else g.yI(new g.Fa("Error: Trying to create a new screen without a rootVeType",F))})()};
g.A.clickCommand=function(F,k,z){F=F.clickTrackingParams;z=z===void 0?0:z;F?(z=g.OK(z===void 0?0:z))?(jL(this.client,z,g.vz(F),k),k=!0):k=!1:k=!1;return k};
g.A.stateChanged=function(F,k,z){this.visualElementStateChanged(g.vz(F),k,z===void 0?0:z)};
g.A.visualElementStateChanged=function(F,k,z){z=z===void 0?0:z;z===0&&this.L.has(z)?this.B.push([F,k]):ERn(this,F,k,z)};Sj.prototype.fetch=function(F,k,z){var x=this,D=N_x(F,k,z);return new Promise(function(e,C){function p(){if(z==null?0:z.XJ)try{var X=x.handleResponse(F,D.status,D.response,z);e(X)}catch(q){C(q)}else e(x.handleResponse(F,D.status,D.response,z))}
D.onerror=p;D.onload=p;var E;D.send((E=k.body)!=null?E:null)})};
Sj.prototype.handleResponse=function(F,k,z,x){z=z.replace(")]}'","");try{var D=JSON.parse(z)}catch(e){g.yI(new g.Fa("JSON parsing failed after XHR fetch",F,k,z));if((x==null?0:x.XJ)&&z)throw new g.C1(1,"JSON parsing failed after XHR fetch");D={}}k!==200&&(g.yI(new g.Fa("XHR API fetch failed",F,k,z)),D=Object.assign({},D,{errorMetadata:{status:k}}));return D};bk.getInstance=function(){var F=g.yR("ytglobal.storage_");F||(F=new bk,g.dI("ytglobal.storage_",F));return F};
bk.prototype.estimate=function(){var F,k,z;return g.O(function(x){F=navigator;return((k=F.storage)==null?0:k.estimate)?x.return(F.storage.estimate()):((z=F.webkitTemporaryStorage)==null?0:z.queryUsageAndQuota)?x.return(uXp()):x.return()})};
g.dI("ytglobal.storageClass_",bk);Xa.prototype.Q3=function(F){this.handleError(F)};
Xa.prototype.logEvent=function(F,k){switch(F){case "IDB_DATA_CORRUPTED":g.sY("idb_data_corrupted_killswitch")||this.Y("idbDataCorrupted",k);break;case "IDB_UNEXPECTEDLY_CLOSED":this.Y("idbUnexpectedlyClosed",k);break;case "IS_SUPPORTED_COMPLETED":g.sY("idb_is_supported_completed_killswitch")||this.Y("idbIsSupportedCompleted",k);break;case "QUOTA_EXCEEDED":mG6(this,k);break;case "TRANSACTION_ENDED":this.U&&Math.random()<=.1&&this.Y("idbTransactionEnded",k);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":F=
Object.assign({},k,{hasWindowUnloaded:this.L}),this.Y("idbTransactionAborted",F)}};var y3={},Lhk=g.jA("yt-player-local-media",{C0:(y3.index={Ot:2},y3.media={Ot:2},y3.captions={Ot:5},y3),shared:!1,upgrade:function(F,k){k(2)&&(g.HA(F,"index"),g.HA(F,"media"));k(5)&&g.HA(F,"captions");k(6)&&(aw(F,"metadata"),aw(F,"playerdata"))},
version:5});var uvV={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},Re;a:{var gJ=g.ZH();gJ=gJ.toLowerCase();if(g.r9(gJ,"android")){var wRV=gJ.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(wRV){var m6$=parseFloat(wRV[1]);if(m6$<100){Re=m6$;break a}}var T$t=gJ.match("("+Object.keys(uvV).join("|")+")");Re=T$t?uvV[T$t[0]]:0}else Re=void 0}var PJ=Re,cJ=PJ>=0;var ntY=window;var T_5=sz(function(){var F,k;return(k=(F=window).matchMedia)==null?void 0:k.call(F,"(prefers-reduced-motion: reduce)").matches});var Jd;g.dM=new Iz;Jd=0;var yK={g6:function(F){F.reverse()},
Ri:function(F,k){F.splice(0,k)},
Vf:function(F,k){var z=F[0];F[0]=F[k%F.length];F[k%F.length]=z}};var $eH=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var kH=UG5()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.o9?!0:!1;var nhH={so4:"adunit",coR:"detailpage",JoQ:"editpage",qTp:"embedded",EfK:"leanback",oFR:"previewpage",bsa:"profilepage",cX:"unplugged",gFQ:"playlistoverview",XFa:"sponsorshipsoffer",Qx_:"shortspage",XO4:"handlesclaiming",GRU:"immersivelivepage",XN4:"creatormusic",J$k:"immersivelivepreviewpage",MUJ:"admintoolyurt",Um$:"shortsaudiopivot",hOa:"consumption"};var ta5=2592E3;var YL,laA,hh;YL={};g.Wc=(YL.STOP_EVENT_PROPAGATION="html5-stop-propagation",YL.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",YL.IV_DRAWER_OPEN="ytp-iv-drawer-open",YL.MAIN_VIDEO="html5-main-video",YL.VIDEO_CONTAINER="html5-video-container",YL.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",YL.HOUSE_BRAND="house-brand",YL);laA={};hh=(laA.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",laA.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",laA);var HER={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var dQ6={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},JeM={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"},xqn={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var qjx={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.Ct.prototype.getLanguageInfo=function(){return this.ZD};
g.Ct.prototype.getXtags=function(){if(!this.xtags){var F=this.id.split(";");F.length>1&&(this.xtags=F[1])}return this.xtags};
g.Ct.prototype.toString=function(){return this.ZD.name};
g.Ct.prototype.getLanguageInfo=g.Ct.prototype.getLanguageInfo;AX.prototype.VZ=function(F){return this.L===F.L&&this.Y===F.Y&&this.U===F.U&&this.reason===F.reason&&(!E_||this.Yu===F.Yu)};
AX.prototype.isLocked=function(){return this.U&&!!this.L&&this.L===this.Y};
AX.prototype.compose=function(F){if(F.U&&XM(F))return y6;if(F.U||XM(this))return F;if(this.U||XM(F))return this;var k=this.L&&F.L?Math.max(this.L,F.L):this.L||F.L,z=this.Y&&F.Y?Math.min(this.Y,F.Y):this.Y||F.Y;k=Math.min(k,z);var x=0;E_&&(x=this.Yu!==0&&F.Yu!==0?Math.min(this.Yu,F.Yu):this.Yu===0?F.Yu:this.Yu);return E_&&k===this.L&&z===this.Y&&x===this.Yu||!E_&&k===this.L&&z===this.Y?this:E_?new AX(k,z,!1,z===this.Y&&x===this.Yu?this.reason:F.reason,x):new AX(k,z,!1,z===this.Y?this.reason:F.reason)};
AX.prototype.j=function(F){return!F.video||E_&&this.Yu!==0&&this.Yu<F.Yu?!1:RIa(this,F.video.quality)};
var QK7=g.pt("auto","hd1080",!1,"l"),nFn=g.pt("auto","large",!1,"l"),y6=g.pt("auto","auto",!1,"p"),E_=!1;wV.prototype.hI=function(F){F=F||y6;for(var k=g.pT(this.videoInfos,function(C){return F.j(C)}),z=[],x={},D=0;D<k.length;D++){var e=k[D].video;
x[e.quality]||(z.push(e),x[e.quality]=!0)}return z};
wV.prototype.j3=function(F){F=F||y6;return g.pT(this.videoInfos,function(k){return F.j(k)})};
wV.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var emn=new Set(["356"]);g.T(my,g.S);my.prototype.h4=function(){g.S.prototype.h4.call(this)};g.ZN.prototype.set=function(F,k){this.Y[F]!==k&&(this.Y[F]=k,this.url=o5[5])};
g.ZN.prototype.get=function(F){vO(this);return this.Y[F]||null};
g.ZN.prototype.q5=function(){this.url||(this.url=q36(this));return this.url};
g.ZN.prototype.clone=function(){var F=new g.ZN(this.L,this.j);F.scheme=this.scheme;F.path=this.path;F.U=this.U;F.Y=g.Jg(this.Y);F.url=this.url;return F};
var XwH=[OTp];g.A=g.ay.prototype;g.A.QD=function(F){this.segments.push(F)};
g.A.d8=function(F){return!!this.jg(F)};
g.A.getDuration=function(F){return(F=this.jg(F))?F.duration:0};
g.A.n9=function(F){return this.getDuration(F)};
g.A.n5=function(){return 0};
g.A.E0=function(){return this.segments.length?this.segments[0].gt:-1};
g.A.B7=function(F){return(F=this.jg(F))?F.ingestionTime:NaN};
g.A.OJ=function(){return this.segments.length?this.segments[this.segments.length-1].gt:-1};
g.A.OX=function(F){return this.OJ()===F&&!this.L&&F>=0};
g.A.iF=function(){var F=this.segments[this.segments.length-1];return F?F.endTime:NaN};
g.A.oy=function(){return this.segments[0].startTime};
g.A.Y8=function(){return this.segments.length};
g.A.Zh=function(){return 0};
g.A.kA=function(F){return(F=this.Ns(F))?F.gt:-1};
g.A.NL=function(F){return(F=this.jg(F))?F.sourceURL:""};
g.A.getStartTime=function(F){return(F=this.jg(F))?F.startTime:0};
g.A.yA=function(F){return this.getStartTime(F)+this.getDuration(F)};
g.A.u_=zp(1);g.A.isLoaded=function(){return this.segments.length>0};
g.A.jg=function(F){if(this.Y&&this.Y.gt===F)return this.Y;F=g.eS(this.segments,new HO(F,0,0,0,""),function(k,z){return k.gt-z.gt});
return this.Y=F>=0?this.segments[F]:null};
g.A.Ns=function(F){if(this.Y&&this.Y.startTime<=F&&F<this.Y.startTime+this.Y.duration)return this.Y;F=g.eS(this.segments,{startTime:F},function(k,z){return k.startTime-z.startTime});
return this.Y=F>=0?this.segments[F]:this.segments[Math.max(0,-F-2)]};
g.A.append=function(F){if(F.length)if(F=g.z8(F),this.segments.length){var k=this.segments.length?g.YG(this.segments).endTime:0,z=F[0].gt-this.OJ();z>1&&Knk(this.segments);for(z=z>0?0:-z+1;z<F.length;z++){var x=F[z];x.startTime=k;x.endTime=x.startTime+x.duration;k+=F[z].duration;this.segments.push(F[z])}}else this.segments=F};
g.A.Ad=function(){return 0};Sp.prototype.skip=function(F){this.Y+=F};TuM.prototype.fk=function(){return new Uint8Array(this.data.buffer)};var nr={},hnC=(nr.predictStart="predictStart",nr.start="start",nr["continue"]="continue",nr.stop="stop",nr),l65={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};Lt.prototype.FB=function(){return!!(this.data["Stitched-Video-Id"]||this.data["Stitched-Video-Cpn"]||this.data["Stitched-Video-Duration-Us"]||this.data["Stitched-Video-Start-Frame-Index"]||this.data["Serialized-State"]||this.data["Is-Ad-Break-Finished"])};
Lt.prototype.toString=function(){for(var F="",k=g.l(Object.keys(this.data)),z=k.next();!z.done;z=k.next())z=z.value,F+=z+":"+this.data[z]+";";return F};ew.prototype.ox=function(){var F=this.pos;this.pos=0;var k=!1;try{EO(this,440786851)&&(this.pos=0,EO(this,408125543)&&(k=!0))}catch(z){if(z instanceof RangeError)this.pos=0,k=!1,g.yI(z);else throw z;}this.pos=F;return k};hv.prototype.set=function(F,k){this.base.get(F);this.Y[F]=k;this.url=""};
hv.prototype.get=function(F){return this.Y[F]||this.base.get(F)};
hv.prototype.q5=function(){this.url||(this.url=Jw9(this));return this.url};UO.prototype.PN=function(F,k){return F.qD?this.B?this.S=!0:this.S=RmR(this,F,k):RmR(this,F,k)};
UO.prototype.qL=function(F){return this.U.get(F)};
UO.prototype.HN=function(F,k){F.base===this.Y&&(this.Y=sO(F,k));F.base===this.j&&(this.j=sO(F,k))};
UO.prototype.ZG=function(){return this.Y!==this.j&&!this.S};OO.prototype.Ig=function(){return!!this.Y&&this.index.isLoaded()};
OO.prototype.fV=function(){return!1};
OO.prototype.s8=function(F){return[F]};
OO.prototype.H1=function(F){return[F]};VF.prototype.toString=function(){return this.start+"-"+(this.end==null?"":this.end)};g.A=Sw.prototype;g.A.HM=function(){return this.W&&this.Y.index.OX(this.gt)};
g.A.isEncrypted=function(){return this.Y.info.isEncrypted()};
g.A.VZ=function(F){return!(!F||F.Y!==this.Y||F.type!==this.type||(this.range&&F.range?F.range.start!==this.range.start||F.range.end!==this.range.end:F.range!==this.range)||F.gt!==this.gt||F.L!==this.L||F.U!==this.U)};
g.A.Ci=function(){return!!this.Y.info.video};
g.A.mu=function(){var F=R0(this),k="";g.tg(F,function(z,x){k+=x+"_"+z+"_"});
return k.slice(0,-1)};Yd.prototype.kM=function(){return this.Y?this.Y.q5():""};
Yd.prototype.isDecorated=function(){return!!(this.Y||this.j&&this.j.ea)};
Yd.prototype.d0=function(){return bl(this.sK[0])};
Yd.prototype.HN=function(F,k){this.ez.HN(F,k);if(this.Y){this.Y=sO(F,k);k=g.l(["acpns","cpn","daistate","skipsq"]);for(var z=k.next();!z.done;z=k.next())this.Y.set(z.value,null)}this.requestId=F.get("req_id")};g.T(fz,OO);g.A=fz.prototype;g.A.Ut=function(){return!1};
g.A.CU=function(){return!0};
g.A.VR=function(){return!1};
g.A.fV=function(){return!this.W};
g.A.z0=function(){return new Yd([new Sw(1,this,this.initRange,"getMetadataRequestInfo")],this.W)};
g.A.Dw=function(){return null};
g.A.F5=function(F){this.R5(F);return this.CU()&&F.U&&!F.W?new Yd([new Sw(F.type,F.Y,F.range,"liveGetNextRequestInfoBySegment",F.gt,F.startTime,F.duration,F.L+F.U,NaN,!0)],this.index.NL(F.gt)):this.qw(yF(F),!1)};
g.A.cT=function(F,k){k=k===void 0?!1:k;F=this.index.kA(F);k&&(F=Math.min(this.index.OJ(),F+1));return this.qw(F,!0)};
g.A.mw=function(F){AQ(F)};
g.A.R5=function(F){return F.U===0?!0:this.index.OJ()>F.gt&&this.index.E0()<=F.gt+1};
g.A.update=function(F,k,z){this.index.append(F);wwn(this.index,z);F=this.index;F.L=k;F.U="update"};
g.A.Ig=function(){return this.fV()?!0:OO.prototype.Ig.call(this)};
g.A.qw=function(F,k){var z=this.index.NL(F),x=this.index.getStartTime(F),D=this.index.getDuration(F),e;k?D=e=0:e=this.info.Yu>0?this.info.Yu*D:1E3;return new Yd([new Sw(3,this,void 0,"liveCreateRequestInfoForSegment",F,x,D,0,e,!k)],z)};
g.A.C2=function(){return this.fV()?0:this.initRange.length};
g.A.HU=function(){return!1};FQ.prototype.update=function(F){var k=void 0;this.L&&(k=this.L);var z=new FQ,x=Array.from(F.getElementsByTagName("S"));if(x.length){var D=+Kz(F,"timescale")||1,e=(+x[0].getAttribute("t")||0)/D,C=+Kz(F,"startNumber")||0;z.j=e;var p=k?k.startSecs+k.B8:0,E=Date.parse(Ata(Kz(F,"yt:segmentIngestTime")))/1E3;z.W=F.parentElement.tagName==="SegmentTemplate";z.W&&(z.G=Kz(F,"media"));F=k?C-k.gt:1;z.S=F>0?0:-F+1;F=g.l(x);for(x=F.next();!x.done;x=F.next()){x=x.value;for(var X=+x.getAttribute("d")/D,q=(+x.getAttribute("yt:sid")||
0)/D,N=+x.getAttribute("r")||0,u=0;u<=N;u++)if(k&&C<=k.gt)C++;else{var w=new eBk(C,p,X,E+q,e);z.Y.push(w);var m=x;var h=D,B=w.startSecs;w=m.getAttribute("yt:cuepointTimeOffset");var U=m.getAttribute("yt:cuepointDuration");if(w&&U){w=Number(w);B=-w/h+B;h=Number(U)/h;U=m.getAttribute("yt:cuepointContext")||null;var v=m.getAttribute("yt:cuepointIdentifier")||"";m=m.getAttribute("yt:cuepointEvent")||"";m=new nt(B,h,U,v,hnC[m]||"unknown",w)}else m=null;m&&z.U.push(m);C++;p+=X;e+=X;E+=X+q}}z.Y.length&&
(z.L=g.YG(z.Y))}this.S=z.S;this.L=z.L||this.L;g.xr(this.Y,z.Y);g.xr(this.U,z.U);this.W=z.W;this.G=z.G;this.j===-1&&(this.j=z.getStreamTimeOffset())};
FQ.prototype.getStreamTimeOffset=function(){return this.j===-1?0:this.j};g.T(o3,g.ay);g.A=o3.prototype;g.A.n5=function(){return this.Rg};
g.A.d8=function(F,k){F=zk(this,F);return F>=0&&(k||!this.segments[F].pending)};
g.A.E0=function(){return this.Ks?this.segments.length?this.Ns(this.oy()).gt:-1:g.ay.prototype.E0.call(this)};
g.A.oy=function(){if(this.A5)return 0;if(!this.Ks)return g.ay.prototype.oy.call(this);if(!this.segments.length)return 0;var F=Math.max(g.YG(this.segments).endTime-this.FJ,0);return this.W8>0&&this.Ns(F).gt<this.W8?this.jg(this.W8).startTime:F};
g.A.iF=function(){if(this.b6&&this.YF&&this.YF>0)return this.YF/1E3;if(!this.segments.length)return g.ay.prototype.iF.call(this);var F=this.OJ();if(!this.Ks||F<=this.segments[this.segments.length-1].gt)F=this.segments[this.segments.length-1];else{var k=this.segments[this.segments.length-1];F=new HO(F,Math.max(0,k.startTime-(k.gt-F)*this.Rg),this.Rg,0,"sq/"+F,void 0,void 0,!0)}return this.A5?Math.min(this.FJ,F.endTime):F.endTime};
g.A.Y8=function(){return this.Ks?this.segments.length?this.OJ()-this.E0()+1:0:g.ay.prototype.Y8.call(this)};
g.A.OJ=function(){var F=Math.min(this.zY,Math.max(g.ay.prototype.OJ.call(this),this.wV)),k=this.FJ*1E3;k=this.YF>0&&this.YF<k;this.A5&&this.FJ>0&&this.wV>0&&!k&&(k=this.Ns(this.FJ))&&(F=Math.min(k.gt-1,F));return F};
g.A.Sl=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.A.QD=function(F){var k=zk(this,F.gt);if(k>=0)this.segments[k]=F;else if(this.segments.splice(-(k+1),0,F),this.ra&&F.gt%(300/this.Rg)===0){var z=this.segments[0].gt,x=Math.floor(this.ra/this.Rg);F=F.gt-x;k=-(k+1)-x;k>0&&F>z&&(this.segments=this.segments.slice(k))}};
g.A.l_=function(){return this.wV};
g.A.OX=function(F){return kl?!this.L&&F>=0&&this.OJ()<=F:g.ay.prototype.OX.call(this,F)};
g.A.Ns=function(F){if(!this.Ks)return g.ay.prototype.Ns.call(this,F);if(!this.segments.length)return null;var k=this.segments[this.segments.length-1];if(F<this.segments[0].startTime)k=Math.max(0,this.segments[0].gt-Math.ceil((this.segments[0].startTime-F)/this.Rg));else if(F>=k.endTime)k=k.gt+Math.floor((F-k.endTime)/this.Rg+1);else{k=C8(this.segments,function(x){return F<x.startTime?-1:F>=x.endTime?1:0});
if(k>=0)return this.segments[k];var z=-(k+1);k=this.segments[z-1];z=this.segments[z];k=Math.floor((F-k.endTime)/((z.startTime-k.endTime)/(z.gt-k.gt-1))+1)+k.gt}return this.jg(k)};
g.A.jg=function(F){if(!this.Ks)return g.ay.prototype.jg.call(this,F);if(!this.segments.length)return null;var k=zk(this,F);if(k>=0)return this.segments[k];var z=-(k+1);k=this.Rg;if(z===0)var x=Math.max(0,this.segments[0].startTime-(this.segments[0].gt-F)*k);else z===this.segments.length?(x=this.segments[this.segments.length-1],x=x.endTime+(F-x.gt-1)*k):(x=this.segments[z-1],k=this.segments[z],k=(k.startTime-x.endTime)/(k.gt-x.gt-1),x=x.endTime+(F-x.gt-1)*k);return new HO(F,x,k,0,"sq/"+F,void 0,void 0,
!0)};
var kl=!1;g.T(xl,fz);g.A=xl.prototype;g.A.VR=function(){return!0};
g.A.Ig=function(){return!0};
g.A.R5=function(F){return this.CU()&&F.U&&!F.W||!F.Y.index.OX(F.gt)};
g.A.z0=function(){};
g.A.cT=function(F,k){return typeof F!=="number"||isFinite(F)?fz.prototype.cT.call(this,F,k===void 0?!1:k):new Yd([new Sw(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.dO,void 0,this.dO*this.info.Yu)],"")};
g.A.qw=function(F,k){var z=z===void 0?!1:z;if(this.index.d8(F))return fz.prototype.qw.call(this,F,k);var x=this.index.getStartTime(F),D=Math.round(this.dO*this.info.Yu),e=this.dO;k&&(e=D=0);return new Yd([new Sw(z?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",F,x,e,void 0,D,!k)],F>=0?"sq/"+F:"")};g.T(i4,OO);g.A=i4.prototype;g.A.Ut=function(){return!1};
g.A.CU=function(){return!1};
g.A.VR=function(){return!1};
g.A.z0=function(){return new Yd([new Sw(1,this,void 0,"otfInit")],this.W)};
g.A.Dw=function(){return null};
g.A.F5=function(F){this.R5(F);return miM(this,yF(F),!1)};
g.A.cT=function(F,k){k=k===void 0?!1:k;F=this.index.kA(F);k&&(F=Math.min(this.index.OJ(),F+1));return miM(this,F,!0)};
g.A.mw=function(F){F.info.type===1&&(this.Y||(this.Y=Zh(F.Y)),F.L&&F.L.uri==="https://web.archive.org/web/20250411103644/http://youtube.com/streaming/otf/durations/112015"&&TWY(this,F.L))};
g.A.R5=function(F){return F.U===0?!0:this.index.OJ()>F.gt&&this.index.E0()<=F.gt+1};
g.A.C2=function(){return 0};
g.A.HU=function(){return!1};DY.prototype.TA=function(){return this.Y.TA()};g.A=g.p3.prototype;g.A.d8=function(F){return F<=this.OJ()};
g.A.Zh=function(F){return this.offsets[F]};
g.A.getStartTime=function(F){return this.startTicks[F]/this.Y};
g.A.yA=function(F){return this.getStartTime(F)+this.getDuration(F)};
g.A.u_=zp(0);g.A.B7=function(){return NaN};
g.A.getDuration=function(F){F=this.n9(F);return F>=0?F/this.Y:-1};
g.A.n9=function(F){return F+1<this.count||this.L?this.startTicks[F+1]-this.startTicks[F]:-1};
g.A.n5=function(){return 0};
g.A.E0=function(){return 0};
g.A.OJ=function(){return this.count-1};
g.A.OX=function(F){return this.OJ()===F&&F>=0};
g.A.iF=function(){return this.L?this.startTicks[this.count]/this.Y:NaN};
g.A.oy=function(){return 0};
g.A.Y8=function(){return this.count};
g.A.NL=function(){return""};
g.A.kA=function(F){F=g.eS(this.startTicks.subarray(0,this.count),F*this.Y);return F>=0?F:Math.max(0,-F-2)};
g.A.isLoaded=function(){return this.OJ()>=0};
g.A.Ad=function(F,k){if(F>=this.OJ())return 0;var z=0;for(k=this.getStartTime(F)+k;F<this.OJ()&&k>this.getStartTime(F);F++)z=Math.max(z,tQn(this,F)/this.getDuration(F));return z};
g.A.resize=function(F){F+=2;var k=this.offsets;this.offsets=new Float64Array(F+1);var z=this.startTicks;this.startTicks=new Float64Array(F+1);for(F=0;F<this.count+1;F++)this.offsets[F]=k[F],this.startTicks[F]=z[F]};
g.A.cap=function(F,k){E1(this);this.L=!0;this.startTicks[this.count]=k;this.offsets[this.count]=F};g.T(XQ,OO);g.A=XQ.prototype;g.A.z0=function(F,k){var z=new Sw(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,k),x=[new Sw(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,k),z];this.info.contentLength>0&&F&&(z=z.range.end+1,F=Math.min(F,this.info.contentLength-z),F>0&&x.push(new Sw(4,this,Hf(z,F),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,k)));return new Yd(x)};
g.A.mw=function(F){if(F.info.type===1){if(this.Y)return;this.Y=Zh(F.Y)}else if(F.info.type===2){if(this.W||this.index.OJ()>=0)return;if(g.iK(this.info)){var k=this.index,z=F.TA();F=F.info.range.start;var x=g.WO(z,0,1936286840);z=ZPR(x);k.Y=z.timescale;var D=z.CS;k.offsets[0]=z.cB+F+x.size;k.startTicks[0]=D;k.L=!0;F=z.Yi.length;for(x=0;x<F;x++){D=k;var e=z.nYU[x],C=z.Yi[x];D.count++;E1(D);D.offsets[D.count]=D.offsets[D.count-1]+e;D.startTicks[D.count]=D.startTicks[D.count-1]+C}}else this.W=F.TA()}if(this.info.Xv()&&
this.Y&&this.W){z=new DataView(this.Y.buffer);k=this.index;x=this.W;F=this.indexRange.end;D=new ew(z);z=D;D=z.pos;e={vW:1E6,dP:1E9,duration:0,jc:0,cJ:0};if(EO(z,408125543))if(e.jc=X5(z,!0),e.cJ=z.start+z.pos,EO(z,357149030)){for(C=pz(z);!Cz(C);){var p=X5(C,!1);p===2807729?e.vW=Np(C):p===2807730?e.dP=Np(C):p===17545?e.duration=ws(C):ul(C)}z.pos=D;z=e}else z.pos=D,z=null;else z.pos=D,z=null;if(z!==null){k.Y=z.dP/z.vW;D=new ew(x);x=D;C=z.cJ;D=x.pos;e=[];if(EO(x,475249515)){for(p=pz(x);EO(p,187);){var E=
pz(p);if(EO(E,179)){var X=Np(E);if(EO(E,183)){E=pz(E);for(var q=C;EO(E,241);)q=Np(E)+C;e.push({wC:q,nS:X})}}}if(e.length>0&&F===e[0].wC)for(F=0;F<e.length;F++)e[F].wC+=1;x.pos=D;F=e}else x.pos=D,F=null;if(F!==null){F=g.l(F);for(x=F.next();!x.done;x=F.next())e=x.value,x=k,D=e.wC,e=e.nS,E1(x),x.offsets[x.count]=D,x.startTicks[x.count]=e,x.count++;k.cap(z.jc+z.cJ,z.duration)}}this.W=null}};
g.A.o_=function(F,k,z,x){for(var D=[],e=F;e<=this.index.OJ();e++){var C=Hf(this.index.Zh(e),tQn(this.index,e)),p=this.index.getStartTime(e),E=this.index.getDuration(e),X=Math.max(0,k-C.start),q=Math.min(C.end+1,k+z)-(C.start+X);D.push(new Sw(3,this,C,"getRequestInfoForRange",e,p,E,X,q,void 0,void 0,x));if(C.start+X+q>=k+z)break}D.length||g.JV(new g.Fa("b189619593",""+F,""+k,""+z));return new Yd(D)};
g.A.s8=function(F){for(var k=this.H1(F.info),z=F.info.range.start+F.info.L,x=[],D=0;D<k.length;D++){var e=GD(F.Y,k[D].range.start+k[D].L-z,k[D].U);x.push(new DY(k[D],e))}return x};
g.A.H1=function(F){for(var k=F.range.start+F.L,z=0;z<this.index.OJ()&&k>=this.index.Zh(z+1);)z++;return this.o_(z,k,F.U).sK};
g.A.R5=function(F){F.HM();return this.Ig()?!0:F.range.end+1<this.info.contentLength};
g.A.Dw=function(F,k){this.R5(F);if(!this.Ig())return k=Hf(F.range.end+1,k),k.end+1>this.info.contentLength&&(k=new VF(k.start,this.info.contentLength-1)),new Yd([new Sw(4,F.Y,k,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,F.clipId)]);F.type===4&&(F=this.H1(F),F=F[F.length-1]);var z=0,x=F.range.start+F.L+F.U;F.type===3&&(F.HM(),z=F.gt,x===F.range.end+1&&(z+=1));return this.o_(z,x,k)};
g.A.F5=function(){return null};
g.A.cT=function(F,k,z){k=k===void 0?!1:k;F=this.index.kA(F);k&&(F=Math.min(this.index.OJ(),F+1));return this.o_(F,this.index.Zh(F),0,z)};
g.A.Ut=function(){return!0};
g.A.CU=function(){return!0};
g.A.VR=function(){return!1};
g.A.C2=function(){return this.indexRange.length+this.initRange.length};
g.A.HU=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var MS={},YH9=(MS.COLOR_PRIMARIES_BT709="bt709",MS.COLOR_PRIMARIES_BT2020="bt2020",MS.COLOR_PRIMARIES_UNKNOWN=null,MS.COLOR_PRIMARIES_UNSPECIFIED=null,MS),Lr={},vbn=(Lr.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Lr.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Lr.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Lr.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Lr.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Lr.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Lr);g.qs.prototype.getName=function(){return this.name};
g.qs.prototype.getId=function(){return this.id};
g.qs.prototype.getIsDefault=function(){return this.isDefault};
g.qs.prototype.toString=function(){return this.name};
g.qs.prototype.getName=g.qs.prototype.getName;g.qs.prototype.getId=g.qs.prototype.getId;g.qs.prototype.getIsDefault=g.qs.prototype.getIsDefault;var VQ6=/action_display_post/;var Im9,wi,mc;g.T(Tk,g.uG);g.A=Tk.prototype;g.A.isLoading=function(){return this.state===1};
g.A.rp=function(){return this.state===3};
g.A.KHp=function(F){var k=F.getElementsByTagName("Representation");if(F.getElementsByTagName("SegmentList").length>0||F.getElementsByTagName("SegmentTemplate").length>0){this.oS=this.L=!0;this.timeline||(this.timeline=new EbY);uWI(this.timeline,F);this.publish("refresh");for(F=0;F<k.length;F++){var z=FW6(this,k[F]);if(!this.Y[z.id]){var x=ri(Wf(k[F],"BaseURL").textContent),D=Wf(k[F],"Initialization"),e=Kz(D,"sourceURL");D=I0(Kz(D,"range"));this.Y[z.id]=new fz(x,z,e,D)}z=this.Y[z.id];x=Kz(k[F],"id",
"AdaptationSet");x=x!==""?x:Kz(k[F],"mimetype","AdaptationSet");e=this.timeline;e=e.U[z.info.id]||e.L[x]||e.Y||null;x=e.Y;!this.G&&e.getStreamTimeOffset()&&(this.G=e.getStreamTimeOffset());if(e.W){D=[];x=g.l(x);for(var C=x.next();!C.done;C=x.next()){C=C.value;var p=z.info.id,E=z.info.Yu*8,X=C.gt;var q=C.startSecs;var N=e.G.split("$$");for(var u=0;u<N.length;u++)N[u]=N[u].replace("$RepresentationID$",p),N[u]=N[u].replace("$Number$",X.toString()),N[u]=N[u].replace("$Bandwidth$",E.toString()),N[u]=N[u].replace("$Time$",
q.toString());D.push(new HO(C.gt,C.startSecs,C.B8,C.Y,N.join("$"),null,C.L))}x=D}else{e=ir(Wf(k[F],"SegmentList").getElementsByTagName("SegmentURL"),e.S);D=[];for(C=0;C<e.length;C++){p=D;E=p.push;X=x[C];q=void 0;u=e[C];N=u.getAttribute("media");if(u=u.getAttribute("mediaRange")){var w=u.split("-");w[1]&&Number(w[1])>=0?q=I0(u):N=N+"?range="+u}E.call(p,new HO(X.gt,X.startSecs,X.B8,X.Y,N,q,X.L))}x=D}z.update(x,this.isLive,this.u$)}wH5(this.timeline);return!0}this.duration=CKH(Kz(F,"mediaPresentationDuration"));
a:{for(F=0;F<k.length;F++){e=k[F];z=FW6(this,e);x=ri(Wf(e,"BaseURL").textContent);D=Wf(e,"SegmentBase");e=I0(D.attributes.getNamedItem("indexRange").value);D=I0(D.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);z=new XQ(x,z,D,e);if(!z){k=!1;break a}u4(this,z)}k=!0}return k};
g.A.refresh=function(){if(!this.isLoading()&&!this.z4()){var F=g.oW(this.sourceUrl,{start_seq:iR6(this).toString()});ohp(this,F).UT(function(){})}};
g.A.resume=function(){kFC(this)};
g.A.xN=function(){if(this.isManifestless&&this.j&&Gk(this))return Gk(this);var F=this.Y,k=!1,z=NaN,x=NaN,D;for(D in F){var e=F[D],C=e.index;C.isLoaded()&&!Cm(e.info.mimeType)&&(e.j&&(k=!0),C=C.iF(),e.info.QZ()&&(isNaN(z)||C<z)?z=C:e.info.Ci()&&(isNaN(x)||C<x)&&(x=C))}return k||isNaN(x)?z:Math.min(z,x)};
g.A.oy=function(){if(this.isManifestless){if(U1(this))return U1(this);if(this.We){var F=this.B7(this.xN());if(F&&(F-=this.We,F>0))return this.xN()-F}}F=this.Y;for(var k in F){var z=F[k].index;if(z.isLoaded()&&!Cm(F[k].info.mimeType))return z.oy()}return 0};
g.A.getStreamTimeOffset=function(){return this.G};
g.A.B7=function(F){for(var k in this.Y){var z=this.Y[k].index;if(z.isLoaded()){var x=z.kA(F),D=z.B7(x);if(D)return D+F-z.getStartTime(x)}}return NaN};
var O1=null,sKD,Vg=!((sKD=navigator.mediaCapabilities)==null||!sKD.decodingInfo),Wxx={commentary:1,alternate:2,dub:3,main:4};var CZ=new Set,I3=new Map;SJ.prototype.clone=function(F){return new SJ(this.flavor,F,this.L,this.experiments)};
SJ.prototype.rH=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
SJ.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 r0G={},L3=(r0G.playready=["com.youtube.playready","com.microsoft.playready"],r0G.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],r0G),fr={},GLk=(fr.widevine="DRM_SYSTEM_WIDEVINE",fr.fairplay="DRM_SYSTEM_FAIRPLAY",fr.playready="DRM_SYSTEM_PLAYREADY",fr),Kr={},B$7=(Kr.widevine=1,Kr.fairplay=2,Kr.playready=3,Kr);var WU;g.T(f3,g.S);
f3.prototype.initialize=function(F,k){for(var z=this,x=g.l(Object.keys(F)),D=x.next();!D.done;D=x.next()){D=g.l(F[D.value]);for(var e=D.next();!e.done;e=D.next())if(e=e.value,e.J5)for(var C=g.l(Object.keys(e.J5)),p=C.next();!p.done;p=C.next()){var E=p.value;p=E;E=L3[E];!E&&this.V("html5_enable_vp9_fairplay")&&p==="fairplay"&&(E=["com.youtube.fairplay.sbdl"]);if(E){E=g.l(E);for(var X=E.next();!X.done;X=E.next())X=X.value,this.U[X]=this.U[X]||new SJ(p,X,e.J5[p],this.i$.experiments),this.Y[p]=this.Y[p]||
{},this.Y[p][e.mimeType]=!0}}}fg()&&(this.U["com.youtube.fairplay"]=new SJ("fairplay","com.youtube.fairplay","",this.i$.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.L=pE5(k,this.useCobaltWidevine,this.V("html5_enable_safari_fairplay")&&!0,this.V("html5_enable_vp9_fairplay")).filter(function(q){return!!z.U[q]})};
f3.prototype.V=function(F){return this.i$.experiments.Ca(F)};var GS$={"":"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"};mjk.prototype.V=function(F){return this.experiments.Ca(F)};var LWY={RED:"red",Hu4:"white"};TBD.prototype.Ca=function(F){F=this.flags[F];JSON.stringify(F);return F==="true"};var hA9=Promise.resolve(),GF5=window.queueMicrotask?window.queueMicrotask.bind(window):sQa;z9.prototype.canPlayType=function(F,k){F=F.canPlayType?F.canPlayType(k):!1;k4?F=F||U6p[k]:PJ===2.2?F=F||tYD[k]:Mz()&&(F=F||ZWA[k]);return!!F};
z9.prototype.isTypeSupported=function(F){return this.PR?window.cast.receiver.platform.canDisplayType(F):bv(F)};
var tYD={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},ZWA={"application/x-mpegURL":"maybe"},U6p={"application/x-mpegURL":"maybe"};g.T($H,g.uG);$H.prototype.add=function(F,k){if(!this.items[F]&&(k.Ab||k.TZ||k.S8)){var z=this.items,x=k;Object.isFrozen&&!Object.isFrozen(k)&&(x=Object.create(k),Object.freeze(x));z[F]=x;this.publish("vast_info_card_add",F)}};
$H.prototype.remove=function(F){var k=this.get(F);delete this.items[F];return k};
$H.prototype.get=function(F){return this.items[F]||null};
$H.prototype.isEmpty=function(){return g.SI(this.items)};var eP;C_.prototype.add=function(F){if(this.pos+20>this.data.length){var k=new Uint8Array(this.data.length*2);k.set(this.data);this.data=k}for(;F>31;)this.data[this.pos++]=eP[(F&31)+32],F>>=5;this.data[this.pos++]=eP[F|0]};
C_.prototype.Y9=function(){return g.OP(this.data.subarray(0,this.pos))};
C_.prototype.reset=function(){this.pos=0};p_.prototype.K$=function(F,k){var z=Math.pow(this.alpha,F);this.Y=k*(1-z)+z*this.Y;this.L+=F};
p_.prototype.Uz=function(){return this.Y/(1-Math.pow(this.alpha,this.L))};E5.prototype.K$=function(F,k){for(var z=0;z<10;z++){var x=this.Y[z],D=x+(z===0?F:0),e=1*Math.pow(2,z);if(D<=e)break;x=Math.min(1,(D-e*.5)/x);for(D=0;D<16;D++)e=this.values[z*16+D]*x,this.values[(z+1)*16+D]+=e,this.Y[z+1]+=e,this.values[z*16+D]-=e,this.Y[z]-=e}x=z=0;D=8192;k>8192&&(z=Math.ceil(Math.log(k/8192)/Math.log(2)),x=8192*Math.pow(2,z-1),D=x*2);z+2>16?this.values[15]+=F:(k=(k-x)/(D-x),this.values[z]+=F*(1-k),this.values[z+1]+=F*k);this.Y[0]+=F};
E5.prototype.Uz=function(){var F=F===void 0?this.L:F;var k=k===void 0?.02:k;var z=z===void 0?.98:z;for(var x=this.U,D=0;D<16;D++)x[D]=this.values[D];D=this.Y[0];for(var e=1;e<11;e++){var C=this.Y[e];if(C===0)break;for(var p=Math.min(1,(F-D)/C),E=0;E<16;E++)x[E]+=this.values[e*16+E]*p;D+=C*p;if(p<1)break}for(e=F=C=0;e<16;e++){p=C+x[e]/D;F+=Math.max(0,Math.min(p,z)-Math.max(C,k))*(e>0?8192*Math.pow(2,e-1):0);if(p>z)break;C=p}return F/(z-k)};XA.prototype.K$=function(F,k){F=Math.min(this.Y,Math.max(1,Math.round(F*this.resolution)));F+this.L>=this.Y&&(this.U=!0);for(;F--;)this.values[this.L]=k,this.L=(this.L+1)%this.Y;this.hg=!0};
XA.prototype.percentile=function(F){var k=this;if(!this.U&&this.L===0)return 0;this.hg&&(g.AO(this.W,function(z,x){return k.values[z]-k.values[x]}),this.hg=!1);
return this.values[this.W[Math.round(F*((this.U?this.Y:this.L)-1))]]||0};
XA.prototype.Uz=function(){return this.S?(this.percentile(this.j-this.S)+this.percentile(this.j)+this.percentile(this.j+this.S))/3:this.percentile(this.j)};g.T(qU,g.S);qU.prototype.RU=function(){var F;(F=this.l$)==null||F.start();if(hJ(this)&&this.policy.B){var k;(k=this.GD)==null||k.O7()}};bRC.prototype.V=function(F){return this.experiments.Ca(F)};g.T(JHI,g.S);var M59="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),kzn={cik:"caoe",gR4:"capsv",Ait:"cbrand",f$t:"cbr",NIh:"cbrver",ObQ:"cchip",UXR:"ccappver",Q6p:"ccrv",vZ_:"cfrmver",A$J:"c",Nph:"cver",HFR:"ctheme",f4G:"cplayer",fhR:"cmodel",sit:"cnetwork",aWt:"cos",jj$:"cosver",T8f:"cplatform",wxR:"crqyear"};g.T(yq,g.S);g.A=yq.prototype;g.A.V=function(F){return this.experiments.Ca(F)};
g.A.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig};
g.A.getVideoUrl=function(F,k,z,x,D,e,C){k={list:k};z&&(D?k.time_continue=z:k.t=z);z=C?"music.youtube.com":g.gw(this);D=z==="www.youtube.com";!e&&x&&D?e="https://web.archive.org/web/20250411103644/https://youtu.be/"+F:g.IB(this)?(e="https://"+z+"/fire",k.v=F):(e&&D?(e=this.protocol+"://"+z+"/shorts/"+F,x&&(k.feature="share")):(e=this.protocol+"://"+z+"/watch",k.v=F),k4&&(F=SgY())&&(k.ebc=F));return g.oW(e,k)};
g.A.getVideoEmbedCode=function(F,k,z,x){k="https://"+g.gw(this)+"/embed/"+k;x&&(k=g.oW(k,{list:x}));x=z.width;z=z.height;k=jI(k);F=jI(F!=null?F:"YouTube video player");return'<iframe width="'+x+'" height="'+z+'" src="'+k+'" title="'+(F+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')};
g.A.supportsGaplessAudio=function(){return g.SD&&!k4&&RS()>=74||g.n3&&g.wN(68)?!0:!1};
g.A.supportsGaplessShorts=function(){return!this.V("html5_enable_short_gapless")||this.J4||g.GX?!1:!0};
g.A.getPlayerType=function(){return this.Y.cplayer};
g.A.Jp=function(){return this.H8};
var ipI=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],Fh9=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],zUx=[19];var W$={},jon=(W$["140"]={numChannels:2},W$["141"]={numChannels:2},W$["251"]={audioSampleRate:48E3,numChannels:2},W$["774"]={audioSampleRate:48E3,numChannels:2},W$["380"]={numChannels:6},W$["328"]={numChannels:6},W$["773"]={},W$),F8={},DLp=(F8["1"]='video/mp4; codecs="av01.0.08M.08"',F8["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',F8["1e"]='video/mp4; codecs="av01.0.08M.08"',F8["9"]='video/webm; codecs="vp9"',F8["("]='video/webm; codecs="vp9"',F8["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',
F8.h='video/mp4; codecs="avc1.64001e"',F8.H='video/mp4; codecs="avc1.64001e"',F8.o='audio/webm; codecs="opus"',F8.a='audio/mp4; codecs="mp4a.40.2"',F8.ah='audio/mp4; codecs="mp4a.40.2"',F8.mac3='audio/mp4; codecs="ac-3"; channels=6',F8.meac3='audio/mp4; codecs="ec-3"; channels=6',F8.i='audio/mp4; codecs="iamf.001.001.Opus"',F8),kz={},$L5=(kz["337"]={width:3840,height:2160,bitrate:3E7,fps:30},kz["336"]={width:2560,height:1440,bitrate:15E6,fps:30},kz["335"]={width:1920,height:1080,bitrate:75E5,fps:30},
kz["702"]={width:7680,height:4320,bitrate:4E7,fps:60},kz["701"]={width:3840,height:2160,bitrate:2E7,fps:60},kz["700"]={width:2560,height:1440,bitrate:1E7,fps:60},kz["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},kz["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},kz["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},kz["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},
kz["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},kz["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},kz["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},kz["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},kz["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},kz["315"]={width:3840,height:2160,bitrate:2E7,fps:60},kz["308"]={width:2560,
height:1440,bitrate:1E7,fps:60},kz["303"]={width:1920,height:1080,bitrate:5E6,fps:60},kz["302"]={width:1280,height:720,bitrate:25E5,fps:60},kz["299"]={width:1920,height:1080,bitrate:75E5,fps:60},kz["298"]={width:1280,height:720,bitrate:35E5,fps:60},kz["571"]={width:7680,height:4320,bitrate:3E7,fps:60},kz["401"]={width:3840,height:2160,bitrate:15E6,fps:60},kz["400"]={width:2560,height:1440,bitrate:75E5,fps:60},kz["399"]={width:1920,height:1080,bitrate:2E6,fps:60},kz["398"]={width:1280,height:720,bitrate:1E6,
fps:60},kz["397"]={width:854,height:480,bitrate:4E5,fps:30},kz["396"]={width:640,height:360,bitrate:25E4,fps:30},kz["787"]={width:1080,height:608,bitrate:2E5,fps:30},kz["788"]={width:1080,height:608,bitrate:4E5,fps:30},kz["572"]={width:7680,height:4320,bitrate:3E7,fps:60},kz["555"]={width:3840,height:2160,bitrate:15E6,fps:60},kz["554"]={width:2560,height:1440,bitrate:75E5,fps:60},kz["553"]={width:1920,height:1080,bitrate:2E6,fps:60},kz["552"]={width:1280,height:720,bitrate:1E6,fps:60},kz["551"]={width:854,
height:480,bitrate:4E5,fps:30},kz["550"]={width:640,height:360,bitrate:25E4,fps:30},kz["313"]={width:3840,height:2160,bitrate:8E6,fps:30},kz["271"]={width:2560,height:1440,bitrate:4E6,fps:30},kz["248"]={width:1920,height:1080,bitrate:2E6,fps:30},kz["247"]={width:1280,height:720,bitrate:15E5,fps:30},kz["244"]={width:854,height:480,bitrate:52E4,fps:30},kz["243"]={width:640,height:360,bitrate:28E4,fps:30},kz["137"]={width:1920,height:1080,bitrate:4E6,fps:30},kz["136"]={width:1280,height:720,bitrate:3E6,
fps:30},kz["135"]={width:854,height:480,bitrate:1E6,fps:30},kz["385"]={width:1920,height:1080,bitrate:6503313,fps:60},kz["376"]={width:1280,height:720,bitrate:5706960,fps:60},kz["384"]={width:1280,height:720,bitrate:3660979,fps:60},kz["225"]={width:1280,height:720,bitrate:5805E3,fps:30},kz["224"]={width:1280,height:720,bitrate:453E4,fps:30},kz["145"]={width:1280,height:720,bitrate:2682052,fps:30},kz);g.A=jm.prototype;g.A.getInfo=function(){return this.Y};
g.A.t0=function(){return null};
g.A.Vn=function(){var F=this.t0();return F?(F=g.jl(F.ez),Number(F.expire)):NaN};
g.A.gF=function(){};
g.A.getHeight=function(){return this.Y.video.height};p7Y.prototype.build=function(){q9M(this);var F=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],k={};a:if(this.Y)var z=this.Y;else{z="";for(var x=g.l(this.U),D=x.next();!D.done;D=x.next())if(D=D.value,D.ZD){if(D.ZD.getIsDefault()){z=D.ZD.getId();break a}z||(z=D.ZD.getId())}}x=g.l(this.U);for(D=x.next();!D.done;D=x.next())if(D=D.value,this.S||!D.ZD||D.ZD.getId()===z)k[D.itag]||(k[D.itag]=[]),k[D.itag].push(D);z=g.l(this.L);for(x=z.next();!x.done;x=z.next())if(x=x.value,D=k[x.Y]){D=g.l(D);for(var e=D.next();!e.done;e=
D.next()){var C=F,p=C.push;e=e.value;var E="#EXT-X-MEDIA:TYPE=AUDIO,",X="YES",q="audio";if(e.ZD){q=e.ZD;var N=q.getId().split(".")[0];N&&(E+='LANGUAGE="'+N+'",');(this.Y?this.Y===q.getId():q.getIsDefault())||(X="NO");q=q.getName()}N="";x!==null&&(N=x.itag.toString());N=CK(this,e.url,N);E=E+('NAME="'+q+'",DEFAULT='+(X+',AUTOSELECT=YES,GROUP-ID="'))+(X7n(e,x)+'",URI="'+(N+'"'));p.call(C,E)}}z=g.l(this.W);for(x=z.next();!x.done;x=z.next())x=x.value,D=v6A,x=(C=x.ZD)?'#EXT-X-MEDIA:URI="'+CK(this,x.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+D+'",LANGUAGE="'+C.getId()+'",NAME="'+C.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,x&&F.push(x);z=this.W.length>0?v6A:void 0;x=g.l(this.L);for(D=x.next();!D.done;D=x.next())D=D.value,p=k[D.Y],C=void 0,((C=p)==null?void 0:C.length)>0&&(C=D,p=p[0],p="#EXT-X-STREAM-INF:BANDWIDTH="+(C.bitrate+p.bitrate)+',CODECS="'+(C.codecs+","+p.codecs+'",RESOLUTION=')+(C.width+"x"+C.height+',AUDIO="')+(X7n(p,C)+'",')+(z?'SUBTITLES="'+z+'",':"")+"CLOSED-CAPTIONS=NONE",C.fps>1&&(p+=
",FRAME-RATE="+C.fps),C.nI&&(p+=",VIDEO-RANGE="+C.nI),F.push(p),F.push(CK(this,D.url,"")));return F.join("\n")};
var v6A="text";g.T(AT,jm);AT.prototype.Vn=function(){return this.expiration};
AT.prototype.t0=function(){if(!this.ez||this.ez.z4()){var F=this.L.build();F="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(F);this.ez=new Lm(F)}return this.ez};g.T(pK,jm);pK.prototype.t0=function(){return new Lm(this.L.q5())};
pK.prototype.gF=function(){this.L=VJ(this.L)};g.T(Em,jm);Em.prototype.t0=function(){return new Lm(this.L)};var oV={},rjR=(oV.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",oV.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",oV.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",oV);g.A=g.Xd.prototype;g.A.getId=function(){return this.id};
g.A.getName=function(){return this.name};
g.A.isServable=function(){return this.Y};
g.A.q5=function(){return this.url};
g.A.getXtags=function(){return this.xtags};
g.A.toString=function(){return this.languageCode+": "+g.qk(this)+" - "+this.vssId+" - "+(this.captionId||"")};
g.A.VZ=function(F){return F?this.toString()===F.toString():!1};
g.A.ut=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Zpk={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},vjC={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},cjD=/^(\d*)_((\d*)_?(\d*))$/;var Op9={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},VGx={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var zj={},c0t=(zj.ALWAYS=1,zj.BY_REQUEST=3,zj.UNKNOWN=void 0,zj),xz={},PtA=(xz.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",xz.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",xz.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",xz.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",xz);var sjn;
sjn=function(F){for(var k=Object.keys(F),z={},x=0;x<k.length;x++){var D=k[x];typeof F[D]==="function"&&(z[D]=F[D])}var e=Object.keys(z);try{BCM(z)}catch(p){var C=p}return function(p,E){p=p===void 0?{}:p;if(C)throw C;for(var X=!1,q={},N=0;N<e.length;N++){var u=e[N],w=p[u],m=(0,z[u])(w,E);if(typeof m==="undefined")throw p=E&&E.type,Error("When called with an action of type "+(p?'"'+String(p)+'"':"(unknown type)")+', the slice reducer for key "'+u+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');q[u]=
m;X=X||m!==w}return(X=X||e.length!==Object.keys(p).length)?q:p}}({entities:function(F,k){F=F===void 0?{}:F;
return I1n(F,k)}});
g.ok=new hc;Q6.prototype.toString=function(){return this.type+this.id};g.sm.prototype.zr=function(F){F=F||"hqdefault.jpg";var k=this.K[F];if(k)return k;if(F==="sddefault.jpg"||F==="hq720.jpg"||F==="maxresdefault.jpg")return k;if(this.Y)return YH(this.i$,this.Y,F)};
g.sm.prototype.Ai=function(){return this.i$.getVideoUrl(this.videoId,this.playlistId)};g.rg.prototype.zr=function(F){F||(F="hqdefault.jpg");var k=this.K[F];return k?k:F==="pop1.jpg"||F==="pop2.jpg"||F==="sddefault.jpg"||F==="hq720.jpg"||F==="maxresdefault.jpg"?k:YH(this.i$,this.videoId,F)};
g.rg.prototype.Ai=function(F){return this.watchUrl||this.i$.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,F)};var Um=void 0;h$n("LMS",function(){return g.O(function(F){return F.return(g.tT())})});var P3;P3=0;g.xZR=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;h$n("LMDB",function(){var F,k;return g.O(function(z){if(z.Y==1)return g.c(z,g.DZ(),2);if(z.Y!=3){F=z.L;if(!F)throw g.t6("edd");return g.c(z,g.c3(F),3)}k=z.L;return z.return(g.SB(k,["index","media","captions"],{mode:"readonly",nN:!0},function(x){var D={};x=[g.Rw(x.objectStore("index"),{},function(e){D[e.cursor.key]=e.getValue();return g.g3(e)}),
Glk(x.objectStore("media")),Glk(x.objectStore("captions"))];return g.vA.all(x).then(function(e){var C=g.l(e);C.next();e=C.next().value;C=C.next().value;return{index:D,media:iGR(e||[]),captions:C}})}))})});g.T(V6,g.uG);V6.prototype.h4=function(){this.Y&&(this.Y=this.Y.onload=null);g.uG.prototype.h4.call(this)};g.A=g.Sm.prototype;g.A.getHeight=function(){return this.height};
g.A.qv=zp(2);g.A.oP=function(){return this.frameCount};
g.A.isDefault=function(){return this.U.indexOf("default")!==-1};
g.A.isLoaded=function(F){return this.loaded.has(F)};
g.A.q5=function(F){var k=this.j;k=k.replace("$N",this.U);k=k.replace("$L",this.level.toString());k=k.replace("$M",F.toString());this.signature&&(k=g.oW(k,{sigh:this.signature}));return Cs(k)};
g.A.P9=function(F){var k=this.oP()-1;return g.l3(this.Y===0?Math.round(F*this.frameCount/this.videoLength):Math.round(F*1E3/this.Y),0,k)};
g.A.sV=function(){return this.frameCount-1};
g.A.cw=function(){return this.frameCount?0:-1};
g.A.O8=function(){};g.T(bJ,V6);bJ.prototype.L=function(F,k){var z=[];F=F.split("|");for(var x=F[0],D=1;D<F.length;D++){var e=this.W(D-1,x,F[D],k);(this.G||e.getHeight()<180)&&z.push(e)}return z};
bJ.prototype.W=function(F,k,z,x){return new g.Sm(F,k,z,x)};g.T(dg,g.Sm);g.A=dg.prototype;g.A.oP=function(){return this.L.Y8()};
g.A.P9=function(F){var k=this.rows*this.columns*this.W,z=this.L,x=z.OJ();F=z.kA(F);return F>x-k?-1:F};
g.A.sV=function(){return this.L.OJ()};
g.A.cw=function(){return this.L.E0()};
g.A.O8=function(F){this.L=F};g.T(JT,bJ);JT.prototype.L=function(F,k){return bJ.prototype.L.call(this,"$N|"+F,k)};
JT.prototype.W=function(F,k,z){return new dg(F,k,z,this.isLive)};var mZp=[],LK=new Set;g.T(g.Rt,g.uG);g.A=g.Rt.prototype;
g.A.setData=function(F){F=F||{};var k=F.errordetail;k!=null&&(this.errorDetail=k);var z=F.errorcode;z!=null?this.errorCode=z:F.status==="fail"&&(this.errorCode="auth");var x=F.reason;x!=null&&(this.errorReason=x);var D=F.subreason;D!=null&&(this.QX=D);this.V("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=F.cpn||(this.i$.Jp()?"r"+g.vt(15):g.vt(16)));this.vR=eZ(this.i$.vR,F.livemonitor);pQR(this,F);var e=F.raw_player_response;if(e)this.NU=e;else{var C=F.player_response;
C&&(e=JSON.parse(C))}if(this.V("html5_enable_ssap_entity_id")){var p=F.cached_load;p&&(this.Si=eZ(this.Si,p));if(!this.clientPlaybackNonce){var E=F.cpn;E?(this.sQ("ssei","shdc"),this.clientPlaybackNonce=E):this.clientPlaybackNonce=this.i$.Jp()?"r"+g.vt(15):g.vt(16)}}e&&(this.playerResponse=e);if(this.playerResponse){var X=this.playerResponse.annotations;if(X)for(var q=g.l(X),N=q.next();!N.done;N=q.next()){var u=N.value.playerAnnotationsUrlsRenderer;if(u){u.adsOnly&&(this.SI=!0);var w=u.loadPolicy;
w&&(this.annotationsLoadPolicy=c0t[w]);var m=u.invideoUrl;m&&(this.NJ=Cs(m));break}}var h=this.playerResponse.attestation;h&&Hpn(this,h);var B=this.playerResponse.cotn;B&&(this.cotn=B);var U=this.playerResponse.heartbeatParams;if(U){ejC(this)&&(this.fC=!0);var v=U.heartbeatToken;v&&(this.drmSessionId=U.drmSessionId||"",this.heartbeatToken=v,this.H3=Number(U.intervalMilliseconds),this.pC=Number(U.maxRetries),this.CC=!!U.softFailOnError,this.DJ=!!U.useInnertubeHeartbeatsForDrm,this.Lu=!0);this.heartbeatServerData=
U.heartbeatServerData;var P;this.WO=!((P=U.heartbeatAttestationConfig)==null||!P.requiresAttestation)}var I=this.playerResponse.messages;I&&dLn(this,I);var d=this.playerResponse.overlay;if(d){var W=d.playerControlsOverlayRenderer;if(W)if(yjR(this,W.controlBgHtml),W.mutedAutoplay){var M=g.J(W.mutedAutoplay,nrp);if(M&&M.endScreen){var xY=g.J(M.endScreen,MSV);xY&&xY.text&&(this.xI=g.rt(xY.text))}}else this.mutedAutoplay=!1}var $Y=this.playerResponse.playabilityStatus;if($Y){var Fx=$Y.backgroundability;
Fx&&Fx.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var y,K;if((y=$Y.offlineability)==null?0:(K=y.offlineabilityRenderer)==null?0:K.offlineable)this.offlineable=!0;var Q=$Y.contextParams;Q&&(this.contextParams=Q);var R=$Y.pictureInPicture;R&&R.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);$Y.playableInEmbed&&(this.allowEmbed=!0);var Jn=$Y.ypcClickwrap;if(Jn){var s$=Jn.playerLegacyDesktopYpcClickwrapRenderer,u7=Jn.ypcRentalActivationRenderer;if(s$)this.Cy=s$.durationMessage||
"",this.Tr=!0;else if(u7){var Gp=u7.durationMessage;this.Cy=Gp?g.rt(Gp):"";this.Tr=!0}}var kG=$Y.errorScreen;if(kG){if(kG.playerLegacyDesktopYpcTrailerRenderer){var jC=kG.playerLegacyDesktopYpcTrailerRenderer;this.PZ=jC.trailerVideoId||"";var w9=kG.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var G=w9&&w9.ypcTrailerRenderer}else if(kG.playerLegacyDesktopYpcOfferRenderer)jC=kG.playerLegacyDesktopYpcOfferRenderer;else if(kG.ypcTrailerRenderer){G=kG.ypcTrailerRenderer;var t=G.fullVideoMessage;this.Zv=
t?g.rt(t):"";var Z,V;this.PZ=((Z=g.J(G,LvV))==null?void 0:(V=Z.videoDetails)==null?void 0:V.videoId)||""}jC&&(this.Yv=jC.itemTitle||"",jC.itemUrl&&(this.f1=jC.itemUrl),jC.itemBuyUrl&&(this.qn=jC.itemBuyUrl),this.A9=jC.itemThumbnail||"",this.Nn=jC.offerHeadline||"",this.UE=jC.offerDescription||"",this.J$=jC.offerId||"",this.H6=jC.offerButtonText||"",this.dE=jC.offerButtonFormattedText||null,this.QV=jC.overlayDurationMsec||NaN,this.Zv=jC.fullVideoMessage||"",this.F1=!0);if(G){var H=g.J(G,LvV);if(H)this.xf=
{raw_player_response:H};else{var kY=g.J(G,$37);this.xf=kY?DC(kY):null}this.F1=!0}}}var iD=this.playerResponse.playbackTracking;if(iD){var DM=F,a=Te(iD.googleRemarketingUrl);a&&(this.googleRemarketingUrl=a);var QR=Te(iD.youtubeRemarketingUrl);QR&&(this.youtubeRemarketingUrl=QR);var jH={},eH=Te(iD.ptrackingUrl);if(eH){var P6=lJ(eH),fk=P6.oid;fk&&(this.IB=fk);var b7=P6.pltype;b7&&(this.G_=b7);var KC=P6.ptchn;KC&&(this.V0=KC);var YY=P6.ptk;YY&&(this.dK=encodeURIComponent(YY));var n8=P6.m;n8&&(this.Iq=
n8)}var bI=Te(iD.qoeUrl);if(bI){for(var N3=g.jl(bI),gf=g.l(Object.keys(N3)),EV=gf.next();!EV.done;EV=gf.next()){var ni=EV.value,dN=N3[ni];N3[ni]=Array.isArray(dN)?dN.join(","):dN}this.Re=N3;var M_=N3.cat;M_&&(this.V("html5_enable_qoe_cat_list")?this.OE=this.OE.concat(M_.split(",")):this.BF=M_);var hs=N3.live;hs&&(this.A2=hs);var X7=N3.drm_product;X7&&(this.X1=X7)}var c4=Te(iD.videostatsPlaybackUrl);if(c4){var uI=lJ(c4),P4=uI.adformat;if(P4){DM.adformat=P4;var dl=this.C(),Ja=PcI(P4,this.rq,dl.j,dl.G);
Ja&&(this.adFormat=Ja)}var GQ=uI.aqi;GQ&&(DM.ad_query_id=GQ);var kN=uI.autoplay;kN&&(this.k9=kN=="1",this.Mm=kN=="1",iA(this,"vss"));var Li=uI.autonav;Li&&(this.isAutonav=Li=="1");var DP=uI.delay;DP&&(this.qD=Ag(DP));var IC=uI.ei;IC&&(this.eventId=IC);if(uI.adcontext||P4)this.k9=!0,iA(this,"ad");var fX=uI.feature;fX&&(this.vZ=fX);var NT=uI.list;NT&&(this.playlistId=NT);var sH=uI.of;sH&&(this.pI=sH);var rW=uI.osid;rW&&(this.osid=rW);var BH=uI.referrer;BH&&(this.referrer=BH);var XD=uI.sdetail;XD&&(this.SW=
XD);var A9=uI.ssrt;A9&&(this.qo=A9=="1");var qF=uI.subscribed;qF&&(this.subscribed=qF=="1",this.G.subscribed=qF);var NF=uI.uga;NF&&(this.userGenderAge=NF);var G$=uI.upt;G$&&(this.I4=G$);var UH=uI.vm;UH&&(this.videoMetadata=UH);jH.playback=uI}var tt=Te(iD.videostatsWatchtimeUrl);if(tt){var Zm=lJ(tt),vH=Zm.ald;vH&&(this.EZ=vH);jH.watchtime=Zm}var cH=Te(iD.atrUrl);if(cH){var f9=lJ(cH);jH.atr=f9}var HN=Te(iD.engageUrl);if(HN){var K9=lJ(HN);jH.engage=K9}this.zz=jH;if(iD.promotedPlaybackTracking){var Ys=
iD.promotedPlaybackTracking;Ys.startUrls&&(this.pj=Ys.startUrls);Ys.firstQuartileUrls&&(this.zs=Ys.firstQuartileUrls);Ys.secondQuartileUrls&&(this.lq=Ys.secondQuartileUrls);Ys.thirdQuartileUrls&&(this.nf=Ys.thirdQuartileUrls);Ys.completeUrls&&(this.gB=Ys.completeUrls);Ys.engagedViewUrls&&(Ys.engagedViewUrls.length>1&&g.yI(new g.Fa("There are more than one engaged_view_urls.")),this.sF=Ys.engagedViewUrls[0])}}var u0=this.playerResponse.playerCueRanges;u0&&u0.length>0&&(this.cueRanges=u0);var PH=this.playerResponse.playerCueRangeSet;
PH&&g.fK(this,PH);a:{var wE=this.playerResponse.adPlacements;if(wE)for(var OH=g.l(wE),m_=OH.next();!m_.done;m_=OH.next()){var VH=void 0,ID=void 0,HH=(VH=m_.value.adPlacementRenderer)==null?void 0:(ID=VH.renderer)==null?void 0:ID.videoAdTrackingRenderer;if(HH){var aD=HH;break a}}aD=null}var TN=aD;iD&&iD.promotedPlaybackTracking&&TN&&g.yI(new g.Fa("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var r4;if(!(r4=TN))a:{for(var SQ=g.l(this.playerResponse.adSlots||[]),
l0=SQ.next();!l0.done;l0=SQ.next()){var Qa=g.J(l0.value,Y8);if(Qa===void 0||!uTn(Qa))break;var bK=void 0,WP=(bK=Qa.fulfillmentContent)==null?void 0:bK.fulfilledLayout,dW=g.J(WP,HQ);if(dW&&PQ(dW)){r4=!0;break a}}r4=!1}r4&&(this.u6=!0);var Jt=this.playerResponse.playerAds;if(Jt)for(var Fh=F,yH=g.l(Jt),By=yH.next();!By.done;By=yH.next()){var RD=By.value;if(RD){var gW=RD.playerLegacyDesktopWatchAdsRenderer;if(gW){var aC=gW.playerAdParams;if(aC){aC.autoplay=="1"&&(this.Mm=this.k9=!0);this.T9=aC.encodedAdSafetyReason||
null;aC.showContentThumbnail!==void 0&&(this.lJ=!!aC.showContentThumbnail);Fh.enabled_engage_types=aC.enabledEngageTypes;break}}}}var h0=this.playerResponse.playerConfig;if(h0){var y4=h0.manifestlessWindowedLiveConfig;if(y4){var Yb=Number(y4.minDvrSequence),hZ=Number(y4.maxDvrSequence),GI=Number(y4.minDvrMediaTimeMs),Ua=Number(y4.maxDvrMediaTimeMs),sS=Number(y4.startWalltimeMs);Yb&&(this.W8=Yb);GI&&(this.cR=GI/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&$J(this)&&(this.FG=GI/
1E3));hZ&&(this.zY=hZ);Ua&&(this.uL=Ua/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&$J(this)&&(this.oO=Ua/1E3));sS&&(this.We=sS/1E3);(Yb||GI)&&(hZ||Ua)&&(this.allowLiveDvr=this.isLivePlayback=this.yh=!0,this.A5=!1)}var R4=h0.daiConfig;if(R4){if(R4.enableDai){this.P5=!0;var ty=R4.enableServerStitchedDai;ty&&(this.enableServerStitchedDai=ty);var nm=R4.enablePreroll;nm&&(this.Vb=nm)}var oL;if(R4.daiType==="DAI_TYPE_SS_DISABLED"||((oL=R4.debugInfo)==null?0:oL.isDisabledUnpluggedChannel))this.gD=
!0;R4.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.S_=!0)}var E0=h0.audioConfig;if(E0){var KX=E0.loudnessDb;KX!=null&&(this.YZ=KX);var SJ6=E0.trackAbsoluteLoudnessLkfs;SJ6!=null&&(this.wD=SJ6);var bYI=E0.loudnessTargetLkfs;bYI!=null&&(this.loudnessTargetLkfs=bYI);E0.audioMuted&&(this.mA=!0);E0.muteOnStart&&(this.sf=!0);var sj=E0.loudnessNormalizationConfig;if(sj){sj.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);sj.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=
!0);var dak=sj.minimumLoudnessTargetLkfs;dak!=null&&(this.minimumLoudnessTargetLkfs=dak);var JMY=sj.maxStatefulTimeThresholdSec;JMY!=null&&(this.maxStatefulTimeThresholdSec=JMY)}this.V("web_player_audio_playback_from_audio_config")&&E0.playAudioOnly&&(this.D7=!0)}var hgn=h0.playbackEndConfig;if(hgn){var yMn=hgn.endSeconds,Ryn=hgn.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(yMn&&(this.endSeconds=yMn),Ryn&&(this.limitedPlaybackDurationInSeconds=Ryn))}var s4=h0.fairPlayConfig;if(s4){var gpC=
s4.certificate;gpC&&(this.kG=jP(gpC));var YJp=Number(s4.keyRotationPeriodMs);YJp>0&&(this.Bi=YJp);var npY=Number(s4.keyPrefetchMarginMs);npY>0&&(this.JA=npY)}var $W=h0.playbackStartConfig;if($W){this.N9=Number($W.startSeconds);var Mxn=$W.liveUtcStartSeconds,LJa=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;Mxn&&!LJa&&(this.liveUtcStartSeconds=Number(Mxn));var su5=$W.startPosition;if(su5){var f9n=su5.utcTimeMillis;f9n&&!LJa&&(this.liveUtcStartSeconds=Number(f9n)*.001);var KJD=su5.streamTimeMillis;
KJD&&(this.y6=Number(KJD)*.001)}this.progressBarStartPosition=$W.progressBarStartPosition;this.progressBarEndPosition=$W.progressBarEndPosition}else{var rEn=h0.skippableSegmentsConfig;if(rEn){var WJn=rEn.introSkipDurationMs;WJn&&(this.Cs=Number(WJn)/1E3);var FF9=rEn.outroSkipDurationMs;FF9&&(this.uN=Number(FF9)/1E3)}}var Ben=h0.skippableIntroConfig;if(Ben){var kuD=Number(Ben.startMs),o0n=Number(Ben.endMs);isNaN(kuD)||isNaN(o0n)||(this.BM=kuD,this.Ki=o0n)}var zkH=h0.streamSelectionConfig;zkH&&(this.yf=
Number(zkH.maxBitrate));var xBx=h0.vrConfig;xBx&&(this.GJ=xBx.partialSpherical=="1");var r0=h0.webDrmConfig;if(r0){r0.skipWidevine&&(this.Zr=!0);var ih5=r0.widevineServiceCert;ih5&&(this.GR=jP(ih5));r0.useCobaltWidevine&&(this.useCobaltWidevine=!0);r0.startWithNoQualityConstraint&&(this.T1=!0)}var iT=h0.mediaCommonConfig;if(iT){var rS=iT.dynamicReadaheadConfig;if(rS){this.maxReadAheadMediaTimeMs=rS.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=rS.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=
rS.readAheadGrowthRateMs||NaN;var DB9,$Bn=iT==null?void 0:(DB9=iT.mediaUstreamerRequestConfig)==null?void 0:DB9.videoPlaybackUstreamerConfig;$Bn&&(this.q4=jP($Bn));var GPa=iT==null?void 0:iT.sabrContextUpdates;if(GPa&&GPa.length>0)for(var jP5=g.l(GPa),UX6=jP5.next();!UX6.done;UX6=jP5.next()){var le=UX6.value;if(le.type&&le.value){var zcV={type:le.type,scope:le.scope,value:jP(le.value)||void 0,sendByDefault:le.sendByDefault};this.sabrContextUpdates.set(le.type,zcV)}}}var ekk=iT.serverPlaybackStartConfig;
ekk&&(this.serverPlaybackStartConfig=ekk);iT.useServerDrivenAbr&&(this.je=!0);var Con=iT.requestPipeliningConfig;Con&&(this.requestPipeliningConfig=Con)}var AqM=h0.inlinePlaybackConfig;AqM&&(this.BV=!!AqM.showAudioControls);var Bi=h0.embeddedPlayerConfig;if(Bi){this.embeddedPlayerConfig=Bi;var tyY=Bi.embeddedPlayerMode;if(tyY){var pVa=this.C();pVa.mp=tyY;pVa.U=tyY==="EMBEDDED_PLAYER_MODE_PFL"}var E0x=Bi.permissions;E0x&&(this.allowImaMonetization=!!E0x.allowImaMonetization)}var XVM=h0.ssapConfig;
XVM&&(this.MN=XVM.ssapPrerollEnabled||!1);var Gg=h0.webPlayerConfig;Gg&&(Gg.gatewayExperimentGroup&&(this.gatewayExperimentGroup=Gg.gatewayExperimentGroup),Gg.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var De=this.playerResponse.streamingData;if(De){var ZUI=De.formats;if(ZUI){for(var BQ=[],qAk=g.l(ZUI),v$x=qAk.next();!v$x.done;v$x=qAk.next()){var cEI=v$x.value;BQ.push(cEI.itag+"/"+cEI.width+"x"+cEI.height)}this.hO=BQ.join(",");BQ=[];for(var NpR=g.l(ZUI),PYH=NpR.next();!PYH.done;PYH=NpR.next()){var GJ=
PYH.value,Uj={itag:GJ.itag,type:GJ.mimeType,quality:GJ.quality},uCn=GJ.url;uCn&&(Uj.url=uCn);var U4=Iy(GJ),xz9=U4.e4,igC=U4.L8,DzH=U4.s;U4.EN&&(Uj.url=xz9,Uj.sp=igC,Uj.s=DzH);BQ.push(g.ky(Uj))}this.Z7=BQ.join(",")}var OUx=De.hlsFormats;if(OUx&&!this.V("safari_live_drm_captions_fix")){var wV6=h0||null,tA={};if(wV6){var VyH=wV6.audioPairingConfig;if(VyH&&VyH.pairs)for(var mBp=g.l(VyH.pairs),IgM=mBp.next();!IgM.done;IgM=mBp.next()){var Tpp=IgM.value,HUn=Tpp.videoItag;tA[HUn]||(tA[HUn]=[]);tA[HUn].push(Tpp.audioItag)}}for(var lIp=
{},QPn=g.l(OUx),agY=QPn.next();!agY.done;agY=QPn.next()){var hkY=agY.value;lIp[hkY.itag]=hkY.bitrate}for(var sPY=[],rq6=g.l(OUx),Sv6=rq6.next();!Sv6.done;Sv6=rq6.next()){var ih=Sv6.value,cS={itag:ih.itag,type:ih.mimeType,url:ih.url,bitrate:ih.bitrate,width:ih.width,height:ih.height,fps:ih.fps},Zz=ih.audioTrack;if(Zz){var Bpk=Zz.displayName;Bpk&&(cS.name=Bpk,cS.audio_track_id=Zz.id,Zz.audioIsDefault&&(cS.is_default="1"))}if(ih.drmFamilies){for(var Gu6=[],UBp=g.l(ih.drmFamilies),bUH=UBp.next();!bUH.done;bUH=
UBp.next())Gu6.push(Qg[bUH.value]);cS.drm_families=Gu6.join(",")}var vi=tA[ih.itag];if(vi&&vi.length){cS.audio_itag=vi.join(",");var tTC=lIp[vi[0]];tTC&&(cS.bitrate+=tTC)}var Zhk=ct6(ih);Zhk&&(cS.eotf=Zhk);ih.audioChannels&&(cS.audio_channels=ih.audioChannels);sPY.push(g.ky(cS))}this.hlsFormats=sPY.join(",")}var dXa=De.licenseInfos;if(dXa&&dXa.length>0){for(var v0M={},cqD=g.l(dXa),JEp=cqD.next();!JEp.done;JEp=cqD.next()){var Pox=JEp.value,OhI=Pox.drmFamily,VT5=Pox.url;OhI&&VT5&&(v0M[Qg[OhI]]=VT5)}this.J5=
v0M}var IIp=De.drmParams;IIp&&(this.drmParams=IIp);var HhC=De.dashManifestUrl;HhC&&(this.fJ=g.oW(HhC,{cpn:this.clientPlaybackNonce}));var aI6=De.hlsManifestUrl;aI6&&(this.hlsvp=aI6);var SAM=De.probeUrl;SAM&&(this.probeUrl=Cs(g.oW(SAM,{cpn:this.clientPlaybackNonce})));var bhM=De.serverAbrStreamingUrl;bhM&&(this.Q7=new g.ZN(bhM,!0))}var dBx=this.playerResponse.trackingParams;dBx&&(this.Xf=dBx);var MT=this.playerResponse.videoDetails;if(MT){var PS=F,yEY=MT.videoId;yEY&&(this.videoId=yEY,PS.video_id||
(PS.video_id=yEY));var Jq6=MT.channelId;Jq6&&(this.G.uid=Jq6.substring(2));var RgH=MT.title;RgH&&(this.title=RgH,PS.title||(PS.title=RgH));var g$n$=MT.lengthSeconds;g$n$&&(this.lengthSeconds=Number(g$n$),PS.length_seconds||(PS.length_seconds=g$n$));var yqM=MT.keywords;yqM&&(this.keywords=u4p(yqM));var Yvk=MT.channelId;Yvk&&(this.Wz=Yvk,PS.ucid||(PS.ucid=Yvk));var Rk6=MT.viewCount;Rk6&&(this.rawViewCount=Number(Rk6));var n$a=MT.author;n$a&&(this.author=n$a,PS.author||(PS.author=n$a));var g0x=MT.shortDescription;
g0x&&(this.shortDescription=g0x);var YAM=MT.isCrawlable;YAM&&(this.isListed=YAM);var n0D=MT.musicVideoType;n0D&&(this.musicVideoType=n0D);var MyD=MT.isLive;MyD!=null&&(this.isLivePlayback=MyD);if(MyD||MT.isUpcoming)this.isPremiere=!MT.isLiveContent;var MTD=MT.thumbnail;MTD&&(this.K=mY(MTD));var LF9=MT.isExternallyHostedPodcast;LF9&&(this.isExternallyHostedPodcast=LF9);var LLY=MT.viewerLivestreamJoinPosition;if(LLY==null?0:LLY.utcTimeMillis)this.v$=Ag(LLY.utcTimeMillis);var fIk=h0||null,fg6=F;MT.isLiveDefaultBroadcast&&
(this.isLiveDefaultBroadcast=!0);MT.isUpcoming&&(this.isUpcoming=!0);if(MT.isPostLiveDvr){this.A5=!0;var KFI=MT.latencyClass;KFI&&(this.latencyClass=PtA[KFI]||"UNKNOWN");MT.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var KL6=!1;this.vR?(this.allowLiveDvr=xH()?!0:ox&&dm<5?!1:!0,this.isLivePlayback=!0):MT.isLive?(fg6.livestream="1",this.allowLiveDvr=MT.isLiveDvrEnabled?xH()?!0:ox&&dm<5?!1:!0:!1,this.partnerId=27,KL6=!0):MT.isUpcoming&&(KL6=!0);if(MT.isLive||this.vR&&this.V("html5_parse_live_monitor_flags")){MT.isLowLatencyLiveStream&&
(this.isLowLatencyLiveStream=!0);var WFn=MT.latencyClass;WFn&&(this.latencyClass=PtA[WFn]||"UNKNOWN");var F0a=MT.liveChunkReadahead;F0a&&(this.liveChunkReadahead=F0a);var jv=fIk&&fIk.livePlayerConfig;if(jv){jv.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);jv.hasSubfragmentedWebm&&(this.q3=!0);jv.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var kva=jv.liveExperimentalContentId;kva&&(this.liveExperimentalContentId=Number(kva));var o7x=jv.isLiveHeadPlayable;this.V("html5_live_head_playable")&&
o7x!=null&&(this.isLiveHeadPlayable=o7x)}}KL6&&(this.isLivePlayback=!0,fg6.adformat&&fg6.adformat.split("_")[1]!=="8"||this.t4.push("heartbeat"),this.Lu=!0)}var zlI=MT.isPrivate;zlI!==void 0&&(this.isPrivate=eZ(this.isPrivate,zlI))}if($Y){var xon=MT||null,i4H=!1,ev=$Y.errorScreen;i4H=ev&&(ev.playerLegacyDesktopYpcOfferRenderer||ev.playerLegacyDesktopYpcTrailerRenderer||ev.ypcTrailerRenderer)?!0:xon&&xon.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes($Y.status);if(!i4H){this.errorCode=
BAH($Y.errorCode)||"auth";var ci=ev&&ev.playerErrorMessageRenderer;if(ci){this.playerErrorMessageRenderer=ci;var DoY=ci.reason;DoY&&(this.errorReason=g.rt(DoY));var WLI=ci.subreason;WLI&&(this.QX=g.rt(WLI),this.tT=WLI)}else this.errorReason=$Y.reason||null;var FP6=$Y.status;if(FP6==="LOGIN_REQUIRED")this.errorDetail="1";else if(FP6==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(FP6==="AGE_CHECK_REQUIRED"){var $ok=$Y.errorScreen,jiH=$ok&&$ok.playerKavRenderer;this.errorDetail=jiH&&jiH.kavUrl?
"4":"3"}else this.errorDetail=$Y.isBlockedInRestrictedMode?"5":"0"}}var elR=this.playerResponse.interstitialPods;elR&&bpa(this,elR);this.NJ&&this.eventId&&(this.NJ=Cg(this.NJ,{ei:this.eventId}));var kTp=this.playerResponse.captions;if(kTp&&kTp.playerCaptionsTracklistRenderer)a:{var O0=kTp.playerCaptionsTracklistRenderer;this.captionTracks=[];if(O0.captionTracks)for(var CL9=g.l(O0.captionTracks),osn=CL9.next();!osn.done;osn=CL9.next()){var V1=osn.value,ASD=XQD(V1.baseUrl);if(!ASD)break a;var zD6={is_translateable:!!V1.isTranslatable,
languageCode:V1.languageCode,languageName:V1.name&&g.rt(V1.name),url:ASD,vss_id:V1.vssId,kind:V1.kind};zD6.name=V1.trackName;zD6.displayName=V1.name&&g.rt(V1.name);this.captionTracks.push(new g.Xd(zD6))}this.Hh=O0.audioTracks||[];this.Fx=O0.defaultAudioTrackIndex||0;this.yb=[];if(O0.translationLanguages)for(var prH=g.l(O0.translationLanguages),xvH=prH.next();!xvH.done;xvH=prH.next()){var CB=xvH.value,Qj={};Qj.languageCode=CB.languageCode;Qj.languageName=g.rt(CB.languageName);if(CB.translationSourceTrackIndices){Qj.translationSourceTrackIndices=
[];for(var E75=g.l(CB.translationSourceTrackIndices),ixI=E75.next();!ixI.done;ixI=E75.next())Qj.translationSourceTrackIndices.push(ixI.value)}if(CB.excludeAudioTrackIndices){Qj.excludeAudioTrackIndices=[];for(var Xr5=g.l(CB.excludeAudioTrackIndices),Dvn=Xr5.next();!Dvn.done;Dvn=Xr5.next())Qj.excludeAudioTrackIndices.push(Dvn.value)}this.yb.push(Qj)}this.wB=[];if(O0.defaultTranslationSourceTrackIndices)for(var quR=g.l(O0.defaultTranslationSourceTrackIndices),$vM=quR.next();!$vM.done;$vM=quR.next())this.wB.push($vM.value);
this.gx=!!O0.contribute&&!!O0.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.N9=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&JjY(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var NvM;this.compositeLiveIngestionOffsetToken=
(NvM=this.playerResponse.playbackTracking)==null?void 0:NvM.compositeLiveIngestionOffsetToken;var ujD;this.compositeLiveStatusToken=(ujD=this.playerResponse.playbackTracking)==null?void 0:ujD.compositeLiveStatusToken}YE(this,F);F.queue_info&&(this.queueInfo=F.queue_info);var wrn=F.hlsdvr;wrn!=null&&(this.allowLiveDvr=Number(wrn)===1?xH()?!0:ox&&dm<5?!1:!0:!1);this.adQueryId=F.ad_query_id||null;this.T9||(this.T9=F.encoded_ad_safety_reason||null);this.e0=F.agcid||null;this.bq=F.ad_id||null;this.Ih=
F.ad_sys||null;this.K5=F.encoded_ad_playback_context||null;this.mA=eZ(this.mA,F.infringe||F.muted);this.nD=F.authkey;this.Th=F.authuser;this.mutedAutoplay=eZ(this.mutedAutoplay,F&&F.playmuted);this.mutedAutoplayDurationMode=Ax(this.mutedAutoplayDurationMode,F&&F.muted_autoplay_duration_mode);this.A0=eZ(this.A0,F&&F.mutedautoplay);var Pi=F.length_seconds;Pi&&(this.lengthSeconds=typeof Pi==="string"?Ag(Pi):Pi);if(this.isAd()||this.Hx||!g.N5(g.aB(this.i$)))this.endSeconds=Ax(this.endSeconds,this.uN||
F.end||F.endSeconds);else{var $zG=g.aB(this.i$),O4=this.lengthSeconds;switch($zG){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":O4>30?this.limitedPlaybackDurationInSeconds=30:O4<30&&O4>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=O4*.2}}this.Xf=pu(this.Xf,F.itct);this.f8=eZ(this.f8,F.noiba);this.NP=eZ(this.NP,F.is_live_destination);this.isLivePlayback=eZ(this.isLivePlayback,F.live_playback);
this.enableServerStitchedDai=this.enableServerStitchedDai&&this.oS();F.isUpcoming&&(this.isUpcoming=eZ(this.isUpcoming,F.isUpcoming));this.A5=eZ(this.A5,F.post_live_playback);this.yh&&(this.A5=!1);this.isMdxPlayback=eZ(this.isMdxPlayback,F.mdx);var VA=F.mdx_control_mode;VA&&(this.mdxControlMode=typeof VA==="number"?VA:Ag(VA));this.isInlinePlaybackNoAd=eZ(this.isInlinePlaybackNoAd,F.is_inline_playback_no_ad);this.vj=Ax(this.vj,F.reload_count);this.reloadReason=pu(this.reloadReason,F.reload_reason);
this.lJ=eZ(this.lJ,F.show_content_thumbnail);this.RN=eZ(this.RN,F.utpsa);this.cycToken=F.cyc||null;this.Bh=F.tkn||null;var mo5=wg(F);Object.keys(mo5).length>0&&(this.K=mo5);this.PR=pu(this.PR,F.vvt);this.mdxEnvironment=pu(this.mdxEnvironment,F.mdx_environment);F.source_container_playlist_id&&(this.sourceContainerPlaylistId=F.source_container_playlist_id);F.serialized_mdx_metadata&&(this.serializedMdxMetadata=F.serialized_mdx_metadata);this.Gh=F.osig;this.eventId||(this.eventId=F.eventid);this.osid||
(this.osid=F.osid);this.playlistId=pu(this.playlistId,F.list);F.index&&(this.playlistIndex=this.playlistIndex===void 0?Ax(0,F.index):Ax(this.playlistIndex,F.index));this.gT=F.pyv_view_beacon_url;this.Xj=F.pyv_quartile25_beacon_url;this.vQ=F.pyv_quartile50_beacon_url;this.zW=F.pyv_quartile75_beacon_url;this.L9=F.pyv_quartile100_beacon_url;var TvD=F.session_data;!this.KO&&TvD&&(this.KO=xT(TvD,"&").feature);this.isFling=Ax(this.isFling?1:0,F.is_fling)===1;this.vnd=Ax(this.vnd,F.vnd);this.forceAdsUrl=
pu(this.forceAdsUrl,F.force_ads_url);this.m3=pu(this.m3,F.ctrl);this.rI=pu(this.rI,F.ytr);this.Ym=F.ytrcc;this.Tv=F.ytrexp;this.VJ=F.ytrext;this.MD=pu(this.MD,F.adformat);this.rq=pu(this.rq,F.attrib);this.slotPosition=Ax(this.slotPosition,F.slot_pos);this.breakType=F.break_type;this.qo=eZ(this.qo,F.ssrt);this.videoId=XG(F)||this.videoId;this.S=pu(this.S,F.vss_credentials_token);this.qZ=pu(this.qZ,F.vss_credentials_token_type);this.D7=eZ(this.D7,F.audio_only);this.l$=eZ(this.l$,F.aac_high);this.yJ=
eZ(this.yJ,F.prefer_low_quality_audio);this.sW=eZ(this.sW,F.uncap_inline_quality);this.V("html5_enable_qoe_cat_list")?F.qoe_cat&&(this.OE=this.OE.concat(F.qoe_cat.split(","))):this.BF=pu(this.BF,F.qoe_cat);this.w8=eZ(this.w8,F.download_media);var lFR=F.prefer_gapless;this.B=lFR!=null?eZ(this.B,lFR):this.B?this.B:this.i$.preferGapless&&this.i$.supportsGaplessShorts();RXI(this.playerResponse)&&this.t4.push("ad");var QiY=F.adaptive_fmts;QiY&&(this.adaptiveFormats=QiY,this.UK("adpfmts",{},!0));var hln=
F.allow_embed;hln&&(this.allowEmbed=Number(hln)===1);var siI=F.backgroundable;siI&&(this.backgroundable=Number(siI)===1);var rSx=F.autonav;rSx&&(this.isAutonav=Number(rSx)===1);var Bvk=F.autoplay;Bvk&&(this.k9=this.Mm=Number(Bvk)===1,iA(this,"c"));var GvH=F.iv_load_policy;GvH&&(this.annotationsLoadPolicy=Cu(this.annotationsLoadPolicy,GvH,SP));var Uo9=F.cc_lang_pref;Uo9&&(this.captionsLanguagePreference=pu(Uo9,this.captionsLanguagePreference));var tsa=F.cc_load_policy;tsa&&(this.MU=Cu(this.MU,tsa,
SP));var Z4D;this.deviceCaptionsOn=(Z4D=F.device_captions_on)!=null?Z4D:void 0;var v7H;this.HV=(v7H=F.device_captions_lang_pref)!=null?v7H:"";var cSY;this.Kf=(cSY=F.viewer_selected_caption_langs)!=null?cSY:[];if(!this.V("html5_enable_ssap_entity_id")){var PLI=F.cached_load;PLI&&(this.Si=eZ(this.Si,PLI))}if(F.dash==="0"||F.dash===0||F.dash===!1)this.OW=!0;var O45=F.dashmpd;O45&&(this.fJ=g.oW(O45,{cpn:this.clientPlaybackNonce}));var Vs5=F.delay;Vs5&&(this.qD=Ag(Vs5));var jMx=this.uN||F.end;if(this.Vz?
jMx!=null:jMx!=void 0)this.clipEnd=Ax(this.clipEnd,jMx);var IFC=F.fmt_list;IFC&&(this.hO=IFC);F.heartbeat_preroll&&this.t4.push("heartbeat");this.Ts=-Math.floor(Math.random()*10);this.Wh=-Math.floor(Math.random()*40);var H4k=F.is_listed;H4k&&(this.isListed=eZ(this.isListed,H4k));var aFp=F.is_private;aFp&&(this.isPrivate=eZ(this.isPrivate,aFp));var SuD=F.is_dni;SuD&&(this.Mk=eZ(this.Mk,SuD));var b4k=F.dni_color;b4k&&(this.bC=pu(this.bC,b4k));var dop=F.pipable;dop&&(this.pipable=eZ(this.pipable,dop));
this.KW=(this.gm=this.pipable&&this.i$.PZ)&&!this.i$.showMiniplayerButton;var JSI=F.paid_content_overlay_duration_ms;JSI&&(this.paidContentOverlayDurationMs=Ag(JSI));var ySx=F.paid_content_overlay_text;ySx&&(this.paidContentOverlayText=ySx);var Rln=F.url_encoded_fmt_stream_map;Rln&&(this.Z7=Rln);var g7D=F.hls_formats;g7D&&(this.hlsFormats=g7D);var Yux=F.hlsvp;Yux&&(this.hlsvp=Yux);var In=F.live_start_walltime;In&&(this.Hq=typeof In==="number"?In:Ag(In));var Hi=F.live_manifest_duration;Hi&&(this.Sh=
typeof Hi==="number"?Hi:Ag(Hi));var n7n=F.player_params;n7n&&(this.playerParams=n7n);var Ms5=F.partnerid;Ms5&&(this.partnerId=Ax(this.partnerId,Ms5));var L0n=F.probe_url;L0n&&(this.probeUrl=Cs(g.oW(L0n,{cpn:this.clientPlaybackNonce})));var eDp=F.pyv_billable_url;eDp&&kmR(eDp)&&(this.sF=eDp);var C3I=F.pyv_conv_url;C3I&&kmR(C3I)&&(this.Od=C3I);wQI(this,F);this.startSeconds>0?this.V("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.N9||this.Cs||F.start||F.startSeconds)&&this.UK("lss",
{css:this.startSeconds,pcss:this.N9,iss:this.Cs,ps:F.start||void 0,pss:F.startSeconds||void 0}):this.RS=this.startSeconds=Ax(this.startSeconds,this.N9||this.Cs||F.start||F.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var fF9=F.live_utc_start;if(fF9!=null)this.liveUtcStartSeconds=Number(fF9);else{var Ag5=this.startSeconds;Ag5&&isFinite(Ag5)&&Ag5>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var K0I=F.utc_start_millis;
K0I&&(this.liveUtcStartSeconds=Number(K0I)*.001)}var W0M=F.stream_time_start_millis;W0M&&(this.y6=Number(W0M)*.001);var pBD=this.Cs||F.start;(this.Vz?pBD==null||Number(F.resume)===1:pBD==void 0||F.resume=="1")||this.isLivePlayback||(this.clipStart=Ax(this.clipStart,pBD));var FTk=F.url_encoded_third_party_media;FTk&&(this.VH=$T(FTk));var Es6=F.ypc_offer_button_formatted_text;if(Es6){var kan=JSON.parse(Es6);this.dE=kan!=null?kan:null;this.AV=Es6}var oF6=F.ypc_offer_button_text;oF6&&(this.H6=oF6);var zCC=
F.ypc_offer_description;zCC&&(this.UE=zCC);var xu9=F.ypc_offer_headline;xu9&&(this.Nn=xu9);var ij5=F.ypc_full_video_message;ij5&&(this.Zv=ij5);var Dux=F.ypc_offer_id;Dux&&(this.J$=Dux);var $ux=F.ypc_buy_url;$ux&&(this.qn=$ux);var jbY=F.ypc_item_thumbnail;jbY&&(this.A9=jbY);var eCH=F.ypc_item_title;eCH&&(this.Yv=eCH);var C9D=F.ypc_item_url;C9D&&(this.f1=C9D);var A4D=F.ypc_vid;A4D&&(this.PZ=A4D);F.ypc_overlay_timeout&&(this.QV=Number(F.ypc_overlay_timeout));var pg5=F.ypc_trailer_player_vars;pg5&&(this.xf=
DC(pg5));var EFp=F.ypc_original_itct;EFp&&(this.sG=EFp);this.Wz=pu(this.Wz,F.ucid);F.baseUrl&&(this.G.baseUrl=F.baseUrl);F.uid&&(this.G.uid=F.uid);F.oeid&&(this.G.oeid=F.oeid);F.ieid&&(this.G.ieid=F.ieid);F.ppe&&(this.G.ppe=F.ppe);F.engaged&&(this.G.engaged=F.engaged);F.subscribed&&(this.G.subscribed=F.subscribed);this.G.focEnabled=eZ(this.G.focEnabled,F.focEnabled);this.G.rmktEnabled=eZ(this.G.rmktEnabled,F.rmktEnabled);this.VI=F.storyboard_spec||null;this.G0=F.live_storyboard_spec||null;this.bP=
F.iv_endscreen_url||null;this.Lu=eZ(this.Lu,F.ypc_license_checker_module);this.F1=eZ(this.F1,F.ypc_module);this.Tr=eZ(this.Tr,F.ypc_clickwrap_module);this.F1&&this.t4.push("ypc");this.Tr&&this.t4.push("ypc_clickwrap");this.fG={video_id:F.video_id,eventid:F.eventid,cbrand:F.cbrand,cbr:F.cbr,cbrver:F.cbrver,c:F.c,cver:F.cver,ctheme:F.ctheme,cplayer:F.cplayer,cmodel:F.cmodel,cnetwork:F.cnetwork,cos:F.cos,cosver:F.cosver,cplatform:F.cplatform,user_age:F.user_age,user_display_image:F.user_display_image,
user_display_name:F.user_display_name,user_gender:F.user_gender,csi_page_type:F.csi_page_type,csi_service_name:F.csi_service_name,enablecsi:F.enablecsi,enabled_engage_types:F.enabled_engage_types};E8p(this,F);var Xgx=F.cotn;Xgx&&(this.cotn=Xgx);if(v86(this))C9(this)&&(this.isLivePlayback&&this.fJ&&(this.Ji=!0),this.kG&&(this.hS=!0));else if(c8n(this))this.Ji=!0;else{var qfn,N7n,u1I=((qfn=this.playerResponse)==null?void 0:(N7n=qfn.streamingData)==null?void 0:N7n.adaptiveFormats)||[];if(u1I.length>
0)var t8=ZG6(this,u1I);else{var wga=this.adaptiveFormats;if(wga&&!C9(this)){this.i$.W.U&&(Vg=!0);var A5=ux(wga),XBC=this.J5,mu5=this.lengthSeconds,jSl=this.isLivePlayback,Z$=this.A5,pB=this.i$,ecn=nbD(A5);if(jSl||Z$){var T7p=pB==null?void 0:pB.experiments,yX=new Tk("",T7p,!0);yX.oS=!0;yX.isManifestless=!0;yX.L=!Z$;yX.isLive=!Z$;yX.A5=Z$;for(var l_6=g.l(A5),qV6=l_6.next();!qV6.done;qV6=l_6.next()){var Ei=qV6.value,QbC=s1(Ei,XBC),hP=ri(Ei.url,Ei.sp,Ei.s),hCD=hP.get("id");hCD&&hCD.includes("%7E")&&(yX.K=
!0);var sbI=void 0,CP$=(sbI=T7p)==null?void 0:sbI.Ca("html5_max_known_end_time_rebase"),ABt=Number(Ei.target_duration_sec)||5,ppA=Number(Ei.max_dvr_duration_sec)||14400,r4Y=Number(hP.get("mindsq")||hP.get("min_sq")||"0"),B7p=Number(hP.get("maxdsq")||hP.get("max_sq")||"0")||Infinity;yX.W8=yX.W8||r4Y;yX.zY=yX.zY||B7p;var ETn=!Cm(QbC.mimeType);hP&&u4(yX,new xl(hP,QbC,{dO:ABt,Ks:ETn,FJ:ppA,W8:r4Y,zY:B7p,ra:300,A5:Z$,b6:CP$}))}var GaH=yX}else{if(ecn==="FORMAT_STREAM_TYPE_OTF"){var an=mu5;an=an===void 0?
0:an;var X0=new Tk("",pB==null?void 0:pB.experiments,!1);X0.duration=an||0;for(var Uux=g.l(A5),Nfn=Uux.next();!Nfn.done;Nfn=Uux.next()){var qN=Nfn.value,u7k=s1(qN,XBC,X0.duration),wBD=ri(qN.url,qN.sp,qN.s);if(wBD)if(u7k.streamType==="FORMAT_STREAM_TYPE_OTF")u4(X0,new i4(wBD,u7k,"sq/0"));else{var XpY=I0(qN.init),qYA=I0(qN.index);u4(X0,new XQ(wBD,u7k,XpY,qYA))}}X0.isOtf=!0;var t2x=X0}else{var SN=mu5;SN=SN===void 0?0:SN;var b$=new Tk("",pB==null?void 0:pB.experiments,!1);b$.duration=SN||0;for(var Zjx=
g.l(A5),mvR=Zjx.next();!mvR.done;mvR=Zjx.next()){var NN=mvR.value,Nz9=s1(NN,XBC,b$.duration),uep=I0(NN.init),wpH=I0(NN.index),vFa=ri(NN.url,NN.sp,NN.s);vFa&&u4(b$,new XQ(vFa,Nz9,uep,wpH))}t2x=b$}GaH=t2x}var c4H=GaH;if(A5.length>0){var P9H=A5[0];if(this.C().playerStyle==="hangouts-meet"&&P9H.url){var mzt=g.jl(P9H.url);this.Mo=this.Mo||Number(mzt.expire)}}var Tz9=this.isLivePlayback&&!this.A5&&!this.yh&&!this.isPremiere;this.V("html5_live_head_playable")&&(!Ab(this)&&Tz9&&this.UK("missingLiveHeadPlayable",
{}),this.i$.Qh==="yt"&&(c4H.RU=!0));t8=c4H}else t8=null;this.UK("pafmts",{isManifestFilled:!!t8})}if(t8){Xq(this,t8);var Ojn=!0}else Ojn=!1;Ojn?this.enableServerStitchedDai=this.enableServerStitchedDai&&p9(this):this.fJ&&(this.i$.Qh==="yt"&&this.oS()&&this.V("drm_manifestless_unplugged")&&this.V("html5_deprecate_manifestful_fallback")?this.UK("deprecateMflFallback",{}):this.Ji=!0)}var Tf5=F.adpings;Tf5&&(this.Xq=Tf5?DC(Tf5):null);var V2D=F.feature;V2D&&(this.vZ=V2D);var I_C=F.referrer;I_C&&(this.referrer=
I_C);this.clientScreenNonce=pu(this.clientScreenNonce,F.csn);this.RM=Ax(this.RM,F.root_ve_type);this.Fp=Ax(this.Fp,F.kids_age_up_mode);this.Vz||F.kids_app_info==void 0||(this.kidsAppInfo=F.kids_app_info);this.Vz&&F.kids_app_info!=null&&(this.kidsAppInfo=F.kids_app_info);this.GI=eZ(this.GI,F.upg_content_filter_mode);this.unpluggedFilterModeType=Ax(this.unpluggedFilterModeType,F.unplugged_filter_mode_type);var Hjn=F.unplugged_location_info;Hjn&&(this.Qh=Hjn);var a_R=F.unplugged_partner_opt_out;a_R&&
(this.oh=pu("",a_R));this.xg=eZ(this.xg,F.disable_watch_next);this.MZ=pu(this.MZ,F.internal_ip_override);this.Hu=!!F.is_yto_interstitial;(this.interstitials.length||this.Hu)&&this.t4.push("yto");var SfR=F.aj;SfR&&(this.aj=SfR);var bjI;this.RU=(bjI=F.csi_timer)!=null?bjI:"";this.uo=!!F.force_gvi;F.watchUrl&&(this.watchUrl=F.watchUrl);var sx=F.watch_endpoint;this.V("html5_attach_watch_endpoint_ustreamer_config")&&sx&&ULY(this,sx);if(sx==null?0:sx.ustreamerConfig)this.vF=jP(sx.ustreamerConfig);var duD,
J4I,y4Y=sx==null?void 0:(duD=sx.loggingContext)==null?void 0:(J4I=duD.qoeLoggingContext)==null?void 0:J4I.serializedContextData;y4Y&&(this.kS=y4Y);g.tJ(this.i$)&&this.i$.eh&&(this.embedsRct=pu(this.embedsRct,F.rct),this.embedsRctn=pu(this.embedsRctn,F.rctn));this.eh=this.eh||!!F.pause_at_start;F.default_active_source_video_id&&(this.defaultActiveSourceVideoId=F.default_active_source_video_id)};
g.A.C=function(){return this.i$};
g.A.V=function(F){return this.i$.V(F)};
g.A.xA=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.A.hasSupportedAudio51Tracks=function(){var F;return!((F=this.Nk)==null||!F.dH)};
g.A.getUserAudio51Preference=function(){var F=1;K_(this.i$)&&this.V("html5_ytv_surround_toggle_default_off")?F=0:g.MU(this.i$)&&this.isLivePlayback&&this.sz()&&(F=0);var k;return(k=g.bn("yt-player-audio51"))!=null?k:F};
g.A.WE=function(){this.z4()||(this.Y.L||this.Y.unsubscribe("refresh",this.WE,this),this.yk(-1))};
g.A.yk=function(F){if(!this.isLivePlayback||!this.W||this.W.flavor!=="fairplay"){var k=Lx9(this.Y,this.qU);if(k.length>0){for(var z=g.l(k),x=z.next();!x.done;x=z.next())x=x.value,x.startSecs=Math.max(x.startSecs,this.oy()),this.V("html5_cuepoint_identifier_logging")&&x.event==="start"&&this.UK("cuepoint",{pubCue:x.identifier,segNum:F});this.publish("cuepointupdated",k,F);this.qU+=k.length;if(p9(this)&&this.i$.Jp())for(k=g.l(k),z=k.next();!z.done;z=k.next())z=z.value,this.UK("cuepoint",{segNum:F,event:z.event,
startSecs:z.startSecs,id:z.identifier.slice(-16)}),z.event==="start"&&(z=z.startSecs,this.xV.start=this.u$,this.xV.end=z+3)}}};
g.A.iz=function(){this.z4()||(this.loading=!1,this.publish("dataloaded"))};
g.A.sz=function(){return this.Wi!==void 0?this.Wi:this.Wi=!!this.J5||!!this.Y&&hX(this.Y)};
g.A.zx=function(F){var k=this;if(this.z4())return VL();this.P7=this.dH=this.U=null;kp(this,"html5_high_res_logging_always")&&(this.i$.H8=!0);return I$C(this,F).then(void 0,function(){return a$9(k,F)}).then(void 0,function(){return SjH(k)}).then(void 0,function(){return dZM(k)})};
g.A.p6=function(F){this.U=F;HGk(this,this.U.getAvailableAudioTracks());if(this.U){F=g.l(this.U.videoInfos);for(var k=F.next();!k.done;k=F.next()){k=k.value;var z=k.containerType;z!==0&&(this.uq[z]=k.id)}}ry(this);if(this.W&&this.U&&this.U.videoInfos&&!(this.U.videoInfos.length<=0)&&(F=Dm(this.U.videoInfos[0]),this.W.flavor==="fairplay"!==F))for(k=g.l(this.sE),z=k.next();!z.done;z=k.next())if(z=z.value,F===(z.flavor==="fairplay")){this.W=z;break}};
g.A.SU=function(){if(this.cotn)return null;var F=g.Pe(this.i$)||this.V("web_l3_storyboard");if(!this.En)if(this.playerResponse&&this.playerResponse.storyboards){var k=this.playerResponse.storyboards,z=k.playerStoryboardSpecRenderer;z&&z.spec?this.En=new bJ(z.spec,this.lengthSeconds,void 0,!1,F):(k=k.playerLiveStoryboardSpecRenderer)&&k.spec&&this.Y&&(z=yln(this.Y.Y).index)&&(this.En=new JT(k.spec,this.Y.isLive,z,F))}else this.VI?this.En=new bJ(this.VI,this.lengthSeconds,void 0,!1,F):this.G0&&this.Y&&
(k=yln(this.Y.Y).index)&&(this.En=new JT(this.G0,this.Y.isLive,k,F));return this.En};
g.A.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var F=this.playerResponse.storyboards;return(F=F.playerStoryboardSpecRenderer||F.playerLiveStoryboardSpecRenderer)&&F.spec||null}return this.VI||this.G0};
g.A.xN=function(){return this.Y&&!isNaN(this.Y.xN())?this.Y.xN():p9(this)?0:this.lengthSeconds};
g.A.oy=function(){return this.Y&&!isNaN(this.Y.oy())?this.Y.oy():0};
g.A.getPlaylistSequenceForTime=function(F){if(this.Y&&this.L){var k=this.Y.Y[this.L.id];if(!k)return null;var z=k.index.kA(F);k=k.index.getStartTime(z);return{sequence:z,elapsed:Math.floor((F-k)*1E3)}}return null};
g.A.ut=function(){return!this.z4()&&!(!this.videoId&&!this.VH)};
g.A.Vw=function(){var F,k,z;return!!this.adaptiveFormats||!!((F=this.playerResponse)==null?0:(k=F.streamingData)==null?0:(z=k.adaptiveFormats)==null?0:z.length)};
g.A.isLoaded=function(){return gg(this)&&!this.Ji&&!this.hS};
g.A.zr=function(F){F||(F="hqdefault.jpg");var k=this.K[F];return k||this.i$.PR||F==="pop1.jpg"||F==="pop2.jpg"||F==="sddefault.jpg"||F==="hq720.jpg"||F==="maxresdefault.jpg"?k:YH(this.i$,this.videoId,F)};
g.A.oS=function(){return this.isLivePlayback||this.A5||this.yh||!(!this.liveUtcStartSeconds||!this.Sh)};
g.A.isOtf=function(){return!!this.Y&&(this.Y.isOtf||!this.A5&&!this.isLivePlayback&&this.Y.L)};
g.A.getAvailableAudioTracks=function(){return this.U?this.U.getAvailableAudioTracks().length>0?this.U.getAvailableAudioTracks():this.Xz||[]:[]};
g.A.getAudioTrack=function(){var F=this;if(this.j&&!Dm(this.j))return g.M$(this.getAvailableAudioTracks(),function(x){return x.id===F.j.id})||this.fb;
if(this.Xz){if(!this.Tc)for(var k=g.l(this.Xz),z=k.next();!z.done;z=k.next())if(z=z.value,z.ZD.getIsDefault()){this.Tc=z;break}return this.Tc||this.fb}return this.fb};
g.A.getPlayerResponse=function(){return this.playerResponse};
g.A.getWatchNextResponse=function(){return this.J4};
g.A.getHeartbeatResponse=function(){return this.VY};
g.A.Ai=function(){return this.watchUrl?this.watchUrl:this.i$.getVideoUrl(this.videoId)};
g.A.uj=function(){return!!this.Y&&(SH9(this.Y)||bmx(this.Y)||diH(this.Y))};
g.A.getEmbeddedPlayerResponse=function(){return this.Hl};
g.A.wI=function(){return(this.eventLabel||this.i$.Xf)==="shortspage"};
g.A.isAd=function(){return this.J2||!!this.adFormat};
g.A.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.A.w3=function(){var F,k,z;return this.isDaiEnabled()&&!!((F=this.playerResponse)==null?0:(k=F.playerConfig)==null?0:(z=k.daiConfig)==null?0:z.ssaEnabledPlayback)};
g.A.fT=function(){return ejC(this)?this.fC:this.Lu||this.uG};
g.A.s_=function(){return this.F1||this.uG};
g.A.Xn=function(){return kp(this,"html5_samsung_vp9_live")};
g.A.UK=function(F,k,z){this.publish("ctmp",F,k,z)};
g.A.sQ=function(F,k,z){this.publish("ctmpstr",F,k,z)};
g.A.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.A.getGetAdBreakContext=function(F,k){F=F===void 0?NaN:F;k=k===void 0?NaN:k;var z={isSabr:$J(this)},x,D=(x=this.getHeartbeatResponse())==null?void 0:x.adBreakHeartbeatParams;D&&(z.adBreakHeartbeatParams=D);if(this.V("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.Y&&!isNaN(F)&&!isNaN(k)){k=F-k;for(var e in this.Y.Y)if(x=this.Y.Y[e],x.info.Ci()||x.info.QZ())if(x=x.index,x.isLoaded()){e=x.kA(k);x=x.B7(e)+k-x.getStartTime(e);this.UK("gabc",{t:F.toFixed(3),mt:k.toFixed(3),sg:e,igt:x.toFixed(3)});
z.livePlaybackPosition={utcTimeMillis:""+(x*1E3).toFixed(0)};break}}return z};
g.A.isEmbedsShortsMode=function(F,k){if(!g.tJ(this.i$)||(this.i$.mp||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||k)return!1;var z,x;return!!(((z=this.embeddedPlayerConfig)==null?0:(x=z.embeddedPlayerFlags)==null?0:x.isShortsExperienceEligible)&&F.width<=F.height)};
g.A.h4=function(){g.uG.prototype.h4.call(this);this.Xq=null;delete this.oL;delete this.accountLinkingConfig;delete this.Y;this.U=this.VY=this.playerResponse=this.J4=null;this.Z7=this.adaptiveFormats="";delete this.botguardData;this.UH=this.suggestions=this.eI=null;this.sabrContextUpdates.clear()};var N2n={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},u_k={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},XFk={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},Aka={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"},EXx={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},pFn={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"},qlx={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.T(CY,g.S);g.A=CY.prototype;g.A.handleExternalCall=function(F,k,z){var x=this.state.G[F],D=this.state.B[F],e=x;if(D)if(z&&DV(z,WsA))e=D;else if(!x)throw Error('API call from an untrusted origin: "'+z+'"');this.logApiCall(F,z);if(e){z=!1;x=g.l(k);for(D=x.next();!D.done;D=x.next())if(String(D.value).includes("javascript:")){z=!0;break}z&&g.yI(Error('Dangerous call to "'+F+'" with ['+k+"]."));return e.apply(this,k)}throw Error('Unknown API method: "'+F+'".');};
g.A.logApiCall=function(F,k,z){var x=this.app.C();x.Fp&&!this.state.K.has(F)&&(this.state.K.add(F),g.NA("webPlayerApiCalled",{callerUrl:x.loaderUrl,methodName:F,origin:k||void 0,playerStyle:x.playerStyle||void 0,embeddedPlayerMode:x.mp,errorCode:z}))};
g.A.publish=function(F){var k=g.v6.apply(1,arguments);this.state.U.publish.apply(this.state.U,[F].concat(g.r(k)));if(F==="videodatachange"||F==="resize"||F==="cardstatechange")this.state.L.publish.apply(this.state.L,[F].concat(g.r(k))),this.state.j.publish.apply(this.state.j,[F].concat(g.r(k)))};
g.A.ZQ=function(F){var k=g.v6.apply(1,arguments);this.state.U.publish.apply(this.state.U,[F].concat(g.r(k)));this.state.L.publish.apply(this.state.L,[F].concat(g.r(k)))};
g.A.YN=function(F){var k=g.v6.apply(1,arguments);this.state.U.publish.apply(this.state.U,[F].concat(g.r(k)));this.state.L.publish.apply(this.state.L,[F].concat(g.r(k)));this.state.j.publish.apply(this.state.j,[F].concat(g.r(k)))};
g.A.RI=function(F){var k=g.v6.apply(1,arguments);this.state.U.publish.apply(this.state.U,[F].concat(g.r(k)));this.state.L.publish.apply(this.state.L,[F].concat(g.r(k)));this.state.j.publish.apply(this.state.j,[F].concat(g.r(k)));this.state.W.publish.apply(this.state.W,[F].concat(g.r(k)))};
g.A.V=function(F){return this.app.C().V(F)};
g.A.h4=function(){if(this.state.element){var F=this.state.element,k;for(k in this.state.Y)this.state.Y.hasOwnProperty(k)&&(F[k]=null);this.state.element=null}g.S.prototype.h4.call(this)};g.T(qa,g.Ze);qa.prototype.publish=function(F){var k=g.v6.apply(1,arguments);if(this.W.has(F))return this.W.get(F).push(k),!0;var z=!1;try{for(k=[k],this.W.set(F,k);k.length;)z=g.Ze.prototype.publish.call.apply(g.Ze.prototype.publish,[this,F].concat(g.r(k.shift())))}finally{this.W.delete(F)}return z};g.T(Na,g.S);Na.prototype.h4=function(){this.W.dispose();this.j.dispose();this.L.dispose();this.U.dispose();this.K=this.Y=this.B=this.G=this.S=void 0};var sTp=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.T(w5,CY);g.A=w5.prototype;g.A.getApiInterface=function(){return Array.from(this.state.S)};
g.A.fM=function(F,k){this.state.W.subscribe(F,k)};
g.A.Ahh=function(F,k){this.state.W.unsubscribe(F,k)};
g.A.getPlayerState=function(F){return Afn(this.app,F)};
g.A.Zi=function(){return Afn(this.app)};
g.A.PG$=function(F,k,z){lA(this)&&(H2(this.app,!0,1),bm(this.app,F,k,z,1))};
g.A.getCurrentTime=function(F,k,z){var x=this.getPlayerState(F);if(this.app.getAppState()===2&&x===5){var D;return((D=this.app.getVideoData())==null?void 0:D.startSeconds)||0}return this.V("web_player_max_seekable_on_ended")&&x===0?j$D(this.app,F):F?this.app.getCurrentTime(F,k,z):this.app.getCurrentTime(F)};
g.A.qc=function(){return this.app.getCurrentTime(1)};
g.A.BB=function(){var F=this.app.B7(1);return isNaN(F)?this.getCurrentTime(1):F};
g.A.HB=function(){return this.app.getDuration(1)};
g.A.OM=function(F,k){F=g.l3(Math.floor(F),0,100);isFinite(F)&&tm(this.app,{volume:F,muted:this.isMuted()},k)};
g.A.zE4=function(F){this.OM(F,!1)};
g.A.Ub=function(F){tm(this.app,{muted:!0,volume:this.getVolume()},F)};
g.A.Mz4=function(){this.Ub(!1)};
g.A.l9=function(F){TL(this.app)&&!this.V("embeds_enable_emc3ds_muted_autoplay")||tm(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},F)};
g.A.m4R=function(){TL(this.app)&&this.V("embeds_enable_emc3ds_muted_autoplay")||this.l9(!1)};
g.A.getPlayerMode=function(){var F={};this.app.getVideoData().Mk&&(F.pfp={enableIma:g.xp(this.app.getVideoData())&&this.app.uu().allowImaMonetization,autoplay:Sk(this.app.uu()),mutedAutoplay:this.app.uu().mutedAutoplay});return F};
g.A.NO=function(){var F=this.app.getPresentingPlayerType();if(F===2&&!this.app.P5()){var k=rm(this.app.iL());if(!Ann(k)||p6V(k))return}F===3?this.app.E7().D_.playVideo():this.app.C().V("html5_ssap_ignore_play_for_ad")&&g.Mk(this.app.uu())&&F===2||this.app.playVideo(F)};
g.A.jgf=function(){H2(this.app,!0,1);this.NO()};
g.A.pauseVideo=function(F){var k=this.app.getPresentingPlayerType();if(k!==2||this.app.P5()||Ann(rm(this.app.iL())))k===3?this.app.E7().D_.pauseVideo():this.app.pauseVideo(k,F)};
g.A.M5J=function(){var F=this.app,k=!1;F.YG.We&&(F.Vh.publish("pageTransition"),k=!0);F.stopVideo(k)};
g.A.clearVideo=function(){};
g.A.getAvailablePlaybackRates=function(){var F=this.app.C();return F.enableSpeedOptions?["https://web.archive.org/web/20250411103644/https://admin.youtube.com","https://web.archive.org/web/20250411103644/https://viacon.corp.google.com","https://web.archive.org/web/20250411103644/https://yurt.corp.google.com"].includes(F.j?F.ancestorOrigins[0]:window.location.origin)||F.tS?U3C:F.supportsVarispeedExtendedFeatures?tiA:F.V("web_remix_allow_up_to_3x_playback_rate")&&g.g8(F)?Ze$:B$:[1]};
g.A.getPlaybackQuality=function(F){return(F=this.app.CN(F))?F.getPlaybackQuality():"unknown"};
g.A.Sz_=function(){};
g.A.getAvailableQualityLevels=function(F){return(F=this.app.CN(F))?(F=g.tW(F.hI(),function(k){return k.quality}),F.length&&(F[0]==="auto"&&F.shift(),F=F.concat(["auto"])),F):[]};
g.A.IE=function(){return this.getAvailableQualityLevels(1)};
g.A.rh=function(){return this.K9()};
g.A.vB=function(){return 1};
g.A.getVideoLoadedFraction=function(F){return this.app.getVideoLoadedFraction(F)};
g.A.K9=function(){return this.getVideoLoadedFraction()};
g.A.Lph=function(){return 0};
g.A.getSize=function(){var F=this.app.Ka().getPlayerSize();return{width:F.width,height:F.height}};
g.A.setSize=function(){this.app.Ka().resize()};
g.A.loadVideoById=function(F,k,z,x){if(!F)return!1;F=uA(F,k,z);return this.app.loadVideoByPlayerVars(F,x)};
g.A.mDf=function(F,k,z){F=this.loadVideoById(F,k,z,1);H2(this.app,F,1)};
g.A.cueVideoById=function(F,k,z,x){F=uA(F,k,z);this.app.cueVideoByPlayerVars(F,x)};
g.A.xz=function(F,k,z){this.cueVideoById(F,k,z,1)};
g.A.loadVideoByUrl=function(F,k,z,x){F=hjk(F,k,z);return this.app.loadVideoByPlayerVars(F,x)};
g.A.SHJ=function(F,k,z){F=this.loadVideoByUrl(F,k,z,1);H2(this.app,F,1)};
g.A.cueVideoByUrl=function(F,k,z,x){F=hjk(F,k,z);this.app.cueVideoByPlayerVars(F,x)};
g.A.Gb=function(F,k,z){this.cueVideoByUrl(F,k,z,1)};
g.A.QUR=function(){var F=this.app.C();if(F.PR)return"";var k=this.app.uu(),z=void 0;k.isLivePlayback||(z=Math.floor(this.app.getCurrentTime(1)));return F.getVideoUrl(k.videoId,this.getPlaylistId()||void 0,z)};
g.A.fY=function(){return this.app.getDebugText()};
g.A.getVideoEmbedCode=function(){var F=this.app.C();if(F.PR)return"";var k=this.app.uu();return F.getVideoEmbedCode(k.isPrivate?"":k.title,this.app.uu().videoId,this.app.Ka().getPlayerSize(),this.getPlaylistId()||void 0)};
g.A.qT=function(F,k,z){return m0a(this.app,F,k,z)};
g.A.removeCueRange=function(F){return lKI(this.app,F)};
g.A.loadPlaylist=function(F,k,z,x){this.app.loadPlaylist(F,k,z,x)};
g.A.iN$=function(F,k,z,x){this.loadPlaylist(F,k,z,x);H2(this.app,!0,1)};
g.A.cuePlaylist=function(F,k,z,x){this.app.cuePlaylist(F,k,z,x)};
g.A.nextVideo=function(F,k){this.app.nextVideo(F,k)};
g.A.pjR=function(){this.nextVideo();H2(this.app,!0,1)};
g.A.previousVideo=function(F){this.app.previousVideo(F)};
g.A.WEJ=function(){this.previousVideo();H2(this.app,!0,1)};
g.A.playVideoAt=function(F){this.app.playVideoAt(F)};
g.A.a7a=function(F){this.playVideoAt(F);H2(this.app,!0,1)};
g.A.setShuffle=function(F){var k=this.app.getPlaylist();k&&k.setShuffle(F)};
g.A.setLoop=function(F){var k=this.app.getPlaylist();k&&(k.loop=F)};
g.A.sY=function(){var F=this.app.getPlaylist();if(!F)return null;for(var k=[],z=0;z<F.getLength();z++){var x=g.A_(F,z);x&&k.push(x.videoId)}return k};
g.A.getPlaylistIndex=function(){var F=this.app.getPlaylist();return F?F.index:-1};
g.A.getPlaylistId=function(){var F=this.app.getPlaylist();return F&&F.listId?F.listId.toString():null};
g.A.zt=function(F){F==="captions"&&(F=g.Qt(this.app.iL()))&&!F.loaded&&F.load()};
g.A.zo=function(F){F==="captions"&&(F=g.Qt(this.app.iL()))&&F.loaded&&F.eqQ()};
g.A.Vo=function(F,k,z){if(!k)return null;var x=this.app.iL();return F==="captions"?(F=g.Qt(x))&&F.tG(k,z):null};
g.A.u8=function(F,k,z){return $p(this.app.Pj().getVideoData())?{}:this.Vo(F,k,z)};
g.A.ZX=function(F){var k=this.app.iL();if(F==="captions"){var z;return((z=g.Qt(k))==null?void 0:z.getOptions())||null}return F?null:(F=[],g.Qt(k)&&F.push("captions"),F)};
g.A.getVolume=function(){return this.app.D3.volume};
g.A.isMuted=function(){return this.app.D3.muted};
g.A.destroy=function(){this.app.dispose()};
g.A.logImaAdEvent=function(F,k){var z=this.app.C();g.xp(this.app.getVideoData())&&this.app.uu().allowImaMonetization&&(F={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:k,embedUrl:g.w1n(this.app.C().loaderUrl),eventType:F,youtubeHost:g.Lw(this.app.C().e5)||""},F.embeddedPlayerMode=z.mp,g.NA("embedsAdEvent",F))};
g.A.mutedAutoplay=function(F){var k=this.app.C(),z,x,D;((z=k.getWebPlayerContextConfig())==null?0:(x=z.embedsHostFlags)==null?0:(D=x.allowMutedAutoplayDurationMode)==null?0:D.length)&&!k.U&&this.app.mutedAutoplay(F)};
g.A.preloadVideoById=function(F,k,z,x){var D,e;((D=this.app.C().getWebPlayerContextConfig())==null?0:(e=D.embedsHostFlags)==null?0:e.allowPreloadVideoById)&&F&&(F=uA(F,k,z),this.app.preloadVideoByPlayerVars(F,x))};
g.A.X5f=function(F,k,z){this.preloadVideoById(F,k,z,1)};
g.A.setFauxFullscreen=function(F){g.hx();this.app.F9(F?2:0)};
g.A.EAU=function(F){var k,z;((k=this.app.C().getWebPlayerContextConfig())==null?0:(z=k.embedsHostFlags)==null?0:z.allowSetFauxFullscreen)&&this.setFauxFullscreen(F)};
g.A.setCenterCrop=function(F){var k,z;((k=this.app.C().getWebPlayerContextConfig())==null?0:(z=k.embedsHostFlags)==null?0:z.allowSetCenterCrop)&&this.app.Ka().setCenterCrop(F)};
g.A.wakeUpControls=function(){var F=g.mJ(this);F&&F.wq()};var Z$n="driveweb flix flix_from_driveweb hovercard projector texmex wshbp".split(" ");g.T(QU,w5);g.A=QU.prototype;g.A.HX=function(F,k){this.state.j.subscribe(F,k)};
g.A.f7$=function(F,k){this.state.j.unsubscribe(F,k)};
g.A.cueVideoByPlayerVars=function(F,k){this.app.cueVideoByPlayerVars(F,k)};
g.A.If=function(F,k){k=k===void 0?1:k;this.cueVideoByPlayerVars(hM(this,F),k)};
g.A.loadVideoByPlayerVars=function(F,k,z,x,D){this.app.loadVideoByPlayerVars(F,z,k,x,D)};
g.A.THQ=function(F,k,z,x){z=z===void 0?1:z;this.loadVideoByPlayerVars(hM(this,F),k,z,x)};
g.A.preloadVideoByPlayerVars=function(F,k,z,x,D){z=z===void 0?NaN:z;this.app.preloadVideoByPlayerVars(F,k,z,x===void 0?"":x,D===void 0?"":D)};
g.A.Shk=function(F,k,z,x){k=k===void 0?1:k;this.preloadVideoByPlayerVars(hM(this,F),k,z,x)};
g.A.b3=function(F,k,z){this.loadVideoById(F,k,z,1)};
g.A.nL=function(F,k,z){this.loadVideoByUrl(F,k,z,1)};
g.A.Di=function(F){return this.getPlayerState(F)};
g.A.O4=function(F){F=F===void 0?1:F;var k=B2R(this,F);if(F=this.app.CN(F)){F=F.getVideoData();k.backgroundable=F.backgroundable;k.eventId=F.eventId;k.cpn=F.clientPlaybackNonce;k.isLive=F.isLivePlayback;k.isWindowedLive=F.yh;k.isManifestless=p9(F);k.allowLiveDvr=F.allowLiveDvr;k.isListed=F.isListed;F.liveUtcStartSeconds!=null&&(k.liveUtcStartSeconds=F.liveUtcStartSeconds);F.sz()&&(k.isEncrypted=!0);if(F.U)for(var z=g.l(F.U.videoInfos),x=z.next();!x.done;x=z.next()){var D=void 0;if((D=x.value.video)==
null?0:D.isHdr()){k.isHdr=!0;break}}var e,C;k.isMultiChannelAudio=!!((e=F.j)==null?0:(C=e.audio)==null?0:C.isMultiChannelAudio())}return k};
g.A.seekBy=function(F,k,z,x,D){lA(this)&&bm(this.app,this.app.getCurrentTime()+F,k,z,D,x)};
g.A.U$k=function(F,k,z){this.seekBy(F,k,z,void 0,1)};
g.A.seekTo=function(F,k,z,x,D){lA(this)&&bm(this.app,F,k,z,x,D)};
g.A.aTG=function(F,k,z,x){this.seekTo(F,k,z,x===void 0?1:x)};
g.A.getStoryboardFormat=function(){var F=this.app.getVideoData();return this.app.C().V("embeds_enable_vfsyb")&&$p(F)?null:this.app.getStoryboardFormat()};
g.A.Aj=function(F,k){return this.getCurrentTime(F===void 0?1:F,k)};
g.A.fH=function(){var F=this.app.getPresentingPlayerType(!0);F===2&&this.app.P5()&&(F=1);return F};
g.A.getDuration=function(F,k){if(this.fH()===3){var z;return((z=cv(this.app.iL()).getProgressState())==null?void 0:z.duration)||0}return F?this.app.getDuration(F,k):this.app.getDuration(F)};
g.A.x_=function(F,k){return this.getDuration(F===void 0?1:F,k)};
g.A.YKh=function(F){return this.getVideoLoadedFraction(F)};
g.A.loadModule=function(F){if(F==="annotations_module"){var k=g.UL(this.app.iL());k&&!k.loaded&&k.load()}this.zt(F)};
g.A.unloadModule=function(F){if(F==="annotations_module"){var k=g.UL(this.app.iL());k&&k.loaded&&k.unload()}this.zo(F)};
g.A.getOption=function(F,k,z,x){return(x=this.app.CN(x))&&$p(x.getVideoData())?{}:this.setOption(F,k,z)};
g.A.BQ=function(F,k,z){return this.getOption(F,k,z,1)};
g.A.getOptions=function(F){var k=this.app.iL();switch(F){case "ad":var z,x;return((z=rm(k))==null?void 0:(x=z.getOptions)==null?void 0:x.call(z))||null;case "remote":var D,e;return((D=cv(k))==null?void 0:(e=D.getOptions)==null?void 0:e.call(D))||null;case "annotations_module":var C,p;return((C=g.UL(k))==null?void 0:(p=C.getOptions)==null?void 0:p.call(C))||null;case "creatorendscreen":var E,X;return((E=t_(k))==null?void 0:(X=E.getOptions)==null?void 0:X.call(E))||null;case "unplugged":var q,N;return((q=
g.Bm(k))==null?void 0:(N=q.getOptions)==null?void 0:N.call(q))||null;case "kids":var u,w;return((u=BTk(k))==null?void 0:(w=u.getOptions)==null?void 0:w.call(u))||null}if(!F){F=this.ZX();if(!F)return F;rm(k)&&F.push("ad");cv(k)&&F.push("remote");g.UL(k)&&F.push("annotations_module");t_(k)&&F.push("creatorendscreen");g.Bm(k)&&F.push("unplugged");BTk(k)&&F.push("kids");return F}return this.ZX(F)};
g.A.setOption=function(F,k,z){if(!k)return null;var x=this.app.iL();switch(F){case "ad":return(F=rm(x))&&F.tG&&F.tG(k,z);case "kids":return(F=BTk(x))&&F.tG(k,z);case "remote":return(F=cv(x))&&F.tG(k,z);case "unplugged":return(F=g.Bm(x))&&F.tG(k,z);case "annotations_module":return(F=g.UL(x))&&F.tG(k,z);case "creatorendscreen":return(F=t_(x))&&F.tG(k,z)}return this.Vo(F,k,z)};
g.A.addCueRange=function(F,k,z,x,D){return m0a(this.app,F,k,z,x,D)};
g.A.getDebugText=function(F){return this.app.getDebugText(F)};
g.A.getCurrentBroadcastId=function(){return null};
g.A.handleGlobalKeyDown=function(F,k,z,x,D,e,C,p){k=k===void 0?!1:k;z=z===void 0?!1:z;x=x===void 0?!1:x;D=D===void 0?!1:D;var E=g.mJ(this);E&&E.handleGlobalKeyDown(F,k,z,x,D,e,C,p)};
g.A.handleGlobalKeyUp=function(F,k,z,x,D,e,C){k=k===void 0?!1:k;z=z===void 0?!1:z;x=x===void 0?!1:x;D=D===void 0?!1:D;var p=g.mJ(this);p&&p.handleGlobalKeyUp(F,k,z,x,D,e,C)};
g.A.setSizeStyle=function(F,k){this.app.setSizeStyle(F,k)};
g.A.showControls=function(){var F=g.mJ(this);F&&F.showControls(!0)};
g.A.hideControls=function(){var F=g.mJ(this);F&&F.showControls(!1)};
g.A.getVideoContentRect=function(F){F=this.app.Ka().getVideoContentRect(F);return{left:F.left,top:F.top,width:F.width,height:F.height}};
g.A.toggleFullscreen=function(){function F(z){g.yI(z)}
var k=this.app.C();if(k.externalFullscreen){if(!g.WJ(k))return this.isFullscreen()?ra(window.document.documentElement):QB(window.document.documentElement).catch(F)}else if(g.hx()||k.B)return this.isFullscreen()?ra(sN()):k.controlsType!=="3"&&g.hx()?QB(this.app.Ka().element).catch(F):(k=this.app.S9().T$())?QB(k).catch(F):Promise.reject(Error("Media element missing"));this.RI("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.A.isFullscreen=function(){return this.app.isFullscreen()};
g.A.pu=function(){return this.app.pu()};
g.A.cancelPlayback=function(){var F=rm(this.app.iL());F&&F.created&&F.destroy();(F=this.app.A4())&&F.stopVideo();(F=this.app.iL().hv.get("endscreen"))&&F.Oaa()&&g.vv(this.app.Vh,!0)};
g.A.getProgressState=function(F){if(this.fH()===3)return cv(this.app.iL()).getProgressState();var k=this.app.getVideoData(),z=this.app.CN(F)||this.app.A4(),x=z.getPlayerType();a:{var D=this.app.getVideoData();var e;if((e=D.progressBarStartPosition)==null?0:e.utcTimeMillis)if(D=Number(D.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(D)){D=sJ(this,D,F);break a}D=0}var C;a:{e=this.app.getVideoData();if((C=e.progressBarEndPosition)==null?0:C.utcTimeMillis)if(C=Number(e.progressBarEndPosition.utcTimeMillis)/
1E3,!isNaN(C)){C=sJ(this,C,F);break a}C=0}e=this.getCurrentTime(F);F=this.getDuration(F);var p=this.app.B7(x),E=this.app.isAtLiveHead(x),X=this.app.Gz();var q=this.app;var N=q.CN(x);N?(N=lm(q,N),q=c2(q,N.Wf(),N)):q=q.MR.Y.Wf();N=j$D(this.app,x);z=z.Hj();var u=this.app.getVideoData().v$;x=!u||isNaN(u)?0:sJ(this,u,x);return{airingStart:D,airingEnd:C,allowSeeking:this.app.xA(),clipEnd:k.clipEnd,clipStart:k.clipStart,current:e,displayedStart:-1,duration:F,ingestionTime:p,isAtLiveHead:E,loaded:X,seekableStart:q,
seekableEnd:N,offset:z,viewerLivestreamJoinMediaTime:x}};
g.A.isInline=function(){return this.app.isInline()};
g.A.setInline=function(F){this.app.setInline(F)};
g.A.UJJ=function(){return this.app.Pj().rH(!0)};
g.A.toggleSubtitles=function(){var F=g.Qt(this.app.iL());F&&F.Qo_()};
g.A.getPlayerSize=function(){var F=this.app.Ka().getPlayerSize();return{width:F.width,height:F.height}};
g.A.setCenterCrop=function(F){this.app.Ka().setCenterCrop(F)};
g.A.getLoopVideo=function(){return this.app.getLoopVideo()};
g.A.setLoopVideo=function(F){this.app.setLoopVideo(F)};
var tcn="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public qoe_cat raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),
ckR="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");var i_={},Pqx=(i_["api.invalidparam"]=2,i_.auth=150,i_["drm.auth"]=150,i_["heartbeat.net"]=150,i_["heartbeat.servererror"]=150,i_["heartbeat.stop"]=150,i_["html5.unsupportedads"]=5,i_["fmt.noneavailable"]=5,i_["fmt.decode"]=5,i_["fmt.unplayable"]=5,i_["html5.missingapi"]=5,i_["html5.unsupportedlive"]=5,i_["drm.unavailable"]=5,i_["mrm.blocked"]=151,i_["embedder.identity.denied"]=152,i_);g.T(g.r5,QU);g.A=g.r5.prototype;g.A.isExternalMethodAvailable=function(F,k){return this.state.G[F]?!0:!!(this.state.B[F]&&k&&DV(k,WsA))};
g.A.getBandwidthEstimate=function(){return Qq(this.app.C().schedule)};
g.A.reportPlaybackIssue=function(F){F=F===void 0?"":F;var k=this.app.A4();k&&(F={gpu:(0,g.l6)(),d:F},k.handleError(new O3("feedback",F)))};
g.A.getInternalApi=function(){return Object.assign({},this.state.Y)};
g.A.getInternalApiInterface=function(){return g.Vd(this.state.Y)};
g.A.queueNextVideo=function(F,k,z,x,D){z=z===void 0?NaN:z;this.app.queueNextVideo(F,k,z,x===void 0?"":x,D===void 0?"":D)};
g.A.CY=function(F){F=this.app.getPlayerStateObject(F);return{isBuffering:g.n(F,1),isCued:F.isCued(),isDomPaused:g.n(F,1024),isEnded:g.n(F,2),isError:g.n(F,128),isOrWillBePlaying:F.isOrWillBePlaying(),isPaused:F.isPaused(),isPlaying:F.isPlaying(),isSeeking:g.n(F,16),isUiSeeking:g.n(F,32),isUnstarted:g.n(F,64)}};
g.A.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
g.A.startSeekCsiAction=function(){this.app.g$().j.Y=(0,g.VE)()};
g.A.RE=function(F,k,z){return this.getCurrentTime(F===void 0?1:F,k,z)};
g.A.seekToStreamTime=function(F,k,z,x){var D=this.app;k=k===void 0?!0:k;var e=D.CN(1),C=0;e&&e.getStreamTimeOffset()&&!e.Hj()&&(C=e.getStreamTimeOffset());bm(D,F-C,k,z,1,x)};
g.A.getStreamTimeOffset=function(){return this.app.Pj().getStreamTimeOffset()};
g.A.seekToLiveHead=function(F,k){var z=this.app.Pj().getVideoData();z&&z.isLivePlayback&&bm(this.app,Infinity,F,k,1)};
g.A.requestSeekToWallTimeSeconds=function(F,k){this.app.Pj().a5(F,k)};
g.A.Q3Q=function(F,k,z,x,D){this.seekTo(F,k,z,x===void 0?1:x,D)};
g.A.LBk=function(F,k,z,x){this.seekBy(F,k,z,x,1)};
g.A.setVolume=function(F,k){this.OM(F,k===void 0?!0:k)};
g.A.mute=function(F){this.Ub(F===void 0?!0:F)};
g.A.unMute=function(F){this.l9(F===void 0?!0:F)};
g.A.syncVolume=function(){var F=HyH(this.app);tm(this.app,{volume:F.volume,muted:F.muted},!1)};
g.A.getAvailableQualityLabels=function(){return g.tW(this.app.Pj().hI(),function(F){return F.qualityLabel})};
g.A.channelSubscribed=function(){this.ZQ("SUBSCRIBE",this.app.uu().Wz)};
g.A.channelUnsubscribed=function(){this.ZQ("UNSUBSCRIBE",this.app.uu().Wz)};
g.A.setScreenLayer=function(F){this.app.setScreenLayer(F)};
g.A.getCurrentPlaylistSequence=function(){return this.app.A4().getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.A.getPlaylistSequenceForTime=function(F){return this.app.A4().getPlaylistSequenceForTime(F)};
g.A.shouldSendVisibilityState=function(){return!0};
g.A.confirmYpcRental=function(){this.app.Pj().mE("ypc_clickwrap")};
g.A.setHomeGroupInfo=function(F){this.app.C().homeGroupInfo=F};
g.A.setConnectedRemoteApps=function(F){this.app.C().sF=F};
g.A.setLivingRoomAppMode=function(F){this.app.C().livingRoomAppMode=Cu("LIVING_ROOM_APP_MODE_UNSPECIFIED",F,WWI)};
g.A.setEnablePrivacyFilter=function(F){this.app.C().enablePrivacyFilter=F===void 0?!1:F};
g.A.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.A.addUtcCueRange=function(F,k,z,x,D){return Tq6(this.app,F,k,z,x,D)};
g.A.dJk=function(F){F=F===void 0?1:F;var k=this.O4(F);if(F=this.app.CN(F)){F=F.getVideoData();k.hasProgressBarBoundaries=F.hasProgressBarBoundaries();k.isPremiere=F.isPremiere;k.itct=F.Xf;k.playerResponseCpn=F.playerResponseCpn;var z;var x=F.hasProgressBarBoundaries()&&((z=F.progressBarStartPosition)==null?0:z.utcTimeMillis)?Ag(F.progressBarStartPosition.utcTimeMillis):null;k.progressBarStartPositionUtcTimeMillis=x;var D;z=F.hasProgressBarBoundaries()&&((D=F.progressBarEndPosition)==null?0:D.utcTimeMillis)?
Ag(F.progressBarEndPosition.utcTimeMillis):null;k.progressBarEndPositionUtcTimeMillis=z;k.ypcOriginalItct=F.sG;k.ypcPreview=F.ypcPreview;k.paidContentOverlayText=J8R(F);k.paidContentOverlayDurationMs=y8C(F);F.Y&&Tf(F.Y)&&(k.usingLocalMedia="true");k.transitionEndpointAtEndOfStream=F.transitionEndpointAtEndOfStream}return k};
g.A.getAdState=function(){return this.app.getAdState()};
g.A.isNotServable=function(F){if(F!==this.app.config.args.video_id)return!1;var k=(F=this.app.Pj().getPlayerState())?F.YA:null;return!!(F&&k&&g.n(F,128)&&O$9(k.errorCode)===5)};
g.A.supportsGaplessAudio=function(){return this.app.C().supportsGaplessAudio()};
g.A.supportsGaplessShorts=function(){return this.app.C().supportsGaplessShorts()};
g.A.enqueueVideoByPlayerVars=function(F,k,z,x){z=z===void 0?Infinity:z;this.app.enqueueVideoByPlayerVars(F,k,z,x===void 0?"":x)};
g.A.clearQueue=function(){this.app.clearQueue()};
g.A.N4=function(){return g.mJ(this)};
g.A.sendAbandonmentPing=function(){var F;(F=this.app.A4())==null||F.sendAbandonmentPing()};
g.A.setAutonavState=function(F,k){k=k===void 0?!1:k;if(this.V("web_player_autonav_use_server_provided_state")&&!k&&(k=this.app.uu(),k==null?0:KK(k))){if(this.V("web_player_autonav_server_provided_state_pause_killswitch"))return;if(F===3)k.autonavState!==3&&(k.J0=k.autonavState);else if(k.J0!==void 0)F=k.J0,k.J0=void 0;else return}U06(this.app,F)};
g.A.setAutonav=function(F,k){this.setAutonavState(F?2:1,k===void 0?!1:k)};
g.A.setLoopRange=function(F){this.app.setLoopRange(F)};
g.A.getLoopRange=function(){return this.app.getLoopRange()};
g.A.hasSupportedAudio51Tracks=function(){return this.app.Pj().hasSupportedAudio51Tracks()};
g.A.setUserAudio51Preference=function(F,k){this.app.Pj().setUserAudio51Preference(F,k===void 0?!1:k)};
g.A.getUserAudio51Preference=function(){return this.app.Pj().getUserAudio51Preference()};
g.A.setProximaLatencyPreference=function(F){this.app.Pj().setProximaLatencyPreference(F)};
g.A.getProximaLatencyPreference=function(){return this.app.Pj().getProximaLatencyPreference()};
g.A.isProximaLatencyEligible=function(){return this.app.Pj().isProximaLatencyEligible()};
g.A.getAppState=function(){return this.app.getAppState()};
g.A.updateLastActiveTime=function(){ct()};
g.A.setBlackout=function(F){this.app.setBlackout(F)};
g.A.setUserEngagement=function(F){this.app.C().lJ!==F&&(this.app.C().lJ=F,this.app.Pj().HC())};
g.A.updateSubtitlesUserSettings=function(F,k){k=k===void 0?!0:k;g.Qt(this.app.iL()).JN(F,k)};
g.A.getCaptionWindowContainerId=function(){var F=g.Qt(this.app.iL());return F?F.getCaptionWindowContainerId():""};
g.A.toggleSubtitlesOn=function(){var F=g.Qt(this.app.iL());F&&F.PH()};
g.A.isSubtitlesOn=function(){var F=g.Qt(this.app.iL());return F?F.isSubtitlesOn():!1};
g.A.getPlayerResponse=function(F){return(F=this.app.CN(F))?F.getVideoData().getPlayerResponse():null};
g.A.pY=function(){return this.getPlayerResponse(1)};
g.A.getEmbeddedPlayerResponse=function(){return this.app.Pj().getVideoData().getEmbeddedPlayerResponse()};
g.A.getWatchNextResponse=function(F){return(F=this.app.CN(F))?F.getVideoData().getWatchNextResponse():null};
g.A.P$U=function(){return this.getWatchNextResponse(1)};
g.A.getHeartbeatResponse=function(F){return(F=this.app.CN(F))?F.getVideoData().getHeartbeatResponse():null};
g.A.Nc=function(){return this.getHeartbeatResponse(1)};
g.A.getStoryboardFrame=function(F,k){var z=this.app.SU();if(!z)return null;k=z.levels[k];return k?(F=g.at(k,F))?{column:F.column,columns:F.columns,height:F.Wv,row:F.row,rows:F.rows,url:F.url,width:F.z5}:null:null};
g.A.getStoryboardFrameIndex=function(F,k){var z=this.app.SU();if(!z)return-1;k=z.levels[k];if(!k)return-1;F-=this.Hj();return k.P9(F)};
g.A.getStoryboardLevel=function(F){var k=this.app.SU();return k?(k=k.levels[F])?{index:F,intervalMs:k.Y,maxFrameIndex:k.sV(),minFrameIndex:k.cw()}:null:null};
g.A.getNumberOfStoryboardLevels=function(){var F=this.app.SU();return F?F.levels.length:0};
g.A.b8=function(){return this.getAudioTrack(1)};
g.A.getAudioTrack=function(F){return(F=this.app.CN(F))?F.getAudioTrack():this.app.getVideoData().fb};
g.A.uX=function(){var F=this.app.CN();return F?F.uX():null};
g.A.setAudioTrack=function(F,k,z){this.fH()===3&&this.app.E7().D_.o4(F);return(z=this.app.CN(z))?z.o4(F,k):!1};
g.A.t5J=function(F,k){return this.setAudioTrack(F,k,1)};
g.A.VG=function(){return this.getAvailableAudioTracks(1)};
g.A.getAvailableAudioTracks=function(F){return this.app.CN(F).getAvailableAudioTracks()};
g.A.getMaxPlaybackQuality=function(){var F=this.app.Pj();return F.getVideoData().L?N4(F.B4()):"unknown"};
g.A.getUserPlaybackQualityPreference=function(){return this.app.Pj().getUserPlaybackQualityPreference()};
g.A.getSubtitlesUserSettings=function(){var F=g.Qt(this.app.iL());return F?F.KY():null};
g.A.resetSubtitlesUserSettings=function(){g.Qt(this.app.iL()).C7_()};
g.A.setMinimized=function(F){this.app.setMinimized(F)};
g.A.setOverlayVisibility=function(F){this.publish("overlayvisibilitychange",F)};
g.A.setInlinePreview=function(F){this.app.setInlinePreview(F)};
g.A.setSqueezeback=function(F){this.app.setSqueezeback(F)};
g.A.setGlobalCrop=function(F){this.app.Ka().setGlobalCrop(F)};
g.A.setAppFullscreen=function(F){this.app.F9(F?4:0)};
g.A.qB=function(){return this.app.qB()};
g.A.getVisibilityState=function(){return this.qB().getVisibilityState(this.Pc(),this.pu()||g.O5(this.app.C()),this.isMinimized(),this.isInline(),this.app.NB(),this.app.x8(),this.app.Hd(),this.app.MX())};
g.A.isMutedByMutedAutoplay=function(){return this.app.aQ};
g.A.isMutedByEmbedsMutedAutoplay=function(){return TL(this.app)};
g.A.setInternalSize=function(F,k){this.app.Ka().setInternalSize(new g.BB(F,k))};
g.A.Hj=function(F){return(F=this.app.CN(F))?F.Hj():0};
g.A.isMinimized=function(){return this.app.isMinimized()};
g.A.NB=function(){return this.app.NB()};
g.A.Pc=function(){var F=this.app.A4();return!!F&&F.Pc()};
g.A.setSafetyMode=function(F){this.app.C().enableSafetyMode=F};
g.A.canPlayType=function(F){return this.app.canPlayType(F)};
g.A.updatePlaylist=function(F){if(F){var k=this.getPlaylistId(),z=!1;k&&k!==F.list&&(z=!0);F.external_list!==void 0&&(this.app.GO=eZ(!1,F.external_list));var x=F.video;(k=this.app.getPlaylist())&&!z?this.isFullscreen()&&((z=x[k.index])&&z.encrypted_id!==g.A_(k).videoId||(F.index=k.index)):rT(this.app,{list:F.list,index:F.index,playlist_length:x.length});gox(this.app.getPlaylist(),F);this.YN("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.A.updateVideoData=function(F,k){g.nK(this.app.Pj().getVideoData(),F,k)};
g.A.updateEnvironmentData=function(F){dw(this.app.C(),F,!1)};
g.A.FBk=function(F){this.app.sendVideoStatsEngageEvent(F,1)};
g.A.productsInVideoVisibilityUpdated=function(F){this.publish("changeProductsInVideoVisibility",F)};
g.A.isAtLiveHead=function(F,k){return this.app.isAtLiveHead(F,k===void 0?!0:k)};
g.A.getVideoAspectRatio=function(){return this.app.Ka().getVideoAspectRatio()};
g.A.getPreferredQuality=function(){var F=this.app.A4();return F?F.getPreferredQuality():"unknown"};
g.A.getPlaybackQualityLabel=function(F){if(F=this.app.CN(F)){var k,z;return((z=(k=F.getVideoData().L)==null?void 0:k.video)==null?void 0:z.qualityLabel)||""}return""};
g.A.setPlaybackQualityRange=function(F,k,z,x){(x=this.app.CN(x))&&x.Zu(g.pt(F,k||F,!0,"m"),!0,z)};
g.A.eEJ=function(F,k,z){this.setPlaybackQualityRange(F,k,z,1)};
g.A.onAdUxClicked=function(F,k){this.publish("aduxclicked",F,k)};
g.A.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.A.dispatchReduxAction=function(F){g.ok.dispatch(F)};
g.A.highlightSettingsMenuItem=function(F){this.publish("highlightSettingsMenu",F)};
g.A.openSettingsMenuItem=function(F){this.publish("openSettingsMenuItem",F)};
g.A.Au=function(F,k){this.state.L.subscribe(F,k)};
g.A.qhp=function(F,k){this.state.L.unsubscribe(F,k)};
g.A.VQ=function(F,k){this.cueVideoByPlayerVars(F,k===void 0?1:k)};
g.A.Xj$=function(F,k,z,x){this.loadVideoByPlayerVars(F,k,z===void 0?1:z,x)};
g.A.TRa=function(F,k,z,x){this.preloadVideoByPlayerVars(F,k===void 0?1:k,z,x)};
g.A.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.A.DT=function(){return g.mJ(this).DT()};
g.A.hH=function(){return g.mJ(this).hH()};
g.A.Qt=function(){return g.mJ(this).Qt()};
g.A.aI=function(){return this.N4().aI()};
g.A.fd=function(){var F=g.v6.apply(0,arguments),k;(k=this.aI()).fd.apply(k,g.r(F))};
g.A.Ei=function(){this.aI().Ei()};
g.A.nR=function(){this.aI().nR()};
g.A.Wl=function(){this.aI().hide()};
g.A.Uv=function(F,k,z,x,D,e,C,p){this.aI().Uv(F,k,z,x,D,e,C,p)};
g.A.Kl=function(F,k){this.aI().Kl(F,k)};
g.A.Bv=function(F,k,z,x,D){this.N4().Bv(F,k,z,x,D)};
g.A.k5=function(F){this.aI().setEnabled(F)};
g.A.Qx=function(F,k){this.N4().Qx(F,k)};
g.A.Ce=function(F,k){this.N4().Ce(F,k)};
g.A.AL=function(F,k){this.N4().AL(F,k)};
g.A.Ec=function(){this.N4().Ec()};
g.A.xe=function(F,k){this.N4().xe(F,k)};
g.A.DP=zp(4);g.A.sR=zp(6);g.A.XF=zp(9);g.A.mL=zp(12);g.A.renderChapterSeekingAnimation=function(F,k,z){this.N4().renderChapterSeekingAnimation(F,k,z)};
g.A.ih=function(){this.N4().ih()};
g.A.getWebPlayerContextConfig=function(){return this.app.C().getWebPlayerContextConfig()};
g.A.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")};
g.A.eg=function(){var F=this.app.A4();return F?F.eg():""};g.T(g.tM,g.r5);g.A=g.tM.prototype;g.A.AR=function(F,k,z,x,D,e,C){return this.app.AR(F,k,z,x,D,e,C)};
g.A.jd=function(){return this.app.jd()};
g.A.Ql=zp(14);g.A.iL=function(){return this.app.iL()};
g.A.V6=function(){var F=this.iL().hv.get("endscreen");return!!F&&F.V6()};
g.A.getRootNode=function(){return this.Ka().element};
g.A.C=function(){return this.app.C()};
g.A.X8=zp(18);g.A.Bl=function(F){return this.app.Bl(F)};
g.A.sS=function(){var F;return((F=g.mJ(this))==null?void 0:F.sS())||null};
g.A.Pd=function(){var F;return(F=this.app.A4())==null?void 0:F.Pd()};
g.A.getPlayerStateObject=function(F){return this.app.getPlayerStateObject(F)};
g.A.Ka=function(){return this.app.Ka()};
g.A.getPlaylist=function(){return this.app.getPlaylist()};
g.A.getVideoData=function(F,k){k=k===void 0?!1:k;var z=this.app.CN(F);if(!z)return null;z=z.getVideoData();if(k)var x=z;else if(z.enableServerStitchedDai&&F===2||g.Mk(z)&&F!==1)a:{z=this.app;k=z.getVideoData();if(z.kN){F=z.kN;z=z.getCurrentTime();if(F.uf)var D=void 0;else{var e=void 0;F.tp&&(e=F.j.get(F.tp));if(!e){e=Brx(F,z*1E3);var C=(D=e)==null?void 0:D.cpn;F.tp?C&&F.tp!==C&&F.LN({cpcnm:C+"_"+F.tp,cmt:z.toFixed(3)}):F.LN({cpcna:C,cmt:z.toFixed(3)})}D=(x=e)==null?void 0:x.videoData}k=D||k}else if(z.jz&&
z.A4()){x=z.jz.getVideoData(F);break a}x=k}else x=z;return x};
g.A.cD=function(){var F;return((F=this.app.A4())==null?void 0:F.cD())||null};
g.A.SU=function(F){return this.app.SU(F)};
g.A.MX=function(){return this.app.MX()};
g.A.isHdr=function(){var F=this.app.A4();return F?F.isHdr():!1};
g.A.Db=function(){return this.app.Db()};
g.A.isEmbedsShortsMode=function(){var F=g.mJ(this),k=this.getVideoData();F=F?F.F_:this.getPlayerSize();var z=!!this.getPlaylist();return!(!k||!k.isEmbedsShortsMode(new g.BB(F.width,F.height),z))};
g.A.OR=function(F){this.app.OR(F)};
g.A.qk=function(F,k,z,x,D){this.app.iG(F,k,z,x,D)};
g.A.Sb=function(F,k){this.app.Sb(F,k)};
g.A.playVideo=function(F,k){try{if(this.getPresentingPlayerType()===3){this.app.E7().D_.playVideo();return}if(!F&&this.getPresentingPlayerType()===2){var z=rm(this.app.iL());if(z&&p6V(z))return}}catch(x){g.JV(x)}this.app.playVideo(F,k)};
g.A.stopVideo=function(F){this.app.CN(F).stopVideo()};
g.A.jh=function(F){this.app.CN(F).jh()};
g.A.addEventListener=function(F,k){this.state.U.subscribe(F,k)};
g.A.removeEventListener=function(F,k){this.state.U.unsubscribe(F,k)};
g.A.m6=function(F){this.app.m6(F)};
g.A.setPlaybackQuality=function(F,k){this.setPlaybackQualityRange(F,F,k)};
g.A.hI=function(){var F={},k=this.app.A4().hI();k=g.l(k);for(var z=k.next();!z.done;z=k.next())z=z.value,F[z.quality]=z;return F};
g.A.j3=function(){return this.app.A4().j3()};
g.A.JS=zp(24);g.A.oe=function(F){this.app.oe(F);F&&U06(this.app,F)};
g.A.getVideoUrl=function(F,k,z,x){var D=this.getPresentingPlayerType(),e=D===2;if(x&&e||D===3)e=!1,D=1;x=this.getVideoData(D);if(!x)return"";var C;F||x.isLivePlayback||(C=Math.floor(this.getCurrentTime(D)));F=e?void 0:this.getPlaylistId()||void 0;k&&F==="WL"&&(F=void 0);return this.app.getVideoUrl(x.videoId,F,C,k,z)};
g.A.gw=zp(26);g.A.jj=zp(32);g.A.PO=function(F){var k;(k=this.app.A4())==null||k.PO(F)};
g.A.tH=zp(38);g.A.vc=zp(44);g.A.k8=function(F,k){this.iL().k8(F,k)};
g.A.gO=function(){var F=g.UL(this.iL());return!!F&&F.gO()};
g.A.Tz=function(){var F=g.UL(this.iL());return!!F&&F.Tz()};
g.A.CQ=function(F,k,z){var x=g.UL(this.iL());x&&x.CQ(F,k,z)};
g.A.pQ=zp(45);g.A.Vm=function(){var F;(F=this.app.A4())==null||F.Pr()};
g.A.uw=function(F){this.YN("onVideoAreaChange");this.YN(F?"onShowControls":"onHideControls")};
g.A.CF=function(F,k){var z=g.mJ(this);if(z)return z.CF(F,k);F=this.app.Ka().eU();return new g.eU(0,0,F.width,F.height)};
g.A.ZH=function(){var F=this.iL().hv.get("heartbeat");return!!F&&F.ZH()};
g.A.xA=function(){var F=this.C();if(F.cR||F.disableSeek)return!1;var k=this.app.A4();if(!k)return!1;var z=k.getVideoData();if(!z.ut()||g.Uh(z)||this.getPresentingPlayerType()===2&&!this.app.P5()||z.w3()&&this.getPresentingPlayerType(!0)===2||k.wO()&&this.getPresentingPlayerType()!==3)return!1;F=g.aB(F);return g.N5(F)&&!z.Hx||TL(this.app)?!1:!0};
g.A.p5=function(){var F=this.app.A4();return F?F.b_():!1};
g.A.isLifaAdPlaying=function(){var F,k=(F=this.getVideoData())==null?void 0:F.w3();return k?this.getPresentingPlayerType(k)===2:!1};
g.A.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.A.pg=function(){var F;(F=this.app.A4())==null||F.pg()};
g.A.sendVideoStatsEngageEvent=function(F,k,z){this.app.sendVideoStatsEngageEvent(F,z,k)};
g.A.Li=function(F,k,z){this.app.L0(F,k,z)};
g.A.h$=function(F,k){this.app.c$(F,k)};
g.A.H7=function(F,k){v2(this.app,F,k)};
g.A.fu=zp(49);g.A.J3=function(F){return this.app.J3(F)};
g.A.mE=function(F,k){var z;(z=this.app.CN(k))==null||z.mE(F)};
g.A.wO=function(){var F=this.app.CN();return F?F.wO():!0};
g.A.Vw=function(){var F=this.getVideoData();return!!F&&(F.Vw()||!!F.hlsFormats||!!F.fJ)};
g.A.getPlaybackRate=function(){return this.app.Pj().getPlaybackRate()};
g.A.setPlaybackRate=function(F,k){this.app.setPlaybackRate(F,k)};
g.A.S9=function(){return this.app.S9()};
g.A.g$=function(){return this.app.g$()};
g.A.y_=function(F){return this.app.y_(F)};
g.A.createClientVe=function(F,k,z,x){this.C().RU&&this.app.n0.createClientVe(F,k,z,x===void 0?!1:x)};
g.A.createServerVe=function(F,k,z){this.C().RU&&this.app.n0.createServerVe(F,k,z===void 0?!1:z)};
g.A.setTrackingParams=function(F,k){this.C().RU&&this.app.n0.setTrackingParams(F,k)};
g.A.logClick=function(F,k){this.C().RU&&(this.app.n0.click(F,k),this.publish("veClickLogged",F))};
g.A.logVisibility=function(F,k,z){this.C().RU&&this.app.n0.Yj(F,k,z)};
g.A.hasVe=function(F){return this.C().RU?this.app.n0.hasVe(F):!1};
g.A.destroyVe=function(F){this.C().RU&&this.app.n0.destroyVe(F)};
g.A.getPresentingPlayerType=function(F){return this.app.getPresentingPlayerType(F)};
g.A.rK=function(){this.app.rK()};
g.A.xO=zp(51);g.A.ye=function(F){this.app.ye(F)};
g.A.OB=function(){this.app.OB()};
g.A.DX=function(){return this.app.DX()};
g.A.addPlayerResponseForAssociation=function(F){this.app.addPlayerResponseForAssociation(F)};
g.A.finishSegmentByCpn=function(F,k,z){return this.app.finishSegmentByCpn(F,k,z)};
g.A.aK=function(F,k,z,x,D,e,C,p){return this.app.aK(F,k,z,x,D,e,C,p)};
g.A.ww=function(F,k,z,x,D,e,C,p){return this.app.ww(F,k,z,x,D,e,C,p)};
g.A.IF=function(){return this.app.IF()};
g.A.LB=function(F){this.app.LB(F)};
g.A.Td=function(F,k){k=k===void 0?Infinity:k;this.app.Td(F===void 0?-1:F,k)};
g.A.b9=function(F){var k;(k=g.Qt(this.iL()))==null||k.b9(F)};
g.A.zi=function(F,k,z){this.app.zi(F,k,z)};
g.A.BO=function(){return this.app.BO()};
g.A.aP=function(F,k,z){this.app.aP(F,k,z===void 0?0:z)};
g.A.gi=function(){return this.app.gi()};
g.A.P5=function(){return this.app.P5()};
g.A.uF=function(F,k,z){return this.app.uF(F,k,z)};
g.A.UK=function(F,k,z,x){z=z===void 0?!1:z;var D;(D=this.app.CN(x))==null||D.UK(F,k,z)};
g.A.f_=function(F,k){this.publish("aduxmouseover",F,k)};
g.A.Aa=function(F,k){this.publish("aduxmouseout",F,k)};
g.A.tZ=function(F,k){this.publish("muteadaccepted",F,k)};
g.A.RF=function(){return this.app.Ka().RF()};
g.A.oV=function(F){this.app.Ka().oV(F)};
g.A.xF=function(F){return F?this.app.Qs():(F=this.app.A4())?F.xF():!1};
g.A.IT=function(F){this.app.IT(F)};
g.A.Rj=function(){this.app.Pj().Rj()};
g.A.bW=function(){var F;(F=this.app.A4())==null||F.bW()};
g.A.XK=function(){this.app.XK()};
g.A.getGetAdBreakContext=function(){var F=this.app.Pj();return F.getVideoData().getGetAdBreakContext(F.getCurrentTime(),F.Hj())};
g.A.Tw=function(F,k){var z;(z=this.app.A4())==null||z.Tw(F,k)};
g.A.JP=function(){var F;return((F=this.app.A4())==null?void 0:F.JP())||!1};
g.A.Cl=zp(53);g.A.oM=zp(55);g.A.uJ=function(F){var k;return((k=this.app.CN(F))==null?void 0:k.uJ())||0};var bA;g.T(Sx,Rx);Sx.prototype.a_=function(F,k){F=Rx.prototype.a_.call(this,F,k);return Object.assign({},F,this.requestHeaders)};g.T(g.yU,g.S);g.A=g.yU.prototype;g.A.h4=function(){this.La.dispose();g.S.prototype.h4.call(this)};
g.A.addCueRange=function(F){this.La.addCueRange(F)};
g.A.L0=function(F,k){this.La.L0(F,k)};
g.A.S4=function(){this.La.S4()};
g.A.mC=function(){return this.La.mC()};
g.A.OZ=function(){return this.La.OZ()};
g.A.A7=function(F){return this.La===F};
g.A.BG=function(F,k,z){this.La.Tp().Nq(F,k,z)};
g.A.Pr=function(){this.La.Vm()};
g.A.dY=function(F,k){this.La.dY(F,k)};
g.A.Tn=function(F,k){return this.La.Tn(F,k)};
g.A.Bs=function(F){this.La.Bs(F)};
g.A.SN=function(){return this.La.SN()};
g.A.getAudioTrack=function(){return this.La.getAudioTrack()};
g.A.uX=function(){return this.La.uX()};
g.A.getAvailableAudioTracks=function(){return this.La.getAvailableAudioTracks()};
g.A.hI=function(){return this.La.hI()};
g.A.j3=function(){return this.La.j3()};
g.A.Xb=function(){return this.La.Xb()};
g.A.pE=function(){return this.La.pE()};
g.A.P8=function(){return this.La.P8()};
g.A.lI=function(){return this.La.Tp().v5};
g.A.getCurrentTime=function(){return this.La.getCurrentTime()};
g.A.CE=function(){return this.La.CE()};
g.A.xv=function(){return this.La.xv()};
g.A.rH=function(F){return this.La.rH(F)};
g.A.getDuration=function(F){return this.La.getDuration(F)};
g.A.qX=function(){return this.La.qX()};
g.A.B7=function(){return this.La.B7()};
g.A.b_=function(){return this.La.b_()};
g.A.BO=function(){return this.La.BO()};
g.A.Gz=function(){return this.La.Gz()};
g.A.X8=zp(17);g.A.uJ=function(){return this.La.uJ()};
g.A.Tf=function(){return this.La.Tf()};
g.A.Sg=function(F){return this.La.Sg(F)};
g.A.S9=function(){return this.La.S9()};
g.A.MV=function(){return this.La.MV()};
g.A.oy=function(){return this.La.oy()};
g.A.Wf=function(){return this.La.Wf()};
g.A.eO=function(F,k,z){return this.La.eO(F,k,z)};
g.A.JS=zp(23);g.A.getPlaybackQuality=function(){return this.La.getPlaybackQuality()};
g.A.getPlaybackRate=function(){return this.La.getPlaybackRate()};
g.A.getPlayerState=function(){return this.La.getPlayerState()};
g.A.getPlayerType=function(){return this.La.getPlayerType()};
g.A.getPlaylistSequenceForTime=function(F){return this.La.getPlaylistSequenceForTime(F)};
g.A.y_=function(F){return this.La.y_(F)};
g.A.eg=function(){return this.La.eg()};
g.A.getPreferredQuality=function(){return this.La.getPreferredQuality()};
g.A.TC=function(){return this.La.TC()};
g.A.getProximaLatencyPreference=function(){return this.La.getProximaLatencyPreference()};
g.A.B4=function(){return this.La.B4()};
g.A.SU=function(){return this.getVideoData().SU()};
g.A.getStoryboardFormat=function(){return this.getVideoData().getStoryboardFormat()};
g.A.getStreamTimeOffset=function(){return this.La.getStreamTimeOffset()};
g.A.Ao=function(){return this.La.Ao()};
g.A.Hj=function(){return this.La.Hj()};
g.A.Pd=function(){return this.La.Pd()};
g.A.getUserAudio51Preference=function(){return this.La.getUserAudio51Preference()};
g.A.getUserPlaybackQualityPreference=function(){return this.La.getUserPlaybackQualityPreference()};
g.A.getVideoData=function(){return this.La.getVideoData()};
g.A.cD=function(){return this.La.cD()};
g.A.xP=function(){return this.La.xP()};
g.A.getVideoLoadedFraction=function(){if(g.M8(this.getVideoData()))return 1;var F=this.La.S9();return F?F.yw():0};
g.A.gJ=function(F){this.La.gJ(F)};
g.A.handleError=function(F){this.La.handleError(F)};
g.A.nU=function(F){this.La.nU(F)};
g.A.KH=function(F){this.La.KH(F)};
g.A.mK=function(F){return gO5(this.La.Ap(F))};
g.A.fu=zp(48);g.A.wO=function(){return this.La.wO()};
g.A.hasSupportedAudio51Tracks=function(){return this.La.hasSupportedAudio51Tracks()};
g.A.zf=function(){return this.La.zf()};
g.A.Pc=function(){return this.La.Pc()};
g.A.isAtLiveHead=function(F,k){return this.La.isAtLiveHead(F,k)};
g.A.Br=function(){return this.La.Br()};
g.A.isGapless=function(){return this.La.isGapless()};
g.A.isHdr=function(){return this.La.isHdr()};
g.A.It=function(){return this.La.It()};
g.A.DH=function(){return this.La.DH()};
g.A.JP=function(){return this.La.JP()};
g.A.isProximaLatencyEligible=function(){return this.La.isProximaLatencyEligible()};
g.A.gi=function(){return this.La.gi()};
g.A.AP=function(F){var k;return!((k=this.La.aU)==null||!k.AP(F))};
g.A.rz=function(){return this.La.rz()};
g.A.Gt=function(F,k,z,x,D,e){alD(this.La.g$(),F,k,z,x,D,e)};
g.A.AU=function(){this.La.AU()};
g.A.X2=function(F){this.La.X2(F)};
g.A.yY=function(F){this.La.yY(F)};
g.A.FW=function(){this.La.FW()};
g.A.O7=function(){this.La.O7()};
g.A.nh=function(){this.La.nh()};
g.A.qF=function(){this.La.qF()};
g.A.WP=function(F){this.La.WP(F)};
g.A.Qa=zp(60);g.A.jj=zp(31);g.A.Xy=function(){this.La.Xy()};
g.A.DC=function(F,k,z,x,D,e,C,p){this.La.Tp().fh(F,k,z,x,D,e,C,p)};
g.A.pauseVideo=function(F){this.La.pauseVideo(F)};
g.A.r_=function(F){this.La.r_(F)};
g.A.KQ=function(F){this.La.KQ(F)};
g.A.playVideo=function(F,k){return this.La.playVideo(F,k)};
g.A.Sw=function(F,k,z,x,D){this.La.Sw(F,k,z,x,D)};
g.A.tH=zp(37);g.A.vc=zp(43);g.A.eS=function(F,k,z,x,D){this.La.eS(F,k,z,x,D)};
g.A.UK=function(F,k,z){this.La.UK(F,k,z)};
g.A.PO=function(F){this.La.PO(F)};
g.A.Tw=function(F,k){this.La.Ap().Tw(F,k)};
g.A.SC=function(F,k,z){this.La.SC(F,k,z)};
g.A.He=function(F){this.La.He(F)};
g.A.gs=function(F,k,z){this.La.gs(F,k,z)};
g.A.XH=function(F){this.La.XH(F)};
g.A.TV=function(F,k){this.La.TV(F,k)};
g.A.W$=function(F,k,z,x,D,e,C,p){this.La.W$(F,k,z,x,D,e,C,p)};
g.A.wk=function(){OZ(this.La.Ap())};
g.A.Su=function(F){this.La.Su(F)};
g.A.jh=function(F,k){this.La.jh(F,k)};
g.A.qe=function(F,k){this.La.qe(F,k)};
g.A.removeCueRange=function(F){this.La.removeCueRange(F)};
g.A.c$=function(F){this.La.c$(F)};
g.A.H7=function(F){return this.La.m$.H7(F)};
g.A.ew=function(F){this.La.ew(F)};
g.A.VL=function(F,k,z){this.La.VL(F,k,z)};
g.A.AX=function(){this.La.AX()};
g.A.Dl=function(){this.La.m$.reset()};
g.A.GV=function(){this.La.GV()};
g.A.a5=function(F,k){this.La.a5(F,k)};
g.A.VS=function(){this.La.VS()};
g.A.seekTo=function(F,k){this.La.seekTo(F,k)};
g.A.sendAbandonmentPing=function(){this.La.sendAbandonmentPing()};
g.A.sendVideoStatsEngageEvent=function(F,k){this.La.sendVideoStatsEngageEvent(F,k)};
g.A.WW=function(F,k){var z=this.La.Tp();if(z.v5!==F){var x=z.Ap(z.v5),D=z.Ap(F);z.v5=F;D!==x&&(x.qoe&&(F=x.qoe,F.provider.YG.Jp()&&F.UK("ssap",{qoesus:"1",vid:F.provider.videoData.videoId}),k&&(k=g.fA(F.provider),NhM(F,k,"SU")),isNaN(F.S)||g.QL(F.S)),D.resume())}};
g.A.oa=function(F,k){this.La.oa(F,k)};
g.A.setLoop=function(F){this.La.setLoop(F)};
g.A.Ml=function(){this.La.Ml()};
g.A.setMediaElement=function(F){this.La.setMediaElement(F)};
g.A.k0=function(F,k,z,x){this.La.k0(F,k,z,x)};
g.A.setPlaybackRate=function(F){this.La.setPlaybackRate(F)};
g.A.qk=function(F,k,z,x,D,e){this.La.qk(F,k,z,x,D,e)};
g.A.nB=function(F,k){this.La.nB(F,k)};
g.A.mE=function(F){this.La.mE(F)};
g.A.setProximaLatencyPreference=function(F){this.La.setProximaLatencyPreference(F)};
g.A.xn=function(F){this.La.xn(F)};
g.A.LI=function(){this.La.LI()};
g.A.Do=function(F){this.La.Do(F)};
g.A.setUserAudio51Preference=function(F,k){this.La.setUserAudio51Preference(F,k)};
g.A.Zu=function(F,k,z){this.La.Zu(F,k,z)};
g.A.XZ=function(){return this.La.XZ()};
g.A.pg=function(){this.La.pg()};
g.A.xF=function(){return this.La.xF()};
g.A.cn=function(F){this.La.cn(F)};
g.A.h2=function(){this.La.h2()};
g.A.t2=function(F){this.La.t2(F)};
g.A.stopVideo=function(){this.La.stopVideo()};
g.A.subscribe=function(F,k,z){return this.La.subscribe(F,k,z)};
g.A.Ij=function(F,k){this.La.Ij(F,k)};
g.A.togglePictureInPicture=function(){this.La.togglePictureInPicture()};
g.A.J3=function(F,k){return this.La.m$.J3(F,k)};
g.A.unsubscribe=function(F,k,z){return this.La.unsubscribe(F,k,z)};
g.A.M_=function(F,k){this.La.M_(F,k)};
g.A.o4=function(F,k){return this.La.o4(F,k)};
g.A.Rj=function(){this.La.Rj()};
g.A.HC=function(){this.La.HC()};
g.A.Vs=function(F){this.La.Vs(F)};
g.A.bW=function(){this.La.bW()};g.T(g.RL,g.Q7);g.A=g.RL.prototype;g.A.show=function(){var F=this.ud();g.Q7.prototype.show.call(this);this.t4&&(this.B.N(window,"blur",this.bL),this.B.N(g5(this),"click",this.YS));F||this.publish("show",!0)};
g.A.hide=function(){var F=this.ud();g.Q7.prototype.hide.call(this);dx9(this);F&&this.publish("show",!1)};
g.A.NR=function(F,k){this.L=F;this.fade.show();k?(this.K||(this.K=this.B.N(this.T,"appresize",this.rb)),this.rb()):this.K&&(this.B.er(this.K),this.K=void 0)};
g.A.cQ=function(){this.L&&this.element&&(this.L.getAttribute("aria-haspopup"),this.L.setAttribute("aria-expanded","true"),this.focus())};
g.A.rb=function(){var F=g.mJ(this.T);this.L&&F.Bv(this.element,this.L)};
g.A.bL=function(){var F=this.ud();dx9(this);this.fade.hide();F&&this.publish("show",!1)};
g.A.YS=function(F){var k=vW(F);k&&(g.N_(this.element,k)||this.L&&g.N_(this.L,k)||!g.Pu(F))||this.bL()};
g.A.ud=function(){return this.Q2&&this.fade.state!==4};g.T(nY,g.RL);nY.prototype.NR=function(){g.RL.prototype.NR.call(this);this.dialog.focus()};g.T(g.LY,g.Q7);g.LY.prototype.setIcon=function(F){this.updateValue("icon",F)};
g.LY.prototype.updateValue=function(F,k){g.Q7.prototype.updateValue.call(this,F,k);this.publish("size-change")};g.EA={EA:15,AR_:14,tgf:13,YJ:12,Sf:11,Fe:10,eP:9,QO:8,AUDIO:7,SUBTITLES:6,SLEEP_TIMER:5,FU:4,PX:3,mEK:2,REMOTE:1,FAK:0,15:"STABLE_VOLUME",14:"REMOTE_SELECT",13:"SIZE",12:"MINIPLAYER",11:"THREED",10:"AUTONAV",9:"CINEMATIC",8:"ANNOTATIONS",7:"AUDIO",6:"SUBTITLES",5:"SLEEP_TIMER",4:"SPEED",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.T(KY,g.LY);KY.prototype.fN=function(F){this.L&&this.T.logVisibility(this.element,this.Y&&F)};
KY.prototype.j=function(){var F,k,z=(F=this.T.getVideoData())==null?void 0:(k=F.accountLinkingConfig)==null?void 0:k.linked;if(z&&!this.Y){var x;F=(x=this.T.getVideoData())==null?void 0:x.accountLinkingConfig;this.setIcon(vx());var D;g.Ma(this,Wv(F==null?void 0:(D=F.menuData)==null?void 0:D.connectedMenuLabel));var e,C,p;this.U=new nY(this.T,Wv(F==null?void 0:(e=F.menuData)==null?void 0:e.connectedDialogTitle),Wv(F==null?void 0:(C=F.menuData)==null?void 0:C.connectedDialogMessage),Wv(F==null?void 0:
(p=F.menuData)==null?void 0:p.confirmButtonText));g.b(this,this.U);var E;x=(F==null?void 0:(E=F.menuData)==null?void 0:E.trackingParams)||null;(this.L=!!x)&&this.T.setTrackingParams(this.element,x);this.Sz.Iy(this);this.Y=!0}else!z&&this.Y&&(this.Sz.N$(this),this.Y=!1)};
KY.prototype.onClick=function(){this.L&&this.T.logClick(this.element);this.Sz.bL();this.U&&this.U.NR()};g.T(FC,g.S);FC.prototype.V=function(F){return this.api.V(F)};g.T(k0,FC);k0.prototype.onVideoDataChange=function(F){if(!F.accountLinkingConfig){var k,z=(k=F.getPlayerResponse())==null?void 0:k.accountLinkingConfig;F.accountLinkingConfig=z}var x;if(k=(x=F.accountLinkingConfig)==null?void 0:x.alsParam)F.c9=k};
k0.prototype.setAccountLinkState=function(F){this.api.getVideoData().c9=F;this.api.Vm()};
k0.prototype.updateAccountLinkingConfig=function(F){var k=this.api.getVideoData(),z=k.accountLinkingConfig;z&&(z.linked=F);this.api.publish("videodatachange","dataupdated",k,this.api.getPresentingPlayerType())};g.T(zu,FC);
zu.prototype.L=function(F){var k=F.getId(),z=this.api.getVideoData(1),x=!this.api.isInline();if(!z.inlineMetricEnabled||x){if(k==="part2viewed"){if(z.gT&&g.MK(z.gT),z.Ss&&x0(this,z.Ss),z.pj)for(var D={CPN:this.api.getVideoData().clientPlaybackNonce},e=g.l(z.pj),C=e.next();!C.done;C=e.next())x0(this,g.cN(C.value,D))}else k==="conversionview"?this.api.Rj():k==="engagedview"&&z.sF&&(D={CPN:this.api.getVideoData().clientPlaybackNonce},g.MK(g.cN(z.sF,D)));z.Od&&(D=z.Od,e=F.getId(),D=el(D,{label:e}),g.MK(D));
switch(k){case "videoplaytime25":z.wb&&x0(this,z.wb);z.zs&&io(this,z.zs);z.Xj&&g.MK(z.Xj);break;case "videoplaytime50":z.Bp&&x0(this,z.Bp);z.lq&&io(this,z.lq);z.vQ&&g.MK(z.vQ);break;case "videoplaytime75":z.KG&&x0(this,z.KG);z.nf&&io(this,z.nf);z.zW&&g.MK(z.zW);break;case "videoplaytime100":z.N1&&x0(this,z.N1),z.gB&&io(this,z.gB),z.L9&&g.MK(z.L9)}(D=this.api.getVideoData().Xq)&&YlC(this,D,F.getId())&&YlC(this,D,F.getId()+"gaia")}if(z.inlineMetricEnabled&&!x)switch(k){case "videoplaybackstart":var p,
E=(p=z.Cj)==null?void 0:p.Y;E&&x0(this,E);break;case "videoplayback2s":(p=(E=z.Cj)==null?void 0:E.U)&&x0(this,p);break;case "videoplayback10s":var X;(p=(X=z.Cj)==null?void 0:X.L)&&x0(this,p)}this.api.h$([F],1)};g.T(Mc5,FC);g.T(DI,g.Y);g.A=DI.prototype;
g.A.iq=function(){var F;if(F=this.T.getPresentingPlayerType()!==3&&g.aL(this.T)&&this.T.Ka().getPlayerSize().width>=400)if(F=this.uu(),this.T.C().V("client_respect_autoplay_switch_button_renderer"))F=!!F.autoplaySwitchButtonRenderer;else{var k,z,x,D;F=!!((k=F.getWatchNextResponse())==null?0:(z=k.contents)==null?0:(x=z.twoColumnWatchNextResults)==null?0:(D=x.autoplay)==null?0:D.autoplay)!==!1}if(F)this.Y||(this.Y=!0,this.Yj(this.Y),this.T.C().V("web_player_autonav_toggle_always_listen")||LpR(this),
k=this.uu(),this.K7(k.autonavState),this.T.logVisibility(this.element,this.Y));else if(this.Y=!1,this.Yj(this.Y),!this.T.C().V("web_player_autonav_toggle_always_listen"))for(this.T.C().V("web_player_autonav_toggle_always_listen"),k=g.l(this.L),z=k.next();!z.done;z=k.next())this.er(z.value)};
g.A.K7=function(F){Kpn(this)?this.isChecked=F!==1:((F=F!==1)||(g.nu(),F=g.sY("web_autonav_allow_off_by_default")&&!g.M5(0,141)&&g.LX("AUTONAV_OFF_BY_DEFAULT")?!1:!g.M5(0,140)),this.isChecked=F);fnR(this)};
g.A.onClick=function(){this.isChecked=!this.isChecked;this.T.oe(this.isChecked?2:1);fnR(this);if(Kpn(this)){var F=this.uu().autoplaySwitchButtonRenderer;this.isChecked&&(F==null?0:F.onEnabledCommand)?this.T.ZQ("innertubeCommand",F.onEnabledCommand):!this.isChecked&&(F==null?0:F.onDisabledCommand)&&this.T.ZQ("innertubeCommand",F.onDisabledCommand)}this.T.logClick(this.element)};
g.A.getValue=function(){return this.isChecked};
g.A.uu=function(){return this.T.getVideoData(1)};g.T(WpD,FC);g.T($0,g.LY);$0.prototype.onClick=function(){this.enabled&&(jT(this,!this.checked),this.publish("select",this.checked))};
$0.prototype.getValue=function(){return this.checked};
$0.prototype.setEnabled=function(F){(this.enabled=F)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var kZR=["en-CA","en","es-MX","fr-CA"];g.T(qB,$0);qB.prototype.G4=function(F){F?this.Y||(this.Sz.Iy(this),this.Y=!0):this.Y&&(this.Sz.N$(this),this.Y=!1);this.Y&&jT(this,loR())};
qB.prototype.j=function(){g.p6(this.element,"ytp-menuitem-highlight-transition-enabled")};
qB.prototype.U=function(F){var k=loR();F!==k&&(k=g.nu(),fu(190,F),fu(192,!0),k.save(),this.T.ZQ("cinematicSettingsToggleChange",F))};
qB.prototype.h4=function(){this.Y&&this.Sz.N$(this);$0.prototype.h4.call(this)};g.T(NB,FC);NB.prototype.updateCinematicSettings=function(F){this.Y=F;var k;(k=this.menuItem)==null||k.G4(F);this.api.publish("onCinematicSettingsVisibilityChange",F)};g.T(xD6,FC);g.T(uo,FC);uo.prototype.setCreatorEndscreenVisibility=function(F){var k;(k=t_(this.api.iL()))==null||k.Yj(F)};
uo.prototype.Y=function(F){function k(x){x==="creatorendscreen"&&(x=t_(z.api.iL()))&&x.Xc_(z.hideButton)}
var z=this;this.hideButton=F;this.events.N(this.api,"modulecreated",k);k("creatorendscreen")};g.T(wp,$0);wp.prototype.U=function(F){this.j(F?1:0)};
wp.prototype.L=function(){var F=this.hasDrcAudioTrack(),k=this.Y()===1&&F;jT(this,k);this.setEnabled(F)};
wp.prototype.h4=function(){this.Sz.N$(this);$0.prototype.h4.call(this)};g.T(mF,FC);mF.prototype.getDrcUserPreference=function(){return this.Y};
mF.prototype.setDrcUserPreference=function(F){g.SZ("yt-player-drc-pref",F,31536E3);F!==this.Y&&(this.Y=F,this.updateEnvironmentData(),this.L()&&this.api.bW())};
mF.prototype.updateEnvironmentData=function(){this.api.C().Om=this.Y===1};
mF.prototype.L=function(){var F,k,z=(F=this.api.getVideoData())==null?void 0:(k=F.U)==null?void 0:k.Y;if(!z)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.V("mta_drc_mutual_exclusion_removal")){var x,D,e=(x=this.api.uX())==null?void 0:(D=x.ZD)==null?void 0:D.id;return t9(z,function(C){var p;return C.audio.Y&&((p=C.ZD)==null?void 0:p.id)===e})}return t9(z,function(C){var p;
return((p=C.audio)==null?void 0:p.Y)===!0})};g.T(Tu,FC);Tu.prototype.onVideoDataChange=function(){var F=this,k=this.api.getVideoData();this.api.H7("embargo",1);var z=k==null?void 0:k.Gs.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(z==null?0:z.length)?DD6(this,z.filter(function(x){return iND(F,x)})):(k==null?0:k.cueRanges)&&DD6(this,k.cueRanges.filter(function(x){return iND(F,x)}))};
Tu.prototype.L=function(F){return F.embargo!==void 0};
Tu.prototype.h4=function(){FC.prototype.h4.call(this);this.Y={}};g.T(lo,FC);
lo.prototype.addEmbedsConversionTrackingParams=function(F){var k=this.api.C(),z=k.widgetReferrer,x=k.NJ,D=this.Y,e="",C=k.getWebPlayerContextConfig();C&&(e=C.embedsIframeOriginParam||"");z.length>0&&(F.embeds_widget_referrer=z);x.length>0&&(F.embeds_referring_euri=x);k.j&&e.length>0&&(F.embeds_referring_origin=e);C&&C.embedsFeature&&(F.feature=C.embedsFeature);D.length>0&&(k.V("embeds_web_enable_lite_experiment_control_arm_logging")?D.unshift(28572):g.N5(g.aB(k))&&D.unshift(159628),k=D.join(","),k=
g.Lg()?k:g.T8(k,4),F.source_ve_path=k);this.Y.length=0};g.T($DM,FC);g.T(jlk,FC);g.T(QP,g.S);QP.prototype.h4=function(){g.S.prototype.h4.call(this);this.Y=null;this.L&&this.L.disconnect()};g.T(CkD,FC);g.T(hq,g.Y);hq.prototype.show=function(){g.Y.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
hq.prototype.onVideoDataChange=function(F){var k,z,x=(k=this.api.getVideoData())==null?void 0:(z=k.getPlayerResponse())==null?void 0:z.playabilityStatus;x&&(k=AdH(x),g.n(this.api.getPlayerStateObject(),128)||F==="dataloaderror"||!k?(this.L=0,sA(this),this.hide()):(F=(k.remainingTimeSecs||0)*1E3,F>0&&(this.show(),this.updateValue("label",Uw(k.label)),Ei6(this,F))))};
hq.prototype.h4=function(){sA(this);g.Y.prototype.h4.call(this)};g.T(Xca,FC);g.T(rp,g.Y);rp.prototype.onClick=function(){this.Vh.logClick(this.element);this.Vh.ZQ("onFullerscreenEduClicked")};
rp.prototype.G4=function(){this.Vh.isFullscreen()?this.Y?this.fade.hide():this.fade.show():this.hide();this.Vh.logVisibility(this.element,this.Vh.isFullscreen()&&!this.Y)};g.T(BV,FC);BV.prototype.updateFullerscreenEduButtonSubtleModeState=function(F){var k;(k=this.Y)!=null&&(g.XF(k.element,"ytp-fullerscreen-edu-button-subtle",F),F&&!k.L&&(k.element.setAttribute("title","Scroll for details"),GL(k.Vh,k.element,k),k.L=!0))};
BV.prototype.updateFullerscreenEduButtonVisibility=function(F){var k;(k=this.Y)!=null&&(k.Y=F,k.G4())};g.T(qwk,g.Y);g.T(wc5,FC);g.T(Gu,FC);Gu.prototype.getSphericalProperties=function(){var F=g.VU(this.api.iL());return F?F.getSphericalProperties():{}};
Gu.prototype.setSphericalProperties=function(F){if(F){var k=g.VU(this.api.iL());k&&k.setSphericalProperties(F,!0)}};g.T(UA,FC);g.A=UA.prototype;g.A.createClientVe=function(F,k,z,x){this.api.createClientVe(F,k,z,x===void 0?!1:x)};
g.A.createServerVe=function(F,k,z){this.api.createServerVe(F,k,z===void 0?!1:z)};
g.A.setTrackingParams=function(F,k){this.api.setTrackingParams(F,k)};
g.A.logClick=function(F,k){this.api.logClick(F,k)};
g.A.logVisibility=function(F,k,z){this.api.logVisibility(F,k,z)};
g.A.hasVe=function(F){return this.api.hasVe(F)};
g.A.destroyVe=function(F){this.api.destroyVe(F)};var TM5=!1;ZI.prototype.setPlaybackRate=function(F){this.playbackRate=Math.max(1,F)};
ZI.prototype.getPlaybackRate=function(){return this.playbackRate};VP.prototype.Sd=function(F){var k=g.$b(F.info.Y.info,this.b$.oS),z=F.info.gt+this.j,x=F.info.startTime*1E3;if(this.policy.NJ)try{x=this.policy.NJ?g.jJ(F)*1E3:F.info.startTime*1E3}catch(C){Math.random()>.99&&this.logger&&(x=Zh(F.Y).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:F.info.mu(),encodedDataView:g.mv(x,4)})),x=F.info.startTime*1E3}var D=F.info.clipId,e=this.policy.NJ?g.sDn(F)*1E3:F.info.duration*1E3;this.policy.NJ&&(x<0||e<0)&&(this.logger&&(this.logger({missingSegInfo:F.info.mu(),
startTimeMs:x,durationMs:e}),this.policy.w8||(x<0&&(x=F.info.startTime*1E3),e<0&&(e=F.info.duration*1E3))),this.policy.w8&&(x<0&&(x=F.info.startTime*1E3),e<0&&(e=F.info.duration*1E3)));return{formatId:k,gt:z,startTimeMs:x,clipId:D,pS:e}};
VP.prototype.g8=function(F){this.timestampOffset=F};aP.prototype.seek=function(F,k){F!==this.Y&&(this.seekCount=0);this.Y=F;var z=this.videoTrack.L,x=this.audioTrack.L,D=this.audioTrack.xu,e=a7k(this,this.videoTrack,F,this.videoTrack.xu,k);k=a7k(this,this.audioTrack,this.policy.m_?F:e,D,k);F=Math.max(F,e,k);this.W=!0;this.b$.isManifestless&&(Pk5(this,this.videoTrack,z),Pk5(this,this.audioTrack,x));return F};
aP.prototype.isSeeking=function(){return this.W};
aP.prototype.Jc=function(F){this.U=F};
var HN6=2/24;var dDp=0;g.A=Lh.prototype;g.A.hw=function(){this.K=this.now();HRI(this.g3,this.K);this.EH.hw()};
g.A.rM=function(F,k){var z=this.policy.L?(0,g.VE)():0;fh(this,F,k);F-this.S<10&&this.L>0||this.iO(F,k);this.EH.rM(F,k);this.policy.L&&(F=(0,g.VE)()-z,this.Xm+=F,this.vR=Math.max(F,this.vR))};
g.A.iO=function(F,k){var z=(F-this.S)/1E3,x=k-this.U;this.lC||(T9(this.g3,z,x),this.eC(z,x));this.S=F;this.U=k};
g.A.AI=function(){this.mp&&Jdp(this);this.EH.AI()};
g.A.Oc=function(F){this.mp||(this.mp=this.W-this.RS+F,this.MD=this.W,this.vj=this.G)};
g.A.X4=function(F,k){F=F===void 0?this.G:F;k=k===void 0?this.W:k;this.L>0||(this.B=F,this.L=k,this.Qh=this.isActive=!0)};
g.A.IP=function(){return this.Rg||2};
g.A.Nj=function(){};
g.A.Yr=function(){var F,k={rn:this.requestNumber,rt:(this.G-this.Y).toFixed(),lb:this.W,stall:(1E3*this.j).toFixed(),ht:(this.K-this.Y).toFixed(),elt:(this.B-this.Y).toFixed(),elb:this.L,d:(F=this.Xf)==null?void 0:F.Y9()};this.url&&mDx(k,this.url);this.policy.L&&(k.mph=this.vR.toFixed(),k.tph=this.Xm.toFixed());k.ulb=this.yh;k.ult=this.PR;k.abw=this.NJ;return k};
g.A.now=function(){return(0,g.VE)()};
g.A.deactivate=function(){this.isActive&&(this.isActive=!1)};g.T(WV,Lh);g.A=WV.prototype;g.A.Yr=function(){var F=Lh.prototype.Yr.call(this);F.pb=this.Hs;F.pt=(1E3*this.dH).toFixed();F.se=this.uL;return F};
g.A.nu=function(){var F=this.EH;this.u$||(this.u$=F.nu?F.nu():1);return this.u$};
g.A.Os=function(){return this.Yf?this.nu()!==1:!1};
g.A.Ru=function(F,k,z){if(!this.qD){this.qD=!0;if(!this.lC){fh(this,F,k);this.iO(F,k);var x=this.nu();this.uL=z;if(!this.lC)if(x===2){x=F-this.B<this.IP()*1E3+50;z=this.PR?this.yh/(this.PR/1E3):Math.max(this.policy.Qh,z||this.NJ);var D=this.Ld*1.3;x&&z<D||(this.PR?NU(this.g3,this.PR/1E3,this.yh,this.J4||this.policy.t4):NU(this.g3,k/z,k,.01));ww(this.g3,k,x?0:this.j)}else x===1&&(x=(F-this.Y)/1E3,!(x<=this.policy.j)&&this.policy.j||this.UH||this.policy.K||!(this.L>0)||Fj(this,x,k),this.L>0&&ww(this.g3,
k,this.j));F=(F-this.Y)/1E3||.01;this.policy.B&&!(this.L>0)||uW(this.g3,F,this.U,R16(this),this.d0)}this.deactivate()}};
g.A.Ug=function(F,k,z){z&&(this.u$=2);F<0&&this.Rg&&(F=this.Rg);k?this.RU+=F:this.J4+=F};
g.A.IP=function(){return this.J4||this.RU||Lh.prototype.IP.call(this)};
g.A.iO=function(F,k){var z=(F-this.S)/1E3,x=k-this.U,D=this.nu();this.isActive?D===1&&((x>0||this.policy.W)&&(z>.2||x<1024)?(this.j+=z,x>0&&z>.2&&Fj(this,this.Ld?z:.05,x),this.UH=!0):x>0&&(Fj(this,z,x),this.UH=!0)):k&&k>=this.policy.Y&&this.X4(F,k);Lh.prototype.iO.call(this,F,k)};
g.A.Eb=function(F){if(!this.lC){fh(this,F,this.W);var k=(F-this.Y)/1E3;this.nu()!==2&&this.L>0&&(this.j+=(F-this.S)/1E3,ww(this.g3,this.U,this.j));uW(this.g3,k,this.U,R16(this),this.d0,!0);F=(F-this.S)/1E3;T9(this.g3,F,0);this.eC(F,0)}};
g.A.X4=function(F,k){F=F===void 0?this.G:F;k=k===void 0?this.W:k;if(!(this.L>0)&&(Lh.prototype.X4.call(this,F,k),this.nu()===1)){k=(this.K-this.Y)/1E3;var z=(F-this.K)/1E3;this.Yf&&k7(this,this.now());this.mY||this.lC||(this.Rg&&(z=Math.max(0,z-this.Rg)),F=this.g3,F.B.K$(1,k),F.Xf.K$(1,z))}};
g.A.p9=function(){this.Yf&&k7(this,this.now());return this.l$};
g.A.ZO=function(){var F;if(F=this.U>this.V5)F=(F=this.U)?F>=this.policy.Y:!1;return F};
g.A.H4=function(){return this.kG};
g.A.LT=function(F){F=F===void 0?this.now():F;if(this.Yf){k7(this,F);if(this.u$?this.Os():this.t4!==this.cR){var k=this.cR;if(F<k){this.kG=this.cR;return}}else k=this.t4;k=Math.max(k,this.l$)}else k=this.l$;var z=this.Hs-this.U;z<0&&(z=0);z=(z*this.snapshot.stall+z/this.snapshot.byterate)*1E3;this.kG=z=this.L>0?z+F:z+Math.max(F,k)};
g.A.gY=function(){return this.now()-this.B};
g.A.sL=function(){return(this.U-this.L)*1E3/this.gY()||0};
g.A.C9=function(){return this.B};oi.prototype.feed=function(F){BZ(this.Y,F);this.Ib()};
oi.prototype.Ib=function(){if(this.j){if(!this.Y.getLength())return;var F=this.Y.split(this.U-this.L),k=F.LX;F=F.X9;if(!this.EH.Oc(this.j,k,this.L,this.U))return;this.L+=k.getLength();this.Y=F;this.L===this.U&&(this.j=this.U=this.L=void 0)}for(;;){var z=0;F=g.l(Mj6(this.Y,z));k=F.next().value;z=F.next().value;z=g.l(Mj6(this.Y,z));F=z.next().value;z=z.next().value;if(k<0||F<0)break;if(!this.Y.I0(z,F)){if(!this.EH.Oc||!this.Y.I0(z,1))break;z=this.Y.split(z).X9;this.EH.Oc(k,z,0,F)&&(this.j=k,this.L=
z.getLength(),this.U=F,this.Y=new rx([]));break}F=this.Y.split(z).X9.split(F);z=F.X9;this.EH.T7(k,F.LX);this.Y=z}};
oi.prototype.dispose=function(){this.Y=new rx};g.A=zv.prototype;g.A.VN=function(){return 0};
g.A.l_=function(){return null};
g.A.Jd=function(){return null};
g.A.qI=function(){return this.state>=1};
g.A.isComplete=function(){return this.state>=3};
g.A.rp=function(){return this.state===5};
g.A.onStateChange=function(){};
g.A.pJ=function(F){var k=this.state;this.state=F;this.onStateChange(k);this.callback&&this.callback(this,k)};
g.A.hX=function(F){F&&this.state<F?this.pJ(F):this.callback&&this.callback(this,this.state)};
g.A.z4=function(){return this.state===-1};
g.A.mu=function(){var F="";this.info.sK.forEach(function(k){F+=k.mu()+"."});
return F.slice(0,-1)};
g.A.dispose=function(){this.z4()||(this.info.sK[0].Y.U=!1,this.pJ(-1))};
g.A.d4=function(){return 0};g.A=x7.prototype;g.A.ER=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.EH.hw()};
g.A.onError=function(){this.U=!0;this.onDone()};
g.A.onDone=function(){this.z4||(this.j=!0,this.EH.AI())};
g.A.lF=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.A.getResponseHeader=function(F){try{return this.xhr.getResponseHeader(F)}catch(k){return""}};
g.A.h8=function(){return+this.getResponseHeader("content-length")};
g.A.kf=function(){return this.L};
g.A.Zq=function(){return this.status>=200&&this.status<300&&!!this.L};
g.A.KF=function(){return this.Y.getLength()>0};
g.A.h9=function(){var F=this.Y;this.Y=new rx;return F};
g.A.Ds=function(){return this.Y};
g.A.abort=function(){this.z4=!0;this.xhr.abort()};
g.A.Aw=function(){return!0};
g.A.tW=function(){return this.U};
g.A.SO=function(){return""};DF.prototype.hK=function(F,k){k=k===void 0?1:k;this.vx+=k;this.L+=F;F/=k;for(var z=0;z<iL.length&&!(F<iL[z]);++z)this.Y[z]+=k};
DF.prototype.toString=function(){return""};
var iL=[20,100,500,2E3];g.A=WM6.prototype;g.A.isActive=function(){return!0};
g.A.iD=function(F,k){var z=this;if(k){var x={},D;for(D in k)x={jm:void 0,BA:void 0},k.hasOwnProperty(D)&&(x.jm=F.prototype[D],x.BA=k[D],F.prototype[D]=function(e){return function(){var C=g.v6.apply(0,arguments),p=(0,g.VE)();C=e.jm.apply(this,C);return $7(z,C,e.BA,p)}}(x))}};
g.A.bY=function(F,k){if(k){var z=this,x={},D;for(D in k)x={IA:void 0,kT:void 0},k.hasOwnProperty(D)&&(x.kT=F.prototype[D],x.IA=k[D],F.prototype[D]=function(e){return function(){var C=g.v6.apply(0,arguments),p=this,E=(0,g.VE)(),X=e.kT.apply(p,C);return $7(z,X,null,E,function(q){return e.IA.apply(p,[q].concat(C))})}}(x))}};
g.A.Vq=function(F,k){var z=this;return function(){var x=g.v6.apply(0,arguments),D=(0,g.VE)();x=k.apply(null,x);return $7(z,x,F,D)}};
g.A.Fi=function(){return new KMC};
g.A.wX=function(F,k,z){z=z===void 0?1:z;k instanceof KMC&&(Fyx(this,F,(0,g.VE)()-k.startTimeMs,z),k.Y=!0)};
g.A.SS=function(F,k){var z=(0,g.VE)();k=k();return $7(this,k,F,z)};
g.A.WQ=function(){var F={},k;for(k in this.Y)if(this.Y.hasOwnProperty(k)){var z=this.Y[k];if(z.vx===0)z=null;else{for(var x=Math.ceil(z.vx).toFixed(0)+"."+z.L.toFixed(0),D=0;D<iL.length;++D)if(z.Y[D]>0)x+="."+iL[D].toFixed(0)+"_"+z.Y[D].toFixed(0);else break;z=x}z&&(F[k]=z)}this.Y=new f7D;return F};
g.A.toString=function(){return""};g.A=zYn.prototype;g.A.isActive=function(){return!1};
g.A.iD=function(){};
g.A.bY=function(){};
g.A.Vq=function(F,k){return k};
g.A.Fi=function(){};
g.A.wX=function(){};
g.A.SS=function(F,k){return k()};
g.A.WQ=function(){return{}};
g.A.toString=function(){return""};var DD,OWC,VY7,IaG,HWC,$z,T0,js,gvC;DD=new zYn;OWC=!!+WI("html5_enable_profiler");VY7=!!+WI("html5_onesie_enable_profiler");IaG=!!+WI("html5_offline_encryption_enable_profiler");HWC=!!+WI("html5_performance_impact_profiling_timer_ms");$z=OWC||VY7||IaG||HWC?new WM6:DD;g.Ok=OWC?$z:DD;T0=VY7?$z:DD;js=IaG?$z:DD;gvC=HWC?$z:DD;g.A=D4n.prototype;g.A.getResponseHeader=function(F){return F==="content-type"?this.Y.get("type"):""};
g.A.abort=function(){};
g.A.lF=function(){return!0};
g.A.h8=function(){return this.range.length};
g.A.kf=function(){return this.loaded};
g.A.Zq=function(){return!!this.loaded};
g.A.KF=function(){return!!this.L.getLength()};
g.A.h9=function(){var F=this.L;this.L=new rx;return F};
g.A.Ds=function(){return this.L};
g.A.Aw=function(){return!0};
g.A.tW=function(){return!!this.error};
g.A.SO=function(){return this.error};g.A=jyp.prototype;g.A.start=function(F){var k={credentials:"include",cache:"no-store"};Object.assign(k,this.G);this.j&&(k.signal=this.j.signal);F=new Request(F,k);fetch(F).then(this.K,this.onError).then(void 0,qA)};
g.A.onDone=function(){this.z4()||this.EH.AI()};
g.A.getResponseHeader=function(F){return this.responseHeaders?this.responseHeaders.get(F):null};
g.A.lF=function(){return!!this.responseHeaders};
g.A.kf=function(){return this.L};
g.A.h8=function(){return+this.getResponseHeader("content-length")};
g.A.Zq=function(){return this.status>=200&&this.status<300&&!!this.L};
g.A.KF=function(){return!!this.Y.getLength()};
g.A.h9=function(){this.KF();var F=this.Y;this.Y=new rx;return F};
g.A.Ds=function(){this.KF();return this.Y};
g.A.z4=function(){return this.W};
g.A.abort=function(){this.U&&this.U.cancel().catch(function(){});
this.j&&this.j.abort();this.W=!0};
g.A.Aw=function(){return!0};
g.A.tW=function(){return this.S};
g.A.SO=function(){return this.errorMessage};g.A=eY9.prototype;g.A.onDone=function(){if(!this.z4){this.status=this.xhr.status;try{this.response=this.xhr.response,this.L=this.response.byteLength}catch(F){}this.Y=!0;this.EH.AI()}};
g.A.ER=function(){this.xhr.readyState===2&&this.EH.hw()};
g.A.u7=function(F){this.z4||(this.status=this.xhr.status,this.Y||(this.L=F.loaded),this.EH.rM((0,g.VE)(),F.loaded))};
g.A.lF=function(){return this.xhr.readyState>=2};
g.A.getResponseHeader=function(F){try{return this.xhr.getResponseHeader(F)}catch(k){return g.yI(Error("Could not read XHR header "+F)),""}};
g.A.h8=function(){return+this.getResponseHeader("content-length")};
g.A.kf=function(){return this.L};
g.A.Zq=function(){return this.status>=200&&this.status<300&&this.Y&&!!this.L};
g.A.KF=function(){return this.Y&&!!this.response&&!!this.response.byteLength};
g.A.h9=function(){this.KF();var F=this.response;this.response=void 0;return new rx([new Uint8Array(F)])};
g.A.Ds=function(){this.KF();return new rx([new Uint8Array(this.response)])};
g.A.abort=function(){this.z4=!0;this.xhr.abort()};
g.A.Aw=function(){return!1};
g.A.tW=function(){return!1};
g.A.SO=function(){return""};g.C4.prototype.info=function(){};
g.C4.prototype.debug=function(){};
g.C4.prototype.Y=function(F){AS.apply(null,[5,this.tag,F].concat(g.r(g.v6.apply(1,arguments))))};
var pO9=new Map,q_Y=new Map,ECD=new function(){var F=this;this.Y=new Map;this.Pe={uG4:function(){return F.Y}}};g.T(p4,g.S);p4.prototype.tK=function(){if(!this.ZF.length)return[];var F=this.ZF;this.ZF=[];this.U=g.YG(F).info;return F};
p4.prototype.r7=function(){return this.ZF};
p4.prototype.h4=function(){g.S.prototype.h4.call(this);this.Y=null;this.ZF.length=0;this.sK.length=0;this.U=null};g.T(Xj,g.S);g.A=Xj.prototype;
g.A.BRJ=function(){if(!this.z4()){var F=(0,g.VE)(),k=!1;if(this.policy.WO){F=F-(this.timing.L>0?this.timing.B:this.timing.Y)-this.timing.IP()*1E3;var z=Bf(qo(this),!1);F>=2E3*z?k=!0:F>=this.policy.Lu*z&&(this.Y=this.policy.T1)}else if(this.timing.L>0){if(this.W){this.policy.vj&&(this.Y=0);return}var x=this.timing.H4();this.timing.LT();var D=this.timing.H4();D-x>=this.policy.Ki*.8?(this.Y++,this.logger.debug(function(){return"Mispredicted by "+(D-x).toFixed(0)}),k=this.Y>=5):this.Y=0}else{var e=F-
this.timing.p9();
this.policy.T1&&e>0&&(this.Y+=1);k=Bf(qo(this),!1)*this.policy.uN;(k=e>k*1E3)&&this.logger.debug(function(){return"Elbow late by "+e.toFixed(3)})}this.Y>0&&this.EH.Tq();
k?this.B$():this.L.start()}};
g.A.B$=function(){this.j=!0;this.EH.v6();this.lastError="net.timeout";uL(this)};
g.A.canRetry=function(F){var k=qo(this);F=F?this.policy.VI:this.policy.YZ;return k.timedOut<this.policy.J9&&k.Y<F};
g.A.Cn=function(){return this.lastError};
g.A.eq=function(){return this.Y};
g.A.dispose=function(){this.L.dispose();g.S.prototype.dispose.call(this)};var jt={},INn=(jt["1h"]=8,jt["9h"]=4,jt["1"]=8,jt["9"]=4,jt["("]=4,jt.h=2,jt.H=2,jt),et={},HtH=(et.o=3,et.O=3,et.so=3,et.a=1,et.ah=1,et.A=1,et.m=1,et.M=1,et.sa=1,et.mac3=7,et.MAC3=7,et.meac3=5,et.MEAC3=5,et),CL={},S_6=(CL.o=0,CL.O=0,CL.a=0,CL.ah=0,CL.A=0,CL.m=1,CL.M=1,CL.mac3=1,CL.MAC3=1,CL.meac3=1,CL.MEAC3=1,CL.so=4,CL.sa=4,CL);var JXn={WEB:1,MWEB:2,TVHTML5:7,WEB_UNPLUGGED:41,WEB_EMBEDDED_PLAYER:56,TVHTML5_AUDIO:57,TV_UNPLUGGED_CAST:58,TVHTML5_KIDS:59,WEB_MUSIC:61,WEB_CREATOR:62,TVHTML5_UNPLUGGED:65,WEB_REMIX:67,TVHTML5_SIMPLY:75,WEB_KIDS:76,TVHTML5_SIMPLY_EMBEDDED_PLAYER:85,WEB_MUSIC_EMBEDDED_PLAYER:86,WEB_MUSIC_ANALYTICS:31,WEB_GAMING:32,WEB_EXPERIMENTS:42,WEB_HEROES:60,WEB_UNPLUGGED_ONBOARDING:69,WEB_UNPLUGGED_OPS:70,WEB_UNPLUGGED_PUBLIC:71,TVHTML5_VR:72,TVHTML5_FOR_KIDS:93};var Qr,lL,hS=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["787","788"]],Zt6=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],vCn=["571 401 400 399 398 787 788 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],cX5=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],PjH=["412","359"],Ot9=[["140"],["251"],["380"],["328"]],A$={},GfH=(A$["398"]="397 396 395 394 788 787".split(" "),
A$["247"]=["780","779","244","243","242"],A$["136"]=["135","134","133","160"],A$["141"]=["140"],A$["251"]=["250"],A$["774"]=["251","250"],A$),pL={},U4D=(pL["135"]=["134","133","160"],pL["243"]=["242"],pL["781"]=["780","779"],pL["777"]=["776","775"],pL["396"]=["395","394"],pL["141"]=["140"],pL["251"]=["250"],pL),EG={},tpp=(EG["274"]=["317","273","318","280","279"],EG["145"]=["144","222","223","143","142"],EG["141"]=["149"],EG["140"]=["149"],EG["380"]=["381"],EG["328"]=["329"],EG),X8={},rX5=(X8["133"]=
240,X8["134"]=360,X8["135"]=480,X8["136"]=720,X8["137"]=1080,X8["242"]=240,X8["243"]=360,X8["244"]=480,X8["247"]=720,X8["248"]=1080,X8["298"]=720,X8["299"]=1080,X8["302"]=720,X8["303"]=1080,X8["395"]=240,X8["396"]=360,X8["397"]=480,X8["398"]=720,X8["399"]=1080,X8);var btn={unknown:0,other:0,bluetooth:117,wifi:116,cellular:120,ethernet:118,wimax:119,none:122};g.T(bo,zv);g.A=bo.prototype;g.A.Dh=function(){return this.timing.requestNumber};
g.A.q5=function(){return this.c7.q5()};
g.A.VV=function(){var F=QyH(this.nJ);if(this.S1){var k=this.S1,z=k.Y.getLength();F.ulen=z;z>0&&(k=k.Y.getUint8(0),F.ubyte=k,z===1&&k===0&&(F.b248180278=!0))}this.H5&&(F.rc=this.policy.xf?this.H5:this.H5.toString());this.policy.yf&&this.LW&&(F.tr=this.LW);F.itag=this.info.sK[0].Y.info.itag;F.ml=""+ +this.info.sK[0].Y.Ig();F.sq=""+this.info.sK[0].gt;this.c7&&(F.ifi=""+ +O_(this.info.ez.U));this.H5!==410&&this.H5!==500&&this.H5!==503||(F.fmt_unav="true");var x;(z=this.errorMessage||((x=this.xhr)==null?
void 0:x.SO()))&&(F.msg=z);this.Pu&&(F.smb="1");this.info.isDecorated()&&(F.sdai="1");return F};
g.A.bI=function(){return gik(this.timing)};
g.A.SO=function(){return this.xhr.SO()||""};
g.A.ZO=function(){return this.isComplete()||this.timing.ZO()};
g.A.rM=function(){!this.z4()&&this.xhr&&(this.H5=this.xhr.status,this.policy.UZ&&this.yZ&&this.Kd(!1),this.mW()?this.hX(2):!this.Wb&&this.ZO()&&(this.hX(),this.Wb=!0))};
g.A.hw=function(){if(!this.z4()&&this.xhr){if(!this.gX&&this.xhr.lF()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var F=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.gX=((0,g.VE)()-F)/1E3}this.xhr.lF()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.K6&&!VaD()&&g.SZ("yt-player-headers-readable",!0,2592E3);F=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var k=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),z;(z=this.Dn)==null||z.stop();this.wV=F||this.wV;
this.YF=k||this.YF}};
g.A.AI=function(){var F=this.xhr;if(!this.z4()&&F){this.H5=F.status;F=this.cK(F);if(this.policy.yf){var k;(k=this.Dn)==null||k.stop()}F===5?uL(this.nJ):this.pJ(F);this.nJ.L.stop()}};
g.A.cK=function(F){var k=this;nCC(this);if(wv(this.nJ,this.xhr.status,this.r5?this.timing.Qh||this.oG:this.xhr.Zq(),!1,this.Oe))return 5;var z="";m0(this.nJ,this.xhr)&&(z=lND(this.nJ,this.xhr));if(z)return rs(qo(this.nJ)),this.info.HN(this.c7,z),3;z=F.kf();if(this.S1){this.Kd(!0);nCC(this);if(wv(this.nJ,this.xhr.status,this.timing.Qh||this.oG,!1,this.Oe))return 5;if(!this.cH){if(this.oG)return rs(qo(this.nJ)),3;this.nJ.lastError="net.closed";return 5}}else{if(wv(this.nJ,this.xhr.status,this.xhr.Zq(),
!1,this.Oe))return 5;var x=this.info.U;if(x&&x!==z||F.tW())return this.nJ.lastError="net.closed",5;this.Kd(!0)}x=LMC(this)?F.getResponseHeader("X-Bandwidth-Est"):0;if(F=LMC(this)?F.getResponseHeader("X-Bandwidth-Est3"):0)this.il=!0,this.policy.Kf&&(x=F);m46(this.nJ,z,x?Number(x):0,this.info.sK[0].type===5);this.logger.debug(function(){var D=k.timing;return"Succeeded, rtpd="+(D.dH*1E3+D.Y-Date.now()).toFixed(0)});
return 4};
g.A.canRetry=function(){this.z4();var F=this.info.isDecorated();return this.nJ.canRetry(F)};
g.A.onStateChange=function(){this.isComplete()&&(this.policy.Cy?this.v6():this.timing.deactivate())};
g.A.B$=function(){this.nJ.B$()};
g.A.Tq=function(){this.callback&&this.callback(this,this.state)};
g.A.eq=function(){return this.nJ.eq()};
g.A.dispose=function(){zv.prototype.dispose.call(this);this.nJ.dispose();var F;(F=this.Dn)==null||F.dispose();this.policy.Cy||this.v6()};
g.A.v6=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()};
g.A.tK=function(){if(!this.r7().length)return[];this.yr=!0;return this.yZ.tK()};
g.A.mW=function(){if(this.state<1)return!1;if(this.yZ&&this.yZ.ZF.length)return!0;var F;return((F=this.xhr)==null?0:F.KF())?!0:!1};
g.A.r7=function(){this.Kd(!1);return this.yZ?this.yZ.r7():[]};
g.A.Kd=function(F){try{if(F||this.xhr.lF()&&this.xhr.KF()&&!m0(this.nJ,this.xhr)&&!this.g_)this.yZ||(this.yZ=new p4(this.policy,this.info.sK)),this.xhr.KF()&&(this.S1?this.S1.feed(this.xhr.h9()):Eu(this.yZ,this.xhr.h9(),F&&!this.xhr.KF()))}catch(k){this.S1?RYC(this,k):g.yI(k)}};
g.A.T7=function(F,k){switch(F){case 21:F=k.split(1).X9;gCn(this,F);break;case 22:this.cH=!0;Eu(this.yZ,new rx([]),!0);break;case 43:if(F=Rd(new ad(k),1))this.info.HN(this.c7,F),this.oG=!0;break;case 45:k=ep(new ad(k));F=k.TF;k=k.S$;F&&k&&(this.VD=F/k);break;case 44:this.B1=Osn(new ad(k));var z,x,D;!this.timing.Qh&&((z=this.B1)==null?void 0:z.action)===4&&((x=this.B1)==null?0:(D=x.U5)==null?0:D.r5)&&(this.r5=this.B1.U5.r5);break;case 53:this.policy.yf&&(F=vIp(new ad(k)).Ly)&&(this.Dn||(this.Ly=F,this.Dn=
new g.KS(this.NW,F,this)),this.Dn.start());break;case 60:this.pV=jp(new ad(k));break;case 58:if(F=eIk(new ad(k)))this.bV=F,F.bV===3&&(this.Oe=!0)}};
g.A.Oc=function(F,k,z,x){z||this.timing.Oc(x);if(F!==21)return!1;if(F=this.policy.UZ)if(x=k.getLength()+z===x,F*=this.info.sK[0].Y.info.Yu,!x&&k.getLength()<F)return!1;if(!z){if(k.getLength()===1)return!0;k=k.split(1).X9}gCn(this,k);return!0};
g.A.kf=function(){return this.xhr.kf()};
g.A.VN=function(){return this.gX};
g.A.nu=function(){return this.Os()?2:1};
g.A.Os=function(){if(!this.policy.B.WM||!isNaN(this.info.o3)&&this.info.o3>0)return!1;if(!this.xhr.lF())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.S1)var F=!this.info.U;else this.xhr.h8()?F=!1:(F=this.xhr.getResponseHeader("content-type"),F=F==="audio/mp4"||F==="video/mp4"||F==="video/webm");if(!F)return!1;if(isNaN(this.info.o3)){F=this.xhr.getResponseHeader("x-head-seqnum");var k=this.timing.policy.G?1:0;if(!F)this.logger.debug("No x-head-seqnum, cannot tell if head segment.");
else if(Number(F)>this.info.sK[0].gt+k)return!1}return!0};
g.A.d4=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.A.l_=function(){this.xhr&&(this.wV=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.wV};
g.A.Jd=function(){this.xhr&&(this.YF=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.YF};
g.A.Cn=function(){return this.nJ.Cn()};
g.A.NW=function(){if(!this.z4()&&this.xhr){this.LW="heartbeat";var F=this.nJ;F.Y+=2;this.Tq()}};g.T(Uu,Lh);g.A=Uu.prototype;g.A.iO=function(F,k){var z=(F-this.S)/1E3,x=k-this.U;this.L>0?x>0&&(this.t4&&(z>.2||x<1024?(this.j+=z,z>.2&&Mp5(this,.05,x)):Mp5(this,z,x)),this.cR&&(this.l$+=x,this.J4+=z)):k>this.policy.Y&&this.X4(F,k);Lh.prototype.iO.call(this,F,k)};
g.A.Ru=function(F,k){fh(this,F,k);this.iO(F,k);this.t4&&(k=this.U*this.snapshot.stall+this.U/this.snapshot.byterate,this.L>0&&ww(this.g3,this.l$,this.j),F=(F-this.Y)/1E3||.01,this.policy.B&&!(this.L>0)||uW(this.g3,F,this.U,k,!1))};
g.A.Eb=function(F){fh(this,F,this.W);var k=(F-this.S)/1E3;T9(this.g3,k,0);this.eC(k,0);!this.t4&&this.L>0||(k=this.U*this.snapshot.stall+this.U/this.snapshot.byterate,this.L>0&&(this.j+=(F-this.S)/1E3,ww(this.g3,this.l$,this.j)),uW(this.g3,((F-this.Y)/1E3||.01)*this.policy.PR,this.U,k,!1,!0))};
g.A.Zy=function(F){F=F.PG||2147483647;(F&2)!==2&&(this.cR=!1);(F&1)===1&&(this.t4=!0)};
g.A.AO=function(F){F=F.PG||2147483647;(F&2)===2&&(this.cR=!1);(F&1)===1&&(this.t4=!1)};
g.A.C9=function(){return this.B};
g.A.gY=function(){var F=this.cR?this.now()-this.S:0;return Math.max(this.J4*1E3+F,1)};
g.A.sL=function(){return this.l$*1E3/this.gY()};
g.A.X4=function(F,k){F=F===void 0?this.G:F;k=k===void 0?this.W:k;this.L>0||(Lh.prototype.X4.call(this,F,k),k=this.g3,F=(F-this.K)/1E3,k.B.K$(1,(this.K-this.Y)/1E3),k.Xf.K$(1,F))};
g.A.Nj=function(F){this.RU=F};
g.A.Yr=function(){var F=Lh.prototype.Yr.call(this);F.rbw=this.sL();F.rbe=+this.cR;F.gbe=+this.t4;F.ackt=(this.RU-this.Y).toFixed();return F};
g.A.LT=function(){};
g.A.H4=function(){return NaN};
g.A.p9=function(){return this.Y+this.snapshot.delay*1E3};tS.prototype.T7=function(F,k){k.getLength();switch(F){case 20:F=new ad(k);F={BZ:dx(F,1),videoId:Rd(F,2),itag:dx(F,3),lmt:dx(F,4),xtags:Rd(F,5),Me:dx(F,6),ox:Jc(F,8),uK:dx(F,9),FG$:dx(F,10),startMs:dx(F,11),durationMs:dx(F,12),tf:dx(F,14),timeRange:gx(F,15,YB9),vM:dx(F,16),mS:dx(F,17),clipId:Rd(F,1E3)};this.jK(F);break;case 21:this.PU(k,!1);break;case 22:this.PC(k);break;case 31:F=MW(k,hID);this.Yn(F);break;case 52:F=MW(k,cep);this.mQ(F);break;default:this.C_(F,k)}};
tS.prototype.jK=function(){};
tS.prototype.C_=function(){};g.T(ZF,tS);g.A=ZF.prototype;
g.A.C_=function(F,k){k.getLength();switch(F){case 35:this.aV(k);break;case 44:this.uA(k);break;case 43:this.Tj(k);break;case 53:this.Ej(k);break;case 55:F=new ad(k);(F={timeline:gx(F,1,IVC),KEf:gx(F,2,Sck)},F.timeline)&&F.timeline.YX&&this.EH.y5(F.timeline.YX,F.timeline.x$R,F.KEf);break;case 56:this.w7();break;case 57:this.qS(k);break;case 42:this.s6(k);break;case 45:this.jw(k);break;case 59:this.By(k);break;case 51:this.ph(k);break;case 49:this.Zy(k);break;case 50:this.AO(k);break;case 47:this.MF(k);
break;case 58:this.P$(k);break;case 61:this.EH.Fs.Nj((0,g.VE)());break;case 66:this.K0(k);break;case 46:this.Hy(k);break;case 67:this.onSnackbarMessage(k)}};
g.A.ph=function(F){F=new ad(F);F={kl4:n1(F,1,DN),CW4:n1(F,2,DN)};this.EH.ph(F)};
g.A.By=function(F){var k=new ad(F);F=Y_(k,1);var z=Y_(k,2);k=Y_(k,3);this.EH.By(F,z,k)};
g.A.jw=function(F){F=ep(new ad(F));this.EH.jw(F)};
g.A.MF=function(F){F=MW(F,BGa);this.EH.MF(F)};
g.A.s6=function(F){F=new ad(F);F={videoId:Rd(F,1),formatId:gx(F,2,DN),endTimeMs:dx(F,3),c3f:dx(F,4),mimeType:Rd(F,5),fO:gx(F,6,u$I),indexRange:gx(F,7,u$I),W2:gx(F,8,wnY)};this.EH.s6(F)};
g.A.qS=function(F){F=Sck(new ad(F));this.EH.qS(F)};
g.A.w7=function(){this.EH.w7()};
g.A.aV=function(F){F=svY(new ad(F));this.EH.aV(F)};
g.A.Ej=function(F){F=vIp(new ad(F));this.EH.Ej(F)};
g.A.uA=function(F){F=Osn(new ad(F));this.EH.uA(F)};
g.A.Tj=function(F){F={redirectUrl:Rd(new ad(F),1)};this.EH.Tj(F)};
g.A.PU=function(F){var k=F.getUint8(0);if(F.getLength()!==1){F=F.split(1).X9;var z=this.L[k]||null;z&&Hr(this.EH.jO,k,z,F)}};
g.A.PC=function(F){F=F.getUint8(0);var k=this.L[F]||null;k&&this.EH.PC(F,k)};
g.A.mQ=function(F){this.EH.mQ(F)};
g.A.jK=function(F){var k=F.BZ,z=F.ox,x=F.Me,D=F.mS,e=F.vM,C=F.uK,p=F.startMs,E=F.durationMs,X=F.timeRange,q=F.tf,N=F.clipId,u=Pf(F);F=XRA.has(fP[""+F.itag]);this.L[k]=u;this.EH.Ug(u,F,{BZ:k,ox:!!z,Me:x!=null?x:-1,uK:C!=null?C:-1,startMs:p!=null?p:-1,durationMs:E!=null?E:-1,tf:q,mS:D,vM:e,clipId:N,timeRange:X})};
g.A.Zy=function(F){F={PG:dx(new ad(F),1)};this.EH.Zy(F)};
g.A.AO=function(F){F={PG:dx(new ad(F),1)};this.EH.AO(F)};
g.A.Yn=function(F){this.EH.Yn(F)};
g.A.P$=function(F){F=eIk(new ad(F));this.EH.P$(F)};
g.A.K0=function(F){F={M3:gx(new ad(F),1,t9x)};this.EH.K0(F)};
g.A.onSnackbarMessage=function(F){F=dx(new ad(F),1);this.EH.onSnackbarMessage(F)};
g.A.Hy=function(F){F={reloadPlaybackParams:gx(new ad(F),1,jva)};this.EH.Hy(F)};g.T(vr,g.S);g.A=vr.prototype;g.A.PD=function(){return Array.from(this.Al.keys())};
g.A.eb=function(F){F=this.Al.get(F);var k=F.ZF;F.E9+=k.getLength();F.ZF=new rx;return k};
g.A.j5=function(F){return this.Al.get(F).j5};
g.A.Nt=function(F){return this.Al.get(F).Nt};
g.A.Ug=function(F,k,z,x){this.Al.get(F)||FDp(this,F,k);k=this.Al.get(F);if(this.b$){F=od6(this,F,z);if(x)for(var D=g.l(F),e=D.next();!e.done;e=D.next()){e=e.value;var C=x;e.PR=C;e.startTime+=C;e.j+=C;e.S+=C}k6C(this,z.BZ,k,F)}else z.ox?k.AQ=z.tf:k.g7.push(z),k.WJ.push(z)};
g.A.Rp=function(F){var k;return((k=this.Al.get(F))==null?void 0:k.sK)||[]};
g.A.hX=function(){for(var F=g.l(this.Al.values()),k=F.next();!k.done;k=F.next())k=k.value,k.Dc&&(k.u7&&k.u7(),k.Dc=!1)};
g.A.PC=function(F,k){this.logger.debug(function(){return"[onMediaEnd] formatId: "+k});
var z=this.Al.get(k);if(cr){if(z&&!z.j5){if(z.u0.get(F))z.u0.get(F).pU=!0;else{var x;((x=this.dl)==null?0:x.Vz)&&z.u0.set(F,{data:new rx,xW:0,pU:!0})}z.Nt=!0}}else z&&!z.Nt&&(z.Nt=!0)};
g.A.tK=function(F){if(cr){var k=this.Al.get(F);if(k)for(var z=g.l(k.u0),x=z.next();!x.done;x=z.next()){var D=g.l(x.value);x=D.next().value;D=D.next().value;var e=k.dD.get(x);if(bl(e[0])){if(!D.pU)continue;var C=e,p=D.data;p.getLength();e=0;var E=[];C=g.l(C);for(var X=C.next();!X.done;X=C.next()){X=X.value;var q=X.U,N=GD(p,e,q);e+=q;E.push(new DY(X,N))}k.eF.push.apply(k.eF,g.r(E))}else if(D.data.getLength()>0||!e[0].range&&D.pU)p=void 0,e=e[0],E=D.xW,C=D.data,e.range||(p=D.pU),X=C.getLength(),p=new DY(xia(e,
e.L+E,X,p),C),D.xW+=p.info.U,k.eF.push(p);k.u0.get(x).data=new rx;D.pU&&k.u0.delete(x)}F=this.Al.get(F);if(!F)return[];k=F.eF;F.eF=[];z=g.l(k);for(x=z.next();!x.done;x=z.next())F.E9+=x.value.info.U;return k||[]}z=(k=this.Al.get(F))==null?void 0:k.yZ;if(!z)return[];this.Kd(F,z);return z.tK()};
g.A.mW=function(F){if(cr)return Ii(this,F);var k,z,x;return!!((z=(k=this.Al.get(F))==null?void 0:k.yZ)==null?0:(x=z.r7())==null?0:x.length)||Ii(this,F)};
g.A.Kd=function(F,k){for(;Ii(this,F);){var z=this.eb(F);var x=F;x=this.Al.get(x).j5&&!Vr(this,x);Eu(k,z,x&&WyR(this,F))}};
g.A.h4=function(){g.S.prototype.h4.call(this);for(var F=g.l(this.Al.keys()),k=F.next();!k.done;k=F.next())Pr(this,k.value);var z;if((z=this.dl)==null?0:z.Sh)for(F=g.l(this.Al.values()),k=F.next();!k.done;k=F.next())k=k.value,k.u0.clear(),k.dD.clear(),k.eF.length=0,k.sK.length=0,k.WJ.length=0,k.g7.length=0;this.Al.clear()};
var cr=!1;g.T(ai,g.S);g.A=ai.prototype;g.A.rM=function(){!this.z4()&&this.xhr&&(this.Kd(!1),Rn(this.EH,this))};
g.A.hw=function(){};
g.A.AI=function(){if(!this.z4()&&this.xhr){var F=this.cK();F===5?uL(this.nJ):this.pJ(F);this.nJ.L.stop();var k;(k=this.x5)==null||k.stop()}};
g.A.cK=function(){var F="";m0(this.nJ,this.xhr)&&(F=lND(this.nJ,this.xhr));if(F)return this.info.ez.HN(this.c7,F),3;this.Kd(!0);if(wv(this.nJ,this.xhr.status,this.xhr.Zq(),this.info.I9(),this.Oe))return 5;if(this.QT)return 3;m46(this.nJ,this.xhr.kf(),0,this.I9());this.policy.We&&x8R(this.EH);return 4};
g.A.Kd=function(F){var k=this.xhr;if((F||!m0(this.nJ,this.xhr))&&k.KF()){F=k.h9();var z=F.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+z});
this.S1.feed(F)}};
g.A.T7=function(F,k){this.xhr.Aw()&&F===21&&Dpp(this);this.PW.T7(F,k)};
g.A.Oc=function(F,k,z,x){z||(this.Fs.Oc(x),this.policy.SF&&F===21&&Dpp(this));if(F!==21)return!1;this.Fs.Qh=!0;F=k.getLength();z||(this.kE=k.getUint8(0),k=k.split(1).X9);var D=this.policy.gB,e=this.PW.L[this.kE],C=this.b$.U.get(e);if(D&&C&&(D*=C.info.Yu,F+z!==x&&F<D))return!1;Hr(this.jO,this.kE,e,k);return!0};
g.A.aV=function(F){this.EH.aV(F)};
g.A.Ej=function(F){if(this.policy.enableServerDrivenRequestCancellation){var k;(k=this.x5)==null||k.dispose();this.UP=F;F.by&&(this.x5=new g.KS(this.Ho,F.by,this));this.Ho()}};
g.A.Ho=function(){var F;if((F=this.UP)!=null&&F.items){var k;(k=this.x5)==null||k.start();if(this.Fs.L>0){this.policy.WO&&this.nJ.L.stop();F=this.Fs.gY();k=this.Fs.sL();var z=$pD(this,F);if(!(k>z.vk||z.ou>0&&this.info.AE()>z.ou)){this.Qo=(0,g.VE)();var x;(x=this.x5)==null||x.stop();this.policy.We&&(x=this.EH,F={Md:Math.round(k*F/1E3),eW:F},x.policy.We&&(x.Xf=F,x.WC++));this.B$()}}}};
g.A.B$=function(){this.nJ.B$()};
g.A.uA=function(F){this.EH.uA(F,this.Dh())};
g.A.Tj=function(F){this.QT=!0;this.info.ez.HN(this.c7,F.redirectUrl)};
g.A.Zy=function(F){this.Fs instanceof Uu&&this.Fs.Zy(F)};
g.A.AO=function(F){this.Fs instanceof Uu&&this.Fs.AO(F)};
g.A.y5=function(F,k,z){this.EH.y5(F,k,z,this.Dh())};
g.A.s6=function(F){var k=F.formatId,z=Pf({itag:k.itag,lmt:k.lmt,xtags:k.xtags}),x,D,e=new VF(((x=F.fO)==null?void 0:x.first)||0,((D=F.fO)==null?void 0:D.rr)||0),C,p;x=new VF(((C=F.indexRange)==null?void 0:C.first)||0,((p=F.indexRange)==null?void 0:p.rr)||0);if(!this.b$.U.get(z)){z=F.W2||{};if(this.policy.FG){var E,X;F=(E=F.mimeType)!=null?E:"";E=(X=k.itag)!=null?X:0;X=fP[""+E];z.mimeType=X!=="9"&&X!=="9h"?F:'video/webm; codecs="'+["vp09",X==="9h"?"02":"00","51",X==="9h"?"10":"08","01.01.01.01.00"].join(".")+
'"'}else z.mimeType=F.mimeType;z.itag=k.itag;z.lastModified=""+(k.lmt||0);z.xtags=k.xtags;k=this.b$;X=ri("");E=hQ(z,null);u4(k,new XQ(X,E,e,x))}};
g.A.jw=function(F){this.EH.jw(F)};
g.A.onSnackbarMessage=function(F){if(this.policy.QM)this.EH.onSnackbarMessage(F)};
g.A.Yn=function(F){this.ql=F;this.oD=(0,g.VE)();this.EH.Yn(F)};
g.A.By=function(F,k,z){this.EH.By(F,k,z)};
g.A.qS=function(F){F.scope===2&&(this.rh_=F);this.EH.qS(F)};
g.A.w7=function(){this.vp=!0;this.EH.w7()};
g.A.ph=function(F){this.policy.xY&&this.EH.ph(F)};
g.A.MF=function(F){this.EH.MF(F,this.Dh())};
g.A.P$=function(F){F.bV===3&&(this.Oe=!0);this.EH.P$(F)};
g.A.K0=function(F){this.EH.K0(F)};
g.A.Hy=function(F){this.EH.Hy(F)};
g.A.canRetry=function(){this.z4();return this.nJ.canRetry(!1)};
g.A.dispose=function(){if(!this.z4()){g.S.prototype.dispose.call(this);this.nJ.dispose();var F;(F=this.x5)==null||F.dispose();this.pJ(-1);this.v6()}};
g.A.pJ=function(F){this.state=F;Rn(this.EH,this)};
g.A.I9=function(){return this.info.I9()};
g.A.tB=function(){return this.vp};
g.A.r6=function(){return this.rh_};
g.A.Ug=function(F,k,z){z.clipId&&(this.clipId=z.clipId);this.policy.W&&!k&&(this.Io=z.uK,this.zw=z.startMs);var x=0;this.policy.pn&&this.Bo&&this.clipId&&(x=IP(this.Bo,this.clipId)/1E3);this.jO.Ug(F,k,z,x);this.policy.eh&&this.ql&&this.Fs instanceof WV&&(x=this.ql.A8,this.Fs.Ug(z.durationMs/1E3,k,x>0&&z.uK+1>=x));this.jO.Al.get(F).QE=!0};
g.A.PC=function(F,k){this.jO.PC(F,k)};
g.A.mQ=function(F){this.requestIdentifier=F};
g.A.tK=function(F){return this.jO.tK(F)};
g.A.Rp=function(F){return this.jO.Rp(F)};
g.A.mW=function(F){return this.jO.mW(F)};
g.A.PD=function(){return this.jO.PD()};
g.A.nu=function(){return 1};
g.A.Dh=function(){return this.Fs.requestNumber};
g.A.OL=function(){return this.requestIdentifier};
g.A.zK=function(){return this.clipId};
g.A.q5=function(){return this.c7.q5()};
g.A.Fd=function(){this.v6()};
g.A.v6=function(){this.Fs.deactivate();var F;(F=this.xhr)==null||F.abort()};
g.A.isComplete=function(){return this.state>=3};
g.A.sN=function(){return this.state===3};
g.A.rp=function(){return this.state===5};
g.A.ON=function(){return this.state===4};
g.A.g4=function(){return this.isComplete()};
g.A.qI=function(){return this.state>=1};
g.A.eq=function(){return this.policy.vj?this.nJ.eq():0};
g.A.Tq=function(){this.policy.vj&&Rn(this.EH,this)};
g.A.k_=function(){return IXM(this.info)};
g.A.Cn=function(){return this.nJ.Cn()};
g.A.VV=function(){var F=QyH(this.nJ);Object.assign(F,aX5(this.info));F.req="sabr";F.rn=this.Dh();var k;if((k=this.xhr)==null?0:k.status)F.rc=this.policy.xf?this.xhr.status:this.xhr.status.toString();var z;(k=(z=this.xhr)==null?void 0:z.SO())&&(F.msg=k);this.Qo&&(z=$pD(this,this.Qo-this.Fs.C9()),F.letm=z.aDk,F.mrbps=z.vk,F.mram=z.ou);return F};
g.A.D8=function(){return{Io:this.Io,zw:this.zw,isDecorated:this.info.isDecorated()}};j0D.prototype.tick=function(F,k){this.ticks[F]=k?window.performance.timing.navigationStart+k:(0,g.VE)()};g.T(bL,g.uG);g.A=bL.prototype;
g.A.nx=function(F,k,z,x){if(this.policy.qo&&this.policy.W){var D=F.w9||null;D?(Q0n(this,F.gt,Y7(this,F.startTime,F.gt),{w9:D,gt:F.gt,FB:!!k,Ci:z},this.U),x&&this.U&&this.U.Q$(F.gt,F.startTime,this.L,(k==null?void 0:k.Y)||[],(k==null?void 0:k.L)||[],(k==null?void 0:k.U)||[],z,(k==null?void 0:k.dX)||0,(k==null?void 0:k.j)||void 0)):this.L===1&&JS(this,5,"noad")}else{var e=!1;this.policy.kG&&(e=z?this.mp===F.gt:this.t4===F.gt);if(this.U&&x&&!e){x=[];e=[];var C=[],p=void 0,E=0;k&&(x=k.Y,e=k.L,C=k.U,p=
k.j,E=k.dX,this.UK("sdai",{sq:F.gt,ssvicpns:x.join("."),ssvid:e.join(".")}));this.policy.kG&&(z?this.mp=F.gt:this.t4=F.gt);this.U.Q$(F.gt,F.startTime,this.L,x,e,C,z,E,p)}this.policy.kG?z&&(this.L===1&&JS(this,5,"noad"),F.gt!==((D=this.Y)==null?void 0:D.gt)&&(Tsk(this,F,k,z),isNaN(F.startTime)||yr(this,F.gt,Y7(this,F.startTime,F.gt),!!k,this.U))):z&&Tsk(this,F,k)}};
g.A.hZ=function(F,k,z){var x=this.videoTrack.Y.index.OJ()<=k;this.Y={w9:F,gt:k,FB:z};x&&dv(this,F,k)};
g.A.xm=function(){this.U&&this.U.xm()};
g.A.UK=function(F,k,z){(F!=="sdai"||this.policy.Mo||(z===void 0?0:z))&&this.aU.UK(F,k)};
g.A.xF=function(F,k){var z=this.videoTrack.Y.index.kA(F);if(z>=0){var x;var D=((x=k.qR.QR(z,2))==null?void 0:x.jl)||"";if(this.policy.W||D)return k.Wn(F,z),Ri(this.aU,F,F,z),this.UK("sdai",{cmskpad:1,t:F.toFixed(3),sq:z}),!0}this.UK("sdai",{cmskpad:0,t:F.toFixed(3),sq:z});return!1};g.T(f4,g.S);f4.prototype.O0=function(F,k,z){z=z===void 0?{}:z;this.policy.l0=a3(F,z,this.j,k===void 0?!1:k)};ob.prototype.z3=function(F){var k=this;if(this.policy.DM){var z=new Set(F);z.size===this.Xf.size&&[].concat(g.r(z)).every(function(x){return k.Xf.has(x)})||(this.aU.UK("lwnmow",{itagDenylist:[].concat(g.r(F)).join(",")}),this.aU.YQ(!!z.size),this.K=-1,this.Xf=z,za(this,this.Y),this.l$=!0)}};
ob.prototype.O0=function(F,k,z){z=z===void 0?{}:z;var x=this.policy.l0;this.W.O0(F,k===void 0?!1:k,z);if(x!==this.policy.l0){za(this,this.Y);xF(this);var D,e;x>this.policy.l0&&((D=this.U)==null?0:oD(D.info))&&((e=this.nextVideo)==null||!oD(e.info))&&(this.Qh=!0)}};j2.prototype.g8=function(F){this.timestampOffset=F;this.flush()};
j2.prototype.flush=function(){if(this.Y.pos>0){var F={a:this.track.QZ(),u:this.Y.Y9(),pd:Math.round(this.j),ad:Math.round(this.U)},k=this.L;if(k){var z=k.Y.info;F.itag=z.itag;z.Y&&(F.xtags=z.Y);F.sq=k.gt;F.st=k.startTime;F.sd=k.duration;this.track.policy.NU&&(F.si=k.mu());k.W&&(F.esl=k.L+k.U);k.HM()&&(F.eos=1)}isNaN(this.timestampOffset)||(F.to=this.timestampOffset);var x;if(k=(x=this.track.xu)==null?void 0:x.rH({})){for(var D in k)this.S[D]!==k[D]&&(F["sb_"+D]=k[D]);this.S=k}this.track.UK("sbu",
F);this.Y.reset();this.buffered=[];this.W=this.U=this.j=0;this.timestampOffset=this.L=void 0}};Cj.prototype.dispose=function(){this.PR=!0};
Cj.prototype.z4=function(){return this.PR};
g.T(Nu,Error);mT.prototype.skip=function(F){this.offset+=F};
mT.prototype.Zh=function(){return this.offset};g.A=eGD.prototype;g.A.Mv=function(){return this.L};
g.A.HF=function(){return this.L.length?this.L[this.L.length-1]:null};
g.A.f$=function(){this.L=[];sf(this);Qw(this)};
g.A.eb=function(F){this.J4=this.L.shift().info;F.info.VZ(this.J4)};
g.A.Rp=function(){return g.tW(this.L,function(F){return F.info})};
g.A.QZ=function(){return!!this.S.info.audio};
g.A.getDuration=function(){return this.S.index.iF()};g.T(ST,zv);g.A=ST.prototype;g.A.onStateChange=function(){this.z4()&&(Ou(this.jO,this.formatId),this.Y.dispose())};
g.A.VV=function(){var F=KyI(this.jO,this.formatId),k;var z=((k=this.jO.Al.get(this.formatId))==null?void 0:k.bytesReceived)||0;var x;k=((x=this.jO.Al.get(this.formatId))==null?void 0:x.E9)||0;return{expected:F,received:z,bytesShifted:k,sliceLength:Vr(this.jO,this.formatId),isAnyMediaEndReceived:this.jO.Nt(this.formatId)}};
g.A.bI=function(){return 0};
g.A.ZO=function(){return!0};
g.A.tK=function(){return this.jO.tK(this.formatId)};
g.A.r7=function(){return[]};
g.A.mW=function(){return this.jO.mW(this.formatId)};
g.A.Cn=function(){return this.lastError};
g.A.eq=function(){return 0};g.T(Uf,g.S);g.A=Uf.prototype;g.A.QZ=function(){return!!this.Y.info.audio};
g.A.HF=function(){return this.j.HF()};
g.A.eb=function(F){this.j.eb(F);var k;(k=this.G)!=null&&(k.W.add(F.info.gt),k.Y=GZD(k,k.pN,k.tR,F,k.Y),k.U=F,k.S=(0,g.VE)());this.Yu=Math.max(this.Yu,F.info.Y.info.Yu||0)};
g.A.getDuration=function(){if(this.policy.L){var F=this.aU.Lp();if(F)return JA(F)}return this.Y.index.iF()};
g.A.f$=function(){dp(this);this.j.f$()};
g.A.Mb=function(){return this.j};
g.A.isRequestPending=function(F){return this.U.length?F===this.U[this.U.length-1].info.sK[0].gt:!1};
g.A.g8=function(F){var k;(k=this.G)==null||k.g8(F);var z;(z=this.K)==null||z.g8(F)};
g.A.UK=function(F,k){this.aU.UK(F,k)};
g.A.uJ=function(){return this.aU.uJ()};
g.A.dispose=function(){var F;(F=this.K)==null||F.flush();g.S.prototype.dispose.call(this)};g.T(nj,g.S);nj.prototype.U=function(){this.L++>15||(this.Y=!this.Y,new DUn(this.aU,this.policy,this.g3,this.ez,this.Y),this.delay.start())};
g.A=DUn.prototype;g.A.hw=function(){};
g.A.rM=function(){};
g.A.AI=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.kf()===this.size)this.aU.UK("rqs",this.getInfo());else{var F="net.connect";this.xhr.status>200?F="net.badstatus":this.xhr.lF()&&(F="net.closed");this.onError(F)}};
g.A.onError=function(F){var k=this;this.aU.handleError(F,this.getInfo());tq("https://web.archive.org/web/20250411103644/https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(z){k.aU.UK("pathprobe",z)},function(z){k.aU.handleError(z.errorCode,z.details)})};
g.A.getInfo=function(){var F=this.timing.Yr();F.shost=cO(this.location.base);F.pb=this.size;return F};g.T(Mu,g.S);
Mu.prototype.G=function(F,k){if(F.B){this.b$.isLive?(F=this.b$.W8&&this.b$.j?F.Y.qw(this.b$.W8,!1):F.Y.cT(Infinity),F.o3=this.o3):F=F.Y.qw(0,!1);if(this.Qh){var z=this.Qh;F.o3===0&&(F.W=z.B)}else F.W=this.K;return F}z=F.L;if(!z.Y.Ig())return z.Y.Ut()?(F=cV(this.W,F.Y.info.Yu,k.Y.info.Yu,0),F=z.Y.Dw(z,F)):F=z.Y.F5(z),F;var x=z.S-this.aU.getCurrentTime(),D=!z.range||z.U===0&&z.L===0?0:z.range.length-(z.L+z.U),e=z.Y;this.Zb(F,x)&&D===0&&(this.b$.isManifestless?e=F.Y:(e=z.startTime+kL5,z.U&&(e+=z.duration),
RP(F,e),z=F.L,e=z.Y));e.Ut()?(D=this.U,k=cV(this.W,e.info.Yu,k.Y.info.Yu,x,D.j.length>0&&D.B===0&&this.aU.Gn),x=d7(F),F=z.Y.Dw(z,k),(k=F.U)&&F.sK.length>1&&(x||F.ez.L||F.sK[0].Y!==z.Y?F=z.Y.Dw(z,F.sK[0].U):(x=F.sK[F.sK.length-1],e=x.U/k,!x.W&&e<.4&&(F=z.Y.Dw(z,k-x.U))))):(z.gt<0&&(k=R0(z),k.pr=""+F.U.length,this.aU.isSeeking()&&(k.sk="1"),k.snss=z.G,this.aU.UK("nosq",k)),F=e.F5(z));if(this.policy.mp)for(z=g.l(F.sK),k=z.next();!k.done;k=z.next())k.value.type=6;return F};
Mu.prototype.Zb=function(F,k){if(!d7(F)||!F.Y.Ig())return!1;var z=this.U.l$||S1a(F)||k<=this.policy.Bq||this.U.Qh;this.logger.debug(function(){return"ready to adapt: "+z+", upgrade pending: "+S1a(F)+", health: "+k});
return z};
Mu.prototype.h4=function(){g.S.prototype.h4.call(this)};
var kL5=2/24;g.T(Wg,g.S);Wg.prototype.yK=function(F,k,z){var x;var D=((x=this.L)==null?void 0:x.reason)==="m"?"m":this.L&&rJp(this,this.L)?this.L.reason:"a";this.aU.yK(new L4(F,D,z));fj(this.aU,k,F,!0)};
Wg.prototype.hJ=function(F,k){for(var z=g.l(this.mp),x=z.next();!x.done;x=z.next())if(x=x.value,x.id===F)return this.dl.oO||(this.U=[x]),this.W=this.b$.Y[F],YF(this.dl)&&(this.Qh=!0),F=new L4(this.W,k?"t":"m"),k&&(this.B=!0),F;this.U=[];return null};
Wg.prototype.O0=function(F,k,z){z=z===void 0?{}:z;this.Y.O0(F,k===void 0?!1:k,z)};on.prototype.setData=function(F,k,z,x){var D=this;x=x===void 0?{}:x;if(z==null?0:z.qD)this.HL=izn(this,z,x),F.ZG=this.ez.ZG();if(this.I9())return!0;this.data=F;this.Y=O_I(F,k,function(e,C){var p;(p=D.EH)==null||p.LN(e,C)},z==null?void 0:z.U);
if(!this.Y)return!1;this.L=g.zx(this.Y,EIC);return!0};
on.prototype.I9=function(){return this.requestType===1};
on.prototype.AE=function(){var F;return((F=this.EH)==null?void 0:F.AE())||0};
on.prototype.isDecorated=function(){var F;return!((F=this.data)==null||!F.ea)};zg.prototype.encrypt=function(F){this.E3.exports.AES128CTRCipher_encrypt(this.cipher,F.byteOffset,F.byteLength);return F};
zg.prototype.z4=function(){return this.cipher===0};
zg.prototype.dispose=function(){this.E3.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};xt.prototype.encrypt=function(F,k){return uk(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:k},this.key,F).catch(function(z){return Promise.reject(z.name+": "+z.message)}).then(function(z){return new Uint8Array(z)}))};
xt.prototype.z4=function(){return this.Y};
xt.prototype.dispose=function(){this.Y=!0};
T0.bY(xt,{encrypt:b_5("oan2")});i$.prototype.encrypt=function(F,k){rk(this.L,k);return uk(this.L.encrypt(F))};
i$.prototype.z4=function(){return this.Y};
i$.prototype.dispose=function(){this.Y=!0};
T0.bY(i$,{encrypt:b_5("oap")});Dz.prototype.encrypt=function(F,k){var z=this.E3.lH(k),x=this.Y;x.E3.exports.AES128CTRCipher_setCounter(x.cipher,(z!=null?z:k).byteOffset);k=this.E3.lH(F);this.Y.encrypt(k!=null?k:F);z&&this.E3.free(z.byteOffset);return k?uk(this.E3.VW(k)):uk(F)};
Dz.prototype.z4=function(){return this.Y.z4()};
Dz.prototype.dispose=function(){this.Y.dispose()};
T0.bY(Dz,{encrypt:b_5("oalw")});$t.prototype.encrypt=function(F,k){var z=this,x=mM("");F.length<=this.A1&&this.Y&&!this.j&&(x=hd(x,function(){return z.Y?z.Y.encrypt(F,k):mM("wasm unavailable")}));
F.length<=this.d7&&(this.Y&&this.j&&(x=hd(x,function(){return z.Y?z.Y.encrypt(F,k):mM("wasm unavailable")})),x=hd(x,function(){return yJn(z,F,k)}));
return hd(hd(x,function(){return RFa(z,F,k)}),function(){return yJn(z,F,k)})};
$t.prototype.z4=function(){return this.W};
$t.prototype.dispose=function(){this.W=!0;var F;(F=this.U)==null||QK(F,g.CC);g.CC(this.Y);g.CC(this.L)};jN.prototype.encrypt=function(F){(0,g.VE)();return(new g.Zc(this.Y.Y)).encrypt(F,this.iv)};
jN.prototype.decrypt=function(F,k){(0,g.VE)();return(new g.Zc(this.Y.Y)).decrypt(F,k)};
jN.prototype.z4=function(){return this.U};
jN.prototype.dispose=function(){this.U=!0;g.CC(this.L)};g.T(eN,g.S);eN.prototype.U=function(F,k){if(k){k=k instanceof g.ZN?k:CA(this,k);var z;((z=this.Y.get(F))==null?void 0:cO(z.location))!==cO(k)&&this.Y.set(F,new keD(k,F))}else this.Y.delete(F)};
eN.prototype.load=function(){var F=this,k,z,x,D,e,C,p,E,X,q;return g.O(function(N){switch(N.Y){case 1:k=F.Y.get(0);g.lD(N,2);var u;if(u=k&&!F.L)u=cO(k.location),u=F.L===No(u);if(u){N.Sk(4);break}return g.c(N,WaC(F,F.L?2:0),5);case 5:if(z=N.L)F.U(0,z),O_(z)&&F.U(1,VJ(z));case 4:g.sC(N,3);break;case 2:x=g.rI(N);g.yI(x);if(!F.L){N.Sk(3);break}F.L=!1;return g.c(N,F.load(),7);case 7:return N.return();case 3:if(!F.YG.experiments.Ca("html5_onesie_probe_ec_hosts")){N.Sk(0);break}g.lD(N,9);D=F;e=D.U;C=3;return g.c(N,
WaC(F,1),11);case 11:return e.call(D,C,N.L),p=F,E=p.U,X=4,g.c(N,WaC(F,2),12);case 12:E.call(p,X,N.L);g.sC(N,0);break;case 9:q=g.rI(N),g.yI(q),g.Tp(N)}})};
eN.prototype.G=function(){var F=this,k,z;return g.O(function(x){g.WN(F.B);k=g.lw(F.YG.experiments,"html5_onesie_prewarm_max_lact_ms");if(Vj()>=k)return x.return();(z=F.Y.get(0))&&KaY(F,z);g.Tp(x)})};
var LaD={lWa:0,Os4:1,RWt:2,KWk:3,eOt:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};oEn.prototype.decrypt=function(F){var k=this,z,x,D,e,C,p;return g.O(function(E){switch(E.Y){case 1:if(k.Y.length&&!k.Y[0].isEncrypted)return E.return();k.L=!0;k.Fk.t5("omd_s");z=new Uint8Array(16);Ui()?x=new g.t5(F):D=new g.Zc(F);case 2:if(!k.Y.length||!k.Y[0].isEncrypted){E.Sk(4);break}e=k.Y.shift();if(!x){C=D.decrypt(e.buffer.fk(),z);E.Sk(5);break}return g.c(E,x.decrypt(e.buffer.fk(),z),6);case 6:C=E.L;case 5:p=C;for(var X=0;X<z.length;X++)if(z[X]===255)z[X]=0;else{z[X]+=1;break}X=k.Fk;var q=e.videoId,
N=e.BZ,u=e.formatId,w=new rx([p]),m;(m=pA(X.EJ,q))==null||Hr(m,N,u,w);E.Sk(2);break;case 4:k.Fk.t5("omd_c"),E4(k),k.L=!1,k.Fk.aJ(),g.Tp(E)}})};
oEn.prototype.enqueue=function(F,k,z,x,D){this.Y.push({videoId:F,BZ:k,formatId:z,buffer:x,isEncrypted:D});this.L||E4(this)};var p3a=!!Uint8Array.prototype.copyWithin,Xc=[],zxn=[],Dk6=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],N7=[],q7=[],u$=[],xkk=[];mt.prototype.JQ=function(F){return g.AT6(new g.iKH(F))};
mt.prototype.R7=function(F){function k(C){if(!C.done)return e.append(C.value),D.read().then(function(p){return k(p)})}
if(!("DecompressionStream"in window))return mM("native decompression unavailable");var z=new DecompressionStream("gzip"),x=z.writable.getWriter();x.write(F).then(function(){return x.close()});
var D=z.readable.getReader(),e=new rx([]);return hd(QK(QK(uk(D.read()),k),function(){return e.fk()}),function(C){return mM(C.message)})};
mt.prototype.qh=function(F,k){var z=void 0,x=k.lH(F);x&&(z=x.byteOffset,F=x);x=k.exports.getInflatedSize(F.byteOffset,F.length);if(x===0)return mM("bad compressed input");var D=k.malloc(x);if(k.exports.inflateGzip(F.byteOffset,F.length,D))return k.free(D),mM("inflateGzip failed");z&&k.free(z);return uk(new Uint8Array(k.exports.memory.buffer,D,x))};
T0.bY(mt,{JQ:function(F){return{profile:"gzjb",vx:Math.ceil(F.byteLength/16)}},
R7:function(F){return{profile:"gznb",vx:Math.ceil(F.byteLength/16)}},
qh:function(F){return{profile:"gzwb",vx:Math.ceil(F.byteLength/16)}}});g.T(w39,tS);g.A=w39.prototype;g.A.aJ=function(){this.EJ.aJ()};
g.A.C_=function(F,k){switch(F){case 10:var z=MW(k,lVC);F=z.d04;var x=!1;switch(F){case 0:this.U=!z.gk.r4G;this.iv=z.gk.iv;break;case 2:break;case 23:var D=this.EJ;z=z.Rl4;D.t5("omp_r");z.videoId&&(D.F4=z.videoId);D.F4!==D.videoData.videoId&&(D.videoData.Jx=D.F4,D.UK("ompp","vid."+D.F4));D.eA=!0;break;case 24:z=this.EJ;z.t5("omp_c");z.eA=!1;z.G8=!1;var e=(D=z.c5)==null?void 0:D.get(z.F4);z.notifySubscribers(z.F4);e!=null&&(e.Y=!0);QA(z);break;default:x=!0}this.EJ.vz&&this.EJ.UK("ombup","id.10;pt."+
F+";len."+k.getLength()+(x?";ignored.1":""));this.j=F;break;case 11:lLx(this,k);break;case 12:this.PU(k,!0);break;case 37:k=MW(k,Qvn);(k.pM||k.IC)&&k.videoId&&this.EJ.yn.set(k.videoId,k);break;case 60:this.LA(k);break;case 47:this.V("html5_server_playback_start_policy")&&(k=MW(k,BGa),this.EJ.playbackStartPolicy=k);break;case 35:this.aV(k);break;case 45:this.jw(k);break;case 66:this.K0(k);break;default:this.EJ.vz&&this.EJ.UK("ombup","id."+F+";len."+k.getLength()+";ignored.1")}};
g.A.Yn=function(F){this.EJ.Yn(F)};
g.A.LA=function(F){F=MW(F,jp);this.EJ.LA(F)};
g.A.jw=function(F){F=MW(F,ep);this.EJ.jw(F)};
g.A.jK=function(F){var k=F.BZ,z=F.ox,x=F.Me,D=F.vM,e=F.uK,C=F.startMs,p=F.durationMs,E=F.timeRange,X=F.tf,q=Pf(F),N=XRA.has(fP[""+F.itag]);z&&this.t5(N?"oais_r":"ovis_r");var u=this.Y[q]!==void 0;this.EJ.vz&&this.EJ.UK("ombup","id.20;hid."+k+";fid."+q);var w=F.videoId||"";this.L[k]=q;this.W[k]=w;u||(this.Y[q]={videoId:w,X0:!1,QZ:N,headers:[]});this.Y[q].headers.push(F);this.EJ.Ug(w,q,N,{BZ:k,ox:!!z,Me:x!=null?x:-1,uK:e!=null?e:-1,startMs:C!=null?C:-1,durationMs:p!=null?p:-1,tf:X!=null?X:0,vM:D,timeRange:E})};
g.A.PU=function(F,k){var z=F.getUint8(0);this.EJ.vz&&this.EJ.UK("ombup","id."+(k?12:21)+";len."+F.getLength()+";hid."+z);if(F.getLength()!==1){F=F.split(1).X9;var x=this.L[z]||null,D=this.W[z]||"";x&&(this.l7(this.Y[x].QZ?"oafs_r":"ovfs_r"),this.queue.enqueue(D,z,x,F,k))}};
g.A.PC=function(F){var k=F.getUint8(0);this.EJ.vz&&this.EJ.UK("ombup","id.22;len."+F.getLength()+";hid."+k);F=this.L[k]||null;var z=this.W[k]||"";if(F)if(this.V("html5_use_ump_request_slicer")){var x=this.queue;x.Y.push({videoId:z,BZ:k,formatId:F,isEncrypted:!1,oE:!0});x.L||E4(x)}else this.EJ.PC(z,k,F)};
g.A.mQ=function(F){this.EJ.mQ(F)};
g.A.xd=function(F,k){var z=this,x,D,e,C,p,E,X,q,N,u;return g.O(function(w){switch(w.Y){case 1:z.EJ.xd();x=F.fk();if(!k){e=x;w.Sk(2);break}return g.c(w,cTY(z.EJ,x,z.iv),3);case 3:e=w.L;case 2:D=e;if(!z.EJ.enableCompression){w.Sk(4);break}p=(C=performance)==null?void 0:C.now();return g.c(w,EE6(D),5);case 5:D=w.L,z.EJ.UK("decompression",{ds:"DecompressionStream"in window,rt:((E=performance)==null?NaN:E.now())-p});case 4:try{X=MW(D,$QD)}catch(m){return q=m instanceof Error?{name:m.name,message:m.message}:
{},q.webcrypto=""+ +!!Ui(),q.enc=""+ +z.U,N=new O3("onesie.response.parse",q),w.return(Promise.reject(N))}ud6(X);u=g.OP(X.body);return w.return(u)}})};
g.A.aV=function(F){this.V("html5_consume_onesie_next_request_policy_for_sabr")&&(F=MW(F,svY),this.EJ.aV(F))};
g.A.K0=function(F){F={M3:gx(new ad(F),1,t9x)};this.EJ.K0(F)};
g.A.t5=function(F){this.EJ.t5(F)};
g.A.l7=function(F){return this.EJ.l7(F)};
g.A.V=function(F){return this.EJ.V(F)};g.T(l$,g.S);g.A=l$.prototype;g.A.zK=function(){return""};
g.A.PD=function(F){var k,z;return((z=(k=this.c5)==null?void 0:k.get(F))==null?void 0:z.PD())||[]};
g.A.mW=function(F,k){var z;return!((z=pA(this,k))==null||!z.mW(F))};
g.A.tK=function(F,k){var z;return((z=pA(this,k))==null?void 0:z.tK(F))||[]};
g.A.Rp=function(F,k){var z;return((z=pA(this,k))==null?void 0:z.Rp(F))||[]};
g.A.pJ=function(F){this.state=F;this.notifySubscribers()};
g.A.I9=function(){return!1};
g.A.tB=function(){return!1};
g.A.r6=function(){};
g.A.t5=function(F){this.La.t5(F)};
g.A.l7=function(F){return this.La.l7(F)};
g.A.Oc=function(F,k,z,x){z||this.Fs.Oc(x);return!1};
g.A.T7=function(F,k){this.Fk.T7(F,k)};
g.A.ZN=function(){this.t5("orfb");this.X_=!0;if(PJa(this)&&this.xhr){var F={rc:this.xhr.status,lb:this.xhr.kf(),rt:(1E3*gik(this.Fs)).toFixed(),shost:g.Lw(this.bE),trigger:"o1"};this.UK("pathprobe",Pw(F))}};
g.A.xd=function(){this.t5("opr_r");this.eH=!0};
g.A.Ug=function(F,k,z,x){if(this.c5){if(!this.c5.has(F)){var D=new vr(this);this.c5.set(F,D);g.b(this,D)}var e;(e=this.c5.get(F))==null||e.Ug(k,z,x);QA(this);z||(this.Io=x.uK,this.zw=x.startMs)}else QA(this)};
g.A.Yn=function(F){this.ge=F;F.V8!=null&&this.La.OQ(F.V8)};
g.A.LA=function(F){this.pV=F};
g.A.aV=function(F){F.videoId&&this.Qi.set(F.videoId,F)};
g.A.aJ=function(){if(this.c5)for(var F=g.l(this.c5.keys()),k=F.next();!k.done;k=F.next()){var z=void 0;(z=this.c5.get(k.value))==null||z.hX()}};
g.A.jw=function(F){this.PA=F};
g.A.K0=function(F){if(F==null?0:F.M3)if(F=F.M3.gU){F=g.l(F);for(var k=F.next();!k.done;k=F.next())k=k.value,k.videoId&&this.eV.set(k.videoId,k)}};
g.A.UK=function(F,k,z){this.La.UK(F,k,z===void 0?!1:z)};
g.A.PC=function(F,k,z){var x;(x=pA(this,F))==null||x.PC(k,z)};
g.A.mQ=function(F){this.kL.set(F.videoId,F)};
g.A.fetch=function(){var F=this,k,z,x,D,e,C,p,E,X,q,N,u,w,m,h,B,U,v,P,I,d;return g.O(function(W){switch(W.Y){case 1:F.logger.debug("Onesie fetch started.");F.l6?F.e7.start():F.Dy.start();F.t5("or_i");k=F.YG.experiments.Ca("html5_onesie_verbose_timing");z={};x=(0,g.VE)();D=function(M){k&&(z[M]=(0,g.VE)()-x)};
D("loc_s");if(e=hxC(F.videoData,F.EB)){W.Sk(2);break}D("loc_async");C=g.lw(F.YG.experiments,"html5_onesie_redirector_timeout_ms");return g.c(W,stD(F.videoData,F.EB,C),3);case 3:e=W.L;case 2:if(!e)return F.logger.info("Onesie URL creation failed."),p={url:"0"},E=new O3("onesie.unavailable.hotconfig",p),F.YR(E),W.return(F.IV);F.HL=cO(e);D("loc_e");X=g.iJ(F.YG,g.dy(F.videoData));q=!!X.Y;if(!q){N=X.getValue();W.Sk(4);break}return g.c(W,X.Y,5);case 5:N=W.L;case 4:u=N;F.V("html5_log_onesie_empty_oauth")&&
!u&&F.UK("no_token",{async:q});D("oauth");w=BgI(F.playerRequest,F.YG,F.videoData,u,No(F.HL));g.lD(W,6);if(!vEx(F,w)){D("or_s_sync");F.HP=UkI(w,F.Sp,F.YG,F.La,F.pP.onesieUstreamerConfig,(m=F.videoData.lE)==null?void 0:m.vF);W.Sk(8);break}D("or_s_async");return g.c(W,ZK6(w,F.Sp,F.YG,F.La,F.pP.onesieUstreamerConfig,(h=F.videoData.lE)==null?void 0:h.vF),9);case 9:F.HP=W.L;case 8:g.sC(W,7);break;case 6:return B=g.rI(W),F.logger.info("Failed to create OnesieRequestProto."),F.YR(B),W.return(F.IV);case 7:return D("or_e"),
k&&F.UK("oreqvt",z),F.enableCompression=F.HP.Ay.L2,F.t5("osor"),U=k9n(),v=g.zx(F.HP,Jz5),P={method:"POST",body:v,headers:{"Content-Type":"text/plain",Referer:location.origin}},I=F.V("html5_onesie_media_capabilities"),rTR(e,F.videoData,Vmk(F),I),F.logger.debug("Starting Onesie network request."),F.vz&&F.UK("ombrs","1"),d=F.La.C().schedule,F.Fs=new WV(F,{g3:d,U2:F.vz,eC:function(M,xY){F.La.cI(M,xY)},
d0:!0}),e.set("rn",""+F.Fs.requestNumber),F.bE=e.q5(),Kh(F.Fs,F.bE),F.t5("or_p"),F.xhr=es(new hv(e),U,F.Fs,kH,P),F.Uq.start(),W.return(F.IV)}})};
g.A.nu=function(){return 2};
g.A.hw=function(){this.t5("orh_r")};
g.A.rM=function(){!this.X_&&this.xhr.kf()&&this.ZN();if(this.nV&&!this.l6){var F;(F=this.Ak)==null||F.start()}this.Kd()};
g.A.AI=function(F){F=F===void 0?!1:F;this.logger.debug("onXhrDone");this.Kd();if(!(this.z4()||this.state>=4)){var k=Tg(this),z=this.xhr;k.rc=z.status;F&&(k.ab=!0);if(z.SO()){var x="onesie.net";k.msg=z.SO()}else z.status>=400?x="onesie.net.badstatus":z.Zq()?this.eH||(x="onesie.response.noplayerresponse"):x=z.status===204?"onesie.net.nocontent":"onesie.net.connect";x?this.YR(new O3(x,k)):(this.t5("or_fs"),this.Fs.Ru((0,g.VE)(),z.kf(),0),this.pJ(4),this.vz&&this.UK("rqs",k));this.vz&&this.UK("ombre",
"ok."+ +!x);this.G8=!1;QA(this);mkx(this.Fk);if(!this.l6){this.Dy.stop();var D;(D=this.Ak)==null||D.stop()}var e;if(F=(e=this.EB)==null?void 0:FY5(e))for(e=0;e<F.length;e++)this.UK("pathprobe",F[e])}};
g.A.Fd=function(){if(this.playerResponse&&this.xhr&&this.c5)for(var F=g.l(this.c5.entries()),k=F.next();!k.done;k=F.next())if(k=g.l(k.value),k.next(),k.next().value.L){this.xhr.abort();this.AI(!0);break}};
g.A.C=function(){return this.YG};
g.A.V=function(F){return this.YG.V(F)};
g.A.IDf=function(){if(PJa(this)&&this.EB&&(!this.X_||this.V("html5_onesie_probe_ec_hosts"))){var F=this.EB;if(F.YG.experiments.Ca("html5_onesie_probe_ec_hosts")){var k,z=(k=F.Y.get(3))==null?void 0:cO(k.location);z&&AA(F,z,"osc",this);var x;(z=(x=F.Y.get(4))==null?void 0:cO(x.location))&&AA(F,z,"ocy",this)}else{var D;(x=(D=F.Y.get(1))==null?void 0:cO(D.location))&&AA(F,x,"o2",this);(x=(z=F.Y.get(2))==null?void 0:cO(z.location))&&AA(F,x,"o3",this)}}};
g.A.dc=function(){if(!this.z4()&&!this.isComplete()){if(this.nV){if((0,g.VE)()-this.Fs.G>1E3){var F;(F=this.Fs)==null||F.Eb((0,g.VE)());F=Tg(this);if(this.YG.Jp()&&this.xhr instanceof x7){var k=this.xhr;F.xrs=k.xhr.readyState;F.xpb=k.Y.getLength();F.xdc=k.j}this.YR(new O3("net.timeout",F))}}else(0,g.VE)()-this.Fs.Y>1E4&&((k=this.Fs)==null||k.Eb((0,g.VE)()),this.eT());this.isComplete()||this.e7.start()}};
g.A.eT=function(){this.logger.info("Onesie request timed out");this.G8=!1;if(!QA(this)){var F=Tg(this);F.timeout="1";this.YR(new O3("onesie.request",F))}};
g.A.YR=function(F){var k=this;F=IN(F);this.nV?this.La.He(F):(this.IV.reject(F),this.nV=!0);mkx(this.Fk);this.l6||this.Dy.stop();this.t5("or_fe");var z,x;(z=this.EB)==null||(x=FY5(z))==null||x.forEach(function(D){k.UK("pathprobe",D)});
this.pJ(5);this.dispose()};
g.A.isComplete=function(){return this.state>=3};
g.A.ON=function(){return this.state===4};
g.A.g4=function(F){var k,z;return this.isComplete()||!!((k=this.c5)==null?0:(z=k.get(F))==null?0:z.Y)};
g.A.sN=function(){return!1};
g.A.rp=function(){return this.state===5};
g.A.notifySubscribers=function(F){for(var k=0;k<this.jn.length;k++)F&&this.jn[k].xP()!==F||Rn(this.jn[k],this)};
g.A.k_=function(){var F,k;return((F=this.HP)==null?void 0:(k=F.a9)==null?void 0:k.MO)||0};
g.A.h4=function(){this.playerResponse="";var F;(F=this.xhr)==null||F.abort();mkx(this.Fk);this.S1.dispose();var k;(k=this.Ak)==null||k.dispose();this.pJ(-1);this.jn=[];g.S.prototype.h4.call(this)};
g.A.Kd=function(){try{var F=this.xhr;F.kf()>102400&&!this.pO&&(this.t5("or100k"),this.pO=!0);if(F.KF()){var k=F.h9(),z=k.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+z});
this.vz&&this.UK("ombrss","len."+z);this.S1.feed(k)}if(this.c5)for(var x=g.l(this.c5.keys()),D=x.next();!D.done;D=x.next()){var e=D.value;F=void 0;(F=this.c5.get(e))==null||F.hX();this.notifySubscribers(e)}}catch(C){this.YR(C)}};
g.A.Dh=function(){return this.Fs.requestNumber};
g.A.OL=function(F){return this.kL.get(F)};
g.A.D8=function(){return{Io:this.Io,zw:this.zw,isDecorated:!1}};g.T(HKn,g.S);g.A=HKn.prototype;g.A.jb=function(F,k){this.PR=void 0;x8R(this);kCD(this,F,k)};
g.A.CR=function(F){if(this.Y.length===0)return!1;var k=this.Y[0];return k instanceof l$?F===this.aU.getCurrentTime()*1E3:!(k instanceof ai&&H_H(k.info))&&Math.abs(k.k_()-F)<50};
g.A.aV=function(F){this.L=F;this.PR=(0,g.VE)()+(F.backoffTimeMs||0)};
g.A.uA=function(F,k){if(F.action===void 0){var z=this.La.o0();z!==void 0&&this.aU.pw(z)}else if(F.action!==0||!this.J4)switch(F.action===0&&this.policy.J0&&(F.action=2),z={},z.reason=F.l7t,z.action=F.action,z.rn=k,F.action){case 1:this.policy.W&&this.j&&this.j.JL(void 0,void 0,z);break;case 0:this.J4=!0;this.videoData.w3()&&this.policy.W&&this.j&&this.j.JL(void 0,void 0,z,!1);this.aU.rW(z);break;case 2:this.aU.handleError("sabr.config",z,1);break;case 5:O0n(this.La,!0);break;case 6:O0n(this.La,!1);
break;case 3:this.policy.qD&&((F=this.b$.B)!=null&&(F.B=!0),this.aU.handleError("sabr.hostfallback",z))}};
g.A.y5=function(F,k,z,x){if(this.policy.L){this.aU.UK("ssap",{rn:x,v:k,tl:D8Y(F)});var D=this.aU.Lp();F={Mw:F,context:z,version:k};oJH(this,z);D?z09(this,D,F):(this.aU.UK("ssap",{cacheclips:1,rn:x,v:k}),this.B=F)}};
g.A.qS=function(F){this.aU.UK("ssap",{onsbrctxt:F.type,dflt:F.sendByDefault});oJH(this,F);this.La.qS(F)};
g.A.w7=function(){};
g.A.jw=function(F){if(F.TF!==void 0&&F.S$){var k=F.TF/F.S$;this.audioTrack.B=!1;this.videoTrack.B=!1;if(this.policy.PR||this.policy.BM||this.policy.zz)this.aU.rR.L=!1;this.aU.AK(k,1);if(this.La.getCurrentTime()!==k){var z={Sr:"sabr_seek",q6:!0,CT:!0};F.seekSource&&(z.seekSource=F.seekSource);nh(this.aU,k+.1,z)}}};
g.A.onSnackbarMessage=function(F){this.La.publish("onSnackbarMessage",F)};
g.A.Yn=function(F){F.A8&&F.tP&&cU(this.b$,F.A8,F.tP);this.policy.X1&&(F.Ol&&F.KL&&(this.b$.FG=F.Ol/F.KL),F.Bk&&F.uD&&(this.b$.oO=F.Bk/F.uD));this.policy.aR&&(this.policy.X1?F.Bk&&F.uD&&this.aU.AK(F.Bk,F.uD):F.tP&&this.aU.AK(F.tP,1E3));F.V8!=null&&this.La.OQ(F.V8);this.policy.BC&&F.RC&&(F=((0,g.VE)()-F.RC)/1E3,this.aU.gE.K$(1,F))};
g.A.P$=function(F){this.aU.P$(F)};
g.A.AP=function(F){return this.BN.has(F)};
g.A.By=function(F,k,z){this.policy.U&&this.aU.UK("sabrctxtplc",{start:F?F.join("_"):"",stop:k?k.join("_"):"",discard:z?z.join("_"):""});if(F){F=g.l(F);for(var x=F.next();!x.done;x=F.next())this.BN.add(x.value)}if(k)for(k=g.l(k),F=k.next();!F.done;F=k.next())F=F.value,this.BN.has(F)&&this.BN.delete(F);if(z)for(z=g.l(z),k=z.next();!k.done;k=z.next())k=k.value,this.videoData.sabrContextUpdates.has(k)&&(this.videoData.sabrContextUpdates.delete(k),k===3&&(this.videoData.yI=""))};
g.A.ph=function(){};
g.A.z2=function(F){this.S=F};
g.A.Xt=function(F){this.cR=F};
g.A.MF=function(F,k){zFn(this.policy,F,4,k)};
g.A.K0=function(F){if(F==null?0:F.M3)if(F=F.M3.gU){F=g.l(F);for(var k=F.next();!k.done;k=F.next())if(k=k.value,k.formatId){var z=this.b$.U.get(Pf(k.formatId));z&&z.info&&(z.info.debugInfo=k.debugInfo)}}};
g.A.Hy=function(F){(F=F==null?void 0:F.reloadPlaybackParams)&&this.La.publish("reloadplayer",F)};
g.A.xP=function(){return this.La.xP()||""};
g.A.AE=function(){var F=Ib(this.audioTrack,!0)*1E3,k=Ib(this.videoTrack,!0)*1E3;return Math.min(F,k)};
g.A.LN=function(F,k){this.aU.UK(F,k)};
g.A.UN=function(F){U86(this.aU,Irp(this.u$,F))};
g.A.h4=function(){g.S.prototype.h4.call(this);this.L=void 0;kCD(this,!0,"i");this.Y=[]};jkx.prototype.Ib=function(F,k){if(this.j)return EJa(this,k);if(k=MB(F)){var z=k.L;z&&z.U&&z.Y&&(F=F.U.length?F.U[0]:null)&&F.state>=2&&!F.rp()&&F.info.o3===0&&(this.j=F,this.G=z,this.L=k.info,this.S=this.startTimeSecs=Date.now()/1E3,this.W=this.L.startTime)}return NaN};
jkx.prototype.clear=function(){this.L=this.G=this.j=null;this.Y=this.W=this.S=this.startTimeSecs=NaN;this.U=!1};g.T(g.M7,g.S);g.A=g.M7.prototype;g.A.initialize=function(F,k,z){this.logger.debug(function(){return"Initialized, t="+F});
F=F||0;this.policy.Y||(k=arD(this.Y),vJ5(this.La,new L4(k.video,k.reason)),this.La.Jz(new L4(k.audio,k.reason)));this.b$.isManifestless&&Tw9(this.W);this.G&&Cxa(this.G,this.videoTrack.Y);k=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var x=!this.b$.isManifestless;this.policy.z9&&(x=x||this.b$.A5);this.policy.Xf||(this.currentTime=x?F:k);this.policy.PR&&this.seek(this.getCurrentTime(),{}).UT(function(){});
if(this.policy.Y){var D;((D=this.Qh)==null?0:IL9(D,this.xP()||""))&&wPM(this)&&uqk(this,this.videoTrack)&&uqk(this,this.audioTrack)&&(i9D(this.L,this.Qh),this.policy.S&&NyM(this))}else this.PR&&(m8k(this,this.videoTrack),m8k(this,this.audioTrack),fNY(this.PR),delete this.PR);z?(this.policy.uG?(this.Xm=z,LA(this,z)):LA(this,!1),g.WN(this.sB)):(z=this.getCurrentTime()===0,Lj(this.W,this.videoTrack,this.videoTrack.Y,z),Lj(this.W,this.audioTrack,this.audioTrack.Y,z),this.policy.Y&&bK6(this.L,!0),this.policy.PR||
this.seek(this.getCurrentTime(),{}).UT(function(){}),this.timing.tick("gv"));
(this.b$.W8||this.b$.zY||this.b$.cR||this.b$.uL||this.b$.We)&&this.La.WI(this.b$)};
g.A.resume=function(){if(this.isSuspended||this.Gn){this.logger.debug("Resumed.");this.v9=this.Gn=this.isSuspended=!1;try{this.Ib()}catch(F){g.JV(F)}}};
g.A.Br=function(){return!this.policy.P7};
g.A.Gd=function(F,k){F=F===void 0?!1:F;k=k===void 0?!1:k;this.logger.debug("detaching media source");skC(this);this.La.XZ()&&(this.S=NaN);F?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.yh&&this.UK("loader",{setsmb:1}),this.policy.mp=!0,this.f$()):(this.policy.uG?LA(this,this.Xm):LA(this,!1),k||this.f$())};
g.A.setAudioTrack=function(F,k,z){z=z===void 0?!1:z;if(!this.z4()){var x=!isNaN(k);z&&x&&(this.audioTrack.PR=Date.now(),this.policy.Av&&(this.NJ=!0));if(this.policy.Y){var D=this.j.hJ(F.id,x);this.logger.debug(function(){return"Logging new audio format: "+D.Y.info.id});
this.La.Jz(D)}else{var e=Vwa(this.Y,F.id,x);this.logger.debug(function(){return"Logging new audio format: "+e.audio.info.id});
this.La.Jz(new L4(e.audio,e.reason))}if(x&&(z=this.audioTrack.Y.index.kA(k),this.UK("setAudio",{id:F.id,cmt:k,sq:z}),z>=0)){this.policy.Y&&this.jb(!0,"mosaic");aYD(this.audioTrack,z,NaN,NaN);!this.policy.zM&&this.b$.isLive&&vU(this.b$,z,!1);return}this.La.w0()}};
g.A.setPlaybackRate=function(F){F!==this.K.getPlaybackRate()&&this.K.setPlaybackRate(F)};
g.A.r_=function(F){var k=this.L.S;this.L.z2(F);this.UK("scfidc",{curr:Pf(k),"new":Pf(F)});F&&Pf(F)!==Pf(k)&&(this.jb(!1,"caption change"),this.Ib())};
g.A.KQ=function(F){this.L.Xt(F)};
g.A.yK=function(F){var k=F.Y.info.QZ();this.logger.debug(function(){return"New "+(k?"audio":"video")+" format from SABR: "+pm(F.Y.info)});
k?this.La.Jz(F):vJ5(this.La,F)};
g.A.UN=function(F){ds(F.sK[F.sK.length-1])&&U86(this,Irp(this.Y,F.sK[0].Y))};
g.A.eg=function(){return this.La.eg()};
g.A.AF=function(){return this.La.AF()};
g.A.P$=function(F){this.La.C().Jp()&&this.UK("sps",{status:F.bV||""});if(F.bV===1)this.La.videoData.Rh=0;else if(F.bV===2||F.bV===3){var k=!1;if(F.bV===3){k=this.La.e3();var z;this.vj=(z=F.GUQ)!=null?z:Infinity;this.La.videoData.Rh=k+1;(k=mUC(this))&&this.X2(!0)}this.La.WU(!0,k)}};
g.A.LV=function(){return this.La.LV()};
g.A.Xb=function(){return this.La.Xb()};
g.A.oJ=function(F){this.La.oJ(F)};
g.A.ipt=function(){var F,k=(F=this.La.S9())==null?void 0:F.getCurrentTime();k?this.La.UK("rms",{cta:k}):g.WN(this.uL)};
g.A.Ib=function(){GCY(this);if(this.IU&&Km(this.IU)&&!this.IU.Ck()&&(!this.policy.Xf||isFinite(this.getCurrentTime()))){var F=Z_(this.videoTrack);F=this.policy.J2&&F&&F.HM();this.b$.isManifestless&&this.b$.j&&Gk(this.b$)?(this.S=Gk(this.b$),this.IU.zc(this.S)):PU(this.b$)&&!F?isNaN(this.S)?(this.S=this.getCurrentTime()+3600,this.IU.zc(this.S)):this.S<=this.getCurrentTime()+1800&&(this.S=Math.max(this.S+1800,this.getCurrentTime()+3600),this.IU.zc(this.S)):this.IU.isView||(F=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.S)||this.S!==F)&&F>0&&(this.IU.zc(F),this.S=F))}if(!this.z4())if(BU(this.b$)&&this.b$.rp()){var k=this.b$;this.handleError("manifest.net.retryexhausted",k.NJ?{rc:k.H5}:{rc:k.H5.toString()},1)}else if(this.policy.Y)a:{try{KYD(this.L);this.b$.isManifestless&&this.policy.S&&gp(this.rR);if(h06(this)&&this.IU&&!kh(this.IU)&&this.videoTrack.cR&&this.audioTrack.cR){this.UK("ssap",{delaysb:1,v:this.videoTrack.Y.info.id,vf:this.videoTrack.Y.info.DQ,a:this.audioTrack.Y.info.id,
af:this.audioTrack.Y.info.DQ});var z=this.IU,x=this.videoTrack.Y,D=this.audioTrack.Y;!kh(z)&&D&&x&&(scR(z,x.info,D.info,this.policy.y6),rb9(this,z))}var e;((e=this.IU)==null?0:kh(e))&&this.bz();bK6(this.L)}catch(p){g.yI(p);k=p;if(k.message.includes("changeType")){this.UK("ssap",{exp:k.name,msg:k.message,s:k.stack});break a}this.handleError("fmt.unplayable",{exp:k.name,msg:k.message,s:k.stack},1)}LeH(this);g.WN(this.RU)}else if(!this.b$.L||!JQM(this.videoTrack)&&!JQM(this.audioTrack)||(this.videoTrack.W||
this.audioTrack.W)&&this.policy.mY?z=!1:(this.f$(),this.La.seekTo(Infinity,{Sr:"checkLoaderTracksSync",AK:!0}),z=!0),!z){GCY(this);this.b$.isManifestless&&(yQM(this.videoTrack),yQM(this.audioTrack),gp(this.rR),(z=MB(this.videoTrack))&&z.L&&(z=z.L.U&&!this.policy.I6,this.UK(z===this.policy.B.WM?"strm":"strmbug",{strm:z,sfmp4:this.policy.B.WM,dfs:this.policy.I6},!0)));if(this.IU)this.bz();else if(this.policy.j){var C;z=!1;if(this.policy.Wh)for(x=g.l([this.videoTrack,this.audioTrack]),D=x.next();!D.done;D=
x.next()){e=D.value;for(D=MB(e);D&&e.HF()!==Z_(e);D=MB(e))e.eb(D);z=z||!!D}else(k=MB(this.videoTrack))&&this.videoTrack.eb(k),(C=MB(this.audioTrack))&&this.audioTrack.eb(C);Pg(this.videoTrack)&&Pg(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(k||C||z)&&yA(this)}TyC(this);Lj(this.W,this.videoTrack,this.videoTrack.Y,!1);Lj(this.W,this.audioTrack,this.audioTrack.Y,!1);this.policy.qr||Z9n(this,this.videoTrack,this.audioTrack);AJn(this.W,this.videoTrack,this.audioTrack);
AJn(this.W,this.audioTrack,this.videoTrack);LeH(this);this.G&&(k=this.G,k.j?(C=k.S+k.policy.GI,k.U||(C=Math.min(C,k.startTimeSecs+k.policy.nF)),k=Math.max(0,C*1E3-Date.now())):k=NaN,isNaN(k)||g.WN(this.We,k));g.WN(this.RU)}};
g.A.rW=function(F){this.La.rW(F)};
g.A.bz=function(){var F=this;if(this.IU){var k=this.IU.Y,z=this.IU.L;xan(this,this.audioTrack);xan(this,this.videoTrack);var x=Pxn(this);if(x){if(this.policy.w2){if(!k.T0()){var D=MB(this.audioTrack);if(D){if(!nA(this,this.audioTrack,k,D.info))return;IxY(this,this.audioTrack,k,D)}}if(!z.T0()&&(D=MB(this.videoTrack))){if(!nA(this,this.videoTrack,z,D.info))return;IxY(this,this.videoTrack,z,D)}}this.Xp||(this.Xp=(0,g.VE)(),this.logger.debug(function(){return"Appends pause start "+F.Xp+" reason "+x}),
this.policy.U&&this.UK("apdps",{r:x}))}else if(this.Xp&&(cb6(this,this.Xp),this.Xp=0),O9R(this),D=!1,this.policy.L&&yw(this.videoTrack)||!d8n(this,this.videoTrack,z)||(D=!0,AvR(this.timing),qO9(this.timing)),this.IU&&!this.IU.j5()&&(this.policy.L&&yw(this.audioTrack)||!d8n(this,this.audioTrack,k)||(D=!0,pf5(this.timing),Nsp(this.timing)),!this.z4()&&this.IU)){if(!this.policy.P7&&Pg(this.videoTrack)&&Pg(this.audioTrack)&&Km(this.IU)&&!this.IU.Ck()){z=!1;
z=Z_(this.audioTrack);if(this.policy.L){var e;k=(e=this.jz)==null?void 0:HV(e,z.j*1E3);z=!(!k||k.clipId!==z.clipId);this.UK("ssap",{eos:z})}else e=z.Y,z=e===this.b$.Y[e.info.id];z&&(this.logger.debug("Setting EOS"),rIM(this.IU),aGM(this.schedule))}D&&!this.IU.isAsync()&&yA(this)}}};
g.A.L4=function(F){var k,z=F===((k=this.IU)==null?void 0:k.Y)?this.audioTrack:this.videoTrack,x;if((x=MB(z))==null?0:x.isLocked){if(this.La.C().Jp()){var D;this.UK("eosl",{ounlock:(D=MB(z))==null?void 0:D.info.mu()})}var e;nJn(this,F===((e=this.IU)==null?void 0:e.Y))}var C;if(this.policy.Av&&F===((C=this.IU)==null?void 0:C.Y)&&this.kG){k=this.kG-this.getCurrentTime();var p;this.La.UK("asl",{l:k,xtag:(p=Z_(this.audioTrack))==null?void 0:p.Y.info.Y});this.NJ=!1;this.kG=0}F.Ls()&&F.Kv().length===0&&
(F.Sx(),this.IU&&!this.IU.Ls()&&(this.La.C().Jp()&&this.La.UK("rms",{ld:"seek"}),this.IU.S=performance.now(),this.La.SV(),this.La.C().Jp()&&g.WN(this.uL)));var E;(E=z.K)!=null&&e2(E,0);this.policy.MD?wJD(this):this.Ib()};
g.A.LuQ=function(F){if(this.IU){var k=Z_(F===this.IU.Y?this.audioTrack:this.videoTrack);if(F=F.K2())for(var z=0;z<F.length;z++)this.UK("appendedbuffer",{i:z,b:g.mv(F[z].subarray(0,4096),3)});F=void 0;k&&(F=R0(k),this.policy.L&&this.jz&&this.jz.wp()&&(F.ccid=this.jz.wp()));this.handleError("fmt.unplayable",F,1)}};
g.A.Rl=function(F){this.La.Rl(F)};
g.A.nx=function(F,k,z){if(this.b$.isManifestless){F=!!F.info.video;rQH(this,k,z,F,!0);F=F?this.videoTrack:this.audioTrack;F.Qh.push({Io:k.gt,B$$:z});F.Qh.length>5&&F.Qh.shift();k=k.gt;var x;if((x=this.La.getVideoData())==null?0:x.enableServerStitchedDai)x=WcI(this.audioTrack,k),z=WcI(this.videoTrack,k),x!==0&&z!==0&&x!==z&&this.handleError("ssdai.avsync",{sq:k,a:x,v:z},0)}};
g.A.hZ=function(F,k,z,x){F.info.video&&this.U.hZ(k,z,x)};
g.A.z3=function(F){this.Y.z3(F)};
g.A.VM=zp(20);g.A.xn=function(F){this.jz=F;var k;(k=this.audioTrack.G)!=null&&(k.qR=F);(k=this.videoTrack.G)!=null&&(k.qR=F);k=this.L;k.B&&(k.aU.UK("ssap",{addcacheclips:1,v:k.B.version,tl:D8Y(k.B.Mw)}),z09(k,F,k.B),k.B=void 0)};
g.A.Lp=function(){return this.jz};
g.A.sX=function(){return this.videoTrack.B||this.audioTrack.B};
g.A.seek=function(F,k){if(this.z4())return v4();if(this.sX())return v4("seeking to head");if(this.policy.PR&&!isFinite(F))return Vjk(this.rR),g.ZJ(Infinity);GCY(this);this.Ku=(0,g.VE)();this.policy.Y||TyC(this,F);this.IU&&this.IU.Y&&this.IU.L&&!this.La.getVideoData().x4&&(this.IU.Y.isLocked()||this.IU.L.isLocked())&&this.La.w0({reattachOnLockedBuffer:1,vsb:""+this.IU.L.isLocked(),asb:""+this.IU.Y.isLocked()});var z=this.getCurrentTime(),x=this.rR.seek(F,k);this.policy.Xf||(this.currentTime=x);n4(this.U,
F,z,this.policy.Cj&&!k.q6);yA(this);return g.ZJ(x)};
g.A.CR=function(F){return this.policy.Y&&this.L.CR(F)};
g.A.AP=function(F){return this.L.AP(F)};
g.A.jb=function(F,k){this.L.jb(F,k)};
g.A.getCurrentTime=function(){if(this.policy.Xf){var F=this.Hj()||0;return this.La.getCurrentTime()-F}return this.currentTime};
g.A.R2=function(){return this.audioTrack.Y.info};
g.A.xv=function(){return this.videoTrack.Y.info};
g.A.pE=function(){return this.audioTrack.Y.info.DQ};
g.A.CE=function(){return this.videoTrack.Y.info.DQ};
g.A.h4=function(){try{this.Gd(),dp(this.audioTrack),dp(this.videoTrack),J4(this.audioTrack),J4(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.S.prototype.h4.call(this)}catch(F){g.JV(F)}};
g.A.handleError=function(F,k,z){z=z===void 0?0:z;var x=VQ(z);F==="fmt.unplayable"&&this.b$.isLive&&(this.policy.w2=!1,ZY(this.b$));k=new O3(F,k,z);g.Kk(this);Pw(k.details);this.La.handleError(k);F!=="html5.invalidstate"&&k.errorCode!=="fmt.unplayable"&&F!=="fmt.unparseable"&&x&&this.dispose()};
g.A.rH=function(){var F=Z_(this.audioTrack),k=Z_(this.videoTrack);F={lct:this.getCurrentTime().toFixed(3),lsk:this.rR.isSeeking(),lmf:this.Y.Y.isLocked(),lbw:lW(this.schedule).toFixed(3),lhd:ma(this.schedule).toFixed(3),lst:((this.schedule.G.Uz()||0)*1E9).toFixed(3),laa:F?F.mu():"",lva:k?k.mu():"",lar:this.audioTrack.L?this.audioTrack.L.mu():"",lvr:this.videoTrack.L?this.videoTrack.L.mu():"",laq:""+Of(this.audioTrack),lvq:""+Of(this.videoTrack)};this.IU&&!this.IU.j5()&&this.IU.Y&&this.IU.L&&(F.lab=
XW(this.IU.Y.Kv()),F.lvb=XW(this.IU.L.Kv()));this.Xp&&(F.lapt=((0,g.VE)()-this.Xp).toFixed(0),F.lapr=Pxn(this));this.Xf&&(F.lapmabht=((0,g.VE)()-this.Xf).toFixed(0),F.lapmabh=yP(this,this.audioTrack).toFixed(0));this.cR&&(F.lapmvbht=((0,g.VE)()-this.cR).toFixed(0),F.lapmvbh=yP(this,this.videoTrack).toFixed(0));this.yh&&(F.lapsdai=((0,g.VE)()-this.yh).toFixed(0));return F};
g.A.f$=function(){try{this.policy.Y&&this.L.jb(!1,"pending"),this.audioTrack.f$(),this.videoTrack.f$()}catch(F){g.JV(F)}this.policy.j=""};
g.A.n2=function(){return vV(this.K)};
g.A.UK=function(F,k,z){this.La.UK(F,k,z===void 0?!1:z)};
g.A.xP=function(){return this.La.xP()};
g.A.AK=function(F,k){F/=k;isNaN(this.timestampOffset)&&iY6(this,F-Math.min(F,this.policy.Ss));return(F-this.timestampOffset)*k};
g.A.Hj=function(){return this.timestampOffset};
g.A.isSeeking=function(){return this.rR.isSeeking()};
g.A.xm=function(){this.U.xm()};
g.A.O0=function(F,k,z){k=k===void 0?!1:k;z=z===void 0?{}:z;this.policy.Y?this.j.O0(F,k,z):this.Y.O0(F,k,z)};
g.A.At=function(F,k){if(!this.B)return!1;var z=this.videoTrack.Y.index.kA(F);return this.B.At(F,k,z)};
g.A.xF=function(F,k){if(this.B&&this.U.xF(F,this.B))return iY6(this,this.timestampOffset-k),yA(this),this.policy.W&&(ZY(this.b$),J4(this.audioTrack),J4(this.videoTrack),this.f$()),!0;k=this.videoTrack.Y.index.kA(F);this.handleError("ad.skipfailed",{dec:!!this.B,t:F.toFixed(3),sq:k});return!1};
g.A.getManifest=function(){return this.b$};
g.A.isOffline=function(){return!!this.La.getVideoData().cotn};
g.A.cI=function(F,k){this.La.cI(F,k)};
g.A.a5=function(F){if(this.policy.Y)this.L.jb(!0,"utc"),this.Ib();else{var k=this.La.getVideoData().q4;if(k){var z=this.W;z.w$=F;z.q4=k;Kj(this)}}};
g.A.pw=function(F){this.videoTrack.B=!1;this.audioTrack.B=!1;this.rR.L=!1;this.La.pw(F)};
g.A.Jc=function(F){this.rR.Jc(F-this.Hj())};
g.A.Wt=function(){this.La.Wt()};
g.A.X2=function(F){F!==this.policy.Ji&&((this.policy.Ji=F)||this.Ib())};
g.A.qe=function(F,k){var z=this.audioTrack.xu,x=this.videoTrack.xu;z&&x&&(z.remove(F,k),x.remove(F,k))};
g.A.w0=function(F){this.La.w0(F)};
g.A.YQ=function(F){this.La.YQ(F)};
g.A.e3=function(){return this.La.e3()};
g.A.Xy=function(){ZY(this.b$);this.f$()};g.A=g.KA.prototype;g.A.kM=function(F,k,z,x,D,e){return this.qR.kM(F,k,z,x,D,e)};
g.A.CH=function(F,k,z,x,D,e){return this.qR.CH(F,k,z,x,D,e)};
g.A.YH=function(F){return this.qR.YH(F)};
g.A.Da=function(F){this.qR.Da(F)};
g.A.JL=function(F,k,z,x){return this.qR.JL(F,k,z,x)};
g.A.xm=function(){this.qR.xm()};
g.A.At=function(F,k,z){return this.qR.At(F,k,z)};
g.A.Wn=function(F,k){this.qR.Wn(F,k)};
g.A.FR=function(){this.qR.FR()};
g.A.Fh=zp(62);g.A.HN=function(F,k,z){this.qR.HN(F,k,z)};
g.A.pB=zp(65);g.A.Q$=function(F,k,z,x,D,e,C,p,E){this.qR.Q$(F,k,z,x,D,e,C,p,E)};
g.A.qa=function(F){this.qR.qa(F)};
g.A.vD=function(F){return this.qR.vD(F)};
g.A.d6=function(F){return this.qR.d6(F)};g.T(Wi,g.uG);g.T(Fp,Wi);Fp.prototype.S=function(F,k){if(F&&k){var z=Number(iy(F,"cpi"))*1+1;isNaN(z)||z<=0||z<this.U?(this.j.stop(),this.L.stop(),this.U=-1,this.Y={}):(z>this.U&&(this.U=z,g.SI(this.Y)||(this.Y={},this.j.stop(),this.L.stop())),this.Y[k]=F,g.WN(this.L))}};
Fp.prototype.W=function(){for(var F=g.l(Object.keys(this.Y)),k=F.next();!k.done;k=F.next()){var z=k.value;k=this.publish;for(var x=this.U,D=this.Y[z].match(nw),e=[],C=g.l(D[6].split("&")),p=C.next();!p.done;p=C.next())p=p.value,p.indexOf("cpi=")===0?e.push("cpi="+x.toString()):p.indexOf("ek=")===0?e.push("ek="+g.D8(z)):e.push(p);D[6]="?"+e.join("&");z="skd://"+D.slice(2).join("");D=z.length*2;x=new Uint8Array(D+4);x[0]=D%256;x[1]=(D-x[0])/256;for(D=0;D<z.length;++D)x[D*2+4]=z.charCodeAt(D);k.call(this,
"rotated_need_key_info_ready",new u9(x,"fairplay",!0))}this.Y={}};
Fp.prototype.h4=function(){this.Y={};Wi.prototype.h4.call(this)};g.T(kO,Wi);
kO.prototype.W=function(F){var k;a:{if((k=F.cryptoPeriodIndex)&&this.Y.length>0)for(var z=g.l(this.Y),x=z.next();!x.done;x=z.next())if(k===x.value.info.cryptoPeriodIndex){k=!0;break a}k=!1}if(!k){k=(0,g.VE)();a:{z=F.cryptoPeriodIndex;if(!isNaN(z)){x=g.l(this.U.values());for(var D=x.next();!D.done;D=x.next())if(Math.abs(D.value.cryptoPeriodIndex-z)<=1){z=!0;break a}}z=!1}z?(z=F.Y,z=Math.max(0,Math.random()*((isNaN(z)?120:z)-30))*1E3):z=0;this.publish("log_qoe",{wvagt:"delay."+z,cpi:F.cryptoPeriodIndex,reqlen:this.Y.length,
ignore:this.j});z<=0?CAp(this,F):this.j||(this.Y.push({time:k+z,info:F}),g.WN(this.L,z))}};
kO.prototype.h4=function(){this.Y=[];Wi.prototype.h4.call(this)};var qM={},qJY=(qM.DRM_TRACK_TYPE_AUDIO="AUDIO",qM.DRM_TRACK_TYPE_SD="SD",qM.DRM_TRACK_TYPE_HD="HD",qM.DRM_TRACK_TYPE_UHD1="UHD1",qM);g.T(Epa,g.S);g.T(uhx,g.uG);g.A=uhx.prototype;g.A.Qe=function(F){var k=this;this.z4()||F.size<=0||(F.forEach(function(z,x){var D=JQ(k.L)?x:z;x=new Uint8Array(JQ(k.L)?z:x);JQ(k.L)&&PAa(x);z=g.mv(x,4);PAa(x);x=g.mv(x,4);k.Y[z]?k.Y[z].status=D:k.Y[x]?k.Y[x].status=D:k.Y[z]={type:"",status:D};k.z1=[];xO(k,k.Y[z].type)&&k.z1.push(vpR(k.Y[z].type))}),txR(this,","),oI(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))};
g.A.error=function(F,k,z,x){this.z4()||(this.publish("licenseerror",F,k,z,x),F==="drm.provision"&&(F=(Date.now()-this.S)/1E3,this.S=NaN,this.publish("ctmp","provf",{et:F.toFixed(3)})));VQ(k)&&this.dispose()};
g.A.shouldRetry=function(F,k){return!F&&this.requestNumber===k.requestNumber};
g.A.h4=function(){this.Y={};g.uG.prototype.h4.call(this)};
g.A.rH=function(){var F={ctype:this.B.contentType||"",length:this.B.initData.length,requestedKeyIds:this.t4,cryptoPeriodIndex:this.cryptoPeriodIndex};this.U&&(F.keyStatuses=this.Y);return F};
g.A.getInfo=function(){var F=this.j.join();if(zc(this)){var k=new Set,z;for(z in this.Y)this.Y[z].status!=="usable"&&k.add(this.Y[z].type);F+="/UKS."+Array.from(k)}return F+="/"+this.cryptoPeriodIndex};
g.A.q5=function(){return this.url};g.T(i6,g.S);g.A=i6.prototype;g.A.UG=function(F){if(this.W){var k=F.messageType||"license-request";this.W(new Uint8Array(F.message),k)}};
g.A.Qe=function(){this.G&&this.G(this.Y.keyStatuses)};
g.A.onClosed=function(){this.z4()||g.ng("xboxone")&&this.U&&this.U("closedShouldNotRetry")};
g.A.J_=function(F){this.W&&this.W(F.message,"license-request")};
g.A.Gg=function(F){if(this.U){if(this.L){var k=this.L.error.code;F=this.L.error.systemCode}else k=F.errorCode,F=F.systemCode;this.U("t.prefixedKeyError;c."+k+";sc."+F,k,F)}};
g.A.ID=function(){this.S&&this.S()};
g.A.update=function(F){var k=this;if(this.Y)return this.Y.update(F).then(null,td(function(z){Vxp(k,"t.update",z)}));
this.L?this.L.update(F):this.element.addKey?this.element.addKey(this.B.keySystem,F,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.B.keySystem,F,this.initData,this.sessionId);return IS()};
g.A.h4=function(){this.Y&&(this.K?this.Y.close().catch(g.yI):this.Y.close());this.element=null;g.S.prototype.h4.call(this)};g.T(DU,g.S);g.A=DU.prototype;g.A.setServerCertificate=function(){return this.L.setServerCertificate?this.Y.flavor==="widevine"&&this.Y.GR?this.L.setServerCertificate(this.Y.GR):gi(this.Y)&&this.Y.kG?this.L.setServerCertificate(this.Y.kG):null:null};
g.A.createSession=function(F,k){var z=F.initData;if(this.Y.keySystemAccess){k&&k("createsession");var x=this.L.createSession();R3(this.Y)?z=a9I(z,this.Y.kG):gi(this.Y)&&(z=eyR(z)||new Uint8Array(0));k&&k("genreq");F=x.generateRequest(F.contentType,z);var D=new i6(null,null,null,x,null,this.G);F.then(function(){k&&k("genreqsuccess")},td(function(C){Vxp(D,"t.generateRequest",C)}));
return D}if(di(this.Y))return gFM(this,z);if(yg(this.Y))return RCH(this,z);if((x=this.element)==null?0:x.generateKeyRequest)this.element.generateKeyRequest(this.Y.keySystem,z);else{var e;(e=this.element)==null||e.webkitGenerateKeyRequest(this.Y.keySystem,z)}return this.j=new i6(this.element,this.Y,z,null,null,this.G)};
g.A.aY=function(F){var k=Yfn(this,F);k&&k.J_(F)};
g.A.Pm=function(F){var k=Yfn(this,F);k&&k.Gg(F)};
g.A.Qc=function(F){var k=Yfn(this,F);k&&k.ID(F)};
g.A.getMetrics=function(){if(this.L&&this.L.getMetrics)try{var F=this.L.getMetrics()}catch(k){}return F};
g.A.h4=function(){this.U=this.L=null;var F;(F=this.j)==null||F.dispose();F=g.l(Object.values(this.S));for(var k=F.next();!k.done;k=F.next())k.value.dispose();this.S={};g.S.prototype.h4.call(this);delete this.element};g.A=$O.prototype;g.A.get=function(F){F=this.findIndex(F);return F!==-1?this.values[F]:null};
g.A.remove=function(F){F=this.findIndex(F);F!==-1&&(this.keys.splice(F,1),this.values.splice(F,1))};
g.A.removeAll=function(){this.keys=[];this.values=[]};
g.A.set=function(F,k){var z=this.findIndex(F);z!==-1?this.values[z]=k:(this.keys.push(F),this.values.push(k))};
g.A.findIndex=function(F){return g.LC(this.keys,function(k){return g.p8(F,k)})};g.T(LTp,g.uG);g.A=LTp.prototype;g.A.GD4=function(F){this.y3({onecpt:1});F.initData&&WTx(this,new Uint8Array(F.initData),F.initDataType)};
g.A.Y3U=function(F){this.y3({onndky:1});WTx(this,F.initData,F.contentType)};
g.A.Rl=function(F){this.y3({onneedkeyinfo:1});this.YG.V("html5_eme_loader_sync")&&(this.G.get(F.initData)||this.G.set(F.initData,F));KT9(this,F)};
g.A.sU=function(F){this.U.push(F);j6(this)};
g.A.createSession=function(F){var k=kgp(this)?xsx(F):g.mv(F.initData);this.L.get(k);this.mp=!0;F=new uhx(this.videoData,this.YG,F,this.drmSessionId);this.L.set(k,F);F.subscribe("ctmp",this.Ek,this);F.subscribe("keystatuseschange",this.Qe,this);F.subscribe("licenseerror",this.oR,this);F.subscribe("newlicense",this.bZ,this);F.subscribe("newsession",this.xp,this);F.subscribe("sessionready",this.kp,this);F.subscribe("fairplay_next_need_key_info",this.cE,this);this.YG.V("html5_enable_vp9_fairplay")&&F.subscribe("qualitychange",
this.bx,this);this.YG.V("html5_enable_sabr_drm_hd720p")&&F.subscribe("sabrlicenseconstraint",this.T9K,this);l99(F,this.j)};
g.A.bZ=function(F){this.z4()||(this.y3({onnelcswhb:1}),F&&!this.heartbeatParams&&(this.heartbeatParams=F,this.publish("heartbeatparams",F)))};
g.A.xp=function(){this.z4()||(this.y3({newlcssn:1}),this.U.shift(),this.mp=!1,j6(this))};
g.A.kp=function(){if(di(this.Y)&&(this.y3({onsnrdy:1}),this.cR--,this.cR===0)){var F=this.Qh,k,z;(k=F.element)==null||(z=k.msSetMediaKeys)==null||z.call(k,F.U)}};
g.A.Qe=function(F){if(!this.z4()){!this.yh&&this.videoData.V("html5_log_drm_metrics_on_key_statuses")&&(otk(this),this.yh=!0);this.y3({onksch:1});var k=this.bx;if(!zc(F)&&g.o9&&F.L.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var z="large";else{z=[];var x=!0;if(zc(F))for(var D=g.l(Object.keys(F.Y)),e=D.next();!e.done;e=D.next())e=e.value,F.Y[e].status==="usable"&&z.push(F.Y[e].type),F.Y[e].status!=="unknown"&&(x=!1);if(!zc(F)||x)z=F.j;z=Uax(z)}k.call(this,z);this.publish("keystatuseschange",
F)}};
g.A.Ek=function(F,k){this.z4()||this.publish("ctmp",F,k)};
g.A.cE=function(F,k){this.z4()||this.publish("fairplay_next_need_key_info",F,k)};
g.A.oR=function(F,k,z,x){this.z4()||(this.videoData.V("html5_log_drm_metrics_on_error")&&otk(this),this.publish("licenseerror",F,k,z,x))};
g.A.Wr=function(){return this.B};
g.A.bx=function(F){var k=g.pt("auto",F,!1,"l");if(this.videoData.T1){if(this.B.VZ(k))return}else if(RIa(this.B,F))return;this.B=k;this.publish("qualitychange");this.y3({updtlq:F})};
g.A.T9K=function(F){this.videoData.sabrLicenseConstraint=F};
g.A.h4=function(){this.Y.keySystemAccess&&this.element&&(this.t4?this.element.setMediaKeys(null).catch(g.yI):this.element.setMediaKeys(null));this.element=null;this.U=[];for(var F=g.l(this.L.values()),k=F.next();!k.done;k=F.next())k=k.value,k.unsubscribe("ctmp",this.Ek,this),k.unsubscribe("keystatuseschange",this.Qe,this),k.unsubscribe("licenseerror",this.oR,this),k.unsubscribe("newlicense",this.bZ,this),k.unsubscribe("newsession",this.xp,this),k.unsubscribe("sessionready",this.kp,this),k.unsubscribe("fairplay_next_need_key_info",
this.cE,this),this.YG.V("html5_enable_vp9_fairplay")&&k.unsubscribe("qualitychange",this.bx,this),k.dispose();this.L.clear();this.S.removeAll();this.G.removeAll();this.heartbeatParams=null;g.uG.prototype.h4.call(this)};
g.A.rH=function(){for(var F={systemInfo:this.Y.rH(),sessions:[]},k=g.l(this.L.values()),z=k.next();!z.done;z=k.next())F.sessions.push(z.value.rH());return F};
g.A.getInfo=function(){return this.L.size<=0?"no session":""+this.L.values().next().value.getInfo()+(this.W?"/KR":"")};
g.A.y3=function(F,k){k=k===void 0?!1:k;this.z4()||(Pw(F),(this.YG.Jp()||k)&&this.publish("ctmp","drmlog",F))};g.T($79,g.S);g.A=$79.prototype;g.A.QA=function(){return!!this.jM};
g.A.rz=function(){return this.L};
g.A.handleError=function(F){var k=this;EtR(this,F);if((F.errorCode!=="html5.invalidstate"&&F.errorCode!=="fmt.unplayable"&&F.errorCode!=="fmt.unparseable"||!pi6(this,F.errorCode,F.details))&&!uc5(this,F)){if(this.i$.Qh!=="yt"&&q4I(this,F)&&this.videoData.Mo&&(0,g.VE)()/1E3>this.videoData.Mo&&this.i$.Qh==="hm"){var z=Object.assign({e:F.errorCode},F.details);z.stalesigexp="1";z.expire=this.videoData.Mo;z.init=this.videoData.AY/1E3;z.now=(0,g.VE)()/1E3;z.systelapsed=((0,g.VE)()-this.videoData.AY)/1E3;
F=new O3(F.errorCode,z,2);this.La.qk(F.errorCode,2,"SIGNATURE_EXPIRED",Pw(F.details))}if(VQ(F.severity)){var x;z=(x=this.La.aU)==null?void 0:x.Y.Y;if(this.i$.V("html5_use_network_error_code_enums"))if(Xin(F)&&z&&z.isLocked())var D="FORMAT_UNAVAILABLE";else if(this.i$.S||F.errorCode!=="auth"||F.details.rc!==429)F.errorCode==="ump.spsrejectfailure"&&(D="HTML5_SPS_UMP_STATUS_REJECTED");else{D="TOO_MANY_REQUESTS";var e="6"}else Xin(F)&&z&&z.isLocked()?D="FORMAT_UNAVAILABLE":this.i$.S||F.errorCode!=="auth"||
F.details.rc!=="429"?F.errorCode==="ump.spsrejectfailure"&&(D="HTML5_SPS_UMP_STATUS_REJECTED"):(D="TOO_MANY_REQUESTS",e="6");this.La.qk(F.errorCode,F.severity,D,Pw(F.details),e)}else this.La.publish("nonfatalerror",F),x=/^pp/.test(this.videoData.clientPlaybackNonce),this.He(F.errorCode,F.details),x&&F.errorCode==="manifest.net.connect"&&(F="https://web.archive.org/web/20250411103644/https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.VE)(),tq(F,"manifest",function(C){k.S=!0;k.UK("pathprobe",C)},function(C){k.He(C.errorCode,
C.details)}))}};
g.A.UK=function(F,k){this.La.Ap().UK(F,k)};
g.A.He=function(F,k){k=Pw(k);this.La.Ap().He(F,k)};TSC.prototype.lS=function(F,k){return(k===void 0?0:k)?{XS:F?A7(this,F):y6,AM:F?tNR(this,F):y6,GrQ:F?Gga(this,F):y6,RqG:F?VN6(this,F.videoData):y6,dh:F?Izp(this,F.videoData,F):y6,AHp:F?rAp(this,F):y6,N$K:htn(this)}:{XS:F?A7(this,F):y6}};
TSC.prototype.V=function(F){return this.YG.V(F)};g.T(pZ,g.S);pZ.prototype.onError=function(F){if(F!=="player.fatalexception"||this.provider.V("html5_exception_to_health"))F==="sabr.fallback"&&(this.encounteredSabrFallback=!0),F.match(aa7)?this.networkErrorCount++:this.nonNetworkErrorCount++};
pZ.prototype.send=function(){if(!(this.U||this.Y<0)){S45(this);var F=g.fA(this.provider)-this.Y,k="PLAYER_PLAYBACK_STATE_UNKNOWN",z=this.playerState.YA;this.playerState.isError()?k=z&&z.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.n(this.playerState,2)?k="PLAYER_PLAYBACK_STATE_ENDED":g.n(this.playerState,64)?k="PLAYER_PLAYBACK_STATE_UNSTARTED":g.n(this.playerState,16)||g.n(this.playerState,32)?k="PLAYER_PLAYBACK_STATE_SEEKING":g.n(this.playerState,1)&&g.n(this.playerState,
4)?k="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.n(this.playerState,1)?k="PLAYER_PLAYBACK_STATE_BUFFERING":g.n(this.playerState,4)?k="PLAYER_PLAYBACK_STATE_PAUSED":g.n(this.playerState,8)&&(k="PLAYER_PLAYBACK_STATE_PLAYING");z=GS$[lx(this.provider.videoData)];a:switch(this.provider.YG.playerCanaryState){case "canary":var x="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":x="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:x="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var D=bA5(this.provider),
e=this.L<0?F:this.L-this.Y;F=this.provider.YG.Nk+36E5<(0,g.VE)();k={started:this.L>=0,stateAtSend:k,joinLatencySecs:e,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:x,playerCanaryStage:D,isAd:this.provider.videoData.isAd(),liveMode:z,hasDrm:!!g.me(this.provider.videoData),isGapless:this.provider.videoData.B,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,
encounteredSabrFallback:this.encounteredSabrFallback,isSabr:$J(this.provider.videoData)};F||g.NA("html5PlayerHealthEvent",k);this.U=!0;this.dispose()}};
pZ.prototype.h4=function(){this.U||this.send();window.removeEventListener("error",this.tX);window.removeEventListener("unhandledrejection",this.tX);g.S.prototype.h4.call(this)};
var aa7=/\bnet\b/;g.T(JAC,g.S);JAC.prototype.h4=function(){Rtx(this);g.S.prototype.h4.call(this)};var gtR=/[?&]cpn=/;g.T(EZ,g.S);EZ.prototype.flush=function(){var F={};this.L&&(F.pe=this.L);this.Y.length>0&&(F.pt=this.Y.join("."));this.Y=[];return F};
EZ.prototype.stop=function(){var F=this,k,z,x;return g.O(function(D){if(D.Y==1)return g.lD(D,2),g.c(D,(k=F.j)==null?void 0:k.stop(),4);if(D.Y!=2)return(z=D.L)&&F.logTrace(z),g.sC(D,0);x=g.rI(D);F.L=WtI(x.message);g.Tp(D)})};
EZ.prototype.logTrace=function(F){this.encoder.reset();this.encoder.add(1);this.encoder.add(F.resources.length);for(var k=g.l(F.resources),z=k.next();!z.done;z=k.next()){z=z.value.replace("https://web.archive.org/web/20250411103644/https://www.youtube.com/s/","");this.encoder.add(z.length);for(var x=0;x<z.length;x++)this.encoder.add(z.charCodeAt(x))}this.encoder.add(F.frames.length);k=g.l(F.frames);for(z=k.next();!z.done;z=k.next()){z=z.value;this.encoder.add(z.name.length);for(x=0;x<z.name.length;x++)this.encoder.add(z.name.charCodeAt(x));
AJ(this.encoder,z.resourceId);AJ(this.encoder,z.line);AJ(this.encoder,z.column)}this.encoder.add(F.samples.length);k=g.l(F.samples);for(z=k.next();!z.done;z=k.next())z=z.value,this.encoder.add(Math.trunc(z.timestamp)),AJ(this.encoder,z.stackId);this.encoder.add(F.stacks.length);F=g.l(F.stacks);for(k=F.next();!k.done;k=F.next())k=k.value,this.encoder.add(k.frameId),AJ(this.encoder,k.parentId);F=this.encoder.Y9();this.U+=F.length;this.U<1E7&&this.Y.push(F)};
EZ.prototype.h4=function(){this.stop();g.S.prototype.h4.call(this)};var kcx=[2,5,30];g.l6=sz(function(){var F="";try{var k=g.Ci("CANVAS").getContext("webgl");k&&(k.getExtension("WEBGL_debug_renderer_info"),F=k.getParameter(37446),F=F.replace(/[ :]/g,"_"))}catch(z){}return F});g.T(g.u6,g.S);g.A=g.u6.prototype;g.A.y4G=function(){var F=g.fA(this.provider);iZD(this,F)};
g.A.mF=function(){return this.Bd};
g.A.TC=function(){return{x0:this.x0,Vu:this.Vu}};
g.A.nB=function(F,k){this.x0=F;this.Vu=k};
g.A.OQ=function(F){if(!this.RS){this.RS=!0;var k="";switch(F){case 1:k="proximaui";break;case 2:k=V7n(this.provider.videoData)?"proximawpcc":this.provider.videoData.V("html5_enable_proxima")||this.provider.videoData.V("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:k="proximaauto"}k!==""&&Tc(this,k)}};
g.A.WI=function(F){wh(this,"lwc",[F.W8?F.W8.toFixed():"",F.zY?F.zY.toFixed():"",F.cR?(F.cR*1E3).toFixed():"",F.uL?(F.uL*1E3).toFixed():"",F.We?(F.We*1E3).toFixed():""].join(":"))};
g.A.reportStats=function(F){F=F===void 0?NaN:F;if(!this.z4()&&(F=F>=0?F:g.fA(this.provider),this.mp?SDA.has(this.fv)&&(this.Y.size||(this.fv==="PL"?F>=this.L+30:F<=this.t4+30||F>=this.L+1200&&F<=this.t4+86400))&&(g.Nq(this,F,"vps",[this.fv]),this.L=F):["PL","B","S"].indexOf(this.fv)>-1&&(this.Y.size||F>=this.L+30)&&(g.Nq(this,F,"vps",[this.fv]),this.L=F),this.Y.size)){this.sequenceNumber===7E3&&g.yI(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){mO(this,F);var k=this.provider.La.bS();
k=g.l(k);for(var z=k.next();!z.done;z=k.next())z=z.value,this.UK(z.key,z.value);k=F;z=this.provider.La.Gp();var x=z.droppedVideoFrames||0,D=z.totalVideoFrames||0,e=x-this.x0,C=D&&!this.Vu;x>z.totalVideoFrames||e>5E3?phk(this,"html5.badframedropcount","df."+x+";tf."+z.totalVideoFrames):(e>0||C)&&g.Nq(this,k,"df",[e]);this.x0=x;this.Vu=D;this.K>0&&(g.Nq(this,F,"glf",[this.K]),this.K=0);$z.isActive()&&(F=$z.WQ(),Object.keys(F).length>0&&this.UK("profile",F));this.qD&&Tc(this,"lwnmow");this.provider.YG.Jp()&&
this.provider.V("html5_record_now")&&this.UK("now",{wt:(0,g.VE)()});F={};this.provider.videoData.L&&(F.fmt=this.provider.videoData.L.itag,(k=this.provider.videoData.j)&&k.itag!==F.fmt&&(F.afmt=k.itag));F.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(F.adcpn=this.adCpn);this.U9&&(F.addocid=this.U9);this.contentCpn&&(F.ccpn=this.contentCpn);this.PR&&(F.cdocid=this.PR);this.provider.videoData.cotn&&(F.cotn=this.provider.videoData.cotn);F.el=Ik(this.provider.videoData);F.content_v=ak(this.provider.videoData);
F.ns=this.provider.YG.Qh;F.fexp=QQn(this.provider.YG.experiments).toString();F.cl=(743363614).toString();(k=this.provider.videoData.adFormat||this.adFormat)&&(F.adformat=k);(k=lx(this.provider.videoData))&&(F.live=k);this.provider.videoData.sz()&&(F.drm=1,this.provider.videoData.W&&(F.drm_system=B$7[this.provider.videoData.W.flavor]||0),this.provider.videoData.X1&&(F.drm_product=this.provider.videoData.X1));pg()&&this.provider.videoData.S&&(F.ctt=this.provider.videoData.S,F.cttype=this.provider.videoData.qZ,
this.provider.videoData.mdxEnvironment&&(F.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(F.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.Wp&&(F.dai_fallback="1")):this.provider.videoData.KJ?F.dai="cs":this.provider.videoData.gD&&(F.dai="disabled");F.seq=this.sequenceNumber++;if(this.provider.videoData.Re){if(k=this.provider.videoData.Re,F&&k)for(k.ns==="3pp"&&(F.ns="3pp"),this.P7.has(k.ns)&&Tc(this,"hbps"),
k.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=k.shbpslc),this.provider.YG.experiments.Ca("html5_use_server_qoe_el_value")&&this.vR.delete("el"),z=g.l(Object.keys(k)),x=z.next();!x.done;x=z.next())x=x.value,this.vR.has(x)||(F[x]=k[x])}else F.event="streamingstats",F.docid=this.provider.videoData.videoId,F.ei=this.provider.videoData.eventId;this.isEmbargoed&&(F.embargoed="1");Object.assign(F,this.provider.YG.Y);if(k=F.seq)k={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+k,
serializedWatchEndpointLoggingContext:this.provider.videoData.kS},this.serializedHouseBrandPlayerServiceLoggingContext&&(k.serializedHouseBrandPlayerServiceLoggingContext=lr(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(k.playerResponseCpn=this.provider.videoData.playerResponseCpn),qq.length&&(k.decoderInfo=qq),this.provider.La.Lp()&&(k.transitionStitchType=4,this.Xf&&(k.timestampOffsetMsecs=this.Xf)),this.remoteControlMode&&(k.remoteControlMode=
this.remoteControlMode),this.remoteConnectedDevices.length&&(k.remoteConnectedDevices=this.remoteConnectedDevices),k=g.zx(k,NGC),k=g.mv(k,4),this.Y.set("qclc",[k]);F=g.oW("//"+this.provider.YG.Cs+"/api/stats/qoe",F);z=k="";x=g.l(this.Y.entries());for(D=x.next();!D.done;D=x.next())e=g.l(D.value),D=e.next().value,e=e.next().value,C=void 0,(C=e)!=null&&C.join&&(D="&"+D+"="+e.join(","),D.length>100?z+=D:k+=D);jIR(this,F+k,z.replace(/ /g,"%20"))}this.Y.clear()}};
g.A.YQ=function(F){this.qD=F};
g.A.cW=function(){if(this.provider.videoData.W){var F=this.provider.videoData.W;Tc(this,"eme-"+(F.keySystemAccess?"final":di(F)?"ms":R3(F)?"ytfp":yg(F)?"safarifp":"nonfinal"))}};
g.A.Qa=zp(59);g.A.PO=function(F){this.isEmbargoed=F};
g.A.tH=zp(36);g.A.vc=zp(42);g.A.onPlaybackRateChange=function(F){var k=g.fA(this.provider);F&&F!==this.Vz&&(g.Nq(this,k,"rate",[F]),this.Vz=F);this.mp||this.reportStats(k)};
g.A.jj=zp(30);g.A.getPlayerState=function(F){if(g.n(F,128))return"ER";if(g.n(F,2048))return"B";if(g.n(F,512))return"SU";if(g.n(F,16)||g.n(F,32))return"S";if(F.isOrWillBePlaying()&&g.n(F,64))return"B";var k=bWl[wB(F)];g.Vi(this.provider.YG)&&k==="B"&&this.provider.La.getVisibilityState()===3&&(k="SU");k==="B"&&g.n(F,4)&&(k="PB");return k};
g.A.h4=function(){g.S.prototype.h4.call(this);g.QL(this.S);g.QL(this.uL)};
g.A.mT=function(F){this.isOffline=F;g.Nq(this,g.fA(this.provider),"is_offline",[this.isOffline?"1":"0"])};
g.A.UK=function(F,k,z){var x=this.ZR.indexOf(F)!==-1;x||this.ZR.push(F);if(!z||!x){var D=typeof k!=="string"?Pw(k):k;D=Xhn(D);if(!z&&!/^t[.]/.test(D)){var e=g.fA(this.provider)*1E3;D="t."+e.toFixed()+";"+D}wh(this,"ctmp",F+":"+D);this.logger.debug(function(){return"ctmp "+F+" "+D});
e8C(this);return e}};
g.A.SC=function(F,k,z){this.W={OpJ:Number(this.UK("glrem",{nst:F.toFixed(),rem:k.toFixed(),ca:+z})),aD:F,Jht:k,isAd:z}};
g.A.Sw=function(F,k,z){g.Nq(this,g.fA(this.provider),"ad_playback",[F,k,z])};
g.A.Tw=function(F,k){var z=g.fA(this.provider)*1E3;wh(this,"daism","t."+z.toFixed(0)+";smw."+(F*1E3).toFixed(0)+";smo."+(k*1E3).toFixed(0))};
g.A.resume=function(){var F=this;this.provider.YG.Jp()&&this.UK("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.S)?C6H(this):this.S=g.TE(function(){F.reportStats()},1E4)};
var NM={},bWl=(NM[5]="N",NM[-1]="N",NM[3]="B",NM[0]="EN",NM[2]="PA",NM[1]="PL",NM[-1E3]="ER",NM[1E3]="N",NM),SDA=new Set(["PL","B","S"]),qq=[];sZ.prototype.uS=function(){return this.Y};
sZ.prototype.update=function(){if(this.G){var F=this.P8()||0,k=g.fA(this.provider);F>=this.provider.La.getDuration()-.1&&(this.previouslyEnded=!0);if(F!==this.Y||mqY(this,F,k)){var z;if(!(z=F<this.Y||F-this.Y>k-this.rV+2||mqY(this,F,k))){z=this.provider.La.getVolume();var x=z!==this.K,D=this.provider.La.isMuted()?1:0;D!==this.B?(this.B=D,z=!0):(!x||this.j>=0||(this.K=z,this.j=k),z=k-this.j,this.j>=0&&z>2?(this.j=-1,z=!0):z=!1)}z&&(rh(this),this.U=F);this.rV=k;this.Y=F}}};
sZ.prototype.P8=function(){var F=this.provider.La.P8();return this.provider.YG.V("html5_disable_live_dvr_shrink_for_cdm_vss")&&Jb(this.provider.videoData)?F+this.provider.La.Hj():F};Thn.prototype.send=function(F){var k=this;if(!this.NJ){var z=QIn(this),x=g.oW(this.uri,z);this.YG.V("vss_through_gel_double")&&h8a(x);this.mp&&!this.YG.V("html5_simplify_pings")?Uqn(this,x):lUI(this,F).then(function(D){k.mp&&(D=D||{},D.method="POST",D.postParams={atr:k.attestationResponse});LtC(x,D,{token:k.PR,hV:k.UH,mdxEnvironment:k.mdxEnvironment},k.YG,F,k.Xf,k.isFinal&&k.H8||k.yh||k.U&&k.Nk)});
this.NJ=!0}};
Thn.prototype.L=function(F){F===void 0&&(F=NaN);return Number(F.toFixed(3)).toString()};
var u_={},Bhx=(u_.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,u_.LIVING_ROOM_APP_MODE_MAIN=1,u_.LIVING_ROOM_APP_MODE_KIDS=2,u_.LIVING_ROOM_APP_MODE_MUSIC=3,u_.LIVING_ROOM_APP_MODE_UNPLUGGED=4,u_.LIVING_ROOM_APP_MODE_GAMING=5,u_),wc={},r7x=(wc.EMBEDDED_PLAYER_MODE_UNKNOWN=0,wc.EMBEDDED_PLAYER_MODE_DEFAULT=1,wc.EMBEDDED_PLAYER_MODE_PFP=2,wc.EMBEDDED_PLAYER_MODE_PFL=3,wc);g.T(Gc,g.S);g.A=Gc.prototype;g.A.u7=function(){this.Y.update();HZx(this)&&(vOY(this),c7I(this),this.Rj())};
g.A.h4=function(){g.S.prototype.h4.call(this);ZU(this);upY(this.Y)};
g.A.rH=function(){return QIn(UZ(this,"playback"))};
g.A.Rj=function(){this.provider.videoData.G.eventLabel=Ik(this.provider.videoData);this.provider.videoData.G.playerStyle=this.provider.YG.playerStyle;this.provider.videoData.sF&&(this.provider.videoData.G.feature="pyv");this.provider.videoData.G.vid=this.provider.videoData.videoId;var F=this.provider.videoData.G;var k=this.provider.videoData;k=k.isAd()||!!k.sF;F.isAd=k};
g.A.y_=function(F){var k=UZ(this,"engage");k.t4=F;return sIa(k,y7n(this.provider))};J79.prototype.isEmpty=function(){return this.endTime===this.startTime};ch.prototype.V=function(F){return this.YG.V(F)};
ch.prototype.getCurrentTime=function(F){if(this.V("html5_ssap_current_time_for_logging_refactor")){var k=this.La.Lp();if(k&&(F=F||k.wp()))return x5(k,F)}else if(g.Mk(this.videoData)){var z=this.La.Lp();if(z)return F=this.La.getCurrentTime(),z=(((k=HV(z,F*1E3))==null?void 0:k.US)||0)/1E3,F-z}return this.La.getCurrentTime()};
ch.prototype.P8=function(F){if(this.V("html5_ssap_current_time_for_logging_refactor")){var k=this.La.Lp();if(k&&(F=F||k.wp()))return x5(k,F)}else if(g.Mk(this.videoData)){var z=this.La.Lp();if(z)return F=this.La.P8(),z=(((k=HV(z,F*1E3))==null?void 0:k.US)||0)/1E3,F-z}return this.La.P8()};
var R85={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.T(g.Ph,g.S);g.A=g.Ph.prototype;g.A.u7=function(){if(this.provider.videoData.enableServerStitchedDai&&this.v5){var F;(F=this.U.get(this.v5))==null||F.u7()}else this.Y&&this.Y.u7()};
g.A.PO=function(F){this.qoe&&this.qoe.PO(F)};
g.A.tH=zp(35);g.A.vc=zp(41);g.A.Tw=function(F,k){this.qoe&&this.qoe.Tw(F,k)};
g.A.Pr=function(){if(this.provider.videoData.enableServerStitchedDai&&this.v5){var F;(F=this.U.get(this.v5))!=null&&rh(F.Y)}else this.Y&&rh(this.Y.Y)};
g.A.He=function(F,k){this.qoe&&phk(this.qoe,F,k);if(this.L)this.L.onError(F)};
g.A.onPlaybackRateChange=function(F){if(this.qoe)this.qoe.onPlaybackRateChange(F);this.Y&&rh(this.Y.Y)};
g.A.Qa=zp(58);g.A.UK=function(F,k,z){this.qoe&&this.qoe.UK(F,k,z)};
g.A.SC=function(F,k,z){this.qoe&&this.qoe.SC(F,k,z)};
g.A.OQ=function(F){var k;(k=this.qoe)==null||k.OQ(F)};
g.A.WI=function(F){var k;(k=this.qoe)==null||k.WI(F)};
g.A.YQ=function(F){this.qoe&&this.qoe.YQ(F)};
g.A.Sw=function(F,k,z){this.qoe&&this.qoe.Sw(F,k,z)};
g.A.jj=zp(29);g.A.mF=function(){if(this.qoe)return this.qoe.mF()};
g.A.rH=function(){if(this.provider.videoData.enableServerStitchedDai&&this.v5){var F,k;return(k=(F=this.U.get(this.v5))==null?void 0:F.rH())!=null?k:{}}return this.Y?this.Y.rH():{}};
g.A.TC=function(){var F;return(F=this.qoe)==null?void 0:F.TC()};
g.A.nB=function(F,k){var z;(z=this.qoe)==null||z.nB(F,k)};
g.A.y_=function(F){return this.Y?this.Y.y_(F):function(){}};
g.A.Rj=function(){this.Y&&this.Y.Rj()};
g.A.getVideoData=function(){return this.provider.videoData};
g.A.resume=function(){this.qoe&&this.qoe.resume()};g.T(Vm,g.S);
Vm.prototype.Nq=function(F,k,z){if(this.Y.has(F)){var x=this.Y.get(F);if(k.videoId&&!gO5(x))this.L.UK("ssap",{rlc:F}),oPR(this,F);else return}if(!this.Y.has(F)){x=new ch(k,this.YG,this.La);var D=Math.round(g.fA(this.L.provider)*1E3);x=new g.Ph(x,D);gO5(x)||this.L.UK("nqv",{vv:k.videoId});D=this.L.getVideoData();this.Y.set(F,x);if(x.qoe){var e=x.qoe,C=D.videoId||"";e.contentCpn=D.clientPlaybackNonce;e.PR=C}YZM(x);z===2&&(this.YG.V("html5_log_ad_playback_docid")?(z=this.L,z.qoe&&(z=z.qoe,x=k.MD||"",
D=k.breakType||0,k=k.videoId||"",e=this.YG.Qh||"yt",g.Nq(z,g.fA(z.provider),"ad_playback",[F,x,D,k,e]))):this.L.Sw(F,k.MD||"",k.breakType||0))}};
Vm.prototype.fh=function(F,k,z,x,D,e,C,p){if(F!==k){var E=this.Ap(F),X=this.Ap(k),q,N=F===((q=E.getVideoData())==null?void 0:q.clientPlaybackNonce),u;q=k===((u=X.getVideoData())==null?void 0:u.clientPlaybackNonce);var w;u=N?((w=E.getVideoData())==null?void 0:w.videoId)||"":"nvd";var m;w=q?((m=X.getVideoData())==null?void 0:m.videoId)||"":"nvd";N&&(E=E.qoe)!=null&&(Qm(E,4,e?4:D?2:0,k,w,z),E.reportStats());q&&(OZ(X),(k=X.qoe)!=null&&(Qm(k,4,e?5:D?3:1,F,u,x),k.reportStats()),LOH(X,new g.lH(C,X.fv)),
nOa(X));p&&oPR(this,F)}};
Vm.prototype.Ap=function(F){F=F||this.v5;return this.Y.get(F)||this.L};g.T(g.II,g.S);g.A=g.II.prototype;
g.A.Li=function(F,k){this.sync();k&&this.Y.array.length>=2E3&&this.Tn("captions",1E4);k=this.Y;if(F.length>1&&F.length>k.array.length)k.array=k.array.concat(F),k.array.sort(k.Y);else for(var z=g.l(F),x=z.next();!x.done;x=z.next())x=x.value,!k.array.length||k.Y(x,k.array[k.array.length-1])>0?k.array.push(x):g.E7(k.array,x,k.Y);F=g.l(F);for(k=F.next();!k.done;k=F.next())k=k.value,k.namespace==="ad"&&this.j("ssap",{acrsid:k.getId(),acrsst:k.start,acrset:k.end,acrscpt:k.playerType});this.U=NaN;this.sync()};
g.A.h$=function(F){F.length>1E4&&g.yI(new g.Fa("Over 10k cueRanges removal occurs with a sample: ",F[0]));if(!this.z4()){for(var k=g.l(F),z=k.next();!z.done;z=k.next())(z=z.value)&&z.namespace==="ad"&&this.j("ssap",{rcrid:z.getId(),rcst:z.start,rcet:z.end,rcpt:z.playerType});var x=new Set(F);this.L=this.L.filter(function(D){return!x.has(D)});
e_C(this.Y,x);this.sync()}};
g.A.Tn=function(F,k){var z=(isNaN(this.U)?g.n(this.La.getPlayerState(),2)?0x8000000000000:this.La.getCurrentTime()*1E3:this.U)-k;k=this.Xb().filter(function(x){return x.namespace===F&&x.end<z});
this.h$(k);return k};
g.A.Xb=function(){return this.z4()?[]:this.Y.array};
g.A.reset=function(){this.started=!1;this.W.stop();this.Y.array=[];this.L=[];this.sync()};
g.A.H7=function(F){var k=this.Xb().filter(function(z){return z.namespace===F});
this.h$(k);return k};
g.A.fu=zp(47);
g.A.J3=function(F,k){var z=[],x=DCx(this.Y,0x7ffffffffffff),D=[];this.j("ssap",{mecrs:x.length,cpn:k});x=g.l(x);for(var e=x.next();!e.done;e=x.next())e=e.value,e.active&&(this.j("ssap",{acre:e.id,st:e.start,et:e.end,cpn:k,cpt:e.playerType,pt:F}),k&&k===e.U?(D.push(e),this.j("ssap",{acrec:e.id,st:e.start,et:e.end,pt:F})):e.playerType===F&&(D.push(e),this.j("ssap",{acret:e.id,st:e.start,et:e.end})));z=z.concat(this.hF(D));pqk(this,z);z=[];k=[];x=g.l(this.L);for(e=x.next();!e.done;e=x.next())e=e.value,
e.active&&e.playerType===F&&e.start===0x7ffffffffffff&&k.push(e);z=z.concat(this.tF(k));pqk(this,z);return D.length};
g.A.hF=function(F){var k=[];if(!F.length)return k;for(var z=0;z<F.length;z++){var x=F[z];x.active&&this.L.indexOf(x)===-1&&(this.L.push(x),k.push([1,x]))}return k};
g.A.tF=function(F){var k=[];if(!F.length)return k;F.sort(g.Ec);F=g.l(F);for(var z=F.next();!z.done;z=F.next())z=z.value,this.L.splice(this.L.indexOf(z),1),k.push([2,z]);return k};
g.A.sync=function(){this.S=!0;if(!this.G){for(var F=3;this.S&&F;)this.S=!1,this.G=!0,this.Mh(),this.G=!1,F--;this.La.getPlayerState().isPlaying()&&(F=jrY(this.Y,this.U),!isNaN(F)&&F<0x7ffffffffffff&&(F=(F-this.U)/this.La.getPlaybackRate(),this.W.start(F)))}};
g.A.Mh=function(){if(this.started&&!this.z4()){this.W.stop();var F=this.La.getPlayerState();g.n(F,32)&&this.K.start();for(var k=g.n(this.La.getPlayerState(),2)?0x8000000000000:this.La.getCurrentTime()*1E3,z=this.isEnded(F,k),x=[],D=[],e=g.l(this.L),C=e.next();!C.done;C=e.next())C=C.value,C.active&&(z?C.end<0x8000000000000:!C.contains(k))&&D.push(C);x=x.concat(this.tF(D));e=D=null;z?(F=DCx(this.Y,0x7ffffffffffff),D=F.filter(function(p){return p.end<0x8000000000000}),e=$Cn(this.Y)):F=this.U<=k&&uN(F)?
inC(this.Y,this.U,k):DCx(this.Y,k);
x=x.concat(this.hF(F));D&&(x=x.concat(this.tF(D)));e&&(x=x.concat(this.hF(e)));this.U=k;pqk(this,x)}};
g.A.isEnded=function(F,k){k=this.La.Sg()*1E3-k;k=this.La.Vd()&&g.n(F,1)&&k<500;return g.n(F,2)||this.La.C().V("html5_pseudogapless_shorts")&&k};
g.A.h4=function(){this.L=[];this.Y.array=[];g.S.prototype.h4.call(this)};
g.Ok.iD(g.II,{Li:"crmacr",hF:"crmncr",tF:"crmxcr",Mh:"crmis",h$:"crmrcr"});aI.prototype.add=function(F){this.Y=(this.Y+1)%this.data.length;this.data[this.Y]=F};
aI.prototype.forEach=function(F){for(var k=this.Y+1;k<this.data.length;k++)F(this.data[k]||0);for(k=0;k<=this.Y;k++)F(this.data[k]||0)};
aI.prototype.clear=function(){for(var F=this.data.length,k=0;k<F;k++)this.data[k]=0;this.L=this.Y=this.data.length-1};g.T(b6,g.uG);b6.prototype.DK=function(){return this.G};
b6.prototype.qX=function(){return this.policy.K&&this.videoData.Y?this.videoData.Y.oO:Math.max(this.W()-J7(this)*this.Y,this.videoData.oy())};g.T(gh,g.S);gh.prototype.Ib=function(){var F=this,k=this.La.S9(),z=this.La.getPlayerState();if(k&&!z.isError()){var x=k.getCurrentTime(),D=z.state===8&&x>this.Y,e=g.n(z,8)&&g.n(z,16),C=this.La.qB().isBackground()||z.isSuspended();YO(this,this.vR,e&&!C,D,"qoe.slowseek",function(){},"timeout");
var p=isFinite(this.Y);p=e&&p&&cIR(k,this.Y);var E=!x||Math.abs(x-this.Y)>10,X=this.YG.V("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),q=x===0&&this.L&&[11,10].includes(this.L);YO(this,this.dH,p&&E&&!C&&(!X||!q),D,"qoe.slowseek",function(){k.seekTo(F.Y)},"set_cmt");
E=p&&Ni(k.Ln(),this.Y);X=this.La.aU;p=!X||X.Br();var N=function(){k.seekTo(F.Y+.001)};
YO(this,this.J4,E&&p&&!C,D,"qoe.slowseek",N,"jiggle_cmt");p=function(){return F.La.eO()};
YO(this,this.u$,E&&!C,D,"qoe.slowseek",p,"new_elem");E=uN(z);q=z.isBuffering();var u=k.Ln(),w=qi(u,x),m=w>=0&&u.end(w)>x+5,h=E&&q&&m,B=this.La.getVideoData();YO(this,this.RU,x<.002&&this.Y<.002&&e&&g.Vi(this.YG)&&g.HP(B)&&!C,D,"qoe.slowseek",p,"slow_seek_shorts");YO(this,this.Qh,B.wI()&&e&&!C&&!B.mp,D,"qoe.slowseek",p,"slow_seek_gapless_shorts");YO(this,this.t4,h&&!C,E&&!q,"qoe.longrebuffer",N,"jiggle_cmt");YO(this,this.mp,h&&!C,E&&!q,"qoe.longrebuffer",p,"new_elem_nnr");if(X){var U=X.getCurrentTime();
e=k.lh();e=T8x(e,U);e=!X.isSeeking()&&x===e;YO(this,this.RS,E&&q&&e&&!C,E&&!q&&!e,"qoe.longrebuffer",function(){k.seekTo(U)},"seek_to_loader")}e={};
N=qi(u,Math.max(x-3.5,0));h=N>=0&&x>u.end(N)-1.1;var v=N>=0&&N+1<u.length?u.start(N+1)-u.end(N):9999;e.mindex=w;e.disIndex=N;e.isdisc=N>=0&&h&&v<11;e.close2edge=h;e.gapsize=v;e.buflen=u.length;this.L&&(e.seekSour=this.L);if(w=this.La.Lp()){N=w.wp();h=N!==HV(w,x*1E3).clipId;v=g.lw(this.YG.experiments,"html5_ssap_skip_seeking_offset_ms");var P=(IP(w,N)+v)/1E3;YO(this,this.yh,h&&E&&q&&!C,E&&!q,"qoe.longrebuffer",function(){k.seekTo(P)},"ssap_clip_not_match")}YO(this,this.Xf,E&&q&&!C,E&&!q,"qoe.longrebuffer",
function(){},"timeout",e);
e=z.isSuspended();e=this.La.zf()&&!e;YO(this,this.G,e,!e,"qoe.start15s",function(){F.La.mE("ad")},"ads_preroll_timeout");
w=x-this.j<.5;var I;e=!((I=this.La.Lp())==null||!I.On());h=(N=B.isAd()||e&&this.YG.experiments.Ca("html5_ssap_skip_slow_ad"))&&E&&!q&&w;I=function(){var d=F.La,W=g.Mk(d.videoData)&&d.jz,M=d.GD.getVideoData();(M&&d.videoData.isAd()&&M.KJ===d.getVideoData().KJ||!d.videoData.P5)&&!W?d.qk("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+d.videoData.videoId):kp(d.videoData,"html5_ssap_skip_slow_ad")&&W&&d.jz.On()&&(d.He(new O3("ssap.transitionfailure",{cpn:HV(d.jz,d.P8()).clipId,pcpn:d.jz.wp(),cmt:d.P8()})),
d=d.jz,W=d.playback.P8(),(W=ovk(d,W))&&fSM(d,W.wi()/1E3))};
YO(this,this.UH,h,!h,"ad.rebuftimeout",I,"skip_slow_ad");w=N&&q&&Ni(k.Ln(),x+5)&&w;YO(this,this.mY,w&&!C,!w,"ad.rebuftimeout",I,"skip_slow_ad_buf");I=z.isOrWillBePlaying()&&g.n(z,64)&&!C;YO(this,this.Xm,I,D,"qoe.start15s",function(){},"timeout");
I=!!X&&!X.IU&&z.isOrWillBePlaying();YO(this,this.cR,I,D,"qoe.start15s",p,"newElemMse");I=mx(u,0);w=g.n(z,16)||g.n(z,32);w=!C&&z.isOrWillBePlaying()&&q&&!w&&(g.n(z,64)||x===0)&&I>5;YO(this,this.kG,g.HP(B)&&w,E&&!q,"qoe.longrebuffer",function(){F.La.w0()},"reset_media_source");
YO(this,this.NJ,g.HP(B)&&w,E&&!q,"qoe.longrebuffer",p,"reset_media_element");this.j===0&&(this.S=x);w=q&&this.Y===0&&x>1&&x===this.S;YO(this,this.l$,g.HP(B)&&w,E&&!q,"qoe.slowseek",function(){k.seekTo(0)},"reseek_after_time_jump");
C=z.isOrWillBePlaying()&&!C;m=this.La.Sg()-x<6&&!m&&this.La.Vd();YO(this,this.B,B.wI()&&C&&q&&m,E&&!q,"qoe.longrebuffer",function(){F.La.eO(!1,!0)},"handoff_end_long_buffer_reload");
X=(X==null?void 0:$aI(X))||NaN;X=u.length>1||!isNaN(X)&&X-.1<=x;YO(this,this.K,xJ(B)&&C&&q&&X,E&&!q,"qoe.longrebuffer",p,"gapless_slice_append_stuck");C=xJ(B)&&this.L===104&&C&&(q||g.n(z,8)&&g.n(z,16));YO(this,this.PR,C,D,"qoe.start15s",p,"gapless_slow_start");z=!!(e&&I>5&&z.isPlaying()&&x<.1);YO(this,this.qD,z,x>.5&&E,"qoe.longrebuffer",p,"ssap_stuck_in_ad_beginning");this.j=x;this.W.start()}};
gh.prototype.He=function(F,k,z){k=this.rH(k);k.wn=z;k.wdup=this.U[F]?"1":"0";this.La.He(new O3(F,k));this.U[F]=!0};
gh.prototype.rH=function(F){F=Object.assign(this.La.rH(!0),F.rH());this.Y&&(F.stt=this.Y.toFixed(3));this.La.getVideoData().isLivePlayback&&(F.ct=this.La.getCurrentTime().toFixed(3),F.to=this.La.Hj().toFixed(3));delete F.uga;delete F.euri;delete F.referrer;delete F.fexp;delete F.vm;return F};
ym.prototype.reset=function(){this.Y=this.L=this.U=this.startTimestamp=0;this.j=!1};
ym.prototype.test=function(F){if(!this.W||this.L)return!1;if(!F)return this.reset(),!1;F=(0,g.VE)();if(!this.startTimestamp)this.startTimestamp=F,this.U=0;else if(this.U>=this.W)return this.L=F,!0;this.U+=1;return!1};
ym.prototype.rH=function(){var F={},k=(0,g.VE)();this.startTimestamp&&(F.wsd=(k-this.startTimestamp).toFixed());this.L&&(F.wtd=(k-this.L).toFixed());this.Y&&(F.wssd=(k-this.Y).toFixed());return F};g.T(t4a,g.S);g.A=t4a.prototype;g.A.setMediaElement=function(F){(this.mediaElement=F)?(this.mediaElement&&(this.W||this.U||!this.mediaElement.aT()||this.seekTo(.01,{Sr:"seektimeline_setupMediaElement"})),nZ(this)):LZ(this)};
g.A.getCurrentTime=function(){if(Mq(this.La)){if(!isNaN(this.L))return this.L}else if(!isNaN(this.L)&&isFinite(this.L))return this.L;return this.mediaElement&&JrC(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.U||0};
g.A.o0=function(){return this.NJ};
g.A.P8=function(){return this.getCurrentTime()-this.Hj()};
g.A.qX=function(){return this.Y?this.Y.qX():Infinity};
g.A.isAtLiveHead=function(F){if(!this.Y)return!1;F===void 0&&(F=this.getCurrentTime());return dh(this.Y,F)};
g.A.DK=function(){return!!this.Y&&this.Y.DK()};
g.A.seekTo=function(F,k){var z=k===void 0?{}:k;k=z.zI===void 0?!1:z.zI;var x=z.zP===void 0?0:z.zP;var D=z.AT===void 0?!1:z.AT;var e=z.FN===void 0?0:z.FN;var C=z.Sr===void 0?"":z.Sr;var p=z.seekSource===void 0?void 0:z.seekSource;var E=z.AK===void 0?!1:z.AK;var X=z.q6===void 0?!1:z.q6;z=z.CT===void 0?!1:z.CT;E&&(F+=this.Hj());$J(this.videoData)&&p===29&&(this.NJ=void 0);E=F<this.cR&&!!this.aU;var q=$J(this.videoData)&&X;if(E&&!q&&(this.La.UK("sdai",{sk2bk:F.toFixed(3),mt:(F-this.timestampOffset).toFixed(3),
lstadj:this.cR.toFixed(3)}),this.cR=NaN,this.timestampOffset-=1E3,(q=this.aU)!=null)){iY6(q,q.timestampOffset-1E3);var N=q.b$,u=new Set;for(h in N.Y){var w=N.Y[h].index,m=w.Sl();m&&!u.has(m)&&(m.startTime+=1E3,m.endTime=m.startTime+m.duration,u.add(m));w.segments.length&&(m=w.segments[w.segments.length-1],w.segments=[],w.segments.push(m))}q.B&&q.B.FR();n4(q.U,0,0,!0)}var h=F;(q=$J(this.videoData))&&X?h=!0:(N=this.V("html5_always_allow_sqless_sync")&&this.videoData.oS(),(q||N)&&C==="chunkSelectorSynchronize"?
h=!0:(q=!isFinite(h)||(this.Y?dh(this.Y,h):h>=this.xN())||!g.Uh(this.videoData),q||(h={st:h,mst:this.xN()},this.Y&&this.V("html5_high_res_seek_logging")&&(h.ht=this.Y.qX(),h.adft=Qrx(this.Y)),this.La.UK("seeknotallowed",h)),h=q));if(!h)return this.j&&(this.j=null,bnY(this)),g.ZJ(this.getCurrentTime());h=.005;X&&this.V("html5_sabr_seek_no_shift_tolerance")&&(h=0);if(Math.abs(F-this.L)<=h&&this.t4)return this.W;C&&(h=F,(this.YG.Jp()||this.V("html5_log_seek_reasons"))&&this.La.UK("seekreason",{reason:C,
tgt:h}));p&&(this.K.L=p);this.t4&&LZ(this);this.W||(this.W=new xh);F&&!isFinite(F)&&POk(this,!1);(C=z||E)||(C=F,C=!(this.videoData.isLivePlayback&&this.videoData.U&&!this.videoData.U.Y&&!(this.mediaElement&&this.mediaElement.gp()>0&&DG(this.mediaElement)>0)||p9(this.videoData)&&this.oy()===this.xN(!1)?0:isFinite(C)||!p9(this.videoData)));C||(F=KZ(this,F,D));F&&!isFinite(F)&&POk(this,!1);this.U=F;this.J4=e;this.L=F;this.S=0;this.Y&&(D=this.Y,e=F,h_D(D,e,!1),srY(D,e));D=this.La;e=F;C={zI:k,seekSource:p};
D.bu.U=e;z=D.Ey;z.mediaTime=e;z.Y=!0;C.zI&&D.t2(C);C=e>D.videoData.endSeconds&&e>D.videoData.limitedPlaybackDurationInSeconds;D.iB&&C&&isFinite(e)&&Q7Y(D);e<D.xN()-.01&&(C=Xg(D.playerState,2),g.n(C,8)&&(C=Xg(C,4)),D.FI(C));D.publish("SEEK_TO",e);this.W&&(k?x&&this.RU.start(x):(k={q6:X,seekSource:p},this.t4=!0,UCk(this,k)));(k=this.La.iB)&&F>k.start&&Q7Y(this.La);return this.W};
g.A.xN=function(F){if(!this.videoData.isLivePlayback)return MRk(this.La);var k;return zL(this.videoData)&&((k=this.mediaElement)==null?0:k.isPaused())&&this.videoData.Y?(F=this.getCurrentTime(),$xx(this.B7(F)*1E3)+F):this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&$J(this.videoData)&&this.videoData.Y?F?this.videoData.Y.PR||0:this.videoData.Y.oO||0:p9(this.videoData)&&this.videoData.yh&&this.videoData.Y?this.videoData.Y.xN()+this.timestampOffset:this.videoData.U&&this.videoData.U.Y?!F&&
this.Y?this.Y.qX():MRk(this.La)+this.timestampOffset:this.mediaElement?fg()?$xx(this.mediaElement.L3().getTime()):DG(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.A.oy=function(){if(g.Mk(this.videoData)){var F=this.La;g.Mk(F.videoData);var k,z;return(z=(k=F.jz)==null?void 0:k.oy())!=null?z:F.videoData.oy()}if(this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&$J(this.videoData)){var x;return((x=this.videoData.Y)==null?void 0:x.FG)||0}k=this.videoData?this.videoData.oy()+this.timestampOffset:this.timestampOffset;return zL(this.videoData)&&this.videoData.Y&&(z=Number((F=this.videoData.progressBarStartPosition)==null?void 0:F.utcTimeMillis)/1E3,F=
this.getCurrentTime(),F=this.B7(F)-F,!isNaN(z)&&!isNaN(F))?Math.max(k,z-F):k};
g.A.SV=function(){this.W||this.seekTo(this.U,{Sr:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
g.A.sX=function(){return this.t4&&!isFinite(this.L)};
g.A.h4=function(){Onk(this,null);this.K.dispose();g.S.prototype.h4.call(this)};
g.A.rH=function(){var F={};this.aU&&Object.assign(F,this.aU.rH());this.mediaElement&&Object.assign(F,this.mediaElement.rH());return F};
g.A.zj=function(F){this.timestampOffset=F};
g.A.getStreamTimeOffset=function(){return p9(this.videoData)?0:this.videoData.Y?this.videoData.Y.getStreamTimeOffset():0};
g.A.Hj=function(){return this.timestampOffset};
g.A.B7=function(F){return this.videoData&&this.videoData.Y?this.videoData.Y.B7(F-this.timestampOffset):NaN};
g.A.yw=function(){if(!this.mediaElement)return 0;if(tb(this.videoData)){var F=this.mediaElement,k=F.Ln();F=(wW(k)>0&&F.getDuration()?k.end(k.length-1):0)+this.timestampOffset-this.oy();k=this.xN()-this.oy();return Math.max(0,Math.min(1,F/k))}return this.mediaElement.yw()};
g.A.Jz=function(F){this.G&&(this.G.Y=F)};
g.A.a5=function(F,k){this.La.UK("requestUtcSeek",{time:F});$J(this.videoData)&&(this.NJ=F);var z;(z=this.aU)==null||z.a5(F);k&&(this.mp=k)};
g.A.pw=function(F){$J(this.videoData)&&(this.NJ=void 0);if(this.mp)this.La.UK("utcSeekingFallback",{source:"streamTime",timeSeconds:this.mp}),this.La.seekTo(this.mp,{Sr:"utcSeekingFallback_streamTime"}),this.mp=0;else{var k=this.getCurrentTime();isNaN(k)||(F=this.B7(k)-F,k-=F,this.La.UK("utcSeekingFallback",{source:"estimate",timeSeconds:k}),this.La.seekTo(k,{Sr:"utcSeekingFallback_estimate"}))}};
g.A.Wt=function(){this.mp=0};
g.A.V=function(F){return this.YG&&this.YG.V(F)};g.T(Wh,g.S);Wh.prototype.start=function(){this.L.start()};
Wh.prototype.stop=function(){this.L.stop()};
Wh.prototype.clear=function(){for(var F=g.l(this.Y.values()),k=F.next();!k.done;k=F.next())k.value.clear()};
Wh.prototype.sample=function(){for(var F=g.l(this.U),k=F.next();!k.done;k=F.next()){var z=g.l(k.value);k=z.next().value;z=z.next().value;this.Y.has(k)||this.Y.set(k,new L46(d69.has(k)));this.Y.get(k).update(z())}this.L.start()};
var d69=new Set(["networkactivity"]);L46.prototype.update=function(F){this.L?(this.buffer.add(F-this.Y||0),this.Y=F):this.buffer.add(F)};
L46.prototype.clear=function(){this.buffer.clear();this.Y=0};or.prototype.qI=function(){return this.started};
or.prototype.start=function(){this.started=!0};
or.prototype.reset=function(){this.finished=this.started=!1};var k0R=!1;g.T(g.D2,g.uG);g.A=g.D2.prototype;g.A.h4=function(){this.logger.debug("dispose");g.QL(this.Ob);D79(this.FA);this.visibility.unsubscribe("visibilitystatechange",this.FA);Xmk(this);e4(this);g.RC.o6(this.MS);this.VL();this.i7=null;g.CC(this.videoData);g.CC(this.A$);g.CC(this.YE);g.CC(this.LP);g.AD(this.ZNk);this.iB=null;g.uG.prototype.h4.call(this)};
g.A.Sw=function(F,k,z,x,D){if(this.YG.V("html5_log_ad_playback_docid")){var e=this.Ap();if(e.qoe){e=e.qoe;var C=this.YG.Qh||"yt";g.Nq(e,g.fA(e.provider),"ad_playback",[F,k,z,D,C])}}else this.Ap().Sw(F,k,z);this.V("html5_log_media_perf_info")&&this.UK("adloudness",{ld:x.toFixed(3),cpn:F})};
g.A.pE=function(){var F;return(F=this.aU)==null?void 0:F.pE()};
g.A.CE=function(){var F;return(F=this.aU)==null?void 0:F.CE()};
g.A.xv=function(){var F;return(F=this.aU)==null?void 0:F.xv()};
g.A.R2=function(){var F;return(F=this.aU)==null?void 0:F.R2()};
g.A.sz=function(){return this.videoData.sz()};
g.A.XZ=function(){return this.V("html5_not_reset_media_source")&&!this.sz()&&!this.videoData.isLivePlayback&&g.HP(this.videoData)&&!this.YG.supportsGaplessShorts()};
g.A.LI=function(){if(this.videoData.B){var F;if(!(F=this.videoData.Lt)){var k;F=(k=this.GD.A4())==null?void 0:k.pE()}this.videoData.Lt=F;if(!(F=this.videoData.UZ)){var z;F=(z=this.GD.A4())==null?void 0:z.CE()}this.videoData.UZ=F}if(f$I(this.videoData)||!L9(this.videoData))z=this.videoData.errorDetail,this.qk(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),z,z,this.videoData.QX||void 0);this.V("html5_generate_content_po_token")&&this.oN();this.V("html5_enable_d6de4")&&this.y9();
if(this.V("html5_ssap_cleanup_player_switch_ad_player")||this.V("html5_ssap_cleanup_ad_player_on_new_data"))if(z=this.GD.uu())this.dT=z.clientPlaybackNonce};
g.A.Tp=function(){return this.Dk};
g.A.Nq=function(){!this.Zk||this.Zk.z4();this.Zk=new g.Ph(new ch(this.videoData,this.YG,this));this.Dk=new Vm(this.YG,this,this.Zk)};
g.A.getVideoData=function(){return this.videoData};
g.A.C=function(){return this.YG};
g.A.lS=function(F){return this.Y1.lS(this.i7,F===void 0?!1:F)};
g.A.Ap=function(F){if(F)a:{for(var k=this.Dk,z=g.l(k.Y.values()),x=z.next();!x.done;x=z.next())if(x=x.value,x.getVideoData().videoId===F){F=x;break a}F=k.L}else F=this.Dk.Ap();return F};
g.A.qB=function(){return this.visibility};
g.A.cD=function(){return this.mediaElement&&this.mediaElement.tA()?this.mediaElement.T$():null};
g.A.S9=function(){return this.mediaElement};
g.A.OZ=function(){if(this.V("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.C().S&&this.C().houseBrandUserStatus&&this.UK("hbut",{status:this.C().houseBrandUserStatus});if(this.videoData.ut())return!0;this.qk("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.A.cn=function(F){(F=F===void 0?!1:F)||g.Mk(this.videoData)||OZ(this.Ap());this.GC=F;!this.OZ()||this.YK.qI()?g.Vi(this.YG)&&this.videoData.isLivePlayback&&this.YK.qI()&&!this.YK.finished&&!this.GC&&this.WG():(this.YK.start(),F=this.Ap(),g.fA(F.provider),F.qoe&&C6H(F.qoe),this.WG())};
g.A.WG=function(){if(this.videoData.isLoaded()){var F=this.A$;g.lw(F.i$.experiments,"html5_player_min_build_cl")>0&&g.lw(F.i$.experiments,"html5_player_min_build_cl")>743363614&&NSa(F,"oldplayer");wmI(this)}else this.videoData.Ji||this.videoData.hS?this.GC&&g.Vi(this.YG)&&this.videoData.isLivePlayback||(this.videoData.Ji?OGD(this.videoData):(F=this.Ap(),F.qoe&&(F=F.qoe,Tc(F,"protected"),F.provider.videoData.W?F.cW():F.provider.videoData.subscribe("dataloaded",F.cW,F)),t7n(this.videoData))):!this.videoData.loading&&
this.OA&&qLC(this)};
g.A.Do=function(F){this.qR=F;this.aU&&(Ke5(this.aU,new g.KA(F)),this.UK("sdai",{sdsstm:1}))};
g.A.xn=function(F){this.jz=F;this.aU&&this.aU.xn(F)};
g.A.X8=zp(16);g.A.isFullscreen=function(){return this.visibility.isFullscreen()};
g.A.isBackground=function(){return this.visibility.isBackground()};
g.A.bW=function(){var F=this;this.logger.debug("Updating for format change");$P(this).then(function(){return iO(F)});
this.playerState.isOrWillBePlaying()&&this.playVideo()};
g.A.h2=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.cn();this.OZ()&&!g.n(this.playerState,128)&&(this.Lc.qI()||(this.Lc.start(),this.videoData.eh?this.FI(EI(this.playerState,4)):this.FI(EI(EI(this.playerState,8),1))),Nmk(this))};
g.A.DH=function(){return this.YK.finished};
g.A.sendAbandonmentPing=function(){g.n(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Nl(!0),Xmk(this),g.RC.o6(this.MS))};
g.A.oa=function(F,k){F=F===void 0?!0:F;(k===void 0||k)&&this.mediaElement&&this.mediaElement.pause();this.FI(F?new g.CR(14):new g.CR)};
g.A.Vm=function(){this.Ap().Pr()};
g.A.qk=function(F,k,z,x,D,e){this.logger.debug(function(){return"set player error: ec="+F+", detail="+D});
var C,p;g.HB(FqV,z)?C=z:z?p=z:C="GENERIC_WITHOUT_LINK";x=(x||"")+(";a6s."+uZ());if(F==="auth"||F==="drm.auth"||F==="heartbeat.stop")z&&(x+=";r."+z.replaceAll(" ","_")),e&&(x+="sr."+e.replaceAll(" ","_"));k={errorCode:F,errorDetail:D,errorMessage:p||g.I7[C]||"",hE:C,QX:e||"",FH:x,Oy:k,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=F;j4(this,"dataloaderror");this.FI(pR(this.playerState,128,k));g.RC.o6(this.MS);e4(this);this.jh()};
g.A.mE=function(F){this.t3=this.t3.filter(function(k){return F!==k});
this.logger.debug(function(){return"set preroll ready for "+F});
g.Mk(this.videoData)&&!this.wO()&&this.gH.l7("pl_pr");this.Lc.qI()&&Nmk(this)};
g.A.wO=function(){var F;(F=!!this.t3.length)||(F=this.m$.Y.array[0],F=!!F&&F.start<=-0x8000000000000);return F};
g.A.DK=function(){return this.bu.DK()};
g.A.isPlaying=function(){return this.playerState.isPlaying()};
g.A.It=function(){return this.playerState.It()&&this.videoData.eh};
g.A.getPlayerState=function(){return this.playerState};
g.A.r_=function(F){var k;(k=this.aU)==null||k.r_(F)};
g.A.KQ=function(F){var k;(k=this.aU)==null||k.KQ(F)};
g.A.getPlayerType=function(){return this.playerType};
g.A.getPreferredQuality=function(){if(this.i7){var F=this.i7;F=F.videoData.J9.compose(F.videoData.K6);F=N4(F)}else F="auto";return F};
g.A.JS=zp(22);g.A.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.A.setMediaElement=function(F){this.logger.debug("set media element");if(this.mediaElement&&F.T$()===this.mediaElement.T$()&&(F.isView()||this.mediaElement.isView())){if(F.isView()||!this.mediaElement.isView())this.AX(),this.mediaElement=F,this.mediaElement.La=this,VRR(this),this.bu.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.VL();if(!this.playerState.isError()){var k=Xg(this.playerState,512);g.n(k,8)&&!g.n(k,2)&&(k=EI(k,1));F.isView()&&(k=Xg(k,64));this.FI(k)}this.mediaElement=
F;this.mediaElement.La=this;!g.Vi(this.YG)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);VRR(this);this.bu.setMediaElement(this.mediaElement);this.V("html5_prewarm_media_source")&&!this.A$.QA()&&Uf6(this.mediaElement)}};
g.A.VL=function(F,k,z){F=F===void 0?!1:F;k=k===void 0?!1:k;z=z===void 0?!1:z;this.logger.debug("remove media element");if(this.mediaElement){var x=this.getCurrentTime();x>0&&(this.bu.U=x);this.bu.setMediaElement(null);!F&&this.XZ()?tRp(this):this.ew(z);this.aU&&(yA(this.aU),ER(this,k));this.jF.stop();if(this.mediaElement&&(!this.Lc.qI()&&!this.zf()||this.playerState.isError()||g.n(this.playerState,2)||this.FI(EI(this.playerState,512)),this.mediaElement)){this.AX();if(F||!this.mediaElement.isView())this.gH.H$("mesv_s"),
this.mediaElement.stopVideo(),X6(this);this.mediaElement=this.mediaElement.La=null}}};
g.A.playVideo=function(F,k){F=F===void 0?!1:F;k=k===void 0?!1:k;var z=this,x,D,e,C,p,E;return g.O(function(X){if(X.Y==1){z.logger.debug("start play video");var q=window.google_image_requests;q&&q.length>10&&(window.google_image_requests=q.slice(-10));if(g.n(z.playerState,128))return X.return();if(z.A$.rz())return z.publish("signatureexpired"),X.return();z.mediaElement&&OZ(z.Ap());z.h2();(g.n(z.playerState,64)||F)&&z.FI(EI(z.playerState,8));return z.Lc.finished&&z.mediaElement?z.i7||!z.Kh?X.Sk(2):
g.c(X,z.Kh,3):X.return()}if(X.Y!=2&&g.n(z.playerState,128))return X.return();if(!z.videoData.U)return z.videoData.isLivePlayback&&!g.iW(z.YG.W,!0)?(x="html5.unsupportedlive",D=2):(x=z.videoData.sz()?"fmt.unplayable":"fmt.noneavailable",D=1),g.yI(Error("selectableFormats")),z.qk(x,D,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),X.return();if(z.Pc()&&z.videoData.U.Y)return z.logger.debug("rebuild playbackData for airplay"),X.return($P(z));if(Mq(z))q=z.bu,Ab(q.videoData)?!q.isAtLiveHead(q.getCurrentTime())&&
q.DK()&&q.La.seekTo(Infinity,{Sr:"seektimeline_peggedToLive",seekSource:34}):g.Mk(q.videoData)&&q.getCurrentTime()<q.oy()&&q.La.seekTo(q.oy(),{Sr:"seektimeline_outOfWindow"});else if(Ab(z.videoData)){if(e=z.getCurrentTime()<z.oy()-15,C=g.Uh(z.videoData)&&z.playerState.isPaused(),p=g.n(z.playerState,1024),q=z.bu,q.videoData.oS()&&n9(q.videoData)||p||!e&&!C||(C?(z.logger.debug("seek to head for live because of live-only"),z.seekTo(Infinity,{Sr:"videoplayer_unpauseLiveOnly",seekSource:102})):(z.logger.debug("seek to min seekable for live because of out of window"),
z.seekTo(z.oy(),{Sr:"videoplayer_outOfWindow",seekSource:102}))),!z.isAtLiveHead(void 0,!0)&&z.DK()&&(z.logger.debug("seek to head for live because pegged to live"),E={Sr:"videoplayer_peggedToLive",seekSource:34},z.seekTo(Infinity,E)),g.n(z.playerState,256)&&z.videoData.mp&&z.bu.sX())return z.FI(qj(z.playerState,8,4)),X.return()}else g.Mk(z.videoData)&&z.getCurrentTime()<z.oy()-0&&z.seekTo(z.oy(),{Sr:"videoplayer_outOfWindow"});g.n(z.playerState,4)&&g.n(z.playerState,16)&&z.FI(qj(z.playerState,9,
4));if(iO(z,k))return deD(z),X.return();b0D(z);g.Tp(X)})};
g.A.w0=function(F){this.logger.debug("reset media source");F&&this.He(new O3("qoe.restart",F));this.FI(EI(this.playerState,2048));this.ew();F=this.videoData.Y&&hX(this.videoData.Y);var k=this.mediaElement&&this.mediaElement.isView();F||k?(this.aU&&Qkp(this.aU),this.eO()):(iO(this),this.playerState.isOrWillBePlaying()&&this.playVideo())};
g.A.hI=function(){if(!this.i7)return[];var F=Qnx(this.Y1,this.i7,this.Wr());return this.i7.Y.hI(F)};
g.A.j3=function(){if(!this.i7)return[];var F=Qnx(this.Y1,this.i7,this.Wr());return this.i7.Y.j3(F)};
g.A.Wr=function(){var F=this.Q6?this.Q6.Wr():zC(this.videoData)&&this.videoData.Y&&hX(this.videoData.Y)?this.videoData.T1?y6:nFn:y6;this.EP&&(F=F.compose(QK7));return F};
g.A.B4=function(){return this.i7?Qnx(this.Y1,this.i7,this.Wr()):y6};
g.A.zk=function(){var F=this.xP(),k=this.GD.uu().videoId;return this.GD.kC.zk(F)||this.GD.kC.zk(k)};
g.A.Zu=function(F,k,z){var x;if((x=this.Ap().qoe)!=null){var D=F.Y,e=g.fA(x.provider);g.Nq(x,e,"vfi",[D===0?"":""+D,D===0?"A":"M"])}this.videoData.J9=F;if(this.i7&&k&&(k=this.Y1,D=this.i7,D.Y.Y)){x=(e=g.lw(k.YG.experiments,"html5_max_quality_sel_upgrade"))?F.Y:g.Yg[N4(F)];var C=D.Y.videoInfos[0].video.qualityOrdinal,p=C!==0&&F.Y===C;C=Yi()>C;if(!p||!C){e&&p&&(x=Math.max(x,e));var E;e=sn5(k,(E=D.Y)==null?void 0:E.videoInfos);E=k.La.getPlaybackRate();E>1&&e&&(E=BBk(k.YG.W,D.Y.videoInfos,E),F.Y!==0&&
E<F.Y&&k.La.setPlaybackRate(1));var X,q;F=((X=D.videoData.L)==null?void 0:(q=X.video)==null?void 0:q.qualityOrdinal)||0;g.SZ("yt-player-quality",{quality:x,previousQuality:F},31104E3);k.YG.schedule.policy.j=Yi()>=480;if(k.V("html5_exponential_memory_for_sticky")){X=k.YG.zM;q=1;var N=N===void 0?!1:N;yHI(X,"sticky-lifetime");X.values["sticky-lifetime"]&&X.zn["sticky-lifetime"]||(X.values["sticky-lifetime"]=0,X.zn["sticky-lifetime"]=0);N&&s5(X,"sticky-lifetime")>.0625&&(q=X.zn["sticky-lifetime"]*2);
X.values["sticky-lifetime"]+=1*Math.pow(2,X.Y/q);X.zn["sticky-lifetime"]=q;X.j.start()}if(k.V("html5_perf_cap_override_sticky")){N=k.U;X=k.V("html5_perserve_av1_perf_cap");X=X===void 0?!1:X;if(X===void 0?0:X){q=MD();F=g.l(Object.keys(q));for(k=F.next();!k.done;k=F.next())k=k.value,k.indexOf("1")!==0&&delete q[k];g.SZ("yt-player-performance-cap",q,2592E3)}else g.da("yt-player-performance-cap");PwD(X);if(X){X=g.l(I3.keys());for(q=X.next();!q.done;q=X.next())q=q.value,q.startsWith("1")||I3.delete(q);
X=g.l(CZ.values());for(q=X.next();!q.done;q=X.next())q=q.value,q.startsWith("1")||CZ.delete(q);X=g.l(N.keys());for(q=X.next();!q.done;q=X.next())q=q.value,q.startsWith("1")||N.delete(q)}else I3.clear(),CZ.clear(),N.clear()}}}this.aU&&(N=this.aU,z=z||"",N.policy.Y?F1(N.j.Y,z):F1(N.Y.W,z));this.HC()};
g.A.getUserPlaybackQualityPreference=function(){return this.videoData.U&&!this.videoData.U.Y?N4(this.videoData.J9):q4[Yi()]};
g.A.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.A.setUserAudio51Preference=function(F,k){this.getUserAudio51Preference()!==F&&(this.UK("toggle51",{pref:F}),g.SZ("yt-player-audio51",F,k?31536E3:2592E3),this.bW())};
g.A.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()};
g.A.setProximaLatencyPreference=function(F){var k=this.getProximaLatencyPreference();this.UK("proxima",{pref:F});g.SZ("yt-player-proxima-pref",F,31536E3);k!==F&&(F=this.bu,F.kG=!0,F.La.seekTo(Infinity,{Sr:"seektimeline_proximaSeekToHead",seekSource:34}))};
g.A.getProximaLatencyPreference=function(){var F;return(F=nN())!=null?F:0};
g.A.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
g.A.oN=function(){this.videoData.videoId?this.GD.oN(this.videoData):this.UK("povid",{})};
g.A.y9=function(){this.videoData.videoId?this.GD.y9(this.videoData):this.UK("piavid",{})};
g.A.HC=function(){if(!this.z4()&&!g.n(this.playerState,128)&&this.videoData.U){if(this.videoData.U.Y)xP(this);else{var F=pn(this),k=this.videoData;a:{var z=this.videoData.P7;if(F.Y){for(var x=g.l(z),D=x.next();!D.done;D=x.next()){D=D.value;var e=D.getInfo(),C=g.Yg[e.video.quality];if((!F.U||e.video.quality!=="auto")&&C<=F.Y){z=D;break a}}z=z[z.length-1]}else z=z[0]}k.dH=z;hNk(this,F.reason,aqY(this,this.videoData.dH))}if(this.V("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.bu.B=
!1,this.playVideo()}};
g.A.o4=function(F,k){if(this.z4()||g.n(this.playerState,128))return!1;var z,x=!((z=this.videoData.U)==null||!z.Y);z=x&&k?this.getCurrentTime()-this.Hj():NaN;if(this.YG.experiments.Ca("html5_record_audio_format_intent")){var D=this.Ap();if(D.qoe){D=D.qoe;var e=[F.ZD.id,isNaN(z)?"m":"t"];g.Nq(D,g.fA(D.provider),"afi",e)}}if(x)return k&&(x=I26(this.bu),this.UK("aswh",{id:F.id,xtags:F.xtags,bh:x.toFixed(3)})),this.aU.setAudioTrack(F,z,k),!0;if(r_R(this)){a:{k=this.mediaElement.audioTracks();for(x=0;x<
k.length;++x)if(z=k[x],z.label===F.ZD.getName()){if(z.enabled){k=!1;break a}k=z.enabled=!0;break a}k=void 0}k&&this.UK("hlsaudio",{id:F.id})}else{a:if(k=this.videoData,k.j&&!Dm(k.j)||F===k.Tc||!k.P7||k.P7.length<=0)k=!1;else{x=g.l(k.P7);for(z=x.next();!z.done;z=x.next()){z=z.value;if(!(z instanceof AT)){k=!1;break a}D=F.ZD.getId();z.L&&(Ej6(z.L,D),z.ez=null)}k.Tc=F;k=!0}k&&iO(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.UK("hlsaudio",{id:F.id}))}return!0};
g.A.getAvailableAudioTracks=function(){return g.Mk(this.videoData)&&this.jz?iy9(this.jz).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()};
g.A.getAudioTrack=function(){if(r_R(this)){var F=G0R(this);if(F)return F}return this.videoData.getAudioTrack()};
g.A.uX=function(){return this.videoData.j};
g.A.O7=function(){if(this.videoData.V("html5_trigger_loader_when_idle_network")&&!this.videoData.oS()&&$J(this.videoData)){var F;(F=this.aU)!=null&&F.Ib()}};
g.A.FW=function(){if(xJ(this.videoData)&&this.videoData.V("html5_gapless_append_early")){var F;(F=this.aU)!=null&&F.Ib()}};
g.A.Gd=function(F){F=F===void 0?!1:F;if(this.aU){var k=this.aU,z=k.Gd;var x=this.videoData;x=x.V("html5_ssdai_use_post_for_media")&&x.enableServerStitchedDai?!1:p9(x)&&x.P5&&!x.isAd();z.call(k,x,F)}};
g.A.ew=function(F){F=F===void 0?!1:F;this.IU&&(this.logger.debug("remove media source"),Goa(this.IU),this.Gd(F),this.IU.dispose(),this.IU=null)};
g.A.MV=function(){return this.IU};
g.A.k0=function(F,k,z,x){function D(C){try{PpM(e,C,k,z)}catch(p){g.yI(p),e.handleError(new O3("fmt.unplayable",{msi:"1",ename:p&&typeof p==="object"&&"name"in p?String(p.name):void 0},1))}}
var e=this;k=k===void 0?!1:k;z=z===void 0?!1:z;vfk(this,x===void 0?!1:x);this.IU=F;this.XZ()&&oQ(this.IU)==="open"?D(this.IU):Qcp(this.IU,D)};
g.A.Rl=function(F){this.logger.debug("onNeedKeyInfo");this.yu.set(F.initData,F);this.Q6&&(this.Q6.Rl(F),this.V("html5_eme_loader_sync")||this.yu.remove(F.initData))};
g.A.oJ=function(F){this.videoData.KB=g.pt("auto",F,!1,"u");xP(this)};
g.A.Jz=function(F){var k=F.reason,z=F.Y.info,x=F.token,D=F.videoId,e=this.Ap(D),C=g.Mk(this.videoData)?e.getVideoData():this.videoData;if(z!==C.j){var p=!C.j;C.j=z;k!=="m"&&k!=="t"&&(k=p?"i":"a");var E=k==="m"||k==="t";this.YG.experiments.Ca("html5_refactor_sabr_audio_format_selection_logging")?this.h6=new m75(C,z,k,"",x,D):(k=new m75(C,z,k,"",x),e.qoe&&(e=e.qoe,z=g.fA(e.provider),WeM(e,z,k)));this.publish("internalaudioformatchange",C,!p&&E)}this.bu.Jz(F.Y.index)};
g.A.bb=function(F){this.publish("localmediachange",F)};
g.A.O0=function(F){F=F===void 0?{}:F;var k;(k=this.aU)==null||k.O0(this.YG,Dx(this.videoData),F)};
g.A.rz=function(){return this.A$.rz()};
g.A.Su=function(F){this.He(new O3("staleconfig",{reason:F}))};
g.A.handleError=function(F){this.A$.handleError(F)};
g.A.QA=function(){return this.A$.QA()};
g.A.pw=function(F){this.bu.pw(F)};
g.A.eO=function(F,k,z){F=F===void 0?!1:F;k=k===void 0?!1:k;z=z===void 0?!1:z;var x=this,D,e,C;return g.O(function(p){if(p.Y==1){x.aU&&x.aU.xm();x.aU&&x.aU.z4()&&e4(x);if(x.V("html5_enable_vp9_fairplay")&&x.sz()&&(D=x.videoData.Y)!=null)for(var E in D.Y)D.Y.hasOwnProperty(E)&&(D.Y[E].Y=null,D.Y[E].U=!1);x.FI(EI(x.playerState,2048));x.V("html5_ssap_keep_media_on_finish_segment")&&g.Mk(x.videoData)?x.publish("newelementrequired",z):x.publish("newelementrequired");return F?g.c(p,$P(x),2):p.Sk(2)}x.videoData.oS()&&
((e=x.aU)==null?0:e.t4)&&!Mq(x)&&((C=x.isAtLiveHead())&&Ab(x.videoData)?x.seekTo(Infinity,{Sr:"videoPlayer_getNewElement"}):x.videoData.A5&&x.aU&&(E=x.aU,E.b$.oS&&(E.b$.A5||E.b$.j||E.b$.isPremiere?(E.seek(0,{Sr:"loader_resetSqless"}),E.videoTrack.B=!0,E.audioTrack.B=!0,E.videoTrack.W=!0,E.audioTrack.W=!0):PU(E.b$)&&Kj(E))));k&&x.seekTo(0,{seekSource:105});g.n(x.playerState,8)&&(x.V("html5_ssap_keep_media_on_finish_segment")&&g.Mk(x.videoData)?x.playVideo(!1,z):x.playVideo());g.Tp(p)})};
g.A.nU=function(F){this.UK("hgte",{ne:+F});this.videoData.B=!1;F&&this.eO();this.aU&&Qkp(this.aU)};
g.A.KH=function(F){this.UK("newelem",{r:F});this.eO()};
g.A.pauseVideo=function(F){F=F===void 0?!1:F;if((g.n(this.playerState,64)||g.n(this.playerState,2))&&!F)if(g.n(this.playerState,8))this.FI(qj(this.playerState,4,8));else if(this.It())iO(this);else return;g.n(this.playerState,128)||(F?this.FI(EI(this.playerState,256)):this.FI(qj(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.Uh(this.videoData)&&this.aU&&ER(this,!1)};
g.A.stopVideo=function(){this.pauseVideo();this.aU&&(ER(this,!1),this.aU.f$())};
g.A.jh=function(F,k){F=F===void 0?!1:F;k=k===void 0?!1:k;if(this.XZ()&&k){var z;(z=this.mediaElement)==null||z.jh()}else{var x;(x=this.mediaElement)==null||x.stopVideo()}X6(this);e4(this);g.n(this.playerState,128)||(F?this.FI(Xg(Xg(EI(this.playerState,4),8),16)):this.FI(pR(this.playerState)));this.videoData.videoId&&this.YG.yh.remove(this.videoData.videoId)};
g.A.seekTo=function(F,k){k=k===void 0?{}:k;this.logger.debug(function(){return"SeekTo "+F+", "+JSON.stringify(k)});
g.n(this.playerState,2)&&iO(this);k.XnU&&this.FI(EI(this.playerState,2048));k.seekSource!==58&&k.seekSource!==60||!this.V("html5_update_vss_during_gapless_seeking")||M6H(this.Ap(),k.seekSource);this.bu.seekTo(F,k);this.m$.sync()};
g.A.t2=function(F){this.gH.j.L=(0,g.VE)();g.n(this.playerState,32)||(this.FI(EI(this.playerState,32,F==null?void 0:F.seekSource)),g.n(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.xj()};
g.A.Bs=function(F){F=F==null?void 0:F.seekSource;g.n(this.playerState,32)?(this.FI(qj(this.playerState,16,32,F)),this.publish("endseeking")):g.n(this.playerState,2)||this.FI(EI(this.playerState,16,F));F=this.gH.j;var k=this.videoData,z=this.playerState.isPaused();if(k.clientPlaybackNonce&&!isNaN(F.Y)){if(Math.random()<.01){z=z?"pbp":"pbs";var x={startTime:F.Y};k.S&&(x.cttAuthInfo={token:k.S,videoId:k.videoId});Ll("seek",x);g.MF({clientPlaybackNonce:k.clientPlaybackNonce},"seek");isNaN(F.L)||nl("pl_ss",
F.L,"seek");nl(z,(0,g.VE)(),"seek")}F.reset()}};
g.A.eK=function(F){this.Bs(F)};
g.A.SK=function(){this.publish("SEEK_COMPLETE")};
g.A.qS=function(F){var k=this.GD,z=this.videoData.clientPlaybackNonce,x=this.playerType;if(F.scope===4){var D=F.type;if(D){var e=k.Pj(),C=e.getVideoData().clientPlaybackNonce;x===1&&(C=z);(k=vua(k,C))?(z=k.getVideoData())&&(F.writePolicy===2&&z.sabrContextUpdates.has(D)||z.sabrContextUpdates.set(D,F)):e.UK("scuset",{ncpf:"1",ccpn:C,crcpn:z})}else g.yI(Error("b/380308491: contextUpdateType is undefined"))}};
g.A.Gm=function(){if(this.playerType===2)return this.GD.Gm("")};
g.A.getCurrentTime=function(){return this.bu.getCurrentTime()};
g.A.o0=function(){return this.bu.o0()};
g.A.P8=function(){return this.bu.P8()};
g.A.qb=function(F){return this.jz&&(F=F||this.jz.wp())?x5(this.jz,F):this.P8()};
g.A.qX=function(){return this.bu.qX()};
g.A.getPlaylistSequenceForTime=function(F){return this.videoData.getPlaylistSequenceForTime(F-this.Hj())};
g.A.Gz=function(){var F=NaN;this.mediaElement&&(F=this.mediaElement.Gz());return F>=0?F:this.getCurrentTime()};
g.A.B7=function(){var F;return((F=this.videoData.Y)==null?0:F.B7)?this.videoData.Y.B7(this.getCurrentTime()-this.Hj()):this.mediaElement&&(F=this.mediaElement.L3())&&(F=F.getTime(),!isNaN(F))?F/1E3+this.getCurrentTime():NaN};
g.A.getDuration=function(F){return g.Mk(this.videoData)&&this.jz?F?xPY(this.jz,F):JA(this.jz):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Hj():this.xN()?this.xN():0};
g.A.lM=function(){var F=new kdH;if(this.aU){var k=this.YG.schedule,z=this.YG.Jp();z=z===void 0?!1:z;F.lW=k.t4;F.N_=k.J4;F.bandwidthEstimate=Qq(k);if(z){z=(k.B.Uz()*1E3).toFixed();var x=(k.Xf.Uz()*1E3).toFixed(),D=ma(k).toFixed(2),e=((k.G.Uz()||0)*1E9).toFixed(2),C=k.U.Uz().toFixed(0),p=k.yh.Uz().toFixed(0),E=k.K.percentile(.5).toFixed(2),X=k.K.percentile(.92).toFixed(2),q=k.K.percentile(.96).toFixed(2),N=k.K.percentile(.98).toFixed(2);k.Y?k.Y.reset():k.Y=new C_;k.Y.add(k.mp);k.Y.add(k.interruptions.length);
for(var u=0,w=k.interruptions.length-1;w>=0;w--){var m=k.interruptions[w];k.Y.add(m-u);u=m}u=0;for(w=k.j.length-1;w>=0;w--){m=k.j[w];var h=m.stamp/36E5;k.Y.add(h-u);u=h;k.Y.add(m.net/1E3);k.Y.add(m.max)}k=k.Y.Y9();F.Y={ttr:z,ttm:x,d:D,st:e,bw:C,abw:p,v50:E,v92:X,v96:q,v98:N,"int":k}}fxx(this.aU,F)}else this.mediaElement&&(F.uO=$h(this.mediaElement));F.lW=this.lW;F.N_=this.N_;F.U=this.isAtLiveHead()&&this.isPlaying()?pmx(this):NaN;return F};
g.A.cI=function(F,k){this.N_+=F;this.lW+=k};
g.A.yw=function(){return this.mediaElement?g.Uh(this.videoData)?1:tb(this.videoData)?this.isAtLiveHead()||this.DK()?1:this.bu.yw():this.mediaElement.yw():0};
g.A.Pd=function(){var F=this.vJ,k=kP(F,"bandwidth"),z=kP(F,"bufferhealth"),x=kP(F,"livelatency"),D=kP(F,"networkactivity"),e=F6(F,"bandwidth"),C=F6(F,"bufferhealth"),p=F6(F,"livelatency");F=F6(F,"networkactivity");var E=this.Gp(),X=E.droppedVideoFrames;E=E.totalVideoFrames;var q=this.getCurrentTime();if(this.Q6){var N="IT/"+(this.Q6.Y.getInfo()+"/"+N4(this.Wr()));N+="/"+this.Q6.getInfo()}else N="";var u=this.isGapless(),w=this.gi(),m=this.mF(),h=g.Ar(this),B=this.getPlayerState(),U=this.getPlaylistSequenceForTime(this.getCurrentTime());
a:{var v=0;var P="";if(this.qR){if(this.qR.uf){P="D,";break a}v=this.qR.JE();P=this.qR.wp().substring(0,4)}else this.jz&&(v=this.jz.JE(),P=this.jz.wp().substring(0,4));v>0?(v="AD"+v+", ",P&&(v+=P+", "),P=v):P=""}return{t7:e,tL:C,currentTime:q,wE:N,droppedVideoFrames:X,isGapless:u,gi:w,Bd:m,tq:k,El:z,Xg:x,Tt:D,Wo:p,Lr:F,aZ:h,playerState:B,oZ:U,P3:P,totalVideoFrames:E}};
g.A.rH=function(F){var k={};if(F===void 0?0:F){Object.assign(k,this.Ap().rH());this.mediaElement&&(Object.assign(k,this.mediaElement.rH()),F=this.Gp(),k.dvf=F.droppedVideoFrames,k.tvf=F.totalVideoFrames);this.aU&&Object.assign(k,this.aU.rH());this.Q6&&(k.drm=JSON.stringify(this.Q6.rH()));k.state=this.playerState.state.toString(16);g.n(this.playerState,128)&&(k.debug_error=JSON.stringify(this.playerState.YA));this.wO()&&(k.prerolls=this.t3.join(","));this.videoData.yf&&(k.ismb=this.videoData.yf);this.videoData.latencyClass!==
"UNKNOWN"&&(k.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(k.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)k.is_mosaic=1;this.videoData.cotn&&(k.is_offline=1,k.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(k.playerResponseCpn=this.videoData.playerResponseCpn);this.GD.isOrchestrationLeader()&&(k.leader=1);this.videoData.isLivePlayback&&(this.videoData.Y&&
tQ(this.videoData.Y)&&(k.segduration=tQ(this.videoData.Y)),F=this.bu,k.lat=F.G?N1p(F.G.j):0,k.liveutcstart=this.videoData.liveUtcStartSeconds);k.relative_loudness=this.videoData.YZ.toFixed(3);if(F=g.Ar(this))k.optimal_format=F.video.qualityLabel;k.user_qual=Yi();k.release_version=o5[11];g.Mk(this.videoData)&&this.jz&&(k.ssap=kt(this.jz))}k.debug_videoId=this.videoData.videoId;return k};
g.A.addCueRange=function(F){this.L0([F])};
g.A.removeCueRange=function(F){this.m$.h$([F])};
g.A.qF=function(){this.m$.sync()};
g.A.Tn=function(F,k){return this.m$.Tn(F,k)};
g.A.L0=function(F,k){this.m$.Li(F,k)};
g.A.c$=function(F){this.m$.h$(F)};
g.A.yY=function(F){var k=this.m$;F.length<=0||k.z4()||(F=k.Y,F.array.sort(F.Y))};
g.A.Xb=function(){return this.m$.Xb()||[]};
g.A.b_=function(){return this.p5};
g.A.Pc=function(){return this.visibility.Pc()};
g.A.pg=function(){this.mediaElement&&this.mediaElement.pg()};
g.A.p8K=function(){j4(this)};
g.A.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.A.AX=function(){g.VB(this.V9)};
g.A.HE=function(){this.xj();this.publish("onLoadProgress",this.yw())};
g.A.LK=function(F){var k=F.target.TY();if(this.mediaElement&&this.mediaElement.TY()&&this.mediaElement.TY()===k){gf6(this,F.type);switch(F.type){case "error":var z=e5(this.mediaElement)||"",x=this.mediaElement.SO();if(z==="capability.changed"){this.V("html5_restart_on_capability_change")?(this.UK("capchg",{msg:x}),this.eO(!0)):$P(this);return}if(this.mediaElement.hasError()&&(pi6(this.A$,z,{msg:x})||g.Mk(this.videoData)&&this.jz&&(x=this.playerState.YA,this.jz.handleError(z,x==null?void 0:x.Oy))))return;
if(this.isBackground()&&this.mediaElement.Cn()===4){this.jh();Cn(this,"unplayable");return}break;case "durationchange":z=this.mediaElement.getDuration();isFinite(z)&&(!this.IU||z>0)&&z!==1&&this.zc(z);break;case "ratechange":this.aU&&this.aU.setPlaybackRate(this.mediaElement.getPlaybackRate());COR(this.m$);this.Ap().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":nfD(this);this.publish("onLoadedMetadata");H0n(this);z=this.B7();this.videoData.v$&&(this.videoData.v$=z);break;
case "loadstart":H0n(this);break;case "progress":case "suspend":g.lw(this.YG.experiments,"html5_progress_event_throttle_ms")>0?this.NA.vu():this.HE();break;case "playing":this.gH.H$("plev");this.e$&&!Mq(this)&&(this.e$=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Sr:"videoplayer_onPlaying"})));break;case "timeupdate":z=this.mediaElement&&!this.mediaElement.getCurrentTime();x=this.mediaElement&&this.mediaElement.gp()===0;if(z&&(!this.hk||x))return;
this.hk=this.hk||!!this.mediaElement.getCurrentTime();IqR(this);this.xj();if(!this.mediaElement||this.mediaElement.TY()!==k)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.lh().length>0&&this.mediaElement.Ln().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.aU)return;this.V("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.gp()>2||!this.mediaElement.isSeeking()&&
Ni(this.mediaElement.Ln(),this.mediaElement.getCurrentTime()))&&(z=this.mediaElement.rH(),z.bh=$h(this.mediaElement).toFixed(3),this.UK("uwe",z));g.Mk(this.videoData)&&this.jz&&fSM(this.jz,this.mediaElement.getCurrentTime());break;case "resize":nfD(this);this.videoData.L&&this.videoData.L.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.aA&&g.n(this.playerState,8)&&!g.n(this.playerState,1024)&&this.getCurrentTime()===0&&g.GX){Cn(this,"safari_autoplay_disabled");
return}}if(this.mediaElement&&this.mediaElement.TY()===k){YRC(this.bu,F,this.jz||void 0);this.publish("videoelementevent",F);k=this.playerState;x=this.Ey;var D=this.mediaElement,e=this.YG.experiments;z=this.videoData.clientPlaybackNonce;var C=g.Mk(this.videoData)&&this.jz?JA(this.jz):void 0;if(!g.n(k,128)){var p=k.state;D=D?D:F.target;var E=D.getCurrentTime();if(!g.n(k,64)||F.type!=="ended"&&F.type!=="pause"){C=C||D.getDuration();C=D.isEnded()||E>1&&Math.abs(E-C)<1.1;var X=F.type==="pause"&&D.isEnded();
E=F.type==="ended"||F.type==="waiting"||F.type==="timeupdate"&&!g.n(k,4)&&!Hh(x,E);if(X||C&&E)D.JF()>0&&D.TY()&&(p=14);else switch(F.type){case "error":e5(D)&&(p|=128);break;case "pause":g.n(k,256)?(p^=256)||(p=64):g.n(k,32)||g.n(k,2)||g.n(k,4)||(p=4,g.n(k,1)&&g.n(k,8)&&(p|=1));break;case "playing":e=p;p=(p|8)&-1093;e&4?(p|=1,AH(x,D,!0)):Hh(x,D.getCurrentTime())&&(p&=-2);g.n(k,1)&&AH(x,D)&&(p|=1);break;case "seeking":p|=16;g.n(k,8)&&(p|=1);p&=-3;break;case "seeked":p&=-17;AH(x,D,!0);break;case "waiting":g.n(k,
2)||(p|=1);AH(x,D);break;case "timeupdate":e=g.n(k,16);E=g.n(k,4);(g.n(k,8)||e)&&!E&&Hh(x,D.getCurrentTime())&&(p=8);AH(x,D)&&(p|=1);break;case "progress":case "suspend":e.Ca("html5_track_underruns_on_progress")&&AH(x,D)}}x=p;p=null;x&128&&(p=F.target,D=e5(p),e=1,D?(D==="capability.changed"&&(e=2),E="GENERIC_WITHOUT_LINK",C=p.rH(),C.mediaElem="1",/AUDIO_RENDERER/.test(p.SO())&&(E="HTML5_AUDIO_RENDERER_ERROR"),p={errorCode:D,errorMessage:g.I7[E]||"",hE:E,FH:Pw(C),Oy:e,cpn:k.YA?k.YA.cpn:""}):p=null,
p&&(p.cpn=z));k=pR(k,x,p)}!g.n(this.playerState,1)&&g.n(k,1)&&RNp(this,"evt"+F.type);this.FI(k)}}};
g.A.rpa=function(F){F=F.Y.availability==="available";F!==this.p5&&(this.p5=F,this.publish("airplayavailabilitychange"))};
g.A.vu_=function(){var F=(0,g.VE)(),k=this.mediaElement.Pc();this.UK("airplay",{ia:k});!k&&!isNaN(this.zN)&&F-this.zN<2E3||(this.zN=F,k!==this.Pc()&&(F=this.visibility,F.Y!==k&&(F.Y=k,F.FA()),this.UK("airplay",{rbld:k}),this.bW()),this.publish("airplayactivechange"))};
g.A.gJ=function(F){if(this.aU){var k=this.aU,z=k.U,x=k.getCurrentTime(),D=Date.now()-z.K;z.K=NaN;z.UK("sdai",{adfetchdone:F,d:D});F&&!isNaN(z.G)&&z.L!==3&&Ri(z.aU,x,z.G,z.S);z.policy.W?z.W=NaN:z.j=NaN;JS(z,4,z.L===3?"adfps":"adf");yA(k)}};
g.A.nh=function(){g.QL(this.Ob);this.jF.stop();this.videoData.mp=!0;this.YG.hS=!0;this.YG.uL=0;var F=this.A$;if(F.videoData.L){var k=F.i$.W,z=F.videoData.L.DQ;k.L.has(z)&&(k.L.delete(z),DX(k))}F.Y.stop();this.S4();g.n(this.playerState,8)&&this.FI(Xg(this.playerState,65));this.GC=!1;nOa(this.Ap());g.WN(this.YE);this.publish("playbackstarted");(F=g.yR("yt.scheduler.instance.clearPriorityThreshold"))?F():eB(0,0)};
g.A.S4=function(){var F=this.GD.uu(),k={},z={};!fl("pbs",this.gH.timerName)&&IH.measure&&IH.getEntriesByName&&(IH.getEntriesByName("mark_nr")[0]?YaH("mark_nr"):YaH());F.videoId&&(k.videoId=F.videoId);F.clientPlaybackNonce&&!this.V("web_player_early_cpn")&&(k.clientPlaybackNonce=F.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(z.isPausedOnLoad=!0);z.itag=F.L?Number(F.L.itag):-1;F.ZR&&(z.preloadType=String(this.gr?2:1));k.liveStreamMode=GS$[lx(F)];k.playerInfo=z;this.gH.infoGel(k);
if(this.aU){F=this.aU.timing;window&&window.performance&&window.performance.getEntriesByName&&(F.U&&(k=window.performance.getEntriesByName(F.U),k.length&&(k=k[0],F.tick("vri",k.fetchStart),F.tick("vdns",k.domainLookupEnd),F.tick("vreq",k.requestStart),F.tick("vrc",k.responseEnd))),F.L&&(k=window.performance.getEntriesByName(F.L),k.length&&(k=k[0],F.tick("ari",k.fetchStart),F.tick("adns",k.domainLookupEnd),F.tick("areq",k.requestStart),F.tick("arc",k.responseEnd))));F=F.ticks;for(var x in F)F.hasOwnProperty(x)&&
this.gH.tick(x,F[x])}};
g.A.gs=function(F,k,z){F=(F+(this.Z9===3?.3:0))/k;k=Math.floor(F*4);k>this.Z9&&(this.UK("vpq",{q:k,cpn:z||this.videoData.clientPlaybackNonce,ratio:F.toFixed(3)}),this.Z9=k)};
g.A.VS=function(){this.Z9=-1};
g.A.xj=function(F){var k=this;F=F===void 0?!1:F;if(this.mediaElement&&this.videoData){HnI(this.bu,this.isPlaying());var z=this.getCurrentTime();!this.aU||g.n(this.playerState,4)&&g.Uh(this.videoData)||g.n(this.playerState,32)&&$J(this.videoData)||opH(this.aU,z);this.V("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.gs(z,this.videoData.lengthSeconds);z>5&&(this.bu.U=z);var x=g.jB();x?g.RC.o6(this.MS):g.lP(this.MS);var D=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!D||zL(this.videoData))&&
!g.n(this.playerState,128)){var e=function(){if(k.mediaElement&&!g.n(k.playerState,128)){k.YG.Jp()&&gf6(k,"pfx");var C=k.getCurrentTime();k.V("html5_buffer_underrun_transition_fix")&&(C-=k.Hj());var p=$h(k.mediaElement),E=g.n(k.playerState,8),X=Hh(k.Ey,C),q=OvR(k.Ey,C,(0,g.VE)(),p);E&&X?k.FI(Xg(k.playerState,1)):E&&q?(E=k.getDuration(),X=Ab(k.videoData),E&&Math.abs(E-C)<1.1?(k.UK("setended",{ct:C,bh:p,dur:E,live:X}),k.mediaElement.Tf()?(k.logger.debug("seek to 0 because of looping"),k.seekTo(0,{Sr:"videoplayer_loop",
seekSource:37})):k.oa()):(k.playerState.isBuffering()||RNp(k,"progress_fix"),k.FI(EI(k.playerState,1)))):(E&&!X&&!q&&C>0&&(E=(Date.now()-k.jM)/1E3,X=k.getDuration(),C>X-1&&k.UK("misspg",{t:C.toFixed(2),d:X.toFixed(2),r:E.toFixed(2),bh:p.toFixed(2)})),k.playerState.isPaused()&&k.playerState.isBuffering()&&$h(k.mediaElement)>5&&k.FI(Xg(k.playerState,1)));k.xj()}};
this.mediaElement.lh().length===0?this.MS=x?g.RC.Oi(e,100):g.mz(e,100):this.MS=x?g.RC.Oi(e,500):g.mz(e,500)}this.videoData.u$=z;this.jz&&this.jz.g5();!F&&this.isPlaying()&&SLR(this);OAR(this.Y1,this.i7,this.S9(),this.isBackground())&&xP(this);this.publish("progresssync",F);D&&zL(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}};
g.A.Fpf=function(){this.qk("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.A.mF=function(){return this.Ap().mF()};
g.A.n2=function(){return this.aU?this.aU.n2():Qq(this.YG.schedule,!0)};
g.A.FI=function(F){if(!g.Nj(this.playerState,F)){this.logger.debug(function(){return"Setting state "+F.toString()});
var k=new g.lH(F,this.playerState);this.playerState=F;YLR(this);var z=!this.dg.length;this.dg.push(k);var x=this.mediaElement&&this.mediaElement.isSeeking();x=k.oldState.state===8&&!x;g.hI(k,1)&&x&&g.n(this.playerState,8)&&!g.n(this.playerState,64)&&this.aU&&(lxR(this.aU),this.mediaElement&&$h(this.mediaElement)>=5&&cAH(this.Y1,this.i7)&&xP(this));(x=g.lw(this.YG.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.n(F,1)&&(g.n(F,8)||g.n(F,16))?this.Bw.start(x):this.Bw.stop();(Qo(k,8)<0||
g.hI(k,1024))&&this.jF.stop();!g.hI(k,8)||this.videoData.mp||g.n(k.state,1024)||this.jF.start();g.n(k.state,8)&&Qo(k,16)<0&&!g.n(k.state,32)&&!g.n(k.state,2)&&this.playVideo();g.n(k.state,2)&&tb(this.videoData)&&(this.zc(this.getCurrentTime()),this.xj(!0));g.hI(k,2)&&(this.Nl(!0),this.YG.Jp()&&this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&$J(this.videoData)&&this.videoData.Y&&(x={minst:""+this.videoData.Y.FG,cminst:""+(this.videoData.Y.oy()+this.Hj()),maxst:""+this.videoData.Y.oO,
hts:""+this.videoData.Y.PR,cmaxst:""+(this.videoData.Y.xN()+this.Hj())},this.UK("sabrSeekableBoundaries",x)));g.hI(k,128)&&this.jh();this.videoData.Y&&this.videoData.isLivePlayback&&!this.Is&&(Qo(k,8)<0?xjR(this.videoData.Y):g.hI(k,8)&&this.videoData.Y.resume());V49(this.bu,k);LOH(this.Ap(),k);if(z&&!this.z4())try{for(var D=g.l(this.dg),e=D.next();!e.done;e=D.next()){var C=e.value;Arp(this.m$,C);this.publish("statechange",C)}}finally{this.dg.length=0}}};
g.A.XX=function(){this.gH.tick("qoes")};
g.A.SV=function(){this.bu.SV()};
g.A.oR=function(F,k,z,x){a:{var D=this.A$;x=x===void 0?"LICENSE":x;z=z.substring(0,256);var e=VQ(k);F==="drm.keyerror"&&this.Q6&&this.Q6.L.keys.length>1&&D.j<96&&(F="drm.sessionlimitexhausted",e=!1);var C=D.i$.experiments.Ca("html5_retry_on_drm_unavailable"),p=D.i$.experiments.Ca("html5_retry_on_drm_key_error"),E=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(C&&F==="drm.unavailable"||p&&F==="drm.keyerror"&&!z.match(E))D.He("qoe.restart",{retryOnDrmError:1,e:F,detail:z}),D.La.eO(!0);else{if(e)if(D.videoData.L&&
D.videoData.L.video.isHdr())wiY(D,F);else{if(D.La.qk(F,k,x,z),etY(D,{detail:z}))break a}else D.He(F,{detail:z});F==="drm.sessionlimitexhausted"&&(D.UK("retrydrm",{sessionLimitExhausted:1}),D.j++,y_I(D.La))}}};
g.A.uIf=function(){var F=this,k=g.lw(this.YG.experiments,"html5_license_constraint_delay"),z=$n();k&&z?(k=new g.KS(function(){F.HC();j4(F)},k),g.b(this,k),k.start()):(this.HC(),j4(this))};
g.A.K_=function(F){this.publish("heartbeatparams",F)};
g.A.Qe=function(F){this.UK("keystatuses",ZY5(F));var k="auto",z=!1;this.videoData.L&&(k=this.videoData.L.video.quality,z=this.videoData.L.video.isHdr());a:{switch(k){case "highres":case "hd2880":k="UHD2";break;case "hd2160":case "hd1440":k="UHD1";break;case "hd1080":case "hd720":k="HD";break;case "large":case "medium":case "small":case "light":case "tiny":k="SD";break;default:k="";break a}z&&(k+="HDR")}k=zc(F)?xO(F,k):F.j.includes(k);this.V("html5_enable_sabr_authorized_drm_track_types")&&(this.videoData.z1=
F.z1);if(this.V("html5_enable_vp9_fairplay")){if(z)if(F.G){var x;if((x=this.Q6)==null?0:gi(x.Y))if((z=this.Q6)==null)z=0;else{for(var D=x=void 0,e=g.l(z.L.values()),C=e.next();!C.done;C=e.next())C=C.value,x||(x=cMM(C,"SD")),D||(D=cMM(C,"AUDIO"));z.y3({sd:x,audio:D});z=x==="output-restricted"||D==="output-restricted"}else z=!k;if(z){this.UK("drm",{dshdr:1});wiY(this.A$);return}}else{this.videoData.rB||(this.videoData.rB=!0,this.UK("drm",{dphdr:1}),this.eO(!0));return}var p;if((p=this.Q6)==null?0:gi(p.Y))return}else if(p=
F.G&&k,z&&!p){wiY(this.A$);return}k||xO(F,"AUDIO")&&xO(F,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),F=ZY5(F),this.EP?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.V("html5_report_fatal_drm_restricted_error_killswitch")||this.qk("drm.keyerror",2,void 0,"info."+F)):(this.EP=!0,this.He(new O3("qoe.restart",Object.assign({},{retrydrm:1},F))),xP(this),y_I(this)))};
g.A.MrJ=function(){if(!this.videoData.mp&&this.mediaElement&&!this.isBackground()){var F="0";this.mediaElement.gp()>0&&$h(this.mediaElement)>=5&&this.videoData.U&&this.videoData.U.Y&&(this.FI(EI(this.playerState,1)),RNp(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),F="1");YLR(this);var k=this.videoData.U;F={restartmsg:F,mfmt:!zC(this.videoData),mdrm:!(!(k&&k.videoInfos&&k.videoInfos.length&&k.videoInfos[0].J5)||this.Q6),mfmtinfo:!this.videoData.L,prerolls:this.wO()?this.t3.join(","):
"0"};if(this.Q6){k=this.Q6;if(k.L.size<=0){var z="ns;";k.K||(z+="nr;");k=z+="ql."+k.U.length}else k=ZY5(k.L.values().next().value),k=Pw(k);F.drmp=k}var x;Object.assign(F,((x=this.aU)==null?void 0:x.rH())||{});var D;Object.assign(F,((D=this.mediaElement)==null?void 0:D.rH())||{});this.Ap().He("qoe.start15s",Pw(F));this.publish("loadsofttimeout")}};
g.A.zc=function(F){this.videoData.lengthSeconds!==F&&(this.videoData.lengthSeconds=F,j4(this))};
g.A.Nl=function(F,k){var z=this;F=F===void 0?!1:F;if(!this.W9)if(fl("att_s","player_att")||WC("att_s",void 0,"player_att"),this.V("use_rta_for_player"))(function(){var D,e,C,p;return g.O(function(E){switch(E.Y){case 1:if(!(D=F)){E.Sk(2);break}return g.c(E,g.l1Y(),3);case 3:D=!E.L;case 2:if(D)return E.return();g.lD(E,4);e=WOa(z.Ap());if(!e)throw Error();C={};return g.c(E,g.TXa((C.cpn=z.videoData.clientPlaybackNonce,C.encryptedVideoId=z.videoData.videoId||"",C),3E4),6);case 6:p=E.L;if(z.W9)throw Error();
if(!p.challenge)throw g.yI(Error("Not sending attestation ping; no attestation challenge string")),Error();z.W9=!0;var X=[p.challenge];p.error?X.push("r1c="+p.error):p.webResponse&&X.push("r1a="+p.webResponse);var q;((q=p.adblockReporting)==null?void 0:q.reportingStatus)!==void 0&&X.push("r6a="+p.adblockReporting.reportingStatus);var N;((N=p.adblockReporting)==null?void 0:N.broadSpectrumDetectionResult)!==void 0&&X.push("r6b="+p.adblockReporting.broadSpectrumDetectionResult);e(X.join("&"));WC("att_f",
void 0,"player_att");g.sC(E,0);break;case 4:g.rI(E),WC("att_e",void 0,"player_att"),g.Tp(E)}})})().then(function(){k==null||k()});
else{var x=new g.B_5(this.videoData);if("c1a"in x.Hz&&!g.dM.isInitialized()){WC("att_wb",void 0,"player_att");this.dW===2&&Math.random()<.01&&g.yI(Error("Botguard not available after 2 attempts"));if(F)return;if(this.dW<5){g.WN(this.LP);this.dW++;return}}(x=g.GMk(x))?(WC("att_f",void 0,"player_att"),KO6(this.Ap(),x),this.W9=!0):WC("att_e",void 0,"player_att")}};
g.A.Sg=function(F){F=F===void 0?!1:F;if(Ab(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.DK()||g.Uh(this.videoData)))F=this.getCurrentTime();else if(g.Mk(this.videoData)&&this.jz){F=this.jz;var k=this.getCurrentTime();F=(F=kqa(F,k*1E3))?(F.wi()-F.lc())/1E3:0}else F=this.xN(F);return F};
g.A.Wf=function(){return g.Mk(this.videoData)?this.videoData.oy():this.oy()};
g.A.xN=function(F){return this.bu.xN(F===void 0?!1:F)};
g.A.oy=function(){return this.bu.oy()};
g.A.Hj=function(){return this.bu?this.bu.Hj():0};
g.A.getStreamTimeOffset=function(){return this.bu?this.bu.getStreamTimeOffset():0};
g.A.Ao=function(){var F=0;this.YG.V("web_player_ss_media_time_offset")&&(F=this.getStreamTimeOffset()===0?this.Hj():this.getStreamTimeOffset());return F};
g.A.setPlaybackRate=function(F){var k;this.playbackRate!==F&&sn5(this.Y1,(k=this.videoData.U)==null?void 0:k.videoInfos)&&(this.playbackRate=F,xP(this));this.playbackRate=F;this.mediaElement&&this.mediaElement.setPlaybackRate(F)};
g.A.getPlaybackRate=function(){return this.playbackRate};
g.A.getPlaybackQuality=function(){var F="unknown";if(this.videoData.L&&(F=this.videoData.L.video.quality,F==="auto"&&this.mediaElement)){var k=this.cD();k&&k.videoHeight>0&&(F=gu(k.videoWidth,k.videoHeight))}return F};
g.A.isHdr=function(){return!!(this.videoData.L&&this.videoData.L.video&&this.videoData.L.video.isHdr())};
g.A.Rj=function(){this.Ap().Rj()};
g.A.sendVideoStatsEngageEvent=function(F,k){var z=this.Ap();z.Y?(z=UZ(z.Y,"engage"),z.t4=F,z.send(k)):k&&k()};
g.A.y_=function(F){return this.Ap().y_(F)};
g.A.isAtLiveHead=function(F,k){k=k===void 0?!1:k;return Ab(this.videoData)&&(this.i4||k)?this.bu.isAtLiveHead(F):!1};
g.A.BO=function(){var F=this.xN(),k=this.getCurrentTime(),z;(z=!Ab(this.videoData))||(z=this.bu,z=!(z.Y&&z.Y.U));return z||this.DK()||isNaN(F)||isNaN(k)?0:Math.max(0,F-k)};
g.A.Vs=function(F){(this.i4=F)||this.jF.stop();this.videoData.Y&&(F?this.videoData.Y.resume():xjR(this.videoData.Y));if(this.aU){var k=this.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&this.zf()&&this.videoData.isLivePlayback;F&&!k?this.aU.resume():ER(this,!0)}g.n(this.playerState,2)||F?g.n(this.playerState,512)&&F&&this.FI(Xg(this.playerState,512)):this.FI(EI(this.playerState,512));k=this.Ap();k.qoe&&(k=k.qoe,g.Nq(k,g.fA(k.provider),"stream",[F?"A":"I"]))};
g.A.WP=function(F){F={n:F.name,m:F.message};this.Ap().He("player.exception",Pw(F))};
g.A.jj=zp(28);g.A.Qa=zp(57);g.A.PO=function(F){this.Ap().PO(F)};
g.A.OQ=function(F){this.Ap().OQ(F)};
g.A.YQ=function(F){this.Ap().YQ(F)};
g.A.tH=zp(34);g.A.vc=zp(40);g.A.WI=function(F){this.Ap().WI(F)};
g.A.AU=function(){this.UK("hidden",{},!0)};
g.A.Gp=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
g.A.Br=function(){return this.aU?this.aU.Br():!0};
g.A.setLoop=function(F){this.loop=F;this.mediaElement&&!g.Vi(this.YG)&&this.mediaElement.setLoop(F)};
g.A.Tf=function(){return this.mediaElement&&!g.Vi(this.YG)?this.mediaElement.Tf():this.loop};
g.A.zj=function(F){this.UK("timestamp",{o:F.toString()});this.bu.zj(F)};
g.A.t5=function(F){this.gH.tick(F)};
g.A.l7=function(F){return this.gH.l7(F)};
g.A.H$=function(F){this.gH.H$(F)};
g.A.UK=function(F,k,z){z=z===void 0?!1:z;this.Ap().UK(F,k,z)};
g.A.sQ=function(F,k,z){z=z===void 0?!1:z;this.Ap().UK(F,k,z)};
g.A.He=function(F){this.Ap().He(F.errorCode,Pw(F.details));F=F.errorCode;if(this.videoData.isLivePlayback&&(F==="qoe.longrebuffer"||F==="qoe.slowseek")||F==="qoe.restart"){F=this.aU?Usn(this.aU.videoTrack):{};var k,z;this.UK("lasoe",Object.assign(this.aU?Usn(this.aU.audioTrack):{},(k=this.IU)==null?void 0:(z=k.Y)==null?void 0:z.xx()));var x,D;this.UK("lvsoe",Object.assign(F,(x=this.IU)==null?void 0:(D=x.L)==null?void 0:D.xx()))}};
g.A.SC=function(F,k,z){this.Ap().SC(F,k,z)};
g.A.W$=function(F,k,z,x,D,e,C,p){var E;if((E=this.videoData.Y)!=null&&E.isLive){var X=k.playerType===2?k:F,q=F.videoData.videoId,N=k.videoData.videoId;if(q&&N){E=this.Ap();if(E.qoe){var u=E.qoe,w=F.cpn,m=k.cpn,h=X.videoData.MD,B=u.provider.videoData.clientPlaybackNonce,U=u.provider.videoData.videoId,v=m!==B&&N!==U;B=w!==B&&q!==U;u.reportStats();u.adCpn&&u.adCpn!==w||(u.adCpn=B?w:"",u.U9=B?q:"",u.adFormat=B?h:void 0,Qm(u,2,e?4:D?2:0,m,N,x),u.reportStats(),u.adCpn=v?m:"",u.U9=v?N:"",u.adFormat=v?h:
void 0,Qm(u,2,e?5:D?3:1,w,q,z),u.reportStats())}z=F.cpn;if(E.U.has(z)){if(D=E.U.get(z),vh(D,!0).send(),ZU(D),z!==E.provider.videoData.clientPlaybackNonce){SZC(D);var P;(P=E.Y)==null||OZR(P);E.U.delete(z)}}else E.v5=E.provider.videoData.clientPlaybackNonce,E.v5&&E.Y&&(E.U.set(E.v5,E.Y),vh(E.Y).send(),ZU(E.Y));P=k.cpn;X=X.videoData;x-=this.Ao();if(E.U.has(P)){x=E.U.get(P);var I=x.U&&isNaN(x.W)?t7(x):NaN;x=aUa(x,!1);isNaN(I)||(x.G=I);x.send()}else x=F4p(E,E.provider,X,x),E.U.set(P,x),bZC(x,new g.lH(EI(new g.CR,
8),new g.CR)),P6n(x),(I=E.Y)==null||ZU(I);E.v5=P;this.V("html5_unify_csi_server_stitched_transition_logging")?alD(this.gH,F.cpn,k.cpn,this.videoData.clientPlaybackNonce,k.videoData,C,void 0,p):(E=this.gH,x=this.videoData.clientPlaybackNonce,I=k.videoData,F=(F.cpn===x?"video":"ad")+"_to_"+(k.cpn===x?"video":"ad"),x={},I.S&&(x.cttAuthInfo={token:I.S,videoId:I.videoId}),C&&(x.startTime=C),Ll(F,x),g.MF({targetVideoId:I.videoId,targetCpn:k.cpn,isSsdai:!0},F),E.YG.V("html5_enable_ssdai_transition_with_only_enter_cuerange")?
C||eR(E,p,F):eR(E,p,F))}}else this.logger.Y(360717806,"SSTEvent for nonSS")};
g.A.bS=function(){var F=this.GD,k=F.zF;F.zF=[];return k};
g.A.rW=function(F){this.videoData.Bu=!0;this.He(new O3("sabr.fallback",F));this.eO(!0)};
g.A.dY=function(F,k){this.videoData.Wp=!0;if(k===void 0||k)this.He(new O3("qoe.restart",F)),this.eO(!0);this.videoData.w3()&&this.V("html5_reload_caption_on_ssdai_fallback")&&this.GD.dQ()};
g.A.XH=function(F){this.UK("sdai",{aftimeout:F});this.He(new O3("ad.fetchtimeout",{timeout:F}))};
g.A.TV=function(F,k){this.UK("timelineerror",F);F=new O3("dai.timelineerror",F);k?this.qk("dai.timelineerror",1,"RETRYABLE_ERROR",Pw(F.details)):this.He(F)};
g.A.uJ=function(){return g.fA(this.Ap().provider)};
g.A.getPlayerSize=function(){return this.aN.getPlayerSize()};
g.A.eU=function(){return this.aN.eU()};
g.A.g$=function(){return this.gH};
g.A.gM=function(){return this.GD.gM()};
g.A.getVolume=function(){return this.GD.getVolume()};
g.A.pu=function(){return this.GD.pu()};
g.A.isMuted=function(){return this.GD.isMuted()};
g.A.Ms=function(){return this.GD.Ms()};
g.A.Ml=function(){this.Is=!0};
g.A.V=function(F){return this.YG.V(F)};
g.A.eS=function(F,k,z,x,D){this.UK("xvt",{m:F,g:k?1:0,tt:z?1:0,np:x?1:0,c:D})};
g.A.GV=function(){var F;(F=this.aU)==null||F.resume()};
g.A.zf=function(){return g.fC(this.t3,"ad")};
g.A.xF=function(){var F=this.getCurrentTime(),k=F-this.Hj();var z=this.mediaElement?wW(this.mediaElement.Ln()):0;z=Math.floor(Math.max(z-k,0))+100;var x;if(!this.V("html5_ssdai_disable_seek_to_skip")&&((x=this.aU)==null?0:x.At(k,this.xN())))return this.UK("sdai",{skipad:1,ct:k.toFixed(3),adj:0}),!0;var D;return((D=this.aU)==null?0:D.xF(k,z))?(this.UK("sdai",{skipad:1,ct:k.toFixed(3),adj:z.toFixed(3)}),$J(this.videoData)&&this.aU.seek(k+z,{seekSource:89,Sr:"videoplayer_skipServerStitchedAd"}),M4n(this.bu,
F),!0):!1};
g.A.Jp=function(){return this.YG.Jp()};
g.A.eg=function(){if(this.V("html5_generate_content_po_token"))return this.videoData.ys||"";this.GD.oC();return this.YG.Ki||""};
g.A.AF=function(){if(this.videoData.videoId)return this.videoData.kV};
g.A.xP=function(){return this.videoData.videoId};
g.A.LV=function(){return this.GD.NS};
g.A.JP=function(){return this.GC};
g.A.Vd=function(){return this.GD.Vd()};
g.A.a5=function(F,k){this.bu.a5(F,k)};
g.A.Wt=function(){this.bu.Wt()};
g.A.WU=function(F,k){var z=this.V("html5_generate_content_po_token")?this.videoData:void 0;this.GD.WU(F,k,z)};
g.A.qe=function(F,k){var z;(z=this.aU)==null||z.qe(F,k)};
g.A.mC=function(){var F=this.MV();return!!F&&F.mC()};
g.A.Lp=function(){return this.jz};
g.A.nB=function(F,k){this.Ap().nB(F,k)};
g.A.TC=function(){return this.Ap().TC()};
g.A.e3=function(){return this.videoData.Rh};
g.A.gi=function(){return this.GD.gi()};
g.A.kH=function(){return this.GD.kH(this)};
g.A.SN=function(){return this.dT};
g.A.X2=function(F){var k;(k=this.aU)==null||k.X2(F)};
g.A.Xy=function(){var F;(F=this.aU)==null||F.Xy()};g.T(LVx,FC);g.T(fqC,FC);g.A=fqC.prototype;g.A.seekToChapterWithAnimation=function(F){var k=this;if(g.mJ(this.api)&&!(F<0)){var z=this.api.getVideoData(),x=z.pn;if(x&&F<x.length){x=g.l(x);for(var D=x.next();!D.done;D=x.next())if(D=D.value,D.index===F){KVR(this,D.startTime,D.title);return}}this.V("web_key_moments_markers")&&(z=z.Uf)&&F<z.length&&z.forEach(function(e,C){C===F&&KVR(k,e.timeRangeStartMillis,e.title)})}};
g.A.seekToTimeWithAnimation=function(F,k){g.mJ(this.api)&&KVR(this,F,k)};
g.A.setMacroMarkers=function(F,k){k={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:k}}}}}};F=F.getVideoData();F.getWatchNextResponse();F&&F.getWatchNextResponse()==null&&(YE(F,{raw_watch_next_response:k}),F.publish("dataupdated"))};
g.A.changeMarkerVisibility=function(F,k,z){var x=this.api.getVideoData();if(x){var D=!1;if(F)for(F=g.l(k),k=F.next();!k.done;k=F.next()){k=k.value;var e=x.UH;if(e&&!e.includes(k))switch(z){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":FUR(k,x)||(D=!0,e=void 0,(e=x.UH)==null||e.push(k));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":e.length===0&&(D=!0,e=void 0,(e=x.UH)==null||e.push(k));break;default:D=!0,e=void 0,(e=x.UH)==null||e.push(k)}}else for(z=
g.l(k),F=z.next();!F.done;F=z.next())F=F.value,x.visibleOnLoadKeys.includes(F)||g.FN(x.UH,F)&&(D=!0);D&&this.api.publish("updatemarkervisibility")}};
g.A.isSameMarkerTypeVisible=function(F){var k=this.api.getVideoData();return k?FUR(F,k):!1};g.T(qC,FC);
qC.prototype.updateMetadata=function(){var F=this,k=this.api.getVideoData();if(k!=null&&k.ut()){var z=this.api.C(),x=[],D="";if(!z.PR){var e=zdH(this);g.g8(z)&&e?(x=xwY(e.thumbnailDetails),e.album&&(D=Uw(e.album))):x=[{src:k.zr("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}var C;((C=this.api.getVideoData())==null?0:C.B)&&iaI(this);k1n(this);o9R(this);navigator.mediaSession.metadata=new MediaMetadata({title:k.title,artist:k.author,artwork:x,album:D});z=k=null;g.Pv(this.api)&&(k=function(){F.api.nextVideo()},
z=function(){F.api.previousVideo()});
NC("nexttrack",k);NC("previoustrack",z)}};
qC.prototype.h4=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var F=g.l("nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ")),k=F.next();!k.done;k=F.next())NC(k.value,null);var z;((z=this.api.getVideoData())==null?0:z.B)&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});FC.prototype.h4.call(this)};g.T(uO,FC);uO.prototype.j=function(F){return F.compositeEmbargo!==void 0};
uO.prototype.h4=function(){FC.prototype.h4.call(this);this.L.clear()};g.T(C2M,FC);g.A=C2M.prototype;g.A.queueOfflineAction=function(F,k,z,x){var D=this,e,C;return g.O(function(p){return p.Y==1?(e=G0(D.api.iL()))?g.c(p,e.Ae([F],k,z,x),3):p.Sk(2):p.Y!=2&&(C=p.L,C.length)?p.return(C[0]):p.return(Promise.reject())})};
g.A.updateDownloadState=function(F,k){var z=G0(this.api.iL());return z?z.updateDownloadState(F,k):Promise.reject()};
g.A.pauseVideoDownload=function(F){var k=G0(this.api.iL());k&&k.qO(F)};
g.A.resumeVideoDownload=function(F){var k=this,z;return g.O(function(x){return(z=G0(k.api.iL()))?x.return(z.Jt(F)):x.return(Promise.reject())})};
g.A.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()};
g.A.refreshAllStaleEntities=function(F){F===void 0&&(F=14400);var k=G0(this.api.iL());return k?k.refreshAllStaleEntities(F):Promise.reject()};
g.A.setUpPositionSyncInterval=function(F){var k=G0(this.api.iL());k&&k.setUpPositionSyncInterval(F)};g.T(w1,FC);w1.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}};
w1.prototype.getAvailableQualityData=function(){var F=this.api.getVideoData();if(!F)return[];var k=[],z,x,D=(z=F.getPlayerResponse())==null?void 0:(x=z.playabilityStatus)==null?void 0:x.paygatedQualitiesMetadata;x=(D==null?void 0:D.qualityDetails)||[];z=new Map;z=g.M9(x)&&!Array.isArray(x)?new Map(Object.entries(x)):new Map(x.map(function(C){return[C.key,C.value]}));
if(x=D==null?void 0:D.restrictedAdaptiveFormats){D=[];x=g.l(x);for(var e=x.next();!e.done;e=x.next())e=e.value,e=At(e.mimeType,e.quality,e.itag.toString(),e.width.toString(),e.height.toString(),e.qualityLabel),D.push(e);F=g.jk(F);rV(D);x=[];D=g.l(D);for(e=D.next();!e.done;e=D.next())e=e.value,QJ(F,e,this.api.C().W)===!0&&x.push(e);k=k.concat(ARa(x,!1,z))}F=this.api.j3();k=k.concat(ARa(F,!0,z));z=[];if(this.api.V("web_player_enable_premium_hbr_in_h5_api"))return k=E9p(k),pLR(k),k;F={};k=g.l(k);for(D=
k.next();!D.done;D=k.next())D=D.value,x=D.quality,F[x]||(D.formatId=void 0,z.push(D),F[x]=!0);return z};var ml={},J0p=(ml["internal-error"]=-1,ml["non-recoverable-error"]=-2,ml["api-disabled-by-application"]=-3,ml["invalid-argument"]=-4,ml["token-provider-invalid"]=-5,ml);g.T(m4,FC);m4.prototype.y9=function(F){var k=this;if(qUD())if(!this.L&&this.Y){wLH(this,F);try{this.Y.then(function(){uiR(k,F)},function(z){Td(z,"player_update");
k.handleError(z,F)})}catch(z){Td(z,"player_update_catch"),this.handleError(z,F)}}else this.L?uiR(this,F):this.api.UK("pf",{m:this.L?1:0,
p:this.Y?1:0})};
m4.prototype.handleError=function(F,k){g.yI(F);if(this.api.V("html5_enable_d6de4_cold_start_and_error")){var z=0;F.mediaIntegrityErrorName?z||(z=J0p[F.mediaIntegrityErrorName]):F.code&&(z=F.code());k.kV={QgJ:{code:z}}}};g.T(lO,g.Y);lO.prototype.G4=function(F){F=F?"Exit picture-in-picture":"Picture-in-picture";this.update({"data-title-no-tooltip":F,title:F});this.api.Ei()};
lO.prototype.onClick=function(){this.api.togglePictureInPicture()};g.T(Qe,FC);Qe.prototype.createButton=function(){var F=this;this.button=new lO(this.api);g.b(this,this.button);this.api.Qx(this.button);this.events.N(this.api,"videodatachange",function(){mwI(F)});
mwI(this)};
Qe.prototype.setDocumentPictureInPicture=function(F){this.api.qB().bv(F);F=this.api.NB();var k=GR5(this.api.iL());k&&(F?k.load():k.unload());this.api.publish("documentpictureinpicturechange")};g.T(TOC,FC);g.T(r1,g.Y);g.A=r1.prototype;g.A.In=function(){};
g.A.rJ=function(){};
g.A.Fa=function(){return!0};
g.A.fTa=function(){if(this.expanded){this.kG.show();var F=this.U.element.scrollWidth}else F=this.U.element.scrollWidth,this.kG.hide();this.MD=this.J4+F;g.XF(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?this.J4:this.MD)+"px";this.NJ.start()};
g.A.KS=function(){this.badge.element.style.width=(this.expanded?this.MD:this.J4)+"px";this.vR.start()};
g.A.MK=function(){this.j&&this.T.logVisibility(this.badge.element,this.Fa());this.Qh&&this.T.logVisibility(this.dismissButton.element,this.Fa()&&this.d1())};
g.A.eB=function(F){this.t4=F;sR(this);hr(this);this.e1()};
g.A.g94=function(){g.XF(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.A.d1=function(){return this.PR||this.t4||!this.B};
g.A.e1=function(){this.Fa()?this.K.show():this.K.hide();this.MK()};
g.A.rZ=function(){this.enabled=!1;this.e1()};
g.A.TH=function(F){F?this.Qh&&this.T.logClick(this.dismissButton.element):this.j&&this.T.logClick(this.badge.element)};
g.A.cG_=function(){this.e1()};
g.A.EjR=function(F){this.Xm=F===1;this.e1();g.XF(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.A.AlR=function(){g.XF(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.T.isFullscreen());this.e1()};g.T(Bq,g.Q7);Bq.prototype.Sy=function(){this.publish("size-change")};
Bq.prototype.focus=function(){this.content.focus()};
Bq.prototype.iZ=function(){this.publish("back")};g.T(g.Gd,Bq);g.A=g.Gd.prototype;g.A.Iy=function(F,k){if(k===void 0?0:k)this.items.push(F),this.menuItems.element.appendChild(F.element);else{k=g.eS(this.items,F,QFC);if(k>=0)return;k=~k;g.$r(this.items,k,0,F);XE(this.menuItems.element,F.element,k)}F.subscribe("size-change",this.FX,this);this.menuItems.publish("size-change")};
g.A.N$=function(F){F.unsubscribe("size-change",this.FX,this);this.z4()||(g.FN(this.items,F),this.menuItems.element.removeChild(F.element),this.menuItems.publish("size-change"))};
g.A.FX=function(){this.menuItems.publish("size-change")};
g.A.focus=function(){for(var F=0,k=0;k<this.items.length;k++){var z=this.items[k].element;if(z.getAttribute("role")==="menuitemradio"){if(z.getAttribute("aria-checked")==="true"){F=k;break}}else break}this.items[F].focus()};
g.A.Ip=function(){return this.items.length};g.T(g.tr,g.RL);g.A=g.tr.prototype;g.A.show=function(){g.RL.prototype.show.call(this);this.lN()};
g.A.hide=function(){g.RL.prototype.hide.call(this);this.Y.length>1&&g.vq(this)};
g.A.lN=function(){rRn(this);this.Q2&&(hdM(this),g.s0(this.element,this.size))};
g.A.FZ=function(){var F=this.Y.pop();sFa(this,F,this.Y[this.Y.length-1],!0)};
g.A.jD=function(F){if(!F.defaultPrevented)switch(F.keyCode){case 27:this.bL();F.preventDefault();break;case 37:this.Y.length>1&&this.FZ();F.preventDefault();break;case 39:F.preventDefault()}};
g.A.focus=function(){this.Y.length&&this.Y[this.Y.length-1].focus()};
g.A.h4=function(){g.RL.prototype.h4.call(this);this.S&&this.S.dispose();this.G&&this.G.dispose()};g.T(cq,g.tr);cq.prototype.open=function(F,k){this.initialize(F.items)&&this.NR(k,!!k)};
cq.prototype.initialize=function(F){g.UR(this.tv);if(F===void 0||F.length===0)return!1;var k=F.length;F=g.l(F);for(var z=F.next();!z.done;z=F.next())this.Iy(z.value,k--);return!0};
cq.prototype.Iy=function(F,k){F.menuNavigationItemRenderer?Uwp(this,F.menuNavigationItemRenderer,k):F.menuServiceItemRenderer&&tf9(this,F.menuServiceItemRenderer,k)};g.T(Pq,r1);g.A=Pq.prototype;g.A.In=function(F){F.target!==this.dismissButton.element&&F.target!==this.overflowButton.element&&(this.TH(),this.onClickCommand&&this.T.ZQ("innertubeCommand",this.onClickCommand))};
g.A.rJ=function(){this.enabled=!1;this.K.hide()};
g.A.Fa=function(){return!!this.Y&&this.enabled};
g.A.onVideoDataChange=function(F,k){this.E5(k);if(this.Y){this.Sc();a:if(!this.isCounterfactual){var z,x,D;this.banner.update({title:(z=this.Y)==null?void 0:z.title,subtitle:(x=this.Y)==null?void 0:x.subtitle,metadata:(D=this.Y)==null?void 0:D.metadataText});var e;this.onClickCommand=g.J((e=this.Y)==null?void 0:e.onTap,gF);var C;if(F=g.J((C=this.Y)==null?void 0:C.onOverflow,gF))this.G=g.J(F,S7n);var p;if((p=this.Y)==null?0:p.thumbnailImage){var E,X;C=((E=this.Y)==null?void 0:(X=E.thumbnailImage)==
null?void 0:X.sources)||[];if(C.length===0)break a;this.thumbnailImage.update({url:C[0].url})}else{var q;if((q=this.Y)==null?0:q.thumbnailIconName){var N;this.thumbnailIcon.update({icon:(N=this.Y)==null?void 0:N.thumbnailIconName})}}var u;this.shouldShowOverflowButton=!((u=this.Y)==null||!u.shouldShowOverflowButton);var w;this.shouldHideDismissButton=!((w=this.Y)==null||!w.shouldHideDismissButton)}var m;this.banner.element.setAttribute("aria-label",((m=this.Y)==null?void 0:m.a11yLabel)||"");var h;
this.RU=(h=this.Y)==null?void 0:h.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;v9Y(this)}};
g.A.JlU=function(){this.isVisible=!0;v9Y(this)};
g.A.qJG=function(){this.isVisible=!1;v9Y(this)};
g.A.MK=function(){r1.prototype.MK.call(this);this.L&&this.T.logVisibility(this.banner.element,this.isVisible)};
g.A.TH=function(){r1.prototype.TH.call(this,!1);this.L&&this.T.logClick(this.banner.element)};
g.A.hC=function(F){this.S||(this.S=new cq(this.T),g.b(this,this.S));var k,z;if((k=this.G)==null?0:(z=k.menu)==null?0:z.menuRenderer)this.S.open(this.G.menu.menuRenderer,F.target),F.preventDefault()};
g.A.E5=function(){};
g.A.Sc=function(){};
g.A.h4=function(){this.T.H7("suggested_action_view_model");r1.prototype.h4.call(this)};g.T(OR,Pq);
OR.prototype.E5=function(F){var k,z,x;this.productUpsellSuggestedActionViewModel=g.J((k=F.getWatchNextResponse())==null?void 0:(z=k.playerOverlays)==null?void 0:(x=z.playerOverlayRenderer)==null?void 0:x.suggestedActionViewModel,zu7);var D;if((D=this.productUpsellSuggestedActionViewModel)==null?0:D.content){var e;this.Y=g.J((e=this.productUpsellSuggestedActionViewModel)==null?void 0:e.content,IPG)}var C,p;if(this.L=!!((C=this.productUpsellSuggestedActionViewModel)==null?0:(p=C.loggingDirectives)==null?
0:p.trackingParams)){var E,X;this.T.setTrackingParams(this.banner.element,((E=this.productUpsellSuggestedActionViewModel)==null?void 0:(X=E.loggingDirectives)==null?void 0:X.trackingParams)||null)}var q;this.isCounterfactual=!((q=this.productUpsellSuggestedActionViewModel)==null||!q.isCounterfactualServing)};
OR.prototype.Sc=function(){var F=[],k,z=g.l(((k=this.productUpsellSuggestedActionViewModel)==null?void 0:k.ranges)||[]);for(k=z.next();!k.done;k=z.next()){var x=k.value;x&&(k=Number(x.startTimeMilliseconds),x=Number(x.endTimeMilliseconds),isNaN(k)||isNaN(x)||F.push(new g.ps(k,x,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.T.Li(F)};g.T(cRp,FC);g.T(Ve,FC);Ve.prototype.onVideoDataChange=function(F,k){var z=this;if(!Rk(k)&&(F==="newdata"&&Oak(this),this.L&&this.U&&F==="dataloaded")){var x;QK(DL(this.api.C(),(x=this.api.getVideoData())==null?void 0:g.dy(x)),function(D){z.U=!1;dwk(z,D)})}};
Ve.prototype.Bl=function(){var F=this;if(g.Vi(this.api.C())){var k,z=g.iJ(this.api.C(),(k=this.api.getVideoData())==null?void 0:g.dy(k));return QK(uk(z),function(x){var D=d5();JM(D,x);return F.api.Bl(D)})}return uk(this.api.Bl())};g.T(g.Hq,g.LY);g.A=g.Hq.prototype;g.A.open=function(){g.Z2(this.Sz,this.L)};
g.A.hG=function(F){JRM(this);var k=this.options[F];k&&(k.element.setAttribute("aria-checked","true"),this.r3(this.yH(F)),this.U=F)};
g.A.zR=function(F){g.UR(this.L);for(var k={},z=!1,x=0;x<F.length;x++){var D=F[x],e=this.options[D],C=D===this.U;C&&(z=!0);e&&e.priority===-x?(g.Ma(this.options[D],this.yH(D,!0)),delete this.options[D]):e=this.iX(D,-x,C);k[D]=e;this.L.Iy(e,!0)}z||(this.U=null);F=g.l(Object.keys(this.options));for(z=F.next();!z.done;z=F.next())this.options[z.value].dispose();this.options=k};
g.A.iX=function(F,k,z,x){var D=this;z={X:"div",WR:["ytp-menuitem",x?"ytp-menuitem-with-footer":""],D:{tabindex:"0",role:"menuitemradio","aria-checked":z?"true":"false"},Z:[{X:"div",WR:["ytp-menuitem-label"],jk:"{{label}}"}]};x&&(x={X:"div",J:"ytp-menuitem-footer",Z:[x]},z.Z?z.Z.push(x):z.Z=[x]);k=new g.LY(z,k,this.yH(F,!0));k.listen("click",function(){D.gA(F)});
return k};
g.A.enable=function(F){this.B?F||(this.B=!1,this.OV(!1)):F&&(this.B=!0,this.OV(!0))};
g.A.OV=function(F){F?this.Sz.Iy(this):this.Sz.N$(this)};
g.A.XY=function(F){this.publish("select",F)};
g.A.gA=function(F){this.XY(F)};
g.A.yH=function(F){return F.toString()};
g.A.Fl=function(F){F.defaultPrevented||F.keyCode!==39||(this.open(),F.preventDefault())};
g.A.h4=function(){this.B&&this.Sz.N$(this);g.LY.prototype.h4.call(this);for(var F=g.l(Object.keys(this.options)),k=F.next();!k.done;k=F.next())this.options[k.value].dispose()};g.T(yRM,g.Hq);g.A=yRM.prototype;g.A.G4=function(){var F=this.s9("Off");this.T.getPresentingPlayerType()!==2?(Rdp(this),this.hG(this.S),this.Y&&(this.S===F?this.Y="":this.setSleepTimerTimeLeft(this.Y)),this.G&&this.setVideoTimeLeft(this.G),this.enable(!0)):(this.zR([]),this.enable(!1))};
g.A.XY=function(F){g9n(this,F);this.Sz.FZ()};
g.A.s9=function(F){switch(F){case "Off":return"Off";case "End of video":return"End of video";case "End of playlist":return"End of playlist";default:return(F.toString()+" Minutes").toLowerCase()}};
g.A.onVideoDataChange=function(F){F==="dataloaded"&&Rdp(this)};
g.A.zK4=function(F){this.T.logVisibility(this.element,F)};
g.A.onClick=function(){this.T.logClick(this.element)};
g.A.resetSleepTimerMenuSettings=function(){g9n(this,this.s9("Off"))};
g.A.setSleepTimerTimeLeft=function(F){this.Y=F;this.r3(F)};
g.A.setVideoTimeLeft=function(F){this.G=F;this.j.r3(F)};g.T(ar,FC);ar.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()};
ar.prototype.setSleepTimerTimeLeft=function(F){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(F)};
ar.prototype.setVideoTimeLeft=function(F){this.menuItem&&this.menuItem.setVideoTimeLeft(F)};g.T(YUR,FC);g.T(g.bO,g.uG);g.A=g.bO.prototype;g.A.N=function(F,k){this.j.N(this.B,F,k,void 0,!this.Y)};
g.A.cancel=function(){this.U&&(this.U=!1,this.publish("dragend",0,0,null));this.L&&(this.L=!1,this.publish("hoverend",0,0,null),d1(this),S4(this))};
g.A.gK=function(F){d1(this);this.N(Jr("move"),this.va);this.N(Jr("out"),this.P1);this.N("touchstart",this.ow);this.Y&&this.N(Jr("down"),this.yy);var k=F.target;F=new g.sV(F.pageX,F.pageY);this.L=!0;this.publish("hoverstart",F.x,F.y,k);this.publish("hovermove",F.x,F.y,k)};
g.A.va=function(F){var k=F.target;F=new g.sV(F.pageX,F.pageY);if(this.W){var z=this.W;this.W=null;if(z.relatedTarget===k&&rf(new g.sV(z.pageX,z.pageY),F))return}this.publish("hovermove",F.x,F.y,k)};
g.A.P1=function(F){var k=new g.sV(F.pageX,F.pageY),z=F.relatedTarget;try{if(z&&g.N_(this.target,z)){this.W=F;this.publish("hovermove",k.x,k.y,z);return}}catch(x){}d1(this);S4(this);this.L=!1;this.publish("hoverend",k.x,k.y,z)};
g.A.BHf=function(F){this.gK(F);this.yy(F)};
g.A.yy=function(F){if(typeof F.button!=="number"||F.button===0){d1(this);this.j.N(ye(F.target),Jr("move"),this.wj_);this.j.N(ye(F.target),Jr("up"),this.tC);var k=F.target;if(g.DA)this.N("dragstart",this.Bg);else if(F.preventDefault(),(g.Fd||qO)&&k)a:{for(var z=k;z;){if(enn(z)||z.getAttribute("tabindex")==="-1"){z.focus();break a}z=z.parentElement}ye(k).activeElement.blur()}this.U=!0;F=new g.sV(F.pageX,F.pageY);this.publish("dragstart",F.x,F.y,k);this.publish("dragmove",F.x,F.y,k)}};
g.A.Bg=function(F){F.preventDefault()};
g.A.wj_=function(F){var k=F.target;k===ye(F.target)&&(k=null);F=new g.sV(F.pageX,F.pageY);this.publish("hovermove",F.x,F.y,k);this.publish("dragmove",F.x,F.y,k)};
g.A.tC=function(F){d1(this);this.U=!1;var k=vW(F),z=F.target;F=new g.sV(F.pageX,F.pageY);k&&g.N_(this.target,k)?(this.N(Jr("move"),this.va),this.N(Jr("out"),this.P1),this.N(Jr("down"),this.yy),this.N("touchstart",this.ow),this.publish("dragend",F.x,F.y,z)):(S4(this),this.L=!1,this.publish("dragend",F.x,F.y,z),this.publish("hoverend",F.x,F.y,z))};
g.A.ow=function(F){var k=F.changedTouches[0];k&&(d1(this),this.K||(this.N("touchmove",this.PiQ),this.N("touchend",this.YI),this.N("touchcancel",this.YI),this.S=k.identifier,F=F.target,this.L||(this.L=!0,this.publish("hoverstart",k.pageX,k.pageY,F)),this.publish("hovermove",k.pageX,k.pageY,F),this.Y&&(this.U=!0,this.publish("dragstart",k.pageX,k.pageY,F),this.publish("dragmove",k.pageX,k.pageY,F))))};
g.A.PiQ=function(F){var k=n9C(this,F);k&&(this.Y&&F.preventDefault(),F=F.target,this.publish("hovermove",k.pageX,k.pageY,F),this.Y&&this.publish("dragmove",k.pageX,k.pageY,F))};
g.A.YI=function(F){var k=n9C(this,F);if(k){d1(this);S4(this);this.L=!1;var z=F.target;this.Y&&(this.G||F.preventDefault(),this.U=!1,this.publish("dragend",k.pageX,k.pageY,z));this.publish("hoverend",k.pageX,k.pageY,z)}};
g.A.h4=function(){this.Y&&(g.DA&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");d1(this);g.uG.prototype.h4.call(this)};
var Mf9=!1;g.T(LUI,g.Y);LUI.prototype.Wl=function(){g.Xr(this.element,"display","none");this.T.logVisibility(this.Y,!1)};g.T(g1,FC);g1.prototype.PR=function(F,k){this.z4()||(this.B=[F,k],this.Y.subscribe("dragmove",this.S,this),this.Y.subscribe("dragend",this.W,this),this.U||g.WN(this.delay))};
g1.prototype.Xf=function(){if(this.j){this.U=!0;this.mp=this.api.getPlaybackRate();this.yh=this.api.getPlayerStateObject().isPaused();var F=this.speedmasterUserEdu;g.Xr(F.element,"display","");F.T.logVisibility(F.Y,!0);this.api.setPlaybackRate(this.cR);this.api.hideControls();this.api.playVideo();this.G&&(this.G.yR=!0);this.Qh&&(this.Qh.f5=!0)}};
g1.prototype.S=function(F,k){if(!this.U){F=[F,k];var z=this.B;z&&F&&z.length===2&&F.length===2?(k=Math.abs(z[0]-F[0]),z=Math.abs(z[1]-F[1]),k=Math.sqrt(k*k+z*z)):k=-1;k<this.t4?this.B=F:YP(this)}};
g1.prototype.W=function(){YP(this)};g.T(KU5,FC);KU5.prototype.onVideoDataChange=function(F){F==="newdata"&&this.api.iL().createSubtitlesModuleIfNeeded()};g.T(nn,g.gd);nn.prototype.preventDefault=function(){g.gd.prototype.preventDefault.call(this);this.Y&&this.Y.preventDefault()};
nn.prototype.stopPropagation=function(){g.gd.prototype.stopPropagation.call(this);this.Y&&this.Y.stopPropagation()};g.T(g.MC,iN);g.A=g.MC.prototype;g.A.tA=function(){return!0};
g.A.isView=function(){return!1};
g.A.aT=function(){return!1};
g.A.T$=function(){return this.Y};
g.A.TY=function(){return this.Y.src};
g.A.Zo=function(F){var k=this.getPlaybackRate();this.Y.src=F;this.setPlaybackRate(k)};
g.A.gg=function(){this.Y.removeAttribute("src")};
g.A.getPlaybackRate=function(){try{return this.Y.playbackRate>=0?this.Y.playbackRate:1}catch(F){return 1}};
g.A.setPlaybackRate=function(F){this.getPlaybackRate()!==F&&(this.Y.playbackRate=F);return F};
g.A.Tf=function(){return this.Y.loop};
g.A.setLoop=function(F){this.Y.loop=F};
g.A.canPlayType=function(F,k){return this.Y.canPlayType(F,k)};
g.A.isPaused=function(){return this.Y.paused};
g.A.isSeeking=function(){return this.Y.seeking};
g.A.isEnded=function(){return this.Y.ended};
g.A.Gk=function(){return this.Y.muted};
g.A.ZP=function(F){Jw();this.Y.muted=F};
g.A.lh=function(){return this.Y.played||EH([],[])};
g.A.Ln=function(){try{var F=this.Y.buffered}catch(k){}return F||EH([],[])};
g.A.UB=function(){return this.Y.seekable||EH([],[])};
g.A.L3=function(){var F=this.Y;return F.getStartDate?F.getStartDate():null};
g.A.getCurrentTime=function(){return this.Y.currentTime};
g.A.setCurrentTime=function(F){this.Y.currentTime=F};
g.A.getDuration=function(){return this.Y.duration};
g.A.load=function(){var F=this.Y.playbackRate;try{this.Y.load()}catch(k){}this.Y.playbackRate=F};
g.A.pause=function(){this.Y.pause()};
g.A.play=function(){var F=this.Y.play();if(!F||!F.then)return null;F.then(void 0,function(){});
return F};
g.A.gp=function(){return this.Y.readyState};
g.A.JF=function(){return this.Y.networkState};
g.A.Cn=function(){return this.Y.error?this.Y.error.code:null};
g.A.SO=function(){return this.Y.error?this.Y.error.message:""};
g.A.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.Y instanceof window.HTMLVideoElement&&this.Y.getVideoPlaybackQuality)return this.Y.getVideoPlaybackQuality();if(this.Y){var F=this.Y,k=F.webkitDroppedFrameCount;if(F=F.webkitDecodedFrameCount)return{droppedVideoFrames:k||0,totalVideoFrames:F}}return{}};
g.A.Pc=function(){return!!this.Y.webkitCurrentPlaybackTargetIsWireless};
g.A.pg=function(){return!!this.Y.webkitShowPlaybackTargetPicker()};
g.A.togglePictureInPicture=function(){var F=this.Y,k=window.document;window.document.pictureInPictureEnabled?this.Y!==k.pictureInPictureElement?F.requestPictureInPicture():k.exitPictureInPicture():du()&&F.webkitSetPresentationMode(F.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")};
g.A.X7=function(){var F=this.Y;return new g.sV(F.offsetLeft,F.offsetTop)};
g.A.getSize=function(){return g.rQ(this.Y)};
g.A.setSize=function(F){g.s0(this.Y,F)};
g.A.getVolume=function(){return this.Y.volume};
g.A.setVolume=function(F){Jw();this.Y.volume=F};
g.A.QN=function(F){this.W[F]||(this.Y.addEventListener(F,this.listener),this.W[F]=this.listener)};
g.A.setAttribute=function(F,k){this.Y.setAttribute(F,k)};
g.A.removeAttribute=function(F){this.Y.removeAttribute(F)};
g.A.hasAttribute=function(F){return this.Y.hasAttribute(F)};
g.A.j4=zp(67);g.A.h1=zp(69);g.A.F3=zp(71);g.A.ex=zp(73);g.A.Ke=function(){return ra(this.Y)};
g.A.Nw=function(F){g.C6(this.Y,F)};
g.A.bM=function(F){return g.NO(this.Y,F)};
g.A.BK=function(){return g.N_(document.body,this.Y)};
g.A.audioTracks=function(){var F=this.Y;if("audioTracks"in F)return F.audioTracks};
g.A.h4=function(){for(var F=g.l(Object.keys(this.W)),k=F.next();!k.done;k=F.next())k=k.value,this.Y.removeEventListener(k,this.W[k]);iN.prototype.h4.call(this)};
g.A.bQ=function(F){this.Y.disableRemotePlayback=F};g.T(Ln,g.Y);g.T(Kn,g.Y);Kn.prototype.show=function(){g.Y.prototype.show.call(this);this.G4();this.Vh.V("html5_enable_moving_s4n_window")&&g.Vi(this.Vh.C())&&this.B()};
Kn.prototype.hide=function(){g.Y.prototype.hide.call(this);this.delay.stop();this.j.stop()};
Kn.prototype.G4=function(){var F=(0,g.VE)(),k=FjR(this.Vh);fn(this.Y,k.bandwidth_samples);fn(this.G,k.network_activity_samples);fn(this.U,k.live_latency_samples);fn(this.L,k.buffer_health_samples);var z={};k=g.l(Object.entries(k));for(var x=k.next();!x.done;x=k.next()){var D=g.l(x.value);x=D.next().value;D=D.next().value;this.K[x]!==D&&(z[x]=" "+String(D));this.K[x]=D}this.update(z);F=(0,g.VE)()-F>25?5E3:500;this.delay.start(F)};
Kn.prototype.B=function(){this.S?(this.position+=1,this.position>15&&(this.S=!1)):(--this.position,this.position<=0&&(this.S=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.j.start(2E4)};g.T(zbI,FC);g.T(Wq,g.S);Wq.prototype.Y=function(){var F=(0,g.VE)()-this.startTime;F=F<this.duration?F/this.duration:1;this.L(Bj(y0Y,F));F<1&&this.delay.start()};
var y0Y=new r6(0,0,.4,0,.2,1,1,1),ebI=/[0-9.-]+|[^0-9.-]+/g;g.T(FP,g.Y);FP.prototype.onClick=function(){var F=this.api.app;var k=F.V("web_log_theater_mode_visibility")?!F.MX():!F.KR;F.Vh.ZQ("SIZE_CLICKED",k);this.api.logClick(this.element)};
FP.prototype.G4=function(){this.Yj(this.api.Db()&&!this.api.isFullscreen()&&this.api.getPresentingPlayerType()!==3);if(this.Q2){var F=this.api.MX();this.MX!==F&&this.Y3(F)}this.api.logVisibility(this.element,this.Q2)};
FP.prototype.Y3=function(F){var k=F?{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,D:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,D:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};this.MX==null?this.updateValue("icon",k):jgx(this.transition,this.element,
k);this.MX=F;k=g.UJ(this.api,"Default view","t");var z=g.UJ(this.api,"Theater mode","t");this.updateValue("title",F?k:z);this.update({"data-title-no-tooltip":F?"Default view":"Theater mode"});this.api.Ei()};g.T(CfM,FC);g.T(XXx,FC);g.A=XXx.prototype;g.A.onVideoDataChange=function(F){this.h$();this.videoId=F.videoId;this.L=this.Y=void 0;this.timelyActions=pXI(F);qkI(this);this.clearTimeout();this.Li()};
g.A.oo=function(F){var k=F.oldState,z=F.state,x=z.seekSource;!g.n(k,16)&&g.n(z,16)?this.eK(x!=null?x:void 0):g.n(k,16)&&!g.n(z,16)&&this.SK();F=F.state;F=!F.isCued()&&!g.n(F,1024);this.U.Yj(F)};
g.A.Li=function(){var F=this.Xb();F&&this.api.Li(F)};
g.A.h$=function(){this.api.H7("timelyAction",1);if(this.Y!==void 0)this.onCueRangeExit(this.Y)};
g.A.Xb=function(){if(this.timelyActions){for(var F=[],k=g.l(this.timelyActions),z=k.next();!z.done;z=k.next())z=z.value,z=z.startTimeMilliseconds!=null&&z.endTimeMilliseconds!=null&&z.cueRangeId!=null?new g.ps(Number(z.startTimeMilliseconds),Number(z.endTimeMilliseconds),{id:z.cueRangeId,namespace:"timelyAction"}):void 0,z&&F.push(z);return F}};
g.A.onCueRangeEnter=function(F){var k=kf(this,F);k&&this.j[F]!==void 0&&(k.maxShowCount===void 0||(k==null?void 0:k.maxShowCount)>this.j[F])&&(this.Y=F,uSk(this))};
g.A.onCueRangeExit=function(F){var k=Nbp(this,F);k&&this.Y===F&&this.api.ZQ("innertubeCommand",k);this.clearTimeout();this.Y=void 0};
g.A.onTimeout=function(F){this.Y!==void 0&&(F==null?void 0:F.cueRangeId)===this.Y&&(this.W=!1,(F=Nbp(this,this.Y))&&this.api.ZQ("innertubeCommand",F))};
g.A.eK=function(F){this.L=F};
g.A.SK=function(){uSk(this);this.L=void 0};
g.A.setTimeout=function(F){var k=this,z=Number(F==null?void 0:F.maxVisibleDurationMilliseconds);z&&(this.clearTimeout(),this.S=setTimeout(function(){k.onTimeout(F)},z))};
g.A.clearTimeout=function(){this.S&&clearTimeout(this.S);this.S=void 0;this.W=!1};
g.A.h4=function(){this.timelyActions=this.L=this.Y=this.videoId=void 0;this.j={};this.h$();this.clearTimeout();FC.prototype.h4.call(this)};g.T(Tb9,FC);var Tj={},voR=(Tj[1]="pot_ss",Tj[2]="pot_sf",Tj[3]="pot_se",Tj[4]="pot_xs",Tj[5]="pot_xf",Tj[6]="pot_xe",Tj),chn=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.T(xf,FC);xf.prototype.h4=function(){this.S&&(g.QL(this.S),this.S=void 0);FC.prototype.h4.call(this)};
xf.prototype.oC=function(){(this.Y?!this.Y.isReady():this.L)&&Dq(this)};
xf.prototype.C$=function(F,k,z){var x=this;if(Qg9(F)){var D=z||"",e;if((e=this.Y)==null?0:e.isReady())k=$f(this,D),hbR(F,k);else{var C=new g.Zd;k.push(C.promise);this.j.promise.then(function(){var p=$f(x,D);hbR(F,p);C.resolve()})}}};
xf.prototype.oN=function(F){var k=this;if(this.Y||this.L)F.ys=$f(this,F.videoId),this.Y&&!this.Y.isReady()&&(this.U=new xh,this.j.promise.then(function(){k.gH.l7("pot_if");F.ys=$f(k,F.videoId)}))};g.T(Oo5,FC);g.T(jR,g.S);jR.prototype.Y=function(){for(var F=g.l(g.v6.apply(0,arguments)),k=F.next();!k.done;k=F.next())(k=k.value)&&this.features.push(k)};
jR.prototype.h4=function(){for(var F=this.features.length-1;F>=0;F--)this.features[F].dispose();this.features.length=0;g.S.prototype.h4.call(this)};VhH.prototype.reset=function(){this.Y=this.L=NaN};g.A=IlR.prototype;g.A.reset=function(){RH(this.timerName)};
g.A.tick=function(F,k){nl(F,k,this.timerName)};
g.A.l7=function(F){return Kl(F,void 0,this.timerName)};
g.A.H$=function(F){PE(F,void 0,this.timerName)};
g.A.infoGel=function(F){g.MF(F,this.timerName)};g.T(box,g.uG);g.A=box.prototype;g.A.D4=function(F){return this.loop||!!F||this.index+1<this.length};
g.A.HZ=function(F){return this.loop||!!F||this.index-1>=0};
g.A.setShuffle=function(F){this.shuffle=F;F=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var k=0;k<this.items.length;k++)this.order.push(k);this.index=F;this.L++;if(this.shuffle){F=this.order[this.index];for(k=1;k<this.order.length;k++){var z=Math.floor(Math.random()*(k+1)),x=this.order[k];this.order[k]=this.order[z];this.order[z]=x}for(k=0;k<this.order.length;k++)this.order[k]===F&&(this.index=k);this.L++}this.publish("shuffle")};
g.A.zr=function(F){F=F||"hqdefault.jpg";var k=this.K[F];if(k||this.i$.PR||F==="sddefault.jpg"||F==="hq720.jpg"||F==="maxresdefault.jpg")return k;if(this.U.length)return YH(this.i$,this.U[0],F)};
g.A.getLength=function(){return this.length};
g.A.findIndex=function(F){if(F&&(F=F.videoId,!this.items[this.index]||this.items[this.index].video_id!==F))for(var k=0;k<this.items.length;k++)if(this.items[k].video_id===F){this.index=k;break}};
g.A.onReady=function(F){this.Y=F;this.loaded&&g.mz(this.Y,0)};
g.A.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.A.Ai=function(){return this.i$.getVideoUrl(g.A_(this).videoId,this.getPlaylistId())};
g.A.h4=function(){this.Y=null;g.AD(this.items);g.uG.prototype.h4.call(this)};var p0=new Map;g.T(g.XP,g.uG);g.A=g.XP.prototype;g.A.create=function(){};
g.A.load=function(){this.loaded=!0};
g.A.unload=function(){this.loaded=!1};
g.A.tG=function(){};
g.A.zy=function(){return!0};
g.A.h4=function(){this.loaded&&this.unload();g.uG.prototype.h4.call(this)};
g.A.rH=function(){return{}};
g.A.getOptions=function(){return[]};g.T(g.Ne,g.S);g.A=g.Ne.prototype;g.A.Ag=zp(76);g.A.F2=function(){};
g.A.s0=function(){};
g.A.WD=function(){return""};
g.A.CA=zp(77);g.A.C$=function(F,k){var z=this;if(this.Vh.C().V("html5_dispatch_tracklist_loaded_event")){this.j&&(this.j.reject(),this.j=null);var x=[];this.Vh.publish("trackListLoaded",this.L,x,k);x.length?(k=new g.Zd,k.promise.then(F.C$,function(){}),this.j=k,Promise.all(x).then(k.resolve,k.reject).finally(function(){z.j=null})):F.C$()}else F.C$()};
g.A.dQ=function(){};
g.A.h4=function(){this.j&&(this.j.reject(),this.j=null);this.s0();g.S.prototype.h4.call(this)};g.T(g.up,g.Ne);g.up.prototype.Ag=zp(75);g.up.prototype.F2=function(F){if(this.audioTrack)for(var k=g.l(this.audioTrack.captionTracks),z=k.next();!z.done;z=k.next())g.qe(this.L,z.value);this.C$(F,this.videoData.videoId)};
g.up.prototype.WD=function(F,k){var z=F.q5(),x={fmt:k};if(k==="srv3"||k==="3"||k==="json3")g.Lg()?Object.assign(x,{xorb:2,xobt:1,xovt:1}):Object.assign(x,{xorb:2,xobt:3,xovt:3});F.translationLanguage&&(x.tlang=g.uJ(F));this.U&&(x.xosf="1");Object.assign(x,this.Vh.C().Y);return el(z,x)};
g.up.prototype.s0=function(){this.Y&&this.Y.abort()};g.RnD=new Map;g.T(g.mV,g.Ne);g.mV.prototype.Ag=zp(74);
g.mV.prototype.F2=function(F){var k=this,z=this.U,x={type:"list",tlangs:1,v:this.videoId,vssids:1};this.I7&&(x.asrs=1);z=el(z,x);this.s0();this.Y=g.tB(z,{format:"RAW",onSuccess:function(D){k.Y=null;if((D=D.responseXML)&&D.firstChild){for(var e=D.getElementsByTagName("track"),C=0;C<e.length;C++){var p=e[C],E=p.getAttribute("lang_code"),X=p.getAttribute("lang_translated"),q=p.getAttribute("name"),N=p.getAttribute("kind"),u=p.getAttribute("id"),w=p.getAttribute("lang_default")==="true",m=p.getAttribute("cantran")===
"true";p=p.getAttribute("vss_id");g.qe(k.L,new g.Xd({languageCode:E,languageName:X,name:q,kind:N,id:u,is_servable:!0,is_translateable:m,vss_id:p,is_default:w}))}D=D.getElementsByTagName("target");e=D.length;for(C=0;C<e;C++)E={languageCode:D[C].getAttribute("lang_code"),languageName:D[C].getAttribute("lang_translated"),languageOriginal:D[C].getAttribute("lang_original"),id:D[C].getAttribute("id"),isDefault:D[C].getAttribute("lang_default")==="true"},k.S[E.languageCode]=E.languageName,k.W.push(E)}k.C$(F,
k.videoId)},
withCredentials:!0})};
g.mV.prototype.WD=function(F,k){var z=this.U;k={v:this.videoId,type:"track",lang:F.languageCode,name:F.getName(),kind:F.kind,fmt:k};var x=this.Vh.C();x.V("captions_url_add_ei")&&(k.ei=this.eventId);F.translationLanguage&&(k.tlang=g.uJ(F));Object.assign(k,x.Y);return z=el(z,k)};
g.mV.prototype.s0=function(){this.Y&&this.Y.abort()};Wj6.prototype.U=function(){for(var F=g.v6.apply(0,arguments),k=this,z=mM("empty"),x=[],D={Wd:0};D.Wd<this.L.length&&z.currentState!=="done";D={PF:void 0,Wd:D.Wd},D.Wd++)D.PF=this.L[D.Wd],D.PF.condition.apply(D.PF,g.r(F))&&(z=hd(hd(z,function(e){return function(){if(!e.PF.condition.apply(e.PF,g.r(F)))throw"condition failed";var C=e.PF.Ee.apply(e.PF,g.r(F));return k.Y===void 0||k.Y===null?C:QK(uk(C),function(p){if(!k.Y.apply(k,[p].concat(g.r(F))))throw"verification failed";return p})}}(D)),function(e){return function(C){C!==
"empty"&&C!=="condition failed"&&C!=="verification failed"&&C!=="error"&&(e.PF.onFailure&&e.PF.onFailure.apply(e.PF,[C].concat(g.r(F))),k.onFailure&&k.onFailure.apply(k,[C,
e.Wd,e.PF].concat(g.r(F))),x.push(C));throw"error";}}(D)));
return hd(z,function(){return mM(x)})};lp.prototype.preload=function(F){F=F?FBH(this.capabilities,F):this.capabilities;return F.E3?QK(zSY(this,F),function(){}):uk()};
lp.prototype.compile=function(F){return hd(this.W.U(F),function(k){throw Error("wasm module compile failure: "+k.map(function(z){return z.message}).join(", "),{cause:k});
})};
lp.prototype.instantiate=function(F,k){return hd(this.S.U(F,k),function(z){throw Error("wasm module instantiation failure: "+z.map(function(x){return x.message}).join(", "),{cause:z});
})};$cD.prototype.emscripten_notify_memory_growth=function(){};var xcp;g.A=eSR.prototype;g.A.malloc=function(F){return this.Y.malloc(F)};
g.A.free=function(F){this.Y.free(F)};
g.A.realloc=function(F,k){return this.Y.realloc(F,k)};
g.A.lH=function(F){if(F.buffer!==this.exports.memory.buffer){var k=this.malloc(F.byteLength);k=new Uint8Array(this.exports.memory.buffer,k,F.byteLength);k.set(F);return k}};
g.A.VW=function(F){if(F.buffer===this.exports.memory.buffer){var k=F.slice();this.free(F.byteOffset);return k}};
var Son="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);T0.bY(eSR,{lH:function(F){return{profile:"copyj2w",vx:F===void 0?0:Math.ceil(F.byteLength/16)}},
VW:function(F){return{profile:"copyw2j",vx:F===void 0?0:Math.ceil(F.byteLength/16)}}});g.T(p2R,g.S);g.A=p2R.prototype;g.A.createSubtitlesModuleIfNeeded=function(){NTk(this)&&h_(this,"captions");return!!g.Qt(this)};
g.A.HJ=function(){return g.Mk(this.T.getVideoData())&&!this.T.DX().U};
g.A.s_=function(){return this.T.getVideoData().s_()};
g.A.fT=function(){return this.T.getVideoData().fT()};
g.A.HY=function(){var F=this.hv.get("heartbeat");h_(this,"heartbeat",!1,!0,this.HY);!F&&this.hv.has("heartbeat")&&this.T.publish("offlineslatestatechange")};
g.A.Mz=function(){h_(this,"annotations_module",!0,void 0,this.Mz);var F=this.hv.get("annotations_module");if(F)for(var k in this.U)if(this.U.hasOwnProperty(k)){var z=k;F.subscribe(z,this.U[z])}};
g.A.AB=function(){if(!this.hv.get("ad"))try{E5H(this)?h_(this,"ad",!1,!0,this.AB):this.T.mE("ad")}catch(F){this.T.mE("ad"),g.JV(F)}};
g.A.g$=function(){return this.L};
g.A.gM=function(){var F={},k=g.Qt(this);k&&Object.assign(F,k.gM());return F};
g.A.k8=function(F,k){Object.assign(this.L,F||null);Object.assign(this.C3,k||null)};
g.A.onVideoDataChange=function(){var F=this.T.getVideoData();this.T.V("enable_wn_infocards")&&g.Oh(F)&&!g.UL(this)&&this.Mz()};
g.A.h4=function(){g.S.prototype.h4.call(this);sL(this,1,!0);for(var F=g.l(Object.entries(ZDa)),k=F.next();!k.done;k=F.next()){var z=g.l(k.value);k=z.next().value;z=z.next().value;this.j.has(z)&&p0.delete(k)}this.j.clear()};
var l_={},ZDa=(l_.ad="ad.js",l_.annotations_module="annotations_module.js",l_.asmjs="asmjs.js",l_.creatorendscreen="annotations_module.js",l_.embed="embed.js",l_.endscreen="endscreen.js",l_.heartbeat="heartbeat.js",l_.kids="kids.js",l_.remote="remote.js",l_.miniplayer="miniplayer.js",l_.offline="offline.js",l_.captions="captions.js",l_.unplugged="unplugged.js",l_.ux="ux.js",l_.webgl="webgl.js",l_.ypc="ypc.js",l_.ypc_clickwrap="ypc_clickwrap.js",l_.yto="yto.js",l_),rma="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.T(cmp,g.uG);g.A=cmp.prototype;g.A.iU=function(F){F=new g.sV(F.pageX,F.pageY);if(!rf(F,this.j)){var k=2;this.S&&(k|=8);this.j=F;Zq(this,k,!0)}};
g.A.uma=function(){this.S&&Zq(this,8,!0);Zq(this,2,!1)};
g.A.gK=function(F){var k=new g.sV(F.pageX,F.pageY);rf(k,this.j)||(this.j=k,(F=F.target)&&this.qz(F)&&(Zq(this,4,!0),this.Y.er(this.U),this.U=this.Y.N(this.target,"mouseover",this.P1),this.G=this.Y.N(this.target,"mouseout",this.P1)))};
g.A.P1=function(F){F=F.relatedTarget;F&&this.qz(F)||(this.j=new g.sV(NaN,NaN),PmH(this))};
g.A.PLt=function(){Zq(this,1,!0)};
g.A.gh=function(F){F=F.target;F instanceof Element&&!(F.tabIndex>0)||Zq(this,1,!0)};
g.A.UU=function(){this.S=!0;this.Y.er(this.W);this.W=this.Y.N(document,"mouseup",this.EG)};
g.A.EG=function(){this.S=!1;Zq(this,8,!1);this.Y.er(this.W);this.W=this.Y.N(this.target,"mousedown",this.UU)};
g.A.Q0=function(F){if(F=(F=F.changedTouches)&&F[0])this.t4=F.identifier,this.Y.er(this.B),this.B=this.Y.N(this.target,"touchend",this.mP,void 0,!0),Zq(this,1024,!0)};
g.A.mP=function(F){if(F=F.changedTouches)for(var k=0;k<F.length;k++){var z=F[k];if(z.identifier===this.t4){var x=z;break}}x&&(this.Y.er(this.B),this.B=this.Y.N(this.target,"touchstart",this.Q0,void 0,!0),Zq(this,1024,!1))};
g.A.wq=function(){Zq(this,2,!0)};
g.A.resize=function(){g.SD&&PmH(this)};
g.A.toString=function(){return g.uG.prototype.toString.call(this)};g.T(g.cm,g.Y);g.A=g.cm.prototype;g.A.W$h=function(){this.G4()};
g.A.G4=function(){var F=this.api.getVideoData(),k=this.api.C(),z=!!this.api.isEmbedsShortsMode();g.XF(this.element,"ytp-shorts-mode",z);z?k=[{X:"svg",D:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},Z:[{X:"path",D:{"clip-rule":"evenodd",d:"M83.99 10.81C90.08 21.24 86.62 34.66 76.26 40.79L69.05 45.06L74.17 47.38C81.58 50.74 86.52 57.99 86.96 66.17C87.40 74.34 83.27 82.09 76.26 86.24L32.76 111.97C22.41 118.10 9.08 114.61 3.00 104.18C-3.08 93.75 .37 80.33 10.73 74.20L17.94 69.93L12.82 67.61C5.41 64.25 .47 57.00 .03 48.82C-0.40 40.65 3.72 32.90 10.73 28.75L54.23 3.02C64.58 -3.10 77.91 .38 83.99 10.81Z",
fill:"#f00","fill-rule":"evenodd"}},{X:"path",D:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:g.xp(F)?k=[{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},Z:[{X:"path",J:"ytp-dni-large-play-button-bg",D:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{X:"path",D:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:F.Mk&&F.bC?k=[{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},Z:[{X:"path",J:"ytp-dni-large-play-button-bg",
D:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{X:"path",D:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:k.S?(g.XF(this.element,"ytp-touch-device",k.L),k=[k.S?{X:"svg",D:{height:"100%",version:"1.1",
viewBox:"0 0 60 60",width:"100%"},Z:[{X:"path",J:"ytp-large-play-button-bg",D:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{X:"path",D:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},Z:[{X:"path",J:"ytp-large-play-button-bg",D:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{X:"path",D:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):k=[{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},Z:[{X:"path",J:"ytp-large-play-button-bg",D:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#f03"}},{X:"path",D:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",k);F.Mk&&F.bC&&this.EK("ytp-dni-large-play-button-bg").setAttribute("fill",F.bC?F.bC:"#1f1f1f")};
g.A.show=function(){g.Y.prototype.show.call(this);this.api.C().V("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)};
g.A.tkQ=function(){this.api.getVideoData().mutedAutoplay||(this.api.OB(),this.api.playVideo())};
g.A.eVk=function(F){this.api.getVideoData().mutedAutoplay||F.preventDefault()};g.T(g.Pm,g.Y);g.A=g.Pm.prototype;g.A.show=function(){var F=this;this.Q2||(this.U.N(this.api,"videodatachange",function(){g.WN(F.Y)}),this.U.N(this.api,"videoplayerreset",function(){g.WN(F.Y)}));
g.Y.prototype.show.call(this)};
g.A.hide=function(){this.U&&g.VB(this.U);g.Y.prototype.hide.call(this)};
g.A.OH=function(){g.WN(this.Y)};
g.A.onStateChange=function(){g.WN(this.Y)};
g.A.Oi$=function(){g.WN(this.Y)};
g.A.onReset=function(){this.fade.stop();this.hide();g.WN(this.Y)};
g.A.G4=function(){var F=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(F.isPlaying()||F.isPaused()))var k=!0;else(k=this.api.iL().hv.get("ypc"))&&k.BP?k=!0:(k=this.api.C(),k=g.n(F,2)&&g.Z9(this.api)&&k.Z7?!0:!1);k?(k=!0,this.L.hide()):this.api.V("web_player_show_frame_zero_when_cued")&&ODD(this)?(k=!0,this.L.hide()):(this.L.show(),k=F.isCued()&&this.api.getPresentingPlayerType()!==2||g.n(F,2)&&!g.Z9(this.api)&&!this.api.jd()||g.n(F,1024)?!0:!1);var z=this.api.getVideoData();
k&&!z.Za?(this.fade.show(),this.l3G(this.api.getPlaylist(),z)):(this.fade.hide(),g.n(F,1)||this.fade.stop())};
g.A.l3G=function(){var F=g.v6.apply(0,arguments),k=this.api.C(),z,x=(z=this.api.getVideoData())==null?void 0:z.videoId;if(k.V("web_player_show_frame_zero_when_cued")&&x&&ODD(this))var D="https://web.archive.org/web/20250411103644/https://i.ytimg.com/vi/"+x+"/frame0.jpg";else for(F=g.l(F),z=F.next();!z.done;z=F.next())if(z=z.value,!(!z||z instanceof g.Rt&&!z.videoId)){D=this.api.Ka().getPlayerSize();var e=g.L_();x=D.width*e;e*=D.height;if(x>1280||e>720)if(D=z.zr("maxresdefault.jpg"))break;if(x>640||e>480)if(D=z.zr("maxresdefault.jpg"))break;
if(x>320||e>180)if(D=z.zr("sddefault.jpg")||z.zr("hqdefault.jpg")||z.zr("mqdefault.jpg"))break;if(D=z.zr("default.jpg"))break}g.WJ(k)&&(k=new Image,k.addEventListener("load",function(){KNk()}),k.src=D?D:"",this.api.g$().tick("ftr"));
this.j.style.backgroundImage=D?"url("+D+")":""};g.T(g.OL,g.Y);g.OL.prototype.resize=function(){};
g.OL.prototype.L=function(F){var k=this;this.U=!1;HDx(this);var z=F.hE,x=this.api.C();z!=="GENERIC_WITHOUT_LINK"||x.S?z==="TOO_MANY_REQUESTS"?(x=this.api.getVideoData(),this.r3(Hm(this,"TOO_MANY_REQUESTS_WITH_LINK",x.Ai(),void 0,void 0,void 0,!1))):z!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||x.S?this.api.C().V("html5_enable_bandaid_error_screen")&&z==="HTML5_SPS_UMP_STATUS_REJECTED"&&!x.S?(x=x.hostLanguage,F="//web.archive.org/web/20250411103644/https://support.google.com/youtube?p=videoError",x&&(F=g.oW(F,{hl:x})),this.r3(Hm(this,"HTML5_SPS_UMP_STATUS_REJECTED",
F))):this.api.C().V("enable_adb_handling_in_sabr")&&z==="BROWSER_OR_EXTENSION_ERROR"&&!x.S?(x=x.hostLanguage,F="//web.archive.org/web/20250411103644/https://support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",x&&(F=g.oW(F,{hl:x})),this.r3(Hm(this,"BROWSER_OR_EXTENSION_ERROR",F))):this.r3(g.Vt(F.errorMessage)):this.r3(Hm(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//web.archive.org/web/20250411103644/https://www.youtube.com/supported_browsers")):(F=x.hostLanguage,z="//web.archive.org/web/20250411103644/https://support.google.com/youtube/?p=player_error1",F&&(z=g.oW(z,
{hl:F})),this.r3(Hm(this,"GENERIC_WITH_LINK_AND_CPN",z,!0)),x.We&&!x.j&&IwD(this,function(e){if(g.eT(e,k.api,!n_(k.api.C()))){e={as3:!1,html5:!0,player:!0,cpn:k.api.getVideoData().clientPlaybackNonce};var C=k.api;C.YN("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});C.isFullscreen()&&C.toggleFullscreen()}}));
if(this.U){var D=this.EK("ytp-error-link");D&&(this.api.createClientVe(D,this,216104),this.api.logVisibility(D,!0),IwD(this,function(){k.api.logClick(D)}))}};
var Vzn=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.T(awn,g.Y);g.A=awn.prototype;g.A.onClick=function(F){this.innertubeCommand?(this.T.ZQ("innertubeCommand",this.innertubeCommand),F.preventDefault()):g.eT(F,this.T,!0);this.T.logClick(this.element)};
g.A.onVideoDataChange=function(F,k){bD5(this,k);this.fv&&dck(this,this.fv)};
g.A.Xl=function(F){var k=this.T.getVideoData();this.videoId!==k.videoId&&bD5(this,k);this.Y&&dck(this,F.state);this.fv=F.state};
g.A.NR=function(){this.fade.show();this.T.publish("paidcontentoverlayvisibilitychange",!0);this.T.logVisibility(this.element,!0)};
g.A.bL=function(){this.fade.hide();this.T.publish("paidcontentoverlayvisibilitychange",!1);this.T.logVisibility(this.element,!1)};g.T(a7,g.Y);a7.prototype.hide=function(){this.Y.stop();this.message.style.display="none";g.Y.prototype.hide.call(this)};
a7.prototype.onStateChange=function(F){this.pJ(F.state)};
a7.prototype.pJ=function(F){(g.n(F,128)||this.api.JP()?0:g.n(F,16)||g.n(F,1))?this.Y.start():this.hide()};
a7.prototype.L=function(){this.message.style.display="block"};g.T(SR,g.RL);SR.prototype.onMutedAutoplayChange=function(F){this.U&&(F?(JmD(this),this.NR()):(this.Y&&this.logClick(),this.bL()))};
SR.prototype.oo=function(F){this.api.isMutedByMutedAutoplay()&&g.hI(F,2)&&this.bL()};
SR.prototype.onClick=function(){this.api.unMute();this.logClick()};
SR.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.T(g.bp,g.yQ);g.A=g.bp.prototype;g.A.init=function(){var F=this.api,k=F.getPlayerStateObject();this.F_=F.getPlayerSize();this.FI(k);this.No();this.OH();this.api.publish("basechromeinitialized",this);this.LR()&&this.api.publish("standardControlsInitialized")};
g.A.onVideoDataChange=function(F,k){var z=this.Py!==k.videoId;if(z||F==="newdata"){F=this.api;F.isFullscreen()||(this.F_=F.getPlayerSize());var x;((x=this.api.getVideoData(1))==null?0:g.Mk(x))&&this.A3()}z&&(this.Py=k.videoId,z=this.Oh,z.mp=3E3,Zq(z,512,!0),this.No());this.api.V("web_render_jump_buttons")&&k.showSeekingControls&&(this.AJ=572)};
g.A.hNa=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.A.Pq=function(){var F=this.api.gO()&&this.api.Tz(),k=this.api.IF();return this.RW||F||this.lj||k};
g.A.A3=function(){var F=!this.Pq();g.XF(this.api.getRootNode(),"ytp-menu-shown",!F);var k;((k=this.api.getVideoData(1))==null?0:g.Mk(k))&&g.XF(this.api.getRootNode(),"ytp-hide-controls",!F)};
g.A.qz=function(F){try{if(!g.N_(this.api.getRootNode(),F))return!1}catch(k){return!1}for(;F&&!enn(F);)F=F===this.api.getRootNode()?null:F.parentElement||null;return!!F};
g.A.Fy=function(F){var k=this.api.getRootNode();g.XF(k,"ytp-autohide",F);g.XF(k,"ytp-autohide-active",!0);this.Qk.start(F?250:100);F&&(this.TP=!1,g.p6(k,"ytp-touch-mode"));this.qq=!F;this.api.uw(!F)};
g.A.H_=function(){var F=this.api.getRootNode();g.XF(F,"ytp-autohide-active",!1)};
g.A.EPU=function(){this.ix=!0};
g.A.ii$=function(F){if(this.api.C().V("player_doubletap_to_seek")||this.api.C().B)this.ix=!1,this.Ex&&this.er(this.Ex),this.xk===0&&J_(this,F)?(this.bj(),this.Yx.start(),this.Ex=this.N(this.api.Ka(),"touchmove",this.EPU,void 0,!0)):this.Yx.stop();Y8Y(this)&&J_(this,F)&&!this.api.C().B&&RS5(this);var k=this.S6.ud();if(!g.tJ(this.api.C())&&rw&&n5R(this,F))k&&F.preventDefault();else if(this.TP=!0,g.C6(this.api.getRootNode(),"ytp-touch-mode"),this.Oh.wq(),this.api.C().V("player_doubletap_to_seek")||this.api.C().B)if(k=
this.api.getPlayerStateObject(),!(!this.api.xA()||g.n(k,2)&&g.Z9(this.api)||g.n(k,64))){k=Date.now()-this.jQ;this.xk+=1;if(k<=350){this.Ni=!0;k=this.api.getPlayerSize().width/3;var z=this.api.getRootNode().getBoundingClientRect(),x=F.targetTouches[0].clientX-z.left;z=F.targetTouches[0].clientY-z.top;var D=(this.xk-1)*10;x>0&&x<k?(this.l2(-1,x,z,D),this.api.seekBy(-10*this.api.getPlaybackRate())):x>k*2&&x<k*3&&(this.l2(1,x,z,D),this.api.seekBy(10*this.api.getPlaybackRate()));F.preventDefault()}else vm&&
this.api.C().B&&J_(this,F)&&F.preventDefault();this.jQ=Date.now();this.Oq.start()}};
g.A.tZ_=function(){this.Yd.yR=!1;this.api.publish("rootnodemousedown",this.Yd)};
g.A.aF4=function(F){if(this.api.C().V("web_fix_fine_scrubbing_false_play")){if(n5R(this,F)||this.Yd.yR)return}else if(this.Yd.yR||n5R(this,F))return;Y8Y(this)||!J_(this,F)||this.Yx.isActive()||(RS5(this),F.preventDefault());this.Ni&&(this.Ni=!1)};
g.A.bj=function(){};
g.A.O_=function(){};
g.A.l2=function(){};
g.A.renderChapterSeekingAnimation=function(){};
g.A.o5=function(){var F=this.api.getPlayerStateObject();g.n(F,2)&&g.Z9(this.api)||(F.isOrWillBePlaying()?this.api.pauseVideo():(this.Lg&&(F.isCued()||g.n(F,1024))&&!this.api.C().V("embeds_play_button_state_check_ks")&&this.api.publish("largeplaybuttonclicked",this.Lg.L.element),this.api.OB(),this.api.playVideo(),this.Lg&&document.activeElement===this.Lg.L.element&&((F=this.LR())==null?F=0:F.playButton?(F.playButton.focus(),F=!0):F=!1,F||this.api.getRootNode().focus())))};
g.A.jIh=function(F){var k=this,z=this.api.getPresentingPlayerType();if(!g5x(this,vW(F)))if(F=this.api.C(),(this.api.C().V("player_doubletap_to_seek")||this.api.C().B)&&this.Ni)this.Ni=!1;else if(F.qD&&z!==3)try{this.api.toggleFullscreen().catch(function(x){k.J8(x)}),this.api.V("web_player_fullscreen_double_click_ve")&&this.api.logClick(this.api.Ka().element)}catch(x){this.J8(x)}};
g.A.J8=function(F){String(F).includes("fullscreen error")?g.yI(F):g.JV(F)};
g.A.hKt=function(F){Mzn(this,.3,F.scale);F.preventDefault()};
g.A.FHK=function(F){Mzn(this,.1,F.scale)};
g.A.OH=function(){var F=this.api.Ka().getPlayerSize(),k=this.api.getRootNode(),z=F.width>=650,x=F.width<528;this.Oh.resize();g.XF(k,"ytp-fullscreen",this.api.isFullscreen());g.XF(k,"ytp-large-width-mode",z);g.XF(k,"ytp-xsmall-width-mode",x);g.XF(k,"ytp-small-mode",this.hH());g.XF(k,"ytp-tiny-mode",this.S0());g.XF(k,"ytp-big-mode",this.DT());this.Ah&&this.Ah.resize(F)};
g.A.oo=function(F){this.FI(F.state);this.No()};
g.A.sR=zp(5);g.A.w6=function(){var F=!!this.Py&&!this.api.V6()&&!this.Gj,k=this.api.getPresentingPlayerType()===2,z=this.api.C();if(k){if(Zkt&&z.V("enable_visit_advertiser_support_on_ipad_mweb"))return!1;k=rm(this.api.iL());F&&(k&&k.player?F=(F=k.player.getVideoData(2))?F.isListed&&!g.Pe(k.player.C()):!1:(To("showInfoBarDuringAd: this is null"),F=!1));return F}return F&&(z.NZ||this.api.isFullscreen()||z.Q7)};
g.A.No=function(){var F=this.w6();this.yX!==F&&(this.yX=F,g.XF(this.api.getRootNode(),"ytp-hide-info-bar",!F))};
g.A.FI=function(F){var k=F.isCued()||this.api.wO()&&this.api.getPresentingPlayerType()!==3;k!==this.isCued&&(this.isCued=k,this.XN&&this.er(this.XN),this.XN=this.N(this.api.Ka(),"touchstart",this.ii$,void 0,k));var z=this.Oh,x=F.isPlaying()&&!g.n(F,32)||this.api.ZH();Zq(z,128,!x);z=this.Oh;x=this.api.getPresentingPlayerType()===3;Zq(z,256,x);z=this.api.getRootNode();g.n(F,2)?x=[JN.ENDED]:(x=[],g.n(F,8)?x.push(JN.PLAYING):g.n(F,4)&&x.push(JN.PAUSED),g.n(F,1)&&!g.n(F,32)&&x.push(JN.BUFFERING),g.n(F,
32)&&x.push(JN.SEEKING),g.n(F,64)&&x.push(JN.UNSTARTED));g.p8(this.wA,x)||(g.EW(z,this.wA),this.wA=x,g.AF(z,x));x=this.api.C();var D=g.n(F,2);a:{var e=this.api.C();var C=e.controlsType;switch(C){case "2":case "0":e=!1;break a}e=C==="3"&&!g.n(F,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:p6V(rm(this.api.iL())))||this.api.IF()||g.tJ(e)&&this.api.getPresentingPlayerType()===2?!1:!0}g.XF(z,"ytp-hide-controls",!e);g.XF(z,"ytp-native-controls",x.controlsType==="3"&&!k&&!D&&!this.lj);g.n(F,
128)&&!g.tJ(x)?(this.Ah||(this.Ah=new g.OL(this.api),g.b(this,this.Ah),g.Hv(this.api,this.Ah.element,4)),this.Ah.L(F.YA),this.Ah.show()):this.Ah&&(this.Ah.dispose(),this.Ah=null)};
g.A.Ec=function(){return this.api.gO()&&this.api.Tz()?(this.api.CQ(!1,!1),!0):this.api.V6()?(g.vv(this.api,!0),!0):!1};
g.A.onMutedAutoplayChange=function(F){this.lj=F;this.A3()};
g.A.DT=function(){return!1};
g.A.hH=function(){return!this.DT()&&(this.api.getPlayerSize().width<this.AJ||this.api.getPlayerSize().height<290)};
g.A.S0=function(){return this.hH()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)};
g.A.Qt=function(){return this.TP};
g.A.sS=function(){return null};
g.A.ov=function(){return null};
g.A.CF=function(){var F=this.api.Ka().getPlayerSize();return new g.eU(0,0,F.width,F.height)};
g.A.handleGlobalKeyDown=function(){return!1};
g.A.handleGlobalKeyUp=function(){return!1};
g.A.Bv=function(){};
g.A.showControls=function(F){F!==void 0&&this.api.Ka().uw(F)};
g.A.wq=function(){};
g.A.LR=function(){return null};g.T(g.R7,g.Y);g.R7.prototype.show=function(){g.Y.prototype.show.call(this);g.WN(this.Y)};
g.R7.prototype.hide=function(){this.L.stop();g.Y.prototype.hide.call(this)};
g.R7.prototype.O_=function(F){F?g.n(this.T.getPlayerStateObject(),64)||gm(this,V7(),"Play"):(F=this.T.getVideoData(),F.isLivePlayback&&!F.allowLiveDvr?gm(this,GXH(),"Stop live playback"):gm(this,hPR(),"Pause"))};g.T(KBa,g.Y);g.A=KBa.prototype;g.A.k5=function(F){F?this.Y=GL(this.T,this.element,null):(this.Y=this.Y,this.Y(),this.Y=null)};
g.A.NR=function(){this.T.C().V("player_new_info_card_format")&&g.ed(this.T.getRootNode(),"ytp-cards-teaser-shown")&&!g.tJ(this.T.C())||(this.fade.show(),g.qH("iv-button-shown"))};
g.A.bL=function(){g.qH("iv-button-hidden");this.fade.hide()};
g.A.ud=function(){return this.Q2&&this.fade.state!==4};
g.A.h4=function(){this.Y&&this.Y();g.Y.prototype.h4.call(this)};
g.A.onHover=function(){g.qH("iv-button-mouseover")};
g.A.onClicked=function(F){this.T.gO();var k=g.ed(this.T.getRootNode(),"ytp-cards-teaser-shown");g.qH("iv-teaser-clicked",k);var z;if((z=this.T.getVideoData())==null?0:g.PP(z)){var x;F=(x=this.T.getVideoData())==null?void 0:g.Oh(x);(F==null?0:F.onIconTapCommand)&&this.T.ZQ("innertubeCommand",F.onIconTapCommand)}else x=F.screenX===0&&F.screenY===0,this.T.CQ(!this.T.Tz(),x,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.T(WBR,g.Y);g.A=WBR.prototype;g.A.nW=function(){this.T.gO()&&this.T.Tz()&&this.ud()&&this.bL()};
g.A.LC=function(){this.bL();!this.T.gO()&&this.T.C().V("enable_error_corrections_infocards_icon_web")&&this.Wc.bL();g.qH("iv-teaser-clicked",this.Y!=null);if(this.onClickCommand)this.T.ZQ("innertubeCommand",this.onClickCommand);else{var F;((F=this.T.getVideoData())==null?0:g.PP(F))||this.T.CQ(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
g.A.SD=function(){g.qH("iv-teaser-mouseover");this.Y&&this.Y.stop()};
g.A.RKK=function(F){this.T.C().V("player_new_info_card_format")&&!g.tJ(this.T.C())?this.Wc.bL():this.T.C().V("enable_error_corrections_infocards_icon_web")&&this.Wc.NR();this.Y||!F||this.T.Tz()||this.L&&this.L.isActive()||(this.NR(F),g.qH("iv-teaser-shown"))};
g.A.NR=function(F){this.onClickCommand=F.onClickCommand;this.updateValue("text",F.teaserText);this.element.setAttribute("dir",g.Tl(F.teaserText));this.fade.show();this.L=new g.KS(function(){g.C6(this.T.getRootNode(),"ytp-cards-teaser-shown");this.T.V("player_new_info_card_format")&&!g.tJ(this.T.C())&&this.Wc.bL();this.nm()},0,this);
this.L.start();this.Wc.k5(!1);this.Y=new g.KS(this.bL,580+F.durationMs,this);this.Y.start();this.j.push(this.listen("mouseover",this.aB,this));this.j.push(this.listen("mouseout",this.Pp,this))};
g.A.nm=function(){if(!this.T.C().V("player_new_info_card_format")&&g.tJ(this.T.C())&&this.Q2){var F=this.Wc.element.offsetLeft,k=g.xM("ytp-cards-button-icon"),z=this.T.isFullscreen()?54:36;if(k){var x=F+k.offsetLeft;this.element.style.marginRight=this.Wc.element.offsetParent.offsetWidth-F-k.offsetLeft-z+"px";this.element.style.marginLeft=x+"px"}}};
g.A.U$=function(){g.tJ(this.T.C())&&this.T.hH()&&this.Q2&&this.B.start()};
g.A.aB=function(){this.S.stop();this.Y&&this.Y.isActive()&&this.G.start()};
g.A.Pp=function(){this.G.stop();this.Y&&!this.Y.isActive()&&this.S.start()};
g.A.rlG=function(){this.Y&&this.Y.stop()};
g.A.Kuh=function(){this.bL()};
g.A.TX=function(){this.bL()};
g.A.bL=function(){!this.Y||this.U&&this.U.isActive()||(g.qH("iv-teaser-hidden"),this.fade.hide(),g.p6(this.T.getRootNode(),"ytp-cards-teaser-shown"),this.U=new g.KS(function(){for(var F=g.l(this.j),k=F.next();!k.done;k=F.next())this.er(k.value);this.j=[];this.Y&&(this.Y.dispose(),this.Y=null);this.Wc.k5(!0);!this.T.gO()&&this.T.C().V("enable_error_corrections_infocards_icon_web")&&this.Wc.bL()},330,this),this.U.start())};
g.A.ud=function(){return this.Q2&&this.fade.state!==4};
g.A.h4=function(){var F=this.T.getRootNode();F&&g.p6(F,"ytp-cards-teaser-shown");g.AD(this.L,this.U,this.Y);g.Y.prototype.h4.call(this)};var QO={},n0=(QO.BUTTON="ytp-button",QO.TITLE_NOTIFICATIONS="ytp-title-notifications",QO.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",QO.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",QO.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",QO);g.T(F1C,g.Y);F1C.prototype.onClick=function(){this.api.logClick(this.element);var F=!this.Y;this.updateValue("label",F?"Stop getting notified about every new video":"Get notified about every new video");this.updateValue("pressed",F);kYR(this,F)};g.dI("yt.pubsub.publish",g.qH);g.T(g.Me,g.Y);g.Me.prototype.j=function(){window.location.reload()};
g.Me.prototype.Y=function(){g.C6(this.element,"ytp-sb-subscribed")};
g.Me.prototype.L=function(){g.p6(this.element,"ytp-sb-subscribed")};g.T(DbR,g.Y);g.A=DbR.prototype;g.A.T3f=function(F){this.api.logClick(this.L);var k=this.api.C();k.L||k.J4?Cz6(this)&&(this.isExpanded()?this.le():this.iS()):g.MX(window,iQY(this));F.preventDefault()};
g.A.j$=function(){e3I(this);this.channel.classList.remove("ytp-title-expanded")};
g.A.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.A.iS=function(){if(Cz6(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.U&&this.U.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));var F=this.api.getVideoData();this.Y&&F.nF&&F.subscribed&&(this.Y.show(),
this.api.logVisibility(this.Y.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.A.le=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.U&&this.U.start()};
g.A.G4=function(){var F=this.api.C();this.Yj(!this.api.isEmbedsShortsMode());var k=this.api.getVideoData(),z=this.api.C(),x=this.api.getVideoData();this.j=!1;var D=!!x.videoId&&!!x.Xm&&!!x.profilePicture;this.api.getPresentingPlayerType()===2?this.j=D&&!!x.isListed&&!!x.author:g.tJ(z)&&(this.j=D&&!g.xp(x)&&!z.U&&!(z.B&&this.api.getPlayerSize().width<200));z=k.profilePicture;F=g.tJ(F)?k.expandedTitle:k.author;z=z===void 0?"":z;F=F===void 0?"":F;this.j?(this.G!==z&&(this.L.style.backgroundImage="url("+
z+")",this.G=z),this.updateValue("channelLogoLabel",g.rG("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:F})),g.C6(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.p6(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.L,this.j&&this.W);this.subscribeButton&&(this.subscribeButton.channelId=k.Wz);this.updateValue("expandedTitle",k.expandedTitle);this.updateValue("expandedSubtitle",k.expandedSubtitle)};
g.A.fN=function(F){g.Y.prototype.fN.call(this,F);this.api.logVisibility(this.L,this.j&&F)};g.T(L0,g.LY);L0.prototype.Y=function(F){F.defaultPrevented||F.keyCode!==39||(this.element.click(),F.preventDefault())};g.T(AYD,g.Y);g.A=AYD.prototype;g.A.show=function(){g.Y.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
g.A.hide=function(){g.Y.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
g.A.eD=function(F){var k=vW(F),z=g.N_(this.closeButton.element,k),x=g.N_(this.element,k);F=this.Y&&g.N_(this.Y,k)&&g.Pu(F);k&&(x||F)&&!z||this.hide()};
g.A.Wm=function(){z3k(g.gw(this.Vh.C()),"user_info_panel",function(){window.location.reload()})};
g.A.G4=function(){var F=this.Vh.C(),k={USER_NAME:F.userDisplayName,USER_EMAIL:F.uG};this.updateValue("icon",sw9());this.updateValue("watchingAsUsername",g.rG("Watching as $USER_NAME",k));F.uG?this.updateValue("watchingAsEmail",g.rG("($USER_EMAIL)",k)):this.updateValue("watchingAsEmail","")};g.T(EA5,g.Gd);g.A=EA5.prototype;g.A.hM=function(){this.Sz.bL()};
g.A.gjQ=function(){ph(this.nE.element)};
g.A.fRG=function(){K0(this,this.T.getDebugText(!0))&&gm(this.N5,Gm())};
g.A.HJR=function(){K0(this,this.T.getVideoEmbedCode())&&gm(this.N5,qtp());this.T.logClick(this.tI.element);Ya("EMBED",this.T.getVideoData().videoId,this.T.getPlaylistId()||"")};
g.A.N3U=function(){K0(this,this.T.getVideoUrl(!0,!0))&&gm(this.N5,vx());this.T.logClick(this.getVideoUrl.element);Ya("COPY_PASTE",this.T.getVideoData().videoId,this.T.getPlaylistId()||"")};
g.A.wek=function(){K0(this,this.T.getVideoUrl(!1,!0))&&gm(this.N5,vx());this.T.logClick(this.WF.element);Ya("COPY_PASTE",this.T.getVideoData().videoId,this.T.getPlaylistId()||"")};
g.A.onLoopChange=function(F){var k;(k=this.dn)==null||jT(k,F)};
g.A.CuK=function(){this.T.setLoopVideo(this.dn.getValue());this.Sz.bL();this.T.logClick(this.dn.element)};
g.A.Ukt=function(F){this.T.reportPlaybackIssue();if(g.eT(F,this.T,!n_(this.T.C()))){F=this.T;var k=F.app.getFeedbackProductData();F.YN("onFeedbackStartRequest",k);F.isFullscreen()&&F.toggleFullscreen()}this.Sz.bL()};
g.A.lFh=function(){g.Xh(this.T,"isVideoInfoVisible",[])?g.Xh(this.T,"hideVideoInfo",[]):g.Xh(this.T,"showVideoInfo",[]);this.Sz.bL()};
g.A.oPh=function(){this.ES&&(this.n8||(this.n8=new AYD(this.T,this.ES.element),g.b(this,this.n8),g.Hv(this.T,this.n8.element,4)),this.n8.show(),this.Sz.bL(),this.T.logClick(this.ES.element))};
g.A.onVideoDataChange=function(F,k){this.sM(k)};
g.A.sM=function(F){var k=this.T.C(),z=this.T.getPresentingPlayerType()===2,x=!z||F.isListed;x=!k.PR&&!!F.videoId&&x;k.playerStyle!=="play"?k="https://web.archive.org/web/20250411103644/https://support.google.com/youtube/?p=report_playback":(k={contact_type:"playbackissue",html5:1,ei:F.eventId,v:F.videoId,p:"movies_playback"},F.L&&(k.fmt=F.L.itag),F.clientPlaybackNonce&&(k.cpn=F.clientPlaybackNonce),F.partnerId&&(k.partnerid=F.partnerId),k=g.oW("//web.archive.org/web/20250411103644/https://support.google.com/googleplay/",k));this.tI.Yj(x&&F.allowEmbed);this.getVideoUrl.Yj(x);this.WF.Yj(x&&
!F.isLivePlayback);this.b2.r3(k,"href");var D;(D=this.dn)==null||D.Yj(!F.isLivePlayback&&!z);var e;(e=this.ES)==null||e.Yj(!z)};
g.A.fN=function(F){g.Gd.prototype.fN.call(this,F);this.T.logVisibility(this.tI.element,F);this.T.logVisibility(this.getVideoUrl.element,F);this.T.logVisibility(this.WF.element,F);this.dn&&this.T.logVisibility(this.dn.element,F);this.ES&&this.T.logVisibility(this.ES.element,F)};g.T(NZn,g.tr);g.A=NZn.prototype;g.A.onTouchStart=function(F){var k=vW(F);if(!(k&&(mX(k,"a")||mX(k,null,"ytp-no-contextmenu"))||this.Q2)){var z;this.PR=(F=(z=F.touches)==null?void 0:z.item(0))?new g.sV(F.clientX,F.clientY):new g.sV(0,0);this.Qh.start()}};
g.A.dk=function(){this.Qh.stop()};
g.A.w8U=function(){this.open(this.PR)};
g.A.cQ=function(){if(this.U&&X5x(this.U)){var F=X5x(this.U).element;F.tabIndex=-1;F.focus()}else this.element.tabIndex=-1,this.element.focus()};
g.A.show=function(){this.U||(this.U=new EA5(this.T,this,this.N5),g.b(this,this.U),g.Z2(this,this.U));this.U.onLoopChange(this.T.getLoopVideo());g.tr.prototype.show.call(this);this.T.logVisibility(this.element,!0);this.U.fN(!0)};
g.A.hide=function(){qTn(this);g.tr.prototype.hide.call(this);this.T.logVisibility(this.element,!1);this.U&&this.U.fN(!1)};
g.A.WuR=function(F){var k=vW(F);this.Q2||k&&(mX(k,"a")||mX(k,null,"ytp-no-contextmenu"))||(F.preventDefault(),this.open(new g.sV(F.pageX,F.pageY)))};
g.A.NR=function(F){if(F){var k=F.getBoundingClientRect();this.open(new g.sV(k.x,k.y))}g.tr.prototype.NR.call(this,F)};
g.A.open=function(F){unH(this);var k=this.T.getVideoData();g.XF(this.element,"ytp-dni",k.Mk);this.element.style.left="";this.element.style.top="";F.x++;F.y++;g.tr.prototype.NR.call(this);var z=g5(this).body;k=new oY(0,Infinity,Infinity,0);var x=WB(z);for(var D=x.Y.body,e=x.Y.documentElement,C=iWn(x.Y);z=NLk(z);)if((!g.DA||z.clientHeight!=0||z!=D)&&z!=D&&z!=e&&wQ(z,"overflow")!="visible"){var p=g.Q1(z),E=new g.sV(z.clientLeft,z.clientTop);p.x+=E.x;p.y+=E.y;k.top=Math.max(k.top,p.y);k.right=Math.min(k.right,
p.x+z.clientWidth);k.bottom=Math.min(k.bottom,p.y+z.clientHeight);k.left=Math.max(k.left,p.x)}D=C.scrollLeft;C=C.scrollTop;k.left=Math.max(k.left,D);k.top=Math.max(k.top,C);x=x6C(x.Y.defaultView||window);k.right=Math.min(k.right,D+x.width);k.bottom=Math.min(k.bottom,C+x.height);x=k.top>=0&&k.left>=0&&k.bottom>k.top&&k.right>k.left?k:null;k=this.size;F=F.clone();k=k.clone();x&&(C=k,D=5,(D&65)==65&&(F.x<x.left||F.x>=x.right)&&(D&=-2),(D&132)==132&&(F.y<x.top||F.y>=x.bottom)&&(D&=-5),F.x<x.left&&D&1&&
(F.x=x.left),D&16&&(e=F.x,F.x<x.left&&(F.x=x.left),F.x+C.width>x.right&&(C.width=Math.min(x.right-F.x,e+C.width-x.left),C.width=Math.max(C.width,0))),F.x+C.width>x.right&&D&1&&(F.x=Math.max(x.right-C.width,x.left)),F.y<x.top&&D&4&&(F.y=x.top),D&32&&(e=F.y,F.y<x.top&&(F.y=x.top),F.y+C.height>x.bottom&&(C.height=Math.min(x.bottom-F.y,e+C.height-x.top),C.height=Math.max(C.height,0))),F.y+C.height>x.bottom&&D&4&&(F.y=Math.max(x.bottom-C.height,x.top)));x=new g.eU(0,0,0,0);x.left=F.x;x.top=F.y;x.width=
k.width;x.height=k.height;g.TO(this.element,new g.sV(x.left,x.top));g.VB(this.j);this.j.N(g5(this),"contextmenu",this.njQ);this.j.N(this.T,"fullscreentoggled",this.onFullscreenToggled);this.j.N(this.T,"pageTransition",this.gy)};
g.A.njQ=function(F){if(!F.defaultPrevented){var k=vW(F);g.N_(this.element,k)||this.bL();this.T.C().disableNativeContextMenu&&F.preventDefault()}};
g.A.onFullscreenToggled=function(){this.bL();unH(this)};
g.A.gy=function(){this.bL()};g.T(Wm,g.Y);Wm.prototype.onClick=function(){var F=this,k,z,x,D;return g.O(function(e){if(e.Y==1)return k=F.api.C(),z=F.api.getVideoData(),x=F.api.getPlaylistId(),D=k.getVideoUrl(z.videoId,x,void 0,!0),g.c(e,TZR(F,D),2);e.L&&mba(F);F.api.logClick(F.element);g.Tp(e)})};
Wm.prototype.G4=function(){this.updateValue("icon",{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{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=w5n(this);g.XF(this.element,"ytp-copylink-button-visible",this.visible);
this.Yj(this.visible);this.tooltip.Ei();this.api.logVisibility(this.element,this.visible&&this.W)};
Wm.prototype.fN=function(F){g.Y.prototype.fN.call(this,F);this.api.logVisibility(this.element,this.visible&&F)};
Wm.prototype.h4=function(){g.Y.prototype.h4.call(this);g.p6(this.element,"ytp-copylink-button-visible")};g.T(Fi,g.Y);Fi.prototype.show=function(){g.Y.prototype.show.call(this);g.WN(this.L)};
Fi.prototype.hide=function(){this.j.stop();this.U=0;this.EK("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.p6(this.element,"ytp-chapter-seek");g.p6(this.element,"ytp-time-seeking");g.Y.prototype.hide.call(this)};
Fi.prototype.l2=function(F,k,z,x){this.U=F===this.G?this.U+x:x;this.G=F;var D=F===-1?this.K:this.B;D&&this.T.logClick(D);this.S?this.L.stop():g.ke(this.L);this.j.start();this.element.setAttribute("data-side",F===-1?"back":"forward");var e=3*this.T.Ka().getPlayerSize().height;D=this.T.Ka().getPlayerSize();D=D.width/3-3*D.height;this.Y.style.width=e+"px";this.Y.style.height=e+"px";F===1?(this.Y.style.left="",this.Y.style.right=D+"px"):F===-1&&(this.Y.style.right="",this.Y.style.left=D+"px");var C=e*
2.5;e=C/2;var p=this.EK("ytp-doubletap-ripple");p.style.width=C+"px";p.style.height=C+"px";F===1?(F=this.T.Ka().getPlayerSize().width-k+Math.abs(D),p.style.left="",p.style.right=F-e+"px"):F===-1&&(F=Math.abs(D)+k,p.style.right="",p.style.left=F-e+"px");p.style.top="calc((33% + "+Math.round(z)+"px) - "+e+"px)";if(z=this.EK("ytp-doubletap-ripple"))z.classList.remove("ytp-doubletap-ripple"),z.classList.add("ytp-doubletap-ripple");ljx(this,this.S?this.U:x)};g.T(QXn,r1);g.A=QXn.prototype;g.A.yc=function(F){this.cR||(this.cR=new cq(this.T),g.b(this,this.cR));var k,z;if((k=this.UH)==null?0:(z=k.menu)==null?0:z.menuRenderer)this.cR.open(this.UH.menu.menuRenderer,F.target),F.preventDefault()};
g.A.Fa=function(){return!!this.Y};
g.A.d1=function(){return!!this.Y};
g.A.In=function(F){F.target===this.overflowButton.element?F.preventDefault():(this.vj&&this.T.ZQ("innertubeCommand",this.vj),this.TH(!1))};
g.A.rJ=function(){this.TH(!0);var F,k;((F=this.Y)==null?0:(k=F.bannerData)==null?0:k.dismissedStatusKey)&&this.RS.push(this.Y.bannerData.dismissedStatusKey);this.z8()};
g.A.rZ=function(){this.z8();i2(this)};
g.A.m$p=function(F){var k=this,z;if(F.id!==((z=this.Y)==null?void 0:z.identifier)){this.z8();z=g.l(this.mp);for(var x=z.next();!x.done;x=z.next()){var D=x.value,e=void 0,C=void 0;if((x=(e=D)==null?void 0:(C=e.bannerData)==null?void 0:C.itemData)&&D.identifier===F.id){C=e=void 0;var p=((e=D)==null?void 0:(C=e.bannerData)==null?void 0:C.dismissedStatusKey)||"";if(this.RS.includes(p))break;this.Y=D;this.banner.element.setAttribute("aria-label",x.accessibilityLabel||"");x.trackingParams&&(this.j=!0,this.T.setTrackingParams(this.badge.element,
x.trackingParams));this.K.show();sR(this);this.Xf.Yj(!x.stayInApp);OQ5(this);sXC(this);x9(this);this.vj=g.J(x.onTapCommand,gF);if(D=g.J(x.menuOnTap,gF))this.UH=g.J(D,S7n);D=void 0;this.banner.update({thumbnail:(D=(x.thumbnailSources||[])[0])==null?void 0:D.url,title:x.productTitle,price:x.priceReplacementText?x.priceReplacementText:x.price,salesOriginalPrice:GYM(this),priceDropReferencePrice:Ubn(this),promotionText:BZx(this),priceA11yText:to6(this),affiliateDisclaimer:x.affiliateDisclaimer,vendor:ZQk(this)});
p=C=e=D=void 0;((D=x)==null?0:(e=D.hiddenProductOptions)==null?0:e.showDropCountdown)&&((C=x)==null?0:(p=C.hiddenProductOptions)==null?0:p.dropTimestampMs)&&(this.qD=new g.KS(function(){Pzn(k)},1E3),this.Xf.hide(),this.countdownTimer.show(),Pzn(this));
this.T.V("web_player_enable_featured_product_banner_exclusives_on_desktop")&&h3R(this)&&(this.uL=new g.KS(function(){rYI(k)},1E3),rYI(this))}}}};
g.A.z8=function(){this.Y&&(this.Y=void 0,this.e1())};
g.A.onVideoDataChange=function(F,k){var z=this;F==="dataloaded"&&i2(this);var x,D,e;F=g.J((x=k.getWatchNextResponse())==null?void 0:(D=x.playerOverlays)==null?void 0:(e=D.playerOverlayRenderer)==null?void 0:e.productsInVideoOverlayRenderer,H89);this.overflowButton.show();this.dismissButton.hide();var C=F==null?void 0:F.featuredProductsEntityKey;this.trendingOfferEntityKey=F==null?void 0:F.trendingOfferEntityKey;this.mp.length||(cY9(this,C),x9(this));var p;(p=this.We)==null||p.call(this);this.We=g.ok.subscribe(function(){cY9(z,
C);x9(z)})};
g.A.h4=function(){i2(this);OQ5(this);sXC(this);r1.prototype.h4.call(this)};g.T(STI,g.Y);STI.prototype.onClick=function(){this.T.logClick(this.element,this.L)};g.T(bQ9,g.RL);g.A=bQ9.prototype;g.A.show=function(){g.RL.prototype.show.call(this);this.T.publish("infopaneldetailvisibilitychange",!0);this.T.logVisibility(this.element,!0);dbn(this,!0)};
g.A.hide=function(){g.RL.prototype.hide.call(this);this.T.publish("infopaneldetailvisibilitychange",!1);this.T.logVisibility(this.element,!1);dbn(this,!1)};
g.A.getId=function(){return this.j};
g.A.Ip=function(){return this.itemData.length};
g.A.onVideoDataChange=function(F,k){if(k){var z,x,D,e;this.update({title:((z=k.TR)==null?void 0:(x=z.title)==null?void 0:x.content)||"",body:((D=k.TR)==null?void 0:(e=D.bodyText)==null?void 0:e.content)||""});var C;F=((C=k.TR)==null?void 0:C.trackingParams)||null;this.T.setTrackingParams(this.element,F);C=g.l(this.itemData);for(F=C.next();!F.done;F=C.next())F.value.dispose();this.itemData=[];var p;if((p=k.TR)==null?0:p.ctaButtons)for(k=g.l(k.TR.ctaButtons),p=k.next();!p.done;p=k.next())if(p=g.J(p.value,
vrA))p=new STI(this.T,p,this.Y),p.ut&&(this.itemData.push(p),p.T4(this.items))}};
g.A.h4=function(){this.hide();g.RL.prototype.h4.call(this)};g.T(R3p,g.Y);g.A=R3p.prototype;g.A.onVideoDataChange=function(F,k){yYM(this,k);this.fv&&YTH(this,this.fv)};
g.A.lU=function(F){var k=this.T.getVideoData();this.videoId!==k.videoId&&yYM(this,k);YTH(this,F.state);this.fv=F.state};
g.A.ey=function(F){(this.U=F)?this.hide():this.Y&&this.show()};
g.A.oY=function(){this.L||this.NR();this.showControls=!0};
g.A.zX=function(){this.L||this.bL();this.showControls=!1};
g.A.NR=function(){var F;if((F=this.T)==null?0:F.V("embeds_web_enable_info_panel_sizing_fix")){var k;F=(k=this.T)==null?void 0:k.getPlayerSize();k=F.width<380;var z;F=F.height<(((z=this.T)==null?0:z.isEmbedsShortsMode())?400:280);var x,D;if((((x=this.T)==null?0:x.getPlayerStateObject().isCued())||((D=this.T)==null?0:g.n(D.getPlayerStateObject(),1024)))&&k&&F)return}this.Y&&!this.U&&(this.fade.show(),this.T.publish("infopanelpreviewvisibilitychange",!0),this.T.logVisibility(this.element,!0))};
g.A.bL=function(){this.Y&&!this.U&&(this.fade.hide(),this.T.publish("infopanelpreviewvisibilitychange",!1),this.T.logVisibility(this.element,!1))};
g.A.cHh=function(){this.L=!1;this.showControls||this.bL()};var g6C={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(g6C).reduce(function(F,k){F[g6C[k]]=k;return F},{});
var YDl={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(YDl).reduce(function(F,k){F[YDl[k]]=k;return F},{});
var n6Y={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(n6Y).reduce(function(F,k){F[n6Y[k]]=k;return F},{});var MYV,Lqp;MYV=[{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"}];Lqp=[{option:0,text:Dp(0)},{option:.25,text:Dp(.25)},{option:.5,text:Dp(.5)},{option:.75,text:Dp(.75)},{option:1,text:Dp(1)}];
g.Ca=[{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:MYV},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:Dp(.5)},{option:-1,text:Dp(.75)},{option:0,text:Dp(1)},{option:1,text:Dp(1.5)},{option:2,
text:Dp(2)},{option:3,text:Dp(3)},{option:4,text:Dp(4)}]},{option:"background",text:"Background color",options:MYV},{option:"backgroundOpacity",text:"Background opacity",options:Lqp},{option:"windowColor",text:"Window color",options:MYV},{option:"windowOpacity",text:"Window opacity",options:Lqp},{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:Dp(.25)},{option:.5,text:Dp(.5)},{option:.75,text:Dp(.75)},{option:1,text:Dp(1)}]}];var faD=[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.T(W1n,g.yQ);g.A=W1n.prototype;
g.A.jH=function(F){F.repeat||(this.L.f5=!1);var k=!1,z=F.keyCode,x=vW(F),D=!F.altKey&&!F.ctrlKey&&!F.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||faD.includes(z)),e=!1,C=!1,p=this.api.C();F.defaultPrevented?(D=!1,C=!0):p.YP&&!this.api.isMutedByEmbedsMutedAutoplay()&&(D=!1);if(z===9)k=!0;else{if(x)switch(z){case 32:case 13:if(x.tagName==="BUTTON"||x.tagName==="A"||x.tagName==="INPUT")k=!0,D=!1;else if(D){var E=x.getAttribute("role");!E||E!=="option"&&E!=="button"&&E.indexOf("menuitem")!==0||
(k=!0,x.click(),e=!0)}break;case 37:case 39:case 36:case 35:k=x.getAttribute("role")==="slider";break;case 38:case 40:E=x.getAttribute("role"),x=z===38?x.previousSibling:x.nextSibling,E==="slider"?k=!0:D&&(E==="option"?(x&&x.getAttribute("role")==="option"&&x.focus(),e=k=!0):E&&E.indexOf("menuitem")===0&&(x&&x.hasAttribute("role")&&x.getAttribute("role").indexOf("menuitem")===0&&x.focus(),e=k=!0))}if(D&&!e)switch(z){case 38:e=Math.min(this.api.getVolume()+5,100);Yf(this.N5,e,!1);this.api.setVolume(e);
C=e=!0;break;case 40:e=Math.max(this.api.getVolume()-5,0);Yf(this.N5,e,!0);this.api.setVolume(e);C=e=!0;break;case 36:this.api.xA()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),C=e=!0);break;case 35:this.api.xA()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),C=e=!0)}}k&&jf(this,!0);(k||C)&&this.Oh.wq();(e||D&&this.handleGlobalKeyDown(z,F.shiftKey,F.ctrlKey,F.altKey,F.metaKey,F.key,F.code,F.repeat))&&F.preventDefault();p.G&&(F={keyCode:F.keyCode,
altKey:F.altKey,ctrlKey:F.ctrlKey,metaKey:F.metaKey,shiftKey:F.shiftKey,handled:F.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.RI("onKeyPress",F))};
g.A.hQ=function(F){var k=F.keyCode;(!this.api.V("web_player_spacebar_control_bugfix")||this.api.V("web_player_spacebar_control_bugfix")&&!this.L.Wk)&&this.handleGlobalKeyUp(k,F.shiftKey,F.ctrlKey,F.altKey,F.metaKey,F.key,F.code)&&F.preventDefault()};
g.A.handleGlobalKeyUp=function(F,k,z,x,D,e,C){this.api.publish("keyboardserviceglobalkeyup",{keyCode:F,shiftKey:k,ctrlKey:z,altKey:x,metaKey:D,key:e,code:C});k=!1;if(this.L.f5)return k;(D=g.VU(this.api.iL()))&&(D=D.Jw)&&D.Q2&&(D.Pb(F),k=!0);switch(F){case 9:jf(this,!0);k=!0;break;case 32:if(this.api.V("web_speedmaster_spacebar_control")&&(!this.api.V("web_player_spacebar_control_bugfix")&&!this.L.Wk||this.api.V("web_player_spacebar_control_bugfix"))&&!this.api.C().YP){var p,E;F=(p=this.progressBar)==
null?void 0:(E=p.L)==null?void 0:E.isEnabled;k=this.o5(F)}break;case 39:($F?x:z)&&this.api.V("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),p=(p=this.api.getVideoData())?p.pn:[],E=Moa(p,this.api.getCurrentTime()*1E3),E!==-1&&this.Y!=null&&(oF(this.Y,1,p[E].title),this.api.seekTo(p[E].startTime/1E3,void 0,void 0,void 0,52),k=!0))}return k};
g.A.handleGlobalKeyDown=function(F,k,z,x,D,e,C,p){p||(this.L.f5=!1);var E=!1,X=this.api.C();if(X.YP&&!this.api.isMutedByEmbedsMutedAutoplay())return E;var q=g.VU(this.api.iL());if(q&&(q=q.Jw)&&q.Q2)switch(F){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:E=q.Qg(F)}X.S||E||(E=e||String.fromCharCode(F).toLowerCase(),this.U+=E,"awesome".indexOf(this.U)===0?(E=!0,7===this.U.length&&r9n(this.api.getRootNode(),"ytp-color-party")):(this.U=E,E="awesome".indexOf(this.U)===0));if(!E&&(!this.api.isMutedByEmbedsMutedAutoplay()||
faD.includes(F))){var N=this.api.getVideoData(),u,w;q=(u=this.progressBar)==null?void 0:(w=u.L)==null?void 0:w.isEnabled;u=N?N.pn:[];w=$F?x:z;switch(F){case 80:k&&!X.cR&&(gm(this.N5,B3D(),"Previous"),this.api.previousVideo(),E=!0);break;case 78:k&&!X.cR&&(gm(this.N5,cx(),"Next"),this.api.nextVideo(),E=!0);break;case 74:this.api.xA()&&(this.api.startSeekCsiAction(),this.Y?this.api.V("enable_key_press_seek_logging")?(E=ef(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),k9(this.Y,
-1,10,E)):k9(this.Y,-1,10):gm(this.N5,{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),E=!0);break;case 76:this.api.xA()&&(this.api.startSeekCsiAction(),this.Y?this.api.V("enable_key_press_seek_logging")?(E=ef(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),k9(this.Y,1,10,E)):k9(this.Y,1,10):gm(this.N5,{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),E=!0);break;case 37:this.api.xA()&&(this.api.startSeekCsiAction(),w?(w=L1p(u,this.api.getCurrentTime()*1E3),w!==-1&&this.Y!=null&&(oF(this.Y,-1,u[w].title),this.api.seekTo(u[w].startTime/1E3,void 0,void 0,void 0,53),E=!0)):(this.Y?this.api.V("enable_key_press_seek_logging")?(E=ef(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),k9(this.Y,-1,5,E)):k9(this.Y,-1,5):gm(this.N5,{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),E=!0));break;case 39:this.api.xA()&&(this.api.startSeekCsiAction(),w?this.api.V("web_enable_keyboard_shortcut_for_timely_actions")||(w=Moa(u,this.api.getCurrentTime()*1E3),w!==-1&&this.Y!=null&&(oF(this.Y,1,u[w].title),this.api.seekTo(u[w].startTime/1E3,void 0,void 0,void 0,52),E=!0)):(this.Y!=null?this.api.V("enable_key_press_seek_logging")?(E=ef(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),k9(this.Y,1,5,E)):k9(this.Y,
1,5):gm(this.N5,{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),E=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),Yf(this.N5,this.api.getVolume(),!1)):(this.api.mute(),Yf(this.N5,0,!0));E=!0;break;case 32:E=this.api.V("web_speedmaster_spacebar_control")?!this.api.C().cR:this.o5(q);break;case 75:E=this.o5(q);break;case 190:k?X.enableSpeedOptions&&k4Y(this)&&(E=this.api.getPlaybackRate(),this.api.setPlaybackRate(E+.25,!0),LBH(this.N5,!1),E=!0):this.api.xA()&&(this.step(1),E=!0);break;case 188:k?
X.enableSpeedOptions&&k4Y(this)&&(E=this.api.getPlaybackRate(),this.api.setPlaybackRate(E-.25,!0),LBH(this.N5,!0),E=!0):this.api.xA()&&(this.step(-1),E=!0);break;case 70:FMC(this.api)&&(this.api.toggleFullscreen().catch(function(){}),E=!0);
break;case 27:q?(this.progressBar.ih(),E=!0):this.W()&&(E=!0)}if(X.controlsType!=="3")switch(F){case 67:g.Qt(this.api.iL())&&(X=this.api.getOption("captions","track"),this.api.toggleSubtitles(),fwR(this.N5,!X||X&&!X.displayName),E=!0);break;case 79:AR(this,"textOpacity");break;case 87:AR(this,"windowOpacity");break;case 187:case 61:AR(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:AR(this,"fontSizeIncrement",!0,!0)}var m;k||z||x||(F>=48&&F<=57?m=F-48:F>=96&&F<=105&&(m=F-96));m!=null&&this.api.xA()&&
(this.api.startSeekCsiAction(),X=this.api.getProgressState(),this.api.seekTo(m/10*(X.seekableEnd-X.seekableStart)+X.seekableStart,void 0,void 0,void 0,81),E=!0);E&&this.Oh.wq()}this.api.publish("keyboardserviceglobalkeydown",{keyCode:F,shiftKey:k,ctrlKey:z,altKey:x,metaKey:D,key:e,code:C,repeat:p},this.L);return E};
g.A.step=function(F){this.api.xA();if(this.api.getPlayerStateObject().isPaused()){var k=this.api.getVideoData().L;k&&(k=k.video)&&this.api.seekBy(F/(k.fps||30),void 0,void 0,F>0?77:78)}};
g.A.o5=function(F){if(!this.api.C().cR){var k;var z,x=(k=this.api.getVideoData())==null?void 0:(z=k.getPlayerResponse())==null?void 0:z.playabilityStatus;if(x){var D;k=((D=g.J(x.miniplayer,Y7$))==null?void 0:D.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else k=!1;k&&this.api.ZQ("onExpandMiniplayer");F?this.progressBar.X$():(F=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.N5.O_(F),F?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
g.A.h4=function(){g.ke(this.j);g.yQ.prototype.h4.call(this)};g.T(g.pa,g.Y);g.pa.prototype.mL=zp(11);
g.pa.prototype.G4=function(){var F=this.T.C(),k=F.U||this.T.V("web_player_hide_overflow_button_if_empty_menu")&&this.n$.isEmpty();F=g.tJ(F)&&g.Pv(this.T)&&g.n(this.T.getPlayerStateObject(),128);var z=this.T.getPlayerSize();this.visible=this.T.hH()&&!F&&z.width>=240&&!g.xp(this.T.getVideoData())&&!k&&!this.Y&&!this.T.isEmbedsShortsMode();g.XF(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.T.Ei();this.T.logVisibility(this.element,this.visible&&this.W)};
g.pa.prototype.fN=function(F){g.Y.prototype.fN.call(this,F);this.T.logVisibility(this.element,this.visible&&F)};
g.pa.prototype.h4=function(){g.Y.prototype.h4.call(this);g.p6(this.element,"ytp-overflow-button-visible")};g.T(oL5,g.RL);g.A=oL5.prototype;g.A.bU=function(F){F=vW(F);g.N_(this.element,F)&&(g.N_(this.Y,F)||g.N_(this.closeButton,F)||Yp(this))};
g.A.bL=function(){g.RL.prototype.bL.call(this);this.T.fd(this.element)};
g.A.show=function(){this.Q2&&this.T.publish("OVERFLOW_PANEL_OPENED");g.RL.prototype.show.call(this);this.element.setAttribute("aria-modal","true");xSH(this,!0)};
g.A.hide=function(){g.RL.prototype.hide.call(this);this.element.removeAttribute("aria-modal");xSH(this,!1)};
g.A.onFullscreenToggled=function(F){!F&&this.ud()&&Yp(this)};
g.A.isEmpty=function(){return this.actionButtons.length===0};
g.A.focus=function(){for(var F=g.l(this.actionButtons),k=F.next();!k.done;k=F.next())if(k=k.value,k.Q2){k.focus();break}};g.T(irH,g.Y);irH.prototype.onClick=function(F){g.eT(F,this.api)&&this.api.playVideoAt(this.index)};g.T(DS9,g.RL);g.A=DS9.prototype;g.A.show=function(){g.RL.prototype.show.call(this);this.Y.N(this.api,"videodatachange",this.x$);this.Y.N(this.api,"onPlaylistUpdate",this.x$);this.x$()};
g.A.hide=function(){g.RL.prototype.hide.call(this);g.VB(this.Y);this.updatePlaylist(null)};
g.A.x$=function(){this.updatePlaylist(this.api.getPlaylist());this.api.C().U&&(this.EK("ytp-playlist-menu-title-name").removeAttribute("href"),this.U&&(this.er(this.U),this.U=null))};
g.A.n6=function(){var F=this.playlist,k=F.author,z=k?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",x={CURRENT_POSITION:String(F.index+1),PLAYLIST_LENGTH:String(F.getLength())};k&&(x.AUTHOR=k);this.update({title:F.title,subtitle:g.rG(z,x),playlisturl:this.api.getVideoUrl(!0)});k=F.L;if(k===this.j)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[F.index];else{z=g.l(this.playlistData);for(x=z.next();!x.done;x=z.next())x.value.dispose();
z=F.getLength();this.playlistData=[];for(x=0;x<z;x++){var D=new irH(this.api,F,x);this.playlistData.push(D);D.T4(this.items)}this.selected=this.playlistData[F.index];this.j=k}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.A.HiK=function(F){var k=this.api.getVideoUrl(!0);g.Ch(k,this.api,F)};
g.A.updatePlaylist=function(F){this.playlist!==F?(this.playlist&&this.playlist.unsubscribe("shuffle",this.n6,this),this.playlist=F,this.j=null,F?(F.subscribe("shuffle",this.n6,this),this.n6()):this.Q2&&this.hide()):this.playlist&&this.n6()};
g.A.focus=function(){this.selected.focus()};
g.A.h4=function(){this.hide();g.RL.prototype.h4.call(this)};g.T(EU,g.Y);EU.prototype.hide=function(){g.Y.prototype.hide.call(this);this.fN(!1);this.api.Ei()};
EU.prototype.G4=function(){var F=g.tJ(this.api.C());g.XF(this.element,"ytp-playlist-menu-button-tiny",this.api.Ka().getPlayerSize().width<400&&!F);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.rG("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.rG("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.api.V("delhi_modern_web_player")&&
this.update({playlistTitle:g.rG("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Q2||(this.show(),this.api.Ei()),this.visible=!0,this.fN(!0)):this.Q2&&this.hide()};
EU.prototype.fN=function(F){g.Y.prototype.fN.call(this,F);this.api.logVisibility(this.element,this.visible&&F)};
EU.prototype.Y=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.G4,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.G4,this);this.G4()};g.T($S5,g.Y);g.A=$S5.prototype;g.A.xS=function(){this.j?AN5(this):Cgk(this)};
g.A.n4=function(){this.j?(Xi(this),this.G=!0):Cgk(this)};
g.A.DDR=function(){this.S=!0;this.BI(1);this.T.publish("promotooltipacceptbuttonclicked",this.acceptButton);Xi(this);this.L&&this.T.logClick(this.acceptButton)};
g.A.bJh=function(){this.S=!0;this.BI(2);Xi(this);this.L&&this.T.logClick(this.dismissButton)};
g.A.Vc=function(F){if(this.T.getPresentingPlayerType()===1||this.T.getPresentingPlayerType()===2&&this.B){var k=!0,z=g.xM("ytp-ad-overlay-ad-info-dialog-container"),x=g.xM("ytp-ad-player-overlay-layout"),D=vW(F);if(this.U&&D&&g.N_(this.U,D))this.U=null;else{this.T.getPresentingPlayerType()===1&&D&&Array.from(D.classList).forEach(function(E){if(E.startsWith("ytp-ad")||E.startsWith("ytp-skip-ad"))k=!1});
var e=p$H(this.tooltipRenderer),C;if(((C=this.tooltipRenderer.dismissStrategy)==null?void 0:C.type)==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE")e&&(k=k&&!g.N_(this.element,D));else{var p;((p=this.tooltipRenderer.dismissStrategy)==null?void 0:p.type)==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(k=e?!1:k&&g.N_(this.element,D))}this.Y&&this.Q2&&!z&&!x&&(!D||k&&g.Pu(F))&&(this.S=!0,Xi(this))}}};
g.A.BI=function(F){var k=this.tooltipRenderer.promoConfig;if(k){switch(F){case 0:var z;if((z=k.impressionEndpoints)==null?0:z.length)var x=k.impressionEndpoints[0];break;case 1:x=k.acceptCommand;break;case 2:x=k.dismissCommand}var D;F=(D=g.J(x,Z8H))==null?void 0:D.feedbackToken;x&&F&&(D={feedbackTokens:[F]},F=this.T.Bl(),(F==null?0:N4x(x,F.UL))&&k_(F,x,D))}};
g.A.OH=function(){this.G||(this.Y||(this.Y=jeD(this)),AN5(this))};
var e9k={"ytp-settings-button":g.Hx()};g.T(qw,g.Y);qw.prototype.onStateChange=function(F){this.pJ(F.state)};
qw.prototype.pJ=function(F){this.Yj(g.n(F,2))};
qw.prototype.onClick=function(){this.T.getPlayerStateObject().isOrWillBePlaying();this.T.playVideo()};g.T(Nw,g.Y);Nw.prototype.onClick=function(F){this.api.logClick(this.element);var k=g.oW(this.api.C().e5,{focusSearch:"true"}),z={};g.Xh(this.api,"addEmbedsConversionTrackingParams",[z]);k=g.oW(k,z);var x;(z=(x=this.api.getVideoData().Ax)==null?void 0:x.params)&&(k=g.oW(k,{bp:z}));g.MX(window,k);F.preventDefault()};
Nw.prototype.Y=function(){if(this.api.V("embeds_web_enable_search_button")){var F=this.api.C();var k=this.api.getVideoData(),z=this.api.Ka().getPlayerSize().width;F=g.tJ(F)&&z>=this.L&&!F.U&&!k.isAd()&&!this.api.isEmbedsShortsMode()}else F=!1;this.visible=F;this.Yj(this.visible);g.XF(this.element,"ytp-search-button-visible",this.visible);g.XF(this.element,"ytp-show-search-title",!this.api.hH());this.api.logVisibility(this.element,this.visible&&this.W)};
Nw.prototype.fN=function(F){g.Y.prototype.fN.call(this,F);this.api.logVisibility(this.element,this.visible&&F)};g.T(g.u2,g.Y);g.A=g.u2.prototype;g.A.XF=zp(8);g.A.onClick=function(){var F=this,k=this.api.C(),z=this.api.getVideoData(this.api.getPresentingPlayerType()),x=this.api.getPlaylistId();k=this.api.V("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):k.getVideoUrl(z.videoId,x,void 0,!0);if(navigator.share)try{var D=navigator.share({title:z.title,url:k});D instanceof Promise&&D.catch(function(e){X$Y(F,e)})}catch(e){e instanceof Error&&X$Y(this,e)}else this.Y.Ec(),Yp(this.U,this.element,!1);
this.api.logClick(this.element)};
g.A.G4=function(){var F=this.api.C(),k=this.api.isEmbedsShortsMode();g.XF(this.element,"ytp-show-share-title",g.tJ(F)&&!k);this.Y.DT()&&k?(F=(this.api.Ka().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Xr(this.element,"right",F+"px")):k&&g.Xr(this.element,"right","0px");this.updateValue("icon",{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{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=ELx(this);g.XF(this.element,"ytp-share-button-visible",this.visible);this.Yj(this.visible);this.tooltip.Ei();this.api.logVisibility(this.element,ELx(this)&&this.W)};
g.A.fN=function(F){g.Y.prototype.fN.call(this,F);this.api.logVisibility(this.element,this.visible&&F)};
g.A.h4=function(){g.Y.prototype.h4.call(this);g.p6(this.element,"ytp-share-button-visible")};g.T(NJn,g.RL);g.A=NJn.prototype;g.A.IY=function(F){F=vW(F);g.N_(this.S,F)||g.N_(this.closeButton,F)||Yp(this)};
g.A.bL=function(){g.RL.prototype.bL.call(this);this.tooltip.fd(this.element);this.api.logVisibility(this.Y,!1);for(var F=g.l(this.U),k=F.next();!k.done;k=F.next())k=k.value,this.api.hasVe(k.element)&&this.api.logVisibility(k.element,!1)};
g.A.show=function(){var F=this.Q2;g.RL.prototype.show.call(this);this.G4();F||this.api.ZQ("onSharePanelOpened")};
g.A.yp4=function(){this.Q2&&this.G4()};
g.A.G4=function(){var F=this;g.C6(this.element,"ytp-share-panel-loading");g.p6(this.element,"ytp-share-panel-fail");var k=this.api.getVideoData(),z=this.api.getPlaylistId()&&this.j.checked;k.getSharePanelCommand&&k_(this.api.Bl(),k.getSharePanelCommand,{includeListId:z}).then(function(x){F.z4()||(g.p6(F.element,"ytp-share-panel-loading"),w$p(F,x))});
k=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",k);this.updateValue("linkText",k);this.updateValue("shareLinkWithUrl",g.rG("Share link $URL",{URL:k}));ph(this.Y);this.api.logVisibility(this.Y,!0)};
g.A.onFullscreenToggled=function(F){!F&&this.ud()&&Yp(this)};
g.A.focus=function(){this.Y.focus()};
g.A.h4=function(){g.RL.prototype.h4.call(this);uup(this)};g.T(lBI,r1);g.A=lBI.prototype;g.A.h4=function(){BJk(this);r1.prototype.h4.call(this)};
g.A.In=function(F){F.target!==this.dismissButton.element&&(this.TH(!1),this.T.ZQ("innertubeCommand",this.onClickCommand))};
g.A.rJ=function(){this.u$=!0;this.TH(!0);this.e1()};
g.A.w7t=function(F){this.G=F;this.e1()};
g.A.onVideoDataChange=function(F,k){if(F=!!k.videoId&&this.videoId!==k.videoId)this.videoId=k.videoId,this.u$=!1,this.t4=!0,this.B=this.PR=!1,BJk(this),rND(this,!1),this.L=this.Y=!1,mU(this),Qe9(this);if(F||!k.videoId)this.Qh=this.j=!1;var z,x;if(k==null?0:(z=k.getPlayerResponse())==null?0:(x=z.videoDetails)==null?0:x.isLiveContent)this.FA(!1);else{var D,e,C;k=g.J((D=k.getWatchNextResponse())==null?void 0:(e=D.playerOverlays)==null?void 0:(C=e.playerOverlayRenderer)==null?void 0:C.productsInVideoOverlayRenderer,
H89);this.G=this.enabled=!1;if(k){if(D=k==null?void 0:k.featuredProductsEntityKey){e=g.ok.getState().entities;var p;if((p=us(e,"featuredProductsEntity",D))==null?0:p.productsData){this.FA(!1);return}}this.enabled=!0;if(!this.j){var E;p=(E=k.badgeInteractionLogging)==null?void 0:E.trackingParams;(this.j=!!p)&&this.T.setTrackingParams(this.badge.element,p||null)}if(!this.Qh){var X;if(this.Qh=!((X=k.dismissButton)==null||!X.trackingParams)){var q;this.T.setTrackingParams(this.dismissButton.element,((q=
k.dismissButton)==null?void 0:q.trackingParams)||null)}}k.isContentForward&&(E=k.productsData,rND(this,!0),Qe9(this),E=seM(this,E),X=[],E.length>0&&X.push(E[0]),E.length>1&&(q=new g.Y({X:"div",J:"ytp-suggested-action-more-products-icon"}),g.b(this,q),X.push(q),X.push.apply(X,g.r(E.slice(1)))),this.S=new g.Y({X:"div",Z:X,J:"ytp-suggested-action-content-forward-container"}),g.b(this,this.S),this.yh.element.append(this.S.element));this.text=g.rt(k.text);var N;if(E=(N=k.dismissButton)==null?void 0:N.a11yLabel)this.RU=
g.rt(E);this.onClickCommand=k.onClickCommand;this.timing=k.timing;this.Li()}lpY(this);sR(this);this.e1()}};
g.A.Fa=function(){return!this.G&&this.enabled&&!this.u$&&!this.T.hH()&&!this.Xm&&(this.B||this.t4)};
g.A.eB=function(F){r1.prototype.eB.call(this,F);if(this.Y||this.L)this.timing&&wO(this.timing.preview)&&(this.Y=!1,mU(this),this.L=!1,mU(this),this.T.H7("shopping_overlay_preview_collapsed"),this.T.H7("shopping_overlay_preview_expanded"),F=T1(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),wO(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.T.H7("shopping_overlay_expanded"),F.end=this.timing.expanded.endSec*1E3),this.T.Li([F])),
this.PR=!0,sR(this);mU(this)};
g.A.FA=function(F){(this.B=F)?(hr(this),sR(this,!1)):(BJk(this),this.l$.start());this.e1()};
g.A.Li=function(F){var k=this.timing;F=(F===void 0?0:F)+this.T.getCurrentTime();var z=[],x=k.visible,D=k.preview;k=k.expanded;wO(x)&&(mS9(x,F),z.push(T1(x.startSec,x.endSec,"shopping_overlay_visible")));wO(D)&&(mS9(D,F),x=D.startSec+1,z.push(T1(D.startSec,x,"shopping_overlay_preview_collapsed")),z.push(T1(x,D.endSec,"shopping_overlay_preview_expanded")));wO(k)&&(mS9(k,F),z.push(T1(k.startSec,k.endSec,"shopping_overlay_expanded")));this.T.Li(z)};g.T(tqk,g.Y);
tqk.prototype.G4=function(){var F=this.api.C();this.Yj(g.tJ(F)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Q2);var k=this.api.getVideoData(),z=!1;this.api.getPresentingPlayerType()===2?z=!!k.videoId&&!!k.isListed&&!!k.author&&!!k.Xm&&!!k.profilePicture:g.tJ(F)&&(z=!!k.videoId&&!!k.Xm&&!!k.profilePicture&&!g.xp(k)&&!F.U&&!(F.B&&this.api.getPlayerSize().width<200));var x=k.profilePicture;F=g.tJ(F)?k.expandedTitle:k.author;x=x===void 0?
"":x;F=F===void 0?"":F;z?(this.L!==x&&(this.Y.style.backgroundImage="url("+x+")",this.L=x),this.updateValue("channelLogoLabel",g.rG("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:F})),g.C6(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.p6(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.Y,z&&this.W);this.api.logVisibility(this.channelName,z&&this.W);this.subscribeButton&&(this.subscribeButton.channelId=k.Wz);this.updateValue("expandedTitle",k.expandedTitle)};g.T(l2,g.RL);l2.prototype.show=function(){g.RL.prototype.show.call(this);this.Y.start()};
l2.prototype.hide=function(){g.RL.prototype.hide.call(this);this.Y.stop()};
l2.prototype.Z4=function(F,k){F==="dataloaded"&&((this.BM=k.BM,this.Ki=k.Ki,isNaN(this.BM)||isNaN(this.Ki))?this.U&&(this.T.H7("intro"),this.T.removeEventListener(g.X$("intro"),this.G),this.T.removeEventListener(g.qQ("intro"),this.S),this.T.removeEventListener("onShowControls",this.j),this.hide(),this.U=!1):(this.T.addEventListener(g.X$("intro"),this.G),this.T.addEventListener(g.qQ("intro"),this.S),this.T.addEventListener("onShowControls",this.j),F=new g.ps(this.BM,this.Ki,{priority:9,namespace:"intro"}),
this.T.Li([F]),this.U=!0))};g.T(QV,g.Y);QV.prototype.onClick=function(){this.T.pg()};
QV.prototype.G4=function(){var F=!0;g.tJ(this.T.C())&&(F=F&&this.T.Ka().getPlayerSize().width>=480);this.Yj(F);this.updateValue("icon",this.T.Pc()?{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,D:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{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.T(vLn,g.Y);vLn.prototype.h4=function(){this.Y=null;g.Y.prototype.h4.call(this)};g.T(hR,g.Y);hR.prototype.onClick=function(){this.T.ZQ("innertubeCommand",this.L)};
hR.prototype.K=function(F){F!==this.S&&(this.update({title:F,ariaLabel:F}),this.S=F);F?this.show():this.hide()};
hR.prototype.B=function(){this.Y.disabled=this.L==null;g.XF(this.Y,"ytp-chapter-container-disabled",this.Y.disabled);this.xj()};g.T(sU,hR);sU.prototype.onClickCommand=function(F){g.J(F,kJ)&&this.xj()};
sU.prototype.updateVideoData=function(F,k){var z,x,D;F=g.J((z=k.getWatchNextResponse())==null?void 0:(x=z.playerOverlays)==null?void 0:(D=x.playerOverlayRenderer)==null?void 0:D.decoratedPlayerBarRenderer,B3);z=g.J(F==null?void 0:F.playerBarActionButton,g.yS);this.T.V("web_player_updated_entrypoint")&&(this.G=Uw(z==null?void 0:z.text));this.L=z==null?void 0:z.command;hR.prototype.B.call(this)};
sU.prototype.xj=function(){var F=this.T.V("web_player_updated_entrypoint")?this.G:"",k=this.j.Y,z,x=((z=this.T.getLoopRange())==null?void 0:z.type)==="clips";if(k.length>1&&!x){F=this.T.getProgressState().current*1E3;z=$9(k,F);F=k[z].title||"Chapters";if(z!==this.currentIndex||this.U)this.T.ZQ("innertubeCommand",k[z].onActiveCommand),this.currentIndex=z;this.U=!1}else this.U=!0;hR.prototype.K.call(this,F)};g.T(rO,g.Y);rO.prototype.U=function(F){g.n(F.state,32)?PgD(this,this.api.SU()):this.Q2&&(g.n(F.state,16)||g.n(F.state,1))||this.fade.hide()};
rO.prototype.u7=function(){var F=this.api.getPlayerStateObject();(g.n(F,32)||g.n(F,16))&&OrD(this)};
rO.prototype.j=function(){this.frameIndex=NaN;OrD(this)};
rO.prototype.hide=function(){this.Y&&PgD(this,null);g.Y.prototype.hide.call(this)};g.T(Vqa,g.Y);g.A=Vqa.prototype;g.A.onClick=function(){var F=this;if(this.T.C().qD||this.T.C().B){this.T.logClick(this.element);try{this.T.toggleFullscreen().catch(function(k){F.J8(k)})}catch(k){this.J8(k)}}else Yp(this.message,this.element,!0)};
g.A.J8=function(F){String(F).includes("fullscreen error")?g.yI(F):g.JV(F);this.O6()};
g.A.O6=function(){this.disable();this.message.NR(this.element,!0)};
g.A.GH=function(){sN()===this.T.getRootNode()?this.U.start():(this.U.stop(),this.message&&this.message.hide())};
g.A.vX=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var F=window.screen.width*.9,k=window.screen.height*.9,z=Math.max(window.outerWidth,window.innerWidth),x=Math.max(window.outerHeight,window.innerHeight);if(z>x!==F>k){var D=z;z=x;x=D}F>z&&k>x&&this.O6()}};
g.A.disable=function(){var F=this;if(!this.message){var k=(ln(["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.RL(this.T,{X:"div",WR:["ytp-popup","ytp-generic-popup"],D:{role:"alert",tabindex:"0"},Z:[k[0],{X:"a",D:{href:"https://web.archive.org/web/20250411103644/https://support.google.com/youtube/answer/6276924",
target:this.T.C().K},jk:k[2]},k[4]]},100,!0);this.message.hide();g.b(this,this.message);this.message.subscribe("show",function(z){F.L.Ce(F.message,z)});
g.Hv(this.T,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.Y)();this.Y=null}};
g.A.G4=function(){var F=FMC(this.T),k=this.T.C().B&&this.T.getPlayerSize().width<250;this.Yj(F&&!k);var z;((z=this.T.C())==null?0:z.V("embeds_use_parent_visibility_in_ve_logging"))?this.T.logVisibility(this.element,this.Q2&&this.W):this.T.logVisibility(this.element,this.Q2)};
g.A.F9=function(F){if(F){var k={X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"g",J:"ytp-fullscreen-button-corner-2",Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{X:"g",J:"ytp-fullscreen-button-corner-3",Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{X:"g",J:"ytp-fullscreen-button-corner-0",Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{X:"g",
J:"ytp-fullscreen-button-corner-1",Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};F=g.UJ(this.T,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.T.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(z){g.yI(z)})}else k={X:"svg",
D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"g",J:"ytp-fullscreen-button-corner-0",Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{X:"g",J:"ytp-fullscreen-button-corner-1",Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{X:"g",J:"ytp-fullscreen-button-corner-2",Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{X:"g",J:"ytp-fullscreen-button-corner-3",
Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},F=g.UJ(this.T,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});F=this.message?null:F;this.update({title:F,icon:k});this.L.aI().Ei()};
g.A.h4=function(){this.message||((0,this.Y)(),this.Y=null);g.Y.prototype.h4.call(this)};
g.A.fN=function(F){g.Y.prototype.fN.call(this,F);var k;((k=this.T.C())==null?0:k.V("embeds_use_parent_visibility_in_ve_logging"))&&this.T.logVisibility(this.element,this.Q2&&F)};g.T(BL,g.Y);BL.prototype.onClick=function(){this.T.logClick(this.element);this.T.seekBy(this.Y,!0);var F=this.Y>0?1:-1,k=Math.abs(this.Y),z=this.T.N4().hT;z&&k9(z,F,k);this.L.isActive()?this.U=!0:(F=["ytp-jump-spin"],this.Y<0&&F.push("backwards"),this.element.classList.add.apply(this.element.classList,g.r(F)),g.WN(this.L))};g.T(G1,hR);G1.prototype.onClickCommand=function(F){g.J(F,VSY)&&this.xj()};
G1.prototype.updateVideoData=function(){var F,k;this.L=(F=HrR(this))==null?void 0:(k=F.onTap)==null?void 0:k.innertubeCommand;hR.prototype.B.call(this)};
G1.prototype.xj=function(){var F="",k=this.j.G,z,x=(z=HrR(this))==null?void 0:z.headerTitle;z=x?g.rt(x):"";var D;x=((D=this.T.getLoopRange())==null?void 0:D.type)==="clips";k.length>1&&!x&&(F=this.T.getProgressState().current*1E3,D=nAD(k,F),F=D!=null?k[D].title:z,D!=null&&D!==this.currentIndex&&(this.T.ZQ("innertubeCommand",k[D].onActiveCommand),this.currentIndex=D));hR.prototype.K.call(this,F)};g.T(UU,g.Y);UU.prototype.onClick=function(){this.T.ZQ("onCollapseMiniplayer");this.T.logClick(this.element)};
UU.prototype.G4=function(){this.visible=!this.T.isFullscreen();this.Yj(this.visible);this.T.logVisibility(this.element,this.visible&&this.W)};
UU.prototype.fN=function(F){g.Y.prototype.fN.call(this,F);this.T.logVisibility(this.element,this.visible&&F)};g.T(tR,g.Y);g.A=tR.prototype;g.A.j_=function(F){this.visible=F.width>=300||this.Xf;this.Yj(this.visible);this.T.logVisibility(this.element,this.visible&&this.W)};
g.A.vjK=function(){this.T.C().l$?this.T.isMuted()?this.T.unMute():this.T.mute():Yp(this.message,this.element,!0);this.T.logClick(this.element)};
g.A.onVolumeChange=function(F){this.setVolume(F.volume,F.muted)};
g.A.setVolume=function(F,k){var z=this,x=k?0:F/100,D=this.T.C();F=x===0?1:F>50?1:0;if(this.S!==F){var e=this.PR;isNaN(e)?bra(this,F):DIM(this.mp,function(p){bra(z,e+(z.S-e)*p)},250);
this.S=F}x=x===0?1:0;if(this.j!==x){var C=this.K;isNaN(C)?dSk(this,x):DIM(this.Qh,function(p){dSk(z,C+(z.j-C)*p)},250);
this.j=x}D.l$&&(D=g.UJ(this.T,"Mute","m"),x=g.UJ(this.T,"Unmute","m"),this.updateValue("title",k?x:D),this.update({"data-title-no-tooltip":k?"Unmute":"Mute"}),this.tooltip.Ei())};
g.A.fN=function(F){g.Y.prototype.fN.call(this,F);this.T.logVisibility(this.element,this.visible&&F)};
var aBn=["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"],SdI=["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.T(g.Zp,g.Y);g.A=g.Zp.prototype;g.A.onStateChange=function(F){this.pJ(F.state);var k;((k=this.T.C())==null?0:k.V("embeds_use_parent_visibility_in_ve_logging"))&&this.T.logVisibility(this.element,this.Q2&&this.W)};
g.A.pJ=function(F){var k=g.Uh(this.T.getVideoData()),z=!1;F.isOrWillBePlaying()?F=k?4:2:g.n(F,2)?(F=3,z=k):F=1;this.element.disabled=z;if(this.Y!==F){k=null;switch(F){case 2:k=g.UJ(this.T,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:k="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:k=g.UJ(this.T,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:k="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}F===
3?this.update({title:k,icon:JND(F)}):(this.update({title:k}),(k=JND(F))&&this.Y&&this.Y!==3?jgx(this.transition,this.element,k):this.updateValue("icon",k));this.tooltip.Ei();this.Y=F}};
g.A.onVideoDataChange=function(){g.XF(this.element,"ytp-play-button-playlist",g.Pv(this.T))};
g.A.o5=function(F){this.T.logClick(this.element);if(this.T.getPlayerStateObject().isOrWillBePlaying())this.T.pauseVideo();else{if(this.T.isMinimized()&&this.T.getPlayerStateObject().isCued()){var k={},z;if((z=this.T.getVideoData())==null?0:z.S)k.cttAuthInfo={token:this.T.getVideoData().S,videoId:this.T.getVideoData().videoId};Ll("direct_playback",k);this.T.g$().timerName="direct_playback"}this.T.playVideo()}this.T.isMinimized()&&(F==null?void 0:F.type)==="click"&&this.element.blur()};
g.A.fN=function(F){g.Y.prototype.fN.call(this,F);var k;((k=this.T.C())==null?0:k.V("embeds_use_parent_visibility_in_ve_logging"))&&this.T.logVisibility(this.element,this.Q2&&F)};g.T(g.vL,g.Y);g.A=g.vL.prototype;g.A.onVideoDataChange=function(){R9k(this);this.j&&(this.er(this.j),this.j=null);this.videoData=this.T.getVideoData(1);if(this.playlist=this.T.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.j=this.N(this.T,"progresssync",this.GX);this.U=gL6(this);yNH(this);this.Vy(this.T.Ka().getPlayerSize())};
g.A.Vy=function(F){F=F===void 0?this.T.Ka().getPlayerSize():F;var k,z=((k=this.T.getLoopRange())==null?void 0:k.type)==="clips";F=(g.Pv(this.T)||this.Y&&g.aL(this.T)&&!this.T.V("web_hide_next_button")||YdC(this))&&!z&&(this.Y||F.width>=400);this.Yj(F);this.T.logVisibility(this.element,F)};
g.A.onClick=function(F){this.T.logClick(this.element);var k=!0;this.G?k=g.eT(F,this.T):F.preventDefault();k&&(this.Y&&this.T.getPresentingPlayerType()===5?this.T.publish("ytoprerollinternstitialnext"):this.Y?(C0(this.T.g$()),this.T.publish("playlistnextbuttonclicked",this.element),this.T.nextVideo(!0)):this.U?this.T.seekTo(0):(C0(this.T.g$()),this.T.publish("playlistprevbuttonclicked",this.element),this.T.previousVideo(!0)))};
g.A.GX=function(){var F=gL6(this);F!==this.U&&(this.U=F,yNH(this))};
g.A.h4=function(){this.L&&(this.L(),this.L=null);R9k(this);g.Y.prototype.h4.call(this)};g.T(Mqa,g.Y);g.A=Mqa.prototype;g.A.RY=function(F){this.Ga(F.pageX);this.Iw(F.pageX+F.deltaX);LdD(this)};
g.A.Ga=function(F){this.Qh=F-this.cR};
g.A.Iw=function(F){F-=this.cR;!isNaN(this.Qh)&&this.thumbnails.length>0&&(this.K=F-this.Qh,this.thumbnails.length>0&&this.K!==0&&(this.U=this.B+this.K,F=kja(this,this.U),this.U<=this.Y/2&&this.U>=FlD(this)?(this.api.seekTo(F,!1,void 0,void 0,25),g.Xr(this.t4,"transform","translateX("+(this.U-this.Y/2)+"px)"),nLn(this,F)):this.U=this.B))};
g.A.JC=function(){this.PR&&(this.PR.yR=!0);var F=(0,g.VE)()-this.J4<300;if(Math.abs(this.K)<5&&!F){this.J4=(0,g.VE)();F=this.Qh+this.K;var k=this.Y/2-F;this.Ga(F);this.Iw(F+k);LdD(this);this.api.logClick(this.S)}LdD(this)};
g.A.qf=function(){cL(this,this.api.getCurrentTime())};
g.A.play=function(F){this.api.seekTo(kja(this,this.U),void 0,void 0,void 0,26);this.api.playVideo();F&&this.api.logClick(this.playButton)};
g.A.onExit=function(F){this.api.seekTo(this.l$,void 0,void 0,void 0,63);this.api.playVideo();F&&this.api.logClick(this.dismissButton)};
g.A.OH=function(F,k){this.cR=F;this.Y=k;cL(this,this.api.getCurrentTime())};
g.A.enable=function(){this.isEnabled||(this.isEnabled=!0,this.l$=this.api.getCurrentTime(),nLn(this,this.l$),g.XF(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.yh=this.N(this.element,"wheel",this.RY),this.logVisibility(this.isEnabled))};
g.A.disable=function(){this.isEnabled=!1;this.hide();g.XF(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.yh&&this.er(this.yh);this.logVisibility(this.isEnabled)};
g.A.reset=function(){this.disable();this.j=[];this.Xf=!1};
g.A.logVisibility=function(F){this.api.logVisibility(this.element,F);this.api.logVisibility(this.S,F);this.api.logVisibility(this.dismissButton,F);this.api.logVisibility(this.playButton,F)};
g.A.h4=function(){for(;this.L.length;){var F=void 0;(F=this.L.pop())==null||F.dispose()}g.Y.prototype.h4.call(this)};
g.T(fBH,g.Y);g.T(KdY,g.Y);g.T(oza,g.Y);g.T(PL,g.Y);PL.prototype.T$=function(F){return F==="PLAY_PROGRESS"?this.B:F==="LOAD_PROGRESS"?this.G:F==="LIVE_BUFFER"?this.S:this.U};iLD.prototype.update=function(F,k,z,x){z=z===void 0?0:z;this.width=k;this.j=z;this.Y=k-z-(x===void 0?0:x);this.position=g.l3(F,z,z+this.Y);this.U=this.position-z;this.L=this.U/this.Y};g.T(DMI,g.Y);g.T(g.IF,g.Q7);g.A=g.IF.prototype;
g.A.VB=function(){var F=!1,k=this.api.getVideoData();if(!k)return F;this.api.H7("timedMarkerCueRange");efn(this);for(var z=g.l(k.UH),x=z.next();!x.done;x=z.next()){x=x.value;var D=void 0,e=(D=this.l$[x])==null?void 0:D.markerType;D=void 0;var C=(D=this.l$[x])==null?void 0:D.markers;if(!C)break;if(e==="MARKER_TYPE_TIMESTAMPS"){F=g.l(C);for(e=F.next();!e.done;e=F.next()){D=e.value;e=new DMI;C=void 0;e.title=((C=D.title)==null?void 0:C.simpleText)||"";e.timeRangeStartMillis=Number(D.startMillis);e.Y=
Number(D.durationMillis);var p=C=void 0;e.onActiveCommand=(p=(C=D.onActive)==null?void 0:C.innertubeCommand)!=null?p:void 0;qGH(this,e)}Nca(this,this.G);F=this.G;e=this.Av;D=[];C=null;for(p=0;p<F.length;p++){var E=F[p].timeRangeStartMillis;if(!isNaN(E)&&F[p].onActiveCommand){var X=void 0,q=(X=F[p].Y)!=null?X:1E4;C&&C.end>E&&(C.end=E);E=fjx(E,E+q);D.push(E);C=E;e[E.id]=F[p].onActiveCommand}}this.api.Li(D);this.Om=this.l$[x];F=!0}else if(e==="MARKER_TYPE_HEATMAP"){x=this.l$[x];q=X=D=E=p=C=void 0;if(x&&
x.markers){e=(D=(q=x.markersMetadata)==null?void 0:(X=q.heatmapMetadata)==null?void 0:X.minHeightDp)!=null?D:0;D=(C=(E=x.markersMetadata)==null?void 0:(p=E.heatmapMetadata)==null?void 0:p.maxHeightDp)!=null?C:60;C=this.Y.length;p=null;for(E=0;E<C;E++){q=this.Y[E].startTime;var N=E===C-1?Infinity:this.Y[E+1].startTime;E===this.j.length&&jVM(this);X=[];p&&X.push(p);for(var u=g.l(x.markers),w=u.next();!w.done;w=u.next()){w=w.value;var m=Number(w.startMillis);m>=q&&m<=N&&X.push(w)}D>0&&(this.PR.style.height=
D+"px");q=this.j[E];N=X;w=e;var h=D,B=E===0;B=B===void 0?!1:B;zfn(q,h);u=N;m=q.L;B=B===void 0?!1:B;var U=1E3/u.length,v=[];v.push({x:0,y:100});for(var P=0;P<u.length;P++){var I=(P+.5)*U,d=100-g.l3((u[P].intensityScoreNormalized||0)*100,w/m*100,h/m*100);P!==0||B||v.push({x:0,y:d});v.push({x:I,y:d});P===u.length-1&&v.push({x:1E3,y:d})}v.push({x:1E3,y:100});u=v;N=N.length===0?"":Kfa(u);q.api.V("delhi_modern_web_player")?q.U.setAttribute("d",N):q.S.setAttribute("d",N);q.ut=N!=="";g.XF(q.api.getRootNode(),
"ytp-heat-map",q.ut);q.api.V("delhi_modern_web_player")&&(q.U.style.display="block",q.j.style.display="none",q.Y.style.display="none");X.length>0&&(p=X[X.length-1])}g.HL(this)}D=void 0;e=[];if(x=(D=x.markersDecoration)==null?void 0:D.timedMarkerDecorations)for(x=g.l(x),D=x.next();!D.done;D=x.next())D=D.value,E=p=C=void 0,e.push({visibleTimeRangeStartMillis:(C=D.visibleTimeRangeStartMillis)!=null?C:-1,visibleTimeRangeEndMillis:(p=D.visibleTimeRangeEndMillis)!=null?p:-1,decorationTimeMillis:(E=D.decorationTimeMillis)!=
null?E:NaN,label:D.label?g.rt(D.label):""});x=e;this.heatMarkersDecorations=x}}k.Uf=this.G;g.XF(this.element,"ytp-timed-markers-enabled",F);return F};
g.A.OH=function(){g.HL(this);b2(this);Nca(this,this.G);if(this.L){var F=g.Q1(this.element).x||0;this.L.OH(F,this.S)}};
g.A.onClickCommand=function(F){if(F=g.J(F,kJ)){var k=F.key;F.isVisible&&k&&Tcn(this,k)}};
g.A.fFJ=function(F){this.api.ZQ("innertubeCommand",this.Av[F.id])};
g.A.xj=function(){b2(this);var F=this.api.getCurrentTime();(F<this.clipStart||F>this.clipEnd)&&this.cL()};
g.A.AC=function(F){if(!F.defaultPrevented){var k=!1;switch(F.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);k=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);k=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);k=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);k=!0;break;case 38:this.api.V("enable_key_press_seek_logging")&&Y9(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);k=!0;break;case 40:this.api.V("enable_key_press_seek_logging")&&Y9(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),k=!0}k&&F.preventDefault()}};
g.A.Z4=function(F,k){this.updateVideoData(k,F==="newdata")};
g.A.Wp$=function(){this.Z4("newdata",this.api.getVideoData())};
g.A.updateVideoData=function(F,k){k=k===void 0?!1:k;var z=!!F&&F.ut();if(z&&(zL(F)||r$D(this)?this.H8=!1:this.H8=F.allowLiveDvr,g.XF(this.api.getRootNode(),"ytp-enable-live-buffer",!(F==null||!zL(F))),this.api.V("enable_custom_playhead_parsing"))){var x,D,e,C=g.J((x=F.getWatchNextResponse())==null?void 0:(D=x.playerOverlays)==null?void 0:(e=D.playerOverlayRenderer)==null?void 0:e.decoratedPlayerBarRenderer,B3);if(C==null?0:C.progressColor)for(x=0;x<this.Y.length;x++)this.Y[x].T$("PLAY_PROGRESS").style.background=
g.nv(C.progressColor);C=g.J(C==null?void 0:C.playhead,oN$);var p,E;x=(C==null?void 0:(p=C.playheadImage)==null?void 0:p.thumbnails)&&(C==null?void 0:(E=C.playheadImage)==null?void 0:E.thumbnails[0].url);g.XF(this.pn,"ytp-decorated-scrubber-container",!!x);var X;if(C==null?0:(X=C.loggingDirectives)==null?0:X.trackingParams){var q;this.api.setTrackingParams(this.Vz,C==null?void 0:(q=C.loggingDirectives)==null?void 0:q.trackingParams);this.api.createServerVe(this.Vz,this)}x&&(this.Vz.src=x)}aDH(this,
this.api.xA());if(k){if(z){k=F.clipEnd;this.clipStart=F.clipStart;this.clipEnd=k;na(this);for(yV(this,this.K,this.vR);this.j.length>0;)this.j.pop().dispose();this.heatMarkersDecorations=[];this.UH={};var N;(N=this.L)==null||N.reset();WL(this);g.XF(this.api.getRootNode(),"ytp-fine-scrubbing-exp",VV(this))}else this.cL();this.Wl()}if(F){var u;N=((u=this.cj)==null?void 0:u.type)==="clips";if(u=!F.isLivePlayback){u=this.api.getVideoData();k=g.Ge(u);z=A$9(u);var w;u=k!=null||z!=null&&z.length>0||((w=u.vr)==
null?void 0:w.length)>0}if(u&&!N){w=this.api.getVideoData();N=g.Ge(w);u=!1;if(N==null?0:N.markersMap){u=this.api.getVideoData();var m;u.bO=((m=N.visibleOnLoad)==null?void 0:m.key)||u.bO;m=g.l(N.markersMap);for(N=m.next();!N.done;N=m.next())N=N.value,N.key&&N.value&&(this.UH[N.key]=N.value,N.value.onChapterRepeat&&(u.RL=N.value.onChapterRepeat));u.bO!=null&&Tcn(this,u.bO);u=!0}var h;if(((h=w.vr)==null?void 0:h.length)>0){h=g.ok.getState().entities;m=g.l(w.vr);for(N=m.next();!N.done;N=m.next())if(N=
N.value,z=void 0,k=(z=us(h,"macroMarkersListEntity",N))==null?void 0:z.markersList,p=z=void 0,((z=k)==null?void 0:z.markerType)==="MARKER_TYPE_TIMESTAMPS"||((p=k)==null?void 0:p.markerType)==="MARKER_TYPE_HEATMAP")this.l$[N]=k;u=this.VB()||u}!u&&(h=A$9(w))&&(Ezn(this,h),w.pn=this.Y,psI(this));BcM(this,null);F.nG&&this.j.length===0&&(F=F.nG,h=F.key,F.isVisible&&h&&Tcn(this,h))}else $Mp(this),efn(this)}b2(this)};
g.A.c4k=function(F){this.B&&!g.n(F.state,32)&&this.api.getPresentingPlayerType()!==3&&this.B.cancel();var k;((k=this.L)==null?0:k.isEnabled)&&g.n(F.state,8)&&this.api.pauseVideo();F=this.api.getPresentingPlayerType()===2||!this.api.xA()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.XF(this.y6,"ytp-hide-scrubber-button",F)};
g.A.hY=function(F){var k=!!this.cj!==!!F,z=this.cj;this.cj=F;BcM(this,z);(F==null?void 0:F.type)!=="clips"&&F||(F?(this.updateValue("clipstarticon",Qw9()),this.updateValue("clipendicon",Qw9()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",XAa()),this.updateValue("clipendicon",EK5()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),k&&(this.updateVideoData(this.api.getVideoData(),
!0),g.HL(this)),na(this));yV(this,this.K,this.vR)};
g.A.M94=function(F,k,z){var x=g.Q1(this.element),D=Sf(this).Y,e=z?z.getAttribute("data-tooltip"):void 0,C=z?z.getAttribute("data-position"):void 0,p=z?z.getAttribute("data-offset-y"):void 0;p=p?Number(p):0;C&&(F=JI(this.U,Number(z.getAttribute("data-position")),0)*D+g.Q1(this.progressBar).x);this.kG.x=F-x.x;this.kG.y=k-x.y;F=Sf(this);z=gO(this,F);k=0;var E;if((E=this.api.getVideoData())==null?0:zL(E))(E=this.api.getProgressState().seekableEnd)&&z>E&&(z=E,F.position=JI(this.U,E)*Sf(this).Y),k=this.U.L;
r$D(this)&&(k=this.U.L);E=e||g.cu(this.H8?z-this.U.Y:z-k);k=F.position+this.Tr;z-=this.api.Hj();var X;if((X=this.L)==null||!X.isEnabled)if(this.api.SU()){if(this.Y.length>1){X=RF(this,this.kG.x,!0);if(!this.cj)for(x=0;x<this.Y.length;)g.XF(this.Y[x].Y,"ytp-exp-chapter-hover-effect",x===X),x++;if(this.j.length>1)for(x=0;x<this.Y.length;x++)g.XF(this.j[x].element,"ytp-heatmap-hover",x===X)}if(this.G.length>0)for(X=this.kG.x,x=g.l(this.G),D=x.next();!D.done;D=x.next())D=D.value,C=aF(this,D.timeRangeStartMillis/
(this.U.Y*1E3),Sf(this)),g.XF(D.element,"ytp-timed-marker-hover",C<=X&&C+6>=X);x=this.tooltip.scale;p=(isNaN(p)?0:p)-45*x;this.api.V("web_key_moments_markers")?this.Om?(X=nAD(this.G,z*1E3),X=X!=null?this.G[X].title:""):(X=$9(this.Y,z*1E3),X=this.Y[X].title):(X=$9(this.Y,z*1E3),X=this.Y[X].title);X||(p+=16*x);this.tooltip.scale===.6&&(g.f_(this.api.C())?(p=this.api.Ka().getPlayerSize().height-225,p=X?p+110:p+110+16):p=X?110:126);x=$9(this.Y,z*1E3);this.t4=GjM(this,z,x)?x:GjM(this,z,x+1)?x+1:-1;g.XF(this.api.getRootNode(),
"ytp-progress-bar-snap",this.t4!==-1&&this.Y.length>1);x=!1;D=g.l(this.heatMarkersDecorations);for(C=D.next();!C.done;C=D.next()){C=C.value;var q=z*1E3;q>=C.visibleTimeRangeStartMillis&&q<=C.visibleTimeRangeEndMillis&&(X=C.label,E=g.cu(C.decorationTimeMillis/1E3),x=!0)}this.P7!==x&&(this.P7=x,this.api.logVisibility(this.yf,this.P7));g.XF(this.api.getRootNode(),"ytp-progress-bar-decoration",x);x=160*this.tooltip.scale*2;D=X.length*(this.Qh?8.55:5.7);D=D<=x?D:x;C=D<160*this.tooltip.scale;x=3;!C&&D/
2>F.position&&(x=1);!C&&D/2>this.S-F.position&&(x=2);this.api.C().B&&(p-=10);this.j.length&&this.j[0].ut&&(p-=14*(this.Qh?2:1),this.yh||(this.yh=!0,this.api.logVisibility(this.PR,this.yh)));var N;if(VV(this)&&(((N=this.L)==null?0:N.isEnabled)||this.RU>0)){var u;p-=((u=this.L)==null?0:u.isEnabled)?La(this):this.RU}N=void 0;VV(this)&&!this.api.V("web_player_hide_fine_scrubbing_edu")&&(N="Pull up for precise seeking",this.Xf||(this.Xf=!0,this.api.logVisibility(this.fJ,this.Xf)));this.tooltip.Uv(k,z,
E,!!e,p,X,x,N)}else this.tooltip.Uv(k,z,E,!!e,p);g.C6(this.api.getRootNode(),"ytp-progress-bar-hover");sV6(this)};
g.A.usp=function(){this.Wl();g.p6(this.api.getRootNode(),"ytp-progress-bar-hover");this.yh&&(this.yh=!1,this.api.logVisibility(this.PR,this.yh));this.Xf&&(this.Xf=!1,this.api.logVisibility(this.fJ,this.Xf))};
g.A.BlQ=function(F,k){VV(this)&&this.L&&(this.L.Xf?cL(this.L,this.api.getCurrentTime()):Wdn(this.L),this.L.show(),g.XF(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.L.isEnabled));this.xY&&(this.xY.dispose(),this.xY=null);this.uG=k;this.YP=this.api.getCurrentTime();this.Y.length>1&&this.t4!==-1?this.api.seekTo(this.Y[this.t4].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(gO(this,Sf(this)),!1,void 0,void 0,7);g.C6(this.element,"ytp-drag");(this.Nk=this.api.getPlayerStateObject().isOrWillBePlaying())&&
this.api.pauseVideo()};
g.A.p7G=function(){if(VV(this)&&this.L){var F=La(this);this.RU>=F*.5?(this.L.enable(),cL(this.L,this.api.getCurrentTime()),HLC(this,F)):WL(this)}if(g.n(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var k;if((k=this.L)==null?0:k.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.Y.length>1&&this.t4!==-1)this.api.V("html5_enable_progress_bar_slide_seek_logging")&&Y9(this,this.YP,this.Y[this.t4].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER",
"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.Y[this.t4].startTime/1E3,void 0,void 0,void 0,7);else{F=gO(this,Sf(this));this.api.V("html5_enable_progress_bar_slide_seek_logging")&&Y9(this,this.YP,F,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(F,void 0,void 0,void 0,7);k=g.l(this.heatMarkersDecorations);for(var z=k.next();!z.done;z=k.next())z=z.value,F*1E3>=z.visibleTimeRangeStartMillis&&F*1E3<=z.visibleTimeRangeEndMillis&&
this.api.logClick(this.yf)}g.p6(this.element,"ytp-drag");this.Nk&&!g.n(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}};
g.A.Cth=function(F,k){F=Sf(this);F=gO(this,F);this.api.seekTo(F,!1,void 0,void 0,7);var z;VV(this)&&((z=this.L)==null?0:z.Xf)&&(cL(this.L,F),this.L.isEnabled||(z=La(this),this.RU=g.l3(this.uG-k-10,0,z),HLC(this,this.RU)))};
g.A.Wl=function(){this.tooltip.nR()};
g.A.Xd=function(){this.cj||(this.updateValue("clipstarticon",pAk()),this.updateValue("clipendicon",pAk()),g.C6(this.element,"ytp-clip-hover"))};
g.A.m0=function(){this.cj||(this.updateValue("clipstarticon",XAa()),this.updateValue("clipendicon",EK5()),g.p6(this.element,"ytp-clip-hover"))};
g.A.cL=function(){this.clipStart=0;this.clipEnd=Infinity;na(this);yV(this,this.K,this.vR)};
g.A.zqK=function(F){F=g.l(F);for(var k=F.next();!k.done;k=F.next())if(k=k.value,k.visible){var z=k.getId();if(!this.cR[z]){var x=g.Ci("DIV");k.tooltip&&x.setAttribute("data-tooltip",k.tooltip);this.cR[z]=k;this.RS[z]=x;g.jd(x,k.style);UMC(this,z);this.api.C().V("disable_ad_markers_on_content_progress_bar")||this.Y[0].j.appendChild(x)}}else IDx(this,k)};
g.A.Hp4=function(F){F=g.l(F);for(var k=F.next();!k.done;k=F.next())IDx(this,k.value)};
g.A.ih=function(F){this.L&&(this.L.onExit(F!=null),WL(this))};
g.A.X$=function(F){this.L&&(this.L.play(F!=null),WL(this))};
g.A.o9h=function(){aDH(this,this.api.xA())};
g.A.h4=function(){aDH(this,!1);g.Q7.prototype.h4.call(this)};g.T(FS,g.Y);FS.prototype.isActive=function(){return!!this.T.getOption("remote","casting")};
FS.prototype.G4=function(){var F=!1;this.T.getOptions().includes("remote")&&(F=this.T.getOption("remote","receivers").length>1);this.Yj(F&&this.T.Ka().getPlayerSize().width>=400);this.T.logVisibility(this.element,this.Q2);var k=1;F&&this.isActive()&&(k=2);if(this.Y!==k){this.Y=k;switch(k){case 1:this.updateValue("icon",{X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{X:"path",Qz:!0,D:{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.A6R())}g.XF(this.element,"ytp-remote-button-active",this.isActive())}};
FS.prototype.L=function(){if(this.T.getOption("remote","quickCast"))this.T.setOption("remote","quickCast",!0);else{var F=this.Sz,k=this.element;if(F.ud())F.bL();else{F.initialize();a:{var z=g.l(F.tv.items);for(var x=z.next();!x.done;x=z.next())if(x=x.value,x.priority===1){z=x;break a}z=null}z&&(z.open(),F.NR(k));F.NR(k)}}this.T.logClick(this.element)};g.T(ko,g.Y);ko.prototype.Y=function(F){var k=this.T.C(),z=400;this.T.V("web_player_small_hbp_settings_menu")&&k.S?z=300:k.B&&(z=200);F=this.L&&F.width>=z;this.Yj(F);this.T.V("embeds_use_parent_visibility_in_ve_logging")?this.T.logVisibility(this.element,F&&this.W):this.T.logVisibility(this.element,F)};
ko.prototype.U=function(){if(this.Sz.Q2)this.Sz.bL();else{var F=g.Qt(this.T.iL());F&&!F.loaded&&(F.tG("tracklist",{includeAsr:!0}).length||F.load());this.T.logClick(this.element);this.Sz.NR(this.element)}};
ko.prototype.updateBadge=function(){var F=this.T.isHdr(),k=this.T.getPresentingPlayerType(),z=k!==2&&k!==3,x=g.IL(this.T),D=z&&!!g.VU(this.T.iL());k=D&&x.displayMode===1;x=D&&x.displayMode===2;z=(D=k||x)||!z?null:this.T.getPlaybackQuality();g.XF(this.element,"ytp-hdr-quality-badge",F);g.XF(this.element,"ytp-hd-quality-badge",!F&&(z==="hd1080"||z==="hd1440"));g.XF(this.element,"ytp-4k-quality-badge",!F&&z==="hd2160");g.XF(this.element,"ytp-5k-quality-badge",!F&&z==="hd2880");g.XF(this.element,"ytp-8k-quality-badge",
!F&&z==="highres");g.XF(this.element,"ytp-3d-badge-grey",!F&&D&&k);g.XF(this.element,"ytp-3d-badge",!F&&D&&x)};g.T(og,$0);og.prototype.isLoaded=function(){var F=g.UL(this.T.iL());return F!==void 0&&F.loaded};
og.prototype.G4=function(){g.UL(this.T.iL())!==void 0&&this.T.getPresentingPlayerType()!==3?this.Y||(this.Sz.Iy(this),this.Y=!0):this.Y&&(this.Sz.N$(this),this.Y=!1);jT(this,this.isLoaded())};
og.prototype.onSelect=function(F){this.isLoaded();F?this.T.loadModule("annotations_module"):this.T.unloadModule("annotations_module");this.T.publish("annotationvisibility",F)};
og.prototype.h4=function(){this.Y&&this.Sz.N$(this);$0.prototype.h4.call(this)};g.T(z5,g.Hq);z5.prototype.G4=function(){var F=this.T.getAvailableAudioTracks();F.length>1?(this.zR(g.tW(F,this.Y)),this.tracks=g.qT(F,this.Y,this),this.countLabel.r3(F.length?" ("+F.length+")":""),this.publish("size-change"),this.hG(this.Y(this.T.getAudioTrack())),this.enable(!0)):this.enable(!1)};
z5.prototype.XY=function(F){g.Hq.prototype.XY.call(this,F);this.T.setAudioTrack(this.tracks[F]);this.Sz.FZ()};
z5.prototype.Y=function(F){return F.toString()};g.T(xo,$0);
xo.prototype.L=function(){var F=this.T.getPresentingPlayerType();if(F!==2&&F!==3&&g.aL(this.T))this.Y||(this.Sz.Iy(this),this.Y=!0,this.U.push(this.N(this.T,"videodatachange",this.L)),this.U.push(this.N(this.T,"videoplayerreset",this.L)),this.U.push(this.N(this.T,"onPlaylistUpdate",this.L)),this.U.push(this.N(this.T,"autonavchange",this.j)),F=this.T.getVideoData(),this.j(F.autonavState),this.T.logVisibility(this.element,this.Y));else if(this.Y){this.Sz.N$(this);this.Y=!1;F=g.l(this.U);for(var k=F.next();!k.done;k=
F.next())this.er(k.value)}};
xo.prototype.j=function(F){jT(this,F!==1)};
xo.prototype.onSelect=function(F){this.T.oe(F?2:1);this.Y&&(this.T.logVisibility(this.element,this.Y),this.T.logClick(this.element))};
xo.prototype.h4=function(){this.Y&&this.Sz.N$(this);$0.prototype.h4.call(this)};g.T(bLn,g.LY);bLn.prototype.onClick=function(F){F.preventDefault();var k,z;(k=g.mJ(this.T))==null||(z=k.sS())==null||z.bL();var x,D;(x=g.mJ(this.T))==null||(D=x.ov())==null||D.NR(F.target)};g.T(dMk,g.Hq);g.A=dMk.prototype;
g.A.EW=function(){var F=this.T.getPresentingPlayerType();if(F!==2&&F!==3){this.t4=this.T.hI();F=this.T.getAvailableQualityLevels();if(this.Y){this.j={};var k=g.Xh(this.T,"getAvailableQualityData",[]);k=g.l(k);for(var z=k.next();!z.done;z=k.next())z=z.value,this.j[z.qualityLabel]=z;k=Object.keys(this.j);F[F.length-1]==="auto"&&k.push("auto");this.mp=new Set(F)}else if(this.S){z=g.Xh(this.T,"getAvailableQualityData",[]);k=[];z=g.l(z);for(var x=z.next();!x.done;x=z.next())x=x.value,this.K[x.quality]=
x,x.quality&&k.push(x.quality);F[F.length-1]==="auto"&&k.push("auto")}else k=F;g.H$x(this.T)&&this.T.Vw()&&k.unshift("missing-qualities");an9(this.T)&&k.unshift("inline-survey");this.zR(k);F=this.T.getVideoData().cotn?!0:!1;z=this.PR.bG();z=!g.f_(this.T.C())||!(F===void 0?0:F)||!(z===void 0||z);F=this.L;z=z===void 0?!1:z;F.TW&&g.XF(F.EK("ytp-panel-footer"),"ytp-panel-hide-footer",z===void 0?!1:z);if(k.length){this.FV();this.enable(!0);return}}this.enable(!1)};
g.A.FV=function(){if(this.Y){var F=this.T.getPreferredQuality();this.mp.has(F)&&(this.G=this.T.getPlaybackQuality(),this.Qh=this.T.getPlaybackQualityLabel(),F==="auto"?(this.hG(F),this.r3(this.yH(F))):this.hG(this.Qh))}else F=this.T.getPreferredQuality(),this.options[F]&&(this.G=this.T.getPlaybackQuality(),this.hG(F),F==="auto"&&this.r3(this.yH(F)))};
g.A.XY=function(F){if(F!=="missing-qualities"){g.Hq.prototype.XY.call(this,F);var k=this.Y?this.j[F]:this.K[F];var z=k==null?void 0:k.quality,x=k==null?void 0:k.formatId,D=k==null?void 0:k.paygatedQualityDetails;k=D==null?void 0:D.endpoint;if(D){var e;D=(e=this.options[F])==null?void 0:e.element;this.T.logClick(D)}if(this.Y){var C,p;if((C=g.J(k,g.tSG))==null?0:(p=C.popup)==null?0:p.notificationActionRenderer)this.T.ZQ("innertubeCommand",k);else if(k){this.T.ZQ("innertubeCommand",k);return}x?this.T.setPlaybackQuality(z,
x):this.T.setPlaybackQuality(z)}else{if(this.S){var E,X;if((E=g.J(k,g.tSG))==null?0:(X=E.popup)==null?0:X.notificationActionRenderer)this.T.ZQ("innertubeCommand",k);else if(k){this.T.ZQ("innertubeCommand",k);return}}this.T.setPlaybackQuality(F)}this.Sz.bL();this.EW()}};
g.A.open=function(){for(var F=g.l(Object.values(this.options)),k=F.next();!k.done;k=F.next()){k=k.value;var z=void 0;this.T.hasVe((z=k)==null?void 0:z.element)&&(z=void 0,this.T.logVisibility((z=k)==null?void 0:z.element,!0))}g.Hq.prototype.open.call(this);this.T.logClick(this.element)};
g.A.iX=function(F,k,z){var x=this;if(F==="missing-qualities")return new g.LY({X:"a",WR:["ytp-menuitem"],D:{href:"https://web.archive.org/web/20250411103644/https://support.google.com/youtube/?p=missing_quality",target:this.T.C().K,tabindex:"0",role:"menuitemradio"},Z:[{X:"div",WR:["ytp-menuitem-label"],jk:"{{label}}"}]},k,this.yH(F));if(F!=="inline-survey"){var D,e=(D=this.Y?this.j[F]:this.K[F])==null?void 0:D.paygatedQualityDetails;D=e==null?void 0:e.veType;e=e==null?void 0:e.trackingParams;k=g.Hq.prototype.iX.call(this,F,k,z);e?(this.T.createServerVe(k.element,
this,!0),this.T.setTrackingParams(k.element,e)):D&&this.T.createClientVe(k.element,this,D,!0);return k}F=[{X:"span",jk:"Looks good?"}];z=g.l([!0,!1]);e=z.next();for(D={};!e.done;D={Vr:void 0},e=z.next())D.Vr=e.value,e=new g.Y({X:"span",J:"ytp-menuitem-inline-survey-response",Z:[D.Vr?l0x():N35()],D:{tabindex:"0",role:"button"}}),e.listen("click",function(C){return function(){var p=x.T.app.A4();p&&(p.UK("iqsr",{tu:C.Vr}),p.getVideoData().ZJ=!0);x.Sz.bL();x.EW()}}(D)),F.push(e);
return new g.LY({X:"div",J:"ytp-menuitem",D:{"aria-disabled":"true"},Z:[{X:"div",WR:["ytp-menuitem-label"],Z:F}]},k)};
g.A.yH=function(F,k){k=k===void 0?!1:k;if(F==="missing-qualities")return{X:"div",jk:"Missing options?"};if(F==="inline-survey")return"";var z=this.S||this.Y?[Rf5(this,F,k,!1)]:[y$R(this,F)];var x=this.T.getPreferredQuality();k||x!=="auto"||F!=="auto"||(z.push(" "),this.Y?z.push(Rf5(this,this.Qh,k,!0,["ytp-menu-label-secondary"])):this.S?z.push(Rf5(this,this.G,k,!0,["ytp-menu-label-secondary"])):z.push(y$R(this,this.G,["ytp-menu-label-secondary"])));return{X:"div",Z:z}};g.T(Dl,g.Y);Dl.prototype.init=function(){this.updateValue("minvalue",this.S);this.updateValue("maxvalue",this.G);this.updateValue("stepvalue",this.B);this.updateValue("slidervalue",this.Y);gza(this,this.Y)};
Dl.prototype.j=function(){$o(this,Number(this.L.value));this.L.focus()};
Dl.prototype.U=function(F){if(!F.defaultPrevented){switch(F.code){case "ArrowDown":F=-this.B;break;case "ArrowUp":F=this.B;break;default:return}$o(this,Math.min(this.G,Math.max(Number((this.Y+F).toFixed(2)),this.S)))}};g.T(jh,Dl);jh.prototype.j=function(){Dl.prototype.j.call(this);this.K&&YGY(this)};
jh.prototype.t4=function(){this.Qh()};
jh.prototype.PR=function(){this.T.setPlaybackRate(this.Y,!0)};
jh.prototype.U=function(F){Dl.prototype.U.call(this,F);this.Qh();YGY(this);F.preventDefault()};g.T(eh,g.Y);g.A=eh.prototype;g.A.init=function(){this.jW(this.Y);this.updateValue("minvalue",this.L);this.updateValue("maxvalue",this.U)};
g.A.Nf=function(F){if(!F.defaultPrevented){switch(F.keyCode){case 37:case 40:var k=-this.B;break;case 39:case 38:k=this.B;break;default:return}this.jW(this.Y+k);F.preventDefault()}};
g.A.f4=function(F){var k=this.Y;k+=(F.deltaX||-F.deltaY)<0?-this.K:this.K;this.jW(k);F.preventDefault()};
g.A.Hm=function(F){F=(F-g.Q1(this.j).x)/this.Qh*this.range+this.L;this.jW(F)};
g.A.jW=function(F,k){k=k===void 0?"":k;F=g.l3(F,this.L,this.U);k===""&&(k=F.toString());this.updateValue("valuenow",F);this.updateValue("valuetext",k);this.PR.style.left=(F-this.L)/this.range*(this.Qh-this.Xf)+"px";this.Y=F};
g.A.focus=function(){this.yh.focus()};g.T(Co,eh);Co.prototype.t4=function(){this.T.setPlaybackRate(this.Y,!0)};
Co.prototype.jW=function(F){eh.prototype.jW.call(this,F,MtM(this,F).toString());this.S&&(nzp(this),this.mp())};
Co.prototype.updateValues=function(){var F=this.T.getPlaybackRate();MtM(this,this.Y)!==F&&(this.jW(F),nzp(this))};g.T(LlY,g.Q7);LlY.prototype.focus=function(){this.Y.focus()};g.T(fDC,Bq);g.T(Kln,g.Hq);g.A=Kln.prototype;g.A.yH=function(F){return F==="1"?"Normal":F.toLocaleString()};
g.A.G4=function(){var F,k=(F=this.T.getVideoData())==null?void 0:F.w3();F=this.T.getPresentingPlayerType(k);this.enable(F!==2&&F!==3);kKD(this)};
g.A.zR=function(F){g.Hq.prototype.zR.call(this,F);this.G&&this.G.L.focus()};
g.A.OV=function(F){g.Hq.prototype.OV.call(this,F);F?(this.Qh=this.N(this.T,"onPlaybackRateChange",this.onPlaybackRateChange),kKD(this),Wlk(this,this.T.getPlaybackRate())):(this.er(this.Qh),this.Qh=null)};
g.A.onPlaybackRateChange=function(F){var k=this.T.getPlaybackRate();!this.j&&this.K.includes(k)||FkR(this,k);Wlk(this,F)};
g.A.iX=function(F,k,z){return F===this.Y&&o1R(this.T)?g.Hq.prototype.iX.call(this,F,k,z,{X:"div",J:"ytp-speed-slider-menu-footer",Z:[this.G]}):g.Hq.prototype.iX.call(this,F,k,z)};
g.A.XY=function(F){g.Hq.prototype.XY.call(this,F);F===this.Y?this.T.setPlaybackRate(this.S,!0):this.T.setPlaybackRate(Number(F),!0);o1R(this.T)&&F===this.Y||this.Sz.FZ()};
g.A.gA=function(F){var k=F===this.Y;this.j=!1;k&&Ah(this.T)&&!o1R(this.T)?(F=new fDC(this.T),g.Z2(this.Sz,F)):g.Hq.prototype.gA.call(this,F)};g.T(xRn,g.Hq);g.A=xRn.prototype;g.A.hG=function(F){g.Hq.prototype.hG.call(this,F)};
g.A.tY=function(F){return F.option.toString()};
g.A.getOption=function(F){return this.settings[F]};
g.A.yH=function(F){return this.getOption(F).text||""};
g.A.XY=function(F){g.Hq.prototype.XY.call(this,F);this.publish("settingChange",this.setting,this.settings[F].option)};g.T(Ek,g.Gd);Ek.prototype.JG=function(F){for(var k=g.l(Object.keys(F)),z=k.next();!z.done;z=k.next()){var x=z.value;if(z=this.Zn[x]){var D=F[x].toString();x=!!F[x+"Override"];z.options[D]&&(z.hG(D),z.j.element.setAttribute("aria-checked",String(!x)),z.Y.element.setAttribute("aria-checked",String(x)))}}};
Ek.prototype.rO=function(F,k){this.publish("settingChange",F,k)};g.T(XS,g.Hq);XS.prototype.Y=function(F){return F.languageCode};
XS.prototype.yH=function(F){return this.languages[F].languageName||""};
XS.prototype.XY=function(F){this.publish("select",F);this.T.logClick(this.element);g.vq(this.Sz)};g.T($Rn,g.Hq);g.A=$Rn.prototype;g.A.mx=function(F){return g.SI(F)?"__off__":F.displayName};
g.A.yH=function(F){return F==="__off__"?"Off":F==="__translate__"?"Auto-translate":F==="__contribute__"?"Add subtitles/CC":F==="__correction__"?"Suggest caption corrections":(F==="__off__"?{}:this.tracks[F]).displayName};
g.A.XY=function(F){if(F==="__translate__")this.Y.open();else if(F==="__contribute__"){this.T.pauseVideo();this.T.isFullscreen()&&this.T.toggleFullscreen();var k=g.Rl(this.T.C(),this.T.getVideoData());g.Kv(k)}else if(F==="__correction__"){this.T.pauseVideo();this.T.isFullscreen()&&this.T.toggleFullscreen();var z=jJ6(this);qI(this,z);g.Hq.prototype.XY.call(this,this.mx(z));var x,D;z=(k=this.T.getVideoData().getPlayerResponse())==null?void 0:(x=k.captions)==null?void 0:(D=x.playerCaptionsTracklistRenderer)==
null?void 0:D.openTranscriptCommand;this.T.ZQ("innertubeCommand",z);this.Sz.FZ();this.j&&this.T.logClick(this.j)}else{if(F==="__correction__"){this.T.pauseVideo();this.T.isFullscreen()&&this.T.toggleFullscreen();k=jJ6(this);qI(this,k);g.Hq.prototype.XY.call(this,this.mx(k));var e,C;k=(z=this.T.getVideoData().getPlayerResponse())==null?void 0:(e=z.captions)==null?void 0:(C=e.playerCaptionsTracklistRenderer)==null?void 0:C.openTranscriptCommand;this.T.ZQ("innertubeCommand",k)}else this.T.logClick(this.element),
qI(this,F==="__off__"?{}:this.tracks[F]),g.Hq.prototype.XY.call(this,F);this.Sz.FZ()}};
g.A.G4=function(){var F=this.T.getOptions();F=F&&F.indexOf("captions")!==-1;var k=this.T.getVideoData(),z=k&&k.gx,x,D=!((x=this.T.getVideoData())==null||!g.M8(x));x={};if(F||z){var e;if(F){var C=this.T.getOption("captions","track");x=this.T.getOption("captions","tracklist",{includeAsr:!0});var p=D?[]:this.T.getOption("captions","translationLanguages");this.tracks=g.qT(x,this.mx,this);D=g.tW(x,this.mx);var E,X;jJ6(this)&&((e=k.getPlayerResponse())==null?0:(E=e.captions)==null?0:(X=E.playerCaptionsTracklistRenderer)==
null?0:X.openTranscriptCommand)&&D.push("__correction__");if(p.length&&!g.SI(C)){if((e=C.translationLanguage)&&e.languageName){var q=e.languageName;e=p.findIndex(function(N){return N.languageName===q});
iCI(p,e)}iqk(this.Y,p);D.push("__translate__")}e=this.mx(C)}else this.tracks={},D=[],e="__off__";D.unshift("__off__");this.tracks.__off__={};z&&D.unshift("__contribute__");this.tracks[e]||(this.tracks[e]=C,D.push(e));this.zR(D);this.hG(e);C&&C.translationLanguage?this.Y.hG(this.Y.Y(C.translationLanguage)):JRM(this.Y);F&&this.S.JG(this.T.getSubtitlesUserSettings());this.countLabel.r3(x&&x.length?" ("+x.length+")":"");this.publish("size-change");this.T.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.A.wy=function(F){var k=this.T.getOption("captions","track");k=g.Jg(k);k.translationLanguage=this.Y.languages[F];qI(this,k)};
g.A.rO=function(F,k){if(F==="reset")this.T.resetSubtitlesUserSettings();else{var z={};z[F]=k;this.T.updateSubtitlesUserSettings(z)}DR6(this,!0);this.G.start();this.S.JG(this.T.getSubtitlesUserSettings())};
g.A.yvp=function(F){F||g.ke(this.G)};
g.A.h4=function(){g.ke(this.G);g.Hq.prototype.h4.call(this)};
g.A.open=function(){g.Hq.prototype.open.call(this);this.options.__correction__&&!this.j&&(this.j=this.options.__correction__.element,this.T.createClientVe(this.j,this,167341),this.T.logVisibility(this.j,!0))};g.T(eZk,g.tr);g.A=eZk.prototype;
g.A.initialize=function(){if(!this.isInitialized){var F=this.T.C();this.isInitialized=!0;try{this.Oj=new dMk(this.T,this)}catch(z){g.yI(Error("QualityMenuItem creation failed"))}g.b(this,this.Oj);var k=new $Rn(this.T,this);g.b(this,k);F.U||(k=new og(this.T,this),g.b(this,k));F.enableSpeedOptions&&(k=new Kln(this.T,this),g.b(this,k));(g.tJ(F)||F.S)&&(F.L||F.J4)&&(k=new bLn(this.T,this),g.b(this,k));F.m_&&!F.V("web_player_move_autonav_toggle")&&(F=new xo(this.T,this),g.b(this,F));F=new z5(this.T,this);
g.b(this,F);this.T.publish("settingsMenuInitialized");SGM(this.settingsButton,this.tv.Ip())}};
g.A.Iy=function(F){this.initialize();this.tv.Iy(F);SGM(this.settingsButton,this.tv.Ip())};
g.A.N$=function(F){this.Q2&&this.tv.Ip()<=1&&this.hide();this.tv.N$(F);SGM(this.settingsButton,this.tv.Ip())};
g.A.NR=function(F){this.initialize();this.tv.Ip()>0&&g.tr.prototype.NR.call(this,F)};
g.A.bL=function(){this.ub?this.ub=!1:g.tr.prototype.bL.call(this)};
g.A.show=function(){g.tr.prototype.show.call(this);g.C6(this.T.getRootNode(),"ytp-settings-shown")};
g.A.hide=function(){g.tr.prototype.hide.call(this);g.p6(this.T.getRootNode(),"ytp-settings-shown")};
g.A.FA=function(F){this.T.logVisibility(this.element,F);this.T.publish("settingsMenuVisibilityChanged",F)};g.T(Aok,g.Y);g.A=Aok.prototype;g.A.onClick=function(){if(pGM(this)&&(this.T.toggleSubtitles(),this.T.logClick(this.element),!this.isEnabled())){var F=!1,k=g.M5(g.nu(),65);g.f_(this.T.C())&&k!=null&&(F=!k);F&&this.T.C().V("web_player_nitrate_promo_tooltip")&&this.T.publish("showpromotooltip",this.element)}};
g.A.N9U=function(F){var k,z;(k=g.mJ(this.T))==null||(z=k.sS())==null||z.NR(F)};
g.A.isEnabled=function(){return!!this.T.getOption("captions","track").displayName};
g.A.G4=function(){var F=pGM(this),k=300;this.T.C().B&&(k=480);if(this.T.C().S){this.updateValue("title",g.UJ(this.T,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var z=F}else{if(F)(z=this.EK("ytp-subtitles-button-icon"))==null||z.setAttribute("fill-opacity","1"),this.updateValue("title",g.UJ(this.T,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var x;(x=this.EK("ytp-subtitles-button-icon"))==
null||x.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}z=!0}this.tooltip.Ei();z=z&&this.T.Ka().getPlayerSize().width>=k;this.Yj(z);this.T.V("embeds_use_parent_visibility_in_ve_logging")?this.T.logVisibility(this.element,z&&this.W):this.T.logVisibility(this.element,z);F?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};
g.A.fN=function(F){g.Y.prototype.fN.call(this,F);this.T.C().V("embeds_use_parent_visibility_in_ve_logging")&&this.T.logVisibility(this.element,this.Q2&&F)};g.T(g.NI,g.Y);g.A=g.NI.prototype;
g.A.xj=function(){var F=this.api.Ka().getPlayerSize().width,k=this.K;this.api.C().B&&(k=400);k=F>=k&&(!uf(this)||!g.n(this.api.getPlayerStateObject(),64));this.Yj(k);g.XF(this.element,"ytp-time-display-allow-autohide",k&&F<400);F=this.api.getProgressState();if(k){k=this.api.getPresentingPlayerType();var z=this.api.getCurrentTime(k,!1);this.L&&(z-=F.airingStart);wb(this)&&(z-=this.cj.startTimeMs/1E3);wb(this)||uf(this)||!this.U||(z-=this.api.getDuration(k,!1));z=g.cu(z);this.j!==z&&(this.updateValue("currenttime",
z),this.j=z);k=wb(this)?g.cu((this.cj.endTimeMs-this.cj.startTimeMs)/1E3):g.cu(this.api.getDuration(k,!1));this.S!==k&&(this.updateValue("duration",k),this.S=k)}E1R(this,F.isAtLiveHead);XGH(this,this.api.getLoopRange())};
g.A.onLoopRangeChange=function(F){var k=this.cj!==F;this.cj=F;k&&(this.xj(),qMa(this))};
g.A.kM_=function(){this.api.setLoopRange(null)};
g.A.yl4=function(){this.U=!this.U;this.xj()};
g.A.onVideoDataChange=function(F,k,z){this.updateVideoData((this.api.C().V("enable_topsoil_wta_for_halftime")||this.api.C().V("enable_topsoil_wta_for_halftime_live_infra"))&&z===2?this.api.getVideoData(1):k);this.xj();qMa(this)};
g.A.updateVideoData=function(F){this.kh=F.isLivePlayback&&!F.vR;this.L=zL(F);this.isPremiere=F.isPremiere;g.XF(this.element,"ytp-live",uf(this))};
g.A.onClick=function(F){F.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())};
g.A.h4=function(){this.Y&&this.Y();g.Y.prototype.h4.call(this)};g.T(u9H,g.Y);g.A=u9H.prototype;g.A.GH=function(){var F=this.api.DT();this.U!==F&&(this.U=F,Njk(this,this.api.getVolume(),this.api.isMuted()))};
g.A.iP=function(F){this.Yj(F.width>=350)};
g.A.Mf=function(F){if(!F.defaultPrevented){var k=F.keyCode,z=null;k===37?z=this.volume-5:k===39?z=this.volume+5:k===36?z=0:k===35&&(z=100);z!==null&&(z=g.l3(z,0,100),z===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(z)),F.preventDefault())}};
g.A.Bm=function(F){var k=F.deltaX||-F.deltaY;F.deltaMode?this.api.setVolume(this.volume+(k<0?-10:10)):this.api.setVolume(this.volume+g.l3(k/10,-10,10));F.preventDefault()};
g.A.xka=function(){mj(this,this.Y,!0,this.L,this.api.Qt());this.K=this.volume;this.api.isMuted()&&this.api.unMute()};
g.A.uU=function(F){var k=this.U?78:52,z=this.U?18:12;F-=g.Q1(this.B).x;this.api.setVolume(g.l3((F-z/2)/(k-z),0,1)*100)};
g.A.nPk=function(){mj(this,this.Y,!1,this.L,this.api.Qt());this.volume===0&&(this.api.mute(),this.api.setVolume(this.K))};
g.A.onVolumeChange=function(F){Njk(this,F.volume,F.muted)};
g.A.z6=function(){mj(this,this.Y,this.isDragging,this.L,this.api.Qt())};
g.A.h4=function(){g.Y.prototype.h4.call(this);g.p6(this.G,"ytp-volume-slider-active")};g.T(T5,Dl);T5.prototype.onVolumeChange=function(F){if(this.K)this.K=!1;else{var k=F.volume;k===0||F.muted?$o(this,0):$o(this,k)}};
T5.prototype.j=function(){Dl.prototype.j.call(this);this.Qh(this.Y)};
T5.prototype.U=function(F){Dl.prototype.U.call(this,F);this.Qh(this.Y)};
T5.prototype.PR=function(F,k){this.K=!0;F===0||k?this.T.mute():(this.T.isMuted()&&this.T.unMute(),this.T.setVolume(F))};g.T(wGM,g.Y);g.T(lf,g.Y);
lf.prototype.onVideoDataChange=function(){var F=this.api.C();this.OH();this.visible=!!this.api.getVideoData().videoId&&!g.xp(this.api.getVideoData(1));this.Yj(this.visible);this.api.logVisibility(this.element,this.visible&&this.W);if(this.visible){var k=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",k)}F.U&&(this.Y&&(this.er(this.Y),this.Y=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.C6(this.element,"no-link"));
k=this.api.C();F=this.api.getVideoData();var z="";k.U||(k=g.gw(k),k.indexOf("www.")===0&&(k=k.substring(4)),z=g.D9(F)?"Watch on YouTube Music":k==="youtube.com"?"Watch on YouTube":g.rG("Watch on $WEBSITE",{WEBSITE:k}));this.updateValue("title",z)};
lf.prototype.onClick=function(F){this.api.V("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var k=this.api.C(),z=this.api.getVideoUrl(!g.Pu(F),!1,!0,!0);if(g.tJ(k)){var x={};g.tJ(k)&&g.Xh(this.api,"addEmbedsConversionTrackingParams",[x]);z=g.oW(z,x)}g.Ch(z,this.api,F);this.api.V("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
lf.prototype.OH=function(){var F={X:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},Z:[{X:"path",Qz:!0,J:"ytp-svg-fill",D:{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 "}}]},
k=28666,z=this.api.getVideoData();this.api.isEmbedsShortsMode()?F={X:"svg",D:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},Z:[{X:"path",D:{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.D9(z)&&(F={X:"svg",D:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},Z:[{X:"path",D:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{X:"path",D:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z",
fill:"white"}},{X:"path",D:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{X:"path",D:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{X:"path",D:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z",
fill:"white"}},{X:"path",D:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{X:"path",D:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z",
fill:"white"}},{X:"path",D:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{X:"path",D:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z",
fill:"white"}},{X:"path",D:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z",
fill:"white"}},{X:"path",D:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{X:"path",D:{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"}}]},k=216163);g.D9(z)?g.C6(this.element,"ytp-youtube-music-button"):g.p6(this.element,"ytp-youtube-music-button");F.D=Object.assign({},F.D,{"aria-hidden":"true"});this.updateValue("logoSvg",F);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,k,!0)};
lf.prototype.fN=function(F){g.Y.prototype.fN.call(this,F);this.api.logVisibility(this.element,this.visible&&F)};g.T(Tj5,g.yQ);g.A=Tj5.prototype;g.A.u7=function(){if(this.T.V("web_player_max_seekable_on_ended")||!g.n(this.T.getPlayerStateObject(),2))this.progressBar.xj(),this.yh.xj()};
g.A.Fy=function(){this.lx();if(this.Oh.L)this.u7();else if(this.progressBar.Wl(),this.T.V("delhi_modern_web_player")){var F;(F=this.S)==null||mRI(F,!1)}};
g.A.p4=function(){this.u7();this.K.start()};
g.A.lx=function(){var F;if(F=!this.T.C().L){F=this.progressBar;var k=2*g.L_()*F.S;F=F.U.getLength()*1E3/F.api.getPlaybackRate()/k<300}F=F&&this.T.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;k=!F;this.Oh.L||(F=k=!1);k?this.t4||(this.t4=this.N(this.T,"progresssync",this.u7)):this.t4&&(this.er(this.t4),this.t4=null);F?this.K.isActive()||this.K.start():this.K.stop()};
g.A.OH=function(){var F=this.T.DT(),k=this.T.Ka().getPlayerSize(),z=QJC(this),x=Math.max(k.width-z*2,100);if(this.dH!==k.width||this.vR!==F){this.dH=k.width;this.vR=F;var D=hZI(this);this.j.element.style.width=D+"px";this.j.element.style.left=z+"px";g.Vt9(this.progressBar,z,D,F);this.T.aI().EU=D}z=this.U;x=Math.min(570*(F?1.5:1),x);F=Math.min(413*(F?1.5:1),Math.round((k.height-sJx(this))*.82));z.maxWidth=x;z.maxHeight=F;z.lN();this.lx();this.T.C().V("html5_player_dynamic_bottom_gradient")&&Zrn(this.kG,
k.height)};
g.A.onVideoDataChange=function(){var F=this.T.getVideoData();this.RU.style.background=F.Mk?F.bC:"";this.PR&&IB9(this.PR,F.showSeekingControls);this.Qh&&IB9(this.Qh,F.showSeekingControls)};
g.A.T$=function(){return this.j.element};g.T(roI,r1);g.A=roI.prototype;g.A.In=function(F){F.target!==this.dismissButton.element&&(this.onClickCommand&&this.T.ZQ("innertubeCommand",this.onClickCommand),this.rJ())};
g.A.rJ=function(){this.enabled=!1;this.K.hide()};
g.A.onVideoDataChange=function(F,k){F==="dataloaded"&&BjH(this);F=[];var z,x,D,e;if(k=(e=g.J((z=k.getWatchNextResponse())==null?void 0:(x=z.playerOverlays)==null?void 0:(D=x.playerOverlayRenderer)==null?void 0:D.suggestedActionsRenderer,ie$))==null?void 0:e.suggestedActions)for(z=g.l(k),x=z.next();!x.done;x=z.next())(x=g.J(x.value,D3H))&&g.J(x.trigger,x3t)&&F.push(x);if(F.length!==0){z=[];F=g.l(F);for(x=F.next();!x.done;x=F.next())if(x=x.value,D=g.J(x.trigger,x3t))e=(e=x.title)?g.rt(e):"View Chapters",
k=D.timeRangeStartMillis,D=D.timeRangeEndMillis,k!=null&&D!=null&&x.tapCommand&&(z.push(new g.ps(k,D,{priority:9,namespace:"suggested_action_button_visible",id:e})),this.suggestedActions[e]=x.tapCommand);this.T.Li(z)}};
g.A.Fa=function(){return this.enabled};
g.A.FA=function(){this.enabled?this.l$.start():hr(this);this.e1()};
g.A.h4=function(){BjH(this);r1.prototype.h4.call(this)};var h$={},rb=(h$.CHANNEL_NAME="ytp-title-channel-name",h$.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",h$.LINK="ytp-title-link",h$.SESSIONLINK="yt-uix-sessionlink",h$.SUBTEXT="ytp-title-subtext",h$.TEXT="ytp-title-text",h$.TITLE="ytp-title",h$);g.T(BX,g.Y);BX.prototype.onClick=function(F){this.api.logClick(this.element);var k=this.api.C(),z=this.api.getVideoUrl(!g.Pu(F),!1,!0);g.tJ(k)&&(k={},g.Xh(this.api,"addEmbedsConversionTrackingParams",[k]),z=g.oW(z,k));g.Ch(z,this.api,F)};
BX.prototype.G4=function(){var F=this.api.getVideoData(),k=this.api.C();this.updateValue("title",F.title);var z={X:"a",J:rb.CHANNEL_NAME,D:{href:"{{channelLink}}",target:"_blank"},jk:"{{channelName}}"};this.api.C().U&&(z={X:"span",J:rb.CHANNEL_NAME,jk:"{{channelName}}",D:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",z);GKk(this);this.api.getPresentingPlayerType()===2&&(z=this.api.getVideoData(),z.videoId&&z.isListed&&z.author&&z.Xm&&z.profilePicture?(this.updateValue("channelLink",
z.Xm),this.updateValue("channelName",z.author),this.updateValue("channelTitleFocusable","0")):GKk(this));z=k.externalFullscreen||!this.api.isFullscreen()&&k.Q7;g.XF(this.link,rb.FULLERSCREEN_LINK,z);k.PR||!F.videoId||z||g.xp(F)||k.U?this.Y&&(this.updateValue("url",null),this.er(this.Y),this.Y=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.Y||(this.Y=this.N(this.link,"click",this.onClick)));k.U&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.tJ(k)?F.expandedTitle:
F.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.T(g.Uk,g.Y);g.A=g.Uk.prototype;g.A.setEnabled=function(F){if(this.type!=null)if(F)switch(this.type){case 3:case 2:te6(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.S=F};
g.A.Uv=function(F,k,z,x,D,e,C,p){if(!this.t4||this.env.B){this.type===3&&this.Wl();this.type!==1&&(g.jd(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.S&&this.fade.show(),this.L&&this.L.dispose(),(this.L=this.api.SU())&&this.L.subscribe("l",this.zg,this));if(p){var E=g.rQ(this.bg).height||141;this.mp.style.bottom=E+2+"px"}else this.mp.style.display="none";this.update({text:z,title:e!=null?e:"",eduText:p!=null?p:""});g.XF(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!e);this.api.isInline()&&
g.C6(this.bottomText,"ytp-modern-tooltip-text");g.XF(this.element,"ytp-text-detail",!!x);z=-1;this.L&&(z=It(this.L,243*this.scale),this.env.V("web_l3_storyboard")&&this.L.levels.length===4&&(z=this.L.levels.length-1),z=CBn(this.L,z,k));v1n(this,z);if(C)switch(k=g.rQ(this.element).width,C){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=k+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=k/2+"px",this.title.style.textAlign=
"center"}Zqn(this,!!x,F,D)}};
g.A.nR=function(){this.type===1&&this.Wl()};
g.A.Kl=function(F,k){if(this.type)if(this.type===3)this.Wl();else return;UR6(this,F,3,k)};
g.A.Ei=function(){this.Y&&!this.G&&this.Y.hasAttribute("title")&&(this.U=this.Y.getAttribute("title")||"",this.Y.removeAttribute("title"),this.S&&te6(this))};
g.A.zg=function(F,k){F<=this.j&&this.j<=k&&(F=this.j,this.j=NaN,v1n(this,F))};
g.A.tza=function(){jOn(this.L,this.j,243*this.scale)};
g.A.Wl=function(){switch(this.type){case 2:var F=this.Y;F.removeEventListener("mouseout",this.B);F.addEventListener("mouseover",this.Xf);F.removeEventListener("blur",this.B);F.addEventListener("focus",this.Xf);co6(this);break;case 3:co6(this);break;case 1:this.L&&(this.L.unsubscribe("l",this.zg,this),this.L=null),this.api.removeEventListener("videoready",this.K),this.Qh.stop()}this.type=null;this.S&&this.fade.hide()};
g.A.fd=function(){if(this.Y)for(var F=0;F<arguments.length;F++)g.N_(arguments[F],this.Y)&&this.Wl()};
g.A.h4=function(){this.type!=null&&this.Wl();this.L&&this.L.dispose();g.Y.prototype.h4.call(this)};g.T(OqD,g.Y);g.A=OqD.prototype;g.A.X5=function(){this.visible=VeC(this);this.Yj(this.visible);this.icon&&Hqx(this,this.icon);this.T.logVisibility(this.element,this.visible&&this.W)};
g.A.xP=function(){return this.T.getVideoData().videoId};
g.A.onClick=function(){this.T.logClick(this.element);var F=this.T.C(),k=this.xP();F.t4?PCY(this):IyC(this,k)};
g.A.onReset=function(){this.isRequestPending=this.Y=!1;this.G4(2);this.X5()};
g.A.G4=function(F,k){var z=this.T.C();Hqx(this,F);k?this.update({title:k,image:null}):z.userDisplayName?(F={USER_NAME:z.userDisplayName},this.update({title:this.Y?g.rG("Added as $USER_NAME",F):g.rG("Watch later as $USER_NAME",F),image:ze(z)})):this.update({title:"Watch later",image:null});this.T.Ei()};
g.A.fN=function(F){g.Y.prototype.fN.call(this,F);this.T.logVisibility(this.element,this.visible&&F)};g.T(g.th,g.bp);g.A=g.th.prototype;
g.A.init=function(){var F=this;this.N5=new g.R7(this.api);this.hT=new Fi(this.api);this.Ro=new g.Y({X:"div",J:"ytp-chrome-top"});this.tooltip=new g.Uk(this.api,this);this.channelAvatar=new DbR(this.api);this.title=new BX(this.api);this.Ez=new g.mi({X:"div",J:"ytp-chrome-top-buttons"});this.Wc=new KBa(this.api,this.Ro.element);this.pp=this.api.C().controlsType==="1"?new Tj5(this.api,this,this.Oh):null;this.contextMenu=new NZn(this.api,this.N5);this.UX=new g.Y({X:"div",D:{tabindex:"0"}});this.L5=new g.Y({X:"div",
D:{tabindex:"0"}});var k=this.api.Ka(),z=this.api.C(),x=this.api.getVideoData();this.xr&&(g.C6(this.api.getRootNode(),"ytp-embed"),g.C6(this.api.getRootNode(),"ytp-embed-playlist"),this.m5&&(g.C6(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.C6(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.cG=60,this.gW=89);this.api.C().U&&g.C6(this.api.getRootNode(),"ytp-embed-pfl");this.api.C().L&&(g.C6(this.api.getRootNode(),"ytp-mobile"),this.api.C().B&&g.C6(this.api.getRootNode(),"ytp-embed-mobile"));
x&&x.videoId&&(this.Hl=x&&x.getEmbeddedPlayerResponse());g.b(this,this.N5);g.Hv(this.api,this.N5.element,4);g.b(this,this.hT);g.Hv(this.api,this.hT.element,4);x=new g.Y({X:"div",J:"ytp-gradient-top"});g.b(this,x);g.Hv(this.api,x.element,1);this.Xx=new g.Cv(x,250,!0,100);g.b(this,this.Xx);g.b(this,this.Ro);g.Hv(this.api,this.Ro.element,1);this.Ev=new g.Cv(this.Ro,250,!0,100);g.b(this,this.Ev);g.b(this,this.tooltip);g.Hv(this.api,this.tooltip.element,4);var D=new DS9(this.api);g.b(this,D);g.Hv(this.api,
D.element,5);D.subscribe("show",function(E){F.AL(D,E)});
this.Sn.push(D);this.lz=new EU(this.api,D);g.b(this,this.lz);!this.xr&&this.lz.T4(this.Ro.element);g.b(this,this.channelAvatar);this.channelAvatar.T4(this.Ro.element);g.b(this,this.title);this.title.T4(this.Ro.element);this.xr&&(x=new tqk(this.api),g.b(this,x),x.T4(this.Ro.element));g.b(this,this.Ez);this.Ez.T4(this.Ro.element);var e=new NJn(this.api,this);g.b(this,e);g.Hv(this.api,e.element,5);e.subscribe("show",function(E){F.AL(e,E)});
this.Sn.push(e);this.searchButton=new Nw(this.api);g.b(this,this.searchButton);this.searchButton.T4(this.Ez.element);this.dV=new OqD(this.api);g.b(this,this.dV);this.dV.T4(this.Ez.element);this.shareButton=new g.u2(this.api,this,e);g.b(this,this.shareButton);this.shareButton.T4(this.Ez.element);this.copyLinkButton=new Wm(this.api,this);g.b(this,this.copyLinkButton);this.copyLinkButton.T4(this.Ez.element);this.xr&&this.lz.T4(this.Ez.element);g.b(this,this.Wc);this.Wc.T4(this.Ez.element);z.sE&&(x=new l2(this.api),
g.b(this,x),g.Hv(this.api,x.element,4));z.U||(x=new WBR(this.api,this.Wc),g.b(this,x),x.T4(this.Ez.element));this.n$=new oL5(this.api);g.b(this,this.n$);g.Hv(this.api,this.n$.element,5);this.n$.subscribe("show",function(){F.AL(F.n$,F.n$.ud())});
this.Sn.push(this.n$);this.overflowButton=new g.pa(this.api,this.n$);g.b(this,this.overflowButton);this.overflowButton.T4(this.Ez.element);this.pp&&g.b(this,this.pp);z.controlsType==="3"&&(x=new qw(this.api),g.b(this,x),g.Hv(this.api,x.element,9));g.b(this,this.contextMenu);this.contextMenu.subscribe("show",this.q2,this);this.UX.listen("focus",this.yG,this);g.b(this,this.UX);this.L5.listen("focus",this.zT,this);g.b(this,this.L5);var C;(this.Yb=z.T1?null:new W1n(this.api,k,this.contextMenu,this.Oh,
this.N5,this.hT,function(){return F.Ec()},(C=this.pp)==null?void 0:C.progressBar))&&g.b(this,this.Yb);
this.xr||(this.ma=new QXn(this.api),g.b(this,this.ma),g.Hv(this.api,this.ma.element,4),this.Ir=new lBI(this.api),g.b(this,this.Ir),g.Hv(this.api,this.Ir.element,4));this.kc=new roI(this.api);g.b(this,this.kc);g.Hv(this.api,this.kc.element,4);if(this.xr){var p=new bQ9(this.api,this.api.C().J4);g.b(this,p);g.Hv(this.api,p.element,5);p.subscribe("show",function(E){F.AL(p,E)});
k=new R3p(this.api,p);g.b(this,k);g.Hv(this.api,k.element,4)}this.bA.push(this.N5.element);this.N(this.api,"fullscreentoggled",this.GH);this.N(this.api,"offlineslatestatechange",function(){F.api.ZH()&&Zq(F.Oh,128,!1)});
this.N(this.api,"cardstatechange",function(){F.A3()});
this.N(this.api,"resize",this.clh);this.N(this.api,"videoplayerreset",this.onReset);this.N(this.api,"showpromotooltip",this.ZJJ);g.bp.prototype.init.call(this)};
g.A.aI=function(){return this.tooltip};
g.A.LR=function(){return this.pp};
g.A.AL=function(F,k){k?this.VE=F:this.VE=null;this.A3()};
g.A.Ce=function(F,k){if(k)this.s7.push(F);else for(k=this.s7.length;k>=0;k--)if(this.s7[k]===F){this.s7.splice(k,1);break}Zq(this.Oh,64,this.s7.length>0)};
g.A.Pq=function(){this.api.gO()&&this.api.Tz();return!!this.VE||ay6(this)||g.bp.prototype.Pq.call(this)};
g.A.DP=zp(3);g.A.XF=zp(7);g.A.mL=zp(10);
g.A.A3=function(){var F=!this.Pq(),k=F&&this.api.gO()&&!g.n(this.api.getPlayerStateObject(),2)&&!g.xp(this.api.getVideoData())&&!this.api.C().U&&!this.api.isEmbedsShortsMode(),z=this.xr&&g.Pv(this.api)&&g.n(this.api.getPlayerStateObject(),128);F||z?(this.Ev.show(),this.Xx.show()):(this.Ev.hide(),this.Xx.hide(),this.api.fd(this.Ro.element));k?this.Wc.NR():this.Wc.bL();this.pp&&lyY(this.pp,this.IJ||!F);this.api.V("web_player_hide_overflow_button_if_empty_menu")&&SMn(this);g.bp.prototype.A3.call(this)};
g.A.Bv=function(F,k,z,x,D){F.style.left="";F.style.top="";F.style.bottom="";var e=g.rQ(F),C=x||this.pp&&g.N_(this.pp.T$(),k),p=x=null;z!=null&&C||(x=g.rQ(k),p=g.h9(k,this.api.getRootNode()),z==null&&(z=p.x+x.width/2));z-=e.width/2;C?(k=this.pp,x=QJC(k),p=hZI(k),C=this.api.Ka().getPlayerSize().height,z=g.l3(z,x,x+p-e.width),e=C-sJx(k)-e.height):g.N_(this.Ro.element,k)?(k=this.api.Ka().getPlayerSize().width,z=g.l3(z,12,k-e.width-12),e=this.DT()?this.gW:this.cG,this.api.C().playerStyle==="gvn"&&(e+=
20),this.xr&&(e-=this.DT()?26:18)):(k=this.api.Ka().getPlayerSize(),z=g.l3(z,12,k.width-e.width-12),e=p.y>(k.height-x.height)/2?p.y-e.height-12:p.y+x.height+12);F.style.top=e+(D||0)+"px";F.style.left=z+"px"};
g.A.Fy=function(F){F&&(this.api.fd(this.Ro.element),this.pp&&this.api.fd(this.pp.T$()));this.m5&&(g.XF(this.contextMenu.element,"ytp-autohide",F),g.XF(this.contextMenu.element,"ytp-autohide-active",!0));g.bp.prototype.Fy.call(this,F)};
g.A.H_=function(){g.bp.prototype.H_.call(this);this.m5&&(g.XF(this.contextMenu.element,"ytp-autohide-active",!1),this.m5&&(this.contextMenu.hide(),this.n$&&this.n$.hide()))};
g.A.CF=function(F,k){var z=this.api.Ka().getPlayerSize();z=new g.eU(0,0,z.width,z.height);if(F||this.Oh.L&&!this.Pq()){if(this.api.C().NZ||k)F=this.DT()?this.gW:this.cG,z.top+=F,z.height-=F;this.pp&&(z.height-=sJx(this.pp))}return z};
g.A.GH=function(F){var k=this.api.getRootNode();F?k.parentElement?(k.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.C().externalFullscreen||(k.parentElement.insertBefore(this.UX.element,k),k.parentElement.insertBefore(this.L5.element,k.nextSibling))):g.JV(Error("Player not in DOM.")):(k.setAttribute("aria-label","YouTube Video Player"),this.UX.detach(),this.L5.detach());this.OH();this.No()};
g.A.DT=function(){var F=this.api.C();return this.api.isFullscreen()&&!F.B||!1};
g.A.showControls=function(F){this.RW=!F;this.A3()};
g.A.OH=function(){var F=this.DT();this.tooltip.scale=F?1.5:1;this.contextMenu&&g.XF(this.contextMenu.element,"ytp-big-mode",F);this.A3();this.api.V("web_player_hide_overflow_button_if_empty_menu")||SMn(this);this.No();var k=this.api.isEmbedsShortsMode();k&&F?(F=(this.api.Ka().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Xr(this.Ro.element,"padding-left",F+"px"),g.Xr(this.Ro.element,"padding-right",F+"px")):k&&(g.Xr(this.Ro.element,"padding-left",""),g.Xr(this.Ro.element,"padding-right",
""));g.bp.prototype.OH.call(this)};
g.A.w6=function(){if(ay6(this)&&!g.Pv(this.api))return!1;var F=this.api.getVideoData();return!g.tJ(this.api.C())||this.api.getPresentingPlayerType()===2||!this.Hl||((F=this.Hl||F.Hl)?(F=F.embedPreview)?(F=F.thumbnailPreviewRenderer,F=F.videoDetails&&g.J(F.videoDetails,n8Y)||null):F=null:F=null,F&&F.collapsedRenderer&&F.expandedRenderer)?g.bp.prototype.w6.call(this):!1};
g.A.No=function(){g.bp.prototype.No.call(this);this.api.logVisibility(this.title.element,!!this.yX);this.lz&&this.lz.fN(!!this.yX);this.channelAvatar.fN(!!this.yX);this.overflowButton&&this.overflowButton.fN(this.hH()&&!!this.yX);this.shareButton&&this.shareButton.fN(!this.hH()&&!!this.yX);this.dV&&this.dV.fN(!this.hH()&&!!this.yX);this.searchButton&&this.searchButton.fN(!this.hH()&&!!this.yX);this.copyLinkButton&&this.copyLinkButton.fN(!this.hH()&&!!this.yX);if(!this.yX){this.api.fd(this.Ro.element);
for(var F=0;F<this.Sn.length;F++){var k=this.Sn[F];k.ud()&&k.bL()}}};
g.A.FI=function(F){this.pp&&lyY(this.pp,this.Pq());this.A3();g.bp.prototype.FI.call(this,F)};
g.A.handleGlobalKeyDown=function(F,k,z,x,D,e,C,p){return this.Yb?this.Yb.handleGlobalKeyDown(F,k,z,x,D,e,C,p):!1};
g.A.handleGlobalKeyUp=function(F,k,z,x,D,e,C){return this.Yb?this.Yb.handleGlobalKeyUp(F,k,z,x,D,e,C):!1};
g.A.Ec=function(){if(this.contextMenu.Q2)return this.contextMenu.bL(),!0;if(this.s7.length)return this.s7[this.s7.length-1].bL(),!0;if(this.VE)return this.VE.bL(),!0;this.pp&&this.api.fd(this.pp.T$());this.Ez&&this.api.fd(this.Ez.element);return g.bp.prototype.Ec.call(this)};
g.A.xe=function(F,k){this.W_=k;this.Ce(F,k);this.q2()};
g.A.q2=function(){var F=this.W_||this.contextMenu.ud();this.Up!==F&&(this.Up=F,this.api.ZQ("onAutonavPauseRequest",this.Up))};
g.A.yG=function(){bqH(this,this.api.getRootNode(),!0).focus()};
g.A.zT=function(){bqH(this,this.api.getRootNode(),!1).focus()};
g.A.sS=function(){return this.pp&&this.pp.U};
g.A.wq=function(){this.Oh.wq()};
g.A.bj=function(){this.N5.hide()};
g.A.O_=function(F){this.N5.O_(!F.isOrWillBePlaying())};
g.A.l2=function(F,k,z,x){this.hT.l2(F,k,z,x)};
g.A.renderChapterSeekingAnimation=function(F,k,z){oF(this.hT,F,k,z)};
g.A.clh=function(){dRR(this,!0)};
g.A.onReset=function(){SMn(this)};
g.A.ZJJ=function(F){dRR(this,!1,F)};
g.A.ov=function(){return this.contextMenu};
g.A.Qx=function(F,k){var z;if((z=this.pp)!=null){var x=Number(F.element.getAttribute("data-priority"))||0,D=0,e=z.L.element;k&&z.T.V("delhi_modern_web_player")&&(e=z.L.EK(hh[k]));k=g.l(e.children);for(z=k.next();!(z.done||x<(Number(z.value.getAttribute("data-priority"))||0));z=k.next())D++;F.T4(e,D)}};
g.A.ih=function(){var F,k=(F=this.pp)==null?void 0:F.progressBar;if(k){var z;((z=k.L)==null?0:z.isEnabled)&&k.ih()}};g.T(g.Zl,g.XP);g.Zl.prototype.zy=function(){return!1};
g.Zl.prototype.create=function(){var F=this.player.C();g.g8(F)&&F.L||F.disableOrganicUi?this.chrome=new g.bp(this.player):this.chrome=new g.th(this.player);g.b(this,this.chrome);this.chrome.init();this.player.mE("ux")};
g.Zl.prototype.N4=function(){return this.chrome};var vX=[],Iip=!1;g.T(cX,g.S);cX.prototype.G=function(){this.Y!=null&&this.app.getVideoData()!==this.Y&&gg(this.Y)&&Euk(this.app,this.Y,void 0,void 0,this.U)};
cX.prototype.S=function(){if(this.Y!=null&&this.app.getVideoData()!==this.Y&&this.L!=null&&this.j!=null&&this.W!=null&&gg(this.Y)){var F=RZx(this.L,this.j,this.W);F==null?Euk(this.app,this.Y,void 0,void 0,this.U):(this.L.UK("sgap",F),this.L.getVideoData().B&&this.L.nU(!1),this.app.C().V("html5_remove_loop_range_on_gapless_fallback")&&(v2(this.app,"gaplessshortslooprange"),this.app.setLoopRange(null)))}};
cX.prototype.B=function(F){var k=this.app.A4();if(k){var z=this.app.getCurrentTime();Math.abs(z-F.end/1E3)>5&&k.UK("glrs",{cmt:z});k.seekTo(0,{seekSource:58});k.UK("glrre",{cmt:z})}};
cX.prototype.h4=function(){this.Y=null;g.S.prototype.h4.call(this)};g.T(g.PX,iN);g.A=g.PX.prototype;g.A.isView=function(){return!0};
g.A.aT=function(){var F=this.mediaElement.getCurrentTime();if(F<this.start)try{var k=this.mediaElement.Ln(),z=uK(k,F);return!(this.start<z)}catch(x){}return!1};
g.A.lh=function(){return T$(this.mediaElement.lh(),this.start,this.end)};
g.A.Ln=function(){return T$(this.mediaElement.Ln(),this.start,this.end)};
g.A.UB=function(){return T$(this.mediaElement.UB(),this.start,this.end)};
g.A.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
g.A.setCurrentTime=function(F){this.mediaElement.setCurrentTime(F+this.start)};
g.A.getDuration=function(){return isFinite(this.end)&&!this.Y?this.end-this.start:this.mediaElement.getDuration()-this.start};
g.A.play=function(){if(this.aT()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(F){}}return this.mediaElement.play()};
g.A.rH=function(){var F=iN.prototype.rH.call(this);F.view=this.start+"-"+this.end;return F};
g.A.addEventListener=function(F,k){this.mediaElement.addEventListener(F,k)};
g.A.removeEventListener=function(F,k){this.mediaElement.removeEventListener(F,k)};
g.A.YW=function(){return this.mediaElement.YW()};
g.A.activate=function(F){this.mediaElement.activate(F)};
g.A.MV=function(){return this.mediaElement.MV()};
g.A.playVideo=function(){return this.mediaElement.playVideo()};
g.A.YU=function(){this.mediaElement.YU()};
g.A.KP=function(){this.mediaElement.KP()};
g.A.tA=function(){return this.mediaElement.tA()};
g.A.T$=function(){return this.mediaElement.T$()};
g.A.TY=function(){return this.mediaElement.TY()};
g.A.Zo=function(F){this.mediaElement.Zo(F)};
g.A.gg=function(){this.mediaElement.gg()};
g.A.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.A.setPlaybackRate=function(F){return this.mediaElement.setPlaybackRate(F)};
g.A.Tf=function(){return this.mediaElement.Tf()};
g.A.setLoop=function(F){this.mediaElement.setLoop(F)};
g.A.canPlayType=function(F,k){return this.mediaElement.canPlayType(F,k)};
g.A.isPaused=function(){return this.mediaElement.isPaused()};
g.A.isSeeking=function(){return this.mediaElement.isSeeking()};
g.A.isEnded=function(){return this.mediaElement.isEnded()};
g.A.Gk=function(){return this.mediaElement.Gk()};
g.A.ZP=function(F){this.mediaElement.ZP(F)};
g.A.L3=function(){return this.mediaElement.L3()};
g.A.load=function(){this.mediaElement.load()};
g.A.pause=function(){this.mediaElement.pause()};
g.A.gp=function(){return this.mediaElement.gp()};
g.A.JF=function(){return this.mediaElement.JF()};
g.A.Cn=function(){return this.mediaElement.Cn()};
g.A.SO=function(){return this.mediaElement.SO()};
g.A.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
g.A.Pc=function(){return this.mediaElement.Pc()};
g.A.pg=function(){return this.mediaElement.pg()};
g.A.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.A.X7=function(){return this.mediaElement.X7()};
g.A.getSize=function(){return this.mediaElement.getSize()};
g.A.setSize=function(F){this.mediaElement.setSize(F)};
g.A.getVolume=function(){return this.mediaElement.getVolume()};
g.A.setVolume=function(F){this.mediaElement.setVolume(F)};
g.A.setAttribute=function(F,k){this.mediaElement.setAttribute(F,k)};
g.A.removeAttribute=function(F){this.mediaElement.removeAttribute(F)};
g.A.hasAttribute=function(F){return this.mediaElement.hasAttribute(F)};
g.A.j4=zp(66);g.A.h1=zp(68);g.A.F3=zp(70);g.A.ex=zp(72);g.A.Ke=function(){return this.mediaElement.Ke()};
g.A.Nw=function(F){this.mediaElement.Nw(F)};
g.A.bM=function(F){return this.mediaElement.bM(F)};
g.A.BK=function(){return this.mediaElement.BK()};
g.A.stopVideo=function(){this.mediaElement.stopVideo()};
g.A.QN=function(F){this.mediaElement.QN(F)};
g.A.audioTracks=function(){return this.mediaElement.audioTracks()};
g.A.bQ=function(F){this.mediaElement.bQ(F)};g.T(n16,g.S);g.A=n16.prototype;g.A.getStatus=function(){return this.status};
g.A.r8=function(){var F=this.Y.getVideoData(),k=this.L.getVideoData(),z;if((z=F.U)&&!(z=!F.Y)){z=F.Y;for(var x=!1,D=!1,e=g.l(Object.values(z.Y)),C=e.next();!C.done;C=e.next())C=C.value,C.info.audio&&C.index.isLoaded()&&(x=!0),C.info.video&&C.index.isLoaded()&&(D=!0);z.Y["0"]&&(D=!0);z=x&&D}if(z)if(this.Y.S9()){e=yok(this.policy,this.Y,this.L,this.Gy);C=MeH(this);z=C.JM;D=C.PE;x=C.pZ;C=C.Uk;if(!this.G){var p=this.L.P8()*1E3,E=this.Y.P8();E=(x-z-E)*1E3;e&&e.msg==="in-the-past"&&(E=0);F=F.isAd();this.L.SC(p,
E,F);this.G=!0}e?(k="cannot_apply"+e.msg,delete e.msg,this.iG(k,e)):this.status.status===2?kwC(this):(F=this.Y.MV())&&kh(F)&&(!Km(F)&&g.Lg()?this.iG("mse_closed"):k.Y&&hX(k.Y)&&F.L&&!F.L.nH()?this.iG("encr_upgrade"):(k=this.Y.S9(),k.isEnded()?this.iG("elem_ended"):D<0?this.iG("next_player_future"):(this.S=x,this.currentVideoDuration=x-z,this.U=B89(F,z,x,!0),this.j=B89(F,D,C,!1),F=this.L.getVideoData().clientPlaybackNonce,this.Y.UK("gaplessPrep",{cpn:F}),this.Y.k0(this.U,!1,Kkn(this),this.GD.C().V("html5_shorts_gapless_keep_pending_requests")&&
xJ(this.Y.getVideoData())),this.Y.setMediaElement(Lk5(k,z,x,!this.Y.getVideoData().isAd())),V5(this,2),kwC(this))))}else this.iG("no-elem")};
g.A.K1=function(F){var k=F===FoD(this).Ac,z=k?this.U.Y:this.U.L;k=k?this.j.Y:this.j.L;if(z.isActive&&!k.isActive){var x=this.S,D=this.GD.C().V("html5_gapless_disable_on_discontinuous_buffer")&&this.W!==0&&z.Kv().length>1;Ni(F.Kv(),x-.01)&&!D&&(V5(this,4),z.isActive=!1,z.qP=z.qP||z.isActive,(this.W===1?this.Y:this.L).UK("sbh",{}),k.isActive=!0,k.qP=k.qP||k.isActive,this.W!==0&&(this.Y.getVideoData().x4=!0));F=this.j.L;if(this.j.Y.isActive&&F.isActive&&(V5(this,5),this.W!==0)){F=this.L.xv();z=this.Y.xv();
this.Y.UK("sbs",{citag:z==null?void 0:z.itag,nitag:F==null?void 0:F.itag});this.L.UK("gitags",{pitag:z==null?void 0:z.itag,citag:F==null?void 0:F.itag});var e;(e=this.L)==null||e.FW()}}};
g.A.lZ=function(){this.Vd()&&this.iG("player-reload-after-handoff")};
g.A.iG=function(F,k){k=k===void 0?{}:k;if(!this.z4()&&this.status.status!==6){var z=this.status.status>=4&&F!=="player-reload-after-handoff";this.status={status:Infinity,error:F};if(this.Y&&this.L){var x=this.L.getVideoData().clientPlaybackNonce;this.Y.He(new O3("dai.transitionfailure",Object.assign(k,{cpn:x,transitionTimeMs:this.Gy,msg:F})));this.Y.nU(z)}this.IV.reject(F);this.dispose()}};
g.A.Vd=function(){return this.status.status>=4&&this.status.status<6};
g.A.h4=function(){Wkk(this);this.Y.unsubscribe("newelementrequired",this.lZ,this);if(this.U){var F=this.U.L;this.U.Y.U3.unsubscribe("updateend",this.K1,this);F.U3.unsubscribe("updateend",this.K1,this)}g.S.prototype.h4.call(this)};
g.A.m7=function(F){g.hI(F,128)&&this.iG("player-error-event")};g.T(Ig,g.S);Ig.prototype.clearQueue=function(F,k){F=F===void 0?!1:F;k=k===void 0?!1:k;this.j&&this.j.reject("Queue cleared");this.app.C().V("html5_gapless_fallback_on_qoe_restart_v2")||k&&this.L&&this.L.nU(!1);HX(this,F)};
Ig.prototype.gi=function(){return!this.Y};
Ig.prototype.Vd=function(){var F;return((F=this.U)==null?void 0:F.Vd())||!1};
Ig.prototype.h4=function(){HX(this);g.S.prototype.h4.call(this)};g.T(DV9,g.uG);g.A=DV9.prototype;g.A.getVisibilityState=function(F,k,z,x,D,e,C,p){return F?4:ztD()?3:k?2:z?1:x?5:D?7:e?8:C?9:p?10:0};
g.A.F9=function(F){this.fullscreen!==F&&(this.fullscreen=F,this.FA())};
g.A.setMinimized=function(F){this.L!==F&&(this.L=F,this.FA())};
g.A.setInline=function(F){this.inline!==F&&(this.inline=F,this.FA())};
g.A.bv=function(F){this.pictureInPicture!==F&&(this.pictureInPicture=F,this.FA())};
g.A.setSqueezeback=function(F){this.U!==F&&(this.U=F,this.FA())};
g.A.Y3=function(F){this.j!==F&&(this.j=F,this.FA())};
g.A.Pc=function(){return this.Y};
g.A.pu=function(){return this.fullscreen!==0};
g.A.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4};
g.A.EX=function(){return this.fullscreen};
g.A.isMinimized=function(){return this.L};
g.A.isInline=function(){return this.inline};
g.A.isBackground=function(){return ztD()};
g.A.NB=function(){return this.pictureInPicture};
g.A.x8=function(){return!1};
g.A.Hd=function(){return this.U};
g.A.MX=function(){return this.j};
g.A.FA=function(){this.publish("visibilitychange");var F=this.getVisibilityState(this.Pc(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.NB(),this.x8(),this.Hd(),this.MX());F!==this.S&&this.publish("visibilitystatechange");this.S=F};
g.A.h4=function(){D79(this.W);g.uG.prototype.h4.call(this)};g.T(g.ag,g.S);g.A=g.ag.prototype;g.A.h4=function(){this.videoData=this.playerState=null;g.S.prototype.h4.call(this)};
g.A.addCueRange=function(){};
g.A.L0=function(){};
g.A.S4=function(){};
g.A.mC=function(){return!1};
g.A.OZ=function(){return!1};
g.A.A7=function(){return!1};
g.A.BG=function(){};
g.A.Pr=function(){};
g.A.dY=function(){};
g.A.Tn=function(){return[]};
g.A.Bs=function(){};
g.A.SN=function(){return""};
g.A.getAudioTrack=function(){return this.getVideoData().fb};
g.A.uX=function(){return null};
g.A.getAvailableAudioTracks=function(){return[]};
g.A.hI=function(){return[]};
g.A.j3=function(){return[]};
g.A.Xb=function(){return[]};
g.A.pE=function(){};
g.A.P8=function(){return 0};
g.A.lI=function(){return""};
g.A.getCurrentTime=function(){return 0};
g.A.CE=function(){};
g.A.xv=function(){};
g.A.rH=function(){return{}};
g.A.getDuration=function(){return 0};
g.A.qX=function(){return 0};
g.A.B7=function(){return 0};
g.A.b_=function(){return!1};
g.A.BO=function(){return 0};
g.A.Gz=function(){return 0};
g.A.X8=zp(15);g.A.uJ=function(){return 0};
g.A.Tf=function(){return!1};
g.A.Sg=function(){return 0};
g.A.S9=function(){return null};
g.A.MV=function(){return null};
g.A.oy=function(){return 0};
g.A.Wf=function(){return 0};
g.A.eO=function(){return g.O(function(F){g.Tp(F)})};
g.A.JS=zp(21);g.A.getPlaybackQuality=function(){return"auto"};
g.A.getPlaybackRate=function(){return 1};
g.A.getPlayerState=function(){this.playerState||(this.playerState=new g.CR);return this.playerState};
g.A.getPlayerType=function(){return 0};
g.A.getPlaylistSequenceForTime=function(){return null};
g.A.y_=function(){return function(){}};
g.A.eg=function(){return""};
g.A.getPreferredQuality=function(){return"unknown"};
g.A.TC=function(){};
g.A.getProximaLatencyPreference=function(){return 0};
g.A.B4=function(){return y6};
g.A.SU=function(){return null};
g.A.getStoryboardFormat=function(){return null};
g.A.getStreamTimeOffset=function(){return 0};
g.A.Ao=function(){return 0};
g.A.Hj=function(){return 0};
g.A.Pd=function(){return{t7:[],tL:[],currentTime:0,wE:"",droppedVideoFrames:0,isGapless:!1,gi:!0,Bd:0,tq:0,El:0,Xg:0,Tt:0,Wo:[],Lr:[],aZ:null,playerState:this.getPlayerState(),oZ:null,P3:"",totalVideoFrames:0}};
g.A.getUserAudio51Preference=function(){return 0};
g.A.getUserPlaybackQualityPreference=function(){return""};
g.A.getVideoData=function(){this.videoData||(this.videoData=new g.Rt(this.YG),g.b(this,this.videoData));return this.videoData};
g.A.cD=function(){return null};
g.A.xP=function(){};
g.A.getVideoLoadedFraction=function(){return 0};
g.A.gJ=function(){};
g.A.handleError=function(){};
g.A.nU=function(){};
g.A.KH=function(){};
g.A.mK=function(){return!1};
g.A.fu=zp(46);g.A.wO=function(){return!1};
g.A.hasSupportedAudio51Tracks=function(){return!1};
g.A.zf=function(){return!1};
g.A.Pc=function(){return!1};
g.A.isAtLiveHead=function(){return!1};
g.A.Br=function(){return!0};
g.A.isGapless=function(){return!1};
g.A.isHdr=function(){return!1};
g.A.It=function(){return!1};
g.A.DH=function(){return!1};
g.A.JP=function(){return!1};
g.A.isProximaLatencyEligible=function(){return!1};
g.A.gi=function(){return!0};
g.A.AP=function(){return!1};
g.A.rz=function(){return!1};
g.A.Gt=function(){};
g.A.AU=function(){};
g.A.X2=function(){};
g.A.yY=function(){};
g.A.FW=function(){};
g.A.O7=function(){};
g.A.nh=function(){};
g.A.qF=function(){};
g.A.WP=function(){};
g.A.Qa=zp(56);g.A.jj=zp(27);g.A.Xy=function(){};
g.A.DC=function(){};
g.A.pauseVideo=function(){};
g.A.playVideo=function(){return g.O(function(F){return F.return()})};
g.A.Sw=function(){};
g.A.tH=zp(33);g.A.vc=zp(39);g.A.eS=function(){};
g.A.UK=function(){};
g.A.PO=function(){};
g.A.Tw=function(){};
g.A.SC=function(){};
g.A.He=function(){};
g.A.gs=function(){};
g.A.XH=function(){};
g.A.TV=function(){};
g.A.W$=function(){};
g.A.wk=function(){};
g.A.Su=function(){};
g.A.jh=function(){};
g.A.qe=function(){};
g.A.removeCueRange=function(){};
g.A.c$=function(){};
g.A.H7=function(){return[]};
g.A.ew=function(){};
g.A.VL=function(){};
g.A.AX=function(){};
g.A.Dl=function(){};
g.A.GV=function(){};
g.A.a5=function(){};
g.A.VS=function(){};
g.A.seekTo=function(){};
g.A.sendAbandonmentPing=function(){};
g.A.sendVideoStatsEngageEvent=function(){};
g.A.WW=function(){};
g.A.oa=function(){};
g.A.setLoop=function(){};
g.A.Ml=function(){};
g.A.setMediaElement=function(){};
g.A.k0=function(){};
g.A.setPlaybackRate=function(){};
g.A.qk=function(){};
g.A.nB=function(){};
g.A.mE=function(){};
g.A.setProximaLatencyPreference=function(){};
g.A.KQ=function(){};
g.A.r_=function(){};
g.A.xn=function(){};
g.A.LI=function(){};
g.A.Do=function(){};
g.A.setUserAudio51Preference=function(){};
g.A.Zu=function(){};
g.A.XZ=function(){return!1};
g.A.pg=function(){};
g.A.xF=function(){return!1};
g.A.cn=function(){};
g.A.h2=function(){};
g.A.t2=function(){};
g.A.stopVideo=function(){};
g.A.subscribe=function(){return NaN};
g.A.Ij=function(){};
g.A.togglePictureInPicture=function(){};
g.A.J3=function(){return 0};
g.A.unsubscribe=function(){return!1};
g.A.M_=function(){};
g.A.o4=function(){return!1};
g.A.Rj=function(){};
g.A.HC=function(){};
g.A.Vs=function(){};
g.A.bW=function(){};g.T(g.Sh,g.S);g.A=g.Sh.prototype;g.A.Pj=function(){return this.W};
g.A.BL=function(F){this.W=F};
g.A.A4=function(){return this.L};
g.A.Tl=function(F){this.L=F};
g.A.Cl=zp(52);g.A.oM=zp(54);g.A.CN=function(F){return F?F===1?this.W:this.L.getVideoData().enableServerStitchedDai&&F===2?this.L.getVideoData().Vb?this.U[2]||this.L:this.L:g.Mk(this.L.getVideoData())&&F===2?this.U[2]||this.L:this.U[F]||null:this.L};
g.A.h4=function(){for(var F=g.l(Object.values(this.U)),k=F.next();!k.done;k=F.next())k.value.dispose();this.Y.dispose();g.S.prototype.h4.call(this)};g.T(bf,g.S);g.A=bf.prototype;g.A.enqueue=function(F,k){if(F.j!==this)return!1;if(this.segments.length===0||(k===void 0?0:k))this.Y=F;this.segments.push(F);return!0};
g.A.lc=function(){return this.G$||0};
g.A.wi=function(){return this.j||0};
g.A.removeAll=function(){for(;this.segments.length;){var F=void 0;(F=this.segments.pop())==null||F.dispose()}this.L.clear();this.U=void 0};
g.A.h4=function(){this.removeAll();g.S.prototype.h4.call(this)};
g.T(Nrx,g.S);g.A=Nrx.prototype;g.A.lc=function(){return this.G$};
g.A.wi=function(){return this.U};
g.A.getType=function(){return this.type};
g.A.getVideoData=function(){return this.videoData};
g.A.sM=function(F){ry(F);this.videoData=F};
g.A.h4=function(){uy9(this);g.S.prototype.h4.call(this)};g.Rg.prototype.QR=function(F,k){if(k===1)return this.Y.get(F);if(k===2)return this.U.get(F);if(k===3)return this.L.get(F)};
g.Rg.prototype.pB=zp(64);g.Rg.prototype.Q$=function(F,k,z,x){z={jl:x,dX:z};k?this.U.set(F,z):this.Y.set(F,z)};
g.Rg.prototype.clearAll=function(){this.Y.clear();this.U.clear();this.L.clear()};
g.T(g.gb,g.S);g.A=g.gb.prototype;g.A.bH=function(F,k,z){return new g.ps(F,k,{id:z,namespace:"serverstitchedcuerange",priority:9})};
g.A.vU=function(F){var k=F.DW?F.DW*1E3:F.G$,z=this.L.get(F.cpn);z&&this.playback.removeCueRange(z);this.L.delete(F.cpn);this.j.delete(F.cpn);z=this.W.indexOf(F);z>=0&&this.W.splice(z,1);z=[];for(var x=g.l(this.S),D=x.next();!D.done;D=x.next())D=D.value,D.end<=k?this.playback.removeCueRange(D):z.push(D);this.S=z;OOk(this,0,k+F.durationMs)};
g.A.onCueRangeEnter=function(F){this.J4.push(F);var k=F.getId();this.LN({oncueEnter:1,cpn:k,start:F.start,end:F.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.P8()||0).toFixed(3)});var z=k==="";this.NJ.add(F.L);var x=this.j.get(k);if(z){var D;if(this.playback.getVideoData().w3()&&((D=this.Y)==null?0:D.Vv)&&this.U){this.Iz=0;this.Y=void 0;this.t4&&(this.events.er(this.t4),this.t4=null);this.U="";this.RU=!0;return}}else if(this.LN({enterAdCueRange:1}),this.playback.getVideoData().w3()&&
(x==null?0:x.qM))return;if(this.RU&&!this.Y)this.RU=!1,!z&&x&&(z=this.playback.getCurrentTime(),Ko(this,{Rb:F,isAd:!0,ZK:!0,Bc:z,adCpn:k},{isAd:!1,ZK:!1,Bc:z}),this.tp=x.cpn,Lo(this,x),F=MI(this,"midab",x),this.LN(F),this.Iz=1),this.B=!1;else if(this.Y){if(this.Y.ZK)this.LN({a_pair_of_same_transition_occurs_enter:1,acpn:this.Y.adCpn,transitionTime:this.Y.Bc,cpn:k,currentTime:this.playback.getCurrentTime()}),x=this.playback.getCurrentTime(),F={Rb:F,isAd:!z,ZK:!0,Bc:x,adCpn:k},k={Rb:this.Y.Rb,isAd:this.Y.isAd,
ZK:!1,Bc:x,adCpn:this.Y.adCpn},this.Y.Rb&&this.NJ.delete(this.Y.Rb.L),Ko(this,F,k);else{if(this.Y.Rb===F){this.LN({same_cue_range_pair_enter:1,acpn:this.Y.adCpn,transitionTime:this.Y.Bc,cpn:k,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:F.start,cueRangeEndTime:F.end});this.Y=void 0;return}if(this.Y.adCpn===k){k&&this.LN({dchtsc:k});this.Y=void 0;return}F={Rb:F,isAd:!z,ZK:!0,Bc:this.playback.getCurrentTime(),adCpn:k};Ko(this,F,this.Y)}this.Y=void 0;this.B=!1}else this.Y={Rb:F,isAd:!z,
ZK:!0,Bc:this.playback.getCurrentTime(),adCpn:k}};
g.A.onCueRangeExit=function(F){var k=F.getId();this.LN({oncueExit:1,cpn:k,start:F.start,end:F.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.P8()||0).toFixed(3)});var z=k==="",x=this.j.get(k);if(this.playback.getVideoData().w3()&&!z&&x){if(x.qM)return;x.qM=!0;this.K.clear();if(this.YG.V("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.mC()){var D=x.G$;this.playback.qe(D/1E3,(D+x.durationMs)/1E3)}else this.playback.UK("lifa",{remove:0})}if(this.NJ.has(F.L))if(this.NJ.delete(F.L),
this.J4=this.J4.filter(function(e){return e!==F}),this.RU&&(this.B=this.RU=!1,this.LN({cref:1})),this.Y){if(this.Y.ZK){if(this.Y.Rb===F){this.LN({same_cue_range_pair_exit:1,
acpn:this.Y.adCpn,transitionTime:this.Y.Bc,cpn:k,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:F.start,cueRangeEndTime:F.end});this.Y=void 0;return}if(this.Y.adCpn===k){k&&this.LN({dchtsc:k});this.Y=void 0;return}k={Rb:F,isAd:!z,ZK:!1,Bc:this.playback.getCurrentTime(),adCpn:k};Ko(this,this.Y,k)}else if(this.LN({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.Y.adCpn,transitionTime:this.Y.Bc,upcomingCpn:k,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}),
this.Y.adCpn===k)return;this.Y=void 0;this.B=!1}else this.Y={Rb:F,isAd:!z,ZK:!1,Bc:this.playback.getCurrentTime(),adCpn:k};else this.LN({ignore_single_exit:1})};
g.A.F8=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,G$:0,playerType:1,h5:0,videoData:this.playback.getVideoData(),errorCount:0}};
g.A.On=function(){if(this.uf)return!1;var F=void 0;this.tp&&(F=this.j.get(this.tp));return this.playback.getVideoData().w3()?!!F&&!F.qM:!!F};
g.A.seekTo=function(F,k,z,x){F=F===void 0?0:F;k=k===void 0?{}:k;z=z===void 0?!1:z;x=x===void 0?null:x;if(this.playback.getVideoData().w3()&&F<=this.mp/1E3)this.playback.pauseVideo(),this.mp=0,this.B=!0,this.playback.eO(),this.playback.seekTo(F),this.playback.playVideo();else if(this.B=!0,z)mVn(this,F,k);else{z=this.app.A4();var D=z===this.u$?this.Xm:null;FO(this,!1);this.uL=F;this.RS=k;x!=null&&this.qD.start(x);z&&(this.Xm=D||z.getPlayerState(),z.t2(k),this.u$=z)}};
g.A.h4=function(){FO(this,!1);GwH(this);UV5(this);g.S.prototype.h4.call(this)};
g.A.qa=function(F){this.We=F;this.LN({swebm:F})};
g.A.HN=function(F,k,z){if(z&&k){var x=this.K.get(F);if(x){x.locations||(x.locations=new Map);var D=Number(k.split(";")[0]);z=new g.ZN(z);this.LN({hdlredir:1,itag:k,seg:F,hostport:cO(z)});x.locations.set(D,z)}}};
g.A.CH=function(F,k,z,x,D,e){var C=x===3,p=ZOM(this,F,k,x,z,e);if(!p){oE(this,k,C);var E=g.tVa(this,k)?"undec":"ncp";this.LN({gvprp:E,mt:F,seg:k,tt:x,itag:z,ce:e});return null}C||this.K.set(k,p);e=p.zO;var X;x=((X=this.QR(k-1,x,D))==null?void 0:X.jl)||"";x===""&&this.LN({eds:1});X=cpk(this,p.ssdaiAdsConfig);D=this.playback.getVideoData();var q;C=((q=D.L)==null?void 0:q.containerType)||0;q=D.uq[C];p=p.lV&&k>=p.lV?p.lV:void 0;q={YM:e?ISY(this,e):[],OU:X,jl:x,Z0:p,wP:Ag(q.split(";")[0]),BH:q.split(";")[1]||
""};p={ea:q};this.dH&&(F={gvprpro:"v",sq:k,mt:F.toFixed(3),itag:z,acpns:((E=q.YM)==null?void 0:E.join("_"))||"none",abid:e},this.LN(F));return p};
g.A.YH=function(F){a:{if(!this.uf){var k=vqk(this,F);if(!(this.playback.getVideoData().w3()&&(k==null?0:k.qM)))break a}k=void 0}var z=k;if(!z)return this.LN({gvprp:"ncp",mt:F}),null;k=z.zO;var x=cpk(this,z.ssdaiAdsConfig);z=z.lV&&z.PV&&F>=z.PV?z.lV:void 0;var D=this.playback.getVideoData(),e,C=((e=D.L)==null?void 0:e.containerType)||0;e=D.uq[C];e={YM:k?ISY(this,k):[],OU:x,Z0:z,wP:Ag(e.split(";")[0]),BH:e.split(";")[1]||""};var p;F={gvprpro:"v",mt:F.toFixed(3),acpns:((p=e.YM)==null?void 0:p.join("_"))||
"none",abid:k};this.LN(F);return e};
g.A.kM=function(F,k,z,x,D,e){var C=Number(z.split(";")[0]),p=x===3;F=ZOM(this,F,k,x,z,e);this.LN({gdu:1,seg:k,itag:C,pb:""+!!F});if(!F)return oE(this,k,p),null;F.locations||(F.locations=new Map);if(!F.locations.has(C)){var E,X;e=(E=F.videoData.getPlayerResponse())==null?void 0:(X=E.streamingData)==null?void 0:X.adaptiveFormats;if(!e)return this.LN({gdu:"noadpfmts",seg:k,itag:C}),oE(this,k,p),null;E=e.find(function(u){return u.itag===C});
if(!E||!E.url){var q=F.videoData.videoId;F=[];var N=g.l(e);for(x=N.next();!x.done;x=N.next())F.push(x.value.itag);this.LN({gdu:"nofmt",seg:k,vid:q,itag:C,fullitag:z,itags:F.join(",")});oE(this,k,p);return null}F.locations.set(C,new g.ZN(E.url,!0))}e=F.locations.get(C);if(!e)return this.LN({gdu:"nourl",seg:k,itag:C}),oE(this,k,p),null;e=new hv(e);this.We&&(e.get("dvc")?this.LN({dvc:e.get("dvc")||""}):e.set("dvc","webm"));(x=(N=this.QR(k-1,x,D))==null?void 0:N.jl)&&e.set("daistate",x);F.lV&&k>=F.lV&&
e.set("skipsq",""+F.lV);(N=this.playback.getVideoData().clientPlaybackNonce)&&e.set("cpn",N);N=[];F.zO&&(N=ISY(this,F.zO),N.length>0&&e.set("acpns",N.join(",")));p||this.K.set(k,F);p=null;p=e.get("aids");x=e.q5();(x==null?void 0:x.length)>2048&&this.LN({urltoolong:1,sq:k,itag:C,len:x.length});this.dH&&(x&&(e=F.cpn,D=F.zO,SbM(this,e,D),D&&!this.ZR.has(D)&&(e=HOI(this,e,D),E=aSa(this,D),this.LN({iofa:e}),this.LN({noawnzd:E-e}),this.LN({acpns:N.join("."),aids:(q=p)==null?void 0:q.replace(/,/g,".")}),
this.ZR.add(D))),this.LN({gdu:"v",seg:k,itag:z,ast:F.G$.toFixed(3),alen:F.durationMs.toFixed(3),acpn:F.cpn,avid:F.videoData.videoId}));return x};
g.A.At=function(F,k,z){var x=k5(this,F,z);return(x=x?(x.G$+x.durationMs)/1E3:0)&&k>x?(this.Wn(F,z,!0),this.playback.seekTo(x),!0):!1};
g.A.Wn=function(F,k,z){z=z===void 0?!1:z;var x=k5(this,F,k);if(x){var D=void 0,e=x.zO;if(e){this.LN({skipadonsq:k,sts:z,abid:e,acpn:x.cpn,avid:x.videoData.videoId});z=this.G.get(e);if(!z)return;z=g.l(z);for(e=z.next();!e.done;e=z.next())e=e.value,e.lV=k,e.PV=F,e.G$>x.G$&&(D=e)}this.U=x.cpn;P5D(this);F=this.playback.getCurrentTime();fo(this,x,D,F,F,!1,!0)}};
g.A.FR=function(){for(var F=g.l(this.W),k=F.next();!k.done;k=F.next())k=k.value,k.lV=NaN,k.PV=NaN;P5D(this);this.LN({rsac:"resetSkipAd",sac:this.U});this.U=""};
g.A.QR=function(F,k,z){return this.cR.QR(F,k,z)};
g.A.pB=zp(63);
g.A.Q$=function(F,k,z,x,D,e,C,p,E){x.length>0&&this.LN({onssinfo:1,sq:F,start:k.toFixed(3),cpns:x.join(","),ds:D.join(","),isVideo:C?1:0});E&&this.cR.Q$(F,C,p,E);if(C){if(x.length&&D.length)for(this.U&&this.U===x[0]&&this.LN({skipfail:1,sq:F,acpn:this.U}),F=k+this.Ao(),C=0;C<x.length;C++){var X=x[C];E=F;F=E+D[C];if(X=this.j.get(X))E-=e[C],X.DW=X.DW!=null?Math.min(X.DW,E):E}if(x.length&&D.length)for(k=(k+this.Ao())*1E3,z=0;z<x.length;z++)if(F=x[z],C=D[z]*1E3,F===this.playback.getVideoData().clientPlaybackNonce)VVx(this,k,
k+C,!1),k+=C;else{this.kG.has(F)||(this.LN({adCpnFromEmsg:1}),this.kG.add(F));E=0;z<e.length&&(E=e[z]*1E3);X=this.L.get(F);var q=!1;X?(X.start=k-E,X.end=k+C,z===x.length-1&&(X.end+=zR(this,F,p)),this.playback.qF()):(X=this.bH(k-E,k+C,F),this.L.set(F,X),this.LN({newAdCR:1,cpn:F,startTime:X.start,endTime:X.end}),q=!0,z===x.length-1&&(X.end+=zR(this,F,p)));k=X.end;VVx(this,X.start,X.end,!0);if(q)for(this.playback.addCueRange(X),F=this.playback.Tn("serverstitchedcuerange",36E5),F=g.l(F),C=F.next();!C.done;C=
F.next())this.L.delete(C.value.getId())}else z!==5&&z!==4||VVx(this,(k+this.Ao())*1E3,(k+this.Ao())*1E3+5E3,!1)}};
g.A.Fh=zp(61);g.A.Ao=function(){return this.playback.Ao()};
g.A.Q3=function(F){this.playback.UK("timelineerror",{e:F})};
g.A.gJ=function(F){this.yh&&this.PR&&this.l$.push(this.PR);F&&this.PR&&this.vj.push(this.PR);this.PR=null;this.playback.gJ(F)};
g.A.Da=function(F){if(this.uf||F.identifier&&this.mY.has(F.identifier))this.LN({startnoad:F.identifier}),no(this);else if(t9(this.l$,function(z){return z.identifier===F.identifier}))this.LN({timedoutcp:1}),this.Xf.start(0);
else if(t9(this.vj,function(z){return z.identifier===F.identifier}))this.LN({fetchedcp:1}),no(this);
else if(this.Xf.isActive()){var k;this.LN({racingcp:((k=this.PR)==null?void 0:k.identifier)+"_"+F.identifier})}else this.Vz=(new Date).getTime()/1E3,this.LN({adf:1}),(k=5E3,F.event==="predictStart")&&(k-=F.Y),this.UH=Math.max(k,15E3),this.yh=!1,this.Xf.start(this.UH),this.PR=F,this.cR.clearAll(),this.vR=[]};
g.A.JL=function(F,k,z,x){z=z||{reason:"disablessdai"};if(F&&k){if(!k5(this,F,k))return!1;z.sq=k}if(this.uf)return!1;this.uf=!0;this.Iz>0&&(this.Iz=0,this.tp="",this.api.publish("serverstitchedvideochange"));this.playback.dY(z,x);return!0};
g.A.xm=function(){this.LN({rstdaist:1});this.cR.clearAll()};
g.A.LB=function(F){var k;if(F!==((k=this.PR)==null?void 0:k.identifier))this.LN({ignorenoad:F});else{this.mY.add(F);this.LN({noadrcv:F});var z;((z=this.PR)==null?void 0:z.identifier)===F&&no(this)}};
g.A.JE=function(){return this.Iz};
g.A.wp=function(){return this.tp};
g.A.vD=function(F){if(this.uf)return this.LN({dai_disabled:F.event}),!1;if(this.playback.getVideoData().w3()&&(this.YG.V("html5_lifa_no_gab_on_predict_start")&&F.event==="predictStart"||F.event==="continue"||F.event==="stop"))return this.LN({cuepoint_skipped:F.event}),!1;var k=rm(this.api.iL());if(k=k?k.vD(F):!1)this.Qh={yQ:F.identifier,Fn:F.startSecs};else if(this.Qh&&this.Qh.yQ===F.identifier&&F.startSecs>this.Qh.Fn+1){this.LN({cueStChg:F.identifier,oldSt:this.Qh.Fn.toFixed(3),newSt:F.startSecs.toFixed(3),
abid:this.Qh.jt});if(this.Qh.jt){var z=F.startSecs-this.Qh.Fn,x=this.G.get(this.Qh.jt);if(x){x=g.l(x);for(var D=x.next();!D.done;D=x.next())D=D.value,D.G$>=0&&(D.G$+=z*1E3,this.YG.V("html5_ssdai_update_timeline_on_start_time_change")&&(D.h5+=z*1E3),this.LN({newApEt:D.G$,newApPrt:D.h5,acpn:D.cpn}))}}this.Qh.Fn=F.startSecs}return k};
g.A.d6=function(F){return this.uf?!1:!!vqk(this,F)};
g.A.Qs=function(F){var k=this;this.playback.pauseVideo();var z=this.playback.getCurrentTime(),x=this.YG.V("html5_lifa_reset_segment_index_on_skip"),D=x?z+this.playback.Ao():z,e=this.j.get(this.tp),C=this.L.get(this.tp);if(e){this.U=this.tp;this.B=!1;e.qM=!0;z=this.playback.getCurrentTime();this.Y={Rb:C,isAd:!0,ZK:!1,Bc:z,adCpn:this.tp,Vv:e,mI4:F};this.playback.W$(e,this.F8(),z,this.playback.getCurrentTime(),!1,!0,F,(0,g.VE)());x&&this.playback.Xy();if(C==null?0:C.start)this.mp=z*1E3-C.start;this.K.clear();
this.playback.eO();this.tp=this.F8().cpn;this.api.publish("serverstitchedvideochange");this.playback.seekTo(D,{seekSource:89,Sr:"lifa_skip"});this.playback.playVideo();this.t4||(this.t4=this.events.N(this.api,"progresssync",function(){k.vU(e)}));
return!0}this.LN({skipFail:z},!0);return!1};
g.A.LN=function(F,k){((k===void 0?0:k)||this.dH||this.playback.getVideoData().w3())&&this.playback.UK("sdai",F)};
var hqx=0;g.T(bO5,g.gb);g.A=bO5.prototype;g.A.onCueRangeEnter=function(F){var k=F.getId();this.playback.UK("sdai",{oncueEnter:1,cpn:k,start:F.start,end:F.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.P8()||0).toFixed(3)});F=this.j.get(k);this.playback.UK("sdai",{enterAdCueRange:1});k=this.tp||this.F8().cpn;var z;k=(z=this.j.get(k))!=null?z:this.F8();F&&(z={tE:k,P2:F,jV:this.playback.getCurrentTime()},this.fh(z))};
g.A.onCueRangeExit=function(F){var k=this.playback.getCurrentTime()*1E3;F=F.getId();for(var z=g.l(this.L.values()),x=z.next();!x.done;x=z.next())if(x=x.value,x.getId()!==F&&k>=x.start&&k<=x.end)return;if(k=this.j.get(F))k={tE:k,P2:this.F8(),jV:this.playback.getCurrentTime()},this.fh(k)};
g.A.fh=function(F){this.U||this.B||this.g5(this.tp);var k=F.tE,z=F.P2;if(z.cpn===this.tp)this.playback.UK("sdai",{igtranssame:1,enter:z.cpn,exit:k.cpn});else{var x=this.B,D=!!this.U;this.U="";var e=F.jV,C=k.playerType===2?k.G$/1E3+k.videoData.u$:this.F8().videoData.u$;if(k.playerType===2&&z.playerType===2)D?this.playback.UK("sdai",{igtransskip:1,enter:z.cpn,exit:k.cpn,seek:x,skip:this.U}):fo(this,k,z,C,e,x,D);else{this.tp=z.cpn;F=F.ITa;if(k.playerType===1&&z.playerType===2){this.mp=0;Lo(this,z);var p=
MI(this,"c2a",z);this.playback.UK("sdai",p);this.Iz++}else if(k.playerType===2&&z.playerType===1){p=k.videoData.u$;this.api.publish("serverstitchedvideochange");var E=MI(this,"a2c");this.playback.UK("sdai",E);this.Iz=0;this.mp=p*1E3;this.m_=C;ypp(this,k.zO)}this.playback.W$(k,z,C,e,x,D,F)}this.U="";this.B=!1}};
g.A.seekTo=function(F,k,z,x){F=F===void 0?0:F;k=k===void 0?{}:k;z=z===void 0?!1:z;x=x===void 0?null:x;this.g5(this.tp);this.playback.getVideoData().w3()&&F<=this.m_?(this.playback.pauseVideo(),this.m_=this.mp=0,dVn(this,F)):g.gb.prototype.seekTo.call(this,F,k,z,x)};
g.A.Wn=function(F,k,z){z=z===void 0?!1:z;var x=k5(this,F,k);if(x){var D=void 0,e=x.zO;if(e){this.playback.UK("sdai",{skipadonsq:k,sts:z,abid:e,acpn:x.cpn,avid:x.videoData.videoId});z=this.G.get(e);if(!z)return;z=g.l(z);for(e=z.next();!e.done;e=z.next())e=e.value,e.lV=k,e.PV=F,e.G$>x.G$&&(D=e)}this.g5(this.tp);this.U=x.cpn;P5D(this);F=this.playback.getCurrentTime();fo(this,x,D,F,F,!1,!0);this.U="";this.B=!1}};
g.A.Q$=function(F,k,z,x,D,e,C,p,E){x.length>0&&this.playback.UK("sdai",{onssinfo:1,sq:F,start:k.toFixed(3),cpns:x.join(","),ds:D.join(","),isVideo:C?1:0});E&&this.cR.Q$(F,C,p,E);if(C){if(x.length&&D.length)for(this.U&&this.U===x[0]&&this.playback.UK("sdai",{skipfail:1,sq:F,acpn:this.U}),F=k+this.Ao(),z=0;z<x.length;z++)if(E=x[z],C=F,F=C+D[z],E=this.j.get(E))C-=e[z],E.DW=E.DW!=null?Math.min(E.DW,C):C;if(x.length&&D.length)for(z=(k+this.Ao())*1E3,k=0;k<x.length;k++)if(C=x[k],E=D[k]*1E3,C===this.playback.getVideoData().clientPlaybackNonce)z+=
E;else{this.kG.has(C)||(this.playback.UK("sdai",{adCpnFromEmsg:1}),this.kG.add(C));var X=0;k<e.length&&(X=e[k]*1E3);if(F=this.L.get(C))F.start=z-X,F.end=z+E,k===x.length-1&&(F.end+=zR(this,C,p)),this.playback.qF();else for(F=this.bH(z-X,z+E,C),this.L.set(C,F),this.playback.UK("sdai",{newAdCR:1,cpn:C,startTime:F.start,endTime:F.end}),k===x.length-1&&(F.end+=zR(this,C,p)),this.playback.addCueRange(F),z=this.playback.Tn("serverstitchedcuerange",36E5),z=g.l(z),C=z.next();!C.done;C=z.next())this.L.delete(C.value.getId());
z=F.end}}};
g.A.Qs=function(F){var k=this;this.g5(this.tp);this.playback.pauseVideo();var z=this.playback.getCurrentTime(),x=this.j.get(this.tp);if(!x)return this.playback.UK("sdai",{skipFail:z}),!1;this.U=this.tp;this.B=!1;ypp(this,x.zO);JpH(this,x,this.F8(),F);dVn(this,z,{seekSource:89,Sr:"lifa_skip"});this.t4||(this.t4=this.events.N(this.api,"progresssync",function(){eR(k.api.g$(),(0,g.VE)(),"ad_to_video");k.t4&&(k.events.er(k.t4),k.t4=null)}));
return!0};
g.A.vU=function(F){var k=this.L.get(F.cpn);this.L.delete(F.cpn);k&&this.playback.removeCueRange(k);this.j.delete(F.cpn);F=this.W.indexOf(F);F>=0&&this.W.splice(F,1)};
g.A.g5=function(F){var k=F||this.tp,z=this.j.get(k);if(z){F=z.videoData;var x,D;k=z.DW||((D=(x=this.L.get(k))==null?void 0:x.start)!=null?D:0)/1E3;x=this.playback.getCurrentTime()-k;F.u$=x>0?x:0}else this.F8().videoData.u$=this.playback.getCurrentTime()};g.T(nqa,g.S);g.A=nqa.prototype;
g.A.ZY=function(F,k){k=k===void 0?"":k;if(this.timeline.U===k)return!0;var z=this.timeline.Y,x=z==null?void 0:z.getVideoData();if(!z||!x)return this.api.UK("ssap",{htsm:z?0:1}),!1;if(this.api.V("html5_ssap_clear_timeline_before_update")){var D=this.timeline,e;(e=D.Y)==null||uy9(e);D.L.clear()}D=db(z);var C=!1;e=[];var p=new Map;z=[];var E=[],X=0,q=0,N=0,u=[];F=g.l(F);for(var w=F.next();!w.done;w=F.next())a:{var m=void 0,h=void 0,B=w.value,U=B.clipId;if(U){if(B.xK){N=B.xK.xT||0;w=B.xK.V1||1;var v=
Number(((B.xK.yP||0)/(B.xK.zv||1)*1E3).toFixed(0));N=w=v+Number((N/w*1E3).toFixed(0))}else w=v=N,this.vI.has(U)||this.Kk.add(U);var P=(h=p.get(U))!=null?h:0,I=this.timeline.U;h=!1;if(I&&this.api.V("html5_ssap_clear_timeline_before_update")){if(I=this.nk.get(U))I.start=v,I.end=w,h=!0}else{if(I){var d=U;I=v;var W=w,M=P,xY=gS(this.timeline,d);if(xY!=null&&xY.length){M<xY.length&&(xY[M].G$=I,xY[M].U=W);if(d=this.nk.get(d))d.start=I,d.end=W;I=!0}else I=!1}if(I){p.set(U,P+1);C=!0;break a}}u.push(U);!h&&
B.xK&&(u=this.bH(v,w,u.join(",")),this.nk.set(U,u),z.push(u),u=[]);if(((m=B.xK)==null?void 0:m.df)===x.videoId){h=m=void 0;B=U;U=x;B!==U.clientPlaybackNonce&&this.api.UK("ssap",{cnm:1,cid:B,cpn:U.clientPlaybackNonce});if(this.api.V("html5_ssap_clear_timeline_before_update"))U.m_=v,B=y5(this.timeline,1,v,w-v,U),e.push(B),v=Jh(this.timeline,v,w,[B]),C=C||v;else if(I=[],U&&(U.m_=v,I=(h=gS(this.timeline,B))!=null?h:[]),!this.timeline.U&&I.length&&P===0){C=I[0];C.G$=v;C.U=w;U=(m=this.timeline.Y)==null?
void 0:m.Y;if((m=U==null?void 0:U.get(0))&&U)for(h=0;h<m.length;h++)if(I=m[h],I.lc()!==I.wi()){I.G$=v;I.j=w;m.splice(h,1);U.has(v)?U.get(v).push(I):U.set(v,[I]);break}e.push(C);p.set(B,P+1);C=!0}else B=y5(this.timeline,1,v,w-v,U),e.push(B),v=Jh(this.timeline,v,w,[B]),C=C||v;E.length&&(E=MVx(this,X||0,q,E),C=C||E);q=X=w;E=[]}else P=void 0,m=this.Yq.get(U),h=m!=null?m:new g.Rt(this.api.C(),{cpn:U}),h.J2=!0,this.Kk.has(U)&&this.Yq.set(U,h),X=Math.min(v,X),q=Math.max(w,q),this.api.UK("ssap",{e:v,d:w-
v,c:U,p:m?1:0}),h.m_=v,w=y5(this.timeline,2,v,w-v,h,(P=B.Ja)==null?void 0:P.Hk),E.push(w)}else this.api.UK("ssap",{cm:1})}E.length&&(x=MVx(this,X||0,q,E),C=C||x);D&&e.length&&(qb5(this.timeline,D,e),this.api.V("html5_ssap_clear_timeline_before_update")&&(x=e[e.length-1].wi(),(D=this.timeline.Y)!=null&&(D.U=x)));z.length&&this.playback.L0(z);if(C){this.timeline.U=k;x=this.playback.Xb();k=[];x=g.l(x);for(z=x.next();!z.done;z=x.next()){z=z.value;if(z.U){if(this.api.V("html5_ssap_fix_ad_completion_cue_range")&&
z.start===0x7ffffffffffff)continue;D=IP(this,z.U);if(D===z.US)continue;z.start=z.start-z.US+D;z.end=z.end-z.US+D;z.US=D;k.push(z)}this.api.V("html5_ssap_fix_cue_range_updates")||this.playback.yY(k)}this.api.V("html5_ssap_fix_cue_range_updates")&&this.playback.yY(k);this.api.UK("ssap",{tu:kt(this)});k=rm(this.api.iL());this.api.UK("ssap",{am:k?1:0})}else this.api.UK("ssap",{tnu:1});return!0};
g.A.addPlayerResponseForAssociation=function(F){var k=new g.Rt(this.api.C(),F.playerVars);k.playerResponseCpn?k.clientPlaybackNonce=k.playerResponseCpn:this.api.UK("ssap",{eim:this.playback.getVideoData().clientPlaybackNonce});k.J2=!0;if(F=F.kW)k.kW=F,k.clientPlaybackNonce=F.cpn;F=k.clientPlaybackNonce;this.api.UK("ssap",{aprfa:F+"_"+k.videoId});if(F){this.Yq.set(F,k);var z=gS(this.timeline,F),x=!1;if(z==null?0:z.length){z=g.l(z);for(var D=z.next();!D.done;D=z.next())D=D.value,k.m_=D.lc(),D.sM(k),
D.L&&(x=!0)}else x=!k.videoId;if(!x){if(!this.playback.mK(k.videoId)){var e;this.api.UK("ssap",{nlc:F,nlcc:(e=this.timeline.Y)==null?void 0:db(e)})}this.playback.BG(F,k,2)}}};
g.A.Ya=function(){this.pR=!0;this.api.V("html5_ssap_timeline_handle_error_and_abandon")&&this.finishSegmentByCpn(this.tp,S2(this),5)};
g.A.oo=function(F){if(g.hI(F,128)){var k;F=(k=F.state.YA)==null?void 0:k.errorCode;this.finishSegmentByCpn(this.tp,S2(this),7,F)}};
g.A.finishSegmentByCpn=function(F,k,z,x){if(this.tp===k)return[];this.pR&&(z=5,this.pR=!1);this.api.UK("ssap",{fsbc:F+";"+k,fsbcr:z,fsbct:this.api.getCurrentTime().toFixed(),fsbce:x!=null?x:""});if(this.api.V("html5_ssap_timeline_handle_error_and_abandon")&&(z===5||z===7))return F79(this,F,k,z),[];this.EV=k;var D=!1;if(this.Kk.has(F)&&(D=RqY(this,z),!D))return[F];var e=gS(this.timeline,k);if(e){e.sort(function(E,X){return E.lc()-X.lc()});
var C=g.l(e);for(e=C.next();!e.done;e=C.next()){e=e.value;var p=this.playback.getCurrentTime()*1E3;if(e.lc()>=p){this.Wq.set(F,z);KoH(this,F,k);this.e8.set(F,(0,g.VE)());if(z=this.nk.get(k))for(z=z.getId().split(","),z=g.l(z),C=z.next();!C.done;C=z.next())C=C.value,C!==k&&this.Kk.has(C)&&(this.Kk.delete(C),this.vI.add(C));this.g5();k=e.lc()/1E3;e=void 0;z=(e=g.lw(this.api.C().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?e:0;this.api.V("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(k+
z/1E3,{q6:!0}):this.playback.seekTo(k+z/1E3);this.Qq?(this.api.UK("ssap",{gpfreload:this.tp}),YbY(this)||(this.Qq=!1),this.playback.eO(!1,!1,this.api.V("html5_ssap_keep_media_on_finish_segment"))):x&&this.playback.eO(!1,!1,this.api.V("html5_ssap_keep_media_on_finish_segment"));D&&this.api.playVideo(1,this.api.V("html5_ssap_keep_media_on_finish_segment"));return[F]}}}return[]};
g.A.uS=function(){var F=this.timeline.Y;if(!F)return 0;var k=F.wi();F=g.l(F.Y.values());for(var z=F.next();!z.done;z=F.next()){z=g.l(z.value);for(var x=z.next();!x.done;x=z.next())x=x.value,x.wi()>k&&(k=x.wi())}return k/1E3};
g.A.oy=function(){var F=this.playback.getCurrentTime()*1E3;var k=ovk(this,F);if(!k){var z=gS(this.timeline,this.tp);if(z){z=g.l(z);for(var x=z.next();!x.done;x=z.next())x=x.value,x.lc()>F&&(k=x)}}return k&&k.getType()===1?k.lc()/1E3:0};
g.A.getVideoData=function(F){if(F===2&&!this.On()){if(this.bD&&this.Yq.has(this.bD))return this.Yq.get(this.bD);this.api.UK("ssap",{lpanf:""+S2(this)});return null}return iy9(this)};
g.A.On=function(){var F=gS(this.timeline,this.tp);return(F==null?0:F.length)?F[0].getType()===2:!1};
g.A.IF=function(){var F=gS(this.timeline,this.tp);return(F==null?0:F.length)?F[0].L:!1};
g.A.seekTo=function(F,k){k=k===void 0?{}:k;var z=zQn(this,this.playback.getCurrentTime());this.playback.seekTo(F+z/1E3,k)};
g.A.bH=function(F,k,z){return new g.ps(F,k,{id:z,namespace:"ssap",priority:9})};
g.A.onCueRangeEnter=function(F){if(!this.Kx.has(F.getId())){this.api.UK("ssap",{oce:1,cpn:F.getId(),st:F.start,et:F.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.P8()||0).toFixed(3)});for(var k=F.getId().split(","),z=0;z<k.length&&this.EV&&k[z]!==this.EV;){var x=k[z];this.Kk.has(x)&&(this.Kk.delete(x),this.vI.add(x));z++}if(k.length>z+1)for(x=z+1;x<k.length;x++)this.vy.push(k[x]);k=k[z];this.Kk.has(k)&&DPM(this,k);this.vI.has(k)||Wox(this,k);k=g.l(this.nk.values());for(z=
k.next();!z.done;z=k.next())z=z.value,z.start<=F.start&&!this.Kx.has(F.getId())&&this.Kx.add(z.getId())}};
g.A.JE=function(){return this.Iz};
g.A.wp=function(){return this.tp};
g.A.handleError=function(F,k){k=k===void 0?0:k;if(F!=="fmt.decode"&&F!=="fmt.unplayable"||!this.On()||this.Ul===this.tp)return!1;this.Ul=this.tp;if(this.api.V("html5_enable_ssap_gapful_switch"))this.Qq=!0,this.api.UK("ssap",{gpfonerr:F}),this.playback.eO();else{this.playback.UK("ssap",{skiperr:F,acpn:this.tp});var z=this.playback.getVideoData().clientPlaybackNonce;this.finishSegmentByCpn(this.tp,z,k===1||k===2?7:6,F)}return!0};
g.A.g5=function(F){var k=F||this.tp;if(F=this.Yq.get(k)||this.playback.getVideoData())k=this.playback.getCurrentTime()-IP(this,k)/1E3,F.u$=k>0?k:0};
g.A.Ccf=function(F){var k=this.Yq.get(this.tp);k&&this.playback.gs(F-k.m_/1E3,k.lengthSeconds,this.tp)};
g.A.h4=function(){this.api.C().Jp()&&this.api.UK("ssap",{di:""+this.tp,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.Yq.clear();this.Kk.clear();this.Kx.clear();this.Wq.clear();this.e8.clear();this.vI.clear();this.vy=[];gq6(this);this.EV="";g.VB(this.events);g.S.prototype.h4.call(this)};g.T(eQR,g.S);g.A=eQR.prototype;g.A.onCueRangeEnter=function(F){if(this.Y===this.app.A4()){var k=this.W.get(F);k?qoY(this,k.target,k.Gy,F):this.He("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:F.toString()})}else if(k=this.L.find(function(D){return D.vn.Rb===F})){var z=k.vn,x=z.target;
z=z.Gy;x?qoY(this,x,z,F):XdY(this,k.h5,z,F)}};
g.A.onQueuedVideoLoaded=function(){var F=this.G;jz(this);if(F){if(!$5(this,F)){var k=this.app.A4();this.He("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:k==null?void 0:k.getVideoData().clientPlaybackNonce,ccpn:""+F.playerVars.cpn})}this.app.A4().addCueRange(F.vn.Rb)}};
g.A.seekTo=function(F,k,z,x){F=F===void 0?0:F;k=k===void 0?{}:k;x=x===void 0?null:x;if(z===void 0?0:z)j8Y(this,F,k);else{z=this.app.A4()||null;var D=z===this.j?this.S:null;ez(this,!1);this.Qh=F;this.K=k;x!=null&&this.B.start(x);z&&(this.S=D||z.getPlayerState(),z.t2(),this.j=z)}};
g.A.oo=function(F){g.hI(F,128)&&TDM(this)};
g.A.isManifestless=function(){return p9(this.Y.getVideoData())};
g.A.h4=function(){ez(this,!1);Q8D(this);g.S.prototype.h4.call(this)};
g.A.He=function(F,k){this.Y.He(new O3(F,k))};
var CSR=0;var hQD="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.T(pD,g.S);g.A=pD.prototype;g.A.get=function(F){CD(this);var k=this.data.find(function(z){return z.key===F});
return k?k.value:null};
g.A.set=function(F,k,z){this.remove(F,!0);CD(this);F={key:F,value:k,expire:Infinity};z&&isFinite(z)&&(z*=1E3,F.expire=(0,g.VE)()+z);for(this.data.push(F);this.data.length>this.U;)(z=this.data.shift())&&E8(this,z,!0);Am(this)};
g.A.remove=function(F,k){k=k===void 0?!1:k;var z=this.data.find(function(x){return x.key===F});
z&&(E8(this,z,k),g.kr(this.data,function(x){return x.key===F}),Am(this))};
g.A.removeAll=function(F){if(F=F===void 0?!1:F)for(var k=g.l(this.data),z=k.next();!z.done;z=k.next())E8(this,z.value,F);this.data=[];Am(this)};
g.A.h4=function(){var F=this;g.S.prototype.h4.call(this);this.data.forEach(function(k){E8(F,k,!0)});
this.data=[]};g.T(XO,g.S);XO.prototype.zk=function(F){if(F)return this.L.get(F)};
XO.prototype.h4=function(){this.Y.removeAll();this.L.removeAll();g.S.prototype.h4.call(this)};g.Kq9=sz(function(){var F=window.AudioContext||window.webkitAudioContext;try{return new F}catch(k){return k.name}});g.T(UP6,g.Y);g.A=UP6.prototype;g.A.Nw=function(){g.AF(this.element,g.v6.apply(0,arguments))};
g.A.VL=function(){this.LJ&&(this.LJ.removeEventListener("focus",this.DN),g.q_(this.LJ),this.LJ=null)};
g.A.Dx=function(){this.z4();var F=this.app.C();F.uo||this.Nw("tag-pool-enabled");F.S&&this.Nw(g.Wc.HOUSE_BRAND);F.playerStyle==="gvn"&&(this.Nw("ytp-gvn"),this.element.style.backgroundColor="transparent");F.We&&(this.GZ=g.Ex("yt-dom-content-change",this.resize,this));this.N(window,"orientationchange",this.resize,this);this.N(window,"resize",this.resize,this)};
g.A.uw=function(F){g.O5(this.app.C());this.Q8=!F;qc(this)};
g.A.resize=function(){if(this.LJ){var F=this.eU();if(!F.isEmpty()){var k=!g.GT(F,this.nQ.getSize()),z=PSY(this);k&&(this.nQ.width=F.width,this.nQ.height=F.height);F=this.app.C();(z||k||F.We)&&this.app.Vh.publish("resize",this.getPlayerSize())}}};
g.A.Z4=function(F,k){this.updateVideoData(k)};
g.A.updateVideoData=function(F){if(this.LJ){var k=this.app.C();k4&&(this.LJ.setAttribute("x-webkit-airplay","allow"),F.title?this.LJ.setAttribute("title",F.title):this.LJ.removeAttribute("title"));this.LJ.setAttribute("controlslist","nodownload");k.sI&&F.videoId&&(this.LJ.poster=F.zr("default.jpg"))}k=g.QT(F,"yt:bgcolor");this.bX.style.backgroundColor=k?k:"";this.gj=EN(g.QT(F,"yt:stretch"));this.yW=EN(g.QT(F,"yt:crop"),!0);g.XF(this.element,"ytp-dni",F.Mk);this.resize()};
g.A.setGlobalCrop=function(F){this.jT=EN(F,!0);this.resize()};
g.A.setCenterCrop=function(F){this.cY=F;this.resize()};
g.A.F9=function(){};
g.A.getPlayerSize=function(){var F=this.app.C(),k=this.app.Vh.isFullscreen(),z=F.externalFullscreen&&g.tJ(F);if(k&&Mz()&&!z)return new g.BB(window.outerWidth,window.outerHeight);z=!isNaN(this.Yh.width)&&!isNaN(this.Yh.height);var x=this.app.C().V("kevlar_player_enable_squeezeback_fullscreen_sizing");if(k&&!z&&x)return new g.BB(this.element.clientWidth,this.element.clientHeight);if(k||F.vZ){if(window.matchMedia){F="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.T5&&this.T5.media===
F||(this.T5=window.matchMedia(F));var D=this.T5&&this.T5.matches}if(D)return new g.BB(window.innerWidth,window.innerHeight)}else if(z)return this.Yh.clone();return new g.BB(this.element.clientWidth,this.element.clientHeight)};
g.A.eU=function(){var F=this.app.C().V("enable_desktop_player_underlay"),k=this.getPlayerSize(),z=g.lw(this.app.C().experiments,"player_underlay_min_player_width");return F&&this.pA&&k.width>z?(F=g.lw(this.app.C().experiments,"player_underlay_video_width_fraction"),new g.BB(Math.min(k.height*this.getVideoAspectRatio(),k.width*F),Math.min(k.height,k.width*F/this.getVideoAspectRatio()))):k};
g.A.getVideoAspectRatio=function(){return isNaN(this.gj)?Zyn(this):this.gj};
g.A.getVideoContentRect=function(F){var k=this.eU();F=vvn(this,k,this.getVideoAspectRatio(),F);return new g.eU((k.width-F.width)/2,(k.height-F.height)/2,F.width,F.height)};
g.A.oV=function(F){this.pA=F;this.resize()};
g.A.RF=function(){return this.Y2};
g.A.onMutedAutoplayChange=function(){qc(this)};
g.A.setInternalSize=function(F){g.GT(this.Yh,F)||(this.Yh=F,this.resize())};
g.A.h4=function(){this.GZ&&g.XU(this.GZ);this.VL();g.Y.prototype.h4.call(this)};g.A=Oy6.prototype;g.A.click=function(F,k){this.elements.has(F);this.Y.has(F);var z=g.OK();z&&F.visualElement&&g.XH(z,F.visualElement,k)};
g.A.createClientVe=function(F,k,z,x){var D=this;x=x===void 0?!1:x;this.elements.has(F);this.elements.add(F);z=m5R(z);F.visualElement=z;var e=g.OK(),C=g.Pz();e&&C&&(g.sY("combine_ve_grafts")?Il(Ow(),z,C):g.oS(g.oa)(void 0,e,C,z));k.addOnDisposeCallback(function(){D.elements.has(F)&&D.destroyVe(F)});
x&&this.L.add(F)};
g.A.createServerVe=function(F,k,z){var x=this;z=z===void 0?!1:z;this.elements.has(F);this.elements.add(F);k.addOnDisposeCallback(function(){x.destroyVe(F)});
z&&this.L.add(F)};
g.A.destroyVe=function(F){this.elements.has(F);this.elements.delete(F);this.U.delete(F);this.Y.delete(F);this.L.delete(F)};
g.A.BY=function(F,k){this.clientPlaybackNonce!==k&&(this.clientPlaybackNonce=k,VK(Ow(),F),VOI(this))};
g.A.setTrackingParams=function(F,k){this.elements.has(F);k&&(F.visualElement=g.vz(k))};
g.A.Yj=function(F,k,z){this.elements.has(F);k?this.Y.add(F):this.Y.delete(F);var x=g.OK(),D=F.visualElement;this.L.has(F)?x&&D&&(k?g.pJ(x,[D]):g.Ee(x,[D])):k&&!this.U.has(F)&&(x&&D&&g.AL(x,D,void 0,z),this.U.add(F))};
g.A.hasVe=function(F){return this.elements.has(F)};g.T(g.um,g.S);g.um.create=function(F,k,z,x){try{var D=typeof F==="string"?F:"player"+g.Kk(F),e=sG[D];if(e){try{e.dispose()}catch(p){g.JV(p)}sG[D]=null}var C=new g.um(F,k,z,x);C.addOnDisposeCallback(function(){sG[D]=null;C.gP&&C.gP()});
return sG[D]=C}catch(p){throw g.JV(p),(p&&p instanceof Error?p:Error(String(p))).stack;}};
g.A=g.um.prototype;g.A.qB=function(){return this.visibility};
g.A.BL=function(F){var k=this.Pj();if(F!==k){F.getVideoData().autonavState=k.getVideoData().autonavState;k.M_(this.rA,this);var z=k.getPlaybackRate();k.dispose();this.MR.BL(F);F.setPlaybackRate(z);F.Ij(this.rA,this);JGD(this)}};
g.A.Bl=function(){this.fR||(this.fR=g.EP(d5(),qBn()));return this.fR};
g.A.VL=function(F){if(this.mediaElement){this.x3&&(this.events.er(this.x3),this.x3=null);g.VB(this.Cw);var k=this.A4();k&&k.VL(!0,!1,F);this.template.VL();try{this.V("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.gg()}catch(z){g.yI(z)}this.mediaElement=null}};
g.A.Tl=function(F,k,z){z=z===void 0?!1:z;if(F!==this.A4()){this.logger.debug(function(){return"start set presenting player, type "+F.getPlayerType()+", vid "+F.getVideoData().videoId});
var x=null,D=this.A4();z||(x=D.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),sL(this.jZ,3),Sz(this,"cuerangesremoved",D.Xb()),this.a6&&!F.isGapless()&&D.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),z=F.XZ()&&D.XZ(),this.gH.H$("iv_s"),W7H(this,z));F.getPlayerType()===1&&this.BL(F);K79(this,F);this.MR.Tl(F);this.mediaElement&&F.setMediaElement(this.mediaElement);F.Ij(this.xL,this);F.rz()?G35(this,"setPresenting",!1):(this.Z4("newdata",F,F.getVideoData()),
x&&!g.Nj(x,F.getPlayerState())&&this.qA(new g.lH(F.getPlayerState(),x)),k=k&&this.V("html5_player_preload_ad_fix")&&F.getPlayerType()===1,F.DH()&&!k&&this.Z4("dataloaded",F,F.getVideoData()),(k=(k=F.getVideoData().L)&&k.video)&&this.Vh.RI("onPlaybackQualityChange",k.quality),Sz(this,"cuerangesadded",F.Xb()),k=F.getPlayerState(),g.n(k,2)?fiD(this):g.n(k,8)?F.playVideo():F.It()&&F.pauseVideo(),k=this.Pj(),F.getPlayerType()===2&&(F.getVideoData().rC=k.getVideoData().clientPlaybackNonce),F.getPlayerType()!==
2||this.P5()||(x=F.getVideoData(),k.Sw(x.clientPlaybackNonce,x.MD||"",x.breakType||0,x.YZ,x.videoId||"")),this.logger.debug("finish set presenting player"))}};
g.A.rK=function(){if(this.Pj()!==this.A4()){var F=this.A4();this.logger.debug(function(){return"release presenting player, type "+(F==null?void 0:F.getPlayerType())+", vid "+(F==null?void 0:F.getVideoData().videoId)});
this.Tl(this.Pj())}};
g.A.E7=function(){return this.MR};
g.A.CN=function(F){return this.MR.CN(F)};
g.A.Pj=function(){return this.MR.Pj()};
g.A.A4=function(){return this.MR.A4()};
g.A.xO=zp(50);g.A.URR=function(){hm(this)||(this.logger.debug("application playback ready"),this.ye(5))};
g.A.ljf=function(){if(!hm(this)){this.logger.debug("playback ready");h2n(this);var F=this.A4(),k=F.getPlayerState();F.It()?this.pauseVideo():k.isOrWillBePlaying()&&this.playVideo()}};
g.A.canPlayType=function(F){return aN(F)};
g.A.C=function(){return this.YG};
g.A.getVideoData=function(){return this.A4().getVideoData()};
g.A.VM=zp(19);g.A.uu=function(){return this.Pj().getVideoData()};
g.A.getVideoLoadedFraction=function(F){return(F=this.CN(F))?F.getVideoLoadedFraction():this.MR.Y.getVideoLoadedFraction()};
g.A.Ka=function(){return this.template};
g.A.iL=function(){return this.jZ};
g.A.g$=function(){return this.gH};
g.A.OR=function(F){var k=this.CN(1);k&&k.oa(F)};
g.A.gM=function(){var F=this.jZ.gM();this.Vh.publish("videoStatsPingCreated",F);return F};
g.A.getVolume=function(){return Math.round(this.Vh.getVolume())};
g.A.isMuted=function(){return this.Vh.isMuted()};
g.A.Ms=function(){if(this.Pj()===this.A4()&&this.cj)return this.cj.postId};
g.A.x0U=function(){var F=this;this.V("use_rta_for_player")||(g.Vi(this.YG)?g.iJ(this.YG,g.dy(this.getVideoData())).then(function(k){JM(d5(),k);QTx(F.getVideoData(),F.YG,F.Bl())}):QTx(this.getVideoData(),this.YG,this.Bl()))};
g.A.oN=function(F){this.Vh.publish("poTokenVideoBindingChange",F)};
g.A.y9=function(F){this.Vh.publish("d6de4videobindingchange",F)};
g.A.oC=function(){this.ly&&this.ly.oC()};
g.A.IT=function(F){this.ly=F};
g.A.m6=function(F){if(F===1){this.gH.tick("vr");var k=this.A4();k.S4();Hon(this.gH,k.getVideoData(),Q$Y(this));sE6(this.jZ)}k=this.YG;if(ot(k)&&k.G||g.IB(k)){var z,x;(((x=(z=this.A4())==null?void 0:z.getVideoData())==null?0:x.enableServerStitchedDai)||!this.P5())&&this.Vh.RI("onAdStateChange",F)}};
g.A.setLoopVideo=function(F){var k=this.A4();k===this.Pj()&&k.Tf()!==F&&(k.setLoop(F),this.Vh.ZQ("onLoopChange",F))};
g.A.getLoopVideo=function(){return this.A4().Tf()};
g.A.setLoopRange=function(F){var k=!1;!!this.cj!==!!F?k=!0:this.cj&&F&&(k=this.cj.startTimeMs!==F.startTimeMs||this.cj.endTimeMs!==F.endTimeMs||this.cj.postId!==F.postId||this.cj.type!==F.type);if(k){(k=this.A4())&&xJ(k.getVideoData())&&k.UK("slr",{et:(F==null?void 0:F.endTimeMs)||-1});k=this.Pj();k.H7("applooprange");if(F){var z=new g.ps(F.startTimeMs,F.endTimeMs,{id:"looprange",namespace:"applooprange"});k.addCueRange(z)}else{this.uu().clipConfig=void 0;var x;((z=this.cj)==null?void 0:z.type)!==
"repeatChapter"||isNaN(Number((x=this.cj)==null?void 0:x.loopCount))||(z={loopCount:String(this.cj.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.NA("repeatChapterLoopEvent",z))}this.cj=F;this.Vh.ZQ("onLoopRangeChange",F||void 0);this.Pj()===this.A4()&&(this.f6(),k.Pr())}};
g.A.getLoopRange=function(){return this.cj};
g.A.f6=function(){var F="",k=this.Pj();this.cj?k!==this.A4()?F="pnea":$0p(this,k.getCurrentTime())&&(this.cj.loopCount=0,F="ilr"):F="nlr";var z=this.A4();if(z&&xJ(z.getVideoData()))if(this.V("html5_gapless_log_loop_range_info")){var x,D;z.UK("slrre",{rej:F,ct:k.getCurrentTime(),lst:(x=this.cj)==null?void 0:x.startTimeMs,let:(D=this.cj)==null?void 0:D.endTimeMs})}else z.UK("slrre",{});F||Cbk(this)};
g.A.setPlaybackRate=function(F,k){if(!isNaN(F)){F=Yo5(this,F);var z=this.Pj();z.getPlaybackRate()!==F&&(z.setPlaybackRate(F),k&&!this.YG.j&&g.SZ("yt-player-playback-rate",F),this.Vh.RI("onPlaybackRateChange",F))}};
g.A.getCurrentTime=function(F,k,z){k=k===void 0?!0:k;if(this.getPresentingPlayerType()===3)return this.MR.D_.getCurrentTime();var x=F===2&&this.getVideoData().enableServerStitchedDai,D=g.Mk(this.getVideoData()),e=null;x||D?e=this.A4():e=this.CN(F);if(!e)return this.MR.Y.getCurrentTime();if(D&&this.jz)return F=this.jz,e=e.getCurrentTime(),z?e=x5(F,z):(z=zQn(F,e),e-=z/1E3),e;if(k){if(x&&this.kN&&(z=this.kN.mp/1E3,z!==0))return z;e=QG(this,e);return c2(this,e.getCurrentTime(),e)}x&&this.kN?(z=this.kN,
e=e.getCurrentTime(),e=(z=rpk(z,e*1E3))?e-z.start/1E3:e):e=e.getCurrentTime();return e};
g.A.Gz=function(){var F=this.CN();if(!F)return this.MR.Y.Gz();F=QG(this,F);return c2(this,F.Gz(),F)};
g.A.getDuration=function(F,k){k=k===void 0?!0:k;var z=this.getVideoData(),x=F===2&&z.enableServerStitchedDai,D=g.Mk(z),e=null;x||D?e=this.A4():e=this.CN(F);if(!e)return this.MR.Y.getDuration();if(z.hasProgressBarBoundaries()&&!x&&!D){var C,p=Number((C=z.progressBarStartPosition)==null?void 0:C.utcTimeMillis),E;z=Number((E=z.progressBarEndPosition)==null?void 0:E.utcTimeMillis);if(!isNaN(p)&&!isNaN(z))return(z-p)/1E3}if(D&&this.jz)return k=xPY(this.jz,this.jz.wp()),F===1&&k===0?e.getDuration():k;if(k)return e=
lm(this,e),c2(this,e.getDuration(),e);x&&this.kN?(F=this.kN,e=e.getCurrentTime(),e=(e=Brx(F,e*1E3))?e.durationMs/1E3:0):e=e.getDuration();return e};
g.A.B7=function(F){var k=this.CN(F);return k?this.P5(k)?(k=lm(this,k),k.B7()-k.getCurrentTime()+this.getCurrentTime(F)):k.B7():this.MR.Y.B7()};
g.A.DX=function(){return this.iV};
g.A.addPlayerResponseForAssociation=function(F){this.jz&&this.jz.addPlayerResponseForAssociation(F)};
g.A.finishSegmentByCpn=function(F,k,z){return this.jz?this.jz.finishSegmentByCpn(F,k,z):[]};
g.A.Dx=function(){this.template.Dx();var F=this.Vh;F.state.element=this.template.element;var k=F.state.element,z;for(z in F.state.Y)F.state.Y.hasOwnProperty(z)&&(k[z]=F.state.Y[z]);(F=Ivx(this.template.element))&&this.events.N(this.template,F,this.onFullscreenChange)};
g.A.getDebugText=function(F){var k=this.Pj().rH(F),z=this.A4(),x=this.Pj();if(z&&z!==x){z=z.rH(F);x=g.l(Object.keys(z));for(var D=x.next();!D.done;D=x.next())D=D.value,k["ad"+D]=z[D];if(F){z=k;x={};if(D=FE(document,"movie_player"))x.bounds=D.getBoundingClientRect(),x["class"]=D.className;D={};var e=g.xM("video-ads");e?(ZHp(e,D),D.html=e.outerHTML):D.missing=1;e={};var C=g.xM("videoAdUiSkipContainer"),p=g.xM("ytp-ad-skip-button-container"),E=g.xM("ytp-skip-ad-button"),X=C||p||E;X?(ZHp(X,e),e.ima=C?
1:0,e.bulleit=p?1:0,e.component=E?1:0):e.missing=1;x=JSON.stringify({player:x,videoAds:D,skipButton:e});z.ad_skipBtnDbgInfo=x}}F&&this.mediaElement&&(k["0sz"]=""+(+UV(this.mediaElement.getSize())===0),k.op=this.mediaElement.bM("opacity"),z=this.mediaElement.X7().y+this.mediaElement.getSize().height,k.yof=""+(+z<=0),k.dis=this.mediaElement.bM("display"));F&&((F=(0,g.l6)())&&(k.gpu=F),(F=this.YG.playerStyle)&&(k.ps=F),this.YG.J4&&(k.webview=1));k.debug_playbackQuality=this.Vh.getPlaybackQuality(1);
k.debug_date=(new Date).toString();k.origin=window.origin;k.timestamp=Date.now();delete k.uga;delete k.q;return JSON.stringify(k,null,2)};
g.A.getFeedbackProductData=function(){var F={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.C().experiments.experimentIds.join(", "),player_release:o5[11]},k=this.getPlayerStateObject().YA;k&&(F.player_error_code=k.errorCode,F.player_error_details=JSON.stringify(k.errorDetail));return F};
g.A.getPresentingPlayerType=function(F){if(this.appState===1)return 1;if(hm(this))return 3;var k;if(F&&((k=this.kN)==null?0:k.On(this.getCurrentTime())))return 2;var z;return g.Mk(this.getVideoData())&&((z=this.jz)==null?0:z.On())?2:this.A4().getPlayerType()};
g.A.IF=function(){return g.Mk(this.getVideoData())&&this.jz?this.jz.IF():!1};
g.A.getPlayerStateObject=function(F){return this.getPresentingPlayerType()===3?this.MR.D_.getPlayerState():this.CN(F).getPlayerState()};
g.A.getAppState=function(){return this.appState};
g.A.fjf=function(F){switch(F.type){case "loadedmetadata":this.Ie.start();F=g.l(this.w_);for(var k=F.next();!k.done;k=F.next())k=k.value,Tq6(this,k.id,k.I3t,k.VUp,void 0,!1);this.w_=[];break;case "loadstart":this.gH.H$("gv");break;case "progress":case "timeupdate":wW(F.target.Ln())>=2&&this.gH.H$("l2s");break;case "playing":g.Fd&&this.Ie.start();if(g.Vi(this.YG))F=!1;else{var z=this.A4();k=g.VU(this.iL());F=this.mediaElement.bM("display")==="none"||UV(this.mediaElement.getSize())===0;var x=Nc(this.template),
D=z.getVideoData();z=g.g8(this.YG);D=ix(D);k=!x||k||z||D||this.YG.dH;F=F&&!k}F&&(F=this.A4(),F.AU(),this.getVideoData().vj||(this.getVideoData().vj=1,this.RD(),F.playVideo()))}};
g.A.gNt=function(F){this.Vh.YN("onLoadProgress",F)};
g.A.q3R=function(){this.Vh.publish("playbackstalledatstart")};
g.A.V94=function(F,k){this.Vh.publish("sabrCaptionsDataLoaded",F,k)};
g.A.X8G=function(F){var k;(k=this.A4())==null||k.r_(F)};
g.A.mkf=function(F){var k;(k=this.A4())==null||k.KQ(F)};
g.A.Nlf=function(F){F=QG(this,this.A4());F=c2(this,F.getCurrentTime(),F);this.Vh.RI("onVideoProgress",F);this.YG.VH&&Nq5(this,this.visibility.NB())&&this.pauseVideo()};
g.A.m5h=function(){this.Vh.RI("onAutoplayBlocked");var F,k=(F=this.A4())==null?void 0:F.getVideoData();k&&(k.aR=!0);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.tJ(this.YG)&&(F={autoplayBrowserPolicy:FM(),autoplayIntended:kC(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.NA("embedsAutoplayStatusChanged",F))};
g.A.nNG=function(){this.Vh.publish("progresssync")};
g.A.oNJ=function(){this.Vh.YN("onPlaybackPauseAtStart")};
g.A.PuU=function(F){if(this.getPresentingPlayerType()===1){g.hI(F,1)&&!g.n(F.state,64)&&this.uu().isLivePlayback&&this.Pj().isAtLiveHead()&&this.Vh.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.hI(F,2)){if(this.cj&&this.cj.endTimeMs>=(this.getDuration()-1)*1E3){Cbk(this);return}fiD(this)}if(g.n(F.state,128)){var k=F.state;this.cancelPlayback(5);k=k.YA;JSON.stringify({errorData:k,debugInfo:this.getDebugText(!0)});this.Vh.RI("onError",O$9(k.errorCode));this.Vh.YN("onDetailedError",{errorCode:k.errorCode,
errorDetail:k.errorDetail,message:k.errorMessage,messageKey:k.hE,cpn:k.cpn});(0,g.VE)()-this.YG.Nk>6048E5&&this.Vh.YN("onReloadRequired")}k={};if(F.state.isPlaying()&&!F.state.isBuffering()&&!fl("pbresume","ad_to_video")&&fl("_start","ad_to_video")){var z=this.getVideoData();k.clientPlaybackNonce=z.clientPlaybackNonce;z.videoId&&(k.videoId=z.videoId);g.MF(k,"ad_to_video");nl("pbresume",void 0,"ad_to_video");sE6(this.jZ)}this.Vh.publish("applicationplayerstatechange",F)}};
g.A.qA=function(F){this.getPresentingPlayerType()!==3&&this.Vh.publish("presentingplayerstatechange",F)};
g.A.oo=function(F){TR(this,wB(F.state));g.n(F.state,1024)&&this.Vh.isMutedByMutedAutoplay()&&(tm(this,{muted:!1,volume:this.D3.volume},!1),Zw(this,!1))};
g.A.aRp=function(F,k){F==="newdata"&&JGD(this);this.Vh.publish("applicationvideodatachange",F,k)};
g.A.EN$=function(F,k){this.Vh.YN("onPlaybackAudioChange",this.Vh.getAudioTrack().ZD.name);this.Vh.publish("internalaudioformatchange",this.Vh.getAudioTrack().ZD.id,k)};
g.A.HvQ=function(F){var k=this.A4().getVideoData();F===k&&this.Vh.RI("onPlaybackQualityChange",F.L.video.quality)};
g.A.XK=function(){var F=this.MR.U[2]||null;if(F){var k=F.getVideoData();F=F.SN();var z;(z=this.A4())==null||z.UK("ssdai",{cleanaply:1,acpn:k==null?void 0:k.clientPlaybackNonce,avid:k.videoId,ccpn:F,sccpn:this.uu().clientPlaybackNonce===F?1:0,isDai:this.uu().enableServerStitchedDai?1:0});delete this.MR.U[2]}};
g.A.A5$=function(F,k){this.Z4(F,this.A4(),k)};
g.A.Z4=function(F,k,z){this.logger.debug(function(){return"on video data change "+F+", player type "+k.getPlayerType()+", vid "+z.videoId});
this.YG.Jp()&&k.UK("vdc",{type:F,vid:z.videoId||"",cpn:z.clientPlaybackNonce||""});k===this.Pj()&&(this.YG.BM=z.oauthToken);if(k===this.Pj()){this.getVideoData().enableServerStitchedDai&&!this.kN?(this.Pj().UK("sdai",{initSstm:1}),this.kN=this.V("html5_enable_ssdai_transition_with_only_enter_cuerange")?new bO5(this.Vh,this.YG,this.Pj(),this):new g.gb(this.Vh,this.YG,this.Pj(),this)):!this.getVideoData().enableServerStitchedDai&&this.kN&&(this.kN.dispose(),this.kN=null);var x,D;!g.Mk(this.getVideoData())||
F!=="newdata"&&F!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((x=this.iV.Y)==null?void 0:(D=x.getVideoData())==null?void 0:D.clientPlaybackNonce)?!g.Mk(this.getVideoData())&&this.jz&&(this.jz.dispose(),this.jz=null):(X_n(this.iV),this.V("html5_ssap_cleanup_ad_player_on_new_data")&&this.XK(),x=y5(this.iV,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.iV.enqueue(x,!0),Jh(this.iV,0,this.getDuration(1)*1E3,[x]),qb5(this.iV,this.getVideoData().clientPlaybackNonce,[x]),this.jz&&(this.jz.dispose(),
this.jz=null),this.jz=new nqa(this.Vh,this.iV,this.Pj()),this.MR.Pj().xn(this.jz))}if(F==="newdata")this.logger.debug("new video data, destroy modules"),sL(this.jZ,2),this.Vh.publish("videoplayerreset",k);else{if(!this.mediaElement)return;F==="dataloaded"&&(this.Pj()===this.A4()?(dw(z.i$,z.fG),z2a(this)):k3I(this));k.getPlayerType()===1&&(this.YG.l$&&t$p(this),this.getVideoData().isLivePlayback&&!this.YG.QV&&this.iG("html5.unsupportedlive",2,"DEVICE_FALLBACK"),z.isLoaded()&&((g8H(z)||this.getVideoData().Xq)&&
this.Vh.publish("legacyadtrackingpingchange",this.getVideoData()),z.hasProgressBarBoundaries()&&pTx(this)));this.Vh.publish("videodatachange",F,z,k.getPlayerType())}this.Vh.RI("onVideoDataChange",{type:F,playertype:k.getPlayerType()});this.f6();(x=z.RM)?this.n0.BY(x,z.clientPlaybackNonce):VOI(this.n0)};
g.A.zZ=function(){rT(this,null);this.Vh.YN("onPlaylistUpdate")};
g.A.kAt=function(F){delete this.ju[F.getId()];this.Pj().removeCueRange(F);a:{F=this.getVideoData();var k,z,x,D,e,C,p,E,X,q,N=((k=F.J4)==null?void 0:(z=k.contents)==null?void 0:(x=z.singleColumnWatchNextResults)==null?void 0:(D=x.autoplay)==null?void 0:(e=D.autoplay)==null?void 0:e.sets)||((C=F.J4)==null?void 0:(p=C.contents)==null?void 0:(E=p.twoColumnWatchNextResults)==null?void 0:(X=E.autoplay)==null?void 0:(q=X.autoplay)==null?void 0:q.sets);if(N)for(k=g.l(N),z=k.next();!z.done;z=k.next())if(z=
z.value,D=x=void 0,z=z.autoplayVideo||((x=z.autoplayVideoRenderer)==null?void 0:(D=x.autoplayEndpointRenderer)==null?void 0:D.endpoint),x=g.J(z,g.W3),e=D=void 0,z!=null&&((D=x)==null?void 0:D.videoId)===F.videoId&&((e=x)==null?0:e.continuePlayback)){F=z;break a}F=null}(k=g.J(F,g.W3))&&this.Vh.ZQ("onPlayVideo",{sessionData:{autonav:"1",itct:F==null?void 0:F.clickTrackingParams},videoId:k.videoId,watchEndpoint:k})};
g.A.ye=function(F){var k=this;F!==this.appState&&(this.logger.debug(function(){return"app state change "+k.appState+" -> "+F}),F===2&&this.getPresentingPlayerType()===1&&(TR(this,-1),TR(this,5)),this.appState=F,this.Vh.publish("appstatechange",F))};
g.A.iG=function(F,k,z,x,D){this.Pj().qk(F,k,z,x,D)};
g.A.Sb=function(F,k){this.Pj().handleError(new O3(F,k))};
g.A.isAtLiveHead=function(F,k){k=k===void 0?!1:k;var z=this.CN(F);if(!z)return this.MR.Y.isAtLiveHead();F=lm(this,z);z=QG(this,z);return F!==z?F.isAtLiveHead(c2(this,z.getCurrentTime(),z),!0):F.isAtLiveHead(void 0,k)};
g.A.BO=function(){var F=this.CN();return F?lm(this,F).BO():this.MR.Y.BO()};
g.A.seekTo=function(F,k,z,x,D){k=k!==!1;if(x=this.CN(x))this.appState===2&&GR(this),this.P5(x)?P2(this)?this.kN.seekTo(F,{seekSource:D},k,z):this.qR.seekTo(F,{seekSource:D},k,z):g.Mk(this.getVideoData())&&this.jz?this.jz.seekTo(F,{zI:!k,zP:z,Sr:"application",seekSource:D}):x.seekTo(F,{zI:!k,zP:z,Sr:"application",seekSource:D})};
g.A.seekBy=function(F,k,z,x){this.seekTo(this.getCurrentTime()+F,k,z,x)};
g.A.Ij4=function(){this.Vh.RI("SEEK_COMPLETE")};
g.A.F_k=function(){this.Vh.ZQ("onAbnormalityDetected")};
g.A.RN4=function(F){this.Vh.ZQ("onSnackbarMessage",F)};
g.A.GAp=function(F){var k=this.A4(),z=k.getVideoData();if(this.appState===1||this.appState===2)z.startSeconds=F;this.appState===2?g.n(k.getPlayerState(),512)||GR(this):this.Vh.RI("SEEK_TO",F)};
g.A.t9f=function(){this.Vh.publish("airplayactivechange");this.YG.V("html5_external_airplay_events")&&this.Vh.YN("onAirPlayActiveChange",this.Vh.Pc())};
g.A.ivQ=function(){this.Vh.publish("airplayavailabilitychange");this.YG.V("html5_external_airplay_events")&&this.Vh.YN("onAirPlayAvailabilityChange",this.Vh.p5())};
g.A.showAirplayPicker=function(){var F;(F=this.A4())==null||F.pg()};
g.A.X7p=function(){this.Vh.publish("beginseeking")};
g.A.S3Q=function(){this.Vh.publish("endseeking")};
g.A.getStoryboardFormat=function(F){return(F=this.CN(F))?lm(this,F).getStoryboardFormat():this.MR.Y.getStoryboardFormat()};
g.A.SU=function(F){return(F=this.CN(F))?lm(this,F).getVideoData().SU():this.MR.Y.SU()};
g.A.P5=function(F){F=F||this.A4();var k=!1;if(F){F=F.getVideoData();if(P2(this))F=F===this.kN.playback.getVideoData();else a:if(k=this.qR,F===k.Y.getVideoData()&&k.L.length)F=!0;else{k=g.l(k.L);for(var z=k.next();!z.done;z=k.next())if(F.KJ===z.value.KJ){F=!0;break a}F=!1}k=F}return k};
g.A.aK=function(F,k,z,x,D,e,C,p){this.logger.debug(function(){return"Adding video to timeline id="+F.video_id+"\n        lengthMs="+x+" enterTimeMs="+D});
var E="",X=P2(this),q;(q=this.A4())==null||q.UK("appattl",{sstm:this.kN?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:X});E=X?sfY(this.kN,F,k,z,x,D,e,C,p):Ev5(this.qR,F,z,x,D,e);this.logger.debug(function(){return"Video added to timeline id="+F.video_id+" timelinePlaybackId="+E});
return E};
g.A.ww=function(F,k,z,x,D,e,C,p){if(P2(this)){var E=sfY(this.kN,F,k,z,x,D,e,C,p);this.logger.debug(function(){return"Remaining video added to timeline id="+F.video_id+" timelinePlaybackId="+E})}return""};
g.A.LB=function(F){var k;(k=this.kN)==null||k.LB(F)};
g.A.Td=function(F,k){F=F===void 0?-1:F;k=k===void 0?Infinity:k;P2(this)||Q8D(this.qR,F,k)};
g.A.zi=function(F,k,z){if(P2(this)){var x=this.kN,D=x.MD.get(F);D?(z===void 0&&(z=D.h5),D.durationMs=k,D.h5=z):x.Q3("Invalid_timelinePlaybackId_"+F+"_specified")}else{x=this.qR;D=null;for(var e=g.l(x.L),C=e.next();!C.done;C=e.next())if(C=C.value,C.KJ===F){D=C;break}D?(z===void 0&&(z=D.h5),li6(x,D,k,z)):im(x,"InvalidTimelinePlaybackId timelinePlaybackId="+F)}};
g.A.enqueueVideoByPlayerVars=function(F,k,z,x){z=z===void 0?Infinity:z;x=x===void 0?"":x;this.P5();F=new g.Rt(this.YG,F);x&&(F.KJ=x);Euk(this,F,k,z)};
g.A.queueNextVideo=function(F,k,z,x,D){z=z===void 0?NaN:z;F=this.preloadVideoByPlayerVars(F,k===void 0?1:k,z,x===void 0?"":x,D===void 0?"":D);k=this.A4();F&&k&&(this.V("html5_check_queue_on_data_loaded")?this.C().supportsGaplessShorts()&&k.getVideoData().B&&(z=this.fz,x=this.a6.G,z.j!==F&&(z.L=k,z.j=F,z.U=1,z.Y=F.getVideoData(),z.W=x,z.Y.isLoaded()?z.S():z.Y.subscribe("dataloaded",z.S,z))):(z=RZx(k,F,this.a6.G),z!=null?(k.UK("sgap",z),k.getVideoData().B&&k.nU(!1)):(F=F.getVideoData(),k=this.fz,k.Y!==
F&&(k.Y=F,k.U=1,F.isLoaded()?k.G():k.Y.subscribe("dataloaded",k.G,k)))))};
g.A.aP=function(F,k,z,x){var D=this;z=z===void 0?0:z;x=x===void 0?0:x;var e=this.A4();e&&lm(this,e).Ml();zqC(this.a6,F,k,z,x).then(function(){D.Vh.YN("onQueuedVideoLoaded")},function(){})};
g.A.gi=function(){return this.a6.gi()};
g.A.kH=function(F){var k=this.a6.Y;return k?k.A7(F):!1};
g.A.clearQueue=function(F,k){F=F===void 0?!1:F;k=k===void 0?!1:k;this.logger.debug("Clearing queue");this.a6.clearQueue(F,k)};
g.A.loadVideoByPlayerVars=function(F,k,z,x,D,e){k=k===void 0?1:k;var C=this.Pj();if(k===2&&this.uu().enableServerStitchedDai&&C&&!C.zf())return C.UK("lvonss",{vid:(F==null?void 0:F.videoId)||"",ptype:k}),!1;var p=!1;C=new g.Rt(this.YG,F);C.reloadPlaybackParams=e;g.WJ(this.YG)&&!C.k9&&C0(this.gH);var E;e=this.gH;var X=(E=C.RU)!=null?E:"";e.timerName=X;this.gH.l7("pl_i");this.V("web_player_early_cpn")&&C.clientPlaybackNonce&&this.gH.infoGel({clientPlaybackNonce:C.clientPlaybackNonce});if(wF6(C).supportsVp9Encoding===
!1){var q;(q=this.A4())==null||q.UK("noVp9",{})}if(this.C().supportsGaplessShorts()){E=iOM(this.a6,C,k);if(E==null){TR(this,-1);F=this.a6;F.app.C().V("html5_gapless_new_slr")?v2(F.app,"gaplessshortslooprange"):F.app.setLoopRange(null);F.app.getVideoData().YO=!0;var N;(N=F.Y)==null||N.GV();var u;(u=F.Y)==null||u.wk();z={Sr:"gapless_to_next_video",seekSource:60};x=g.lw(F.app.C().experiments,"html5_gapless_seek_offset");var w;(w=F.app.A4())==null||w.seekTo(xVn(F)+x,z);if(!F.app.getPlayerStateObject(k).isPlaying()){var m;
(m=F.app.A4())==null||m.playVideo(!0)}if(F.app.C().V("html5_short_gapless_unlisten_after_seek")){var h;(h=F.app.A4())==null||h.AX()}F.S();return!0}w=this.V("html5_shorts_gapless_preload_fallback");m=this.a6.Y;w&&m&&!m.z4()&&(h=m.getVideoData(),h=this.YG.V("html5_autonav_autoplay_in_preload_key")?VG(this,k,h):IE(this,k,h.videoId,h.KJ),this.MR.j.set(h,m,3600));this.a6.clearQueue(w);var B;(B=this.A4())==null||B.UK("sgap",{f:E})}if(D){for(;C.aj.length&&C.aj[0].isExpired();)C.aj.shift();p=C.aj.length-
1;p=p>0&&D.L(C.aj[p])&&D.L(C.aj[p-1]);C.aj.push(D)}z||(F&&dID(F)?(n_(this.YG)&&!this.GO&&(F.fetch=0),rT(this,F)):this.playlist&&rT(this,null),F&&(this.GO=eZ(!1,F.external_list)));this.Vh.publish("loadvideo");k=this.uF(C,k,x);p&&this.iG("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+C.aj.join()).replace(/[;:,]/g,"_"));return k};
g.A.preloadVideoByPlayerVars=function(F,k,z,x,D){k=k===void 0?1:k;z=z===void 0?NaN:z;x=x===void 0?"":x;D=D===void 0?"":D;var e="";if(this.YG.V("html5_autonav_autoplay_in_preload_key"))e=qsH(this,k,F,D);else{var C=XG(F);e=IE(this,k,C,D)}if(this.MR.j.get(e))return this.logger.debug(function(){return"already preloaded "+e}),null;
F=new g.Rt(this.YG,F);D&&(F.KJ=D);return XTY(this,F,k,z,x)};
g.A.setMinimized=function(F){this.visibility.setMinimized(F);(F=GR5(this.jZ))&&(this.isMinimized()?F.load():F.unload());this.Vh.publish("minimized")};
g.A.setInline=function(F){this.visibility.setInline(F)};
g.A.setInlinePreview=function(F){this.visibility.setInline(F)};
g.A.bv=function(F){u3D(this,F)||this.visibility.bv(F)};
g.A.setSqueezeback=function(F){this.visibility.setSqueezeback(F)};
g.A.T6=function(){var F,k=(F=this.mediaElement)==null?void 0:F.T$();k&&(this.YG.Cy&&hd(TZ(function(){return document.exitFullscreen()}),function(){}),hd(TZ(function(){return ra(k)}),function(){}))};
g.A.Sm_=function(){this.mediaElement.T$();this.mediaElement.T$().webkitPresentationMode==="picture-in-picture"?this.bv(!0):this.bv(!1)};
g.A.togglePictureInPicture=function(){var F=this.A4();F&&F.togglePictureInPicture()};
g.A.uF=function(F,k,z){k=k===void 0?1:k;this.logger.debug(function(){return"start load video, id "+F.videoId+", type "+k});
fl("_start",this.gH.timerName)||g.oS(b0)(void 0,this.gH.timerName);var x=!1,D=D0I(this,k,F,!1);D?(x=!0,F.dispose()):(D=wT(this,k,F,!0,z),(this.V("html5_onesie")||this.V("html5_load_before_stop"))&&D.OZ()&&D.cn(),this.Ie.stop(),k===1&&k!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,k),this.Tl(D));D===this.Pj()&&(this.YG.BM=F.oauthToken);if(!D.OZ())return!1;if(D===this.Pj())return this.ye(1),z=GR(this),x&&this.V("html5_player_preload_ad_fix")&&D.getPlayerType()===1&&
D.DH()&&this.Z4("dataloaded",D,D.getVideoData()),z;D.h2();return!0};
g.A.cueVideoByPlayerVars=function(F,k){var z=this;k=k===void 0?1:k;var x=this.Pj();if(this.uu().enableServerStitchedDai&&x&&!x.zf()&&F&&Object.keys(F).length>0)x.UK("qvonss",{vid:(F==null?void 0:F.videoId)||"",ptype:k});else if(F&&dID(F))if(this.DO=!0,rT(this,F),(F=g.A_(this.playlist))&&F.ut())aE(this,F,k);else this.playlist.onReady(function(){B2(z)});
else{k||(k=this.getPresentingPlayerType());k===1&&this.zZ();x=new g.Rt(this.YG,F);var D=g.tJ(this.YG)&&!this.YG.PR&&k===1&&!x.isAd()&&!x.MD;this.Vh.publish("cuevideo");D?(this.A4().getVideoData().loading=!0,Mh5(x,F?F:{}).then(function(e){aE(z,e,k)}),x.dispose()):aE(this,x,k)}};
g.A.AR=function(F,k,z,x,D,e,C){if(!F&&!z)throw Error("Playback source is invalid");if(vJ(this.YG)||g.Pe(this.YG))return k=k||{},k.lact=Vj(),k.vis=this.Vh.getVisibilityState(),this.Vh.ZQ("onPlayVideo",{videoId:F,watchEndpoint:e,sessionData:k,listId:z}),!1;Skk(this.gH);this.gH.reset();F={video_id:F};x&&(F.autoplay="1");x&&(F.autonav="1");e&&(F.player_params=e.playerParams);C&&(F.oauth_token=C);z?(F.list=z,this.loadPlaylist(F)):this.loadVideoByPlayerVars(F,1);return!0};
g.A.cuePlaylist=function(F,k,z,x){this.DO=!0;wTD(this,F,k,z,x)};
g.A.loadPlaylist=function(F,k,z,x){this.DO=!1;wTD(this,F,k,z,x)};
g.A.jd=function(){return this.Vh.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.D4())};
g.A.Ql=zp(13);
g.A.nextVideo=function(F,k){var z=g.Fq(this.Pj().getVideoData());g.aL(this.Vh)&&z?this.AR(z.videoId,k?z.DU:z.sessionData,z.playlistId,k,void 0,z.PY||void 0):this.GO?this.Vh.YN("onPlaylistNext"):this.getPresentingPlayerType()===3?cv(this.jZ).nextVideo():!this.playlist||n_(this.YG)&&!this.Vh.isFullscreen()||(this.playlist.D4(F)&&RbD(this.playlist,JhI(this.playlist)),this.playlist.loaded?(F=k&&this.YG.V("html5_player_autonav_logging"),k&&this.Vh.publish("playlistautonextvideo"),this.uF(g.A_(this.playlist,void 0,
k,F),1)):this.DO=!1)};
g.A.previousVideo=function(F){this.GO?this.Vh.YN("onPlaylistPrevious"):this.getPresentingPlayerType()===3?cv(this.jZ).UM():!this.playlist||n_(this.YG)&&!this.Vh.isFullscreen()||(this.playlist.HZ(F)&&RbD(this.playlist,yhn(this.playlist)),this.playlist.loaded?this.uF(g.A_(this.playlist),1):this.DO=!1)};
g.A.playVideoAt=function(F){this.GO?this.Vh.YN("onPlaylistIndex",F):this.playlist&&(this.playlist.loaded?this.uF(g.A_(this.playlist,F),1):this.DO=!1,RbD(this.playlist,F))};
g.A.getPlaylist=function(){return this.playlist};
g.A.gw=zp(25);g.A.dRh=function(F){this.Vh.RI("onCueRangeEnter",F.getId())};
g.A.YJ4=function(F){this.Vh.RI("onCueRangeExit",F.getId())};
g.A.dQ=function(){var F=g.Qt(this.iL());F&&F.dQ()};
g.A.L0=function(F,k,z){var x=this.CN(k);if(x){var D=this.uu();if(g.Mk(D)){if(this.jz)if(this.V("html5_ssap_enable_cpn_triggered_media_end")&&x.getPlayerType()===2&&this.jz.On()&&(x=this.Pj()),k===1)for(var e=IP(this.jz,D.clientPlaybackNonce),C=g.l(F),p=C.next();!p.done;p=C.next())p=p.value,p.start+=e,p.end+=e,p.US=e,p.U=D.clientPlaybackNonce;else if(this.V("html5_ssap_enable_cpn_triggered_media_end")&&k===2)for(this.getPresentingPlayerType(),D=g.l(F),e=D.next();!e.done;e=D.next())e.value.U=this.jz.wp();
D=g.l(F);for(e=D.next();!e.done;e=D.next())C=void 0,e.value.playerType=(C=k)!=null?C:1}x.L0(F,z);k&&this.getPresentingPlayerType()!==k||Sz(this,"cuerangesadded",F)}};
g.A.c$=function(F,k){var z=this.CN(k);z&&(z.c$(F),k&&this.getPresentingPlayerType()!==k||Sz(this,"cuerangesremoved",F))};
g.A.J3=function(F){var k=this.A4()||this.Pj(),z=this.getPresentingPlayerType();return this.V("html5_ssap_enable_cpn_triggered_media_end")?k.J3(z,F):k.J3(z)};
g.A.Qyk=function(){function F(){var x=k.screenLayer||(k.isMinimized()?3:0),D=g.OK(x);if(D&&D!=="UNDEFINED_CSN"){var e=k.YG.V("web_player_attach_player_response_ve"),C=k.YG.V("web_playback_associated_ve");x={cpn:k.getVideoData().clientPlaybackNonce,csn:D};k.getVideoData().Xf&&(e||C)&&(e=g.vz(k.getVideoData().Xf),g.AL(D,e),C&&(x.playbackVe=e.getAsJson()));k.getVideoData().queueInfo&&(x.queueInfo=k.getVideoData().queueInfo);D={};k.V("web_playback_associated_log_ctt")&&k.getVideoData().S&&(D.cttAuthInfo=
{token:k.getVideoData().S,videoId:k.getVideoData().videoId});g.NA("playbackAssociated",x,D)}else g.yI(new g.Fa("CSN Missing or undefined during playback association"))}
var k=this,z=this.A4();this.getPresentingPlayerType();Hon(this.gH,z.getVideoData(),Q$Y(this));s8(this)&&this.YG.j&&Ik(this.uu())==="embedded"&&this.Im&&Math.random()<.01&&g.NA("autoplayTriggered",{intentional:this.intentionalPlayback});this.Im=!1;sE6(this.jZ);this.V("web_player_defer_ad")&&ouY(this);this.Vh.YN("onPlaybackStartExternal");(this.YG.V("mweb_client_log_screen_associated"),JJ(this.YG))||F();z={};this.getVideoData().S&&(z.cttAuthInfo={token:this.getVideoData().S,videoId:this.getVideoData().videoId});
z.sampleRate=20;Ll("player_att",z);if(this.getVideoData().botguardData||this.V("fetch_att_independently"))g.f_(this.YG)||FA(this.YG)==="MWEB"?g.iM(g.$K(),function(){U8(k)}):U8(this);
this.f6();e2D(this);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.tJ(this.YG)&&(z={autoplayBrowserPolicy:FM(),autoplayIntended:kC(this.getVideoData()),autoplayStatus:aoH(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.NA("embedsAutoplayStatusChanged",z))};
g.A.W_U=function(){this.Vh.publish("internalAbandon");O8(this)};
g.A.onApiChange=function(){var F=this.A4();this.YG.G&&F?this.Vh.RI("onApiChange",F.getPlayerType()):this.Vh.RI("onApiChange")};
g.A.OJG=function(){var F=this.mediaElement;F={volume:g.l3(Math.floor(F.getVolume()*100),0,100),muted:F.Gk()};F.muted||Zw(this,!1);this.D3=g.Jg(F);this.Vh.RI("onVolumeChange",F)};
g.A.mutedAutoplay=function(F){var k=this.getVideoData().videoId;isNaN(this.Iu)&&(this.Iu=this.getVideoData().startSeconds);if((F==null?0:F.videoId)||k)this.loadVideoByPlayerVars({video_id:(F==null?0:F.videoId)?F==null?void 0:F.videoId:k,playmuted:!0,start:this.Iu,muted_autoplay_duration_mode:F==null?void 0:F.durationMode}),this.Vh.YN("onMutedAutoplayStarts")};
g.A.onFullscreenChange=function(){var F=s$Y(this);this.F9(F?1:0);BqI(this,!!F)};
g.A.F9=function(F){var k=!!F,z=!!this.EX()!==k;this.visibility.F9(F);this.template.F9(k);this.V("html5_media_fullscreen")&&!k&&this.mediaElement&&s$Y(this)===this.mediaElement.T$()&&this.mediaElement.Ke();this.template.resize();z&&this.gH.tick("fsc");z&&(this.Vh.publish("fullscreentoggled",k),F=this.uu(),k={fullscreen:k,videoId:F.Le||F.videoId,time:this.getCurrentTime()},this.Vh.getPlaylistId()&&(k.listId=this.Vh.getPlaylistId()),this.Vh.RI("onFullscreenChange",k))};
g.A.pu=function(){return this.visibility.pu()};
g.A.isFullscreen=function(){return this.visibility.isFullscreen()};
g.A.EX=function(){return this.visibility.EX()};
g.A.Pct=function(){var F=this.EX();F!==0&&F!==1||this.F9(s$Y(this)?1:0);F=window.screen.width*window.screen.height;var k=window.outerHeight*window.outerWidth;this.YG.Zv?(this.E6=Math.max(this.E6,F,k),F=k/this.E6<this.YG.Yv,this.visibility.bv(F),this.YG.nF&&u3D(this,F)):this.mediaElement&&Nq5(this,k/F<.33)&&this.mediaElement.Ke()};
g.A.c5R=function(F){this.getPresentingPlayerType()!==3&&this.Vh.publish("liveviewshift",F)};
g.A.playVideo=function(F,k){this.logger.debug(function(){return"play video, player type "+F});
var z=this.CN(F);z?this.appState===2?(g.WJ(this.YG)&&C0(this.gH),GR(this)):g.n(z.getPlayerState(),2)?(k=36,this.getVideoData().wI()&&(k=37),this.seekTo(0,void 0,void 0,void 0,k)):z.playVideo(!1,k):this.MR.Y.playVideo(!1,k)};
g.A.pauseVideo=function(F,k){(F=this.CN(F))?F.pauseVideo(k):this.MR.Y.pauseVideo(k)};
g.A.stopVideo=function(F){F=F===void 0?!1:F;this.logger.debug(function(){return"stop video"});
var k=this.Pj().getVideoData(),z=new g.Rt(this.YG,{video_id:k.Le||k.videoId,oauth_token:k.oauthToken});z.K=g.Jg(k.K);var x;!F||(x=this.webPlayerContextConfig)!=null&&x.disableStaleness||(z.Za=!0);this.cancelPlayback(6);aE(this,z,1)};
g.A.cancelPlayback=function(F,k){var z=this;this.logger.debug(function(){return"start cancel playback, type "+k});
var x=this.CN(k);x?k===2&&x.getPlayerType()===1&&(YJ(this.uu())||g.Mk(this.getVideoData()))?x.UK("canclpb",{r:"no_adpb_ssdai"}):(this.YG.Jp()&&x.UK("canclpb",{r:F}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+z.appState}):(x===this.A4()&&(this.logger.debug("cancel playback, destroy modules"),sL(this.jZ,F)),k===1&&(x.stopVideo(),O8(this)),x.jh(void 0,F!==6),Sz(this,"cuerangesremoved",x.Xb()),x.Dl(),this.a6&&x.isGapless()&&(x.VL(!0),
x.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")};
g.A.sendVideoStatsEngageEvent=function(F,k,z){(k=this.CN(k))&&xLk(this.YG,F)?k.sendVideoStatsEngageEvent(F,z):z&&z()};
g.A.y_=function(F){var k=this.CN();return k&&xLk(this.YG,F)?k.y_(F):null};
g.A.updatePlaylist=function(){!n_(this.YG)&&g.tJ(this.YG)&&x05(this);this.Vh.YN("onPlaylistUpdate")};
g.A.setSizeStyle=function(F,k){this.qy=F;this.V("web_log_theater_mode_visibility")?this.Y3(k):this.KR=k;this.Vh.publish("sizestylechange",F,k);this.template.resize()};
g.A.Y3=function(F){this.visibility.Y3(F)};
g.A.MX=function(){return this.V("web_log_theater_mode_visibility")?this.visibility.MX():this.KR};
g.A.isMinimized=function(){return this.visibility.isMinimized()};
g.A.isInline=function(){return this.visibility.isInline()};
g.A.NB=function(){return this.visibility.NB()};
g.A.x8=function(){return this.visibility.x8()};
g.A.Hd=function(){return this.visibility.Hd()};
g.A.Db=function(){return this.qy};
g.A.getAdState=function(){if(this.getPresentingPlayerType()===3)return cv(this.jZ).getAdState();if(!this.P5()){var F=rm(this.iL());if(F)return F.getAdState()}return-1};
g.A.QIp=function(F){var k=this.template.getVideoContentRect();CV(this.hq,k)||(this.hq=k,(k=this.A4())&&k.HC(),(k=this.Pj())&&k===this.A4()&&k.HC(),this.EX()===1&&this.Ou&&BqI(this,!0));this.P_&&g.GT(this.P_,F)||(this.Vh.publish("appresize",F),this.P_=F)};
g.A.xA=function(){return this.Vh.xA()};
g.A.J54=function(){this.getPresentingPlayerType()===2&&this.qR.isManifestless()?TDM(this.qR):(this.kN&&(GwH(this.kN),O8(this)),G35(this,"signature"))};
g.A.x5t=function(F){F&&G35(this,"reloadPlayerEvent",void 0,F)};
g.A.RD=function(F){this.VL(F);mB(this)};
g.A.zN4=function(F){if(F.errorCode==="manifest.net.badstatus"){var k=this.YG.experiments.Ca("html5_use_network_error_code_enums")?401:"401";F.details.rc===k&&this.Vh.ZQ("onPlayerRequestAuthFailed")}};
g.A.eNa=function(F){this.Vh.publish("heartbeatparams",F)};
g.A.oe=function(F){this.Vh.ZQ("onAutonavChangeRequest",F!==1)};
g.A.S9=function(){return this.mediaElement};
g.A.setBlackout=function(F){if(this.YG.dH!==F){this.YG.dH=F;var k=this.A4();k&&(k.Pr(),this.YG.l$&&t$p(this),k.PO(F))}};
g.A.U5R=function(){var F=this.A4();if(F){var k=!this.Vh.ZH();F.Vs(k)}};
g.A.y5a=function(){this.Vh.YN("onLoadedMetadata")};
g.A.Tl4=function(){this.Vh.YN("onDrmOutputRestricted")};
g.A.OB=function(){this.intentionalPlayback=!0};
g.A.h4=function(){this.jZ.dispose();this.Sv.dispose();this.qR.dispose();this.kN&&this.kN.dispose();this.iV.removeAll();this.iV.dispose();this.jz&&this.jz.dispose();this.Pj().dispose();this.VL();this.MR.dispose();g.AD(this.playlist);g.S.prototype.h4.call(this)};
g.A.V=function(F){return this.YG.V(F)};
g.A.setScreenLayer=function(F){this.screenLayer=F};
g.A.getInternalApi=function(){return this.Vh.getInternalApi()};
g.A.createSubtitlesModuleIfNeeded=function(){return this.jZ.createSubtitlesModuleIfNeeded()};
g.A.isOrchestrationLeader=function(){var F=G0(this.jZ);return F?F.isOrchestrationLeader():!1};
g.A.getVideoUrl=function(F,k,z,x,D){if(this.cj&&this.cj.postId)return F=this.YG.getVideoUrl(F),F=Dd(F,"v"),F.replace("/watch","/clip/"+this.cj.postId);var e=this.Vh.isEmbedsShortsMode()||this.YG.Xf==="shortspage",C=g.D9(this.getVideoData());return this.YG.getVideoUrl(F,k,z,x,D,e,C)};
g.A.Vd=function(){return this.a6.Vd()};
g.A.WU=function(F,k,z){this.Vh.publish("spsumpreject",F,k,z)};
g.A.O7=function(){try{for(var F=g.l(Object.values(this.MR.U)),k=F.next();!k.done;k=F.next()){var z=k.value;z.z4()||z.O7()}if(this.V("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var x=g.l(Sla(this.MR.j)),D=x.next();!D.done;D=x.next()){var e=D.value;e.z4()||e.O7()}this.Pj().O7()}catch(C){g.yI(C)}};
g.A.Qs=function(){if(this.kN){var F=(0,g.VE)();return this.kN.Qs(F)}return!1};
g.A.Gm=function(F){var k=this.Pj();F&&(k=vua(this,F));if(k){var z=k.getVideoData();F=new Map;z=g.l(z.sabrContextUpdates);for(var x=z.next();!x.done;x=z.next()){var D=g.l(x.value);x=D.next().value;D=D.next().value;var e=void 0;D.scope===4&&((e=k)==null?0:e.AP(x))&&F.set(x,D)}return F}this.Pj().UK("scuget",{ncpf:"1",ccpn:F})};
var sG={};var Wq7={wM:[{N6:/Unable to load player module/,weight:20},{N6:/Failed to fetch/,weight:500},{N6:/XHR API fetch failed/,weight:10},{N6:/JSON parsing failed after XHR fetch/,weight:10},{N6:/Retrying OnePlatform request/,weight:10},{N6:/CSN Missing or undefined during playback association/,weight:100},{N6:/Non-recoverable error. Do not retry./,weight:0},{N6:/Internal Error. Retry with an exponential backoff./,weight:0},{N6:/API disabled by application./,weight:0}],PT:[{callback:cf5,weight:500}]};var gu5=/[&\?]action_proxy=1/,R2C=/[&\?]token=([\w-]*)/,Ysa=/[&\?]video_id=([\w-]*)/,nuM=/[&\?]index=([\d-]*)/,M$6=/[&\?]m_pos_ms=([\d-]*)/,fK9=/[&\?]vvt=([\w-]*)/,IKY="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),Lw6="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),Ss6={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"},bHn={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Jfp={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};Jm.prototype.k8=function(F){this.player.g$().tick(F)};
Jm.prototype.fetch=function(F,k){var z=this;if(!F.match(/\[BISCOTTI_ID\]/g))return this.L(F,k);var x=this.Y===1;x&&this.k8("a_bid_s");var D=OHC();if(D!==null)return x&&this.k8("a_bid_f"),this.L(F,k,D);D=V$R();x&&g.VD(D,function(){z.k8("a_bid_f")});
return D.then(function(e){return z.L(F,k,e)})};
Jm.prototype.L=function(F,k,z){var x=this,D=k===void 0?{}:k;k=D.Ue;var e=D.Rb;var C=D.cueProcessedMs;z=z===void 0?"":z;var p=this.player.getVideoData(1);D=this.player.C().sF;var E=0;if(C&&e&&!k){var X=e.end-e.start;X>0&&(E=Math.floor(X/1E3))}E=k?k.B8:E;var q={AD_BLOCK:this.Y++,AD_BREAK_LENGTH:E,AUTONAV_STATE:dT(this.player.C()),CA_TYPE:"image",CPN:p.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.BO()*1E3,LACT:Vj(),LIVE_INDEX:k?this.U++:1,LIVE_TARGETING_CONTEXT:k&&k.context?k.context:"",MIDROLL_POS:e?
Math.round(e.start/1E3):0,MIDROLL_POS_MS:e?Math.round(e.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Ka().eU().height,P_W:this.player.Ka().eU().width,YT_REMOTE:D?D.join(","):""},N=qz(Xe);Object.keys(N).forEach(function(w){N[w]!=null&&(q[w.toUpperCase()]=N[w].toString())});
z!==""&&(q.BISCOTTI_ID=z);z={};EY(F)&&(z.sts="20181",(k=this.player.C().forcedExperiments)&&(z.forced_experiments=k));var u=Cg(g.cN(F,q),z);return u.split("?").length!==2?v4(Error("Invalid AdBreakInfo URL")):g.iJ(this.player.C(),p==null?void 0:p.oauthToken).then(function(w){if(w&&pg()){var m=d5();JM(m,w)}w=x.player.Bl(m);m=KwC(x,u,q,p.isMdxPlayback,C);return g.od(w,m,"/youtubei/v1/player/ad_break").then(function(h){return h})})};
Jm.prototype.reset=function(){this.U=this.Y=1};g.T(WwM,Jm);
WwM.prototype.L=function(F,k,z){k=k===void 0?{}:k;var x=k.Ue;var D=k.Rb;var e=k.cueProcessedMs;z=z===void 0?"":z;k=this.Y;this.Y++;var C=this.player.C().V("h5_disable_macro_substitution_in_get_ad_break")?F:FHC(this,F,{Ue:x,Rb:D,cueProcessedMs:e},z,k);if(C.split("?").length!==2)return Math.random()<.1&&g.yI(Error("Invalid AdBreakInfo URL")),v4(Error("Invalid AdBreakInfo URL"));var p=this.player.getVideoData(1).isMdxPlayback,E=z;z=R2C.exec(C);z=z!=null&&z.length>=2?z[1]:"";F=gu5.test(C);var X=Ysa.exec(C);
X=X!=null&&X.length>=2?X[1]:"";var q=nuM.exec(C);q=q!=null&&q.length>=2&&!Number.isNaN(Number(q[1]))?Number(q[1]):1;var N=M$6.exec(C);N=N!=null&&N.length>=2?N[1]:"0";var u=bW(this.player.C().e5),w=g.i0(this.player.getVideoData(1).Xf,!0);aKH(this,w,C,E===""?"":E,this.player.C(),this.player.getVideoData(1));E={splay:!1,lactMilliseconds:String(Vj()),playerHeightPixels:Math.trunc(this.player.Ka().eU().height),playerWidthPixels:Math.trunc(this.player.Ka().eU().width),vis:Math.trunc(this.player.getVisibilityState()),
signatureTimestamp:20181,autonavState:dT(this.player.C())};if(p){p={};var m=this.player.C().sF;d0p(p,m?m.join(","):"")&&(E.mdxContext=p)}if(p=Lw6.includes(u)?void 0:g.bP("PREF")){m=p.split(RegExp("[:&]"));for(var h=0,B=m.length;h<B;h++){var U=m[h].split("=");if((U[0].toUpperCase()==="SML"||U[0].toUpperCase()==="GSML")&&U.length>1&&U[1].toUpperCase()==="TRUE"){w.user.lockedSafetyMode=!0;break}}E.autoCaptionsDefaultOn=yfk(p)}C=fK9.exec(C);(C=C!=null&&C.length>=2?C[1]:"")&&X&&(w.user.credentialTransferTokens=
[{token:C,scope:"VIDEO"}]);C={contentPlaybackContext:E};E=this.player.getVideoData(1).getGetAdBreakContext();p=this.player.getVideoData(1).clientPlaybackNonce;m=e!==void 0?Math.round(e).toString():void 0;h=(x==null?0:x.context)?x.context:void 0;B=0;e&&D&&!x&&(D=D.end-D.start,D>0&&(B=Math.floor(D/1E3)));x=(x=Math.trunc((x?x.B8:B)*1E3))?String(x):void 0;D=this.player.BO()*1E3;D=Number.isNaN(D)?0:Math.trunc(D);k={adBlock:k,params:z,breakIndex:q,breakPositionMs:N,clientPlaybackNonce:p,topLevelDomain:u,
isProxyAdTagRequest:F,context:w,overridePlaybackContext:C,cueProcessedMs:m,videoId:X?X:void 0,liveTargetingParams:h,breakLengthMs:x,driftFromHeadMs:D?String(D):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:E?E:void 0};return kHI(this,k)};var FLC={N8R:"replaceUrlMacros",LWG:"onAboutThisAdPopupClosed",Okk:"executeCommand"};owR.prototype.Sq=function(){return"adPingingEndpoint"};
owR.prototype.yl=function(F,k,z){VEY(this.oU.get(),F,k,z)};zzn.prototype.Sq=function(){return"changeEngagementPanelVisibilityAction"};
zzn.prototype.yl=function(F){this.T.ZQ("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:F})};xYp.prototype.Sq=function(){return"loggingUrls"};
xYp.prototype.yl=function(F,k,z){F=g.l(F);for(var x=F.next();!x.done;x=F.next())x=x.value,VEY(this.oU.get(),x.baseUrl,k,z,x.attributionSrcMode)};g.T(DYI,g.S);g.T(RE,g.S);g.A=RE.prototype;g.A.addListener=function(F){this.listeners.push(F)};
g.A.removeListener=function(F){this.listeners=this.listeners.filter(function(k){return k!==F})};
g.A.Cb=function(F,k,z,x,D,e,C,p){if(F==="")To("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(F!==this.Y||z){this.Y=F;this.ek.get().Cb(F,k,z,x,D,e,C,p);this.xG.get().Cb(F,k,z,x,D,e,C,p);var E;(E=this.O3)==null||E.get().Cb(F,k,z,x,D,e,C,p);this.L.Cb(F,k,z,x,D,e,C,p);E=g.l(this.listeners);for(var X=E.next();!X.done;X=E.next())X.value.Cb(F,k,z,x,D,e,C,p)}else To("Duplicate content video loaded signal")};
g.A.Ya=function(){this.Y&&this.hR(this.Y)};
g.A.hR=function(F){this.Y=void 0;for(var k=g.l(this.listeners),z=k.next();!z.done;z=k.next())z.value.hR(F)};gT.prototype.yD=function(F,k,z,x,D){$YR(this);this.W=!k&&z===0;var e=this.T.getVideoData(1),C=this.T.getVideoData(2);e&&(this.contentCpn=e.clientPlaybackNonce,this.videoId=e.videoId,this.Y=e.S);C&&(this.adCpn=C.clientPlaybackNonce,this.adVideoId=C.videoId,this.adFormat=C.adFormat);this.j=F;x<=0?($YR(this),this.W=!k&&z===0):(this.actionType=this.W?k?"unknown_type":"video_to_ad":k?"ad_to_video":"ad_to_ad",this.videoStreamType=D?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&&
(this.U=!0,fl("_start",this.actionType)&&CuC(this)))};
gT.prototype.reset=function(){return new gT(this.T)};g.T(Y5,g.S);Y5.prototype.addCueRange=function(F,k,z,x,D,e,C){e=e===void 0?3:e;C=C===void 0?1:C;this.Y.has(F)?To("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:F}):(F=new A3R(F,k,z,x,e),this.Y.set(F.id,{Rb:F,listener:D,r0:C}),this.T.Li([F],C))};
Y5.prototype.removeCueRange=function(F){var k=this.Y.get(F);k?(this.T.h$([k.Rb],k.r0),this.Y.delete(k.Rb.id)):To("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:F})};
Y5.prototype.onCueRangeEnter=function(F){if(this.Y.has(F.id))this.Y.get(F.id).listener.onCueRangeEnter(F.id)};
Y5.prototype.onCueRangeExit=function(F){if(this.Y.has(F.id))this.Y.get(F.id).listener.onCueRangeExit(F.id)};
g.T(A3R,g.ps);nD.prototype.m6=function(F){this.T.m6(F)};
nD.prototype.Eg=function(F){var k=g.v6.apply(1,arguments);F==="onAdStart"||F==="onAdEnd"?this.T.RI.apply(this.T,[F].concat(g.r(k))):this.T.ZQ.apply(this.T,[F].concat(g.r(k)))};Mc.prototype.g9=function(F){return F&&LD(this)};var TKC=null;g.T(mYC,g.uG);mYC.prototype.H2=function(F){return this.Y.hasOwnProperty(F)?this.Y[F].H2():{}};
g.dI("ytads.bulleit.getVideoMetadata",function(F){return fD().H2(F)});
g.dI("ytads.bulleit.triggerExternalActivityEvent",function(F,k,z){var x=fD();z=woI(z);z!==null&&x.publish(z,{queryId:F,viewabilityString:k})});g.A=KD.prototype;g.A.Ui=function(F,k){if(!this.Y.has(F))return{};if(k==="seek"){k=!1;k=k===void 0?!1:k;var z=c8(Gr).pH(F,{});z?BK(z):k&&(F=c8(Gr).yC(null,fc(),!1,F),F.sT=3,Jan([F]));return{}}k=QZx(k);if(k===null)return{};var x=this.T.cD();if(!x)return{};var D=this.T.getPresentingPlayerType(!0);if((z=this.T.getVideoData(D))==null||!z.isAd())return{};z={opt_adElement:x,opt_fullscreen:this.ek.get().isFullscreen()};return JW9(k,F,z)};
g.A.CB=function(F,k,z,x,D){this.Y.has(F)&&(x<=0||D<=0||c8(Gr).CB(F,k,z,x,D))};
g.A.xb=function(F){var k;(k=this.Y.get(F.queryId))==null||k.xb()};
g.A.nj=function(F){var k;(k=this.Y.get(F.queryId))==null||k.nj()};
g.A.VF=function(F){var k;(k=this.Y.get(F.queryId))==null||k.VF()};
g.A.lT=function(F){var k;(k=this.Y.get(F.queryId))==null||k.lT()};
g.A.bT=function(F){var k;(k=this.Y.get(F.queryId))==null||k.bT()};Z55.prototype.send=function(F,k,z,x){try{vwa(this,F,k,z,x===void 0?!1:x)}catch(D){}};g.T(c3x,Z55);Pu5.prototype.send=function(F,k,z,x){var D=!1;try{if(x==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||x==="ATTRIBUTION_SRC_MODE_XHR_OPTION")D=!0,F=ecR(F);x=D;var e=F.match(nw);if(e[1]==="https")var C=F;else e[1]="https",C=gP("https",e[2],e[3],e[4],e[5],e[6],e[7]);var p=zi5(C);e=[];var E=nmx(C)&&this.Ff.get().T.C().experiments.Ca("add_auth_headers_to_remarketing_google_dot_com_ping");if(EY(C)||E)e.push({headerType:"USER_AUTH"}),e.push({headerType:"PLUS_PAGE_ID"}),e.push({headerType:"VISITOR_ID"}),e.push({headerType:"EOM_VISITOR_ID"}),
e.push({headerType:"AUTH_USER"}),e.push({headerType:"DATASYNC_ID"});this.Y.send({baseUrl:C,scrubReferrer:p,headers:e},k,z,x)}catch(X){}};zY.prototype.y_=function(){return this.T.y_(1)};g.T(xA,g.S);g.A=xA.prototype;g.A.NV=function(){return this.T.getVideoData(1).clientPlaybackNonce};
g.A.addListener=function(F){this.listeners.push(F)};
g.A.removeListener=function(F){this.listeners=this.listeners.filter(function(k){return k!==F})};
g.A.Cb=function(){this.k$.clear();this.FP=null;this.ym.get().clear()};
g.A.hR=function(){};
g.A.MZQ=function(F,k,z,x,D){k.videoId==="nPpU29QrbiU"&&this.T.UK("ads_ssm_vdc_s",{pt:z,dvt:F});Ul(this.Ff.get())&&F!=="dataloaded"||J3n(this,k,z);if(LD(this.Ff.get())&&F==="newdata"&&D!==void 0){F=this.NV();var e=k.clientPlaybackNonce,C={};tw(this,"rte",(C.ec=e,C.xc=x==null?void 0:x.clientPlaybackNonce,C.tr=D,C.pt=z,C.ia=e!==F,C.ctp=U3(e),C));k=k.clientPlaybackNonce;x=x==null?void 0:x.clientPlaybackNonce;D=y3I(D);if(D!==1)if(x!==void 0)for(z=g.l(this.listeners),F=z.next();!F.done;F=z.next())F.value.Rn(x,
k,D);else To("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:k,transitionReason:String(D)});D=g.l(this.listeners);for(x=D.next();!x.done;x=D.next())x.value.JO(k)}};
g.A.cvf=function(F,k){F!==void 0&&(this.FP=F,k===void 0?To("Expected ad video start time on SS video changed"):this.k$.set(F,k));var z=this.T.getPresentingPlayerType(!0),x=this.T.getVideoData(z);this.T.getVideoData(1).UK("ads_ssvc",{pt:z,cpn:x==null?void 0:x.clientPlaybackNonce,crtt:this.T.getCurrentTime(1,!1),atlh:this.T.isAtLiveHead(),adstt:k});x?J3n(this,x,z):To("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.T.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:F})};
g.A.zx=function(F,k){var z=F.author,x=F.clientPlaybackNonce,D=F.isListed,e=F.KJ,C=F.title,p=F.m3,E=F.rI,X=F.isMdxPlayback,q=F.qZ,N=F.mdxEnvironment,u=F.isAutonav,w=F.Mm,m=F.k9,h=F.Si,B=F.videoId||"",U=F.profilePicture||"",v=F.Wz||"",P=F.wI()||!1,I=F.w3()||!1;F=F.Ym||void 0;e=this.ym.get().Y.get(e)||{layoutId:null,slotId:null};var d=this.T.getVideoData(1),W=d.oS();d=d.getPlayerResponse();k=1E3*this.T.getDuration(k);var M=1E3*this.T.getDuration(1),xY,$Y,Fx=(d==null?void 0:(xY=d.playerConfig)==null?
void 0:($Y=xY.daiConfig)==null?void 0:$Y.enableDai)||!1,y,K;xY=(d==null?void 0:(y=d.playerConfig)==null?void 0:(K=y.daiConfig)==null?void 0:K.enablePreroll)||!1;return Object.assign({},e,{videoId:B,author:z,clientPlaybackNonce:x,Sm:k,V3:M,daiEnabled:Fx,CZ:xY,isListed:D,oS:W,profilePicture:U,title:C,Wz:v,m3:p,rI:E,Ym:F,isMdxPlayback:X,qZ:q,mdxEnvironment:N,isAutonav:u,Mm:w,k9:m,Si:h,wI:P,w3:I})};
g.A.h4=function(){this.listeners.length=0;this.Qw=null;g.S.prototype.h4.call(this)};g.T(iz,g.S);g.A=iz.prototype;g.A.Cb=function(){var F=this;LD(this.Ff.get())||(this.Y=rP(function(){F.T.z4()||F.T.mE("ad",1)}))};
g.A.hR=function(){};
g.A.addListener=function(F){this.listeners.push(F)};
g.A.removeListener=function(F){this.listeners=this.listeners.filter(function(k){return k!==F})};
g.A.B_=function(){};
g.A.playVideo=function(){this.T.playVideo()};
g.A.pauseVideo=function(){this.T.pauseVideo()};
g.A.resumeVideo=function(F){this.bK(F)&&this.T.playVideo()};
g.A.bK=function(F){return this.T.getPlayerState(F)===2};
g.A.getCurrentTimeSec=function(F,k,z){var x=this.xG.get().FP;if(F===2&&!k&&x!==null)return gwH(this,x);zU(this.Ff.get(),"html5_ssap_use_cpn_to_get_time")||(z=void 0);return z!==void 0?this.T.getCurrentTime(F,k,z):this.T.getCurrentTime(F,k)};
g.A.getVolume=function(){return this.T.getVolume()};
g.A.isMuted=function(){return this.T.isMuted()};
g.A.getPresentingPlayerType=function(){return this.T.getPresentingPlayerType(!0)};
g.A.getPlayerState=function(F){return this.T.getPlayerState(F)};
g.A.isFullscreen=function(){return this.T.isFullscreen()};
g.A.isAtLiveHead=function(){return this.T.isAtLiveHead()};
g.A.oV=function(F){this.T.oV(F)};
g.A.Zvf=function(){var F=this.T.getPresentingPlayerType(!0),k=this.getCurrentTimeSec(F,!1);if(F===2){F=g.l(this.listeners);for(var z=F.next();!z.done;z=F.next())z.value.M4(k)}else if(F===1)for(F=g.l(this.oK),z=F.next();!z.done;z=F.next())z.value.B_(k)};
g.A.bvh=function(F){for(var k=g.l(this.listeners),z=k.next();!z.done;z=k.next())z.value.B5(F,this.getPresentingPlayerType())};
g.A.onFullscreenToggled=function(F){for(var k=g.l(this.listeners),z=k.next();!z.done;z=k.next())z.value.onFullscreenToggled(F)};
g.A.onVolumeChange=function(){for(var F=g.l(this.listeners),k=F.next();!k.done;k=F.next())k.value.onVolumeChange()};
g.A.I3=function(){for(var F=this.T.isMinimized(),k=g.l(this.listeners),z=k.next();!z.done;z=k.next())z.value.I3(F)};
g.A.kR=function(F){for(var k=g.l(this.listeners),z=k.next();!z.done;z=k.next())z.value.kR(F)};
g.A.OH=function(){for(var F=this.T.Ka().eU(),k=g.l(this.listeners),z=k.next();!z.done;z=k.next())z.value.PM(F)};
g.A.MB=function(F){for(var k=g.l(this.listeners),z=k.next();!z.done;z=k.next())z.value.MB(F)};
g.A.D$=function(){for(var F=g.l(this.listeners),k=F.next();!k.done;k=F.next())k.value.D$()};g.T(MEC,g.S);g.T(CQ,g.S);CQ.prototype.h4=function(){this.Ix.z4()||this.Ix.get().removeListener(this);g.S.prototype.h4.call(this)};AY.prototype.fetch=function(F){var k=F.CP;return this.Y.fetch(F.nC,{Ue:F.Ue===void 0?void 0:F.Ue,Rb:k,cueProcessedMs:F.cueProcessedMs===void 0?0:F.cueProcessedMs}).then(function(z){return LHI(z,k)})};g.T(pQ,g.S);g.A=pQ.prototype;g.A.addListener=function(F){this.listeners.push(F)};
g.A.removeListener=function(F){this.listeners=this.listeners.filter(function(k){return k!==F})};
g.A.Lz=function(F){fsC(this,F,1)};
g.A.onAdUxClicked=function(F,k){ET(this,function(z){z.W5(F,k)})};
g.A.f_=function(F){ET(this,function(k){k.Es(F)})};
g.A.Aa=function(F){ET(this,function(k){k.ij(F)})};
g.A.KY$=function(F){ET(this,function(k){k.s2(F)})};Xn.prototype.reduce=function(F){switch(F.event){case "unknown":return}var k=F.identifier;var z=this.Y[k];z?k=z:(z={IK:null,mN:-Infinity},k=this.Y[k]=z);z=F.startSecs+F.Y/1E3;if(!(z<k.mN))if(k.mN=z,k.IK){if(z<k.IK.end){a:{z=k.IK;switch(F.event){case "start":case "continue":case "stop":break;default:F=null;break a}F=z.start+F.B8;F=z.end<=F?null:F}if(F!==null)for(k.IK.end=F,k=this.L,g.E7(k.U.Y,F*1E3),k=g.l(k.listeners),z=k.next();!z.done;z=k.next())z.value.uR(F)}}else if(F=KHn(F,this.U))z=F.DJK,k.IK=
F.zb,FZM(this.L,z)};
Xn.prototype.updateTime=function(){};g.T(qb,g.S);g.A=qb.prototype;
g.A.Cb=function(){this.W=new Xn(this,Ewp(this.Ff.get()));this.U=new WHn;var F=this.T.getVideoData(1);if(!F.enableServerStitchedDai){var k=this.T.getVideoData(1),z;((z=this.L)==null?void 0:z.clientPlaybackNonce)!==k.clientPlaybackNonce&&(this.L!=null&&this.L.unsubscribe("cuepointupdated",this.MG,this),k.subscribe("cuepointupdated",this.MG,this),this.L=k)}this.cq.length=0;var x;k=((x=F.Y)==null?void 0:Lx9(x,0))||[];x=g.l(k);for(k=x.next();!k.done;k=x.next())k=k.value,this.vD(k)&&(tk(this.Ff.get())&&
Cp(this.oU.get(),"ocvl","cpi."+k.identifier+";cpe."+k.event+";cps."+k.startSecs),To("Unexpected a GetAdBreak to go out without player waiting",void 0,void 0,{cuePointId:k.identifier,cuePointEvent:k.event,contentCpn:F.clientPlaybackNonce}))};
g.A.hR=function(){};
g.A.addListener=function(F){this.listeners.push(F)};
g.A.removeListener=function(F){this.listeners=this.listeners.filter(function(k){return k!==F})};
g.A.vD=function(F){oUR(this,F);if(qnn(this.Ff.get())&&this.T.getCurrentTime(1)===0&&this.T.getVideoData(1).w3())return!1;this.W.reduce(F);F=this.j;this.j=!1;return F};
g.A.MG=function(F){var k=this.T.getVideoData(1).isDaiEnabled();if(k||!g.Pe(this.T.C())){F=g.l(F);for(var z=F.next();!z.done;z=F.next())if(z=z.value,oUR(this,z),tk(this.Ff.get())&&this.T.getCurrentTime(1)===0&&z.event==="start"&&Cp(this.oU.get(),"ocuz","cpi."+z.identifier+";cpe."+z.event+";cps."+z.startSecs+";cpd."+z.B8),k)qnn(this.Ff.get())&&this.T.getCurrentTime(1)===0&&this.T.getVideoData(1).w3()||this.W.reduce(z);else if(this.T.getCurrentTime(1)!==0&&z.event==="start")if(this.Ff.get().T.C().experiments.Ca("ignore_overlapping_cue_points_on_endemic_live_html5")&&
(this.Y==null||this.Ff.get().T.C().experiments.Ca("enable_only_drop_overlapping_cuepoints_with_same_identifier")&&this.Y.identifier!==z.identifier?0:z.startSecs+z.B8>=this.Y.startSecs&&z.startSecs<=this.Y.startSecs+this.Y.B8)){var x=void 0;if(tk(this.Ff.get())&&z.identifier!==((x=this.Y)==null?void 0:x.identifier)){var D=x=void 0,e=void 0,C=void 0;Cp(this.oU.get(),"ocud","ccpi."+z.identifier+";ccpe."+z.event+";ccps."+z.startSecs+";\n               ccpd."+z.B8+";pcpi."+((x=this.Y)==null?void 0:x.identifier)+
";pcpe."+((D=this.Y)==null?void 0:D.event)+";\n               pcps."+((e=this.Y)==null?void 0:e.startSecs)+";pcpd."+((C=this.Y)==null?void 0:C.B8)+";")}x=void 0;z.identifier!==((x=this.Y)==null?void 0:x.identifier)&&To("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.Y=z,FZM(this,z)}};
g.A.h4=function(){this.L!=null&&(this.L.unsubscribe("cuepointupdated",this.MG,this),this.L=null);this.listeners.length=0;this.cq.length=0;g.S.prototype.h4.call(this)};Nb.prototype.addPlayerResponseForAssociation=function(F){this.T.addPlayerResponseForAssociation(F)};g.A=wZ.prototype;g.A.aK=function(F,k,z,x,D,e,C){return this.T.aK(F,k,z,x,D,e,C)};
g.A.Td=function(F,k){this.T.Td(F,k)};
g.A.zi=function(F,k,z){this.T.zi(F,k,z)};
g.A.LB=function(F){this.T.LB(F)};
g.A.ww=function(F,k,z,x,D,e,C){this.T.ww(F,k,z,x,D,e,C)};
g.A.xF=function(F){return this.T.xF(F)};
g.A.finishSegmentByCpn=function(F,k,z){z=x1H(z);this.T.finishSegmentByCpn(F,k,z)};g.T(D1k,g.S);g.T($15,g.S);g.T(j1n,g.S);g.T(evk,g.S);g.T(Cip,g.S);g.T(pba,g.S);pba.prototype.U=function(){return this.L};g.T(EUn,Wx);
EUn.prototype.j=function(F){var k=F.content;if(k.componentType==="shopping-companion")switch(F.actionType){case 1:case 2:F=this.Y.getVideoData(1);this.Y.ZQ("updateKevlarOrC3Companion",{contentVideoId:F&&F.videoId,shoppingCompanionCarouselRenderer:k.renderer,layoutId:k.layoutId,macros:k.macros,onLayoutVisibleCallback:k.Y,interactionLoggingClientData:k.interactionLoggingClientData});break;case 3:this.Y.ZQ("updateKevlarOrC3Companion",{})}else if(k.componentType==="action-companion")switch(F.actionType){case 1:case 2:F=this.Y.getVideoData(1);
this.Y.ZQ("updateKevlarOrC3Companion",{contentVideoId:F&&F.videoId,actionCompanionAdRenderer:k.renderer,layoutId:k.layoutId,macros:k.macros,onLayoutVisibleCallback:k.Y,interactionLoggingClientData:k.interactionLoggingClientData});break;case 3:k.renderer&&(k=this.Y.getVideoData(1),this.Y.ZQ("updateKevlarOrC3Companion",{contentVideoId:k&&k.videoId})),this.Y.ZQ("updateKevlarOrC3Companion",{})}else if(k.componentType==="image-companion")switch(F.actionType){case 1:case 2:F=this.Y.getVideoData(1);this.Y.ZQ("updateKevlarOrC3Companion",
{contentVideoId:F&&F.videoId,imageCompanionAdRenderer:k.renderer,layoutId:k.layoutId,macros:k.macros,onLayoutVisibleCallback:k.Y,interactionLoggingClientData:k.interactionLoggingClientData});break;case 3:k=this.Y.getVideoData(1),this.Y.ZQ("updateKevlarOrC3Companion",{contentVideoId:k&&k.videoId}),this.Y.ZQ("updateKevlarOrC3Companion",{})}else if(k.componentType==="top-banner-image-text-icon-buttoned")switch(F.actionType){case 1:case 2:F=this.Y.getVideoData(1);this.Y.ZQ("updateKevlarOrC3Companion",
{contentVideoId:F&&F.videoId,topBannerImageTextIconButtonedLayoutViewModel:k.renderer,layoutId:k.layoutId,macros:k.macros,onLayoutVisibleCallback:k.Y,interactionLoggingClientData:k.interactionLoggingClientData});break;case 3:k.renderer&&(k=this.Y.getVideoData(1),this.Y.ZQ("updateKevlarOrC3Companion",{contentVideoId:k&&k.videoId})),this.Y.ZQ("updateKevlarOrC3Companion",{})}else if(k.componentType==="banner-image")switch(F.actionType){case 1:case 2:F=this.Y.getVideoData(1);this.Y.ZQ("updateKevlarOrC3Companion",
{contentVideoId:F&&F.videoId,bannerImageLayoutViewModel:k.renderer,layoutId:k.layoutId,macros:k.macros,onLayoutVisibleCallback:k.Y,interactionLoggingClientData:k.interactionLoggingClientData});break;case 3:k=this.Y.getVideoData(1),this.Y.ZQ("updateKevlarOrC3Companion",{contentVideoId:k&&k.videoId}),this.Y.ZQ("updateKevlarOrC3Companion",{})}else if(k.componentType==="ads-engagement-panel")switch(k=k.renderer,F.actionType){case 1:case 2:this.Y.ZQ("updateEngagementPanelAction",k.addAction);this.Y.ZQ("changeEngagementPanelVisibility",
k.expandAction);break;case 3:this.Y.ZQ("changeEngagementPanelVisibility",k.hideAction),this.Y.ZQ("updateEngagementPanelAction",k.removeAction)}else if(k.componentType==="ads-engagement-panel-layout"){var z=k.renderer;switch(F.actionType){case 1:case 2:this.Y.ZQ("updateEngagementPanelAction",{action:nd(z.addAction),layoutId:k.layoutId,onLayoutVisibleCallback:k.Y,interactionLoggingClientData:k.interactionLoggingClientData});this.Y.ZQ("changeEngagementPanelVisibility",nd(z.expandAction));break;case 3:this.Y.ZQ("changeEngagementPanelVisibility",
nd(z.hideAction)),this.Y.ZQ("updateEngagementPanelAction",{action:nd(z.removeAction)})}}};g.T(Xbx,$a);g.A=Xbx.prototype;g.A.init=function(F,k,z){$a.prototype.init.call(this,F,k,z);g.Xr(this.U,"stroke-dasharray","0 "+this.L);this.U.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.S.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.j.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()};
g.A.clear=function(){this.hide()};
g.A.hide=function(){e_(this);$a.prototype.hide.call(this)};
g.A.show=function(){j_(this);$a.prototype.show.call(this)};
g.A.Xk=function(){this.hide()};
g.A.j1=function(){if(this.Y){var F=this.Y.getProgressState();F!=null&&F.current!=null&&g.Xr(this.U,"stroke-dasharray",F.current/F.seekableEnd*this.L+" "+this.L)}};g.T(q6D,hL);g.A=q6D.prototype;
g.A.init=function(F,k,z){hL.prototype.init.call(this,F,k,z);if(k.image&&k.image.thumbnail)if(k.headline)if(k.description)if(k.backgroundImage&&k.backgroundImage.thumbnail)if(k.actionButton&&g.J(k.actionButton,g.yS))if(F=k.durationMilliseconds||0,typeof F!=="number"||F<=0)g.JV(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+F));else if(k.navigationEndpoint){var x=this.api.getVideoData(2);if(x!=null){var D=k.image.thumbnail.thumbnails;D!=null&&
D.length>0&&g.hD(g.eI(D[0].url))&&(D[0].url=x.profilePicture,g.hD(g.eI(x.profilePicture))&&CjY("VideoPlayer",239976093,"Expected non-empty profile picture."));D=k.backgroundImage.thumbnail.thumbnails;D!=null&&D.length>0&&g.hD(g.eI(D[0].url))&&(D[0].url=x.zr());D=k.headline;D!=null&&g.hD(g.eI(D.text))&&(D.text=x.author)}this.K.init(qh("ad-image"),k.image,z);this.S.init(qh("ad-text"),k.headline,z);this.U.init(qh("ad-text"),k.description,z);this.RU.init(qh("ad-image"),k.backgroundImage,z);x=["ytp-ad-action-interstitial-action-button",
"ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.S.element.classList.add("ytp-ad-action-interstitial-headline-light");this.U.element.classList.add("ytp-ad-action-interstitial-description-light");x.push("ytp-ad-action-interstitial-action-button-dark");this.api.C().L&&(x.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),x.push("ytp-ad-action-interstitial-action-button-dark"));this.api.C().V("enable_unified_action_endcap_on_web")&&
!this.api.C().L&&(x.push("ytp-ad-action-interstitial-action-button-unified"),this.NJ.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.K.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.kG.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.r9.classList.add("ytp-ad-action-interstitial-card-unified"),this.PR.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.U.element.classList.add("ytp-ad-action-interstitial-description-unified"),
this.Xf.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.S.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.cR.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.l$.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new dt(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,x);g.b(this,this.actionButton);this.actionButton.T4(this.NJ);
this.actionButton.init(qh("button"),g.J(k.actionButton,g.yS),z);Y2(this.actionButton.element);x=LS(this.actionButton.element);Md(this.actionButton.element,x+" This link opens in new tab");this.navigationEndpoint=k.navigationEndpoint;this.j.N(this.cR,"click",this.F$,this);this.j.N(this.PR,"click",this.F$,this);!this.api.C().V("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.C().L||this.j.N(this.Xf,"click",this.F$,this);this.Y=this.BJ?new Zb(this.api,F):new vu(F);g.b(this,this.Y);if(k.skipButton){(F=
g.J(k.skipButton,ErD))&&this.Y&&(this.skipButton=new sq(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.Y,this.vL),g.b(this,this.skipButton),this.skipButton.T4(this.element),this.skipButton.init(qh("skip-button"),F,z));if(z=k.adBadgeRenderer)if(z=g.J(z,pYl))F=new Uq(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,!0,!0),F.T4(this.l$),F.init(qh("simple-ad-badge"),z,this.macros),g.b(this,F);if(z=k.adInfoRenderer)if(z=g.J(z,d0))F=new xa(this.api,this.layoutId,this.interactionLoggingClientData,
this.BR,this.element,void 0,!0),F.T4(this.l$),F.init(qh("ad-info-hover-text-button"),z,this.macros),g.b(this,F)}else k.nonskippableOverlayRenderer&&(F=g.J(k.nonskippableOverlayRenderer,J8))&&this.Y&&(this.L=new pv(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.Y,!1),g.b(this,this.L),this.L.T4(this.element),this.L.init(qh("ad-preview"),F,z));k.countdownRenderer&&(k=k.countdownRenderer,g.J(k,XYY)&&this.Y&&(z=new Xbx(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,
this.Y),g.b(this,z),z.T4(this.element),z.init(qh("timed-pie-countdown"),g.J(k,XYY),this.macros)));this.show();this.element.focus()}else g.JV(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.JV(Error("AdActionInterstitialRenderer has no button."));else g.JV(Error("AdActionInterstitialRenderer has no background AdImage."));else g.JV(Error("AdActionInterstitialRenderer has no description AdText."));else g.JV(Error("AdActionInterstitialRenderer has no headline AdText."));else g.JV(Error("AdActionInterstitialRenderer has no image."))};
g.A.clear=function(){g.VB(this.j);this.hide()};
g.A.show=function(){Nnn(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.L&&this.L.show();hL.prototype.show.call(this)};
g.A.hide=function(){Nnn(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.L&&this.L.hide();hL.prototype.hide.call(this)};
g.A.F$=function(){this.navigationEndpoint&&(this.layoutId?this.BR.executeCommand(this.navigationEndpoint,this.layoutId):g.JV(Error("Missing layoutId for ad action interstitial.")))};var lfY={iconType:"CLOSE"},Qv=new g.BB(320,63);g.T(Tn9,hL);g.A=Tn9.prototype;
g.A.init=function(F,k,z){hL.prototype.init.call(this,F,k,z);this.j=k;this.K=g.z8(this.j.onClickCommands||[]);this.l$=this.j.onErrorCommand||null;if(F=this.j.contentSupportedRenderer)F=this.j.contentSupportedRenderer,k=this.j.adInfoRenderer||null,g.J(F,e5p)?(this.S=g.xM("ytp-ad-overlay-ad-info-button-container",this.U.element),Q1C(this,k),F=s1I(this,g.J(F,e5p))):g.J(F,Crt)?(this.S=g.xM("ytp-ad-overlay-ad-info-button-container",this.L.element),Q1C(this,k),F=r2D(this,g.J(F,Crt))):g.J(F,AOV)?(this.S=
g.xM("ytp-ad-overlay-ad-info-button-container",this.Y.element),Q1C(this,k),F=BnY(this,g.J(F,AOV))):(g.JV(Error("InvideoOverlayAdRenderer content could not be initialized.")),F=!1);F&&(this.show(),G2M(this,!0))};
g.A.clear=function(){G2M(this,!1);this.cR.reset();this.PR=0;this.U.hide();this.logVisibility(this.U.element,!1);this.L.hide();this.logVisibility(this.L.element,!1);this.Y.hide();this.logVisibility(this.Y.element,!1);this.hide();this.dispose()};
g.A.qmh=function(){this.NJ&&(this.layoutId?this.BR.executeCommand(this.NJ,this.layoutId):g.JV(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
g.A.Jn=function(){a:{if(this.j&&this.j.closeButton&&this.j.closeButton.buttonRenderer){var F=this.j.closeButton.buttonRenderer;if(F.serviceEndpoint){F=[F.serviceEndpoint];break a}}F=[]}F=g.l(F);for(var k=F.next();!k.done;k=F.next())k=k.value,this.layoutId?this.BR.executeCommand(k,this.layoutId):g.JV(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.A.sSK=function(){this.RU||this.api.getPlayerState(1)!==2||this.api.playVideo()};
g.A.tZ=function(){this.RU||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.tZ("invideo-overlay")};
g.A.ONk=function(F){F.target===this.S&&g.xM("ytp-ad-button",this.kG.element).click()};g.T(U19,$a);g.A=U19.prototype;g.A.init=function(F,k,z){$a.prototype.init.call(this,F,k,z);F=k.durationMs;this.U=F==null||F===0?0:F+this.Y.getProgressState().current*1E3;if(k.text)var x=k.text.templatedAdText;else k.staticMessage&&(x=k.staticMessage);this.messageText.init(qh("ad-text"),x,z);this.messageText.T4(this.L.element);this.j.show(100);this.show()};
g.A.clear=function(){this.hide()};
g.A.hide=function(){tWC(this,!1);$a.prototype.hide.call(this);this.L.hide();this.messageText.hide();e_(this)};
g.A.show=function(){tWC(this,!0);$a.prototype.show.call(this);j_(this);this.L.show();this.messageText.show()};
g.A.Xk=function(){this.hide()};
g.A.j1=function(){if(this.Y!=null){var F=this.Y.getProgressState();F!=null&&F.current!=null&&(F=1E3*F.current,!this.PR&&F>=this.U?(this.j.hide(),this.PR=!0):this.messageText&&this.messageText.isTemplated()&&(F=Math.max(0,Math.ceil((this.U-F)/1E3)),F!==this.S&&(Db(this.messageText,{TIME_REMAINING:String(F)}),this.S=F)))}};g.T(ZI6,hL);g.A=ZI6.prototype;
g.A.init=function(F,k,z){hL.prototype.init.call(this,F,k,{});k.image&&k.image.thumbnail?k.headline?k.description?k.actionButton&&g.J(k.actionButton,g.yS)?(this.U.init(qh("ad-image"),k.image,z),this.L.init(qh("ad-text"),k.headline,z),this.j.init(qh("ad-text"),k.description,z),F=["ytp-ad-underlay-action-button"],this.api.C().V("use_blue_buttons_for_desktop_player_underlay")&&F.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new dt(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,
F),k.backgroundColor&&g.Xr(this.element,"background-color",g.nv(k.backgroundColor)),g.b(this,this.actionButton),this.actionButton.T4(this.S),this.actionButton.init(qh("button"),g.J(k.actionButton,g.yS),z),k=g.lw(this.api.C().experiments,"player_underlay_video_width_fraction"),this.api.C().V("place_shrunken_video_on_left_of_player")?(z=this.Y,g.p6(z,"ytp-ad-underlay-left-container"),g.C6(z,"ytp-ad-underlay-right-container"),g.Xr(this.Y,"margin-left",Math.round((k+.02)*100)+"%")):(z=this.Y,g.p6(z,"ytp-ad-underlay-right-container"),
g.C6(z,"ytp-ad-underlay-left-container")),g.Xr(this.Y,"width",Math.round((1-k-.04)*100)+"%"),this.api.RF()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.T_.bind(this)),this.api.addEventListener("resize",this.XV.bind(this))):g.JV(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.JV(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.JV(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.JV(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.A.show=function(){vUM(!0);this.actionButton&&this.actionButton.show();hL.prototype.show.call(this)};
g.A.hide=function(){vUM(!1);this.actionButton&&this.actionButton.hide();hL.prototype.hide.call(this)};
g.A.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.T_.bind(this));this.api.removeEventListener("resize",this.XV.bind(this));this.hide()};
g.A.onClick=function(F){hL.prototype.onClick.call(this,F);this.actionButton&&g.N_(this.actionButton.element,F.target)&&this.api.pauseVideo()};
g.A.T_=function(F){F==="transitioning"?(this.Y.classList.remove("ytp-ad-underlay-clickable"),this.show()):F==="visible"?this.Y.classList.add("ytp-ad-underlay-clickable"):F==="hidden"&&(this.hide(),this.Y.classList.remove("ytp-ad-underlay-clickable"))};
g.A.XV=function(F){F.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):F.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium"));
g.Xr(this.L.element,"font-size",F.width/40+"px")};g.T(hY,hL);
hY.prototype.init=function(F,k,z){hL.prototype.init.call(this,F,k,z);k.toggledLoggingParams&&(this.toggledLoggingParams=k.toggledLoggingParams);k.answer&&g.J(k.answer,g.yS)?(F=new dt(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),F.T4(this.answer),F.init(qh("ytp-ad-survey-answer-button"),g.J(k.answer,g.yS),z),F.show()):k.answer&&g.J(k.answer,md)&&(this.Y=new fJ(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,
["ytp-ad-survey-answer-toggle-button"]),this.Y.T4(this.answer),g.b(this,this.Y),this.Y.init(qh("survey-answer-button"),g.J(k.answer,md),z));this.show()};
hY.prototype.q8=function(F){this.layoutId?F$(this.BR,F,this.layoutId,this.macros):g.JV(new g.Fa("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
hY.prototype.onClick=function(F){hL.prototype.onClick.call(this,F);if(this.api.C().V("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)};
hY.prototype.clear=function(){this.hide()};g.T(c2H,hL);c2H.prototype.init=function(F,k,z){hL.prototype.init.call(this,F,k,z);k.answer&&g.J(k.answer,md)&&(this.button=new fJ(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.T4(this.Y),this.button.init(qh("survey-none-of-the-above-button"),g.J(k.answer,md),z));this.show()};g.T(sT,dt);sT.prototype.init=function(F,k,z){dt.prototype.init.call(this,F,k,z);F=!1;k.text&&(k=g.rt(k.text),F=!g.hD(k));F||g.yI(Error("No submit text was present in the renderer."))};
sT.prototype.onClick=function(F){this.publish("l");dt.prototype.onClick.call(this,F)};g.T(rZ,hL);
rZ.prototype.init=function(F,k,z){hL.prototype.init.call(this,F,k,z);if(F=k.skipOrPreviewRenderer)g.J(F,XZ)?(F=g.J(F,XZ),z=new Bu(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.j,!0),z.T4(this.skipOrPreview),z.init(qh("skip-button"),F,this.macros),g.b(this,z),this.Y=z):g.J(F,J8)&&(F=g.J(F,J8),z=new pv(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.j,!1),z.T4(this.skipOrPreview),z.init(qh("ad-preview"),F,this.macros),z.PR.show(100),z.show(),g.b(this,z),
this.Y=z);this.Y==null&&g.JV(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(k)));k.submitButton&&(F=k.submitButton,g.J(F,g.yS)&&(F=g.J(F,g.yS),z=new sT(this.api,this.layoutId,this.interactionLoggingClientData,this.BR),z.T4(this.submitButton),z.init(qh("survey-submit"),F,this.macros),g.b(this,z),this.L=z));if(F=k.adBadgeRenderer)F=g.J(F,pYl),z=new Uq(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,!0,!0,!0),z.T4(this.U),z.init(qh("simple-ad-badge"),
F,this.macros),this.adBadge=z.element,g.b(this,z);if(F=k.adDurationRemaining)F=g.J(F,DTG),z=new Oq(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.j,void 0,!0),z.T4(this.U),z.init(qh("ad-duration-remaining"),F,this.macros),g.b(this,z);(k=k.adInfoRenderer)&&g.J(k,d0)&&(F=new xa(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.element,void 0,!0),g.b(this,F),this.adBadge!==void 0?this.U.insertBefore(F.element,this.adBadge.nextSibling):F.T4(this.U),F.init(qh("ad-info-hover-text-button"),
g.J(k,d0),this.macros));this.show()};
rZ.prototype.clear=function(){this.hide()};g.T(B5,hL);B5.prototype.init=function(F,k,z){hL.prototype.init.call(this,F,k,z);HIn(this)};
B5.prototype.show=function(){this.U=Date.now();hL.prototype.show.call(this)};
B5.prototype.uy=function(){};g.T(afk,B5);g.A=afk.prototype;g.A.init=function(F,k,z){var x=this;B5.prototype.init.call(this,F,k,z);k.questionText&&PiM(this,k.questionText);k.answers&&k.answers.forEach(function(D,e){g.J(D,ug)&&OIR(x,g.J(D,ug),z,e)});
this.S=new Set(this.L.map(function(D){return D.Y.Y}));
(F=k.noneOfTheAbove)&&(F=g.J(F,j2l))&&S6H(this,F,z);k.surveyAdQuestionCommon&&IfH(this,k.surveyAdQuestionCommon);k.submitEndpoints&&(this.submitEndpoints=k.submitEndpoints);this.N(this.element,"change",this.onChange);this.show()};
g.A.uy=function(){bIH(this,!1);this.j.L.subscribe("l",this.JvR,this)};
g.A.onChange=function(F){F.target===this.noneOfTheAbove.button.Y?d1Y(this):this.S.has(F.target)&&(this.noneOfTheAbove.button.toggleButton(!1),bIH(this,!0))};
g.A.JvR=function(){var F=[],k=this.L.reduce(function(D,e,C){var p=e.toggledLoggingParams;e.Y&&e.Y.isToggled()&&p&&(D.push(p),F.push(C));return D},[]).join("&"),z=this.submitEndpoints.map(function(D){if(!D.loggingUrls)return D;
D=g.yd(D);D.loggingUrls=D.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=zQ(e.baseUrl,k));return e});
return D});
if(z){z=g.l(z);for(var x=z.next();!x.done;x=z.next())x=x.value,this.layoutId?F$(this.BR,x,this.layoutId,this.macros):g.JV(Error("Missing layoutId for multi_select_question."))}this.api.C().V("supports_multi_step_on_desktop")&&this.PR(F)};
g.A.clear=function(){this.api.C().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.T(GY,B5);GY.prototype.init=function(F,k,z){var x=this;B5.prototype.init.call(this,F,k,z);k.questionText&&PiM(this,k.questionText);k.answers&&k.answers.forEach(function(D,e){g.J(D,ug)&&OIR(x,g.J(D,ug),z,e)});
k.surveyAdQuestionCommon?IfH(this,k.surveyAdQuestionCommon):g.JV(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(k)));this.show()};
GY.prototype.clear=function(){this.api.C().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.T(UT,hL);UT.prototype.init=function(F,k,z){var x=this;hL.prototype.init.call(this,F,k,z);if(this.api.C().V("supports_multi_step_on_desktop")){var D;this.conditioningRules=(D=k.conditioningRules)!=null?D:[];var e;this.L=(e=k.questions)!=null?e:[];var C;((C=k.questions)==null?0:C.length)&&gUI(this,0)}else(k.questions||[]).forEach(function(p){g.J(p,S7)?y2p(x,g.J(p,S7),z):g.J(p,aO)&&Rv6(x,g.J(p,aO),z)});
this.show()};
UT.prototype.clear=function(){this.api.C().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
UT.prototype.j=function(F){var k=this;if(this.api.C().V("supports_multi_step_on_desktop")){var z;if((z=this.conditioningRules)==null?0:z.length){var x;if(F.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(D){return D.questionIndex===k.Y})==null)g.JV(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===k.Y)switch(D.condition){case "CONDITION_ALL_OF":var e;if((e=D.answerIndices)==null?0:e.every(function(p){return F.includes(p)}))x=D.nextQuestionIndex;
break;case "CONDITION_ANY_OF":var C;if((C=D.answerIndices)==null?0:C.some(function(p){return F.includes(p)}))x=D.nextQuestionIndex;
break;default:g.JV(Error("Expected specified condition in survey conditioning rules."))}}),x!=null)gUI(this,x);
else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.JV(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.T(tY,hL);
tY.prototype.init=function(F,k,z){var x=this;hL.prototype.init.call(this,F,k,z);F=k.timeoutSeconds||0;if(typeof F!=="number"||F<0)g.JV(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+F));else if(k.timeoutCommands)if(k.text)if(k.ctaButton&&g.J(k.ctaButton,g.yS))if(k.brandImage)if(k.backgroundImage&&g.J(k.backgroundImage,RO)&&g.J(k.backgroundImage,RO).landscape){this.layoutId||g.JV(Error("Missing layoutId for survey interstitial."));Y6Y(this.interstitial,g.J(k.backgroundImage,
RO).landscape);Y6Y(this.logoImage,k.brandImage);g.uE(this.text,g.rt(k.text));var D=["ytp-ad-survey-interstitial-action-button"];D.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new dt(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,D);g.b(this,this.actionButton);this.actionButton.T4(this.L);this.actionButton.init(qh("button"),g.J(k.ctaButton,g.yS),z);this.actionButton.show();this.Y=new Zb(this.api,F*1E3);this.Y.subscribe("g",function(){x.transition.hide()});
g.b(this,this.Y);this.N(this.element,"click",function(e){var C=e.target===x.interstitial;e=x.actionButton.element.contains(e.target);if(C||e)if(x.transition.hide(),C)x.api.onAdUxClicked(x.componentType,x.layoutId)});
this.transition.show(100)}else g.JV(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.JV(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.JV(Error("SurveyTextInterstitialRenderer has no button."));else g.JV(Error("SurveyTextInterstitialRenderer has no text."));else g.JV(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
tY.prototype.clear=function(){this.hide()};
tY.prototype.show=function(){nUC(!0);hL.prototype.show.call(this)};
tY.prototype.hide=function(){nUC(!1);hL.prototype.hide.call(this)};g.T(Zj,$a);g.A=Zj.prototype;
g.A.init=function(F,k){$a.prototype.init.call(this,F,k,{});if(k.durationMilliseconds){if(k.durationMilliseconds<0){g.JV(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+k.durationMilliseconds));return}this.L=k.durationMilliseconds}else this.L=this.Y.W4();var z;if((z=k.previewText)==null||!z.text||g.hD(k.previewText.text))g.JV(Error("No text is returned for AdPreview."));else{this.S=k.previewText;k.previewText.isTemplated||g.uE(this.U,k.previewText.text);var x;
if(((x=this.api.getVideoData(1))==null?0:x.lJ)&&k.previewImage){var D,e;(F=((e=Pa(((D=k.previewImage)==null?void 0:D.sources)||[],52,!1))==null?void 0:e.url)||"")&&F.length?(this.previewImage=new g.Q7({X:"img",J:"ytp-preview-ad__image",D:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",F),g.b(this,this.previewImage),this.previewImage.T4(this.element)):g.JV(Error("Failed to get imageUrl in AdPreview."))}else this.U.classList.add("ytp-preview-ad__text--padding--wide")}};
g.A.clear=function(){this.hide()};
g.A.hide=function(){e_(this);$a.prototype.hide.call(this)};
g.A.show=function(){j_(this);$a.prototype.show.call(this)};
g.A.Xk=function(){this.hide()};
g.A.j1=function(){if(this.Y){var F=this.Y.getProgressState();if(F!=null&&F.current)if(F=1E3*F.current,F>=this.L)this.transition.hide();else{var k;if((k=this.S)==null?0:k.isTemplated)if(k=Math.max(0,Math.ceil((this.L-F)/1E3)),k!==this.j){var z,x;(F=(z=this.S)==null?void 0:(x=z.text)==null?void 0:x.replace("{TIME_REMAINING}",String(k)))&&g.uE(this.U,F);this.j=k}}}};g.T(v5,hL);
v5.prototype.init=function(F,k){hL.prototype.init.call(this,F,k,{});var z,x;if((F=((x=Pa(((z=k.image)==null?void 0:z.sources)||[],MWC(k),!0))==null?void 0:x.url)||"")&&F.length){z=this.EK("ytp-ad-avatar");z.src=F;var D,e;if(x=(D=k.interaction)==null?void 0:(e=D.accessibility)==null?void 0:e.label)z.alt=x;switch(k.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(k.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.JV(Error("Failed to get imageUrl in AdAvatar."))};
v5.prototype.clear=function(){this.hide()};
v5.prototype.onClick=function(F){hL.prototype.onClick.call(this,F)};g.T(c5,hL);
c5.prototype.init=function(F,k){hL.prototype.init.call(this,F,k,{});var z;F=(z=k.label)==null?void 0:z.content;if((z=F!=null&&!g.hD(F))||k.iconImage){z&&(this.buttonText=new g.Q7({X:"span",J:"ytp-ad-button-vm__text",jk:F}),g.b(this,this.buttonText),this.buttonText.T4(this.element));var x,D,e=((x=k.interaction)==null?0:(D=x.accessibility)==null?0:D.label)||z?F:"";e&&Md(this.element,e+" This link opens in new tab");Y2(this.element);if(k.iconImage){x=void 0;if(k.iconImage){a:{D=k.iconImage;if(D.sources)for(D=
g.l(D.sources),F=D.next();!F.done;F=D.next())if(F=F.value,e=void 0,(e=F.clientResource)==null?0:e.imageName){D=F;break a}D=void 0}if(D){var C;x={iconType:(C=D.clientResource)==null?void 0:C.imageName}}}C=bG(x,!1,this.L);C!=null&&(this.buttonIcon=new g.Q7({X:"span",J:"ytp-ad-button-vm__icon",Z:[C]}),g.b(this,this.buttonIcon),k.iconLeading?(XE(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):z?(this.buttonIcon.T4(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")):
(this.buttonIcon.T4(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(k.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(k.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.yI(Error("AdButton does not have label or an icon."))};
c5.prototype.clear=function(){this.hide()};
c5.prototype.onClick=function(F){hL.prototype.onClick.call(this,F)};g.T(LZp,$a);g.A=LZp.prototype;
g.A.init=function(F,k){$a.prototype.init.call(this,F,k,{});this.api.C().V("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.EK("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"),XE(this.EK("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(F=g.J(k.avatar,dZ)){var z=k.headline;if(z){var x=k.description;if(x){var D=g.J(k.button,yv);D?(this.adAvatar.init(qh("ad-avatar"),F),this.headline.init(qh("ad-simple-attributed-string"),new Ic(z)),this.description.init(qh("ad-simple-attributed-string"),new Ic(x)),z.content&&z.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),
this.adButton.init(qh("ad-button"),D),this.startMilliseconds=k.startMs||0,this.api.RF()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.sx.bind(this)),j_(this)):g.JV(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.JV(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.JV(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.JV(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
g.A.j1=function(){if(this.Y){var F=this.Y.getProgressState();F&&F.current&&1E3*F.current>=this.startMilliseconds&&(e_(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
g.A.Xk=function(){this.clear()};
g.A.onClick=function(F){this.api.pauseVideo();$a.prototype.onClick.call(this,F)};
g.A.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.sx.bind(this))};
g.A.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();$a.prototype.show.call(this)};
g.A.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();$a.prototype.hide.call(this)};
g.A.sx=function(F){F==="hidden"?this.show():this.hide()};g.T(P5,hL);g.A=P5.prototype;
g.A.init=function(F,k){hL.prototype.init.call(this,F,k,{});if(!k.label||g.hD(k.label))g.JV(Error("No label is returned for SkipAdButton."));else if(g.uE(this.j,k.label),F=bG({iconType:"SKIP_NEXT_NEW"}),F==null)g.JV(Error("Unable to retrieve icon for SkipAdButton"));else if(this.U=new g.Q7({X:"span",J:"ytp-skip-ad-button__icon",Z:[F]}),g.b(this,this.U),this.U.T4(this.element),this.api.C().experiments.Ca("enable_skip_to_next_messaging")&&(k=g.eI(k.targetId)))this.L=!0,this.element.setAttribute("data-tooltip-target-id",k),
this.element.setAttribute("data-tooltip-target-fixed","")};
g.A.onClick=function(F){F&&F.preventDefault();var k,z;MBC(F,{contentCpn:(z=(k=this.api.getVideoData(1))==null?void 0:k.clientPlaybackNonce)!=null?z:""})===0?this.api.ZQ("onAbnormalityDetected"):(hL.prototype.onClick.call(this,F),this.api.ZQ("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))};
g.A.clear=function(){this.Y.reset();this.hide()};
g.A.hide=function(){hL.prototype.hide.call(this)};
g.A.show=function(){this.Y.start();hL.prototype.show.call(this);this.L&&this.api.C().experiments.Ca("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.T(ffH,$a);g.A=ffH.prototype;
g.A.init=function(F,k){$a.prototype.init.call(this,F,k,{});F=g.J(k.preskipState,lPp);var z;if((z=this.api.getVideoData())==null?0:z.isDaiEnabled()){if(!F){g.JV(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.L=new Zj(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.Y);g.b(this,this.L);this.L.T4(this.element);var x;(x=this.L)==null||x.init(qh("preview-ad"),F);(z=this.L)!=null&&(z.transition.show(100),z.show())}(z=g.J(k.skippableState,h5n))?(k.skipOffsetMilliseconds!=
null?this.skipOffsetMilliseconds=k.skipOffsetMilliseconds:(g.yI(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.U.init(qh("skip-button"),z),this.show()):g.JV(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))};
g.A.show=function(){j_(this);$a.prototype.show.call(this)};
g.A.hide=function(){!this.isSkippable&&this.L?this.L.hide():this.U&&this.U.hide();e_(this);$a.prototype.hide.call(this)};
g.A.clear=function(){var F;(F=this.L)==null||F.clear();this.U&&this.U.clear();e_(this);$a.prototype.hide.call(this)};
g.A.Xk=function(){this.hide()};
g.A.j1=function(){if(1E3*this.Y.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var F;(F=this.L)!=null&&F.transition.hide();(F=this.U)!=null&&(F.transition.show(),F.show())}};g.T(OT,hL);
OT.prototype.init=function(F,k){hL.prototype.init.call(this,F,k,{});if(k.label){var z;((z=k.label)==null?0:z.content)&&!g.hD(k.label.content)&&(this.linkText=new g.Q7({X:"span",J:"ytp-visit-advertiser-link__text",jk:k.label.content}),g.b(this,this.linkText),this.linkText.T4(this.element));var x,D;if((x=k.interaction)==null?0:(D=x.accessibility)==null?0:D.label)Md(this.element,k.interaction.accessibility.label+" This link opens in new tab");else{var e;((e=k.label)==null?0:e.content)&&!g.hD(k.label.content)&&Md(this.element,
k.label.content+" This link opens in new tab")}Y2(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.JV(Error("No label found in VisitAdvertiserLink."))};
OT.prototype.onClick=function(F){hL.prototype.onClick.call(this,F);this.api.onAdUxClicked(this.componentType,this.layoutId)};
OT.prototype.clear=function(){this.hide()};g.T(Vv,hL);
Vv.prototype.init=function(F,k,z,x){hL.prototype.init.call(this,F,k,{});if(k.skipOrPreview){z=k.skipOrPreview;F=g.J(z,s2$);z=g.J(z,lPp);if(F)this.Wn=new ffH(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.L),g.b(this,this.Wn),this.Wn.T4(this.PR),this.Wn.init(qh("skip-ad"),F);else{var D;z&&((D=this.api.getVideoData())==null?0:D.isDaiEnabled())&&(this.S=new Zj(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.L,1),g.b(this,this.S),this.S.T4(this.PR),this.S.init(qh("ad-preview"),
z),D=this.S,D.transition.show(100),D.show())}if(D=g.J(k.skipOrPreview,s2$))var e=D.skipOffsetMilliseconds}k.playerAdCard&&(D=g.J(k.playerAdCard,Q2D))&&(this.playerAdCard=new LZp(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.L),g.b(this,this.playerAdCard),this.playerAdCard.T4(this.cR),this.playerAdCard.init(qh("ad-avatar-lockup-card"),D));k.adBadgeRenderer&&((D=g.J(k.adBadgeRenderer,JY))?(this.Y=new ac(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,!0),g.b(this,
this.Y),this.api.C().V("delhi_modern_web_player")?this.Y.T4(this.j):this.Y.T4(this.U),this.Y.init(qh("ad-badge"),D)):g.JV(Error("AdBadgeViewModel is not found in player overlay layout.")));k.adPodIndex&&(D=g.J(k.adPodIndex,uNt))&&(this.adPodIndex=new S_(this.api,this.layoutId,this.interactionLoggingClientData,this.BR),g.b(this,this.adPodIndex),this.api.C().V("delhi_modern_web_player")?this.adPodIndex.T4(this.j):this.adPodIndex.T4(this.U),this.adPodIndex.init(qh("ad-pod-index"),D));k.adInfoRenderer&&
((D=g.J(k.adInfoRenderer,d0))?(this.adInfoButton=new xa(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.element,void 0,!0),g.b(this,this.adInfoButton),F=this.api.C().V("delhi_modern_web_player")?this.j:this.U,this.Y!==void 0?F.insertBefore(this.adInfoButton.element,this.Y.element.nextSibling):this.adInfoButton.T4(F),this.adInfoButton.init(qh("ad-info-hover-text-button"),D,this.macros)):g.yI(Error("AdInfoRenderer is not found in player overlay layout.")));var C;D=(C=this.api.getVideoData())==
null?void 0:C.isDaiEnabled();k.adDurationRemaining&&D&&(C=g.J(k.adDurationRemaining,DTG))&&(this.adDurationRemaining=new Oq(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.L,x.videoAdDurationSeconds,!0),g.b(this,this.adDurationRemaining),x=this.api.C().V("delhi_modern_web_player")?this.j:this.U,this.adPodIndex!==void 0?x.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.T4(x),this.adDurationRemaining.init(qh("ad-duration-remaining"),
C,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));k.visitAdvertiserLink&&(x=g.J(k.visitAdvertiserLink,BNt))&&(this.visitAdvertiserLink=new OT(this.api,this.layoutId,this.interactionLoggingClientData,this.BR),g.b(this,this.visitAdvertiserLink),this.visitAdvertiserLink.T4(this.U),this.visitAdvertiserLink.init(qh("visit-advertiser-link"),x));k.adDisclosureBanner&&(k=g.J(k.adDisclosureBanner,NN$))&&(this.adDisclosureBanner=new bH(this.api,this.layoutId,
this.interactionLoggingClientData,this.BR),g.b(this,this.adDisclosureBanner),this.adDisclosureBanner.T4(this.Xf),this.adDisclosureBanner.init(qh("ad-disclosure-banner"),k));this.K=new yo(this.api,this.L,e,!0);g.b(this,this.K);g.Hv(this.api,this.K.element,4);this.show()};
Vv.prototype.clear=function(){this.hide()};g.T(KZC,hL);g.A=KZC.prototype;
g.A.init=function(F,k){hL.prototype.init.call(this,F,k,{});if(k!=null&&k.title)if(F=k.title)if(this.headline.init(qh("ad-simple-attributed-string"),new Ic(F)),F=g.J(k.moreInfoButton,yv)){if(this.moreInfoButton.init(qh("ad-button"),F),k.descriptions)k.descriptions.length>0&&(F=k.descriptions[0])&&(this.Y=new Hu(this.api,this.layoutId,this.interactionLoggingClientData,this.BR),g.b(this,this.Y),this.Y.T4(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.Y.init(qh("ad-simple-attributed-string"),
new Ic(F))),k.descriptions.length>1&&(k=k.descriptions[1])&&(this.L=new Hu(this.api,this.layoutId,this.interactionLoggingClientData,this.BR),g.b(this,this.L),this.L.T4(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.L.init(qh("ad-simple-attributed-string"),new Ic(k)))}else g.JV(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.JV(Error("No headline found in AdGridCardText."));else g.JV(Error("No headline found in AdGridCardText."))};
g.A.onClick=function(F){hL.prototype.onClick.call(this,F);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.A.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var F;(F=this.Y)==null||F.clear();var k;(k=this.L)==null||k.clear()};
g.A.hide=function(){this.headline.hide();this.moreInfoButton.hide();var F;(F=this.Y)==null||F.hide();var k;(k=this.L)==null||k.hide();hL.prototype.hide.call(this)};
g.A.show=function(){hL.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var F;(F=this.Y)==null||F.show();var k;(k=this.L)==null||k.show()};g.T(IX,hL);IX.prototype.init=function(F,k){hL.prototype.init.call(this,F,k,{});if(k!=null&&k.gridCards)if(k.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.JV(Error("Only single column style is currently supported in AdGridCardCollection."));else for(F=g.l(k.gridCards),k=F.next();!k.done;k=F.next()){if(k=g.J(k.value,TNp)){var z=new KZC(this.api,this.layoutId,this.interactionLoggingClientData,this.BR);g.b(this,z);z.T4(this.element);z.init(qh("ad-grid-card-text"),k);this.Y.push(z)}}else g.JV(Error("No grid cards found in AdGridCardCollection."))};
IX.prototype.show=function(){for(var F=g.l(this.Y),k=F.next();!k.done;k=F.next())k.value.show();hL.prototype.show.call(this)};
IX.prototype.clear=function(){this.hide();for(var F=g.l(this.Y),k=F.next();!k.done;k=F.next())k.value.clear()};
IX.prototype.hide=function(){for(var F=g.l(this.Y),k=F.next();!k.done;k=F.next())k.value.hide();hL.prototype.hide.call(this)};g.T(H5,$a);g.A=H5.prototype;g.A.init=function(F,k,z,x,D){D=D===void 0?0:D;$a.prototype.init.call(this,F,k,z,x);this.playerProgressOffsetMs=D;j_(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.F0.bind(this));this.api.addEventListener("resize",this.Ox.bind(this));this.api.RF()?(this.L=!0,this.api.oV(!0),this.show()):this.hide()};
g.A.j1=function(){if(this.Y){var F=this.Y.getProgressState();F&&F.current&&!this.L&&1E3*F.current>=this.playerProgressOffsetMs&&(this.L=!0,this.api.oV(!0),this.show())}};
g.A.Xk=function(){this.L&&this.api.oV(!1);this.hide()};
g.A.clear=function(){this.api.oV(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.F0.bind(this));this.api.removeEventListener("resize",this.Ox.bind(this));e_(this);this.hide()};
g.A.hide=function(){WZa(!1);$a.prototype.hide.call(this)};
g.A.show=function(){WZa(!0);$a.prototype.show.call(this)};g.T(Fnl,H5);g.A=Fnl.prototype;
g.A.init=function(F,k,z,x){if(k!=null&&k.adGridCardCollection)if(k!=null&&k.adButton){var D=Number(k.playerProgressOffsetMs||"0");isNaN(D)?H5.prototype.init.call(this,F,k,z,x):H5.prototype.init.call(this,F,k,z,x,D);F=k.headline;z=g.J(k.adAvatar,dZ);F&&z?(this.headline=new Hu(this.api,this.layoutId,this.interactionLoggingClientData,this.BR),g.b(this,this.headline),this.headline.T4(this.EK("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(qh("ad-simple-attributed-string"),new Ic(F)),
this.adAvatar=new v5(this.api,this.layoutId,this.interactionLoggingClientData,this.BR),g.b(this,this.adAvatar),this.adAvatar.T4(this.EK("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(qh("ad-avatar"),z)):this.j.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");F=g.J(k.adGridCardCollection,mTp);this.adGridCardCollection.init(qh("ad-grid-card-collection"),F);k=g.J(k.adButton,yv);this.adButton.init(qh("ad-button"),k);
this.hide()}else g.JV(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.JV(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))};
g.A.onClick=function(F){(this.adButton&&g.N_(this.adButton.element,F.target)||this.adAvatar&&g.N_(this.adAvatar.element,F.target))&&this.api.pauseVideo();H5.prototype.onClick.call(this,F);this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.A.Ox=function(){};
g.A.clear=function(){this.hide();var F;(F=this.headline)==null||F.clear();var k;(k=this.adAvatar)==null||k.clear();this.adGridCardCollection.clear();this.adButton.clear();H5.prototype.clear.call(this)};
g.A.show=function(){var F;(F=this.headline)==null||F.show();var k;(k=this.adAvatar)==null||k.show();this.adGridCardCollection.show();this.adButton.show();H5.prototype.show.call(this)};
g.A.hide=function(){var F;(F=this.headline)==null||F.hide();var k;(k=this.adAvatar)==null||k.hide();this.adGridCardCollection.hide();this.adButton.hide();H5.prototype.hide.call(this)};
g.A.F0=function(F){F==="transitioning"?(this.U.classList.remove("ytp-ad-underlay-clickable"),this.show()):F==="visible"?this.U.classList.add("ytp-ad-underlay-clickable"):F==="hidden"&&(this.hide(),this.U.classList.remove("ytp-ad-underlay-clickable"))};g.T(aX,hL);
aX.prototype.init=function(F,k){hL.prototype.init.call(this,F,k,{});if(k.attributes===void 0)g.JV(Error("No attributes found in AdDetailsLineViewModel."));else if(k.style===void 0)g.JV(Error("No style found in AdDetailsLineViewModel."));else{F=g.l(k.attributes);for(var z=F.next();!z.done;z=F.next())if(z=z.value,z.text!==void 0){z=z.text;var x=k.style,D=new Hu(this.api,this.layoutId,this.interactionLoggingClientData,this.BR);g.b(this,D);D.T4(this.element);a:switch(x){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":x="ytp-ad-details-line__text--style-responsive";
break a;default:x="ytp-ad-details-line__text--style-standard"}D.element.classList.add(x);D.init(qh("ad-simple-attributed-string"),new Ic(z));this.Y.push(D)}this.show()}};
aX.prototype.show=function(){this.Y.forEach(function(F){F.show()});
hL.prototype.show.call(this)};
aX.prototype.clear=function(){this.hide()};
aX.prototype.hide=function(){this.Y.forEach(function(F){F.hide()});
hL.prototype.hide.call(this)};g.T(So,hL);So.prototype.init=function(F,k){hL.prototype.init.call(this,F,k,{});var z,x;(F=((x=Pa(((z=k.image)==null?void 0:z.sources)||[]))==null?void 0:x.url)||"")&&F.length?(z=this.EK("ytp-image-background-image"),g.Xr(z,"backgroundImage","url("+F+")"),k.blurLevel!==void 0&&g.Xr(z,"filter","blur("+k.blurLevel+"px)"),k.gradient!==void 0&&(k=new g.Y({X:"div",WR:["ytp-image-background--gradient-vertical"]}),g.b(this,k),k.T4(this.element)),this.show()):g.JV(Error("Failed to get imageUrl in ImageBackground."))};
So.prototype.clear=function(){this.hide()};g.T(kp$,$a);g.A=kp$.prototype;g.A.init=function(F,k){$a.prototype.init.call(this,F,k,{});g.Xr(this.U,"stroke-dasharray","0 "+this.L);this.show()};
g.A.clear=function(){this.hide()};
g.A.hide=function(){e_(this);$a.prototype.hide.call(this)};
g.A.show=function(){j_(this);$a.prototype.show.call(this)};
g.A.Xk=function(){this.hide()};
g.A.j1=function(){if(this.Y){var F=this.Y.getProgressState();F!=null&&F.current!=null&&g.Xr(this.U,"stroke-dasharray",F.current/F.seekableEnd*this.L+" "+this.L)}};g.T(bz,hL);
bz.prototype.init=function(F,k){hL.prototype.init.call(this,F,k,{});if(zaD(k)){this.adAvatar=new v5(this.api,this.layoutId,this.interactionLoggingClientData,this.BR);g.b(this,this.adAvatar);this.adAvatar.T4(this.EK("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(qh("ad-avatar"),g.J(k.adAvatar,dZ));this.headline=new Hu(this.api,this.layoutId,this.interactionLoggingClientData,this.BR);g.b(this,this.headline);this.headline.T4(this.EK("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(qh("ad-simple-attributed-string"),new Ic(k.headline));if(F=g.J(k.adDetailsLine,q7t))this.detailsLine=new aX(this.api,this.layoutId,this.interactionLoggingClientData,this.BR),g.b(this,this.detailsLine),this.detailsLine.T4(this.EK("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(qh("ad-details-line"),F);this.adButton=new c5(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,!0);g.b(this,this.adButton);
this.adButton.T4(this.EK("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(qh("ad-button"),g.J(k.adButton,yv));this.adBadge=new ac(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,!0);g.b(this,this.adBadge);this.adBadge.T4(this.j);this.adBadge.init(qh("ad-badge"),g.J(k.adBadge,JY));this.adInfoButton=new xa(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.element,void 0,!0);g.b(this,this.adInfoButton);this.adInfoButton.T4(this.j);
this.adInfoButton.init(qh("ad-info-hover-text-button"),g.J(k.adInfoRenderer,d0),this.macros);if(F=g.J(k.skipAdButton,h5n))this.skipAdButton=new P5(this.api,this.layoutId,this.interactionLoggingClientData,this.BR),g.b(this,this.skipAdButton),this.skipAdButton.T4(this.element),this.skipAdButton.init(qh("skip-button"),F);this.L=new vu(k.durationMilliseconds);g.b(this,this.L);if(F=g.J(k.countdownViewModel,rOY))this.Y=new kp$(this.api,this.layoutId,this.interactionLoggingClientData,this.BR,this.L),g.b(this,
this.Y),this.Y.T4(this.EK("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.Y.init(qh("timed-pie-countdown"),F);if(k=g.J(k.imageBackground,wYl))this.imageBackground=new So(this.api,this.layoutId,this.interactionLoggingClientData,this.BR),g.b(this,this.imageBackground),this.imageBackground.T4(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(qh("image-background"),
k);this.show();this.element.focus()}};
bz.prototype.clear=function(){g.VB(this.U);this.hide()};
bz.prototype.show=function(){oYV(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();hL.prototype.show.call(this)};
bz.prototype.hide=function(){oYV(!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();hL.prototype.hide.call(this)};g.T(RX,g.uG);g.A=RX.prototype;g.A.W4=function(){return 1E3*this.api.getDuration(this.r0,!1)};
g.A.stop=function(){this.Y&&this.j9.er(this.Y)};
g.A.xj=function(){var F=this.api.getProgressState(this.r0);this.L={seekableStart:F.seekableStart,seekableEnd:F.seekableEnd,current:this.api.getCurrentTime(this.r0,!1)};this.publish("h")};
g.A.getProgressState=function(){return this.L};
g.A.fD=function(F){g.hI(F,2)&&this.publish("g")};var kP9="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.T(gZ,Wx);
gZ.prototype.j=function(F){var k=F.id,z=F.content,x=z.componentType;if(!kP9.includes(x))switch(F.actionType){case 1:F=this.api;var D=this.BR,e=z.layoutId,C=z.interactionLoggingClientData,p=z instanceof z7?z.BJ:!1,E=z instanceof z7||z instanceof tI?z.vL:!1;C=C===void 0?{}:C;p=p===void 0?!1:p;E=E===void 0?!1:E;switch(x){case "invideo-overlay":F=new Tn9(F,e,C,D);break;case "player-overlay":F=new Rc(F,e,C,D,new RX(F),E);break;case "player-overlay-layout":F=new Vv(F,e,C,D,new RX(F));break;case "survey":F=
new UT(F,e,C,D);break;case "ad-action-interstitial":F=new q6D(F,e,C,D,p,E);break;case "video-interstitial-buttoned-centered":F=new bz(F,e,C,D);break;case "survey-interstitial":F=new tY(F,e,C,D);break;case "ad-message":F=new U19(F,e,C,D,new RX(F,1));break;case "player-underlay":F=new ZI6(F,e,C,D);break;case "display-underlay-text-grid-cards":F=new Fnl(F,e,C,D,new RX(F));break;default:F=null}if(!F){g.yI(Error("No UI component returned from ComponentFactory for type: "+x));break}g.IM(this.L,k)?g.yI(Error("Ad UI component already registered: "+
k)):this.L[k]=F;F.bind(z);z instanceof kg?this.U?this.U.append(F.mX):g.yI(Error("Underlay view was not created but UnderlayRenderer was created")):this.W.append(F.mX);break;case 2:k=x9n(this,F);if(k==null)break;k.bind(z);break;case 3:z=x9n(this,F),z!=null&&(g.CC(z),g.IM(this.L,k)?(z=this.L,k in z&&delete z[k]):g.yI(Error("Ad UI component does not exist: "+k)))}};
gZ.prototype.h4=function(){g.AD(Object.values(this.L));this.L={};Wx.prototype.h4.call(this)};g.T(ikl,g.XP);g.A=ikl.prototype;g.A.create=function(){try{D9$(this),this.load(),this.created=!0,D9$(this)}catch(F){To(F instanceof Error?F:String(F))}};
g.A.load=function(){try{eaC(this)}finally{LD(TY(this.Y).fF)&&this.player.mE("ad",1)}};
g.A.destroy=function(){var F=this.player.getVideoData(1);this.Y.Y.Il.hR(F&&F.clientPlaybackNonce||"");this.unload();this.created=!1};
g.A.unload=function(){g.XP.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(k){To(k instanceof Error?k:String(k))}if(this.L!=null){var F=this.L;this.L=null;F.dispose()}this.U.reset()};
g.A.zy=function(){return!1};
g.A.getAdState=function(){return-1};
g.A.getOptions=function(){return Object.values(FLC)};
g.A.tG=function(F,k){k=k===void 0?{}:k;switch(F){case "replaceUrlMacros":return F=k,F.url?(k=BK5(this.player),Object.assign(k,F.Zua),F=g.cN(F.url,k)):F=null,F;case "onAboutThisAdPopupClosed":this.UI(k);break;case "executeCommand":F=k;F.command&&F.layoutId&&this.executeCommand(F);break;default:return null}};
g.A.vD=function(F){var k;return!((k=this.Y.Y.O3)==null||!k.get().vD(F))};
g.A.UI=function(F){F.isMuted&&pzx(TY(this.Y).vO,TY(this.Y).JI,F.layoutId);this.Af&&this.Af.UI()};
g.A.executeCommand=function(F){TY(this.Y).BR.executeCommand(F.command,F.layoutId)};g.dI("yt.player.Application.create",g.um.create);g.dI("yt.player.Application.createAlternate",g.um.create);VZn(as(),Wq7);var o$C=g.yR("ytcsi.tick");o$C&&o$C("pe");g.EL("ad",ikl);g.T(g.Mb,g.S);g.Mb.prototype.start=function(F,k,z){this.config={from:F,Gc:k,duration:z,startTime:(0,g.VE)()};this.next()};
g.Mb.prototype.stop=function(){this.delay.stop();this.config=void 0};
g.Mb.prototype.next=function(){if(this.config){var F=this.config,k=F.from,z=F.Gc,x=F.duration;F=F.startTime;var D=(0,g.VE)()-F;F=this.Y;x=dOR(F,D/x);if(x==0)F=F.G;else if(x==1)F=F.B;else{D=hg(F.G,F.W,x);var e=hg(F.W,F.S,x);F=hg(F.S,F.B,x);D=hg(D,e,x);e=hg(e,F,x);F=hg(D,e,x)}F=g.l3(F,0,1);this.callback(k+(z-k)*F);F<1&&this.delay.start()}};g.T(g.LQ,g.Y);g.A=g.LQ.prototype;g.A.hasSuggestions=function(){return this.suggestionData.length>0};
g.A.HS=function(){this.L&&this.scrollTo(this.scrollPosition-this.containerWidth)};
g.A.show=function(){g.Y.prototype.show.call(this);qC9(this)};
g.A.NC=function(){this.L&&this.scrollTo(this.scrollPosition+this.containerWidth)};
g.A.GH=function(){this.OH(this.api.Ka().getPlayerSize())};
g.A.OH=function(F){var k=this.api.isEmbedsShortsMode()?.5625:16/9,z=this.api.DT();F=F.width-(z?112:58);z=Math.ceil(F/(z?320:192));var x=(F-z*8)/z;k=Math.floor(x/k);for(var D=g.l(this.Y),e=D.next();!e.done;e=D.next())e=e.value.EK("ytp-suggestion-image"),e.style.width=x+"px",e.style.height=k+"px";this.suggestions.element.style.height=k+"px";this.j=x;this.B=k;this.containerWidth=F;this.columns=z;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.fQ(this)};
g.A.onVideoDataChange=function(){var F=this.api.C(),k=this.api.getVideoData();this.S=k.Mk?!1:F.j;this.suggestionData=k.suggestions?g.pT(k.suggestions,function(z){return z&&!z.playlistId}):[];
uxp(this);k.Mk?this.title.update({title:g.rG("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:k.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})};
g.A.scrollTo=function(F){F=g.l3(F,this.containerWidth-this.suggestionData.length*(this.j+8),0);this.G.start(this.scrollPosition,F,1E3);this.scrollPosition=F;g.fQ(this);qC9(this)};})(_yt_player);

}

/*
     FILE ARCHIVED ON 10:36:44 Apr 11, 2025 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 22:07:09 Jul 22, 2026.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  capture_cache.get: 0.875
  load_resource: 807.941 (2)
  PetaboxLoader3.resolve: 593.079 (2)
  PetaboxLoader3.datanode: 70.33 (2)
*/