ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /tmp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //tmp/08c8aa6ae2856f4b87dfca56065e0456_v3
O:13:"Curl\Response":4:{s:6:"status";i:200;s:4:"body";s:2536308:"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 LV,jRi,hls,ci,Lea,ys1,pii,Rls,As,KeR,xb,CV,ML,Jsn,OV1,fwn,TY,oR,DLY,csn,Iw1,Asa,Uj,Hi,rn,Bi,zY,me,xLV,dn,ea,aR,C1i,Maj,iVb,hu,Lq,yK,QRl,lwi,fq,DR,Au,Xis,vbs,qjf,TnL,Yji,ob1,Nns,ULb,Cq,GYw,M7,HV1,mLb,i3,dLs,Va1,Sb,nb1,q7,YD,rV,B1,zy,mr,sRa,wib,dV,s8,VK,eln,awe,$LR,taR,wV,Wew,eb,ac,$D,Fe1,bVL,W1,kYn,gba,yu,ugl,J8,jcs,hYi,pw,Lrw,Zqe,yus,Ph,RYj,KrY,IRw,Qu,cu1,Oq1,x7V,C3n,iqV,Sc,XZ,qk,Ye,TD,lRR,X1L,op,q8R,Nk,Hh,rY,NVw,Bh,zD,mz,nw,U7e,sV,wY,ap,$e,FZ,BVa,ke,j1,La,zYs,ho,m7R,d71,Zj,uK,yx,
RF,Vbf,pa,Jo,scn,OY,fa,Dj,eYL,iK,aRe,$7L,tbi,w1e,MM,xt,cv,Wrf,Frl,EDn,kya,gD1,lK,S1,XK,uZY,jps,qM,y8j,KzR,hJV,phV,RJR,ZwY,LzL,J8n,Own,fMw,Ti,c8e,oF,Dki,A8a,Hv,UY,xkV,CVi,r$,Bv,mH,zi,Vx,d$,$t,na,w$,e1,iwe,Wv,Qpa,FK,bK,uH,jV,hM,EY,g$,kt,Zm,yb,Rl,lMa,Rc,p9,K9,sY,aF,O0,Xhe,f9,Kq,Dm,cp,Il,AM,x8,Pp,C9,veL,MG,qVi,iH,TYs,SV,lH,Xs,vp,qG,TG,Y8,YVe,NYb,NG,Ukn,GDY,U0,GG,Bp,r8V,zG,BYL,m4,mkf,dj,Vcw,Vb,n9,s0,nee,wj,spa,eV,wha,eJf,al,aMa,$8,tM,Fs,bH,tcs,gj,bwR,$kY,uP,hw,LB,kDL,Zk,RN,gef,jFl,h8l,pB,KB,Jw,OS,fB,Dk,
co,Zan,yoV,R8R,pvL,IN,KHe,Jow,Aw,xd,Po,CB,OaV,Ijs,AoV,PKb,xMa,CKa,ian,lP,Sf,X7,vo,qN,Yd,oN,Xvl,US,Ho,re,Bo,m6,de,vtR,VC,nB,we,T$Y,YYn,ef,$d,tw,F7,bP,kd,ge,z8b,mMs,dMV,V1a,uj,jT,ntb,sFl,wvf,hN,LX,Z_,y2,RI,JN,fX,xJ,Mo,e8j,ajl,qo,$MY,rb,BM,FHj,use,kij,h9b,db,V2,tN,yMe,ppe,R9V,Fl,E6,K4s,bj,hf,mQ,O9n,JMb,px,Rx,zc,Kx,Jf,Ov,fm1,fx,cMw,Ix,ImL,Af,xL,P9,Cx,AM1,xGn,PHn,iu,CHf,MVf,i91,Xr,Qlj,lma,S0j,v8i,Xpf,SK,v9,qx,q0Y,TjR,Y0a,TZ,o81,YL,DMn,fjf,ox,Nx,GZ,H9,GG1,r0,B9,mw,H9R,rMw,d0,VVf,W9,z9f,dGV,w0,nx,kL,g0,
n8b,Lv,slb,ZZ,y$,wpw,amn,J4,tVl,fv,DZ,W4a,F4Y,A4,PY,g8a,jNn,h11,ME,L6l,Cv,ZXf,cY,E8Y,Rpa,LQb,jIn,hpe,pM1,yNa,iq,u7V,Sn,JN1,OXb,f_1,Dob,cNY,vY,I_j,Tq,ANR,Cjb,MT1,YQ,oT,NE,zq,QIe,mo,du,V$,l_i,S6a,wu,XMs,en,aT,TbL,oJa,UoL,NbY,GcR,t4,bq,uv,Li,Zf,yw,Rj,pi,Bbf,zps,Ki,moR,Jb,OH,jZ,fi,Df,cl,doY,pq,Ij,VTR,xN,wMe,Pl,Ci,Mq,epi,a_n,$oV,tTj,iv,Qw,lv,SZ,EJl,bXV,kcf,gJw,urn,Xk,jxe,WQw,vl,hWY,Lwi,qq,yfV,RWn,p91,Kwj,JfY,YN,OxY,fOb,Dxe,cfR,xxn,IOj,Nq,UH,Gu,Hl,r9,Bl,zu,m3,Cuj,ni,Vw,sH,MKn,w9,ixn,Qxl,lOl,Svi,eZ,$N,qvR,
aj,T0a,tb,Wl,YvV,Fk,bv,EH,kN,g9,uC,Hxn,oLR,ZG,GZ1,yM,Uxn,Lp,j6,N0e,hj,pp,B0n,Jj,Kp,Is,Aj,PB,dxL,xP,iC,VKn,QM,zWw,w9n,eWj,aOw,XH,vB,qf,$xf,Tk,YP,os,Nf,tKl,Uk,Gk,zk,Www,Fwa,mC,bxe,u6e,jTe,gLi,hzn,Loe,Zvf,ELf,Rzj,dB,VM,np,pYi,wB,sk,Koa,J4n,Ovn,tj,fZY,WB,FH,DE1,bC,IZY,Ek,c4a,A41,xEj,Pqf,kP,gB,ud,jY,hA,Lh,Za,Cqf,yZ,RQ,ph,Mnf,QTf,lZs,JA,fh,Oq,cG,IQ,AA,XYf,vQR,x4,PG,Ch,Tuw,Yrn,UEj,oQb,Gql,zzs,MR,Bun,Hvw,id,QZ,mEj,ld,dEb,SY,nQj,VnL,sTY,wYi,Th,Y4,ezj,aZ1,$EV,oQ,NR,tnn,Uq,Wof,Fo1,EQl,jj1,Gh,hZn,L31,Zi1,ybj,
RZf,BG,plL,K3a,Jb1,wH,sq,nh,Oi1,ffa,DqR,eY,aQ,$4,Ifa,Eq,k4,gH,uL,jr,hB,xqs,Pvl,Cv1,Lf,yz,JB,c7,IS,P7,ii1,lfb,Qji,SHL,Xlj,Sr,vNV,qHw,Xh,T9j,YHL,oNL,N9R,Gm,N2,H7,rK,B7,Uqs,Gui,Hij,zm,mS,rbL,dK,B9Y,zZn,mqb,Vz,dqV,nf,sz,VZs,nNb,sje,wll,eZV,afV,wK,er,aS,tB,W3i,W7,Fh,F3Y,tZl,$X,bia,bL,Ez,kX,uT,gK,EN1,ku1,gNn,jm,jsi,hY,LCj,ZpV,yjn,Rki,pB1,KCw,Jjb,OpL,yY,Ru,pN,Dfe,fGe,cj1,IGj,JY,Ajl,OR,xfe,PCb,fN,DV,cZ,CCl,Iu,AY,M6a,xZ,PZ,CN,MB,iT,QY,lT,Sm,ipn,Qse,lGj,SkV,X0,XBj,qkn,vPn,qB,TH,Yke,TB1,Ufi,rjn,Hps,YZ,BBV,zka,
mfe,V6n,dfb,nPa,ou,ssR,wB1,UR,ekV,aGw,$fs,t6R,GH,WCw,HZ,FCL,ry,BZ,EPR,zH,kkj,mW,dy,gP1,uxR,VY,sR,hys,wy,jQY,LBa,ZhV,yAw,pGw,em,KBl,tY,WZ,Ohn,fas,Iab,AAe,F0,bT,ER,kZ,gy,u8,jB,hK,L5,Z8,y0,Rg,p5,MYl,Cdn,ihR,lae,QQs,XGa,Pdi,Sql,xRe,K5,JK,qqi,THw,Yqn,cd,Ig,AK,OM,NHR,xK,v41,GhL,Hhj,URi,Pd,C5,Mg,i8,rAY,o4e,BHf,Q0,zyw,mRn,dRn,VY1,n4V,eyn,aa1,$Rs,tYs,l8,FBa,bhw,khe,g4n,YK,jSi,og,vd,LSw,hrb,Rrs,UM,Hd,KSw,JBV,OfV,fEe,cBL,zf,Bd,IEl,D2i,x2j,CLL,MrL,QS1,qzf,n5,TKj,V0,w3,YzL,eB,$K,tK,oXf,NK1,U2L,hW,Gmn,Hf1,fc,rBn,
zrf,Dx,m2L,d2f,erw,Vre,xc,Px,Cc,i6,QN,FSb,l6,Sz,XL,EXf,T8,kmn,gXa,Yc,jue,N0,Uc,G8,Hx,hjV,rl,z8,mX,dl,VN,LWb,sc,wl,ez,aH,$c,tW,ZNa,yYw,Rja,pZj,KWa,JYY,Wx,ONa,jv,fVl,DBL,cYL,hn,ZJ,ym,Rw,Jn,OC,fI,AY1,Iw,An,xB,xBf,PT1,Pn,CTj,MmR,MH,Tyj,YRj,oZf,iU,Nyw,UBY,rYn,lU,zjw,Bys,XB,dBf,VmV,nZf,qH,T6,suR,YB,ow,NH,UC,G6,Hn,rv,Bn,z6,mJ,nI,sC,wv,ev,wZR,ejj,aVl,$B,Wn,$Bs,kB,gv,uA,jp,h5,Zl,ya,bNa,RJ,pP,KP,kHn,EZn,tml,fP,OJ,hGj,Dl,Qa,CP,lA,Sp,Z5R,pdj,vS,O5V,Kcf,JKn,DgR,P8j,cKl,AKn,xgi,TT,qI,C8Y,oJ,NI,UJ,MBj,mi,i5f,dg,
Va,sJ,QgL,ep,aJ,l8V,$7,t5,Xdb,bA,k7,gg,uw,jt,h2,LF,ZD,yl,RO,qMl,pF,OO,J2,YM1,Gfa,N3R,Ugb,H51,rKn,zGi,mgf,B31,VBn,cD,IO,PD,nKL,sgj,x9,CF,eG1,a8b,FcY,Wcn,lw,St,XA,vD,qr,Y9,EKR,kfj,gKV,BD,zj,uLb,jHs,huj,sO,wN,et,LXn,Zcn,RuV,KXi,WD,JWL,EO,FA,ux,jF,LM,OcY,OW,fM,D3,cC,Av,xw,CM,AWf,x0R,ix,P6e,C6a,lx,Mzs,icn,SF,XU,QHf,lxn,XxV,Yw,qca,Tls,qp,Ycw,oca,U0i,Nlf,Gr,vce,HcV,rWe,dc,zr,Blw,zu1,V3,nM,m0l,d0Y,eF,Vze,ncn,sHf,wxi,FU,eub,axn,$0Y,tzV,WXf,FXb,bce,Ecl,EW,k8L,gc,uBs,jwn,hPn,LJl,ZIi,uI,RD,RPs,Jne,pd,OIn,DHV,
ynn,cnb,IJa,Ann,pn1,KJ1,je,hd,yS,fJa,ZP,Ld,xHl,PUs,CUb,Mve,iIV,QwL,qCn,lJb,fd,DP,ID,oBn,G6b,UHl,cb,QS,HIe,Xt,rnj,zPa,oD,BvV,$HV,mHw,aJj,Hb,tvs,bIa,rx,G_,WJe,FJj,EBR,z_,gBn,uIf,jJi,hNV,Lia,ZPn,y5V,k6j,pSe,Kin,J5Y,fln,OPb,c5i,s3,Iln,wx,ee,aD,A51,xIi,Wb,Ft,CAY,PAl,bI,MpR,QJj,SJi,lln,XSf,Tgs,v7a,pr,O2,JQ,YJY,Kr,AQ,xo,P5,o7f,Ngj,MX,GTe,lg,Q8,v5,qX,Tt,HPY,Yo,NX,r51,Gt,r5,B5,Bgn,zNY,mIY,dI1,zt,d5,VpR,V8,nr,s2,sJf,w5,es,wSa,$o,FR,W5,tQ,bg,E2,$Il,kTY,uAV,E7R,bPe,g71,us,Le,ZFV,jOs,hsj,LYb,al1,c2a,c3,Dri,xrV,
fDj,g5,IE,pe,fe,IDf,y5,Wii,tpY,Fin,hX,OFR,Ce,lD1,M_,XDL,v9b,qOL,Q5,TNR,YO1,o9n,Urj,Gjw,XY,r21,v3,BNY,zsw,drl,VtL,T3,n9j,wDL,Y1,esn,oE,N_,Ri,FYR,uUL,z3,hSw,yve,dD,pCY,Kmw,Jvi,OMn,bs,f3j,W3,Nvw,$1,FY,tX,V5,Zd,Lu,RG,Ku,cvf,Jm,fu,Dd,I3n,Avn,Am,Pxe,Cxl,MF1,iM1,Qib,l3b,SWf,XCe,vwl,qWa,Mh,Tcs,i2,l2,YWR,own,Ncl,S0,Upi,Grw,TC,YS,oG,HMV,Nh,rvf,GC,zSb,Bcw,rs,BL,zC,mP,mpn,ds,VV,dpn,VFe,nu,sD,eSn,nwn,wCs,sin,ws,e0,aG,a3j,$p1,tF1,$S,Fme,kri,EwY,tm,WL,FX,b2,ED,gs,ui,j2,hk,LG,ZK,yF,gwa,utb,jDb,Rr,pG,KG,Jk,fG,c2,
Zdn,Lbj,Ak,ydY,xp,P2,CG,Mw,ii,S2,X3,v2,qw,Tz,Yp,or,Nw,U_,Gz,H2,Kbj,B2,mj,JdY,dp,fPl,Dvs,cd1,Ada,PIR,ar,CIi,tk,$p,QDe,lPR,S3w,F3,bi,vMe,kp,gp,fQ,Db,TxV,cc,Ih,AS,Y3R,xz,q3i,Pc,CQ,Nx1,oMf,Ms,iy,Q4,ly,XE,G_n,Hd1,qs,TQ,oh,Ns,rdn,Yz,mvn,dvL,Vej,nMj,sDs,wbe,evV,GQ,Uh,zvb,tei,Hc,FbY,bdn,dT,EMl,Bc,zQ,k_s,V4,uRn,hbn,nQ,sh,LUn,wT,yQw,e$,f$n,JQw,Rb1,KUR,p5j,$z,tS,Wc,FE,by,Eh,kz,uB,cQf,xXR,L_,uhf,ZS,Pg1,MsR,Rt,Os,p_,JC,K_,l$a,Q6e,ira,S2Y,f_,X5f,Y2e,DS,It,N5R,AC,xW,PE,C_,UXi,Mj,GtL,Hrn,Qi,vE,qj,TR,YW,ot,Nj,Us,
GR,HE,rA,BE,zR,mv,rQa,B5e,dA,Vi,n_,wA,e4,at,zbn,mXY,hi,R9,non,s6b,p7,K7,I9,Ai,ebn,C7,Qv,a$L,tsl,$Xw,WUi,FUn,brl,EoL,kta,gof,jEV,uY1,hQ1,yXl,p3l,Zej,S7,X4,JXe,KGV,vA,qQ,T2,fgi,YE,o9,NQ,cXR,Igw,Uo,D_j,G2,Psl,HA,rr,BA,z2,mp,dr,Vv,n7,so,wr,e7,a9,$E,ti,WA,F4,bc,Eo,kE,gr,uS,jN,he,L6,ZX,yO,RP,p6,K6,Je,Od,f6,DX,cU,IP,Ae,x$,PU,C6,Mt,iS,QO,lS,SN,Xz,vU,qt,TP,Y$,oP,Nt,Ud,GP,HU,rQ,BU,zP,mf,dQ,VO,n6,sd,wQ,eN,aP,$$,te,WU,Fz,bS,k$,gQ,M9Y,uN,b,jM,Ed,hl,LE,ZF,QEj,Rf,SZj,yr,X3e,KE,v1e,Oi,pE,fE,DF,cs,Al,TDw,YZw,o1n,
NDe,XM,vs,iN,qZ,G3R,Hea,rXR,BDn,qZV,zQe,If,m_s,d_l,Yk,Hs,of,Ps,V9s,xk,T0,NZ,ri,sEi,CE,MZ,G0,Ui,w3L,Bs,z0,mq,di,eQn,Vr,nE,si,wi,eM,agb,$_l,WGs,FG1,tl,Ws,FM,bN,uXY,hI1,ZuV,ymL,kk,pLn,KPj,ZL,Jm1,yd,Rz,p2,K2,Jc,Ox,Oun,Dh1,cmY,fdY,Idb,AmV,Iz,Ac,PI,MF,iW,Qd,lW,xhY,SR,X2,xl,T1,Yl,oz,NF,P2V,qF,M0w,Ux,iuY,QGi,G1,ldY,HI,r1,SDe,XLe,BI,vSV,qDe,z1,TsV,YDi,oSf,NsY,mF,d1,Uhn,GCb,Vd,n2,sx,HuY,w1,eR,az,$l,rml,tc,WI,BsV,F2,zIL,bW,mhj,dhi,V0a,nSn,sGs,wLa,Ex,eIV,adw,$hf,kl,t0e,g1,WPR,uZ,FPi,jX,bun,ESn,hg,pA,kC1,KA,Jg,
ON,fA,gSj,Dq,cX,In,u31,jrb,x6,PX,Lja,CA,ZGi,ykn,hBe,RBY,p2n,KjL,iZ,JkR,QE,lZ,SX,Xo,OG1,vX,qK,Y6,fKL,on,NK,Dwa,GI,BX,HX,VE,nA,ckn,sN,wF,eX,an,IKb,tg,WX,Akl,bZ,EN,mI,k6,gF,uz,xwb,ji,hq,Ll,Piw,ZI,ys,RA,pl,Kl,OF,fl,za,mx,CiY,M2e,iGn,Qrf,sF,dM,wM,ei,lKn,S_i,X2n,aA,$x,tq,vpn,q_b,nl,TpY,Y_n,WP,opa,Fy,bz,kx,gM,uQ,ju,h0,Z1,yj,pJ,KJ,J0,Ol,RK,Gzf,HGV,D1,cm,IK,rkn,xG,zBV,Pm,CJ,mwn,MA,iQ,Qj,Su,dwV,lQ,XO,vm,qA,V21,oK,srb,w2b,eBV,NA,Ul,aKa,$wn,t2f,GK,Fjn,A0,Wji,bGR,Hm,Epl,rX,kzs,Bm,gpj,uEj,jhl,hdw,L1Y,zK,ySf,ZQV,
mh,nJ,RdY,sl,pcn,wX,K1a,JSn,eu,OQR,fbj,Dsn,cSb,aK,IbV,$G,xsf,Wm,FO,Cyi,PyR,M$i,iQb,Qhj,El,kG,gX,lbe,Sha,Xcl,vz1,qhe,TTn,YhL,ozl,NTV,Use,jI,hL,Lm,GQY,HQj,ZQ,yL,rSf,R0,pm,JL,BTV,OL,fm,DQ,zda,cT,msi,I0,dsn,AL,V$n,nzY,xf,shi,wcR,ede,PT,Cm,My,ir,QL,abe,$sR,lr,SI,Xc,t$Y,vT,qy,T$,Yf,o0,W1s,F1j,Ny,UL,bQL,G$,HT,rz,BT,t9f,Ezs,kQj,z$,gzl,uFb,jtL,mZ,dz,VL,nm,sL,wz,eI,a0,$f,tL,WT,h3n,Lvl,jD,hE,Z_R,L0,x3,f0,O_n,xjn,fSw,PBe,M4e,i_Y,CBe,QtY,lSs,Ssi,o4,qsa,Ysl,NAb,Ujj,GRR,GW,He,rCe,BAa,V4L,rE,nWb,z3V,Be,zW,m_,dE,
wEl,$ji,e3n,Fv1,haj,j9R,b_R,Lpn,n0,kRe,EWi,Rae,Jii,Kps,cia,O7w,wE,eD,Ccf,tE,M7V,qob,vEf,XAl,Soe,Q9Y,oEs,YoR,lAV,riY,H7n,Brf,k3,dQi,zas,mQe,i7R,V7e,nEj,We,ba,UQL,Nrf,G2w,s9R,Fb,Trj,eaa,$Q1,Wp1,b7L,gEj,uz1,h7b,Lf1,yes,Z6n,O61,pUn,R7a,fXb,IXw,AeV,xtl,PSb,J$,TAw,i6f,CSn,D2,Sdn,I7,v$f,qdR,XUe,A$,TQl,xT,P6,f2,CO,vWw,Mn,im,QG,Ydj,o$a,lm,NQs,Utl,GPl,Sk,XN,v6,qn,TL,o7,Nn,U7,GL,H6V,ree,H6,BQj,r4,Vj,B6,zL,mt1,z7a,ma,dtw,VNi,d4,VG,n$l,nO,sPb,wUl,oWb,lXn,e7Y,s7,DL,$k,gE,aXR,$tl,ek,Pcn,a4,tNn,O7,fO,jk,um,Ve,LO,
EEi,jPR,h$,IAf,DtR,Wfe,Z7a,gWV,a7,QPe,Uu,b6i,FfR,st1,k2j,E$l,ceY,pO,Ain,xQj,pAV,Fpf,t7e,Wvn,aSl,djn,mjV,H_a,wAL,u4Y,Kfl,fAV,DQl,yG,R7,Z2,Jew,aAj,g$e,kPn,$T,t$,W6,FN,bm,g4,h_,Ln,Zc,Rd,pn,E7,kT,yP,jfj,uMi,Kn,Og,hVR,LqR,fn,Dc,cK,Id,A_,xg,PK,Cn,psn,ip,Mm,Kqn,yls,RVe,JlR,QP,lp,OEn,fFL,SU,DZR,y3,IFj,cln,xZn,CN1,MMn,PNa,iER,Sif,od,Nm,XsL,vkj,Ug,Gd,qi1,Tib,Yin,okb,rZ,zd,ml,UZR,G0n,Bin,mZY,dZw,zVL,nn,wZ,sg,VM1,nkn,dZ,sfb,wss,eVa,aFY,VP,Fql,bEw,EkV,Wq1,tMf,$Zl,k0n,gkl,HEn,u2i,rlb,jzi,hDw,RDn,LFL,Z2j,ycb,JcY,
pIb,KFn,O2V,fLl,ad,ILL,DF1,Aci,cci,xF1,PWw,CWs,MRV,i2f,Qzw,lLf,SxL,XIi,vln,qxf,T1i,$g,olj,N1Y,UFf,Yxn,G1e,H2n,zDi,WK,Eg,gZ,mFn,u0,j5,hD,sze,eDY,wIw,$Fb,uoi,O5,Z0,aLe,nlw,VRn,dFn,JD,yT,Kk,AD,xa,LIR,PQ,Ck,I3,pXn,ZAf,ygj,KIw,M6,i0,OAn,l0,S5,XD,vQ,q6,Tn,Ya,fqj,DKn,o3,N6,Gn,Iqn,AgR,U5,HQ,CZf,MXe,rt,iAj,m$,Qnf,dt,nk,lqV,VT,s5,SN1,e5,v6e,qNi,$a,tD,ka,YNi,FD,gt,j8,o6j,Lb,E5,uO,NFa,ZW,UK1,yB,GIR,WQ,b0,TFn,hJ,RW,HAV,rga,pb,BFV,Kb,JJ,O4,fb,z6j,ca,DW,IW,AJ,mKl,dKY,xV,Pa,Cb,M8,iO,VXb,QB,lO,n6f,snR,S8,XG,va,e6L,
wXl,q8,aqb,$Kb,tXa,T5,WIl,FIw,bAR,E6s,kIV,YV,oW,N8,U4,g6a,uyL,Ha,jAe,rO,Ba,hTe,LxL,z5,Zls,yqw,Jqi,Oll,RTf,pPn,Kxa,dO,VB,nb,s4,fIV,DOL,wO,cq1,Aqw,IIY,tJ,$V,Pze,Czi,MiL,ils,Wa,QAa,bO,E4,lIY,XPs,vx1,gO,LS,oxf,k1s,R3,UOs,Gaa,HlR,rqi,BMi,Lk,uG,zTn,RV,pS,ViY,nxL,sAw,KS,$Oi,wPw,eTf,Wxf,Fxw,J3,bli,tie,Exs,Of,fS,Dp,kas,gxV,cW,IV,uOb,A3,jKw,xi,Zp,iG,hEe,glf,tRY,Qo,lG,XS,vW,qc,T9,Yi,Sh,Uf,ZJL,r2,y0f,REs,pmf,Khb,J0R,BW,f1e,z9,c0Y,mk,A0n,xAs,I1s,DAw,PQn,CQR,MuR,w2,iJR,QK1,Sll,eh,h61,$i,vGa,TXl,fk,Ylj,oGj,WW,UAf,
pk,NXf,WFe,b2s,Els,XmV,FS,bG,Ef,GKV,HJi,ki,r0b,u9,jJ,hz,LC,Zr,BXV,y6,RL,zEY,mAe,pC,KC,Jz,Ob,fC,Dr,VuY,dAf,c$,nGe,wmn,IL,eEL,sKs,H$,Ub,rS,zg,ms,nS,a1a,kK1,lN,Gg,sb,hKn,Zmf,Q6,$y,i9,tz,b9,NW,Eb,JLj,ky,gS,Omb,fQf,Dys,cLL,ut,IQw,ALR,jG,xyR,Q0e,imn,Prs,MI1,CrY,hV,lQf,Lg,SLn,XTb,qLj,Tzn,YLn,Hme,Kg,JV,zKY,OX,fg,myl,nf1,s0n,wT1,eKl,Ds,aQe,tIV,WZl,Xu,L_L,k$Y,gfi,yEb,vu,Rga,K_b,pea,JEY,Tw,N1,O0s,q1,UX,Gw,fBa,cEn,xUn,zw,sX,tV,bt,o3Y,NEn,un,gC,L3,Zy,UUY,rEe,H0s,BEY,Rb,yq,mUj,dUn,VDl,s4V,zgb,JF,n3b,wea,egw,Dy,
cz,$Ul,Bu,K3,OT,Q4n,DUs,v3s,MP,hF,UT,Wu,rm,Bz,zA,y$n,ZOw,Fu,dm,Vq,p6l,n3,Kab,J$a,EX,sT,GWY,eS,E3V,jS,OOV,Caa,Pa1,IBL,ab,tF,iOw,Mkl,l2n,S7n,ET,gm,uM,kH,h7,LU,X6l,Z5,q7Y,yA,Y7L,KU,T4b,J7,On,GLV,fU,B4a,zfs,Iv,mnf,Vkj,qT,Yq,ov,Un,nTj,GF,Hf,my,d7,VA,nU,s7n,sn,w7,$nY,eq,av,tkw,Waj,$q,Fal,bOR,ETn,kLR,t7,Wf,gTR,jd1,En,kq,jl,hG,heR,Lt,ZN,RC,pt,Kt,Llb,ZnL,JG,y_n,Ref,Oe,Kls,pKn,J_b,ft,fcV,OnV,DN,DmR,c4,IC,c_i,A_n,xmb,AG,x0,P4,Ppw,Ct,MUL,io,inj,Qde,M3,Qt,lo,Sl,vgj,TZn,lcn,qgj,Ygn,Sgb,XKb,ogb,NZs,q3,Um1,Hnn,ze1,
dmf,mma,rJ,H4,mT,ngf,dJ,Vt,nt,wKn,se,eeR,sds,wJ,tUf,el,aC,WlV,$0,Fl1,Efj,hge,EgY,bnb,ggw,kda,uD1,W4,j3n,hme,L$b,Rmn,Ee,k0,gJ,K$n,f0l,hO,L4,Ze,cDj,D61,uE,I0a,ADR,x6j,C01,yW,Tts,JO,OK,HkR,Y0,BtL,zmn,m6j,d6n,V5f,De,nan,cj,I$,AO,s3V,C4,wQn,eme,Mb,iE,a0j,$6f,t5L,W$n,F$1,QW,Pj,bks,lE,knn,gab,uGY,Sy,jWe,hRn,L7s,Zbf,yJe,RRn,pal,K7L,JJw,Obw,Xd,D8b,vj,cJi,TN,AJs,Nb,fWl,qb,UK,GN,Hj,ra,Bj,zN,x8n,mt,POV,VW,lWV,vVb,q4n,TOj,Y4R,wa,oVb,Xae,QWl,NOb,n4,U8i,Hbe,da,sK,M8j,iba,ey,rJY,BOn,S4R,COn,zRb,$2,m8V,tO,Wj,d8s,
Fd,sWY,V8e,nVn,bE,wae,EK,k2,uf,jg,eRi,aWn,$81,hh,W7a,F7L,LR,bbi,Z4,yH,EVY,k5i,gVf,uSV,jVw,h2e,pWl,ZSY,r_n,pR,J3s,OSj,y3n,R2j,LkR,Oa,A3n,Jh,KR,Kks,PG1,IpR,c3f,Dcw,fps,D4,CGY,TS,ct,IX,Ah,MhR,xU,iSs,Pt,QVf,zS,lpb,CR,N3,GS,Gdi,lf,XV,vin,qfe,vt,Tb,Sg,QH,oX,Mu,Sfn,XWn,Nu,T2n,Yfs,o$,IWw,oC,Ua,oi1,qu,N2e,Ucs,G9j,HSR,Gb,Ht,rL,B2n,z2l,mcn,dcV,Vha,G5f,zb,mL,dL,Bt,sVi,acR,$mw,VH,wWn,e21,ap1,$c1,nR,thl,sa,WkV,bSe,wL,Eii,k9s,aX,giV,eg,bf,hqf,jLn,yzY,ZCj,Rqb,p$a,Lsf,IU,upb,KsY,Aa,JzR,DWY,OCl,frR,PO,EaV,cz1,IrY,
Aze,xWL,P9a,C$,M4,i$,C91,Q_,l$,MJL,SE,iCn,QLs,XT,lrb,Sbw,X$b,vyl,vO,Oka,q4,Ybb,TX,TSj,YA,oyf,JDa,jy,NSl,oU,Uw,HCb,Ggl,V_,wh,n$,BSw,aU,zqj,mWn,$A,ta,sLY,VJL,w$Y,eqw,ar1,$Ww,tJe,Fsf,bCL,Eyb,Wse,FT,N4,gyw,dWl,uuY,nyj,b$,hHe,kgY,WO,Lgj,Ew,RHs,Ogb,pun,fsj,JVj,D1V,Zgl,kA,cVn,yVV,hy,Pte,MGe,Ctn,igV,QBn,lsV,x1a,SXj,Xun,gh,vms,qXe,TCn,YXl,U1L,NCV,oml,Zn,Gwa,rVj,BCw,zHs,m1a,pT,KT,Y2,d1b,VGf,nmf,eHf,wu1,sB1,asi,tGV,Wgb,$1R,jL,$U,bgL,Em1,kwj,yFi,jbb,hUL,LnL,RUs,KnV,xcY,yD,uPn,gmb,pzf,B4,Z3s,RX,Ue,Kg1,cFi,DPw,
Iyj,AFi,xPb,Pnw,Hgi,FV,th,O3l,CnL,fya,MSl,Fkn,i3i,AVY,Isn,JFi,Wt,fT,Dn,lyb,cr,STn,Xzf,vHY,qTe,Tmn,oHi,NmV,rFV,UPi,H3R,Bmn,Ay,VSf,mPb,dP1,wzn,eUa,ayi,$Pn,tSb,Iq,Wnj,sbn,zUf,xR,Fni,GAe,b3l,Pr,kAn,gHV,uCe,EHf,CT,LLb,hhY,Rhl,yhs,ZR1,ptb,KLi,Me,Jhn,ORa,Duf,chs,f4b,I4e,Mgl,xuL,Pfb,Cfw,iRi,QXe,l4n,Xta,Sal,vUw,qaa,TLj,oUn,NLV,Gbs,Uuf,HRn,Yaa,rhl,zhs,muR,VgL,sXj,du1,l7,wtY,ehL,BLi,a4n,nUj,SL,$uf,tgf,WLn,FLa,bRj,EUe,kbV,uTs,hFn,L2l,Z$s,yan,RFl,vr,pOL,qe,Jas,O$L,D4s,Ne,IHs,Aab,x4n,P$R,MEj,C$j,lHf,Swf,Uy,Hr,
i$e,QUi,XOY,Br,qwV,vAn,Ths,YwL,oAV,GXa,Nhw,Bhf,zV,U41,zFs,m5,nA1,VD,nT,sUe,d8,wOi,sy,$4L,aHa,d4f,VEb,tE1,W2j,F2i,m4i,b$R,w8,EAR,eFa,caV,r8,gAL,aq,uaa,jqi,h$e,L5e,ZTa,yy1,R$R,pra,K5a,JyL,$R,OTY,fnn,cyi,InR,Ayi,DeY,xen,P7j,C7l,MLY,iT1,Fa,Qql,b7,UwY,lnV,Syn,Ey,XrR,vRj,g8,YyL,oRV,uX,Uen,GVL,N8i,T8f,jA,kR,qyn,Zt,LK,HTi,yy,h1,mea,nRV,wre,e$1,$ea,B8L,sqa,tL1,z$e,W5w,F5s,OB,RZ,ERe,bTj,KK,u5V,jZn,VLl,de1,gRY,hcY,anL,ryR,fK,Dt,c_,LKa,IZ,J1i,Rcs,OKV,p_n,y1f,fti,ZKi,A1w,D$n,A1,x$i,CXf,iKa,QZf,ltY,vjj,M$,qBs,
SBb,J1,ojj,NWf,X5,jBs,xj,U$a,Geb,r1n,HKs,BWn,YBL,Qy,zcl,m$e,d$e,njw,VAe,FgY,sZ1,iX,w_l,atV,ecn,tAR,$$b,MAl,FKR,WKj,lX,P_,bKi,q$,ke1,gjw,uWn,jYw,hC1,v_,Ahn,X_e,LNR,Qbj,pK,Z8w,yZf,RCa,pyV,KNV,Te,Yj,O8l,fhi,Dzw,JZn,cZe,oZ,P51,AZi,xzn,C5n,N$,M_j,i8a,QYl,UB,lhn,Xya,v_w,qE1,Ge,SEj,H_,rW,TIf,YEn,mK,B_,ze,o_f,dW,NIn,Uz1,GlV,rZf,H8n,aZ,zCj,mzY,BIn,dzs,t1,V_b,W_,n_n,F5,sYa,wyf,t_f,$zb,b8Y,eCa,WNa,bX,ahb,FN1,E_a,klY,g_f,uJn,kj,je1,j_,gW,hna,hZ,L8,Zsn,yh,RY,yRw,Zh,Rns,p8,KDw,pVl,JZ,OE,f8,fYf,JRw,Oss,Dh,DSL,xSa,
IYs,cRY,ARl,cy,Clw,QeL,lYf,IY,SIi,XVw,Mxe,isi,Tqi,YIw,oYl,NqR,USf,GOY,Py,znV,C8,rRs,Bqn,nYR,x_,Mz,i5,Hsf,mSL,sew,Qh,l5,wVi,ens,aY1,S_,$SR,txn,WDR,FDY,bsV,EYw,kOL,jyY,gYi,hoY,LEn,yxf,Roe,rI,Dla,KEf,JxY,cxl,IiY,fi1,pHn,Axa,PDL,xll,CDn,XHj,zl,TRV,NRw,oss,Y$R,lii,S$f,M31,iYi,vsn,mN,dI,GJL,MT,oTn,HY1,n8,wI,BRL,rxb,q$b,mlL,dli,V3n,e_,nsY,EE,wHR,eow,ail,t3R,$ln,WEL,k_,gI,FEi,kJL,gse,hR,Esi,uwl,j_a,bYn,Ls,Re,hts,L91,y9,Z1n,y9V,Rtf,pJY,J9Y,K9n,Dde,c9l,O1s,A9e,xdf,fTV,JR,OI,PYa,Mdn,fs,CYs,i1s,lTn,Q_w,SQl,DY,
XJs,vnl,qQn,cV,Ie,YQn,T6w,onn,N6j,GpY,UdR,H1R,r9e,B6f,zt1,mdj,VdV,xY,AR,PV,nnw,s_b,dde,tdn,W9i,F9a,kpL,Enb,b1Y,gni,uj1,Cs,MS,j2i,h_1,L0s,ZWe,R_l,pqV,Q9,K0n,il,Sx,yIn,JIY,OWV,fCj,DVL,cIn,vV,ICf,AIl,Chw,qS,MPj,Phn,TO,YY,iWe,Q2s,SAw,vul,lCa,Xqb,NS,qAV,YAw,oub,UVR,Gol,UI,GO,HWV,TUa,z_V,BUn,rIw,HV,rq,dVe,mVe,BV,zO,VPa,mD,nuw,s2j,wq1,dq,e_j,V9,aCn,ns,sI,W0w,F0l,bWi,kon,guR,u8Y,EuV,hML,jkf,LMj,RMY,ae,KMj,p8j,Zye,yUY,JUl,Oyi,$Y,tR,fos,D9j,cUY,IoY,AUb,x9n,CRs,Mol,Tkj,lon,Spn,iyL,ovV,gq,j3,Hya,Zi,yk,rU1,Nke,
kY,KY,pY,hx,Jx,m91,Voe,d9V,O$,LY,EI,zMb,Ry,U9e,Bkj,skj,WV,fY,w8R,eMn,uD,Gsa,Di,cH,aoa,Iy,Ax,xs,$9n,toi,FMj,byi,WMi,PH,ksL,EvR,CY,gvj,Ml,iD,uqV,j5L,h5n,LOa,ZDl,R5n,KOi,p0Y,y6i,Qk,J6n,fUY,OD1,lD,S3,DJj,IUj,A6n,Xv,c6i,xJY,Pba,CbV,MQj,iDe,Q5n,lUn,ql,TJ,X0V,Sml,vOb,Ys,oy,qmn,TwL,oO1,YmR,Nwn,U$,UJL,G7a,HH,HDf,r6j,BwR,z5b,mJY,dJa,nOl,s5a,w0Y,VQi,e5R,aUl,$Js,tQs,WOl,FOV,bDR,EOf,dR,k7n,gOR,ueR,LRb,pRV,ypY,h4n,s$,Zof,jos,R4L,wR,Jpa,KRR,e3,OoR,fub,DCf,i7,cpV,C_w,MOL,iol,ay,Qol,tx,LT,luw,WH,SPl,$s,XRe,vCe,UCV,
gR,uY,h9,L1,Hoe,Gva,qPL,ZT,rpV,BoV,mCL,y7,dCR,VOn,nCj,jd,wRl,soY,R_,oCb,E$,e4j,aua,$Cs,tOi,Tos,YPl,ks,WR1,kvl,gCs,jmf,EC1,Zjf,X_,v4,u7,pkf,K8j,RwL,Jtn,u$n,ytf,FRL,Ojs,L8b,fzR,hwj,YU,r3i,kVf,p1,xA,bof,cti,PFf,J9,CFi,Mji,Atl,f1,ijR,Qml,DYn,lzY,xYY,SGw,DT,OQ,XkY,qGa,vFl,K1,YGb,A9,oFi,cJ,xn,I_,PJ,TWb,N_f,Hjs,G4e,B_R,zwl,rta,Md,C1,dYl,VjV,nFe,bjn,$Yn,tja,ewV,gFw,wkV,lY,hXj,una,Ld1,ZZn,yrf,Xw,vJ,Kdb,pNV,RXn,Tp,F8a,UQ,OZn,Nd,qd,Dan,ArY,xas,k4b,crf,r6,PJl,W8n,Jrj,Yn,CJs,Sd,MHi,iZ1,QMa,m9,d6,f6f,l6R,V7,n1,
S9Y,o_,jMf,XNs,vIY,q9w,I6i,TPa,Gp,Y9e,HJ,pU,oI1,Uaf,sQ,w6,GEb,HZf,rri,zp,BJ,BPe,UYf,zXf,maa,daV,VH1,nIa,ed,a_,eXi,tHf,Fdi,wNb,LAi,ZLn,yTb,Rxn,pwR,KAL,JT1,fvs,OLV,$n,t9,WJ,Di1,cTb,Ivf,dX,ATi,Fw,xil,bY,EQ,MK,kn,af,Pel,c6,MNL,Cea,$3,Mwf,TK,YG,w4,iL1,Q1j,lvj,Stl,Xwa,g6,qtY,TGf,uh,hI,LW,Ytn,Uij,GMV,ZC,HLj,orn,NGj,rTn,BGl,zxe,miw,dia,yI,nrR,C2w,C2,t0,s1n,wwe,bQ,Vwl,vI,ex1,avi,$i1,R2,fJ,WAY,FAj,pW,KW,bLe,JI,Ers,jP,kMl,grR,npb,OA,fW,u1n,DC,cq,j8b,I2,hOV,AI,xu,LVf,ZzL,AS1,Pq,yHn,pFs,ROw,CW,KVn,MV,ih,JHn,Ozs,
f9s,DDi,cHn,I9b,AHe,P4l,lh,xDi,C4j,MCY,ize,Q81,vhY,l9L,S1l,XFV,TfR,ohY,Nfs,UDb,Y1a,SP,GUw,Hzs,rHs,Bfb,zOj,vq,mDf,qV,To,Yu,dDY,VCb,s8n,wFi,eOn,a9n,tCf,$Dw,WVn,o2,NV,Ehl,FVa,bzV,UA,kUs,ghi,Go,Hq,umV,rU,jaw,Bq,hLi,zo,m0,Luw,dU,VI,ZHY,yPn,nW,sA,RLV,wU,pgR,Kun,tI,JPl,OHj,f71,I7b,cPY,Wq,APb,x5n,PkR,XEY,D5a,MWj,iHs,l7n,ufl,fV;LV=function(u){return function(){return ufl[u].apply(this,arguments)}};
g.Zw=function(u,h){return ufl[u]=h};
jRi=function(u){var h=0;return function(){return h<u.length?{done:!1,value:u[h++]}:{done:!0}}};
hls=function(u){u=["object"==typeof globalThis&&globalThis,u,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var h=0;h<u.length;++h){var L=u[h];if(L&&L.Math==Math)return L}throw Error("Cannot find global object");};
ci=function(u,h){if(h)a:{var L=g.Js;u=u.split(".");for(var Z=0;Z<u.length-1;Z++){var y=u[Z];if(!(y in L))break a;L=L[y]}u=u[u.length-1];Z=L[u];h=h(Z);h!=Z&&h!=null&&fV(L,u,{configurable:!0,writable:!0,value:h})}};
Lea=function(u){u={next:u};u[Symbol.iterator]=function(){return this};
return u};
g.P=function(u,h){u.prototype=ZVs(h.prototype);u.prototype.constructor=u;if(IR)IR(u,h);else for(var L in h)if(L!="prototype")if(Object.defineProperties){var Z=Object.getOwnPropertyDescriptor(h,L);Z&&Object.defineProperty(u,L,Z)}else u[L]=h[L];u.zD=h.prototype};
g.C=function(u){var h=typeof Symbol!="undefined"&&Symbol.iterator&&u[Symbol.iterator];if(h)return h.call(u);if(typeof u.length=="number")return{next:jRi(u)};throw Error(String(u)+" is not an iterable or ArrayLike");};
ys1=function(u){for(var h,L=[];!(h=u.next()).done;)L.push(h.value);return L};
g.l=function(u){return u instanceof Array?u:ys1(g.C(u))};
pii=function(u){return Rls(u,u)};
Rls=function(u,h){u.raw=h;Object.freeze&&(Object.freeze(u),Object.freeze(h));return u};
As=function(u,h){return Object.prototype.hasOwnProperty.call(u,h)};
KeR=function(u){if(!(u instanceof Object))throw new TypeError("Iterator result "+u+" is not an object");};
xb=function(){this.V=!1;this.B=null;this.N=void 0;this.G=1;this.T=this.C=0;this.Y=this.X=null};
CV=function(u){if(u.V)throw new TypeError("Generator is already running");u.V=!0};
ML=function(u,h){u.X={Dd:h,Ik:!0};u.G=u.C||u.T};
g.N=function(u,h,L){u.G=L;return{value:h}};
Jsn=function(u,h,L){h=g.C(h);var Z=h.next();KeR(Z);if(Z.done)u.N=Z.value,u.G=L;else return u.B=h,g.N(u,Z.value,L)};
g.i1=function(u){u.G=0};
g.Qn=function(u,h,L){u.C=h;L!=void 0&&(u.T=L)};
g.l1=function(u,h){u.C=0;u.T=h||0};
g.Sa=function(u,h,L){u.G=h;u.C=L||0};
g.Xf=function(u,h){u.C=h||0;h=u.X.Dd;u.X=null;return h};
g.vi=function(u,h,L,Z){Z?u.Y[Z]=u.X:u.Y=[u.X];u.C=h||0;u.T=L||0};
g.qL=function(u,h,L){L=u.Y.splice(L||0)[0];(L=u.X=u.X||L)?L.Ik?u.G=u.C||u.T:L.KI!=void 0&&u.T<L.KI?(u.G=L.KI,u.X=null):u.G=u.T:u.G=h};
OV1=function(u){this.G=new xb;this.N=u};
fwn=function(u,h){CV(u.G);var L=u.G.B;if(L)return TY(u,"return"in L?L["return"]:function(Z){return{value:Z,done:!0}},h,u.G.return);
u.G.return(h);return oR(u)};
TY=function(u,h,L,Z){try{var y=h.call(u.G.B,L);KeR(y);if(!y.done)return u.G.V=!1,y;var R=y.value}catch(p){return u.G.B=null,ML(u.G,p),oR(u)}u.G.B=null;Z.call(u.G,R);return oR(u)};
oR=function(u){for(;u.G.G;)try{var h=u.N(u.G);if(h)return u.G.V=!1,{value:h.value,done:!1}}catch(L){u.G.N=void 0,ML(u.G,L)}u.G.V=!1;if(u.G.X){h=u.G.X;u.G.X=null;if(h.Ik)throw h.Dd;return{value:h.return,done:!0}}return{value:void 0,done:!0}};
DLY=function(u){this.next=function(h){CV(u.G);u.G.B?h=TY(u,u.G.B.next,h,u.G.S):(u.G.S(h),h=oR(u));return h};
this.throw=function(h){CV(u.G);u.G.B?h=TY(u,u.G.B["throw"],h,u.G.S):(ML(u.G,h),h=oR(u));return h};
this.return=function(h){return fwn(u,h)};
this[Symbol.iterator]=function(){return this}};
csn=function(u,h){h=new DLY(new OV1(h));IR&&u.prototype&&IR(h,u.prototype);return h};
Iw1=function(u){function h(Z){return u.next(Z)}
function L(Z){return u.throw(Z)}
return new Promise(function(Z,y){function R(p){p.done?Z(p.value):Promise.resolve(p.value).then(h,L).then(R,y)}
R(u.next())})};
g.G=function(u){return Iw1(new DLY(new OV1(u)))};
g.NL=function(){for(var u=Number(this),h=[],L=u;L<arguments.length;L++)h[L-u]=arguments[L];return h};
Asa=function(u,h,L){u instanceof String&&(u=String(u));for(var Z=u.length,y=0;y<Z;y++){var R=u[y];if(h.call(L,R,y,u))return{iK:y,Y7:R}}return{iK:-1,Y7:void 0}};
Uj=function(u,h,L){if(u==null)throw new TypeError("The 'this' value for String.prototype."+L+" must not be null or undefined");if(h instanceof RegExp)throw new TypeError("First argument to String.prototype."+L+" must not be a regular expression");return u+""};
Hi=function(u,h){u instanceof String&&(u+="");var L=0,Z=!1,y={next:function(){if(!Z&&L<u.length){var R=L++;return{value:h(R,u[R]),done:!1}}Z=!0;return{done:!0,value:void 0}}};
y[Symbol.iterator]=function(){return y};
return y};
rn=function(u){return u?u:Array.prototype.fill};
Bi=function(u){return u?u:Array.prototype.copyWithin};
zY=function(u){u=Math.trunc(u)||0;u<0&&(u+=this.length);if(!(u<0||u>=this.length))return this[u]};
me=function(u){return u?u:zY};
xLV=function(u,h,L){u instanceof String&&(u=String(u));for(var Z=u.length-1;Z>=0;Z--){var y=u[Z];if(h.call(L,y,Z,u))return{iK:Z,Y7:y}}return{iK:-1,Y7:void 0}};
dn=function(u){return u?u:function(h,L){return xLV(this,h,L).iK}};
g.nV=function(u,h,L){u=u.split(".");L=L||g.Vn;for(var Z;u.length&&(Z=u.shift());)u.length||h===void 0?L[Z]&&L[Z]!==Object.prototype[Z]?L=L[Z]:L=L[Z]={}:L[Z]=h};
ea=function(u,h){var L=g.wn("CLOSURE_FLAGS");u=L&&L[u];return u!=null?u:h};
g.wn=function(u,h){u=u.split(".");h=h||g.Vn;for(var L=0;L<u.length;L++)if(h=h[u[L]],h==null)return null;return h};
aR=function(u){var h=typeof u;return h!="object"?h:u?Array.isArray(u)?"array":h:"null"};
g.ts=function(u){var h=aR(u);return h=="array"||h=="object"&&typeof u.length=="number"};
g.Wi=function(u){var h=typeof u;return h=="object"&&u!=null||h=="function"};
g.b1=function(u){return Object.prototype.hasOwnProperty.call(u,Ff)&&u[Ff]||(u[Ff]=++P11)};
C1i=function(u,h,L){return u.call.apply(u.bind,arguments)};
Maj=function(u,h,L){if(!u)throw Error();if(arguments.length>2){var Z=Array.prototype.slice.call(arguments,2);return function(){var y=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(y,Z);return u.apply(h,y)}}return function(){return u.apply(h,arguments)}};
g.Ej=function(u,h,L){g.Ej=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?C1i:Maj;return g.Ej.apply(null,arguments)};
g.gn=function(u,h){var L=Array.prototype.slice.call(arguments,1);return function(){var Z=L.slice();Z.push.apply(Z,arguments);return u.apply(this,Z)}};
g.u3=function(){return Date.now()};
iVb=function(u){return u};
g.jb=function(u,h){function L(){}
L.prototype=h.prototype;u.zD=h.prototype;u.prototype=new L;u.prototype.constructor=u;u.eY=function(Z,y,R){for(var p=Array(arguments.length-2),J=2;J<arguments.length;J++)p[J-2]=arguments[J];return h.prototype[y].apply(Z,p)}};
hu=function(u,h){if(h!==null&&h!==void 0){if(typeof h!=="object"&&typeof h!=="function")throw new TypeError("Object expected.");if(L===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var L=h[Symbol.dispose]}if(typeof L!=="function")throw new TypeError("Object not disposable.");u.stack.push({value:h,dispose:L,async:!1})}return h};
Lq=function(u){function h(R){u.error=u.hasError?new SuppressedError(R,u.error,"An error was suppressed during disposal."):R;u.hasError=!0}
function L(){for(;Z=u.stack.pop();)try{if(!Z.async&&y===1)return y=0,u.stack.push(Z),Promise.resolve().then(L);if(Z.dispose){var R=Z.dispose.call(Z.value);if(Z.async)return y|=2,Promise.resolve(R).then(L,function(p){h(p);return L()})}else y|=1}catch(p){h(p)}if(y===1)return u.hasError?Promise.reject(u.error):Promise.resolve();
if(u.hasError)throw u.error;}
var Z,y=0;L()};
yK=function(u,h,L){L=L===void 0?Error():L;var Z=Error.call(this);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.code=u;h+=":";L instanceof Error?(this.message=h+L.message,this.stack=L.stack||""):(this.message=h+String(L),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
QRl=function(u){var h=h===void 0?45:h;var L=[];Rc(u,pq,6).forEach(function(Z){Kq(Z,2)<=h&&L.push(Kq(Z,1))});
return L};
lwi=function(u){var h=h===void 0?45:h;var L=[];Rc(u,pq,6).forEach(function(Z){Kq(Z,2)>h&&L.push(Kq(Z,1))});
return L};
g.Ju=function(u){u&&typeof u.dispose=="function"&&u.dispose()};
g.O8=function(u){for(var h=0,L=arguments.length;h<L;++h){var Z=arguments[h];g.ts(Z)?g.O8.apply(null,Z):g.Ju(Z)}};
g.m=function(){this.Dr=this.Dr;this.f3=this.f3};
g.V=function(u,h){u.addOnDisposeCallback(g.gn(g.Ju,h))};
fq=function(u){u.then(function(){},function(){})};
DR=function(){g.m.apply(this,arguments);this.B=1;this[Sja]=this.dispose};
Au=function(u){return{fieldType:2,fieldName:u}};
g.xD=function(u){return{fieldType:3,fieldName:u}};
Xis=function(u){this.G=u;u.MP("/client_streamz/bg/frs",g.xD("ke"))};
vbs=function(u){this.G=u;u.MP("/client_streamz/bg/wrl",g.xD("mn"),Au("ac"),Au("sc"),g.xD("rk"),g.xD("mk"))};
qjf=function(u){this.N=u;u.C3("/client_streamz/bg/ec",g.xD("en"),g.xD("mk"))};
TnL=function(u){this.G=u;u.MP("/client_streamz/bg/el",g.xD("en"),g.xD("rk"),g.xD("mk"))};
Yji=function(u){this.N=u;u.C3("/client_streamz/bg/cec",Au("ec"),g.xD("rk"),g.xD("mk"))};
ob1=function(u){this.N=u;u.C3("/client_streamz/bg/po/csc",Au("cs"),g.xD("rk"),g.xD("mk"))};
Nns=function(u){this.N=u;u.C3("/client_streamz/bg/po/ctav",g.xD("av"),g.xD("rk"),g.xD("mk"))};
ULb=function(u){this.N=u;u.C3("/client_streamz/bg/po/cwsc",g.xD("su"),g.xD("rk"),g.xD("mk"))};
Cq=function(u,h){if(Error.captureStackTrace)Error.captureStackTrace(this,Cq);else{var L=Error().stack;L&&(this.stack=L)}u&&(this.message=String(u));h!==void 0&&(this.cause=h)};
GYw=function(){};
M7=function(){throw Error("Invalid UTF8");};
HV1=function(u,h){h=String.fromCharCode.apply(null,h);return u==null?h:u+h};
mLb=function(u){var h=!1;h=h===void 0?!1:h;if(rsj){if(h&&(Bnb?!u.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(u)))throw Error("Found an unpaired surrogate");u=(zln||(zln=new TextEncoder)).encode(u)}else{for(var L=0,Z=new Uint8Array(3*u.length),y=0;y<u.length;y++){var R=u.charCodeAt(y);if(R<128)Z[L++]=R;else{if(R<2048)Z[L++]=R>>6|192;else{if(R>=55296&&R<=57343){if(R<=56319&&y<u.length){var p=u.charCodeAt(++y);if(p>=56320&&p<=57343){R=(R-55296)*1024+
p-56320+65536;Z[L++]=R>>18|240;Z[L++]=R>>12&63|128;Z[L++]=R>>6&63|128;Z[L++]=R&63|128;continue}else y--}if(h)throw Error("Found an unpaired surrogate");R=65533}Z[L++]=R>>12|224;Z[L++]=R>>6&63|128}Z[L++]=R&63|128}}u=L===Z.length?Z:Z.subarray(0,L)}return u};
i3=function(u){g.Vn.setTimeout(function(){throw u;},0)};
dLs=function(u){return Array.prototype.map.call(u,function(h){h=h.toString(16);return h.length>1?h:"0"+h}).join("")};
Va1=function(u){for(var h=[],L=0;L<u.length;L+=2)h.push(parseInt(u.substring(L,L+2),16));return h};
g.QK=function(u){for(var h=[],L=0,Z=0;Z<u.length;Z++){var y=u.charCodeAt(Z);y<128?h[L++]=y:(y<2048?h[L++]=y>>6|192:((y&64512)==55296&&Z+1<u.length&&(u.charCodeAt(Z+1)&64512)==56320?(y=65536+((y&1023)<<10)+(u.charCodeAt(++Z)&1023),h[L++]=y>>18|240,h[L++]=y>>12&63|128):h[L++]=y>>12|224,h[L++]=y>>6&63|128),h[L++]=y&63|128)}return h};
Sb=function(u,h){return u.lastIndexOf(h,0)==0};
nb1=function(u,h){var L=u.length-h.length;return L>=0&&u.indexOf(h,L)==L};
g.Xg=function(u){return/^[\s\xa0]*$/.test(u)};
g.v1=function(u,h){return u.indexOf(h)!=-1};
q7=function(u,h){return g.v1(u.toLowerCase(),h.toLowerCase())};
g.oc=function(u,h){var L=0;u=Ty(String(u)).split(".");h=Ty(String(h)).split(".");for(var Z=Math.max(u.length,h.length),y=0;L==0&&y<Z;y++){var R=u[y]||"",p=h[y]||"";do{R=/(\d*)(\D*)(.*)/.exec(R)||["","","",""];p=/(\d*)(\D*)(.*)/.exec(p)||["","","",""];if(R[0].length==0&&p[0].length==0)break;L=YD(R[1].length==0?0:parseInt(R[1],10),p[1].length==0?0:parseInt(p[1],10))||YD(R[2].length==0,p[2].length==0)||YD(R[2],p[2]);R=R[3];p=p[3]}while(L==0)}return L};
YD=function(u,h){return u<h?-1:u>h?1:0};
g.N7=function(){var u=g.Vn.navigator;return u&&(u=u.userAgent)?u:""};
rV=function(u){return U8||Gy?H1?H1.brands.some(function(h){return(h=h.brand)&&g.v1(h,u)}):!1:!1};
B1=function(u){return g.v1(g.N7(),u)};
zy=function(){return U8||Gy?!!H1&&H1.brands.length>0:!1};
mr=function(){return zy()?!1:B1("Opera")};
sRa=function(){return zy()?!1:B1("Trident")||B1("MSIE")};
wib=function(){return zy()?rV("Microsoft Edge"):B1("Edg/")};
dV=function(){return B1("Firefox")||B1("FxiOS")};
s8=function(){return B1("Safari")&&!(VK()||(zy()?0:B1("Coast"))||mr()||(zy()?0:B1("Edge"))||wib()||(zy()?rV("Opera"):B1("OPR"))||dV()||B1("Silk")||B1("Android"))};
VK=function(){return zy()?rV("Chromium"):(B1("Chrome")||B1("CriOS"))&&!(zy()?0:B1("Edge"))||B1("Silk")};
eln=function(){return B1("Android")&&!(VK()||dV()||mr()||B1("Silk"))};
awe=function(u){var h={};u.forEach(function(L){h[L[0]]=L[1]});
return function(L){return h[L.find(function(Z){return Z in h})]||""}};
$LR=function(u){var h=g.N7();if(u==="Internet Explorer"){if(sRa())if((u=/rv: *([\d\.]*)/.exec(h))&&u[1])h=u[1];else{u="";var L=/MSIE +([\d\.]+)/.exec(h);if(L&&L[1])if(h=/Trident\/(\d.\d)/.exec(h),L[1]=="7.0")if(h&&h[1])switch(h[1]){case "4.0":u="8.0";break;case "5.0":u="9.0";break;case "6.0":u="10.0";break;case "7.0":u="11.0"}else u="7.0";else u=L[1];h=u}else h="";return h}var Z=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");L=[];for(var y;y=Z.exec(h);)L.push([y[1],y[2],y[3]||void 0]);
h=awe(L);switch(u){case "Opera":if(mr())return h(["Version","Opera"]);if(zy()?rV("Opera"):B1("OPR"))return h(["OPR"]);break;case "Microsoft Edge":if(zy()?0:B1("Edge"))return h(["Edge"]);if(wib())return h(["Edg"]);break;case "Chromium":if(VK())return h(["Chrome","CriOS","HeadlessChrome"])}return u==="Firefox"&&dV()||u==="Safari"&&s8()||u==="Android Browser"&&eln()||u==="Silk"&&B1("Silk")?(h=L[2])&&h[1]||"":""};
taR=function(u){if(zy()&&u!=="Silk"){var h=H1.brands.find(function(L){return L.brand===u});
if(!h||!h.version)return NaN;h=h.version.split(".")}else{h=$LR(u);if(h==="")return NaN;h=h.split(".")}return h.length===0?NaN:Number(h[0])};
wV=function(){return U8||Gy?!!H1&&!!H1.platform:!1};
Wew=function(){return wV()?H1.platform==="Android":B1("Android")};
eb=function(){return B1("iPhone")&&!B1("iPod")&&!B1("iPad")};
ac=function(){return eb()||B1("iPad")||B1("iPod")};
$D=function(){return wV()?H1.platform==="macOS":B1("Macintosh")};
Fe1=function(){return wV()?H1.platform==="Windows":B1("Windows")};
g.tu=function(u){return u[u.length-1]};
bVL=function(u,h){var L=u.length,Z=typeof u==="string"?u.split(""):u;for(--L;L>=0;--L)L in Z&&h.call(void 0,Z[L],L,u)};
g.Fg=function(u,h,L){h=W1(u,h,L);return h<0?null:typeof u==="string"?u.charAt(h):u[h]};
W1=function(u,h,L){for(var Z=u.length,y=typeof u==="string"?u.split(""):u,R=0;R<Z;R++)if(R in y&&h.call(L,y[R],R,u))return R;return-1};
g.b3=function(u,h,L){var Z=u.length,y=typeof u==="string"?u.split(""):u;for(--Z;Z>=0;Z--)if(Z in y&&h.call(L,y[Z],Z,u))return Z;return-1};
g.E8=function(u,h){return Ebb(u,h)>=0};
kYn=function(u){if(!Array.isArray(u))for(var h=u.length-1;h>=0;h--)delete u[h];u.length=0};
g.gV=function(u,h){h=Ebb(u,h);var L;(L=h>=0)&&g.kD(u,h);return L};
g.kD=function(u,h){return Array.prototype.splice.call(u,h,1).length==1};
g.uV=function(u,h){h=W1(u,h);h>=0&&g.kD(u,h)};
gba=function(u,h){var L=0;bVL(u,function(Z,y){h.call(void 0,Z,y,u)&&g.kD(u,y)&&L++})};
g.jc=function(u){return Array.prototype.concat.apply([],arguments)};
g.h8=function(u){var h=u.length;if(h>0){for(var L=Array(h),Z=0;Z<h;Z++)L[Z]=u[Z];return L}return[]};
g.Lw=function(u,h){for(var L=1;L<arguments.length;L++){var Z=arguments[L];if(g.ts(Z)){var y=u.length||0,R=Z.length||0;u.length=y+R;for(var p=0;p<R;p++)u[y+p]=Z[p]}else u.push(Z)}};
g.Rp=function(u,h,L,Z){Array.prototype.splice.apply(u,yu(arguments,1))};
yu=function(u,h,L){return arguments.length<=2?Array.prototype.slice.call(u,h):Array.prototype.slice.call(u,h,L)};
ugl=function(u){for(var h=0,L=0,Z={};L<u.length;){var y=u[L++],R=g.Wi(y)?"o"+g.b1(y):(typeof y).charAt(0)+y;Object.prototype.hasOwnProperty.call(Z,R)||(Z[R]=!0,u[h++]=y)}u.length=h};
g.Kw=function(u,h,L){return jcs(u,L||pw,!1,h)};
J8=function(u,h){return jcs(u,h,!0)};
jcs=function(u,h,L,Z){for(var y=0,R=u.length,p;y<R;){var J=y+(R-y>>>1),O=void 0;L?O=h.call(void 0,u[J],J,u):O=h(Z,u[J]);O>0?y=J+1:(R=J,p=!O)}return p?y:-y-1};
g.OV=function(u,h){u.sort(h||pw)};
hYi=function(u,h){var L=pw;g.OV(u,function(Z,y){return L(h(Z),h(y))})};
g.fw=function(u,h,L){if(!g.ts(u)||!g.ts(h)||u.length!=h.length)return!1;var Z=u.length;L=L||Lrw;for(var y=0;y<Z;y++)if(!L(u[y],h[y]))return!1;return!0};
pw=function(u,h){return u>h?1:u<h?-1:0};
Lrw=function(u,h){return u===h};
g.DM=function(u,h,L){L=g.Kw(u,h,L);L<0&&g.Rp(u,-(L+1),0,h)};
g.xe=function(u,h,L){var Z={};(0,g.A8)(u,function(y,R){Z[h.call(L,y,R,u)]=y});
return Z};
Zqe=function(u){for(var h=[],L=0;L<u;L++)h[L]="";return h};
yus=function(u,h){h=Array.prototype.splice.call(u,h,1);Array.prototype.splice.call(u,0,0,h[0])};
Ph=function(u){Ph[" "](u);return u};
RYj=function(u,h){try{return Ph(u[h]),!0}catch(L){}return!1};
KrY=function(u,h){var L=p1L;return Object.prototype.hasOwnProperty.call(L,u)?L[u]:L[u]=h(u)};
g.Cw=function(u){return KrY(u,function(){return g.oc(Ju1,u)>=0})};
g.Mk=function(u,h){h===void 0&&(h=0);Oq1();h=fRb[h];for(var L=Array(Math.floor(u.length/3)),Z=h[64]||"",y=0,R=0;y<u.length-2;y+=3){var p=u[y],J=u[y+1],O=u[y+2],f=h[p>>2];p=h[(p&3)<<4|J>>4];J=h[(J&15)<<2|O>>6];O=h[O&63];L[R++]=""+f+p+J+O}f=0;O=Z;switch(u.length-y){case 2:f=u[y+1],O=h[(f&15)<<2]||Z;case 1:u=u[y],L[R]=""+h[u>>2]+h[(u&3)<<4|f>>4]+O+Z}return L.join("")};
g.iV=function(u,h){if(D7L&&!h)u=g.Vn.btoa(u);else{for(var L=[],Z=0,y=0;y<u.length;y++){var R=u.charCodeAt(y);R>255&&(L[Z++]=R&255,R>>=8);L[Z++]=R}u=g.Mk(L,h)}return u};
IRw=function(u){var h=[];cu1(u,function(L){h.push(L)});
return h};
Qu=function(u){var h=u.length,L=h*3/4;L%3?L=Math.floor(L):g.v1("=.",u[h-1])&&(L=g.v1("=.",u[h-2])?L-2:L-1);var Z=new Uint8Array(L),y=0;cu1(u,function(R){Z[y++]=R});
return y!==L?Z.subarray(0,y):Z};
cu1=function(u,h){function L(O){for(;Z<u.length;){var f=u.charAt(Z++),D=lV[f];if(D!=null)return D;if(!g.Xg(f))throw Error("Unknown base64 encoding at char: "+f);}return O}
Oq1();for(var Z=0;;){var y=L(-1),R=L(0),p=L(64),J=L(64);if(J===64&&y===-1)break;h(y<<2|R>>4);p!=64&&(h(R<<4&240|p>>2),J!=64&&h(p<<6&192|J))}};
Oq1=function(){if(!lV){lV={};for(var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),h=["+/=","+/","-_=","-_.","-_"],L=0;L<5;L++){var Z=u.concat(h[L].split(""));fRb[L]=Z;for(var y=0;y<Z.length;y++){var R=Z[y];lV[R]===void 0&&(lV[R]=y)}}}};
x7V=function(u){if(!Aue)return g.Mk(u);for(var h="",L=0,Z=u.length-10240;L<Z;)h+=String.fromCharCode.apply(null,u.subarray(L,L+=10240));h+=String.fromCharCode.apply(null,L?u.subarray(L):u);return btoa(h)};
C3n=function(u){return P3w[u]||""};
iqV=function(u){if(!Aue)return Qu(u);Mba.test(u)&&(u=u.replace(Mba,C3n));u=atob(u);for(var h=new Uint8Array(u.length),L=0;L<u.length;L++)h[L]=u.charCodeAt(L);return h};
Sc=function(u){return QcY&&u!=null&&u instanceof Uint8Array};
XZ=function(u,h){lRR(h);this.G=u;if(u!=null&&u.length===0)throw Error("ByteString should be constructed with non-empty values");};
qk=function(){return S8L||(S8L=new XZ(null,vh))};
Ye=function(u){return new Uint8Array(TD(u)||0)};
TD=function(u){lRR(vh);var h=u.G;h=h==null||Sc(h)?h:typeof h==="string"?iqV(h):null;return h==null?h:u.G=h};
lRR=function(u){if(u!==vh)throw Error("illegal external caller");};
X1L=function(u,h){u.__closure__error__context__984382||(u.__closure__error__context__984382={});u.__closure__error__context__984382.severity=h};
op=function(u){u=Error(u);X1L(u,"warning");return u};
q8R=function(u,h){if(u!=null){var L;var Z=(L=vDw)!=null?L:vDw={};L=Z[u]||0;L>=h||(Z[u]=L+1,u=Error(),X1L(u,"incident"),i3(u))}};
Nk=function(u,h,L,Z){L=L===void 0?!1:L;u=typeof Symbol==="function"&&typeof Symbol()==="symbol"?(Z===void 0?0:Z)&&Symbol.for&&u?Symbol.for(u):u!=null?Symbol(u):Symbol():h;L&&TVf.add(u);return u};
Hh=function(u,h){UV||GD in u||Y8b(u,oDY);u[GD]|=h};
rY=function(u,h){UV||GD in u||Y8b(u,oDY);u[GD]=h};
NVw=function(u,h){rY(h,(u|0)&-30975)};
Bh=function(u,h){rY(h,(u|34)&-30941)};
zD=function(){return typeof BigInt==="function"};
mz=function(u){return Array.prototype.slice.call(u)};
nw=function(u){return u!==null&&typeof u==="object"&&!Array.isArray(u)&&u.constructor===Object};
U7e=function(u,h){if(u!=null)if(typeof u==="string")u=u?new XZ(u,vh):qk();else if(u.constructor!==XZ)if(Sc(u))u=u.length?new XZ(new Uint8Array(u),vh):qk();else{if(!h)throw Error();u=void 0}return u};
sV=function(u){if(u&2)throw Error();};
wY=function(u,h){if(typeof h!=="number"||h<0||h>=u.length)throw Error();};
ap=function(u){var h=iVb(ec);return h?u[h]:void 0};
$e=function(u){u.lmd=!0;return u};
FZ=function(u){var h=u;if(GyV(h)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(h))throw Error(String(h));}else if(Hqf(h)&&!Number.isSafeInteger(h))throw Error(String(h));return Wh?BigInt(u):u=ruL(u)?u?"1":"0":GyV(u)?u.trim()||"0":String(u)};
BVa=function(u,h){if(u.length>h.length)return!1;if(u.length<h.length||u===h)return!0;for(var L=0;L<u.length;L++){var Z=u[L],y=h[L];if(Z>y)return!1;if(Z<y)return!0}};
ke=function(u){var h=u>>>0;bV=h;EV=(u-h)/4294967296>>>0};
j1=function(u){if(u<0){ke(0-u);var h=g.C(uK(bV,EV));u=h.next().value;h=h.next().value;bV=u>>>0;EV=h>>>0}else ke(u)};
La=function(u,h){var L=h*4294967296+(u>>>0);return Number.isSafeInteger(L)?L:ho(u,h)};
zYs=function(u,h){var L=h&2147483648;L&&(u=~u+1>>>0,h=~h>>>0,u==0&&(h=h+1>>>0));u=La(u,h);return typeof u==="number"?L?-u:u:L?"-"+u:u};
ho=function(u,h){h>>>=0;u>>>=0;if(h<=2097151)var L=""+(4294967296*h+u);else zD()?L=""+(BigInt(h)<<BigInt(32)|BigInt(u)):(L=(u>>>24|h<<8)&16777215,h=h>>16&65535,u=(u&16777215)+L*6777216+h*6710656,L+=h*8147497,h*=2,u>=1E7&&(L+=u/1E7>>>0,u%=1E7),L>=1E7&&(h+=L/1E7>>>0,L%=1E7),L=h+m7R(L)+m7R(u));return L};
m7R=function(u){u=String(u);return"0000000".slice(u.length)+u};
d71=function(){var u=bV,h=EV;h&2147483648?zD()?u=""+(BigInt(h|0)<<BigInt(32)|BigInt(u>>>0)):(h=g.C(uK(u,h)),u=h.next().value,h=h.next().value,u="-"+ho(u,h)):u=ho(u,h);return u};
Zj=function(u){if(u.length<16)j1(Number(u));else if(zD())u=BigInt(u),bV=Number(u&BigInt(4294967295))>>>0,EV=Number(u>>BigInt(32)&BigInt(4294967295));else{var h=+(u[0]==="-");EV=bV=0;for(var L=u.length,Z=0+h,y=(L-h)%6+h;y<=L;Z=y,y+=6)Z=Number(u.slice(Z,y)),EV*=1E6,bV=bV*1E6+Z,bV>=4294967296&&(EV+=Math.trunc(bV/4294967296),EV>>>=0,bV>>>=0);h&&(h=g.C(uK(bV,EV)),u=h.next().value,h=h.next().value,bV=u,EV=h)}};
uK=function(u,h){h=~h;u?u=~u+1:h+=1;return[u,h]};
yx=function(u,h){throw Error(h===void 0?"unexpected value "+u+"!":h);};
RF=function(u){if(u!=null&&typeof u!=="number")throw Error("Value of float/double field must be a number, found "+typeof u+": "+u);return u};
Vbf=function(u){return u.displayName||u.name||"unknown type name"};
pa=function(u){if(u!=null&&typeof u!=="boolean")throw Error("Expected boolean but got "+aR(u)+": "+u);return u};
Jo=function(u){switch(typeof u){case "bigint":return!0;case "number":return Ka(u);case "string":return nDn.test(u);default:return!1}};
scn=function(u){if(typeof u!=="number")throw op("int32");if(!Ka(u))throw op("int32");return u|0};
OY=function(u){return u==null?u:scn(u)};
fa=function(u){if(u==null)return u;if(typeof u==="string"&&u)u=+u;else if(typeof u!=="number")return;return Ka(u)?u|0:void 0};
Dj=function(u){if(u==null)return u;if(typeof u==="string"&&u)u=+u;else if(typeof u!=="number")return;return Ka(u)?u>>>0:void 0};
eYL=function(u){var h=0;h=h===void 0?0:h;if(!Jo(u))throw op("int64");var L=typeof u;switch(h){case 4096:switch(L){case "string":return cv(u);case "bigint":return String(Ao(64,u));default:return xt(u)}case 8192:switch(L){case "string":return h=Pv(Number(u)),Ca(h)?u=FZ(h):(h=u.indexOf("."),h!==-1&&(u=u.substring(0,h)),u=zD()?FZ(Ao(64,BigInt(u))):FZ(w1e(u))),u;case "bigint":return FZ(Ao(64,u));default:return Ca(u)?FZ(MM(u)):FZ(xt(u))}case 0:switch(L){case "string":return cv(u);case "bigint":return FZ(Ao(64,
u));default:return MM(u)}default:return yx(h,"Unknown format requested type for int64")}};
iK=function(u){return u==null?u:eYL(u)};
aRe=function(u){if(u[0]==="-")return!1;var h=u.length;return h<20?!0:h===20&&Number(u.substring(0,6))<184467};
$7L=function(u){var h=u.length;return u[0]==="-"?h<20?!0:h===20&&Number(u.substring(0,7))>-922337:h<19?!0:h===19&&Number(u.substring(0,6))<922337};
tbi=function(u){if(u<0){j1(u);var h=ho(bV,EV);u=Number(h);return Ca(u)?u:h}h=String(u);if(aRe(h))return h;j1(u);return La(bV,EV)};
w1e=function(u){if($7L(u))return u;Zj(u);return d71()};
MM=function(u){Jo(u);u=Pv(u);Ca(u)||(j1(u),u=zYs(bV,EV));return u};
xt=function(u){Jo(u);u=Pv(u);if(Ca(u))u=String(u);else{var h=String(u);$7L(h)?u=h:(j1(u),u=d71())}return u};
cv=function(u){Jo(u);var h=Pv(Number(u));if(Ca(h))return String(h);h=u.indexOf(".");h!==-1&&(u=u.substring(0,h));return w1e(u)};
Wrf=function(u){if(u==null)return u;if(typeof u==="bigint")return Qx(u)?u=Number(u):(u=Ao(64,u),u=Qx(u)?Number(u):String(u)),u;if(Jo(u))return typeof u==="number"?MM(u):cv(u)};
Frl=function(u){if(u==null)return u;var h=typeof u;if(h==="bigint")return String(Ao(64,u));if(Jo(u)){if(h==="string")return cv(u);if(h==="number")return MM(u)}};
EDn=function(u){if(u==null)return u;var h=typeof u;if(h==="bigint")return String(bqa(64,u));if(Jo(u)){if(h==="string")return Jo(u),h=Pv(Number(u)),Ca(h)&&h>=0?u=String(h):(h=u.indexOf("."),h!==-1&&(u=u.substring(0,h)),aRe(u)||(Zj(u),u=ho(bV,EV))),u;if(h==="number")return Jo(u),u=Pv(u),u>=0&&Ca(u)?u:tbi(u)}};
kya=function(u){if(u==null||typeof u=="string"||Sc(u)||u instanceof XZ)return u};
gD1=function(u){if(typeof u!=="string")throw Error();return u};
lK=function(u){if(u!=null&&typeof u!=="string")throw Error();return u};
S1=function(u){return u==null||typeof u==="string"?u:void 0};
XK=function(u,h){if(!(u instanceof h))throw Error("Expected instanceof "+Vbf(h)+" but got "+(u&&Vbf(u.constructor)));return u};
uZY=function(u,h,L){if(u!=null&&typeof u==="object"&&u.TF===vv)return u;if(Array.isArray(u)){var Z=u[GD]|0,y=Z;y===0&&(y|=L&32);y|=L&2;y!==Z&&rY(u,y);return new h(u)}};
jps=function(u){return u};
qM=function(u){return u};
y8j=function(u,h,L,Z){return hJV(u,h,L,Z,LzL,ZwY)};
KzR=function(u,h,L,Z){return hJV(u,h,L,Z,RJR,phV)};
hJV=function(u,h,L,Z,y,R){if(!L.length&&!Z)return 0;for(var p=0,J=0,O=0,f=0,D=0,c=L.length-1;c>=0;c--){var I=L[c];Z&&c===L.length-1&&I===Z||(f++,I!=null&&O++)}if(Z)for(var A in Z)c=+A,isNaN(c)||(D+=J8n(c),J++,c>p&&(p=c));f=y(f,O)+R(J,p,D);A=O;c=J;I=p;for(var x=D,Q=L.length-1;Q>=0;Q--){var S=L[Q];if(!(S==null||Z&&Q===L.length-1&&S===Z)){S=Q-h;var v=y(S,A)+R(c,I,x);v<f&&(u=1+S,f=v);c++;A--;x+=J8n(S);I=Math.max(I,S)}}h=y(0,0)+R(c,I,x);h<f&&(u=0,f=h);if(Z){c=J;I=p;x=D;A=O;for(var T in Z)Z=+T,isNaN(Z)||
Z>=1024||(c--,A++,x-=T.length,p=y(Z,A)+R(c,I,x),p<f&&(u=1+Z,f=p))}return u};
phV=function(u,h,L){return L+u*3+(u>1?u-1:0)};
RJR=function(u,h){return(u>1?u-1:0)+(u-h)*4};
ZwY=function(u,h){return u==0?0:9*Math.max(1<<32-Math.clz32(u+u/2-1),4)<=h?u==0?0:u<4?100+(u-1)*16:u<6?148+(u-4)*16:u<12?244+(u-6)*16:u<22?436+(u-12)*19:u<44?820+(u-22)*17:52+32*u:40+4*h};
LzL=function(u){return 40+4*u};
J8n=function(u){return u>=100?u>=1E4?Math.ceil(Math.log10(1+u)):u<1E3?3:4:u<10?1:2};
Own=function(u,h,L){var Z=mz(u),y=Z.length,R=h&256?Z[y-1]:void 0;y+=R?-1:0;for(h=h&512?1:0;h<y;h++)Z[h]=L(Z[h]);if(R){h=Z[h]={};for(var p in R)h[p]=L(R[p])}(u=ap(u))&&(Z[ec]=mz(u));return Z};
fMw=function(u,h,L,Z,y){if(u!=null){if(Array.isArray(u)){var R=u[GD]|0;return u.length===0&&R&1?void 0:y&&R&2?u:Ti(u,h,L,Z!==void 0,y)}return h(u,Z)}};
Ti=function(u,h,L,Z,y){var R=Z||L?u[GD]|0:0,p=Z?!!(R&32):void 0;Z=mz(u);for(var J=0,O=Z.length,f=0;f<O;f++){var D=Z[f];if(f===O-1&&nw(D)){var c=void 0;var I=h,A=L,x=p,Q=y,S=void 0;for(c in D){var v=fMw(D[c],I,A,x,Q);if(v!=null){var T=void 0;((T=S)!=null?T:S={})[c]=v}}c=S}else c=fMw(Z[f],h,L,p,y);Z[f]=c;c!=null&&(J=f+1)}J<O&&(Z.length=J);L&&((u=ap(u))&&(Z[ec]=mz(u)),L(R,Z));return Z};
c8e=function(u){switch(typeof u){case "number":return Number.isFinite(u)?u:""+u;case "bigint":return Qx(u)?Number(u):""+u;case "boolean":return u?1:0;case "object":if(Sc(u))return x7V(u);if(u.TF===vv)return Dki(u);if(u instanceof XZ){var h=u.G;return h==null?"":typeof h==="string"?h:u.G=x7V(h)}return}return u};
oF=function(u,h){h&&(Yt=h===qM||h!==jps&&h!==y8j&&h!==KzR?qM:h);try{return Dki(u)}finally{Yt=void 0}};
Dki=function(u){var h=u.Mp;u=Ti(h,c8e,void 0,void 0,!1);var L=h[GD]|0;if((h=u.length)&&!(L&512)){var Z=u[h-1],y=!1;nw(Z)?(h--,y=!0):Z=void 0;var R,p=(R=Yt)!=null?R:qM;R=L&512?0:-1;L=h-R;p=p(L,R,u,Z);Z&&(u[h]=void 0);if(L<p&&Z){L=!0;for(var J in Z){var O=+J;O<=p?(y=O+R,u[y]=Z[J],h=Math.max(y+1,h),y=!1,delete Z[J]):L=!1}L&&(Z=void 0)}for(L=h-1;h>0;L=h-1)if(J=u[L],J==null)h--,y=!0;else if(L-=R,L>=p)y=void 0,((y=Z)!=null?y:Z={})[L]=J,h--,y=!0;else break;y&&(u.length=h);Z&&u.push(Z)}return u};
A8a=function(u){switch(typeof u){case "boolean":return NM||(NM=[0,void 0,!0]);case "number":return u>0?void 0:u===0?IMb||(IMb=[0,void 0]):[-u,void 0];case "string":return[0,u];case "object":return u}};
Hv=function(u,h,L){u=UY(u,h[0],h[1],L?1:2);h!==NM&&L&&Hh(u,16384);return u};
UY=function(u,h,L,Z){if(u==null){var y=96;L?(u=[L],y|=512):u=[];h&&(y=y&-33521665|(h&1023)<<15)}else{if(!Array.isArray(u))throw Error("narr");y=u[GD]|0;16384&y||!(64&y)||2&y||xkV();if(y&2048)throw Error("farr");if(y&64)return u;Z===1||Z===2||(y|=64);if(L&&(y|=512,L!==u[0]))throw Error("mid");a:{L=u;if(Z=L.length){var R=Z-1;if(nw(L[R])){y|=256;h=R-(y&512?0:-1);if(h>=1024)throw Error("pvtlmt");y=y&-33521665|(h&1023)<<15;break a}}if(h){h=Math.max(h,Z-(y&512?0:-1));if(h>1024)throw Error("spvt");y=y&-33521665|
(h&1023)<<15}}}rY(u,y);return u};
xkV=function(){q8R(PVj,5)};
CVi=function(u,h,L){L=L===void 0?Bh:L;if(u!=null){if(QcY&&u instanceof Uint8Array)return h?u:new Uint8Array(u);if(Array.isArray(u)){var Z=u[GD]|0;if(Z&2)return u;h&&(h=Z===0||!!(Z&32)&&!(Z&64||!(Z&16)));return h?(rY(u,(Z|34)&-12293),u):Ti(u,CVi,Z&4?Bh:L,!0,!0)}u.TF===vv&&(L=u.Mp,Z=L[GD]|0,u=Z&2?u:new u.constructor(r$(L,Z,!0)));return u}};
r$=function(u,h,L){var Z=L||h&2?Bh:NVw,y=!!(h&32);u=Own(u,h,function(R){return CVi(R,y,Z)});
Hh(u,32|(L?2:0));return u};
Bv=function(u){var h=u.Mp,L=h[GD]|0;return L&2?new u.constructor(r$(h,L,!1)):u};
mH=function(u,h){u=u.Mp;return zi(u,u[GD]|0,h)};
zi=function(u,h,L,Z){if(L===-1)return null;var y=L+(h&512?0:-1),R=u.length-1;if(y>=R&&h&256)return u[R][L];if(Z&&h&256&&(h=u[R][L],h!=null))return u[y]!=null&&q8R(McR,4),h;if(y<=R)return u[y]};
Vx=function(u,h,L){var Z=u.Mp,y=Z[GD]|0;sV(y);d$(Z,y,h,L);return u};
d$=function(u,h,L,Z){var y=h&512?0:-1,R=L+y,p=u.length-1;if(R>=p&&h&256)return u[p][L]=Z,h;if(R<=p)return u[R]=Z,h&256&&(u=u[p],L in u&&delete u[L]),h;Z!==void 0&&(p=h>>15&1023||536870912,L>=p?Z!=null&&(R={},u[p+y]=(R[L]=Z,R),h|=256,rY(u,h)):u[R]=Z);return h};
$t=function(u,h,L,Z,y,R){var p=u.Mp;u=p[GD]|0;Z=2&u?1:Z;R=!!R;y=na(p,u,h,y);var J=y[GD]|0;if(!(4&J)){4&J&&(y=mz(y),J=sY(J,u),u=d$(p,u,h,y));for(var O=0,f=0;O<y.length;O++){var D=L(y[O]);D!=null&&(y[f++]=D)}f<O&&(y.length=f);J=w$(J,u);L=(J|20)&-4097;J=L&=-8193;rY(y,J);2&J&&Object.freeze(y)}Z===1||Z===4&&32&J?e1(J)||(R=J,J|=2,J!==R&&rY(y,J),Object.freeze(y)):(Z===2&&e1(J)&&(y=mz(y),J=sY(J,u),J=aF(J,u,R),rY(y,J),u=d$(p,u,h,y)),e1(J)||(h=J,J=aF(J,u,R),J!==h&&rY(y,J)));return y};
na=function(u,h,L,Z){u=zi(u,h,L,Z);return Array.isArray(u)?u:to};
w$=function(u,h){u===0&&(u=sY(u,h));return u|1};
e1=function(u){return!!(2&u)&&!!(4&u)||!!(2048&u)};
iwe=function(u){return U7e(u,!0)};
Wv=function(u,h){u=u.Mp;var L=u[GD]|0,Z=zi(u,L,h),y=iwe(Z);y!=null&&y!==Z&&d$(u,L,h,y);return y==null?qk():y};
Qpa=function(u,h,L){var Z=u.Mp,y=Z[GD]|0;sV(y);if(h==null)return d$(Z,y,3),u;if(!Array.isArray(h))throw op();var R=h[GD]|0,p=R,J=e1(R),O=J||Object.isFrozen(h);J||(R=0);O||(h=mz(h),p=0,R=sY(R,y),R=aF(R,y,!0),O=!1);R|=21;J=4&R?4096&R?4096:8192&R?8192:0:void 0;J=J!=null?J:0;for(var f=0;f<h.length;f++){var D=h[f],c=L(D,J);Object.is(D,c)||(O&&(h=mz(h),p=0,R=sY(R,y),R=aF(R,y,!0),O=!1),h[f]=c)}R!==p&&(O&&(h=mz(h),R=sY(R,y),R=aF(R,y,!0)),rY(h,R));d$(Z,y,3,h);return u};
FK=function(u,h,L,Z){var y=u.Mp,R=y[GD]|0;sV(R);d$(y,R,h,(Z==="0"?Number(L)===0:L===Z)?void 0:L);return u};
bK=function(u,h,L,Z,y){sV(h);var R=!!(64&h)||!(16384&h);y=na(u,h,L,y);var p=y!==to;if(R||!p){var J=R=p?y[GD]|0:0;if(!p||2&J||e1(J)||4&J&&!(32&J))y=mz(y),J=sY(J,h),h=d$(u,h,L,y);J=w$(J,h)&-13;J=aF(Z?J&-17:J|16,h,!0);J!==R&&rY(y,J)}return y};
uH=function(u,h,L,Z){var y=u.Mp,R=y[GD]|0;sV(R);if(Z==null){var p=EY(y);if(kt(p,y,R,L)===h)p.set(L,0);else return u}else R=g$(y,R,L,h);d$(y,R,h,Z);return u};
jV=function(u,h,L,Z){var y=u[GD]|0;y=g$(u,y,L,h);d$(u,y,h,Z)};
hM=function(u,h){u=u.Mp;return kt(EY(u),u,u[GD]|0,h)};
EY=function(u){if(UV){var h;return(h=u[L9])!=null?h:u[L9]=new Map}if(L9 in u)return u[L9];h=new Map;Object.defineProperty(u,L9,{value:h});return h};
g$=function(u,h,L,Z){L.includes(Z);var y=EY(u),R=kt(y,u,h,L);R!==Z&&(R&&(h=d$(u,h,R)),y.set(L,Z));return h};
kt=function(u,h,L,Z){var y=u.get(Z);if(y!=null)return y;for(var R=y=0;R<Z.length;R++){var p=Z[R];zi(h,L,p)!=null&&(y!==0&&(L=d$(h,L,y)),y=p)}u.set(Z,y);return y};
Zm=function(u,h,L,Z){var y=u[GD]|0;Z=zi(u,y,L,Z);var R;if(Z!=null&&Z.TF===vv)return h=Bv(Z),h!==Z&&d$(u,y,L,h),h.Mp;if(Array.isArray(Z)){var p=Z[GD]|0;p&2?R=Hv(r$(Z,p,!1),h,!0):p&64?R=Z:R=Hv(R,h,!0)}else R=Hv(void 0,h,!0);R!==Z&&d$(u,y,L,R);return R};
yb=function(u,h,L,Z){u=u.Mp;var y=u[GD]|0;Z=zi(u,y,L,Z);h=uZY(Z,h,y);h!==Z&&h!=null&&d$(u,y,L,h);return h};
Rl=function(u,h,L,Z){h=yb(u,h,L,Z===void 0?!1:Z);if(h==null)return h;u=u.Mp;Z=u[GD]|0;if(!(Z&2)){var y=Bv(h);y!==h&&(h=y,d$(u,Z,L,h))}return h};
lMa=function(u,h,L,Z,y,R,p){u=u.Mp;var J=!!(2&h),O=J?1:y;R=!!R;p&&(p=!J);y=na(u,h,Z);var f=y[GD]|0;J=!!(4&f);if(!J){f=w$(f,h);var D=y,c=h,I=!!(2&f);I&&(c|=2);for(var A=!I,x=!0,Q=0,S=0;Q<D.length;Q++){var v=uZY(D[Q],L,c);if(v instanceof L){if(!I){var T=!!((v.Mp[GD]|0)&2);A&&(A=!T);x&&(x=T)}D[S++]=v}}S<Q&&(D.length=S);f|=4;f=x?f|16:f&-17;f=A?f|8:f&-9;rY(D,f);I&&Object.freeze(D)}if(p&&!(8&f||!y.length&&(O===1||O===4&&32&f))){e1(f)&&(y=mz(y),f=sY(f,h),h=d$(u,h,Z,y));L=y;p=f;for(D=0;D<L.length;D++)f=L[D],
c=Bv(f),f!==c&&(L[D]=c);p|=8;p=L.length?p&-17:p|16;rY(L,p);f=p}O===1||O===4&&32&f?e1(f)||(h=f,f|=!y.length||16&f&&(!J||32&f)?2:2048,f!==h&&rY(y,f),Object.freeze(y)):(O===2&&e1(f)&&(y=mz(y),f=sY(f,h),f=aF(f,h,R),rY(y,f),h=d$(u,h,Z,y)),e1(f)||(Z=f,f=aF(f,h,R),f!==Z&&rY(y,f)));return y};
Rc=function(u,h,L){var Z=u.Mp[GD]|0;return lMa(u,Z,h,L,void 0===SVw?2:4,!1,!(2&Z))};
p9=function(u,h,L,Z){Z!=null?XK(Z,h):Z=void 0;return Vx(u,L,Z)};
K9=function(u,h,L,Z){var y=u.Mp,R=y[GD]|0;sV(R);if(Z==null)return d$(y,R,L),u;if(!Array.isArray(Z))throw op();for(var p=Z[GD]|0,J=p,O=e1(p),f=O||Object.isFrozen(Z),D=!0,c=!0,I=0;I<Z.length;I++){var A=Z[I];XK(A,h);O||(A=!!((A.Mp[GD]|0)&2),D&&(D=!A),c&&(c=A))}O||(p=D?13:5,p=c?p|16:p&-17);f&&p===J||(Z=mz(Z),J=0,p=sY(p,R),p=aF(p,R,!0));p!==J&&rY(Z,p);d$(y,R,L,Z);return u};
sY=function(u,h){u=(2&h?u|2:u&-3)|32;return u&=-2049};
aF=function(u,h,L){32&h&&L||(u&=-33);return u};
O0=function(u,h,L,Z){var y=u.Mp[GD]|0;sV(y);u=lMa(u,y,L,h,2,!0);Z=Z!=null?XK(Z,L):new L;u.push(Z);u[GD]=(Z.Mp[GD]|0)&2?u[GD]&-9:u[GD]&-17};
Xhe=function(u){u=mH(u,1);var h=h===void 0?!1:h;var L=typeof u;h=u==null?u:L==="bigint"?String(Ao(64,u)):Jo(u)?L==="string"?cv(u):h?xt(u):MM(u):void 0;return h};
f9=function(u,h){return S1(mH(u,h))};
Kq=function(u,h,L){L=L===void 0?0:L;var Z;return(Z=fa(mH(u,h)))!=null?Z:L};
Dm=function(u,h){var L=L===void 0?0:L;var Z;return(Z=Dj(mH(u,h)))!=null?Z:L};
cp=function(u,h){var L=L===void 0?"":L;var Z;return(Z=f9(u,h))!=null?Z:L};
Il=function(u,h){var L=L===void 0?0:L;u=mH(u,h);u=u==null?u:Ka(u)?u|0:void 0;return u!=null?u:L};
AM=function(u,h,L){return Vx(u,h,iK(L))};
x8=function(u,h,L){return Vx(u,h,lK(L))};
Pp=function(u,h,L){return FK(u,h,lK(L),"")};
C9=function(u,h,L){if(L!=null){if(!Ka(L))throw op("enum");L|=0}return Vx(u,h,L)};
veL=function(u,h){return Error("Invalid wire type: "+u+" (at position "+h+")")};
MG=function(){return Error("Failed to read varint, encoding is invalid.")};
qVi=function(u,h){return Error("Tried to read past the end of the data "+h+" > "+u)};
iH=function(u){if(typeof u==="string")return{buffer:iqV(u),Dp:!1};if(Array.isArray(u))return{buffer:new Uint8Array(u),Dp:!1};if(u.constructor===Uint8Array)return{buffer:u,Dp:!1};if(u.constructor===ArrayBuffer)return{buffer:new Uint8Array(u),Dp:!1};if(u.constructor===XZ)return{buffer:TD(u)||new Uint8Array(0),Dp:!0};if(u instanceof Uint8Array)return{buffer:new Uint8Array(u.buffer,u.byteOffset,u.byteLength),Dp:!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");
};
TYs=function(u,h){this.N=null;this.T=!1;this.G=this.X=this.B=0;this.init(u,void 0,void 0,h)};
SV=function(u){var h=0,L=0,Z=0,y=u.N,R=u.G;do{var p=y[R++];h|=(p&127)<<Z;Z+=7}while(Z<32&&p&128);Z>32&&(L|=(p&127)>>4);for(Z=3;Z<32&&p&128;Z+=7)p=y[R++],L|=(p&127)<<Z;lH(u,R);if(p<128)return zYs(h>>>0,L>>>0);throw MG();};
lH=function(u,h){u.G=h;if(h>u.X)throw qVi(u.X,h);};
Xs=function(u){var h=u.N,L=u.G,Z=h[L++],y=Z&127;if(Z&128&&(Z=h[L++],y|=(Z&127)<<7,Z&128&&(Z=h[L++],y|=(Z&127)<<14,Z&128&&(Z=h[L++],y|=(Z&127)<<21,Z&128&&(Z=h[L++],y|=Z<<28,Z&128&&h[L++]&128&&h[L++]&128&&h[L++]&128&&h[L++]&128&&h[L++]&128)))))throw MG();lH(u,L);return y};
vp=function(u){var h=u.N,L=u.G,Z=h[L+0],y=h[L+1],R=h[L+2];h=h[L+3];lH(u,u.G+4);return(Z<<0|y<<8|R<<16|h<<24)>>>0};
qG=function(u){var h=vp(u);u=vp(u);return La(h,u)};
TG=function(u){var h=vp(u),L=vp(u);u=(L>>31)*2+1;var Z=L>>>20&2047;h=4294967296*(L&1048575)+h;return Z==2047?h?NaN:u*Infinity:Z==0?u*4.9E-324*h:u*Math.pow(2,Z-1075)*(h+4503599627370496)};
Y8=function(u){for(var h=0,L=u.G,Z=L+10,y=u.N;L<Z;){var R=y[L++];h|=R;if((R&128)===0)return lH(u,L),!!(h&127)}throw MG();};
YVe=function(u,h){if(h<0)throw Error("Tried to read a negative byte length: "+h);var L=u.G,Z=L+h;if(Z>u.X)throw qVi(h,u.X-L);u.G=Z;return L};
NYb=function(u,h){if(h==0)return qk();var L=YVe(u,h);u.qd&&u.T?L=u.N.subarray(L,L+h):(u=u.N,h=L+h,L=L===h?new Uint8Array(0):oeV?u.slice(L,h):new Uint8Array(u.subarray(L,h)));return L.length==0?qk():new XZ(L,vh)};
NG=function(u,h){if(ol.length){var L=ol.pop();L.init(u,void 0,void 0,h);u=L}else u=new TYs(u,h);this.G=u;this.X=this.G.G;this.N=this.B=-1;Ukn(this,h)};
Ukn=function(u,h){h=h===void 0?{}:h;u.r$=h.r$===void 0?!1:h.r$};
GDY=function(u){var h=u.G;if(h.G==h.X)return!1;u.X=u.G.G;var L=Xs(u.G)>>>0;h=L>>>3;L&=7;if(!(L>=0&&L<=5))throw veL(L,u.X);if(h<1)throw Error("Invalid field number: "+h+" (at position "+u.X+")");u.B=h;u.N=L;return!0};
U0=function(u){switch(u.N){case 0:u.N!=0?U0(u):Y8(u.G);break;case 1:u=u.G;lH(u,u.G+8);break;case 2:if(u.N!=2)U0(u);else{var h=Xs(u.G)>>>0;u=u.G;lH(u,u.G+h)}break;case 5:u=u.G;lH(u,u.G+4);break;case 3:h=u.B;do{if(!GDY(u))throw Error("Unmatched start-group tag: stream EOF");if(u.N==4){if(u.B!=h)throw Error("Unmatched end-group tag");break}U0(u)}while(1);break;default:throw veL(u.N,u.X);}};
GG=function(u,h,L){var Z=u.G.X,y=Xs(u.G)>>>0,R=u.G.G+y,p=R-Z;p<=0&&(u.G.X=R,L(h,u,void 0,void 0,void 0),p=R-u.G.G);if(p)throw Error("Message parsing ended unexpectedly. Expected to read "+(y+" bytes, instead read "+(y-p)+" bytes, either the data ended unexpectedly or the message misreported its own length"));u.G.G=R;u.G.X=Z};
Bp=function(u){var h=Xs(u.G)>>>0;u=u.G;var L=YVe(u,h);u=u.N;if(HwY){var Z=u,y;(y=Hp)||(y=Hp=new TextDecoder("utf-8",{fatal:!0}));h=L+h;Z=L===0&&h===Z.length?Z:Z.subarray(L,h);try{var R=y.decode(Z)}catch(f){if(rj===void 0){try{y.decode(new Uint8Array([128]))}catch(D){}try{y.decode(new Uint8Array([97])),rj=!0}catch(D){rj=!1}}!rj&&(Hp=void 0);throw f;}}else{R=L;h=R+h;L=[];for(var p=null,J,O;R<h;)J=u[R++],J<128?L.push(J):J<224?R>=h?M7():(O=u[R++],J<194||(O&192)!==128?(R--,M7()):L.push((J&31)<<6|O&63)):
J<240?R>=h-1?M7():(O=u[R++],(O&192)!==128||J===224&&O<160||J===237&&O>=160||((y=u[R++])&192)!==128?(R--,M7()):L.push((J&15)<<12|(O&63)<<6|y&63)):J<=244?R>=h-2?M7():(O=u[R++],(O&192)!==128||(J<<28)+(O-144)>>30!==0||((y=u[R++])&192)!==128||((Z=u[R++])&192)!==128?(R--,M7()):(J=(J&7)<<18|(O&63)<<12|(y&63)<<6|Z&63,J-=65536,L.push((J>>10&1023)+55296,(J&1023)+56320))):M7(),L.length>=8192&&(p=HV1(p,L),L.length=0);R=HV1(p,L)}return R};
r8V=function(u){var h=Xs(u.G)>>>0;return NYb(u.G,h)};
zG=function(u,h,L){this.Mp=UY(u,h,L)};
BYL=function(u,h){if(h==null||h=="")return new u;h=JSON.parse(h);if(!Array.isArray(h))throw Error("dnarr");Hh(h,32);return new u(h)};
m4=function(u,h){this.N=u>>>0;this.G=h>>>0};
mkf=function(u){if(!u)return zJY||(zJY=new m4(0,0));if(!/^\d+$/.test(u))return null;Zj(u);return new m4(bV,EV)};
dj=function(u,h){this.N=u>>>0;this.G=h>>>0};
Vcw=function(u){if(!u)return dkV||(dkV=new dj(0,0));if(!/^-?\d+$/.test(u))return null;Zj(u);return new dj(bV,EV)};
Vb=function(){this.G=[]};
n9=function(u,h,L){for(;L>0||h>127;)u.G.push(h&127|128),h=(h>>>7|L<<25)>>>0,L>>>=7;u.G.push(h)};
s0=function(u,h){for(;h>127;)u.G.push(h&127|128),h>>>=7;u.G.push(h)};
nee=function(u,h){if(h>=0)s0(u,h);else{for(var L=0;L<9;L++)u.G.push(h&127|128),h>>=7;u.G.push(1)}};
wj=function(u,h){u.G.push(h>>>0&255);u.G.push(h>>>8&255);u.G.push(h>>>16&255);u.G.push(h>>>24&255)};
spa=function(){this.X=[];this.N=0;this.G=new Vb};
eV=function(u,h){h.length!==0&&(u.X.push(h),u.N+=h.length)};
wha=function(u,h){al(u,h,2);h=u.G.end();eV(u,h);h.push(u.N);return h};
eJf=function(u,h){var L=h.pop();for(L=u.N+u.G.length()-L;L>127;)h.push(L&127|128),L>>>=7,u.N++;h.push(L);u.N++};
al=function(u,h,L){s0(u.G,h*8+L)};
aMa=function(u,h,L){if(L!=null){switch(typeof L){case "string":mkf(L)}al(u,h,1);switch(typeof L){case "number":u=u.G;ke(L);wj(u,bV);wj(u,EV);break;case "bigint":L=BigInt.asUintN(64,L);L=new m4(Number(L&BigInt(4294967295)),Number(L>>BigInt(32)));u=u.G;h=L.G;wj(u,L.N);wj(u,h);break;default:L=mkf(L),u=u.G,h=L.G,wj(u,L.N),wj(u,h)}}};
$8=function(u,h,L){al(u,h,2);s0(u.G,L.length);eV(u,u.G.end());eV(u,L)};
tM=function(){function u(){throw Error();}
Object.setPrototypeOf(u,u.prototype);return u};
Fs=function(u,h,L){this.d_=u;this.MD=h;u=iVb(Wp);this.G=!!u&&L===u||!1};
bH=function(u,h){var L=L===void 0?Wp:L;return new Fs(u,h,L)};
tcs=function(u,h,L,Z,y){h=$kY(h,Z);h!=null&&(L=wha(u,L),y(h,u),eJf(u,L))};
gj=function(u,h,L,Z){var y=Z[u];if(y)return y;y={};y.lKw=Z;y.wz=A8a(Z[0]);var R=Z[1],p=1;R&&R.constructor===Object&&(y.extensions=R,R=Z[++p],typeof R==="function"&&(y.Ab=!0,E0!=null||(E0=R),k8!=null||(k8=Z[p+1]),R=Z[p+=2]));for(var J={};R&&Array.isArray(R)&&R.length&&typeof R[0]==="number"&&R[0]>0;){for(var O=0;O<R.length;O++)J[R[O]]=R;R=Z[++p]}for(O=1;R!==void 0;){typeof R==="number"&&(O+=R,R=Z[++p]);var f=void 0;if(R instanceof Fs)var D=R;else D=WzY,p--;R=void 0;if((R=D)==null?0:R.G){R=Z[++p];f=
Z;var c=p;typeof R==="function"&&(R=R(),f[c]=R);f=R}R=Z[++p];c=O+1;typeof R==="number"&&R<0&&(c-=R,R=Z[++p]);for(;O<c;O++){var I=J[O];f?L(y,O,D,f,I):h(y,O,D,I)}}return Z[u]=y};
bwR=function(u){return Array.isArray(u)?u[0]instanceof Fs?u:[Fzn,u]:[u,void 0]};
$kY=function(u,h){if(u instanceof zG)return u.Mp;if(Array.isArray(u))return Hv(u,h,!1)};
uP=function(u,h,L,Z){var y=L.d_;u[h]=Z?function(R,p,J){return y(R,p,J,Z)}:y};
hw=function(u,h,L,Z,y){var R=L.d_,p,J;u[h]=function(O,f,D){return R(O,f,D,J||(J=gj(jf,uP,hw,Z).wz),p||(p=LB(Z)),y)}};
LB=function(u){var h=u[Ees];if(h!=null)return h;var L=gj(jf,uP,hw,u);h=L.Ab?function(Z,y){return E0(Z,y,L)}:function(Z,y){for(var R=Z[GD]|0;GDY(y)&&y.N!=4;){var p=y.B,J=L[p];
if(J==null){var O=L.extensions;O&&(O=O[p])&&(O=kDL(O),O!=null&&(J=L[p]=O))}J!=null&&J(y,Z,p)||(J=y,p=J.X,U0(J),J.r$?J=void 0:(O=J.G.G-p,J.G.G=p,J=NYb(J.G,O)),p=Z,J&&((O=p[ec])?O.push(J):p[ec]=[J]))}R&16384&&Hh(Z,34);return!0};
return u[Ees]=h};
kDL=function(u){u=bwR(u);var h=u[0].d_;if(u=u[1]){var L=LB(u),Z=gj(jf,uP,hw,u).wz;return function(y,R,p){return h(y,R,p,Z,L)}}return h};
Zk=function(u,h,L){u[h]=L.MD};
RN=function(u,h,L,Z){var y,R,p=L.MD;u[h]=function(J,O,f){return p(J,O,f,R||(R=gj(yC,Zk,RN,Z).wz),y||(y=gef(Z)))}};
gef=function(u){var h=u[uKs];if(!h){var L=gj(yC,Zk,RN,u);h=function(Z,y){return jFl(Z,y,L)};
u[uKs]=h}return h};
jFl=function(u,h,L){for(var Z=u[GD]|0,y=Z&512?0:-1,R=u.length,p=R+(Z&256?-1:0),J=Z&512?1:0;J<p;J++){var O=u[J];if(O!=null){var f=J-y,D=h8l(L,f);D&&D(h,O,f)}}if(Z&256){Z=u[R-1];for(var c in Z)y=+c,Number.isNaN(y)||(R=Z[y],R!=null&&(p=h8l(L,y))&&p(h,R,y))}if(u=ap(u))for(eV(h,h.G.end()),L=0;L<u.length;L++)eV(h,TD(u[L])||new Uint8Array(0))};
h8l=function(u,h){var L=u[h];if(L)return L;if(L=u.extensions)if(L=L[h]){L=bwR(L);var Z=L[0].MD;if(L=L[1]){var y=gef(L),R=gj(yC,Zk,RN,L).wz;L=u.Ab?k8(R,y):function(p,J,O){return Z(p,J,O,R,y)}}else L=Z;
return u[h]=L}};
pB=function(u,h,L){if(Array.isArray(h)){var Z=h[GD]|0;if(Z&4)return h;for(var y=0,R=0;y<h.length;y++){var p=u(h[y]);p!=null&&(h[R++]=p)}R<y&&(h.length=R);L&&(rY(h,(Z|5)&-12289),Z&2&&Object.freeze(h));return h}};
KB=function(u,h,L){return new Fs(u,h,L)};
Jw=function(u,h,L){return new Fs(u,h,L)};
OS=function(u,h,L){d$(u,u[GD]|0,h,L)};
fB=function(u,h,L){h=h==null||typeof h==="number"?h:h==="NaN"||h==="Infinity"||h==="-Infinity"?Number(h):void 0;h!=null&&(al(u,L,1),u=u.G,L=LHn||(LHn=new DataView(new ArrayBuffer(8))),L.setFloat64(0,+h,!0),bV=L.getUint32(0,!0),EV=L.getUint32(4,!0),wj(u,bV),wj(u,EV))};
Dk=function(u,h,L){h=Frl(h);if(h!=null){switch(typeof h){case "string":Vcw(h)}if(h!=null)switch(al(u,L,0),typeof h){case "number":u=u.G;j1(h);n9(u,bV,EV);break;case "bigint":L=BigInt.asUintN(64,h);L=new dj(Number(L&BigInt(4294967295)),Number(L>>BigInt(32)));n9(u.G,L.N,L.G);break;default:L=Vcw(h),n9(u.G,L.N,L.G)}}};
co=function(u,h,L){h=fa(h);h!=null&&h!=null&&(al(u,L,0),nee(u.G,h))};
Zan=function(u,h,L){h=h==null||typeof h==="boolean"?h:typeof h==="number"?!!h:void 0;h!=null&&(al(u,L,0),u.G.G.push(h?1:0))};
yoV=function(u,h,L){h=S1(h);h!=null&&$8(u,L,mLb(h))};
R8R=function(u,h,L,Z,y){h=$kY(h,Z);h!=null&&(L=wha(u,L),y(h,u),eJf(u,L))};
pvL=function(u){return function(){var h=new spa;jFl(this.Mp,h,gj(yC,Zk,RN,u));eV(h,h.G.end());for(var L=new Uint8Array(h.N),Z=h.X,y=Z.length,R=0,p=0;p<y;p++){var J=Z[p];L.set(J,R);R+=J.length}h.X=[L];return L}};
IN=function(u){return function(h){return BYL(u,h)}};
KHe=function(u){this.Mp=UY(u)};
Jow=function(u,h){return Qpa(u,h,scn)};
Aw=function(u){this.Mp=UY(u)};
xd=function(u){this.Mp=UY(u)};
Po=function(u){this.Mp=UY(u)};
CB=function(u){this.Mp=UY(u)};
OaV=function(u){this.Mp=UY(u)};
g.coi=function(u){var h=new CB;h=x8(h,1,u.N);var L=fjf(u);h=Qpa(h,L,gD1);L=[];for(var Z=[],y=g.C(u.G.keys()),R=y.next();!R.done;R=y.next())Z.push(R.value.split(","));for(y=0;y<Z.length;y++){R=Z[y];for(var p=u.B,J=u.J5(R)||[],O=[],f=0;f<J.length;f++){var D=J[f],c=D&&D.G;D=new xd;switch(p){case 3:c=Number(c);Number.isFinite(c)&&uH(D,1,MN,iK(c));break;case 2:uH(D,2,MN,RF(Number(c)))}O.push(D)}p=O;for(J=0;J<p.length;J++){O=p[J];f=new Po;O=p9(f,xd,2,O);f=[];D=DMn(u);for(c=0;c<D.length;c++){var I=D[c],
A=R[c],x=new Aw;switch(I){case 3:uH(x,1,iP,lK(String(A)));break;case 2:I=Number(A);Number.isFinite(I)&&uH(x,2,iP,OY(I));break;case 1:uH(x,3,iP,pa(A==="true"))}f.push(x)}K9(O,Aw,1,f);L.push(O)}}K9(h,Po,4,L);return h};
Ijs=function(u){if(!u)return"";if(/^about:(?:blank|srcdoc)$/.test(u))return window.origin||"";u.indexOf("blob:")===0&&(u=u.substring(5));u=u.split("#")[0].split("?")[0];u=u.toLowerCase();u.indexOf("//")==0&&(u=window.location.protocol+u);/^[\w\-]*:\/\//.test(u)||(u=window.location.href);var h=u.substring(u.indexOf("://")+3),L=h.indexOf("/");L!=-1&&(h=h.substring(0,L));L=u.substring(0,u.indexOf("://"));if(!L)throw Error("URI is missing protocol: "+u);if(L!=="http"&&L!=="https"&&L!=="chrome-extension"&&
L!=="moz-extension"&&L!=="file"&&L!=="android-app"&&L!=="chrome-search"&&L!=="chrome-untrusted"&&L!=="chrome"&&L!=="app"&&L!=="devtools")throw Error("Invalid URI scheme in origin: "+L);u="";var Z=h.indexOf(":");if(Z!=-1){var y=h.substring(Z+1);h=h.substring(0,Z);if(L==="http"&&y!=="80"||L==="https"&&y!=="443")u=":"+y}return L+"://"+h+u};
AoV=function(){function u(){y[0]=1732584193;y[1]=4023233417;y[2]=2562383102;y[3]=271733878;y[4]=3285377520;D=f=0}
function h(c){for(var I=p,A=0;A<64;A+=4)I[A/4]=c[A]<<24|c[A+1]<<16|c[A+2]<<8|c[A+3];for(A=16;A<80;A++)c=I[A-3]^I[A-8]^I[A-14]^I[A-16],I[A]=(c<<1|c>>>31)&4294967295;c=y[0];var x=y[1],Q=y[2],S=y[3],v=y[4];for(A=0;A<80;A++){if(A<40)if(A<20){var T=S^x&(Q^S);var U=1518500249}else T=x^Q^S,U=1859775393;else A<60?(T=x&Q|S&(x|Q),U=2400959708):(T=x^Q^S,U=3395469782);T=((c<<5|c>>>27)&4294967295)+T+v+U+I[A]&4294967295;v=S;S=Q;Q=(x<<30|x>>>2)&4294967295;x=c;c=T}y[0]=y[0]+c&4294967295;y[1]=y[1]+x&4294967295;y[2]=
y[2]+Q&4294967295;y[3]=y[3]+S&4294967295;y[4]=y[4]+v&4294967295}
function L(c,I){if(typeof c==="string"){c=unescape(encodeURIComponent(c));for(var A=[],x=0,Q=c.length;x<Q;++x)A.push(c.charCodeAt(x));c=A}I||(I=c.length);A=0;if(f==0)for(;A+64<I;)h(c.slice(A,A+64)),A+=64,D+=64;for(;A<I;)if(R[f++]=c[A++],D++,f==64)for(f=0,h(R);A+64<I;)h(c.slice(A,A+64)),A+=64,D+=64}
function Z(){var c=[],I=D*8;f<56?L(J,56-f):L(J,64-(f-56));for(var A=63;A>=56;A--)R[A]=I&255,I>>>=8;h(R);for(A=I=0;A<5;A++)for(var x=24;x>=0;x-=8)c[I++]=y[A]>>x&255;return c}
for(var y=[],R=[],p=[],J=[128],O=1;O<64;++O)J[O]=0;var f,D;u();return{reset:u,update:L,digest:Z,KD:function(){for(var c=Z(),I="",A=0;A<c.length;A++)I+="0123456789ABCDEF".charAt(Math.floor(c[A]/16))+"0123456789ABCDEF".charAt(c[A]%16);return I}}};
PKb=function(u,h,L){var Z=String(g.Vn.location.href);return Z&&u&&h?[h,xMa(Ijs(Z),u,L||null)].join(" "):null};
xMa=function(u,h,L){var Z=[],y=[];if((Array.isArray(L)?2:1)==1)return y=[h,u],g.A8(Z,function(J){y.push(J)}),CKa(y.join(" "));
var R=[],p=[];g.A8(L,function(J){p.push(J.key);R.push(J.value)});
L=Math.floor((new Date).getTime()/1E3);y=R.length==0?[L,h,u]:[R.join(":"),L,h,u];g.A8(Z,function(J){y.push(J)});
u=CKa(y.join(" "));u=[L,u];p.length==0||u.push(p.join(""));return u.join("_")};
CKa=function(u){var h=AoV();h.update(u);return h.KD().toLowerCase()};
ian=function(){var u=null;if(!M1Y)return u;try{var h=function(L){return L};
u=M1Y.createPolicy("goog#html",{createHTML:h,createScript:h,createScriptURL:h})}catch(L){}return u};
lP=function(){QC===void 0&&(QC=ian());return QC};
Sf=function(u){this.G=u};
X7=function(u){var h=lP();return new Sf(h?h.createScriptURL(u):u)};
vo=function(u){if(u instanceof Sf)return u.G;throw Error("");};
qN=function(u){this.G=u};
g.Tx=function(u){if(u instanceof qN)return u.G;throw Error("");};
Yd=function(u){this.ih=u};
oN=function(u){return new Yd(function(h){return h.substr(0,u.length+1).toLowerCase()===u+":"})};
g.NN=function(u,h){h=h===void 0?QFj:h;a:if(h=h===void 0?QFj:h,!(u instanceof qN)){for(var L=0;L<h.length;++L){var Z=h[L];if(Z instanceof Yd&&Z.ih(u)){u=new qN(u);break a}}u=void 0}return u||ljf};
Xvl=function(u){if(SYj.test(u))return u};
US=function(u){return u instanceof qN?g.Tx(u):Xvl(u)};
g.Gx=function(u,h){h=US(h);h!==void 0&&(u.href=h)};
Ho=function(u){this.G=u};
re=function(u){var h=lP();return new Ho(h?h.createHTML(u):u)};
Bo=function(u){if(u instanceof Ho)return u.G;throw Error("");};
g.zx=function(u,h,L,Z){h=US(h);return h!==void 0?u.open(h,L,Z):null};
m6=function(u){u=u===void 0?document:u;var h,L;u=(L=(h=u).querySelector)==null?void 0:L.call(h,"script[nonce]");return u==null?"":u.nonce||u.getAttribute("nonce")||""};
de=function(u){this.G=u};
vtR=function(u){var h=lP();return new de(h?h.createScript(u):u)};
VC=function(u){if(u instanceof de)return u.G;throw Error("");};
nB=function(u){var h=m6(u.ownerDocument);h&&u.setAttribute("nonce",h)};
g.sS=function(u,h){u.src=vo(h);nB(u)};
we=function(){this.G=qYe[0].toLowerCase()};
T$Y=function(u){var h="true".toString(),L=[new we];if(L.length===0)throw Error("");if(L.map(function(Z){if(Z instanceof we)Z=Z.G;else throw Error("");return Z}).every(function(Z){return"data-loaded".indexOf(Z)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.');
u.setAttribute("data-loaded",h)};
YYn=function(u){var h=g.wn("window.location.href");u==null&&(u='Unknown Error of type "null/undefined"');if(typeof u==="string")return{message:u,name:"Unknown error",lineNumber:"Not available",fileName:h,stack:"Not available"};var L=!1;try{var Z=u.lineNumber||u.line||"Not available"}catch(p){Z="Not available",L=!0}try{var y=u.fileName||u.filename||u.sourceURL||g.Vn.$googDebugFname||h}catch(p){y="Not available",L=!0}h=ef(u);if(!(!L&&u.lineNumber&&u.fileName&&u.stack&&u.message&&u.name)){L=u.message;
if(L==null){if(u.constructor&&u.constructor instanceof Function){if(u.constructor.name)L=u.constructor.name;else if(L=u.constructor,aN[L])L=aN[L];else{L=String(L);if(!aN[L]){var R=/function\s+([^\(]+)/m.exec(L);aN[L]=R?R[1]:"[Anonymous]"}L=aN[L]}L='Unknown Error of type "'+L+'"'}else L="Unknown Error of unknown type";typeof u.toString==="function"&&Object.prototype.toString!==u.toString&&(L+=": "+u.toString())}return{message:L,name:u.name||"UnknownError",lineNumber:Z,fileName:y,stack:h||"Not available"}}return{message:u.message,
name:u.name,lineNumber:u.lineNumber,fileName:u.fileName,stack:h}};
ef=function(u,h){h||(h={});h[$d(u)]=!0;var L=u.stack||"",Z=u.cause;Z&&!h[$d(Z)]&&(L+="\nCaused by: ",Z.stack&&Z.stack.indexOf(Z.toString())==0||(L+=typeof Z==="string"?Z:Z.message+"\n"),L+=ef(Z,h));u=u.errors;if(Array.isArray(u)){Z=1;var y;for(y=0;y<u.length&&!(Z>4);y++)h[$d(u[y])]||(L+="\nInner error "+Z++ +": ",u[y].stack&&u[y].stack.indexOf(u[y].toString())==0||(L+=typeof u[y]==="string"?u[y]:u[y].message+"\n"),L+=ef(u[y],h));y<u.length&&(L+="\n... "+(u.length-y)+" more inner errors")}return L};
$d=function(u){var h="";typeof u.toString==="function"&&(h=""+u);return h+u.stack};
tw=function(u,h,L){return u.parseFromString(Bo(h),L)};
g.Wo=function(u){return encodeURIComponent(String(u))};
F7=function(u){return decodeURIComponent(u.replace(/\+/g," "))};
bP=function(u){otV.test(u)&&(u.indexOf("&")!=-1&&(u=u.replace(N$j,"&amp;")),u.indexOf("<")!=-1&&(u=u.replace(UMj,"&lt;")),u.indexOf(">")!=-1&&(u=u.replace(Gil,"&gt;")),u.indexOf('"')!=-1&&(u=u.replace(Ha1,"&quot;")),u.indexOf("'")!=-1&&(u=u.replace(ron,"&#39;")),u.indexOf("\x00")!=-1&&(u=u.replace(B$1,"&#0;")));return u};
g.ES=function(u){return u==null?"":String(u)};
kd=function(u){for(var h=0,L=0;L<u.length;++L)h=31*h+u.charCodeAt(L)>>>0;return h};
ge=function(u){var h=Number(u);return h==0&&g.Xg(u)?NaN:h};
z8b=function(u){return String(u).replace(/\-([a-z])/g,function(h,L){return L.toUpperCase()})};
mMs=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
dMV=function(u){return u.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(h,L,Z){return L+Z.toUpperCase()})};
V1a=function(u){var h=1;u=u.split(":");for(var L=[];h>0&&u.length;)L.push(u.shift()),h--;u.length&&L.push(u.join(":"));return L};
uj=function(u){this.G=u||{cookie:""}};
jT=function(u){u=(u.G.cookie||"").split(";");for(var h=[],L=[],Z,y,R=0;R<u.length;R++)y=Ty(u[R]),Z=y.indexOf("="),Z==-1?(h.push(""),L.push(y)):(h.push(y.substring(0,Z)),L.push(y.substring(Z+1)));return{keys:h,values:L}};
ntb=function(){var u=g.Vn.__SAPISID||g.Vn.__APISID||g.Vn.__3PSAPISID||g.Vn.__1PSAPISID||g.Vn.__OVERRIDE_SID;if(u)return!0;typeof document!=="undefined"&&(u=new uj(document),u=u.get("SAPISID")||u.get("APISID")||u.get("__Secure-3PAPISID")||u.get("__Secure-1PAPISID"));return!!u};
sFl=function(u,h,L,Z){(u=g.Vn[u])||typeof document==="undefined"||(u=(new uj(document)).get(h));return u?PKb(u,L,Z):null};
wvf=function(u){var h=Ijs(String(g.Vn.location.href)),L=[];if(ntb()){h=h.indexOf("https:")==0||h.indexOf("chrome-extension:")==0||h.indexOf("chrome-untrusted://new-tab-page")==0||h.indexOf("moz-extension:")==0;var Z=h?g.Vn.__SAPISID:g.Vn.__APISID;Z||typeof document==="undefined"||(Z=new uj(document),Z=Z.get(h?"SAPISID":"APISID")||Z.get("__Secure-3PAPISID"));(Z=Z?PKb(Z,h?"SAPISIDHASH":"APISIDHASH",u):null)&&L.push(Z);h&&((h=sFl("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",u))&&L.push(h),(u=sFl("__3PSAPISID",
"__Secure-3PAPISID","SAPISID3PHASH",u))&&L.push(u))}return L.length==0?null:L.join(" ")};
hN=function(){};
LX=function(u){this.Mp=UY(u)};
Z_=function(u,h){this.intervalMs=u;this.callback=h;this.enabled=!1;this.G=function(){return g.u3()};
this.N=this.G()};
y2=function(u){this.Mp=UY(u)};
RI=function(u){this.Mp=UY(u)};
g.pX=function(u,h,L){return Math.min(Math.max(u,h),L)};
g.KX=function(u,h){u%=h;return u*h<0?u+h:u};
JN=function(u,h,L){return u+L*(h-u)};
g.O6=function(u,h){this.x=u!==void 0?u:0;this.y=h!==void 0?h:0};
fX=function(u,h){return u==h?!0:u&&h?u.x==h.x&&u.y==h.y:!1};
g.II=function(u,h){this.width=u;this.height=h};
g.AN=function(u,h){return u==h?!0:u&&h?u.width==h.width&&u.height==h.height:!1};
xJ=function(u){return u.width*u.height};
g.PM=function(u,h,L){for(var Z in u)h.call(L,u[Z],Z,u)};
g.CX=function(u,h,L){var Z={},y;for(y in u)h.call(L,u[y],y,u)&&(Z[y]=u[y]);return Z};
Mo=function(u,h){var L={},Z;for(Z in u)L[Z]=h.call(void 0,u[Z],Z,u);return L};
g.ij=function(u,h,L){for(var Z in u)if(h.call(L,u[Z],Z,u))return!0;return!1};
e8j=function(u,h){for(var L in u)if(!h.call(void 0,u[L],L,u))return!1;return!0};
g.Q2=function(u){for(var h in u)return h};
ajl=function(u){for(var h in u)return u[h]};
g.lj=function(u){var h=[],L=0,Z;for(Z in u)h[L++]=u[Z];return h};
g.ST=function(u){var h=[],L=0,Z;for(Z in u)h[L++]=Z;return h};
g.Xl=function(u,h){return u!==null&&h in u};
g.vM=function(u,h){for(var L in u)if(u[L]==h)return!0;return!1};
qo=function(u,h){for(var L in u)if(h.call(void 0,u[L],L,u))return L};
$MY=function(u,h){return(h=qo(u,h))&&u[h]};
g.Tc=function(u){for(var h in u)return!1;return!0};
g.t1a=function(u){for(var h in u)delete u[h]};
g.YJ=function(u,h,L){return u!==null&&h in u?u[h]:L};
g.oI=function(u,h){for(var L in u)if(!(L in h)||u[L]!==h[L])return!1;for(var Z in h)if(!(Z in u))return!1;return!0};
g.No=function(u){var h={},L;for(L in u)h[L]=u[L];return h};
g.U6=function(u){if(!u||typeof u!=="object")return u;if(typeof u.clone==="function")return u.clone();if(typeof Map!=="undefined"&&u instanceof Map)return new Map(u);if(typeof Set!=="undefined"&&u instanceof Set)return new Set(u);if(u instanceof Date)return new Date(u.getTime());var h=Array.isArray(u)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(u)||u instanceof DataView?{}:new u.constructor(u.length),L;for(L in u)h[L]=g.U6(u[L]);return h};
g.Gc=function(u,h){for(var L,Z,y=1;y<arguments.length;y++){Z=arguments[y];for(L in Z)u[L]=Z[L];for(var R=0;R<WHe.length;R++)L=WHe[R],Object.prototype.hasOwnProperty.call(Z,L)&&(u[L]=Z[L])}};
rb=function(u,h){this.G=u===HM&&h||""};
BM=function(u){if(u instanceof Ho)return u;u=String(u).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");return re(u)};
FHj=function(u){var h=BM("");return re(u.map(function(L){return Bo(BM(L))}).join(Bo(h).toString()))};
use=function(u){var h;if(!bae.test("div"))throw Error("");if(Etn.indexOf("DIV")!==-1)throw Error("");var L="<div";u&&(L+=kij(u));Array.isArray(h)||(h=h===void 0?[]:[h]);gtn.indexOf("DIV")!==-1?L+=">":(u=FHj(h.map(function(Z){return Z instanceof Ho?Z:BM(String(Z))})),L+=">"+u.toString()+"</div>");
return re(L)};
kij=function(u){for(var h="",L=Object.keys(u),Z=0;Z<L.length;Z++){var y=L[Z],R=u[y];if(!bae.test(y))throw Error("");if(R!==void 0&&R!==null){if(/^on./i.test(y))throw Error("");jlV.indexOf(y.toLowerCase())!==-1&&(R=R instanceof qN?R.toString():Xvl(String(R))||"about:invalid#zClosurez");R=y+'="'+BM(String(R))+'"';h+=" "+R}}return h};
h9b=function(u){var h=g.NL.apply(1,arguments);if(h.length===0)return X7(u[0]);for(var L=u[0],Z=0;Z<h.length;Z++)L+=encodeURIComponent(h[Z])+u[Z+1];return X7(L)};
db=function(u){return u?new zc(mQ(u)):L4i||(L4i=new zc)};
V2=function(u,h){return typeof h==="string"?u.getElementById(h):h};
g.nX=function(u,h){return(h||document).getElementsByTagName(String(u))};
g.s6=function(u,h){return(h||document).querySelectorAll("."+u)};
g.eT=function(u,h){var L=h||document;L.getElementsByClassName?u=L.getElementsByClassName(u)[0]:(L=document,u=u?(h||L).querySelector(u?"."+u:""):g.wb(L,"*",u,h)[0]||null);return u||null};
g.wb=function(u,h,L,Z){u=Z||u;return(h=h&&h!="*"?String(h).toUpperCase():"")||L?u.querySelectorAll(h+(L?"."+L:"")):u.getElementsByTagName("*")};
tN=function(u,h){g.PM(h,function(L,Z){Z=="style"?u.style.cssText=L:Z=="class"?u.className=L:Z=="for"?u.htmlFor=L:Z9e.hasOwnProperty(Z)?u.setAttribute(Z9e[Z],L):Sb(Z,"aria-")||Sb(Z,"data-")?u.setAttribute(Z,L):u[Z]=L})};
yMe=function(u){u=u.document;u=u.compatMode=="CSS1Compat"?u.documentElement:u.body;return new g.II(u.clientWidth,u.clientHeight)};
ppe=function(u){var h=R9V(u);u=u.defaultView;return new g.O6(u.pageXOffset||h.scrollLeft,u.pageYOffset||h.scrollTop)};
R9V=function(u){return u.scrollingElement?u.scrollingElement:g.WM||u.compatMode!="CSS1Compat"?u.body||u.documentElement:u.documentElement};
Fl=function(u){return u?u.defaultView:window};
E6=function(u,h,L){var Z=arguments,y=document,R=Z[1],p=bj(y,String(Z[0]));R&&(typeof R==="string"?p.className=R:Array.isArray(R)?p.className=R.join(" "):tN(p,R));Z.length>2&&K4s(y,p,Z,2);return p};
K4s=function(u,h,L,Z){function y(J){J&&h.appendChild(typeof J==="string"?u.createTextNode(J):J)}
for(;Z<L.length;Z++){var R=L[Z];if(!g.ts(R)||g.Wi(R)&&R.nodeType>0)y(R);else{a:{if(R&&typeof R.length=="number"){if(g.Wi(R)){var p=typeof R.item=="function"||typeof R.item=="string";break a}if(typeof R==="function"){p=typeof R.item=="function";break a}}p=!1}g.A8(p?g.h8(R):R,y)}}};
g.kJ=function(u){return bj(document,u)};
bj=function(u,h){h=String(h);u.contentType==="application/xhtml+xml"&&(h=h.toLowerCase());return u.createElement(h)};
g.gb=function(u){return document.createTextNode(String(u))};
g.uu=function(u,h){u.appendChild(h)};
g.jK=function(u){for(var h;h=u.firstChild;)u.removeChild(h)};
hf=function(u,h,L){u.insertBefore(h,u.childNodes[L]||null)};
g.Lx=function(u){return u&&u.parentNode?u.parentNode.removeChild(u):null};
g.ZO=function(u,h){if(!u||!h)return!1;if(u.contains&&h.nodeType==1)return u==h||u.contains(h);if(typeof u.compareDocumentPosition!="undefined")return u==h||!!(u.compareDocumentPosition(h)&16);for(;h&&u!=h;)h=h.parentNode;return h==u};
mQ=function(u){return u.nodeType==9?u:u.ownerDocument||u.document};
g.yg=function(u,h){if("textContent"in u)u.textContent=h;else if(u.nodeType==3)u.data=String(h);else if(u.firstChild&&u.firstChild.nodeType==3){for(;u.lastChild!=u.firstChild;)u.removeChild(u.lastChild);u.firstChild.data=String(h)}else g.jK(u),u.appendChild(mQ(u).createTextNode(String(h)))};
O9n=function(u){return u.tagName=="A"&&u.hasAttribute("href")||u.tagName=="INPUT"||u.tagName=="TEXTAREA"||u.tagName=="SELECT"||u.tagName=="BUTTON"?!u.disabled&&(!u.hasAttribute("tabindex")||JMb(u)):u.hasAttribute("tabindex")&&JMb(u)};
JMb=function(u){u=u.tabIndex;return typeof u==="number"&&u>=0&&u<32768};
px=function(u,h,L){if(!h&&!L)return null;var Z=h?String(h).toUpperCase():null;return Rx(u,function(y){return(!Z||y.nodeName==Z)&&(!L||typeof y.className==="string"&&g.E8(y.className.split(/\s+/),L))},!0)};
Rx=function(u,h,L){u&&!L&&(u=u.parentNode);for(L=0;u;){if(h(u))return u;u=u.parentNode;L++}return null};
zc=function(u){this.G=u||g.Vn.document||document};
Kx=function(u){this.Mp=UY(u)};
Jf=function(u){this.Mp=UY(u)};
Ov=function(u){this.Mp=UY(u)};
fm1=function(u,h){K9(u,Jf,1,h)};
fx=function(u){this.Mp=UY(u)};
cMw=function(u,h){h=h===void 0?DGe:h;if(!DO){var L;u=(L=u.navigator)==null?void 0:L.userAgentData;if(!u||typeof u.getHighEntropyValues!=="function"||u.brands&&typeof u.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));L=(u.brands||[]).map(function(y){var R=new Jf;R=x8(R,1,y.brand);return x8(R,2,y.version)});
fm1(Vx(c9,2,pa(u.mobile)),L);DO=u.getHighEntropyValues(h)}var Z=new Set(h);return DO.then(function(y){var R=c9.clone();Z.has("platform")&&x8(R,3,y.platform);Z.has("platformVersion")&&x8(R,4,y.platformVersion);Z.has("architecture")&&x8(R,5,y.architecture);Z.has("model")&&x8(R,6,y.model);Z.has("uaFullVersion")&&x8(R,7,y.uaFullVersion);return R}).catch(function(){return c9.clone()})};
Ix=function(u){this.Mp=UY(u)};
ImL=function(u){this.Mp=UY(u)};
Af=function(u){this.Mp=UY(u,4)};
xL=function(u){this.Mp=UY(u,36)};
P9=function(u){this.Mp=UY(u,19)};
Cx=function(u,h){this.lL=h=h===void 0?!1:h;this.uach=this.locale=null;this.N=0;this.isFinal=!1;this.G=new P9;Number.isInteger(u)&&this.G.nO(u);h||(this.locale=document.documentElement.getAttribute("lang"));AM1(this,new Ix)};
AM1=function(u,h){p9(u.G,Ix,1,h);Il(h,1)||C9(h,1,1);u.lL||(h=iu(u),cp(h,5)||x8(h,5,u.locale));u.uach&&(h=iu(u),Rl(h,Ov,9)||p9(h,Ov,9,u.uach))};
xGn=function(u,h){u.N=h};
PHn=function(u){var h=h===void 0?DGe:h;var L=u.lL?void 0:Fl();L?cMw(L,h).then(function(Z){u.uach=Z;Z=iu(u);p9(Z,Ov,9,u.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)};
iu=function(u){u=Rl(u.G,Ix,1);var h=Rl(u,fx,11);h||(h=new fx,p9(u,fx,11,h));return h};
CHf=function(u){return g.WM?"webkit"+u:u.toLowerCase()};
g.Qg=function(u,h,L,Z){this.B=u;this.T=h;this.G=this.X=u;this.C=L||0;this.V=Z||2};
g.lu=function(u){u.G=Math.min(u.T,u.G*u.V);u.X=Math.min(u.T,u.G+(u.C?Math.round(u.C*(Math.random()-.5)*2*u.G):0));u.N++};
MVf=function(u){this.Mp=UY(u,8)};
i91=function(u){this.Mp=UY(u)};
Xr=function(u){g.m.call(this);var h=this;this.componentId="";this.G=[];this.vX="";this.pageId=null;this.aH=this.XB=-1;this.V=this.experimentIds=null;this.AB=this.RH=this.C=this.B=0;this.jd=1;this.timeoutMillis=0;this.gw=!1;this.logSource=u.logSource;this.qy=u.qy||function(){};
this.X=new Cx(u.logSource,u.lL);this.network=u.network||null;this.Dq=u.Dq||null;this.S=u.tDd||null;this.sessionIndex=u.sessionIndex||null;this.Qq=u.Qq||!1;this.logger=null;this.withCredentials=!u.e0;this.lL=u.lL||!1;this.Y=!this.lL&&!!Fl()&&!!Fl().navigator&&Fl().navigator.sendBeacon!==void 0;this.T7=typeof URLSearchParams!=="undefined"&&!!(new URL(SK())).searchParams&&!!(new URL(SK())).searchParams.set;var L=C9(new Ix,1,1);AM1(this.X,L);this.T=new g.Qg(1E4,3E5,.1);u=Qlj(this,u.lG);this.N=new Z_(this.T.getValue(),
u);this.DI=new Z_(6E5,u);this.Qq||this.DI.start();this.lL||(document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&h.pn()}),document.addEventListener("pagehide",this.pn.bind(this)))};
Qlj=function(u,h){return u.T7?h?function(){h().then(function(){u.flush()})}:function(){u.flush()}:function(){}};
lma=function(u){u.S||(u.S=SK());try{return(new URL(u.S)).toString()}catch(h){return(new URL(u.S,Fl().location.origin)).toString()}};
S0j=function(u,h,L){L=L===void 0?u.qy():L;var Z={},y=new URL(lma(u));L&&(Z.Authorization=L);u.sessionIndex&&(Z["X-Goog-AuthUser"]=u.sessionIndex,y.searchParams.set("authuser",u.sessionIndex));u.pageId&&(Object.defineProperty(Z,"X-Goog-PageId",{value:u.pageId}),y.searchParams.set("pageId",u.pageId));return{url:y.toString(),body:h,Ot:1,requestHeaders:Z,requestType:"POST",withCredentials:u.withCredentials,timeoutMillis:u.timeoutMillis}};
v8i=function(u){Xpf(u,function(h,L){h=new URL(h);h.searchParams.set("format","json");var Z=!1;try{Z=Fl().navigator.sendBeacon(h.toString(),L.n0())}catch(y){}Z||(u.Y=!1);return Z})};
Xpf=function(u,h){if(u.G.length!==0){var L=new URL(lma(u));L.searchParams.delete("format");var Z=u.qy();Z&&L.searchParams.set("auth",Z);L.searchParams.set("authuser",u.sessionIndex||"0");for(Z=0;Z<10&&u.G.length;++Z){var y=u.G.slice(0,32),R=u.X.build(y,u.B,u.C,u.Dq,u.RH,u.AB);if(!h(L.toString(),R)){++u.C;break}u.B=0;u.C=0;u.RH=0;u.AB=0;u.G=u.G.slice(y.length)}u.N.enabled&&u.N.stop()}};
SK=function(){return"https://play.google.com/log?format=json&hasfast=true"};
v9=function(){this.m3=typeof AbortController!=="undefined"};
qx=function(u,h){g.m.call(this);this.logSource=u;this.sessionIndex=h;this.Vb="https://play.google.com/log?format=json&hasfast=true";this.N=null;this.B=!1;this.network=null;this.componentId="";this.G=this.Dq=null;this.X=!1;this.pageId=null};
q0Y=function(u,h){u.N=h;return u};
TjR=function(u,h){u.network=h;return u};
Y0a=function(u,h){u.G=h};
TZ=function(u,h,L,Z,y,R,p){u=u===void 0?-1:u;h=h===void 0?"":h;L=L===void 0?"":L;Z=Z===void 0?!1:Z;y=y===void 0?"":y;g.m.call(this);this.logSource=u;this.componentId=h;R?h=R:(u=new qx(u,"0"),u.componentId=h,g.V(this,u),L!==""&&(u.Vb=L),Z&&(u.B=!0),y&&q0Y(u,y),p&&TjR(u,p),h=u.build());this.G=h};
o81=function(u){this.G=u};
YL=function(u,h,L){this.N=u;this.B=h;this.fields=L||[];this.G=new Map};
DMn=function(u){return u.fields.map(function(h){return h.fieldType})};
fjf=function(u){return u.fields.map(function(h){return h.fieldName})};
ox=function(u,h){YL.call(this,u,3,h)};
Nx=function(u,h){YL.call(this,u,2,h)};
g.Uv=function(u,h){this.type=u;this.currentTarget=this.target=h;this.defaultPrevented=this.N=!1};
GZ=function(u,h){g.Uv.call(this,u?u.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.G=null;u&&this.init(u,h)};
H9=function(u){return!(!u||!u[NjV])};
GG1=function(u,h,L,Z,y){this.listener=u;this.proxy=null;this.src=h;this.type=L;this.capture=!!Z;this.Aq=y;this.key=++UGR;this.removed=this.uT=!1};
r0=function(u){u.removed=!0;u.listener=null;u.proxy=null;u.src=null;u.Aq=null};
B9=function(u){this.src=u;this.listeners={};this.G=0};
g.zZ=function(u,h){var L=h.type;L in u.listeners&&g.gV(u.listeners[L],h)&&(r0(h),u.listeners[L].length==0&&(delete u.listeners[L],u.G--))};
mw=function(u,h,L,Z){for(var y=0;y<u.length;++y){var R=u[y];if(!R.removed&&R.listener==h&&R.capture==!!L&&R.Aq==Z)return y}return-1};
g.Vg=function(u,h,L,Z,y){if(Z&&Z.once)return d0(u,h,L,Z,y);if(Array.isArray(h)){for(var R=0;R<h.length;R++)g.Vg(u,h[R],L,Z,y);return null}L=nx(L);return H9(u)?u.listen(h,L,g.Wi(Z)?!!Z.capture:!!Z,y):H9R(u,h,L,!1,Z,y)};
H9R=function(u,h,L,Z,y,R){if(!h)throw Error("Invalid event type");var p=g.Wi(y)?!!y.capture:!!y,J=w0(u);J||(u[tf]=J=new B9(u));L=J.add(h,L,Z,p,R);if(L.proxy)return L;Z=rMw();L.proxy=Z;Z.src=u;Z.listener=L;if(u.addEventListener)Bja||(y=p),y===void 0&&(y=!1),u.addEventListener(h.toString(),Z,y);else if(u.attachEvent)u.attachEvent(z9f(h.toString()),Z);else if(u.addListener&&u.removeListener)u.addListener(Z);else throw Error("addEventListener and attachEvent are unavailable.");mGi++;return L};
rMw=function(){function u(L){return h.call(u.src,u.listener,L)}
var h=dGV;return u};
d0=function(u,h,L,Z,y){if(Array.isArray(h)){for(var R=0;R<h.length;R++)d0(u,h[R],L,Z,y);return null}L=nx(L);return H9(u)?u.bH(h,L,g.Wi(Z)?!!Z.capture:!!Z,y):H9R(u,h,L,!0,Z,y)};
VVf=function(u,h,L,Z,y){if(Array.isArray(h))for(var R=0;R<h.length;R++)VVf(u,h[R],L,Z,y);else Z=g.Wi(Z)?!!Z.capture:!!Z,L=nx(L),H9(u)?u.FJ(h,L,Z,y):u&&(u=w0(u))&&(h=u.WU(h,L,Z,y))&&W9(h)};
W9=function(u){if(typeof u!=="number"&&u&&!u.removed){var h=u.src;if(H9(h))g.zZ(h.aQ,u);else{var L=u.type,Z=u.proxy;h.removeEventListener?h.removeEventListener(L,Z,u.capture):h.detachEvent?h.detachEvent(z9f(L),Z):h.addListener&&h.removeListener&&h.removeListener(Z);mGi--;(L=w0(h))?(g.zZ(L,u),L.G==0&&(L.src=null,h[tf]=null)):r0(u)}}};
z9f=function(u){return u in Fr?Fr[u]:Fr[u]="on"+u};
dGV=function(u,h){if(u.removed)u=!0;else{h=new GZ(h,this);var L=u.listener,Z=u.Aq||u.src;u.uT&&W9(u);u=L.call(Z,h)}return u};
w0=function(u){u=u[tf];return u instanceof B9?u:null};
nx=function(u){if(typeof u==="function")return u;u[bu]||(u[bu]=function(h){return u.handleEvent(h)});
return u[bu]};
g.Ev=function(){g.m.call(this);this.aQ=new B9(this);this.It=this;this.K6=null};
kL=function(u,h,L,Z){h=u.aQ.listeners[String(h)];if(!h)return!0;h=h.concat();for(var y=!0,R=0;R<h.length;++R){var p=h[R];if(p&&!p.removed&&p.capture==L){var J=p.listener,O=p.Aq||p.src;p.uT&&g.zZ(u.aQ,p);y=J.call(O,Z)!==!1&&y}}return y&&!Z.defaultPrevented};
g0=function(u,h){this.X=u;this.B=h;this.N=0;this.G=null};
n8b=function(u,h){u.B(h);u.N<100&&(u.N++,h.next=u.G,u.G=h)};
Lv=function(u){u=uq(u);jn||(jn=slb());jn(u)};
slb=function(){if(typeof MessageChannel!=="undefined"){var u=new MessageChannel,h={},L=h;u.port1.onmessage=function(){if(h.next!==void 0){h=h.next;var Z=h.T4;h.T4=null;Z()}};
return function(Z){L.next={T4:Z};L=L.next;u.port2.postMessage(0)}}return function(Z){g.Vn.setTimeout(Z,0)}};
ZZ=function(){this.N=this.G=null};
y$=function(){this.next=this.scope=this.G=null};
g.Kv=function(u,h){RT||wpw();pv||(RT(),pv=!0);e9V.add(u,h)};
wpw=function(){var u=Promise.resolve(void 0);RT=function(){u.then(amn)}};
amn=function(){for(var u;u=e9V.remove();){try{u.G.call(u.scope)}catch(h){i3(h)}n8b($Gw,u)}pv=!1};
J4=function(u){return function(){return u}};
g.Or=function(){};
tVl=function(u){var h=h||0;return function(){return u.apply(this,Array.prototype.slice.call(arguments,0,h))}};
fv=function(u){var h=!1,L;return function(){h||(L=u(),h=!0);return L}};
DZ=function(u){var h=u;return function(){if(h){var L=h;h=null;L()}}};
W4a=function(u,h){var L=0;return function(Z){g.Vn.clearTimeout(L);var y=arguments;L=g.Vn.setTimeout(function(){u.apply(h,y)},50)}};
g.IT=function(u){this.G=0;this.V=void 0;this.B=this.N=this.X=null;this.T=this.C=!1;if(u!=g.Or)try{var h=this;u.call(void 0,function(L){cY(h,2,L)},function(L){cY(h,3,L)})}catch(L){cY(this,3,L)}};
F4Y=function(){this.next=this.context=this.N=this.X=this.G=null;this.B=!1};
A4=function(u,h,L){var Z=b9b.get();Z.X=u;Z.N=h;Z.context=L;return Z};
g.xQ=function(u){if(u instanceof g.IT)return u;var h=new g.IT(g.Or);cY(h,2,u);return h};
PY=function(u){return new g.IT(function(h,L){L(u)})};
g.kGf=function(u,h,L){E8Y(u,h,L,null)||g.Kv(g.gn(h,u))};
g8a=function(u){return new g.IT(function(h,L){u.length||h(void 0);for(var Z,y=0;y<u.length;y++)Z=u[y],g.kGf(Z,h,L)})};
jNn=function(){var u,h,L=new g.IT(function(Z,y){u=Z;h=y});
return new u7V(L,u,h)};
h11=function(u,h,L,Z){Cv(u,A4(h||g.Or,L||null,Z))};
ME=function(u,h){h=uq(h);h=A4(h,h);h.B=!0;Cv(u,h);return u};
L6l=function(u,h){if(u.G==0)if(u.X){var L=u.X;if(L.N){for(var Z=0,y=null,R=null,p=L.N;p&&(p.B||(Z++,p.G==u&&(y=p),!(y&&Z>1)));p=p.next)y||(R=p);y&&(L.G==0&&Z==1?L6l(L,h):(R?(Z=R,Z.next==L.B&&(L.B=Z),Z.next=Z.next.next):jIn(L),hpe(L,y,3,h)))}u.X=null}else cY(u,3,h)};
Cv=function(u,h){u.N||u.G!=2&&u.G!=3||LQb(u);u.B?u.B.next=h:u.N=h;u.B=h};
ZXf=function(u,h,L,Z){var y=A4(null,null,null);y.G=new g.IT(function(R,p){y.X=h?function(J){try{var O=h.call(Z,J);R(O)}catch(f){p(f)}}:R;
y.N=L?function(J){try{var O=L.call(Z,J);O===void 0&&J instanceof iq?p(J):R(O)}catch(f){p(f)}}:p});
y.G.X=u;Cv(u,y);return y.G};
cY=function(u,h,L){u.G==0&&(u===L&&(h=3,L=new TypeError("Promise cannot resolve to itself")),u.G=1,E8Y(L,u.VDd,u.UOB,u)||(u.V=L,u.G=h,u.X=null,LQb(u),h!=3||L instanceof iq||yNa(u,L)))};
E8Y=function(u,h,L,Z){if(u instanceof g.IT)return h11(u,h,L,Z),!0;if(u)try{var y=!!u.$goog_Thenable}catch(p){y=!1}else y=!1;if(y)return u.then(h,L,Z),!0;if(g.Wi(u))try{var R=u.then;if(typeof R==="function")return Rpa(u,R,h,L,Z),!0}catch(p){return L.call(Z,p),!0}return!1};
Rpa=function(u,h,L,Z,y){function R(O){J||(J=!0,Z.call(y,O))}
function p(O){J||(J=!0,L.call(y,O))}
var J=!1;try{h.call(u,p,R)}catch(O){R(O)}};
LQb=function(u){u.C||(u.C=!0,g.Kv(u.Z5,u))};
jIn=function(u){var h=null;u.N&&(h=u.N,u.N=h.next,h.next=null);u.N||(u.B=null);return h};
hpe=function(u,h,L,Z){if(L==3&&h.N&&!h.B)for(;u&&u.T;u=u.X)u.T=!1;if(h.G)h.G.X=null,pM1(h,L,Z);else try{h.B?h.X.call(h.context):pM1(h,L,Z)}catch(y){KQb.call(null,y)}n8b(b9b,h)};
pM1=function(u,h,L){h==2?u.X.call(u.context,L):u.N&&u.N.call(u.context,L)};
yNa=function(u,h){u.T=!0;g.Kv(function(){u.T&&KQb.call(null,h)})};
iq=function(u){Cq.call(this,u)};
u7V=function(u,h,L){this.promise=u;this.resolve=h;this.reject=L};
g.Q$=function(u,h){g.Ev.call(this);this.uX=u||1;this.UI=h||g.Vn;this.rk=(0,g.Ej)(this.CSA,this);this.Fi=g.u3()};
g.lq=function(u,h,L){if(typeof u==="function")L&&(u=(0,g.Ej)(u,L));else if(u&&typeof u.handleEvent=="function")u=(0,g.Ej)(u.handleEvent,u);else throw Error("Invalid listener argument");return Number(h)>2147483647?-1:g.Vn.setTimeout(u,h||0)};
Sn=function(u,h){var L=null;return(new g.IT(function(Z,y){L=g.lq(function(){Z(h)},u);
L==-1&&y(Error("Failed to schedule timer."))})).R5(function(Z){g.Vn.clearTimeout(L);
throw Z;})};
g.X6=function(u){g.m.call(this);this.V=u;this.B=0;this.X=100;this.T=!1;this.N=new Map;this.C=new Set;this.flushInterval=3E4;this.G=new g.Q$(this.flushInterval);this.G.listen("tick",this.Fz,!1,this);g.V(this,this.G)};
JN1=function(u){u.G.enabled||u.G.start();u.B++;u.B>=u.X&&u.Fz()};
OXb=function(u,h){return u.C.has(h)?void 0:u.N.get(h)};
f_1=function(u){for(var h=0;h<u.length;h++)u[h].clear()};
Dob=function(u){switch(u){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}};
cNY=function(u){switch(u){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""}};
vY=function(u,h,L){L=L===void 0?{}:L;h=Error.call(this,h);this.message=h.message;"stack"in h&&(this.stack=h.stack);this.code=u;this.metadata=L;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
g.qE=function(u){return(new I_j).n0(u)};
I_j=function(){};
Tq=function(u,h,L){if(h==null)L.push("null");else{if(typeof h=="object"){if(Array.isArray(h)){var Z=h;h=Z.length;L.push("[");for(var y="",R=0;R<h;R++)L.push(y),Tq(u,Z[R],L),y=",";L.push("]");return}if(h instanceof String||h instanceof Number||h instanceof Boolean)h=h.valueOf();else{L.push("{");y="";for(Z in h)Object.prototype.hasOwnProperty.call(h,Z)&&(R=h[Z],typeof R!="function"&&(L.push(y),ANR(Z,L),L.push(":"),Tq(u,R,L),y=","));L.push("}");return}}switch(typeof h){case "string":ANR(h,L);break;case "number":L.push(isFinite(h)&&
!isNaN(h)?String(h):"null");break;case "boolean":L.push(String(h));break;case "function":L.push("null");break;default:throw Error("Unknown type: "+typeof h);}}};
ANR=function(u,h){h.push('"',u.replace(xoe,function(L){var Z=Pja[L];Z||(Z="\\u"+(L.charCodeAt(0)|65536).toString(16).slice(1),Pja[L]=Z);return Z}),'"')};
Cjb=function(u){switch(u){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"}};
MT1=function(){};
YQ=function(){};
oT=function(u,h,L,Z,y,R,p){var J="";u&&(J+=u+":");L&&(J+="//",h&&(J+=h+"@"),J+=L,Z&&(J+=":"+Z));y&&(J+=y);R&&(J+="?"+R);p&&(J+="#"+p);return J};
NE=function(u){return u?decodeURI(u):u};
g.ru=function(u,h){return h.match(Ur)[u]||null};
g.BY=function(u){return NE(g.ru(3,u))};
g.iXe=function(u){u=u.match(Ur);return oT(u[1],u[2],u[3],u[4])};
zq=function(u){u=u.match(Ur);return oT(null,null,null,null,u[5],u[6],u[7])};
QIe=function(u){var h=u.indexOf("#");return h<0?u:u.slice(0,h)};
mo=function(u,h){if(u){u=u.split("&");for(var L=0;L<u.length;L++){var Z=u[L].indexOf("="),y=null;if(Z>=0){var R=u[L].substring(0,Z);y=u[L].substring(Z+1)}else R=u[L];h(R,y?F7(y):"")}}};
du=function(u,h){if(!h)return u;var L=u.indexOf("#");L<0&&(L=u.length);var Z=u.indexOf("?");if(Z<0||Z>L){Z=L;var y=""}else y=u.substring(Z+1,L);u=[u.slice(0,Z),y,u.slice(L)];L=u[1];u[1]=h?L?L+"&"+h:h:L;return u[0]+(u[1]?"?"+u[1]:"")+u[2]};
V$=function(u,h,L){if(Array.isArray(h))for(var Z=0;Z<h.length;Z++)V$(u,String(h[Z]),L);else h!=null&&L.push(u+(h===""?"":"="+g.Wo(h)))};
l_i=function(u,h){var L=[];for(h=h||0;h<u.length;h+=2)V$(u[h],u[h+1],L);return L.join("&")};
g.nv=function(u){var h=[],L;for(L in u)V$(L,u[L],h);return h.join("&")};
S6a=function(u,h){var L=arguments.length==2?l_i(arguments[1],0):l_i(arguments,1);return du(u,L)};
g.sr=function(u,h){h=g.nv(h);return du(u,h)};
wu=function(u,h,L){L=L!=null?"="+g.Wo(L):"";return du(u,h+L)};
XMs=function(u,h,L,Z){for(var y=L.length;(h=u.indexOf(L,h))>=0&&h<Z;){var R=u.charCodeAt(h-1);if(R==38||R==63)if(R=u.charCodeAt(h+y),!R||R==61||R==38||R==35)return h;h+=y+1}return-1};
en=function(u,h){var L=u.search(vJR),Z=XMs(u,0,h,L);if(Z<0)return null;var y=u.indexOf("&",Z);if(y<0||y>L)y=L;Z+=h.length+1;return F7(u.slice(Z,y!==-1?y:0))};
aT=function(u,h){for(var L=u.search(vJR),Z=0,y,R=[];(y=XMs(u,Z,h,L))>=0;)R.push(u.substring(Z,y)),Z=Math.min(u.indexOf("&",y)+1||L,L);R.push(u.slice(Z));return R.join("").replace(q61,"$1")};
TbL=function(u,h,L){return wu(aT(u,h),h,L)};
g.$Q=function(u){g.Ev.call(this);this.headers=new Map;this.DI=u||null;this.X=!1;this.G=null;this.S="";this.N=0;this.B="";this.T=this.XB=this.Y=this.RH=!1;this.AB=0;this.C=null;this.gw="";this.V=!1};
oJa=function(u,h,L,Z,y,R,p){var J=new g.$Q;Y6b.push(J);h&&J.listen("complete",h);J.bH("ready",J.Et);R&&(J.AB=Math.max(0,R));p&&(J.V=p);J.send(u,L,Z,y)};
UoL=function(u,h){u.X=!1;u.G&&(u.T=!0,u.G.abort(),u.T=!1);u.B=h;u.N=5;NbY(u);t4(u)};
NbY=function(u){u.RH||(u.RH=!0,u.dispatchEvent("complete"),u.dispatchEvent("error"))};
GcR=function(u){if(u.X&&typeof WY!="undefined")if(u.Y&&g.F6(u)==4)setTimeout(u.oK.bind(u),0);else if(u.dispatchEvent("readystatechange"),u.isComplete()){u.getStatus();u.X=!1;try{if(bq(u))u.dispatchEvent("complete"),u.dispatchEvent("success");else{u.N=6;try{var h=g.F6(u)>2?u.G.statusText:""}catch(L){h=""}u.B=h+" ["+u.getStatus()+"]";NbY(u)}}finally{t4(u)}}};
t4=function(u,h){if(u.G){u.C&&(clearTimeout(u.C),u.C=null);var L=u.G;u.G=null;h||u.dispatchEvent("ready");try{L.onreadystatechange=null}catch(Z){}}};
bq=function(u){var h=u.getStatus();a:switch(h){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var L=!0;break a;default:L=!1}if(!L){if(h=h===0)u=g.ru(1,String(u.S)),!u&&g.Vn.self&&g.Vn.self.location&&(u=g.Vn.self.location.protocol.slice(0,-1)),h=!HXb.test(u?u.toLowerCase():"");L=h}return L};
g.F6=function(u){return u.G?u.G.readyState:0};
g.Er=function(u){try{return u.G?u.G.responseText:""}catch(h){return""}};
g.kQ=function(u){try{if(!u.G)return null;if("response"in u.G)return u.G.response;switch(u.gw){case "":case "text":return u.G.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in u.G)return u.G.mozResponseArrayBuffer}return null}catch(h){return null}};
g.rN1=function(u){var h={};u=(u.G&&g.F6(u)>=2?u.G.getAllResponseHeaders()||"":"").split("\r\n");for(var L=0;L<u.length;L++)if(!g.Xg(u[L])){var Z=V1a(u[L]),y=Z[0];Z=Z[1];if(typeof Z==="string"){Z=Z.trim();var R=h[y]||[];h[y]=R;R.push(Z)}}return Mo(h,function(p){return p.join(", ")})};
g.gu=function(u,h){return u.G?u.G.getResponseHeader(h):null};
uv=function(){};
Li=function(u,h){this.logger=u;this.event=h;this.startTime=jZ()};
Zf=function(){DR.apply(this,arguments);this.zd={vP:function(){return[]}}};
yw=function(u,h,L){var Z=jZ();h=h();u.iE(L,jZ()-Z);return h};
Rj=function(){Zf.apply(this,arguments)};
pi=function(u){Zf.call(this);var h=this;this.logger=u;this.zd={B6B:function(){return h.logger},
vP:function(){return h.logger.zd.vP()}};
this.addOnDisposeCallback(function(){return void h.logger.dispose()})};
Bbf=function(u){return{esA:new Xis(u),errorCount:new Yji(u),eventCount:new qjf(u),qn:new TnL(u),I7I:new vbs(u),ROI:new ob1(u),vl:new Nns(u),A3A:new ULb(u)}};
zps=function(u,h,L,Z,y){u=TjR(q0Y(new qx(1828,"0"),u),new uv);h.length&&Y0a(u,Jow(new KHe,h));y!==void 0&&(u.Vb=y);Z&&(u.X=!0);var R=new TZ(1828,"","",!1,"",u.build());g.V(R,u);var p=new g.X6({flush:function(J){try{R.flush(J)}catch(O){L(O)}}});
p.addOnDisposeCallback(function(){setTimeout(function(){try{p.Fz()}finally{R.dispose()}})});
p.X=1E5;p.flushInterval=3E4;p.G.setInterval(3E4);return p};
Ki=function(u,h){g.m.call(this);var L=this;this.callback=u;this.N=h;this.G=-h;this.addOnDisposeCallback(function(){return void clearTimeout(L.tq)})};
moR=function(u){if(u.tq===void 0){var h=Math.max(0,u.G+u.N-jZ());u.tq=setTimeout(function(){try{u.callback()}finally{u.G=jZ(),u.tq=void 0}},h)}};
Jb=function(u,h,L){Zf.call(this);this.metrics=u;this.H7=h;this.uw=L};
OH=function(u,h){h=h===void 0?[]:h;var L={H7:u.H7||"_",uw:u.uw||"",i7:u.i7||[],Mf:u.Mf|0,Vb:u.Vb,GA:u.GA||function(){},
vu:!!u.vu,W5:u.W5||function(R,p){return zps(R,p,L.GA,L.vu,L.Vb)}},Z=L.W5("45",L.i7.concat(h));
Jb.call(this,Bbf(Z),L.H7,L.uw);var y=this;this.X=h;this.zd={vP:function(){return y.options.i7.concat(y.X).sort(function(R,p){return R-p})}};
this.options=L;this.service=Z;this.N=!u.W5;this.G=new Ki(function(){return void y.service.Fz()},L.Mf);
this.addOnDisposeCallback(function(){y.G.dispose();y.N&&y.service.dispose()})};
jZ=function(){var u,h,L;return(L=(u=globalThis.performance)==null?void 0:(h=u.now)==null?void 0:h.call(u))!=null?L:Date.now()};
fi=function(u){this.Mp=UY(u)};
Df=function(u){this.Mp=UY(u)};
cl=function(u){this.Mp=UY(u,0,cl.messageId)};
doY=function(u){this.Mp=UY(u)};
pq=function(u){this.Mp=UY(u)};
Ij=function(u){this.Mp=UY(u)};
g.Ab=function(){var u=this;this.promise=new Promise(function(h,L){u.resolve=h;u.reject=L})};
VTR=function(u,h,L){if(u.disable)return new Rj;var Z=h?QRl(h):[];if(L)return L.Jp(Z),L.share();L=u.H7;var y=u.uw,R=u.Jj,p=u.Tmw;h=h==null?void 0:Rl(h,doY,10);var J=J===void 0?45:J;h=(h==null?void 0:Kq(h,1))||0;u={H7:L,uw:y,i7:R,Mf:p,vu:h>0&&J>=h,Vb:u.Vb,GA:u.GA,W5:u.W5};Z=Z===void 0?[]:Z;return new OH(u,Z)};
xN=function(u){function h(x,Q,S,v){Promise.resolve().then(function(){O.done();J.L5();J.dispose();p.resolve({gK:x,fLd:Q,wry:S,OEw:v})})}
function L(x,Q,S,v){if(!Z.logger.ww()){var T="k";Q?T="h":S&&(T="u");T!=="k"?v!==0&&(Z.logger.HS(T),Z.logger.iE(T,x)):Z.N<=0?(Z.logger.HS(T),Z.logger.iE(T,x),Z.N=Math.floor(Math.random()*200)):Z.N--}}
g.m.call(this);var Z=this;this.N=Math.floor(Math.random()*200);this.G=new Ij;if("challenge"in u&&nJs(u.challenge)){var y=cp(u.challenge,4);var R=cp(u.challenge,5);cp(u.challenge,7)&&(this.G=sIl(cp(u.challenge,7)))}else y=u.program,R=u.globalName;this.addOnDisposeCallback(function(){var x,Q,S;return g.G(function(v){if(v.G==1)return g.N(v,Z.X,2);x=v.N;Q=x.fLd;(S=Q)==null||S();g.i1(v)})});
this.logger=VTR(u.ED||{},this.G,u.kE);g.V(this,this.logger);var p=new g.Ab;this.X=p.promise;this.logger.HS("t");var J=this.logger.share(),O=new Li(J,"t");if(!g.Vn[R])throw this.logger.zz(25),Error("EGOU");if(!g.Vn[R].a)throw this.logger.zz(26),Error("ELIU");try{var f=g.Vn[R].a;R=[];for(var D=[],c=QRl(this.G),I=0;I<c.length;I++)R.push(c[I]),D.push(1);var A=lwi(this.G);for(c=0;c<A.length;c++)R.push(A[c]),D.push(2);this.B=g.C(f(y,h,!0,u.F1,L,[R,D],cp(this.G,5))).next().value;this.aG=p.promise.then(function(){})}catch(x){throw this.logger.zz(28),
x;
}};
wMe=function(u){if(!u)return null;u=f9(u,4);return u===null||u===void 0?null:X7(u)};
Pl=function(){this.N={};this.G=null};
Ci=function(){Pl.instance||(Pl.instance=new Pl);return Pl.instance};
Mq=function(u,h){return epi(u,Rl(h,fi,1),Rl(h,Df,2),cp(h,3))};
epi=function(u,h,L,Z){if(!h&&!L)return Promise.resolve();if(!Z)return a_n(h,L);var y;(y=u.N)[Z]||(y[Z]=new Promise(function(R,p){a_n(h,L).then(function(){u.G=Z;R()},function(J){delete u.N[Z];
p(J)})}));
return u.N[Z]};
a_n=function(u,h){return h?$oV(h):u?tTj(u):Promise.resolve()};
$oV=function(u){return new Promise(function(h,L){var Z=g.kJ("SCRIPT"),y=wMe(u);g.sS(Z,y);Z.onload=function(){g.Lx(Z);h()};
Z.onerror=function(){g.Lx(Z);L(Error("EWLS"))};
(g.nX("HEAD")[0]||document.documentElement).appendChild(Z)})};
tTj=function(u){return new Promise(function(h){var L=g.kJ("SCRIPT");if(u){var Z=f9(u,6);Z=Z===null||Z===void 0?null:vtR(Z)}else Z=null;L.textContent=VC(Z);nB(L);(g.nX("HEAD")[0]||document.documentElement).appendChild(L);g.Lx(L);h()})};
iv=function(u){this.Mp=UY(u)};
Qw=function(u){this.Mp=UY(u)};
lv=function(u,h,L){this.client=u;this.H2=h;this.G=L};
SZ=function(u){g.m.call(this);var h=this;this.options=u;this.C=new g.Ab;this.aG=this.C.promise;this.T=new g.Ab;this.S=1;this.X=new g.Ab;this.B=[];this.XQ=u.XQ||function(){};
this.logger=new pi(VTR(u.ED||{}));WQw(this,u.b_,u.AY,u.ecA,u.r1w,Object.assign({},FQY,u.WI||{}));this.addOnDisposeCallback(function(){return void bXV(h)})};
EJl=function(u){var h;return g.G(function(L){if(u.ww())throw Error("Already disposed");(h=u.G)!=null&&(h.endTimeMs=0,h.UM(1));return g.N(L,u.X.promise,0)})};
bXV=function(u){u.V=Error("Cancelled by dispose");u.T.resolve();fq(u.C.promise);u.C.reject(Error("Cancelled by dispose"));u.logger.dispose();Promise.all(u.B).then(function(){var L;return g.G(function(Z){(L=u.N)==null||L.dispose();u.N=void 0;g.i1(Z)})});
u.B=[];var h;(h=u.G)!=null&&(h.endTimeMs=0,h.UM(1));fq(u.X.promise);u.X.reject(Error("Cancelled by dispose"))};
kcf=function(u,h){var L=u.XQ;u.XQ=function(){L();h()}};
gJw=function(u,h){u.ww()||(u.N=h,u.logger.update(h.CS()),u.T.resolve(),u.C.resolve(void 0),u.XQ())};
urn=function(u,h){h&&(Promise.all(u.B).then(function(){return void h.dispose()}),u.B=[])};
Xk=function(u,h){u.S=h;var L,Z;(Z=(L=u.options).i5B)==null||Z.call(L,h)};
jxe=function(u){u.ww()||(u.X.resolve(),u.X=new g.Ab)};
WQw=function(u,h,L,Z,y,R){Z=Z===void 0?Ci():Z;y=y===void 0?Promise.resolve(void 0):y;var p,J,O,f,D,c,I,A,x,Q,S,v;g.G(function(T){switch(T.G){case 1:return g.N(T,0,3);case 3:J=null;if(!p){T.KI(6);break}Xk(u,7);g.Qn(T,7);return g.N(T,vl(p.snapshot({}),R.ZY,function(){return Promise.resolve("E:CTO")}),9);
case 9:J=T.N;g.Sa(T,6);break;case 7:g.Xf(T),J="E:UCE";case 6:O=void 0,f=p?R.LD:R.iJ,D=new g.Qg(f,R.Hk,R.So,R.Wk),c=0;case 10:if(!(c<R.maxAttempts)){T.KI(12);break}if(c===0){T.KI(13);break}Xk(u,0);u.G=new hWY(D.getValue(),R.pJ,R.iM);return g.N(T,u.G.promise,14);case 14:I=T.N,u.G=void 0,I===1?(c=0,D.reset()):g.lu(D);case 13:g.Qn(T,15);A=void 0;if(L){A=L;T.KI(17);break}Xk(u,5);x=Z.G;return g.N(T,vl(h.zR(x,J),R.Ql,function(){return Promise.reject(Error("RGF:Fetch timed out"))}),18);
case 18:A=T.N;case 17:return Xk(u,3),g.N(T,vl(Mq(Z,A),R.mpA,function(){return Promise.reject(Error("DTZ:Script timed out"))}),19);
case 19:return Xk(u,8),g.N(T,y,20);case 20:return Q=new xN({challenge:A,ED:u.options.ED,F1:u.options.F1}),g.N(T,vl(Q.aG,R.tSI,function(){return Promise.reject(Error("QEG:Setup timed out"))}),21);
case 21:O=Q;T.KI(12);break;case 15:S=g.Xf(T),u.handleError(S),jxe(u);case 11:c++;T.KI(10);break;case 12:if(u.ww()){T.KI(5);break}O&&(L=void 0,urn(u,p),p=O,gJw(u,O),jxe(u));Xk(u,2);u.G=new hWY(R.x37,R.pJ,R.iM);return g.N(T,u.G.promise,22);case 22:u.G=void 0;if(u.ww()){T.KI(5);break}T.KI(3);break;case 5:(v=p)==null||v.dispose(),g.i1(T)}})};
vl=function(u,h,L){var Z,y=new Promise(function(R){Z=setTimeout(R,h)});
return Promise.race([u.finally(function(){return void clearTimeout(Z)}),
y.then(L)])};
hWY=function(u,h,L){function Z(){var R=y.endTimeMs-Date.now();R<=L?y.UM(0):setTimeout(Z,Math.min(R,h))}
var y=this;this.endTimeMs=Date.now()+u;this.promise=new Promise(function(R){y.UM=R});
Z()};
Lwi=function(u,h){try{return globalThis.sessionStorage.setItem(u,h),!0}catch(L){return!1}};
qq=function(u,h,L,Z){h=h===void 0?0:h;L=L===void 0?u.length:L;var y=0;for(Z&&(y=qq(Z));h<L;h++)Z=typeof u==="string"?u.charCodeAt(h):u[h],y=Zxn(31,y)+Z|0;return y};
yfV=function(u,h){return[qq(u,0,u.length>>1,h),qq(u,u.length>>1)]};
RWn=function(u){var h=g.C(yfV(u,Tu));u=h.next().value;h=h.next().value;return u.toString(16)+h.toString(16)};
p91=function(u,h){var L=yfV(h);u=new Uint32Array(u.buffer);h=u[0];var Z=g.C(L);L=Z.next().value;Z=Z.next().value;for(var y=1;y<u.length;y+=2){for(var R=h,p=y,J=L,O=Z,f=0;f<22;f++)p=p>>>8|p<<24,p+=R|0,p^=J+38293,R=R<<3|R>>>29,R^=p,O=O>>>8|O<<24,O+=J|0,O^=f+38293,J=J<<3|J>>>29,J^=O;R=[R,p];u[y]^=R[0];y+1<u.length&&(u[y+1]^=R[1])}};
Kwj=function(u,h,L,Z,y){var R=(4-(Tu.length+L.length)%4)%4,p=new Uint8Array(4+R+Tu.length+4+L.length),J=new DataView(p.buffer),O=0;J.setUint32(O,Math.random()*4294967295);O=O+4+R;p.set(Tu,O);O+=Tu.length;J.setUint32(O,y);p.set(L,O+4);p91(p,Z);return u.eZ(h,function(f){return void globalThis.sessionStorage.removeItem(f)})?Lwi(h,g.Mk(p))?"s":"t":"i"};
JfY=function(u,h){var L=globalThis.sessionStorage.getItem(u);if(!L)return["m"];try{var Z=Qu(L);p91(Z,h)}catch(y){return globalThis.sessionStorage.removeItem(u),["c"]}for(h=4;h<7&&Z[h]===0;)h++;for(L=0;L<Tu.length;L++)if(Z[h++]!==Tu[L])return globalThis.sessionStorage.removeItem(u),["d"];L=(new DataView(Z.buffer)).getUint32(h);return Math.floor(Date.now()/1E3)>=L?(globalThis.sessionStorage.removeItem(u),["e"]):["a",new Uint8Array(Z.buffer,h+4)]};
YN=function(u,h,L){L=L===void 0?[]:L;this.maxItems=u;this.G=h===void 0?0:h;this.N=L};
OxY=function(u){var h=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!h)return new YN(u);var L=h.split(",");if(L.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new YN(u);h=L.slice(1);h.length===1&&h[0]===""&&(h=[]);L=Number(L[0]);return isNaN(L)||L<0||L>h.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new YN(u)):new YN(u,L,h)};
fOb=function(u,h){this.logger=h;try{var L=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(Z){L=!1}L&&(this.index=OxY(u))};
Dxe=function(u,h,L,Z,y){var R=u.index?yw(u.logger,function(){return Kwj(u.index,RWn(h),L,Z,y)},"W"):"u";
u.logger.zF(R)};
cfR=function(u,h,L){var Z=g.C(u.index?yw(u.logger,function(){return JfY(RWn(h),L)},"R"):["u"]),y=Z.next().value;
Z=Z.next().value;u.logger.u3(y);return Z};
xxn=function(u){function h(){L-=Z;L-=y;L^=y>>>13;Z-=y;Z-=L;Z^=L<<8;y-=L;y-=Z;y^=Z>>>13;L-=Z;L-=y;L^=y>>>12;Z-=y;Z-=L;Z^=L<<16;y-=L;y-=Z;y^=Z>>>5;L-=Z;L-=y;L^=y>>>3;Z-=y;Z-=L;Z^=L<<10;y-=L;y-=Z;y^=Z>>>15}
u=IOj(u);for(var L=2654435769,Z=2654435769,y=314159265,R=u.length,p=R,J=0;p>=12;p-=12,J+=12)L+=Nq(u,J),Z+=Nq(u,J+4),y+=Nq(u,J+8),h();y+=R;switch(p){case 11:y+=u[J+10]<<24;case 10:y+=u[J+9]<<16;case 9:y+=u[J+8]<<8;case 8:Z+=u[J+7]<<24;case 7:Z+=u[J+6]<<16;case 6:Z+=u[J+5]<<8;case 5:Z+=u[J+4];case 4:L+=u[J+3]<<24;case 3:L+=u[J+2]<<16;case 2:L+=u[J+1]<<8;case 1:L+=u[J+0]}h();return Afe.toString(y)};
IOj=function(u){for(var h=[],L=0;L<u.length;L++)h.push(u.charCodeAt(L));return h};
Nq=function(u,h){return u[h+0]+(u[h+1]<<8)+(u[h+2]<<16)+(u[h+3]<<24)};
UH=function(u){g.m.call(this);var h=this;this.logger=u;this.N=new g.Ab;this[PuR]=this.dispose;this.addOnDisposeCallback(function(){fq(h.N.promise);h.N.reject()})};
Gu=function(u,h){var L=setTimeout(function(){u.N.resolve()},h);
u.addOnDisposeCallback(function(){return void clearTimeout(L)})};
Hl=function(u,h,L,Z){return yw(u.logger,function(){return L?u.vF(h,Z):u.Fr(h,Z)},u.G)};
r9=function(u,h,L,Z){UH.call(this,u);this.B=h;this.C=L;this.G="m";this.X="x";this.T=0;Gu(this,Z)};
Bl=function(u,h,L){UH.call(this,u);this.B=h;this.G="f";this.X="z";Gu(this,L)};
zu=function(u,h,L){UH.call(this,u);this.B=h;this.G="w";this.X="z";Gu(this,L)};
m3=function(u,h){UH.call(this,u);this.error=h;this.G="e";this.X="y"};
Cuj=function(u,h){var L=(h(u.error.message)+":"+h(u.error.stack)).substring(0,2048);h=L.length+1;L=Vw(L);var Z=new Uint8Array(4+L.length);Z.set([42,h&127|128,h>>7,u.error.code]);Z.set(L,4);return Z};
ni=function(u,h,L){UH.call(this,u);this.B=h;this.clientState=L;this.G="S";this.X="q"};
Vw=function(u){return globalThis.TextEncoder?(new TextEncoder).encode(u):g.QK(u)};
sH=function(u,h,L){g.m.call(this);var Z=this;this.logger=u;this.onError=h;this.state=L;this.V=0;this.N=void 0;this.addOnDisposeCallback(function(){Z.G&&(Z.G.dispose(),Z.G=void 0)})};
MKn=function(u,h){h=h instanceof yK?h:new yK(5,"TVD:error",h);return u.reportError(h)};
w9=function(u,h,L){try{if(u.ww())throw new yK(21,"BNT:disposed");if(!u.G&&u.N)throw u.N;var Z,y;return(y=(Z=ixn(u,h,L))!=null?Z:Qxl(u,h,L))!=null?y:lOl(u,h,L)}catch(R){if(!h.J$)throw MKn(u,R);return Svi(u,L,R)}};
ixn=function(u,h,L){var Z;return(Z=u.G)==null?void 0:Hl(Z,function(){return eZ(u,h)},L,function(y){var R;
if(u.G instanceof r9&&((R=h.zN)==null?0:R.V7))try{var p;(p=u.cache)==null||Dxe(p,eZ(u,h),y,h.zN.Cq,u.S-120)}catch(J){u.reportError(new yK(24,"ELX:write",J))}})};
Qxl=function(u,h,L){var Z;if((Z=h.zN)!=null&&Z.Zw)try{var y,R=(y=u.cache)==null?void 0:cfR(y,eZ(u,h),h.zN.Cq);return R?L?yw(u.logger,function(){return g.Mk(R,2)},"a"):R:void 0}catch(p){u.reportError(new yK(23,"RXO:read",p))}};
lOl=function(u,h,L){var Z={stack:[],error:void 0,hasError:!1};try{if(!h.Zo)throw new yK(29,"SDF:notready");return Hl(hu(Z,new ni(u.logger,u.V,u.state)),function(){return eZ(u,h)},L)}catch(y){Z.error=y,Z.hasError=!0}finally{Lq(Z)}};
Svi=function(u,h,L){var Z={stack:[],error:void 0,hasError:!1};try{var y=MKn(u,L);return Hl(hu(Z,new m3(u.logger,y)),function(){return[]},h)}catch(R){Z.error=R,Z.hasError=!0}finally{Lq(Z)}};
eZ=function(u,h){return h.Nc?h.Nc:h.RM?yw(u.logger,function(){return h.Nc=Vw(h.RM)},"c"):[]};
$N=function(u){var h;sH.call(this,u.Il.CS(),(h=u.onError)!=null?h:function(){},0);
var L=this;this.T=0;this.B=new g.Ab;this.X=!1;this.Il=u.Il;this.b_=u.b_;this.WI=Object.assign({},X9a,u.WI||{});u.uw&&(this.logger instanceof OH||this.logger instanceof pi)&&this.logger.o6(u.uw);this.jC=u.jC||!1;if(vLe(u)){var Z=this.Il;this.C=function(){return EJl(Z).catch(function(p){p=L.reportError(new yK(L.X?20:32,"TRG:Disposed",p));L.N=p;var J;(J=L.G)==null||J.dispose();L.G=void 0;L.B.reject(p)})};
kcf(Z,function(){return void aj(L)});
Z.S===2&&aj(this)}else this.C=u.LIH,aj(this);var y=this.logger.share();y.HS("o");var R=new Li(y,"o");this.B.promise.then(function(){R.done();y.L5();y.dispose()},function(){return void y.dispose()});
this.addOnDisposeCallback(function(){L.X||(L.N?L.logger.L5():(L.N=L.reportError(new yK(32,"TNP:Disposed")),L.logger.L5(),L.B.reject(L.N)));L.logger.dispose()})};
qvR=function(u,h){if(!(h instanceof yK))if(h instanceof vY){var L=Error(h.toString());L.stack=h.stack;h=new yK(11,"EBH:Error",L)}else h=new yK(12,"BSO:Unknown",h);return u.reportError(h)};
aj=function(u){var h,L,Z,y,R,p,J,O,f,D,c,I,A,x,Q;return g.G(function(S){switch(S.G){case 1:h=void 0;u.T++;L=new g.Ab;u.Il instanceof SZ&&u.Il.B.push(L.promise);if(!u.jC){S.KI(2);break}Z=new g.Ab;setTimeout(function(){return void Z.resolve()});
return g.N(S,Z.promise,2);case 2:return y=u.logger.share(),g.Qn(S,4,5),u.state=5,R={},p=[],g.N(S,vl(u.Il.snapshot({RM:R,WR:p}),u.WI.Ghi,function(){return Promise.reject(new yK(15,"MDA:Timeout"))}),7);
case 7:J=S.N;if(u.ww())throw new yK(u.X?20:32,"MDA:Disposed");O=p[0];u.state=6;return g.N(S,vl(y.OD("g",1,u.b_.tU(J)),u.WI.xn,function(){return Promise.reject(new yK(10,"BWB:Timeout"))}),8);
case 8:f=S.N;if(u.ww())throw new yK(u.X?20:32,"BWB:Disposed");u.state=7;h=yw(y,function(){var T=T0a(u,f,L,O);T.N.promise.then(function(){return void u.C()}).catch(function(){});
return T},"i");
case 5:g.vi(S);y.dispose();g.qL(S,6);break;case 4:D=g.Xf(S);(c=h)==null||c.dispose();if(!u.N){I=qvR(u,D);L.resolve();var v;if(v=u.Il instanceof SZ&&u.T<2)a:if(D instanceof yK)v=D.code!==32&&D.code!==20&&D.code!==10;else{if(D instanceof vY)switch(D.code){case 2:case 13:case 14:case 4:break;default:v=!1;break a}v=!0}if(v)return A=(1+Math.random()*.25)*(u.X?6E4:1E3),x=setTimeout(function(){return void u.C()},A),u.addOnDisposeCallback(function(){return void clearTimeout(x)}),S.return();
u.N=I}y.zz(u.X?13:14);u.B.reject(u.N);return S.return();case 6:u.state=8,u.T=0,(Q=u.G)==null||Q.dispose(),u.G=h,u.X=!0,u.B.resolve(),g.i1(S)}})};
T0a=function(u,h,L,Z){var y=Dm(h,2)*1E3;if(y<=0)throw new yK(31,"TTM:Invalid");if(cp(h,4))return new zu(u.logger,cp(h,4),y);if(!Dm(h,3))return new Bl(u.logger,Ye(Wv(h,1)),y);if(!Z)throw new yK(4,"PMD:Undefined");Z=Z(Ye(Wv(h,1)));if(!(Z instanceof Function))throw new yK(16,"APF:Failed");u.S=Math.floor((Date.now()+y)/1E3);u=new r9(u.logger,Z,Dm(h,3),y);u.addOnDisposeCallback(function(){return void L.resolve()});
return u};
tb=function(){var u=0,h;return function(L){h||(h=new Rj);var Z=new ni(h,u,1),y=Hl(Z,function(){return Vw(L)},!0);
Z.dispose();u++;return y}};
Wl=function(u){this.Mp=UY(u)};
YvV=function(u,h,L){this.pP=u;this.xY=h;this.metadata=L};
Fk=function(u,h){h=h===void 0?{}:h;this.lLB=u;this.metadata=h;this.status=null};
bv=function(u,h,L,Z,y){this.name=u;this.methodType="unary";this.requestType=h;this.responseType=L;this.G=Z;this.N=y};
EH=function(u){this.Mp=UY(u)};
kN=function(u){this.Mp=UY(u)};
g9=function(u){this.Mp=UY(u)};
uC=function(u,h){this.V=u.olg;this.S=h;this.G=u.xhr;this.X=[];this.T=[];this.C=[];this.B=[];this.N=[];this.V&&oLR(this)};
Hxn=function(u,h){var L=new N0e;g.Vg(u.G,"complete",function(){if(bq(u.G)){var Z=g.Er(u.G);if(h&&u.G.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");Z=atob(Z)}try{var y=u.S(Z)}catch(J){j6(u,hj(new vY(13,"Error when deserializing response data; error: "+J+(", response: "+Z)),L));return}Z=Dob(u.G.getStatus());Lp(u,ZG(u));Z==0?Uxn(u,y):j6(u,hj(new vY(Z,"Xhr succeeded but the status code is not 200"),L))}else{Z=g.Er(u.G);y=ZG(u);if(Z){var R=GZ1(u,
Z);Z=R.code;var p=R.details;R=R.metadata}else Z=2,p="Rpc failed due to xhr error. uri: "+String(u.G.S)+", error code: "+u.G.N+", error: "+u.G.getLastError(),R=y;Lp(u,y);j6(u,hj(new vY(Z,p,R),L))}})};
oLR=function(u){u.V.Tt("data",function(h){if("1"in h){var L=h["1"];try{var Z=u.S(L)}catch(y){j6(u,new vY(13,"Error when deserializing response data; error: "+y+(", response: "+L)))}Z&&Uxn(u,Z)}if("2"in h)for(h=GZ1(u,h["2"]),L=0;L<u.C.length;L++)u.C[L](h)});
u.V.Tt("end",function(){Lp(u,ZG(u));for(var h=0;h<u.B.length;h++)u.B[h]()});
u.V.Tt("error",function(){if(u.N.length!=0){var h=u.G.N;h!==0||bq(u.G)||(h=6);var L=-1;switch(h){case 0:var Z=2;break;case 7:Z=10;break;case 8:Z=4;break;case 6:L=u.G.getStatus();Z=Dob(L);break;default:Z=14}Lp(u,ZG(u));h=Cjb(h)+", error: "+u.G.getLastError();L!=-1&&(h+=", http status code: "+L);j6(u,new vY(Z,h))}})};
ZG=function(u){var h={},L=g.rN1(u.G);Object.keys(L).forEach(function(Z){h[Z]=L[Z]});
return h};
GZ1=function(u,h){var L=2,Z={};try{var y=rf1(h);L=Kq(y,1);var R=y.getMessage();Rc(y,kN,3).length&&(Z["grpc-web-status-details-bin"]=h)}catch(p){u.G&&u.G.getStatus()===404?(L=5,R="Not Found: "+String(u.G.S)):(L=14,R="Unable to parse RpcStatus: "+p)}return{code:L,details:R,metadata:Z}};
yM=function(u,h){h=u.indexOf(h);h>-1&&u.splice(h,1)};
Uxn=function(u,h){for(var L=0;L<u.X.length;L++)u.X[L](h)};
Lp=function(u,h){for(var L=0;L<u.T.length;L++)u.T[L](h)};
j6=function(u,h){for(var L=0;L<u.N.length;L++)u.N[L](h)};
N0e=function(){var u=Error.call(this);this.message=u.message;"stack"in u&&(this.stack=u.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
hj=function(u,h){h.stack&&(u.stack+="\n"+h.stack);return u};
g.Rs=function(u){this.B=u.N2y||null;this.X=u.wJ||!1;this.N=void 0};
pp=function(u,h){g.Ev.call(this);this.RH=u;this.C=h;this.T=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.S=new Headers;this.N=null;this.AB="GET";this.Y="";this.G=!1;this.V=this.X=this.B=null};
B0n=function(u){u.X.read().then(u.edy.bind(u)).catch(u.EP.bind(u))};
Jj=function(u){u.readyState=4;u.B=null;u.X=null;u.V=null;Kp(u)};
Kp=function(u){u.onreadystatechange&&u.onreadystatechange.call(u)};
g.Ok=function(u){this.G=this.S=this.T="";this.X=null;this.C=this.N="";this.V=!1;var h;u instanceof g.Ok?(this.V=u.V,g.fp(this,u.T),this.S=u.S,g.DG(this,u.G),g.cB(this,u.X),this.N=u.N,Is(this,u.B.clone()),this.C=u.C):u&&(h=String(u).match(Ur))?(this.V=!1,g.fp(this,h[1]||"",!0),this.S=Aj(h[2]||""),g.DG(this,h[3]||"",!0),g.cB(this,h[4]),this.N=Aj(h[5]||"",!0),Is(this,h[6]||"",!0),this.C=Aj(h[7]||"")):(this.V=!1,this.B=new xP(null,this.V))};
g.fp=function(u,h,L){u.T=L?Aj(h,!0):h;u.T&&(u.T=u.T.replace(/:$/,""))};
g.DG=function(u,h,L){u.G=L?Aj(h,!0):h};
g.cB=function(u,h){if(h){h=Number(h);if(isNaN(h)||h<0)throw Error("Bad port number "+h);u.X=h}else u.X=null};
Is=function(u,h,L){h instanceof xP?(u.B=h,zWw(u.B,u.V)):(L||(h=PB(h,mxn)),u.B=new xP(h,u.V))};
g.Cp=function(u,h,L){u.B.set(h,L)};
g.Mf=function(u){return u instanceof g.Ok?u.clone():new g.Ok(u)};
Aj=function(u,h){return u?h?decodeURI(u.replace(/%25/g,"%2525")):decodeURIComponent(u):""};
PB=function(u,h,L){return typeof u==="string"?(u=encodeURI(u).replace(h,dxL),L&&(u=u.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),u):null};
dxL=function(u){u=u.charCodeAt(0);return"%"+(u>>4&15).toString(16)+(u&15).toString(16)};
xP=function(u,h){this.N=this.G=null;this.X=u||null;this.B=!!h};
iC=function(u){u.G||(u.G=new Map,u.N=0,u.X&&mo(u.X,function(h,L){u.add(F7(h),L)}))};
VKn=function(u,h){iC(u);h=QM(u,h);return u.G.has(h)};
g.nLs=function(u,h,L){u.remove(h);L.length>0&&(u.X=null,u.G.set(QM(u,h),g.h8(L)),u.N=u.N+L.length)};
QM=function(u,h){h=String(h);u.B&&(h=h.toLowerCase());return h};
zWw=function(u,h){h&&!u.B&&(iC(u),u.X=null,u.G.forEach(function(L,Z){var y=Z.toLowerCase();Z!=y&&(this.remove(Z),g.nLs(this,y,L))},u));
u.B=h};
g.sxn=function(u){var h="";g.PM(u,function(L,Z){h+=Z;h+=":";h+=L;h+="\r\n"});
return h};
g.lC=function(u,h,L){if(g.Tc(L))return u;L=g.sxn(L);if(typeof u==="string")return wu(u,g.Wo(h),L);g.Cp(u,h,L);return u};
g.S6=function(u){g.m.call(this);this.N=u;this.G={}};
w9n=function(u,h,L,Z,y,R){if(Array.isArray(L))for(var p=0;p<L.length;p++)w9n(u,h,L[p],Z,y,R);else{h=d0(h,L,Z||u.handleEvent,y,R||u.N||u);if(!h)return u;u.G[h.key]=h}return u};
eWj=function(){this.X=!0;this.N=0;this.G=""};
aOw=function(u,h,L){u.X=!1;throw Error("The stream is broken @"+u.N+". Error: "+L+". With input:\n"+h);};
XH=function(){this.C=null;this.V=[];this.B=this.N=this.X=this.G=this.Y=0;this.T=null;this.S=0};
vB=function(u,h,L,Z){u.G=3;u.C="The stream is broken @"+u.Y+"/"+L+". Error: "+Z+". With input:\n"+h;throw Error(u.C);};
qf=function(){this.G=null;this.N=0;this.X=new eWj;this.B=new XH};
$xf=function(u,h,L){u.G="The stream is broken @"+u.N+". Error: "+L+". With input:\n"+h;throw Error(u.G);};
Tk=function(u){return u=="\r"||u=="\n"||u==" "||u=="\t"};
YP=function(u){this.Y=null;this.C=[];this.B="";this.RH=[];this.X=this.N=0;this.V=!1;this.S=0;this.XB=/[\\"]/g;this.G=this.T=0;this.AB=!(!u||!u.lJ)};
os=function(u,h,L){u.T=3;u.Y="The stream is broken @"+u.X+"/"+L+". With input:\n"+h;throw Error(u.Y);};
Nf=function(){this.T=this.X=null;this.N=this.G=0;this.B=[];this.C=!1};
tKl=function(u){var h=g.gu(u,"Content-Type");if(!h)return null;h=h.toLowerCase();return h.startsWith("application/json")?h.startsWith("application/json+protobuf")?new Nf:new YP:h.startsWith("application/x-protobuf")?(u=g.gu(u,"Content-Transfer-Encoding"))?u.toLowerCase()=="base64"?new qf:null:new XH:null};
Uk=function(u){this.G=u;this.N=null;this.T=this.X=0;this.Y=!1;this.B=this.V=this.C=null;this.S=new g.S6(this);this.S.listen(this.G,"readystatechange",this.AB)};
Gk=function(u,h){u.T!=h&&(u.T=h,u.V&&u.V())};
zk=function(u){u.S.removeAll();if(u.G){var h=u.G;u.G=null;h.abort();h.dispose()}};
Www=function(u){u=this.X=u;var h=(0,g.Ej)(this.d1I,this);u.B=h;u=this.X;h=(0,g.Ej)(this.Qbg,this);u.V=h;this.N={};this.G={}};
Fwa=function(u,h){for(var L={},Z=0;Z<u.length;L={tb:void 0},Z++)L.tb=u[Z],h.forEach(function(y){return function(R){try{R(y.tb)}catch(p){}}}(L))};
mC=function(u,h){var L=u.N[h];L&&L.forEach(function(Z){try{Z()}catch(y){}});
(L=u.G[h])&&L.forEach(function(Z){Z()});
u.G[h]=[]};
bxe=function(){var u={format:"jspb"};u=u===void 0?{}:u;this.T=u.bAH||g.wn("suppressCorsPreflight",u)||!1;this.N=u.withCredentials||g.wn("withCredentials",u)||!1;this.B=u.a9w||[];this.C=u.juy||[];this.G=u.suH;this.X=u.UIX||!1};
u6e=function(u,h,L,Z,y,R){R=R===void 0?{}:R;var p=h.substring(0,h.length-y.name.length),J,O=(J=R)==null?void 0:J.signal;return ELf(function(f){return new kZn(function(D,c){if(O==null?0:O.aborted){var I=new vY(1,"Aborted");I.cause=O.reason;c(I)}else{var A={},x=gLi(u,f,p);x.Tt("error",function(Q){return c(Q)});
x.Tt("metadata",function(Q){A=Q});
x.Tt("data",function(Q){var S=A;S=S===void 0?{}:S;D(new Fk(Q,S))});
O&&O.addEventListener("abort",function(){x.cancel();var Q=new vY(1,"Aborted");Q.cause=O.reason;c(Q)})}})},u.C).call(u,y.V(L,Z)).then(function(f){return f.lLB})};
jTe=function(u,h,L,Z,y){var R=R===void 0?{}:R;return u6e(u,h,L,Z,y,R)};
gLi=function(u,h,L){var Z=h.xY,y=h.getMetadata(),R=hzn(u,!0);u=Loe(u,y,R,L+Z.getName());L=Zvf(R,Z.N,!1);Hxn(L,y["X-Goog-Encode-Response-If-Executable"]=="base64");h=Z.G(h.pP);R.send(u,"POST",h);return L};
hzn=function(u,h){h=u.X&&!h;return u.G||h?new g.$Q(new g.Rs({N2y:u.G,wJ:h})):new g.$Q};
Loe=function(u,h,L,Z){h["Content-Type"]="application/json+protobuf";h["X-User-Agent"]="grpc-web-javascript/0.1";var y=h.Authorization;if(y&&y4b.has(y.split(" ")[0])||u.N)L.V=!0;if(u.T)Z=g.lC(Z,"$httpHeaders",h);else for(var R in h)L.headers.set(R,h[R]);return Z};
Zvf=function(u,h,L){if(L){u.isActive();L=new Uk(u);var Z=new Www(L)}return new uC({xhr:u,olg:Z},h)};
ELf=function(u,h){return h.reduce(function(L,Z){return function(y){return Z.intercept(y,L)}},u)};
Rzj=function(){this.G=new bxe;this.N="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
dB=function(u){g.m.call(this);this.owner=u;this.signals=new Set;u&&g.V(u,this)};
VM=function(u,h){u.signals.has(h);return h};
np=function(u){g.m.call(this);this.OB=u;this.slots=new Map;this.gE=new Set;this.w5=!1};
pYi=function(u,h){u.ww()||u.slots.set(h,{slotId:h,slot:void 0,xQ:function(){return u.slots.delete(h)}})};
wB=function(u,h){new Promise(function(L){sk(function(){u.OB&&(u.DD=h,u.w5=!0);for(var Z=g.C(u.slots.values()),y=Z.next();!y.done;y=Z.next()){var R=y.value;y=R.slotId;R=R.slot;try{R(h,{signal:u,slotId:y})}catch(p){i3(p)}}Z=g.C(u.gE);for(y=Z.next();!y.done;y=Z.next())y.value.resolve(h);u.gE.clear();L()})})};
sk=function(u){e6.push(u);Koa()};
Koa=function(){var u,h;g.G(function(L){switch(L.G){case 1:if(as)return L.return();g.Qn(L,2,3);as=!0;u=J4n(0);case 5:if(!(u<e6.length)){L.KI(3);break}return g.N(L,Promise.resolve(),8);case 8:u=J4n(u);L.KI(5);break;case 3:g.vi(L);e6.length=0;as=!1;g.qL(L,0);break;case 2:h=g.Xf(L),i3(h),L.KI(3)}})};
J4n=function(u){for(var h=u+100;u<h&&u<e6.length;)try{e6[u++]()}catch(L){i3(L)}return u};
Ovn=function(u,h){if(u.ww())h();else{var L=$P.get(u);if(L)L.push(h);else{var Z=[h];$P.set(u,Z);u.addOnDisposeCallback(function(){for(var y=g.C([].concat(g.l(Z))),R=y.next();!R.done;R=y.next())R=R.value,R();$P.delete(u)})}}};
tj=function(u,h,L){g.m.call(this);this.V=u;this.milliseconds=h;this.XD=L;this.state=this.B=0};
fZY=function(u){return new tj(!1,u,{mS:function(){},
BQ:void 0})};
WB=function(u){Cq.call(this,u);this.name="TimerCancelledError"};
FH=function(u){Cq.call(this,u);this.name="TimerDisposedError"};
DE1=function(u){var h={RM:u.RM,Nc:u.Nc,Zo:!0,J$:!0};u.zN&&(u=u.zN,h.zN={Cq:u.Cq,Zw:u.Zw,V7:u.V7});return h};
bC=function(u){var h;sH.call(this,u.ILi?new Rj:new OH({H7:u.H7,uw:u.H2,i7:u.i7},[]),(h=u.onError)!=null?h:function(){},1);
this.X=new g.Ab;this.AY=void 0;this.b_=u.b_;this.yM=u.yM;var L;this.onEvent=(L=u.onEvent)!=null?L:function(){}};
IZY=function(u){var h,L,Z,y,R,p,J,O,f,D,c,I,A,x,Q,S;return g.G(function(v){switch(v.G){case 1:h=void 0,L=u.isReady()?6E4:1E3,Z=new g.Qg(L,6E5,.25,2),y={},R=1;case 2:if(!(R<=2)){v.KI(4);break}g.Qn(v,5);u.state=3;u.V=R-1;return g.N(v,u.AY&&R===1?u.AY:u.zR(R),7);case 7:return p=v.N,u.AY=void 0,u.state=4,J=new Li(u.logger,"b"),g.N(v,Mq(Ci(),p),8);case 8:return u.state=5,u.onEvent(1),y.T5=3,y.Qd=new xN({challenge:p,kE:u.logger}),O=Ek(u,12E4).then(function(U){return function(){u.onEvent(U.T5);return Promise.reject(new yK(15,
"MDA:Timeout"))}}(y)),g.N(v,Promise.race([y.Qd.aG,
O]),9);case 9:return u.onEvent(2),f=[],u.onEvent(4),y.T5=6,g.N(v,Promise.race([y.Qd.snapshot({WR:f}),O]),10);case 10:return D=v.N,u.onEvent(5),c=g.C(f),I=c.next().value,y.If=I,J.done(),u.state=6,g.N(v,c4a(u,u.logger.OD("g",R,u.b_.tU(D)),new yK(10,"BWB:Timeout")),11);case 11:return y.RL=v.N,u.state=7,A=yw(u.logger,function(U){return function(){var z=U.RL;var d=U.Qd;var W=U.If;if(cp(z,4))d.dispose(),d=new zu(u.logger,cp(z,4),Dm(z,2)*1E3);else if(Dm(z,3)){if(!W)throw new yK(4,"PMD:Undefined");var t=
W(Ye(Wv(z,1)));if(!(t instanceof Function))throw new yK(16,"APF:Failed");W=Dm(z,2)*1E3;z=new r9(u.logger,t,Dm(z,3),W);g.V(z,d);u.S=Math.floor((Date.now()+W)/1E3);d=z}else d.dispose(),d=new Bl(u.logger,Ye(Wv(z,1)),Dm(z,2)*1E3);return d}}(y),"i"),Q=x=void 0,(Q=(x=u).yM)==null||Q.call(x,Ye(Wv(y.RL,1))),u.state=8,v.return(A);
case 5:S=g.Xf(v);h=S instanceof yK?S:S instanceof FH?new yK(20,"WTO:Disposed",S):S instanceof vY?new yK(11,"EBH:Error",S):new yK(12,"BSO:Unknown",S);u.reportError(h);a:{if(S instanceof vY)switch(S.code){case 2:case 13:case 14:case 4:var T=!0;break a;default:T=!1;break a}T=S instanceof yK?S.code!==20:!0}if(!T)throw h;return g.N(v,Ek(u,Z.getValue()),12);case 12:g.lu(Z);case 3:y={T5:void 0,RL:void 0,Qd:void 0,If:void 0};R++;v.KI(2);break;case 4:throw h;}})};
Ek=function(u,h){h=fZY(h);g.V(u,h);h.start();return h.S};
c4a=function(u,h,L){return Promise.race([h,Ek(u,12E4).then(function(){return Promise.reject(L)})])};
A41=function(u){var h,L,Z;g.G(function(y){switch(y.G){case 1:return h=void 0,g.Qn(y,5),g.N(y,IZY(u),7);case 7:h=y.N;g.Sa(y,6);break;case 5:L=g.Xf(y);if(u.G){u.logger.zz(13);y.KI(0);break}u.logger.zz(14);h=new m3(u.logger,L instanceof yK?L:new yK(14,"SOM:Init",L instanceof Error?L:Error(String(L))));case 6:return Z=void 0,(Z=u.G)==null||Z.dispose(),u.G=h,u.X.resolve(),g.Qn(y,8),g.N(y,u.G.N.promise,10);case 10:g.Sa(y,1);break;case 8:g.Xf(y),y.KI(0)}})};
xEj=function(u,h){h.zN&&!u.cache&&u.Gu(Math.min(h.zN.XJB,150))};
Pqf=function(u){var h={};g.A8(u,function(L){var Z=L.event,y=h[Z];h.hasOwnProperty(Z)?y!==null&&(L.ys(y)||(h[Z]=null)):h[Z]=L});
gba(u,function(L){return h[L.event]===null})};
kP=function(){this.LW=0;this.G=!1;this.N=-1;this.rL=!1;this.I5=0};
gB=function(){this.N=null;this.G=!1};
ud=function(u){gB.call(this);this.B=u};
jY=function(){gB.call(this)};
hA=function(){gB.call(this)};
Lh=function(){this.G={};this.N=!0;this.X={}};
Za=function(u,h,L){u.G[h]||(u.G[h]=new ud(L));return u.G[h]};
Cqf=function(u){u.G.queryid||(u.G.queryid=new hA)};
yZ=function(u,h,L){(u=u.G[h])&&u.X(L)};
RQ=function(u,h){if(g.Xl(u.X,h))return u.X[h];if(u=u.G[h])return u.getValue()};
ph=function(u){var h={},L=g.CX(u.G,function(Z){return Z.G});
g.PM(L,function(Z,y){Z=u.X[y]!==void 0?String(u.X[y]):Z.G&&Z.N!==null?String(Z.N):"";Z.length>0&&(h[y]=Z)},u);
return h};
Mnf=function(u){u=ph(u);var h=[];g.PM(u,function(L,Z){Z in Object.prototype||typeof L!="undefined"&&h.push([Z,":",L].join(""))});
return h};
QTf=function(u){Za(u,"od",ivw);Za(u,"opac",Kh).G=!0;Za(u,"sbeos",Kh).G=!0;Za(u,"prf",Kh).G=!0;Za(u,"mwt",Kh).G=!0;Za(u,"iogeo",Kh)};
lZs=function(){this.G=this.TO=null};
JA=function(){};
fh=function(){if(!Oq())throw Error();};
Oq=function(){return!(!Da||!Da.performance)};
cG=function(u){return u?u.passive&&Sre()?u:u.capture||!1:!1};
IQ=function(u,h,L,Z){return u.addEventListener?(u.addEventListener(h,L,cG(Z)),!0):!1};
AA=function(u){return u.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[u.visibilityState||u.webkitVisibilityState||u.mozVisibilityState||""]||0};
XYf=function(){};
vQR=function(){return(U8||Gy)&&H1?H1.mobile:!x4()&&(B1("iPod")||B1("iPhone")||B1("Android")||B1("IEMobile"))};
x4=function(){return(U8||Gy)&&H1?!H1.mobile&&(B1("iPad")||B1("Android")||B1("Silk")):B1("iPad")||B1("Android")&&!B1("Mobile")||B1("Silk")};
PG=function(u){try{return!!u&&u.location.href!=null&&RYj(u,"foo")}catch(h){return!1}};
Ch=function(u,h){if(u)for(var L in u)Object.prototype.hasOwnProperty.call(u,L)&&h(u[L],L,u)};
Tuw=function(){var u=[];Ch(qrj,function(h){u.push(h)});
return u};
Yrn=function(u){var h,L;return(L=(h=/https?:\/\/[^\/]+/.exec(u))==null?void 0:h[0])!=null?L:""};
UEj=function(){var u=oQb("IFRAME"),h={};g.A8(NuR(),function(L){u.sandbox&&u.sandbox.supports&&u.sandbox.supports(L)&&(h[L]=!0)});
return h};
oQb=function(u,h){h=h===void 0?document:h;return h.createElement(String(u).toLowerCase())};
Gql=function(u){for(var h=u;u&&u!=u.parent;)u=u.parent,PG(u)&&(h=u);return h};
zzs=function(u){u=u||MR();for(var h=new Hvw(g.Vn.location.href,!1),L=null,Z=u.length-1,y=Z;y>=0;--y){var R=u[y];!L&&r4b.test(R.url)&&(L=R);if(R.url&&!R.XX){h=R;break}}y=null;R=u.length&&u[Z].url;h.depth!=0&&R&&(y=u[Z]);return new Bun(h,y,L)};
MR=function(){var u=g.Vn,h=[],L=null;do{var Z=u;if(PG(Z)){var y=Z.location.href;L=Z.document&&Z.document.referrer||null}else y=L,L=null;h.push(new Hvw(y||""));try{u=Z.parent}catch(R){u=null}}while(u&&Z!=u);Z=0;for(u=h.length-1;Z<=u;++Z)h[Z].depth=u-Z;Z=g.Vn;if(Z.location&&Z.location.ancestorOrigins&&Z.location.ancestorOrigins.length==h.length-1)for(u=1;u<h.length;++u)y=h[u],y.url||(y.url=Z.location.ancestorOrigins[u-1]||"",y.XX=!0);return h};
Bun=function(u,h,L){this.G=u;this.N=h;this.X=L};
Hvw=function(u,h){this.url=u;this.XX=!!h;this.depth=null};
id=function(){this.X="&";this.N={};this.B=0;this.G=[]};
QZ=function(u,h){var L={};L[u]=h;return[L]};
mEj=function(u,h,L,Z,y){var R=[];Ch(u,function(p,J){(p=ld(p,h,L,Z,y))&&R.push(J+"="+p)});
return R.join(h)};
ld=function(u,h,L,Z,y){if(u==null)return"";h=h||"&";L=L||",$";typeof L==="string"&&(L=L.split(""));if(u instanceof Array){if(Z||(Z=0),Z<L.length){for(var R=[],p=0;p<u.length;p++)R.push(ld(u[p],h,L,Z+1,y));return R.join(L[Z])}}else if(typeof u==="object")return y||(y=0),y<2?encodeURIComponent(mEj(u,h,L,Z,y+1)):"...";return encodeURIComponent(String(u))};
dEb=function(u){var h=1,L;for(L in u.N)L.length>h&&(h=L.length);return 3997-h-u.X.length-1};
SY=function(u,h){this.G=u;this.depth=h};
nQj=function(){function u(J,O){return J==null?O:J}
var h=MR(),L=Math.max(h.length-1,0),Z=zzs(h);h=Z.G;var y=Z.N,R=Z.X,p=[];R&&p.push(new SY([R.url,R.XX?2:0],u(R.depth,1)));y&&y!=R&&p.push(new SY([y.url,2],0));h.url&&h!=R&&p.push(new SY([h.url,0],u(h.depth,L)));Z=g.Xx(p,function(J,O){return p.slice(0,p.length-O)});
!h.url||(R||y)&&h!=R||(y=Yrn(h.url))&&Z.push([new SY([y,1],u(h.depth,L))]);Z.push([]);return g.Xx(Z,function(J){return VnL(L,J)})};
VnL=function(u,h){g.vG(h,function(y){return y.depth>=0});
var L=qR(h,function(y,R){return Math.max(y,R.depth)},-1),Z=Zqe(L+2);
Z[0]=u;g.A8(h,function(y){return Z[y.depth+1]=y.G});
return Z};
sTY=function(){var u=u===void 0?nQj():u;return u.map(function(h){return ld(h)})};
wYi=function(u){var h=!1;h=h===void 0?!1:h;Da.google_image_requests||(Da.google_image_requests=[]);var L=oQb("IMG",Da.document);h&&(L.attributionSrc="");L.src=u;Da.google_image_requests.push(L)};
Th=function(u){var h="o7";if(u.o7&&u.hasOwnProperty(h))return u.o7;var L=new u;u.o7=L;u.hasOwnProperty(h);return L};
Y4=function(){this.N=new XYf;this.G=Oq()?new fh:new JA};
ezj=function(){oQ();var u=Da.document;return!!(u&&u.body&&u.body.getBoundingClientRect&&typeof Da.setInterval==="function"&&typeof Da.clearInterval==="function"&&typeof Da.setTimeout==="function"&&typeof Da.clearTimeout==="function")};
aZ1=function(){oQ();return sTY()};
$EV=function(){};
oQ=function(){var u=Th($EV);if(!u.G){if(!Da)throw Error("Context has not been set and window is undefined.");u.G=Th(Y4)}return u.G};
NR=function(u){this.Mp=UY(u)};
tnn=function(u){this.X=u;this.G=-1;this.N=this.B=0};
Uq=function(u,h){return function(){var L=g.NL.apply(0,arguments);if(u.G>-1)return h.apply(null,g.l(L));try{return u.G=u.X.G.now(),h.apply(null,g.l(L))}finally{u.B+=u.X.G.now()-u.G,u.G=-1,u.N+=1}}};
Wof=function(u,h){this.N=u;this.X=h;this.G=new tnn(u)};
Fo1=function(){this.G={}};
EQl=function(){var u=Gh().flags,h=bvn;u=u.G[h.key];if(h.valueType==="proto"){try{var L=JSON.parse(u);if(Array.isArray(L))return L}catch(Z){}return h.defaultValue}return typeof u===typeof h.defaultValue?u:h.defaultValue};
jj1=function(){this.X=void 0;this.N=this.C=0;this.T=-1;this.Ok=new Lh;Za(this.Ok,"mv",kql).G=!0;Za(this.Ok,"omid",Kh);Za(this.Ok,"epoh",Kh).G=!0;Za(this.Ok,"epph",Kh).G=!0;Za(this.Ok,"umt",Kh).G=!0;Za(this.Ok,"phel",Kh).G=!0;Za(this.Ok,"phell",Kh).G=!0;Za(this.Ok,"oseid",gQj).G=!0;var u=this.Ok;u.G.sloi||(u.G.sloi=new jY);u.G.sloi.G=!0;Za(this.Ok,"mm",HG);Za(this.Ok,"ovms",ukf).G=!0;Za(this.Ok,"xdi",Kh).G=!0;Za(this.Ok,"amp",Kh).G=!0;Za(this.Ok,"prf",Kh).G=!0;Za(this.Ok,"gtx",Kh).G=!0;Za(this.Ok,
"mvp_lv",Kh).G=!0;Za(this.Ok,"ssmol",Kh).G=!0;Za(this.Ok,"fmd",Kh).G=!0;Za(this.Ok,"gen204simple",Kh);this.G=new Wof(oQ(),this.Ok);this.B=!1;this.flags=new Fo1};
Gh=function(){return Th(jj1)};
hZn=function(u,h,L,Z){if(Math.random()<(Z||u.G))try{if(L instanceof id)var y=L;else y=new id,Ch(L,function(p,J){var O=y,f=O.B++;p=QZ(J,p);O.G.push(f);O.N[f]=p});
var R=y.VQ(u.N,"pagead2.googlesyndication.com","/pagead/gen_204?id="+h+"&");R&&(oQ(),wYi(R))}catch(p){}};
L31=function(u,h,L){L=L===void 0?{}:L;this.error=u;this.context=h.context;this.msg=h.message||"";this.id=h.id||"jserror";this.meta=L};
Zi1=function(){var u=u===void 0?g.Vn:u;return(u=u.performance)&&u.now&&u.timing?Math.floor(u.now()+u.timing.navigationStart):g.u3()};
ybj=function(){var u=u===void 0?g.Vn:u;return(u=u.performance)&&u.now?u.now():null};
RZf=function(u,h,L){this.label=u;this.type=h;this.value=L;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()};
BG=function(){var u=window;this.events=[];this.N=u||g.Vn;var h=null;u&&(u.google_js_reporting_queue=u.google_js_reporting_queue||[],this.events=u.google_js_reporting_queue,h=u.google_measure_js_timing);this.G=rH()||(h!=null?h:Math.random()<1)};
plL=function(u){u&&zh&&rH()&&(zh.clearMarks("goog_"+u.label+"_"+u.uniqueId+"_start"),zh.clearMarks("goog_"+u.label+"_"+u.uniqueId+"_end"))};
K3a=function(){var u=mB;this.G=dH;this.l5="jserror";this.qb=!0;this.Xn=null;this.N=this.VP;this.Wj=u===void 0?null:u};
Jb1=function(u,h,L){var Z=VZ;return Uq(Gh().G.G,function(){try{if(Z.Wj&&Z.Wj.G){var y=Z.Wj.start(u.toString(),3);var R=h();Z.Wj.end(y)}else R=h()}catch(J){var p=Z.qb;try{plL(y),p=Z.N(u,new nh(sq(J)),void 0,L)}catch(O){Z.VP(217,O)}if(!p)throw J;}return R})()};
wH=function(u,h,L,Z){return Uq(Gh().G.G,function(){var y=g.NL.apply(0,arguments);return Jb1(u,function(){return h.apply(L,y)},Z)})};
sq=function(u){var h=u.toString();u.name&&h.indexOf(u.name)==-1&&(h+=": "+u.name);u.message&&h.indexOf(u.message)==-1&&(h+=": "+u.message);if(u.stack)a:{u=u.stack;var L=h;try{u.indexOf(L)==-1&&(u=L+"\n"+u);for(var Z;u!=Z;)Z=u,u=u.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");h=u.replace(/\n */g,"\n");break a}catch(y){h=L;break a}h=void 0}return h};
nh=function(u){L31.call(this,Error(u),{message:u})};
Oi1=function(){Da&&typeof Da.google_measure_js_timing!="undefined"&&(Da.google_measure_js_timing||mB.disable())};
ffa=function(u){VZ.Xn=function(h){g.A8(u,function(L){L(h)})}};
DqR=function(u,h){return Jb1(u,h)};
eY=function(u,h){return wH(u,h)};
aQ=function(u,h,L,Z){VZ.VP(u,h,L,Z)};
$4=function(){return Date.now()-cbi};
Ifa=function(){var u=Gh().X,h=tA>=0?$4()-tA:-1,L=WG?$4()-Fx:-1,Z=bd>=0?$4()-bd:-1;if(u==947190542)return 100;if(u==79463069)return 200;u=[2E3,4E3];var y=[250,500,1E3];aQ(637,Error(),.001);var R=h;L!=-1&&L<h&&(R=L);for(h=0;h<u.length;++h)if(R<u[h]){var p=y[h];break}p===void 0&&(p=y[u.length]);return Z!=-1&&Z>1500&&Z<4E3?500:p};
Eq=function(u,h,L,Z){this.top=u;this.right=h;this.bottom=L;this.left=Z};
k4=function(u){return u.right-u.left};
gH=function(u,h){return u==h?!0:u&&h?u.top==h.top&&u.right==h.right&&u.bottom==h.bottom&&u.left==h.left:!1};
uL=function(u,h,L){h instanceof g.O6?(u.left+=h.x,u.right+=h.x,u.top+=h.y,u.bottom+=h.y):(u.left+=h,u.right+=h,typeof L==="number"&&(u.top+=L,u.bottom+=L));return u};
jr=function(u,h,L){var Z=new Eq(0,0,0,0);this.time=u;this.volume=null;this.X=h;this.G=Z;this.N=L};
hB=function(u,h,L,Z,y,R,p,J){this.B=u;this.V=h;this.X=L;this.C=Z;this.G=y;this.T=R;this.N=p;this.S=J};
xqs=function(u){var h=u!==u.top,L=u.top===Gql(u),Z=-1,y=0;if(h&&L&&u.top.mraid){Z=3;var R=u.top.mraid}else Z=(R=u.mraid)?h?L?2:1:0:-1;R&&(R.IS_GMA_SDK||(y=2),e8j(Abe,function(p){return typeof R[p]==="function"})||(y=1));
return{dH:R,compatibility:y,xOB:Z}};
Pvl=function(){var u=window.document;return u&&typeof u.elementFromPoint==="function"};
Cv1=function(u,h,L){u&&h!==null&&h!=h.top&&(h=h.top);try{return(L===void 0?0:L)?(new g.II(h.innerWidth,h.innerHeight)).round():yMe(h||window).round()}catch(Z){return new g.II(-12245933,-12245933)}};
Lf=function(u,h,L){try{u&&(h=h.top);var Z=Cv1(u,h,L),y=Z.height,R=Z.width;if(R===-12245933)return new Eq(R,R,R,R);var p=ppe(db(h.document).G),J=p.x,O=p.y;return new Eq(O,J+R,O+y,J)}catch(f){return new Eq(-12245933,-12245933,-12245933,-12245933)}};
g.ZE=function(u,h,L,Z){this.left=u;this.top=h;this.width=L;this.height=Z};
yz=function(u,h){return u==h?!0:u&&h?u.left==h.left&&u.width==h.width&&u.top==h.top&&u.height==h.height:!1};
g.Oz=function(u,h,L){if(typeof h==="string")(h=JB(u,h))&&(u.style[h]=L);else for(var Z in h){L=u;var y=h[Z],R=JB(L,Z);R&&(L.style[R]=y)}};
JB=function(u,h){var L=MZw[h];if(!L){var Z=z8b(h);L=Z;u.style[Z]===void 0&&(Z=(g.WM?"Webkit":ff?"Moz":null)+dMV(Z),u.style[Z]!==void 0&&(L=Z));MZw[h]=L}return L};
g.DE=function(u,h){var L=u.style[z8b(h)];return typeof L!=="undefined"?L:u.style[JB(u,h)]||""};
c7=function(u,h){var L=mQ(u);return L.defaultView&&L.defaultView.getComputedStyle&&(u=L.defaultView.getComputedStyle(u,null))?u[h]||u.getPropertyValue(h)||"":""};
IS=function(u,h){return c7(u,h)||(u.currentStyle?u.currentStyle[h]:null)||u.style&&u.style[h]};
g.xX=function(u,h,L){if(h instanceof g.O6){var Z=h.x;h=h.y}else Z=h,h=L;u.style.left=g.AB(Z,!1);u.style.top=g.AB(h,!1)};
P7=function(u){try{return u.getBoundingClientRect()}catch(h){return{left:0,top:0,right:0,bottom:0}}};
ii1=function(u){var h=mQ(u),L=IS(u,"position"),Z=L=="fixed"||L=="absolute";for(u=u.parentNode;u&&u!=h;u=u.parentNode)if(u.nodeType==11&&u.host&&(u=u.host),L=IS(u,"position"),Z=Z&&L=="static"&&u!=h.documentElement&&u!=h.body,!Z&&(u.scrollWidth>u.clientWidth||u.scrollHeight>u.clientHeight||L=="fixed"||L=="absolute"||L=="relative"))return u;return null};
g.Cf=function(u){var h=mQ(u),L=new g.O6(0,0);if(u==(h?mQ(h):document).documentElement)return L;u=P7(u);h=ppe(db(h).G);L.x=u.left+h.x;L.y=u.top+h.y;return L};
lfb=function(u,h){var L=new g.O6(0,0),Z=Fl(mQ(u));if(!RYj(Z,"parent"))return L;do{var y=Z==h?g.Cf(u):Qji(u);L.x+=y.x;L.y+=y.y}while(Z&&Z!=h&&Z!=Z.parent&&(u=Z.frameElement)&&(Z=Z.parent));return L};
g.M2=function(u,h){u=SHL(u);h=SHL(h);return new g.O6(u.x-h.x,u.y-h.y)};
Qji=function(u){u=P7(u);return new g.O6(u.left,u.top)};
SHL=function(u){if(u.nodeType==1)return Qji(u);u=u.changedTouches?u.changedTouches[0]:u;return new g.O6(u.clientX,u.clientY)};
g.iL=function(u,h,L){if(h instanceof g.II)L=h.height,h=h.width;else if(L==void 0)throw Error("missing height argument");u.style.width=g.AB(h,!0);u.style.height=g.AB(L,!0)};
g.AB=function(u,h){typeof u=="number"&&(u=(h?Math.round(u):u)+"px");return u};
g.Qz=function(u){var h=Xlj;if(IS(u,"display")!="none")return h(u);var L=u.style,Z=L.display,y=L.visibility,R=L.position;L.visibility="hidden";L.position="absolute";L.display="inline";u=h(u);L.display=Z;L.position=R;L.visibility=y;return u};
Xlj=function(u){var h=u.offsetWidth,L=u.offsetHeight,Z=g.WM&&!h&&!L;return(h===void 0||Z)&&u.getBoundingClientRect?(u=P7(u),new g.II(u.right-u.left,u.bottom-u.top)):new g.II(h,L)};
g.lL=function(u,h){u.style.display=h?"":"none"};
Sr=function(u,h){h=Math.pow(10,h);return Math.floor(u*h)/h};
vNV=function(u){return new Eq(u.top,u.right,u.bottom,u.left)};
qHw=function(u){var h=u.top||0,L=u.left||0;return new Eq(h,L+(u.width||0),h+(u.height||0),L)};
Xh=function(u){return u!=null&&u>=0&&u<=1};
T9j=function(){var u=g.N7();return u?oS("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(h){return q7(u,h)})||q7(u,"OMI/")&&!q7(u,"XiaoMi/")?!0:q7(u,"Presto")&&q7(u,"Linux")&&!q7(u,"X11")&&!q7(u,"Android")&&!q7(u,"Mobi"):!1};
YHL=function(){this.X=!PG(Da.top);this.isMobileDevice=x4()||vQR();var u=MR();this.domain=u.length>0&&u[u.length-1]!=null&&u[u.length-1].url!=null?g.BY(u[u.length-1].url)||"":"";this.G=new Eq(0,0,0,0);this.B=new g.II(0,0);this.T=new g.II(0,0);this.V=new Eq(0,0,0,0);this.frameOffset=new g.O6(0,0);this.C=0;this.S=!1;this.N=!(!Da||!xqs(Da).dH);this.update(Da)};
oNL=function(u,h){h&&h.screen&&(u.B=new g.II(h.screen.width,h.screen.height))};
N9R=function(u,h){a:{var L=u.G?new g.II(k4(u.G),u.G.getHeight()):new g.II(0,0);h=h===void 0?Da:h;h!==null&&h!=h.top&&(h=h.top);var Z=0,y=0;try{var R=h.document,p=R.body,J=R.documentElement;if(R.compatMode=="CSS1Compat"&&J.scrollHeight)Z=J.scrollHeight!=L.height?J.scrollHeight:J.offsetHeight,y=J.scrollWidth!=L.width?J.scrollWidth:J.offsetWidth;else{var O=J.scrollHeight,f=J.scrollWidth,D=J.offsetHeight,c=J.offsetWidth;J.clientHeight!=D&&(O=p.scrollHeight,f=p.scrollWidth,D=p.offsetHeight,c=p.offsetWidth);
O>L.height?O>D?(Z=O,y=f):(Z=D,y=c):O<D?(Z=O,y=f):(Z=D,y=c)}var I=new g.II(y,Z);break a}catch(A){I=new g.II(-12245933,-12245933);break a}I=void 0}u.T=I};
Gm=function(){var u=N2();if(u.C>0||u.S)return!0;u=oQ().N.isVisible();var h=AA(Uz)===0;return u||h};
N2=function(){return Th(YHL)};
H7=function(u){this.X=u;this.N=0;this.G=null};
rK=function(u,h,L){this.X=u;this.aH=L===void 0?"na":L;this.T=[];this.isInitialized=!1;this.B=new jr(-1,!0,this);this.G=this;this.S=h;this.AB=this.Y=!1;this.DI="uk";this.gw=!1;this.C=!0};
B7=function(u,h){g.E8(u.T,h)||(u.T.push(h),h.Vp(u.G),h.AF(u.B),h.A9()&&(u.Y=!0))};
Uqs=function(u){u=u.G;u.VS();u.jc();var h=N2();h.V=Lf(!1,u.X,h.isMobileDevice);N9R(N2(),u.X);u.B.G=u.ID()};
Gui=function(u){u.Y=u.T.length?oS(u.T,function(h){return h.A9()}):!1};
Hij=function(u){var h=g.h8(u.T);g.A8(h,function(L){L.AF(u.B)})};
zm=function(u){var h=g.h8(u.T);g.A8(h,function(L){L.Vp(u.G)});
u.G!=u||Hij(u)};
mS=function(u,h,L,Z){this.element=u;this.G=new Eq(0,0,0,0);this.X=null;this.C=new Eq(0,0,0,0);this.N=h;this.Ok=L;this.gw=Z;this.XB=!1;this.timestamp=-1;this.Y=new hB(h.B,this.element,this.G,new Eq(0,0,0,0),0,0,$4(),0);this.T=void 0};
rbL=function(u,h){return u.T?new Eq(Math.max(h.top+u.T.top,h.top),Math.min(h.left+u.T.right,h.right),Math.min(h.top+u.T.bottom,h.bottom),Math.max(h.left+u.T.left,h.left)):h.clone()};
dK=function(u){this.T=!1;this.G=u;this.B=function(){}};
B9Y=function(u,h,L){this.X=L===void 0?0:L;this.N=u;this.G=h==null?"":h};
zZn=function(u){switch(Math.trunc(u.X)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
mqb=function(u,h){return u.X<h.X?!0:u.X>h.X?!1:u.N<h.N?!0:u.N>h.N?!1:typeof u.G<typeof h.G?!0:typeof u.G>typeof h.G?!1:u.G<h.G};
Vz=function(){this.X=0;this.G=[];this.N=!1};
dqV=function(u,h){(0,g.A8)(h.G,function(L){u.add(L.N,L.G,zZn(L))})};
nf=function(u,h){var L=L===void 0?0:L;var Z=Z===void 0?!0:Z;Ch(h,function(y,R){Z&&y===void 0||u.add(R,y,L)});
return u};
sz=function(u){var h=VZs;u.N&&(g.OV(u.G,function(L,Z){return mqb(Z,L)?1:mqb(L,Z)?-1:0}),u.N=!1);
return qR(u.G,function(L,Z){Z=h(Z);return""+L+(L!=""&&Z!=""?"&":"")+Z},"")};
VZs=function(u){var h=u.N;u=u.G;return u===""?h:typeof u==="boolean"?u?h:"":Array.isArray(u)?u.length===0?h:h+"="+u.join():h+"="+(g.E8(["mtos","tos","p"],h)?u:encodeURIComponent(u))};
nNb=function(u){var h=h===void 0?!0:h;this.G=new Vz;u!==void 0&&dqV(this.G,u);h&&this.G.add("v","unreleased",-16)};
sje=function(u){var h=[],L=[];g.PM(u,function(Z,y){if(!(y in Object.prototype)&&typeof Z!="undefined")switch(Array.isArray(Z)&&(Z=Z.join(",")),Z=[y,"=",Z].join(""),y){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":h.unshift(Z);break;case "req":case "url":case "referrer":case "iframe_loc":L.push(Z);break;default:h.push(Z)}});
return h.concat(L)};
wll=function(u){u=u.toString();oQ();wYi(u)};
eZV=function(){this.G=0};
afV=function(u,h,L){(0,g.A8)(u.X,function(Z){var y=u.G;if(!Z.G&&(Z.X(h,L),Z.B())){Z.G=!0;var R=Z.N(),p=new Vz;p.add("id","av-js");p.add("type","verif");p.add("vtype",Z.T);Z=Th(eZV);p.add("i",Z.G++);p.add("adk",y);nf(p,R);y=new nNb(p);wll(y)}})};
wK=function(){this.N=this.X=this.B=this.G=0};
er=function(u){this.N=u=u===void 0?$qa:u;this.G=g.Xx(this.N,function(){return new wK})};
aS=function(u,h){return tZl(u,function(L){return L.G},h===void 0?!0:h)};
tB=function(u,h){return $X(u,h,function(L){return L.G})};
W3i=function(u,h){return tZl(u,function(L){return L.X},h===void 0?!0:h)};
W7=function(u,h){return $X(u,h,function(L){return L.X})};
Fh=function(u,h){return $X(u,h,function(L){return L.N})};
F3Y=function(u){g.A8(u.G,function(h){h.N=0})};
tZl=function(u,h,L){u=g.Xx(u.G,function(Z){return h(Z)});
return L?u:bia(u)};
$X=function(u,h,L){var Z=g.b3(u.N,function(y){return h<=y});
return Z==-1?0:L(u.G[Z])};
bia=function(u){return g.Xx(u,function(h,L,Z){return L>0?Z[L]-Z[L-1]:Z[L]})};
bL=function(){this.N=new er;this.aH=this.vX=0;this.VA=new wK;this.RH=this.V=-1;this.fI=1E3;this.xl=new er([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.DI=this.XB=-1};
Ez=function(u,h){return W3i(u.N,h===void 0?!0:h)};
kX=function(u,h,L,Z){var y=y===void 0?!1:y;L=wH(Z,L);IQ(u,h,L,{capture:y})};
uT=function(u,h){h=gK(h);return h===0?0:gK(u)/h};
gK=function(u){return Math.max(u.bottom-u.top,0)*Math.max(u.right-u.left,0)};
EN1=function(u,h){if(!u||!h)return!1;for(var L=0;u!==null&&L++<100;){if(u===h)return!0;try{if(u=u.parentElement||u){var Z=mQ(u),y=Z&&Fl(Z),R=y&&y.frameElement;R&&(u=R)}}catch(p){break}}return!1};
ku1=function(u,h,L){if(!u||!h)return!1;h=uL(u.clone(),-h.left,-h.top);u=(h.left+h.right)/2;h=(h.top+h.bottom)/2;PG(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Pvl())return!1;u=window.document.elementFromPoint(u,h);if(!u)return!1;h=(h=(h=mQ(L))&&h.defaultView&&h.defaultView.frameElement)&&EN1(h,u);var Z=u===L;u=!Z&&u&&Rx(u,function(y){return y===L});
return!(h||Z||u)};
gNn=function(u,h,L,Z){return N2().X?!1:k4(u)<=0||u.getHeight()<=0?!0:L&&Z?DqR(208,function(){return ku1(u,h,L)}):!1};
jm=function(u,h,L){g.m.call(this);this.position=uHl.clone();this.FO=this.Xs();this.EY=-2;this.timeCreated=Date.now();this.HA=-1;this.Uw=h;this.Iw=null;this.Ie=!1;this.Yj=null;this.opacity=-1;this.requestSource=L;this.PSI=!1;this.UY=function(){};
this.u4=function(){};
this.wZ=new lZs;this.wZ.TO=u;this.wZ.G=u;this.M2=!1;this.o3={h$:null,t$:null};this.zo=!0;this.yE=null;this.fL=this.SgI=!1;Gh().C++;this.C0=this.Bt();this.jW=-1;this.Hh=null;this.hasCompleted=this.LyB=!1;this.Ok=new Lh;QTf(this.Ok);jsi(this);this.requestSource==1?yZ(this.Ok,"od",1):yZ(this.Ok,"od",0)};
jsi=function(u){u=u.wZ.TO;var h;if(h=u&&u.getAttribute)h=/-[a-z]/.test("googleAvInapp")?!1:hkb&&u.dataset?"googleAvInapp"in u.dataset:u.hasAttribute?u.hasAttribute("data-"+mMs()):!!u.getAttribute("data-"+mMs());h&&(N2().N=!0)};
hY=function(u,h){h!=u.fL&&(u.fL=h,u=N2(),h?u.C++:u.C>0&&u.C--)};
LCj=function(u,h){if(u.Hh){if(h.getName()===u.Hh.getName())return;u.Hh.dispose();u.Hh=null}h=h.create(u.wZ.G,u.Ok,u.A9());if(h=h!=null&&h.observe()?h:null)u.Hh=h};
ZpV=function(u,h,L){if(!u.Iw||u.Uw==-1||h.N===-1||u.Iw.N===-1)return 0;u=h.N-u.Iw.N;return u>L?0:u};
yjn=function(u,h,L){if(u.Hh){u.Hh.au();var Z=u.Hh.Y,y=Z.B,R=y.G;if(Z.C!=null){var p=Z.X;u.Yj=new g.O6(p.left-R.left,p.top-R.top)}R=u.yw()?Math.max(Z.G,Z.T):Z.G;p={};y.volume!==null&&(p.volume=y.volume);y=u.qk(Z);u.Iw=Z;u.kI(R,h,L,!1,p,y,Z.S)}};
Rki=function(u){if(u.Ie&&u.yE){var h=RQ(u.Ok,"od")==1,L=N2().G,Z=u.yE,y=u.Hh?u.Hh.getName():"ns",R=u.Yj,p=new g.II(k4(L),L.getHeight());L=u.yw();u={Xo7:y,Yj:R,eOw:p,yw:L,LW:u.C0.LW,f$w:h};if(h=Z.N){h.au();y=h.Y;R=y.B.G;var J=p=null;y.C!=null&&R&&(p=y.X,p=new g.O6(p.left-R.left,p.top-R.top),J=new g.II(R.right-R.left,R.bottom-R.top));y=L?Math.max(y.G,y.T):y.G;L={Xo7:h.getName(),Yj:p,eOw:J,yw:L,f$w:!1,LW:y}}else L=null;L&&afV(Z,u,L)}};
pB1=function(u,h,L){h&&(u.UY=h);L&&(u.u4=L)};
g.LN=function(){};
g.ZV=function(u){return{value:u,done:!1}};
KCw=function(){this.B=this.G=this.X=this.N=this.T=0};
Jjb=function(u){var h={};var L=g.u3()-u.T;h=(h.ptlt=L,h);(L=u.N)&&(h.pnk=L);(L=u.X)&&(h.pnc=L);(L=u.B)&&(h.pnmm=L);(u=u.G)&&(h.pns=u);return h};
OpL=function(){kP.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
yY=function(u){return Xh(u.volume)&&u.volume>0};
Ru=function(u,h,L,Z){L=L===void 0?!0:L;Z=Z===void 0?function(){return!0}:Z;
return function(y){var R=y[u];if(Array.isArray(R)&&Z(y))return fGe(R,h,L)}};
pN=function(u,h){return function(L){return h(L)?L[u]:void 0}};
Dfe=function(u){return function(h){for(var L=0;L<u.length;L++)if(u[L]===h.e||u[L]===void 0&&!h.hasOwnProperty("e"))return!0;return!1}};
fGe=function(u,h,L){return L===void 0||L?g.KN(u,function(Z,y){return g.E8(h,y)}):g.Xx(h,function(Z,y,R){return u.slice(y>0?R[y-1]+1:0,Z+1).reduce(function(p,J){return p+J},0)})};
cj1=function(){this.N=this.G=""};
IGj=function(){};
JY=function(u,h){var L={};if(u!==void 0)if(h!=null)for(var Z in h){var y=h[Z];Z in Object.prototype||y!=null&&(L[Z]=typeof y==="function"?y(u):u[y])}else g.Gc(L,u);return sz(nf(new Vz,L))};
Ajl=function(){var u={};this.N=(u.vs=[1,0],u.vw=[0,1],u.am=[2,2],u.a=[4,4],u.f=[8,8],u.bm=[16,16],u.b=[32,32],u.avw=[0,64],u.avs=[64,0],u.pv=[256,256],u.gdr=[0,512],u.p=[0,1024],u.r=[0,2048],u.m=[0,4096],u.um=[0,8192],u.ef=[0,16384],u.s=[0,32768],u.pmx=[0,16777216],u.mut=[33554432,33554432],u.umutb=[67108864,67108864],u.tvoff=[134217728,134217728],u);this.G={};for(var h in this.N)this.N[h][1]>0&&(this.G[h]=0);this.X=0};
OR=function(u,h){var L=u.N[h],Z=L[1];u.X+=L[0];Z>0&&u.G[h]==0&&(u.G[h]=1)};
xfe=function(u){var h=g.ST(u.N),L=0,Z;for(Z in u.G)g.E8(h,Z)&&u.G[Z]==1&&(L+=u.N[Z][1],u.G[Z]=2);return L};
PCb=function(u){var h=0,L;for(L in u.G){var Z=u.G[L];if(Z==1||Z==2)h+=u.N[L][1]}return h};
fN=function(){this.G=this.N=0};
DV=function(){bL.call(this);this.X=new wK;this.jd=this.Y=this.gw=0;this.S=-1;this.e7=new wK;this.T=new wK;this.G=new er;this.C=this.B=-1;this.AB=new wK;this.fI=2E3;this.T7=new fN;this.Sd=new fN;this.ZI=new fN};
cZ=function(u,h,L){var Z=u.jd;WG||L||u.S==-1||(Z+=h-u.S);return Z};
CCl=function(){this.X=!1};
Iu=function(u,h){this.X=!1;this.B=u;this.Y=h;this.T=0};
AY=function(u,h){Iu.call(this,u,h);this.V=[]};
M6a=function(){};
xZ=function(){};
PZ=function(u,h,L,Z){mS.call(this,u,h,L,Z)};
CN=function(u,h,L){mS.call(this,null,u,h,L);this.S=u.isActive();this.V=0};
MB=function(u){return[u.top,u.left,u.bottom,u.right]};
iT=function(u,h,L,Z,y,R){R=R===void 0?new xZ:R;jm.call(this,h,L,Z);this.Ta=y;this.g$=0;this.a4={};this.mX=new Ajl;this.cB={};this.lX="";this.ZI=null;this.wm=!1;this.G=[];this.Dm=R.N();this.C=R.X();this.B=null;this.X=-1;this.aH=this.Y=void 0;this.RH=this.AB=0;this.DI=-1;this.fI=this.Sd=!1;this.gw=this.S=this.N=this.hm=this.vJ=0;new er;this.T7=this.jd=0;this.VA=-1;this.qG=0;this.V=g.Or;this.XB=[this.Xs()];this.La=2;this.Xv={};this.Xv.pause="p";this.Xv.resume="r";this.Xv.skip="s";this.Xv.mute="m";this.Xv.unmute=
"um";this.Xv.exitfullscreen="ef";this.T=null;this.xl=this.e7=!1;this.Ca=Math.floor(Date.now()/1E3-1704067200);this.vX=0};
QY=function(u){u.hasCompleted=!0;u.qG!=0&&(u.qG=3)};
lT=function(u){return u===void 0?u:Number(u)?Sr(u,3):0};
Sm=function(u,h){return u.XB[h!=null&&h<u.XB.length?h:u.XB.length-1]};
ipn=function(u){var h=!!RQ(Gh().Ok,"umt");return u.Y||!h&&!u.aH?0:1};
Qse=function(u,h){u.Ah()?h=0:u.Uw==-1?h=0:(h-=u.Uw,h=h>Math.max(1E4,u.X/3)?0:h);var L=u.V(u)||{};L=L.currentTime!==void 0?L.currentTime:u.AB;var Z=L-u.AB,y=0;Z>=0?(u.RH+=h,u.T7+=Math.max(h-Z,0),y=Math.min(Z,u.RH)):u.jd+=Math.abs(Z);Z!=0&&(u.RH=0);u.VA==-1&&Z>0&&(u.VA=bd>=0?$4()-bd:-1);u.AB=L;return y};
lGj=function(u,h){oS(u.C,function(L){return L.B==h.B})||u.C.push(h)};
SkV=function(u){var h=tB(u.VK().G,1);return X0(u,h)};
X0=function(u,h,L){return h>=15E3?!0:u.Sd?(L===void 0?0:L)?!0:u.X>0?h>=u.X/2:u.DI>0?h>=u.DI:!1:!1};
XBj=function(u){var h=Sr(u.C0.LW,2),L=u.mX.X,Z=u.C0,y=Sm(u),R=lT(y.B),p=lT(y.C),J=lT(Z.volume),O=Sr(y.V,2),f=Sr(y.RH,2),D=Sr(Z.LW,2),c=Sr(y.XB,2),I=Sr(y.DI,2);Z=Sr(Z.I5,2);var A=u.mu().clone().round();u=u.Hh&&u.Hh.X?(u.Hh?u.Hh.X:null).clone().round():null;y=Ez(y,!1);return{m$y:h,nj:L,cZ:R,l3:p,TW:J,b3:O,DF:f,LW:D,Ej:c,rz:I,I5:Z,position:A,sE:u,jR:y}};
qkn=function(u,h){vPn(u.G,h,function(){return{m$y:0,nj:void 0,cZ:-1,l3:-1,TW:-1,b3:-1,DF:-1,LW:-1,Ej:-1,rz:-1,I5:-1,position:void 0,sE:void 0,jR:[]}});
u.G[h]=XBj(u)};
vPn=function(u,h,L){for(var Z=u.length;Z<h+1;)u.push(L()),Z++};
qB=function(u,h,L){var Z=u.cB[h];if(Z!=null)return Z;Z=TB1(u,h);var y=qo(vZ,function(R){return R==h});
u=Yke(u,Z,Z,L,oPn[vZ[y]]);h=="fully_viewable_audible_half_duration_impression"&&(u.std="csm");return u};
TH=function(u,h,L){var Z=[h];if(u!=h||L!=h)Z.unshift(u),Z.push(L);return Z};
Yke=function(u,h,L,Z,y){if(u.M2)return{"if":0,vs:0};var R=u.mu().clone().round(),p=u.Hh?u.Hh.X:null,J=N2(),O=Gh(),f=u.VK(),D=u.Hh?u.Hh.getName():"ns",c={};c["if"]=J.X?1:void 0;c.sdk=u.B?u.B:void 0;c.t=u.timeCreated;c.p=[R.top,R.left,R.bottom,R.right];R&&p&&!gH(p,R)&&(R=p.round(),c.cp=[R.top,R.left,R.bottom,R.right]);c.tos=aS(f.N,!1);c.mtos=Ez(f);c.mcvt=f.VA.X;c.ps=void 0;R=cZ(f,$4(),u.Ah());c.vht=R;c.mut=f.e7.X;c.a=lT(u.C0.volume);c.mv=lT(f.C);c.fs=u.fL?1:0;c.ft=f.AB.G;c.at=f.T.G;c.as=f.B>0?1:0;c.atos=
aS(f.G);c.ssb=aS(f.xl,!1);c.amtos=W3i(f.G,!1);c.uac=u.vJ;c.vpt=f.X.G;D=="nio"&&(c.nio=1,c.avms="nio");c.gmm="4";c.gdr=X0(u,f.X.G,!0)?1:0;c.efpf=u.La;if(D=="gsv"||D=="nis")D=u.Hh,D.V>0&&(c.nnut=D.V);c.tcm=ipn(u);c.nmt=u.jd;c.bt=u.T7;c.pst=u.VA;c.vpaid=u.Y;c.dur=u.X;c.vmtime=u.AB;c.is=u.mX.X;u.G.length>=1&&(c.i0=u.G[0].nj,c.a0=[u.G[0].TW],c.c0=[u.G[0].LW],c.ss0=[u.G[0].I5],D=u.G[0].position,R=u.G[0].sE,c.p0=D?MB(D):void 0,D&&R&&!gH(R,D)&&(c.cp0=MB(R)));u.G.length>=2&&(c.i1=u.G[1].nj,c.a1=TH(u.G[1].cZ,
u.G[1].TW,u.G[1].l3),c.c1=TH(u.G[1].b3,u.G[1].LW,u.G[1].DF),c.ss1=TH(u.G[1].Ej,u.G[1].I5,u.G[1].rz),D=u.G[1].position,R=u.G[1].sE,c.p1=D?MB(D):void 0,D&&R&&!gH(R,D)&&(c.cp1=MB(R)),c.mtos1=u.G[1].jR);u.G.length>=3&&(c.i2=u.G[2].nj,c.a2=TH(u.G[2].cZ,u.G[2].TW,u.G[2].l3),c.c2=TH(u.G[2].b3,u.G[2].LW,u.G[2].DF),c.ss2=TH(u.G[2].Ej,u.G[2].I5,u.G[2].rz),D=u.G[2].position,R=u.G[2].sE,c.p2=D?MB(D):void 0,D&&R&&!gH(R,D)&&(c.cp2=MB(R)),c.mtos2=u.G[2].jR);u.G.length>=4&&(c.i3=u.G[3].nj,c.a3=TH(u.G[3].cZ,u.G[3].TW,
u.G[3].l3),c.c3=TH(u.G[3].b3,u.G[3].LW,u.G[3].DF),c.ss3=TH(u.G[3].Ej,u.G[3].I5,u.G[3].rz),D=u.G[3].position,R=u.G[3].sE,c.p3=D?MB(D):void 0,D&&R&&!gH(R,D)&&(c.cp3=MB(R)),c.mtos3=u.G[3].jR);c.cs=PCb(u.mX);h&&(c.ic=xfe(u.mX),c.dvpt=f.X.N,c.dvs=Fh(f.N,.5),c.dfvs=Fh(f.N,1),c.davs=Fh(f.G,.5),c.dafvs=Fh(f.G,1),L&&(f.X.N=0,F3Y(f.N),F3Y(f.G)),u.BF()&&(c.dtos=f.gw,c.dav=f.Y,c.dtoss=u.g$+1,L&&(f.gw=0,f.Y=0,u.g$++)),c.dat=f.T.N,c.dft=f.AB.N,L&&(f.T.N=0,f.AB.N=0));c.ps=[J.T.width,J.T.height];c.bs=[k4(J.G),J.G.getHeight()];
c.scs=[J.B.width,J.B.height];c.dom=J.domain;u.hm&&(c.vds=u.hm);if(u.C.length>0||u.Dm)h=g.h8(u.C),u.Dm&&h.push(u.Dm),c.pings=g.Xx(h,function(I){return I.toString()});
h=g.Xx(g.KN(u.C,function(I){return I.C()}),function(I){return I.getId()});
ugl(h);c.ces=h;u.N&&(c.vmer=u.N);u.S&&(c.vmmk=u.S);u.gw&&(c.vmiec=u.gw);c.avms=u.Hh?u.Hh.getName():"ns";u.Hh&&g.Gc(c,u.Hh.h1());Z?(c.c=Sr(u.C0.LW,2),c.ss=Sr(u.C0.I5,2)):c.tth=$4()-NBf;c.mc=Sr(f.RH,2);c.nc=Sr(f.V,2);c.mv=lT(f.C);c.nv=lT(f.B);c.lte=Sr(u.EY,2);Z=Sm(u,y);Ez(f);c.qmtos=Ez(Z);c.qnc=Sr(Z.V,2);c.qmv=lT(Z.C);c.qnv=lT(Z.B);c.qas=Z.B>0?1:0;c.qi=u.lX;c.avms||(c.avms="geo");c.psm=f.T7.G;c.psv=f.T7.getValue();c.psfv=f.Sd.getValue();c.psa=f.ZI.getValue();O=Mnf(O.Ok);O.length&&(c.veid=O);u.T&&g.Gc(c,
Jjb(u.T));c.avas=u.Ys();c.vs=u.n2();c.co=Ufi(u);c.tm=f.vX;c.tu=f.aH;return c};
TB1=function(u,h){if(g.E8(GkL,h))return!0;var L=u.a4[h];return L!==void 0?(u.a4[h]=!0,!L):!1};
Ufi=function(u){var h=u.vX.toString(10).padStart(2,"0");h=""+u.Ca+h;u.vX<99&&u.vX++;return h};
rjn=function(){this.G={};var u=Fl();YZ(this,u,document);var h=Hps();try{if("1"==h){for(var L=u.parent;L!=u.top;L=L.parent)YZ(this,L,L.document);YZ(this,u.top,u.top.document)}}catch(Z){}};
Hps=function(){var u=document.documentElement;try{if(!PG(Fl().top))return"2";var h=[],L=Fl(u.ownerDocument);for(u=L;u!=L.top;u=u.parent)if(u.frameElement)h.push(u.frameElement);else break;return h&&h.length!=0?"1":"0"}catch(Z){return"2"}};
YZ=function(u,h,L){kX(L,"mousedown",function(){return BBV(u)},301);
kX(h,"scroll",function(){return zka(u)},302);
kX(L,"touchmove",function(){return mfe(u)},303);
kX(L,"mousemove",function(){return dfb(u)},304);
kX(L,"keydown",function(){return V6n(u)},305)};
BBV=function(u){g.PM(u.G,function(h){h.X>1E5||++h.X})};
zka=function(u){g.PM(u.G,function(h){h.G>1E5||++h.G})};
mfe=function(u){g.PM(u.G,function(h){h.G>1E5||++h.G})};
V6n=function(u){g.PM(u.G,function(h){h.N>1E5||++h.N})};
dfb=function(u){g.PM(u.G,function(h){h.B>1E5||++h.B})};
nPa=function(){this.G=[];this.N=[]};
ou=function(u,h){return g.Fg(u.G,function(L){return L.lX==h})};
ssR=function(u,h){return h?g.Fg(u.G,function(L){return L.wZ.TO==h}):null};
wB1=function(u,h){return g.Fg(u.N,function(L){return L.Ow()==2&&L.lX==h})};
UR=function(){var u=NB;return u.G.length==0?u.N:u.N.length==0?u.G:g.jc(u.N,u.G)};
ekV=function(u,h){u=h.Ow()==1?u.G:u.N;var L=W1(u,function(Z){return Z==h});
return L!=-1?(u.splice(L,1),h.Hh&&h.Hh.unobserve(),h.dispose(),!0):!1};
aGw=function(u){var h=NB;if(ekV(h,u)){switch(u.Ow()){case 0:var L=function(){return null};
case 2:L=function(){return wB1(h,u.lX)};
break;case 1:L=function(){return ou(h,u.lX)}}for(var Z=L();Z;Z=L())ekV(h,Z)}};
$fs=function(u){var h=NB;u=g.KN(u,function(L){return!ssR(h,L.wZ.TO)});
h.G.push.apply(h.G,g.l(u))};
t6R=function(u){var h=[];g.A8(u,function(L){oS(NB.G,function(Z){return Z.wZ.TO===L.wZ.TO&&Z.lX===L.lX})||(NB.G.push(L),h.push(L))})};
GH=function(){this.G=this.N=null};
WCw=function(u,h){function L(Z,y){h(Z,y)}
if(u.N==null)return!1;u.G=g.Fg(u.N,function(Z){return Z!=null&&Z.Un()});
u.G&&(u.G.init(L)?Uqs(u.G.G):h(u.G.G.CL(),u.G));return u.G!=null};
HZ=function(u){u=FCL(u);dK.call(this,u.length?u[u.length-1]:new rK(Da,0));this.X=u;this.N=null};
FCL=function(u){if(!u.length)return[];u=(0,g.KN)(u,function(L){return L!=null&&L.v4()});
for(var h=1;h<u.length;h++)B7(u[h-1],u[h]);return u};
ry=function(u,h,L,Z){mS.call(this,u,h,L,Z);this.RH=this.AB=this.V=this.S=this.B=null};
BZ=function(u){return u.B&&u.B.takeRecords?u.B.takeRecords():[]};
EPR=function(u){if(!u.element)return!1;var h=u.element,L=u.N.G.X,Z=Gh().G.G;u.B=new L.IntersectionObserver(Uq(Z,function(y){return zH(u,y)}),bpl);
Z=Uq(Z,function(){u.B.unobserve(h);u.B.observe(h);zH(u,BZ(u))});
L.ResizeObserver?(u.S=new L.ResizeObserver(Z),u.S.observe(h)):L.MutationObserver&&(u.V=new g.Vn.MutationObserver(Z),u.V.observe(h,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));u.B.observe(h);zH(u,BZ(u));return!0};
zH=function(u,h){try{if(h.length){u.AB||(u.AB=$4());var L=kkj(h),Z=lfb(u.element,u.N.G.X),y=Z.x,R=Z.y;u.X=new Eq(Math.round(R),Math.round(y)+L.boundingClientRect.width,Math.round(R)+L.boundingClientRect.height,Math.round(y));u.G=rbL(u,u.X);var p=vNV(L.intersectionRect);u.C=uL(p,u.X.left-p.left,u.X.top-p.top)}}catch(J){u.unobserve(),aQ(299,J)}};
kkj=function(u){return qR(u,function(h,L){return h.time>L.time?h:L},u[0])};
mW=function(u){u=u===void 0?Da:u;dK.call(this,new rK(u,2))};
dy=function(){var u=gP1();rK.call(this,Da.top,u,"geo")};
gP1=function(){Gh();var u=N2();return u.X||u.N?0:2};
uxR=function(){};
VY=function(){this.done=!1;this.G={Ao:0,hN:0,Gp7:0,A0:0,xR:-1,YE:0,Jo:0,Qh:0,uEg:0};this.T=null;this.C=!1;this.X=null;this.V=0;this.N=new H7(this)};
sR=function(){var u=nN;u.C||(u.C=!0,jQY(u,function(){return u.B.apply(u,g.l(g.NL.apply(0,arguments)))}),u.B())};
hys=function(){Th(uxR);var u=Th(GH);u.G!=null&&u.G.G?Uqs(u.G.G):N2().update(Da)};
wy=function(u,h,L){if(!u.done&&(u.N.cancel(),h.length!=0)){u.X=null;try{hys();var Z=$4();Gh().T=Z;if(Th(GH).G!=null)for(var y=0;y<h.length;y++)yjn(h[y],Z,L);for(Z=0;Z<h.length;Z++)Rki(h[Z]);++u.G.A0}finally{L?g.A8(h,function(R){R.C0.LW=0}):u.N.schedule()}}};
jQY=function(u,h){if(!u.T){h=wH(142,h);oQ();var L;Uz.visibilityState?L="visibilitychange":Uz.mozVisibilityState?L="mozvisibilitychange":Uz.webkitVisibilityState&&(L="webkitvisibilitychange");L&&IQ(Uz,L,h,{capture:!1})&&(u.T=h)}};
LBa=function(){var u=Th(GH);if(u.G!=null){var h=u.G;g.A8(UR(),function(L){return LCj(L,h)})}};
ZhV=function(u,h){u=u.V;WG&&(u+=h-Fx);return u};
yAw=function(u){u=u===void 0?function(){return{}}:u;
VZ.l5="av-js";dH.G=.01;ffa([function(h){var L=Gh(),Z={};Z=(Z.bin=L.N,Z.type="error",Z);L=ph(L.Ok);if(!nN.X){var y=nN,R=Da.document,p=tA>=0?$4()-tA:-1,J=$4();y.G.xR==-1&&(p=J);var O=N2(),f=Gh(),D=ph(f.Ok),c=UR();try{if(c.length>0){var I=O.G;I&&(D.bs=[k4(I),I.getHeight()]);var A=O.T;A&&(D.ps=[A.width,A.height]);Da.screen&&(D.scs=[Da.screen.width,Da.screen.height])}else D.url=encodeURIComponent(Da.location.href.substring(0,512)),R.referrer&&(D.referrer=encodeURIComponent(R.referrer.substring(0,512)));
D.tt=p;D.pt=tA;D.bin=f.N;Da.google_osd_load_pub_page_exp!==void 0&&(D.olpp=Da.google_osd_load_pub_page_exp);D.deb=[1,y.G.Ao,y.G.hN,y.G.A0,y.G.xR,0,y.N.N,y.G.YE,y.G.Jo,y.G.Qh,y.G.uEg,-1].join(";");D.tvt=ZhV(y,J);O.N&&(D.inapp=1);if(Da!==null&&Da!=Da.top){c.length>0&&(D.iframe_loc=encodeURIComponent(Da.location.href.substring(0,512)));var x=O.V;D.is=[k4(x),x.getHeight()]}}catch(Q){D.error=1}nN.X=D}I=g.No(nN.X);A=Gh().G;RQ(A.X,"prf")==1?(x=new NR,y=A.G,R=0,y.G>-1&&(R=y.X.G.now()-y.G),x=FK(x,1,RF(y.B+
R),0),y=A.G,x=FK(x,5,OY(y.G>-1?y.N+1:y.N),0),x=FK(x,2,iK(A.N.G.X()),"0"),x=FK(x,3,iK(A.N.G.N()),"0"),A=FK(x,4,iK(A.N.G.G()),"0"),x={},A=(x.pf=g.Mk(A.G()),x)):A={};g.Gc(I,A);g.Gc(h,Z,L,I,u())}])};
pGw=function(){var u=Rys||Da;if(!u)return"";var h=[];if(!u.location||!u.location.href)return"";h.push("url="+encodeURIComponent(u.location.href.substring(0,512)));u.document&&u.document.referrer&&h.push("referrer="+encodeURIComponent(u.document.referrer.substring(0,512)));return h.join("&")};
em=function(){var u="youtube.player.web_20250212_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250212_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250212_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250212_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),h;if(((h=u)==null?void 0:h.length)==2)return u[1];u="youtube.player.web_20250212_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var L;return((L=u)==null?void 0:L.length)==3?"20"+u[1]+u[2]:null};
KBl=function(){return"av.default_js".includes("ima_html5_sdk")?{eK:"ima",GB:null}:"av.default_js".includes("ima_native_sdk")?{eK:"nima",GB:null}:"av.default_js".includes("admob-native-video-javascript")?{eK:"an",GB:null}:"youtube.player.web_20250212_01_RC00".includes("cast_js_sdk")?{eK:"cast",GB:em()}:"youtube.player.web_20250212_01_RC00".includes("youtube.player.web")?{eK:"yw",GB:em()}:"youtube.player.web_20250212_01_RC00".includes("outstream_web_client")?{eK:"out",GB:em()}:"youtube.player.web_20250212_01_RC00".includes("drx_rewarded_web")?
{eK:"r",GB:em()}:"youtube.player.web_20250212_01_RC00".includes("gam_native_web_video")?{eK:"n",GB:em()}:"youtube.player.web_20250212_01_RC00".includes("admob_interstitial_video")?{eK:"int",GB:em()}:{eK:"j",GB:null}};
tY=function(u,h){var L={sv:"966"};au!==null&&(L.v=au);L.cb=JAj;L.nas=NB.G.length;L.msg=u;h!==void 0&&(u=Ohn(h))&&(L.e=$Z[u]);return L};
WZ=function(u){return Sb(u,"custom_metric_viewable")};
Ohn=function(u){var h=WZ(u)?"custom_metric_viewable":u.toLowerCase();return qo(vZ,function(L){return L==h})};
fas=function(){this.G=void 0;this.N=!1;this.X=0;this.B=-1;this.T="tos"};
Iab=function(u){try{var h=u.split(",");return h.length>g.ST(DRi).length?null:qR(h,function(L,Z){Z=Z.toLowerCase().split("=");if(Z.length!=2||cAa[Z[0]]===void 0||!cAa[Z[0]](Z[1]))throw Error("Entry ("+Z[0]+", "+Z[1]+") is invalid.");L[Z[0]]=Z[1];return L},{})}catch(L){return null}};
AAe=function(u,h){if(u.G==void 0)return 0;switch(u.T){case "mtos":return u.N?W7(h.G,u.G):W7(h.N,u.G);case "tos":return u.N?tB(h.G,u.G):tB(h.N,u.G)}return 0};
F0=function(u,h,L,Z){Iu.call(this,h,Z);this.V=u;this.S=L};
bT=function(){};
ER=function(u){Iu.call(this,"fully_viewable_audible_half_duration_impression",u)};
kZ=function(u){this.G=u};
gy=function(u,h){Iu.call(this,u,h)};
u8=function(u){AY.call(this,"measurable_impression",u)};
jB=function(){kZ.apply(this,arguments)};
hK=function(u,h,L){CN.call(this,u,h,L)};
L5=function(u){u=u===void 0?Da:u;dK.call(this,new rK(u,2))};
Z8=function(u,h,L){CN.call(this,u,h,L)};
y0=function(u){u=u===void 0?Da:u;dK.call(this,new rK(u,2))};
Rg=function(){rK.call(this,Da,2,"mraid");this.T7=0;this.RH=this.XB=!1;this.V=null;this.N=xqs(this.X);this.B.G=new Eq(0,0,0,0);this.vX=!1};
p5=function(u,h,L){u.Qn("addEventListener",h,L)};
MYl=function(u){Gh().B=!!u.Qn("isViewable");p5(u,"viewableChange",xRe);u.Qn("getState")==="loading"?p5(u,"ready",Pdi):Cdn(u)};
Cdn=function(u){typeof u.N.dH.AFMA_LIDAR==="string"?(u.XB=!0,ihR(u)):(u.N.compatibility=3,u.V="nc",u.NT("w"))};
ihR=function(u){u.RH=!1;var h=RQ(Gh().Ok,"rmmt")==1,L=!!u.Qn("isViewable");(h?!L:1)&&oQ().setTimeout(eY(524,function(){u.RH||(QQs(u),aQ(540,Error()),u.V="mt",u.NT("w"))}),500);
lae(u);p5(u,u.N.dH.AFMA_LIDAR,Sql)};
lae=function(u){var h=RQ(Gh().Ok,"sneio")==1,L=u.N.dH.AFMA_LIDAR_EXP_1!==void 0,Z=u.N.dH.AFMA_LIDAR_EXP_2!==void 0;(h=h&&Z)&&(u.N.dH.AFMA_LIDAR_EXP_2=!0);L&&(u.N.dH.AFMA_LIDAR_EXP_1=!h)};
QQs=function(u){u.Qn("removeEventListener",u.N.dH.AFMA_LIDAR,Sql);u.XB=!1};
XGa=function(u,h){if(u.Qn("getState")==="loading")return new g.II(-1,-1);h=u.Qn(h);if(!h)return new g.II(-1,-1);u=parseInt(h.width,10);h=parseInt(h.height,10);return isNaN(u)||isNaN(h)?new g.II(-1,-1):new g.II(u,h)};
Pdi=function(){try{var u=Th(Rg);u.Qn("removeEventListener","ready",Pdi);Cdn(u)}catch(h){aQ(541,h)}};
Sql=function(u,h){try{var L=Th(Rg);L.RH=!0;var Z=u?new Eq(u.y,u.x+u.width,u.y+u.height,u.x):new Eq(0,0,0,0);var y=$4(),R=Gm();var p=new jr(y,R,L);p.G=Z;p.volume=h;L.AF(p)}catch(J){aQ(542,J)}};
xRe=function(u){var h=Gh(),L=Th(Rg);u&&!h.B&&(h.B=!0,L.vX=!0,L.V&&L.NT("w",!0))};
K5=function(){this.isInitialized=!1;this.G=this.N=null;var u={};this.V=(u.start=this.wXd,u.firstquartile=this.rBw,u.midpoint=this.FyB,u.thirdquartile=this.Twi,u.complete=this.lI7,u.error=this.Kyw,u.pause=this.C6,u.resume=this.j2,u.skip=this.Cad,u.viewable_impression=this.F$,u.mute=this.q4,u.unmute=this.q4,u.fullscreen=this.OIA,u.exitfullscreen=this.Dia,u.fully_viewable_audible_half_duration_impression=this.F$,u.measurable_impression=this.F$,u.abandon=this.C6,u.engagedview=this.F$,u.impression=this.F$,
u.creativeview=this.F$,u.progress=this.q4,u.custom_metric_viewable=this.F$,u.bufferstart=this.C6,u.bufferfinish=this.j2,u.audio_measurable=this.F$,u.audio_audible=this.F$,u);u={};this.S=(u.overlay_resize=this.vI7,u.abandon=this.iq,u.close=this.iq,u.collapse=this.iq,u.overlay_unmeasurable_impression=function(h){return qB(h,"overlay_unmeasurable_impression",Gm())},u.overlay_viewable_immediate_impression=function(h){return qB(h,"overlay_viewable_immediate_impression",Gm())},u.overlay_unviewable_impression=
function(h){return qB(h,"overlay_unviewable_impression",Gm())},u.overlay_viewable_end_of_session_impression=function(h){return qB(h,"overlay_viewable_end_of_session_impression",Gm())},u);
Gh().N=3;v41(this);this.X=null};
JK=function(u,h,L,Z){u=u.kT(null,Z,!0,h);u.B=L;$fs([u]);return u};
qqi=function(u,h,L){Pqf(h);var Z=u.G;g.A8(h,function(y){var R=g.Xx(y.criteria,function(p){var J=Iab(p);if(J==null)p=null;else if(p=new fas,J.visible!=null&&(p.G=J.visible/100),J.audible!=null&&(p.N=J.audible==1),J.time!=null){var O=J.timetype=="mtos"?"mtos":"tos",f=nb1(J.time,"%")?"%":"ms";J=parseInt(J.time,10);f=="%"&&(J/=100);p.setTime(J,f,O)}return p});
oS(R,function(p){return p==null})||lGj(L,new F0(y.id,y.event,R,Z))})};
THw=function(){var u=[],h=Gh();u.push(Th(dy));RQ(h.Ok,"mvp_lv")&&u.push(Th(Rg));h=[new L5,new y0];h.push(new HZ(u));h.push(new mW(Da));return h};
Yqn=function(u){if(!u.isInitialized){u.isInitialized=!0;try{var h=$4(),L=Gh(),Z=N2();tA=h;L.X=79463069;u.N!=="o"&&(Rys=Gql(Da));if(ezj()){nN.G.hN=0;nN.G.xR=$4()-h;var y=THw(),R=Th(GH);R.N=y;WCw(R,function(){OM()})?nN.done||(LBa(),B7(R.G.G,u),sR()):Z.X?OM():sR()}else f5=!0}catch(p){throw NB.reset(),p;
}}};
cd=function(u){nN.N.cancel();D8=u;nN.done=!0};
Ig=function(u){if(u.N)return u.N;var h=Th(GH).G;if(h)switch(h.getName()){case "nis":u.N="n";break;case "gsv":u.N="m"}u.N||(u.N="h");return u.N};
AK=function(u,h,L){if(u.G==null)return h.hm|=4,!1;u=o4e(u.G,L,h);h.hm|=u;return u==0};
OM=function(){var u=[new mW(Da)],h=Th(GH);h.N=u;WCw(h,function(){cd("i")})?nN.done||(LBa(),sR()):cd("i")};
NHR=function(u,h){if(!u.wm){var L=qB(u,"start",Gm());L=u.Ta.G(L).G;var Z={id:"lidarv"};Z.r=h;Z.sv="966";au!==null&&(Z.v=au);mo(L,function(y,R){return Z[y]=y=="mtos"||y=="tos"?R:encodeURIComponent(R)});
h=pGw();mo(h,function(y,R){return Z[y]=encodeURIComponent(R)});
h="//pagead2.googlesyndication.com/pagead/gen_204?"+sz(nf(new Vz,Z));wll(h);u.wm=!0}};
xK=function(u,h,L){wy(nN,[u],!Gm());qkn(u,L);L!=4&&vPn(u.XB,L,u.Xs);return qB(u,h,Gm())};
v41=function(u){yAw(function(){var h=URi();u.N!=null&&(h.sdk=u.N);var L=Th(GH);L.G!=null&&(h.avms=L.G.getName());return h})};
GhL=function(u,h,L,Z){var y=ssR(NB,L);y!==null&&y.lX!==h&&(u.P1(y),y=null);y||(h=u.kT(L,$4(),!1,h),NB.N.length==0&&(Gh().X=79463069),t6R([h]),y=h,y.B=Ig(u),Z&&(y.ZI=Z));return y};
Hhj=function(u,h){var L=u[h];L!==void 0&&L>0&&(u[h]=Math.floor(L*1E3))};
URi=function(){var u=N2(),h={},L={},Z={};return Object.assign({},(h.sv="966",h),au!==null&&(L.v=au,L),(Z["if"]=u.X?"1":"0",Z.nas=String(NB.G.length),Z))};
Pd=function(u){Iu.call(this,"audio_audible",u)};
C5=function(u){AY.call(this,"audio_measurable",u)};
Mg=function(){kZ.apply(this,arguments)};
i8=function(){};
rAY=function(u){this.G=u};
o4e=function(u,h,L){u=u.N();if(typeof u==="function"){var Z={};var y={};Z=Object.assign({},au!==null&&(Z.v=au,Z),(y.sv="966",y.cb=JAj,y.e=BHf(h),y));y=qB(L,h,Gm());g.Gc(Z,y);L.cB[h]=y;Z=L.Ow()==2?sje(Z).join("&"):L.Ta.G(Z).G;try{return u(L.lX,Z,h),0}catch(R){return 2}}else return 1};
BHf=function(u){var h=WZ(u)?"custom_metric_viewable":u;u=qo(vZ,function(L){return L==h});
return $Z[u]};
Q0=function(){K5.call(this);this.C=null;this.T=!1;this.B="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
zyw=function(u,h,L){L=L.opt_configurable_tracking_events;u.G!=null&&Array.isArray(L)&&qqi(u,L,h)};
mRn=function(u,h,L){var Z=ou(NB,h);Z||(Z=L.opt_nativeTime||-1,Z=JK(u,h,Ig(u),Z),L.opt_osdId&&(Z.ZI=L.opt_osdId));return Z};
dRn=function(u,h,L){var Z=ou(NB,h);Z||(Z=JK(u,h,"n",L.opt_nativeTime||-1));return Z};
VY1=function(u,h){var L=ou(NB,h);L||(L=JK(u,h,"h",-1));return L};
n4V=function(u){Gh();switch(Ig(u)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};
eyn=function(u,h,L,Z){L=L===void 0?{}:L;var y={};g.Gc(y,{opt_adElement:void 0,opt_fullscreen:void 0},L);var R=u.Fs(h,L);L=R?R.Ta:u.A5();if(y.opt_bounds)return L.G(tY("ol",Z));if(Z!==void 0)if(Ohn(Z)!==void 0)if(f5)u=tY("ue",Z);else if(Yqn(u),D8=="i")u=tY("i",Z),u["if"]=0;else if(h=u.Fs(h,y)){b:{D8=="i"&&(h.M2=!0);R=y.opt_fullscreen;R!==void 0&&hY(h,!!R);var p;if(R=!N2().N)(R=q7(g.N7(),"CrKey")&&!(q7(g.N7(),"CrKey")&&q7(g.N7(),"SmartSpeaker"))||q7(g.N7(),"PlayStation")||q7(g.N7(),"Roku")||T9j()||q7(g.N7(),
"Xbox"))||(R=g.N7(),R=q7(R,"AppleTV")||q7(R,"Apple TV")||q7(R,"CFNetwork")||q7(R,"tvOS")),R||(R=g.N7(),R=q7(R,"sdk_google_atv_x86")||q7(R,"Android TV")),R=!R;R&&(oQ(),R=AA(Uz)===0);if(p=R){switch(h.Ow()){case 1:NHR(h,"pv");break;case 2:u.tW(h)}cd("pv")}R=Z.toLowerCase();if(p=!p)p=RQ(Gh().Ok,"ssmol")&&R==="loaded"?!1:g.E8(sQl,R);if(p&&h.qG==0){D8!="i"&&(nN.done=!1);p=y!==void 0?y.opt_nativeTime:void 0;bd=p=typeof p==="number"?p:$4();h.Ie=!0;var J=Gm();h.qG=1;h.a4={};h.a4.start=!1;h.a4.firstquartile=
!1;h.a4.midpoint=!1;h.a4.thirdquartile=!1;h.a4.complete=!1;h.a4.resume=!1;h.a4.pause=!1;h.a4.skip=!1;h.a4.mute=!1;h.a4.unmute=!1;h.a4.viewable_impression=!1;h.a4.measurable_impression=!1;h.a4.fully_viewable_audible_half_duration_impression=!1;h.a4.fullscreen=!1;h.a4.exitfullscreen=!1;h.g$=0;J||(h.VK().S=p);wy(nN,[h],!J)}(p=h.Xv[R])&&OR(h.mX,p);RQ(Gh().Ok,"fmd")||g.E8(wGw,R)&&h.Dm&&h.Dm.N(h,null);switch(h.Ow()){case 1:var O=WZ(R)?u.V.custom_metric_viewable:u.V[R];break;case 2:O=u.S[R]}if(O&&(Z=O.call(u,
h,y,Z),RQ(Gh().Ok,"fmd")&&g.E8(wGw,R)&&h.Dm&&h.Dm.N(h,null),Z!==void 0)){y=tY(void 0,R);g.Gc(y,Z);Z=y;break b}Z=void 0}h.qG==3&&u.P1(h);u=Z}else u=tY("nf",Z);else u=void 0;else f5?u=tY("ue"):R?(u=tY(),g.Gc(u,Yke(R,!0,!1,!1))):u=tY("nf");return typeof u==="string"?L.G():L.G(u)};
aa1=function(u,h){h&&(u.B=h)};
$Rs=function(u){var h={};return h.viewability=u.G,h.googleViewability=u.N,h};
tYs=function(u,h,L){L=L===void 0?{}:L;u=eyn(Th(Q0),h,L,u);return $Rs(u)};
l8=function(u){var h=g.NL.apply(1,arguments).filter(function(Z){return Z}).join("&");
if(!h)return u;var L=u.match(/[?&]adurl=/);return L?u.slice(0,L.index+1)+h+"&"+u.slice(L.index+1):u+(u.indexOf("?")===-1?"?":"&")+h};
FBa=function(u){var h=u.url;u=u.kpi;this.G=h;this.V=u;u=/[?&]dsh=1(&|$)/.test(h);this.T=!u&&/[?&]ae=1(&|$)/.test(h);this.C=!u&&/[?&]ae=2(&|$)/.test(h);if((this.N=/[?&]adurl=([^&]*)/.exec(h))&&this.N[1]){try{var L=decodeURIComponent(this.N[1])}catch(Z){L=null}this.X=L}this.B=(new Date).getTime()-WBn};
bhw=function(u){u=u.V;if(!u)return"";var h="";u.platform&&(h+="&uap="+encodeURIComponent(u.platform));u.platformVersion&&(h+="&uapv="+encodeURIComponent(u.platformVersion));u.uaFullVersion&&(h+="&uafv="+encodeURIComponent(u.uaFullVersion));u.architecture&&(h+="&uaa="+encodeURIComponent(u.architecture));u.model&&(h+="&uam="+encodeURIComponent(u.model));u.bitness&&(h+="&uab="+encodeURIComponent(u.bitness));u.fullVersionList&&(h+="&uafvl="+encodeURIComponent(u.fullVersionList.map(function(L){return encodeURIComponent(L.brand)+
";"+encodeURIComponent(L.version)}).join("|")));
typeof u.wow64!=="undefined"&&(h+="&uaw="+Number(u.wow64));return h.substring(1)};
khe=function(u,h,L,Z,y){var R=window,p=L?"//pagead2.googlesyndication.com/bg/"+bP(L)+".js":"";L=R.document;var J={};h&&(J._scs_=h);J._bgu_=p;J._bgp_=Z;J._li_="v_h.3.0.0.0";y&&(J._upb_=y);(h=R.GoogleTyFxhY)&&typeof h.push=="function"||(h=R.GoogleTyFxhY=[]);h.push(J);h=db(L).createElement("SCRIPT");h.type="text/javascript";h.async=!0;u=h9b(E4Y,bP(u)+".js");g.sS(h,u);(R=(R.GoogleTyFxhYEET||{})[h.src])?R():L.getElementsByTagName("head")[0].appendChild(h)};
g4n=function(){try{var u,h;return!!((u=window)==null?0:(h=u.top)==null?0:h.location.href)&&!1}catch(L){return!0}};
YK=function(){var u=uhf();u=u===void 0?"bevasrsg":u;return new Promise(function(h){var L=window===window.top?window:g4n()?window:window.top,Z=L[u],y;((y=Z)==null?0:y.bevasrs)?h(new vd(Z.bevasrs)):(Z||(Z={},Z=(Z.nqfbel=[],Z),L[u]=Z),Z.nqfbel.push(function(R){h(new vd(R))}))})};
jSi=function(u){var h={c:u.RM,e:u.Nc,mc:u.Zo,me:u.J$};u.zN&&(h.co={c:u.zN.Cq,a:u.zN.Zw,s:u.zN.V7});return h};
og=function(u){g.m.call(this);this.wpc=u};
vd=function(u){g.m.call(this);var h=this;this.Il=u;this.X="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.G=void 0;this.aG=this.Il.p;this.B=this.TA.bind(this);this.addOnDisposeCallback(function(){return void hrb(h)})};
LSw=function(u){var h;return g.G(function(L){if(L.G==1){if(!u.Il.wpc)throw new yK(30,"NWA");return u.N?L.return(u.N):g.N(L,u.Il.wpc(),2)}h=L.N;u.N=new og(h);return L.return(u.N)})};
hrb=function(u){u.G!==void 0&&(u.X.forEach(function(h){var L;(L=u.G)==null||L.removeEventListener(h,u.B)}),u.G=void 0)};
Rrs=function(u){if(g.Xg(g.ES(u)))return!1;if(u.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var h=new g.Ok(u)}catch(L){return g.Fg(Zfj,function(Z){return u.search(Z)>0})!=null}return h.C.match(yBn)?!0:g.Fg(Zfj,function(L){return u.match(L)!=null})!=null};
g.Ng=function(u,h){return u.replace(p7b,function(L,Z){try{var y=g.YJ(h,Z);if(y==null||y.toString()==null)return L;y=y.toString();if(y==""||!g.Xg(g.ES(y)))return encodeURIComponent(y).replace(/%2C/g,",")}catch(R){}return L})};
UM=function(u,h){return Object.is(u,h)};
Hd=function(u){var h=Gf;Gf=u;return h};
KSw=function(u){if(u.Su!==void 0){var h=r3;r3=!0;try{for(var L=g.C(u.Su),Z=L.next();!Z.done;Z=L.next()){var y=Z.value;y.q9||(u=void 0,y.q9=!0,KSw(y),(u=y.Hw)==null||u.call(y,y))}}finally{r3=h}}};
JBV=function(){var u;return((u=Gf)==null?void 0:u.hK)!==!1};
OfV=function(u){u&&(u.sj=0);return Hd(u)};
fEe=function(u,h){Hd(h);if(u&&u.c7!==void 0&&u.m0!==void 0&&u.Fe!==void 0){if(Bd(u))for(h=u.sj;h<u.c7.length;h++)zf(u.c7[h],u.m0[h]);for(;u.c7.length>u.sj;)u.c7.pop(),u.Fe.pop(),u.m0.pop()}};
cBL=function(u,h,L){D2i(u);if(u.Su.length===0&&u.c7!==void 0)for(var Z=0;Z<u.c7.length;Z++)u.m0[Z]=cBL(u.c7[Z],u,Z);u.U3.push(L);return u.Su.push(h)-1};
zf=function(u,h){D2i(u);if(u.Su.length===1&&u.c7!==void 0)for(var L=0;L<u.c7.length;L++)zf(u.c7[L],u.m0[L]);L=u.Su.length-1;u.Su[h]=u.Su[L];u.U3[h]=u.U3[L];u.Su.length--;u.U3.length--;h<u.Su.length&&(L=u.U3[h],u=u.Su[h],IEl(u),u.m0[L]=h)};
Bd=function(u){var h,L;return u.iG||((L=u==null?void 0:(h=u.Su)==null?void 0:h.length)!=null?L:0)>0};
IEl=function(u){u.c7!=null||(u.c7=[]);u.m0!=null||(u.m0=[]);u.Fe!=null||(u.Fe=[])};
D2i=function(u){u.Su!=null||(u.Su=[]);u.U3!=null||(u.U3=[])};
x2j=function(u){function h(){if(r3)throw Error("");if(Gf!==null){var Z=Gf.sj++;IEl(Gf);Z<Gf.c7.length&&Gf.c7[Z]!==L&&Bd(Gf)&&zf(Gf.c7[Z],Gf.m0[Z]);Gf.c7[Z]!==L&&(Gf.c7[Z]=L,Gf.m0[Z]=Bd(Gf)?cBL(L,Gf,Z):0);Gf.Fe[Z]=L.version}return L.value}
var L=Object.create(ABY);L.value=u;h[mc]=L;return h};
CLL=function(u,h){if(!JBV())throw Error();u.sb(u.value,h)||(u.value=h,u.version++,PLn++,KSw(u))};
MrL=function(u){Object.create(Object.assign({},d3,{hK:u}))};
QS1=function(u){var h=ifR.bJ;if(h){var L,Z;(Z=(L=performance).mark)==null||Z.call(L,"signalSetStart__"+u)}L={};return L[Symbol.dispose]=function(){if(h){var y,R;(R=(y=performance).measure)==null||R.call(y,"signalSet__"+u,"signalSetStart__"+u)}},L};
qzf=function(u,h){function L(){lEY++;return Z()}
h=h===void 0?"":h;var Z=x2j(u);Szl++;var y=Z[mc];y.Bk=h!=null?h:"[signal]";y.sb=y.sb;L[mc]=y;return[L,function(R){var p={stack:[],error:void 0,hasError:!1};try{if(hu(p,QS1(y.Bk)),X7e++,R&&R[vXn]){var J=R[vXn];if(!JBV())throw Error();CLL(y,J(y.value))}else CLL(y,R)}catch(O){p.error=O,p.hasError=!0}finally{Lq(p)}}]};
n5=function(u){g.Ev.call(this);var h=this;this.T=this.N=0;this.R9=u!=null?u:{xB:function(y,R){return setTimeout(y,R)},
OA:function(y){clearTimeout(y)}};
var L,Z;this.G=(Z=(L=window.navigator)==null?void 0:L.onLine)!=null?Z:!0;this.X=function(){return g.G(function(y){return g.N(y,V0(h),0)})};
window.addEventListener("offline",this.X);window.addEventListener("online",this.X);this.T||this.pW()};
TKj=function(){var u=g.sM;n5.instance||(n5.instance=new n5(u));return n5.instance};
V0=function(u,h){return u.B?u.B:u.B=new Promise(function(L){var Z,y,R,p;return g.G(function(J){switch(J.G){case 1:return Z=window.AbortController?new window.AbortController:void 0,R=(y=Z)==null?void 0:y.signal,p=!1,g.Qn(J,2,3),Z&&(u.N=u.R9.xB(function(){Z.abort()},h||2E4)),g.N(J,fetch("/generate_204",{method:"HEAD",
signal:R}),5);case 5:p=!0;case 3:g.vi(J);u.B=void 0;u.N&&(u.R9.OA(u.N),u.N=0);p!==u.G&&(u.G=p,u.G?u.dispatchEvent("networkstatus-online"):u.dispatchEvent("networkstatus-offline"));L(p);g.qL(J,0);break;case 2:g.Xf(J),p=!1,J.KI(3)}})})};
w3=function(){this.data=[];this.G=-1};
YzL=function(u){u.G===-1&&(u.G=u.data.reduce(function(h,L,Z){return h+(L?Math.pow(2,Z):0)},0));
return u.G};
eB=function(u){u.setAttribute("role","link")};
$K=function(u,h){Array.isArray(h)&&(h=h.join(" "));h===""||h==void 0?(ag||(h={},ag=(h.atomic=!1,h.autocomplete="none",h.dropeffect="none",h.haspopup=!1,h.live="off",h.multiline=!1,h.multiselectable=!1,h.orientation="vertical",h.readonly=!1,h.relevant="additions text",h.required=!1,h.sort="none",h.busy=!1,h.disabled=!1,h.hidden=!1,h.invalid="false",h)),h=ag,"label"in h?u.setAttribute("aria-label",h.label):u.removeAttribute("aria-label")):u.setAttribute("aria-label",h)};
tK=function(u){u=u.getAttribute("aria-label");return u==null||u==void 0?"":String(u)};
g.b8=function(u,h,L){g.m.call(this);this.G=null;this.B=!1;this.C=u;this.T=L;this.N=h||window;this.X=(0,g.Ej)(this.bN,this)};
oXf=function(u){u=u.N;return u.requestAnimationFrame||u.webkitRequestAnimationFrame||u.mozRequestAnimationFrame||u.oRequestAnimationFrame||u.msRequestAnimationFrame||null};
NK1=function(u){u=u.N;return u.cancelAnimationFrame||u.cancelRequestAnimationFrame||u.webkitCancelRequestAnimationFrame||u.mozCancelRequestAnimationFrame||u.oCancelRequestAnimationFrame||u.msCancelRequestAnimationFrame||null};
g.EM=function(u,h,L){g.m.call(this);this.G=u;this.uX=h||0;this.N=L;this.X=(0,g.Ej)(this.LF,this)};
g.kK=function(u,h){u.isActive()||u.start(h)};
g.g3=function(u){u.stop();u.LF()};
g.u6=function(u){u.isActive()&&g.g3(u)};
g.jz=function(u,h){this.G=u[g.Vn.Symbol.iterator]();this.N=h};
U2L=function(u){return typeof u.className=="string"?u.className:u.getAttribute&&u.getAttribute("class")||""};
hW=function(u){return u.classList?u.classList:U2L(u).match(/\S+/g)||[]};
g.Lc=function(u,h){typeof u.className=="string"?u.className=h:u.setAttribute&&u.setAttribute("class",h)};
g.Zx=function(u,h){return u.classList?u.classList.contains(h):g.E8(hW(u),h)};
g.yN=function(u,h){if(u.classList)u.classList.add(h);else if(!g.Zx(u,h)){var L=U2L(u);g.Lc(u,L+(L.length>0?" "+h:h))}};
g.RH=function(u,h){if(u.classList)Array.prototype.forEach.call(h,function(y){g.yN(u,y)});
else{var L={};Array.prototype.forEach.call(hW(u),function(y){L[y]=!0});
Array.prototype.forEach.call(h,function(y){L[y]=!0});
h="";for(var Z in L)h+=h.length>0?" "+Z:Z;g.Lc(u,h)}};
g.pc=function(u,h){u.classList?u.classList.remove(h):g.Zx(u,h)&&g.Lc(u,Array.prototype.filter.call(hW(u),function(L){return L!=h}).join(" "))};
g.Kc=function(u,h){u.classList?Array.prototype.forEach.call(h,function(L){g.pc(u,L)}):g.Lc(u,Array.prototype.filter.call(hW(u),function(L){return!g.E8(h,L)}).join(" "))};
g.JW=function(u,h,L){L?g.yN(u,h):g.pc(u,h)};
Gmn=function(u,h){var L=!g.Zx(u,h);g.JW(u,h,L)};
g.Oc=function(){g.Ev.call(this);this.G=0;this.endTime=this.startTime=null};
Hf1=function(u,h){Array.isArray(h)||(h=[h]);h=h.map(function(L){return typeof L==="string"?L:L.property+" "+L.duration+"s "+L.timing+" "+L.delay+"s"});
g.Oz(u,"transition",h.join(","))};
fc=function(u,h,L,Z,y){g.Oc.call(this);this.N=u;this.T=h;this.C=L;this.B=Z;this.V=Array.isArray(y)?y:[y]};
rBn=function(u,h,L,Z){return new fc(u,h,{opacity:L},{opacity:Z},{property:"opacity",duration:h,timing:"ease-in",delay:0})};
zrf=function(u){u=Ty(u);if(u=="")return null;var h=String(u.slice(0,4)).toLowerCase();if(("url("<h?-1:"url("==h?0:1)==0)return!u.endsWith(")")||(u?u.split("(").length-1:0)>1||u&&u.split(")"),null;if(u.indexOf("(")>0){if(/"|'/.test(u))return null;h=/([\-\w]+)\(/g;for(var L;L=h.exec(u);)if(!(L[1].toLowerCase()in BKR))return null}return u};
Dx=function(u,h){u=g.Vn[u];return u&&u.prototype?(h=Object.getOwnPropertyDescriptor(u.prototype,h))&&h.get||null:null};
m2L=function(u){var h=g.Vn.CSSStyleDeclaration;return h&&h.prototype&&h.prototype[u]||null};
d2f=function(u,h,L,Z){if(u)return u.apply(h,Z);if(g.cx&&document.documentMode<10){if(!h[L].call)throw Error("IE Clobbering detected");}else if(typeof h[L]!="function")throw Error("Clobbering detected");return h[L].apply(h,Z)};
erw=function(u){if(!u)return"";var h=document.createElement("div").style;Vre(u).forEach(function(L){var Z=g.WM&&L in nXR?L:L.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Sb(Z,"--")||Sb(Z,"var")||(L=d2f(sSj,u,u.getPropertyValue?"getPropertyValue":"getAttribute",[L])||"",L=zrf(L),L!=null&&d2f(w7n,h,h.setProperty?"setProperty":"setAttribute",[Z,L]))});
return h.cssText||""};
Vre=function(u){g.ts(u)?u=g.h8(u):(u=g.ST(u),g.gV(u,"cssText"));return u};
g.AW=function(u){var h,L=h=0,Z=!1;u=u.split(aEj);for(var y=0;y<u.length;y++){var R=u[y];g.IH.test(R)?(h++,L++):$2s.test(R)?Z=!0:trR.test(R)?L++:WSR.test(R)&&(Z=!0)}h=L==0?Z?1:0:h/L>.4?-1:1;return(h==0?null:h)==-1?"rtl":"ltr"};
g.M0=function(u){if(u instanceof xc||u instanceof Px||u instanceof Cc)return u;if(typeof u.next=="function")return new xc(function(){return u});
if(typeof u[Symbol.iterator]=="function")return new xc(function(){return u[Symbol.iterator]()});
if(typeof u.Da=="function")return new xc(function(){return u.Da()});
throw Error("Not an iterator or iterable.");};
xc=function(u){this.N=u};
Px=function(u){this.N=u};
Cc=function(u){xc.call(this,function(){return u});
this.X=u};
i6=function(u,h,L,Z,y,R,p,J){this.G=u;this.V=h;this.X=L;this.T=Z;this.B=y;this.C=R;this.N=p;this.S=J};
QN=function(u,h){if(h==0)return u.G;if(h==1)return u.N;var L=JN(u.G,u.X,h),Z=JN(u.X,u.B,h);u=JN(u.B,u.N,h);L=JN(L,Z,h);Z=JN(Z,u,h);return JN(L,Z,h)};
FSb=function(u,h){var L=(h-u.G)/(u.N-u.G);if(L<=0)return 0;if(L>=1)return 1;for(var Z=0,y=1,R=0,p=0;p<8;p++){R=QN(u,L);var J=(QN(u,L+1E-6)-R)/1E-6;if(Math.abs(R-h)<1E-6)return L;if(Math.abs(J)<1E-6)break;else R<h?Z=L:y=L,L-=(R-h)/J}for(p=0;Math.abs(R-h)>1E-6&&p<8;p++)R<h?(Z=L,L=(L+y)/2):(y=L,L=(L+Z)/2),R=QN(u,L);return L};
l6=function(u,h){this.start=u<h?u:h;this.end=u<h?h:u};
Sz=function(u){return(u=u.exec(g.N7()))?u[1]:""};
XL=function(u){return g.oc(bf1,u)>=0};
g.vx=function(u){g.m.call(this);this.C=1;this.X=[];this.B=0;this.G=[];this.N={};this.V=!!u};
EXf=function(u,h,L){g.Kv(function(){u.apply(h,L)})};
g.q0=function(u){this.G=u};
T8=function(u){this.G=u};
kmn=function(u){this.data=u};
gXa=function(u){return u===void 0||u instanceof kmn?u:new kmn(u)};
Yc=function(u){this.G=u};
g.u0V=function(u){var h=u.creation;u=u.expiration;return!!u&&u<g.u3()||!!h&&h>g.u3()};
g.oH=function(u){this.G=u};
jue=function(){};
N0=function(){};
Uc=function(u){this.G=u;this.N=null};
G8=function(u){if(u.G==null)throw Error("Storage mechanism: Storage unavailable");var h;((h=u.N)!=null?h:u.isAvailable())||i3(Error("Storage mechanism: Storage unavailable"))};
Hx=function(){var u=null;try{u=g.Vn.localStorage||null}catch(h){}Uc.call(this,u)};
hjV=function(){var u=null;try{u=g.Vn.sessionStorage||null}catch(h){}Uc.call(this,u)};
rl=function(u,h){this.N=u;this.G=h+"::"};
g.Bx=function(u){var h=new Hx;return h.isAvailable()?u?new rl(h,u):h:null};
z8=function(u,h){this.G=u;this.N=h};
mX=function(u){this.G=[];if(u)a:{if(u instanceof mX){var h=u.qv();u=u.UH();if(this.G.length<=0){for(var L=this.G,Z=0;Z<h.length;Z++)L.push(new z8(h[Z],u[Z]));break a}}else h=g.ST(u),u=g.lj(u);for(L=0;L<h.length;L++)this.eZ(h[L],u[L])}};
dl=function(){mX.apply(this,arguments)};
VN=function(){};
LWb=function(u){var h,L,Z=u.length,y=0;for(h=0;h<Z;h++){var R=u.charCodeAt(h);if((R&64512)===55296&&h+1<Z){var p=u.charCodeAt(h+1);(p&64512)===56320&&(R=65536+(R-55296<<10)+(p-56320),h++)}y+=R<128?1:R<2048?2:R<65536?3:4}var J=new nc.Kl(y);for(h=L=0;L<y;h++)R=u.charCodeAt(h),(R&64512)===55296&&h+1<Z&&(p=u.charCodeAt(h+1),(p&64512)===56320&&(R=65536+(R-55296<<10)+(p-56320),h++)),R<128?J[L++]=R:(R<2048?J[L++]=192|R>>>6:(R<65536?J[L++]=224|R>>>12:(J[L++]=240|R>>>18,J[L++]=128|R>>>12&63),J[L++]=128|R>>>
6&63),J[L++]=128|R&63);return J};
sc=function(u){for(var h=u.length;--h>=0;)u[h]=0};
wl=function(u,h,L,Z,y){this.FG=u;this.hj=h;this.tj=L;this.yl=Z;this.K_I=y;this.PC=u&&u.length};
ez=function(u,h){this.RS=u;this.a_=0;this.N_=h};
aH=function(u,h){u.ac[u.pending++]=h&255;u.ac[u.pending++]=h>>>8&255};
$c=function(u,h,L){u.kW>16-L?(u.Px|=h<<u.kW&65535,aH(u,u.Px),u.Px=h>>16-u.kW,u.kW+=L-16):(u.Px|=h<<u.kW&65535,u.kW+=L)};
tW=function(u,h,L){$c(u,L[h*2],L[h*2+1])};
ZNa=function(u,h){var L=0;do L|=u&1,u>>>=1,L<<=1;while(--h>0);return L>>>1};
yYw=function(u,h,L){var Z=Array(16),y=0,R;for(R=1;R<=15;R++)Z[R]=y=y+L[R-1]<<1;for(L=0;L<=h;L++)y=u[L*2+1],y!==0&&(u[L*2]=ZNa(Z[y]++,y))};
Rja=function(u){var h;for(h=0;h<286;h++)u.aF[h*2]=0;for(h=0;h<30;h++)u.WL[h*2]=0;for(h=0;h<19;h++)u.IM[h*2]=0;u.aF[512]=1;u.EW=u.j_=0;u.JC=u.matches=0};
pZj=function(u){u.kW>8?aH(u,u.Px):u.kW>0&&(u.ac[u.pending++]=u.Px);u.Px=0;u.kW=0};
KWa=function(u,h,L){pZj(u);aH(u,L);aH(u,~L);nc.Sj(u.ac,u.window,h,L,u.pending);u.pending+=L};
JYY=function(u,h,L,Z){var y=h*2,R=L*2;return u[y]<u[R]||u[y]===u[R]&&Z[h]<=Z[L]};
Wx=function(u,h,L){for(var Z=u.Uu[L],y=L<<1;y<=u.Nl;){y<u.Nl&&JYY(h,u.Uu[y+1],u.Uu[y],u.depth)&&y++;if(JYY(h,Z,u.Uu[y],u.depth))break;u.Uu[L]=u.Uu[y];L=y;y<<=1}u.Uu[L]=Z};
ONa=function(u,h,L){var Z=0;if(u.JC!==0){do{var y=u.ac[u.fT+Z*2]<<8|u.ac[u.fT+Z*2+1];var R=u.ac[u.v$+Z];Z++;if(y===0)tW(u,R,h);else{var p=FL[R];tW(u,p+256+1,h);var J=b6[p];J!==0&&(R-=Ec[p],$c(u,R,J));y--;p=y<256?kc[y]:kc[256+(y>>>7)];tW(u,p,L);J=gl[p];J!==0&&(y-=uU[p],$c(u,y,J))}}while(Z<u.JC)}tW(u,256,h)};
jv=function(u,h){var L=h.RS,Z=h.N_.FG,y=h.N_.PC,R=h.N_.yl,p,J=-1;u.Nl=0;u.sQ=573;for(p=0;p<R;p++)L[p*2]!==0?(u.Uu[++u.Nl]=J=p,u.depth[p]=0):L[p*2+1]=0;for(;u.Nl<2;){var O=u.Uu[++u.Nl]=J<2?++J:0;L[O*2]=1;u.depth[O]=0;u.EW--;y&&(u.j_-=Z[O*2+1])}h.a_=J;for(p=u.Nl>>1;p>=1;p--)Wx(u,L,p);O=R;do p=u.Uu[1],u.Uu[1]=u.Uu[u.Nl--],Wx(u,L,1),Z=u.Uu[1],u.Uu[--u.sQ]=p,u.Uu[--u.sQ]=Z,L[O*2]=L[p*2]+L[Z*2],u.depth[O]=(u.depth[p]>=u.depth[Z]?u.depth[p]:u.depth[Z])+1,L[p*2+1]=L[Z*2+1]=O,u.Uu[1]=O++,Wx(u,L,1);while(u.Nl>=
2);u.Uu[--u.sQ]=u.Uu[1];p=h.RS;O=h.a_;Z=h.N_.FG;y=h.N_.PC;R=h.N_.hj;var f=h.N_.tj,D=h.N_.K_I,c,I=0;for(c=0;c<=15;c++)u.Wa[c]=0;p[u.Uu[u.sQ]*2+1]=0;for(h=u.sQ+1;h<573;h++){var A=u.Uu[h];c=p[p[A*2+1]*2+1]+1;c>D&&(c=D,I++);p[A*2+1]=c;if(!(A>O)){u.Wa[c]++;var x=0;A>=f&&(x=R[A-f]);var Q=p[A*2];u.EW+=Q*(c+x);y&&(u.j_+=Q*(Z[A*2+1]+x))}}if(I!==0){do{for(c=D-1;u.Wa[c]===0;)c--;u.Wa[c]--;u.Wa[c+1]+=2;u.Wa[D]--;I-=2}while(I>0);for(c=D;c!==0;c--)for(A=u.Wa[c];A!==0;)Z=u.Uu[--h],Z>O||(p[Z*2+1]!==c&&(u.EW+=(c-
p[Z*2+1])*p[Z*2],p[Z*2+1]=c),A--)}yYw(L,J,u.Wa)};
fVl=function(u,h,L){var Z,y=-1,R=h[1],p=0,J=7,O=4;R===0&&(J=138,O=3);h[(L+1)*2+1]=65535;for(Z=0;Z<=L;Z++){var f=R;R=h[(Z+1)*2+1];++p<J&&f===R||(p<O?u.IM[f*2]+=p:f!==0?(f!==y&&u.IM[f*2]++,u.IM[32]++):p<=10?u.IM[34]++:u.IM[36]++,p=0,y=f,R===0?(J=138,O=3):f===R?(J=6,O=3):(J=7,O=4))}};
DBL=function(u,h,L){var Z,y=-1,R=h[1],p=0,J=7,O=4;R===0&&(J=138,O=3);for(Z=0;Z<=L;Z++){var f=R;R=h[(Z+1)*2+1];if(!(++p<J&&f===R)){if(p<O){do tW(u,f,u.IM);while(--p!==0)}else f!==0?(f!==y&&(tW(u,f,u.IM),p--),tW(u,16,u.IM),$c(u,p-3,2)):p<=10?(tW(u,17,u.IM),$c(u,p-3,3)):(tW(u,18,u.IM),$c(u,p-11,7));p=0;y=f;R===0?(J=138,O=3):f===R?(J=6,O=3):(J=7,O=4)}}};
cYL=function(u){var h=4093624447,L;for(L=0;L<=31;L++,h>>>=1)if(h&1&&u.aF[L*2]!==0)return 0;if(u.aF[18]!==0||u.aF[20]!==0||u.aF[26]!==0)return 1;for(L=32;L<256;L++)if(u.aF[L*2]!==0)return 1;return 0};
hn=function(u,h,L){u.ac[u.fT+u.JC*2]=h>>>8&255;u.ac[u.fT+u.JC*2+1]=h&255;u.ac[u.v$+u.JC]=L&255;u.JC++;h===0?u.aF[L*2]++:(u.matches++,h--,u.aF[(FL[L]+256+1)*2]++,u.WL[(h<256?kc[h]:kc[256+(h>>>7)])*2]++);return u.JC===u.PK-1};
ZJ=function(u,h){u.msg=LI[h];return h};
ym=function(u){for(var h=u.length;--h>=0;)u[h]=0};
Rw=function(u){var h=u.state,L=h.pending;L>u.nZ&&(L=u.nZ);L!==0&&(nc.Sj(u.output,h.ac,h.Kt,L,u.j8),u.j8+=L,h.Kt+=L,u.zj+=L,u.nZ-=L,h.pending-=L,h.pending===0&&(h.Kt=0))};
Jn=function(u,h){var L=u.Pm>=0?u.Pm:-1,Z=u.OU-u.Pm,y=0;if(u.level>0){u.Jq.XR===2&&(u.Jq.XR=cYL(u));jv(u,u.mU);jv(u,u.ao);fVl(u,u.aF,u.mU.a_);fVl(u,u.WL,u.ao.a_);jv(u,u.Dj);for(y=18;y>=3&&u.IM[IVj[y]*2+1]===0;y--);u.EW+=3*(y+1)+5+5+4;var R=u.EW+3+7>>>3;var p=u.j_+3+7>>>3;p<=R&&(R=p)}else R=p=Z+5;if(Z+4<=R&&L!==-1)$c(u,h?1:0,3),KWa(u,L,Z);else if(u.strategy===4||p===R)$c(u,2+(h?1:0),3),ONa(u,pI,KI);else{$c(u,4+(h?1:0),3);L=u.mU.a_+1;Z=u.ao.a_+1;y+=1;$c(u,L-257,5);$c(u,Z-1,5);$c(u,y-4,4);for(R=0;R<y;R++)$c(u,
u.IM[IVj[R]*2+1],3);DBL(u,u.aF,L-1);DBL(u,u.WL,Z-1);ONa(u,u.aF,u.WL)}Rja(u);h&&pZj(u);u.Pm=u.OU;Rw(u.Jq)};
OC=function(u,h){u.ac[u.pending++]=h};
fI=function(u,h){u.ac[u.pending++]=h>>>8&255;u.ac[u.pending++]=h&255};
AY1=function(u,h){var L=u.HM,Z=u.OU,y=u.xq,R=u.dS,p=u.OU>u.CV-262?u.OU-(u.CV-262):0,J=u.window,O=u.Fa,f=u.x0,D=u.OU+258,c=J[Z+y-1],I=J[Z+y];u.xq>=u.d5&&(L>>=2);R>u.hM&&(R=u.hM);do{var A=h;if(J[A+y]===I&&J[A+y-1]===c&&J[A]===J[Z]&&J[++A]===J[Z+1]){Z+=2;for(A++;J[++Z]===J[++A]&&J[++Z]===J[++A]&&J[++Z]===J[++A]&&J[++Z]===J[++A]&&J[++Z]===J[++A]&&J[++Z]===J[++A]&&J[++Z]===J[++A]&&J[++Z]===J[++A]&&Z<D;);A=258-(D-Z);Z=D-258;if(A>y){u.Tx=h;y=A;if(A>=R)break;c=J[Z+y-1];I=J[Z+y]}}}while((h=f[h&O])>p&&--L!==
0);return y<=u.hM?y:u.hM};
Iw=function(u){var h=u.CV,L;do{var Z=u.Ec-u.hM-u.OU;if(u.OU>=h+(h-262)){nc.Sj(u.window,u.window,h,h,0);u.Tx-=h;u.OU-=h;u.Pm-=h;var y=L=u.pG;do{var R=u.head[--y];u.head[y]=R>=h?R-h:0}while(--L);y=L=h;do R=u.x0[--y],u.x0[y]=R>=h?R-h:0;while(--L);Z+=h}if(u.Jq.bX===0)break;y=u.Jq;L=u.window;R=u.OU+u.hM;var p=y.bX;p>Z&&(p=Z);p===0?L=0:(y.bX-=p,nc.Sj(L,y.input,y.Yu,p,R),y.state.wrap===1?y.wd=DJ(y.wd,L,p,R):y.state.wrap===2&&(y.wd=cn(y.wd,L,p,R)),y.Yu+=p,y.A7+=p,L=p);u.hM+=L;if(u.hM+u.eZ>=3)for(Z=u.OU-u.eZ,
u.xv=u.window[Z],u.xv=(u.xv<<u.n5^u.window[Z+1])&u.Rv;u.eZ&&!(u.xv=(u.xv<<u.n5^u.window[Z+3-1])&u.Rv,u.x0[Z&u.Fa]=u.head[u.xv],u.head[u.xv]=Z,Z++,u.eZ--,u.hM+u.eZ<3););}while(u.hM<262&&u.Jq.bX!==0)};
An=function(u,h){for(var L;;){if(u.hM<262){Iw(u);if(u.hM<262&&h===0)return 1;if(u.hM===0)break}L=0;u.hM>=3&&(u.xv=(u.xv<<u.n5^u.window[u.OU+3-1])&u.Rv,L=u.x0[u.OU&u.Fa]=u.head[u.xv],u.head[u.xv]=u.OU);L!==0&&u.OU-L<=u.CV-262&&(u.Dg=AY1(u,L));if(u.Dg>=3)if(L=hn(u,u.OU-u.Tx,u.Dg-3),u.hM-=u.Dg,u.Dg<=u.jL&&u.hM>=3){u.Dg--;do u.OU++,u.xv=(u.xv<<u.n5^u.window[u.OU+3-1])&u.Rv,u.x0[u.OU&u.Fa]=u.head[u.xv],u.head[u.xv]=u.OU;while(--u.Dg!==0);u.OU++}else u.OU+=u.Dg,u.Dg=0,u.xv=u.window[u.OU],u.xv=(u.xv<<u.n5^
u.window[u.OU+1])&u.Rv;else L=hn(u,0,u.window[u.OU]),u.hM--,u.OU++;if(L&&(Jn(u,!1),u.Jq.nZ===0))return 1}u.eZ=u.OU<2?u.OU:2;return h===4?(Jn(u,!0),u.Jq.nZ===0?3:4):u.JC&&(Jn(u,!1),u.Jq.nZ===0)?1:2};
xB=function(u,h){for(var L,Z;;){if(u.hM<262){Iw(u);if(u.hM<262&&h===0)return 1;if(u.hM===0)break}L=0;u.hM>=3&&(u.xv=(u.xv<<u.n5^u.window[u.OU+3-1])&u.Rv,L=u.x0[u.OU&u.Fa]=u.head[u.xv],u.head[u.xv]=u.OU);u.xq=u.Dg;u.lI=u.Tx;u.Dg=2;L!==0&&u.xq<u.jL&&u.OU-L<=u.CV-262&&(u.Dg=AY1(u,L),u.Dg<=5&&(u.strategy===1||u.Dg===3&&u.OU-u.Tx>4096)&&(u.Dg=2));if(u.xq>=3&&u.Dg<=u.xq){Z=u.OU+u.hM-3;L=hn(u,u.OU-1-u.lI,u.xq-3);u.hM-=u.xq-1;u.xq-=2;do++u.OU<=Z&&(u.xv=(u.xv<<u.n5^u.window[u.OU+3-1])&u.Rv,u.x0[u.OU&u.Fa]=
u.head[u.xv],u.head[u.xv]=u.OU);while(--u.xq!==0);u.Hf=0;u.Dg=2;u.OU++;if(L&&(Jn(u,!1),u.Jq.nZ===0))return 1}else if(u.Hf){if((L=hn(u,0,u.window[u.OU-1]))&&Jn(u,!1),u.OU++,u.hM--,u.Jq.nZ===0)return 1}else u.Hf=1,u.OU++,u.hM--}u.Hf&&(hn(u,0,u.window[u.OU-1]),u.Hf=0);u.eZ=u.OU<2?u.OU:2;return h===4?(Jn(u,!0),u.Jq.nZ===0?3:4):u.JC&&(Jn(u,!1),u.Jq.nZ===0)?1:2};
xBf=function(u,h){for(var L,Z,y,R=u.window;;){if(u.hM<=258){Iw(u);if(u.hM<=258&&h===0)return 1;if(u.hM===0)break}u.Dg=0;if(u.hM>=3&&u.OU>0&&(Z=u.OU-1,L=R[Z],L===R[++Z]&&L===R[++Z]&&L===R[++Z])){for(y=u.OU+258;L===R[++Z]&&L===R[++Z]&&L===R[++Z]&&L===R[++Z]&&L===R[++Z]&&L===R[++Z]&&L===R[++Z]&&L===R[++Z]&&Z<y;);u.Dg=258-(y-Z);u.Dg>u.hM&&(u.Dg=u.hM)}u.Dg>=3?(L=hn(u,1,u.Dg-3),u.hM-=u.Dg,u.OU+=u.Dg,u.Dg=0):(L=hn(u,0,u.window[u.OU]),u.hM--,u.OU++);if(L&&(Jn(u,!1),u.Jq.nZ===0))return 1}u.eZ=0;return h===
4?(Jn(u,!0),u.Jq.nZ===0?3:4):u.JC&&(Jn(u,!1),u.Jq.nZ===0)?1:2};
PT1=function(u,h){for(var L;;){if(u.hM===0&&(Iw(u),u.hM===0)){if(h===0)return 1;break}u.Dg=0;L=hn(u,0,u.window[u.OU]);u.hM--;u.OU++;if(L&&(Jn(u,!1),u.Jq.nZ===0))return 1}u.eZ=0;return h===4?(Jn(u,!0),u.Jq.nZ===0?3:4):u.JC&&(Jn(u,!1),u.Jq.nZ===0)?1:2};
Pn=function(u,h,L,Z,y){this.hE=u;this.l3I=h;this.pJ7=L;this.glB=Z;this.func=y};
CTj=function(){this.Jq=null;this.status=0;this.ac=null;this.wrap=this.pending=this.Kt=this.QR=0;this.KW=null;this.hs=0;this.method=8;this.B0=-1;this.Fa=this.VB=this.CV=0;this.window=null;this.Ec=0;this.head=this.x0=null;this.dS=this.d5=this.strategy=this.level=this.jL=this.HM=this.xq=this.hM=this.Tx=this.OU=this.Hf=this.lI=this.Dg=this.Pm=this.n5=this.Rv=this.ZM=this.pG=this.xv=0;this.aF=new nc.Pa(1146);this.WL=new nc.Pa(122);this.IM=new nc.Pa(78);ym(this.aF);ym(this.WL);ym(this.IM);this.Dj=this.ao=
this.mU=null;this.Wa=new nc.Pa(16);this.Uu=new nc.Pa(573);ym(this.Uu);this.sQ=this.Nl=0;this.depth=new nc.Pa(573);ym(this.depth);this.kW=this.Px=this.eZ=this.matches=this.j_=this.EW=this.fT=this.JC=this.PK=this.v$=0};
MmR=function(u,h){if(!u||!u.state||h>5||h<0)return u?ZJ(u,-2):-2;var L=u.state;if(!u.output||!u.input&&u.bX!==0||L.status===666&&h!==4)return ZJ(u,u.nZ===0?-5:-2);L.Jq=u;var Z=L.B0;L.B0=h;if(L.status===42)if(L.wrap===2)u.wd=0,OC(L,31),OC(L,139),OC(L,8),L.KW?(OC(L,(L.KW.text?1:0)+(L.KW.N2?2:0)+(L.KW.extra?4:0)+(L.KW.name?8:0)+(L.KW.comment?16:0)),OC(L,L.KW.time&255),OC(L,L.KW.time>>8&255),OC(L,L.KW.time>>16&255),OC(L,L.KW.time>>24&255),OC(L,L.level===9?2:L.strategy>=2||L.level<2?4:0),OC(L,L.KW.os&
255),L.KW.extra&&L.KW.extra.length&&(OC(L,L.KW.extra.length&255),OC(L,L.KW.extra.length>>8&255)),L.KW.N2&&(u.wd=cn(u.wd,L.ac,L.pending,0)),L.hs=0,L.status=69):(OC(L,0),OC(L,0),OC(L,0),OC(L,0),OC(L,0),OC(L,L.level===9?2:L.strategy>=2||L.level<2?4:0),OC(L,3),L.status=113);else{var y=8+(L.VB-8<<4)<<8;y|=(L.strategy>=2||L.level<2?0:L.level<6?1:L.level===6?2:3)<<6;L.OU!==0&&(y|=32);L.status=113;fI(L,y+(31-y%31));L.OU!==0&&(fI(L,u.wd>>>16),fI(L,u.wd&65535));u.wd=1}if(L.status===69)if(L.KW.extra){for(y=
L.pending;L.hs<(L.KW.extra.length&65535)&&(L.pending!==L.QR||(L.KW.N2&&L.pending>y&&(u.wd=cn(u.wd,L.ac,L.pending-y,y)),Rw(u),y=L.pending,L.pending!==L.QR));)OC(L,L.KW.extra[L.hs]&255),L.hs++;L.KW.N2&&L.pending>y&&(u.wd=cn(u.wd,L.ac,L.pending-y,y));L.hs===L.KW.extra.length&&(L.hs=0,L.status=73)}else L.status=73;if(L.status===73)if(L.KW.name){y=L.pending;do{if(L.pending===L.QR&&(L.KW.N2&&L.pending>y&&(u.wd=cn(u.wd,L.ac,L.pending-y,y)),Rw(u),y=L.pending,L.pending===L.QR)){var R=1;break}R=L.hs<L.KW.name.length?
L.KW.name.charCodeAt(L.hs++)&255:0;OC(L,R)}while(R!==0);L.KW.N2&&L.pending>y&&(u.wd=cn(u.wd,L.ac,L.pending-y,y));R===0&&(L.hs=0,L.status=91)}else L.status=91;if(L.status===91)if(L.KW.comment){y=L.pending;do{if(L.pending===L.QR&&(L.KW.N2&&L.pending>y&&(u.wd=cn(u.wd,L.ac,L.pending-y,y)),Rw(u),y=L.pending,L.pending===L.QR)){R=1;break}R=L.hs<L.KW.comment.length?L.KW.comment.charCodeAt(L.hs++)&255:0;OC(L,R)}while(R!==0);L.KW.N2&&L.pending>y&&(u.wd=cn(u.wd,L.ac,L.pending-y,y));R===0&&(L.status=103)}else L.status=
103;L.status===103&&(L.KW.N2?(L.pending+2>L.QR&&Rw(u),L.pending+2<=L.QR&&(OC(L,u.wd&255),OC(L,u.wd>>8&255),u.wd=0,L.status=113)):L.status=113);if(L.pending!==0){if(Rw(u),u.nZ===0)return L.B0=-1,0}else if(u.bX===0&&(h<<1)-(h>4?9:0)<=(Z<<1)-(Z>4?9:0)&&h!==4)return ZJ(u,-5);if(L.status===666&&u.bX!==0)return ZJ(u,-5);if(u.bX!==0||L.hM!==0||h!==0&&L.status!==666){Z=L.strategy===2?PT1(L,h):L.strategy===3?xBf(L,h):CI[L.level].func(L,h);if(Z===3||Z===4)L.status=666;if(Z===1||Z===3)return u.nZ===0&&(L.B0=
-1),0;if(Z===2&&(h===1?($c(L,2,3),tW(L,256,pI),L.kW===16?(aH(L,L.Px),L.Px=0,L.kW=0):L.kW>=8&&(L.ac[L.pending++]=L.Px&255,L.Px>>=8,L.kW-=8)):h!==5&&($c(L,0,3),KWa(L,0,0),h===3&&(ym(L.head),L.hM===0&&(L.OU=0,L.Pm=0,L.eZ=0))),Rw(u),u.nZ===0))return L.B0=-1,0}if(h!==4)return 0;if(L.wrap<=0)return 1;L.wrap===2?(OC(L,u.wd&255),OC(L,u.wd>>8&255),OC(L,u.wd>>16&255),OC(L,u.wd>>24&255),OC(L,u.A7&255),OC(L,u.A7>>8&255),OC(L,u.A7>>16&255),OC(L,u.A7>>24&255)):(fI(L,u.wd>>>16),fI(L,u.wd&65535));Rw(u);L.wrap>0&&
(L.wrap=-L.wrap);return L.pending!==0?0:1};
MH=function(u){if(!(this instanceof MH))return new MH(u);u=this.options=nc.assign({level:-1,method:8,chunkSize:16384,vc:15,vlw:8,strategy:0,le:""},u||{});u.raw&&u.vc>0?u.vc=-u.vc:u.f9&&u.vc>0&&u.vc<16&&(u.vc+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Jq=new iN1;this.Jq.nZ=0;var h=this.Jq;var L=u.level,Z=u.method,y=u.vc,R=u.vlw,p=u.strategy;if(h){var J=1;L===-1&&(L=6);y<0?(J=0,y=-y):y>15&&(J=2,y-=16);if(R<1||R>9||Z!==8||y<8||y>15||L<0||L>9||p<0||p>4)h=ZJ(h,-2);else{y===8&&(y=9);
var O=new CTj;h.state=O;O.Jq=h;O.wrap=J;O.KW=null;O.VB=y;O.CV=1<<O.VB;O.Fa=O.CV-1;O.ZM=R+7;O.pG=1<<O.ZM;O.Rv=O.pG-1;O.n5=~~((O.ZM+3-1)/3);O.window=new nc.Kl(O.CV*2);O.head=new nc.Pa(O.pG);O.x0=new nc.Pa(O.CV);O.PK=1<<R+6;O.QR=O.PK*4;O.ac=new nc.Kl(O.QR);O.fT=1*O.PK;O.v$=3*O.PK;O.level=L;O.strategy=p;O.method=Z;if(h&&h.state){h.A7=h.zj=0;h.XR=2;L=h.state;L.pending=0;L.Kt=0;L.wrap<0&&(L.wrap=-L.wrap);L.status=L.wrap?42:113;h.wd=L.wrap===2?0:1;L.B0=0;if(!Qun){Z=Array(16);for(R=p=0;R<28;R++)for(Ec[R]=
p,y=0;y<1<<b6[R];y++)FL[p++]=R;FL[p-1]=R;for(R=p=0;R<16;R++)for(uU[R]=p,y=0;y<1<<gl[R];y++)kc[p++]=R;for(p>>=7;R<30;R++)for(uU[R]=p<<7,y=0;y<1<<gl[R]-7;y++)kc[256+p++]=R;for(y=0;y<=15;y++)Z[y]=0;for(y=0;y<=143;)pI[y*2+1]=8,y++,Z[8]++;for(;y<=255;)pI[y*2+1]=9,y++,Z[9]++;for(;y<=279;)pI[y*2+1]=7,y++,Z[7]++;for(;y<=287;)pI[y*2+1]=8,y++,Z[8]++;yYw(pI,287,Z);for(y=0;y<30;y++)KI[y*2+1]=5,KI[y*2]=ZNa(y,5);lVj=new wl(pI,b6,257,286,15);SRV=new wl(KI,gl,0,30,15);XZ1=new wl([],vZl,0,19,7);Qun=!0}L.mU=new ez(L.aF,
lVj);L.ao=new ez(L.WL,SRV);L.Dj=new ez(L.IM,XZ1);L.Px=0;L.kW=0;Rja(L);L=0}else L=ZJ(h,-2);L===0&&(h=h.state,h.Ec=2*h.CV,ym(h.head),h.jL=CI[h.level].l3I,h.d5=CI[h.level].hE,h.dS=CI[h.level].pJ7,h.HM=CI[h.level].glB,h.OU=0,h.Pm=0,h.hM=0,h.eZ=0,h.Dg=h.xq=2,h.Hf=0,h.xv=0);h=L}}else h=-2;if(h!==0)throw Error(LI[h]);u.header&&(h=this.Jq)&&h.state&&h.state.wrap===2&&(h.state.KW=u.header);if(u.YL){var f;typeof u.YL==="string"?f=LWb(u.YL):qRn.call(u.YL)==="[object ArrayBuffer]"?f=new Uint8Array(u.YL):f=u.YL;
u=this.Jq;R=f;p=R.length;if(u&&u.state)if(f=u.state,h=f.wrap,h===2||h===1&&f.status!==42||f.hM)h=-2;else{h===1&&(u.wd=DJ(u.wd,R,p,0));f.wrap=0;p>=f.CV&&(h===0&&(ym(f.head),f.OU=0,f.Pm=0,f.eZ=0),L=new nc.Kl(f.CV),nc.Sj(L,R,p-f.CV,f.CV,0),R=L,p=f.CV);L=u.bX;Z=u.Yu;y=u.input;u.bX=p;u.Yu=0;u.input=R;for(Iw(f);f.hM>=3;){R=f.OU;p=f.hM-2;do f.xv=(f.xv<<f.n5^f.window[R+3-1])&f.Rv,f.x0[R&f.Fa]=f.head[f.xv],f.head[f.xv]=R,R++;while(--p);f.OU=R;f.hM=2;Iw(f)}f.OU+=f.hM;f.Pm=f.OU;f.eZ=f.hM;f.hM=0;f.Dg=f.xq=2;
f.Hf=0;u.Yu=Z;u.input=y;u.bX=L;f.wrap=h;h=0}else h=-2;if(h!==0)throw Error(LI[h]);this.dRA=!0}};
Tyj=function(u,h){h=h||{};h.f9=!0;h=new MH(h);h.push(u,!0);if(h.err)throw h.msg||LI[h.err];return h.result};
YRj=function(){var u=g.NL.apply(0,arguments);return u.length===0?function(h){return h}:u.length===1?u[0]:u.reduce(function(h,L){return function(){return h(L.apply(null,g.l(g.NL.apply(0,arguments))))}})};
oZf=function(){var u=g.NL.apply(0,arguments);return function(h){return function(L,Z){function y(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
L=h(L,Z);var R={getState:L.getState,dispatch:function(p){return y.apply(null,[p].concat(g.l(g.NL.apply(1,arguments))))}};
Z=u.map(function(p){return p(R)});
y=YRj.apply(null,g.l(Z))(L.dispatch);return Object.assign({},L,{dispatch:y})}}};
iU=function(){return Math.random().toString(36).substring(7).split("").join(".")};
Nyw=function(u){Object.keys(u).forEach(function(h){var L=u[h];if(typeof L(void 0,{type:Qm})==="undefined")throw Error('The slice reducer for key "'+h+"\" 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 L(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+iU()})==="undefined")throw Error('The slice reducer for key "'+
h+"\" returned undefined when probed with a random type. Don't try to handle '"+(Qm+'\' 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.'));})};
UBY=function(u,h,L){function Z(){if(D)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 J}
function y(A){if(typeof A!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof A+"'");if(D)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 x=!0;f===O&&(f=O.slice());f.push(A);return function(){if(x){if(D)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.");
x=!1;f===O&&(f=O.slice());f.splice(f.indexOf(A),1);O=null}}}
function R(A){if(typeof A!=="object"||A===null)var x=!1;else{for(x=A;Object.getPrototypeOf(x)!==null;)x=Object.getPrototypeOf(x);x=Object.getPrototypeOf(A)===x}if(!x)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof A+"'. 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 A.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(D)throw Error("Reducers may not dispatch actions.");try{D=!0,J=p(J,A)}finally{D=!1}x=O=f;for(var Q=0;Q<x.length;Q++)(0,x[Q])();return A}
if(typeof h==="function"&&typeof L==="function"||typeof L==="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 h==="function"&&typeof L==="undefined"&&(L=h,h=void 0);if(typeof L!=="undefined"){if(typeof L!=="function")throw Error("Expected the enhancer to be a function. Instead, received: '"+
typeof L+"'");return L(UBY)(u,h)}if(typeof u!=="function")throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof u+"'");var p=u,J=h,O=[],f=O,D=!1;R({type:Qm});var c={},I=(c.dispatch=R,c.subscribe=y,c.getState=Z,c.replaceReducer=function(A){if(typeof A!=="function")throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof A);p=A;R({type:GHV});return I},c[HNi]=function(){var A={};
return A.subscribe=function(x){function Q(){x.next&&x.next(Z())}
if(typeof x!=="object"||x===null)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof x+"'");Q();return{unsubscribe:y(Q)}},A[HNi]=function(){return this},A},c);
return I};
rYn=function(u){return u?(u=u.privateDoNotAccessOrElseSafeScriptWrappedValue)?vtR(u):null:null};
lU=function(u){return u?(u=u.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?X7(u):null:null};
zjw=function(u){u=Bys(u);return re(u)};
g.Sv=function(u){u=Bys(u);return X7(u)};
Bys=function(u){return u===null?"null":u===void 0?"undefined":u};
XB=function(u){this.Mp=UY(u)};
dBf=function(u){var h=u.split(u.slice(0,0)),L=[200140395,-269553485,152845913,848633624,')"\u00e4',1562039806,"{,/u",h,-1855935885,-380418143,null,h,-1428697290,"'(}\\",-108512138,function(Z,y,R,p,J){return y(R,p,J)},
function(Z){Z.reverse()},
-1159808,279193261,function(Z,y){y=(y%Z.length+Z.length)%Z.length;Z.splice(y,1)},
2089077721,1951503553,-438257176,function(Z,y){y=(y%Z.length+Z.length)%Z.length;Z.splice(-y).reverse().forEach(function(R){Z.unshift(R)})},
null,434876696,function(Z){for(var y=Z.length;y;)Z.push(Z.splice(--y,1)[0])},
965083956,-425894788,1584999763,function(){for(var Z=64,y=[];++Z-y.length-32;)switch(Z){case 46:Z=95;default:y.push(String.fromCharCode(Z));case 94:case 95:case 96:break;case 123:Z-=76;case 92:case 93:continue;case 58:Z=44;case 91:}return y},
-2122144851,223674450,-1471763410,963078833,159645092,function(Z,y){Z.length!=0&&(y=(y%Z.length+Z.length)%Z.length,Z.splice(0,1,Z.splice(y,1,Z[0])[0]))},
-1476664187,-1415662448,2123956643,1069996738,function(Z,y,R,p,J,O,f){return Z(J,O,f)},
-834406884,1120379631,-1545962235,-1816795400,-438762586,-425894788,-964653482,-643837326,-1325335776,function(){for(var Z=64,y=[];++Z-y.length-32;){switch(Z){case 91:Z=44;continue;case 123:Z=65;break;case 65:Z-=18;continue;case 58:Z=96;continue;case 46:Z=95}y.push(String.fromCharCode(Z))}return y},
646500305,1988039490,548558629,-380418143,-934100445,388434935,null,-187641089,959848765,function(Z,y){y.push(Z)},
465841178,854972240,1765901956,2108581581,function(){for(var Z=64,y=[];++Z-y.length-32;){switch(Z){case 58:Z-=14;case 91:case 92:case 93:continue;case 123:Z=47;case 94:case 95:case 96:continue;case 46:Z=95}y.push(String.fromCharCode(Z))}return y},
function(Z,y){if(Z.length!=0){y=(y%Z.length+Z.length)%Z.length;var R=Z[0];Z[0]=Z[y];Z[y]=R}},
"var",function(Z,y,R){var p=Z.length;y.forEach(function(J,O,f){this.push(f[O]=Z[(Z.indexOf(J)-Z.indexOf(this[O])+O+p--)%Z.length])},R.split(""))},
700173553,-1705302370,-852571863,1833111101,1449670588,-1249910841,69385227,-78486177,161219960,530893344,-786792579,1829326081,function(Z,y){for(y=(y%Z.length+Z.length)%Z.length;y--;)Z.unshift(Z.pop())},
h,1932833698];L[10]=L;L[24]=L;L[58]=L;if(typeof mBY==="undefined")return u;try{try{L[65]<=-5?(0,L[15])((0,L[23])(L[11],L[57]),L[69],(0,L[30])(),L[7],L[68]):((0,L[61])(L[20],L[24]),(0,L[61])(L[49],L[58]))}catch(Z){(0,L[19])(L[7],L[29])}try{L[84]!==-10&&(L[21]==-3-336%Math.pow(8,new Date("1969-12-31T16:30:01.000-07:30")/1E3)&&((0,L[15])((0,L[69])((0,L[30])(),L[83],L[68]),L[19],L[83],L[35]),1)||(0,L[15])((0,L[26])(L[83]),L[67],L[11],L[71])),L[1-new Date("1969-12-31T17:46:35.000-06:15")/1E3%78+79]>7&&
(L[42]==9||((0,L[82])(L[7],L[73]),0))&&(0,L[69])((0,L[30])(),L[11],L[68]),L[new Date("1970-01-01T02:31:24.000+02:30")/1E3]>=4&&(L[65]===-9&&(((((0,L[69])((0,L[51])(),L[11],L[68]),L[16])(L[58]),L[19])(L[7],L[42]),L[23])(L[7],L[52]),-6)||((((0,L[82])(L[7],L[37]),L[23])(L[10],L[34]),L[36])(L[27],L[new Date("1969-12-31T21:16:21.000-02:45")/1E3]),L[51])(L[27],L[9])),L[35]==-7&&(((((0,L[new Date("1969-12-31T16:31:18.000-07:30")/1E3])((0,L[12])(L[73],L[52]),L[82],L[new Date("1969-12-31T13:31:14.000-10:30")/
1E3],L[63]),L[58])(L[73],L[40]),L[2])(L[73]),L[82])(L[34],L[30]),1)||(((0,L[45])((0,L[6])(),L[74],L[44]),L[78])(((0,L[12])(L[74],L[29]),L[12])(L[73],L[26]),L[37],L[47],L[34]),L[86])(L[74],L[71]),(L[54]>new Date("1970-01-01T11:14:53.000+11:15")/1E3||(((0,L[12])(L[73],L[8]),(0,L[82])(L[70],L[84]),L[2])(L[59]),0))&&((0,L[43])(L[59],L[4]),L[43])(L[59],L[343-new Date("1969-12-31T17:34:07.000-06:30")/1E3*196+48094])===(0,L[86])(L[73],L[36])}catch(Z){(0,L[20])(L[0]),((0,L[19])((0,L[74])((0,L[71])(),L[0],
L[73]),L[23],L[11],L[43]),(0,L[41])(L[15],L[77]),L[74])((0,L[35])(),L[0],L[73])}finally{L[49]<new Date("1970-01-01T07:44:56.000+07:45")/1E3&&(L[6]!==2||(((((0,L[23])(L[14],L[21]),L[new Date("1970-01-01T08:15:23.000+08:15")/1E3])(L[0],L[29]),L[19])((0,L[23])(L[68],L[1]),L[31],L[11]),L[23])(L[68],L[53]),0))&&(((0,L[1+new Date("1969-12-31T22:45:33.000-01:15")/1E3*-136- -4528])(L[63],L[82]),L[27])(L[63],L[5]),(0,L[38])((0,L[46])(L[87],L[68]),L[1],L[63],L[21]),L[47])(L[63],L[74]),L[10]<2&&(L[22]>1||(((((0,L[67])((0,L[34])((0,L[31])(),
L[59],L[33]),L[75],L[15],L[70]),L[new Date("1970-01-01T04:00:34.000+04:00")/1E3])((0,L[16])(),L[59],L[33]),L[75])(L[15],L[35]),(0,L[67])((0,L[71])(L[15],L[58]),L[71],L[15],L[44]),L[34])((0,L[83])(),L[63],L[33]),void 0))&&(0,L[6])(L[47],(0,L[75])(L[62],L[24]),(((0,L[38])(L[53],L[71]),L[70])((0,L[35])(L[26],L[69]),L[74],L[66],L[13]),L[35])(L[26],L[14]),(0,L[4])(L[66],L[49]),L[65],L[48]),(L[74]>-1||((0,L[15])(L[87]),NaN))&&(0,L[71])(L[39],L[0]),(L[72]<3||((0,L[3])((0,L[58])((0,L[55])(),L[39],L[57]),
L[7],L[47],L[79]),""))&&(0,L[3])((0,L[71])(L[52],L[22]),L[81],L[34],L[33]),L[82]!=204-new Date("1969-12-31T19:48:30.000-04:15")/1E3%7776&&(L[33]>-5&&((0,L[63])(L[43]),1)||(0,L[63])(L[7])),L[80]<6?(0,L[51])((((0,L[52])(L[47]),L[55])(L[43],L[38]),(0,L[31])(L[87],L[34]),(0,L[63])(L[46]),L[55])(L[43],L[41]),L[16],L[12],L[27]):(0,L[78])(L[63],(0,L[31])(L[87],L[76]),(0,L[51])((0,L[59])(L[7],L[23]),L[11],L[1428+new Date("1970-01-01T03:36:47.000+04:00")/1E3]),(0,L[87])((0,L[67])(L[35],L[60]),L[7],L[79],L[28]),
L[83]),L[22]!=-3&&(L[33]>=10?(0,L[52])(L[79],L[50]):(0,L[52])(L[83],L[81]))}}catch(Z){return"uMbfh59ct8wpJ0B2-L-_w8_"+u}return h.join("")};
VmV=function(u){return u,"application/json"[10+!!u]};
g.vn=function(u){this.name=u};
nZf=function(u){this.Mp=UY(u)};
qH=function(u){this.Mp=UY(u)};
T6=function(u){this.Mp=UY(u)};
suR=function(u){this.Mp=UY(u)};
YB=function(u){this.Mp=UY(u)};
ow=function(u){this.Mp=UY(u)};
NH=function(u){this.Mp=UY(u)};
UC=function(u){this.Mp=UY(u)};
G6=function(u){this.Mp=UY(u)};
Hn=function(u){this.Mp=UY(u)};
rv=function(u){this.Mp=UY(u)};
Bn=function(u){this.Mp=UY(u)};
z6=function(u){this.Mp=UY(u)};
mJ=function(u){this.Mp=UY(u)};
nI=function(u){this.Mp=UY(u)};
sC=function(u){this.Mp=UY(u,500)};
wv=function(u){this.Mp=UY(u)};
ev=function(u){this.Mp=UY(u)};
wZR=function(u){this.Mp=UY(u)};
ejj=function(){return g.wn("yt.ads.biscotti.lastId_")||""};
aVl=function(u){g.nV("yt.ads.biscotti.lastId_",u)};
$B=function(){var u=arguments,h=aw;u.length>1?h[u[0]]=u[1]:u.length===1&&Object.assign(h,u[0])};
g.tn=function(u,h){return u in aw?aw[u]:h};
Wn=function(u){var h=aw.EXPERIMENT_FLAGS;return h?h[u]:void 0};
$Bs=function(u){FB.forEach(function(h){return h(u)})};
g.EC=function(u){return u&&window.yterr?function(){try{return u.apply(this,arguments)}catch(h){g.bU(h)}}:u};
g.bU=function(u){var h=g.wn("yt.logging.errors.log");h?h(u,"ERROR",void 0,void 0,void 0,void 0,void 0):(h=g.tn("ERRORS",[]),h.push([u,"ERROR",void 0,void 0,void 0,void 0,void 0]),$B("ERRORS",h));$Bs(u)};
kB=function(u,h,L,Z,y){var R=g.wn("yt.logging.errors.log");R?R(u,"WARNING",h,L,Z,void 0,y):(R=g.tn("ERRORS",[]),R.push([u,"WARNING",h,L,Z,void 0,y]),$B("ERRORS",R))};
gv=function(u,h){h=u.split(h);for(var L={},Z=0,y=h.length;Z<y;Z++){var R=h[Z].split("=");if(R.length===1&&R[0]||R.length===2)try{var p=tml(R[0]||""),J=tml(R[1]||"");if(p in L){var O=L[p];Array.isArray(O)?g.Lw(O,J):L[p]=[O,J]}else L[p]=J}catch(I){var f=I,D=R[0],c=String(gv);f.args=[{key:D,value:R[1],query:u,method:WWn===c?"unchanged":c}];FWi.hasOwnProperty(D)||kB(f)}}return L};
uA=function(u){var h=[];g.PM(u,function(L,Z){var y=g.Wo(Z);g.A8(Array.isArray(L)?L:[L],function(R){R==""?h.push(y):h.push(y+"="+g.Wo(R))})});
return h.join("&")};
jp=function(u){u.charAt(0)==="?"&&(u=u.substring(1));return gv(u,"&")};
h5=function(u){return u.split(",").map(function(h){return jp(h)})};
g.LP=function(u){return u.indexOf("?")!==-1?(u=(u||"").split("#")[0],u=u.split("?",2),jp(u.length>1?u[1]:u[0])):{}};
Zl=function(u,h){return bNa(u,h||{},!0)};
ya=function(u,h){return bNa(u,h||{},!1)};
bNa=function(u,h,L){var Z=u.split("#",2);u=Z[0];Z=Z.length>1?"#"+Z[1]:"";var y=u.split("?",2);u=y[0];y=jp(y[1]||"");for(var R in h)if(L||!g.Xl(y,R))y[R]=h[R];return g.sr(u,y)+Z};
RJ=function(u){if(!h)var h=window.location.href;var L=g.ru(1,u),Z=g.BY(u);L&&Z?(u=u.match(Ur),h=h.match(Ur),u=u[3]==h[3]&&u[1]==h[1]&&u[4]==h[4]):u=Z?g.BY(h)===Z&&(Number(g.ru(4,h))||null)===(Number(g.ru(4,u))||null):!0;return u};
pP=function(u){u||(u=document.location.href);u=g.ru(1,u);return u!==null&&u==="https"};
KP=function(u){u=EZn(u);return u===null?!1:u[0]==="com"&&u[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
kHn=function(u){u=EZn(u);return u===null?!1:u[1]==="google"?!0:u[2]==="google"?u[0]==="au"&&u[1]==="com"?!0:u[0]==="uk"&&u[1]==="co"?!0:!1:!1};
EZn=function(u){u=g.BY(u);return u!==null?u.split(".").reverse():null};
tml=function(u){return u&&u.match(gZn)?u:F7(u)};
fP=function(u){var h=J5;u=u===void 0?ejj():u;var L=Object,Z=L.assign,y=OJ(h);var R=h.G;try{var p=R.screenX;var J=R.screenY}catch(v){}try{var O=R.outerWidth;var f=R.outerHeight}catch(v){}try{var D=R.innerWidth;var c=R.innerHeight}catch(v){}try{var I=R.screenLeft;var A=R.screenTop}catch(v){}try{D=R.innerWidth,c=R.innerHeight}catch(v){}try{var x=R.screen.availWidth;var Q=R.screen.availTop}catch(v){}R=[I,A,p,J,x,Q,O,f,D,c];p=Cv1(!1,h.G.top);J={};var S=S===void 0?g.Vn:S;O=new w3;"SVGElement"in S&&"createElementNS"in
S.document&&O.set(0);f=UEj();f["allow-top-navigation-by-user-activation"]&&O.set(1);f["allow-popups-to-escape-sandbox"]&&O.set(2);S.crypto&&S.crypto.subtle&&O.set(3);"TextDecoder"in S&&"TextEncoder"in S&&O.set(4);S=YzL(O);h=(J.bc=S,J.bih=p.height,J.biw=p.width,J.brdim=R.join(),J.vis=AA(h.N),J.wgl=!!Da.WebGLRenderingContext,J);L=Z.call(L,y,h);L.ca_type="image";u&&(L.bid=u);return L};
OJ=function(u){var h={};h.dt=uQf;h.flash="0";a:{try{var L=u.G.top.location.href}catch(D){u=2;break a}u=L?L===u.N.location.href?0:1:2}h=(h.frm=u,h);try{h.u_tz=-(new Date).getTimezoneOffset();var Z=Z===void 0?Da:Z;try{var y=Z.history.length}catch(D){y=0}h.u_his=y;var R;h.u_h=(R=Da.screen)==null?void 0:R.height;var p;h.u_w=(p=Da.screen)==null?void 0:p.width;var J;h.u_ah=(J=Da.screen)==null?void 0:J.availHeight;var O;h.u_aw=(O=Da.screen)==null?void 0:O.availWidth;var f;h.u_cd=(f=Da.screen)==null?void 0:
f.colorDepth}catch(D){}return h};
hGj=function(){if(!jgf)return null;var u=jgf();return"open"in u?u:null};
g.cS=function(u){switch(Dl(u)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
Dl=function(u){return u&&"status"in u?u.status:-1};
g.IJ=function(u,h){typeof u==="function"&&(u=g.EC(u));return window.setTimeout(u,h)};
g.A5=function(u,h){typeof u==="function"&&(u=g.EC(u));return window.setInterval(u,h)};
g.x7=function(u){window.clearTimeout(u)};
g.PS=function(u){window.clearInterval(u)};
g.MI=function(u){u=CP(u);return typeof u==="string"&&u==="false"?!1:!!u};
g.iA=function(u,h){u=CP(u);return u===void 0&&h!==void 0?h:Number(u||0)};
Qa=function(){return g.tn("EXPERIMENTS_TOKEN","")};
CP=function(u){return g.tn("EXPERIMENT_FLAGS",{})[u]};
lA=function(){for(var u=[],h=g.tn("EXPERIMENTS_FORCED_FLAGS",{}),L=g.C(Object.keys(h)),Z=L.next();!Z.done;Z=L.next())Z=Z.value,u.push({key:Z,value:String(h[Z])});L=g.tn("EXPERIMENT_FLAGS",{});Z=g.C(Object.keys(L));for(var y=Z.next();!y.done;y=Z.next())y=y.value,y.startsWith("force_")&&h[y]===void 0&&u.push({key:y,value:String(L[y])});return u};
Sp=function(u,h,L,Z,y,R,p,J){function O(){(f&&"readyState"in f?f.readyState:0)===4&&h&&g.EC(h)(f)}
L=L===void 0?"GET":L;Z=Z===void 0?"":Z;J=J===void 0?!1:J;var f=hGj();if(!f)return null;"onloadend"in f?f.addEventListener("loadend",O,!1):f.onreadystatechange=O;g.MI("debug_forward_web_query_parameters")&&(u=LcV(u,window.location.search));f.open(L,u,!0);R&&(f.responseType=R);p&&(f.withCredentials=!0);L=L==="POST"&&(window.FormData===void 0||!(Z instanceof FormData));if(y=Z5R(u,y))for(var D in y)f.setRequestHeader(D,y[D]),"content-type"===D.toLowerCase()&&(L=!1);L&&f.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");if(J&&"setAttributionReporting"in XMLHttpRequest.prototype){u={eventSourceEligible:!0,triggerEligible:!1};try{f.setAttributionReporting(u)}catch(c){kB(c)}}f.send(Z);return f};
Z5R=function(u,h){h=h===void 0?{}:h;var L=RJ(u),Z=g.tn("INNERTUBE_CLIENT_NAME"),y=g.MI("web_ajax_ignore_global_headers_if_set"),R;for(R in yKR){var p=g.tn(yKR[R]),J=R==="X-Goog-AuthUser"||R==="X-Goog-PageId";R!=="X-Goog-Visitor-Id"||p||(p=g.tn("VISITOR_DATA"));var O;if(!(O=!p)){if(!(O=L||(g.BY(u)?!1:!0))){O=u;var f;if(f=g.MI("add_auth_headers_to_remarketing_google_dot_com_ping")&&R==="Authorization"&&(Z==="TVHTML5"||Z==="TVHTML5_UNPLUGGED"||Z==="TVHTML5_SIMPLY")&&kHn(O))O=NE(g.ru(5,O))||"",O=O.split("/"),
O="/"+(O.length>1?O[1]:""),f=O==="/pagead";O=f?!0:!1}O=!O}O||y&&h[R]!==void 0||Z==="TVHTML5_UNPLUGGED"&&J||(h[R]=p)}"X-Goog-EOM-Visitor-Id"in h&&"X-Goog-Visitor-Id"in h&&delete h["X-Goog-Visitor-Id"];if(L||!g.BY(u))h["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(L||!g.BY(u)){try{var D=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(c){}D&&(h["X-YouTube-Time-Zone"]=D)}document.location.hostname.endsWith("youtubeeducation.com")||!L&&g.BY(u)||(h["X-YouTube-Ad-Signals"]=
uA(fP()));return h};
pdj=function(u,h){var L=g.BY(u);g.MI("debug_handle_relative_url_for_query_forward_killswitch")||!L&&RJ(u)&&(L=document.location.hostname);var Z=NE(g.ru(5,u));Z=(L=L&&(L.endsWith("youtube.com")||L.endsWith("youtube-nocookie.com")))&&Z&&Z.startsWith("/api/");if(!L||Z)return u;var y=jp(h),R={};g.A8(RGa,function(p){y[p]&&(R[p]=y[p])});
return ya(u,R)};
vS=function(u,h){h.method="POST";h.postParams||(h.postParams={});return g.XI(u,h)};
O5V=function(u,h){if(window.fetch&&h.format!=="XML"){var L={method:h.method||"GET",credentials:"same-origin"};h.headers&&(L.headers=h.headers);h.priority&&(L.priority=h.priority);u=Kcf(u,h);var Z=JKn(u,h);Z&&(L.body=Z);h.withCredentials&&(L.credentials="include");var y=h.context||g.Vn,R=!1,p;fetch(u,L).then(function(J){if(!R){R=!0;p&&g.x7(p);var O=J.ok,f=function(D){D=D||{};O?h.onSuccess&&h.onSuccess.call(y,D,J):h.onError&&h.onError.call(y,D,J);h.onFinish&&h.onFinish.call(y,D,J)};
(h.format||"JSON")==="JSON"&&(O||J.status>=400&&J.status<500)?J.json().then(f,function(){f(null)}):f(null)}}).catch(function(){h.onError&&h.onError.call(y,{},{})});
u=h.timeout||0;h.onFetchTimeout&&u>0&&(p=g.IJ(function(){R||(R=!0,g.x7(p),h.onFetchTimeout.call(h.context||g.Vn))},u))}else g.XI(u,h)};
g.XI=function(u,h){var L=h.format||"JSON";u=Kcf(u,h);var Z=JKn(u,h),y=!1,R=f8R(u,function(O){if(!y){y=!0;J&&g.x7(J);var f=g.cS(O),D=null,c=400<=O.status&&O.status<500,I=500<=O.status&&O.status<600;if(f||c||I)D=DgR(u,L,O,h.convertToSafeHtml);f&&(f=cKl(L,O,D));D=D||{};c=h.context||g.Vn;f?h.onSuccess&&h.onSuccess.call(c,O,D):h.onError&&h.onError.call(c,O,D);h.onFinish&&h.onFinish.call(c,O,D)}},h.method,Z,h.headers,h.responseType,h.withCredentials);
Z=h.timeout||0;if(h.onTimeout&&Z>0){var p=h.onTimeout;var J=g.IJ(function(){y||(y=!0,R.abort(),g.x7(J),p.call(h.context||g.Vn,R))},Z)}return R};
Kcf=function(u,h){h.includeDomain&&(u=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+u);var L=g.tn("XSRF_FIELD_NAME");if(h=h.urlParams)h[L]&&delete h[L],u=Zl(u,h);return u};
JKn=function(u,h){var L=g.tn("XSRF_FIELD_NAME"),Z=g.tn("XSRF_TOKEN"),y=h.postBody||"",R=h.postParams,p=g.tn("XSRF_FIELD_NAME"),J;h.headers&&(J=h.headers["Content-Type"]);h.excludeXsrf||g.BY(u)&&!h.withCredentials&&g.BY(u)!==document.location.hostname||h.method!=="POST"||J&&J!=="application/x-www-form-urlencoded"||h.postParams&&h.postParams[p]||(R||(R={}),R[L]=Z);(g.MI("ajax_parse_query_data_only_when_filled")&&R&&Object.keys(R).length>0||R)&&typeof y==="string"&&(y=jp(y),g.Gc(y,R),y=h.postBodyFormat&&
h.postBodyFormat==="JSON"?JSON.stringify(y):g.nv(y));R=y||R&&!g.Tc(R);!I8n&&R&&h.method!=="POST"&&(I8n=!0,g.bU(Error("AJAX request with postData should use POST")));return y};
DgR=function(u,h,L,Z){var y=null;switch(h){case "JSON":try{var R=L.responseText}catch(p){throw Z=Error("Error reading responseText"),Z.params=u,kB(Z),p;}u=L.getResponseHeader("Content-Type")||"";R&&u.indexOf("json")>=0&&(R.substring(0,5)===")]}'\n"&&(R=R.substring(5)),y=JSON.parse(R));break;case "XML":if(u=(u=L.responseXML)?AKn(u):null)y={},g.A8(u.getElementsByTagName("*"),function(p){y[p.tagName]=xgi(p)})}Z&&P8j(y);
return y};
P8j=function(u){if(g.Wi(u))for(var h in u)h==="html_content"||nb1(h,"_html")?u[h]=re(u[h]):P8j(u[h])};
cKl=function(u,h,L){if(h&&h.status===204)return!0;switch(u){case "JSON":return!!L;case "XML":return Number(L&&L.return_code)===0;case "RAW":return!0;default:return!!L}};
AKn=function(u){return u?(u=("responseXML"in u?u.responseXML:u).getElementsByTagName("root"))&&u.length>0?u[0]:null:null};
xgi=function(u){var h="";g.A8(u.childNodes,function(L){h+=L.nodeValue});
return h};
TT=function(u,h){var L=g.No(h),Z;return(new g.IT(function(y,R){L.onSuccess=function(p){g.cS(p)?y(new C8Y(p)):R(new qI("Request failed, status="+Dl(p),"net.badstatus",p))};
L.onError=function(p){R(new qI("Unknown request error","net.unknown",p))};
L.onTimeout=function(p){R(new qI("Request timed out","net.timeout",p))};
Z=g.XI(u,L)})).R5(function(y){if(y instanceof iq){var R;
(R=Z)==null||R.abort()}return PY(y)})};
g.Y7=function(u,h,L,Z){function y(J,O,f){return J.R5(function(D){if(O<=0||Dl(D.xhr)===403)return PY(new qI("Request retried too many times","net.retryexhausted",D.xhr,D));D=Math.pow(2,L-O+1)*f;var c=p>0?Math.min(p,D):D;return R(f).then(function(){return y(TT(u,h),O-1,c)})})}
function R(J){return new g.IT(function(O){setTimeout(O,J)})}
var p=p===void 0?-1:p;return y(TT(u,h),L-1,Z)};
qI=function(u,h,L){Cq.call(this,u+", errorCode="+h);this.errorCode=h;this.xhr=L;this.name="PromiseAjaxError"};
C8Y=function(u){this.xhr=u};
oJ=function(u){this.G=u===void 0?null:u;this.X=0;this.N=null};
NI=function(u){var h=new oJ;u=u===void 0?null:u;h.X=2;h.N=u===void 0?null:u;return h};
UJ=function(u){var h=new oJ;u=u===void 0?null:u;h.X=1;h.N=u===void 0?null:u;return h};
g.rg=function(u,h,L,Z,y){GT||HS.set(""+u,h,{k$:L,path:"/",domain:Z===void 0?"youtube.com":Z,secure:y===void 0?!1:y})};
g.BS=function(u,h){if(!GT)return HS.get(""+u,h)};
g.zT=function(u,h,L){GT||HS.remove(""+u,h===void 0?"/":h,L===void 0?"youtube.com":L)};
MBj=function(){if(g.MI("embeds_web_enable_cookie_detection_fix")){if(!g.Vn.navigator.cookieEnabled)return!1}else if(!HS.isEnabled())return!1;if(!HS.isEmpty())return!0;g.MI("embeds_web_enable_cookie_detection_fix")?HS.set("TESTCOOKIESENABLED","1",{k$:60,w_d:"none",secure:!0}):HS.set("TESTCOOKIESENABLED","1",{k$:60});if(HS.get("TESTCOOKIESENABLED")!=="1")return!1;HS.remove("TESTCOOKIESENABLED");return!0};
g.n=function(u,h){if(u)return u[h.name]};
mi=function(u){var h=g.tn("INNERTUBE_HOST_OVERRIDE");h&&(u=String(h)+String(zq(u)));return u};
i5f=function(u){var h={};g.MI("json_condensed_response")&&(h.prettyPrint="false");return u=ya(u,h)};
dg=function(u,h){var L=L===void 0?{}:L;u={method:h===void 0?"POST":h,mode:RJ(u)?"same-origin":"cors",credentials:RJ(u)?"same-origin":"include"};h={};for(var Z=g.C(Object.keys(L)),y=Z.next();!y.done;y=Z.next())y=y.value,L[y]&&(h[y]=L[y]);Object.keys(h).length>0&&(u.headers=h);return u};
Va=function(){var u=/Chrome\/(\d+)/.exec(g.N7());return u?parseFloat(u[1]):NaN};
sJ=function(){return g.nP("android")&&g.nP("chrome")&&!(g.nP("trident/")||g.nP("edge/"))&&!g.nP("cobalt")};
QgL=function(){return g.nP("armv7")||g.nP("aarch64")||g.nP("android")};
g.wg=function(){return g.nP("cobalt")};
ep=function(){return g.nP("cobalt")&&g.nP("appletv")};
aJ=function(){return g.nP("(ps3; leanback shell)")||g.nP("ps3")&&g.wg()};
l8V=function(){return g.nP("(ps4; leanback shell)")||g.nP("ps4")&&g.wg()};
g.SMe=function(){return g.wg()&&(g.nP("ps4 vr")||g.nP("ps4 pro vr"))};
$7=function(){var u=/WebKit\/([0-9]+)/.exec(g.N7());return!!(u&&parseInt(u[1],10)>=600)};
t5=function(){var u=/WebKit\/([0-9]+)/.exec(g.N7());return!!(u&&parseInt(u[1],10)>=602)};
Xdb=function(){return g.nP("iemobile")||g.nP("windows phone")&&g.nP("edge")};
bA=function(){return(WS||FI)&&g.nP("applewebkit")&&!g.nP("version")&&(!g.nP("safari")||g.nP("gsa/"))};
k7=function(){return g.EJ&&g.nP("version/")};
gg=function(){return g.nP("smart-tv")&&g.nP("samsung")};
g.nP=function(u){var h=g.N7();return h?h.toLowerCase().indexOf(u)>=0:!1};
uw=function(){return ntb()||bA()||k7()?!0:g.tn("EOM_VISITOR_DATA")?!1:!0};
jt=function(u,h){return h===void 0||h===null?u:h==="1"||h===!0||h===1||h==="True"?!0:!1};
h2=function(u,h,L){for(var Z in L)if(L[Z]==h)return L[Z];return u};
LF=function(u,h){return h===void 0||h===null?u:Number(h)};
ZD=function(u,h){return h===void 0||h===null?u:h.toString()};
yl=function(u,h){if(h){if(u==="fullwidth")return Infinity;if(u==="fullheight")return 0}return u&&(h=u.match(vKY))&&(u=Number(h[2]),h=Number(h[1]),!isNaN(u)&&!isNaN(h)&&u>0)?h/u:NaN};
RO=function(u){var h=u.docid||u.video_id||u.videoId||u.id;if(h)return h;h=u.raw_player_response;h||(u=u.player_response)&&(h=JSON.parse(u));return h&&h.videoDetails&&h.videoDetails.videoId||null};
qMl=function(u){return pF(u,!1)==="EMBEDDED_PLAYER_MODE_PFL"};
g.KF=function(u){return u==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||u==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1};
pF=function(u,h){h=(h===void 0?0:h)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(h="EMBEDDED_PLAYER_MODE_PFL");var L=u.raw_embedded_player_response;if(!L&&(u=u.embedded_player_response))try{L=JSON.parse(u)}catch(Z){return h}return L?h2(h,L.embeddedPlayerMode,T3f):h};
OO=function(u){Cq.call(this,u.message||u.description||u.name);this.isMissing=u instanceof J2;this.isTimeout=u instanceof qI&&u.errorCode=="net.timeout";this.isCanceled=u instanceof iq};
J2=function(){Cq.call(this,"Biscotti ID is missing from server")};
YM1=function(){if(g.MI("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!uw())return Error("User has not consented - not fetching biscotti id.");var u=g.tn("PLAYER_VARS",{});if(g.YJ(u,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(qMl(u))return Error("Biscotti id fetching has been disabled for pfl.")};
Gfa=function(){var u=YM1();if(u!==void 0)return PY(u);fF||(fF=TT("//googleads.g.doubleclick.net/pagead/id",oKL).then(N3R).R5(function(h){return Ugb(2,h)}));
return fF};
N3R=function(u){u=u.xhr.responseText;if(!Sb(u,")]}'"))throw new J2;u=JSON.parse(u.substr(4));if((u.type||1)>1)throw new J2;u=u.id;aVl(u);fF=UJ(u);H51(18E5,2);return u};
Ugb=function(u,h){h=new OO(h);aVl("");fF=NI(h);u>0&&H51(12E4,u-1);throw h;};
H51=function(u,h){g.IJ(function(){TT("//googleads.g.doubleclick.net/pagead/id",oKL).then(N3R,function(L){return Ugb(h,L)}).R5(g.Or)},u)};
rKn=function(){try{var u=g.wn("yt.ads.biscotti.getId_");return u?u():Gfa()}catch(h){return PY(h)}};
zGi=function(u){u&&(u.dataset?u.dataset[B31()]="true":T$Y(u))};
mgf=function(u){return u?u.dataset?u.dataset[B31()]:u.getAttribute("data-loaded"):null};
B31=function(){return dgj.loaded||(dgj.loaded="loaded".replace(/\-([a-z])/g,function(u,h){return h.toUpperCase()}))};
VBn=function(){var u=document;if("visibilityState"in u)return u.visibilityState;var h=DD+"VisibilityState";if(h in u)return u[h]};
cD=function(u,h){var L;oS(u,function(Z){L=h[Z];return!!L});
return L};
IO=function(u){if(u.requestFullscreen)u=u.requestFullscreen(void 0);else if(u.webkitRequestFullscreen)u=u.webkitRequestFullscreen();else if(u.mozRequestFullScreen)u=u.mozRequestFullScreen();else if(u.msRequestFullscreen)u=u.msRequestFullscreen();else if(u.webkitEnterFullscreen)u=u.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return u instanceof Promise?u:Promise.resolve()};
PD=function(u){var h;g.A2()?x9()==u&&(h=document):h=u;return h&&(u=cD(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],h))?(h=u.call(h),h instanceof Promise?h:Promise.resolve()):Promise.resolve()};
nKL=function(u){return g.Fg(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(h){return"on"+h.toLowerCase()in u})};
sgj=function(){var u=document;return g.Fg(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(h){return"on"+h.toLowerCase()in u})};
g.A2=function(){return!!cD(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
x9=function(u){u=u===void 0?!1:u;var h=cD(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(u)for(;h&&h.shadowRoot;)h=h.shadowRoot.fullscreenElement;return h?h:null};
CF=function(u){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(u=u||window.event){this.event=u;for(var h in u)h in wdw||(this[h]=u[h]);this.scale=u.scale;this.rotation=u.rotation;var L=u.target||u.srcElement;L&&L.nodeType==3&&(L=L.parentNode);this.target=L;var Z=u.relatedTarget;
if(Z)try{Z=Z.nodeName?Z:null}catch(y){Z=null}else this.type=="mouseover"?Z=u.fromElement:this.type=="mouseout"&&(Z=u.toElement);this.relatedTarget=Z;this.clientX=u.clientX!=void 0?u.clientX:u.pageX;this.clientY=u.clientY!=void 0?u.clientY:u.pageY;this.keyCode=u.keyCode?u.keyCode:u.which;this.charCode=u.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=u.altKey;this.ctrlKey=u.ctrlKey;this.shiftKey=u.shiftKey;this.metaKey=u.metaKey;this.G=u.pageX;this.N=u.pageY}}catch(y){}};
eG1=function(u){if(document.body&&document.documentElement){var h=document.body.scrollTop+document.documentElement.scrollTop;u.G=u.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);u.N=u.clientY+h}};
a8b=function(u,h,L,Z){Z=Z===void 0?{}:Z;u.addEventListener&&(h!="mouseenter"||"onmouseenter"in document?h!="mouseleave"||"onmouseenter"in document?h=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(h="MozMousePixelScroll"):h="mouseout":h="mouseover");return qo(Mr,function(y){var R=typeof y[4]==="boolean"&&y[4]==!!Z,p=g.Wi(y[4])&&g.Wi(Z)&&g.oI(y[4],Z);return!!y.length&&y[0]==u&&y[1]==h&&y[2]==L&&(R||p)})};
g.iw=function(u,h,L,Z){Z=Z===void 0?{}:Z;if(!u||!u.addEventListener&&!u.attachEvent)return"";var y=a8b(u,h,L,Z);if(y)return y;y=++$gR.count+"";var R=!(h!="mouseenter"&&h!="mouseleave"||!u.addEventListener||"onmouseenter"in document);var p=R?function(J){J=new CF(J);if(!Rx(J.relatedTarget,function(O){return O==u},!0))return J.currentTarget=u,J.type=h,L.call(u,J)}:function(J){J=new CF(J);
J.currentTarget=u;return L.call(u,J)};
p=g.EC(p);u.addEventListener?(h=="mouseenter"&&R?h="mouseover":h=="mouseleave"&&R?h="mouseout":h=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(h="MozMousePixelScroll"),tBn()||typeof Z==="boolean"?u.addEventListener(h,p,Z):u.addEventListener(h,p,!!Z.capture)):u.attachEvent("on"+h,p);Mr[y]=[u,h,L,p,Z];return y};
FcY=function(u){return Wcn(u,function(h){return g.Zx(h,"ytp-ad-has-logging-urls")})};
Wcn=function(u,h){var L=document.body||document;return g.iw(L,"click",function(Z){var y=Rx(Z.target,function(R){return R===L||h(R)},!0);
y&&y!==L&&!y.disabled&&(Z.currentTarget=y,u.call(y,Z))})};
g.Ql=function(u){u&&(typeof u=="string"&&(u=[u]),g.A8(u,function(h){if(h in Mr){var L=Mr[h],Z=L[0],y=L[1],R=L[3];L=L[4];Z.removeEventListener?tBn()||typeof L==="boolean"?Z.removeEventListener(y,R,L):Z.removeEventListener(y,R,!!L.capture):Z.detachEvent&&Z.detachEvent("on"+y,R);delete Mr[h]}}))};
lw=function(u){for(var h in Mr)Mr[h][0]==u&&g.Ql(h)};
St=function(u){u=u||window.event;var h;u.composedPath&&typeof u.composedPath==="function"?h=u.composedPath():h=u.path;h&&h.length?u=h[0]:(u=u||window.event,u=u.target||u.srcElement,u.nodeType==3&&(u=u.parentNode));return u};
XA=function(u){this.V=u;this.G=null;this.B=0;this.C=null;this.T=0;this.N=[];for(u=0;u<4;u++)this.N.push(0);this.X=0;this.RH=g.iw(window,"mousemove",(0,g.Ej)(this.Y,this));this.S=g.A5((0,g.Ej)(this.AB,this),25)};
vD=function(u){g.m.call(this);this.V=[];this.vJ=u||this};
qr=function(u,h,L,Z){for(var y=0;y<L.length;y++)u.W(h,L[y],Z)};
g.Tj=function(u,h){for(;u.V.length;){var L=u.V.pop(),Z=void 0;h&&b5V()&&(Z={passive:!0});L.target.removeEventListener(L.name,L.callback,Z)}};
Y9=function(u){u=u||{};var h={},L={};this.url=u.url||"";this.args=u.args||g.No(h);this.assets=u.assets||{};this.attrs=u.attrs||g.No(L);this.fallback=u.fallback||null;this.fallbackMessage=u.fallbackMessage||null;this.html5=!!u.html5;this.disable=u.disable||{};this.loaded=!!u.loaded;this.messages=u.messages||{}};
EKR=function(u){u instanceof Y9||(u=new Y9(u));return u};
g.UO=function(u,h,L){var Z=L&&L>0?L:0;L=Z?Date.now()+Z*1E3:0;if((Z=Z?(0,g.oO)():Nr())&&window.JSON){typeof h!=="string"&&(h=JSON.stringify(h,void 0));try{Z.set(u,h,L)}catch(y){Z.remove(u)}}};
g.Gj=function(u){var h=Nr(),L=(0,g.oO)();if(!h&&!L||!window.JSON)return null;try{var Z=h.get(u)}catch(y){}if(typeof Z!=="string")try{Z=L.get(u)}catch(y){}if(typeof Z!=="string")return null;try{Z=JSON.parse(Z,void 0)}catch(y){}return Z};
kfj=function(){var u=(0,g.oO)();if(u&&(u=u.N("yt-player-quality")))return u.creation};
g.HD=function(u){try{var h=Nr(),L=(0,g.oO)();h&&h.remove(u);L&&L.remove(u)}catch(Z){}};
g.rN=function(){return g.Gj("yt-remote-session-screen-id")};
gKV=function(u){var h=this;this.N=void 0;this.G=!1;u.addEventListener("beforeinstallprompt",function(L){L.preventDefault();h.N=L});
u.addEventListener("appinstalled",function(){h.G=!0},{once:!0})};
BD=function(){if(!g.Vn.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Vn.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Vn.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Vn.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Vn.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(u){return"WEB_DISPLAY_MODE_UNKNOWN"}};
zj=function(){this.cA=!0};
uLb=function(){zj.instance||(zj.instance=new zj);return zj.instance};
jHs=function(u){switch(u){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}};
huj=function(){this.G=g.tn("ALT_PREF_COOKIE_NAME","PREF");this.N=g.tn("ALT_PREF_COOKIE_DOMAIN","youtube.com");var u=g.BS(this.G);u&&this.parse(u)};
g.dN=function(){mY||(mY=new huj);return mY};
g.Vl=function(u,h){return!!((LXn("f"+(Math.floor(h/31)+1))||0)&1<<h%31)};
sO=function(u,h){var L="f"+(Math.floor(u/31)+1);u=1<<u%31;var Z=LXn(L)||0;Z=h?Z|u:Z&~u;Z===0?delete nF[L]:(h=Z.toString(16),nF[L]=h.toString())};
wN=function(u){if(/^f([1-9][0-9]*)$/.test(u))throw Error("ExpectedRegexMatch: "+u);};
et=function(u){if(!/^\w+$/.test(u))throw Error("ExpectedRegexMismatch: "+u);};
LXn=function(u){u=nF[u]!==void 0?nF[u].toString():null;return u!=null&&/^[A-Fa-f0-9]+$/.test(u)?parseInt(u,16):null};
Zcn=function(){var u=g.Vn.navigator;return u?u.connection:void 0};
RuV=function(){var u=Zcn();if(u){var h=yWl[u.type||"unknown"]||"CONN_UNKNOWN";u=yWl[u.effectiveType||"unknown"]||"CONN_UNKNOWN";h==="CONN_CELLULAR_UNKNOWN"&&u!=="CONN_UNKNOWN"&&(h=u);if(h!=="CONN_UNKNOWN")return h;if(u!=="CONN_UNKNOWN")return u}};
KXi=function(){var u=Zcn();if(u!=null&&u.effectiveType)return pxL.hasOwnProperty(u.effectiveType)?pxL[u.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
g.aO=function(u){var h=g.NL.apply(1,arguments);var L=Error.call(this,u);this.message=L.message;"stack"in L&&(this.stack=L.stack);this.args=[].concat(g.l(h))};
g.t2=function(){try{return g.$9(),!0}catch(u){return!1}};
g.$9=function(u){if(g.tn("DATASYNC_ID")!==void 0)return g.tn("DATASYNC_ID");throw new g.aO("Datasync ID not set",u===void 0?"unknown":u);};
WD=function(){this.G=new WeakMap};
g.bw=function(u,h,L){return FA(h,0,L)};
JWL=function(u){var h=g.wn("yt.scheduler.instance.addImmediateJob");h?h(u):u()};
EO=function(){WD.apply(this,arguments)};
g.k9=function(){EO.instance||(EO.instance=new EO);return EO.instance};
g.gN=function(){return!!g.wn("yt.scheduler.instance")};
FA=function(u,h,L){L!==void 0&&Number.isNaN(Number(L))&&(L=void 0);var Z=g.wn("yt.scheduler.instance.addJob");return Z?Z(u,h,L):L===void 0?(u(),NaN):g.IJ(u,L||0)};
ux=function(u,h){(u=g.wn("yt.scheduler.instance.setPriorityThreshold"))&&u(h)};
jF=function(u){this.G=(u=g.Bx(u))?new Yc(u):null;this.N=document.domain||window.location.hostname};
LM=function(){var u;return(u=hv())==null?void 0:u.get("LAST_RESULT_ENTRY_KEY",!0)};
OcY=function(){var u={};for(Z3=new y3(u.handleError===void 0?Ri:u.handleError,u.logEvent===void 0?g.pM:u.logEvent);KM.length>0;)switch(u=KM.shift(),u.type){case "ERROR":Z3.zz(u.payload);break;case "EVENT":Z3.logEvent(u.eventType,u.payload)}};
OW=function(u){Jv||(Z3?Z3.zz(u):(KM.push({type:"ERROR",payload:u}),KM.length>10&&KM.shift()))};
fM=function(u,h){Jv||(Z3?Z3.logEvent(u,h):(KM.push({type:"EVENT",eventType:u,payload:h}),KM.length>10&&KM.shift()))};
D3=function(u){if(u.indexOf(":")>=0)throw Error("Database name cannot contain ':'");};
cC=function(u){return u.substr(0,u.indexOf(":"))||u};
g.Ii=function(u,h,L,Z,y){h=h===void 0?{}:h;L=L===void 0?fxf[u]:L;Z=Z===void 0?D0n[u]:Z;y=y===void 0?cWn[u]:y;g.aO.call(this,L,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:u},h));this.type=u;this.message=L;this.level=Z;this.G=y;Object.setPrototypeOf(this,g.Ii.prototype)};
Av=function(u,h){g.Ii.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:h,foundObjectStores:u},fxf.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Av.prototype)};
xw=function(u,h){var L=Error.call(this);this.message=L.message;"stack"in L&&(this.stack=L.stack);this.index=u;this.objectStore=h;Object.setPrototypeOf(this,xw.prototype)};
CM=function(u,h,L,Z){h=cC(h);var y=u instanceof Error?u:Error("Unexpected error: "+u);if(y instanceof g.Ii)return y;u={objectStoreNames:L,dbName:h,dbVersion:Z};if(y.name==="QuotaExceededError")return new g.Ii("QUOTA_EXCEEDED",u);if(g.PC&&y.name==="UnknownError")return new g.Ii("QUOTA_MAYBE_EXCEEDED",u);if(y instanceof xw)return new g.Ii("MISSING_INDEX",Object.assign({},u,{objectStore:y.objectStore,index:y.index}));if(y.name==="InvalidStateError"&&Ixb.some(function(R){return y.message.includes(R)}))return new g.Ii("EXECUTE_TRANSACTION_ON_CLOSED_DB",
u);
if(y.name==="AbortError")return new g.Ii("UNKNOWN_ABORT",u,y.message);y.args=[Object.assign({},u,{name:"IdbError",OJ:y.name})];y.level="WARNING";return y};
g.Mp=function(u,h,L){var Z=LM();return new g.Ii("IDB_NOT_SUPPORTED",{context:{caller:u,publicName:h,version:L,hasSucceededOnce:Z==null?void 0:Z.hasSucceededOnce}})};
AWf=function(u){if(!u)throw Error();throw u;};
x0R=function(u){return u};
ix=function(u){this.G=u};
g.Q3=function(u){function h(y){if(Z.state.status==="PENDING"){Z.state={status:"REJECTED",reason:y};y=g.C(Z.N);for(var R=y.next();!R.done;R=y.next())R=R.value,R()}}
function L(y){if(Z.state.status==="PENDING"){Z.state={status:"FULFILLED",value:y};y=g.C(Z.G);for(var R=y.next();!R.done;R=y.next())R=R.value,R()}}
var Z=this;this.state={status:"PENDING"};this.G=[];this.N=[];u=u.G;try{u(L,h)}catch(y){h(y)}};
P6e=function(u,h,L,Z,y){try{if(u.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var R=L(u.state.value);R instanceof g.Q3?lx(u,h,R,Z,y):Z(R)}catch(p){y(p)}};
C6a=function(u,h,L,Z,y){try{if(u.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var R=L(u.state.reason);R instanceof g.Q3?lx(u,h,R,Z,y):Z(R)}catch(p){y(p)}};
lx=function(u,h,L,Z,y){h===L?y(new TypeError("Circular promise chain detected.")):L.then(function(R){R instanceof g.Q3?lx(u,h,R,Z,y):Z(R)},function(R){y(R)})};
Mzs=function(u,h,L){function Z(){L(u.error);R()}
function y(){h(u.result);R()}
function R(){try{u.removeEventListener("success",y),u.removeEventListener("error",Z)}catch(p){}}
u.addEventListener("success",y);u.addEventListener("error",Z)};
icn=function(u){return new Promise(function(h,L){Mzs(u,h,L)})};
SF=function(u){return new g.Q3(new ix(function(h,L){Mzs(u,h,L)}))};
XU=function(u,h){return new g.Q3(new ix(function(L,Z){function y(){var R=u?h(u):null;R?R.then(function(p){u=p;y()},Z):L()}
y()}))};
QHf=function(u,h){this.request=u;this.cursor=h};
lxn=function(u){return SF(u).then(function(h){return h?new QHf(u,h):null})};
g.ScV=function(u){u.cursor.continue(void 0);return lxn(u.request)};
XxV=function(u,h){this.G=u;this.options=h;this.transactionCount=0;this.X=Math.round((0,g.vC)());this.N=!1};
g.Tr=function(u,h,L){u=u.G.createObjectStore(h,L);return new qp(u)};
Yw=function(u,h){u.G.objectStoreNames.contains(h)&&u.G.deleteObjectStore(h)};
g.UW=function(u,h,L){return g.oi(u,[h],{mode:"readwrite",PJ:!0},function(Z){return g.Np(Z.objectStore(h),L)})};
g.oi=function(u,h,L,Z){var y,R,p,J,O,f,D,c,I,A,x,Q;return g.G(function(S){switch(S.G){case 1:var v={mode:"readonly",PJ:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof L==="string"?v.mode=L:Object.assign(v,L);y=v;u.transactionCount++;R=y.PJ?3:1;p=0;case 2:if(J){S.KI(4);break}p++;O=Math.round((0,g.vC)());g.Qn(S,5);f=u.G.transaction(h,y.mode);v=new Gr(f);v=vce(v,Z);return g.N(S,v,7);case 7:return D=S.N,c=Math.round((0,g.vC)()),qca(u,O,c,p,void 0,h.join(),y),S.return(D);case 5:I=g.Xf(S);A=Math.round((0,g.vC)());
x=CM(I,u.G.name,h.join(),u.G.version);if((Q=x instanceof g.Ii&&!x.G)||p>=R)qca(u,O,A,p,x,h.join(),y),J=x;S.KI(2);break;case 4:return S.return(Promise.reject(J))}})};
qca=function(u,h,L,Z,y,R,p){h=L-h;y?(y instanceof g.Ii&&(y.type==="QUOTA_EXCEEDED"||y.type==="QUOTA_MAYBE_EXCEEDED")&&fM("QUOTA_EXCEEDED",{dbName:cC(u.G.name),objectStoreNames:R,transactionCount:u.transactionCount,transactionMode:p.mode}),y instanceof g.Ii&&y.type==="UNKNOWN_ABORT"&&(L-=u.X,L<0&&L>=2147483648&&(L=0),fM("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:R,transactionDuration:h,transactionCount:u.transactionCount,dbDuration:L}),u.N=!0),Tls(u,!1,Z,R,h,p.tag),OW(y)):Tls(u,!0,Z,R,h,
p.tag)};
Tls=function(u,h,L,Z,y,R){fM("TRANSACTION_ENDED",{objectStoreNames:Z,connectionHasUnknownAbortedTransaction:u.N,duration:y,isSuccessful:h,tryCount:L,tag:R===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":R})};
qp=function(u){this.G=u};
g.HC=function(u,h,L){u.G.createIndex(h,L,{unique:!1})};
Ycw=function(u,h){return g.rc(u,{query:h},function(L){return L.delete().then(function(){return g.BC(L)})}).then(function(){})};
oca=function(u,h,L){var Z=[];return g.rc(u,{query:h},function(y){if(!(L!==void 0&&Z.length>=L))return Z.push(y.getValue()),g.BC(y)}).then(function(){return Z})};
U0i=function(u){return"getAllKeys"in IDBObjectStore.prototype?SF(u.G.getAllKeys(void 0,void 0)):Nlf(u)};
Nlf=function(u){var h=[];return g.G8f(u,{query:void 0},function(L){h.push(L.cursor.primaryKey);return g.ScV(L)}).then(function(){return h})};
g.Np=function(u,h,L){return SF(u.G.put(h,L))};
g.rc=function(u,h,L){u=u.G.openCursor(h.query,h.direction);return zr(u).then(function(Z){return XU(Z,L)})};
g.G8f=function(u,h,L){var Z=h.query;h=h.direction;u="openKeyCursor"in IDBObjectStore.prototype?u.G.openKeyCursor(Z,h):u.G.openCursor(Z,h);return lxn(u).then(function(y){return XU(y,L)})};
Gr=function(u){var h=this;this.G=u;this.X=new Map;this.N=!1;this.done=new Promise(function(L,Z){h.G.addEventListener("complete",function(){L()});
h.G.addEventListener("error",function(y){y.currentTarget===y.target&&Z(h.G.error)});
h.G.addEventListener("abort",function(){var y=h.G.error;if(y)Z(y);else if(!h.N){y=g.Ii;for(var R=h.G.objectStoreNames,p=[],J=0;J<R.length;J++){var O=R.item(J);if(O===null)throw Error("Invariant: item in DOMStringList is null");p.push(O)}y=new y("UNKNOWN_ABORT",{objectStoreNames:p.join(),dbName:h.G.db.name,mode:h.G.mode});Z(y)}})})};
vce=function(u,h){var L=new Promise(function(Z,y){try{h(u).then(function(R){Z(R)}).catch(y)}catch(R){y(R),u.abort()}});
return Promise.all([L,u.done]).then(function(Z){return g.C(Z).next().value})};
HcV=function(u){this.G=u};
rWe=function(u,h,L){var Z=[];return g.mm(u,{query:h},function(y){if(!(L!==void 0&&Z.length>=L))return Z.push(y.getValue()),g.BC(y)}).then(function(){return Z})};
g.mm=function(u,h,L){u=u.G.openCursor(h.query===void 0?null:h.query,h.direction===void 0?"next":h.direction);return zr(u).then(function(Z){return XU(Z,L)})};
dc=function(u,h){this.request=u;this.cursor=h};
zr=function(u){return SF(u).then(function(h){return h?new dc(u,h):null})};
g.BC=function(u){u.cursor.continue(void 0);return zr(u.request)};
Blw=function(u,h,L){return new Promise(function(Z,y){function R(){I||(I=new XxV(p.result,{closed:c}));return I}
var p=h!==void 0?self.indexedDB.open(u,h):self.indexedDB.open(u);var J=L.blocked,O=L.blocking,f=L.Ora,D=L.upgrade,c=L.closed,I;p.addEventListener("upgradeneeded",function(A){try{if(A.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(p.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");A.dataLoss&&A.dataLoss!=="none"&&fM("IDB_DATA_CORRUPTED",{reason:A.dataLossMessage||"unknown reason",dbName:cC(u)});var x=R(),Q=new Gr(p.transaction);
D&&D(x,function(S){return A.oldVersion<S&&A.newVersion>=S},Q);
Q.done.catch(function(S){y(S)})}catch(S){y(S)}});
p.addEventListener("success",function(){var A=p.result;O&&A.addEventListener("versionchange",function(){O(R())});
A.addEventListener("close",function(){fM("IDB_UNEXPECTEDLY_CLOSED",{dbName:cC(u),dbVersion:A.version});f&&f()});
Z(R())});
p.addEventListener("error",function(){y(p.error)});
J&&p.addEventListener("blocked",function(){J()})})};
zu1=function(u,h,L){L=L===void 0?{}:L;return Blw(u,h,L)};
V3=function(u,h){h=h===void 0?{}:h;var L,Z,y,R;return g.G(function(p){if(p.G==1)return g.Qn(p,2),L=self.indexedDB.deleteDatabase(u),Z=h,(y=Z.blocked)&&L.addEventListener("blocked",function(){y()}),g.N(p,icn(L),4);
if(p.G!=2)return g.Sa(p,0);R=g.Xf(p);throw CM(R,u,"",-1);})};
nM=function(u,h){this.name=u;this.options=h;this.X=!0;this.T=this.B=0};
m0l=function(u,h){return new g.Ii("INCOMPATIBLE_DB_VERSION",{dbName:u.name,oldVersion:u.options.version,newVersion:h})};
g.sW=function(u,h){if(!h)throw g.Mp("openWithToken",cC(u.name));return u.open()};
d0Y=function(u,h){var L;return g.G(function(Z){if(Z.G==1)return g.N(Z,g.sW(wc,h),2);L=Z.N;return Z.return(g.oi(L,["databases"],{PJ:!0,mode:"readwrite"},function(y){var R=y.objectStore("databases");return R.get(u.actualName).then(function(p){if(p?u.actualName!==p.actualName||u.publicName!==p.publicName||u.userIdentifier!==p.userIdentifier:1)return g.Np(R,u).then(function(){})})}))})};
eF=function(u,h){var L;return g.G(function(Z){if(Z.G==1)return u?g.N(Z,g.sW(wc,h),2):Z.return();L=Z.N;return Z.return(L.delete("databases",u))})};
Vze=function(u,h){var L,Z;return g.G(function(y){return y.G==1?(L=[],g.N(y,g.sW(wc,h),2)):y.G!=3?(Z=y.N,g.N(y,g.oi(Z,["databases"],{PJ:!0,mode:"readonly"},function(R){L.length=0;return g.rc(R.objectStore("databases"),{},function(p){u(p.getValue())&&L.push(p.getValue());return g.BC(p)})}),3)):y.return(L)})};
ncn=function(u,h){return Vze(function(L){return L.publicName===u&&L.userIdentifier!==void 0},h)};
sHf=function(){var u,h,L,Z;return g.G(function(y){switch(y.G){case 1:u=LM();if((h=u)==null?0:h.hasSucceededOnce)return y.return(!0);if(ai&&$7()&&!t5()||g.$w)return y.return(!1);try{if(L=self,!(L.indexedDB&&L.IDBIndex&&L.IDBKeyRange&&L.IDBObjectStore))return y.return(!1)}catch(R){return y.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return y.return(!1);g.Qn(y,2);Z={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.N(y,d0Y(Z,tv),4);case 4:return g.N(y,eF("yt-idb-test-do-not-use",tv),5);case 5:return y.return(!0);case 2:return g.Xf(y),y.return(!1)}})};
wxi=function(){if(WC!==void 0)return WC;Jv=!0;return WC=sHf().then(function(u){Jv=!1;var h;if((h=hv())!=null&&h.G){var L;h={hasSucceededOnce:((L=LM())==null?void 0:L.hasSucceededOnce)||u};var Z;(Z=hv())==null||Z.set("LAST_RESULT_ENTRY_KEY",h,2592E3,!0)}return u})};
FU=function(){return g.wn("ytglobal.idbToken_")||void 0};
g.bx=function(){var u=FU();return u?Promise.resolve(u):wxi().then(function(h){(h=h?tv:void 0)&&g.nV("ytglobal.idbToken_",h);return h})};
eub=function(u){if(!g.t2())throw u=new g.Ii("AUTH_INVALID",{dbName:u}),OW(u),u;var h=g.$9();return{actualName:u+":"+h,publicName:u,userIdentifier:h}};
axn=function(u,h,L,Z){var y,R,p,J,O,f;return g.G(function(D){switch(D.G){case 1:return R=(y=Error().stack)!=null?y:"",g.N(D,g.bx(),2);case 2:p=D.N;if(!p)throw J=g.Mp("openDbImpl",u,h),g.MI("ytidb_async_stack_killswitch")||(J.stack=J.stack+"\n"+R.substring(R.indexOf("\n")+1)),OW(J),J;D3(u);O=L?{actualName:u,publicName:u,userIdentifier:void 0}:eub(u);g.Qn(D,3);return g.N(D,d0Y(O,p),5);case 5:return g.N(D,zu1(O.actualName,h,Z),6);case 6:return D.return(D.N);case 3:return f=g.Xf(D),g.Qn(D,7),g.N(D,eF(O.actualName,
p),9);case 9:g.Sa(D,8);break;case 7:g.Xf(D);case 8:throw f;}})};
$0Y=function(u,h,L){L=L===void 0?{}:L;return axn(u,h,!1,L)};
tzV=function(u,h,L){L=L===void 0?{}:L;return axn(u,h,!0,L)};
WXf=function(u,h){h=h===void 0?{}:h;var L,Z;return g.G(function(y){if(y.G==1)return g.N(y,g.bx(),2);if(y.G!=3){L=y.N;if(!L)return y.return();D3(u);Z=eub(u);return g.N(y,V3(Z.actualName,h),3)}return g.N(y,eF(Z.actualName,L),0)})};
FXb=function(u,h,L){u=u.map(function(Z){return g.G(function(y){return y.G==1?g.N(y,V3(Z.actualName,h),2):g.N(y,eF(Z.actualName,L),0)})});
return Promise.all(u).then(function(){})};
bce=function(u){var h=h===void 0?{}:h;var L,Z;return g.G(function(y){if(y.G==1)return g.N(y,g.bx(),2);if(y.G!=3){L=y.N;if(!L)return y.return();D3(u);return g.N(y,ncn(u,L),3)}Z=y.N;return g.N(y,FXb(Z,h,L),0)})};
Ecl=function(u,h){h=h===void 0?{}:h;var L;return g.G(function(Z){if(Z.G==1)return g.N(Z,g.bx(),2);if(Z.G!=3){L=Z.N;if(!L)return Z.return();D3(u);return g.N(Z,V3(u,h),3)}return g.N(Z,eF(u,L),0)})};
EW=function(u,h){nM.call(this,u,h);this.options=h;D3(u)};
k8L=function(u,h){var L;return function(){L||(L=new EW(u,h));return L}};
g.kw=function(u,h){return k8L(u,h)};
gc=function(u){return g.sW(gcV(),u)};
uBs=function(u,h,L,Z){var y,R,p;return g.G(function(J){switch(J.G){case 1:return y={config:u,hashData:h,timestamp:Z!==void 0?Z:(0,g.vC)()},g.N(J,gc(L),2);case 2:return R=J.N,g.N(J,R.clear("hotConfigStore"),3);case 3:return g.N(J,g.UW(R,"hotConfigStore",y),4);case 4:return p=J.N,J.return(p)}})};
jwn=function(u,h,L,Z,y){var R,p,J;return g.G(function(O){switch(O.G){case 1:return R={config:u,hashData:h,configData:L,timestamp:y!==void 0?y:(0,g.vC)()},g.N(O,gc(Z),2);case 2:return p=O.N,g.N(O,p.clear("coldConfigStore"),3);case 3:return g.N(O,g.UW(p,"coldConfigStore",R),4);case 4:return J=O.N,O.return(J)}})};
hPn=function(u){var h,L;return g.G(function(Z){return Z.G==1?g.N(Z,gc(u),2):Z.G!=3?(h=Z.N,L=void 0,g.N(Z,g.oi(h,["coldConfigStore"],{mode:"readwrite",PJ:!0},function(y){return g.mm(y.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(R){L=R.getValue()})}),3)):Z.return(L)})};
LJl=function(u){var h,L;return g.G(function(Z){return Z.G==1?g.N(Z,gc(u),2):Z.G!=3?(h=Z.N,L=void 0,g.N(Z,g.oi(h,["hotConfigStore"],{mode:"readwrite",PJ:!0},function(y){return g.mm(y.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(R){L=R.getValue()})}),3)):Z.return(L)})};
ZIi=function(){return g.G(function(u){return g.N(u,bce("ytGcfConfig"),0)})};
uI=function(){g.m.call(this);this.N=[];this.G=[];var u=g.wn("yt.gcf.config.hotUpdateCallbacks");u?(this.N=[].concat(g.l(u)),this.G=u):(this.G=[],g.nV("yt.gcf.config.hotUpdateCallbacks",this.G))};
RD=function(){var u=this;this.T=!1;this.X=this.B=0;this.C=new uI;this.zd={XFI:function(){u.T=!0},
d9I:function(){return u.G},
BWA:function(h){je(u,h)},
Zm:function(h){u.Zm(h)},
NWB:function(h){hd(u,h)},
Bq:function(){return u.coldHashData},
C9:function(){return u.hotHashData},
c9d:function(){return u.N},
r9y:function(){return Ld()},
F0d:function(){return ZP()},
OvA:function(){return g.wn("yt.gcf.config.coldHashData")},
v0I:function(){return g.wn("yt.gcf.config.hotHashData")},
pHw:function(){ynn(u)},
mI7:function(){u.Zm(void 0);yS(u);delete RD.instance},
Mfi:function(h){u.X=h},
g0B:function(){return u.X}}};
RPs=function(){if(!RD.instance){var u=new RD;RD.instance=u}return RD.instance};
Jne=function(u){var h;g.G(function(L){if(L.G==1)return g.MI("start_client_gcf")||g.MI("delete_gcf_config_db")?g.MI("start_client_gcf")?g.N(L,g.bx(),3):L.KI(2):L.return();L.G!=2&&((h=L.N)&&g.t2()&&!g.MI("delete_gcf_config_db")?(u.T=!0,ynn(u)):(pn1(u),KJ1(u)));return g.MI("delete_gcf_config_db")?g.N(L,ZIi(),0):L.KI(0)})};
pd=function(){var u;return(u=ZP())!=null?u:g.tn("RAW_HOT_CONFIG_GROUP")};
OIn=function(u){var h,L,Z,y,R,p;return g.G(function(J){switch(J.G){case 1:if(u.N)return J.return(ZP());if(!u.T)return h=g.Mp("getHotConfig IDB not initialized"),kB(h),J.return(Promise.reject(h));L=FU();Z=g.tn("TIME_CREATED_MS");if(!L){y=g.Mp("getHotConfig token error");kB(y);J.KI(2);break}return g.N(J,LJl(L),3);case 3:if((R=J.N)&&R.timestamp>Z)return je(u,R.config),u.Zm(R.hashData),J.return(ZP());case 2:KJ1(u);if(!(L&&u.N&&u.hotHashData)){J.KI(4);break}return g.N(J,uBs(u.N,u.hotHashData,L,Z),4);case 4:return u.N?
J.return(ZP()):(p=new g.aO("Config not available in ytConfig"),kB(p),J.return(Promise.reject(p)))}})};
DHV=function(u){var h,L,Z,y,R,p;return g.G(function(J){switch(J.G){case 1:if(u.G)return J.return(Ld());if(!u.T)return h=g.Mp("getColdConfig IDB not initialized"),kB(h),J.return(Promise.reject(h));L=FU();Z=g.tn("TIME_CREATED_MS");if(!L){y=g.Mp("getColdConfig");kB(y);J.KI(2);break}return g.N(J,hPn(L),3);case 3:if((R=J.N)&&R.timestamp>Z)return hd(u,R.config),fJa(u,R.configData),yS(u,R.hashData),J.return(Ld());case 2:pn1(u);if(!(L&&u.G&&u.coldHashData&&u.configData)){J.KI(4);break}return g.N(J,jwn(u.G,
u.coldHashData,u.configData,L,Z),4);case 4:return u.G?J.return(Ld()):(p=new g.aO("Config not available in ytConfig"),kB(p),J.return(Promise.reject(p)))}})};
ynn=function(u){if(!u.N||!u.G){if(!FU()){var h=g.Mp("scheduleGetConfigs");kB(h)}u.B||(u.B=g.sM.xB(function(){return g.G(function(L){switch(L.G){case 1:return g.Qn(L,2),g.N(L,OIn(u),4);case 4:g.Sa(L,3);break;case 2:g.Xf(L);case 3:return g.Qn(L,5),g.N(L,DHV(u),7);case 7:g.Sa(L,6);break;case 5:g.Xf(L);case 6:u.B&&(u.B=0),g.i1(L)}})},100))}};
cnb=function(u,h,L){var Z,y,R;return g.G(function(p){switch(p.G){case 1:if(!g.MI("start_client_gcf")){p.KI(0);break}L&&je(u,L);u.Zm(h);Z=FU();if(!Z){p.KI(3);break}if(L){p.KI(4);break}return g.N(p,LJl(Z),5);case 5:y=p.N,L=(R=y)==null?void 0:R.config;case 4:return g.N(p,uBs(L,h,Z),3);case 3:if(L)for(var J=L,O=g.C(u.C.G),f=O.next();!f.done;f=O.next())f=f.value,f(J);g.i1(p)}})};
IJa=function(u,h,L){var Z,y,R,p;return g.G(function(J){if(J.G==1){if(!g.MI("start_client_gcf"))return J.KI(0);yS(u,h);return(Z=FU())?L?J.KI(4):g.N(J,hPn(Z),5):J.KI(0)}J.G!=4&&(y=J.N,L=(R=y)==null?void 0:R.config);if(!L)return J.KI(0);p=L.configData;return g.N(J,jwn(L,h,p,Z),0)})};
Ann=function(){var u=RPs(),h=(0,g.vC)()-u.X;if(!(u.X!==0&&h<g.iA("send_config_hash_timer"))){h=g.wn("yt.gcf.config.coldConfigData");var L=g.wn("yt.gcf.config.hotHashData"),Z=g.wn("yt.gcf.config.coldHashData");h&&L&&Z&&(u.X=(0,g.vC)());return{coldConfigData:h,hotHashData:L,coldHashData:Z}}};
pn1=function(u){hd(u,g.tn("RAW_COLD_CONFIG_GROUP"));yS(u,g.tn("SERIALIZED_COLD_HASH_DATA"));var h;fJa(u,(h=u.G)==null?void 0:h.configData)};
KJ1=function(u){je(u,g.tn("RAW_HOT_CONFIG_GROUP"));u.Zm(g.tn("SERIALIZED_HOT_HASH_DATA"))};
je=function(u,h){u.N=h;g.nV("yt.gcf.config.hotConfigGroup",u.N||null)};
hd=function(u,h){u.G=h;g.nV("yt.gcf.config.coldConfigGroup",u.G||null)};
yS=function(u,h){u.coldHashData=h;g.nV("yt.gcf.config.coldHashData",u.coldHashData||null)};
fJa=function(u,h){u.configData=h;g.nV("yt.gcf.config.coldConfigData",u.configData||null)};
ZP=function(){return g.wn("yt.gcf.config.hotConfigGroup")};
Ld=function(){return g.wn("yt.gcf.config.coldConfigGroup")};
xHl=function(){return"INNERTUBE_API_KEY"in aw&&"INNERTUBE_API_VERSION"in aw};
g.Kd=function(){return{innertubeApiKey:g.tn("INNERTUBE_API_KEY"),innertubeApiVersion:g.tn("INNERTUBE_API_VERSION"),SU:g.tn("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),mP:g.tn("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),tZ:g.tn("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.tn("INNERTUBE_CONTEXT_CLIENT_VERSION"),GS:g.tn("INNERTUBE_CONTEXT_HL"),eL:g.tn("INNERTUBE_CONTEXT_GL"),hZ:g.tn("INNERTUBE_HOST_OVERRIDE")||"",f2:!!g.tn("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),pXw:!!g.tn("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.tn("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.Jd=function(u){var h={client:{hl:u.GS,gl:u.eL,clientName:u.mP,clientVersion:u.innertubeContextClientVersion,configInfo:u.SU}};navigator.userAgent&&(h.client.userAgent=String(navigator.userAgent));var L=g.Vn.devicePixelRatio;L&&L!=1&&(h.client.screenDensityFloat=String(L));L=Qa();L!==""&&(h.client.experimentsToken=L);L=lA();L.length>0&&(h.request={internalExperimentFlags:L});PUs(u,void 0,h);CUb(void 0,h);Mve(void 0,h);iIV(u,void 0,h);QwL(void 0,h);g.MI("start_client_gcf")&&lJb(void 0,h);g.tn("DELEGATED_SESSION_ID")&&
!g.MI("pageid_as_header_web")&&(h.user={onBehalfOfUser:g.tn("DELEGATED_SESSION_ID")});!g.MI("fill_delegate_context_in_gel_killswitch")&&(u=g.tn("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(h.user=Object.assign({},h.user,{serializedDelegationContext:u}));u=g.tn("INNERTUBE_CONTEXT");var Z;if(g.MI("enable_persistent_device_token")&&(u==null?0:(Z=u.client)==null?0:Z.rolloutToken)){var y;h.client.rolloutToken=u==null?void 0:(y=u.client)==null?void 0:y.rolloutToken}Z=Object;y=Z.assign;u=h.client;
L={};for(var R=g.C(Object.entries(jp(g.tn("DEVICE","")))),p=R.next();!p.done;p=R.next()){var J=g.C(p.value);p=J.next().value;J=J.next().value;p==="cbrand"?L.deviceMake=J:p==="cmodel"?L.deviceModel=J:p==="cbr"?L.browserName=J:p==="cbrver"?L.browserVersion=J:p==="cos"?L.osName=J:p==="cosver"?L.osVersion=J:p==="cplatform"&&(L.platform=J)}h.client=y.call(Z,u,L);return h};
PUs=function(u,h,L){u=u.mP;if(u==="WEB"||u==="MWEB"||u===1||u===2)if(h){L=Rl(h,T6,96)||new T6;var Z=BD();Z=Object.keys(SCa).indexOf(Z);Z=Z===-1?null:Z;Z!==null&&C9(L,3,Z);p9(h,T6,96,L)}else L&&(L.client.mainAppWebInfo=(Z=L.client.mainAppWebInfo)!=null?Z:{},L.client.mainAppWebInfo.webDisplayMode=BD())};
CUb=function(u,h){var L=g.wn("yt.embedded_player.embed_url");L&&(u?(h=Rl(u,G6,7)||new G6,x8(h,4,L),p9(u,G6,7,h)):h&&(h.thirdParty={embedUrl:L}))};
Mve=function(u,h){var L;if(g.MI("web_log_memory_total_kbytes")&&((L=g.Vn.navigator)==null?0:L.deviceMemory)){var Z;L=(Z=g.Vn.navigator)==null?void 0:Z.deviceMemory;u?Vx(u,95,iK(L*1E6)):h&&(h.client.memoryTotalKbytes=""+L*1E6)}};
iIV=function(u,h,L){if(u.appInstallData)if(h){var Z;L=(Z=Rl(h,qH,62))!=null?Z:new qH;x8(L,6,u.appInstallData);p9(h,qH,62,L)}else L&&(L.client.configInfo=L.client.configInfo||{},L.client.configInfo.appInstallData=u.appInstallData)};
QwL=function(u,h){var L=RuV();L&&(u?C9(u,61,XnR[L]):h&&(h.client.connectionType=L));g.MI("web_log_effective_connection_type")&&(L=KXi())&&(u?C9(u,94,vBb[L]):h&&(h.client.effectiveConnectionType=L))};
qCn=function(u,h,L){L=L===void 0?{}:L;var Z={};g.tn("EOM_VISITOR_DATA")?Z={"X-Goog-EOM-Visitor-Id":g.tn("EOM_VISITOR_DATA")}:Z={"X-Goog-Visitor-Id":L.visitorData||g.tn("VISITOR_DATA","")};if(h&&h.includes("www.youtube-nocookie.com"))return Z;h=L.uG||g.tn("AUTHORIZATION");h||(u?h="Bearer "+g.wn("gapi.auth.getToken")().access_token:(u=uLb().wI(O3),g.MI("pageid_as_header_web")||delete u["X-Goog-PageId"],Z=Object.assign({},Z,u)));h&&(Z.Authorization=h);return Z};
lJb=function(u,h){var L=Ann();if(L){var Z=L.coldConfigData,y=L.coldHashData;L=L.hotHashData;if(u){var R;h=(R=Rl(u,qH,62))!=null?R:new qH;Z=x8(h,1,Z);x8(Z,3,y).Zm(L);p9(u,qH,62,h)}else h&&(h.client.configInfo=h.client.configInfo||{},Z&&(h.client.configInfo.coldConfigData=Z),y&&(h.client.configInfo.coldHashData=y),L&&(h.client.configInfo.hotHashData=L))}};
fd=function(u,h){this.version=u;this.args=h};
DP=function(u,h){this.topic=u;this.G=h};
ID=function(u,h){var L=cb();L&&L.publish.call(L,u.toString(),u,h)};
oBn=function(u){var h=Tv1,L=cb();if(!L)return 0;var Z=L.subscribe(h.toString(),function(y,R){var p=g.wn("ytPubsub2Pubsub2SkipSubKey");p&&p==Z||(p=function(){if(Ad[Z])try{if(R&&h instanceof DP&&h!=y)try{var J=h.G,O=R;if(!O.args||!O.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!J.O2){var f=new J;J.O2=f.version}var D=J.O2}catch(c){}if(!D||O.version!=D)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{R=Reflect.construct(J,
g.h8(O.args))}catch(c){throw c.message="yt.pubsub2.Data.deserialize(): "+c.message,c;}}catch(c){throw c.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+h.toString()+": "+c.message,c;}u.call(window,R)}catch(c){g.bU(c)}},YCj[h.toString()]?g.gN()?g.sM.xB(p):g.IJ(p,0):p())});
Ad[Z]=!0;iI[h.toString()]||(iI[h.toString()]=[]);iI[h.toString()].push(Z);return Z};
G6b=function(){var u=Nvw,h=oBn(function(L){u.apply(void 0,arguments);UHl(h)});
return h};
UHl=function(u){var h=cb();h&&(typeof u==="number"&&(u=[u]),g.A8(u,function(L){h.unsubscribeByKey(L);delete Ad[L]}))};
cb=function(){return g.wn("ytPubsub2Pubsub2Instance")};
QS=function(u,h,L){L=L===void 0?{sampleRate:.1}:L;Math.random()<Math.min(.02,L.sampleRate/100)&&ID("meta_logging_csi_event",{timerName:u,P7g:h})};
HIe=function(){lI||(lI=lU(g.tn("WORKER_SERIALIZATION_URL")));return lI||void 0};
Xt=function(){var u=HIe();Se||u===void 0||(Se=new Worker(vo(u),void 0));return Se};
rnj=function(){return typeof Worker==="function"&&HIe()?!0:!1};
zPa=function(){if(rnj()&&!vb){var u=function(L){L=L.data;if(L.op==="gzippedGelBatch"){var Z=qv.get(L.key);Z&&(BvV(L.gzippedBatch,Z.latencyPayload,Z.url,Z.options,Z.sendFn),qv.delete(L.key))}},h=Xt();
h&&(h.addEventListener("message",u),h.onerror=function(){qv.clear()},vb=!0)}};
oD=function(u,h,L,Z,y){y=y===void 0?!1:y;var R={startTime:(0,g.vC)(),ticks:{},infos:{}};if(T_)try{var p=mHw(h);if(p!=null&&(p>dHn||p<VvV))Z(u,L);else{if(g.MI("gzip_gel_with_worker")&&(g.MI("initial_gzip_use_main_thread")&&!nBR||!g.MI("initial_gzip_use_main_thread"))){vb||zPa();var J=Xt();if(J&&!y){qv.set(YM,{latencyPayload:R,url:u,options:L,sendFn:Z});J.postMessage({op:"gelBatchToGzip",serializedBatch:h,key:YM});YM++;return}}var O=Tyj(swL(h));BvV(O,R,u,L,Z)}}catch(f){kB(f),Z(u,L)}else Z(u,L)};
BvV=function(u,h,L,Z,y){nBR=!1;var R=(0,g.vC)();h.ticks.gelc=R;Nv++;g.MI("disable_compression_due_to_performance_degredation")&&R-h.startTime>=wnb&&(U3++,g.MI("abandon_compression_after_N_slow_zips")?Nv===g.iA("compression_disable_point")&&U3>ePL&&(T_=!1):T_=!1);aJj(h);Z.headers||(Z.headers={});Z.headers["Content-Encoding"]="gzip";Z.postBody=u;Z.postParams=void 0;y(L,Z)};
$HV=function(u){var h=h===void 0?!1:h;var L=L===void 0?!1:L;var Z=(0,g.vC)(),y={startTime:Z,ticks:{},infos:{}},R=h?g.wn("yt.logging.gzipForFetch",!1):!0;if(T_&&R){if(!u.body)return u;try{var p=L?u.body:typeof u.body==="string"?u.body:JSON.stringify(u.body);R=p;if(!L&&typeof p==="string"){var J=mHw(p);if(J!=null&&(J>dHn||J<VvV))return u;L=h?{level:1}:void 0;R=Tyj(swL(p),L);var O=(0,g.vC)();y.ticks.gelc=O;if(h){Nv++;if((g.MI("disable_compression_due_to_performance_degredation")||g.MI("disable_compression_due_to_performance_degradation_lr"))&&
O-Z>=wnb)if(U3++,g.MI("abandon_compression_after_N_slow_zips")||g.MI("abandon_compression_after_N_slow_zips_lr")){h=U3/Nv;var f=ePL/g.iA("compression_disable_point");Nv>0&&Nv%g.iA("compression_disable_point")===0&&h>=f&&(T_=!1)}else T_=!1;aJj(y)}}u.headers=Object.assign({},{"Content-Encoding":"gzip"},u.headers||{});u.body=R;return u}catch(D){return kB(D),u}}else return u};
mHw=function(u){try{return(new Blob(u.split(""))).size}catch(h){return kB(h),null}};
aJj=function(u){g.MI("gel_compression_csi_killswitch")||!g.MI("log_gel_compression_latency")&&!g.MI("log_gel_compression_latency_lr")||QS("gel_compression",u,{sampleRate:.1})};
Hb=function(u){var h=this;this.Io=this.G=!1;this.potentialEsfErrorCounter=this.N=0;this.handleError=function(){};
this.UQ=function(){};
this.now=Date.now;this.xk=!1;this.zd={u6y:function(D){h.Q$=D},
owA:function(){h.Lh()},
wK:function(){h.E7()},
IB:function(D){return g.G(function(c){return g.N(c,h.IB(D),0)})},
Ap:function(D,c){return h.Ap(D,c)},
Nw:function(){h.Nw()}};
var L;this.ES=(L=u.ES)!=null?L:100;var Z;this.LP=(Z=u.LP)!=null?Z:1;var y;this.bI=(y=u.bI)!=null?y:2592E6;var R;this.vT=(R=u.vT)!=null?R:12E4;var p;this.Ui=(p=u.Ui)!=null?p:5E3;var J;this.Q$=(J=u.Q$)!=null?J:void 0;this.V4=!!u.V4;var O;this.lT=(O=u.lT)!=null?O:.1;var f;this.Vv=(f=u.Vv)!=null?f:10;u.handleError&&(this.handleError=u.handleError);u.UQ&&(this.UQ=u.UQ);u.xk&&(this.xk=u.xk);u.Io&&(this.Io=u.Io);this.tB=u.tB;this.R9=u.R9;this.I4=u.I4;this.Up=u.Up;this.sendFn=u.sendFn;this.MY=u.MY;this.GL=
u.GL;G_(this)&&(!this.tB||this.tB("networkless_logging"))&&tvs(this)};
tvs=function(u){G_(u)&&!u.xk&&(u.G=!0,u.V4&&Math.random()<=u.lT&&u.I4.Pl(u.Q$),u.Nw(),u.Up.jD()&&u.Lh(),u.Up.listen(u.MY,u.Lh.bind(u)),u.Up.listen(u.GL,u.E7.bind(u)))};
bIa=function(u,h){if(!G_(u))throw Error("IndexedDB is not supported: updateRequestHandlers");var L=h.options.onError?h.options.onError:function(){};
h.options.onError=function(y,R){var p,J,O,f;return g.G(function(D){switch(D.G){case 1:p=WJe(R);(J=FJj(R))&&u.tB&&u.tB("web_enable_error_204")&&u.handleError(Error("Request failed due to compression"),h.url,R);if(!(u.tB&&u.tB("nwl_consider_error_code")&&p||u.tB&&!u.tB("nwl_consider_error_code")&&u.potentialEsfErrorCounter<=u.Vv)){D.KI(2);break}if(!u.Up.BY){D.KI(3);break}return g.N(D,u.Up.BY(),3);case 3:if(u.Up.jD()){D.KI(2);break}L(y,R);if(!u.tB||!u.tB("nwl_consider_error_code")||((O=h)==null?void 0:
O.id)===void 0){D.KI(6);break}return g.N(D,u.I4.G$(h.id,u.Q$,!1),6);case 6:return D.return();case 2:if(u.tB&&u.tB("nwl_consider_error_code")&&!p&&u.potentialEsfErrorCounter>u.Vv)return D.return();u.potentialEsfErrorCounter++;if(((f=h)==null?void 0:f.id)===void 0){D.KI(8);break}return h.sendCount<u.LP?g.N(D,u.I4.G$(h.id,u.Q$,!0,J?!1:void 0),12):g.N(D,u.I4.Xj(h.id,u.Q$),8);case 12:u.R9.xB(function(){u.Up.jD()&&u.Lh()},u.Ui);
case 8:L(y,R),g.i1(D)}})};
var Z=h.options.onSuccess?h.options.onSuccess:function(){};
h.options.onSuccess=function(y,R){var p;return g.G(function(J){if(J.G==1)return((p=h)==null?void 0:p.id)===void 0?J.KI(2):g.N(J,u.I4.Xj(h.id,u.Q$),2);u.Up.hR&&u.tB&&u.tB("vss_network_hint")&&u.Up.hR(!0);Z(y,R);g.i1(J)})};
return h};
rx=function(u,h){u.po&&!u.Up.jD()?u.po(h):u.handleError(h)};
G_=function(u){return!!u.Q$||u.Io};
WJe=function(u){var h;return(u=u==null?void 0:(h=u.error)==null?void 0:h.code)&&u>=400&&u<=599?!1:!0};
FJj=function(u){var h;u=u==null?void 0:(h=u.error)==null?void 0:h.code;return!(u!==400&&u!==415)};
EBR=function(){if(Bb)return Bb();var u={};Bb=g.kw("LogsDatabaseV2",{wC:(u.LogsRequestsStore={wN:2},u),shared:!1,upgrade:function(h,L,Z){L(2)&&g.Tr(h,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});L(3);L(5)&&(Z=Z.objectStore("LogsRequestsStore"),Z.G.indexNames.contains("newRequest")&&Z.G.deleteIndex("newRequest"),g.HC(Z,"newRequestV2",["status","interface","timestamp"]));L(7)&&Yw(h,"sapisid");L(9)&&Yw(h,"SWHealthLog")},
version:9});return Bb()};
z_=function(u){return g.sW(EBR(),u)};
gBn=function(u,h){var L,Z,y,R;return g.G(function(p){if(p.G==1)return L={startTime:(0,g.vC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.N(p,z_(h),2);if(p.G!=3)return Z=p.N,y=Object.assign({},u,{options:JSON.parse(JSON.stringify(u.options)),interface:g.tn("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.N(p,g.UW(Z,"LogsRequestsStore",y),3);R=p.N;L.ticks.tc=(0,g.vC)();k6j(L);return p.return(R)})};
uIf=function(u,h){var L,Z,y,R,p,J,O,f;return g.G(function(D){if(D.G==1)return L={startTime:(0,g.vC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.N(D,z_(h),2);if(D.G!=3)return Z=D.N,y=g.tn("INNERTUBE_CONTEXT_CLIENT_NAME",0),R=[u,y,0],p=[u,y,(0,g.vC)()],J=IDBKeyRange.bound(R,p),O="prev",g.MI("use_fifo_for_networkless")&&(O="next"),f=void 0,g.N(D,g.oi(Z,["LogsRequestsStore"],{mode:"readwrite",PJ:!0},function(c){return g.mm(c.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:J,direction:O},function(I){I.getValue()&&(f=I.getValue(),u==="NEW"&&(f.status="QUEUED",I.update(f)))})}),3);
L.ticks.tc=(0,g.vC)();k6j(L);return D.return(f)})};
jJi=function(u,h){var L;return g.G(function(Z){if(Z.G==1)return g.N(Z,z_(h),2);L=Z.N;return Z.return(g.oi(L,["LogsRequestsStore"],{mode:"readwrite",PJ:!0},function(y){var R=y.objectStore("LogsRequestsStore");return R.get(u).then(function(p){if(p)return p.status="QUEUED",g.Np(R,p).then(function(){return p})})}))})};
hNV=function(u,h,L,Z){L=L===void 0?!0:L;var y;return g.G(function(R){if(R.G==1)return g.N(R,z_(h),2);y=R.N;return R.return(g.oi(y,["LogsRequestsStore"],{mode:"readwrite",PJ:!0},function(p){var J=p.objectStore("LogsRequestsStore");return J.get(u).then(function(O){return O?(O.status="NEW",L&&(O.sendCount+=1),Z!==void 0&&(O.options.compress=Z),g.Np(J,O).then(function(){return O})):g.Q3.resolve(void 0)})}))})};
Lia=function(u,h){var L;return g.G(function(Z){if(Z.G==1)return g.N(Z,z_(h),2);L=Z.N;return Z.return(L.delete("LogsRequestsStore",u))})};
ZPn=function(u){var h,L;return g.G(function(Z){if(Z.G==1)return g.N(Z,z_(u),2);h=Z.N;L=(0,g.vC)()-2592E6;return g.N(Z,g.oi(h,["LogsRequestsStore"],{mode:"readwrite",PJ:!0},function(y){return g.rc(y.objectStore("LogsRequestsStore"),{},function(R){if(R.getValue().timestamp<=L)return R.delete().then(function(){return g.BC(R)})})}),0)})};
y5V=function(){g.G(function(u){return g.N(u,bce("LogsDatabaseV2"),0)})};
k6j=function(u){g.MI("nwl_csi_killswitch")||QS("networkless_performance",u,{sampleRate:1})};
pSe=function(u){return g.sW(RNY(),u)};
Kin=function(u){var h,L;g.G(function(Z){if(Z.G==1)return g.N(Z,pSe(u),2);h=Z.N;L=(0,g.vC)()-2592E6;return g.N(Z,g.oi(h,["SWHealthLog"],{mode:"readwrite",PJ:!0},function(y){return g.rc(y.objectStore("SWHealthLog"),{},function(R){if(R.getValue().timestamp<=L)return R.delete().then(function(){return g.BC(R)})})}),0)})};
J5Y=function(u){var h;return g.G(function(L){if(L.G==1)return g.N(L,pSe(u),2);h=L.N;return g.N(L,h.clear("SWHealthLog"),0)})};
g.dx=function(u,h,L,Z,y,R,p){y=y===void 0?"":y;R=R===void 0?!1:R;p=p===void 0?!1:p;if(u)if(L&&!g.wg())kB(new g.aO("Legacy referrer-scrubbed ping detected")),u&&OPb(u,void 0,{scrubReferrer:!0});else if(y)Sp(u,h,"POST",y,Z);else if(g.tn("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||Z||p)Sp(u,h,"GET","",Z,void 0,R,p);else{b:{try{var J=new FBa({url:u});if(J.T?typeof J.X!=="string"||J.X.length===0?0:{version:3,D5:J.X,Kw:l8(J.G,"act=1","ri=1",bhw(J))}:J.C&&{version:4,D5:l8(J.G,"dct=1","suid="+J.B,""),Kw:l8(J.G,
"act=1","ri=1","suid="+J.B)}){var O=NE(g.ru(5,u));var f=!(!O||!O.endsWith("/aclk")||en(u,"ri")!=="1");break b}}catch(D){}f=!1}f?fln(u)?(h&&h(),L=!0):L=!1:L=!1;L||OPb(u,h)}};
fln=function(u,h){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(u,h===void 0?"":h))return!0}catch(L){}return!1};
OPb=function(u,h,L){L=L===void 0?{}:L;var Z=new Image,y=""+DIw++;VS[y]=Z;Z.onload=Z.onerror=function(){h&&VS[y]&&h();delete VS[y]};
L.scrubReferrer&&(Z.referrerPolicy="no-referrer");Z.src=u};
c5i=function(u){var h;return((h=document.featurePolicy)==null?0:h.allowedFeatures().includes("attribution-reporting"))?u+"&nis=6":u+"&nis=5"};
s3=function(){nd||(nd=new jF("yt.offline"));return nd};
Iln=function(u){if(g.MI("offline_error_handling")){var h=s3().get("errors",!0)||{};h[u.message]={name:u.name,stack:u.stack};u.level&&(h[u.message].level=u.level);s3().set("errors",h,2592E3,!0)}};
wx=function(){this.G=new Map;this.N=!1};
ee=function(){if(!wx.instance){var u=g.wn("yt.networkRequestMonitor.instance")||new wx;g.nV("yt.networkRequestMonitor.instance",u);wx.instance=u}return wx.instance};
aD=function(){g.Ev.call(this);var u=this;this.N=!1;this.G=TKj();this.G.listen("networkstatus-online",function(){if(u.N&&g.MI("offline_error_handling")){var h=s3().get("errors",!0);if(h){for(var L in h)if(h[L]){var Z=new g.aO(L,"sent via offline_errors");Z.name=h[L].name;Z.stack=h[L].stack;Z.level=h[L].level;g.bU(Z)}s3().set("errors",{},2592E3,!0)}}})};
A51=function(){if(!aD.instance){var u=g.wn("yt.networkStatusManager.instance")||new aD;g.nV("yt.networkStatusManager.instance",u);aD.instance=u}return aD.instance};
g.$M=function(u){u=u===void 0?{}:u;g.Ev.call(this);var h=this;this.G=this.B=0;this.N=A51();var L=g.wn("yt.networkStatusManager.instance.listen").bind(this.N);L&&(u.rateLimit?(this.rateLimit=u.rateLimit,L("networkstatus-online",function(){xIi(h,"publicytnetworkstatus-online")}),L("networkstatus-offline",function(){xIi(h,"publicytnetworkstatus-offline")})):(L("networkstatus-online",function(){h.dispatchEvent("publicytnetworkstatus-online")}),L("networkstatus-offline",function(){h.dispatchEvent("publicytnetworkstatus-offline")})))};
xIi=function(u,h){u.rateLimit?u.G?(g.sM.OA(u.B),u.B=g.sM.xB(function(){u.X!==h&&(u.dispatchEvent(h),u.X=h,u.G=(0,g.vC)())},u.rateLimit-((0,g.vC)()-u.G))):(u.dispatchEvent(h),u.X=h,u.G=(0,g.vC)()):u.dispatchEvent(h)};
Wb=function(){var u=Hb.call;td||(td=new g.$M({cza:!0,kBB:!0}));u.call(Hb,this,{I4:{Pl:ZPn,Xj:Lia,Zd:uIf,M7I:jJi,G$:hNV,set:gBn},Up:td,handleError:function(h,L,Z){var y,R=Z==null?void 0:(y=Z.error)==null?void 0:y.code;if(R===400||R===415){var p;kB(new g.aO(h.message,L,Z==null?void 0:(p=Z.error)==null?void 0:p.code),void 0,void 0,void 0,!0)}else g.bU(h)},
UQ:kB,sendFn:PAl,now:g.vC,po:Iln,R9:g.k9(),MY:"publicytnetworkstatus-online",GL:"publicytnetworkstatus-offline",V4:!0,lT:.1,Vv:g.iA("potential_esf_error_limit",10),tB:g.MI,xk:!(g.t2()&&g.BY(document.location.toString())!=="www.youtube-nocookie.com")});this.X=new g.Ab;g.MI("networkless_immediately_drop_all_requests")&&y5V();Ecl("LogsDatabaseV2")};
Ft=function(){var u=g.wn("yt.networklessRequestController.instance");u||(u=new Wb,g.nV("yt.networklessRequestController.instance",u),g.MI("networkless_logging")&&g.bx().then(function(h){u.Q$=h;tvs(u);u.X.resolve();u.V4&&Math.random()<=u.lT&&u.Q$&&Kin(u.Q$);g.MI("networkless_immediately_drop_sw_health_store")&&CAY(u)}));
return u};
CAY=function(u){var h;g.G(function(L){if(!u.Q$)throw h=g.Mp("clearSWHealthLogsDb"),h;return L.return(J5Y(u.Q$).catch(function(Z){u.handleError(Z)}))})};
PAl=function(u,h,L,Z){Z=Z===void 0?!1:Z;h=g.MI("web_fp_via_jspb")?Object.assign({},h):h;g.MI("use_cfr_monitor")&&MpR(u,h);if(g.MI("use_request_time_ms_header"))h.headers&&RJ(u)&&(h.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.vC)())));else{var y;if((y=h.postParams)==null?0:y.requestTimeMs)h.postParams.requestTimeMs=Math.round((0,g.vC)())}L&&Object.keys(h).length===0?g.dx(u):h.compress?h.postBody?(typeof h.postBody!=="string"&&(h.postBody=JSON.stringify(h.postBody)),oD(u,h.postBody,
h,g.XI,Z)):oD(u,JSON.stringify(h.postParams),h,vS,Z):g.XI(u,h)};
bI=function(u,h){g.MI("use_event_time_ms_header")&&RJ(u)&&(h.headers||(h.headers={}),h.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.vC)())));return h};
MpR=function(u,h){var L=h.onError?h.onError:function(){};
h.onError=function(y,R){ee().requestComplete(u,!1);L(y,R)};
var Z=h.onSuccess?h.onSuccess:function(){};
h.onSuccess=function(y,R){ee().requestComplete(u,!0);Z(y,R)}};
g.E3=function(u){this.config_=null;u?this.config_=u:xHl()&&(this.config_=g.Kd())};
g.kM=function(u,h,L,Z){function y(f){try{if((f===void 0?0:f)&&Z.retry&&!Z.networklessOptions.bypassNetworkless)R.method="POST",Z.networklessOptions.writeThenSend?Ft().writeThenSend(O,R):Ft().sendAndWrite(O,R);else if(Z.compress){var D=!Z.networklessOptions.writeThenSend;if(R.postBody){var c=R.postBody;typeof c!=="string"&&(c=JSON.stringify(R.postBody));oD(O,c,R,g.XI,D)}else oD(O,JSON.stringify(R.postParams),R,vS,D)}else g.MI("web_all_payloads_via_jspb")?g.XI(O,R):vS(O,R)}catch(I){if(I.name==="InvalidAccessError")kB(Error("An extension is blocking network request."));
else throw I;}}
!g.tn("VISITOR_DATA")&&h!=="visitor_id"&&Math.random()<.01&&kB(new g.aO("Missing VISITOR_DATA when sending innertube request.",h,L,Z));if(!u.isReady())throw u=new g.aO("innertube xhrclient not ready",h,L,Z),g.bU(u),u;var R={headers:Z.headers||{},method:"POST",postParams:L,postBody:Z.postBody,postBodyFormat:Z.postBodyFormat||"JSON",onTimeout:function(){Z.onTimeout()},
onFetchTimeout:Z.onTimeout,onSuccess:function(f,D){if(Z.onSuccess)Z.onSuccess(D)},
onFetchSuccess:function(f){if(Z.onSuccess)Z.onSuccess(f)},
onError:function(f,D){if(Z.onError)Z.onError(D)},
onFetchError:function(f){if(Z.onError)Z.onError(f)},
timeout:Z.timeout,withCredentials:!0,compress:Z.compress};R.headers["Content-Type"]||(R.headers["Content-Type"]="application/json");L="";var p=u.config_.hZ;p&&(L=p);p=u.config_.f2||!1;var J=qCn(p,L,Z);Object.assign(R.headers,J);R.headers.Authorization&&!L&&p&&(R.headers["x-origin"]=window.location.origin);var O=Zl(""+L+("/youtubei/"+u.config_.innertubeApiVersion+"/"+h),{alt:"json"});g.wn("ytNetworklessLoggingInitializationOptions")&&iPe.isNwlInitialized?wxi().then(function(f){y(f)}):y(!1)};
g.Lr=function(u,h,L){var Z=g.gx();if(Z&&h){var y=Z.subscribe(u,function(){function R(){ug[y]&&h.apply&&typeof h.apply=="function"&&h.apply(L||window,p)}
var p=arguments;try{g.js[u]?R():g.IJ(R,0)}catch(J){g.bU(J)}},L);
ug[y]=!0;hQ[u]||(hQ[u]=[]);hQ[u].push(y);return y}return 0};
QJj=function(u){var h=g.Lr("LOGGED_IN",function(L){u.apply(void 0,arguments);g.Z$(h)})};
g.Z$=function(u){var h=g.gx();h&&(typeof u==="number"?u=[u]:typeof u==="string"&&(u=[parseInt(u,10)]),g.A8(u,function(L){h.unsubscribeByKey(L);delete ug[L]}))};
g.y8=function(u,h){var L=g.gx();return L?L.publish.apply(L,arguments):!1};
SJi=function(u){var h=g.gx();if(h)if(h.clear(u),u)lln(u);else for(var L in hQ)lln(L)};
g.gx=function(){return g.Vn.ytPubsubPubsubInstance};
lln=function(u){hQ[u]&&(u=hQ[u],g.A8(u,function(h){ug[h]&&delete ug[h]}),u.length=0)};
g.R6=function(u,h,L){XSf(u,h,L===void 0?null:L)};
XSf=function(u,h,L){L=L===void 0?null:L;var Z=v7a(u),y=document.getElementById(Z),R=y&&mgf(y),p=y&&!R;R?h&&h():(h&&(R=g.Lr(Z,h),h=""+g.b1(h),qJb[h]=R),p||(y=Tgs(u,Z,function(){mgf(y)||(zGi(y),g.y8(Z),g.IJ(function(){SJi(Z)},0))},L)))};
Tgs=function(u,h,L,Z){Z=Z===void 0?null:Z;var y=g.kJ("SCRIPT");y.id=h;y.onload=function(){L&&setTimeout(L,0)};
y.onreadystatechange=function(){switch(y.readyState){case "loaded":case "complete":y.onload()}};
Z&&y.setAttribute("nonce",Z);g.sS(y,g.Sv(u));u=document.getElementsByTagName("head")[0]||document.body;u.insertBefore(y,u.firstChild);return y};
v7a=function(u){var h=document.createElement("a");g.Gx(h,u);u=h.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+kd(u)};
pr=function(u,h){if(u===h)u=!0;else if(Array.isArray(u)&&Array.isArray(h))u=g.fw(u,h,pr);else if(g.Wi(u)&&g.Wi(h))a:if(g.ST(u).length!=g.ST(h).length)u=!1;else{for(var L in u)if(!pr(u[L],h[L])){u=!1;break a}u=!0}else u=!1;return u};
O2=function(u){var h=g.NL.apply(1,arguments);if(!Kr(u)||h.some(function(Z){return!Kr(Z)}))throw Error("Only objects may be merged.");
h=g.C(h);for(var L=h.next();!L.done;L=h.next())JQ(u,L.value)};
JQ=function(u,h){for(var L in h)if(Kr(h[L])){if(L in u&&!Kr(u[L]))throw Error("Cannot merge an object into a non-object.");L in u||(u[L]={});JQ(u[L],h[L])}else if(AQ(h[L])){if(L in u&&!AQ(u[L]))throw Error("Cannot merge an array into a non-array.");L in u||(u[L]=[]);YJY(u[L],h[L])}else u[L]=h[L];return u};
YJY=function(u,h){h=g.C(h);for(var L=h.next();!L.done;L=h.next())L=L.value,Kr(L)?u.push(JQ({},L)):AQ(L)?u.push(YJY([],L)):u.push(L);return u};
Kr=function(u){return typeof u==="object"&&!Array.isArray(u)};
AQ=function(u){return typeof u==="object"&&Array.isArray(u)};
xo=function(u){g.m.call(this);this.N=u};
P5=function(u){xo.call(this,!0);this.G=u};
o7f=function(u,h){g.m.call(this);var L=this;this.X=[];this.V=!1;this.N=0;this.T=this.C=this.B=!1;this.AB=null;var Z=(0,g.Ej)(u,h);this.G=new g.EM(function(){return Z(L.AB)},300);
g.V(this,this.G);this.Y=this.S=Infinity};
Ngj=function(u,h){if(!h)return!1;for(var L=0;L<h.length;L++){var Z=h.item(L);if(Z&&u.X.includes(Z.identifier))return!0}return!1};
MX=function(u){if(window.crypto&&window.crypto.getRandomValues)try{var h=Array(u),L=new Uint8Array(u);window.crypto.getRandomValues(L);for(var Z=0;Z<h.length;Z++)h[Z]=L[Z];return h}catch(R){}h=Array(u);for(L=0;L<u;L++){Z=Date.now();for(var y=0;y<Z%23;y++)h[L]=Math.random();h[L]=Math.floor(Math.random()*256)}if(Cr)for(L=1,Z=0;Z<Cr.length;Z++)h[L%u]=h[L%u]^h[(L-1)%u]/4^Cr.charCodeAt(Z),L++;return h};
g.ig=function(u){u=MX(u);for(var h=[],L=0;L<u.length;L++)h.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(u[L]&63));return h.join("")};
g.UIi=function(){return g.Xx(MX(16),function(u){return(u&15).toString(16)}).join("")};
GTe=function(){var u={};var h=u.Urg===void 0?!1:u.Urg;u=u.Pk===void 0?!0:u.Pk;if(g.wn("_lact",window)==null){var L=parseInt(g.tn("LACT"),10);L=isFinite(L)?Date.now()-Math.max(L,0):-1;g.nV("_lact",L,window);g.nV("_fact",L,window);L==-1&&Q8();g.iw(document,"keydown",Q8);g.iw(document,"keyup",Q8);g.iw(document,"mousedown",Q8);g.iw(document,"mouseup",Q8);h?g.iw(window,"touchmove",function(){lg("touchmove",200)},{passive:!0}):(g.iw(window,"resize",function(){lg("resize",200)}),u&&g.iw(window,"scroll",
function(){lg("scroll",200)}));
new XA(function(){lg("mouse",100)});
g.iw(document,"touchstart",Q8,{passive:!0});g.iw(document,"touchend",Q8,{passive:!0})}};
lg=function(u,h){Ss[u]||(Ss[u]=!0,g.sM.xB(function(){Q8();Ss[u]=!1},h))};
Q8=function(){g.wn("_lact",window)==null&&(GTe(),g.wn("_lact",window));var u=Date.now();g.nV("_lact",u,window);g.wn("_fact",window)==-1&&g.nV("_fact",u,window);(u=g.wn("ytglobal.ytUtilActivityCallback_"))&&u()};
v5=function(){var u=g.wn("_lact",window);return u==null?-1:Math.max(Date.now()-u,0)};
qX=function(u){this.name=u};
Tt=function(u){this.key=u};
HPY=function(){var u=this;this.G=new Map;this.X=new Map;this.N=new Map;this.zd={bvA:function(){return new Map(u.G)}}};
Yo=function(u,h){u.G.set(h.TK,h);var L=u.X.get(h.TK);if(L)try{L.UM(u.resolve(h.TK))}catch(Z){L.ZV(Z)}};
NX=function(u,h,L,Z){Z=Z===void 0?!1:Z;if(L.indexOf(h)>-1)throw Error("Deps cycle for: "+h);if(u.N.has(h))return u.N.get(h);if(!u.G.has(h)){if(Z)return;throw Error("No provider for: "+h);}Z=u.G.get(h);L.push(h);if(Z.oU!==void 0)var y=Z.oU;else if(Z.hsg)y=Z[o6]?r51(u,Z[o6],L):[],y=Z.hsg.apply(Z,g.l(y));else if(Z.rV){y=Z.rV;var R=y[o6]?r51(u,y[o6],L):[];y=new (Function.prototype.bind.apply(y,[null].concat(g.l(R))))}else throw Error("Could not resolve providers for: "+h);L.pop();Z.TWI||u.N.set(h,y);
return y};
r51=function(u,h,L){return h?h.map(function(Z){return Z instanceof Tt?NX(u,Z.key,L,!0):NX(u,Z,L)}):[]};
Gt=function(){U2||(U2=new HPY);return U2};
r5=function(){var u,h;return"h5vcc"in H5&&((u=H5.h5vcc.traceEvent)==null?0:u.traceBegin)&&((h=H5.h5vcc.traceEvent)==null?0:h.traceEnd)?1:"performance"in H5&&H5.performance.mark&&H5.performance.measure?2:0};
B5=function(u){var h=r5();switch(h){case 1:H5.h5vcc.traceEvent.traceBegin("YTLR",u);break;case 2:H5.performance.mark(u+"-start");break;case 0:break;default:yx(h,"unknown trace type")}};
Bgn=function(u){var h=r5();switch(h){case 1:H5.h5vcc.traceEvent.traceEnd("YTLR",u);break;case 2:h=u+"-start";var L=u+"-end";H5.performance.mark(L);H5.performance.measure(u,h,L);break;case 0:break;default:yx(h,"unknown trace type")}};
zNY=function(u){var h,L;(L=(h=window).onerror)==null||L.call(h,u.message,"",0,0,u)};
mIY=function(u){var h=this;var L=L===void 0?0:L;var Z=Z===void 0?g.k9():Z;this.X=L;this.scheduler=Z;this.N=new g.Ab;this.G=u;for(u={uE:0};u.uE<this.G.length;u={cN:void 0,uE:u.uE},u.uE++)u.cN=this.G[u.uE],L=function(y){return function(){y.cN.FX();h.G[y.uE].sJ=!0;h.G.every(function(R){return R.sJ===!0})&&h.N.resolve()}}(u),Z=FA(L,zt(this,u.cN)),this.G[u.uE]=Object.assign({},u.cN,{FX:L,
jobId:Z})};
dI1=function(u){var h=Array.from(u.G.keys()).sort(function(Z,y){return zt(u,u.G[y])-zt(u,u.G[Z])});
h=g.C(h);for(var L=h.next();!L.done;L=h.next())L=u.G[L.value],L.jobId===void 0||L.sJ||(u.scheduler.OA(L.jobId),FA(L.FX,10))};
zt=function(u,h){var L;return(L=h.priority)!=null?L:u.X};
d5=function(u){this.state=u;this.plugins=[];this.X=void 0;this.B={};mU&&B5(this.state)};
VpR=function(u,h){var L=h.filter(function(y){return V8(u,y)===10}),Z=h.filter(function(y){return V8(u,y)!==10});
return u.B.FJg?function(){var y=g.NL.apply(0,arguments);return g.G(function(R){if(R.G==1)return g.N(R,u.D3I.apply(u,[L].concat(g.l(y))),2);u.Al.apply(u,[Z].concat(g.l(y)));g.i1(R)})}:function(){var y=g.NL.apply(0,arguments);
u.rad.apply(u,[L].concat(g.l(y)));u.Al.apply(u,[Z].concat(g.l(y)))}};
V8=function(u,h){var L,Z;return(Z=(L=u.X)!=null?L:h.priority)!=null?Z:0};
nr=function(u){mU&&u&&B5(u)};
s2=function(u){mU&&u&&Bgn(u)};
sJf=function(u,h,L){n7e&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+u.constructor.name+"] '"+u.state+"' to '"+h+"'"),console.log("with message: ",L),console.groupEnd())};
w5=function(u){if(g.MI("web_lifecycle_error_handling_killswitch"))return u();try{return u()}catch(h){zNY(h)}};
es=function(u){d5.call(this,u===void 0?"none":u);this.G=null;this.X=10;this.transitions=[{from:"none",le:"application_navigating",action:this.T},{from:"application_navigating",le:"none",action:this.C},{from:"application_navigating",le:"application_navigating",action:function(){}},
{from:"none",le:"none",action:function(){}}]};
wSa=function(){a6||(a6=new es);return a6};
$o=function(){var u=this;this.store={};this.G=0;this.N={};this.zd={K0w:function(){return u.G}}};
FR=function(u,h){var L=tQ(h);if(u.N[L])return u.N[L];var Z=Object.keys(u.store)||[];if(Z.length<=1&&tQ(h)===Z[0])return Z;for(var y=[],R=0;R<Z.length;R++){var p=Z[R].split("/");if(W5(h.auth,p[0])){var J=h.isJspb;W5(J===void 0?"undefined":J?"true":"false",p[1])&&W5(h.cttAuthInfo,p[2])&&(J=h.tier,J=J===void 0?"undefined":JSON.stringify(J),W5(J,p[3])&&y.push(Z[R]))}}return u.N[L]=y};
W5=function(u,h){return u===void 0||u==="undefined"?!0:u===h};
tQ=function(u){return[u.auth===void 0?"undefined":u.auth,u.isJspb===void 0?"undefined":u.isJspb,u.cttAuthInfo===void 0?"undefined":u.cttAuthInfo,u.tier===void 0?"undefined":u.tier].join("/")};
bg=function(){this.B=this.G=this.N=0;this.X=!1};
E2=function(){var u=g.wn("yt.logging.ims");u||(u=new $o,g.nV("yt.logging.ims",u));return u};
$Il=function(){if(rnj()&&!eNV){var u=function(L){L=L.data;if(L.op==="serializedGelBatch"){var Z=ko.get(L.key);Z&&(al1(L.serializedBatch,Z.client,Z.resolve,Z.networklessOptions,Z.isIsolated,Z.useVSSEndpoint,Z.dangerousLogToVisitorSession,Z.requestsOutstanding),ko.delete(L.key))}},h=Xt();
h&&(h.addEventListener("message",u),h.onerror=function(){ko.clear()});
eNV=!0}};
kTY=function(u,h){if(u.endpoint==="log_event"){g5(u);var L=us(u),Z=tpY(u.payload)||"",y=Wii(Z),R=200;if(y){if(y.enabled===!1&&!g.MI("web_payload_policy_disabled_killswitch"))return;R=Fin(y.tier);if(R===400){bPe(u,h);return}}j9[L]=!0;L={cttAuthInfo:L,isJspb:!1,tier:R};E2().storePayload(L,u.payload);E7R(h,!1,L,hX(Z))}};
uAV=function(u,h,L){if(h.endpoint==="log_event"){g5(void 0,h);var Z=us(h,!0),y=Wii(u),R=200;if(y){if(y.enabled===!1&&!g.MI("web_payload_policy_disabled_killswitch"))return;R=Fin(y.tier);if(R===400){g71(u,h,L);return}}j9[Z]=!0;Z={cttAuthInfo:Z,isJspb:!0,tier:R};E2().storePayload(Z,oF(h.payload));E7R(L,!0,Z,hX(u))}};
E7R=function(u,h,L,Z){function y(){Le({writeThenSend:!0},h,L.tier)}
h=h===void 0?!1:h;Z=Z===void 0?!1:Z;u&&(Zg=new u);u=g.iA("tvhtml5_logging_max_batch_ads_fork")||g.iA("tvhtml5_logging_max_batch")||g.iA("web_logging_max_batch")||100;var R=(0,g.vC)(),p=y5(h,L.tier),J=p.B;Z&&(p.X=!0);Z=0;L&&(Z=E2().getSequenceCount(L));Z>=1E3?y():Z>=u?RE||(RE=pe(function(){y();RE=void 0},0)):R-J>=10&&(jOs(h,L.tier),p.B=R)};
bPe=function(u,h){if(u.endpoint==="log_event"){g.MI("more_accurate_gel_parser")&&E2().storePayload({isJspb:!1},u.payload);g5(u);var L=us(u),Z=new Map;Z.set(L,[u.payload]);var y=tpY(u.payload)||"";h&&(Zg=new h);return new g.IT(function(R,p){Zg&&Zg.isReady()?hsj(Z,Zg,R,p,{bypassNetworkless:!0},!0,hX(y)):R()})}};
g71=function(u,h,L){if(h.endpoint==="log_event"){g5(void 0,h);var Z=us(h,!0),y=new Map;y.set(Z,[oF(h.payload)]);L&&(Zg=new L);return new g.IT(function(R){Zg&&Zg.isReady()?LYb(y,Zg,R,{bypassNetworkless:!0},!0,hX(u)):R()})}};
us=function(u,h){var L="";if(u.dangerousLogToVisitorSession)L="visitorOnlyApprovedKey";else if(u.cttAuthInfo){if(h===void 0?0:h){h=u.cttAuthInfo.token;L=u.cttAuthInfo;var Z=new ev;L.videoId?Z.setVideoId(L.videoId):L.playlistId&&uH(Z,2,Ke,lK(L.playlistId));JX[h]=Z}else h=u.cttAuthInfo,L={},h.videoId?L.videoId=h.videoId:h.playlistId&&(L.playlistId=h.playlistId),OZ[u.cttAuthInfo.token]=L;L=u.cttAuthInfo.token}return L};
Le=function(u,h,L){u=u===void 0?{}:u;h=h===void 0?!1:h;new g.IT(function(Z,y){var R=y5(h,L),p=R.X;R.X=!1;fe(R.N);fe(R.G);R.G=0;Zg&&Zg.isReady()?L===void 0&&g.MI("enable_web_tiered_gel")?ZFV(Z,y,u,h,300,p):ZFV(Z,y,u,h,L,p):(jOs(h,L),Z())})};
ZFV=function(u,h,L,Z,y,R){var p=Zg;L=L===void 0?{}:L;Z=Z===void 0?!1:Z;y=y===void 0?200:y;R=R===void 0?!1:R;var J=new Map,O=new Map,f={isJspb:Z,cttAuthInfo:void 0,tier:y},D={isJspb:Z,cttAuthInfo:void 0};if(Z){h=g.C(Object.keys(j9));for(y=h.next();!y.done;y=h.next())y=y.value,O=g.MI("enable_web_tiered_gel")?E2().smartExtractMatchingEntries({keys:[f,D],sizeLimit:1E3}):E2().extractMatchingEntries({isJspb:!0,cttAuthInfo:y}),O.length>0&&J.set(y,O),(g.MI("web_fp_via_jspb_and_json")&&L.writeThenSend||!g.MI("web_fp_via_jspb_and_json"))&&
delete j9[y];LYb(J,p,u,L,!1,R)}else{J=g.C(Object.keys(j9));for(f=J.next();!f.done;f=J.next())f=f.value,D=g.MI("enable_web_tiered_gel")?E2().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:f,tier:y},{isJspb:!1,cttAuthInfo:f}],sizeLimit:1E3}):E2().extractMatchingEntries({isJspb:!1,cttAuthInfo:f}),D.length>0&&O.set(f,D),(g.MI("web_fp_via_jspb_and_json")&&L.writeThenSend||!g.MI("web_fp_via_jspb_and_json"))&&delete j9[f];hsj(O,p,u,h,L,!1,R)}};
jOs=function(u,h){function L(){Le({writeThenSend:!0},u,h)}
u=u===void 0?!1:u;h=h===void 0?200:h;var Z=y5(u,h),y=Z===y2Y||Z===Rs1?5E3:pDn;g.MI("web_gel_timeout_cap")&&!Z.G&&(y=pe(function(){L()},y),Z.G=y);
fe(Z.N);y=g.tn("LOGGING_BATCH_TIMEOUT",g.iA("web_gel_debounce_ms",1E4));g.MI("shorten_initial_gel_batch_timeout")&&Dg&&(y=KY1);y=pe(function(){g.iA("gel_min_batch_size")>0?E2().getSequenceCount({cttAuthInfo:void 0,isJspb:u,tier:h})>=J2j&&L():L()},y);
Z.N=y};
hsj=function(u,h,L,Z,y,R,p){y=y===void 0?{}:y;var J=Math.round((0,g.vC)()),O=u.size,f=OFR(p);u=g.C(u);var D=u.next();for(p={};!D.done;p={YR:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,QM:void 0,Ke:void 0},D=u.next()){var c=g.C(D.value);D=c.next().value;c=c.next().value;p.batchRequest=g.U6({context:g.Jd(h.config_||g.Kd())});if(!g.ts(c)&&!g.MI("throw_err_when_logevent_malformed_killswitch")){Z();break}p.batchRequest.events=c;(c=OZ[D])&&fDj(p.batchRequest,D,c);delete OZ[D];p.dangerousLogToVisitorSession=
D==="visitorOnlyApprovedKey";Dri(p.batchRequest,J,p.dangerousLogToVisitorSession);c2a(y);p.QM=function(I){g.MI("start_client_gcf")&&g.sM.xB(function(){return g.G(function(A){return g.N(A,IDf(I),0)})});
O--;O||L()};
p.YR=0;p.Ke=function(I){return function(){I.YR++;if(y.bypassNetworkless&&I.YR===1)try{g.kM(h,f,I.batchRequest,c3({writeThenSend:!0},I.dangerousLogToVisitorSession,I.QM,I.Ke,R)),Dg=!1}catch(A){g.bU(A),Z()}O--;O||L()}}(p);
try{g.kM(h,f,p.batchRequest,c3(y,p.dangerousLogToVisitorSession,p.QM,p.Ke,R)),Dg=!1}catch(I){g.bU(I),Z()}}};
LYb=function(u,h,L,Z,y,R){Z=Z===void 0?{}:Z;var p=Math.round((0,g.vC)()),J={value:u.size},O=new Map([].concat(g.l(u)));O=g.C(O);for(var f=O.next();!f.done;f=O.next()){var D=g.C(f.value).next().value,c=u.get(D);f=new wZR;var I=h.config_||g.Kd(),A=new Bn,x=new YB;x8(x,1,I.GS);x8(x,2,I.eL);C9(x,16,I.tZ);x8(x,17,I.innertubeContextClientVersion);if(I.SU){var Q=I.SU,S=new qH;Q.coldConfigData&&x8(S,1,Q.coldConfigData);Q.appInstallData&&x8(S,6,Q.appInstallData);Q.coldHashData&&x8(S,3,Q.coldHashData);Q.hotHashData&&
S.Zm(Q.hotHashData);p9(x,qH,62,S)}(Q=g.Vn.devicePixelRatio)&&Q!=1&&Vx(x,65,RF(Q));Q=Qa();Q!==""&&x8(x,54,Q);Q=lA();if(Q.length>0){S=new UC;for(var v=0;v<Q.length;v++){var T=new ow;x8(T,1,Q[v].key);uH(T,2,A2n,lK(Q[v].value));O0(S,15,ow,T)}p9(A,UC,5,S)}PUs(I,x);CUb(A);Mve(x);iIV(I,x);QwL(x);g.MI("start_client_gcf")&&lJb(x);g.tn("DELEGATED_SESSION_ID")&&!g.MI("pageid_as_header_web")&&(I=new rv,x8(I,3,g.tn("DELEGATED_SESSION_ID")));!g.MI("fill_delegate_context_in_gel_killswitch")&&(Q=g.tn("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
(S=Rl(A,rv,3)||new rv,I=A,Q=x8(S,18,Q),p9(I,rv,3,Q));I=x;Q=g.C(Object.entries(jp(g.tn("DEVICE",""))));for(S=Q.next();!S.done;S=Q.next())v=g.C(S.value),S=v.next().value,v=v.next().value,S==="cbrand"?x8(I,12,v):S==="cmodel"?x8(I,13,v):S==="cbr"?x8(I,87,v):S==="cbrver"?x8(I,88,v):S==="cos"?x8(I,18,v):S==="cosver"?x8(I,19,v):S==="cplatform"&&C9(I,42,jHs(v));A.RO(x);p9(f,Bn,1,A);if(x=JX[D])a:{if(x.UX())A=1;else if(x.getPlaylistId())A=2;else break a;p9(f,ev,4,x);x=Rl(f,Bn,1)||new Bn;I=Rl(x,rv,3)||new rv;
Q=new Hn;Q.setToken(D);C9(Q,1,A);O0(I,12,Hn,Q);p9(x,rv,3,I)}delete JX[D];D=D==="visitorOnlyApprovedKey";IE()||AM(f,2,p);!D&&(A=g.tn("EVENT_ID"))&&(x=xrV(),I=new wv,x8(I,1,A),AM(I,2,x),p9(f,wv,5,I));c2a(Z);if(g.MI("jspb_serialize_with_worker")&&(A=Xt())&&Z.writeThenSend){ko.set(AX,{client:h,resolve:L,networklessOptions:Z,isIsolated:y,useVSSEndpoint:R,dangerousLogToVisitorSession:D,requestsOutstanding:J});A.postMessage({op:"gelBatchToSerialize",batchRequest:oF(f),clientEvents:c,key:AX});AX++;break}if(c){A=
[];for(x=0;x<c.length;x++)try{A.push(new sC(c[x]))}catch(U){g.bU(new g.aO("Transport failed to deserialize "+String(c[x])))}c=A}else c=[];c=g.C(c);for(A=c.next();!A.done;A=c.next())O0(f,3,sC,A.value);c={startTime:(0,g.vC)(),ticks:{},infos:{}};f=f.n0();c.ticks.geljspc=(0,g.vC)();g.MI("log_jspb_serialize_latency")&&QS("gel_jspb_serialize",c,{sampleRate:.1});al1(f,h,L,Z,y,R,D,J)}};
al1=function(u,h,L,Z,y,R,p,J){Z=Z===void 0?{}:Z;J=J===void 0?{value:0}:J;R=OFR(R);Z=c3(Z,p,function(O){g.MI("start_client_gcf")&&g.sM.xB(function(){return g.G(function(f){return g.N(f,IDf(O),0)})});
J.value--;J.value||L()},function(){J.value--;
J.value||L()},y);
Z.headers["Content-Type"]="application/json+protobuf";Z.postBodyFormat="JSPB";Z.postBody=u;g.kM(h,R,"",Z);Dg=!1};
c2a=function(u){g.MI("always_send_and_write")&&(u.writeThenSend=!1)};
c3=function(u,h,L,Z,y){u={retry:!0,onSuccess:L,onError:Z,networklessOptions:u,dangerousLogToVisitorSession:h,DRX:!!y,headers:{},postBodyFormat:"",postBody:"",compress:g.MI("compress_gel")||g.MI("compress_gel_lr")};IE()&&(u.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.vC)())));return u};
Dri=function(u,h,L){IE()||(u.requestTimeMs=String(h));g.MI("unsplit_gel_payloads_in_logs")&&(u.unsplitGelPayloadsInLogs=!0);!L&&(h=g.tn("EVENT_ID"))&&(L=xrV(),u.serializedClientEventId={serializedEventId:h,clientCounter:String(L)})};
xrV=function(){var u=g.tn("BATCH_CLIENT_COUNTER")||0;u||(u=Math.floor(Math.random()*65535/2));u++;u>65535&&(u=1);$B("BATCH_CLIENT_COUNTER",u);return u};
fDj=function(u,h,L){if(L.videoId)var Z="VIDEO";else if(L.playlistId)Z="PLAYLIST";else return;u.credentialTransferTokenTargetId=L;u.context=u.context||{};u.context.user=u.context.user||{};u.context.user.credentialTransferTokens=[{token:h,scope:Z}]};
g5=function(u,h){if(!g.wn("yt.logging.transport.enableScrapingForTest")){var L=CP("il_payload_scraping");if((L!==void 0?String(L):"")==="enable_il_payload_scraping")x1=[],g.nV("yt.logging.transport.enableScrapingForTest",!0),g.nV("yt.logging.transport.scrapedPayloadsForTesting",x1),g.nV("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.nV("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
g.nV("yt.logging.transport.scrapeClientEvent",!0);else return}L=g.wn("yt.logging.transport.scrapedPayloadsForTesting");var Z=g.wn("yt.logging.transport.payloadToScrape");h&&(h=h.payload,(h=g.wn("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(h)())&&L.push(h));h=g.wn("yt.logging.transport.scrapeClientEvent");if(Z&&Z.length>=1)for(var y=0;y<Z.length;y++)if(u&&u.payload[Z[y]])if(h)L.push(u.payload);else{var R=void 0;L.push(((R=u)==null?void 0:R.payload)[Z[y]])}g.nV("yt.logging.transport.scrapedPayloadsForTesting",
L)};
IE=function(){return g.MI("use_request_time_ms_header")||g.MI("lr_use_request_time_ms_header")};
pe=function(u,h){return g.MI("transport_use_scheduler")===!1?g.IJ(u,h):g.MI("logging_avoid_blocking_during_navigation")||g.MI("lr_logging_avoid_blocking_during_navigation")?g.bw(0,function(){if(wSa().currentState==="none")u();else{var L={};wSa().install((L.none={callback:u},L))}},h):FA(u,0,h)};
fe=function(u){g.MI("transport_use_scheduler")?g.sM.OA(u):g.x7(u)};
IDf=function(u){var h,L,Z,y,R,p,J,O,f,D;return g.G(function(c){return c.G==1?(Z=(h=u)==null?void 0:(L=h.responseContext)==null?void 0:L.globalConfigGroup,y=g.n(Z,Pw1),p=(R=Z)==null?void 0:R.hotHashData,J=g.n(Z,Cwa),f=(O=Z)==null?void 0:O.coldHashData,(D=Gt().resolve(new Tt(RD)))?p?y?g.N(c,cnb(D,p,y),2):g.N(c,cnb(D,p),2):c.KI(2):c.return()):f?J?g.N(c,IJa(D,f,J),0):g.N(c,IJa(D,f),0):c.KI(0)})};
y5=function(u,h){h=h===void 0?200:h;return u?h===300?y2Y:Mtw:h===300?Rs1:iFa};
Wii=function(u){if(g.MI("enable_web_tiered_gel")){u=QO1[u||""];var h,L,Z,y=Gt().resolve(new Tt(RD))==null?void 0:(h=pd())==null?void 0:(L=h.loggingHotConfig)==null?void 0:(Z=L.eventLoggingConfig)==null?void 0:Z.payloadPolicies;if(y)for(h=0;h<y.length;h++)if(y[h].payloadNumber===u)return y[h]}};
tpY=function(u){u=Object.keys(u);u=g.C(u);for(var h=u.next();!h.done;h=u.next())if(h=h.value,QO1[h])return h};
Fin=function(u){switch(u){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}};
hX=function(u){return u==="gelDebuggingEvent"};
OFR=function(u){return(u===void 0?0:u)&&g.MI("vss_through_gel_video_stats")?"video_stats":"log_event"};
Ce=function(u,h,L,Z){Z=Z===void 0?{}:Z;var y={},R=Math.round(Z.timestamp||(0,g.vC)());y.eventTimeMs=R<Number.MAX_SAFE_INTEGER?R:0;y[u]=h;u=v5();y.context={lastActivityMs:String(Z.timestamp||!isFinite(u)?-1:u)};Z.sequenceGroup&&!g.MI("web_gel_sequence_info_killswitch")&&(u=y.context,h=Z.sequenceGroup,h={index:lD1(h),groupKey:h},u.sequence=h,Z.endOfSequence&&delete P3[Z.sequenceGroup]);(Z.sendIsolatedPayload?bPe:kTY)({endpoint:"log_event",payload:y,cttAuthInfo:Z.cttAuthInfo,dangerousLogToVisitorSession:Z.dangerousLogToVisitorSession},
L)};
lD1=function(u){P3[u]=u in P3?P3[u]+1:0;return P3[u]};
g.pM=function(u,h,L){L=L===void 0?{}:L;var Z=g.E3;g.tn("ytLoggingEventsDefaultDisabled",!1)&&g.E3===g.E3&&(Z=null);Ce(u,h,Z,L)};
M_=function(u){this.G=u};
g.is=function(u){return new M_({trackingParams:u})};
XDL=function(u){var h=SOb++;return new M_({veType:u,veCounter:h,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})};
v9b=function(u){return g.tn("client-screen-nonce-store",{})[u===void 0?0:u]};
qOL=function(u,h){h=h===void 0?0:h;var L=g.tn("client-screen-nonce-store");L||(L={},$B("client-screen-nonce-store",L));L[h]=u};
Q5=function(u){u=u===void 0?0:u;return u===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+u};
TNR=function(u){return g.tn(Q5(u===void 0?0:u))};
g.ls=function(u){return(u=TNR(u===void 0?0:u))?new M_({veType:u,youtubeData:void 0,jspbYoutubeData:void 0}):null};
YO1=function(){var u=g.tn("csn-to-ctt-auth-info");u||(u={},$B("csn-to-ctt-auth-info",u));return u};
o9n=function(){return Object.values(g.tn("client-screen-nonce-store",{})).filter(function(u){return u!==void 0})};
g.S9=function(u){u=v9b(u===void 0?0:u);if(!u&&!g.tn("USE_CSN_FALLBACK",!0))return null;u||(u="UNDEFINED_CSN");return u?u:null};
Urj=function(u){for(var h=g.C(Object.values(NNj)),L=h.next();!L.done;L=h.next())if(g.S9(L.value)===u)return!0;return!1};
Gjw=function(u,h,L){var Z=YO1();(L=g.S9(L))&&delete Z[L];h&&(Z[u]=h)};
XY=function(u){return YO1()[u]};
r21=function(u,h,L,Z){L=L===void 0?0:L;if(u!==v9b(L)||h!==g.tn(Q5(L)))if(Gjw(u,Z,L),qOL(u,L),$B(Q5(L),h),h=function(){setTimeout(function(){u&&g.pM("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:HFi,clientScreenNonce:u})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(h)}catch(y){h()}else h()};
v3=function(u,h){var L=L===void 0?!0:L;var Z=g.tn("VALID_SESSION_TEMPDATA_DOMAINS",[]),y=g.BY(window.location.href);y&&Z.push(y);y=g.BY(u);if(g.E8(Z,y)||!y&&Sb(u,"/"))if(Z=document.createElement("a"),g.Gx(Z,u),u=Z.href)if(u=zq(u),u=QIe(u))if(L&&!h.csn&&(h.itct||h.ved)&&(h=Object.assign({csn:g.S9()},h)),R){var R=parseInt(R,10);isFinite(R)&&R>0&&BNY(u,h,R)}else BNY(u,h)};
BNY=function(u,h,L){u=zsw(u);h=h?g.nv(h):"";L=L||5;uw()&&g.rg(u,h,L)};
zsw=function(u){for(var h=g.C(mrn),L=h.next();!L.done;L=h.next())u=aT(u,L.value);return"ST-"+kd(u).toString(36)};
drl=function(u){if(u.name==="JavaException")return!0;u=u.stack;return u.includes("chrome://")||u.includes("chrome-extension://")||u.includes("moz-extension://")};
VtL=function(){this.Lv=[];this.OW=[]};
T3=function(){if(!q_){var u=q_=new VtL;u.OW.length=0;u.Lv.length=0;n9j(u,sOl)}return q_};
n9j=function(u,h){h.OW&&u.OW.push.apply(u.OW,h.OW);h.Lv&&u.Lv.push.apply(u.Lv,h.Lv)};
wDL=function(u){function h(){return u.charCodeAt(Z++)}
var L=u.length,Z=0;do{var y=Y1(h);if(y===Infinity)break;var R=y>>3;switch(y&7){case 0:y=Y1(h);if(R===2)return y;break;case 1:if(R===2)return;Z+=8;break;case 2:y=Y1(h);if(R===2)return u.substr(Z,y);Z+=y;break;case 5:if(R===2)return;Z+=4;break;default:return}}while(Z<L)};
Y1=function(u){var h=u(),L=h&127;if(h<128)return L;h=u();L|=(h&127)<<7;if(h<128)return L;h=u();L|=(h&127)<<14;if(h<128)return L;h=u();return h<128?L|(h&127)<<21:Infinity};
esn=function(u,h,L,Z){if(u)if(Array.isArray(u)){var y=Z;for(Z=0;Z<u.length&&!(u[Z]&&(y+=oE(Z,u[Z],h,L),y>500));Z++);Z=y}else if(typeof u==="object")for(y in u){if(u[y]){var R=y;var p=u[y],J=h,O=L;R=typeof p!=="string"||R!=="clickTrackingParams"&&R!=="trackingParams"?0:(p=wDL(atob(p.replace(/-/g,"+").replace(/_/g,"/"))))?oE(R+".ve",p,J,O):0;Z+=R;Z+=oE(y,u[y],h,L);if(Z>500)break}}else L[h]=N_(u),Z+=L[h].length;else L[h]=N_(u),Z+=L[h].length;return Z};
oE=function(u,h,L,Z){L+="."+u;u=N_(h);Z[L]=u;return L.length+u.length};
N_=function(u){try{return(typeof u==="string"?u:String(JSON.stringify(u))).substr(0,500)}catch(h){return"unable to serialize "+typeof u+" ("+h.message+")"}};
Ri=function(u){g.UZ(u)};
g.G3=function(u){g.UZ(u,"WARNING")};
g.UZ=function(u,h){var L=L===void 0?{}:L;L.name=g.tn("INNERTUBE_CONTEXT_CLIENT_NAME",1);L.version=g.tn("INNERTUBE_CONTEXT_CLIENT_VERSION");h=h===void 0?"ERROR":h;var Z=!1;h=h===void 0?"ERROR":h;Z=Z===void 0?!1:Z;if(u){u.hasOwnProperty("level")&&u.level&&(h=u.level);if(g.MI("console_log_js_exceptions")){var y=[];y.push("Name: "+u.name);y.push("Message: "+u.message);u.hasOwnProperty("params")&&y.push("Error Params: "+JSON.stringify(u.params));u.hasOwnProperty("args")&&y.push("Error args: "+JSON.stringify(u.args));
y.push("File name: "+u.fileName);y.push("Stacktrace: "+u.stack);window.console.log(y.join("\n"),u)}if(!(aDa>=5)){y=$rl;var R=YYn(u),p=R.message||"Unknown Error",J=R.name||"UnknownError",O=R.stack||u.N||"Not available";if(O.startsWith(J+": "+p)){var f=O.split("\n");f.shift();O=f.join("\n")}f=R.lineNumber||"Not available";R=R.fileName||"Not available";var D=0;if(u.hasOwnProperty("args")&&u.args&&u.args.length)for(var c=0;c<u.args.length&&!(D=esn(u.args[c],"params."+c,L,D),D>=500);c++);else if(u.hasOwnProperty("params")&&
u.params){var I=u.params;if(typeof u.params==="object")for(c in I){if(I[c]){var A="params."+c,x=N_(I[c]);L[A]=x;D+=A.length+x.length;if(D>500)break}}else L.params=N_(I)}if(y.length)for(c=0;c<y.length&&!(D=esn(y[c],"params.context."+c,L,D),D>=500);c++);navigator.vendor&&!L.hasOwnProperty("vendor")&&(L["device.vendor"]=navigator.vendor);L={message:p,name:J,lineNumber:f,fileName:R,stack:O,params:L,sampleWeight:1};y=Number(u.columnNumber);isNaN(y)||(L.lineNumber=L.lineNumber+":"+y);if(u.level==="IGNORED")u=
0;else a:{u=T3();y=g.C(u.OW);for(p=y.next();!p.done;p=y.next())if(p=p.value,L.message&&L.message.match(p.rC)){u=p.weight;break a}u=g.C(u.Lv);for(y=u.next();!y.done;y=u.next())if(y=y.value,y.callback(L)){u=y.weight;break a}u=1}L.sampleWeight=u;u=g.C(ttj);for(y=u.next();!y.done;y=u.next())if(y=y.value,y.yv[L.name])for(J=g.C(y.yv[L.name]),p=J.next();!p.done;p=J.next())if(c=p.value,p=L.message.match(c.YB)){L.params["params.error.original"]=p[0];J=c.groups;c={};for(f=0;f<J.length;f++)c[J[f]]=p[f+1],L.params["params.error."+
J[f]]=p[f+1];L.message=y.L1(c);break}L.params||(L.params={});u=T3();L.params["params.errorServiceSignature"]="msg="+u.OW.length+"&cb="+u.Lv.length;L.params["params.serviceWorker"]="false";g.Vn.document&&g.Vn.document.querySelectorAll&&(L.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new rb(HM,"sample")).constructor!==rb&&(L.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(L);if(L.sampleWeight!==0&&!WYf.has(L.message)){if(Z&&
g.MI("web_enable_error_204"))FYR(h===void 0?"ERROR":h,L);else{h=h===void 0?"ERROR":h;h==="ERROR"?(H3.publish("handleError",L),g.MI("record_app_crashed_web")&&bFn===0&&L.sampleWeight===1&&(bFn++,Z={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.MI("report_client_error_with_app_crash_ks")||(Z.systemHealth={crashData:{clientError:{logMessage:{message:L.message}}}}),g.pM("appCrashed",Z)),E9Y++):h==="WARNING"&&H3.publish("handleWarning",L);if(g.MI("kevlar_gel_error_routing")){Z=h;u=void 0;u=u===void 0?{}:u;
b:{y=g.C(kjl);for(p=y.next();!p.done;p=y.next())if(g.nP(p.value.toLowerCase())){y=!0;break b}y=!1}if(y)u=void 0;else{p={stackTrace:L.stack};L.fileName&&(p.filename=L.fileName);y=L.lineNumber&&L.lineNumber.split?L.lineNumber.split(":"):[];y.length!==0&&(y.length!==1||isNaN(Number(y[0]))?y.length!==2||isNaN(Number(y[0]))||isNaN(Number(y[1]))||(p.lineNumber=Number(y[0]),p.columnNumber=Number(y[1])):p.lineNumber=Number(y[0]));y={level:"ERROR_LEVEL_UNKNOWN",message:L.message,errorClassName:L.name,sampleWeight:L.sampleWeight};
Z==="ERROR"?y.level="ERROR_LEVEL_ERROR":Z==="WARNING"&&(y.level="ERROR_LEVEL_WARNNING");p={isObfuscated:!0,browserStackInfo:p};u.pageUrl=window.location.href;u.kvPairs=[];g.tn("FEXP_EXPERIMENTS")&&(u.experimentIds=g.tn("FEXP_EXPERIMENTS"));J=g.tn("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Wn("web_disable_gel_stp_ecatcher_killswitch")&&J)for(c=g.C(Object.keys(J)),f=c.next();!f.done;f=c.next())f=f.value,u.kvPairs.push({key:f,value:String(J[f])});if(J=L.params)for(c=g.C(Object.keys(J)),f=c.next();!f.done;f=
c.next())f=f.value,u.kvPairs.push({key:"client."+f,value:String(J[f])});J=g.tn("SERVER_NAME");c=g.tn("SERVER_VERSION");J&&c&&(u.kvPairs.push({key:"server.name",value:J}),u.kvPairs.push({key:"server.version",value:c}));u={errorMetadata:u,stackTrace:p,logMessage:y}}if(u&&(g.pM("clientError",u),Z==="ERROR"||g.MI("errors_flush_gel_always_killswitch")))a:{if(g.MI("web_fp_via_jspb")){Z=!0;Z=Z===void 0?!1:Z;u=g9s;g9s=[];if(u)for(u=g.C(u),y=u.next();!y.done;y=u.next())y=y.value,Z?Ce(y.payloadName,y.payload,
g.E3,y.options):g.pM(y.payloadName,y.payload,y.options);Le(void 0,!0);if(!g.MI("web_fp_via_jspb_and_json"))break a}Le(void 0,!1)}}g.MI("suppress_error_204_logging")||FYR(h,L)}try{WYf.add(L.message)}catch(Q){}aDa++}}}};
FYR=function(u,h){var L=h.params||{};u={urlParams:{a:"logerror",t:"jserror",type:h.name,msg:h.message.substr(0,250),line:h.lineNumber,level:u,"client.name":L.name},postParams:{url:g.tn("PAGE_NAME",window.location.href),file:h.fileName},method:"POST"};L.version&&(u["client.version"]=L.version);if(u.postParams){h.stack&&(u.postParams.stack=h.stack);h=g.C(Object.keys(L));for(var Z=h.next();!Z.done;Z=h.next())Z=Z.value,u.postParams["client."+Z]=L[Z];if(L=g.tn("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(h=
g.C(Object.keys(L)),Z=h.next();!Z.done;Z=h.next())Z=Z.value,u.postParams[Z]=L[Z];(L=g.tn("LAVA_VERSION"))&&(u.postParams["lava.version"]=L);L=g.tn("SERVER_NAME");h=g.tn("SERVER_VERSION");L&&h&&(u.postParams["server.name"]=L,u.postParams["server.version"]=h)}g.XI(g.tn("ECATCHER_REPORT_HOST","")+"/error_204",u)};
uUL=function(u){var h=g.NL.apply(1,arguments);u.args||(u.args=[]);u.args.push.apply(u.args,g.l(h))};
z3=function(u){var h=g.n(u,rD);if(h)return h;if((h=g.n(u,jia))&&h.commands)return hSw(h.commands);if((h=g.n(u,Lml))&&h.commands)return hSw(h.commands);if((u=g.n(u,ZMn))&&u.identifier&&u.command&&(B3||(B3=[]),!B3.includes(u.identifier)))return B3.push(u.identifier),g.n(u.command,rD)};
hSw=function(u){if(u.length!==0){var h=[];u=g.C(u);for(var L=u.next();!L.done;L=u.next())(L=z3(L.value))&&h.push(L);return{commandExecutorCommand:{commands:h}}}};
g.mG=function(u,h,L){L===void 0?delete u[h.name]:u[h.name]=L};
yve=function(u){for(var h=0,L=0;L<u.length;L++)h=h*31+u.charCodeAt(L),L<u.length-1&&(h%=0x800000000000);return h%1E5};
dD=function(u){fd.call(this,1,arguments);this.csn=u};
pCY=function(u,h,L,Z,y,R,p,J){var O=RSR(),f=new M_({veType:h,youtubeData:R,jspbYoutubeData:void 0});R=V5({},O);y&&(R.cttAuthInfo=y);y={csn:O,pageVe:f.getAsJson()};g.MI("expectation_logging")&&J&&J.screenCreatedLoggingExpectations&&(y.screenCreatedLoggingExpectations=J.screenCreatedLoggingExpectations);L&&L.visualElement?(y.implicitGesture={parentCsn:L.clientScreenNonce,gesturedVe:L.visualElement.getAsJson()},p&&(y.implicitGesture.gestureType=p)):L&&g.G3(new g.aO("newScreen() parent element does not have a VE - rootVe",
h));Z&&(y.cloneCsn=Z);u?Ce("screenCreated",y,u,R):g.pM("screenCreated",y,R);ID(Tv1,new dD(O));ne.clear();sZ.clear();wD.clear();return O};
g.aE=function(u,h,L,Z,y){g.e9(u,h,L,[Z],y===void 0?!1:y)};
g.e9=function(u,h,L,Z,y){y=y===void 0?!1:y;for(var R=V5({cttAuthInfo:XY(h)||void 0},h),p=g.C(Z),J=p.next();!J.done;J=p.next()){J=J.value;var O=J.getAsJson();(g.Tc(O)||!O.trackingParams&&!O.veType)&&g.G3(Error("Child VE logged with no data"));if(g.MI("no_client_ve_attach_unless_shown")){var f=$1(J,h);if(O.veType&&!sZ.has(f)&&!wD.has(f)&&!y){if(!g.MI("il_attach_cache_limit")||ne.size<1E3){ne.set(f,[u,h,L,J]);return}g.MI("il_attach_cache_limit")&&ne.size>1E3&&g.G3(new g.aO("IL Attach cache exceeded limit"))}J=
$1(L,h);ne.has(J)?tX(L,h):wD.set(J,!0)}}Z=Z.filter(function(D){D.csn!==h?(D.csn=h,D=!0):D=!1;return D});
L={csn:h,parentVe:L.getAsJson(),childVes:g.Xx(Z,function(D){return D.getAsJson()})};
h==="UNDEFINED_CSN"?W3("visualElementAttached",R,L):u?Ce("visualElementAttached",L,u,R):g.pM("visualElementAttached",L,R)};
Kmw=function(u,h,L,Z,y){FY(L,h);Z=V5({cttAuthInfo:XY(h)||void 0},h);L={csn:h,ve:L.getAsJson(),eventType:1};y&&(L.clientData=y);h==="UNDEFINED_CSN"?W3("visualElementShown",Z,L):u?Ce("visualElementShown",L,u,Z):g.pM("visualElementShown",L,Z)};
Jvi=function(u,h,L,Z){var y=(Z=Z===void 0?!1:Z)?16:8;Z=V5({cttAuthInfo:XY(h)||void 0,endOfSequence:Z},h);L={csn:h,ve:L.getAsJson(),eventType:y};h==="UNDEFINED_CSN"?W3("visualElementHidden",Z,L):u?Ce("visualElementHidden",L,u,Z):g.pM("visualElementHidden",L,Z)};
OMn=function(u,h,L,Z,y){bs(u,h,L,void 0,Z,y)};
bs=function(u,h,L,Z,y){FY(L,h);Z=Z||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var R=V5({cttAuthInfo:XY(h)||void 0},h);L={csn:h,ve:L.getAsJson(),gestureType:Z};y&&(L.clientData=y);h==="UNDEFINED_CSN"?W3("visualElementGestured",R,L):u?Ce("visualElementGestured",L,u,R):g.pM("visualElementGestured",L,R)};
f3j=function(){var u=MX(16);for(var h=[],L=0;L<u.length;L++)h.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(u[L]&63));return h.join("")};
W3=function(u,h,L){EZ.push({payloadName:u,payload:L,FII:void 0,options:h});k1||(k1=G6b())};
Nvw=function(u){if(EZ){for(var h=g.C(EZ),L=h.next();!L.done;L=h.next())L=L.value,L.payload&&(L.payload.csn=u.csn,g.pM(L.payloadName,L.payload,L.options));EZ.length=0}k1=0};
$1=function(u,h){return""+u.getAsJson().veType+u.getAsJson().veCounter+h};
FY=function(u,h){if(g.MI("no_client_ve_attach_unless_shown")){var L=$1(u,h);sZ.set(L,!0);tX(u,h)}};
tX=function(u,h){u=$1(u,h);ne.has(u)&&(h=ne.get(u)||[],g.aE(h[0],h[1],h[2],h[3],!0),ne.delete(u))};
V5=function(u,h){g.MI("log_sequence_info_on_gel_web")&&(u.sequenceGroup=h);return u};
g.gD=function(u,h,L,Z){g.EC(Kmw)(void 0,u,h,L,Z,void 0)};
g.u2=function(u,h){g.EC(function(){g.A8(h,function(L){FY(L,u);var Z=V5({cttAuthInfo:XY(u)||void 0},u);L={csn:u,ve:L.getAsJson(),eventType:4};u==="UNDEFINED_CSN"?W3("visualElementShown",Z,L):g.pM("visualElementShown",L,Z)})})()};
g.j0=function(u,h){g.EC(function(){g.A8(h,function(L){Jvi(void 0,u,L)})})()};
g.hm=function(u,h,L){g.EC(OMn)(void 0,u,h,L,void 0)};
Zd=function(u,h,L,Z,y,R){L=L===void 0?{}:L;this.componentType=u;this.renderer=h===void 0?null:h;this.macros=L;this.layoutId=Z;this.interactionLoggingClientData=y;this.G=R;this.id=Lu(u)};
Lu=function(u){var h=":"+(VN.getInstance().G++).toString(36);return u+h};
g.yV=function(u){u=u===void 0?!1:u;g.m.call(this);this.SY=new g.vx(u);g.V(this,this.SY)};
RG=function(){var u="ytp-id-"+DpY.toString();DpY++;return u};
g.pu=function(u){g.m.call(this);this.vJ={};this.A4={};this.element=this.createElement(u)};
Ku=function(u,h,L,Z){if(Z.substring(0,2)==="{{")u.A4[Z]=[h,L];else return Z};
cvf=function(u,h){var L=[];if(!h)return L;h=g.C(h);for(var Z=h.next();!Z.done;Z=h.next())if(Z=Z.value,Z!=null){var y=Z.nodeType;y===1||y===3?L.push(Z):Z&&typeof Z.K==="string"?L.push(u.createElement(Z)):Z.element?L.push(Z.element):typeof Z==="string"&&Z.indexOf("\n")!==-1?Z.split("\n").forEach(function(R,p){p>0&&L.push(g.kJ("BR"));L.push(g.gb(R))}):L.push(g.gb(Z))}return L};
Jm=function(u,h,L,Z){if(L==="child"){g.jK(h);var y;Z===void 0?y=void 0:y=!Array.isArray(Z)||Z&&typeof Z.K==="string"?[Z]:Z;L=cvf(u,y);L=g.C(L);for(u=L.next();!u.done;u=L.next())h.appendChild(u.value)}else L==="style"?g.Oz(h,"cssText",Z?Z:""):Z===null||Z===void 0?h.removeAttribute(L):(u=Z.toString(),L==="href"&&(u=g.Tx(g.NN(u))),h.setAttribute(L,u))};
g.a=function(u){g.pu.call(this,u);this.BJ=!0;this.T=!1;this.listeners=[]};
g.OD=function(u){g.a.call(this,u);this.jd=new g.yV;g.V(this,this.jd)};
fu=function(u,h,L,Z,y,R,p){p=p===void 0?null:p;g.OD.call(this,h);this.api=u;this.macros={};this.componentType=L;this.V=this.S=null;this.e7=p;this.layoutId=Z;this.interactionLoggingClientData=y;this.HX=R;this.ZI=null;this.uO=new P5(this.element);g.V(this,this.uO);this.xl=this.W(this.element,"click",this.onClick);this.gw=[];this.XB=new o7f(this.onClick,this);g.V(this,this.XB);this.wm=!1;this.T7=this.AB=null};
Dd=function(u,h){u=u===void 0?null:u;h=h===void 0?null:h;if(u==null)return g.G3(Error("Got null or undefined adText object")),"";var L=g.ES(u.text);if(!u.isTemplated)return L;if(h==null)return g.G3(Error("Missing required parameters for a templated message")),L;u=g.C(Object.entries(h));for(h=u.next();!h.done;h=u.next()){var Z=g.C(h.value);h=Z.next().value;Z=Z.next().value;L=L.replace("{"+h+"}",Z)}return L};
I3n=function(u){u=u===void 0?null:u;return u!=null&&(u=u.thumbnail,u!=null&&u.thumbnails!=null&&u.thumbnails.length!=0&&u.thumbnails[0].url!=null)?g.ES(u.thumbnails[0].url):""};
Avn=function(u){u=u===void 0?null:u;return u!=null&&(u=u.thumbnail,u!=null&&u.thumbnails!=null&&u.thumbnails.length!=0&&u.thumbnails[0].width!=null&&u.thumbnails[0].height!=null)?new g.II(u.thumbnails[0].width||0,u.thumbnails[0].height||0):new g.II(0,0)};
g.cL=function(u){if(u.simpleText)return u.simpleText;if(u.runs){var h=[];u=g.C(u.runs);for(var L=u.next();!L.done;L=u.next())L=L.value,L.text&&h.push(L.text);return h.join("")}return""};
g.IG=function(u){if(u.simpleText)return u=document.createTextNode(u.simpleText),u;var h=[];if(u.runs)for(var L=0;L<u.runs.length;L++){var Z=u.runs[L];if(Z.text){var y=h,R=y.push,p=null;var J=Z.text;Z.bold&&(p=E6("B",null,p||J));Z.italics&&(p=E6("I",null,p||J));Z.strikethrough&&(p=E6("STRIKE",null,p||J));Z.navigationEndpoint&&Z.navigationEndpoint.urlEndpoint&&(Z=Z.navigationEndpoint.urlEndpoint,p=E6("A",null,p||J),g.Gx(p,Z.url),Z.target=="TARGET_NEW_WINDOW"&&(p.target="_blank"));J=p||E6("SPAN",null,
J);R.call(y,J)}}return h.length==1?h[0]:E6("SPAN",null,h)};
g.xpj=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,J:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
Am=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",J:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.xS=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},Z:[{K:"path",J:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.PL=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},Z:[{K:"path",J:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
Pxe=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},Z:[{K:"path",J:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{K:"path",J:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
Cxl=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},Z:[{K:"path",XJ:!0,J:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
MF1=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},Z:[{K:"path",XJ:!0,J:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.Cu=function(){return{K:"svg",J:{height:"100%",viewBox:"0 0 24 24",width:"100%"},Z:[{K:"path",J:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
iM1=function(){return{K:"svg",J:{height:"100%",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",J:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
Qib=function(){return{K:"svg",J:{viewBox:"0 0 24 24"},Z:[{K:"path",J:{d:"M0 0h24v24H0z",fill:"none"}},{K:"path",J:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
l3b=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}};
SWf=function(){return{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{K:"path",J:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
fill:"white","fill-rule":"evenodd"}}]}};
XCe=function(){return{K:"svg",J:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},Z:[{K:"path",J:{d:"M0 0h48v48H0z",fill:"none"}},{K:"path",J:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
vwl=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"m 17,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
qWa=function(){return{K:"svg",J:{viewBox:"0 0 24 24"},Z:[{K:"path",J:{d:"M0 0h24v24H0z",fill:"none"}},{K:"path",J:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
Mh=function(){return{K:"svg",J:{height:"100%",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",J:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
Tcs=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},Z:[{K:"path",XJ:!0,J:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
i2=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.QV=function(){return{K:"svg",J:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},Z:[{K:"path",J:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
l2=function(){return{K:"svg",J:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},Z:[{K:"path",J:{d:"M0 0h48v48H0z",fill:"none"}},{K:"path",J:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]}};
YWR=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
own=function(){return{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{K:"path",U:"ytp-svg-fill",J:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}};
Ncl=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,J:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
S0=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
Upi=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.XX=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
g.vL=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,J:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
g.qh=function(){return{K:"svg",J:{height:"100%",viewBox:"0 0 16 16",width:"100%"},Z:[{K:"path",J:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}};
Grw=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
TC=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
YS=function(u,h,L){h=h===void 0?!1:h;L=L===void 0?!1:L;if(!u)return null;switch(u.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return L?{K:"svg",J:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},Z:[{K:"path",J:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:l2();case "CHECK_BOX":return{K:"svg",J:{height:"100%",viewBox:"0 0 24 24",width:"100%"},Z:[{K:"path",J:{d:"M0 0h24v24H0z",fill:"none"}},{K:"path",J:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",
fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{K:"svg",J:{height:"100%",viewBox:"0 0 24 24",width:"100%"},Z:[{K:"path",J:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{K:"path",J:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.Cu();case "INFO_OUTLINE":return h?{K:"svg",J:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},Z:[{K:"path",J:{d:"M430.09-270.8h101.34V-528H430.09v257.2Zm49.52-338.03q20.94 0 35.34-14.01 14.4-14.01 14.4-34.95 0-20.94-14.01-35.34-14.01-14.39-34.95-14.39-20.94 0-35.34 14.01-14.4 14.01-14.4 34.95 0 20.94 14.01 35.34 14.01 14.39 34.95 14.39Zm.67 548.18q-86.64 0-163.19-32.66-76.56-32.66-133.84-89.94t-89.94-133.8q-32.66-76.51-32.66-163.41 0-87.15 32.72-163.31t90.14-133.61q57.42-57.44 133.79-89.7 76.38-32.27 163.16-32.27 87.14 0 163.31 32.26 76.16 32.26 133.61 89.71 57.45 57.45 89.71 133.86 32.26 76.42 32.26 163.33 0 86.91-32.27 163.08-32.26 76.18-89.7 133.6-57.45 57.42-133.83 90.14-76.39 32.72-163.27 32.72Zm-.33-105.18q131.13 0 222.68-91.49 91.54-91.49 91.54-222.63 0-131.13-91.49-222.68-91.49-91.54-222.63-91.54-131.13 0-222.68 91.49-91.54 91.49-91.54 222.63 0 131.13 91.49 222.68 91.49 91.54 222.63 91.54ZM480-480Z"}}]}:
XCe();case "REMOVE_CIRCLE":return{K:"svg",J:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},Z:[{K:"path",J:{d:"M0 0h24v24H0z",fill:"none"}},{K:"path",J:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return i2();case "SKIP_NEXT_NEW":return{K:"svg",J:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},Z:[{K:"path",J:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return qWa();
case "DISLIKE":return Qib();default:return g.G3(new g.aO("Unexpected icon:",u)),null}};
oG=function(u,h,L,Z,y,R,p,J,O){y=y===void 0?[]:y;p=p===void 0?!1:p;O=O===void 0?!1:O;y={K:"button",CI:["ytp-ad-button"].concat(y)};J!=null&&(y.J={tabindex:J});fu.call(this,u,y,R===void 0?"button":R,h,L,Z);this.G=this.N=this.X=null;this.C=p;this.B=O;this.hide()};
HMV=function(u){var h=null;u.G!=null&&(h=[u.G.serviceEndpoint,u.G.navigationEndpoint].filter(function(L){return L!=null}),u.G.command&&(h=h.concat(u.G.command)));
return h||[]};
Nh=function(){g.m.call(this);var u=this;this.G=new Map;this.N=FcY(function(h){if(h.target&&(h=u.G.get(h.target))&&h)for(var L=0;L<h.length;L++)g.dx(h[L])})};
rvf=function(){UD==null&&(UD=new Nh);return UD};
GC=function(u,h){if(u.simpleText){a:{u=u.simpleText;if(h&&(h=Bcw(u))){h=E6("SPAN",null,h);break a}h=g.gb(u)}return h}var L=[];if(u.runs)for(var Z=0;Z<u.runs.length;Z++){var y=u.runs[Z];y.text&&L.push(zSb(y,h))}return L.length==1?L[0]:E6("SPAN",null,L)};
zSb=function(u,h){var L=null,Z=u.text;h&&(Z=Bcw(Z)||Z);u.bold&&(L=E6("B",null,L||Z));u.italics&&(L=E6("I",null,L||Z));u.strikethrough&&(L=E6("STRIKE",null,L||Z));u.navigationEndpoint&&g.n(u.navigationEndpoint,g.HL)&&(h=g.n(u.navigationEndpoint,g.HL),L=E6("A",null,L||Z),g.Gx(L,h.url),h.target=="TARGET_NEW_WINDOW"&&(L.target="_blank"),u=u.navigationEndpoint.loggingUrls)&&(u=u.map(function(y){return y.baseUrl}),rvf().register(L,u),g.yN(L,"ytp-ad-has-logging-urls"));
return L||E6("SPAN",null,Z)};
Bcw=function(u){u=u.split(/(?:\r\n|\r|\n)/g);if(u.length>1){for(var h=[u[0]],L=1;L<u.length;L++)h.push(E6("BR")),h.push(u[L]);return h}return null};
rs=function(u,h,L,Z,y,R,p,J,O){R=R===void 0?!1:R;p=p===void 0?[]:p;O=O===void 0?!1:O;fu.call(this,u,{K:"span",CI:["ytp-ad-hover-text-button"].concat(p)},J===void 0?"ad-hover-text-button":J,h,L,Z);this.button=this.N=null;this.Y=R;this.C=y;this.X=O;this.hide()};
BL=function(u){return u&&u.thumbnails&&(u.thumbnails||null).length!=0&&u.thumbnails[0].url?g.ES(u.thumbnails[0].url):""};
zC=function(u,h,L,Z,y,R){R=R===void 0?!1:R;fu.call(this,u,{K:"img",U:"ytp-ad-image"},"ad-image",h,L,Z,y===void 0?null:y);this.G=R;this.hide()};
mP=function(u,h,L,Z,y,R){y=y===void 0?[]:y;fu.call(this,u,{K:"div",CI:["ytp-ad-confirm-dialog-background"],Z:[{K:"div",U:"ytp-ad-confirm-dialog-container",Z:[{K:"div",CI:["ytp-ad-confirm-dialog"].concat(y),J:{role:"dialog",tabindex:"-1"},Z:[{K:"div",U:"ytp-ad-confirm-dialog-title",dw:"{{title}}"},{K:"div",U:"ytp-ad-confirm-dialog-messages"},{K:"div",U:"ytp-ad-confirm-dialog-confirm-container",Z:[{K:"button",U:"ytp-ad-confirm-dialog-cancel-button",dw:"{{cancelLabel}}"},{K:"button",U:"ytp-ad-confirm-dialog-confirm-button",
dw:"{{confirmLabel}}"}]}]}]},{K:"button",CI:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],Z:[{K:"span",U:"ytp-ad-button-icon",Z:[g.Cu()]}]}]},R===void 0?"confirm-dialog":R,h,L,Z);this.Y=this.BX("ytp-ad-confirm-dialog-close-overlay-button");this.B=this.BX("ytp-ad-confirm-dialog-cancel-button");this.C=this.BX("ytp-ad-confirm-dialog-confirm-button");this.RH=this.BX("ytp-ad-confirm-dialog-messages");this.X=null;this.G=new vD;g.V(this,this.G);this.N=null;this.hide()};
mpn=function(u,h){if(h.title){var L=g.cL(h.title);u.updateValue("title",L)}if(h.dialogMessages){L=g.C(h.dialogMessages);for(var Z=L.next();!Z.done;Z=L.next())Z=GC(Z.value),u.RH.appendChild(Z)}h.cancelLabel&&(L=g.cL(h.cancelLabel),u.updateValue("cancelLabel",L),u.G.W(u.B,"click",function(y){return u.jV(y)}));
h.confirmLabel&&(h=g.cL(h.confirmLabel),u.updateValue("confirmLabel",h),u.G.W(u.C,"click",function(y){return u.X_(y)}));
u.G.W(u.Y,"click",function(y){return u.ML(y)})};
ds=function(u,h,L,Z,y,R){y=y===void 0?[]:y;R=R===void 0?"toggle-button":R;var p=Lu("ytp-ad-toggle-button-input"),J={role:"button","aria-label":"{{tooltipText}}"};u.L().experiments.tB("fix_h5_toggle_button_a11y")&&(J.tabindex="0");u.L().experiments.tB("fix_toggle_button_role_for_ad_components")&&(J.role="checkbox");fu.call(this,u,{K:"div",CI:["ytp-ad-toggle-button"].concat(y),Z:[{K:"label",U:"ytp-ad-toggle-button-label",J:{"for":p},Z:[{K:"span",U:"ytp-ad-toggle-button-icon",J:J,Z:[{K:"span",U:"ytp-ad-toggle-button-untoggled-icon",
dw:"{{untoggledIconTemplateSpec}}"},{K:"span",U:"ytp-ad-toggle-button-toggled-icon",dw:"{{toggledIconTemplateSpec}}"}]},{K:"input",U:"ytp-ad-toggle-button-input",J:{id:p,type:"checkbox"}},{K:"span",U:"ytp-ad-toggle-button-text",dw:"{{buttonText}}"},{K:"span",U:"ytp-ad-toggle-button-tooltip",dw:"{{tooltipText}}"}]}]},R,h,L,Z);this.B=this.BX("ytp-ad-toggle-button");this.G=this.BX("ytp-ad-toggle-button-input");this.N=this.BX("ytp-ad-toggle-button-icon");this.Y=this.BX("ytp-ad-toggle-button-untoggled-icon");
this.C=this.BX("ytp-ad-toggle-button-toggled-icon");this.DI=this.BX("ytp-ad-toggle-button-text");this.X=null;this.RH=!1;this.hide()};
VV=function(u){u.RH&&(u.isToggled()?(g.lL(u.Y,!1),g.lL(u.C,!0),u.api.L().experiments.tB("fix_toggle_button_role_for_ad_components")&&u.N.setAttribute("aria-checked",!0)):(g.lL(u.Y,!0),g.lL(u.C,!1),u.api.L().experiments.tB("fix_toggle_button_role_for_ad_components")&&u.N.setAttribute("aria-checked",!1)))};
dpn=function(u,h){var L=null;u.X&&(L=(h?[u.X.defaultServiceEndpoint,u.X.defaultNavigationEndpoint]:[u.X.toggledServiceEndpoint]).filter(function(Z){return Z!=null}));
return L||[]};
VFe=function(u,h,L){this.actionType=h;this.id=L;this.content=u};
nu=function(u){vD.call(this);this.G=u;this.W(this.G,"onAdUxUpdate",this.C)};
sD=function(u,h,L,Z){fu.call(this,u,{K:"div",U:"ytp-ad-feedback-dialog-background",Z:[{K:"div",U:"ytp-ad-feedback-dialog-container",Z:[{K:"div",U:"ytp-ad-feedback-dialog-form",J:{role:"dialog",tabindex:"-1"},Z:[{K:"div",U:"ytp-ad-feedback-dialog-title",Z:[{K:"span",dw:"{{title}}"}]},{K:"span",U:"ytp-ad-info-dialog-feedback-options-title",dw:"{{reasonsTitle}}"},{K:"div",U:"ytp-ad-info-dialog-feedback-options"},{K:"div",U:"ytp-ad-feedback-dialog-confirm-container",Z:[{K:"button",U:"ytp-ad-feedback-dialog-cancel-button",
dw:"{{cancelLabel}}"},{K:"button",U:"ytp-ad-feedback-dialog-confirm-button",dw:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",h,L,Z);this.B=[];this.G=null;this.C=this.BX("ytp-ad-feedback-dialog-cancel-button");this.Y=this.BX("ytp-ad-feedback-dialog-confirm-button");this.RH=this.BX("ytp-ad-info-dialog-feedback-options");this.DI=this.BX("ytp-ad-feedback-dialog-title");this.X=this.N=null;this.hide()};
eSn=function(u,h){var L=h.cancelRenderer&&h.cancelRenderer.buttonRenderer||null;L&&(u.G=new oG(u.api,u.layoutId,u.interactionLoggingClientData,u.HX,["ytp-ad-feedback-dialog-close-button"],"button"),g.V(u,u.G),u.G.init(Lu("button"),L,u.macros),u.G.listen("click",u.KK,u),u.G.Og(u.element));h.title&&(L=g.cL(h.title),u.updateValue("title",L));h.reasonsTitle&&(L=g.cL(h.reasonsTitle),u.updateValue("reasonsTitle",L));h.reasons&&nwn(u,h.reasons);h.cancelLabel&&(L=g.cL(h.cancelLabel),u.updateValue("cancelLabel",
L),g.iw(u.C,"click",function(){return u.KK()}));
h.confirmLabel&&(L=g.cL(h.confirmLabel),u.updateValue("confirmLabel",L),g.iw(u.Y,"click",function(){return sin(u)}));
h.undoRenderer&&wCs(u,h.undoRenderer)};
nwn=function(u,h){h=g.C(h);for(var L=h.next();!L.done;L=h.next()){var Z=L.value;L=Z.reason;if(L==null)g.G3(Error("AdFeedbackReason.reason was not set."));else if(Z=Z.endpoint,Z==null)g.G3(Error("AdFeedbackReason.endpoint was not set."));else{L=new ws(L,Z);g.V(u,L);Z=u.RH;var y=L.lP();Z.appendChild(y);u.B.push(L)}}};
wCs=function(u,h){if(h=h&&h.buttonRenderer||null)h.serviceEndpoint?(u.N=new oG(u.api,u.layoutId,u.interactionLoggingClientData,u.HX,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.V(u,u.N),u.N.init(Lu("ad-feedback-undo-mute-button"),h,u.macros),u.N.listen("click",u.uoX,u),u.N.Og(u.DI)):g.G3(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
sin=function(u){var h=u.B.filter(function(L){return L.isChecked()});
h.length!==0&&(h=h[0].getCommand(),u.layoutId?u.HX.executeCommand(h,u.layoutId):g.UZ(Error("Missing layoutId for ad feedback dialog.")),u.api.onAdUxClicked("ad-feedback-dialog-confirm-button",u.layoutId),u.publish("a"),u.hide())};
ws=function(u,h){this.N=h;this.G=new g.OD({K:"label",U:"ytp-ad-feedback-dialog-reason-label",Z:[{K:"input",U:"ytp-ad-feedback-dialog-reason-input",J:{type:"radio",name:"feedback-reason-group"}},{K:"span",U:"ytp-ad-feedback-dialog-reason-text",dw:g.cL(u)}]});this.X=this.G.BX("ytp-ad-feedback-dialog-reason-input")};
e0=function(u,h,L,Z){mP.call(this,u,h,L,Z,[],"ad-mute-confirm-dialog")};
aG=function(u,h,L,Z,y){fu.call(this,u,{K:"div",U:"ytp-ad-info-dialog-background",Z:[{K:"div",U:"ytp-ad-info-dialog-container",Z:[{K:"div",U:"ytp-ad-info-dialog-form",J:{role:"dialog",tabindex:"-1"},Z:[{K:"div",U:"ytp-ad-info-dialog-title",dw:"{{title}}"},{K:"ul",U:"ytp-ad-info-dialog-ad-reasons"},{K:"div",U:"ytp-ad-info-dialog-message"},{K:"div",U:"ytp-ad-info-dialog-mute-container"},{K:"div",U:"ytp-ad-info-dialog-confirm-container",Z:[{K:"button",U:"ytp-ad-info-dialog-confirm-button",dw:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",h,L,Z);this.G=this.N=null;this.Y=this.BX("ytp-ad-info-dialog-confirm-button");this.Sd=this.BX("ytp-ad-info-dialog-mute-container");this.VA=this.BX("ytp-ad-info-dialog-message");this.vX=this.BX("ytp-ad-info-dialog-ad-reasons");this.B=this.X=null;this.DI=y;this.C=null;this.aH=!1;this.RH=null;this.hide()};
a3j=function(u,h){if(h=h.content&&h.content.adFeedbackRenderer||null)u.N=new sD(u.api,u.layoutId,u.interactionLoggingClientData,u.HX),g.V(u,u.N),u.N.init(Lu("ad-feedback-dialog"),h,u.macros),u.N.Og(u.DI),u.N.subscribe("a",function(){return u.publish("c")})};
$p1=function(u,h){if(h=h.content&&h.content.confirmDialogRenderer||null)u.B=new e0(u.api,u.layoutId,u.interactionLoggingClientData,u.HX),g.V(u,u.B),u.B.init(Lu("ad-mute-confirm-dialog"),h,u.macros),u.B.Og(u.DI),u.B.subscribe("b",function(){return u.publish("c")})};
tF1=function(u){u.G&&u.G.listen("click",u.Hn,u);g.iw(u.Y,"click",function(){return u.Hn()})};
$S=function(u,h,L,Z,y,R,p){rs.call(this,u,h,L,Z,R===void 0?!0:R,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",p===void 0?!1:p);this.G=null;this.B=y;this.hide()};
Fme=function(u,h,L){h=h.dialog&&g.n(h.dialog,Wme)||null;h==null?g.UZ(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(u.G=new aG(u.api,u.layoutId,u.interactionLoggingClientData,u.HX,u.B),g.V(u,u.G),u.G.init(Lu("ad-info-dialog"),h,L),u.G.Og(u.B),u.G.subscribe("d",function(){return u.publish("f")}),u.G.subscribe("c",function(){return u.publish("e")}))};
kri=function(u,h,L){u.button==null?g.UZ(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(u.N&&g.yN(u.N.element,"ytp-ad-info-hover-text-short"),(h=h&&h.serviceEndpoint&&g.n(h.serviceEndpoint,bMn)||null)?(Fme(u,h,L),u.button.listen("click",function(){u.G&&!u.G.BJ&&(u.G.show(),EwY(u))})):u.button.listen("click",function(){return EwY(u)}))};
EwY=function(u){u.api.onAdUxClicked("ad-info-icon-button",u.layoutId)};
tm=function(u,h,L,Z,y,R){fu.call(this,u,{K:"div",U:"ytp-ad-text"},R===void 0?"ad-text":R,h,L,Z,y===void 0?null:y);this.G=null;this.hide()};
WL=function(u,h){h&&g.yg(u.element,Dd(u.G,h))};
FX=function(u,h,L,Z,y,R,p){fu.call(this,u,h,L,Z,y,R);this.G=p;g.V(this,this.G);this.aH=this.Y=-1};
b2=function(u){u.G&&u.Y===-1&&(u.Y=u.G.subscribe("h",u.mm,u),u.aH=u.G.subscribe("g",u.mj,u),u.mm())};
ED=function(u){u.G!=null&&u.Y!==-1&&(u.G.uW(u.Y),u.G.uW(u.aH),u.aH=-1,u.Y=-1)};
g.kS=function(u,h,L,Z,y,R){g.m.call(this);this.element=u;this.state=null;L||u.hide();this.N=h;this.X=Z===void 0?h:Z;this.G=R;this.onHidden=y;this.delay=new g.EM(this.aJ,0,this);g.V(this,this.delay)};
gs=function(u,h){u=u.element.element;h?u.setAttribute("aria-hidden","true"):u.removeAttribute("aria-hidden")};
ui=function(u,h,L,Z,y,R){FX.call(this,u,{K:"div",U:"ytp-ad-preview-slot"},"ad-preview",h,L,Z,y);var p=this;this.Sd=-1;this.B=this.api.L().experiments.tB("enable_modern_skip_button_on_web");this.N=new g.OD({K:"span",U:"ytp-ad-preview-container"});this.B&&this.N.element.classList.add("ytp-ad-preview-container-detached");g.V(this,this.N);this.X=this.B?new tm(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,"ytp-ad-preview-text-modern"):new tm(this.api,this.layoutId,this.interactionLoggingClientData,
this.HX,"ytp-ad-preview-text");g.V(this,this.X);this.X.Og(this.N.element);this.RH=this.B?new g.OD({K:"span",U:"ytp-ad-preview-image-modern"}):new g.OD({K:"span",U:"ytp-ad-preview-image"});g.V(this,this.RH);this.C=new zC(this.api,this.layoutId,this.interactionLoggingClientData,this.HX);g.V(this,this.C);this.C.Og(this.RH.element);this.RH.Og(this.N.element);this.N.Og(this.element);this.DI=new g.kS(this.N,400,!1,100,function(){return p.hide()});
g.V(this,this.DI);this.vX=0;this.VA=!1;this.fI=R;this.hide()};
j2=function(u){u.DI.show(100);u.show()};
hk=function(u,h,L,Z,y,R){FX.call(this,u,{K:"div",CI:["ytp-flyout-cta","ytp-flyout-cta-inactive"],Z:[{K:"div",U:"ytp-flyout-cta-icon-container"},{K:"div",U:"ytp-flyout-cta-body",Z:[{K:"div",U:"ytp-flyout-cta-text-container",Z:[{K:"div",U:"ytp-flyout-cta-headline-container"},{K:"div",U:"ytp-flyout-cta-description-container"}]},{K:"div",U:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",h,L,Z,y);this.X=new zC(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,"ytp-flyout-cta-icon");
g.V(this,this.X);this.X.Og(this.BX("ytp-flyout-cta-icon-container"));this.X.element.classList.add("ytp-flyout-cta-icon-rounded");this.C=new tm(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,"ytp-flyout-cta-headline");g.V(this,this.C);this.C.Og(this.BX("ytp-flyout-cta-headline-container"));this.B=new tm(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,"ytp-flyout-cta-description");g.V(this,this.B);this.B.Og(this.BX("ytp-flyout-cta-description-container"));u=["ytp-flyout-cta-action-button"];
this.api.L().j("web_modern_buttons")&&u.push("ytp-flyout-cta-action-button-rounded");this.N=new oG(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,u);g.V(this,this.N);this.N.Og(this.BX("ytp-flyout-cta-action-button-container"));this.N.element.setAttribute("tabIndex","-1");eB(this.N.element);this.RH=null;this.DI=0;this.vX=R;this.hide()};
LG=function(u,h,L,Z,y){fu.call(this,u,{K:"div",U:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",h,L,Z,y===void 0?null:y);var R=this;this.G=null;this.X=new ds(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,["ytp-ad-instream-user-sentiment-like-button"]);g.V(this,this.X);this.X.Og(this.element);this.N=new ds(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,["ytp-ad-instream-user-sentiment-dislike-button"]);g.V(this,this.N);this.N.Og(this.element);
this.B=new g.kS(this,400,!1,500,function(){return R.hide()});
g.V(this,this.B);this.hide()};
ZK=function(u,h,L,Z,y,R){y=y===void 0?0:y;R=R===void 0?!1:R;g.m.call(this);this.N=u;this.X=!1;this.Y=Z;this.AB=R;this.C=!1;this.G=null;h>0&&(this.G=new g.EM(this.MV,h,this),g.V(this,this.G));this.T=new g.EM(this.MV,L,this);g.V(this,this.T);this.S=rBn(this.N,y,1,Z);g.V(this,this.S);this.V=rBn(this.N,0,Z,1);g.V(this,this.V);this.B=new vD;g.V(this,this.B)};
yF=function(u,h,L){this.N=u;this.isAsync=h;this.G=L};
gwa=function(u){switch(u){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:yx(u,"unknown result type")}};
utb=function(u,h){var L=1;u.isTrusted===!1&&(L=0);$B("ISDSTAT",L);Rr(L,"i.s_",{triggerContext:"sk",metadata:h});return L};
jDb=function(u,h){var L=[];h?h.isTrusted===!0?L.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):h.isTrusted===!1?L.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):L.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):L.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");Rr(0,"a.s_",{metadata:u,states:L});$B("ASDSTAT",0)};
Rr=function(u,h,L){h=hvn[h];var Z,y,R={detected:u===0,source:""+h.N+((Z=L.triggerContext)!=null?Z:"")+((y=L.Qu)!=null?y:""),detectionStates:L.states,durationMs:L.Yg};L.metadata&&(R.contentCpn=L.metadata.contentCpn,R.adCpn=L.metadata.adCpn);g.pM("biscottiBasedDetection",R);h.G!==void 0&&(L=Number(g.tn("CATSTAT",0)),h.G!==void 0?(h=h.G,u=gwa(u),u=L&~(3<<h)|u<<h):u=L,$B("CATSTAT",u))};
pG=function(u){return u?"layout:  "+u.layoutType:""};
KG=function(u,h,L){return u?!0:(g.G3(new g.aO("Assertion: "+h,L)),!1)};
Jk=function(u,h,L,Z,y){Z=Z===void 0?{}:Z;if(!y||Math.random()<5E-4){h=h||null;L=L||null;u=u instanceof Error?u:new g.aO(u);if(u.args)for(var R=g.C(u.args),p=R.next();!p.done;p=R.next())p=p.value,p instanceof Object&&(Z=Object.assign({},p,Z));Z.category="H5 Ads Control Flow";h&&(Z.slot=h?"slot:  "+h.slotType:"");L&&(Z.layout=pG(L),Z.layoutId=L.layoutId);y&&(Z.known_error_aggressively_sampled=!0);u.args=[Z];g.G3(u)}};
g.O_=function(u,h){this.state=u;this.oldState=h};
fG=function(u,h){return g.F(u.state,h)&&!g.F(u.oldState,h)?1:!g.F(u.state,h)&&g.F(u.oldState,h)?-1:0};
g.DK=function(u,h){return fG(u,h)>0};
c2=function(u,h,L,Z,y,R){FX.call(this,u,{K:"div",U:"ytp-ad-skip-button-slot"},"skip-button",h,L,Z,y);var p=this;this.RH=null;this.DI=!1;this.VA=R;this.C=this.api.L().experiments.tB("enable_modern_skip_button_on_web");this.Sd=!1;this.X=new g.OD({K:"span",CI:["ytp-ad-skip-button-container"]});this.C&&this.X.element.classList.add("ytp-ad-skip-button-container-detached");this.api.j("enable_ad_pod_index_autohide")&&this.X.element.classList.add("ytp-ad-skip-button-container--clean-player");g.V(this,this.X);
this.X.Og(this.element);this.N=this.B=null;this.fI=new g.kS(this.X,500,!1,100,function(){return p.hide()});
g.V(this,this.fI);this.vX=new ZK(this.X.element,15E3,5E3,.5,.5,this.C);g.V(this,this.vX);this.hide()};
Zdn=function(u){u=u.RH&&u.RH.adRendererCommands;return(u&&u.clickCommand&&g.n(u.clickCommand,g.Ir)&&g.n(u.clickCommand,g.Ir).commands||[]).some(function(h){return h.adLifecycleCommand?Lbj(h.adLifecycleCommand):!1})};
Lbj=function(u){return u.action==="END_LINEAR_AD"||u.action==="END_LINEAR_AD_PLACEMENT"};
Ak=function(u,h,L,Z,y,R){FX.call(this,u,{K:"div",U:"ytp-ad-skip-ad-slot"},"skip-ad",h,L,Z,y);this.RH=R;this.B=!1;this.C=0;this.X=this.N=null;this.hide()};
ydY=function(u,h){u.B||(u.B=!0,u.N&&(h?u.N.DI.hide():u.N.hide()),h?(u=u.X,u.fI.show(),u.show()):u.X.show())};
xp=function(u,h,L,Z){oG.call(this,u,h,L,Z,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
P2=function(u,h,L,Z,y,R,p){R=R===void 0?!1:R;p=p===void 0?!1:p;fu.call(this,u,{K:"span",U:"ytp-ad-simple-ad-badge"},"simple-ad-badge",h,L,Z);this.X=y;this.G=this.BX("ytp-ad-simple-ad-badge");(this.N=R)&&this.G.classList.add("ytp-ad-simple-ad-badge--clean-player");p&&this.G.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()};
CG=function(u,h,L,Z,y){y=y===void 0?!1:y;Zd.call(this,"player-overlay",u,{},h,Z);this.videoAdDurationSeconds=L;this.interactionLoggingClientData=Z;this.wQ=y};
Mw=function(u,h){g.yV.call(this);this.api=u;this.durationMs=h;this.G=null;this.Aq=new vD(this);g.V(this,this.Aq);this.N=Rvi;this.Aq.W(this.api,"presentingplayerstatechange",this.jQ);this.G=this.Aq.W(this.api,"onAdPlaybackProgress",this.cj)};
ii=function(u){g.yV.call(this);this.G=!1;this.Oa=0;this.Aq=new vD(this);g.V(this,this.Aq);this.durationMs=u;this.tq=new g.Q$(100);g.V(this,this.tq);this.Aq.W(this.tq,"tick",this.cj);this.N={seekableStart:0,seekableEnd:u/1E3,current:0};this.start()};
g.QF=function(u,h){var L=Math.abs(Math.floor(u)),Z=Math.floor(L/86400),y=Math.floor(L%86400/3600),R=Math.floor(L%3600/60);L=Math.floor(L%60);if(h){h="";Z>0&&(h+=" "+Z+" Days");if(Z>0||y>0)h+=" "+y+" Hours";h+=" "+R+" Minutes";h+=" "+L+" Seconds";Z=h.trim()}else{h="";Z>0&&(h+=Z+":",y<10&&(h+="0"));if(Z>0||y>0)h+=y+":",R<10&&(h+="0");h+=R+":";L<10&&(h+="0");Z=h+L}return u>=0?Z:"-"+Z};
g.li=function(u){return(!("button"in u)||typeof u.button!=="number"||u.button===0)&&!("shiftKey"in u&&u.shiftKey)&&!("altKey"in u&&u.altKey)&&!("metaKey"in u&&u.metaKey)&&!("ctrlKey"in u&&u.ctrlKey)};
S2=function(u,h,L,Z,y,R,p){FX.call(this,u,{K:"span",U:p?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",h,L,Z,y);this.videoAdDurationSeconds=R;this.N=null;this.api.j("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");p&&this.api.L().N&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.j("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"),
ai&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()};
X3=function(u,h,L,Z){tm.call(this,u,h,L,Z,"ytp-video-ad-top-bar-title","ad-title");u.j("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")};
v2=function(u){this.content=u.content;if(u.commandRuns){u=g.C(u.commandRuns);for(var h=u.next();!h.done;h=u.next())h=h.value,this.loggingDirectives=g.n(h,pbl),h.onTap&&(this.interaction={onTap:h.onTap})}};
qw=function(u,h,L,Z){fu.call(this,u,{K:"div",U:"ad-simple-attributed-string"},"ad-simple-attributed-string",h,L,Z);this.hide()};
Tz=function(u,h,L,Z,y){fu.call(this,u,{K:"span",U:y?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",h,L,Z);this.N=y;this.adBadgeText=new qw(this.api,this.layoutId,this.interactionLoggingClientData,this.HX);this.adBadgeText.Og(this.element);g.V(this,this.adBadgeText);y?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),this.api.j("clean_player_style_fix_on_web")&&(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player-with-light-shadow"),ai&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))):
this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()};
Yp=function(u,h,L,Z,y){fu.call(this,u,{K:"span",U:"ytp-ad-pod-index"},"ad-pod-index",h,L,Z);this.N=y;this.api.L().N&&(this.element.classList.add("ytp-ad-pod-index--mweb"),this.api.j("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-pod-index--mweb-light"),ai&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()};
or=function(u,h,L,Z){fu.call(this,u,{K:"div",U:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",h,L,Z);this.hide()};
Nw=function(u,h){this.N=u;this.G=h};
U_=function(u,h,L){if(!u.getLength())return L!=null?L:Infinity;u=(h-u.N)/u.getLength();return g.pX(u,0,1)};
Gz=function(u,h,L,Z){Z=Z===void 0?!1:Z;g.OD.call(this,{K:"div",U:"ytp-ad-persistent-progress-bar-container",Z:[{K:"div",U:"ytp-ad-persistent-progress-bar"}]});this.api=u;this.N=h;this.X=L;Z&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.V(this,this.N);this.progressBar=this.BX("ytp-ad-persistent-progress-bar");this.G=-1;this.W(u,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
H2=function(u,h,L,Z,y,R){fu.call(this,u,{K:"div",U:"ytp-ad-player-overlay",Z:[{K:"div",U:"ytp-ad-player-overlay-flyout-cta"},{K:"div",U:"ytp-ad-player-overlay-instream-info"},{K:"div",U:"ytp-ad-player-overlay-skip-or-preview"},{K:"div",U:"ytp-ad-player-overlay-progress-bar"},{K:"div",U:"ytp-ad-player-overlay-instream-user-sentiment"},{K:"div",U:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",h,L,Z);this.RH=R;this.C=this.BX("ytp-ad-player-overlay-flyout-cta");this.C.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
this.G=this.BX("ytp-ad-player-overlay-instream-info");this.B=null;Kbj(this)&&(u=E6("div"),g.yN(u,"ytp-ad-player-overlay-top-bar-gradients"),this.api.j("disable_ad_preview_for_instream_ads")&&g.yN(u,"ytp-ad-player-overlay-top-bar-gradients--clean-player"),h=this.G,h.parentNode&&h.parentNode.insertBefore(u,h),(h=this.api.getVideoData(2))&&h.isListed&&h.title&&(L=new X3(this.api,this.layoutId,this.interactionLoggingClientData,this.HX),L.Og(u),L.init(Lu("ad-title"),{text:h.title},this.macros),g.V(this,
L)),this.B=u);this.X=null;this.Y=this.BX("ytp-ad-player-overlay-skip-or-preview");this.aH=this.BX("ytp-ad-player-overlay-progress-bar");this.vX=this.BX("ytp-ad-player-overlay-instream-user-sentiment");this.DI=this.BX("ytp-ad-player-overlay-ad-disclosure-banner");this.N=y;g.V(this,this.N);this.hide()};
Kbj=function(u){u=u.api.L();return g.rp(u)&&u.N};
B2=function(u,h,L){var Z={};h&&(Z.v=h);L&&(Z.list=L);u={name:u,locale:void 0,feature:void 0};for(var y in Z)u[y]=Z[y];Z=g.sr("/sharing_services",u);g.dx(Z)};
g.zz=function(u){u&=16777215;var h=[(u&16711680)>>16,(u&65280)>>8,u&255];u=h[0];var L=h[1];h=h[2];u=Number(u);L=Number(L);h=Number(h);if(u!=(u&255)||L!=(L&255)||h!=(h&255))throw Error('"('+u+","+L+","+h+'") is not a valid RGB color');L=u<<16|L<<8|h;return u<16?"#"+(16777216|L).toString(16).slice(1):"#"+L.toString(16)};
mj=function(u){this.G=new Yc(u)};
JdY=function(){var u=!1;try{u=!!window.sessionStorage.getItem("session_logininfo")}catch(h){u=!0}return(g.tn("INNERTUBE_CLIENT_NAME")==="WEB"||g.tn("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&u};
dp=function(u){if(g.tn("LOGGED_IN",!0)&&JdY()){var h=g.tn("VALID_SESSION_TEMPDATA_DOMAINS",[]);var L=g.BY(window.location.href);L&&h.push(L);L=g.BY(u);g.E8(h,L)||!L&&Sb(u,"/")?(h=zq(u),(h=QIe(h))?(h=zsw(h),h=(h=g.BS(h)||null)?jp(h):{}):h=null):h=null;h==null&&(h={});L=h;var Z=void 0;JdY()?(Z||(Z=g.tn("LOGIN_INFO")),Z?(L.session_logininfo=Z,L=!0):L=!1):L=!1;L&&v3(u,h)}};
g.Odw=function(u){var h=h===void 0?{}:h;var L=L===void 0?"":L;var Z=Z===void 0?window:Z;u=g.sr(u,h);dp(u);L=g.NN(u+L);Z=Z.location;L=US(L);L!==void 0&&(Z.href=L)};
g.VF=function(u,h,L){h=h===void 0?{}:h;L=L===void 0?!1:L;var Z=g.tn("EVENT_ID");Z&&(h.ei||(h.ei=Z));h&&v3(u,h);L||(dp(u),g.Odw(u))};
g.nG=function(u,h,L,Z,y){y=y===void 0?!1:y;L&&v3(u,L);L=g.NN(u);var R=g.Tx(L);u!=R&&kB(Error("Unsafe window.open URL: "+u));u=R;h=h||kd(u).toString(36);try{if(y){y=u;y=c5i(y);dp(y);g.zx(window,y,h,"attributionsrc");return}}catch(p){g.bU(p)}dp(u);g.zx(window,L,h,Z)};
fPl=function(u){s_=u};
Dvs=function(u){wp=u};
cd1=function(u){e2=u};
Ada=function(){IPb=e2=wp=s_=null};
PIR=function(){var u=u===void 0?window.location.href:u;if(g.MI("kevlar_disable_theme_param"))return null;var h=NE(g.ru(5,u));if(g.MI("enable_dark_theme_only_on_shorts")&&h!=null&&h.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var L=g.LP(u).theme;return xva.get(L)||null}catch(Z){}return null};
ar=function(){this.G={};if(this.N=MBj()){var u=g.BS("CONSISTENCY");u&&CIi(this,{encryptedTokenJarContents:u})}};
CIi=function(u,h){if(h.encryptedTokenJarContents&&(u.G[h.encryptedTokenJarContents]=h,typeof h.expirationSeconds==="string")){var L=Number(h.expirationSeconds);setTimeout(function(){delete u.G[h.encryptedTokenJarContents]},L*1E3);
u.N&&g.rg("CONSISTENCY",h.encryptedTokenJarContents,L,void 0,!0)}};
tk=function(){this.N=-1;var u=g.tn("LOCATION_PLAYABILITY_TOKEN");g.tn("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=$p(this))&&(u=this.localStorage.get("yt-location-playability-token"));u&&(this.locationPlayabilityToken=u,this.G=void 0)};
$p=function(u){return u.localStorage===void 0?new jF("yt-client-location"):u.localStorage};
g.W2=function(u,h,L){h=h===void 0?!1:h;L=L===void 0?!1:L;var Z=g.tn("INNERTUBE_CONTEXT");if(!Z)return g.UZ(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};Z=g.U6(Z);g.MI("web_no_tracking_params_in_shell_killswitch")||delete Z.clickTracking;Z.client||(Z.client={});var y=Z.client;y.clientName==="MWEB"&&y.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(y.clientFormFactor=g.tn("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");y.screenWidthPoints=window.innerWidth;y.screenHeightPoints=
window.innerHeight;y.screenPixelDensity=Math.round(window.devicePixelRatio||1);y.screenDensityFloat=window.devicePixelRatio||1;y.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var R=R===void 0?!1:R;g.dN();var p="USER_INTERFACE_THEME_LIGHT";g.Vl(0,165)?p="USER_INTERFACE_THEME_DARK":g.Vl(0,174)?p="USER_INTERFACE_THEME_LIGHT":!g.MI("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&
(p="USER_INTERFACE_THEME_DARK");R=R?p:PIR()||p;y.userInterfaceTheme=R;if(!h){if(R=RuV())y.connectionType=R;g.MI("web_log_effective_connection_type")&&(R=KXi())&&(Z.client.effectiveConnectionType=R)}var J;if(g.MI("web_log_memory_total_kbytes")&&((J=g.Vn.navigator)==null?0:J.deviceMemory)){var O;J=(O=g.Vn.navigator)==null?void 0:O.deviceMemory;Z.client.memoryTotalKbytes=""+J*1E6}g.MI("web_gcf_hashes_innertube")&&(R=Ann())&&(O=R.coldConfigData,J=R.coldHashData,R=R.hotHashData,Z.client.configInfo=Z.client.configInfo||
{},O&&(Z.client.configInfo.coldConfigData=O),J&&(Z.client.configInfo.coldHashData=J),R&&(Z.client.configInfo.hotHashData=R));O=g.LP(g.Vn.location.href);!g.MI("web_populate_internal_geo_killswitch")&&O.internalcountrycode&&(y.internalGeo=O.internalcountrycode);y.clientName==="MWEB"||y.clientName==="WEB"?(y.mainAppWebInfo={graftUrl:g.Vn.location.href},g.MI("kevlar_woffle")&&gKV.instance&&(O=gKV.instance,y.mainAppWebInfo.pwaInstallabilityStatus=!O.G&&O.N?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":
"PWA_INSTALLABILITY_STATUS_UNKNOWN"),y.mainAppWebInfo.webDisplayMode=BD(),y.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):y.clientName==="TVHTML5"&&(!g.MI("web_lr_app_quality_killswitch")&&(O=g.tn("LIVING_ROOM_APP_QUALITY"))&&(y.tvAppInfo=Object.assign(y.tvAppInfo||{},{appQuality:O})),O=g.tn("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(y.tvAppInfo=Object.assign(y.tvAppInfo||{},{certificationScope:O}));if(!g.MI("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!==
"undefined")try{var f=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(z){}f=void 0}f&&(y.timeZone=f)}(f=Qa())?y.experimentsToken=f:delete y.experimentsToken;f=lA();ar.instance||(ar.instance=new ar);Z.request=Object.assign({},Z.request,{internalExperimentFlags:f,consistencyTokenJars:g.lj(ar.instance.G)});!g.MI("web_prequest_context_killswitch")&&(f=g.tn("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(Z.request.externalPrequestContext=f);y=g.dN();f=g.Vl(0,58);y=y.get("gsml","");Z.user=Object.assign({},
Z.user);f&&(Z.user.enableSafetyMode=f);y&&(Z.user.lockedSafetyMode=!0);g.MI("warm_op_csn_cleanup")?L&&(h=g.S9())&&(Z.clientScreenNonce=h):!h&&(h=g.S9())&&(Z.clientScreenNonce=h);u&&(Z.clickTracking={clickTrackingParams:u});if(u=g.wn("yt.mdx.remote.remoteClient_"))Z.remoteClient=u;tk.getInstance().setLocationOnInnerTubeContext(Z);try{var D=fP(),c=D.bid;delete D.bid;Z.adSignalsInfo={params:[],bid:c};for(var I=g.C(Object.entries(D)),A=I.next();!A.done;A=I.next()){var x=g.C(A.value),Q=x.next().value,
S=x.next().value;D=Q;c=S;u=void 0;(u=Z.adSignalsInfo.params)==null||u.push({key:D,value:""+c})}var v,T;if(((v=Z.client)==null?void 0:v.clientName)==="TVHTML5"||((T=Z.client)==null?void 0:T.clientName)==="TVHTML5_UNPLUGGED"){var U=g.tn("INNERTUBE_CONTEXT");U.adSignalsInfo&&(Z.adSignalsInfo.advertisingId=U.adSignalsInfo.advertisingId,Z.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",Z.adSignalsInfo.limitAdTracking=U.adSignalsInfo.limitAdTracking)}}catch(z){g.UZ(z)}return Z};
QDe=function(u,h){if(!u)return!1;var L,Z=(L=g.n(u,Mea))==null?void 0:L.signal;if(Z&&h.Ya)return!!h.Ya[Z];var y;if((L=(y=g.n(u,idV))==null?void 0:y.request)&&h.QT)return!!h.QT[L];for(var R in u)if(h.qP[R])return!0;return!1};
lPR=function(u){var h={"Content-Type":"application/json"};g.tn("EOM_VISITOR_DATA")?h["X-Goog-EOM-Visitor-Id"]=g.tn("EOM_VISITOR_DATA"):g.tn("VISITOR_DATA")&&(h["X-Goog-Visitor-Id"]=g.tn("VISITOR_DATA"));h["X-Youtube-Bootstrap-Logged-In"]=g.tn("LOGGED_IN",!1);g.tn("DEBUG_SETTINGS_METADATA")&&(h["X-Debug-Settings-Metadata"]=g.tn("DEBUG_SETTINGS_METADATA"));u!=="cors"&&((u=g.tn("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(h["X-Youtube-Client-Name"]=u),(u=g.tn("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(h["X-Youtube-Client-Version"]=
u),(u=g.tn("CHROME_CONNECTED_HEADER"))&&(h["X-Youtube-Chrome-Connected"]=u),(u=g.tn("DOMAIN_ADMIN_STATE"))&&(h["X-Youtube-Domain-Admin-State"]=u),g.tn("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(u=g.tn("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(h["X-YouTube-Lava-Device-Context"]=u));return h};
S3w=function(){this.G={}};
F3=function(){this.mappings=new S3w};
bi=function(u){return function(){return new u}};
vMe=function(u){var h=h===void 0?"UNKNOWN_INTERFACE":h;if(u.length===1)return u[0];var L=Xbf[h];if(L){L=new RegExp(L);for(var Z=g.C(u),y=Z.next();!y.done;y=Z.next())if(y=y.value,L.exec(y))return y}var R=[];Object.entries(Xbf).forEach(function(p){var J=g.C(p);p=J.next().value;J=J.next().value;h!==p&&R.push(J)});
L=new RegExp(R.join("|"));u.sort(function(p,J){return p.length-J.length});
Z=g.C(u);for(y=Z.next();!y.done;y=Z.next())if(y=y.value,!L.exec(y))return y;return u[0]};
g.E_=function(u){return"/youtubei/v1/"+vMe(u)};
kp=function(){};
gp=function(){};
fQ=function(){};
Db=function(u){return g.wn("ytcsi."+(u||"")+"data_")||q3i(u)};
TxV=function(){var u=Db();u.info||(u.info={});return u.info};
cc=function(u){u=Db(u);u.metadata||(u.metadata={});return u.metadata};
Ih=function(u){u=Db(u);u.tick||(u.tick={});return u.tick};
AS=function(u){u=Db(u);if(u.gel){var h=u.gel;h.gelInfos||(h.gelInfos={});h.gelTicks||(h.gelTicks={})}else u.gel={gelTicks:{},gelInfos:{}};return u.gel};
Y3R=function(u){u=AS(u);u.gelInfos||(u.gelInfos={});return u.gelInfos};
xz=function(u){var h=Db(u).nonce;h||(h=g.ig(16),Db(u).nonce=h);return h};
q3i=function(u){var h={tick:{},info:{}};g.nV("ytcsi."+(u||"")+"data_",h);return h};
Pc=function(){var u=g.wn("ytcsi.debug");u||(u=[],g.nV("ytcsi.debug",u),g.nV("ytcsi.reference",{}));return u};
CQ=function(u){u=u||"";var h=oMf();if(h[u])return h[u];var L=Pc(),Z={timerName:u,info:{},tick:{},span:{},jspbInfo:[]};L.push(Z);return h[u]=Z};
Nx1=function(u){u=u||"";var h=oMf();h[u]&&delete h[u];var L=Pc(),Z={timerName:u,info:{},tick:{},span:{},jspbInfo:[]};L.push(Z);h[u]=Z};
oMf=function(){var u=g.wn("ytcsi.reference");if(u)return u;Pc();return g.wn("ytcsi.reference")};
Ms=function(u){return Uvb[u]||"LATENCY_ACTION_UNKNOWN"};
iy=function(u,h){fd.call(this,1,arguments);this.tq=h};
Q4=function(){this.G=0};
ly=function(){Q4.instance||(Q4.instance=new Q4);return Q4.instance};
XE=function(u,h){S$[h]=S$[h]||{count:0};var L=S$[h];L.count++;L.time=(0,g.vC)();u.G||(u.G=g.bw(0,function(){var Z=(0,g.vC)(),y;for(y in S$)S$[y]&&Z-S$[y].time>6E4&&delete S$[y];u&&(u.G=0)},5E3));
return L.count>5?(L.count===6&&Math.random()*1E5<1&&(L=new g.aO("CSI data exceeded logging limit with key",h.split("_")),h.indexOf("plev")>=0||g.G3(L)),!0):!1};
G_n=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
Hd1=function(){var u;if(g.MI("csi_use_performance_navigation_timing")||g.MI("csi_use_performance_navigation_timing_tvhtml5")){var h,L,Z,y=vc==null?void 0:(u=vc.getEntriesByType)==null?void 0:(h=u.call(vc,"navigation"))==null?void 0:(L=h[0])==null?void 0:(Z=L.toJSON)==null?void 0:Z.call(L);y?(y.requestStart=qs(y.requestStart),y.responseEnd=qs(y.responseEnd),y.redirectStart=qs(y.redirectStart),y.redirectEnd=qs(y.redirectEnd),y.domainLookupEnd=qs(y.domainLookupEnd),y.connectStart=qs(y.connectStart),
y.connectEnd=qs(y.connectEnd),y.responseStart=qs(y.responseStart),y.secureConnectionStart=qs(y.secureConnectionStart),y.domainLookupStart=qs(y.domainLookupStart),y.isPerformanceNavigationTiming=!0,u=y):u=vc.timing}else u=g.MI("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(vc.timing)):vc.timing;return u};
qs=function(u){return Math.round(TQ()+u)};
TQ=function(){return(g.MI("csi_use_time_origin")||g.MI("csi_use_time_origin_tvhtml5"))&&vc.timeOrigin?Math.floor(vc.timeOrigin):vc.timing.navigationStart};
oh=function(u,h){Yz("_start",u,h)};
Ns=function(u,h){if(!g.MI("web_csi_action_sampling_enabled")||!Db(h).actionDisabled){var L=CQ(h||"");O2(L.info,u);u.loadType&&(L=u.loadType,cc(h).loadType=L);O2(Y3R(h),u);L=xz(h);h=Db(h).cttAuthInfo;ly().info(u,L,h)}};
rdn=function(){var u,h,L,Z;return((Z=Gt().resolve(new Tt(RD))==null?void 0:(u=pd())==null?void 0:(h=u.loggingHotConfig)==null?void 0:(L=h.csiConfig)==null?void 0:L.debugTicks)!=null?Z:[]).map(function(y){return Object.values(y)[0]})};
Yz=function(u,h,L){if(!g.MI("web_csi_action_sampling_enabled")||!Db(L).actionDisabled){var Z=xz(L),y;if(y=g.MI("web_csi_debug_sample_enabled")&&Z){(Gt().resolve(new Tt(RD))==null?0:pd())&&!Bxa&&(Bxa=!0,Yz("gcfl",(0,g.vC)(),L));var R,p,J;y=(Gt().resolve(new Tt(RD))==null?void 0:(R=pd())==null?void 0:(p=R.loggingHotConfig)==null?void 0:(J=p.csiConfig)==null?void 0:J.debugSampleWeight)||0;if(R=y!==0)b:{R=rdn();if(R.length>0)for(p=0;p<R.length;p++)if(u===R[p]){R=!0;break b}R=!1}R?(y=yve(Z)%y!==0,Db(L).debugTicksExcludedLogged||
(R={},R.debugTicksExcluded=y,Ns(R,L)),Db(L).debugTicksExcludedLogged=!0):y=!1}if(!y){if(u[0]!=="_"&&(y=u,R=h,vc.mark))if(y.startsWith("mark_")||(y="mark_"+y),L&&(y+=" ("+L+")"),R===void 0||g.MI("web_csi_disable_alt_time_performance_mark"))vc.mark(y);else{R=g.MI("csi_use_performance_navigation_timing")||g.MI("csi_use_performance_navigation_timing_tvhtml5")?R-vc.timeOrigin:R-(vc.timeOrigin||vc.timing.navigationStart);try{vc.mark(y,{startTime:R})}catch(O){}}y=CQ(L||"");y.tick[u]=h||(0,g.vC)();if(y.callback&&
y.callback[u])for(y=g.C(y.callback[u]),R=y.next();!R.done;R=y.next())R=R.value,R();y=AS(L);y.gelTicks&&(y.gelTicks[u]=!0);R=Ih(L);y=h||(0,g.vC)();g.MI("log_repeated_ytcsi_ticks")?u in R||(R[u]=y):R[u]=y;R=Db(L).cttAuthInfo;u==="_start"?(u=ly(),XE(u,"baseline_"+Z)||g.pM("latencyActionBaselined",{clientActionNonce:Z},{timestamp:h,cttAuthInfo:R})):ly().tick(u,Z,h,R);zvb(L);return y}}};
mvn=function(){var u,h=(u=vc.getEntriesByType)==null?void 0:u.call(vc,"mark");h&&h.forEach(function(L){if(L.name.startsWith("mark_")){var Z;(Z=vc.clearMarks)==null||Z.call(vc,L.name)}})};
dvL=function(){switch(VBn()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
Vej=function(u){function h(R,p,J){p=p.match("_rid")?p.split("_rid")[0]:p;typeof J==="number"&&(J=JSON.stringify(J));R.requestIds?R.requestIds.push({endpoint:p,id:J}):R.requestIds=[{endpoint:p,id:J}]}
var L={};u=g.C(Object.entries(u));for(var Z=u.next();!Z.done;Z=u.next()){var y=g.C(Z.value);Z=y.next().value;y=y.next().value;switch(Z){case "GetBrowse_rid":h(L,Z,y);break;case "GetGuide_rid":h(L,Z,y);break;case "GetHome_rid":h(L,Z,y);break;case "GetPlayer_rid":h(L,Z,y);break;case "GetSearch_rid":h(L,Z,y);break;case "GetSettings_rid":h(L,Z,y);break;case "GetTrending_rid":h(L,Z,y);break;case "GetWatchNext_rid":h(L,Z,y);break;case "yt_red":L.isRedSubscriber=!!y;break;case "yt_ad":L.isMonetized=!!y}}return L};
nMj=function(u,h){u=document.querySelector(u);if(!u)return!1;var L="",Z=u.nodeName;Z==="SCRIPT"?(L=u.src,L||(L=u.getAttribute("data-timing-href"))&&(L=window.location.protocol+L)):Z==="LINK"&&(L=u.href);m6(document)&&u.setAttribute("nonce",m6(document));return L?(u=vc.getEntriesByName(L))&&u[0]&&(u=u[0],L=TQ(),Yz("rsf_"+h,L+Math.round(u.fetchStart)),Yz("rse_"+h,L+Math.round(u.responseEnd)),u.transferSize!==void 0&&u.transferSize===0)?!0:!1:!1};
sDs=function(){var u=window.location.protocol,h=vc.getEntriesByType("resource");h=g.KN(h,function(L){return L.name.indexOf(u+"//fonts.gstatic.com/s/")===0});
(h=qR(h,function(L,Z){return Z.duration>L.duration?Z:L},{duration:0}))&&h.startTime>0&&h.responseEnd>0&&(Yz("wffs",qs(h.startTime)),Yz("wffe",qs(h.responseEnd)))};
wbe=function(u,h,L){vc&&vc.measure&&(u.startsWith("measure_")||(u="measure_"+u),L?vc.measure(u,h,L):h?vc.measure(u,h):vc.measure(u))};
evV=function(u){var h=Uh("aft",u);if(h)return h;h=g.tn((u||"")+"TIMING_AFT_KEYS",["ol"]);for(var L=h.length,Z=0;Z<L;Z++){var y=Uh(h[Z],u);if(y)return y}return NaN};
GQ=function(u,h){g.nV("ytglobal.timing"+(h||"")+"ready_",u)};
Uh=function(u,h){if(u=Ih(h)[u])return typeof u==="number"?u:u[u.length-1]};
zvb=function(u){var h=Uh("_start",u),L=evV(u),Z=g.MI("enable_cow_info_csi")||!aPs;h&&L&&Z&&(ID($vw,new iy(Math.round(L-h),u)),aPs=!0)};
tei=function(){if(vc.getEntriesByType){var u=vc.getEntriesByType("paint");if(u=g.Fg(u,function(L){return L.name==="first-paint"}))return qs(u.startTime)}var h;
g.MI("csi_use_performance_navigation_timing")||g.MI("csi_use_performance_navigation_timing_tvhtml5")?h=vc.getEntriesByType("first-paint")[0].startTime:h=vc.timing.ktd;return h?Math.max(0,h):0};
Hc=function(u){q3i(u);Wbl();mvn();u||(g.tn("TIMING_ACTION")&&$B("PREVIOUS_ACTION",g.tn("TIMING_ACTION")),$B("TIMING_ACTION",""))};
FbY=function(){var u=["pbs","pbu"];g.EC(function(){CQ("").info.actionType="watch";u&&$B("TIMING_AFT_KEYS",u);$B("TIMING_ACTION","watch");var h=Vej(g.tn("TIMING_INFO",{}));Object.keys(h).length>0&&Ns(h);h={isNavigation:!0,actionType:Ms(g.tn("TIMING_ACTION"))};var L=g.tn("PREVIOUS_ACTION");L&&(h.previousAction=Ms(L));if(L=g.tn("CLIENT_PROTOCOL"))h.httpProtocol=L;if(L=g.tn("CLIENT_TRANSPORT"))h.transportProtocol=L;(L=g.S9())&&L!=="UNDEFINED_CSN"&&(h.clientScreenNonce=L);L=dvL();if(L===1||L===-1)h.isVisible=
!0;L=cc().loadType==="cold";var Z=TxV();L||(L=Z.yt_lt==="cold");if(L){h.loadType="cold";L=TxV();Z=Hd1();var y=TQ(),R=g.tn("CSI_START_TIMESTAMP_MILLIS",0);R>0&&!g.MI("embeds_web_enable_csi_start_override_killswitch")&&(y=R);y&&(Yz("srt",Z.responseStart),L.prerender!==1&&oh(y));L=tei();L>0&&Yz("fpt",L);L=Hd1();L.isPerformanceNavigationTiming&&Ns({performanceNavigationTiming:!0},void 0);Yz("nreqs",L.requestStart,void 0);Yz("nress",L.responseStart,void 0);Yz("nrese",L.responseEnd,void 0);L.redirectEnd-
L.redirectStart>0&&(Yz("nrs",L.redirectStart,void 0),Yz("nre",L.redirectEnd,void 0));L.domainLookupEnd-L.domainLookupStart>0&&(Yz("ndnss",L.domainLookupStart,void 0),Yz("ndnse",L.domainLookupEnd,void 0));L.connectEnd-L.connectStart>0&&(Yz("ntcps",L.connectStart,void 0),Yz("ntcpe",L.connectEnd,void 0));L.secureConnectionStart>=TQ()&&L.connectEnd-L.secureConnectionStart>0&&(Yz("nstcps",L.secureConnectionStart,void 0),Yz("ntcpe",L.connectEnd,void 0));vc&&"getEntriesByType"in vc&&sDs();L=[];if(document.querySelector&&
vc&&vc.getEntriesByName)for(var p in rT)rT.hasOwnProperty(p)&&(Z=rT[p],nMj(p,Z)&&L.push(Z));if(L.length>0)for(h.resourceInfo=[],p=g.C(L),L=p.next();!L.done;L=p.next())h.resourceInfo.push({resourceCache:L.value})}Ns(h);h=AS();h.preLoggedGelInfos||(h.preLoggedGelInfos=[]);p=h.preLoggedGelInfos;h=Y3R();L=void 0;for(Z=0;Z<p.length;Z++)if(y=p[Z],y.loadType){L=y.loadType;break}if(cc().loadType==="cold"&&(h.loadType==="cold"||L==="cold")){L=Ih();Z=AS();Z=Z.gelTicks?Z.gelTicks:Z.gelTicks={};for(var J in L)if(!(J in
Z))if(typeof L[J]==="number")Yz(J,Uh(J));else if(g.MI("log_repeated_ytcsi_ticks"))for(y=g.C(L[J]),R=y.next();!R.done;R=y.next())Yz(J.slice(1),R.value);J={};L=!1;p=g.C(p);for(Z=p.next();!Z.done;Z=p.next())L=Z.value,O2(h,L),O2(J,L),L=!0;L&&Ns(J)}GQ(!0);J=g.tn("TIMING_ACTION");g.wn("ytglobal.timingready_")&&J&&Bc()&&evV()&&zvb()})()};
bdn=function(){var u=u===void 0?{}:u;g.EC(function(){Bc()&&zQ("aa",void 0,void 0);Nx1();Hc();GQ(!1);u.cttAuthInfo&&(Db().cttAuthInfo=u.cttAuthInfo);$B("TIMING_AFT_KEYS",[]);u.KII?g.m1({loadType:"hot"}):g.m1({loadType:"warm"});$B("TIMING_ACTION","");delete g.tn("TIMING_INFO",{}).yt_lt;g.EC(oh)(u.startTime,void 0)})()};
dT=function(u,h){h=h===void 0?{}:h;g.EC(function(){EMl(u);var L=h.sampleRate;if(!g.MI("web_csi_action_sampling_enabled")||L===void 0||L<=1)L=!1;else{var Z=xz(u);L=yve(Z)%L!==0}L&&(Db(u).actionDisabled=!0);CQ(u||"").info.actionType=u;h.cttAuthInfo&&(Db(u).cttAuthInfo=h.cttAuthInfo);$B(u+"TIMING_ACTION",u);g.EC(oh)(h.startTime,u);L={actionType:Ms(u)};h.amw&&(L.previousAction=Ms(g.tn("TIMING_ACTION")));(Z=g.S9())&&Z!=="UNDEFINED_CSN"&&(L.clientScreenNonce=Z);g.m1(L,u);GQ(!0,u)})()};
EMl=function(u){g.EC(function(){Bc(u)&&zQ("aa",void 0,u);Nx1(u);Hc(u)})()};
Bc=function(u){return g.EC(function(){return V4("_start",u)})()};
g.m1=function(u,h,L){g.EC(Ns)(u,h,L===void 0?!1:L)};
zQ=function(u,h,L){return g.EC(Yz)(u,h,L)};
k_s=function(u){g.EC(wbe)("action_finished",u,void 0)};
V4=function(u,h){return g.EC(function(){var L=Ih(h);return u in L})()};
uRn=function(u){if(!g.MI("universal_csi_network_ticks"))return"";u=NE(g.ru(5,u))||"";for(var h=Object.keys(gM1),L=0;L<h.length;L++){var Z=h[L];if(u.includes(Z))return Z}return""};
hbn=function(u){if(!g.MI("universal_csi_network_ticks"))return function(){};
var h=gM1[u];return h?(nQ(h),function(){var L=g.MI("universal_csi_network_ticks")?(L=j61[u])?nQ(L):!1:!1;return L}):function(){}};
nQ=function(u,h){return g.EC(function(){if(V4(u,h))return!1;zQ(u,void 0,h);return!0})()};
sh=function(u,h,L){g.EC(function(){if(!Bc(L)||V4(u,L))return!1;zQ(u,h,L);return!0})()};
LUn=function(){g.EC(function(){var u=xz();requestAnimationFrame(function(){setTimeout(function(){u===xz()&&zQ("ftl",void 0,void 0)},0)})})()};
wT=function(u,h,L,Z){this.w$=u;this.Up=h;this.G=L;this.B=Z;this.X=void 0;this.N=new Map;u.Ya||(u.Ya={});u.Ya=Object.assign({},Zre,u.Ya)};
yQw=function(u,h,L,Z){if(wT.instance!==void 0){if(Z=wT.instance,u=[u!==Z.w$,h!==Z.Up,L!==Z.G,!1,!1,!1,void 0!==Z.X],u.some(function(y){return y}))throw new g.aO("InnerTubeTransportService is already initialized",u);
}else wT.instance=new wT(u,h,L,Z)};
e$=function(u,h,L){var Z=Z===void 0?O3:Z;var y=Rb1(u,h);return y?new g.IT(function(R,p){var J,O,f,D,c;return g.G(function(I){switch(I.G){case 1:return g.N(I,y,2);case 2:J=I.N;O=J.T(h,L,Z);if(!O){p(new g.aO("Error: Failed to build request for command.",h));I.KI(0);break}dp(O.input);D=((f=O.Yh)==null?void 0:f.mode)==="cors"?"cors":void 0;if(u.G.cA){c=p5j(u,O.config,D);I.KI(4);break}return g.N(I,KUR(u,O.config,D),5);case 5:c=I.N;case 4:R(JQw(u,O,c)),g.i1(I)}})}):PY(new g.aO("Error: No request builder found for command.",
h))};
g.ah=function(u,h,L,Z,y){function R(){}
y=y===void 0?{Kq:{identity:O3}}:y;var p=p===void 0?!0:p;R=hbn(uRn(L));h.context||(h.context=g.W2(Z,p));return new g.IT(function(J){var O,f,D,c,I;return g.G(function(A){if(A.G==1)return O=mi(L),f=RJ(O)?"same-origin":"cors",u.G.cA?(D=p5j(u,y,f),A.KI(2)):g.N(A,KUR(u,y,f),3);A.G!=2&&(D=A.N);c=i5f(mi(L));I={input:c,Yh:dg(c),a8:h,config:y};J(JQw(u,I,D,R));g.i1(A)})})};
f$n=function(u,h,L){var Z;if(h&&!(h==null?0:(Z=h.sequenceMetaData)==null?0:Z.skipProcessing)&&u.B){Z=g.C(Or1);for(var y=Z.next();!y.done;y=Z.next())y=y.value,u.B[y]&&u.B[y].handleResponse(h,L)}};
JQw=function(u,h,L,Z){Z=Z===void 0?function(){}:Z;
var y,R,p,J,O,f,D,c,I,A,x,Q,S,v,T,U,z,d,W,t,yn,KV,u1,w,k,M,e,sj,l3,c1;return g.G(function(Yb){switch(Yb.G){case 1:Yb.KI(2);break;case 3:if((y=Yb.N)&&!y.isExpired())return Yb.return(Promise.resolve(y.G()));case 2:if(!((R=h)==null?0:(p=R.a8)==null?0:p.context)){Yb.KI(4);break}J=h.a8.context;Yb.KI(5);break;case 5:O=g.C([]),f=O.next();case 8:if(f.done){Yb.KI(4);break}D=f.value;return g.N(Yb,D.QvB(J),9);case 9:f=O.next();Yb.KI(8);break;case 4:if((c=u.X)==null||!c.OAA(h.input,h.a8)){Yb.KI(12);break}return g.N(Yb,
u.X.yz7(h.input,h.a8),13);case 13:return I=Yb.N,f$n(u,I,h),Yb.return(I);case 12:return(Q=(x=h.config)==null?void 0:x.H2)&&u.N.has(Q)?A=u.N.get(Q):(S=JSON.stringify(h.a8),U=(T=(v=h.Yh)==null?void 0:v.headers)!=null?T:{},h.Yh=Object.assign({},h.Yh,{headers:Object.assign({},U,L)}),z=Object.assign({},h.Yh),h.Yh.method==="POST"&&(z=Object.assign({},z,{body:S})),((d=h.config)==null?0:d.z8I)&&zQ(h.config.z8I),W=function(){return u.Up.fetch(h.input,z,h.config)},A=W(),Q&&u.N.set(Q,A)),g.N(Yb,A,14);
case 14:if((t=Yb.N)&&"error"in t&&((yn=t)==null?0:(KV=yn.error)==null?0:KV.details))for(u1=t.error.details,w=g.C(u1),k=w.next();!k.done;k=w.next())M=k.value,(e=M["@type"])&&DXb.indexOf(e)>-1&&(delete M["@type"],t=M);Q&&u.N.has(Q)&&u.N.delete(Q);((sj=h.config)==null?0:sj.K7i)&&zQ(h.config.K7i);if(t||(l3=u.X)==null||!l3.rGI(h.input,h.a8)){Yb.KI(15);break}return g.N(Yb,u.X.TCw(h.input,h.a8),16);case 16:t=Yb.N;case 15:return f$n(u,t,h),((c1=h.config)==null?0:c1.J4w)&&zQ(h.config.J4w),Z(),Yb.return(t||
void 0)}})};
Rb1=function(u,h){a:{u=u.w$;var L,Z=(L=g.n(h,Mea))==null?void 0:L.signal;if(Z&&u.Ya&&(L=u.Ya[Z])){var y=L();break a}var R;if((L=(R=g.n(h,idV))==null?void 0:R.request)&&u.QT&&(R=u.QT[L])){y=R();break a}for(y in h)if(u.qP[y]&&(h=u.qP[y])){y=h();break a}y=void 0}if(y!==void 0)return Promise.resolve(y)};
KUR=function(u,h,L){var Z,y,R,p,J,O,f;return g.G(function(D){if(D.G==1){R=((Z=h)==null?void 0:(y=Z.Kq)==null?void 0:y.identity)||O3;O=(p=h)==null?void 0:(J=p.Kq)==null?void 0:J.sessionIndex;var c=g.xQ(u.G.wI(R,{sessionIndex:O}));return g.N(D,c,2)}f=D.N;return D.return(Promise.resolve(Object.assign({},lPR(L),f)))})};
p5j=function(u,h,L){var Z,y=(h==null?void 0:(Z=h.Kq)==null?void 0:Z.identity)||O3,R;h=h==null?void 0:(R=h.Kq)==null?void 0:R.sessionIndex;u=u.G.wI(y,{sessionIndex:h});return Object.assign({},lPR(L),u)};
$z=function(){};
tS=function(){};
Wc=function(u){this.C=u};
FE=function(){};
by=function(){};
Eh=function(){};
kz=function(){};
g.gT=function(u,h){var L=g.NL.apply(2,arguments);u=u===void 0?0:u;g.aO.call(this,h,L);this.errorType=u;Object.setPrototypeOf(this,this.constructor.prototype)};
uB=function(u,h,L){this.G=u;this.N=h;this.X=L};
cQf=function(u,h,L){if(u.G){var Z=NE(g.ru(5,aT(h,"key")))||"/UNKNOWN_PATH";u.G.start(Z)}u=L;g.MI("wug_networking_gzip_request")&&(u=$HV(L));return new window.Request(h,u)};
g.hC=function(u,h){if(!j4){var L=Gt();Yo(L,{TK:I$j,rV:uB});var Z={qP:{feedbackEndpoint:bi(FE),modifyChannelNotificationPreferenceEndpoint:bi(by),playlistEditEndpoint:bi(Eh),shareEntityEndpoint:bi(Wc),subscribeEndpoint:bi($z),unsubscribeEndpoint:bi(tS),webPlayerShareEntityServiceEndpoint:bi(kz)}},y=tk.getInstance(),R={};y&&(R.client_location=y);u===void 0&&(u=uLb());h===void 0&&(h=L.resolve(I$j));yQw(Z,h,u,R);Yo(L,{TK:AQs,oU:wT.instance});j4=L.resolve(AQs)}return j4};
xXR=function(u){var h=new cl;if(u.interpreterJavascript){var L=rYn(u.interpreterJavascript);L=VC(L).toString();var Z=new fi;x8(Z,6,L);p9(h,fi,1,Z)}else u.interpreterUrl&&(L=lU(u.interpreterUrl),L=vo(L).toString(),Z=new Df,x8(Z,4,L),p9(h,Df,2,Z));u.interpreterHash&&Pp(h,3,u.interpreterHash);u.program&&Pp(h,4,u.program);u.globalName&&Pp(h,5,u.globalName);u.clientExperimentsStateBlob&&Pp(h,7,u.clientExperimentsStateBlob);return h};
L_=function(u){var h={};u=u.split("&");u=g.C(u);for(var L=u.next();!L.done;L=u.next())L=L.value.split("="),L.length===2&&(h[L[0]]=L[1]);return h};
uhf=function(){if(g.MI("bg_st_hr"))return"havuokmhhs-0";var u,h=((u=performance)==null?void 0:u.timeOrigin)||0;return"havuokmhhs-"+Math.floor(h)};
ZS=function(u){this.G=u};
Pg1=function(){return new Promise(function(u){var h=window.top;h.ntpevasrs!==void 0?u(new ZS(h.ntpevasrs)):(h.ntpqfbel===void 0&&(h.ntpqfbel=[]),h.ntpqfbel.push(function(L){u(new ZS(L))}))})};
MsR=function(){if(!g.MI("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.MI("disable_biscotti_fetch_entirely_for_all_web_clients")&&uw()){var u=g.tn("PLAYER_VARS",{});if(g.YJ(u,"privembed",!1)!="1"&&!qMl(u)){var h=function(){yi=!0;"google_ad_status"in window?$B("DCLKSTAT",1):$B("DCLKSTAT",2)};
try{g.R6("//static.doubleclick.net/instream/ad_status.js",h)}catch(L){}CgV.push(g.sM.xB(function(){if(!(yi||"google_ad_status"in window)){try{if(h){var L=""+g.b1(h),Z=qJb[L];Z&&g.Z$(Z)}}catch(y){}yi=!0;$B("DCLKSTAT",3)}},5E3))}}};
Rt=function(){var u=Number(g.tn("DCLKSTAT",0));return isNaN(u)?0:u};
Os=function(u,h,L){var Z=this;this.network=u;this.options=h;this.N=L;this.G=null;if(h.VfB){var y=new g.Ab;this.G=y.promise;g.Vn.ytAtRC&&FA(function(){var R,p;return g.G(function(J){if(J.G==1){if(!g.Vn.ytAtRC)return J.return();R=p_(null);return g.N(J,K_(Z,R),2)}p=J.N;g.Vn.ytAtRC&&g.Vn.ytAtRC(JSON.stringify(p));g.i1(J)})},2);
Pg1().then(function(R){var p,J,O,f;return g.G(function(D){if(D.G==1)return R.bindInnertubeChallengeFetcher(function(c){return K_(Z,p_(c))}),g.N(D,YK(),2);
p=D.N;J=R.getLatestChallengeResponse();O=J.challenge;if(!O)throw Error("BGE_MACIL");f={challenge:O,w7:L_(O),Il:p,bgChallenge:new cl};y.resolve(f);R.registerChallengeFetchedCallback(function(c){c=c.challenge;if(!c)throw Error("BGE_MACR");c={challenge:c,w7:L_(c),Il:p,bgChallenge:new cl};Z.G=Promise.resolve(c)});
g.i1(D)})})}else h.preload&&ira(this,new Promise(function(R){g.bw(0,function(){R(JC(Z))},0)}))};
p_=function(u){var h={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};u&&(h.interpreterHash=u);return h};
JC=function(u,h){h=h===void 0?0:h;var L,Z,y,R,p,J,O,f,D,c,I,A;return g.G(function(x){switch(x.G){case 1:L=p_(Ci().G);if(g.MI("att_fet_ks"))return g.Qn(x,7),g.N(x,K_(u,L),9);g.Qn(x,4);return g.N(x,Q6e(u,L),6);case 6:p=x.N;y=p.Fg7;R=p.vvB;Z=p;g.Sa(x,3);break;case 4:return g.Xf(x),g.G3(Error("Failed to fetch attestation challenge after "+(h+" attempts; not retrying for 24h."))),f_(u,864E5),x.return({challenge:"",w7:{},Il:void 0,bgChallenge:void 0});case 9:Z=x.N;if(!Z)throw Error("Fetching Attestation challenge returned falsy");
if(!Z.challenge)throw Error("Missing Attestation challenge");y=Z.challenge;R=L_(y);if("c1a"in R&&(!Z.bgChallenge||!Z.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Sa(x,3);break;case 7:J=g.Xf(x);g.G3(J);h++;if(h>=5)return g.G3(Error("Failed to fetch attestation challenge after "+(h+" attempts; not retrying for 24h."))),f_(u,864E5),x.return({challenge:"",w7:{},Il:void 0,bgChallenge:void 0});O=1E3*Math.pow(2,h-1)+Math.random()*1E3;return x.return(new Promise(function(Q){g.bw(0,
function(){Q(JC(u,h))},O)}));
case 3:f=Number(R.t)||7200;f_(u,f*1E3);D=void 0;if(!("c1a"in R&&Z.bgChallenge)){x.KI(10);break}c=xXR(Z.bgChallenge);g.Qn(x,11);return g.N(x,Mq(Ci(),c),13);case 13:g.Sa(x,12);break;case 11:return I=g.Xf(x),g.G3(I),x.return({challenge:y,w7:R,Il:D,bgChallenge:c});case 12:return g.Qn(x,14),D=new xN({challenge:c,ED:{H7:"aGIf"}}),g.N(x,D.aG,16);case 16:g.Sa(x,10);break;case 14:A=g.Xf(x),g.G3(A),D=void 0;case 10:return x.return({challenge:y,w7:R,Il:D,bgChallenge:c})}})};
K_=function(u,h){var L;return g.G(function(Z){L=u.N;if(!L||L.jD())return Z.return(K_(u.network,h));sh("att_pna",void 0,"attestation_challenge_fetch");return Z.return(new Promise(function(y){L.bH("publicytnetworkstatus-online",function(){K_(u.network,h).then(y)})}))})};
l$a=function(u){if(!u)throw Error("Fetching Attestation challenge returned falsy");if(!u.challenge)throw Error("Missing Attestation challenge");var h=u.challenge,L=L_(h);if("c1a"in L&&(!u.bgChallenge||!u.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},u,{Fg7:h,vvB:L})};
Q6e=function(u,h){var L,Z,y,R,p;return g.G(function(J){switch(J.G){case 1:L=void 0,Z=0,y={};case 2:if(!(Z<5)){J.KI(4);break}if(!(Z>0)){J.KI(5);break}y.KC=1E3*Math.pow(2,Z-1)+Math.random()*1E3;return g.N(J,new Promise(function(O){return function(f){g.bw(0,function(){f(void 0)},O.KC)}}(y)),5);
case 5:return g.Qn(J,7),g.N(J,K_(u,h),9);case 9:return R=J.N,J.return(l$a(R));case 7:L=p=g.Xf(J),p instanceof Error&&g.G3(p);case 8:Z++;y={KC:void 0};J.KI(2);break;case 4:throw L;}})};
ira=function(u,h){u.G=h};
S2Y=function(u){var h,L,Z;return g.G(function(y){if(y.G==1)return g.N(y,Promise.race([u.G,null]),2);h=y.N;var R=JC(u);u.G=R;(L=h)==null||(Z=L.Il)==null||Z.dispose();g.i1(y)})};
f_=function(u,h){function L(){var y;return g.G(function(R){y=Z-Date.now();return y<1E3?g.N(R,S2Y(u),0):(FA(L,0,Math.min(y,6E4)),R.KI(0))})}
var Z=Date.now()+h;L()};
X5f=function(u,h){return new Promise(function(L){g.bw(0,function(){L(h())},u)})};
g.von=function(u,h){var L;return g.G(function(Z){var y=g.wn("yt.aba.att");return(L=y?y:Os.instance!==void 0?Os.instance.X.bind(Os.instance):null)?Z.return(L("ENGAGEMENT_TYPE_PLAYBACK",u,h)):Z.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
g.q2R=function(){var u;return(u=(u=g.wn("yt.aba.att2"))?u:Os.instance!==void 0?Os.instance.B.bind(Os.instance):null)?u():Promise.resolve(!1)};
Y2e=function(u,h){var L=g.wn("ytDebugData.callbacks");L||(L={},g.nV("ytDebugData.callbacks",L));if(g.MI("web_dd_iu")||T5n.includes(u))L[u]=h};
DS=function(){var u=oo1;var h=h===void 0?[]:h;var L=L===void 0?[]:L;h=YRj.apply(null,[oZf.apply(null,g.l(h))].concat(g.l(L)));this.store=UBY(u,void 0,h)};
g.cE=function(u,h,L){for(var Z=Object.assign({},u),y=g.C(Object.keys(h)),R=y.next();!R.done;R=y.next()){R=R.value;var p=u[R],J=h[R];if(J===void 0)delete Z[R];else if(p===void 0)Z[R]=J;else if(Array.isArray(J)&&Array.isArray(p))Z[R]=L?[].concat(g.l(p),g.l(J)):J;else if(!Array.isArray(J)&&g.Wi(J)&&!Array.isArray(p)&&g.Wi(p))Z[R]=g.cE(p,J,L);else if(typeof J===typeof p)Z[R]=J;else return h=new g.aO("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:R,H5a:p,updateValue:J}),g.UZ(h),
u}return Z};
It=function(u){var h=this;u=u===void 0?[]:u;this.B_=[];this.rZ=this.yK=0;this.K$=void 0;this.totalLength=0;u.forEach(function(L){h.append(L)})};
N5R=function(u,h){return u.B_.length===0?!1:(u=u.B_[u.B_.length-1])&&u.buffer===h.buffer&&u.byteOffset+u.length===h.byteOffset};
AC=function(u,h){h=g.C(h.B_);for(var L=h.next();!L.done;L=h.next())u.append(L.value)};
xW=function(u,h,L){return u.split(h).NJ.split(L).jU};
PE=function(u){u.K$=void 0;u.yK=0;u.rZ=0};
C_=function(u,h,L){u.isFocused(h);return h-u.rZ+L<=u.B_[u.yK].length};
UXi=function(u){if(!u.K$){var h=u.B_[u.yK];u.K$=new DataView(h.buffer,h.byteOffset,h.length)}return u.K$};
Mj=function(u,h,L){u=u.oF(h===void 0?0:h,L===void 0?-1:L);h=new Uint8Array(u.length);try{h.set(u)}catch(Z){for(L=0;L<u.length;L++)h[L]=u[L]}return h};
GtL=function(u,h){u.focus(h);return C_(u,h,4)?UXi(u).getUint32(h-u.rZ):256*(256*(256*u.getUint8(h)+u.getUint8(h+1))+u.getUint8(h+2))+u.getUint8(h+3)};
Hrn=function(u){for(var h=new Uint8Array(u.length),L=0;L<u.length;L++)h[L]=u.charCodeAt(L);return h};
Qi=function(u){return u.length?iB?iB.decode(u):String.fromCharCode.apply(null,u):""};
g.S4=function(u){if(!u.length)return"";try{if(iB)return iB.decode(u);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(u)}catch(p){}for(var h=0,L=[],Z=u.length;h<Z;){for(var y=0;y<1024&&h<Z;){var R=u[h++];if(R<128)lB[y++]=R;else{if(R<224)R=(R&31)<<6|u[h++]&63;else if(R<240)R=(R&15)<<12|(u[h++]&63)<<6|u[h++]&63;else{if(y+1===1024){--h;break}R=(R&7)<<18|(u[h++]&63)<<12|(u[h++]&63)<<6|u[h++]&63;R-=65536;lB[y++]=55296|R>>10;R=56320|R&1023}lB[y++]=R}}R=String.fromCharCode.apply(String,lB);
y<1024&&(R=R.substring(0,y));L.push(R)}return L.join("")};
vE=function(u,h){var L;if((L=XF)==null?0:L.encodeInto)return h=XF.encodeInto(u,h),h.read<u.length?u.length*4:h.written;for(var Z=L=0;Z<u.length;Z++){var y=u.charCodeAt(Z);y<128?h[L++]=y:(y<2048?h[L++]=y>>6|192:((y&64512)===55296&&Z+1<u.length&&(u.charCodeAt(Z+1)&64512)===56320?(y=65536+((y&1023)<<10)+(u.charCodeAt(++Z)&1023),h[L++]=y>>18|240,h[L++]=y>>12&63|128):h[L++]=y>>12|224,h[L++]=y>>6&63|128),h[L++]=y&63|128)}return L};
qj=function(u){if(XF)return XF.encode(u);var h=new Uint8Array(Math.ceil(u.length*1.2)),L=vE(u,h);h.length<L&&(h=new Uint8Array(L),L=vE(u,h));h.length>L&&(h=h.subarray(0,L));return h};
TR=function(u){this.G=u;this.pos=0;this.N=-1};
YW=function(u){var h=u.G.getUint8(u.pos);++u.pos;if(h<128)return h;for(var L=h&127,Z=1;h>=128;)h=u.G.getUint8(u.pos),++u.pos,Z*=128,L+=(h&127)*Z;return L};
ot=function(u,h){var L=u.N;for(u.N=-1;u.G.NC(u.pos,1);){L<0&&(L=YW(u));var Z=L>>3,y=L&7;if(Z===h)return!0;if(Z>h){u.N=L;break}L=-1;switch(y){case 0:YW(u);break;case 1:u.pos+=8;break;case 2:Z=YW(u);u.pos+=Z;break;case 5:u.pos+=4}}return!1};
Nj=function(u,h){if(ot(u,h))return YW(u)};
Us=function(u,h){if(ot(u,h))return!!YW(u)};
GR=function(u,h){if(ot(u,h)){h=YW(u);var L=u.G.oF(u.pos,h);u.pos+=h;return L}};
HE=function(u,h){if(u=GR(u,h))return g.S4(u)};
rA=function(u,h,L){if(u=GR(u,h))return L(new TR(new It([u])))};
BE=function(u,h){for(var L=[];ot(u,h);)L.push(YW(u));return L.length?L:void 0};
zR=function(u,h,L){for(var Z=[],y;y=GR(u,h);)Z.push(L(new TR(new It([y]))));return Z.length?Z:void 0};
mv=function(u,h){u=u instanceof Uint8Array?new It([u]):u;return h(new TR(u))};
rQa=function(u,h,L){if(h&&L&&L.buffer===h.exports.memory.buffer){var Z=h.realloc(L.byteOffset,u);if(Z)return new Uint8Array(h.exports.memory.buffer,Z,u)}u=h?new Uint8Array(h.exports.memory.buffer,h.malloc(u),u):new Uint8Array(u);L&&u.set(L);return u};
B5e=function(u,h){this.Mm=h;this.pos=0;this.N=[];this.G=rQa(u===void 0?4096:u,h);this.view=new DataView(this.G.buffer,this.G.byteOffset,this.G.byteLength)};
dA=function(u,h){h=u.pos+h;if(!(u.G.length>=h)){for(var L=u.G.length*2;L<h;)L*=2;u.G=rQa(L,u.Mm,u.G.subarray(0,u.pos));u.view=new DataView(u.G.buffer,u.G.byteOffset,u.G.byteLength)}};
Vi=function(u,h){if(h>268435455){dA(u,4);for(var L=h&1073741823,Z=0;Z<4;Z++)u.view.setUint8(u.pos,L&127|128),L>>=7,u.pos+=1;h=Math.floor(h/268435456)}for(dA(u,4);h>127;)u.view.setUint8(u.pos,h&127|128),h>>=7,u.pos+=1;u.view.setUint8(u.pos,h);u.pos+=1};
n_=function(u,h,L){L!==void 0&&(Vi(u,h*8),Vi(u,L))};
wA=function(u,h,L){L!==void 0&&n_(u,h,L?1:0)};
e4=function(u,h,L){L!==void 0&&(Vi(u,h*8+2),h=L.length,Vi(u,h),dA(u,h),u.G.set(L,u.pos),u.pos+=h)};
at=function(u,h,L){L!==void 0&&(zbn(u,h,Math.ceil(Math.log2(L.length*4+2)/7)),dA(u,L.length*1.2),h=vE(L,u.G.subarray(u.pos)),u.pos+h>u.G.length&&(dA(u,h),h=vE(L,u.G.subarray(u.pos))),u.pos+=h,mXY(u))};
zbn=function(u,h,L){L=L===void 0?2:L;Vi(u,h*8+2);u.N.push(u.pos);u.N.push(L);u.pos+=L};
mXY=function(u){for(var h=u.N.pop(),L=u.N.pop(),Z=u.pos-L-h;h--;){var y=h?128:0;u.view.setUint8(L++,Z&127|y);Z>>=7}};
hi=function(u,h,L,Z,y){L&&(zbn(u,h,y===void 0?3:y),Z(u,L),mXY(u))};
g.L7=function(u,h,L){L=new B5e(4096,L);h(L,u);return new Uint8Array(L.G.buffer,L.G.byteOffset,L.pos)};
g.ZA=function(u){var h=new TR(new It([Qu(decodeURIComponent(u))]));u=HE(h,2);h=Nj(h,4);var L=dXl[h];if(typeof L==="undefined")throw u=new g.aO("Failed to recognize field number",{name:"EntityKeyHelperError",tKd:h}),g.UZ(u),u;return{Ur:h,entityType:L,entityId:u}};
g.yv=function(u,h){var L=new B5e;e4(L,2,qj(u));u=VsR[h];if(typeof u==="undefined")throw h=new g.aO("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:h}),g.UZ(h),h;n_(L,4,u);n_(L,5,1);h=new Uint8Array(L.G.buffer,L.G.byteOffset,L.pos);return encodeURIComponent(g.Mk(h))};
R9=function(u,h,L,Z){if(Z===void 0)return Z=Object.assign({},u[h]||{}),L=(delete Z[L],Z),Z={},Object.assign({},u,(Z[h]=L,Z));var y={},R={};return Object.assign({},u,(R[h]=Object.assign({},u[h],(y[L]=Z,y)),R))};
non=function(u,h,L,Z,y){var R=u[h];if(R==null||!R[L])return u;Z=g.cE(R[L],Z,y==="REPEATED_FIELDS_MERGE_OPTION_APPEND");y={};R={};return Object.assign({},u,(R[h]=Object.assign({},u[h],(y[L]=Z,y)),R))};
s6b=function(u,h){u=u===void 0?{}:u;switch(h.type){case "ENTITY_LOADED":return h.payload.reduce(function(Z,y){var R,p=(R=y.options)==null?void 0:R.persistenceOption;if(p&&p!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&p!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return Z;if(!y.entityKey)return g.UZ(Error("Missing entity key")),Z;if(y.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!y.payload)return g.UZ(new g.aO("REPLACE entity mutation is missing a payload",{entityKey:y.entityKey})),Z;var J=g.Q2(y.payload);
return R9(Z,J,y.entityKey,y.payload[J])}if(y.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{y=y.entityKey;try{var O=g.ZA(y).entityType;J=R9(Z,O,y);break a}catch(c){if(c instanceof Error){g.UZ(new g.aO("Failed to deserialize entity key",{entityKey:y,Xd:c.message}));J=Z;break a}throw c;}J=void 0}return J}if(y.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!y.payload)return g.UZ(new g.aO("UPDATE entity mutation is missing a payload",{entityKey:y.entityKey})),Z;J=g.Q2(y.payload);var f,D;return non(Z,J,y.entityKey,
y.payload[J],(f=y.fieldMask)==null?void 0:(D=f.mergeOptions)==null?void 0:D.repeatedFieldsMergeOption)}return Z},u);
case "REPLACE_ENTITY":var L=h.payload;return R9(u,L.entityType,L.key,L.Vl);case "REPLACE_ENTITIES":return Object.keys(h.payload).reduce(function(Z,y){var R=h.payload[y];return Object.keys(R).reduce(function(p,J){return R9(p,y,J,R[J])},Z)},u);
case "UPDATE_ENTITY":return L=h.payload,non(u,L.entityType,L.key,L.Vl,L.PYd);default:return u}};
p7=function(u,h,L){return u[h]?u[h][L]||null:null};
K7=function(u){return window.Int32Array?new Int32Array(u):Array(u)};
I9=function(u){g.m.call(this);this.counter=[0,0,0,0];this.N=new Uint8Array(16);this.G=16;if(!w5e){var h,L=new Uint8Array(256),Z=new Uint8Array(256);var y=1;for(h=0;h<256;h++)L[y]=h,Z[h]=y,y^=y<<1^(y>>7&&283);Ji=new Uint8Array(256);Oo=K7(256);f7=K7(256);DA=K7(256);cA=K7(256);for(var R=0;R<256;R++){y=R?Z[255^L[R]]:0;y^=y<<1^y<<2^y<<3^y<<4;y=y&255^y>>>8^99;Ji[R]=y;h=y<<1^(y>>7&&283);var p=h^y;Oo[R]=h<<24|y<<16|y<<8|p;f7[R]=p<<24|Oo[R]>>>8;DA[R]=y<<24|f7[R]>>>8;cA[R]=y<<24|DA[R]>>>8}w5e=!0}y=K7(44);for(L=
0;L<4;L++)y[L]=u[4*L]<<24|u[4*L+1]<<16|u[4*L+2]<<8|u[4*L+3];for(Z=1;L<44;L++)u=y[L-1],L%4||(u=(Ji[u>>16&255]^Z)<<24|Ji[u>>8&255]<<16|Ji[u&255]<<8|Ji[u>>>24],Z=Z<<1^(Z>>7&&283)),y[L]=y[L-4]^u;this.key=y};
Ai=function(u,h){for(var L=0;L<4;L++)u.counter[L]=h[L*4]<<24|h[L*4+1]<<16|h[L*4+2]<<8|h[L*4+3];u.G=16};
ebn=function(u){for(var h=u.key,L=u.counter[0]^h[0],Z=u.counter[1]^h[1],y=u.counter[2]^h[2],R=u.counter[3]^h[3],p=3;p>=0&&!(u.counter[p]=-~u.counter[p]);p--);for(var J,O,f=4;f<40;)p=Oo[L>>>24]^f7[Z>>16&255]^DA[y>>8&255]^cA[R&255]^h[f++],J=Oo[Z>>>24]^f7[y>>16&255]^DA[R>>8&255]^cA[L&255]^h[f++],O=Oo[y>>>24]^f7[R>>16&255]^DA[L>>8&255]^cA[Z&255]^h[f++],R=Oo[R>>>24]^f7[L>>16&255]^DA[Z>>8&255]^cA[y&255]^h[f++],L=p,Z=J,y=O;u=u.N;p=h[40];u[0]=Ji[L>>>24]^p>>>24;u[1]=Ji[Z>>16&255]^p>>16&255;u[2]=Ji[y>>8&255]^
p>>8&255;u[3]=Ji[R&255]^p&255;p=h[41];u[4]=Ji[Z>>>24]^p>>>24;u[5]=Ji[y>>16&255]^p>>16&255;u[6]=Ji[R>>8&255]^p>>8&255;u[7]=Ji[L&255]^p&255;p=h[42];u[8]=Ji[y>>>24]^p>>>24;u[9]=Ji[R>>16&255]^p>>16&255;u[10]=Ji[L>>8&255]^p>>8&255;u[11]=Ji[Z&255]^p&255;p=h[43];u[12]=Ji[R>>>24]^p>>>24;u[13]=Ji[L>>16&255]^p>>16&255;u[14]=Ji[Z>>8&255]^p>>8&255;u[15]=Ji[y&255]^p&255};
C7=function(){if(!xE&&!g.$w){if(PA)return PA;var u;PA=(u=window.crypto)==null?void 0:u.subtle;var h,L,Z;if(((h=PA)==null?0:h.importKey)&&((L=PA)==null?0:L.sign)&&((Z=PA)==null?0:Z.encrypt))return PA;PA=void 0}};
g.MQ=function(u){this.B=u};
g.ic=function(u){this.N=u};
Qv=function(u){this.T=new Uint8Array(64);this.X=new Uint8Array(64);this.B=0;this.C=new Uint8Array(64);this.N=0;this.T.set(u);this.X.set(u);for(u=0;u<64;u++)this.T[u]^=92,this.X[u]^=54;this.reset()};
a$L=function(u,h,L){for(var Z=u.V,y=u.G[0],R=u.G[1],p=u.G[2],J=u.G[3],O=u.G[4],f=u.G[5],D=u.G[6],c=u.G[7],I,A,x,Q=0;Q<64;)Q<16?(Z[Q]=x=h[L]<<24|h[L+1]<<16|h[L+2]<<8|h[L+3],L+=4):(I=Z[Q-2],A=Z[Q-15],x=Z[Q-7]+Z[Q-16]+((I>>>17|I<<15)^(I>>>19|I<<13)^I>>>10)+((A>>>7|A<<25)^(A>>>18|A<<14)^A>>>3),Z[Q]=x),I=c+lc[Q]+x+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&f^~O&D),A=((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+(y&R^y&p^R&p),c=I+A,J+=I,Q++,Q<16?(Z[Q]=x=h[L]<<24|h[L+1]<<16|h[L+2]<<8|h[L+3],L+=4):(I=
Z[Q-2],A=Z[Q-15],x=Z[Q-7]+Z[Q-16]+((I>>>17|I<<15)^(I>>>19|I<<13)^I>>>10)+((A>>>7|A<<25)^(A>>>18|A<<14)^A>>>3),Z[Q]=x),I=D+lc[Q]+x+((J>>>6|J<<26)^(J>>>11|J<<21)^(J>>>25|J<<7))+(J&O^~J&f),A=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&y^c&R^y&R),D=I+A,p+=I,Q++,Q<16?(Z[Q]=x=h[L]<<24|h[L+1]<<16|h[L+2]<<8|h[L+3],L+=4):(I=Z[Q-2],A=Z[Q-15],x=Z[Q-7]+Z[Q-16]+((I>>>17|I<<15)^(I>>>19|I<<13)^I>>>10)+((A>>>7|A<<25)^(A>>>18|A<<14)^A>>>3),Z[Q]=x),I=f+lc[Q]+x+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&J^
~p&O),A=((D>>>2|D<<30)^(D>>>13|D<<19)^(D>>>22|D<<10))+(D&c^D&y^c&y),f=I+A,R+=I,Q++,Q<16?(Z[Q]=x=h[L]<<24|h[L+1]<<16|h[L+2]<<8|h[L+3],L+=4):(I=Z[Q-2],A=Z[Q-15],x=Z[Q-7]+Z[Q-16]+((I>>>17|I<<15)^(I>>>19|I<<13)^I>>>10)+((A>>>7|A<<25)^(A>>>18|A<<14)^A>>>3),Z[Q]=x),I=O+lc[Q]+x+((R>>>6|R<<26)^(R>>>11|R<<21)^(R>>>25|R<<7))+(R&p^~R&J),A=((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(f&D^f&c^D&c),x=c,c=J,J=x,x=D,D=p,p=x,x=f,f=R,R=x,O=y+I,y=I+A,Q++;u.G[0]=y+u.G[0]|0;u.G[1]=R+u.G[1]|0;u.G[2]=p+u.G[2]|0;u.G[3]=
J+u.G[3]|0;u.G[4]=O+u.G[4]|0;u.G[5]=f+u.G[5]|0;u.G[6]=D+u.G[6]|0;u.G[7]=c+u.G[7]|0};
tsl=function(u){var h=new Uint8Array(32),L=64-u.N;u.N>55&&(L+=64);var Z=new Uint8Array(L);Z[0]=128;for(var y=u.B*8,R=1;R<9;R++){var p=y%256;Z[L-R]=p;y=(y-p)/256}u.update(Z);for(L=0;L<8;L++)h[L*4]=u.G[L]>>>24,h[L*4+1]=u.G[L]>>>16&255,h[L*4+2]=u.G[L]>>>8&255,h[L*4+3]=u.G[L]&255;$Xw(u);return h};
$Xw=function(u){u.G=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];u.V=[];u.V.length=64;u.B=0;u.N=0};
WUi=function(u){this.G=u};
FUn=function(u,h,L){u=new Qv(u.G);u.update(h);u.update(L);h=tsl(u);u.update(u.T);u.update(h);h=tsl(u);u.reset();return h};
brl=function(u){this.N=u};
EoL=function(u,h,L,Z){var y,R,p;return g.G(function(J){switch(J.G){case 1:if(u.G){J.KI(2);break}return g.N(J,Z.importKey("raw",u.N,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:u.G=J.N;case 2:return y=new Uint8Array(h.length+L.length),y.set(h),y.set(L,h.length),R={name:"HMAC",hash:"SHA-256"},g.N(J,Z.sign(R,u.G,y),4);case 4:return p=J.N,J.return(new Uint8Array(p))}})};
kta=function(u,h,L){u.X||(u.X=new WUi(u.N));return FUn(u.X,h,L)};
gof=function(u,h,L){var Z,y;return g.G(function(R){if(R.G==1){Z=C7();if(!Z)return R.return(kta(u,h,L));g.Qn(R,3);return g.N(R,EoL(u,h,L,Z),5)}if(R.G!=3)return R.return(R.N);y=g.Xf(R);g.G3(y);xE=!0;return R.return(kta(u,h,L))})};
jEV=function(u){for(var h="",L=0;L<u.length;L++){var Z=u[L];if(L===0)Z="M "+Z.x.toFixed(1)+","+Z.y.toFixed(1);else{var y=uY1(u[L-1],u[L-2],Z),R=uY1(Z,u[L-1],u[L+1],!0);Z=" C "+(y.x.toFixed(1)+","+y.y.toFixed(1)+" "+R.x.toFixed(1)+","+R.y.toFixed(1)+" "+Z.x.toFixed(1)+","+Z.y.toFixed(1))}h+=Z}return h};
uY1=function(u,h,L,Z){Z=Z===void 0?!1:Z;h=new hQ1(h||u,L||u);return{x:u.x+((Z===void 0?0:Z)?h.G*-1:h.G)*.2,y:u.y+((Z===void 0?0:Z)?h.N*-1:h.N)*.2}};
hQ1=function(u,h){this.N=this.G=0;this.G=h.x-u.x;this.N=h.y-u.y};
yXl=function(u,h){var L,Z,y;return g.G(function(R){if(R.G==1)return L={context:g.W2(),settingItemIds:h},Z=g.E_(LGw),g.N(R,g.ah(u,L,Z),2);y=R.N;return!y||y.errorMetadata?(Zej("GetSettingValuesRequest",y),R.return(void 0)):R.return(y.settingValues)})};
p3l=function(u,h,L){var Z,y,R;g.G(function(p){if(p.G==1)return Z={context:g.W2(),settingItemId:h,newValue:L},y=g.E_(RQa),g.N(p,g.ah(u,Z,y),2);R=p.N;if(!R||R.errorMetadata)return Zej("SetSettingRequest",R),p.return(void 0);g.i1(p)})};
Zej=function(u,h){h?h.errorMetadata&&g.G3(new g.aO(u+" failed with status "+h.errorMetadata.status)):g.G3(new g.aO(u+" failed with empty response"))};
S7=function(u,h,L){if(!h)return u.length>=1?u[u.length-1]:null;for(var Z=g.C(u),y=Z.next();!y.done;y=Z.next())if(y=y.value,y.width&&y.height&&(L&&y.width>=h||!L&&y.height>=h))return y;for(h=u.length-1;h>=0;h--)if(L&&u[h].width||!L&&u[h].height)return u[h];return u[0]};
X4=function(){this.state=1;this.Il=null;this.a7=void 0};
JXe=function(u,h,L,Z,y,R){var p=p===void 0?"trayride":p;L?(u.Sq(2),g.R6(L,function(){if(window[p])KGV(u,Z,p,y);else{u.Sq(3);var J=v7a(L),O=document.getElementById(J);O&&(SJi(J),O.parentNode.removeChild(O));g.G3(new g.aO("Unable to load Botguard","from "+L))}},R)):h?(R=g.kJ("SCRIPT"),h instanceof de?(R.textContent=VC(h),nB(R)):R.textContent=h,R.nonce=m6(document),document.head.appendChild(R),document.head.removeChild(R),window[p]?KGV(u,Z,p,y):(u.Sq(4),g.G3(new g.aO("Unable to load Botguard from JS")))):
g.G3(new g.aO("Unable to load VM; no url or JS provided"))};
KGV=function(u,h,L,Z){u.Sq(5);var y=!!u.a7&&OeL.includes(g.BY(u.a7)||"");try{var R=new xN({program:h,globalName:L,ED:{disable:!g.MI("att_web_record_metrics")||!g.MI("att_skip_metrics_for_cookieless_domains_ks")&&y,H7:"aGIf"}});R.aG.then(function(){u.Sq(6);Z&&Z(h)});
u.Em(R)}catch(p){u.Sq(7),p instanceof Error&&g.G3(p)}};
vA=function(){var u=g.wn("yt.abuse.playerAttLoader");return u&&["bgvma","bgvmb","bgvmc"].every(function(h){return h in u})?u:null};
qQ=function(){X4.apply(this,arguments)};
T2=function(){};
fgi=function(u,h,L){for(var Z=!1,y=g.C(u.rX.entries()),R=y.next();!R.done;R=y.next())R=g.C(R.value).next().value,R.slotType==="SLOT_TYPE_PLAYER_BYTES"&&R.LI==="core"&&(Z=!0);if(Z){a:if(!L){u=g.C(u.rX.entries());for(L=u.next();!L.done;L=u.next())if(Z=g.C(L.value),L=Z.next().value,Z=Z.next().value,L.slotType==="SLOT_TYPE_IN_PLAYER"&&L.LI==="core"){L=Z.layoutId;break a}L=void 0}L?h.V6(L):Jk("No triggering layout ID available when attempting to mute.")}};
YE=function(u,h){this.JV=u;this.u8=h};
o9=function(){};
NQ=function(){};
cXR=function(u){g.m.call(this);var h=this;this.LH=u;this.G=new Map;Uo(this,"commandExecutorCommand",function(L,Z,y){D_j(h,L.commands,Z,y)});
Uo(this,"clickTrackingParams",function(){})};
Igw=function(u,h){Uo(u,h.Y0(),function(L,Z,y){h.Ir(L,Z,y)})};
Uo=function(u,h,L){u.ww();u.G.get(h)&&g.UZ(Error("Extension name "+h+" already registered"));u.G.set(h,L)};
D_j=function(u,h,L,Z){h=h===void 0?[]:h;u.ww();var y=[],R=[];h=g.C(h);for(var p=h.next();!p.done;p=h.next())p=p.value,g.n(p,AX1)||g.n(p,x_R)?y.push(p):R.push(p);y=g.C(y);for(h=y.next();!h.done;h=y.next())G2(u,h.value,L,Z);R=g.C(R);for(y=R.next();!y.done;y=R.next())G2(u,y.value,L,Z)};
G2=function(u,h,L,Z){u.ww();h.loggingUrls&&Psl(u,"loggingUrls",h.loggingUrls,L,Z);h=g.C(Object.entries(h));for(var y=h.next();!y.done;y=h.next()){var R=g.C(y.value);y=R.next().value;R=R.next().value;y==="openPopupAction"?u.LH.get().jA("innertubeCommand",{openPopupAction:R}):y==="confirmDialogEndpoint"?u.LH.get().jA("innertubeCommand",{confirmDialogEndpoint:R}):CsR.hasOwnProperty(y)||Psl(u,y,R,L,Z)}};
Psl=function(u,h,L,Z,y){if((u=u.G.get(h))&&typeof u==="function")try{u(L,Z,y)}catch(R){g.UZ(R)}else h=new g.aO("Unhandled field",h),g.G3(h)};
HA=function(u,h,L){this.X9=u;this.G=h;this.cX=L};
rr=function(u){this.value=u};
BA=function(u){this.value=u};
z2=function(u){this.value=u};
mp=function(u){this.value=u};
dr=function(u){this.value=u};
Vv=function(u){this.value=u};
n7=function(u){this.value=u};
so=function(){rr.apply(this,arguments)};
wr=function(u){this.value=u};
e7=function(u){this.value=u};
a9=function(u){this.value=u};
$E=function(u){this.value=u};
ti=function(u){this.value=u};
WA=function(u){this.value=u};
F4=function(u){this.value=u};
bc=function(u){this.value=u};
Eo=function(u){this.value=u};
kE=function(u){this.value=u};
gr=function(){rr.apply(this,arguments)};
uS=function(u){this.value=u};
jN=function(u){this.value=u};
he=function(u){this.value=u};
L6=function(u){this.value=u};
ZX=function(u){this.value=u};
yO=function(u){this.value=u};
RP=function(u){this.value=u};
p6=function(u){this.value=u};
K6=function(u){this.value=u};
Je=function(u){this.value=u};
Od=function(u){this.value=u};
f6=function(u){this.value=u};
DX=function(u){this.value=u};
cU=function(u){this.value=u};
IP=function(u){this.value=u};
Ae=function(u){this.value=u};
x$=function(u){this.value=u};
PU=function(u){this.value=u};
C6=function(u){this.value=u};
Mt=function(u){this.value=u};
iS=function(u){this.value=u};
QO=function(u){this.value=u};
lS=function(u){this.value=u};
SN=function(u){this.value=u};
Xz=function(u){this.value=u};
vU=function(u){this.value=u};
qt=function(u){this.value=u};
TP=function(u){this.value=u};
Y$=function(u){this.value=u};
oP=function(u){this.value=u};
Nt=function(u){this.value=u};
Ud=function(u){this.value=u};
GP=function(u){this.value=u};
HU=function(u){this.value=u};
rQ=function(u){this.value=u};
BU=function(u){this.value=u};
zP=function(u){this.value=u};
mf=function(u){this.value=u};
dQ=function(){rr.apply(this,arguments)};
VO=function(u){this.value=u};
n6=function(){rr.apply(this,arguments)};
sd=function(){rr.apply(this,arguments)};
wQ=function(){rr.apply(this,arguments)};
eN=function(){rr.apply(this,arguments)};
aP=function(){rr.apply(this,arguments)};
$$=function(u){this.value=u};
te=function(u){this.value=u};
WU=function(u){this.value=u};
Fz=function(u){this.value=u};
bS=function(u){this.value=u};
k$=function(u,h,L){if(L&&!L.includes(u.layoutType))return!1;h=g.C(h);for(L=h.next();!L.done;L=h.next())if(!Ed(u.clientMetadata,L.value))return!1;return!0};
gQ=function(){return""};
M9Y=function(u,h){switch(u){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 h(u),8}};
uN=function(u,h,L,Z){Z=Z===void 0?!1:Z;Cq.call(this,u);this.b9=L;this.BL=Z;this.args=[];h&&this.args.push(h)};
b=function(u,h,L,Z){Z=Z===void 0?!1:Z;Cq.call(this,u);this.b9=L;this.BL=Z;this.args=[];h&&this.args.push(h)};
jM=function(u){var h=new Map;u.forEach(function(L){h.set(L.getType(),L)});
this.G=h};
Ed=function(u,h){return u.G.has(h)};
hl=function(u,h){u=u.G.get(h);if(u!==void 0)return u.get()};
LE=function(u){return Array.from(u.G.keys())};
ZF=function(u,h,L){if(L&&L!==u.slotType)return!1;h=g.C(h);for(L=h.next();!L.done;L=h.next())if(!Ed(u.clientMetadata,L.value))return!1;return!0};
QEj=function(u){var h;return((h=ieL.get(u))==null?void 0:h.mB)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
Rf=function(u,h){var L={type:h.slotType,controlFlowManagerLayer:lgY.get(h.LI)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};h.slotEntryTrigger&&(L.entryTriggerType=h.slotEntryTrigger.triggerType);h.slotPhysicalPosition!==1&&(L.slotPhysicalPosition=h.slotPhysicalPosition);if(u){L.debugData={slotId:h.slotId};if(u=h.slotEntryTrigger)L.debugData.slotEntryTriggerData=yr(u);u=h.slotFulfillmentTriggers;L.debugData.fulfillmentTriggerData=[];u=g.C(u);for(var Z=u.next();!Z.done;Z=u.next())L.debugData.fulfillmentTriggerData.push(yr(Z.value));
h=h.slotExpirationTriggers;L.debugData.expirationTriggerData=[];h=g.C(h);for(u=h.next();!u.done;u=h.next())L.debugData.expirationTriggerData.push(yr(u.value))}return L};
SZj=function(u,h){var L={type:h.layoutType,controlFlowManagerLayer:lgY.get(h.LI)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};u&&(L.debugData={layoutId:h.layoutId});return L};
yr=function(u,h){var L={type:u.triggerType};h!=null&&(L.category=h);u.triggeringSlotId!=null&&(L.triggerSourceData||(L.triggerSourceData={}),L.triggerSourceData.associatedSlotId=u.triggeringSlotId);u.triggeringLayoutId!=null&&(L.triggerSourceData||(L.triggerSourceData={}),L.triggerSourceData.associatedLayoutId=u.triggeringLayoutId);return L};
X3e=function(u,h,L,Z){h={opportunityType:h};u&&(Z||L)&&(Z=g.Xx(Z||[],function(y){return Rf(u,y)}),h.debugData=Object.assign({},L&&L.length>0?{associatedSlotId:L}:{},Z.length>0?{slots:Z}:{}));
return h};
KE=function(u,h){return function(L){return v1e(pE(u),h.slotId,h.slotType,h.slotPhysicalPosition,h.LI,h.slotEntryTrigger,h.slotFulfillmentTriggers,h.slotExpirationTriggers,L.layoutId,L.layoutType,L.LI)}};
v1e=function(u,h,L,Z,y,R,p,J,O,f,D){return{adClientDataEntry:{slotData:Rf(u,{slotId:h,slotType:L,slotPhysicalPosition:Z,LI:y,slotEntryTrigger:R,slotFulfillmentTriggers:p,slotExpirationTriggers:J,clientMetadata:new jM([])}),layoutData:SZj(u,{layoutId:O,layoutType:f,LI:D,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],Np:new Map,clientMetadata:new jM([]),oP:{}})}}};
Oi=function(u){this.Mi=u;u=Math.random();var h=this.Mi.get();h=g.Jl(h.D.L().experiments,"html5_debug_data_log_probability");h=Number.isFinite(h)&&h>=0&&h<=1?h:0;this.G=u<h};
pE=function(u){return u.G||u.Mi.get().D.L().j("html5_force_debug_data_for_client_tmp_logs")};
fE=function(u,h,L,Z){g.m.call(this);this.N=h;this.j7=L;this.Mi=Z;this.G=u(this,this,this,this,this);g.V(this,this.G);u=g.C(h);for(h=u.next();!h.done;h=u.next())g.V(this,h.value)};
DF=function(u,h){u.N.add(h)};
cs=function(u,h){u.N.delete(h)};
Al=function(u,h,L,Z){Jk(L,h,void 0,void 0,L.BL);L.b9?u.j7.l_(Z,L.b9,h):Jk("adsClientErrorMessage is missing.",h);If(u,h,!0)};
TDw=function(u,h,L){if(xk(u.G,h))if(Ps(u.G,h).B=L?"filled":"not_filled",L===null){u.j7.Xk("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",h);L=g.C(u.N);for(var Z=L.next();!Z.done;Z=L.next())Z.value.iS(h);If(u,h,!1)}else{u.j7.Xk("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",h,L);u.j7.Xk("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",h,L);var y,R=(y=L.Ba)!=null?y:hl(L.clientMetadata,"metadata_type_sub_layouts");if(R)for(y=g.C(R),R=y.next();!R.done;R=y.next())u.j7.Xk("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",
h,R.value);y=g.C(u.N);for(R=y.next();!R.done;R=y.next())R.value.Ho(h);if(xk(u.G,h))if(Ps(u.G,h).T)If(u,h,!1);else{u.j7.Xk("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",h,L);try{Z=u.G;if(!Ps(Z,h))throw new uN("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!Z.Z$.v8.get(h.slotType))throw new uN("No LayoutRenderingAdapterFactory registered for slot of type: "+h.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");
if(L.layoutExitNormalTriggers.length==0&&L.layoutExitSkipTriggers.length==0&&L.layoutExitMuteTriggers.length==0&&L.layoutExitUserInputSubmittedTriggers.length==0&&L.Pj.length==0)throw new uN("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");CE(Z,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",L.layoutExitNormalTriggers);CE(Z,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",L.layoutExitSkipTriggers);CE(Z,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",L.layoutExitMuteTriggers);
CE(Z,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",L.layoutExitUserInputSubmittedTriggers);CE(Z,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",L.Pj)}catch(f){f instanceof uN?u.dO(h,L,f,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):u.dO(h,L,new uN("Unexpected error: "+f,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");If(u,h,!0);return}Ps(u.G,h).C=!0;try{var p=u.G,J=Ps(p,h),O=p.Z$.v8.get(h.slotType).get().build(p.B,p.N,h,L);O.init();J.layout=
L;if(J.X)throw new uN("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");J.X=O;MZ(p,J,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",L.layoutExitNormalTriggers);MZ(p,J,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",L.layoutExitSkipTriggers);MZ(p,J,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",L.layoutExitMuteTriggers);MZ(p,J,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",L.layoutExitUserInputSubmittedTriggers);MZ(p,J,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",
L.Pj)}catch(f){iN(u,h);f instanceof uN?u.dO(h,L,f,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):u.dO(h,L,new uN("Unexpected error: "+f,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");If(u,h,!0);return}u.j7.Xk("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",h,L);Z=g.C(u.N);for(p=Z.next();!p.done;p=Z.next())p.value.lS(h,L);iN(u,h);qZV(u,h)}else u=u.Mi.get(),g.Qr(u.D.L())||lN(u.D.L())||g.SM(u.D.L())?u=!0:(Jk("Composite VOD on legacy path."),u=!1),u&&Jk("slot is unscheduled after been fulfilled.",
h,L)}};
YZw=function(u,h,L){h.LI!=="core"&&u.j7.Xk("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",h,L,void 0)};
o1n=function(u,h,L){u.j7.Xk("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",h,L,void 0);u=g.C(u.N);for(var Z=u.next();!Z.done;Z=u.next())Z.value.lS(h,L)};
NDe=function(u,h,L){u=g.C(u.N);for(var Z=u.next();!Z.done;Z=u.next())Z.value.Ou(h,L)};
XM=function(u,h,L){u.j7.Xk("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",h,L,void 0);u=g.C(u.N);for(var Z=u.next();!Z.done;Z=u.next())Z.value.Yl(h,L)};
vs=function(u,h,L,Z){u.j7.Xk(QEj(Z),h,L,void 0);u=g.C(u.N);for(var y=u.next();!y.done;y=u.next())y.value.KH(h,L,Z)};
iN=function(u,h){if(xk(u.G,h)){Ps(u.G,h).C=!1;var L=qZ;h=Ps(u.G,h);var Z=[].concat(g.l(h.S));kYn(h.S);L(u,Z)}};
qZ=function(u,h){h.sort(function(R,p){function J(O){Jk("TriggerCategoryOrder enum does not contain trigger category: "+O)}
return R.category===p.category?R.trigger.triggerId.localeCompare(p.trigger.triggerId):M9Y(R.category,J)-M9Y(p.category,J)});
var L=new Map;h=g.C(h);for(var Z=h.next();!Z.done;Z=h.next())if(Z=Z.value,xk(u.G,Z.slot))if(Ps(u.G,Z.slot).C)Ps(u.G,Z.slot).S.push(Z);else{u.j7.UR("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",Z.slot,Z,Z.layout);var y=L.get(Z.category);y||(y=[]);y.push(Z);L.set(Z.category,y)}h=g.C(U_1);for(Z=h.next();!Z.done;Z=h.next())y=g.C(Z.value),Z=y.next().value,y=y.next().value,(Z=L.get(Z))&&G3R(u,Z,y);(h=L.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&Hea(u,h);(h=L.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&rXR(u,
h);(L=L.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&BDn(u,L)};
G3R=function(u,h,L){h=g.C(h);for(var Z=h.next();!Z.done;Z=h.next())Z=Z.value,Z.layout&&T0(u.G,Z.slot)&&zQe(u,Z.slot,Z.layout,L)};
Hea=function(u,h){h=g.C(h);for(var L=h.next();!L.done;L=h.next())If(u,L.value.slot,!1)};
rXR=function(u,h){h=g.C(h);for(var L=h.next();!L.done;L=h.next()){L=L.value;a:switch(Ps(u.G,L.slot).B){case "not_filled":var Z=!0;break a;default:Z=!1}Z&&(u.j7.gZ("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",L.slot),u.G.BU(L.slot))}};
BDn=function(u,h){h=g.C(h);for(var L=h.next();!L.done;L=h.next()){L=L.value;u.j7.gZ("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",L.slot);for(var Z=g.C(u.N),y=Z.next();!y.done;y=Z.next())y.value.Lr(L.slot);try{var R=u.G,p=L.slot,J=Ps(R,p);if(!J)throw new b("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!J.N)throw new b("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(J.G!=="scheduled")throw new b("Tried to enter a slot from stage: "+
J.G,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(Yk(J))throw new b("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var O=g.C(of(R,p.slotType+"_"+p.slotPhysicalPosition).values()),f=O.next();!f.done;f=O.next()){var D=f.value;if(J!==D&&Yk(D))throw new b("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:D.G},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(c){c instanceof b&&c.b9?(u.j7.l_("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
c.b9,L.slot),Jk(c,L.slot,NZ(u.G,L.slot),void 0,c.BL)):(u.j7.l_("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",L.slot),Jk(c,L.slot));If(u,L.slot,!0);continue}L=Ps(u.G,L.slot);L.G!=="scheduled"&&Ui(L.slot,L.G,"enterSlot");L.G="enter_requested";L.N.iT()}};
qZV=function(u,h){if(xk(u.G,h)&&Yk(Ps(u.G,h))&&NZ(u.G,h)&&!T0(u.G,h)){var L;u.j7.Xk("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",h,(L=NZ(u.G,h))!=null?L:void 0);u=Ps(u.G,h);u.G!=="entered"&&Ui(u.slot,u.G,"enterLayoutForSlot");u.G="rendering";u.X.startRendering(u.layout)}};
zQe=function(u,h,L,Z){if(xk(u.G,h)){var y=u.j7,R=y.Xk,p;var J=((p=ieL.get(Z))==null?void 0:p.Vy)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";R.call(y,J,h,L);u=Ps(u.G,h);u.G!=="rendering"&&Ui(u.slot,u.G,"exitLayout");u.G="rendering_stop_requested";u.X.Ib(L,Z)}};
If=function(u,h,L){if(xk(u.G,h)){a:switch(Ps(u.G,h).G){case "exit_requested":var Z=!0;break a;default:Z=!1}if(!Z)a:switch(Ps(u.G,h).G){case "rendering_stop_requested":Z=!0;break a;default:Z=!1}if(Z&&(Ps(u.G,h).T=!0,!L))return;if(Yk(Ps(u.G,h)))Ps(u.G,h).T=!0,m_s(u,h,L);else{a:switch(Ps(u.G,h).B){case "fill_requested":L=!0;break a;default:L=!1}if(L)Ps(u.G,h).T=!0,xk(u.G,h)&&(u.j7.gZ("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",h),h=Ps(u.G,h),h.B="fill_cancel_requested",h.V.P9());else{L=
NZ(u.G,h);(Z=u.Mi.get().D.L().experiments.tB("h5_enable_layout_unscheduling_events"))&&(L?u.Ou(h,L):Jk(Error("Layout is null for LayoutUnscheduled event."),h,L,void 0,!1));u.j7.gZ("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",h);var y=Ps(u.G,h),R=h.slotEntryTrigger,p=y.XB.get(R.triggerId);p&&(p.Nt(R),y.XB.delete(R.triggerId));R=g.C(h.slotFulfillmentTriggers);for(p=R.next();!p.done;p=R.next()){p=p.value;var J=y.AB.get(p.triggerId);J&&(J.Nt(p),y.AB.delete(p.triggerId))}R=g.C(h.slotExpirationTriggers);
for(p=R.next();!p.done;p=R.next())if(p=p.value,J=y.Y.get(p.triggerId))J.Nt(p),y.Y.delete(p.triggerId);y.layout!=null&&(R=y.layout,G0(y,R.layoutExitNormalTriggers),G0(y,R.layoutExitSkipTriggers),G0(y,R.layoutExitMuteTriggers),G0(y,R.layoutExitUserInputSubmittedTriggers),G0(y,R.Pj));y.V=void 0;y.N!=null&&(y.N.release(),y.N=void 0);y.X!=null&&(y.X.release(),y.X=void 0);y=u.G;Ps(y,h)&&(y=of(y,h.slotType+"_"+h.slotPhysicalPosition))&&y.delete(h.slotId);u.j7.gZ("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
h);u=g.C(u.N);for(y=u.next();!y.done;y=u.next())y=y.value,y.SD(h),L&&!Z&&y.Ou(h,L)}}}};
m_s=function(u,h,L){if(xk(u.G,h)&&Yk(Ps(u.G,h))){var Z=NZ(u.G,h);if(Z&&T0(u.G,h))zQe(u,h,Z,L?"error":"abandoned");else{u.j7.gZ("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",h);try{var y=Ps(u.G,h);if(!y)throw new b("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");y.G!=="enter_requested"&&y.G!=="entered"&&y.G!=="rendering"&&Ui(y.slot,y.G,"exitSlot");y.G="exit_requested";if(y.N===void 0)throw y.G="scheduled",new b("Cannot exit slot because adapter is not defined",
void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");y.N.Se()}catch(R){R instanceof b&&R.b9?(u.j7.l_("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",R.b9,h),Jk(R,h,void 0,void 0,R.BL)):(u.j7.l_("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",h),Jk(R,h))}}}};
d_l=function(u){this.slot=u;this.XB=new Map;this.AB=new Map;this.Y=new Map;this.RH=new Map;this.X=this.layout=this.N=this.V=void 0;this.C=this.T=!1;this.S=[];this.G="not_scheduled";this.B="not_filled"};
Yk=function(u){return u.G==="enter_requested"||u.isActive()};
Hs=function(u,h,L,Z,y,R){g.m.call(this);this.Z$=u;this.X=h;this.T=L;this.B=Z;this.N=y;this.Mi=R;this.G=new Map};
of=function(u,h){return(u=u.G.get(h))?u:new Map};
Ps=function(u,h){return of(u,h.slotType+"_"+h.slotPhysicalPosition).get(h.slotId)};
V9s=function(u){var h=[];u.G.forEach(function(L){L=g.C(L.values());for(var Z=L.next();!Z.done;Z=L.next())h.push(Z.value.slot)});
return h};
xk=function(u,h){return Ps(u,h)!=null};
T0=function(u,h){u=Ps(u,h);if(h=u.layout!=null)a:switch(u.G){case "rendering":case "rendering_stop_requested":h=!0;break a;default:h=!1}return h};
NZ=function(u,h){(u=Ps(u,h))?u.layout!=null&&!u.layout&&Jk("Unexpected empty layout",h):Jk("Unexpected undefined slotState",h);return(u==null?void 0:u.layout)||null};
ri=function(u,h,L){if(L.length==0)throw new b("No "+n1i.get(h)+" triggers found for slot.",void 0,sEi(h));L=g.C(L);for(var Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,!u.Z$.uu.get(Z.triggerType))throw new b("No trigger adapter registered for "+h+" trigger of type: "+Z.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
sEi=function(u){switch(u){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"}};
CE=function(u,h,L){L=g.C(L);for(var Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,!u.Z$.uu.get(Z.triggerType))throw new uN("No trigger adapter registered for "+n1i.get(h)+" trigger of type: "+Z.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
MZ=function(u,h,L,Z){Z=g.C(Z);for(var y=Z.next();!y.done;y=Z.next()){y=y.value;var R=u.Z$.uu.get(y.triggerType);R.eh(L,y,h.slot,h.layout?h.layout:null);h.RH.set(y.triggerId,R)}};
G0=function(u,h){h=g.C(h);for(var L=h.next();!L.done;L=h.next()){L=L.value;var Z=u.RH.get(L.triggerId);Z&&(Z.Nt(L),u.RH.delete(L.triggerId))}};
Ui=function(u,h,L){Jk("Slot stage was "+h+" when calling method "+L,u)};
w3L=function(u){return Bs(u.fN).concat(Bs(u.uu)).concat(Bs(u.qI)).concat(Bs(u.Ig)).concat(Bs(u.v8))};
Bs=function(u){var h=[];u=g.C(u.values());for(var L=u.next();!L.done;L=u.next())L=L.value,L.MO&&h.push(L);return h};
z0=function(u){g.m.call(this);var h=this;this.G=u;this.instance=null;this.addOnDisposeCallback(function(){g.Ju(h.instance);h.instance=null})};
mq=function(u){return new z0(u)};
di=function(u){g.m.call(this);this.G=u;this.N=eQn(this)};
eQn=function(u){var h=new fE(function(L,Z,y,R){return new Hs(u.G.Z$,L,Z,y,R,u.G.Mi)},new Set(w3L(u.G.Z$).concat(u.G.listeners)),u.G.j7,u.G.Mi);
g.V(u,h);return h};
Vr=function(u){this.G=u};
nE=function(u,h,L){D_j(u.G(),h,L)};
si=function(u,h,L,Z){(u=u.G())||Jk("Could not initiate a command router instance.");G2(u,h,L,Z)};
wi=function(){this.listeners=new Set};
eM=function(u){this.Mi=u};
agb=function(u,h){var L=h.bgp&&h.bgub,Z=!!h.upb;h.siub&&h.scs&&(L||Z)&&(Z&&af(u.Mi.get(),"html5_export_sodar_snapshot")?YK().then(function(y){y=y.snapshot.bind(y);g.nV("yt.abuse.playerAttLoaderRun",y);khe(h.siub,h.scs,h.bgub,h.bgp,h.upb)}):khe(h.siub,h.scs,h.bgub,h.bgp,h.upb))};
$_l=function(u,h,L,Z,y){this.callback=u;this.slot=h;this.N=L;this.Xo=Z;this.Mi=y;this.G=null};
WGs=function(u,h,L,Z){u.G&&Jk("Currently active request ongoing for slot. This should never happen",u.slot);u.G=h();u.G.then(function(y){u.G=null;Z&&Z(y);var R=y.sf?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",p=u.N.get(),J=u.slot.slotId,O=KE(u.Xo.get(),{slotId:u.slot.slotId,slotType:u.slot.slotType,slotPhysicalPosition:u.slot.slotPhysicalPosition,LI:u.slot.LI,slotEntryTrigger:u.slot.slotEntryTrigger,slotFulfillmentTriggers:u.slot.slotFulfillmentTriggers,slotExpirationTriggers:u.slot.slotExpirationTriggers}),
f=$k(p.N.get(),R,J),D={layoutId:f,layoutType:R,LI:"core"};y={layoutId:f,layoutType:R,Np:new Map,layoutExitNormalTriggers:[new t9f(p.G,J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:"core",clientMetadata:new jM([new rQ(y)]),oP:O(D)};TDw(u.callback,u.slot,y)},function(y){u.G=null;
L&&L();y instanceof iq||Al(u.callback,u.slot,new b(y,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
FG1=function(u){if(u.G==null)u.callback.BN(u.slot);else try{u.G.cancel(),u.G=null,u.callback.BN(u.slot)}catch(h){u.G=null,Al(u.callback,u.slot,new b(h,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
tl=function(u,h,L,Z){!u&&(L===void 0?0:L)&&g.G3(Error("Player URL validator detects invalid url. "+(Z===void 0?"":Z)+": "+h));return u};
Ws=function(u,h){return h&&h.test(u)?!0:!1};
FM=function(u){return(u=ben&&ben.exec(u))?u[0]:""};
bN=function(u){var h=h===void 0?!1:h;return tl(Ws(u,E1n),u,h,"Trusted Stream URL")};
g.Ei=function(u){var h=h===void 0?!1:h;return tl(Ws(u,k3n),u,h,"Trusted Image URL")};
uXY=function(u){var h=h===void 0?!1:h;return tl(Ws(u,g1w),u,h,"Trusted Promoted Video Domain URL")};
hI1=function(u){var h=h===void 0?!1:h;return tl(Ws(u,jGi),u,h,"Drm Licensor URL")};
ZuV=function(u,h){h=h===void 0?!1:h;return tl(Ws(u,LPi),u,h,"Captions URL")};
ymL=function(u){u=new g.Ok(u);g.fp(u,document.location.protocol);g.DG(u,document.location.hostname);document.location.port&&g.cB(u,document.location.port);return u.toString()};
kk=function(u){u=new g.Ok(u);g.fp(u,document.location.protocol);return u.toString()};
g.uW=function(u,h,L){L=L===void 0?{}:L;this.start=u;this.end=h;this.active=!0;this.color="";this.YV=0;this.N=RIl++;this.id=L.id||"";this.priority=L.priority||9;this.visible=L.visible||!1;this.style=L.style||gi.AD_MARKER;this.namespace=L.namespace||"";if(u=L.color)u=u.toString(16),this.color="#"+Array(7-u.length).join("0")+u;this.tooltip=L.tooltip;this.icons=L.icons?L.icons.filter(function(Z){return g.vG(Z.thumbnails,function(y){return g.Ei(y.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
pLn=function(u){return u===-0x8000000000000?"BEFORE_MEDIA_START":u===0?"MEDIA_START":u===0x7ffffffffffff?"MEDIA_END":u===0x8000000000000?"AFTER_MEDIA_END":u.toString()};
KPj=function(u,h){switch(u.style){case gi.CHAPTER_MARKER:return h?8:5;case gi.AD_MARKER:return 6;case gi.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.jR=function(u,h){return u.start-h.start||u.priority-h.priority||u.N-h.N};
g.hc=function(u){return"crn_"+u};
g.L2=function(u){return"crx_"+u};
ZL=function(u,h,L,Z,y,R,p,J,O){this.slot=h;this.N=L;this.cX=p;this.FB=J;this.Bj=O;this.G=new $_l(u,h,Z,y,R)};
Jm1=function(u){var h;(h=u.Bj)==null||h.get().s4(hl(u.slot.clientMetadata,"metadata_type_cue_point").identifier)};
yd=function(u,h,L,Z,y,R){this.slot=h;this.G=L;this.N=new $_l(u,h,Z,y,R)};
Rz=function(u,h){this.callback=u;this.slot=h};
p2=function(u,h){return ZF(u,h.z1,h.slotType)?!0:!1};
K2=function(){};
Jc=function(u,h,L,Z,y,R,p){this.G=u;this.N=h;this.Xo=L;this.Mi=Z;this.cX=y;this.FB=R;this.Bj=p};
Ox=function(){};
Oun=function(u,h,L,Z,y,R){this.callback=u;this.slot=h;this.layout=L;this.X=Z;this.G=y;this.N=R};
Dh1=function(u){if(hl(u.slot.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var h=fdY(u,u.slot);f2(u.G.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[h]})}};
cmY=function(u){if(hl(u.slot.clientMetadata,"metadata_type_prefetch_metadata")){var h=fdY(u,u.slot);f2(u.G.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[h]})}};
fdY=function(u,h){var L=DL(u.N.get(),u.slot.slotType),Z=Object,y=Z.assign;u=u.slot;if(h.slotEntryTrigger){var R=h.slotId;var p=h.slotEntryTrigger;R=p.triggeringSlotId!=null&&p.triggeringSlotId===R?p.clone(L):p}else R=void 0;return y.call(Z,{},u,{slotId:L,slotEntryTrigger:R,slotFulfillmentTriggers:Idb(h.slotId,L,h.slotFulfillmentTriggers),slotExpirationTriggers:Idb(h.slotId,L,h.slotExpirationTriggers)})};
Idb=function(u,h,L){var Z=[];L=g.C(L);for(var y=L.next();!y.done;y=L.next()){var R=Z,p=R.push;var J=u;var O=h;y=y.value;J=y.triggeringSlotId!=null&&y.triggeringSlotId===J?y.clone(O):y;p.call(R,J)}return Z};
g.cI=function(u,h){for(var L=g.C(Object.keys(h)),Z=L.next(),y={};!Z.done;y={placeholder:void 0},Z=L.next())Z=Z.value,y.placeholder=h[Z],u=u.replace(new RegExp("\\$"+Z,"gi"),function(R){return function(){return R.placeholder}}(y));
return u};
AmV=function(u,h,L){this.G=u;this.slot=h;this.layout=L};
Iz=function(u,h,L){h.layoutId!==u.layout.layoutId?u.G.dO(u.slot,h,new uN("Unknown layout received. Required LayoutId: "+u.layout.layoutId+("and LayoutType: "+u.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):L()};
Ac=function(u,h,L,Z){g.yV.call(this);this.callback=u;this.X=Z;this.G=[];this.N=new AmV(u,h,L)};
PI=function(u,h,L,Z,y,R,p,J){Z=Z||hl(L.clientMetadata,R);u=xl(u);var O=DZ(function(){y.Yl(h,L)});
J.push(p(Z,u,L.layoutId,{adsClientData:L.oP},function(){O()}))};
MF=function(u,h,L,Z,y,R,p,J,O){if(h===u)if(O){if(O===J.layoutId){a:{u=g.C(L.keys());for(h=u.next();!h.done;h=u.next())if(h=h.value,h.slotType==="SLOT_TYPE_PLAYER_BYTES"&&R===L.get(h).layoutId){L=!0;break a}L=!1}L?C2(Z,1):y?y():Jk("Tried to call engagePingCallback but it is null",p,J)}}else Jk("Companion AdUxClick received without a layoutId",p,J)};
iW=function(u){var h,L,Z,y,R;return!((h=u.get("active_view_viewable"))==null||!h.length)||!((L=u.get("active_view_measurable"))==null||!L.length)||!((Z=u.get("active_view_fully_viewable_audible_half_duration"))==null||!Z.length)||!((y=u.get("audio_audible"))==null||!y.length)||!((R=u.get("audio_measurable"))==null||!R.length)};
Qd=function(u){var h,L;return(L=u==null?void 0:(h=u.activeViewTracking)==null?void 0:h.trafficType)!=null?L:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
lW=function(u){var h,L;return new Map([["impression",u.impressionPings||[]],["error",u.errorPings||[]],["mute",u.mutePings||[]],["unmute",u.unmutePings||[]],["pause",u.pausePings||[]],["rewind",u.rewindPings||[]],["resume",u.resumePings||[]],["skip",u.skipPings||[]],["swipe",u.swipePings||[]],["close",u.closePings||[]],["progress",u.progressPings||[]],["clickthrough",u.clickthroughPings||[]],["fullscreen",u.fullscreenPings||[]],["active_view_viewable",u.activeViewViewablePings||[]],["active_view_measurable",
u.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",u.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",((h=u.activeViewTracking)==null?void 0:h.activeViewAudioAudiblePings)||[]],["audio_measurable",((L=u.activeViewTracking)==null?void 0:L.activeViewAudioMeasurablePings)||[]],["end_fullscreen",u.endFullscreenPings||[]],["channel_clickthrough",u.channelClickthroughPings||[]],["abandon",u.abandonPings||[]],["start",u.startPings||[]],["first_quartile",
u.firstQuartilePings||[]],["midpoint",u.secondQuartilePings||[]],["third_quartile",u.thirdQuartilePings||[]],["complete",u.completePings||[]],["unmuted_impression",u.unmutedImpressionPings||[]],["unmuted_error",u.unmutedErrorPings||[]],["unmuted_mute",u.unmutedMutePings||[]],["unmuted_unmute",u.unmutedUnmutePings||[]],["unmuted_pause",u.unmutedPausePings||[]],["unmuted_resume",u.unmutedResumePings||[]],["unmuted_close",u.unmutedClosePings||[]],["unmuted_progress",u.unmutedProgressPings||[]],["unmuted_clickthrough",
u.unmutedClickthroughPings||[]],["unmuted_fullscreen",u.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",u.unmutedEndFullscreenPings||[]],["unmuted_abandon",u.unmutedAbandonPings||[]],["unmuted_start",u.unmutedStartPings||[]],["unmuted_first_quartile",u.unmutedFirstQuartilePings||[]],["unmuted_midpoint",u.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",u.unmutedThirdQuartilePings||[]],["unmuted_complete",u.unmutedCompletePings||[]],["unmuted_skip",u.unmutedSkipPings||[]]])};
xhY=function(u){switch(u){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}};
SR=function(u,h,L,Z,y){y=y===void 0?null:y;this.X=u;this.cX=h;this.layoutId=Z;this.B=0;this.C=null;this.T=void 0;this.G=new Set;this.N=Array.from(this.X.get("progress")||[]);this.N.sort(function(R,p){return(R.offsetMilliseconds||0)-(p.offsetMilliseconds||0)});
this.V={adPlacementConfig:L,Jb:y}};
X2=function(){return["metadata_type_ad_placement_config"]};
xl=function(u){var h=u.cX.get();return vI(h,u.V)};
T1=function(u,h,L){L=L===void 0?!1:L;u.G.has(h)?qF(u,h,[]):u.qp(h,L)};
Yl=function(u,h,L){for(L=L===void 0?!1:L;u.B<u.N.length;){var Z=u.N[u.B];if(Z.offsetMilliseconds<=h||L)qF(u,"progress",[Z]),u.B++;else break}};
oz=function(u,h){return u.G.has(h)};
NF=function(u){return u.N.every(function(h){return h.hasOwnProperty("offsetMilliseconds")})};
P2V=function(u,h,L){u.C=h;u.T=L};
qF=function(u,h,L){var Z;C2w(u.cX.get(),u.layoutId,h,L,(Z=u.C)!=null?Z:void 0,u.T)};
M0w=function(u,h,L,Z,y){Zd.call(this,"ads-engagement-panel-layout",u,h,L,Z,y)};
Ux=function(u,h,L,Z,y,R,p,J){Ac.call(this,u,h,L,Z);this.cX=y;this.Gd=R;this.C=J;this.MO=!0;this.B=null;this.T=hl(L.clientMetadata,"metadata_type_linked_player_bytes_layout_id");DF(this.Gd(),this);u=hl(L.clientMetadata,"metadata_type_ad_placement_config");this.JB=new SR(L.Np,this.cX,u,L.layoutId)};
iuY=function(){var u=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];X2().forEach(function(h){u.push(h)});
return{z1:u,GM:["LAYOUT_TYPE_PANEL"]}};
QGi=function(u,h,L,Z,y){Zd.call(this,"banner-image",u,h,L,Z,y)};
G1=function(u,h,L,Z,y,R,p,J){Ac.call(this,u,h,L,Z);this.cX=y;this.Gd=R;this.C=J;this.MO=!0;this.B=null;this.T=hl(L.clientMetadata,"metadata_type_linked_player_bytes_layout_id");DF(this.Gd(),this);this.adPlacementConfig=hl(L.clientMetadata,"metadata_type_ad_placement_config");this.JB=new SR(L.Np,this.cX,this.adPlacementConfig,L.layoutId)};
ldY=function(){var u=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];X2().forEach(function(h){u.push(h)});
return{z1:u,GM:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
HI=function(u,h,L,Z,y){Zd.call(this,"action-companion",u,h,L,Z,y)};
r1=function(u,h,L,Z,y,R,p,J){Ac.call(this,u,h,L,Z);this.cX=y;this.Gd=R;this.C=J;this.MO=!0;this.B=null;this.T=hl(L.clientMetadata,"metadata_type_linked_player_bytes_layout_id");DF(this.Gd(),this);u=hl(L.clientMetadata,"metadata_type_ad_placement_config");this.JB=new SR(L.Np,this.cX,u,L.layoutId)};
SDe=function(){var u=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];X2().forEach(function(h){u.push(h)});
return{z1:u,GM:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
XLe=function(u,h,L,Z,y){Zd.call(this,"image-companion",u,h,L,Z,y)};
BI=function(u,h,L,Z,y,R,p,J){Ac.call(this,u,h,L,Z);this.cX=y;this.Gd=R;this.C=J;this.MO=!0;this.B=null;this.T=hl(L.clientMetadata,"metadata_type_linked_player_bytes_layout_id");DF(this.Gd(),this);u=hl(L.clientMetadata,"metadata_type_ad_placement_config");this.JB=new SR(L.Np,this.cX,u,L.layoutId)};
vSV=function(){var u=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];X2().forEach(function(h){u.push(h)});
return{z1:u,GM:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
qDe=function(u,h,L,Z,y){Zd.call(this,"shopping-companion",u,h,L,Z,y)};
z1=function(u,h,L,Z,y,R,p,J){Ac.call(this,u,h,L,Z);this.cX=y;this.Gd=R;this.C=J;this.MO=!0;this.B=null;this.T=hl(L.clientMetadata,"metadata_type_linked_player_bytes_layout_id");DF(this.Gd(),this);u=hl(L.clientMetadata,"metadata_type_ad_placement_config");this.JB=new SR(L.Np,this.cX,u,L.layoutId)};
TsV=function(){var u=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];X2().forEach(function(h){u.push(h)});
return{z1:u,GM:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
YDi=function(u){var h;if(((h=u.adVideoOffset)==null?void 0:h.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var L;return((L=u.adVideoOffset)==null?void 0:L.percent)!=null};
oSf=function(u){var h;if(((h=u.adVideoOffset)==null?void 0:h.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var L;return((L=u.adVideoOffset)==null?void 0:L.milliseconds)!=null&&!isNaN(Number(u.adVideoOffset.milliseconds))};
NsY=function(u,h,L,Z){this.yZ=u;this.layoutId=L;this.T=Z;this.N=[];this.G=[];this.X=this.B=0;u=g.C(h);for(h=u.next();!h.done;h=u.next())switch(h=h.value,L=void 0,(L=h.adVideoOffset)==null?void 0:L.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":YDi(h)?this.N.push(h):Jk("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":oSf(h)?this.G.push(h):Jk("Invalid AdVideoProgressMillisecondsCommand");break;default:Jk("Unknown or invalid AdVideoProgressOffSet kind")}this.N.sort(function(y,
R){return y.adVideoOffset.percent-R.adVideoOffset.percent});
this.G.sort(function(y,R){return Number(y.adVideoOffset.milliseconds)-Number(R.adVideoOffset.milliseconds)})};
mF=function(u,h,L){L=L===void 0?!1:L;var Z=u.T();if(Z){for(;u.B<u.N.length;){var y=u.N[u.B];if(y.adVideoOffset.percent*Z<=h||L)u.yZ.get().executeCommand(y.command,u.layoutId),u.B++;else break}for(;u.X<u.G.length;)if(Z=u.G[u.X],Number(Z.adVideoOffset.milliseconds)<=h||L)u.yZ.get().executeCommand(Z.command,u.layoutId),u.X++;else break}};
d1=function(u,h,L,Z,y,R){Ac.call(this,u,h,L,Z);this.cX=y;this.Gd=R;this.MO=!0;DF(this.Gd(),this);u=hl(L.clientMetadata,"metadata_type_ad_placement_config");this.JB=new SR(L.Np,this.cX,u,L.layoutId)};
Uhn=function(){var u=["metadata_type_action_companion_ad_renderer"];X2().forEach(function(h){u.push(h)});
return{z1:u,GM:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
GCb=function(u,h,L,Z,y,R,p,J){this.callback=u;this.slot=h;this.layout=L;this.FB=Z;this.cX=y;this.Mi=p;this.z3=J;this.G=!1;u=hl(L.clientMetadata,"metadata_type_ad_placement_config");this.JB=new SR(L.Np,this.cX,u,L.layoutId);var O;u=((O=hl(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:O.progressCommands)||[];var f=hl(L.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.N=new NsY(R,u,L.layoutId,function(){return f*1E3})};
Vd=function(u,h,L,Z,y,R){Ac.call(this,u,h,L,Z);this.FB=y;this.T=R;this.B=!1};
n2=function(u,h,L,Z,y){Zd.call(this,"top-banner-image-text-icon-buttoned",u,h,L,Z,y)};
sx=function(u,h,L,Z,y,R){Ac.call(this,u,h,L,Z);this.cX=y;this.Gd=R;this.MO=!0;DF(this.Gd(),this);u=hl(L.clientMetadata,"metadata_type_ad_placement_config");this.JB=new SR(L.Np,this.cX,u,L.layoutId)};
HuY=function(){var u=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];X2().forEach(function(h){u.push(h)});
return{z1:u,GM:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
w1=function(u,h,L){Zd.call(this,"display-underlay-text-grid-cards",u,{},h,L);this.interactionLoggingClientData=L};
eR=function(u,h,L,Z,y,R){Ac.call(this,u,h,L,Z);this.cX=y;this.B=R;this.T=hl(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
az=function(u,h,L,Z,y,R){y=y===void 0?!1:y;R=R===void 0?!1:R;Zd.call(this,"ad-action-interstitial",u,h,L,Z);this.interactionLoggingClientData=Z;this.iO=y;this.wQ=R};
$l=function(u,h,L,Z,y){Ac.call(this,u,h,L,Z);u=hl(L.clientMetadata,"metadata_type_ad_placement_config");this.JB=new SR(L.Np,y,u,L.layoutId)};
rml=function(){var u=["metadata_type_ad_action_interstitial_renderer"];X2().forEach(function(h){u.push(h)});
return{z1:u,GM:["LAYOUT_TYPE_ENDCAP"]}};
tc=function(u,h){return k$(u,h.z1,h.GM)?!0:!1};
WI=function(u,h,L){this.N=u;this.X=h;this.G=L};
BsV=function(u,h,L,Z,y){Zd.call(this,"ads-engagement-panel",u,h,L,Z,y)};
F2=function(u,h,L,Z,y,R,p,J){Ac.call(this,u,h,L,Z);this.cX=y;this.Gd=R;this.C=J;this.MO=!0;this.B=null;this.T=hl(L.clientMetadata,"metadata_type_linked_player_bytes_layout_id");DF(this.Gd(),this);u=hl(L.clientMetadata,"metadata_type_ad_placement_config");this.JB=new SR(L.Np,this.cX,u,L.layoutId)};
zIL=function(){var u=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];X2().forEach(function(h){u.push(h)});
return{z1:u,GM:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
bW=function(u,h,L,Z,y,R,p,J){Ac.call(this,u,h,L,Z);this.cX=y;this.Gd=R;this.C=J;this.MO=!0;this.B=null;this.T=hl(L.clientMetadata,"metadata_type_linked_player_bytes_layout_id");DF(this.Gd(),this);this.adPlacementConfig=hl(L.clientMetadata,"metadata_type_ad_placement_config");this.JB=new SR(L.Np,this.cX,this.adPlacementConfig,L.layoutId)};
mhj=function(){var u=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];X2().forEach(function(h){u.push(h)});
return{z1:u,GM:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
dhi=function(u,h,L,Z,y){this.uF=u;this.cX=h;this.Gd=L;this.G=Z;this.z3=y};
V0a=function(u,h,L){this.uF=u;this.cX=h;this.G=L};
nSn=function(u,h,L,Z,y){this.callback=u;this.slot=h;this.layout=L;this.cX=Z;this.q$=y;u=hl(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.JB=new SR(L.Np,this.cX,u,L.layoutId)};
sGs=function(){var u=["metadata_type_client_forecasting_ad_renderer"];X2().forEach(function(h){u.push(h)});
return{z1:u,GM:["LAYOUT_TYPE_FORECASTING"]}};
wLa=function(u,h,L,Z,y){this.callback=u;this.slot=h;this.layout=L;this.cX=Z;this.q$=y;u=hl(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.JB=new SR(L.Np,this.cX,u,L.layoutId)};
Ex=function(u,h,L,Z){this.Mi=u;this.cX=h;this.q$=L;this.z3=Z};
eIV=function(u,h){return Ed(u.clientMetadata,"metadata_type_ad_info_ad_metadata")?hl(u.clientMetadata,"metadata_type_ad_info_ad_metadata"):h?{channelId:h.Xy,channelThumbnailUrl:h.profilePicture,channelTitle:h.author,videoTitle:h.title}:(Jk("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})};
adw=function(u,h){return Ed(u.clientMetadata,"metadata_ad_video_is_listed")?hl(u.clientMetadata,"metadata_ad_video_is_listed"):h?h.isListed:(Jk("No layout metadata nor AdPlayback specified for ad video isListed"),!1)};
$hf=function(u,h,L,Z){Zd.call(this,"player-overlay-layout",u,{},L,Z);this.videoAdDurationSeconds=h;this.interactionLoggingClientData=Z};
kl=function(u,h,L,Z,y,R,p,J){Ac.call(this,u,h,L,Z);this.FB=y;this.cX=R;this.C=p;this.T=J;this.B=!1;this.V=hl(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
t0e=function(u){if(u.layout.renderingContent){var h;return(h=hl(u.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:h.current}return hl(u.layout.clientMetadata,"metadata_type_player_bytes_callback")};
g1=function(u,h,L,Z,y,R,p,J){Ac.call(this,u,h,L,Z);this.FB=y;this.cX=R;this.C=p;this.T=J;this.B=!1;this.V=hl(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
WPR=function(){return{z1:["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"],GM:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
uZ=function(u){if(u.layout.renderingContent){var h;return(h=hl(u.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:h.current}return hl(u.layout.clientMetadata,"metadata_type_player_bytes_callback")};
FPi=function(u,h,L){Zd.call(this,"ad-message",u,void 0,h,L)};
jX=function(u,h,L,Z,y,R){Ac.call(this,L,u,h,Z);this.FB=y;this.Mi=R};
bun=function(){return{z1:["metadata_type_valid_ad_message_renderer"],GM:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
ESn=function(u,h,L,Z){Zd.call(this,"video-interstitial-buttoned-centered",u,h,L,Z);this.interactionLoggingClientData=Z};
hg=function(u,h,L,Z,y){Ac.call(this,u,h,L,Z);u=hl(L.clientMetadata,"metadata_type_ad_placement_config");this.JB=new SR(L.Np,y,u,L.layoutId)};
pA=function(u,h,L,Z,y,R,p,J,O){return tc(L,WPR())||L.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.n(L.renderingContent,LA)!==void 0?new g1(u,h,L,Z,y,R,p,J):tc(L,{z1:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],GM:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||L.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.n(L.renderingContent,Zq)!==void 0?
new kl(u,h,L,Z,y,R,p,J):tc(L,rml())||L.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.n(L.renderingContent,yE)!==void 0?new $l(u,h,L,Z,R):tc(L,bun())?new jX(h,L,u,Z,y,O):tc(L,{z1:["metadata_type_instream_ad_player_overlay_renderer"],GM:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new Vd(u,h,L,Z,y,J):L.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.n(L.renderingContent,Rn)!==void 0?new hg(u,h,L,Z,R):null};
kC1=function(u,h,L,Z,y,R){this.uF=u;this.FB=h;this.cX=L;this.N=Z;this.G=y;this.Mi=R};
KA=function(u){return!u.oldState.isPlaying()&&u.state.isPlaying()};
Jg=function(u,h,L){return u<h?!1:L!=null?L<=h:u<=h+1};
ON=function(u,h,L,Z,y,R,p,J){this.callback=u;this.slot=h;this.layout=L;this.FB=Z;this.cX=y;this.Mi=R;this.z3=p;this.Eg=J;this.G=!1;u=hl(L.clientMetadata,"metadata_type_ad_placement_config");this.JB=new SR(L.Np,this.cX,u,L.layoutId)};
fA=function(u,h){u.G||(u.JB.qp(h),u.G=!0)};
gSj=function(u,h,L,Z,y,R){this.FB=u;this.cX=h;this.yZ=L;this.Mi=Z;this.z3=y;this.Eg=R};
Dq=function(){this.currentState=1;this.G="unknown"};
cX=function(u,h){if(u.currentState>1){g.G3(new g.aO("Exit already started",{current:u.currentState}));var L=!1}else L=!0;if(!L)return!1;u.currentState=2;u.G=h;return!0};
In=function(u){if(u.currentState!==2)return!1;u.currentState=3;return!0};
u31=function(u,h){var L=new Map;u=g.C(u);for(var Z=u.next();!Z.done;Z=u.next()){Z=Z.value;if(Z.layoutType==="LAYOUT_TYPE_MEDIA")var y="v";else Z.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(y=hl(Z.clientMetadata,"metadata_type_linked_in_player_layout_type"),y=y==="LAYOUT_TYPE_ENDCAP"||y==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":y==="LAYOUT_TYPE_SURVEY"?"s":y==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):y="u";L.set(Z.layoutId,y);if(y==="u"){var R={};y=h;Z=(R.c=Z.layoutId,R);y.D.IH("uct",Z)}}u=
h.kV();Ag={contentCpn:u,b7:L};Z={};L=(Z.ct=L.size,Z.c=u,Z);h.D.IH("acc",L)};
jrb=function(){Ag={contentCpn:"",b7:new Map}};
x6=function(u){var h;return(h=Ag.b7.get(u))!=null?h:"u"};
PX=function(u,h,L){u.D.IH(h,L);hBe(u)};
Lja=function(u){var h=u.layoutId,L=u.zt;if(u.I9){var Z={};PX(u.X9,"slso",(Z.ec=h,Z.is=L,Z.ctp=x6(h),Z))}};
CA=function(u){var h=u.layoutId,L=u.zt;if(u.I9){var Z={};PX(u.X9,"slse",(Z.ec=h,Z.is=L,Z.ctp=x6(h),Z))}};
ZGi=function(u){var h=u.layoutId,L=u.zt,Z=u.X9;u.I9&&(u={},PX(Z,"sleo",(u.xc=h,u.is=L,u.ctp=x6(h),u)),hBe(Z))};
ykn=function(u){var h=u.cpn,L=u.X9;u=u.zt;var Z=L.kV(),y={};PX(L,"ce",(y.ec=h,y.ia=h!==Z,y.r=Ag.b7.has(h),y.is=u,y.ctp=x6(h),y))};
hBe=function(u){if(u.kV()!==Ag.contentCpn){var h={};h=(h.c=Ag.contentCpn,h);u.D.IH("ccm",h)}};
RBY=function(u){var h=u.cpn,L=u.X9;u=u.zt;var Z=L.kV(),y={};PX(L,"cx",(y.xc=h,y.ia=h!==Z,y.r=Ag.b7.has(h),y.is=u,y.ctp=x6(h),y))};
p2n=function(u){this.params=u;this.G=new Set};
KjL=function(u,h,L){if(!u.G.has(h)){u.G.add(h);var Z={};u.params.nV.RP(h,Object.assign({},L,(Z.p_ac=u.params.adCpn,Z.p_isv=u.params.qgg&&u.params.Wr,Z)))}};
iZ=function(u,h,L){if(MK(u.params.nV.Mi.get(),!0)){var Z=L.flush,y={};KjL(u,h,(y.cts=L.currentTimeSec,y.f=Z,y))}};
JkR=function(u,h){this.X9=u;this.Mi=h};
QE=function(u){var h=[];if(u){u=g.C(Object.entries(u));for(var L=u.next();!L.done;L=u.next()){var Z=g.C(L.value);L=Z.next().value;Z=Z.next().value;Z!==void 0&&(Z=typeof Z==="boolean"?""+ +Z:(""+Z).replace(/[:,=]/g,"_"),h.push(L+"."+Z))}}return h.join(";")};
lZ=function(u,h,L){h=h===void 0?{}:h;this.errorCode=u;this.details=h;this.severity=L===void 0?0:L};
SX=function(u){return u===1||u===2};
Xo=function(u,h){h=h===void 0?0:h;if(u instanceof lZ)return u;u=u&&u instanceof Error?u:Error(""+u);SX(h)?g.UZ(u):g.G3(u);return new lZ(h===1?"player.fatalexception":"player.exception",{name:""+u.name,message:""+u.message},h)};
OG1=function(u,h){function L(){var Z=g.NL.apply(0,arguments);u.removeEventListener("playing",L);h.apply(null,g.l(Z))}
u.addEventListener("playing",L)};
vX=function(){var u=g.wn("yt.player.utils.videoElement_");u||(u=g.kJ("VIDEO"),g.nV("yt.player.utils.videoElement_",u));return u};
qK=function(u){var h=vX();return!!(h&&h.canPlayType&&h.canPlayType(u))};
Y6=function(u){if(/opus/.test(u)&&g.TI&&!XL("38")&&!g.wg())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(u);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(u);if(/webm/.test(u)&&!l8V())return!1;u==='audio/mp4; codecs="mp4a.40.2"'&&(u='video/mp4; codecs="avc1.4d401f"');return!!qK(u)};
fKL=function(u){try{var h=Y6('video/mp4; codecs="avc1.42001E"')||Y6('video/webm; codecs="vp9"');return(Y6('audio/mp4; codecs="mp4a.40.2"')||Y6('audio/webm; codecs="opus"'))&&(h||!u)||qK('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(L){return"html5.missingapi"}};
on=function(){var u=vX();return!(!u.webkitSupportsPresentationMode||typeof u.webkitSetPresentationMode!=="function")};
NK=function(){var u=vX();try{var h=u.muted;u.muted=!h;return u.muted!==h}catch(L){}return!1};
Dwa=function(){var u;return((u=navigator.connection)==null?void 0:u.type)||""};
g.UN=function(){vD.apply(this,arguments)};
GI=function(u,h,L,Z,y,R,p){this.sampleRate=u===void 0?0:u;this.numChannels=h===void 0?0:h;this.spatialAudioType=L===void 0?"SPATIAL_AUDIO_TYPE_NONE":L;this.G=Z===void 0?!1:Z;this.X=y===void 0?0:y;this.N=R===void 0?0:R;this.audioQuality=p===void 0?"AUDIO_QUALITY_UNKNOWN":p};
BX=function(u,h,L,Z,y,R,p,J,O){this.width=u;this.height=h;this.quality=R||HX(u,h);this.G=g.rF[this.quality];this.fps=L||0;this.stereoLayout=!y||Z!=null&&Z!=="UNKNOWN"&&Z!=="RECTANGULAR"?0:y;this.projectionType=Z?Z==="EQUIRECTANGULAR"&&y===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":Z:"UNKNOWN";(u=p)||(u=g.rF[this.quality],u===0?u="Auto":(h=this.fps,L=this.projectionType,u=u.toString()+(L==="EQUIRECTANGULAR"||L==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||L==="MESH"?"s":"p")+(h>55?"60":h>49?"50":h>39?"48":"")));
this.qualityLabel=u;this.N=J||"";this.primaries=O||""};
HX=function(u,h){var L=Math.max(u,h);u=Math.min(u,h);h=zI[0];for(var Z=0;Z<zI.length;Z++){var y=zI[Z],R=g.rF[y];if(L>=Math.floor(R*16/9)*1.3||u>=R*1.3)return h;h=y}return"tiny"};
VE=function(u,h,L){L=L===void 0?{}:L;this.id=u;this.mimeType=h;L.G3>0||(L.G3=16E3);Object.assign(this,L);u=g.C(this.id.split(";"));this.itag=u.next().value;this.G=u.next().value;this.containerType=mI(h);this.QA=dF[this.itag]||""};
nA=function(u){return u.QA==="9"||u.QA==="("||u.QA==="9h"||u.QA==="(h"};
ckn=function(u){return u.QA==="H"||u.QA==="h"};
sN=function(u){return u.QA==="9h"||u.QA==="(h"};
wF=function(u){return u.QA==="1"||u.QA==="1h"};
eX=function(u){return u.QA==="mac3"||u.QA==="meac3"||u.QA==="m"||u.QA==="i"};
an=function(u){return u.QA==="MAC3"||u.QA==="MEAC3"||u.QA==="M"||u.QA==="I"};
g.$6=function(u){return u.containerType===1};
IKb=function(u){return u.QA==="("||u.QA==="(h"||u.QA==="H"};
tg=function(u){return u.mimeType==="application/x-mpegURL"};
WX=function(u){u=u.mimeType;return u.includes("vtt")||u.includes("text/mp4")};
g.Fo=function(u,h){return{itag:+u.itag,lmt:h?0:u.lastModified,xtags:u.G||""}};
Akl=function(u){var h=navigator.mediaCapabilities;if(h==null||!h.decodingInfo||u.QA==="f")return Promise.resolve();var L={type:u.audio&&u.video?"file":"media-source"};u.video&&(L.video={contentType:u.mimeType,width:u.video.width||640,height:u.video.height||360,bitrate:u.G3*8||1E6,framerate:u.video.fps||30});u.audio&&(L.audio={contentType:u.mimeType,channels:""+(u.audio.numChannels||2),bitrate:u.G3*8||128E3,samplerate:u.audio.sampleRate||44100});return h.decodingInfo(L).then(function(Z){u.N=Z})};
bZ=function(u){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(u)};
EN=function(u){return/(vp9|vp09|vp8|avc1|av01)/.test(u)};
mI=function(u){return u.indexOf("/mp4")>=0?1:u.indexOf("/webm")>=0?2:u.indexOf("/x-flv")>=0?3:u.indexOf("/vtt")>=0?4:0};
k6=function(u,h,L,Z,y,R){var p=new GI;h in g.rF||(h="small");h==="light"&&(h="tiny");Z&&y?(y=Number(y),Z=Number(Z)):(y=g.rF[h],Z=Math.round(y*16/9));R=new BX(Z,y,0,null,void 0,h,R);u=unescape(u.replace(/&quot;/g,'"'));return new VE(L,u,{audio:p,video:R})};
gF=function(u){var h="id="+u.id;u.video&&(h+=", res="+u.video.qualityLabel);var L,Z;return h+", byterate=("+((L=u.DR)==null?void 0:L.toFixed(0))+", "+((Z=u.G3)==null?void 0:Z.toFixed(0))+")"};
uz=function(u,h){return{start:function(L){return u[L]},
end:function(L){return h[L]},
length:u.length}};
xwb=function(u,h,L){for(var Z=[],y=[],R=0;R<u.length;R++)Z.push(u.start(R)),y.push(u.end(R));Z.push(h);y.push(L);Z.sort(function(p,J){return p-J});
y.sort(function(p,J){return p-J});
return uz(Z,y)};
ji=function(u,h,L){h=h===void 0?",":h;L=L===void 0?u?u.length:0:L;var Z=[];if(u)for(L=Math.max(u.length-L,0);L<u.length;L++)Z.push(u.start(L).toFixed(3)+"-"+u.end(L).toFixed(3));return Z.join(h)};
hq=function(u,h){if(!u)return-1;try{for(var L=0;L<u.length;L++)if(u.start(L)<=h&&u.end(L)>=h)return L}catch(Z){}return-1};
Ll=function(u,h){return hq(u,h)>=0};
Piw=function(u,h){if(!u)return NaN;h=hq(u,h);return h>=0?u.start(h):NaN};
ZI=function(u,h){if(!u)return NaN;h=hq(u,h);return h>=0?u.end(h):NaN};
ys=function(u){return u&&u.length?u.end(u.length-1):NaN};
RA=function(u,h){u=ZI(u,h);return u>=0?u-h:0};
pl=function(u,h,L){for(var Z=[],y=[],R=0;R<u.length;R++)u.end(R)<h||u.start(R)>L||(Z.push(Math.max(h,u.start(R))-h),y.push(Math.min(L,u.end(R))-h));return uz(Z,y)};
Kl=function(u,h,L,Z){g.yV.call(this);var y=this;this.G1=u;this.start=h;this.end=L;this.isActive=Z;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.r5={error:function(){!y.ww()&&y.isActive&&y.publish("error",y)},
updateend:function(){!y.ww()&&y.isActive&&y.publish("updateend",y)}};
this.G1.Cm(this.r5);this.Gm=this.isActive};
OF=function(u,h,L,Z,y,R){g.yV.call(this);var p=this;this.EU=u;this.qO=h;this.id=L;this.containerType=Z;this.QA=y;this.Wr=R;this.yP=this.Cj=this.nB=null;this.Kp=!1;this.appendWindowStart=this.timestampOffset=0;this.c9=uz([],[]);this.oT=!1;this.FV=[];this.ll=Jq?[]:void 0;this.Aq=function(O){return p.publish(O.type,p)};
var J;if((J=this.EU)==null?0:J.addEventListener)this.EU.addEventListener("updateend",this.Aq),this.EU.addEventListener("error",this.Aq)};
fl=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
za=function(u,h){this.D3=u;this.G=h===void 0?!1:h;this.N=!1};
mx=function(u,h,L){L=L===void 0?!1:L;g.m.call(this);this.mediaElement=u;this.oH=h;this.isView=L;this.C=0;this.B=!1;this.T=!0;this.Y=0;this.callback=null;this.S=!1;this.oH||(this.qO=this.mediaElement.lP());this.events=new g.UN(this);g.V(this,this.events);this.X=new za(this.oH?window.URL.createObjectURL(this.oH):this.qO.webkitMediaSourceURL,!0);u=this.oH||this.qO;qr(this.events,u,["sourceopen","webkitsourceopen"],this.fvB);qr(this.events,u,["sourceclose","webkitsourceclose"],this.hAi);this.V={updateend:this.V1}};
CiY=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
M2e=function(u,h){dM(u)?g.Kv(function(){h(u)}):u.callback=h};
iGn=function(u,h,L){if(Vs){var Z;nl(u.mediaElement,{l:"mswssb",sr:(Z=u.mediaElement.G7)==null?void 0:Z.IF()},!1);h.Cm(u.V,u);L.Cm(u.V,u)}u.G=h;u.N=L;g.V(u,h);g.V(u,L)};
Qrf=function(u,h,L,Z){Z=h.mimeType+(Z===void 0?"":Z);var y=L.mimeType;h=h.QA;L=L.QA;var R;u.AB=(R=u.oH)==null?void 0:R.addSourceBuffer(y);var p;u.RH=Z.split(";")[0]==="fakesb"?void 0:(p=u.oH)==null?void 0:p.addSourceBuffer(Z);u.qO&&(u.qO.webkitSourceAddId("0",y),u.qO.webkitSourceAddId("1",Z));R=new OF(u.AB,u.qO,"0",mI(y),L,!1);Z=new OF(u.RH,u.qO,"1",mI(Z),h,!0);iGn(u,R,Z)};
sF=function(u){return!!u.G||!!u.N};
dM=function(u){try{return wM(u)==="open"}catch(h){return!1}};
wM=function(u){if(u.oH)return u.oH.readyState;switch(u.qO.webkitSourceState){case u.qO.SOURCE_OPEN:return"open";case u.qO.SOURCE_ENDED:return"ended";default:return"closed"}};
ei=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource};
lKn=function(u){dM(u)&&(u.oH?u.oH.endOfStream():u.qO.webkitSourceEndOfStream(u.qO.EOS_NO_ERROR))};
S_i=function(u,h,L,Z){if(!u.G||!u.N)return null;var y=u.G.isView()?u.G.G1:u.G,R=u.N.isView()?u.N.G1:u.N,p=new mx(u.mediaElement,u.oH,!0);p.X=u.X;iGn(p,new Kl(y,h,L,Z),new Kl(R,h,L,Z));dM(u)||u.G.Rm(u.G.df());return p};
X2n=function(u){var h;(h=u.G)==null||h.m$();var L;(L=u.N)==null||L.m$();u.T=!1};
aA=function(){var u=this;this.ZV=this.UM=GYw;this.promise=new g.IT(function(h,L){u.UM=h;u.ZV=L})};
$x=function(){g.m.call(this);this.sP=!1;this.D3=null;this.V=this.C=!1;this.B=new g.Ev;this.G7=null;g.V(this,this.B)};
tq=function(u){u=u.EQ();return u.length<1?NaN:u.end(u.length-1)};
vpn=function(u){!u.N&&CiY()&&(u.X?u.X.then(function(){return vpn(u)}):u.D7()||(u.N=u.EH()))};
q_b=function(u){u.N&&(u.N.dispose(),u.N=void 0)};
nl=function(u,h,L){var Z;((Z=u.G7)==null?0:Z.UU())&&u.G7.IH("rms",h,L===void 0?!1:L)};
TpY=function(u,h,L){u.isPaused()||u.getCurrentTime()>h||L>10||(u.play(),g.IJ(function(){TpY(u,u.getCurrentTime(),L+1)},500))};
Y_n=function(u,h){u.D3&&u.D3.ys(h)||(u.D3&&u.D3.dispose(),u.D3=h)};
WP=function(u){return RA(u.R7(),u.getCurrentTime())};
opa=function(u,h){if(u.rD()===0||u.hasError())return!1;var L=u.getCurrentTime()>0;return h>=0&&(u=u.EQ(),u.length||!L)?Ll(u,h):L};
Fy=function(u){u.D7()&&(u.G7&&u.G7.Xa("rs_s"),ai&&u.getCurrentTime()>0&&u.seekTo(0),u.mY(),u.load(),Y_n(u,null));delete u.X};
bz=function(u){switch(u.xW()){case 2:return"progressive.net.retryexhausted";case 3:return u=u.KB(),(u==null?0:u.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||Npn&&(u==null?0:u.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.EF=function(u,h,L){this.Ad=h===void 0?null:h;this.seekSource=L===void 0?null:L;this.state=u||64};
kx=function(u,h,L){L=L===void 0?!1:L;return UwY(u,h.getCurrentTime(),(0,g.vC)(),WP(h),L)};
gM=function(u,h,L,Z){if(!(h===u.state&&L===u.Ad&&Z===u.seekSource||h!==void 0&&(h&128&&!L||h&2&&h&16))){var y;if(y=h)y=h||u.state,y=!!(y&16||y&32);u=new g.EF(h,L,y?Z?Z:u.seekSource:null)}return u};
uQ=function(u,h,L){return gM(u,u.state|h,null,L===void 0?null:L)};
ju=function(u,h){return gM(u,u.state&~h,null,null)};
h0=function(u,h,L,Z){return gM(u,(u.state|h)&~L,null,Z===void 0?null:Z)};
g.F=function(u,h){return!!(u.state&h)};
g.LJ=function(u,h){return h.state===u.state&&h.Ad===u.Ad};
Z1=function(u){return u.isPlaying()&&!g.F(u,16)&&!g.F(u,32)};
yj=function(u){return g.F(u,128)?-1:g.F(u,2)?0:g.F(u,2048)?3:g.F(u,64)?-1:g.F(u,1)&&!g.F(u,32)?3:g.F(u,8)?1:g.F(u,4)?2:-1};
pJ=function(u,h,L,Z,y,R,p,J,O,f,D,c,I,A,x,Q,S){g.m.call(this);var v=this;this.Tw=u;this.slot=h;this.layout=L;this.cX=Z;this.z3=y;this.Eg=R;this.FB=p;this.rf=J;this.yZ=O;this.ew=f;this.position=c;this.C=I;this.Mi=A;this.D8=x;this.A3=Q;this.context=S;this.MO=!0;this.T=!1;this.xF="not_rendering";this.N=!1;this.X=new Dq;u=hl(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.JB=new SR(L.Np,this.cX,u,L.layoutId);var T;u=((T=RK(this))==null?void 0:T.progressCommands)||[];this.B=new NsY(O,
u,L.layoutId,function(){return v.yp()});
this.G=new p2n({adCpn:this.layout.layoutId,nV:S.nV,qgg:this.D8,Wr:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})};
KJ=function(u){return{layoutId:u.cP(),zt:u.D8,X9:u.Eg.get(),I9:u.w1()}};
J0=function(u,h){return h.layoutId!==u.layout.layoutId?(u.Tw.dO(u.slot,h,new uN("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+u.layout.layoutId+("and LayoutType: "+u.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
Ol=function(u){u.xF="rendering_start_requested";u.ew(-1)};
RK=function(u){return hl(u.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
Gzf=function(u){Jk("Received layout exit signal when not in layout exit flow.",u.slot,u.layout)};
HGV=function(u){var h;return((h=fJ(u.Eg.get(),2))==null?void 0:h.clientPlaybackNonce)||""};
D1=function(u,h){switch(h){case "normal":u.qp("complete");break;case "skipped":u.qp("skip");break;case "abandoned":oz(u.JB,"impression")&&u.qp("abandon")}};
cm=function(u,h){u.T||(h=new g.O_(h.state,new g.EF),u.T=!0);return h};
IK=function(u,h){KA(h)?u.ew(1):g.DK(h,4)&&!g.DK(h,2)&&u.QG();fG(h,4)<0&&!(fG(h,2)<0)&&u.xZ()};
rkn=function(u){u.position===0&&(u.rf.get(),u=hl(u.layout.clientMetadata,"metadata_type_ad_placement_config").kind,u={adBreakType:A0(u)},zQ("ad_bl"),g.m1(u))};
xG=function(u,h){T1(u.JB,h,!u.N)};
zBV=function(u){var h;return(((h=RK(u))==null?void 0:h.progressCommands)||[]).findIndex(function(L){return!!g.n(L==null?void 0:L.command,BpV)})!==-1};
Pm=function(u,h){var L=hl(u.clientMetadata,"metadata_type_eligible_for_ssap");return L===void 0?(Jk("Expected SSAP eligibility in PlayerBytes factory",u),!1):h.w1(L)};
CJ=function(u,h){if(!af(h.get(),"html5_ssap_pass_transition_reason"))return 3;switch(u){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return Jk("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return Jk("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:u}),3;default:yx(u,"unknown layoutExitReason")}};
mwn=function(u){Jk("getExitReason: unexpected reason",void 0,void 0,{reason:u})};
MA=function(u,h){if(af(h.get(),"html5_ssap_pass_transition_reason"))switch(u){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return mwn(u),"abandoned";case 3:case 1:return mwn(u),"error";default:yx(u,"unexpected transition reason")}else switch(u){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return Jk("getExitReason: unexpected reason",void 0,void 0,{reason:u}),"error";default:yx(u,"unexpected transition reason")}};
iQ=function(u,h,L){V4(u,L)||sh(u,h,L);V4(u,"video_to_ad")||sh(u,h,"video_to_ad");V4(u,"ad_to_video")||sh(u,h,"ad_to_video");V4(u,"ad_to_ad")||sh(u,h,"ad_to_ad")};
Qj=function(u,h,L,Z,y,R,p,J,O,f,D,c,I,A,x,Q,S,v){pJ.call(this,u,h,L,Z,y,R,p,J,f,D,c,I,A,x,Q,S,v);var T=this;this.LH=O;this.cS=c;this.h8=!0;this.bC=this.Oa=0;this.FZ=DZ(function(){Lja(KJ(T));T.Tw.Yl(T.slot,T.layout)});
this.WD=DZ(function(){ZGi(KJ(T));T.xF!=="rendering_stop_requested"&&T.cS(T);T.layoutExitReason?T.Tw.KH(T.slot,T.layout,T.layoutExitReason):Gzf(T)});
this.tq=new g.Q$(200);this.tq.listen("tick",function(){T.cj()});
g.V(this,this.tq)};
Su=function(u){u.bC=Date.now();lQ(u,u.Oa);u.tq.start()};
dwV=function(u){u.Oa=u.yp();u.R0(u.Oa/1E3,!0);lQ(u,u.Oa)};
lQ=function(u,h){h={current:h/1E3,duration:u.yp()/1E3};u.LH.get().jA("onAdPlaybackProgress",h)};
XO=function(u){Qj.call(this,u.Tw,u.slot,u.Eu,u.cX,u.z3,u.Eg,u.FB,u.rf,u.LH,u.yZ,u.ew,u.cS,u.Nv,u.LO,u.Mi,u.D8,u.A3,u.context)};
vm=function(u){Qj.call(this,u.Tw,u.slot,u.Eu,u.cX,u.z3,u.Eg,u.FB,u.rf,u.LH,u.yZ,u.ew,u.cS,u.Nv,u.LO,u.Mi,u.D8,u.A3,u.context)};
qA=function(){vm.apply(this,arguments)};
V21=function(u){return Pm(u.slot,u.Mi.get())?new qA(u):new XO(u)};
oK=function(u){pJ.call(this,u.callback,u.slot,u.Eu,u.cX,u.z3,u.Eg,u.FB,u.rf,u.yZ,u.ew,u.cS,u.Nv,u.LO,u.Mi,u.D8,u.A3,u.context);var h=this;this.adCpn="";this.xC=0;this.C2=!1;this.Xi=0;this.FZ=DZ(function(){Lja(KJ(h));h.Tw.Yl(h.slot,h.layout)});
this.WD=DZ(function(){ZGi(KJ(h));h.xF!=="rendering_stop_requested"&&h.cS(h);h.layoutExitReason?h.Tw.KH(h.slot,h.layout,h.layoutExitReason):Gzf(h)});
this.Sx=u.Sx;this.Jy=u.Jy;this.bF=u.bF;this.LH=u.LH;this.LB=u.LB;this.cS=u.cS;if(!this.w1()){af(this.Mi.get(),"html5_disable_media_load_timeout")||(this.Cu=new g.EM(function(){h.qf("load_timeout",new uN("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4));
u=TK(this.Mi.get());var L=YG(this.Mi.get());u&&L&&(this.P0=new g.EM(function(){var Z=hl(h.layout.clientMetadata,"metadata_type_preload_player_vars");Z&&h.Jy.get().D.preloadVideoByPlayerVars(Z,2,300)}))}};
srb=function(u,h){var L=hl(h.clientMetadata,"metadata_type_ad_video_id"),Z=hl(h.clientMetadata,"metadata_type_legacy_info_card_vast_extension");L&&Z&&u.LB.get().D.L().T7.add(L,{B1:Z});(h=hl(h.clientMetadata,"metadata_type_sodar_extension_data"))&&agb(u.Sx.get(),h);npb(u.FB.get(),!1)};
w2b=function(u){npb(u.FB.get(),!0);var h;((h=u.shrunkenPlayerBytesConfig)==null?0:h.shouldRequestShrunkenPlayerBytes)&&u.FB.get().d6(!1)};
eBV=function(u){var h=hl(u.S7().clientMetadata,"metadata_type_player_bytes_slot_metadata");h===void 0&&Jk("PlayerBytesSlotMetadata is not filled",u.S7(),u.Ug());return(h==null?void 0:h.B8)===!0};
NA=function(){oK.apply(this,arguments)};
Ul=function(){NA.apply(this,arguments)};
aKa=function(u){return V21(Object.assign({},u,{Tw:u.callback,ew:function(){}}))};
$wn=function(u){return new oK(Object.assign({},u,{ew:function(h){u.LH.get().jA("onAdIntroStateChange",h)}}))};
t2f=function(u){function h(L){u.LH.get().yN(L)}
return Pm(u.slot,u.Mi.get())?new Ul(Object.assign({},u,{ew:h})):new oK(Object.assign({},u,{ew:h}))};
GK=function(u){for(var h=u.Eu,L=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],Z=g.C(X2()),y=Z.next();!y.done;y=Z.next())L.push(y.value);if(tc(h,{z1:L,GM:["LAYOUT_TYPE_MEDIA_BREAK"]}))return aKa(u);h=u.Eu;L=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];Z=g.C(X2());for(y=Z.next();!y.done;y=Z.next())L.push(y.value);if(tc(h,{z1:L,GM:["LAYOUT_TYPE_MEDIA"]}))return Ed(u.Eu.clientMetadata,"metadata_type_ad_intro")?$wn(u):t2f(u)};
Fjn=function(u){var h=hl(u.clientMetadata,"metadata_type_ad_placement_config").kind,L=hl(u.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:u.layoutId,adType:Wji(L),adBreakType:A0(h)}};
A0=function(u){switch(u){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"}};
Wji=function(u){switch(u){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}};
bGR=function(u){try{return new Hm(u.Ru,u.slot,u.layout,u.kS,u.CZ,u.Eg,u.Bj,u.Jy,u.Gd,u.FB,u.zsI,u)}catch(h){}};
Hm=function(u,h,L,Z,y,R,p,J,O,f,D,c){g.m.call(this);this.Ru=u;this.slot=h;this.layout=L;this.kS=Z;this.CZ=y;this.Eg=R;this.Bj=p;this.Jy=J;this.Gd=O;this.FB=f;this.params=c;this.MO=!0;u=GK(D);if(!u)throw Error("Invalid params for sublayout");this.q1=u};
Epl=function(){this.G=1;this.N=new Dq};
rX=function(u,h,L,Z,y,R,p,J,O,f,D,c,I){g.m.call(this);this.callback=u;this.Eg=h;this.Bj=L;this.Jy=Z;this.FB=y;this.rf=R;this.vp=p;this.slot=J;this.layout=O;this.kS=f;this.q$=D;this.Gd=c;this.Mi=I;this.MO=!0;this.Bf=!1;this.N$=[];this.OE=-1;this.n1=!1;this.ET=new Epl};
kzs=function(u){var h;return(h=u.layout.Ba)!=null?h:hl(u.layout.clientMetadata,"metadata_type_sub_layouts")};
Bm=function(u){return{X9:u.Eg.get(),zt:!1,I9:u.w1()}};
gpj=function(u,h,L){if(u.o5()===u.N$.length-1){var Z,y;Jk("Unexpected skip requested during the last sublayout",(Z=u.xN())==null?void 0:Z.S7(),(y=u.xN())==null?void 0:y.Ug(),{requestingSlot:h,requestingLayout:L})}};
uEj=function(u,h,L){return L.layoutId!==zK(u,h,L)?(Jk("onSkipRequested for a PlayerBytes layout that is not currently active",u.S7(),u.Ug()),!1):!0};
jhl=function(u){u.o5()===u.N$.length-1&&Jk("Unexpected skip with target requested during the last sublayout")};
hdw=function(u,h,L){return L.renderingContent===void 0&&L.layoutId!==zK(u,h,L)?(Jk("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",u.S7(),u.Ug(),{requestingSlot:h,requestingLayout:L}),!1):!0};
L1Y=function(u,h,L,Z){var y=hl(h.Ug().clientMetadata,"metadata_type_ad_pod_skip_target");if(y&&y>0&&y<u.N$.length){a:{for(var R=y;R<u.N$.length;){if(y===hl(u.N$[R].Ug().clientMetadata,"metadata_type_ad_pod_skip_index")){u=R;break a}R++}u=void 0}if(u===void 0)Jk("Skip-to-index was requested but target index was not found",h.S7(),h.Ug(),{requestingSlot:L,requestingLayout:Z});else return u}else Jk("Invalid ad pod skip target index",h.S7(),h.Ug(),{requestingSlot:L,requestingLayout:Z})};
zK=function(u,h,L){var Z=hl(u.Ug().clientMetadata,"metadata_type_linked_in_player_layout_id");return Z?Z:(Jk("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",u.S7(),u.Ug(),{requestingSlot:h,requestingLayout:L}),null)};
ySf=function(u,h,L,Z){ZQV(u,h,L,"skipped",function(){mh(u,Z)})};
ZQV=function(u,h,L,Z,y){if(!u.n1){var R=u.xN();if(R){R.Ug().layoutId!==L.layoutId&&Jk("SubLayout mismatch in exitSubLayout",h,L,{exitingSubLayout:L.layoutId,activeSubLayout:R.Ug().layoutId});u.n1=!0;R.Ib(R.Ug(),Z);R=Object.assign({},Bm(u),{layoutId:L.layoutId,layoutExitReason:Z});var p=R.layoutId,J=R.layoutExitReason;if(R.I9){var O={};PX(R.X9,"wrsx",(O.xc=p,O.ler=J,O.ctp=x6(p),O))}u.tK(h,L,Z);u.n1=!1;u.U_?(u.U_(),u.w1()||dX(u.rf.get())):y()}else Jk("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",
h,L)}};
mh=function(u,h){if(u.o5()===u.N$.length-1)u.OE++,Vj(u.q$,u.layout,"normal"),u.w1()||dX(u.rf.get());else a:{if(u.o5()===-1&&(u.callback.Yl(u.slot,u.layout),h>0)){Jk("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",u.slot,u.layout,{indexToPlay:h,layoutId:u.layout.layoutId});break a}u.OE=h;h=u.xN();if(u.o5()>0&&!u.w1()){var L=u.rf.get();L.N=!1;var Z={};L.G&&L.videoId&&(Z.cttAuthInfo={token:L.G,videoId:L.videoId});dT("ad_to_ad",Z)}u.mf(h)}};
nJ=function(u){rX.call(this,u.Ru,u.Eg,u.Bj,u.Jy,u.FB,u.rf,u.vp,u.slot,u.layout,u.kS,u.q$,u.Gd,u.Mi)};
RdY=function(u){(u=u.xN())&&u.oI()};
sl=function(u){rX.call(this,u.Ru,u.Eg,u.Bj,u.Jy,u.FB,u.rf,u.vp,u.slot,u.layout,u.kS,u.q$,u.Gd,u.Mi);this.TM=void 0};
pcn=function(u,h){u.mM()&&!In(u.ET.N)||u.callback.KH(u.slot,u.layout,h)};
wX=function(u){return af(u.Mi.get(),"html5_ssap_pass_transition_reason")};
K1a=function(u,h,L){h.H6().currentState<2&&(L=MA(L,u.Mi),h.Ib(h.Ug(),L));L=h.H6().G;u.tK(u.slot,h.Ug(),L)};
JSn=function(u,h){if(u.ET.N.currentState<2){var L=MA(h,u.Mi);L==="error"?u.callback.dO(u.slot,u.layout,new uN("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:h},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):Vj(u.q$,u.layout,L)}};
eu=function(u,h,L){h.H6().currentState>=2||(h.Ib(h.Ug(),L),In(h.H6())&&(vs(u.vp,u.slot,h.Ug(),L),u.TM=void 0))};
OQR=function(u,h){u.ET.G===2&&h!==u.kV()&&Jk("onClipEntered: unknown cpn",u.slot,u.layout,{cpn:h})};
fbj=function(u,h){var L=u.xN();if(L){var Z=L.Ug().layoutId,y=u.o5()+1;u.mM()?eu(u,L,h):L.Ib(L.Ug(),h);y>=0&&y<u.N$.length?(L=u.N$[y].Ug().layoutId,wX(u)&&(["normal","skipped"].includes(h)||Jk("exitActiveLayoutAndPlayNext: unexpected exit reason",u.slot,u.layout,{exitReason:h})),u.Bj.get().finishSegmentByCpn(Z,L,CJ(h,u.Mi))):y===u.N$.length?Vj(u.q$,u.layout,"normal"):Jk("unexpected index",u.slot,u.layout,{index:y})}else Jk("exitActiveLayoutAndPlayNext: no active adapter",u.slot,u.layout)};
Dsn=function(u,h){Jk(h+": undefined adapter",u.slot,u.layout)};
cSb=function(u){return Pm(u.slot,u.Mi.get())?new sl(u):new nJ(u)};
aK=function(u,h,L,Z,y,R,p){g.m.call(this);this.callback=u;this.Jy=h;this.FB=L;this.rf=Z;this.q1=y;this.Gd=R;this.Mi=p;this.MO=!0;this.Bf=!1};
IbV=function(u,h,L,Z,y,R,p,J,O,f,D,c,I,A,x,Q,S,v,T,U,z,d){function W(){var u1=GK(Object.assign({},KV,{callback:{Yl:u.Yl.bind(u),KH:u.KH.bind(u),zq:function(){},
dO:u.dO.bind(u)},slot:L,Eu:Z,cS:function(){Vj(p,Z,"normal")},
Nv:0,LO:1,D8:!0}));return u1?new aK(u,D,I,x,u1,y,T):u1}
function t(){var u1=Object.assign({},KV,{callback:{Yl:function(){},
KH:function(){},
zq:function(){return void Vj(p,Z,"normal")},
dO:function(){}},
slot:L,Eu:Z,cS:function(){},
Nv:0,LO:1,D8:!0});return bGR({Ru:u,slot:L,layout:Z,kS:R,CZ:p,Eg:c,Bj:U,Jy:D,Gd:y,FB:I,zsI:u1,context:z})}
function yn(){var u1,w=(u1=Z.Ba)!=null?u1:hl(Z.clientMetadata,"metadata_type_sub_layouts");u1=cSb({Ru:u,Eg:c,Bj:U,Jy:D,FB:I,rf:x,vp:h,slot:L,layout:Z,kS:R,q$:p,Gd:y,Mi:T});for(var k=[],M={MC:0};M.MC<w.length;M={MC:M.MC},M.MC++){var e=GK(Object.assign({},KV,{callback:{Yl:u1.LK.bind(u1),KH:u1.HQ.bind(u1),zq:u1.zq.bind(u1),dO:u1.iD.bind(u1)},slot:L,Eu:w[M.MC],cS:function(sj){return function(l3){l3.Ib(w[sj.MC],"normal")}}(M),
Nv:M.MC,LO:w.length,D8:!1}));if(!e)return;k.push(e)}u1.N$=k;return u1}
var KV={cX:J,z3:O,Sx:f,Jy:D,Eg:c,FB:I,bF:A,rf:x,LH:Q,yZ:S,LB:v,Mi:T,context:z,A3:d};J=tc(Z,{z1:["metadata_type_sub_layouts"],GM:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||Z.Ba!==void 0&&Z.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";O=Pm(L,T.get())&&tc(Z,{z1:[],GM:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});f=tc(Z,{z1:[],GM:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(J)return yn();if(O)return t();if(f)return W()};
$G=function(u,h,L,Z,y,R,p,J,O,f){this.callback=u;this.slot=h;this.layout=L;this.Eg=Z;this.Bj=y;this.fW=R;this.FB=p;this.JB=J;this.cX=O;this.T=f;this.driftRecoveryMs=hl(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.B=hl(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0};
xsf=function(u){var h=hl(u.layout.clientMetadata,"metadata_type_layout_enter_ms"),L=hl(u.layout.clientMetadata,"metadata_type_layout_exit_ms");u=u.fW.get();h=AS1(u.X,h,L);return Math.min(L,h!==null?h:Infinity)};
Wm=function(u,h){var L;t0(u.cX.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(L=u.Eg.get().jN)==null?void 0:L.clientPlaybackNonce,adClientData:u.layout.oP.adClientDataEntry},h)})};
FO=function(u,h,L,Z,y,R,p,J,O,f,D){$G.call(this,u,h,L,Z,y,R,p,J,O,f);this.X=D;this.N=this.G=null;u=g.C(this.X);for(h=u.next();!h.done;h=u.next())h=h.value,Ed(h.Ug().clientMetadata,"metadata_type_survey_overlay")&&(this.N=h.Ug().layoutId)};
Cyi=function(u,h){var L=PyR(u,h);L||Jk("Expected subLRA found by layout ID",u.slot,u.layout,{layoutId:h});u.G={r7:L};L?L.startRendering(L.Ug()):h===u.N&&Jk("Failed to find rendering adapter for survey media layout",u.slot,u.layout,{surveyMediaLayoutId:h})};
PyR=function(u,h){return h==null?null:u.X.find(function(L){return L.Ug().layoutId===h})||null};
M$i=function(u,h,L,Z,y,R,p,J,O,f){var D=y-Z,c=Ed(h.clientMetadata,"metadata_type_survey_overlay"),I,A=((I=u.fulfilledLayout||hl(u.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:hl(I.clientMetadata,"metadata_type_ssdai_ads_config"))||"";if(!D)return p.RB(L,A,2,R,Z,y,u.slotId),bQ(f,"ads_iraot","sid."+u.slotId+";enterMs."+Z+";exitMs."+y+";hso."+c+";vid."+L.video_id),null;D=p.vD(L,A,2,R,Z,y,u.slotId);bQ(f,"ads_atct","sid."+u.slotId+";enterMs."+Z+";exitMs."+y+";hso."+c+";vid."+L.video_id);
if(!D)return Jk("Unexpected failure to add to playback timeline",u,h,O()),null;u=u.slotId;h=h.layoutId;D?(J.G.has(D)&&Jk("Unexpected remap of timeline playback"),J.G.set(D,{slotId:u,layoutId:h})):Jk("Invalid timeline playback ID");Z+R>y&&p.q5(D,y-Z);return D};
iQb=function(u,h,L){var Z=hl(h.clientMetadata,"metadata_type_sodar_extension_data");if(Z)try{agb(L,Z)}catch(y){Jk("Unexpected error when loading Sodar",u,h,{error:y})}};
Qhj=function(u,h,L,Z,y,R,p){El(u,h,new g.O_(L,new g.EF),Z,y,p,!1,R)};
El=function(u,h,L,Z,y,R,p,J){p=p===void 0?!0:p;KA(L)&&Jg(y,0,null)&&(!oz(u,"impression")&&J&&J(),u.qp("impression"));oz(u,"impression")&&(g.DK(L,4)&&!g.DK(L,2)&&u.d2("pause"),fG(L,4)<0&&!(fG(L,2)<0)&&u.d2("resume"),g.DK(L,16)&&y>=.5&&u.d2("seek"),p&&g.DK(L,2)&&kG(u,L.state,h,Z,y,R))};
kG=function(u,h,L,Z,y,R,p,J){oz(u,"impression")&&(R?(R=y-Z,R=R>=-1&&R<=2):R=Math.abs(Z-y)<=1,gX(u,h,R?Z:y,L,Z,p,J&&R),R&&u.qp("complete"))};
gX=function(u,h,L,Z,y,R,p){Yl(u,L*1E3,p);y<=0||L<=0||(h==null?0:g.F(h,16))||(h==null?0:g.F(h,32))||(Jg(L,y*.25,Z)&&(R&&!oz(u,"first_quartile")&&R("first"),u.qp("first_quartile")),Jg(L,y*.5,Z)&&(R&&!oz(u,"midpoint")&&R("second"),u.qp("midpoint")),Jg(L,y*.75,Z)&&(R&&!oz(u,"third_quartile")&&R("third"),u.qp("third_quartile")))};
lbe=function(u,h){oz(u,"impression")&&u.d2(h?"fullscreen":"end_fullscreen")};
Sha=function(u){oz(u,"impression")&&u.d2("clickthrough")};
Xcl=function(u){u.d2("active_view_measurable")};
vz1=function(u){oz(u,"impression")&&!oz(u,"seek")&&u.d2("active_view_fully_viewable_audible_half_duration")};
qhe=function(u){oz(u,"impression")&&!oz(u,"seek")&&u.d2("active_view_viewable")};
TTn=function(u){oz(u,"impression")&&!oz(u,"seek")&&u.d2("audio_audible")};
YhL=function(u){oz(u,"impression")&&!oz(u,"seek")&&u.d2("audio_measurable")};
ozl=function(u,h,L,Z,y,R,p,J,O,f,D,c){this.callback=u;this.slot=h;this.layout=L;this.Bj=Z;this.JB=y;this.FB=R;this.A1=p;this.z3=J;this.Sx=O;this.Mi=f;this.cX=D;this.Eg=c;this.h8=!0;this.YF=this.xF=null;this.adCpn=void 0;this.G=!1};
NTV=function(u,h,L){var Z;bQ(u.cX.get(),"ads_qua","cpn."+hl(u.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((Z=fJ(u.Eg.get(),2))==null?void 0:Z.clientPlaybackNonce)+";qt."+h+";clr."+L)};
Use=function(u,h){var L,Z;bQ(u.cX.get(),"ads_imp","cpn."+hl(u.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((L=fJ(u.Eg.get(),2))==null?void 0:L.clientPlaybackNonce)+";clr."+h+";skp."+!!g.n((Z=hl(u.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:Z.skipOrPreviewRenderer,ur))};
jI=function(u){return u.Mi.get().D.L().experiments.tB("increase_completion_ping_firing_window")&&fJ(u.Eg.get(),1).KZ};
hL=function(u){return{enterMs:hl(u.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:hl(u.clientMetadata,"metadata_type_layout_exit_ms")}};
Lm=function(u,h,L,Z,y,R,p,J,O,f,D,c,I,A){$G.call(this,u,h,L,Z,y,p,J,O,f,c);this.A1=R;this.Sx=D;this.z3=I;this.Mi=A;this.YF=this.xF=null};
GQY=function(u,h){var L;bQ(u.cX.get(),"ads_imp","acpn."+((L=fJ(u.Eg.get(),2))==null?void 0:L.clientPlaybackNonce)+";clr."+h)};
HQj=function(u,h,L){var Z;bQ(u.cX.get(),"ads_qua","cpn."+hl(u.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((Z=fJ(u.Eg.get(),2))==null?void 0:Z.clientPlaybackNonce)+";qt."+h+";clr."+L)};
ZQ=function(u,h,L,Z,y,R,p,J,O,f,D,c,I,A,x,Q,S,v,T,U,z){this.Gd=u;this.kS=h;this.q$=L;this.Eg=Z;this.Bj=y;this.FB=R;this.cX=p;this.A1=J;this.fW=O;this.z3=f;this.Sx=D;this.Jy=c;this.bF=I;this.rf=A;this.LH=x;this.yZ=Q;this.LB=S;this.Mi=v;this.G=T;this.context=U;this.A3=z};
yL=function(u,h,L,Z,y,R,p,J,O,f,D,c,I,A,x,Q,S,v){this.Gd=u;this.kS=h;this.q$=L;this.cX=Z;this.z3=y;this.Sx=R;this.Jy=p;this.Eg=J;this.FB=O;this.bF=f;this.rf=D;this.LH=c;this.yZ=I;this.LB=A;this.Mi=x;this.Bj=Q;this.context=S;this.A3=v};
rSf=function(u,h,L,Z){Zd.call(this,"survey-interstitial",u,h,L,Z)};
R0=function(u,h,L,Z,y){Ac.call(this,L,u,h,Z);this.cX=y;u=hl(h.clientMetadata,"metadata_type_ad_placement_config");this.JB=new SR(h.Np,y,u,h.layoutId)};
pm=function(u){return Math.round(u.width)+"x"+Math.round(u.height)};
JL=function(u,h,L){L=L===void 0?Km:L;L.width<Km.width&&(L=Km);if(u.width<L.width||u.height<L.height)return{n8:3,hT:501,errorMessage:"ad("+pm(L)+") larger than container("+pm(u)+")."};if(L.width*L.height>u.width*u.height*.2)return{n8:3,hT:501,errorMessage:"ad("+pm(L)+") to container("+pm(u)+") ratio exceeds limit."};if(L.height>u.height/3-h)return{n8:3,hT:501,errorMessage:"ad("+pm(L)+") covers container("+pm(u)+") center."}};
BTV=function(u,h){var L=hl(u.clientMetadata,"metadata_type_ad_placement_config");return new SR(u.Np,h,L,u.layoutId)};
OL=function(u){return hl(u.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")};
fm=function(u,h,L,Z){Zd.call(this,"invideo-overlay",u,h,L,Z);this.interactionLoggingClientData=Z};
DQ=function(u,h,L,Z,y,R,p,J,O,f,D,c){Ac.call(this,R,u,h,y);this.cX=L;this.B=p;this.FB=J;this.yZ=O;this.Mi=f;this.C=D;this.T=c;this.JB=BTV(h,L)};
zda=function(){var u=["metadata_type_invideo_overlay_ad_renderer"];X2().forEach(function(h){u.push(h)});
return{z1:u,GM:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
cT=function(u,h,L,Z,y,R,p,J,O,f,D,c,I){Ac.call(this,R,u,h,y);this.cX=L;this.B=p;this.S=J;this.FB=O;this.yZ=f;this.Mi=D;this.C=c;this.T=I;this.JB=BTV(h,L)};
msi=function(){for(var u=["metadata_type_invideo_overlay_ad_renderer"],h=g.C(X2()),L=h.next();!L.done;L=h.next())u.push(L.value);return{z1:u,GM:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
I0=function(u){this.FB=u;this.G=!1};
dsn=function(u,h,L){Zd.call(this,"survey",u,{},h,L)};
AL=function(u,h,L,Z,y,R,p){Ac.call(this,L,u,h,Z);this.B=y;this.FB=R;this.Mi=p};
V$n=function(u,h,L,Z,y,R,p,J,O,f){this.uF=u;this.FB=h;this.cX=L;this.B=Z;this.z3=y;this.N=R;this.X=p;this.yZ=J;this.Mi=O;this.G=f};
nzY=function(u,h,L,Z,y,R,p,J,O,f){this.uF=u;this.FB=h;this.cX=L;this.B=Z;this.z3=y;this.N=R;this.X=p;this.yZ=J;this.Mi=O;this.G=f};
xf=function(u,h,L,Z,y,R,p,J,O,f){g1.call(this,u,h,L,Z,y,R,p,O);this.Od=J;this.Eg=f};
shi=function(){var u=WPR();u.z1.push("metadata_type_ad_info_ad_metadata");return u};
wcR=function(u,h,L,Z,y,R,p){this.uF=u;this.FB=h;this.cX=L;this.N=Z;this.Od=y;this.G=R;this.Eg=p};
ede=function(u,h,L,Z,y,R,p,J){this.uF=u;this.FB=h;this.cX=L;this.N=Z;this.Od=y;this.G=R;this.Mi=p;this.Eg=J};
PT=function(u,h){this.slotId=h;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=u(this.triggerType)};
Cm=function(u,h){this.adPodIndex=u;this.G=h.length;this.adBreakLengthSeconds=h.reduce(function(Z,y){return Z+y},0);
var L=0;for(u+=1;u<h.length;u++)L+=h[u];this.adBreakRemainingLengthSeconds=L};
My=function(u,h,L){this.l$=h;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=L||u(this.triggerType)};
ir=function(u,h,L){this.G=h;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=L||u(this.triggerType)};
QL=function(u,h,L,Z){this.l$=h;this.visible=L;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=Z||u(this.triggerType)};
abe=function(u){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=u(this.triggerType)};
$sR=function(u){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=u(this.triggerType)};
lr=function(u,h,L){this.triggeringLayoutId=h;this.slotId=L;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=u(this.triggerType)};
SI=function(u,h,L){this.triggeringLayoutId=h;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=L||u(this.triggerType)};
Xc=function(u,h,L,Z){this.triggeringLayoutId=h;this.G=L;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=Z||u(this.triggerType)};
t$Y=function(u){switch(u){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 b("Invalid layout exit reason: "+
u)}};
vT=function(u,h,L){this.triggeringLayoutId=h;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=L||u(this.triggerType)};
qy=function(u,h){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=h||u(this.triggerType)};
T$=function(u,h){this.breakDurationMs=u;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED";this.triggerId=h||""};
Yf=function(u,h){this.breakDurationMs=u;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED";this.triggerId=h||""};
o0=function(u,h){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=h||u(this.triggerType)};
W1s=function(u){this.triggerId=u;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
F1j=function(u,h,L,Z,y){this.l$=h;this.G=L;this.visible=Z;this.layoutId=y;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=u(this.triggerType)};
Ny=function(u,h,L,Z,y){this.l$=h;this.G=L;this.visible=Z;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=y||u(this.triggerType)};
UL=function(u,h){this.breakDurationMs=u;this.triggerType="TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION";this.triggerId=h||""};
bQL=function(u,h,L){this.l$=h;this.G=L;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=u(this.triggerType)};
G$=function(u,h,L,Z,y){this.G=h;this.slotType=L;this.layoutType=Z;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=y||u(this.triggerType)};
HT=function(u,h){this.G=h;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=u(this.triggerType)};
rz=function(u,h,L){this.layoutId=h;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=L||u(this.triggerType)};
BT=function(u,h,L){this.G=h;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=L||u(this.triggerType)};
t9f=function(u,h){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=h;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=u(this.triggerType)};
Ezs=function(u,h){this.G=u;this.index=h};
kQj=function(u){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=u(this.triggerType)};
z$=function(u,h){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=h||u(this.triggerType)};
gzl=function(u,h,L){this.layoutId=h;this.offsetMs=L;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=u(this.triggerType)};
uFb=function(u,h){this.layoutId=h;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=u(this.triggerType)};
jtL=function(u,h,L){this.layoutId=h;this.offsetMs=L;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=u(this.triggerType)};
mZ=function(u,h,L){this.triggeringLayoutId=h;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=L||u(this.triggerType)};
dz=function(u,h,L){this.triggeringSlotId=h;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=L||u(this.triggerType)};
VL=function(u,h,L){this.triggeringSlotId=h;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=L||u(this.triggerType)};
nm=function(u,h){this.triggeringSlotId=h;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=u(this.triggerType)};
sL=function(u,h){this.triggeringSlotId=h;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=u(this.triggerType)};
wz=function(u,h,L){this.triggeringSlotId=h;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=L||u(this.triggerType)};
eI=function(u,h){this.triggeringSlotId=h;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=u(this.triggerType)};
a0=function(u,h,L){this.triggeringLayoutId=h;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=L||u(this.triggerType)};
$f=function(u,h,L,Z){this.durationMs=h;this.triggeringLayoutId=L;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=Z||u(this.triggerType)};
tL=function(u,h,L,Z){this.category=u;this.trigger=h;this.slot=L;this.layout=Z};
WT=function(u){return(u==null?void 0:u.layoutId)!=null&&(u==null?void 0:u.layoutType)!=null};
h3n=function(u){if(!WT(u.adLayoutMetadata))return!1;u=u.renderingContent;return g.n(u,Fc)||g.n(u,br)||g.n(u,EL)||g.n(u,kf)||g.n(u,gz)||g.n(u,ua)?!0:!1};
Lvl=function(u){return(u==null?void 0:u.durationMs)!=null&&(u==null?void 0:u.durationMs)>0};
jD=function(u){return!!(u.VdI&&u.slot&&u.layout)};
hE=function(u){var h,L=(h=u.config)==null?void 0:h.adPlacementConfig;u=u.renderer;return!(!L||L.kind==null||!u)};
Z_R=function(u){if(!WT(u.adLayoutMetadata))return!1;u=u.renderingContent;return g.n(u,yE)||g.n(u,Rn)||g.n(u,LA)||g.n(u,Zq)?!0:!1};
L0=function(u){return u.playerVars!==void 0&&u.pings!==void 0&&u.externalVideoId!==void 0};
x3=function(u){if(!WT(u.adLayoutMetadata))return!1;u=u.renderingContent;var h=g.n(u,ZB);return h?f0(h):(h=g.n(u,DB))?L0(h):(h=g.n(u,ce))?h.playerVars!==void 0:(h=g.n(u,yE))?h.durationMilliseconds!==void 0:g.n(u,I4)||g.n(u,AE)?!0:!1};
f0=function(u){u=(u.sequentialLayouts||[]).map(function(h){return g.n(h,Pe)});
return u.length>0&&u.every(x3)};
O_n=function(u){if(!WT(u.adLayoutMetadata))return!1;if(g.n(u.renderingContent,yCf)||g.n(u.renderingContent,R3Y))return!0;var h=g.n(u.renderingContent,C0);return g.n(u.renderingContent,MU)||g.n(h==null?void 0:h.sidePanel,pER)||g.n(h==null?void 0:h.sidePanel,Kv1)||g.n(h==null?void 0:h.sidePanel,JCf)?!0:!1};
xjn=function(u){var h;(h=!u)||(h=u.adSlotMetadata,h=!((h==null?void 0:h.slotId)!==void 0&&(h==null?void 0:h.slotType)!==void 0));if(h||!(fSw(u)||u.slotEntryTrigger&&u.slotFulfillmentTriggers&&u.slotExpirationTriggers))return!1;var L;u=(L=u.fulfillmentContent)==null?void 0:L.fulfilledLayout;return(L=g.n(u,Pe))?x3(L):(L=g.n(u,ia))?O_n(L):(L=g.n(u,Djb))?Z_R(L):(L=g.n(u,cCe))?h3n(L):(L=g.n(u,ISb))?WT(L.adLayoutMetadata)?g.n(L.renderingContent,Fc)?!0:!1:!1:(u=g.n(u,ACa))?WT(u.adLayoutMetadata)?g.n(u.renderingContent,
Qe)?!0:!1:!1:!1};
fSw=function(u){var h;u=g.n((h=u.fulfillmentContent)==null?void 0:h.fulfilledLayout,ia);var L;return u&&((L=u.adLayoutMetadata)==null?void 0:L.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&u.layoutExitNormalTriggers===void 0};
PBe=function(u){var h;return(u==null?void 0:(h=u.adSlotMetadata)==null?void 0:h.slotType)==="SLOT_TYPE_IN_PLAYER"};
M4e=function(u,h){var L;if((L=u.questions)==null||!L.length||!u.playbackCommands||(h===void 0||!h)&&u.questions.length!==1)return!1;u=g.C(u.questions);for(h=u.next();!h.done;h=u.next()){h=h.value;var Z=L=void 0,y=((L=g.n(h,la))==null?void 0:L.surveyAdQuestionCommon)||((Z=g.n(h,SD))==null?void 0:Z.surveyAdQuestionCommon);if(!CBe(y))return!1}return!0};
i_Y=function(u){u=((u==null?void 0:u.playerOverlay)||{}).instreamSurveyAdRenderer;var h;if(u)if(u.playbackCommands&&u.questions&&u.questions.length===1){var L,Z=((h=g.n(u.questions[0],la))==null?void 0:h.surveyAdQuestionCommon)||((L=g.n(u.questions[0],SD))==null?void 0:L.surveyAdQuestionCommon);h=CBe(Z)}else h=!1;else h=!1;return h};
CBe=function(u){if(!u)return!1;u=g.n(u.instreamAdPlayerOverlay,Xb);var h=g.n(u==null?void 0:u.skipOrPreviewRenderer,ur),L=g.n(u==null?void 0:u.adInfoRenderer,ve);return(g.n(u==null?void 0:u.skipOrPreviewRenderer,qU)||h)&&L?!0:!1};
QtY=function(u){return u.linearAds!=null&&WT(u.adLayoutMetadata)};
lSs=function(u){return u.linearAd!=null&&u.adVideoStart!=null};
Ssi=function(u){if(isNaN(Number(u.timeoutSeconds))||!u.text||!u.ctaButton||!g.n(u.ctaButton,g.TW)||!u.brandImage)return!1;var h;return u.backgroundImage&&g.n(u.backgroundImage,Y3)&&((h=g.n(u.backgroundImage,Y3))==null?0:h.landscape)?!0:!1};
o4=function(u,h,L,Z,y,R,p){g.m.call(this);this.Mi=u;this.G=h;this.X=Z;this.Eg=y;this.B=R;this.N=p};
qsa=function(u,h,L){var Z,y=((Z=L.adSlots)!=null?Z:[]).map(function(J){return g.n(J,NU)});
if(L.sf)if(hl(h.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))f2(u.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},h.slotId);
else{if(u.Mi.get().D.L().j("h5_check_forecasting_renderer_for_throttled_midroll")){var R=L.zY.filter(function(J){var O;return((O=J.renderer)==null?void 0:O.clientForecastingAdRenderer)!=null});
R.length!==0?XEY(u.N,R,y,h.slotId,L.ssdaiAdsConfig):f2(u.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},h.slotId)}else f2(u.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},h.slotId);
vWw(u.B,h)}else{var p;Z={UW:Math.round(((R=hl(h.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:R.UW)||0),V_:(p=hl(h.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:p.V_};XEY(u.N,L.zY,y,h.slotId,L.ssdaiAdsConfig,Z)}};
Ysl=function(u,h,L,Z,y,R,p){var J=fJ(u.Eg.get(),1);f2(u.G.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return TAw(u.X.get(),L,Z,y,J.clientPlaybackNonce,J.Ea,J.daiEnabled,J,R,p)},h)};
NAb=function(u,h,L,Z,y,R,p){h=oWb(h,R,Number(Z.prefetchMilliseconds)||0,p);u=h instanceof b?h:Uu(u,Z,y,h,L);return u instanceof b?u:[u]};
Ujj=function(u,h,L,Z,y){var R=DL(u.N.get(),"SLOT_TYPE_AD_BREAK_REQUEST");Z=[new HU({getAdBreakUrl:Z.getAdBreakUrl,UW:0,V_:0}),new WU(!0)];u=h.pauseDurationMs?h.lactThresholdMs?{slotId:R,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new wz(u.G,R),slotFulfillmentTriggers:[new $sR(u.G)],slotExpirationTriggers:[new BT(u.G,y),new VL(u.G,R)],LI:"core",clientMetadata:new jM(Z),adSlotLoggingData:L}:new b("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new b("AdPlacementConfig for Pause Ads is missing pause_duration_ms");
return u instanceof b?u:[u]};
GRR=function(u){var h,L;return((h=u.renderer)==null?void 0:(L=h.adBreakServiceRenderer)==null?void 0:L.getAdBreakUrl)!==void 0};
GW=function(u,h,L){if(u.beforeContentVideoIdStartedTrigger)u=u.beforeContentVideoIdStartedTrigger?new My(gQ,h,u.id):new b("Not able to create BeforeContentVideoIdStartedTrigger");else{if(u.layoutIdExitedTrigger){var Z;h=(Z=u.layoutIdExitedTrigger)!=null&&Z.triggeringLayoutId?new vT(gQ,u.layoutIdExitedTrigger.triggeringLayoutId,u.id):new b("Not able to create LayoutIdExitedTrigger")}else{if(u.layoutExitedForReasonTrigger){var y,R;((y=u.layoutExitedForReasonTrigger)==null?0:y.triggeringLayoutId)&&((R=
u.layoutExitedForReasonTrigger)==null?0:R.layoutExitReason)?(h=t$Y(u.layoutExitedForReasonTrigger.layoutExitReason),u=h instanceof b?h:new Xc(gQ,u.layoutExitedForReasonTrigger.triggeringLayoutId,[h],u.id)):u=new b("Not able to create LayoutIdExitedForReasonTrigger")}else{if(u.onLayoutSelfExitRequestedTrigger){var p;h=(p=u.onLayoutSelfExitRequestedTrigger)!=null&&p.triggeringLayoutId?new rz(gQ,u.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,u.id):new b("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(u.onNewPlaybackAfterContentVideoIdTrigger)u=
u.onNewPlaybackAfterContentVideoIdTrigger?new BT(gQ,h,u.id):new b("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(u.skipRequestedTrigger){var J;h=(J=u.skipRequestedTrigger)!=null&&J.triggeringLayoutId?new mZ(gQ,u.skipRequestedTrigger.triggeringLayoutId,u.id):new b("Not able to create SkipRequestedTrigger")}else if(u.slotIdEnteredTrigger){var O;h=(O=u.slotIdEnteredTrigger)!=null&&O.triggeringSlotId?new dz(gQ,u.slotIdEnteredTrigger.triggeringSlotId,u.id):new b("Not able to create SlotIdEnteredTrigger")}else if(u.slotIdExitedTrigger){var f;
h=(f=u.slotIdExitedTrigger)!=null&&f.triggeringSlotId?new VL(gQ,u.slotIdExitedTrigger.triggeringSlotId,u.id):new b("Not able to create SkipRequestedTrigger")}else if(u.surveySubmittedTrigger){var D;h=(D=u.surveySubmittedTrigger)!=null&&D.triggeringLayoutId?new a0(gQ,u.surveySubmittedTrigger.triggeringLayoutId,u.id):new b("Not able to create SurveySubmittedTrigger")}else{if(u.mediaResumedTrigger)u=u.mediaResumedTrigger&&u.id?new W1s(u.id):new b("Not able to create MediaResumedTrigger");else{if(u.closeRequestedTrigger){var c;
h=(c=u.closeRequestedTrigger)!=null&&c.triggeringLayoutId?new ir(gQ,u.closeRequestedTrigger.triggeringLayoutId,u.id):new b("Not able to create CloseRequestedTrigger")}else if(u.slotIdScheduledTrigger){var I;h=(I=u.slotIdScheduledTrigger)!=null&&I.triggeringSlotId?new wz(gQ,u.slotIdScheduledTrigger.triggeringSlotId,u.id):new b("Not able to create SlotIdScheduledTrigger")}else{if(u.mediaTimeRangeTrigger){var A;Z=Number((A=u.mediaTimeRangeTrigger)==null?void 0:A.offsetStartMilliseconds);var x;p=Number((x=
u.mediaTimeRangeTrigger)==null?void 0:x.offsetEndMilliseconds);isFinite(Z)&&isFinite(p)?(x=p,x===-1&&(x=L),L=Z>x?new b("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:Z,offsetEndMs:x},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",x===L&&Z-500<=x):new l6(Z,x),u=L instanceof b?L:new Ny(gQ,h,L,!1,u.id)):u=new b("Not able to create MediaTimeRangeTrigger")}else if(u.contentVideoIdEndedTrigger)u=u.contentVideoIdEndedTrigger?new QL(gQ,h,!1,u.id):new b("Not able to create ContentVideoIdEndedTrigger");
else{if(u.layoutIdEnteredTrigger){var Q;h=(Q=u.layoutIdEnteredTrigger)!=null&&Q.triggeringLayoutId?new SI(gQ,u.layoutIdEnteredTrigger.triggeringLayoutId,u.id):new b("Not able to create LayoutIdEnteredTrigger")}else if(u.timeRelativeToLayoutEnterTrigger){var S;h=(S=u.timeRelativeToLayoutEnterTrigger)!=null&&S.triggeringLayoutId?new $f(gQ,Number(u.timeRelativeToLayoutEnterTrigger.durationMs),u.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,u.id):new b("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(u.onDifferentLayoutIdEnteredTrigger){var v;
h=(v=u.onDifferentLayoutIdEnteredTrigger)!=null&&v.triggeringLayoutId&&u.onDifferentLayoutIdEnteredTrigger.slotType&&u.onDifferentLayoutIdEnteredTrigger.layoutType?new G$(gQ,u.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,u.onDifferentLayoutIdEnteredTrigger.slotType,u.onDifferentLayoutIdEnteredTrigger.layoutType,u.id):new b("Not able to create CloseRequestedTrigger")}else{if(u.liveStreamBreakStartedTrigger)u=u.liveStreamBreakStartedTrigger&&u.id?new o0(gQ,u.id):new b("Not able to create LiveStreamBreakStartedTrigger");
else if(u.liveStreamBreakEndedTrigger)u=u.liveStreamBreakEndedTrigger&&u.id?new qy(gQ,u.id):new b("Not able to create LiveStreamBreakEndedTrigger");else{if(u.liveStreamBreakScheduledDurationMatchedTrigger){var T;h=(T=u.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&T.breakDurationMs?new T$(Number(u.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,u.id):new b("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(u.liveStreamBreakScheduledDurationNotMatchedTrigger){var U;
h=(U=u.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&U.breakDurationMs?new Yf(Number(u.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,u.id):new b("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(u.newSlotScheduledWithBreakDurationTrigger){var z;h=(z=u.newSlotScheduledWithBreakDurationTrigger)!=null&&z.breakDurationMs?new UL(Number(u.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,u.id):new b("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else h=
u.prefetchCacheExpiredTrigger?new z$(gQ,u.id):new b("Not able to convert an AdsControlflowTrigger.");u=h}h=u}u=h}h=u}u=h}h=u}u=h}h=u}u=h}h=u}u=h}return u};
He=function(u,h){h.G>=2&&(u.slot_pos=h.adPodIndex);u.autoplay="1"};
rCe=function(u,h,L,Z,y,R,p,J){return h===null?new b("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:h,ActionCompanionAdRenderer:Z}):[H_a(u,h,p,R,function(O){var f=O.slotId;O=J(O);var D=Z.adLayoutLoggingData,c=new jM([new BA(Z),new WA(y)]);f=$k(L.N.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",f);var I={layoutId:f,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",LI:"core"};return{layoutId:f,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Np:new Map,
layoutExitNormalTriggers:[new BT(L.G,p)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:"core",clientMetadata:c,oP:O(I),adLayoutLoggingData:D}})]};
BAa=function(u,h,L,Z,y,R,p,J){return h===null?new b("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:h,TopBannerImageTextIconButtonedLayoutViewModel:Z}):[H_a(u,h,p,R,function(O){var f=O.slotId;O=J(O);var D=Z.adLayoutLoggingData,c=new jM([new z2(Z),new WA(y)]);f=$k(L.N.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",f);var I={layoutId:f,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",LI:"core"};return{layoutId:f,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
Np:new Map,layoutExitNormalTriggers:[new BT(L.G,p)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:"core",clientMetadata:c,oP:O(I),adLayoutLoggingData:D}})]};
V4L=function(u,h,L,Z,y,R){if(!R)for(h=g.C(h),R=h.next();!R.done;R=h.next())R=R.value,rE(u,R.renderer,R.config.adPlacementConfig.kind);u=Array.from(u.values()).filter(function(D){return z3V(D)});
h=[];R=g.C(u);for(var p=R.next(),J={};!p.done;J={y3:void 0},p=R.next()){J.y3=p.value;p=g.C(J.y3.AK);for(var O=p.next(),f={};!O.done;f={Ft:void 0},O=p.next())f.Ft=O.value,O=function(D,c){return function(I){return D.Ft.I2(I,c.y3.instreamVideoAdRenderer.elementId,D.Ft.IN)}}(f,J),f.Ft.isContentVideoCompanion?h.push(mjV(L,Z,y,J.y3.instreamVideoAdRenderer.elementId,f.Ft.associatedCompositePlayerBytesLayoutId,f.Ft.adSlotLoggingData,O)):u.length>1?h.push(djn(L,Z,y,J.y3.instreamVideoAdRenderer.elementId,f.Ft.adSlotLoggingData,
function(D,c){return function(I){return D.Ft.I2(I,c.y3.instreamVideoAdRenderer.elementId,D.Ft.IN,D.Ft.associatedCompositePlayerBytesLayoutId)}}(f,J))):h.push(djn(L,Z,y,J.y3.instreamVideoAdRenderer.elementId,f.Ft.adSlotLoggingData,O))}return h};
rE=function(u,h,L){if(h=nWb(h)){h=g.C(h);for(var Z=h.next();!Z.done;Z=h.next())if((Z=Z.value)&&Z.externalVideoId){var y=Be(u,Z.externalVideoId);y.instreamVideoAdRenderer||(y.instreamVideoAdRenderer=Z,y.NQ=L)}else Jk("InstreamVideoAdRenderer without externalVideoId")}};
nWb=function(u){var h=[],L=u.sandwichedLinearAdRenderer&&u.sandwichedLinearAdRenderer.linearAd&&g.n(u.sandwichedLinearAdRenderer.linearAd,DB);if(L)return h.push(L),h;if(u.instreamVideoAdRenderer)return h.push(u.instreamVideoAdRenderer),h;if(u.linearAdSequenceRenderer&&u.linearAdSequenceRenderer.linearAds){u=g.C(u.linearAdSequenceRenderer.linearAds);for(L=u.next();!L.done;L=u.next())L=L.value,g.n(L,DB)&&h.push(g.n(L,DB));return h}return null};
z3V=function(u){if(u.instreamVideoAdRenderer===void 0)return Jk("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var h=g.C(u.AK),L=h.next();!L.done;L=h.next()){L=L.value;if(L.I2===void 0)return!1;if(L.IN===void 0)return Jk("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(u.NQ===void 0||L.HG===void 0||u.NQ!==L.HG&&L.HG!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(u.instreamVideoAdRenderer.elementId===void 0)return Jk("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:u.NQ,"matching APSR kind":L.HG}),!1}return!0};
Be=function(u,h){u.has(h)||u.set(h,{instreamVideoAdRenderer:void 0,NQ:void 0,adVideoId:h,AK:[]});return u.get(h)};
zW=function(u,h,L,Z,y,R,p,J,O){y?Be(u,y).AK.push({u$w:h,HG:L,isContentVideoCompanion:Z,IN:p,associatedCompositePlayerBytesLayoutId:R,adSlotLoggingData:J,I2:O}):Jk("Companion AdPlacementSupportedRenderer without adVideoId")};
m_=function(u){var h=0;u=g.C(u.questions);for(var L=u.next();!L.done;L=u.next())if(L=L.value,L=g.n(L,la)||g.n(L,SD)){var Z=void 0;h+=((Z=L.surveyAdQuestionCommon)==null?void 0:Z.durationMilliseconds)||0}return h};
dE=function(u){var h,L,Z,y,R=((L=g.n((h=u.questions)==null?void 0:h[0],la))==null?void 0:L.surveyAdQuestionCommon)||((y=g.n((Z=u.questions)==null?void 0:Z[0],SD))==null?void 0:y.surveyAdQuestionCommon),p;h=[].concat(g.l(((p=u.playbackCommands)==null?void 0:p.instreamAdCompleteCommands)||[]),g.l((R==null?void 0:R.timeoutCommands)||[]));var J,O,f,D,c,I,A,x,Q,S,v,T,U,z,d,W,t,yn,KV,u1;return{impressionCommands:(J=u.playbackCommands)==null?void 0:J.impressionCommands,errorCommands:(O=u.playbackCommands)==
null?void 0:O.errorCommands,muteCommands:(f=u.playbackCommands)==null?void 0:f.muteCommands,unmuteCommands:(D=u.playbackCommands)==null?void 0:D.unmuteCommands,pauseCommands:(c=u.playbackCommands)==null?void 0:c.pauseCommands,rewindCommands:(I=u.playbackCommands)==null?void 0:I.rewindCommands,resumeCommands:(A=u.playbackCommands)==null?void 0:A.resumeCommands,skipCommands:(x=u.playbackCommands)==null?void 0:x.skipCommands,progressCommands:(Q=u.playbackCommands)==null?void 0:Q.progressCommands,Cmi:(S=
u.playbackCommands)==null?void 0:S.clickthroughCommands,fullscreenCommands:(v=u.playbackCommands)==null?void 0:v.fullscreenCommands,activeViewViewableCommands:(T=u.playbackCommands)==null?void 0:T.activeViewViewableCommands,activeViewMeasurableCommands:(U=u.playbackCommands)==null?void 0:U.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(z=u.playbackCommands)==null?void 0:z.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(d=u.playbackCommands)==
null?void 0:(W=d.activeViewTracking)==null?void 0:W.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(t=u.playbackCommands)==null?void 0:(yn=t.activeViewTracking)==null?void 0:yn.activeViewAudioMeasurableCommands,endFullscreenCommands:(KV=u.playbackCommands)==null?void 0:KV.endFullscreenCommands,abandonCommands:(u1=u.playbackCommands)==null?void 0:u1.abandonCommands,completeCommands:h}};
wEl=function(u,h,L,Z,y,R,p){return function(J,O){return st1(u,O.slotId,J,R,function(f,D){var c=O.layoutId;f=p(f);return Ve(h,c,D,y,f,"LAYOUT_TYPE_SURVEY",[new Od(L),Z],L.adLayoutLoggingData)})}};
$ji=function(u,h,L,Z,y,R,p){if(!e3n(u))return new b("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:u});var J=u.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[aSl(R,h,L,Z,function(O){var f=O.slotId;O=p(O);f=$k(y.N.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",f);var D={layoutId:f,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",LI:"core"},c=new vT(y.G,Z);return{layoutId:f,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Np:new Map,layoutExitNormalTriggers:[c],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:"core",clientMetadata:new jM([new f6(J)]),oP:O(D)}})]};
e3n=function(u){u=g.n(u==null?void 0:u.additionalPlayerOverlay,t4l);if(!u)return!1;var h=u.slidingMessages;return u.title&&h&&h.length!==0?!0:!1};
Fv1=function(u,h,L,Z,y){var R;if((R=u.playerOverlay)==null||!R.instreamSurveyAdRenderer)return function(){return[]};
if(!i_Y(u))return function(){return new b("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:u})};
var p=u.playerOverlay.instreamSurveyAdRenderer,J=m_(p);return J<=0?function(){return new b("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:p})}:function(O,f){var D=Wvn(O,L,Z,function(c){var I=c.slotId;
c=f(c);var A=dE(p);I=$k(y.N.get(),"LAYOUT_TYPE_SURVEY",I);var x={layoutId:I,layoutType:"LAYOUT_TYPE_SURVEY",LI:"core"},Q=new vT(y.G,Z),S=new mZ(y.G,I),v=new a0(y.G,I),T=new kQj(y.G);return{layoutId:I,layoutType:"LAYOUT_TYPE_SURVEY",Np:new Map,layoutExitNormalTriggers:[Q,T],layoutExitSkipTriggers:[S],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[v],Pj:[],LI:"core",clientMetadata:new jM([new Je(p),new WA(h),new zP(J/1E3),new n6(A)]),oP:c(x),adLayoutLoggingData:p.adLayoutLoggingData}});
O=$ji(u,L,D.slotId,Z,y,O,f);return O instanceof b?O:[D].concat(g.l(O))}};
haj=function(u,h,L,Z,y,R,p){p=p===void 0?!1:p;var J=[];try{var O=[];if(L.renderer.linearAdSequenceRenderer)var f=function(Q){Q=b_R(Q.slotId,L,h,y(Q),Z,R,p);O=Q.KXX;return Q.XK};
else if(L.renderer.instreamVideoAdRenderer)f=function(Q){var S=Q.slotId;Q=y(Q);var v=p,T=L.config.adPlacementConfig,U=EWi(T),z=U.Xh,d=U.rl;U=L.renderer.instreamVideoAdRenderer;var W;if(U==null?0:(W=U.playerOverlay)==null?0:W.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var t=n0(U,v);W=Math.min(z+t.videoLengthSeconds*1E3,d);v=new Cm(0,[t.videoLengthSeconds]);d=t.videoLengthSeconds;var yn=t.playerVars,KV=t.instreamAdPlayerOverlayRenderer,u1=t.playerOverlayLayoutRenderer,
w=t.adVideoId,k=kRe(L),M=t.Np;t=t.CA;var e=U==null?void 0:U.adLayoutLoggingData;U=U==null?void 0:U.sodarExtensionData;S=$k(h.N.get(),"LAYOUT_TYPE_MEDIA",S);var sj={layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA",LI:"core"};return{layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA",Np:M,layoutExitNormalTriggers:[new qy(h.G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:"core",clientMetadata:new jM([new uS(Z),new QO(d),new lS(yn),new vU(z),new qt(W),KV&&new jN(KV),
u1&&new he(u1),new WA(T),new gr(w),new F4(v),new Ud(k),U&&new Xz(U),new PU({current:null}),new Y$({}),new eN(t)].filter(gWV)),oP:Q(sj),adLayoutLoggingData:e}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var D=u4Y(u,Z,L.adSlotLoggingData,f);J.push(D);for(var c=g.C(O),I=c.next();!I.done;I=c.next()){var A=I.value,x=A(u,y);if(x instanceof b)return x;J.push.apply(J,g.l(x))}}catch(Q){return new b(Q,{errorMessage:Q.message,AdPlacementRenderer:L,numberOfSurveyRenderers:j9R(L)})}return J};
j9R=function(u){u=(u.renderer.linearAdSequenceRenderer||{}).linearAds;return u!=null&&u.length?u.filter(function(h){var L,Z;return((L=g.n(h,DB))==null?void 0:(Z=L.playerOverlay)==null?void 0:Z.instreamSurveyAdRenderer)!=null}).length:0};
b_R=function(u,h,L,Z,y,R,p){var J=h.config.adPlacementConfig,O=EWi(J),f=O.Xh,D=O.rl;O=(h.renderer.linearAdSequenceRenderer||{}).linearAds;if(O==null||!O.length)throw new TypeError("Expected linear ads");var c=[],I={aO:f,Nv:0,BoI:c};O=O.map(function(x){return Lpn(u,x,I,L,Z,J,y,D,p)}).map(function(x,Q){Q=new Cm(Q,c);
return x(Q)});
var A=O.map(function(x){return x.zf});
return{XK:Z7a(L,u,f,A,J,kRe(h),Z,D,R),KXX:O.map(function(x){return x.l$d})}};
Lpn=function(u,h,L,Z,y,R,p,J,O){var f=n0(g.n(h,DB),O),D=L.aO,c=L.Nv,I=Math.min(D+f.videoLengthSeconds*1E3,J);L.aO=I;L.Nv++;L.BoI.push(f.videoLengthSeconds);var A,x,Q=(A=g.n(h,DB))==null?void 0:(x=A.playerOverlay)==null?void 0:x.instreamSurveyAdRenderer;if(f.adVideoId==="nPpU29QrbiU"&&Q==null)throw new TypeError("Survey slate media has no survey overlay");return function(S){He(f.playerVars,S);var v,T,U=f.videoLengthSeconds,z=f.playerVars,d=f.Np,W=f.CA,t=f.instreamAdPlayerOverlayRenderer,yn=f.playerOverlayLayoutRenderer,
KV=f.adVideoId,u1=(v=g.n(h,DB))==null?void 0:v.adLayoutLoggingData;v=(T=g.n(h,DB))==null?void 0:T.sodarExtensionData;T=$k(Z.N.get(),"LAYOUT_TYPE_MEDIA",u);var w={layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA",LI:"adapter"};S={layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA",Np:d,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:"adapter",clientMetadata:new jM([new uS(p),new QO(U),new lS(z),new vU(D),new qt(I),new TP(c),new PU({current:null}),
t&&new jN(t),yn&&new he(yn),new WA(R),new gr(KV),new F4(S),v&&new Xz(v),Q&&new wQ(Q),new Y$({}),new eN(W)].filter(gWV)),oP:y(w),adLayoutLoggingData:u1};U=Fv1(g.n(h,DB),R,p,S.layoutId,Z);return{zf:S,l$d:U}}};
n0=function(u,h){if(!u)throw new TypeError("Expected instream video ad renderer");if(!u.playerVars)throw new TypeError("Expected player vars in url encoded string");var L=jp(u.playerVars),Z=Number(L.length_seconds);if(isNaN(Z))throw new TypeError("Expected valid length seconds in player vars");var y=Number(u.trimmedMaxNonSkippableAdDurationMs);Z=isNaN(y)?Z:Math.min(Z,y/1E3);y=u.playerOverlay||{};y=y.instreamAdPlayerOverlayRenderer===void 0?null:y.instreamAdPlayerOverlayRenderer;var R=u.playerOverlay||
{};R=R.playerOverlayLayoutRenderer===void 0?null:R.playerOverlayLayoutRenderer;var p=L.video_id;p||(p=(p=u.externalVideoId)?p:void 0);if(!p)throw new TypeError("Expected valid video id in IVAR");if(h&&Z===0){var J;h=(J=yiV[p])!=null?J:Z}else h=Z;return{playerVars:L,videoLengthSeconds:h,instreamAdPlayerOverlayRenderer:y,playerOverlayLayoutRenderer:R,adVideoId:p,Np:u.pings?lW(u.pings):new Map,CA:Qd(u.pings)}};
kRe=function(u){u=Number(u.driftRecoveryMs);return isNaN(u)||u<=0?null:u};
EWi=function(u){var h=u.adTimeOffset||{};u=h.offsetEndMilliseconds;h=Number(h.offsetStartMilliseconds);if(isNaN(h))throw new TypeError("Expected valid start offset");u=Number(u);if(isNaN(u))throw new TypeError("Expected valid end offset");return{Xh:h,rl:u}};
Rae=function(u){var h,L=(h=hl(u.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:h.current;if(!L)return null;h=hl(u.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var Z=u.layoutId,y=hl(u.clientMetadata,"metadata_type_content_cpn"),R=hl(u.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),p=hl(u.clientMetadata,"metadata_type_player_underlay_renderer"),J=hl(u.clientMetadata,"metadata_type_ad_placement_config"),O=hl(u.clientMetadata,"metadata_type_video_length_seconds");
var f=Ed(u.clientMetadata,"metadata_type_layout_enter_ms")&&Ed(u.clientMetadata,"metadata_type_layout_exit_ms")?(hl(u.clientMetadata,"metadata_type_layout_exit_ms")-hl(u.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Kv:Z,contentCpn:y,Ex:L,RN:h,instreamAdPlayerOverlayRenderer:R,instreamAdPlayerUnderlayRenderer:p,adPlacementConfig:J,videoLengthSeconds:O,vZ:f,inPlayerLayoutId:hl(u.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:hl(u.clientMetadata,"metadata_type_linked_in_player_slot_id")}};
Jii=function(u,h,L,Z,y,R,p,J,O,f,D,c,I,A,x){Z=DL(Z,"SLOT_TYPE_PLAYER_BYTES");u=pAV(y,u,p,L,Z,O,f);if(u instanceof b)return u;var Q;f=(Q=hl(u.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:Q.layoutId;if(!f)return new b("Invalid adNotify layout");h=Kps(f,y,R,L,J,h,O,D,c,I,A,x,p);return h instanceof b?h:[u].concat(g.l(h))};
Kps=function(u,h,L,Z,y,R,p,J,O,f,D,c,I){L=O7w(h,L,Z,R,p,J,O,f,D,c,I);if(L instanceof b)return L;u=fAV(h,u,p,y,L);return u instanceof b?u:[].concat(g.l(u.Pr),[u.lQ])};
cia=function(u,h,L,Z,y,R,p,J,O,f,D,c,I,A){h=O7w(u,h,L,y,R,J,O,f,D,c,I,A);if(h instanceof b)return h;u=DQl(u,L,R,p,Z,J.bP,h);return u instanceof b?u:u.Pr.concat(u.lQ)};
O7w=function(u,h,L,Z,y,R,p,J,O,f,D,c){var I=wE(Z,L,f);return I instanceof uN?new b(I):f.D.L().experiments.tB("html5_refactor_in_player_slot_generation")?function(A){var x=new Cm(0,[I.Jh]);A=IAf(h,I.layoutId,I.EF,L,eD(I.playerVars,I.XM,R,O,x),I.Jh,y,x,p(A),J.get(I.EF.externalVideoId),c);x=[];if(I.EF.playerOverlay.instreamAdPlayerOverlayRenderer){var Q=Rae(A);if(!Q)return Jk("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,A),{layout:A,Pr:[]};
x=[Ain(u,Q.contentCpn,Q.Kv,function(v){return a4(h,v.slotId,"core",Q,KE(D,v))},Q.inPlayerSlotId)].concat(g.l(x));
if(Q.instreamAdPlayerUnderlayRenderer&&$3(f)){var S=Q.instreamAdPlayerUnderlayRenderer;x=[xQj(u,Q.contentCpn,Q.Kv,function(v){return Pcn(h,v.slotId,S,Q.adPlacementConfig,Q.Kv,KE(D,v))})].concat(g.l(x))}}return{layout:A,
Pr:x}}:function(A){var x=new Cm(0,[I.Jh]);
return{layout:IAf(h,I.layoutId,I.EF,L,eD(I.playerVars,I.XM,R,O,x),I.Jh,y,x,p(A),J.get(I.EF.externalVideoId),c),Pr:[]}}};
wE=function(u,h,L){if(!u.playerVars)return new uN("No playerVars available in InstreamVideoAdRenderer.");var Z,y;if(u.elementId==null||u.playerVars==null||u.playerOverlay==null||((Z=u.playerOverlay)==null?void 0:Z.instreamAdPlayerOverlayRenderer)==null&&((y=u.playerOverlay)==null?void 0:y.playerOverlayLayoutRenderer)==null||u.pings==null||u.externalVideoId==null)return new uN("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:u});Z=jp(u.playerVars);y=Number(Z.length_seconds);
isNaN(y)&&(y=0,Jk("Expected valid length seconds in player vars but got NaN"));if(L.w1(h.kind==="AD_PLACEMENT_KIND_START")){if(u.layoutId===void 0)return new uN("Expected server generated layout ID in instreamVideoAdRenderer");h=u.layoutId}else h=u.elementId;return{layoutId:h,EF:u,playerVars:Z,XM:u.playerVars,Jh:y}};
eD=function(u,h,L,Z,y){u.iv_load_policy=Z;h=jp(h);if(h.cta_conversion_urls)try{u.cta_conversion_urls=JSON.parse(h.cta_conversion_urls)}catch(R){Jk(R)}L.KV&&(u.ctrl=L.KV);L.QK&&(u.ytr=L.QK);L.Eb&&(u.ytrcc=L.Eb);L.isMdxPlayback&&(u.mdx="1");u.vvt&&(u.vss_credentials_token=u.vvt,L.Mv&&(u.vss_credentials_token_type=L.Mv),L.mdxEnvironment&&(u.mdx_environment=L.mdxEnvironment));He(u,y);return u};
Ccf=function(u){var h=new Map;u=g.C(u);for(var L=u.next();!L.done;L=u.next())(L=L.value.renderer.remoteSlotsRenderer)&&L.hostElementId&&h.set(L.hostElementId,L);return h};
tE=function(u){return u.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"};
M7V=function(u){return u!=null};
qob=function(u,h,L,Z,y,R,p,J,O,f,D,c,I,A){for(var x=[],Q=g.C(u),S=Q.next();!S.done;S=Q.next())if(S=S.value,!fSw(S)&&!PBe(S)){var v=tE(S)&&!!S.slotEntryTrigger.beforeContentVideoIdStartedTrigger,T=O.w1(v),U=i7R(S,f,Z,L.Ea,T);if(U instanceof b)return U;var z=void 0,d={slotId:S.adSlotMetadata.slotId,slotType:S.adSlotMetadata.slotType,slotPhysicalPosition:(z=S.adSlotMetadata.slotPhysicalPosition)!=null?z:1,LI:"core",slotEntryTrigger:U.slotEntryTrigger,slotFulfillmentTriggers:U.slotFulfillmentTriggers,
slotExpirationTriggers:U.slotExpirationTriggers},W=g.n(S.fulfillmentContent.fulfilledLayout,Pe);if(W){if(!x3(W))return new b("Invalid PlayerBytesAdLayoutRenderer");z=c&&!(tE(S)&&S.slotEntryTrigger.beforeContentVideoIdStartedTrigger);U=U.slotFulfillmentTriggers.some(function(t){return t instanceof T$});
T=z?Q9Y(d,S.adSlotMetadata.triggerEvent,W,L,Z,R,f,u,T,I,U,A):lAV(d,S.adSlotMetadata.triggerEvent,W,h,L,Z,y,R,p,J,O,f,u,D,T,S.adSlotMetadata.triggeringSourceLayoutId);if(T instanceof b)return T;U=[];tE(S)&&U.push(new Fz({B8:tE(S)&&!!S.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));z&&U.push(new Y$({}));L.bP&&U.push(new sd({}));U.push(new te(v));S=Object.assign({},d,{clientMetadata:new jM(U),fulfilledLayout:T.layout,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});x.push.apply(x,g.l(T.Pr));
x.push(S)}else if(v=g.n(S.fulfillmentContent.fulfilledLayout,ia)){if(!O_n(v))return new b("Invalid PlayerUnderlayAdLayoutRenderer");v=Soe(v,Z,L.Ea,R,d,S.adSlotMetadata.triggerEvent,S.adSlotMetadata.triggeringSourceLayoutId);if(v instanceof b)return v;S=Object.assign({},d,{clientMetadata:new jM([]),fulfilledLayout:v,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});x.push(S)}else if(v=g.n(S.fulfillmentContent.fulfilledLayout,cCe)){if(!h3n(v))return new b("Invalid AboveFeedAdLayoutRenderer");v=
XAl(v,Z,L.Ea,R,d,S.adSlotMetadata.triggerEvent,S.adSlotMetadata.triggeringSourceLayoutId);if(v instanceof b)return v;S=Object.assign({},d,{clientMetadata:new jM([]),fulfilledLayout:v,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});x.push(S)}else if(v=g.n(S.fulfillmentContent.fulfilledLayout,ISb)){if(!WT(v.adLayoutMetadata)||!g.n(v.renderingContent,Fc))return new b("Invalid BelowPlayerAdLayoutRenderer");v=XAl(v,Z,L.Ea,R,d,S.adSlotMetadata.triggerEvent,S.adSlotMetadata.triggeringSourceLayoutId);
if(v instanceof b)return v;S=Object.assign({},d,{clientMetadata:new jM([]),fulfilledLayout:v,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});x.push(S)}else if(v=g.n(S.fulfillmentContent.fulfilledLayout,ACa)){if(!WT(v.adLayoutMetadata)||!g.n(v.renderingContent,Qe))return new b("Invalid PlayerBytesSequenceItemAdLayoutRenderer");v=vEf(v,Z,L.Ea,R,d,S.adSlotMetadata.triggerEvent);if(v instanceof b)return v;S=Object.assign({},d,{clientMetadata:new jM([]),fulfilledLayout:v,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});
x.push(S)}else return new b("Unable to retrieve a client slot ["+d.slotType+"] from a given AdSlotRenderer")}return x};
vEf=function(u,h,L,Z,y,R){var p={layoutId:u.adLayoutMetadata.layoutId,layoutType:u.adLayoutMetadata.layoutType,LI:"core"};h=We(u,h,L);return h instanceof b?h:Object.assign({},p,{renderingContent:u.renderingContent,Np:new Map([["impression",Trj(u)]])},h,{oP:KE(Z,y)(p),clientMetadata:new jM([new WA(Fb(R))]),adLayoutLoggingData:u.adLayoutMetadata.adLayoutLoggingData})};
XAl=function(u,h,L,Z,y,R,p){var J={layoutId:u.adLayoutMetadata.layoutId,layoutType:u.adLayoutMetadata.layoutType,LI:"core"};h=We(u,h,L);if(h instanceof b)return h;L=[];L.push(new WA(Fb(R)));R==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&p!==void 0&&L.push(new DX(p));return Object.assign({},J,{renderingContent:u.renderingContent,Np:new Map([["impression",Trj(u)]])},h,{oP:KE(Z,y)(J),clientMetadata:new jM(L),adLayoutLoggingData:u.adLayoutMetadata.adLayoutLoggingData})};
Soe=function(u,h,L,Z,y,R,p){if(u.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(p=g.n(u.renderingContent,C0))if(p=g.n(p.sidePanel,Kv1)){var J={layoutId:u.adLayoutMetadata.layoutId,layoutType:u.adLayoutMetadata.layoutType,LI:"core"};h=We(u,h,L);u=h instanceof b?h:Object.assign({},J,{renderingContent:u.renderingContent,Np:new Map([["impression",p.impressionPings||[]],["resume",p.resumePings||[]]])},h,{oP:KE(Z,y)(J),clientMetadata:new jM([new WA(Fb(R))]),adLayoutLoggingData:u.adLayoutMetadata.adLayoutLoggingData})}else u=
new b("DismissablePanelTextPortraitImageRenderer is missing");else u=new b("SqueezebackPlayerSidePanelRenderer is missing");else u.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.n(u.renderingContent,yCf)?(p={layoutId:u.adLayoutMetadata.layoutId,layoutType:u.adLayoutMetadata.layoutType,LI:"core"},h=We(u,h,L),u=h instanceof b?h:Object.assign({},p,{renderingContent:u.renderingContent,Np:new Map},h,{oP:KE(Z,y)(p),clientMetadata:new jM([new WA(Fb(R))]),adLayoutLoggingData:u.adLayoutMetadata.adLayoutLoggingData})):
u=new b("CounterfactualRenderer is missing"):u.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?u=new b("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):u.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?u=new b("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):u.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.n(u.renderingContent,MU)?(R={layoutId:u.adLayoutMetadata.layoutId,layoutType:u.adLayoutMetadata.layoutType,
LI:"core"},h=We(u,h,L),u=h instanceof b?h:p?Object.assign({},R,{renderingContent:u.renderingContent,Np:new Map},h,{oP:KE(Z,y)(R),clientMetadata:new jM([new DX(p)]),adLayoutLoggingData:u.adLayoutMetadata.adLayoutLoggingData}):new b("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):u=new b("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):u.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.n(u.renderingContent,R3Y)?
(R={layoutId:u.adLayoutMetadata.layoutId,layoutType:u.adLayoutMetadata.layoutType,LI:"core"},h=We(u,h,L),u=h instanceof b?h:Object.assign({},R,{renderingContent:u.renderingContent,Np:new Map([])},h,{oP:KE(Z,y)(R),adLayoutLoggingData:u.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new jM([])})):u=new b("AdsEngagementPanelSectionListViewModel is missing"):u=new b("LayoutType ["+u.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return u};
Q9Y=function(u,h,L,Z,y,R,p,J,O,f,D,c){if((c==null?void 0:c.UW)===void 0||(c==null?void 0:c.V_)===void 0)return new b("Cached ad break range from cue point is missing");var I=We(L,y,Z.Ea);if(I instanceof b)return I;I={layoutExitMuteTriggers:[],layoutExitNormalTriggers:I.layoutExitNormalTriggers,layoutExitSkipTriggers:[],Pj:[],layoutExitUserInputSubmittedTriggers:[]};if(g.n(L.renderingContent,DB))return u=YoR(u,h,L,I,y,R,J,O,Z.Ea,p,c.UW,c.V_),u instanceof b?u:u.Si===void 0?new b("Expecting associatedInPlayerSlot for single DAI media layout"):
{layout:u.layout,Pr:[u.Si]};var A=g.n(L.renderingContent,ZB);if(A){if(!WT(L.adLayoutMetadata))return new b("Invalid ad layout metadata");if(!f0(A))return new b("Invalid sequential layout");A=A.sequentialLayouts.map(function(x){return x.playerBytesAdLayoutRenderer});
u=oEs(u,h,L,I,A,y,Z,R,p,O,J,f,c.UW,c.V_,D);return u instanceof b?u:{layout:u.ZH,Pr:u.Pr}}return new b("Not able to convert a sequential layout")};
oEs=function(u,h,L,Z,y,R,p,J,O,f,D,c,I,A,x){var Q=Nrf(y,I,A);if(Q instanceof b)return Q;var S=[],v=[];Q=g.C(Q);for(var T=Q.next();!T.done;T=Q.next()){var U=T.value;T=u;var z=y[U.Nv],d=U,W=h;U=R;var t=p,yn=J,KV=O,u1=f,w=D,k=ba(z);if(k instanceof b)T=k;else{var M={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,LI:"adapter"};d=UQL(W,z,d,U);d instanceof b?T=d:(T=Object.assign({},M,Eu,{Np:k,renderingContent:z.renderingContent,clientMetadata:new jM(d),oP:KE(yn,T)(M),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData}),
T=(z=k3(w,T,U,t.Ea,yn,KV,u1,void 0,!0))?z instanceof b?z:{layout:T,Si:z}:new b("Expecting associatedInPlayerSlot"))}if(T instanceof b)return T;S.push(T.layout);v.push(T.Si)}y={layoutId:L.adLayoutMetadata.layoutId,layoutType:L.adLayoutMetadata.layoutType,LI:"core"};h=[new Ud(Number(L.driftRecoveryMs)),new vU(I),new qt(A),new WA(Fb(h)),new $$(c),new Y$({})];x&&h.push(new bS({}));return{ZH:Object.assign({},y,Z,{Ba:S,Np:new Map,clientMetadata:new jM(h),oP:KE(J,u)(y)}),Pr:v}};
YoR=function(u,h,L,Z,y,R,p,J,O,f,D,c){if(!x3(L))return new b("Invalid PlayerBytesAdLayoutRenderer");var I=ba(L);if(I instanceof b)return I;var A={layoutId:L.adLayoutMetadata.layoutId,layoutType:L.adLayoutMetadata.layoutType,LI:"core"},x=g.n(L.renderingContent,DB);if(!x)return new b("Invalid rendering content for DAI media layout");x=n0(x,!1);D={bT:x,Nv:0,aO:D,To:Math.min(D+x.videoLengthSeconds*1E3,c),Z2:new Cm(0,[x.videoLengthSeconds])};var Q;c=(Q=Number(L.driftRecoveryMs))!=null?Q:void 0;h=UQL(h,
L,D,y,c);if(h instanceof b)return h;u=Object.assign({},A,Z,{Np:I,renderingContent:L.renderingContent,clientMetadata:new jM(h),oP:KE(R,u)(A),adLayoutLoggingData:L.adLayoutMetadata.adLayoutLoggingData});return(y=k3(p,u,y,O,R,f,J,void 0,!0))?y instanceof b?y:{layout:u,Si:y}:new b("Expecting associatedInPlayerSlot")};
lAV=function(u,h,L,Z,y,R,p,J,O,f,D,c,I,A,x,Q){var S=We(L,R,y.Ea);if(S instanceof b)return S;if(g.n(L.renderingContent,DB)){O=G2w([L],y,O);if(O instanceof b)return O;if(O.length!==1)return new b("Only expected one media layout.");u=H7n(u,h,L,S,O[0],void 0,"core",Z,R,p,J,f,I,A,x,y.Ea,c,void 0,Q);return u instanceof b?u:{layout:u.layout,Pr:u.Si?[u.Si]:[]}}var v=g.n(L.renderingContent,ZB);if(v){if(!WT(L.adLayoutMetadata))return new b("Invalid ad layout metadata");if(!f0(v))return new b("Invalid sequential layout");
v=v.sequentialLayouts.map(function(T){return T.playerBytesAdLayoutRenderer});
u=riY(u,h,L.adLayoutMetadata,S,v,Z,R,y,O,p,J,f,D,c,x,I,A,Q);return u instanceof b?u:{layout:u.ZH,Pr:u.Pr}}return new b("Not able to convert a sequential layout")};
riY=function(u,h,L,Z,y,R,p,J,O,f,D,c,I,A,x,Q,S,v){var T=new kE({current:null}),U=G2w(y,J,O);if(U instanceof b)return U;O=[];for(var z=[],d=void 0,W=0;W<y.length;W++){var t=y[W];if(g.n(t.renderingContent,DB)){d=TK(I)&&YG(I)?U[W+1]:void 0;d=H7n(u,h,t,Eu,U[W],d,"adapter",R,p,f,D,c,Q,S,x,J.Ea,A,T,v);if(d instanceof b)return d;O.push(d.layout);d.Si&&z.push(d.Si);d=U[W]}else if(g.n(t.renderingContent,ce)){var yn=u,KV=D;if(x3(t)){var u1=g.n(t.renderingContent,ce);if(u1&&u1.playerVars!==void 0){var w={layoutId:t.adLayoutMetadata.layoutId,
layoutType:t.adLayoutMetadata.layoutType,LI:"adapter"};u1=jp(u1.playerVars);u1.autoplay="1";t=Object.assign({},w,Eu,{renderingContent:t.renderingContent,clientMetadata:new jM([new oP({}),new WA({kind:"AD_PLACEMENT_KIND_START"}),new PU({current:null}),new lS(u1)]),Np:new Map,oP:KE(KV,yn)(w),adLayoutLoggingData:t.adLayoutMetadata.adLayoutLoggingData})}else t=new b("Invalid ad intro renderer")}else t=new b("Invalid PlayerBytesAdLayoutRenderer");if(t instanceof b)return t;O.push(t)}else if(g.n(t.renderingContent,
yE))if(S){t=Brf(u,t,D,Fb(h),d);if(t instanceof b)return t;O.push(t);t=k3(Q,t,p,J.Ea,D,A,x,T,!1);if(t instanceof b)return t;if(t)z.push(t);else return new b("Not able to retrieve InPlayer slot for endcap")}else{a:{yn=t.adLayoutMetadata.layoutId;KV=g.C(R);for(w=KV.next();!w.done;w=KV.next()){w=w.value;var k=u1=void 0,M=((u1=w.renderer)==null?void 0:(k=u1.linearAdSequenceRenderer)==null?void 0:k.linearAds)||[];u1=g.C(M);for(k=u1.next();!k.done;k=u1.next())if((k=g.n(k.value,yE))&&k.inPlayerSlotId!==void 0&&
k.inPlayerLayoutId!==void 0&&k.associatedPlayerBytesLayoutId!==void 0&&k.associatedPlayerBytesLayoutId===yn){yn={sZ:k,adPlacementConfig:w.config.adPlacementConfig};break a}}yn=new b("Not able to find associated InPlayer slot for endcap")}if(yn instanceof b)return yn;t=Brf(u,t,D,yn.adPlacementConfig,d);if(t instanceof b)return t;O.push(t);t=zas(t.layoutId,A,p,yn,T,D);if(t instanceof b)return t;z.push(t)}}h={layoutId:L.layoutId,layoutType:L.layoutType,LI:"core"};return{ZH:Object.assign({},h,Z,{Ba:O,
Np:new Map,clientMetadata:new jM([T]),oP:KE(D,u)(h)}),Pr:z}};
H7n=function(u,h,L,Z,y,R,p,J,O,f,D,c,I,A,x,Q,S,v,T){if(!x3(L))return new b("Invalid PlayerBytesAdLayoutRenderer");var U=ba(L);if(U instanceof b)return U;p={layoutId:L.adLayoutMetadata.layoutId,layoutType:L.adLayoutMetadata.layoutType,LI:p};a:{var z=L.adLayoutMetadata.layoutId,d=g.n(L.renderingContent,DB);if(d&&L0(d)){var W=[];if(A)W.push(new WA(Fb(h)));else{b:{J=g.C(J);for(h=J.next();!h.done;h=J.next()){h=h.value;var t=nWb(h.renderer)||[],yn=g.C(t);for(t=yn.next();!t.done;t=yn.next())if(t=t.value,
t.associatedPlayerBytesLayoutId===z){t.associatedPlayerBytesLayoutId?(J=t.playerOverlay,yn=J!==void 0&&J.playerOverlayLayoutRenderer!==void 0&&J.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&J.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,J=J!==void 0&&J.instreamAdPlayerOverlayRenderer!==void 0&&J.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&J.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||yn):J=!1;h=J?{instreamVideoAdRenderer:t,adPlacementConfig:h.config.adPlacementConfig}:
new b("Invalid InPlayer shim");break b}}h=new b("Not able to find associated InPlayer slot")}if(h instanceof b){R=h;break a}J=h.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;t=h.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var KV;yn=(KV=J==null?void 0:J.inPlayerSlotId)!=null?KV:t==null?void 0:t.inPlayerSlotId;var u1;KV=(u1=J==null?void 0:J.inPlayerLayoutId)!=null?u1:t==null?void 0:t.inPlayerLayoutId;if(yn===void 0){R=new b("InPlayer shim slot id is undefined");
break a}if(KV===void 0){R=new b("InPlayer shim layout id is undefined");break a}W.push(new cU(KV),new Ae(yn),new TP(y.Z2.adPodIndex),new WA(h.adPlacementConfig));J&&W.push(new jN(J));t&&W.push(new he(t))}W.push(new F4(y.Z2),new gr(d.externalVideoId),new uS(O),new n6({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands,progressCommands:d.adVideoProgressCommands}),new lS(y.yq),new PU({current:null}),new QO(y.prd.Jh),new eN(Qd(d.pings)),new bc(y.Z2.adPodIndex));
T&&W.push(new DX(T));(y=mQe(z,I))&&W.push(new ZX(y));R&&W.push(new SN(R.yq));d.adNextParams&&W.push(new Vv(d.adNextParams));d.clickthroughEndpoint&&W.push(new n7(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&W.push(new dQ(d.legacyInfoCardVastExtension));d.sodarExtensionData&&W.push(new Xz(d.sodarExtensionData));v&&d.adPodSkipTarget&&d.adPodSkipTarget>0&&(W.push(v),W.push(new Eo(d.adPodSkipTarget)));(R=f.get(d.externalVideoId))&&W.push(new BU(R));R=W}else R=new b("Invalid vod media renderer")}if(R instanceof
b)return R;u=Object.assign({},p,Z,{Np:U,renderingContent:L.renderingContent,clientMetadata:new jM(R),oP:KE(D,u)(p),adLayoutLoggingData:L.adLayoutMetadata.adLayoutLoggingData});L=g.n(L.renderingContent,DB);if(!L||!L0(L))return new b("Invalid meida renderer");c=Be(c,L.externalVideoId);c.instreamVideoAdRenderer=L;c.NQ="AD_PLACEMENT_KIND_START";return A?(O=k3(I,u,O,Q,D,S,x,v,!1),O instanceof b?O:mQe(u.layoutId,I)&&O?{layout:Object.assign({},u,{clientMetadata:new jM(R.concat(new yO(O)))})}:{layout:u,Si:O}):
{layout:u}};
Brf=function(u,h,L,Z,y){if(!x3(h))return new b("Invalid PlayerBytesAdLayoutRenderer");var R=g.n(h.renderingContent,yE);if(!R||R.durationMilliseconds===void 0)return new b("Invalid endcap renderer");var p={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType,LI:"adapter"};Z=[new mf(R.durationMilliseconds),new n6({impressionCommands:void 0,abandonCommands:R.abandonCommands?[{commandExecutorCommand:R.abandonCommands}]:void 0,completeCommands:R.completionCommands}),new WA(Z),
new IP("LAYOUT_TYPE_ENDCAP")];if(y){Z.push(new bc(y.Z2.adPodIndex-1));Z.push(new TP(y.Z2.adPodIndex));var J;Z.push(new Eo((J=y.adPodSkipTarget)!=null?J:-1))}return Object.assign({},p,Eu,{renderingContent:h.renderingContent,clientMetadata:new jM(Z),Np:R.skipPings?new Map([["skip",R.skipPings]]):new Map,oP:KE(L,u)(p),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData})};
k3=function(u,h,L,Z,y,R,p,J,O){u=u.filter(function(D){return D.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&D.adSlotMetadata.triggeringSourceLayoutId===h.layoutId});
if(u.length!==0){if(u.length!==1)return new b("Invalid InPlayer slot association for the given PlayerBytes layout");u=u[0];p=i7R(u,R,L,Z,p);if(p instanceof b)return p;var f;R={slotId:u.adSlotMetadata.slotId,slotType:u.adSlotMetadata.slotType,slotPhysicalPosition:(f=u.adSlotMetadata.slotPhysicalPosition)!=null?f:1,LI:"core",slotEntryTrigger:p.slotEntryTrigger,slotFulfillmentTriggers:p.slotFulfillmentTriggers,slotExpirationTriggers:p.slotExpirationTriggers};f=g.n(u.fulfillmentContent.fulfilledLayout,
Djb);if(!f||!Z_R(f))return new b("Invalid InPlayerAdLayoutRenderer");p={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,LI:"core"};L=We(f,L,Z);if(L instanceof b)return L;Z=[];O&&Z.push(new Y$({}));if(f.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")Z.push.apply(Z,g.l(dQi(u.adSlotMetadata.triggerEvent,h)));else if(f.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")Z.push(new WA(Fb(u.adSlotMetadata.triggerEvent))),J&&Z.push(J);else return new b("Not able to parse an SDF InPlayer layout");
y=Object.assign({},p,L,{renderingContent:f.renderingContent,Np:new Map,oP:KE(y,R)(p),clientMetadata:new jM(Z),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},R,{fulfilledLayout:y,clientMetadata:new jM([])})}};
dQi=function(u,h){var L=[];L.push(new WA(Fb(u)));L.push(new DX(h.layoutId));(u=hl(h.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&L.push(new PU(u));(u=hl(h.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&L.push(new kE(u));(u=hl(h.clientMetadata,"metadata_type_remote_slots_data"))&&L.push(new BU(u));(u=hl(h.clientMetadata,"metadata_type_ad_next_params"))&&L.push(new Vv(u));(u=hl(h.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&L.push(new n7(u));(u=
hl(h.clientMetadata,"metadata_type_ad_pod_info"))&&L.push(new F4(u));(h=hl(h.clientMetadata,"metadata_type_ad_video_id"))&&L.push(new gr(h));return L};
zas=function(u,h,L,Z,y,R){function p(f){return gE(h,f)}
var J=Z.sZ.inPlayerSlotId,O={layoutId:Z.sZ.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",LI:"core"};L={slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,LI:"core",slotEntryTrigger:new SI(p,u),slotFulfillmentTriggers:[new dz(p,J)],slotExpirationTriggers:[new VL(p,J),new BT(p,L)]};u=Object.assign({},O,{layoutExitNormalTriggers:[new vT(p,u)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],Np:new Map,clientMetadata:new jM([new p6(Z.sZ),
new WA(Z.adPlacementConfig),y]),oP:KE(R,L)(O),adLayoutLoggingData:Z.sZ.adLayoutLoggingData});return Object.assign({},L,{clientMetadata:new jM([new GP(u)])})};
mQe=function(u,h){h=g.C(h);for(var L=h.next();!L.done;L=h.next())if(L=L.value,L.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var Z=g.n(L.fulfillmentContent.fulfilledLayout,ia);if(Z&&(Z=g.n(Z.renderingContent,C0))&&Z.associatedPlayerBytesLayoutId===u)return L}};
i7R=function(u,h,L,Z,y){var R=V7e(GW(u.slotEntryTrigger,L,Z),y,u,h);if(R instanceof b)return R;for(var p=[],J=g.C(u.slotFulfillmentTriggers),O=J.next();!O.done;O=J.next()){O=GW(O.value,L,Z);if(O instanceof b)return O;p.push(O)}p=nEj(p,y,u,h);h=[];u=g.C(u.slotExpirationTriggers);for(y=u.next();!y.done;y=u.next()){y=GW(y.value,L,Z);if(y instanceof b)return y;h.push(y)}return{slotEntryTrigger:R,slotFulfillmentTriggers:p,slotExpirationTriggers:h}};
V7e=function(u,h,L,Z){return h&&L.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&u instanceof My?new PT(function(y){return gE(Z,y)},L.adSlotMetadata.slotId):u};
nEj=function(u,h,L,Z){return h&&L.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?u.map(function(y){return y instanceof dz?new wz(function(R){return gE(Z,R)},L.adSlotMetadata.slotId):y}):u};
We=function(u,h,L){for(var Z=[],y=g.C(u.layoutExitNormalTriggers||[]),R=y.next();!R.done;R=y.next()){R=GW(R.value,h,L);if(R instanceof b)return R;Z.push(R)}y=[];R=g.C(u.layoutExitSkipTriggers||[]);for(var p=R.next();!p.done;p=R.next()){p=GW(p.value,h,L);if(p instanceof b)return p;y.push(p)}R=[];p=g.C(u.layoutExitMuteTriggers||[]);for(var J=p.next();!J.done;J=p.next()){J=GW(J.value,h,L);if(J instanceof b)return J;R.push(J)}p=[];u=g.C(u.layoutExitUserInputSubmittedTriggers||[]);for(J=u.next();!J.done;J=
u.next()){J=GW(J.value,h,L);if(J instanceof b)return J;p.push(J)}return{layoutExitNormalTriggers:Z,layoutExitSkipTriggers:y,layoutExitMuteTriggers:R,layoutExitUserInputSubmittedTriggers:p,Pj:[]}};
ba=function(u){var h=g.n(u.renderingContent,DB);if(h==null?0:h.pings)return lW(h.pings);u=g.n(u.renderingContent,yE);return(u==null?0:u.skipPings)?new Map([["skip",u.skipPings]]):new Map};
UQL=function(u,h,L,Z,y){h=g.n(h.renderingContent,DB);if(!h)return new b("Invalid rendering content for DAI media layout");u=[new uS(Z),new QO(L.bT.videoLengthSeconds),new lS(L.bT.playerVars),new vU(L.aO),new qt(L.To),new TP(L.Nv),new WA(Fb(u)),new gr(L.bT.adVideoId),new F4(L.Z2),h.sodarExtensionData&&new Xz(h.sodarExtensionData),new PU({current:null}),new Y$({}),new eN(Qd(h.pings))].filter(M7V);y!==void 0&&u.push(new Ud(y));return u};
Nrf=function(u,h,L){u=u.map(function(O){return n0(g.n(O.renderingContent,DB),!1)});
var Z=u.map(function(O){return O.videoLengthSeconds}),y=Z.map(function(O,f){return new Cm(f,Z)}),R=h,p=L,J=[];
u.forEach(function(O,f){p=Math.min(R+O.videoLengthSeconds*1E3,L);He(O.playerVars,y[f]);J.push({bT:O,aO:R,To:p,Nv:f,Z2:y[f]});R=p});
return J};
G2w=function(u,h,L){for(var Z=[],y=g.C(u),R=y.next();!R.done;R=y.next())if(R=g.n(R.value.renderingContent,DB)){if(!L0(R))return new b("Invalid vod media renderer");Z.push(s9R(R))}y=Z.map(function(c){return c.Jh});
R=[];for(var p=0,J=0;J<u.length;J++){var O=g.n(u[J].renderingContent,DB);if(O){var f=new Cm(p,y),D=eD(Z[p].playerVars,Z[p].XM,h,L,f);R[J]={Z2:f,adPodSkipTarget:O.adPodSkipTarget,prd:Z[p],yq:D};p++}}return R};
s9R=function(u){var h=jp(u.playerVars),L=Number(h.length_seconds);isNaN(L)&&(L=0,Jk("Expected valid length seconds in player vars but got NaN"));return{playerVars:h,XM:u.playerVars,Jh:L}};
Fb=function(u){switch(u){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"}}};
Trj=function(u){if(g.n(u.renderingContent,EL)){var h;return((h=g.n(u.renderingContent,EL))==null?void 0:h.impressionPings)||[]}if(g.n(u.renderingContent,Fc)){var L;return((L=g.n(u.renderingContent,Fc))==null?void 0:L.impressionPings)||[]}if(g.n(u.renderingContent,br)){var Z;return((Z=g.n(u.renderingContent,br))==null?void 0:Z.impressionPings)||[]}return[]};
eaa=function(u,h,L,Z,y,R,p,J,O){var f=L.pings;return f?[wAL(u,R,J,y,function(D){var c=D.slotId;D=O(D);var I=L.adLayoutLoggingData,A=L.progressCommands;c=$k(h.N.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",c);var x={layoutId:c,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",LI:"core"},Q=lW(f),S=[new BT(h.G,R)],v;var T=f==null?void 0:(v=f.activeViewTracking)==null?void 0:v.identifier;return{layoutId:c,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Np:Q,layoutExitNormalTriggers:S,layoutExitSkipTriggers:[],
layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:"core",clientMetadata:new jM([new WA(Z),new eN(Qd(f)),new aP(T),new QO(p/1E3),new n6({progressCommands:A}),new zP(p/1E3)]),oP:D(x),adLayoutLoggingData:I}})]:new b("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:L})};
$Q1=function(u,h,L,Z,y,R,p,J){u=aAj(u,L,R,p,Z,function(O){var f=O.slotId;O=J(O);f=$k(h.N.get(),"LAYOUT_TYPE_FORECASTING",f);var D={layoutId:f,layoutType:"LAYOUT_TYPE_FORECASTING",LI:"core"},c=new Map,I=y.impressionUrls;I&&c.set("impression",I);return{layoutId:f,layoutType:"LAYOUT_TYPE_FORECASTING",Np:c,layoutExitNormalTriggers:[new rz(h.G,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:"core",clientMetadata:new jM([new Nt(y),new WA(L)]),oP:O(D)}});
return u instanceof b?u:[u]};
Wp1=function(u,h,L,Z,y,R,p){return[t7e(u,R,Z,function(J){var O=J.slotId;J=p(J);O=$k(h.N.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",O);var f={layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",LI:"core"};return{layoutId:O,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Np:new Map,layoutExitNormalTriggers:[new BT(h.G,R)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:"core",clientMetadata:new jM([new jN(y),new WA(L)]),oP:J(f),
adLayoutLoggingData:y.adLayoutLoggingData}})]};
b7L=function(u,h,L,Z,y,R,p,J){u=Fpf(u,L,R,p,Z,function(O,f){var D=O.slotId;O=J(O);var c=y.contentSupportedRenderer;c?c.textOverlayAdContentRenderer?(c=$k(h.N.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",D),f=um(h,c,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",y,L,O,jk(h,f,D))):c.enhancedTextOverlayAdContentRenderer?(c=$k(h.N.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",D),f=um(h,c,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",y,L,O,jk(h,f,D))):c.imageOverlayAdContentRenderer?(c=$k(h.N.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
D),f=jk(h,f,D),f.push(new $f(h.G,45E3,c)),f=um(h,c,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",y,L,O,f)):f=new uN("InvideoOverlayAdRenderer without appropriate sub renderer"):f=new uN("InvideoOverlayAdRenderer without contentSupportedRenderer");return f});
return u instanceof b?u:[u]};
gEj=function(u,h,L,Z,y,R,p,J,O){var f=Number(Z.durationMilliseconds);return isNaN(f)?new b("Expected valid duration for AdActionInterstitialRenderer."):function(D){return EEi(h,D.slotId,L,Z,f,{impressionCommands:void 0,abandonCommands:Z.abandonCommands?[{commandExecutorCommand:Z.abandonCommands}]:void 0,completeCommands:Z.completionCommands},Z.skipPings?new Map([["skip",Z.skipPings]]):new Map,p(D),function(c){return k2j(u,c,y,function(I,A){var x=I.slotId;I=p(I);x=$k(h.N.get(),"LAYOUT_TYPE_ENDCAP",
x);return Ve(h,x,A,L,I,"LAYOUT_TYPE_ENDCAP",[new p6(Z),J],Z.adLayoutLoggingData)})},O,R-1,Z.adLayoutLoggingData,R)}};
uz1=function(u,h,L,Z){if(!L.playerVars)return new b("No playerVars available in AdIntroRenderer.");var y=jp(L.playerVars);y.autoplay="1";return function(R){var p=R.slotId;R=Z(R);p=$k(u.N.get(),"LAYOUT_TYPE_MEDIA",p);var J={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",LI:"adapter"};return{Eu:{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",Np:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:"adapter",clientMetadata:new jM([new oP({}),
new WA(h),new PU({current:null}),new lS(y)]),oP:R(J)},yR:[new Xc(u.G,p,["error"])],Fb:[],RI:[],Ag:[]}}};
h7b=function(u,h,L,Z,y,R,p,J,O,f){f=f===void 0?!1:f;var D=m_(y);if(!M4e(y,f))return new b("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:y});if(D<=0)return new b("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:y});var c=wEl(u,h,y,R,L,Z,p);return c instanceof b?c:function(I){return jPR(h,I.slotId,L,D,y,dE(y),p(I),c,J,O)}};
Lf1=function(u,h,L,Z,y,R,p,J){function O(c){return k2j(u,c,Z,f)}
function f(c,I){var A=c.slotId;c=p(c);A=$k(h.N.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",A);return Ve(h,A,I,L,c,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new K6(y),R],y.adLayoutLoggingData)}
if(!Ssi(y))return new b("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:y});var D=y.timeoutSeconds*1E3;return function(c){var I=c.slotId,A={impressionCommands:y.impressionCommands,completeCommands:y.timeoutCommands,skipCommands:y.dismissCommands};c=p(c);I=h$(h,I,L,D,A,new Map,c,O,void 0,LO(h,L,y.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));A=new cU(I.FQ);c=new bc(J);return{Eu:{layoutId:I.layoutId,layoutType:I.layoutType,Np:I.Np,layoutExitNormalTriggers:[],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:I.LI,clientMetadata:new jM([].concat(g.l(I.Gb),[A,c])),oP:I.oP,adLayoutLoggingData:I.adLayoutLoggingData},yR:[],Fb:I.layoutExitMuteTriggers,RI:I.layoutExitUserInputSubmittedTriggers,Ag:I.Pj,Si:I.Si}}};
yes=function(u,h,L,Z,y,R,p,J,O,f,D,c,I,A,x,Q){u=DL(u,"SLOT_TYPE_PLAYER_BYTES");Z=pAV(h,p,Z,y,u,f,D);if(Z instanceof b)return Z;var S;p=(S=hl(Z.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:S.layoutId;if(!p)return new b("Invalid adNotify layout");h=Z6n(p,h,L,y,R,O,J,f,c,I,A,x,Q);return h instanceof b?h:[Z].concat(g.l(h))};
Z6n=function(u,h,L,Z,y,R,p,J,O,f,D,c,I){L=R7a(h,L,Z,R,p,J,O,f,D,c,I);pUn(R)?(Z=Kfl(h,u),u=DL(h.N.get(),"SLOT_TYPE_IN_PLAYER"),R=$k(h.N.get(),"LAYOUT_TYPE_SURVEY",u),J=Z2(h,Z,J),h=[].concat(g.l(J.slotExpirationTriggers),[new ir(h.G,R)]),u=L({slotId:J.slotId,slotType:J.slotType,slotPhysicalPosition:J.slotPhysicalPosition,slotEntryTrigger:J.slotEntryTrigger,slotFulfillmentTriggers:J.slotFulfillmentTriggers,slotExpirationTriggers:h,LI:J.LI},{slotId:u,layoutId:R}),y=u instanceof b?u:{lQ:Object.assign({},
J,{slotExpirationTriggers:h,clientMetadata:new jM([new GP(u.layout)]),adSlotLoggingData:y}),Pr:u.Pr}):y=fAV(h,u,J,y,L);return y instanceof b?y:[].concat(g.l(y.Pr),[y.lQ])};
O61=function(u,h,L,Z,y,R,p,J,O,f,D,c,I,A){h=R7a(u,h,L,y,R,p,O,f,D,c,I,A);pUn(y)?(y=Jew(u,L,p,J),y instanceof b?u=y:(J=DL(u.N.get(),"SLOT_TYPE_IN_PLAYER"),O=$k(u.N.get(),"LAYOUT_TYPE_SURVEY",J),p=[].concat(g.l(y.slotExpirationTriggers),[new ir(u.G,O)]),J=h({slotId:y.slotId,slotType:y.slotType,slotPhysicalPosition:y.slotPhysicalPosition,LI:y.LI,slotEntryTrigger:y.slotEntryTrigger,slotFulfillmentTriggers:y.slotFulfillmentTriggers,slotExpirationTriggers:p},{slotId:J,layoutId:O}),u=J instanceof b?J:{lQ:{slotId:y.slotId,
slotType:y.slotType,slotPhysicalPosition:y.slotPhysicalPosition,slotEntryTrigger:yG(u,L,y.slotId,y.slotEntryTrigger),slotFulfillmentTriggers:R7(u,L,y.slotId,y.slotFulfillmentTriggers),slotExpirationTriggers:p,LI:y.LI,clientMetadata:new jM([new te(pO(L)),new GP(J.layout),new Fz({B8:u.B8(L)})]),adSlotLoggingData:Z},Pr:J.Pr})):u=DQl(u,L,p,J,Z,O.bP,h);return u instanceof b?u:u.Pr.concat(u.lQ)};
pUn=function(u){u=g.C(u);for(var h=u.next();!h.done;h=u.next())if(g.n(h.value,I4))return!0;return!1};
R7a=function(u,h,L,Z,y,R,p,J,O,f,D,c){return function(I,A){if(TK(D)&&YG(D))a:{var x=fXb(Z,L,D);if(x instanceof b)A=x;else{for(var Q=0,S=[],v=[],T=[],U=[],z=[],d=[],W=new C6({current:null}),t=new kE({current:null}),yn=!1,KV=[],u1=0,w=[],k=0;k<Z.length;k++){var M=Z[k],e=g.n(M,DB);if(e){e=wE(e,L,D);if(e instanceof uN){A=new b(e);break a}var sj=new Cm(u1,x),l3=eD(e.playerVars,e.XM,p,f,sj);u1++;w[k]={renderer:M,data:e,Z2:sj,yq:l3}}}u1=-1;for(x=0;x<Z.length;x++)if(k=Z[x],M=g.n(k,ce)){k=uz1(h,L,M,J);if(k instanceof
b){A=k;break a}k=k(I);S.push(k.Eu);v=[].concat(g.l(k.yR),g.l(v));T=[].concat(g.l(k.Fb),g.l(T));k.Si&&(KV=[k.Si].concat(g.l(KV)))}else if(g.n(k,DB))M=w[x],u1=M.data,k=M.Z2,M=M.yq,e=w[x+1],sj=void 0,e&&(sj=e.yq),k=DtR(h,u1.layoutId,u1.EF,L,M,u1.Jh,R,k,J(I),t,O.get(u1.EF.externalVideoId),sj,c),Q++,S.push(k.Eu),v=[].concat(g.l(k.yR),g.l(v)),T=[].concat(g.l(k.Fb),g.l(T)),yn||(d.push(t),yn=!0),u1=(u1=u1.EF.adPodSkipTarget)&&u1>0?u1:-1;else if(M=g.n(k,yE)){k=gEj(u,h,L,M,R,Q,J,t,u1);if(k instanceof b){A=
k;break a}k=k(I);S.push(k.Eu);v=[].concat(g.l(k.yR),g.l(v));T=[].concat(g.l(k.Fb),g.l(T));k.Si&&(KV=[k.Si].concat(g.l(KV)))}else if(M=g.n(k,I4)){if(A===void 0){A=new b("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:M});break a}k=h7b(u,h,L,R,M,W,J,A,Q,af(D,"supports_multi_step_on_desktop"));if(k instanceof b){A=k;break a}k=k(I);S.push(k.Eu);k.Si&&KV.push(k.Si);v=[].concat(g.l(k.yR),g.l(v));T=[].concat(g.l(k.Fb),g.l(T));U=[].concat(g.l(k.RI),g.l(U));
z=[].concat(g.l(k.Ag),g.l(z));d=[W].concat(g.l(d))}else if(k=g.n(k,AE)){k=Lf1(u,h,L,R,k,W,J,Q);if(k instanceof b){A=k;break a}k=k(I);S.push(k.Eu);k.Si&&KV.push(k.Si);T=[].concat(g.l(k.Fb),g.l(T))}else{A=new b("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}A={Ba:S,layoutExitSkipTriggers:v,layoutExitUserInputSubmittedTriggers:U,Pj:z,layoutExitMuteTriggers:T,Gb:d,Pr:KV}}}else a:if(Q=fXb(Z,L,D),Q instanceof b)A=Q;else{S=0;v=[];T=[];U=[];z=[];d=[];W=[];t=new C6({current:null});yn=new kE({current:null});
KV=!1;w=[];u1=-1;x=g.C(Z);for(k=x.next();!k.done;k=x.next())if(k=k.value,g.n(k,ce)){k=uz1(h,L,g.n(k,ce),J);if(k instanceof b){A=k;break a}k=k(I);v.push(k.Eu);T=[].concat(g.l(k.yR),g.l(T));U=[].concat(g.l(k.Fb),g.l(U));k.Si&&(w=[k.Si].concat(g.l(w)))}else if(g.n(k,DB)){u1=wE(g.n(k,DB),L,D);if(u1 instanceof uN){A=new b(u1);break a}k=new Cm(S,Q);k=DtR(h,u1.layoutId,u1.EF,L,eD(u1.playerVars,u1.XM,p,f,k),u1.Jh,R,k,J(I),yn,O.get(u1.EF.externalVideoId),void 0,c);S++;v.push(k.Eu);T=[].concat(g.l(k.yR),g.l(T));
U=[].concat(g.l(k.Fb),g.l(U));KV||(W.push(yn),KV=!0);u1=(u1=u1.EF.adPodSkipTarget)&&u1>0?u1:-1}else if(g.n(k,yE)){k=gEj(u,h,L,g.n(k,yE),R,S,J,yn,u1);if(k instanceof b){A=k;break a}k=k(I);v.push(k.Eu);T=[].concat(g.l(k.yR),g.l(T));U=[].concat(g.l(k.Fb),g.l(U));k.Si&&(w=[k.Si].concat(g.l(w)))}else if(g.n(k,I4)){if(A===void 0){A=new b("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.n(k,I4)});break a}k=h7b(u,h,L,R,g.n(k,I4),t,J,A,S,af(D,"supports_multi_step_on_desktop"));
if(k instanceof b){A=k;break a}k=k(I);v.push(k.Eu);k.Si&&w.push(k.Si);T=[].concat(g.l(k.yR),g.l(T));U=[].concat(g.l(k.Fb),g.l(U));z=[].concat(g.l(k.RI),g.l(z));d=[].concat(g.l(k.Ag),g.l(d));W=[t].concat(g.l(W))}else if(g.n(k,AE)){k=Lf1(u,h,L,R,g.n(k,AE),t,J,S);if(k instanceof b){A=k;break a}k=k(I);v.push(k.Eu);k.Si&&w.push(k.Si);U=[].concat(g.l(k.Fb),g.l(U))}else{A=new b("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}A={Ba:v,layoutExitSkipTriggers:T,layoutExitUserInputSubmittedTriggers:z,
Pj:d,layoutExitMuteTriggers:U,Gb:W,Pr:w}}A instanceof b?I=A:(d=I.slotId,Q=A.Ba,S=A.layoutExitSkipTriggers,v=A.layoutExitMuteTriggers,T=A.layoutExitUserInputSubmittedTriggers,U=A.Gb,I=J(I),z=y?y.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",d=y?y.layoutId:$k(h.N.get(),z,d),W={layoutId:d,layoutType:z,LI:"core"},I={layout:{layoutId:d,layoutType:z,Np:new Map,layoutExitNormalTriggers:[new rz(h.G,d)],layoutExitSkipTriggers:S,layoutExitMuteTriggers:v,layoutExitUserInputSubmittedTriggers:T,Pj:[],LI:"core",
clientMetadata:new jM([new Mt(Q)].concat(g.l(U))),oP:I(W)},Pr:A.Pr});return I}};
fXb=function(u,h,L){var Z=[];u=g.C(u);for(var y=u.next();!y.done;y=u.next())if(y=y.value,g.n(y,DB)){y=wE(g.n(y,DB),h,L);if(y instanceof uN)return new b(y);Z.push(y.Jh)}return Z};
IXw=function(u,h,L,Z,y,R,p,J){if(!M4e(L,J===void 0?!1:J))return new b("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:L});var O=m_(L);if(O<=0)return new b("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:L});var f=new C6({current:null}),D=wEl(u,h,L,f,Z,R,p);return ceY(u,Z,R,O,y,function(c,I){var A=c.slotId,x=dE(L);c=p(c);var Q,S=(Q=LO(h,Z,L.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?Q:
$k(h.N.get(),"LAYOUT_TYPE_MEDIA_BREAK",A);A={layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",LI:"core"};Q=D(S,I);var v=hl(Q.clientMetadata,"metadata_type_fulfilled_layout");v||Jk("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");x=[new WA(Z),new mf(O),new n6(x),f];v&&x.push(new IP(v.layoutType));return{OaI:{layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Np:new Map,layoutExitNormalTriggers:[new rz(h.G,S)],layoutExitSkipTriggers:[new mZ(h.G,
I.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new a0(h.G,I.layoutId)],Pj:[],LI:"core",clientMetadata:new jM(x),oP:c(A)},Paa:Q}})};
AeV=function(u){if(!lSs(u))return!1;var h=g.n(u.adVideoStart,KO);return h?g.n(u.linearAd,DB)&&jD(h)?!0:(Jk("Invalid Sandwich with notify"),!1):!1};
xtl=function(u){if(u.linearAds==null)return!1;u=g.n(u.adStart,KO);return u?jD(u)?!0:(Jk("Invalid LASR with notify"),!1):!1};
PSb=function(u){if(!QtY(u))return!1;u=g.n(u.adStart,KO);return u?jD(u)?!0:(Jk("Invalid LASR with notify"),!1):!1};
J$=function(u,h,L,Z,y,R,p,J,O,f){this.B=u;this.N=h;this.G=L;this.Mi=Z;this.Xo=y;this.X=R;this.FB=p;this.TG=J;this.sX=O;this.loadPolicy=f===void 0?1:f};
TAw=function(u,h,L,Z,y,R,p,J,O,f){var D=[];if(h.length===0&&Z.length===0&&L.length===0)return D;h=h.filter(hE);var c=L.filter(xjn),I=Z.filter(hE),A=new Map,x=Ccf(h),Q=L.some(function(e){var sj;return(e==null?void 0:(sj=e.adSlotMetadata)==null?void 0:sj.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),S=L.some(function(e){var sj;
return(e==null?void 0:(sj=e.adSlotMetadata)==null?void 0:sj.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),v=L.some(function(e){var sj;
return(e==null?void 0:(sj=e.adSlotMetadata)==null?void 0:sj.slotType)==="SLOT_TYPE_IN_PLAYER"}),T=L.some(function(e){var sj,l3;
return(e==null?void 0:(sj=e.adSlotMetadata)==null?void 0:sj.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(e==null?void 0:(l3=e.adSlotMetadata)==null?void 0:l3.slotType)==="SLOT_TYPE_ABOVE_FEED"});
L=L.some(function(e){var sj;return(e==null?void 0:(sj=e.adSlotMetadata)==null?void 0:sj.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"});
if(Q||S||v||T||L)f=qob(c,h,J,y,x,u.Xo.get(),u.loadPolicy,A,u.Mi.get(),u.B.get(),v,p,O,f),f instanceof b?Jk(f,void 0,void 0,{contentCpn:y}):D.push.apply(D,g.l(f));f=g.C(h);for(L=f.next();!L.done;L=f.next())L=L.value,S=CSn(u,A,L,y,R,p,Q,J,x,O,c),S instanceof b?Jk(S,void 0,void 0,{renderer:L.renderer,config:L.config.adPlacementConfig,kind:L.config.adPlacementConfig.kind,contentCpn:y,daiEnabled:p}):D.push.apply(D,g.l(S));MNL(u.Mi.get())||(R=i6f(u,I,y,J,x,A),D.push.apply(D,g.l(R)));if(u.X===null||p&&!J.YC){var U,
z,d;u=J.bP&&h.length===1&&((U=h[0].config)==null?void 0:(z=U.adPlacementConfig)==null?void 0:z.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((d=h[0].renderer)==null?void 0:d.adBreakServiceRenderer);if(!D.length&&!u){var W,t,yn,KV;Jk("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":h.length,contentCpn:y,"first APR kind":(W=h[0])==null?void 0:(t=W.config)==null?void 0:(yn=t.adPlacementConfig)==null?void 0:yn.kind,renderer:(KV=h[0])==null?void 0:
KV.renderer})}return D}U=Z.filter(hE);D.push.apply(D,g.l(V4L(A,U,u.N.get(),u.X,y,Q)));if(!D.length){var u1,w,k,M;Jk("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":h.length,contentCpn:y,daiEnabled:p.toString(),"first APR kind":(u1=h[0])==null?void 0:(w=u1.config)==null?void 0:(k=w.adPlacementConfig)==null?void 0:k.kind,renderer:(M=h[0])==null?void 0:M.renderer})}return D};
i6f=function(u,h,L,Z,y,R){function p(I){return KE(u.Xo.get(),I)}
var J=[];h=g.C(h);for(var O=h.next();!O.done;O=h.next()){O=O.value;var f=O.renderer,D=f.sandwichedLinearAdRenderer,c=f.linearAdSequenceRenderer;D&&AeV(D)?(Jk("Found AdNotify with SandwichedLinearAdRenderer"),c=g.n(D.adVideoStart,KO),D=g.n(D.linearAd,DB),rE(R,f,O.config.adPlacementConfig.kind),f=void 0,c=Kps((f=c)==null?void 0:f.layout.layoutId,u.N.get(),u.G.get(),O.config.adPlacementConfig,O.adSlotLoggingData,D,L,Z,p,y,u.loadPolicy,u.Mi.get(),u.Xo.get()),c instanceof b?Jk(c):J.push.apply(J,g.l(c))):
c&&(!c.adLayoutMetadata&&xtl(c)||c.adLayoutMetadata&&PSb(c))&&(Jk("Found AdNotify with LinearAdSequenceRenderer"),rE(R,f,O.config.adPlacementConfig.kind),f=void 0,D=Z6n((f=g.n(c.adStart,KO))==null?void 0:f.layout.layoutId,u.N.get(),u.G.get(),O.config.adPlacementConfig,O.adSlotLoggingData,c.linearAds,WT(c.adLayoutMetadata)?c.adLayoutMetadata:void 0,L,Z,p,y,u.loadPolicy,u.Mi.get()),D instanceof b?Jk(D):J.push.apply(J,g.l(D)))}return J};
CSn=function(u,h,L,Z,y,R,p,J,O,f,D){function c(v){return KE(u.Xo.get(),v)}
var I=L.renderer,A=L.config.adPlacementConfig,x=A.kind,Q=L.adSlotLoggingData,S=J.YC&&x==="AD_PLACEMENT_KIND_START";S=R&&!S;if(I.adsEngagementPanelRenderer!=null)return zW(h,L.elementId,x,I.adsEngagementPanelRenderer.isContentVideoEngagementPanel,I.adsEngagementPanelRenderer.adVideoId,I.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,A,Q,function(v,T,U,z){var d=u.G.get(),W=v.slotId,t=I.adsEngagementPanelRenderer;v=KE(u.Xo.get(),v);return O7(d,W,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new mp(t),T,U,t.impressionPings,v,I.adsEngagementPanelRenderer.adLayoutLoggingData,z)}),[];
if(I.adsEngagementPanelLayoutViewModel)return zW(h,L.elementId,x,I.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,I.adsEngagementPanelLayoutViewModel.adVideoId,I.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,A,Q,function(v,T,U,z){var d=u.G.get(),W=v.slotId,t=I.adsEngagementPanelLayoutViewModel;v=KE(u.Xo.get(),v);return fO(d,W,"LAYOUT_TYPE_PANEL",new dr(t),T,U,v,I.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,z)}),[];
if(I.actionCompanionAdRenderer!=null){if(I.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return rCe(u.N.get(),u.X,u.G.get(),I.actionCompanionAdRenderer,A,Q,Z,c);zW(h,L.elementId,x,I.actionCompanionAdRenderer.isContentVideoCompanion,I.actionCompanionAdRenderer.adVideoId,I.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,A,Q,function(v,T,U,z){var d=u.G.get(),W=v.slotId,t=I.actionCompanionAdRenderer;v=KE(u.Xo.get(),v);return O7(d,W,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
new BA(t),T,U,t.impressionPings,v,I.actionCompanionAdRenderer.adLayoutLoggingData,z)})}else if(I.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(I.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return BAa(u.N.get(),u.X,u.G.get(),I.topBannerImageTextIconButtonedLayoutViewModel,A,Q,Z,c);
zW(h,L.elementId,x,I.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,I.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,I.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,A,Q,function(v,T,U,z){var d=u.G.get(),W=v.slotId,t=I.topBannerImageTextIconButtonedLayoutViewModel;v=KE(u.Xo.get(),v);return fO(d,W,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new z2(t),T,U,v,I.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,z)})}else if(I.imageCompanionAdRenderer)zW(h,
L.elementId,x,I.imageCompanionAdRenderer.isContentVideoCompanion,I.imageCompanionAdRenderer.adVideoId,I.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,A,Q,function(v,T,U,z){var d=u.G.get(),W=v.slotId,t=I.imageCompanionAdRenderer;
v=KE(u.Xo.get(),v);return O7(d,W,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new wr(t),T,U,t.impressionPings,v,I.imageCompanionAdRenderer.adLayoutLoggingData,z)});
else if(I.bannerImageLayoutViewModel)zW(h,L.elementId,x,I.bannerImageLayoutViewModel.isContentVideoCompanion,I.bannerImageLayoutViewModel.adVideoId,I.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,A,Q,function(v,T,U,z){var d=u.G.get(),W=v.slotId,t=I.bannerImageLayoutViewModel;v=KE(u.Xo.get(),v);return fO(d,W,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new e7(t),T,U,v,I.bannerImageLayoutViewModel.adLayoutLoggingData,z)});
else if(I.shoppingCompanionCarouselRenderer)zW(h,L.elementId,x,I.shoppingCompanionCarouselRenderer.isContentVideoCompanion,I.shoppingCompanionCarouselRenderer.adVideoId,I.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,A,Q,function(v,T,U,z){var d=u.G.get(),W=v.slotId,t=I.shoppingCompanionCarouselRenderer;v=KE(u.Xo.get(),v);return O7(d,W,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new a9(t),T,U,t.impressionPings,v,I.shoppingCompanionCarouselRenderer.adLayoutLoggingData,z)});
else if(I.adBreakServiceRenderer){if(!GRR(L))return[];if(x==="AD_PLACEMENT_KIND_PAUSE")return Ujj(u.N.get(),A,Q,L.renderer.adBreakServiceRenderer,Z);if(x!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&x!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return NAb(u.N.get(),A,Q,L.renderer.adBreakServiceRenderer,Z,y,R);J.bP||Jk("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:x,adPlacementConfig:A,daiEnabledForContentVideo:String(R),isServedFromLiveInfra:String(J.bP),clientPlaybackNonce:J.clientPlaybackNonce});
if(x==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!u.FB)return new b("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!u.sX)return new b("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");u.sX.Oz({adPlacementRenderer:L,contentCpn:Z,Ea:y});y=u.FB.get().getCurrentTimeSec(1,!1);return QPe(u.N.get(),L.renderer.adBreakServiceRenderer,A,y,Z,Q,R)}if(!u.TG)return new b("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");
u.TG.Oz({adPlacementRenderer:L,contentCpn:Z,Ea:y})}else{if(I.clientForecastingAdRenderer)return $Q1(u.N.get(),u.G.get(),A,Q,I.clientForecastingAdRenderer,Z,y,c);if(I.invideoOverlayAdRenderer)return b7L(u.N.get(),u.G.get(),A,Q,I.invideoOverlayAdRenderer,Z,y,c);if(I.instreamAdPlayerOverlayRenderer)return Wp1(u.N.get(),u.G.get(),A,Q,I.instreamAdPlayerOverlayRenderer,Z,c);if((I.linearAdSequenceRenderer||I.instreamVideoAdRenderer)&&S)return haj(u.N.get(),u.G.get(),L,Z,c,f,!u.Mi.get().D.L().j("html5_override_ad_video_length_killswitch"));
if(I.linearAdSequenceRenderer&&!S){if(p)return[];rE(h,I,x);if(I.linearAdSequenceRenderer.adLayoutMetadata){if(!QtY(I.linearAdSequenceRenderer))return new b("Received invalid LinearAdSequenceRenderer.")}else if(I.linearAdSequenceRenderer.linearAds==null)return new b("Received invalid LinearAdSequenceRenderer.");if(g.n(I.linearAdSequenceRenderer.adStart,KO)){Jk("Found AdNotify in LinearAdSequenceRenderer");L=g.n(I.linearAdSequenceRenderer.adStart,KO);if(!Lvl(L))return new b("Invalid AdMessageRenderer.");
R=I.linearAdSequenceRenderer.linearAds;return yes(u.B.get(),u.N.get(),u.G.get(),u.Xo.get(),A,Q,L,WT(I.linearAdSequenceRenderer.adLayoutMetadata)?I.linearAdSequenceRenderer.adLayoutMetadata:void 0,R,Z,y,J,c,O,u.loadPolicy,u.Mi.get())}return O61(u.N.get(),u.G.get(),A,Q,I.linearAdSequenceRenderer.linearAds,WT(I.linearAdSequenceRenderer.adLayoutMetadata)?I.linearAdSequenceRenderer.adLayoutMetadata:void 0,Z,y,J,c,O,u.loadPolicy,u.Mi.get(),D)}if(!I.remoteSlotsRenderer||R){if(I.instreamVideoAdRenderer&&
!S){if(p)return[];rE(h,I,x);return cia(u.N.get(),u.G.get(),A,Q,I.instreamVideoAdRenderer,Z,y,J,c,O,u.loadPolicy,u.Mi.get(),u.Xo.get(),D)}if(I.instreamSurveyAdRenderer)return IXw(u.N.get(),u.G.get(),I.instreamSurveyAdRenderer,A,Q,Z,c,af(u.Mi.get(),"supports_multi_step_on_desktop"));if(I.sandwichedLinearAdRenderer!=null)return lSs(I.sandwichedLinearAdRenderer)?g.n(I.sandwichedLinearAdRenderer.adVideoStart,KO)?(Jk("Found AdNotify in SandwichedLinearAdRenderer"),L=g.n(I.sandwichedLinearAdRenderer.adVideoStart,
KO),Lvl(L)?(R=g.n(I.sandwichedLinearAdRenderer.linearAd,DB))?Jii(L,R,A,u.B.get(),u.N.get(),u.G.get(),u.Xo.get(),Q,Z,y,J,c,O,u.loadPolicy,u.Mi.get()):new b("Missing IVAR from Sandwich"):new b("Invalid AdMessageRenderer.")):O61(u.N.get(),u.G.get(),A,Q,[I.sandwichedLinearAdRenderer.adVideoStart,I.sandwichedLinearAdRenderer.linearAd],void 0,Z,y,J,c,O,u.loadPolicy,u.Mi.get()):new b("Received invalid SandwichedLinearAdRenderer.");if(I.videoAdTrackingRenderer!=null)return J=af(u.Mi.get(),"enable_h5_shorts_ad_terminal_events")&&
J.LV,eaa(u.N.get(),u.G.get(),I.videoAdTrackingRenderer,A,Q,Z,y,J,c)}}return[]};
D2=function(u,h,L,Z,y,R,p,J){g.m.call(this);var O=this;this.N=u;this.X=h;this.fW=Z;this.FB=y;this.Mi=R;this.cX=p;this.Bj=J;this.G=null;L.get().addListener(this);this.addOnDisposeCallback(function(){L.ww()||L.get().removeListener(O)});
Z.get().addListener(this);this.addOnDisposeCallback(function(){Z.ww()||Z.get().removeListener(O)})};
Sdn=function(u,h,L){var Z=u.FB.get().getCurrentTimeSec(1,!1);u.Mi.get().D.L().UU()&&bQ(u.cX.get(),"sdai","onopp.1;evt."+L.event+";start."+L.startSecs.toFixed(3)+";d."+L.jS.toFixed(3));f2(u.N.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var y=u.X.get(),R=h.adPlacementRenderer.renderer.adBreakServiceRenderer,p=h.contentCpn,J=h.adPlacementRenderer.adSlotLoggingData,O=c6(u.Mi.get()),f=u.cX;if(y.Mi.get().D.L().experiments.tB("enable_smearing_expansion_dai")){var D=g.Jl(y.Mi.get().D.L().experiments,
"max_prefetch_window_sec_for_livestream_optimization");var c=g.Jl(y.Mi.get().D.L().experiments,"min_prefetch_offset_sec_for_livestream_optimization");O={Gy:lXn(L),M4:!1,cueProcessedMs:Z*1E3};var I=L.startSecs+L.jS;if(Z===0)O.NR=new l6(0,I*1E3);else{c=L.startSecs-c;var A=c-Z;O.NR=A<=0?new l6(c*1E3,I*1E3):new l6(Math.floor(Z+Math.random()*Math.min(A,D))*1E3,I*1E3)}D=O}else D={Gy:lXn(L),M4:!1},I=L.startSecs+L.jS,L.startSecs<=Z?O=new l6((L.startSecs-4)*1E3,I*1E3):(c=Math.max(0,L.startSecs-Z-10),O=new l6(Math.floor(Z+
Math.random()*(O?Z===0?0:Math.min(c,5):c))*1E3,I*1E3)),D.NR=O;y=Uu(y,R,p,D,J,[new iS(L)]);f.get().D.Ts(D.NR.start/1E3-Z,L.startSecs-Z);return[y]})};
I7=function(u){var h,L=(h=hl(u.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:h.current;if(!L)return null;h=hl(u.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var Z=u.layoutId,y=hl(u.clientMetadata,"metadata_type_content_cpn"),R=hl(u.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),p=hl(u.clientMetadata,"metadata_type_player_overlay_layout_renderer"),J=hl(u.clientMetadata,"metadata_type_player_underlay_renderer"),O=hl(u.clientMetadata,
"metadata_type_ad_placement_config"),f=hl(u.clientMetadata,"metadata_type_video_length_seconds");var D=Ed(u.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?hl(u.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Ed(u.clientMetadata,"metadata_type_layout_enter_ms")&&Ed(u.clientMetadata,"metadata_type_layout_exit_ms")?(hl(u.clientMetadata,"metadata_type_layout_exit_ms")-hl(u.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Kv:Z,contentCpn:y,Ex:L,RN:h,instreamAdPlayerOverlayRenderer:R,
playerOverlayLayoutRenderer:p,instreamAdPlayerUnderlayRenderer:J,adPlacementConfig:O,videoLengthSeconds:f,vZ:D,inPlayerLayoutId:hl(u.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:hl(u.clientMetadata,"metadata_type_linked_in_player_slot_id")}};
v$f=function(u,h){return XUe(u,h)};
qdR=function(u,h){h=XUe(u,h);if(!h)return null;var L;h.vZ=(L=hl(u.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:L.adBreakRemainingLengthSeconds;return h};
XUe=function(u,h){var L,Z=(L=hl(u.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:L.current;if(!Z)return null;L=adw(u,h);return{Rt:eIV(u,h),adPlacementConfig:hl(u.clientMetadata,"metadata_type_ad_placement_config"),N7:L,contentCpn:hl(u.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:hl(u.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:hl(u.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:hl(u.clientMetadata,
"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,vZ:void 0,Ex:Z,Kv:u.layoutId,videoLengthSeconds:hl(u.clientMetadata,"metadata_type_video_length_seconds")}};
A$=function(u,h,L,Z,y,R,p,J,O){g.m.call(this);this.B=u;this.C=h;this.T=L;this.X=Z;this.G=y;this.N=R;this.Xo=p;this.Mi=J;this.Eg=O;this.MO=!0};
TQl=function(u,h,L){return xQj(u.G.get(),h.contentCpn,h.Kv,function(Z){return Pcn(u.N.get(),Z.slotId,L,h.adPlacementConfig,h.Kv,KE(u.Xo.get(),Z))})};
xT=function(u,h,L,Z,y,R,p,J){g.m.call(this);this.N=u;this.G=h;this.X=L;this.Mi=Z;this.B=y;this.Eg=R;this.FB=p;this.rf=J};
P6=function(u){g.m.call(this);this.G=u};
f2=function(u,h,L,Z){u.G().H_(h,Z);L=L();u=u.G();u.j7.oJ("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",h,Z,L);h=g.C(L);for(L=h.next();!L.done;L=h.next())a:{Z=u;L=L.value;Z.j7.gZ("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",L);Z.j7.gZ("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",L);try{var y=Z.G;if(g.Xg(L.slotId))throw new b("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Ps(y,L))throw new b("Duplicate registration for slot.",{slotId:L.slotId,slotEntryTriggerType:L.slotEntryTrigger.triggerType},
"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!y.Z$.qI.has(L.slotType))throw new b("No fulfillment adapter factory registered for slot of type: "+L.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!y.Z$.Ig.has(L.slotType))throw new b("No SlotAdapterFactory registered for slot of type: "+L.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");ri(y,"TRIGGER_CATEGORY_SLOT_ENTRY",L.slotEntryTrigger?[L.slotEntryTrigger]:[]);ri(y,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
L.slotFulfillmentTriggers);ri(y,"TRIGGER_CATEGORY_SLOT_EXPIRATION",L.slotExpirationTriggers);var R=Z.G,p=L.slotType+"_"+L.slotPhysicalPosition,J=of(R,p);if(Ps(R,L))throw new b("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");J.set(L.slotId,new d_l(L));R.G.set(p,J)}catch(yn){yn instanceof b&&yn.b9?(Z.j7.l_("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",yn.b9,L),Jk(yn,L,void 0,void 0,yn.BL)):(Z.j7.l_("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
L),Jk(yn,L));break a}Ps(Z.G,L).C=!0;try{var O=Z.G,f=Ps(O,L),D=L.slotEntryTrigger,c=O.Z$.uu.get(D.triggerType);c&&(c.eh("TRIGGER_CATEGORY_SLOT_ENTRY",D,L,null),f.XB.set(D.triggerId,c));for(var I=g.C(L.slotFulfillmentTriggers),A=I.next();!A.done;A=I.next()){var x=A.value,Q=O.Z$.uu.get(x.triggerType);Q&&(Q.eh("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,L,null),f.AB.set(x.triggerId,Q))}for(var S=g.C(L.slotExpirationTriggers),v=S.next();!v.done;v=S.next()){var T=v.value,U=O.Z$.uu.get(T.triggerType);U&&(U.eh("TRIGGER_CATEGORY_SLOT_EXPIRATION",
T,L,null),f.Y.set(T.triggerId,U))}var z=O.Z$.qI.get(L.slotType).get().build(O.X,L);f.V=z;var d=O.Z$.Ig.get(L.slotType).get().build(O.T,L);d.init();f.N=d}catch(yn){yn instanceof b&&yn.b9?(Z.j7.l_("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",yn.b9,L),Jk(yn,L,void 0,void 0,yn.BL)):(Z.j7.l_("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",L),Jk(yn,L));If(Z,L,!0);break a}Z.j7.gZ("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",L);Z.G.ZL(L);for(var W=g.C(Z.N),t=W.next();!t.done;t=
W.next())t.value.ZL(L);iN(Z,L)}};
CO=function(u,h,L,Z,y){g.m.call(this);var R=this;this.N=u;this.X=h;this.bF=L;this.context=y;this.G=new Map;Z.get().addListener(this);this.addOnDisposeCallback(function(){Z.ww()||Z.get().removeListener(R)})};
vWw=function(u,h){var L=0x8000000000000;var Z=0;for(var y=g.C(h.slotFulfillmentTriggers),R=y.next();!R.done;R=y.next())R=R.value,R instanceof Ny?(L=Math.min(L,R.G.start),Z=Math.max(Z,R.G.end)):Jk("Found unexpected fulfillment trigger for throttled slot.",h,null,{fulfillmentTrigger:R});Z=new l6(L,Z);L="throttledadcuerange:"+h.slotId;u.G.set(L,h);u.bF.get().addCueRange(L,Z.start,Z.end,!1,u);MK(u.context.Mi.get())&&(h=Z.start,Z=Z.end,y={},u.context.nV.RP("tcrr",(y.cid=L,y.sm=h,y.em=Z,y)))};
Mn=function(){g.m.apply(this,arguments);this.MO=!0;this.rX=new Map;this.G=new Map};
im=function(u,h){u=g.C(u.rX.values());for(var L=u.next();!L.done;L=u.next())if(L.value.layoutId===h)return!0;return!1};
QG=function(u,h){u=g.C(u.G.values());for(var L=u.next();!L.done;L=u.next()){L=g.C(L.value);for(var Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.layoutId===h)return Z}Jk("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.Xg(h)),layoutId:h})};
Ydj=function(){this.G=new Map};
o$a=function(u,h){this.callback=u;this.slot=h};
lm=function(){};
NQs=function(u,h,L){this.callback=u;this.slot=h;this.FB=L};
Utl=function(u,h,L){this.callback=u;this.slot=h;this.FB=L;this.N=!1;this.G=0};
GPl=function(u,h,L){this.callback=u;this.slot=h;this.FB=L};
Sk=function(u){this.FB=u};
XN=function(u){g.m.call(this);this.Vr=u;this.cJ=new Map};
v6=function(u,h){for(var L=[],Z=g.C(u.cJ.values()),y=Z.next();!y.done;y=Z.next()){y=y.value;var R=y.trigger;R instanceof a0&&R.triggeringLayoutId===h&&L.push(y)}L.length?qZ(u.Vr(),L):Jk("Survey is submitted but no registered triggers can be activated.")};
qn=function(u,h,L){XN.call(this,u);var Z=this;this.Mi=L;h.get().addListener(this);this.addOnDisposeCallback(function(){h.ww()||h.get().removeListener(Z)})};
TL=function(u){g.m.call(this);this.G=u;this.MO=!0;this.cJ=new Map;this.T=new Set;this.X=new Set;this.B=new Set;this.C=new Set;this.N=new Set};
o7=function(u){g.m.call(this);this.G=u;this.cJ=new Map};
Nn=function(u,h){for(var L=[],Z=g.C(u.cJ.values()),y=Z.next();!y.done;y=Z.next())y=y.value,y.trigger.G===h.layoutId&&L.push(y);L.length&&qZ(u.G(),L)};
U7=function(u,h,L){g.m.call(this);var Z=this;this.G=u;this.context=L;this.cJ=new Map;h.get().addListener(this);this.addOnDisposeCallback(function(){h.ww()||h.get().removeListener(Z)})};
GL=function(u,h,L,Z,y){g.m.call(this);var R=this;this.N=u;this.bF=h;this.FB=L;this.Eg=Z;this.context=y;this.MO=!0;this.cJ=new Map;this.G=new Set;L.get().addListener(this);this.addOnDisposeCallback(function(){L.ww()||L.get().removeListener(R)})};
H6V=function(u,h,L,Z,y,R,p,J,O,f){if(fJ(u.Eg.get(),1).clientPlaybackNonce!==O)throw new b("Cannot register CueRange-based trigger for different content CPN",{trigger:L});u.cJ.set(L.triggerId,{EE:new tL(h,L,Z,y),cueRangeId:R});u.bF.get().addCueRange(R,p,J,f,u);MK(u.context.Mi.get())&&(O={},u.context.nV.RP("crr",(O.ca=h,O.tt=L.triggerType,O.st=Z.slotType,O.lt=y==null?void 0:y.layoutType,O.cid=R,O.sm=p,O.em=J,O)))};
ree=function(u,h){u=g.C(u.cJ.entries());for(var L=u.next();!L.done;L=u.next()){var Z=g.C(L.value);L=Z.next().value;Z=Z.next().value;if(h===Z.cueRangeId)return L}return""};
H6=function(u,h){g.m.call(this);var L=this;this.B=u;this.N=new Map;this.X=new Map;this.G=null;h.get().addListener(this);this.addOnDisposeCallback(function(){h.ww()||h.get().removeListener(L)});
var Z;this.G=((Z=h.get().jN)==null?void 0:Z.slotId)||null};
BQj=function(u,h){var L=[];u=g.C(u.values());for(var Z=u.next();!Z.done;Z=u.next())Z=Z.value,Z.slot.slotId===h&&L.push(Z);return L};
r4=function(u){g.m.call(this);this.G=u;this.MO=!0;this.cJ=new Map};
Vj=function(u,h,L){h=h.layoutId;for(var Z=[],y=g.C(u.cJ.values()),R=y.next();!R.done;R=y.next())if(R=R.value,R.trigger instanceof rz){var p;if(p=R.trigger.layoutId===h){p=L;var J=U_1.get(R.category);p=J?J===p:!1}p&&Z.push(R)}Z.length&&qZ(u.G(),Z)};
B6=function(u){g.m.call(this);this.G=u;this.MO=!0;this.cJ=new Map};
zL=function(u,h,L,Z,y){g.m.call(this);var R=this;this.T=u;this.fW=h;this.FB=L;this.cX=Z;this.G=null;this.MO=!0;this.cJ=new Map;this.X=new Map;h.get().addListener(this);this.addOnDisposeCallback(function(){h.ww()||h.get().removeListener(R)});
y.get().addListener(this);this.addOnDisposeCallback(function(){y.ww()||y.get().removeListener(R)})};
mt1=function(u){u.G&&(u.N&&(u.N.stop(),u.N.start()),z7a(u,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))};
z7a=function(u,h){for(var L=[],Z=g.C(u.cJ.values()),y=Z.next();!y.done;y=Z.next())y=y.value,y.trigger.triggerType===h&&L.push(y);L.length>0&&qZ(u.T(),L)};
ma=function(u,h,L,Z,y){y=y===void 0?!0:y;for(var R=[],p=g.C(u.cJ.values()),J=p.next();!J.done;J=p.next()){J=J.value;var O=J.trigger;if(O.triggerType===h){if(O instanceof T$||O instanceof Yf||O instanceof UL){if(y&&O.breakDurationMs!==L)continue;if(!y&&O.breakDurationMs===L)continue;if(Z.has(O.triggerId))continue}R.push(J)}}R.length>0&&qZ(u.T(),R)};
dtw=function(u){u=u.adPlacementRenderer.config.adPlacementConfig;if(!u.prefetchModeConfig||!u.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;u=Number(u.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(u)||u<=0?0:Math.floor(Math.random()*u)};
VNi=function(u){u=u.adPlacementRenderer.config.adPlacementConfig;if(u.prefetchModeConfig&&u.prefetchModeConfig.cacheFetchRefreshDurationMs&&(u=Number(u.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(u)||u<=0)))return u};
d4=function(u){u.G=null;u.cJ.clear();u.X.clear();u.N&&u.N.stop();u.B&&u.B.stop()};
VG=function(u){g.m.call(this);this.X=u;this.MO=!0;this.cJ=new Map;this.G=new Map;this.N=new Map};
n$l=function(u,h){var L=[];if(h=u.G.get(h.layoutId)){h=g.C(h);for(var Z=h.next();!Z.done;Z=h.next())(Z=u.N.get(Z.value.triggerId))&&L.push(Z)}return L};
nO=function(u){g.m.call(this);this.G=u;this.cJ=new Map};
sPb=function(u,h){for(var L=[],Z=g.C(u.cJ.values()),y=Z.next();!y.done;y=Z.next())y=y.value,y.trigger instanceof PT&&y.trigger.slotId===h&&L.push(y);L.length>=1&&qZ(u.G(),L)};
wUl=function(u,h){var L={slotId:DL(h,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],LI:"surface",clientMetadata:new jM([])},Z=Object,y=Z.assign;h=$k(h,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",L.slotId);h={layoutId:h,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Np:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:"surface",
clientMetadata:new jM([]),oP:v1e(!1,L.slotId,L.slotType,L.slotPhysicalPosition,L.LI,L.slotEntryTrigger,L.slotFulfillmentTriggers,L.slotExpirationTriggers,h,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return y.call(Z,{},u,{VdI:!0,slot:L,layout:h})};
oWb=function(u,h,L,Z){var y=u.kind;Z=Z?!1:!u.hideCueRangeMarker;switch(y){case "AD_PLACEMENT_KIND_START":return Z={Gy:new l6(-0x8000000000000,-0x8000000000000),M4:Z},L!=null&&(Z.NR=new l6(-0x8000000000000,-0x8000000000000)),Z;case "AD_PLACEMENT_KIND_END":return Z={Gy:new l6(0x7ffffffffffff,0x8000000000000),M4:Z},L!=null&&(Z.NR=new l6(Math.max(0,h-L),0x8000000000000)),Z;case "AD_PLACEMENT_KIND_MILLISECONDS":y=u.adTimeOffset;y.offsetStartMilliseconds||Jk("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
y.offsetEndMilliseconds||Jk("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");u=Number(y.offsetStartMilliseconds);y=Number(y.offsetEndMilliseconds);y===-1&&(y=h);if(Number.isNaN(u)||Number.isNaN(y)||u>y)return new b("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:u,offsetEndMs:y},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",y===h&&u-500<=y);Z={Gy:new l6(u,y),M4:Z};if(L!=null){u=Math.max(0,u-L);if(u===y)return Z;Z.NR=new l6(u,y)}return Z;
default:return new b("AdPlacementKind not supported in convertToRange.",{kind:y,adPlacementConfig:u})}};
lXn=function(u){var h=u.startSecs*1E3;return new l6(h,h+u.jS*1E3)};
e7Y=function(u){if(!u||!u.adPlacements&&!u.adSlots)return!1;for(var h=g.C(u.adPlacements||[]),L=h.next();!L.done;L=h.next())if(L=L.value)if(L=L.adPlacementRenderer,L!=null&&(L.config&&L.config.adPlacementConfig&&L.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;u=g.C(u.adSlots||[]);for(h=u.next();!h.done;h=u.next()){var Z=L=void 0;if(((L=g.n(h.value,NU))==null?void 0:(Z=L.adSlotMetadata)==null?void 0:Z.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1};
s7=function(u){this.Mi=u;this.N=new Map;this.G=new Map;this.X=new Map};
DL=function(u,h){if(w4(u.Mi.get())){var L=u.N.get(h)||0;L++;u.N.set(h,L);return h+"_"+L}return g.ig(16)};
$k=function(u,h,L){if(w4(u.Mi.get())){var Z=u.G.get(h)||0;Z++;u.G.set(h,Z);return L+"_"+h+"_"+Z}return g.ig(16)};
gE=function(u,h){if(w4(u.Mi.get())){var L=u.X.get(h)||0;L++;u.X.set(h,L);return h+"_"+L}return g.ig(16)};
aXR=function(u){var h=[new DX(u.Kv),new x$(u.Ex),new WA(u.adPlacementConfig),new QO(u.videoLengthSeconds),new zP(u.vZ)];u.instreamAdPlayerOverlayRenderer&&h.push(new jN(u.instreamAdPlayerOverlayRenderer));u.playerOverlayLayoutRenderer&&h.push(new he(u.playerOverlayLayoutRenderer));u.RN&&h.push(new kE(u.RN));return h};
$tl=function(u,h,L,Z,y,R){u=L.inPlayerLayoutId?L.inPlayerLayoutId:$k(R,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",u);var p,J,O=L.instreamAdPlayerOverlayRenderer?(p=L.instreamAdPlayerOverlayRenderer)==null?void 0:p.adLayoutLoggingData:(J=L.playerOverlayLayoutRenderer)==null?void 0:J.adLayoutLoggingData;p={layoutId:u,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",LI:h};return{layoutId:u,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Np:new Map,layoutExitNormalTriggers:[new vT(function(f){return gE(R,
f)},L.Kv)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:h,clientMetadata:Z,oP:y(p),adLayoutLoggingData:O}};
ek=function(u,h){var L=this;this.N=u;this.Mi=h;this.G=function(Z){return gE(L.N.get(),Z)}};
Pcn=function(u,h,L,Z,y,R){L=new jM([new L6(L),new WA(Z)]);h=$k(u.N.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",h);Z={layoutId:h,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",LI:"core"};return{layoutId:h,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Np:new Map,layoutExitNormalTriggers:[new vT(function(p){return gE(u.N.get(),p)},y)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:"core",clientMetadata:L,oP:R(Z),adLayoutLoggingData:void 0}};
a4=function(u,h,L,Z,y){var R=aXR(Z);return $tl(h,L,Z,new jM(R),y,u.N.get())};
tNn=function(u,h,L,Z,y){var R=aXR(Z);R.push(new $E(Z.Rt));R.push(new ti(Z.N7));return $tl(h,L,Z,new jM(R),y,u.N.get())};
O7=function(u,h,L,Z,y,R,p,J,O,f){h=$k(u.N.get(),L,h);var D={layoutId:h,layoutType:L,LI:"core"},c=new Map;p&&c.set("impression",p);p=[new G$(u.G,y,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];f&&p.push(new Xc(u.G,f,["normal"]));return{layoutId:h,layoutType:L,Np:c,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:"core",clientMetadata:new jM([Z,new WA(R),new DX(y)]),oP:J(D),adLayoutLoggingData:O}};
fO=function(u,h,L,Z,y,R,p,J,O){h=$k(u.N.get(),L,h);var f={layoutId:h,layoutType:L,LI:"core"},D=[new G$(u.G,y,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];O&&D.push(new Xc(u.G,O,["normal"]));return{layoutId:h,layoutType:L,Np:new Map,layoutExitNormalTriggers:D,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:"core",clientMetadata:new jM([Z,new WA(R),new DX(y)]),oP:p(f),adLayoutLoggingData:J}};
jk=function(u,h,L){var Z=[];Z.push(new HT(u.G,L));h&&Z.push(h);return Z};
um=function(u,h,L,Z,y,R,p){var J={layoutId:h,layoutType:L,LI:"core"};return{layoutId:h,layoutType:L,Np:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[new ir(u.G,h)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:"core",clientMetadata:new jM([new so(Z),new WA(y)]),oP:R(J),adLayoutLoggingData:Z.adLayoutLoggingData}};
Ve=function(u,h,L,Z,y,R,p,J){var O={layoutId:h,layoutType:R,LI:"core"};return{layoutId:h,layoutType:R,Np:new Map,layoutExitNormalTriggers:[new vT(u.G,L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:"core",clientMetadata:new jM([new WA(Z)].concat(g.l(p))),oP:y(O),adLayoutLoggingData:J}};
LO=function(u,h,L,Z){if(u.Mi.get().w1(h.kind==="AD_PLACEMENT_KIND_START"))if(L===void 0)Jk("Expected SSAP layout ID in renderer",void 0,void 0,{caller:Z});else return L};
EEi=function(u,h,L,Z,y,R,p,J,O,f,D,c,I){u=h$(u,h,L,y,R,p,J,O,c,LO(u,L,Z.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),I);h=u.Gb;L=new cU(u.FQ);Z=u.layoutExitSkipTriggers;f>0&&(h.push(L),h.push(new Eo(f)),Z=[]);h.push(new bc(D));return{Eu:{layoutId:u.layoutId,layoutType:u.layoutType,Np:u.Np,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:u.LI,clientMetadata:new jM(h),oP:u.oP,adLayoutLoggingData:u.adLayoutLoggingData},
yR:Z,Fb:u.layoutExitMuteTriggers,RI:u.layoutExitUserInputSubmittedTriggers,Ag:u.Pj,Si:u.Si}};
jPR=function(u,h,L,Z,y,R,p,J,O,f){h=h$(u,h,L,Z,R,new Map,p,function(D){return J(D,O)},void 0,LO(u,L,y.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey"));
u=new a0(u.G,h.FQ);L=new cU(h.FQ);f=new bc(f);return{Eu:{layoutId:h.layoutId,layoutType:h.layoutType,Np:h.Np,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:h.LI,clientMetadata:new jM([].concat(g.l(h.Gb),[L,f])),oP:h.oP,adLayoutLoggingData:h.adLayoutLoggingData},yR:h.layoutExitSkipTriggers,Fb:h.layoutExitMuteTriggers,RI:[].concat(g.l(h.layoutExitUserInputSubmittedTriggers),[u]),Ag:h.Pj,Si:h.Si}};
h$=function(u,h,L,Z,y,R,p,J,O,f,D){h=f!=null?f:$k(u.N.get(),"LAYOUT_TYPE_MEDIA_BREAK",h);f={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",LI:"adapter"};J=J(h);var c=hl(J.clientMetadata,"metadata_type_fulfilled_layout");c||Jk("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var I=c?c.layoutId:"";L=[new WA(L),new mf(Z),new n6(y)];c&&L.push(new IP(c.layoutType));D&&L.push(new TP(D));return{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",
Np:R,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new mZ(u.G,I)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:"adapter",Gb:L,oP:p(f),adLayoutLoggingData:O,Si:J,FQ:I}};
IAf=function(u,h,L,Z,y,R,p,J,O,f,D){u=Wfe(u,h,"core",L,Z,y,R,p,J,O,f,void 0,D);return{layoutId:u.layoutId,layoutType:u.layoutType,Np:u.Np,layoutExitNormalTriggers:u.layoutExitNormalTriggers,layoutExitSkipTriggers:u.layoutExitSkipTriggers,layoutExitMuteTriggers:u.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:u.layoutExitUserInputSubmittedTriggers,Pj:u.Pj,LI:u.LI,clientMetadata:new jM(u.jP),oP:u.oP,adLayoutLoggingData:u.adLayoutLoggingData}};
DtR=function(u,h,L,Z,y,R,p,J,O,f,D,c,I){h=Wfe(u,h,"adapter",L,Z,y,R,p,J,O,D,c,I);Z=h.layoutExitSkipTriggers;y=h.jP;L.adPodSkipTarget&&L.adPodSkipTarget>0&&(y.push(f),y.push(new Eo(L.adPodSkipTarget)),Z=[]);y.push(new bc(J.adPodIndex));L.isCritical&&(Z=[new Xc(u.G,h.layoutId,["error"])].concat(g.l(Z)));return{Eu:{layoutId:h.layoutId,layoutType:h.layoutType,Np:h.Np,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:h.LI,clientMetadata:new jM(y),
oP:h.oP,adLayoutLoggingData:h.adLayoutLoggingData},yR:Z,Fb:h.layoutExitMuteTriggers,RI:h.layoutExitUserInputSubmittedTriggers,Ag:h.Pj}};
Wfe=function(u,h,L,Z,y,R,p,J,O,f,D,c,I){var A={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",LI:L};y=[new WA(y),new F4(O),new gr(Z.externalVideoId),new uS(J),new n6({impressionCommands:Z.impressionCommands,abandonCommands:Z.onAbandonCommands,completeCommands:Z.completeCommands,progressCommands:Z.adVideoProgressCommands}),new lS(R),new PU({current:null}),new QO(p)];(R=Z.playerOverlay.instreamAdPlayerOverlayRenderer)&&y.push(new jN(R));(p=Z.playerOverlay.playerOverlayLayoutRenderer)&&y.push(new he(p));
c&&y.push(new SN(c));(c=Z.playerUnderlay)&&y.push(new L6(c));J=DL(u.N.get(),"SLOT_TYPE_IN_PLAYER");c=(c=R?R.elementId:p==null?void 0:p.layoutId)?c:$k(u.N.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",J);y.push(new cU(c));y.push(new Ae(J));y.push(new TP(O.adPodIndex));Z.adNextParams&&y.push(new Vv(Z.adNextParams));Z.shrunkenPlayerBytesConfig&&y.push(new RP(Z.shrunkenPlayerBytesConfig));Z.clickthroughEndpoint&&y.push(new n7(Z.clickthroughEndpoint));Z.legacyInfoCardVastExtension&&y.push(new dQ(Z.legacyInfoCardVastExtension));
Z.sodarExtensionData&&y.push(new Xz(Z.sodarExtensionData));D&&y.push(new BU(D));y.push(new eN(Qd(Z.pings)));O=lW(Z.pings);if(I){a:{I=g.C(I);for(D=I.next();!D.done;D=I.next())if(D=D.value,D.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(R=g.n(D.fulfillmentContent.fulfilledLayout,ia))&&(R=g.n(R.renderingContent,C0))&&R.associatedPlayerBytesLayoutId===h){I=D;break a}I=void 0}I&&y.push(new ZX(I))}return{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Np:O,layoutExitNormalTriggers:[new rz(u.G,h)],layoutExitSkipTriggers:Z.skipOffsetMilliseconds?
[new mZ(u.G,c)]:[],layoutExitMuteTriggers:[new mZ(u.G,c)],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:L,jP:y,oP:f(A),adLayoutLoggingData:Z.adLayoutLoggingData}};
Z7a=function(u,h,L,Z,y,R,p,J,O){Z.every(function(D){return k$(D,[],["LAYOUT_TYPE_MEDIA"])})||Jk("Unexpect subLayout type for DAI composite layout");
h=$k(u.N.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",h);var f={layoutId:h,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",LI:"core"};return{layoutId:h,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Np:new Map,layoutExitNormalTriggers:[new qy(u.G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pj:[],LI:"core",clientMetadata:new jM([new vU(L),new qt(J),new Mt(Z),new WA(y),new Ud(R),new Y$({}),new $$(O)]),oP:p(f)}};
gWV=function(u){return u!=null};
a7=function(u,h,L){var Z=this;this.N=u;this.X=h;this.Mi=L;this.G=function(y){return gE(Z.N.get(),y)}};
QPe=function(u,h,L,Z,y,R,p){if(!L.prefetchModeConfig)return new b("AdPlacementConfig for Live Prefetch is missing prefetch_config");L=L.prefetchModeConfig;Z*=1E3;var J=[];if(!L.breakLengthMs)return new b("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var O=g.C(L.breakLengthMs),f=O.next();!f.done;f=O.next())if(f=f.value,Number(f)>0){var D=Z+Number(L.startTimeOffsetMs),c=D+Number(L.cacheFetchSmearingDurationMs);f={Gy:new l6(c,c+Number(f)),M4:!1,NR:new l6(Math.floor(D+Math.random()*
Number(L.cacheFetchSmearingDurationMs)),c),cueProcessedMs:Z?Z:D};D=[];D.push(new bS({}));c=[];c.push(new z$(u.G));c.push(new abe(u.G));p&&D.push(new Y$({}));J.push(Uu(u,h,y,f,R,D,c))}return J};
Uu=function(u,h,L,Z,y,R,p){R=R===void 0?[]:R;p=p===void 0?[]:p;var J=DL(u.N.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),O=[];p=g.C(p);for(var f=p.next();!f.done;f=p.next())O.push(f.value);Z.NR&&Z.NR.start!==Z.Gy.start&&O.push(new Ny(u.G,L,new l6(Z.NR.start,Z.Gy.start),!1));O.push(new Ny(u.G,L,new l6(Z.Gy.start,Z.Gy.end),Z.M4));Z={getAdBreakUrl:h.getAdBreakUrl,UW:Z.Gy.start,V_:Z.Gy.end,cueProcessedMs:Z.cueProcessedMs};h=new sL(u.G,J);R=[new HU(Z)].concat(g.l(R));return{slotId:J,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",
slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:O,slotExpirationTriggers:[new BT(u.G,L),new VL(u.G,J),new nm(u.G,J)],LI:"core",clientMetadata:new jM(R),adSlotLoggingData:y}};
b6i=function(u,h,L){var Z=[];L=g.C(L);for(var y=L.next();!y.done;y=L.next())Z.push(FfR(u,h,y.value));return Z};
FfR=function(u,h,L){return L.triggeringSlotId!=null&&L.triggeringSlotId===u?L.clone(h):L};
st1=function(u,h,L,Z,y){return E$l(u,h,L,Z,y)};
k2j=function(u,h,L,Z){var y=DL(u.N.get(),"SLOT_TYPE_IN_PLAYER");return E$l(u,y,h,L,Z)};
E$l=function(u,h,L,Z,y){var R=new SI(u.G,L),p=[new dz(u.G,h)];u=[new VL(u.G,h),new BT(u.G,Z)];return{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:p,slotExpirationTriggers:u,LI:"core",clientMetadata:new jM([new GP(y({slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,LI:"core",slotEntryTrigger:R,slotFulfillmentTriggers:p,slotExpirationTriggers:u},L))]),adSlotLoggingData:void 0}};
ceY=function(u,h,L,Z,y,R){var p=DL(u.N.get(),"SLOT_TYPE_PLAYER_BYTES"),J=DL(u.N.get(),"SLOT_TYPE_IN_PLAYER"),O=$k(u.N.get(),"LAYOUT_TYPE_SURVEY",J);Z=$T(u,h,L,Z);var f=[new dz(u.G,p)];L=[new VL(u.G,p),new BT(u.G,L),new ir(u.G,O)];if(Z instanceof b)return Z;J=R({slotId:p,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,LI:"core",slotEntryTrigger:Z,slotFulfillmentTriggers:f,slotExpirationTriggers:L},{slotId:J,layoutId:O});R=J.OaI;J=J.Paa;return[{slotId:p,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:yG(u,h,p,Z),slotFulfillmentTriggers:R7(u,h,p,f),slotExpirationTriggers:L,LI:"core",clientMetadata:new jM([new GP(R),new te(pO(h)),new Fz({B8:u.B8(h)})]),adSlotLoggingData:y},J]};
pO=function(u){return u.kind==="AD_PLACEMENT_KIND_START"};
Ain=function(u,h,L,Z,y){y=y?y:DL(u.N.get(),"SLOT_TYPE_IN_PLAYER");L=new SI(u.G,L);var R=[new dz(u.G,y)];u=[new BT(u.G,h),new VL(u.G,y)];return{slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:R,slotExpirationTriggers:u,LI:"core",clientMetadata:new jM([new GP(Z({slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,LI:"core",slotEntryTrigger:L,slotFulfillmentTriggers:R,slotExpirationTriggers:u}))])}};
xQj=function(u,h,L,Z){var y=DL(u.N.get(),"SLOT_TYPE_PLAYER_UNDERLAY");L=new SI(u.G,L);var R=[new dz(u.G,y)];u=[new BT(u.G,h),new VL(u.G,y)];return{slotId:y,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:R,slotExpirationTriggers:u,LI:"core",clientMetadata:new jM([new GP(Z({slotId:y,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,LI:"core",slotEntryTrigger:L,slotFulfillmentTriggers:R,slotExpirationTriggers:u}))])}};
pAV=function(u,h,L,Z,y,R,p){var J=DL(u.N.get(),"SLOT_TYPE_IN_PLAYER"),O=$k(u.N.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",J);Z=kPn(u,Z,R,p,O);if(Z instanceof b)return Z;p=[new dz(u.G,J)];y=[new BT(u.G,R),new dz(u.G,y),new eI(u.G,y)];L=KE(L,{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,LI:"core",slotEntryTrigger:Z,slotFulfillmentTriggers:p,slotExpirationTriggers:y});u=u.X.get();R={layoutId:O,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",LI:"core"};h={layoutId:O,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
Np:new Map,layoutExitNormalTriggers:[new gzl(u.G,O,h.durationMs)],layoutExitSkipTriggers:[new jtL(u.G,O,h.durationMs)],Pj:[new uFb(u.G,O)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LI:"core",clientMetadata:new jM([new VO(h)]),oP:L(R)};return{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,LI:"core",slotEntryTrigger:Z,slotFulfillmentTriggers:p,slotExpirationTriggers:y,clientMetadata:new jM([new GP(h)])}};
Fpf=function(u,h,L,Z,y,R){h=$T(u,h,L,Z);if(h instanceof b)return h;var p=h instanceof Ny?new bQL(u.G,L,h.G):null;Z=DL(u.N.get(),"SLOT_TYPE_IN_PLAYER");var J=[new dz(u.G,Z)];u=[new BT(u.G,L),new VL(u.G,Z)];R=R({slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,LI:"core",slotEntryTrigger:h,slotFulfillmentTriggers:J,slotExpirationTriggers:u},p);return R instanceof uN?new b(R):{slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:J,slotExpirationTriggers:u,
LI:"core",clientMetadata:new jM([new GP(R)]),adSlotLoggingData:y}};
t7e=function(u,h,L,Z){var y=DL(u.N.get(),"SLOT_TYPE_IN_PLAYER"),R=new My(u.G,h),p=[new wz(u.G,y)];u=[new BT(u.G,h),new VL(u.G,y)];return{slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:p,slotExpirationTriggers:u,LI:"core",clientMetadata:new jM([new GP(Z({slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,LI:"core",slotEntryTrigger:R,slotFulfillmentTriggers:p,slotExpirationTriggers:u}))]),adSlotLoggingData:L}};
Wvn=function(u,h,L,Z){var y=DL(u.N.get(),"SLOT_TYPE_IN_PLAYER");L=new SI(u.G,L);var R=[new dz(u.G,y)],p=[new VL(u.G,y),new BT(u.G,h)];R={slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,LI:"core",slotEntryTrigger:L,slotFulfillmentTriggers:R,slotExpirationTriggers:p};return{slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:[new dz(u.G,y)],slotExpirationTriggers:[new BT(u.G,h),new VL(u.G,y)],LI:"core",clientMetadata:new jM([new GP(Z(R))])}};
aSl=function(u,h,L,Z,y){var R=DL(u.N.get(),"SLOT_TYPE_IN_PLAYER");L=new lr(u.G,Z,L);Z=[new dz(u.G,R)];u=[new BT(u.G,h)];return{slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:Z,slotExpirationTriggers:u,LI:"core",clientMetadata:new jM([new GP(y({slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,LI:"core",slotEntryTrigger:L,slotFulfillmentTriggers:Z,slotExpirationTriggers:u}))])}};
djn=function(u,h,L,Z,y,R){var p=DL(u.N.get(),h);return t$(u,p,h,new SI(u.G,Z),[new BT(u.G,L),new VL(u.G,p),new Xc(u.G,Z,["error"])],y,R)};
mjV=function(u,h,L,Z,y,R,p){var J=DL(u.N.get(),h);return t$(u,J,h,new Xc(u.G,y,["normal"]),[new BT(u.G,L),new VL(u.G,J),new Xc(u.G,Z,["error"])],R,p)};
H_a=function(u,h,L,Z,y){var R=DL(u.N.get(),h);return t$(u,R,h,new My(u.G,L),[new BT(u.G,L),new VL(u.G,R)],Z,y)};
wAL=function(u,h,L,Z,y){L=L?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var R=DL(u.N.get(),L);h=new My(u.G,h);var p=[new dz(u.G,R)];u=[new VL(u.G,R)];return{slotId:R,slotType:L,slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:p,slotExpirationTriggers:u,LI:"core",clientMetadata:new jM([new GP(y({slotId:R,slotType:L,slotPhysicalPosition:1,LI:"core",slotEntryTrigger:h,slotFulfillmentTriggers:p,slotExpirationTriggers:u}))]),adSlotLoggingData:Z}};
u4Y=function(u,h,L,Z){var y=DL(u.N.get(),"SLOT_TYPE_PLAYER_BYTES"),R=new o0(u.G),p=[new wz(u.G,y)];u=[new BT(u.G,h)];return{slotId:y,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:p,slotExpirationTriggers:u,LI:"core",clientMetadata:new jM([new GP(Z({slotId:y,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,LI:"core",slotEntryTrigger:R,slotFulfillmentTriggers:p,slotExpirationTriggers:u})),new Y$({})]),adSlotLoggingData:L}};
Kfl=function(u,h){return MNL(u.Mi.get())?new Xc(u.G,h,["normal","error","skipped"]):new Xc(u.G,h,["normal"])};
fAV=function(u,h,L,Z,y){h=Kfl(u,h);u=Z2(u,h,L);y=y({slotId:u.slotId,slotType:u.slotType,slotPhysicalPosition:u.slotPhysicalPosition,slotEntryTrigger:u.slotEntryTrigger,slotFulfillmentTriggers:u.slotFulfillmentTriggers,slotExpirationTriggers:u.slotExpirationTriggers,LI:u.LI});return y instanceof b?y:{lQ:Object.assign({},u,{clientMetadata:new jM([new GP(y.layout)]),adSlotLoggingData:Z}),Pr:y.Pr}};
DQl=function(u,h,L,Z,y,R,p){L=Jew(u,h,L,Z);if(L instanceof b)return L;p=p({slotId:L.slotId,slotType:L.slotType,slotPhysicalPosition:L.slotPhysicalPosition,slotEntryTrigger:L.slotEntryTrigger,slotFulfillmentTriggers:L.slotFulfillmentTriggers,slotExpirationTriggers:L.slotExpirationTriggers,LI:L.LI});if(p instanceof b)return p;Z=[new te(pO(h)),new GP(p.layout),new Fz({B8:u.B8(h)})];R&&Z.push(new sd({}));return{lQ:{slotId:L.slotId,slotType:L.slotType,slotPhysicalPosition:L.slotPhysicalPosition,slotEntryTrigger:yG(u,
h,L.slotId,L.slotEntryTrigger),slotFulfillmentTriggers:R7(u,h,L.slotId,L.slotFulfillmentTriggers),slotExpirationTriggers:L.slotExpirationTriggers,LI:L.LI,clientMetadata:new jM(Z),adSlotLoggingData:y},Pr:p.Pr}};
yG=function(u,h,L,Z){return u.Mi.get().w1(pO(h))?new PT(u.G,L):Z};
R7=function(u,h,L,Z){return u.Mi.get().w1(pO(h))?[new wz(u.G,L)]:Z};
Z2=function(u,h,L){var Z=DL(u.N.get(),"SLOT_TYPE_PLAYER_BYTES"),y=[new dz(u.G,Z)];u=[new VL(u.G,Z),new BT(u.G,L)];return{slotId:Z,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:y,slotExpirationTriggers:u,LI:"core"}};
Jew=function(u,h,L,Z){h=$T(u,h,L,Z);return h instanceof b?h:Z2(u,h,L)};
aAj=function(u,h,L,Z,y,R){var p=DL(u.N.get(),"SLOT_TYPE_FORECASTING");h=$T(u,h,L,Z);if(h instanceof b)return h;Z=[new dz(u.G,p)];u=[new VL(u.G,p),new BT(u.G,L)];return{slotId:p,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:Z,slotExpirationTriggers:u,LI:"core",clientMetadata:new jM([new GP(R({slotId:p,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,LI:"core",slotEntryTrigger:h,slotFulfillmentTriggers:Z,slotExpirationTriggers:u}))]),adSlotLoggingData:y}};
g$e=function(u,h,L,Z,y){var R=!h.hideCueRangeMarker;switch(h.kind){case "AD_PLACEMENT_KIND_START":return new My(u.G,L);case "AD_PLACEMENT_KIND_MILLISECONDS":return u=oWb(h,Z),u instanceof b?u:y(u.Gy,R);case "AD_PLACEMENT_KIND_END":return new QL(u.G,L,R);default:return new b("Cannot construct entry trigger",{kind:h.kind})}};
kPn=function(u,h,L,Z,y){return g$e(u,h,L,Z,function(R,p){return new F1j(u.G,L,R,p,y)})};
$T=function(u,h,L,Z){return g$e(u,h,L,Z,function(y,R){return new Ny(u.G,L,y,R)})};
t$=function(u,h,L,Z,y,R,p){u=[new wz(u.G,h)];return{slotId:h,slotType:L,slotPhysicalPosition:1,slotEntryTrigger:Z,slotFulfillmentTriggers:u,slotExpirationTriggers:y,LI:"core",clientMetadata:new jM([new GP(p({slotId:h,slotType:L,slotPhysicalPosition:1,LI:"core",slotEntryTrigger:Z,slotFulfillmentTriggers:u,slotExpirationTriggers:y}))]),adSlotLoggingData:R}};
W6=function(u,h){g.m.call(this);this.Mi=u;this.G=h;this.eventCount=0};
FN=function(u,h,L,Z){W6.call(this,u,h);this.Mi=u;this.Eg=L;this.context=Z};
bm=function(){this.G=new Map};
g4=function(u,h){var L=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=u;this.result=h.result;this.error=h.error;h.promise&&h.promise.then(function(Z){E7(L,Z)},function(Z){kT(L,Z)})};
h_=function(u){if(up(u)){if(u instanceof g4)return u;if(jU(u))return new g4("wait",{promise:u})}return new g4("done",{result:u})};
Ln=function(u){return new g4("fail",{error:u})};
Zc=function(u){try{return h_(u())}catch(h){return Ln(h)}};
Rd=function(u,h){var L=new g4("wait",{});u.onSuccess.push(function(Z){try{var y=h(Z);E7(L,y)}catch(R){kT(L,R)}});
u.onFailure.push(function(Z){kT(L,Z)});
yP(u);return L};
pn=function(u,h){var L=new g4("wait",{});u.onSuccess.push(function(Z){E7(L,Z)});
u.onFailure.push(function(Z){try{var y=h(Z);E7(L,y)}catch(R){kT(L,R)}});
yP(u);return L};
E7=function(u,h){if(up(h)){if(jU(h)){h.then(function(L){E7(u,L)},function(L){kT(u,L)});
return}if(h instanceof g4){Rd(h,function(L){E7(u,L)});
pn(h,function(L){kT(u,L)});
return}}u.currentState="done";u.result=h;yP(u)};
kT=function(u,h){u.currentState="fail";u.error=h;yP(u)};
yP=function(u){if(u.currentState==="done"){var h=u.onSuccess;u.onSuccess=[];u.onFailure=[];h=g.C(h);for(var L=h.next();!L.done;L=h.next())L=L.value,L(u.result)}else if(u.currentState==="fail")for(h=u.onFailure,u.onSuccess=[],u.onFailure=[],h=g.C(h),L=h.next();!L.done;L=h.next())L=L.value,L(u.error)};
jfj=function(u){return function(){return uMi(u.apply(this,g.NL.apply(0,arguments)))}};
uMi=function(u){return Zc(function(){return Kn(u,u.next())})};
Kn=function(u,h){return h.done?h_(h.value):pn(Rd(h.value.n9,function(L){return Kn(u,u.next(L))}),function(L){return Kn(u,u.throw(L))})};
Og=function(u){var h=u.hours||0;var L=u.minutes||0,Z=u.seconds||0;h=Z+L*60+h*3600+(u.days||0)*86400+(u.weeks||0)*604800+(u.months||0)*2629800+(u.years||0)*31557600;h<=0?h={hours:0,minutes:0,seconds:0}:(u=h,h=Math.floor(u/3600),u%=3600,L=Math.floor(u/60),Z=Math.floor(u%60),h={hours:h,minutes:L,seconds:Z});var y=h.hours===void 0?0:h.hours;L=h.minutes===void 0?0:h.minutes;u=h.seconds===void 0?0:h.seconds;Z=y>0;h=[];if(Z){y=(new Intl.NumberFormat("en-u-nu-latn")).format(y);var R=["fr"],p="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(" ");
y="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(J_)?y.replace(",","\u00a0"):R.includes(J_)?y.replace(",","\u202f"):p.includes(J_)?y.replace(",","."):y;h.push(y)}Z=Z===void 0?!1:Z;L=(["af","be","lt"].includes(J_)||Z)&&L<10?hVR().format(L):(new Intl.NumberFormat("en-u-nu-latn")).format(L);h.push(L);L=hVR().format(u);h.push(L);L=":";"da fi id si sr sr-Latn".split(" ").includes(J_)&&(L=".");return h.join(L)};
hVR=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
LqR=function(u,h){var L,Z;u=((L=u.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(Z=L.videoAuthorizationToken)==null?void 0:Z.credentialTransferTokens)||[];for(L=0;L<u.length;++L)if(u[L].scope===h)return u[L].token||void 0};
fn=function(u){if(u&&u.simpleText)return u.simpleText;var h="";if(u&&u.runs)for(var L=0;L<u.runs.length;L++)u.runs[L].text&&(h+=u.runs[L].text);return h};
Dc=function(u){return u?function(){try{return u.apply(this,arguments)}catch(h){g.UZ(h)}}:u};
cK=function(){this.X=new Set;this.N=new Set;this.B=new Map;this.client=void 0;this.csn=null};
Id=function(){cK.instance||(cK.instance=new cK);return cK.instance};
A_=function(){};
xg=function(){this.V=[];this.S=[];this.G=[];this.RH=[];this.T=[];this.Y=[];this.X=new Map;this.C=new Map;this.N=new Set;this.XB=new Map};
PK=function(){xg.instance||(xg.instance=new xg);return xg.instance};
Cn=function(u,h,L,Z){Z=Z===void 0?{}:Z;g.EC(function(){ZEw.includes(h)||(g.G3(new g.aO("createClientScreen() called with a non-page VE",h)),h=83769);Z.isHistoryNavigation||(u.RH=[],u.G.push({rootVe:h,key:Z.key||""}));u.V=[];u.S=[];Z.Q2?yls(u,h,L,Z):RVe(u,h,L,Z)})()};
psn=function(u,h,L){L=L===void 0?0:L;g.EC(function(){h.then(function(Z){u.N.has(L)&&u.B&&u.B();var y=g.S9(L),R=g.ls(L);if(y&&R){var p;(Z==null?0:(p=Z.response)==null?0:p.trackingParams)&&g.aE(u.client,y,R,g.is(Z.response.trackingParams));var J;(Z==null?0:(J=Z.playerResponse)==null?0:J.trackingParams)&&g.aE(u.client,y,R,g.is(Z.playerResponse.trackingParams))}})})()};
ip=function(u){var h=PK();g.EC(function(){var L=g.is(u);Mm(h,L);return L})()};
Mm=function(u,h,L,Z){Z=Z===void 0?0:Z;g.EC(function(){if(u.N.has(Z))return u.V.push([h,L]),!0;var y=g.S9(Z),R=L||g.ls(Z);if(y&&R){if(g.MI("combine_ve_grafts")){var p=u.X.get(R.toString());p?p.push(h):(u.C.set(R.toString(),R),u.X.set(R.toString(),[h]));u.AB||(u.AB=g.bw(0,function(){QP(u,y)},1200))}else g.aE(u.client,y,R,h);
return!0}return!1})()};
Kqn=function(u,h,L,Z){Z=Z===void 0?0:Z;var y=g.S9(Z);h=h||g.ls(Z);y&&h&&(u=u.client,Z=V5({cttAuthInfo:XY(y)||void 0},y),L={csn:y,ve:h.getAsJson(),clientData:L},y==="UNDEFINED_CSN"?W3("visualElementStateChanged",Z,L):u?Ce("visualElementStateChanged",L,u,Z):g.pM("visualElementStateChanged",L,Z))};
yls=function(u,h,L,Z){Z=Z===void 0?{}:Z;u.N.add(Z.layer||0);u.B=function(){RVe(u,h,L,Z);var p=g.ls(Z.layer);if(p){for(var J=g.C(u.V),O=J.next();!O.done;O=J.next())O=O.value,Mm(u,O[0],O[1]||p,Z.layer);p=g.C(u.S);for(J=p.next();!J.done;J=p.next())J=J.value,Kqn(u,J[0],J[1])}};
L||g.S9(Z.layer)||u.B();if(Z.Q2)for(var y=g.C(Z.Q2),R=y.next();!R.done;R=y.next())psn(u,R.value,Z.layer);else g.UZ(Error("Delayed screen needs a data promise."))};
RVe=function(u,h,L,Z){Z=Z===void 0?{}:Z;var y=void 0;Z.layer||(Z.layer=0);y=Z.parentLayer!==void 0?Z.parentLayer:Z.layer;var R=g.S9(y);y=g.ls(y);var p=L||y,J;p&&(Z.parentCsn!==void 0?J={clientScreenNonce:Z.parentCsn,visualElement:p}:R&&R!=="UNDEFINED_CSN"&&(J={clientScreenNonce:R,visualElement:p}));var O,f=g.tn("EVENT_ID");R==="UNDEFINED_CSN"&&f&&(O={servletData:{serializedServletEventId:f}});g.MI("combine_ve_grafts")&&R&&QP(u,R);g.MI("no_client_ve_attach_unless_shown")&&p&&R&&tX(p,R);try{var D=pCY(u.client,
h,J,Z.hw,Z.cttAuthInfo,O,Z.implicitGestureType,Z.loggingExpectations)}catch(A){uUL(A,{tH:h,rootVe:y,Z5H:L,aKd:R,qWd:J,hw:Z.hw});g.UZ(A);return}r21(D,h,Z.layer,Z.cttAuthInfo);R&&R!=="UNDEFINED_CSN"&&y&&!Urj(R)&&Jvi(u.client,R,y,!0);u.G[u.G.length-1]&&!u.G[u.G.length-1].csn&&(u.G[u.G.length-1].csn=D||"");g.m1({clientScreenNonce:D});A_.instance||(A_.instance=new A_);g.EC(Id().G).bind(Id())();var c=g.ls(Z.layer);R&&R!=="UNDEFINED_CSN"&&c&&(g.MI("web_mark_root_visible")||g.MI("music_web_mark_root_visible"))&&
g.gD(D,c);u.N.delete(Z.layer||0);u.B=void 0;var I;(I=u.XB.get(Z.layer))==null||I.forEach(function(A,x){A?Mm(u,x,A,Z.layer):c&&Mm(u,x,c,Z.layer)});
JlR(u)};
JlR=function(u){for(var h=0;h<u.T.length;h++){var L=u.T[h];try{L()}catch(Z){g.UZ(Z)}}for(h=u.T.length=0;h<u.Y.length;h++){L=u.Y[h];try{L()}catch(Z){g.UZ(Z)}}};
QP=function(u,h){if(h===void 0)for(var L=o9n(),Z=0;Z<L.length;Z++)L[Z]!==void 0&&QP(u,L[Z]);else u.X.forEach(function(y,R){(R=u.C.get(R))&&g.e9(u.client,h,R,y)}),u.X.clear(),u.C.clear(),u.AB=void 0};
lp=function(){};
OEn=function(){lp.instance||(lp.instance=new lp);return lp.instance};
fFL=function(u,h,L){var Z=new XMLHttpRequest;if(L==null?0:L.ib)Z.onreadystatechange=function(R){L.ib(Z,R)};
var y;Z.open((y=h.method)!=null?y:"GET",u,!0);Z.responseType="text";Z.withCredentials=!0;if(h.headers)for(u=g.C(Object.entries(h.headers)),h=u.next();!h.done;h=u.next())y=g.C(h.value),h=y.next().value,y=y.next().value,Z.setRequestHeader(h,y);return Z};
SU=function(){};
DZR=function(){var u=navigator;return new Promise(function(h,L){var Z;(Z=u.webkitTemporaryStorage)!=null&&Z.queryUsageAndQuota?u.webkitTemporaryStorage.queryUsageAndQuota(function(y,R){h({usage:y,quota:R})},function(y){L(y)}):L(Error("webkitTemporaryStorage is not supported."))})};
y3=function(u,h){var L=this;this.handleError=u;this.G=h;this.N=!1;self.document===void 0||self.addEventListener("beforeunload",function(){L.N=!0});
this.X=Math.random()<=.2};
IFj=function(u,h){SU.getInstance().estimate().then(function(L){L=Object.assign({},h,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:cln(L==null?void 0:L.usage),deviceStorageQuotaMbytes:cln(L==null?void 0:L.quota)});u.G("idbQuotaExceeded",L)})};
cln=function(u){return typeof u==="undefined"?"-1":String(Math.ceil(u/1048576))};
xZn=function(){g.dN();return g.Vl(0,192)?g.Vl(0,190):!(g.MI("web_watch_cinematics_disabled_by_default")||g.MI("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&Ali())};
CN1=function(u,h){PNa(u.program,h.m3g)&&(sh("bg_i",void 0,"player_att"),g.X9.initialize(u,function(){sh("bg_l",void 0,"player_att");vK=(0,g.vC)()},h.cspNonce,h.a7))};
MMn=function(u){u=u===void 0?{}:u;return g.X9.invoke(u)};
PNa=function(u,h){if(u){var L;g.X9.isLoading()?L=!1:L=!vK||(0,g.vC)()-vK>h;u=L}else u=!1;return u};
iER=function(u){u=u.split("");qm.uj(u,8);qm.U7(u,3);qm.V2(u,48);qm.U7(u,3);qm.V2(u,64);return u.join("")};
g.Td=function(u,h){return u.a7+"timedtext_video?ref=player&v="+h.videoId};
g.Qfw=function(u){var h=this;this.videoData=u;u={};this.G=(u.c1a=function(){var L=[];if(g.X9.isInitialized()){var Z="";h.videoData&&h.videoData.Ul&&(Z=h.videoData.Ul+("&r1b="+h.videoData.clientPlaybackNonce));var y={};Z=(y.atr_challenge=Z,y);sh("bg_v",void 0,"player_att");(Z=MMn(Z))?(sh("bg_s",void 0,"player_att"),L.push("r1a="+Z)):(sh("bg_e",void 0,"player_att"),L.push("r1c=2"))}else sh("bg_e",void 0,"player_att"),window.trayride||window.botguard?L.push("r1c=1"):L.push("r1c=4");L.push("r1d="+g.X9.getState());
return L.join("&")},u.c6a=function(L){return"r6a="+(Number(L.c)^Rt())},u.c6b=function(L){return"r6b="+(Number(L.c)^Number(g.tn("CATSTAT",0)))},u);
this.videoData&&this.videoData.Ul?this.w7=jp(this.videoData.Ul):this.w7={}};
g.lFn=function(u){if(u.videoData&&u.videoData.Ul){for(var h=[u.videoData.Ul],L=g.C(Object.keys(u.G)),Z=L.next();!Z.done;Z=L.next())Z=Z.value,u.w7[Z]&&u.G[Z]&&(Z=u.G[Z](u.w7))&&h.push(Z);return h.join("&")}return null};
g.Yg=function(u,h){CN1(u,{m3g:g.Jl(h.experiments,"bg_vm_reinit_threshold"),cspNonce:h.cspNonce,a7:h.a7||""})};
Sif=function(){var u=XMLHttpRequest.prototype.fetch;return!!u&&u.length===3};
od=function(u){u=u===void 0?2592E3:u;if(u>0&&!(kfj()>(0,g.vC)()-u*1E3))return 0;u=g.Gj("yt-player-quality");if(typeof u==="string"){if(u=g.rF[u],u>0)return u}else if(u instanceof Object)return u.quality;return 0};
Nm=function(){var u=g.Gj("yt-player-proxima-pref");return u==null?null:u};
XsL=function(){var u=g.Gj("yt-player-quality");if(u instanceof Object&&u.quality&&u.previousQuality){if(u.quality>u.previousQuality)return 1;if(u.quality<u.previousQuality)return-1}return 0};
vkj=function(){var u={values:{},Az:{}};try{var h=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);u.values=h.values;u.halfLives=h.halfLives}catch(L){}return u};
Ug=function(){return g.Gj("yt-player-performance-cap")||{}};
Gd=function(){var u;return(u=g.Gj("yt-player-performance-cap-active-set"))!=null?u:[]};
qi1=function(u){(u===void 0?0:u)?(u=Gd().filter(function(h){return h.startsWith("1")}),g.UO("yt-player-performance-cap-active-set",u,2592E3)):g.UO("yt-player-performance-cap-active-set",[],2592E3)};
Tib=function(u){g.UO("yt-player-watch-later-pending",u)};
Yin=function(){return!!g.Gj("yt-player-headers-readable")};
okb=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(u){return 0}};
g.HK=function(){var u=g.Gj("yt-player-caption-language-preferences");return u?u:[]};
rZ=function(){var u=g.Gj("yt-player-user-settings"),h=new Map;if(u){u=g.C(Object.entries(u));for(var L=u.next();!L.done;L=u.next()){var Z=g.C(L.value);L=Z.next().value;Z=Z.next().value;h.set(L,Z)}}return h};
zd=function(){try{var u=window.navigator;if(u.getAutoplayPolicy&&typeof u.getAutoplayPolicy==="function"){var h=document.getElementsByClassName(g.BK.flA);var L=h.length>0&&h[0]?u.getAutoplayPolicy(h[0]):u.getAutoplayPolicy("mediaelement");if(Nie[L])return Nie[L]}}catch(Z){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"};
ml=function(u){return u.ol||u.J3||u.mutedAutoplay};
UZR=function(u,h){return ml(u)?h!==1&&h!==2&&h!==0?"AUTOPLAY_STATUS_UNAVAILABLE":u.Lu?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"};
G0n=function(u,h,L){var Z=h.L();u.thirdParty||(u.thirdParty={});Z.ancestorOrigins&&(u.thirdParty.embeddedPlayerContext=Object.assign({},u.thirdParty.embeddedPlayerContext,{ancestorOrigins:Z.ancestorOrigins}));Z.j("embeds_enable_autoplay_and_visibility_signals")&&(Z.z2!=null&&(u.thirdParty.embeddedPlayerContext=Object.assign({},u.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(Z.z2)})),Z.Bm&&(u.thirdParty.embeddedPlayerContext=Object.assign({},u.thirdParty.embeddedPlayerContext,{visibilityFractionSource:Z.Bm})),
u.thirdParty.embeddedPlayerContext=Object.assign({},u.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:zd(),autoplayIntended:ml(h),autoplayStatus:UZR(h,L)}))};
Bin=function(u,h){hi(u,2,h.Ha,dZ,3);hi(u,3,h.IL,HEn,3);e4(u,4,h.onesieUstreamerConfig);e4(u,9,h.kc);hi(u,10,h.Uf,VP,3);hi(u,15,h.reloadPlaybackParams,rlb,3)};
mZY=function(u,h){hi(u,1,h.formatId,nn,3);n_(u,2,h.startTimeMs);n_(u,3,h.durationMs);n_(u,4,h.AV);n_(u,5,h.I7);hi(u,9,h.zTA,zVL,3);hi(u,11,h.JzH,sg,1);hi(u,12,h.Ox,sg,1)};
dZw=function(u,h){at(u,1,h.videoId);n_(u,2,h.lmt)};
zVL=function(u,h){if(h.fd)for(var L=0;L<h.fd.length;L++)hi(u,1,h.fd[L],dZw,3)};
nn=function(u,h){n_(u,1,h.itag);n_(u,2,h.lmt);at(u,3,h.xtags)};
wZ=function(u){return{itag:Nj(u,1),lmt:Nj(u,2),xtags:HE(u,3)}};
sg=function(u,h){n_(u,1,h.startTicks);n_(u,2,h.GR);n_(u,3,h.timescale)};
VM1=function(u){return{startTicks:Nj(u,1),GR:Nj(u,2),timescale:Nj(u,3)}};
nkn=function(u,h){n_(u,1,h.defaultPolicy);n_(u,2,h.smooth);n_(u,3,h.visibility);n_(u,4,h.ox);n_(u,5,h.performance);n_(u,6,h.speed)};
dZ=function(u,h){n_(u,13,h.timeSinceLastManualFormatSelectionMs);var L=h.lastManualDirection;L!==void 0&&(Vi(u,112),Vi(u,L<<1^L>>31));n_(u,16,h.hdI);n_(u,17,h.detailedNetworkType);n_(u,18,h.Ut);n_(u,19,h.Vh);n_(u,21,h.vA);n_(u,23,h.rK);n_(u,28,h.o1);n_(u,29,h.ToB);n_(u,34,h.visibility);L=h.playbackRate;if(L!==void 0){var Z=new ArrayBuffer(4);(new Float32Array(Z))[0]=L;L=(new Uint32Array(Z))[0];if(L!==void 0)for(Vi(u,285),dA(u,4),Z=0;Z<4;)u.view.setUint8(u.pos,L&255),L>>=8,u.pos+=1,Z+=1}n_(u,36,h.Tf);
hi(u,38,h.mediaCapabilities,sfb,3);n_(u,39,h.wow);n_(u,40,h.n$);n_(u,44,h.playerState);wA(u,46,h.vk);n_(u,48,h.sM);n_(u,50,h.vL);n_(u,51,h.GI);n_(u,54,h.IC);wA(u,56,h.yMy);n_(u,57,h.q7);wA(u,58,h.l8);n_(u,59,h.aM);n_(u,60,h.fX);wA(u,61,h.isPrefetch);n_(u,62,h.UB);e4(u,63,h.sabrLicenseConstraint);n_(u,64,h.YgA);n_(u,66,h.fII);n_(u,67,h.EzB);n_(u,68,h.zFB);at(u,69,h.audioTrackId);wA(u,71,h.TY);hi(u,72,h.fgX,nkn,1);n_(u,74,h.j9);n_(u,75,h.Vm)};
sfb=function(u,h){if(h.videoFormatCapabilities)for(var L=0;L<h.videoFormatCapabilities.length;L++)hi(u,1,h.videoFormatCapabilities[L],wss,1);if(h.audioFormatCapabilities)for(L=0;L<h.audioFormatCapabilities.length;L++)hi(u,2,h.audioFormatCapabilities[L],eVa,1);hi(u,4,h.perPlaybackAttributes,aFY,3);n_(u,5,h.hdrModeBitmask)};
wss=function(u,h){n_(u,1,h.videoCodec);n_(u,3,h.maxHeight);n_(u,4,h.maxWidth);n_(u,11,h.maxFramerate);n_(u,12,h.maxBitrateBps);wA(u,15,h.is10BitSupported)};
eVa=function(u,h){n_(u,1,h.audioCodec);n_(u,2,h.numChannels);n_(u,3,h.maxBitrateBps);n_(u,6,h.spatialCapabilityBitmask)};
aFY=function(u,h){if(h.itagDenylist)for(var L=0;L<h.itagDenylist.length;L++)n_(u,1,h.itagDenylist[L])};
VP=function(u,h){hi(u,1,h.clientInfo,$Zl,3);e4(u,2,h.wi);e4(u,3,h.playbackCookie);e4(u,4,h.kc);if(h.WV)for(var L=0;L<h.WV.length;L++)hi(u,5,h.WV[L],tMf,3);if(h.S_)for(L=0;L<h.S_.length;L++)n_(u,6,h.S_[L]);at(u,7,h.YuB);hi(u,8,h.e_,Wq1,3)};
Fql=function(u,h){n_(u,1,h.wFX);n_(u,2,h.pFB)};
bEw=function(u,h){var L=h.code;L!==void 0&&(Vi(u,8),Vi(u,L<<1^L>>31));at(u,2,h.message)};
EkV=function(u,h){n_(u,1,h.clientState);hi(u,2,h.ozd,Fql,1)};
Wq1=function(u,h){e4(u,1,h.agI);hi(u,2,h.c4d,bEw,3);hi(u,3,h.coldStartInfo,EkV,3)};
tMf=function(u,h){n_(u,1,h.type);e4(u,2,h.value)};
$Zl=function(u,h){at(u,1,h.hl);at(u,12,h.deviceMake);at(u,13,h.deviceModel);n_(u,16,h.clientName);at(u,17,h.clientVersion);at(u,18,h.osName);at(u,19,h.osVersion)};
k0n=function(u,h){at(u,1,h.name);at(u,2,h.value)};
gkl=function(u,h){at(u,1,h.url);if(h.fR)for(var L=0;L<h.fR.length;L++)hi(u,2,h.fR[L],k0n,3);e4(u,3,h.postBody);wA(u,4,h.txA);wA(u,6,h.ph)};
HEn=function(u,h){e4(u,2,h.Mk);e4(u,5,h.encryptedClientKey);e4(u,6,h.iv);e4(u,7,h.oD);wA(u,10,h.h_);wA(u,13,h.dl);wA(u,14,h.Cn);e4(u,16,h.WXB);wA(u,17,h.Oc)};
u2i=function(u){return{tv:Nj(u,1),j6:Nj(u,2),body:GR(u,4)}};
rlb=function(u,h){at(u,1,h.token)};
jzi=function(u){return{token:HE(u,1)}};
hDw=function(u){return{z6:Nj(u,1),e8g:Nj(u,2)}};
RDn=function(u,h){hi(u,1,h.Ha,dZ,3);if(h.gL)for(var L=0;L<h.gL.length;L++)hi(u,2,h.gL[L],nn,3);if(h.JM)for(L=0;L<h.JM.length;L++)hi(u,3,h.JM[L],mZY,3);e4(u,5,h.videoPlaybackUstreamerConfig);if(h.Qf)for(L=0;L<h.Qf.length;L++)hi(u,6,h.Qf[L],LFL,3);if(h.mA)for(L=0;L<h.mA.length;L++)hi(u,16,h.mA[L],nn,3);if(h.G0)for(L=0;L<h.G0.length;L++)hi(u,17,h.G0[L],nn,3);if(h.eF)for(L=0;L<h.eF.length;L++)hi(u,18,h.eF[L],nn,3);hi(u,19,h.Uf,VP,3);hi(u,21,h.Im,Z2j,3);n_(u,22,h.Rw);n_(u,23,h.GF);if(h.CO)for(L=0;L<h.CO.length;L++)hi(u,
1E3,h.CO[L],ycb,3)};
LFL=function(u,h){hi(u,1,h.formatId,nn,3);n_(u,2,h.GG);n_(u,3,h.sequenceNumber);hi(u,4,h.hU,sg,1);n_(u,5,h.CQ);n_(u,6,h.Ky)};
Z2j=function(u,h){if(h.i6)for(var L=0;L<h.i6.length;L++)at(u,1,h.i6[L]);e4(u,2,h.Ia);at(u,3,h.V3);n_(u,4,h.hO);n_(u,5,h.wV);at(u,6,h.T_)};
ycb=function(u,h){if(h.gL)for(var L=0;L<h.gL.length;L++)hi(u,1,h.gL[L],nn,3);if(h.JM)for(L=0;L<h.JM.length;L++)hi(u,2,h.JM[L],mZY,3);at(u,3,h.clipId)};
g.eU=function(u,h){hi(u,1,h.Ha,dZ,3);e4(u,3,h.videoPlaybackUstreamerConfig);hi(u,5,h.Uf,VP,3);hi(u,6,h.Im,Z2j,3)};
JcY=function(u,h){at(u,1,h.cpn);n_(u,2,h.sequenceNumber);at(u,3,h.serializedWatchEndpointLoggingContext);if(h.decoderInfo)for(var L=0;L<h.decoderInfo.length;L++)hi(u,6,h.decoderInfo[L],pIb,3);at(u,9,h.playerResponseCpn);n_(u,10,h.transitionStitchType);n_(u,12,h.timestampOffsetMsecs);n_(u,15,h.remoteControlMode);if(h.remoteConnectedDevices)for(L=0;L<h.remoteConnectedDevices.length;L++)hi(u,16,h.remoteConnectedDevices[L],KFn,3);e4(u,17,h.serializedHouseBrandPlayerServiceLoggingContext)};
pIb=function(u,h){n_(u,1,h.elapsedTimeMs);at(u,3,h.videoDecoderName)};
KFn=function(u,h){n_(u,1,h.deviceInterface);at(u,2,h.deviceVersion);wA(u,3,h.isSleeping)};
O2V=function(u){return{first:Nj(u,1),Ma:Nj(u,2)}};
fLl=function(u){return{bitrate:Nj(u,6),width:Nj(u,7),height:Nj(u,8),fps:Nj(u,25),averageBitrate:Nj(u,31),audioSampleRate:Nj(u,45),audioChannels:Nj(u,46)}};
ad=function(u){return{itagDenylist:BE(u,1)}};
ILL=function(u){return{C2I:Nj(u,1),itag:HE(u,3),nP:rA(u,4,DF1),lmt:Nj(u,5),qwI:Nj(u,7),xtags:HE(u,15),F_d:rA(u,23,cci),KN:rA(u,34,ad)}};
DF1=function(u){return{iv:GR(u,5),sHB:Us(u,7)}};
Aci=function(u){return{DY:BE(u,2),videoId:HE(u,3),ke:Nj(u,4)}};
cci=function(u){return{videoId:HE(u,2)}};
xF1=function(u){return{Gr:Nj(u,3),oi:Nj(u,4),U6:Nj(u,5),Vx7:Us(u,8),dlX:Nj(u,10),eT:Nj(u,12),Gi:Nj(u,13),sN:Nj(u,14),LQ:Nj(u,15),Nf:Nj(u,16)}};
PWw=function(u){return{targetAudioReadaheadMs:Nj(u,1),targetVideoReadaheadMs:Nj(u,2),backoffTimeMs:Nj(u,4),playbackCookie:GR(u,7),videoId:HE(u,8)}};
CWs=function(u){return{minBandwidthBytesPerSec:Nj(u,1),minReadaheadMs:Nj(u,2)}};
MRV=function(u){return{startMinReadaheadPolicy:zR(u,1,CWs),resumeMinReadaheadPolicy:zR(u,2,CWs)}};
i2f=function(u){return{label:HE(u,1),text:HE(u,2)}};
Qzw=function(u){return{videoId:HE(u,1),formatId:rA(u,2,wZ),debugInfo:zR(u,3,i2f)}};
lLf=function(u){return{b5:zR(u,1,Qzw)}};
SxL=function(u){return{SL:Nj(u,1),PZ:Nj(u,2),minReadaheadMs:Nj(u,3)}};
XIi=function(u){return{Xu:Nj(u,1),items:zR(u,2,SxL),SK:Nj(u,3)}};
vln=function(u){return{token:HE(u,1),videoId:HE(u,2)}};
qxf=function(u){return{WH:Nj(u,1)}};
T1i=function(u){return{hRA:HE(u,1),action:Nj(u,2),HT:rA(u,3,qxf)}};
$g=function(u){return{X4:Nj(u,1),z$:Nj(u,2),seekSource:Nj(u,3)}};
olj=function(u){return{WA:zR(u,1,Yxn),Qc7:HE(u,2)}};
N1Y=function(u){return{Vi:HE(u,1),dh:Nj(u,2),RFd:Nj(u,3),EN:Nj(u,4),pQ:Nj(u,5),uI:Nj(u,6)}};
UFf=function(u){return{Ku:Nj(u,1)}};
Yxn=function(u){return{clipId:HE(u,1),MI:rA(u,2,N1Y),QP:rA(u,3,UFf)}};
G1e=function(u){return{type:Nj(u,1),scope:Nj(u,2),value:GR(u,3),sendByDefault:Us(u,4),writePolicy:Nj(u,5)}};
H2n=function(u){var h=[];u=g.C(u.split(","));for(var L=u.next();!L.done;L=u.next()){var Z=L.value;Z&&((L=Z.startsWith("!"))&&(Z=Z.substring(1)),Z=Z.split("-"),Z.length<3||h.push({lM:Z[0],platform:Z[1],deviceVersion:Z[2],WC:L}))}return h};
zDi=function(u){return H2n(u).map(function(h){return{deviceInterface:rcb[B1b[h.lM]]||0,deviceVersion:h.deviceVersion||"",isSleeping:h.WC}})};
g.t_=function(u,h){this.id=u;this.tM=h;this.captionTracks=[];this.X=this.B=null;this.xtags="";this.T=!1;this.G=null;this.N="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";u=this.tM.id.split(".");u.length>1&&(this.T=u[1]==="2")};
WK=function(u,h,L,Z,y){this.N=u;this.G=h;this.X=L;this.reason=Z;this.G3=y===void 0?0:y};
g.F9=function(u,h,L,Z){return new WK(g.rF[u]||0,g.rF[h]||0,L,Z)};
Eg=function(u){if(bp&&u.G3)return!1;var h=g.rF.auto;return u.N===h&&u.G===h};
gZ=function(u){return kg[u.G||u.N]||"auto"};
mFn=function(u,h){h=g.rF[h];return u.N<=h&&(!u.G||u.G>=h)};
u0=function(u){return"["+u.N+"-"+u.G+", override: "+(u.X+", reason: "+u.reason+"]")};
j5=function(u,h,L){this.videoInfos=u;this.G=h;this.audioTracks=[];if(this.G){u=new Set;L==null||L({ainfolen:this.G.length});h=g.C(this.G);for(var Z=h.next();!Z.done;Z=h.next())if(Z=Z.value,!Z.tM||u.has(Z.tM.id)){var y=void 0,R=void 0,p=void 0;(p=L)==null||p({atkerr:!!Z.tM,itag:Z.itag,xtag:Z.G,lang:((y=Z.tM)==null?void 0:y.name)||"",langid:((R=Z.tM)==null?void 0:R.id)||""})}else y=new g.t_(Z.id,Z.tM),u.add(Z.tM.id),this.audioTracks.push(y);L==null||L({atklen:this.audioTracks.length})}};
hD=function(){g.m.apply(this,arguments);this.G=null};
sze=function(u,h,L,Z,y,R,p){if(u.G)return u.G;var J={},O=new Set,f={};if(Lk(Z)){for(var D in Z.G)Z.G.hasOwnProperty(D)&&(u=Z.G[D],f[u.info.QA]=[u.info]);return f}D=dFn(h,Z,J);R&&y({aftsrt:Z0(D)});for(var c={},I=g.C(Object.keys(D)),A=I.next();!A.done;A=I.next()){A=A.value;for(var x=g.C(D[A]),Q=x.next();!Q.done;Q=x.next()){Q=Q.value;var S=Q.itag,v=void 0,T=A+"_"+(((v=Q.video)==null?void 0:v.fps)||0);c.hasOwnProperty(T)?c[T]===!0?f[A].push(Q):J[S]=c[T]:(v=yT(h,Q,L,Z.isLive,O),v!==!0?(p.add(A),J[S]=v,
v==="disablevp9hfr"&&(c[T]="disablevp9hfr")):(f[A]=f[A]||[],f[A].push(Q),c[T]=!0))}}R&&y({bfflt:Z0(f)});for(var U in f)f.hasOwnProperty(U)&&(Z=U,f[Z]&&f[Z][0].Wr()&&(f[Z]=f[Z],f[Z]=VRn(h,f[Z],J),f[Z]=nlw(f[Z],J)));R&&Object.keys(J).length>0&&(h.eq?y({rjr:QE(J)}):y(J));h=g.C(O.values());for(Z=h.next();!Z.done;Z=h.next())(Z=L.N.get(Z.value))&&--Z.V0;R&&y({aftflt:Z0(f)});u.G=g.CX(f,function(z){return!!z.length});
return u.G};
eDY=function(u,h,L,Z,y,R,p,J){J=J===void 0?!1:J;if(h.Oo&&p&&p.length>1&&!(h.aM>0||h.S)){for(var O=h.N||!!y,f=O&&h.mz?R:void 0,D=dFn(h,Z),c=[],I=[],A={},x=0;x<p.length;x++){var Q=p[x],S=Z.X.get(Q);if(S&&S.info){var v=S.info;S=v.QA;if(yT(h,v,L,Z.isLive)){Q=v.Wr()?c:I;v=g.C(D[S]);for(var T=v.next();!T.done;T=v.next()){T=T.value;var U=void 0,z=S+"_"+(((U=T.video)==null?void 0:U.fps)||0);A.hasOwnProperty(z)?A[z]===!0&&Q.push(T):yT(h,T,L,Z.isLive)&&(Q.push(T),A[z]=!0)}}else O&&R({opfu:Q})}}if(c.length&&
I.length)return O&&R({opfm:c[0].itag+","+I[0].itag}),UJ(new j5(c,I,f))}return wIw(u,h,L,Z,y,R,J)};
wIw=function(u,h,L,Z,y,R,p){function J(v){return!!c[v]}
var O=h.N||!!y,f=O&&h.mz?R:void 0,D=new Set,c=sze(u,h,L,Z,R,O,D);R3(Z)&&(c=aLe(L,c,y,O,R,h),O&&R({enflt:Z0(c)}));h.e7=$Fb(c,h);if(Lk(Z))return R=g.Fg(Object.values(c),function(v){return!!v.length&&!!v[0].audio}),u=g.Fg(Object.values(c),function(v){return!!v.length&&!!v[0].video}),R&&u||NI(),UJ(new j5(u,R,f));
y=tRY(h);O&&R({audioPrefOrder:y.join("_")});u=[];if(h.vj){y=g.KN(y,J);for(var I=new Set,A=g.C(y),x=A.next();!x.done;x=A.next()){x=g.C(c[x.value]);for(var Q=x.next();!Q.done;Q=x.next())Q=Q.value,Q.tM&&!I.has(Q.tM.id)&&(I.add(Q.tM.id),u.push(Q))}if(u.length===0){if(y.length===0)return O&&R({noaudio:1}),NI();u=c[y[0]]}}else{u=g.Fg(y,J);if(!u)return O&&R({noaudio:1}),NI();u=c[u]}c["9"]&&c.h&&Z.bP&&!h.VA&&(O&&R({dltvp9:1}),delete c["9"]);if(p){O&&R({bfsflt:Z0(c),bfsflta:pk(L)});WFe(L,D);O&&R({bfsfltb:pk(L)});
for(var S in c)if(c.hasOwnProperty(S)&&(p=S,!(p==="f"||h.vX===0&&FFL.has(p))))for(D=g.C(c[p]),y=D.next();!y.done;y=D.next())y=y.value,h.Z1?b2s(L,p,y):Els(L,p,y);O&&R({aftsflt:pk(L)})}p=c["1h"]?"1h":"1";L=c["9h"]?"9h":"9";y=c[p];I=c[L];y&&y.length&&(h.G.highestAv1Resolution=y[y.length-1].video.G);I&&I.length&&(h.G.highestVp9Resolution=I[I.length-1].video.G);S=[];D=[];if(h.A4&&y)S=y,D=[p],R({forceAv1:p});else if(h.S&&!h.l8)for(D=k1s(Z)?c["1h"]||c["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],O&&R({newhybpref:D.join(".")}),
y=g.C(D),I=y.next();!I.done;I=y.next())S=S.concat(c[I.value]).filter(function(v){return v});
else h.aM>0&&I&&y&&(D=[p,L],S=y.concat(I).filter(function(v){return v}));
if(S.length&&!h.l8){Kk(S,D);if(O){O=[];h=g.C(S);for(Z=h.next();!Z.done;Z=h.next())O.push(Z.value.itag);R({hbdfmt:O.join(".")})}return UJ(new j5(S,u,f))}S=glf(h);S=g.Fg(S,J);if(!S){if(c[p])return R=c[p],Kk(R),UJ(new j5(R,u,f));O&&R({novideo:1});return NI()}h.jq&&(S==="1"||S==="1h")&&c[L]&&(p=JD(c[S]),D=JD(c[L]),D>p?S=L:D===p&&uoi(c[L])&&(S=L));S==="9"&&c.h&&JD(c.h)>JD(c["9"])&&(S="h");h.Ca&&Z.isLive&&S==="("&&c.H&&JD(c["("])<1440&&(S="H");O&&R({vfmly:O5(S)});h=c[S];if(!h.length)return O&&R({novfmly:O5(S)}),
NI();Kk(h);return UJ(new j5(h,u,f))};
$Fb=function(u,h){var L=!(!u.m&&!u.M),Z=!(!u.mac3&&!u.MAC3),y=!(!u.meac3&&!u.MEAC3);u=!(!u.i&&!u.I);h.XN=u;return L||Z||y||u};
uoi=function(u){u=g.C(u);for(var h=u.next();!h.done;h=u.next())if(h=h.value,h.itag&&jnn.has(h.itag))return!0;return!1};
O5=function(u){switch(u){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return u}};
Z0=function(u){var h=[],L;for(L in u)if(u.hasOwnProperty(L)){var Z=L;h.push(O5(Z));Z=g.C(u[Z]);for(var y=Z.next();!y.done;y=Z.next())h.push(y.value.itag)}return h.join(".")};
aLe=function(u,h,L,Z,y,R){var p={},J={};g.PM(h,function(O,f){O=O.filter(function(D){var c=D.itag;if(!D.ji)return J[c]="noenc",!1;if(R.La&&D.QA==="(h"&&R.vJ)return J[c]="lichdr",!1;if(D.QA==="("||D.QA==="(h"){if(u.B&&L&&L.flavor==="widevine"){var I=D.mimeType+"; experimental=allowed";(I=!!D.ji[L.flavor]&&!!L.G[I])||(J[c]=D.ji[L.flavor]?"unspt":"noflv");return I}if(!fk(u,D0.CRYPTOBLOCKFORMAT)&&!u.T7||u.XB)return J[c]=u.XB?"disvp":"vpsub",!1}return L&&D.ji[L.flavor]&&L.G[D.mimeType]?!0:(J[c]=L?D.ji[L.flavor]?
"unspt":"noflv":"nosys",!1)});
O.length&&(p[f]=O)});
Z&&Object.entries(J).length&&(R.eq?y({rjr:QE(J)}):y(J));return p};
nlw=function(u,h){var L=qR(u,function(Z,y){return y.video.fps>32?Math.min(Z,y.video.width):Z},Infinity);
L<Infinity&&(u=u.filter(function(Z){if(Z.video.fps>32||Z.video.width<L)return!0;h[Z.itag]="hfrfirst";return!1}));
aJ()&&(u=u.filter(function(Z){if(Z.itag!=="299")return!0;h[Z.itag]="ps3hfr1080";return!1}));
return u};
VRn=function(u,h,L){return h=h.filter(function(Z){if(Z.video.G<=u.nH)return!0;L[Z.itag]="maxquality";return!1})};
dFn=function(u,h,L){var Z={},y;for(y in h.G)if(h.G.hasOwnProperty(y)){var R=h.G[y].info;if(u.V&&R.video&&R.video.G<u.V)L&&(L[R.itag]="min"+u.V);else{var p=R.QA;Z[p]=Z[p]||[];Z[p].push(R)}}u=g.C(Object.keys(Z));for(h=u.next();!h.done;h=u.next())Kk(Z[h.value]);return Z};
JD=function(u){return qR(u,function(h,L){return Math.max(h,L.video.G)},0)};
yT=function(u,h,L,Z,y){y=y===void 0?new Set:y;if(h.QA==="")return"unkn";if((h.itag==="304"||h.itag==="266")&&u.gw)return"blk2khfr";if(u.C&&h.video&&h.video.G>u.C)return"max"+u.C;if(u.xl&&h.QA==="h"&&h.video&&h.video.G>1080)return"blkhigh264";if(h.QA==="(h"&&!L.C)return"enchdr";if((Z===void 0?0:Z)&&an(h)&&!u.jd)return"blk51live";if((h.QA==="MAC3"||h.QA==="mac3")&&!u.B)return"blkac3";if((h.QA==="MEAC3"||h.QA==="meac3")&&!u.T)return"blkeac3";if((h.QA==="M"||h.QA==="m")&&!u.RH)return"blkaac51";if((h.QA===
"so"||h.QA==="sa")&&!u.XB)return"blkamb";if(!u.La&&h.ji&&h.ji.fairplay&&(h.QA==="("||h.QA==="(h"||h.QA==="A"||h.QA==="MEAC3"))return"cbc";if((h.QA==="i"||h.QA==="I")&&!u.iP)return"blkiamf";if(h.itag==="774"&&!u.DI)return"blkouh";var R,p;if(u.Sd&&(h.QA==="1"||h.QA==="1h")&&((R=h.video)==null?0:R.G)&&((p=h.video)==null?void 0:p.G)>u.Sd)return"av1cap";if((Z=L.N.get(h.QA))&&Z.V0>0)return y.add(h.QA),"byerr";var J;if((J=h.video)==null?0:J.fps>32){if(!L.DI&&!fk(L,D0.FRAMERATE))return"capHfr";if(u.fI&&h.video.G>=
4320)return"blk8khfr";if(nA(h)){if(u.qr&&h.ji&&h.video.G>=1440)return"disablevp9hfr";if(u.Mr&&g.nP("appletv5")&&h.ji)return"atv5sfr"}}if(u.G3&&h.G3>u.G3)return"ratecap";u=h61(L,h);return u!==!0?u:!0};
Kk=function(u,h){h=h===void 0?[]:h;g.OV(u,function(L,Z){var y=Z.G3-L.G3;if(!L.Wr()||!Z.Wr())return y;var R=Z.video.height*Z.video.width-L.video.height*L.video.width;!R&&h&&h.length>0&&(L=h.indexOf(L.QA)+1,Z=h.indexOf(Z.QA)+1,R=L===0||Z===0?Z||-1:L-Z);R||(R=y);return R})};
g.cQ=function(u,h){this.N=u;this.B=h===void 0?!1:h;this.X=this.path=this.scheme="";this.G={};this.url=""};
AD=function(u){I3(u);return u.X};
xa=function(u){return u.N?u.N.startsWith("local"):u.scheme==="local"};
LIR=function(u){I3(u);return g.ij(u.G,function(h){return h!==null})};
PQ=function(u){I3(u);var h=decodeURIComponent(u.get("mn")||"").split(",");return u.path==="/videoplayback"&&h.length>1&&!!h[1]};
Ck=function(u,h){h=h===void 0?!1:h;I3(u);if(u.path!=="/videoplayback"){var L=u.clone();L.set("playerfallback","1");return L}var Z=u.VQ();L=new g.Ok(Z);var y=u.get("fvip"),R=decodeURIComponent(u.get("mn")||"").split(",");if(y&&R&&R.length>1&&R[1])return Z=L.G,u=Z.replace(/^[^.]*/,""),g.DG(L,(Z.indexOf("rr")===0?"rr":"r")+y+"---"+R[1]+u),L=new g.cQ(L.toString()),L.set("fallback_count","1"),L;if(h)return L=u.clone(),L.set("fallback_count","1"),L;y=L.G.match("\\.a1\\.googlevideo\\.com$");L.G.match("\\.googlevideo\\.com$")?
(g.DG(L,"redirector.googlevideo.com"),Z=L.toString()):L.G.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.DG(L,"www.youtube.com"),Z=L.toString()):(L=ymL(Z),bN(L)&&(Z=L));L=new g.cQ(Z);L.set("cmo=pf","1");y&&L.set("cmo=td","a1.googlevideo.com");return L};
I3=function(u){if(u.N){if(!bN(u.N)&&!u.N.startsWith("local"))throw new g.aO("Untrusted URL",u.N);var h=g.Mf(u.N);u.scheme=h.T;u.X=h.G+(h.X!=null?":"+h.X:"");var L=h.N;if(L.startsWith("/videoplayback"))u.path="/videoplayback",L=L.slice(14);else if(L.startsWith("/initplayback"))u.path="/initplayback",L=L.slice(13);else if(L.startsWith("/api/manifest")){var Z=L.indexOf("/",12),y=L.indexOf("/",Z+1);Z>0&&y>0?(u.path=L.slice(0,y),L=L.slice(y+1)):(u.path=L,L="")}else u.path=L,L="";Z=u.G;u.G=ZAf(L);Object.assign(u.G,
ygj(h.B.toString()));Object.assign(u.G,Z);u.G.file==="index.m3u8"&&(delete u.G.file,u.path+="/file/index.m3u8");u.N="";u.url="";u.B&&(h=VmV(),I3(u),L=u.G[h]||null)&&(L=R61[0](L),u.set(h,L),u.B||VmV(""))}};
pXn=function(u){I3(u);var h=u.scheme+(u.scheme?"://":"//")+u.X+u.path;if(LIR(u)){var L=[];g.PM(u.G,function(Z,y){Z!==null&&L.push(y+"="+Z)});
h+="?"+L.join("&")}return h};
ZAf=function(u){u=u.split("/");var h=0;u[0]||h++;for(var L={};h<u.length;h+=2)u[h]&&KIw(L,u[h],u[h+1]);return L};
ygj=function(u){u=u.split("&");for(var h={},L=0;L<u.length;L++){var Z=u[L],y=Z.indexOf("=");y>0?KIw(h,Z.slice(0,y),Z.slice(y+1)):Z&&(h[Z]="")}return h};
KIw=function(u,h,L){if(h==="cmo"){var Z;(Z=L.indexOf("="))>=0?(h="cmo="+L.slice(0,Z),L=L.slice(Z+1)):(Z=L.indexOf("%3D"))>=0&&(h="cmo="+L.slice(0,Z),L=L.slice(Z+3))}u[h]=L};
M6=function(u){var h=g.n(u,Jgj)||u.signatureCipher;u={F8:!1,jg:"",vI:"",s:""};if(!h)return u;h=jp(h);u.F8=!0;u.jg=h.url;u.vI=h.sp;u.s=h.s;return u};
i0=function(u,h,L,Z,y,R,p,J,O,f){this.yA=u;this.startTime=h;this.duration=L;this.ingestionTime=Z;this.sourceURL=y;this.gO=O;this.G=f;this.endTime=h+L;this.N=p||0;this.range=R||null;this.pending=J||!1;this.gO=O||null};
g.QT=function(){this.segments=[];this.G=null;this.N=!0;this.X=""};
OAn=function(u,h){if(h>u.Uk())u.segments=[];else{var L=W1(u.segments,function(Z){return Z.yA>=h},u);
L>0&&u.segments.splice(0,L)}};
l0=function(u,h,L,Z,y){y=y===void 0?!1:y;this.data=u;this.offset=h;this.size=L;this.type=Z;this.G=(this.N=y)?0:8;this.dataOffset=this.offset+this.G};
S5=function(u){var h=u.data.getUint8(u.offset+u.G);u.G+=1;return h};
XD=function(u){var h=u.data.getUint16(u.offset+u.G);u.G+=2;return h};
vQ=function(u){var h=u.data.getInt32(u.offset+u.G);u.G+=4;return h};
q6=function(u){var h=u.data.getUint32(u.offset+u.G);u.G+=4;return h};
Tn=function(u){var h=u.data;var L=u.offset+u.G;h=h.getUint32(L)*4294967296+h.getUint32(L+4);u.G+=8;return h};
Ya=function(u,h){h=h===void 0?NaN:h;if(isNaN(h))var L=u.size;else for(L=u.G;L<u.size&&u.data.getUint8(u.offset+L)!==h;)++L;h=new Uint8Array(u.data.buffer,u.offset+u.G+u.data.byteOffset,L-u.G);u.G=Math.min(L+1,u.size);return Qi(h)};
fqj=function(u){return new Uint8Array(u.data.buffer,u.offset+u.data.byteOffset,u.size)};
DKn=function(u){this.offset=0;this.data=new DataView(new ArrayBuffer(u))};
o3=function(u,h,L,Z){(new Uint8Array(u.data.buffer,u.offset,Z)).set(new Uint8Array(h.buffer,L+h.byteOffset,Z));u.offset+=Z};
N6=function(u,h,L,Z,y,R){this.startSecs=u;this.jS=h;this.context=L;this.identifier=Z;this.event=y;this.G=R};
Gn=function(u,h){this.data=u;this.uri=h||"http://youtube.com/streaming/metadata/segment/102015";this.Dz=U5(this,"Sequence-Number");this.B=U5(this,"Segment-Count");this.T=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=U5(this,"Ingestion-Walltime-Us")/1E6;this.G=(U5(this,"First-Frame-Time-Us")+U5(this,"First-Frame-Uncertainty-Us"))/1E6;this.AS=U5(this,"Target-Duration-Us")/1E6;this.iW=this.data["Stream-Finished"]==="T";this.X=this.data.Streamable==="T";this.cryptoPeriodIndex=U5(this,"Crypto-Period-Index");
this.N=U5(this,"Crypto-Period-Seconds")};
Iqn=function(u){return u.data["Cuepoint-Type"]?new N6(-(Number(u.data["Cuepoint-Playhead-Time-Sec"])||0),Number(u.data["Cuepoint-Total-Duration-Sec"])||0,u.data["Cuepoint-Context"],u.data["Cuepoint-Identifier"]||"",cgf[u.data["Cuepoint-Event"]||""]||"unknown",(Number(u.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null};
AgR=function(u){return Number(u.data["Start-Media-Time-Us"])/1E6||0};
U5=function(u,h){return Number(u.data[h])||0};
HQ=function(u){return u.data["Stitched-Video-Cpn"]?u.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.xKw=function(u){return u.data["Serialized-State"]?u.data["Serialized-State"]:""};
g.PZf=function(u){switch(u.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
CZf=function(u,h){this.G=u;this.duration=h};
MXe=function(u,h,L,Z,y){this.N=y;this.G=u||0;this.pitch=h||0;this.yaw=L||0;this.roll=Z||0;this.crc=y.getUint32(4)};
rt=function(u){var h={};u=u.split("\r\n");for(var L=0;L<u.length;L++){if(u[L].length===0)return h;var Z=u[L].match(/([^:]+):\s+([\S\s]+)/);Z!=null&&(h[Z[1]]=Z[2])}return null};
iAj=function(u,h){var L=g.BQ(u,0,1952868452);u=g.BQ(u,0,1953658222);if(L&&u){L.skip(1);var Z=S5(L)<<16|XD(L);L.skip(4);Z&1&&L.skip(8);Z&2&&L.skip(4);if(Z&8){Z=L.G;var y=q6(L);L.data.setUint32(L.offset+Z,h>1?Math.ceil(y*h):Math.floor(y*h))}u.skip(1);L=S5(u)<<16|XD(u);if(L&256){Z=L&1;y=L&4;var R=L&512,p=L&1024,J=L&2048;L=q6(u);Z&&u.skip(4);y&&u.skip(4);Z=(R?4:0)+(p?4:0)+(J?4:0);for(y=0;y<L;y++)R=u.G,p=q6(u),u.data.setUint32(u.offset+R,h>1?Math.ceil(p*h):Math.floor(p*h)),u.skip(Z)}}};
m$=function(u){u=new DataView(u.buffer,u.byteOffset,u.byteLength);return(u=g.BQ(u,0,1836476516))?g.zn(u):NaN};
Qnf=function(u){var h=g.BQ(u,0,1937011556);if(!h)return null;h=dt(u,h.dataOffset+8,1635148593)||dt(u,h.dataOffset+8,1635135537);if(!h)return null;var L=dt(u,h.dataOffset+78,1936995172),Z=dt(u,h.dataOffset+78,1937126244);if(!Z)return null;h=null;if(L)switch(L.skip(4),S5(L)){default:h=0;break;case 1:h=2;break;case 2:h=1;break;case 3:h=255}var y=L=null,R=null;if(Z=dt(u,Z.dataOffset,1886547818)){var p=dt(u,Z.dataOffset,1886546020),J=dt(u,Z.dataOffset,2037673328);if(!J&&(J=dt(u,Z.dataOffset,1836279920),
!J))return null;p&&(p.skip(4),L=vQ(p)/65536,R=vQ(p)/65536,y=vQ(p)/65536);u=fqj(J);u=new DataView(u.buffer,u.byteOffset+8,u.byteLength-8);return new MXe(h,L,R,y,u)}return null};
dt=function(u,h,L){for(;VT(u,h);){var Z=nk(u,h);if(Z.type===L)return Z;h+=Z.size}return null};
g.BQ=function(u,h,L){for(;VT(u,h);){var Z=nk(u,h);if(Z.type===L)return Z;h=s5(Z.type)?h+8:h+Z.size}return null};
g.wt=function(u){if(u.data.getUint8(u.dataOffset)){var h=u.data;u=u.dataOffset+4;h=h.getUint32(u)*4294967296+h.getUint32(u+4)}else h=u.data.getUint32(u.dataOffset+4);return h};
nk=function(u,h){var L=u.getUint32(h),Z=u.getUint32(h+4);return new l0(u,h,L,Z)};
g.zn=function(u){var h=u.data.getUint8(u.dataOffset)?20:12;return u.data.getUint32(u.dataOffset+h)};
lqV=function(u){u=new l0(u.data,u.offset,u.size,u.type,u.N);var h=S5(u);u.skip(7);var L=q6(u);if(h===0){h=q6(u);var Z=q6(u)}else h=Tn(u),Z=Tn(u);u.skip(2);for(var y=XD(u),R=[],p=[],J=0;J<y;J++){var O=q6(u);R.push(O);p.push(q6(u));u.skip(4)}return{timescale:L,wP:h,m1:Z,YXd:R,AI:p}};
VT=function(u,h){if(u.byteLength-h<8)return!1;var L=u.getUint32(h);if(L<8||u.byteLength-h<L)return!1;for(L=4;L<8;L++){var Z=u.getInt8(h+L);if(Z<48||Z>122)return!1}return!0};
s5=function(u){return u===1701082227||u===1836019558||u===1836019574||u===1835297121||u===1835626086||u===1937007212||u===1953653094||u===1953653099||u===1836475768};
SN1=function(u){u.skip(4);return{TOg:Ya(u,0),value:Ya(u,0),timescale:q6(u),YWH:q6(u),URX:q6(u),id:q6(u),Yf:Ya(u),offset:u.offset}};
g.XXf=function(u){var h=dt(u,0,1701671783);if(!h)return null;var L=SN1(h),Z=L.TOg;L=rt(L.Yf);if(u=dt(u,h.offset+h.size,1701671783))if(u=SN1(u),u=rt(u.Yf),L&&u){h=g.C(Object.keys(u));for(var y=h.next();!y.done;y=h.next())y=y.value,L[y]=u[y]}return L?new Gn(L,Z):null};
e5=function(u,h){for(var L=dt(u,0,h);L;){var Z=L;Z.type=1936419184;Z.data.setUint32(Z.offset+4,1936419184);L=dt(u,L.offset+L.size,h)}};
g.a3=function(u,h){for(var L=0,Z=[];VT(u,L);){var y=nk(u,L);y.type===h&&Z.push(y);L=s5(y.type)?L+8:L+y.size}return Z};
v6e=function(u,h){var L=g.BQ(u,0,1937011556),Z=g.BQ(u,0,1953654136);if(!L||!Z||u.getUint32(L.offset+12)>=2)return null;var y=new DataView(h.buffer,h.byteOffset,h.length),R=g.BQ(y,0,1937011556);if(!R)return null;h=y.getUint32(R.dataOffset+8);Z=y.getUint32(R.dataOffset+12);if(Z!==1701733217&&Z!==1701733238)return null;Z=new DKn(u.byteLength+h);o3(Z,u,0,L.offset+12);Z.data.setInt32(Z.offset,2);Z.offset+=4;o3(Z,u,L.offset+16,L.size-16);o3(Z,y,y.byteOffset+R.dataOffset+8,h);o3(Z,u,L.offset+L.size,u.byteLength-
(L.offset+L.size));L=g.C([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(y=L.next();!y.done;y=L.next())y=g.BQ(u,0,y.value),Z.data.setUint32(y.offset,y.size+h);u=g.BQ(Z.data,0,1953654136);Z.data.setUint32(u.offset+16,2);return Z.data};
qNi=function(u){var h=g.BQ(u,0,1937011556);if(!h)return null;var L=u.getUint32(h.dataOffset+12);if(L!==1701733217&&L!==1701733238)return null;h=dt(u,h.offset+24+(L===1701733217?28:78),1936289382);if(!h)return null;L=dt(u,h.offset+8,1935894637);if(!L||u.getUint32(L.offset+12)!==1667392371)return null;h=dt(u,h.offset+8,1935894633);if(!h)return null;h=dt(u,h.offset+8,1952804451);if(!h)return null;L=new Uint8Array(16);for(var Z=0;Z<16;Z++)L[Z]=u.getInt8(h.offset+16+Z);return L};
$a=function(u,h){this.G=u;this.pos=0;this.start=h||0};
tD=function(u){return u.pos>=u.G.byteLength};
ka=function(u,h,L){var Z=new $a(L);if(!WQ(Z,u))return!1;Z=FD(Z);if(!b0(Z,h))return!1;for(u=0;h;)h>>>=8,u++;h=Z.start+Z.pos;var y=E5(Z,!0);Z=u+(Z.start+Z.pos-h)+y;Z=Z>9?TFn(Z-9,8):TFn(Z-2,1);u=h-u;L.setUint8(u++,236);for(h=0;h<Z.length;h++)L.setUint8(u++,Z[h]);return!0};
YNi=function(u){var h=new $a(u);h.Gw();if(WQ(h,[408125543,374648427,174,224]))h=FD(h);else return null;for(var L=u=null;!tD(h);){var Z=E5(h,!1);if(Z===21432)switch(gt(h)){default:u=0;break;case 1:u=1;break;case 3:u=2;break;case 15:u=255}else Z===30320?L=FD(h):uO(h)}if(!L)return null;for(var y,R=Z=h=null;!tD(L);)switch(E5(L,!1)){case 30321:if(gt(L)!==3)return null;break;case 30324:h=j8(L);break;case 30323:R=j8(L);break;case 30325:Z=j8(L);break;case 30322:y=E5(L,!0);y=hJ(L,y);y=new DataView(y.buffer,
y.byteOffset,y.byteLength);break;default:uO(L)}return y?new MXe(u,h,R,Z,y):null};
FD=function(u){var h=E5(u,!0),L=u.G.byteOffset+u.pos;L=new DataView(u.G.buffer,L,Math.min(h,u.G.buffer.byteLength-L));L=new $a(L,u.start+u.pos);u.pos+=h;return L};
gt=function(u){for(var h=E5(u,!0),L=Lb(u),Z=1;Z<h;Z++)L=L*256+Lb(u);return L};
j8=function(u){var h=E5(u,!0),L=0;h===4?L=u.G.getFloat32(u.pos):h===8&&(L=u.G.getFloat64(u.pos));u.pos+=h;return L};
o6j=function(u){var h=E5(u,!0);return Qi(hJ(u,h))};
Lb=function(u){return u.G.getUint8(u.pos++)};
E5=function(u,h){var L=Lb(u);if(L===1){for(h=L=0;h<7;h++)L=L*256+Lb(u);return L}for(var Z=128,y=0;y<6&&Z>L;y++)L=L*256+Lb(u),Z*=128;return h?L-Z:L};
uO=function(u){var h=E5(u,!0);u.pos+=h};
NFa=function(u){if(!b0(u,440786851,!0))return null;var h=u.pos;E5(u,!1);var L=E5(u,!0)+u.pos-h;u.pos=h+L;if(!b0(u,408125543,!1))return null;E5(u,!0);if(!b0(u,357149030,!0))return null;var Z=u.pos;E5(u,!1);var y=E5(u,!0)+u.pos-Z;u.pos=Z+y;if(!b0(u,374648427,!0))return null;var R=u.pos;E5(u,!1);var p=E5(u,!0)+u.pos-R,J=new Uint8Array(L+12+y+p),O=new DataView(J.buffer);J.set(new Uint8Array(u.G.buffer,u.G.byteOffset+h,L));O.setUint32(L,408125543);O.setUint32(L+4,33554431);O.setUint32(L+8,4294967295);
J.set(new Uint8Array(u.G.buffer,u.G.byteOffset+Z,y),L+12);J.set(new Uint8Array(u.G.buffer,u.G.byteOffset+R,p),L+12+y);return J};
ZW=function(u){var h=u.pos;u.pos=0;var L=1E6;WQ(u,[408125543,357149030,2807729])&&(L=gt(u));u.pos=h;return L};
UK1=function(u,h){var L=u.pos;u.pos=0;if(u.G.getUint8(u.pos)!==160&&!yB(u)||!b0(u,160))return u.pos=L,NaN;E5(u,!0);var Z=u.pos;if(!b0(u,161))return u.pos=L,NaN;E5(u,!0);Lb(u);var y=Lb(u)<<8|Lb(u);u.pos=Z;if(!b0(u,155))return u.pos=L,NaN;Z=gt(u);u.pos=L;return(y+Z)*h/1E9};
yB=function(u){if(!GIR(u)||!b0(u,524531317))return!1;E5(u,!0);return!0};
GIR=function(u){if(u.Gw()){if(!b0(u,408125543))return!1;E5(u,!0)}return!0};
WQ=function(u,h){for(var L=0;L<h.length;L++){if(!b0(u,h[L]))return!1;L!==h.length-1&&E5(u,!0)}return!0};
b0=function(u,h,L){L=L===void 0?!1:L;if(tD(u))return!1;for(var Z=u.pos;E5(u,!1)!==h;)if(uO(u),Z=u.pos,tD(u))return!1;L&&(u.pos=Z);return!0};
TFn=function(u,h){h||(h=Math.ceil(Math.log(u+2)/Math.log(2)/7));for(var L=1<<8-h,Z=[];Z.length<h-1;)Z.unshift(u%256),u=Math.floor(u/256);Z.unshift(u|L);return Z};
hJ=function(u,h){var L=new Uint8Array(u.G.buffer,u.G.byteOffset+u.pos,h);u.pos+=h;return L};
RW=function(u){this.eY=u;this.G={};this.url=""};
HAV=function(u,h){var L=h.indexOf("?");if(L>0){var Z=ygj(h.substring(L+1));g.PM(Z,function(y,R){this.set(R,y)},u);
h=h.substring(0,L)}h=ZAf(h);g.PM(h,function(y,R){this.set(R,y)},u)};
rga=function(u){var h=u.eY.VQ(),L=[];g.PM(u.G,function(y,R){L.push(R+"="+y)});
if(!L.length)return h;var Z=L.join("&");u=LIR(u.eY)?"&":"?";return h+u+Z};
pb=function(u,h){var L=new g.cQ(h);(h=L.get("req_id"))&&u.set("req_id",h);g.PM(u.G,function(Z,y){L.set(y,null)});
return L};
BFV=function(){this.B=this.N=this.G=this.timedOut=this.started=this.T=this.X=0};
Kb=function(u){u.T=(0,g.vC)();u.started=0;u.timedOut=0;u.G=0};
JJ=function(u,h){var L=u.started+u.G*4;h&&(L+=u.N);L=Math.max(0,L-3);return Math.pow(1.6,L)};
O4=function(u,h){u[h]||(u[h]=new BFV);return u[h]};
fb=function(u){this.Y=this.V=this.T=this.N=0;this.S=this.C=!1;this.G=u;this.X=u.clone()};
z6j=function(u,h,L){if(xa(u.G))return!1;var Z=O4(L,AD(u.G));if(Z.timedOut<1&&Z.G<1)return!1;Z=Z.timedOut+Z.G;u=DW(u,h);L=O4(L,AD(u));return L.timedOut+L.G+0<Z};
ca=function(u,h,L){u=h?DW(u,L):u.G;return new RW(u)};
DW=function(u,h){h=h?h.i8:!1;u.B||(u.B=Ck(u.X,h));return u.B};
IW=function(u,h,L){return AD(h?DW(u,L):u.G)};
AJ=function(u,h,L,Z){h.Cg&&(Z===void 0?0:Z)>1?h=h.Cg:(L=O4(L,IW(u,u.NG(h,L),h)),h=Math.max(u.T,L.timedOut)+h.Lu*(u.N-u.T)+.25*u.V,h=h>3?1E3*Math.pow(1.6,h-3):0);return h===0?!0:u.Y+h<(0,g.vC)()};
mKl=function(u,h,L){u.G.set(h,L);u.X.set(h,L);u.B&&u.B.set(h,L)};
dKY=function(u,h,L,Z,y){++u.N;h&&++u.T;AD(L.eY).startsWith("redirector.")&&(u.G=u.X.clone(),delete u.B,Z.y5&&delete y[AD(u.G)])};
xV=function(u){return u?(u.itag||"")+";"+(u.lmt||0)+";"+(u.xtags||""):""};
Pa=function(u,h,L,Z){this.initRange=L;this.indexRange=Z;this.G=null;this.X=!1;this.C=0;this.B=this.je=this.N=null;this.info=h;this.D3=new fb(u)};
Cb=function(u,h){this.start=u;this.end=h;this.length=h-u+1};
M8=function(u){u=u.split("-");var h=Number(u[0]),L=Number(u[1]);if(!isNaN(h)&&!isNaN(L)&&u.length===2&&(u=new Cb(h,L),!isNaN(u.start)&&!isNaN(u.end)&&!isNaN(u.length)&&u.length>0))return u};
iO=function(u,h){return new Cb(u,u+h-1)};
VXb=function(u){return u.end==null?{start:String(u.start)}:{start:String(u.start),end:String(u.end)}};
QB=function(u){if(!u)return new Cb(0,0);var h=Number(u.start);u=Number(u.end);if(!isNaN(h)&&!isNaN(u)&&(h=new Cb(h,u),h.length>0))return h};
lO=function(u,h,L,Z,y,R,p,J,O,f,D,c){Z=Z===void 0?"":Z;this.type=u;this.G=h;this.range=L;this.source=Z;this.GG=D;this.clipId=c===void 0?"":c;this.V=[];this.T="";this.yA=-1;this.S=this.Y=0;this.T=Z;this.yA=y>=0?y:-1;this.startTime=R||0;this.duration=p||0;this.N=J||0;this.X=O>=0?O:this.range?this.range.length:NaN;this.B=this.range?this.N+this.X===this.range.length:f===void 0?!!this.X:f;this.range?(this.ob=this.startTime+this.duration*this.N/this.range.length,this.C=this.duration*this.X/this.range.length,
this.pZ=this.ob+this.C):n6f(this)};
n6f=function(u){u.ob=u.startTime;u.C=u.duration;u.pZ=u.ob+u.C};
snR=function(u,h,L){var Z=!(!h||h.G!==u.G||h.type!==u.type||h.yA!==u.yA);return L?Z&&!!h&&(u.range&&h.range?h.range.end===u.range.end:h.range===u.range)&&h.N+h.X===u.N+u.X:Z};
S8=function(u){return u.type===1||u.type===2};
XG=function(u){return u.type===3||u.type===6};
va=function(u,h){return u.G===h.G?u.range&&h.range?u.range.start+u.N+u.X===h.range.start+h.N:u.yA===h.yA?u.N+u.X===h.N:u.yA+1===h.yA&&h.N===0&&u.B:!1};
e6L=function(u,h){return u.yA!==h.yA&&h.yA!==u.yA+1||u.type!==h.type?!1:va(u,h)?!0:Math.abs(u.ob-h.ob)<=1E-6&&u.yA===h.yA?!1:wXl(u,h)};
wXl=function(u,h){return va(u,h)||Math.abs(u.pZ-h.ob)<=1E-6||u.yA+1===h.yA&&h.N===0&&u.B?!0:!1};
q8=function(u){return u.yA+(u.B?1:0)};
aqb=function(u){u.length===1||g.vG(u,function(L){return!!L.range});
for(var h=1;h<u.length;h++);h=u[u.length-1];return new Cb(u[0].range.start+u[0].N,h.range.start+h.N+h.X-1)};
$Kb=function(u){for(var h=1;h<u.length;h++)if(!va(u[h-1],u[h]))return!1;return!0};
tXa=function(u){var h=0;u=g.C(u);for(var L=u.next();!L.done;L=u.next())h+=L.value.range.length;return h};
T5=function(u){var h={};h.itag=u.G.info.itag;h.type=""+u.type;h.src=""+u.source;h.segsrc=u.T;h.seg=String(u.yA);u.range&&(h.range=u.range.start+u.N+"-"+(u.range.start+u.N+u.X-1));h.time=u.ob.toFixed(1)+"-"+(u.ob+u.C).toFixed(1);h.off=String(u.N);h.len=String(u.X);u.B&&(h.end="1");u.iW()&&(h.eos="1");u.clipId&&(h.cid=u.clipId);return h};
WIl=function(u){return new lO(u.type,u.G,u.range,"getEmptyStubBefore"+u.T,u.yA,u.startTime,0,u.N,0)};
FIw=function(u){return new lO(u.type,u.G,u.range,"getEmptyStubAfter"+u.T,u.yA,u.startTime+u.duration,0,u.N+u.X,0)};
bAR=function(u,h,L,Z){return new lO(u.type,u.G,u.range,"reslice"+u.T,u.yA,u.startTime,u.duration,h,L,Z,u.GG,u.clipId)};
E6s=function(u,h){return u.G!==h.G?!1:u.range&&h.range?u.range.start+u.N>=h.range.start+h.N&&u.range.start+u.N+u.X<=h.range.start+h.N+h.X:u.yA===h.yA&&u.N>=h.N&&(u.N+u.X<=h.N+h.X||h.B)};
kIV=function(u,h){return u.G!==h.G?!1:u.type===4&&h.type===3&&u.G.c_()?(u=u.G.B5(u),oS(u,function(L){return kIV(L,h)})):u.yA===h.yA&&!!h.X&&h.N+h.X>u.N&&h.N+h.X<=u.N+u.X};
YV=function(u,h){var L=h.yA;u.T="updateWithSegmentInfo";u.yA=L;if(u.startTime!==h.startTime||u.duration!==h.duration)u.startTime=h.startTime+u.Y,u.duration=h.duration,n6f(u)};
oW=function(u,h){var L=this;this.YI=u;this.B=this.G=null;this.T=this.Ep=NaN;this.NG=this.requestId=null;this.zd={qlB:function(){return L.range}};
this.D3=u[0].G.D3;this.N=h||"";this.YI[0].range&&this.YI[0].X>0&&($Kb(u)?(this.range=aqb(u),this.X=this.range.length):(this.range=this.YI[this.YI.length-1].range,this.X=tXa(u)))};
N8=function(u){return!S8(u.YI[u.YI.length-1])};
U4=function(u){return u.YI[u.YI.length-1].type===4};
g.G5=function(u,h,L){L=u.NG===null?u.D3.NG(h,L,u.YI[0].type):u.NG;if(u.G){h=L?Ck(u.G,h.i8):u.G;var Z=new RW(h);Z.get("alr")||Z.set("alr","yes");u.N&&HAV(Z,u.N)}else/http[s]?:\/\//.test(u.N)?Z=new RW(new g.cQ(u.N)):(Z=ca(u.D3,L,h),u.N&&HAV(Z,u.N));(h=u.range)?Z.set("range",h.toString()):u.YI[0].G.F3()&&u.YI.length===1&&u.YI[0].N&&Z.set("range",u.YI[0].N+"-");u.requestId&&Z.set("req_id",u.requestId);isNaN(u.Ep)||Z.set("headm",u.Ep.toString());isNaN(u.T)||Z.set("mffa",u.T+"ms");u.urlParams&&g.PM(u.urlParams,
function(y,R){Z.set(R,y)});
return Z};
g6a=function(u){if(u.range)return u.X;u=u.YI[0];return Math.round(u.C*u.G.info.G3)};
uyL=function(u,h){return Math.max(0,u.YI[0].ob-h)};
Ha=function(u,h,L,Z,y,R){R=R===void 0?0:R;Pa.call(this,u,h,Z,void 0);this.T=L;this.AS=R;this.index=y||new g.QT};
jAe=function(u,h,L,Z,y){this.yA=u;this.startSecs=h;this.jS=L;this.G=Z||NaN;this.N=y||NaN};
rO=function(u,h,L){for(;u;u=u.parentNode)if(u.attributes&&(!L||u.nodeName===L)){var Z=u.getAttribute(h);if(Z)return Z}return""};
Ba=function(u,h){for(;u;u=u.parentNode){var L=u.getElementsByTagName(h);if(L.length>0)return L[0]}return null};
hTe=function(u){if(!u)return 0;var h=u.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return h?(Number(h[2])|0)*3600+(Number(h[4])|0)*60+(Number(h[6])|0):Number(u)|0};
LxL=function(u){return u.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?u+"Z":u};
z5=function(){this.G=[];this.N=null;this.C=0;this.X=[];this.T=!1;this.V="";this.B=-1};
Zls=function(u){var h=u.X;u.X=[];return h};
yqw=function(){this.B=[];this.G=null;this.N={};this.X={}};
Jqi=function(u,h){var L=[];h=Array.from(h.getElementsByTagName("SegmentTimeline"));h=g.C(h);for(var Z=h.next();!Z.done;Z=h.next()){Z=Z.value;var y=Z.parentNode.parentNode,R=null;y.nodeName==="Period"?R=RTf(u):y.nodeName==="AdaptationSet"?(y=y.getAttribute("id")||y.getAttribute("mimetype")||"",R=pPn(u,y)):y.nodeName==="Representation"&&(y=y.getAttribute("id")||"",R=Kxa(u,y));if(R==null)return;R.update(Z);g.Lw(L,Zls(R))}g.Lw(u.B,L);hYi(u.B,function(p){return p.startSecs*1E3+p.G})};
Oll=function(u){u.G&&(u.G.G=[]);g.PM(u.N,function(h){h.G=[]});
g.PM(u.X,function(h){h.G=[]})};
RTf=function(u){u.G||(u.G=new z5);return u.G};
pPn=function(u,h){u.N[h]||(u.N[h]=new z5);return u.N[h]};
Kxa=function(u,h){u.X[h]||(u.X[h]=new z5);return u.X[h]};
dO=function(u){var h=u===void 0?{}:u;u=h.AS===void 0?0:h.AS;var L=h.Ty===void 0?!1:h.Ty;var Z=h.Zr===void 0?0:h.Zr;var y=h.vr===void 0?0:h.vr;var R=h.w2===void 0?Infinity:h.w2;var p=h.yH===void 0?0:h.yH;var J=h.Ph===void 0?!1:h.Ph;h=h.JT===void 0?!1:h.JT;g.QT.call(this);this.Hb=this.TB=-1;this.pB=u;this.Zr=Z;this.Ty=L;this.vr=y;this.w2=R;this.yH=p;((this.Ph=J)||isFinite(R)&&this.w2>0)&&L&&m7&&(this.N=!1,this.X="postLive");this.JT=h};
VB=function(u,h){return J8(u.segments,function(L){return h-L.yA})};
nb=function(u,h,L){L=L===void 0?{}:L;Ha.call(this,u,h,"",void 0,void 0,L.AS||0);this.index=new dO(L)};
s4=function(u,h,L){Pa.call(this,u,h);this.T=L;u=this.index=new g.QT;u.N=!1;u.X="d"};
fIV=function(u,h,L){var Z=u.index.KG(h),y=u.index.getStartTime(h),R=u.index.getDuration(h);L?R=L=0:L=u.info.G3*R;return new oW([new lO(3,u,void 0,"otfCreateRequestInfoForSegment",h,y,R,0,L)],Z)};
DOL=function(u,h){if(!u.index.isLoaded()){var L=[],Z=h.B;h=h.T.split(",").filter(function(D){return D.length>0});
for(var y=0,R=0,p=0,J=/^(\d+)/,O=/r=(\d+)/,f=0;f<Z;f++){if(p<=0)if(p=h.shift(),R=(R=J.exec(p))?+R[1]/1E3:0)p=(p=O.exec(p))?+p[1]:0,p+=1;else return;L.push(new i0(f,y,R,NaN,"sq/"+(f+1)));y+=R;p--}u.index.append(L)}};
wO=function(u,h){this.info=u;this.G=h;this.N=null;this.B=this.X=-1;this.timestampOffset=0;this.isLocked=this.C=!1;this.T=this.info.G.ub()&&!this.info.N};
cq1=function(u,h){u.G.getLength();h=Math.min(h,u.info.X);var L=u.G.split(h),Z=L.NJ;L=new wO(new lO(u.info.type,u.info.G,u.info.range,u.info.T,u.info.yA,u.info.startTime,u.info.duration,u.info.N,h,!1,u.info.GG,u.info.clipId),L.jU);L.B=u.B;L.X=u.X;h=new wO(new lO(u.info.type,u.info.G,u.info.range,u.info.T,u.info.yA,u.info.startTime,u.info.duration,u.info.N+h,u.info.X-h,u.info.B,u.info.GG,u.info.clipId),Z);h.B=u.B;h.X=u.X;return[L,h]};
g.e8=function(u,h,L){var Z;if(!(Z=u.isLocked||h.isLocked||!va(u.info,h.info)||u.info.B)){if(L=L===void 0?!1:L)L=u.G,Z=h.G,L=!(Z.B_.length?N5R(L,Z.B_[0]):1);Z=L}if(Z)return null;L=new lO(u.info.type,u.info.G,u.info.range,u.info.T,u.info.yA,u.info.startTime,u.info.duration,u.info.N,u.info.X,u.info.B,u.info.GG,u.info.clipId);Z=h.info;L.X+=Z.X;L.range&&(L.C+=Z.C);L.pZ=Z.pZ;L.B=Z.B;Z=new It;AC(Z,u.G);AC(Z,h.G);L=new wO(L,Z);L.N=h.N||u.N;L.X=u.X!==-1?u.X:h.X;L.B=u.B!==-1?u.B:h.B;return L};
g.aW=function(u){g.$6(u.info.G.info)||u.info.G.info.d1();if(u.X!==-1)return u.X;if(u.N&&AgR(u.N))return u.X=AgR(u.N),u.X;if(g.$6(u.info.G.info)){var h=u.Bh();for(var L=u.info.G.G,Z=NaN,y=NaN,R=0;VT(h,R);){var p=nk(h,R);p.type===1936286840?y=p.data.getUint32(p.dataOffset+8):p.type===1836476516?y=g.zn(p):p.type===1952867444&&isNaN(Z)&&(Z=g.wt(p));R=s5(p.type)?R+8:R+p.size}!y&&L&&(y=m$(L));h=Z/y}else h=new $a(u.Bh()),L=u.T?h:new $a(new DataView(u.info.G.G.buffer)),Z=ZW(L),L=h.pos,h.pos=0,yB(h)?b0(h,
231)?(Z=gt(h)*Z/1E9,h.pos=L,h=Z):(h.pos=L,h=NaN):(h.pos=L,h=NaN);u.X=h||u.info.ob;return u.X};
Aqw=function(u,h){u.timestampOffset>0&&(h-=u.timestampOffset);var L=g.aW(u)+h;IIY(u,L);u.timestampOffset=h};
IIY=function(u,h){g.$6(u.info.G.info)||u.info.G.info.d1();u.X=h;if(g.$6(u.info.G.info)){var L=u.Bh();u=u.info.G.G;for(var Z=NaN,y=NaN,R=0;VT(L,R);){var p=nk(L,R);isNaN(Z)&&(p.type===1936286840?Z=p.data.getUint32(p.dataOffset+8):p.type===1836476516&&(Z=g.zn(p)));if(p.type===1952867444){!Z&&u&&(Z=m$(u));var J=g.wt(p);isNaN(y)&&(y=Math.round(h*Z)-J);var O=p;J+=y;if(O.data.getUint8(O.dataOffset)){var f=O.data;O=O.dataOffset+4;f.setUint32(O,Math.floor(J/4294967296));f.setUint32(O+4,J&4294967295)}else O.data.setUint32(O.dataOffset+
4,J)}R=s5(p.type)?R+8:R+p.size}return!0}L=new $a(u.Bh());u=u.T?L:new $a(new DataView(u.info.G.G.buffer));Z=ZW(u);u=L.pos;L.pos=0;if(yB(L)&&b0(L,231))if(y=E5(L,!0),h=Math.floor(h*1E9/Z),Math.ceil(Math.log(h)/Math.log(2)/8)>y)h=!1;else{for(Z=y-1;Z>=0;Z--)L.G.setUint8(L.pos+Z,h&255),h>>>=8;L.pos=u;h=!0}else h=!1;return h};
tJ=function(u,h){h=h===void 0?!1:h;var L=$V(u);u=h?0:u.info.C;return L||u};
$V=function(u){g.$6(u.info.G.info)||u.info.G.info.d1();if(u.N&&u.info.type===6)return u.N.AS;if(g.$6(u.info.G.info)){var h=u.Bh();var L=0;h=g.a3(h,1936286840);h=g.C(h);for(var Z=h.next();!Z.done;Z=h.next())Z=lqV(Z.value),L+=Z.AI[0]/Z.timescale;L=L||NaN;if(!(L>=0))a:{L=u.Bh();h=u.info.G.G;for(var y=Z=0,R=0;VT(L,Z);){var p=nk(L,Z);if(p.type===1836476516)y=g.zn(p);else if(p.type===1836019558){!y&&h&&(y=m$(h));if(!y){L=NaN;break a}var J=dt(p.data,p.dataOffset,1953653094),O=J;J=y;var f=dt(O.data,O.dataOffset,
1952868452);O=dt(O.data,O.dataOffset,1953658222);var D=vQ(f);vQ(f);D&2&&vQ(f);f=D&8?vQ(f):0;var c=vQ(O),I=c&1;D=c&4;var A=c&256,x=c&512,Q=c&1024;c&=2048;var S=q6(O);I&&vQ(O);D&&vQ(O);for(var v=I=0;v<S;v++){var T=A?vQ(O):f;x&&vQ(O);D&&v===0||!Q||vQ(O);c&&vQ(O);I+=T}R+=I/J}Z=s5(p.type)?Z+8:Z+p.size}L=R||NaN}L||g.G3(new g.aO("Missing duration while parsing bmff",u.info.M1()))}else L=new $a(u.Bh()),u=u.T?L:new $a(new DataView(u.info.G.G.buffer)),L=UK1(L,ZW(u));return L};
g.xOs=function(u){if(u.info.G.qJ())return u.info.duration;u.B===-1&&(u.B=$V(u));return u.B||u.info.duration};
Pze=function(u){var h=u.Bh();var L=(L=g.BQ(h,0,1936286840))?L.data.getUint32(L.dataOffset+8):NaN;isNaN(L)&&(u=u.info.G.G,L=(h=g.BQ(h,0,1836476516))?g.zn(h):u?m$(u):NaN);return L};
Czi=function(u){return u.info.G.info.d1()&&u.G.getUint8(0)===160};
MiL=function(u){if(!u.N){g.$6(u.info.G.info)||u.info.G.info.d1();if(g.$6(u.info.G.info))var h=g.XXf(u.Bh());else{h=new $a(u.Bh());var L=h.pos;h.pos=0;var Z=null,y=null;if(WQ(h,[408125543,307544935]))for(var R=h.pos+E5(h,!0);h.pos<R;)if(E5(h,!1)!==29555)uO(h);else for(var p=h.pos+E5(h,!0);h.pos<p;)if(E5(h,!1)!==26568)uO(h);else for(var J=h.pos+E5(h,!0);h.pos<J;){var O=E5(h,!1);if(O===17543){if(O=o6j(h),O=rt(O))if(y)for(var f=g.C(Object.keys(O)),D=f.next();!D.done;D=f.next())D=D.value,y[D]=O[D];else y=
O}else O===17827?(O=o6j(h),Z||(Z=O)):uO(h)}h.pos=L;h=y?new Gn(y,Z):null}u.N=h}};
ils=function(u){if(g.$6(u.info.G.info))e5(u.Bh(),1836019574),e5(u.Bh(),1718909296);else{var h=new $a(u.Bh());GIR(h);b0(h,524531317,!0);u.G=u.G.split(h.start+h.pos).NJ}u.T=!1};
Wa=function(u){if(!u.C){if(g.$6(u.info.G.info)){var h=u.Bh();var L=dt(h,0,1836019574);if(L){L=L.offset+L.size;var Z=new Uint8Array(L);Z.set(new Uint8Array(h.buffer,h.byteOffset,L));h=Z}else h=null}else h=NFa(new $a(u.Bh()));h&&(u.info.G.G=h,u.C=!0)}};
g.FG=function(){this.count=0;this.G=1;this.N=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)};
QAa=function(u,h){return h+1<u.count||u.N?u.offsets[h+1]-u.offsets[h]:-1};
bO=function(u){u.offsets.length<u.count+1&&u.resize(u.offsets.length*2)};
E4=function(u,h,L,Z){Pa.call(this,u,h,L,Z);var y=this;this.T=null;this.zd={qc:function(R,p,J,O){return y.qc(R,p,J,O)}};
this.index=new g.FG};
lIY=function(u,h,L,Z,y,R){this.displayName=u;this.vssId=h;this.languageCode=L;this.kind=Z===void 0?"":Z;this.xtags=y===void 0?"":y;this.id=R===void 0?"":R};
XPs=function(u){if(u=u.colorInfo)if(u=u.transferCharacteristics)return SFw[u];return null};
g.kV=function(u,h,L){this.name=u;this.id=h;this.isDefault=L};
vx1=function(u){return gO(function(h,L){return g.Y7(h,L,4,1E3)},u,{format:"RAW",
method:"GET",withCredentials:!0})};
g.qFL=function(u){var h;u.responseType&&u.responseType!=="text"?u.responseType==="arraybuffer"&&(h=Qi(new Uint8Array(u.response))):h=u.responseText;return!h||h.length>2048?"":h.indexOf("https://")===0?h:""};
gO=function(u,h,L){h.match(TMR);return u(h,L).then(function(Z){var y=g.qFL(Z.xhr);return y?gO(u,y,L):Z.xhr})};
LS=function(u,h,L){u=u===void 0?"":u;h=h===void 0?null:h;L=L===void 0?!1:L;g.yV.call(this);var Z=this;this.sourceUrl=u;this.isLivePlayback=L;this.ZI=this.duration=0;this.isPremiere=this.Ph=this.B=this.isLiveHeadPlayable=this.isLive=this.N=!1;this.w2=this.vr=0;this.isOtf=this.bP=!1;this.jd=(0,g.vC)();this.AB=Infinity;this.G={};this.X=new Map;this.state=this.W_=0;this.timeline=null;this.isManifestless=!1;this.XB=[];this.C=null;this.gw=0;this.T="";this.DI=NaN;this.vX=this.mz=this.timestampOffset=this.V=
0;this.gD=this.WS=NaN;this.vj=0;this.VA=this.Y=!1;this.T7=[];this.aH={};this.RH=NaN;this.zd={MKA:function(J){uG(Z,J)}};
var y;this.Sd=(y=h)==null?void 0:y.tB("html5_use_network_error_code_enums");YFa=!!h&&h.tB("html5_modern_vp9_mime_type");var R;jh=!((R=h)==null||!R.tB("html5_enable_flush_during_seek"))&&g.wg();var p;h3=!((p=h)==null||!p.tB("html5_enable_reset_audio_decoder"))&&g.wg()};
oxf=function(u){return g.ij(u.G,function(h){return!!h.info.video&&h.info.video.G>=2160})};
k1s=function(u){return g.ij(u.G,function(h){return!!h.info.video&&h.info.video.isHdr()})};
R3=function(u){return g.ij(u.G,function(h){return!!h.info.ji})};
g.NMa=function(u){return g.ij(u.G,function(h){return WX(h.info)})};
UOs=function(u){return g.ij(u.G,function(h){return h.info.video?h.info.video.projectionType==="EQUIRECTANGULAR":!1})};
Gaa=function(u){return g.ij(u.G,function(h){return h.info.video?h.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})};
HlR=function(u){return g.ij(u.G,function(h){return h.info.video?h.info.video.projectionType==="MESH":!1})};
rqi=function(u){return g.ij(u.G,function(h){return h.info.video?h.info.video.stereoLayout===1:!1})};
BMi=function(u){return e8j(u.G,function(h){return h.info.video?h.yW():!0})};
Lk=function(u){return g.ij(u.G,function(h){return xa(h.D3.G)})};
uG=function(u,h){u.G[h.info.id]=h;u.X.set(xV(g.Fo(h.info,u.bP)),h)};
zTn=function(u,h){return xV({itag:h.itag,lmt:u.bP?0:h.lmt||0,xtags:h.xtags})};
RV=function(u,h,L){L=L===void 0?0:L;var Z=u.mimeType||"",y=u.itag;var R=u.xtags;y=y?y.toString():"";R&&(y+=";"+R);R=y;if(EN(Z)){var p=u.width||640;y=u.height||360;var J=u.fps,O=u.qualityLabel,f=u.colorInfo,D=u.projectionType,c;u.stereoLayout&&(c=mOV[u.stereoLayout]);var I=XPs(u)||void 0;if(f==null?0:f.primaries)var A=dOn[f.primaries]||void 0;p=new BX(p,y,J,D,c,void 0,O,I,A);Z=Zp(Z,p,dF[u.itag||""]);jh&&(Z+="; enableflushduringseek=true");h3&&(Z+="; enableresetaudiodecoder=true")}var x;if(bZ(Z)){var Q=
u.audioSampleRate;c=u.audioTrack;Q=new GI(Q?+Q:void 0,u.audioChannels,u.spatialAudioType,u.isDrc,u.loudnessDb,u.trackAbsoluteLoudnessLkfs,u.audioQuality||"AUDIO_QUALITY_UNKNOWN");c&&(A=c.displayName,y=c.id,c=c.audioIsDefault,A&&(x=new g.kV(A,y||"",!!c)))}var S;u.captionTrack&&(O=u.captionTrack,c=O.displayName,A=O.vssId,y=O.languageCode,J=O.kind,O=O.id,c&&A&&y&&(S=new lIY(c,A,y,J,u.xtags,O)));c=Number(u.bitrate)/8;A=Number(u.contentLength);y=Number(u.lastModified);O=u.drmFamilies;J=u.type;L=L&&A?A/
L:0;u=Number(u.approxDurationMs);if(h&&O){var v={};O=g.C(O);for(f=O.next();!f.done;f=O.next())(f=yo[f.value])&&(v[f]=h[f])}return new VE(R,Z,{audio:Q,video:p,tM:x,ji:v,G3:c,DR:L,contentLength:A,lastModified:y,captionTrack:S,streamType:J,approxDurationMs:u})};
pS=function(u,h,L){L=L===void 0?0:L;var Z=u.type;var y=u.itag;var R=u.xtags;R&&(y=u.itag+";"+R);if(EN(Z)){var p=(u.size||"640x360").split("x");p=new BX(+p[0],+p[1],+u.fps,u.projection_type,+u.stereo_layout,void 0,u.quality_label,u.eotf,u.primaries);Z=Zp(Z,p,dF[u.itag]);jh&&(Z+="; enableflushduringseek=true");h3&&(Z+="; enableresetaudiodecoder=true")}var J;if(bZ(Z)){var O=new GI(+u.audio_sample_rate||void 0,+u.audio_channels||0,u.spatial_audio_type,!!u.drc);u.name&&(J=new g.kV(u.name,u.audio_track_id,
u.isDefault==="1"))}var f;u.caption_display_name&&u.caption_vss_id&&u.caption_language_code&&(f=new lIY(u.caption_display_name,u.caption_vss_id,u.caption_language_code,u.caption_kind,u.xtags,u.caption_id));R=Number(u.bitrate)/8;var D=Number(u.clen),c=Number(u.lmt);L=L&&D?D/L:0;if(h&&u.drm_families){var I={};for(var A=g.C(u.drm_families.split(",")),x=A.next();!x.done;x=A.next())x=x.value,I[x]=h[x]}return new VE(y,Z,{audio:O,video:p,tM:J,ji:I,G3:R,DR:L,contentLength:D,lastModified:c,captionTrack:f,
streamType:u.stream_type,approxDurationMs:Number(u.approx_duration_ms)})};
ViY=function(u){return oS(u,function(h){return"FORMAT_STREAM_TYPE_OTF"===h.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
nxL=function(u){return oS(u,function(h){return"FORMAT_STREAM_TYPE_OTF"===h.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
sAw=function(u,h){return u.timeline?yu(u.timeline.B,h):u.XB.length?yu(u.XB,h):[]};
KS=function(u,h,L){h=h===void 0?"":h;L=L===void 0?"":L;u=new g.cQ(u,!0);u.set("alr","yes");L&&(L=iER(decodeURIComponent(L)),u.set(h,encodeURIComponent(L)));return u};
$Oi=function(u,h){var L=rO(h,"id");L=L.replace(":",";");var Z=rO(h,"mimeType"),y=rO(h,"codecs");Z=y?Z+'; codecs="'+y+'"':Z;y=Number(rO(h,"bandwidth"))/8;var R=Number(Ba(h,"BaseURL").getAttribute(u.T+":contentLength")),p=u.duration&&R?R/u.duration:0;if(EN(Z)){var J=Number(rO(h,"width"));var O=Number(rO(h,"height")),f=Number(rO(h,"frameRate")),D=wPw(rO(h,u.T+":projectionType"));a:switch(rO(h,u.T+":stereoLayout")){case "layout_left_right":var c=1;break a;case "layout_top_bottom":c=2;break a;default:c=
0}J=new BX(J,O,f,D,c)}if(bZ(Z)){var I=Number(rO(h,"audioSamplingRate"));var A=Number(rO(h.getElementsByTagName("AudioChannelConfiguration")[0],"value"));O=eTf(rO(h,u.T+":spatialAudioType"));I=new GI(I,A,O);a:{A=rO(h,"lang")||"und";if(O=Ba(h,"Role"))if(D=rO(O,"value")||"",g.Xl(aIi,D)){O=A+"."+aIi[D];f=D==="main";u=rO(h,u.T+":langName")||A+" - "+D;A=new g.kV(u,O,f);break a}A=void 0}}if(h=Ba(h,"ContentProtection"))if(h.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var x={};for(h=
h.firstChild;h!=null;h=h.nextSibling)h instanceof Element&&/SystemURL/.test(h.nodeName)&&(u=h.getAttribute("type"),O=h.textContent,u&&O&&(x[u]=O.trim()))}else x=void 0;return new VE(L,Z,{audio:I,video:J,tM:A,ji:x,G3:y,DR:p,contentLength:R})};
wPw=function(u){switch(u){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"}};
eTf=function(u){switch(u){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"}};
Wxf=function(u,h){h=h===void 0?"":h;u.state=1;u.jd=(0,g.vC)();return vx1(h||u.sourceUrl).then(function(L){if(!u.ww()){u.W_=L.status;L=L.responseText;var Z=new DOMParser;L=tw(Z,zjw(L),"text/xml").getElementsByTagName("MPD")[0];u.AB=hTe(rO(L,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(L.attributes){Z=g.C(L.attributes);for(var y=Z.next();!y.done;y=Z.next())if(y=y.value,y.value==="http://youtube.com/yt/2012/10/10"){Z=y.name.split(":")[1];break b}}Z=""}u.T=Z;u.isLive=u.AB<Infinity&&u.isLivePlayback;u.ZI=
Number(rO(L,u.T+":earliestMediaSequence"))||0;if(Z=Date.parse(LxL(rO(L,u.T+":mpdResponseTime"))))u.gw=((0,g.vC)()-Z)/1E3;u.isLive&&L.getElementsByTagName("SegmentTimeline").length<=0||g.vG(L.getElementsByTagName("Period"),u.OZA,u);u.state=2;u.publish("loaded");tie(u)}return u}).R5(function(L){if(L instanceof qI){var Z=L.xhr;
u.W_=Z.status}u.state=3;u.publish("loaderror");return PY(Z)})};
Fxw=function(u,h,L){return Wxf(new LS(u,h,L),u)};
J3=function(u){return u.isLive&&(0,g.vC)()-u.jd>=u.AB};
bli=function(u){u.C&&u.C.stop()};
tie=function(u){var h=u.AB;isFinite(h)&&(J3(u)?u.refresh():(h=Math.max(0,u.jd+h-(0,g.vC)()),u.C||(u.C=new g.EM(u.refresh,h,u),g.V(u,u.C)),u.C.start(h)))};
Exs=function(u){u=u.G;for(var h in u){var L=u[h].index;if(L.isLoaded())return L.Uk()+1}return 0};
Of=function(u){return u.mz?u.mz-(u.V||u.timestampOffset):0};
fS=function(u){return u.vX?u.vX-(u.V||u.timestampOffset):0};
Dp=function(u){if(!isNaN(u.DI))return u.DI;var h=u.G,L;for(L in h){var Z=h[L].index;if(Z.isLoaded()&&!WX(h[L].info)){h=0;for(L=Z.Sw();L<=Z.Uk();L++)h+=Z.getDuration(L);h/=Z.bK();h=Math.round(h/.5)*.5;Z.bK()>10&&(u.DI=h);return h}if(u.isLive&&(Z=h[L],Z.AS))return Z.AS}return NaN};
kas=function(u,h){u=$MY(u.G,function(Z){return Z.index.isLoaded()});
if(!u)return NaN;u=u.index;var L=u.K0(h);return u.getStartTime(L)===h?h:L<u.Uk()?u.getStartTime(L+1):NaN};
gxV=function(u,h){if(!u.G["0"]){var L=new VE("0","fakesb",{video:new BX(0,0,0,void 0,void 0,"auto")});u.G["0"]=h?new Ha(new g.cQ("http://www.youtube.com/videoplayback"),L,"fake"):new E4(new g.cQ("http://www.youtube.com/videoplayback"),L,new Cb(0,0),new Cb(0,0))}};
cW=function(u){if(u.isManifestless)for(var h in u.G)u.G[h].index.segments=[]};
IV=function(u,h,L){for(var Z in u.G){var y=WX(u.G[Z].info)||u.G[Z].info.Wr();if(L===y&&(y=u.G[Z].index)!=null){var R=VB(y,h);R>=0&&y.segments.splice(R,1)}}};
uOb=function(u){for(var h in u.G)WX(u.G[h].info)||OAn(u.G[h].index,Infinity)};
A3=function(u,h,L){for(var Z in u.G){var y=u.G[Z].index,R=h,p=L;y.Ty&&(R&&(y.TB=Math.max(y.TB,R)),p&&(y.Hb=Math.max(y.Hb||0,p)))}L&&(u.RH=L/1E3)};
jKw=function(u){u.vX=0;u.mz=0;u.vj=0};
xi=function(u){return u.VA&&u.isManifestless?u.isLiveHeadPlayable:u.isLive};
Zp=function(u,h,L){PW===null&&(PW=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(YFa&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return PW||L!=="9"&&L!=="("?PW||L!=="9h"&&L!=="(h"||(u='video/webm; codecs="vp9.2"'):u='video/webm; codecs="vp9"',u;if(!PW&&!CS||u!=='video/webm; codecs="vp9"'&&u!=='video/webm; codecs="vp9.2"')return u;
L="00";var Z="08",y="01",R="01",p="01";u==='video/webm; codecs="vp9.2"'&&(L="02",Z="10",h.primaries==="bt2020"&&(p=y="09"),h.N==="smpte2084"&&(R="16"),h.N==="arib-std-b67"&&(R="18"));return'video/webm; codecs="'+["vp09",L,"51",Z,"01",y,R,p,"00"].join(".")+'"'};
iG=function(u,h,L){u=""+u+(h>49?"p60":h>32?"p48":"");h=Ug()[u];if(h!=null&&h>0)return h;h=Mc.get(u);if(h!=null&&h>0)return h;L=L==null?void 0:L.get(u);return L!=null&&L>0?L:8192};
hEe=function(u){this.z7=u;this.Td=this.l8=this.aH=this.T=this.B=this.RH=this.wm=this.ZI=this.XB=!1;this.V=this.C=0;this.xl=!1;this.gw=!0;this.fI=!1;this.aM=0;this.ZP=this.T7=!1;this.jq=!0;this.VA=this.jd=!1;this.G={};this.vj=this.disableAv1=this.vJ=this.XN=this.e7=this.Ca=this.N=this.S=!1;this.Uo=this.z7.j("html5_disable_aac_preference");this.nH=Infinity;this.vX=0;this.mz=this.z7.UU();this.La=this.z7.experiments.tB("html5_enable_vp9_fairplay");this.A4=this.z7.j("html5_force_av1_for_testing");this.Sd=
g.Jl(this.z7.experiments,"html5_av1_ordinal_cap");this.qr=this.z7.j("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Oo=this.z7.j("html5_account_onesie_format_selection_during_format_filter");this.G3=g.Jl(this.z7.experiments,"html5_max_byterate");this.Y=this.z7.j("html5_sunset_aac_high_codec_family");this.DI=this.z7.j("html5_sunset_aac_high_codec_family");this.iP=this.z7.j("html5_enable_iamf_audio");this.Z1=this.z7.experiments.tB("html5_allow_capability_merge");this.eq=this.z7.j("html5_log_format_filter_rejection_reason_as_string");
this.Mr=this.z7.j("html5_prefer_vp9_sfr")};
glf=function(u){if(u.ZI)return["f"];var h="9h 9 h 8 (h ( H *".split(" ");u.T7&&(h.unshift("1"),h.unshift("1h"));u.l8&&h.unshift("h");u.AB&&(h=(LhV[u.AB]||[u.AB]).concat(h));return h};
tRY=function(u){var h=["o","a","A"];u.vX===1&&(u.RH&&(h=["m","M"].concat(h)),u.B&&(h=["mac3","MAC3"].concat(h)),u.T&&(h=["meac3","MEAC3"].concat(h)),u.iP&&(h=["i","I"].concat(h)));u.XB&&(h=["so","sa"].concat(h));!u.Td||u.aH||u.X||u.Uo||h.unshift("a");u.wm&&!u.Y&&h.unshift("ah");u.X&&(h=(LhV[u.X]||[u.X]).concat(h));return h};
Qo=function(u,h,L,Z){h=h===void 0?{}:h;if(Z===void 0?0:Z)return h.disabled=1,0;if(fk(u.T,D0.AV1_CODECS)&&fk(u.T,D0.HEIGHT)&&fk(u.T,D0.BITRATE))return h.isCapabilityUsable=1,8192;try{var y=okb();if(y)return h.localPref=y}catch(J){}Z=1080;y=navigator.hardwareConcurrency;y<=2&&(Z=480);h.coreCount=y;if(y=g.Jl(u.experiments,"html5_default_av1_threshold"))Z=h["default"]=y;!u.j("html5_disable_av1_arm_check")&&QgL()&&(h.isArm=1,Z=240);if(u=u.T.RH)h.mcap=u,Z=Math.max(Z,u);if(L){var R,p;if(u=(R=L.videoInfos.find(function(J){return wF(J)}))==
null?void 0:(p=R.N)==null?void 0:p.powerEfficient)Z=8192,h.isEfficient=1;
L=L.videoInfos[0].video;R=Math.min(iG("1",L.fps),iG("1",30));h.perfCap=R;Z=Math.min(Z,R);L.isHdr()&&!u&&(h.hdr=1,Z*=.75)}else L=iG("1",30),h.perfCap30=L,Z=Math.min(Z,L),L=iG("1",60),h.perfCap60=L,Z=Math.min(Z,L);return h.av1Threshold=Z};
lG=function(u,h,L,Z){this.flavor=u;this.keySystem=h;this.N=L;this.experiments=Z;this.G={};this.Sd=this.keySystemAccess=null;this.XC=this.Ob=-1;this.yf=null;this.X=!!Z&&Z.tB("edge_nonprefixed_eme");Z&&Z.tB("html5_enable_vp9_fairplay")};
XS=function(u){return u.X?!1:!u.keySystemAccess&&!!Sh()&&u.keySystem==="com.microsoft.playready"};
vW=function(u){return u.keySystem==="com.microsoft.playready"};
qc=function(u){return!u.keySystemAccess&&!!Sh()&&u.keySystem==="com.apple.fps.1_0"};
T9=function(u){return u.keySystem==="com.youtube.fairplay"};
Yi=function(u){return u.keySystem==="com.youtube.fairplay.sbdl"};
g.oV=function(u){return u.flavor==="fairplay"};
Sh=function(){var u=window,h=u.MSMediaKeys;$7()&&!h&&(h=u.WebKitMediaKeys);return h&&h.isTypeSupported?h:null};
Uf=function(u){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.TI&&!g.wg())return XL("45");if(g.$w||g.cx)return u.tB("edge_nonprefixed_eme");if(g.Nc)return XL("47");if(g.PC){if(u.tB("html5_enable_safari_fairplay"))return!1;if(u=g.Jl(u,"html5_safari_desktop_eme_min_version"))return XL(u)}return!0};
ZJL=function(u,h,L,Z){var y=ep(),R=(L=y||L&&$7())?["com.youtube.fairplay"]:["com.widevine.alpha"];h&&R.unshift("com.youtube.widevine.l3");y&&Z&&R.unshift("com.youtube.fairplay.sbdl");return L?R:u?[].concat(g.l(R),g.l(G9.playready)):[].concat(g.l(G9.playready),g.l(R))};
r2=function(){this.N=this.c6=0;this.G=Array.from({length:HW.length}).fill(0)};
y0f=function(){};
REs=function(){this.startTimeMs=(0,g.vC)();this.G=!1};
pmf=function(){this.G=new y0f};
Khb=function(u,h,L,Z){Z=Z===void 0?1:Z;L>=0&&(h in u.G||(u.G[h]=new r2),u.G[h].eb(L,Z))};
J0R=function(u,h,L,Z,y){var R=(0,g.vC)(),p=y?y(h):void 0,J;y=(J=p==null?void 0:p.c6)!=null?J:1;if(y!==0){var O;J=(O=p==null?void 0:p.profile)!=null?O:L;Khb(u,J,R-Z,y)}return h};
BW=function(u,h,L,Z,y){if(h&&typeof h==="object"){var R=function(p){return J0R(u,p,L,Z,y)};
if(jU(h))return h.then(R);if(OJb(h))return Rd(h,R)}return J0R(u,h,L,Z,y)};
f1e=function(){};
z9=function(u,h,L,Z,y){Z=Z===void 0?!1:Z;g.m.call(this);this.z7=h;this.useCobaltWidevine=Z;this.IH=y;this.N=[];this.X={};this.G={};this.callback=null;this.T=!1;this.B=[];this.initialize(u,!L)};
c0Y=function(u,h){u.callback=h;u.B=[];Uf(u.z7.experiments)?mk(u):DAw(u)};
mk=function(u){if(!u.ww())if(u.N.length===0)u.callback(u.B);else{var h=u.N[0],L=u.X[h],Z=I1s(u,L);if(d2&&d2.keySystem===h&&d2.BOw===JSON.stringify(Z))u.IH("remksa",{re:!0}),A0n(u,L,d2.keySystemAccess);else{var y,R;u.IH("remksa",{re:!1,ok:(R=(y=d2)==null?void 0:y.keySystem)!=null?R:""});d2=void 0;(Vo.isActive()?Vo.G6("emereq",function(){return navigator.requestMediaKeySystemAccess(h,Z)}):navigator.requestMediaKeySystemAccess(h,Z)).then(Dc(function(p){A0n(u,L,p,Z)}),Dc(function(){u.T=!u.T&&u.X[u.N[0]].flavor===
"widevine";
u.T||u.N.shift();mk(u)}))}}};
A0n=function(u,h,L,Z){if(!u.ww()){Z&&(d2={keySystem:h.keySystem,keySystemAccess:L,BOw:JSON.stringify(Z)});h.keySystemAccess=L;if(vW(h)){L=vX();Z=g.C(Object.keys(u.G[h.flavor]));for(var y=Z.next();!y.done;y=Z.next())y=y.value,h.G[y]=!!L.canPlayType(y)}else{L=h.keySystemAccess.getConfiguration();if(L.audioCapabilities)for(Z=g.C(L.audioCapabilities),y=Z.next();!y.done;y=Z.next())xAs(u,h,y.value);if(L.videoCapabilities)for(L=g.C(L.videoCapabilities),Z=L.next();!Z.done;Z=L.next())xAs(u,h,Z.value)}u.B.push(h);
u.useCobaltWidevine||u.j("html5_enable_vp9_fairplay")&&Yi(h)?(u.N.shift(),mk(u)):u.callback(u.B)}};
xAs=function(u,h,L){u.j("log_robustness_for_drm")?h.G[L.contentType]=L.robustness||!0:h.G[L.contentType]=!0};
I1s=function(u,h){var L={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(u.j("html5_enable_vp9_fairplay")&&T9(h))return L.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),L.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[L];vW(h)&&(L.initDataTypes=["keyids","cenc"]);for(var Z=g.C(Object.keys(u.G[h.flavor])),y=Z.next();!y.done;y=Z.next()){y=y.value;var R=y.indexOf("audio/")===0,p=R?L.audioCapabilities:L.videoCapabilities;h.flavor!==
"widevine"||u.T?p.push({contentType:y}):R?p.push({contentType:y,robustness:"SW_SECURE_CRYPTO"}):(g.TI&&g.nP("windows nt")&&!u.j("html5_drm_enable_moho")||p.push({contentType:y,robustness:"HW_SECURE_ALL"}),R=y,u.j("html5_enable_cobalt_experimental_vp9_decoder")&&y.includes("vp09")&&(R=y+"; experimental=allowed"),p.push({contentType:R,robustness:"SW_SECURE_DECODE"}),nS(u.z7)==="MWEB"&&(k7()||sJ())&&(u.IH("swcrypto",{}),p.push({contentType:y,robustness:"SW_SECURE_CRYPTO"})))}return[L]};
DAw=function(u){if(Sh()&&(g.PC||WS&&u.j("html5_drm_support_ios_mweb")))u.B.push(new lG("fairplay","com.apple.fps.1_0","",u.z7.experiments));else{var h=PQn(),L=g.Fg(u.N,function(Z){var y=u.X[Z],R=!1,p=!1,J;for(J in u.G[y.flavor])h(J,Z)&&(y.G[J]=!0,R=R||J.indexOf("audio/")===0,p=p||J.indexOf("video/")===0);return R&&p});
L&&u.B.push(u.X[L]);u.N=[]}u.callback(u.B)};
PQn=function(){var u=Sh();if(u){var h=u.isTypeSupported;return function(Z,y){return h(y,Z)}}var L=vX();
return L&&(L.addKey||L.webkitAddKey)?function(Z,y){return!!L.canPlayType(Z,y)}:function(){return!1}};
CQR=function(u){this.experiments=u;this.G=2048;this.B=0;this.RH=(this.Y=this.j("html5_streaming_resilience"))?.5:.25;var h=h===void 0?0:h;this.X=g.Jl(this.experiments,"html5_media_time_weight_prop")||h;this.T=this.j("html5_app_limited_aware_bwe");this.gw=g.Jl(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.XB=(this.C=this.experiments.tB("html5_consider_end_stall"))&&sf;this.N=this.experiments.tB("html5_measure_max_progress_handling");this.AB=this.j("html5_treat_requests_pre_elbow_as_metadata");
this.V=this.j("html5_media_time_weight")||!!this.X;this.S=g.Jl(this.experiments,"html5_streaming_fallback_byterate");this.j("html5_sabr_live_audio_early_return_fix")&&sf&&(this.G=65536)};
MuR=function(u,h){this.G=void 0;this.experimentIds=u?u.split(","):[];this.flags=gv(h||"","&");u={};h=g.C(this.experimentIds);for(var L=h.next();!L.done;L=h.next())u[L.value]=!0;this.experiments=u};
g.Jl=function(u,h){u=u.flags[h];JSON.stringify(u);return Number(u)||0};
w2=function(u,h){return(u=u.flags[h])?u.toString():""};
iJR=function(u){if(u=u.flags.html5_web_po_experiment_ids)if(u=u.replace(/\[ *(.*?) *\]/,"$1"))return u.split(",").map(Number);return[]};
QK1=function(u){if(u.G)return u.G;if(u.experimentIds.length<=1)return u.G=u.experimentIds,u.G;var h=[].concat(g.l(u.experimentIds)).map(function(Z){return Number(Z)});
h.sort();for(var L=h.length-1;L>0;--L)h[L]-=h[L-1];u.G=h.map(function(Z){return Z.toString()});
u.G.unshift("v1");return u.G};
Sll=function(u){return l1b.then(u)};
eh=function(u,h,L){this.experiments=u;this.DI=h;this.T7=L===void 0?!1:L;this.AB=!!g.wn("cast.receiver.platform.canDisplayType");this.S={};this.V=!1;this.N=new Map;this.C=!0;this.X=this.B=!1;this.G=new Map;this.RH=0;this.XB=this.experiments.tB("html5_disable_vp9_encrypted");u=g.wn("cast.receiver.platform.getValue");this.gw=g.Jl(this.experiments,"html5_kaios_max_resolution");this.T=!this.AB&&u&&u("max-video-resolution-vpx")||null;XmV(this)};
h61=function(u,h,L){L=L===void 0?1:L;var Z=h.itag;if(Z==="0")return!0;var y=h.mimeType;if(h.d1()&&ep()&&u.experiments.tB("html5_appletv_disable_vp9"))return"dwebm";if(wF(h)&&u.V)return"dav1";if(h.video&&(h.video.isHdr()||h.video.primaries==="bt2020")&&!(fk(u,D0.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(Z==="338"&&!(g.TI?XL(53):g.Nc&&XL(64)))return"dopus";
var R;if(u.gw&&aV&&((R=h.video)==null?void 0:R.G)>u.gw)return"kaios";R=L;R=R===void 0?1:R;L={};h.video&&(h.video.width&&(L[D0.WIDTH.name]=h.video.width),h.video.height&&(L[D0.HEIGHT.name]=h.video.height),h.video.fps&&(L[D0.FRAMERATE.name]=h.video.fps*R),h.video.N&&(L[D0.EOTF.name]=h.video.N),h.G3&&(L[D0.BITRATE.name]=h.G3*8*R),h.QA==="("&&(L[D0.CRYPTOBLOCKFORMAT.name]="subsample"),h.video.projectionType==="EQUIRECTANGULAR"||h.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||h.video.projectionType===
"MESH")&&(L[D0.DECODETOTEXTURE.name]="true");h.audio&&h.audio.numChannels&&(L[D0.CHANNELS.name]=h.audio.numChannels);u.B&&nA(h)&&(L[D0.EXPERIMENTAL.name]="allowed");R=g.C(Object.keys(D0));for(var p=R.next();!p.done;p=R.next()){p=D0[p.value];var J;if(J=L[p.name])if(J=!(p===D0.EOTF&&h.mimeType.indexOf("vp09.02")>0)){J=p;var O=h;J=!(u.experiments.tB("html5_ignore_h264_framerate_cap")&&J===D0.FRAMERATE&&ckn(O))}if(J)if(fk(u,p))if(u.T){if(u.T[p.name]<L[p.name])return p.name}else y=y+"; "+p.name+"="+L[p.name];
else if(sN(h)&&p===D0.EOTF)return"dvp92"}u.AB&&h.video&&h.video.G>1080&&h.ji&&(y+="; hdcp=2.2");return Z==="227"?"hqcenc":Z!=="585"&&Z!=="588"&&Z!=="583"&&Z!=="586"&&Z!=="584"&&Z!=="587"&&Z!=="591"&&Z!=="592"||u.experiments.tB("html5_enable_new_hvc_enc")?u.isTypeSupported(y)?!0:"tpus":"newhvc"};
$i=function(){var u=sJ()&&!XL(29),h=g.nP("google tv")&&g.nP("chrome")&&!XL(30);return u||h?!1:CiY()};
vGa=function(u,h,L){var Z=480;h=g.C(h);for(var y=h.next();!y.done;y=h.next()){y=y.value;var R=y.video.G;R<=1080&&R>Z&&h61(u,y,L)===!0&&(Z=R)}return Z};
g.t3=function(u,h){h=h===void 0?!1:h;return $i()&&u.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!h&&u.canPlayType(vX(),"application/x-mpegURL")?!0:!1};
TXl=function(u){qlf(function(){for(var h=g.C(Object.keys(D0)),L=h.next();!L.done;L=h.next())fk(u,D0[L.value])})};
fk=function(u,h){h.name in u.S||(u.S[h.name]=Ylj(u,h));return u.S[h.name]};
Ylj=function(u,h){if(u.T)return!!u.T[h.name];if(h===D0.BITRATE&&u.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!u.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(h===D0.AV1_CODECS)return u.isTypeSupported("video/mp4; codecs="+h.valid)&&!u.isTypeSupported("video/mp4; codecs="+h.YD);if(h.video){var L='video/webm; codecs="vp9"';u.isTypeSupported(L)||(L='video/mp4; codecs="avc1.4d401e"')}else L='audio/webm; codecs="opus"',
u.isTypeSupported(L)||(L='audio/mp4; codecs="mp4a.40.2"');return u.isTypeSupported(L+"; "+h.name+"="+h.valid)&&!u.isTypeSupported(L+"; "+h.name+"="+h.YD)};
oGj=function(u){u.B||(u.B=!0,WW(u))};
WW=function(u){u.X=!0;u.experiments.tB("html5_ssap_update_capabilities_on_change")&&NXf(u)};
UAf=function(u,h){var L=0;u.N.has(h)&&(L=u.N.get(h).fD);u.N.set(h,{fD:L+1,V0:Math.pow(2,L+1)});WW(u)};
pk=function(u){for(var h=[],L=g.C(u.G.keys()),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var y=u.G.get(Z);h.push(Z+"_"+y.maxWidth+"_"+y.maxHeight)}return h.join(".")};
NXf=function(u){u.Y=[];for(var h=g.C(u.G.values()),L=h.next();!L.done;L=h.next()){L=L.value;var Z=L.QA;u.experiments.tB("html5_ssap_force_mp4_aac")&&Z!=="a"&&Z!=="h"||u.N.has(Z)||(!u.V||Z!=="1"&&Z!=="1h")&&u.Y.push(L)}};
WFe=function(u,h){for(var L=new Map,Z=g.C(u.G.keys()),y=Z.next();!y.done;y=Z.next()){y=y.value;var R=y.split("_")[0];h.has(R)||L.set(y,u.G.get(y))}u.G=L};
b2s=function(u,h,L){var Z,y=((Z=L.video)==null?void 0:Z.fps)||0;Z=h+"_"+y;var R=!!L.audio,p={itag:L.itag,QA:h,GD:R};if(R)p.numChannels=L.audio.numChannels;else{var J=L.video;p.maxWidth=J==null?void 0:J.width;p.maxHeight=J==null?void 0:J.height;p.maxFramerate=y;fk(u,D0.BITRATE)&&(p.maxBitrateBps=L.G3*8);p.MQ=J==null?void 0:J.isHdr()}J=u.G.get(Z);J?R||(L=Math.max(J.maxWidth||0,J.maxHeight||0)>Math.max(p.maxWidth||0,p.maxHeight||0)?J:p,h={itag:L.itag,QA:h,GD:R,maxWidth:Math.max(J.maxWidth||0,p.maxWidth||
0),maxHeight:Math.max(J.maxHeight||0,p.maxHeight||0),maxFramerate:y,MQ:L.MQ},fk(u,D0.BITRATE)&&(h.maxBitrateBps=L.maxBitrateBps),u.G.set(Z,h)):u.G.set(Z,p)};
Els=function(u,h,L){var Z,y=((Z=L.video)==null?void 0:Z.fps)||0;Z=h+"_"+y;var R=!!L.audio,p=u.G.get(Z);a:{var J=u.G.get(Z),O=!!L.audio;if(J){if(O){var f=!1;break a}var D;if(!O&&((f=L.video)==null?0:f.height)&&J.maxHeight&&J.maxHeight>=((D=L.video)==null?void 0:D.height)){f=!1;break a}}f=!0}f&&(f=L.itag,h=p?p:{itag:f,QA:h,GD:R},R?h.numChannels=L.audio.numChannels:(R=L.video,h.maxWidth=R==null?void 0:R.width,h.maxHeight=R==null?void 0:R.height,h.maxFramerate=y,fk(u,D0.BITRATE)&&(h.maxBitrateBps=L.G3*
8),h.MQ=R==null?void 0:R.isHdr()),u.G.set(Z,h))};
XmV=function(u){var h;(h=navigator.mediaCapabilities)!=null&&h.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(L){L.smooth&&L.powerEfficient&&(u.RH=2160)})};
FS=function(){g.yV.call(this);this.items={}};
bG=function(){g.MQ.apply(this,arguments)};
Ef=function(){g.ic.apply(this,arguments)};
GKV=function(u,h,L){this.encryptedClientKey=h;this.T=L;this.G=new Uint8Array(u.buffer,0,16);this.X=new Uint8Array(u.buffer,16)};
HJi=function(u){u.N||(u.N=new bG(u.G));return u.N};
ki=function(u){try{return Qu(u)}catch(h){return null}};
r0b=function(u,h){if(!h&&u)try{h=JSON.parse(u)}catch(y){}if(h){u=h.clientKey?ki(h.clientKey):null;var L=h.encryptedClientKey?ki(h.encryptedClientKey):null,Z=h.keyExpiresInSeconds?Number(h.keyExpiresInSeconds)*1E3+(0,g.vC)():null;u&&L&&Z&&(this.G=new GKV(u,L,Z));h.onesieUstreamerConfig&&(this.onesieUstreamerConfig=ki(h.onesieUstreamerConfig)||void 0);this.baseUrl=h.baseUrl}};
u9=function(){this.data=new Uint8Array(2048);this.pos=0;g2||(g2=qj("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))};
jJ=function(u,h){u.add(h==null||isNaN(h)?0:h+1)};
hz=function(u){this.G=this.N=0;this.alpha=Math.exp(Math.log(.5)/u)};
LC=function(u){this.N=u===void 0?15:u;this.values=new Float64Array(176);this.G=new Float64Array(11);this.X=new Float64Array(16)};
Zr=function(u,h,L,Z){L=L===void 0?.5:L;Z=Z===void 0?0:Z;this.resolution=h;this.N=0;this.X=!1;this.q9=!0;this.G=Math.round(u*this.resolution);this.values=Array(this.G);for(u=0;u<this.G;u++)this.values[u]=Infinity;this.T=BXV(this);this.B=L;this.C=Z};
BXV=function(u){for(var h=Array(u.G),L=0;L<u.G;L++)h[L]=L;return h};
y6=function(u,h,L){g.m.call(this);this.policy=u;this.N=h;this.pH=L;this.XB=this.jd=0;this.RH=-1;this.gw=this.T=0;this.AB=!1;this.interruptions=[];this.B=[{stamp:0,net:0,max:0}];this.vX=this.C=(0,g.vC)();this.S=new Zr(4,1,.6,.4);this.DI=new Zr(4,1,.6,.4);this.V=new Zr(20,1,.5,.4);u.RH?this.X=new LC(u.G):u.N?this.X=new hz(u.G):this.X=new Zr(u.G,20,.5,.4);this.T7=new Zr(5,1,.25);this.Y=new Zr(30,1,.5);u=g.Gj("yt-player-bandwidth")||{};h=this.policy.X;if(u.byterate>0)h=u.byterate,this.AB=!0;else{var Z;
L=(((Z=navigator.connection)==null?void 0:Z.downlink)||0)*64*1024;L>0&&(h=L,this.AB=!0)}this.X.mO(this.policy.C,h);u.delay>0&&this.S.mO(1,Math.min(u.delay,2));u.stall>0&&this.V.mO(1,u.stall);u.init>0&&(this.vX=Math.min(u.init,this.vX));u.interruptions&&(this.B=this.B.concat(u.interruptions),this.B.length>16&&this.B.pop());this.RH=(0,g.vC)();this.policy.V>0&&(this.aH=new g.EM(this.VA,this.policy.V,this),g.V(this,this.aH),this.aH.start())};
RL=function(u,h,L,Z){u.X.mO(Z===void 0?h:Z,L/h);u.C=(0,g.vC)()};
zEY=function(u){u.T||(u.T=(0,g.vC)());u.policy.Y&&(u.C=(0,g.vC)())};
mAe=function(u,h){if(u.T){var L=h-u.T;if(L<6E4){if(L>1E3){var Z=u.interruptions;Z.push(Math.ceil(L));Z.sort(function(y,R){return R-y});
Z.length>16&&Z.pop()}u.gw+=L}}u.T=h};
pC=function(u,h,L,Z,y,R){R=R===void 0?!1:R;u.T7.mO(h,L/h);u.C=(0,g.vC)();y||u.Y.mO(1,h-Z);R||(u.T=0);u.RH>-1&&(0,g.vC)()-u.RH>3E4&&dAf(u)};
KC=function(u,h,L){h=Math.max(h,u.N.G);u.V.mO(1,L/h)};
Jz=function(u){u=u.S.NO()+u.DI.NO()||0;u=isNaN(u)?.5:u;return u=Math.min(u,5)};
Ob=function(u,h,L){isNaN(L)||(u.XB+=L);isNaN(h)||(u.jd+=h)};
fC=function(u){u=u.X.NO();return u>0?u:1};
Dr=function(u,h,L){h=h===void 0?!1:h;L=L===void 0?1048576:L;var Z=fC(u);Z=1/((u.V.NO()||0)*u.policy.AB+1/Z);var y=u.T7.NO();y=y>0?y:1;var R=Math.max(Z,y);u.policy.T>0&&y<Z&&(R=Math.min(u.policy.T,1),R=(1-R)*Z+R*y);if(!h)return R;h=1E-9+Jz(u);L=R*Math.min(1,L/(R*h));u.policy.B||(u=((u.Y.percentile(.98)||0)-1)/2,u=Math.max(0,Math.min(1,u)),L*=1-.5*u);return L};
VuY=function(u){var h={delay:Jz(u),stall:u.V.NO()||0,byterate:fC(u),init:u.vX},L=u.B[0];L.stamp=Math.round(u.C/36E5)*36E5;L.net=Math.ceil(u.gw);L.max=u.interruptions[0]||0;h.interruptions=u.B;return h};
dAf=function(u){g.UO("yt-player-bandwidth",VuY(u),2592E3);u.RH=(0,g.vC)();u.AB=!0};
c$=function(u){return(0,g.vC)()-u.C>=4E3};
nGe=function(u){this.experiments=u;this.G=17;this.X=13E4;this.C=.5;this.N=!1;this.RH=this.j("html5_use_histogram_for_bandwidth");this.B=!1;this.T=g.Jl(this.experiments,"html5_auxiliary_estimate_weight");this.AB=g.Jl(this.experiments,"html5_stall_factor")||1;this.V=g.Jl(this.experiments,"html5_check_for_idle_network_interval_ms");this.S=this.experiments.tB("html5_trigger_loader_when_idle_network");this.Y=this.experiments.tB("html5_sabr_fetch_on_idle_network_preloaded_players")};
wmn=function(u,h){u=u===void 0?{}:u;h=h===void 0?{}:h;g.m.call(this);var L=this;this.values=u;this.Az=h;this.N={};this.X=this.G=0;this.B=new g.EM(function(){sKs(L)},1E4);
g.V(this,this.B)};
IL=function(u,h){eEL(u,h);return u.values[h]&&u.Az[h]?u.values[h]/Math.pow(2,u.G/u.Az[h]):0};
eEL=function(u,h){u.values[h]||(h=vkj(),u.values=h.values||{},u.Az=h.halfLives||{},u.N=h.values?Object.assign({},h.values):{})};
sKs=function(u){var h=vkj();if(h.values){h=h.values;for(var L={},Z=g.C(Object.keys(u.values)),y=Z.next();!y.done;y=Z.next())y=y.value,h[y]&&u.N[y]&&(u.values[y]+=h[y]-u.N[y]),L[y]=IL(u,y);u.N=L}h=u.Az;L={};L.values=u.N;L.halfLives=h;g.UO("yt-player-memory",L,2592E3)};
H$=function(u,h,L,Z,y){g.m.call(this);this.webPlayerContextConfig=h;this.Kg=Z;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.iX=this.La=this.ZI=this.oM=this.userDisplayName=this.userDisplayImage=this.Th="";this.G={};this.mz={};this.controlsType="0";this.Oo=NaN;this.e7=!1;this.Zg=(0,g.vC)();this.iP=0;this.Cg=this.Wp=!1;this.B6=!0;this.preferGapless=this.gD=this.jx=this.X=this.l9=this.ol=!1;this.Km=[];this.J4=!1;u=u?g.No(u):{};h&&h.csiPageType&&(this.csiPageType=h.csiPageType);h&&h.csiServiceName&&
(this.csiServiceName=h.csiServiceName);h&&h.preferGapless&&(this.preferGapless=h.preferGapless);this.experiments=new MuR(h?h.serializedExperimentIds:u.fexp,h?h.serializedExperimentFlags:u.fflags);this.forcedExperiments=h?h.serializedForcedExperimentIds:ZD("",u.forced_experiments)||void 0;this.cspNonce=(h==null?0:h.cspNonce)?h.cspNonce:ZD("",u.csp_nonce);this.j("web_player_deprecated_uvr_killswitch");try{var R=document.location.toString()}catch(t){R=""}this.A4=R;this.ancestorOrigins=(Z=window.location.ancestorOrigins)?
Array.from(Z):[];this.B=jt(!1,h?h.isEmbed:u.is_embed);if(h&&h.device){if(Z=h.device,Z.androidOsExperience&&(this.G.caoe=""+Z.androidOsExperience),Z.androidPlayServicesVersion&&(this.G.capsv=""+Z.androidPlayServicesVersion),Z.brand&&(this.G.cbrand=Z.brand),Z.browser&&(this.G.cbr=Z.browser),Z.browserVersion&&(this.G.cbrver=Z.browserVersion),Z.cobaltReleaseVehicle&&(this.G.ccrv=""+Z.cobaltReleaseVehicle),this.G.c=Z.interfaceName||"WEB",this.G.cver=Z.interfaceVersion||"html5",Z.interfaceTheme&&(this.G.ctheme=
Z.interfaceTheme),this.G.cplayer=Z.interfacePlayerType||"UNIPLAYER",Z.model&&(this.G.cmodel=Z.model),Z.network&&(this.G.cnetwork=Z.network),Z.os&&(this.G.cos=Z.os),Z.osVersion&&(this.G.cosver=Z.osVersion),Z.platform&&(this.G.cplatform=Z.platform),R=w2(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),R==="all"||R==="once")Z.chipset&&(this.mz.cchip=Z.chipset),Z.cobaltAppVersion&&(this.mz.ccappver=Z.cobaltAppVersion),Z.firmwareVersion&&(this.mz.cfrmver=Z.firmwareVersion),Z.deviceYear&&(this.mz.crqyear=
Z.deviceYear)}else this.G.c=u.c||"web",this.G.cver=u.cver||"html5",this.G.cplayer="UNIPLAYER";this.loaderUrl=h?this.B||a1a(this)&&h.loaderUrl?h.loaderUrl||"":this.A4:this.B||a1a(this)&&u.loaderUrl?ZD("",u.loaderUrl):this.A4;this.B&&g.nV("yt.embedded_player.embed_url",this.loaderUrl);this.V=Ws(this.loaderUrl,$AV);Z=this.loaderUrl;var p=p===void 0?!1:p;this.jK=tl(Ws(Z,tuw),Z,p,"Trusted Ad Domain URL");this.vj=jt(!1,u.privembed);this.protocol=this.A4.indexOf("http:")===0?"http":"https";this.a7=FM((h?
h.customBaseYoutubeUrl:u.BASE_YT_URL)||"")||FM(this.A4)||this.protocol+"://www.youtube.com/";p=h?h.eventLabel:u.el;Z="detailpage";p==="adunit"?Z=this.B?"embedded":"detailpage":p==="embedded"||this.V?Z=h2(Z,p,Whi):p&&(Z="embedded");this.DI=Z;GTe();p=null;Z=h?h.playerStyle:u.ps;R=g.E8(FhL,Z);!Z||R&&!this.V||(p=Z);this.playerStyle=p;this.C=g.E8(FhL,this.playerStyle);this.houseBrandUserStatus=h==null?void 0:h.houseBrandUserStatus;this.RH=this.C&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";
this.kU=!this.RH;this.vX=jt(!1,u.disableplaybackui);this.disablePaidContentOverlay=jt(!1,h==null?void 0:h.disablePaidContentOverlay);this.disableSeek=jt(!1,h==null?void 0:h.disableSeek);this.enableSpeedOptions=(h==null?void 0:h.enableSpeedOptions)||(vX().defaultPlaybackRate?Az||g.EJ||aV?g.Nc&&XL("20")||g.TI&&XL("4")||g.P$&&XL("11")||t5():!(g.P$&&!g.nP("chrome")||Az||g.nP("android")||g.nP("silk")):!1);this.Lm=jt(!1,u.enable_faster_speeds);var J;this.supportsVarispeedExtendedFeatures=(J=h==null?void 0:
h.supportsVarispeedExtendedFeatures)!=null?J:!1;this.N=jt(this.playerStyle==="blazer",u.is_html5_mobile_device||h&&h.isMobileDevice);this.jd=bA()||k7();this.CE=this.j("mweb_allow_background_playback")?!1:this.N&&!this.C;this.aH=NK();this.r6=g.CC;var O;this.wD=!!(h==null?0:(O=h.embedsHostFlags)==null?0:O.optOutApiDeprecation);var f;this.Hp=!!(h==null?0:(f=h.embedsHostFlags)==null?0:f.allowPfpImaIntegration);this.qU=this.j("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var D;h?h.hideInfo!==
void 0&&(D=!h.hideInfo):D=u.showinfo;this.KY=g.MW(this)&&!this.wD||jt(!i9(this)&&!Q6(this)&&!this.C,D);this.T2=h?!!h.mobileIphoneSupportsInlinePlayback:jt(!1,u.playsinline);J=this.N&&l9&&SJ!=null&&SJ>0&&SJ<=2.3;O=h?h.useNativeControls:u.use_native_controls;this.S=g.MW(this)&&this.N;f=this.N&&!this.S;O=g.Xp(this)||!J&&jt(f,O)?"3":"1";this.disableOrganicUi=!(h==null||!h.disableOrganicUi);f=h?h.controlsType:u.controls;this.controlsType=this.disableOrganicUi?"0":f!=="0"&&f!==0?O:"0";this.Be=this.N;this.color=
h2("red",h?h.progressBarColor:u.color,bJn);this.fE=this.controlsType==="3";this.nH=!this.B;this.zy=(O=!this.nH&&!Q6(this)&&!this.RH&&!this.C&&!i9(this))&&!this.fE&&this.controlsType==="1";this.Z1=g.v$(this)&&O&&this.controlsType==="0"&&!this.zy&&!(h==null?0:h.embedsEnableEmc3ds);this.aC=this.eO=J;this.Td=(this.controlsType==="3"||this.N||jt(!1,u.use_media_volume))&&!this.S;this.gN=WS&&!g.Cw(601)?!1:!0;this.I8=this.B||!1;this.Sd=Q6(this)?"":(this.loaderUrl||u.post_message_origin||"").substring(0,128);
this.widgetReferrer=ZD("",h?h.widgetReferrer:u.widget_referrer);var c;h?h.disableCastApi&&(c=!1):c=u.enablecastapi;c=!this.V||jt(!0,c);J=!0;h&&h.disableMdxCast&&(J=!1);this.xo=this.j("enable_cast_for_web_unplugged")&&g.qW(this)&&J||g.rp(this)&&J||c&&J&&this.controlsType==="1"&&!this.N&&(Q6(this)||g.v$(this)||g.Tg(this));this.T6=!!window.document.pictureInPictureEnabled||on();c=h?!!h.supportsAutoplayOverride:jt(!1,u.autoplayoverride);this.Qs=!(this.N&&!g.MW(this))&&!g.nP("nintendo wiiu")||c;this.Cr=
(h?!!h.enableMutedAutoplay:jt(!1,u.mutedautoplay))&&!1;c=(Q6(this)||i9(this))&&this.playerStyle==="blazer";this.RF=h?!!h.disableFullscreen:!jt(!0,u.fs);J=g.KF(g.Yy(this))&&g.MW(this);this.Ca=!this.RF&&(c||g.A2())&&!J;c=sJ()&&XL(58)&&!k7();J=ai||typeof MediaSource==="undefined";this.SY=this.j("uniplayer_block_pip")&&(c||J)||this.j("html5_disable_pip_with_standard_api");c=g.MW(this)&&!this.wD;var I;h?h.disableRelatedVideos!==void 0&&(I=!h.disableRelatedVideos):I=u.rel;this.jq=c||jt(!this.C,I);this.a5=
jt(!1,h?h.enableContentOwnerRelatedVideos:u.co_rel);this.Y=k7()&&SJ>0&&SJ<=4.4?"_top":"_blank";this.h4=g.Tg(this);this.zG=jt(this.playerStyle==="blazer",h?h.enableCsiLogging:u.enablecsi);switch(this.playerStyle){case "blogger":I="bl";break;case "gmail":I="gm";break;case "gac":I="ga";break;case "books":I="gb";break;case "docs":case "flix":I="gd";break;case "duo":I="gu";break;case "google-live":I="gl";break;case "google-one":I="go";break;case "play":I="gp";break;case "chat":I="hc";break;case "hangouts-meet":I=
"hm";break;case "photos-edu":case "picasaweb":I="pw";break;default:I="yt"}this.AB=I;this.XB=ZD("",h?h.authorizedUserIndex:u.authuser);this.eq=g.MW(this)&&(this.vj||!MBj()||this.jd);var A;h?h.disableWatchLater!==void 0&&(A=!h.disableWatchLater):A=u.showwatchlater;this.qr=((I=!this.eq)||!!this.XB&&I)&&jt(!this.RH,this.V?A:void 0);this.Uo=h?h.isMobileDevice||!!h.disableKeyboardControls:jt(!1,u.disablekb);this.loop=jt(!1,u.loop);this.pageId=ZD("",h?h.initialDelegatedSessionId:u.pageid);this.Cv=jt(!0,
u.canplaylive);this.fI=jt(!1,u.livemonitor);this.disableSharing=jt(this.C,h?h.disableSharing:u.ss);(A=h&&this.j("fill_video_container_size_override_from_wpcc")?h.videoContainerOverride:u.video_container_override)?(I=A.split("x"),I.length!==2?A=null:(A=Number(I[0]),I=Number(I[1]),A=isNaN(A)||isNaN(I)||A*I<=0?null:new g.II(A,I))):A=null;this.K3=A;this.mute=h?!!h.startMuted:jt(!1,u.mute);this.storeUserVolume=!this.mute&&jt(this.controlsType!=="0",h?h.storeUserVolume:u.store_user_volume);A=h?h.annotationsLoadPolicy:
u.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:h2(void 0,A,oL);this.captionsLanguagePreference=h?h.captionsLanguagePreference||"":ZD("",u.cc_lang_pref);A=h2(2,h?h.captionsLanguageLoadPolicy:u.cc_load_policy,oL);this.controlsType==="3"&&A===2&&(A=3);this.vJ=A;this.wm=h?h.hl||"en_US":ZD("en_US",u.hl);this.region=h?h.contentRegion||"US":ZD("US",u.cr);this.hostLanguage=h?h.hostLanguage||"en":ZD("en",u.host_language);this.sF=!this.vj&&Math.random()<g.Jl(this.experiments,"web_player_api_logging_fraction");
this.VA=!this.vj;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(h==null||!h.deviceIsAudioOnly);this.Oo=LF(this.Oo,u.ismb);this.kU?(A=u.vss_host||"s.youtube.com",A==="s.youtube.com"&&(A=NW(this.a7)||"www.youtube.com")):A="video.google.com";this.De=A;Ub(this,u,!0);this.T7=new FS;g.V(this,this.T7);I=h?h.innertubeApiKey:ZD("",u.innertube_api_key);c=h?h.innertubeApiVersion:ZD("",u.innertube_api_version);A=h?h.innertubeContextClientVersion:ZD("",u.innertube_context_client_version);I=g.tn("INNERTUBE_API_KEY")||
I;c=g.tn("INNERTUBE_API_VERSION")||c;J=g.tn("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");O=nS(this);f=typeof this.G.c==="number"?Number(this.G.c):Object.keys(EGR).indexOf(this.G.c);this.u9={innertubeApiKey:I,innertubeApiVersion:c,SU:J,mP:O,tZ:f,innertubeContextClientVersion:g.tn("INNERTUBE_CONTEXT_CLIENT_VERSION")||A,GS:this.hostLanguage,eL:this.region,hZ:g.tn("INNERTUBE_HOST_OVERRIDE")||"",f2:!!g.tn("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),pXw:!!g.tn("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};
this.yf=window.WebKitPlaybackTargetAvailabilityEvent!=null;this.T=new eh(this.experiments,this.j("html5_force_hfr_support")?!0:lN(this)||aJ()||l8V()||kK1(this),g.TI&&g.Cw(56)||g.Nc&&g.Cw(54)||this.j("html5_force_vp9_subsample_encryption_support")||kK1(this));A=g.SM(this);I=this.Oo;c=this.experiments;J=new nGe(c);A&&(J.N=!0,J.C=.1);c.tB("html5_media_time_weight")&&(J.N=!1);I&&(J.X=I/8);J.B=od()>=480;this.schedule=new y6(J,new CQR(this.experiments),y);g.V(this,this.schedule);var x;this.enableSafetyMode=
(x=h==null?void 0:h.initialEnableSafetyMode)!=null?x:jt(!1,u.enable_safety_mode);y=this.vX?!1:Q6(this)&&this.playerStyle!=="blazer";var Q;h?h.disableAutonav!=null&&(Q=!h.disableAutonav):Q=u.allow_autonav;this.XN=jt(y,!this.RH&&Q);this.sendVisitorIdHeader=h?!!h.sendVisitorIdHeader:jt(!1,u.send_visitor_id_header);var S;this.playerStyle==="docs"&&(h?S=h.disableNativeContextMenu:S=u.disable_native_context_menu);this.disableNativeContextMenu=jt(!1,S);this.S3=lN(this)&&this.j("enable_skip_intro_button");
this.embedConfig=ZD("",h?h.serializedEmbedConfig:u.embed_config);this.gw=pF(u,g.MW(this));this.X=this.gw==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(h==null||!h.embedsErrorLinks);this.dD=jt(!1,u.full_window);var v;this.xl=!((v=this.webPlayerContextConfig)==null?0:v.chromeless);var T;this.livingRoomAppMode=h2("LIVING_ROOM_APP_MODE_UNSPECIFIED",u.living_room_app_mode||(h==null?void 0:(T=h.device)==null?void 0:T.livingRoomAppMode),gGn);var U;Q=LF(NaN,h==null?void 0:(U=h.device)==null?void 0:
U.deviceYear);isNaN(Q)||(this.deviceYear=Q);this.transparentBackground=h?!!h.transparentBackground:jt(!1,u.transparent_background);this.showMiniplayerButton=h?!!h.showMiniplayerButton:jt(!1,u.show_miniplayer_button);var z;g.MW(this)&&!(h==null?0:(z=h.embedsHostFlags)==null?0:z.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=h?!!h.externalFullscreen:jt(!1,u.external_fullscreen);this.showMiniplayerUiWhenMinimized=h?!!h.showMiniplayerUiWhenMinimized:jt(!1,u.use_miniplayer_ui);
var d;this.B6=(d=u.show_loop_video_toggle)!=null?d:!0;this.WS=Math.random()<1E-4;this.XU=u.onesie_hot_config||(h==null?0:h.onesieHotConfig)?new r0b(u.onesie_hot_config,h==null?void 0:h.onesieHotConfig):void 0;this.isTectonic=h?!!h.isTectonic:!!u.isTectonic;this.playerCanaryState=L;this.playerCanaryStage=h==null?void 0:h.canaryStage;this.Mr=new wmn;g.V(this,this.Mr);this.l9=jt(!1,u.force_gvi);this.datasyncId=(h==null?void 0:h.datasyncId)||g.tn("DATASYNC_ID");this.Mt=g.tn("LOGGED_IN",!1);this.jY=(h==
null?void 0:h.allowWoffleManagement)||!1;this.MG=Infinity;this.Xb=NaN;this.livingRoomPoTokenId=h==null?void 0:h.livingRoomPoTokenId;this.j("html5_high_res_logging_always")?this.jx=!0:this.jx=Math.random()*100<g.Jl(this.experiments,"html5_high_res_logging_percent");var W;this.gD=!!(h==null?0:(W=h.embedsHostFlags)==null?0:W.allowRcat);this.i8=!g.qW(this)&&!Gg(this)};
g.Yy=function(u){var h,L;if(!((h=u.webPlayerContextConfig)==null?0:(L=h.embedsHostFlags)==null?0:L.enableLiteUx)||u.vj||u.C||u.X||u.gw==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";u=g.Jl(u.experiments,"embeds_web_lite_mode");return u===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":u>=0&&u<ucR.length?ucR[u]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
Ub=function(u,h,L){L=L===void 0?!1:L;u.La=ZD(u.La,h.video_id);u.ZI=ZD(u.ZI,h.eventid);u.ZI&&(Cr=u.ZI);for(var Z=[],y=g.C(Object.keys(j01)),R=y.next();!R.done;R=y.next()){R=j01[R.value];var p=h[R];p!=null&&(p!==u.G[R]&&Z.push(R),u.G[R]=p)}!L&&Z.length>0&&u.WS&&(Z.sort(),g.G3(new g.aO("Player client parameters changed after startup",Z)));u.userAge=LF(u.userAge,h.user_age);u.Th=ZD(u.Th,h.user_display_email);u.userDisplayImage=ZD(u.userDisplayImage,h.user_display_image);g.Ei(u.userDisplayImage)||(u.userDisplayImage=
"");u.userDisplayName=ZD(u.userDisplayName,h.user_display_name);u.oM=ZD(u.oM,h.user_gender);u.csiPageType=ZD(u.csiPageType,h.csi_page_type);u.csiServiceName=ZD(u.csiServiceName,h.csi_service_name);u.zG=jt(u.zG,h.enablecsi);u.pageId=ZD(u.pageId,h.pageid);if(L=h.enabled_engage_types)u.enabledEngageTypes=new Set(L.split(","));h.living_room_session_po_token&&(u.t4=h.living_room_session_po_token.toString())};
rS=function(u,h){return!u.C&&sJ()&&XL(55)&&u.controlsType==="3"&&!h};
g.B$=function(u){u=NW(u.a7);return u==="www.youtube-nocookie.com"?"www.youtube.com":u};
zg=function(u,h,L){return u.protocol+"://i1.ytimg.com/vi/"+h+"/"+(L||"hqdefault.jpg")};
ms=function(u){return Q6(u)&&!g.qW(u)};
g.Xp=function(u){return u.j("html5_local_playsinline")?WS&&!g.Cw(602)&&!("playsInline"in vX()):WS&&!u.T2||g.nP("nintendo wiiu")?!0:!1};
nS=function(u){return u.G.c};
g.SM=function(u){return/^TVHTML5/.test(nS(u))};
g.dS=function(u){return nS(u)==="TVHTML5"};
a1a=function(u){return nS(u)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"};
kK1=function(u){return u.G.cmodel==="CHROMECAST ULTRA/STEAK"||u.G.cmodel==="CHROMECAST/STEAK"};
g.V6=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1};
lN=function(u){return/web/i.test(nS(u))};
g.nC=function(u){return nS(u).toUpperCase()==="WEB"};
Gg=function(u){return nS(u)==="WEB_KIDS"};
g.qW=function(u){return nS(u)==="WEB_UNPLUGGED"};
sb=function(u){return nS(u)==="TVHTML5_UNPLUGGED"};
g.Qr=function(u){return g.qW(u)||nS(u)==="TV_UNPLUGGED_CAST"||sb(u)};
g.rp=function(u){return nS(u)==="WEB_REMIX"};
g.wS=function(u){return nS(u)==="WEB_EMBEDDED_PLAYER"};
g.aL=function(u){return(u.deviceIsAudioOnly||!g.TI||ai||u.controlsType==="3"?!1:g.EJ?u.B&&g.Cw(51):!0)||(u.deviceIsAudioOnly||!g.Nc||ai||u.controlsType==="3"?!1:g.EJ?u.B&&g.Cw(48):g.Cw(38))||(u.deviceIsAudioOnly||!g.P$||ai||u.controlsType==="3"?!1:g.EJ?u.B&&g.Cw(37):g.Cw(27))||!u.deviceIsAudioOnly&&g.eJ&&!Xdb()&&g.Cw(11)||!u.deviceIsAudioOnly&&g.PC&&g.Cw("604.4")};
hKn=function(u){if(g.v$(u)&&l9)return!1;if(g.Nc){if(!g.Cw(47)||!g.Cw(52)&&g.Cw(51))return!1}else if(g.PC)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
Zmf=function(u,h){return u.enabledEngageTypes.has(h.toString())||LZY.includes(h)};
Q6=function(u){return u.DI==="detailpage"};
g.v$=function(u){return u.DI==="embedded"};
$y=function(u){return u.DI==="leanback"};
i9=function(u){return u.DI==="adunit"||u.playerStyle==="gvn"};
g.Tg=function(u){return u.DI==="profilepage"};
g.MW=function(u){return u.B&&g.v$(u)&&!i9(u)&&!u.C};
tz=function(u){if(!u.userDisplayImage)return"";var h=u.userDisplayImage.split("/");if(h.length===5)return u=h[h.length-1].split("="),u[1]="s20-c",h[h.length-1]=u.join("="),h.join("/");if(h.length===8)return h.splice(7,0,"s20-c"),h.join("/");if(h.length===9)return h[7]+="-s20-c",h.join("/");g.G3(new g.aO("Profile image not a FIFE URL.",u.userDisplayImage));return u.userDisplayImage};
g.W$=function(u){var h=g.B$(u);yLw.includes(h)&&(h="www.youtube.com");return u.protocol+"://"+h};
g.Fp=function(u,h){h=h===void 0?"":h;if(u.Kg){var L=new aA,Z,y=u.Kg();y.signedOut?Z="":y.token?Z=y.token:y.pendingResult.then(function(R){y.signedOut?L.resolve(""):L.resolve(R.token)},function(R){g.G3(new g.aO("b189348328_oauth_callback_failed",{error:R}));
L.resolve(h)});
return Z!==void 0?UJ(Z):new oJ(L)}return UJ(h)};
b9=function(u,h){h=h===void 0?"":h;return u.Mt?h_(!0):pn(Rd(h_(g.Fp(u,h)),function(L){return h_(!!L)}),function(){return h_(!1)})};
NW=function(u){var h=g.BY(u);return(u=Number(g.ru(4,u))||null)?h+":"+u:h};
Eb=function(u,h){h=h===void 0?!1:h;var L=dF[u],Z=RKj[L],y=pTf[u];if(!y||!Z)return null;h=new BX(h?y.height:y.width,h?y.width:y.height,y.fps);Z=Zp(Z,h,L);return new VE(u,Z,{video:h,G3:y.bitrate/8})};
JLj=function(u){var h=RKj[dF[u]],L=KZj[u];return L&&h?new VE(u,h,{audio:new GI(L.audioSampleRate,L.numChannels)}):null};
ky=function(u){this.G=u};
gS=function(u,h,L,Z){if(L)return NI();L={};var y=vX();h=g.C(h);for(var R=h.next();!R.done;R=h.next())if(R=R.value,u.canPlayType(y,R.getInfo().mimeType)||Z){var p=R.G.video.quality;if(!L[p]||L[p].getInfo().d1())L[p]=R}u=[];L.auto&&u.push(L.auto);Z=g.C(zI);for(y=Z.next();!y.done;y=Z.next())(y=L[y.value])&&u.push(y);return u.length?UJ(u):NI()};
Omb=function(u){this.itag=u.itag;this.url=u.url;this.codecs=u.codecs;this.width=u.width;this.height=u.height;this.fps=u.fps;this.bitrate=u.bitrate;var h;this.N=((h=u.audioItag)==null?void 0:h.split(","))||[];this.Yx=u.Yx;this.ji=u.ji||"";this.tM=u.tM;this.audioChannels=u.audioChannels;this.G=""};
fQf=function(u,h,L,Z){h=h===void 0?!1:h;L=L===void 0?!0:L;Z=Z===void 0?{}:Z;var y={};u=g.C(u);for(var R=u.next();!R.done;R=u.next()){R=R.value;if(h&&MediaSource&&MediaSource.isTypeSupported){var p=R.type;R.audio_channels&&(p=p+"; channels="+R.audio_channels);if(!MediaSource.isTypeSupported(p)){Z[R.itag]="tpus";continue}}if(L||!R.drm_families||R.eotf!=="smpte2084"&&R.eotf!=="arib-std-b67"){p=void 0;var J={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},O=R.type.match(/codecs="([^"]*)"/);
O=O?O[1]:"";R.audio_track_id&&(p=new g.kV(R.name,R.audio_track_id,!!R.is_default));var f=R.eotf;R=new Omb({itag:R.itag,url:R.url,codecs:O,width:Number(R.width),height:Number(R.height),fps:Number(R.fps),bitrate:Number(R.bitrate),audioItag:R.audio_itag,Yx:f?J[f]:void 0,ji:R.drm_families,tM:p,audioChannels:Number(R.audio_channels)});y[R.itag]=y[R.itag]||[];y[R.itag].push(R)}else Z[R.itag]="enchdr"}return y};
Dys=function(u,h,L,Z,y){this.X=u;this.N=h;this.T=L;this.cpn=Z;this.C=y;this.B=0;this.G=""};
cLL=function(u,h){u.X.some(function(L){var Z;return((Z=L.tM)==null?void 0:Z.getId())===h});
u.G=h};
ut=function(u,h,L){u.cpn&&(h=g.sr(h,{cpn:u.cpn}));L&&(h=g.sr(h,{paired:L}));return h};
IQw=function(u,h){u=u.itag.toString();h!==null&&(u+=h.itag.toString());return u};
ALR=function(u){for(var h=[],L=[],Z=g.C(u.N),y=Z.next();!y.done;y=Z.next())y=y.value,y.bitrate<=u.B?h.push(y):L.push(y);h.sort(function(R,p){return p.bitrate-R.bitrate});
L.sort(function(R,p){return R.bitrate-p.bitrate});
u.N=h.concat(L)};
jG=function(u,h,L){this.G=u;this.N=h;this.expiration=L;this.D3=null};
xyR=function(u,h){if(!(ai||$7()||ep()))return null;u=fQf(h,u.j("html5_filter_fmp4_in_hls"));if(!u)return null;h=[];for(var L={},Z=g.C(Object.keys(u)),y=Z.next();!y.done;y=Z.next()){y=g.C(u[y.value]);for(var R=y.next();!R.done;R=y.next()){var p=R.value;p.tM&&(R=p.tM.getId(),L[R]||(p=new g.t_(R,p.tM),L[R]=p,h.push(p)))}}return h.length>0?h:null};
Q0e=function(u,h,L,Z,y,R,p){if(!(ai||$7()||ep()))return NI();var J={},O=Prs(L),f=fQf(L,u.j("html5_filter_fmp4_in_hls"),u.T.C,J);if(!f)return p({noplst:1}),NI();CrY(f);L={};var D=(L.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",L),c;L=[];var I=[],A=[],x=null,Q="";Z=Z&&Z.match(/hls_timedtext_playlist/)?new Omb({itag:"0",url:Z,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,tM:new g.kV("English","en",!1)}):null;for(var S=g.C(Object.keys(f)),v=S.next();!v.done;v=S.next())if(v=v.value,!u.j("html5_disable_drm_hfr_1080")||
v!=="383"&&v!=="373"){v=g.C(f[v]);for(var T=v.next();!T.done;T=v.next())if(T=T.value,T.width){for(var U=g.C(T.N),z=U.next();!z.done;z=U.next())if(z=z.value,f[z]){T.G=z;break}T.G||(T.G=MI1(f,T));if(U=f[T.G])if(L.push(T),T.ji==="fairplay"&&(c=D),z="",T.Yx==="PQ"?z="smpte2084":T.Yx==="HLG"&&(z="arib-std-b67"),z&&(Q=z),A.push(imn(U,[T],Z,R,T.itag,T.width,T.height,T.fps,O,void 0,void 0,c,z)),!x||T.width*T.height*T.fps>x.width*x.height*x.fps)x=T}else I.push(T)}else J[v]="disdrmhfr";A.reduce(function(d,
W){return W.getInfo().isEncrypted()&&d},!0)&&(c=D);
y=Math.max(y,0);D=x||{};f=D.fps===void 0?0:D.fps;x=D.width===void 0?0:D.width;D=D.height===void 0?0:D.height;S=u.j("html5_native_audio_track_switching");A.push(imn(I,L,Z,R,"93",x,D,f,O,"auto",y,c,Q,S));Object.entries(J).length&&p(J);return gS(u.T,A,rS(u,h),!1)};
imn=function(u,h,L,Z,y,R,p,J,O,f,D,c,I,A){for(var x=0,Q="",S=g.C(u),v=S.next();!v.done;v=S.next())v=v.value,Q||(Q=v.itag),v.audioChannels&&v.audioChannels>x&&(x=v.audioChannels,Q=v.itag);y=new VE(y,"application/x-mpegURL",{audio:new GI(0,x),video:new BX(R,p,J,null,void 0,f,void 0,I),ji:c,WZ:Q});u=new Dys(u,h,L?[L]:[],Z,!!A);u.B=D?D:1369843;return new jG(y,u,O)};
Prs=function(u){u=g.C(u);for(var h=u.next();!h.done;h=u.next())if(h=h.value,h.url&&(h=h.url.split("expire/"),!(h.length<=1)))return+h[1].split("/")[0];return NaN};
MI1=function(u,h){for(var L=g.C(Object.keys(u)),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var y=u[Z][0];if(!y.width&&y.ji===h.ji&&!y.audioChannels)return Z}return""};
CrY=function(u){for(var h=new Set,L=g.C(Object.values(u)),Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.length&&(Z=Z[0],Z.height&&Z.codecs.startsWith("vp09")&&h.add(Z.height));L=[];if(h.size){Z=g.C(Object.keys(u));for(var y=Z.next();!y.done;y=Z.next())if(y=y.value,u[y].length){var R=u[y][0];R.height&&h.has(R.height)&&!R.codecs.startsWith("vp09")&&L.push(y)}}h=g.C(L);for(L=h.next();!L.done;L=h.next())delete u[L.value]};
hV=function(u,h){this.G=u;this.N=h};
lQf=function(u,h,L,Z){var y=[];L=g.C(L);for(var R=L.next();!R.done;R=L.next()){var p=R.value;if(p.url){R=new g.cQ(p.url,!0);if(p.s){var J=R,O=p.sp,f=iER(decodeURIComponent(p.s));J.set(O,encodeURIComponent(f))}J=g.C(Object.keys(Z));for(O=J.next();!O.done;O=J.next())O=O.value,R.set(O,Z[O]);p=k6(p.type,p.quality,p.itag,p.width,p.height);y.push(new hV(p,R))}}return gS(u.T,y,rS(u,h),!1)};
Lg=function(u,h){this.G=u;this.N=h};
SLn=function(u,h,L){var Z=[];L=g.C(L);for(var y=L.next();!y.done;y=L.next())if((y=y.value)&&y.url){var R=k6(y.type,"medium","0");Z.push(new Lg(R,y.url))}return gS(u.T,Z,rS(u,h),!1)};
XTb=function(u,h){var L=[],Z=k6(h.type,"auto",h.itag);L.push(new Lg(Z,h.url));return gS(u.T,L,!1,!0)};
qLj=function(u){return u&&vfV[u]?vfV[u]:null};
Tzn=function(u){if(u=u.commonConfig)this.url=u.url,this.urlQueryOverride=u.urlQueryOverride,u.ustreamerConfig&&(this.kc=ki(u.ustreamerConfig)||void 0)};
YLn=function(u,h){var L;if(h=h==null?void 0:(L=h.watchEndpointSupportedOnesieConfig)==null?void 0:L.html5PlaybackOnesieConfig)u.R1=new Tzn(h)};
g.Zs=function(u){u=u===void 0?{}:u;this.languageCode=u.languageCode||"";this.languageName=u.languageName||null;this.kind=u.kind||"";this.name=u.name===void 0?null:u.name;this.displayName=u.displayName||null;this.id=u.id||null;this.G=u.is_servable||!1;this.isTranslateable=u.is_translateable||!1;this.url=u.url||null;this.vssId=u.vss_id||"";this.isDefault=u.is_default||!1;this.translationLanguage=u.translationLanguage||null;this.xtags=u.xtags||"";this.captionId=u.captionId||""};
g.RB=function(u){var h={languageCode:u.languageCode,languageName:u.languageName,displayName:g.y1(u),kind:u.kind,name:u.name,id:u.id,is_servable:u.G,is_default:u.isDefault,is_translateable:u.isTranslateable,vss_id:u.vssId};u.xtags&&(h.xtags=u.xtags);u.captionId&&(h.captionId=u.captionId);u.translationLanguage&&(h.translationLanguage=u.translationLanguage);return h};
g.pg=function(u){return u.translationLanguage?u.translationLanguage.languageCode:u.languageCode};
g.ofe=function(u){var h=u.vssId;u.translationLanguage&&h&&(h="t"+h+"."+g.pg(u));return h};
g.y1=function(u){var h=[];if(u.displayName)h.push(u.displayName);else{var L=u.languageName||"";h.push(L);u.kind==="asr"&&L.indexOf("(")===-1&&h.push(" (Automatic Captions)");u.name&&h.push(" - "+u.name)}u.translationLanguage&&h.push(" >> "+u.translationLanguage.languageName);return h.join("")};
Hme=function(u,h,L,Z){u||(u=h&&Nzn.hasOwnProperty(h)&&UyY.hasOwnProperty(h)?UyY[h]+"_"+Nzn[h]:void 0);h=u;if(!h)return null;u=h.match(G$n);if(!u||u.length!==5)return null;if(u=h.match(G$n)){var y=Number(u[3]),R=[7,8,10,5,6];u=!(Number(u[1])===1&&y===8)&&R.indexOf(y)>=0}else u=!1;return L||Z||u?h:null};
Kg=function(u,h){for(var L={},Z=g.C(Object.keys(rLj)),y=Z.next();!y.done;y=Z.next()){y=y.value;var R=h?h+y:y;R=u[R+"_webp"]||u[R];g.Ei(R)&&(L[rLj[y]]=R)}return L};
JV=function(u){var h={};if(!u||!u.thumbnails)return h;u=u.thumbnails.filter(function(J){return!!J.url});
u.sort(function(J,O){return J.width-O.width||J.height-O.height});
for(var L=g.C(Object.keys(Bzs)),Z=L.next();!Z.done;Z=L.next()){var y=Number(Z.value);Z=Bzs[y];for(var R=g.C(u),p=R.next();!p.done;p=R.next())if(p=p.value,p.width>=y){y=zKY(p.url);g.Ei(y)&&(h[Z]=y);break}}(u=u.pop())&&u.width>=1280&&(u=zKY(u.url),g.Ei(u)&&(h["maxresdefault.jpg"]=u));return h};
zKY=function(u){return u.startsWith("//")?"https:"+u:u};
OX=function(u){return u&&u.baseUrl||""};
fg=function(u){u=g.LP(u);for(var h=g.C(Object.keys(u)),L=h.next();!L.done;L=h.next()){L=L.value;var Z=u[L];u[L]=Array.isArray(Z)?Z[0]:Z}return u};
myl=function(u,h){u.botguardData=h.playerAttestationRenderer.botguardData;h=h.playerAttestationRenderer.challenge;h!=null&&(u.Ul=h)};
nf1=function(u,h){h=g.C(h);for(var L=h.next();!L.done;L=h.next()){L=L.value;var Z=L.interstitials.map(function(p){var J=g.n(p,dyL);if(J)return{is_yto_interstitial:!0,raw_player_response:J};if(p=g.n(p,VIn))return Object.assign({is_yto_interstitial:!0},jp(p))});
Z=g.C(Z);for(var y=Z.next();!y.done;y=Z.next())switch(y=y.value,L.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":u.interstitials=u.interstitials.concat({time:0,playerVars:y,pm:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":u.interstitials=u.interstitials.concat({time:0x7ffffffffffff,playerVars:y,pm:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var R=Number(L.podConfig.timeToInsertAtMillis);u.interstitials=u.interstitials.concat({time:R,playerVars:y,
pm:R===0?5:7})}}};
s0n=function(u,h){if(h=h.find(function(L){return!(!L||!L.tooltipRenderer)}))u.tooltipRenderer=h.tooltipRenderer};
wT1=function(u,h){h.subscribeCommand&&(u.subscribeCommand=h.subscribeCommand);h.unsubscribeCommand&&(u.unsubscribeCommand=h.unsubscribeCommand);h.addToWatchLaterCommand&&(u.addToWatchLaterCommand=h.addToWatchLaterCommand);h.removeFromWatchLaterCommand&&(u.removeFromWatchLaterCommand=h.removeFromWatchLaterCommand);h.getSharePanelCommand&&(u.getSharePanelCommand=h.getSharePanelCommand)};
eKl=function(u,h){h!=null?(u.nE=h,u.Rc=!0):(u.nE="",u.Rc=!1)};
Ds=function(u,h){this.type=u||"";this.id=h||""};
g.cu=function(u){return new Ds(u.substring(0,2),u.substring(2))};
g.IB=function(u,h){this.z7=u;this.author="";this.dI=null;this.playlistLength=0;this.G=this.sessionData=null;this.Y={};this.title="";if(h){this.author=h.author||h.playlist_author||"";this.title=h.playlist_title||"";if(u=h.session_data)this.sessionData=gv(u,"&");var L;this.G=((L=h.thumbnail_ids)==null?void 0:L.split(",")[0])||null;this.Y=Kg(h,"playlist_");this.videoId=h.video_id||void 0;if(L=h.list)switch(h.listType){case "user_uploads":this.playlistId=(new Ds("UU","PLAYER_"+L)).toString();break;default:if(u=
h.playlist_length)this.playlistLength=Number(u)||0;this.playlistId=g.cu(L).toString();if(h=h.video)this.videoId=(h[0]||null).video_id||void 0}else h.playlist&&(this.playlistLength=h.playlist.toString().split(",").length)}};
g.AV=function(u,h){this.z7=u;this.yb=this.author="";this.dI=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.j5=this.lengthText="";this.sessionData=null;this.Y={};this.title="";if(h){this.ariaLabel=h.aria_label||void 0;this.author=h.author||"";this.yb=h.yb||"";if(u=h.endscreen_autoplay_session_data)this.dI=gv(u,"&");this.un=h.un;this.isLivePlayback=h.live_playback==="1";this.isUpcoming=!!h.isUpcoming;if(u=h.length_seconds)this.lengthSeconds=typeof u==="string"?Number(u):u;this.lengthText=
h.lengthText||"";this.j5=h.j5||"";this.publishedTimeText=h.publishedTimeText||void 0;if(u=h.session_data)this.sessionData=gv(u,"&");this.shortViewCount=h.short_view_count_text||void 0;this.Y=Kg(h);this.title=h.title||"";this.videoId=h.docid||h.video_id||h.videoId||h.id||void 0;this.watchUrl=h.watchUrl||void 0}};
aQe=function(u){var h,L,Z=(h=u.getWatchNextResponse())==null?void 0:(L=h.contents)==null?void 0:L.twoColumnWatchNextResults,y,R,p,J,O;u=(y=u.getWatchNextResponse())==null?void 0:(R=y.playerOverlays)==null?void 0:(p=R.playerOverlayRenderer)==null?void 0:(J=p.endScreen)==null?void 0:(O=J.watchNextEndScreenRenderer)==null?void 0:O.results;if(!u){var f,D;u=Z==null?void 0:(f=Z.endScreen)==null?void 0:(D=f.endScreen)==null?void 0:D.results}return u};
g.Pu=function(u){var h,L,Z;u=g.n((h=u.getWatchNextResponse())==null?void 0:(L=h.playerOverlays)==null?void 0:(Z=L.playerOverlayRenderer)==null?void 0:Z.decoratedPlayerBarRenderer,xm);return g.n(u==null?void 0:u.playerBar,$ye)};
tIV=function(u){this.G=u.playback_progress_0s_url;this.X=u.playback_progress_2s_url;this.N=u.playback_progress_10s_url};
WZl=function(){if(Cg===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(h){}a:{try{var u=!!self.localStorage}catch(h){u=!1}if(u&&(u=g.Bx(g.$9()+"::yt-player"))){Cg=new mj(u);break a}Cg=void 0}}return Cg};
g.M1=function(){var u=WZl();if(!u)return{};try{var h=u.get("yt-player-lv");return JSON.parse(h||"{}")}catch(L){return{}}};
g.FZw=function(u){var h=WZl();h&&(u=JSON.stringify(u),h.set("yt-player-lv",u))};
g.it=function(u){return g.M1()[u]||0};
g.Q1=function(u,h){var L=g.M1();h!==L[u]&&(h!==0?L[u]=h:delete L[u],g.FZw(L))};
g.lt=function(u){return g.G(function(h){return h.return(g.sW(bmf(),u))})};
Xu=function(u,h,L,Z,y,R,p,J){var O,f,D,c,I,A;return g.G(function(x){switch(x.G){case 1:return O=g.it(u),O===4?x.return(4):g.N(x,g.bx(),2);case 2:f=x.N;if(!f)throw g.Mp("wiac");if(!J||p===void 0){x.KI(3);break}return g.N(x,Efj(J,p),4);case 4:p=x.N;case 3:return D=L.lastModified||"0",g.N(x,g.lt(f),5);case 5:return c=x.N,g.Qn(x,6),SG++,g.N(x,g.oi(c,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",PJ:!0},function(Q){if(R!==void 0&&p!==void 0){var S=""+u+"|"+h.id+"|"+D+"|"+String(R).padStart(10,
"0");S=g.Np(Q.objectStore("media"),p,S)}else S=g.Q3.resolve(void 0);var v=k$Y(u,h.Wr()),T=k$Y(u,!h.Wr()),U={fmts:gfi(Z),format:L||{}};v=g.Np(Q.objectStore("index"),U,v);var z=Z.downloadedEndTime===-1;U=z?Q.objectStore("index").get(T):g.Q3.resolve(void 0);var d={fmts:"music",format:{}};Q=z&&y&&!h.Wr()?g.Np(Q.objectStore("index"),d,T):g.Q3.resolve(void 0);return g.Q3.all([Q,U,S,v]).then(function(W){W=g.C(W);W.next();W=W.next().value;SG--;var t=g.it(u);if(t!==4&&z&&y||W!==void 0&&g.ubs(W.fmts))t=1,g.Q1(u,
t);return t})}),8);
case 8:return x.return(x.N);case 6:I=g.Xf(x);SG--;A=g.it(u);if(A===4)return x.return(A);g.Q1(u,4);throw I;}})};
g.j4i=function(u){var h,L;return g.G(function(Z){if(Z.G==1)return g.N(Z,g.bx(),2);if(Z.G!=3){h=Z.N;if(!h)throw g.Mp("ri");return g.N(Z,g.lt(h),3)}L=Z.N;return Z.return(g.oi(L,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(y){var R=IDBKeyRange.bound(u+"|",u+"~");return y.objectStore("index").getAll(R).then(function(p){return p.map(function(J){return J?J.format:{}})})}))})};
L_L=function(u,h,L,Z,y){var R,p,J;return g.G(function(O){if(O.G==1)return g.N(O,g.bx(),2);if(O.G!=3){R=O.N;if(!R)throw g.Mp("rc");return g.N(O,g.lt(R),3)}p=O.N;J=g.oi(p,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(f){var D=""+u+"|"+h+"|"+L+"|"+String(Z).padStart(10,"0");return f.objectStore("media").get(D)});
return y?O.return(J.then(function(f){if(f===void 0)throw Error("No data from indexDb");return hge(y,f)}).catch(function(f){throw new g.aO("Error while reading chunk: "+f.name+", "+f.message);
})):O.return(J)})};
g.ubs=function(u){return u?u==="music"?!0:u.includes("dlt=-1")||!u.includes("dlt="):!1};
k$Y=function(u,h){return""+u+"|"+(h?"v":"a")};
gfi=function(u){var h={};return uA((h.dlt=u.downloadedEndTime.toString(),h.mket=u.maxKnownEndTime.toString(),h.avbr=u.averageByteRate.toString(),h))};
yEb=function(u){var h={},L={};u=g.C(u);for(var Z=u.next();!Z.done;Z=u.next()){var y=Z.value,R=y.split("|");y.match(g.Z0j)?(Z=Number(R.pop()),isNaN(Z)?L[y]="?":(R=R.join("|"),(y=h[R])?(R=y[y.length-1],Z===R.end+1?R.end=Z:y.push({start:Z,end:Z})):h[R]=[{start:Z,end:Z}])):L[y]="?"}u=g.C(Object.keys(h));for(Z=u.next();!Z.done;Z=u.next())Z=Z.value,L[Z]=h[Z].map(function(p){return p.start+"-"+p.end}).join(",");
return L};
vu=function(u){g.yV.call(this);this.G=null;this.X=new dl;this.G=null;this.C=new Set;this.crossOrigin=u||""};
Rga=function(u,h,L){for(L=q1(u,L);L>=0;){var Z=u.levels[L];if(Z.isLoaded(Tw(Z,h))&&(Z=g.Ym(Z,h)))return Z;L--}return g.Ym(u.levels[0],h)};
K_b=function(u,h,L){L=q1(u,L);for(var Z,y;L>=0;L--)if(Z=u.levels[L],y=Tw(Z,h),!Z.isLoaded(y)){Z=u;var R=L,p=R+"-"+y;Z.C.has(p)||(Z.C.add(p),Z.X.enqueue(R,{wv:R,IK:y}))}pea(u)};
pea=function(u){if(!u.G&&!u.X.isEmpty()){var h=u.X.remove();u.G=JEY(u,h)}};
JEY=function(u,h){var L=document.createElement("img");u.crossOrigin&&(L.crossOrigin=u.crossOrigin);L.src=u.levels[h.wv].VQ(h.IK);L.onload=function(){var Z=h.wv,y=h.IK;u.G!==null&&(u.G.onload=null,u.G=null);Z=u.levels[Z];Z.loaded.add(y);pea(u);var R=Z.columns*Z.rows;y*=R;Z=Math.min(y+R-1,Z.Ii()-1);y=[y,Z];u.publish("l",y[0],y[1])};
return L};
g.oB=function(u,h,L,Z){this.level=u;this.B=h;this.loaded=new Set;this.level=u;this.B=h;u=L.split("#");this.width=Math.floor(Number(u[0]));this.height=Math.floor(Number(u[1]));this.frameCount=Math.floor(Number(u[2]));this.columns=Math.floor(Number(u[3]));this.rows=Math.floor(Number(u[4]));this.G=Math.floor(Number(u[5]));this.X=u[6];this.signature=u[7];this.videoLength=Z};
Tw=function(u,h){return Math.floor(h/(u.columns*u.rows))};
g.Ym=function(u,h){h>=u.WE()&&u.jj();var L=Tw(u,h),Z=u.columns*u.rows,y=h%Z;h=y%u.columns;y=Math.floor(y/u.columns);var R=u.jj()+1-Z*L;if(R<u.columns){var p=R;Z=1}else p=u.columns,Z=R<Z?Math.ceil(R/u.columns):u.rows;return{url:u.VQ(L),column:h,columns:p,row:y,rows:Z,WK:u.width*p,JR:u.height*Z}};
N1=function(u,h,L,Z,y){Z=Z===void 0?!1:Z;y=y===void 0?!1:y;vu.call(this,L);this.isLive=Z;this.V=!!y;this.levels=this.N(u,h);this.B=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
O0s=function(u,h,L){return(u=u.levels[h])?u.Vd(L):-1};
q1=function(u,h){var L=u.B.get(h);if(L)return L;L=u.levels.length;for(var Z=0;Z<L;Z++)if(u.levels[Z].width>=h)return u.B.set(h,Z),Z;u.B.set(h,L-1);return L-1};
UX=function(u,h,L,Z){L=L.split("#");L=[L[1],L[2],0,L[3],L[4],-1,L[0],""].join("#");g.oB.call(this,u,h,L,0);this.N=null;this.T=Z?2:0};
Gw=function(u,h,L,Z){N1.call(this,u,0,void 0,h,!(Z===void 0||!Z));for(u=0;u<this.levels.length;u++)this.levels[u].hQ(L)};
fBa=function(u,h,L){h={cpn:h};u.indexOf("/ibw/")===-1&&(h.ibw=L?String(L):"1369843");return{url:g.sr(u,h),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.rC=function(u,h){g.yV.call(this);var L=this;this.z7=u;this.adaptiveFormats="";this.QC=this.J6=this.adQueryId=this.Zi=null;this.Sr={start:NaN,end:NaN};this.cueRanges=this.ji=null;this.Jf=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.b$=void 0;this.MG=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.ZI="";this.t6=!1;this.yu=null;this.Th=this.RF=this.zp=!1;this.B=null;this.y5=this.Mt=!1;this.fV=
NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=0;this.Nd=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.S3=0;this.Bm=!1;this.eg=this.cycToken=null;this.author="";this.Lu=!1;this.VA=0;this.gN=!1;this.kp=null;this.Xm=[];this.QX=this.MF=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.Ca=this.jx="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=
this.endSeconds=this.La=0;this.yf=this.Sd=this.N=null;this.rj="";this.loading=!1;this.Oo=this.zy=0;this.xj=this.pipable=this.OF=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.J3=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.fI=this.isPrivate=this.isListed=this.iZ=this.Mr=!1;this.Af="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.RJ=this.T7=this.Ph=!1;this.latencyClass="UNKNOWN";this.dA=
this.Oy=this.bk=this.nu=this.gb=this.enablePreroll=this.DG=this.enableServerStitchedDai=this.Aa=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.nH=0;this.reloadReason="";this.G9=this.v3=this.ol=!1;this.keywords={};this.vJ="";this.Hp=0;this.l6=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.Be=null;this.E2=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.Md=this.paygated=!1;this.tC=
[];this.B6=!1;this.gw=[];this.Ee=null;this.iI=this.racyCheckOk=!1;this.sy={};this.isProximaLatencyEligible=!1;this.tH=0;this.X=null;this.autonavState=1;this.z4=null;this.shortDescription="";this.XB=this.PB=!1;this.A4=this.iP=this.startSeconds=0;this.wB=this.vY=this.Tn=Hu;this.h6=this.suggestions=null;this.kt=this.Ss=void 0;this.isExternallyHostedPodcast=!1;this.wD=null;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.I3=void 0;this.e7=[];this.dD=[];this.hlsFormats=this.Qs=
"";this.bE=this.Bd=this.u9=this.XN=this.xl=this.fE=this.dL=null;this.Mv="vvt";this.Gz=!1;this.BD=null;this.Uc="";this.gW=NaN;this.l7=this.Fv=this.X6=this.Oq=this.Dw=this.a5=this.Cs=this.wy=this.BH=this.Cl="";this.KY=null;this.Gk=!1;this.V={};this.clipStart=0;this.clipEnd=Infinity;this.X2=!1;this.heartbeatToken="";this.BG=this.zm=NaN;this.Z1=this.i8=this.oM=this.JI=this.gA=!1;this.l9=!0;this.Y={};this.captionTracks=[];this.Qo=[];this.oX=0;this.mC=[];this.x6=[];this.Qe=!1;this.GW={};this.XU=new g.t_("und",
new g.kV("Default","und",!0));this.Iz=0;this.T=null;this.CE=[];this.Kj=!1;this.ye=this.eq="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.aH=this.Nh=this.ym=this.playerResponse=this.AJ=this.OM=this.De=this.jZ=this.vU=this.ZN=this.iV=null;this.R3=!1;this.AB=null;this.isInlinePlaybackNoAd=this.Xb=this.zW=this.useCobaltWidevine=this.Co=this.nN=!1;this.Ry=!0;this.t4=this.jY=NaN;this.defraggedFromSubfragments=this.e9=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;
this.sabrContextUpdates=new Map;this.zI="";this.ND=!1;this.Yy=this.j("html5_enable_media_serving_enforcement")||this.j("html5_enable_sabr_context_cross_playback");this.gatewayExperimentGroup="";this.Vo=this.wm=this.Cr=!1;this.interstitials=[];this.Rc=this.AX=!1;this.nE="";this.allowImaMonetization=!1;this.bA="";this.Yp=!1;this.Km="";this.kU=[];this.uV=[];this.YF="";this.uc=this.S=this.ZO=!1;this.aC="";this.I8=this.Mh=this.Lm=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=
NaN;this.showShareButton=!0;this.r6=!1;this.Cg=this.qr=!0;this.errorDetail=this.userGenderAge="";this.IT=this.RT=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Ud=this.errorReason=this.errorCode=null;this.GY=this.eN="";this.K3=!1;this.Pc=[];this.vj=this.vX=this.mz=this.w2=this.vr=0;this.fetchType=null;this.Ld=!0;this.transitionEndpointAtEndOfStream=void 0;this.fM=this.HN=-1;this.Kg=this.h4=
!1;this.Zg=null;this.jd="";this.Wp=!1;this.watchUrl=null;this.Pf=[];this.visibleOnLoadKeys=[];this.VC=[];this.inlineMetricEnabled=this.z2=!1;this.embedsRctn=this.embedsRct="";this.HK=NaN;this.W3=(0,g.vC)();this.ag=this.Cv=0;this.kc=null;this.Uo=0;this.T2=this.nf=!1;this.Td=this.z7.experiments.tB("html5_use_triple_equals");this.T8=!1;this.Oi=g.Jl(this.z7.experiments,"html5_gapless_loop_seek_offset_in_milli");this.hf=0;this.qU={};this.zd={setData:function(Z){L.setData(Z)},
LN:function(){L.LN()}};
this.h4=this.j("web_new_autonav_countdown");this.Kg=this.j("web_new_big_thumbnail_endscreen");this.setData(h);this.Ax=new hD;g.V(this,this.Ax)};
g.mg=function(u,h,L){h&&h.cpn&&g.G3(new g.aO("CPN provided in VideoData update",{VAy:h.cpn,Gh:u.clientPlaybackNonce,nz7:L}));L?(RO(h),u.setData(h),Bu(u)&&u.LN()):(h=h||{},DUs(u,h),zw(u,h),cEn(u,h),u.publish("dataupdated"))};
cEn=function(u,h){u.fflags=ZD(u.fflags,h.fflags);var L=h.iv_invideo_url;L&&(u.ZI=kk(L));u.t6=jt(u.t6,h.iv_ads_only);if(L=h.cta_conversion_urls)u.AP=L;u.isPharma=jt(u.isPharma,h.is_pharma);u.author=ZD(u.author,h.author);u.jx=IBL(h.ttsurl)||u.jx;u.gN=jt(u.gN,h.cc_asr);u.Ca=ZD(u.Ca,h.channel_path);if(L=h.profile_picture)u.profilePicture=ZD(u.profilePicture,L);u.videoCountText=ZD(u.videoCountText,h.video_count_text);u.autonavState=h2(u.autonavState,h.autonav_state,AEL);if(u.j("html5_enable_ssap_entity_id")){var Z;
L=!!h.cotn||!((Z=u.playerResponse)==null||!Z.cotn);Z=g.Jl(u.z7.experiments,"html5_entity_id_simplified_preferred_record_size");u.playerResponse&&!L&&(u.clientPlaybackNonce=xUn(u,u.playerResponse,Z)||u.clientPlaybackNonce);u.clientPlaybackNonce||(h.cpn&&u.wq("ssei","uhdc"),u.clientPlaybackNonce=ZD(u.clientPlaybackNonce,h.cpn))}else u.clientPlaybackNonce=ZD(u.clientPlaybackNonce,h.cpn);u.subscribed=jt(u.subscribed,h.subscribed);u.rawViewCount=LF(u.rawViewCount,h.view_count);u.shortViewCount=ZD(u.shortViewCount,
h.short_view_count_text);u.publishedTimeText=ZD(u.publishedTimeText||"",h.publishedTimeText);u.lengthText=ZD(u.lengthText||"",h.lengthText);u.j5=ZD(u.j5||"",h.j5);u.yb=ZD(u.yb||"",h.yb);u.title=ZD(u.title,h.title);u.subtitle=ZD(u.subtitle,h.subtitle);u.expandedTitle=ZD(u.expandedTitle,h.expanded_title);u.expandedSubtitle=ZD(u.expandedSubtitle,h.expanded_subtitle);u.ypcPreview=ZD(u.ypcPreview,h.ypc_preview);u.lc=ZD(u.lc,h.ypc_origin);u.Gz=jt(u.Gz,h.ypc_is_premiere_trailer);u.aC=ZD(u.aC,h.ypc_clickwrap_message);
u.paygated=jt(u.paygated,h.paygated);u.Gk=jt(u.Gk,h.requires_purchase);u.showShareButton=!jt(!u.showShareButton,h.ss);u.qr=jt(u.qr,h.showwatchlater);u.Cg=jt(u.Cg,h.shownotifybutton);u.r6=jt(u.r6,h.copy_share);if(Z=h.el)u.eventLabel=Z;if(Z=h.keywords)u.keywords=Pa1(Z.split(","));if(Z=h.rvs)u.suggestions=h5(Z).map(function(y){return y.playlist||y.list||y.api?new g.IB(u.z7,y):new g.AV(u.z7,y)});
u.contentCheckOk=jt(u.contentCheckOk,h.cco);u.racyCheckOk=jt(u.racyCheckOk,h.rco);u.isLivingRoomDeeplink=jt(u.isLivingRoomDeeplink,h.is_living_room_deeplink);u.oauthToken=ZD(u.oauthToken,h.oauth_token);u.vJ=ZD(u.vJ,h.kpt);u.visitorData=ZD(u.visitorData,h.visitor_data);if(Z=h.session_data)u.sessionData=gv(Z,"&");u.My=ZD(u.My,h.endscreen_ad_tracking_data);u.kZ=jt(u.kZ,h.wait_for_vast_info_cards_xml);u.xL=jt(u.xL,h.suppress_creator_endscreen);u.Ff=jt(u.Ff,h.is_trueview_action);u.oY=ZD(u.oY,h.tracking_list);
u.eN=ZD(u.eN,h.clip);u.GY=ZD(u.GY,h.clipt);Caa(u,h)};
xUn=function(u,h,L){var Z,y=(Z=h.cpnInfo)==null?void 0:Z.cpn;u.playerResponseCpn=y!=null?y:"";g.dC(u)&&!y&&u.wq("ssei","eim_"+u.clientPlaybackNonce);var R;return((R=h.cacheMetadata)==null?0:R.isCacheHit)||u.QX||!y?"":(V1.has(y)?L="":(h=MDn.push(y),V1.add(y),h>(L!=null?L:50)&&(L=MDn.shift())&&V1.delete(L),L=y),y!==L&&u.wq("ssei","dcpn_"+y+"_"+L+"_"+u.clientPlaybackNonce),L)};
zw=function(u,h){var L=h.raw_watch_next_response;if(!L){var Z=h.watch_next_response;Z&&(L=JSON.parse(Z))}if(L){u.aH=L;var y=u.aH.playerCueRangeSet;y&&g.ng(u,y);var R=u.aH.playerOverlays;if(R){var p=R.playerOverlayRenderer;if(p){var J=p.autonavToggle;J&&(u.autoplaySwitchButtonRenderer=g.n(J,i0Y),u.j("web_player_autonav_use_server_provided_state")&&sX(u)&&(u.autonavState=u.autoplaySwitchButtonRenderer.enabled?2:1));var O=p.videoDetails;if(O){var f=O.embeddedPlayerOverlayVideoDetailsRenderer;var D=O.playerOverlayVideoDetailsRenderer;
D&&(D.title&&(h.title=g.cL(D.title)),D.subtitle&&(h.subtitle=g.cL(D.subtitle)))}g.v$(u.z7)&&(u.qr=!!p.addToMenu);Q4n(u,p.shareButton);p.startPosition&&p.endPosition&&(u.progressBarStartPosition=p.startPosition,u.progressBarEndPosition=p.endPosition);var c=p.gatedActionsOverlayRenderer;c&&(u.Qi=g.n(c,lBn));var I,A,x,Q=g.n((I=u.getWatchNextResponse())==null?void 0:(A=I.playerOverlays)==null?void 0:(x=A.playerOverlayRenderer)==null?void 0:x.infoPanel,Su1);if(Q){u.HK=Number(Q==null?void 0:Q.durationMs)||
NaN;if(Q==null?0:Q.infoPanelOverviewViewModel)u.J4=Q==null?void 0:Q.infoPanelOverviewViewModel;if(Q==null?0:Q.infoPanelDetailsViewModel)u.zG=Q==null?void 0:Q.infoPanelDetailsViewModel}u.showSeekingControls=!!p.showSeekingControls}}var S,v,T=(S=u.getWatchNextResponse())==null?void 0:(v=S.contents)==null?void 0:v.twoColumnWatchNextResults;if(T){var U=T.desktopOverlay&&g.n(T.desktopOverlay,Xen);U&&(U.suppressShareButton&&(u.showShareButton=!1),U.suppressWatchLaterButton&&(u.qr=!1))}f&&v3s(u,h,f);var z=
LF(0,h.autoplay_count),d=u.getWatchNextResponse(),W,t=(W=d.contents)==null?void 0:W.twoColumnWatchNextResults,yn,KV,u1,w=(yn=d.playerOverlays)==null?void 0:(KV=yn.playerOverlayRenderer)==null?void 0:(u1=KV.autoplay)==null?void 0:u1.playerOverlayAutoplayRenderer,k=aQe(u),M,e=(M=d.contents)==null?void 0:M.singleColumnWatchNextResults;if(e){var sj;if(((sj=e.autoplay)==null?0:sj.autoplay)&&!e.playlist){var l3=e.autoplay.autoplay.sets,c1={},Yb=new g.AV(u.L()),kb=null,ZR;if(l3){for(var P1=g.C(l3),X=P1.next();!X.done;X=
P1.next()){var q=X.value.autoplayVideoRenderer;if(q&&q.compactVideoRenderer){kb=q.compactVideoRenderer;break}}if(ZR=l3[0].autoplayVideo){var Y=ZR.clickTrackingParams;Y&&(c1.itct=Y);c1.autonav="1";c1.playnext=String(z)}}else c1.feature="related-auto";var H=g.n(ZR,g.wC);if(kb){Yb.videoId=kb.videoId;var B=kb.shortBylineText;B&&(Yb.author=g.cL(B));var hs=kb.title;hs&&(Yb.title=g.cL(hs))}else H!=null&&H.videoId&&(Yb.videoId=H.videoId);Yb.dI=c1;u.suggestions=[];u.h6=Yb}}if(k){for(var RR=[],pV=g.C(k),r=
pV.next();!r.done;r=pV.next()){var Dw=r.value,Pi=void 0,Oj=null;if(Dw.endScreenVideoRenderer){var GY=Dw.endScreenVideoRenderer,Ic=GY.title;Oj=new g.AV(u.L());Oj.videoId=GY.videoId;Oj.lengthSeconds=GY.lengthInSeconds||0;var nq=GY.publishedTimeText;nq&&(Oj.publishedTimeText=g.cL(nq));var ch=GY.shortBylineText;ch&&(Oj.author=g.cL(ch));var $b=GY.shortViewCountText;$b&&(Oj.shortViewCount=g.cL($b));if(Ic){Oj.title=g.cL(Ic);var dY=Ic.accessibility;if(dY){var JM=dY.accessibilityData;JM&&JM.label&&(Oj.ariaLabel=
JM.label)}}var Gi=GY.navigationEndpoint;if(Gi){Pi=Gi.clickTrackingParams;var aI=g.n(Gi,g.wC),D_=g.n(Gi,g.HL);aI?Oj.un=aI:D_!=null&&(Oj.watchUrl=D_.url)}var eK=GY.thumbnailOverlays;if(eK)for(var Vu=g.C(eK),ax=Vu.next();!ax.done;ax=Vu.next()){var Mx=ax.value.thumbnailOverlayTimeStatusRenderer;if(Mx)if(Mx.style==="LIVE"){Oj.isLivePlayback=!0;break}else if(Mx.style==="UPCOMING"){Oj.isUpcoming=!0;break}}Oj.Y=JV(GY.thumbnail)}else if(Dw.endScreenPlaylistRenderer){var cM=Dw.endScreenPlaylistRenderer,Gq=
cM.navigationEndpoint;if(!Gq)continue;var IF=g.n(Gq,g.wC);if(!IF)continue;var HY=IF.videoId;Oj=new g.IB(u.L());Oj.playlistId=cM.playlistId;Oj.playlistLength=Number(cM.videoCount)||0;Oj.G=HY||null;Oj.videoId=HY;var HB=cM.title;HB&&(Oj.title=g.cL(HB));var rB=cM.shortBylineText;rB&&(Oj.author=g.cL(rB));Pi=Gq.clickTrackingParams;Oj.Y=JV(cM.thumbnail)}Oj&&(Pi&&(Oj.sessionData={itct:Pi}),RR.push(Oj))}u.suggestions=RR}if(w){u.Ld=!!w.preferImmediateRedirect;u.h4=u.h4||!!w.webShowNewAutonavCountdown;u.Kg=
u.Kg||!!w.webShowBigThumbnailEndscreen;if(u.h4||u.Kg){var oj=t||null,gY=new g.AV(u.L());gY.videoId=w.videoId;var $L=w.videoTitle;if($L){gY.title=g.cL($L);var ZM=$L.accessibility;if(ZM){var SB=ZM.accessibilityData;SB&&SB.label&&(gY.ariaLabel=SB.label)}}var dv=w.byline;dv&&(gY.author=g.cL(dv));var Ip=w.publishedTimeText;Ip&&(gY.publishedTimeText=g.cL(Ip));var DI=w.shortViewCountText;DI&&(gY.shortViewCount=g.cL(DI));var cP=w.thumbnailOverlays;if(cP)for(var IA=g.C(cP),uy=IA.next();!uy.done;uy=IA.next()){var RS=
uy.value.thumbnailOverlayTimeStatusRenderer;if(RS)if(RS.style==="LIVE"){gY.isLivePlayback=!0;break}else if(RS.style==="UPCOMING"){gY.isUpcoming=!0;break}else if(RS.style==="DEFAULT"&&RS.text){gY.lengthText=g.cL(RS.text);var j$=RS.text.accessibility;if(j$){var hS=j$.accessibilityData;hS&&hS.label&&(gY.j5=hS.label||"")}break}}gY.Y=JV(w.background);var Aq=w.nextButton;if(Aq){var xx=Aq.buttonRenderer;if(xx){var PP=xx.navigationEndpoint;if(PP){var Cl=g.n(PP,g.wC);Cl&&(gY.un=Cl)}}}if(w.topBadges){var MO=
w.topBadges[0];if(MO){var iz=g.n(MO,qun);iz&&iz.style==="BADGE_STYLE_TYPE_PREMIUM"&&(gY.h8d=!0)}}var TA=w.alternativeTitle;TA&&(gY.yb=g.cL(TA));var XQ={autonav:"1",playnext:String(z)};gY.playlistId&&(XQ.autoplay="1");if(oj){var YH,$J,LQ,Qs,Zb=(YH=oj.autoplay)==null?void 0:($J=YH.autoplay)==null?void 0:(LQ=$J.sets)==null?void 0:(Qs=LQ[0])==null?void 0:Qs.autoplayVideo;if(Zb){var lz=Zb.clickTrackingParams;lz&&(XQ.itct=lz);var y4=g.n(Zb,g.wC);y4&&(gY.z4=y4)}}else if(w){var Si,Xy,vP,qO=(Si=w.nextButton)==
null?void 0:(Xy=Si.buttonRenderer)==null?void 0:(vP=Xy.navigationEndpoint)==null?void 0:vP.clickTrackingParams;qO&&(XQ.itct=qO)}XQ.itct||(XQ.feature="related-auto");gY.dI=XQ;u.suggestions||(u.suggestions=[]);u.h6=gY}w.countDownSecs!=null&&(u.HN=w.countDownSecs*1E3);w.countDownSecsForFullscreen!=null&&(u.fM=w.countDownSecsForFullscreen>=0?w.countDownSecsForFullscreen*1E3:-1);u.j("web_autonav_color_transition")&&w.watchToWatchTransitionRenderer&&(u.watchToWatchTransitionRenderer=g.n(w.watchToWatchTransitionRenderer,
TEb))}var Rh=aQe(u);if(Rh){var Ta,ob,Yx,pQ=Rh==null?void 0:(Ta=Rh[0])==null?void 0:(ob=Ta.endScreenVideoRenderer)==null?void 0:(Yx=ob.navigationEndpoint)==null?void 0:Yx.clickTrackingParams,oA=g.eG(u);pQ&&oA&&(oA.sessionData={itct:pQ})}u.aH.currentVideoThumbnail&&(u.Y=JV(u.aH.currentVideoThumbnail));var NO,qg,Qb,Tf,KQ,xM=(NO=u.aH)==null?void 0:(qg=NO.contents)==null?void 0:(Qb=qg.twoColumnWatchNextResults)==null?void 0:(Tf=Qb.results)==null?void 0:(KQ=Tf.results)==null?void 0:KQ.contents;if(xM&&xM[1]){var Pb,
Cd,UF,pf,Mv=(Pb=xM[1].videoSecondaryInfoRenderer)==null?void 0:(Cd=Pb.owner)==null?void 0:(UF=Cd.videoOwnerRenderer)==null?void 0:(pf=UF.thumbnail)==null?void 0:pf.thumbnails;Mv&&Mv.length&&(u.profilePicture=Mv[Mv.length-1].url)}var NP=RO(h),Ga,BB=(Ga=u.getWatchNextResponse())==null?void 0:Ga.onResponseReceivedEndpoints;if(BB)for(var HP=g.C(BB),JS=HP.next();!JS.done;JS=HP.next()){var Oh=JS.value;g.n(Oh,aB)&&(u.aW=g.n(Oh,aB));var Kf=g.n(Oh,Yuf),rM=void 0;if((rM=Kf)==null?0:rM.entityKeys)u.Pf=Kf.entityKeys||
[],Kf.visibleOnLoadKeys&&(u.visibleOnLoadKeys=Kf.visibleOnLoadKeys)}if(u.j("web_key_moments_markers")){var GA=g.$m.getState().entities,BP=g.yv("visibility_override","markersVisibilityOverrideEntity");var Vm=p7(GA,"markersVisibilityOverrideEntity",BP);u.e7=(Vm==null?void 0:Vm.videoId)===(u.videoId||NP)&&(Vm==null?0:Vm.visibilityOverrideMarkersKey)?Vm.visibilityOverrideMarkersKey:u.visibleOnLoadKeys;u.visibleOnLoadKeys=[].concat(g.l(u.e7))}}};
sX=function(u){var h;return((h=u.autoplaySwitchButtonRenderer)==null?void 0:h.enabled)!==void 0};
tV=function(u){return!!(u.X&&u.X.videoInfos&&u.X.videoInfos.length)};
g.km=function(u){var h=u.S;u.j("html5_gapless_unlimit_format_selection")&&Wu(u)&&(h=!1);var L=!!u.G&&u.G.bP,Z=u.z7,y=u.uC(),R=Fu(u),p=u.wm,J=h,O=u.isOtf();h=u.ZP();var f=u.fI,D=u.getUserAudio51Preference(),c=bt(u),I=new hEe(Z);if(Z.UU()||Z.j("html5_logging_format_selection"))I.N=!0;I.ZI=R;I.wm=p&&Z.V;I.vX=D;g.nP("windows nt 5.1")&&!g.Nc&&(I.l8=!0);if(R=y)R=g.aL(Z)?hKn(Z):!1;R&&(I.XB=!0);J&&(I.l8=!0,I.Td=!0);O&&!Z.j("html5_otf_prefer_vp9")&&(I.l8=!0);Z.playerStyle==="picasaweb"&&(O&&(I.l8=!1),I.gw=
!1);f&&(I.l8=!0);fk(Z.T,D0.CHANNELS)&&(Z.j("html5_enable_aac51")&&(I.RH=!0),Z.j("html5_enable_ac3")&&(I.B=!0),Z.j("html5_enable_eac3")&&(I.T=!0),Z.j("html5_enable_ac3_gapless")&&(I.aH=!0));Z.j("html5_block_8k_hfr")&&(I.fI=!0);I.C=g.Jl(Z.experiments,"html5_max_selectable_quality_ordinal");I.V=g.Jl(Z.experiments,"html5_min_selectable_quality_ordinal");aV&&(I.nH=480);if(L||y)I.gw=!1;I.xl=!1;I.disableAv1=c;L=Qo(Z,I.G,void 0,I.disableAv1);L>0&&L<2160&&(fl()||Z.j("html5_format_hybridization"))&&(I.G.supportsChangeType=
+fl(),I.aM=L);L>=2160&&(I.T7=!0);okb()&&(I.G.serveVp9OverAv1IfHigherRes=0,I.jq=!1);I.ZP=h;I.VA=g.$w||gg()&&!h?!1:!0;I.S=Z.j("html5_format_hybridization");I.Ca=Z.j("html5_disable_encrypted_vp9_live_non_2k_4k");EX(u)&&(I.vj=u.j("html5_prefer_language_over_codec"));ep()&&u.playerResponse&&u.playerResponse.playerConfig&&u.playerResponse.playerConfig.webPlayerConfig&&u.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(I.B=!0,I.T=!0);u.S&&u.isAd()&&(u.Ss&&(I.AB=u.Ss),u.kt&&(I.X=
u.kt));I.jd=u.isLivePlayback&&u.v7()&&u.z7.j("html5_drm_live_audio_51");I.vJ=u.zW;return u.Zg=I};
bt=function(u){return u.z7.j("html5_disable_av1")||u.j("html5_gapless_shorts_disable_av1")&&Wu(u)?!0:!1};
o3Y=function(u){zQ("drm_pb_s",void 0,u.jd);u.Sd||u.G&&R3(u.G);var h={};u.G&&(h=sze(u.Ax,g.km(u),u.z7.T,u.G,function(L){return u.publish("ctmp","fmtflt",L)},!0,new Set));
h=new z9(h,u.z7,u.Co,u.useCobaltWidevine?ep()?gC(u):!1:!1,function(L,Z){u.IH(L,Z)});
g.V(u,h);u.i8=!1;u.loading=!0;c0Y(h,function(L){zQ("drm_pb_f",void 0,u.jd);for(var Z=g.C(L),y=Z.next();!y.done;y=Z.next())switch(y=y.value,y.flavor){case "fairplay":y.Sd=u.Sd;y.Ob=u.Ob;y.XC=u.XC;break;case "widevine":y.yf=u.yf}u.CE=L;if(u.CE.length>0&&(u.T=u.CE[0],u.z7.UU())){L={};Z=g.C(Object.entries(u.T.G));for(y=Z.next();!y.done;y=Z.next()){var R=g.C(y.value);y=R.next().value;R=R.next().value;var p="unk";(y=y.match(/(.*)codecs="(.*)"/))&&(p=y[2]);L[p]=R}u.IH("drmProbe",L)}u.LN()})};
NEn=function(u,h){if(h.length===0||un(u))return null;jS(u,"html5_enable_cobalt_experimental_vp9_decoder")&&(CS=!0);var L=u.ji;var Z=u.lengthSeconds,y=u.isLivePlayback,R=u.Ph,p=u.z7,J=nxL(h);if(y||R){p=p.experiments;Z=new LS("",p,!0);Z.N=!R;Z.bP=!0;Z.isManifestless=!0;Z.isLive=!R;Z.Ph=R;h=g.C(h);for(y=h.next();!y.done;y=h.next()){var O=y.value;y=RV(O,L);J=M6(O);J=KS(J.jg||O.url||"",J.vI,J.s);var f=J.get("id");f&&f.includes("%7E")&&(Z.Y=!0);var D=void 0;f=(D=p)==null?void 0:D.tB("html5_max_known_end_time_rebase");
D=Number(O.targetDurationSec||5);O=Number(O.maxDvrDurationSec||14400);var c=Number(J.get("mindsq")||J.get("min_sq")||"0"),I=Number(J.get("maxdsq")||J.get("max_sq")||"0")||Infinity;Z.vr=Z.vr||c;Z.w2=Z.w2||I;var A=!WX(y);J&&uG(Z,new nb(J,y,{AS:D,Ty:A,Zr:O,vr:c,w2:I,yH:300,Ph:R,JT:f}))}L=Z}else if(J==="FORMAT_STREAM_TYPE_OTF"){Z=Z===void 0?0:Z;R=new LS("",p.experiments,!1);R.duration=Z||0;p=g.C(h);for(Z=p.next();!Z.done;Z=p.next())Z=Z.value,h=RV(Z,L,R.duration),y=M6(Z),(y=KS(y.jg||Z.url||"",y.vI,y.s))&&
(h.streamType==="FORMAT_STREAM_TYPE_OTF"?uG(R,new s4(y,h,"sq/0")):uG(R,new E4(y,h,QB(Z.initRange),QB(Z.indexRange))));R.isOtf=!0;L=R}else{Z=Z===void 0?0:Z;R=new LS("",p.experiments,!1);R.duration=Z||0;p=g.C(h);for(Z=p.next();!Z.done;Z=p.next())J=Z.value,Z=RV(J,L,R.duration),h=QB(J.initRange),y=QB(J.indexRange),f=M6(J),(J=KS(f.jg||J.url||"",f.vI,f.s))&&uG(R,new E4(J,Z,h,y));L=R}R=u.isLivePlayback&&!u.Ph&&!u.T7&&!u.isPremiere;u.j("html5_live_head_playable")&&(!hF(u)&&R&&u.IH("missingLiveHeadPlayable",
{}),u.z7.AB==="yt"&&(L.VA=!0));return L};
un=function(u){return ep()?!gC(u):$7()?!(!u.Sd||!u.j("html5_enable_safari_fairplay")&&$i()):!1};
gC=function(u){return u.j("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
g.ng=function(u,h){h=g.C(h);for(var L=h.next();!L.done;L=h.next())if(L=L.value,L.cueRangeSetIdentifier){var Z=void 0;u.Jf.set(L.cueRangeSetIdentifier,(Z=L.playerCueRanges)!=null?Z:[])}};
L3=function(u){return!(!u.G||!u.G.isManifestless)};
Zy=function(u){return u.Td?u.isLowLatencyLiveStream&&u.G!=null&&Dp(u.G)>=5:u.isLowLatencyLiveStream&&u.G!=void 0&&Dp(u.G)>=5};
UUY=function(u){return ep()&&gC(u)?!1:un(u)&&(g.Qr(u.z7)?!u.isLivePlayback:u.hlsvp)||!$i()||u.MF?!0:!1};
rEe=function(u){u.loading=!0;u.oM=!1;if(GWY(u))g.j4i(u.videoId).then(function(Z){H0s(u,Z)}).then(function(){u.LN()});
else{bN(u.jq)||g.G3(new g.aO("DASH MPD Origin invalid: ",u.jq));var h=u.jq,L=g.Jl(u.z7.experiments,"dash_manifest_version")||4;h=g.sr(h,{mpd_version:L});u.isLowLatencyLiveStream&&u.latencyClass!=="NORMAL"||(h=g.sr(h,{pacing:0}));Fxw(h,u.z7.experiments,u.isLivePlayback).then(function(Z){u.ww()||(yq(u,Z,!0),zQ("mrc",void 0,u.jd),u.LN())},function(Z){u.ww()||(u.loading=!1,u.publish("dataloaderror",new lZ("manifest.net.retryexhausted",{backend:"manifest",
rc:Z.status},1)))});
zQ("mrs",void 0,u.jd)}};
H0s=function(u,h){var L=h.map(function(O){return O.itag}),Z;
if((Z=u.playerResponse)!=null&&Z.streamingData){Z=[];if(u.j("html5_offline_always_use_local_formats")){L=0;for(var y=g.C(h),R=y.next();!R.done;R=y.next()){R=R.value;var p=Object.assign({},R);p.signatureCipher="";Z.push(p);p=g.C(u.playerResponse.streamingData.adaptiveFormats);for(var J=p.next();!J.done;J=p.next())if(J=J.value,R.itag===J.itag&&R.xtags===J.xtags){L+=1;break}}L<h.length&&u.IH("offnpf",{prlen:L,lflen:h.length})}else for(y=g.C(u.playerResponse.streamingData.adaptiveFormats),p=y.next(),
R={};!p.done;R={dX:void 0},p=y.next())if(R.dX=p.value,u.j("html5_fix_multi_audio_offline_playback"))for(p=g.C(h),J=p.next();!J.done;J=p.next())J=J.value,J.itag===R.dX.itag&&J.xtags===R.dX.xtags&&(R.dX=Object.assign({},R.dX),R.dX.url=h.find(function(O){return function(f){return f.itag===O.dX.itag}}(R)).url,R.dX.signatureCipher="",Z.push(R.dX));
else L.includes(R.dX.itag)&&(R.dX=Object.assign({},R.dX),R.dX.url=h.find(function(O){return function(f){return f.itag===O.dX.itag}}(R)).url,R.dX.signatureCipher="",Z.push(R.dX));
Z.length<2&&u.IH("offmlf",{len:Z.length});h=NEn(u,Z);Fu(u)&&gxV(h,!1);yq(u,h);u.IH("dlr",{})}else u.IH("offsdm",{cotn:u.Nh?u.Nh.cotn:"0",cpn:u.clientPlaybackNonce})};
BEY=function(u){var h;return!((h=u.z7.getWebPlayerContextConfig())==null||!h.enableProximaLowLatency)};
Rb=function(u){if(!u.isProximaLatencyEligible)return 0;var h=Nm();return BEY(u)?2:h===1?1:u.j("html5_enable_proxima")?2:0};
yq=function(u,h,L){L=L===void 0?!1:L;u.Yt=void 0;u.G=h;g.V(u,h);h.vr=u.vr;h.w2=u.w2;h.vX=u.vX;h.mz=u.mz;h.vj=u.vj;u.xo&&(h.S=new fb(u.xo));(u.uC()||g.p3(u))&&u.gw.push("webgl");u.G.isLive||(u.isLivePlayback=!1);var Z=h.sourceUrl.split("/");if(u.Td?Z.indexOf("manifest_duration")!==-1:Z.indexOf("manifest_duration")!=-1)u.Be=Number(Z[Z.indexOf("manifest_duration")+1]);if(h.N||h.isManifestless)h.subscribe("clienttemp",u.IH,u),L?h.subscribe("refresh",u.OG,u):h.subscribe("cuepointsadded",u.pC,u);R3(h)?
u.i8=!0:d2=void 0;u.T7&&(h.B=u.T7,h.isLive=!0,u.isLivePlayback=!0);h.isPremiere=u.isPremiere;h.isLiveHeadPlayable=u.isLiveHeadPlayable};
mUj=function(u,h){var L=h||UUY(u)||u.isExternallyHostedPodcast;if(!u.G||L)return u.IH("skipDash",{dm:!!u.G,air:h,dd:u.MF,mss:$i(),"3pp":u.isExternallyHostedPodcast}),NI();Fu(u)&&gxV(u.G,u.isLivePlayback);jS(u,"html5_enable_cobalt_experimental_vp9_decoder")&&oGj(u.z7.T);return UJ().then(function(){return eDY(u.Ax,g.km(u),u.z7.T,u.G,u.T,function(Z){return u.publish("ctmp","fmtflt",Z)},u.uV,EX(u)&&u.j("html5_enable_server_format_filter")).then(function(Z){zgb(u,Z);
u.Ax.G=null;/^av/.test(u.clientPlaybackNonce)&&u.Zg&&u.IH("av1",u.Zg.G)})})};
dUn=function(u,h){if(h&&u.hlsvp)return NI();if(u.hlsFormats){h=K3(u.hlsFormats);var L;if(((L=u.Zg)==null?0:L.N)&&h){L=[];for(var Z=g.C(h),y=Z.next();!y.done;y=Z.next())L.push(y.value.itag);u.IH("hlsfmt",{itags:L.join(".")})}u.dL=xyR(u.z7,h);L=u.clientPlaybackNonce;var R,p,J,O;return Q0e(u.z7,u.isAd(),h,(O=(R=u.playerResponse)==null?void 0:(p=R.captions)==null?void 0:(J=p.playerCaptionsRenderer)==null?void 0:J.baseUrl)!=null?O:null,u.Oo,L,function(f){return u.publish("ctmp","hlsflt",f)}).then(function(f){for(var D=
0,c=[],I=g.C(f),A=I.next();!A.done;A=I.next()){A=A.value;
var x=void 0;c.push((x=A.getInfo())==null?void 0:x.itag);var Q=x=void 0;((x=A.getInfo())==null?void 0:(Q=x.audio)==null?void 0:Q.numChannels)>D&&(D=A.getInfo().audio.numChannels)}D>2&&u.IH("hlschl",{mn:D});var S;((S=u.Zg)==null?0:S.N)&&u.IH("hlsfmtaf",{itags:c.join(".")});var v;if(u.j("html5_enable_vp9_fairplay")&&((v=u.T)==null?0:Yi(v)))for(u.IH("drm",{sbdlfbk:1}),D=g.C(u.CE),c=D.next();!c.done;c=D.next())if(c=c.value,T9(c)){u.T=c;break}JF(u,f)})}return NI()};
VDl=function(u){if(u.isExternallyHostedPodcast&&u.Qs){var h=K3(u.Qs);if(!h[0])return NI();u.PO=h[0];return XTb(u.z7,h[0]).then(function(L){JF(u,L)})}return u.wD&&u.v3?SLn(u.z7,u.isAd(),u.wD).then(function(L){JF(u,L)}):NI()};
s4V=function(u){if(u.isExternallyHostedPodcast)return NI();var h=K3(u.Qs,u.rj);if(u.hlsvp){var L=fBa(u.hlsvp,u.clientPlaybackNonce,u.Oo);h.push(L)}return lQf(u.z7,u.isAd(),h,n3b(u)).then(function(Z){JF(u,Z)})};
zgb=function(u,h){u.X=h;if(u.X){h=g.C(u.X.videoInfos);for(var L=h.next();!L.done;L=h.next()){L=L.value;var Z=L.containerType;Z!==0&&(u.GW[Z]=L.id)}}OT(u);if(u.T&&u.X&&u.X.videoInfos&&!(u.X.videoInfos.length<=0)&&(h=tg(u.X.videoInfos[0]),u.T.flavor==="fairplay"!==h))for(L=g.C(u.CE),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,h===(Z.flavor==="fairplay")){u.T=Z;break}};
JF=function(u,h){u.XN=h;zgb(u,new j5(g.Xx(u.XN,function(L){return L.getInfo()})))};
n3b=function(u){var h={cpn:u.clientPlaybackNonce,c:u.z7.G.c,cver:u.z7.G.cver};u.qC&&(h.ptk=u.qC,h.oid=u.Ey,h.ptchn=u.P3,h.pltype=u.oW,u.Ny&&(h.m=u.Ny));return h};
g.f3=function(u){return un(u)&&u.Sd?(u={},u.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",u):u.N&&u.N.ji||null};
wea=function(u){var h=Dy(u);return h&&h.text?g.cL(h.text):u.paidContentOverlayText};
egw=function(u){var h=Dy(u);return h&&h.durationMs?ge(h.durationMs):u.paidContentOverlayDurationMs};
Dy=function(u){var h,L,Z;return u.playerResponse&&u.playerResponse.paidContentOverlay&&u.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.n((h=u.aH)==null?void 0:(L=h.playerOverlays)==null?void 0:(Z=L.playerOverlayRenderer)==null?void 0:Z.playerDisclosure,aBe)||null};
cz=function(u){var h="";if(u.Af)return u.Af;u.isLivePlayback&&(h=u.allowLiveDvr?"dvr":u.isPremiere?"lp":u.T7?"window":"live");u.Ph&&(h="post");return h};
g.Ib=function(u,h){return typeof u.keywords[h]!=="string"?null:u.keywords[h]};
$Ul=function(u){return!!u.iX||!!u.z9||!!u.FH||!!u.ej||u.Md||u.V.focEnabled||u.V.rmktEnabled};
g.AF=function(u){return!!(u.jq||u.Qs||u.wD||u.hlsvp||u.nX())};
Bu=function(u){if(u.j("html5_onesie")&&u.errorCode)return!1;var h=g.E8(u.gw,"ypc");u.ypcPreview&&(h=!1);return u.ih()&&!u.loading&&(g.AF(u)||g.E8(u.gw,"heartbeat")||h)};
K3=function(u,h){u=h5(u);var L={};if(h){h=g.C(h.split(","));for(var Z=h.next();!Z.done;Z=h.next())(Z=Z.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(L[Z[1]]={width:Z[2],height:Z[3]})}h=g.C(u);for(Z=h.next();!Z.done;Z=h.next()){Z=Z.value;var y=L[Z.itag];y&&(Z.width=y.width,Z.height=y.height)}return u};
OT=function(u){var h=u.getAvailableAudioTracks();h=h.concat(u.XU);for(var L=0;L<u.Qo.length;L++)for(var Z=u.Qo[L],y=0;y<h.length;y++){var R=h[y],p=R.tM.id===Z.audioTrackId;if(R.tM.isDefault&&L===u.oX||p){if(Z.captionTrackIndices)for(p=0;p<Z.captionTrackIndices.length;p++)R.captionTracks[p]=u.captionTracks[Z.captionTrackIndices[p]];Z.defaultCaptionTrackIndex!==void 0&&(R.X=u.captionTracks[Z.defaultCaptionTrackIndex]);Z.forcedCaptionTrackIndex!==void 0&&(R.G=u.captionTracks[Z.forcedCaptionTrackIndex]);
R.N=Z.visibility||"UNKNOWN";R.captionsInitialState=Z.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}};
Q4n=function(u,h){u.showShareButton=!!h;var L,Z,y=((L=g.n(h,g.TW))==null?void 0:L.navigationEndpoint)||((Z=g.n(h,g.TW))==null?void 0:Z.command);y&&(u.r6=!!g.n(y,tDl))};
DUs=function(u,h){var L=h.raw_embedded_player_response;if(!L){var Z=h.embedded_player_response;Z&&(L=JSON.parse(Z))}L&&(u.jZ=L);if(u.jZ){u.embeddedPlayerConfig=u.jZ.embeddedPlayerConfig||null;if(L=u.jZ.videoFlags)L.playableInEmbed&&(u.allowEmbed=!0),L.isPrivate&&(u.isPrivate=!0),L.userDisplayName&&(h.user_display_name=L.userDisplayName),L.userDisplayImage&&(h.user_display_image=L.userDisplayImage);if(L=u.jZ.embedPreview){L=L.thumbnailPreviewRenderer;eKl(u,L.controlBgHtml);if(Z=L.defaultThumbnail)u.Y=
JV(Z);u.j("embeds_web_enable_search_button")&&L.searchButton&&(Z=g.n(L.searchButton,g.TW))&&(u.KU=g.n(Z.navigationEndpoint,g.xH));(Z=g.n(L==null?void 0:L.videoDetails,W_R))&&v3s(u,h,Z);Z=g.n(L==null?void 0:L.videoDetails,F_a);u.qr=!!L.addToWatchLaterButton;Q4n(u,L.shareButton);if(Z==null?0:Z.musicVideoType)u.musicVideoType=Z.musicVideoType;var y,R,p,J,O;if(Z=g.n((y=u.getEmbeddedPlayerResponse())==null?void 0:(R=y.embedPreview)==null?void 0:(p=R.thumbnailPreviewRenderer)==null?void 0:(J=p.playButton)==
null?void 0:(O=J.buttonRenderer)==null?void 0:O.navigationEndpoint,g.wC))YLn(u,Z),u.videoId=Z.videoId||u.videoId;L.videoDurationSeconds&&(u.lengthSeconds=ge(L.videoDurationSeconds));L.webPlayerActionsPorting&&wT1(u,L.webPlayerActionsPorting);if(y=g.n(L==null?void 0:L.playlist,b01)){u.B6=!0;R=[];p=Number(y.currentIndex);if(y.contents)for(J=0,O=y.contents.length;J<O;J++)if(L=y.contents[J].playlistPanelVideoRenderer){Z=L.shortBylineText?g.cL(L.shortBylineText):"";var f=L.title?g.cL(L.title):"";R.push({author:Z,
encrypted_id:L.videoId,title:f,channel_path:J===p?h.channel_path:"",profile_picture:J===p?h.profile_picture:"",is_private:J===p?u.isPrivate:!0,is_dni:J===p?u.Rc:!1,dni_color:J===p?u.nE:""})}h={index:y.currentIndex,list:y.playlistId,playlist_length:y.totalVideos,video:R};y.titleText&&(h.title=g.cL(y.titleText));y.shortBylineText&&(h.author=g.cL(y.shortBylineText));u.AJ=h}var D,c,I;if(h=g.n((D=u.getEmbeddedPlayerResponse())==null?void 0:(c=D.embedPreview)==null?void 0:(I=c.thumbnailPreviewRenderer)==
null?void 0:I.infoPanel,Su1)){u.HK=Number(h==null?void 0:h.durationMs)||NaN;if(h==null?0:h.infoPanelOverviewViewModel)u.J4=h==null?void 0:h.infoPanelOverviewViewModel;if(h==null?0:h.infoPanelDetailsViewModel)u.zG=h==null?void 0:h.infoPanelDetailsViewModel}}if(u.jZ.previewPlayabilityStatus){if(u.OM=u.jZ.previewPlayabilityStatus,D=u.OM,!["OK","LIVE_STREAM_OFFLINE"].includes(D.status)){u.errorCode=qLj(D.errorCode);c=D.errorScreen;if(I=c==null?void 0:c.playerErrorMessageRenderer){u.KT=I;if(h=I.reason)u.errorReason=
g.cL(h);if(I=I.subreason)u.Ud=g.cL(I)}else u.errorReason=D.reason||null;switch(D.status){case "LOGIN_REQUIRED":u.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":u.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var A;(c==null?0:(A=c.playerKavRenderer)==null?0:A.kavUrl)?u.errorDetail="4":u.errorDetail="3";break;default:u.errorDetail=D.isBlockedInRestrictedMode?"5":"0"}}}else u.jZ.playabilityStatus&&(u.De=u.jZ.playabilityStatus,E3V(u)&&(u.errorDetail="0",u.De&&((A=u.De.embeddedPlayerErrorMessageRenderer)?
u.KT=g.n(A,kWw):u.errorReason=u.De.reason||null)));(A=u.jZ.attestation)&&myl(u,A);(A=u.jZ.permissions)&&A.allowImaMonetization&&(u.allowImaMonetization=!0)}};
v3s=function(u,h,L){var Z=L.channelThumbnail;Z&&(Z=Z.thumbnails)&&(Z=Z[0])&&(h.profile_picture=Z.url);var y;if(Z=g.n((y=g.n(L==null?void 0:L.channelThumbnailEndpoint,g3a))==null?void 0:y.urlEndpoint,g.HL))h.channel_path=Z.url;if(y=L.collapsedRenderer)if(y=g.n(y,uNY)){if(Z=y.title)h.title=g.cL(Z);if(y=y.subtitle)h.subtitle=g.cL(y)}if(L=L.expandedRenderer)if(L=g.n(L,j7n)){if(y=L.title)h.expanded_title=g.cL(y);if(y=L.subtitle)h.expanded_subtitle=g.cL(y);if(L=L.subscribeButton)u.subscribeButtonRenderer=
g.n(L,g.Pz),u.subscribeButtonRenderer&&(h.ucid=u.subscribeButtonRenderer.channelId,h.subscribed=u.subscribeButtonRenderer.subscribed,u.Cg=!!u.subscribeButtonRenderer.notificationPreferenceToggleButton,u.subscribeButtonRenderer.notificationPreferenceToggleButton&&u.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(h=u.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,h.isToggled?(u.RT=h.toggledServiceEndpoint||null,u.IT=h.defaultServiceEndpoint||
null):(u.RT=h.defaultServiceEndpoint||null,u.IT=h.toggledServiceEndpoint||null)))}};
g.C3=function(u){return hF(u)&&!u.allowLiveDvr};
MP=function(u){return hF(u)&&u.allowLiveDvr};
hF=function(u){return u.j("html5_live_head_playable")&&L3(u)&&u.z7.AB==="yt"?u.isLiveHeadPlayable:u.isLivePlayback};
g.Qq=function(u){return!!u.G&&UOs(u.G)};
g.ln=function(u){return!!u.G&&Gaa(u.G)};
g.SS=function(u){return!!u.G&&HlR(u.G)};
g.p3=function(u){return!!u.G&&rqi(u.G)};
g.hfR=function(u){if(u.xL)return null;var h=u.yu;h||(h=u.playerResponse&&u.playerResponse.endscreen&&u.playerResponse.endscreen.endscreenUrlRenderer&&u.playerResponse.endscreen.endscreenUrlRenderer.url);return h||null};
g.La1=function(u){return u.xL?null:u.playerResponse&&u.playerResponse.endscreen&&u.playerResponse.endscreen.endscreenRenderer||null};
g.XP=function(u){return u.j("enable_wn_infocards")};
g.vz=function(u){var h,L,Z,y;return(g.XP(u)?(h=u.aH)==null?void 0:(L=h.cards)==null?void 0:L.cardCollectionRenderer:(Z=u.playerResponse)==null?void 0:(y=Z.cards)==null?void 0:y.cardCollectionRenderer)||null};
g.qP=function(u){if(!u.playerResponse||!u.playerResponse.annotations)return null;u=g.C(u.playerResponse.annotations);for(var h=u.next();!h.done;h=u.next())if(h=h.value,h.playerAnnotationsExpandedRenderer&&h.playerAnnotationsExpandedRenderer.featuredChannel)return h.playerAnnotationsExpandedRenderer;return null};
UT=function(u){return u.adFormat&&(u.Td?u.adFormat!=="1_5":u.adFormat!="1_5")?"adunit":u.eventLabel||u.z7.DI};
g.Hz=function(u){return UT(u)==="shortspage"};
Wu=function(u){return u.LV()&&u.L().supportsGaplessShorts()};
rm=function(u){if(u.isAd()&&(u.Td?u.videoId!==u.z7.La:u.videoId!=u.z7.La))return u.z7.La};
Bz=function(u){return u.J3||UT(u)==="detailpage"||UT(u)==="shortspage"||u.mutedAutoplay};
zA=function(u){var h=(h=u.j("enable_cleanup_masthead_autoplay_hack_fix"))&&UT(u)==="adunit"?u.OF:Bz(u)?UT(u)==="detailpage"||UT(u)==="shortspage"?u.isAutonav||u.nH>0:h||u.adFormat!=="17_8"||u.isAutonav||g.wS(u.z7)||u.OF?u.Mr?!1:u.z7.Qs||u.z7.Cr||!g.MW(u.z7)?!h&&UT(u)==="adunit"&&u.iX?!1:!0:!1:!1:(u.Mr?0:u.ol)&&g.MW(u.z7)?!0:!1;u.j("html5_log_detailpage_autoplay")&&UT(u)==="detailpage"&&u.IH("autoplay_info",{autoplay:u.J3,autonav:u.isAutonav,wasDompaused:u.Mr,result:h});return h};
g.mn=function(u){return u.oauthToken||u.z7.iX};
y$n=function(u){if(u.j("html5_stateful_audio_normalization")){var h=1,L=g.Jl(u.z7.experiments,"html5_default_ad_gain");L&&u.isAd()&&(h=L);var Z;if(L=((Z=u.B)==null?void 0:Z.audio.N)||u.Nd){Z=(0,g.vC)();u.S3=2;var y=Z-u.z7.Xb<=u.maxStatefulTimeThresholdSec*1E3;u.applyStatefulNormalization&&y?u.S3=4:y||(u.z7.MG=Infinity,u.z7.Xb=NaN);y=(u.S3===4?g.pX(u.z7.MG,u.minimumLoudnessTargetLkfs,u.loudnessTargetLkfs):u.loudnessTargetLkfs)-L;if(u.S3!==4){var R,p,J,O,f=((R=u.playerResponse)==null?void 0:(p=R.playerConfig)==
null?void 0:(J=p.audioConfig)==null?void 0:(O=J.loudnessNormalizationConfig)==null?void 0:O.statelessLoudnessAdjustmentGain)||0;y+=f}y=Math.min(y,0);u.preserveStatefulLoudnessTarget&&(u.z7.MG=L+y,u.z7.Xb=Z);u=Math.min(1,Math.pow(10,y/20))||h}else u=ZOw(u)}else u=ZOw(u);return u};
ZOw=function(u){var h=1,L=g.Jl(u.z7.experiments,"html5_default_ad_gain");L&&u.isAd()&&(h=L);var Z;if(L=((Z=u.B)==null?void 0:Z.audio.X)||u.fV)u.S3=1;return Math.min(1,Math.pow(10,-L/20))||h};
Fu=function(u){var h=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],L=nS(u.z7)==="TVHTML5_SIMPLY"&&u.z7.G.ctheme==="MUSIC";u.Cr||!g.rp(u.z7)&&!L||!h.includes(u.musicVideoType)&&!u.isExternallyHostedPodcast||(u.Cr=!0);if(h=g.wg())h=/Starboard\/([0-9]+)/.exec(g.N7()),h=(h?parseInt(h[1],10):NaN)<10;L=u.z7;L=(nS(L)==="TVHTML5_CAST"||nS(L)==="TVHTML5"&&(L.G.cver.startsWith("6.20130725")||L.G.cver.startsWith("6.20130726")))&&u.z7.G.ctheme==="MUSIC";var Z;if(Z=!u.Cr)L||(L=u.z7,L=nS(L)===
"TVHTML5"&&L.G.cver.startsWith("7")),Z=L;Z&&!h&&(h=u.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",L=(u.j("cast_prefer_audio_only_for_atv_and_uploads")||u.j("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&u.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",h||L||u.isExternallyHostedPodcast)&&(u.Cr=!0);return u.z7.deviceIsAudioOnly||u.Cr&&u.z7.V};
g.RfR=function(u){var h;if(!(h=u.j("html5_enable_sabr_live_captions")&&u.bP()&&EX(u))){var L,Z,y;h=((L=u.playerResponse)==null?void 0:(Z=L.playerConfig)==null?void 0:(y=Z.compositeVideoConfig)==null?void 0:y.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}return h};
dm=function(u){var h,L,Z;return!!((h=u.playerResponse)==null?0:(L=h.playerConfig)==null?0:(Z=L.mediaCommonConfig)==null?0:Z.splitScreenEligible)};
Vq=function(u){var h;return!((h=u.playerResponse)==null||!h.compositePlayabilityStatus)};
p6l=function(u){return isNaN(u)?0:Math.max((Date.now()-u)/1E3-30,0)};
n3=function(u){return!(!u.K3||!u.z7.V)&&u.nX()};
Kab=function(u){return u.enablePreroll&&u.enableServerStitchedDai};
J$a=function(u){return u.T2&&!u.xo};
EX=function(u){var h=u.j("html5_enable_sabr_on_drive")&&u.z7.AB==="gd";if(u.dA)return u.T2&&u.IH("fds",{fds:!0},!0),!1;if(u.z7.AB!=="yt"&&!h)return u.T2&&u.IH("dsvn",{ns:u.z7.AB},!0),!1;if(u.cotn||!u.G||u.G.isOtf||u.DG&&!u.j("html5_enable_sabr_csdai"))return!1;if(u.j("html5_use_sabr_requests_for_debugging"))return!0;if(u.T2&&u.xo)return u.IH("esfw",{usbc:u.T2,hsu:!!u.xo},!0),!0;if(u.j("html5_remove_client_sabr_determination"))return!1;var L=!u.G.bP&&!u.v7();h=L&&sf&&u.j("html5_enable_sabr_vod_streaming_xhr");
L=L&&!sf&&u.j("html5_enable_sabr_vod_non_streaming_xhr");var Z=sT(u),y=u.j("html5_enable_sabr_drm_vod_streaming_xhr")&&sf&&u.v7()&&!u.G.bP&&(u.MG==="1"?!1:!0);(h=h||L||Z||y)&&!u.xo&&u.IH("sabr",{loc:"m"},!0);return h&&!!u.xo};
sT=function(u){var h;if(!(h=sf&&u.bP()&&u.v7()&&(u.MG==="1"?!1:!0)&&u.j("html5_sabr_live_drm_streaming_xhr"))){h=u.bP()&&!u.v7()&&sf;var L=u.bP()&&u.latencyClass!=="ULTRALOW"&&!u.isLowLatencyLiveStream&&u.j("html5_sabr_live_normal_latency_streaming_xhr"),Z=u.isLowLatencyLiveStream&&u.j("html5_sabr_live_low_latency_streaming_xhr"),y=u.latencyClass==="ULTRALOW"&&u.j("html5_sabr_live_ultra_low_latency_streaming_xhr");h=h&&(L||Z||y)}L=h;h=u.enableServerStitchedDai&&L&&u.j("html5_enable_sabr_ssdai_streaming_xhr");
L=!u.enableServerStitchedDai&&L;Z=u.bP()&&!sf&&u.j("html5_enable_sabr_live_non_streaming_xhr");u=sf&&(u.KZ()||dm(u)&&u.j("html5_enable_sabr_for_lifa_eligible_streams"));return h||L||Z||u};
g.dC=function(u){return u.ND&&EX(u)};
GWY=function(u){var h;if(h=!!u.cotn)h=u.videoId,h=!!h&&g.it(h)===1;return h&&!u.K3};
g.wm=function(u){if(!u.G||!u.N||!u.B)return!1;var h=u.G.G,L=!!h[u.N.id]&&xa(h[u.N.id].D3.G);h=!!h[u.B.id]&&xa(h[u.B.id].D3.G);return(u.N.itag==="0"||L)&&h};
eS=function(u){return u.OM?["OK","LIVE_STREAM_OFFLINE"].includes(u.OM.status):!0};
E3V=function(u){return(u=u.De)&&u.showError?u.showError:!1};
jS=function(u,h){return u.j(h)?!0:(u.fflags||"").includes(h+"=true")};
OOV=function(u){return u.j("html5_heartbeat_iff_heartbeat_params_filled")};
Caa=function(u,h){h.inlineMetricEnabled&&(u.inlineMetricEnabled=!0);h.playback_progress_0s_url&&(u.ej=new tIV(h));if(h=h.video_masthead_ad_quartile_urls)u.z9=h.quartile_0_url,u.H3=h.quartile_25_url,u.SE=h.quartile_50_url,u.qM=h.quartile_75_url,u.iA=h.quartile_100_url,u.FH=h.quartile_0_urls,u.Uh=h.quartile_25_urls,u.LM=h.quartile_50_urls,u.H4=h.quartile_75_urls,u.jr=h.quartile_100_urls};
Pa1=function(u){var h={};u=g.C(u);for(var L=u.next();!L.done;L=u.next()){L=L.value;var Z=L.split("=");Z.length===2?h[Z[0]]=Z[1]:h[L]=!0}return h};
IBL=function(u){if(u){if(ZuV(u))return u;u=ymL(u);if(ZuV(u,!0))return u}return""};
g.f2n=function(u){return u.captionsLanguagePreference||u.z7.captionsLanguagePreference||g.Ib(u,"yt:cc_default_lang")||u.z7.wm};
ab=function(u){return!(!u.isLivePlayback||!u.hasProgressBarBoundaries())};
g.eG=function(u){var h;return u.h6||((h=u.suggestions)==null?void 0:h[0])||null};
g.$H=function(u){return u.Rc&&(u.j("embeds_enable_pfp_always_unbranded")||u.z7.Hp)};
tF=function(u,h){u.j("html5_log_autoplay_src")&&Wu(u)&&u.IH("apsrc",{src:h})};
g.Wz=function(u){var h,L;return!!((h=u.embeddedPlayerConfig)==null?0:(L=h.embeddedPlayerFlags)==null?0:L.enableMusicUx)};
g.bn=function(u){var h=u.L(),L=g.FP(h),Z=h.Sd;(h.j("embeds_web_enable_iframe_api_send_full_embed_url")||h.j("embeds_web_enable_rcat_validation_in_havs")||h.j("embeds_enable_autoplay_and_visibility_signals"))&&g.v$(h)&&(Z&&(L.thirdParty=Object.assign({},L.thirdParty,{embedUrl:Z})),G0n(L,u));if(Z=u.DI)L.clickTracking={clickTrackingParams:Z};Z=L.client||{};var y="EMBED",R=UT(u);R==="leanback"?y="WATCH":h.j("gvi_channel_client_screen")&&R==="profilepage"?y="CHANNEL":u.fI?y="LIVE_MONITOR":R==="detailpage"?
y="WATCH_FULL_SCREEN":R==="adunit"?y="ADUNIT":R==="sponsorshipsoffer"&&(y="UNKNOWN");Z.clientScreen=y;if(h=u.kidsAppInfo)Z.kidsAppInfo=JSON.parse(h);(y=u.Hp)&&!h&&(Z.kidsAppInfo={contentSettings:{ageUpMode:Dnl[y]}});if(h=u.l6)Z.unpluggedAppInfo={enableFilterMode:!0};(y=u.unpluggedFilterModeType)&&!h&&(Z.unpluggedAppInfo={filterModeType:c$V[y]});if(h=u.AB)Z.unpluggedLocationInfo=h;L.client=Z;Z=L.request||{};u.Z1&&(Z.isPrefetch=!0);if(h=u.mdxEnvironment)Z.mdxEnvironment=h;if(h=u.mdxControlMode)Z.mdxControlMode=
I2i[h];L.request=Z;Z=L.user||{};if(h=u.RH)Z.credentialTransferTokens=[{token:h,scope:"VIDEO"}];if(h=u.vJ)Z.delegatePurchases={oauthToken:h},Z.kidsParent={oauthToken:h};L.user=Z;if(Z=u.contextParams)L.activePlayers=[{playerContextParams:Z}];if(u=u.clientScreenNonce)L.clientScreenNonce=u;return L};
g.FP=function(u){var h=g.W2(),L=h.client||{};if(u.forcedExperiments){var Z=u.forcedExperiments.split(","),y=[];Z=g.C(Z);for(var R=Z.next();!R.done;R=Z.next())y.push(Number(R.value));L.experimentIds=y}if(y=u.homeGroupInfo)L.homeGroupInfo=JSON.parse(y);if(y=u.getPlayerType())L.playerType=y;if(y=u.G.ctheme)L.theme=y;if(y=u.livingRoomAppMode)L.tvAppInfo=Object.assign({},L.tvAppInfo,{livingRoomAppMode:y});y=u.deviceYear;u.j("html5_propagate_device_year")&&y&&(L.tvAppInfo=Object.assign({},L.tvAppInfo,{deviceYear:y}));
if(y=u.livingRoomPoTokenId)L.tvAppInfo=Object.assign({},L.tvAppInfo,{livingRoomPoTokenId:y});h.client=L;L=h.user||{};u.enableSafetyMode&&(L=Object.assign({},L,{enableSafetyMode:!0}));u.pageId&&(L=Object.assign({},L,{onBehalfOfUser:u.pageId}));h.user=L;L=u.Sd;u.j("embeds_web_enable_iframe_api_send_full_embed_url")||u.j("embeds_web_enable_rcat_validation_in_havs")||u.j("embeds_enable_autoplay_and_visibility_signals")||!L||(h.thirdParty={embedUrl:L});return h};
iOw=function(u,h,L){var Z=u.videoId,y=g.bn(u),R=u.L(),p={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(v5()),referer:document.location.toString(),signatureTimestamp:20132};g.dN();u.isAutonav&&(p.autonav=!0);g.Vl(0,141)&&(p.autonavState=g.Vl(0,140)?"STATE_OFF":"STATE_ON");p.autoCaptionsDefaultOn=g.Vl(0,66);zA(u)&&(p.autoplay=!0);R.V&&u.cycToken&&(p.cycToken=u.cycToken);R.enablePrivacyFilter&&(p.enablePrivacyFilter=!0);u.isFling&&(p.fling=!0);var J=u.forceAdsUrl;if(J){var O={},f=[];J=J.split(",");
J=g.C(J);for(var D=J.next();!D.done;D=J.next()){D=D.value;var c=D.split("|");c.length!==3||D.includes("=")||(c[0]="breaktype="+c[0],c[1]="offset="+c[1],c[2]="url="+c[2]);D={adtype:"video_ad"};c=g.C(c);for(var I=c.next();!I.done;I=c.next()){var A=g.C(I.value.split("="));I=A.next().value;A=ys1(A);D[I]=A.join("=")}c=D.url;I=D.presetad;A=D.viralresponseurl;var x=Number(D.campaignid);if(D.adtype==="in_display_ad")c&&(O.url=c),I&&(O.presetAd=I),A&&(O.viralAdResponseUrl=A),x&&(O.viralCampaignId=String(x));
else if(D.adtype==="video_ad"){var Q={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(D.offset)||0)}};if(D=A$L[D.breaktype])Q.breakType=D;c&&(Q.url=c);I&&(Q.presetAd=I);A&&(Q.viralAdResponseUrl=A);x&&(Q.viralCampaignId=String(x));f.push(Q)}}p.forceAdParameters={videoAds:f,inDisplayAd:O}}u.isInlinePlaybackNoAd&&(p.isInlinePlaybackNoAd=!0);u.isLivingRoomDeeplink&&(p.isLivingRoomDeeplink=!0);O=u.Rz;if(O!=null){O={startWalltime:String(O)};if(f=u.Be)O.manifestDuration=String(f||14400);p.liveContext=
O}if(u.mutedAutoplay&&(p.mutedAutoplay=!0,u.j("embeds_enable_full_length_inline_muted_autoplay"))){O=R.getWebPlayerContextConfig();var S,v;(O==null?0:(S=O.embedsHostFlags)==null?0:S.allowMutedAutoplayDurationMode)&&(O==null?0:(v=O.embedsHostFlags)==null?0:v.allowMutedAutoplayDurationMode.includes(xnn[u.mutedAutoplayDurationMode]))&&(p.mutedAutoplayDurationMode=xnn[u.mutedAutoplayDurationMode])}if(u.Mr?0:u.ol)p.splay=!0;S=u.vnd;S===5&&(p.vnd=S);S={};if(v=u.isMdxPlayback)S.triggeredByMdx=v;if(v=u.Eb)S.skippableAdsSupported=
v.split(",").includes("ska");if(f=u.QK){v=u.qh;O=[];f=g.C(H2n(f));for(J=f.next();!J.done;J=f.next()){J=J.value;D=J.platform;J={applicationState:J.WC?"INACTIVE":"ACTIVE",clientFormFactor:Pma[D]||"UNKNOWN_FORM_FACTOR",clientName:B1b[J.lM]||"UNKNOWN_INTERFACE",clientVersion:J.deviceVersion||"",platform:CmL[D]||"UNKNOWN_PLATFORM"};D={};if(v){c=void 0;try{c=JSON.parse(v)}catch(T){g.G3(T)}c&&(D={params:[{key:"ms",value:c.ms}]},c.advertising_id&&(D.advertisingId=c.advertising_id),c.limit_ad_tracking!==void 0&&
c.limit_ad_tracking!==null&&(D.limitAdTracking=c.limit_ad_tracking),J.osName=c.os_name,J.userAgent=c.user_agent,J.windowHeightPoints=c.window_height_points,J.windowWidthPoints=c.window_width_points)}O.push({adSignalsInfo:D,remoteClient:J})}S.remoteContexts=O}v=u.sourceContainerPlaylistId;O=u.serializedMdxMetadata;if(v||O)f={},v&&(f.mdxPlaybackContainerInfo={sourceContainerPlaylistId:v}),O&&(f.serializedMdxMetadata=O),S.mdxPlaybackSourceContext=f;p.mdxContext=S;S=h.width;S>0&&(p.playerWidthPixels=
Math.round(S));if(h=h.height)p.playerHeightPixels=Math.round(h);L!==0&&(p.vis=L);if(L=R.widgetReferrer)p.widgetReferrer=L.substring(0,128);g.MW(R)&&p&&(p.ancestorOrigins=R.ancestorOrigins);u.defaultActiveSourceVideoId&&(p.compositeVideoContext={defaultActiveSourceVideoId:u.defaultActiveSourceVideoId});if(R=R.getWebPlayerContextConfig())p.encryptedHostFlags=R.encryptedHostFlags;Z={videoId:Z,context:y,playbackContext:{contentPlaybackContext:p}};u.reloadPlaybackParams&&(Z.playbackContext.reloadPlaybackContext=
{reloadPlaybackParams:u.reloadPlaybackParams});u.contentCheckOk&&(Z.contentCheckOk=!0);if(y=u.clientPlaybackNonce)Z.cpn=y;if(y=u.playerParams)Z.params=y;if(y=u.playlistId)Z.playlistId=y;u.racyCheckOk&&(Z.racyCheckOk=!0);y=u.L();if(p=y.embedConfig)Z.serializedThirdPartyEmbedConfig=p;Z.captionParams={};p=g.Vl(g.dN(),65);u.deviceCaptionsOn!=null?Z.captionParams.deviceCaptionsOn=u.deviceCaptionsOn:g.nC(y)&&(Z.captionParams.deviceCaptionsOn=p!=null?!p:!1);u.Gv&&(Z.captionParams.deviceCaptionsLangPref=
u.Gv);u.Xm.length?Z.captionParams.viewerSelectedCaptionLangs=u.Xm:g.nC(y)&&(p=g.HK(),p==null?0:p.length)&&(Z.captionParams.viewerSelectedCaptionLangs=p);p=u.fetchType==="onesie"&&u.j("html5_onesie_attach_po_token");R=u.fetchType!=="onesie"&&u.j("html5_non_onesie_attach_po_token");if(p||R)p=u.L(),p.t4&&(Z.serviceIntegrityDimensions={},Z.serviceIntegrityDimensions.poToken=p.t4);y.j("fetch_att_independently")&&(Z.attestationRequest={omitBotguardData:!0});if(y.j("html5_enable_sabr_from_watch_server")||
y.j("html5_create_default_device_playback_capabilities")||y.j("html5_report_supports_vp9_encoding"))Z.playbackContext||(Z.playbackContext={}),Z.playbackContext.devicePlaybackCapabilities=Mkl(u);return Z};
Mkl=function(u){var h=!(u==null?0:u.ZP())&&(u==null?void 0:u.bP())&&gg(),L;if(L=u==null?0:u.j("html5_report_supports_vp9_encoding")){if(u==null)L=0;else{L=g.km(u);u=u.L().T;var Z=Eb("243");L=Z?yT(L,Z,u,!0)===!0:!1}L=L&&!h}return{supportsVp9Encoding:!!L,supportXhr:sf}};
l2n=function(u,h){var L,Z,y;return g.G(function(R){if(R.G==1)return L={context:g.FP(u.L()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:u.videoId,cpn:u.clientPlaybackNonce}}]},Z=g.E_(Q7b),g.N(R,g.ah(h,L,Z),2);y=R.N;return R.return(y)})};
S7n=function(u,h,L){var Z=g.Jl(h.experiments,"bg_vm_reinit_threshold");(!vK||(0,g.vC)()-vK>Z)&&l2n(u,L).then(function(y){y&&(y=y.botguardData)&&g.Yg(y,h)},function(y){u.ww()||(y=Xo(y),u.IH("attf",y.details))})};
ET=function(u,h){g.m.call(this);this.app=u;this.state=h};
gm=function(u,h,L){u.state.G.hasOwnProperty(h)||kH(u,h,L);u.state.V[h]=function(){return L.apply(u,g.NL.apply(0,arguments))};
u.state.C.add(h)};
uM=function(u,h,L){u.state.G.hasOwnProperty(h)||kH(u,h,L);u.app.L().V&&(u.state.S[h]=function(){return L.apply(u,g.NL.apply(0,arguments))},u.state.C.add(h))};
kH=function(u,h,L){u.state.G[h]=function(){return L.apply(u,g.NL.apply(0,arguments))}};
g.jq=function(u,h,L){return u.state.G[h].apply(u.state.G,g.l(L))};
h7=function(){g.vx.call(this);this.T=new Map};
LU=function(){g.m.apply(this,arguments);this.element=null;this.C=new Set;this.V={};this.S={};this.G={};this.Y=new Set;this.X=new h7;this.N=new h7;this.B=new h7;this.T=new h7};
X6l=function(u,h,L){typeof u==="string"&&(u={mediaContentUrl:u,startSeconds:h,suggestedQuality:L});a:{if((h=u.mediaContentUrl)&&(h=/\/([ve]|embed)\/([^#?]+)/.exec(h))&&h[2]){h=h[2];break a}h=null}u.videoId=h;return Z5(u)};
Z5=function(u,h,L){if(typeof u==="string")return{videoId:u,startSeconds:h,suggestedQuality:L};h={};L=g.C(vTi);for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,u[Z]&&(h[Z]=u[Z]);return h};
q7Y=function(u,h,L,Z){if(g.Wi(u)&&!Array.isArray(u)){h="playlist list listType index startSeconds suggestedQuality".split(" ");L={};for(Z=0;Z<h.length;Z++){var y=h[Z];u[y]&&(L[y]=u[y])}return L}h={index:h,startSeconds:L,suggestedQuality:Z};typeof u==="string"&&u.length===16?h.list="PL"+u:h.playlist=u;return h};
yA=function(){ET.apply(this,arguments)};
Y7L=function(u){gm(u,"cueVideoById",u.nD);gm(u,"loadVideoById",u.eFd);gm(u,"cueVideoByUrl",u.uJ);gm(u,"loadVideoByUrl",u.AMa);gm(u,"playVideo",u.P2I);gm(u,"pauseVideo",u.pauseVideo);gm(u,"stopVideo",u.MDA);gm(u,"clearVideo",u.clearVideo);gm(u,"getVideoBytesLoaded",u.Wq);gm(u,"getVideoBytesTotal",u.s9);gm(u,"getVideoLoadedFraction",u.RD);gm(u,"getVideoStartBytes",u.Sn);gm(u,"cuePlaylist",u.cuePlaylist);gm(u,"loadPlaylist",u.xpg);gm(u,"nextVideo",u.ElB);gm(u,"previousVideo",u.HZB);gm(u,"playVideoAt",
u.bZg);gm(u,"setShuffle",u.setShuffle);gm(u,"setLoop",u.setLoop);gm(u,"getPlaylist",u.jn);gm(u,"getPlaylistIndex",u.getPlaylistIndex);gm(u,"getPlaylistId",u.getPlaylistId);gm(u,"loadModule",u.y9);gm(u,"unloadModule",u.dV);gm(u,"setOption",u.ya);gm(u,"getOption",u.TP);gm(u,"getOptions",u.gr);gm(u,"mute",u.PPI);gm(u,"unMute",u.j7A);gm(u,"isMuted",u.isMuted);gm(u,"setVolume",u.JaB);gm(u,"getVolume",u.getVolume);gm(u,"seekTo",u.bBa);gm(u,"getPlayerMode",u.getPlayerMode);gm(u,"getPlayerState",u.E9);gm(u,
"getAvailablePlaybackRates",u.getAvailablePlaybackRates);gm(u,"getPlaybackQuality",function(){return u.getPlaybackQuality(1)});
gm(u,"setPlaybackQuality",u.L7B);gm(u,"getAvailableQualityLevels",u.Xp);gm(u,"getCurrentTime",u.K9);gm(u,"getDuration",u.O9);gm(u,"addEventListener",u.Xg);gm(u,"removeEventListener",u.R8H);gm(u,"getDebugText",u.r0);gm(u,"getVideoData",function(){return T4b(u)});
gm(u,"addCueRange",u.ud);gm(u,"removeCueRange",u.removeCueRange);gm(u,"setSize",u.setSize);gm(u,"getApiInterface",u.getApiInterface);gm(u,"destroy",u.destroy);gm(u,"mutedAutoplay",u.mutedAutoplay);var h=u.app.L();h.C||(gm(u,"getVideoEmbedCode",u.getVideoEmbedCode),gm(u,"getVideoUrl",u.ZE));gm(u,"getMediaReferenceTime",u.w0);gm(u,"getSize",u.getSize);gm(u,"setFauxFullscreen",u.VSB);h.C||gm(u,"logImaAdEvent",u.logImaAdEvent);gm(u,"preloadVideoById",u.WgI);gm(u,"wakeUpControls",u.wakeUpControls)};
g.Rv=function(u){return(u=oTn(u.app.uP()))?u.Vg():null};
KU=function(u){var h=g.Yy(u.app.L()),L,Z=(L=u.app.getVideoData())==null?void 0:L.B6;u=pU(u.app);return g.KF(h)&&!Z||u?!1:!0};
T4b=function(u,h){var L={};if(h=u.app.HJ(h===void 0?1:h)){h=h.getVideoData();if(h.isPrivate)return{};L.video_id=h.videoId;L.author=h.author;L.title=h.title;L.isPlayable=eS(h);L.errorCode=h.errorCode;if(h.N&&h.N.video){L.video_quality=h.N.video.quality;h=h.N.video;var Z=[];h.fps>32&&Z.push("hfr");h.isHdr()&&Z.push("hdr");h.primaries==="bt2020"&&Z.push("wcg");L.video_quality_features=Z}}if(u=u.getPlaylistId())L.list=u;return L};
J7=function(){yA.apply(this,arguments)};
On=function(u,h){var L={};if(u.app.L().RH){u=g.C(N4f);for(var Z=u.next();!Z.done;Z=u.next())Z=Z.value,h.hasOwnProperty(Z)&&(L[Z]=h[Z]);if(h=L.qoe_cat)u="",typeof h==="string"&&h.length>0&&(u=h.split(",").filter(function(y){return Unf.includes(y)}).join(",")),L.qoe_cat=u;
GLV(L)}else for(u=g.C(HOn),Z=u.next();!Z.done;Z=u.next())Z=Z.value,h.hasOwnProperty(Z)&&(L[Z]=h[Z]);return L};
GLV=function(u){var h=u.raw_player_response;if(!h){var L=u.player_response;L&&(h=JSON.parse(L))}delete u.player_response;delete u.raw_player_response;if(h){u.raw_player_response={streamingData:h.streamingData};var Z;if((Z=h.playbackTracking)==null?0:Z.qoeUrl)u.raw_player_response=Object.assign({},u.raw_player_response,{playbackTracking:{qoeUrl:h.playbackTracking.qoeUrl}});var y;if((y=h.videoDetails)==null?0:y.videoId)u.raw_player_response=Object.assign({},u.raw_player_response,{videoDetails:{videoId:h.videoDetails.videoId}})}};
fU=function(u,h,L){var Z=u.app.Nr(L);if(!Z)return 0;u=Z-u.app.getCurrentTime(L);return h-u};
B4a=function(u){var h=h===void 0?5:h;return u?r$1[u]||h:h};
g.D5=function(){J7.apply(this,arguments)};
zfs=function(u){kH(u,"getInternalApiInterface",u.getInternalApiInterface);kH(u,"addEventListener",u.M7);kH(u,"removeEventListener",u.AaI);kH(u,"cueVideoByPlayerVars",u.Nn);kH(u,"loadVideoByPlayerVars",u.G3H);kH(u,"preloadVideoByPlayerVars",u.slI);kH(u,"getAdState",u.getAdState);kH(u,"sendAbandonmentPing",u.sendAbandonmentPing);kH(u,"setLoopRange",u.setLoopRange);kH(u,"getLoopRange",u.getLoopRange);kH(u,"setAutonavState",u.setAutonavState);kH(u,"seekTo",u.aLy);kH(u,"seekBy",u.yaA);kH(u,"seekToLiveHead",
u.seekToLiveHead);kH(u,"requestSeekToWallTimeSeconds",u.requestSeekToWallTimeSeconds);kH(u,"seekToStreamTime",u.seekToStreamTime);kH(u,"startSeekCsiAction",u.startSeekCsiAction);kH(u,"getStreamTimeOffset",u.getStreamTimeOffset);kH(u,"getVideoData",u.L9);kH(u,"setInlinePreview",u.setInlinePreview);kH(u,"getAppState",u.getAppState);kH(u,"updateLastActiveTime",u.updateLastActiveTime);kH(u,"setBlackout",u.setBlackout);kH(u,"setUserEngagement",u.setUserEngagement);kH(u,"updateSubtitlesUserSettings",u.updateSubtitlesUserSettings);
kH(u,"getPresentingPlayerType",u.gR);kH(u,"canPlayType",u.canPlayType);kH(u,"updatePlaylist",u.updatePlaylist);kH(u,"updateVideoData",u.updateVideoData);kH(u,"updateEnvironmentData",u.updateEnvironmentData);kH(u,"sendVideoStatsEngageEvent",u.oNi);kH(u,"productsInVideoVisibilityUpdated",u.productsInVideoVisibilityUpdated);kH(u,"setSafetyMode",u.setSafetyMode);kH(u,"isAtLiveHead",function(h){return u.isAtLiveHead(void 0,h)});
kH(u,"getVideoAspectRatio",u.getVideoAspectRatio);kH(u,"getPreferredQuality",u.getPreferredQuality);kH(u,"getPlaybackQualityLabel",u.getPlaybackQualityLabel);kH(u,"setPlaybackQualityRange",u.iBy);kH(u,"onAdUxClicked",u.onAdUxClicked);kH(u,"getFeedbackProductData",u.getFeedbackProductData);kH(u,"getStoryboardFrame",u.getStoryboardFrame);kH(u,"getStoryboardFrameIndex",u.getStoryboardFrameIndex);kH(u,"getStoryboardLevel",u.getStoryboardLevel);kH(u,"getNumberOfStoryboardLevels",u.getNumberOfStoryboardLevels);
kH(u,"getCaptionWindowContainerId",u.getCaptionWindowContainerId);kH(u,"getAvailableQualityLabels",u.getAvailableQualityLabels);kH(u,"addCueRange",u.addCueRange);kH(u,"addUtcCueRange",u.addUtcCueRange);kH(u,"showAirplayPicker",u.showAirplayPicker);kH(u,"dispatchReduxAction",u.dispatchReduxAction);kH(u,"getPlayerResponse",u.cq);kH(u,"getWatchNextResponse",u.JE);kH(u,"getHeartbeatResponse",u.Fp);kH(u,"getCurrentTime",u.g0);kH(u,"getDuration",u.j0);kH(u,"getPlayerState",u.getPlayerState);kH(u,"getPlayerStateObject",
u.Pq);kH(u,"getVideoLoadedFraction",u.getVideoLoadedFraction);kH(u,"getProgressState",u.getProgressState);kH(u,"getVolume",u.getVolume);kH(u,"setVolume",u.FF);kH(u,"isMuted",u.isMuted);kH(u,"mute",u.V5);kH(u,"unMute",u.qw);kH(u,"loadModule",u.loadModule);kH(u,"unloadModule",u.unloadModule);kH(u,"getOption",u.t0);kH(u,"getOptions",u.getOptions);kH(u,"setOption",u.setOption);kH(u,"loadVideoById",u.b1);kH(u,"loadVideoByUrl",u.PM);kH(u,"playVideo",u.bz);kH(u,"loadPlaylist",u.loadPlaylist);kH(u,"nextVideo",
u.nextVideo);kH(u,"previousVideo",u.previousVideo);kH(u,"playVideoAt",u.playVideoAt);kH(u,"getDebugText",u.getDebugText);kH(u,"getWebPlayerContextConfig",u.getWebPlayerContextConfig);kH(u,"notifyShortsAdSwipeEvent",u.notifyShortsAdSwipeEvent);kH(u,"getVideoContentRect",u.getVideoContentRect);kH(u,"setSqueezeback",u.setSqueezeback);kH(u,"toggleSubtitlesOn",u.toggleSubtitlesOn);kH(u,"isSubtitlesOn",u.isSubtitlesOn);kH(u,"reportPlaybackIssue",u.reportPlaybackIssue);kH(u,"setAutonav",u.setAutonav);kH(u,
"isNotServable",u.isNotServable);kH(u,"channelSubscribed",u.channelSubscribed);kH(u,"channelUnsubscribed",u.channelUnsubscribed);kH(u,"togglePictureInPicture",u.togglePictureInPicture);kH(u,"supportsGaplessAudio",u.supportsGaplessAudio);kH(u,"supportsGaplessShorts",u.supportsGaplessShorts);kH(u,"enqueueVideoByPlayerVars",function(h){return void u.enqueueVideoByPlayerVars(h)});
kH(u,"clearQueue",u.clearQueue);kH(u,"getAudioTrack",u.NA);kH(u,"setAudioTrack",u.kDi);kH(u,"getAvailableAudioTracks",u.MA);kH(u,"getMaxPlaybackQuality",u.getMaxPlaybackQuality);kH(u,"getUserPlaybackQualityPreference",u.getUserPlaybackQualityPreference);kH(u,"getSubtitlesUserSettings",u.getSubtitlesUserSettings);kH(u,"resetSubtitlesUserSettings",u.resetSubtitlesUserSettings);kH(u,"setMinimized",u.setMinimized);kH(u,"setOverlayVisibility",u.setOverlayVisibility);kH(u,"confirmYpcRental",u.confirmYpcRental);
kH(u,"queueNextVideo",u.queueNextVideo);kH(u,"handleExternalCall",u.handleExternalCall);kH(u,"logApiCall",u.logApiCall);kH(u,"isExternalMethodAvailable",u.isExternalMethodAvailable);kH(u,"setScreenLayer",u.setScreenLayer);kH(u,"getCurrentPlaylistSequence",u.getCurrentPlaylistSequence);kH(u,"getPlaylistSequenceForTime",u.getPlaylistSequenceForTime);kH(u,"shouldSendVisibilityState",u.shouldSendVisibilityState);kH(u,"syncVolume",u.syncVolume);kH(u,"highlightSettingsMenuItem",u.highlightSettingsMenuItem);
kH(u,"openSettingsMenuItem",u.openSettingsMenuItem);kH(u,"getEmbeddedPlayerResponse",u.getEmbeddedPlayerResponse);kH(u,"getVisibilityState",u.getVisibilityState);kH(u,"isMutedByMutedAutoplay",u.isMutedByMutedAutoplay);u.j("embeds_enable_emc3ds_muted_autoplay")&&kH(u,"isMutedByEmbedsMutedAutoplay",u.isMutedByEmbedsMutedAutoplay);kH(u,"setGlobalCrop",u.setGlobalCrop);kH(u,"setInternalSize",u.setInternalSize);kH(u,"setFauxFullscreen",u.setFauxFullscreen);kH(u,"setAppFullscreen",u.setAppFullscreen)};
Iv=function(u,h,L){u=g.cf(u.l2(),h);return L?(L.addOnDisposeCallback(u),null):u};
g.A7=function(u,h,L){return u.app.L().Uo?h:g.cI("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:h,SHORTCUT:L})};
mnf=function(u){u.l2().element.setAttribute("aria-live","polite")};
g.xq=function(u,h){g.D5.call(this,u,h);zfs(this);uM(this,"addEventListener",this.zQ);uM(this,"removeEventListener",this.nNI);uM(this,"cueVideoByPlayerVars",this.dP);uM(this,"loadVideoByPlayerVars",this.I3w);uM(this,"preloadVideoByPlayerVars",this.Lgg);uM(this,"loadVideoById",this.b1);uM(this,"loadVideoByUrl",this.PM);uM(this,"playVideo",this.bz);uM(this,"loadPlaylist",this.loadPlaylist);uM(this,"nextVideo",this.nextVideo);uM(this,"previousVideo",this.previousVideo);uM(this,"playVideoAt",this.playVideoAt);
uM(this,"getVideoData",this.AZ);uM(this,"seekBy",this.caI);uM(this,"seekTo",this.Pty);uM(this,"showControls",this.showControls);uM(this,"hideControls",this.hideControls);uM(this,"cancelPlayback",this.cancelPlayback);uM(this,"getProgressState",this.getProgressState);uM(this,"isInline",this.isInline);uM(this,"setInline",this.setInline);uM(this,"setLoopVideo",this.setLoopVideo);uM(this,"getLoopVideo",this.getLoopVideo);uM(this,"getVideoContentRect",this.getVideoContentRect);uM(this,"getVideoStats",this.qA);
uM(this,"getCurrentTime",this.DE);uM(this,"getDuration",this.j0);uM(this,"getPlayerState",this.p9);uM(this,"getVideoLoadedFraction",this.Hq);uM(this,"mute",this.V5);uM(this,"unMute",this.qw);uM(this,"setVolume",this.FF);uM(this,"loadModule",this.loadModule);uM(this,"unloadModule",this.unloadModule);uM(this,"getOption",this.t0);uM(this,"getOptions",this.getOptions);uM(this,"setOption",this.setOption);uM(this,"addCueRange",this.addCueRange);uM(this,"getDebugText",this.getDebugText);uM(this,"getStoryboardFormat",
this.getStoryboardFormat);uM(this,"toggleFullscreen",this.toggleFullscreen);uM(this,"isFullscreen",this.isFullscreen);uM(this,"getPlayerSize",this.getPlayerSize);uM(this,"toggleSubtitles",this.toggleSubtitles);uM(this,"setCenterCrop",this.setCenterCrop);uM(this,"setFauxFullscreen",this.setFauxFullscreen);uM(this,"setSizeStyle",this.setSizeStyle);uM(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);uM(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);Y7L(this)};
g.Pf=function(u){u=u.uP();var h=u.u2.get("endscreen");return h&&h.Gn()?!0:u.gx()};
g.CU=function(u,h){u.getPresentingPlayerType()===3?u.publish("mdxautoplaycancel"):u.hB("onAutonavCancelled",h)};
g.iM=function(u){var h=MT(u.uP());return u.app.kB&&!u.isFullscreen()||u.getPresentingPlayerType()===3&&h&&h.i9()&&h.vS()||!!u.getPlaylist()};
g.QA=function(u,h){g.jq(u,"addEmbedsConversionTrackingParams",[h])};
g.Sq=function(u){return(u=g.lM(u.uP()))?u.D0():{}};
g.dne=function(u){u=(u=u.getVideoData())&&u.N;return!!u&&!(!u.audio||!u.video)&&u.mimeType!=="application/x-mpegURL"};
g.XC=function(u,h,L){u=u.m_().element;var Z=J8(u.children,function(y){y=Number(y.getAttribute("data-layer"));return L-y||1});
Z<0&&(Z=-(Z+1));hf(u,h,Z);h.setAttribute("data-layer",String(L))};
g.vf=function(u){var h=u.L();if(!h.XN)return!1;var L=u.getVideoData();if(!L||u.getPresentingPlayerType()===3)return!1;var Z=(!L.isLiveDefaultBroadcast||h.j("allow_poltergust_autoplay"))&&!ab(L);Z=L.isLivePlayback&&(!h.j("allow_live_autoplay")||!Z);var y=L.isLivePlayback&&h.j("allow_live_autoplay_on_mweb");u=u.getPlaylist();u=!!u&&u.i9();var R=L.aH&&L.aH.playerOverlays||null;R=!!(R&&R.playerOverlayRenderer&&R.playerOverlayRenderer.autoplay);R=L.Rc&&R;return!L.ypcPreview&&(!Z||y)&&!g.E8(L.gw,"ypc")&&
!u&&(!g.MW(h)||R)};
Vkj=function(u){u=u.app.WX();if(!u)return!1;var h=u.getVideoData();if(!h.N||!h.N.video||h.N.video.G<1080||h.ZO)return!1;var L=/^qsa/.test(h.clientPlaybackNonce),Z="r";h.N.id.indexOf(";")>=0&&(L=/^[a-p]/.test(h.clientPlaybackNonce),Z="x");return L?(u.IH("iqss",{trigger:Z},!0),!0):!1};
qT=function(){zj.apply(this,arguments);this.requestHeaders={}};
Yq=function(){TF||(TF=new qT);return TF};
ov=function(u,h){h?u.requestHeaders.Authorization="Bearer "+h:delete u.requestHeaders.Authorization};
g.NT=function(u,h,L,Z){Z=Z===void 0?!1:Z;g.OD.call(this,h);var y=this;this.D=u;this.gw=Z;this.S=new g.UN(this);this.AB=new g.kS(this,L,!0,void 0,void 0,function(){y.aS()});
g.V(this,this.S);g.V(this,this.AB)};
Un=function(u){var h=u.D.getRootNode();return u.D.j("web_enable_auto_pip")||u.D.j("web_enable_pip_on_miniplayer")||u.D.j("web_shorts_pip")?mQ(h):document};
nTj=function(u){u.N&&(document.activeElement&&g.ZO(u.element,document.activeElement)&&u.N.focus(),u.N.setAttribute("aria-expanded","false"),u.N=void 0);g.Tj(u.S);u.Y=void 0};
GF=function(u,h,L){u.We()?u.aP():u.VF(h,L)};
Hf=function(u,h,L,Z){Z=new g.a({K:"div",CI:["ytp-linked-account-popup-button"],dw:Z,J:{role:"button",tabindex:"0"}});h=new g.a({K:"div",U:"ytp-linked-account-popup",J:{role:"dialog","aria-modal":"true",tabindex:"-1"},Z:[{K:"div",U:"ytp-linked-account-popup-title",dw:h},{K:"div",U:"ytp-linked-account-popup-description",dw:L},{K:"div",U:"ytp-linked-account-popup-buttons",Z:[Z]}]});g.NT.call(this,u,{K:"div",U:"ytp-linked-account-popup-container",Z:[h]},100);var y=this;this.dialog=h;g.V(this,this.dialog);
Z.listen("click",function(){y.aP()});
g.V(this,Z);g.XC(this.D,this.element,4);this.hide()};
g.Bf=function(u,h,L,Z){g.OD.call(this,u);this.priority=h;L&&g.r7(this,L);Z&&this.QF(Z)};
g.zF=function(u,h,L,Z){u=u===void 0?{}:u;h=h===void 0?[]:h;L=L===void 0?!1:L;Z=Z===void 0?!1:Z;h.push("ytp-menuitem");var y=u;"role"in y||(y.role="menuitem");L||(y=u,"tabindex"in y||(y.tabindex="0"));u={K:L?"a":"div",CI:h,J:u,Z:[{K:"div",U:"ytp-menuitem-icon",dw:"{{icon}}"},{K:"div",U:"ytp-menuitem-label",dw:"{{label}}"},{K:"div",U:"ytp-menuitem-content",dw:"{{content}}"}]};Z&&u.Z.push({K:"div",U:"ytp-menuitem-secondary-icon",dw:"{{secondaryIcon}}"});return u};
g.r7=function(u,h){u.updateValue("label",h)};
my=function(u){g.Bf.call(this,g.zF({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var h=this;this.D=u;this.N=this.G=!1;this.Ka=u.jb();u.createServerVe(this.element,this,!0);this.W(this.D,"settingsMenuVisibilityChanged",function(L){h.sU(L)});
this.W(this.D,"videodatachange",this.B);this.listen("click",this.onClick);this.B()};
d7=function(u){return u?g.cL(u):""};
VA=function(u){g.m.call(this);this.api=u};
nU=function(u){VA.call(this,u);var h=this;kH(u,"setAccountLinkState",function(L){h.setAccountLinkState(L)});
kH(u,"updateAccountLinkingConfig",function(L){h.updateAccountLinkingConfig(L)});
u.addEventListener("videodatachange",function(L,Z){h.onVideoDataChange(Z)});
u.addEventListener("settingsMenuInitialized",function(){h.menuItem=new my(h.api);g.V(h,h.menuItem)})};
s7n=function(u){this.api=u;this.G={}};
sn=function(u,h,L,Z){h in u.G||(L=new g.uW(L,Z,{id:h,priority:2,namespace:"appad"}),u.api.Rl([L],1),u.G[h]=L)};
w7=function(u){VA.call(this,u);var h=this;this.events=new g.UN(this);g.V(this,this.events);this.G=new s7n(this.api);this.events.W(this.api,"legacyadtrackingpingreset",function(){h.G.G={}});
this.events.W(this.api,"legacyadtrackingpingchange",function(L){var Z=h.G;sn(Z,"part2viewed",1,0x8000000000000);sn(Z,"engagedview",Math.max(1,L.La*1E3),0x8000000000000);if(!L.isLivePlayback){var y=L.lengthSeconds*1E3;Wu(L)&&Z.api.j("html5_shorts_gapless_ads_duration_fix")&&(y=Z.api.getProgressState().seekableEnd*1E3-L.Oi);sn(Z,"videoplaytime25",y*.25,y);sn(Z,"videoplaytime50",y*.5,y);sn(Z,"videoplaytime75",y*.75,y);sn(Z,"videoplaytime100",y,0x8000000000000);sn(Z,"conversionview",y,0x8000000000000);
sn(Z,"videoplaybackstart",1,y);sn(Z,"videoplayback2s",2E3,y);sn(Z,"videoplayback10s",1E4,y)}});
this.events.W(this.api,g.hc("appad"),this.N);this.events.W(this.api,g.L2("appad"),this.N)};
$nY=function(u,h,L){if(!(L in h))return!1;h=h[L];Array.isArray(h)||(h=[h]);h=g.C(h);for(L=h.next();!L.done;L=h.next()){L=L.value;var Z={CPN:u.api.getVideoData().clientPlaybackNonce};L=g.Ng(L,Z);Z=void 0;Z=Z===void 0?!1:Z;(Z=tl(Ws(L,w6V),L,Z,"Active View 3rd Party Integration URL"))||(Z=void 0,Z=Z===void 0?!1:Z,Z=tl(Ws(L,efs),L,Z,"Google/YouTube Brand Lift URL"));Z||(Z=void 0,Z=Z===void 0?!1:Z,Z=tl(Ws(L,a2b),L,Z,"Nielsen OCR URL"));g.dx(L,void 0,Z)}return!0};
eq=function(u,h){tkw(u,h).then(function(L){g.dx(h,void 0,void 0,L)})};
av=function(u,h){h.forEach(function(L){eq(u,L)})};
tkw=function(u,h){return g.SM(u.api.L())&&KP(h)&&pP(h)?g.Fp(u.api.L(),g.mn(u.api.getVideoData())).then(function(L){var Z;L&&(Z={Authorization:"Bearer "+L});return Z},void 0):UJ()};
Waj=function(u){VA.call(this,u);this.events=new g.UN(u);g.V(this,this.events);this.events.W(u,"videoready",function(h){if(u.getPresentingPlayerType()===1){var L,Z,y={playerDebugData:{pmlSignal:!!((L=h.getPlayerResponse())==null?0:(Z=L.adPlacements)==null?0:Z.some(function(R){var p;return R==null?void 0:(p=R.adPlacementRenderer)==null?void 0:p.renderer})),
contentCpn:h.clientPlaybackNonce}};g.pM("adsClientStateChange",y)}})};
$q=function(u){g.a.call(this,{K:"button",CI:["ytp-button"],J:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},Z:[{K:"div",U:"ytp-autonav-toggle-button-container",Z:[{K:"div",U:"ytp-autonav-toggle-button",J:{"aria-checked":"true"}}]}]});this.D=u;this.N=[];this.G=!1;this.isChecked=!0;u.createClientVe(this.element,this,113681);this.W(u,"presentingplayerstatechange",this.P4);this.listen("click",this.onClick);this.D.L().j("web_player_autonav_toggle_always_listen")&&
Fal(this);Iv(u,this.element,this);this.P4()};
Fal=function(u){u.N.push(u.W(u.D,"videodatachange",u.P4));u.N.push(u.W(u.D,"videoplayerreset",u.P4));u.N.push(u.W(u.D,"onPlaylistUpdate",u.P4));u.N.push(u.W(u.D,"autonavchange",u.fF))};
bOR=function(u){u.isChecked=u.isChecked;u.BX("ytp-autonav-toggle-button").setAttribute("aria-checked",String(u.isChecked));var h=u.isChecked?"Autoplay is on":"Autoplay is off";u.updateValue("title",h);u.updateValue("label",h);u.D.g2()};
ETn=function(u){return u.D.L().j("web_player_autonav_use_server_provided_state")&&sX(u.iF())};
kLR=function(u){VA.call(this,u);var h=this;this.events=new g.UN(u);g.V(this,this.events);this.events.W(u,"standardControlsInitialized",function(){var L=new $q(u);g.V(h,L);u.Hd(L,"RIGHT_CONTROLS_LEFT")})};
t7=function(u,h){g.Bf.call(this,g.zF({role:"menuitemcheckbox","aria-checked":"false"}),h,u,{K:"div",U:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)};
Wf=function(u,h){u.checked=h;u.element.setAttribute("aria-checked",String(u.checked))};
gTR=function(u){var h=!u.L().RF&&u.getPresentingPlayerType()!==3;return u.isFullscreen()||h};
g.FC=function(u,h,L,Z){var y=u.currentTarget;if((L===void 0||!L)&&g.li(u))return u.preventDefault(),!0;h.pauseVideo();u=y.getAttribute("href");g.VF(u,Z,!0);return!1};
g.bM=function(u,h,L){if(ms(h.L())&&h.getPresentingPlayerType()!==2){if(g.li(L))return h.isFullscreen()&&!h.L().externalFullscreen&&h.toggleFullscreen(),L.preventDefault(),!0}else{var Z=g.li(L);Z&&h.pauseVideo();g.VF(u,void 0,!0);Z&&(g.nG(u),L.preventDefault())}return!1};
jd1=function(){var u=u9a.includes("en")?{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,J:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
fill:"#fff"}}]}:{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,J:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};u.U="ytp-subtitles-button-icon";return u};
En=function(){return{K:"div",U:"ytp-spinner-container",Z:[{K:"div",U:"ytp-spinner-rotator",Z:[{K:"div",U:"ytp-spinner-left",Z:[{K:"div",U:"ytp-spinner-circle"}]},{K:"div",U:"ytp-spinner-right",Z:[{K:"div",U:"ytp-spinner-circle"}]}]}]}};
kq=function(u){if(document.createRange){var h=document.createRange();h&&(h.selectNodeContents(u),u=window.getSelection())&&(u.removeAllRanges(),u.addRange(h))}};
jl=function(u){var h=u.j("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";t7.call(this,h,g.g7.e4);var L=this;this.D=u;this.G=!1;this.N=new g.EM(function(){g.pc(L.element,"ytp-menuitem-highlighted")},0);
this.Ka=u.jb();this.setIcon({K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{K:"path",J:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.X,this);this.listen(uo,this.B);g.V(this,this.N)};
hG=function(u){VA.call(this,u);var h=this;this.G=!1;u.addEventListener("settingsMenuInitialized",function(){heR(h)});
u.addEventListener("highlightSettingsMenu",function(L){heR(h);var Z=h.menuItem;L==="menu_item_cinematic_lighting"&&(g.yN(Z.element,"ytp-menuitem-highlighted"),g.yN(Z.element,"ytp-menuitem-highlight-transition-enabled"),Z.N.start())});
kH(u,"updateCinematicSettings",function(L){h.updateCinematicSettings(L)})};
heR=function(u){u.menuItem||(u.menuItem=new jl(u.api),g.V(u,u.menuItem),u.menuItem.kI(u.G))};
Lt=function(u){VA.call(this,u);var h=this;this.events=new g.UN(u);g.V(this,this.events);this.events.W(u,"applicationvideodatachange",function(L,Z){h.NL(L,Z)})};
ZN=function(u){VA.call(this,u);this.events=new g.UN(u);g.V(this,this.events);kH(u,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));kH(u,"setCreatorEndscreenHideButton",this.G.bind(this))};
RC=function(u,h,L,Z){t7.call(this,"Stable Volume",g.g7.qN);g.yN(this.element,"ytp-drc-menu-item");this.Ka=u.jb();this.B=h;this.G=L;this.hasDrcAudioTrack=Z;u.addEventListener("videodatachange",this.N.bind(this));u.j("mta_drc_mutual_exclusion_removal")&&this.W(u,"onPlaybackAudioChange",this.N);u=this.G()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{K:"path",J:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",
fill:"white"}}]});this.subscribe("select",this.X,this);Wf(this,u);this.Ka.aV(this)};
pt=function(u){VA.call(this,u);var h=this;this.events=new g.UN(u);g.V(this,this.events);u.j("html5_show_drc_toggle")&&u.addEventListener("settingsMenuInitialized",function(){h.menuItem||(h.menuItem=new RC(h.api,h.setDrcUserPreference.bind(h),h.getDrcUserPreference.bind(h),h.N.bind(h)),g.V(h,h.menuItem))});
kH(this.api,"setDrcUserPreference",function(Z){h.setDrcUserPreference(Z)});
kH(this.api,"getDrcUserPreference",function(){return h.getDrcUserPreference()});
kH(this.api,"hasDrcAudioTrack",function(){return h.N()});
var L;this.G=(L=g.Gj("yt-player-drc-pref"))!=null?L:1;this.updateEnvironmentData()};
Kt=function(u){VA.call(this,u);var h=this;this.G={};this.events=new g.UN(u);g.V(this,this.events);this.events.W(u,"videodatachange",function(){h.onVideoDataChange()});
this.events.W(u,g.hc("embargo"),function(L){h.api.Gg(!0);var Z,y=(Z=h.G[L.id])!=null?Z:[];Z=g.C(y);for(y=Z.next();!y.done;y=Z.next()){var R=y.value;h.api.hideControls();h.api.LZ("auth",2,"This video isn't available in your current playback area",QE({embargoed:1,id:L.id,idx:L.N,start:L.start}));y=void 0;(R=(y=R.embargo)==null?void 0:y.onTrigger)&&h.api.hB("innertubeCommand",R)}})};
Llb=function(u,h){var L;return(L=h.onEnter)==null?void 0:L.some(u.N)};
ZnL=function(u,h){h=g.C(h);for(var L=h.next();!L.done;L=h.next()){L=L.value;var Z=void 0,y=Number((Z=L.playbackPosition)==null?void 0:Z.utcTimeMillis)/1E3,R=void 0;Z=y+Number((R=L.duration)==null?void 0:R.seconds);R="embargo_"+y;u.api.addUtcCueRange(R,y,Z,"embargo",!1);L.onEnter&&(u.G[R]=L.onEnter.filter(u.N))}};
JG=function(u){VA.call(this,u);var h=this;this.G=[];this.events=new g.UN(u);g.V(this,this.events);kH(u,"addEmbedsConversionTrackingParams",function(L){h.api.L().qU&&h.addEmbedsConversionTrackingParams(L)});
this.events.W(u,"veClickLogged",function(L){h.api.hasVe(L)&&(L=Kq(L.visualElement.getAsJspb(),2),h.G.push(L))})};
y_n=function(u){VA.call(this,u);kH(u,"isEmbedsShortsMode",function(){return u.isEmbedsShortsMode()})};
Ref=function(u){VA.call(this,u);var h=this;this.events=new g.UN(u);g.V(this,this.events);this.events.W(u,"initialvideodatacreated",function(L){Cn(PK(),16623);h.G=g.S9();var Z=u.L().Qs&&!L.Mr;if(Bz(L)&&Z){Cn(PK(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(L.getWatchNextResponse()){var y,R=(y=L.getWatchNextResponse())==null?void 0:y.trackingParams;R&&ip(R)}if(L.getPlayerResponse()){var p;(L=(p=L.getPlayerResponse())==null?void 0:p.trackingParams)&&ip(L)}}else Cn(PK(),
32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),L.getEmbeddedPlayerResponse()&&(p=(R=L.getEmbeddedPlayerResponse())==null?void 0:R.trackingParams)&&ip(p)});
this.events.W(u,"loadvideo",function(){Cn(PK(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:h.G})});
this.events.W(u,"cuevideo",function(){Cn(PK(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:h.G})});
this.events.W(u,"largeplaybuttonclicked",function(L){Cn(PK(),27240,L.visualElement)});
this.events.W(u,"playlistnextbuttonclicked",function(L){Cn(PK(),27240,L.visualElement)});
this.events.W(u,"playlistprevbuttonclicked",function(L){Cn(PK(),27240,L.visualElement)});
this.events.W(u,"playlistautonextvideo",function(){Cn(PK(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})};
Oe=function(u,h){g.m.call(this);var L=this;this.G=null;this.X=h;h=[];for(var Z=0;Z<=100;Z++)h.push(Z/100);h={threshold:h,trackVisibility:!0,delay:1E3};(this.N=window.IntersectionObserver?new IntersectionObserver(function(y){y=y[y.length-1];typeof y.isVisible==="undefined"?document.visibilityState==="visible"&&y.isIntersecting&&y.intersectionRatio>0?L.G=y.intersectionRatio:document.visibilityState==="hidden"?L.G=0:L.G=null:L.G=y.isVisible?y.intersectionRatio:0;typeof L.X==="function"&&L.X(L.G)},h):
null)&&this.N.observe(u)};
Kls=function(u){VA.call(this,u);var h=this;this.events=new g.UN(u);g.V(this,this.events);this.events.W(u,"applicationInitialized",function(){pKn(h)})};
pKn=function(u){var h=u.api.getRootNode(),L=h;if(!u.api.j("embeds_emc3ds_inview_ks")){var Z;L=u.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((Z=h.parentElement)==null?void 0:Z.parentElement)||h:h}u.G=new Oe(L,function(y){y!=null&&(u.api.L().z2=y,u.api.L().Bm="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")});
g.V(u,u.G);u.events.W(u.api,"videoStatsPingCreated",function(y){var R=u.G;R=R.G==null?null:Math.round(R.G*100)/100;y.inview=R!=null?R:void 0;R=u.api.getPlayerSize();if(R.height>0&&R.width>0){R=[Math.round(R.width),Math.round(R.height)];var p=g.V6();p>1&&R.push(p);R=R.join(":")}else R=void 0;y.size=R})};
J_b=function(u){var h;return((h=((u==null?void 0:u.messageRenderers)||[]).find(function(L){return!!L.timeCounterRenderer}))==null?void 0:h.timeCounterRenderer)||null};
ft=function(u){g.a.call(this,{K:"div",CI:["ytp-player-content","ytp-iv-player-content"],Z:[{K:"div",U:"ytp-free-preview-countdown-timer",Z:[{K:"span",dw:"{{label}}"},{K:"span",U:"ytp-free-preview-countdown-timer-separator",dw:"\u2022"},{K:"span",dw:"{{duration}}"}]}]});this.api=u;this.G=null;this.X=this.N=0;this.W(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)};
fcV=function(u,h){u.G||(u.N=h,u.X=(0,g.vC)(),u.G=new g.b8(function(){OnV(u)},null),OnV(u))};
OnV=function(u){var h=Math,L=h.round,Z=Math.min((0,g.vC)()-u.X,u.N);h=L.call(h,(u.N-Z)/1E3);u.updateValue("duration",Og({seconds:h}));h<=0&&u.G?DN(u):u.G&&u.G.start()};
DN=function(u){u.G&&(u.G.dispose(),u.G=null)};
DmR=function(u){VA.call(this,u);var h=this;this.events=new g.UN(u);g.V(this,this.events);this.events.W(u,"basechromeinitialized",function(){h.G=new ft(u);g.V(h,h.G);g.XC(u,h.G.element,4);h.G.hide()})};
c4=function(u){g.a.call(this,{K:"button",CI:["ytp-fullerscreen-edu-button","ytp-button"],Z:[{K:"div",CI:["ytp-fullerscreen-edu-text"],dw:"Scroll for details"},{K:"div",CI:["ytp-fullerscreen-edu-chevron"],Z:[{K:"svg",J:{height:"100%",viewBox:"0 0 24 24",width:"100%"},Z:[{K:"path",J:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],J:{"data-priority":"1"}});this.pI=u;this.G=new g.kS(this,250,void 0,100);this.X=this.N=!1;u.createClientVe(this.element,this,61214);g.V(this,
this.G);this.W(u,"fullscreentoggled",this.kI);this.W(u,"presentingplayerstatechange",this.kI);this.listen("click",this.onClick);this.kI()};
IC=function(u){VA.call(this,u);var h=this;this.events=new g.UN(u);g.V(this,this.events);kH(this.api,"updateFullerscreenEduButtonSubtleModeState",function(Z){h.updateFullerscreenEduButtonSubtleModeState(Z)});
kH(this.api,"updateFullerscreenEduButtonVisibility",function(Z){h.updateFullerscreenEduButtonVisibility(Z)});
var L=u.L();u.j("external_fullscreen_with_edu")&&L.externalFullscreen&&ms(L)&&L.controlsType==="1"&&this.events.W(u,"standardControlsInitialized",function(){h.G=new c4(u);g.V(h,h.G);u.Hd(h.G)})};
c_i=function(u){g.a.call(this,{K:"div",U:"ytp-gated-actions-overlay",Z:[{K:"div",U:"ytp-gated-actions-overlay-background",Z:[{K:"div",U:"ytp-gated-actions-overlay-background-overlay"}]},{K:"button",CI:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],J:{"aria-label":"Close"},Z:[g.Cu()]},{K:"div",U:"ytp-gated-actions-overlay-bar",Z:[{K:"div",U:"ytp-gated-actions-overlay-text-container",Z:[{K:"div",U:"ytp-gated-actions-overlay-title",dw:"{{title}}"},{K:"div",U:"ytp-gated-actions-overlay-subtitle",
dw:"{{subtitle}}"}]},{K:"div",U:"ytp-gated-actions-overlay-button-container"}]}]});var h=this;this.api=u;this.background=this.BX("ytp-gated-actions-overlay-background");this.N=this.BX("ytp-gated-actions-overlay-button-container");this.G=[];this.W(this.BX("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){h.api.hB("onCloseMiniplayer")});
this.hide()};
A_n=function(u,h){var L=0;L=0;for(var Z={};L<h.length;Z={GC:void 0},L++){var y=u.G[L],R=void 0,p=(R=y)==null?void 0:R.element;p||(p=new g.a({K:"button",U:"ytp-gated-actions-overlay-button",J:{tabindex:"0"},Z:[{K:"div",U:"ytp-gated-actions-overlay-button-title",dw:"{{buttonText}}"}]}),g.V(u,p),p.Og(u.N),y={element:p});Z.GC=g.n(h[L],Ics);var J=R=void 0,O=void 0,f=((R=Z.GC)==null?void 0:R.title)||((J=Z.GC)==null?void 0:(O=J.titleFormatted)==null?void 0:O.content)||"";p.update({buttonText:f});y.listener&&
p.FJ(y.listener);y.listener=p.listen("click",function(D){return function(){var c,I=g.n((c=D.GC)==null?void 0:c.onTap,rD);I&&u.api.hB("innertubeCommand",I)}}(Z));
u.G[L]=y}for(;L<u.G.length;)u.G.pop().element.dispose()};
xmb=function(u){VA.call(this,u);var h=this;this.events=new g.UN(u);g.V(this,this.events);this.G=new c_i(this.api);g.V(this,this.G);this.events.W(u,"videodatachange",function(){var L,Z=(L=h.api.getVideoData())==null?void 0:L.Qi;L=h.G;if(Z){var y,R,p=((y=Z.title)==null?void 0:y.content)||"";y=((R=Z.subtitle)==null?void 0:R.content)||"";L.update({title:p,subtitle:y});p=Z.thumbnail;R="none";if(p==null?0:p.sources){y=0;p=g.C(p.sources);for(var J=p.next();!J.done;J=p.next())J=J.value,J.width&&J.url&&J.width>
y&&(y=J.width,R="url("+J.url+")")}L.background.style.backgroundImage=R;A_n(L,Z.actionButtons||[]);L.show()}else L.hide()});
g.XC(this.api,this.G.element,4)};
AG=function(u){VA.call(this,u);var h=this;uM(this.api,"getSphericalProperties",function(){return h.getSphericalProperties()});
uM(this.api,"setSphericalProperties",function(){h.setSphericalProperties.apply(h,g.l(g.NL.apply(0,arguments)))});
gm(this.api,"getSphericalProperties",function(){return h.api.getPresentingPlayerType()===2?{}:h.getSphericalProperties()});
gm(this.api,"setSphericalProperties",function(){var L=g.NL.apply(0,arguments);h.api.getPresentingPlayerType()!==2&&h.setSphericalProperties.apply(h,g.l(L))})};
x0=function(u){VA.call(this,u);kH(u,"createClientVe",this.createClientVe.bind(this));kH(u,"createServerVe",this.createServerVe.bind(this));kH(u,"destroyVe",this.destroyVe.bind(this));kH(u,"hasVe",this.hasVe.bind(this));kH(u,"logClick",this.logClick.bind(this));kH(u,"logVisibility",this.logVisibility.bind(this));kH(u,"setTrackingParams",this.setTrackingParams.bind(this))};
P4=function(u,h,L,Z){function y(p){var J=!(p.status!==204&&p.status!==200&&!p.response),O;p={succ:""+ +J,rc:p.status,lb:((O=p.response)==null?void 0:O.byteLength)||0,rt:((0,g.vC)()-R).toFixed(),shost:g.BY(u),trigger:h};Ppw(p,u);L&&L(p);Z&&!J&&Z(new lZ("pathprobe.net",p))}
var R=(0,g.vC)();g.XI(u,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:y,onTimeout:y})};
Ppw=function(u,h){var L;((L=window.performance)==null?0:L.getEntriesByName)&&(h=performance.getEntriesByName(h))&&h.length&&(h=h[0],u.pedns=(h.domainLookupEnd-h.startTime).toFixed(),u.pecon=(h.connectEnd-h.domainLookupEnd).toFixed(),u.perqs=(h.requestStart-h.connectEnd).toFixed(),Cpl&&(u.perqsa=h.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
Ct=function(u,h){this.N1=u;this.policy=h;this.playbackRate=1};
MUL=function(u,h){var L=Math.min(2.5,Jz(u.N1));u=M3(u);return h-L*u};
io=function(u,h,L,Z,y){y=y===void 0?!1:y;if(u.policy.T6)return Math.ceil(u.policy.T6*h);u.policy.B6&&(Z=Math.abs(Z));Z/=u.playbackRate;var R=1/Dr(u.N1);L=Math.max(.9*(Z-3),Jz(u.N1)+u.N1.N.G*R)/R*.8/(h+L);L=Math.min(L,Z);u.policy.Dr>0&&y&&(L=Math.max(L,u.policy.Dr));return inj(u,L,h)};
inj=function(u,h,L){return Math.ceil(Math.max(Math.max(u.policy.Be,u.policy.Lq*L),Math.min(Math.min(u.policy.jd,31*L),Math.ceil(h*L))))||u.policy.Be};
Qde=function(u,h,L){L=io(u,h.G.info.G3,L.G.info.G3,0);var Z=Jz(u.N1)+L/Dr(u.N1);return Math.max(Z,Z+u.policy.xL-L/h.G.info.G3)};
M3=function(u){return Dr(u.N1,!u.policy.dD,u.policy.Ob)};
Qt=function(u){return M3(u)/u.playbackRate};
lo=function(u,h,L){var Z=u.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],y=u.policy.playbackStartPolicy.startMinReadaheadPolicy||[];u=Infinity;h=g.C(h&&Z.length>0?Z:y);for(Z=h.next();!Z.done;Z=h.next())Z=Z.value,y=Z.minReadaheadMs||0,L<(Z.minBandwidthBytesPerSec||0)||u>y&&(u=y);return u<Infinity?u/1E3:u};
Sl=function(u,h,L,Z){var y=this;this.V=u;this.PX=h;this.policy=L;this.logger=Z;this.Yq=[];this.JM=[];this.G=-1;this.EU=null;this.C=this.timestampOffset=0;this.oV=null;this.N=10;this.T=new Set;this.zd={sK:function(R){return y.sK(R)}};
this.B=h.bP?0:1;L.Zi>0&&(this.N=L.Zi)};
vgj=function(u,h,L,Z,y){if(!Z.info.B){if(L.length===0)L.push(Z);else{var R;(u=(R=L.pop())==null?void 0:g.e8(R,Z))?L.push(u):L.push(Z)}return y}var p;(L=(p=L.pop())==null?void 0:g.e8(p,Z))||(L=Z);if(u.policy.jq&&L.info.N)return u.logger&&u.logger({incompleteSegment:L.info.M1()}),y;p=u.sK(L);Z=p.formatId;y=p.yA;L=p.clipId;R=p.CD;p=p.startTimeMs;if(!u.policy.Gz&&u.policy.N&&u.oV){var J=X_(u.oV,L);p+=J}Z={clipId:L,formatId:Z,startTimeMs:p,durationMs:R,AV:y,I7:y,QH:p,YG:R};y=lcn(h,Z.startTimeMs);(L=y>=
0?h[y]:null)&&Sgb(u,L,Z)?Z=L:(y+=1,h.splice(y,0,Z));L=0;for(R=y+1;R<h.length;R++){p=u;J=h[R];var O=Z,f=J.startTimeMs+J.durationMs,D=O.startTimeMs+O.durationMs;D>=f+p.N?p=!0:D+p.N<J.startTimeMs?p=!1:XKb(p,J.formatId,O.formatId)?(O.durationMs=f-O.startTimeMs,O.YG=O.durationMs,O.I7=J.I7,p=!0):(J.startTimeMs=D,J.QH=D,J.AV=O.I7+1,p=!1);if(!p)break;L++}L&&h.splice(y+1,L);return y};
TZn=function(u,h,L){u.policy.jq&&L!=null&&L.gC||(u.Yq=[]);u.policy.yf?(h=g.Kw(u.JM,{startTimeMs:h*1E3},function(Z,y){return Z.startTimeMs-y.startTimeMs}),u.G!==h&&(u.G=-1,u.X=void 0)):(qgj(u,!0),u.G=lcn(u.JM,h*1E3))};
lcn=function(u,h){u=g.Kw(u,{startTimeMs:h},function(L,Z){return L.startTimeMs-Z.startTimeMs});
return u>=0?u:-u-2};
qgj=function(u,h){if(u.EU){var L=u.EU.QQ();if(L.length!==0){if(u.X&&h){var Z=u.X,y=Z.info.ob;!Ll(L,y)&&Z.info.C>0&&(0,g.vC)()-u.C<5E3&&(u.logger&&u.logger({dend:Z.info.M1()}),L=xwb(L,y,y+.01))}u.policy.yf&&u.logger&&u.logger({cbri:""+u.G});Z=[];for(var R=y=0;y<L.length&&R<u.JM.length;){var p=L.start(y),J=L.end(y),O=u.JM[R].startTimeMs/1E3,f=(u.JM[R].startTimeMs+u.JM[R].durationMs)/1E3;if(O<=J&&f>=p){var D=0;if(u.oV){var c=v4(u.oV,O*1E3);c&&(D=c.YV/1E3)}c=Object.assign({},u.JM[R]);var I=u.PX.X.get(xV(u.JM[R].formatId)),
A=Math.max(O,p);p=I.index.K0(A+u.N/1E3-D);O=I.index.getStartTime(p)+D;var x=p+ +(Math.abs(O-A)>u.N/1E3);A=x+u.B;x=(I.index.getStartTime(x)+D)*1E3;R!==u.G||h?(c.AV=A,c.startTimeMs=x):(u.logger&&u.logger({pEvict:"1",og:c.startTimeMs,adj:O*1E3}),c.AV=p+u.B,c.startTimeMs=O*1E3);c.QH=c.startTimeMs;p=void 0;O=((p=u.X)==null?void 0:p.info.duration)||11;R===u.G&&J<f&&f-J<=O*1.01&&(J=f);p=Math.min(f,J);O=I.index.K0(p-u.N/1E3-D);A=u.policy;(A.N||A.z7.j("html5_sabr_include_tail_media_chunk"))&&I.index.i_(O+
1)&&I.index.eU(O+1)+D<=p&&(O+=1);A=I.index.eU(O)+D;O-=+(Math.abs(A-p)>u.N/1E3);p=O+u.B;D=(I.index.eU(O)+D)*1E3;c.I7=p;c.durationMs=D-c.startTimeMs;c.YG=c.durationMs;c.AV<=c.I7&&Z.push(c)}f<J?R+=1:y+=1}u.JM=Z}}};
Ygn=function(u){var h=[],L=[].concat(g.l(u.Yq));u.JM.forEach(function(p){h.push(Object.assign({},p))});
for(var Z=u.G,y=g.C(u.V.YQ()),R=y.next();!R.done;R=y.next())Z=vgj(u,h,L,R.value,Z);h.forEach(function(p){p.startTimeMs&&(p.startTimeMs+=u.timestampOffset*1E3,p.QH&&(p.QH+=u.timestampOffset*1E3))});
return{JM:h,Yq:L}};
Sgb=function(u,h,L){var Z=h.startTimeMs+h.durationMs,y=L.startTimeMs+L.durationMs;if(L.startTimeMs-Z>u.N)return!1;if(XKb(u,h.formatId,L.formatId))return h.durationMs=Math.max(Z,y)-h.startTimeMs,h.YG=h.durationMs,h.I7=Math.max(h.I7,L.I7),!0;if(Math.abs(h.startTimeMs-L.startTimeMs)<=u.N){if(h.durationMs>L.durationMs+u.N){u=h.formatId;var R=h.AV,p=h.I7;h.formatId=L.formatId;h.durationMs=L.durationMs;h.AV=L.AV;h.YG=L.durationMs;h.I7=L.I7;L.formatId=u;L.startTimeMs=y;L.QH=y;L.durationMs=Z-y;L.YG=L.durationMs;
L.AV=R;L.I7=p;return!1}h.formatId=L.formatId;return!0}Z>L.startTimeMs&&(h.durationMs=L.startTimeMs-h.startTimeMs,h.YG=h.durationMs,h.clipId===L.clipId&&(h.I7=L.AV-1));return!1};
XKb=function(u,h,L){return h.itag!==L.itag||h.xtags!==L.xtags?!1:u.PX.bP||h.lmt===L.lmt};
ogb=function(u,h,L){if(u.logger){for(var Z=[],y=0;y<h.length;y++){var R=h[y],p=void 0;if((p=R.Ox)==null?0:p.startTicks){var J=p=void 0,O=void 0;Z.push("i."+((p=R.formatId)==null?void 0:p.itag)+"_st."+(R.startTimeMs+"_psst.")+(((J=R.Ox)==null?void 0:J.startTicks)+"_psd.")+((O=R.Ox)==null?void 0:O.GR))}p=void 0;Z.push("i."+((p=R.formatId)==null?void 0:p.itag)+"_st."+(R.startTimeMs+"_e."+(R.startTimeMs+R.durationMs)+"_d."+R.durationMs)+("_sn."+R.AV)+("_en."+R.I7))}u.logger({p:""+L,br:Z.join(";")})}};
NZs=function(u){u.JM=[];u.Yq=[];u.T.clear();u.G=-1;u.X=void 0};
q3=function(u,h,L,Z,y){this.nI=u;this.PX=h;this.videoTrack=L;this.audioTrack=Z;this.policy=y;this.seekCount=this.G=0;this.T=!1;this.B=null;this.X=0;this.N=this.PX.isManifestless&&!this.PX.Ph};
Um1=function(u,h,L){if(!u.policy.C){u=h.G.index;var Z=h.N.yA;u.i_(Z)||L&&L.yA===Z?(h.T=!u.i_(Z),h.RH=!u.i_(Z)):(h.T=!0,h.RH=!0)}};
Hnn=function(u){var h=Math.max(u.videoTrack.B.X||0,u.audioTrack.B.X||0);Gdi(u.videoTrack);Gdi(u.audioTrack);u.policy.C||uOb(u.PX);u.PX.isManifestless&&!u.policy.C&&(u.N=!0,u.X=0);var L=u.nI;L.policy.DI||(L.currentTime=h);u.T=!0;u.B=new aA;return u.B};
ze1=function(u,h,L,Z,y){var R=u.policy.jq?y:void 0;if(!h.G.c_()){if(!(R=L===0||!!h.X.length&&h.X[0]instanceof TS))a:{if(h.X.length&&(R=h.X[0],R instanceof Y0&&R.td&&R.Ee)){R=!0;break a}R=!1}R||u.policy.G||oC(h);return L}var p=N3(h,L);if(!isNaN(p))return p;if(u.nI.B$(L*1E3))return L;y.gC?u.policy.R3&&(u=Ue(u.nI,h),r_n(h.B,L+u,!0)):(h.A2(),u.nI.iY(!1,"sta_"+ +h.G.info.GD()));return Z&&(u=ZI(Z.QQ(),L),!isNaN(u))?(GS(h,u+BZf,R),L):GS(h,L,R)};
dmf=function(u,h,L,Z){if(u.policy.C)!Z||!u.N&&u.policy.La||g.Kv(function(){H4(u)});
else{if(u.isSeeking()&&u.G){var y=mma(u,h,L);if(y!==-1){u.videoTrack.T=!1;u.audioTrack.T=!1;u.N=!0;u.X=0;g.Kv(function(){u.nI.IH("seekreason",{reason:"behindMinSq",tgt:y});rJ(u,y)});
return}}L?u.videoTrack.RH=!1:u.audioTrack.RH=!1;var R=u.policy.W4||!u.N;N3(u.videoTrack,u.G)>=0&&N3(u.audioTrack,u.G)>=0&&R?((u.videoTrack.T||u.audioTrack.T)&&u.nI.IH("iterativeSeeking",{status:"done",count:u.seekCount}),u.videoTrack.T=!1,u.audioTrack.T=!1):Z&&g.Kv(function(){if(u.N||!u.policy.La)H4(u);else{var p=h.startTime,J=h.duration;if(!u.policy.C){var O=L?u.videoTrack.T:u.audioTrack.T,f=u.videoTrack.C!==-1&&u.audioTrack.C!==-1,D=u.G>=p&&u.G<p+J+.1,c=!u.videoTrack.RH&&!u.audioTrack.RH,I=u.policy.Sr&&
N3(u.videoTrack,p)&&N3(u.audioTrack,p);O&&f&&c&&(D||I?((L?u.videoTrack:u.audioTrack).T=!1,u.videoTrack.T||u.audioTrack.T||(u.nI.IH("iterativeSeeking",{status:"done",target:p,originalTime:p+u.nI.df(),count:u.seekCount}),u.seekCount=0)):u.seekCount<8?(u.seekCount++,u.nI.IH("iterativeSeeking",{status:"inprogress",count:u.seekCount,target:u.G,actual:p,duration:J,isVideo:L}),u.seek(u.G,{})):(u.nI.IH("iterativeSeeking",{status:"incomplete",count:u.seekCount,target:u.G,actual:p}),u.seekCount=0,u.videoTrack.T=
!1,u.audioTrack.T=!1,B4(u.nI,p+.1,{zl:!0,Ek:"chunkSelectorSynchronizeMedia",fm:!0})))}}})}};
mma=function(u,h,L){if(!u.isSeeking())return-1;L=(L?u.videoTrack:u.audioTrack).G.index;var Z=L.K0(u.G);return(L.i_(u.PX.vr)||h.yA===u.PX.vr)&&Z<u.PX.vr?u.PX.yF():-1};
rJ=function(u,h,L){u.N&&u.videoTrack.C!==-1&&u.audioTrack.C!==-1&&(u.N=!1,u.G=h,B4(u.nI,h+.1,{zl:!0,Ek:"chunkSelectorSynchronize",fm:!0,seekSource:L}))};
H4=function(u){var h=u.videoTrack.C!==-1,L=u.audioTrack.C!==-1;if(!h||!L)if(h=!h&&zS(u.videoTrack),L=!L&&zS(u.audioTrack),h||L){L=h?u.videoTrack:u.audioTrack;h=h?u.audioTrack:u.videoTrack;L.C=zS(L).info.yA;if(u.policy.C){var Z;h.C=((Z=zS(h))==null?void 0:Z.info.yA)||h.C}if(h.C!==-1){var y=Math.max(h.G.index.getStartTime(h.C),L.G.index.getStartTime(L.C));fS(u.PX)&&Math.abs(y-fS(u.PX))>432E3&&jKw(u.PX);u.X&&(y=u.X,u.X=0);g.Kv(function(){u.policy.C||rJ(u,y,102)});
u.nI.IH("initManifestlessSync",{st:y,ost:y+u.nI.df(),a:u.audioTrack.C,v:u.videoTrack.C});u.B&&(u.B.resolve(y+.1),u.B=null);u.policy.C&&rJ(u,y,102)}}};
mT=function(u,h){var L=this;this.XD=u;this.requestNumber=++VUe;this.G=this.now();this.Y=this.AB=NaN;this.V=this.G;this.X=this.iP=this.T=0;this.C=this.G;this.aH=this.S=this.gw=this.nH=this.eq=this.DI=this.N=this.B=0;this.RH=this.isActive=!1;this.Ca=this.xl=0;this.zd={O5I:function(){return L.bu}};
this.N1=h.N1;this.snapshot=VuY(this.N1);this.policy=this.N1.N;this.jw=!!h.jw;this.hF=h.hF;this.fg=h.fg||0;this.pB=h.pB||0;h.UZ&&(this.T7=new u9);var Z;this.bu=(Z=h.bu)!=null?Z:!1;this.jw||zEY(this.N1)};
ngf=function(u){u.gw=Math.max(u.gw,u.T-u.eq);u.S=Math.max(u.S,u.V-u.nH);u.DI=0};
dJ=function(u,h,L){mAe(u.N1,h);u.T7&&(u.T7.add(Math.ceil(h)-Math.ceil(u.V)),u.T7.add(Math.max(0,Math.ceil(L/1024)-Math.ceil(u.T/1024))));var Z=h-u.V,y=L-u.T;u.iP=y;u.aH=Math.max(u.aH,y/(Z+.01)*1E3);u.V=h;u.T=L;u.DI&&L>u.DI&&ngf(u)};
Vt=function(u,h){u.url=h;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
nt=function(u,h){mT.call(this,u,h);this.vJ=this.La=!1;this.jd=this.XB=Infinity;this.VA=NaN;this.wm=!1;this.fI=NaN;this.mz=this.vX=this.ZI=0;this.KL=h.KL||1;this.Bs=h.Bs||this.KL;this.hV=h.hV;this.yA=h.yA;this.Ep=h.Ep;sds(this);this.hW(this.G);this.e7=(this.fI-this.G)/1E3};
wKn=function(u){var h=u.vX||u.ZI;return h?u.snapshot.delay+Math.min(u.pB,(u.Y-u.AB)/1E3)+h:u.e7};
se=function(u,h,L){if(!u.jw){h=Math.max(h,.01);var Z=u.fg?Math.max(h,L/u.fg):h,y=u.N1.N.X;y&&(Z=h,u.fg&&(Z=Math.max(h,L/u.fg*y)));RL(u.N1,h,L,Z)}};
eeR=function(u){return(u.C-u.G)/1E3};
sds=function(u){u.VA=u.G+u.snapshot.delay*1E3;u.wm=!1};
wJ=function(u,h){if(u.hV&&u.yA!==void 0&&u.Ep!==void 0){var L=Math,Z=L.min,y=u.XB;var R=u.hV;var p=u.G;if(acR(R,u.yA))R=h;else{var J=0;R.vx&&(J=.2);R=p+(R.pB+J)*1E3}u.XB=Z.call(L,y,R);L=Math;Z=L.min;y=u.jd;R=u.hV;p=u.G;J=$mw(R,u.yA,u.Ep);J!==2&&(h=J?h:p+R.pB*1E3,R.vx&&(h+=R.pB*1E3));u.jd=Z.call(L,y,h);u.XB<=u.G?sds(u):(u.VA=u.XB,u.wm=!0)}};
tUf=function(u,h){if(u.NC(h,1)){var L=u.getUint8(h);L=L<128?1:L<192?2:L<224?3:L<240?4:5}else L=0;if(L<1||!u.NC(h,L))return[-1,h];if(L===1)u=u.getUint8(h++);else if(L===2)L=u.getUint8(h++),u=u.getUint8(h++),u=(L&63)+64*u;else if(L===3){L=u.getUint8(h++);var Z=u.getUint8(h++);u=u.getUint8(h++);u=(L&31)+32*(Z+256*u)}else if(L===4){L=u.getUint8(h++);Z=u.getUint8(h++);var y=u.getUint8(h++);u=u.getUint8(h++);u=(L&15)+16*(Z+256*(y+256*u))}else L=h+1,u.focus(L),C_(u,L,4)?u=UXi(u).getUint32(L-u.rZ,!0):(Z=
u.getUint8(L+2)+256*u.getUint8(L+3),u=u.getUint8(L)+256*(u.getUint8(L+1)+256*Z)),h+=5;return[u,h]};
el=function(u){this.XD=u;this.G=new It};
aC=function(u,h){this.info=u;this.callback=h;this.state=1;this.xx=this.qZ=!1;this.F9=null};
WlV=function(u){return g.vG(u.info.YI,function(h){return h.type===3})};
$0=function(u,h,L,Z){var y=this;Z=Z===void 0?{}:Z;this.policy=h;this.XD=L;this.status=0;this.G=new It;this.N=0;this.ww=this.B=this.X=!1;this.xhr=new XMLHttpRequest;this.xhr.open(Z.method||"GET",u);if(Z.headers)for(u=Z.headers,h=g.C(Object.keys(u)),L=h.next();!L.done;L=h.next())L=L.value,this.xhr.setRequestHeader(L,u[L]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return y.ib()};
this.xhr.onload=function(){return y.onDone()};
this.xhr.onerror=function(){return y.onError()};
this.xhr.fetch(function(R){y.G.append(R);y.N+=R.length;R=(0,g.vC)();y.XD.PF(R,y.N)},function(){},Z.body||null)};
Fl1=function(u,h){this.N=(new TextEncoder).encode(u);this.G=(new TextEncoder).encode(h)};
Efj=function(u,h){var L,Z,y;return g.G(function(R){if(R.G==1){if(!h)return R.return(h);L=tG.kx();Z=new g.MQ(u.N);return g.N(R,Z.encrypt(h,u.G),2)}y=R.N;tG.rM("woe",L,Math.ceil(h.byteLength/16));return R.return(y)})};
hge=function(u,h){var L,Z,y;return g.G(function(R){if(R.G==1){if(!h)return R.return(h);L=tG.kx();Z=new g.MQ(u.N);return g.N(R,Z.decrypt(h,u.G),2)}y=R.N;tG.rM("wod",L,Math.ceil(h.byteLength/16));return R.return(y)})};
EgY=function(u,h){var L=this;this.G=u;this.XD=h;this.loaded=this.status=0;this.error="";u=M8(this.G.get("range")||"");if(!u)throw Error("bad range");this.range=u;this.N=new It;bnb(this).then(function(){L.XD.zw()},function(Z){L.error=""+Z||"unknown_err";
L.XD.zw()})};
bnb=function(u){var h,L,Z,y,R,p,J,O,f,D,c,I,A,x,Q;return g.G(function(S){if(S.G==1){u.status=200;h=u.G.get("docid");L=F7(u.G.get("fmtid")||"");Z=u.G.get("lmt")||"0";y=+(u.G.get("csz")||0);if(!h||!L||!y)throw Error("Invalid local URL");u.G.get("ck")&&u.G.get("civ")&&(R=new Fl1(u.G.get("ck"),u.G.get("civ")));p=u.range;J=Math.floor(p.start/y);O=Math.floor(p.end/y);f=J}if(S.G!=5)return f<=O?g.N(S,L_L(h,L,Z,f,R),5):S.KI(0);D=S.N;if(D===void 0)throw Error("invariant: data is undefined");c=f*y;I=(f+1)*y;
A=Math.max(0,p.start-c);x=Math.min(p.end+1,I)-(A+c);Q=new Uint8Array(D.buffer,A,x);u.N.append(Q);u.loaded+=x;u.loaded<p.length&&u.XD.PF((0,g.vC)(),u.loaded);f++;return S.KI(2)})};
ggw=function(u,h,L,Z){var y=this;Z=Z===void 0?{}:Z;this.policy=h;this.XD=L;this.V=Z;this.status=0;this.response=void 0;this.N=0;this.T=this.C=!1;this.errorMessage="";this.Y=function(R){if(R)if(y.status=R.status,R.ok&&R.body&&y.status!==204)y.status=y.status||242,y.X=R.body.getReader(),y.ww()?y.X.cancel().catch(function(){}):(y.responseHeaders=R.headers,y.XD.q2(),kda(y));
else y.onDone();else y.onError(Error("null_response"))};
this.S=function(R){var p=(0,g.vC)();y.ww()||(R.done?(y.X=void 0,y.onDone()):(R=R.value,y.N+=R.length,y.G.append(R),kda(y),y.XD.PF(p,y.N)))};
this.onError=function(R){y.errorMessage=String(R);y.C=!0;y.onDone()};
this.G=new It;this.B=window.AbortController?new AbortController:void 0;this.start(u)};
kda=function(u){u.X.read().then(u.S,u.onError).then(void 0,Ri)};
uD1=function(u,h,L){var Z=this;L=L===void 0?{}:L;this.XD=h;this.N=this.status=0;this.ww=this.G=!1;this.xhr=new XMLHttpRequest;this.xhr.open(L.method||"GET",u);if(L.headers){u=L.headers;h=g.C(Object.keys(u));for(var y=h.next();!y.done;y=h.next())y=y.value,this.xhr.setRequestHeader(y,u[y])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(R){Z.ib(R)};
u=Dc(function(R){Z.onDone(R)});
this.xhr.addEventListener("load",u,!1);this.xhr.addEventListener("error",u,!1);L.body?this.xhr.send(L.body):this.xhr.send();this.xhr.addEventListener("progress",Dc(function(R){Z.q3(R)}),!1)};
W4=function(u,h,L,Z,y){if(xa(u.eY))return new EgY(u,L);u=u.VQ();return Z?Sif()?new $0(u,h,L,y):new ggw(u,h,L,y):new uD1(u,L,y)};
g.F_=function(u){this.tag=u};
j3n=function(u,h){g.bo.apply(null,[6,u,h].concat(g.l(g.NL.apply(2,arguments))))};
hme=function(u,h){g.bo.apply(null,[5,u,h].concat(g.l(g.NL.apply(2,arguments))))};
g.bo=function(u,h,L){var Z=g.NL.apply(3,arguments),y=u===6?"ERROR":"WARNING",R="b"+L;g.UZ(new (Function.prototype.bind.apply(g.aO,[null,R].concat(g.l(Z)))),y);Z.unshift(R);L$b(h,u,Z.join(", "))};
L$b=function(u,h,L,Z){var y=ZkY.get(u);if(!y){y="ytplog."+u;var R=5;try{window.localStorage&&!isNaN(+window.localStorage[y])&&(R=+window.localStorage[y]),window.sessionStorage&&!isNaN(+window.sessionStorage[y])&&(R=+window.sessionStorage[y])}catch(J){}ZkY.set(u,R);y=R}if(!(h<y))if(h=yDV,y=h.G.get(u),y||(y=new Rmn,h.G.set(u,y)),h=y,y=Date.now(),R=Math.floor((y-h.N)*.01),R>0&&(h.G=Math.min(h.G+R,10),h.N=y),h.G>0?(h.G--,h=!0):h=!1,h)typeof L==="function"&&(L=L()),Z&&(L=Z(L)),console.log("plyr."+u,L);
else{var p;L=((p=pQn.get(u))!=null?p:0)+1;pQn.set(u,L);L%100===1&&console.warn("plyr","plyr."+u+" is chatty, dropping logs.")}};
Rmn=function(){this.G=10;this.N=Date.now()};
Ee=function(u,h){g.m.call(this);var L=this;this.policy=u;this.YI=h;this.N=0;this.G=null;this.Hr=[];this.X=null;this.zd={DK:function(){return L.YI}};
this.YI.length===1||g.vG(this.YI,function(Z){return!!Z.range})};
k0=function(u,h,L){u.G&&(AC(u.G,h),h=u.G,u.G=null);for(var Z=0,y=0,R=g.C(u.YI),p=R.next();!p.done;p=R.next())if(p=p.value,p.range&&Z+p.X<=u.N)Z+=p.X;else{h.getLength();if(S8(p)&&!L&&u.N+h.getLength()-y<Z+p.X){u.G=h.split(y).NJ;return}a:{var J=u;var O=p,f=u.N-Z,D=y,c=h,I=!!L,A=c.getLength()-D;O.range&&(A=Math.min(O.X-f,A));O=bAR(O,O.N+f,A,O.range?O.N+f+A===O.range.length:I);D=xW(c,D,A);D=new wO(O,D);if(J.policy.useUmp&&J.Hr.length&&(c=g.e8(J.Hr[J.Hr.length-1],D))){J.Hr[J.Hr.length-1]=c;J=A;break a}J.Hr.push(D);
J=A}u.N+=J;y+=J;Z+=p.X;if(y===h.getLength())break}h.getLength()};
gJ=function(u,h,L,Z,y,R,p,J,O){O=O===void 0?!1:O;g.m.call(this);this.XD=u;this.policy=h;this.rd=L;this.D3=Z;this.timing=y;this.logger=R;this.X=p;this.BV=J;this.T=O;this.lastError=null;this.G=0;this.B=!1;this.N=new g.EM(this.MSd,this.policy.J4,this)};
K$n=function(u){u.D3.Y=(0,g.vC)();u=uE(u);u.X=(0,g.vC)();u.started+=1};
f0l=function(u,h,L,Z){u.timing.xX((0,g.vC)(),h,L);h=u.D3;h.N=0;h.T=0;h.V=0;Kb(uE(u));u.policy.l6&&Z&&(Z=uE(u),Z.N+=1);if((Z=u.BV)!=null&&(u=u.rd.eY,!((0,g.vC)()<Z.C+3E5||xa(u))&&(h=AD(u))&&JDa(h)&&Z.N===jy(h))){var y;PQ(u)&&(y=AD(Ck(u)));g.UO("yt-player-bandaid-host",{primary:h,secondary:y},864E3);Z.C=(0,g.vC)();Oka(Z,{primary:h,secondary:y})}};
hO=function(u){if(u.lastError==="ump.spsrejectfailure")u.policy.Cg||u.timing.RH||dKY(u.D3,!1,u.rd,u.policy,u.X);else{if(u.lastError==="net.timeout")u.timing.Ju((0,g.vC)());else{var h=u.timing;dJ(h,(0,g.vC)(),h.T)}if(u.lastError==="net.nocontent")++u.D3.V;else{if((h=u.lastError==="net.timeout"||u.lastError==="net.connect"||u.lastError==="net.closed")&&!xa(u.rd.eY)){var L=uE(u);L.timedOut+=1}else L=uE(u),L.G+=1;u.timing.RH||dKY(u.D3,h,u.rd,u.policy,u.X)}}u.XD.Sq(5)};
L4=function(u,h,L,Z,y){return h>=400?(u.lastError="net.badstatus",!0):(y===void 0?0:y)?(u.lastError="ump.spsrejectfailure",!0):L||Z!==void 0&&Z?!1:(u.lastError=h===204?"net.nocontent":"net.connect",!0)};
Ze=function(u,h){if(u.policy.mC)return!1;var L=h.getResponseHeader("content-type"),Z=h.y8();u=!Z||Z<=u.policy.Pc;return(!h.dB()||!L||L.indexOf("text/plain")!==-1)&&u};
cDj=function(u,h){var L="";h=h.aA();h.getLength()<=u.policy.Pc&&(L=D61(u,h.oF()));return L};
D61=function(u,h){var L=Qi(h);return bN(L)?(u.logger.debug(function(){return"Redirecting to "+L}),L):""};
uE=function(u){return O4(u.X,AD(u.rd.eY))};
I0a=function(u){var h=u.timing.Vt();h.shost=AD(u.rd.eY);return h};
ADR=function(u,h){return(u==null?void 0:u.maxWidth)>(h==null?void 0:h.maxWidth)||(u==null?void 0:u.maxHeight)>(h==null?void 0:h.maxHeight)};
x6j=function(u,h){for(var L=g.C(h.keys()),Z=L.next();!Z.done;Z=L.next())if(Z=h.get(Z.value),Z.length!==0){g.OV(Z,function(J,O){return O.maxFramerate-J.maxFramerate});
for(var y=[Z[0]],R=0,p=1;p<Z.length;p++)ADR(Z[p],y[R])&&(y.push(Z[p]),R++);u=u.concat(y)}return u};
C01=function(u,h){var L=[];h=g.C(h);for(var Z=h.next();!Z.done;Z=h.next()){Z=Z.value;var y=P0V[Z]||0;u.G&&y>u.G||L.push(Z)}return L};
yW=function(u,h,L){var Z=M5L[u]||[];L.j("html5_shorts_onesie_mismatched_fix")&&(Z=iki[u]||[]);h.push.apply(h,g.l(Z));L.j("html5_early_media_for_drm")&&h.push.apply(h,g.l(Q3w[u]||[]))};
Tts=function(u,h){var L=g.km(u),Z=u.L(),y=Z.T;Z=Z.j("html5_shorts_onesie_mismatched_fix");var R=u.LV();if(Z){if(!y.X){if(R&&R$)return R$;if(p4)return p4}}else if(p4&&!y.X)return p4;var p=[],J=[],O={},f=K4.concat(l0f);Z&&(f=K4.concat(S5b));u.j("html5_early_media_for_drm")&&(f=f.concat(XQ1),u.j("allow_vp9_1080p_mq_enc")&&f.push(vab));var D=[].concat(g.l(q5w));if(L.Y)for(var c=0;c<D.length;c++)D[c].length&&dF[D[c][0]]==="a"&&(D[c]=["141"]);if(L.DI)for(c=0;c<D.length;c++)D[c].length&&dF[D[c][0]]==="o"&&
(D[c]=["774"]);u.j("html5_iamf_audio_onesie_fmt")&&D.push(["773"]);f=g.C(f);for(var I=f.next();!I.done;I=f.next()){c=!1;I=g.C(I.value);for(var A=I.next();!A.done;A=I.next()){A=A.value;var x=Eb(A,R&&Z);if(x&&x.video&&!(wF(x)&&!L.T7&&x.video.G>L.aM)){var Q=g.Jl(u.L().experiments,"html5_drm_byterate_soft_cap");Q>0&&IKb(x)&&x.G3>Q||(c?(p.push(A),yW(A,p,u)):(x=yT(L,x,y),x===!0?(c=!0,p.push(A),yW(A,p,u)):O[A]=x))}}}D=g.C(D);for(f=D.next();!f.done;f=D.next())for(f=g.C(f.value),c=f.next();!c.done;c=f.next())if(c=
c.value,(I=JLj(c))&&I.audio&&(u.j("html5_onesie_51_audio")||!eX(I)&&!an(I)))if(I=yT(L,I,y),I===!0){J.push(c);yW(c,J,u);break}else O[c]=I;L.N&&h("orfmts",O);if(Z)return y.X&&(y.X=!1,R$=p4=void 0),R?R$={video:p,audio:J}:p4={video:p,audio:J};p4={video:p,audio:J};y.X=!1;return p4};
g.Ntl=function(u,h,L){var Z=L.T,y=[],R=[],p=L.j("html5_shorts_onesie_mismatched_fix");u=u.LV();var J=K4.concat(l0f);p&&(J=K4.concat(S5b));L.j("html5_early_media_for_drm")&&(J=J.concat(XQ1),L.j("allow_vp9_1080p_mq_enc")&&J.push(vab));var O=[].concat(g.l(q5w));if(h.Y)for(var f=0;f<O.length;f++)O[f].length&&dF[O[f][0]]==="a"&&(O[f]=["141"]);if(h.DI)for(f=0;f<O.length;f++)O[f].length&&dF[O[f][0]]==="o"&&(O[f]=["774"]);L.j("html5_iamf_audio_onesie_fmt")&&O.push(["773"]);J=g.C(J);for(f=J.next();!f.done;f=
J.next()){f=g.C(f.value);for(var D=f.next();!D.done;D=f.next()){D=D.value;var c=Eb(D,u&&p);if(c&&c.video){var I=g.Jl(L.experiments,"html5_drm_byterate_soft_cap");if(!(I>0&&IKb(c)&&c.G3>I)&&yT(h,c,Z)===!0){y.push({videoCodec:Y5i[dF[D]],maxWidth:c.video.width,maxHeight:c.video.height,maxFramerate:c.video.fps});break}}}}p=g.C(O);for(u=p.next();!u.done;u=p.next())for(u=g.C(u.value),O=u.next();!O.done;O=u.next())if(O=O.value,(J=JLj(O))&&J.audio&&(L.j("html5_onesie_51_audio")||!eX(J)&&!an(J))&&yT(h,J,Z)===
!0){R.push({audioCodec:oaV[dF[O]],numChannels:J.audio.numChannels});break}return{videoFormatCapabilities:y,audioFormatCapabilities:R}};
JO=function(u){var h={},L=u.G7,Z=u.z7,y=L.getVideoData(),R=od(0),p=L.getPlayerSize(),J=L.getVisibilityState();R&&(h.hdI=R,h.lastManualDirection=XsL(),R=kfj()||0,R>0&&(R=(Z.j("html5_use_date_now_for_local_storage")?Date.now():(0,g.vC)())-R,Z.j("html5_use_date_now_for_local_storage")?R>0&&(h.timeSinceLastManualFormatSelectionMs=R):h.timeSinceLastManualFormatSelectionMs=R));R=Z.j("html5_use_streamer_bandwidth_for_low_latency_live")&&y.isLowLatencyLiveStream;if(Z.schedule.AB&&!R){var O;R=Z.j("html5_disable_bandwidth_cofactors_for_sabr_live")?
!((O=u.Rb)==null||!O.dD):!1;h.rK=Dr(Z.schedule,!R)}O=g.V6();var f=g.rF.medium,D=Math.floor(f*16/9);R=y.LV()?f:D;f=y.LV()?D:f;h.Ut=Math.max(p.width*O,R);h.Vh=Math.max(p.height*O,f);h.visibility=J;h.wow=v5();h.Tf=L.xz()*1E3;p=u.G7.Hu(!0);var c,I,A,x,Q,S;h.fgX={defaultPolicy:(p==null?void 0:(c=p.gP)==null?void 0:c.G)||0,smooth:(p==null?void 0:(I=p.mOI)==null?void 0:I.G)||0,visibility:(p==null?void 0:(A=p.GNB)==null?void 0:A.G)||0,ox:(p==null?void 0:(x=p.kK)==null?void 0:x.G)||0,performance:(p==null?
void 0:(Q=p.e2)==null?void 0:Q.G)||0,speed:(p==null?void 0:(S=p.Add)==null?void 0:S.G)||0};if(Z.j("html5_sabr_report_sticky_constraints")){var v;h.vA=(p==null?void 0:(v=p.dOA)==null?void 0:v.G)||0}else h.vA=od();Z.j("html5_enable_sabr_drm_hd720p")&&u.sabrLicenseConstraint&&(h.sabrLicenseConstraint=u.sabrLicenseConstraint);if(Z.j("html5_onesie_media_capabilities")||Z.j("html5_enable_server_format_filter"))h.n$=3;Z.j("html5_onesie_audio_only_playback")&&Fu(y)&&(h.n$=1);var T;((T=u.Rb)==null?0:T.vJ)&&
u.WyA&&(h.n$=h.n$===void 0?7:h.n$|4);c=y.Zg?y.Zg:g.km(y);Z.j("html5_onesie_media_capabilities")&&(h.mediaCapabilities=g.Ntl(y,c,Z));var U;if((U=u.Rb)==null?0:U.G&&U.A4){A=Z.T;U=[];I=[];x=new Map;Z.j("html5_ssap_update_capabilities_on_change")?(A.Y||NXf(A),Q=A.Y||[]):Q=Array.from(A.G.values());Q=g.C(Q);for(S=Q.next();!S.done;S=Q.next())v=S.value,v.GD?I.push({audioCodec:oaV[v.QA],numChannels:v.numChannels,spatialCapabilityBitmask:U6R[v.QA]}):(T=Y5i[v.QA],S={videoCodec:T,maxWidth:v.maxWidth||0,maxHeight:v.maxHeight||
0,maxFramerate:v.maxFramerate||0,is10BitSupported:v.MQ||!1},v.maxBitrateBps&&(S.maxBitrateBps=v.maxBitrateBps,p=Eb(v.itag),J=void 0,((J=p)==null?0:J.video)&&yT(c,p,A)===!0&&(p=p.G3*8,p>S.maxBitrateBps&&(S.maxBitrateBps=p))),v=T+"_"+v.MQ,T=x.get(v)||[],T.push(S),x.set(v,T));U=x6j(U,x);A={};Z.j("html5_ssff_denylist_opus_low")&&(A={itagDenylist:[249,350]});h.mediaCapabilities={videoFormatCapabilities:U,audioFormatCapabilities:I,hdrModeBitmask:3,perPlaybackAttributes:A}}var z;if((z=u.Rb)==null?0:z.G){h.l8=
c.l8;var d;h.aM=(d=u.Rb)==null?void 0:d.aM}Z.J4&&(h.vk=Z.J4);h.o1=u.hn;h.j9=u.j9;h.Vm=u.Vm;h.sM=u.sM;if(Z.j("html5_fix_time_since_last_seek_reporting")?u.Vc!==void 0:u.Vc)h.ToB=(0,g.vC)()-u.Vc;u.isPrefetch&&Z.j("html5_report_prefetch_requests")&&(h.isPrefetch=!0);sf||(h.yMy=!0);z=Jz(Z.schedule)*1E3;z>0&&(h.q7=z);var W;((W=u.Rb)==null?0:W.XC)&&u.fX&&u.fX<Infinity&&(h.fX=u.fX);L=L.getPlaybackRate();L!==1&&(h.playbackRate=L);var t;((t=u.Rb)==null?0:t.Td)&&u.IC&&(h.vL=u.vL,h.GI=u.GI,h.IC=u.IC);Z.j("allow_proxima_live_latency")&&
(Nm()===1&&(h.YgA=1),Z.j("html5_sabr_force_proxima")&&(h.fII=1),t=g.Jl(Z.experiments,"html5_sabr_force_max_network_interruption_duration_ms"),h.zFB=t>0?t:Z.schedule.interruptions[0]||0);var yn;if((yn=u.Rb)==null?0:yn.mz)h.TY=u.TY;var KV;((KV=u.Rb)==null?0:KV.bk)&&y.T6&&(h.audioTrackId=y.T6);var u1;if((u1=u.Rb)==null?0:u1.oX)if(u=Dwa())h.detailedNetworkType=Gnj[u]||Gnj.other;return h};
OK=function(u,h,L,Z,y,R,p){var J={};h&&(J.e_=h);if(!u)return J;J.playbackCookie=L==null?void 0:L.playbackCookie;y&&(J.wi=y);J.S_=[];J.WV=[];if(p==null?0:p.size)for(h=g.C(p.values()),L=h.next();!L.done;L=h.next())J.WV.push(L.value);if(u.Yy&&u.sabrContextUpdates.size>0)for(h=g.C(u.sabrContextUpdates.values()),L=h.next();!L.done;L=h.next())HkR(J,L.value,Z);EX(u)&&!g.dC(u)&&u.j("html5_enable_sabr_request_pipelining")&&R&&HkR(J,R,Z);u.zI&&(J.YuB=u.zI);Z=u.L().G;J.clientInfo={clientName:rDi[Z.c.toUpperCase()]||
0};Z.cbrand&&(J.clientInfo.deviceMake=Z.cbrand);Z.cmodel&&(J.clientInfo.deviceModel=Z.cmodel);Z.cver&&(J.clientInfo.clientVersion=Z.cver);Z.cos&&(J.clientInfo.osName=Z.cos);Z.cosver&&(J.clientInfo.osVersion=Z.cosver);Z=u.L();Z.j("html5_sabr_enable_server_xtag_selection")&&Z.wm&&(J.clientInfo.hl=Z.wm);u.kc&&(J.kc=u.kc);return J};
HkR=function(u,h,L){var Z=h.type||0;(L==null?0:L.has(Z))?u.WV.push(h):u.S_.push(Z)};
Y0=function(u,h,L,Z,y,R){var p=R===void 0?{}:R;var J=p.Dt===void 0?[]:p.Dt;var O=p.cI===void 0?!1:p.cI;var f=p.FC===void 0?0:p.FC;var D=p.poToken===void 0?"":p.poToken;var c=p.BV===void 0?void 0:p.BV;var I=p.P2===void 0?"":p.P2;var A=p.td===void 0?0:p.td;var x=p.Ee===void 0?new Uint8Array(0):p.Ee;var Q=p.PY===void 0?!1:p.PY;R=p.SK===void 0?0:p.SK;p=p.e_===void 0?void 0:p.e_;aC.call(this,h,y);var S=this;this.policy=u;this.logger=new g.F_("dash/request");this.II=this.W_=0;this.fP=!1;this.Hb=this.TB=
null;this.aD=!1;this.Ee=this.td=null;this.SX=this.AA=!1;this.Ro=null;this.SK=this.WH=0;this.yk=!1;this.zd={Sq:function(T){S.Sq(T)},
tOX:function(){return S.F9},
KJa:function(T){S.F9=T},
l9i:function(T){S.W_=T},
gwd:function(T){S.wf.lastError=T},
bq:function(){return S.xhr}};
this.timing=new nt(this,L);this.cI=O;this.td=A;this.Ee=x;this.rd=g.G5(this.info,this.policy,Z);this.rd.set("rn",this.kq().toString());this.rd.set("rbuf",(f*1E3).toFixed().toString());this.cI&&this.rd.set("smb","1");this.policy.K3&&D&&this.rd.set("pot",D);I&&this.rd.set("bbs",I);this.policy.useUmp&&!xa(this.rd.eY)&&(this.u_=new el(this),this.rd.set("ump","1"),this.rd.set("srfvp","1"));if(u=this.policy.va?this.policy.dQ&&!isNaN(this.info.Ep)&&this.info.Ep>this.policy.LM?!1:!0:!1)h=null,this.policy.uV&&
this.policy.yI?h=[1]:Q&&(h=[]),h!=null&&(this.policy.xj&&h.push(2),this.rd.set("defsel",h.join(",")));this.wf=new gJ(this,this.policy,this.rd,this.info.D3,this.timing,this.logger,Z,c);this.Dt=J||null;this.xx=BtL(this);K$n(this.wf);Z=void 0;if(this.policy.zm||this.u_||this.policy.T7)Z={method:"POST"},J=(0,g.f4)([120,0]),c={},this.policy.Kj&&p&&(p=OK(void 0,p),c.Uf=p),this.policy.qC&&this.Ee&&(c.videoPlaybackUstreamerConfig=this.Ee),this.policy.T7&&(p=this.info.B)&&Object.assign(c,p),Object.keys(c).length>
0?Z.body=g.L7(c,g.eU):Z.body=J;if(this.td&&this.Ee){this.rd.set("iwts","1");Z={method:"POST"};p={sM:this.td*1E3};var v;J=(v=this.info.B)==null?void 0:v.Im;v=g.L7({Ha:p,Im:J||void 0,videoPlaybackUstreamerConfig:this.Ee},g.eU);Z.body=v}try{this.xhr=W4(this.rd,this.policy.S,this.timing,u,Z),this.wf.N.start(),R&&(this.E4=new g.EM(this.qa,R,this),this.E4.start(R+(this.timing.N1.S.NO()||0)*1E3)),this.policy.I3&&Vt(this.timing,this.VQ()),this.logger.debug(function(){return"Sent, itag="+S.rd.get("itag")+
" seg="+S.info.YI[0].yA+" range="+S.rd.get("range")+" time="+Math.round(S.info.YI[0].ob)+"-"+Math.round(g.tu(S.info.YI).pZ)+" rtp="+(S.timing.lx()-Date.now()).toFixed(0)}),g.Kv(function(){})}catch(T){zmn(this,T,!0)}};
BtL=function(u){if(!(U4(u.info)&&u.info.bu()&&u.policy.Zg&&u.Dt)||u.info.D3.N>=2||od()>0||!Yin())return!1;var h=u.rd.get("aitags");if(!h)return!1;h=F7(h).split(",");for(var L=[],Z=g.C(u.Dt),y=Z.next();!y.done;y=Z.next())y=y.value,g.E8(h,y)&&L.push(y);if(!L.length)return!1;u.rd.set("altitags",g.Wo(L.join(",")));return!0};
zmn=function(u,h,L){L=L===void 0?!1:L;g.UZ(h);u.wf.lastError="player.exception";u.errorMessage=h.name+"_"+h.message;L?g.Kv(function(){hO(u.wf)}):hO(u.wf)};
m6j=function(u,h){u.timing.RH=!0;u.xhr.dB()&&u.timing.tF();if(u.policy.Z1){var L;(L=u.E4)==null||L.stop()}k0(u.F9,h,!1)};
d6n=function(u,h){u.info=h;if(u.F9){var L=u.F9;h=h.YI;(h.length!==L.YI.length||h.length<L.Hr.length)&&hme("dash/request",260511119,""+h.length,""+L.YI.length,""+L.Hr.length);L.YI=h;for(var Z=h[0].range,y=new It,R=0;R<L.Hr.length;R++)AC(y,L.Hr[R].G);for(R=0;R<L.Hr.length;R++){L.Hr[R].info=h[R];var p=h[R].range;L.Hr[R].G=xW(y,p.start-Z.start,p.length)}}u.xx=!1};
V5f=function(u){u.WH&&(u.xhr.status=u.WH,u.W_=u.WH)};
De=function(u,h){mT.call(this,u,h);this.vX=!0;this.XB=!1;this.VA=this.jd=0;this.ZI=NaN};
nan=function(u,h,L){var Z=u.fg?Math.max(h,L/u.fg):h,y=u.N1.N.X;y&&(Z=h,u.fg&&(Z=Math.max(h,L/u.fg*y)));RL(u.N1,h,L,Z)};
cj=function(u){this.N={};this.logger=new g.F_(u)};
I$=function(u){cj.call(this,"sabr");this.XD=u};
AO=function(u){g.m.call(this);this.B=u;this.logger=new g.F_("onesie");this.kF=new Map;this.N=this.G=!1;this.Rb=this.PX=null;this.X=!1};
s3V=function(u,h,L){u.kF.get(h).q3=L};
C4=function(u,h){u.kF.has(h)&&(x2?u.kF.get(h).Hx.clear():u.kF.get(h).Hr=new It,Pj(u,h),u.N=!0)};
wQn=function(u){for(var h=g.C(u.kF),L=h.next();!L.done;L=h.next()){var Z=g.C(L.value);L=Z.next().value;Z=Z.next().value;Z.rb||C4(u,L)}};
eme=function(u,h){h=u.kF.get(h);if(!h)return 0;u=0;if(h.YI.length>0){h=g.C(h.YI);for(var L=h.next();!L.done;L=h.next()){var Z=void 0;u+=((Z=L.value.range)==null?void 0:Z.length)||0}return u}if(h.U8.length>0)for(L=g.C(h.U8),Z=L.next();!Z.done;Z=L.next())u+=Z.value.ql||0;return u+h.qx};
Mb=function(u,h){if(x2){var L=0;u=u.kF.get(h);if(u==null||!u.Hx)return 0;u=g.C(u.Hx.values());for(h=u.next();!h.done;h=u.next())L+=h.value.data.getLength();return L}return((L=u.kF.get(h))==null?void 0:L.Hr.getLength())||0};
iE=function(u,h){u=u.kF.get(h);if(x2){if(u==null||!u.rb)return!1;h=u.Hx.size>0;return u.Zp.length>0||h}return!(u==null||!u.rb)&&!(u==null||!u.Hr.getLength())};
a0j=function(u,h){var L=u.kF.get(h),Z=eme(u,h),y=!Z&&!!L.bytesReceived;if(x2){var R;if((R=u.PX)==null?0:R.bP){u=g.C(L.Hx.values());for(h=u.next();!h.done;h=u.next())if(!h.value.O3)return!1;return y}}else if(R=u.lE(h),y&&u.G&&R!==void 0)return R;return(y||L.bytesReceived===Z)&&L.h7+Mb(u,h)===L.bytesReceived};
$6f=function(u,h,L){u.kF.set(h,{Hr:new It,h7:0,bytesReceived:0,qx:0,Ws:!1,XE:!1,lE:!1,GD:L,gs:[],YI:[],U8:[],rb:!1,Hx:new Map,OI:new Map,Zp:[]});u.logger.debug(function(){return"[initStream] formatId: "+h})};
t5L=function(u,h,L,Z){L.YI.push.apply(L.YI,g.l(Z));if(x2){L.OI.has(h)||L.OI.set(h,[]);var y;(y=L.OI.get(h)).push.apply(y,g.l(Z))}else if(L.F9)for(u=g.C(Z),h=u.next();!h.done;h=u.next())L.F9.YI.push(h.value);else{L.F9=new Ee(u.Rb,[].concat(g.l(L.YI)));var R;((R=u.Rb)==null?0:R.Bm)&&g.V(u,L.F9)}};
W$n=function(u,h,L){var Z,y=(Z=u.PX)==null?void 0:Z.X.get(h);if(!y)return[];if(L.Gw){var R;return((R=y.Y6(0,L.clipId))==null?void 0:R.YI)||[]}if(y.qJ()){var p=L.startMs,J=L.durationMs,O=1E3,f;if(((f=u.Rb)==null?0:f.G)&&L.timeRange){var D;p=(D=L.timeRange.startTicks)!=null?D:-1;var c;J=(c=L.timeRange.GR)!=null?c:-1;var I;O=(I=L.timeRange.timescale)!=null?I:-1}if(L.rE<0||L.rH<0||J<0||p<0||L.ql<0||O<0)return C4(u,h),[];u=iO(L.rE,L.ql);h=L.fu||0;return[new lO(3,y,u,"makeSliceInfosMediaBytes",L.rH-1,p/
O,J/O,h,u.length-h,void 0,L.GG,L.clipId)]}if(L.rH<0)return C4(u,h),[];var A;return((A=u.PX)==null?0:A.bP)?(h=y.AS,f=h*y.info.G3,D=((p=u.Rb)==null?0:p.jq)?L.fu:void 0,((O=u.Rb)==null?0:O.wB)&&L.timeRange&&!D&&(J=L.timeRange.startTicks/L.timeRange.timescale),[new lO(3,y,void 0,"makeSliceInfosMediaBytes",L.rH,J,h,D,f,!0,L.GG,L.clipId)]):[]};
F$1=function(u,h,L){u.PX=h;u.Rb=L;h=g.C(u.kF);for(L=h.next();!L.done;L=h.next()){var Z=g.C(L.value);L=Z.next().value;Z=Z.next().value;for(var y=g.C(Z.gs),R=y.next();!R.done;R=y.next()){R=R.value;var p=W$n(u,L,R);t5L(u,R.yc,Z,p)}}};
QW=function(u,h,L,Z){u.logger.debug(function(){return"[addStreamData] formatId: "+L+",headerId: "+h+" bytes: "+Z.getLength()});
(u=u.kF.get(L))&&!u.XE&&(x2?(u.Hx.has(h)||u.Hx.set(h,{data:new It,AU:0,O3:!1}),AC(u.Hx.get(h).data,Z)):AC(u.Hr,Z),u.bytesReceived+=Z.getLength(),u.Ws=!0)};
Pj=function(u,h){u.logger.debug(function(){return"[closeStream] formatId: "+h});
var L=u.kF.get(h);L&&!L.XE&&(L.XE=!0,L.q3&&L.q3(),bks(u)&&u.B.MS())};
bks=function(u){u=g.C(u.kF.values());for(var h=u.next();!h.done;h=u.next())if(!h.value.XE)return!1;return!0};
lE=function(u,h,L,Z,y,R,p,J){g.m.call(this);this.policy=u;this.info=h;this.PX=L;this.XD=y;this.ZD=J;this.logger=new g.F_("sabr");this.u_=new el(this);this.qX=new I$(this);this.N3=new AO(this);this.state=1;this.S2=!1;this.Yi=0;this.clipId="";this.xt=this.Dz=-1;this.PT=0;this.MW=-1;this.yk=this.nC=!1;this.CK=0;this.u5=!1;this.policy.ym?this.Nm=new De(this,R):this.Nm=new nt(this,R);this.rd=this.policy.mz?h.XF:EaV(h,this.policy,Z);this.rd.set("rn",""+this.kq());this.rd.set("alr","yes");F$1(this.N3,L,
u);this.wf=new gJ(this,this.policy,this.rd,h.D3,this.Nm,this.logger,Z,p,this.policy.enableServerDrivenRequestCancellation);K$n(this.wf);var O;if((O=this.policy)==null?0:O.Bm)g.V(this,this.N3),g.V(this,this.wf);u=h.N;h={method:"POST",body:u};u&&(this.PT=u.length);try{this.xhr=W4(this.rd,this.policy.S,this.Nm,sf,h),this.policy.I3&&Vt(this.Nm,this.VQ()),this.wf.N.start()}catch(f){g.G3(f)}};
knn=function(u){u.policy.Pf&&u.uU&&!u.u5?u.u5=!0:u.Nm.tF()};
gab=function(u,h){var L=-1,Z=-1,y=-1,R;if((R=u.f6)==null?0:R.items)for(u=g.C(u.f6.items),R=u.next();!R.done;R=u.next())R=R.value,h<R.SL||R.SL<L||(L=R.SL,Z=R.PZ,y=R.minReadaheadMs);return{tdA:L,PZ:Z,q8:y}};
uGY=function(u){this.G=u;this.Y=this.vX=this.V=this.DI=this.B=this.T=this.C=this.gw=this.S=this.T7=this.RH=this.XB=this.AB=0;this.ticks={}};
Sy=function(u){u.AB||(u.AB=(0,g.vC)(),iQ("mb_s",u.AB,u.G))};
jWe=function(u){u.XB||(u.XB=(0,g.vC)(),iQ("ovfs_rp",u.XB,u.G))};
hRn=function(u){u.RH||(u.RH=(0,g.vC)(),iQ("oafs_rp",u.RH,u.G))};
L7s=function(u){u.T||(u.T=(0,g.vC)(),iQ("vda",u.T,u.G),u.B&&ux(g.k9(),4))};
Zbf=function(u){u.B||(u.B=(0,g.vC)(),iQ("ada",u.B,u.G),u.T&&ux(g.k9(),4))};
yJe=function(u){u.DI||(u.DI=(0,g.vC)(),iQ("vis_a",u.DI,u.G))};
RRn=function(u){u.V||(u.V=(0,g.vC)(),iQ("ais_a",u.V,u.G))};
pal=function(u){u.vX||(u.vX=(0,g.vC)(),iQ("vrb_f",u.vX,u.G))};
K7L=function(u){u.Y||(u.Y=(0,g.vC)(),iQ("arb_f",u.Y,u.G))};
JJw=function(u,h,L){var Z=h instanceof lE&&!u.X&&!u.N,y=!u.X&&(L==null?void 0:L.info.video);L=!u.N&&(L==null?void 0:L.info.audio);h.state===3?((y||Z)&&u.tick("vrr"),(L||Z)&&u.tick("arr")):h.state===4?y?(u.X=h.VQ(),ux(g.k9(),4)):L&&(u.N=h.VQ()):h instanceof Y0&&h.CX()&&y&&ux(g.k9(),4)};
Obw=function(u){return!!u.N&&!!u.X};
Xd=function(u,h,L,Z,y,R,p){g.yV.call(this);var J=this;this.nI=u;this.PX=h;this.policy=L;this.videoTrack=Z;this.audioTrack=y;this.KZ=p;this.AB=this.G=null;this.T=this.V=NaN;this.S=0;this.Y=NaN;this.C=null;this.gw=this.XB=NaN;this.DI=new Map;this.RH=this.X=this.B=NaN;this.zd={QCi:function(){return J.N}};
this.N=R?1:0};
D8b=function(u,h,L,Z){Z=Z===void 0?!0:Z;if(L&&!u.DI.has(h.yA)){for(var y=h.startTime,R=[],p=0;p<L.G.length;p++){var J=L.G[p],O=y;y=O+L.N[p];R.push({startTime:O,endTime:y,adCpn:J})}u.DI.set(h.yA,R)}if(u.policy.Qs)if(y=u.AB&&h.yA===u.AB.yA+1,u.AB=h,R=u.G&&h.yA===u.G.yA+1,R=u.G&&y&&R&&u.G.gO.event!=="stop"&&u.G.gO.event!=="predictStart",p=h.gO||null,J=u.videoTrack.G.index.Uk(),u.policy.zG&&(J=Math.max(u.videoTrack.G.index.Uk(),u.audioTrack.G.index.Uk())),J=h.yA>=J,O=u.PX.isManifestless&&u.policy.GY,
p){var f;if(((f=u.G)==null?void 0:f.gO.event)==="predictStart"&&u.G.yA<h.yA&&p.event==="stop"){var D;u.nI.handleError("ssdai.missingstartcueevent",{lastpredict:((D=u.G)==null?void 0:D.yA)||0,csq:h.yA},0)}u.G={gO:p,yA:h.yA,WP:!!L,Wr:Z};J?vj(u,p,h.yA):O&&(y?R?vj(u,p,h.yA):p.event==="continue"||p.event==="stop"?fWl(u,h):vj(u,p,h.yA):vj(u,p,h.yA))}else R&&fWl(u,h),u.N===4&&qb(u,5,"qend")};
vj=function(u,h,L){h.startSecs+=isNaN(u.S)?0:u.S;u=u.PX;u.XB.push(h);u.publish("cuepointsadded",L)};
cJi=function(u,h,L){if(u.N!==0&&L&&h.YI[0].Wr()){var Z=h.YI[0].yA,y=h.YI[0].ob;h=h.isDecorated();TN(u,Z,y,h,L)}};
TN=function(u,h,L,Z,y){var R;h!==((R=u.G)==null?void 0:R.yA)||u.N===1||Z||u.G.gO.event==="predictStart"||u.IH("sdai",{undecevt:1,sq:h,mt:L,evt:u.G.gO.event},!0);h>u.T&&(u.T=NaN,u.V=NaN);if(u.G&&u.G.yA===h)if(Z=u.G,!u.policy.iV||y&&Z){var p=Z.gO;R=y.Vn(p);p.event==="predictStart"&&(u.RH=h);u.IH("sdai",{onqevt:p.event,sq:h,mt:L,gab:R,cst:p.startSecs,cueid:u.policy.fM&&(R||p.event==="start")?p.identifier:void 0},!0);if(R)if(p.event!=="predictStart")p.event==="start"&&u.RH===h-1&&u.IH("sdai",{gabonstart:h}),
Z.WP?qb(u,4,"cue"):(u.T=h,u.V=L,u.IH("sdai",{joinad:u.N,sg:u.T,st:u.V.toFixed(3)}),u.Y=Date.now(),qb(u,2,"join"),y.yC(Z.gO));else{var J=h+Math.max(Math.ceil(-p.G/5E3),1);R=Math.floor(L-p.G/1E3);u.policy.T?u.X=R:u.B=J;u.IH("sdai",{onpred:L,estsq:J,estmt:R.toFixed(3)});Y2(u.nI,R,R,J);u.Y=Date.now();qb(u,3,"predict");y.yC(Z.gO)}else u.N===1?((J=u.C)==null?0:J.O5(L))?(Y2(u.nI,L,L,h),qb(u,4,"sk2had")):qb(u,5,"nogab"):p.event==="predictStart"&&(u.policy.T&&u.X>0?(L=Math.floor(L-p.G/1E3),u.X!==L&&u.IH("sdai",
{updateSt:L,old:u.X}),u.X=L):u.B>0&&(L=h+Math.max(Math.ceil(-p.G/5E3),1),u.B!==L&&(u.IH("sdai",{updateSt:L,old:u.B}),u.B=L)));var O,f;if(u.KZ&&p.event==="start"&&((O=u.G)==null?void 0:O.gO.event)!=="predictStart"&&((f=u.G)==null?void 0:f.yA)===h-1){var D;u.IH("sdai",{ovlpst:(D=u.G)==null?void 0:D.gO.event,sq:h})}}else u.IH("sdai",{nulldec:1,sq:h,mt:L.toFixed(3),evt:(Z==null?void 0:(p=Z.gO)==null?void 0:p.event)||"none"});else u.N===1&&qb(u,5,"noad")};
AJs=function(u,h,L){if(u.N===1||u.N===2)return!1;if(u.N!==0&&h===u.audioTrack){if(u.policy.T)return IWw(u.videoTrack,L)||IWw(u.videoTrack,L+1);u=o$(u.videoTrack);if(L>(u?u.yA:-1))return!1}return!0};
Nb=function(u,h,L){return(L<0||L===u.T)&&!isNaN(u.V)?u.V:h};
fWl=function(u,h){if(u.G){var L=u.G.gO.jS-(h.startTime+u.S-u.G.gO.startSecs);L<=0||(L=new N6(u.G.gO.startSecs-(isNaN(u.S)?0:u.S),L,u.G.gO.context,u.G.gO.identifier,"stop",u.G.gO.G+h.duration*1E3),u.IH("cuepointdiscontinuity",{segNum:h.yA}),vj(u,L,h.yA))}};
qb=function(u,h,L){u.N!==h&&(u.IH("sdai",{setsst:h,old:u.N,r:L}),u.N=h)};
UK=function(u,h,L,Z){(Z===void 0?0:Z)?qb(u,1,"seek"):h>0&&Math.abs(h-L)>=5&&u.N===4&&qb(u,5,"sk2t."+h.toFixed(2)+";ct."+L.toFixed(2))};
GN=function(u,h,L){this.audio=u;this.video=h;this.reason=L};
Hj=function(u,h,L){this.G=u;this.reason=h;this.token=L;this.videoId=void 0};
ra=function(u,h,L){g.m.call(this);this.policy=u;this.B=h;this.IH=L;this.X=new Map;this.T=0;this.C=!1;this.G="";this.N=!1};
Bj=function(u,h,L){if(L===void 0?0:L)u.C=!0;++u.T;L=6E4*Math.pow(2,u.T);L=(0,g.vC)()+L;u.X.set(h.info.id,L)};
zN=function(u){for(var h=g.C(u.X.entries()),L=h.next();!L.done;L=h.next()){var Z=g.C(L.value);L=Z.next().value;Z=Z.next().value;Z<(0,g.vC)()&&u.X.delete(L)}return u.X};
x8n=function(u){return u.C&&zN(u).size>0};
mt=function(u,h){u.G!==h&&(u.G=h,u.N=!0)};
POV=function(u,h){var L;h&&(L=g.Fg(u.B.G,function(y){return y.id===h}));
if(!L&&(L=g.Fg(u.B.G,function(y){var R;return!((R=y.tM)==null||!R.isDefault)}),h)){var Z;
u.IH("iaf",{id:h,sid:(Z=L)==null?void 0:Z.id})}return L};
VW=function(u,h,L,Z,y,R){var p=this;R=R===void 0?[]:R;this.nI=u;this.XB=h;this.policy=L;this.PX=Z;this.C=y;this.fI=R;this.logger=new g.F_("dash/abr");this.G=Hu;this.X=this.V=null;this.Y=-1;this.vX=!1;this.nextVideo=this.N=null;this.B=[];this.jd=new Set;this.T7={};this.Sd=new hz(1);this.S=0;this.VA=this.RH=this.AB=!1;this.gw=0;this.ZI=!1;this.DI=new Set;this.aH=!1;this.zd={J_:function(){da(p)}};
this.T=new ra(this.policy,y,function(J,O){p.nI.IH(J,O)})};
lWV=function(u,h,L){n4(u,h);h=POV(u.T,L);L||h||(h=COn(u));h=h||u.C.G[0];u.N=u.PX.G[h.id];da(u);u.V=u.N;M8j(u);iba(u);u.X=u.nextVideo;u.V=u.N;return QWl(u)};
vVb=function(u,h){if(S4R(u,h))return null;if(h.reason==="m"&&h.isLocked())return u.logger.debug(function(){return"User sets constraint to: "+u0(h)}),n4(u,h),u.S=u.B.length-1,da(u),sK(u),u.RH=u.RH||u.X!==u.nextVideo,u.X=u.nextVideo,new GN(u.N,u.X,h.reason);
h.reason==="r"&&(u.Y=-1);n4(u,h);sK(u);if(h.reason==="r"&&u.nextVideo===u.X)return new GN(u.N,u.nextVideo,h.reason);Xae(u);return null};
q4n=function(u,h,L){u.N=u.PX.G[h];u.V=u.N;return new GN(u.V,u.X,L?"t":"m")};
TOj=function(u,h){if(h.info.video){if(u.X!==h)return u.X=h,QWl(u)}else u.VA=u.V!==h,u.V=h;return null};
Y4R=function(u,h){if(h.G.info.video&&h.B){var L=(h.N+h.X)/h.duration,Z=h.G.info.G3;L&&Z&&(u.Sd.mO(1,L/Z),u.policy.X&&L/Z>1.5&&u.nI.IH("overshoot",{sq:h.yA,br:L,max:Z}))}};
wa=function(u,h,L){Bj(u.T,h,L===void 0?!1:L);u.Y=-1;n4(u,u.G)};
oVb=function(u,h){return new GN(u.V,u.X,h||u.G.reason)};
Xae=function(u){if(u.X&&u.nextVideo&&ey(u,u.X.info)<ey(u,u.nextVideo.info)){var h=u.G.reason;u.AB=u.AB||h==="r"||h==="u"||h==="v"}};
QWl=function(u){u.vX?u.vX=!1:u.Y=(0,g.vC)();u.AB=!1;u.aH=!1;return new GN(u.V,u.X,u.G.reason)};
NOb=function(u,h){var L={};h=g.C(h);for(var Z=h.next();!Z.done;Z=h.next())if((Z=Z.value)&&Z.video){var y=Z.video.G,R=L[y],p=R&&wF(R)&&R.video.G>u.policy.aM,J=y<=u.policy.aM?wF(Z):nA(Z);if(!R||p||J)L[y]=Z}return L};
n4=function(u,h){u.G=h;var L=u.C.videoInfos;if(!u.G.isLocked()){var Z=(0,g.vC)();L=g.KN(L,function(J){if(J.G3>this.policy.G3)return!1;var O=this.PX.G[J.id];return zN(this.T).get(J.id)>Z?!1:O.D3.N>4||O.C>4?(this.logger.debug(function(){return"Remove "+gF(J)+"; 4 load failures"}),!1):this.DI.has(+J.itag)?!1:!0},u);
x8n(u.T)&&(L=g.KN(L,function(J){return J.video.width<=854&&J.video.height<=480}))}L.length||(L=u.C.videoInfos);
var y=L;u.policy.aC&&(y=U8i(u,y,h));y=g.KN(y,h.B,h);if(u.G.isLocked()&&u.T.G){var R=g.Fg(L,function(J){return J.id===u.T.G});
R?y=[R]:mt(u.T,"")}u.policy.aC||(y=U8i(u,y,h));y.length||(y=[L[0]]);y.sort(function(J,O){return ey(u,J)-ey(u,O)});
h={};for(L=1;L<y.length;h={v9:void 0,Qr:void 0},L++)h.Qr=y[L-1],h.v9=y[L],h.Qr.video.width>h.v9.video.width?(g.kD(y,L),L--):ey(u,h.Qr)*u.policy.Y>ey(u,h.v9)&&(g.kD(y,L-1),L--);var p=y[y.length-1];u.ZI=!!u.X&&!!u.X.info&&u.X.info.QA!==p.QA;u.logger.debug(function(){return"Constraint: "+u0(u.G)+", "+y.length+" fmts selectable, max selectable fmt: "+gF(p)});
u.B=y;u.jd.clear();h=!1;for(L=0;L<y.length;L++)h?u.jd.add(y[L].itag):y[L].video.G>=1080&&(h=!0);G5f(u.policy,p,u.PX.bP)};
U8i=function(u,h,L){var Z=L.reason==="m"||L.reason==="s";u.policy.RJ&&a$&&g.PC&&(!Z||L.G<1080)&&(h=h.filter(function(f){return f.video&&(!f.N||f.N.powerEfficient)}));
if(h.length>0)if(fl()){var y=NOb(u,h);h=h.filter(function(f){return!!f&&!!f.video&&f.QA===y[f.video.G].QA})}else{var R,p,J=(R=h[0])==null?void 0:(p=R.video)==null?void 0:p.G;
if(J){L=h.filter(function(f){return!!f&&!!f.video&&f.video.G===J});
var O=NOb(u,L)[J].QA;h=h.filter(function(f){return!!f&&!!f.video&&f.QA===O})}}return h};
Hbe=function(u,h){for(var L=0;L+1<u.B.length&&u.B[L].video.quality==="tiny";)L++;var Z=Qt(u.XB)/u.policy.Y;return ey(u,h.info)+ey(u,u.B[L])>Z};
da=function(u){if(!u.N||!u.policy.B&&!u.N.info.tM){var h=u.C.G;u.N&&(h=h.filter(function(Z){return Z.audio.G===u.N.info.audio.G}),h.length||(h=u.C.G));
u.N=u.PX.G[h[0].id];if(h.length>1){if(u.policy.zy){if(u.policy.wm)return;var L=g.Fg(h,function(Z){return Z.audio.audioQuality!=="AUDIO_QUALITY_HIGH"});
L&&(u.N=u.PX.G[L.id])}L=!1;if(L=u.policy.XN?!0:u.G.isLocked()?u.G.G<240:Hbe(u,u.N))u.N=u.PX.G[g.tu(h).id]}}};
sK=function(u){if(!u.nextVideo||!u.policy.B)if(u.G.isLocked())u.nextVideo=u.G.G<=360?u.PX.G[u.B[0].id]:u.PX.G[g.tu(u.B).id],u.logger.debug(function(){return"Select max fmt: "+gF(u.nextVideo.info)});
else{for(var h=Math.min(u.S,u.B.length-1),L=Qt(u.XB),Z=ey(u,u.N.info),y=L/u.policy.AB-Z;h>0&&!(ey(u,u.B[h])<=y);h--);for(var R=L/u.policy.Y-Z;h<u.B.length-1&&!(ey(u,u.B[h+1])>=R);h++);u.nextVideo=u.PX.G[u.B[h].id];u.S!==h&&u.logger.info(function(){return"Adapt to: "+gF(u.nextVideo.info)+", bandwidth: "+L.toFixed(0)+", bandwidth to downgrade: "+y.toFixed(0)+", bandwidth to upgrade: "+R.toFixed(0)+", constraint: "+u0(u.G)});
u.S=h}};
M8j=function(u){var h=u.policy.AB,L=Qt(u.XB),Z=L/h-ey(u,u.N.info);h=g.b3(u.B,function(y){return ey(this,y)<Z},u);
h<0&&(h=0);u.S=h;u.nextVideo=u.PX.G[u.B[h].id];u.logger.info(function(){return"Initial selected fmt: "+gF(u.nextVideo.info)+", bandwidth: "+L.toFixed(0)+", max video byterate: "+Z.toFixed(0)})};
iba=function(u){if(u.fI.length){var h=u.fI,L=function(Z,y){if(Z.info.QA==="f"||h.includes(xV(g.Fo(Z.info,u.PX.bP))))return Z;for(var R={},p=0;p<y.length;R={Wu:void 0,dF:void 0},p++){var J=u.PX.G[y[p].id];if(h.includes(xV(g.Fo(J.info,u.PX.bP)))){var O=Z.info.QA,f=J.info.QA;if(O===f||fl()){if(Z.info.G!==J.info.G)return u.nI.IH("ombifa",{mismatch:"xtag",f:Z.info.id,t:J.info.id}),Z;R.Wu=Z.info.itag;R.dF=J.info.itag;u.nI.IH("ombifa",{f:R.Wu,t:R.dF});u.logger.info(function(D){return function(){return"Initial format selection changed from "+
D.Wu+" to "+D.dF+" based on prefetched media."}}(R));
u.vX=!0;return J}u.nI.IH("ombifa",{mismatch:"efficient",fc:O,tc:f})}}u.nI.IH("ombifa",{mismatch:"unselectable",fmts:h.join(".")});return Z};
u.nextVideo=L(u.nextVideo,u.C.videoInfos);u.N=L(u.N,u.C.G)}};
ey=function(u,h){if(!u.T7[h.id]){var L=u.PX.G[h.id].index.Hy(u.gw,15);L=h.DR&&u.X&&u.X.index.isLoaded()?L||h.DR:L||h.G3;u.T7[h.id]=L}L=u.T7[h.id];u.jd.has(h.itag)&&(L*=1.5);return L*=Math.max(1,u.Sd.NO()||0)};
rJY=function(u,h){u=$MY(u.PX.G,function(L){return L.info.itag===h});
if(!u)throw Error("Itag "+h+" from server not known.");return u};
BOn=function(u){var h=[];if(u.G.reason==="m"||u.G.reason==="s")return h;if(BMi(u.PX)){for(var L=Math.max(0,u.S-2);L<u.S&&L<u.B.length;L++)h.push(u.B[L].itag);h.reverse()}return h};
S4R=function(u,h){var L;return u.G.ys(h)&&(!u.T.G||!u.G.isLocked()||((L=u.nextVideo)==null?void 0:L.info.id)===u.T.G)};
COn=function(u){var h=g.Fg(u.C.G,function(Z){return Z.audio.G}),L=g.Fg(u.C.G,function(Z){return!Z.audio.G});
return h?u.policy.EZ?h:L:null};
zRb=function(u){var h=u===void 0?{}:u;u=h.vx===void 0?!1:h.vx;var L=h.yI===void 0?!1:h.yI;h=h.va===void 0?!1:h.va;return u?h?3:2:L?-1:1};
$2=function(u){this.track=u;this.buffered=[];this.X=this.B=0;this.C={};this.T=0;this.G=new u9};
m8V=function(u,h,L){u.flush();u.N=L;tO(u,3,h)};
tO=function(u,h,L){var Z=[],y=u.track.EU;if(y){y=y.QQ();for(var R=0;R<y.length;R++)Z.push(Math.round(y.start(R)*1E3)),Z.push(Math.round(y.end(R)*1E3))}y=1;R=Z.length;if(R===u.buffered.length){for(var p=0;p<=R&&Z[p]===u.buffered[p];p++);p>R?y=0:Z[p]>u.buffered[p]&&(p===R-1?y=2:p===R-2&&Z[p+1]>u.buffered[p+1]&&(y=3))}u.G.add(h<<3|(L&&4)|y);h=Math.ceil(u.track.xz()*1E3);u.G.add(h-u.T);u.T=h;if(y===1)for(u.G.add(R),p=h=0;p<R;p++)u.G.add(Z[p]-h),h=Z[p];y===3&&u.G.add(Z[R-2]-u.buffered[R-2]);y>=2&&u.G.add(Z[R-
1]-u.buffered[R-1]);L&&u.G.add(L);u.buffered=Z};
Wj=function(u,h,L){var Z=this;this.policy=u;this.G=h;this.gw=L;this.B=this.N=0;this.nB=null;this.AB=new Set;this.Y=[];this.indexRange=this.initRange=null;this.S=new aA;this.RH=this.XB=!1;this.zd={ivI:function(){return Z.X},
N6g:function(){return Z.chunkSize},
m9a:function(){return Z.V},
x9A:function(){return Z.C}};
(h=d8s(this))?(this.chunkSize=h.csz,this.X=Math.floor(h.clen/h.csz),this.V=h.ck,this.C=h.civ):(this.chunkSize=u.zW,this.X=0,this.V=g.ig(16),this.C=g.ig(16));this.T=new Uint8Array(this.chunkSize);this.V&&this.C&&(this.crypto=new Fl1(this.V,this.C))};
d8s=function(u){if(u.policy.Cr&&u.policy.KT)for(var h=g.C(u.policy.Cr),L=h.next(),Z={};!L.done;Z={H9:void 0,NW:void 0},L=h.next())if(L=g.LP(L.value),Z.H9=+L.clen,Z.NW=+L.csz,Z.H9>0&&Z.NW>0&&u.policy.B===L.docid&&u.G.info.id===L.fmtid&&u.G.info.lastModified===+L.lmt)return u={},u.clen=Z.H9,u.csz=Z.NW,u.ck=L.ck,u.civ=L.civ,u};
Fd=function(u){return!!u.nB&&u.nB.iW()};
sWY=function(u,h){if(!Fd(u)&&!u.ww()){if(!(u.XB||(u.XB=!0,u.X>0))){var L=bE(u);L=Xu(u.policy.B,u.G.info,EK(u),L,u.policy.fI);k2(u,L)}if(h.info.type===1){if(u.nB){uf(u,Error("Woffle: Expect INIT slices to always start us off"));return}u.initRange=iO(0,h.G.getLength())}else if(h.info.type===2)u.nB&&u.nB.type===1||uf(u,Error("Woffle: Index before init")),u.indexRange=iO(u.initRange.end+1,h.G.getLength());else if(h.info.type===3){if(!u.nB){uf(u,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(u.nB.type===3&&!va(u.nB,h.info)&&(u.Y=[],h.info.yA!==q8(u.nB)||h.info.N!==0))return;if(h.info.B){L=g.C(u.Y);for(var Z=L.next();!Z.done;Z=L.next())V8e(u,Z.value);u.Y=[]}else{u.Y.push(h);u.nB=h.info;return}}else{uf(u,Error("Woffle: Unexpected slice type"));return}u.nB=h.info;V8e(u,h);nVn(u)}};
V8e=function(u,h){var L=0,Z=h.G.oF();if(u.B<u.X){L=u.X*u.chunkSize;var y,R=(((y=h.info.range)==null?void 0:y.start)||0)+h.info.N;L-=R;if(L>=Z.length)return;if(L<0)throw Error("Missing data");u.B=u.X;u.N=0}for(y={};L<Z.length;y={Iy:void 0})if(y.Iy=Math.min(Z.length-L,u.T.byteLength-u.N),R=new Uint8Array(Z.buffer,Z.byteOffset+L,y.Iy),u.T.set(R,u.N),u.N+=y.Iy,L+=y.Iy,u.N===u.T.length){if(h.info===u.nB&&Fd(u)&&L===Z.length)break;y=bE(u);y=Xu(u.policy.B,u.G.info,EK(u),y,u.policy.fI,u.B,u.T,u.crypto);u.AB.add(y);
k2(u,y);u.ww()||(y=bE(u),u.gw(EK(u),y!==void 0?(y.downloadedEndTime||0)*y.averageByteRate:y.maxKnownEndTime*y.averageByteRate,y.maxKnownEndTime*y.averageByteRate));u.T=new Uint8Array(u.chunkSize);u.N=0;u.B+=1}};
nVn=function(u){if(Fd(u))if(u.nB&&u.indexRange)if(u.N){var h=new Uint8Array(u.T.buffer,0,u.N),L=wae(u),Z=u.policy.B;Promise.all(u.AB).then(function(){var y=Xu(Z,u.nB.G.info,EK(u,!0),L,u.policy.fI,u.B,h,u.crypto);k2(u,y,!0)})}else uf(u,new jg("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else uf(u,new jg("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
bE=function(u){return{downloadedEndTime:Math.round(u.nB?u.nB.pZ:0),maxKnownEndTime:Math.round(u.G.index.fA()),averageByteRate:Math.round(u.G.info.DR)}};
wae=function(u){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(u.G.index.fA()),averageByteRate:Math.round(u.G.info.DR)}};
EK=function(u,h){h===void 0||!h||u.indexRange&&u.initRange&&u.nB||uf(u,new jg("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));h={lmt:u.G.info.lastModified,docid:u.policy.B,fmtid:u.G.info.id,type:u.G.info.mimeType.split(";")[0],csz:u.chunkSize,clen:u.B*u.chunkSize+u.N};u.crypto&&(h.ck=u.V,h.civ=u.C);var L="local://localhost/videoplayback?"+uA(h),Z,y;h={itag:+u.G.info.itag,mimeType:u.G.info.mimeType,bitrate:u.G.info.G3*8,lastModified:String(u.G.info.lastModified),initRange:(Z=
u.initRange)==null?void 0:VXb(Z),indexRange:(y=u.indexRange)==null?void 0:VXb(y),url:L};if(Z=u.G.info.G)h.xtags=Z;if(Z=u.G.info.video)if(h.quality=Z.quality,h.qualityLabel=Z.qualityLabel,h.width=Z.width,h.height=Z.height,Z=Z.fps)h.fps=Z;if(u=u.G.info.audio){if(Z=u.sampleRate)h.audioSampleRate=String(Z);if(u=u.numChannels)h.audioChannels=u}return h};
k2=function(u,h,L){L=L===void 0?!1:L;h.then(function(Z){u.AB.delete(h);(L||Z===4)&&u.S.resolve(Z)},function(Z){u.S.reject(Z)})};
uf=function(u,h){g.it(u.policy.B)!==4&&(g.Q1(u.policy.B,4),g.G3(h),u.S.reject(new jg(h.message)))};
jg=function(u,h){u=Error.call(this,u);this.message=u.message;"stack"in u&&(this.stack=u.stack);this.G=h===void 0?!1:h};
eRi=function(u){u=g.a3(u,1886614376);for(var h=g.C(u),L=h.next();!L.done;L=h.next());return g.Xx(u,function(Z){return fqj(Z)})};
aWn=function(u){var h=qR(u,function(y,R){return y+R.length},0);
h=new Uint8Array(h);var L=0;u=g.C(u);for(var Z=u.next();!Z.done;Z=u.next())Z=Z.value,h.set(Z,L),L+=Z.length;return h};
$81=function(u,h,L,Z,y,R){this.ids=u;this.G=h;this.N=L;this.B=Z;this.X=y;this.Fm=R};
hh=function(u,h,L){this.initData=u;this.contentType=h;this.isPrefetch=L;this.G=this.cryptoPeriodIndex=NaN;this.X=[];this.d1=!1;this.N=null;if((h==null?void 0:h.toLowerCase())==="webm"||u.length===16)this.d1=!0};
W7a=function(u){a:{var h=u.initData;try{for(var L=0,Z=new DataView(h.buffer);L<Z.byteLength-8;){var y=Z.getUint32(L);if(y<=1)break;if(Z.getUint32(L+4)===1886614376){var R=32;if(Z.getUint8(L+8)>0){var p=Z.getUint32(L+28);R+=p*16+4}var J=Z.getUint32(L+R-4);try{var O=t8f(h.subarray(L+R,L+R+J));if(O!==null){var f=O;break a}}catch(D){}}L+=y}f=null;break a}catch(D){f=null;break a}f=void 0}if(f!=null)for(h=Dj(mH(f,7)),h==null||u.d1||(u.cryptoPeriodIndex=h),h=Dj(mH(f,10)),h!=null&&h>0&&!u.d1&&(u.G=h),f=$t(f,
2,iwe,void 0===SVw?2:4),f=g.C(f),h=f.next();!h.done;h=f.next())u.X.push(g.Mk(Ye(h.value),4))};
F7L=function(u){return isNaN(u.cryptoPeriodIndex)?g.Mk(u.initData):""+u.cryptoPeriodIndex};
LR=function(u,h,L){var Z=L===void 0?{}:L;L=Z.videoDuration===void 0?0:Z.videoDuration;var y=Z.v2===void 0?void 0:Z.v2;Z=Z.Wi===void 0?!1:Z.Wi;this.videoId=u;this.status=h;this.videoDuration=L;this.v2=y;this.Wi=Z};
bbi=function(u,h,L,Z,y){this.videoId=u;this.U5=h;this.N=L;this.bytesDownloaded=Z;this.G=y};
Z4=function(u){this.G=u;this.offset=0};
yH=function(u){if(u.offset>=u.G.getLength())throw Error();return u.G.getUint8(u.offset++)};
EVY=function(u,h){h=h===void 0?!1:h;var L=yH(u);if(L===1){h=-1;for(L=0;L<7;L++){var Z=yH(u);h===-1&&Z!==255&&(h=0);h>-1&&(h=h*256+Z)}return h}Z=128;for(var y=0;y<6&&Z>L;y++)L=L*256+yH(u),Z*=128;return h?L:L-Z};
k5i=function(u){try{var h=EVY(u,!0),L=EVY(u,!1);return{id:h,size:L}}catch(Z){return{id:-1,size:-1}}};
gVf=function(u){for(var h=new Z4(u),L=-1,Z=0,y=0;!Z||!y;){var R=k5i(h),p=R.id;R=R.size;if(p<0)return;if(p===176){if(R!==2)return;Z=h.oQ()}else if(p===186){if(R!==2)return;y=h.oQ()}p===374648427?L=h.oQ()+R:p!==408125543&&p!==174&&p!==224&&h.skip(R)}h=Mj(u,0,L);L=new DataView(h.buffer);L.setUint16(Z,3840);L.setUint16(y,2160);Z=new It([h]);AC(Z,u);return Z};
uSV=function(u,h,L){var Z=this;this.nI=u;this.policy=h;this.C=L;this.logger=new g.F_("dash");this.N=[];this.G=null;this.XB=-1;this.Y=0;this.DI=NaN;this.AB=0;this.X=NaN;this.S=this.vX=0;this.ZI=-1;this.T7=this.T=this.B=this.gw=null;this.Sd=this.VA=NaN;this.V=this.RH=this.jd=this.fI=null;this.xl=!1;this.aH=this.timestampOffset=0;this.zd={YQ:function(){return Z.N}};
if(this.policy.B){var y=this.C,R=this.policy.B;this.policy.fI&&u.IH("atv",{ap:this.policy.fI});this.V=new Wj(this.policy,y,function(p,J,O){RX(u,new LR(Z.policy.B,2,{v2:new bbi(R,p,y.info,J,O)}))});
this.V.S.promise.then(function(p){Z.V=null;p===1?RX(u,new LR(Z.policy.B,p)):Z.nI.IH("offlineerr",{status:p.toString()})},function(p){var J=(p.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
p instanceof jg&&!p.G?(Z.logger.info(function(){return"Assertion failed: "+J}),Z.nI.IH("offlinenwerr",{em:J}),pR(Z),RX(u,new LR(Z.policy.B,4))):(Z.logger.info(function(){return"Failed to write to disk: "+J}),Z.nI.IH("dldbwerr",{em:J}),pR(Z),RX(u,new LR(Z.policy.B,4,{Wi:!0})))})}};
jVw=function(u){return u.N.length?u.N[0]:null};
h2e=function(u,h){return u.N.some(function(L){return L.info.yA===h})};
pWl=function(u,h,L,Z){Z=Z===void 0?0:Z;if(u.T){var y=u.T.N+u.T.X;if(L.info.N>0)if(L.info.yA===u.T.yA&&L.info.N<y){if(L.info.N+L.info.X<=y)return;L=cq1(L,y-L.info.N)[1]}else if(L.info.yA>=0&&u.T.yA>=0&&!va(u.T,L.info))throw new g.aO("improper_continuation",u.T.M1(),L.info.M1());e6L(u.T,L.info)||KR(u,"d")}else if(L.info.N>0)throw new g.aO("continuation_of_null",L.info.M1());u.T=L.info;u.C=L.info.G;if(L.info.N===0){if(u.G)if(!u.nI.isOffline()||u.policy.MG)u.nI.IH("slice_not_fully_processed",{buffered:u.G.info.M1(),
push:L.info.M1()});else throw new g.aO("slice_not_fully_processed",u.G.info.M1(),L.info.M1());Jh(u);u.vX=Z}else{if(u.vX&&Z&&u.vX!==Z)throw u=new g.aO("lmt_mismatch",L.info.yA,u.vX,Z),u.level="WARNING",u;!L.info.G.qJ()&&u.B&&(Z=L.info,y=u.B.Dz,Z.T="updateWithEmsg",Z.yA=y)}if(u.G){Z=g.e8(u.G,L);if(!Z)throw new g.aO("failed_to_merge",u.G.info.M1(),L.info.M1());u.G=Z}else u.G=L;a:{L=g.$6(u.G.info.G.info);if(u.G.info.type!==3){if(!u.G.info.B)break a;u.G.info.type===6?LkR(u,h,u.G):ZSY(u,u.G);u.G=null}for(;u.G;){Z=
u.G.G.getLength();if(u.XB<=0&&u.Y===0){var R=u.G.G,p=-1;y=-1;if(L){for(var J=0;J+8<R.getLength();){var O=GtL(R,J),f=GtL(R,J+4);J+=O||1;if(f===1836019558)p=J;else if(f===1835295092){y=J;break}}y<0&&(p=-1)}else{R=new Z4(R);for(O=J=!1;;){f=R.oQ();var D=k5i(R),c=D.id;D=D.size;if(!(c>0))break;if(c!==408125543)if(c===524531317)J=!0,D>=0&&(y=R.oQ()+D,O=!0);else{if(J&&(c===160||c===163)&&(p<0&&(p=f),O))break;c===163&&(p=Math.max(0,p),y=R.oQ()+D);if(c===160){p<0&&(y=p=R.oQ()+D);break}R.skip(D)}}p<0&&(y=-1)}if(p<
0)break;u.XB=p;u.Y=y-p}if(u.XB>Z)break;u.XB?(Z=y3n(u,u.XB),Z.T&&R2j(u,Z),LkR(u,h,Z),Oa(u,Z),u.XB=0):u.Y&&(Z=y3n(u,u.Y<0?Infinity:u.Y),u.Y-=Z.G.getLength(),Oa(u,Z))}}u.G&&u.G.info.B&&(Oa(u,u.G),u.G=null)};
ZSY=function(u,h){!h.info.G.qJ()&&h.info.N===0&&(g.$6(h.info.G.info)||h.info.G.info.d1())&&MiL(h);if(h.info.type===1)try{R2j(u,h),Kks(u,h)}catch(y){g.UZ(y);var L=T5(h.info);L.hms="1";u.nI.handleError("fmt.unparseable",L||{},1)}L=h.info.G;L.jl(h);u.V&&sWY(u.V,h);if(L.c_()&&u.policy.G)a:{u=u.nI.PX;h=h.info.clipId;L=g.Fo(L.info,u.bP);if(h){var Z=zTn(u,L);if(u.aH[Z])break a;u.aH[Z]=h}u.T7.push(L)}};
r_n=function(u,h,L){if(u.N.length!==0&&(L||u.N.some(function(R){return R.info.ob<h}))){L=0;
for(var Z=g.C(u.N),y=Z.next();!y.done;y=Z.next()){y=y.value;if(y.info.ob<h)break;u.nI.IH("cmat",{max:h,s:y.info.M1()});L+=1}u.N.splice(0,L)}};
pR=function(u){var h;(h=u.V)==null||h.dispose();u.V=null};
J3s=function(u){var h=u.N.reduce(function(L,Z){return L+Z.G.getLength()},0);
u.G&&(h+=u.G.G.getLength());return h};
OSj=function(u){if(u.RH&&!u.policy.Ss){var h=u.nI;h.PX.isManifestless&&IV(h.PX,u.RH.yA,!!u.C.info.video)}u.RH=null;u.B=null;u.T=u.fI;u.X=u.T?u.X-u.AB:NaN;Jh(u)};
y3n=function(u,h){var L=u.G;h=Math.min(h,L.G.getLength());if(h===L.G.getLength())return u.G=null,L;L=cq1(L,h);u.G=L[1];return L[0]};
R2j=function(u,h){h.G.getLength();var L=h.Bh();if(sN(h.info.G.info)&&h.info.G.info.video.primaries==="bt2020"){var Z=new $a(L);WQ(Z,[408125543,374648427,174,224,21936,21937])&&(Z=Z.start+Z.pos,L.getUint8(Z)===129&&L.getUint8(Z+1)===1&&L.setUint8(Z+1,9))}Z=h.info.G.info;nA(Z)&&!sN(Z)&&(Z=h.Bh(),(new $a(Z)).Gw(),ka([408125543,374648427,174,224],21936,Z));h.info.G.info.Wr()&&(Z=h.info.G,Z.info&&Z.info.video&&Z.info.video.projectionType==="MESH"&&!Z.N&&(g.$6(Z.info)?Z.N=Qnf(L):Z.info.d1()&&(Z.N=YNi(L))));
h.info.G.info.d1()&&h.info.Wr()&&(L=h.Bh(),(new $a(L)).Gw(),ka([408125543,374648427,174,224],30320,L)&&ka([408125543,374648427,174,224],21432,L));if(u.policy.vY&&h.info.G.info.d1()){L=h.Bh();var y=new $a(L);if(WQ(y,[408125543,374648427,174,29637])){Z=E5(y,!0);y=y.start+y.pos;for(var R=0;R<Z-1;R++)L.setUint8(y+R,0);L.setUint8(y+Z-1,1)}}if(u.GD()&&g.$6(h.info.G.info)){Z=h.Bh();L=g.BQ(Z,0,1701606260);R=g.BQ(Z,0,1836476516);if(L&&R){L.skip(2);var p=XD(L),J=q6(L);Z=[];y=[];var O=[],f=[];if(p)for(p=0;p<
J;++p)Z.push(Tn(L)),y.push(Tn(L)),O.push(XD(L)),f.push(XD(L));else for(p=0;p<J;++p)Z.push(vQ(L)),y.push(vQ(L)),O.push(XD(L)),f.push(XD(L));L=g.zn(R);L=new CZf(y[0]/L,Z[0]/L)}else L=null;if(L){if(g.$6(h.info.G.info))for(Z=h.Bh(),y=g.BQ(Z,0,1701082227);y;)R=y,R.type=1936419184,R.data.setUint32(R.offset+4,1936419184),y=g.BQ(Z,y.offset+y.size,1701082227);u.xl=!0;h.info.G.B=L}}h.info.G.qJ()||h.info.G.G||h.info.G.indexRange||Wa(h)};
LkR=function(u,h,L){if(L.info.G.qJ()){if(u.xl&&fps(L)&&(h=L.Bh(),h=g.BQ(h,0,1953658222))){h.skip(1);var Z=S5(h)<<16|XD(h),y=Z&1,R=Z&4;if(Z&256){var p=Z&512,J=Z&1024;Z&=2048;var O=q6(h);O<2||(y&&h.skip(4),R&&h.skip(4),y=q6(h),h.skip((O-1)*(4+(p?4:0)+(J?4:0)+(Z?4:0))-4),h.data.setUint32(h.offset+h.G,y))}}if(h=u.gw&&!!u.gw.C.B)if(h=L.info.Wr())h=Pze(L),p=u.gw,fR?(J=1/h,h=D4(u,h)>=D4(p)+J):h=u.getDuration()>=p.getDuration(),h=!h;h&&fps(L)&&(h=u.gw,fR?(J=Pze(L),p=1/J,J=D4(u,J),h=D4(h)+p-J):h=h.getDuration()-
u.getDuration(),h=1+h/L.info.duration,iAj(L.Bh(),h))}else{p=!1;u.B||(MiL(L),L.N&&(u.B=L.N,p=!0,R=L.info,Z=L.N.Dz,R.T="updateWithEmsg",R.yA=Z,R=L.N,R.iW&&(Z=u.C.index,Z.N=!R.iW,Z.X="emsg"),R=L.info.G.info,Z=L.Bh(),g.$6(R)?e5(Z,1701671783):R.d1()&&ka([408125543],307544935,Z)));a:if((R=tJ(L,u.policy.eq))&&Czi(L))J=Dcw(u,L),u.S+=J,R-=J,u.AB+=R,u.X=u.policy.z2?u.X+R:NaN;else{if(u.policy.FH){if(Z=O=u.nI.fm(g.aW(L),1),u.X>=0&&L.info.type!==6){if(u.policy.z2&&isNaN(u.VA)){g.G3(new g.aO("Missing duration while processing previous chunk",
L.info.M1()));u.nI.isOffline()&&!u.policy.MG||c3f(u,L,Z);KR(u,"m");break a}var f=O-u.X,D=f-u.S,c=L.info.yA,I=u.T7?u.T7.yA:-1,A=u.Sd,x=u.VA,Q=u.policy.l7&&f>u.policy.l7,S=Math.abs(D)>10,v=Math.abs(u.X-Z)<1E-7;if(Math.abs(D)>1E-4){u.aH+=1;var T=(y=u.B)==null?void 0:HQ(y);y={audio:""+ +u.GD(),sq:c.toFixed(),sliceStart:O,lastSq:I.toFixed(),lastSliceStart:A,lastSliceDuration:x,totalDrift:(f*1E3).toFixed(),segDrift:(D*1E3).toFixed(),skipRewrite:""+ +(Q||S)};if(T==null?0:T.length)y.adCpn=T[0];u.nI.handleError("qoe.avsync",
y);u.ZI=c}Q||S||v||(Z=u.X);y=Dcw(u,L,O);R-=y;u.S=f+y;u.policy.X&&(D&&!v||y)&&(f=(J=u.B)==null?void 0:HQ(J),u.nI.IH("discontinuityRewrite",{adCpn:(f==null?0:f.length)?f.join("."):"",itag:L.info.G.info.itag,sq:L.info.yA,originalStartTime:O,rewrittenStartTime:Z,startTimeAdjustment:Z-O,segDrift:(D*1E3).toFixed(),originalDuration:R+y,rewrittenDuration:R,durationAdjustment:y}))}}else Z=isNaN(u.X)?L.info.startTime:u.X;c3f(u,L,Z)&&(u.AB+=R,u.X=Z+R,u.policy.gW&&u.aH>=u.policy.gW&&(u.aH=0,u.nI.D2({resetForRewrites:"count"})))}u.T7=
L.info;u.VA=$V(L);L.X>=0&&(u.Sd=L.X);if(p&&u.B){p=IpR(u,!0);YV(L.info,p);u.G&&YV(u.G.info,p);h=g.C(h);for(J=h.next();!J.done;J=h.next())J=J.value,y=void 0,u.policy.C&&J.yA!==((y=u.B)==null?void 0:y.Dz)||YV(J,p);(L.info.B||u.G&&u.G.info.B)&&L.info.type!==6||(u.RH=p,u.policy.Sd?(h=A3n(u.B),u.nI.Nq(u.C,p,h)):(h=u.nI,h.PX.isManifestless&&xcY(h,p,null,!!u.C.info.video)),u.policy.Qs||PG1(u))}}Kks(u,L);u.timestampOffset&&Aqw(L,u.timestampOffset)};
Oa=function(u,h){if(h.info.B){u.fI=h.info;if(u.B){var L=u.B,Z=IpR(u,!1);L=A3n(L);u.nI.Nq(u.C,Z,L);u.RH||u.policy.Qs||PG1(u);u.RH=null}Jh(u)}u.V&&sWY(u.V,h);if(Z=u.gH())if(Z=g.e8(Z,h,u.policy.Wp)){u.N.pop();u.N.push(Z);return}u.N.push(h)};
A3n=function(u){if(u.WP()){var h=u.data["Stitched-Video-Id"]?u.data["Stitched-Video-Id"].split(",").slice(0,-1):[],L=HQ(u),Z=[];if(u.data["Stitched-Video-Duration-Us"])for(var y=g.C(u.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),R=y.next();!R.done;R=y.next())Z.push((Number(R.value)||0)/1E6);y=[];if(u.data["Stitched-Video-Start-Frame-Index"]){R=g.C(u.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var p=R.next();!p.done;p=R.next())y.push(Number(p.value)||0)}y=[];
if(u.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(R=g.C(u.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),p=R.next();!p.done;p=R.next())y.push((Number(p.value)||0)/1E6);u=new $81(h,L,Z,y,g.xKw(u),g.PZf(u))}else u=null;return u};
Jh=function(u){u.G=null;u.XB=-1;u.Y=0;u.B=null;u.DI=NaN;u.AB=0;u.RH=null};
KR=function(u,h){h={rst4disc:h,cd:u.S.toFixed(3),sq:u.T7?u.T7.yA:-1};u.X=NaN;u.S=0;u.ZI=-1;u.T7=null;u.Sd=NaN;u.VA=NaN;u.jd=null;u.nI.IH("mdstm",h)};
Kks=function(u,h){if(u.C.info.ji){if(h.info.G.info.d1()){var L=new $a(h.Bh());if(WQ(L,[408125543,374648427,174,28032,25152,20533,18402])){var Z=E5(L,!0);L=Z!==16?null:hJ(L,Z)}else L=null;Z="webm"}else h.info.V=eRi(h.Bh()),L=aWn(h.info.V),Z="cenc";L&&L.length&&(L=new hh(L,Z),u.policy.Xm&&g.$6(h.info.G.info)&&(Z=qNi(h.Bh()))&&(L.N=Z),L.d1=h.info.G.info.d1(),h.N&&h.N.cryptoPeriodIndex&&(L.cryptoPeriodIndex=h.N.cryptoPeriodIndex),h.N&&h.N.N&&(L.G=h.N.N),u.nI.W8(L))}};
PG1=function(u){var h=u.B,L=Iqn(h);L&&(L.startSecs+=u.DI,u.nI.Uz(u.C,L,h.Dz,h.WP()))};
IpR=function(u,h){var L,Z=u.B;if(L=Iqn(Z))L.startSecs+=u.DI;var y=u.DI;u=h?Z.AS:u.AB;var R=Z.WP()?2:1;return new i0(Z.Dz,y,u,Z.ingestionTime,"sq/"+Z.Dz,void 0,void 0,h,L,R)};
c3f=function(u,h,L){if(!IIY(h,L))return h=T5(h.info),h.smst="1",u.nI.handleError("fmt.unparseable",h||{},1),!1;isNaN(u.DI)&&(u.DI=L);return!0};
Dcw=function(u,h,L){var Z=0;if(h.info.G.info.d1()&&!Czi(h))return 0;if(u.gw&&!u.GD()){var y=0;L&&g.$6(h.info.G.info)?y=L-u.X:h.info.G.info.d1()&&(y=u.S);var R=h.info.yA;L=tJ(h,u.policy.eq);var p=u.gw;var J=p.ZI;p=p.S;var O=Math.abs(p-y)>.02;if((R===J||R>J&&R>u.ZI)&&O){Z=Math.max(.95,Math.min(1.05,(L-(p-y))/L));if(g.$6(h.info.G.info))iAj(h.Bh(),Z);else if(h.info.G.info.d1()&&(R=y-p,!g.$6(h.info.G.info)&&(h.info.G.info.d1(),Z=new $a(h.Bh()),J=h.T?Z:new $a(new DataView(h.info.G.G.buffer)),tJ(h,!0)))){var f=
R*1E3,D=ZW(J);J=Z.pos;Z.pos=0;if(Z.G.getUint8(Z.pos)===160||yB(Z))if(b0(Z,160))if(E5(Z,!0),b0(Z,155)){if(R=Z.pos,O=E5(Z,!0),Z.pos=R,f=f*1E9/D,D=gt(Z),f=D+Math.max(-D*.7,Math.min(D,f)),f=Math.sign(f)*Math.floor(Math.abs(f)),!(Math.ceil(Math.log(f)/Math.log(2)/8)>O)){Z.pos=R+1;for(R=O-1;R>=0;R--)Z.G.setUint8(Z.pos+R,f&255),f>>>=8;Z.pos=J}}else Z.pos=J;else Z.pos=J;else Z.pos=J}Z=tJ(h,u.policy.eq);Z=L-Z}Z&&h.info.G.info.d1()&&u.nI.IH("webmDurationAdjustment",{durationAdjustment:Z,videoDrift:y+Z,audioDrift:p})}return Z};
fps=function(u){return u.info.G.qJ()&&u.info.yA===u.info.G.index.Uk()};
D4=function(u,h){h=(h=h===void 0?0:h)?Math.round(u.timestampOffset*h)/h:u.timestampOffset;u.C.B&&h&&(h+=u.C.B.G);return h+u.getDuration()};
CGY=function(u,h){h<0||(u.N.forEach(function(L){Aqw(L,h)}),u.timestampOffset=h)};
TS=function(u,h,L,Z,y){aC.call(this,L,y);var R=this;this.policy=u;this.formatId=h;this.N3=Z;this.lastError=null;this.q3=function(){R.ww()||(R.N3.kF.has(R.formatId)?(R.isComplete()||R.G.start(),iE(R.N3,R.formatId)&&R.VH(2),R.N3.XE(R.formatId)&&(a0j(R.N3,R.formatId)?R.Sq(4):(R.lastError="net.closed",R.Sq(5)))):(R.lastError="player.exception",R.Sq(5)))};
this.G=new g.EM(function(){R.isComplete()||(R.lastError="net.timeout",R.Sq(5))},this.policy.RT);
this.G.start();s3V(this.N3,this.formatId,this.q3);g.Kv(this.q3)};
ct=function(u,h,L,Z){g.m.call(this);var y=this;this.nI=u;this.policy=h;this.G=L;this.timing=Z;this.logger=new g.F_("dash");this.X=[];this.XB=[];this.N=this.EU=null;this.vX=!1;this.aH=this.jd=0;this.C=-1;this.RH=!1;this.DI=-1;this.gw=this.T7=null;this.AB=NaN;this.zd={MZ:function(){return y.B},
W0I:function(){return y.X},
A9y:function(){return y.S}};
this.B=new uSV(u,h,L);this.policy.G&&(this.S=new Sl(this.B,this.nI.getManifest(),this.policy,function(R){y.policy.zp&&y.IH("buftl",R)}));
this.policy.xl&&(this.Y=new $2(this));this.G3=L.info.G3;this.V=this.policy.RH?!1:L.At();this.isManifestless=L.At();this.T=this.V;g.V(this,this.T7)};
IX=function(u,h,L){L=L===void 0?!1:L;h&&fR&&CGY(u.B,h.y6());if(!L){var Z;(Z=u.S)==null||NZs(Z)}u.EU=h;(h=u.S)!=null&&(h.EU=u.EU)};
Ah=function(u){var h=u.EU&&u.EU.UK();if(u.policy.Tn){if((u=u.S)==null)u=void 0;else{var L;u=(L=u.X)==null?void 0:L.info}return u||null}return h};
MhR=function(u){for(var h={},L=0;L<u.XB.length;L++)h["r"+L]=u.XB[L];return h};
xU=function(u,h){isNaN(u.AB)||u.IH("aswr",{sq:h.info.YI[0].yA,id:h.info.YI[0].G.info.itag,xtag:h.info.YI[0].G.info.G,ep:Date.now()-u.AB});u.X.push(h);u.N=g.tu(h.info.YI);u.XB.push(h.M1());u.XB.length>4&&u.XB.shift()};
iSs=function(u,h){if(h.xD()){var L=h.RQ();L=g.C(L);for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,u.policy.X&&h instanceof TS&&u.IH("omblss",{s:Z.info.M1()}),Pt(u,h.info.YI,Z,h.vt())}};
Pt=function(u,h,L,Z){Z=Z===void 0?0:Z;isNaN(u.AB)||(u.IH("aswm",{sq:h[0].yA,id:h[0].G.info.itag,xtag:h[0].G.info.G,ep:Date.now()-u.AB}),u.AB=NaN);switch(L.info.type){case 1:case 2:QVf(u,L);break;case 4:var y=L.info.G,R=y.tQ(L),p;((p=u.N)==null?0:p.type===4)&&E6s(L.info,u.N)&&(u.N=y.B5(u.N).pop());L=g.C(R);for(y=L.next();!y.done;y=L.next())Pt(u,h,y.value,Z);break;case 3:L.info.G.info.video?(y=u.timing,y.gw||(y.gw=(0,g.vC)(),iQ("fvb_r",y.gw,y.G))):(y=u.timing,y.C||(y.C=(0,g.vC)(),iQ("fab_r",y.C,y.G)));
pWl(u.B,h,L,Z);u.policy.G&&lpb(u);break;case 6:pWl(u.B,h,L,Z),u.N=L.info}};
QVf=function(u,h){if(h.info.type===1)if(h.info.G.info.video){var L=u.timing;L.T7||(L.T7=(0,g.vC)(),iQ("vis_r",L.T7,L.G))}else L=u.timing,L.S||(L.S=(0,g.vC)(),iQ("ais_r",L.S,L.G));ZSY(u.B,h);u=u.nI;u.videoTrack.G.c_()&&u.audioTrack.G.c_()&&u.policy.G&&!u.PX.bP&&(h=u.audioTrack.getDuration(),L=u.videoTrack.getDuration(),Math.abs(h-L)>1&&u.IH("trBug",{af:""+g.Fo(u.audioTrack.G.info,!1),vf:""+g.Fo(u.videoTrack.G.info,!1),a:""+h,v:""+L}))};
zS=function(u){return jVw(u.B)};
lpb=function(u){u.X.length?u.N=g.tu(g.tu(u.X).info.YI):u.B.N.length?u.N=u.B.gH().info:u.N=Ah(u)};
CR=function(u,h){var L={JM:[],Qf:[]},Z;if((u=u.S)==null)u=void 0;else{ogb(u,u.JM,"og");qgj(u,h);ogb(u,u.JM,"trim");var y=Ygn(u);h=y.JM;y=y.Yq;for(var R=[],p=0;p<y.length;p++){var J=y[p],O=u.policy.ZI&&J.X!==-1?J.X:J.info.startTime,f={startTicks:(O+u.timestampOffset)*1E3,GR:(u.policy.ZI&&J.B!==-1?J.B:J.info.duration)*1E3,timescale:1E3},D=void 0,c=(D=u.EU)==null?void 0:D.QQ();D=void 0;if(u.policy.My&&c&&c.length>0){var I=hq(c,O);I>=0&&(D=(c.end(I)-O+.1)*1E3)}R.push({formatId:g.Fo(J.info.G.info,u.PX.bP),
GG:J.info.GG,sequenceNumber:J.info.yA+u.B,hU:f,CQ:J.info.X,Ky:D})}u={JM:h,Qf:R}}return(Z=u)!=null?Z:L};
N3=function(u,h,L){L=L===void 0?!1:L;if(u.EU){var Z=u.EU.QQ(),y=ZI(Z,h),R=NaN,p=Ah(u);p&&(R=ZI(Z,p.G.index.getStartTime(p.yA)));if(y===R&&u.N&&u.N.X&&Sfn(Mu(u),0))return h}u=XWn(u,h,L);return u>=0?u:NaN};
GS=function(u,h,L){u.G.c_();var Z=XWn(u,h);if(Z>=0)return Z;var y;(y=u.S)==null||TZn(y,h,L);L=Math;Z=L.min;y=u.B;if(y.V)if(y=y.V,y.nB&&y.nB.type===3)y=y.nB.startTime;else if(y.X>0){var R=y.G.index;R=g.Kw(R.offsets.subarray(0,R.count),y.X*y.chunkSize);y=y.G.index.getStartTime(R>=0?R:Math.max(0,-R-2))}else y=0;else y=Infinity;h=Z.call(L,h,y);if(u.policy.N){var p,J;L=(p=u.nI.m7())==null?void 0:(J=v4(p,h))==null?void 0:J.clipId;u.N=u.G.eA(h,void 0,L).YI[0]}else u.N=u.policy.RH?null:u.G.eA(h).YI[0];QH(u)&&
(u.EU&&u.EU.abort(),u.policy.bE&&(p=u.S)!=null&&(p.X=void 0));u.aH=0;return u.N?u.N.startTime:h};
Gdi=function(u){u.V=!0;u.T=!0;u.C=-1;GS(u,Infinity)};
lf=function(u){for(var h=0,L=g.C(u.X),Z=L.next();!Z.done;Z=L.next())h+=g6a(Z.value.info);return h+=J3s(u.B)};
XV=function(u,h){h=h===void 0?!1:h;var L=u.nI.getCurrentTime(),Z=u.B.gH(),y=(Z==null?void 0:Z.info.pZ)||0;u.policy.u9&&(Z==null?0:Z.info.G.At())&&!Z.info.B&&(y=Z.info.ob);if(u.policy.N&&Z&&Z.info.clipId){var R,p=(((R=u.nI.m7())==null?void 0:X_(R,Z.info.clipId))||0)/1E3;y+=p}if(!u.EU)return u.policy.G&&h&&!isNaN(L)&&Z?y-L:0;if((R=Ah(u))&&Sg(u,R))return R.pZ;p=u.EU.QQ(!0);if(h&&Z)return R=0,u.policy.G&&(R=RA(p,y+.02)),R+y-L;y=RA(p,L);u.policy.tf&&R&&(h=hq(p,L),p=hq(p,R.ob-.02),h===p&&(L=R.pZ-L,u.policy.X&&
L>y+.02&&u.IH("abh",{bh:y,bhtls:L}),y=Math.max(y,L)));return y};
vin=function(u){var h=Ah(u);return h?h.pZ-u.nI.getCurrentTime():0};
qfe=function(u,h){if(u.X.length){if(u.X[0].info.YI[0].startTime<=h)return;oC(u)}for(var L=u.B,Z=L.N.length-1;Z>=0;Z--)L.N[Z].info.startTime>h&&L.N.pop();lpb(u);u.N&&h<u.N.startTime&&(u.aH=0,u.G.c_()?u.N=u.G.eA(h,!0).YI[0]:u.N=null)};
vt=function(u,h,L,Z){if(!u.G.index.i_(h,!0))return!1;try{oC(u);for(var y=u.B,R=null,p=y.N.length-1;p>=0;p--){var J=y.N[p];J.info.yA>=h&&(y.N.pop(),y.X-=tJ(J,y.policy.eq),R=J.info)}R&&(y.T=y.N.length>0?y.N[y.N.length-1].info:y.jd,y.N.length!==0||y.T||KR(y,"r"));y.nI.IH("mdstm",{rollbk:1,itag:R?R.G.info.itag:"",popped:R?R.yA:-1,sq:h,lastslc:y.T?y.T.yA:-1,lastfraget:y.X.toFixed(3)});if(u.policy.G)return u.N=null,!0;Z>L?GS(u,Z):u.N=u.G.F6(h-1,!1).YI[0]}catch(O){return h=Xo(O),h.details.reason="rollbkerr",
u.nI.handleError(h.errorCode,h.details,h.severity),!1}return!0};
Tb=function(u,h){var L;for(L=0;L<u.X.length&&h!==u.X[L];L++);if(L===u.X.length)qu(u,h);else{for(;L<u.X.length;)qu(u,u.X.pop());var Z=o$(u);Z&&Z.G.F3()&&oS(h.info.YI,function(y){return kIV(y,Z)})?(u.N=Z,u.policy.X&&u.IH("cer",{lsr:"lsp",
lsp:Z.M1()})):(XG(h.info.YI[0])?(u.N=h.F9&&h.F9.X?FIw(h.F9.X):WIl(h.info.YI[0]),u.policy.X&&u.IH("cer",{lsr:u.N.M1(),lsp:Z==null?void 0:Z.M1()})):(u.N=null,u.policy.X&&u.IH("cer",{lsr:"null",lsp:Z==null?void 0:Z.M1()})),u.nI.isOffline()&&!u.policy.MG||qu(u,h,!0))}};
Sg=function(u,h){if(!h)return!1;if(u.policy.N){var L;if((u=(L=u.nI.m7())==null?void 0:YU(L))&&h.clipId!==u)return!1}return h.iW()};
QH=function(u){var h;!(h=u.G.info.QA==="f")&&(h=u.policy.B)&&(h=u.B,h=!!h.V&&Fd(h.V));if(h)return!0;h=Ah(u);if(!h)return!1;var L=Sg(u,h)&&h.B;return u.isManifestless&&u.DI>0?L||h.yA>=u.DI:L};
oX=function(u){var h;return QH(u)||Sg(u,(h=u.B.gH())==null?void 0:h.info)};
Mu=function(u){var h=[],L=Ah(u);L&&h.push(L);h=g.jc(h,u.B.DK());L=g.C(u.X);for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value;for(var y=g.C(Z.info.YI),R=y.next(),p={};!R.done;p={Sk:void 0},R=y.next())p.Sk=R.value,Z.qZ&&(h=g.KN(h,function(J){return function(O){return!E6s(O,J.Sk)}}(p))),(XG(p.Sk)||p.Sk.type===4)&&h.push(p.Sk)}u.N&&!snR(u.N,g.tu(h),u.N.G.qJ())&&h.push(u.N);
return h};
Sfn=function(u,h){if(!u.length)return!1;for(h+=1;h<u.length;h++)if(!wXl(u[h-1],u[h]))return!1;return!0};
XWn=function(u,h,L){L=L===void 0?!1:L;if(!u.N||!u.N.X)return NaN;u=Mu(u);a:{h+=.02;var Z=L;Z=Z===void 0?!1:Z;for(var y=-1,R=0;R<u.length;++R){var p=u[R];if(p.ob<=h)if(Z)y=R;else if(p.startTime+p.duration>=h){h=R;break a}}h=y}return h<0?NaN:Sfn(u,L?h:0)?u[h].startTime:NaN};
Nu=function(u){return!(!u.N||u.N.G===u.G)};
T2n=function(u){return Nu(u)&&u.G.c_()&&u.N.G.info.G3<u.G.info.G3};
Yfs=function(u,h,L){if(u.policy.u9)return XV(u,!0)<L;var Z=o$(u);return Z&&!Sg(u,Z)?Z.pZ>h&&Z.pZ<h+L:!1};
o$=function(u){var h=u.B.gH();return h?h.info:Ah(u)};
IWw=function(u,h){var L;return!((L=u.S)==null||!L.T.has(h))||h2e(u.B,h)};
oC=function(u){for(var h=g.C(u.X),L=h.next();!L.done;L=h.next())qu(u,L.value);u.X=[];u.N=null};
Ua=function(u){var h;(h=u.S)==null||NZs(h)};
oi1=function(u,h,L){h.qZ&&((L===void 0?0:L)||!h.info.YI[0].G.F3())&&(u.logger.debug(function(){return"Rolling back request with segNum "+h.info.YI[0].yA}),OSj(u.B))};
qu=function(u,h,L){oi1(u,h,L===void 0?!1:L);h.dispose()};
N2e=function(u){return!!u.N&&u.N.yA!==-1&&u.N.yA<u.G.index.Sw()};
Ucs=function(u){var h=u.N;h&&h.yA===-1&&(u=u.B.gH())&&XG(u.info)&&(u=u.info.yA,h.T="updateLastSliceRequested",h.yA=u)};
G9j=function(u){return oS(u.X,function(h){return h.xx})};
HSR=function(u,h){u.N&&(u.N.G=h)};
Gb=function(u,h){return u.EU?Ll(u.EU.QQ(),h):!0};
Ht=function(u){var h=zS(u);u=u.nI.m7();return h&&u&&h.info.clipId&&!r3i(u,h.info.clipId)?!0:!1};
rL=function(u){var h;return!((h=zS(u))==null||!h.isLocked)};
B2n=function(u,h){var L=zS(u);return L&&L.info.type!==6?!AJs(h,u,L.info.yA):!1};
z2l=function(u){var h=Ah(u),L,Z=(L=u.EU)==null?void 0:L.QQ();L=NaN;h&&Z&&QH(u)&&(L=ZI(Z,(h.ob+h.pZ)/2));return!isNaN(L)};
mcn=function(u){if((u=u.S)==null)u=void 0;else if(u.JM.length===0||u.policy.yf&&u.G<0)u=null;else{var h=u.JM[u.G]?u.JM[u.G].formatId:null;u=h?(u=u.PX.X.get(xV(h)))?u.info:null:null}return u||null};
dcV=function(){this.vx=!1};
Vha=function(u){var h=u===void 0?{}:u;u=h.hasSubfragmentedFmp4===void 0?!1:h.hasSubfragmentedFmp4;h=h.e9===void 0?!1:h.e9;var L=new dcV;L.vx=u||h;return L};
g.niV=function(u){this.z7=u;this.S=new dcV;this.Yt=this.h6=!1;this.b$=2;this.aH=20971520;this.e7=8388608;this.XB=120;this.Lq=this.De=this.ag=2;this.l9=this.Hp=!1;this.Cs=1E3;this.iP=15;this.SY=1;this.Y=1.15;this.AB=1.05;this.sF=1;this.dD=this.qr=!1;this.Mt=6;this.X=!1;this.gy=100;this.xo=10;this.eg=6;this.fV=!1;this.BH=1;this.yI=this.Zg=!1;this.Xb=2;this.FH=this.jY=!1;this.La=!0;this.Th=this.Ca=this.zy=this.wm=this.XN=!1;this.fE=!0;this.dL=!1;this.B="";this.Cr=[];this.Lm=this.GY=this.xl=!1;this.aM=
0;this.Mr="";this.S3=this.t6=this.zI=this.zp=this.XC=this.oM=this.C=this.I8=this.Km=this.eO=this.G=this.r6=this.fI=this.gw=this.bE=this.Tn=this.vX=this.N=this.Qs=!1;this.jx=!0;this.x6=this.u9=this.CE=this.J6=this.T=this.ZI=!1;this.VA=!0;this.Ny=this.R3=this.ol=this.vj=this.wB=this.Ax=this.My=this.ye=this.vJ=this.OM=this.RH=this.Vo=this.zG=this.Sd=this.f3=this.DI=!1;this.h4=this.z7.j("html5_trigger_loader_long_poll_on_sabr_backoff");this.l6=this.z7.j("html5_trigger_fallback_count_from_probe");this.kt=
g.Jl(this.z7.experiments,"html5_min_readbehind_secs");this.hf=g.Jl(this.z7.experiments,"html5_min_readbehind_cap_secs");this.MG=this.z7.j("html5_offline_reset_media_stream_on_unresumable_slices");this.G3=NaN;this.Be=Bt(this,"html5_request_size_min_kb",64)*1024;this.jd=2097152;this.kp=Bt(this,"html5_bypass_contention_secs");this.Ob=1048576;this.J4=Bt(this,"html5_repredict_interval_ms",1800);this.Uh=Bt(this,"html5_head_miss_secs",5);this.xL=Bt(this,"html5_min_upgrade_health_secs",10);this.Yp=Bt(this,
"html5_min_seconds_between_format_selections",8);this.jr=Bt(this,"html5_max_buffer_health_for_downgrade_secs",15);this.va=sf;this.XU=g.Jl(this.z7.experiments,"html5_min_startup_buffered_media_duration_secs");this.Qe=g.Jl(this.z7.experiments,"html5_post_interrupt_readahead");this.Cl=this.z7.j("html5_allow_onesie_for_ssap");this.mC=this.z7.j("html5_disable_classic_alr");this.eN=g.Jl(this.z7.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Ne=Bt(this,"html5_ssdai_failure_retry_limit",3);this.i8=
this.z7.experiments.tB("html5_clone_original_for_fallback_location");this.Oo=g.Jl(this.z7.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.T2=g.Jl(this.z7.experiments,"html5_subsegment_readahead_timeout_secs");this.ND=g.Jl(this.z7.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.wD=g.Jl(this.z7.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.Nd=g.Jl(this.z7.experiments,"html5_subsegment_readahead_min_load_speed");this.Bd=
g.Jl(this.z7.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.dA=g.Jl(this.z7.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.Dr=Bt(this,"html5_hopeless_secs",15);this.dQ=this.z7.j("html5_restrict_streaming_xhr_on_sqless_requests");this.LM=g.Jl(this.z7.experiments,"html5_max_headm_for_streaming_xhr");this.BD=this.z7.j("html5_pipeline_manifestless_allow_nonstreaming");this.T8=this.z7.j("html5_prefer_server_bwe3");this.Nh=this.z7.j("html5_last_slice_transition");
this.AJ=this.z7.j("html5_store_xhr_headers_readable");this.l7=g.Jl(this.z7.experiments,"html5_max_drift_per_track_secs");this.Ss=this.z7.j("html5_no_placeholder_rollbacks");this.Ry=this.z7.j("html5_subsegment_readahead_enable_mffa");this.Uo=this.z7.j("html5_allow_video_keyframe_without_audio");this.Xm=this.z7.j("html5_enable_vp9_fairplay");this.zW=1048576;this.KT=this.z7.j("html5_woffle_resume");this.B6=this.z7.j("html5_abs_buffer_health");this.Af=this.z7.j("html5_interruption_resets_seeked_time");
this.H4=g.Jl(this.z7.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.X6=this.z7.j("html5_log_additional_source_buffer_updates");this.XT=this.z7.j("html5_report_captions_ctmp_qoe");this.Cv=this.z7.j("html5_explicitly_dispose_xhr");this.Wp=!this.z7.j("html5_encourage_array_coalescing");this.HN=this.z7.j("html5_restart_on_unexpected_detach");this.RJ=this.z7.j("html5_filter_non_efficient_formats_for_safari");this.z7.j("html5_format_hybridization");this.Fv=this.z7.j("html5_abort_before_separate_init");
this.vY=t5();this.HY=this.z7.j("html5_serialize_server_stitched_ad_request");this.W4=this.z7.j("html5_skip_buffer_check_seek_to_head");this.K3=this.z7.j("html5_attach_po_token_to_bandaid");this.Pc=g.Jl(this.z7.experiments,"html5_max_redirect_response_length")||8192;this.z2=this.z7.j("html5_rewrite_timestamps_for_webm");this.eq=this.z7.j("html5_only_media_duration_for_discontinuities");this.Lu=g.Jl(this.z7.experiments,"html5_resource_bad_status_delay_scaling")||1;this.z7.j("html5_onesie_live");this.Md=
this.z7.j("html5_onesie_premieres");this.gb=this.z7.j("html5_drop_onesie_for_live_mode_mismatch");this.IT=g.Jl(this.z7.experiments,"html5_onesie_live_ttl_secs")||8;this.q_=g.Jl(this.z7.experiments,"html5_attach_num_random_bytes_to_bandaid");this.RT=g.Jl(this.z7.experiments,"html5_onesie_request_timeout_ms")||3E3;this.X2=this.z7.j("html5_update_container_type_on_codec_family_change")||this.z7.j("html5_use_update_container_type_codec_family");this.MF=this.z7.j("html5_dont_call_change_type_on_updating");
this.Gz=this.z7.j("html5_apply_ssap_slice_info_adjustment");this.mz=this.z7.j("html5_enable_sabr_host_fallback");this.WS=this.z7.j("html5_ssap_enable_legacy_browser_logic");this.iZ=this.z7.j("html5_ssap_enable_delay_init");this.nf=this.z7.j("html5_gapless_fallback_on_append_error");this.Gv=this.z7.j("html5_shorts_stop_request_when_buffer_to_end");this.gA=this.z7.j("html5_vod_stop_request_when_buffer_to_end");this.T7=this.z7.j("html5_ssdai_use_post_for_media")&&this.z7.j("gab_return_sabr_ssdai_config");
this.zm=this.z7.j("html5_use_post_for_media");this.Z1=this.z7.j("html5_use_live_ump_heartbeat");this.useUmp=this.z7.j("html5_use_ump");this.EZ=this.z7.J4;this.y5=this.z7.j("html5_reset_primary_stats_on_redirector_failure");this.VC=this.z7.j("html5_remap_to_original_host_when_redirected");this.rj=this.z7.j("html5_sabr_support_quality_constraints");this.QC=this.z7.j("html5_sabr_remove_all_quality_constraints");this.Sr=this.z7.j("html5_iterative_seeking_buffered_time");this.KY=this.z7.j("html5_use_network_error_code_enums");
this.GW=this.z7.j("html5_disable_overlapping_requests");this.enableServerDrivenRequestCancellation=this.z7.j("html5_enable_server_driven_request_cancellation");this.ym=this.z7.j("html5_enable_sabr_request_timing");this.A4=this.z7.j("html5_enable_server_format_filter");this.vU=this.z7.j("html5_enable_lawnmower");this.iX=this.z7.UU()?g.Jl(this.z7.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.Rz=g.Jl(this.z7.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.Mh=this.z7.j("html5_live_defrag_only_h264_playbacks");
this.uV=this.z7.j("html5_live_defrag_only_h264_formats");this.I3=this.z7.j("html5_record_now");this.kU=g.Jl(this.z7.experiments,"html5_drm_byterate_soft_cap");this.jK=g.Jl(this.z7.experiments,"html5_drm_live_byterate_soft_cap");this.V=this.z7.j("html5_sabr_log_request_creation");this.a5=this.z7.j("html5_use_buffer_timeline_for_sabr_request_creation");this.Td=this.z7.j("html5_sabr_report_request_cancellation_info");this.ej=this.z7.j("html5_spoof_4k");this.E2=Bt(this,"html5_min_media_duration_for_cabr_slice");
this.qh=Bt(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||.01;this.Jf=this.Wp?0:Bt(this,"html5_min_media_duration_for_append_prop");this.xj=this.z7.j("html5_remove_defrag_without_frame_level_streaming");this.ZN=this.z7.j("html5_consume_all_buffered_bytes_one_poll");this.NF=this.z7.j("html5_disable_urgent_adaptation");this.wy=this.z7.j("html5_apply_constraints_in_client_for_sabr");this.qC=this.z7.j("html5_send_video_playback_ustreamer_config");this.gW=Bt(this,"html5_max_discontinuity_rewrite_count");
this.T6=Bt(this,"html5_fixed_media_duration_for_request");this.gN=this.z7.j("html5_apply_fix_for_missing_seg_info_without_logger");this.t4=Bt(this,"html5_sabr_request_limit_per_period");this.jq=this.z7.j("html5_sabr_live_partial_segment");this.Bm=this.z7.j("html5_sabr_dispose_media_objects");this.RF=this.z7.j("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.Kj=this.z7.j("html5_enable_d6de4");this.BG=this.z7.j("html5_ssap_keep_only_ssap_eos_check");this.z7.j("html5_high_res_seek_logging");this.qU=
this.z7.j("html5_disable_chunk_synchronization_sabr_seek");this.AX=this.z7.j("html5_enable_ssap_multi_audio_format_filtering");this.Zi=g.Jl(this.z7.experiments,"html5_override_micro_discontinuities_threshold_ms");this.Qo=this.z7.j("defer_slice_processing_on_healthy_buffer_sabr");this.aC=this.z7.j("html5_byterate_constraints");this.G9=this.z7.j("html5_refactor_sabr_audio_format_selection_logging");this.HK=this.z7.j("enable_sabr_snackbar_message");this.z7.j("html5_reinit_source_buffer_by_new_element");
this.Iz=this.z7.j("html5_refactor_sabr_video_format_selection_logging");this.z9=this.z7.j("html5_log_slice_info_in_sbu");this.nH=Bt(this,"html5_paced_poll_ms");this.uc=Bt(this,"html5_paced_poll_min_health_ms");this.An=this.z7.j("html5_disable_sabr_fallback");this.yf=this.z7.j("html5_track_current_buffered_range_at_sync");this.Cg=g.Jl(this.z7.experiments,"html5_enable_sps_retry_backoff_ms");this.gD=this.z7.j("html5_sabr_live_timing");this.bk=this.z7.j("html5_sabr_enable_server_xtag_selection");this.oX=
this.z7.j("html5_send_detailed_network_type");this.Kg=this.z7.j("html5_sabr_skip_client_audio_init_selection");this.tf=this.z7.j("html5_count_updating_slice_for_buffer_health");this.nu=this.z7.j("html5_report_max_buffer_bytes_limit_to_sabr");this.Pf=this.z7.j("html5_sabr_live_audio_early_return_fix");this.Dw=this.z7.j("html5_enable_media_serving_enforcement")||this.z7.j("html5_enable_sabr_context_cross_playback");this.lc=g.Jl(this.z7.experiments,"html5_platform_max_buffer_health_oversend_duration_secs");
this.iV=this.z7.j("html5_check_decorator_on_cuepoint");this.fM=this.z7.j("html5_cuepoint_identifier_logging");this.Oq=this.z7.UU()};
G5f=function(u,h,L){L=L===void 0?!1:L;h.video.G>1080&&!u.h6&&(u.aH=36700160,u.e7=5242880,u.jd=Math.max(4194304,u.jd),u.h6=!0);h.video.G>2160&&!u.Yt&&(u.aH=104857600,u.G3=13107200,u.Yt=!0);g.Jl(u.z7.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?h.isEncrypted()&&g.wg()&&g.nP("samsung")&&(g.nP("kant")||g.nP("muse"))&&(u.G3=g.Jl(u.z7.experiments,"html5_samsung_kant_limit_max_bitrate")):h.isEncrypted()&&g.wg()&&g.nP("kant")&&(u.G3=1310720);u.kU!==0&&h.isEncrypted()&&(u.G3=u.kU);u.jK!==0&&h.isEncrypted()&&
L&&(u.G3=u.jK);h.G3&&(u.Ob=Math.max(u.Be,Math.min(u.jd,5*h.G3)))};
zb=function(u){return u.G&&u.Km&&u.playbackStartPolicy};
mL=function(u){return u.N||u.G&&u.A4};
dL=function(u,h,L,Z){u.Km&&(u.playbackStartPolicy=h,u.Yy=L,u.UV=Z)};
Bt=function(u,h,L){L=L===void 0?0:L;return g.Jl(u.z7.experiments,h)||L};
sVi=function(u){var h=u===void 0?{}:u;u=h.yI;var L=h.vx;var Z=h.pB;var y=h.Uk;h=h.tx;this.yI=u;this.vx=L;this.pB=Z;this.Uk=y;this.tx=h};
acR=function(u,h){if(h<0)return!0;var L=u.Uk();return h<L||h===L&&!u.yI||h===L&&(u=u.tx())&&h===u.yA?!0:!1};
$mw=function(u,h,L){if(!acR(u,h))return 0;if(!u.vx||!isNaN(L)&&L>0)return 2;if(h<0)return 1;L=u.Uk();return h<L||h===L&&(u=u.tx())&&h===u.yA&&!u.pending?2:1};
VH=function(u,h,L){g.m.call(this);this.nI=u;this.policy=h;this.N1=L;this.N=0;this.G=!1;this.delay=new g.EM(this.X,this.policy.iX,this);g.V(this,this.delay)};
wWn=function(u,h){xa(h.G)||(u.D3=h,u.N=0,g.kK(u.delay))};
e21=function(u,h,L,Z,y){var R=this;this.nI=u;this.policy=h;this.N1=L;this.D3=Z;this.NG=y;this.done=!1;this.onTimeout=function(){R.done||(R.done=!0,R.onError("net.timeout"))};
this.size=Math.ceil(Math.min(1E5,.1*Dr(this.N1)));this.timing=new nt(this,{N1:this.N1,KL:this.size,jw:!0,hF:function(){},
UZ:this.policy.X});u=ca(this.D3,this.NG,this.policy).eY.clone();I3(u);u.path!=="/videogoodput"&&(u.path="/videogoodput",u.url="");this.location=new RW(u);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=W4(this.location,this.policy.S,this.timing,this.policy.va,{});setTimeout(this.onTimeout,1E4)};
ap1=function(u,h,L){var Z=u.mI();if(u.isComplete()||!Z||u.info.D3.NG(h,L))return 0;var y=h.Xb;if(!y||Z<y)return 0;u=O4(L,IW(u.info.D3,!0,h));return u.G||u.timedOut||u.started?0:2};
$c1=function(u,h,L){if(!(h.eN&&u.isComplete()&&u.canRetry()&&u.info.D3.NG(h,L))||u.info.D3.S)return 0;u=O4(L,IW(u.info.D3,!1,h));return u.X+h.eN*JJ(u,!0)>(0,g.vC)()?0:1};
nR=function(u,h,L,Z,y,R,p,J,O,f,D,c,I,A){A=A===void 0?null:A;g.m.call(this);var x=this;this.nI=u;this.policy=h;this.videoTrack=L;this.audioTrack=Z;this.B=y;this.G=R;this.timing=p;this.T=J;this.schedule=O;this.PX=f;this.X=D;this.AB=c;this.PY=I;this.Ee=A;this.RH=!1;this.P2="";this.hV=null;this.Ep=NaN;this.XB=!1;this.N=null;this.td=this.Y=NaN;this.SK=this.C=0;this.logger=new g.F_("dash");this.zd={lC:function(Q,S){return x.lC(Q,S)}};
this.policy.q_>0&&(this.P2=g.ig(this.policy.q_));this.policy.iX&&(this.S=new VH(this.nI,this.policy,this.schedule),g.V(this,this.S))};
thl=function(u,h,L){var Z=h.N?h.N.G.D3:h.G.D3;var y=u.B,R;(R=!u.policy.VC)||(R=AD(Z.G)===AD(Z.X));R?Z=!1:(y=O4(y,AD(Z.X)),R=6E4*Math.pow(y.B,1.6),(0,g.vC)()<y.X+R?Z=!1:(y.X=(0,g.vC)(),y.B+=1,Z.G=Z.X.clone(),Z=!0));Z&&u.nI.IH("hostch",{},!0);if(sa(u,h,L)){L=u.V(h,L);if(u.N){var p=L.YI[0].G.info.id;Z=u.G;y=L.YI[0].yA;Z=y<0&&!isNaN(Z.T)?Z.T:y;y=Nb(u.G,L.YI[0].ob,Z);var J=h===u.audioTrack?1:2,O=L.YI[0].G.info.QA;R=p.split(";")[0];a:{var f=u.G;if(f.G){var D=f.G.gO.event;if(f.G.yA===Z){f=D==="predictStart"?
void 0:f.G.gO.event;break a}if(f.G.yA===Z-1){f=D==="start"||D==="continue"?D:void 0;break a}}f=void 0}if(u.policy.T7&&u.G.N!==0){var c=u.N.CG(y,Z,p,J,O,f);Z<0&&J===2&&UK(u.G,0,0,!0);if(c){var I;p=((I=c.Im)==null?void 0:I.V3)||"";var A;I=((A=c.Im)==null?void 0:A.hO)||-1;u.nI.IH("sdai",{ssdaiinfo:"1",ds:p,skipsq:I,itag:R,f:O,sg:Z,st:y.toFixed(3)});L.B=c}}else if(A=u.N.Fj(y,Z,p,J,O,f),Z<0&&J===2&&UK(u.G,0,0,!0),A){I={dec_sq:Z,itag:R,st:y.toFixed(3)};if(u.policy.HY&&h.isRequestPending(Z-1)){u.nI.IH("sdai",
{wt_daistate_on_sg:Z-1});return}u.nI.IH("sdai",I);A&&(L.G=new g.cQ(A));u.policy.X&&(A=L.D3.z8("id")||"",I=((c=L.G)==null?void 0:c.get("id"))||"",A!==I&&u.nI.IH("stmidmismatch",{cid:A,aid:I}))}else u.G.N!==5&&u.nI.IH("sdai",{nodec_sq:Z,itag:R,st:y.toFixed(3)})}u.policy.Lm&&L.YI[0].yA!==-1&&L.YI[0].yA<u.PX.vr&&(L=h.G.F6(u.PX.vr,!1));xU(h,wL(u,L));Sy(u.timing);var x;(x=u.S)==null||wWn(x,L.D3)}};
sa=function(u,h,L){if(u.policy.oM)return!1;var Z;var y=u.G,R=((Z=h.N)==null?void 0:Z.yA)||-1;y.N===3&&R+1>=y.B?(y.IH("sdai",{haltrq:R+1,est:y.B}),Z=!1):Z=y.N!==2;if(!Z||!AJ(h.N?h.N.G.D3:h.G.D3,u.policy,u.B,u.nI.Gl())||u.nI.isSuspended&&(!c$(u.schedule)||u.nI.pp))return!1;if(u.policy.B&&SG>=5)return g.kK(u.nI.CN),!1;if(u.PX.isManifestless){if(h.X.length>0&&h.N&&h.N.yA===-1||h.X.length>=u.policy.BH||!u.policy.BD&&h.X.length>0&&!u.policy.S.vx)return!1;if(h.V)return!u.PX.isLive||!isNaN(u.Ep)}if(G9j(h))return u.logger.debug("Pending request with server-selectable format found"),
!1;if(!h.N){if(!h.G.c_())return!1;GS(h,u.nI.getCurrentTime())}if(zS(h)&&(h.gH()!==zS(h)||u.nI.isSuspended))return!1;y=(Z=u.policy.kp)&&!h.X.length&&XV(h,!0)<Math.min(Z,XV(L));Z=h.X.length+L.X.length;R=!u.policy.GW&&((h.X.length?h.X[0].CX():!1)||(L.X.length?L.X[0].CX():!1)||u.PX.isLive);(y||R)&&--Z;if(Z+1>=u.policy.b$)return!1;Z=h.N;if(!Z)return!0;Z.type===4&&Z.G.c_()&&(h.N=g.tu(Z.G.B5(Z)),Z=h.N);if(!Z.iW()&&!Z.G.OT(Z))return!1;R=u.PX.Ph||u.PX.B;if(u.PX.isManifestless&&R){R=h.G.index.Uk();var p=L.G.index.Uk();
R=Math.min(R,p);if(h.G.index.A8()>0&&R>0&&Z.yA>=R)return h.DI=R,L.DI=R,!1}if(Z.G.info.audio&&Z.type===4||Z.iW())return!1;R=!h.T&&!L.T;if(y=!y)y=Z.pZ,y=!!(L.N&&!Sg(L,L.N)&&L.N.pZ<y);p=h===u.videoTrack&&u.policy.gw;return y&&(!u.PX.isManifestless||L.N&&L.N.pZ&&Z.pZ)&&R&&!p||u.policy.La&&!h.T&&L.T?!1:XG(Z)&&Z.pZ>WkV(u,h)?(WkV(u,h),!1):(u=h.EU)&&u.isLocked()?!1:!0};
WkV=function(u,h){var L=u.G;L=L.G?L.G.gO:null;if(u.policy.gw&&L)return L.startSecs+L.jS+15;h=Ue(u.nI,h);u.policy.iP>0&&(L=((0,g.vC)()-u.nI.Vc)/1E3,h=Math.min(h,u.policy.iP+u.policy.SY*L));L=u.nI.getCurrentTime()+h;return u.policy.Qe&&(h=Fkn(u.nI)+u.policy.Qe,h<L)?(u.nI.IH("mrl",{ori:L,mod:h},!0),u.policy.Af&&(u=u.nI,L=(0,g.vC)(),u.Vc=L),h):L};
bSe=function(u,h,L){if(L!==0){a:if(h=h.info,L=L===2,h.G)h=null;else{var Z=h.YI[0];if(h.range)var y=iO(h.range.start,Math.min(4096,h.X));else{if(h.N&&h.N.indexOf("/range/")>=0||h.D3.z8("defrag")==="1"||h.D3.z8("otf")==="1"){h=null;break a}y=iO(0,4096)}y=new oW([new lO(5,Z.G,y,"createProbeRequestInfo"+Z.T,Z.yA)],h.N);y.NG=L;y.G=h.G;h=y}h&&wL(u,h)}};
wL=function(u,h){u.nI.X8(h);var L=g6a(h),Z=u.nI.Bi();L={N1:u.schedule,KL:L,Bs:MUL(u.T,L),bu:S8(h.YI[0]),jw:xa(h.D3.G),UZ:u.policy.X,hF:function(p,J){u.nI.oh(p,J)}};
if(u.schedule.N.V){var y,R;L.fg=(((y=u.videoTrack.G)==null?void 0:y.info.G3)||0)+(((R=u.audioTrack.G)==null?void 0:R.info.G3)||0)}u.hV&&(L.yA=h.YI[0].yA,L.Ep=h.Ep,L.hV=u.hV);Z={FC:uyL(h,u.nI.getCurrentTime()),Dt:u.policy.Zg&&U4(h)&&h.YI[0].G.info.video?BOn(u.X):void 0,cI:u.policy.gw,poToken:u.nI.KE(),BV:u.nI.PP(),P2:u.P2,td:isNaN(u.td)?null:u.td,Ee:u.Ee,PY:u.PY,SK:u.SK,e_:Z};return new Y0(u.policy,h,L,u.B,function(p,J){try{a:{var O=p.info.YI[0].G,f=O.info.video?u.videoTrack:u.audioTrack;if(!(p.state>=
2)||p.isComplete()||p.mI()||!(!u.nI.oH||u.nI.isSuspended||XV(f)>3)){var D=ap1(p,u.policy,u.B);D===1&&(u.XB=!0);bSe(u,p,D);if(p.isComplete()||p.ww()&&J<3){if(u.policy.X){var c=p.timing.Vt();c.rst=p.state;c.strm=p.xhr.dB();c.cncl=p.xhr&&p.wf.B?1:0;u.nI.IH("rqs",c)}p.fP&&u.nI.IH("sbwe3",{},!0)}if(!u.ww()&&p.state>=2){JJw(u.timing,p,O);var I=u.nI;u.td&&p.Ro&&I&&(u.td=NaN,u.nI.bO(p.Ro),u.nI.Vq(),u.nI.IH("cabrUtcSeek",{mediaTimeSeconds:p.Ro}));p.DA&&u.td&&p.DA&&!p.DA.action&&(u.nI.yn(u.td),u.td=NaN,u.nI.IH("cabrUtcSeekFallback",
{targetUtcTimeSeconds:u.td}));p.z6&&u.nI.H8(p.z6);u.policy.Z1&&(u.SK=p.SK);if(p.state===3){Tb(f,p);U4(p.info)&&eg(u,f,O,!0);if(u.N){var A=p.info.Fj();A&&u.N.ju(p.info.YI[0].yA,O.info.id,A)}u.nI.pW()}else if(p.isComplete()&&p.info.YI[0].type===5){if(p.state!==4)p.qt()&&u.nI.handleError(p.xW(),p.zB());else{var x=(p.info.YI[0].G.info.video?u.videoTrack:u.audioTrack).X[0]||null;x&&x instanceof Y0&&x.mI()&&x.gB(!0)}p.dispose()}else{p.qt()||Eii(u,p);var Q;((Q=p.KN)==null?0:Q.itagDenylist)&&u.nI.Ar(p.KN.itagDenylist);
if(p.state===4)aX(u,p),u.G&&cJi(u.G,p.info,u.N);else if(u.policy.va&&p.xD()&&!p.isComplete()&&!aX(u,p)&&!p.qt())break a;p.qt()&&(k9s(u,p),isNaN(u.td)||(u.nI.yn(u.td),u.td=NaN));u.policy.nH&&!p.isComplete()?$U(u.nI):u.nI.pW();var S=$c1(p,u.policy,u.B);bSe(u,p,S)}}}}}catch(v){J=u.RH?1:0,u.RH=!0,p=SX(J),J=Xo(v,J),u.nI.handleError(J.errorCode,J.details,J.severity),p||u.nI.A2()}},Z)};
Eii=function(u,h){if(h.xx&&h.state>=2&&h.state!==3){var L=h.xhr.getResponseHeader("X-Response-Itag");if(L){u.logger.debug(function(){return"Applying streamer-selected format "+L});
var Z=rJY(u.X,L),y=h.info.X;y&&(y-=Z.X0(),Z.X=!0,h.info.YI[0].G.X=!1,d6n(h,Z.Y6(y)),th(u.nI,u.videoTrack,Z),HSR(u.videoTrack,Z),u.nI.I1(Z.info.video.quality),(y=h.vt())&&Z.info.lastModified&&Z.info.lastModified!==+y&&Tb(u.videoTrack,h))}else h.xx=!1}};
k9s=function(u,h){var L=h.info.YI[0].G,Z=h.xW();if(xa(L.D3.G)){var y=g.iV(h.KB(),3);u.nI.IH("dldbrerr",{em:y||"none"})}y=h.info.YI[0].yA;var R=Nb(u.G,h.info.YI[0].ob,y);Z==="net.badstatus"&&(u.C+=1);if(h.canRetry()&&Wt(u.nI)){if(!(h.info.D3.N>=u.policy.Ne&&u.N&&h.info.isDecorated()&&Z==="net.badstatus"&&u.N.BP(R,y))){y=(L.info.video&&L.D3.N>1||h.W_===410||h.W_===500||h.W_===503)&&!(zN(u.X.T).size>0)&&!xa(L.D3.G);R=h.zB();var p=L.info.video?u.videoTrack:u.audioTrack;y&&(R.stun="1");u.nI.handleError(Z,
R);u.ww()||(y&&(u.logger.debug(function(){return"Stunning format "+L.info.id}),wa(u.X,L)),Tb(p,h),u.nI.pW())}}else p=1,u.N&&h.info.isDecorated()&&Z==="net.badstatus"&&u.N.BP(R,y)&&(p=0),u.PX.isLive&&h.xW()==="net.badstatus"&&u.C<=u.policy.xo*2?(uOb(u.PX),u.PX.Ph||u.PX.isPremiere?B4(u.nI,0,{Ek:"badStatusWorkaround"}):u.PX.B?B4(u.nI,u.PX.vX,{Ek:"badStatusWorkaround",
fm:!0}):FV(u.nI)):u.nI.handleError(Z,h.zB(),p)};
aX=function(u,h){if(u.policy.useUmp&&h.ww())return!1;try{var L=h.info.YI[0].G,Z=L.info.video?u.videoTrack:u.audioTrack;if(u.PX.isManifestless&&Z){u.C=0;Z.V&&(h.ww(),h.isComplete()||h.xD(),Z.V=!1);h.t5()&&u.nI.UE.mO(1,h.t5());var y=h.A8(),R=h.s1();A3(u.PX,y,R)}if(h.info.bu()&&!N8(h.info))for(var p=g.C(h.RQ()),J=p.next();!J.done;J=p.next())QVf(Z,J.value);for(u.nI.getCurrentTime();Z.X.length&&Z.X[0].state===4;){var O=Z.X.shift();iSs(Z,O);Z.jd=O.oS()}Z.X.length&&iSs(Z,Z.X[0]);var f=!!zS(Z);f&&h instanceof
TS&&(L.info.GD()?hRn(u.timing):jWe(u.timing));return f}catch(D){h=h.zB();h.origin="hrhs";a:{u=u.nI;L=D;if(L instanceof Error){h.msg||(h.msg=""+L.message);h.name||(h.name=""+L.name);if(L instanceof g.aO&&L.args)for(Z=g.C(Object.entries(L.args)),y=Z.next();!y.done;y=Z.next())R=g.C(y.value),y=R.next().value,R=R.next().value,h["arg"+y]=""+R;g.G3(L);if(L.level==="WARNING"){u.G7.D2(h);break a}}u.handleError("fmt.unplayable",h,1)}return!1}};
giV=function(u){var h=u.videoTrack.G.index;u.hV=new sVi({yI:u.policy.yI,vx:u.policy.S.vx,pB:h.hL(),Uk:function(){return h.Uk()},
tx:function(){return h.tx()}})};
eg=function(u,h,L,Z){if(!(L.c_()||L.ub()||L.X||!AJ(L.D3,u.policy,u.B)||L.info.QA==="f"||u.policy.G)){if(Z){Z=u.T;var y=L.info;Z=inj(Z,y.video?Z.policy.ag:Z.policy.De,y.G3)}else Z=0;Z=L.Y6(Z);u=wL(u,Z);N8(Z)&&xU(h,u);L.X=!0}};
bf=function(u,h,L,Z,y,R,p,J){g.m.call(this);var O=this;this.nI=u;this.Rb=h;this.videoTrack=L;this.audioTrack=Z;this.PX=y;this.Y=R;this.isAudioOnly=p;this.V=J;this.N=Hu;this.XB=!1;this.logger=new g.F_("sabr");this.S=this.RH=this.AB=!1;this.videoInfos=this.T=this.Y.videoInfos;this.X=this.gw=this.Y.G;this.G=new ra(h,R,function(f,D){O.nI.IH(f,D)});
this.Rb.Kg||upb(this);this.isAudioOnly&&jLn(this,this.PX.G["0"])};
hqf=function(u,h){var L=[];h=g.C(h);for(var Z=h.next();!Z.done;Z=h.next())L.push(g.Fo(Z.value,u.PX.bP));return L};
jLn=function(u,h,L){h!==u.B&&(u.B&&(u.XB=!0),u.B=h,u.IA(h,u.videoTrack,L))};
yzY=function(u,h){u.logger.debug("setConstraint: "+u0(h));mL(u.Rb)&&(u.RH=h.reason==="m"||h.reason==="l"?!0:!1);h.reason==="m"?h.isLocked()&&Lsf(u,h.G):ZCj(u,h)?IU(u,h.N,h.G):u.videoInfos=u.T;u.N=h};
ZCj=function(u,h){return u.Rb.rj&&h.reason==="b"||u.Rb.QC?!1:u.Rb.wy?!0:h.reason==="l"||h.reason==="b"||h.reason==="o"};
Rqb=function(u,h){return h.isLocked()&&u.G.N||u.N===void 0?!1:h.ys(u.N)};
p$a=function(u,h){var L,Z=(L=u.B)==null?void 0:L.info.video.G;return u.XB?!0:u.B?h!==Z?!0:!u.G.N||u.Rb.RF&&u.G.G===u.B.info.itag?!1:!0:!1};
Lsf=function(u,h){var L=u.G.G;if(L){u.videoInfos=u.T;var Z=g.Fg(u.videoInfos,function(y){return y.id===L});
Z&&Z.video.G===h?u.videoInfos=[Z]:(Z=u.videoInfos.map(function(y){return y.id}),u.nI.IH("sabrpf",{pfid:""+L,
vfids:""+Z.join(".")}),IU(u,h,h),mt(u.G,""))}else IU(u,h,h)};
IU=function(u,h,L){u.videoInfos=u.T;u.videoInfos=g.KN(u.videoInfos,function(Z){return Z.video.G>=h&&Z.video.G<=L})};
upb=function(u){var h=POV(u.G,u.V);h&&(u.X=[h])};
KsY=function(u,h,L){if(u.Rb.Kg){if(u.V){var Z=g.KN(u.X,function(y){return y.id===u.V});
return Aa(Z,L).includes(h)}Z=g.KN(u.X,function(y){var R;return!((R=y.tM)==null||!R.isDefault)});
if(Z.length>0)return Aa(Z,L).includes(h)}return Aa(u.X,L).includes(h)};
Aa=function(u,h){return u.map(function(L){return xV(g.Fo(L,h))})};
JzR=function(u){var h;if((h=u.N)==null?0:h.isLocked())return u.videoInfos;var L=zN(u.G);h=g.KN(u.videoInfos,function(Z){return Z.G3>u.Rb.G3?!1:!L.has(Z.id)});
x8n(u.G)&&(h=g.KN(h,function(Z){return Z.video.width<=854&&Z.video.height<=480}));
return h};
DWY=function(u,h,L,Z){var y=u.PX,R=u.G7.getVideoData(),p=g.dC(R),J=u.eF,O=JO({z7:R.L(),G7:u.G7,hn:u.hn,Rb:u.Rb,Vc:u.Vc,fX:u.fX,vL:u.vL,GI:u.GI,IC:u.IC,isPrefetch:u.isPrefetch,UB:u.UB,sabrLicenseConstraint:R.sabrLicenseConstraint,sM:u.sM,TY:u.TY,j9:u.j9,Vm:u.Vm,WyA:!!J}),f=OK(R,u.e_,u.nextRequestPolicy,u.VI,u.wi,u.X_y,u.xK);Z&&L&&(Z=f.WV?f.WV.map(function(Q){return Q.type}):[],L("ssap",{stmctxt:Z.join("_"),
unsntctxt:f.S_?f.S_.join("_"):""}));Z=u.mA;var D=u.G0;if(D===void 0&&Z===void 0){var c;D=OCl(y.bP,(c=u.Fg)==null?void 0:c.video);var I;Z=OCl(y.bP,(I=u.Fg)==null?void 0:I.audio)}if(R.Ee)var A=R.Ee;R={Ha:O,Qf:u.Qf,mA:Z,G0:D,eF:J,videoPlaybackUstreamerConfig:A,Uf:f};u.Im&&(R.Im=u.Im);if(p&&h){p=new Map;var x=g.C(y.T7);for(J=x.next();!J.done;J=x.next())J=J.value,(O=y.aH[zTn(y,J)]||"")?(p.has(O)||p.set(O,[]),p.get(O).push(J)):L&&L("ssap",{nocid4fmt:(J.itag||"")+"_"+(J.lmt||0)+"_"+(J.xtags||"")});y=new Map;
x=g.C(u.JM);for(J=x.next();!J.done;J=x.next())J=J.value,O=J.startTimeMs||0,f=void 0,c=(f=h)==null?void 0:v4(f,O),f=c.clipId,c=c.YV,f?(y.has(f)||(I=p.get(f)||[],y.set(f,{clipId:f,JM:[],gL:I})),c!==0&&(J.startTimeMs=O-c),y.get(f).JM.push(J)):L&&(f=void 0,L("ssap",{nocid4range:"1",fmt:((f=J.formatId)==null?void 0:f.itag)||"",st:O.toFixed(3),d:(J.durationMs||0).toFixed(3),timeline:xA(h)}));R.CO=[];y=g.C(y.entries());for(p=y.next();!p.done;p=y.next())p=g.C(p.value),p.next(),p=p.next().value,R.CO.push(p);
if(u.JM.length&&!R.CO.length){L&&L("ssap",{nobfrange:"1",br:frR(u.JM),timeline:xA(h)});return}u.Rw&&(R.Rw=u.Rw);u.GF&&(R.GF=u.GF)}else R.JM=u.JM,R.gL=y.T7,p&&((x=u.JM)==null?void 0:x.length)>0&&!h&&L&&L("ssap",{bldmistlm:"1"});return R};
OCl=function(u,h){return h?[g.Fo(h.info,u)]:[]};
frR=function(u){var h="";u=g.C(u);for(var L=u.next();!L.done;L=u.next()){L=L.value;var Z=void 0,y=void 0,R=void 0;h+="fmt."+(((Z=L.formatId)==null?void 0:Z.itag)||"")+"_"+(((y=L.formatId)==null?void 0:y.lmt)||0)+"_"+(((R=L.formatId)==null?void 0:R.xtags)||"")+";st."+(L.startTimeMs||0).toFixed(3)+";d."+(L.durationMs||0).toFixed(3)+";"}return h};
PO=function(u,h,L){var Z=this;this.requestType=u;this.D3=h;this.XD=L;this.N=null;this.zd={rzg:function(){var y;return(y=Z.data)==null?void 0:y.isPrefetch},
wi:function(){var y;return(y=Z.data)==null?void 0:y.wi}}};
EaV=function(u,h,L){h=ca(u.D3,cz1(u,h,L),h);u.Ml()&&h.set("probe","1");return h};
cz1=function(u,h,L){u.NG===void 0&&(u.NG=u.D3.NG(h,L));return u.NG};
IrY=function(u){var h,L;return((h=u.G)==null?void 0:(L=h.Ha)==null?void 0:L.o1)||0};
Aze=function(u){var h,L;return!!((h=u.G)==null?0:(L=h.Ha)==null?0:L.sM)};
xWL=function(u){var h={},L=[],Z=[];if(!u.data)return h;for(var y=0;y<u.data.JM.length;y++){var R=u.data.JM[y],p=void 0;L.push("i."+((p=R.formatId)==null?void 0:p.itag)+"_st."+(R.startTimeMs+"_e."+(R.startTimeMs+R.durationMs)+"_d."+R.durationMs)+("_sn."+R.AV)+("_en."+R.I7))}for(y=0;y<u.data.Qf.length;y++){R=u.data.Qf[y];var J=p=void 0,O=void 0,f=void 0;Z.push("i."+((p=R.formatId)==null?void 0:p.itag)+"_sn."+R.sequenceNumber+"_sl."+(R.GG||NaN)+"_lb."+R.CQ+"_tr.s_"+((J=R.hU)==null?void 0:J.startTicks)+
"_d_"+((O=R.hU)==null?void 0:O.GR)+"_t_"+((f=R.hU)==null?void 0:f.timescale)+"_ed_"+R.Ky)}h.ptime=IrY(u);h.rtype=u.requestType;h.brl=L.join(";");h.ps=Z.join(";");return h};
P9a=function(u){if(u.Gz)return{Dx:g.Jl(u.experiments,"html5_future_encryptor_auto_select_js_max_size_bytes"),IJ:g.Jl(u.experiments,"html5_future_encryptor_auto_select_wasm_max_size_bytes")}};
C$=function(u,h){this.Mm=u;this.cipher=this.Mm.exports.AES128CTRCipher_create(h.byteOffset)};
M4=function(u){return function(h){return{profile:u,c6:Math.ceil(h.byteLength/16)}}};
i$=function(u,h){this.key=u;this.subtleCrypto=h;this.G=!1};
C91=function(u){var h=globalThis.crypto.subtle;h=h===void 0?window.crypto.subtle:h;return Rd(Zc(function(){return h.importKey("raw",u,"AES-CTR",!1,["encrypt"]).catch(function(L){return Promise.reject(L.name+": "+L.message)})}),function(L){return new i$(L,h)})};
Q_=function(u){this.G=!1;this.N=new I9(u)};
l$=function(u,h){this.Mm=u;var L=u.HD(h);this.G=new C$(u,L!=null?L:h);L&&u.free(L.byteOffset)};
MJL=function(u){g.G3("wasm encryptor failed: "+u);throw u;};
SE=function(u,h,L){var Z=this;this.key=u;this.B=this.T=!1;this.Dx=32768;this.IJ=131072;h==null||Rd(h,function(y){Z.G=new l$(y,Z.key);Z.B=y.Ew});
if(L==null?0:L.IJ)this.IJ=L.IJ;if(L==null?0:L.Dx)this.Dx=L.Dx};
iCn=function(u,h,L){u.N||(u.N=new Q_(u.key));return pn(u.N.encrypt(h,L),MJL)};
QLs=function(u,h,L){if(!u.X){if(!("crypto"in globalThis&&"subtle"in globalThis.crypto))return Ln("native encryptor unavailable");u.X=C91(u.key)}return pn(Rd(u.X,function(Z){return Z.encrypt(h,L)}),MJL)};
XT=function(u,h,L){this.G=u;this.Mm=h;this.B=L;this.X=!1;this.iv=(0,g.f4)(MX(16))};
lrb=function(u){u.N||(u.N=new SE(u.G.G,u.Mm,u.B));return u.N};
Sbw=function(u,h){var L;return g.G(function(Z){(0,g.vC)();L=HJi(u.G);return Z.return(L.encrypt(h,u.iv))})};
X$b=function(u,h){var L;return g.G(function(Z){(0,g.vC)();var y=u.G;y.B||(y.B=new brl(y.X));L=y.B;return Z.return(gof(L,h,u.iv))})};
vyl=function(u,h,L){var Z;return g.G(function(y){(0,g.vC)();Z=HJi(u.G);return y.return(Z.decrypt(h,L))})};
vO=function(u){g.m.call(this);var h=this;this.xI=u;this.G=new Map;this.B=[];this.N=!this.xI.experiments.tB("html5_disable_trusted_hosts")&&!C7();this.Y=g.Jl(this.xI.experiments,"html5_onesie_prewarm_interval_ms");this.S=new g.EM(this.V,this.Y,this);this.C=-1;this.zd={T6I:function(){return h.G},
E0B:function(){return h.T},
y9I:function(){return qbR}};
g.V(this,this.S);Oka(this,g.Gj("yt-player-bandaid-host"));this.T=this.load();this.Y&&this.T.then(function(){h.V()})};
Oka=function(u,h){var L=h==null?void 0:h.primary;u.X(0,L);L=L?TSj(L):void 0;u.X(2,L);u.X(1,h==null?void 0:h.secondary)};
q4=function(u,h){return new g.cQ("https://"+h+u.xI.XU.baseUrl)};
Ybb=function(u,h){u="https://"+AD(h.location)+"/initplayback?c="+nS(u.xI)+"&owc=1";P4(u,"pw",function(L){L.ht=h.G})};
TX=function(u,h,L,Z){P4("https://"+h+"/videoplayback?probe=1",L,function(y){!Z.j("html5_onesie_host_racing")||Z.videoData.isLivePlayback||Z.j("html5_onesie_probe_ec_hosts")||Z.t8||Z.LR();u.B.push(y)},function(y){u.B.push(y.details)})};
TSj=function(u){return u.replace(/(\d+)---/g,function(h,L){h=Number(L);return(h===1?2:h-1)+"---"})};
YA=function(u,h){var L,Z,y,R,p,J,O,f;return g.G(function(D){if(D.G==1){L=q4(u,"redirector.googlevideo.com");L.set("alr","yes");L.set("id",""+Math.round(Math.random()*1E5));if(h===1||h===2)L.set("cmo=sensitive_content","yes"),L.set("sc","yes");h===2&&L.set("cmo=td","c.youtube.com");Z={format:"RAW",timeout:5E3};return g.N(D,TT(L.VQ(),Z),2)}y=D.N;if(y.xhr.status!==200||!y.xhr.responseText)return D.return(Promise.reject(new g.aO("b204258371_no_host",L.VQ(),y.xhr.status)));R=new g.cQ(y.xhr.responseText);
p=AD(R);J=R.get("ms");O=q4(u,p);f=R.get("mm");O.set("ms",J);O.set("mm",f);return p&&JDa(p)?h!==2||jy(p)?D.return(O):D.return(Promise.reject(new g.aO("b204258371_untrusted",p,J))):D.return(Promise.reject(new g.aO("b204258371_invalid",p,J)))})};
oyf=function(u){var h=u.B;u.B=[];return h};
JDa=function(u){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(u)};
jy=function(u){var h=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(u)&&!h.test(u)};
NSl=function(u,h){this.location=u;this.G=h};
oU=function(u){this.fY=u;this.N=!1;this.G=[]};
Uw=function(u){for(;u.G.length&&!u.G[0].isEncrypted;){var h=u.G.shift(),L=h.videoId,Z=h.yc,y=h.formatId,R=h.buffer;h=h.Rs;if(R)h=void 0,(h=N4(u.fY.lF,L))==null||QW(h,Z,y,R);else if(h)u.fY.lF.JG(L,Z,y);else if(Z=u.fY,Z.G[y].vC=!0,L=N4(Z.lF,L),L==null?0:L.kF.has(y))L==null||Pj(L,y)}};
g.dh=function(u){this.data=u;this.G=0;this.B=!1;this.X=0;this.error=!1;this.register=this.N=0;if(GX.length===0){GX.length=288;GX.fill(8);for(u=144;u<280;u++)GX[u]=u<=255?9:7;HO.length=32;HO.fill(5);rh.length=286;rh.fill(0);for(u=261;u<285;u++)rh[u]=Math.floor((u-261)/4);BO[257]=3;for(u=258;u<285;u++){var h=BO[u-1];h+=1<<rh[u-1];BO[u]=h}BO[285]=258;for(u=0;u<30;u++)zX[u]=u<=3?0:Math.floor((u-2)/2);for(u=m2[0]=1;u<30;u++)h=m2[u-1],h+=1<<zX[u-1],m2[u]=h}u=100+7*this.data.length;this.data[0]===31&&this.data[1]===
139&&(u=(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(u)};
g.eE=function(u){for(;!u.B&&!u.error;){var h=u;h.B=!!V_(h,1);switch(V_(h,2)){case 2:var L=[],Z=[];Z.length=19;Z.fill(0);var y=V_(h,5)+257;var R=V_(h,5)+1;for(var p=V_(h,4)+4,J=0;J<p;J++)Z[UWf[J]]=V_(h,3);Z=n$(Z);for(p=y+R;L.length<p;){J=Ggl(h,Z);switch(J){case 16:J=L[L.length-1];var O=V_(h,2)+3;break;case 17:J=0;O=V_(h,3)+3;break;case 18:J=0;O=V_(h,7)+11;break;default:O=1}for(;O>0;O--)L.push(J)}L.length!==p?h.error=!0:(R=L.slice(-R),L.length=y,HCb(h,L,R));break;case 1:HCb(h,GX,HO);break;case 0:wh(h,
h.G&7);L=V_(h,16);y=V_(h,16);(L^y)!==65535&&(h.error=!0);h.output.set(h.data.subarray(h.N,h.N+L),h.X);h.N+=L;h.X+=L;break;default:h.error=!0}u.X>u.output.length&&(u.output=new Uint8Array(u.X*2),u.X=0,u.N=0,u.B=!1,u.G=0,u.register=0)}u.output.length!==u.X&&(u.output=u.output.subarray(0,u.X));return u.error?new Uint8Array(0):u.output};
HCb=function(u,h,L){h=n$(h);L=n$(L);for(var Z=u.data,y=u.output,R=u.X,p=u.register,J=u.G,O=u.N;;){if(J<15){if(O>Z.length){u.error=!0;break}p|=(Z[O+1]<<8)+Z[O]<<J;O+=2;J+=16}var f=h[p&127];if(f<0)for(p>>=7;f<0;)f=h[(p&1)-f],p>>=1;else p>>=f&15;J-=f&15;f>>=4;if(f<256)y[R++]=f;else if(u.register=p,u.G=J,u.N=O,f>256){p=BO[f];p+=V_(u,rh[f]);O=Ggl(u,L);J=m2[O];J+=V_(u,zX[O]);if(rzj&&p<J)J=R-J,y.copyWithin(R,J,J+p);else for(O=R+p,f=R;f<O;f+=4)y[f]=y[f-J],y[f+1]=y[f-J+1],y[f+2]=y[f-J+2],y[f+3]=y[f-J+3];R+=
p;p=u.register;J=u.G;O=u.N}else break}u.X=R};
Ggl=function(u,h){if(u.G<7){var L=u.data,Z=u.N;Z>L.length&&(u.error=!0);u.register|=(L[Z+1]<<8)+L[Z]<<u.G;u.N+=2;u.G+=16}L=h[u.register&127];if(L>=0)return wh(u,L&15),L>>4;for(wh(u,7);L<0;)L=h[V_(u,1)-L];return L>>4};
V_=function(u,h){for(;u.G<h;){if(u.N>=u.data.length)return u.error=!0,0;u.register|=u.data[u.N++]<<u.G;u.G+=8}var L=u.register&(1<<h)-1;u.register>>=h;u.G-=h;return L};
wh=function(u,h){u.G-=h;u.register>>=h};
n$=function(u){for(var h=[],L=g.C(u),Z=L.next();!Z.done;Z=L.next())Z=Z.value,h[Z]||(h[Z]=0),h[Z]++;var y=h[0]=0;L=[];var R=0;Z=0;for(var p=1;p<h.length;p++)h[p]?Z=p:h[p]=0,y=y+h[p-1]<<1,L[p]=y,p>7&&(R+=h[p]);for(y=1;y<R;)y<<=1;h=128;Z=new Int16Array(128+(y+Z)*2);for(R=0;R<u.length;R++)if(p=u[R]){for(var J=L[p]++,O=y=0;O<p;O++)y=y<<1|J>>O&1;J=R<<4|p;if(p<=7)for(O=1<<7-p;O--;)Z[O<<p|y]=J;else{O=y&127;p-=7;for(y>>=7;p--;){Z[O]||(Z[O]=-h,h+=2);var f=y&1;y>>=1;O=f-Z[O]}Z[O]=J}}return Z};
BSw=function(u){var h,L,Z,y,R,p,J;return g.G(function(O){switch(O.G){case 1:if(!("DecompressionStream"in window))return O.return(g.eE(new g.dh(u)));h=new DecompressionStream("gzip");L=h.writable.getWriter();L.write(u);L.close();Z=h.readable.getReader();y=new It([]);case 2:return g.N(O,Z.read(),5);case 5:R=O.N;p=R.value;if(J=R.done){O.KI(4);break}y.append(p);O.KI(2);break;case 4:return O.return(y.oF())}})};
aU=function(u,h){this.G=u;this.Mm=h};
zqj=function(u){return pn(pn(Zc(function(){return Rd(u.Mm,function(h){return u.S6(u.G,h)})}),function(){return u.HC(u.G)}),function(){return u.ij(u.G)})};
mWn=function(u,h){return zqj(new aU(u,h))};
$A=function(u){cj.call(this,"onesie");this.lF=u;this.G={};this.X=!0;this.B=null;this.queue=new oU(this);this.T={};this.C=jfj(function(h,L){var Z=this;return function R(){var p,J,O,f,D,c,I,A,x,Q,S,v,T,U,z,d,W,t,yn,KV;return csn(R,function(u1){switch(u1.G){case 1:g.l1(u1,2);Z.lF.d4();p=function(w){return function(k){throw{name:w,message:k};}};
J=h.oF();g.Qn(u1,4,5);if(!L){u1.KI(7);break}return Jsn(u1,pn(dWl(Z.lF,J,Z.iv),p("DecryptError")).wait(),8);case 8:O=u1.N;case 7:if(!Z.lF.enableCompression){u1.KI(9);break}return Jsn(u1,pn(mWn((c=O)!=null?c:J,Z.lF.L().Gz),p("DecompressError")).wait(),10);case 10:f=u1.N;case 9:D=mv((A=(I=f)!=null?I:O)!=null?A:J,u2i);case 5:g.vi(u1,0,2);if(Q=(x=Z.lF.L())==null?void 0:x.Mm)((S=O)==null?void 0:S.buffer)===Q.exports.memory.buffer&&Q.free(O.byteOffset),((v=f)==null?void 0:v.buffer)===Q.exports.memory.buffer&&
Q.free(f.byteOffset);g.qL(u1,6);break;case 4:throw U=T=g.Xf(u1),new lZ("onesie.response.parse",{name:(t=U.name)!=null?t:"unknown",message:(yn=U.message)!=null?yn:"unknown",wasm:((z=Z.lF.L())==null?0:z.Mm)?((d=Z.lF.L())==null?0:(W=d.Mm)==null?0:W.Ew)?"1js":"1":"0",enc:Z.X,gz:Z.lF.enableCompression,webcrypto:!!C7()});case 6:return VJL(D),KV=g.S4(D.body),u1.return(KV);case 2:g.vi(u1),g.qL(u1,0)}})}()})};
ta=function(u){var h=u.queue;h.G.length&&h.G[0].isEncrypted&&!h.N&&(h.G.length=0);h=g.C(Object.keys(u.G));for(var L=h.next();!L.done;L=h.next()){L=L.value;var Z=u.G[L];if(!Z.vC){var y=u.queue;y.G.push({videoId:Z.videoId,formatId:L,isEncrypted:!1});y.N||Uw(y)}}};
sLY=function(u,h){var L=h.getLength(),Z=!1;switch(u.B){case 0:u.lF.j("html5_future_onesie_ump_handler_on_player_response")?pn(Rd(u.C(h,u.X),function(y){nyj(u.lF,y)}),function(y){u.lF.NT(y)}):u.d4(h,u.X).then(function(y){nyj(u.lF,y)},function(y){u.lF.NT(y)});
break;case 2:u.uh("ormk");h=h.oF();u.queue.decrypt(h);break;default:Z=!0}u.lF.LY&&u.lF.IH("ombup","id.11;pt."+u.B+";len."+L+(Z?";ignored.1":""));u.B=null};
VJL=function(u){if(u.tv!==1)throw new lZ("onesie.response.badproxystatus",{st:u.tv,webcrypto:!!C7(),textencoder:!!g.Vn.TextEncoder});if(u.j6!==200)throw new lZ("onesie.response.badstatus",{st:u.j6});};
w$Y=function(u){return new Promise(function(h){setTimeout(h,u)})};
eqw=function(u,h){var L=u.L();L=u.Z1&&L.j("html5_onesie_preload_use_content_owner");var Z=u.R1,y=w2(h.xI.experiments,"debug_bandaid_hostname");if(y)h=q4(h,y);else if((L===void 0?0:L)&&(Z==null?0:Z.url)&&!h.N){var R=AD(new g.cQ(Z.url));h=q4(h,R)}else h=(R=h.G.get(0))==null?void 0:R.location.clone();if(h&&u.videoId){R=ki(u.videoId);u=[];if(R)for(R=g.C(R),L=R.next();!L.done;L=R.next())u.push(L.value.toString(16).padStart(2,"0"));h.set("id",u.join(""));return h}};
ar1=function(u,h,L){L=L===void 0?0:L;var Z,y;return g.G(function(R){if(R.G==1)return Z=[],Z.push(h.load()),L>0&&Z.push(w$Y(L)),g.N(R,Promise.race(Z),2);y=eqw(u,h);return R.return(y)})};
$Ww=function(u,h,L,Z){Z=Z===void 0?!1:Z;u.set("cpn",h.clientPlaybackNonce);u.set("opr","1");var y=h.L();u.set("por","1");C7()||u.set("onem","1");h.startSeconds>0&&u.set("osts",""+h.startSeconds);Z||(y.j("html5_onesie_disable_partial_segments")&&u.set("oses","1"),h=y.j("html5_gapless_onesie_no_media_bytes")&&Wu(h)&&h.Z1,L&&!h?(h=L.audio,u.set("pvi",L.video.join(",")),y.j("html5_onesie_disable_audio_bytes")||u.set("pai",h.join(",")),sf||u.set("osh","1")):(u.set("oad","0"),u.set("ovd","0"),u.set("oaad",
"0"),u.set("oavd","0")))};
tJe=function(u,h,L,Z,y){y=y===void 0?!1:y;var R="https://youtubei.googleapis.com/youtubei/"+h.u9.innertubeApiVersion+"/player",p=[{name:"Content-Type",value:"application/json"}];Z&&p.push({name:"Authorization",value:"Bearer "+Z});p.push({name:"User-Agent",value:g.N7()});g.tn("EOM_VISITOR_DATA")?p.push({name:"X-Goog-EOM-Visitor-Id",value:g.tn("EOM_VISITOR_DATA")}):(L=L.visitorData||g.tn("VISITOR_DATA"))&&p.push({name:"X-Goog-Visitor-Id",value:L});(L=g.tn("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&p.push({name:"X-YouTube-Lava-Device-Context",
value:L});(h=w2(h.experiments,"debug_sherlog_username"))&&p.push({name:"X-Youtube-Sherlog-Username",value:h});u=qj(JSON.stringify(u));return{url:R,fR:p,postBody:u,txA:y,ph:y}};
Fsf=function(u,h,L,Z,y,R){var p=g.L7(u,gkl,u.ph?void 0:L.Mm),J={encryptedClientKey:h.G.encryptedClientKey,h_:!0,dl:!0,Cn:Wse(L,!!u.ph),Oc:L.experiments.tB("html5_use_jsonformatter_to_parse_player_response")};if(u.ph)J.WXB=p;else{u=h.encrypt(p);var O;if(((O=L.Mm)==null?void 0:O.exports.memory.buffer)===p.buffer&&u.byteOffset!==p.byteOffset){var f;(f=L.Mm)==null||f.free(p.byteOffset)}var D;u=((D=L.Mm)==null?void 0:D.f1(u))||u;p=J.Mk=u;(0,g.vC)();p=FUn(new WUi(h.G.X),p,h.iv);J.oD=p;J.iv=h.iv}h=Z.getVideoData();
L=JO({z7:L,G7:Z,hn:h.startSeconds*1E3});y={IL:J,Ha:L,onesieUstreamerConfig:y,kc:R,Uf:OK(h)};h.reloadPlaybackParams&&(y.reloadPlaybackParams=h.reloadPlaybackParams);return y};
bCL=function(u,h,L){var Z,y,R;return g.G(function(p){if(p.G==1)return Z=g.L7(h,gkl),g.N(p,Sbw(L,Z),2);if(p.G!=3)return y=p.N,g.N(p,X$b(L,y),3);R=p.N;return p.return({Mk:y,encryptedClientKey:L.G.encryptedClientKey,iv:L.iv,oD:R,h_:!0,dl:!0,Cn:Wse(u,!!h.ph),Oc:u.experiments.tB("html5_use_jsonformatter_to_parse_player_response")})})};
Eyb=function(u,h,L,Z,y,R){var p,J,O,f;return g.G(function(D){if(D.G==1)return g.N(D,bCL(L,u,h),2);p=D.N;J=Z.getVideoData();O=JO({z7:L,G7:Z,hn:J.startSeconds*1E3});f={IL:p,Ha:O,onesieUstreamerConfig:y,kc:R,Uf:OK(J)};J.reloadPlaybackParams&&(f.reloadPlaybackParams=J.reloadPlaybackParams);return D.return(f)})};
Wse=function(u,h){u=Dr(u.schedule,!0);h=h||!!C7()&&u>1572864;return"DecompressionStream"in window||!h};
FT=function(u,h){g.m.call(this);var L=this;this.G7=u;this.playerRequest=h;this.xI=this.G7.L();this.videoData=this.G7.getVideoData();this.logger=new g.F_("onesie");this.LY=this.xI.UU();this.d$=this.xI.XU;this.Jt=new XT(this.d$.G,this.xI.Gz,P9a(this.xI));this.xhr=null;this.state=1;this.g6=new aA;this.cC=!1;this.playerResponse="";this.u_=new el(this);this.fY=new $A(this);this.ZJ=this.xI.j("html5_onesie_check_timeout");this.jJ=new g.EM(this.bd,500,this);this.Xe=new g.EM(this.LR,1E4,this);this.DX=new g.EM(function(){if(!L.isComplete()){var Z=
WO(L);L.NT(new lZ("net.timeout",Z))}},g.Jl(this.xI.experiments,"html5_onesie_request_timeout_ms"));
this.Jv=new g.EM(this.Dp7,2E3,this);this.Z8="";this.t8=this.xf=!1;this.LL=this.G7.PP();this.n6="";this.Zt=this.j("html5_onesie_wait_for_media_availability");this.enableCompression=this.W$=this.Gx=!1;this.bZ=[];this.xt=this.Dz=-1;g.V(this.videoData,this);g.V(this,this.jJ);g.V(this,this.Xe);g.V(this,this.Jv);g.V(this,this.Jt);u=$i();sf&&u&&!this.xI.j("html5_disable_onesie_media_bytes")&&(this.rO=new Map);this.Py=new Map;this.RK=new Map;this.Ei=new Map;this.VU=new Map};
N4=function(u,h){var L;return(L=u.rO)==null?void 0:L.get(h)};
gyw=function(u,h,L){var Z;return g.G(function(y){if(y.G==1)return u.uh("oprd_s"),kgY(u)?g.N(y,vyl(u.Jt,h,L),3):(Z=u.Jt.decrypt(h,L),y.KI(2));y.G!=2&&(Z=y.N);u.uh("oprd_c");return y.return(Z)})};
dWl=function(u,h,L){u.uh("oprd_s");h=lrb(u.Jt).encrypt(h,L);Rd(h,function(){u.uh("oprd_c")});
return h};
uuY=function(u){return u.j("html5_onesie_host_probing")||u.LY?sf:!1};
nyj=function(u,h){u.uh("oprr");u.playerResponse=h;u.W$||(u.Zt=!1);b$(u)};
b$=function(u){if(!u.playerResponse)return!1;if(u.Gx)return!0;var h=u.videoData.j("html5_onesie_audio_only_playback")&&Fu(u.videoData);if(u.rO&&u.Zt){if(!u.rO.has(u.Z8))return!1;var L=u.rO.get(u.Z8),Z;if(Z=L){Z=!1;for(var y=g.C(L.kF.keys()),R=y.next();!R.done;R=y.next())if(R=L.kF.get(R.value))for(var p=g.C(R.U8),J=p.next();!J.done;J=p.next())J.value.ql>0&&(R.GD?Z=!0:h=!0);Z=!(h&&Z)}if(Z)return!1}u.uh("ofr");u.g6.resolve(u.playerResponse);if(!u.ZJ){var O;(O=u.DX)==null||O.start();u.Xe.start()}return u.Gx=
!0};
hHe=function(u){if(u.rO&&!u.j("html5_onesie_media_capabilities")){u.uh("ogsf_s");var h=Tts(u.G7.getVideoData(),function(Z,y){u.IH(Z,y)}),L=jBs(u.G7);
h.video=C01(L,h.video);u.uh("ogsf_c");if(h.video.length)return h;u.IH("ombspf","l."+L.N+";u."+L.G+";o."+L.X+";r."+L.reason)}};
kgY=function(u,h){return u.j("html5_onesie_sync_request_encryption")||(h==null?0:h.ph)||g.wS(u.xI)&&u.j("html5_embed_onesie_use_sync_encryption")?!1:!!C7()};
WO=function(u){if(!u.Nm)return{};var h=u.Nm.Vt(),L;h.d=(L=u.Nm.T7)==null?void 0:L.n0();h.shost=u.XF;h.ty="o";return h};
Lgj=function(u,h){var L,Z;(Z=(u=(L=u.rO)==null?void 0:L.get(h))==null)||(h=u.X?!1:u.X=!0,Z=!h);return!Z};
Ew=function(u,h,L,Z,y,R,p,J,O,f,D){g.m.call(this);var c=this;this.G7=u;this.nI=h;this.policy=L;this.audioTrack=Z;this.videoTrack=y;this.PX=R;this.N1=p;this.ZI=J;this.X=O;this.timing=f;this.Y=D;this.G=[];this.V={};this.jd=this.VA=!1;this.VI=new Set;this.T=this.aH=this.AB=this.IC=0;this.B=null;this.XB={JM:[],Qf:[]};this.gw={JM:[],Qf:[]};this.C=null;this.vX=[];this.zd={J97:function(){return c.G},
zGX:function(){return c.V},
vUI:function(){c.G.length=0},
ara:function(){return c.VI},
way:function(){return c.AB},
zcd:function(I){c.AB=I},
DII:function(I){c.T=I},
Rf:function(I){c.C=I}};
this.videoData=this.G7.getVideoData();this.policy.iX&&(this.T7=new VH(this.nI,this.policy,this.N1),g.V(this,this.T7))};
RHs=function(u,h){h=h===void 0?!1:h;if(Zgl(u,h)){u.policy.V&&u.nI.IH("sabrcrq",{create:1});var L=new PO(0,u.PX.S,u);u.policy.t4>0&&u.T++;h=yVV(u,L,h);u.G.push(h);var Z;(Z=u.T7)==null||wWn(Z,u.PX.S)}};
Ogb=function(u,h){var L=pun(u);if(u.policy.a5){var Z=u.XB;var y=u.gw}else Z=kA(u,u.audioTrack),y=kA(u,u.videoTrack);var R=[].concat(g.l(Z.JM),g.l(y.JM));u.policy.vJ&&u.C&&R.push.apply(R,g.l(u.vX));var p=[].concat(g.l(Z.Qf),g.l(y.Qf)),J=u.nI.Bi(),O,f,D=u.G7,c=u.PX,I=u.N,A=u.VI,x=u.policy,Q=u.nI.Vc,S=Fkn(u.nI)*1E3,v=(O=u.DI)==null?void 0:O.vL;O=(f=u.DI)==null?void 0:f.GI;var T;f=Number((T=u.X.B)==null?void 0:T.info.itag)||0;var U;T=Number((U=u.X.C)==null?void 0:U.info.itag)||0;h={G7:D,PX:c,JM:R,Qf:p,
hn:L,nextRequestPolicy:I,VI:A,Rb:x,Vc:Q,fX:S,vL:v,GI:O,IC:u.IC,isPrefetch:h||u.nI.isSuspended,Rw:f,GF:T,e_:J,xK:u.G7.fn()};L=u.nI.KE();R=ki(L);L&&(h.wi=R);if(L=u.G7.Q3())h.sM=L*1E3;var z;L=u.X;R=L.AB;if((L.Rb.N&&L.Rb.AX||((z=L.Rb)==null?0:z.G&&z.A4))&&!R)for(z=g.C(L.X),p=z.next();!p.done;p=z.next())if(p.value.tM){R=!0;break}z=mL(L.Rb)&&!R?[]:hqf(L,L.X);h.mA=z;z=u.X;mL(z.Rb)&&!z.RH?z=[]:(L=JzR(z),L.length===0&&(L=z.T),z=hqf(z,L));h.G0=z;h.eF=u.policy.vJ&&u.C?[u.C]:void 0;u.policy.nu&&(h.j9=Kg1(u.nI,
u.audioTrack),h.Vm=Kg1(u.nI,u.videoTrack));if(u.policy.T){Z=JVj(u,Z.JM,y.JM);var d;if(y=(d=u.B)==null?void 0:d.CR(Z))h.Im=y}u.policy.vX&&u.G.length>0&&u.G[0].bB()&&(h.X_y=u.G[0].O$());return h};
pun=function(u){var h,L=u.policy.C&&((h=u.nI)==null?void 0:h.gj());h=u.nI.getCurrentTime()||0;h=fsj(u,h);var Z=u.nI.df()||0;h+=Z;Z=MP(u.videoData)||g.C3(u.videoData);var y=0;L?(Z&&(y=Number.MAX_SAFE_INTEGER),u.videoData.T7&&(y=Math.ceil(u.videoData.vX*1E3))):y=Math.ceil(h*1E3);return Math.min(Number.MAX_SAFE_INTEGER,y)};
fsj=function(u,h){if(u.nI.isSeeking())return h;var L=u.G7.yQ();if(!L)return h;L=L.R7();if(L.length===0||Ll(L,h))return h;if(!Gb(u.videoTrack,h)&&!Gb(u.audioTrack,h))return u.nI.IH("sundrn",{b:0,lt:h}),h;for(var Z=h,y=Infinity,R=0;R<L.length;R++)if(!(L.start(R)>h)){var p=h-L.end(R);p<y&&(y=p,Z=L.end(R))}return Z!==h&&(u.nI.IH("sundrn",{bre:Z,lt:h}),y>=20)?(u.nI.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),h):Z};
JVj=function(u,h,L){var Z=u.nI.getCurrentTime()||0;h=D1V(u,h,Z);u=D1V(u,L,Z);return Math.min(h,u)};
D1V=function(u,h,L){u=u.nI.df()||0;h=g.C(h);for(var Z=h.next();!Z.done;Z=h.next()){var y=Z.value;Z=y.startTimeMs?y.startTimeMs/1E3-u:0;y=Z+(y.durationMs?y.durationMs/1E3:0);if(Z<=L&&L<=y)return y}return L};
Zgl=function(u,h){if(u.policy.t4>0){var L=Math.floor((0,g.vC)()/1E4);if(L===u.aH){if(u.T>=u.policy.t4){if(u.T===u.policy.t4){var Z={reason:"toomanyrequests"};Z.limit=u.T;u.nI.handleError("player.exception",Z);u.T+=1}return!1}}else u.aH=L,u.T=0}h=!h&&!c$(u.N1)&&!u.policy.h4;if(u.nI.isSuspended&&(u.nI.pp||h))return!1;if(u.RH&&(0,g.vC)()<u.RH)return u.policy.h4&&g.kK(u.nI.CN),!1;if(u.G.length>0&&(!u.policy.vX||u.G.length!==1||!u.G[0].bB()))return!1;var y;if((y=u.PX.S)==null||!AJ(y,u.policy,u.V,u.nI.Gl()))return!1;
y=u.policy.BG&&u.policy.N&&u.nI.m7();if(oX(u.audioTrack)&&oX(u.videoTrack)&&!y)return!1;if(u.policy.N&&u.S&&!u.nI.m7())return u.RP("ssap",{pauseontlm:1}),!1;if(gh(u,u.audioTrack)&&gh(u,u.videoTrack))return u.policy.X&&u.nI.IH("sabrHeap",{a:""+lf(u.audioTrack),v:""+lf(u.videoTrack)}),!1;if(y=u.policy.T)y=!1,u.Y.N===2?y=!0:u.Y.N===3&&(pun(u),u.nI.df(),h=JVj(u,CR(u.audioTrack,u.nI.isSeeking()).JM,CR(u.videoTrack,u.nI.isSeeking()).JM),L=u.Y,h>=L.X?(L.IH("sdai",{haltrq:h,est:L.X}),h=!0):h=!1,h&&(y=!0)),
y&&u.policy.V&&u.nI.IH("sabrcrq",{waitad:1});if(y)return!1;u.policy.a5&&(u.XB=kA(u,u.audioTrack),u.gw=kA(u,u.videoTrack));if(!u.N)return u.policy.V&&u.nI.IH("sabrcrq",{nopolicy:1}),!0;if(u.G7.Q3())return u.policy.V&&u.nI.IH("sabrcrq",{utc:1}),!0;if(u.X.S)return u.policy.V&&u.nI.IH("sabrcrq",{audio:1}),!0;if(!u.N.targetAudioReadaheadMs||!u.N.targetVideoReadaheadMs)return u.policy.V&&u.nI.IH("sabrcrq",{noreadahead:1}),!0;if(u.policy.C&&u.nI.gj())return u.policy.V&&u.nI.IH("sabrcrq",{seekToHead:1}),
!0;y=Math.min(Ue(u.nI,u.audioTrack)*1E3,u.N.targetAudioReadaheadMs);h=Math.min(Ue(u.nI,u.videoTrack)*1E3,u.N.targetVideoReadaheadMs);var R=Math.min(y,h);L=XV(u.audioTrack,!0)*1E3;var p=XV(u.videoTrack,!0)*1E3;if(u.policy.a5){var J=u.G7.getCurrentTime()*1E3;var O=cVn(u.XB.JM,J);J=cVn(u.gw.JM,J)}else O=L,J=p;var f=O<R&&!gh(u,u.audioTrack);R=J<R&&!gh(u,u.videoTrack);!(R=!f&&!R)&&(R=u.policy.N)&&(R=u.nI,!R.AM||xi(R.PX)?R=!1:(f=u7(R.AM),R=Isn(R,f)));if(R||u.policy.Gv&&AVY(u.nI)&&u.videoData.LV()||u.policy.gA&&
AVY(u.nI))return!1;u.policy.V&&(R=u.nI.IV(),R.car=O,R.vac=J,R.mar=y,R.mvr=h,R.tar=u.N.targetAudioReadaheadMs,R.tvr=u.N.targetVideoReadaheadMs,R.vbu=ji(((Z=u.G7.yQ())==null?void 0:Z.R7())||null),R.abh=L,R.vbh=p,u.nI.IH("sabrcrq",R));return!0};
kA=function(u,h){pun(u);u.nI.df();return CR(h,u.nI.isSeeking())};
cVn=function(u,h){var L=0,Z=-1;u=g.C(u);for(var y=u.next();!y.done;y=u.next())if(y=y.value,!(y.startTimeMs+y.durationMs<h)){if(Z<0&&y.startTimeMs>h||Z>=0&&y.AV>Z+1)break;L=Math.max(L,y.startTimeMs+y.durationMs);Z=Math.max(Z,y.I7)}return Math.max(0,L-h)};
yVV=function(u,h,L){var Z={N1:u.N1,hF:function(O,f){u.G7.oh(O,f)},
bu:u.policy.CE,UZ:u.policy.X};u.N1.N.V&&(Z.fg=(u.videoTrack.G.info.G3||0)+(u.audioTrack.G.info.G3||0));u.policy.gD&&(Z.pB=u.audioTrack.G.index.hL(),Z.bu=!1);var y=cz1(h,u.policy,u.V)?2:1;y!==u.AB&&(u.AB=y,x1a(u));L=Ogb(u,L);if((u.policy.N||u.policy.vX)&&u.policy.X&&L.VI){for(var R=y="",p=g.C(L.VI),J=p.next();!J.done;J=p.next())J=J.value,u.videoData.sabrContextUpdates.has(J)?y+="_"+J:R+="_"+J;u.nI.IH("sabrbldrqs",{ctxts:y,misctxts:R})}h.setData(L,u.nI.m7(),u.policy,u.V)||!u.policy.N&&!u.policy.vX||
u.nI.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);Z=new lE(u.policy,h,u.PX,u.V,u,Z,u.nI.PP(),u.policy.Gz?u.nI.m7():void 0);Sy(u.timing);u.policy.V&&u.nI.IH("sabrcrq",{rn:Z.kq(),probe:h.Ml()});return Z};
hy=function(u,h){if(h.ww()||u.ww())u.policy.qU||(u.policy.C?jL(u.nI):u.nI.pW());else{if(u.policy.X&&h.isComplete()&&h instanceof lE){var L=u.nI,Z=L.IH,y,R,p=Object.assign(h.Nm.Vt(),{rst:h.state,strm:h.xhr.dB(),d:(y=h.Nm.T7)==null?void 0:y.n0(),cncl:h.xhr&&h.wf.B?1:0,rqb:h.PT,cwt:h.CK,swt:(R=h.uU)==null?void 0:R.U6});y=Object.assign(xWL(h.info),p);Z.call(L,"rqs",y)}if(h.isComplete()&&h.Ml()&&h instanceof lE)u.policy.vj?h.nQ()?(h.dispose(),u.G.length===0?u.nI.pW():(u=u.G[0],u instanceof lE&&u.mI()&&
u.gB(!1))):h.qt()&&u.nI.handleError(h.xW(),h.zB()):(h.dispose(),u.nI.pW());else{if(h.Rk())h instanceof lE&&JJw(u.timing,h),x1a(u),Pte(u);else if(h.qt())L=u.G7.Q3(),h instanceof lE&&Aze(h.info)&&L&&u.nI.yn(L),h instanceof FT?u.G.pop():(L=1,h.canRetry()&&Wt(u.nI)&&(Ctn(u,h),L=0),u.nI.handleError(h.xW(),h.zB(),L));else{if(u.nI.isSuspended&&!h.isComplete())return;Pte(u)}h.ww()||h instanceof FT||(h.isComplete()?L=$c1(h,u.policy,u.V):(L=ap1(h,u.policy,u.V),L===1&&(u.VA=!0)),L!==0&&(Z=new PO(1,h.info.D3),
Z.NG=L===2,yVV(u,Z)));u.policy.nH&&!h.isComplete()?$U(u.nI):u.nI.pW()}}};
Pte=function(u){for(;u.G.length&&u.G[0].Sl(u.UX());){var h=u.G.shift();MGe(u,h);if(u.policy.T){var L=u;if(!L.policy.Sd&&h.Sl(L.UX())){var Z=h.kq();if(L.Sd!==Z){var y=h.GJ();h=y.Dz;var R=y.xt;y=y.isDecorated;!L.B||R<0||(L.Sd=Z,Z=Nb(L.Y,R/1E3,h),R=L.nI.df()||0,TN(L.Y,h,Z-R,y,L.B))}}}}u.G.length&&MGe(u,u.G[0])};
MGe=function(u,h){var L=new Set(h.J1(u.UX()));L=g.C(L);for(var Z=L.next();!Z.done;Z=L.next()){var y=Z.value;if(!(Z=!(h instanceof FT))){Z=u.X;var R=Z.PX.bP,p=Aa(Z.videoInfos,R);Z=KsY(Z,y,R)||p.includes(y)}if(Z&&(Z=h.DK(y,u.UX()),R=u.policy.vJ&&WX(Z[0].G.info),(!(!R&&u.policy.Qo&&Z.length>0&&(Z[0].G.info.GD()?XV(u.audioTrack):XV(u.videoTrack))>3)||h.isComplete())&&h.xD(y,u.UX()))){y=h.RQ(y,u.UX());if(u.policy.N){p=Z[0].G.info;var J=u.nI.m7();if(J&&p){var O=h.E1();J.api.j("html5_ssap_set_format_info_on_video_data")&&
O===YU(J)&&(p.GD()?J.playback.getVideoData().B=p:J.playback.getVideoData().N=p);if(J=LT(J.timeline,O))if(J=J[0].getVideoData())p.GD()?J.B=p:J.N=p}}y=g.C(y);for(p=y.next();!p.done;p=y.next())if(p=p.value,u.policy.X&&h instanceof FT&&u.nI.IH("omblss",{s:p.info.M1()}),R)J=u,J.videoData.bP()&&J.C&&xV(J.C)===xV(g.Fo(p.info.G.info,J.PX.bP))&&J.G7.publish("sabrCaptionsDataLoaded",p,J.Q0.bind(J));else{J=p.info.G.info.GD();var f=p.info.G;if(J){O=void 0;var D=u.X,c=(O=h.DM(u.UX()))==null?void 0:O.token;D.S=
!1;f!==D.C&&(D.C=f,D.IA(f,D.audioTrack,c))}else O=void 0,jLn(u.X,f,(O=h.DM(u.UX()))==null?void 0:O.token);O=J?u.audioTrack:u.videoTrack;h instanceof FT&&(O.V=!1,h instanceof FT&&(J?hRn(u.timing):jWe(u.timing)));try{Pt(O,Z,p)}catch(I){p=Xo(I),u.nI.handleError(p.errorCode,p.details,p.severity),O.A2(),u.iY(!1,"pushSlice"),jL(u.nI)}}}}};
Ctn=function(u,h){u.policy.vX?u.G.splice(u.G.indexOf(h)).forEach(function(L){L.dispose()}):(u.G.pop(),h==null||h.dispose())};
igV=function(u,h,L){for(var Z=[],y=0;y<u.G.length;y++)h&&u.G[y]instanceof FT?Z.push(u.G[y]):(u.policy.V&&u.nI.IH("sabrcrq",{d:u.G[y].kq(),src:L}),u.G[y].dispose());u.G=Z};
QBn=function(u,h){h&&h.type&&(u.videoData.sabrContextUpdates.set(h.type,h),h.sendByDefault&&u.VI.add(h.type))};
lsV=function(u,h,L){h.uB(L.b7,L.version)?u.videoData.zI=L.version||"":u.nI.IH("ssap",{v:L.version,tlnu:1})};
x1a=function(u){u.VI.clear();if(u.videoData.sabrContextUpdates.size>0)for(var h=g.C(u.videoData.sabrContextUpdates.keys()),L=h.next();!L.done;L=h.next()){L=L.value;var Z=void 0;((Z=u.videoData.sabrContextUpdates.get(L))==null?0:Z.sendByDefault)&&u.VI.add(L)}if(u.policy.vX&&u.G.length)for(h=g.C(u.G),L=h.next();!L.done;L=h.next())(L=L.value.O$())&&L.type&&L.sendByDefault&&u.VI.add(L.type)};
SXj=function(u){u.policy.Td&&(u.DI=void 0,u.IC=0)};
Xun=function(u,h){if(h.qt()||h.ww()){var L=u.nI,Z=L.IH,y=h.state;u=u.UX();var R,p;if((h=(R=h.rO)==null?void 0:R.get(u))==null)h=void 0;else{R=0;u=h.J1();for(var J=0;J<u.length;J++){var O=void 0;R+=((O=h.kF.get(u[J]))==null?void 0:O.bytesReceived)||0}h=R}h=(p=h)!=null?p:-1;Z.call(L,"sabromb",{s:y,tbytes:h})}else u.G.push(h),h.bZ.push(u),Sy(u.timing),u.policy.f3&&h.hv&&u.hG(h.hv)};
gh=function(u,h){return u.policy.t6?!u.nI.hh&&zS(h)&&(h.gH()!==zS(h)||u.nI.isSuspended):!1};
vms=function(u){var h="";u=g.C(u);for(var L=u.next();!L.done;L=u.next()){L=L.value;h+=".cid."+L.clipId;if(L.MI){var Z=L.MI;h+=".vid."+Z.Vi+(".pst."+Z.dh)+(".ps."+Z.uI)+(".lst."+Z.RFd)+(".ld."+Z.EN)+(".ls."+Z.pQ)}L.QP&&(h+=".nonv."+L.QP.Ku)}return h};
qXe=function(u,h,L,Z,y){this.nI=u;this.policy=h;this.schedule=L;this.II=Z;this.Y=y;this.AB=NaN;this.N=this.V=this.B=null;this.G=this.T=this.C=this.startTimeSecs=NaN;this.X=!1;this.S=NaN};
TCn=function(u,h,L,Z,y,R){return h.fV&&h.Uo&&L===3?new qXe(u,h,Z,y,R):null};
YXl=function(u,h){if(u.policy.Ry){var L=h.info.G3,Z=Dr(u.schedule);h=h.index.hL();L=Math.max(1,Z/L);u.S=Math.round(Math.max(((L-1)*h+u.policy.Oo)/L,h-u.policy.T2)*1E3)}};
U1L=function(u,h){var L=Date.now()/1E3,Z=L-u.startTimeSecs,y=L-u.C,R=y>=u.policy.Bd,p=!1;if(R){var J=0;!isNaN(h)&&h>u.T&&(J=h-u.T,u.T=h);J/y<u.policy.Nd&&(p=!0);u.C=L}L=Z>=u.policy.T2&&!u.X;if(!R&&!L&&oml(u,h))return NaN;L&&(u.X=!0);a:{Z=p;L=(0,g.vC)()/1E3-(u.II.NO()||0)-u.V.G-u.policy.Oo;R=u.N.startTime;L=R+L;if(Z){if(isNaN(h)){Zn(u,NaN,"n",h);R=NaN;break a}Z=h-u.policy.wD;Z<L&&(L=Z)}else u.X&&(Z=L+u.policy.Oo-u.AB+u.policy.dA,isNaN(h)||(Z=Math.max(Z,Math.min(L,h-u.policy.wD))),L=Z);R=L=Math.max(L,
R)}u.G=R;if(isNaN(u.G))return u.clear(),NaN;if(!p&&oml(u,h))return NCV(u,h),NaN;if(u.G<=u.N.startTime)return Zn(u,NaN,"y",h),u.clear(),NaN;if(!u.Y(u.G,!1))return!NCV(u,h)&&p&&(Zn(u,NaN,"t",h),u.clear()),NaN;p=u.G;Zn(u,p,"s",h);u.clear();return p};
NCV=function(u,h){return u.Y(u.G,!0)?!1:(Zn(u,NaN,"ns",h),u.clear(),!0)};
oml=function(u,h){return isNaN(h)?!0:isNaN(u.G)?!1:h<u.G+(u.X?u.policy.wD:u.policy.ND)};
Zn=function(u,h,L,Z){var y=u.B.zB();y.ssr_sk=(h*1E3).toFixed(0);y.ssr_t=(u.G*1E3).toFixed(0);y.ssr_r=L;y.ssr_st=(u.startTimeSecs*1E3).toFixed(0);y.ssr_n=(0,g.vC)().toFixed(0);y.ssr_f=(u.V.G*1E3).toFixed(0);y.ssr_fa=u.X?"1":"0";y.ssr_o=(u.II.NO()*1E3||0).toFixed(0);y.ssr_v=(Z*1E3).toFixed(0);h=u.N.G.index;h.i_(u.N.yA,!0)&&(y.ssr_ist=(h.getStartTime(u.N.yA)*1E3).toFixed(0),y.ssr_id=(h.getDuration(u.N.yA)*1E3).toFixed(0));u.nI.IH("ssr",y)};
Gwa=function(){var u={};if(window.performance){var h=window.performance.memory;h&&(u.jsTotal=h.totalJSHeapSize,u.jsUsed=h.usedJSHeapSize,u.jsLimit=h.jsHeapSizeLimit,u.msTotal=h.totalMediaSourceSize,u.msLimit=h.mediaSourceSizeLimit,u.msUsed=h.usedMediaSourceMemorySize)}var L;if((L=window.h5vcc)==null?0:L.cVal)u.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),u.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),u.cbJs=window.h5vcc.cVal.getValue("Memory.JS");return u};
g.Rq=function(u,h,L,Z,y,R,p,J,O,f){J=J===void 0?!1:J;g.m.call(this);var D=this;this.G7=u;this.schedule=h;this.policy=L;this.PX=Z;this.RH=O;this.vj=f;this.oH=null;this.T7=this.vX=this.DI=this.hh=0;this.Xr=this.pp=this.isSuspended=!1;this.ZI="";this.Td={};this.Ca=!1;this.xl=0;this.S=null;this.e7=this.aH=!1;this.Vc=0;this.Sd=!1;this.gw=this.fI=0;this.La=null;this.xz=function(){return D.G7.xz()};
this.timing=new uGY(this.vj);this.Y=new Ct(this.schedule,this.policy);this.wm=new g.EM(this.pW,0,this);this.vJ=new g.EM(this.pW,this.policy.nH,this);this.CN=new g.EM(this.pW,1E3,this);this.nH=new g.EM(this.pW,void 0,this);this.VA=new g.EM(function(){D.policy.h4&&D.isSuspended||D.pW()},1E4,this);
this.mz=new g.EM(this.jlI,250,this);this.C=this.currentTime=NaN;this.UE=new hz(5);this.XB=this.timestampOffset=NaN;this.logger=new g.F_("dash");this.eq=Infinity;this.zd={getAudioTrack:function(){return D.audioTrack},
Imi:function(){return D.videoTrack},
getManifest:function(){return D.PX},
Ylg:function(){return D.X},
pW:function(){D.pW()},
Am:function(){D.hh=0;D.Am()},
fma:function(c){return yD(D,D.videoTrack,D.oH.N,c)}};
u=O&&O.J1();O&&(F$1(O,this.PX,this.policy),this.XB=Date.now());this.G=new VW(this,this.Y,L,this.PX,y,u);L=lWV(this.G,R,p&&p.id);this.audioTrack=new ct(this,this.policy,L.audio,this.timing);this.videoTrack=new ct(this,this.policy,L.video,this.timing);this.videoTrack.B.gw=this.audioTrack.MZ();this.jd={updateend:this.WW,error:this.SUH};g.V(this,this.wm);g.V(this,this.vJ);g.V(this,this.CN);g.V(this,this.nH);g.V(this,this.VA);L=this.policy.Mh&&this.policy.yI?!ckn(this.videoTrack.G.info):!1;this.iP=zRb({vx:this.policy.S.vx||
L,yI:this.policy.yI&&!L,va:this.policy.va});this.V=TCn(this,this.policy,this.iP,this.schedule,this.UE,function(c,I){return Hgi(D,c,I)});
this.B=new Xd(this,this.PX,this.policy,this.videoTrack,this.audioTrack,J,this.G7.getVideoData().KZ());this.eD=new q3(this,this.PX,this.videoTrack,this.audioTrack,this.policy);J=this.policy.qC?this.G7.getVideoData().Ee:null;this.T=new nR(this,this.policy,this.videoTrack,this.audioTrack,this.Td,this.B,this.timing,this.Y,this.schedule,this.PX,this.G,this.V,L,J);g.V(this,this.T);this.N=new bf(this,this.policy,this.videoTrack,this.audioTrack,this.PX,y,Fu(this.G7.getVideoData()),p==null?void 0:p.id);g.V(this,
this.N);yzY(this.N,R);this.X=new Ew(this.G7,this,this.policy,this.audioTrack,this.videoTrack,this.PX,this.schedule,this.G,this.N,this.timing,this.B);g.V(this,this.X);this.AB=this.G7.pH.bL.b_;this.policy.C||rVj(this);this.logger.debug("Created")};
rVj=function(u){var h,L;if((h=u.AB)==null?0:(L=h.KN)==null?0:L.itagDenylist){var Z;u.Ar((Z=u.AB)==null?void 0:Z.KN.itagDenylist)}var y;if((y=u.AB)==null?0:y.playbackStartPolicy){var R,p;dL(u.policy,(R=u.AB)==null?void 0:R.playbackStartPolicy,3,(p=u.AB)==null?void 0:p.kq())}if(u.policy.S3){h=u.UX();var J;(L=h?(J=u.AB)==null?void 0:J.RK.get(h):void 0)&&u.X.tG(L)}if(!u.PX.Y){var O;J=(O=u.AB)==null?void 0:O.TT;(J==null?0:J.Gr)&&(J==null?0:J.oi)&&u.PX.bP&&A3(u.PX,J.Gr,J.oi)}var f;((f=u.AB)==null?0:f.VU)&&
(O=u.AB.VU.get(u.UX()||""))&&u.PX&&O.formatId&&(u=u.PX.X.get(xV(O.formatId)))&&(u.info.debugInfo=O.debugInfo)};
BCw=function(u,h){if(u.policy.N&&!u.policy.Cl)return!1;var L=xV(g.Fo(h.G.info,u.PX.bP)),Z,y=((Z=u.RH)==null?void 0:Z.DK(L))||[];if(y.length===0)return u.IH("ombmsi",{}),!1;y=new oW(y);if(Z=!u.policy.RH||isFinite(u.getCurrentTime())||u.G7.Q3()){a:{Z=u.getCurrentTime();y=g.C(y.YI);for(var R=y.next();!R.done;R=y.next())if(R=R.value,R.type===3&&Z>=R.ob&&Z<=R.pZ){Z=!0;break a}Z=!1}Z=!Z}if(Z)return u.IH("ostmf",{ct:u.getCurrentTime(),a:h.G.info.GD()}),!1;(u=u.RH)!=null&&(u.kF.get(L).rb=!0);return!0};
zHs=function(u){if(!u.PX.bP)return!0;var h=u.G7.getVideoData();if(h.j("html5_skip_live_preroll_onesie")&&u.G7.e3()||h.j("html5_skip_live_preroll_onesie_post_live")&&u.G7.e3()&&(h.Ph||h.isPremiere))return u.IH("ombpa",{}),!1;var L,Z;if(u.policy.gb&&!!((L=u.AB)==null?0:(Z=L.TT)==null?0:Z.Vx7)!==u.PX.Ph)return u.IH("ombplmm",{}),!1;L=h.iP||h.liveUtcStartSeconds||h.A4;if(u.PX.Ph&&L)return u.IH("ombplst",{}),!1;if(u.PX.Y)return u.IH("ombab",{}),!1;L=Date.now();return xi(u.PX)&&!isNaN(u.XB)&&L-u.XB>u.policy.IT*
1E3?(u.IH("ombttl",{}),!1):u.PX.vr&&u.PX.B||!u.policy.Md&&u.PX.isPremiere||!(Rb(h)===0||u.policy.G&&h.j("html5_enable_onesie_media_for_sabr_proxima_optin"))||h.j("html5_disable_onesie_media_for_mosaic")&&Vq(h)||h.j("html5_disable_onesie_media_for_ssdai")&&h.isDaiEnabled()&&h.enableServerStitchedDai?!1:!0};
m1a=function(u,h){var L=h.G,Z=u.PX.bP;if(zHs(u))if(u.RH&&u.RH.kF.has(xV(g.Fo(L.info,Z)))){if(Z=xV(g.Fo(L.info,Z)),BCw(u,h)){var y=new oW(u.RH.DK(Z)),R=function(p){try{if(p.qt())u.handleError(p.xW(),p.zB()),Tb(h,p),U4(p.info)&&eg(u.T,h,L,!0),u.pW();else if(aX(u.T,p)){var J;(J=u.B)==null||cJi(J,p.info,u.S);u.pW()}}catch(O){p=Xo(O),u.handleError(p.errorCode,p.details,p.severity),u.A2()}};
L.X=!0;N8(y)&&(xU(h,new TS(u.policy,Z,y,u.RH,R)),Sy(u.timing))}}else u.IH("ombfmt",{})};
pT=function(u,h){h=h||u.videoTrack&&u.videoTrack.N&&u.videoTrack.N.startTime||u.getCurrentTime();var L=th,Z=u.videoTrack,y=u.G;h=y.nextVideo&&y.nextVideo.index.K0(h)||0;y.gw!==h&&(y.T7={},y.gw=h,n4(y,y.G));h=!y.G.isLocked()&&y.Y>-1&&(0,g.vC)()-y.Y<y.policy.Yp*1E3;var R=y.nextVideo&&ey(y,y.nextVideo.info)*3<Qt(y.XB);if(!h||R)da(y),sK(y),y.RH=y.RH||y.nextVideo!==y.X;y.nextVideo&&!y.nextVideo.index.isLoaded()&&(y.gw=-1);L(u,Z,y.nextVideo);th(u,u.audioTrack,u.G.N)};
KT=function(u,h){u.pp=h;u.policy.gw||(u.logger.debug("Suspended."),u.isSuspended=!0,u.policy.zI&&(u.CN.stop(),u.vJ.stop(),u.wm.stop()),u.policy.h4&&u.VA.stop())};
Y2=function(u,h,L,Z){u.policy.T&&u.iY(!1,"rollback");if(u.PX.isManifestless){var y=vt(u.audioTrack,Z,L,h),R=vt(u.videoTrack,Z,L,h);u.policy.ol||(R&&IV(u.PX,Z,!0),y&&IV(u.PX,Z,!1));u.IH("sdai",{rollbk2_seg:Z,rbt:L.toFixed(3),lt:h.toFixed(3),a:y,v:R});(y||R)&&u.policy.T&&jL(u)}};
d1b=function(u){u.logger.debug("Rebuffering.");u.Xr=!0;if(u.policy.xl&&u.oH){var h,L,Z,y;u.IH("lr_rb",{c:u.getCurrentTime(),s:u.isSeeking(),ab:ji(u.oH.G.QQ()),ala:(h=Ah(u.audioTrack))==null?void 0:h.M1(),alr:(L=u.audioTrack.N)==null?void 0:L.M1(),vb:ji(u.oH.N.QQ()),vla:(Z=Ah(u.videoTrack))==null?void 0:Z.M1(),vlr:(y=u.videoTrack.N)==null?void 0:y.M1()})}u.G7.Gl()!==0&&u.IH("sps_rebuffer",{c:u.getCurrentTime()})};
VGf=function(u){u.policy.Ca=!1;try{u.Am()}catch(h){g.UZ(h)}};
nmf=function(u){return u.policy.G&&u.policy.N&&(!fl()&&u.policy.WS||u.policy.iZ)};
eHf=function(u,h,L,Z){L=L===void 0?!1:L;Z=Z===void 0?!1:Z;u.policy.gw&&(u.logger.debug("disable updateMetadataWithoutMediaSource"),u.policy.T7&&u.IH("loader",{setsmb:0}),u.A2(),u.policy.gw=!1);u.logger.debug("attaching media source");sB1(u,Z);if(nmf(u))u.IH("ssap",{delaysb:1}),u.oH=h;else{if(!sF(h)){var y=zS(u.videoTrack);y=y?y.info.G:u.videoTrack.G;var R=zS(u.audioTrack);R=R?R.info.G:u.audioTrack.G;u.policy.N&&u.IH("ssap",{initsb:1,v:y.info.id,vf:y.info.QA,a:R.info.id,af:R.info.QA});Qrf(h,y.info,
R.info,u.policy.Mr)}wu1(u,h,L,Z);try{u.pW()}catch(p){g.UZ(p)}}};
wu1=function(u,h,L,Z){L=L===void 0?!1:L;Z=Z===void 0?!1:Z;IX(u.videoTrack,h.N||null,Z);IX(u.audioTrack,h.G||null,Z);u.oH=h;u.oH.B=!0;L||u.resume();h.G.Cm(u.jd,u);h.N.Cm(u.jd,u)};
sB1=function(u,h){h=h===void 0?!1:h;u.oH&&u.oH.G&&u.oH.N&&(u.oH.G.u6(u.jd,u),u.oH.N.u6(u.jd,u));IX(u.audioTrack,null,h);IX(u.videoTrack,null,h);u.oH&&(u.oH.B=!1);u.oH=null};
asi=function(u){u.oH&&u.oH.XE()&&(u.zb(),u.policy.HN&&u.handleError("fmt.unplayable",{unexpected:1},1))};
tGV=function(u,h){if(!u.ww())if(u.policy.G){if(!Rqb(u.N,h)){var L=u.N.N;yzY(u.N,h);var Z=!1;Z=h.isLocked()&&h.reason==="m"&&p$a(u.N,h.G);var y=u.policy.jY&&h.reason==="l";L=L.G>h.G&&h.reason==="b";Z||y||L?(u.G7.D2({reattachOnConstraint:Z?"u":y?"drm":"perf",lo:h.N,up:h.G}),u.policy.RF||(u.N.G.N=!1)):(u.policy.RF&&(u.N.G.N=!1),jL(u))}}else if(!S4R(u.G,h)&&u.videoTrack){u.logger.debug(function(){return"Setting constraint: r="+h.reason+" u="+h.G});
L=u.G.G;$1R(u,vVb(u.G,h));pT(u);Z=h.isLocked()&&h.reason==="m"&&u.G.RH;y=u.policy.jY&&h.reason==="l"&&Nu(u.videoTrack);L=L.G>h.G&&h.reason==="b";var R=u.G.ZI&&!fl();Z||y||L||R?u.G7.D2({reattachOnConstraint:Z?"u":y?"drm":R?"codec":"perf"}):jL(u)}};
Wgb=function(u,h,L){if((!u.oH||dM(u.oH)&&!u.policy.Hp)&&!u.eD.isSeeking()&&(u.policy.G||Nu(h)&&h.G.c_()&&u.G.AB)){var Z=u.getCurrentTime()+Qde(u.Y,h,L);u.logger.debug(function(){return"Clearing back to "+Z.toFixed(3)});
qfe(h,Z)}};
$1R=function(u,h){h&&(u.logger.debug(function(){return"Logging new format: "+gF(h.video.info)}),FgY(u.G7,new Hj(h.video,h.reason)));
if(u.G.VA){var L=oVb(u.G,"a");u.G7.N6(new Hj(L.audio,L.reason))}};
jL=function(u){g.kK(u.wm)};
$U=function(u){u.policy.nH&&u.policy.va&&Math.min(vin(u.videoTrack),vin(u.audioTrack))*1E3>u.policy.uc?g.kK(u.vJ):u.pW()};
bgL=function(u,h){var L=(0,g.vC)()-h,Z=XV(u.audioTrack,!0)*1E3,y=XV(u.videoTrack,!0)*1E3;u.logger.debug(function(){return"Appends paused for "+L});
if(u.policy.X&&(u.IH("apdpe",{dur:L.toFixed(),abuf:Z.toFixed(),vbuf:y.toFixed()}),zb(u.policy))){var R=Qt(u.Y);u.IH("sdps",{ct:h,ah:Z.toFixed(),vh:y.toFixed(),mr:lo(u.Y,u.Xr,R),bw:R.toFixed(),js:u.isSeeking(),re:+u.Xr,ps:(u.policy.Yy||"").toString(),rn:(u.policy.UV||"").toString()})}};
Em1=function(u){if(u.policy.N&&Ht(u.videoTrack)&&Ht(u.audioTrack))return"ssap";if(G9j(u.videoTrack))return u.logger.debug("Pausing appends for server-selectable format"),"ssf";if(u.policy.VA&&rL(u.videoTrack)&&rL(u.audioTrack))return"updateEnd";if(oX(u.audioTrack)||oX(u.videoTrack)&&u.videoTrack.G.info.QA!=="f")return"";if(u.eD.isSeeking()){var h=u.Y;var L=u.videoTrack;var Z=u.audioTrack;if(h.policy.G){var y=h.policy.XU;zb(h.policy)&&(y=lo(h,!1,Qt(h)));h=y;L=XV(Z,!0)>=h&&XV(L,!0)>=h}else L.X.length||
Z.X.length?(y=L.G.info.G3+Z.G.info.G3,y=10*(1-Qt(h)/y),h=Math.max(y,h.policy.XU),L=XV(Z,!0)>=h&&XV(L,!0)>=h):L=!0;if(!L)return"abr";L=u.videoTrack;if(L.X.length>0&&L.B.N.length===1&&jVw(L.B).info.C<L.jd)return"seek"}if(u.policy.T&&B2n(u.videoTrack,u.B)&&B2n(u.audioTrack,u.B))return"ssdai";L=!u.policy.Mt||u.getCurrentTime()<10;u.policy.G||(L=L||u.videoTrack.G.info.video.G>360);Z=zb(u.policy)&&u.policy.I8;if(!u.Xr||!Z&&L)return"";L=u.policy.Mt;zb(u.policy)&&(L=lo(u.Y,u.Xr,Qt(u.Y)));L=Yfs(u.videoTrack,
u.getCurrentTime(),L)||Yfs(u.audioTrack,u.getCurrentTime(),L);return zb(u.policy)?L?"mbnm":"":(u.videoTrack.X.length>0||u.audioTrack.X.length>0||sa(u.T,u.videoTrack,u.audioTrack)||sa(u.T,u.audioTrack,u.videoTrack))&&L?"nord":""};
kwj=function(u){if(u.V){var h=u.V.pW(u.audioTrack,ys(u.oH.N.QQ()));h&&u.G7.seekTo(h,{zl:!0,Ek:"pollSubsegmentReadahead",fm:!0})}};
yFi=function(u,h,L){if(u.policy.VA&&rL(h))return!1;if(L.N8())return!0;if(!L.XZ())return!1;var Z=zS(h);if(!Z||Z.info.type===6)return!1;var y=u.policy.Jf;if(y&&!Z.info.B){var R=Z.info.ob-u.getCurrentTime();if(Z.info.C<R*y)return!1}var p;if(u.policy.Ax||((p=u.B)==null?0:AJs(p,h,Z.info.yA)))u.T7=0;else return u.eD.isSeeking()&&jL(u),u.T7=u.T7||(0,g.vC)(),!1;if(!yD(u,h,L,Z.info))return!1;if(u.PX.N&&Z.info.N===0){if(y=gmb(h,L,Z))R=Ah(h),u.IH("initchg",{it:Z.info.G.info.id,sr:!!R&&R.G===Z.info.G,ty:Z.info.type,
seg:Z.info.yA});R=g.$6(Z.info.G.info);u.policy.qr&&R&&!y&&ils(Z)}R=u.V&&!!u.V.B&&h.G.info.audio;y=u.PX.isManifestless||Z.T;if(!(u.PX.N&&Z.info.N!==0||y&&!R)&&uPn(u,h,L,Z))return!0;if(R)return!1;R=Ue(u,h);R=u.getCurrentTime()+R;if(Z.info.ob>R)return u.policy.G&&jbb(u,h),u.policy.Ny&&r_n(h.B,R,!1),!1;hUL(u,h);var J;u.policy.jx&&L===((J=u.oH)==null?void 0:J.G)&&u.Sd&&(L.wR()===0?(u.Sd=!1,u.policy.jx=!1):u.fI=L.wR());if(!LnL(u,L,Z,h))return!1;u.policy.VA&&Z.info.iW()?(u.G7.L().UU()&&u.IH("eosl",{ls:Z.info.M1()}),
Z.isLocked=!0):(h.Gp(Z),Y4R(u.G,Z.info),u.logger.debug(function(){return"Appended "+Z.info.M1()+", buffered: "+ji(L.QQ())}));
y&&Z3s(u,Z.info.G.je);return!0};
jbb=function(u,h){h===u.videoTrack?u.vX=u.vX||(0,g.vC)():u.DI=u.DI||(0,g.vC)()};
hUL=function(u,h){h===u.videoTrack?u.vX=0:u.DI=0};
LnL=function(u,h,L,Z){var y=u.policy.xl?(0,g.vC)():0,R=L.T&&L.info.G.G||void 0,p=L.G;L.T&&(p=RUs(u,L,p)||p);var J=p.oF();p=u.policy.xl?(0,g.vC)():0;h=pzf(u,h,J,L.info,R);(Z=Z.Y)!=null&&(R=L.info,y=p-y,p=(0,g.vC)()-p,!Z.N||e6L(Z.N,R)&&Z.N.yA===R.yA||Z.flush(),Z.B+=y,Z.X+=p,y=1,!Z.N&&R.N&&(y=2),tO(Z,y,h),p=Math.ceil(R.N/1024),y===2&&Z.G.add(p),Z.G.add(Math.ceil((R.N+R.X)/1024)-p),Z.N=R);u.gw=0;if(h===0)return u.aH&&(u.logger.debug("Retry succeed, back to normal append logic."),u.aH=!1,u.e7=!1),u.xl=
0,!0;if(h===2||h===5)return KnV(u,"checked",h,L.info),!1;if(h===1){if(!u.aH)return u.logger.debug("QuotaExceeded, retrying."),u.aH=!0,!1;if(!u.e7)return u.e7=!0,u.G7.seekTo(u.getCurrentTime(),{Ek:"quotaExceeded",fm:!0}),!1;L.info.Wr()?(y=u.policy,y.aH=Math.floor(y.aH*.8),y.XB=Math.floor(y.XB*.8)):(y=u.policy,y.e7=Math.floor(y.e7*.8),y.XB=Math.floor(y.XB*.8));u.policy.G?Bj(u.N.G,L.info.G,!1):wa(u.G,L.info.G)}u.G7.D2({reattachOnAppend:h});return!1};
RUs=function(u,h,L){var Z;if(Z=u.policy.ej&&u.oH&&!u.oH.S&&!u.G7.W1())h=h.info.G.info,Z=h.d1()&&nA(h)&&h.video&&h.video.width<3840&&h.video.width>h.video.height;if(Z&&(u.oH.S=!0,Y6('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return L=gVf(L),u.policy.X&&u.IH("sp4k",{s:!!L}),L};
KnV=function(u,h,L,Z){var y="fmt.unplayable",R=1;L===5||L===3?(y="fmt.unparseable",u.policy.G?!Z.G.info.video||zN(u.N.G).size>0||Bj(u.N.G,Z.G,!1):!Z.G.info.video||zN(u.G.T).size>0||wa(u.G,Z.G)):L===2&&(u.xl<15?(u.xl++,y="html5.invalidstate",R=0):y="fmt.unplayable");Z=T5(Z);var p;Z.mrs=(p=u.oH)==null?void 0:wM(p);Z.origin=h;Z.reason=L;u.handleError(y,Z,R)};
xcY=function(u,h,L,Z,y){var R=u.PX;var p=u.policy.G,J=!1,O=-1,f;for(f in R.G){var D=WX(R.G[f].info)||R.G[f].info.Wr();if(Z===D)if(D=R.G[f].index,D.i_(h.yA)){J=D;var c=h,I=J.Pb(c.yA);I&&I.startTime!==c.startTime?(J.segments=[],J.j1(c),J=!0):J=!1;J?O=h.yA:!h.pending&&p&&(c=D.getDuration(h.yA),c!==h.duration&&(R.publish("clienttemp","mfldurUpdate",{itag:R.G[f].info.itag,seg:h.yA,od:c,nd:h.duration},!1),D.j1(h),J=!0))}else D.j1(h),J=!0}O>=0&&(p={},R.publish("clienttemp","resetMflIndex",(p[Z?"v":"a"]=
O,p),!1));R=J;dmf(u.eD,h,Z,R);u.B.Nq(h,L,Z,y);h.yA===u.PX.vr&&R&&fS(u.PX)&&h.startTime>fS(u.PX)&&(u.PX.vX=h.startTime+(isNaN(u.timestampOffset)?0:u.timestampOffset),u.eD.isSeeking()&&u.eD.G<u.PX.yF()&&u.eD.seek(u.PX.yF(),{}))};
yD=function(u,h,L,Z){var y=Ah(h);!y||y.B||va(y,Z)||(L.abort(),(h=h.Y)!=null&&(tO(h,4),h.flush()));if(!L.Tb()||fl())try{if(u.policy.X2){if(L.qB(Z.G.info.containerType,Z.G.info.QA)){if(u.policy.MF&&L.L7())return!1;u.IH("ssap",{chgtp:Z.G.info.containerType,cf:Z.G.info.QA,oldtp:L.Tb(),oldcf:L.h5()});L.wF(Z.G.info.containerType,Z.G.info.QA,Z.G.info.mimeType)}}else L.C4(Z.G.info.containerType,Z.G.info.mimeType)}catch(R){return L=R,g.G3(L),u.IH("ctexp",{name:L.name,msg:L.message}),!1}else Z.G.info.containerType!==
L.Tb()&&u.IH("ctu",{ct:fl(),prev_c:L.Tb(),curr_c:Z.G.info.containerType});h=Z.G.B;u.policy.fE&&h&&(Z=0+h.duration,h=-h.G,0===L.C$()&&Z===L.fp()||L.Om(0,Z),h!==L.df()&&(L.Rm(h),fR&&CGY(u.audioTrack.MZ(),L.y6())));return!0};
uPn=function(u,h,L,Z){Z.info.G.c_();var y=Z.info.G.G;if(!y||!L.XZ()||L.Jx()===y)return!1;var R=y,p=L.Ri();if(u.policy.dL&&p&&L.isView()&&g.$6(Z.info.G.info)){var J=new DataView(y.buffer,y.byteOffset,y.byteLength);(p=v6e(J,p))?R=new Uint8Array(p.buffer,p.byteOffset,p.byteLength):u.IH("fenc",{})}u.policy.ej&&(p=RUs(u,Z,new It([R])))&&(R=p.oF());var O;(p=Z.info.G.Y6(0,Z.info.clipId))&&(O=p.YI[0]);if(Z===u.La){if(u.gw+=1,u.G7.getVideoData().j("html5_shorts_gapless_restart_on_init_seg_retries")&&u.gw>
5)return u.gw=0,u.G7.D2({initSegStuck:1,as:Z.info.M1()}),!0}else u.gw=0,u.La=Z;u.policy.Fv&&(L.abort(),(p=h.Y)!=null&&(tO(p,4),p.flush()));y=pzf(u,L,R,O,y);var f;(f=h.Y)==null||m8V(f,y,O);if(y!==0)return JFi(u,y,Z),!0;Z.info.Wr()?yJe(u.timing):RRn(u.timing);u.logger.debug(function(){return"Appended init for "+Z.info.G.info.id});
Z3s(u,Z.info.G.je);return L.L7()};
gmb=function(u,h,L){if(h.Jx()==null){u=Ah(u);if(!(h=!u||u.G!==L.info.G)){a:if(u=u.V,L=L.info.V,u.length!==L.length)L=!1;else{for(h=0;h<u.length;h++)if(!g.fw(u[h],L[h])){L=!1;break a}L=!0}h=!L}return h}u=h.Jx();L.info.G.ub()&&Wa(L);L=L.info.G.G;return u!==L&&!g.fw(u,L)};
pzf=function(u,h,L,Z,y){var R=0;if(u.policy.N&&Z&&Z.clipId&&u.AM){var p;R=(((p=u.AM)==null?void 0:X_(p,Z.clipId))||0)/1E3}try{u.policy.N&&h.df()!==R&&h.Rm(R);var J,O=h===((J=u.oH)==null?void 0:J.G)?u.audioTrack:u.videoTrack;if(u.policy.VA&&(Z==null?0:Z.iW())){if((Z==null?void 0:Z.S)>1)return 6;O.T7=new g.EM(function(){var D=zS(O);u.ww()||D==null||!D.isLocked?u.G7.L().UU()&&u.IH("eosl",{delayA:D==null?void 0:D.info.M1()}):O3l(O)?(u.G7.L().UU()&&u.IH("eosl",{dunlock:D==null?void 0:D.info.M1()}),fya(u,
O===u.audioTrack)):(u.IH("nue",{ls:D.info.M1()}),D.info.S+=1,u.oH&&u.Am())},1E4,u);
u.G7.L().UU()&&u.IH("eosl",{delayS:Z.M1()});O.T7.start()}if(u.policy.X6&&(Z==null?0:Z.iW())){var f;if((f=O.gw)==null?0:f.isActive())g.g3(O.gw),u.IH("sbac",{as:Z.M1()});O.gw=new g.EM(function(){u.IH("sbum5s",{as:Z.M1()})},5E3,u);
O.gw.start()}u.policy.ye&&(Z==null?void 0:Z.G)instanceof Ha&&Z.iW()&&u.IH("poseos",{itag:Z.G.info.itag,seg:Z.yA,lseg:Z.G.index.Uk(),es:Z.G.index.X});h.appendBuffer(L,Z,y)}catch(D){if(D instanceof DOMException){if(D.code===11)return 2;if(D.code===12)return 5;if(D.code===22||D.message.indexOf("Not enough storage")===0)return h=Object.assign({name:"QuotaExceededError",buffered:ji(h.QQ()).replace(/,/g,"_"),vheap:lf(u.videoTrack),aheap:lf(u.audioTrack),message:g.iV(D.message,3),track:u.oH?h===u.oH.N?"v":
"a":"u"},Gwa()),u.handleError("player.exception",h),1;g.UZ(D)}return 4}return u.oH.XE()?3:0};
B4=function(u,h,L){u.G7.seekTo(h,L)};
Z3s=function(u,h){h&&u.G7.W8(new hh(h.key,h.type))};
RX=function(u,h){u.G7.n_(h)};
Ue=function(u,h){if(u.aH&&!u.Xr)return 3;if(u.isSuspended)return 1;var L;if((L=u.oH)==null?0:L.oH&&L.oH.streaming===!1)return 4;L=(h.G.info.audio?u.policy.e7:u.policy.aH)/(h.G3*u.policy.sF);if(u.policy.kt>0&&u.oH&&dM(u.oH)&&(h=h.G.info.video?u.oH.N:u.oH.G)&&!h.L7()){h=h.QQ();var Z=hq(h,u.getCurrentTime());Z>=0&&(h=u.getCurrentTime()-h.start(Z),L+=Math.max(0,Math.min(h-u.policy.kt,u.policy.hf)))}u.policy.XB>0&&(L=Math.min(L,u.policy.XB));return L};
Kg1=function(u,h){return(Ue(u,h)+u.policy.lc)*h.G3};
cFi=function(u){u.ZI&&!u.isSuspended&&c$(u.schedule)&&(DPw(u,u.ZI),u.ZI="")};
DPw=function(u,h){P4(h,"cms",function(L){u.policy.X&&u.IH("pathprobe",L)},function(L){u.G7.handleError(L)})};
Iyj=function(u,h){if(u.oH&&u.oH.B&&!u.oH.XE()&&(h.FC=XV(u.videoTrack),h.N=XV(u.audioTrack),u.policy.X)){var L=lf(u.videoTrack),Z=lf(u.audioTrack),y=ji(u.oH.N.QQ(),"_",5),R=ji(u.oH.G.QQ(),"_",5);Object.assign(h.G,{lvq:L,laq:Z,lvb:y,lab:R})}h.bandwidthEstimate=M3(u.Y);var p;(p=u.audioTrack.Y)==null||p.flush();var J;(J=u.videoTrack.Y)==null||J.flush();u.logger.debug(function(){return QE(h.G)})};
AFi=function(u,h){u.S=h;u.B&&(u.B.C=h);u.S.k8(u.videoTrack.G.info.d1());u.T.N=u.S;u.policy.T&&(u.X.B=u.S)};
xPb=function(u,h){if(u.oH&&u.oH.N){if(u.policy.G9){var L=mcn(u.audioTrack);if(L&&L.GD()){var Z=u.G7;Z.wb&&(Z.wb.G=L,Z.WJ(Z.wb.videoId).UD(Z.wb))}}u.policy.Iz&&(L=mcn(u.videoTrack))&&L.Wr()&&(Z=u.G7,Z.fO&&(Z.fO.G=L,Z.WJ(Z.fO.videoId).Z6(Z.fO)));h-=isNaN(u.timestampOffset)?0:u.timestampOffset;u.getCurrentTime()!==h&&u.resume();u.eD.isSeeking()&&u.oH&&!u.oH.XE()&&(L=u.getCurrentTime()<=h&&h<u.getCurrentTime()+10,Z=Ll(u.oH.N.QQ(),u.getCurrentTime()+Jy),L&&Z&&(u.eD.T=!1));u.eD.isSeeking()||u.policy.DI||
(u.currentTime=h);g.kK(u.CN)}};
Pnw=function(u,h){var L=Mu(u.videoTrack).find(function(Z){return Z.startTime>=h&&Hgi(u,Z.startTime,!1)});
return L&&L.startTime<h+L.duration*1.5?L.startTime+.1:0};
Hgi=function(u,h,L){if(!(u.videoTrack.G.c_()&&u.audioTrack.G.c_()&&u.oH&&u.oH.N&&u.oH.G))return!1;if(L&&u.PX.isManifestless&&(u.videoTrack.C===-1||u.audioTrack.C===-1))return!0;var Z=N3(u.videoTrack,h,L);if(isNaN(Z))return!1;u=N3(u.audioTrack,u.policy.Uo?h:Z,L);return isNaN(u)?!1:!0};
FV=function(u){u.A2();u.eD.isSeeking()&&u.logger.debug("seeking cancelled by seek-to-head");u.V&&YXl(u.V,u.videoTrack.G);jL(u);return Hnn(u.eD)};
th=function(u,h,L,Z){(Z===void 0?0:Z)&&!h.vX&&(fl()||(Z=h.EU,nmf(u)||!Z||Z.aq(L.info)||(u.IH("ssap",{rstonsrvfmt:L.info.mimeType}),u.G7.uS())),h.vX=!0);h.G!==L&&(u.logger.debug(function(){return"Setting target itag: "+L.info.id+" (was "+h.G.info.id+")"}),h.G=L)};
O3l=function(u){var h,L=(h=zS(u))==null?void 0:h.info;return!L||Gb(u,Math.min(L.ob+Jy,L.pZ))};
CnL=function(u,h){var L;if((L=zS(h))!=null&&L.isLocked&&O3l(h)){if(u.G7.L().UU()){var Z;u.IH("eosl",{munlock:(Z=zS(h))==null?void 0:Z.info.M1()})}fya(u,h===u.audioTrack)}};
fya=function(u,h){if(u.policy.VA&&u.oH){var L,Z,y=h?(L=u.oH)==null?void 0:L.G:(Z=u.oH)==null?void 0:Z.N;L=h?u.audioTrack:u.videoTrack;h=zS(L);if(h==null?0:h.isLocked){u.G7.L().UU()&&u.IH("eosl",{unlock:h.info.M1()});var R;(R=L.T7)==null||R.stop();h.isLocked=!1;L.Gp(h);Y4R(u.G,h.info);y=y==null?void 0:y.UK();(y==null?void 0:y.M1())!==h.info.M1()&&u.IH("oue",{bls:y==null?void 0:y.M1(),tls:h.info.M1()})}}};
MSl=function(u,h){u.timestampOffset!==h&&(u.timestampOffset=h,u.policy.ol&&cW(u.PX),u.logger.debug(function(){return"Timestamps will be made relative to "+u.timestampOffset}),u.B.S=u.timestampOffset,u.G7.Ga(u.timestampOffset),u.PX.isManifestless&&(u.PX.timestampOffset=u.timestampOffset),u.videoTrack.Rm(u.timestampOffset),u.audioTrack.Rm(u.timestampOffset))};
Fkn=function(u){var h=u.Ue().filter(function(Z){return Z.namespace==="ad"});
h=g.C(h);for(var L=h.next();!L.done;L=h.next())if(L=L.value,L.start/1E3>u.getCurrentTime())return L.start/1E3;return Infinity};
i3i=function(u){var h=Ah(u.videoTrack),L=Ah(u.audioTrack);return h&&!z2l(u.videoTrack)?h.startTime:L&&!z2l(u.audioTrack)?L.startTime:NaN};
AVY=function(u){if(u.G7.getVideoData().isLivePlayback)return!1;var h=u.G7.yQ();if(!h)return!1;h=h.getDuration();return Isn(u,h)};
Isn=function(u,h){if(!u.oH||!u.oH.G||!u.oH.N)return!1;var L=u.getCurrentTime(),Z=u.oH.G.QQ();u=u.oH.N.QQ();Z=Z?ZI(Z,L):L;L=u?ZI(u,L):L;L=Math.min(Z,L);return isNaN(L)?!1:L>=h-.01};
JFi=function(u,h,L){u.policy.nf&&Wu(u.G7.getVideoData())?(u.G7.gg()||KnV(u,"sepInit",h,L.info),Qbj(u.G7,"sie")):KnV(u,"sepInit",h,L.info)};
Wt=function(u){return u.G7.Gl()<u.eq};
g.Oy=function(u){this.oV=u};
fT=function(){g.yV.apply(this,arguments)};
Dn=function(u,h,L,Z){fT.call(this);var y=this;this.X=-1;this.G={};this.B=new g.EM(this.T,0,this);g.V(this,this.B);this.N=new g.EM(function(){y.ww()||(y.B.start(Math.random()*L),y.N.start(h))},u,this);
g.V(this,this.N);Z.subscribe("fairplay_next_need_key_info",this.C,this)};
lyb=function(u){if(!(u.length<=28))for(var h=(0,g.f4)([60,0,75,0,73,0,68,0,62,0]),L=28;L<u.length;){a:if(u.length-L<h.length)var Z=!1;else{for(Z=0;Z<h.length;++Z)if(u[L+Z]!==h[Z]){Z=!1;break a}Z=!0}if(Z){L+=h.length;if(u.length<=L+48)break;h=new Uint8Array(24);for(Z=0;Z<24;++Z)h[Z]=u[L+Z*2];u=Qi(h);u=Qu(u);if(!u)break;L=u[0];u[0]=u[3];u[3]=L;L=u[1];u[1]=u[2];u[2]=L;L=u[4];u[4]=u[5];u[5]=L;L=u[6];u[6]=u[7];u[7]=L;return u}L++}};
cr=function(u,h,L){fT.call(this);var Z=this;this.X=u;this.G=[];this.zd={lrI:function(){return Z.G.length}};
this.B=L.tB("html5_ignore_widevine_key_rotation_license_requests");this.N=new g.EM(function(){Z.publish("log_qoe",{wvagt:"timer",reqlen:Z.G?Z.G.length:-1});if(Z.G){if(Z.G.length>0){var y=Z.G.shift();STn(Z,y.info)}Z.G.length>0&&(y=Z.G[0].time-(0,g.vC)(),Z.N.start(Math.max(0,y)))}},0);
g.V(this,this.N);h.subscribe("widevine_set_need_key_info",this.T,this)};
STn=function(u,h){a:{var L=h.cryptoPeriodIndex;if(isNaN(L)&&u.X.size>0)L=!0;else{for(var Z=g.C(u.X.values()),y=Z.next();!y.done;y=Z.next())if(y.value.cryptoPeriodIndex===L){L=!0;break a}L=!1}}u.publish("log_qoe",{wvagt:"reqnews",canskip:L});L||u.publish("rotated_need_key_info_ready",h)};
Xzf=function(){var u={};var h=u.url;var L=u.interval;u=u.retries;this.url=h;this.interval=L;this.retries=u};
vHY=function(u,h){this.statusCode=u;this.message=h;this.N=this.heartbeatParams=this.errorMessage=null;this.G={};this.nextFairplayKeyId=null};
qTe=function(u,h,L){L=L===void 0?"":L;g.m.call(this);this.message=u;this.requestNumber=h;this.tq=L;this.onError=this.onSuccess=null;this.G=new g.Qg(5E3,2E4,.2)};
Tmn=function(u,h,L){u.onSuccess=h;u.onError=L};
oHi=function(u,h,L,Z){var y={timeout:3E4,onSuccess:function(R){if(!u.ww()){zQ("drm_net_r",void 0,u.tq);var p=R.status==="LICENSE_STATUS_OK"?0:9999,J=null;if(R.license)try{J=Qu(R.license)}catch(x){g.UZ(x)}if(p!==0||J){J=new vHY(p,J);p!==0&&R.reason&&(J.errorMessage=R.reason);if(R.authorizedFormats){p={};for(var O=[],f={},D=g.C(R.authorizedFormats),c=D.next();!c.done;c=D.next())if(c=c.value,c.trackType&&c.keyId){var I=YTa[c.trackType];if(I){I==="HD"&&R.isHd720&&(I="HD720");c.isHdr&&(I+="HDR");p[I]||
(O.push(I),p[I]=!0);var A=null;try{A=Qu(c.keyId)}catch(x){g.UZ(x)}A&&(f[g.Mk(A,4)]=I)}}J.N=O;J.G=f}R.nextFairplayKeyId&&(J.nextFairplayKeyId=R.nextFairplayKeyId);R.sabrLicenseConstraint&&(J.sabrLicenseConstraint=Qu(R.sabrLicenseConstraint));R=J}else R=null;if(R)u.onSuccess(R,u.requestNumber);else u.onError(u,"drm.net","t.p;p.i")}},
onError:function(R){if(!u.ww())if(R&&R.error)R=R.error,u.onError(u,"drm.net.badstatus","t.r;p.i;c."+R.code+";s."+R.status,R.code);else u.onError(u,"drm.net.badstatus","t.r;p.i;c.n")},
onTimeout:function(){u.onError(u,"drm.net","rt.req."+u.requestNumber)}};
Z&&(y.uG="Bearer "+Z);g.kM(L,"player/get_drm_license",h,y)};
NmV=function(u,h,L,Z){g.yV.call(this);this.videoData=u;this.xI=h;this.S=L;this.sessionId=Z;this.T={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.AB=this.RH=!1;this.X=null;this.XB=[];this.B=[];this.V=!1;this.G={};this.status="";this.C=NaN;this.N=u.T;this.cryptoPeriodIndex=L.cryptoPeriodIndex;u={};Object.assign(u,this.xI.G);u.cpn=this.videoData.clientPlaybackNonce;this.videoData.RH&&(u.vvt=this.videoData.RH,this.videoData.mdxEnvironment&&(u.mdx_environment=this.videoData.mdxEnvironment));
this.xI.XB&&(u.authuser=this.xI.XB);this.xI.pageId&&(u.pageid=this.xI.pageId);isNaN(this.cryptoPeriodIndex)||(u.cpi=this.cryptoPeriodIndex.toString());var y=(y=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.N7()))?y[1]:"";y==="ATV"&&(u.cdt=y);this.T=u;this.T.session_id=Z;this.Y=!0;this.N.flavor==="widevine"&&(this.T.hdr="1");this.N.flavor==="playready"&&(h=Number(w2(h.experiments,"playready_first_play_expiration")),!isNaN(h)&&h>=0&&(this.T.mfpe=""+h),this.Y=!1);h="";g.oV(this.N)?Yi(this.N)?(Z=L.N)&&(h="https://www.youtube.com/api/drm/fps?ek="+
dLs(Z)):(h=L.initData.subarray(4),h=new Uint16Array(h.buffer,h.byteOffset,h.byteLength/2),h=String.fromCharCode.apply(null,h).replace("skd://","https://")):h=this.N.N;this.baseUrl=h;this.fairplayKeyId=en(this.baseUrl,"ek")||"";if(h=en(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(h);this.XB=L.d1?[g.Mk(L.initData,4)]:L.X;Iq(this,{sessioninit:L.cryptoPeriodIndex});this.status="in"};
rFV=function(u,h){Iq(u,{createkeysession:1});u.status="gr";zQ("drm_gk_s",void 0,u.videoData.jd);u.url=UPi(u);try{u.X=h.createSession(u.S,function(L){Iq(u,{m:L})})}catch(L){h="t.g";
L instanceof DOMException&&(h+=";c."+L.code);u.publish("licenseerror","drm.unavailable",1,h,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}u.X&&(GAe(u.X,function(L,Z){H3R(u,L,Z)},function(L,Z,y){if(!u.ww()){Z=void 0;
var R=1;g.oV(u.N)&&g.qW(u.xI)&&u.xI.j("html5_enable_safari_fairplay")&&y===1212433232&&(Z="ERROR_HDCP",R=u.xI.j("html5_safari_fairplay_ignore_hdcp")?0:R);u.error("drm.keyerror",R,L,Z)}},function(){u.ww()||(Iq(u,{onkyadd:1}),u.AB||(u.publish("sessionready"),u.AB=!0))},function(L){u.ZK(L)}),g.V(u,u.X))};
UPi=function(u){var h=u.baseUrl;hI1(h)||u.error("drm.net",2,"t.x");if(!en(h,"fexp")){var L=["23898307","23914062","23916106","23883098"].filter(function(y){return u.xI.experiments.experiments[y]});
L.length>0&&(u.T.fexp=L.join())}L=g.C(Object.keys(u.T));for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,h=TbL(h,Z,u.T[Z]);return h};
H3R=function(u,h,L){if(!u.ww())if(h){Iq(u,{onkmtyp:L});u.status="km";switch(L){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":Bmn(u,h);return;default:u.publish("ctmp","message_type",{t:L,l:h.byteLength})}u.RH||(zQ("drm_gk_f",void 0,u.videoData.jd),u.RH=!0,u.publish("newsession",u));if(vW(u.N)&&(h=zUf(h),!h))return;h=new qTe(h,++u.requestNumber,u.videoData.jd);Tmn(h,function(Z){mPb(u,Z)},function(Z,y,R){if(!u.ww()){var p=0;
Z.G.N>=3&&(p=1,y="drm.net.retryexhausted");Iq(u,{onlcsrqerr:y,info:R});u.error(y,p,R);u.shouldRetry(SX(p),Z)&&dP1(u,Z)}});
g.V(u,h);VSf(u,h)}else u.error("drm.unavailable",1,"km.empty")};
Bmn=function(u,h){Iq(u,{sdpvrq:1});u.C=Date.now();if(u.N.flavor!=="widevine")u.error("drm.provision",1,"e.flavor;f."+u.N.flavor+";l."+h.byteLength);else{var L={cpn:u.videoData.clientPlaybackNonce};Object.assign(L,u.xI.G);L=g.sr("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",L);h={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,
h)}),responseType:"arraybuffer"};g.Y7(L,h,3,500).then(Dc(function(Z){Z=Z.xhr;if(!u.ww()){Z=new Uint8Array(Z.response);var y=String.fromCharCode.apply(null,Z);try{var R=JSON.parse(y)}catch(p){}R&&R.signedResponse?(u.publish("ctmp","drminfo",{provisioning:1}),R=(Date.now()-u.C)/1E3,u.C=NaN,u.publish("ctmp","provs",{et:R.toFixed(3)}),u.X&&u.X.update(Z)):(R=R&&R.error&&R.error.message,Z="e.parse",R&&(Z+=";m."+R),u.error("drm.provision",1,Z))}}),Dc(function(Z){u.ww()||u.error("drm.provision",1,"e."+Z.errorCode+
";c."+(Z.xhr&&Z.xhr.status))}))}};
Ay=function(u){var h;if(h=u.Y&&u.X!=null)u=u.X,h=!(!u.G||!u.G.keyStatuses);return h};
VSf=function(u,h){u.status="km";zQ("drm_net_s",void 0,u.videoData.jd);var L=new g.E3(u.xI.u9),Z={context:g.Jd(L.config_||g.Kd())};Z.drmSystem=nH1[u.N.flavor];Z.videoId=u.videoData.videoId;Z.cpn=u.videoData.clientPlaybackNonce;Z.sessionId=u.sessionId;Z.licenseRequest=g.Mk(h.message);Z.drmParams=u.videoData.drmParams;isNaN(u.cryptoPeriodIndex)||(Z.isKeyRotated=!0,Z.cryptoPeriodIndex=u.cryptoPeriodIndex);var y,R,p=!!((y=u.videoData.N)==null?0:(R=y.video)==null?0:R.isHdr());Z.drmVideoFeature=p?"DRM_VIDEO_FEATURE_PREFER_HDR":
"DRM_VIDEO_FEATURE_SDR";if(Z.context&&Z.context.client){if(y=u.xI.G)Z.context.client.deviceMake=y.cbrand,Z.context.client.deviceModel=y.cmodel,Z.context.client.browserName=y.cbr,Z.context.client.browserVersion=y.cbrver,Z.context.client.osName=y.cos,Z.context.client.osVersion=y.cosver;Z.context.user=Z.context.user||{};Z.context.request=Z.context.request||{};u.videoData.RH&&(Z.context.user.credentialTransferTokens=[{token:u.videoData.RH,scope:"VIDEO"}]);Z.context.request.mdxEnvironment=u.videoData.mdxEnvironment||
Z.context.request.mdxEnvironment;u.videoData.vJ&&(Z.context.user.kidsParent={oauthToken:u.videoData.vJ});g.oV(u.N)&&(Z.fairplayKeyId=g.Mk(Va1(u.fairplayKeyId)));g.Fp(u.xI,g.mn(u.videoData)).then(function(J){oHi(h,Z,L,J);u.status="rs"})}else u.error("drm.net",2,"t.r;ic.0")};
mPb=function(u,h){if(!u.ww())if(Iq(u,{onlcsrsp:1}),u.status="rr",h.statusCode!==0)u.error("drm.auth",1,"t.f;c."+h.statusCode,h.errorMessage||void 0);else{zQ("drm_kr_s",void 0,u.videoData.jd);if(h.heartbeatParams&&h.heartbeatParams.url&&u.videoData.j("outertube_streaming_data_always_use_staging_license_service")){var L=u.N.N.match(/(.*)youtube.com/g);L&&(h.heartbeatParams.url=L[0]+h.heartbeatParams.url)}h.heartbeatParams&&u.publish("newlicense",h.heartbeatParams);h.N&&(u.B=h.N,u.videoData.Kj||u.publish("newlicense",
new Xzf),u.videoData.Kj=!0,u.V=oS(u.B,function(Z){return Z.includes("HDR")}));
h.G&&(u.xI.j("html5_enable_vp9_fairplay")&&Yi(u.N)?(L=g.Mk(Va1(u.fairplayKeyId),4),u.G[L]={type:h.G[L],status:"unknown"}):u.G=Mo(h.G,function(Z){return{type:Z,status:"unknown"}}));
T9(u.N)&&(h.message=Hrn(g.Mk(h.message)));u.X&&(Iq(u,{updtks:1}),u.status="ku",u.X.update(h.message).then(function(){zQ("drm_kr_f",void 0,u.videoData.jd);Ay(u)||(Iq(u,{ksApiUnsup:1}),u.publish("keystatuseschange",u))},function(Z){Z="msuf.req."+u.requestNumber+";msg."+g.iV(Z.message,3);
u.error("drm.keyerror",1,Z)}));
g.oV(u.N)&&u.publish("fairplay_next_need_key_info",u.baseUrl,h.nextFairplayKeyId);u.xI.j("html5_enable_vp9_fairplay")&&Yi(u.N)&&u.publish("qualitychange",sbn(u.B));h.sabrLicenseConstraint&&u.publish("sabrlicenseconstraint",h.sabrLicenseConstraint)}};
dP1=function(u,h){var L=h.G.getValue();L=new g.EM(function(){VSf(u,h)},L);
g.V(u,L);L.start();g.lu(h.G);Iq(u,{rtyrq:1})};
wzn=function(u,h){for(var L=[],Z=g.C(Object.keys(u.G)),y=Z.next();!y.done;y=Z.next())y=y.value,L.push(y+"_"+u.G[y].type+"_"+u.G[y].status);return L.join(h)};
eUa=function(u){var h={};h[u.status]=Ay(u)?wzn(u,"."):u.B.join(".");return h};
ayi=function(u,h){switch(u){case "highres":case "hd2880":u="UHD2";break;case "hd2160":case "hd1440":u="UHD1";break;case "hd1080":case "hd720":u="HD";break;case "large":case "medium":case "small":case "light":case "tiny":u="SD";break;default:return""}h&&(u+="HDR");return u};
$Pn=function(u,h){for(var L in u.G)if(u.G[L].status==="usable"&&u.G[L].type===h)return!0;return!1};
tSb=function(u,h){for(var L in u.G)if(u.G[L].type===h)return u.G[L].status};
Iq=function(u,h){var L=L===void 0?!1:L;QE(h);(L||u.xI.UU())&&u.publish("ctmp","drmlog",h)};
Wnj=function(u){var h=u[0];u[0]=u[3];u[3]=h;h=u[1];u[1]=u[2];u[2]=h;h=u[4];u[4]=u[5];u[5]=h;h=u[6];u[6]=u[7];u[7]=h};
sbn=function(u){return g.E8(u,"UHD2")||g.E8(u,"UHD2HDR")?"highres":g.E8(u,"UHD1")||g.E8(u,"UHD1HDR")?"hd2160":g.E8(u,"HD")||g.E8(u,"HDHDR")?"hd1080":g.E8(u,"HD720")||g.E8(u,"HD720HDR")?"hd720":"large"};
zUf=function(u){for(var h="",L=0;L<u.length;L+=2)h+=String.fromCharCode(u[L]);u=tw(new DOMParser,re(h),"text/xml");return u?(u=u.querySelector("Challenge"))&&u.childNodes&&u.childNodes.length!==0?new Uint8Array((0,g.f4)(IRw(u.childNodes[0].nodeValue)).buffer):null:null};
xR=function(u,h,L,Z,y,R){R=R===void 0?!1:R;g.m.call(this);this.element=u;this.S=h;this.initData=L;this.G=Z;this.N=y;this.Y=R;this.sessionId="";this.V=this.C=this.X=this.T=null;this.B=new g.UN(this);g.V(this,this.B);Fni(this)};
Fni=function(u){u.G?(u.B.W(u.G,"message",u.sC),u.B.W(u.G,"keystatuseschange",u.ZK),u.G.closed&&u.G.closed.then(Dc(function(){u.onClosed()}),null)):u.N&&(qr(u.B,u.N,["mskeymessage",
"webkitkeymessage"],u.EG),qr(u.B,u.N,["mskeyerror","webkitkeyerror"],u.PQ),qr(u.B,u.N,["mskeyadded","webkitkeyadded"],u.bD))};
GAe=function(u,h,L,Z,y){u.T=h;u.X=L;u.C=Z;u.V=y};
b3l=function(u,h,L){g.UZ(L);u.X&&(L instanceof DOMException&&(h+=";n."+L.name+";m."+L.message),u.X(h))};
Pr=function(u,h,L,Z){Z=Z===void 0?!1:Z;g.m.call(this);this.element=u;this.G=h;this.IH=L;this.V=Z;this.C={};this.B=null;this.T=new g.UN(this);this.X=this.N=null;g.V(this,this.T)};
kAn=function(u,h){h=EHf(h,u.G.Sd);h=u.X.createSession("video/mp4",h);return new xR(null,null,null,null,h,u.V)};
gHV=function(u,h){for(var L=new Uint8Array(270),Z=0;Z<135;Z++)L[Z*2]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(Z);u=u.X.createSession("video/mp4",h,L);return new xR(null,null,null,null,u)};
uCe=function(u,h){var L=u.C[h.sessionId];!L&&u.B&&(L=u.B,u.B=null,L.sessionId=h.sessionId,u.C[h.sessionId]=L);return L};
EHf=function(u,h){var L=u.subarray(4);L=new Uint16Array(L.buffer,L.byteOffset,L.byteLength/2);L=String.fromCharCode.apply(null,L).match(/ek=([0-9a-f]+)/)[1];for(var Z="",y=0;y<L.length;y+=2)Z+=String.fromCharCode(parseInt(L.substring(y,y+2),16));L=Z;Z=new ArrayBuffer(L.length*2);y=new Uint16Array(Z);for(var R=0;R<L.length;R++)y[R]=L.charCodeAt(R);L=new Uint8Array(Z);Z=0;R=new ArrayBuffer(u.byteLength+4+L.byteLength+4+h.byteLength);y=new Uint8Array(R);R=new DataView(R);y.set(u);Z+=u.byteLength;R.setUint32(Z,
L.length,!0);Z+=4;y.set(L,Z);Z+=L.length;R.setUint32(Z,h.byteLength,!0);y.set(h,Z+4);return y};
CT=function(){this.keys=[];this.values=[]};
LLb=function(u,h,L){g.yV.call(this);this.element=u;this.videoData=h;this.xI=L;this.X=[];this.vX=2;this.aH=this.DI=!1;this.heartbeatParams=null;this.gw=this.Y=!1;this.T=null;this.T7=!1;this.G=this.videoData.T;this.drmSessionId=this.videoData.drmSessionId||g.UIi();this.N=new Map;this.C=new CT;this.V=new CT;this.RH=new g.UN(this);this.XB=this.xI.j("html5_eme_ignore_teardown_errors");(u=this.element)&&(u.addKey||u.webkitAddKey)||Sh()||Uf(L.experiments);this.xI.j("html5_enable_vp9_fairplay")&&Yi(this.G)?
L=jvl:(L=this.videoData.Xb,L=this.G.flavor==="fairplay"||L?Hu:jvl);this.S=L;this.B=new Pr(this.element,this.G,this.xm.bind(this),this.XB);g.V(this,this.B);XS(this.G)&&(this.AB=new Pr(this.element,this.G,this.xm.bind(this),this.XB),g.V(this,this.AB));g.V(this,this.RH);L=this.element;this.G.keySystemAccess?this.RH.W(L,"encrypted",this.KzH):qr(this.RH,L,XS(this.G)?["msneedkey"]:["needkey","webkitneedkey"],this.HH7);hhY(this);a:switch(L=this.G,u=this.xI.experiments,h=this.N,L.flavor){case "fairplay":if(h=
/\sCobalt\/(\S+)\s/.exec(g.N7())){u=[];h=g.C(h[1].split("."));for(var Z=h.next();!Z.done;Z=h.next())Z=parseInt(Z.value,10),Z>=0&&u.push(Z);u=parseFloat(u.join("."))}else u=NaN;u>19.2999?(u=L.Ob,L=L.XC,L>=u&&(L=u*.75),h=(u-L)*.5,L=new Dn(h,u,u-h-L,this)):L=null;break a;case "widevine":L=new cr(h,this,u);break a;default:L=null}if(this.T=L)g.V(this,this.T),this.T.subscribe("rotated_need_key_info_ready",this.G4,this),this.T.subscribe("log_qoe",this.Tz,this);Uf(this.xI.experiments);this.Tz({cks:this.G.getInfo()})};
hhY=function(u){var h=u.B.lB();h?h.then(Dc(function(){ZR1(u)}),Dc(function(L){if(!u.ww()){g.UZ(L);
var Z="t.a";L instanceof DOMException&&(Z+=";n."+L.name+";m."+L.message);u.publish("licenseerror","drm.unavailable",1,Z,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(u.Tz({mdkrdy:1}),u.Y=!0);
u.AB&&(h=u.AB.lB())};
Rhl=function(u,h,L){u.aH=!0;L=new hh(h,L);u.xI.j("html5_eme_loader_sync")&&(u.C.get(h)||u.C.set(h,L));yhs(u,L)};
yhs=function(u,h){if(!u.ww()){u.Tz({onInitData:1});if(u.xI.j("html5_eme_loader_sync")&&u.videoData.X&&u.videoData.X.G){var L=u.V.get(h.initData);h=u.C.get(h.initData);if(!L||!h)return;h=L;L=h.initData;u.C.remove(L);u.V.remove(L)}u.Tz({initd:h.initData.length,ct:h.contentType});if(u.G.flavor==="widevine")if(u.DI&&!u.videoData.isLivePlayback)Me(u);else{if(!(u.xI.j("vp9_drm_live")&&u.videoData.isLivePlayback&&h.d1)){u.DI=!0;L=h.cryptoPeriodIndex;var Z=h.G;W7a(h);h.d1||(Z&&h.G!==Z?u.publish("ctmp","cpsmm",
{emsg:Z,pssh:h.G}):L&&h.cryptoPeriodIndex!==L&&u.publish("ctmp","cpimm",{emsg:L,pssh:h.cryptoPeriodIndex}));u.publish("widevine_set_need_key_info",h)}}else u.G4(h)}};
ZR1=function(u){if(!u.ww())if(u.xI.j("html5_drm_set_server_cert")||Yi(u.G)){var h=u.B.setServerCertificate();h?h.then(Dc(function(L){u.xI.UU()&&u.publish("ctmp","ssc",{success:L})}),Dc(function(L){u.publish("ctmp","ssce",{n:L.name,
m:L.message})})).then(Dc(function(){ptb(u)})):ptb(u)}else ptb(u)};
ptb=function(u){u.ww()||(u.Y=!0,u.Tz({onmdkrdy:1}),Me(u))};
KLi=function(u){return u.G.flavor==="widevine"&&u.videoData.j("html5_drm_cpi_license_key")};
Me=function(u){if((u.aH||u.xI.j("html5_widevine_use_fake_pssh"))&&u.Y&&!u.gw){for(;u.X.length;){var h=u.X[0],L=KLi(u)?F7L(h):g.Mk(h.initData);if(Yi(u.G)&&!h.N)u.X.shift();else{if(u.N.get(L))if(u.G.flavor!=="fairplay"||Yi(u.G)){u.X.shift();continue}else u.N.delete(L);W7a(h);break}}u.X.length&&u.createSession(u.X[0])}};
Jhn=function(u){var h;if(h=g.wg()){var L;h=!((L=u.B.N)==null||!L.getMetrics)}h&&(h=u.B.getMetrics())&&(h=g.S4(h),u.publish("ctmp","drm",{metrics:h}))};
ORa=function(){var u=VBn();return!(!u||u==="visible")};
Duf=function(u){var h=f4b();h&&document.addEventListener(h,u,!1)};
chs=function(u){var h=f4b();h&&document.removeEventListener(h,u,!1)};
f4b=function(){if(document.visibilityState)var u="visibilitychange";else{if(!document[DD+"VisibilityState"])return"";u=DD+"visibilitychange"}return u};
I4e=function(u){g.m.call(this);var h=this;this.G7=u;this.Tr=0;this.C=this.N=this.T=!1;this.B=0;this.z7=this.G7.L();this.videoData=this.G7.getVideoData();this.X=g.Jl(this.z7.experiments,"html5_delayed_retry_count");this.G=new g.EM(function(){h.G7.uS()},g.Jl(this.z7.experiments,"html5_delayed_retry_delay_ms"));
g.V(this,this.G)};
Mgl=function(u,h,L){var Z=u.videoData.N,y=u.videoData.B;Wu(u.G7.getVideoData())&&u.z7.j("html5_gapless_fallback_on_qoe_restart")&&Qbj(u.G7,"pe");if((h==="progressive.net.retryexhausted"||h==="fmt.unplayable"||h==="fmt.decode")&&!u.G7.Yo.T&&Z&&Z.itag==="22")return u.G7.Yo.T=!0,u.Hj("qoe.restart",{reason:"fmt.unplayable.22"}),u.G7.rB(),!0;var R=!1;if(u.videoData.isExternallyHostedPodcast){if(R=u.videoData.PO)L.mimeType=R.type,u.IH("3pp",{url:R.url});L.ns="3pp";u.G7.LZ(h,1,"VIDEO_UNAVAILABLE",QE((new lZ(h,
L,1)).details));return!0}var p=u.Tr+3E4<(0,g.vC)()||u.G.isActive();if(u.z7.j("html5_empty_src")&&u.videoData.isAd()&&h==="fmt.unplayable"&&/Empty src/.test(""+L.msg))return L.origin="emptysrc",u.Hj("auth",L),!0;p||i7(u.G7.Ua())||(L.nonfg="paused",p=!0,u.G7.pauseVideo());(h==="fmt.decode"||h==="fmt.unplayable")&&(y==null?0:eX(y)||an(y))&&(UAf(u.z7.T,y.QA),L.acfallexp=y.QA,R=p=!0);!p&&u.X>0&&(u.G.start(),p=!0,L.delayed="1",--u.X);y=u.G7.nI;!p&&((Z==null?0:wF(Z))||(Z==null?0:nA(Z)))&&(UAf(u.z7.T,Z.QA),
R=p=!0,L.cfallexp=Z.QA);if(u.z7.j("html5_ssap_ignore_decode_error_for_next_video")&&g.dC(u.videoData)&&h==="fmt.unplayable"&&L.cid&&L.ccid&&i7(u.G7.Ua())){if(L.cid!==L.ccid)return L.ignerr="1",u.Hj("ssap.transitionfailure",L),!0;u.Hj("ssap.transitionfailure",L);if(Ahn(u.G7,h))return!0}if(!p)return xuL(u,L);if(u.z7.j("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.dC(u.videoData)&&h==="fmt.unplayable"&&L.cid&&L.ccid&&L.cid!==L.ccid&&i7(u.G7.Ua())&&(u.Hj("ssap.transitionfailure",L),Ahn(u.G7,
h)))return!0;p=!1;u.T?u.Tr=(0,g.vC)():p=u.T=!0;var J=u.videoData;if(J.xl){J=J.xl.VV();var O=Date.now()/1E3+1800;J=J<O}else J=!1;L.e=h;L.bkg=ORa();J&&(L.staleprog="1");u.Hj("qoe.restart",L);if(J&&Pfb(u))return Cfw(u),!0;if(!(!g.nP("philips")||h==="fmt.unplayable"&&y&&y.XB||u.z7.G.cplatform==="GAME_CONSOLE"))try{window.close()}catch(f){}Z&&wF(Z)&&!u.z7.j("html5_allow_av1_retry_in_session")?(R=u.z7.T,R.V=!0,WW(R),R=!0):y?p||(h=(h=Ah(y.videoTrack)||y.videoTrack.N)?h.G:y.videoTrack.G,h.C+=1,y.policy.G?
Bj(y.N.G,h,!0):wa(y.G,h,!0)):u.videoData.xl&&u.videoData.xl.Ki();u.G.isActive()||u.G7.uS(R);return!0};
xuL=function(u,h){if(u.videoData.XB)return!1;u.z7.iP+=1;if(u.z7.iP<=10)return!1;h.exiled=""+u.z7.iP;u.Hj("qoe.start15s",h);u.G7.publish("playbackstalledatstart");return!0};
Pfb=function(u){return u.N?!0:u.z7.AB==="yt"?u.videoData.XB?u.videoData.nH<25:!u.videoData.nH:!1};
Cfw=function(u){if(!u.N){u.N=!0;var h=u.G7.getPlayerState();h=h.isPaused()||h.isSuspended();u.G7.IQ();h&&!n3(u.videoData)||u.G7.publish("signatureexpired")}};
iRi=function(u,h){if((u=u.G7.yQ())&&(h.errorCode==="fmt.unplayable"||h.errorCode==="html5.invalidstate")){var L=u.xW();h.details.merr=L?L.toString():"0";h.details.mmsg=u.KB()}};
QXe=function(u){return u.errorCode==="net.badstatus"&&(u.severity===1||!!u.details.fmt_unav)};
l4n=function(u,h){return u.z7.j("html5_use_network_error_code_enums")&&h.details.rc===403||h.details.rc==="403"?(u=h.errorCode,u==="net.badstatus"||u==="manifest.net.retryexhausted"):!1};
Xta=function(u,h){if(!l4n(u,h)&&!u.N)return!1;h.details.sts="20132";if(Pfb(u))return SX(h.severity)&&(h=Object.assign({e:h.errorCode},h.details),h=new lZ("qoe.restart",h)),u.Hj(h.errorCode,h.details),Cfw(u),!0;(0,g.vC)()-u.z7.Zg>6048E5&&Sal(u,"signature");return!1};
Sal=function(u,h){try{window.location.reload(),u.Hj("qoe.restart",{detail:"pr."+h})}catch(L){}};
vUw=function(u,h){h=h===void 0?"fmt.noneavailable":h;var L=u.z7.T;L.C=!1;WW(L);u.Hj("qoe.restart",{e:h,detail:"hdr"});u.G7.uS(!0)};
qaa=function(u,h,L,Z,y,R){this.videoData=u;this.G=h;this.reason=L;this.N=Z;this.token=y;this.videoId=R};
TLj=function(u,h,L){this.xI=u;this.Ef=h;this.G7=L;this.S=this.C=this.G=this.B=this.V=this.N=0;this.T=!1;this.Y=g.Jl(this.xI.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.X=new Map};
oUn=function(u,h,L){!u.xI.j("html5_tv_ignore_capable_constraint")&&g.SM(u.xI)&&(L=L.compose(Yaa(u,h)));return L};
NLV=function(u){if(u.G7.Ua().isInline())return Hu;var h;u.j("html5_exponential_memory_for_sticky")?h=IL(u.xI.Mr,"sticky-lifetime")<.5?"auto":kg[od()]:h=kg[od()];return g.F9("auto",h,!1,"s")};
Gbs=function(u,h){var L,Z=Uuf(u,(L=h.G)==null?void 0:L.videoInfos);L=u.G7.getPlaybackRate();return L>1&&Z?(u=vGa(u.xI.T,h.G.videoInfos,L),new WK(0,u,!0,"o")):new WK(0,0,!1,"o")};
Uuf=function(u,h){return h&&g.SM(u.xI)?h.some(function(L){return L.video.fps>32}):!1};
HRn=function(u,h){var L=u.G7.G8();u.j("html5_use_video_quality_cap_for_ustreamer_constraint")&&L&&L.ke>0&&Eg(h.videoData.Tn)&&(u=L.ke,h.videoData.Tn=new WK(0,u,!1,"u"));return h.videoData.Tn};
Yaa=function(u,h){if(g.SM(u.xI)&&fk(u.xI.T,D0.HEIGHT))var L=h.G.videoInfos[0].video.G;else{var Z=!!h.G.G;var y;g.Xp(u.xI)&&(y=window.screen&&window.screen.width?new g.II(window.screen.width,window.screen.height):null);y||(y=u.xI.K3?u.xI.K3.clone():u.Ef.Oe());(WS||a$||Z)&&y.scale(g.V6());Z=y;Fu(h.videoData)||n3(h.videoData);h=h.G.videoInfos;if(h.length){y=g.Jl(u.xI.experiments,"html5_override_oversend_fraction")||.85;var R=h[0].video;R.projectionType!=="MESH"&&R.projectionType!=="EQUIRECTANGULAR"&&
R.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||l9||(y=.45);u=g.Jl(u.xI.experiments,"html5_viewport_undersend_maximum");for(R=0;R<h.length;R++){L=h[R];var p=L.video;if(Z===null||p.width*y<Z.width&&p.height*y<Z.height){u&&R&&p.width<Z.width*u&&p.height<Z.height*u&&(L=h[R-1]);break}}Z=L.video;L=new WK(0,L.itag==="93"?g.rF[HX(Z.width,Z.height)]:Z.G,!1,"r")}else L=Hu;L=L.G}L&&(L=Math.max(L,360));return new WK(0,L,!1,"r")};
rhl=function(u,h){var L;a:if((L=h.G)&&L.videoInfos.length){for(var Z=g.C(L.videoInfos),y=Z.next();!y.done;y=Z.next()){y=y.value;var R=void 0;if((R=y.N)==null?0:R.smooth){L=y.video.G;break a}}L=L.videoInfos[0].video.G}else L=0;QgL()&&!g.SM(u.xI)&&nA(h.G.videoInfos[0])&&(L=Math.min(L,g.rF.large));Z=g.Jl(u.xI.experiments,"html5_chipset_soft_cap");Z>0&&(L=Math.min(L,Z));if(Z=g.Jl(u.xI.experiments,"html5_max_vertical_resolution")){u=4320;for(y=0;y<h.G.videoInfos.length;y++)R=h.G.videoInfos[y],R.video.height>
Z&&(u=Math.min(u,R.video.G));if(u<4320){for(y=Z=0;y<h.G.videoInfos.length;y++)R=h.G.videoInfos[y].video.G,R<u&&(Z=Math.max(Z,R));Z&&(L=Math.min(Z,L))}}return new WK(0,L,!1,"o")};
zhs=function(u,h){var L=4320;!u.xI.N||g.v$(u.xI)||u.xI.j("hls_for_vod")||u.xI.j("mweb_remove_360p_cap")||(L=g.rF.medium);var Z=g.Jl(u.xI.experiments,"html5_default_quality_cap");Z&&h.G.G&&(u.xI.j("html5_always_apply_default_quality_cap")||!h.videoData.KV&&!h.videoData.ji)&&(L=Math.min(L,Z));Z=g.Jl(u.xI.experiments,"html5_random_playback_cap");var y=/[a-h]$/;Z&&y.test(h.videoData.clientPlaybackNonce)&&(L=Math.min(L,Z));if(y=Z=g.Jl(u.xI.experiments,"html5_hfr_quality_cap"))a:{y=h.G;if(y.G){y=g.C(y.videoInfos);
for(var R=y.next();!R.done;R=y.next())if(R.value.video.fps>32){y=!0;break a}}y=!1}y&&(L=Math.min(L,Z));(Z=g.Jl(u.xI.experiments,"html5_live_quality_cap"))&&h.videoData.isLivePlayback&&(L=Math.min(L,Z));L=BLi(u,h,L);u=g.Jl(u.xI.experiments,"html5_byterate_soft_cap");return new WK(0,L===4320?0:L,!1,"d",u)};
muR=function(u){var h,L,Z,y;return g.G(function(R){switch(R.G){case 1:return u.G.G&&typeof((h=navigator.mediaCapabilities)==null?void 0:h.decodingInfo)==="function"?g.N(R,Promise.resolve(),2):R.return(Promise.resolve());case 2:L=g.C(u.G.videoInfos),Z=L.next();case 3:if(Z.done){R.KI(0);break}y=Z.value;return g.N(R,Akl(y),4);case 4:Z=L.next(),R.KI(3)}})};
VgL=function(u,h){if(!h.videoData.N||u.j("html5_disable_performance_downgrade"))return!1;Date.now()-u.V>6E4&&(u.N=0);u.N++;u.V=Date.now();if(u.N!==4)return!1;du1(u,h.videoData.N);return!0};
sXj=function(u,h,L,Z){if(!h||!L||!h.videoData.N)return!1;var y=g.Jl(u.xI.experiments,"html5_df_downgrade_thresh"),R=u.j("html5_log_media_perf_info");if(!((0,g.vC)()-u.B<5E3?0:R||y>0))return!1;var p=((0,g.vC)()-u.B)/1E3;u.B=(0,g.vC)();L=L.getVideoPlaybackQuality();if(!L)return!1;var J=L.droppedVideoFrames-u.C,O=L.totalVideoFrames-u.S;u.C=L.droppedVideoFrames;u.S=L.totalVideoFrames;var f=L.displayCompositedVideoFrames===0?0:L.displayCompositedVideoFrames||-1;R&&u.xI.UU()&&u.G7.IH("ddf",{dr:L.droppedVideoFrames,
de:L.totalVideoFrames,comp:f});if(Z)return u.G=0,!1;if((O-J)/p>u.Y||!y||g.SM(u.xI))return!1;u.G=(O>60?J/O:0)>y?u.G+1:0;if(u.G!==3)return!1;du1(u,h.videoData.N);u.G7.IH("dfd",Object.assign({dr:L.droppedVideoFrames,de:L.totalVideoFrames},nUj()));return!0};
du1=function(u,h){var L=h.QA,Z=h.video.fps,y=h.video.G-1,R=u.X;h=""+L+(Z>49?"p60":Z>32?"p48":"");L=iG(L,Z,R);y>0&&(L=Math.min(L,y));if(!QD.has(h)&&Gd().includes(h)){var p=L;L=Ug();+L[h]>0&&(p=Math.min(+L[h],p));L[h]!==p&&(L[h]=p,g.UO("yt-player-performance-cap",L,2592E3))}else if(QD.has(h)||R==null){a:{p=p===void 0?!0:p;Z=Gd().slice();if(p){if(Z.includes(h))break a;Z.push(h)}else{if(!Z.includes(h))break a;Z.splice(Z.indexOf(h),1)}g.UO("yt-player-performance-cap-active-set",Z,2592E3)}Mc.set(h,L)}else QD.add(h),
R==null||R.set(h,L);u.G7.b8()};
l7=function(u,h){if(!h.G.G)return u.T?new WK(0,360,!1,"b"):Hu;for(var L=!1,Z=!1,y=g.C(h.G.videoInfos),R=y.next();!R.done;R=y.next())wF(R.value)?L=!0:Z=!0;L=L&&Z;Z=0;y=g.Jl(u.xI.experiments,"html5_performance_cap_floor");y=u.xI.N?240:y;h=g.C(h.G.videoInfos);for(R=h.next();!R.done;R=h.next()){var p=R.value;if(!L||!wF(p))if(R=iG(p.QA,p.video.fps,u.X),p=p.video.G,Math.max(R,y)>=p){Z=p;break}}return new WK(0,Z,!1,"b")};
wtY=function(u,h){var L=u.G7.Ua();return L.isInline()&&!h.uc?new WK(0,480,!1,"v"):L.isBackground()&&v5()/1E3>60&&!g.SM(u.xI)?new WK(0,360,!1,"v"):Hu};
ehL=function(u,h,L){if(u.xI.experiments.tB("html5_disable_client_autonav_cap_for_onesie")&&h.fetchType==="onesie"||g.SM(u.xI)&&(od(-1)>=1080||h.osid))return Hu;var Z=g.Jl(u.xI.experiments,"html5_autonav_quality_cap"),y=g.Jl(u.xI.experiments,"html5_autonav_cap_idle_secs");return Z&&h.isAutonav&&v5()/1E3>y?(L&&(Z=BLi(u,L,Z)),new WK(0,Z,!1,"e")):Hu};
BLi=function(u,h,L){if(u.j("html5_optimality_defaults_chooses_next_higher")&&L)for(u=h.G.videoInfos,h=1;h<u.length;h++)if(u[h].video.G<L)return u[h-1].video.G;return L};
a4n=function(u,h){u.j("html5_log_media_perf_info")&&(u.G7.IH("perfdb",nUj()),u.G7.IH("sessionperfdb",Object.fromEntries(Mc.entries())),u.G7.IH("playbackperfdb",Object.fromEntries(u.X.entries())),u.G7.IH("hwc",{nch:navigator.hardwareConcurrency},!0),h&&u.G7.IH("mcdb",{itags:h.G.videoInfos.filter(function(L){var Z;return((Z=L.N)==null?void 0:Z.smooth)===!1}).map(function(L){return L.itag}).join("-")}))};
nUj=function(){return Mo(Ug(),function(u){return""+u})};
SL=function(u){g.m.call(this);var h=this;this.provider=u;this.G=-1;this.T=!1;this.N=-1;this.playerState=new g.EF;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.B=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.EM(this.send,6E4,this);this.X=!1;this.jsErrorCount=0;this.zd={sD:function(){h.sD()}};
this.sD=function(){h.jsErrorCount++};
g.V(this,this.delay);window.addEventListener("error",this.sD);window.addEventListener("unhandledrejection",this.sD)};
$uf=function(u){u.G>=0||(u.provider.G7.getVisibilityState()===3?u.T=!0:(u.G=g.Xa(u.provider),u.delay.start()))};
tgf=function(u){if(!(u.N<0)){var h=g.Xa(u.provider),L=h-u.B;u.B=h;u.playerState.state===8?u.playTimeSecs+=L:u.playerState.isBuffering()&&!g.F(u.playerState,16)&&(u.rebufferTimeSecs+=L)}};
WLn=function(u){var h;switch((h=u.xI.playerCanaryStage)==null?void 0:h.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"}};
FLa=function(u){return window.PressureObserver&&new window.PressureObserver(u)};
bRj=function(u,h){h=h===void 0?FLa:h;g.m.call(this);var L=this;if(this.T=u)try{this.G=h(function(R){L.N=R.at(-1)});
var Z;this.X=(Z=this.G)==null?void 0:Z.observe("cpu",{sampleInterval:2E3}).catch(function(R){R instanceof DOMException&&(L.B=R)})}catch(R){R instanceof DOMException&&(this.B=R)}else{this.G=h(function(R){L.N=R.at(-1)});
var y;this.X=(y=this.G)==null?void 0:y.observe("cpu",{sampleInterval:2E3})}};
EUe=function(u){var h={},L=window.h5vcc;h.hwConcurrency=navigator.hardwareConcurrency;u.B&&(h.cpe=u.B.message);u.N&&(h.cpt=u.N.time,h.cps=u.N.state);if(L==null?0:L.cVal)h.cb2s=L.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),h.cb5s=L.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),h.cb30s=L.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return h};
kbV=function(u){var h;g.G(function(L){switch(L.G){case 1:if(!u.T)return g.N(L,u.X,3);g.Qn(L,4);return g.N(L,u.X,6);case 6:g.Sa(L,3);break;case 4:g.Xf(L);L.KI(3);break;case 3:(h=u.G)==null||h.disconnect(),g.i1(L)}})};
uTs=function(u,h){h?gUn.test(u):(u=g.LP(u),Object.keys(u).includes("cpn"))};
hFn=function(u,h,L,Z,y,R,p){var J={format:"RAW"},O={};if(RJ(u)&&pP()){if(p){var f;((f=jUa.uaChPolyfill)==null?void 0:f.state.type)!==2?p=null:(p=jUa.uaChPolyfill.state.data.values,p={"Synth-Sec-CH-UA-Arch":p.architecture,"Synth-Sec-CH-UA-Model":p.model,"Synth-Sec-CH-UA-Platform":p.platform,"Synth-Sec-CH-UA-Platform-Version":p.platformVersion,"Synth-Sec-CH-UA-Full-Version":p.uaFullVersion});O=Object.assign(O,p);J.withCredentials=!0}(p=g.tn("EOM_VISITOR_DATA"))?O["X-Goog-EOM-Visitor-Id"]=p:Z?O["X-Goog-Visitor-Id"]=
Z:g.tn("VISITOR_DATA")&&(O["X-Goog-Visitor-Id"]=g.tn("VISITOR_DATA"));L&&(O["X-Goog-PageId"]=L);(Z=h.XB)&&!sb(h)&&(O["X-Goog-AuthUser"]=Z);y&&(O.Authorization="Bearer "+y);h.j("enable_datasync_id_header_in_web_vss_pings")&&h.Mt&&h.datasyncId&&(O["X-YouTube-DataSync-Id"]=h.datasyncId);p||O["X-Goog-Visitor-Id"]||y||L||Z?J.withCredentials=!0:h.j("html5_send_cpn_with_options")&&gUn.test(u)&&(J.withCredentials=!0)}Object.keys(O).length>0&&(J.headers=O);R&&(J.onFinish=R);return Object.keys(J).length>1?
J:null};
L2l=function(u,h,L,Z,y,R,p,J){pP()&&L.token&&(u=Zl(u,{ctt:L.token,cttype:L.Mu,mdx_environment:L.mdxEnvironment}));Z.j("net_pings_low_priority")&&(h||(h={}),h.priority="low");R||J&&Z.j("nwl_skip_retry")?(h==null?h={}:uTs(u,Z.j("html5_assert_cpn_with_regex")),p?Ft().sendAndWrite(u,h):Ft().sendThenWrite(u,h,J)):h?(uTs(u,Z.j("html5_assert_cpn_with_regex")),Z.j("net_pings_use_fetch")?O5V(u,h):g.XI(u,h)):g.dx(u,y)};
Z$s=function(u){for(var h=[],L=0;L<u;L++){for(var Z={},y=Math.floor(Math.random()*9*1E8)+1E8,R="",p=0;p<9;p++)R+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(Math.random()*52)];Z.videoDecoderName=R;Z.elapsedTimeMs=y;h.push(Z)}return h};
yan=function(u){return window.Profiler&&new window.Profiler(u)};
RFl=function(u){/[^a-zA-Z0-9;.!_-]/.test(u)&&(u=u.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return u};
vr=function(u,h,L){L=L===void 0?yan:L;g.m.call(this);this.sampleInterval=u;this.maxBufferSize=h;this.T=L;this.encoder=new u9;this.G=[];this.X=0;pOL(this)};
pOL=function(u){var h=u.sampleInterval,L=u.maxBufferSize;if(h>0&&L>0&&!u.N&&u.X<1E7)try{u.B=u.T({sampleInterval:h,maxBufferSize:L});var Z;(Z=u.B)==null||Z.addEventListener("samplebufferfull",function(){return g.G(function(y){if(y.G==1)return g.N(y,u.stop(),2);pOL(u);g.i1(y)})})}catch(y){u.N=RFl(y.message)}};
qe=function(u,h){var L,Z;return!!((L=window.h5vcc)==null?0:(Z=L.settings)==null?0:Z.set(u,h))};
Jas=function(){var u,h,L,Z=(u=window.h5vcc)==null?void 0:(h=u.settings)==null?void 0:(L=h.getPersistentSettingAsString)==null?void 0:L.call(h,"cpu_usage_tracker_intervals");if(Z!=null){var y;u=(y=JSON.parse(Z))!=null?y:[];y=u.filter(function(f){return f.type==="total"}).map(function(f){return f.seconds});
h=g.C(K2a);for(L=h.next();!L.done;L=h.next())L=L.value,y.indexOf(L)===-1&&u.push({type:"total",seconds:L});var R,p;(R=window.h5vcc)==null||(p=R.settings)==null||p.set("cpu_usage_tracker_intervals_enabled",1);var J,O;(J=window.h5vcc)==null||(O=J.settings)==null||O.set("cpu_usage_tracker_intervals",JSON.stringify(u))}};
O$L=function(){var u=window.H5vccPlatformService,h="";if(u&&u.has("dev.cobalt.coat.clientloginfo")&&(u=u.open("dev.cobalt.coat.clientloginfo",function(){}))){var L=u.send(new ArrayBuffer(0));
L&&(h=String.fromCharCode.apply(String,g.l(new Uint8Array(L))));u.close()}return h};
g.oq=function(u,h){g.m.call(this);var L=this;this.provider=u;this.logger=new g.F_("qoe");this.G={};this.sequenceNumber=1;this.C=NaN;this.ex="N";this.Y=this.dE=this.N4=this.Ca=this.T=0;this.mz=this.vX=this.V=this.jd="";this.nH=this.aH=NaN;this.eq=0;this.Td=-1;this.vj=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.e7=this.isEmbargoed=this.DI=this.isOffline=this.isBuffering=!1;this.Oo=[];this.RH=null;this.xl=this.X=this.fI=this.S=!1;this.N=-1;this.ZI=!1;this.jq=new g.EM(this.uBB,750,this);this.AB=
this.adCpn=this.XB=this.contentCpn="";this.adFormat=void 0;this.Uo=0;this.Z1=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.XN=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.vJ=!1;this.iP=NaN;this.T7=0;this.wm=!1;this.gw=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.La=!1;this.zd={f_:function(y){L.f_(y)},
Ped:function(){return L.B},
kV:function(){return L.contentCpn},
MOi:function(){return L.XB},
reportStats:function(){L.reportStats()},
RGd:function(){return L.G.cat},
z8:function(y){return L.G[y]},
RUB:function(){return L.gw}};
var Z=g.Jl(this.provider.xI.experiments,"html5_qoe_proto_mock_length");Z&&!TV.length&&(TV=Z$s(Z));g.V(this,this.jq);try{navigator.getBattery().then(function(y){L.RH=y})}catch(y){}g.YR(this,0,"vps",["N"]);
u.xI.UU()&&(this.T7=(0,g.vC)(),this.iP=g.A5(function(){var y=(0,g.vC)(),R=y-L.T7;R>500&&L.IH("vmlock",{diff:R.toFixed()});L.T7=y},250));
u.G7.m7()&&h&&(this.gw=h-Math.round(g.Xa(u)*1E3));this.provider.videoData.KV&&(this.remoteControlMode=fHY[this.provider.videoData.KV]||0);this.provider.videoData.QK&&(h=zDi(this.provider.videoData.QK),h==null?0:h.length)&&(this.remoteConnectedDevices=h);if(u.xI.UU()||u.j("html5_log_cpu_info"))this.Sd=new bRj(u.j("html5_catch_cpu_info_errors")),g.V(this,this.Sd);h=g.Jl(u.xI.experiments,"html5_js_self_profiler_sample_interval_ms");u=g.Jl(u.xI.experiments,"html5_js_self_profiler_max_samples");h>0&&u>
0&&(this.VA=new vr(h,u),g.V(this,this.VA))};
g.YR=function(u,h,L,Z){var y=u.G[L];y||(y=[],u.G[L]=y);y.push(h.toFixed(3)+":"+Z.join(":"))};
D4s=function(u,h){var L=u.adCpn||u.provider.videoData.clientPlaybackNonce,Z=u.provider.getCurrentTime(L);g.YR(u,h,"cmt",[Z.toFixed(3)]);Z=u.provider.V$(L);if(u.B&&Z*1E3>u.B.NS+100&&u.B){var y=u.B;L=y.isAd;Z=Z*1E3-y.NS;u.vK=h*1E3-y.OBd-Z-y.GD7;y=(0,g.vC)()-Z;h=u.vK;Z=u.provider.videoData;var R=Z.isAd();if(L||R){R=(L?"ad":"video")+"_to_"+(R?"ad":"video");var p={};Z.C&&(p.cttAuthInfo={token:Z.C,videoId:Z.videoId});p.startTime=y-h;dT(R,p);g.m1({targetVideoId:Z.videoId,targetCpn:Z.clientPlaybackNonce},
R);zQ("pbs",y,R)}else y=u.provider.G7.QO(),y.C!==Z.clientPlaybackNonce?(y.T=Z.clientPlaybackNonce,y.N=h):Z.LV()||g.G3(new g.aO("CSI timing logged before gllat",{cpn:Z.clientPlaybackNonce}));u.IH("gllat",{l:u.vK.toFixed(),prev_ad:+L});delete u.B}};
Ne=function(u,h){h=h===void 0?NaN:h;h=h>=0?h:g.Xa(u.provider);var L=u.provider.G7.JL(),Z=L.NI-(u.aH||0);Z>0&&g.YR(u,h,"bwm",[Z,(L.zn-(u.nH||0)).toFixed(3)]);isNaN(u.aH)&&L.NI&&u.isOffline&&u.f_(!1);u.aH=L.NI;u.nH=L.zn;isNaN(L.bandwidthEstimate)||g.YR(u,h,"bwe",[L.bandwidthEstimate.toFixed(0)]);u.provider.xI.UU()&&Object.keys(L.G).length!==0&&u.IH("bwinfo",L.G);if(u.provider.xI.UU()||u.provider.xI.j("html5_log_meminfo"))Z=Gwa(),Object.values(Z).some(function(R){return R!==void 0})&&u.IH("meminfo",
Z);
if(u.provider.xI.UU()||u.provider.xI.j("html5_log_cpu_info")){var y;(Z=(y=u.Sd)==null?void 0:EUe(y))&&Object.values(Z).some(function(R){return R!=null})&&u.IH("cpuinfo",Z)}u.VA&&u.IH("jsprof",u.VA.flush());
u.RH&&g.YR(u,h,"bat",[u.RH.level,u.RH.charging?"1":"0"]);y=u.provider.G7.getVisibilityState();u.Td!==y&&(g.YR(u,h,"vis",[y]),u.Td=y);D4s(u,h);(y=caV(u.provider))&&y!==u.eq&&(g.YR(u,h,"conn",[y]),u.eq=y);IHs(u,h,L)};
IHs=function(u,h,L){if(!isNaN(L.FC)){var Z=L.FC;L.N<Z&&(Z=L.N);g.YR(u,h,"bh",[Z.toFixed(3)])}};
Aab=function(u,h,L){g.Fp(u.provider.xI,g.mn(u.provider.videoData)).then(function(Z){var y=!1;if(h.includes("&dt=")||h.includes("&cotn=")){if(u.provider.xI.j("kevlar_woffle")||u.provider.xI.j("qoe_nwl_downloads"))y=!0}else u.provider.xI.j("qoe_with_networkless")&&(y=!0);var R=u.provider.xI.j("qoe_send_and_write"),p=u.provider.xI;Z=hFn(h,p,u.provider.xI.pageId,u.provider.xI.sendVisitorIdHeader?u.provider.videoData.visitorData:void 0,Z);p.j("html5_simplify_pings")&&(Z=Z||{});Z?(Z.method="POST",Z.postBody=
L,L2l(h,Z,{token:u.provider.videoData.C,Mu:u.provider.videoData.Mv,mdxEnvironment:u.provider.videoData.mdxEnvironment},p,void 0,y,R&&u.DI)):y?(y=u.provider.xI.j("networkless_ajax"),p={method:"POST",postBody:L},R&&u.DI?Ft().sendAndWrite(h,p):y?g.XI(h,{method:"POST",postBody:L}):Ft().sendThenWrite(h,p)):(R=L,R=R===void 0?"":R,fln(h,R)||g.dx(h,void 0,void 0,void 0,R))})};
x4n=function(u){for(var h=0,L=g.C(Object.keys(u.G)),Z=L.next();!Z.done;Z=L.next())Z=Z.value,h+=Z.length+Number(qR(u.G[Z],function(y,R){return y+R.length},0));
h>96E3&&(new g.EM(u.reportStats,0,u)).start()};
P$R=function(u){u.provider.videoData.Z1&&Uy(u,"prefetch");u.provider.videoData.nH&&u.IH("reload",{r:u.provider.videoData.reloadReason,ct:u.provider.videoData.nH});u.provider.videoData.fI&&Uy(u,"monitor");u.provider.videoData.isLivePlayback&&Uy(u,"live");sf&&Uy(u,"streaming");u.provider.videoData.KV&&u.IH("ctrl",{mode:u.provider.videoData.KV},!0);if(u.provider.videoData.QK){var h=u.provider.videoData.QK.replace(/,/g,"_");u.IH("ytp",{type:h},!0)}u.provider.videoData.u1&&(h=u.provider.videoData.u1.replace(/,/g,
"."),u.IH("ytrexp",{ids:h},!0));var L=u.provider.videoData;h=u.provider.xI.j("enable_white_noise")||u.provider.xI.j("enable_webgl_noop");L=g.p3(L)||g.Qq(L)||g.ln(L)||g.SS(L);(h||L)&&(h=(0,g.GV)())&&(u.G.gpu=[h]);n3(u.provider.videoData)&&g.YR(u,g.Xa(u.provider),"dt",["1"]);u.provider.xI.UU()&&(h=(0,g.vC)()-u.provider.xI.Zg,u.IH("playerage",{secs:Math.pow(1.6,Math.round(Math.log(h/1E3)/Math.log(1.6))).toFixed()}));u.X=!0;u.C=g.A5(function(){u.reportStats()},1E4)};
MEj=function(u,h,L){var Z=g.Xa(u.provider);C$j(u,Z,h,0,L);Ne(u,Z);x4n(u)};
C$j=function(u,h,L,Z,y){var R=u.provider.xI.G.cbrver;u.provider.xI.G.cbr==="Chrome"&&/^96[.]/.test(R)&&L==="net.badstatus"&&/rc\.500/.test(y)&&i$e(u,3);u.provider.xI.j("html5_use_ump")&&/b248180278/.test(y)&&i$e(u,4);R=u.provider.getCurrentTime(u.adCpn||u.provider.videoData.clientPlaybackNonce);Z=Z===1?"fatal":"";L=[L,Z,R.toFixed(3)];Z&&(y+=";a6s."+Rt());y&&L.push(QUi(y));g.YR(u,h,"error",L);u.X=!0};
lHf=function(u){u.N>=0||(u.provider.xI.ol||u.provider.G7.getVisibilityState()!==3?u.N=g.Xa(u.provider):u.ZI=!0)};
Swf=function(u,h,L,Z){if(L!==u.ex){h<u.T||(u.ex==="PL"?u.playTimeSecs+=h-u.T:u.ex==="B"&&u.isBuffering&&(u.isBuffering=!1,u.rebufferTimeSecs+=h-u.Ca,!u.e7&&u.rebufferTimeSecs>=10&&u.playTimeSecs<=180&&(u.G.qoealert=["1"],u.e7=!0)),L!=="B"||u.ex!=="PL"&&u.ex!=="PB"||(u.isBuffering=!0),u.T=h);u.ex==="PL"&&(L==="B"||L==="S")||u.provider.xI.UU()?Ne(u,h):(u.vJ||L!=="PL"||(u.vJ=!0,IHs(u,h,u.provider.G7.JL())),D4s(u,h));L==="PL"&&g.kK(u.jq);var y=[L];L==="S"&&Z&&y.push("ss."+Z);g.YR(u,h,"vps",y);u.ex=L;
u.Ca=h;u.T=h;u.X=!0}};
Uy=function(u,h){var L=u.G.cat||[];L.push(h);u.G.cat=L};
Hr=function(u,h,L,Z,y,R){var p=g.Xa(u.provider);L!==1&&L!==3&&L!==5||g.YR(u,p,"vps",[u.ex]);var J=u.G.xvt||[];J.push("t."+p.toFixed(3)+";m."+R.toFixed(3)+";g."+h+";tt."+L+";np.0;c."+Z+";d."+y);u.G.xvt=J};
i$e=function(u,h){if(!u.xl){var L=u.G.fcnz;L||(L=[],u.G.fcnz=L);L.push(String(h));u.xl=!0}};
QUi=function(u){/[^a-zA-Z0-9;.!_-]/.test(u)&&(u=u.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return u};
XOY=function(u){this.provider=u;this.V=!1;this.G=0;this.B=-1;this.Uw=NaN;this.X=0;this.segments=[];this.C=this.T=0;this.previouslyEnded=!1;this.Y=this.provider.G7.getVolume();this.S=this.provider.G7.isMuted()?1:0;this.N=r8(this.provider)};
Br=function(u){u.N.startTime=u.X;u.N.endTime=u.G;var h=!1;u.segments.length&&g.tu(u.segments).isEmpty()?(u.segments[u.segments.length-1].previouslyEnded&&(u.N.previouslyEnded=!0),u.segments[u.segments.length-1]=u.N,h=!0):u.segments.length&&u.N.isEmpty()||(u.segments.push(u.N),h=!0);h?u.N.endTime===0&&(u.previouslyEnded=!1):u.N.previouslyEnded&&(u.previouslyEnded=!0);u.T+=u.G-u.X;u.N=r8(u.provider);u.N.previouslyEnded=u.previouslyEnded;u.previouslyEnded=!1;u.X=u.G};
qwV=function(u){vAn(u);u.C=g.A5(function(){u.update()},100);
u.Uw=g.Xa(u.provider);u.N=r8(u.provider)};
vAn=function(u){g.PS(u.C);u.C=NaN};
Ths=function(u,h,L){L-=u.Uw;return h===u.G&&L>.5};
YwL=function(u,h,L,Z){this.xI=h;this.mz=L;this.segments=[];this.experimentIds=[];this.VA=this.Ca=this.isFinal=this.delayThresholdMet=this.vJ=this.Td=this.autoplay=this.autonav=!1;this.eq="yt";this.C=[];this.V=this.Y=null;this.sendVisitorIdHeader=this.ZI=!1;this.S=this.pageId="";this.T=L==="watchtime";this.X=L==="playback";this.XB=L==="atr";this.ol=L==="engage";this.sendVisitorIdHeader=!1;this.uri=this.XB?"/api/stats/"+L:"//"+h.De+"/api/stats/"+L;Z&&(this.Ca=Z.fs,Z.rtn&&(this.V=Z.rtn),this.T?(this.playerState=
Z.state,Z.rti>0&&(this.Y=Z.rti)):(this.jx=Z.mos,this.h4=Z.volume,Z.at&&(this.adType=Z.at)),Z.autonav&&(this.autonav=Z.autonav),Z.inview!=null&&(this.vj=Z.inview),Z.size&&(this.nH=Z.size),Z.playerwidth&&(this.playerWidth=Z.playerwidth),Z.playerheight&&(this.playerHeight=Z.playerheight));this.XN=g.No(h.G);this.S=w2(h.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.S==="all"||this.S==="once")this.wm=g.No(h.mz);this.Mr=h.Sd;this.experimentIds=QK1(h.experiments);this.jd=h.wm;this.eq=h.AB;this.region=
h.region;this.userAge=h.userAge;this.fI=h.oM;this.Oo=v5();this.sendVisitorIdHeader=h.sendVisitorIdHeader;this.gw=h.j("vss_pings_using_networkless")||h.j("kevlar_woffle");this.Zg=h.j("vss_final_ping_send_and_write");this.DI=h.j("vss_use_send_and_write");this.pageId=h.pageId;this.J4=h.j("vss_playback_use_send_and_write");h.livingRoomAppMode&&(this.livingRoomAppMode=h.livingRoomAppMode);this.A4=h.B&&h.j("embeds_append_synth_ch_headers");g.MW(h)&&(this.vX=h.gw);g.KF(g.Yy(h))&&this.C.push(1);this.accessToken=
g.mn(u);u.qU[this.mz]?this.B=u.qU[this.mz]:u.qU.playback&&(this.B=u.qU.playback);this.adFormat=u.adFormat;this.adQueryId=u.adQueryId;this.autoplay=zA(u);this.X&&(this.Td=(u.j("html5_enable_log_server_autoplay")||u.j("enable_cleanup_masthead_autoplay_hack_fix"))&&u.OF&&UT(u)==="adunit"?!0:!1);this.autonav=u.isAutonav||this.autonav;this.contentVideoId=rm(u);this.clientPlaybackNonce=u.clientPlaybackNonce;this.vJ=u.Rc;u.C&&(this.AB=u.C,this.e7=u.Mv);u.mdxEnvironment&&(this.mdxEnvironment=u.mdxEnvironment);
this.G=u.VA;this.La=u.La;u.N&&(this.Z1=u.N.itag,u.B&&u.B.itag!==this.Z1&&(this.xl=u.B.itag));u.G&&Lk(u.G)&&(this.offlineDownloadUserChoice="1");this.eventLabel=UT(u);this.VA=u.Mr?!1:u.ol;this.Uo=u.zy;if(h=cz(u))this.t4=h;this.qr=u.E2;this.partnerId=u.partnerId;this.eventId=u.eventId;this.playlistId=u.oY||u.playlistId;this.Ne=u.Ne;this.KV=u.KV;this.QK=u.QK;this.eO=u.eO;this.subscribed=u.subscribed;this.videoId=u.videoId;this.videoMetadata=u.videoMetadata;this.visitorData=u.visitorData;this.osid=u.osid;
this.XT=u.XT;this.referrer=u.referrer;this.jK=u.E_||u.jK;this.Sd=u.W4;this.gy=u.gy;this.userGenderAge=u.userGenderAge;this.q_=u.q_;this.embedsRct=u.embedsRct;this.embedsRctn=u.embedsRctn;g.MW(this.xI)&&u.mutedAutoplay&&(u.j("embeds_enable_full_length_inline_muted_autoplay")&&u.mutedAutoplayDurationMode===2&&u.limitedPlaybackDurationInSeconds===0&&u.endSeconds===0?this.C.push(7):this.C.push(2));u.isEmbedsShortsMode(new g.II(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.C.push(3);g.Wz(u)&&
this.C.push(4);this.aH=u.EZ;u.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=u.compositeLiveIngestionOffsetToken)};
oAV=function(u,h){var L=u.sendVisitorIdHeader?u.visitorData:void 0;return g.Fp(u.xI,u.accessToken).then(function(Z){return hFn(u.uri,u.xI,u.pageId,L,Z,h,u.A4)})};
GXa=function(u,h){return function(){u.xI.j("html5_simplify_pings")?(u.G=u.T7,u.jq=h(),u.Oo=0,u.send()):oAV(u).then(function(L){var Z=Nhw(u);Z.cmt=Z.len;Z.lact="0";var y=h().toFixed(3);Z.rt=Number(y).toString();Z=g.sr(u.uri,Z);u.xI.j("vss_through_gel_double")&&U41(Z);u.gw?(L==null&&(L={}),u.DI?Ft().sendAndWrite(Z,L):Ft().sendThenWrite(Z,L)):L?g.XI(Z,L):g.dx(Z)})}};
Nhw=function(u){var h={ns:u.eq,el:u.eventLabel,cpn:u.clientPlaybackNonce,ver:2,cmt:u.N(u.G),fmt:u.Z1,fs:u.Ca?"1":"0",rt:u.N(u.jq),adformat:u.adFormat,content_v:u.contentVideoId,euri:u.Mr,lact:u.Oo,live:u.t4,cl:(726265192).toString(),mos:u.jx,state:u.playerState,volume:u.h4};u.subscribed&&(h.subscribed="1");Object.assign(h,u.XN);u.S==="all"?Object.assign(h,u.wm):u.S==="once"&&u.X&&Object.assign(h,u.wm);u.autoplay&&(h.autoplay="1");u.Td&&(h.sautoplay="1");u.vJ&&(h.dni="1");!u.T&&u.vX&&(h.epm=H$f[u.vX]);
u.isFinal&&(h["final"]="1");u.VA&&(h.splay="1");u.La&&(h.delay=u.La);u.jd&&(h.hl=u.jd);u.region&&(h.cr=u.region);u.userGenderAge&&(h.uga=u.userGenderAge);u.userAge!==void 0&&u.fI&&(h.uga=u.fI+u.userAge);u.T7!==void 0&&(h.len=u.N(u.T7));!u.T&&u.experimentIds.length>0&&(h.fexp=u.experimentIds.toString());u.V!==null&&(h.rtn=u.N(u.V));u.jK&&(h.feature=u.jK);u.KV&&(h.ctrl=u.KV);u.QK&&(h.ytr=u.QK);u.xl&&(h.afmt=u.xl);u.offlineDownloadUserChoice&&(h.ODUC=u.offlineDownloadUserChoice);u.iP&&(h.lio=u.N(u.iP));
u.T?(h.idpj=u.Uo,h.ldpj=u.qr,u.delayThresholdMet&&(h.dtm="1"),u.Y!=null&&(h.rti=u.N(u.Y)),u.q_&&(h.ald=u.q_),u.compositeLiveIngestionOffsetToken&&(h.clio=u.compositeLiveIngestionOffsetToken)):u.adType!==void 0&&(h.at=u.adType);u.nH&&(u.X||u.T)&&(h.size=u.nH);u.X&&u.C.length&&(h.pbstyle=u.C.join(","));u.vj!=null&&(u.X||u.T)&&(h.inview=u.N(u.vj));u.T&&(h.volume=zV(u,g.Xx(u.segments,function(Z){return Z.volume})),h.st=zV(u,g.Xx(u.segments,function(Z){return Z.startTime})),h.et=zV(u,g.Xx(u.segments,function(Z){return Z.endTime})),
oS(u.segments,function(Z){return Z.playbackRate!==1})&&(h.rate=zV(u,g.Xx(u.segments,function(Z){return Z.playbackRate}))),oS(u.segments,function(Z){return Z.G!=="-"})&&(h.als=g.Xx(u.segments,function(Z){return Z.G}).join(",")),oS(u.segments,function(Z){return Z.previouslyEnded})&&(h.pe=g.Xx(u.segments,function(Z){return""+ +Z.previouslyEnded}).join(",")));
h.muted=zV(u,g.Xx(u.segments,function(Z){return Z.muted?1:0}));
oS(u.segments,function(Z){return Z.visibilityState!==0})&&(h.vis=zV(u,g.Xx(u.segments,function(Z){return Z.visibilityState})));
oS(u.segments,function(Z){return Z.connectionType!==0})&&(h.conn=zV(u,g.Xx(u.segments,function(Z){return Z.connectionType})));
oS(u.segments,function(Z){return Z.N!==0})&&(h.blo=zV(u,g.Xx(u.segments,function(Z){return Z.N})));
oS(u.segments,function(Z){return!!Z.X})&&(h.blo=g.Xx(u.segments,function(Z){return Z.X}).join(","));
oS(u.segments,function(Z){return!!Z.compositeLiveStatusToken})&&(h.cbs=g.Xx(u.segments,function(Z){return Z.compositeLiveStatusToken}).join(","));
oS(u.segments,function(Z){return Z.B!=="-"})&&(h.cc=g.Xx(u.segments,function(Z){return Z.B}).join(","));
oS(u.segments,function(Z){return Z.clipId!=="-"})&&(h.clipid=g.Xx(u.segments,function(Z){return Z.clipId}).join(","));
if(oS(u.segments,function(Z){return!!Z.audioId})){var L="au";
u.X&&(L="au_d");h[L]=g.Xx(u.segments,function(Z){return Z.audioId}).join(",")}pP()&&u.AB&&(h.ctt=u.AB,h.cttype=u.e7,h.mdx_environment=u.mdxEnvironment);
u.ol&&(h.etype=u.RH!==void 0?u.RH:0);u.Sd&&(h.uoo=u.Sd);u.livingRoomAppMode&&u.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(h.clram=raa[u.livingRoomAppMode]||u.livingRoomAppMode);u.B?Bhf(u,h):(h.docid=u.videoId,h.referrer=u.referrer,h.ei=u.eventId,h.of=u.XT,h.osid=u.osid,h.vm=u.videoMetadata,u.adQueryId&&(h.aqi=u.adQueryId),u.autonav&&(h.autonav="1"),u.playlistId&&(h.list=u.playlistId),u.eO&&(h.ssrt="1"),u.gy&&(h.upt=u.gy));u.X&&(u.embedsRct&&(h.rct=u.embedsRct),u.embedsRctn&&(h.rctn=
u.embedsRctn),u.compositeLiveIngestionOffsetToken&&(h.clio=u.compositeLiveIngestionOffsetToken));u.aH&&(h.host_cpn=u.aH);return h};
Bhf=function(u,h){if(h&&u.B){var L=new Set(["q","feature","mos"]),Z=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),y=new Set(["aqi","autonav","list","ssrt","upt"]);u.B.ns==="3pp"&&(h.ns="3pp");for(var R=g.C(Object.keys(u.B)),p=R.next();!p.done;p=R.next())p=p.value,Z.has(p)||L.has(p)||y.has(p)&&!u.B[p]||(h[p]=u.B[p])}};
zV=function(u,h){return g.Xx(h,u.N).join(",")};
U41=function(u){u.indexOf("watchtime")!==-1&&g.pM("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:u}})};
zFs=function(u,h){u.attestationResponse&&oAV(u).then(function(L){L=L||{};L.method="POST";L.postParams={atr:u.attestationResponse};u.gw?u.DI?Ft().sendAndWrite(h,L):Ft().sendThenWrite(h,L):g.XI(h,L)})};
m5=function(u){g.m.call(this);this.provider=u;this.C="paused";this.T=NaN;this.V=[10,10,10,40];this.Y=this.S=0;this.RH=this.gw=this.XB=this.AB=this.X=!1;this.N=this.B=NaN;this.G=new XOY(u)};
nA1=function(u){if(!u.X){u.provider.videoData.tH===16623&&g.G3(Error("Playback for EmbedPage"));var h=d8(u,"playback");a:{if(u.provider.xI.j("web_player_use_server_vss_schedule")){var L,Z=(L=u.provider.videoData.getPlayerResponse())==null?void 0:L.playbackTracking,y=Z==null?void 0:Z.videostatsScheduledFlushWalltimeSeconds;Z=Z==null?void 0:Z.videostatsDefaultFlushIntervalSeconds;if(y&&y.length>0&&Z){L=[];var R=u.provider.videoData.zy,p=u.provider.videoData.E2,J=-R;y=g.C(y);for(var O=y.next();!O.done;O=
y.next())O=O.value,L.push(O-J),J=O;L.push(Z+p-R);L.push(Z);u.V=L;break a}}u.V=[10+u.provider.videoData.zy,10,10,40+u.provider.videoData.E2-u.provider.videoData.zy,40]}qwV(u.G);h.V=VD(u);u.N>0&&(h.G-=u.N);h.send();u.provider.videoData.qC&&(h=u.provider.xI,Z=u.provider.videoData,L={html5:"1",video_id:Z.videoId,cpn:Z.clientPlaybackNonce,ei:Z.eventId,ptk:Z.qC,oid:Z.Ey,ptchn:Z.P3,pltype:Z.oW,content_v:rm(Z)},Z.Ny&&Object.assign(L,{m:Z.Ny}),h=g.sr(h.a7+"ptracking",L),m4i(u,h));u.provider.videoData.La||
(d4f(u),VEb(u),u.Pp());u.X=!0;h=u.G;h.G=h.provider.G7.V$();h.Uw=g.Xa(h.provider);!(h.X===0&&h.G<5)&&h.G-h.X>2&&(h.X=h.G);h.V=!0;u.provider.xI.j("html5_log_vss_details")&&u.provider.G7.IH("vssinit",{})}};
VD=function(u,h){h=h===void 0?NaN:h;var L=g.Xa(u.provider);h=isNaN(h)?L:h;h=Math.ceil(h);var Z=u.V[u.S];u.S+1<u.V.length&&u.S++;var y=h+Z;u.T=g.IJ(function(){if(!u.ww()){u.T=NaN;var R=sUe(u),p=wOi(u,R);p.Y=y;var J=u.Y>1E3;!(R.length>1)&&R[0].isEmpty()||J||(p.V=VD(u,y));p.send();u.Y++}},(y-L)*1E3);
return u.B=y};
nT=function(u){g.x7(u.T);u.T=NaN};
sUe=function(u){u.G.update();u=u.G;u.segments.length&&u.G===u.X||Br(u);var h=u.segments;u.segments=[];return h};
d8=function(u,h){var L=eFa(u.provider);Object.assign(L,{state:u.C});h=new YwL(u.provider.videoData,u.provider.xI,h,L);h.G=u.provider.G7.V$();L=u.provider.videoData.clientPlaybackNonce;h.G=u.provider.G7.Q4(L);u.provider.videoData.isLivePlayback||(h.T7=u.provider.G7.getDuration(L));u.provider.videoData.G&&(L=u.provider.videoData.G.Nr(h.G))&&(h.iP=L-h.G);h.jq=g.Xa(u.provider);h.segments=[r8(u.provider)];return h};
wOi=function(u,h){var L=d8(u,"watchtime");aHa(u)&&(L.delayThresholdMet=!0,u.XB=!0);if(u.N>0){for(var Z=g.C(h),y=Z.next();!y.done;y=Z.next())y=y.value,y.startTime-=u.N,y.endTime-=u.N;L.G-=u.N}else L.G=u.G.uq();L.segments=h;return L};
sy=function(u,h){var L=$4L(u,!isNaN(u.B));h&&(u.B=NaN);return L};
$4L=function(u,h){var L=wOi(u,sUe(u));!isNaN(u.B)&&h&&(L.Y=u.B);return L};
aHa=function(u){var h;if(h=u.provider.videoData.isLoaded()&&u.provider.videoData.La&&u.X&&!u.XB)h=u.G,h=h.T+h.provider.G7.V$()-h.X>=u.provider.videoData.La;return!!h};
d4f=function(u){u.provider.videoData.youtubeRemarketingUrl&&!u.gw&&(m4i(u,u.provider.videoData.youtubeRemarketingUrl),u.gw=!0)};
VEb=function(u){u.provider.videoData.googleRemarketingUrl&&!u.RH&&(m4i(u,u.provider.videoData.googleRemarketingUrl),u.RH=!0)};
tE1=function(u){u.provider.xI.j("html5_log_vss_details")&&u.provider.G7.IH("vssfi",{});if(!u.ww()&&u.X){u.C="paused";var h=sy(u);h.isFinal=!0;h.send();u.dispose()}};
W2j=function(u,h){if(!u.ww())if(g.F(h.state,2)||g.F(h.state,512)){if(u.C="paused",g.DK(h,2)||g.DK(h,512))g.DK(h,2)&&(u.G.previouslyEnded=!0),u.X&&(nT(u),sy(u).send(),u.B=NaN)}else if(g.F(h.state,8)){u.C="playing";var L=u.X&&isNaN(u.T)?VD(u):NaN;!isNaN(L)&&(fG(h,64)<0||fG(h,512)<0)&&(u=$4L(u,!1),u.V=L,u.send())}else u.C="paused"};
F2i=function(u,h,L){if(!u.AB){L||(L=d8(u,"atr"));L.attestationResponse=h;try{L.send()}catch(Z){if(Z.message!=="Unknown Error")throw Z;}u.AB=!0}};
m4i=function(u,h){var L=u.provider.xI;g.Fp(u.provider.xI,g.mn(u.provider.videoData)).then(function(Z){var y=u.provider.xI.pageId,R=u.provider.xI.sendVisitorIdHeader?u.provider.videoData.visitorData:void 0,p=u.provider.xI.j("vss_pings_using_networkless")||u.provider.xI.j("kevlar_woffle"),J=u.provider.xI.j("allow_skip_networkless");Z=hFn(h,L,y,R,Z);L2l(h,Z,{token:u.provider.videoData.C,Mu:u.provider.videoData.Mv,mdxEnvironment:u.provider.videoData.mdxEnvironment},L,void 0,p&&!J,!1,!0)})};
b$R=function(){this.endTime=this.startTime=-1;this.B="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.N=0;this.compositeLiveStatusToken=this.X=void 0;this.volume=this.connectionType=0;this.muted=!1;this.G=this.clipId="-";this.previouslyEnded=!1};
w8=function(u,h,L){this.videoData=u;this.xI=h;this.G7=L;this.G=void 0};
g.Xa=function(u){return EAR(u)()};
EAR=function(u){if(!u.G){var h=g.gn(function(Z){var y=(0,g.vC)();Z&&y<=631152E6&&(u.G7.IH("ytnerror",{issue:28799967,value:""+y}),y=(new Date).getTime()+2);return y},u.xI.j("html5_validate_yt_now")),L=h();
u.G=function(){return Math.round(h()-L)/1E3};
u.G7.Sa()}return u.G};
eFa=function(u){var h=u.G7.Gt()||{};h.fs=u.G7.PS();h.volume=u.G7.getVolume();h.muted=u.G7.isMuted()?1:0;h.mos=h.muted;h.clipid=u.G7.OQ();var L;h.playerheight=((L=u.G7.getPlayerSize())==null?void 0:L.height)||0;var Z;h.playerwidth=((Z=u.G7.getPlayerSize())==null?void 0:Z.width)||0;u=u.videoData;L={};u.N&&(L.fmt=u.N.itag,u.B&&(u.Td?u.B.itag!==u.N.itag:u.B.itag!=u.N.itag)&&(L.afmt=u.B.itag));L.ei=u.eventId;L.list=u.playlistId;L.cpn=u.clientPlaybackNonce;u.videoId&&(L.v=u.videoId);u.Mt&&(L.infringe=1);
(u.Mr?0:u.ol)&&(L.splay=1);(Z=cz(u))&&(L.live=Z);u.OF&&(L.sautoplay=1);u.J3&&(L.autoplay=1);u.Ne&&(L.sdetail=u.Ne);u.partnerId&&(L.partnerid=u.partnerId);u.osid&&(L.osid=u.osid);u.NF&&(L.cc=g.ofe(u.NF));return Object.assign(h,L)};
caV=function(u){var h=Dwa();if(h)return kXi[h]||kXi.other;if(g.SM(u.xI)){u=navigator.userAgent;if(/[Ww]ireless[)]/.test(u))return 3;if(/[Ww]ired[)]/.test(u))return 30}return 0};
r8=function(u){var h=new b$R,L;h.B=((L=eFa(u).cc)==null?void 0:L.toString())||"-";h.playbackRate=u.G7.getPlaybackRate();L=u.G7.getVisibilityState();L!==0&&(h.visibilityState=L);u.xI.e7&&(h.N=1);h.X=u.videoData.b$;h.compositeLiveStatusToken=u.videoData.compositeLiveStatusToken;L=u.G7.getAudioTrack();L.tM&&L.tM.id&&L.tM.id!=="und"&&(h.audioId=L.tM.id);h.connectionType=caV(u);h.volume=u.G7.getVolume();h.muted=u.G7.isMuted();h.clipId=u.G7.OQ()||"-";h.G=u.videoData.UV||"-";return h};
g.eL=function(u,h){g.m.call(this);var L=this;this.provider=u;this.B=!1;this.X=new Map;this.ex=new g.EF;this.zd={HvI:function(){return L.qoe},
Azy:function(){return L.G},
Ced:function(){return L.N}};
this.provider.videoData.ih()&&!this.provider.videoData.wD&&(this.G=new m5(this.provider),this.G.N=this.provider.videoData.Uo/1E3,g.V(this,this.G),this.qoe=new g.oq(this.provider,h),g.V(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Gh=this.provider.videoData.clientPlaybackNonce)&&this.X.set(this.Gh,this.G));if(u.xI.playerCanaryState==="canary"||u.xI.playerCanaryState==="holdback")this.N=new SL(this.provider),g.V(this,this.N)};
gAL=function(u){return!!u.G&&!!u.qoe};
aq=function(u){u.N&&$uf(u.N);u.qoe&&lHf(u.qoe)};
uaa=function(u){if(u.qoe){u=u.qoe;for(var h=u.provider.videoData,L=u.provider.xI,Z=g.C(L.Km),y=Z.next();!y.done;y=Z.next())Uy(u,y.value);if(u.provider.j("html5_enable_qoe_cat_list"))for(Z=g.C(h.kU),y=Z.next();!y.done;y=Z.next())Uy(u,y.value);else h.Km&&Uy(u,u.provider.videoData.Km);h.bP()&&(Z=h.G,L3(h)&&Uy(u,"manifestless"),Z&&Dp(Z)&&Uy(u,"live-segment-"+Dp(Z).toFixed(1)));EX(h)?Uy(u,"sabr"):u.cV(Rb(h));if(dm(h)||h.KZ())h.KZ()&&Uy(u,"ssa"),Uy(u,"lifa");h.gatewayExperimentGroup&&(Z=h.gatewayExperimentGroup,
Z==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?Z="spkadtrt":Z==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(Z="spkadctrl"),Uy(u,Z));L.AB!=="yt"&&(u.G.len=[h.lengthSeconds.toFixed(2)]);h.cotn&&!n3(h)&&u.f_(!0);L.UU()&&(h=O$L())&&u.IH("cblt",{m:h});if(L.j("html5_log_screen_diagonal")){L=u.IH;var R;h=((R=window.H5vccScreen)==null?0:R.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;L.call(u,"cbltdiag",{v:h})}}};
jqi=function(u){if(u.provider.G7.m7()){if(u.B)return;u.B=!0}u.G&&nA1(u.G);if(u.N){u=u.N;var h=g.Xa(u.provider);u.G<0&&(u.G=h,u.delay.start());u.N=h;u.B=h}};
h$e=function(u,h){u.G&&(u=u.G,h===58?u.G.update():u.X&&(nT(u),sy(u).send(),u.B=NaN))};
L5e=function(u,h){if(g.DK(h,1024)||g.DK(h,512)||g.DK(h,4)){if(u.N){var L=u.N;L.N>=0||(L.G=-1,L.delay.stop())}u.qoe&&(L=u.qoe,L.S||(L.N=-1))}if(u.provider.videoData.enableServerStitchedDai&&u.Gh){var Z;(Z=u.X.get(u.Gh))==null||W2j(Z,h)}else u.G&&W2j(u.G,h);if(u.qoe){Z=u.qoe;L=h.state;var y=g.Xa(Z.provider),R=Z.getPlayerState(L);Swf(Z,y,R,L.seekSource||void 0);R=L.Ad;g.F(L,128)&&R&&(R.SB=R.SB||"",C$j(Z,y,R.errorCode,R.Mc,R.SB));(g.F(L,2)||g.F(L,128))&&Z.reportStats(y);L.isPlaying()&&!Z.S&&(Z.N>=0&&
(Z.G.user_intent=[Z.N.toString()]),Z.S=!0);x4n(Z)}u.N&&(Z=u.N,tgf(Z),Z.playerState=h.state,Z.N>=0&&g.DK(h,16)&&Z.seekCount++,h.state.isError()&&Z.send());u.provider.G7.m7()&&(u.ex=h.state)};
ZTa=function(u){if(u.provider.videoData.enableServerStitchedDai&&u.Gh){var h;(h=u.X.get(u.Gh))!=null&&Br(h.G)}else u.G&&Br(u.G.G)};
yy1=function(u){u.N&&u.N.send();if(u.qoe){var h=u.qoe;if(h.X){h.ex==="PL"&&(h.ex="N");var L=g.Xa(h.provider);g.YR(h,L,"vps",[h.ex]);h.S||(h.N>=0&&(h.G.user_intent=[h.N.toString()]),h.S=!0);h.provider.xI.UU()&&h.IH("finalized",{});h.DI=!0;h.reportStats(L)}}if(u.provider.videoData.enableServerStitchedDai)for(h=g.C(u.X.values()),L=h.next();!L.done;L=h.next())tE1(L.value);else u.G&&tE1(u.G);u.dispose()};
R$R=function(u,h){u.G&&F2i(u.G,h)};
pra=function(u){if(!u.G)return null;var h=d8(u.G,"atr");return function(L){u.G&&F2i(u.G,L,h)}};
K5a=function(u,h,L,Z){L.adFormat=L.eq;var y=h.G7;h=new m5(new w8(L,h.xI,{getDuration:function(){return L.lengthSeconds},
getCurrentTime:function(){return y.getCurrentTime()},
V$:function(){return y.V$()},
Q4:function(){return y.Q4()},
m7:function(){return y.m7()},
JL:function(){return y.JL()},
getPlayerSize:function(){return y.getPlayerSize()},
getAudioTrack:function(){return L.getAudioTrack()},
getPlaybackRate:function(){return y.getPlaybackRate()},
Q8:function(){return y.Q8()},
getVisibilityState:function(){return y.getVisibilityState()},
QO:function(){return y.QO()},
Gt:function(){return y.Gt()},
getVolume:function(){return y.getVolume()},
isMuted:function(){return y.isMuted()},
PS:function(){return y.PS()},
OQ:function(){return y.OQ()},
getProximaLatencyPreference:function(){return y.getProximaLatencyPreference()},
Sa:function(){y.Sa()},
IH:function(R,p){y.IH(R,p)},
qW:function(){return y.qW()}}));
h.N=Z;g.V(u,h);return h};
JyL=function(){this.FC=0;this.X=this.zn=this.NI=this.N=NaN;this.G={};this.bandwidthEstimate=NaN};
$R=function(u,h,L){g.m.call(this);var Z=this;this.xI=u;this.G7=h;this.N=L;this.G=new Map;this.Gh="";this.zd={qv:function(){return Array.from(Z.G.keys())}}};
OTY=function(u,h){u.G.has(h)&&(yy1(u.G.get(h)),u.G.delete(h))};
fnn=function(){this.G=g.jR;this.array=[]};
cyi=function(u,h,L){var Z=[];for(h=DeY(u,h);h<u.array.length;++h){var y=u.array[h];(y.end<=L||y.contains(L))&&Z.push(y);if(y.start>L)break}return Z};
InR=function(u,h){var L=[];u=g.C(u.array);for(var Z=u.next();!Z.done&&!(Z=Z.value,Z.contains(h)&&L.push(Z),Z.start>h);Z=u.next());return L};
Ayi=function(u){return u.array.slice(DeY(u,0x7ffffffffffff),u.array.length)};
DeY=function(u,h){u=J8(u.array,function(L){return h-L.start||1});
return u<0?-(u+1):u};
xen=function(u,h){var L=NaN;u=g.C(u.array);for(var Z=u.next();!Z.done;Z=u.next())if(Z=Z.value,Z.contains(h)&&(isNaN(L)||Z.end<L)&&(L=Z.end),Z.start>h&&(isNaN(L)||Z.start<L)){L=Z.start;break}return L};
P7j=function(u,h){u.array=u.array.filter(function(L){return!h.has(L)})};
g.ty=function(u,h,L,Z,y){g.m.call(this);this.Y=u;this.XB=h;this.C=L;this.AB=Z;this.B=y;this.X=NaN;this.V=this.S=this.started=!1;this.N=[];this.RH=new g.EM(this.sync,250,this);g.V(this,this.RH);this.T=new g.EM(this.sync,0,this);g.V(this,this.T);this.G=new fnn};
C7l=function(u){u.started=!0;u.sync()};
MLY=function(u,h){u.started&&(u.sync(),g.F(h.oldState,16)&&(h=xen(u.G,Math.max(u.X-2E3,0)),!isNaN(h)&&h<0x7ffffffffffff&&u.T.start()))};
iT1=function(u,h){h=g.C(h);for(var L=h.next();!L.done;L=h.next()){L=L.value;var Z=L[1];L[0]===1?u.AB(g.hc(Z.namespace),Z):u.AB(g.L2(Z.namespace),Z)}};
g.Wr=function(u){var h=this;this.G7=u;this.zd={Gti:function(){return h.G7}}};
Fa=function(u){u.G7.dispose()};
Qql=function(u){this.xI=u;this.X=this.N=this.mediaTime=NaN;this.B=this.G=!1;this.T=.001;g.SM(u)&&(this.T=.01)};
b7=function(u,h){return h>u.mediaTime+u.T&&h<u.mediaTime+5};
UwY=function(u,h,L,Z,y){if(Z=Z>1)u.B=!0;if((y===void 0?0:y)||isNaN(u.N))u.N=h;if(u.G)h!==u.mediaTime&&(u.G=!1);else if(h>0&&u.mediaTime===h){y=1500;if(u.xI.j("html5_buffer_underrun_transition_fix")){y=g.Jl(u.xI.experiments,"html5_min_playback_advance_for_steady_state_secs");var R=g.Jl(u.xI.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");y=y>0&&R>0&&Math.abs(h-u.N)<y?R:1500}return L-u.X>(Z||!u.B?y:400)}u.mediaTime=h;u.X=L;return!1};
lnV=function(u,h){this.videoData=u;this.G=h};
Syn=function(u,h,L){return h.mG(L).then(function(){return UJ(new lnV(h,h.X))},function(Z){Z instanceof Error&&g.G3(Z);
var y=qK('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),R=Y6('audio/mp4; codecs="mp4a.40.2"'),p=y||R,J=h.isLivePlayback&&!g.t3(u.T,!0);Z="fmt.noneavailable";J?Z="html5.unsupportedlive":p||(Z="html5.missingapi");p=J||!p?2:1;y={buildRej:"1",a:h.nX(),d:!!h.jq,drm:h.v7(),f18:h.Qs.indexOf("itag=18")>=0,c18:y};h.G&&(h.v7()?(y.f142=!!h.G.G["142"],y.f149=!!h.G.G["149"],y.f279=!!h.G.G["279"]):(y.f133=!!h.G.G["133"],y.f140=!!h.G.G["140"],y.f242=!!h.G.G["242"]),y.cAAC=R,y.cAVC=Y6('video/mp4; codecs="avc1.42001E"'),
y.cVP9=Y6('video/webm; codecs="vp9"'));h.T&&(y.drmsys=h.T.keySystem,R=0,h.T.G&&(R=Object.keys(h.T.G).length),y.drmst=R);return new lZ(Z,y,p)})};
Ey=function(u){this.data=window.Float32Array?new Float32Array(u):Array(u);this.N=this.G=u-1};
XrR=function(u){return u.data[u.G]||0};
vRj=function(u){this.T=u;this.X=this.N=0;this.B=new Ey(50)};
g8=function(u,h,L){g.yV.call(this);this.videoData=u;this.experiments=h;this.C=L;this.N=[];this.B=0;this.X=!0;this.T=!1;this.V=0;L=new qyn;u.latencyClass==="ULTRALOW"&&(L.B=!1);u.fI?L.N=3:g.C3(u)&&(L.N=2);u.latencyClass==="NORMAL"&&(L.C=!0);var Z=g.Jl(h,"html5_liveness_drift_proxima_override");if(Rb(u)!==0&&Z){L.G=Z;var y;((y=u.G)==null?0:oxf(y))&&L.G--}EX(u)&&h.tB("html5_sabr_parse_live_metadata_playback_boundaries")&&(L.Y=!0);if(g.nP("trident/")||g.nP("edge/"))y=g.Jl(h,"html5_platform_minimum_readahead_seconds")||
3,L.X=Math.max(L.X,y);g.Jl(h,"html5_minimum_readahead_seconds")&&(L.X=g.Jl(h,"html5_minimum_readahead_seconds"));g.Jl(h,"html5_maximum_readahead_seconds")&&(L.S=g.Jl(h,"html5_maximum_readahead_seconds"));h.tB("html5_force_adaptive_readahead")&&(L.B=!0);if(y=g.Jl(h,"html5_liveness_drift_chunk_override"))L.G=y;Zy(u)&&(L.G=(L.G+1)/5,u.latencyClass==="LOW"&&(L.G*=2));if(u.latencyClass==="ULTRALOW"||u.latencyClass==="LOW")L.T=g.Jl(h,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,L.V=g.Jl(h,
"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=L;this.S=this.policy.N!==1;this.G=kR(this,T8f(this,isNaN(u.liveChunkReadahead)?3:u.liveChunkReadahead,u))};
YyL=function(u,h){if(h)return h=u.videoData,h=T8f(u,isNaN(h.liveChunkReadahead)?3:h.liveChunkReadahead,h),kR(u,h);if(u.N.length){if(Math.min.apply(null,u.N)>1)return kR(u,u.G-1);if(u.policy.B)return kR(u,u.G+1)}return u.G};
oRV=function(u,h){if(!u.N.length)return!1;var L=u.G;u.G=YyL(u,h===void 0?!1:h);if(h=L!==u.G)u.N=[],u.B=0;return h};
uX=function(u,h){return h>=u.Vf()-N8i(u)};
Uen=function(u,h,L){h=uX(u,h);L||h?h&&(u.X=!0):u.X=!1;u.S=u.policy.N===2||u.policy.N===3&&u.X};
GVL=function(u,h){h=uX(u,h);u.T!==h&&u.publish("livestatusshift",h);u.T=h};
N8i=function(u){var h=u.policy.G;u.T||(h=Math.max(h-1,0));return h*jA(u)};
T8f=function(u,h,L){L.fI&&h--;Zy(L)&&(h=1);if(Rb(L)!==0&&(u=g.Jl(u.experiments,"html5_live_chunk_readahead_proxima_override"))){h=u;var Z;((Z=L.G)==null?0:oxf(Z))&&h++}return h};
jA=function(u){return u.videoData.G?Dp(u.videoData.G)||5:5};
kR=function(u,h){h=Math.max(Math.max(1,Math.ceil(u.policy.X/jA(u))),h);return Math.min(Math.min(8,Math.floor(u.policy.S/jA(u))),h)};
qyn=function(){this.X=0;this.S=Infinity;this.B=!0;this.G=2;this.N=1;this.C=!1;this.V=10;this.Y=!1;this.T=1};
Zt=function(u){g.m.call(this);this.G7=u;this.G=0;this.N=null;this.C=this.B=0;this.X={};this.xI=this.G7.L();this.T=new g.EM(this.pW,1E3,this);this.xl=new h1({delayMs:g.Jl(this.xI.experiments,"html5_seek_timeout_delay_ms")});this.DI=new h1({delayMs:g.Jl(this.xI.experiments,"html5_long_rebuffer_threshold_ms")});this.e7=LK(this,"html5_seek_set_cmt");this.jd=LK(this,"html5_seek_jiggle_cmt");this.ZI=LK(this,"html5_seek_new_elem");this.iP=LK(this,"html5_unreported_seek_reseek");this.XB=LK(this,"html5_long_rebuffer_jiggle_cmt");
this.T7=LK(this,"html5_long_rebuffer_ssap_clip_not_match");this.gw=new h1({delayMs:2E4});this.VA=LK(this,"html5_seek_new_elem_shorts");this.fI=LK(this,"html5_seek_new_media_source_shorts_reuse");this.Sd=LK(this,"html5_seek_new_media_element_shorts_reuse");this.aH=LK(this,"html5_reseek_after_time_jump");this.S=LK(this,"html5_gapless_handoff_close_end_long_rebuffer");this.AB=LK(this,"html5_gapless_slow_seek");this.Y=LK(this,"html5_gapless_slice_append_stuck");this.RH=LK(this,"html5_gapless_slow_start");
this.V=LK(this,"html5_ads_preroll_lock_timeout");this.La=LK(this,"html5_ssap_ad_longrebuffer_new_element");this.vJ=new h1({delayMs:g.Jl(this.xI.experiments,"html5_skip_slow_ad_delay_ms")||5E3,uK:!this.xI.j("html5_report_slow_ads_as_error")});this.wm=new h1({delayMs:g.Jl(this.xI.experiments,"html5_skip_slow_ad_delay_ms")||5E3,uK:!this.xI.j("html5_skip_slow_buffering_ad")});this.Ca=new h1({delayMs:g.Jl(this.xI.experiments,"html5_slow_start_timeout_delay_ms")});this.vX=LK(this,"html5_slow_start_no_media_source");
g.V(this,this.T)};
LK=function(u,h){var L=g.Jl(u.xI.experiments,h+"_delay_ms");u=u.xI.j(h+"_cfl");return new h1({delayMs:L,uK:u})};
HTi=function(u,h){u.G=h};
yy=function(u,h,L,Z,y,R,p,J){h.test(L)?(u.Hj(y,h,p),h.uK||R()):(h.GE&&h.N&&!h.B?(L=(0,g.vC)(),Z?h.G||(h.G=L):h.G=0,R=!Z&&L-h.N>h.GE,L=h.G&&L-h.G>h.JW||R?h.B=!0:!1):L=!1,L&&(J=Object.assign({},u.IV(h),J),J.wn=p,J.we=y,J.wsuc=Z,u.G7.IH("workaroundReport",J),Z&&(h.reset(),u.X[y]=!1)))};
h1=function(u){var h=u===void 0?{}:u;u=h.delayMs===void 0?0:h.delayMs;var L=h.JW===void 0?1E3:h.JW;var Z=h.GE===void 0?3E4:h.GE;h=h.uK===void 0?!1:h.uK;this.G=this.N=this.X=this.startTimestamp=0;this.B=!1;this.T=Math.ceil(u/1E3);this.JW=L;this.GE=Z;this.uK=h};
mea=function(u){g.m.call(this);var h=this;this.G7=u;this.C=this.G=this.nI=this.mediaElement=this.playbackData=null;this.B=0;this.T=this.AB=this.X=null;this.RH=!1;this.vJ=0;this.S=!1;this.timestampOffset=0;this.V=!0;this.jd=0;this.ZI=this.Ca=!1;this.Y=0;this.fI=!1;this.XB=0;this.xI=this.G7.L();this.videoData=this.G7.getVideoData();this.policy=new ryR;this.gw=new Zt(this.G7);this.xl=this.aH=this.vX=this.N=NaN;this.T7=new g.EM(function(){B8L(h,!1)},2E3);
this.wm=new g.EM(function(){RZ(h)});
this.VA=new g.EM(function(){h.RH=!0;z$e(h,{})});
this.e7=NaN;this.DI=new g.EM(function(){var L=h.xI.Mr;L.G+=1E4/36E5;L.G-L.X>1/6&&(sKs(L),L.X=L.G);h.DI.start()},1E4);
g.V(this,this.gw);g.V(this,this.T7);g.V(this,this.VA);g.V(this,this.wm);g.V(this,this.DI)};
nRV=function(u,h){u.playbackData=h;u.videoData.isLivePlayback&&(u.C=new vRj(function(){a:{if(u.playbackData&&u.playbackData.G.G){if(L3(u.videoData)&&u.nI){var L=u.nI.UE.NO()||0;break a}if(u.videoData.G){L=u.videoData.G.gw;break a}}L=0}return L}),u.G=new g8(u.videoData,u.xI.experiments,function(){return u.T1(!0)}));
pK(u.G7)?(h=de1(u),h.fS?(u.j("html5_sabr_enable_utc_seek_requests")&&EX(u.videoData)&&u.fz(h.fS,h.startSeconds),u.B=h.startSeconds):h.startSeconds>0&&u.seekTo(h.startSeconds,{Ek:"seektimeline_startPlayback",seekSource:15}),u.V=!1):VLl(u)||(u.B=u.B||(g.dC(u.videoData)?0:u.videoData.startSeconds)||0)};
wre=function(u,h){(u.nI=h)?sqa(u,!0):KK(u)};
e$1=function(u,h){g.kK(u.gw.T);u.j("html5_exponential_memory_for_sticky")&&(h.state.isPlaying()?g.kK(u.DI):u.DI.stop());if(u.mediaElement)if(h.oldState.state===8&&Z1(h.state)&&h.state.isBuffering()){h=u.mediaElement.getCurrentTime();var L=u.mediaElement.R7();var Z=u.j("manifestless_post_live_ufph")||u.j("manifestless_post_live")?hq(L,Math.max(h-3.5,0)):hq(L,h-3.5);Z>=0&&h>L.end(Z)-1.1&&Z+1<L.length&&L.start(Z+1)-L.end(Z)<11&&(Z=L.start(Z+1)+.2,Math.abs(u.e7-Z)<.2||(u.G7.IH("seekover",{b:ji(L,"_"),
cmt:h}),u.e7=Z,u.seekTo(Z,{zl:!0,Ek:"seektimeline_postLiveDisc"})))}else((L=h.state)==null?0:L.state===8)&&!u.ZI&&(u.videoData.limitedPlaybackDurationInSeconds>0?(J1(u.G7,u.getCurrentTime()+u.videoData.limitedPlaybackDurationInSeconds),u.ZI=!0):u.videoData.isLivePlayback&&u.videoData.endSeconds>0&&(J1(u.G7,u.getCurrentTime()+u.videoData.endSeconds),u.ZI=!0))};
$ea=function(u,h){var L=u.getCurrentTime(),Z=u.isAtLiveHead(L);if(u.C&&Z){var y=u.C;if(y.G&&!(L>=y.N&&L<y.X)){var R=y.G.K0(L);R!==-1&&(y.N=y.G.getStartTime(R),y.X=y.N+y.G.getDuration(R),R=(0,g.vC)()/1E3-y.G.Nr(R),R-=y.T(),y.B.add(R))}}u.G&&(Z&&(y=u.G,R=anL(u),y.B++,y.B<3||Date.now()-y.V<3E3||(y.V=Date.now(),y.N.push(R),y.N.length>50&&y.N.shift())),y=u.G,Uen(y,L,h===void 0?!0:h),GVL(y,L),h&&B8L(u,!0));Z!==u.Ca&&(h=u.getCurrentTime()-u.xl<=500,L=u.vJ>=1E3,h||L||(h=u.G7.WJ(),h.qoe&&(h=h.qoe,L=g.Xa(h.provider),
g.YR(h,L,"lh",[Z?"1":"0"])),u.Ca=Z,u.vJ++,u.xl=u.getCurrentTime()))};
B8L=function(u,h){if(u.G){var L=u.G;var Z=u.getCurrentTime();!uX(L,Z)&&L.o8()?(L.policy.C&&(L.policy.G=Math.max(L.policy.G+L.policy.T,L.policy.V)),L=Infinity):L=Z<L.videoData.yF()?Math.min(L.videoData.yF()+10,L.Vf()):NaN;if(!isNaN(L)){if(u.nI&&h&&(h=u.T7.isActive(),Z=u.G.Vf(),(Z=Pnw(u.nI,Z-u.df()))&&!h)){u.T7.start();u.G7.IH("inBufferPtl",{cmt:u.getCurrentTime(),seekTo:Z+u.df()});u.seekTo(Z+u.df(),{Ek:"seektimeline_inBufferSeek"});return}u.seekTo(L,{Ek:"seektimeline_pegToLive"})}}};
sqa=function(u,h){if(u.G&&u.nI){var L=!1;h?L=!0:u.videoData.isLowLatencyLiveStream||u.videoData.latencyClass==="LOW"||u.videoData.latencyClass==="ULTRALOW"?L=oRV(u.G):u.fI&&(u.fI=!1,L=oRV(u.G,!0));L&&(h=u.G7.WJ(),L=u.G,L=jA(L)*L.G,h.qoe&&(h=h.qoe,g.YR(h,g.Xa(h.provider),"lra",[L]),h.IH("live-readahead-seconds",{v:L})));h=u.nI;L=u.G.G;u=u.G;u=(u.G-1+u.policy.G)*jA(u);var Z=NaN,y=h.iP;y===2||y===-1?Zy(h.G7.getVideoData())&&(Z=h.policy.Rz):--L;L=Math.max(L,0);y=h.T;y.Ep=L;y.Y=Z;h.V&&(h.V.AB=u)}};
tL1=function(u,h){u.B=h};
z$e=function(u,h){W5w(u,h).then(void 0,function(){KK(u)});
F5s(u).then(function(L){bTj(u,L)},function(){KK(u)});
u.G7.Je(h);u.xI.UU()&&(h=u.IV(),h["native"]=""+ +u.S,h.tgt=""+u.N,h.otgt=""+(u.N+u.timestampOffset),u.G&&u.j("html5_high_res_seek_logging")&&(h.tht=""+u.G.C(),h.ht=""+u.G.Vf(),h.adft=""+N8i(u.G)),u.j("html5_sabr_parse_live_metadata_playback_boundaries")&&u.videoData.G&&EX(u.videoData)&&(h.minst=""+u.videoData.G.WS,h.cminst=""+(u.videoData.G.yF()+u.timestampOffset),h.maxst=""+u.videoData.G.gD,h.hts=""+u.videoData.G.RH,h.cmaxst=""+(u.videoData.G.T1()+u.timestampOffset)),u.G7.IH("startSeek",h))};
W5w=function(u,h){u.AB||(u.nI?isFinite(u.N)?u.AB=u.nI.seek(u.N-u.timestampOffset,h):(hF(u.videoData),u.AB=FV(u.nI),sT(u.videoData)||(u.N=u.nI.getCurrentTime()+u.timestampOffset)):u.AB=g.xQ(u.N-u.timestampOffset));return u.AB};
F5s=function(u){var h=u.X;h||(u.X=new aA,h=u.X,RZ(u));return h};
OB=function(u,h,L){return isNaN(h)?NaN:g.pX(h,u.yF(),u.T1(L))};
RZ=function(u){if(u.X)if(u.videoData.isLivePlayback&&u.videoData.X&&!u.videoData.X.G&&u.mediaElement&&u.mediaElement.rD()>0&&tq(u.mediaElement)>0&&(u.N=OB(u,u.N,!1)),!u.mediaElement||!ERe(u))u.wm.start(750);else if(!isNaN(u.N)&&isFinite(u.N)){var h=u.aH-(u.N-u.timestampOffset);if(!(h===0||u.j("html5_enable_new_seek_timeline_logic")&&Math.abs(h)<.005))if(h=u.mediaElement.getCurrentTime()-u.N,Math.abs(h)<=u.jd||u.j("html5_enable_new_seek_timeline_logic")&&Math.abs(h)<.005)u.X&&u.X.resolve(u.mediaElement.getCurrentTime());
else{if(u.videoData.gb)u.videoData.gb=!1;else if(!hF(u.videoData)&&u.N>=u.T1()-.1){u.N=u.T1();u.X.resolve(u.T1());u.G7.Lx();return}try{var L=u.N-u.timestampOffset;u.mediaElement.seekTo(L);u.gw.G=L;u.aH=L;u.B=u.N;u.j("html5_enable_new_seek_timeline_logic")&&(u.S=!1)}catch(Z){}}}};
ERe=function(u){if(!u.mediaElement||u.mediaElement.rD()===0||u.mediaElement.hasError())return!1;var h=u.mediaElement.getCurrentTime()>0;if(!(u.videoData.X&&u.videoData.X.G||u.videoData.isLivePlayback)&&u.videoData.v7())return h;if(u.N>=0){var L=u.mediaElement.EQ();if(L.length||!h)return Ll(L,u.N-u.timestampOffset)}return h};
bTj=function(u,h){u.T&&(u.T.resolve(h),u.G7.Zb(),u.xI.UU()&&(h=u.IV(),h["native"]=""+ +u.S,h.otgt=""+(u.N+u.timestampOffset),u.G7.IH("seekEnd",h)));KK(u)};
KK=function(u){u.N=NaN;u.aH=NaN;u.X=null;u.AB=null;u.T=null;u.RH=!1;u.S=!1;u.jd=0;u.T7.stop();u.VA.stop()};
u5V=function(u,h,L){var Z=u.mediaElement,y=h.type;switch(y){case "seeking":var R=Z.getCurrentTime()+u.timestampOffset;if(!u.X||u.S&&R!==u.N){var p=!!u.X;u.X=new aA;u.j("html5_enable_new_seek_timeline_logic")&&u.X.then(function(O){bTj(u,O)},function(){KK(u)});
if(u.videoData.isAd()){var J;jDb({adCpn:u.videoData.clientPlaybackNonce,contentCpn:(J=u.videoData.EZ)!=null?J:""},h.G)}u.aH=R;HTi(u.gw,Z.getCurrentTime());u.seekTo(R,{seekSource:104,Ek:"seektimeline_mediaElementEvent"});L&&kVf(L,R*1E3,!!p);u.S=!0}break;case "seeked":u.X&&u.X.resolve(u.mediaElement.getCurrentTime());break;case "loadedmetadata":pK(u.G7)||gRY(u);RZ(u);break;case "progress":RZ(u);break;case "pause":u.Y=u.getCurrentTime()}u.Y&&((y==="play"||y==="playing"||y==="timeupdate"||y==="progress")&&
u.getCurrentTime()-u.Y>10&&(u.j("html5_enable_new_media_element_puase_jump")?(u.G7.Hj(new lZ("qoe.restart",{reason:"pauseJump"})),u.G7.uS()):u.seekTo(u.Y,{Ek:"pauseJump"})),y!=="pause"&&y!=="play"&&y!=="playing"&&y!=="progress"&&(u.Y=0))};
jZn=function(u){return(MP(u.videoData)||!!u.videoData.liveUtcStartSeconds)&&(!!u.videoData.liveUtcStartSeconds||VLl(u))&&!!u.videoData.G};
VLl=function(u){return!!u.videoData.startSeconds&&isFinite(u.videoData.startSeconds)&&u.videoData.startSeconds>1E9};
de1=function(u){var h=0,L=NaN,Z="";if(!u.V)return{startSeconds:h,fS:L,source:Z};u.videoData.T7?h=u.videoData.vX:hF(u.videoData)&&(h=Infinity);if(g.C3(u.videoData))return{startSeconds:h,fS:L,source:Z};u.videoData.startSeconds?(Z="ss",h=u.videoData.startSeconds):u.videoData.A4&&(Z="stss",h=u.videoData.A4);u.videoData.liveUtcStartSeconds&&(L=u.videoData.liveUtcStartSeconds);if(isFinite(h)&&(h>u.T1()||h<u.yF())){var y={};y.minSeekableTime=u.yF();y.maxSeekableTime=u.T1();y.cmt=u.getCurrentTime();y.ss=
h;y.utc=L;y.src=Z;u.G7.IH("startSecondsOutOfBounds",y);u.videoData.bP()&&(h=OB(u,h,!1))}return{startSeconds:h,fS:L,source:Z}};
gRY=function(u){if(u.V)if(g.C3(u.videoData))u.V=!1;else{var h="ss",L=0,Z;((Z=u.videoData.G)==null?0:Z.isManifestless)&&u.videoData.iP&&!VLl(u)&&(h="mss",L=u.videoData.iP);(u.videoData.T7?u.j("html5_prioritize_windowed_st_start_seconds"):u.j("html5_prioritize_st_start_seconds"))&&!L&&u.videoData.A4&&(h="stss",L=u.videoData.A4);!L&&jZn(u)&&(L=u.videoData.liveUtcStartSeconds||u.videoData.iP,h="utc",L=u.T1()-u.Nr(u.T1())+L);L||u.j("html5_prefer_initial_ss_over_stream_time_ss_for_vod")&&!u.videoData.bP()||
!u.videoData.A4||(h="stss",L=u.videoData.A4);Z={};if(L){if(L>u.T1()||L<u.yF())Z.minSeekableTime=u.yF(),Z.maxSeekableTime=u.T1(),Z.cmt=u.getCurrentTime(),Z.it=u.Nr(u.getCurrentTime()),Z.ss=L,Z.utc=jZn(u)?u.videoData.liveUtcStartSeconds||u.videoData.iP:0,u.G7.IH("startSecondsOutOfBounds",Z),u.videoData.bP()&&(L=OB(u,L,!1));u.seekTo(L,{Ek:"seektimeline_startSeconds"});Z[h]=L;u.G7.IH("startSeconds",Z);u.V=!1}else u.videoData.iP&&(Z[h]=u.videoData.iP+u.df(),u.G7.IH("startSeconds",Z))}};
hcY=function(u,h){u.G7.IH("sdai",{adj4t:h.toFixed(3)});u.vX=h;h+=1;u.N=h;u.B=h;F5s(u).then(function(L){bTj(u,L)},function(){KK(u)})};
anL=function(u){return u.mediaElement?WP(u.mediaElement):0};
ryR=function(){};
fK=function(u){g.m.call(this);this.X=u;this.G=new Map;this.N=new g.EM(this.sample,250,this);g.V(this,this.N);this.start()};
Dt=function(u,h){if((u=u.G.get(h))==null)u=void 0;else{u=u.buffer;for(h=[];u.N!==u.G;)u.N=(u.N+1)%u.data.length,h.push(u.data[u.N]);u=h}return u||[]};
c_=function(u,h){var L;return((L=u.G.get(h))==null?void 0:XrR(L.buffer))||0};
LKa=function(u){this.G=u;this.zx=NaN;this.buffer=new Ey(100)};
IZ=function(){this.finished=this.started=!1};
J1i=function(u){function h(y){return L.l9&&(!Z.K3||!Z.z7.V)||L.AB!=="yt"&&(Z.partnerId===38&&L.playerStyle==="books"||Z.partnerId===30&&L.playerStyle==="docs"||Z.partnerId===33&&L.playerStyle==="google-live")?ZKi(u,Z,y):y1f(u,Z).then(function(){A1(u,Z)},function(R){A1(u,Z,!0);
throw R;})}
var L=u.L(),Z=u.getVideoData();Z.ww();Z.loading=!0;return Rcs(u)?p_n(u,Z).then(function(){A1(u,Z)},function(y){y=Xo(y);
if(SX(y.severity))return A1(u,Z,!0),Promise.reject(y);y.errorCode==="onesie.response.badproxystatus"&&""+y.details.st==="3"&&(KKV=!0);u.handleError(y);return h("onesie")}):h("gvi")};
Rcs=function(u){var h=u.L();if(h.j("html5_disable_onesie_when_no_subtlecrypto")&&!C7()||h.j("html5_disable_onesie")||!h.j("html5_onesie")||!h.j("html5_onesie_inline")&&u.getVisibilityState()===5||h.AB!=="yt")return!1;var L=h.XU;if(!L||!L.G)return u.handleError(new lZ("onesie.unavailable.hotconfig",{key:"0"})),!1;if(L.G.T<(0,g.vC)()&&(u.IH("okexp","1"),(L=u.PP())&&h.j("html5_prefer_trusted_host_on_key_expiration"))){L.N=!0;var Z;(h=(Z=L.G.get(0))==null?void 0:AD(Z.location))&&!jy(h)&&L.G.delete(0)}if(KKV)return u.IH("ost3",
"1"),!1;Z={};return Object.keys(Z).length>0?(Z.onesie="0",u.handleError(new lZ("html5.missingapi",Z)),!1):!0};
OKV=function(u){var h=Yq();ov(h,u);return g.hC(h,OEn())};
p_n=function(u,h){var L,Z,y,R,p,J,O,f,D,c,I,A,x,Q,S,v,T,U,z,d,W,t,yn,KV,u1,w;return g.G(function(k){if(k.G==1)return h.fetchType="onesie",L=iOw(h,u.getPlayerSize(),u.getVisibilityState()),Z=new FT(u,L),g.N(k,Z.fetch(),2);y=k.N;R={player_response:y};h.loading=!1;p=u.pH.bL;if(Z.rO){J=g.C(Z.rO.entries());for(O=J.next();!O.done;O=J.next())f=O.value,D=g.C(f),c=D.next().value,I=D.next().value,A=c,x=I,p.G.set(A,x,180),A===h.videoId&&(Q=x.J1(),h.uV=Q);p.b_=Z}S=g.C(Z.Py.entries());for(v=S.next();!v.done;v=
S.next())T=v.value,U=g.C(T),z=U.next().value,d=U.next().value,W=z,t=d,p.N.set(W,t,180);g.mg(h,R,!0);if(h.loading||Bu(h))return k.return(Promise.resolve());p.G.removeAll();p.N.removeAll();h.uV=[];yn={};KV="onesie.response";u1=0;h.errorCode?(KV="auth",yn.ec=h.errorCode,yn.ed=h.errorDetail,yn.es=h.Ud||"",u1=2):(yn.successButUnplayable="1",yn.disposed=""+ +h.ww(),yn.afmts=""+ +/adaptiveFormats/.test(y),yn.cpn=h.clientPlaybackNonce);w=new lZ(KV,yn,u1);return k.return(Promise.reject(w))})};
y1f=function(u,h){var L,Z,y,R,p,J,O,f,D,c,I;return g.G(function(A){switch(A.G){case 1:L=h.isAd(),Z=!L,y=L?1:3,R=0;case 2:if(!(R<y)){A.KI(4);break}if(!(R>0)){A.KI(5);break}return g.N(A,Sn(5E3),6);case 6:p=new g.aO("Retrying OnePlatform request",{attempt:R}),g.G3(p);case 5:return g.Qn(A,7),g.N(A,fti(u,h),9);case 9:return A.return();case 7:J=g.Xf(A);O=Xo(J);f=O.errorCode;D=u.L();c=D.j("html5_use_network_error_code_enums")?401:"401";Z&&f==="manifest.net.badstatus"&&O.details.rc===c&&(Z=!1,R===y-1&&(y+=
1));if(R===y-1)return I=D$n(L,O.details),I.details.backend="op",I.details.originec=f,A.return(Promise.reject(I));if(f==="auth"||f==="manifest.net.retryexhausted")return A.return(Promise.reject(O));u.handleError(O);if(SX(O.severity)){A.KI(4);break}case 3:R++;A.KI(2);break;case 4:return A.return(Promise.reject(D$n(L,{backend:"op"})))}})};
fti=function(u,h){function L(KV){KV.readyState===2&&u.uh("ps_c")}
var Z,y,R,p,J,O,f,D,c,I,A,x,Q,S,v,T,U,z,d,W,t,yn;return g.G(function(KV){switch(KV.G){case 1:h.fetchType="gp";Z=u.L();y=g.Fp(Z,g.mn(h));if(!y.G){R=y.getValue();KV.KI(2);break}return g.N(KV,y.G,3);case 3:R=KV.N;case 2:return p=R,J=OKV(p),O=iOw(h,u.getPlayerSize(),u.getVisibilityState()),f=g.E_(c1R),D=g.mn(h),c=(0,g.vC)(),I=!1,A="empty",x=0,u.uh("psns"),Q={ib:L},g.N(KV,g.ah(J,O,f,void 0,Q),4);case 4:S=KV.N;u.uh("psnr");if(h.ww())return KV.return();S?"error"in S&&S.error?(I=!0,A="esf:"+S.error.message,
x=S.error.code):S.errorMetadata&&(I=!0,A="its",x=S.errorMetadata.status):I=!0;if(I)return v=0,T=((0,g.vC)()-c).toFixed(),U={},U=Z.j("html5_use_network_error_code_enums")?{backend:"op",rc:x,rt:T,reason:A,has_kpt:h.vJ?"1":"0",has_mdx_env:h.mdxEnvironment?"1":"0",has_omit_key_flag:g.tn("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:Z.pageId?"1":"0",has_token:D?"1":"0",has_vvt:h.RH?"1":"0",is_mdx:h.isMdxPlayback?"1":"0",mdx_ctrl:h.KV||"",token_eq:D===g.mn(h)?"1":"0"}:{backend:"op",
rc:""+x,rt:T,reason:A,has_kpt:h.vJ?"1":"0",has_mdx_env:h.mdxEnvironment?"1":"0",has_omit_key_flag:g.tn("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:Z.pageId?"1":"0",has_token:D?"1":"0",has_vvt:h.RH?"1":"0",is_mdx:h.isMdxPlayback?"1":"0",mdx_ctrl:h.KV||"",token_eq:D===g.mn(h)?"1":"0"},z="manifest.net.connect",x===429?(z="auth",v=2):x>200&&(z="manifest.net.badstatus",x===400&&(v=2)),KV.return(Promise.reject(new lZ(z,U,v)));h.loading=!1;g.mg(h,{raw_player_response:S},!0);
d=S;g.v$(h.L())&&d&&d.trackingParams&&ip(d.trackingParams);if(h.errorCode)return W={ec:h.errorCode,ed:h.errorDetail,es:h.Ud||""},KV.return(Promise.reject(new lZ("auth",W,2)));if(!h.loading&&!Bu(h))return t=h.isAd()?"auth":"manifest.net.retryexhausted",yn=h.isAd()?2:1,KV.return(Promise.reject(new lZ(t,{successButUnplayable:"1",hasMedia:g.AF(h)?"1":"0"},yn)));g.i1(KV)}})};
ZKi=function(u,h,L){function Z(x){x=Xo(x);if(SX(x.severity))return Promise.reject(x);u.handleError(x);return!1}
function y(){return!0}
var R,p,J,O,f,D,c,I,A;return g.G(function(x){switch(x.G){case 1:var Q=u.L(),S=u.getPlayerSize(),v=u.getVisibilityState();u.isFullscreen();var T=window.location.search;if(h.partnerId===38&&Q.playerStyle==="books")T=h.videoId.indexOf(":"),T=g.sr("//play.google.com/books/volumes/"+h.videoId.slice(0,T)+"/content/media",{aid:h.videoId.slice(T+1),sig:h.uv});else if(h.partnerId===30&&Q.playerStyle==="docs")T=g.sr("https://docs.google.com/get_video_info",{docid:h.videoId,authuser:h.JA,authkey:h.nU,eurl:Q.Sd});
else if(h.partnerId===33&&Q.playerStyle==="google-live")T=g.sr("//google-liveplayer.appspot.com/get_video_info",{key:h.videoId});else{Q.AB!=="yt"&&g.UZ(Error("getVideoInfoUrl for invalid namespace: "+Q.AB));var U={html5:"1",video_id:h.videoId,cpn:h.clientPlaybackNonce,eurl:Q.Sd,ps:Q.playerStyle,el:UT(h),hl:Q.wm,list:h.playlistId,agcid:h.QC,aqi:h.adQueryId,sts:20132,lact:v5()};Object.assign(U,Q.G);Q.forcedExperiments&&(U.forced_experiments=Q.forcedExperiments);h.RH?(U.vvt=h.RH,h.mdxEnvironment&&(U.mdx_environment=
h.mdxEnvironment)):g.mn(h)&&(U.access_token=g.mn(h));h.adFormat&&(U.adformat=h.adFormat);h.slotPosition>=0&&(U.slot_pos=h.slotPosition);h.breakType&&(U.break_type=h.breakType);h.iV!==null&&(U.ad_id=h.iV);h.ZN!==null&&(U.ad_sys=h.ZN);h.vU!==null&&(U.encoded_ad_playback_context=h.vU);Q.captionsLanguagePreference&&(U.cc_lang_pref=Q.captionsLanguagePreference);Q.vJ&&Q.vJ!==2&&(U.cc_load_policy=Q.vJ);var z=g.Vl(g.dN(),65);g.nC(Q)&&z!=null&&!z&&(U.device_captions_on="1");Q.mute&&(U.mute=Q.mute);h.annotationsLoadPolicy&&
Q.annotationsLoadPolicy!==2&&(U.iv_load_policy=h.annotationsLoadPolicy);h.My&&(U.endscreen_ad_tracking=h.My);(z=Q.T7.get(h.videoId))&&z.WY&&(U.ic_track=z.WY);h.DI&&(U.itct=h.DI);zA(h)&&(U.autoplay="1");h.mutedAutoplay&&(U.mutedautoplay=h.mutedAutoplay);h.isAutonav&&(U.autonav="1");h.iZ&&(U.noiba="1");h.isMdxPlayback&&(U.mdx="1",U.ytr=h.QK);h.mdxControlMode&&(U.mdx_control_mode=h.mdxControlMode);h.Eb&&(U.ytrcc=h.Eb);h.G9&&(U.utpsa="1");h.isFling&&(U.is_fling="1");h.isInlinePlaybackNoAd&&(U.mute="1");
h.vnd&&(U.vnd=h.vnd);h.forceAdsUrl&&(z=h.forceAdsUrl.split("|").length===3,U.force_ad_params=z?h.forceAdsUrl:"||"+h.forceAdsUrl);h.Z1&&(U.preload=h.Z1);S.width&&(U.width=S.width);S.height&&(U.height=S.height);(h.Mr?0:h.ol)&&(U.splay="1");h.ypcPreview&&(U.ypc_preview="1");rm(h)&&(U.content_v=rm(h));h.fI&&(U.livemonitor=1);Q.XB&&(U.authuser=Q.XB);Q.pageId&&(U.pageid=Q.pageId);Q.ZI&&(U.ei=Q.ZI);Q.B&&(U.iframe="1");h.contentCheckOk&&(U.cco="1");h.racyCheckOk&&(U.rco="1");Q.V&&h.Rz&&(U.live_start_walltime=
h.Rz);Q.V&&h.Be&&(U.live_manifest_duration=h.Be);Q.V&&h.playerParams&&(U.player_params=h.playerParams);Q.V&&h.cycToken&&(U.cyc=h.cycToken);Q.V&&h.eg&&(U.tkn=h.eg);v!==0&&(U.vis=v);Q.enableSafetyMode&&(U.enable_safety_mode="1");h.vJ&&(U.kpt=h.vJ);h.Hp&&(U.kids_age_up_mode=h.Hp);h.kidsAppInfo&&(U.kids_app_info=h.kidsAppInfo);h.l6&&(U.upg_content_filter_mode="1");Q.widgetReferrer&&(U.widget_referrer=Q.widgetReferrer.substring(0,128));h.AB?(S=h.AB.latitudeE7!=null&&h.AB.longitudeE7!=null?h.AB.latitudeE7+
","+h.AB.longitudeE7:",",S+=","+(h.AB.clientPermissionState||0)+","+(h.AB.locationRadiusMeters||"")+","+(h.AB.locationOverrideToken||"")):S=null;S&&(U.uloc=S);h.sF&&(U.internalipoverride=h.sF);Q.embedConfig&&(U.embed_config=Q.embedConfig);Q.a5&&(U.co_rel="1");Q.ancestorOrigins.length>0&&(U.ancestor_origins=Array.from(Q.ancestorOrigins).join(","));Q.homeGroupInfo!==void 0&&(U.home_group_info=Q.homeGroupInfo);Q.livingRoomAppMode!==void 0&&(U.living_room_app_mode=Q.livingRoomAppMode);Q.enablePrivacyFilter&&
(U.enable_privacy_filter="1");h.isLivingRoomDeeplink&&(U.is_living_room_deeplink="1");h.eN&&h.GY&&(U.clip=h.eN,U.clipt=h.GY);h.R3&&(U.disable_watch_next="1");h.Wp&&(U.forced_by_var="1");for(var d in U)!ItL.has(d)&&U[d]&&String(U[d]).length>512&&(g.G3(Error("GVI param too long: "+d)),U[d]="");d=Q.a7;g.qW(Q)&&(d=FM(d.replace(/\b(?:www|web)([.-])/,"tv$1"))||Q.a7);Q=g.sr(d+"get_video_info",U);T&&(Q=pdj(Q,T));T=Q}R=T;J=(p=h.isAd())?1:3;O=0;case 2:if(!(O<J)){x.KI(4);break}f=R;if(!(O>0)){x.KI(5);break}return g.N(x,
Sn(5E3),6);case 6:D={playerretry:O,playerretrysrc:L},p||(D.recover="embedded"),f=ya(R,D);case 5:return g.N(x,A1w(h,f).then(y,Z),7);case 7:if(c=x.N)return x.return();O++;x.KI(2);break;case 4:I=p?"auth":"manifest.net.retryexhausted";A=p?2:1;if(!p&&Math.random()<1E-4)try{g.G3(new g.aO("b/152131571",btoa(R)))}catch(W){}return x.return(Promise.reject(new lZ(I,{backend:"gvi"},A)))}})};
A1w=function(u,h){function L(S){return Z(S.xhr)}
function Z(S){if(!u.ww()){S=S?S.status:-1;var v=0,T=((0,g.vC)()-D).toFixed();T=y.j("html5_use_network_error_code_enums")?{backend:"gvi",rc:S,rt:T}:{backend:"gvi",rc:""+S,rt:T};var U="manifest.net.connect";S===429?(U="auth",v=2):S>200&&(U="manifest.net.badstatus",S===400&&(v=2));return Promise.reject(new lZ(U,T,v))}}
var y,R,p,J,O,f,D,c,I,A,x,Q;return g.G(function(S){if(S.G==1){u.fetchType="gvi";y=u.L();var v={};u.qh&&(v.ytrext=u.qh);(J=g.Tc(v)?void 0:v)?(R={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:J},p=ya(h,{action_display_post:1})):(R={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},p=h);O={};y.sendVisitorIdHeader&&u.visitorData&&(O["X-Goog-Visitor-Id"]=u.visitorData);(f=w2(y.experiments,"debug_sherlog_username"))&&(O["X-Youtube-Sherlog-Username"]=f);Object.keys(O).length>
0&&(R.headers=O);D=(0,g.vC)();return g.N(S,gO(TT,p,R).then(void 0,L),2)}c=S.N;if(!c||!c.responseText)return S.return(Z(c));u.loading=!1;I=jp(c.responseText);g.mg(u,I,!0);if(u.errorCode)return A={ec:u.errorCode,ed:u.errorDetail,es:u.Ud||""},S.return(Promise.reject(new lZ("auth",A,2)));if(!u.loading&&!Bu(u))return x=u.isAd()?"auth":"manifest.net.retryexhausted",Q=u.isAd()?2:1,S.return(Promise.reject(new lZ(x,{successButUnplayable:"1"},Q)));g.i1(S)})};
D$n=function(u,h){return new lZ(u?"auth":"manifest.net.retryexhausted",h,u?2:1)};
A1=function(u,h,L){L=L===void 0?!1:L;var Z,y,R,p;g.G(function(J){if(J.G==1){Z=u.L();if(L&&(!g.wS(Z)||UT(h)!=="embedded")||h.R3||UT(h)!=="adunit"&&(g.SM(Z)||Gg(Z)||g.rp(Z)||g.qW(Z)||nS(Z)==="WEB_CREATOR"))return J.return();y=g.Fp(Z,g.mn(h));return y.G?g.N(J,y.G,3):(R=y.getValue(),J.KI(2))}J.G!=2&&(R=J.N);p=R;return J.return(x$i(u,h,p))})};
x$i=function(u,h,L){var Z,y,R,p,J;return g.G(function(O){if(O.G==1){g.Qn(O,2);Z=OKV(L);var f=h.L();g.dN();var D={context:g.bn(h),videoId:h.videoId,racyCheckOk:h.racyCheckOk,contentCheckOk:h.contentCheckOk,autonavState:"STATE_NONE"};UT(h)==="adunit"&&(D.isAdPlayback=!0);f.embedConfig&&(D.serializedThirdPartyEmbedConfig=f.embedConfig);f.a5&&(D.showContentOwnerOnly=!0);h.iI&&(D.showShortsOnly=!0);g.Vl(0,141)&&(D.autonavState=g.Vl(0,140)?"STATE_OFF":"STATE_ON");if(g.nC(f)){var c=g.Vl(0,65);c=c!=null?
!c:!1;var I=!!g.Gj("yt-player-sticky-caption");D.captionsRequested=c&&I}var A;if(f=(A=f.getWebPlayerContextConfig())==null?void 0:A.encryptedHostFlags)D.playbackContext={encryptedHostFlags:f};y=D;R=g.E_(PXj);u.uh("wn_s");return g.N(O,g.ah(Z,y,R),4)}if(O.G!=2)return p=O.N,u.uh("wn_r"),!p||"error"in p&&p.error||(J=p,g.v$(h.L())&&J.trackingParams&&ip(J.trackingParams),g.mg(h,{raw_watch_next_response:p},!1)),g.Sa(O,0);g.Xf(O);g.i1(O)})};
CXf=function(u){u.uh("vir");u.uh("ps_s");sh("vir",void 0,"video_to_ad");var h=J1i(u);h.then(function(){u.uh("virc");sh("virc",void 0,"video_to_ad");u.uh("ps_r");sh("ps_r",void 0,"video_to_ad")},function(){u.uh("virc");
sh("virc",void 0,"video_to_ad")});
return h};
g.CK=function(u,h,L,Z,y,R,p,J,O,f){O=O===void 0?new g.rC(u):O;f=f===void 0?!0:f;g.yV.call(this);var D=this;this.xI=u;this.playerType=h;this.T3=L;this.Ef=Z;this.getVisibilityState=R;this.visibility=p;this.pH=J;this.videoData=O;this.Cw=f;this.logger=new g.F_("VideoPlayer");this.PD=new Qql(this.xI);this.YS=null;this.m9=new CT;this.J9=null;this.Yo=new TLj(this.xI,this.Ef,this);this.O_=!0;this.oH=this.nI=null;this.YU=[];this.ov=new IZ;this.M3=this.B2=null;this.kz=new IZ;this.bf=null;this.bj=this.zO=!1;
this.PN=NaN;this.A_=!1;this.playerState=new g.EF;this.oA=[];this.fh=new g.UN;this.Ev=new I4e(this);this.mediaElement=null;this.s3=new g.EM(this.PFB,15E3,this);this.Bz=this.SR=!1;this.rq=NaN;this.hX=!1;this.Kc=0;this.uH=!1;this.eR=NaN;this.Gj=new fK(new Map([["bufferhealth",function(){return anL(D.CH)}],
["bandwidth",function(){return D.Zy()}],
["networkactivity",function(){return D.xI.schedule.XB}],
["livelatency",function(){return D.isAtLiveHead()&&D.isPlaying()?MAl(D):NaN}],
["rawlivelatency",function(){return MAl(D)}]]));
this.Tr=0;this.loop=!1;this.playbackRate=1;this.BM=0;this.CH=new mea(this);this.Bw=!1;this.p_=[];this.wg=this.R$=0;this.Nb=this.BB=!1;this.zn=this.NI=0;this.y4=-1;this.NV="";this.eJ=new g.EM(this.Yn,0,this);this.OS=!1;this.AM=this.oV=null;this.k3w=[this.fh,this.eJ,this.s3,this.Gj];this.fO=this.wb=null;this.ut=function(){var c=D.WJ();c.provider.xI.ol||c.provider.G7.getVisibilityState()===3||(c.provider.xI.ol=!0);ZTa(c);if(c.N){var I=c.N;I.T&&I.G<0&&I.provider.G7.getVisibilityState()!==3&&$uf(I)}c.qoe&&
(c=c.qoe,c.ZI&&c.N<0&&c.provider.xI.ol&&lHf(c),c.X&&Ne(c));D.nI&&xj(D);D.xI.CE&&!D.videoData.backgroundable&&D.mediaElement&&!D.kJ()&&(D.isBackground()&&D.mediaElement.PG()?(D.IH("bgmobile",{suspend:1}),D.IQ(!0,!0)):D.isBackground()||P_(D)&&D.IH("bgmobile",{resume:1}))};
this.zd={ZK:function(c){D.ZK(c)},
XHg:function(c){D.YS=c},
pad:function(){return D.FY},
aI:function(){return D.v0},
EH:function(){return D.oH},
eGa:function(){return D.DH},
G6I:function(){return D.O7},
WId:function(){},
L:function(){return D.xI},
yQ:function(){return D.mediaElement},
svI:function(c){D.lf(c)},
mli:function(){return D.Ef}};
this.logger.debug(function(){return"creating, type "+h});
this.lW=new g.ty(function(){return D.getCurrentTime()},function(){return D.getPlaybackRate()},function(){return D.getPlayerState()},function(c,I){c!==g.hc("endcr")||g.F(D.playerState,32)||D.Lx();
y(c,I,D.playerType)},function(c,I){g.dC(D.videoData)&&D.IH(c,I)});
g.V(this,this.lW);g.V(this,this.CH);iKa(this,O);this.videoData.subscribe("dataupdated",this.XrH,this);this.videoData.subscribe("dataloaded",this.VT,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.IH,this);this.videoData.subscribe("ctmpstr",this.wq,this);this.Cp();Duf(this.ut);this.visibility.subscribe("visibilitystatechange",this.ut);this.DH=new g.EM(this.zE,g.Jl(this.xI.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.O7=
new g.EM(this.zE,g.Jl(this.xI.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.AG=new g.Wr(this)};
iKa=function(u,h){if(u.playerType===2||u.xI.jK)h.v3=!0;var L=Hme(h.eq,h.ye,u.xI.B,u.xI.V);L&&(h.adFormat=L);u.playerType===2&&(h.J3=!0);if(u.isFullscreen()||u.xI.B)L=g.Gj("yt-player-autonavstate"),h.autonavState=L||(u.xI.B?2:u.videoData.autonavState);h.endSeconds&&h.endSeconds>h.startSeconds&&J1(u,h.endSeconds)};
QZf=function(u){yy1(u.FY);g.Ju(u.FY);for(var h=u.v0,L=g.C(h.G.values()),Z=L.next();!Z.done;Z=L.next())yy1(Z.value);h.G.clear();g.Ju(u.v0)};
ltY=function(u){var h=u.videoData;CXf(u).then(void 0,function(L){u.videoData!==h||h.ww()||(L=Xo(L),L.errorCode==="auth"&&u.videoData.errorDetail?u.LZ(L.errorCode,2,unescape(u.videoData.errorReason),QE(L.details),u.videoData.errorDetail,u.videoData.Ud||void 0):u.handleError(L))})};
vjj=function(u){if(!g.F(u.playerState,128))if(u.videoData.isLoaded(),u.logger.debug("finished loading playback data"),u.YU=g.h8(u.videoData.gw),g.AF(u.videoData)){u.T3.tick("bpd_s");M$(u).then(function(){u.T3.tick("bpd_c");if(!u.ww()){u.zO&&(u.gf(uQ(uQ(u.playerState,512),1)),P_(u));var Z=u.videoData;Z.endSeconds&&Z.endSeconds>Z.startSeconds&&J1(u,Z.endSeconds);u.ov.finished=!0;iX(u,"dataloaded");u.kz.Kz()&&SBb(u);a4n(u.Yo,u.M3)}});
u.j("html5_log_media_perf_info")&&u.IH("loudness",{v:u.videoData.fV.toFixed(3)},!0);var h,L=(h=u.mediaElement)==null?void 0:h.lP();L&&"disablePictureInPicture"in L&&u.j("html5_disable_pip_with_standard_api")&&(L.disablePictureInPicture=u.xI.SY&&!u.videoData.backgroundable);X_e(u)}else iX(u,"dataloaded")};
M$=function(u){Qy(u);u.M3=null;var h=Syn(u.xI,u.videoData,u.kJ());u.B2=h;u.B2.then(function(L){qBs(u,L)},function(L){u.ww()||(L=Xo(L),u.visibility.isBackground()?(lX(u,"vp_none_avail"),u.B2=null,u.ov.reset()):(u.ov.finished=!0,u.LZ(L.errorCode,L.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",QE(L.details))))});
return h};
qBs=function(u,h){if(!u.ww()&&!h.videoData.ww()){u.logger.debug("finished building playback data");u.M3=h;nRV(u.CH,u.M3);if(u.videoData.isLivePlayback){var L=TWb(u.pH.bL,u.videoData.videoId)||u.nI&&!isNaN(u.nI.XB);L=u.j("html5_onesie_live")&&L;pK(u)||u.videoData.iP>0&&!L3(u.videoData)||L||u.seekTo(u.T1(),{Ek:"videoplayer_playbackData",seekSource:18})}if(u.videoData.X.G){if(u.j("html5_sabr_report_missing_url_as_error")&&J$a(u.videoData)){u.handleError(new lZ("fmt.missing",{missabrurl:"1"},2));return}u.nI?
g.G3(Error("Duplicated Loader")):(L=g.Jl(u.xI.experiments,"html5_onesie_defer_content_loader_ms"))&&u.e3()&&TWb(u.pH.bL,u.videoData.Bv)?g.IJ(function(){u.ww()||u.nI||YBL(u)},L):YBL(u)}else!u.videoData.X.G&&n3(u.videoData)&&u.n_(new LR(u.videoData.videoId||"",4));
u.u7();muR(h).then(function(){var Z={};u.b8(Z);u.xI.UU()&&u.j("html5_log_media_perf_info")&&u.IH("av1Info",Z);xj(u)})}};
SBb=function(u){u.ww();u.logger.debug("try finish readying playback");if(u.kz.finished)u.logger.debug("already finished readying");else if(u.ov.finished)if(g.F(u.playerState,128))u.logger.debug("cannot finish readying because of error");else if(u.YU.length)u.logger.debug(function(){return"cannot finish readying because of pending preroll: "+u.YU});
else if(u.lW.started||C7l(u.lW),u.Hm())u.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{u.nI&&(u.bj=Obw(u.nI.timing));u.kz.finished||(u.kz.finished=!0);var h=u.j("html5_onesie_live")&&u.nI&&!isNaN(u.nI.XB);!u.videoData.isLivePlayback||u.videoData.iP>0&&!L3(u.videoData)||h||pK(u)||(u.logger.debug("seek to head for live"),u.seekTo(Infinity,{Ek:"videoplayer_readying",seekSource:18}),u.isBackground()&&(u.Bz=!0));uaa(u.WJ());u.logger.debug("finished readying playback");
u.publish("playbackready",u);V4("pl_c",u.T3.timerName)||(u.T3.tick("pl_c"),sh("pl_c",void 0,"video_to_ad"));V4("pbr",u.T3.timerName)||(u.T3.tick("pbr"),sh("pbr",void 0,"video_to_ad"))}else u.logger.debug("playback data not loaded")};
J1=function(u,h){u.J9&&ojj(u);u.J9=new g.uW(h*1E3,0x7ffffffffffff);u.J9.namespace="endcr";u.addCueRange(u.J9)};
ojj=function(u){u.removeCueRange(u.J9);u.J9=null};
NWf=function(u,h,L,Z,y){var R=u.WJ(y),p=g.dC(u.videoData)?R.getVideoData():u.videoData;p.N=L;var J=g.SA(u);L=new qaa(p,L,h,J?J.itag:"",Z);u.xI.experiments.tB("html5_refactor_sabr_video_format_selection_logging")?(L.videoId=y,u.fO=L):R.Z6(L);y=u.Yo;y.N=0;y.G=0;u.publish("internalvideoformatchange",p,h==="m")};
g.SA=function(u){var h=X5(u);return Eg(h)||!u.M3?null:g.Fg(u.M3.G.videoInfos,function(L){return h.B(L)})};
X5=function(u){if(u.M3){var h=u.Yo;var L=u.M3;u=u.hx();var Z=NLV(h);if(Eg(Z)){if(Z=Yaa(h,L).compose(rhl(h,L)).compose(zhs(h,L)).compose(wtY(h,L.videoData)).compose(ehL(h,L.videoData,L)).compose(l7(h,L)).compose(Gbs(h,L)),Eg(u)||h.j("html5_apply_pbr_cap_for_drm"))Z=Z.compose(HRn(h,L))}else h.j("html5_perf_cap_override_sticky")&&(Z=Z.compose(l7(h,L))),h.j("html5_ustreamer_cap_override_sticky")&&(Z=Z.compose(HRn(h,L)));Z=Z.compose(Gbs(h,L));h=L.videoData.wB.compose(Z).compose(L.videoData.vY).compose(u)}else h=
Hu;return h};
jBs=function(u){var h=u.Yo;u=u.videoData;var L=wtY(h,u);h.j("html5_disable_client_autonav_cap_for_onesie")||L.compose(ehL(h,u));return L};
xj=function(u){if(u.videoData.X&&u.videoData.X.G){var h=X5(u);u.nI&&tGV(u.nI,h)}};
U$a=function(u){var h;return!!(u.j("html5_native_audio_track_switching")&&g.PC&&((h=u.videoData.N)==null?0:tg(h)))};
Geb=function(u){if(!U$a(u))return!1;var h;u=(h=u.mediaElement)==null?void 0:h.audioTracks();return!!(u&&u.length>1)};
r1n=function(u){var h=HKs(u);if(h)return u.videoData.getAvailableAudioTracks().find(function(L){return L.tM.getName()===h})};
HKs=function(u){var h;if(u=(h=u.mediaElement)==null?void 0:h.audioTracks())for(h=0;h<u.length;++h){var L=u[h];if(L.enabled)return L.label}};
BWn=function(u){var h,L=u.videoData.getAvailableAudioTracks(),Z=u.videoData.T6;Z&&(h=L.find(function(R){return R.getLanguageInfo().id===Z}));
if(u.xI.experiments.tB("enable_audio_description_setting")&&g.Vl(g.dN(),198)){L=g.C(L);for(var y=L.next();!y.done;y=L.next())if(y=y.value,y.T){h=y;break}}h||(u=u.getAudioTrack(),h=u.tM.isDefault?void 0:u);return h};
YBL=function(u){for(var h=u.videoData.G,L=g.C(Object.entries({cpn:u.videoData.clientPlaybackNonce,c:u.xI.G.c,cver:u.xI.G.cver})),Z=L.next();!Z.done;Z=L.next()){var y=g.C(Z.value);Z=y.next().value;y=y.next().value;for(var R=g.C(Object.values(h.G)),p=R.next();!p.done;p=R.next())mKl(p.value.D3,Z,y);R=void 0;(R=h.S)==null||mKl(R,Z,y)}L=u.xI;Z=u.videoData;h=new g.niV(L);y=Vha({hasSubfragmentedFmp4:Z.hasSubfragmentedFmp4,e9:Z.e9});h.S=y;h.XB=Z.maxReadAheadMediaTimeMs/1E3||h.XB;y=L.schedule;y.X.NO()===y.policy.X?
h.iP=10:h.iP=Z.minReadAheadMediaTimeMs/1E3||h.iP;h.SY=Z.readAheadGrowthRateMs/1E3||h.SY;h.Hp=!ei();g.SM(L)||!ei()?(y=L.experiments,h.aH=8388608,h.e7=524288,h.De=5,h.jd=1048576,h.Lq=1.5,h.G3=4587520,aJ()&&(h.G3=786432),h.Y*=1.1,h.AB*=1.1,h.qr=!0,h.Th=y.tB("persist_disable_player_preload_on_tv")||y.tB("persist_disable_player_preload_on_tv_for_living_room")||!1):L.N&&(h.Y*=1.3,h.AB*=1.3);g.TI&&g.nP("crkey")&&(y=L.G.cmodel==="CHROMECAST/ANCHOVY",h.aH=20971520,h.e7=1572864,y&&(h.G3=812500,h.J4=1E3,h.ag=
5,h.jd=2097152));g.Nc&&(h.qr=!0);L.supportsGaplessAudio()||(h.fE=!1);aV&&(h.XN=!0);h.Zg=L.j("html5_peak_shave");Z.fetchType==="onesie"&&L.j("html5_disable_peak_shave_for_onesie")&&(h.Zg=!1);var J;y=(J=Z.G)==null?void 0:R3(J);if(L3(Z)){h.Qs=!0;h.gD||(h.dD=!0);h.eq=!0;h.z2=!0;h.FH=!0;if(Z.latencyClass==="ULTRALOW"||Z.latencyClass==="LOW"&&!L.j("html5_disable_low_pipeline"))h.BH=2,h.b$=4;h.yI=Z.defraggedFromSubfragments;if(Z.Aa||L.j("html5_publish_all_cuepoints"))h.GY=!0;g.C3(Z)&&(h.La=!1);h.Lm=g.Qr(L)}Z.isAd()&&
(h.Mt=0,h.Dr=0);h.fV=L.j("html5_enable_subsegment_readahead_v3")||L.j("html5_ultra_low_latency_subsegment_readahead")&&Z.latencyClass==="ULTRALOW";h.X=L.UU();gg()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(L.G.cmodel)&&!L.j("html5_disable_move_pssh_to_moov")&&y&&(h.qr=!1);R=0;L.j("html5_live_use_alternate_bandwidth_window_sizes")&&(R=L.schedule.policy.G,Z.isLivePlayback&&(R=g.Jl(L.experiments,Z.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":Z.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":
"html5_live_normal_latency_bandwidth_window")||R));J=L.schedule;J.N.B=L3(Z)?.5:0;if(!J.policy.N&&R&&(J=J.X,R=Math.round(R*J.resolution),R!==J.G)){p=Array(R);var O=Math.min(R,J.X?J.G:J.N),f=J.N-O;f<0&&(f+=J.G);for(var D=0;D<O;++D)p[D]=J.values[(f+D)%J.G];for(;D<R;++D)p[D]=Infinity;J.G=R;J.values=p;J.N=O%R;J.X=O===R;J.q9=!0;J.T=BXV(J)}Z.isLivePlayback&&(h.XU=g.Jl(L.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,h.VA=!1);Z.v7()&&(h.VA=!1);Zy(Z)&&(h.fV=!0,Z.latencyClass===
"LOW"?h.Oo=g.Jl(L.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):Z.latencyClass==="ULTRALOW"&&(h.Oo=g.Jl(L.experiments,"html5_jumbo_ull_subsegment_readahead_target")),h.Ss=!0);Z.bP()&&(h.sF=1.3);h.XN=h.XN||Z.Vo;h.wm=(h.wm||Z.wm)&&L.V;h.zy=L.j("html5_sunset_aac_high_codec_family");h.N=g.dC(Z);h.Ca=Z.S||h.N&&!L.j("html5_enable_ssap_seteos");L.UU()&&(h.xl=!0);Z.S&&!y&&(h.dL=!0);Z.S&&Z.isAd()&&(h.Y*=1.6,h.AB*=1.6);n3(Z)&&(h.B=Z.videoId,h.B6=!0,h.gy=100,Z.Pc&&Z.Pc.length>0&&(h.Cr=Z.Pc));
h.jY=Z.Xb;h.aM=Qo(L,{},Z.X||void 0,bt(Z));h.fI=Fu(Z)&&g.rp(L);h.Vo=L.j("html5_catch_errors_for_rollback");EX(Z)&&(L.j("html5_sabr_allow_video_keyframe_without_audio")&&(h.Uo=!0),L.j("html5_sabr_report_partial_segment_estimated_duration")&&(h.My=!0),h.G=!0,h.r6=L.j("html5_sabr_enable_utc_seek_requests"),h.eO=L.j("html5_sabr_enable_live_clock_offset"),h.I8=L.j("html5_disable_client_resume_policy_for_sabr"),h.zI=L.j("html5_trigger_loader_when_idle_network"),h.J6=L.j("html5_sabr_parse_live_metadata_playback_boundaries"),
h.t6=L.j("html5_enable_platform_backpressure_with_sabr"),h.S3=L.j("html5_consume_onesie_next_request_policy_for_sabr"),h.XC=L.j("html5_sabr_report_next_ad_break_time"),h.zp=L.j("html5_log_high_res_buffer_timeline")&&L.UU(),h.Ny=L.j("html5_remove_stuck_slices_beyond_max_buffer_limits"),h.Tn=L.j("html5_gapless_sabr_btl_last_slice")&&Wu(Z),h.bE=L.j("html5_reset_last_appended_slice_on_seek")&&Wu(Z),L3(Z)?(h.R3=!0,h.CE=L.j("html5_disable_variability_tracker_for_live"),h.ZI=L.j("html5_sabr_use_accurate_slice_info_params"),
L.j("html5_simplified_backup_timeout_sabr_live")&&(h.l9=!0,h.J4=h.Cs)):h.vj=L.j("html5_probe_request_on_sabr_request_progress"),h.x6=L.j("html5_serve_start_seconds_seek_for_post_live_sabr"),h.ol=L.j("html5_flush_index_on_updated_timestamp_offset"),h.vX=L.j("html5_enable_sabr_request_pipelining")&&!g.dC(Z),h.u9=L.j("html5_ignore_partial_segment_from_live_readahead"),h.ye=L.j("html5_use_non_active_broadcast_for_post_live"),h.DI=L.j("html5_use_centralized_player_time"),h.f3=L.j("html5_consume_onesie_sabr_seek"),
h.RH=L.j("html5_enable_sabr_seek_loader_refactor"),h.wB=L.j("html5_update_segment_start_time_from_media_header"),Z.enableServerStitchedDai&&(h.T=!0,h.OM=L.j("html5_reset_server_stitch_state_for_non_sabr_seek"),h.Ax=L.j("html5_remove_ssdai_append_pause"),h.Sd=L.j("html5_consume_ssdai_info_with_streaming"),h.zG=L.j("html5_process_all_cuepoints")));h.C=h.G&&L.j("html5_sabr_live");h.vJ=g.RfR(Z);fk(L.T,D0.BITRATE)&&(h.G3=NaN);if(J=g.Jl(L.experiments,"html5_request_size_max_kb"))h.jd=J*1024;L.T.B?h.Mr=
"; "+D0.EXPERIMENTAL.name+"=allowed":L.j("html5_enable_cobalt_tunnel_mode")&&(h.Mr="; tunnelmode=true");J=Z.serverPlaybackStartConfig;(J==null?0:J.enable)&&(J==null?0:J.playbackStartPolicy)&&(h.Km=!0,dL(h,J.playbackStartPolicy,2));J=BWn(u);u.m9.removeAll();a:{L=u.pH.bL;if(Z=u.videoData.videoId)if(y=L.G.get(Z)){L.G.remove(Z);L=y;break a}L=void 0}u.nI=new g.Rq(u,u.xI.schedule,h,u.videoData.G,u.videoData.X,X5(u),J,u.videoData.enableServerStitchedDai,L,u.videoData.jd);h=u.videoData.j("html5_disable_preload_for_ssdai_with_preroll")&&
u.videoData.isLivePlayback&&u.e3()?!0:u.zO&&g.SM(u.xI)&&u.videoData.isLivePlayback;u.nI.initialize(u.getCurrentTime(),X5(u),h);u.videoData.probeUrl&&(u.nI.ZI=u.videoData.probeUrl);if(u.YU.length||u.zO)u.videoData.cotn||v_(u,!1);wre(u.CH,u.nI);u.oV&&(AFi(u.nI,new g.Oy(u.oV)),u.j("html5_check_decorator_on_cuepoint")&&u.IH("sdai",{sdl:1}));u.AM&&(u.nI.q6(u.AM),u.CH.V=!1);g.wm(u.videoData)&&(u=u.nI,u.policy.xo=u.policy.eg)};
Qy=function(u){u.nI&&(u.nI.dispose(),u.nI=null,wre(u.CH,null));u.IF()?zcl(u):u.sW()};
zcl=function(u){if(u.oH)if(u.logger.debug("release media source"),u.zb(),u.oH.T)try{u.xI.UU()&&u.IH("rms",{l:"vprms",sr:u.IF(),rs:wM(u.oH)});u.oH.clear();var h;(h=u.mediaElement)!=null&&(h.N=u.oH);u.oH=null}catch(L){h=new g.aO("Error while clearing Media Source in VideoPlayer: "+L.name+", "+L.message),h=Xo(h),u.handleError(h),u.sW()}else u.sW()};
m$e=function(u,h){h=h===void 0?!1:h;if(u.oH)return u.oH.X;u.logger.debug("update media source");a:{h=h===void 0?!1:h;try{g.wg()&&u.videoData.uC()&&q_b(u.mediaElement);var L=u.mediaElement.EH(u.fv(),u.QU())}catch(y){if(Mgl(u.Ev,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",y);u.LZ("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}u.N5(L,!1,!1,h)}var Z;return((Z=u.EH())==null?void 0:Z.X)||null};
d$e=function(u,h){h=h===void 0?!1:h;if(u.nI){var L=u.getCurrentTime()-u.df();u.nI.seek(L,{gC:h}).R5(function(){})}else YBL(u)};
njw=function(u,h,L,Z){L=L===void 0?!1:L;Z=Z===void 0?!1:Z;if(u.oH&&(!h||u.oH===h)){u.logger.debug("media source opened");var y=u.getDuration();!y&&L3(u.videoData)&&(y=25200);if(u.oH.isView){var R=y;u.logger.debug(function(){return"Set media source duration to "+R+", video duration "+y});
R>u.oH.getDuration()&&VAe(u,R)}else VAe(u,y);eHf(u.nI,u.oH,L,Z);u.publish("mediasourceattached")}};
VAe=function(u,h){if(u.oH){u.oH.N9(h);var L;(L=u.nI)!=null&&L.policy.DI&&(L.C=h)}};
FgY=function(u,h){NWf(u,h.reason,h.G.info,h.token,h.videoId)};
sZ1=function(u,h){u.xI.experiments.tB("enable_adb_handling_in_sabr")&&(u.pauseVideo(!0),u.In(),h&&u.LZ("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))};
iX=function(u,h){u.publish("internalvideodatachange",h===void 0?"dataupdated":h,u,u.videoData)};
w_l=function(u){for(var h=g.C("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),L=h.next();!L.done;L=h.next())u.fh.W(u.mediaElement,L.value,u.lf,u);u.xI.yf&&u.mediaElement.i$()&&(u.fh.W(u.mediaElement,"webkitplaybacktargetavailabilitychanged",u.sPI,u),u.fh.W(u.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",u.L_i,u))};
atV=function(u){g.PS(u.PN);ecn(u)||(u.PN=g.A5(function(){return ecn(u)},100))};
ecn=function(u){var h=u.mediaElement;h&&u.SR&&!u.videoData.XB&&!V4("vfp",u.T3.timerName)&&h.rD()>=2&&!h.isEnded()&&ys(h.R7())>0&&u.T3.tick("vfp");return(h=u.mediaElement)&&!u.videoData.XB&&h.getDuration()>0&&(h.isPaused()&&h.rD()>=2&&ys(h.R7())>0&&(V4("pbp",u.T3.timerName)||u.T3.tick("pbp"),!u.videoData.z2||u.A_||h.isSeeking()||(u.A_=!0,u.publish("onPlaybackPauseAtStart"))),h=h.getCurrentTime(),b7(u.PD,h))?(u.ZF(),!0):!1};
tAR=function(u){u.WJ().q3();if(hF(u.videoData)&&Date.now()>u.BM+6283){if(!(!u.isAtLiveHead()||u.videoData.G&&J3(u.videoData.G))){var h=u.WJ();if(h.qoe){h=h.qoe;var L=h.provider.G7.JL(),Z=g.Xa(h.provider);IHs(h,Z,L);L=L.X;isNaN(L)||g.YR(h,Z,"e2el",[L.toFixed(3)])}}u.j("html5_alc_live_log_rawlat")?(h=u.videoData,h=g.Qr(h.L())?!0:g.dS(h.L())?h.MG==="6":!1):h=g.Qr(u.xI);h&&u.IH("rawlat",{l:c_(u.Gj,"rawlivelatency").toFixed(3)});u.BM=Date.now()}u.videoData.N&&tg(u.videoData.N)&&(h=u.Iq())&&h.videoHeight!==
u.wg&&(u.wg=h.videoHeight,NWf(u,"a",$$b(u,u.videoData.xl)))};
$$b=function(u,h){if(h.G.video.quality==="auto"&&tg(h.getInfo())&&u.videoData.XN)for(var L=g.C(u.videoData.XN),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.getHeight()===u.wg&&Z.G.video.quality!=="auto")return Z.getInfo();return h.getInfo()};
MAl=function(u){if(!hF(u.videoData))return NaN;var h=0;u.nI&&u.videoData.G&&(h=L3(u.videoData)?u.nI.UE.NO()||0:u.videoData.G.gw);return(0,g.vC)()/1E3-u.Nr()-h};
FKR=function(u){u.mediaElement&&u.mediaElement.kJ()&&(u.eR=(0,g.vC)());u.xI.r6?g.IJ(function(){WKj(u)},0):WKj(u)};
WKj=function(u){var h;if((h=u.oH)==null||!h.Sb()){if(u.mediaElement)try{u.bf=u.mediaElement.playVideo()}catch(Z){lX(u,"err."+Z)}if(u.bf){var L=u.bf;L.then(void 0,function(Z){u.logger.debug(function(){return"playMediaElement failed: "+Z});
if(!g.F(u.playerState,4)&&!g.F(u.playerState,256)&&u.bf===L)if(Z&&Z.name==="AbortError"&&Z.message&&Z.message.includes("load"))u.logger.debug(function(){return"ignore play media element failure: "+Z.message});
else{var y="promise";Z&&Z.name&&(y+=";m."+Z.name);lX(u,y);u.Bw=!0;u.videoData.Mr=!0}})}}};
lX=function(u,h){g.F(u.playerState,128)||(u.gf(h0(u.playerState,1028,9)),u.IH("dompaused",{r:h}),u.publish("onAutoplayBlocked"))};
P_=function(u,h){h=h===void 0?!1:h;if(!u.mediaElement||!u.videoData.X)return!1;var L=h;L=L===void 0?!1:L;var Z=null;var y;if((y=u.videoData.X)==null?0:y.G){Z=m$e(u,L);var R;(R=u.nI)==null||R.resume()}else Qy(u),u.videoData.xl&&(Z=u.videoData.xl.bV());y=u.mediaElement.PG();L=!1;y&&y.ys(Z)||(bKi(u,Z),L=!0);g.F(u.playerState,2)||(Z=u.CH,h=h===void 0?!1:h,Z.T||!(Z.B>0)||Z.mediaElement&&Z.mediaElement.getCurrentTime()>0||(h={Ek:"seektimeline_resumeTime",gC:h},Z.videoData.XB||(h.seekSource=15),Z.seekTo(Z.B,
h)));a:{h=L;if(EX(u.videoData)){if(!u.videoData.v7())break a}else if(!g.f3(u.videoData))break a;if(u.mediaElement)if((Z=u.videoData.T)&&u.mediaElement.i$()){y=u.mediaElement.lP();if(u.YS)if(y!==u.YS.element)q$(u);else if(h&&Z.flavor==="fairplay"&&!ep())q$(u);else break a;if(u.j("html5_report_error_for_unsupported_tvos_widevine")&&ep()&&Z.flavor==="widevine")u.LZ("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{u.YS=new LLb(y,u.videoData,u.xI);u.YS.subscribe("licenseerror",
u.RA,u);u.YS.subscribe("qualitychange",u.a1d,u);u.YS.subscribe("heartbeatparams",u.hY,u);u.YS.subscribe("keystatuseschange",u.ZK,u);u.YS.subscribe("ctmp",u.IH,u);u.j("html5_widevine_use_fake_pssh")&&!u.videoData.isLivePlayback&&Z.flavor==="widevine"&&u.YS.W8(new hh(Eji,"cenc",!1));h=g.C(u.m9.keys);for(Z=h.next();!Z.done;Z=h.next())Z=u.m9.get(Z.value),u.YS.W8(Z);u.j("html5_eme_loader_sync")||u.m9.removeAll()}}else u.LZ("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return L};
bKi=function(u,h){u.T3.tick("vta");sh("vta",void 0,"video_to_ad");u.getCurrentTime()>0&&tL1(u.CH,u.getCurrentTime());u.mediaElement.activate(h);u.oH&&ux(0,4);!u.videoData.XB&&u.playerState.isOrWillBePlaying()&&u.s3.start();if(U$a(u)){var L;if(h=(L=u.mediaElement)==null?void 0:L.audioTracks())h.onchange=function(){u.publish("internalaudioformatchange",u.videoData,!0)}}};
q$=function(u){u.YS&&(u.YS.dispose(),u.YS=null)};
ke1=function(u){var h=h===void 0?!1:h;u.logger.debug("reattachVideoSource");u.mediaElement&&(u.oH?(q$(u),u.sW(),m$e(u,h)):(u.videoData.xl&&u.videoData.xl.Ki(),u.mediaElement.stopVideo()),u.playVideo())};
gjw=function(u,h){u.xI.j("html5_log_rebuffer_reason")&&(h={r:h,lact:v5()},u.mediaElement&&(h.bh=WP(u.mediaElement)),u.IH("bufreason",h))};
uWn=function(u,h){if(u.xI.UU()&&u.mediaElement){var L=u.mediaElement.IV();L.omt=(u.mediaElement.getCurrentTime()+u.df()).toFixed(3);L.ps=u.playerState.state.toString(16);L.rt=(g.Xa(u.WJ().provider)*1E3).toFixed();L.e=h;u.p_[u.R$++%5]=L}try{if(h==="timeupdate"||h==="progress")return}catch(Z){}u.logger.debug(function(){return"video element event "+h})};
jYw=function(u){if(u.xI.UU()){u.p_.sort(function(Z,y){return+Z.rt-+y.rt});
for(var h=g.C(u.p_),L=h.next();!L.done;L=h.next())L=L.value,u.IH("vpe",Object.assign({t:L.rt},L));u.p_=[];u.R$=0}};
hC1=function(u){if(g.nP("cobalt")&&g.nP("nintendo switch")){var h=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;u.IH("nxdock",{d:h})}};
v_=function(u,h){var L;(L=u.nI)==null||KT(L,h)};
Ahn=function(u,h){return g.dC(u.videoData)&&u.AM?u.AM.handleError(h,void 0):!1};
X_e=function(u){jS(u.videoData,"html5_set_debugging_opt_in")&&(u=g.dN(),g.Vl(0,183)||(sO(183,!0),u.save()))};
LNR=function(u){return g.dC(u.videoData)&&u.AM?u7(u.AM):u.videoData.T1()};
Qbj=function(u,h){u.pH.XS()||(u.IH("sgap",{f:h}),u.pH.clearQueue(!1,h==="pe"))};
pK=function(u){return u.j("html5_disable_video_player_initiated_seeks")&&EX(u.videoData)};
Z8w=function(u){VA.call(this,u);var h=this;this.events=new g.UN(u);g.V(this,this.events);kH(this.api,"isLifaAdPlaying",function(){return h.api.isLifaAdPlaying()});
this.events.W(u,"serverstitchedvideochange",function(){h.api.isLifaAdPlaying()?(h.playbackRate=h.api.getPlaybackRate(),h.api.setPlaybackRate(1)):h.api.setPlaybackRate(h.playbackRate)});
this.playbackRate=1};
yZf=function(u){VA.call(this,u);var h=this;this.events=new g.UN(u);g.V(this,this.events);kH(this.api,"seekToChapterWithAnimation",function(L){h.seekToChapterWithAnimation(L)});
kH(this.api,"seekToTimeWithAnimation",function(L,Z){h.seekToTimeWithAnimation(L,Z)});
kH(this.api,"renderChapterSeekingAnimation",function(L,Z,y){h.api.renderChapterSeekingAnimation(L,Z,y)});
kH(this.api,"setMacroMarkers",function(L){h.setMacroMarkers(u,L)});
kH(this.api,"changeMarkerVisibility",function(L,Z,y){h.changeMarkerVisibility(L,Z,y)});
kH(this.api,"isSameMarkerTypeVisible",function(L){return h.isSameMarkerTypeVisible(L)})};
RCa=function(u,h,L){var Z=u.api.getCurrentTime()*1E3<h?1:-1;u.api.renderChapterSeekingAnimation(Z,L);u.api.seekTo(h/1E3,void 0,void 0,void 0,3)};
pyV=function(u,h){var L,Z;return(L=p7(u,"macroMarkersListEntity",h))==null?void 0:(Z=L.markersList)==null?void 0:Z.markerType};
KNV=function(u,h){var L=g.$m.getState().entities;u=pyV(L,u);h=g.C(h.e7);for(var Z=h.next();!Z.done;Z=h.next())if(u===pyV(L,Z.value))return!0;return!1};
Te=function(u){VA.call(this,u);var h=this;this.events=new g.UN(u);g.V(this,this.events);this.events.W(u,"videodatachange",function(){h.updateMetadata()});
this.events.W(u,"presentingplayerstatechange",function(){JZn(h)})};
Yj=function(u,h){try{navigator.mediaSession.setActionHandler(u,h)}catch(L){}};
O8l=function(u){Yj("play",function(){u.api.playVideo()});
Yj("pause",function(){u.api.pauseVideo()});
Yj("seekbackward",function(){u.api.seekBy(-5*u.api.getPlaybackRate())});
Yj("seekforward",function(){u.api.seekBy(5*u.api.getPlaybackRate())});
Yj("seekto",function(h){((h=h.seekTime)||u.api.j("web_player_misc_bugfix_a")&&h!=null)&&u.api.seekTo(h)})};
fhi=function(u){var h,L,Z,y;return(h=u.api.getVideoData().getWatchNextResponse())==null?void 0:(L=h.playerOverlays)==null?void 0:(Z=L.playerOverlayRenderer)==null?void 0:(y=Z.browserMediaSession)==null?void 0:y.browserMediaSessionRenderer};
Dzw=function(u){var h=[];if(!u||!u.thumbnails)return h;u=g.C(u.thumbnails);for(var L=u.next();!L.done;L=u.next())L=L.value,L.url&&(!L.width||L.width<=0||!L.height||L.height<=0||g.Ei(L.url)&&h.push({src:L.url||"",sizes:L.width+"x"+L.height,type:"image/jpeg"}));return h};
JZn=function(u){u=u.api.getPlayerStateObject();u=u.isCued()||u.isError()?"none":u.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=u};
cZe=function(u){var h=u.api.getProgressState().seekableEnd;h&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({duration:h,playbackRate:u.api.getPlaybackRate(),position:u.api.getCurrentTime()})};
oZ=function(u){VA.call(this,u);var h=this;this.N=new Map;this.X=this.G=void 0;this.compositeVideoState=null;this.events=new g.UN(u);g.V(this,this.events);this.events.W(u,"modulecreated",function(L){var Z;a:{var y,R,p,J=(y=h.api.getVideoData())==null?void 0:(R=y.getPlayerResponse())==null?void 0:(p=R.overlay)==null?void 0:p.playerControlsOverlayRenderer;if(J&&(y=g.n(J.compositeVideoOverlay,Ihe),y==null?0:(Z=y.sources)==null?0:Z.length))for(Z=g.C(y==null?void 0:y.sources),y=Z.next();!y.done;y=Z.next())if(y=
y.value,y.isActive){Z=y;break a}Z=void 0}L==="captions"&&(Z==null?void 0:Z.topLeftCornerX)!==void 0&&(Z==null?void 0:Z.topLeftCornerY)!==void 0&&(Z==null?void 0:Z.width)!==void 0&&(Z==null?void 0:Z.height)!==void 0&&h.api.Z_({top:Z.topLeftCornerY,right:1-Z.topLeftCornerX-Z.width,bottom:1-Z.topLeftCornerY-Z.height,left:Z.topLeftCornerX})});
this.events.W(u,"videodatachange",function(L){var Z=h.api.getVideoData();h.G=void 0;h.N.clear();h.api.qm("compositeembargo",1);var y=Z==null?void 0:Z.Jf.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(y==null?0:y.length)?AZi(h,y.filter(function(R){return xzn(h,R)})):(Z==null?0:Z.cueRanges)&&AZi(h,Z.cueRanges.filter(function(R){return xzn(h,R)}));
L==="dataupdated"&&(Z==null?void 0:Z.compositeLiveStatusToken)!==h.X&&(h.X=Z==null?void 0:Z.compositeLiveStatusToken,h.api.o9())});
this.events.W(u,g.hc("compositeembargo"),function(L){var Z;if(((Z=h.G)==null?void 0:Z.id)!==L.id&&(h.api.Gg(!0),h.N.has(L.id))){var y=h.N.get(L.id);Z=h.api.getVideoData();y=g.C(y);for(var R=y.next();!R.done;R=y.next()){var p=void 0;R=(p=R.value.compositeEmbargo)==null?void 0:p.embargoStatusToken;Z.b$!==R&&(Z.b$=R,h.api.o9());P51(h,L)}}});
this.events.W(u,g.L2("compositeembargo"),function(L){var Z;if(((Z=h.G)==null?void 0:Z.id)===L.id&&(h.api.Gg(!1),h.N.has(L.id))){if(L=h.api.getVideoData())L.b$=void 0;h.api.o9();P51(h)}});
this.events.W(u,"heartbeatRequest",function(L){h.compositeVideoState!==null&&(L.playbackState||(L.playbackState={}),L.playbackState.compositeVideoState=h.compositeVideoState)});
this.events.W(u,"onPlaybackAudioChange",function(){h.api.o9()});
kH(u,"setCompositeParam",function(L){h.compositeVideoState=L})};
P51=function(u,h){var L;((L=u.G)==null?void 0:L.id)!==(h==null?void 0:h.id)&&(u.G&&(u.N.delete(u.G.id),u.api.G2([u.G],1)),u.G=h)};
AZi=function(u,h){h=g.C(h);for(var L=h.next();!L.done;L=h.next()){var Z=L.value,y=void 0;L=Number((y=Z.playbackRelativePosition)==null?void 0:y.utcTimeMs)/1E3;var R=void 0;y=L+Number((R=Z.duration)==null?void 0:R.seconds);R="composite_embargo_"+L;Z.onEnter&&(Z=Z.onEnter.filter(u.B),Z.length&&(u.N.set(R,Z),u.api.addUtcCueRange(R,L,y,"compositeembargo",!1)))}};
xzn=function(u,h){var L;return(L=h.onEnter)==null?void 0:L.some(u.B)};
C5n=function(u){VA.call(this,u);kH(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));kH(this.api,"updateDownloadState",this.updateDownloadState.bind(this));kH(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));kH(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));kH(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));kH(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));kH(this.api,"setUpPositionSyncInterval",
this.setUpPositionSyncInterval.bind(this))};
N$=function(u){VA.call(this,u);var h=this;kH(u,"getAvailableQualityData",function(){return h.getAvailableQualityData()});
kH(u,"getAvailableQualityDataAndMessaging",function(){return h.getAvailableQualityDataAndMessaging()})};
M_j=function(u,h,L){var Z=[],y=h?156595:151874;u=g.C(u);for(var R=u.next();!R.done;R=u.next()){var p=R.value;R=p.video;p={formatId:p.id,qualityLabel:R.qualityLabel,quality:R.quality,isPlayable:h};if(R=L.get(R.qualityLabel))p.paygatedQualityDetails={paygatedIndicatorText:R.paygatedIndicatorText,endpoint:R.endpoint,veType:y,trackingParams:R.trackingParams};Z.push(p)}return Z};
i8a=function(u){for(var h=0,L=0;L<u.length;L++)if(u[L].paygatedQualityDetails){var Z=u[L];u.splice(L,1);u.splice(h,0,Z);h++}};
QYl=function(u){var h=new Set,L=new Map,Z={};u=g.C(u);for(var y=u.next();!y.done;y=u.next()){y=y.value;var R=y.quality,p=y.isPlayable,J=y.qualityLabel;J&&R&&(p&&L.has(R)&&L.get(R)!==J?h.add(R):p&&L.set(R,J),Z[J]||(Z[J]=y))}L=[];Z=g.C(Object.values(Z));for(u=Z.next();!u.done;u=Z.next())y=u.value,(u=y.quality)&&!h.has(u)&&(y.formatId=void 0),L.push(y);return L};
UB=function(u){VA.call(this,u);var h=this;this.X=1;this.T3=null;this.zd={sCB:function(){return h.X}};
this.events=new g.UN(u);g.V(this,this.events);this.events.W(u,"d6de4videobindingchange",function(L){h.SF(L)});
this.events.W(u,"csiinitialized",function(){lhn(h)})};
lhn=function(u){if(SEj()){u.T3=u.api.QO();u.G=new aA;u.X=2;var h=g.Jl(u.api.L().experiments,"html5_d6de4_defer_timeout_ms");u.T3.wO("pt_pish");h?g.IJ(function(){Xya(u)},h):u.api.j("html5_enable_d6de4_idle_priority_job")&&window.requestIdleCallback?window.requestIdleCallback(function(){Xya(u)}):Xya(u)}};
Xya=function(u){if(SEj()){u.T3=u.api.QO();var h=g.Jl(u.api.L().experiments,"html5_d6de4_cloud_project_number");u.T3.wO("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:h}).then(function(Z){u.N=Z;var y;(y=u.G)==null||y.resolve();u.T3.wO("pt_pif")}).catch(function(Z){Ge(Z,"player_start");
u.T3.wO("pt_pie");var y;(y=u.G)==null||y.reject(Z)})}catch(Z){Ge(Z,"player_start_catch");
u.api.IH("pfes",{});var L;(L=u.G)==null||L.reject(Z)}}};
v_w=function(u,h){if(u.N&&!u.j("html5_disable_d6de4_mint_debug")){var L=h.videoId;u.X=3;u.T3.wO("pt_ms");try{u.N.requestToken(L).then(function(Z){u.T3.wO("pt_mf");if(Z=ki(Z))h.An={agI:Z}}).catch(function(Z){u.T3.wO("pt_me");
Ge(Z,"player_generate");u.handleError(Z,h)})}catch(Z){Ge(Z,"player_generate_catch"),u.handleError(Z,h)}}};
qE1=function(u,h){u.api.j("html5_enable_d6de4_cold_start_and_error")&&(h.An={coldStartInfo:{clientState:u.X}})};
Ge=function(u,h){u.message&&g.G3(Error(h+"_"+u.message))};
SEj=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider};
H_=function(u){g.a.call(this,{K:"button",CI:["ytp-pip-button","ytp-button"],J:{title:"{{title}}","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},Z:[Ncl()]});var h=this;this.api=u;this.listen("click",this.onClick);var L=this.api.Ua(),Z=L.subscribe("visibilitystatechange",function(){h.kI(L.Wx())});
this.addOnDisposeCallback(function(){L.uW(Z)});
Iv(u,this.element,this);this.kI(L.Wx())};
rW=function(u){VA.call(this,u);var h=this;this.events=new g.UN(u);g.V(this,this.events);this.events.W(u,"standardControlsInitialized",function(){h.createButton()});
g.nC(this.api.L())&&(this.j("web_enable_auto_pip")||this.j("web_enable_pip_on_miniplayer")||this.j("web_shorts_pip"))&&kH(this.api,"setDocumentPictureInPicture",function(L){h.setDocumentPictureInPicture(L)})};
TIf=function(u){var h=u.api.getVideoData();u.button.Ay(h.PB)};
YEn=function(u){VA.call(this,u);var h=this;this.events=new g.UN(u);g.V(this,this.events);kH(this.api,"musicDisableUi",function(){g.yN(h.api.getRootNode(),"ytp-player-in-bar-disable-ui")});
kH(this.api,"musicEnableUi",function(){g.pc(h.api.getRootNode(),"ytp-player-in-bar-disable-ui")})};
mK=function(u,h,L){h=h===void 0?!0:h;L=L===void 0?!1:L;g.a.call(this,{K:"div",U:"ytp-suggested-action"});var Z=this;this.D=u;this.Ca=this.RH=this.XB=this.AB=this.B=this.S=this.expanded=this.enabled=this.ZI=!1;this.jd=this.D.j("delhi_modern_web_player")?40:34;this.xl=new g.EM(function(){Z.badge.element.style.width=""},200,this);
this.aH=new g.EM(function(){B_(Z);ze(Z)},200,this);
this.dismissButton=new g.a({K:"button",CI:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.V(this,this.dismissButton);this.X=new g.a({K:"div",U:"ytp-suggested-action-badge-expanded-content-container",Z:[{K:"label",U:"ytp-suggested-action-badge-title",dw:"{{badgeLabel}}"},this.dismissButton]});g.V(this,this.X);this.T7=new g.a({K:"div",U:"ytp-suggested-action-badge-icon-container",Z:[h?{K:"div",U:"ytp-suggested-action-badge-icon"}:""]});g.V(this,this.T7);this.badge=new g.a({K:L?"div":
"button",CI:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],Z:[this.T7,this.X]});g.V(this,this.badge);this.badge.Og(this.element);this.Y=new g.kS(this.badge,250,!1,100);g.V(this,this.Y);this.fI=new g.kS(this.X,250,!1,100);g.V(this,this.fI);this.e7=new g.b8(this.Rsa,null,this);g.V(this,this.e7);this.Sd=new g.b8(this.pD,null,this);g.V(this,this.Sd);g.V(this,this.xl);g.V(this,this.aH);this.D.createServerVe(this.badge.element,this.badge,!0);this.D.createServerVe(this.dismissButton.element,
this.dismissButton,!0);this.W(this.D,"onHideControls",function(){Z.mZ(!1)});
this.W(this.D,"onShowControls",function(){Z.mZ(!0)});
this.W(this.badge.element,"click",this.S9);this.W(this.dismissButton.element,"click",this.jH);this.W(this.D,"pageTransition",this.YM);this.W(this.D,"appresize",this.MJ);this.W(this.D,"fullscreentoggled",this.Fzw);this.W(this.D,"cardstatechange",this.x1d);this.W(this.D,"annotationvisibility",this.ird,this);this.W(this.D,"offlineslatestatechange",this.HrA,this)};
B_=function(u){g.JW(u.badge.element,"ytp-suggested-action-badge-with-controls",u.XB||!u.S)};
ze=function(u,h){var L=u.TE();u.expanded!==L&&(u.expanded=L,h===void 0||h?(u.e7.stop(),u.Sd.stop(),u.xl.stop(),u.e7.start()):(u.X.Ay(u.expanded),g.JW(u.badge.element,"ytp-suggested-action-badge-expanded",u.expanded)),u.Oj())};
o_f=function(u){var h=u.text||"",L=g.eT("ytp-suggested-action-badge-title",u.element);L&&g.yg(L,h);u.badge.element.setAttribute("aria-label",h);u.dismissButton.element.setAttribute("aria-label",u.VA?u.VA:"")};
dW=function(u,h,L,Z,y,R){var p={K:"div",U:"ytp-panel"};if(L){var J="ytp-panel-back-button";var O="ytp-panel-title";var f={K:"div",U:"ytp-panel-header",Z:[{K:"div",CI:["ytp-panel-back-button-container"],Z:[{J:{"aria-label":"Back to previous menu"},K:"button",CI:["ytp-button",J]}]},{K:"span",CI:[O],J:u.j("web_enable_a11y_header_role_in_panel")?{role:"heading","aria-level":"2"}:void 0,Z:[L]}]};if(y){var D="ytp-panel-options";f.Z.push({K:"button",CI:["ytp-button",D],Z:[Z]})}p.Z=[f]}Z=!1;R&&(R={K:"div",
U:"ytp-panel-footer",Z:[R]},Z=!0,p.Z?p.Z.push(R):p.Z=[R]);g.OD.call(this,p);this.content=h;Z&&p.Z?h.Og(this.element,p.Z.length-1):h.Og(this.element);this.yJ=!1;this.TJ=Z;L&&(L=this.BX(O),this.W(this.BX(J),"click",this.zi),this.W(L,"click",this.zi),this.yJ=!0,y&&this.W(this.BX(D),"click",y));h.subscribe("size-change",this.Ds,this);this.W(u,"fullscreentoggled",this.Ds);this.D=u};
g.Vy=function(u,h,L,Z,y,R){h=h===void 0?null:h;var p={role:"menu"};h&&(p.id=h);h=new g.OD({K:"div",U:"ytp-panel-menu",J:p});dW.call(this,u,h,L,Z,y,R);this.menuItems=h;this.items=[];g.V(this,this.menuItems)};
g.nK=function(u){for(var h=g.C(u.items),L=h.next();!L.done;L=h.next())L.value.unsubscribe("size-change",u.Wg,u);u.items=[];try{g.jK(u.menuItems.element)}catch(R){var Z,y;g.G3(new g.aO("Failed to remove menu items from panel menu.",{error:R.message,originalStack:R.stack,childToBeRemoved:(y=(Z=u.menuItems.element.firstChild)==null?void 0:Z.textContent)!=null?y:"child element not found"}))}u.menuItems.publish("size-change")};
NIn=function(u,h){return h.priority-u.priority};
g.sB=function(u,h){g.NT.call(this,u,{K:"div",CI:["ytp-popup",h||""]},100,!0);this.G=[];this.V=this.C=null;this.maxHeight=this.maxWidth=0;this.size=new g.II(0,0);this.listen("keydown",this.SQ)};
Uz1=function(u){var h=u.G[u.G.length-1];if(h){g.iL(u.element,u.maxWidth||"100%",u.maxHeight||"100%");g.Oz(h.element,"width","");g.Oz(h.element,"height","");g.Oz(h.element,"maxWidth","100%");g.Oz(h.element,"maxHeight","100%");g.Oz(h.content.element,"height","");var L=g.Qz(h.element);L.width+=1;L.height+=1;g.Oz(h.element,"width",L.width+"px");g.Oz(h.element,"height",L.height+"px");g.Oz(h.element,"maxWidth","");g.Oz(h.element,"maxHeight","");var Z=0;h.yJ&&(Z=g.Qz(h.BX("ytp-panel-header")).height);var y=
0;h.TJ&&(y=h.BX("ytp-panel-footer"),g.Oz(y,"width",L.width+"px"),y=g.Qz(y).height);g.Oz(h.content.element,"height",L.height-Z-y+"px");h.element instanceof HTMLElement&&(Z=h.element,y=Z.scrollWidth-Z.clientWidth,Z.offsetWidth-Z.clientWidth>0&&y>0&&(L.width+=y,g.Oz(h.element,"width",L.width+"px")));u.size=L}};
g.wW=function(u,h){var L=u.G[u.G.length-1];L!==h&&(u.G.push(h),GlV(u,L,h))};
g.eA=function(u){if(!(u.G.length<=1)){var h=u.G.pop(),L=u.G[0];u.G=[L];GlV(u,h,L,!0)}};
GlV=function(u,h,L,Z){H8n(u);h&&(h.unsubscribe("size-change",u.Jm,u),h.unsubscribe("back",u.gX,u));L.subscribe("size-change",u.Jm,u);L.subscribe("back",u.gX,u);if(u.BJ){g.yN(L.element,Z?"ytp-panel-animate-back":"ytp-panel-animate-forward");L.Og(u.element);L.focus();u.element.scrollLeft=0;u.element.scrollTop=0;var y=u.size;Uz1(u);g.iL(u.element,y);u.C=new g.EM(function(){rZf(u,h,L,Z)},20,u);
u.C.start()}else L.Og(u.element),h&&h.detach()};
rZf=function(u,h,L,Z){u.C.dispose();u.C=null;g.yN(u.element,"ytp-popup-animating");Z?(g.yN(h.element,"ytp-panel-animate-forward"),g.pc(L.element,"ytp-panel-animate-back")):(g.yN(h.element,"ytp-panel-animate-back"),g.pc(L.element,"ytp-panel-animate-forward"));g.iL(u.element,u.size);u.V=new g.EM(function(){g.pc(u.element,"ytp-popup-animating");h.detach();g.Kc(h.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);u.V.dispose();u.V=null},250,u);
u.V.start()};
H8n=function(u){u.C&&g.g3(u.C);u.V&&g.g3(u.V)};
aZ=function(u){g.sB.call(this,u,"ytp-shopping-product-menu");this.zM=new g.Vy(this.D);g.V(this,this.zM);this.hide();g.wW(this,this.zM);g.XC(this.D,this.element,4)};
zCj=function(u,h,L){var Z,y=h==null?void 0:(Z=h.text)==null?void 0:Z.simpleText;y&&(L=BIn(u,L,y,h==null?void 0:h.icon,h==null?void 0:h.secondaryIcon),h.navigationEndpoint&&L.listen("click",function(){u.D.hB("innertubeCommand",h.navigationEndpoint);u.hide()},u))};
mzY=function(u,h,L){var Z,y=h==null?void 0:(Z=h.text)==null?void 0:Z.simpleText;y&&BIn(u,L,y,h==null?void 0:h.icon).listen("click",function(){var R;(h==null?void 0:(R=h.icon)==null?void 0:R.iconType)==="HIDE"?u.D.publish("featuredproductdismissed"):h.serviceEndpoint&&u.D.hB("innertubeCommand",h.serviceEndpoint);u.hide()},u)};
BIn=function(u,h,L,Z,y){h=new g.Bf(g.zF({},[],!1,!!y),h,L);y&&h.updateValue("secondaryIcon",dzs(y));h.setIcon(dzs(Z));g.V(u,h);u.zM.aV(h,!0);return h};
dzs=function(u){if(!u)return null;switch(u.iconType){case "ACCOUNT_CIRCLE":return{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{K:"path",J:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z",
fill:"#fff"}}]};case "FLAG":return{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{K:"path",J:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return SWf();case "HIDE":return{K:"svg",J:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{K:"g",Z:[{K:"path",J:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]};
case "OPEN_IN_NEW":return l2()}};
t1=function(u){mK.call(this,u,!1,!0);this.isCounterfactual=this.N=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.S=!0;this.overflowButton=new g.a({K:"button",CI:["ytp-featured-product-overflow-icon","ytp-button"],J:{"aria-haspopup":"true"}});this.overflowButton.hide();g.V(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.a({K:"img",U:"ytp-suggested-action-badge-img",J:{src:"{{url}}"}});
this.thumbnailImage.hide();g.V(this,this.thumbnailImage);this.thumbnailIcon=new g.a({K:"div",U:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.V(this,this.thumbnailIcon);this.banner=new g.a({K:"a",U:"ytp-suggested-action-container",Z:[this.thumbnailImage,this.thumbnailIcon,{K:"div",U:"ytp-suggested-action-details",Z:[{K:"text",U:"ytp-suggested-action-title",dw:"{{title}}"},{K:"text",U:"ytp-suggested-action-subtitle",dw:"{{subtitle}}"},{K:"text",U:"ytp-suggested-action-metadata-text",
dw:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.V(this,this.banner);this.banner.Og(this.X.element);this.W(this.D,"videodatachange",this.onVideoDataChange);this.W(this.D,g.hc("suggested_action_view_model"),this.D1I);this.W(this.D,g.L2("suggested_action_view_model"),this.OHg);this.W(this.overflowButton.element,"click",this.qs);this.W(u,"featuredproductdismissed",this.jH);this.D.createServerVe(this.banner.element,this.banner,!0)};
V_b=function(u){u.isInitialized&&(u.enabled=u.isVisible,u.RH=u.isVisible,ze(u),u.MJ(),u.thumbnailImage.Ay(u.isVisible),u.shouldHideDismissButton||u.dismissButton.Ay(u.isVisible),u.shouldShowOverflowButton&&u.overflowButton.Ay(u.isVisible))};
W_=function(){t1.apply(this,arguments)};
n_n=function(u){VA.call(this,u);this.G=new W_(this.api);g.V(this,this.G);g.XC(this.api,this.G.element,4)};
F5=function(u){VA.call(this,u);var h=this;this.G="";this.X=!0;this.N=this.api.j("html5_enable_audio_track_stickiness_phase_two");var L=new g.UN(u);g.V(this,L);L.W(u,"internalaudioformatchange",function(Z,y){sYa(h,Z,y)});
L.W(u,"videoplayerreset",function(){wyf(h)});
L.W(u,"videodatachange",function(Z,y){h.onVideoDataChange(Z,y)})};
sYa=function(u,h,L){if(L){var Z="";eCa(u,h)&&(Z=h,u.N||(u.G=h),u.api.j("html5_sabr_enable_server_xtag_selection")&&(L=u.api.getVideoData(void 0,!0)))&&(L.T6=h);if(u.N&&Z&&ahb(u,Z)){var y;Rd(b9(u.api.L(),(y=u.api.getVideoData())==null?void 0:g.mn(y)),function(R){$zb(u,Z,R)})}}};
wyf=function(u){if(u.G)t_f(u);else{var h;if(u.N&&((h=rZ())==null?0:h.size)){var L;Rd(b9(u.api.L(),(L=u.api.getVideoData())==null?void 0:g.mn(L)),function(Z){if((Z=WNa(Z))&&ahb(u,Z)){var y=u.api.getVideoData(void 0,!0);y&&(y.T6=Z)}})}}};
t_f=function(u){var h=u.api.getVideoData(void 0,!0);h&&(h.T6=u.G)};
$zb=function(u,h,L){WNa(L)!==h&&(FN1([{settingItemId:bX(L),settingOptionValue:{stringValue:h}}]),Rd(u.L0(),function(Z){p3l(Z,bX(L),{stringValue:h})}))};
b8Y=function(u,h){pn(Rd(Rd(u.L0(),function(L){return yXl(L,[bX(h)])}),function(L){if(L){L=g.C(L);
for(var Z=L.next();!Z.done;Z=L.next()){var y=Z.value;Z=y.key;y=y.value;Z&&y&&FN1([{settingItemId:Z,settingOptionValue:y}])}}}),function(){u.X=!0})};
eCa=function(u,h){u=u.api.getAvailableAudioTracks();u=g.C(u);for(var L=u.next();!L.done;L=u.next())if(L=L.value,L.getLanguageInfo().getId()===h)return L;return null};
WNa=function(u){u=bX(u);var h=rZ();u=h?h.get(u):void 0;return u&&u.stringValue?u.stringValue:""};
bX=function(u){var h=(484).toString();u&&(h=(483).toString());return h};
ahb=function(u,h){var L;return h.split(".")[0]!==""&&((L=u.api.getVideoData())==null?void 0:!Vq(L))};
FN1=function(u){var h=rZ();h||(h=new Map);u=g.C(u);for(var L=u.next();!L.done;L=u.next())L=L.value,h.set(L.settingItemId,L.settingOptionValue);h=JSON.stringify(Object.fromEntries(h));g.UO("yt-player-user-settings",h,2592E3)};
g.EB=function(u,h,L,Z,y,R,p){g.Bf.call(this,g.zF({"aria-haspopup":"true"}),h,u);this.Ka=Z;this.S=!1;this.X=null;this.options={};this.N=new g.Vy(L,void 0,u,y,R,p);g.V(this,this.N);this.listen("keydown",this.Zn);this.listen("click",this.open)};
E_a=function(u){if(u.X){var h=u.options[u.X];h.element.getAttribute("aria-checked");h.element.setAttribute("aria-checked","false");u.X=null}};
klY=function(u,h){g.EB.call(this,"Sleep timer",g.g7.SLEEP_TIMER,u,h);this.D=u;this.Y={};this.C=this.wM("Off");this.V=this.G="";u.j("web_settings_menu_icons")&&this.setIcon({K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{K:"path",J:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",
fill:"#fff"}}]});this.B=new g.a({K:"div",CI:["ytp-menuitem-label-wrapper"],Z:[{K:"div",dw:"End of video"},{K:"div",CI:["ytp-menuitem-sublabel"],dw:"{{content}}"}]});g.V(this,this.B);this.listen("click",this.onClick);this.W(u,"videodatachange",this.onVideoDataChange);this.W(u,"presentingplayerstatechange",this.kI);this.W(u,"settingsMenuVisibilityChanged",this.HWI);u.createClientVe(this.element,this,218889);this.kI();this.D.hB("onSleepTimerFeatureAvailable")};
g_f=function(u){var h="Off 10 15 20 30 45 60".split(" "),L;((L=u.D.getVideoData())==null?0:L.isLivePlayback)||h.push("End of video");L=u.D.getPlaylist();var Z;L&&((Z=L.listId)==null?void 0:Z.type)!=="RD"&&h.push("End of playlist");u.FU(g.Xx(h,u.wM));u.Y=g.xe(h,u.wM,u);h=u.wM("End of video");u.options[h]&&g.r7(u.options[h],u.B)};
uJn=function(u,h){var L=u.Y[h],Z=L==="End of video"||L==="End of playlist";L==="Off"&&(u.G="");u.D.getPlayerState()!==0&&u.D.getPlayerState()!==5||!Z?(u.C=h,g.EB.prototype.FE.call(u,h),u.o4(h),u.D.hB("onSleepTimerSettingsChanged",L)):u.D.hB("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})};
kj=function(u){VA.call(this,u);var h=this;u.addEventListener("settingsMenuInitialized",function(){h.menuItem||(h.menuItem=new klY(h.api,h.api.jb()),g.V(h,h.menuItem))});
u.addEventListener("openSettingsMenuItem",function(L){if(L==="menu_item_sleep_timer"){if(!h.menuItem){var Z;(Z=h.api.jb())==null||Z.VF()}h.menuItem.open()}});
kH(u,"resetSleepTimerMenuSettings",function(){h.resetSleepTimerMenuSettings()});
kH(u,"setSleepTimerTimeLeft",function(L){h.setSleepTimerTimeLeft(L)});
kH(u,"setVideoTimeLeft",function(L){h.setVideoTimeLeft(L)})};
je1=function(u){VA.call(this,u);var h=this;this.events=new g.UN(u);g.V(this,this.events);this.events.W(u,"onSnackbarMessage",function(L){switch(L){case 1:L=h.api.getPlayerStateObject(),L.isBuffering()&&g.F(L,8)&&g.F(L,16)&&h.api.hB("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Experiencing interruptions?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Find out why"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",
webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})};
g.u5=function(u,h,L,Z,y){h=h===void 0?!1:h;Z=Z===void 0?!1:Z;y=y===void 0?!1:y;g.yV.call(this);this.Y=y;this.V=!1;this.B=new vD(this);this.T=this.C=null;this.X=this.N=!1;g.V(this,this.B);this.target=u;this.G=h;this.S=L||u;this.V=Z;h&&(g.WM&&this.target.setAttribute("draggable","true"),y||(this.target.style.touchAction="none"));gW(this)};
j_=function(u){g.Tj(u.B,!u.G)};
gW=function(u){u.T=null;u.C=null;u.W(hZ("over"),u.tR);u.W("touchstart",u.ip);u.G&&u.W(hZ("down"),u.a3g)};
hna=function(u,h){for(var L=0;L<h.changedTouches.length;L++){var Z=h.changedTouches[L];if(Z.identifier===u.C)return Z}return null};
hZ=function(u){return window.navigator.msPointerEnabled?"MSPointer"+u.charAt(0).toUpperCase()+u.substring(1):"mouse"+u};
L8=function(u){return u&&LDi?mQ(u)||document:document};
Zsn=function(u,h){g.a.call(this,{K:"div",CI:["ytp-overlay","ytp-speedmaster-overlay"],Z:[{K:"div",U:"ytp-speedmaster-user-edu",Z:[{K:"div",U:"ytp-speedmaster-label",dw:h},{K:"div",U:"ytp-speedmaster-icon",dw:"{{icon}}"}]}]});this.D=u;this.G=this.BX("ytp-speedmaster-user-edu");this.updateValue("icon",l3b());g.yN(this.G,"ytp-speedmaster-has-icon");this.D.createClientVe(this.G,this,173040,!0);this.Fk()};
yh=function(u){VA.call(this,u);var h=this;this.B=this.X=!1;this.aH=g.Jl(this.api.L().experiments,"speedmaster_touch_activation_ms")||500;this.XB=g.Jl(this.api.L().experiments,"speedmaster_cancellation_movement_dp")||10;this.vX=g.Jl(this.api.L().experiments,"speedmaster_playback_rate")||2;this.N=new g.UN(u);g.V(this,this.N);this.Y="2x";this.speedmasterUserEdu=new Zsn(u,this.Y);g.V(this,this.speedmasterUserEdu);g.XC(this.api,this.speedmasterUserEdu.element,4);this.G=new g.u5(this.api.m_().Nz,!0,null,
!1,!0);g.V(this,this.G);this.delay=new g.EM(this.DI,this.aH,this);g.V(this,this.delay);this.N.W(u,"videodatachange",function(){Zh(h)},this);
this.N.W(u,"presentingplayerstatechange",function(){Zh(h)},this);
this.N.W(u,"autonavvisibility",function(){Zh(h)},this);
this.api.Ua().subscribe("visibilitystatechange",function(){Zh(h)});
this.N.W(u,"rootnodemousedown",function(L){h.V=L});
this.j("web_speedmaster_spacebar_control")&&(this.N.W(u,"keyboardserviceglobalkeydown",function(L,Z){h.AB=Z;yRw(h,L,!0)},this),this.N.W(u,"keyboardserviceglobalkeyup",function(L){yRw(h,L,!1)},this))};
RY=function(u){u.delay.stop();u.G.unsubscribe("dragmove",u.C,u);u.G.unsubscribe("dragend",u.T,u);u.X&&(u.X=!1,u.speedmasterUserEdu.Fk(),u.api.setPlaybackRate(u.gw),u.api.showControls(),u.T7&&u.api.pauseVideo())};
yRw=function(u,h,L){L?h.keyCode!==32||h.repeat||u.X||!u.B||g.kK(u.delay):RY(u)};
Zh=function(u){var h,L;var Z=!!u.Y&&!((h=u.api.getVideoData())==null?0:h.isLivePlayback)&&!u.api.Ic()&&u.api.getPresentingPlayerType()!==2&&!g.F(u.api.getPlayerStateObject(),2)&&!((L=g.Rv(u.api))==null?0:L.Bo())&&!u.api.isEmbedsShortsMode()&&i7(u.api.Ua());u.B!==Z&&(u.B=Z,u.B?u.G.subscribe("dragstart",u.RH,u):(u.G.unsubscribe("dragstart",u.RH,u),u.G.unsubscribe("dragmove",u.C,u),u.G.unsubscribe("dragend",u.T,u),RY(u)))};
Rns=function(u){VA.call(this,u);var h=this;this.events=new g.UN(u);g.V(this,this.events);kH(this.api,"addPlayerResponseForAssociation",function(L){h.api.addPlayerResponseForAssociation(L)});
kH(this.api,"finishSegmentByCpn",function(L,Z,y){return h.api.finishSegmentByCpn(L,Z,y)});
this.events.W(u,"modulecreated",function(L){if(L==="ad"&&(L=h.api.getVideoData(1))&&(L=L.getPlayerResponse())){var Z;L=(Z=L.adPlacements)!=null?Z:[];Z=g.C(L);for(var y=Z.next();!y.done;y=Z.next()){var R=L=void 0,p=void 0;if(y=(L=y.value.adPlacementRenderer)==null?void 0:(R=L.renderer)==null?void 0:(p=R.instreamVideoAdRenderer)==null?void 0:p.playerVars)L=jp(y),h.api.addPlayerResponseForAssociation({playerVars:L})}}});
this.events.W(u,"videodatachange",function(L,Z){h.onVideoDataChange(L,Z)})};
p8=function(u,h,L){g.Uv.call(this,h,u);this.G=L};
g.K8=function(u){$x.call(this);var h=this;this.G=u;this.T={};this.listener=function(L){h.dispatchEvent(new p8(h,L.type,L))}};
KDw=function(u){var h=u.getVideoData(),L=u.yQ(),Z=L.lP(),y=u.L(),R=u.Zc(),p=R.x$X,J=R.NoH,O=c_(J,"bandwidth")*8/1024,f=c_(J,"networkactivity")/1024,D=c_(J,"bufferhealth"),c=R.je,I=R.playerState.state.toString(16),A=L.getCurrentTime().toFixed(2),x=ji(L.R7(),",",3),Q="";if(h.isDaiEnabled()){h.enableServerStitchedDai&&(Q+=h.bk?"DS":"SS");Q=h.KZ()?Q+"LIFA, ":Q+"DAI, ";var S=R.sS;S&&(Q+=S)}dm(h)&&!h.KZ()&&(Q+="LIFAE, ");var v;((v=u.getVideoData(1))==null?0:g.dC(v))?(Q+="SSAP, ",(S=R.sS)&&(Q+=S)):EX(h)&&
(Q+="SABR, ");if(h.fetchType){switch(h.fetchType){case "onesie":S="o";break;case "gp":S="gp";break;default:S="gvi"}Q+="vd:"+S+", "}y.Mm&&(Q=y.Mm.Ew?Q+"wa, ":Q+"w, ");Q+="s:"+I+" t:"+A+" b:"+x+" ";L.isSeeking()&&(Q+="S");L.isPaused()&&(Q+="P");L.isEnded()&&(Q+="E");u.isOrchestrationLeader()&&(Q+=" L");(L=R.vK)&&(Q+=" l:"+L.toFixed());L=R.currentTime;y=h.Sr;L&&L>y.start&&L<y.end&&(Q+=" as");L=Q;Q=g.EC(Uh)("_start",void 0);y=[];I=g.C(["pl_i","vir","or_p","orfb","pbs"]);for(A=I.next();!A.done;A=I.next())A=
A.value,(x=g.EC(Uh)(A,void 0))&&Q&&(x-=Q,y.push(A+":"+Math.round(x)));Q=y.join(" ");y=g.V6();I=g.Sq(u).EIg;A=h.X&&!h.X.G?"display:none":"";if((x=h.clientPlaybackNonce)&&x.length==16){x+="AAAA";S=0;v="";for(var T=0;T<20;T++)if(S=(S<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(x.charAt(T)),T%5==4){for(var U="",z=0;z<6;z++)U="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(S&31)+U,S>>=5;v+=U}x=v.substr(0,4)+" "+v.substr(4,4)+" "+v.substr(8,4)+" "+(v.substr(12,4)+" "+v.substr(16,
4))}else x="";O={video_id_and_cpn:String(h.videoId)+" / "+x,codecs:"",dims_and_frames:"",bandwidth_kbps:O.toFixed(0)+" Kbps",buffer_health_seconds:D.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:c?"":"display:none",drm:c,debug_info:L,extra_debug_info:"",bandwidth_style:A,network_activity_style:A,network_activity_bytes:f.toFixed(0)+" KB",shader_info:I,shader_info_style:I?"":"display:none",playback_categories:""};f=Z.clientWidth+"x"+Z.clientHeight+(y>1?"*"+y.toFixed(2):"");D="-";p.totalVideoFrames&&
(D=(p.droppedVideoFrames||0)+" dropped of "+p.totalVideoFrames);O.dims_and_frames=f+" / "+D;u=u.getVolume();p=y$n(h);var d;f=((d=h.B)==null?0:d.audio.G)?"DRC":Math.round(u*p)+"%";d=Math.round(u)+"% / "+f;u=h.fV.toFixed(1);isFinite(Number(u))&&(d+=" (content loudness "+u+"dB)");O.volume=d;O.resolution=Z.videoWidth+"x"+Z.videoHeight;if(Z=h.N){if(d=Z.video)u=d.fps,u>1&&(O.resolution+="@"+u),(u=R.r4I)&&u.video&&(O.resolution+=" / "+u.video.width+"x"+u.video.height,u.video.fps>1&&(O.resolution+="@"+u.video.fps)),
O.codecs=pVl(Z),!h.B||Z.audio&&Z.video?Z.WZ&&(O.codecs+=" / "+Z.WZ+"A"):O.codecs+=" / "+pVl(h.B),d.N||d.primaries?(u=d.N||"unknown",u==="smpte2084"?u+=" (PQ)":u==="arib-std-b67"&&(u+=" (HLG)"),O.color=u+" / "+(d.primaries||"unknown"),O.color_style=""):O.color_style="display:none";if(Z.debugInfo)for(O.fmt_debug_info="",Z=g.C(Z.debugInfo),d=Z.next();!d.done;d=Z.next())d=d.value,O.fmt_debug_info+=d.label+":"+d.text+" ";O.fmt_debug_info_style=O.fmt_debug_info&&O.fmt_debug_info.length>0?"":"display:none"}Z=
h.isLivePlayback;d=h.Ph;O.live_mode_style=Z||d?"":"display:none";O.live_latency_style=Z?"":"display:none";if(d)O.live_mode="Post-Live"+(L3(h)?" Manifestless":"");else if(Z){d=c_(J,"livelatency");O.live_latency_secs=d.toFixed(2)+"s";Z=L3(h)?"Manifestless, ":"";h.T7&&(Z+="Windowed, ");u="Uncertain";if(d>=0&&d<120)if(h.latencyClass&&h.latencyClass!=="UNKNOWN")switch(h.latencyClass){case "NORMAL":u="Optimized for Normal Latency";break;case "LOW":u="Optimized for Low Latency";break;case "ULTRALOW":u="Optimized for Ultra Low Latency";
break;default:u="Unknown Latency Setting"}else u=h.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";Z+=u;(d=R.kMd)&&(Z+=", seq "+d.sequence);O.live_mode=Z}!R.isGapless||Wu(h)&&R.XS||(O.playback_categories+="Gapless ");O.playback_categories_style=O.playback_categories?"":"display:none";O.bandwidth_samples=Dt(J,"bandwidth");O.network_activity_samples=Dt(J,"networkactivity");O.live_latency_samples=Dt(J,"livelatency");O.buffer_health_samples=Dt(J,"bufferhealth");R=g.wm(h);
if(h.cotn||R)O.cotn_and_local_media=(h.cotn?h.cotn:"null")+" / "+R;O.cotn_and_local_media_style=O.cotn_and_local_media?"":"display:none";jS(h,"web_player_release_debug")?(O.release_name="youtube.player.web_20250212_01_RC00",O.release_style=""):O.release_style="display:none";O.debug_info&&Q.length>0&&O.debug_info.length+Q.length<=60?O.debug_info+=" "+Q:O.extra_debug_info=Q;O.extra_debug_info_style=O.extra_debug_info&&O.extra_debug_info.length>0?"":"display:none";return O};
pVl=function(u){var h=/codecs="([^"]*)"/.exec(u.mimeType);return h&&h[1]?h[1]+" ("+u.itag+")":u.itag};
JZ=function(u,h,L,Z,y){g.a.call(this,{K:"div",U:"ytp-horizonchart"});this.V=h;this.sampleCount=L;this.B=Z;this.C=y;this.index=0;this.heightPx=-1;this.X=this.N=null;this.G=Math.round(u/L);this.element.style.width=this.G*this.sampleCount+"px";this.element.style.height=this.V+"em"};
OE=function(u,h){if(u.heightPx===-1){var L=null;try{L=g.kJ("CANVAS"),u.N=L.getContext("2d")}catch(J){}if(u.N){var Z=u.G*u.sampleCount;u.X=L;u.X.width=Z;u.X.style.width=Z+"px";u.element.appendChild(u.X)}else for(u.sampleCount=Math.floor(u.sampleCount/4),u.G*=4,L=0;L<u.sampleCount;L++)Z=g.kJ("SPAN"),Z.style.width=u.G+"px",Z.style.left=u.G*L+"px",u.element.appendChild(Z)}L=u.element.clientHeight||24;L!==u.heightPx&&(u.heightPx=L,u.N&&(L=(window.devicePixelRatio||1)>1?2:1,u.X.height=u.heightPx*L,u.X.style.height=
u.heightPx+"px",u.N.scale(1,L)));h=g.C(h);for(Z=h.next();!Z.done;Z=h.next()){L=u;var y=u.index,R=Z.value;for(Z=0;Z+2<L.B.length&&L.B[Z+1]<R;)Z++;R=Math.min(1,(R-L.B[Z])/(L.B[Z+1]-L.B[Z]));if(L.N)L.N.fillStyle=L.C[Z],L.N.fillRect(y*L.G,0,L.G,L.heightPx),L.N.fillStyle=L.C[Z+1],L.N.fillRect(y*L.G,L.heightPx*(1-R),L.G,L.heightPx);else{y=L.element.children[y];var p=window.devicePixelRatio||1;R=Math.min(L.heightPx,Math.round(L.heightPx*R*p)/p)||0;y.style.height=R+"px";y.style.backgroundColor=L.C[Z+1];y.style.borderTop=
"solid "+(L.heightPx-R)+"px "+L.C[Z]}u.index=(u.index+1)%u.sampleCount}h=u.index;u.N?u.N.clearRect(h*u.G,0,u.G,u.heightPx):(u=u.element.children[h],u.style.height="0px",u.style.borderTop="")};
f8=function(u){var h=null;h={K:"button",CI:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],J:{title:"close"},dw:"[X]"};g.a.call(this,{K:"div",CI:["html5-video-info-panel","ytp-sfn"],Z:[h,{K:"div",CI:["html5-video-info-panel-content","ytp-sfn-content"],Z:[{K:"div",Z:[{K:"div",dw:"Video ID / sCPN"},{K:"span",dw:"{{video_id_and_cpn}}",U:"ytp-sfn-cpn"}]},{K:"div",Z:[{K:"div",dw:"Viewport / Frames"},{K:"span",dw:"{{dims_and_frames}}"}]},{K:"div",Z:[{K:"div",dw:"Current / Optimal Res"},{K:"span",
dw:"{{resolution}}"}]},{K:"div",Z:[{K:"div",dw:"Volume / Normalized"},{K:"span",dw:"{{volume}}"}]},{K:"div",Z:[{K:"div",dw:"Codecs"},{K:"span",dw:"{{codecs}}"}]},{K:"div",J:{style:"{{shader_info_style}}"},Z:[{K:"div",dw:"Shader Info"},{K:"span",dw:"{{shader_info}}"}]},{K:"div",J:{style:"{{color_style}}"},Z:[{K:"div",dw:"Color"},{K:"span",dw:"{{color}}"}]},{K:"div",J:{style:"{{drm_style}}"},Z:[{K:"div",dw:"Protected"},{K:"span",dw:"{{drm}}"}]},{K:"div",J:{style:"{{bandwidth_style}}"},Z:[{K:"div",dw:"Connection Speed"},
{K:"span",Z:[{K:"span",dw:"{{bandwidth_chart}}"},{K:"span",dw:"{{bandwidth_kbps}}"}]}]},{K:"div",J:{style:"{{network_activity_style}}"},Z:[{K:"div",dw:"Network Activity"},{K:"span",Z:[{K:"span",dw:"{{network_activity_chart}}"},{K:"span",dw:"{{network_activity_bytes}}"}]}]},{K:"div",Z:[{K:"div",dw:"Buffer Health"},{K:"span",Z:[{K:"span",dw:"{{buffer_health_chart}}"},{K:"span",dw:"{{buffer_health_seconds}}"}]}]},{K:"div",J:{style:"{{live_latency_style}}"},Z:[{K:"div",dw:"Live Latency"},{K:"span",Z:[{K:"span",
dw:"{{live_latency_chart}}"},{K:"span",dw:"{{live_latency_secs}}"}]}]},{K:"div",J:{style:"{{live_mode_style}}"},Z:[{K:"div",dw:"Live Mode"},{K:"span",dw:"{{live_mode}}"}]},{K:"div",J:{style:"{{playback_categories_style}}"},Z:[{K:"div",dw:"Playback Categories"},{K:"span",dw:"{{playback_categories}}"}]},{K:"div",J:{style:"{{fmt_debug_info_style}}"},Z:[{K:"div",dw:"Format Debug Info"},{K:"span",dw:"{{fmt_debug_info}}"}]},{K:"div",Z:[{K:"div",dw:"Mystery Text"},{K:"span",dw:"{{debug_info}}"}]},{K:"div",
J:{style:"{{extra_debug_info_style}}"},Z:[{K:"div",dw:""},{K:"span",Z:[{K:"span",dw:"{{extra_debug_info}}"}]}]},{K:"div",Z:[{K:"div",dw:"Date"},{K:"span",dw:"{{date}}"}]},{K:"div",J:{style:"{{cotn_and_local_media_style}}"},Z:[{K:"div",dw:"COTN / Local Media"},{K:"span",dw:"{{cotn_and_local_media}}"}]},{K:"div",J:{style:"{{release_style}}"},Z:[{K:"div",dw:"Player Release"},{K:"span",dw:"{{release_name}}"}]}]}]});this.pI=u;this.position=0;this.C=!0;h?this.W(this.BX("ytp-sfn-close"),"click",this.hide):
this.W(this.element,"click",this.hide);u=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];h="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var L=u.map(function(Z){return Z/4});
this.Y={};this.G=new JZ(300,1,150,u,h);g.V(this,this.G);this.updateValue("bandwidth_chart",this.G);this.X=new JZ(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.V(this,this.X);this.updateValue("live_latency_chart",this.X);this.N=new JZ(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.V(this,this.N);this.updateValue("buffer_health_chart",this.N);this.V=new JZ(300,1,150,L,h);g.V(this,this.V);this.updateValue("network_activity_chart",
this.V);this.delay=new g.EM(this.kI,500,this);g.V(this,this.delay);this.B=new g.EM(this.S,2E4,this);g.V(this,this.B)};
fYf=function(u){VA.call(this,u);var h=this;kH(u,"getStatsForNerds",function(){return KDw(h.api)});
gm(u,"showVideoInfo",function(){JRw(h,!0)});
gm(u,"hideVideoInfo",function(){JRw(h,!1)});
gm(u,"isVideoInfoVisible",function(){return Oss(h)})};
JRw=function(u,h){var L=Oss(u);u.G||(u.G=new f8(u.api),g.V(u,u.G),g.XC(u.api,u.G.element,4));u.G.Ay(h);var Z=MT(u.api.uP());Z&&Z.loaded&&L!==h&&Z.uo();h&&u.api.IH("sfn",{},!0)};
Oss=function(u){var h;return!((h=u.G)==null||!h.BJ)};
Dh=function(){g.m.call(this);this.N=null;this.startTime=this.duration=0;this.delay=new g.b8(this.G,null,this);g.V(this,this.delay)};
DSL=function(u,h){if(h.K==="path")return h.J.d;if(h.Z)for(var L=0;L<h.Z.length;L++){var Z=h.Z[L];if(Z&&typeof Z!=="string"&&(Z=DSL(u,Z)))return Z}};
xSa=function(u,h,L){L=DSL(u,L);var Z=h.getElementsByTagName("path")[0],y=Z.getAttribute("d");if(Z.getAttribute("id")){var R=RG();h=h.getElementsByTagName("use");for(var p=0;p<h.length;p++)h[p].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+R);Z.setAttribute("id",R)}var J=cRY(y),O=cRY(L);IYs(u,function(f){Z.setAttribute("d",ARl(J,O,f))},200)};
IYs=function(u,h,L){u.N=h;u.startTime=(0,g.vC)();u.duration=L;u.G()};
cRY=function(u){var h=[];u=u.match(PlY);for(var L=0;L<u.length;L++){var Z=u[L]===" "?NaN:Number(u[L]);h.push(isNaN(Z)?u[L]:Z)}return h};
ARl=function(u,h,L){for(var Z="",y=0;y<u.length;y++){var R=u[y];Z=typeof R==="number"?Z+(R+(h[y]-R)*L):Z+R}return Z};
cy=function(u){g.a.call(this,{K:"button",CI:["ytp-size-button","ytp-button"],J:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}"},dw:"{{icon}}"});this.api=u;this.sA=null;this.transition=new Dh;g.V(this,this.transition);this.W(u,"sizestylechange",this.kI);this.W(u,"fullscreentoggled",this.kI);this.W(u,"presentingplayerstatechange",this.kI);u.createClientVe(this.element,this,139116);this.kI();this.listen("click",this.onClick);Iv(u,this.element,
this)};
Clw=function(u){VA.call(this,u);var h=this;this.events=new g.UN(u);g.V(this,this.events);this.events.W(u,"standardControlsInitialized",function(){h.button=new cy(u);g.V(h,h.button);u.Hd(h.button,"RIGHT_CONTROLS_RIGHT")})};
QeL=function(u){VA.call(this,u);var h=this,L={};this.C=(L.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},L.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(Z){return Mxe(h,Z)},L.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(Z){return Mxe(h,Z)},L);
this.B={};this.events=new g.UN(u);g.V(this,this.events);this.events.W(u,"videodatachange",function(Z,y){if(Z!=="dataupdated"||y.videoId!==h.videoId||!pr(h.timelyActions,isi(y)))h.onVideoDataChange(y)});
this.events.W(u,"presentingplayerstatechange",function(Z){h.TN(Z)});
this.events.W(u,g.hc("timelyAction"),function(Z){h.onCueRangeEnter(Z.getId())});
this.events.W(u,g.L2("timelyAction"),function(Z){h.onCueRangeExit(Z.getId())});
this.X=new g.a({K:"div",CI:["ytp-player-content","ytp-timely-actions-content"]});this.X.hide();kH(u,"insertTimelyActionUi",function(Z){h.X.element.children.length>0&&g.jK(h.X.element);Z.classList.add("ytp-timely-actions-overlay");h.X.element.appendChild(Z)});
g.V(this,this.X);g.XC(this.api,this.X.element,4)};
lYf=function(u){u.timelyActions&&(u.B=u.timelyActions.reduce(function(h,L){if(L.cueRangeId===void 0)return h;h[L.cueRangeId]=0;return h},{}))};
IY=function(u,h){if(u.timelyActions){u=g.C(u.timelyActions);for(var L=u.next();!L.done;L=u.next())if(L=L.value,L.cueRangeId===h)return L}};
SIi=function(u,h){if((u=IY(u,h))&&u.onCueRangeExit)return z3(u.onCueRangeExit)};
XVw=function(u){if(u.G!==void 0){var h=(h=IY(u,u.G))&&h.onCueRangeEnter?z3(h.onCueRangeEnter):void 0;var L=IY(u,u.G);if(L&&L.additionalTrigger){var Z=!1;for(var y=g.C(L.additionalTrigger),R=y.next();!R.done;R=y.next())R=R.value,R.type&&R.args&&u.C[R.type]!==void 0&&(Z=Z||u.C[R.type](R.args))}else Z=!0;h&&Z&&(u.api.hB("innertubeCommand",h),u.setTimeout(L),u.B[u.G]!==void 0&&u.B[u.G]++)}};
Mxe=function(u,h){return u.N===void 0?!1:h.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(h.seekLengthMilliseconds)===5E3?u.N===72:h.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(h.seekLengthMilliseconds)===1E4?u.N===74:h.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(h.seekLengthMilliseconds)===5E3?u.N===71:h.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(h.seekLengthMilliseconds)===1E4?u.N===73:!1};
isi=function(u){if(u=u.getWatchNextResponse()){var h,L;u=(h=u.playerOverlays)==null?void 0:(L=h.playerOverlayRenderer)==null?void 0:L.timelyActionsOverlayViewModel;h=g.n(u,vYn);if(h!=null&&h.timelyActions)return h==null?void 0:h.timelyActions.map(function(Z){return g.n(Z,qIj)}).filter(function(Z){return!!Z})}};
Tqi=function(u){VA.call(this,u);var h=this;gm(this.api,"getPlaybackRate",function(){return h.api.getPlaybackRate()});
gm(this.api,"setPlaybackRate",function(L){typeof L==="number"&&h.api.setPlaybackRate(L)})};
YIw=function(u){u=u.VQ();if(!u)return!1;u=g.LP(u).exp||"";return u.includes("xpv")||u.includes("xpe")};
oYl=function(u){u=g.C(g.AZ(u,!0));for(var h=u.next();!h.done;h=u.next())if(YIw(h.value))return!0;return!1};
NqR=function(u,h){u=g.C(g.AZ(u,!0));for(var L=u.next();!L.done;L=u.next())if(L=L.value,YIw(L)){var Z={potc:"1",pot:h};L.url&&(L.url=Zl(L.url,Z))}};
USf=function(u){var h=new Rzj,L={},Z=(L["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",L);return new lv(h,u,function(){return Z})};
GOY=function(u){return g.G(function(h){if(h.G==1)return g.Qn(h,2),g.N(h,u,4);if(h.G!=2)return g.Sa(h,0);g.Xf(h);g.i1(h)})};
Py=function(u){VA.call(this,u);var h=this;this.useLivingRoomPoToken=!1;this.B=new g.Ab;this.T3=null;this.V=!1;this.X=null;this.T=!1;var L=u.L().getWebPlayerContextConfig();this.events=new g.UN(u);g.V(this,this.events);this.events.W(u,"spsumpreject",function(Z,y,R){h.T=y;Z&&h.V&&!h.X&&(h.j("html5_generate_content_po_token")&&R?h.ZA(R):h.j("html5_generate_session_po_token")&&Hsf(h));h.X||h.api.IH("stp",{s:+h.V,b:+h.T})});
this.events.W(u,"poTokenVideoBindingChange",function(Z){h.ZA(Z)});
this.useLivingRoomPoToken=!(L==null||!L.useLivingRoomPoToken);u.addEventListener("csiinitialized",function(){h.T3=u.QO();var Z=(h.j("html5_generate_session_po_token")||h.j("html5_generate_content_po_token"))&&!h.useLivingRoomPoToken;try{if(h.j("html5_use_shared_owl_instance"))rRs(h);else if(Z){h.T3.wO("pot_isc");h.j("html5_new_wpo_client")||Bqn(h);var y=g.Jl(h.api.L().experiments,"html5_webpo_kaios_defer_timeout_ms");y?(h.j("html5_new_wpo_client")&&(h.N=tb()),g.IJ(function(){x_(h)},y)):h.j("html5_webpo_idle_priority_job")?
(h.j("html5_new_wpo_client")&&(h.N=tb()),g.bw(g.k9(),function(){x_(h)})):x_(h)}}catch(R){R instanceof Error&&g.G3(R)}});
u.addEventListener("trackListLoaded",this.Z7.bind(this));u.cz(this)};
znV=function(u){var h=w2(u.experiments,"html5_web_po_request_key");return h?h:g.SM(u)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"};
C8=function(u,h){if(u.j("html5_webpo_bge_ctmp")){var L,Z={hwpo:!!u.G,hwpor:!((L=u.G)==null||!L.isReady())};u.api.IH(h,Z)}};
rRs=function(u){var h,L;g.G(function(Z){if(Z.G==1)return C8(u,"swpo_i"),u.N=tb(),Mz(u),g.N(Z,YK(),2);if(Z.G!=3)return h=Z.N,C8(u,"swpo_co"),g.N(Z,LSw(h),3);L=Z.N;u.G=mSL(u,L);C8(u,"swpo_cc");u.G.ready().then(function(){u.B.resolve();C8(u,"swpo_re")});
g.IJ(function(){x_(u);C8(u,"swpo_si")},0);
g.i1(Z)})};
Bqn=function(u){var h=u.api.L(),L=znV(h),Z=USf(L);h=new bC({H2:L,b_:Z,onEvent:function(y){(y=dSV[y])&&u.T3.wO(y)},
onError:g.G3,i7:iJR(h.experiments),yM:function(){return void u.api.IH("itr",{})},
ILi:h.experiments.tB("html5_web_po_disable_remote_logging")||VxY.includes(g.BY(h.a7)||"")});h.ready().then(function(){return void u.B.resolve()});
g.V(u,h);u.G=h};
nYR=function(u){var h=u.api.L(),L=USf(znV(h)),Z=L.tU.bind(L);L.tU=function(J){var O;return g.G(function(f){if(f.G==1)return g.N(f,Z(J),2);O=f.N;u.api.IH("itr",{});return f.return(O)})};
try{var y=new SZ({b_:L,WI:{maxAttempts:5},ED:{disable:h.experiments.tB("html5_web_po_disable_remote_logging")||VxY.includes(g.BY(h.a7)||""),Jj:iJR(h.experiments),Tmw:u.j("wpo_dis_lfdms")?0:1E3},ryH:g.G3});var R=new $N({Il:y,b_:L,onError:g.G3});GOY(R.kA()).then(function(){return void u.B.resolve()});
g.V(u,y);g.V(u,R);u.G=mSL(u,R)}catch(J){g.G3(J);var p;(p=y)==null||p.dispose()}};
x_=function(u){var h=u.api.L();u.T3.wO("pot_ist");u.G?u.G.start():u.j("html5_new_wpo_client")&&nYR(u);u.j("html5_bandaid_attach_content_po_token")||(u.j("html5_generate_session_po_token")&&(Mz(u),Hsf(u)),h=g.Jl(h.experiments,"html5_session_po_token_interval_time_ms")||0,h>0&&(u.C=g.A5(function(){Mz(u)},h)),u.V=!0)};
Mz=function(u){var h,L,Z,y;g.G(function(R){if(!u.j("html5_generate_session_po_token")||u.useLivingRoomPoToken)return R.return();h=u.api.L();L=g.tn("EOM_VISITOR_DATA")||g.tn("VISITOR_DATA");Z=h.Mt?h.datasyncId:L;y=w2(h.experiments,"html5_mock_content_binding_for_session_token")||h.livingRoomPoTokenId||Z;h.t4=i5(u,y);g.i1(R)})};
i5=function(u,h){if(!u.G)return u.N?u.N(h):"";try{var L=u.G.isReady();u.T3.wO(L?"pot_cms":"pot_csms");var Z="";Z=u.j("html5_web_po_token_disable_caching")?u.G.vF({RM:h}):u.G.vF({RM:h,zN:{Cq:h,XJB:150,Zw:!0,V7:!0}});u.T3.wO(L?"pot_cmf":"pot_csmf");if(L){var y;(y=u.X)==null||y.resolve();u.X=null;if(u.T){u.T=!1;var R;(R=u.api.app.WX())==null||R.bb(!1)}}return Z}catch(p){return g.G3(p),""}};
Hsf=function(u){u.G&&(u.X=new aA,u.G.ready().then(function(){u.T3.wO("pot_if");Mz(u)}))};
mSL=function(u,h){u.j("html5_web_po_token_disable_caching")||h.Gu(150);var L=!1,Z=GOY(h.kA()).then(function(){L=!0});
return{isReady:function(){return L},
ready:function(){return Z},
vF:function(y){return h.vF({RM:y.RM,Zo:!0,J$:!0,zN:y.zN?{Cq:y.zN.Cq,Zw:y.zN.Zw,V7:y.zN.V7}:void 0})},
start:function(){}}};
sew=function(u){VA.call(this,u);var h=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.UN(u);g.V(this,this.events);this.events.W(u,"heartbeatRequest",function(L){if(h.freePreviewUsageDetails.length||h.freePreviewWatchedDuration!==null)L.heartbeatRequestParams||(L.heartbeatRequestParams={}),L.heartbeatRequestParams.unpluggedParams||(L.heartbeatRequestParams.unpluggedParams={}),h.freePreviewUsageDetails.length>0?L.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails=
h.freePreviewUsageDetails:L.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+h.freePreviewWatchedDuration}});
kH(u,"setFreePreviewWatchedDuration",function(L){h.freePreviewWatchedDuration=L});
kH(u,"setFreePreviewUsageDetails",function(L){h.freePreviewUsageDetails=L})};
Qh=function(u){g.m.call(this);this.features=[];var h=this.G,L=new x0(u),Z=new nU(u),y=new N$(u),R=new Py(u);var p=g.Qr(u.L())?void 0:new Kt(u);var J=new oZ(u),O=new fYf(u),f=new Tqi(u),D=new AG(u);var c=g.Qr(u.L())?new sew(u):void 0;var I=u.j("html5_enable_ssap")?new Rns(u):void 0;var A=u.j("web_cinematic_watch_settings")&&(A=u.L().getWebPlayerContextConfig())!=null&&A.cinematicSettingsAvailable?new hG(u):void 0;var x=new IC(u);var Q=u.j("enable_courses_player_overlay_purchase")?new xmb(u):void 0;
var S=g.nC(u.L())?new DmR(u):void 0;var v=new JG(u);var T=u.L().B?new Ref(u):void 0;var U=g.MW(u.L())?new y_n(u):void 0;var z=u.j("web_player_move_autonav_toggle")&&u.L().XN?new kLR(u):void 0;var d=g.nC(u.L())?new yZf(u):void 0;var W=u.j("web_enable_speedmaster")&&g.nC(u.L())?new yh(u):void 0;var t=u.L().dD?void 0:new Clw(u);var yn=u.j("report_pml_debug_signal")?new Waj(u):void 0;var KV=new C5n(u),u1=new rW(u);var w=u.j("enable_web_player_player_in_bar_feature")&&g.rp(u.L())?new YEn(u):void 0;var k=
navigator.mediaSession&&window.MediaMetadata&&u.L().i8?new Te(u):void 0;var M=u.j("html5_enable_drc")&&!u.L().C?new pt(u):void 0;var e=new w7(u);var sj=g.nC(u.L())?new n_n(u):void 0;var l3=u.j("html5_enable_d6de4")?new UB(u):void 0;var c1=g.nC(u.L())&&u.j("web_sleep_timer")?new kj(u):void 0;var Yb=g.MW(u.L())?new Kls(u):void 0;var kb=new F5(u),ZR=new Lt(u),P1=new Z8w(u);var X=u.j("enable_sabr_snackbar_message")?new je1(u):void 0;var q=u.j("web_enable_timely_actions")?new QeL(u):void 0;h.call(this,
L,Z,y,R,p,J,O,f,D,c,I,A,x,Q,S,v,T,U,z,d,W,t,yn,KV,u1,w,void 0,k,M,e,void 0,sj,l3,c1,Yb,void 0,kb,ZR,P1,void 0,X,q,new ZN(u))};
l5=function(){this.N=this.G=NaN};
wVi=function(u,h){this.xI=u;this.timerName="";this.X=!1;this.N=NaN;this.B=new l5;this.G=h||null;this.X=!1};
ens=function(u,h,L){var Z=g.v$(h.z7)&&!h.z7.C;if(h.z7.zG&&(Q6(h.z7)||h.z7.DI==="shortspage"||$y(h.z7)||Z)&&!u.X){u.X=!0;u.C=h.clientPlaybackNonce;g.tn("TIMING_ACTION")||$B("TIMING_ACTION",u.xI.csiPageType);u.xI.csiServiceName&&$B("CSI_SERVICE_NAME",u.xI.csiServiceName);if(u.G){Z=u.G.QO();for(var y=g.C(Object.keys(Z)),R=y.next();!R.done;R=y.next())R=R.value,zQ(R,Z[R],u.timerName);Z=g.EC(Vej)(u.G.wu);g.m1(Z,u.timerName);Z=u.G;Z.N={};Z.wu={}}g.m1({playerInfo:{visibilityState:g.EC(dvL)()},playerType:"LATENCY_PLAYER_HTML5"},
u.timerName);u.T!==h.clientPlaybackNonce||Number.isNaN(u.N)||(V4("_start",u.timerName)?L=g.EC(Uh)("_start",u.timerName)+u.N:g.G3(new g.aO("attempted to log gapless pbs before CSI timeline started",{cpn:h.clientPlaybackNonce})));L&&!V4("pbs",u.timerName)&&u.tick("pbs",L)}};
aY1=function(u,h,L,Z,y,R,p){u=(u===L?"video":"ad")+"_to_"+(h===L?"video":"ad");if(u!=="video_to_ad"||R!=null&&R.XB){R=u==="ad_to_video"?R:Z;L=R==null?void 0:R.TC;var J={};if(Z==null?0:Z.C)J.cttAuthInfo={token:Z.C,videoId:Z.videoId};y&&(J.startTime=y);dT(u,J);var O,f,D;Z={targetVideoId:(O=Z==null?void 0:Z.videoId)!=null?O:"empty_video",targetCpn:h,adVideoId:(f=R==null?void 0:R.videoId)!=null?f:"empty_video",adClientPlaybackNonce:(D=L==null?void 0:L.cpn)!=null?D:R==null?void 0:R.clientPlaybackNonce};
L&&(Z.adBreakType=L.adBreakType,Z.adType=L.adType);g.m1(Z,u);zQ("pbs",p!=null?p:(0,g.vC)(),u)}};
S_=function(u){bdn();FbY();u.timerName=""};
$SR=function(u){if(u.G){var h=u.G;h.N={};h.wu={}}u.X=!1;u.T=void 0;u.N=NaN};
txn=function(u,h){g.yV.call(this);this.z7=u;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.G=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Y={};this.N=0;if(u=h.session_data)this.sessionData=gv(u,"&");this.index=Math.max(0,Number(h.index)||0);this.loop=!!h.loop;this.startSeconds=Number(h.startSeconds)||0;this.title=h.playlist_title||"";this.description=h.playlist_description||"";this.author=
h.author||h.playlist_author||"";h.video_id&&(this.items[this.index]=h);if(u=h.api)typeof u==="string"&&u.length===16?h.list="PL"+u:h.playlist=u;if(u=h.list)switch(h.listType){case "user_uploads":this.listId=new Ds("UU","PLAYER_"+u);break;default:var L=h.playlist_length;L&&(this.length=Number(L)||0);this.listId=g.cu(u);if(u=h.video)this.items=u.slice(0),this.loaded=!0}else if(h.playlist){u=h.playlist.toString().split(",");this.index>0&&(this.items=[]);u=g.C(u);for(L=u.next();!L.done;L=u.next())(L=
L.value)&&this.items.push({video_id:L});this.length=this.items.length;if(u=h.video)this.items=u.slice(0),this.loaded=!0}this.setShuffle(!!h.shuffle);if(u=h.suggestedQuality)this.quality=u;this.Y=Kg(h,"playlist_");this.X=(h=h.thumbnail_ids)?h.split(","):[]};
WDR=function(u){return!!(u.playlist||u.list||u.api)};
FDY=function(u){var h=u.index+1;return h>=u.length?0:h};
bsV=function(u){var h=u.index-1;return h<0?u.length-1:h};
g.XW=function(u,h,L,Z){h=h!==void 0?h:u.index;h=u.items&&h in u.items?u.items[u.order[h]]:null;var y=null;h&&(L&&(h.autoplay="1"),Z&&(h.autonav="1"),y=new g.rC(u.z7,h),g.V(u,y),y.B6=!0,y.startSeconds=u.startSeconds||y.clipStart||0,u.listId&&(y.playlistId=u.listId.toString()));return y};
EYw=function(u,h){u.index=g.pX(h,0,u.length-1);u.startSeconds=0};
kOL=function(u,h){if(h.video&&h.video.length){u.title=h.title||"";u.description=h.description;u.views=h.views;u.likes=h.likes;u.dislikes=h.dislikes;u.author=h.author||"";var L=h.loop;L&&(u.loop=L);L=g.XW(u);u.items=[];for(var Z=g.C(h.video),y=Z.next();!y.done;y=Z.next())if(y=y.value)y.video_id=y.encrypted_id,u.items.push(y);u.length=u.items.length;(h=h.index)?u.index=h:u.findIndex(L);u.setShuffle(!1);u.loaded=!0;u.N++;u.G&&u.G()}};
jyY=function(u,h){var L,Z,y,R,p,J,O;return g.G(function(f){if(f.G==1){L=g.hC();var D=u.L(),c={context:g.bn(u),playbackContext:{contentPlaybackContext:{ancestorOrigins:D.ancestorOrigins}}},I=D.getWebPlayerContextConfig();if(I==null?0:I.encryptedHostFlags)c.playbackContext.contentPlaybackContext.encryptedHostFlags=I.encryptedHostFlags;if(I==null?0:I.hideInfo)c.playerParams={showinfo:!1};D=D.embedConfig;I=h.docid||h.video_id||h.videoId||h.id;if(!I){I=h.raw_embedded_player_response;if(!I){var A=h.embedded_player_response;
A&&(I=JSON.parse(A))}if(I){var x,Q,S,v,T,U;I=((U=g.n((x=I)==null?void 0:(Q=x.embedPreview)==null?void 0:(S=Q.thumbnailPreviewRenderer)==null?void 0:(v=S.playButton)==null?void 0:(T=v.buttonRenderer)==null?void 0:T.navigationEndpoint,g.wC))==null?void 0:U.videoId)||null}else I=null}x=(x=I)?x:void 0;Q=u.playlistId?u.playlistId:h.list;S=h.listType;if(Q){var z;S==="user_uploads"?z={username:Q}:z={playlistId:Q};gYi(D,x,h,z);c.playlistRequest=z}else h.playlist?(z={templistVideoIds:h.playlist.toString().split(",")},
gYi(D,x,h,z),c.playlistRequest=z):x&&(z={videoId:x},D&&(z.serializedThirdPartyEmbedConfig=D),c.singleVideoRequest=z);Z=c;y=g.E_(uvl);g.Qn(f,2);return g.N(f,g.ah(L,Z,y),4)}if(f.G!=2)return R=f.N,p=u.L(),h.raw_embedded_player_response=R,p.gw=pF(h,g.MW(p)),p.X=p.gw==="EMBEDDED_PLAYER_MODE_PFL",R&&(J=R,J.trackingParams&&ip(J.trackingParams)),f.return(new g.rC(p,h));O=g.Xf(f);O instanceof Error||(O=Error("b259802748"));g.UZ(O);return f.return(u)})};
gYi=function(u,h,L,Z){L.index&&(Z.playlistIndex=String(Number(L.index)+1));Z.videoId=h?h:"";u&&(Z.serializedThirdPartyEmbedConfig=u)};
g.qz=function(u,h){vy.get(u);vy.set(u,h)};
g.Tl=function(u){g.yV.call(this);this.loaded=!1;this.player=u};
hoY=function(){this.N=[];this.G=[]};
g.AZ=function(u,h){return h?u.G.concat(u.N):u.G};
g.Y_=function(u,h){switch(h.kind){case "asr":LEn(h,u.N);break;default:LEn(h,u.G)}};
LEn=function(u,h){g.Fg(h,function(L){return u.ys(L)})||h.push(u)};
g.oY=function(u){g.m.call(this);this.pI=u;this.N=new hoY;this.B=null;this.T=[];this.S=[]};
g.Nz=function(u,h,L){g.oY.call(this,u);this.videoData=h;this.audioTrack=L;this.G=null;this.X=!1;this.T=h.x6;this.S=h.mC;this.X=g.Hz(h)};
g.UE=function(u,h){return WX(u.info)?h?u.info.itag===h:!0:!1};
g.ZYR=function(u,h){if(u.G!=null&&g.Qr(h.L())&&!u.G.isManifestless&&u.G.G.rawcc!=null)return!0;if(!u.bP())return!1;h=!!u.G&&u.G.isManifestless&&Object.values(u.G.G).some(function(L){return g.UE(L,"386")});
u=!!u.G&&!u.G.isManifestless&&g.NMa(u.G);return h||u};
g.Gl=function(u,h,L,Z,y,R){g.oY.call(this,u);this.videoId=L;this.s_=y;this.eventId=R;this.C={};this.G=null;u=Z||g.LP(h).hl||"";u=u.split("_").join("-");this.X=Zl(h,{hl:u})};
yxf=function(u,h){this.N=u;this.G=h;this.onFailure=void 0};
Roe=function(u,h){return{qe:u.qe&&h.qe,Mm:u.Mm&&h.Mm,sync:u.sync&&h.sync,streaming:u.streaming&&h.streaming}};
rI=function(u,h){var L=pHn,Z=this;this.path=u;this.X=h;this.B=L;this.capabilities={qe:!!this.X,Mm:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.T=new yxf([{name:"compileStreaming",condition:function(y){return!!Z.N&&y.streaming},
SN:Hy.xp("wmcx",function(){return WebAssembly.compileStreaming(fetch(Z.path))}),
onFailure:function(){return Z.capabilities.streaming=!1}},
{name:"sync",condition:function(y){return y.sync},
SN:function(){return Rd(KEf(Z),Hy.xp("wmcs",function(y){return new WebAssembly.Module(y)}))},
onFailure:function(){return Z.capabilities.sync=!1}},
{name:"async",condition:function(){return!0},
SN:function(){return Rd(KEf(Z),Hy.xp("wmca",function(y){return WebAssembly.compile(y)}))},
onFailure:function(){return Z.capabilities.Mm=!1}}]);
this.C=new yxf([{name:"instantiateStreaming",condition:function(y){return y.Mm&&y.streaming&&!Z.N&&!Z.G},
SN:function(y,R){return Hy.G6("wmix",function(){return WebAssembly.instantiateStreaming(fetch(Z.path),R)}).then(function(p){Z.G=h_(p.module);
return{instance:p.instance,Ew:!1}})},
onFailure:function(){return Z.capabilities.streaming=!1}},
{name:"sync",condition:function(y){return y.Mm&&y.sync},
SN:function(y,R){return Rd(JxY(Z,y),Hy.xp("wmis",function(p){return{instance:new WebAssembly.Instance(p,R),Ew:!1}}))},
onFailure:function(){return Z.capabilities.sync=!1}},
{name:"async",condition:function(y){return y.Mm},
SN:function(y,R){return Rd(Rd(JxY(Z,y),Hy.xp("wmia",function(p){return WebAssembly.instantiate(p,R)})),function(p){return{instance:p,
Ew:!1}})},
onFailure:function(){return Z.capabilities.Mm=!1}},
{name:"asmjs",condition:function(y){return y.qe},
SN:function(y,R){return h_(Hy.G6("wmij",function(){return Z.X(R)}).then(function(p){return{instance:{exports:p},
Ew:!0}}))},
onFailure:function(){return Z.capabilities.qe=!1}}],function(y,R,p){return Z.B(p,y.instance.exports)})};
Dla=function(u){var h=OYn;return h.instantiate(u?Roe(h.capabilities,u):h.capabilities,new fi1)};
KEf=function(u){if(u.N)return u.N;var h=fetch(u.path).then(function(L){return L.arrayBuffer()}).then(function(L){u.N=h_(L);
return L}).then(void 0,function(L){g.G3(Error("wasm module fetch failure: "+L.message,{cause:L}));
u.N=void 0;throw L;});
u.N=h_(h);return u.N};
JxY=function(u,h){if(!h.Mm)return Ln(Error("wasm unavailable"));if(u.G)return u.G;u.G=pn(Rd(u.compile(h),function(L){u.G=h_(L);return L}),function(L){g.G3(Error("wasm module compile failure: "+L.message,{cause:L}));
u.G=void 0;throw L;});
return u.G};
cxl=function(){};
IiY=function(){var u=this;this.proc_exit=function(){};
this.fd_write=function(h,L,Z){if(!u.exports)return 1;h=new Uint32Array(u.exports.memory.buffer,L,Z*2);L=[];for(var y=0;y<Z;++y){var R=new Uint8Array(u.exports.memory.buffer,h[y*2],h[y*2+1]);R=g.S4(R);L.push(R)}return L.reduce(function(p,J){return p+J.length},0)}};
fi1=function(){this.env=new cxl;this.wasi_snapshot_preview1=new IiY};
pHn=function(u,h){u.wasi_snapshot_preview1.exports=h;u=Math.floor(Math.random()*256);var L=Math.floor(Math.random()*256),Z=0;try{Z=h.malloc(16);(new Uint8Array(h.memory.buffer,Z,16)).fill(u);if(h.sentinel(Z,16,L)!==L*16%256)return!1;for(var y=new Uint8Array(h.memory.buffer,Z,16),R=0;R<16;R++)if(y[R]!==(u+L)%256)return!1;return!0}finally{Z!==0&&h.free(Z)}};
Axa=function(u,h){this.instance=u;this.Ew=h;this.exports=this.G=this.instance.exports};
PDL=function(u,h,L){L=L===void 0?!1:L;var Z=Z===void 0?!0:Z;var y=Hy.kx();return Rd(xll(u,h,{qe:L,Mm:!0,sync:!0,streaming:!0},Z),function(R){Hy.rM(R.Ew?"winitjs":"winit",y);return R})};
xll=function(u,h,L,Z){Z=Z===void 0?!0:Z;OYn||(OYn=new rI(u,h));return Rd(Dla(L),function(y){return new Axa(y.instance,y.Ew,Z)})};
CDn=function(u,h){g.m.call(this);var L=this;this.D=u;this.G=h;this.wu={};this.N={};this.X=null;this.B=new Set;this.T=new g.UN(this);this.zd={frH:function(){return L.G},
Um:function(){return L.Um()}};
this.C=this.D.j("web_player_defer_modules");this.u2=new Map;g.V(this,this.T);this.T.W(u,"videodatachange",this.onVideoDataChange)};
g.By=function(u){return u.u2.get("captions")};
XHj=function(u,h){switch(h){case "ad":return M31(u);case "annotations_module":return u.D.isEmbedsShortsMode()?u=!1:(h=u.D,u=h.L(),h=h.getVideoData(),u=u.X||h.Ff||u.controlsType==="3"?!1:u.T7.isEmpty()&&u.playerStyle!=="annotation-editor"&&u.playerStyle!=="live-dashboard"?!!h.ZI||!!g.vz(h)||!!g.qP(h):!0),u;case "asmjs":return u.D.L().j("html5_allow_asmjs");case "creatorendscreen":return iYi(u);case "embed":return g.MW(u.D.L());case "endscreen":return g.Qya(u);case "heartbeat":return u.Va();case "kids":return Gg(u.D.L());
case "remote":return u.D.L().xo;case "miniplayer":return u.D.L().showMiniplayerUiWhenMinimized;case "offline":return u.D.L().jY;case "captions":return lii(u);case "unplugged":return g.qW(u.D.L());case "ux":return u.D.L().xl;case "webgl":return S$f(u);case "ypc":return u.gx();case "ypc_clickwrap":return u=u.D.getVideoData(),u.Th&&!u.AX;case "yto":return!!u.D.getVideoData().gw.includes("yto");default:return g.UZ(Error("Module descriptor "+h+" does not match")),!1}};
zl=function(u,h,L,Z,y){var R;L=L===void 0?!1:L;Z=Z===void 0?!1:Z;var p=u.u2.get(h);if(!p||Z)if(y||(y=function(){zl(u,h,L,Z)}),R||(R=function(){u.D.CB(h)}),p=p||vsn(u,h,XHj(u,h),y,R))u.u2.set(h,p),p.create(),u.D.publish("modulecreated",h),L&&u.D.EX("onApiChange")};
TRV=function(u){var h=h===void 0?!1:h;var L,Z,y,R,p;return g.G(function(J){if(J.G==1)return(L=u.u2.get("asmjs"))&&!h?J.return(L):(Z=vy.get("asmjs"))!=null?(y=Z,J.KI(2)):g.N(J,new Promise(function(O,f){q$b(u,"asmjs",function(){var D=vy.get("asmjs");D?O(D):f("cannot load module asmjs")},f)}),3);
J.G!=2&&(y=J.N);R=y;if(!R)return J.return(Promise.reject("cannot load module asmjs"));p=new R(u.D);u.u2.set("asmjs",p);p.create();return J.return(p)})};
NRw=function(u){Y$R(u)&&u.eM();oss(u)&&(zl(u,"captions",!0),zl(u,"endscreen"),u.v1(),zl(u,"creatorendscreen",!0))};
oss=function(u){var h=u.D.getVideoData(),L=u.C&&!h.isInlinePlaybackNoAd;u.D.j("html5_defer_modules_on_ads_only")&&!h.isAd()&&(L=!1);return L};
Y$R=function(u){u=u.D.getVideoData();var h;if(h=u.j("web_player_defer_ad")){if(g.E8(u.gw,"ad")||$Ul(u)||u.enableServerStitchedDai)u=!1;else{h=u.playerResponse;u=u.startSeconds;var L=h==null?void 0:h.adPlacements;if(h=L){h=Number.MAX_VALUE;L=g.C(L);for(var Z=L.next();!Z.done;Z=L.next())if(Z=Z.value.adPlacementRenderer){var y=void 0,R=(y=Z.config)==null?void 0:y.adPlacementConfig;y=void 0;if(((y=R)==null?void 0:y.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var p=y=void 0;R=Number((y=R)==null?void 0:(p=
y.adTimeOffset)==null?void 0:p.offsetStartMilliseconds)||0;p=y=void 0;Z=Number(((y=Z.renderer)==null?void 0:(p=y.adBreakServiceRenderer)==null?void 0:p.prefetchMilliseconds)||0);Z=R-Z;Z<h&&(h=Z)}}h=h-5E3<=u*1E3}u=h?!1:!0}h=u}return h};
lii=function(u){var h=u.D.getVideoData();return!!h.jx||!!h.captionTracks.length||g.ZYR(h,u.D)};
g.Qya=function(u){var h=u.D.L();if(h.X||$y(h)||h.C||!h.jq&&!h.h4)return!1;var L=u.D.getPresentingPlayerType();if(L===2)return!1;if(L===3)return h.j("desktop_enable_autoplay");u=u.D.getVideoData();if(!u)return!1;L=!u.isLiveDefaultBroadcast||h.j("allow_poltergust_autoplay");L=u.isLivePlayback&&(!h.j("allow_live_autoplay")||!L);h=u.isLivePlayback&&h.j("allow_live_autoplay_on_mweb");return!L||h};
g.lM=function(u){return u.u2.get("webgl")};
S$f=function(u){var h=u.D.getVideoData();u=u.D.L();var L=g.SMe(),Z=u.j("enable_spherical_kabuki"),y=g.aL(u);if(g.SS(h))return L||Z||y;if(g.Qq(h))return y||L||Z;if(g.ln(h))return y||L||!1;if(g.p3(h))return y||!1;L=h.N&&h.N.video&&h.N.video.isHdr();return y&&!g.f3(h)&&!L&&u.j("enable_webgl_noop")};
M31=function(u){if(u.D.L().X)return!1;u=u.D.getVideoData(1);var h=u.getPlayerResponse();if(h){var L=h.adPlacements;if(L)for(var Z=0;Z<L.length;Z++)if(L[Z].adPlacementRenderer)return!0;if(h.adSlots)return!0}return g.dC(u)?!0:!1};
iYi=function(u){if(u.D.isEmbedsShortsMode())return!1;u=u.D;var h=u.L();if(h.X)return!1;var L;if(((L=h.getWebPlayerContextConfig())==null?0:L.embedsEnableEmc3ds)||h.controlsType==="3")return!1;if(h.playerStyle==="creator-endscreen-editor")return!0;L=u.getVideoData();return!!L&&(!!g.hfR(L)||!!g.La1(L))};
vsn=function(u,h,L,Z,y){try{if(L){var R=vy.get(h);if(R)return new R(u.D);q$b(u,h,Z,y)}else u.D.CB(h)}catch(p){u.D.CB(h),g.UZ(p)}return null};
mN=function(u,h,L){if(u.D.L().j("html5_dispose_modules_in_order"))for(var Z=g.C(UlR),y=Z.next();!y.done;y=Z.next()){y=y.value;var R=u.u2.get(y);R&&(L||R.n3(h))&&(g.Ju(R),u.u2.delete(y))}else for(Z=g.C(u.u2),y=Z.next();!y.done;y=Z.next())R=g.C(y.value),y=R.next().value,(R=R.next().value)&&(L||R.n3(h))&&(g.Ju(R),u.u2.delete(y))};
dI=function(u){return u.u2.get("ad")};
GJL=function(u){if(Gg(u.D.L()))return u.u2.get("kids")};
MT=function(u){if(u.D.L().xo)return u.u2.get("remote")};
g.Vh=function(u){if(g.qW(u.D.L()))return u.u2.get("unplugged")};
oTn=function(u){if(u.D.L().xl)return u.u2.get("ux")};
HY1=function(u){if(u.D.L().showMiniplayerUiWhenMinimized)return u.u2.get("miniplayer")};
n8=function(u){if(u.D.L().jY)return u.u2.get("offline")};
g.sE=function(u){return u.u2.get("annotations_module")};
wI=function(u){return u.u2.get("creatorendscreen")};
BRL=function(u,h){var L=u.G.startsWith("https://")?u.G+"lib.wasm":u.G.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";return PDL(L,function(Z){var y=u.u2.get("asmjs");return y?Promise.resolve(y.YP(Z)):rxb(u).then(function(R){return R.YP(Z)})},h)};
rxb=function(u){var h,L;return g.G(function(Z){if(Z.G==1)return g.N(Z,TRV(u),2);L=h=Z.N;return Z.return(L)})};
q$b=function(u,h,L,Z){if(u.G){var y=zoa[h];mlL(u,u.G+y,function(){u.B.add(y);L.call(u)},Z)}};
mlL=function(u,h,L,Z){function y(){u.ww()||Z.call(u)}
function R(){u.ww()||L.call(u)}
for(var p=g.nX("SCRIPT"),J=!1,O,f=0;f<p.length;f++){var D=p[f];if(D.src===h||D.getAttribute("data-original-src")===h)O=D}O||(O=g.kJ("SCRIPT"),O.setAttribute("data-original-src",h),J=!0);var c=O.onload;O.onload=function(Q){Lv(R);c&&c.apply(window,[Q])};
var I=O.onerror;O.onerror=function(Q){if(Math.random()<.01){var S=new g.aO("Unable to load player module",h,document.location&&document.location.origin);g.UZ(S)}Lv(y);I&&I(Q)};
var A=O,x=A.onreadystatechange;A.onreadystatechange=function(Q){switch(A.readyState){case "loaded":case "complete":Lv(R)}x&&x(Q)};
J&&((p=u.D.L().cspNonce)&&O.setAttribute("nonce",p),g.sS(O,g.Sv(h)),p=g.nX("HEAD")[0]||document.body,p.insertBefore(O,p.firstChild),u.addOnDisposeCallback(function(){O.parentNode&&O.parentNode.removeChild(O)}))};
dli=function(u,h,L,Z,y){g.yV.call(this);var R=this;this.target=u;this.zC=h;this.N=0;this.C=!1;this.B=new g.O6(NaN,NaN);this.G=new g.UN(this);this.XB=this.X=this.V=null;g.V(this,this.G);h=Z||y?4E3:3E3;this.Y=new g.EM(function(){e_(R,1,!1)},h,this);
g.V(this,this.Y);this.AB=new g.EM(function(){e_(R,2,!1)},h,this);
g.V(this,this.AB);this.RH=new g.EM(function(){e_(R,512,!1)},h,this);
g.V(this,this.RH);this.gw=3E3;Z||(this.X=this.G.W(u,"mouseover",this.tR),this.G.W(u,"mousemove",this.hc),this.G.W(u,"mouseleave",this.bay));ff?this.G.W(u,"keypress",this.JBI):this.G.W(u,"focusin",this.GP);this.T=this.G.W(u,"mousedown",this.mN);this.S=this.G.W(u,"touchstart",this.eE,void 0,!0);e_(this,640,!0)};
V3n=function(u){e_(u,4,!1);u.V&&(u.G.FJ(u.V),u.V=null,u.X=u.G.W(u.target,"mouseover",u.tR));u.X&&(u.G.FJ(u.X),u.X=u.G.W(u.target,"mouseover",u.tR))};
e_=function(u,h,L){u.ww();var Z=!u.N;L?(u.N|=h,h&1&&u.Y.start(),h&2&&u.AB.start()):(u.N&=~h,h&1&&u.Y.stop(),h&2&&u.AB.stop(),h&512&&u.RH.stop());u.N&512&&!(u.N&128)&&g.kK(u.RH,u.gw);h=!u.N;Z!==h&&u.publish("autohideupdate",h)};
g.$_=function(u){g.a.call(this,{K:"button",CI:["ytp-large-play-button","ytp-button"],J:{"aria-label":"Play",title:"Play"},Z:["{{largePlayButtonChildren}}"]});this.api=u;this.W(u,"videodatachange",this.kI);this.W(u,"basechromeinitialized",this.LXw);u=this.api.L();u.S&&aY&&(this.listen("click",this.Qj,this),this.listen("touchstart",this.iZa,this));g.v$(u)&&g.yN(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.kI()};
g.tZ=function(u){var h=u.L(),L=["ytp-cued-thumbnail-overlay"];h.C&&L.push("ytp-exp-contain-thumbnail");h.j("web_player_show_frame_zero_when_cued")&&L.push("ytp-exp-frame0");g.a.call(this,{K:"div",CI:L,Z:[{K:"div",U:"ytp-cued-thumbnail-overlay-image"}]});h=this.BX("ytp-cued-thumbnail-overlay");L=new g.$_(u);g.V(this,L);L.Og(h);this.B=new g.UN(this);g.V(this,this.B);this.api=u;this.C=this.BX("ytp-cued-thumbnail-overlay-image");this.X=L;this.N=new g.kS(this,250);g.V(this,this.N);this.G=new g.EM(this.kI,
0,this);g.V(this,this.G);this.kI();this.W(u,"appresize",this.QZ);this.W(u,"presentingplayerstatechange",this.onStateChange);this.W(u,"ypcStateChanged",this.DrX);Q6(u.L())&&this.W(u,"videoplayerreset",this.onReset)};
nsY=function(u){if(!u.api.j("web_player_show_frame_zero_when_cued"))return!1;var h=u.api.getCurrentTime();u=u.api.getPlayerStateObject();u=g.F(u,64)&&g.F(u,1);return h===0&&u};
g.Wy=function(u){g.a.call(this,{K:"div",CI:["ytp-error"],J:{role:"alert"},Z:[{K:"div",U:"ytp-error-content",Z:[{K:"div",U:"ytp-error-icon-container",Z:[{K:"svg",J:{fill:"#fff",viewBox:"0 0 48 48"},Z:[{K:"path",J:{d:"M0 0h48v48H0V0z",fill:"none"}},{K:"path",J:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{K:"div",U:"ytp-error-content-wrap",
Z:[{K:"div",U:"ytp-error-content-wrap-reason",dw:"{{content}}"},{K:"div",U:"ytp-error-content-wrap-subreason",dw:"{{subreason}}"}]}]}]});this.api=u;this.keys=[];this.X=!1;u.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.BJ)};
g.FW=function(u){u=u.split(syn);for(var h=[],L=0;L<u.length;L+=3){var Z=u[L++].split("\n");h.push(Z[0]);for(var y=1;y<Z.length;y++)h.push({K:"br"}),h.push(Z[y]);L<u.length&&h.push({K:"a",J:{href:u[L],target:u[L+1]},dw:u[L+2]})}return{K:"span",Z:h}};
EE=function(u,h,L,Z,y,R,p){Z=Z===void 0?!1:Z;y=y===void 0?!1:y;p=p===void 0?!0:p;y||(y=u.api.L().B);var J=u.api.getVideoData();h=g.cI(g.b5[h]||"",Z?{CPN:J.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);Z=[];R&&Z.push({K:"h2",dw:R});Z.push(h[0]);p&&Z.push({K:"br"});Z.push({K:"a",J:{href:L,target:y?"_blank":null},U:"ytp-error-link",dw:h[2]});u.X=!0;Z.push(h[4]);return{K:"span",Z:Z}};
wHR=function(u,h){for(var L=u.element.getElementsByTagName("a"),Z=0;Z<L.length;Z++){var y=u.W(L[Z],"click",h);u.keys.push(y)}};
eow=function(u){for(var h=0;h<u.keys.length;h++)u.FJ(u.keys[h]);u.keys=[]};
ail=function(u){g.a.call(this,{K:"div",U:"ytp-paid-content-overlay",J:{"aria-live":"assertive","aria-atomic":"true"}});this.D=u;this.videoId=null;this.X=!1;this.innertubeCommand=this.ex=this.G=null;var h=u.L();u.j("enable_new_paid_product_placement")&&!g.wS(h)?(this.N=new g.a({K:"a",U:"ytp-paid-content-overlay-link",J:{href:"{{href}}",target:"_blank"},Z:[{K:"div",U:"ytp-paid-content-overlay-icon",dw:"{{icon}}"},{K:"div",U:"ytp-paid-content-overlay-text",dw:"{{text}}"},{K:"div",U:"ytp-paid-content-overlay-chevron",
dw:"{{chevron}}"}]}),this.W(this.N.element,"click",this.onClick)):this.N=new g.a({K:"div",CI:["ytp-button","ytp-paid-content-overlay-text"],dw:"{{text}}"});this.B=new g.kS(this.N,250,!1,100);g.V(this,this.N);this.N.Og(this.element);g.V(this,this.B);this.D.createServerVe(this.element,this);this.W(u,"videodatachange",this.onVideoDataChange);this.W(u,"presentingplayerstatechange",this.Q1)};
t3R=function(u,h){var L=wea(h),Z=egw(h);if(!h.Th||!u.D.Hm())if(u.G||u.D.j("enable_paid_content_overlay_bugfix")){if(h.videoId&&h.videoId!==u.videoId){var y;(y=u.G)==null||g.u6(y);!u.D.j("enable_paid_content_overlay_bugfix")||L&&Z?(u.videoId=h.videoId,u.X=!!Z,u.X&&L&&$ln(u,Z,L,h)):u.X=!1}}else L&&Z&&!u.D.j("enable_paid_content_overlay_bugfix")&&$ln(u,Z,L,h)};
$ln=function(u,h,L,Z){u.G&&u.G.dispose();u.G=new g.EM(u.aP,h,u);g.V(u,u.G);Z=Dy(Z);h=Z==null?void 0:Z.navigationEndpoint;var y;Z=Z==null?void 0:(y=Z.icon)==null?void 0:y.iconType;var R;y=(R=g.n(h,g.HL))==null?void 0:R.url;u.D.setTrackingParams(u.element,(h==null?void 0:h.clickTrackingParams)||null);h&&!y?(u.innertubeCommand=h,y="#!"):u.innertubeCommand=null;var p;u.N.update({href:(p=y)!=null?p:"#",text:L,icon:Z==="MONEY_HAND"?{K:"svg",J:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},
Z:[{K:"path",J:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
fill:"white"}}]}:null,chevron:y||u.innertubeCommand?g.PL():null})};
WEL=function(u,h){u.G&&(g.F(h,8)&&u.X?(u.X=!1,u.VF(),u.G.start()):(g.F(h,2)||g.F(h,64))&&u.videoId&&(u.videoId=null))};
k_=function(u){g.a.call(this,{K:"div",U:"ytp-spinner",Z:[En(),{K:"div",U:"ytp-spinner-message",dw:"If playback doesn't begin shortly, try restarting your device."}]});this.api=u;this.message=this.BX("ytp-spinner-message");this.G=new g.EM(this.show,500,this);g.V(this,this.G);this.W(u,"presentingplayerstatechange",this.onStateChange);this.W(u,"playbackstalledatstart",this.N);this.Sq(u.getPlayerStateObject())};
gI=function(u){var h=[{K:"div",CI:["ytp-unmute-icon"],Z:[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{K:"div",CI:["ytp-unmute-text"],dw:"Tap to unmute"}];h.push({K:"div",CI:["ytp-unmute-box"],Z:[]});g.NT.call(this,u,{K:"button",CI:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],Z:[{K:"div",U:"ytp-unmute-inner",Z:h}]},100);this.G=this.clicked=!1;this.api=u;this.api.createClientVe(this.element,this,51663);this.W(u,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.W(u,"presentingplayerstatechange",this.TN);this.listen("click",this.onClick,this);u=u.isMutedByMutedAutoplay()&&
!g.MW(this.api.L());this.Ay(u);u&&FEi(this);this.X=u};
FEi=function(u){u.G||(u.G=!0,u.api.logVisibility(u.element,!0))};
g.ul=function(u){g.UN.call(this);var h=this;this.api=u;this.sY=!1;this.Qx=null;this.xA=!1;this.Vs=null;this.mq=this.U0=!1;this.gF=this.K4=null;this.KQ=NaN;this.BR=this.mV=!1;this.iH=0;this.mw=[];this.lz=!1;this.Hi={height:0,width:0};this.gJ=480;this.nWI=["ytp-player-content","html5-endscreen","ytp-overlay"];this.ow={hg:!1};var L=u.L(),Z=u.m_();this.Hi=u.getPlayerSize();this.X7=new g.EM(this.dY,0,this);g.V(this,this.X7);L.disableOrganicUi||(this.Ed=new g.tZ(u),g.V(this,this.Ed),g.XC(u,this.Ed.element,
4));if(bYn(this)){var y=new k_(u);g.V(this,y);y=y.element;g.XC(u,y,4)}var R=u.getVideoData();this.xJ=new dli(Z,function(J){return h.zC(J)},R,L.Be,!1);
g.V(this,this.xJ);this.xJ.subscribe("autohideupdate",this.W0,this);if(!L.disablePaidContentOverlay){var p=new ail(u);g.V(this,p);g.XC(u,p.element,4)}this.O6=new gI(u);g.V(this,this.O6);g.XC(this.api,this.O6.element,2);this.JD=this.api.isMutedByMutedAutoplay();this.W(u,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.k7=new g.EM(this.nA,200,this);g.V(this,this.k7);this.wj=R.videoId;this.o$=new g.EM(function(){h.iH=0},350);
g.V(this,this.o$);this.oo=new g.EM(function(){h.BR||Esi(h)},350,this);
g.V(this,this.oo);R=u.getRootNode();R.setAttribute("aria-label","YouTube Video Player");switch(L.color){case "white":g.yN(R,"ytp-color-white")}this.W(u,"appresize",this.QZ);this.W(u,"presentingplayerstatechange",this.TN);this.W(u,"videodatachange",this.onVideoDataChange);this.W(u,"videoplayerreset",this.xmI);this.W(u,"autonavvisibility",function(){h.FP()});
this.W(u,"sizestylechange",function(){h.FP()});
this.W(Z,"click",this.TdA,this);this.W(Z,"dblclick",this.yqI,this);this.W(Z,"mousedown",this.bWX,this);L.Ca&&(this.W(Z,"gesturechange",this.cqa,this),this.W(Z,"gestureend",this.avX,this));this.Lj=[Z.Nz];this.Ed&&this.Lj.push(this.Ed.element);y&&this.Lj.push(y);this.api.j("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(Z.element,this,247482),this.api.logVisibility(Z.element,!0))};
kJL=function(u,h){if(!h)return!1;var L=u.api.yQ();if(L.i$()&&(L=L.lP())&&g.ZO(L,h))return L.controls;for(L=0;L<u.Lj.length;L++)if(g.ZO(u.Lj[L],h))return!1;L=g.C(u.nWI);for(var Z=L.next();!Z.done;Z=L.next())if(g.Zx(h,Z.value))return!1;return h===u.api.getRootNode()?!1:!0};
gse=function(u){var h=u.api.getPresentingPlayerType()===2&&(u.api.m_().UP||u.api.L().disableOrganicUi||!1)&&u.api.L().N&&aY&&jx>=11;u=u.api.L().S&&aY;return!(!h&&!u)};
hR=function(u,h){return!u.api.isInline()&&!kJL(u,St(h))&&g.li(h)};
Esi=function(u){u.xJ.Bc();if(u.U0&&u.mq)u.mq=!1;else if(!u.api.L().vX&&!u.t9()){var h=u.api.getPlayerStateObject();g.F(h,2)&&g.Pf(u.api)||u.lZ(h);!u.api.L().Ca||h.isCued()||g.F(h,1024)?u.nA():u.k7.isActive()?(u.tD(),u.k7.stop()):u.k7.start()}};
uwl=function(u,h){var L;if((L=u.api.getVideoData())==null?0:L.mutedAutoplay){var Z,y;if((Z=h.target)==null?0:(y=Z.className)==null?0:y.includes("ytp-info-panel"))return!1}return g.li(h)&&u.api.isMutedByMutedAutoplay()?(u.api.unMute(),u.api.getPresentingPlayerType()===2&&u.api.playVideo(),h=u.api.getPlayerStateObject(),!g.F(h,4)||g.F(h,8)||g.F(h,2)||u.nA(),!0):!1};
j_a=function(u,h,L){u.api.isFullscreen()?L<1-h&&u.api.toggleFullscreen():L>1+h&&u.api.toggleFullscreen()};
bYn=function(u){var h=sJ()&&Va()>=67&&!u.api.L().S;u=u.api.L().disableOrganicUi;return!g.nP("tizen")&&!aV&&!h&&!u};
Ls=function(u,h){h=h===void 0?2:h;g.yV.call(this);this.api=u;this.G=null;this.Aq=new vD(this);g.V(this,this.Aq);this.N=Rvi;this.Aq.W(this.api,"presentingplayerstatechange",this.xO);this.G=this.Aq.W(this.api,"progresssync",this.cj);this.pm=h;this.pm===1&&this.cj()};
g.ZY=function(u){g.a.call(this,{K:"div",Z:[{K:"div",U:"ytp-bezel-text-wrapper",Z:[{K:"div",U:"ytp-bezel-text",dw:"{{title}}"}]},{K:"div",U:"ytp-bezel",J:{role:"status","aria-label":"{{label}}"},Z:[{K:"div",U:"ytp-bezel-icon",dw:"{{icon}}"}]}]});this.D=u;this.N=new g.EM(this.show,10,this);u=this.D.j("delhi_modern_web_player")?1E3:500;this.G=new g.EM(this.hide,u,this);g.V(this,this.N);g.V(this,this.G);this.hide()};
Re=function(u,h,L){if(h<=0){L=TC();h="muted";var Z=0}else L=L?{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,J:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,J:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
fill:"#fff"}}]},Z=Math.floor(h),h=Z+"volume";y9(u,L,h,Z+"%")};
hts=function(u,h){h=h?{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:l3b();var L=u.D.getPlaybackRate(),Z=g.cI("Speed is $RATE",{RATE:String(L)});y9(u,h,Z,L+"x")};
L91=function(u,h){h=h?"Subtitles/closed captions on":"Subtitles/closed captions off";y9(u,jd1(),h)};
y9=function(u,h,L,Z){Z=Z===void 0?"":Z;u.updateValue("label",L===void 0?"":L);u.updateValue("icon",h);g.u6(u.G);u.N.start();u.updateValue("title",Z);g.JW(u.element,"ytp-bezel-text-hide",!Z)};
Z1n=function(u,h){g.a.call(this,{K:"button",CI:["ytp-button","ytp-cards-button"],J:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.MW(u.L()))},Z:[{K:"span",U:"ytp-cards-button-icon-default",Z:[{K:"div",U:"ytp-cards-button-icon",Z:[u.L().j("player_new_info_card_format")?vwl():{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{K:"div",U:"ytp-cards-button-title",dw:"Info"}]},{K:"span",U:"ytp-cards-button-icon-shopping",Z:[{K:"div",U:"ytp-cards-button-icon",Z:[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",U:"ytp-svg-shadow",J:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{K:"path",U:"ytp-svg-fill",J:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{K:"path",U:"ytp-svg-shadow-fill",J:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{K:"div",
U:"ytp-cards-button-title",dw:"Shopping"}]}]});this.D=u;this.X=h;this.G=null;this.N=new g.kS(this,250,!0,100);g.V(this,this.N);g.JW(this.X,"ytp-show-cards-title",g.MW(u.L()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.yya);this.Xz(!0)};
y9V=function(u,h){g.a.call(this,{K:"div",U:"ytp-cards-teaser",Z:[{K:"div",U:"ytp-cards-teaser-box"},{K:"div",U:"ytp-cards-teaser-text",Z:u.L().j("player_new_info_card_format")?[{K:"button",U:"ytp-cards-teaser-info-icon",J:{"aria-label":"Show cards","aria-haspopup":"true"},Z:[vwl()]},{K:"span",U:"ytp-cards-teaser-label",dw:"{{text}}"},{K:"button",U:"ytp-cards-teaser-close-button",J:{"aria-label":"Close"},Z:[g.Cu()]}]:[{K:"span",U:"ytp-cards-teaser-label",dw:"{{text}}"}]}]});var L=this;this.D=u;this.bS=
h;this.B=new g.kS(this,250,!1,250);this.G=null;this.S=new g.EM(this.sVX,300,this);this.V=new g.EM(this.Wz7,2E3,this);this.C=[];this.N=null;this.Y=new g.EM(function(){L.element.style.margin="0"},250);
this.onClickCommand=this.X=null;g.V(this,this.B);g.V(this,this.S);g.V(this,this.V);g.V(this,this.Y);u.L().j("player_new_info_card_format")?(g.yN(u.getRootNode(),"ytp-cards-teaser-dismissible"),this.W(this.BX("ytp-cards-teaser-close-button"),"click",this.m6),this.W(this.BX("ytp-cards-teaser-info-icon"),"click",this.RU),this.W(this.BX("ytp-cards-teaser-label"),"click",this.RU)):this.listen("click",this.RU);this.W(h.element,"mouseover",this.IW);this.W(h.element,"mouseout",this.Gc);this.W(u,"cardsteasershow",
this.mrA);this.W(u,"cardsteaserhide",this.aP);this.W(u,"cardstatechange",this.Mj);this.W(u,"presentingplayerstatechange",this.Mj);this.W(u,"appresize",this.HE);this.W(u,"onShowControls",this.HE);this.W(u,"onHideControls",this.pw);this.listen("mouseenter",this.e$)};
Rtf=function(u){g.a.call(this,{K:"button",CI:[ps.BUTTON,ps.TITLE_NOTIFICATIONS],J:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},Z:[{K:"div",U:ps.TITLE_NOTIFICATIONS_ON,J:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},Z:[g.QV()]},{K:"div",U:ps.TITLE_NOTIFICATIONS_OFF,J:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},Z:[{K:"svg",J:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},Z:[{K:"path",J:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});
this.api=u;this.G=!1;u.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")};
pJY=function(u,h){u.G=h;u.element.classList.toggle(ps.NOTIFICATIONS_ENABLED,u.G);var L=u.api.getVideoData();L?(h=h?L.RT:L.IT)?(u=u.api.L0())?e$(u,h):g.UZ(Error("No innertube service available when updating notification preferences.")):g.UZ(Error("No update preferences command available.")):g.UZ(Error("No video data when updating notification preferences."))};
J9Y=function(u,h,L){var Z=Z===void 0?800:Z;var y=y===void 0?600:y;var R=document.location.protocol;u=S6a(R+"//"+u+"/signin?context=popup","feature",h,"next",R+"//"+location.hostname+"/post_login");K9n(u,L,Z,y)};
K9n=function(u,h,L,Z){L=L===void 0?800:L;Z=Z===void 0?600:Z;if(u=g.zx(window,u,"loginPopup","width="+L+",height="+Z+",resizable=yes,scrollbars=yes"))QJj(function(){h()}),u.moveTo((screen.width-L)/2,(screen.height-Z)/2)};
g.Ks=function(u,h,L,Z,y,R,p,J,O,f,D,c){u=u.charAt(0)+u.substring(1).toLowerCase();L=L.charAt(0)+L.substring(1).toLowerCase();if(h==="0"||h==="-1")h=null;if(Z==="0"||Z==="-1")Z=null;var I=D.L(),A=I.userDisplayName&&g.v$(I);g.a.call(this,{K:"div",CI:["ytp-button","ytp-sb"],Z:[{K:"div",U:"ytp-sb-subscribe",J:A?{title:g.cI("Subscribe as $USER_NAME",{USER_NAME:I.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":tz(I),"data-tooltip-opaque":String(g.MW(I)),tabindex:"0",role:"button"}:
{"aria-label":"Subscribe to channel"},Z:[{K:"div",U:"ytp-sb-text",Z:[{K:"div",U:"ytp-sb-icon"},u]},h?{K:"div",U:"ytp-sb-count",dw:h}:""]},{K:"div",U:"ytp-sb-unsubscribe",J:A?{title:g.cI("Subscribed as $USER_NAME",{USER_NAME:I.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":tz(I),"data-tooltip-opaque":String(g.MW(I)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},Z:[{K:"div",U:"ytp-sb-text",Z:[{K:"div",U:"ytp-sb-icon"},L]},Z?{K:"div",U:"ytp-sb-count",
dw:Z}:""]}],J:{"aria-live":"polite"}});var x=this;this.channelId=p;this.D=D;this.X=c;var Q=this.BX("ytp-sb-subscribe"),S=this.BX("ytp-sb-unsubscribe");R&&g.yN(this.element,"ytp-sb-classic");if(y){J?this.G():this.N();var v=function(){if(I.XB){var U=x.channelId;if(O||f){var z={c:U};var d;g.X9.isInitialized()&&(d=MMn(z));z=d||"";if(d=D.getVideoData())if(d=d.subscribeCommand){var W=D.L0();W?(e$(W,d,{botguardResponse:z,feature:O}),D.hB("SUBSCRIBE",U)):g.UZ(Error("No innertube service available when updating subscriptions."))}else g.UZ(Error("No subscribe command in videoData."));
else g.UZ(Error("No video data available when updating subscription."))}S.focus();S.removeAttribute("aria-hidden");Q.setAttribute("aria-hidden","true")}else J9Y(g.B$(x.D.L()),"sb_button",x.B)},T=function(){var U=x.channelId;
if(O||f){var z=D.getVideoData();e$(D.L0(),z.unsubscribeCommand,{feature:O});D.hB("UNSUBSCRIBE",U)}Q.focus();Q.removeAttribute("aria-hidden");S.setAttribute("aria-hidden","true")};
this.W(Q,"click",v);this.W(S,"click",T);this.W(Q,"keypress",function(U){U.keyCode===13&&v(U)});
this.W(S,"keypress",function(U){U.keyCode===13&&T(U)});
this.W(D,"SUBSCRIBE",this.G);this.W(D,"UNSUBSCRIBE",this.N);this.X&&A&&(mnf(D),Iv(D,Q,this),Iv(D,S,this))}else g.yN(Q,"ytp-sb-disabled"),g.yN(S,"ytp-sb-disabled")};
Dde=function(u){g.a.call(this,{K:"div",U:"ytp-title-channel",Z:[{K:"div",U:"ytp-title-beacon"},{K:"a",U:"ytp-title-channel-logo",J:{href:"{{channelLink}}",target:u.L().Y,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{K:"div",U:"ytp-title-expanded-overlay",J:{"aria-hidden":"{{flyoutUnfocusable}}"},Z:[{K:"div",U:"ytp-title-expanded-heading",Z:[{K:"div",U:"ytp-title-expanded-title",Z:[{K:"a",dw:"{{expandedTitle}}",J:{href:"{{channelTitleLink}}",target:u.L().Y,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{K:"div",U:"ytp-title-expanded-subtitle",dw:"{{expandedSubtitle}}",J:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var h=this;this.api=u;this.channel=this.BX("ytp-title-channel");this.N=this.BX("ytp-title-channel-logo");this.channelName=this.BX("ytp-title-expanded-title");this.C=this.BX("ytp-title-expanded-overlay");this.X=this.G=this.subscribeButton=null;this.B=!1;u.createClientVe(this.N,this,36925);u.createClientVe(this.channelName,this,
37220);g.MW(this.api.L())&&O1s(this);this.W(u,"videodatachange",this.kI);this.W(u,"videoplayerreset",this.kI);this.W(this.channelName,"click",function(L){h.api.logClick(h.channelName);g.zx(window,fTV(h));L.preventDefault()});
this.W(this.N,"click",this.GdX);this.kI()};
c9l=function(u){if(!u.api.L().eq){var h=u.api.getVideoData(),L=new g.Ks("Subscribe",null,"Subscribed",null,!0,!1,h.Xy,h.subscribed,"channel_avatar",null,u.api,!0);u.api.createServerVe(L.element,u);var Z;u.api.setTrackingParams(L.element,((Z=h.subscribeButtonRenderer)==null?void 0:Z.trackingParams)||null);u.W(L.element,"click",function(){u.api.logClick(L.element)});
u.subscribeButton=L;g.V(u,u.subscribeButton);u.subscribeButton.Og(u.C);u.subscribeButton.hide();var y=new Rtf(u.api);u.G=y;g.V(u,y);y.Og(u.C);y.hide();u.W(u.api,"SUBSCRIBE",function(){h.Cg&&(y.show(),u.api.logVisibility(y.element,!0))});
u.W(u.api,"UNSUBSCRIBE",function(){h.Cg&&(y.hide(),u.api.logVisibility(y.element,!1),pJY(y,!1))})}};
O1s=function(u){var h=u.api.L();c9l(u);u.updateValue("flyoutUnfocusable","true");u.updateValue("channelTitleFocusable","-1");u.updateValue("shouldHideExpandedTitleForA11y","true");u.updateValue("shouldHideExpandedSubtitleForA11y","true");h.N||h.jd||(u.W(u.channel,"mouseenter",u.Pu),u.W(u.channel,"mouseleave",u.SJ),u.W(u.channel,"focusin",u.Pu),u.W(u.channel,"focusout",function(L){u.channel.contains(L.relatedTarget)||u.SJ()}));
u.X=new g.EM(function(){u.isExpanded()&&(u.api.logVisibility(u.channelName,!1),u.subscribeButton&&(u.subscribeButton.hide(),u.api.logVisibility(u.subscribeButton.element,!1)),u.G&&(u.G.hide(),u.api.logVisibility(u.G.element,!1)),u.channel.classList.remove("ytp-title-expanded"),u.channel.classList.add("ytp-title-show-collapsed"))},500);
g.V(u,u.X);u.W(u.channel,ITV,function(){A9e(u)});
u.W(u.api,"onHideControls",u.mD);u.W(u.api,"appresize",u.mD);u.W(u.api,"fullscreentoggled",u.mD)};
A9e=function(u){u.channel.classList.remove("ytp-title-show-collapsed");u.channel.classList.remove("ytp-title-show-expanded")};
xdf=function(u){var h=u.api.getPlayerSize();return g.MW(u.api.L())&&h.width>=524};
fTV=function(u){var h=u.api.L(),L=u.api.getVideoData(),Z=g.W$(h)+L.Ca;g.Wz(L)&&(Z="https://music.youtube.com"+L.Ca);if(!g.MW(h))return Z;h={};g.jq(u.api,"addEmbedsConversionTrackingParams",[h]);return g.sr(Z,h)};
JR=function(u){var h=g.zF({"aria-haspopup":"true"});g.Bf.call(this,h,u);this.listen("keydown",this.G)};
OI=function(u,h){u.element.setAttribute("aria-haspopup",String(h))};
PYa=function(u,h){g.a.call(this,{K:"div",U:"ytp-user-info-panel",J:{"aria-label":"User info"},Z:u.L().XB&&!u.j("embeds_web_always_enable_signed_out_state")?[{K:"div",U:"ytp-user-info-panel-icon",dw:"{{icon}}"},{K:"div",U:"ytp-user-info-panel-content",Z:[{K:"div",U:"ytp-user-info-panel-info",J:{tabIndex:"{{userInfoFocusable}}",role:"text"},dw:"{{watchingAsUsername}}"},{K:"div",U:"ytp-user-info-panel-info",J:{tabIndex:"{{userInfoFocusable2}}",role:"text"},dw:"{{watchingAsEmail}}"}]}]:[{K:"div",U:"ytp-user-info-panel-icon",
dw:"{{icon}}"},{K:"div",U:"ytp-user-info-panel-content",Z:[{K:"div",Z:[{K:"text",J:{tabIndex:"{{userInfoFocusable}}"},dw:"Signed out"}]},{K:"div",U:"ytp-user-info-panel-login",Z:[{K:"a",J:{tabIndex:"{{userInfoFocusable2}}",role:"button"},dw:u.L().eq?"":"Sign in on YouTube"}]}]}]});this.pI=u;this.G=h;u.L().XB||u.L().eq||this.W(this.BX("ytp-user-info-panel-login"),"click",this.IR);this.closeButton=new g.a({K:"button",CI:["ytp-collapse","ytp-button"],J:{title:"Close"},Z:[g.qh()]});this.closeButton.Og(this.element);
g.V(this,this.closeButton);this.W(window,"blur",this.hide);this.W(document,"click",this.GV);this.kI()};
Mdn=function(u,h,L){g.Vy.call(this,u);this.Ka=h;this.Wh=L;this.getVideoUrl=new JR(6);this.Js=new JR(5);this.L3=new JR(4);this.IV=new JR(3);this.W2=new g.Bf(g.zF({href:"{{href}}",target:this.D.L().Y},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.Bf(g.zF(),1,"Stats for nerds");this.dM=new g.OD({K:"div",CI:["ytp-copytext","ytp-no-contextmenu"],J:{draggable:"false",tabindex:"1"},dw:"{{text}}"});this.SP=new dW(this.D,this.dM);this.tT=this.dc=null;g.MW(this.D.L())&&(this.closeButton=
new g.a({K:"button",CI:["ytp-collapse","ytp-button"],J:{title:"Close"},Z:[g.qh()]}),g.V(this,this.closeButton),this.closeButton.Og(this.element),this.closeButton.listen("click",this.Wl,this));g.MW(this.D.L())&&(this.nY=new g.Bf(g.zF(),8,"Account"),g.V(this,this.nY),this.aV(this.nY,!0),this.nY.listen("click",this.Soy,this),u.createClientVe(this.nY.element,this.nY,137682));this.D.L().B6&&(this.tV=new t7("Loop",7),g.V(this,this.tV),this.aV(this.tV,!0),this.tV.listen("click",this.pjX,this),u.createClientVe(this.tV.element,
this.tV,28661));g.V(this,this.getVideoUrl);this.aV(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.wjd,this);u.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.V(this,this.Js);this.aV(this.Js,!0);this.Js.listen("click",this.TfH,this);u.createClientVe(this.Js.element,this.Js,28660);g.V(this,this.L3);this.aV(this.L3,!0);this.L3.listen("click",this.CFX,this);u.createClientVe(this.L3.element,this.L3,28658);g.V(this,this.IV);this.aV(this.IV,!0);this.IV.listen("click",this.vFd,
this);g.V(this,this.W2);this.aV(this.W2,!0);this.W2.listen("click",this.Fva,this);g.V(this,this.showVideoInfo);this.aV(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.qoI,this);g.V(this,this.dM);this.dM.listen("click",this.NfB,this);g.V(this,this.SP);h=document.queryCommandSupported&&document.queryCommandSupported("copy");taR("Chromium")>=43&&(h=!0);taR("Firefox")<=40&&(h=!1);h&&(this.dc=new g.a({K:"textarea",U:"ytp-html5-clipboard",J:{readonly:"",tabindex:"-1"}}),g.V(this,this.dc),
this.dc.Og(this.element));var Z;(Z=this.nY)==null||Z.setIcon(own());var y;(y=this.tV)==null||y.setIcon({K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{K:"path",J:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.IV.setIcon({K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{K:"path",J:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
fill:"white","fill-rule":"evenodd"}}]});this.W2.setIcon(SWf());this.showVideoInfo.setIcon(XCe());this.W(u,"onLoopChange",this.onLoopChange);this.W(u,"videodatachange",this.onVideoDataChange);CYs(this);this.O0(this.D.getVideoData())};
fs=function(u,h){var L=!1;if(u.dc){var Z=u.dc.element;Z.value=h;Z.select();try{L=document.execCommand("copy")}catch(y){}}L?u.Ka.aP():(u.dM.QF(h,"text"),g.wW(u.Ka,u.SP),kq(u.dM.element),u.dc&&(u.dc=null,CYs(u)));return L};
CYs=function(u){var h=!!u.dc;g.r7(u.IV,h?"Copy debug info":"Get debug info");OI(u.IV,!h);g.r7(u.L3,h?"Copy embed code":"Get embed code");OI(u.L3,!h);g.r7(u.getVideoUrl,h?"Copy video URL":"Get video URL");OI(u.getVideoUrl,!h);g.r7(u.Js,h?"Copy video URL at current time":"Get video URL at current time");OI(u.Js,!h);u.L3.setIcon(h?iM1():null);u.getVideoUrl.setIcon(h?Mh():null);u.Js.setIcon(h?Mh():null)};
i1s=function(u){return g.MW(u.D.L())?u.nY:u.tV};
lTn=function(u,h){g.sB.call(this,u);this.Wh=h;this.B=new g.UN(this);this.RH=new g.EM(this.nvI,1E3,this);this.XB=this.X=null;g.V(this,this.B);g.V(this,this.RH);u.createClientVe(this.element,this,28656);g.yN(this.element,"ytp-contextmenu");Q_w(this);this.hide()};
Q_w=function(u){g.Tj(u.B);var h=u.D.L();h.playerStyle==="gvn"||h.N||h.jd||(h=u.D.m_(),u.B.W(h,"contextmenu",u.R7d),u.B.W(h,"touchstart",u.RR,null,!0),u.B.W(h,"touchmove",u.ST,null,!0),u.B.W(h,"touchend",u.ST,null,!0))};
SQl=function(u){u.D.isFullscreen()?g.XC(u.D,u.element,10):u.Og(Un(u).body)};
DY=function(u,h,L){L=L===void 0?240:L;g.a.call(this,{K:"button",CI:["ytp-button","ytp-copylink-button"],J:{title:"{{title-attr}}","data-tooltip-opaque":String(g.MW(u.L()))},Z:[{K:"div",U:"ytp-copylink-icon",dw:"{{icon}}"},{K:"div",U:"ytp-copylink-title",dw:"Copy link",J:{"aria-hidden":"true"}}]});this.api=u;this.G=h;this.N=L;this.visible=!1;this.tooltip=this.G.l2();h=u.L();this.tooltip.element.setAttribute("aria-live","polite");g.JW(this.element,"ytp-show-copylink-title",g.MW(h));u.createClientVe(this.element,
this,86570);this.listen("click",this.onClick);this.W(u,"videodatachange",this.kI);this.W(u,"videoplayerreset",this.kI);this.W(u,"appresize",this.kI);this.kI();this.addOnDisposeCallback(g.cf(this.tooltip,this.element))};
XJs=function(u){var h=u.api.L(),L=u.api.getVideoData(),Z=u.api.m_().getPlayerSize().width;h=h.X;return!!L.videoId&&Z>=u.N&&L.r6&&!g.$H(L)&&!u.api.isEmbedsShortsMode()&&!h};
vnl=function(u){u.updateValue("icon",Am());if(u.api.L().N)u.tooltip.KO(u.element,"Link copied to clipboard");else{u.updateValue("title-attr","Link copied to clipboard");u.tooltip.g2();u.tooltip.KO(u.element);var h=u.listen("mouseleave",function(){u.FJ(h);u.kI();u.tooltip.CY()})}};
qQn=function(u,h){return g.G(function(L){if(L.G==1)return g.Qn(L,2),g.N(L,navigator.clipboard.writeText(h),4);if(L.G!=2)return L.return(!0);g.Xf(L);var Z=L.return,y=!1,R=g.kJ("TEXTAREA");R.value=h;R.setAttribute("readonly","");var p=u.api.getRootNode();p.appendChild(R);if(ai){var J=window.getSelection();J.removeAllRanges();var O=document.createRange();O.selectNodeContents(R);J.addRange(O);R.setSelectionRange(0,h.length)}else R.select();try{y=document.execCommand("copy")}catch(f){}p.removeChild(R);
return Z.call(L,y)})};
cV=function(u){g.a.call(this,{K:"div",U:"ytp-doubletap-ui-legacy",Z:[{K:"div",U:"ytp-doubletap-fast-forward-ve"},{K:"div",U:"ytp-doubletap-rewind-ve"},{K:"div",U:"ytp-doubletap-static-circle",Z:[{K:"div",U:"ytp-doubletap-ripple"}]},{K:"div",U:"ytp-doubletap-overlay-a11y"},{K:"div",U:"ytp-doubletap-seek-info-container",Z:[{K:"div",U:"ytp-doubletap-arrows-container",Z:[{K:"span",U:"ytp-doubletap-base-arrow"},{K:"span",U:"ytp-doubletap-base-arrow"},{K:"span",U:"ytp-doubletap-base-arrow"}]},{K:"div",
U:"ytp-doubletap-tooltip",Z:[{K:"div",U:"ytp-seek-icon-text-container",Z:[{K:"div",U:"ytp-seek-icon",dw:"{{seekIcon}}"},{K:"div",U:"ytp-chapter-seek-text-legacy",dw:"{{seekText}}"}]},{K:"div",U:"ytp-doubletap-tooltip-label",dw:"{{seekTime}}"}]}]}]});this.D=u;this.B=new g.EM(this.show,10,this);this.N=new g.EM(this.hide,700,this);this.V=this.X=0;this.AB=this.C=!1;this.G=this.BX("ytp-doubletap-static-circle");g.V(this,this.B);g.V(this,this.N);this.hide();this.S=this.BX("ytp-doubletap-fast-forward-ve");
this.Y=this.BX("ytp-doubletap-rewind-ve");this.D.createClientVe(this.S,this,28240);this.D.createClientVe(this.Y,this,28239);this.D.logVisibility(this.S,!0);this.D.logVisibility(this.Y,!0);this.C=u.j("web_show_cumulative_seek_time");this.AB=u.j("web_center_static_circles")};
Ie=function(u,h,L,Z){if(Z=Z===void 0?null:Z){var y=h===-1?u.Y.visualElement:u.S.visualElement;Z={seekData:Z};var R=g.S9();R&&g.EC(bs)(void 0,R,y,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",Z,void 0)}u.X=h===u.V?u.X+L:L;u.V=h;y=u.D.m_().getPlayerSize();u.C?u.N.stop():g.u6(u.N);u.B.start();u.element.setAttribute("data-side",h===-1?"back":"forward");g.yN(u.element,"ytp-time-seeking");u.G.style.width="110px";u.G.style.height="110px";Z=y.width*.1-15;h===1?u.AB?(u.G.style.right=Z+"px",u.G.style.left=""):
(u.G.style.right="",u.G.style.left=y.width*.8-30+"px"):h===-1&&(u.AB?(u.G.style.right="",u.G.style.left=Z+"px"):(u.G.style.right="",u.G.style.left=y.width*.1-15+"px"));u.G.style.top=y.height*.5+15+"px";T6w(u,u.C?u.X:L)};
YQn=function(u,h,L,Z){Z=Z===void 0?null:Z;g.u6(u.N);u.B.start();switch(h){case -1:h="back";break;case 1:h="forward";break;default:h=""}u.element.setAttribute("data-side",h);u.G.style.width="0";u.G.style.height="0";g.yN(u.element,"ytp-chapter-seek");u.updateValue("seekText",L);u.updateValue("seekTime","");L=u.BX("ytp-seek-icon");if(Z){a:if(Z){switch(Z){case "PREMIUM_STANDALONE":Z={K:"svg",J:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},Z:[{K:"path",J:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ",
fill:"#c00"}},{K:"path",J:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]};
break a;case "PREMIUM_STANDALONE_CAIRO":Z={K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{K:"rect",J:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{K:"rect",J:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{K:"path",J:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z",
fill:"white"}},{K:"defs",Z:[{K:"linearGradient",J:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},Z:[{K:"stop",J:{offset:"0.3","stop-color":"#E1002D"}},{K:"stop",J:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}Z=void 0}else Z=null;u.updateValue("seekIcon",Z);L.style.display="inline-block"}else L.style.display="none"};
T6w=function(u,h){h=g.cI("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:h.toString()});u.updateValue("seekTime",h)};
onn=function(u){mK.call(this,u,!1,!0);this.gw=[];this.iP=[];this.S=!0;this.badge.element.classList.add("ytp-featured-product");this.DI=new g.a({K:"div",U:"ytp-featured-product-open-in-new"});g.V(this,this.DI);this.countdownTimer=new g.a({K:"text",U:"ytp-featured-product-countdown",dw:"{{content}}"});this.countdownTimer.hide();g.V(this,this.countdownTimer);this.N=new g.a({K:"div",U:"ytp-featured-product-trending",Z:[{K:"div",U:"ytp-featured-product-trending-icon"},{K:"text",U:"ytp-featured-product-trending-text",
dw:"{{trendingOffer}}"}]});this.N.hide();g.V(this,this.N);this.overflowButton=new g.a({K:"button",CI:["ytp-featured-product-overflow-icon","ytp-button"],J:{"aria-haspopup":"true"}});this.overflowButton.hide();g.V(this,this.overflowButton);this.V=new g.a({K:"text",U:"ytp-featured-product-exclusive-countdown",dw:"{{content}}",J:{id:"exclusiveCountdown","aria-hidden":"true"}});this.V.hide();g.V(this,this.V);this.C=new g.a({K:"div",U:"ytp-featured-product-exclusive-container",J:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},
Z:[{K:"div",U:"ytp-featured-product-exclusive-badge-container",Z:[{K:"div",U:"ytp-featured-product-exclusive-badge",Z:[{K:"text",U:"ytp-featured-product-exclusive-badge-text",dw:"{{exclusive}}",J:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.V]});this.C.hide();g.V(this,this.C);this.banner=new g.a({K:"a",U:"ytp-featured-product-container",Z:[{K:"div",U:"ytp-featured-product-thumbnail",Z:[{K:"img",J:{src:"{{thumbnail}}"}},this.DI]},{K:"div",U:"ytp-featured-product-details",Z:[{K:"text",U:"ytp-featured-product-title",
dw:"{{title}}"},this.D.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",U:"ytp-featured-product-price-container",J:{"aria-label":"{{priceA11yText}}"},Z:[{K:"text",U:"ytp-featured-product-price-when-promotion-text-enabled",dw:"{{price}}",J:{"aria-hidden":"true"}},{K:"text",U:"ytp-featured-product-promotion-text",dw:"{{promotionText}}",J:{"aria-hidden":"true"}}]}:{K:"div",J:{"aria-label":"{{priceA11yText}}"},Z:[{K:"text",U:"ytp-featured-product-price",dw:"{{price}}",
J:{"aria-hidden":"true"}},{K:"text",U:"ytp-featured-product-sales-original-price",dw:"{{salesOriginalPrice}}",J:{"aria-hidden":"true"}},{K:"text",U:"ytp-featured-product-price-drop-reference-price",dw:"{{priceDropReferencePrice}}",J:{"aria-hidden":"true"}}]},this.D.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",U:"ytp-featured-product-when-promotion-text-enabled",Z:[{K:"text",U:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",dw:"{{affiliateDisclaimer}}"},
this.N,{K:"text",U:"ytp-featured-product-vendor-when-promotion-text-enabled",dw:"{{vendor}}"}]}:{K:"div",Z:[{K:"text",U:"ytp-featured-product-affiliate-disclaimer",dw:"{{affiliateDisclaimer}}"},this.D.j("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.C:null,this.N,{K:"text",U:"ytp-featured-product-vendor",dw:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.V(this,this.banner);this.banner.Og(this.X.element);this.W(this.D,g.hc("featured_product"),this.U3I);this.W(this.D,
g.L2("featured_product"),this.VN);this.W(this.D,"videodatachange",this.onVideoDataChange);this.W(this.overflowButton.element,"click",this.NN);this.W(u,"featuredproductdismissed",this.jH)};
N6j=function(u){var h,L;u=(h=u.G)==null?void 0:(L=h.bannerData)==null?void 0:L.itemData;var Z,y,R;return(u==null||!u.affiliateDisclaimer)&&(u==null?0:(Z=u.exclusivesData)==null?0:Z.exclusiveOfferLabelText)&&(u==null?0:(y=u.exclusivesData)==null?0:y.expirationTimestampMs)&&(u==null?0:(R=u.exclusivesData)==null?0:R.exclusiveOfferCountdownText)?!0:!1};
GpY=function(u){var h,L,Z,y,R=(h=u.G)==null?void 0:(L=h.bannerData)==null?void 0:(Z=L.itemData)==null?void 0:(y=Z.exclusivesData)==null?void 0:y.expirationTimestampMs;h=(Number(R)-Date.now())/1E3;if(h>0){if(h<604800){var p,J,O,f;L=(p=u.G)==null?void 0:(J=p.bannerData)==null?void 0:(O=J.itemData)==null?void 0:(f=O.exclusivesData)==null?void 0:f.exclusiveOfferCountdownText;if(L!==void 0)for(p=Date.now(),J=g.C(L),O=J.next();!O.done;O=J.next())if(O=O.value,O!==void 0&&O.text!==void 0&&(f=Number(O.textDisplayStartTimestampMs),
!isNaN(f)&&p>=f)){O.insertCountdown?(h=O.text.replace(/\$0/,String(Og({seconds:h}))),u.V.QF(h)):u.V.QF(O.text);u.V.show();break}}var D,c,I,A;u.C.update({exclusive:(D=u.G)==null?void 0:(c=D.bannerData)==null?void 0:(I=c.itemData)==null?void 0:(A=I.exclusivesData)==null?void 0:A.exclusiveOfferLabelText});u.C.show();AR(u);var x;(x=u.mz)==null||x.start()}else UdR(u)};
UdR=function(u){var h;(h=u.mz)==null||h.stop();u.V.hide();u.C.hide();xY(u)};
H1R=function(u){var h,L,Z=(h=u.G)==null?void 0:(L=h.bannerData)==null?void 0:L.itemData;return u.D.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(Z==null||!Z.priceReplacementText)&&(Z==null?0:Z.promotionText)?Z==null?void 0:Z.promotionText.content:null};
r9e=function(u){var h,L,Z=(h=u.G)==null?void 0:(L=h.bannerData)==null?void 0:L.itemData,y,R;if(!(Z!=null&&Z.priceReplacementText||u.D.j("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(Z==null?0:(y=Z.dealsData)==null?0:(R=y.sales)==null?0:R.originalPrice)){var p,J;return Z==null?void 0:(p=Z.dealsData)==null?void 0:(J=p.sales)==null?void 0:J.originalPrice}return null};
B6f=function(u){var h,L,Z=(h=u.G)==null?void 0:(L=h.bannerData)==null?void 0:L.itemData,y,R,p,J;if(!((Z==null?0:Z.priceReplacementText)||u.D.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(Z==null?0:(y=Z.dealsData)==null?0:(R=y.sales)==null?0:R.originalPrice))&&(Z==null?0:(p=Z.dealsData)==null?0:(J=p.priceDrop)==null?0:J.referencePrice)){var O,f;return Z==null?void 0:(O=Z.dealsData)==null?void 0:(f=O.priceDrop)==null?void 0:f.referencePrice}return null};
zt1=function(u){var h,L,Z=(h=u.G)==null?void 0:(L=h.bannerData)==null?void 0:L.itemData;if(Z==null?0:Z.priceReplacementText)return Z==null?void 0:Z.priceReplacementText;if((Z==null?0:Z.promotionText)&&u.D.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var y;return(Z==null?void 0:Z.price)+" "+(Z==null?void 0:(y=Z.promotionText)==null?void 0:y.content)}var R,p;if(Z==null?0:(R=Z.dealsData)==null?0:(p=R.sales)==null?0:p.originalPrice){var J,O;return Z==null?void 0:(J=Z.dealsData)==
null?void 0:(O=J.sales)==null?void 0:O.salesPriceAccessibilityLabel}var f,D;if(Z==null?0:(f=Z.dealsData)==null?0:(D=f.priceDrop)==null?0:D.referencePrice){var c,I;return(Z==null?void 0:Z.price)+" "+(Z==null?void 0:(c=Z.dealsData)==null?void 0:(I=c.priceDrop)==null?void 0:I.referencePrice)}return Z==null?void 0:Z.price};
mdj=function(u){if(u.D.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var h,L,Z;return u.N.BJ?null:(h=u.G)==null?void 0:(L=h.bannerData)==null?void 0:(Z=L.itemData)==null?void 0:Z.vendorName}var y,R,p,J,O,f;return u.N.BJ||u.C.BJ||((y=u.G)==null?0:(R=y.bannerData)==null?0:(p=R.itemData)==null?0:p.affiliateDisclaimer)?null:(J=u.G)==null?void 0:(O=J.bannerData)==null?void 0:(f=O.itemData)==null?void 0:f.vendorName};
VdV=function(u,h){PV(u);if(h){var L=g.$m.getState().entities;L=p7(L,"featuredProductsEntity",h);if(L!=null&&L.productsData){h=[];L=g.C(L.productsData);for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var y=void 0;if((y=Z)!=null&&y.identifier&&Z.featuredSegments){u.gw.push(Z);var R=void 0;y=g.C((R=Z)==null?void 0:R.featuredSegments);for(R=y.next();!R.done;R=y.next()){var p=R.value;R=dde(p.startTimeSec);R!==void 0&&(p=dde(p.endTimeSec),h.push(new g.uW(R*1E3,p===void 0?0x7ffffffffffff:p*1E3,{id:Z.identifier,
namespace:"featured_product"})))}}}u.D.Rl(h)}}};
xY=function(u){if(u.trendingOfferEntityKey){var h=g.$m.getState().entities;if(h=p7(h,"trendingOfferEntity",u.trendingOfferEntityKey)){var L,Z,y;h.encodedSkuId!==((L=u.G)==null?void 0:(Z=L.bannerData)==null?void 0:(y=Z.itemData)==null?void 0:y.encodedOfferSkuId)?AR(u):(u.N.update({trendingOffer:h.shortLabel+" \u2022 "+h.countLabel}),u.N.show(),u.banner.update({vendor:mdj(u)}))}else AR(u)}else AR(u)};
AR=function(u){u.N.hide();u.banner.update({vendor:mdj(u)})};
PV=function(u){u.gw=[];u.VN();u.D.qm("featured_product")};
nnw=function(u){var h,L,Z,y,R=(h=u.G)==null?void 0:(L=h.bannerData)==null?void 0:(Z=L.itemData)==null?void 0:(y=Z.hiddenProductOptions)==null?void 0:y.dropTimestampMs;h=(Number(R)-Date.now())/1E3;u.countdownTimer.QF(Og({seconds:h}));if(h>0){var p;(p=u.La)==null||p.start()}};
s_b=function(u){var h;(h=u.La)==null||h.stop();u.countdownTimer.hide()};
dde=function(u){if(u!==void 0&&u.trim()!==""&&(u=Math.trunc(Number(u.trim())),!(isNaN(u)||u<0)))return u};
tdn=function(u,h,L){g.a.call(this,{K:"div",CI:["ytp-info-panel-action-item"],Z:[{K:"div",U:"ytp-info-panel-action-item-disclaimer",dw:"{{disclaimer}}"},{K:"a",CI:["ytp-info-panel-action-item-button","ytp-button"],J:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},Z:[{K:"div",U:"ytp-info-panel-action-item-icon",dw:"{{icon}}"},{K:"div",U:"ytp-info-panel-action-item-label",dw:"{{label}}"}]}]});this.D=u;this.G=L;this.disclaimer=this.BX("ytp-info-panel-action-item-disclaimer");this.button=
this.BX("ytp-info-panel-action-item-button");this.ih=!1;this.D.createServerVe(this.element,this,!0);this.listen("click",this.onClick);u="";L=g.n(h==null?void 0:h.onTap,rD);var Z=g.n(L,g.HL);this.ih=!1;Z?(u=Z.url||"",u.startsWith("//")&&(u="https:"+u),this.ih=!0,g.Gx(this.button,g.NN(u))):(Z=g.n(L,wJ1))&&!this.G?((u=Z.phoneNumbers)&&u.length>0?(u="sms:"+u[0],Z.messageText&&(u+="?&body="+encodeURI(Z.messageText))):u="",this.ih=!0,g.Gx(this.button,g.NN(u,[etb]))):(L=g.n(L,aTb))&&!this.G&&(u=L.phoneNumber?
"tel:"+L.phoneNumber:"",this.ih=!0,g.Gx(this.button,g.NN(u,[$db])));var y;if(L=(y=h.disclaimerText)==null?void 0:y.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var R;this.update({label:(R=h.bodyText)==null?void 0:R.content,icon:l2(),disclaimer:L})}else{this.disclaimer.style.display="none";var p;this.update({label:(p=h.bodyText)==null?void 0:p.content,icon:l2()})}this.D.setTrackingParams(this.element,h.trackingParams||null);this.ih&&(this.N={externalLinkData:{url:u}})};
W9i=function(u,h){var L=RG();g.NT.call(this,u,{K:"div",U:"ytp-info-panel-detail-skrim",Z:[{K:"div",U:"ytp-info-panel-detail",J:{role:"dialog",id:L},Z:[{K:"div",U:"ytp-info-panel-detail-header",Z:[{K:"div",U:"ytp-info-panel-detail-title",dw:"{{title}}"},{K:"button",CI:["ytp-info-panel-detail-close","ytp-button"],J:{"aria-label":"Close"},Z:[g.Cu()]}]},{K:"div",U:"ytp-info-panel-detail-body",dw:"{{body}}"},{K:"div",U:"ytp-info-panel-detail-items"}]}]},250);this.G=h;this.items=this.BX("ytp-info-panel-detail-items");
this.X=new g.UN(this);this.itemData=[];this.B=L;this.W(this.BX("ytp-info-panel-detail-close"),"click",this.aP);this.W(this.BX("ytp-info-panel-detail-skrim"),"click",this.aP);this.W(this.BX("ytp-info-panel-detail"),"click",function(Z){Z.stopPropagation()});
g.V(this,this.X);this.D.createServerVe(this.element,this,!0);this.W(u,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",u.getVideoData());this.hide()};
F9a=function(u,h){u=g.C(u.itemData);for(var L=u.next();!L.done;L=u.next())L=L.value,L.D.logVisibility(L.element,h)};
kpL=function(u,h){g.a.call(this,{K:"div",U:"ytp-info-panel-preview",J:{"aria-live":"assertive","aria-atomic":"true","aria-owns":h.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.MW(u.L()))},Z:[{K:"div",U:"ytp-info-panel-preview-text",dw:"{{text}}"},{K:"div",U:"ytp-info-panel-preview-chevron",dw:"{{chevron}}"}]});var L=this;this.D=u;this.ex=this.G=this.videoId=null;this.B=this.showControls=this.N=!1;this.W(this.element,"click",function(){u.logClick(L.element);u.t9();GF(h)});
this.X=new g.kS(this,250,!1,100);g.V(this,this.X);this.D.createServerVe(this.element,this,!0);this.W(u,"videodatachange",this.onVideoDataChange);this.W(u,"presentingplayerstatechange",this.MN);this.W(this.D,"paidcontentoverlayvisibilitychange",this.rS);this.W(this.D,"infopaneldetailvisibilitychange",this.rS);var Z=u.getVideoData()||{};b1Y(Z)&&Enb(this,Z);this.W(u,"onShowControls",this.uR);this.W(u,"onHideControls",this.dG)};
Enb=function(u,h){if(!h.Th||!u.D.Hm()){var L=h.HK||1E4,Z=b1Y(h);u.G?h.videoId&&h.videoId!==u.videoId&&(g.u6(u.G),u.videoId=h.videoId,Z?(gni(u,L,h),u.VF()):(u.aP(),u.G.dispose(),u.G=null)):Z&&(h.videoId&&(u.videoId=h.videoId),gni(u,L,h),u.VF())}};
b1Y=function(u){var h,L,Z,y;return!!((h=u.J4)==null?0:(L=h.title)==null?0:L.content)||!!((Z=u.J4)==null?0:(y=Z.bodyText)==null?0:y.content)};
gni=function(u,h,L){u.G&&u.G.dispose();u.G=new g.EM(u.Sua,h,u);g.V(u,u.G);var Z;h=((Z=L.J4)==null?void 0:Z.trackingParams)||null;u.D.setTrackingParams(u.element,h);var y;var R,p;if(L==null?0:(R=L.J4)==null?0:(p=R.title)==null?0:p.content){var J;Z=(y=L.J4)==null?void 0:(J=y.title)==null?void 0:J.content;var O,f;if((O=L.J4)==null?0:(f=O.bodyText)==null?0:f.content)Z+=" \u2022 ";y=Z}else y="";var D,c;L=((D=L.J4)==null?void 0:(c=D.bodyText)==null?void 0:c.content)||"";u.update({text:y+L,chevron:g.PL()})};
uj1=function(u,h){u.G&&(g.F(h,8)?(u.N=!0,u.VF(),u.G.start()):(g.F(h,2)||g.F(h,64))&&u.videoId&&(u.videoId=null))};
Cs=function(u){var h=null;try{h=u.toLocaleString("en",{style:"percent"})}catch(L){h=u.toLocaleString(void 0,{style:"percent"})}return h};
MS=function(u,h){var L=0;u=g.C(u);for(var Z=u.next();!(Z.done||Z.value.startTime>h);Z=u.next())L++;return L===0?L:L-1};
j2i=function(u,h){for(var L=0,Z=g.C(u),y=Z.next();!y.done;y=Z.next()){y=y.value;if(h<y.timeRangeStartMillis)return null;if(h>=y.timeRangeStartMillis&&h<y.timeRangeStartMillis+y.G)break;L++}L+1<u.length&&u[L+1].timeRangeStartMillis<=h&&L++;return L<u.length?L:null};
h_1=function(u,h){h=MS(u,h)+1;return h<u.length?h:-1};
L0s=function(u,h){return MS(u,h)-1};
ZWe=function(u,h){return new g.uW(u,h,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+u})};
R_l=function(u,h,L,Z,y,R,p,J){g.UN.call(this);var O=this;this.api=u;this.contextMenu=L;this.xJ=Z;this.Wh=y;this.G=R;this.C=p;this.progressBar=J;this.T=new g.EM(function(){yIn(O,!1)},1E3);
this.N="";this.X={LG:!1};this.B=!1;g.V(this,this.T);this.W(h,"mousedown",function(){il(O,!1)});
this.W(L.element,"mousedown",function(){il(O,!1)});
this.W(h,"keydown",this.lj);this.W(L.element,"keydown",this.lj);this.W(h,"keyup",this.K2);this.W(L.element,"keyup",this.K2)};
pqV=function(u,h){return h<0?0:Math.floor(Math.min(h,u.api.getDuration())*1E3)};
Q9=function(u,h,L){var Z=u.api.getCurrentTime(),y=pqV(u,Z);u=pqV(u,Z+h);return{startMediaTimeMs:y,endMediaTimeMs:u,seekSource:L}};
K0n=function(u){var h,L=(h=u.api.getVideoData())==null?void 0:h.KZ();return u.api.getPresentingPlayerType(L)!==2};
il=function(u,h){u.B=h;g.JW(u.api.getRootNode(),"ytp-probably-keyboard-focus",h);g.JW(u.contextMenu.element,"ytp-probably-keyboard-focus",h)};
Sx=function(u,h,L,Z){var y=g.By(u.api.uP());if(y&&y.loaded){var R=u.api.getSubtitlesUserSettings();y=void 0;for(var p=0;p<g.ll.length;p++){var J=g.ll[p];if(J.option===h){y=J.options;break}}p=void 0;for(J=0;J<y.length;J++)y[J].option===R[h]&&(p=J);if(Z)if(L){if(p===0)return}else if(p===y.length-1)return;Z={};Z[h]=y[(p+(L?y.length-1:1))%y.length].option;u.api.updateSubtitlesUserSettings(Z);yIn(u,!0);u.T.start()}};
yIn=function(u,h){g.By(u.api.uP())&&u.api.setOption("captions","sampleSubtitles",h)};
g.XJ=function(u,h){g.a.call(this,{K:"button",CI:["ytp-button","ytp-overflow-button"],J:{title:"More","aria-haspopup":"true","aria-owns":h.element.id},Z:[{K:"div",U:"ytp-overflow-icon",Z:[{K:"svg",J:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},Z:[{K:"path",J:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var L=this;this.D=u;this.yg=h;this.G=this.visible=!1;u.createClientVe(this.element,
this,16499);this.W(u,"videoplayerreset",this.kI);this.W(u,"appresize",this.kI);this.W(u,"fullscreentoggled",this.kI);this.W(u,"presentingplayerstatechange",this.kI);this.kI();Iv(u,this.element,this);this.listen("click",function(){u.logClick(L.element);GF(h,L.element,!1)});
this.W(h.closeButton,"click",function(){L.focus()})};
JIY=function(u){g.NT.call(this,u,{K:"div",U:"ytp-overflow-panel",J:{id:RG(),role:"dialog"},Z:[{K:"div",U:"ytp-overflow-panel-content",Z:[{K:"div",U:"ytp-overflow-panel-action-buttons",dw:"{{buttons}}"}]},{K:"button",CI:["ytp-overflow-panel-close","ytp-button"],J:{title:"Close"},Z:[g.Cu()]}]},250);this.actionButtons=[];this.G=this.BX("ytp-overflow-panel-content");this.closeButton=this.BX("ytp-overflow-panel-close");this.W(this.closeButton,"click",this.aP);Iv(u,this.closeButton,this);this.listen("click",
this.Xc);this.W(u,"videoplayerreset",this.hide);this.W(u,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
OWV=function(u,h){u.actionButtons.includes(h)||(u.actionButtons.push(h),u.updateValue("buttons",u.actionButtons))};
fCj=function(u,h){u=g.C(u.actionButtons);for(var L=u.next();!L.done;L=u.next())L.value.sU(h)};
DVL=function(u,h,L){var Z=g.XW(h,L),y=Z.Po("default.jpg");g.a.call(this,{K:"a",CI:["ytp-video-menu-item","ytp-button"],J:{role:"menuitemradio","aria-label":Z.title,href:u.L().getVideoUrl(Z.videoId,h.listId?h.listId.toString():null)},Z:[{K:"div",U:"ytp-video-menu-item-index",dw:String(L+1)},{K:"div",U:"ytp-video-menu-item-now-playing",dw:"\u25b6"},{K:"div",U:"ytp-video-menu-item-thumbnail",J:{style:y?"background-image: url("+y+");":void 0}},{K:"div",U:"ytp-video-menu-item-title",dw:Z.title},{K:"div",
U:"ytp-video-menu-item-author",dw:Z.author}]});this.api=u;this.index=L;this.listen("click",this.onClick)};
cIn=function(u){g.NT.call(this,u,{K:"div",U:"ytp-playlist-menu",J:{role:"dialog",id:RG()},Z:[{K:"div",U:"ytp-playlist-menu-header",Z:[{K:"div",U:"ytp-playlist-menu-title",Z:[u.L().X?{K:"span",U:"ytp-playlist-menu-title-name",dw:"{{title}}"}:{K:"a",U:"ytp-playlist-menu-title-name",J:{href:"{{playlisturl}}"},dw:"{{title}}"},{K:"button",CI:["ytp-playlist-menu-close","ytp-button"],J:{"aria-label":"Close"},Z:[g.Cu()]}]},{K:"div",U:"ytp-playlist-menu-subtitle",dw:"{{subtitle}}"}]},{K:"div",U:"ytp-playlist-menu-items",
J:{role:"menu"}}]},250);this.api=u;this.X=this.selected=this.B=this.playlist=null;this.items=this.BX("ytp-playlist-menu-items");this.G=new g.UN(this);this.playlistData=[];this.W(this.BX("ytp-playlist-menu-close"),"click",this.aP);var h=this.BX("ytp-playlist-menu-title-name");u.L().X||(this.X=this.W(h,"click",this.A4a));g.V(this,this.G);this.hide()};
vV=function(u,h){g.a.call(this,{K:"button",CI:["ytp-playlist-menu-button","ytp-button"],J:{title:"{{title}}","aria-owns":String(h.element.id),"aria-haspopup":"true","aria-label":"Playlist"},Z:[{K:"div",U:"ytp-playlist-menu-button-icon",Z:[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,J:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{K:"div",U:"ytp-playlist-menu-button-text",dw:"{{text}}"}]});var L=this;this.api=u;this.playlist=null;this.visible=!1;u.createClientVe(this.element,this,70344);this.W(u,"videodatachange",this.G);this.W(u,"videoplayerreset",this.G);this.W(u,"onPlaylistUpdate",this.G);this.W(u,"presentingplayerstatechange",this.kI);this.W(u,"appresize",this.kI);this.hide();this.G();Iv(u,this.element,this);this.listen("click",function(){u.logClick(L.element);GF(h,L.element,!1)})};
ICf=function(u,h){g.a.call(this,{K:"div",U:"ytp-promotooltip-wrapper",Z:[{K:"div",U:"ytp-promotooltip-container",Z:[{K:"div",U:"ytp-promotooltip-content",Z:[{K:"div",U:"ytp-promotooltip-title",dw:"{{title}}"},{K:"div",U:"ytp-promotooltip-details",dw:"{{details}}"}]},{K:"div",U:"ytp-promotooltip-buttons",Z:[{K:"div",U:"ytp-promotooltip-dismiss-button",dw:"{{dismissButtonText}}",J:{tabindex:"0"}},{K:"div",U:"ytp-promotooltip-accept-button",dw:"{{acceptButtonText}}",J:{tabindex:"0","aria-haspopup":"true"}}]}]},
{K:"div",U:"ytp-promotooltip-pointer"}]});var L=this;this.tooltipRenderer=u;this.D=h;this.G=this.X=null;this.title=this.BX("ytp-promotooltip-title");this.details=this.BX("ytp-promotooltip-details");this.acceptButton=this.BX("ytp-promotooltip-accept-button");this.dismissButton=this.BX("ytp-promotooltip-dismiss-button");this.N=this.C=!1;this.B=!0;this.AB=this.V=this.Y=this.S=!1;this.zd={AT:function(Z){L.AT(Z)}};
this.Ay(!1);u=this.tooltipRenderer.trackingParams||null;if(this.N=!!u)this.D.createServerVe(this.element,this,!0),this.D.setTrackingParams(this.element,u);this.W(h,"onShowControls",this.BO);this.W(h,"onHideControls",this.zV);this.W(h,"resize",this.QZ);this.W(this.acceptButton,"click",this.jPH);this.W(this.dismissButton,"click",this.Xja);this.W(document,"click",this.gG)};
AIl=function(u){var h=document.querySelectorAll('[data-tooltip-target-id="'+u.tooltipRenderer.targetId+'"]');h=h.length>0?h[0]:null;var L=g.eT("ytp-chrome-bottom"),Z=g.eT("ytp-ad-module");u.B=!(L==null||!L.contains(h));u.S=!(Z==null||!Z.contains(h));u.Y=!(h==null||!h.hasAttribute("data-tooltip-target-fixed"));return h};
Chw=function(u,h,L){if(!u.C){if(h){u.tooltipRenderer=h;h=u.tooltipRenderer.text;var Z=!1,y;(h==null?0:(y=h.runs)==null?0:y.length)&&h.runs[0].text&&(u.update({title:h.runs[0].text.toString()}),Z=!0);g.lL(u.title,Z);h=u.tooltipRenderer.detailsText;y=!1;var R;if((h==null?0:(R=h.runs)==null?0:R.length)&&h.runs[0].text){Z=h.runs[0].text.toString();R=Z.indexOf("$TARGET_ICON");if(R>-1)if(u.tooltipRenderer.targetId){h=[];Z=Z.split("$TARGET_ICON");var p=new g.pu({K:"span",U:"ytp-promotooltip-details-icon",
Z:[xVs[u.tooltipRenderer.targetId]]});g.V(u,p);for(var J=[],O=g.C(Z),f=O.next();!f.done;f=O.next())f=new g.pu({K:"span",U:"ytp-promotooltip-details-component",dw:f.value}),g.V(u,f),J.push(f);Z.length===2?(h.push(J[0].element),h.push(p.element),h.push(J[1].element)):Z.length===1&&(R===0?(h.push(p.element),h.push(J[0].element)):(h.push(J[0].element),h.push(p.element)));R=h.length?h:null}else R=null;else R=Z;if(R){if(typeof R!=="string")for(g.jK(u.details),y=g.C(R),R=y.next();!R.done;R=y.next())u.details.appendChild(R.value);
else u.update({details:R});y=!0}}g.lL(u.details,y);y=u.tooltipRenderer.acceptButton;R=!1;var D,c,I;((D=g.n(y,g.TW))==null?0:(c=D.text)==null?0:(I=c.runs)==null?0:I.length)&&g.n(y,g.TW).text.runs[0].text&&(u.update({acceptButtonText:g.n(y,g.TW).text.runs[0].text.toString()}),R=!0);g.lL(u.acceptButton,R);D=u.tooltipRenderer.dismissButton;c=!1;var A,x,Q;((A=g.n(D,g.TW))==null?0:(x=A.text)==null?0:(Q=x.runs)==null?0:Q.length)&&g.n(D,g.TW).text.runs[0].text&&(u.update({dismissButtonText:g.n(D,g.TW).text.runs[0].text.toString()}),
c=!0);g.lL(u.dismissButton,c)}L&&(u.X=L);u.G=AIl(u);u.V=!1;u.D.L().j("web_player_hide_nitrate_promo_tooltip")||u.Ay(!0);Phn(u);u.BJ&&!u.AB&&(u.AB=!0,u.zd.AT(0));u.N&&u.D.logVisibility(u.element,u.BJ)}};
qS=function(u){u.Ay(!1);u.N&&u.D.logVisibility(u.element,u.BJ)};
MPj=function(u){var h,L,Z,y=((h=g.n(u.acceptButton,g.TW))==null?void 0:(L=h.text)==null?void 0:(Z=L.runs)==null?void 0:Z.length)&&!!g.n(u.acceptButton,g.TW).text.runs[0].text,R,p,J;h=((R=g.n(u.dismissButton,g.TW))==null?void 0:(p=R.text)==null?void 0:(J=p.runs)==null?void 0:J.length)&&!!g.n(u.dismissButton,g.TW).text.runs[0].text;return y||h};
Phn=function(u){var h;if(!(h=!u.G)){h=u.G;var L=window.getComputedStyle(h);h=L.display==="none"||L.visibility==="hidden"||h.getAttribute("aria-hidden")==="true"}if(h||u.D.isMinimized())u.Ay(!1);else if(h=g.Qz(u.G),h.width&&h.height){u.D.Kx(u.element,u.G);var Z=u.D.m_().getPlayerSize().height;L=g.Qz(u.BX("ytp-promotooltip-container")).height;u.B?u.element.style.top=Z-L-h.height-12+"px":u.Y||(Z=u.D.Wb().height-L-h.height-12,u.element.style.top=Z+"px");Z=u.BX("ytp-promotooltip-pointer");var y=g.M2(u.G,
u.D.getRootNode()),R=Number(u.element.style.left.replace(/[^\d\.]/g,""));u=u.D.isFullscreen()?18:12;Z.style.left=y.x-R+h.width/2-u+"px";Z.style.top=L+"px"}else u.Ay(!1)};
TO=function(u){g.a.call(this,{K:"button",CI:["ytp-replay-button","ytp-button"],J:{title:"Replay"},Z:[g.XX()]});this.D=u;this.W(u,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Sq(u.getPlayerStateObject());Iv(this.D,this.element,this)};
YY=function(u,h){h=h===void 0?240:h;g.a.call(this,{K:"button",CI:["ytp-button","ytp-search-button"],J:{title:"Search","data-tooltip-opaque":String(g.MW(u.L()))},Z:[{K:"div",U:"ytp-search-icon",dw:"{{icon}}"},{K:"div",U:"ytp-search-title",dw:"Search"}]});this.api=u;this.N=h;this.visible=!1;this.updateValue("icon",{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},Z:[{K:"path",U:"ytp-svg-fill",J:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]});
u.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.G();this.W(u,"appresize",this.G);this.W(u,"videodatachange",this.G);Iv(u,this.element,this)};
g.oe=function(u,h,L,Z){Z=Z===void 0?240:Z;g.a.call(this,{K:"button",CI:["ytp-button","ytp-share-button"],J:{title:"Share","aria-haspopup":"true","aria-owns":L.element.id,"data-tooltip-opaque":String(g.MW(u.L()))},Z:[{K:"div",U:"ytp-share-icon",dw:"{{icon}}"},{K:"div",U:"ytp-share-title",dw:"Share"}]});this.api=u;this.G=h;this.X=L;this.B=Z;this.N=this.visible=!1;this.tooltip=this.G.l2();u.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.W(u,"videodatachange",this.kI);
this.W(u,"videoplayerreset",this.kI);this.W(u,"appresize",this.kI);this.W(u,"presentingplayerstatechange",this.kI);this.kI();this.addOnDisposeCallback(g.cf(this.tooltip,this.element))};
iWe=function(u){var h=u.api.L(),L=u.api.getVideoData(),Z=g.MW(h)&&g.iM(u.api)&&g.F(u.api.getPlayerStateObject(),128);h=h.X||h.disableSharing&&u.api.getPresentingPlayerType()!==2||!L.showShareButton||L.r6||Z||g.$H(L)||u.N;Z=u.api.m_().getPlayerSize().width;return!!L.videoId&&Z>=u.B&&!h};
Q2s=function(u,h){h.name!=="InvalidStateError"&&h.name!=="AbortError"&&(h.name==="NotAllowedError"?(u.G.t9(),GF(u.X,u.element,!1)):g.UZ(h))};
SAw=function(u,h){var L=RG(),Z=u.L();L={K:"div",U:"ytp-share-panel",J:{id:RG(),role:"dialog","aria-labelledby":L},Z:[{K:"div",U:"ytp-share-panel-inner-content",Z:[{K:"div",U:"ytp-share-panel-title",J:{id:L},dw:"Share"},{K:"a",CI:["ytp-share-panel-link","ytp-no-contextmenu"],J:{href:"{{link}}",target:Z.Y,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},dw:"{{linkText}}"},{K:"label",U:"ytp-share-panel-include-playlist",Z:[{K:"input",U:"ytp-share-panel-include-playlist-checkbox",J:{type:"checkbox",
checked:"true"}},"Include playlist"]},{K:"div",U:"ytp-share-panel-loading-spinner",Z:[En()]},{K:"div",U:"ytp-share-panel-service-buttons",dw:"{{buttons}}"},{K:"div",U:"ytp-share-panel-error",dw:"An error occurred while retrieving sharing information. Please try again later."}]},{K:"button",CI:["ytp-share-panel-close","ytp-button"],J:{title:"Close"},Z:[g.Cu()]}]};g.NT.call(this,u,L,250);var y=this;this.moreButton=null;this.api=u;this.tooltip=h.l2();this.X=[];this.C=this.BX("ytp-share-panel-inner-content");
this.closeButton=this.BX("ytp-share-panel-close");this.W(this.closeButton,"click",this.aP);this.addOnDisposeCallback(g.cf(this.tooltip,this.closeButton));this.B=this.BX("ytp-share-panel-include-playlist-checkbox");this.W(this.B,"click",this.kI);this.G=this.BX("ytp-share-panel-link");this.addOnDisposeCallback(g.cf(this.tooltip,this.G));this.api.createClientVe(this.G,this,164503);this.W(this.G,"click",function(R){R.preventDefault();y.api.logClick(y.G);var p=y.api.getVideoUrl(!0,!0,!1,!1);p=lCa(y,p);
g.bM(p,y.api,R)&&y.api.hB("SHARE_CLICKED")});
this.listen("click",this.lR);this.W(u,"videoplayerreset",this.hide);this.W(u,"fullscreentoggled",this.onFullscreenToggled);this.W(u,"onLoopRangeChange",this.uDa);this.hide()};
vul=function(u,h){Xqb(u);for(var L=h.links||h.shareTargets,Z=0,y={},R=0;R<L.length&&Z<2;y={Vk:void 0,As:void 0},R++){y.Vk=L[R];a:switch(y.Vk.img||y.Vk.iconId){case "facebook":var p={K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},Z:[{K:"rect",J:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",J:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":p={K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},Z:[{K:"rect",J:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",J:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:p=null}if(p){var J=y.Vk.sname||y.Vk.serviceName;y.As=new g.a({K:"a",CI:["ytp-share-panel-service-button","ytp-button"],J:{href:y.Vk.url,target:"_blank",title:J},Z:[p]});y.As.listen("click",function(D){return function(c){var I=D.Vk.url;if(g.li(c)){var A=A===void 0?{}:A;A.target=A.target||"YouTube";A.width=A.width||"600";A.height=A.height||"600";var x=A;x||(x={});A=window;var Q=I instanceof qN?I:g.NN(typeof I.href!="undefined"?I.href:String(I));var S=self.crossOriginIsolated!==
void 0,v="strict-origin-when-cross-origin";window.Request&&(v=(new Request("/")).referrerPolicy);var T=v==="unsafe-url";v=x.noreferrer;if(S&&v){if(T)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");v=!1}I=x.target||I.target;S=[];for(var U in x)switch(U){case "width":case "height":case "top":case "left":S.push(U+"="+x[U]);break;case "target":case "noopener":case "noreferrer":break;case "attributionsrc":S.push(U+(x[U]?"="+x[U]:
""));break;default:S.push(U+"="+(x[U]?1:0))}U=S.join(",");ac()&&A.navigator&&A.navigator.standalone&&I&&I!="_self"?(U=g.kJ("A"),g.Gx(U,Q),U.target=I,v&&(U.rel="noreferrer"),((x=x.attributionsrc)||x==="")&&U.setAttribute("attributionsrc",x),x=document.createEvent("MouseEvent"),x.initMouseEvent("click",!0,!0,A,1),U.dispatchEvent(x),A={}):v?(A=g.zx(A,"",I,U),x=g.Tx(Q),A&&(A.opener=null,x===""&&(x="javascript:''"),x=re('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+
bP(x)+'">'),(Q=A.document)&&Q.write&&(Q.write(Bo(x)),Q.close()))):((A=g.zx(A,Q,I,U))&&x.noopener&&(A.opener=null),A&&x.noreferrer&&(A.opener=null));A&&(A.opener||(A.opener=window),A.focus());c.preventDefault()}}}(y));
y.As.addOnDisposeCallback(g.cf(u.tooltip,y.As.element));J==="Facebook"?u.api.createClientVe(y.As.element,y.As,164504):J==="Twitter"&&u.api.createClientVe(y.As.element,y.As,164505);u.W(y.As.element,"click",function(D){return function(){u.api.logClick(D.As.element)}}(y));
u.api.logVisibility(y.As.element,!0);u.X.push(y.As);Z++}}var O=h.more||h.moreLink,f=new g.a({K:"a",CI:["ytp-share-panel-service-button","ytp-button"],Z:[{K:"span",U:"ytp-share-panel-service-button-more",Z:[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},Z:[{K:"rect",J:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",J:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],J:{href:O,target:"_blank",title:"More"}});f.listen("click",function(D){var c=O;u.api.logClick(u.moreButton.element);c=lCa(u,c);g.bM(c,u.api,D)&&u.api.hB("SHARE_CLICKED")});
f.addOnDisposeCallback(g.cf(u.tooltip,f.element));u.api.createClientVe(f.element,f,164506);u.W(f.element,"click",function(){u.api.logClick(f.element)});
u.api.logVisibility(f.element,!0);u.X.push(f);u.moreButton=f;u.updateValue("buttons",u.X)};
lCa=function(u,h){var L={};g.MW(u.api.L())&&(g.jq(u.api,"addEmbedsConversionTrackingParams",[L]),h=g.sr(h,L));return h};
Xqb=function(u){for(var h=g.C(u.X),L=h.next();!L.done;L=h.next())L=L.value,L.detach(),g.Ju(L);u.X=[]};
NS=function(u){return u===void 0||u.startSec===void 0||u.endSec===void 0?!1:!0};
qAV=function(u,h){u.startSec+=h;u.endSec+=h};
YAw=function(u){mK.call(this,u);this.N=this.G=this.isContentForward=this.V=!1;TUa(this);this.W(this.D,"changeProductsInVideoVisibility",this.eAX);this.W(this.D,"videodatachange",this.onVideoDataChange)};
oub=function(u){u.C&&u.T7.element.removeChild(u.C.element);u.C=void 0};
UVR=function(u,h){return h.map(function(L){var Z,y;if((L=(Z=g.n(L,NUa))==null?void 0:(y=Z.thumbnail)==null?void 0:y.thumbnails)&&L.length!==0)return L[0].url}).filter(function(L){return L!==void 0}).map(function(L){L=new g.a({K:"img",
U:"ytp-suggested-action-product-thumbnail",J:{alt:"",src:L}});g.V(u,L);return L})};
Gol=function(u,h){u.isContentForward=h;g.JW(u.badge.element,"ytp-suggested-action-badge-content-forward",h)};
UI=function(u){var h=u.isContentForward&&!u.TE();g.JW(u.badge.element,"ytp-suggested-action-badge-preview-collapsed",h&&u.G);g.JW(u.badge.element,"ytp-suggested-action-badge-preview-expanded",h&&u.N)};
GO=function(u,h,L){return new g.uW(u*1E3,h*1E3,{priority:9,namespace:L})};
HWV=function(u){u.D.qm("shopping_overlay_visible");u.D.qm("shopping_overlay_preview_collapsed");u.D.qm("shopping_overlay_preview_expanded");u.D.qm("shopping_overlay_expanded")};
TUa=function(u){u.W(u.D,g.hc("shopping_overlay_visible"),function(){u.ut(!0)});
u.W(u.D,g.L2("shopping_overlay_visible"),function(){u.ut(!1)});
u.W(u.D,g.hc("shopping_overlay_expanded"),function(){u.RH=!0;ze(u)});
u.W(u.D,g.L2("shopping_overlay_expanded"),function(){u.RH=!1;ze(u)});
u.W(u.D,g.hc("shopping_overlay_preview_collapsed"),function(){u.G=!0;UI(u)});
u.W(u.D,g.L2("shopping_overlay_preview_collapsed"),function(){u.G=!1;UI(u)});
u.W(u.D,g.hc("shopping_overlay_preview_expanded"),function(){u.N=!0;UI(u)});
u.W(u.D,g.L2("shopping_overlay_preview_expanded"),function(){u.N=!1;UI(u)})};
z_V=function(u){g.a.call(this,{K:"div",U:"ytp-shorts-title-channel",Z:[{K:"a",U:"ytp-shorts-title-channel-logo",J:{href:"{{channelLink}}",target:u.L().Y,"aria-label":"{{channelLogoLabel}}"}},{K:"div",U:"ytp-shorts-title-expanded-heading",Z:[{K:"div",U:"ytp-shorts-title-expanded-title",Z:[{K:"a",dw:"{{expandedTitle}}",J:{href:"{{channelTitleLink}}",target:u.L().Y,tabIndex:"0"}}]}]}]});var h=this;this.api=u;this.G=this.BX("ytp-shorts-title-channel-logo");this.channelName=this.BX("ytp-shorts-title-expanded-title");
this.subscribeButton=null;u.createClientVe(this.G,this,36925);this.W(this.G,"click",function(L){h.api.logClick(h.G);g.zx(window,rIw(h));L.preventDefault()});
u.createClientVe(this.channelName,this,37220);this.W(this.channelName,"click",function(L){h.api.logClick(h.channelName);g.zx(window,rIw(h));L.preventDefault()});
BUn(this);this.W(u,"videodatachange",this.kI);this.W(u,"videoplayerreset",this.kI);this.kI()};
BUn=function(u){if(!u.api.L().eq){var h=u.api.getVideoData(),L=new g.Ks("Subscribe",null,"Subscribed",null,!0,!1,h.Xy,h.subscribed,"channel_avatar",null,u.api,!0);u.api.createServerVe(L.element,u);var Z;u.api.setTrackingParams(L.element,((Z=h.subscribeButtonRenderer)==null?void 0:Z.trackingParams)||null);u.W(L.element,"click",function(){u.api.logClick(L.element)});
u.subscribeButton=L;g.V(u,u.subscribeButton);u.subscribeButton.Og(u.element)}};
rIw=function(u){var h=u.api.L(),L=u.api.getVideoData();L=g.W$(h)+L.Ca;if(!g.MW(h))return L;h={};g.jq(u.api,"addEmbedsConversionTrackingParams",[h]);return g.sr(L,h)};
HV=function(u){g.NT.call(this,u,{K:"button",CI:["ytp-skip-intro-button","ytp-popup","ytp-button"],Z:[{K:"div",U:"ytp-skip-intro-button-text",dw:"Skip Intro"}]},100);var h=this;this.X=!1;this.G=new g.EM(function(){h.hide()},5E3);
this.t4=this.jY=NaN;g.V(this,this.G);this.V=function(){h.show()};
this.C=function(){h.hide()};
this.B=function(){var L=h.D.getCurrentTime();L>h.jY/1E3&&L<h.t4/1E3&&h.show()};
this.W(this.D,"videodatachange",function(L,Z){h.Lg(L,Z)});
this.W(this.element,"click",function(){h.D.seekTo(h.t4/1E3)});
this.hide()};
rq=function(u){g.a.call(this,{K:"button",CI:["ytp-airplay-button","ytp-button"],J:{title:"AirPlay","data-priority":"10"},dw:"{{icon}}"});this.D=u;this.listen("click",this.onClick);this.W(u,"airplayactivechange",this.kI);this.W(u,"airplayavailabilitychange",this.kI);this.kI();Iv(u,this.element,this)};
dVe=function(u){g.a.call(this,{K:"div",U:"ytp-gradient-bottom"});this.N=g.kJ("CANVAS");this.G=this.N.getContext("2d",{willReadFrequently:!0});this.X=NaN;this.N.width=1;mVe(this,u.m_().getPlayerSize().height)};
mVe=function(u,h){if(u.G){h=Math.floor(h*.4);h=Math.max(h,47);var L=h+2;if(u.X!==L){u.X=L;u.N.height=L;u.G.clearRect(0,0,1,L);var Z=u.G.createLinearGradient(0,2,0,2+h),y=h-42;Z.addColorStop(0,"rgba(0, 0, 0, 0)");Z.addColorStop(y/h,"rgba(0, 0, 0, 0.3)");Z.addColorStop(1,"rgba(0, 0, 0, 0.68)");u.G.fillStyle=Z;u.G.fillRect(0,2,1,h);u.element.style.height=L+"px";try{u.element.style.backgroundImage="url("+u.N.toDataURL()+")"}catch(R){}}}};
BV=function(u,h,L,Z){g.a.call(this,{K:"div",U:"ytp-chapter-container",Z:[{K:"button",CI:["ytp-chapter-title","ytp-button"],Z:[{K:"span",J:{"aria-hidden":"true"},U:"ytp-chapter-title-prefix",dw:"\u2022"},{K:"div",U:"ytp-chapter-title-content",dw:"{{title}}",J:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:Z}},{K:"div",U:"ytp-chapter-title-chevron",Z:[{K:"svg",J:{height:"100%",viewBox:"0 0 24 24",width:"100%"},Z:[{K:"path",J:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",
fill:"#fff"}}]}]}]}]});this.D=u;this.B=h;this.C="";this.currentIndex=0;this.N=void 0;this.X=!0;this.AB=this.BX("ytp-chapter-container");this.G=this.BX("ytp-chapter-title");this.RH=this.BX("ytp-chapter-title-content");this.updateVideoData("newdata",this.D.getVideoData());this.W(u,"videodatachange",this.updateVideoData);this.W(this.AB,"click",this.onClick);this.W(u,g.hc(L),this.cj);this.W(u,"onLoopRangeChange",this.cj);this.W(u,"innertubeCommand",this.onClickCommand);(u=g.Tg(this.D.L()))&&g.JW(this.G,
"ytp-profile-page",!0);this.D.j("web_player_updated_entrypoint")&&g.JW(this.element,"ytp-xs-mono-button-style",!0);g.MW(this.D.L())||u||Iv(this.D,this.RH,this)};
zO=function(u,h){BV.call(this,u,h,"chapterCueRange","View chapter");this.V=""};
VPa=function(u,h,L,Z,y){var R=h.JR/h.rows,p=Math.min(L/(h.WK/h.columns),Z/R),J=h.WK*p,O=h.JR*p;J=Math.floor(J/h.columns)*h.columns;O=Math.floor(O/h.rows)*h.rows;var f=J/h.columns,D=O/h.rows,c=-h.column*f,I=-h.row*D;y&&R<=45&&(D-=1/p);f-=2/p;u=u.style;u.width=f+"px";u.height=D+"px";y||(Z=(Z-D)/2,L=(L-f)/2,u.marginTop=Math.floor(Z)+"px",u.marginBottom=Math.ceil(Z)+"px",u.marginLeft=Math.floor(L)+"px",u.marginRight=Math.ceil(L)+"px");u.background="url("+h.url+") "+c+"px "+I+"px/"+J+"px "+O+"px"};
mD=function(u,h){g.a.call(this,{K:"div",U:"ytp-storyboard-framepreview",Z:[{K:"div",U:"ytp-storyboard-framepreview-timestamp",dw:"{{timestamp}}"},{K:"div",U:"ytp-storyboard-framepreview-img"}]});this.api=u;this.B=this.BX("ytp-storyboard-framepreview-img");this.N=null;this.X=NaN;this.events=new g.UN(this);this.G=new g.kS(this,100);g.V(this,this.events);g.V(this,this.G);this.W(this.api,"presentingplayerstatechange",this.C);h&&this.W(this.element,"click",function(){h.HL()})};
nuw=function(u,h){var L=!!u.N;u.N=h;u.N?(L||(u.events.W(u.api,"videodatachange",function(){nuw(u,u.api.p7())}),u.events.W(u.api,"progresssync",u.q3),u.events.W(u.api,"appresize",u.V)),u.X=NaN,s2j(u),u.G.show(200)):(L&&g.Tj(u.events),u.G.hide(),u.G.stop())};
s2j=function(u){var h=u.N,L=u.api.getCurrentTime(),Z=u.api.m_().getPlayerSize(),y=q1(h,Z.width);y=O0s(h,y,L);u.update({timestamp:g.QF(L)});y!==u.X&&(u.X=y,K_b(h,y,Z.width),h=Rga(h,y,Z.width),VPa(u.B,h,Z.width,Z.height))};
wq1=function(u,h){g.a.call(this,{K:"button",CI:["ytp-fullscreen-button","ytp-button"],J:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"11","data-title-no-tooltip":"{{data-title-no-tooltip}}"},dw:"{{icon}}"});this.D=u;this.N=h;this.message=null;this.G=g.cf(this.N.l2(),this.element);this.X=new g.EM(this.yh,2E3,this);g.V(this,this.X);this.W(u,"fullscreentoggled",this.AC);this.W(u,"presentingplayerstatechange",this.kI);this.W(u,"resize",this.kI);this.listen("click",this.onClick);g.A2()&&
(h=this.D.m_(),this.W(h,sgj(),this.wY),this.W(h,nKL(document),this.nx));u.L().Ca||u.L().S||this.disable();u.createClientVe(this.element,this,139117);this.kI();this.AC(u.isFullscreen())};
dq=function(u,h){g.a.call(this,{K:"button",CI:["ytp-button","ytp-jump-button"],J:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Z:[h>0?{K:"svg",J:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},Z:[{K:"path",CI:["ytp-circle-arrow","ytp-svg-fill"],J:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}},
{K:"text",CI:["ytp-jump-button-text","ytp-svg-fill"],J:{x:"7.05",y:"15.05"}}]}:{K:"svg",J:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},Z:[{K:"path",CI:["ytp-circle-arrow","ytp-svg-fill"],J:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}},
{K:"text",CI:["ytp-jump-button-text","ytp-svg-fill"],J:{x:"6.5",y:"15"}}]}]});var L=this;this.D=u;this.G=h;this.N=new g.EM(function(){L.X?(L.X=!1,L.N.start()):L.element.classList.remove("ytp-jump-spin","backwards")},250);
this.X=!1;(h=h>0)?this.D.createClientVe(this.element,this,36843):this.D.createClientVe(this.element,this,36844);var Z=g.cI(h?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.G).toString()});this.update({title:Z,"data-title-no-tooltip":Z,"aria-keyshortcuts":h?"\u2192":"\u2190"});this.B=this.element.querySelector(".ytp-jump-button-text");this.B.textContent=Math.abs(this.G).toString();this.listen("click",this.onClick,this);Iv(u,this.element,
this)};
e_j=function(u,h){h?u.element.classList.add("ytp-jump-button-enabled"):u.element.classList.remove("ytp-jump-button-enabled");u.D.logVisibility(u.element,h);u.D.g2()};
V9=function(u,h){BV.call(this,u,h,"timedMarkerCueRange","View key moments");this.W(u,g.L2("timedMarkerCueRange"),this.cj);this.W(u,"updatemarkervisibility",this.updateVideoData)};
aCn=function(u){var h,L=(h=u.D.getVideoData())==null?void 0:h.e7;if(L)for(u=u.B.aH,L=g.C(L),h=L.next();!h.done;h=L.next())if(h=u[h.value]){var Z=void 0,y=void 0,R=void 0;if(((Z=h.onTap)==null?void 0:(y=Z.innertubeCommand)==null?void 0:(R=y.changeEngagementPanelVisibilityAction)==null?void 0:R.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return h}};
ns=function(u){var h=u.j("web_enable_pip_on_miniplayer");g.a.call(this,{K:"button",CI:["ytp-miniplayer-button","ytp-button"],J:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},Z:[h?{K:"svg",J:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},Z:[{K:"g",J:{transform:"translate(96, -96) scale(0.8)"},Z:[{K:"path",XJ:!0,J:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}:
Ncl()]});this.D=u;this.visible=!1;this.listen("click",this.onClick);this.W(u,"fullscreentoggled",this.kI);this.updateValue("title",g.A7(u,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});Iv(u,this.element,this);u.createClientVe(this.element,this,62946);this.kI()};
sI=function(u,h,L){L=L===void 0?!1:L;g.a.call(this,{K:"button",CI:["ytp-mute-button","ytp-button"],J:u.L().aH?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},dw:"{{icon}}"});this.D=u;this.DI=L;this.G=null;this.B=this.Y=this.C=this.RH=NaN;this.XB=this.V=null;this.X=[];this.N=[];this.visible=!1;this.S=null;u.j("delhi_modern_web_player")&&this.update({"data-priority":3});
L=this.D.L();this.updateValue("icon",TC());this.tooltip=h.l2();this.G=new g.pu({K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"defs",Z:[{K:"clipPath",J:{id:"ytp-svg-volume-animation-mask"},Z:[{K:"path",J:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{K:"path",J:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{K:"path",U:"ytp-svg-volume-animation-mover",J:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{K:"clipPath",J:{id:"ytp-svg-volume-animation-slash-mask"},
Z:[{K:"path",U:"ytp-svg-volume-animation-mover",J:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{K:"path",XJ:!0,CI:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],J:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{K:"path",XJ:!0,CI:["ytp-svg-fill","ytp-svg-volume-animation-hider"],J:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",
d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.V(this,this.G);this.V=this.G.BX("ytp-svg-volume-animation-speaker");this.XB=this.V.getAttribute("d");this.X=g.s6("ytp-svg-volume-animation-mover",this.G.element);this.N=g.s6("ytp-svg-volume-animation-hider",this.G.element);this.gw=new Dh;g.V(this,this.gw);this.AB=new Dh;g.V(this,this.AB);this.listen("click",this.Lzi);this.W(u,"appresize",this.AN);this.W(u,"onVolumeChange",this.onVolumeChange);var Z=null;L.aH?this.addOnDisposeCallback(g.cf(h.l2(),
this.element)):(h="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),Z=new g.NT(u,{K:"span",CI:["ytp-popup","ytp-generic-popup"],J:{tabindex:"0"},Z:[h[0],{K:"a",J:{href:"https://support.google.com/youtube/?p=noaudio",target:L.Y},dw:h[2]},h[4]]},100,!0),g.V(this,Z),Z.hide(),Z.subscribe("show",function(y){u.Re(Z,y)}),g.XC(u,Z.element,4));
this.message=Z;u.createClientVe(this.element,this,28662);this.AN(u.m_().getPlayerSize());this.setVolume(u.getVolume(),u.isMuted())};
W0w=function(u,h){u.RH=h;var L=u.XB;h&&(L+=ARl($Vl,tPa,h));u.V.setAttribute("d",L)};
F0l=function(u,h){u.Y=h;for(var L=20*h,Z=0;Z<u.X.length;Z++)u.X[Z].setAttribute("transform","translate("+L+", "+L+")");var y;h===1?y=TC():y=u.G;for(L=0;L<u.N.length;L++){Z=u.N[L];var R=void 0;if((R=Z)==null?0:R.style)Z.style.display=h===0?"none":""}y!==u.S&&(u.updateValue("icon",y),u.S=y)};
g.wq=function(u,h){g.a.call(this,{K:"button",CI:["ytp-play-button","ytp-button"],J:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},dw:"{{icon}}"});this.D=u;this.G=null;this.transition=new Dh;this.tooltip=h.l2();g.V(this,this.transition);u.createClientVe(this.element,this,36842);u.j("embeds_use_parent_visibility_in_ve_logging")?u.logVisibility(this.element,this.T):u.logVisibility(this.element,!0);this.W(u,"fullscreentoggled",this.onVideoDataChange);this.W(u,
"presentingplayerstatechange",this.onStateChange);this.W(u,"videodatachange",this.onVideoDataChange);this.Sq(u.getPlayerStateObject());this.listen("click",this.nA,this);this.addOnDisposeCallback(g.cf(h.l2(),this.element))};
bWi=function(u){switch(u){case 1:return S0();case 2:return YWR();case 3:return g.XX();case 4:return Grw();default:return null}};
g.ex=function(u,h,L){g.a.call(this,{K:"a",CI:[L?"ytp-next-button":"ytp-prev-button","ytp-button"],J:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},Z:[L?i2():Upi()]});var Z=this;this.D=u;this.G=L;this.playlist=this.videoData=null;this.V=
!1;this.B=this.C=this.N=null;this.X=!1;this.tooltip=h.l2();L?u.createClientVe(this.element,this,6193):u.createClientVe(this.element,this,6194);this.W(u,"fullscreentoggled",this.onVideoDataChange);this.W(u,"videodatachange",this.onVideoDataChange);this.W(u,"onPlaylistUpdate",this.onVideoDataChange);this.W(u,"onLoopRangeChange",this.onVideoDataChange);this.G||this.W(u,"appresize",this.qD);this.W(u,"mdxpreviousnextchange",function(){EuV(Z);Z.qD()});
this.onVideoDataChange()};
kon=function(u){u.playlist&&u.playlist.unsubscribe("shuffle",u.onVideoDataChange,u)};
guR=function(u){return!!u.playlist&&!u.G&&!!u.videoData&&!u.videoData.isLivePlayback&&u.D.getCurrentTime()>=3&&u.D.getPresentingPlayerType()!==2};
u8Y=function(u){var h=MT(u.D.uP());return h?u.G?h.i9():h.vS():!1};
EuV=function(u){var h={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},L=u.playlist!=null&&u.playlist.i9();L=g.iM(u.D)&&(!u.G||L);var Z=u.G&&g.vf(u.D),y=u8Y(u),R=u.G&&u.D.getPresentingPlayerType()===5,p=g.A7(u.D,"Next","SHIFT+n"),J=g.A7(u.D,"Previous","SHIFT+p");if(R)h.title="Start video";else if(u.X)h.title="Replay";else if(L){var O=null;u.playlist&&(O=g.XW(u.playlist,u.G?FDY(u.playlist):bsV(u.playlist)));if(O){if(O.videoId){var f=u.playlist.listId;
h.url=u.D.L().getVideoUrl(O.videoId,f?f.toString():void 0)}h.text=O.title;h.duration=O.lengthText?O.lengthText:O.lengthSeconds?g.QF(O.lengthSeconds):null;h.preview=O.Po("mqdefault.jpg")}u.G?(h.title=p,h["data-title-no-tooltip"]="Next",h["aria-keyshortcuts"]="SHIFT+n"):(h.title=J,h["data-title-no-tooltip"]="Previous",h["aria-keyshortcuts"]="SHIFT+p")}else if(Z){if(J=(O=u.videoData)==null?void 0:g.eG(O))h.url=J.Wm(),h.text=J.title,h.duration=J.lengthText?J.lengthText:J.lengthSeconds?g.QF(J.lengthSeconds):
null,h.preview=J.Po("mqdefault.jpg");h.title=p;h["data-title-no-tooltip"]="Next";h["aria-keyshortcuts"]="SHIFT+n"}h.disabled=!Z&&!L&&!y&&!R;u.update(h);u.V=!!h.url;Z||L||u.X||y||R?u.N||(u.N=g.cf(u.tooltip,u.element),u.C=u.listen("click",u.onClick,u)):u.N&&(u.N(),u.N=null,u.FJ(u.C),u.C=null);u.tooltip.g2();g.JW(u.element,"ytp-playlist-ui",u.G&&L)};
hML=function(u,h){g.a.call(this,{K:"div",U:"ytp-fine-scrubbing",Z:[{K:"div",U:"ytp-fine-scrubbing-draggable",Z:[{K:"div",U:"ytp-fine-scrubbing-thumbnails",J:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{K:"div",J:{"aria-hidden":"true"},U:"ytp-fine-scrubbing-cursor"},{K:"div",U:"ytp-fine-scrubbing-seek-time",J:{"aria-hidden":"true"},
dw:"{{seekTime}}"},{K:"div",U:"ytp-fine-scrubbing-play",Z:[S0()],J:{title:"Play from this position",role:"button"}},{K:"div",U:"ytp-fine-scrubbing-dismiss",Z:[g.Cu()],J:{title:"Exit precise seeking",role:"button"}}]});var L=this;this.api=u;this.C=this.BX("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.BX("ytp-fine-scrubbing-dismiss");this.XB=this.BX("ytp-fine-scrubbing-draggable");this.playButton=this.BX("ytp-fine-scrubbing-play");this.thumbnails=[];this.N=[];this.vX=this.G=0;this.T7=void 0;
this.AB=NaN;this.aH=this.Y=this.X=this.S=0;this.B=[];this.interval=this.frameCount=0;this.V=160;this.scale=1;this.jd=0;this.isEnabled=this.DI=!1;jkf(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.cf(h,this.dismissButton));this.addOnDisposeCallback(g.cf(h,this.playButton));this.gw=new g.u5(this.XB,!0);this.gw.subscribe("dragstart",this.JJ,this);this.gw.subscribe("dragmove",this.ZU,this);this.gw.subscribe("dragend",this.DS,this);this.W(u,"SEEK_COMPLETE",this.S8);u.j("web_fix_fine_scrubbing_false_play")&&
this.W(u,"rootnodemousedown",function(Z){L.RH=Z});
this.C.addEventListener("keydown",function(){});
g.V(this,this.gw);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.C,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)};
jkf=function(u,h){var L=g.QF(h),Z=g.cI("Seek to $PROGRESS",{PROGRESS:g.QF(h,!0)});u.update({ariamin:0,ariamax:Math.floor(u.api.getDuration()),arianow:Math.floor(h),arianowtext:Z,seekTime:L})};
LMj=function(u){u.AB=NaN;u.Y=0;u.S=u.X};
RMY=function(u){var h=u.api.p7();if(h){var L=90*u.scale,Z=q1(h,160*u.scale);if(h=h.levels[Z]){u.V=h.width;if(!u.B.length){Z=[];for(var y=Tw(h,h.jj()),R=h.columns*h.rows,p=h.frameCount,J=0;J<=y;J++)for(var O=p<R?Math.ceil(p/h.columns):h.rows,f=0;f<h.rows;f++){var D=p<h.columns?p:h.columns,c={url:h.VQ(J),column:0,columns:D,row:f,rows:O,WK:h.width*D,JR:h.height*O};Z.push(c);p-=D;if(p<=1)break}u.B=Z;u.frameCount=h.Ii();u.interval=h.G/1E3||u.api.getDuration()/u.frameCount}for(;u.thumbnails.length>u.B.length;)Z=
void 0,(Z=u.thumbnails.pop())==null||Z.dispose();for(;u.thumbnails.length<u.B.length;)Z=new Zye,u.thumbnails.push(Z),Z.Og(u.C),g.V(u,Z);for(Z=0;Z<u.B.length;Z++)y=u.thumbnails[Z].element,R=u.B[Z],p=u.V*u.scale,J=R.JR/R.rows,O=L/J,y.style.background="url("+R.url+") 0 "+-R.row*R.JR/R.rows*O+"px/"+p*h.columns+"px "+J*R.rows*O+"px",y.style.width=p*R.columns+"px",y.style.height=L+"px";ae(u,u.api.getCurrentTime());for(L=u.api.getVideoData().dD;u.N.length>L.length;)Z=void 0,(Z=u.N.pop())==null||Z.dispose();
for(;u.N.length<L.length;)Z=new yUY,u.N.push(new yUY),g.V(u,Z);for(Z=0;Z<L.length;Z++)y=L[Z],u.N[Z].update({chapterTitle:y.title}),y=Math.round(y.startTime/h.G),R=Math.floor(y/h.rows),g.Oz(u.N[Z].element,"transform","translateX("+y%h.rows*u.V*u.scale+"px)"),R<u.thumbnails.length&&u.thumbnails[R]&&u.N[Z].Og(u.thumbnails[R].element);u.DI=!0}}};
ae=function(u,h){u.RH&&(u.RH.hg=!0);u.update({seekTime:g.QF(h)});var L=u.V*u.scale;h=h<u.interval/2?-h*L/u.interval*2+u.G/2:-h*L/u.interval-L/2+u.G/2;h=g.pX(h,p8j(u),u.G/2);u.S=h;u.X=u.S;g.Oz(u.XB,"transform","translateX("+(u.S-u.G/2)+"px)");g.Oz(u.XB,"padding","0px "+u.G/2+"px");g.Oz(u.C,"position","relative")};
KMj=function(u,h){var L=u.V*u.scale;h-=u.G/2;return h>-L?-h/L*u.interval*.5:-(h+L/2)/L*u.interval};
p8j=function(u){return-((u.C.offsetWidth||(u.frameCount-1)*u.V*u.scale)-u.G/2)};
Zye=function(){g.a.call(this,{K:"div",U:"ytp-fine-scrubbing-thumbnail"})};
yUY=function(){g.a.call(this,{K:"div",U:"ytp-fine-scrubbing-chapter-title",Z:[{K:"div",U:"ytp-fine-scrubbing-chapter-title-content",dw:"{{chapterTitle}}"}]})};
JUl=function(u){g.a.call(this,{K:"div",U:"ytp-heat-map-chapter",Z:[{K:"svg",U:"ytp-heat-map-svg",J:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},Z:[{K:"defs",Z:[{K:"clipPath",J:{id:"{{id}}"},Z:[{K:"path",U:"ytp-heat-map-path",J:{d:"",fill:"white"}}]},{K:"linearGradient",J:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},Z:[{K:"stop",J:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{K:"stop",J:{offset:"100%",
"stop-color":"white","stop-opacity":"0"}}]}]},{K:"rect",U:"ytp-heat-map-graph",J:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",U:"ytp-heat-map-hover",J:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",U:"ytp-heat-map-play",J:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{K:"path",U:"ytp-modern-heat-map",J:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%",
stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=u;this.S=this.BX("ytp-heat-map-svg");this.C=this.BX("ytp-heat-map-path");this.B=this.BX("ytp-heat-map-graph");this.V=this.BX("ytp-heat-map-play");this.G=this.BX("ytp-heat-map-hover");this.X=this.BX("ytp-modern-heat-map");this.ih=!1;this.N=60;u=""+g.b1(this);this.update({id:u});u="url(#"+u+")";this.B.setAttribute("clip-path",u);this.V.setAttribute("clip-path",u);this.G.setAttribute("clip-path",
u)};
Oyi=function(u,h){h>0&&(u.N=h,u.S.style.height=u.N+"px")};
$Y=function(){g.a.call(this,{K:"div",U:"ytp-chapter-hover-container",Z:[{K:"div",U:"ytp-progress-bar-padding"},{K:"div",U:"ytp-progress-list",Z:[{K:"div",CI:["ytp-play-progress","ytp-swatch-background-color"]},{K:"div",U:"ytp-progress-linear-live-buffer"},{K:"div",U:"ytp-load-progress"},{K:"div",U:"ytp-hover-progress"},{K:"div",U:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.N=this.BX("ytp-progress-list");this.C=this.BX("ytp-progress-linear-live-buffer");
this.B=this.BX("ytp-ad-progress-list");this.V=this.BX("ytp-load-progress");this.S=this.BX("ytp-play-progress");this.X=this.BX("ytp-hover-progress");this.G=this.BX("ytp-chapter-hover-container")};
tR=function(u,h){g.Oz(u.G,"width",h)};
fos=function(u,h){g.Oz(u.G,"margin-right",h+"px")};
D9j=function(){this.N=this.position=this.X=this.G=this.B=this.width=NaN};
cUY=function(){g.a.call(this,{K:"div",U:"ytp-timed-marker"});this.G=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.FJ=function(u,h){g.OD.call(this,{K:"div",U:"ytp-progress-bar-container",J:{"aria-disabled":"true"},Z:[{K:"div",CI:["ytp-heat-map-container"],Z:[{K:"div",U:"ytp-heat-map-edu"}]},{K:"div",CI:["ytp-progress-bar"],J:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},Z:[{K:"div",U:"ytp-chapters-container"},{K:"div",U:"ytp-timed-markers-container"},{K:"div",U:"ytp-clip-start-exclude"},
{K:"div",U:"ytp-clip-end-exclude"},{K:"div",U:"ytp-scrubber-container",Z:[{K:"div",CI:["ytp-scrubber-button","ytp-swatch-background-color"],Z:[{K:"div",U:"ytp-scrubber-pull-indicator"},{K:"img",CI:["ytp-decorated-scrubber-button"]}]}]}]},{K:"div",CI:["ytp-fine-scrubbing-container"],Z:[{K:"div",U:"ytp-fine-scrubbing-edu"}]},{K:"div",U:"ytp-bound-time-left",dw:"{{boundTimeLeft}}"},{K:"div",U:"ytp-bound-time-right",dw:"{{boundTimeRight}}"},{K:"div",U:"ytp-clip-start",J:{title:"{{clipstarttitle}}"},dw:"{{clipstarticon}}"},
{K:"div",U:"ytp-clip-end",J:{title:"{{clipendtitle}}"},dw:"{{clipendicon}}"}]});this.api=u;this.jx=!1;this.XN=this.Cr=this.VA=this.V=this.Qs=0;this.Uo=null;this.vX={};this.La={};this.clipEnd=Infinity;this.wm=this.BX("ytp-clip-end");this.eq=new g.u5(this.wm,!0);this.mz=this.BX("ytp-clip-end-exclude");this.nH=this.BX("ytp-clip-start-exclude");this.clipStart=0;this.Ca=this.BX("ytp-clip-start");this.vj=new g.u5(this.Ca,!0);this.Y=this.fI=0;this.progressBar=this.BX("ytp-progress-bar");this.e7={};this.aH=
{};this.iP=this.BX("ytp-chapters-container");this.h4=this.BX("ytp-timed-markers-container");this.G=[];this.C=[];this.Mr={};this.Zg=null;this.XB=-1;this.xl=this.gw=0;this.S=null;this.qr=this.BX("ytp-scrubber-button");this.Td=this.BX("ytp-decorated-scrubber-button");this.Th=this.BX("ytp-scrubber-container");this.Sd=new g.O6;this.J4=new D9j;this.X=new Nw(0,0);this.FD=null;this.AB=this.ol=!1;this.t4=null;this.RH=this.BX("ytp-heat-map-container");this.Oo=this.BX("ytp-heat-map-edu");this.B=[];this.heatMarkersDecorations=
[];this.ZI=this.BX("ytp-fine-scrubbing-container");this.jq=this.BX("ytp-fine-scrubbing-edu");this.N=void 0;this.DI=this.Z1=this.T7=!1;this.tooltip=h.l2();this.addOnDisposeCallback(g.cf(this.tooltip,this.wm));g.V(this,this.eq);this.eq.subscribe("hoverstart",this.lD,this);this.eq.subscribe("hoverend",this.gS,this);this.W(this.wm,"click",this.x7);this.addOnDisposeCallback(g.cf(this.tooltip,this.Ca));g.V(this,this.vj);this.vj.subscribe("hoverstart",this.lD,this);this.vj.subscribe("hoverend",this.gS,this);
this.W(this.Ca,"click",this.x7);IoY(this);this.W(u,"resize",this.QZ);this.W(u,"presentingplayerstatechange",this.NwA);this.W(u,"videodatachange",this.Lg);this.W(u,"videoplayerreset",this.nId);this.W(u,"cuerangesadded",this.qpH);this.W(u,"cuerangesremoved",this.NOI);this.W(u,"onLoopRangeChange",this.RW);this.W(u,"innertubeCommand",this.onClickCommand);this.W(u,g.hc("timedMarkerCueRange"),this.IgI);this.W(u,"updatemarkervisibility",this.z_);this.W(u,"serverstitchedvideochange",this.Zry);this.updateVideoData(u.getVideoData(),
!0);this.RW(u.getLoopRange());WV(this)&&!this.N&&(this.N=new hML(this.api,this.tooltip),u=g.Cf(this.element).x||0,this.N.QZ(u,this.V),this.N.Og(this.ZI),g.V(this,this.N),this.W(this.N.dismissButton,"click",this.HL),this.W(this.N.playButton,"click",this.o2),this.W(this.N.element,"dblclick",this.o2));this.api.createClientVe(this.RH,this,139609,!0);this.api.createClientVe(this.Oo,this,140127,!0);this.api.createClientVe(this.jq,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)};
IoY=function(u){if(u.G.length===0){var h=new $Y;u.G.push(h);g.V(u,h);h.Og(u.iP,0)}for(;u.G.length>1;)u.G.pop().dispose();tR(u.G[0],"100%");u.G[0].startTime=0;u.G[0].title=""};
AUb=function(u){var h=h===void 0?NaN:h;var L=new JUl(u.api);u.B.push(L);g.V(u,L);L.Og(u.RH);h>=0&&(L.element.style.width=h+"px")};
x9n=function(u){for(;u.C.length;)u.C.pop().dispose()};
CRs=function(u){var h,L,Z,y,R;return(R=g.n((y=g.n((h=u.getWatchNextResponse())==null?void 0:(L=h.playerOverlays)==null?void 0:(Z=L.playerOverlayRenderer)==null?void 0:Z.decoratedPlayerBarRenderer,xm))==null?void 0:y.playerBar,PRY))==null?void 0:R.chapters};
Mol=function(u){for(var h=u.G,L=[],Z=0;Z<h.length;Z++)if(!isNaN(h[Z].startTime)){var y=h[Z].startTime;y=new g.uW(y,Z===h.length-1?Infinity:h[Z+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+y});L.push(y)}u.api.qm("chapterCueRange");u.api.Rl(L)};
Tkj=function(u,h){var L,Z=(L=u.e7[h])==null?void 0:L.chapters;Z&&(iyL(u,Z),u.api.getVideoData().dD=u.G,Mol(u));var y;if((L=(y=u.e7[h])==null?void 0:y.markers)&&h!=="HEATSEEKER"){x9n(u);y=g.C(L);for(L=y.next();!L.done;L=y.next())if(Z=L.value,L=new cUY,Z=g.n(Z,g.QkY)){var R=void 0;L.title=((R=Z.title)==null?void 0:R.simpleText)||"";R=void 0;L.timeRangeStartMillis=(R=Z.timeRangeStartMillis)!=null?R:NaN;var p=R=void 0;L.onActiveCommand=(p=(R=Z)==null?void 0:R.onActiveCommand)!=null?p:void 0;lon(u,L)}Spn(u,
u.C);y=u.C;L=u.Mr;Z=[];for(R=0;R<y.length;R++)!isNaN(y[R].timeRangeStartMillis)&&y[R].onActiveCommand&&(p=ZWe(y[R].timeRangeStartMillis,R===y.length-1?Infinity:y[R+1].timeRangeStartMillis),Z.push(p),L[p.id]=y[R].onActiveCommand);u.api.Rl(Z)}var J;if(h=g.n((J=u.e7[h])==null?void 0:J.heatmap,X8b)){J=h.heatMarkers||[];var O;y=(O=h.minHeightDp)!=null?O:0;var f;O=(f=h.maxHeightDp)!=null?f:60;f=u.G.length;L=null;for(Z=0;Z<f;Z++){p=u.G[Z].startTime;var D=Z===f-1?Infinity:u.G[Z+1].startTime;Z===u.B.length&&
AUb(u);R=[];L&&R.push(L);for(var c=g.C(J),I=c.next();!I.done;I=c.next()){I=I.value;var A=void 0,x=void 0,Q=(x=(A=g.n(I,vvs))==null?void 0:A.timeRangeStartMillis)!=null?x:-1;Q>=p&&Q<=D&&R.push(I)}O>0&&(u.RH.style.height=O+"px");p=u.B[Z];D=R;I=y;x=O;Q=Z===0;Q=Q===void 0?!1:Q;Oyi(p,x);c=D;A=p.N;Q=Q===void 0?!1:Q;var S=1E3/c.length,v=[];v.push({x:0,y:100});for(var T=0;T<c.length;T++){var U=void 0,z=((U=g.n(c[T],vvs))==null?void 0:U.heatMarkerIntensityScoreNormalized)||0;U=(T+.5)*S;z=100-g.pX(z*100,I/
A*100,x/A*100);T!==0||Q||v.push({x:0,y:z});v.push({x:U,y:z});T===c.length-1&&v.push({x:1E3,y:z})}v.push({x:1E3,y:100});c=v;D=D.length===0?"":jEV(c);p.api.j("delhi_modern_web_player")?p.X.setAttribute("d",D):p.C.setAttribute("d",D);p.ih=D!=="";g.JW(p.api.getRootNode(),"ytp-heat-map",p.ih);g.JW(p.api.getRootNode(),"ytp-heat-map-played_bar",p.api.j("web_player_heat_map_played_bar")&&D!=="");p.api.j("delhi_modern_web_player")&&(p.X.style.display="block",p.B.style.display="none",p.G.style.display="none");
R.length>0&&(L=R[R.length-1])}g.bl(u);J=[];h=g.C(h.heatMarkersDecorations||[]);for(y=h.next();!y.done;y=h.next())if(y=g.n(y.value,qpR))O=y.label,Z=L=f=void 0,J.push({visibleTimeRangeStartMillis:(f=y.visibleTimeRangeStartMillis)!=null?f:-1,visibleTimeRangeEndMillis:(L=y.visibleTimeRangeEndMillis)!=null?L:-1,decorationTimeMillis:(Z=y.decorationTimeMillis)!=null?Z:NaN,label:O?g.cL(O):""});u.heatMarkersDecorations=J}};
lon=function(u,h){u.C.push(h);g.V(u,h);h.Og(u.h4,u.h4.children.length)};
Spn=function(u,h){h=g.C(h);for(var L=h.next();!L.done;L=h.next()){L=L.value;var Z=EI(u,L.timeRangeStartMillis/(u.X.G*1E3),kY(u));g.Oz(L.element,"transform","translateX("+Z+"px) scaleX(0.6)")}};
iyL=function(u,h){var L=0,Z=!1;h=g.C(h);for(var y=h.next();!y.done;y=h.next()){y=y.value;if(g.n(y,Ypj)){y=g.n(y,Ypj);var R={startTime:NaN,title:null,onActiveCommand:void 0},p=y.title;R.title=p?g.cL(p):"";p=y.timeRangeStartMillis;p!=null&&(R.startTime=p);R.onActiveCommand=y.onActiveCommand;y=R;L===0&&y.startTime!==0&&(u.G[L].startTime=0,u.G[L].title="",u.G[L].onActiveCommand=y.onActiveCommand,L++,Z=!0);u.G.length<=L&&(R=new $Y,u.G.push(R),g.V(u,R),R.Og(u.iP,u.iP.children.length));u.G[L].startTime=
y.startTime;u.G[L].title=y.title?y.title:"";u.G[L].onActiveCommand=y.onActiveCommand;u.G[L].index=Z?L-1:L}L++}for(;L<u.G.length;)u.G.pop().dispose();g.bl(u);gq(u)};
g.bl=function(u){u.gw=u.G.length-1;u.xl=0;ovV(u,!0)&&ovV(u,!1);for(var h=0,L=0;L<u.G.length;L++)if(u.G[L].width===0){if(L===u.G.length-1)for(var Z=u.G.length-1;Z>=0;Z--)if(u.G[Z].width>0){fos(u.G[Z],0);var y=Math.floor(u.G[Z].width);u.G[Z].width=y;tR(u.G[Z],y+"px");break}u.G[L].width=0;tR(u.G[L],"0")}else L===u.G.length-1?(Z=Math.floor(u.G[L].width+h),u.G[L].width=Z,tR(u.G[L],Z+"px")):(h=u.G[L].width+h,Z=Math.round(h),h-=Z,u.G[L].width=Z,tR(u.G[L],Z+"px"));L=0;if(u.B.length===u.G.length)for(h=0;h<
u.B.length;h++)Z=u.G[h].width,u.B[h].element.style.width=Z+"px",u.B[h].element.style.left=L+"px",L+=Z+uD(u);u.api.j("delhi_modern_web_player")&&(u.G.length===1?u.G[0].N.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(u.G[0].N.classList.remove("ytp-progress-bar-end"),u.G[0].N.classList.add("ytp-progress-bar-start"),u.G[u.G.length-1].N.classList.add("ytp-progress-bar-end")))};
ovV=function(u,h){var L=0,Z=!1,y=u.G.length,R=u.X.G*1E3;R===0&&(R=u.api.getProgressState().seekableEnd*1E3);if(R>0&&u.V>0){for(var p=u.V-uD(u)*u.gw,J=u.xl===0?3:p*u.xl,O=g.C(u.G),f=O.next();!f.done;f=O.next())f.value.width=0;for(;L<y;){O=R-u.G[L].startTime;L<y-1&&(O=u.G[L+1].startTime-u.G[L].startTime,fos(u.G[L],uD(u)));g.JW(u.G[L].G,"ytp-exp-chapter-hover-container",u.G.length>1);f=(R===0?0:O/R*p)+u.G[L].width;if(f>J)u.G[L].width=f;else{u.G[L].width=0;var D=u,c=L,I=D.G[c-1];I!==void 0&&I.width>0?
I.width+=f:c<D.G.length-1&&(D.G[c+1].width+=f);fos(D.G[c],0);h&&(u.gw--,O/R>u.xl&&(u.xl=O/R),Z=!0)}L++}}return Z};
gq=function(u){if(u.V){var h=u.api.getProgressState(),L=u.api.getVideoData();if(!(L&&L.enableServerStitchedDai&&L.enablePreroll)||isFinite(h.current)){var Z;if(((Z=u.api.getVideoData())==null?0:ab(Z))&&h.airingStart&&h.airingEnd)var y=j3(u,h.airingStart,h.airingEnd);else if(u.api.getPresentingPlayerType()===2&&u.api.L().j("show_preskip_progress_bar_for_skippable_ads")){var R,p,J;y=(L=(y=u.api.getVideoData())==null?void 0:(R=y.getPlayerResponse())==null?void 0:(p=R.playerConfig)==null?void 0:(J=p.webPlayerConfig)==
null?void 0:J.skippableAdProgressBarDuration)?j3(u,h.seekableStart,L/1E3):j3(u,h.seekableStart,h.seekableEnd)}else y=j3(u,h.seekableStart,h.seekableEnd);R=U_(y,h.loaded,0);h=U_(y,h.current,0);p=u.X.N!==y.N||u.X.G!==y.G;u.X=y;hx(u,h,R);p&&Nke(u);U9e(u)}}};
j3=function(u,h,L){return Gsa(u)?new Nw(Math.max(h,u.FD.startTimeMs/1E3),Math.min(L,u.FD.endTimeMs/1E3)):new Nw(h,L)};
Hya=function(u,h){var L;if(((L=u.FD)==null?void 0:L.type)==="repeatChapter"||(h==null?void 0:h.type)==="repeatChapter")h&&(h=u.G[MS(u.G,h.startTimeMs)],g.JW(h.G,"ytp-repeating-chapter",!1)),u.FD&&(h=u.G[MS(u.G,u.FD.startTimeMs)],g.JW(h.G,"ytp-repeating-chapter",!0)),u.G.forEach(function(Z){g.JW(Z.G,"ytp-exp-chapter-hover-container",!u.FD)})};
Zi=function(u,h){var L=u.X;L=L.N+h.N*L.getLength();if(u.G.length>1){L=LY(u,h.X,!0);for(var Z=0,y=0;y<L;y++)u.G[y].width>0&&(Z+=u.G[y].width,Z+=uD(u));L=(u.G[L].startTime+(h.X-Z)/u.G[L].width*((L===u.G.length-1?u.X.G*1E3:u.G[L+1].startTime)-u.G[L].startTime))/1E3||0}return L};
yk=function(u,h,L,Z,y){h=h<0?0:Math.floor(Math.min(h,u.api.getDuration())*1E3);L=L<0?0:Math.floor(Math.min(L,u.api.getDuration())*1E3);u=u.progressBar.visualElement;Z={seekData:{startMediaTimeMs:h,endMediaTimeMs:L,seekSource:Z}};(h=g.S9())&&g.EC(bs)(void 0,h,u,y,Z,void 0)};
rU1=function(u,h,L){if(L>=u.G.length)return!1;var Z=u.V-uD(u)*u.gw;return Math.abs(h-u.G[L].startTime/1E3)/u.X.G*Z<4};
Nke=function(u){u.qr.style.removeProperty("height");for(var h=g.C(Object.keys(u.vX)),L=h.next();!L.done;L=h.next())Bkj(u,L.value);Ry(u);hx(u,u.Y,u.fI)};
kY=function(u){var h=u.Sd.x;h=g.pX(h,0,u.V);u.J4.update(h,u.V);return u.J4};
KY=function(u){return(u.AB?135:90)-pY(u)};
pY=function(u){var h=48,L=u.api.L();u.AB?h=54:g.MW(L)&&!L.N?h=40:u.api.j("delhi_modern_web_player")&&(h=68);return h};
hx=function(u,h,L){u.Y=h;u.fI=L;var Z=kY(u),y=u.X.G;var R=u.X;R=R.N+u.Y*R.getLength();var p=g.cI("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.QF(R,!0),DURATION:g.QF(y,!0)}),J=MS(u.G,R*1E3);J=u.G[J].title;u.update({ariamin:Math.floor(u.X.N),ariamax:Math.floor(y),arianow:Math.floor(R),arianowtext:J?J+" "+p:p});y=u.clipStart;R=u.clipEnd;u.FD&&u.api.getPresentingPlayerType()!==2&&(y=u.FD.startTimeMs/1E3,R=u.FD.endTimeMs/1E3);y=U_(u.X,y,0);J=U_(u.X,R,1);p=u.api.getVideoData();R=g.pX(h,y,J);L=(p==null?
0:g.wm(p))?1:g.pX(L,y,J);h=EI(u,h,Z);g.Oz(u.Th,"transform","translateX("+h+"px)");Jx(u,Z,y,R,"PLAY_PROGRESS");(p==null?0:ab(p))?(h=u.api.getProgressState().seekableEnd)&&Jx(u,Z,R,U_(u.X,h),"LIVE_BUFFER"):Jx(u,Z,y,L,"LOAD_PROGRESS");if(u.api.j("web_player_heat_map_played_bar")){var O;(O=u.B[0])!=null&&O.V.setAttribute("width",(R*100).toFixed(2)+"%")}};
Jx=function(u,h,L,Z,y){var R=u.G.length,p=h.G-u.gw*uD(u),J=L*p;L=LY(u,J);var O=Z*p;p=LY(u,O);y==="HOVER_PROGRESS"&&(p=LY(u,h.G*Z,!0),O=h.G*Z-zMb(u,h.G*Z)*uD(u));Z=Math.max(J-m91(u,L),0);for(J=L;J<R;J++)u.G[J].lP(y).style.left=L===J?Z+"px":"0";h=EI(u,u.Y,h);for(R=L;R<p;R++){J=u.G[R].lP(y);var f=u.G[R].width,D=R===L?f-Z:f;O$(u,J,D,f);d9V(u,J,D,f,R,h,y)}R=u.G[p].width;O=g.pX(O-m91(u,p),0,R);L===p&&(O-=Z);Z=u.G[p].lP(y);O$(u,Z,O,R);d9V(u,Z,O,R,p,h,y);O=u.G.length;for(p+=1;p<O;p++)Voe(u,p,y);for(p=0;p<
L;p++)Voe(u,p,y)};
m91=function(u,h){if(h>=u.G.length)return u.V;for(var L=0,Z=0;Z<h;)L+=u.G[Z].width,Z++;return L};
Voe=function(u,h,L){L=u.G[h].lP(L);O$(u,L,0,u.G[h].width)};
d9V=function(u,h,L,Z,y,R,p){p==="PLAY_PROGRESS"&&(L=!Z||u.api.L().N?1:L/Z,u.nH.clientWidth>0||u.mz.clientWidth>0?(R=h.clientWidth/L,u=-1*u.nH.clientWidth/L):(R/=L,u=-1*u.G[y].element.offsetLeft/L),g.Oz(h,"background-size",R+"px"),g.Oz(h,"background-position-x",u+"px"))};
O$=function(u,h,L,Z,y){y||u.api.L().N?h.style.width=L+"px":g.Oz(h,"transform","scalex("+(Z?L/Z:0)+")")};
LY=function(u,h,L){var Z=0;(L===void 0?0:L)&&(h-=zMb(u,h)*uD(u));L=g.C(u.G);for(var y=L.next();!y.done;y=L.next()){y=y.value;if(h>y.width)h-=y.width;else break;Z++}return Z===u.G.length?Z-1:Z};
EI=function(u,h,L){var Z=h*u.X.G*1E3;for(var y=-1,R=g.C(u.G),p=R.next();!p.done;p=R.next())p=p.value,Z>p.startTime&&p.width>0&&y++;Z=y<0?0:y;y=L.G-uD(u)*u.gw;return h*y+uD(u)*Z+L.B};
zMb=function(u,h){for(var L=u.G.length,Z=0,y=g.C(u.G),R=y.next();!R.done;R=y.next())if(R=R.value,R.width!==0)if(h>R.width)h-=R.width,h-=uD(u),Z++;else break;return Z===L?L-1:Z};
g.nvb=function(u,h,L,Z){var y=u.V!==L,R=u.AB!==Z;u.Qs=h;u.V=L;u.AB=Z;WV(u)&&(h=u.N)!=null&&(h.scale=Z?1.5:1);Nke(u);u.G.length===1&&(u.G[0].width=L||0);y&&g.bl(u);u.N&&R&&WV(u)&&(u.N.isEnabled&&(L=u.AB?135:90,Z=L-pY(u),u.ZI.style.height=L+"px",g.Oz(u.RH,"transform","translateY("+-Z+"px)"),g.Oz(u.progressBar,"transform","translateY("+-Z+"px)")),RMY(u.N))};
Ry=function(u){var h=!!u.FD&&u.api.getPresentingPlayerType()!==2,L=u.clipStart,Z=u.clipEnd,y=!0,R=!0;h&&u.FD?(L=u.FD.startTimeMs/1E3,Z=u.FD.endTimeMs/1E3):(y=L>u.X.N,R=u.X.G>0&&Z<u.X.G);var p,J;if(((p=u.FD)==null?0:p.postId)||((J=u.FD)==null?void 0:J.type)==="repeatChapter")R=y=!1;g.JW(u.element,"ytp-loop-range-enabled",h);g.JW(u.element,"ytp-clip-start-enabled",y);g.JW(u.element,"ytp-clip-end-enabled",R);h=y?U_(u.X,L,0):0;Z=R?U_(u.X,Z,1):1;u.Ca.style.left=Math.round(h*1E3)/10+"%";u.wm.style.left=
Math.round(Z*1E3)/10+"%";u.nH.style.width=Math.round(h*1E3)/10+"%";u.mz.style.left=Math.round(Z*1E3)/10+"%";u.mz.style.width=Math.round((1-Z)*1E3)/10+"%"};
U9e=function(u){var h;if((h=u.api.getVideoData())==null||!ab(h)){h=kY(u);Jx(u,h,u.Y,Math.max(h.N,u.Y),"HOVER_PROGRESS");for(var L=LY(u,h.G*u.Y,!0),Z=LY(u,h.X,!0),y=L;y<=Z;y++)g.JW(u.G[y].X,"ytp-hover-progress-light",h.N>u.Y);g.JW(u.qr,"ytp-scrubber-button-hover",L===Z&&u.G.length>1);if(u.api.j("web_player_heat_map_played_bar")){var R;(R=u.B[0])!=null&&R.G.setAttribute("width",(h.N*100).toFixed(2)+"%")}}};
Bkj=function(u,h){var L=u.vX[h];h=u.La[h];var Z=kY(u),y=U_(u.X,L.start/1E3,0),R=KPj(L,u.AB)/Z.width;var p=U_(u.X,L.end/1E3,1);R!==Number.POSITIVE_INFINITY&&(y=g.pX(y,0,p-R));p=Math.min(p,y+R);L.color&&(h.style.background=L.color);L=y;h.style.left=Math.max(L*Z.G+Z.B,0)+"px";O$(u,h,g.pX((p-L)*Z.G+Z.B,0,Z.width),Z.width,!0)};
skj=function(u,h){var L=h.getId();u.vX[L]===h&&(g.Lx(u.La[L]),delete u.vX[L],delete u.La[L])};
WV=function(u){var h=g.nC(u.api.L())&&(u.api.j("web_enable_pip_on_miniplayer")||u.api.j("web_enable_auto_pip")),L;return!((L=u.api.getVideoData())==null?0:L.isLivePlayback)&&!u.api.isMinimized()&&!u.api.isInline()&&(!u.api.Wx()||!h)};
fY=function(u){u.N&&(u.N.disable(),u.VA=0,u.RH.style.removeProperty("transform"),u.progressBar.style.removeProperty("transform"),u.ZI.style.removeProperty("height"),u.element.parentElement&&u.element.parentElement.style.removeProperty("height"))};
w8R=function(u,h){var L=h/KY(u)*pY(u);g.Oz(u.progressBar,"transform","translateY("+-h+"px)");g.Oz(u.RH,"transform","translateY("+-h+"px)");g.Oz(u.ZI,"transform","translateY("+L+"px)");u.ZI.style.height=h+L+"px";u.element.parentElement&&(u.element.parentElement.style.height=pY(u)-L+"px")};
eMn=function(u,h){h?u.S||(u.element.removeAttribute("aria-disabled"),u.S=new g.u5(u.progressBar,!0),u.S.subscribe("hovermove",u.AqI,u),u.S.subscribe("hoverend",u.IvB,u),u.S.subscribe("dragstart",u.G1y,u),u.S.subscribe("dragmove",u.nSw,u),u.S.subscribe("dragend",u.RAy,u),u.t4=u.listen("keydown",u.OL)):u.S&&(u.element.setAttribute("aria-disabled","true"),u.FJ(u.t4),u.S.cancel(),u.S.dispose(),u.S=null)};
uD=function(u){return u.api.j("delhi_modern_web_player")?4:u.AB?3:2};
Gsa=function(u){var h;return!((h=u.FD)==null||!h.postId)&&u.api.getPresentingPlayerType()!==2};
Di=function(u,h){g.a.call(this,{K:"button",CI:["ytp-remote-button","ytp-button"],J:{title:"Play on TV","aria-haspopup":"true","data-priority":"9"},dw:"{{icon}}"});this.D=u;this.Ka=h;this.G=null;this.W(u,"onMdxReceiversChange",this.kI);this.W(u,"presentingplayerstatechange",this.kI);this.W(u,"appresize",this.kI);u.createClientVe(this.element,this,139118);this.kI();this.listen("click",this.N,this);Iv(u,this.element,this)};
cH=function(u,h){g.a.call(this,{K:"button",CI:["ytp-button","ytp-settings-button"],J:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":RG(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},Z:[g.vL()]});this.D=u;this.Ka=h;this.N=!0;this.listen("click",this.X);this.W(u,"onPlaybackQualityChange",this.updateBadge);this.W(u,"videodatachange",this.updateBadge);this.W(u,"webglsettingschanged",this.updateBadge);this.W(u,"appresize",this.G);Iv(u,this.element,this);this.D.createClientVe(this.element,
this,28663);this.updateBadge();this.G(u.m_().getPlayerSize())};
aoa=function(u,h){u.N=!!h;u.G(u.D.m_().getPlayerSize())};
Iy=function(u,h){t7.call(this,"Annotations",g.g7.Lo);this.D=u;this.Ka=h;this.G=!1;u.j("web_settings_menu_icons")&&this.setIcon({K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{K:"path",J:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7             M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7             M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z             M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z",
fill:"white"}}]});this.W(u,"videodatachange",this.kI);this.W(u,"onApiChange",this.kI);this.subscribe("select",this.onSelect,this);this.kI()};
Ax=function(u,h){g.EB.call(this,"Audio track",g.g7.AUDIO,u,h);this.D=u;this.tracks={};g.yN(this.element,"ytp-audio-menu-item");this.countLabel=new g.a({K:"div",Z:[{K:"span",dw:"Audio track"},{K:"span",U:"ytp-menuitem-label-count",dw:"{{content}}"}]});u.j("web_settings_menu_icons")&&this.setIcon({K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{K:"path",J:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z            M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z            M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z            M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z            M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z",
fill:"white"}}]});g.V(this,this.countLabel);g.r7(this,this.countLabel);this.W(u,"videodatachange",this.kI);this.W(u,"onPlaybackAudioChange",this.kI);this.kI()};
xs=function(u,h){t7.call(this,"Autoplay",g.g7.ZT);this.D=u;this.Ka=h;this.G=!1;this.X=[];this.W(u,"presentingplayerstatechange",this.N);this.subscribe("select",this.onSelect,this);u.createClientVe(this.element,this,113682);this.N()};
$9n=function(u,h){g.Bf.call(this,g.zF({"aria-haspopup":"false"}),0,"More options");this.D=u;this.Ka=h;this.W(this.element,"click",this.onClick);this.Ka.aV(this)};
toi=function(u,h){var L;g.nC(u.L())&&(L={K:"div",U:"ytp-panel-footer-content",Z:[{K:"span",dw:"Adjust download quality from your "},{K:"a",U:"ytp-panel-footer-content-link",dw:"Settings",J:{href:"/account_downloads"}}]});g.EB.call(this,"Quality",g.g7.Lb,u,h,void 0,void 0,L);this.D=u;this.XB={};this.Y={};this.B={};this.gw=new Set;this.G=this.C=!1;this.V="unknown";this.AB="";this.RH=new g.$M;g.V(this,this.RH);this.C=this.D.j("web_player_use_new_api_for_quality_pullback");this.G=this.D.j("web_player_enable_premium_hbr_playback_cap");
u.j("web_settings_menu_icons")&&this.setIcon({K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{K:"path",J:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z            M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.yN(this.N.element,"ytp-quality-menu");this.W(u,"videodatachange",this.Eh);this.W(u,"videoplayerreset",this.Eh);this.W(u,"onPlaybackQualityChange",this.dU);this.Eh();u.createClientVe(this.element,this,137721)};
FMj=function(u,h,L){var Z=u.XB[h],y=g.rF[h];return WMi(u,Z?Z.qualityLabel:y?y+"p":"Auto",h,L)};
byi=function(u,h,L,Z,y){var R=(h=u.G?u.B[h]:u.Y[h])&&h.quality,p=h&&h.qualityLabel;p=p?p:"Auto";Z&&(p="("+p);u=WMi(u,p,R||"",y);Z&&u.Z.push(")");(Z=(Z=h&&h.paygatedQualityDetails)&&Z.paygatedIndicatorText)&&L&&u.Z.push({K:"div",U:"ytp-premium-label",dw:Z});return u};
WMi=function(u,h,L,Z){h={K:"span",CI:Z,Z:[h]};var y;Z="ytp-swatch-color";if(u.C||u.G)Z="ytp-swatch-color-white";L==="highres"?y="8K":L==="hd2880"?y="5K":L==="hd2160"?y="4K":L.indexOf("hd")===0&&L!=="hd720"&&(y="HD");y&&(h.Z.push(" "),h.Z.push({K:"sup",U:Z,dw:y}));return h};
PH=function(u,h,L,Z,y){var R={K:"div",U:"ytp-input-slider-section",Z:[{K:"input",U:"ytp-input-slider",J:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};y&&R.Z.unshift(y);g.a.call(this,R);this.X=u;this.B=h;this.C=L;this.initialValue=Z;this.header=y;this.G=this.BX("ytp-input-slider");this.N=Z?Z:u;this.init();this.W(this.G,"input",this.V)};
ksL=function(u,h){u.N=h;u.updateValue("slidervalue",u.N);u.G.valueAsNumber=u.N;EvR(u,h)};
EvR=function(u,h){u.G.style.setProperty("--yt-slider-shape-gradient-percent",(h-u.X)/(u.B-u.X)*100+"%")};
CY=function(u){PH.call(this,u.getAvailablePlaybackRates()[0],u.getAvailablePlaybackRates()[u.getAvailablePlaybackRates().length-1],.05,u.getPlaybackRate(),{K:"div",U:"ytp-speedslider-indicator-container",Z:[{K:"div",U:"ytp-speedslider-badge"},{K:"p",U:"ytp-speedslider-text"}]});this.D=u;this.Y=W4a(this.RH,this);g.yN(this.G,"ytp-speedslider");this.S=this.BX("ytp-speedslider-text");this.gw=this.BX("ytp-speedslider-badge");gvj(this);this.W(this.G,"change",this.XB);this.W(this.G,"keydown",this.AB)};
gvj=function(u){u.S.textContent=u.N+"x";u.gw.classList.toggle("ytp-speedslider-premium-badge",u.N>2&&u.D.j("enable_web_premium_varispeed"))};
Ml=function(u,h,L,Z,y,R,p){g.a.call(this,{K:"div",U:"ytp-slider-section",J:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},Z:[{K:"div",U:"ytp-slider",Z:[{K:"div",U:"ytp-slider-handle"}]}]});this.S=u;this.Y=h;this.N=L;this.X=Z;this.AB=y;this.DI=R;this.range=this.X-this.N;this.T7=this.BX("ytp-slider-section");this.B=this.BX("ytp-slider");this.RH=this.BX("ytp-slider-handle");this.V=new g.u5(this.B,
!0);this.G=p?p:L;g.V(this,this.V);this.V.subscribe("dragmove",this.vO,this);this.W(this.element,"keydown",this.Cb);this.W(this.element,"wheel",this.Fc);this.init()};
iD=function(u){Ml.call(this,.05,.05,u.getAvailablePlaybackRates()[0],u.getAvailablePlaybackRates()[u.getAvailablePlaybackRates().length-1],150,20,u.getPlaybackRate());this.D=u;this.C=g.kJ("P");this.gw=W4a(this.XB,this);g.yN(this.B,"ytp-speedslider");g.yN(this.C,"ytp-speedslider-text");u=this.C;var h=this.B;h.parentNode&&h.parentNode.insertBefore(u,h.nextSibling);uqV(this);this.W(this.D,"onPlaybackRateChange",this.updateValues)};
uqV=function(u){u.C.textContent=j5L(u,u.G)+"x"};
j5L=function(u,h){u=Number(g.pX(h,u.N,u.X).toFixed(2));h=Math.floor((u+.001)*100%5+2E-15);var L=u;h!==0&&(L=u-h*.01);return Number(L.toFixed(2))};
h5n=function(u){g.OD.call(this,{K:"div",U:"ytp-speedslider-component"});u.j("web_settings_use_input_slider")?this.G=new CY(u):this.G=new iD(u);g.V(this,this.G);this.element.appendChild(this.G.element)};
LOa=function(u){var h=new h5n(u);dW.call(this,u,h,"Custom");g.V(this,h)};
ZDl=function(u,h){var L=new LOa(u);g.EB.call(this,"Playback speed",g.g7.S$,u,h,Qk(u)?void 0:"Custom",Qk(u)?void 0:function(){g.wW(h,L)});
var Z=this;this.C=!1;g.V(this,L);this.V=new CY(u);g.V(this,this.V);u.j("web_settings_menu_icons")&&this.setIcon({K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{K:"path",J:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z            M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z            M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z            M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z            M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",
fill:"white"}}]});this.D=u;this.C=!1;this.AB=null;Qk(u)?(this.G=g.cI("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.D.getPlaybackRate().toString()}),this.B=this.D.getPlaybackRate()):this.B=this.G=null;this.Y=this.D.getAvailablePlaybackRates();this.W(u,"presentingplayerstatechange",this.kI);var y;((y=this.D.getVideoData())==null?0:y.KZ())&&this.W(u,"serverstitchedvideochange",this.kI);this.W(this.V.G,"change",function(){Z.C=!0;Z.kI()});
this.kI()};
R5n=function(u,h){var L=y6i(h);u.G&&(u.C||h===u.B)?(u.o4(u.G),u.QF(h.toString())):u.o4(L)};
KOi=function(u){u.FU(u.Y.map(y6i));u.G=null;u.B=null;var h=u.D.getPlaybackRate();if(!u.Y.includes(h)||Qk(u.D))p0Y(u,h),u.o4(u.G)};
p0Y=function(u,h){u.B=h;u.G=g.cI("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:h.toString()});h=u.Y.map(y6i);h.unshift(u.G);u.FU(h)};
y6i=function(u){return u.toString()};
Qk=function(u){return u.j("web_settings_menu_surface_custom_playback")};
J6n=function(u){return u.j("web_settings_menu_surface_custom_playback")&&u.j("web_settings_use_input_slider")};
fUY=function(u,h,L,Z){var y=new g.Vy(h,void 0,"Video Override");g.EB.call(this,Z.text||"",u,h,L,"Video Override",function(){g.wW(L,y)});
var R=this;g.yN(this.element,"ytp-subtitles-options-menu-item");this.setting=Z.option.toString();u=Z.options;this.settings=g.xe(u,this.uA,this);this.C=y;g.V(this,this.C);h=new g.Bf({K:"div",U:"ytp-menuitemtitle",dw:"Allow for a different caption style if specified by the video."},0);g.V(this,h);this.C.aV(h,!0);this.B=new g.Bf({K:"div",U:"ytp-menuitem",J:{role:"menuitemradio",tabindex:"0"},Z:[{K:"div",U:"ytp-menuitem-label",dw:"On"}]},-1);g.V(this,this.B);this.C.aV(this.B,!0);this.W(this.B.element,
"click",function(){OD1(R,!0)});
this.G=new g.Bf({K:"div",U:"ytp-menuitem",J:{role:"menuitemradio",tabindex:"0"},Z:[{K:"div",U:"ytp-menuitem-label",dw:"Off"}]},-2);g.V(this,this.G);this.C.aV(this.G,!0);this.W(this.G.element,"click",function(){OD1(R,!1)});
this.FU(g.Xx(u,this.uA))};
OD1=function(u,h){u.publish("settingChange",u.setting+"Override",!h);u.Ka.gX()};
lD=function(u,h){g.Vy.call(this,u,void 0,"Options");var L=this;this.P8={};for(var Z=0;Z<g.ll.length;Z++){var y=g.ll[Z],R=new fUY(-Z,u,h,y);g.V(this,R);R.subscribe("settingChange",this.hS,this);this.P8[y.option.toString()]=R;this.aV(R,!0)}u=new g.Bf(g.zF(),-g.ll.length,"Reset");g.V(this,u);u.listen("click",function(){L.hS("reset",!0)});
this.aV(u,!0)};
S3=function(u,h){g.EB.call(this,"Auto-translate",0,u,h);this.D=u;this.languages={};u.createClientVe(this.element,this,127301);u.logVisibility(this.element,!0)};
DJj=function(u,h){u.languages=g.xe(h,u.G,u);u.FU(g.Xx(h,u.G))};
IUj=function(u,h){var L=new lD(u,h),Z=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],y;g.nC(u.L())&&(y={K:"div",U:"ytp-panel-footer-content",Z:[{K:"span",dw:Z[0]},{K:"a",U:"ytp-panel-footer-content-link",dw:"Settings",J:{href:"/account_playback"}},{K:"span",dw:Z[1]}]});g.EB.call(this,"Subtitles/CC",g.g7.SUBTITLES,u,h,"Options",function(){g.wW(h,L)},y);
var R=this;this.D=u;this.Ka=h;this.tracks={};this.V=new g.EM(function(){c6i(R,!1)},3E3);
g.V(this,this.V);this.countLabel=new g.a({K:"div",Z:[{K:"span",dw:"Subtitles/CC"},{K:"span",U:"ytp-menuitem-label-count",dw:"{{content}}"}]});g.V(this,this.countLabel);g.r7(this,this.countLabel);u.j("web_settings_menu_icons")&&this.setIcon(u9a.includes("en")?{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{K:"path",J:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z            M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z            M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",
fill:"white"}}]}:{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},Z:[{K:"path",J:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.G=new S3(u,h);g.V(this,this.G);this.G.subscribe("select",this.wG,this);this.C=L;g.V(this,this.C);this.C.subscribe("settingChange",this.hS,this);h.subscribe("show",this.iWy,this);this.W(u,"videodatachange",this.kI);this.W(u,"onApiChange",this.kI);this.W(u,"onCaptionsTrackListChanged",
this.kI);this.W(u,"captionschanged",this.kI);u.createClientVe(this.element,this,127300);this.kI()};
A6n=function(u){return Object.values(u.tracks).find(function(h){return h.languageCode==="en"&&h.kind==="asr"})};
Xv=function(u,h){u.D.setOption("captions","track",h)};
c6i=function(u,h){u.D.setOption("captions","sampleSubtitles",h)};
xJY=function(u){g.sB.call(this,u,"ytp-settings-menu");var h=this;this.zM=new g.Vy(this.D);this.L6=this.settingsButton=null;this.isInitialized=this.C_=!1;g.V(this,this.zM);this.hide();g.wW(this,this.zM);u.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(L){h.ut(L)});
this.W(u,"highlightSettingsMenu",function(){h.C_=!0;h.VF()});
this.W(u,"openSettingsMenuItem",function(L){if(L&&(h.C_=!0,h.VF(),L==="menu_item_video_quality_advanced")){var Z;(Z=h.L6)==null||Z.open()}})};
Pba=function(u,h){u.settingsButton=h;u.element.id=h.element.getAttribute("aria-controls")};
CbV=function(u,h){g.a.call(this,{K:"button",CI:["ytp-subtitles-button","ytp-button"],J:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"4","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Z:[jd1()]});this.D=u;this.tooltip=h.l2();this.W(u,"videodatachange",this.kI);this.W(u,"appresize",this.kI);this.W(u,"promotooltipacceptbuttonclicked",this.RRw);this.W(u,"onApiChange",this.kI);this.W(u,"onCaptionsTrackListChanged",this.kI);this.W(u,"captionschanged",this.kI);
this.D.createClientVe(this.element,this,127299);this.kI();this.listen("click",this.onClick);this.addOnDisposeCallback(g.cf(h.l2(),this.element))};
MQj=function(u){return g.By(u.D.uP())!=null?g.By(u.D.uP()).Li()?!!u.D.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
g.vH=function(u,h,L){L=L===void 0?350:L;g.a.call(this,{K:"div",CI:["ytp-time-display","notranslate"],Z:[{K:"span",U:"ytp-time-wrapper",Z:[{K:"span",U:"ytp-time-clip-icon",dw:"{{clipicon}}"},{K:"span",U:"ytp-time-current",dw:"{{currenttime}}"},{K:"span",U:"ytp-time-separator",dw:" / "},{K:"span",U:"ytp-time-duration",dw:"{{duration}}"}]},{K:"span",U:"ytp-clip-watch-full-video-button-separator",dw:"\u2022"},{K:"span",U:"ytp-clip-watch-full-video-button",dw:"{{watchfullvideo}}"}]});var Z=this;this.api=
u;this.S=L;this.liveBadge=new g.a({K:"button",CI:["ytp-live-badge","ytp-button"],J:{disabled:"true"},dw:"{{content}}"});this.G=null;this.XV=this.N=!1;this.V=this.C=null;this.isPremiere=!1;this.FD=this.B=this.X=null;this.Y=this.BX("ytp-clip-watch-full-video-button");this.api.j("web_player_updated_entrypoint")&&g.JW(this.element,"ytp-xs-mono-button-style",!0);this.liveBadge.QF("Live");g.V(this,this.liveBadge);this.api.j("web_player_updated_entrypoint")||this.api.j("delhi_modern_web_player")?this.liveBadge.Og(this.element.querySelector(".ytp-time-wrapper")):
this.liveBadge.Og(this.element);this.tooltip=h.l2();this.liveBadge.listen("click",this.onClick.bind(this));this.W(this.Y,"click",this.B1I);this.W(this.api,"serverstitchedvideochange",function(){iDe(Z,Z.api.getProgressState().isAtLiveHead)});
this.W(u,"presentingplayerstatechange",this.cj);this.W(u,"appresize",this.cj);this.W(u,"onLoopRangeChange",this.onLoopRangeChange);this.W(u,"videodatachange",this.onVideoDataChange);(h=u.getVideoData())&&this.updateVideoData(h);this.cj();Q5n(this,u.getLoopRange())};
iDe=function(u,h){var L=u.liveBadge.element,Z=u.api.isLifaAdPlaying();L.disabled=Z||h;!ql(u)||u.V===h&&u.C===u.isPremiere||(u.V=h,u.C=u.isPremiere,u.cj(),h?L.classList.add("ytp-live-badge-is-livehead"):L.classList.remove("ytp-live-badge-is-livehead"),u.liveBadge.QF(u.isPremiere?"Premiere":"Live"),h?u.G&&(u.G(),u.G=null,L.removeAttribute("title")):(L.title="Skip ahead to live broadcast.",u.G=g.cf(u.tooltip,u.liveBadge.element)))};
Q5n=function(u,h){var L=u.FD!==h;u.FD=h;L&&lUn(u)};
lUn=function(u){u.updateValue("clipicon",{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},Z:[{K:"path",J:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]});
u.XV&&!u.N?u.updateValue("watchfullvideo","Watch live stream"):u.updateValue("watchfullvideo","Watch full video");g.JW(u.element,"ytp-clip",TJ(u));g.JW(u.element,"ytp-live",ql(u))};
ql=function(u){var h=u.api.L().j("enable_linear_program_progress"),L=!u.api.j("clean_player_style_fix_on_web")||u.api.getPresentingPlayerType()!==2;return u.XV&&!TJ(u)&&(!h||!u.N)&&L};
TJ=function(u){return!!u.FD&&!!u.FD.postId&&u.api.getPresentingPlayerType()!==2&&(!u.FD.type||u.FD.type==="clips")};
X0V=function(u,h){g.a.call(this,{K:"div",U:"ytp-volume-panel",J:{title:"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},Z:[{K:"div",U:"ytp-volume-slider",Z:[{K:"div",U:"ytp-volume-slider-handle"}]}]});var L=this;this.api=u;this.V=h;this.Za=!1;this.Y=this.volume=0;this.C=null;this.N=this.G=this.isDragging=!1;this.V=h;this.X=u.GN();this.S=this.BX("ytp-volume-slider");this.AB=this.BX("ytp-volume-slider-handle");
this.B=new g.u5(this.S,!0);g.V(this,this.B);this.B.subscribe("dragstart",this.tiy,this);this.B.subscribe("dragmove",this.yY,this);this.B.subscribe("dragend",this.JqX,this);this.W(u,"onVolumeChange",this.onVolumeChange);this.W(u,"appresize",this.MM);this.W(u,"fullscreentoggled",this.nx);this.W(u,"onShowControls",this.oa);this.W(u,"onHideControls",this.oa);this.W(this.element,"keydown",this.cO);this.W(this.element,"focus",function(){Ys(L,L.G,L.isDragging,!0,L.api.Za())});
this.W(this.element,"blur",function(){Ys(L,L.G,L.isDragging,!1,L.api.Za())});
this.MM(u.m_().getPlayerSize());Sml(this,u.getVolume(),u.isMuted());Iv(u,this.element,this)};
Sml=function(u,h,L){var Z=Math.floor(h),y=Z+"% volume"+(L?" muted":"");L=L?0:h/100;u.updateValue("valuenow",Z);u.updateValue("valuetext",y);u.AB.style.left=(u.X?60:40)*L+"px";u.volume=h};
vOb=function(u,h){g.JW(u.element,"ytp-volume-control-hover",h);Ys(u,h,u.isDragging,u.N,u.api.Za())};
Ys=function(u,h,L,Z,y){var R=u.G||u.isDragging||u.N||u.Za;u.G=h;u.isDragging=L;u.N=Z;u.Za=y;h=u.G||u.isDragging||u.N||u.Za;R!==h&&(h?u.C=u.W(u.element,"wheel",u.TV):(u.FJ(u.C),u.C=null),g.JW(u.V,"ytp-volume-slider-active",h))};
oy=function(u,h){var L=u.L(),Z=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];L.X&&Z.push("no-link");var y={title:"{{title}}",target:L.Y,"data-priority":"5","data-sessionlink":"feature=player-button"};L.X||(y.href="{{url}}");g.a.call(this,{K:"a",CI:Z,J:y,dw:"{{logoSvg}}"});this.G=null;this.api=u;this.visible=!1;L.X||(this.G=this.listen("click",this.onClick));this.W(u,"videodatachange",this.onVideoDataChange);this.W(u,"videoplayerreset",this.onVideoDataChange);this.W(u,"onLoopRangeChange",
this.onVideoDataChange);this.W(u,"appresize",this.QZ);this.onVideoDataChange();L.X||this.addOnDisposeCallback(g.cf(h.l2(),this.element));this.QZ()};
qmn=function(u,h,L){g.UN.call(this);var Z=this;this.D=u;this.gw=h;this.xJ=L;this.e7=NaN;this.RH=this.Sd=this.playButton=this.T=this.C=this.VA=this.aH=this.AB=this.Y=this.G=this.fI=this.xl=null;this.X=new xJY(this.D);this.progressBar=new g.FJ(this.D,this.gw);this.DI=new g.vH(this.D,this.gw);this.XB=new wq1(this.D,this.gw);this.S=new g.b8(this.aR,null,this);L=u.L();this.xJ.subscribe("autohideupdate",this.W0,this);var y=!u.getPlayerStateObject().isCued(),R;u.L().j("html5_player_dynamic_bottom_gradient")?
this.fI=R=new dVe(u):R=new g.a({K:"div",U:"ytp-gradient-bottom"});g.V(this,R);g.XC(u,R.element,9);this.vX=new g.kS(R,250,y,100);g.V(this,this.vX);this.B=new g.a({K:"div",U:"ytp-chrome-bottom",Z:[{K:"div",U:"ytp-chrome-controls"}]});g.V(this,this.B);g.XC(u,this.B.element,9);this.T7=new g.kS(this.B,250,y,100);g.V(this,this.T7);this.jd=this.B.element.children[0];g.V(this,this.X);g.XC(u,this.X.element,6);this.X.subscribe("show",function(J){Z.D.Xz(!J);u.T$(Z.X,J)});
g.V(this,this.progressBar);this.progressBar.Og(this.B.element,0);y=new mD(u,h);g.V(this,y);g.XC(u,y.element,4);y=new g.pu({K:"div",U:"ytp-left-controls"});g.V(this,y);y.Og(this.jd);u.j("delhi_modern_web_player")||(R=new g.ex(u,h,!1),g.V(this,R),R.Og(y.element));u.j("web_render_jump_buttons")&&(this.Y=new dq(u,g.Jl(u.L().experiments,"web_jump_button_backward_amount")||-10),g.V(this,this.Y),this.Y.Og(y.element));L.vX||(this.playButton=new g.wq(u,h),g.V(this,this.playButton),this.playButton.Og(y.element));
u.j("web_render_jump_buttons")&&(this.AB=new dq(u,g.Jl(u.L().experiments,"web_jump_button_forward_amount")||10),g.V(this,this.AB),this.AB.Og(y.element));u.j("delhi_modern_web_player_remove_nav_buttons")||(u.j("delhi_modern_web_player")&&(R=new g.ex(u,h,!1),g.V(this,R),R.Og(y.element)),R=new g.ex(u,h,!0),g.V(this,R),R.Og(y.element));if(!u.j("delhi_modern_web_player")&&(R=new g.a({K:"span",U:"ytp-volume-area"}),g.V(this,R),R.Og(y.element),!L.Td&&(this.G=new sI(u,h),g.V(this,this.G),this.G.Og(R.element),
L.aH&&!L.S))){var p=new X0V(u,this.B.element);this.Sd=p;g.V(this,p);p.Og(R.element);R=new g.u5(R.element);g.V(this,R);R.subscribe("hoverstart",function(){var J;(J=Z.Sd)==null||vOb(J,!0)});
R=new g.u5(y.element);g.V(this,R);R.subscribe("hoverend",function(){var J;(J=Z.Sd)==null||vOb(J,!1)})}g.V(this,this.DI);
this.DI.Og(y.element);this.aH=new zO(u,this.progressBar);g.V(this,this.aH);this.aH.Og(y.element);L.j("web_key_moments_markers")&&(this.VA=new V9(u,this.progressBar),g.V(this,this.VA),this.VA.Og(y.element));u.j("delhi_modern_web_player")?(this.N=new g.pu({K:"div",U:"ytp-right-controls",Z:[{K:"div",U:Nl.RIGHT_CONTROLS_LEFT},{K:"div",U:Nl.RIGHT_CONTROLS_RIGHT}]}),u.j("delhi_modern_web_player_right_controls_separate")&&g.yN(this.N.element,"ytp-right-controls-separate")):this.N=new g.pu({K:"div",U:"ytp-right-controls"});
g.V(this,this.N);this.N.Og(this.jd);u.j("delhi_modern_web_player")&&(this.G=new sI(u,h),g.V(this,this.G),this.G.Og(this.N.BX(Nl.RIGHT_CONTROLS_LEFT)));this.ZI=new CbV(u,h);g.V(this,this.ZI);U$(this,this.ZI,"RIGHT_CONTROLS_LEFT");this.settingsButton=new cH(u,this.X);g.V(this,this.settingsButton);Pba(this.X,this.settingsButton);U$(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");y=u.getVideoData();if(L.zy||y.Rc&&L.controlsType==="1")this.C=new oy(u,h),g.V(this,this.C),this.C.Og(this.N.element);L.showMiniplayerButton&&
(this.T=new ns(u),g.V(this,this.T),U$(this,this.T,"RIGHT_CONTROLS_RIGHT"));L.xo&&(h=new Di(u,this.X),g.V(this,h),U$(this,h,"RIGHT_CONTROLS_RIGHT"));L.yf&&(h=new rq(u),g.V(this,h),U$(this,h,"RIGHT_CONTROLS_RIGHT"));g.V(this,this.XB);U$(this,this.XB,"RIGHT_CONTROLS_RIGHT");g.V(this,this.S);this.W(u,"appresize",this.QZ);this.W(u,"fullscreentoggled",this.QZ);this.W(u,"presentingplayerstatechange",this.aU);this.W(u,"videodatachange",this.onVideoDataChange);this.QZ()};
TwL=function(u,h){if(u.D.getPlayerStateObject().isCued()||h){if(h){u.T7.hide();u.vX.hide();u.G&&u.G.sU(!1);u.C&&u.C.sU(!1);u.T&&u.T.sU(!1);if(u.D.j("embeds_use_parent_visibility_in_ve_logging")){var L;(L=u.XB)==null||L.sU(!1);var Z;(Z=u.settingsButton)==null||Z.sU(!1);var y;(y=u.playButton)==null||y.sU(!1)}u.D.CY(u.lP())}}else if(!h){u.T7.show();u.vX.show();u.G&&u.G.sU(!0);u.C&&u.C.sU(!0);u.T&&u.T.sU(!0);if(u.D.j("embeds_use_parent_visibility_in_ve_logging")){var R;(R=u.XB)==null||R.sU(!0);var p;
(p=u.ZI)==null||p.sU(!0);var J;(J=u.playButton)==null||J.sU(!0)}u.W0()}};
oO1=function(u){var h=u.D.m_().getPlayerSize().width;return Math.max(h-YmR(u)*2,100)};
YmR=function(u){var h=u.D.GN(),L=u.D.getVideoData().Rc,Z=0;u.D.GN()&&u.D.isEmbedsShortsMode()&&(Z=(u.D.m_().getPlayerSize().width-u.D.getVideoContentRect().width)/2);return 12*(L?0:h?2:1)+Z};
Nwn=function(u){var h=u.D.GN()?72:50;u=u.D.L();g.nC(u)&&(h=u.j("delhi_modern_web_player")?78:62,g.v$(u)&&(h=54));return h};
U$=function(u,h,L){u.D.j("delhi_modern_web_player")?h.Og(u.N.BX(Nl[L])):h.Og(u.N.element)};
UJL=function(u){mK.call(this,u,!1);var h=this;this.suggestedActions={};this.W(this.D,"videodatachange",this.onVideoDataChange);this.W(this.D,g.hc("suggested_action_button_visible"),function(L){L=L.id;h.text=L;o_f(h);h.onClickCommand=h.suggestedActions[L];h.enabled=!0;h.ut()});
this.W(this.D,g.L2("suggested_action_button_visible"),function(L){h.enabled=!1;h.ut();h.D.removeCueRange(L.id)})};
G7a=function(u){u.suggestedActions={};u.D.qm("suggested_action_button_visible")};
HH=function(u){g.a.call(this,{K:"div",U:GJ.TITLE,Z:[{K:"div",U:GJ.TEXT,Z:[{K:"a",CI:[GJ.LINK,GJ.SESSIONLINK],J:{target:u.L().Y,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},dw:"{{title}}"},{K:"div",U:GJ.SUBTEXT,Z:["{{subtextElement}}"]}]}]});this.api=u;this.G=null;this.link=this.BX(GJ.LINK);u.createClientVe(this.element,this,23851);this.W(u,"videodatachange",this.kI);this.W(u,"videoplayerreset",this.kI);this.kI()};
HDf=function(u){u.updateValue("channelLink","");u.updateValue("channelName","");g.v$(u.api.L())?u.updateValue("channelTitleFocusable","0"):u.updateValue("channelTitleFocusable","-1")};
g.rR=function(u,h){g.a.call(this,{K:"div",Z:[{K:"div",U:"ytp-tooltip-text-wrapper",J:{"aria-hidden":"{{ariaHidden}}"},Z:[{K:"div",U:"ytp-tooltip-edu",Z:[{K:"svg",J:{height:"100%",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",J:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{K:"span",dw:"{{eduText}}"}]},{K:"div",U:"ytp-tooltip-image"},{K:"div",U:"ytp-tooltip-title",Z:[{K:"span",dw:"{{title}}"},{K:"div",U:"ytp-tooltip-keyboard-shortcut",
dw:"{{keyBoardShortcut}}"}]},{K:"div",U:"ytp-tooltip-bottom-text",Z:[{K:"span",U:"ytp-tooltip-text",dw:"{{text}}"},{K:"div",U:"ytp-tooltip-keyboard-shortcut",dw:"{{keyBoardShortcut}}"}]}]},{K:"div",U:"ytp-tooltip-bg",Z:[{K:"div",U:"ytp-tooltip-duration",dw:"{{duration}}"}]}]});var L=this;this.api=u;this.vX=h;this.AB=function(Z){(Z=Z.relatedTarget)&&g.ZO(L.G,Z)||L.Fk()};
this.C=function(Z){L.type===3&&L.Fk();(Z=Z.currentTarget)&&Z.nodeType===1&&!L.type&&(Z.removeEventListener("mouseover",L.C),Z.addEventListener("mouseout",L.AB),Z.removeEventListener("focus",L.C),Z.addEventListener("blur",L.AB),r6j(L,Z,2))};
this.RH=function(){L.Fk()};
this.type=this.G=null;this.Y=!1;this.N=null;this.X="";this.S=!0;this.scale=1;this.env=this.api.L();this.DI=this.env.N;this.bg=this.BX("ytp-tooltip-bg");this.T7=this.BX("ytp-tooltip-edu");this.image=this.BX("ytp-tooltip-image");this.text=this.BX("ytp-tooltip-text");this.bottomText=this.BX("ytp-tooltip-bottom-text");this.title=this.BX("ytp-tooltip-title");this.V=new g.kS(this,100);this.B=NaN;this.Xf=this.api.m_().getPlayerSize().width;this.XB=new g.EM(this.QHB,250,this);this.gw=new g.EM(this.Fk,5E3,
this);g.V(this,this.V);g.V(this,this.XB);g.V(this,this.gw);Az&&(u=this.BX("ytp-tooltip-text"),u.setAttribute("role","text"),u.setAttribute("aria-live","polite"))};
g.cf=function(u,h){if(u.DI)return function(){};
h.addEventListener("mouseover",u.C);h.addEventListener("focus",u.C);var L=h.getAttribute("title");L&&!h.hasAttribute("aria-label")&&h.setAttribute("aria-label",L);return function(){u.G===h&&u.Fk();h.removeEventListener("mouseover",u.C);h.removeEventListener("focus",u.C)}};
r6j=function(u,h,L,Z){if(h&&!h.hasAttribute)u=new g.aO("showElementTooltip called with non-element.",h.toString()),g.UZ(u);else{isNaN(u.B)||(u.B=NaN,u.bg.style.background="");u.G=h;u.Y=!!Z;Z?u.X=Z:(u.X=h.getAttribute("title"),h.removeAttribute("title"));g.Lc(u.element,"ytp-tooltip");var y=h.getAttribute("data-tooltip-image");y&&(u.image.style.backgroundImage="url("+y+")");Z?u.update({ariaHidden:"false"}):u.update({ariaHidden:"true"});g.JW(u.element,"ytp-tooltip-image-enabled",!!y);h=h.getAttribute("data-tooltip-opaque");
g.JW(u.element,"ytp-tooltip-opaque",!!h);u.type=L;u.api.addEventListener("appresize",u.RH);u.S&&(BwR(u),u.V.show(0))}};
BwR=function(u){if(u.G){var h=u.G.getAttribute("data-tooltip-text");if(u.X&&u.G.getAttribute("aria-label")!==u.X)var L=u.X;var Z=u.G.getAttribute("aria-keyshortcuts"),y=u.G.getAttribute("data-title-no-tooltip");Z&&y&&(L=g.cI("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:y,SHORTCUT_KEY:Z}));L&&u.G.setAttribute("aria-label",L);if(h&&!u.Y){Z=u.G;u.updateValue("text",h);L=Z.getAttribute("data-duration");u.update({title:u.X,duration:L});Z=Z.getAttribute("data-preview");y=243*u.scale;var R=
141*u.scale;u.bg.style.width=y+"px";u.bg.style.height=R+"px";u.bg.style.backgroundImage=Z?"url("+Z+")":"";u.bg.style.backgroundSize=y+"px "+R+"px";g.RH(u.element,["ytp-text-detail","ytp-preview"]);g.JW(u.element,"ytp-has-duration",!!L)}else u.updateValue("text",u.X),Z&&u.env.j("delhi_modern_web_player")&&(u.updateValue("text",y),u.updateValue("keyBoardShortcut",Z.toUpperCase())),g.Kc(u.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);z5b(u,!!h)}};
z5b=function(u,h,L,Z){var y=Math.min(u.Xf,300*u.scale);u.element.style.maxWidth=h?"":y+"px";u.vX.Kx(u.element,u.G,L,u.type===1,Z);u.element.style.top?g.yN(u.element,"ytp-bottom"):u.element.style.bottom&&g.yN(u.element,"ytp-top");u.type===3&&u.gw.start()};
mJY=function(u,h){g.JW(u.element,"ytp-preview",h>=0);if(!(h<0||h===u.B)){u.B=h;h=243*u.scale;var L=141*u.scale,Z=Rga(u.N,u.B,h);VPa(u.bg,Z,h,L,!0);u.XB.start()}};
dJa=function(u){var h=u.G;u.type===3&&u.gw.stop();u.api.removeEventListener("appresize",u.RH);u.Y||h.setAttribute("title",u.X);u.X="";u.G=null;u.updateValue("keyBoardShortcut","")};
nOl=function(u){g.a.call(this,{K:"button",CI:["ytp-watch-later-button","ytp-button"],J:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.MW(u.L()))},Z:[{K:"div",U:"ytp-watch-later-icon",dw:"{{icon}}"},{K:"div",U:"ytp-watch-later-title",dw:"Watch later"}]});this.D=u;this.icon=null;this.visible=this.isRequestPending=this.G=!1;mnf(u);u.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.W(u,"videoplayerreset",this.onReset);this.W(u,"appresize",
this.oz);this.W(u,"videodatachange",this.oz);this.W(u,"presentingplayerstatechange",this.oz);this.oz();u=this.D.L();var h=g.Gj("yt-player-watch-later-pending");u.B&&h?(Tib(),VQi(this)):this.kI(2);g.JW(this.element,"ytp-show-watch-later-title",g.MW(u));Iv(this.D,this.element,this)};
s5a=function(u){var h=u.D.getPlayerSize(),L=u.D.L(),Z=u.D.getVideoData(),y=g.MW(L)&&g.iM(u.D)&&g.F(u.D.getPlayerStateObject(),128),R=L.X;return L.qr&&h.width>=240&&!Z.isAd()&&Z.qr&&!y&&!g.$H(Z)&&!u.D.isEmbedsShortsMode()&&!R};
w0Y=function(u,h){J9Y(g.B$(u.D.L()),"wl_button",function(){Tib({videoId:h});window.location.reload()})};
VQi=function(u){if(!u.isRequestPending){u.isRequestPending=!0;u.kI(3);var h=u.D.getVideoData();h=u.G?h.removeFromWatchLaterCommand:h.addToWatchLaterCommand;var L=u.D.L0(),Z=u.G?function(){u.G=!1;u.isRequestPending=!1;u.kI(2);u.D.L().V&&u.D.hB("WATCH_LATER_VIDEO_REMOVED")}:function(){u.G=!0;
u.isRequestPending=!1;u.kI(1);u.D.L().N&&u.D.KO(u.element);u.D.L().V&&u.D.hB("WATCH_LATER_VIDEO_ADDED")};
e$(L,h).then(Z,function(){u.isRequestPending=!1;u.kI(4,"An error occurred. Please try again later.");u.D.L().V&&u.D.hB("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}};
e5R=function(u,h){if(h!==u.icon){switch(h){case 3:var L=En();break;case 1:L=Am();break;case 2:L={K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:L={K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",
XJ:!0,J:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}u.updateValue("icon",L);u.icon=h}};
g.BH=function(){g.ul.apply(this,arguments);this.J8=(this.uY=g.MW(this.api.L()))&&(this.api.L().N||k7()||bA());this.W9=48;this.s7=69;this.Z4=this.jZ=null;this.pz=[];this.jX=this.P7=this.Vw=this.Ub=this.Wh=null;this.sI=[];this.contextMenu=this.Ja=this.overflowButton=this.yg=this.bS=this.searchButton=this.copyLinkButton=this.shareButton=this.j3=this.D$=this.title=this.channelAvatar=this.IG=this.tooltip=null;this.Fn=!1;this.Ct=this.E3=this.rI=this.Fl=null;this.gt=this.sY=this.xA=!1};
aUl=function(u){var h=u.api.L(),L=g.F(u.api.getPlayerStateObject(),128);return h.B&&L&&!u.api.isFullscreen()};
$Js=function(u){if(u.Bo()&&!u.api.isEmbedsShortsMode()&&u.yg){var h=u.api.j("web_player_hide_overflow_button_if_empty_menu");!u.j3||h&&!s5a(u.j3)||OWV(u.yg,u.j3);!u.shareButton||h&&!iWe(u.shareButton)||OWV(u.yg,u.shareButton);!u.copyLinkButton||h&&!XJs(u.copyLinkButton)||OWV(u.yg,u.copyLinkButton)}else{if(u.yg){h=u.yg;for(var L=g.C(h.actionButtons),Z=L.next();!Z.done;Z=L.next())Z.value.detach();h.actionButtons=[]}u.searchButton&&!g.ZO(u.D$.element,u.searchButton.element)&&u.searchButton.Og(u.D$.element);
u.j3&&!g.ZO(u.D$.element,u.j3.element)&&u.j3.Og(u.D$.element);u.shareButton&&!g.ZO(u.D$.element,u.shareButton.element)&&u.shareButton.Og(u.D$.element);u.copyLinkButton&&!g.ZO(u.D$.element,u.copyLinkButton.element)&&u.copyLinkButton.Og(u.D$.element)}};
tQs=function(u,h,L){h=L?h.lastElementChild:h.firstElementChild;for(var Z=null;h;){if(c7(h,"display")!=="none"&&h.getAttribute("aria-hidden")!=="true"){var y=void 0;h.tabIndex>=0?y=h:y=tQs(u,h,L);y&&(Z?L?y.tabIndex>Z.tabIndex&&(Z=y):y.tabIndex<Z.tabIndex&&(Z=y):Z=y)}h=L?h.previousElementSibling:h.nextElementSibling}return Z};
WOl=function(u,h,L){if(u.api.j("web_player_nitrate_promo_tooltip")&&u.api.getPresentingPlayerType(!0)!==2){var Z=u.api.getVideoData(1);if(Z==null?0:Z.tooltipRenderer){Z=Z.tooltipRenderer;var y;if(y=!u.Ct){if(!(h=!h)){var R,p,J;h=((R=Z.tooltipDisplayStrategy)==null?void 0:R.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((p=Z.promoConfig)==null?void 0:p.promoId)!=="dtip-edu-player-iseecaptions"&&((J=Z.promoConfig)==null?void 0:J.promoId)!=="dtip-edu-player-tc-m2"}y=h}y&&(u.Ct=new ICf(Z,u.api),
g.V(u,u.Ct),g.XC(u.api,u.Ct.element,9));var O;(O=u.Ct)==null||Chw(O,Z,L)}}};
g.zJ=function(u){g.Tl.call(this,u);this.chrome=null;this.load()};
FOV=function(){for(var u=mE.length;u<4;u++){var h=g.kJ("VIDEO");h.load();mE.push(new g.K8(h))}};
bDR=function(u,h,L,Z){var y=L.getVideoData(),R=h.getVideoData();if(L.getPlayerState().isError())return{msg:"player-error"};var p=R.X;if(h.V$()>Z/1E3+1)return{msg:"in-the-past"};if(R.isLivePlayback&&!isFinite(Z))return{msg:"live-infinite"};(Z=h.yQ())&&Z.isView()&&(Z=Z.mediaElement);if(Z&&Z.xu().length>12&&g.f3(y))return{msg:"played-ranges"};if(!y.X)return null;if(!p)return{msg:"no-pvd-formats"};if(!y.X.G||!p.G)return{msg:"non-dash"};Z=p.videoInfos[0];var J=y.X.videoInfos[0];u.V&&Wu(R)&&(Z=h.fv(),J=
L.fv());if(!Z||!J)return{msg:"no-video-info"};if(u.X&&(wF(Z)||wF(J)))return{msg:"av1"};h=u.G&&R.LV()&&fl();if(J.containerType!==Z.containerType)if(h)R.IH("sgap",{ierr:"container"});else return{msg:"container"};if(u.N&&!h&&(J.QA!==Z.QA||J.QA===""||Z.QA===""))return{msg:"codec"};if(u.B&&J.video&&Z.video&&Math.abs(J.video.width/J.video.height-Z.video.width/Z.video.height)>.01)return{msg:"ratio"};if(g.f3(R)&&g.f3(y))return{msg:"content-protection"};p=p.G[0];y=y.X.G[0];L=p.audio;var O=y.audio;if(L.sampleRate!==
O.sampleRate&&!g.TI)if(h)R.IH("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:p.itag,cr:L.sampleRate,ni:y.itag,nr:O.sampleRate};return(L.numChannels||2)!==(O.numChannels||2)?{msg:"channel-count"}:u.T&&R.LV()&&Z.video.fps!==J.video.fps?{msg:"fps"}:null};
EOf=function(u,h,L){var Z=u.getVideoData(),y=h.getVideoData();if(!Z.L().supportsGaplessShorts())return{nq:"env"};if(L.C){if(Z.J3&&!Z.isAd()||y.J3&&!y.isAd())return{nq:"autoplay"}}else if(Z.J3||y.J3)return{nq:"autoplay"};if(!Z.S)return{nq:"client"};if(!u.XS())return{nq:"no-empty"};u=bDR(L,u,h,Infinity);return u!=null?{nq:u.msg}:null};
dR=function(u){g.m.call(this);this.app=u;this.T=this.B=this.N=this.G=null;this.X=1;this.events=new g.UN(this);this.events.W(this.app.pI,g.L2("gaplessshortslooprange"),this.S);g.V(this,this.events)};
k7n=function(){this.B=this.C=this.X=this.V=this.T=this.N=this.G=!1};
gOR=function(u){var h=new k7n;h.G=u.j("h5_gapless_support_types_diff");h.T=u.j("h5_gapless_error_on_fps_diff");h.V=u.j("html5_gapless_use_format_info_fix");h.X=u.j("html5_gapless_disable_on_av1")&&!u.j("html5_gapless_enable_on_av1");h.N=u.j("html5_gapless_check_codec_diff_strictly");h.C=u.j("html5_gapless_on_ad_autoplay");h.B=u.j("html5_gapless_disable_diff_aspect_radio");return h};
g.Vk=function(u,h,L,Z){Z=Z===void 0?!1:Z;$x.call(this);this.mediaElement=u;this.start=h;this.end=L;this.G=Z};
ueR=function(u,h,L,Z,y,R){R=R===void 0?0:R;g.m.call(this);var p=this;this.policy=u;this.G=h;this.N=L;this.pH=y;this.T=R;this.B=this.X=null;this.currentVideoDuration=this.C=-1;this.V=!1;this.g6=new aA;this.dN=Z-h.df()*1E3;this.g6.then(void 0,function(){});
this.timeout=new g.EM(function(){p.Kr("timeout")},1E4);
g.V(this,this.timeout);this.S=isFinite(Z);this.status={status:0,error:null}};
LRb=function(u){var h,L,Z,y,R,p,J,O,f,D;return g.G(function(c){if(c.G==1){if(u.ww())return c.return(Promise.reject(Error(u.status.error||"disposed")));u.timeout.start();h=g.nY.kx();return g.N(c,u.g6,2)}g.nY.rM("gtfta",h);L=u.G.yQ();if(L.isEnded())return u.Kr("ended_in_finishTransition"),c.return(Promise.reject(Error(u.status.error||"")));if(!u.B||!dM(u.B))return u.Kr("next_mse_closed"),c.return(Promise.reject(Error(u.status.error||"")));if(u.N.EH()!==u.B)return u.Kr("next_mse_mismatch"),c.return(Promise.reject(Error(u.status.error||
"")));Z=jos(u);y=Z.nK;R=Z.fC;p=Z.Av;u.G.h3(!1,!0);J=h4n(L,y,p,!u.N.getVideoData().isAd());u.N.setMediaElement(J);(O=u.G.e5())&&u.N.iQ(O.N4,O.dE);u.S&&(u.N.seekTo(u.N.getCurrentTime()+.001,{zl:!0,Xq:3,Ek:"gapless_pseudo"}),J.play(),UJ());f=L.IV();f.cpn=u.G.getVideoData().clientPlaybackNonce;f.st=""+y;f.et=""+p;u.N.IH("gapless",f);u.G.IH("gaplessTo",{cpn:u.N.getVideoData().clientPlaybackNonce});D=u.G.getPlayerType()===u.N.getPlayerType();u.G.Jr(R,!0,!1,D,u.N.getVideoData().clientPlaybackNonce);u.N.Jr(u.N.getCurrentTime(),
!0,!0,D,u.G.getVideoData().clientPlaybackNonce);u.N.xi();g.Kv(function(){!u.N.getVideoData().XB&&u.N.getPlayerState().isOrWillBePlaying()&&u.N.ZF()});
s$(u,6);u.dispose();return c.return(Promise.resolve())})};
pRV=function(u){if(u.N.getVideoData().X){var h=u.pH.L().j("html5_gapless_suspend_next_loader")&&u.T===1;u.N.N5(u.B,h,Zof(u));s$(u,3);ypY(u);var L=R4L(u);h=L.jI;L=L.dJ;h.subscribe("updateend",u.Uq,u);L.subscribe("updateend",u.Uq,u);u.Uq(h);u.Uq(L)}};
ypY=function(u){u.G.unsubscribe("internalvideodatachange",u.yx,u);u.N.unsubscribe("internalvideodatachange",u.yx,u);u.pH.L().j("html5_gapless_use_format_info_fix")&&(u.G.unsubscribe("internalvideoformatchange",u.yx,u),u.N.unsubscribe("internalvideoformatchange",u.yx,u));u.G.unsubscribe("mediasourceattached",u.yx,u);u.N.unsubscribe("statechange",u.zc,u)};
h4n=function(u,h,L,Z){u=u.isView()?u.mediaElement:u;return new g.Vk(u,h,L,Z)};
s$=function(u,h){h<=u.status.status||(u.status={status:h,error:null},h===5&&u.g6.resolve())};
Zof=function(u){return u.pH.L().j("html5_gapless_no_clear_buffer_timeline")&&u.T===1&&EX(u.G.getVideoData())};
jos=function(u){var h=u.G.yQ();h=h.isView()?h.start:0;var L=u.G.getVideoData().isLivePlayback?Infinity:u.G.Yw(!0);L=Math.min(u.dN/1E3,L)+h;var Z=u.S?100:0;u=L-u.N.V$()+Z;return{Mn:h,nK:u,fC:L,Av:Infinity}};
R4L=function(u){return{jI:u.X.G.G1,dJ:u.X.N.G1}};
wR=function(u){g.m.call(this);var h=this;this.app=u;this.T=this.N=this.G=null;this.S=!1;this.X=this.B=null;this.V=gOR(this.app.L());this.C=function(){g.Kv(function(){KRR(h)})}};
Jpa=function(u,h,L,Z,y){Z=Z===void 0?0:Z;y=y===void 0?0:y;u.XS()||e3(u);u.B=new aA;u.G=h;var R=L,p=y===0;p=p===void 0?!0:p;var J=u.app.WX(),O=J.getVideoData().isLivePlayback?Infinity:J.Yw(!0)*1E3;R>O&&(R=O-200,u.S=!0);p&&J.getCurrentTime()>=R/1E3?u.C():(u.N=J,p&&(p=R,R=u.N,u.app.pI.addEventListener(g.hc("vqueued"),u.C),p=isFinite(p)||p/1E3>R.getDuration()?p:0x8000000000000,u.T=new g.uW(p,0x8000000000000,{namespace:"vqueued"}),R.addCueRange(u.T)));p=Z/=1E3;R=h.getVideoData().G;Z&&R&&u.N&&(J=Z,O=0,
h.getVideoData().isLivePlayback&&(p=Math.min(L/1E3,u.N.Yw(!0)),O=Math.max(0,p-u.N.getCurrentTime()),J=Math.min(Z,h.Yw()+O)),p=kas(R,J)||Z,p!==Z&&u.G.IH("qvaln",{st:Z,at:p,rm:O,ct:J}));h=p;Z=u.G;Z.getVideoData().Z1=!0;Z.getVideoData().S=!0;Z.Rg(!0);R={};u.N&&(R=u.N.xz(),p=u.N.getVideoData().clientPlaybackNonce,R={crt:(R*1E3).toFixed(),cpn:p});Z.IH("queued",R);h!==0&&Z.seekTo(h+.01,{zl:!0,Xq:3,Ek:"videoqueuer_queued"});u.X=new ueR(u.V,u.app.WX(),u.G,L,u.app,y);L=u.X;L.status.status!==Infinity&&(s$(L,
1),L.G.subscribe("internalvideodatachange",L.yx,L),L.N.subscribe("internalvideodatachange",L.yx,L),L.pH.L().j("html5_gapless_use_format_info_fix")&&(L.G.subscribe("internalvideoformatchange",L.yx,L),L.N.subscribe("internalvideoformatchange",L.yx,L)),L.G.subscribe("mediasourceattached",L.yx,L),L.N.subscribe("statechange",L.zc,L),L.G.subscribe("newelementrequired",L.wS,L),L.yx());return u.B};
KRR=function(u){var h,L,Z,y,R,p,J,O,f;g.G(function(D){switch(D.G){case 1:if(u.ww()||!u.B||!u.G)return D.return();u.S&&u.app.WX().Lx(!0,!1);L=u.app.L().j("html5_force_csdai_gapful_transition")&&((h=u.app.WX())==null?void 0:h.getVideoData().isDaiEnabled());Z=null;if(!u.X||L){D.KI(2);break}g.Qn(D,3);return g.N(D,LRb(u.X),5);case 5:g.Sa(D,2);break;case 3:Z=y=g.Xf(D);case 2:if(!u.G)return D.return();g.nY.G6("vqsp",function(){u.app.xw(u.G)});
if(!u.G)return D.return();R=u.G.yQ();u.app.L().j("html5_gapless_seek_on_negative_time")&&R&&R.getCurrentTime()<-.01&&u.G.seekTo(0);g.nY.G6("vqpv",function(){u.app.playVideo()});
if(Z||L)u.G?(p=Z?Z.message:"forced",(J=u.N)==null||J.IH("gapfulfbk",{r:p}),u.G.U$(p)):(O=u.N)==null||O.IH("gapsp",{});f=u.B;e3(u);f&&f.resolve();return D.return(Promise.resolve())}})};
e3=function(u,h){h=h===void 0?!1:h;if(u.N){if(u.T){var L=u.N;u.app.pI.removeEventListener(g.hc("vqueued"),u.C);L.removeCueRange(u.T)}u.N=null;u.T=null}u.X&&(u.X.status.status!==6&&(L=u.X,L.status.status!==Infinity&&L.T!==1&&L.Kr("Canceled")),u.X=null);u.B=null;u.G&&!h&&u.G!==u.app.IP()&&u.G!==u.app.WX()&&Fa(u.G);u.G&&h&&u.G.sW();u.G=null;u.S=!1};
OoR=function(u){var h;return((h=u.X)==null?void 0:h.currentVideoDuration)||-1};
fub=function(u,h,L){if(u.XS())return"qie";if(u.G==null||u.G.G7.ww()||u.G.getVideoData()==null)return"qpd";if(h.videoId!==u.G.UX())return"vinm";if(OoR(u)<=0)return"ivd";if(L!==1)return"upt";if((L=u.X)==null)u=void 0;else if(L.getStatus().status!==5)u="niss";else if(bDR(L.policy,L.G,L.N,L.dN)!=null)u="pge";else{h=R4L(L);u=h.jI;var Z=h.dJ;h=g.Jl(L.pH.L().experiments,"html5_shorts_gapless_next_buffer_in_seconds");L=L.C+h;Z=Ll(Z.QQ(),L);u=Ll(u.QQ(),L);u=!(h>0)||Z&&u?null:"neb"}return u!=null?u:null};
DCf=function(){g.yV.call(this);var u=this;this.fullscreen=0;this.B=this.X=this.pictureInPicture=this.G=this.N=this.inline=!1;this.T=function(){u.ut()};
Duf(this.T);this.C=this.getVisibilityState(this.kJ(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Wx(),this.I_(),this.M0(),this.sA())};
i7=function(u){return!(u.isMinimized()||u.isInline()||u.isBackground()||u.Wx()||u.I_()||u.M0()||u.sA())};
cpV=function(u,h){g.m.call(this);this.X=this.B=null;this.G=u;this.N=h};
C_w=function(u){var h=u.experiments,L=h.tB.bind(h);IuR=L("html5_use_async_stopVideo");Apn=L("html5_pause_for_async_stopVideo");xC1=L("html5_not_reset_media_source");L("html5_listen_for_audio_output_changed")&&(Npn=!0);Vs=L("html5_not_reset_media_source");P_s=L("html5_not_reset_media_source");Jq=L("html5_retain_source_buffer_appends_for_debugging");LDi=L("web_enable_auto_pip")||L("web_enable_pip_on_miniplayer");L("html5_mediastream_applies_timestamp_offset")&&(fR=!0);var Z=g.Jl(h,"html5_cobalt_override_quic");
Z&&qe("QUIC",+(Z>0));(Z=g.Jl(h,"html5_cobalt_audio_write_ahead_ms"))&&qe("Media.AudioWriteDurationLocal",Z);(Z=L("html5_cobalt_enable_decode_to_texture"))&&qe("Media.PlayerConfiguration.DecodeToTexturePreferred",Z?1:0);(u.UU()||L("html5_log_cpu_info"))&&Jas();Error.stackTraceLimit=50;var y=g.Jl(h,"html5_idle_rate_limit_ms");y&&Object.defineProperty(window,"requestIdleCallback",{value:function(R){return window.setTimeout(R,y)}});
TXl(u.T);x2=L("html5_use_ump_request_slicer");Cpl=L("html5_record_now");L("html5_disable_streaming_xhr")&&(sf=!1);L("html5_byterate_constraints")&&(bp=!0);L("html5_use_non_active_broadcast_for_post_live")&&(m7=!0);L("html5_sunset_aac_high_codec_family")&&(dF["141"]="a")};
MOL=function(u){return u.slice(12).replace(/_[a-z]/g,function(h){return h.toUpperCase().replace("_","")}).replace("Dot",".")};
iol=function(u){var h={},L;for(L in u.experiments.flags)if(L.startsWith("cobalt_h5vcc")){var Z=MOL(L),y=g.Jl(u.experiments,L);Z&&y&&(h[Z]=qe(Z,y))}return h};
ay=function(u,h,L,Z,y){y=y===void 0?[]:y;g.m.call(this);this.xI=u;this.VZ=h;this.B=L;this.segments=y;this.G=void 0;this.N=new Map;y.length&&(this.G=y[0])};
Qol=function(u){if(!(u.segments.length<2)){var h=u.segments.shift();if(h){var L=h.G,Z=[];if(L.size){L=g.C(L.values());for(var y=L.next();!y.done;y=L.next()){y=g.C(y.value);for(var R=y.next();!R.done;R=y.next()){R=R.value;for(var p=g.C(R.segments),J=p.next();!J.done;J=p.next())(J=$s(J.value))&&Z.push(J);R.removeAll()}}}(L=$s(h))&&Z.push(L);Z=g.C(Z);for(L=Z.next();!L.done;L=Z.next())u.N.delete(L.value);h.dispose()}}};
tx=function(u,h,L,Z){if(!u.G||h>L)return!1;h=new ay(u.xI,h,L,u.G,Z);Z=g.C(Z);for(L=Z.next();!L.done;L=Z.next()){L=L.value;var y=$s(L);y&&y!==$s(u.G)&&u.N.set(y,[L])}u=u.G;u.G.has(h.y$())?u.G.get(h.y$()).push(h):u.G.set(h.y$(),[h]);return!0};
LT=function(u,h){return u.N.get(h)};
luw=function(u,h,L){u.N.set(h,L)};
WH=function(u,h,L,Z,y,R){return new SPl(L,L+(Z||0),!Z,h,u,y,R)};
SPl=function(u,h,L,Z,y,R,p){g.m.call(this);this.VZ=u;this.X=h;this.N=L;this.type=Z;this.B=y;this.videoData=R;this.Ku=p;this.G=new Map;OT(R)};
$s=function(u){return u.videoData.clientPlaybackNonce};
XRe=function(u){if(u.G.size)for(var h=g.C(u.G.values()),L=h.next();!L.done;L=h.next()){L=g.C(L.value);for(var Z=L.next();!Z.done;Z=L.next())Z.value.dispose()}u.G.clear()};
vCe=function(u){this.end=this.start=u};
g.Fv=function(){this.G=new Map;this.X=new Map;this.N=new Map};
g.bD=function(u,h,L,Z){g.m.call(this);var y=this;this.api=u;this.xI=h;this.playback=L;this.app=Z;this.T7=new g.Fv;this.N=new Map;this.C=[];this.T=[];this.X=new Map;this.mz=new Map;this.AB=new Map;this.VA=null;this.iP=NaN;this.wm=this.La=null;this.Ca=new g.EM(function(){qPL(y,y.iP,y.La||void 0)});
this.events=new g.UN(this);this.vJ=15E3;this.XB=new g.EM(function(){y.DI=!0;y.playback.iz(y.vJ);Tos(y);y.AR(!1)},this.vJ);
this.DI=!1;this.V=new Map;this.xl=[];this.RH=null;this.XN=new Set;this.vX=[];this.eq=[];this.jq=[];this.Td=[];this.G=void 0;this.gw=0;this.jd=!0;this.Y=!1;this.aH=[];this.Sd=new Set;this.Z1=new Set;this.Oo=new Set;this.pV=0;this.ZI=new Set;this.vj=0;this.kD=this.nH=!1;this.gm=this.B="";this.fI=null;this.zd={fKi:function(){return y.N},
uPw:function(){return y.C},
Q8a:function(){return y.X},
jo:function(R){y.onCueRangeEnter(y.N.get(R))},
SwB:function(R){y.onCueRangeExit(y.N.get(R))},
nww:function(R,p){y.N.set(R,p)},
dIa:function(R){y.gm=R},
X$:function(){return y.X$()},
Ywi:function(R){return y.AB.get(R)}};
this.playback.getPlayerType();this.playback.Pz(this);this.e7=this.xI.UU();g.V(this,this.Ca);g.V(this,this.events);g.V(this,this.XB);this.events.W(this.api,g.hc("serverstitchedcuerange"),this.onCueRangeEnter);this.events.W(this.api,g.L2("serverstitchedcuerange"),this.onCueRangeExit)};
UCV=function(u,h,L,Z,y,R,p,J){var O=YPl(u,R,R+y);u.DI&&u.RP({adaftto:1});L||u.RP({missadcon:1,enter:R,len:y,aid:J});u.S&&!u.S.sV&&(u.S.sV=J);u.kD&&u.RP({adfbk:1,enter:R,len:y,aid:J});var f=u.playback;p=p===void 0?R+y:p;R===p&&!y&&u.xI.j("html5_allow_zero_duration_ads_on_timeline")&&u.RP({attl0d:1});R>p&&E$(u,{reason:"enterTime_greater_than_return",VZ:R,nW:p});var D=f.yF()*1E3;R<D&&E$(u,{reason:"enterTime_less_than_minSeekableTime",enterMs:R,minSkMs:D},u.xI.j("html5_report_ssdai_timeline_error_as_fatal"));
f=f.getDuration()*1E3;p>f&&E$(u,{reason:"parent_return_greater_than_content_duration",nW:p,SWB:f});f=null;D=g.Kw(u.T,{nW:R},function(c,I){return c.nW-I.nW});
D>=0&&(f=u.T[D],f.nW>R&&oCb(u,h.video_id||"",R,p,f));if(O&&f)for(D=0;D<u.vX.length;D++){if(u.vX[D].identifier===O.identifier){u.vX.splice(D,1);break}}else if(O)return u.RP({rejectAttl:1}),J&&!oS(u.Td,function(c){return c===J})&&(u.RP({rejectAdBreakAttl:J},!0),u.Td.push(J)),ks(u),"";
O="ss_childplayback_"+NoR++;u.xI.j("html5_enable_ssap_entity_id")?(h=new g.rC(u.xI,h),D=h.clientPlaybackNonce):(h.cpn||(h.cpn=g.ig(16)),D=h.cpn,h=new g.rC(u.xI,h));h.YF=O;L={YF:O,playerType:Z,durationMs:y,VZ:R,nW:p,cpn:D,videoData:h,errorCount:0,ssdaiAdsConfig:L};g.DM(u.T,L,function(c,I){return c.VZ===I.VZ?c.durationMs-I.durationMs:c.VZ-I.VZ});
u.X.set(D,L);u.mz.set(O,L);u.RP({attlDone:p-R,acpn:D,et:R,prt:p});J?L.rN=J:f?L.rN=f.rN:L.rN=L.cpn;if(R=L.rN)(Z=u.AB.get(R))?(Z.push(L),g.OV(Z,function(c,I){return c.VZ-I.VZ})):u.AB.set(R,[L]);
u.XB.isActive()&&(u.DI=!1,u.XB.stop(),Tos(u),u.AR(!0));return O};
gR=function(u,h,L){return{ssvc:h,cpn:(L==null?void 0:L.cpn)||"",vid:(L==null?void 0:L.videoData.videoId)||"",ct:(u.playback.getCurrentTime()||0).toFixed(3),cmt:(u.playback.V$()||0).toFixed(3)}};
uY=function(u,h){u.api.Y9();u.api.publish("serverstitchedvideochange",h.YF,h.v6)};
h9=function(u,h,L){var Z=u.Y,y=u.X$(),R=u.B;u.B="";var p=h.hd-L.hd;Math.abs(p)>.5&&u.RP({ttdtb:1,delta:p,cpn:y.cpn,enter:h.adCpn,exit:L.adCpn,seek:Z,skip:R});u.api.j("html5_ssdai_enable_media_end_cue_range")&&u.api.dW();if(h.isAd&&L.isAd){y=!!R;if(h.adCpn&&L.adCpn){var J=u.X.get(h.adCpn);var O=u.X.get(L.adCpn)}y?u.RP({igtransskip:1,enter:h.adCpn,exit:L.adCpn,seek:Z,skip:R}):jd(u,O,J,L.hd,h.hd,Z,y)}else if(!h.isAd&&L.isAd){u.gm=y.cpn;u.api.publish("serverstitchedvideochange");J=gR(u,"a2c");u.RP(J);
u.pV=0;if(J=L.lh)u.gw=J.end;var f;L.adCpn&&(f=u.X.get(L.adCpn));f&&u.playback.aZ(f,y,L.hd,h.hd,Z,!!R)}else if(h.isAd&&!L.isAd){var D;h.adCpn&&(D=u.X.get(h.adCpn));D&&(u.gw=0,u.gm=D.cpn,uY(u,D),f=gR(u,"c2a",D),u.RP(f),u.pV=1,u.playback.aZ(y,D,L.hd,h.hd,Z,!!R))}};
L1=function(u,h,L){L=L===void 0?0:L;var Z=g.Kw(u.T,{VZ:(h+L)*1E3},function(J,O){return J.VZ-O.VZ});
Z=Z<0?(Z+2)*-1:Z;if(Z>=0)for(var y=h*1E3,R=Z;R<=Z+1&&R<u.T.length;R++){var p=u.T[R];if(y>=p.VZ-L*1E3&&y<=p.nW+L*1E3)return{Tg:p,kh:h}}return{Tg:void 0,kh:h}};
Hoe=function(u,h){var L="";(h=Gva(u,h))&&(L=h.getId());return L?u.X.get(L):void 0};
Gva=function(u,h){if(u.gm){var L=u.N.get(u.gm);if(L&&L.start-200<=h&&L.end+200>=h)return L}u=g.C(u.N.values());for(L=u.next();!L.done;L=u.next())if(L=L.value,L.start<=h&&L.end>=h)return L};
qPL=function(u,h,L){var Z=u.wm||u.app.WX().getPlayerState();ZT(u,!0);u.playback.seekTo(h,L);u=u.app.WX();h=u.getPlayerState();Z.isOrWillBePlaying()&&!h.isOrWillBePlaying()?u.playVideo():Z.isPaused()&&!h.isPaused()&&u.pauseVideo()};
ZT=function(u,h){u.iP=NaN;u.La=null;u.Ca.stop();u.VA&&h&&u.VA.gI();u.wm=null;u.VA=null};
rpV=function(u){var h=h===void 0?-1:h;var L=L===void 0?Infinity:L;for(var Z=[],y=g.C(u.T),R=y.next();!R.done;R=y.next())R=R.value,(R.VZ<h||R.nW>L)&&Z.push(R);u.T=Z;Z=g.C(u.N.values());for(y=Z.next();!y.done;y=Z.next())y=y.value,y.start>=h&&y.end<=L&&(u.playback.removeCueRange(y),u.N.delete(y.getId()),u.RP({rmAdCR:1}));Z=L1(u,h/1E3);h=Z.Tg;Z=Z.kh;if(h&&(Z=Z*1E3-h.VZ,y=h.VZ+Z,h.durationMs=Z,h.nW=y,Z=u.N.get(h.cpn))){y=g.C(u.C);for(R=y.next();!R.done;R=y.next())R=R.value,R.start===Z.end?R.start=h.VZ+
h.durationMs:R.end===Z.start&&(R.end=h.VZ);Z.start=h.VZ;Z.end=h.VZ+h.durationMs}if(h=L1(u,L/1E3).Tg){var p;Z="playback_timelinePlaybackId_"+h.YF+"_video_id_"+((p=h.videoData)==null?void 0:p.videoId)+"_durationMs_"+h.durationMs+"_enterTimeMs_"+h.VZ+"_parentReturnTimeMs_"+h.nW;u.zz("Invalid_clearEndTimeMs_"+L+"_that_falls_during_"+Z+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
BoV=function(u){u.T7.clearAll();u.N.clear();u.C=[];u.T=[];u.X.clear();u.mz.clear();u.AB.clear();u.V.clear();u.xl=[];u.RH=null;u.XN.clear();u.vX=[];u.eq=[];u.jq=[];u.Td=[];u.aH=[];u.Sd.clear();u.Z1.clear();u.Oo.clear();u.ZI.clear();u.DI=!1;u.G=void 0;u.gw=0;u.jd=!0;u.Y=!1;u.pV=0;u.vj=0;u.nH=!1;u.kD=!1;u.B="";u.XB.isActive()&&ks(u)};
mCL=function(u,h,L,Z,y,R){if(!u.kD)if(g.z4j(u,L))u.RP({gdu:"undec",seg:L,itag:y});else if(h=y7(u,h,L,Z,R),!(u.playback.getVideoData().KZ()&&(h==null?0:h.dT)))return h};
y7=function(u,h,L,Z,y){var R=u.V.get(L);if(!R){if(R=dCR(u,h))return R;h=u.pL(L-1,Z!=null?Z:2);if(y)return u.RP({misscue:y,sq:L,type:Z,prevsstate:h==null?void 0:h.Fm,prevrecord:u.V.has(L-1)}),u.V.get(L-1);if((h==null?void 0:h.Fm)===2)return u.RP({adnf:1,sq:L,type:Z,prevrecord:u.V.has(L-1)}),u.V.get(L-1)}return R};
dCR=function(u,h){h+=u.VR();if(u.xI.j("html5_lifa_overdecorate_fix"))a:{var L=1;L=L===void 0?0:L;var Z=h*1E3;u=g.C(u.T);for(var y=u.next();!y.done;y=u.next()){y=y.value;var R=y.v6?y.v6*1E3:y.VZ;if(Z>=y.VZ-L*1E3&&Z<=R+y.durationMs+L*1E3){L={Tg:y,kh:h};break a}}L={Tg:void 0,kh:h}}else u.xI.j("html5_use_time_without_threshold_first")&&(L=L1(u,h)),u.xI.j("html5_use_time_without_threshold_first")&&((Z=L)==null?0:Z.Tg)||(L=L1(u,h,1));var p;return(p=L)==null?void 0:p.Tg};
VOn=function(u,h){h=h===void 0?"":h;var L=ki(h)||void 0;if(!h||!L){var Z;u.RP({adcfg:(Z=h)==null?void 0:Z.length,dcfg:L==null?void 0:L.length})}return L};
nCj=function(u){if(u.aH.length)for(var h=g.C(u.aH),L=h.next();!L.done;L=h.next())u.onCueRangeExit(L.value);h=g.C(u.N.values());for(L=h.next();!L.done;L=h.next())u.playback.removeCueRange(L.value);h=g.C(u.C);for(L=h.next();!L.done;L=h.next())u.playback.removeCueRange(L.value);u.N.clear();u.C=[];u.T7.clearAll();u.G||(u.jd=!0)};
jd=function(u,h,L,Z,y,R,p){if(h&&L){u.gm=L.cpn;uY(u,L);var J=gR(u,"a2a",L);u.RP(J);u.pV++;u.playback.aZ(h,L,Z||0,y||0,!!R,!!p)}else u.RP({misspbkonadtrans:1,enter:(L==null?void 0:L.cpn)||"",exit:(h==null?void 0:h.cpn)||"",seek:R,skip:p})};
wRl=function(u,h,L,Z){if(Z)for(Z=0;Z<u.C.length;){var y=u.C[Z];if(y.start<h&&y.end>L){var R=y.end;y.end=h;soY(u,L,R)}else if(y.start>=h&&y.start<L&&y.end>L)y.start=L;else if(y.end>h&&y.end<=L&&y.start<h)y.end=h;else if(y.start>=h&&y.end<=L){u.playback.removeCueRange(y);if(u.aH.includes(y))u.onCueRangeExit(y);u.C.splice(Z,1);continue}Z++}else soY(u,h,L)};
soY=function(u,h,L){h=u.Sg(h,L);L=!0;g.DM(u.C,h,function(p,J){return p.start-J.start});
for(var Z=0;Z<u.C.length;){if(Z>0){var y=u.C[Z],R=u.C[Z-1];if(Math.round(R.end/1E3)>=Math.round(y.start/1E3)){R.end=y.end;y!==h?u.playback.removeCueRange(y):L=!1;u.C.splice(Z,1);continue}}Z++}if(L)for(u.playback.addCueRange(h),h=u.playback.LA("serverstitchedcuerange",36E5),h=g.C(h),L=h.next();!L.done;L=h.next())u.N.delete(L.value.getId())};
R_=function(u,h,L){if(L===void 0||!L){L=g.C(u.xl);for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value;if(h>=Z.start&&h<=Z.end)return;if(h===Z.end+1){Z.end+=1;return}}u.xl.push(new vCe(h))}};
g.z4j=function(u,h){u=g.C(u.xl);for(var L=u.next();!L.done;L=u.next())if(L=L.value,h>=L.start&&h<=L.end)return!0;return!1};
oCb=function(u,h,L,Z,y){var R;h={reason:"overlapping_playbacks",UlH:h,VZ:L,nW:Z,iEH:y.YF,HEA:((R=y.videoData)==null?void 0:R.videoId)||"",W5I:y.durationMs,s8w:y.VZ,L5y:y.nW};E$(u,h)};
E$=function(u,h,L){u.playback.Hs(h,L)};
e4j=function(u,h){var L=[];u=u.AB.get(h);if(!u)return[];u=g.C(u);for(h=u.next();!h.done;h=u.next())h=h.value,h.cpn&&L.push(h.cpn);return L};
aua=function(u,h,L){var Z=0;u=u.AB.get(L);if(!u)return-1;u=g.C(u);for(L=u.next();!L.done;L=u.next()){if(L.value.cpn===h)return Z;Z++}return-1};
$Cs=function(u,h){var L=0;u=u.AB.get(h);if(!u)return 0;u=g.C(u);for(h=u.next();!h.done;h=u.next())h=h.value,h.durationMs!==0&&h.nW!==h.VZ&&L++;return L};
tOi=function(u,h,L){var Z=!1;if(L&&(L=u.AB.get(L))){L=g.C(L);for(var y=L.next();!y.done;y=L.next())y=y.value,y.durationMs!==0&&y.nW!==y.VZ&&(y=y.cpn,h===y&&(Z=!0),Z&&!u.Z1.has(y)&&(u.RP({decoratedAd:y}),u.Z1.add(y)))}};
Tos=function(u){u.e7&&u.RP({adf:"0_"+((new Date).getTime()/1E3-u.vj)+"_isTimeout_"+u.DI})};
YPl=function(u,h,L){if(u.vX.length)for(var Z=g.C(u.vX),y=Z.next(),R={};!y.done;R={Mz:void 0},y=Z.next()){R.Mz=y.value;y=R.Mz.startSecs*1E3;var p=R.Mz.jS*1E3+y;if(h>y&&h<p||L>y&&L<p)return oS(u.jq,function(J){return function(O){return O.identifier===J.Mz.identifier}}(R))||(u.RP({adskip:h}),u.jq.push(R.Mz)),R.Mz}};
ks=function(u){u.DI=!1;u.XB.isActive()&&Tos(u);u.XB.stop();u.AR(!1)};
WR1=function(){g.bD.apply(this,arguments)};
kvl=function(u,h,L){g.m.call(this);var Z=this;this.api=u;this.timeline=h;this.playback=L;this.P6=new Map;this.C7=new Map;this.il=new Map;this.events=new g.UN(this);this.pV=0;this.Au=this.gm="";this.lk=[];this.JS=new Set;this.HZ=new g.EM(function(){Z.api.playVideo(1,Z.api.j("html5_ssap_keep_media_on_finish_segment"));Z.api.IH("ssap",{nve:""+Z.gm});FRL(Z,4)},3E4);
this.Qy="";this.DJ=new Set;this.XG=!0;this.s0=new Map;this.EJ=new Set;this.zS=this.bl=!1;this.zT="";this.x4=null;this.zd={Xay:function(){return Z.C7},
jo:function(y){if(y=Z.C7.get(y))Z.onCueRangeEnter(y)},
onCueRangeEnter:function(y){Z.onCueRangeEnter(y)},
xld:function(){return Z.bl}};
this.playback.getPlayerType();bof(this);h.X=void 0;this.events.W(this.api,g.hc("ssap"),this.onCueRangeEnter);this.events.W(this.api,"internalAbandon",this.Y$);this.api.j("html5_ssap_timeline_handle_error_and_abandon")&&this.events.W(this.api,"presentingplayerstatechange",this.TN);g.V(this,this.HZ);this.ENa=g.Jl(u.L().experiments,"html5_ssap_segment_end_media_threshold_ms")||200;this.rP=u.j("html5_disable_ssap_append_pause");this.bl=EC1(this)};
gCs=function(u,h,L,Z){for(var y=g.C(Z),R=y.next();!R.done;R=y.next()){var p=R.value;p.N||((R=$s(p),p=p.getVideoData(),R&&p&&u.playback.G7.aI().Cp(R,p,2),p)?R||(p=void 0,u.api.IH("ssap",{macac:R,maccc:(p=u.timeline.G)==null?void 0:$s(p)})):(p=void 0,u.api.IH("ssap",{mvac:R,mvcc:(p=u.timeline.G)==null?void 0:$s(p)})))}return tx(u.timeline,h,L,Z)};
jmf=function(u,h){if(!u.JS.has(u.gm)){var L=0,Z=0,y=LT(u.timeline,u.gm);if(y==null?0:y.length)for(y=g.C(y),y=y.next();!y.done;y=y.next()){Z=y.value;L=Z.y$();Z=Z.W7();break}if(!(Z>0&&Z>h*1E3+u.ENa)&&(Z=u$n(u,L))){h=!1;L=void 0;Z=g.C(Z.segments);for(y=Z.next();!y.done;y=Z.next()){y=y.value;if(h){L=y;break}$s(y)===u.gm&&(h=!0)}Z=void 0;if(L)Z=$s(L);else if(h){var R;Z=(R=u.timeline.G)==null?void 0:$s(R)}if(Z)u.finishSegmentByCpn(u.gm,Z,2,void 0);else{var p;u.api.IH("ssap",{mfnc:1,mfncc:(p=u.timeline.G)==
null?void 0:$s(p)})}}}};
EC1=function(u){return u.api.j("html5_force_ssap_gapful_switch")||u.api.j("html5_ssap_enable_legacy_browser_logic")&&!fl()};
Zjf=function(u,h,L,Z){u.il.set(h,Z);hwj(u,h,L);L8b(u,L)};
X_=function(u,h){u=LT(u.timeline,h);return(u==null?0:u.length)?u[0].y$():0};
v4=function(u,h){var L=L===void 0?!1:L;var Z=u.timeline.G;if(!Z)return{clipId:"",YV:0};var y=ytf(u,h,L);if(y)return{clipId:$s(y)||"",YV:y.y$()};u.api.IH("mci",{cs:$s(Z),mt:h,tl:xA(u),invt:!!L});return{clipId:"",YV:0}};
u7=function(u){var h=u.timeline.G;if(!h)return 0;u=0;if(h.G.size===0)return(h.W7()-h.y$())/1E3;h=h.G.values();h=g.C(h);for(var L=h.next();!L.done;L=h.next()){L=g.C(L.value);for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,u+=(Z.W7()-Z.y$())/1E3}return u};
pkf=function(u,h){return(u=RwL(u,h*1E3))?u.y$():0};
K8j=function(u,h){var L=LT(u.timeline,h);h=0;if(L==null?0:L.length)for(u=g.C(L),L=u.next();!L.done;L=u.next())L=L.value,h+=(L.W7()-L.y$())/1E3;else return u7(u);return h};
RwL=function(u,h){if(u=LT(u.timeline,u.gm)){u=g.C(u);for(var L=u.next();!L.done;L=u.next())if(L=L.value,L.y$()<=h&&L.W7()>=h)return L}};
Jtn=function(u){var h=u.playback.getVideoData();u.gm&&(u=u.P6.get(u.gm))&&(h=u);return h};
u$n=function(u,h,L){L=L===void 0?!1:L;var Z=u.timeline.G;if(Z){Z=Z.G;var y=Array.from(Z.keys());g.OV(y);h=g.Kw(y,h);h=Z.get(y[h<0?(h+2)*-1:h]);if(!L&&h){L=g.C(h);for(h=L.next();!h.done;h=L.next())if(h=h.value,h.y$()!==h.W7())return h;return u.timeline}return h&&h.length>0?h[h.length-1]:void 0}};
ytf=function(u,h,L){L=L===void 0?!1:L;var Z=u$n(u,h,L);if(Z){if(u=Z.segments,u.length){for(var y=g.C(u),R=y.next();!R.done;R=y.next())if(R=R.value,R.y$()<=h&&R.W7()>h)return R;if(L&&Z.y$()===Z.W7())return u[0]}}else u.api.IH("ssap",{ctnf:1})};
FRL=function(u,h){var L;if(u.Qy)for(L=u.lk.shift();L&&L!==u.Qy;)L=u.lk.shift();else L=u.lk.shift();if(L){if(u.JS.has(L))Ojs(u,L);else if(h===3||h===4)u.HZ.stop(),u.api.playVideo(1,u.api.j("html5_ssap_keep_media_on_finish_segment"));u.il.set(u.gm,h);u.api.IH("ssap",{onvftn:1});L8b(u,L);return!1}u.api.IH("ssap",{onvftv:1});u.HZ.stop();return!0};
Ojs=function(u,h){h=LT(u.timeline,h);if(h==null?0:h.length)u.api.pauseVideo(),u.HZ.start(h[0].Ku)};
L8b=function(u,h){var L=u.playback.getVideoData(),Z=L.clientPlaybackNonce;u.x4&&(u.events.FJ(u.x4),u.x4=null,u.playback.eI());var y=u.gm,R=!1;if(y==="")y=Z,R=!0;else if(y===void 0){var p=u.playback.G7.aI().Gh;p&&u.timeline.N.has(p)&&(y=p);u.api.IH("ssap",{mcc:y+";"+h});u.playback.Hj(new lZ("ssap.timelineerror",{e:"missing_current_cpn",pcpn:y,ccpn:h}))}if(y===h)R&&L&&fzR(u,L,R);else{p=u.il.get(y);if(!R&&(!p||p!==3&&p!==5&&p!==6&&p!==7)){var J=u.api.dW(u.gm);u.api.IH("ssap",{nmec:J,cpc:u.gm,ec:h})}p&&
p!==2||u.u$();u.gm=h;u.u$();h=LT(u.timeline,u.gm);if(h==null?0:h.length){h=h[0];J=h.getType();y!==Z&&(u.Au=y,L=u.P6.get(y));p?u.il.delete(y):p=R?1:2;u.api.j("html5_ssap_pacf_qoe_ctmp")&&J===2&&!h.N&&(u.x4=u.events.W(u.api,"onVideoProgress",u.zRI));u.api.IH("ssapt",{ostro:p,pcpn:y,ccpn:u.gm});a:{var O=u.gm;if(!u.C7.has(O))for(var f=g.C(u.C7),D=f.next();!D.done;D=f.next()){var c=g.C(D.value);D=c.next().value;c=c.next().value;if(c.getId().includes(O)){O=D;break a}}}D=O;f=u.api.L().j("html5_ssap_insert_su_before_nonvideo")&&
D!==u.gm;c=u.playback.G7.aI();if(c.Gh!==D){var I=c.WJ(c.Gh);O=c.WJ(D);c.Gh=D;O!==I&&(I.qoe&&(D=I.qoe,D.provider.xI.UU()&&D.IH("ssap",{qoesus:"1",vid:D.provider.videoData.videoId}),f&&(f=g.Xa(D.provider),Swf(D,f,"SU")),isNaN(D.C)||g.PS(D.C)),O.resume())}f=Math.max(0,p1(u,y));O=u.playback.getCurrentTime();D=Math.max(0,O-X_(u,u.gm)/1E3);O=h.getVideoData();c=p===3||p===5||p===6||p===7;u.api.j("html5_ssap_skip_illegal_seeking")&&(I=u.playback.getPlayerState(),I=!g.F(I,8)&&g.F(I,16),c=c||I,I&&u.api.IH("ssap",
{iis:1}));I=u.playback;var A=y,x=u.gm,Q=u.playback.getPlayerState();I.G7.aI().Mq(A,x,f,D,!1,c,Q,!0);u.api.IH("ssapt",{ostri:p,pcpn:y,ccpn:u.gm});var S;f=y;D=u.gm;c=(S=u.s0.get(y))!=null?S:(0,g.vC)();aY1(f,D,Z,O,c,L);u.s0.delete(y);R?L=void 0:L||u.api.IH("ssap",{pvdm:y+";"+u.gm,pvdmc:u.gm===Z?"1":"0"});u.api.IH("ssap",{tpac:y+";"+u.gm,tpcc:Z,tpv:(O==null?0:O.ih())?"1":"0"},!1,1);u.api.L().j("html5_ssap_cleanup_player_switch_ad_player")&&u.api.Y9();u.api.publish("videodatachange","newdata",O,J,L,p);
h.N||u.playback.getVideoData().publish("dataupdated");u.JS.delete(y);u.Qy="";O&&J===1?fzR(u,O):u.playback.IH("ssap",{nis:u.gm});J===2?u.pV++:u.pV=0}}};
fzR=function(u,h,L){L=L===void 0?!1:L;if(h.startSeconds&&u.XG){var Z=h.startSeconds;h=LT(u.timeline,h.clientPlaybackNonce);if(h==null?0:h.length)Z+=h[0].y$()/1E3,u.api.j("htm5_ssap_ignore_initial_seek_if_too_big")&&Z>=u.uq()||(u.playback.seekTo(Z,{ZQ:!0}),u.XG=!1,u.playback.IH("ssap",{is:u.gm,co:L?"1":"0",tse:Z.toFixed()}))}};
hwj=function(u,h,L){h=LT(u.timeline,h);if(h!=null&&h.length&&(h=u$n(u,h[0].y$()))){h=g.C(h.segments);for(var Z=h.next();!Z.done;Z=h.next()){Z=Z.value;if($s(Z)===L)break;if(Z=$s(Z)){var y=u.C7.get(Z);y&&u.playback.removeCueRange(y);u.C7.delete(Z)}}}};
YU=function(u){return u.playback.getVideoData().clientPlaybackNonce};
r3i=function(u,h){if(u.bl&&u.gm!==h)return!1;if(u.rP)return!0;if(h=u.C7.get(h))if(h=h.getId().split(","),h.length>1)for(var L=0;L<h.length;L++){var Z=L<h.length-1?h[L+1]:"";if(u.JS.has(h[L]))return h[L]===u.gm&&!u.JS.has(Z)}return!0};
kVf=function(u,h,L){ytf(u,h)||u.playback.IH("ssap",{ilgsk:h.toFixed(),mep:L?"1":"0",tl:xA(u)})};
p1=function(u,h){h=h||u.gm;var L=u.P6.get(h);return L?L.VA:h!==YU(u)?0:u.playback.getVideoData().VA};
xA=function(u){var h=u.gm;h||(h=u.playback.getVideoData().clientPlaybackNonce);var L,Z,y=Array.from((Z=(L=u.timeline.G)==null?void 0:L.G.values())!=null?Z:[]);L=[];if(y==null?0:y.length)for(Z=g.C(y),y=Z.next();!y.done;y=Z.next())if(y=y.value,y.length&&y[0]&&(y=y[0].segments,y.length)){y=g.C(y);for(var R=y.next();!R.done;R=y.next()){var p=R.value;R="st."+p.y$()+";";R+="et."+p.W7()+";";var J=$s(p);J&&(R+="cpn."+J+";",R+="a."+(h===J?1:0)+";");if(p=p.getVideoData())J=void 0,R+="vid."+((J=p.videoId)!=
null?J:"nvd");L.push(R)}}return(L.length?L.join(","):"empty."+h)+";cpcpn."+u.jh()};
bof=function(u){u.playback.oZ(Array.from(u.C7.values()));u.C7.clear()};
cti=function(u,h,L,Z){g.m.call(this);var y=this;this.api=u;this.xI=h;this.G=L;this.app=Z;this.T=new Map;this.N=[];this.X=this.V=null;this.AB=NaN;this.C=this.B=this.Y=null;this.S=new g.EM(function(){DYn(y,y.AB,y.Y||void 0)});
this.RH=[];this.XB=new g.EM(function(){var R=y.RH.pop();if(R){var p=R.YF,J=R.playerVars;R=R.playerType;J&&(J.prefer_gapless=!0,y.api.preloadVideoByPlayerVars(J,R,NaN,"",p),y.RH.length&&g.kK(y.XB,4500))}});
this.events=new g.UN(this);this.zd={n0a:function(){return y.N}};
this.G.getPlayerType();g.V(this,this.S);g.V(this,this.XB);g.V(this,this.events);this.events.W(this.api,g.hc("childplayback"),this.onCueRangeEnter);this.events.W(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.W(this.api,"presentingplayerstatechange",this.TN)};
PFf=function(u,h,L,Z,y,R){var p=h.cpn,J=h.docid||h.video_id||h.videoId||h.id,O=u.G;R=R===void 0?y+Z:R;if(y>R)return K1(u,"enterAfterReturn enterTimeMs="+y+" is greater than parentReturnTimeMs="+R.toFixed(3),p,J),"";var f=O.yF()*1E3;if(y<f)return K1(u,"enterBeforeMinSeekable enterTimeMs="+y+" is less than parentMinSeekableTimeMs="+f,p,J),"";f=O.getDuration()*1E3;if(R>f)return O="returnAfterDuration parentReturnTimeMs="+R.toFixed(3)+" is greater than parentDurationMs="+f+". And timestampOffset in seconds is "+
O.df(),K1(u,O,p,J),"";f=null;for(var D=g.C(u.N),c=D.next();!c.done;c=D.next()){c=c.value;if(y>=c.VZ&&y<c.nW)return K1(u,"overlappingEnter",p,J),"";if(R<=c.nW&&R>c.VZ)return K1(u,"overlappingReturn",p,J),"";if(R===c.VZ)return K1(u,"outOfOrder",p,J),"";y===c.nW&&(f=c)}p="cs_childplayback_"+IzY++;J={lh:J9(Z,!0),dN:Infinity,target:null};var I={YF:p,playerVars:h,playerType:L,durationMs:Z,VZ:y,nW:R,sT:J};u.N=u.N.concat(I).sort(function(Q,S){return Q.VZ-S.VZ});
f?Atl(u,f,{lh:J9(f.durationMs,!0),dN:f.sT.dN,target:I}):(h={lh:J9(y,!1),dN:y,target:I},u.T.set(h.lh,h),O.addCueRange(h.lh));h=!0;if(u.G===u.app.WX()&&(O=O.getCurrentTime()*1E3,O>=I.VZ&&O<I.nW)){var A=u.app.WX().getPlayerState(),x=O-I.VZ;Lv(function(){xYY(u,I,x/1E3,{},A)});
h=!1}h&&(u.RH.unshift(I),g.kK(u.XB,0));return p};
J9=function(u,h){return new g.uW(Math.max(0,u-5E3),h?0x8000000000000:u-1,{namespace:"childplayback",priority:9})};
CFi=function(u,h,L,Z){u.X=Z;u.api.Lp(u.G,L,h)};
Mji=function(u,h,L,Z){u.X=Z;Z=h.YF;var y=h.playerVars,R=h.playerType;u.V=h;y&&(u.xI.j("html5_enable_ssap_entity_id")&&(y.cached_load=!0),u.api.enqueueVideoByPlayerVars(y,R,L,Z))};
Atl=function(u,h,L){var Z=h.sT;h.sT=L;OQ(u,h)&&(L=u.app.WX(),Z.lh===u.X&&f1(u),L.removeCueRange(Z.lh),L.addCueRange(h.sT.lh))};
f1=function(u){u.V=null;u.X=null;u.api.XS()||u.api.clearQueue()};
ijR=function(u,h){OQ(u,h)||K1(u,"childPlaybackIsNotPresenting");return h.nW===h.VZ+h.durationMs?h.VZ+u.app.WX().getCurrentTime()*1E3:h.nW};
Qml=function(u,h){var L=0;u=g.C(u.N);for(var Z=u.next();!Z.done;Z=u.next()){Z=Z.value;var y=Z.VZ/1E3+L,R=y+Z.durationMs/1E3;if(y>h)break;if(R>h)return{Tg:Z,kh:h-y};L=R-Z.nW/1E3}return{Tg:null,kh:h-L}};
DYn=function(u,h,L){L=L===void 0?{}:L;var Z=u.C||u.app.WX().getPlayerState();DT(u,!0);h=isFinite(h)?h:u.G.Vf();var y=Qml(u,h);h=y.kh;var R=(y=y.Tg)&&!OQ(u,y)||!y&&u.G!==u.app.WX(),p=h*1E3;p=u.X&&u.X.start<=p&&p<=u.X.end;!R&&p||f1(u);y?xYY(u,y,h,L,Z):lzY(u,h,L,Z)};
lzY=function(u,h,L,Z){var y=u.G;y!==u.app.WX()&&u.app.PV();y.seekTo(h,Object.assign({},{Ek:"application_timelinemanager"},L));SGw(u,Z)};
xYY=function(u,h,L,Z,y){var R=OQ(u,h);if(!R){h.playerVars.prefer_gapless=!0;u.xI.j("html5_enable_ssap_entity_id")&&(h.playerVars.cached_load=!0);var p=new g.rC(u.xI,h.playerVars);p.YF=h.YF;u.api.wc(p,h.playerType)}p=u.app.WX();R||p.addCueRange(h.sT.lh);p.seekTo(L,Object.assign({},{Ek:"application_timelinemanager"},Z));SGw(u,y)};
SGw=function(u,h){u=u.app.WX();var L=u.getPlayerState();h.isOrWillBePlaying()&&!L.isOrWillBePlaying()?u.playVideo():h.isPaused()&&!L.isPaused()&&u.pauseVideo()};
DT=function(u,h){u.AB=NaN;u.Y=null;u.S.stop();u.B&&h&&u.B.gI();u.C=null;u.B=null};
OQ=function(u,h){u=u.app.WX();return!!u&&u.getVideoData().YF===h.YF};
XkY=function(u){var h=u.N.find(function(y){return OQ(u,y)});
if(h){var L=u.app.WX();f1(u);var Z=new g.EF(8);h=ijR(u,h)/1E3;lzY(u,h,{},Z);L.IH("forceParentTransition",{childPlayback:1});u.G.IH("forceParentTransition",{parentPlayback:1})}};
qGa=function(u,h,L){h=h===void 0?-1:h;L=L===void 0?Infinity:L;for(var Z=h,y=L,R=g.C(u.T),p=R.next();!p.done;p=R.next()){var J=g.C(p.value);p=J.next().value;J=J.next().value;J.dN>=Z&&J.target&&J.target.nW<=y&&(u.G.removeCueRange(p),u.T.delete(p))}Z=h;y=L;R=[];p=g.C(u.N);for(J=p.next();!J.done;J=p.next())if(J=J.value,J.VZ>=Z&&J.nW<=y){var O=u;O.V===J&&f1(O);OQ(O,J)&&O.app.PV()}else R.push(J);u.N=R;Z=Qml(u,h/1E3);h=Z.Tg;Z=Z.kh;h&&(Z*=1E3,vFl(u,h,Z,h.nW===h.VZ+h.durationMs?h.VZ+Z:h.nW));(h=Qml(u,L/1E3).Tg)&&
K1(u,"Invalid clearEndTimeMs="+L+" that falls during playback={timelinePlaybackId="+(h.YF+" video_id="+h.playerVars.video_id+" durationMs="+h.durationMs+" enterTimeMs="+h.VZ+" parentReturnTimeMs="+h.nW+"}.Child playbacks can only have duration updated not their start."))};
vFl=function(u,h,L,Z){h.durationMs=L;h.nW=Z;Z={lh:J9(L,!0),dN:L,target:null};Atl(u,h,Z);OQ(u,h)&&u.app.WX().getCurrentTime()*1E3>L&&(h=ijR(u,h)/1E3,L=u.app.WX().getPlayerState(),lzY(u,h,{},L))};
K1=function(u,h,L,Z){u.G.IH("timelineerror",{e:h,cpn:L?L:void 0,videoId:Z?Z:void 0})};
YGb=function(u){u&&u!=="web"&&T_R.includes(u)};
A9=function(u,h){g.m.call(this);var L=this;this.data=[];this.X=u||NaN;this.N=h||null;this.G=new g.EM(function(){cJ(L);I_(L)});
g.V(this,this.G)};
oFi=function(u){cJ(u);return u.data.map(function(h){return h.value})};
cJ=function(u){var h=(0,g.vC)();u.data.forEach(function(L){L.expire<h&&xn(u,L,!0)});
u.data=g.KN(u.data,function(L){return!(L.expire<h)})};
xn=function(u,h,L){L&&u.N&&u.N(h.value)};
I_=function(u){u.G.stop();var h=Infinity;for(var L=g.C(u.data),Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.expire<h&&(h=Z.expire);h&&isFinite(h)&&(h=Math.max(h-Date.now(),100),u.G.start(h))};
PJ=function(){g.m.call(this);this.G=new A9(5,null);g.V(this,this.G);this.N=new A9(15,null);g.V(this,this.N)};
TWb=function(u,h){return h?!!u.G.get(h):!1};
N_f=function(u,h){u.dataset.version=h};
Hjs=function(u){g.a.call(this,{K:"div",CI:["html5-video-player"],J:{tabindex:u.L().disableOrganicUi?"":"-1",id:u.webPlayerContextConfig?u.webPlayerContextConfig.rootElementId:u.config.attrs.id},Z:[{K:"div",U:g.BK.VIDEO_CONTAINER,J:{"data-layer":"0"}}]});var h=this;this.app=u;this.Nz=this.BX(g.BK.VIDEO_CONTAINER);this.nh=new g.ZE(0,0,0,0);this.RV=null;this.WN=new g.ZE(0,0,0,0);this.Pt=this.H$=this.iC=NaN;this.UP=this.jB=this.jz=this.Pw=!1;this.Yd=NaN;this.OY=!1;this.oB=null;this.vg=function(){h.element.focus({preventScroll:!0})};
this.g4=function(){h.app.pI.publish("playerUnderlayVisibilityChange","visible");h.RV.classList.remove(g.BK.VIDEO_CONTAINER_TRANSITIONING);h.RV.removeEventListener(uo,h.g4);h.RV.removeEventListener("transitioncancel",h.g4)};
var L=this.element.addEventListener,Z=this.element.removeEventListener;this.addEventListener=function(R,p,J){L.apply(h.element,[R,p,J])};
this.removeEventListener=function(R,p,J){Z.apply(h.element,[R,p,J])};
var y=u.L();y.transparentBackground&&this.wW("ytp-transparent");y.controlsType==="0"&&this.wW("ytp-hide-controls");g.yN(this.element,"ytp-exp-bottom-control-flexbox");g.yN(this.element,"ytp-modern-caption");y.j("enable_new_paid_product_placement")&&!g.wS(y)&&g.yN(this.element,"ytp-exp-ppp-update");y.j("html5_enable_ssap")&&g.yN(this.element,"ytp-ssap");g.yN(this.element,"ytp-livebadge-color");y.j("delhi_modern_web_player")&&g.yN(this.element,"ytp-delhi-modern");N_f(this.element,UYf(u));this.Mg=!1;
this.Dc=new g.II(NaN,NaN);G4e(this);this.W(u.pI,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
G4e=function(u){function h(){u.RV&&C1(u);Md(u)!==u.OY&&u.resize()}
function L(p,J){u.Lg(p,J)}
function Z(p){p.getVideoData()&&u.updateVideoData(p.getVideoData())}
function y(){u.WN=new g.ZE(0,0,0,0);u.nh=new g.ZE(0,0,0,0)}
var R=u.app.pI;R.addEventListener("initializingmode",y);R.addEventListener("videoplayerreset",Z);R.addEventListener("videodatachange",L);R.addEventListener("presentingplayerstatechange",h);u.addOnDisposeCallback(function(){R.removeEventListener("initializingmode",y);R.removeEventListener("videoplayerreset",Z);R.removeEventListener("videodatachange",L);R.removeEventListener("presentingplayerstatechange",h)})};
B_R=function(u){var h=u.app.WX(),L=h=h?h.getVideoData():null;if(h==null?0:g.dC(h))L=u.app.pI.getVideoData();if(L){if(g.Qq(L)||g.ln(L)||g.SS(L))return 16/9;if(tV(L)&&L.X.G)return u=L.X.videoInfos[0].video,rta(u.width,u.height)}return(u=u.RV)?rta(u.videoWidth,u.videoHeight):16/9};
zwl=function(u,h,L,Z){var y=L,R=rta(h.width,h.height);u.Pw?y=L<R?Infinity:0:isNaN(u.Pt)?isNaN(u.H$)||(y=u.H$):y=u.Pt;isFinite(y)||(y=Math.max(L,R));u=y>R?{width:h.width,height:h.width/y,aspectRatio:y}:y<R?{width:h.height*y,height:h.height,aspectRatio:y}:{width:h.width,height:h.height,aspectRatio:R};Z||isNaN(L)||(L>y?u.width=u.height*L:L<y&&(u.height=u.width/L),u.aspectRatio=L);return u};
rta=function(u,h){return Math.abs(mYj*h-u)<1||Math.abs(mYj/u-h)<1?mYj:u/h};
Md=function(u){if(u.app.getAppState()===1)return!1;if(u.app.getAppState()===6)return!0;var h=u.app.WX();if(!h||h.Hm())return!1;u=u.app.pI.getPlayerStateObject();h=!g.F(u,2)||h&&h.getVideoData().S;var L=g.F(u,1024);return u&&h&&!L&&!u.isCued()};
C1=function(u){var h=u.app.L().controlsType==="3"&&!u.UP&&Md(u)&&!u.app.kG||!1;u.RV.controls=h;u.RV.tabIndex=h?0:-1;u.app.L().B&&(u.RV.ariaHidden=h||u.app.L().j("video_element_aria_hidden_ks")?"false":"true");h?u.RV.removeEventListener("focus",u.vg):u.RV.addEventListener("focus",u.vg)};
dYl=function(u){var h=u.Oe(),L=1,Z=!1,y=zwl(u,h,u.getVideoAspectRatio()),R=u.app.L(),p=R.j("enable_desktop_player_underlay"),J=Xdb(),O=g.Jl(R.experiments,"player_underlay_min_player_width");O=p&&u.jz&&u.getPlayerSize().width>O;if(Md(u)){var f=B_R(u);var D=isNaN(f)||g.$w||a$&&g.PC||O;ai&&!g.Cw(601)?f=y.aspectRatio:D=D||R.controlsType==="3";D?O?(D=R.j("place_shrunken_video_on_left_of_player")?16:u.getPlayerSize().width-h.width-16,f=Math.max((u.getPlayerSize().height-h.height)/2,0),D=new g.ZE(D,f,h.width,
h.height),u.RV.style.setProperty("border-radius","12px")):D=new g.ZE(0,0,h.width,h.height):(L=y.aspectRatio/f,D=new g.ZE((h.width-y.width/L)/2,(h.height-y.height)/2,y.width/L,y.height),L===1&&g.PC&&(f=D.width-h.height*f,f>0&&(D.width+=f,D.height+=f)));g.JW(u.element,"ytp-fit-cover-video",Math.max(D.width-y.width,D.height-y.height)<1);if(J||u.Mg)u.RV.style.display="";u.OY=!0}else{D=-h.height;ai?D*=window.devicePixelRatio:g.eJ&&(D-=window.screen.height);D=new g.ZE(0,D,h.width,h.height);if(J||u.Mg)u.RV.style.display=
"none";u.OY=!1}yz(u.WN,D)||(u.WN=D,g.qW(R)?(u.RV.style.setProperty("width",D.width+"px","important"),u.RV.style.setProperty("height",D.height+"px","important")):g.iL(u.RV,D.getSize()),Z=new g.O6(D.left,D.top),g.xX(u.RV,Math.round(Z.x),Math.round(Z.y)),Z=!0);h=new g.ZE((h.width-y.width)/2,(h.height-y.height)/2,y.width,y.height);yz(u.nh,h)||(u.nh=h,Z=!0);g.Oz(u.RV,"transform",L===1?"":"scaleX("+L+")");p&&O!==u.jB&&(O&&(u.RV.addEventListener(uo,u.g4),u.RV.addEventListener("transitioncancel",u.g4),u.RV.classList.add(g.BK.VIDEO_CONTAINER_TRANSITIONING)),
u.jB=O,u.app.pI.publish("playerUnderlayVisibilityChange",u.jB?"transitioning":"hidden"));return Z};
VjV=function(){this.csn=g.S9();this.clientPlaybackNonce=null;this.elements=new Set;this.X=new Set;this.G=new Set;this.N=new Set};
nFe=function(u){if(u.csn!==g.S9())if(u.csn==="UNDEFINED_CSN")u.csn=g.S9();else{var h=g.S9(),L=g.ls();if(h&&L){u.csn=h;for(var Z=g.C(u.elements),y=Z.next();!y.done;y=Z.next())(y=y.value.visualElement)&&y.isClientVe()&&h&&L&&(g.MI("combine_ve_grafts")?Mm(PK(),y,L):g.EC(g.aE)(void 0,h,L,y))}if(h)for(u=g.C(u.G),L=u.next();!L.done;L=u.next())(L=L.value.visualElement)&&L.isClientVe()&&g.gD(h,L)}};
g.iY=function(u,h,L,Z){g.m.call(this);var y=this;this.logger=new g.F_("App");this.kG=this.kB=!1;this.L_={};this.Kh=[];this.JZ=!1;this.A$=null;this.intentionalPlayback=!1;this.Tl=!0;this.Wz=!1;this.ON=this.c$=null;this.kf=!0;this.mediaElement=this.FD=null;this.Uj=NaN;this.zK=!1;this.hq=this.Q7=this.AM=this.Zv=this.screenLayer=this.playlist=null;this.DQ=[];this.kR=0;this.zd={L0B:function(){return y.P_},
m7:function(){return y.AM},
q6:function(p){y.AM=p},
uB:function(p,J){y.AM&&y.AM.uB(p,J)}};
this.logger.debug("constructor begin");this.config=EKR(h||{});this.webPlayerContextConfig=L;OcY();h=this.config.args||{};this.xI=new H$(h,L,L?L.canaryState:this.config.assets.player_canary_state,Z,this);g.V(this,this.xI);C_w(this.xI);Z=iol(this.xI);this.xI.UU()&&this.DQ.push({key:"h5vcc",value:Z});this.xI.experiments.tB("jspb_serialize_with_worker")&&$Il();this.xI.experiments.tB("gzip_gel_with_worker")&&zPa();this.xI.N&&!sm1&&(window.addEventListener(Az?"touchstart":"click",FOV,{capture:!0,passive:!0}),
sm1=!0);this.j("html5_onesie")&&(this.BV=new vO(this.xI),g.V(this,this.BV));this.BA=jt(Q6(this.xI)&&!0,h.enablesizebutton);this.rg=jt(!1,h.player_wide);this.visibility=new DCf;g.V(this,this.visibility);this.j("web_log_theater_mode_visibility")&&this.c5(jt(!1,h.player_wide));this.kB=jt(!1,h.external_list);this.events=new g.UN(this);g.V(this,this.events);this.j("start_client_gcf")&&(Yo(Gt(),{TK:RD,oU:RPs()}),this.Sv=Gt().resolve(RD),Jne(this.Sv));this.ZZw=new h7;g.V(this,this.ZZw);this.dC=new VjV;Z=
new LU;this.pI=new g.xq(this,Z);g.V(this,this.pI);this.template=new Hjs(this);g.V(this,this.template);this.appState=1;this.YW=wkV(this);g.V(this,Z);Z={};this.ge=(Z.internalvideodatachange=this.NL,Z.playbackready=this.qUa,Z.playbackstarted=this.Zaw,Z.statechange=this.JMI,Z);this.YK=new Qh(this.pI);this.Eo=ewV(this);Z=this.j("html5_load_wasm");h=this.j("html5_allow_asmjs");if(Z&&azR||h)this.xI.Gz=BRL(this.Eo,h),pn(Rd(this.xI.Gz,function(p){y.xI.Mm=p;var J;(J=y.WX())==null||J.IH("wasm",{a:p.Ew})}),function(p){g.G3(p);
p="message"in p&&p.message||p.toString()||"";var J;(J=y.WX())==null||J.IH("wasm",{e:p})});
else if(Z&&!azR){var R;(R=this.WX())==null||R.IH("wasm",{e:"wasm unavailable"})}this.T3=new wVi(this.xI,this.Eo);this.pI.publish("csiinitialized");R=10;g.SM(this.xI)&&(R=3);sb(this.xI)&&(R=g.Jl(this.xI.experiments,"tvhtml5_unplugged_preload_cache_size"));R=new A9(R,function(p){p!==y.HJ(p.getPlayerType())&&Fa(p)});
g.V(this,R);this.P_=new cpV(R,{});R=$Yn(this);this.P_.gQ(R.AG);tja(this);R={};this.BT=(R.airplayactivechange=this.onAirPlayActiveChange,R.airplayavailabilitychange=this.onAirPlayAvailabilityChange,R.beginseeking=this.uy,R.sabrCaptionsDataLoaded=this.Lz,R.endseeking=this.ly,R.internalAbandon=this.Y$,R.internalaudioformatchange=this.UD,R.internalvideodatachange=this.onVideoDataChange,R.internalvideoformatchange=this.Z6,R.liveviewshift=this.bHB,R.playbackstalledatstart=this.YoH,R.progresssync=this.dmB,
R.onAbnormalityDetected=this.In,R.onSnackbarMessage=this.onSnackbarMessage,R.onLoadProgress=this.onLoadProgress,R.SEEK_COMPLETE=this.S8,R.SEEK_TO=this.Wvw,R.onVideoProgress=this.onVideoProgress,R.onLoadedMetadata=this.onLoadedMetadata,R.onAutoplayBlocked=this.onAutoplayBlocked,R.onPlaybackPauseAtStart=this.Yky,R.playbackready=this.QVB,R.statechange=this.Zs,R.newelementrequired=this.Ti,R.heartbeatparams=this.hY,R.videoelementevent=this.lf,R.drmoutputrestricted=this.onDrmOutputRestricted,R.signatureexpired=
this.ZWy,R.nonfatalerror=this.SkI,R.reloadplayer=this.DmH,R);this.c8=new g.UN(this);g.V(this,this.c8);this.bL=new PJ;g.V(this,this.bL);this.E5=this.JU=-1;this.nS=new g.EM(this.template.resize,16,this.template);g.V(this,this.nS);this.oV=new cti(this.pI,this.xI,this.IP(),this);this.Qc=new ay(this.xI);this.dZ=new wR(this);g.V(this,this.dZ);this.eV=new dR(this);g.V(this,this.eV);YGb(this.xI.G.c);this.events.W(this.pI,g.hc("appapi"),this.iaw);this.events.W(this.pI,g.L2("appapi"),this.Haa);this.events.W(this.pI,
g.hc("appprogressboundary"),this.Ndy);this.events.W(this.pI,g.L2("applooprange"),this.Mw);this.events.W(this.pI,"presentingplayerstatechange",this.TN);this.events.W(this.pI,"resize",this.vSI);this.template.Og(V2(document,u));this.events.W(this.pI,"offlineslatestatechange",this.ZH7);this.events.W(this.pI,"sabrCaptionsTrackChanged",this.oSB);this.events.W(this.pI,"sabrCaptionsBufferedRangesUpdated",this.phI);this.Eo.D.L().jY&&zl(this.Eo,"offline");this.xI.xl&&g.qz("ux",g.zJ);u=g.Jl(this.xI.experiments,
"html5_defer_fetch_att_ms");this.dk=new g.EM(this.Qlg,u,this);g.V(this,this.dk);this.iF().ih()&&(g.rN()&&this.iF().gw.push("remote"),W8n(this));this.T3.tick("fs");F8a(this);this.xI.xl&&zl(this.Eo,"ux",!0);g.MW(this.Eo.D.L())&&zl(this.Eo,"embed");this.j("web_player_sentinel_is_uniplayer")||g.G3(new g.aO("Player experiment flags missing","web_player_sentinel_is_uniplayer"));u=this.j("web_player_sentinel_yt_experiments_sync");R=g.MI("web_player_sentinel_yt_experiments_sync");u!==R&&g.G3(new g.aO("b/195699950",
{yt:u,player:R}));L||g.G3(new g.aO("b/179532961"));this.RY=bjn(this);if(L=g.Jl(this.xI.experiments,"html5_block_pip_safari_delay"))this.s5=new g.EM(this.wk,L,this),g.V(this,this.s5);GT=this.xI.vj;L=g.Jl(this.xI.experiments,"html5_performance_impact_profiling_timer_ms");L>0&&(this.xH=new g.Q$(L),g.V(this,this.xH),this.events.W(this.xH,"tick",function(){y.mT&&EFY.rM("apit",y.mT);y.mT=EFY.kx()}));
this.pI.publish("applicationInitialized");this.logger.debug("constructor end")};
bjn=function(u){function h(L){L.stack&&L.stack.indexOf("player")!==-1&&(u.WX()||u.IP()).Db(L)}
H3.subscribe("handleError",h);FB.push(h);return function(){H3.unsubscribe("handleError",h);var L=FB.indexOf(h);L!==-1&&FB.splice(L,1)}};
$Yn=function(u){var h=new g.rC(u.xI,u.config.args);u.pI.publish("initialvideodatacreated",h);return g.Q7(u,1,h)};
tja=function(u){var h=u.IP();h.setPlaybackRate(u.xI.B?1:k4b(u,Number(g.Gj("yt-player-playback-rate"))||1));h.Cm(u.ge,u);h.z0()};
ewV=function(u){var h="",L=UYf(u);L.indexOf("//")===0&&(L=u.xI.protocol+":"+L);var Z=L.lastIndexOf("/base.js");Z!==-1&&(h=L.substring(0,Z+1));if(L=Error().stack)if(L=L.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))L=L[1],L.includes(h)||g.G3(Error("Player module URL mismatch: "+(L+" vs "+h+".")));h=new CDn(u.pI,h);gFw(u,h);return h};
gFw=function(u,h){var L={};L=(L.destroyed=function(){u.onApiChange()},L);
h.X=L};
wkV=function(u){if(u.xI.storeUserVolume){u=g.Gj("yt-player-volume")||{};var h=u.volume;u={volume:isNaN(h)?100:g.pX(Math.floor(h),0,100),muted:!!u.muted}}else u={volume:100,muted:u.xI.mute};return u};
lY=function(u){u.mediaElement=u.xI.deviceIsAudioOnly?new g.K8(g.kJ("AUDIO")):mE.pop()||new g.K8(g.kJ("VIDEO"));g.V(u,u.mediaElement);var h=u.WX();h&&h.setMediaElement(u.mediaElement);try{u.xI.Td?(u.Q7&&u.events.FJ(u.Q7),u.Q7=u.events.W(u.mediaElement,"volumechange",u.U1i)):(u.mediaElement.v5(u.YW.muted),u.mediaElement.setVolume(u.YW.volume/100))}catch(y){u.Kr("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(y&&typeof y==="object"&&"message"in y&&typeof y.message==="string"&&y.message.replace(/[;:,]/g,
"_")));return}g.Tj(u.c8);una(u);h=u.template;var L=u.mediaElement.lP();h.RV=L;h.UP=!1;h.RV.parentNode||hf(h.Nz,h.RV,0);h.WN=new g.ZE(0,0,0,0);dYl(h);C1(h);L=h.RV;g.yN(L,"video-stream");g.yN(L,g.BK.MAIN_VIDEO);var Z=h.app.L();Z.RF&&L.setAttribute("data-no-fullscreen","true");Z.j("html5_local_playsinline")?"playsInline"in vX()&&(L.playsInline=!0):Z.T2&&(L.setAttribute("webkit-playsinline",""),L.setAttribute("playsinline",""));Z.eO&&h.RV&&h.W(L,"click",L.play,L);try{u.mediaElement.activate()}catch(y){u.Kr("html5.missingapi",
2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(y&&typeof y==="object"&&"message"in y&&typeof y.message==="string"&&y.message.replace(/[;:,]/g,"_")))}};
hXj=function(u){if(!jMf(u)){var h=u.IP().yQ();h&&(h=h.Xl(),h instanceof Promise&&h.catch(function(){}));
Sd(u,yj(u.getPlayerStateObject()))}};
una=function(u){var h=u.mediaElement;on()?u.c8.W(h,"webkitpresentationmodechanged",u.jbI):window.document.pictureInPictureEnabled&&(u.c8.W(h,"enterpictureinpicture",function(){u.Q_(!0)}),u.c8.W(h,"leavepictureinpicture",function(){u.Q_(!1)}));
WS&&(u.c8.W(h,"webkitbeginfullscreen",function(){u.AC(3)}),u.c8.W(h,"webkitendfullscreen",function(){u.AC(0)}))};
Ld1=function(u,h){var L=h.getPlayerType(),Z=u.P_.HJ(L);h!==u.IP()&&h!==Z&&(Z==null||Fa(Z),u.P_.N[L]=h)};
ZZn=function(u,h){h=h===void 0?!0:h;u.logger.debug("start clear presenting player");var L;if(L=u.hq){L=u.hq;var Z=u.mediaElement;L=!!Z&&Z===L.mediaElement}L&&(u.h3(),lY(u));if(L=u.WX())L.h3(!h),L.u6(u.BT,u),L.getPlayerType()!==1&&Fa(L);u.P_.X=null;u.logger.debug("finish clear presenting player")};
g.Q7=function(u,h,L,Z){var y=u.T3;h===2&&(y=new wVi(u.xI));return new g.CK(u.xI,h,y,u.template,function(R,p,J){u.pI.publish(R,p,J)},function(){return u.pI.getVisibilityState()},u.visibility,u,L,Z)};
yrf=function(u,h,L,Z){u=g.Q7(u,h,L,Z);u.z0();return u};
Xw=function(u,h){return u.Aa(h)?u.IP():h};
vJ=function(u,h){var L=u.WX(),Z=u.IP();return L&&h===Z&&u.Aa(h)&&u.Aa(L)?L:h};
Kdb=function(u){u.logger.debug("start application playback");if(u.IP().getPlayerState().isError())u.logger.debug("start application playback done, player in error state");else{var h=qd(u);u.iF().isLoaded();h&&u.RC(6);RXn(u);Y$R(u.Eo)||pNV(u)}};
pNV=function(u){if(!qd(u)){var h=dI(u.Eo);h&&!h.created&&M31(u.Eo)&&(u.logger.debug("reload ad module"),h.create())}};
RXn=function(u){u.logger.debug("start presenter playback");var h=u.getVideoData(),L=u.Eo;Y$R(L)||L.eM();!azR&&L.D.j("html5_allow_asmjs")&&rxb(L);zl(L,"embed");zl(L,"kids");zl(L,"remote");zl(L,"miniplayer");zl(L,"offline");zl(L,"unplugged");zl(L,"ypc",!1,!0);zl(L,"ypc_clickwrap",!1,!0);zl(L,"yto",!1,!0);zl(L,"webgl",!1,!0);oss(L)||(zl(L,"captions",!0),zl(L,"endscreen"),L.Um()||L.v1(),zl(L,"creatorendscreen",!0));L.qV();u.pI.publish("videoready",h)};
Tp=function(u){u=u.iF();u.ih();return Bz(u)};
F8a=function(u){u.logger.debug("start prepare initial playback");u.Bu();var h=u.config.args;lY(u);var L=u.iF();u.pI.EX("onVolumeChange",u.YW);if(h&&WDR(h)){var Z=ms(u.xI);Z&&!u.kB&&(h.fetch=0);var y=g.MW(u.xI);y&&!u.kB&&(h.fetch=0);Yn(u,h);g.MW(u.xI)&&u.T3.tick("ep_pr_s");if(!Z||u.kB)if(y&&!u.kB)Jrj(u);else if(!L.ih())u.playlist.onReady(function(){o_(u)})}u.xw(u.IP());
g.F(u.IP().getPlayerState(),128)||(h=fKL(!u.xI.deviceIsAudioOnly),h==="fmt.noneavailable"?u.Kr("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):h==="html5.missingapi"?u.Kr(h,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):L&&L.ih()&&Tp(u)&&(u.xI.Qs||u.xI.Cr)?Nd(u):L.Yp?u.j("embeds_enable_full_length_inline_muted_autoplay")?u.pI.mutedAutoplay({durationMode:L.mutedAutoplayDurationMode}):u.pI.mutedAutoplay():g.Gj("yt-player-playback-on-reload")?(g.pM("embedsItpPlayedOnReload",{playedOnReload:!0,
isLoggedIn:!!u.xI.XB}),g.UO("yt-player-playback-on-reload",!1),Nd(u)):$y(u.xI)||OZn(u),g.nC(u.xI)||nS(u.xI)==="MWEB"?(g.bw(g.k9(),function(){UQ(u)}),g.bw(g.k9(),function(){MsR()})):(UQ(u),MsR()),u.logger.debug("finish prepare initial playback"))};
UQ=function(u){if(!u.j("use_rta_for_player"))if(u.j("fetch_att_independently"))g.kK(u.dk);else{var h=u.getVideoData().botguardData;h&&g.Yg(h,u.xI,u.getVideoData().Ul||"")}};
OZn=function(u){u.logger.debug("start initialize to CUED mode");u.pI.publish("initializingmode");u.RC(2);u.j("embeds_web_enable_defer_loading_remote_js")&&g.wS(u.xI)?g.bw(g.k9(),function(){zl(u.Eo,"remote")}):zl(u.Eo,"remote");
zl(u.Eo,"miniplayer");u.logger.debug("initialized to CUED mode")};
Nd=function(u){u.logger.debug("start initialize application playback");var h=u.IP();if(g.F(h.getPlayerState(),128))return!1;var L=h.getVideoData();Tp(u)&&u.xI.Cr&&(mE.length&&u.kG?(Gp(u,{muted:!1,volume:u.YW.volume},!1),HJ(u,!1)):mE.length||u.YW.muted||(Gp(u,{muted:!0,volume:u.YW.volume},!1),HJ(u,!0)));Tp(u)&&g.MW(u.xI)&&L.mutedAutoplay&&(Gp(u,{muted:!0,volume:u.YW.volume},!1),HJ(u,!0));L.y5&&Gp(u,{muted:!0,volume:u.YW.volume},!1);f6f(u,1,L,!1);u.pI.publish("initializingmode");u.xw(u.IP());u.RC(3);
var Z;if(!(Z=!u.xI.gN)){if(Z=u.hq){Z=u.hq;var y=u.mediaElement;Z=!!y&&y===Z.mediaElement}Z=Z&&u.JZ}Z&&(u.h3(),lY(u),h.setMediaElement(u.mediaElement));h.wx();if(g.F(h.getPlayerState(),128))return!1;L.z2||Sd(u,3);return u.JZ=!0};
qd=function(u){u=MT(u.Eo);return!!u&&u.loaded};
Dan=function(u,h){if(!u.FD)return!1;var L=u.FD.startTimeMs*.001-1,Z=u.FD.endTimeMs*.001;u.FD.type==="repeatChapter"&&Z--;return Math.abs(h-L)<=1E-6||Math.abs(h-Z)<=1E-6||h>=L&&h<=Z};
ArY=function(u){var h=u.WX();h&&Wu(h.getVideoData())&&!h.e8()&&(h=crf(u)*1E3-u.getVideoData().Oi,u.j("html5_gapless_new_slr")?(u=u.eV,I6i(u.app,"gaplessshortslooprange"),h=new g.uW(0,h,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(u=u.app.WX())&&u.addCueRange(h)):u.setLoopRange({startTimeMs:0,endTimeMs:h,type:"shortsLoop"}))};
xas=function(u){var h=u.IP();if(!(g.F(h.getPlayerState(),64)&&u.iF().isLivePlayback&&u.FD.startTimeMs<5E3)){if(u.FD.type==="repeatChapter"){var L,Z=(L=oTn(u.uP()))==null?void 0:L.Vg(),y;L=(y=u.getVideoData())==null?void 0:y.dD;Z instanceof g.ul&&L&&(y=L[MS(L,u.FD.startTimeMs)],Z.renderChapterSeekingAnimation(0,y.title));isNaN(Number(u.FD.loopCount))?u.FD.loopCount=0:u.FD.loopCount++;u.FD.loopCount===1&&u.pI.hB("innertubeCommand",u.getVideoData().g8)}Z={Ek:"application_loopRangeStart"};if(u.FD.type===
"clips"||u.FD.type==="shortsLoop")Z.seekSource=58;h.seekTo(u.FD.startTimeMs*.001,Z)}};
k4b=function(u,h){var L=u.pI.getAvailablePlaybackRates();h=Number(h.toFixed(2));u=L[0];L=L[L.length-1];h<=u?h=u:h>=L?h=L:(u=Math.floor(h*100+.001)%5,h=u===0?h:Math.floor((h-u*.01)*100+.001)/100);return h};
crf=function(u,h){h=u.HJ(h);if(!h)return 0;h=Xw(u,h);return r6(u,h.Yw(),h)};
r6=function(u,h,L){if(u.Aa(L)){L=L.getVideoData();if(BJ(u))L=h;else{u=u.oV;for(var Z=g.C(u.N),y=Z.next();!y.done;y=Z.next())if(y=y.value,L.YF===y.YF){h+=y.VZ/1E3;break}Z=h;u=g.C(u.N);for(y=u.next();!y.done;y=u.next()){y=y.value;if(L.YF===y.YF)break;var R=y.VZ/1E3;if(R<h)Z+=y.durationMs/1E3+R-y.nW/1E3;else break}L=Z}return L}return h};
PJl=function(u,h){if(u.getPresentingPlayerType()===3)return yj(MT(u.Eo).ex);if((u.getVideoData().enableServerStitchedDai||g.dC(u.getVideoData()))&&h===2){var L,Z;return((L=u.Zv)==null?0:L.UA(u.getCurrentTime()))||((Z=u.AM)==null?0:Z.UA())?u.JU:-1}return h!==2||u.Aa()?u.JU:u.E5};
W8n=function(u){u.logger.debug("reset for new application playback");zp(u);u.setLoopVideo(!1);u.setLoopRange(null);u.pI.publish("legacyadtrackingpingreset");u.L_={};u.Kh=[];$SR(u.T3);if(u.Zv){var h=u.Zv,L=u.IP();L.getPlayerType();ZT(h,!1);rpV(h);BoV(h);h.playback=L}h=u.oV;u=u.IP();u.getPlayerType()!==1&&K1(h,"invalidParentVideoPlayerType");DT(h,!1);qGa(h);h.G=u};
Jrj=function(u,h){var L=(h?h:u.iF()).AJ;u.T3.tick("ep_pr_r");if(L!=null&&(kOL(u.playlist,L),u.Wz))u.playlist.onReady(function(){o_(u,h)})};
Yn=function(u,h){u.playlist&&(g.Ju(u.playlist),u.playlist=null);h&&(u.kB&&(h.fetch=0),u.playlist=new txn(u.xI,h))};
CJs=function(u){var h,L=Number((h=u.getVideoData().progressBarEndPosition)==null?void 0:h.utcTimeMillis)/1E3;!isNaN(L)&&(h=u.Nr())&&(h-=u.getCurrentTime(),L=(L-h)*1E3,h=u.L_.progressEndBoundary,(h==null?void 0:h.start)!==L&&(h&&u.oZ([h]),L=new g.uW(L,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),u.IP().addCueRange(L),u.L_.progressEndBoundary=L))};
Sd=function(u,h){u.logger.debug(function(){return"set external state "+h});
var L=u.WX();if(L){var Z=L.getPlayerType();if(Z===2&&!u.Aa()){u.E5!==h&&(u.E5=h,u.pI.EX("onAdStateChange",h));return}if(Z===2&&u.Aa()||Z===5||Z===6||Z===7)if(h===-1||h===0||h===5)return}if(h===0){if(u.FD)return;if((L==null?0:L.lm())&&g.SM(u.xI)){u.playVideo();return}}u.JU!==h&&(u.JU=h,u.pI.EX("onStateChange",h))};
MHi=function(u,h,L,Z,y){Z=Z===void 0?Infinity:Z;y=y===void 0?0:y;u.logger.debug(function(){return"Enqueuing playerType="+L+" at time="+Z+"\n        videoId="+h.videoId});
var R=u.WX();L=L||R.getPlayerType();(R=f6f(u,L,h,!0))||(R=yrf(u,L,h).AG);var p=u.IP();if(L===2&&p){var J=R.getVideoData();p.WF(J.clientPlaybackNonce,J.eq||"",J.breakType||0,J.fV,J.videoId||"")}u.Lp(R,Z,0,y)};
iZ1=function(u,h,L,Z,y){var R="";R=u.xI.j("html5_autonav_autoplay_in_preload_key")?m9(u,L,h):d6(u,L,h.videoId,h.YF);u.logger.debug(function(){return"start preload video "+R+", trigger="+y});
var p="",J=u.WX();if(J&&(p=u.xI.j("html5_autonav_autoplay_in_preload_key")?m9(u,J.getPlayerType(),J.getVideoData()):d6(u,J.getPlayerType(),J.getVideoData().videoId,J.getVideoData().YF),R===p))return J.Rg(!0),h.dispose(),null;h.Z1=!0;h=yrf(u,L,h);L===1&&sb(u.xI)||h.Rg(!0);u.P_.G.set(R,h.AG,Z||3600);return h};
QMa=function(u,h,L,Z){var y=RO(L);return d6(u,h,y,Z,L.autonav==="1"||L.autonav===!0,L.autoplay==="1"||L.autoplay===!0||L.autoplay===1)};
m9=function(u,h,L){return d6(u,h,L.videoId,L.YF,L.isAutonav,L.OF)};
d6=function(u,h,L,Z,y,R){y=y===void 0?!1:y;R=R===void 0?!1:R;h=h+"_"+L+"_"+Z;u.xI.j("html5_autonav_autoplay_in_preload_key")&&(h+="_"+ +y+ +R);return h};
f6f=function(u,h,L,Z){var y=u.xI.j("html5_autonav_autoplay_in_preload_key")?m9(u,h,L):d6(u,h,L.videoId,L.YF);var R=u.P_.G.get(y)||null;if(!R||R.G7.ww())return null;u.P_.G.remove(y);if(g.F(R.getPlayerState(),128))return Fa(R),null;if(R===u.HJ(h))return u.T3.infoGel({isCacheHit:!0}),R;if((R.getVideoData().oauthToken||L.oauthToken)&&R.getVideoData().oauthToken!==L.oauthToken)return null;h===1&&zp(u);Z||u.xw(R,!0);u.T3.infoGel({isCacheHit:!0});return R};
l6R=function(u,h){var L;return!h||!u.xI.SY||(L=u.getVideoData())!=null&&L.backgroundable?!1:(u.s5?u.s5.start():u.wk(),!0)};
V7=function(u,h,L){h&&(h=u.HJ(L))&&h===u.IP()&&(h.getVideoData().ol=!0)};
n1=function(u,h,L){L=L===void 0?1:L;u.logger.debug(function(){return"start cue video, vid "+h.videoId+", type "+L});
if(h.ih()){var Z=g.Q7(u,L,h).AG;u.cancelPlayback(4,L);u.xw(Z);Z.z0();if(L===1){u.RC(1);if(g.MW(u.xI)&&!eS(h)){h.dispose();Fa(u.IP());return}OZn(u)}u.logger.debug("finish cue video")}else u.logger.debug(function(){return"invalid VideoData in cueVideo"}),h.dispose(),(Z=u.HJ(L))&&Fa(Z),Kab(u.iF())&&L===2&&u.Y9()};
S9Y=function(u,h,L,Z,y){h=q7Y(h,L,Z,y);(L=g.MW(u.xI)&&!u.xI.RH)&&!u.kB&&(h.fetch=0);Yn(u,h);g.MW(u.xI)&&u.T3.tick("ep_a_pr_s");if(L&&!u.kB)L=u.iF(),jyY(L,h).then(function(R){u.Wz=!0;Jrj(u,R)});
else u.playlist.onReady(function(){o_(u)});
g.MW(u.xI)&&u.T3.tick("ep_a_pr_r")};
o_=function(u,h){var L=g.MW(u.xI)&&!u.xI.RH,Z=L&&h?h:g.XW(u.playlist);h=L&&h?h:u.getVideoData();Z&&(h.J3&&(u.xI.Qs||u.xI.Cr)||!u.Tl?(h=h.ol,Z=u.wc(Z,1),h&&V7(u,Z)):n1(u,Z,1));g.MW(u.xI)&&u.T3.tick("ep_p_l");u.Wz=!1;u.pI.fH("onPlaylistUpdate")};
jMf=function(u){if(u.playlist&&g.v$(u.xI)&&u.TR()){var h=u.xI.j("html5_player_autonav_logging");u.nextVideo(!1,h);return!0}return!1};
XNs=function(u,h,L,Z,y,R,p){h={id:h,namespace:p!=null?p:"appapi"};R==="chapter"?(h.style=gi.CHAPTER_MARKER,h.visible=!0):isNaN(y)||(R==="ad"?h.style=gi.AD_MARKER:(h.style=gi.TIME_MARKER,h.color=y),h.visible=!0);u.Tp([new g.uW(L*1E3,Z*1E3,h)],1);return!0};
vIY=function(u,h,L,Z,y,R){R=R===void 0?!0:R;var p=u.Nr();if(!p)return R&&u.getVideoData().isLivePlayback&&u.Kh.push({id:h,Q7I:L,Ypg:Z}),!1;R=p-u.getCurrentTime();return XNs(u,h,L-R,Z-R,void 0,void 0,y)};
q9w=function(u,h){u.Kh=g.KN(u.Kh,function(p){return p.id!==h});
for(var L=u.IP(),Z=L.Ue(),y=0;y<Z.length;y++){var R=Z[y];if(R.getId()===h)return L.removeCueRange(R),sQ(u,"cuerangesremoved",[R]),!0}return!1};
I6i=function(u,h,L){var Z=u.HJ(L);Z&&(h=Z.qm(h),L&&u.getPresentingPlayerType()!==L||sQ(u,"cuerangesremoved",h))};
TPa=function(u){var h=(0,g.vC)(),L=u.getCurrentTime();u=u.getVideoData();L=1E3*(L-u.startSeconds);u.isLivePlayback&&(L=0);return h-Math.max(L,0)};
Gp=function(u,h,L){u.xI.aH&&(u.YW=h,h.muted||HJ(u,!1),L&&u.xI.storeUserVolume&&!u.xI.Td&&(L={volume:Math.floor(h.volume),muted:h.muted},L.unstorable||(g.UO("yt-player-volume",L),g.UO("yt-player-volume",L,2592E3))),Y9e(u),L=g.TI&&u.mediaElement&&!u.mediaElement.D7(),u.xI.Td&&!L||u.pI.EX("onVolumeChange",{muted:h.muted,volume:h.volume,unstorable:!u.xI.storeUserVolume}))};
Y9e=function(u){var h=u.getVideoData();if(!h.Mt){h=u.xI.Td?1:y$n(h);var L=u.mediaElement;L.v5(u.YW.muted);try{L.setVolume(u.YW.volume*h/100)}catch(Z){g.G3(new g.aO("b183742307","multiplier: "+h+", volume: "+u.YW.volume))}}};
HJ=function(u,h){h!==u.kG&&(u.kG=h,u.pI.fH("onMutedAutoplayChange",h))};
pU=function(u){return u.kG&&u.getVideoData().mutedAutoplay};
oI1=function(u){var h=x9(!0);return h&&(h===u.template.element||u.mediaElement&&h===u.mediaElement.lP())?h:null};
Uaf=function(u,h){var L=window.screen&&window.screen.orientation;if((u.xI.j("lock_fullscreen2")||u.xI.S)&&L&&L.lock&&(!g.TI||!NPb))if(h){h=L.type.indexOf("portrait")===0;var Z=u.template.getVideoAspectRatio(),y=h;Z<1?y=!0:Z>1&&(y=!1);if(!u.zK||y!==h){L=L.lock(y?"portrait":"landscape");if(L!=null)L["catch"](function(){});
u.zK=!0}}else u.zK&&(u.zK=!1,L.unlock())};
sQ=function(u,h,L){u.pI.publish(h,L);var Z=g.SM(u.xI)||g.qW(u.xI)||g.rp(u.xI);if(L&&Z){switch(h){case "cuerangemarkersupdated":var y="onCueRangeMarkersUpdated";break;case "cuerangesadded":y="onCueRangesAdded";break;case "cuerangesremoved":y="onCueRangesRemoved"}y&&u.pI.hB(y,L.map(function(R){return{getId:function(){return this.id},
end:R.end,id:R.getId(),namespace:R.namespace==="ad"?"ad":"",start:R.start,style:R.style,visible:R.visible}}))}};
w6=function(u,h,L,Z,y,R){L=L===void 0?!0:L;var p=u.HJ(y);p&&(p.getPlayerType()===2&&!u.Aa(p)||g.C3(p.getVideoData()))||(u.getPresentingPlayerType()===3?MT(u.Eo).tY("control_seek",h,L):(p&&p===u.IP()&&u.FD&&!Dan(u,h)&&u.setLoopRange(null),u.seekTo(h,L,Z,y,R)))};
GEb=function(u,h,L,Z){L&&(u.h3(),lY(u));L=u.WX();L.Sz(h);var y=u.getVideoData(),R={};R.video_id=y.videoId;R.adformat=y.adFormat;if(!y.isLivePlayback||u.j("html5_reload_live_playback_to_current_time"))R.start=L.getCurrentTime(),R.resume="1";y.isLivePlayback&&L3(y)&&g.Qr(u.xI)&&(R.live_utc_start=L.Nr(),R.resume="1");y.RH&&(R.vvt=y.RH);y.C&&(R.vss_credentials_token=y.C,R.vss_credentials_token_type=y.Mv);y.oauthToken&&(R.oauth_token=y.oauthToken);y.Wp&&(R.force_gvi=y.Wp);R.autoplay=1;R.reload_count=y.nH+
1;R.reload_reason=h;y.W4&&(R.unplugged_partner_opt_out=y.W4);y.Gz&&(R.ypc_is_premiere_trailer=y.Gz);y.playerParams&&(R.player_params=y.playerParams);u.loadVideoByPlayerVars(R,void 0,!0,void 0,void 0,Z);h==="signature"&&u.Zv&&pNV(u)};
HZf=function(u,h){u.iF().autonavState=h;g.UO("yt-player-autonavstate",h);u.pI.publish("autonavchange",h)};
rri=function(u){var h=u.getVideoData().Mt,L=u.xI.e7,Z=u.isInline()&&!u.getVideoData().Ry,y=u.mediaElement;h||L||Z?y.l0():(y.FR(),Gp(u,u.YW))};
zp=function(u){var h=dI(u.uP());h&&h.created&&(u.logger.debug("reset ad module"),h.destroy())};
BJ=function(u){return u.getVideoData().enableServerStitchedDai&&!!u.Zv};
BPe=function(u,h){h.bounds=u.getBoundingClientRect();for(var L=g.C(["display","opacity","visibility","zIndex"]),Z=L.next();!Z.done;Z=L.next())Z=Z.value,h[Z]=c7(u,Z);h.hidden=!!u.hidden};
UYf=function(u){if(u.webPlayerContextConfig){var h=u.webPlayerContextConfig.trustedJsUrl;return h?lU(h).toString():u.webPlayerContextConfig.jsUrl}return u.config.assets&&u.config.assets.js?u.config.assets.js:""};
zXf=function(u,h){var L=u.HJ(1);if(L){if(L.getVideoData().clientPlaybackNonce===h)return L;if((u=u.dZ.G)&&u.getVideoData().clientPlaybackNonce===h)return u}return null};
maa=function(u){return u.name==="TypeError"&&u.stack.includes("/s/player/")&&Va()<=105};
daV=function(u){return u.isTimeout?"NO_BID":"ERR_BID"};
VH1=function(){var u=null;rKn().then(function(h){return u=h},function(h){return u=daV(h)});
return u};
nIa=function(){var u=Sn(1E3,"NO_BID");return ME(g8a([rKn(),u]).R5(daV),function(){u.cancel()})};
ed=function(u){return u.XN?g.Vl(g.dN(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
a_=function(u){this.player=u;this.X=this.G=1};
eXi=function(u,h,L,Z,y,R){h.client||(h.client={});u.player.L().j("h5_remove_url_for_get_ad_break")||(h.client.originalUrl=L);var p=RJ(L),J=g.BY(L)?!1:!0;(p||J)&&typeof Intl!=="undefined"&&(h.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);J=g.BY(L)?!1:!0;if(p||J||Z!==""){var O={};L=uA(fP(Z)).split("&");var f=new Map;L.forEach(function(D){D=D.split("=");D.length>1&&f.set(D[0].toString(),decodeURIComponent(D[1].toString()))});
f.has("bid")&&(O.bid=f.get("bid"));O.params=[];sMb.forEach(function(D){f.has(D)&&(D={key:D,value:f.get(D)},O.params.push(D))});
wNb(u,O);h.adSignalsInfo=O}h.client.unpluggedAppInfo||(h.client.unpluggedAppInfo={});h.client.unpluggedAppInfo.enableFilterMode=!1;L=y.G.cosver;L!=null&&L!=="cosver"&&(h.client.osVersion=L);L=y.G.cplatform;L!=null&&L!=="cplatform"&&L!==""&&(h.client.platform=L);L=y.G.cmodel;L!=null&&L!=="cmodel"&&(h.client.deviceModel=L);L=y.G.cplayer;L!=null&&L!=="cplayer"&&(h.client.playerType=L);L=y.G.cbrand;L!=null&&L!=="cbrand"&&(h.client.deviceMake=L);h.user||(h.user={});h.user.lockedSafetyMode=!1;(y.j("embeds_web_enable_iframe_api_send_full_embed_url")||
y.j("embeds_enable_autoplay_and_visibility_signals"))&&g.v$(y)&&G0n(h,R,u.player.getPlayerState(1))};
tHf=function(u,h){var L=!1;if(h==="")return L;h.split(",").forEach(function(Z){var y={},R={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},p="ACTIVE";Z[0]==="!"&&(Z=Z.substring(1),p="INACTIVE");Z=Z.split("-");Z.length<3||(Z[0]in a6j&&(R.clientName=a6j[Z[0]]),Z[1]in $an&&(R.platform=$an[Z[1]]),R.applicationState=p,R.clientVersion=Z.length>2?Z[2]:"",y.remoteClient=R,u.remoteContexts?u.remoteContexts.push(y):u.remoteContexts=[y],L=!0)});
return L};
Fdi=function(u){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in Wds))return!1;u=u.split(RegExp("[:&]"));var h=Wds.FLAG_AUTO_CAPTIONS_DEFAULT_ON,L="f"+(1+Math.floor(h/31)).toString();h=1<<Math.floor(h%31);for(var Z=0,y=u.length;Z<y;Z++){var R=u[Z].split("=");if(R[0]===L&&parseInt("0x"+R[1],16)&h)return!0}return!1};
wNb=function(u,h){u=u.player.L();if(g.dS(u)||sb(u)){u=g.tn("INNERTUBE_CONTEXT");var L,Z;(u==null?0:(L=u.adSignalsInfo)==null?0:L.advertisingId)&&typeof(u==null?void 0:(Z=u.adSignalsInfo)==null?void 0:Z.limitAdTracking)!=="undefined"&&(h.advertisingId=u.adSignalsInfo.advertisingId,h.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",h.limitAdTracking=u.adSignalsInfo.limitAdTracking)}};
LAi=function(u,h,L,Z,y){var R=L.DRIFT_FROM_HEAD_MS&&!Number.isNaN(L.DRIFT_FROM_HEAD_MS)?Math.trunc(L.DRIFT_FROM_HEAD_MS):0,p=bZj.exec(h);p=p!=null&&p.length>=2?p[1]:"";var J=EIj.test(h),O=kEs.exec(h);O=O!=null&&O.length>=2?O[1]:"";var f=gIb.exec(h);f=f!=null&&f.length>=2&&!Number.isNaN(Number(f[1]))?Number(f[1]):1;var D=uin.exec(h);D=D!=null&&D.length>=2?D[1]:"0";var c=NW(u.player.L().a7),I=u.player.getVideoData(1),A=g.W2(I.DI,!0),x="BISCOTTI_ID"in L?L.BISCOTTI_ID:"";eXi(u,A,h,x.toString(),u.player.L(),
I);I={splay:!1,lactMilliseconds:L.LACT.toString(),playerHeightPixels:Math.trunc(L.P_H),playerWidthPixels:Math.trunc(L.P_W),vis:Math.trunc(L.VIS),signatureTimestamp:20132,autonavState:ed(u.player.L())};Z&&(Z={},tHf(Z,L.YT_REMOTE)&&(I.mdxContext=Z));if(Z=j1s.includes(c)?void 0:g.BS("PREF")){for(var Q=Z.split(RegExp("[:&]")),S=0,v=Q.length;S<v;S++){var T=Q[S].split("=");if((T[0].toUpperCase()==="SML"||T[0].toUpperCase()==="GSML")&&T.length>1&&T[1].toUpperCase()==="TRUE"){A.user.lockedSafetyMode=!0;break}}I.autoCaptionsDefaultOn=
Fdi(Z)}h=hxj.exec(h);(h=h!=null&&h.length>=2?h[1]:"")&&O&&(A.user.credentialTransferTokens=[{token:h,scope:"VIDEO"}]);h={contentPlaybackContext:I};p={adBlock:Math.trunc(L.AD_BLOCK),params:p,breakIndex:f,breakPositionMs:D,clientPlaybackNonce:L.CPN,topLevelDomain:c,isProxyAdTagRequest:J,context:A,adSignalsInfoString:uA(fP(x.toString())),overridePlaybackContext:h};y!==void 0&&(p.cueProcessedMs=Math.round(y).toString());O&&(p.videoId=O);L.LIVE_TARGETING_CONTEXT&&(p.liveTargetingParams=L.LIVE_TARGETING_CONTEXT);
L.AD_BREAK_LENGTH&&(p.breakLengthMs=Math.trunc(L.AD_BREAK_LENGTH*1E3).toString());R&&(p.driftFromHeadMs=R.toString());p.currentMediaTimeMs=Math.round(u.player.getCurrentTime(1)*1E3);(u=u.player.getGetAdBreakContext())&&(p.getAdBreakContext=u);return p};
ZLn=function(){a_.apply(this,arguments)};
yTb=function(u,h,L,Z,y){var R=L.k6;var p=L.lh;var J=u.player.L().fV,O=0;L.cueProcessedMs&&p&&!R&&(L=p.end-p.start,L>0&&(O=Math.floor(L/1E3)));var f={AD_BLOCK:y,AD_BREAK_LENGTH:R?R.jS:O,AUTONAV_STATE:ed(u.player.L()),CA_TYPE:"image",CPN:u.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:u.player.Ze()*1E3,LACT:v5(),LIVE_INDEX:R?u.X++:1,LIVE_TARGETING_CONTEXT:R&&R.context?R.context:"",MIDROLL_POS:p?Math.round(p.start/1E3):0,MIDROLL_POS_MS:p?Math.round(p.start):0,VIS:u.player.getVisibilityState(),
P_H:u.player.m_().Oe().height,P_W:u.player.m_().Oe().width,YT_REMOTE:J?J.join(","):""},D=OJ(J5);Object.keys(D).forEach(function(c){D[c]!=null&&(f[c.toUpperCase()]=D[c].toString())});
Z!==""&&(f.BISCOTTI_ID=Z);Z={};KP(h)&&(Z.sts="20132",(u=u.player.L().forcedExperiments)&&(Z.forced_experiments=u));return ya(g.Ng(h,f),Z)};
Rxn=function(u,h){var L=u.player.L(),Z,y=(Z=u.player.getVideoData(1))==null?void 0:Z.oauthToken;return g.Fp(L,y).then(function(R){if(R&&pP()){var p=Yq();ov(p,R)}return g.ah(u.player.L0(p),h,"/youtubei/v1/player/ad_break").then(function(J){return J})})};
pwR=function(u){this.cX=u};
KAL=function(u){this.D=u};
JT1=function(u){this.cX=u};
fvs=function(u){g.m.call(this);this.G=u;this.bR=OLV(this)};
OLV=function(u){var h=new cXR(u.G.LH);g.V(u,h);u=g.C([new pwR(u.G.cX),new KAL(u.G.D),new JT1(u.G.cX),new YE(u.G.JV,u.G.u8),new NQ,new HA(u.G.X9,u.G.pg,u.G.cX),new o9,new T2]);for(var L=u.next();!L.done;L=u.next())Igw(h,L.value);u=g.C(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(L=u.next();!L.done;L=u.next())Uo(h,L.value,function(){});
return h};
$n=function(u){var h=u.Eg,L=u.Mi;u=u.Xo;var Z=new Ydj,y={nV:new JkR(h.get(),L),Mi:L};return{j7:new FN(L,u,h,y),context:y,A3:Z}};
t9=function(u,h,L,Z,y){g.m.call(this);this.N=h;this.FB=L;this.Eg=Z;this.fW=y;this.listeners=[];var R=new vD(this);g.V(this,R);R.W(u,"internalAbandon",this.Y$);this.addOnDisposeCallback(function(){g.Tj(R)})};
WJ=function(u){this.D=u;this.adVideoId=this.G=this.videoId=this.adCpn=this.contentCpn=null;this.T=!0;this.N=this.X=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
Di1=function(u){u.contentCpn=null;u.adCpn=null;u.videoId=null;u.adVideoId=null;u.adFormat=null;u.B="AD_PLACEMENT_KIND_UNKNOWN";u.actionType="unknown_type";u.X=!1;u.N=!1};
cTb=function(u,h){u=g.C(h);for(h=u.next();!h.done;h=u.next())if((h=h.value.renderer)&&(h.instreamVideoAdRenderer||h.linearAdSequenceRenderer||h.sandwichedLinearAdRenderer||h.instreamSurveyAdRenderer)){zQ("ad_i");g.m1({isMonetized:!0});break}};
Ivf=function(u){var h;(h=u.D.getVideoData(1))!=null&&h.XB&&(u.N=!1,h={},u.G&&u.videoId&&(h.cttAuthInfo={token:u.G,videoId:u.videoId}),dT("video_to_ad",h))};
dX=function(u){u.N=!1;var h={};u.G&&u.videoId&&(h.cttAuthInfo={token:u.G,videoId:u.videoId});dT("ad_to_video",h);ATi(u)};
ATi=function(u){if(u.X)if(u.B==="AD_PLACEMENT_KIND_START"&&u.actionType==="video_to_ad")Hc("video_to_ad");else{var h={adBreakType:A0(u.B),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:u.videoStreamType};u.actionType==="ad_to_video"?(u.contentCpn&&(h.targetCpn=u.contentCpn),u.videoId&&(h.targetVideoId=u.videoId)):(u.adCpn&&(h.targetCpn=u.adCpn),u.adVideoId&&(h.targetVideoId=u.adVideoId));u.adFormat&&(h.adType=u.adFormat);u.contentCpn&&
(h.clientPlaybackNonce=u.contentCpn);u.videoId&&(h.videoId=u.videoId);u.adCpn&&(h.adClientPlaybackNonce=u.adCpn);u.adVideoId&&(h.adVideoId=u.adVideoId);g.m1(h,u.actionType)}};
Fw=function(u){g.m.call(this);this.D=u;this.G=new Map;this.N=new vD(this);g.V(this,this.N);this.N.W(this.D,g.hc("ad"),this.onCueRangeEnter,this);this.N.W(this.D,g.L2("ad"),this.onCueRangeExit,this)};
xil=function(u,h,L,Z,y){g.uW.call(this,h,L,{id:u,namespace:"ad",priority:y,visible:Z})};
bY=function(u){this.D=u};
EQ=function(u){this.D=u;g.Jl(this.D.L().experiments,"tv_pacf_logging_sample_rate")};
MK=function(u,h){h=h===void 0?!1:h;return u.D.L().j("html5_ssap_force_ads_ctmp")?!0:(h||u.D.L().UU())&&u.D.L().j("html5_ssap_pacf_qoe_ctmp")};
kn=function(u){var h,L;return(L=(h=u.D.getVideoData(1))==null?void 0:g.dC(h))!=null?L:!1};
af=function(u,h){return u.D.L().j(h)};
Pel=function(u){return u.D.L().j("substitute_ad_cpn_macro_in_ssdai")};
c6=function(u){var h,L,Z;return((h=u.D.getVideoData(1).getPlayerResponse())==null?void 0:(L=h.playerConfig)==null?void 0:(Z=L.daiConfig)==null?void 0:Z.enableServerStitchedDai)||!1};
MNL=function(u){return u.D.L().j("html5_enable_vod_slar_with_notify_pacf")};
Cea=function(u){return u.D.L().j("html5_recognize_predict_start_cue_point")};
$3=function(u){return u.D.L().experiments.tB("enable_desktop_player_underlay")};
Mwf=function(u){return u.D.L().experiments.tB("html5_load_empty_player_in_media_break_sub_lra")};
TK=function(u){return u.D.L().experiments.tB("html5_load_ads_instead_of_cue")};
YG=function(u){return u.D.L().experiments.tB("html5_preload_ads")};
w4=function(u){return u.D.L().experiments.tB("enable_ads_control_flow_deterministic_id_generation")};
iL1=function(u){return u.D.L().experiments.tB("enable_desktop_discovery_video_abandon_pings")||g.dS(u.D.L())};
Q1j=function(u){return u.D.L().experiments.tB("enable_progres_commands_lr_feeds")};
lvj=function(u){return u.D.L().experiments.tB("html5_cuepoint_identifier_logging")};
Stl=function(u){switch(u){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}};
Xwa=function(){g.yV.call(this);var u=this;this.G={};this.addOnDisposeCallback(function(){for(var h=g.C(Object.keys(u.G)),L=h.next();!L.done;L=h.next())delete u.G[L.value]})};
g6=function(){if(vre===null){vre=new Xwa;Th(Q0).N="b";var u=Th(Q0),h=Ig(u)=="h"||Ig(u)=="b",L=!(Gh(),!1);h&&L&&(u.T=!0,u.C=new rjn)}return vre};
qtY=function(u,h,L){u.G[h]=L};
TGf=function(u){switch(u){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}};
uh=function(u,h,L){this.FB=u;this.D=h;this.Mi=L;this.N=new Set;this.G=new Map;g6().subscribe("adactiveviewmeasurable",this.IZ,this);g6().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Gs,this);g6().subscribe("adviewableimpression",this.Ai,this);g6().subscribe("adaudioaudible",this.xa,this);g6().subscribe("adaudiomeasurable",this.mL,this)};
hI=function(u,h,L){var Z=L.CA,y=L.Y5,R=L.listener,p=L.GQ;L=L.I9===void 0?!1:L.I9;if(u.G.has(h))Jk("Unexpected registration of layout in LidarApi");else{if(p){if(u.N.has(p))return;u.N.add(p)}u.G.set(h,R);yZ(Gh().Ok,"fmd",1);aa1(Th(Q0),Z);var J=L?h:void 0;qtY(g6(),h,{Ij:function(){if(!y)return{};var O=u.D.getPresentingPlayerType(!0),f;return(f=u.D.getVideoData(O))!=null&&f.isAd()?{currentTime:u.FB.get().getCurrentTimeSec(O,!1,J),duration:y,isPlaying:jP(u.FB.get(),O).isPlaying(),isVpaid:!1,isYouTube:!0,
volume:u.FB.get().isMuted()?0:u.FB.get().getVolume()/100}:{}}})}};
LW=function(u,h){u.G.has(h)?(u.G.delete(h),delete g6().G[h]):Jk("Unexpected unregistration of layout in LidarApi")};
Ytn=function(u,h){if(u.D.isLifaAdPlaying()){var L=u.D.Wb(!0,!0);u.Di(h,L.width*.5*1.1,L.height*.25*1.1,L.width*.5*.9,L.height*.5*.9)}};
Uij=function(u,h,L){var Z={};orn(u,Z,h,L);NGj(Z);Z.LACT=ZC(function(){return v5().toString()});
Z.VIS=ZC(function(){return u.getVisibilityState().toString()});
Z.SDKV="h.3.0";Z.VOL=ZC(function(){return u.isMuted()?"0":Math.round(u.getVolume()).toString()});
Z.VED="";return Z};
GMV=function(u,h){var L={};if(h)return L;if(!u.kind)return g.UZ(Error("AdPlacementConfig without kind")),L;if(u.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||u.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!u.adTimeOffset||!u.adTimeOffset.offsetStartMilliseconds)return g.UZ(Error("malformed AdPlacementConfig")),L;L.MIDROLL_POS=ZC(J4(Math.round(ge(u.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else L.MIDROLL_POS=ZC(J4("0"));return L};
ZC=function(u){return{toString:function(){return u()}}};
HLj=function(u,h,L){function Z(J,O){(O=L[O])&&(R[J]=O)}
function y(J,O){(O=L[O])&&(R[J]=p(O))}
if(!L||g.Tc(L))return u;var R=Object.assign({},u),p=h?encodeURIComponent:function(J){return J};
y("DV_VIEWABILITY","doubleVerifyViewability");y("IAS_VIEWABILITY","integralAdsViewability");y("MOAT_INIT","moatInit");y("MOAT_VIEWABILITY","moatViewability");Z("GOOGLE_VIEWABILITY","googleViewability");Z("VIEWABILITY","viewability");return R};
orn=function(u,h,L,Z){h.CPN=ZC(function(){var y;(y=u.getVideoData(1))?y=y.clientPlaybackNonce:(g.G3(Error("Video data is null.")),y=null);return y});
h.AD_MT=ZC(function(){if(Z!=null)var y=Z;else{var R=L;u.L().j("html5_ssap_use_cpn_to_get_time")||(R=void 0);if(u.L().j("enable_h5_shorts_ad_fill_ad_mt_macro")||u.L().j("enable_desktop_discovery_pings_ad_mt_macro")||g.dS(u.L())){var p=u.getPresentingPlayerType(!0),J;y=((J=u.getVideoData(p))==null?0:J.isAd())?rTn(u,p,R):0}else y=rTn(u,2,R)}return Math.round(Math.max(0,y*1E3)).toString()});
h.MT=ZC(function(){return Math.round(Math.max(0,u.getCurrentTime(1,!1)*1E3)).toString()});
h.P_H=ZC(function(){return u.m_().Oe().height.toString()});
h.P_W=ZC(function(){return u.m_().Oe().width.toString()});
h.PV_H=ZC(function(){return u.m_().getVideoContentRect().height.toString()});
h.PV_W=ZC(function(){return u.m_().getVideoContentRect().width.toString()})};
NGj=function(u){u.CONN=ZC(J4("0"));u.WT=ZC(function(){return Date.now().toString()})};
rTn=function(u,h,L){return L!==void 0?u.getCurrentTime(h,!1,L):u.getCurrentTime(h,!1)};
BGl=function(){};
zxe=function(u,h,L,Z,y){var R,p,J,O,f,D,c,I,A,x,Q,S,v;g.G(function(T){switch(T.G){case 1:R=!!h.scrubReferrer;p=g.Ng(h.baseUrl,HLj(L,R,Z));J={};if(!h.headers){T.KI(2);break}O=u.B();if(!O.G){f=O.getValue();T.KI(3);break}return g.N(T,O.G,4);case 4:f=T.N;case 3:D=f;c=g.C(h.headers);for(I=c.next();!I.done;I=c.next())switch(A=I.value,A.headerType){case "VISITOR_ID":g.tn("VISITOR_DATA")&&(J["X-Goog-Visitor-Id"]=g.tn("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.tn("EOM_VISITOR_DATA")&&(J["X-Goog-EOM-Visitor-Id"]=
g.tn("EOM_VISITOR_DATA"));break;case "USER_AUTH":D&&(J.Authorization="Bearer "+D);break;case "PLUS_PAGE_ID":(x=u.T())&&(J["X-Goog-PageId"]=x);break;case "AUTH_USER":Q=u.G();!D&&Q&&(J["X-Goog-AuthUser"]=Q);break;case "DATASYNC_ID":if(S=void 0,(S=u.X())==null?0:S.tB("enable_datasync_id_header_in_web_vss_pings"))v=u.N(),RJ(p)&&g.tn("LOGGED_IN")&&v&&(J["X-YouTube-DataSync-Id"]=v)}"X-Goog-EOM-Visitor-Id"in J&&"X-Goog-Visitor-Id"in J&&delete J["X-Goog-Visitor-Id"];case 2:g.dx(p,void 0,R,Object.keys(J).length!==
0?J:void 0,"",!0,y),g.i1(T)}})};
miw=function(u,h,L,Z,y){this.B=u;this.T=h;this.G=L;this.N=Z;this.X=y};
dia=function(u,h){this.G=u;this.Mi=h};
yI=function(u,h,L,Z,y,R,p){var J=J===void 0?new miw(function(){var O=u.L(),f=u.getVideoData(1);return g.Fp(O,f?g.mn(f):"")},function(){return u.L().pageId},function(){return u.L().XB},function(){var O;
return(O=u.L().datasyncId)!=null?O:""},function(){return u.L().experiments}):J;
this.D=u;this.N=h;this.z3=L;this.Eg=Z;this.j7=y;this.Mi=R;this.A3=p;this.B=J;this.k5=null;this.G=new Map;this.X=new dia(J,this.Mi)};
nrR=function(u,h,L,Z,y){var R=QG(u.N.get(),L);R?(L=vI(u,Vwl(R),R,void 0,void 0,Z),h.hasOwnProperty("baseUrl")?u.B.send(h,L):u.X.send(h,L,{},y)):Jk("Trying to ping from an unknown layout",void 0,void 0,{layoutId:L})};
C2w=function(u,h,L,Z,y,R){Z=Z===void 0?[]:Z;var p=QG(u.N.get(),h);if(p){var J=u.z3.get().d2(h,L),O=vI(u,Vwl(p),p,y,R);Z.forEach(function(f,D){f.baseUrl&&(u.X.send(f.baseUrl,O,J,f.attributionSrcMode),f.serializedAdPingMetadata&&u.j7.K5("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,p,new Ezs(f,D),void 0,void 0,p.adLayoutLoggingData))})}else Jk("Trying to track from an unknown layout.",void 0,void 0,{layoutId:h,
trackingType:L})};
C2=function(u,h){u.D.sendVideoStatsEngageEvent(h,void 0,2)};
t0=function(u,h){g.pM("adsClientStateChange",h)};
s1n=function(u,h){u.G.has(h.cP())?Jk("Trying to register an existing AdErrorInfoSupplier."):u.G.set(h.cP(),h)};
wwe=function(u,h){u.G.delete(h.cP())||Jk("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
bQ=function(u,h,L){typeof L==="string"?u.D.getVideoData(1).wq(h,L):u.D.getVideoData(1).IH(h,L)};
Vwl=function(u){var h=hl(u.clientMetadata,"metadata_type_ad_placement_config");u=hl(u.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:h,Jb:u}};
vI=function(u,h,L,Z,y,R){var p=L?ex1(u):{},J=L?avi(u,L.layoutId):{},O=$i1(u),f,D=y!=null?y:(f=fJ(u.Eg.get(),2))==null?void 0:f.clientPlaybackNonce;u.D.L().j("enable_player_logging_lr_home_infeed_ads")&&!D&&(D=fJ(u.Eg.get(),1).clientPlaybackNonce);y=void 0;if(L){var c;if((c=u.A3.G.get(L.layoutId))==null?0:c.I9)y=L.layoutId}c={};u=Object.assign({},Uij(u.D,y,Z),GMV(h.adPlacementConfig,(L==null?void 0:L.renderingContent)!==void 0),J,p,O,(c.FINAL=ZC(function(){return"1"}),c.AD_CPN=ZC(function(){return D||
""}),c));
(L==null?void 0:L.renderingContent)!==void 0||(u.SLOT_POS=ZC(function(){return(h.Jb||0).toString()}));
L={};R=Object.assign({},u,R);u=g.C(Object.values(twl));for(Z=u.next();!Z.done;Z=u.next())Z=Z.value,p=R[Z],p!=null&&p.toString()!=null&&(L[Z]=p.toString());return L};
ex1=function(u){var h={},L,Z=(L=u.k5)==null?void 0:L.Oa/1E3;Z!=null&&(h.SURVEY_ELAPSED_MS=ZC(function(){return Math.round(Z*1E3).toString()}));
h.SURVEY_LOCAL_TIME_EPOCH_S=ZC(function(){return Math.round(Date.now()/1E3).toString()});
return h};
avi=function(u,h){u=u.G.get(h);if(!u)return{};u=u.Ln();if(!u)return{};h={};return h.YT_ERROR_CODE=u.n8.toString(),h.ERRORCODE=u.hT.toString(),h.ERROR_MSG=u.errorMessage,h};
$i1=function(u){var h={},L=u.D.getVideoData(1);h.ASR=ZC(function(){var Z;return(Z=L==null?void 0:L.J6)!=null?Z:null});
h.EI=ZC(function(){var Z;return(Z=L==null?void 0:L.eventId)!=null?Z:null});
return h};
R2=function(u,h,L){g.m.call(this);this.D=u;this.A1=h;this.Mi=L;this.listeners=[];this.P$=null;this.NP=new Map;h=new g.UN(this);g.V(this,h);h.W(u,"videodatachange",this.Mxy);h.W(u,"serverstitchedvideochange",this.sbw);this.jN=fJ(this)};
fJ=function(u,h){var L=u.D.getVideoData(h);return L?u.mG(L,h||u.D.getPresentingPlayerType(!0)):null};
WAY=function(u,h,L){var Z=u.mG(h,L);u.jN=Z;u.listeners.forEach(function(y){y.uf(Z)})};
FAj=function(u){switch(u){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}};
pW=function(u,h,L){g.m.call(this);this.D=u;this.Eg=h;this.Mi=L;this.listeners=[];this.LT=[];this.G=function(){Jk("Called 'doUnlockPreroll' before it's initialized.")};
h=new vD(this);L=new g.UN(this);g.V(this,L);g.V(this,h);h.W(u,"progresssync",this.uN7);h.W(u,"presentingplayerstatechange",this.mmd);h.W(u,"fullscreentoggled",this.onFullscreenToggled);h.W(u,"onVolumeChange",this.onVolumeChange);h.W(u,"minimized",this.Wo);h.W(u,"overlayvisibilitychange",this.J2);h.W(u,"shortsadswipe",this.h2);h.W(u,"resize",this.QZ);L.W(u,g.hc("appad"),this.qT)};
KW=function(u){kn(u.Mi.get())||u.G()};
bLe=function(u,h){u.LT=u.LT.filter(function(L){return L!==h})};
JI=function(u,h,L){return u.getCurrentTimeSec(h,L)};
Ers=function(u,h){var L;h=(L=u.Eg.get().NP.get(h))!=null?L:null;if(h===null)return Jk("Expected ad video start time on playback timeline"),0;u=u.D.getCurrentTime(2,!0);return u<h?0:u-h};
jP=function(u,h){return u.D.getPlayerStateObject(h)};
kMl=function(u){var h=u.D.m_().Oe();u=u.D.Wb(!0,!0);return h.height-(u.height+u.top)};
grR=function(u){u.D.cueVideoByPlayerVars({videoId:"empty_video"},2)};
npb=function(u,h){var L=u.D.L();g.Xp(L)||L.controlsType!=="3"||u.D.m_().lU(h)};
OA=function(u,h){g.yN(u.D.getRootNode(),h)};
fW=function(u,h){g.pc(u.D.getRootNode(),h)};
u1n=function(u,h,L,Z,y){g.m.call(this);var R=this,p=mq(function(){return new s7(R.Mi)});
g.V(this,p);var J=mq(function(){return new ek(p,R.Mi)});
g.V(this,J);var O=mq(function(){return new Mn});
g.V(this,O);Z=mq(function(){return new P6(u)});
g.V(this,Z);var f=mq(function(){return new a7(p,J,R.Mi)});
g.V(this,f);var D=mq(function(){return new bm});
g.V(this,D);this.yZ=mq(function(){return new Vr(y)});
g.V(this,this.yZ);this.rf=mq(function(){return new WJ(h)});
g.V(this,this.rf);this.bF=mq(function(){return new Fw(h)});
g.V(this,this.bF);this.LH=mq(function(){return new bY(h)});
g.V(this,this.LH);this.Mi=mq(function(){return new EQ(h)});
g.V(this,this.Mi);var c=mq(function(){return new Oi(R.Mi)});
g.V(this,c);var I=mq(function(){return new J$(p,f,J,R.Mi,c,null,null,null,null)});
g.V(this,I);this.Eg=mq(function(){return new R2(h,D,R.Mi)});
g.V(this,this.Eg);var A=$n({Eg:this.Eg,Mi:this.Mi,Xo:c}),x=A.context,Q=A.A3;this.j7=A.j7;this.FB=mq(function(){return new pW(h,R.Eg,R.Mi)});
g.V(this,this.FB);this.z3=mq(function(){return new uh(R.FB,h,R.Mi)});
g.V(this,this.z3);this.cX=mq(function(){return new yI(h,O,R.z3,R.Eg,R.j7,R.Mi,Q)});
g.V(this,this.cX);this.Dv=new xT(Z,I,L,this.Mi,u,this.Eg,this.FB,this.rf);g.V(this,this.Dv);var S=new t9(h,this.Dv,this.FB,this.Eg);this.kN=mq(function(){return S});
this.RZ=S;this.fB=new CO(Z,f,this.bF,this.kN,x);g.V(this,this.fB);this.FN=new o4(this.Mi,Z,f,I,this.Eg,this.fB,L);g.V(this,this.FN);this.Z$={fN:new Map,qI:new Map,uu:new Map,Ig:new Map,v8:new Map};this.listeners=[];this.D6={FN:this.FN,pg:this.Mi.get(),HX:this.yZ.get(),Gq:this.FB.get(),Dv:this.Dv,X3:p.get(),cK:null,u8:{V6:function(){}},
JV:O.get(),X9:this.Eg.get()}};
DC=function(u,h){g.m.call(this);this.NU=h;this.NU.get().addListener(this)};
cq=function(u){this.G=u};
j8b=function(u,h){if(!u)return{zY:[],adSlots:[],sf:!0,ssdaiAdsConfig:void 0};u.trackingParams&&ip(u.trackingParams);if(u.adThrottled)return{zY:[],adSlots:[],sf:!0,ssdaiAdsConfig:void 0};var L,Z=(L=u.adSlots)!=null?L:[],y;L=(y=u.playerAds)!=null?y:[];if(!(L&&L.length||Z.length))return{zY:[],adSlots:Z,sf:!1,ssdaiAdsConfig:void 0};y=L.map(function(p){return p.adPlacementRenderer}).filter(function(p){return!(!p||!p.renderer)});
if(!y.length&&!Z.length)return{zY:[],adSlots:Z,sf:!1,ssdaiAdsConfig:void 0};if(h.end>0){var R=h.end.toString();y.forEach(function(p){(p=p.config&&p.config.adPlacementConfig)&&p.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&p.adTimeOffset&&p.adTimeOffset.offsetEndMilliseconds==="-1"&&p.adTimeOffset.offsetEndMilliseconds!==R&&(p.adTimeOffset.offsetEndMilliseconds=R)});
Z.map(function(p){return g.n(p,NU)}).forEach(function(p){var J;
(p=p==null?void 0:(J=p.slotEntryTrigger)==null?void 0:J.mediaTimeRangeTrigger)&&p.offsetEndMilliseconds==="-1"&&(p.offsetEndMilliseconds=R)})}return{zY:y,
adSlots:Z,sf:!1,ssdaiAdsConfig:u.ssdaiAdsConfig}};
I2=function(u){g.m.call(this);this.D=u;this.listeners=[];this.G=new vD(this);g.V(this,this.G);this.G.W(this.D,"aduxclicked",this.onAdUxClicked);this.G.W(this.D,"aduxmouseover",this.Rn);this.G.W(this.D,"aduxmouseout",this.Ae);this.G.W(this.D,"muteadaccepted",this.W_H)};
hOV=function(u,h,L){h=g.Xx(h,function(Z){return new VFe(Z,L,Z.id)});
u.D.hB("onAdUxUpdate",h)};
AI=function(u,h){u=g.C(u.listeners);for(var L=u.next();!L.done;L=u.next())h(L.value)};
xu=function(u,h){this.N=u;this.X=h===void 0?!1:h;this.G={}};
LVf=function(u,h){var L=u.startSecs+u.jS;L=L<=0?null:L;if(L===null)return null;switch(u.event){case "start":case "continue":case "stop":break;case "predictStart":if(h)break;return null;default:return null}h=Math.max(u.startSecs,0);return{Aj:new l6(h,L),jHB:new N6(h,L-h,u.context,u.identifier,u.event,u.G)}};
ZzL=function(){this.G=[]};
AS1=function(u,h,L){var Z=g.Kw(u.G,h);if(Z>=0)return h;h=-Z-1;return h>=u.G.length||u.G[h]>L?null:u.G[h]};
Pq=function(u,h,L){g.m.call(this);this.D=u;this.Mi=h;this.cX=L;this.listeners=[];this.B=!1;this.H5=[];this.G=null;this.T=new xu(this,Cea(h.get()));this.X=new ZzL;this.N=null};
yHn=function(u,h){u.H5.push(h);for(var L=!1,Z=g.C(u.listeners),y=Z.next();!y.done;y=Z.next())L=y.value.Le(h)||L;u.B=L;lvj(u.Mi.get())&&bQ(u.cX.get(),"onci","cpi."+h.identifier+";cpe."+h.event+";cps."+h.startSecs+";cbi."+L)};
pFs=function(u,h){t0(u.cX.get(),{cuepointTrigger:{event:ROw(h.event),cuepointId:h.identifier,totalCueDurationMs:h.jS*1E3,playheadTimeMs:h.G,cueStartTimeMs:h.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:u.D.getVideoData(1).clientPlaybackNonce}})};
ROw=function(u){switch(u){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 yx(u,"Unexpected cuepoint event")}};
CW=function(u){this.D=u};
KVn=function(u,h){u.D.cueVideoByPlayerVars(h,2)};
MV=function(u){this.D=u};
ih=function(u){this.D=u};
JHn=function(u){switch(u){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:yx(u,"unknown transitionReason")}};
Ozs=function(u){this.D=u};
f9s=function(u,h,L,Z,y){g.m.call(this);var R=this,p=mq(function(){return new s7(R.Mi)});
g.V(this,p);var J=mq(function(){return new ek(p,R.Mi)});
g.V(this,J);var O=mq(function(){return new Mn});
g.V(this,O);var f=mq(function(){return new P6(u)});
g.V(this,f);var D=mq(function(){return new a7(p,J,R.Mi)});
g.V(this,D);var c=mq(function(){return new bm});
g.V(this,c);this.uF=mq(function(){return new I2(h)});
g.V(this,this.uF);this.yZ=mq(function(){return new Vr(y)});
g.V(this,this.yZ);this.rf=mq(function(){return new WJ(h)});
g.V(this,this.rf);this.bF=mq(function(){return new Fw(h)});
g.V(this,this.bF);this.Jy=mq(function(){return new CW(h)});
g.V(this,this.Jy);this.LH=mq(function(){return new bY(h)});
g.V(this,this.LH);this.Mi=mq(function(){return new EQ(h)});
g.V(this,this.Mi);var I=mq(function(){return new cq(Z)});
g.V(this,I);var A=mq(function(){return new Oi(R.Mi)});
g.V(this,A);this.LB=mq(function(){return new MV(h)});
g.V(this,this.LB);this.NU=mq(function(){return new wi});
g.V(this,this.NU);this.Eg=mq(function(){return new R2(h,c,R.Mi)});
g.V(this,this.Eg);var x=$n({Eg:this.Eg,Mi:this.Mi,Xo:A}),Q=x.context,S=x.A3;this.j7=x.j7;this.fW=mq(function(){return new Pq(h,R.Mi,R.cX)});
g.V(this,this.fW);this.Bj=mq(function(){return new ih(h)});
g.V(this,this.Bj);this.FB=mq(function(){return new pW(h,R.Eg,R.Mi)});
g.V(this,this.FB);x=mq(function(){return new J$(p,D,J,R.Mi,A,"SLOT_TYPE_ABOVE_FEED",R.FB,R.TG,R.sX)});
g.V(this,x);this.Sx=mq(function(){return new eM(R.Mi)});
this.z3=mq(function(){return new uh(R.FB,h,R.Mi)});
g.V(this,this.z3);this.cX=mq(function(){return new yI(h,O,R.z3,R.Eg,R.j7,R.Mi,S)});
g.V(this,this.cX);this.xV=new A$(I7,QI,function(T,U,z,d){return a4(J.get(),T,U,z,d)},f,D,J,A,this.Mi,this.Eg);
g.V(this,this.xV);this.Dv=new xT(f,x,L,this.Mi,u,this.Eg,this.FB,this.rf);g.V(this,this.Dv);var v=new t9(h,this.Dv,this.FB,this.Eg,this.fW);this.kN=mq(function(){return v});
this.RZ=v;this.TG=new D2(f,D,this.kN,this.fW,this.FB,this.Mi,this.cX,this.Bj);g.V(this,this.TG);this.fB=new CO(f,D,this.bF,this.kN,Q);g.V(this,this.fB);this.FN=new o4(this.Mi,f,D,x,this.Eg,this.fB,L);g.V(this,this.FN);this.K7=mq(function(){return new Jc(I,J,A,R.Mi,R.cX,R.FB,R.Bj)});
g.V(this,this.K7);this.OX=mq(function(){return new Ox});
g.V(this,this.OX);this.yO=new qn(u,this.uF,this.Mi);g.V(this,this.yO);this.Z3=new TL(u);g.V(this,this.Z3);this.PL=new o7(u);g.V(this,this.PL);this.YJ=new U7(u,this.kN,Q);g.V(this,this.YJ);this.Yv=new GL(u,this.bF,this.FB,this.Eg,Q);g.V(this,this.Yv);this.Wf=new H6(u,this.Eg);g.V(this,this.Wf);this.sX=new zL(u,this.fW,this.FB,this.cX,this.kN);g.V(this,this.sX);this.CZ=new r4(u);g.V(this,this.CZ);this.kS=new nO(u);g.V(this,this.kS);this.f7=new B6(u);g.V(this,this.f7);this.I0=new VG(u);g.V(this,this.I0);
this.kS=new nO(u);g.V(this,this.kS);this.g1=mq(function(){return new lm});
g.V(this,this.g1);this.mR=mq(function(){return new Sk(R.FB)});
g.V(this,this.mR);this.tN=mq(function(){return new dhi(R.uF,R.cX,u,O,R.z3)});
g.V(this,this.tN);this.lw=mq(function(){return new WI(R.FN,f,p)});
g.V(this,this.lw);this.Pe=mq(function(){return new Ex(R.Mi,R.cX,R.CZ,R.z3)});
g.V(this,this.Pe);this.QI=mq(function(){return new ZQ(u,R.kS,R.CZ,R.Eg,R.Bj,R.FB,R.cX,c,R.fW,R.z3,R.Sx,R.Jy,R.bF,R.rf,R.LH,R.yZ,R.LB,R.Mi,O,Q,S)});
g.V(this,this.QI);this.Ps=mq(function(){return new gSj(R.FB,R.cX,R.yZ,R.Mi,R.z3,R.Eg)});
g.V(this,this.Ps);this.uL=mq(function(){return new V$n(R.uF,R.FB,R.cX,O,R.z3,R.PL,R.I0,R.yZ,R.Mi,L)});
g.V(this,this.uL);this.Nj=mq(function(){return new V0a(R.uF,R.cX,O)});
g.V(this,this.Nj);this.G5=new DC(u,this.NU,p);g.V(this,this.G5);this.Z$={fN:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.FN],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.TG],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.xV],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dv],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.fB]]),qI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.K7],["SLOT_TYPE_ABOVE_FEED",this.OX],["SLOT_TYPE_FORECASTING",this.OX],
["SLOT_TYPE_IN_PLAYER",this.OX],["SLOT_TYPE_PLAYER_BYTES",this.OX],["SLOT_TYPE_PLAYER_UNDERLAY",this.OX],["SLOT_TYPE_PLAYBACK_TRACKING",this.OX],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.OX]]),uu:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.yO],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.yO],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Z3],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Z3],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Z3],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Z3],["TRIGGER_TYPE_SLOT_ID_ENTERED",
this.Z3],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Z3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Z3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Z3],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Z3],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Z3],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Z3],["TRIGGER_TYPE_CLOSE_REQUESTED",this.PL],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.YJ],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Yv],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.Yv],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Yv],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Yv],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Yv],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Yv],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Yv],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Wf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Wf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CZ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.YJ],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.f7],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.I0],["TRIGGER_TYPE_AD_BREAK_STARTED",this.kS],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.sX],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.sX],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.sX],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.sX],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.sX]]),Ig:new Map([["SLOT_TYPE_ABOVE_FEED",this.g1],
["SLOT_TYPE_AD_BREAK_REQUEST",this.g1],["SLOT_TYPE_FORECASTING",this.g1],["SLOT_TYPE_IN_PLAYER",this.g1],["SLOT_TYPE_PLAYER_BYTES",this.mR],["SLOT_TYPE_PLAYER_UNDERLAY",this.g1],["SLOT_TYPE_PLAYBACK_TRACKING",this.g1],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.g1]]),v8:new Map([["SLOT_TYPE_ABOVE_FEED",this.tN],["SLOT_TYPE_AD_BREAK_REQUEST",this.lw],["SLOT_TYPE_FORECASTING",this.Pe],["SLOT_TYPE_PLAYER_BYTES",this.QI],["SLOT_TYPE_PLAYBACK_TRACKING",this.Ps],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",
this.Ps],["SLOT_TYPE_IN_PLAYER",this.uL],["SLOT_TYPE_PLAYER_UNDERLAY",this.Nj]])};this.listeners=[O.get()];this.D6={FN:this.FN,pg:this.Mi.get(),HX:this.yZ.get(),Gq:this.FB.get(),Dv:this.Dv,X3:p.get(),cK:this.NU.get(),u8:this.yO,JV:O.get(),X9:this.Eg.get()}};
DDi=function(u,h,L,Z,y){g.m.call(this);var R=this,p=mq(function(){return new s7(R.Mi)});
g.V(this,p);var J=mq(function(){return new ek(p,R.Mi)});
g.V(this,J);var O=mq(function(){return new Mn});
g.V(this,O);var f=mq(function(){return new P6(u)});
g.V(this,f);var D=mq(function(){return new a7(p,J,R.Mi)});
g.V(this,D);var c=mq(function(){return new bm});
g.V(this,c);this.uF=mq(function(){return new I2(h)});
g.V(this,this.uF);this.yZ=mq(function(){return new Vr(y)});
g.V(this,this.yZ);this.rf=mq(function(){return new WJ(h)});
g.V(this,this.rf);this.bF=mq(function(){return new Fw(h)});
g.V(this,this.bF);this.Jy=mq(function(){return new CW(h)});
g.V(this,this.Jy);this.LH=mq(function(){return new bY(h)});
g.V(this,this.LH);this.Mi=mq(function(){return new EQ(h)});
g.V(this,this.Mi);var I=mq(function(){return new cq(Z)});
g.V(this,I);var A=mq(function(){return new Oi(R.Mi)});
g.V(this,A);var x=mq(function(){return new J$(p,D,J,R.Mi,A,null,null,R.TG,R.sX)});
g.V(this,x);this.LB=mq(function(){return new MV(h)});
g.V(this,this.LB);this.NU=mq(function(){return new wi});
g.V(this,this.NU);this.Eg=mq(function(){return new R2(h,c,R.Mi)});
g.V(this,this.Eg);var Q=$n({Eg:this.Eg,Mi:this.Mi,Xo:A}),S=Q.context,v=Q.A3;this.j7=Q.j7;this.fW=mq(function(){return new Pq(h,R.Mi,R.cX)});
this.FB=mq(function(){return new pW(h,R.Eg,R.Mi)});
g.V(this,this.FB);this.z3=mq(function(){return new uh(R.FB,h,R.Mi)});
g.V(this,this.z3);this.cX=mq(function(){return new yI(h,O,R.z3,R.Eg,R.j7,R.Mi,v)});
g.V(this,this.cX);this.Sx=mq(function(){return new eM(R.Mi)});
g.V(this,this.Sx);this.xV=new A$(I7,QI,function(U,z,d,W){return a4(J.get(),U,z,d,W)},f,D,J,A,this.Mi,this.Eg);
g.V(this,this.xV);this.Dv=new xT(f,x,L,this.Mi,u,this.Eg,this.FB,this.rf);g.V(this,this.Dv);var T=new t9(h,this.Dv,this.FB,this.Eg,this.fW);this.kN=mq(function(){return T});
this.RZ=T;this.TG=new D2(f,D,this.kN,this.fW,this.FB,this.Mi,this.cX);g.V(this,this.TG);this.fB=new CO(f,D,this.bF,this.kN,S);g.V(this,this.fB);this.FN=new o4(this.Mi,f,D,x,this.Eg,this.fB,L);g.V(this,this.FN);this.K7=mq(function(){return new Jc(I,J,A,R.Mi,R.cX,R.FB)});
g.V(this,this.K7);this.OX=mq(function(){return new Ox});
g.V(this,this.OX);this.yO=new qn(u,this.uF,this.Mi);g.V(this,this.yO);this.Z3=new TL(u);g.V(this,this.Z3);this.PL=new o7(u);g.V(this,this.PL);this.YJ=new U7(u,this.kN,S);g.V(this,this.YJ);this.Yv=new GL(u,this.bF,this.FB,this.Eg,S);g.V(this,this.Yv);this.CZ=new r4(u);g.V(this,this.CZ);this.f7=new B6(u);g.V(this,this.f7);this.I0=new VG(u);g.V(this,this.I0);this.Bj=mq(function(){return new ih(h)});
g.V(this,this.Bj);this.kS=new nO(u);g.V(this,this.kS);this.sX=new zL(u,this.fW,this.FB,this.cX,this.kN);g.V(this,this.sX);this.g1=mq(function(){return new lm});
g.V(this,this.g1);this.mR=mq(function(){return new Sk(R.FB)});
g.V(this,this.mR);this.lw=mq(function(){return new WI(R.FN,f,p)});
g.V(this,this.lw);this.Pe=mq(function(){return new Ex(R.Mi,R.cX,R.CZ,R.z3)});
g.V(this,this.Pe);this.uL=mq(function(){return new nzY(R.uF,R.FB,R.cX,O,R.z3,R.PL,R.I0,R.yZ,R.Mi,L)});
g.V(this,this.uL);this.QI=mq(function(){return new yL(u,R.kS,R.CZ,R.cX,R.z3,R.Sx,R.Jy,R.Eg,R.FB,R.bF,R.rf,R.LH,R.yZ,R.LB,R.Mi,R.Bj,S,v)});
g.V(this,this.QI);this.G5=new DC(u,this.NU,p);g.V(this,this.G5);this.Z$={fN:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.FN],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.TG],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.xV],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dv],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.fB]]),qI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.K7],["SLOT_TYPE_FORECASTING",this.OX],["SLOT_TYPE_IN_PLAYER",this.OX],
["SLOT_TYPE_PLAYER_BYTES",this.OX]]),uu:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.yO],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Z3],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Z3],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Z3],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Z3],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Z3],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Z3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Z3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Z3],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Z3],
["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Z3],["TRIGGER_TYPE_CLOSE_REQUESTED",this.PL],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.YJ],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Yv],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Yv],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Yv],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CZ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.YJ],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.f7],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
this.I0],["TRIGGER_TYPE_AD_BREAK_STARTED",this.kS],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.sX],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.sX],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.sX],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.sX],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.sX]]),Ig:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.g1],["SLOT_TYPE_FORECASTING",this.g1],["SLOT_TYPE_IN_PLAYER",this.g1],["SLOT_TYPE_PLAYER_BYTES",this.mR]]),
v8:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.lw],["SLOT_TYPE_FORECASTING",this.Pe],["SLOT_TYPE_IN_PLAYER",this.uL],["SLOT_TYPE_PLAYER_BYTES",this.QI]])};this.listeners=[O.get()];this.D6={FN:this.FN,pg:this.Mi.get(),HX:this.yZ.get(),Gq:this.FB.get(),Dv:this.Dv,X3:p.get(),cK:this.NU.get(),u8:this.yO,JV:O.get(),X9:this.Eg.get()}};
cHn=function(u,h,L,Z,y){g.m.call(this);var R=this,p=mq(function(){return new s7(R.Mi)});
g.V(this,p);var J=mq(function(){return new ek(p,R.Mi)});
g.V(this,J);var O=mq(function(){return new Mn});
g.V(this,O);var f=mq(function(){return new P6(u)});
g.V(this,f);var D=mq(function(){return new a7(p,J,R.Mi)});
g.V(this,D);var c=mq(function(){return new bm});
g.V(this,c);this.uF=mq(function(){return new I2(h)});
g.V(this,this.uF);this.yZ=mq(function(){return new Vr(y)});
g.V(this,this.yZ);this.rf=mq(function(){return new WJ(h)});
g.V(this,this.rf);this.bF=mq(function(){return new Fw(h)});
g.V(this,this.bF);this.Jy=mq(function(){return new CW(h)});
g.V(this,this.Jy);this.LH=mq(function(){return new bY(h)});
g.V(this,this.LH);this.Mi=mq(function(){return new EQ(h)});
g.V(this,this.Mi);var I=mq(function(){return new cq(Z)});
g.V(this,I);var A=mq(function(){return new Oi(R.Mi)});
g.V(this,A);var x=mq(function(){return new J$(p,D,J,R.Mi,A,null,null,null,null)});
g.V(this,x);this.LB=mq(function(){return new MV(h)});
g.V(this,this.LB);this.Eg=mq(function(){return new R2(h,c,R.Mi)});
g.V(this,this.Eg);var Q=$n({Eg:this.Eg,Mi:this.Mi,Xo:A}),S=Q.context,v=Q.A3;this.j7=Q.j7;this.FB=mq(function(){return new pW(h,R.Eg,R.Mi)});
g.V(this,this.FB);this.z3=mq(function(){return new uh(R.FB,h,R.Mi)});
g.V(this,this.z3);this.cX=mq(function(){return new yI(h,O,R.z3,R.Eg,R.j7,R.Mi,v)});
g.V(this,this.cX);this.Sx=mq(function(){return new eM(R.Mi)});
g.V(this,this.Sx);this.xV=new A$(I7,QI,function(U,z,d,W){return a4(J.get(),U,z,d,W)},f,D,J,A,this.Mi,this.Eg);
g.V(this,this.xV);this.Dv=new xT(f,x,L,this.Mi,u,this.Eg,this.FB,this.rf);g.V(this,this.Dv);var T=new t9(h,this.Dv,this.FB,this.Eg);this.kN=mq(function(){return T});
this.RZ=T;this.fB=new CO(f,D,this.bF,this.kN,S);g.V(this,this.fB);this.FN=new o4(this.Mi,f,D,x,this.Eg,this.fB,L);g.V(this,this.FN);this.K7=mq(function(){return new Jc(I,J,A,R.Mi,R.cX,R.FB)});
g.V(this,this.K7);this.OX=mq(function(){return new Ox});
g.V(this,this.OX);this.yO=new qn(u,this.uF,this.Mi);g.V(this,this.yO);this.Z3=new TL(u);g.V(this,this.Z3);this.YJ=new U7(u,this.kN,S);g.V(this,this.YJ);this.Yv=new GL(u,this.bF,this.FB,this.Eg,S);g.V(this,this.Yv);this.CZ=new r4(u);g.V(this,this.CZ);this.f7=new B6(u);g.V(this,this.f7);this.Bj=mq(function(){return new ih(h)});
g.V(this,this.Bj);this.kS=new nO(u);g.V(this,this.kS);this.g1=mq(function(){return new lm});
g.V(this,this.g1);this.mR=mq(function(){return new Sk(R.FB)});
g.V(this,this.mR);this.lw=mq(function(){return new WI(R.FN,f,p)});
g.V(this,this.lw);this.Pe=mq(function(){return new Ex(R.Mi,R.cX,R.CZ,R.z3)});
g.V(this,this.Pe);this.QD=mq(function(){return new kC1(R.uF,R.FB,R.cX,O,L,R.Mi)});
g.V(this,this.QD);this.QI=mq(function(){return new yL(u,R.kS,R.CZ,R.cX,R.z3,R.Sx,R.Jy,R.Eg,R.FB,R.bF,R.rf,R.LH,R.yZ,R.LB,R.Mi,R.Bj,S,v)});
g.V(this,this.QI);this.Z$={fN:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.FN],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.xV],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dv],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.fB]]),qI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.K7],["SLOT_TYPE_FORECASTING",this.OX],["SLOT_TYPE_IN_PLAYER",this.OX],["SLOT_TYPE_PLAYER_BYTES",this.OX]]),uu:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.yO],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Z3],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Z3],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Z3],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Z3],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Z3],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Z3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Z3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Z3],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Z3],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.YJ],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Yv],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Yv],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CZ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.YJ],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.f7],["TRIGGER_TYPE_AD_BREAK_STARTED",this.kS]]),Ig:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.g1],["SLOT_TYPE_ABOVE_FEED",this.g1],["SLOT_TYPE_FORECASTING",this.g1],["SLOT_TYPE_IN_PLAYER",this.g1],["SLOT_TYPE_PLAYER_BYTES",this.mR]]),v8:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.lw],["SLOT_TYPE_FORECASTING",this.Pe],["SLOT_TYPE_IN_PLAYER",
this.QD],["SLOT_TYPE_PLAYER_BYTES",this.QI]])};this.listeners=[O.get()];this.D6={FN:this.FN,pg:this.Mi.get(),HX:this.yZ.get(),Gq:this.FB.get(),Dv:this.Dv,X3:p.get(),cK:null,u8:this.yO,JV:O.get(),X9:this.Eg.get()}};
I9b=function(u,h,L,Z,y){g.m.call(this);var R=this,p=mq(function(){return new s7(R.Mi)});
g.V(this,p);var J=mq(function(){return new ek(p,R.Mi)});
g.V(this,J);var O=mq(function(){return new Mn});
g.V(this,O);var f=mq(function(){return new P6(u)});
g.V(this,f);var D=mq(function(){return new a7(p,J,R.Mi)});
g.V(this,D);var c=mq(function(){return new bm});
g.V(this,c);this.Od=mq(function(){return new Ozs(h)});
g.V(this,this.Od);this.uF=mq(function(){return new I2(h)});
g.V(this,this.uF);this.yZ=mq(function(){return new Vr(y)});
g.V(this,this.yZ);this.rf=mq(function(){return new WJ(h)});
g.V(this,this.rf);this.bF=mq(function(){return new Fw(h)});
g.V(this,this.bF);this.Jy=mq(function(){return new CW(h)});
g.V(this,this.Jy);this.LH=mq(function(){return new bY(h)});
g.V(this,this.LH);this.Mi=mq(function(){return new EQ(h)});
g.V(this,this.Mi);var I=mq(function(){return new cq(Z)});
g.V(this,I);var A=mq(function(){return new Oi(R.Mi)});
g.V(this,A);var x=mq(function(){return new J$(p,D,J,R.Mi,A,null,null,null,null)});
g.V(this,x);this.LB=mq(function(){return new MV(h)});
g.V(this,this.LB);this.Eg=mq(function(){return new R2(h,c,R.Mi)});
g.V(this,this.Eg);var Q=$n({Eg:this.Eg,Mi:this.Mi,Xo:A}),S=Q.context,v=Q.A3;this.j7=Q.j7;this.FB=mq(function(){return new pW(h,R.Eg,R.Mi)});
g.V(this,this.FB);this.z3=mq(function(){return new uh(R.FB,h,R.Mi)});
g.V(this,this.z3);this.cX=mq(function(){return new yI(h,O,R.z3,R.Eg,R.j7,R.Mi,v)});
g.V(this,this.cX);this.Sx=mq(function(){return new eM(R.Mi)});
g.V(this,this.Sx);this.xV=new A$(v$f,QI,function(U,z,d,W){return tNn(J.get(),U,z,d,W)},f,D,J,A,this.Mi,this.Eg);
g.V(this,this.xV);this.Dv=new xT(f,x,L,this.Mi,u,this.Eg,this.FB,this.rf);g.V(this,this.Dv);var T=new t9(h,this.Dv,this.FB,this.Eg);this.kN=mq(function(){return T});
this.RZ=T;this.fB=new CO(f,D,this.bF,this.kN,S);g.V(this,this.fB);this.FN=new o4(this.Mi,f,D,x,this.Eg,this.fB,L);g.V(this,this.FN);this.K7=mq(function(){return new Jc(I,J,A,R.Mi,R.cX,R.FB)});
g.V(this,this.K7);this.OX=mq(function(){return new Ox});
g.V(this,this.OX);this.yO=new qn(u,this.uF,this.Mi);g.V(this,this.yO);this.Z3=new TL(u);g.V(this,this.Z3);this.YJ=new U7(u,this.kN,S);g.V(this,this.YJ);this.Yv=new GL(u,this.bF,this.FB,this.Eg,S);g.V(this,this.Yv);this.CZ=new r4(u);g.V(this,this.CZ);this.f7=new B6(u);g.V(this,this.f7);this.Bj=mq(function(){return new ih(h)});
g.V(this,this.Bj);this.kS=new nO(u);g.V(this,this.kS);this.g1=mq(function(){return new lm});
g.V(this,this.g1);this.mR=mq(function(){return new Sk(R.FB)});
g.V(this,this.mR);this.lw=mq(function(){return new WI(R.FN,f,p)});
g.V(this,this.lw);this.Pe=mq(function(){return new Ex(R.Mi,R.cX,R.CZ,R.z3)});
g.V(this,this.Pe);this.QI=mq(function(){return new yL(u,R.kS,R.CZ,R.cX,R.z3,R.Sx,R.Jy,R.Eg,R.FB,R.bF,R.rf,R.LH,R.yZ,R.LB,R.Mi,R.Bj,S,v)});
g.V(this,this.QI);this.b4=mq(function(){return new wcR(R.uF,R.FB,R.cX,O,R.Od,L,R.Eg)});
g.V(this,this.b4);this.Z$={fN:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.FN],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.xV],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dv],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.fB]]),qI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.K7],["SLOT_TYPE_FORECASTING",this.OX],["SLOT_TYPE_IN_PLAYER",this.OX],["SLOT_TYPE_PLAYER_BYTES",this.OX]]),uu:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.yO],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Z3],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Z3],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Z3],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Z3],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Z3],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Z3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Z3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Z3],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Z3],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.YJ],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Yv],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Yv],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CZ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.YJ],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.f7],["TRIGGER_TYPE_AD_BREAK_STARTED",this.kS]]),Ig:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.g1],["SLOT_TYPE_FORECASTING",this.g1],["SLOT_TYPE_IN_PLAYER",this.g1],["SLOT_TYPE_PLAYER_BYTES",this.mR]]),v8:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.lw],["SLOT_TYPE_FORECASTING",this.Pe],["SLOT_TYPE_IN_PLAYER",this.b4],["SLOT_TYPE_PLAYER_BYTES",
this.QI]])};this.listeners=[O.get()];this.D6={FN:this.FN,pg:this.Mi.get(),HX:this.yZ.get(),Gq:this.FB.get(),Dv:this.Dv,X3:p.get(),cK:null,u8:this.yO,JV:O.get(),X9:this.Eg.get()}};
AHe=function(u,h,L,Z,y){g.m.call(this);var R=this,p=mq(function(){return new s7(R.Mi)});
g.V(this,p);var J=mq(function(){return new ek(p,R.Mi)});
g.V(this,J);var O=mq(function(){return new Mn});
g.V(this,O);var f=mq(function(){return new P6(u)});
g.V(this,f);var D=mq(function(){return new a7(p,J,R.Mi)});
g.V(this,D);var c=mq(function(){return new bm});
g.V(this,c);this.Od=mq(function(){return new Ozs(h)});
g.V(this,this.Od);this.uF=mq(function(){return new I2(h)});
g.V(this,this.uF);this.yZ=mq(function(){return new Vr(y)});
g.V(this,this.yZ);this.rf=mq(function(){return new WJ(h)});
g.V(this,this.rf);this.bF=mq(function(){return new Fw(h)});
g.V(this,this.bF);this.Jy=mq(function(){return new CW(h)});
g.V(this,this.Jy);this.LH=mq(function(){return new bY(h)});
g.V(this,this.LH);this.Mi=mq(function(){return new EQ(h)});
g.V(this,this.Mi);var I=mq(function(){return new cq(Z)});
g.V(this,I);var A=mq(function(){return new Oi(R.Mi)});
g.V(this,A);this.LB=mq(function(){return new MV(h)});
g.V(this,this.LB);this.Eg=mq(function(){return new R2(h,c,R.Mi)});
g.V(this,this.Eg);var x=$n({Eg:this.Eg,Mi:this.Mi,Xo:A}),Q=x.context,S=x.A3;this.j7=x.j7;this.fW=mq(function(){return new Pq(h,R.Mi,R.cX)});
g.V(this,this.fW);this.Bj=mq(function(){return new ih(h)});
g.V(this,this.Bj);this.FB=mq(function(){return new pW(h,R.Eg,R.Mi)});
g.V(this,this.FB);x=mq(function(){return new J$(p,D,J,R.Mi,A,null,R.FB,R.TG,R.sX,3)});
g.V(this,x);this.Sx=mq(function(){return new eM(R.Mi)});
this.z3=mq(function(){return new uh(R.FB,h,R.Mi)});
g.V(this,this.z3);this.cX=mq(function(){return new yI(h,O,R.z3,R.Eg,R.j7,R.Mi,S)});
g.V(this,this.cX);this.Dv=new xT(f,x,L,this.Mi,u,this.Eg,this.FB,this.rf);g.V(this,this.Dv);var v=new t9(h,this.Dv,this.FB,this.Eg,this.fW);this.kN=mq(function(){return v});
this.RZ=v;this.xV=new A$(qdR,QI,function(T,U,z,d){return tNn(J.get(),T,U,z,d)},f,D,J,A,this.Mi,this.Eg);
g.V(this,this.xV);this.TG=new D2(f,D,this.kN,this.fW,this.FB,this.Mi,this.cX,this.Bj);g.V(this,this.TG);this.fB=new CO(f,D,this.bF,this.kN,Q);g.V(this,this.fB);this.FN=new o4(this.Mi,f,D,x,this.Eg,this.fB,L);g.V(this,this.FN);this.K7=mq(function(){return new Jc(I,J,A,R.Mi,R.cX,R.FB,R.Bj)});
g.V(this,this.K7);this.OX=mq(function(){return new Ox});
g.V(this,this.OX);this.yO=new qn(u,this.uF,this.Mi);g.V(this,this.yO);this.Z3=new TL(u);g.V(this,this.Z3);this.YJ=new U7(u,this.kN,Q);g.V(this,this.YJ);this.Yv=new GL(u,this.bF,this.FB,this.Eg,Q);g.V(this,this.Yv);this.Wf=new H6(u,this.Eg);g.V(this,this.Wf);this.sX=new zL(u,this.fW,this.FB,this.cX,this.kN);g.V(this,this.sX);this.CZ=new r4(u);g.V(this,this.CZ);this.f7=new B6(u);g.V(this,this.f7);this.kS=new nO(u);g.V(this,this.kS);this.g1=mq(function(){return new lm});
g.V(this,this.g1);this.mR=mq(function(){return new Sk(R.FB)});
g.V(this,this.mR);this.lw=mq(function(){return new WI(R.FN,f,p)});
g.V(this,this.lw);this.Pe=mq(function(){return new Ex(R.Mi,R.cX,R.CZ,R.z3)});
g.V(this,this.Pe);this.QI=mq(function(){return new ZQ(u,R.kS,R.CZ,R.Eg,R.Bj,R.FB,R.cX,c,R.fW,R.z3,R.Sx,R.Jy,R.bF,R.rf,R.LH,R.yZ,R.LB,R.Mi,O,Q,S)});
g.V(this,this.QI);this.uL=mq(function(){return new ede(R.uF,R.FB,R.cX,O,R.Od,L,R.Mi,R.Eg)});
g.V(this,this.uL);this.Z$={fN:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.FN],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.TG],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.xV],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dv],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.fB]]),qI:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.K7],["SLOT_TYPE_FORECASTING",this.OX],["SLOT_TYPE_IN_PLAYER",this.OX],["SLOT_TYPE_PLAYER_BYTES",this.OX]]),uu:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
this.yO],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Z3],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Z3],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Z3],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Z3],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Z3],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Z3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Z3],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Z3],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Z3],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.YJ],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
this.Yv],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Yv],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Wf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Wf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CZ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.YJ],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.f7],["TRIGGER_TYPE_AD_BREAK_STARTED",this.kS],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.sX],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",
this.sX],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.sX],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.sX],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.sX]]),Ig:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.g1],["SLOT_TYPE_FORECASTING",this.g1],["SLOT_TYPE_IN_PLAYER",this.g1],["SLOT_TYPE_PLAYER_BYTES",this.mR]]),v8:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.lw],["SLOT_TYPE_FORECASTING",this.Pe],["SLOT_TYPE_PLAYER_BYTES",this.QI],["SLOT_TYPE_IN_PLAYER",this.uL]])};this.listeners=[O.get()];
this.D6={FN:this.FN,pg:this.Mi.get(),HX:this.yZ.get(),Gq:this.FB.get(),Dv:this.Dv,X3:p.get(),cK:null,u8:this.yO,JV:O.get(),X9:this.Eg.get()}};
P4l=function(u,h,L,Z){function y(){return R.N}
g.m.call(this);var R=this;u.L().experiments.tB("html5_dispose_of_manager_before_dependency")?(this.G=xDi(y,u,h,L,Z),this.N=(new di(this.G)).X(),g.V(this,this.N),g.V(this,this.G)):(this.G=xDi(y,u,h,L,Z),g.V(this,this.G),this.N=(new di(this.G)).X(),g.V(this,this.N))};
lh=function(u){return u.G.D6};
xDi=function(u,h,L,Z,y){try{var R=h.L();if(g.nC(R))var p=new f9s(u,h,L,Z,y);else if(g.wS(R))p=new DDi(u,h,L,Z,y);else if(Gg(R))p=new cHn(u,h,L,Z,y);else if(g.rp(R))p=new I9b(u,h,L,Z,y);else if(g.qW(R))p=new AHe(u,h,L,Z,y);else throw new TypeError("Unknown web interface");return p}catch(J){return p=h.L(),Jk("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:p.G.cplatform,interface:p.G.c,gzd:p.G.cver,BCI:p.G.ctheme,zUB:p.G.cplayer,tAH:p.playerStyle}),new u1n(u,h,L,Z,y)}};
C4j=function(u){nu.call(this,u)};
MCY=function(u,h,L,Z,y){FX.call(this,u,{K:"div",U:"ytp-ad-timed-pie-countdown-container",Z:[{K:"svg",U:"ytp-ad-timed-pie-countdown",J:{viewBox:"0 0 20 20"},Z:[{K:"circle",U:"ytp-ad-timed-pie-countdown-background",J:{r:"10",cx:"10",cy:"10"}},{K:"circle",U:"ytp-ad-timed-pie-countdown-inner",J:{r:"5",cx:"10",cy:"10"}},{K:"circle",U:"ytp-ad-timed-pie-countdown-outer",J:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",h,L,Z,y);this.B=this.BX("ytp-ad-timed-pie-countdown-container");this.X=this.BX("ytp-ad-timed-pie-countdown-inner");
this.C=this.BX("ytp-ad-timed-pie-countdown-outer");this.N=Math.ceil(2*Math.PI*5);this.hide()};
ize=function(u,h,L,Z,y,R){fu.call(this,u,{K:"div",U:"ytp-ad-action-interstitial",J:{tabindex:"0"},Z:[{K:"div",U:"ytp-ad-action-interstitial-background-container"},{K:"div",U:"ytp-ad-action-interstitial-slot",Z:[{K:"div",U:"ytp-ad-action-interstitial-instream-info"},{K:"div",U:"ytp-ad-action-interstitial-card",Z:[{K:"div",U:"ytp-ad-action-interstitial-image-container"},{K:"div",U:"ytp-ad-action-interstitial-headline-container"},{K:"div",U:"ytp-ad-action-interstitial-description-container"},{K:"div",
U:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",h,L,Z);this.iO=y;this.wQ=R;this.navigationEndpoint=this.G=this.skipButton=this.N=this.actionButton=null;this.aH=this.BX("ytp-ad-action-interstitial-instream-info");this.vX=this.BX("ytp-ad-action-interstitial-image-container");this.Y=new zC(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,"ytp-ad-action-interstitial-image");g.V(this,this.Y);this.Y.Og(this.vX);this.DI=this.BX("ytp-ad-action-interstitial-headline-container");
this.C=new tm(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,"ytp-ad-action-interstitial-headline");g.V(this,this.C);this.C.Og(this.DI);this.RH=this.BX("ytp-ad-action-interstitial-description-container");this.X=new tm(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,"ytp-ad-action-interstitial-description");g.V(this,this.X);this.X.Og(this.RH);this.fI=this.BX("ytp-ad-action-interstitial-background-container");this.VA=new zC(this.api,this.layoutId,this.interactionLoggingClientData,
this.HX,"ytp-ad-action-interstitial-background",!0);g.V(this,this.VA);this.VA.Og(this.fI);this.Sd=this.BX("ytp-ad-action-interstitial-action-button-container");this.slot=this.BX("ytp-ad-action-interstitial-slot");this.fZ=this.BX("ytp-ad-action-interstitial-card");this.B=new vD;g.V(this,this.B);this.hide()};
Q81=function(u){var h=g.eT("html5-video-player");h&&g.JW(h,"ytp-ad-display-override",u)};
vhY=function(u,h,L,Z){fu.call(this,u,{K:"div",U:"ytp-ad-overlay-slot",Z:[{K:"div",U:"ytp-ad-overlay-container"}]},"invideo-overlay",h,L,Z);this.Y=[];this.fI=this.DI=this.B=this.Sd=this.aH=null;this.VA=!1;this.C=null;this.RH=0;u=this.BX("ytp-ad-overlay-container");this.vX=new ZK(u,45E3,6E3,.3,.4);g.V(this,this.vX);this.X=l9L(this);g.V(this,this.X);this.X.Og(u);this.N=S1l(this);g.V(this,this.N);this.N.Og(u);this.G=XFV(this);g.V(this,this.G);this.G.Og(u);this.hide()};
l9L=function(u){var h=new g.OD({K:"div",U:"ytp-ad-text-overlay",Z:[{K:"div",U:"ytp-ad-overlay-ad-info-button-container"},{K:"div",U:"ytp-ad-overlay-close-container",Z:[{K:"button",U:"ytp-ad-overlay-close-button",Z:[YS(q1a)]}]},{K:"div",U:"ytp-ad-overlay-title",dw:"{{title}}"},{K:"div",U:"ytp-ad-overlay-desc",dw:"{{description}}"},{K:"div",CI:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],dw:"{{displayUrl}}"}]});u.W(h.BX("ytp-ad-overlay-title"),"click",function(L){SP(u,h.element,L)});
u.W(h.BX("ytp-ad-overlay-link"),"click",function(L){SP(u,h.element,L)});
u.W(h.BX("ytp-ad-overlay-close-container"),"click",u.tJ);h.hide();return h};
S1l=function(u){var h=new g.OD({K:"div",CI:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],Z:[{K:"div",U:"ytp-ad-overlay-ad-info-button-container"},{K:"div",U:"ytp-ad-overlay-close-container",Z:[{K:"button",U:"ytp-ad-overlay-close-button",Z:[YS(q1a)]}]},{K:"div",U:"ytp-ad-overlay-text-image",Z:[{K:"img",J:{src:"{{imageUrl}}"}}]},{K:"div",U:"ytp-ad-overlay-title",dw:"{{title}}"},{K:"div",U:"ytp-ad-overlay-desc",dw:"{{description}}"},{K:"div",CI:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
dw:"{{displayUrl}}"}]});u.W(h.BX("ytp-ad-overlay-title"),"click",function(L){SP(u,h.element,L)});
u.W(h.BX("ytp-ad-overlay-link"),"click",function(L){SP(u,h.element,L)});
u.W(h.BX("ytp-ad-overlay-close-container"),"click",u.tJ);u.W(h.BX("ytp-ad-overlay-text-image"),"click",u.eRX);h.hide();return h};
XFV=function(u){var h=new g.OD({K:"div",U:"ytp-ad-image-overlay",Z:[{K:"div",U:"ytp-ad-overlay-ad-info-button-container"},{K:"div",U:"ytp-ad-overlay-close-container",Z:[{K:"button",U:"ytp-ad-overlay-close-button",Z:[YS(q1a)]}]},{K:"div",U:"ytp-ad-overlay-image",Z:[{K:"img",J:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});u.W(h.BX("ytp-ad-overlay-image"),"click",function(L){SP(u,h.element,L)});
u.W(h.BX("ytp-ad-overlay-close-container"),"click",u.tJ);h.hide();return h};
TfR=function(u,h){if(h){var L=g.n(h,ve)||null;L==null?g.UZ(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(h=g.eT("video-ads ytp-ad-module")||null,h==null?g.UZ(Error("Could not locate the root ads container element to attach the ad info dialog.")):(u.DI=new g.OD({K:"div",U:"ytp-ad-overlay-ad-info-dialog-container"}),g.V(u,u.DI),u.DI.Og(h),h=new $S(u.api,u.layoutId,u.interactionLoggingClientData,u.HX,u.DI.element,!1),g.V(u,h),h.init(Lu("ad-info-hover-text-button"),L,u.macros),
u.C?(h.Og(u.C,0),h.subscribe("f",u.V7y,u),h.subscribe("e",u.sz,u),u.W(u.C,"click",u.UpX),u.W(g.eT("ytp-ad-button",h.element),"click",function(){var Z;if(g.n((Z=g.n(L.button,g.TW))==null?void 0:Z.serviceEndpoint,bMn))u.VA=u.api.getPlayerState(1)===2,u.api.pauseVideo();else u.api.onAdUxClicked("ad-info-hover-text-button",u.layoutId)}),u.fI=h):g.UZ(Error("Ad info button container within overlay ad was not present."))))}else g.G3(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
ohY=function(u,h){if(Y1a(u,Xj)||u.api.isMinimized())return!1;var L=Dd(h.title),Z=Dd(h.description);if(g.Xg(L)||g.Xg(Z))return!1;u.createServerVe(u.X.element,h.trackingParams||null);u.X.updateValue("title",Dd(h.title));u.X.updateValue("description",Dd(h.description));u.X.updateValue("displayUrl",Dd(h.displayUrl));h.navigationEndpoint&&g.Lw(u.Y,h.navigationEndpoint);u.X.show();u.vX.start();u.logVisibility(u.X.element,!0);u.W(u.X.element,"mouseover",function(){u.RH++});
return!0};
Nfs=function(u,h){if(Y1a(u,Xj)||u.api.isMinimized())return!1;var L=Dd(h.title),Z=Dd(h.description);if(g.Xg(L)||g.Xg(Z))return!1;u.createServerVe(u.N.element,h.trackingParams||null);u.N.updateValue("title",Dd(h.title));u.N.updateValue("description",Dd(h.description));u.N.updateValue("displayUrl",Dd(h.displayUrl));u.N.updateValue("imageUrl",I3n(h.image));h.navigationEndpoint&&g.Lw(u.Y,h.navigationEndpoint);u.Sd=h.imageNavigationEndpoint||null;u.N.show();u.vX.start();u.logVisibility(u.N.element,!0);
u.W(u.N.element,"mouseover",function(){u.RH++});
return!0};
UDb=function(u,h){if(u.api.isMinimized())return!1;var L=Avn(h.image),Z=L;L.width<Xj.width&&(Z=Xj);if(L.width===0||L.height===0||Y1a(u,Z))return!1;u.createServerVe(u.G.element,h.trackingParams||null);u.G.updateValue("imageUrl",I3n(h.image));u.G.updateValue("width",L.width);u.G.updateValue("height",L.height);h.navigationEndpoint&&g.Lw(u.Y,h.navigationEndpoint);g.Oz(u.G.BX("ytp-ad-image-overlay"),"max-width",L.width+"px");u.G.show();u.logVisibility(u.G.element,!0);u.W(u.G.element,"mouseover",function(){u.RH++;
u.api.Rn("invideo-overlay",u.layoutId)});
u.W(u.G.element,"mouseout",function(){u.api.Ae("invideo-overlay",u.layoutId)});
return!0};
Y1a=function(u,h){var L=u.api.m_().Oe(),Z=u.api.Wb(!0,!1);return(h=JL(L,L.height-(Z.height+Z.top),h))?(u.aH&&h&&(L=g.No(u.macros),L.ERRORCODE=h.hT.toString(),L.ERROR_MSG=h.errorMessage,u.layoutId?si(u.HX,u.aH,u.layoutId,L):g.UZ(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
SP=function(u,h,L){var Z=g.No(u.macros),y=g.Qz(h);Z.AW={toString:function(){return y.width.toString()}};
Z.AH={toString:function(){return y.height.toString()}};
var R=g.M2(L,h).floor();Z.I_X={toString:function(){return R.x.toString()}};
Z.NX={toString:function(){return R.x.toString()}};
Z.I_Y={toString:function(){return R.y.toString()}};
Z.NY={toString:function(){return R.y.toString()}};
Z.NM={toString:function(){return u.RH.toString()}};
h=g.C(u.Y);for(L=h.next();!L.done;L=h.next())L=L.value,u.layoutId?si(u.HX,L,u.layoutId,Z):g.UZ(Error("Missing layoutId for invideo_overlay_ad."));u.api.pauseVideo()};
GUw=function(u,h){u=u.api.getRootNode();g.JW(u,"ytp-ad-overlay-open",h);g.JW(u,"ytp-ad-overlay-closed",!h)};
Hzs=function(u,h,L,Z,y){FX.call(this,u,{K:"div",U:"ytp-ad-message-overlay",Z:[{K:"div",U:"ytp-ad-message-slot"}]},"ad-message",h,L,Z,y);var R=this;this.C=-1;this.X=0;this.RH=!1;this.DI=this.BX("ytp-ad-message-slot");this.N=new g.OD({K:"span",U:"ytp-ad-message-container"});this.N.Og(this.DI);g.V(this,this.N);this.messageText=new tm(this.api,this.layoutId,this.interactionLoggingClientData,Z,"ytp-ad-message-text");g.V(this,this.messageText);this.messageText.Og(this.N.element);this.B=new g.kS(this.N,
400,!1,100,function(){R.hide()});
g.V(this,this.B);this.hide()};
rHs=function(u,h){u=u.api.getRootNode();g.JW(u,"ytp-ad-overlay-open",h);g.JW(u,"ytp-ad-overlay-closed",!h)};
Bfb=function(u,h,L,Z){fu.call(this,u,{K:"div",U:"ytp-ad-underlay-companion",Z:[{K:"div",U:"ytp-ad-underlay-side-container",Z:[{K:"div",U:"ytp-ad-underlay-image-container"},{K:"div",U:"ytp-ad-underlay-description-container"},{K:"div",U:"ytp-ad-underlay-headline-container"},{K:"div",U:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",h,L,Z);this.actionButton=null;this.DI=this.BX("ytp-ad-underlay-image-container");this.X=new zC(this.api,this.layoutId,this.interactionLoggingClientData,
this.HX,"ytp-ad-underlay-image");g.V(this,this.X);this.X.Og(this.DI);this.RH=this.BX("ytp-ad-underlay-headline-container");this.N=new tm(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,"ytp-ad-underlay-headline");g.V(this,this.N);this.N.Og(this.RH);this.Y=this.BX("ytp-ad-underlay-description-container");this.B=new tm(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,"ytp-ad-underlay-description");g.V(this,this.B);this.B.Og(this.Y);this.C=this.BX("ytp-ad-underlay-action-button-container");
this.G=this.BX("ytp-ad-underlay-side-container");this.hide()};
zOj=function(u){var h=g.eT("html5-video-player");h&&g.JW(h,"ytp-ad-display-override",u)};
vq=function(u,h,L,Z,y,R){R=R===void 0?function(){}:R;
fu.call(this,u,{K:"div",U:"ytp-ad-survey-answer"},"survey-answer",h,L,Z);this.index=y;this.onSelected=R;this.G=null;this.toggledLoggingParams="";this.answer=this.BX("ytp-ad-survey-answer");this.hide()};
mDf=function(u,h,L,Z){fu.call(this,u,{K:"div",U:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",h,L,Z);this.button=null;this.G=this.BX("ytp-ad-survey-none-of-the-above");this.hide()};
qV=function(u,h,L,Z){var y=["ytp-ad-survey-submit-button"];y.push("ytp-ad-survey-submit-button-rounded");oG.call(this,u,h,L,Z,y,"survey-submit")};
To=function(u,h,L,Z,y){fu.call(this,u,{K:"div",U:"ytp-ad-survey-player-overlay",Z:[{K:"div",U:"ytp-ad-survey-player-overlay-instream-info"},{K:"div",U:"ytp-ad-survey-player-overlay-skip-preview-submit",Z:[{K:"div",U:"ytp-ad-survey-player-overlay-skip-or-preview"},{K:"div",U:"ytp-ad-survey-player-overlay-submit"}]},{K:"div",U:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",h,L,Z);this.B=y;this.N=this.G=null;this.X=this.BX("ytp-ad-survey-player-overlay-instream-info");
this.skipOrPreview=this.BX("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.BX("ytp-ad-survey-player-overlay-submit");g.V(this,this.B);this.hide()};
Yu=function(u,h,L,Z,y,R){R=R===void 0?function(){}:R;
fu.call(this,u,{K:"div",U:"ytp-ad-survey-question",Z:[{K:"div",CI:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{K:"div",CI:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{K:"div",CI:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{K:"div",U:"ytp-ad-survey-question-background"}]},y,h,L,Z);this.DI=R;this.B=null;this.N=[];this.G=null;this.Y=this.api.L().experiments.tB("a11y_h5_associate_survey_question");this.question=this.BX("ytp-ad-survey-question");
this.vX=this.BX("ytp-ad-survey-question-background");this.questionText=this.BX("ytp-ad-survey-question-text");this.answers=this.BX("ytp-ad-survey-answers");this.playerOverlay=this.BX("ytp-ad-survey-question-player-overlay");this.X=Date.now()};
dDY=function(u,h){h=g.cL(h);g.yg(u.questionText,h);u.Y&&u.questionText.setAttribute("id",Lu("survey-question-text"))};
VCb=function(u,h,L,Z){Z=new vq(u.api,u.layoutId,u.interactionLoggingClientData,u.HX,Z,u.DI);Z.Og(u.answers);Z.init(Lu("survey-answer"),h,L);u.Y&&(h=u.questionText.getAttribute("id"),h!=null&&(Z.G!==null?Z.G.N.setAttribute("aria-describedby",h):Z.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",h)));u.N.push(Z)};
s8n=function(u,h){if(h){var L=h.background;L&&g.n(L,nha)&&(L=(L=g.n(L,nha).image)&&BL(L)||"",g.Xg(L)?g.G3(Error("Found ThumbnailDetails without valid image URL")):g.Oz(u.vX,"backgroundImage","url("+L+")"));if(h.durationMilliseconds==null||h.durationMilliseconds===void 0||h.durationMilliseconds===0)g.UZ(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(h)));else{u.X=g.u3();u.G=new Mw(u.api,h.durationMilliseconds);g.V(u,u.G);if(u.G&&h.instreamAdPlayerOverlay&&g.n(h.instreamAdPlayerOverlay,
Xb))try{var Z=new To(u.api,u.layoutId,u.interactionLoggingClientData,u.HX,u.G);Z.Og(u.playerOverlay);Z.init(Lu("survey-player-overlay"),g.n(h.instreamAdPlayerOverlay,Xb),u.macros);u.B=Z;g.V(u,Z);u.y0()}catch(y){g.UZ(Error("ISAPOR had an error when initializing. Error: "+(y+" SurveyAdQuestionCommon: "+JSON.stringify(h))))}else g.UZ(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(h)));u.G&&h.durationMilliseconds&&h.durationMilliseconds>0?(h=new Gz(u.api,u.G),h.Og(u.playerOverlay),
g.V(u,h)):g.UZ(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(h)))}}else g.UZ(Error("addCommonComponents() needs to be called before starting countdown."))};
wFi=function(u){function h(L){return{toString:function(){return L()}}}
u.macros.SURVEY_LOCAL_TIME_EPOCH_S=h(function(){var L=new Date;return(Math.round(L.valueOf()/1E3)+-1*L.getTimezoneOffset()*60).toString()});
u.macros.SURVEY_ELAPSED_MS=h(function(){return(Date.now()-u.X).toString()})};
eOn=function(u,h,L,Z,y){Yu.call(this,u,h,L,Z,"survey-question-multi-select");this.RH=y;this.noneOfTheAbove=null;this.submitEndpoints=[];this.C=null;this.hide()};
a9n=function(u,h,L){u.noneOfTheAbove=new mDf(u.api,u.layoutId,u.interactionLoggingClientData,u.HX);u.noneOfTheAbove.Og(u.answers);u.noneOfTheAbove.init(Lu("survey-none-of-the-above"),h,L)};
tCf=function(u){u.N.forEach(function(h){h.G.toggleButton(!1)});
$Dw(u,!0)};
$Dw=function(u,h){var L=u.B;u=WVn(u);h=h===void 0?!1:h;L.G&&(u?L.G.hide():L.G.show(),h&&L.G instanceof Ak&&!L.G.B&&ydY(L.G,!1));L.N&&(u?L.N.show():L.N.hide())};
WVn=function(u){return u.N.some(function(h){return h.G.isToggled()})||u.noneOfTheAbove.button.isToggled()};
o2=function(u,h,L,Z,y){Yu.call(this,u,h,L,Z,"survey-question-single-select",function(p){R.api.L().j("supports_multi_step_on_desktop")&&y([p])});
var R=this;this.hide()};
NV=function(u,h,L,Z){fu.call(this,u,{K:"div",U:"ytp-ad-survey",Z:[{K:"div",U:"ytp-ad-survey-questions"}]},"survey",h,L,Z);this.questions=[];this.N=[];this.conditioningRules=[];this.G=0;this.C=this.BX("ytp-ad-survey-questions");this.api.L().j("fix_survey_color_contrast_on_destop")&&this.BX("ytp-ad-survey").classList.add("color-contrast-fix");this.api.L().j("web_enable_speedmaster")&&this.BX("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()};
Ehl=function(u,h){var L=u.N[h],Z;(Z=u.X)==null||Z.dispose();g.n(L,SD)?FVa(u,g.n(L,SD),u.macros):g.n(L,la)&&bzV(u,g.n(L,la),u.macros);u.G=h};
FVa=function(u,h,L){var Z=new o2(u.api,u.layoutId,u.interactionLoggingClientData,u.HX,u.B.bind(u));Z.Og(u.C);Z.init(Lu("survey-question-single-select"),h,L);u.api.L().j("supports_multi_step_on_desktop")?u.X=Z:u.questions.push(Z);g.V(u,Z)};
bzV=function(u,h,L){var Z=new eOn(u.api,u.layoutId,u.interactionLoggingClientData,u.HX,u.B.bind(u));Z.Og(u.C);Z.init(Lu("survey-question-multi-select"),h,L);u.api.L().j("supports_multi_step_on_desktop")?u.X=Z:u.questions.push(Z);g.V(u,Z)};
UA=function(u,h,L,Z){fu.call(this,u,{K:"div",U:"ytp-ad-survey-interstitial",Z:[{K:"div",U:"ytp-ad-survey-interstitial-contents",Z:[{K:"div",U:"ytp-ad-survey-interstitial-logo",Z:[{K:"div",U:"ytp-ad-survey-interstitial-logo-image"}]},{K:"div",U:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",h,L,Z);this.G=this.actionButton=null;this.interstitial=this.BX("ytp-ad-survey-interstitial");this.N=this.BX("ytp-ad-survey-interstitial-contents");this.text=this.BX("ytp-ad-survey-interstitial-text");
this.logoImage=this.BX("ytp-ad-survey-interstitial-logo-image");this.transition=new g.kS(this,500,!1,300);g.V(this,this.transition)};
kUs=function(u,h){h=h&&BL(h)||"";if(g.Xg(h))g.G3(Error("Found ThumbnailDetails without valid image URL"));else{var L=u.style;u=u.style.cssText;var Z=document.implementation.createHTMLDocument("").createElement("DIV");Z.style.cssText=u;u=erw(Z.style);L.cssText=[u,'background-image:url("'+h+'");'].join("")}};
ghi=function(u){var h=g.eT("html5-video-player");h&&g.JW(h,"ytp-ad-display-override",u)};
Go=function(u,h,L,Z,y,R){R=R===void 0?0:R;FX.call(this,u,{K:"div",U:"ytp-preview-ad",Z:[{K:"div",U:"ytp-preview-ad__text"}]},"preview-ad",h,L,Z,y);var p=this;this.RH=R;this.N=0;this.B=-1;this.X=this.BX("ytp-preview-ad__text");switch(this.RH){case 1:this.X.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.kS(this,400,!1,100,function(){p.hide()});
g.V(this,this.transition);this.hide()};
Hq=function(u,h,L,Z){fu.call(this,u,{K:"img",U:"ytp-ad-avatar"},"ad-avatar",h,L,Z);this.hide()};
umV=function(u){switch(u.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}};
rU=function(u,h,L,Z,y,R){y=y===void 0?!1:y;R=R===void 0?!1:R;fu.call(this,u,{K:"button",U:"ytp-ad-button-vm"},"ad-button",h,L,Z);this.buttonText=this.buttonIcon=null;this.hide();this.G=y;this.N=R};
jaw=function(u,h,L,Z,y){FX.call(this,u,{K:"div",CI:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],Z:[{K:"div",U:"ytp-ad-avatar-lockup-card__avatar_and_text_container",Z:[{K:"div",U:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",h,L,Z,y);this.startMilliseconds=0;this.adAvatar=new Hq(this.api,this.layoutId,this.interactionLoggingClientData,this.HX);g.V(this,this.adAvatar);hf(this.element,this.adAvatar.element,0);this.headline=new qw(this.api,this.layoutId,
this.interactionLoggingClientData,this.HX);g.V(this,this.headline);this.headline.Og(this.BX("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new qw(this.api,this.layoutId,this.interactionLoggingClientData,this.HX);g.V(this,this.description);this.description.Og(this.BX("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new rU(this.api,
this.layoutId,this.interactionLoggingClientData,this.HX);g.V(this,this.adButton);this.adButton.Og(this.element);this.hide()};
Bq=function(u,h,L,Z){fu.call(this,u,{K:"button",U:"ytp-skip-ad-button",Z:[{K:"div",U:"ytp-skip-ad-button__text"}]},"skip-button",h,L,Z);var y=this;this.N=!1;this.B=this.BX("ytp-skip-ad-button__text");this.transition=new g.kS(this,500,!1,100,function(){y.hide()});
g.V(this,this.transition);this.G=new ZK(this.element,15E3,5E3,.5,.5,!0);g.V(this,this.G);this.hide()};
hLi=function(u,h,L,Z,y){FX.call(this,u,{K:"div",U:"ytp-skip-ad"},"skip-ad",h,L,Z,y);this.skipOffsetMilliseconds=0;this.B=this.isSkippable=!1;var R;if((R=this.api.getVideoData())==null?0:R.isDaiEnabled())this.B=this.api.L().j("clean_player_style_fix_on_web");if(this.B||!this.api.L().experiments.tB("disable_ad_preview_for_instream_ads"))this.N=new Go(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.G),g.V(this,this.N),this.N.Og(this.element);this.X=new Bq(this.api,this.layoutId,
this.interactionLoggingClientData,this.HX);g.V(this,this.X);this.X.Og(this.element);this.hide()};
zo=function(u,h,L,Z){fu.call(this,u,{K:"div",U:"ytp-visit-advertiser-link"},"visit-advertiser-link",h,L,Z);this.hide();this.api.j("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player");this.api.j("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player-with-light-shadow")};
m0=function(u,h,L,Z,y){fu.call(this,u,{K:"div",U:"ytp-ad-player-overlay-layout",Z:[{K:"div",U:"ytp-ad-player-overlay-layout__player-card-container"},{K:"div",U:"ytp-ad-player-overlay-layout__ad-info-container"},{K:"div",U:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{K:"div",U:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",h,L,Z);this.N=y;this.DI=this.BX("ytp-ad-player-overlay-layout__player-card-container");this.G=this.BX("ytp-ad-player-overlay-layout__ad-info-container");
this.Y=this.BX("ytp-ad-player-overlay-layout__skip-or-preview-container");this.RH=this.BX("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()};
Luw=function(u,h,L,Z){fu.call(this,u,{K:"div",U:"ytp-ad-grid-card-text",Z:[{K:"div",U:"ytp-ad-grid-card-text__metadata",Z:[{K:"div",U:"ytp-ad-grid-card-text__metadata__headline"},{K:"div",U:"ytp-ad-grid-card-text__metadata__description",Z:[{K:"div",U:"ytp-ad-grid-card-text__metadata__description__line"},{K:"div",U:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{K:"div",U:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",h,L,Z);this.headline=new qw(this.api,this.layoutId,this.interactionLoggingClientData,
this.HX);g.V(this,this.headline);this.headline.Og(this.BX("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new rU(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,!0);g.V(this,this.moreInfoButton);this.moreInfoButton.Og(this.BX("ytp-ad-grid-card-text__button"))};
dU=function(u,h,L,Z){fu.call(this,u,{K:"div",U:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",h,L,Z);this.G=[]};
VI=function(u,h,L,Z,y,R,p){FX.call(this,u,R,p,h,L,Z,y);this.playerProgressOffsetMs=0;this.N=!1};
ZHY=function(u){var h=g.eT("html5-video-player");h&&g.JW(h,"ytp-ad-display-override",u)};
yPn=function(u,h,L,Z,y){VI.call(this,u,h,L,Z,y,{K:"div",U:"ytp-display-underlay-text-grid-cards",Z:[{K:"div",U:"ytp-display-underlay-text-grid-cards__content_container",Z:[{K:"div",U:"ytp-display-underlay-text-grid-cards__content_container__header",Z:[{K:"div",U:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{K:"div",U:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{K:"div",U:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"},
{K:"div",U:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new dU(this.api,this.layoutId,this.interactionLoggingClientData,this.HX);g.V(this,this.adGridCardCollection);this.adGridCardCollection.Og(this.BX("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new rU(this.api,this.layoutId,this.interactionLoggingClientData,this.HX);g.V(this,this.adButton);this.adButton.Og(this.BX("ytp-display-underlay-text-grid-cards__content_container__ad_button"));
this.X=this.BX("ytp-display-underlay-text-grid-cards__content_container");this.B=this.BX("ytp-display-underlay-text-grid-cards__content_container__header")};
nW=function(u,h,L,Z){fu.call(this,u,{K:"div",U:"ytp-ad-details-line"},"ad-details-line",h,L,Z);this.G=[];this.hide()};
sA=function(u,h,L,Z){fu.call(this,u,{K:"div",U:"ytp-image-background",Z:[{K:"img",U:"ytp-image-background-image"}]},"image-background",h,L,Z);this.hide()};
RLV=function(u,h,L,Z,y){FX.call(this,u,{K:"svg",U:"ytp-timed-pie-countdown",J:{viewBox:"0 0 20 20"},Z:[{K:"circle",U:"ytp-timed-pie-countdown__background",J:{r:"10",cx:"10",cy:"10"}},{K:"circle",U:"ytp-timed-pie-countdown__inner",J:{r:"5",cx:"10",cy:"10"}},{K:"circle",U:"ytp-timed-pie-countdown__outer",J:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",h,L,Z,y);this.X=this.BX("ytp-timed-pie-countdown__inner");this.N=Math.ceil(2*Math.PI*5);this.hide()};
wU=function(u,h,L,Z){fu.call(this,u,{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout",J:{tabindex:"0"},Z:[{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content",Z:[{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",Z:[{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"},
{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{K:"div",U:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",h,L,Z);this.N=null;this.B=this.BX("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.X=new vD;g.V(this,this.X);this.hide()};
pgR=function(u){var h=g.eT("html5-video-player");h&&g.JW(h,"ytp-ad-display-override",u)};
Kun=function(u){if(!u.adAvatar||!g.n(u.adAvatar,eP))return g.UZ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!u.headline)return g.UZ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!u.adBadge||!g.n(u.adBadge,a2))return g.UZ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!u.adButton||!g.n(u.adButton,$u))return g.UZ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!u.adInfoRenderer||
!g.n(u.adInfoRenderer,ve))return g.UZ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;u=u.durationMilliseconds||0;return typeof u!=="number"||u<=0?(g.UZ(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+u)),!1):!0};
tI=function(u,h,L){nu.call(this,u);this.api=u;this.HX=h;this.N={};u=new g.a({K:"div",CI:["video-ads","ytp-ad-module"]});g.V(this,u);aV&&g.yN(u.element,"ytp-ads-tiny-mode");this.T=new P5(u.element);g.V(this,this.T);g.XC(this.api,u.element,4);$3(L)&&(L=new g.a({K:"div",CI:["ytp-ad-underlay"]}),g.V(this,L),this.X=new P5(L.element),g.V(this,this.X),g.XC(this.api,L.element,0));g.V(this,rvf())};
JPl=function(u,h){u=g.YJ(u.N,h.id,null);u==null&&g.G3(Error("Component not found for element id: "+h.id));return u||null};
OHj=function(u){g.Tl.call(this,u);var h=this;this.N=null;this.created=!1;this.X=u.L().j("h5_use_refactored_get_ad_break")?new ZLn(this.player):new a_(this.player);this.B=function(){if(h.N!=null)return h.N;var Z=new fvs({u8:lh(h.G).u8,X9:lh(h.G).X9,D:h.player,pg:lh(h.G).pg,cX:h.G.G.cX,JV:lh(h.G).JV,LH:h.G.G.LH});h.N=Z.bR;return h.N};
this.G=new P4l(this.player,this,this.X,this.B);g.V(this,this.G);var L=u.L();!lN(L)||g.qW(L)||Gg(L)||(g.V(this,new tI(u,lh(this.G).HX,lh(this.G).pg)),g.V(this,new C4j(u)))};
f71=function(u){u.created!==u.loaded&&Jk("Created and loaded are out of sync")};
I7b=function(u){g.Tl.prototype.load.call(u);var h=lh(u.G).pg;try{u.player.getRootNode().classList.add("ad-created")}catch(O){Jk(O instanceof Error?O:String(O))}var L=u.player.getVideoData(1),Z=L&&L.videoId||"",y=L&&L.getPlayerResponse()||{},R=(!u.player.L().experiments.tB("debug_ignore_ad_placements")&&y&&y.adPlacements||[]).map(function(O){return O.adPlacementRenderer}),p=((y==null?void 0:y.adSlots)||[]).map(function(O){return g.n(O,NU)});
y=y.playerConfig&&y.playerConfig.daiConfig&&y.playerConfig.daiConfig.enableDai||!1;L&&L.bP();R=D5a(R,p,h,lh(u.G).X3);p=L&&L.clientPlaybackNonce||"";L=L&&L.QX||!1;if(MK(h,!0)&&L){var J;h={};(J=u.player.getVideoData())==null||J.IH("p_cpb",(h.cc=p,h))}J=1E3*u.player.getDuration(1);cPY(u);u.G.G.RZ.Zz(p,J,L,R.w4,R.eP,R.w4,y,Z)};
cPY=function(u){var h,L;if(L=(h=u.player.getVideoData(1))==null||!h.QX)h=u.player.L(),L=lN(h)&&!g.Qr(h)&&h.playerStyle==="desktop-polymer";L&&(u=u.player.getInternalApi(),u.addEventListener("updateKevlarOrC3Companion",fPl),u.addEventListener("updateEngagementPanelAction",Dvs),u.addEventListener("changeEngagementPanelVisibility",cd1),window.addEventListener("yt-navigate-start",Ada))};
Wq=function(u,h){h===u.vH&&(u.vH=void 0)};
APb=function(u){var h=lh(u.G).Dv,L=h.B().F0("SLOT_TYPE_PLAYER_BYTES",1);h=fJ(h.Eg.get(),1).clientPlaybackNonce;var Z=!1;L=g.C(L);for(var y=L.next();!y.done;y=L.next()){y=y.value;var R=y.slotType==="SLOT_TYPE_PLAYER_BYTES"&&y.slotEntryTrigger instanceof My?y.slotEntryTrigger.l$:void 0;R&&R===h&&(Z&&Jk("More than 1 preroll playerBytes slot detected",y),Z=!0)}Z||KW(lh(u.G).Gq)};
x5n=function(u){if(kn(lh(u.G).pg))return!0;var h="";u=g.C(lh(u.G).JV.rX.keys());for(var L=u.next();!L.done;L=u.next()){L=L.value;if(L.slotType==="SLOT_TYPE_PLAYER_BYTES"&&L.LI==="core")return!0;h+=L.slotType+" "}Math.random()<.01&&Jk("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:h});return!1};
PkR=function(u){u=g.C(lh(u.G).JV.rX.values());for(var h=u.next();!h.done;h=u.next())if(h.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1};
XEY=function(u,h,L,Z,y,R){L=L===void 0?[]:L;Z=Z===void 0?"":Z;y=y===void 0?"":y;var p=lh(u.G).pg,J=u.player.getVideoData(1);J&&J.getPlayerResponse();J&&J.bP();L=D5a(h,L,p,lh(u.G).X3);Ysl(lh(u.G).FN,Z,L.w4,L.eP,h,y,R)};
D5a=function(u,h,L,Z){h={w4:[],eP:h};u=g.C(u);for(var y=u.next();!y.done;y=u.next())if((y=y.value)&&y.renderer!=null){var R=y.renderer;if(!L.D.L().j("html5_enable_vod_lasr_with_notify_pacf")){var p=void 0,J=void 0,O=void 0,f=void 0,D=Z;g.n((f=R.sandwichedLinearAdRenderer)==null?void 0:f.adVideoStart,KO)?(p=g.n((O=R.sandwichedLinearAdRenderer)==null?void 0:O.adVideoStart,KO),p=wUl(p,D),g.mG(R.sandwichedLinearAdRenderer.adVideoStart,KO,p)):g.n((J=R.linearAdSequenceRenderer)==null?void 0:J.adStart,KO)&&
(O=g.n((p=R.linearAdSequenceRenderer)==null?void 0:p.adStart,KO),p=wUl(O,D),g.mG(R.linearAdSequenceRenderer.adStart,KO,p))}h.w4.push(y)}return h};
g.Fj=function(u){if(typeof DOMParser!="undefined")return tw(new DOMParser,zjw(u),"application/xml");throw Error("Your browser does not support loading xml documents");};
g.bh=function(u){g.m.call(this);this.callback=u;this.G=new i6(0,0,.4,0,.2,1,1,1);this.delay=new g.b8(this.next,window,this);g.V(this,this.delay)};
g.Ck1=function(u){var h=u.L();return h.jq&&!h.X&&g.MW(h)?u.isEmbedsShortsMode()?(u=u.Wb(),Math.min(u.width,u.height)>=315):!u.Bo():!1};
g.EA=function(u){g.a.call(this,{K:"div",U:"ytp-more-videos-view",J:{tabIndex:"-1"}});var h=this;this.api=u;this.N=!0;this.X=new g.UN(this);this.G=[];this.suggestionData=[];this.columns=this.containerWidth=this.S=this.B=this.scrollPosition=0;this.title=new g.a({K:"h2",U:"ytp-related-title",dw:"{{title}}"});this.previous=new g.a({K:"button",CI:["ytp-button","ytp-previous"],J:{"aria-label":"Show previous suggested videos"},Z:[g.xS()]});this.V=new g.bh(function(L){h.suggestions.element.scrollLeft=-L});
this.next=new g.a({K:"button",CI:["ytp-button","ytp-next"],J:{"aria-label":"Show more suggested videos"},Z:[g.PL()]});g.V(this,this.X);this.C=u.L().B;g.V(this,this.title);this.title.Og(this.element);this.suggestions=new g.a({K:"div",U:"ytp-suggestions"});g.V(this,this.suggestions);this.suggestions.Og(this.element);g.V(this,this.previous);this.previous.Og(this.element);this.previous.listen("click",this.Fx,this);g.V(this,this.V);MWj(this);g.V(this,this.next);this.next.Og(this.element);this.next.listen("click",
this.OO,this);this.X.W(this.api,"appresize",this.QZ);this.X.W(this.api,"fullscreentoggled",this.nx);this.X.W(this.api,"videodatachange",this.onVideoDataChange);this.QZ(this.api.m_().getPlayerSize());this.onVideoDataChange()};
MWj=function(u){for(var h={SG:0};h.SG<16;h={SG:h.SG},++h.SG){var L=new g.a({K:"a",U:"ytp-suggestion-link",J:{href:"{{link}}",target:u.api.L().Y,"aria-label":"{{aria_label}}"},Z:[{K:"div",U:"ytp-suggestion-image"},{K:"div",U:"ytp-suggestion-overlay",J:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},Z:[{K:"div",U:"ytp-suggestion-title",dw:"{{title}}"},{K:"div",U:"ytp-suggestion-author",dw:"{{author_and_views}}"},{K:"div",J:{"data-is-live":"{{is_live}}"},U:"ytp-suggestion-duration",
dw:"{{duration}}"}]}]});g.V(u,L);var Z=L.BX("ytp-suggestion-link");g.Oz(Z,"transitionDelay",h.SG/20+"s");u.X.W(Z,"click",function(y){return function(R){var p=y.SG;if(u.N){var J=u.suggestionData[p],O=J.sessionData;u.C&&u.api.j("web_player_log_click_before_generating_ve_conversion_params")?(u.api.logClick(u.G[p].element),p=J.Wm(),J={},g.QA(u.api,J),p=g.sr(p,J),g.bM(p,u.api,R)):g.FC(R,u.api,u.C,O||void 0)&&u.api.VX(J.videoId,O,J.playlistId)}else R.preventDefault(),document.activeElement.blur()}}(h));
L.Og(u.suggestions.element);u.G.push(L);u.api.createServerVe(L.element,L)}};
iHs=function(u){if(u.api.L().j("web_player_log_click_before_generating_ve_conversion_params"))for(var h=Math.floor(-u.scrollPosition/(u.B+8)),L=Math.min(h+u.columns,u.suggestionData.length)-1;h<=L;h++)u.api.logVisibility(u.G[h].element,!0)};
g.ku=function(u){var h=u.api.GN()?32:16;h=u.S/2+h;u.next.element.style.bottom=h+"px";u.previous.element.style.bottom=h+"px";h=u.scrollPosition;var L=u.containerWidth-u.suggestionData.length*(u.B+8);g.JW(u.element,"ytp-scroll-min",h>=0);g.JW(u.element,"ytp-scroll-max",h<=L)};
l7n=function(u){for(var h=u.suggestionData.length,L=0;L<h;++L){var Z=void 0,y=void 0,R=void 0;Z=u;var p=Z.api.L(),J=Z.suggestionData[L],O=Z.G[L];R=Z.api.isEmbedsShortsMode()?J.shortViewCount||"":J.shortViewCount?J.author+" \u2022 "+J.shortViewCount:J.author;O.element.style.display="";g.Oz(O.BX("ytp-suggestion-link"),"display","inline-block");Qa1.test(J.title)&&(O.BX("ytp-suggestion-title").dir="rtl");Qa1.test(R)&&(O.BX("ytp-suggestion-author").dir="rtl");y=J.isLivePlayback?"Live":J.lengthSeconds?
g.QF(J.lengthSeconds):"";var f=J.Wm(Z.api.isEmbedsShortsMode());if(g.MW(p)&&!p.j("web_player_log_click_before_generating_ve_conversion_params")){var D={};g.jq(Z.api,"addEmbedsConversionTrackingParams",[D]);f=g.sr(f,D)}p.j("web_player_log_click_before_generating_ve_conversion_params")&&(p=(p=J.sessionData)&&p.itct)&&Z.api.setTrackingParams(O.element,p);O.update({author_and_views:R,duration:y,link:f,title:J.title,aria_label:J.ariaLabel||J.title,is_live:J.isLivePlayback,aria_hidden:!!J.ariaLabel,blink_rendering_hack:g.TI||
g.P$?"will-change: opacity":void 0});y=O.BX("ytp-suggestion-image");Z=Z.api.isEmbedsShortsMode()?J.Po("hq2.jpg"):J.Po();y.style.backgroundImage=Z?"url("+Z+")":""}if(h<16)for(;h<16;++h)g.Oz(u.G[h].BX("ytp-suggestion-link"),"display","none");g.ku(u)};
ufl=[];fV=typeof Object.defineProperties=="function"?Object.defineProperty:function(u,h,L){if(u==Array.prototype||u==Object.prototype)return u;u[h]=L.value;return u};
g.Js=hls(this);ci("Symbol",function(u){function h(R){if(this instanceof h)throw new TypeError("Symbol is not a constructor");return new L(Z+(R||"")+"_"+y++,R)}
function L(R,p){this.G=R;fV(this,"description",{configurable:!0,writable:!0,value:p})}
if(u)return u;L.prototype.toString=function(){return this.G};
var Z="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",y=0;return h});
ci("Symbol.iterator",function(u){if(u)return u;u=Symbol("Symbol.iterator");for(var h="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),L=0;L<h.length;L++){var Z=g.Js[h[L]];typeof Z==="function"&&typeof Z.prototype[u]!="function"&&fV(Z.prototype,u,{configurable:!0,writable:!0,value:function(){return Lea(jRi(this))}})}return u});
var ZVs=typeof Object.create=="function"?Object.create:function(u){function h(){}
h.prototype=u;return new h},SUR=function(){function u(){function L(){}
new L;Reflect.construct(L,[],function(){});
return new L instanceof L}
if(typeof Reflect!="undefined"&&Reflect.construct){if(u())return Reflect.construct;var h=Reflect.construct;return function(L,Z,y){L=h(L,Z);y&&Reflect.setPrototypeOf(L,y.prototype);return L}}return function(L,Z,y){y===void 0&&(y=L);
y=ZVs(y.prototype||Object.prototype);return Function.prototype.apply.call(L,y,Z)||y}}(),Xgf;
if(typeof Object.setPrototypeOf=="function")Xgf=Object.setPrototypeOf;else{var v5L;a:{var qU1={a:!0},Tdn={};try{Tdn.__proto__=qU1;v5L=Tdn.a;break a}catch(u){}v5L=!1}Xgf=v5L?function(u,h){u.__proto__=h;if(u.__proto__!==h)throw new TypeError(u+" is not extensible");return u}:null}var IR=Xgf,YUn=typeof Object.assign=="function"?Object.assign:function(u,h){for(var L=1;L<arguments.length;L++){var Z=arguments[L];
if(Z)for(var y in Z)As(Z,y)&&(u[y]=Z[y])}return u};
ci("Object.assign",function(u){return u||YUn});
xb.prototype.S=function(u){this.N=u};
xb.prototype.return=function(u){this.X={return:u};this.G=this.T};
xb.prototype.KI=function(u){this.G=u};
ci("globalThis",function(u){return u||g.Js});
ci("Reflect",function(u){return u?u:{}});
ci("Reflect.construct",function(){return SUR});
ci("Reflect.setPrototypeOf",function(u){return u?u:IR?function(h,L){try{return IR(h,L),!0}catch(Z){return!1}}:null});
ci("Promise",function(u){function h(p){this.G=0;this.X=void 0;this.N=[];this.V=!1;var J=this.B();try{p(J.resolve,J.reject)}catch(O){J.reject(O)}}
function L(){this.G=null}
function Z(p){return p instanceof h?p:new h(function(J){J(p)})}
if(u)return u;L.prototype.N=function(p){if(this.G==null){this.G=[];var J=this;this.X(function(){J.T()})}this.G.push(p)};
var y=g.Js.setTimeout;L.prototype.X=function(p){y(p,0)};
L.prototype.T=function(){for(;this.G&&this.G.length;){var p=this.G;this.G=[];for(var J=0;J<p.length;++J){var O=p[J];p[J]=null;try{O()}catch(f){this.B(f)}}}this.G=null};
L.prototype.B=function(p){this.X(function(){throw p;})};
h.prototype.B=function(){function p(f){return function(D){O||(O=!0,f.call(J,D))}}
var J=this,O=!1;return{resolve:p(this.XB),reject:p(this.T)}};
h.prototype.XB=function(p){if(p===this)this.T(new TypeError("A Promise cannot resolve to itself"));else if(p instanceof h)this.DI(p);else{a:switch(typeof p){case "object":var J=p!=null;break a;case "function":J=!0;break a;default:J=!1}J?this.RH(p):this.C(p)}};
h.prototype.RH=function(p){var J=void 0;try{J=p.then}catch(O){this.T(O);return}typeof J=="function"?this.T7(J,p):this.C(p)};
h.prototype.T=function(p){this.S(2,p)};
h.prototype.C=function(p){this.S(1,p)};
h.prototype.S=function(p,J){if(this.G!=0)throw Error("Cannot settle("+p+", "+J+"): Promise already settled in state"+this.G);this.G=p;this.X=J;this.G===2&&this.gw();this.Y()};
h.prototype.gw=function(){var p=this;y(function(){if(p.AB()){var J=g.Js.console;typeof J!=="undefined"&&J.error(p.X)}},1)};
h.prototype.AB=function(){if(this.V)return!1;var p=g.Js.CustomEvent,J=g.Js.Event,O=g.Js.dispatchEvent;if(typeof O==="undefined")return!0;typeof p==="function"?p=new p("unhandledrejection",{cancelable:!0}):typeof J==="function"?p=new J("unhandledrejection",{cancelable:!0}):(p=g.Js.document.createEvent("CustomEvent"),p.initCustomEvent("unhandledrejection",!1,!0,p));p.promise=this;p.reason=this.X;return O(p)};
h.prototype.Y=function(){if(this.N!=null){for(var p=0;p<this.N.length;++p)R.N(this.N[p]);this.N=null}};
var R=new L;h.prototype.DI=function(p){var J=this.B();p.MH(J.resolve,J.reject)};
h.prototype.T7=function(p,J){var O=this.B();try{p.call(J,O.resolve,O.reject)}catch(f){O.reject(f)}};
h.prototype.then=function(p,J){function O(I,A){return typeof I=="function"?function(x){try{f(I(x))}catch(Q){D(Q)}}:A}
var f,D,c=new h(function(I,A){f=I;D=A});
this.MH(O(p,f),O(J,D));return c};
h.prototype.catch=function(p){return this.then(void 0,p)};
h.prototype.MH=function(p,J){function O(){switch(f.G){case 1:p(f.X);break;case 2:J(f.X);break;default:throw Error("Unexpected state: "+f.G);}}
var f=this;this.N==null?R.N(O):this.N.push(O);this.V=!0};
h.resolve=Z;h.reject=function(p){return new h(function(J,O){O(p)})};
h.race=function(p){return new h(function(J,O){for(var f=g.C(p),D=f.next();!D.done;D=f.next())Z(D.value).MH(J,O)})};
h.all=function(p){var J=g.C(p),O=J.next();return O.done?Z([]):new h(function(f,D){function c(x){return function(Q){I[x]=Q;A--;A==0&&f(I)}}
var I=[],A=0;do I.push(void 0),A++,Z(O.value).MH(c(I.length-1),D),O=J.next();while(!O.done)})};
return h});
ci("Object.setPrototypeOf",function(u){return u||IR});
ci("Symbol.dispose",function(u){return u?u:Symbol("Symbol.dispose")});
ci("SuppressedError",function(u){function h(L,Z,y){if(!(this instanceof h))return new h(L,Z,y);y=Error(y);"stack"in y&&(this.stack=y.stack);this.message=y.message;this.error=L;this.suppressed=Z}
if(u)return u;g.P(h,Error);h.prototype.name="SuppressedError";return h});
ci("Array.prototype.find",function(u){return u?u:function(h,L){return Asa(this,h,L).Y7}});
ci("WeakMap",function(u){function h(O){this.G=(J+=Math.random()+1).toString();if(O){O=g.C(O);for(var f;!(f=O.next()).done;)f=f.value,this.set(f[0],f[1])}}
function L(){}
function Z(O){var f=typeof O;return f==="object"&&O!==null||f==="function"}
function y(O){if(!As(O,p)){var f=new L;fV(O,p,{value:f})}}
function R(O){var f=Object[O];f&&(Object[O]=function(D){if(D instanceof L)return D;Object.isExtensible(D)&&y(D);return f(D)})}
if(function(){if(!u||!Object.seal)return!1;try{var O=Object.seal({}),f=Object.seal({}),D=new u([[O,2],[f,3]]);if(D.get(O)!=2||D.get(f)!=3)return!1;D.delete(O);D.set(f,4);return!D.has(O)&&D.get(f)==4}catch(c){return!1}}())return u;
var p="$jscomp_hidden_"+Math.random();R("freeze");R("preventExtensions");R("seal");var J=0;h.prototype.set=function(O,f){if(!Z(O))throw Error("Invalid WeakMap key");y(O);if(!As(O,p))throw Error("WeakMap key fail: "+O);O[p][this.G]=f;return this};
h.prototype.get=function(O){return Z(O)&&As(O,p)?O[p][this.G]:void 0};
h.prototype.has=function(O){return Z(O)&&As(O,p)&&As(O[p],this.G)};
h.prototype.delete=function(O){return Z(O)&&As(O,p)&&As(O[p],this.G)?delete O[p][this.G]:!1};
return h});
ci("Map",function(u){function h(){var J={};return J.previous=J.next=J.head=J}
function L(J,O){var f=J[1];return Lea(function(){if(f){for(;f.head!=J[1];)f=f.previous;for(;f.next!=f.head;)return f=f.next,{done:!1,value:O(f)};f=null}return{done:!0,value:void 0}})}
function Z(J,O){var f=O&&typeof O;f=="object"||f=="function"?R.has(O)?f=R.get(O):(f=""+ ++p,R.set(O,f)):f="p_"+O;var D=J[0][f];if(D&&As(J[0],f))for(J=0;J<D.length;J++){var c=D[J];if(O!==O&&c.key!==c.key||O===c.key)return{id:f,list:D,index:J,entry:c}}return{id:f,list:D,index:-1,entry:void 0}}
function y(J){this[0]={};this[1]=h();this.size=0;if(J){J=g.C(J);for(var O;!(O=J.next()).done;)O=O.value,this.set(O[0],O[1])}}
if(function(){if(!u||typeof u!="function"||!u.prototype.entries||typeof Object.seal!="function")return!1;try{var J=Object.seal({x:4}),O=new u(g.C([[J,"s"]]));if(O.get(J)!="s"||O.size!=1||O.get({x:4})||O.set({x:4},"t")!=O||O.size!=2)return!1;var f=O.entries(),D=f.next();if(D.done||D.value[0]!=J||D.value[1]!="s")return!1;D=f.next();return D.done||D.value[0].x!=4||D.value[1]!="t"||!f.next().done?!1:!0}catch(c){return!1}}())return u;
var R=new WeakMap;y.prototype.set=function(J,O){J=J===0?0:J;var f=Z(this,J);f.list||(f.list=this[0][f.id]=[]);f.entry?f.entry.value=O:(f.entry={next:this[1],previous:this[1].previous,head:this[1],key:J,value:O},f.list.push(f.entry),this[1].previous.next=f.entry,this[1].previous=f.entry,this.size++);return this};
y.prototype.delete=function(J){J=Z(this,J);return J.entry&&J.list?(J.list.splice(J.index,1),J.list.length||delete this[0][J.id],J.entry.previous.next=J.entry.next,J.entry.next.previous=J.entry.previous,J.entry.head=null,this.size--,!0):!1};
y.prototype.clear=function(){this[0]={};this[1]=this[1].previous=h();this.size=0};
y.prototype.has=function(J){return!!Z(this,J).entry};
y.prototype.get=function(J){return(J=Z(this,J).entry)&&J.value};
y.prototype.entries=function(){return L(this,function(J){return[J.key,J.value]})};
y.prototype.keys=function(){return L(this,function(J){return J.key})};
y.prototype.values=function(){return L(this,function(J){return J.value})};
y.prototype.forEach=function(J,O){for(var f=this.entries(),D;!(D=f.next()).done;)D=D.value,J.call(O,D[1],D[0],this)};
y.prototype[Symbol.iterator]=y.prototype.entries;var p=0;return y});
ci("Set",function(u){function h(L){this.G=new Map;if(L){L=g.C(L);for(var Z;!(Z=L.next()).done;)this.add(Z.value)}this.size=this.G.size}
if(function(){if(!u||typeof u!="function"||!u.prototype.entries||typeof Object.seal!="function")return!1;try{var L=Object.seal({x:4}),Z=new u(g.C([L]));if(!Z.has(L)||Z.size!=1||Z.add(L)!=Z||Z.size!=1||Z.add({x:4})!=Z||Z.size!=2)return!1;var y=Z.entries(),R=y.next();if(R.done||R.value[0]!=L||R.value[1]!=L)return!1;R=y.next();return R.done||R.value[0]==L||R.value[0].x!=4||R.value[1]!=R.value[0]?!1:y.next().done}catch(p){return!1}}())return u;
h.prototype.add=function(L){L=L===0?0:L;this.G.set(L,L);this.size=this.G.size;return this};
h.prototype.delete=function(L){L=this.G.delete(L);this.size=this.G.size;return L};
h.prototype.clear=function(){this.G.clear();this.size=0};
h.prototype.has=function(L){return this.G.has(L)};
h.prototype.entries=function(){return this.G.entries()};
h.prototype.values=function(){return this.G.values()};
h.prototype.keys=h.prototype.values;h.prototype[Symbol.iterator]=h.prototype.values;h.prototype.forEach=function(L,Z){var y=this;this.G.forEach(function(R){return L.call(Z,R,R,y)})};
return h});
ci("Math.log2",function(u){return u?u:function(h){return Math.log(h)/Math.LN2}});
ci("Object.values",function(u){return u?u:function(h){var L=[],Z;for(Z in h)As(h,Z)&&L.push(h[Z]);return L}});
ci("Object.is",function(u){return u?u:function(h,L){return h===L?h!==0||1/h===1/L:h!==h&&L!==L}});
ci("Array.prototype.includes",function(u){return u?u:function(h,L){var Z=this;Z instanceof String&&(Z=String(Z));var y=Z.length;L=L||0;for(L<0&&(L=Math.max(L+y,0));L<y;L++){var R=Z[L];if(R===h||Object.is(R,h))return!0}return!1}});
ci("String.prototype.includes",function(u){return u?u:function(h,L){return Uj(this,h,"includes").indexOf(h,L||0)!==-1}});
ci("Array.from",function(u){return u?u:function(h,L,Z){L=L!=null?L:function(J){return J};
var y=[],R=typeof Symbol!="undefined"&&Symbol.iterator&&h[Symbol.iterator];if(typeof R=="function"){h=R.call(h);for(var p=0;!(R=h.next()).done;)y.push(L.call(Z,R.value,p++))}else for(R=h.length,p=0;p<R;p++)y.push(L.call(Z,h[p],p));return y}});
ci("Object.entries",function(u){return u?u:function(h){var L=[],Z;for(Z in h)As(h,Z)&&L.push([Z,h[Z]]);return L}});
ci("Number.isFinite",function(u){return u?u:function(h){return typeof h!=="number"?!1:!isNaN(h)&&h!==Infinity&&h!==-Infinity}});
ci("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ci("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
ci("Number.isInteger",function(u){return u?u:function(h){return Number.isFinite(h)?h===Math.floor(h):!1}});
ci("Number.isSafeInteger",function(u){return u?u:function(h){return Number.isInteger(h)&&Math.abs(h)<=Number.MAX_SAFE_INTEGER}});
ci("String.prototype.startsWith",function(u){return u?u:function(h,L){var Z=Uj(this,h,"startsWith");h+="";var y=Z.length,R=h.length;L=Math.max(0,Math.min(L|0,Z.length));for(var p=0;p<R&&L<y;)if(Z[L++]!=h[p++])return!1;return p>=R}});
ci("String.prototype.endsWith",function(u){return u?u:function(h,L){var Z=Uj(this,h,"endsWith");h+="";L===void 0&&(L=Z.length);L=Math.max(0,Math.min(L|0,Z.length));for(var y=h.length;y>0&&L>0;)if(Z[--L]!=h[--y])return!1;return y<=0}});
ci("Array.prototype.entries",function(u){return u?u:function(){return Hi(this,function(h,L){return[h,L]})}});
ci("Math.imul",function(u){return u?u:function(h,L){h=Number(h);L=Number(L);var Z=h&65535,y=L&65535;return Z*y+((h>>>16&65535)*y+Z*(L>>>16&65535)<<16>>>0)|0}});
ci("Math.trunc",function(u){return u?u:function(h){h=Number(h);if(isNaN(h)||h===Infinity||h===-Infinity||h===0)return h;var L=Math.floor(Math.abs(h));return h<0?-L:L}});
ci("Math.clz32",function(u){return u?u:function(h){h=Number(h)>>>0;if(h===0)return 32;var L=0;(h&4294901760)===0&&(h<<=16,L+=16);(h&4278190080)===0&&(h<<=8,L+=8);(h&4026531840)===0&&(h<<=4,L+=4);(h&3221225472)===0&&(h<<=2,L+=2);(h&2147483648)===0&&L++;return L}});
ci("Math.log10",function(u){return u?u:function(h){return Math.log(h)/Math.LN10}});
ci("Number.isNaN",function(u){return u?u:function(h){return typeof h==="number"&&isNaN(h)}});
ci("Array.prototype.keys",function(u){return u?u:function(){return Hi(this,function(h){return h})}});
ci("Array.prototype.values",function(u){return u?u:function(){return Hi(this,function(h,L){return L})}});
ci("Array.prototype.fill",function(u){return u?u:function(h,L,Z){var y=this.length||0;L<0&&(L=Math.max(0,y+L));if(Z==null||Z>y)Z=y;Z=Number(Z);Z<0&&(Z=Math.max(0,y+Z));for(L=Number(L||0);L<Z;L++)this[L]=h;return this}});
ci("Int8Array.prototype.fill",rn);ci("Uint8Array.prototype.fill",rn);ci("Uint8ClampedArray.prototype.fill",rn);ci("Int16Array.prototype.fill",rn);ci("Uint16Array.prototype.fill",rn);ci("Int32Array.prototype.fill",rn);ci("Uint32Array.prototype.fill",rn);ci("Float32Array.prototype.fill",rn);ci("Float64Array.prototype.fill",rn);
ci("Object.fromEntries",function(u){return u?u:function(h){var L={};if(!(Symbol.iterator in h))throw new TypeError(""+h+" is not iterable");h=h[Symbol.iterator].call(h);for(var Z=h.next();!Z.done;Z=h.next()){Z=Z.value;if(Object(Z)!==Z)throw new TypeError("iterable for fromEntries should yield objects");L[Z[0]]=Z[1]}return L}});
ci("String.prototype.replaceAll",function(u){return u?u:function(h,L){if(h instanceof RegExp&&!h.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return h instanceof RegExp?this.replace(h,L):this.replace(new RegExp(String(h).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),L)}});
ci("String.prototype.repeat",function(u){return u?u:function(h){var L=Uj(this,null,"repeat");if(h<0||h>1342177279)throw new RangeError("Invalid count value");h|=0;for(var Z="";h;)if(h&1&&(Z+=L),h>>>=1)L+=L;return Z}});
ci("Promise.prototype.finally",function(u){return u?u:function(h){return this.then(function(L){return Promise.resolve(h()).then(function(){return L})},function(L){return Promise.resolve(h()).then(function(){throw L;
})})}});
ci("String.prototype.padStart",function(u){return u?u:function(h,L){var Z=Uj(this,null,"padStart");h-=Z.length;L=L!==void 0?String(L):" ";return(h>0&&L?L.repeat(Math.ceil(h/L.length)).substring(0,h):"")+Z}});
ci("Array.prototype.findIndex",function(u){return u?u:function(h,L){return Asa(this,h,L).iK}});
ci("Math.sign",function(u){return u?u:function(h){h=Number(h);return h===0||isNaN(h)?h:h>0?1:-1}});
ci("WeakSet",function(u){function h(L){this.G=new WeakMap;if(L){L=g.C(L);for(var Z;!(Z=L.next()).done;)this.add(Z.value)}}
if(function(){if(!u||!Object.seal)return!1;try{var L=Object.seal({}),Z=Object.seal({}),y=new u([L]);if(!y.has(L)||y.has(Z))return!1;y.delete(L);y.add(Z);return!y.has(L)&&y.has(Z)}catch(R){return!1}}())return u;
h.prototype.add=function(L){this.G.set(L,!0);return this};
h.prototype.has=function(L){return this.G.has(L)};
h.prototype.delete=function(L){return this.G.delete(L)};
return h});
ci("Array.prototype.copyWithin",function(u){function h(L){L=Number(L);return L===Infinity||L===-Infinity?L:L|0}
return u?u:function(L,Z,y){var R=this.length;L=h(L);Z=h(Z);y=y===void 0?R:h(y);L=L<0?Math.max(R+L,0):Math.min(L,R);Z=Z<0?Math.max(R+Z,0):Math.min(Z,R);y=y<0?Math.max(R+y,0):Math.min(y,R);if(L<Z)for(;Z<y;)Z in this?this[L++]=this[Z++]:(delete this[L++],Z++);else for(y=Math.min(y,R+Z-L),L+=y-Z;y>Z;)--y in this?this[--L]=this[y]:delete this[--L];return this}});
ci("Int8Array.prototype.copyWithin",Bi);ci("Uint8Array.prototype.copyWithin",Bi);ci("Uint8ClampedArray.prototype.copyWithin",Bi);ci("Int16Array.prototype.copyWithin",Bi);ci("Uint16Array.prototype.copyWithin",Bi);ci("Int32Array.prototype.copyWithin",Bi);ci("Uint32Array.prototype.copyWithin",Bi);ci("Float32Array.prototype.copyWithin",Bi);ci("Float64Array.prototype.copyWithin",Bi);ci("Array.prototype.at",function(u){return u?u:zY});
ci("Int8Array.prototype.at",me);ci("Uint8Array.prototype.at",me);ci("Uint8ClampedArray.prototype.at",me);ci("Int16Array.prototype.at",me);ci("Uint16Array.prototype.at",me);ci("Int32Array.prototype.at",me);ci("Uint32Array.prototype.at",me);ci("Float32Array.prototype.at",me);ci("Float64Array.prototype.at",me);ci("String.prototype.at",function(u){return u?u:zY});
ci("Array.prototype.findLastIndex",function(u){return u?u:function(h,L){return xLV(this,h,L).iK}});
ci("Int8Array.prototype.findLastIndex",dn);ci("Uint8Array.prototype.findLastIndex",dn);ci("Uint8ClampedArray.prototype.findLastIndex",dn);ci("Int16Array.prototype.findLastIndex",dn);ci("Uint16Array.prototype.findLastIndex",dn);ci("Int32Array.prototype.findLastIndex",dn);ci("Uint32Array.prototype.findLastIndex",dn);ci("Float32Array.prototype.findLastIndex",dn);ci("Float64Array.prototype.findLastIndex",dn);ci("Number.parseInt",function(u){return u||parseInt});var WY,Ff,P11;WY=WY||{};g.Vn=this||self;Ff="closure_uid_"+(Math.random()*1E9>>>0);P11=0;g.P(yK,Error);g.m.prototype.Dr=!1;g.m.prototype.ww=function(){return this.Dr};
g.m.prototype.dispose=function(){this.Dr||(this.Dr=!0,this.Ni())};
g.m.prototype[Symbol.dispose]=function(){this.dispose()};
g.m.prototype.addOnDisposeCallback=function(u,h){this.Dr?h!==void 0?u.call(h):u():(this.f3||(this.f3=[]),h&&(u=u.bind(h)),this.f3.push(u))};
g.m.prototype.Ni=function(){if(this.f3)for(;this.f3.length;)this.f3.shift()()};var Sja;g.P(DR,g.m);DR.prototype.share=function(){if(this.ww())throw Error("E:AD");this.B++;return this};
DR.prototype.dispose=function(){--this.B||g.m.prototype.dispose.call(this)};
Sja=Symbol.dispose;Xis.prototype.eb=function(u,h){this.G.eb("/client_streamz/bg/frs",u,h)};
vbs.prototype.eb=function(u,h,L,Z,y,R){this.G.eb("/client_streamz/bg/wrl",u,h,L,Z,y,R)};
qjf.prototype.G=function(u,h){this.N.Xt("/client_streamz/bg/ec",u,h)};
TnL.prototype.eb=function(u,h,L,Z){this.G.eb("/client_streamz/bg/el",u,h,L,Z)};
Yji.prototype.G=function(u,h,L){this.N.Xt("/client_streamz/bg/cec",u,h,L)};
ob1.prototype.G=function(u,h,L){this.N.Xt("/client_streamz/bg/po/csc",u,h,L)};
Nns.prototype.G=function(u,h,L){this.N.Xt("/client_streamz/bg/po/ctav",u,h,L)};
ULb.prototype.G=function(u,h,L){this.N.Xt("/client_streamz/bg/po/cwsc",u,h,L)};g.jb(Cq,Error);Cq.prototype.name="CustomError";var L4i;var rj=void 0,Hp,HwY=typeof TextDecoder!=="undefined",zln,Bnb=typeof String.prototype.isWellFormed==="function",rsj=typeof TextEncoder!=="undefined";var Ty=String.prototype.trim?function(u){return u.trim()}:function(u){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(u)[1]},N$j=/&/g,UMj=/</g,Gil=/>/g,Ha1=/"/g,ron=/'/g,B$1=/\x00/g,otV=/[\x00&<>"']/;var o5j=ea(1,!0),U8=ea(610401301,!1);ea(899588437,!1);var Nde=ea(725719775,!1);ea(651175828,!1);ea(722764542,!1);ea(2147483644,!1);ea(2147483645,!1);ea(2147483646,o5j);ea(2147483647,!0);var Gy=!!g.wn("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var H1,U5i=g.Vn.navigator;H1=U5i?U5i.userAgentData||null:null;var Ebb,qR,oS;Ebb=Array.prototype.indexOf?function(u,h){return Array.prototype.indexOf.call(u,h,void 0)}:function(u,h){if(typeof u==="string")return typeof h!=="string"||h.length!=1?-1:u.indexOf(h,0);
for(var L=0;L<u.length;L++)if(L in u&&u[L]===h)return L;return-1};
g.GBY=Array.prototype.lastIndexOf?function(u,h){return Array.prototype.lastIndexOf.call(u,h,u.length-1)}:function(u,h){var L=u.length-1;
L<0&&(L=Math.max(0,u.length+L));if(typeof u==="string")return typeof h!=="string"||h.length!=1?-1:u.lastIndexOf(h,L);for(;L>=0;L--)if(L in u&&u[L]===h)return L;return-1};
g.A8=Array.prototype.forEach?function(u,h,L){Array.prototype.forEach.call(u,h,L)}:function(u,h,L){for(var Z=u.length,y=typeof u==="string"?u.split(""):u,R=0;R<Z;R++)R in y&&h.call(L,y[R],R,u)};
g.KN=Array.prototype.filter?function(u,h,L){return Array.prototype.filter.call(u,h,L)}:function(u,h,L){for(var Z=u.length,y=[],R=0,p=typeof u==="string"?u.split(""):u,J=0;J<Z;J++)if(J in p){var O=p[J];
h.call(L,O,J,u)&&(y[R++]=O)}return y};
g.Xx=Array.prototype.map?function(u,h,L){return Array.prototype.map.call(u,h,L)}:function(u,h,L){for(var Z=u.length,y=Array(Z),R=typeof u==="string"?u.split(""):u,p=0;p<Z;p++)p in R&&(y[p]=h.call(L,R[p],p,u));
return y};
qR=Array.prototype.reduce?function(u,h,L){return Array.prototype.reduce.call(u,h,L)}:function(u,h,L){var Z=L;
(0,g.A8)(u,function(y,R){Z=h.call(void 0,Z,y,R,u)});
return Z};
oS=Array.prototype.some?function(u,h){return Array.prototype.some.call(u,h,void 0)}:function(u,h){for(var L=u.length,Z=typeof u==="string"?u.split(""):u,y=0;y<L;y++)if(y in Z&&h.call(void 0,Z[y],y,u))return!0;
return!1};
g.vG=Array.prototype.every?function(u,h,L){return Array.prototype.every.call(u,h,L)}:function(u,h,L){for(var Z=u.length,y=typeof u==="string"?u.split(""):u,R=0;R<Z;R++)if(R in y&&!h.call(L,y[R],R,u))return!1;
return!0};Ph[" "]=function(){};var ff,a$,NPb,HHY,rPf,BdV,Az,aV,zLi;g.P$=mr();g.cx=sRa();g.$w=B1("Edge");g.eJ=g.$w||g.cx;ff=B1("Gecko")&&!(q7(g.N7(),"WebKit")&&!B1("Edge"))&&!(B1("Trident")||B1("MSIE"))&&!B1("Edge");g.WM=q7(g.N7(),"WebKit")&&!B1("Edge");a$=$D();NPb=Fe1();g.EJ=Wew();HHY=eb();rPf=B1("iPad");BdV=B1("iPod");Az=ac();aV=q7(g.N7(),"KaiOS");
a:{var m5n="",d5j=function(){var u=g.N7();if(ff)return/rv:([^\);]+)(\)|;)/.exec(u);if(g.$w)return/Edge\/([\d\.]+)/.exec(u);if(g.cx)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(u);if(g.WM)return/WebKit\/(\S+)/.exec(u);if(g.P$)return/(?:Version)[ \/]?(\S+)/.exec(u)}();
d5j&&(m5n=d5j?d5j[1]:"");if(g.cx){var gU,VW1=g.Vn.document;gU=VW1?VW1.documentMode:void 0;if(gU!=null&&gU>parseFloat(m5n)){zLi=String(gU);break a}}zLi=m5n}var Ju1=zLi,p1L={};var WS,FI;g.Nc=dV();WS=eb()||B1("iPod");FI=B1("iPad");g.CC=eln();g.TI=VK();g.PC=s8()&&!ac();var fRb={},lV=null,D7L=ff||g.WM||typeof g.Vn.btoa=="function";var QcY=typeof Uint8Array!=="undefined",Aue=!g.cx&&typeof btoa==="function",Mba=/[-_.]/g,P3w={"-":"+",_:"/",".":"="},vh={};XZ.prototype.isEmpty=function(){return this.G==null};
XZ.prototype.sizeBytes=function(){var u=TD(this);return u?u.length:0};
var S8L;var vDw=void 0;var UV=typeof Symbol==="function"&&typeof Symbol()==="symbol",TVf=new Set,n5n=Nk("jas",void 0,!0,!0),McR=Nk(void 0,"2ex"),L9=Nk(void 0,"1oa",!0),ec=Nk(void 0,Symbol(),!0),PVj=Nk(void 0,"0actk");Math.max.apply(Math,g.l(Object.values({P9d:1,cVw:2,yVI:4,Fmy:8,OYA:16,B77:32,PXg:64,fe7:128,Led:256,sFd:512,bgi:1024,wed:2048,WjX:4096,ySB:8192,iVI:16384})));var GD=UV?n5n:"oIa",oDY={oIa:{value:0,configurable:!0,writable:!0,enumerable:!1}},Y8b=Object.defineProperties;var vv={},to,sas=[];rY(sas,55);to=Object.freeze(sas);var SVw=Object.freeze({});var Hqf=$e(function(u){return typeof u==="number"}),GyV=$e(function(u){return typeof u==="string"}),ruL=$e(function(u){return typeof u==="boolean"}),jU=$e(function(u){return u!=null&&typeof u==="object"&&typeof u.then==="function"}),up=$e(function(u){return!!u&&(typeof u==="object"||typeof u==="function")});var Wh=typeof g.Vn.BigInt==="function"&&typeof g.Vn.BigInt(0)==="bigint";var Qx=$e(function(u){return Wh?u>=wgl&&u<=eLf:u[0]==="-"?BVa(u,a7V):BVa(u,$5n)}),a7V=Number.MIN_SAFE_INTEGER.toString(),wgl=Wh?BigInt(Number.MIN_SAFE_INTEGER):void 0,$5n=Number.MAX_SAFE_INTEGER.toString(),eLf=Wh?BigInt(Number.MAX_SAFE_INTEGER):void 0;var oeV=typeof Uint8Array.prototype.slice==="function",bV=0,EV=0,LHn;var Ao=typeof BigInt==="function"?BigInt.asIntN:void 0,bqa=typeof BigInt==="function"?BigInt.asUintN:void 0,Ca=Number.isSafeInteger,Ka=Number.isFinite,Pv=Math.trunc,nDn=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Yt;var NM,IMb;g.K=TYs.prototype;g.K.init=function(u,h,L,Z){Z=Z===void 0?{}:Z;this.qd=Z.qd===void 0?!1:Z.qd;u&&(u=iH(u),this.N=u.buffer,this.T=u.Dp,this.B=h||0,this.X=L!==void 0?this.B+L:this.N.length,this.G=this.B)};
g.K.free=function(){this.clear();ol.length<100&&ol.push(this)};
g.K.clear=function(){this.N=null;this.T=!1;this.G=this.X=this.B=0;this.qd=!1};
g.K.reset=function(){this.G=this.B};
g.K.Bh=function(){var u=this.C;u||(u=this.N,u=this.C=new DataView(u.buffer,u.byteOffset,u.byteLength));return u};
var ol=[];NG.prototype.free=function(){this.G.clear();this.N=this.B=-1;uR.length<100&&uR.push(this)};
NG.prototype.reset=function(){this.G.reset();this.X=this.G.G;this.N=this.B=-1};
var uR=[];g.K=zG.prototype;g.K.toJSON=function(){return oF(this)};
g.K.n0=function(u){return JSON.stringify(oF(this,u))};
g.K.clone=function(){var u=this.Mp;return new this.constructor(r$(u,u[GD]|0,!1))};
g.K.Dp=function(){return!!((this.Mp[GD]|0)&2)};
g.K.TF=vv;g.K.toString=function(){return this.Mp.toString()};var zJY,dkV;Vb.prototype.length=function(){return this.G.length};
Vb.prototype.end=function(){var u=this.G;this.G=[];return u};var Wp=tM(),tWj=tM(),Wui=tM(),Ful=tM(),bHs=tM(),E5a=tM(),kBf=tM(),g5f=tM();var WzY=bH(function(u,h,L,Z,y){if(u.N!==2)return!1;GG(u,Zm(h,Z,L),y);return!0},tcs),Fzn=bH(function(u,h,L,Z,y){if(u.N!==2)return!1;
GG(u,Zm(h,Z,L,!0),y);return!0},tcs),yC=Symbol(),jf=Symbol(),Ees=Symbol(),uKs=Symbol(),E0,k8;var ufY=KB(function(u,h,L){if(u.N!==1)return!1;OS(h,L,TG(u.G));return!0},fB,kBf),jR1=KB(function(u,h,L){if(u.N!==1)return!1;
u=TG(u.G);OS(h,L,u===0?void 0:u);return!0},fB,kBf),hlu=KB(function(u,h,L,Z){if(u.N!==1)return!1;
jV(h,L,Z,TG(u.G));return!0},fB,kBf),Leb=KB(function(u,h,L){if(u.N!==0)return!1;
OS(h,L,SV(u.G));return!0},Dk,bHs),ZVu=KB(function(u,h,L){if(u.N!==0)return!1;
u=SV(u.G);OS(h,L,u===0?void 0:u);return!0},Dk,bHs),ys3=KB(function(u,h,L,Z){if(u.N!==0)return!1;
jV(h,L,Z,SV(u.G));return!0},Dk,bHs),Rlu=KB(function(u,h,L){if(u.N!==0)return!1;
OS(h,L,Xs(u.G));return!0},co,Ful),pi1=KB(function(u,h,L){if(u.N!==0)return!1;
u=Xs(u.G);OS(h,L,u===0?void 0:u);return!0},co,Ful),Kec=KB(function(u,h,L,Z){if(u.N!==0)return!1;
jV(h,L,Z,Xs(u.G));return!0},co,Ful),JsK=KB(function(u,h,L){if(u.N!==1)return!1;
OS(h,L,qG(u.G));return!0},function(u,h,L){aMa(u,L,EDn(h))},E5a),OV3=Jw(function(u,h,L){if(u.N!==1&&u.N!==2)return!1;
h=bK(h,h[GD]|0,L,!1,!1);if(u.N==2)for(L=Xs(u.G)>>>0,L=u.G.G+L;u.G.G<L;)h.push(qG(u.G));else h.push(qG(u.G));return!0},function(u,h,L){h=pB(EDn,h,!1);
if(h!=null)for(var Z=0;Z<h.length;Z++)aMa(u,L,h[Z])},E5a),fwK=KB(function(u,h,L){if(u.N!==0)return!1;
OS(h,L,Y8(u.G));return!0},Zan,tWj),DLy=KB(function(u,h,L,Z){if(u.N!==0)return!1;
jV(h,L,Z,Y8(u.G));return!0},Zan,tWj),jo=KB(function(u,h,L){if(u.N!==2)return!1;
OS(h,L,Bp(u));return!0},yoV,Wui),csV=Jw(function(u,h,L){if(u.N!==2)return!1;
u=Bp(u);bK(h,h[GD]|0,L,!1).push(u);return!0},function(u,h,L){h=pB(S1,h,!0);
if(h!=null)for(var Z=0;Z<h.length;Z++){var y=u,R=L,p=h[Z];p!=null&&$8(y,R,mLb(p))}},Wui),Iw3=KB(function(u,h,L,Z){if(u.N!==2)return!1;
jV(h,L,Z,Bp(u));return!0},yoV,Wui),hU,Ly=void 0;
Ly=Ly===void 0?Wp:Ly;hU=new Fs(function(u,h,L,Z,y){if(u.N!==2)return!1;Z=Hv(void 0,Z,!0);bK(h,h[GD]|0,L,!0).push(Z);GG(u,Z,y);return!0},function(u,h,L,Z,y){if(Array.isArray(h))for(var R=0;R<h.length;R++)R8R(u,h[R],L,Z,y)},Ly);
var Zo=bH(function(u,h,L,Z,y,R){if(u.N!==2)return!1;g$(h,h[GD]|0,R,L);h=Zm(h,Z,L);GG(u,h,y);return!0},R8R),Asb=KB(function(u,h,L){if(u.N!==2)return!1;
OS(h,L,r8V(u));return!0},function(u,h,L){h=kya(h);
h!=null&&$8(u,L,iH(h).buffer)},g5f),xLq=Jw(function(u,h,L){if(u.N!==2)return!1;
u=r8V(u);bK(h,h[GD]|0,L,!1).push(u);return!0},function(u,h,L){h=pB(kya,h,!1);
if(h!=null)for(var Z=0;Z<h.length;Z++){var y=u,R=L,p=h[Z];p!=null&&$8(y,R,iH(p).buffer)}},g5f),yU=KB(function(u,h,L){if(u.N!==0)return!1;
OS(h,L,Xs(u.G)>>>0);return!0},function(u,h,L){h=Dj(h);
h!=null&&h!=null&&(al(u,L,0),s0(u.G,h))},tM()),P13=KB(function(u,h,L){if(u.N!==0)return!1;
OS(h,L,Xs(u.G));return!0},function(u,h,L){h=fa(h);
h!=null&&(h=parseInt(h,10),al(u,L,0),nee(u.G,h))},tM());g.P(KHe,zG);g.P(Aw,zG);var iP=[1,2,3];var C11=[0,iP,Iw3,Kec,DLy];var Ma8=[0,hU,[0,ufY,Leb]];g.P(xd,zG);var MN=[1,2,3];var iVD=[0,MN,ys3,hlu,Zo,Ma8];g.P(Po,zG);var QRY=[0,hU,C11,iVD];var lw1=[0,[1,2,3],Zo,[0,jo,-1,fwK],Zo,[0,jo,-1,Rlu,fwK],Zo,[0,jo]];g.P(CB,zG);CB.prototype.Y0=function(){var u=$t(this,3,S1,3,void 0,!0);wY(u);return u[void 0]};CB.prototype.G=pvL([0,jo,lw1,csV,hU,QRY,JsK,OV3]);g.P(OaV,zG);var M1Y=globalThis.trustedTypes,QC;Sf.prototype.toString=function(){return this.G+""};qN.prototype.toString=function(){return this.G};
var ljf=new qN("about:invalid#zClosurez");var $db=oN("tel"),etb=oN("sms"),QFj=[oN("data"),oN("http"),oN("https"),oN("mailto"),oN("ftp"),new Yd(function(u){return/^[^:]*([/?#]|$)/.test(u)})],SYj=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Ho.prototype.toString=function(){return this.G+""};de.prototype.toString=function(){return this.G+""};we.prototype.toString=function(){return this.G};var aN={};g.Sjb=String.prototype.repeat?function(u,h){return u.repeat(h)}:function(u,h){return Array(h+1).join(u)};g.K=uj.prototype;g.K.isEnabled=function(){if(!g.Vn.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{k$:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.K.set=function(u,h,L){var Z=!1;if(typeof L==="object"){var y=L.w_d;Z=L.secure||!1;var R=L.domain||void 0;var p=L.path||void 0;var J=L.k$}if(/[;=\s]/.test(u))throw Error('Invalid cookie name "'+u+'"');if(/[;\r\n]/.test(h))throw Error('Invalid cookie value "'+h+'"');J===void 0&&(J=-1);L=R?";domain="+R:"";p=p?";path="+p:"";Z=Z?";secure":"";J=J<0?"":J==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+J*1E3)).toUTCString();this.G.cookie=u+"="+h+L+p+J+Z+(y!=null?";samesite="+
y:"")};
g.K.get=function(u,h){for(var L=u+"=",Z=(this.G.cookie||"").split(";"),y=0,R;y<Z.length;y++){R=Ty(Z[y]);if(R.lastIndexOf(L,0)==0)return R.slice(L.length);if(R==u)return""}return h};
g.K.remove=function(u,h,L){var Z=this.get(u)!==void 0;this.set(u,"",{k$:0,path:h,domain:L});return Z};
g.K.qv=function(){return jT(this).keys};
g.K.UH=function(){return jT(this).values};
g.K.isEmpty=function(){return!this.G.cookie};
g.K.clear=function(){for(var u=jT(this).keys,h=u.length-1;h>=0;h--)this.remove(u[h])};
var HS=new uj(typeof document=="undefined"?null:document);hN.prototype.compress=function(u){var h,L,Z,y;return g.G(function(R){switch(R.G){case 1:return h=new CompressionStream("gzip"),L=(new Response(h.readable)).arrayBuffer(),Z=h.writable.getWriter(),g.N(R,Z.write((new TextEncoder).encode(u)),2);case 2:return g.N(R,Z.close(),3);case 3:return y=Uint8Array,g.N(R,L,4);case 4:return R.return(new y(R.N))}})};
hN.prototype.isSupported=function(u){return u<1024?!1:typeof CompressionStream!=="undefined"};g.P(LX,zG);Z_.prototype.setInterval=function(u){this.intervalMs=u;this.tq&&this.enabled?(this.stop(),this.start()):this.tq&&this.stop()};
Z_.prototype.start=function(){var u=this;this.enabled=!0;this.tq||(this.tq=setTimeout(function(){u.tick()},this.intervalMs),this.N=this.G())};
Z_.prototype.stop=function(){this.enabled=!1;this.tq&&(clearTimeout(this.tq),this.tq=void 0)};
Z_.prototype.tick=function(){var u=this;if(this.enabled){var h=Math.max(this.G()-this.N,0);h<this.intervalMs*.8?this.tq=setTimeout(function(){u.tick()},this.intervalMs-h):(this.tq&&(clearTimeout(this.tq),this.tq=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.tq=void 0};g.P(y2,zG);g.P(RI,zG);g.K=g.O6.prototype;g.K.clone=function(){return new g.O6(this.x,this.y)};
g.K.ys=function(u){return u instanceof g.O6&&fX(this,u)};
g.K.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.K.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.K.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.K.scale=function(u,h){this.x*=u;this.y*=typeof h==="number"?h:u;return this};g.K=g.II.prototype;g.K.clone=function(){return new g.II(this.width,this.height)};
g.K.aspectRatio=function(){return this.width/this.height};
g.K.isEmpty=function(){return!xJ(this)};
g.K.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.K.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.K.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.K.scale=function(u,h){this.width*=u;this.height*=typeof h==="number"?h:u;return this};var WHe="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");rb.prototype.toString=function(){return this.G};
var HM={};new rb(HM,"");var bae=/^[a-z][a-z\d-]*$/i,Etn="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),gtn="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),jlV=["action","formaction","href"];var Z9e={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.K=zc.prototype;g.K.lP=function(u){return V2(this.G,u)};
g.K.getElementsByTagName=function(u,h){return(h||this.G).getElementsByTagName(String(u))};
g.K.BX=function(u){return g.eT(u,this.G)};
g.K.setProperties=tN;g.K.createElement=function(u){return bj(this.G,u)};
g.K.appendChild=g.uu;g.K.append=function(u,h){K4s(mQ(u),u,arguments,1)};
g.K.canHaveChildren=function(u){if(u.nodeType!=1)return!1;switch(u.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.K.removeNode=g.Lx;g.K.getChildren=function(u){return u.children!=void 0?u.children:Array.prototype.filter.call(u.childNodes,function(h){return h.nodeType==1})};
g.K.contains=g.ZO;g.P(Kx,zG);Kx.prototype.OP=function(){return Il(this,1)};g.P(Jf,zG);g.P(Ov,zG);g.P(fx,zG);var DGe=["platform","platformVersion","architecture","model","uaFullVersion"],c9=new Ov,DO=null;g.P(Ix,zG);g.P(ImL,zG);g.P(Af,zG);g.P(xL,zG);xL.prototype.j=function(){return yb(this,ImL,7,!1)!==void 0};
xL.prototype.vP=function(){return Rl(this,LX,16)};g.P(P9,zG);P9.prototype.nO=function(u){return C9(this,2,u)};Cx.prototype.nO=function(u){this.G.nO(u);return this};
Cx.prototype.build=function(u,h,L,Z,y,R){h=h===void 0?0:h;L=L===void 0?0:L;Z=Z===void 0?null:Z;y=y===void 0?0:y;R=R===void 0?0:R;var p=Rl(this.G,Ix,1);if(yb(p,fx,11,!1)!==void 0){p=iu(this);var J=new Kx;J=C9(J,1,this.N);J=Vx(J,2,pa(this.isFinal));L=Vx(J,3,OY(L>0?L:void 0));L=Vx(L,4,OY(y>0?y:void 0));L=Vx(L,5,OY(R>0?R:void 0));y=L.Mp;R=y[GD]|0;L=R&2?L:new L.constructor(r$(y,R,!0));p9(p,Kx,10,L)}p=this.G.clone();L=Date.now().toString();p=Vx(p,4,iK(L));u=K9(p,xL,3,u.slice());Z&&(p=new y2,Z=Vx(p,13,OY(Z)),
p=new RI,Z=p9(p,y2,2,Z),p=new Af,Z=p9(p,RI,1,Z),Z=C9(Z,2,9),p9(u,Af,18,Z));h&&AM(u,14,h);return u};var Bja=function(){if(!g.Vn.addEventListener||!Object.defineProperty)return!1;var u=!1,h=Object.defineProperty({},"passive",{get:function(){u=!0}});
try{var L=function(){};
g.Vn.addEventListener("test",L,h);g.Vn.removeEventListener("test",L,h)}catch(Z){}return u}();var ITV=CHf("AnimationEnd"),uo=CHf("TransitionEnd");g.Qg.prototype.N=0;g.Qg.prototype.reset=function(){this.G=this.X=this.B;this.N=0};
g.Qg.prototype.getValue=function(){return this.X};g.P(MVf,zG);var Xiu=IN(MVf);g.P(i91,zG);var Rk=new function(){this.G=i91;this.isRepeated=0;this.N=Rl;this.defaultValue=void 0};g.P(Xr,g.m);g.K=Xr.prototype;g.K.Ni=function(){this.pn();this.N.stop();this.DI.stop();g.m.prototype.Ni.call(this)};
g.K.dispatch=function(u){if(u instanceof xL)this.log(u);else try{var h=new xL,L=u.n0();var Z=x8(h,8,L);this.log(Z)}catch(y){}};
g.K.log=function(u){if(this.T7){u=u.clone();var h=this.jd++;u=AM(u,21,h);this.componentId&&x8(u,26,this.componentId);h=u;if(Xhe(h)==null){var L=Date.now();L=Number.isFinite(L)?L.toString():"0";Vx(h,1,iK(L))}Wrf(mH(h,15))!=null||AM(h,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(L=this.experimentIds.clone(),p9(h,LX,16,L));h=this.G.length-1E3+1;h>0&&(this.G.splice(0,h),this.B+=h);this.G.push(u);this.Qq||this.N.enabled||this.N.start()}};
g.K.flush=function(u,h){var L=this;if(this.G.length===0)u&&u();else if(this.gw&&this.Y)this.X.N=3,v8i(this);else{var Z=Date.now();if(this.aH>Z&&this.XB<Z)h&&h("throttled");else{this.network&&(typeof this.network.OP==="function"?xGn(this.X,this.network.OP()):this.X.N=0);var y=this.X.build(this.G,this.B,this.C,this.Dq,this.RH,this.AB),R=this.qy();if(R&&this.vX===R)h&&h("stale-auth-token");else{this.G=[];this.N.enabled&&this.N.stop();this.B=0;Z=y.n0();var p;this.V&&this.V.isSupported(Z.length)&&(p=this.V.compress(Z));
var J=S0j(this,Z,R),O=function(c){L.T.reset();L.N.setInterval(L.T.getValue());if(c){var I=null;try{var A=JSON.stringify(JSON.parse(c.replace(")]}'\n","")));I=Xiu(A)}catch(S){}if(I){c=Number;var x="-1";x=x===void 0?"0":x;var Q;A=(Q=Xhe(I))!=null?Q:x;Q=c(A);Q>0&&(L.XB=Date.now(),L.aH=L.XB+Q);I=Rk.G?Rk.N(I,Rk.G,175237375,!0):Rk.N(I,175237375,null,!0);if(I=I===null?void 0:I)I=Kq(I,1,-1),I!==-1&&(L.T=new g.Qg(I<1?1:I,3E5,.1),L.N.setInterval(L.T.getValue()))}}u&&u();L.C=0},f=function(c,I){var A=Rc(y,xL,
3);
var x;var Q=(x=Wrf(mH(y,14)))!=null?x:void 0;g.lu(L.T);L.N.setInterval(L.T.getValue());c===401&&R&&(L.vX=R);Q&&(L.B+=Q);I===void 0&&(I=L.isRetryable(c));I&&(L.G=A.concat(L.G),L.Qq||L.N.enabled||L.N.start());h&&h("net-send-failed",c);++L.C},D=function(){L.network&&L.network.send(J,O,f)};
p?p.then(function(c){J.requestHeaders["Content-Encoding"]="gzip";J.requestHeaders["Content-Type"]="application/binary";J.body=c;J.Ot=2;D()},function(){D()}):D()}}}};
g.K.pn=function(){this.X.isFinal=!0;this.flush();this.X.isFinal=!1};
g.K.isRetryable=function(u){return 500<=u&&u<600||u===401||u===0};v9.prototype.send=function(u,h,L){var Z=this,y,R,p,J,O,f,D,c,I,A;return g.G(function(x){switch(x.G){case 1:return R=(y=Z.m3?new AbortController:void 0)?setTimeout(function(){y.abort()},u.timeoutMillis):void 0,g.Qn(x,2,3),p=Object.assign({},{method:u.requestType,
headers:Object.assign({},u.requestHeaders)},u.body&&{body:u.body},u.withCredentials&&{credentials:"include"},{signal:u.timeoutMillis&&y?y.signal:null}),g.N(x,fetch(u.url,p),5);case 5:J=x.N;if(J.status!==200){(O=L)==null||O(J.status);x.KI(3);break}if((f=h)==null){x.KI(7);break}return g.N(x,J.text(),8);case 8:f(x.N);case 7:case 3:g.vi(x);clearTimeout(R);g.qL(x,0);break;case 2:D=g.Xf(x);switch((c=D)==null?void 0:c.name){case "AbortError":(I=L)==null||I(408);break;default:(A=L)==null||A(400)}x.KI(3)}})};
v9.prototype.OP=function(){return 4};g.P(qx,g.m);qx.prototype.e0=function(){this.T=!0;return this};
qx.prototype.build=function(){this.network||(this.network=new v9);var u=new Xr({logSource:this.logSource,qy:this.qy?this.qy:wvf,sessionIndex:this.sessionIndex,tDd:this.Vb,lL:this.B,Qq:!1,e0:this.T,lG:this.lG,network:this.network});g.V(this,u);if(this.N){var h=this.N,L=iu(u.X);x8(L,7,h)}u.V=new hN;this.componentId&&(u.componentId=this.componentId);this.Dq&&(u.Dq=this.Dq);this.pageId&&(u.pageId=this.pageId);this.G&&((L=this.G)?(u.experimentIds||(u.experimentIds=new LX),h=u.experimentIds,L=L.n0(),x8(h,
4,L)):u.experimentIds&&Vx(u.experimentIds,4));this.X&&(u.gw=u.Y);PHn(u.X);this.network.nO&&this.network.nO(this.logSource);this.network.quA&&this.network.quA(u);return u};g.P(TZ,g.m);TZ.prototype.flush=function(u){u=u||[];if(u.length){for(var h=new OaV,L=[],Z=0;Z<u.length;Z++){var y=u[Z],R=g.coi(y);L.push(R);y.clear()}K9(h,CB,1,L);this.G.dispatch(h);this.G.flush()}};g.K=YL.prototype;g.K.dK=function(u){var h=g.NL.apply(1,arguments),L=this.J5(h);L?L.push(new o81(u)):this.xb(u,h)};
g.K.xb=function(u){this.G.set(this.kM(g.NL.apply(1,arguments)),[new o81(u)])};
g.K.J5=function(){var u=this.kM(g.NL.apply(0,arguments));return this.G.has(u)?this.G.get(u):void 0};
g.K.zP=function(){var u=this.J5(g.NL.apply(0,arguments));return u&&u.length?u[0]:void 0};
g.K.clear=function(){this.G.clear()};
g.K.kM=function(){var u=g.NL.apply(0,arguments);return u?u.join(","):"key"};g.P(ox,YL);ox.prototype.X=function(u){var h=g.NL.apply(1,arguments),L=0,Z=this.zP(h);Z&&(L=Z.G);this.xb(L+u,h)};g.P(Nx,YL);Nx.prototype.eb=function(u){this.dK(u,g.NL.apply(1,arguments))};g.Uv.prototype.stopPropagation=function(){this.N=!0};
g.Uv.prototype.preventDefault=function(){this.defaultPrevented=!0};g.jb(GZ,g.Uv);
GZ.prototype.init=function(u,h){var L=this.type=u.type,Z=u.changedTouches&&u.changedTouches.length?u.changedTouches[0]:null;this.target=u.target||u.srcElement;this.currentTarget=h;h=u.relatedTarget;h||(L=="mouseover"?h=u.fromElement:L=="mouseout"&&(h=u.toElement));this.relatedTarget=h;Z?(this.clientX=Z.clientX!==void 0?Z.clientX:Z.pageX,this.clientY=Z.clientY!==void 0?Z.clientY:Z.pageY,this.screenX=Z.screenX||0,this.screenY=Z.screenY||0):(this.clientX=u.clientX!==void 0?u.clientX:u.pageX,this.clientY=
u.clientY!==void 0?u.clientY:u.pageY,this.screenX=u.screenX||0,this.screenY=u.screenY||0);this.button=u.button;this.keyCode=u.keyCode||0;this.key=u.key||"";this.charCode=u.charCode||(L=="keypress"?u.keyCode:0);this.ctrlKey=u.ctrlKey;this.altKey=u.altKey;this.shiftKey=u.shiftKey;this.metaKey=u.metaKey;this.pointerId=u.pointerId||0;this.pointerType=u.pointerType;this.state=u.state;this.G=u;u.defaultPrevented&&GZ.zD.preventDefault.call(this)};
GZ.prototype.stopPropagation=function(){GZ.zD.stopPropagation.call(this);this.G.stopPropagation?this.G.stopPropagation():this.G.cancelBubble=!0};
GZ.prototype.preventDefault=function(){GZ.zD.preventDefault.call(this);var u=this.G;u.preventDefault?u.preventDefault():u.returnValue=!1};var NjV="closure_listenable_"+(Math.random()*1E6|0);var UGR=0;g.K=B9.prototype;g.K.add=function(u,h,L,Z,y){var R=u.toString();u=this.listeners[R];u||(u=this.listeners[R]=[],this.G++);var p=mw(u,h,Z,y);p>-1?(h=u[p],L||(h.uT=!1)):(h=new GG1(h,this.src,R,!!Z,y),h.uT=L,u.push(h));return h};
g.K.remove=function(u,h,L,Z){u=u.toString();if(!(u in this.listeners))return!1;var y=this.listeners[u];h=mw(y,h,L,Z);return h>-1?(r0(y[h]),g.kD(y,h),y.length==0&&(delete this.listeners[u],this.G--),!0):!1};
g.K.removeAll=function(u){u=u&&u.toString();var h=0,L;for(L in this.listeners)if(!u||L==u){for(var Z=this.listeners[L],y=0;y<Z.length;y++)++h,r0(Z[y]);delete this.listeners[L];this.G--}return h};
g.K.WU=function(u,h,L,Z){u=this.listeners[u.toString()];var y=-1;u&&(y=mw(u,h,L,Z));return y>-1?u[y]:null};
g.K.hasListener=function(u,h){var L=u!==void 0,Z=L?u.toString():"",y=h!==void 0;return g.ij(this.listeners,function(R){for(var p=0;p<R.length;++p)if(!(L&&R[p].type!=Z||y&&R[p].capture!=h))return!0;return!1})};var tf="closure_lm_"+(Math.random()*1E6|0),Fr={},mGi=0,bu="__closure_events_fn_"+(Math.random()*1E9>>>0);g.jb(g.Ev,g.m);g.Ev.prototype[NjV]=!0;g.K=g.Ev.prototype;g.K.addEventListener=function(u,h,L,Z){g.Vg(this,u,h,L,Z)};
g.K.removeEventListener=function(u,h,L,Z){VVf(this,u,h,L,Z)};
g.K.dispatchEvent=function(u){var h=this.K6;if(h){var L=[];for(var Z=1;h;h=h.K6)L.push(h),++Z}h=this.It;Z=u.type||u;if(typeof u==="string")u=new g.Uv(u,h);else if(u instanceof g.Uv)u.target=u.target||h;else{var y=u;u=new g.Uv(Z,h);g.Gc(u,y)}y=!0;var R;if(L)for(R=L.length-1;!u.N&&R>=0;R--){var p=u.currentTarget=L[R];y=kL(p,Z,!0,u)&&y}u.N||(p=u.currentTarget=h,y=kL(p,Z,!0,u)&&y,u.N||(y=kL(p,Z,!1,u)&&y));if(L)for(R=0;!u.N&&R<L.length;R++)p=u.currentTarget=L[R],y=kL(p,Z,!1,u)&&y;return y};
g.K.Ni=function(){g.Ev.zD.Ni.call(this);this.aQ&&this.aQ.removeAll(void 0);this.K6=null};
g.K.listen=function(u,h,L,Z){return this.aQ.add(String(u),h,!1,L,Z)};
g.K.bH=function(u,h,L,Z){return this.aQ.add(String(u),h,!0,L,Z)};
g.K.FJ=function(u,h,L,Z){this.aQ.remove(String(u),h,L,Z)};
g.K.WU=function(u,h,L,Z){return this.aQ.WU(String(u),h,L,Z)};
g.K.hasListener=function(u,h){return this.aQ.hasListener(u!==void 0?String(u):void 0,h)};var uq=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(u){return u&&AsyncContext.Snapshot.wrap(u)}:function(u){return u};g0.prototype.get=function(){if(this.N>0){this.N--;var u=this.G;this.G=u.next;u.next=null}else u=this.X();return u};var jn;ZZ.prototype.add=function(u,h){var L=$Gw.get();L.set(u,h);this.N?this.N.next=L:this.G=L;this.N=L};
ZZ.prototype.remove=function(){var u=null;this.G&&(u=this.G,this.G=this.G.next,this.G||(this.N=null),u.next=null);return u};
var $Gw=new g0(function(){return new y$},function(u){return u.reset()});
y$.prototype.set=function(u,h){this.G=u;this.scope=h;this.next=null};
y$.prototype.reset=function(){this.next=this.scope=this.G=null};var RT,pv=!1,e9V=new ZZ;F4Y.prototype.reset=function(){this.context=this.N=this.X=this.G=null;this.B=!1};
var b9b=new g0(function(){return new F4Y},function(u){u.reset()});
g.IT.prototype.then=function(u,h,L){return ZXf(this,uq(typeof u==="function"?u:null),uq(typeof h==="function"?h:null),L)};
g.IT.prototype.$goog_Thenable=!0;g.K=g.IT.prototype;g.K.finally=function(u){var h=this;u=uq(u);return new Promise(function(L,Z){h11(h,function(y){u();L(y)},function(y){u();
Z(y)})})};
g.K.R5=function(u,h){return ZXf(this,null,uq(u),h)};
g.K.catch=g.IT.prototype.R5;g.K.cancel=function(u){if(this.G==0){var h=new iq(u);g.Kv(function(){L6l(this,h)},this)}};
g.K.VDd=function(u){this.G=0;cY(this,2,u)};
g.K.UOB=function(u){this.G=0;cY(this,3,u)};
g.K.Z5=function(){for(var u;u=jIn(this);)hpe(this,u,this.G,this.V);this.C=!1};
var KQb=i3;g.jb(iq,Cq);iq.prototype.name="cancel";g.jb(g.Q$,g.Ev);g.K=g.Q$.prototype;g.K.enabled=!1;g.K.Wj=null;g.K.setInterval=function(u){this.uX=u;this.Wj&&this.enabled?(this.stop(),this.start()):this.Wj&&this.stop()};
g.K.CSA=function(){if(this.enabled){var u=g.u3()-this.Fi;u>0&&u<this.uX*.8?this.Wj=this.UI.setTimeout(this.rk,this.uX-u):(this.Wj&&(this.UI.clearTimeout(this.Wj),this.Wj=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.K.start=function(){this.enabled=!0;this.Wj||(this.Wj=this.UI.setTimeout(this.rk,this.uX),this.Fi=g.u3())};
g.K.stop=function(){this.enabled=!1;this.Wj&&(this.UI.clearTimeout(this.Wj),this.Wj=null)};
g.K.Ni=function(){g.Q$.zD.Ni.call(this);this.stop();delete this.UI};g.P(g.X6,g.m);g.K=g.X6.prototype;g.K.sendIsolatedPayload=function(u){this.T=u;this.X=1};
g.K.Fz=function(){var u=this.N.values();u=[].concat(g.l(u)).filter(function(h){return h.G.size});
u.length&&this.V.flush(u,this.T);f_1(u);this.B=0;this.G.enabled&&this.G.stop()};
g.K.C3=function(u){var h=g.NL.apply(1,arguments);this.N.has(u)||this.N.set(u,new ox(u,h))};
g.K.MP=function(u){var h=g.NL.apply(1,arguments);this.N.has(u)||this.N.set(u,new Nx(u,h))};
g.K.Xt=function(u){this.p8(u,1,g.NL.apply(1,arguments))};
g.K.p8=function(u,h){var L=g.NL.apply(2,arguments),Z=OXb(this,u);Z&&Z instanceof ox&&(Z.X(h,L),JN1(this))};
g.K.eb=function(u,h){var L=g.NL.apply(2,arguments),Z=OXb(this,u);Z&&Z instanceof Nx&&(Z.eb(h,L),JN1(this))};g.P(vY,Error);vY.prototype.toString=function(){var u="RpcError("+(cNY(this.code)||String(this.code))+")";this.message&&(u+=": "+this.message);return u};I_j.prototype.n0=function(u){var h=[];Tq(this,u,h);return h.join("")};
var Pja={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},xoe=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var vbu;g.jb(YQ,MT1);YQ.prototype.G=function(){return new XMLHttpRequest};
vbu=new YQ;var Ur=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),vJR=/#|$/,q61=/[?&]($|#)/;g.jb(g.$Q,g.Ev);var HXb=/^https?$/i,qjg=["POST","PUT"],Y6b=[];g.K=g.$Q.prototype;g.K.Et=function(){this.dispose();g.gV(Y6b,this)};
g.K.send=function(u,h,L,Z){if(this.G)throw Error("[goog.net.XhrIo] Object is active with another request="+this.S+"; newUri="+u);h=h?h.toUpperCase():"GET";this.S=u;this.B="";this.N=0;this.RH=!1;this.X=!0;this.G=this.DI?this.DI.G():vbu.G();this.G.onreadystatechange=uq((0,g.Ej)(this.oK,this));try{this.getStatus(),this.XB=!0,this.G.open(h,String(u),!0),this.XB=!1}catch(p){this.getStatus();UoL(this,p);return}u=L||"";L=new Map(this.headers);if(Z)if(Object.getPrototypeOf(Z)===Object.prototype)for(var y in Z)L.set(y,
Z[y]);else if(typeof Z.keys==="function"&&typeof Z.get==="function"){y=g.C(Z.keys());for(var R=y.next();!R.done;R=y.next())R=R.value,L.set(R,Z.get(R))}else throw Error("Unknown input type for opt_headers: "+String(Z));Z=Array.from(L.keys()).find(function(p){return"content-type"==p.toLowerCase()});
y=g.Vn.FormData&&u instanceof g.Vn.FormData;!g.E8(qjg,h)||Z||y||L.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");h=g.C(L);for(Z=h.next();!Z.done;Z=h.next())L=g.C(Z.value),Z=L.next().value,L=L.next().value,this.G.setRequestHeader(Z,L);this.gw&&(this.G.responseType=this.gw);"withCredentials"in this.G&&this.G.withCredentials!==this.V&&(this.G.withCredentials=this.V);try{this.C&&(clearTimeout(this.C),this.C=null),this.AB>0&&(this.getStatus(),this.C=setTimeout(this.cW.bind(this),
this.AB)),this.getStatus(),this.Y=!0,this.G.send(u),this.Y=!1}catch(p){this.getStatus(),UoL(this,p)}};
g.K.cW=function(){typeof WY!="undefined"&&this.G&&(this.B="Timed out after "+this.AB+"ms, aborting",this.N=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.K.abort=function(u){this.G&&this.X&&(this.getStatus(),this.X=!1,this.T=!0,this.G.abort(),this.T=!1,this.N=u||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),t4(this))};
g.K.Ni=function(){this.G&&(this.X&&(this.X=!1,this.T=!0,this.G.abort(),this.T=!1),t4(this,!0));g.$Q.zD.Ni.call(this)};
g.K.oK=function(){this.ww()||(this.XB||this.Y||this.T?GcR(this):this.zAI())};
g.K.zAI=function(){GcR(this)};
g.K.isActive=function(){return!!this.G};
g.K.isComplete=function(){return g.F6(this)==4};
g.K.getStatus=function(){try{return g.F6(this)>2?this.G.status:-1}catch(u){return-1}};
g.K.getResponseHeader=function(u){if(this.G&&this.isComplete())return u=this.G.getResponseHeader(u),u===null?void 0:u};
g.K.getLastError=function(){return typeof this.B==="string"?this.B:String(this.B)};uv.prototype.send=function(u,h,L){h=h===void 0?function(){}:h;
L=L===void 0?function(){}:L;
oJa(u.url,function(Z){Z=Z.target;bq(Z)?h(g.Er(Z)):L(Z.getStatus())},u.requestType,u.body,u.requestHeaders,u.timeoutMillis,u.withCredentials)};
uv.prototype.OP=function(){return 1};Li.prototype.done=function(){this.logger.iE(this.event,jZ()-this.startTime)};
g.P(Zf,DR);g.P(Rj,Zf);g.K=Rj.prototype;g.K.E8=function(){};
g.K.HS=function(){};
g.K.iE=function(){};
g.K.zz=function(){};
g.K.L5=function(){};
g.K.OD=function(u,h,L){return L};
g.K.BZ=function(){};
g.K.u3=function(){};
g.K.zF=function(){};
g.K.Jp=function(){};
g.P(pi,Zf);g.K=pi.prototype;g.K.update=function(u){this.logger.dispose();this.logger=u};
g.K.HS=function(u){this.logger.HS(u)};
g.K.iE=function(u,h){this.logger.iE(u,h)};
g.K.zz=function(u){this.logger.zz(u)};
g.K.L5=function(){this.logger.L5()};
g.K.OD=function(u,h,L){return this.logger.OD(u,h,L)};
g.K.BZ=function(u){this.logger.BZ(u)};
g.K.u3=function(u){this.logger.u3(u)};
g.K.zF=function(u){this.logger.zF(u)};
g.K.Jp=function(u){this.logger.Jp(u)};
g.K.o6=function(u){this.logger instanceof OH&&this.logger.o6(u)};
g.K.E8=function(u){this.logger.E8(u)};
g.P(Ki,g.m);g.P(Jb,Zf);g.K=Jb.prototype;g.K.o6=function(u){this.uw=u};
g.K.E8=function(u){this.metrics.esA.eb(u,this.H7)};
g.K.HS=function(u){this.metrics.eventCount.G(u,this.H7)};
g.K.iE=function(u,h){this.metrics.qn.eb(h,u,this.uw,this.H7)};
g.K.zz=function(u){this.metrics.errorCount.G(u,this.uw,this.H7)};
g.K.OD=function(u,h,L){function Z(p){if(!y.ww()){var J=jZ()-R;y.metrics.I7I.eb(J,u,h,p,y.uw,y.H7)}}
var y=this,R=jZ();L.then(function(){Z(0)},function(p){p instanceof vY?Z(p.code):Z(-1)});
return L};
g.K.BZ=function(u){this.metrics.ROI.G(u,this.uw,this.H7)};
g.K.u3=function(u){this.metrics.vl.G(u,this.uw,this.H7)};
g.K.zF=function(u){this.metrics.A3A.G(u,this.uw,this.H7)};
g.P(OH,Jb);OH.prototype.Jp=function(u){var h=this;this.G.dispose();this.N&&this.service.dispose();this.service=this.options.W5("45",this.options.i7.concat(u));this.G=new Ki(function(){return void h.service.Fz()},this.options.Mf);
this.metrics=Bbf(this.service);this.X=u};
OH.prototype.L5=function(){moR(this.G)};g.P(fi,zG);g.P(Df,zG);g.P(cl,zG);var Tn7=IN(cl),nJs=function(u){return $e(function(h){return h instanceof u&&!((h.Mp[GD]|0)&2)})}(cl);
cl.messageId="bfkj";g.P(doY,zG);g.P(pq,zG);g.P(Ij,zG);var sIl=IN(Ij);g.P(xN,g.m);xN.prototype.snapshot=function(u){if(this.ww())throw Error("Already disposed");this.logger.HS("n");var h=this.logger.share();return this.X.then(function(L){var Z=L.gK;return new Promise(function(y){var R=new Li(h,"n");Z(function(p){R.done();h.E8(p.length);h.L5();h.dispose();y(p)},[u.RM,
u.SI,u.WR,u.JO])})})};
xN.prototype.Y8=function(u){var h=this;if(this.ww())throw Error("Already disposed");this.logger.HS("n");var L=yw(this.logger,function(){return h.B([u.RM,u.SI,u.WR,u.JO])},"n");
this.logger.E8(L.length);this.logger.L5();return L};
xN.prototype.TA=function(u){this.X.then(function(h){var L;(L=h.wry)==null||L(u)})};
xN.prototype.CS=function(){return this.logger.share()};g.P(iv,zG);g.P(Qw,zG);lv.prototype.zR=function(u,h){var L=this,Z,y,R,p,J;return g.G(function(O){if(O.G==1){var f=new iv;Z=Pp(f,1,L.H2);u&&Pp(Z,2,u);h&&Pp(Z,3,h);y=L.G();return g.N(O,L.client.create(Z,y),2)}R=O.N;p=Ye(Wv(R,2));if(p.length){f=O.return;var D=new Uint8Array(p.length);for(var c=0;c<p.length;c++)D[c]=p[c]+97;if(g.Vn.TextDecoder)D=(new TextDecoder).decode(D);else if(D.length<=8192)D=String.fromCharCode.apply(null,D);else{c="";for(var I=0;I<D.length;I+=8192)c+=String.fromCharCode.apply(null,Array.prototype.slice.call(D,
I,I+8192));D=c}D=Tn7(D);return f.call(O,D)}J=Rl(R,cl,1);if(!J)throw Error("Missing field");return O.return(J)})};
lv.prototype.tU=function(u){var h=this,L,Z;return g.G(function(y){L=h.G();var R=new Qw;R=Pp(R,1,h.H2);Z=Pp(R,2,u);R=y.return;var p=h.client;p=jTe(p.G,p.N+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",Z,L||{},Yj1);return R.call(y,p)})};g.P(SZ,g.m);SZ.prototype.snapshot=function(u){var h=this;return g.G(function(L){switch(L.G){case 1:if(h.ww())throw Error("Already disposed");if(h.N||h.V){L.KI(2);break}return g.N(L,h.T.promise,2);case 2:if(!h.N){L.KI(4);break}return g.N(L,h.N.snapshot(u),5);case 5:return L.return(L.N);case 4:throw h.V;}})};
SZ.prototype.TA=function(u){var h,L;(h=this.N)==null||(L=h.TA)==null||L.call(h,u)};
SZ.prototype.handleError=function(u){if(!this.ww()){this.V=u;this.T.resolve();var h,L;(L=(h=this.options).ryH)==null||L.call(h,u)}};
SZ.prototype.CS=function(){return this.logger.share()};
var FQY={x37:432E5,pJ:3E5,iM:10,ZY:1E4,Ql:3E4,mpA:3E4,tSI:6E4,iJ:1E3,LD:6E4,Hk:6E5,So:.25,Wk:2,maxAttempts:10};var ob3,Zxn=(ob3=Math.imul)!=null?ob3:function(u,h){return u*h|0},Tu=[196,
200,224,18];YN.prototype.n0=function(){return String(this.G)+","+this.N.join()};
YN.prototype.eZ=function(u,h){var L=void 0;if(this.N[this.G]!==u){var Z=this.N.indexOf(u);Z!==-1?(this.N.splice(Z,1),Z<this.G&&this.G--,this.N.splice(this.G,0,u)):(L=this.N[this.G],this.N[this.G]=u)}this.G=(this.G+1)%this.maxItems;u=Lwi("iU5q-!O9@$",this.n0());L&&u&&h(L);return u};var Afe={toString:function(u){var h=[],L=0;u-=-2147483648;h[L++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(u%52);for(u=Math.floor(u/52);u>0;)h[L++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(u%62),u=Math.floor(u/62);return h.join("")}};var PuR;g.P(UH,g.m);UH.prototype.vF=function(u,h){var L=this.Fr(u);h==null||h(L);return yw(this.logger,function(){return g.Mk(L,2)},this.X)};
PuR=Symbol.dispose;g.P(r9,UH);r9.prototype.Fr=function(u,h){var L=this;this.logger.HS(this.G);++this.T>=this.C&&this.N.resolve();var Z=u();u=yw(this.logger,function(){return L.B(Z)},"C");
if(u===void 0)throw new yK(17,"YNJ:Undefined");if(!(u instanceof Uint8Array))throw new yK(18,"ODM:Invalid");h==null||h(u);return u};
g.P(Bl,UH);Bl.prototype.Fr=function(){return this.B};
g.P(zu,UH);zu.prototype.Fr=function(){var u=this;return yw(this.logger,function(){return Qu(u.B)},"d")};
zu.prototype.vF=function(){return this.B};
g.P(m3,UH);m3.prototype.Fr=function(){if(this.B)return this.B;this.B=Cuj(this,function(u){return"_"+xxn(u)});
return Cuj(this,function(u){return u})};
g.P(ni,UH);ni.prototype.Fr=function(u){var h=u();if(h.length>118)throw new yK(19,"DFO:Invalid");u=Math.floor(Date.now()/1E3);var L=[Math.random()*255,Math.random()*255],Z=L.concat([this.B&255,this.clientState],[u>>24&255,u>>16&255,u>>8&255,u&255]);u=new Uint8Array(2+Z.length+h.length);u[0]=34;u[1]=Z.length+h.length;u.set(Z,2);u.set(h,2+Z.length);h=u.subarray(2);for(Z=L=L.length;Z<h.length;++Z)h[Z]^=h[Z%L];this.logger.BZ(this.clientState);return u};var X9a={xn:3E4,Ghi:2E4};g.P(sH,g.m);sH.prototype.Gu=function(u){if(!(u>150))try{this.cache=new fOb(u,this.logger)}catch(h){this.reportError(new yK(22,"GBJ:init",h))}};
sH.prototype.reportError=function(u){this.logger.zz(u.code);this.onError(u);return u};
g.P($N,sH);$N.prototype.kA=function(){return this.B.promise};
$N.prototype.Fr=function(u){return w9(this,Object.assign({},u),!1)};
$N.prototype.vF=function(u){return w9(this,Object.assign({},u),!0)};
var vLe=function(u){return $e(function(h){if(!up(h))return!1;for(var L=g.C(Object.entries(u)),Z=L.next();!Z.done;Z=L.next()){var y=g.C(Z.value);Z=y.next().value;y=y.next().value;if(!(Z in h)){if(y.Dld===!0)continue;return!1}if(!y(h[Z]))return!1}return!0})}({Il:function(u){return $e(function(h){return h instanceof u})}(SZ)},"");g.P(Wl,zG);var Nnu=IN(Wl);YvV.prototype.getMetadata=function(){return this.metadata};Fk.prototype.getMetadata=function(){return this.metadata};
Fk.prototype.getStatus=function(){return this.status};bv.prototype.V=function(u,h){h=h===void 0?{}:h;return new YvV(u,this,h)};
bv.prototype.getName=function(){return this.name};var ULD=new bv("/google.internal.waa.v1.Waa/Create",iv,Wl,function(u){return u.n0()},Nnu);g.P(EH,zG);var Yj1=new bv("/google.internal.waa.v1.Waa/GenerateIT",Qw,EH,function(u){return u.n0()},IN(EH));var y4b=new Set(["SAPISIDHASH","APISIDHASH"]);var kZn=Promise;g.P(kN,zG);kN.prototype.getValue=function(){var u=mH(this,2);if(Array.isArray(u)||u instanceof zG)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Wv(this,2)};g.P(g9,zG);g9.prototype.getMessage=function(){return cp(this,2)};
var rf1=IN(g9);uC.prototype.Tt=function(u,h){u=="data"?this.X.push(h):u=="metadata"?this.T.push(h):u=="status"?this.C.push(h):u=="end"?this.B.push(h):u=="error"&&this.N.push(h);return this};
uC.prototype.removeListener=function(u,h){u=="data"?yM(this.X,h):u=="metadata"?yM(this.T,h):u=="status"?yM(this.C,h):u=="end"?yM(this.B,h):u=="error"&&yM(this.N,h);return this};
uC.prototype.cancel=function(){this.G.abort()};
uC.prototype.cancel=uC.prototype.cancel;uC.prototype.removeListener=uC.prototype.removeListener;uC.prototype.on=uC.prototype.Tt;g.P(N0e,Error);g.jb(g.Rs,MT1);g.Rs.prototype.G=function(){var u=new pp(this.B,this.X);this.N&&u.setCredentialsMode(this.N);return u};
g.Rs.prototype.setCredentialsMode=function(u){this.N=u};
g.jb(pp,g.Ev);g.K=pp.prototype;g.K.open=function(u,h){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.AB=u;this.Y=h;this.readyState=1;Kp(this)};
g.K.send=function(u){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.G=!0;var h={headers:this.S,method:this.AB,credentials:this.T,cache:void 0};u&&(h.body=u);(this.RH||g.Vn).fetch(new Request(this.Y,h)).then(this.zdd.bind(this),this.EP.bind(this))};
g.K.abort=function(){this.response=this.responseText="";this.S=new Headers;this.status=0;this.X&&this.X.cancel("Request was aborted.").catch(function(){});
this.readyState>=1&&this.G&&this.readyState!=4&&(this.G=!1,Jj(this));this.readyState=0};
g.K.zdd=function(u){if(this.G&&(this.B=u,this.N||(this.status=this.B.status,this.statusText=this.B.statusText,this.N=u.headers,this.readyState=2,Kp(this)),this.G&&(this.readyState=3,Kp(this),this.G)))if(this.responseType==="arraybuffer")u.arrayBuffer().then(this.MdA.bind(this),this.EP.bind(this));else if(typeof g.Vn.ReadableStream!=="undefined"&&"body"in u){this.X=u.body.getReader();if(this.C){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');
this.response=[]}else this.response=this.responseText="",this.V=new TextDecoder;B0n(this)}else u.text().then(this.XXB.bind(this),this.EP.bind(this))};
g.K.edy=function(u){if(this.G){if(this.C&&u.value)this.response.push(u.value);else if(!this.C){var h=u.value?u.value:new Uint8Array(0);if(h=this.V.decode(h,{stream:!u.done}))this.response=this.responseText+=h}u.done?Jj(this):Kp(this);this.readyState==3&&B0n(this)}};
g.K.XXB=function(u){this.G&&(this.response=this.responseText=u,Jj(this))};
g.K.MdA=function(u){this.G&&(this.response=u,Jj(this))};
g.K.EP=function(){this.G&&Jj(this)};
g.K.setRequestHeader=function(u,h){this.S.append(u,h)};
g.K.getResponseHeader=function(u){return this.N?this.N.get(u.toLowerCase())||"":""};
g.K.getAllResponseHeaders=function(){if(!this.N)return"";for(var u=[],h=this.N.entries(),L=h.next();!L.done;)L=L.value,u.push(L[0]+": "+L[1]),L=h.next();return u.join("\r\n")};
g.K.setCredentialsMode=function(u){this.T=u};
Object.defineProperty(pp.prototype,"withCredentials",{get:function(){return this.T==="include"},
set:function(u){this.setCredentialsMode(u?"include":"same-origin")}});g.Ok.prototype.toString=function(){var u=[],h=this.T;h&&u.push(PB(h,GYR,!0),":");var L=this.G;if(L||h=="file")u.push("//"),(h=this.S)&&u.push(PB(h,GYR,!0),"@"),u.push(g.Wo(L).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),L=this.X,L!=null&&u.push(":",String(L));if(L=this.N)this.G&&L.charAt(0)!="/"&&u.push("/"),u.push(PB(L,L.charAt(0)=="/"?HV3:rs8,!0));(L=this.B.toString())&&u.push("?",L);(L=this.C)&&u.push("#",PB(L,BnD));return u.join("")};
g.Ok.prototype.resolve=function(u){var h=this.clone(),L=!!u.T;L?g.fp(h,u.T):L=!!u.S;L?h.S=u.S:L=!!u.G;L?g.DG(h,u.G):L=u.X!=null;var Z=u.N;if(L)g.cB(h,u.X);else if(L=!!u.N){if(Z.charAt(0)!="/")if(this.G&&!this.N)Z="/"+Z;else{var y=h.N.lastIndexOf("/");y!=-1&&(Z=h.N.slice(0,y+1)+Z)}y=Z;if(y==".."||y==".")Z="";else if(g.v1(y,"./")||g.v1(y,"/.")){Z=Sb(y,"/");y=y.split("/");for(var R=[],p=0;p<y.length;){var J=y[p++];J=="."?Z&&p==y.length&&R.push(""):J==".."?((R.length>1||R.length==1&&R[0]!="")&&R.pop(),
Z&&p==y.length&&R.push("")):(R.push(J),Z=!0)}Z=R.join("/")}else Z=y}L?h.N=Z:L=u.B.toString()!=="";L?Is(h,u.B.clone()):L=!!u.C;L&&(h.C=u.C);return h};
g.Ok.prototype.clone=function(){return new g.Ok(this)};
var GYR=/[#\/\?@]/g,rs8=/[#\?:]/g,HV3=/[#\?]/g,mxn=/[#\?@]/g,BnD=/#/g;g.K=xP.prototype;g.K.add=function(u,h){iC(this);this.X=null;u=QM(this,u);var L=this.G.get(u);L||this.G.set(u,L=[]);L.push(h);this.N=this.N+1;return this};
g.K.remove=function(u){iC(this);u=QM(this,u);return this.G.has(u)?(this.X=null,this.N=this.N-this.G.get(u).length,this.G.delete(u)):!1};
g.K.clear=function(){this.G=this.X=null;this.N=0};
g.K.isEmpty=function(){iC(this);return this.N==0};
g.K.forEach=function(u,h){iC(this);this.G.forEach(function(L,Z){L.forEach(function(y){u.call(h,y,Z,this)},this)},this)};
g.K.qv=function(){iC(this);for(var u=Array.from(this.G.values()),h=Array.from(this.G.keys()),L=[],Z=0;Z<h.length;Z++)for(var y=u[Z],R=0;R<y.length;R++)L.push(h[Z]);return L};
g.K.UH=function(u){iC(this);var h=[];if(typeof u==="string")VKn(this,u)&&(h=h.concat(this.G.get(QM(this,u))));else{u=Array.from(this.G.values());for(var L=0;L<u.length;L++)h=h.concat(u[L])}return h};
g.K.set=function(u,h){iC(this);this.X=null;u=QM(this,u);VKn(this,u)&&(this.N=this.N-this.G.get(u).length);this.G.set(u,[h]);this.N=this.N+1;return this};
g.K.get=function(u,h){if(!u)return h;u=this.UH(u);return u.length>0?String(u[0]):h};
g.K.toString=function(){if(this.X)return this.X;if(!this.G)return"";for(var u=[],h=Array.from(this.G.keys()),L=0;L<h.length;L++){var Z=h[L],y=g.Wo(Z);Z=this.UH(Z);for(var R=0;R<Z.length;R++){var p=y;Z[R]!==""&&(p+="="+g.Wo(Z[R]));u.push(p)}}return this.X=u.join("&")};
g.K.clone=function(){var u=new xP;u.X=this.X;this.G&&(u.G=new Map(this.G),u.N=this.N);return u};g.jb(g.S6,g.m);var zlV=[];g.K=g.S6.prototype;g.K.listen=function(u,h,L,Z){Array.isArray(h)||(h&&(zlV[0]=h.toString()),h=zlV);for(var y=0;y<h.length;y++){var R=g.Vg(u,h[y],L||this.handleEvent,Z||!1,this.N||this);if(!R)break;this.G[R.key]=R}return this};
g.K.bH=function(u,h,L,Z){return w9n(this,u,h,L,Z)};
g.K.FJ=function(u,h,L,Z,y){if(Array.isArray(h))for(var R=0;R<h.length;R++)this.FJ(u,h[R],L,Z,y);else L=L||this.handleEvent,Z=g.Wi(Z)?!!Z.capture:!!Z,y=y||this.N||this,L=nx(L),Z=!!Z,h=H9(u)?u.WU(h,L,Z,y):u?(u=w0(u))?u.WU(h,L,Z,y):null:null,h&&(W9(h),delete this.G[h.key])};
g.K.removeAll=function(){g.PM(this.G,function(u,h){this.G.hasOwnProperty(h)&&W9(u)},this);
this.G={}};
g.K.Ni=function(){g.S6.zD.Ni.call(this);this.removeAll()};
g.K.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};eWj.prototype.isInputValid=function(){return this.X};XH.prototype.isInputValid=function(){return this.G!=3};
XH.prototype.KB=function(){return this.C};
XH.prototype.WG=function(){return!0};
XH.prototype.parse=function(u){function h(O){O&128&&vB(R,p,J,"invalid tag");(O&7)!=2&&vB(R,p,J,"invalid wire type");R.X=O>>>3;R.X!=1&&R.X!=2&&R.X!=15&&vB(R,p,J,"unexpected tag");R.G=1;R.N=0;R.B=0}
function L(O){R.B++;R.B==5&&O&240&&vB(R,p,J,"message length too long");R.N|=(O&127)<<(R.B-1)*7;O&128||(R.G=2,R.S=0,typeof Uint8Array!=="undefined"?R.T=new Uint8Array(R.N):R.T=Array(R.N),R.N==0&&y())}
function Z(O){R.T[R.S++]=O;R.S==R.N&&y()}
function y(){if(R.X<15){var O={};O[R.X]=R.T;R.V.push(O)}R.G=0}
for(var R=this,p=u instanceof Array?u:new Uint8Array(u),J=0;J<p.length;){switch(R.G){case 3:vB(R,p,J,"stream already broken");break;case 0:h(p[J]);break;case 1:L(p[J]);break;case 2:Z(p[J]);break;default:throw Error("unexpected parser state: "+R.G);}R.Y++;J++}u=R.V;R.V=[];return u.length>0?u:null};qf.prototype.isInputValid=function(){return this.G===null};
qf.prototype.KB=function(){return this.G};
qf.prototype.WG=function(){return!1};
qf.prototype.parse=function(u){this.G!==null&&$xf(this,u,"stream already broken");var h=null;try{var L=this.X;L.X||aOw(L,u,"stream already broken");L.G+=u;var Z=Math.floor(L.G.length/4);if(Z==0)var y=null;else{try{var R=IRw(L.G.slice(0,Z*4))}catch(p){aOw(L,L.G,p.message)}L.N+=Z*4;L.G=L.G.slice(Z*4);y=R}h=y===null?null:this.B.parse(y)}catch(p){$xf(this,u,p.message)}this.N+=u.length;return h};var mLD={INIT:0,nT:1,Y4:2,Wd:3,er:4,ma:5,STRING:6,hJ:7,rU:8,jE:9,Vu:10,Uy:11,s6:12,L4:13,HR:14,Sy:15,Cd:16,wU:17,Tc:18,sL:19,f8:20};g.K=YP.prototype;g.K.isInputValid=function(){return this.T!=3};
g.K.KB=function(){return this.Y};
g.K.done=function(){return this.T===2};
g.K.WG=function(){return!1};
g.K.parse=function(u){function h(){for(;I<u.length;)if(Tk(u[I]))I++,R.X++;else break;return I<f}
function L(){for(var x;;){x=u[I++];if(!x)break;R.X++;switch(R.G){case O.INIT:x==="{"?R.G=O.Y4:x==="["?R.G=O.er:Tk(x)||os(R,u,I);continue;case O.hJ:case O.Y4:if(Tk(x))continue;if(R.G===O.hJ)p.push(O.rU);else if(x==="}"){y("{}");R.G=Z();continue}else p.push(O.Wd);x==='"'?R.G=O.STRING:os(R,u,I);continue;case O.rU:case O.Wd:if(Tk(x))continue;x===":"?(R.G===O.Wd&&(p.push(O.Wd),R.N++),R.G=O.nT):x==="}"?(R.N--,y(),R.G=Z()):x===","?(R.G===O.Wd&&p.push(O.Wd),R.G=O.hJ):os(R,u,I);continue;case O.er:case O.nT:if(Tk(x))continue;
if(R.G===O.er)if(R.N++,R.G=O.nT,x==="]"){R.N--;if(R.N===0){R.G=O.ma;return}y("[]");R.G=Z();continue}else p.push(O.ma);x==='"'?R.G=O.STRING:x==="{"?R.G=O.Y4:x==="["?R.G=O.er:x==="t"?R.G=O.jE:x==="f"?R.G=O.s6:x==="n"?R.G=O.Cd:x!=="-"&&("0123456789".indexOf(x)!==-1?R.G=O.f8:os(R,u,I));continue;case O.ma:if(x===",")p.push(O.ma),R.G=O.nT,R.N===1&&(c=I);else if(x==="]"){R.N--;if(R.N===0)return;y();R.G=Z()}else if(Tk(x))continue;else os(R,u,I);continue;case O.STRING:var Q=I;a:for(;;){for(;R.S>0;)if(x=u[I++],
R.S===4?R.S=0:R.S++,!x)break a;if(x==='"'&&!R.V){R.G=Z();break}if(x==="\\"&&!R.V&&(R.V=!0,x=u[I++],!x))break;if(R.V)if(R.V=!1,x==="u"&&(R.S=1),x=u[I++])continue;else break;J.lastIndex=I;x=J.exec(u);if(!x){I=u.length+1;break}I=x.index+1;x=u[x.index];if(!x)break}R.X+=I-Q;continue;case O.jE:if(!x)continue;x==="r"?R.G=O.Vu:os(R,u,I);continue;case O.Vu:if(!x)continue;x==="u"?R.G=O.Uy:os(R,u,I);continue;case O.Uy:if(!x)continue;x==="e"?R.G=Z():os(R,u,I);continue;case O.s6:if(!x)continue;x==="a"?R.G=O.L4:
os(R,u,I);continue;case O.L4:if(!x)continue;x==="l"?R.G=O.HR:os(R,u,I);continue;case O.HR:if(!x)continue;x==="s"?R.G=O.Sy:os(R,u,I);continue;case O.Sy:if(!x)continue;x==="e"?R.G=Z():os(R,u,I);continue;case O.Cd:if(!x)continue;x==="u"?R.G=O.wU:os(R,u,I);continue;case O.wU:if(!x)continue;x==="l"?R.G=O.Tc:os(R,u,I);continue;case O.Tc:if(!x)continue;x==="l"?R.G=Z():os(R,u,I);continue;case O.sL:x==="."?R.G=O.f8:os(R,u,I);continue;case O.f8:if("0123456789.eE+-".indexOf(x)!==-1)continue;else I--,R.X--,R.G=
Z();continue;default:os(R,u,I)}}}
function Z(){var x=p.pop();return x!=null?x:O.nT}
function y(x){R.N>1||(x||(x=c===-1?R.B+u.substring(D,I):u.substring(c,I)),R.AB?R.C.push(x):R.C.push(JSON.parse(x)),c=I)}
for(var R=this,p=R.RH,J=R.XB,O=mLD,f=u.length,D=0,c=-1,I=0;I<f;)switch(R.T){case 3:return os(R,u,I),null;case 2:return h()&&os(R,u,I),null;case 0:if(h()){var A=u[I++];R.X++;if(A==="["){R.T=1;D=I;R.G=O.er;continue}else os(R,u,I)}return null;case 1:return L(),R.N===0&&R.G==O.ma?(R.T=2,R.B=u.substring(I)):R.B=c===-1?R.B+u.substring(D):u.substring(c),R.C.length>0?(A=R.C,R.C=[],A):null}return null};Nf.prototype.isInputValid=function(){return this.T===null};
Nf.prototype.KB=function(){return this.T};
Nf.prototype.WG=function(){return!1};
Nf.prototype.parse=function(u){function h(O){R.N=6;R.T="The stream is broken @"+R.G+"/"+p+". Error: "+O+". With input:\n";throw Error(R.T);}
function L(){R.X=new YP({BnI:!0,lJ:!0})}
function Z(O){if(O)for(var f=0;f<O.length;f++){var D={};D[1]=O[f];R.B.push(D)}}
function y(O){if(O){(R.C||O.length>1)&&h("extra status: "+O);R.C=!0;var f={};f[2]=O[0];R.B.push(f)}}
for(var R=this,p=0;p<u.length;){var J;if(J=R.N!==2){a:{for(;p<u.length;){if(!Tk(u[p])){J=!0;break a}p++;R.G++}J=!1}J=!J}if(J)return null;switch(R.N){case 6:h("stream already broken");break;case 0:u[p]==="["?(R.N=1,p++,R.G++):h("unexpected input token");break;case 1:u[p]==="["?(R.N=2,L()):u[p]===","||u.slice(p,p+5)=="null,"?R.N=3:u[p]==="]"?(R.N=5,p++,R.G++):h("unexpected input token");break;case 2:J=R.X.parse(u.substring(p));Z(J);R.X.done()?(R.N=3,J=R.X.B,R.G+=u.length-p-J.length,u=J,p=0):(R.G+=u.length-
p,p=u.length);break;case 3:u[p]===","||u.slice(p,p+5)=="null,"?(R.N=4,L(),R.X.parse("["),p+=u[p]===","?1:5,R.G++):u[p]==="]"&&(R.N=5,p++,R.G++);break;case 4:J=R.X.parse(u.substring(p));y(J);R.X.done()?(R.N=5,J=R.X.B,R.G+=u.length-p-J.length,u=J,p=0):(R.G+=u.length-p,p=u.length);break;case 5:h("extra input after stream end")}}return R.B.length>0?(u=R.B,R.B=[],u):null};Uk.prototype.bq=function(){return this.G};
Uk.prototype.getStatus=function(){return this.T};
Uk.prototype.AB=function(u){u=u.target;try{if(u==this.G)a:{var h=g.F6(this.G),L=this.G.N,Z=this.G.getStatus(),y=g.Er(this.G);u=[];if(g.kQ(this.G)instanceof Array){var R=g.kQ(this.G);R.length>0&&R[0]instanceof Uint8Array&&(this.Y=!0,u=R)}if(!(h<3||h==3&&!y&&u.length==0))if(Z=Z==200||Z==206,h==4&&(L==8?Gk(this,7):L==7?Gk(this,8):Z||Gk(this,3)),this.N||(this.N=tKl(this.G),this.N==null&&Gk(this,5)),this.T>2)zk(this);else{if(u.length>this.X){var p=u.length;L=[];try{if(this.N.WG())for(var J=0;J<p;J++){var O=
this.N.parse(Array.from(u[J]));O&&(L=L.concat(O))}else{O="";if(!this.C){if(typeof TextDecoder==="undefined")throw Error("TextDecoder is not supported by this browser.");this.C=new TextDecoder}for(J=0;J<p;J++)O+=this.C.decode(u[J],{stream:h==4&&J==p-1});L=this.N.parse(O)}u.splice(0,p);L&&this.B(L)}catch(D){Gk(this,5);zk(this);break a}}else if(y.length>this.X){J=y.slice(this.X);this.X=y.length;try{var f=this.N.parse(J);f!=null&&this.B&&this.B(f)}catch(D){Gk(this,5);zk(this);break a}}h==4?(y.length!=
0||this.Y?Gk(this,2):Gk(this,4),zk(this)):Gk(this,1)}}}catch(D){Gk(this,6),zk(this)}};g.K=Www.prototype;g.K.Tt=function(u,h){var L=this.N[u];L||(L=[],this.N[u]=L);L.push(h);return this};
g.K.addListener=function(u,h){this.Tt(u,h);return this};
g.K.removeListener=function(u,h){var L=this.N[u];L&&g.gV(L,h);(u=this.G[u])&&g.gV(u,h);return this};
g.K.once=function(u,h){var L=this.G[u];L||(L=[],this.G[u]=L);L.push(h);return this};
g.K.d1I=function(u){var h=this.N.data;h&&Fwa(u,h);(h=this.G.data)&&Fwa(u,h);this.G.data=[]};
g.K.Qbg=function(){switch(this.X.getStatus()){case 1:mC(this,"readable");break;case 5:case 6:case 4:case 7:case 3:mC(this,"error");break;case 8:mC(this,"close");break;case 2:mC(this,"end")}};bxe.prototype.serverStreaming=function(u,h,L,Z){var y=this,R=u.substring(0,u.length-Z.name.length);return ELf(function(p){var J=p.xY,O=p.getMetadata(),f=hzn(y,!1);O=Loe(y,O,f,R+J.getName());var D=Zvf(f,J.N,!0);p=J.G(p.pP);f.send(O,"POST",p);return D},this.B).call(this,Z.V(h,L))};Rzj.prototype.create=function(u,h){return jTe(this.G,this.N+"/$rpc/google.internal.waa.v1.Waa/Create",u,h||{},ULD)};var dLu=1,$P=new WeakMap;g.P(dB,g.m);dB.prototype.signal=function(){var u=new np(!1);this.signals.add(u);g.V(this,u);return u};
dB.prototype.zx=function(u){return VM(this,u).zx()};
g.P(np,g.m);g.K=np.prototype;g.K.lB=function(){var u=this,h=dLu++;sk(function(){pYi(u,h)});
return h};
g.K.detach=function(u){var h=this;sk(function(){var L=h.slots.get(u);L&&L.xQ()})};
g.K.value=function(u){return this.promise(!0,u)};
g.K.zx=function(){return this.DD};
g.K.next=function(u){return this.promise(!1,u)};
g.K.promise=function(u,h){var L=this,Z=jNn();sk(function(){if(L.ww())Z.reject(new iq("Signal initially disposed"));else if(h&&h.ww())Z.reject(new iq("Owner initially disposed"));else if(u&&L.OB&&L.w5)Z.resolve(L.DD);else if(L.gE.add(Z),ME(Z.promise,function(){L.gE.delete(Z)}),h){var y=function(){Z.reject(new iq("Owner asynchronously disposed"))};
ME(Z.promise,function(){var R=$P.get(h);R&&g.gV(R,y)});
Ovn(h,y)}});
return Z.promise};
g.K.Ni=function(){var u=this;g.m.prototype.Ni.call(this);sk(function(){for(var h=g.C(u.slots.values()),L=h.next();!L.done;L=h.next())L=L.value.xQ,L();u.slots.clear();h=g.C(u.gE);for(L=h.next();!L.done;L=h.next())L.value.reject(new iq("Signal asynchronously disposed"));u.gE.clear()})};
var e6=[],as=!1;g.P(tj,g.m);tj.prototype.start=function(){var u=this;if(this.ww())throw new FH("Cannot start a disposed timer.");if(!this.C){this.B=0;if(this.V){var h=Date.now();this.handle=setInterval(function(){u.B=u.milliseconds>0?Math.trunc((Date.now()-h)/u.milliseconds):u.B+1;var L;(L=u.N)==null||L.resolve();u.N=void 0;if(u.X){var Z;(Z=u.G)!=null&&wB(VM(Z,u.X),u)}u.XD.mS(u)},this.milliseconds)}else this.handle=setTimeout(function(){u.state=3;
u.handle=void 0;u.B=1;var L;(L=u.N)==null||L.resolve();u.N=void 0;if(u.X){var Z;(Z=u.G)!=null&&wB(VM(Z,u.X),u)}u.XD.mS(u)},this.milliseconds);
this.state=1}};
tj.prototype.cancel=function(){if(this.C){this.clear();this.state=2;var u;(u=this.N)==null||u.reject(new WB);var h;(h=this.XD.BQ)==null||h.call(this);if(this.T){var L;(L=this.G)!=null&&wB(VM(L,this.T))}}};
tj.prototype.Ni=function(){this.clear();var u;(u=this.N)==null||u.reject(new FH);this.state=4;g.m.prototype.Ni.call(this)};
tj.prototype.clear=function(){this.V?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0};
g.Js.Object.defineProperties(tj.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return this.state===1}},
isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}},
isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}},
tick:{configurable:!0,enumerable:!0,get:function(){return this.B}},
S:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.N!=null||(this.N=new g.Ab),this.N.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new WB("Timer has been cancelled."));case 4:return Promise.reject(new FH("Timer has been disposed."));default:yx(this.state)}}},
mS:{configurable:!0,enumerable:!0,get:function(){if(this.ww())throw new FH("Cannot attach a signal to a disposed timer.");this.X||(this.G!=null||(this.G=new dB(this)),this.X=this.G.signal());return this.X}},
BQ:{configurable:!0,enumerable:!0,get:function(){if(this.ww())throw new FH("Cannot attach a signal to a disposed timer.");this.T||(this.G!=null||(this.G=new dB(this)),this.T=this.G.signal());return this.T}}});
g.P(WB,Cq);g.P(FH,Cq);g.P(bC,sH);g.K=bC.prototype;g.K.isReady=function(){return!!this.G};
g.K.ready=function(){var u=this;return g.G(function(h){return g.N(h,u.X.promise,0)})};
g.K.zR=function(u){return c4a(this,this.logger.OD("c",u===void 0?1:u,this.b_.zR(Ci().G,null)),new yK(10,"JVZ:Timeout"))};
g.K.prefetch=function(){this.state===1&&(this.AY=this.zR())};
g.K.start=function(){if(this.state===1){this.state=2;var u=new Li(this.logger,"r");this.ready().finally(function(){return void u.done()});
A41(this)}};
g.K.Fr=function(u){xEj(this,u);return w9(this,DE1(u),!1)};
g.K.vF=function(u){xEj(this,u);return w9(this,DE1(u),!0)};var ivw={NONE:0,e0H:1},ukf={RE:0,nDA:1,RLI:2,NNg:3},HG={i4:"a",fzH:"d",VIDEO:"v"};kP.prototype.isVisible=function(){return this.rL?this.LW>=.3:this.LW>=.5};var Kh={oBw:0,O7I:1},kql={NONE:0,NDy:1,cSI:2};gB.prototype.getValue=function(){return this.N};
g.P(ud,gB);ud.prototype.X=function(u){this.N===null&&g.vM(this.B,u)&&(this.N=u)};
g.P(jY,gB);jY.prototype.X=function(u){this.N===null&&typeof u==="number"&&(this.N=u)};
g.P(hA,gB);hA.prototype.X=function(u){this.N===null&&typeof u==="string"&&(this.N=u)};Lh.prototype.disable=function(){this.N=!1};
Lh.prototype.enable=function(){this.N=!0};
Lh.prototype.isEnabled=function(){return this.N};
Lh.prototype.reset=function(){this.G={};this.N=!0;this.X={}};var Uz=document,Da=window;var hkb=!g.cx&&!s8();JA.prototype.now=function(){return 0};
JA.prototype.N=function(){return 0};
JA.prototype.X=function(){return 0};
JA.prototype.G=function(){return 0};g.P(fh,JA);fh.prototype.now=function(){return Oq()&&Da.performance.now?Da.performance.now():JA.prototype.now.call(this)};
fh.prototype.N=function(){return Oq()&&Da.performance.memory?Da.performance.memory.totalJSHeapSize||0:JA.prototype.N.call(this)};
fh.prototype.X=function(){return Oq()&&Da.performance.memory?Da.performance.memory.usedJSHeapSize||0:JA.prototype.X.call(this)};
fh.prototype.G=function(){return Oq()&&Da.performance.memory?Da.performance.memory.jsHeapSizeLimit||0:JA.prototype.G.call(this)};var Sre=fv(function(){var u=!1;try{var h=Object.defineProperty({},"passive",{get:function(){u=!0}});
g.Vn.addEventListener("test",null,h)}catch(L){}return u});XYf.prototype.isVisible=function(){return AA(Uz)===1};var qrj={O0B:"allow-forms",FpB:"allow-modals",vWI:"allow-orientation-lock",CWB:"allow-pointer-lock",w7w:"allow-popups",T2w:"allow-popups-to-escape-sandbox",y3w:"allow-presentation",c3B:"allow-same-origin",a7I:"allow-scripts",b0a:"allow-top-navigation",PWI:"allow-top-navigation-by-user-activation"},NuR=fv(function(){return Tuw()});var r4b=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");id.prototype.VQ=function(u,h,L){u=u+"//"+h+L;var Z=dEb(this)-L.length;if(Z<0)return"";this.G.sort(function(f,D){return f-D});
L=null;h="";for(var y=0;y<this.G.length;y++)for(var R=this.G[y],p=this.N[R],J=0;J<p.length;J++){if(!Z){L=L==null?R:L;break}var O=mEj(p[J],this.X,",$");if(O){O=h+O;if(Z>=O.length){Z-=O.length;u+=O;h=this.X;break}L=L==null?R:L}}Z="";L!=null&&(Z=""+h+"trn="+L);return u+Z};Y4.prototype.setInterval=function(u,h){return Da.setInterval(u,h)};
Y4.prototype.clearInterval=function(u){Da.clearInterval(u)};
Y4.prototype.setTimeout=function(u,h){return Da.setTimeout(u,h)};
Y4.prototype.clearTimeout=function(u){Da.clearTimeout(u)};g.P(NR,zG);NR.prototype.G=pvL([0,jR1,ZVu,-2,pi1]);var gQj={iYX:1,xE:2,nqd:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};jj1.prototype.Ux=function(u){if(typeof u==="string"&&u.length!=0){var h=this.Ok;if(h.N){u=u.split("&");for(var L=u.length-1;L>=0;L--){var Z=u[L].split("="),y=decodeURIComponent(Z[0]);Z.length>1?(Z=decodeURIComponent(Z[1]),Z=/^[0-9]+$/g.exec(Z)?parseInt(Z,10):Z):Z=1;(y=h.G[y])&&y.X(Z)}}}};var py=null;var zh=g.Vn.performance,Va3=!!(zh&&zh.mark&&zh.measure&&zh.clearMarks),rH=fv(function(){var u;if(u=Va3){var h=h===void 0?window:h;if(py===null){py="";try{u="";try{u=h.top.location.hash}catch(Z){u=h.location.hash}if(u){var L=u.match(/\bdeid=([\d,]+)/);py=L?L[1]:""}}catch(Z){}}h=py;u=!!h.indexOf&&h.indexOf("1337")>=0}return u});
BG.prototype.disable=function(){this.G=!1;this.events!==this.N.google_js_reporting_queue&&(rH()&&g.A8(this.events,plL),this.events.length=0)};
BG.prototype.start=function(u,h){if(!this.G)return null;var L=ybj()||Zi1();u=new RZf(u,h,L);h="goog_"+u.label+"_"+u.uniqueId+"_start";zh&&rH()&&zh.mark(h);return u};
BG.prototype.end=function(u){if(this.G&&typeof u.value==="number"){var h=ybj()||Zi1();u.duration=h-u.value;h="goog_"+u.label+"_"+u.uniqueId+"_end";zh&&rH()&&zh.mark(h);!this.G||this.events.length>2048||this.events.push(u)}};K3a.prototype.VP=function(u,h,L,Z,y){y=y||this.l5;try{var R=new id;R.G.push(1);R.N[1]=QZ("context",u);h.error&&h.meta&&h.id||(h=new nh(sq(h)));if(h.msg){var p=h.msg.substring(0,512);R.G.push(2);R.N[2]=QZ("msg",p)}var J=h.meta||{};if(this.Xn)try{this.Xn(J)}catch(A){}if(Z)try{Z(J)}catch(A){}Z=[J];R.G.push(3);R.N[3]=Z;var O=zzs();if(O.N){var f=O.N.url||"";R.G.push(4);R.N[4]=QZ("top",f)}var D={url:O.G.url||""};if(O.G.url){var c=O.G.url.match(Ur);var I=oT(c[1],null,c[3],c[4])}else I="";f=[D,{url:I}];R.G.push(5);
R.N[5]=f;hZn(this.G,y,R,L)}catch(A){try{hZn(this.G,y,{context:"ecmserr",rctx:u,msg:sq(A),url:O&&O.G.url},L)}catch(x){}}return this.qb};
g.P(nh,L31);var dH,VZ,mB=new BG;dH=new function(){var u="https:";Da&&Da.location&&Da.location.protocol==="http:"&&(u="http:");this.N=u;this.G=.01};
VZ=new K3a;Da&&Da.document&&(Da.document.readyState=="complete"?Oi1():mB.G&&IQ(Da,"load",function(){Oi1()}));var cbi=Date.now(),Fx=-1,tA=-1,NBf,bd=-1,WG=!1;g.K=Eq.prototype;g.K.getHeight=function(){return this.bottom-this.top};
g.K.clone=function(){return new Eq(this.top,this.right,this.bottom,this.left)};
g.K.contains=function(u){return this&&u?u instanceof Eq?u.left>=this.left&&u.right<=this.right&&u.top>=this.top&&u.bottom<=this.bottom:u.x>=this.left&&u.x<=this.right&&u.y>=this.top&&u.y<=this.bottom:!1};
g.K.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.K.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.K.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.K.scale=function(u,h){h=typeof h==="number"?h:u;this.left*=u;this.right*=u;this.top*=h;this.bottom*=h;return this};jr.prototype.ys=function(u,h){return!!u&&(!(h===void 0?0:h)||this.volume==u.volume)&&this.X==u.X&&gH(this.G,u.G)&&!0};hB.prototype.lP=function(){return this.V};
hB.prototype.ys=function(u,h){return this.B.ys(u.B,h===void 0?!1:h)&&this.V==u.V&&gH(this.X,u.X)&&gH(this.C,u.C)&&this.G==u.G&&this.T==u.T&&this.N==u.N&&this.S==u.S};var nb3={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},vZ={ZS:"start",ME:"firstquartile",VY:"midpoint",Jk:"thirdquartile",COMPLETE:"complete",ERROR:"error",j$:"metric",PAUSE:"pause",iR:"resume",HO:"skip",QY:"viewable_impression",WO:"mute",fb:"unmute",Xx:"fullscreen",d8:"exitfullscreen",YZ:"bufferstart",hA:"bufferfinish",zH:"fully_viewable_audible_half_duration_impression",kO:"measurable_impression",WB:"abandon",NE:"engagedview",DC:"impression",GH:"creativeview",oR:"loaded",
ZYH:"progress",CLOSE:"close",azH:"collapse",cCy:"overlay_resize",aaa:"overlay_unmeasurable_impression",bYw:"overlay_unviewable_impression",EqB:"overlay_viewable_immediate_impression",P_B:"overlay_viewable_end_of_session_impression",IE:"custom_metric_viewable",HB:"audio_audible",qj:"audio_measurable",SC:"audio_impression"},sQl="start firstquartile midpoint thirdquartile resume loaded".split(" "),wGw=["start","firstquartile","midpoint","thirdquartile"],GkL=["abandon"],$Z={UNKNOWN:-1,ZS:0,ME:1,VY:2,
Jk:3,COMPLETE:4,j$:5,PAUSE:6,iR:7,HO:8,QY:9,WO:10,fb:11,Xx:12,d8:13,zH:14,kO:15,WB:16,NE:17,DC:18,GH:19,oR:20,IE:21,YZ:22,hA:23,SC:27,qj:28,HB:29};var Abe={MZI:"addEventListener",b7i:"getMaxSize",Pwa:"getScreenSize",Eoi:"getState",ped:"getVersion",eLB:"removeEventListener",EV7:"isViewable"};g.K=g.ZE.prototype;g.K.clone=function(){return new g.ZE(this.left,this.top,this.width,this.height)};
g.K.contains=function(u){return u instanceof g.O6?u.x>=this.left&&u.x<=this.left+this.width&&u.y>=this.top&&u.y<=this.top+this.height:this.left<=u.left&&this.left+this.width>=u.left+u.width&&this.top<=u.top&&this.top+this.height>=u.top+u.height};
g.K.getSize=function(){return new g.II(this.width,this.height)};
g.K.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.K.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.K.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.K.scale=function(u,h){h=typeof h==="number"?h:u;this.left*=u;this.width*=u;this.top*=h;this.height*=h;return this};var MZw={};YHL.prototype.update=function(u){u&&u.document&&(this.V=Lf(!1,u,this.isMobileDevice),this.G=Lf(!0,u,this.isMobileDevice),N9R(this,u),oNL(this,u))};H7.prototype.cancel=function(){oQ().clearTimeout(this.G);this.G=null};
H7.prototype.schedule=function(){var u=this,h=oQ(),L=Gh().G.G;this.G=h.setTimeout(Uq(L,eY(143,function(){u.N++;u.X.sample()})),Ifa())};g.K=rK.prototype;g.K.v4=function(){return!1};
g.K.initialize=function(){return this.isInitialized=!0};
g.K.CL=function(){return this.G.DI};
g.K.m4=function(){return this.G.AB};
g.K.NT=function(u,h){if(!this.AB||(h===void 0?0:h))this.AB=!0,this.DI=u,this.S=0,this.G!=this||zm(this)};
g.K.getName=function(){return this.G.aH};
g.K.h1=function(){return this.G.Ly()};
g.K.Ly=function(){return{}};
g.K.Iv=function(){return this.G.S};
g.K.jc=function(){var u=N2();u.G=Lf(!0,this.X,u.isMobileDevice)};
g.K.VS=function(){oNL(N2(),this.X)};
g.K.ID=function(){return this.B.G};
g.K.sample=function(){};
g.K.isActive=function(){return this.G.C};
g.K.Vp=function(u){var h=this.G;this.G=u.Iv()>=this.S?u:this;h!==this.G?(this.C=this.G.C,zm(this)):this.C!==this.G.C&&(this.C=this.G.C,zm(this))};
g.K.AF=function(u){if(u.N===this.G){var h=!this.B.ys(u,this.Y);this.B=u;h&&Hij(this)}};
g.K.A9=function(){return this.Y};
g.K.dispose=function(){this.gw=!0};
g.K.ww=function(){return this.gw};g.K=mS.prototype;g.K.observe=function(){return!0};
g.K.unobserve=function(){};
g.K.Di=function(u){this.T=u};
g.K.dispose=function(){if(!this.ww()){var u=this.N;g.gV(u.T,this);u.Y&&this.A9()&&Gui(u);this.unobserve();this.XB=!0}};
g.K.ww=function(){return this.XB};
g.K.h1=function(){return this.N.h1()};
g.K.Iv=function(){return this.N.Iv()};
g.K.CL=function(){return this.N.CL()};
g.K.m4=function(){return this.N.m4()};
g.K.Vp=function(){};
g.K.AF=function(){this.au()};
g.K.A9=function(){return this.gw};g.K=dK.prototype;g.K.Iv=function(){return this.G.Iv()};
g.K.CL=function(){return this.G.CL()};
g.K.m4=function(){return this.G.m4()};
g.K.create=function(u,h,L){var Z=null;this.G&&(Z=this.cG(u,h,L),B7(this.G,Z));return Z};
g.K.Un=function(){return this.CM()};
g.K.CM=function(){return!1};
g.K.init=function(u){return this.G.initialize()?(B7(this.G,this),this.B=u,!0):!1};
g.K.Vp=function(u){u.Iv()==0&&this.B(u.CL(),this)};
g.K.AF=function(){};
g.K.A9=function(){return!1};
g.K.dispose=function(){this.T=!0};
g.K.ww=function(){return this.T};
g.K.h1=function(){return{}};Vz.prototype.add=function(u,h,L){++this.X;u=new B9Y(u,h,L);this.G.push(new B9Y(u.N,u.G,u.X+this.X/4096));this.N=!0;return this};nNb.prototype.toString=function(){var u="//pagead2.googlesyndication.com//pagead/gen_204",h=sz(this.G);h.length>0&&(u+="?"+h);return u};wK.prototype.update=function(u,h,L){u&&(this.G+=h,this.N+=h,this.B+=h,this.X=Math.max(this.X,this.B));if(L===void 0?!u:L)this.B=0};var $qa=[1,.75,.5,.3,0];er.prototype.update=function(u,h,L,Z,y,R){R=R===void 0?!0:R;h=y?Math.min(u,h):h;for(y=0;y<this.N.length;y++){var p=this.N[y],J=h>0&&h>=p;p=!(u>0&&u>=p)||L;this.G[y].update(R&&J,Z,!R||p)}};bL.prototype.update=function(u,h,L,Z){this.V=this.V!=-1?Math.min(this.V,h.LW):h.LW;this.RH=Math.max(this.RH,h.LW);this.XB=this.XB!=-1?Math.min(this.XB,h.I5):h.I5;this.DI=Math.max(this.DI,h.I5);this.xl.update(h.I5,L.I5,h.G,u,Z);this.vX+=u;h.LW===0&&(this.aH+=u);this.N.update(h.LW,L.LW,h.G,u,Z);L=Z||L.rL!=h.rL?L.isVisible()&&h.isVisible():L.isVisible();h=!h.isVisible()||h.G;this.VA.update(L,u,h)};
bL.prototype.BF=function(){return this.VA.X>=this.fI};if(Uz&&Uz.URL){var sRb=Uz.URL,wiD;if(wiD=!!sRb){var elK;a:{if(sRb){var awr=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var Ky=awr.exec(decodeURIComponent(sRb));if(Ky){elK=Ky[1]&&Ky[1].length>1?Ky[1].substring(1):"true";break a}}catch(u){}}elK=""}wiD=elK.length>0}VZ.qb=!wiD};var $Lc=new Eq(0,0,0,0);var uHl=new Eq(0,0,0,0);g.P(jm,g.m);g.K=jm.prototype;
g.K.Ni=function(){if(this.wZ.G){if(this.o3.h$){var u=this.wZ.G;u.removeEventListener&&u.removeEventListener("mouseover",this.o3.h$,cG());this.o3.h$=null}this.o3.t$&&(u=this.wZ.G,u.removeEventListener&&u.removeEventListener("mouseout",this.o3.t$,cG()),this.o3.t$=null)}this.yE&&this.yE.dispose();this.Hh&&this.Hh.dispose();delete this.FO;delete this.UY;delete this.u4;delete this.wZ.TO;delete this.wZ.G;delete this.o3;delete this.yE;delete this.Hh;delete this.Ok;g.m.prototype.Ni.call(this)};
g.K.mu=function(){return this.Hh?this.Hh.G:this.position};
g.K.Ux=function(u){Gh().Ux(u)};
g.K.A9=function(){return!1};
g.K.Xs=function(){return new bL};
g.K.VK=function(){return this.FO};
g.K.qk=function(u){return ZpV(this,u,1E4)};
g.K.kI=function(u,h,L,Z,y,R,p){this.M2||(this.Ie&&(u=this.yT(u,L,y,p),Z=Z&&this.C0.LW>=(this.rL()?.3:.5),this.yB(R,u,Z),this.Uw=h,u.LW>0&&-1===this.jW&&(this.jW=h),this.HA==-1&&this.BF()&&(this.HA=h),this.EY==-2&&(this.EY=gK(this.mu())?u.LW:-1),this.C0=u),this.UY(this))};
g.K.yB=function(u,h,L){this.VK().update(u,h,this.C0,L)};
g.K.Bt=function(){return new kP};
g.K.yT=function(u,h,L,Z){L=this.Bt();L.G=h;h=oQ().N;h=AA(Uz)===0?-1:h.isVisible()?0:1;L.N=h;L.LW=this.JK(u);L.rL=this.rL();L.I5=Z;return L};
g.K.JK=function(u){return this.opacity===0&&RQ(this.Ok,"opac")===1?0:u};
g.K.rL=function(){return!1};
g.K.yw=function(){return this.LyB||this.SgI};
g.K.tR=function(){$4()};
g.K.o_=function(){$4()};
g.K.Ow=function(){return 0};
g.K.BF=function(){return this.FO.BF()};
g.K.n2=function(){var u=this.Ie;u=(this.hasCompleted||this.ww())&&!u;var h=Gh().N!==2||this.PSI;return this.M2||h&&u?2:this.BF()?4:3};
g.K.Ys=function(){return 0};g.LN.prototype.next=function(){return g.JU};
g.JU={done:!0,value:void 0};g.LN.prototype.Da=function(){return this};g.P(OpL,kP);var Op=Dfe([void 0,1,2,3,4,8,16]),fy=Dfe([void 0,4,8,16]),tac={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:pN("p0",fy),p1:pN("p1",fy),p2:pN("p2",fy),p3:pN("p3",fy),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Ru("mtos1",[0,2,4],!1,fy),mtos2:Ru("mtos2",[0,2,4],!1,fy),mtos3:Ru("mtos3",[0,2,4],!1,fy),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:pN("a0",fy),a1:pN("a1",fy),a2:pN("a2",fy),a3:pN("a3",fy),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:pN("c0",fy),c1:pN("c1",fy),c2:pN("c2",fy),c3:pN("c3",fy),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:pN("qmtos",Op),qnc:pN("qnc",Op),qmv:pN("qmv",Op),qnv:pN("qnv",Op),
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:pN("ss0",fy),ss1:pN("ss1",fy),ss2:pN("ss2",fy),ss3:pN("ss3",fy),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"},WeR=Object.assign({},tac,{avid:J4("audio"),avas:"avas",vs:"vs"}),Fe3={atos:"atos",avt:Ru("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(u,h){return function(L){return L[u]===void 0&&h!==void 0?h:L[u]}}("ss",0),
t:"t"};fN.prototype.getValue=function(){return this.N};
fN.prototype.update=function(u,h){u>=32||(this.G&1<<u&&!h?this.N&=~(1<<u):this.G&1<<u||!h||(this.N|=1<<u),this.G|=1<<u)};g.P(DV,bL);
DV.prototype.update=function(u,h,L,Z){if(!h.paused){bL.prototype.update.call(this,u,h,L,Z);var y=yY(h)&&yY(L),R=(Z?Math.min(h.LW,L.LW):L.LW)>=.5;Xh(h.volume)&&(this.B=this.B!=-1?Math.min(this.B,h.volume):h.volume,this.C=Math.max(this.C,h.volume));R&&(this.gw+=u,this.Y+=y?u:0);this.G.update(h.LW,L.LW,h.G,u,Z,y);this.X.update(!0,u);this.T.update(y,u);this.AB.update(L.fullscreen,u);this.e7.update(y&&!R,u);u=Math.floor(h.mediaTime/1E3);this.T7.update(u,h.isVisible());this.Sd.update(u,h.LW>=1);this.ZI.update(u,
yY(h))}};CCl.prototype.N=function(u){this.X||(this.G(u)?(u=o4e(this.Y,this.B,u),this.T|=u,u=u==0):u=!1,this.X=u)};g.P(Iu,CCl);Iu.prototype.G=function(){return!0};
Iu.prototype.C=function(){return!1};
Iu.prototype.getId=function(){var u=this,h=qo(vZ,function(L){return L==u.B});
return $Z[h].toString()};
Iu.prototype.toString=function(){var u="";this.C()&&(u+="c");this.X&&(u+="s");this.T>0&&(u+=":"+this.T);return this.getId()+u};g.P(AY,Iu);AY.prototype.N=function(u,h){h=h===void 0?null:h;h!=null&&this.V.push(h);Iu.prototype.N.call(this,u)};g.P(xZ,M6a);xZ.prototype.N=function(){return null};
xZ.prototype.X=function(){return[]};g.P(PZ,mS);g.K=PZ.prototype;g.K.aN=function(){if(this.element){var u=this.element,h=this.N.G.X;try{try{var L=vNV(u.getBoundingClientRect())}catch(f){L=new Eq(0,0,0,0)}var Z=L.right-L.left,y=L.bottom-L.top,R=lfb(u,h),p=R.x,J=R.y;var O=new Eq(Math.round(J),Math.round(p+Z),Math.round(J+y),Math.round(p))}catch(f){O=$Lc.clone()}this.X=O;this.G=rbL(this,this.X)}};
g.K.F7=function(){this.C=this.N.B.G};
g.K.GT=function(u){var h=RQ(this.Ok,"od")==1;return gNn(u,this.C,this.element,h)};
g.K.CC=function(){this.timestamp=$4()};
g.K.au=function(){this.CC();this.aN();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var u=this.element;var h=new g.II(u.videoWidth,u.videoHeight);u=this.G;var L=k4(u),Z=u.getHeight(),y=h.width;h=h.height;y<=0||h<=0||L<=0||Z<=0||(y/=h,h=L/Z,u=u.clone(),y>h?(L/=y,Z=(Z-L)/2,Z>0&&(Z=u.top+Z,u.top=Math.round(Z),u.bottom=Math.round(Z+L))):(Z*=y,L=Math.round((L-Z)/2),L>0&&(L=u.left+L,u.left=Math.round(L),u.right=Math.round(L+Z))));this.G=u}this.F7();
u=this.G;L=this.C;u=u.left<=L.right&&L.left<=u.right&&u.top<=L.bottom&&L.top<=u.bottom?new Eq(Math.max(u.top,L.top),Math.min(u.right,L.right),Math.min(u.bottom,L.bottom),Math.max(u.left,L.left)):new Eq(0,0,0,0);L=u.top>=u.bottom||u.left>=u.right?new Eq(0,0,0,0):u;u=this.N.B;h=y=Z=0;if((this.G.bottom-this.G.top)*(this.G.right-this.G.left)>0)if(this.GT(L))L=new Eq(0,0,0,0);else{Z=N2().B;h=new Eq(0,Z.height,Z.width,0);var R;Z=uT(L,(R=this.T)!=null?R:this.G);y=uT(L,N2().G);h=uT(L,h)}R=L.top>=L.bottom||
L.left>=L.right?new Eq(0,0,0,0):uL(L,-this.G.left,-this.G.top);Gm()||(y=Z=0);this.Y=new hB(u,this.element,this.G,R,Z,y,this.timestamp,h)};
g.K.getName=function(){return this.N.getName()};var bV7=new Eq(0,0,0,0);g.P(CN,PZ);g.K=CN.prototype;g.K.observe=function(){this.B();return!0};
g.K.AF=function(){PZ.prototype.au.call(this)};
g.K.CC=function(){};
g.K.aN=function(){};
g.K.au=function(){this.B();PZ.prototype.au.call(this)};
g.K.Vp=function(u){u=u.isActive();u!==this.S&&(u?this.B():(N2().G=new Eq(0,0,0,0),this.G=new Eq(0,0,0,0),this.C=new Eq(0,0,0,0),this.timestamp=-1));this.S=u};var Do={},oPn=(Do.firstquartile=0,Do.midpoint=1,Do.thirdquartile=2,Do.complete=3,Do);g.P(iT,jm);g.K=iT.prototype;g.K.A9=function(){return!0};
g.K.Ah=function(){return this.qG==2};
g.K.qk=function(u){return ZpV(this,u,Math.max(1E4,this.X/3))};
g.K.kI=function(u,h,L,Z,y,R,p){var J=this,O=this.V(this)||{};g.Gc(O,y);this.X=O.duration||this.X;this.Y=O.isVpaid||this.Y;this.aH=O.isYouTube||this.aH;oQ();this.xl=!1;y=Qse(this,h);ipn(this)===1&&(R=y);jm.prototype.kI.call(this,u,h,L,Z,O,R,p);this.Dm&&this.Dm.X&&g.A8(this.C,function(f){f.N(J)})};
g.K.yB=function(u,h,L){jm.prototype.yB.call(this,u,h,L);Sm(this).update(u,h,this.C0,L);this.fI=yY(this.C0)&&yY(h);this.DI==-1&&this.Sd&&(this.DI=this.VK().X.G);this.mX.X=0;u=this.BF();h.isVisible()&&OR(this.mX,"vs");u&&OR(this.mX,"vw");Xh(h.volume)&&OR(this.mX,"am");yY(h)?OR(this.mX,"a"):OR(this.mX,"mut");this.fL&&OR(this.mX,"f");h.N!=-1&&(OR(this.mX,"bm"),h.N==1&&(OR(this.mX,"b"),yY(h)&&OR(this.mX,"umutb")));yY(h)&&h.isVisible()&&OR(this.mX,"avs");this.fI&&u&&OR(this.mX,"avw");h.LW>0&&OR(this.mX,
"pv");X0(this,this.VK().X.G,!0)&&OR(this.mX,"gdr");W7(this.VK().N,1)>=2E3&&OR(this.mX,"pmx");this.xl&&OR(this.mX,"tvoff")};
g.K.Xs=function(){return new DV};
g.K.VK=function(){return this.FO};
g.K.Bt=function(){return new OpL};
g.K.yT=function(u,h,L,Z){u=jm.prototype.yT.call(this,u,h,L,Z===void 0?-1:Z);u.fullscreen=this.fL;u.paused=this.Ah();u.volume=L.volume;Xh(u.volume)||(this.vJ++,h=this.C0,Xh(h.volume)&&(u.volume=h.volume));L=L.currentTime;u.mediaTime=L!==void 0&&L>=0?L:-1;return u};
g.K.JK=function(u){return N2(),this.fL?1:jm.prototype.JK.call(this,u)};
g.K.Ow=function(){return 1};
g.K.getDuration=function(){return this.X};
g.K.n2=function(){return this.M2?2:SkV(this)?5:this.BF()?4:3};
g.K.Ys=function(){return this.e7?this.VK().T.X>=2E3?4:3:2};
g.K.Di=function(u){this.Hh&&this.Hh.Di(u)};var EbD=g.u3();nPa.prototype.reset=function(){this.G=[];this.N=[]};
var NB=Th(nPa);g.P(HZ,dK);g.K=HZ.prototype;g.K.getName=function(){return(this.N?this.N:this.G).getName()};
g.K.h1=function(){return(this.N?this.N:this.G).h1()};
g.K.Iv=function(){return(this.N?this.N:this.G).Iv()};
g.K.init=function(u){var h=!1;(0,g.A8)(this.X,function(L){L.initialize()&&(h=!0)});
h&&(this.B=u,B7(this.G,this));return h};
g.K.dispose=function(){(0,g.A8)(this.X,function(u){u.dispose()});
dK.prototype.dispose.call(this)};
g.K.Un=function(){return oS(this.X,function(u){return u.v4()})};
g.K.CM=function(){return oS(this.X,function(u){return u.v4()})};
g.K.cG=function(u,h,L){return new PZ(u,this.G,h,L)};
g.K.AF=function(u){this.N=u.N};var bpl={threshold:[0,.3,.5,.75,1]};g.P(ry,PZ);g.K=ry.prototype;g.K.observe=function(){var u=this;this.RH||(this.RH=$4());if(DqR(298,function(){return EPR(u)}))return!0;
this.N.NT("msf");return!1};
g.K.unobserve=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.S?(this.S.unobserve(this.element),this.S=null):this.V&&(this.V.disconnect(),this.V=null)}catch(u){}};
g.K.au=function(){var u=BZ(this);u.length>0&&zH(this,u);PZ.prototype.au.call(this)};
g.K.aN=function(){};
g.K.GT=function(){return!1};
g.K.F7=function(){};
g.K.h1=function(){var u={};return Object.assign(this.N.h1(),(u.niot_obs=this.RH,u.niot_cbk=this.AB,u))};
g.K.getName=function(){return"nio"};g.P(mW,dK);mW.prototype.getName=function(){return"nio"};
mW.prototype.CM=function(){return!N2().N&&this.G.G.X.IntersectionObserver!=null};
mW.prototype.cG=function(u,h,L){return new ry(u,this.G,h,L)};g.P(dy,rK);dy.prototype.ID=function(){return N2().G};
dy.prototype.v4=function(){var u=gP1();this.S!==u&&(this.G!=this&&u>this.G.S&&(this.G=this,zm(this)),this.S=u);return u==2};VY.prototype.sample=function(){wy(this,UR(),!1)};
VY.prototype.B=function(){var u=Gm(),h=$4();u?(WG||(Fx=h,g.A8(NB.G,function(L){var Z=L.VK();Z.jd=cZ(Z,h,L.qG!=1)})),WG=!0):(this.V=ZhV(this,h),WG=!1,NBf=h,g.A8(NB.G,function(L){L.Ie&&(L.VK().S=h)}));
wy(this,UR(),!u)};
var nN=Th(VY);var Rys=null,D8="",f5=!1;var JAj=KBl().eK,au=KBl().GB;var DRi={Fea:"visible",xTw:"audible",H3H:"time",Sdw:"timetype"},cAa={visible:function(u){return/^(100|[0-9]{1,2})$/.test(u)},
audible:function(u){return u=="0"||u=="1"},
timetype:function(u){return u=="mtos"||u=="tos"},
time:function(u){return/^(100|[0-9]{1,2})%$/.test(u)||/^([0-9])+ms$/.test(u)}};
fas.prototype.setTime=function(u,h,L){h=="ms"?(this.X=u,this.B=-1):(this.X=-1,this.B=u);this.T=L===void 0?"tos":L;return this};g.P(F0,Iu);F0.prototype.getId=function(){return this.V};
F0.prototype.C=function(){return!0};
F0.prototype.G=function(u){var h=u.VK(),L=u.getDuration();return oS(this.S,function(Z){if(Z.G!=void 0)var y=AAe(Z,h);else b:{switch(Z.T){case "mtos":y=Z.N?h.T.X:h.X.G;break b;case "tos":y=Z.N?h.T.G:h.X.G;break b}y=0}y==0?Z=!1:(Z=Z.X!=-1?Z.X:L!==void 0&&L>0?Z.B*L:-1,Z=Z!=-1&&y>=Z);return Z})};g.P(bT,IGj);bT.prototype.G=function(u){var h=new cj1;h.G=JY(u,tac);h.N=JY(u,Fe3);return h};g.P(ER,Iu);ER.prototype.G=function(u){return SkV(u)};g.P(kZ,M6a);g.P(gy,Iu);gy.prototype.G=function(u){return u.VK().BF()};g.P(u8,AY);u8.prototype.G=function(u){var h=g.E8(this.V,RQ(Gh().Ok,"ovms"));return!u.M2&&(u.qG!=0||h)};g.P(jB,kZ);jB.prototype.N=function(){return new u8(this.G)};
jB.prototype.X=function(){return[new gy("viewable_impression",this.G),new ER(this.G)]};g.P(hK,CN);hK.prototype.B=function(){var u=g.wn("ima.admob.getViewability"),h=RQ(this.Ok,"queryid");typeof u==="function"&&h&&u(h)};
hK.prototype.getName=function(){return"gsv"};g.P(L5,dK);L5.prototype.getName=function(){return"gsv"};
L5.prototype.CM=function(){var u=N2();Gh();return u.N&&!1};
L5.prototype.cG=function(u,h,L){return new hK(this.G,h,L)};g.P(Z8,CN);Z8.prototype.B=function(){var u=this,h=g.wn("ima.bridge.getNativeViewability"),L=RQ(this.Ok,"queryid");typeof h==="function"&&L&&h(L,function(Z){g.Tc(Z)&&u.V++;var y=Z.opt_nativeViewVisibleBounds||{},R=Z.opt_nativeViewHidden;u.G=qHw(Z.opt_nativeViewBounds||{});var p=u.N.B;p.G=R?bV7.clone():qHw(y);u.timestamp=Z.opt_nativeTime||-1;N2().G=p.G;Z=Z.opt_nativeVolume;Z!==void 0&&(p.volume=Z)})};
Z8.prototype.getName=function(){return"nis"};g.P(y0,dK);y0.prototype.getName=function(){return"nis"};
y0.prototype.CM=function(){var u=N2();Gh();return u.N&&!1};
y0.prototype.cG=function(u,h,L){return new Z8(this.G,h,L)};g.P(Rg,rK);g.K=Rg.prototype;g.K.v4=function(){return this.N.dH!=null};
g.K.Ly=function(){var u={};this.T7&&(u.mraid=this.T7);this.XB&&(u.mlc=1);u.mtop=this.N.xOB;this.V&&(u.mse=this.V);this.vX&&(u.msc=1);u.mcp=this.N.compatibility;return u};
g.K.Qn=function(u){var h=g.NL.apply(1,arguments);try{return this.N.dH[u].apply(this.N.dH,h)}catch(L){aQ(538,L,.01,function(Z){Z.method=u})}};
g.K.initialize=function(){var u=this;if(this.isInitialized)return!this.m4();this.isInitialized=!0;if(this.N.compatibility===2)return this.V="ng",this.NT("w"),!1;if(this.N.compatibility===1)return this.V="mm",this.NT("w"),!1;N2().S=!0;this.X.document.readyState&&this.X.document.readyState=="complete"?MYl(this):kX(this.X,"load",function(){oQ().setTimeout(eY(292,function(){return MYl(u)}),100)},292);
return!0};
g.K.jc=function(){var u=N2(),h=XGa(this,"getMaxSize");u.G=new Eq(0,h.width,h.height,0)};
g.K.VS=function(){N2().B=XGa(this,"getScreenSize")};
g.K.dispose=function(){QQs(this);rK.prototype.dispose.call(this)};var bvn=new function(u,h){this.key=u;this.defaultValue=h===void 0?!1:h;this.valueType="boolean"}("45378663");g.K=K5.prototype;g.K.P1=function(u){hY(u,!1);aGw(u)};
g.K.Fs=function(){};
g.K.kT=function(u,h,L,Z){var y=this;u=new iT(Da,u,L?h:-1,7,this.A5(),this.Zj());u.lX=Z;Cqf(u.Ok);yZ(u.Ok,"queryid",u.lX);u.Ux("");pB1(u,function(){return y.g5.apply(y,g.l(g.NL.apply(0,arguments)))},function(){return y.gII.apply(y,g.l(g.NL.apply(0,arguments)))});
(Z=Th(GH).G)&&LCj(u,Z);this.X&&(u.Di(this.X),this.X=null);u.wZ.TO&&Th(uxR);return u};
g.K.Vp=function(u){switch(u.Iv()){case 0:if(u=Th(GH).G)u=u.G,g.gV(u.T,this),u.Y&&this.A9()&&Gui(u);OM();break;case 2:sR()}};
g.K.AF=function(){};
g.K.A9=function(){return!1};
g.K.gII=function(u,h){u.M2=!0;switch(u.Ow()){case 1:NHR(u,h);break;case 2:this.tW(u)}};
g.K.wXd=function(u){var h=u.V(u);h&&(h=h.volume,u.e7=Xh(h)&&h>0);qkn(u,0);return qB(u,"start",Gm())};
g.K.q4=function(u,h,L){wy(nN,[u],!Gm());return this.F$(u,h,L)};
g.K.F$=function(u,h,L){return qB(u,L,Gm())};
g.K.rBw=function(u){return xK(u,"firstquartile",1)};
g.K.FyB=function(u){u.Sd=!0;return xK(u,"midpoint",2)};
g.K.Twi=function(u){return xK(u,"thirdquartile",3)};
g.K.lI7=function(u){var h=xK(u,"complete",4);QY(u);return h};
g.K.Kyw=function(u){u.qG=3;return qB(u,"error",Gm())};
g.K.j2=function(u,h,L){h=Gm();if(u.Ah()&&!h){var Z=u.VK(),y=$4();Z.S=y}wy(nN,[u],!h);u.Ah()&&(u.qG=1);return qB(u,L,h)};
g.K.Cad=function(u,h){h=this.q4(u,h||{},"skip");QY(u);return h};
g.K.OIA=function(u,h){hY(u,!0);return this.q4(u,h||{},"fullscreen")};
g.K.Dia=function(u,h){hY(u,!1);return this.q4(u,h||{},"exitfullscreen")};
g.K.C6=function(u,h,L){h=u.VK();var Z=$4();h.jd=cZ(h,Z,u.qG!=1);wy(nN,[u],!Gm());u.qG==1&&(u.qG=2);return qB(u,L,Gm())};
g.K.vI7=function(u){wy(nN,[u],!Gm());return u.N()};
g.K.iq=function(u){wy(nN,[u],!Gm());this.a$(u);QY(u);return u.N()};
g.K.g5=function(){};
g.K.tW=function(){};
g.K.a$=function(){};
g.K.Wn=function(){};
g.K.R2=function(){};
g.K.Zj=function(){this.G||(this.G=this.R2());return this.G==null?new xZ:new jB(this.G)};
g.K.A5=function(){return new bT};g.P(Pd,Iu);Pd.prototype.G=function(u){return u.Ys()==4};g.P(C5,AY);C5.prototype.G=function(u){u=u.Ys();return u==3||u==4};g.P(Mg,kZ);Mg.prototype.N=function(){return new C5(this.G)};
Mg.prototype.X=function(){return[new Pd(this.G)]};g.P(i8,IGj);i8.prototype.G=function(u){u&&(u.e===28&&(u=Object.assign({},u,{avas:3})),u.vs===4||u.vs===5)&&(u=Object.assign({},u,{vs:3}));var h=new cj1;h.G=JY(u,WeR);h.N=JY(u,Fe3);return h};rAY.prototype.N=function(){return g.wn(this.G)};g.P(Q0,K5);g.K=Q0.prototype;g.K.Fs=function(u,h){var L=this,Z=Th(GH);if(Z.G!=null)switch(Z.G.getName()){case "nis":var y=dRn(this,u,h);break;case "gsv":y=mRn(this,u,h);break;case "exc":y=VY1(this,u)}y||(h.opt_overlayAdElement?y=void 0:h.opt_adElement&&(y=GhL(this,u,h.opt_adElement,h.opt_osdId)));y&&y.Ow()==1&&(y.V==g.Or&&(y.V=function(R){return L.Wn(R)}),zyw(this,y,h));
return y};
g.K.Wn=function(u){u.N=0;u.gw=0;if(u.B=="h"||u.B=="n"){Gh();u.ZI&&(Gh(),Ig(this)!="h"&&Ig(this));var h=g.wn("ima.common.getVideoMetadata");if(typeof h==="function")try{var L=h(u.lX)}catch(y){u.N|=4}else u.N|=2}else if(u.B=="b")if(h=g.wn("ytads.bulleit.getVideoMetadata"),typeof h==="function")try{L=h(u.lX)}catch(y){u.N|=4}else u.N|=2;else if(u.B=="ml")if(h=g.wn("ima.common.getVideoMetadata"),typeof h==="function")try{L=h(u.lX)}catch(y){u.N|=4}else u.N|=2;else u.N|=1;u.N||(L===void 0?u.N|=8:L===null?
u.N|=16:g.Tc(L)?u.N|=32:L.errorCode!=null&&(u.gw=L.errorCode,u.N|=64));L==null&&(L={});h=L;u.S=0;for(var Z in nb3)h[Z]==null&&(u.S|=nb3[Z]);Hhj(h,"currentTime");Hhj(h,"duration");Xh(L.volume)&&Xh()&&(L.volume*=NaN);return L};
g.K.R2=function(){Gh();Ig(this)!="h"&&Ig(this);var u=n4V(this);return u!=null?new rAY(u):null};
g.K.tW=function(u){!u.G&&u.M2&&AK(this,u,"overlay_unmeasurable_impression")&&(u.G=!0)};
g.K.a$=function(u){u.zo&&(u.BF()?AK(this,u,"overlay_viewable_end_of_session_impression"):AK(this,u,"overlay_unviewable_impression"),u.zo=!1)};
g.K.g5=function(){};
g.K.kT=function(u,h,L,Z){if(EQl()){var y=RQ(Gh().Ok,"mm"),R={};(y=(R[HG.i4]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",R[HG.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",R)[y])&&aa1(this,y);this.B==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&aQ(1044,Error())}u=K5.prototype.kT.call(this,u,h,L,Z);this.T&&(h=this.C,u.T==null&&(u.T=new KCw),h.G[u.lX]=u.T,u.T.T=EbD);return u};
g.K.P1=function(u){u&&u.Ow()==1&&this.T&&delete this.C.G[u.lX];return K5.prototype.P1.call(this,u)};
g.K.Zj=function(){this.G||(this.G=this.R2());return this.G==null?new xZ:this.B==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Mg(this.G):new jB(this.G)};
g.K.A5=function(){return this.B==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new i8:new bT};
g.K.Di=function(u,h,L,Z,y){h=new Eq(L,h+Z,L+y,h);(u=ou(NB,u))?u.Di(h):this.X=h};
var kYK=wH(193,tYs,void 0,URi);g.nV("Goog_AdSense_Lidar_sendVastEvent",kYK);var gbb=eY(194,function(u,h){h=h===void 0?{}:h;u=eyn(Th(Q0),u,h);return $Rs(u)});
g.nV("Goog_AdSense_Lidar_getViewability",gbb);var ugY=wH(195,function(){return aZ1()});
g.nV("Goog_AdSense_Lidar_getUrlSignalsArray",ugY);var jcu=eY(196,function(){return JSON.stringify(aZ1())});
g.nV("Goog_AdSense_Lidar_getUrlSignalsList",jcu);var WBn=(new Date("2024-01-01T00:00:00Z")).getTime();var E4Y=pii(["//tpc.googlesyndication.com/sodar/",""]);g.P(og,g.m);og.prototype.kA=function(){return this.wpc.f()};
og.prototype.Gu=function(u){this.wpc.c(u)};
og.prototype.Fr=function(u){return this.wpc.m(jSi(u))};
og.prototype.vF=function(u){return this.wpc.mws(jSi(u))};
g.P(vd,g.m);vd.prototype.snapshot=function(u){return this.Il.s(Object.assign({},u.RM&&{c:u.RM},u.SI&&{s:u.SI},u.JO!==void 0&&{p:u.JO}))};
vd.prototype.TA=function(u){this.Il.e(u)};
vd.prototype.CS=function(){return this.Il.l()};var uQf=(new Date).getTime();var Zfj="://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(" "),yBn=/\bocr\b/;var p7b=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Szl=0,lEY=0,X7e=0;var Gf=null,r3=!1,PLn=1,mc=Symbol("SIGNAL"),d3={version:0,CYB:0,q9:!1,c7:void 0,Fe:void 0,m0:void 0,sj:0,Su:void 0,U3:void 0,hK:!1,iG:!1,kind:"unknown",KP:function(){return!1},
Dh:function(){},
Hw:function(){},
yGH:function(){}};var c8=Symbol("UNSET"),Ik=Symbol("COMPUTING"),AU=Symbol("ERRORED");Object.assign({},d3,{value:c8,q9:!0,error:null,sb:UM,kind:"computed",KP:function(u){return u.value===c8||u.value===Ik},
Dh:function(u){if(u.value===Ik)throw Error("Detected cycle in computations.");var h=u.value;u.value=Ik;var L=OfV(u),Z=!1;try{var y=u.Hl();Hd(null);Z=h!==c8&&h!==AU&&y!==AU&&u.sb(h,y)}catch(R){y=AU,u.error=R}finally{fEe(u,L)}Z?u.value=h:(u.value=y,u.version++)}});var ABY=Object.assign({},d3,{sb:UM,value:void 0,kind:"signal"});Object.assign({},d3,{value:c8,q9:!0,error:null,sb:UM,KP:function(u){return u.value===c8||u.value===Ik},
Dh:function(u){if(u.value===Ik)throw Error("Detected cycle in computations.");var h=u.value;u.value=Ik;var L=OfV(u);try{var Z=u.source();var y=u.Hl(Z,h===c8||h===AU?void 0:{source:u.I$g,value:h});u.I$g=Z}catch(R){y=AU,u.error=R}finally{fEe(u,L)}h!==c8&&y!==AU&&u.sb(h,y)?u.value=h:(u.value=y,u.version++)}});Object.assign({},d3,{iG:!0,hK:!1,Hw:function(u){u.schedule!==null&&u.schedule(u.xIX)},
NCI:!1,F5B:function(){}});MrL(!0);MrL(!1);var ifR=Object.assign({},{attributes:{},handleError:function(u){throw u;}},{EUy:!0,
oUA:!0,bJ:!1,vza:!1,gUw:!1,cGd:!1,pSy:Nde});var vXn=Symbol("updater");g.P(n5,g.Ev);n5.prototype.dispose=function(){window.removeEventListener("offline",this.X);window.removeEventListener("online",this.X);this.R9.OA(this.T);delete n5.instance};
n5.prototype.jD=function(){return this.G};
n5.prototype.pW=function(){var u=this;this.T=this.R9.xB(function(){var h;return g.G(function(L){if(L.G==1)return u.G?((h=window.navigator)==null?0:h.onLine)?L.KI(3):g.N(L,V0(u),3):g.N(L,V0(u),3);u.pW();g.i1(L)})},3E4)};w3.prototype.set=function(u,h){h=h===void 0?!0:h;0<=u&&u<52&&Number.isInteger(u)&&this.data[u]!==h&&(this.data[u]=h,this.G=-1)};
w3.prototype.get=function(u){return!!this.data[u]};var ag;g.jb(g.b8,g.m);g.K=g.b8.prototype;g.K.start=function(){this.stop();this.B=!1;var u=oXf(this),h=NK1(this);u&&!h&&this.N.mozRequestAnimationFrame?(this.G=g.Vg(this.N,"MozBeforePaint",this.X),this.N.mozRequestAnimationFrame(null),this.B=!0):this.G=u&&h?u.call(this.N,this.X):this.N.setTimeout(tVl(this.X),20)};
g.K.stop=function(){if(this.isActive()){var u=oXf(this),h=NK1(this);u&&!h&&this.N.mozRequestAnimationFrame?W9(this.G):u&&h?h.call(this.N,this.G):this.N.clearTimeout(this.G)}this.G=null};
g.K.isActive=function(){return this.G!=null};
g.K.bN=function(){this.B&&this.G&&W9(this.G);this.G=null;this.C.call(this.T,g.u3())};
g.K.Ni=function(){this.stop();g.b8.zD.Ni.call(this)};g.jb(g.EM,g.m);g.K=g.EM.prototype;g.K.wp=0;g.K.Ni=function(){g.EM.zD.Ni.call(this);this.stop();delete this.G;delete this.N};
g.K.start=function(u){this.stop();this.wp=g.lq(this.X,u!==void 0?u:this.uX)};
g.K.stop=function(){this.isActive()&&g.Vn.clearTimeout(this.wp);this.wp=0};
g.K.isActive=function(){return this.wp!=0};
g.K.LF=function(){this.wp=0;this.G&&this.G.call(this.N)};g.jz.prototype[Symbol.iterator]=function(){return this};
g.jz.prototype.next=function(){var u=this.G.next();return{value:u.done?void 0:this.N.call(void 0,u.value),done:u.done}};g.jb(g.Oc,g.Ev);g.K=g.Oc.prototype;g.K.isPlaying=function(){return this.G==1};
g.K.isPaused=function(){return this.G==-1};
g.K.Q5=function(){this.Vx("begin")};
g.K.y_=function(){this.Vx("end")};
g.K.onFinish=function(){this.Vx("finish")};
g.K.onStop=function(){this.Vx("stop")};
g.K.Vx=function(u){this.dispatchEvent(u)};var hY1=fv(function(){var u=g.kJ("DIV"),h=g.WM?"-webkit":ff?"-moz":null,L="transition:opacity 1s linear;";h&&(L+=h+"-transition:opacity 1s linear;");h=use({style:L});if(u.nodeType===1&&/^(script|style)$/i.test(u.tagName))throw Error("");u.innerHTML=Bo(h);return g.DE(u.firstChild,"transition")!=""});g.jb(fc,g.Oc);g.K=fc.prototype;g.K.play=function(){if(this.isPlaying())return!1;this.Q5();this.Vx("play");this.startTime=g.u3();this.G=1;if(hY1())return g.Oz(this.N,this.C),this.X=g.lq(this.EvH,void 0,this),!0;this.oy(!1);return!1};
g.K.EvH=function(){g.Qz(this.N);Hf1(this.N,this.V);g.Oz(this.N,this.B);this.X=g.lq((0,g.Ej)(this.oy,this,!1),this.T*1E3)};
g.K.stop=function(){this.isPlaying()&&this.oy(!0)};
g.K.oy=function(u){g.Oz(this.N,"transition","");g.Vn.clearTimeout(this.X);g.Oz(this.N,this.B);this.endTime=g.u3();this.G=0;if(u)this.onStop();else this.onFinish();this.y_()};
g.K.Ni=function(){this.stop();fc.zD.Ni.call(this)};
g.K.pause=function(){};var BKR={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};Dx("Element","attributes")||Dx("Node","attributes");Dx("Element","innerHTML")||Dx("HTMLElement","innerHTML");Dx("Node","nodeName");Dx("Node","nodeType");Dx("Node","parentNode");Dx("Node","childNodes");Dx("HTMLElement","style")||Dx("Element","style");Dx("HTMLStyleElement","sheet");var sSj=m2L("getPropertyValue"),w7n=m2L("setProperty");Dx("Element","namespaceURI")||Dx("Node","namespaceURI");var nXR={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var trR,Qa1,$2s,aEj,WSR;trR=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]");Qa1=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.LrR=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.IH=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]");$2s=/^http:\/\/.*/;g.Zqr=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");aEj=/\s+/;WSR=/[\d\u06f0-\u06f9]/;xc.prototype.Da=function(){return new Px(this.N())};
xc.prototype[Symbol.iterator]=function(){return new Cc(this.N())};
xc.prototype.G=function(){return new Cc(this.N())};
g.P(Px,g.LN);Px.prototype.next=function(){return this.N.next()};
Px.prototype[Symbol.iterator]=function(){return new Cc(this.N)};
Px.prototype.G=function(){return new Cc(this.N)};
g.P(Cc,xc);Cc.prototype.next=function(){return this.X.next()};i6.prototype.clone=function(){return new i6(this.G,this.V,this.X,this.T,this.B,this.C,this.N,this.S)};
i6.prototype.ys=function(u){return this.G==u.G&&this.V==u.V&&this.X==u.X&&this.T==u.T&&this.B==u.B&&this.C==u.C&&this.N==u.N&&this.S==u.S};l6.prototype.clone=function(){return new l6(this.start,this.end)};
l6.prototype.getLength=function(){return this.end-this.start};(function(){if(NPb){var u=/Windows NT ([0-9.]+)/;return(u=u.exec(g.N7()))?u[1]:"0"}return a$?(u=/1[0|1][_.][0-9_.]+/,(u=u.exec(g.N7()))?u[0].replace(/_/g,"."):"10"):g.EJ?(u=/Android\s+([^\);]+)(\)|;)/,(u=u.exec(g.N7()))?u[1]:""):HHY||rPf||BdV?(u=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(u=u.exec(g.N7()))?u[1].replace(/_/g,"."):""):""})();var bf1=function(){if(g.Nc)return Sz(/Firefox\/([0-9.]+)/);if(g.cx||g.$w||g.P$)return Ju1;if(g.TI){if(ac()||$D()){var u=Sz(/CriOS\/([0-9.]+)/);if(u)return u}return Sz(/Chrome\/([0-9.]+)/)}if(g.PC&&!ac())return Sz(/Version\/([0-9.]+)/);if(WS||FI){if(u=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.N7()))return u[1]+"."+u[2]}else if(g.CC)return(u=Sz(/Android\s+([0-9.]+)/))?u:Sz(/Version\/([0-9.]+)/);return""}();g.jb(g.vx,g.m);g.K=g.vx.prototype;g.K.subscribe=function(u,h,L){var Z=this.N[u];Z||(Z=this.N[u]=[]);var y=this.C;this.G[y]=u;this.G[y+1]=h;this.G[y+2]=L;this.C=y+3;Z.push(y);return y};
g.K.unsubscribe=function(u,h,L){if(u=this.N[u]){var Z=this.G;if(u=u.find(function(y){return Z[y+1]==h&&Z[y+2]==L}))return this.uW(u)}return!1};
g.K.uW=function(u){var h=this.G[u];if(h){var L=this.N[h];this.B!=0?(this.X.push(u),this.G[u+1]=function(){}):(L&&g.gV(L,u),delete this.G[u],delete this.G[u+1],delete this.G[u+2])}return!!h};
g.K.publish=function(u,h){var L=this.N[u];if(L){var Z=Array(arguments.length-1),y=arguments.length,R;for(R=1;R<y;R++)Z[R-1]=arguments[R];if(this.V)for(R=0;R<L.length;R++)y=L[R],EXf(this.G[y+1],this.G[y+2],Z);else{this.B++;try{for(R=0,y=L.length;R<y&&!this.ww();R++){var p=L[R];this.G[p+1].apply(this.G[p+2],Z)}}finally{if(this.B--,this.X.length>0&&this.B==0)for(;L=this.X.pop();)this.uW(L)}}return R!=0}return!1};
g.K.clear=function(u){if(u){var h=this.N[u];h&&(h.forEach(this.uW,this),delete this.N[u])}else this.G.length=0,this.N={}};
g.K.Ni=function(){g.vx.zD.Ni.call(this);this.clear();this.X.length=0};g.q0.prototype.set=function(u,h){h===void 0?this.G.remove(u):this.G.set(u,g.qE(h))};
g.q0.prototype.get=function(u){try{var h=this.G.get(u)}catch(L){return}if(h!==null)try{return JSON.parse(h)}catch(L){throw"Storage: Invalid value was encountered";}};
g.q0.prototype.remove=function(u){this.G.remove(u)};g.jb(T8,g.q0);T8.prototype.set=function(u,h){T8.zD.set.call(this,u,gXa(h))};
T8.prototype.N=function(u){u=T8.zD.get.call(this,u);if(u===void 0||u instanceof Object)return u;throw"Storage: Invalid value was encountered";};
T8.prototype.get=function(u){if(u=this.N(u)){if(u=u.data,u===void 0)throw"Storage: Invalid value was encountered";}else u=void 0;return u};g.jb(Yc,T8);Yc.prototype.set=function(u,h,L){if(h=gXa(h)){if(L){if(L<g.u3()){Yc.prototype.remove.call(this,u);return}h.expiration=L}h.creation=g.u3()}Yc.zD.set.call(this,u,h)};
Yc.prototype.N=function(u,h){var L=Yc.zD.N.call(this,u);if(L)if(!h&&g.u0V(L))Yc.prototype.remove.call(this,u);else return L};g.jb(g.oH,Yc);g.jb(N0,jue);N0.prototype[Symbol.iterator]=function(){return g.M0(this.Da(!0)).G()};
N0.prototype.clear=function(){var u=Array.from(this);u=g.C(u);for(var h=u.next();!h.done;h=u.next())this.remove(h.value)};g.jb(Uc,N0);g.K=Uc.prototype;g.K.isAvailable=function(){var u=this.G;if(u)try{u.setItem("__sak","1");u.removeItem("__sak");var h=!0}catch(L){h=L instanceof DOMException&&(L.name==="QuotaExceededError"||L.code===22||L.code===1014||L.name==="NS_ERROR_DOM_QUOTA_REACHED")&&u&&u.length!==0}else h=!1;return this.N=h};
g.K.set=function(u,h){G8(this);try{this.G.setItem(u,h)}catch(L){if(this.G.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.K.get=function(u){G8(this);u=this.G.getItem(u);if(typeof u!=="string"&&u!==null)throw"Storage mechanism: Invalid value was encountered";return u};
g.K.remove=function(u){G8(this);this.G.removeItem(u)};
g.K.Da=function(u){G8(this);var h=0,L=this.G,Z=new g.LN;Z.next=function(){if(h>=L.length)return g.JU;var y=L.key(h++);if(u)return g.ZV(y);y=L.getItem(y);if(typeof y!=="string")throw"Storage mechanism: Invalid value was encountered";return g.ZV(y)};
return Z};
g.K.clear=function(){G8(this);this.G.clear()};
g.K.key=function(u){G8(this);return this.G.key(u)};g.jb(Hx,Uc);g.jb(hjV,Uc);g.jb(rl,N0);rl.prototype.set=function(u,h){this.N.set(this.G+u,h)};
rl.prototype.get=function(u){return this.N.get(this.G+u)};
rl.prototype.remove=function(u){this.N.remove(this.G+u)};
rl.prototype.Da=function(u){var h=this.N[Symbol.iterator](),L=this,Z=new g.LN;Z.next=function(){var y=h.next();if(y.done)return y;for(y=y.value;y.slice(0,L.G.length)!=L.G;){y=h.next();if(y.done)return y;y=y.value}return g.ZV(u?y.slice(L.G.length):L.N.get(y))};
return Z};z8.prototype.getValue=function(){return this.N};
z8.prototype.clone=function(){return new z8(this.G,this.N)};g.K=mX.prototype;g.K.eZ=function(u,h){var L=this.G;L.push(new z8(u,h));u=L.length-1;h=this.G;for(L=h[u];u>0;){var Z=u-1>>1;if(h[Z].G>L.G)h[u]=h[Z],u=Z;else break}h[u]=L};
g.K.remove=function(){var u=this.G,h=u.length,L=u[0];if(!(h<=0)){if(h==1)u.length=0;else{u[0]=u.pop();u=0;h=this.G;for(var Z=h.length,y=h[u];u<Z>>1;){var R=u*2+1,p=u*2+2;R=p<Z&&h[p].G<h[R].G?p:R;if(h[R].G>y.G)break;h[u]=h[R];u=R}h[u]=y}return L.getValue()}};
g.K.UH=function(){for(var u=this.G,h=[],L=u.length,Z=0;Z<L;Z++)h.push(u[Z].getValue());return h};
g.K.qv=function(){for(var u=this.G,h=[],L=u.length,Z=0;Z<L;Z++)h.push(u[Z].G);return h};
g.K.clone=function(){return new mX(this)};
g.K.isEmpty=function(){return this.G.length===0};
g.K.clear=function(){this.G.length=0};g.P(dl,mX);dl.prototype.enqueue=function(u,h){this.eZ(u,h)};VN.o7=void 0;VN.getInstance=function(){return VN.o7?VN.o7:VN.o7=new VN};
VN.prototype.G=0;var nc={},yuu=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";nc.assign=function(u){for(var h=Array.prototype.slice.call(arguments,1);h.length;){var L=h.shift();if(L){if(typeof L!=="object")throw new TypeError(L+"must be non-object");for(var Z in L)Object.prototype.hasOwnProperty.call(L,Z)&&(u[Z]=L[Z])}}return u};
nc.Hz=function(u,h){if(u.length===h)return u;if(u.subarray)return u.subarray(0,h);u.length=h;return u};
var RY8={Sj:function(u,h,L,Z,y){if(h.subarray&&u.subarray)u.set(h.subarray(L,L+Z),y);else for(var R=0;R<Z;R++)u[y+R]=h[L+R]},
TX:function(u){var h,L;var Z=L=0;for(h=u.length;Z<h;Z++)L+=u[Z].length;var y=new Uint8Array(L);Z=L=0;for(h=u.length;Z<h;Z++){var R=u[Z];y.set(R,L);L+=R.length}return y}},p17={Sj:function(u,h,L,Z,y){for(var R=0;R<Z;R++)u[y+R]=h[L+R]},
TX:function(u){return[].concat.apply([],u)}};
nc.ZBA=function(){yuu?(nc.Kl=Uint8Array,nc.Pa=Uint16Array,nc.m2=Int32Array,nc.assign(nc,RY8)):(nc.Kl=Array,nc.Pa=Array,nc.m2=Array,nc.assign(nc,p17))};
nc.ZBA();var Kry=!0;try{new Uint8Array(1)}catch(u){Kry=!1};var DJ={};DJ=function(u,h,L,Z){var y=u&65535|0;u=u>>>16&65535|0;for(var R;L!==0;){R=L>2E3?2E3:L;L-=R;do y=y+h[Z++]|0,u=u+y|0;while(--R);y%=65521;u%=65521}return y|u<<16|0};for(var cn={},xv,Ju3=[],P8=0;P8<256;P8++){xv=P8;for(var Oq3=0;Oq3<8;Oq3++)xv=xv&1?3988292384^xv>>>1:xv>>>1;Ju3[P8]=xv}cn=function(u,h,L,Z){L=Z+L;for(u^=-1;Z<L;Z++)u=u>>>8^Ju3[(u^h[Z])&255];return u^-1};var LI={};LI={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};var b6=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],gl=[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],vZl=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],IVj=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],pI=Array(576);sc(pI);var KI=Array(60);sc(KI);var kc=Array(512);sc(kc);var FL=Array(256);sc(FL);var Ec=Array(29);sc(Ec);var uU=Array(30);sc(uU);var lVj,SRV,XZ1,Qun=!1;var CI;CI=[new Pn(0,0,0,0,function(u,h){var L=65535;for(L>u.QR-5&&(L=u.QR-5);;){if(u.hM<=1){Iw(u);if(u.hM===0&&h===0)return 1;if(u.hM===0)break}u.OU+=u.hM;u.hM=0;var Z=u.Pm+L;if(u.OU===0||u.OU>=Z)if(u.hM=u.OU-Z,u.OU=Z,Jn(u,!1),u.Jq.nZ===0)return 1;if(u.OU-u.Pm>=u.CV-262&&(Jn(u,!1),u.Jq.nZ===0))return 1}u.eZ=0;if(h===4)return Jn(u,!0),u.Jq.nZ===0?3:4;u.OU>u.Pm&&Jn(u,!1);return 1}),
new Pn(4,4,8,4,An),new Pn(4,5,16,8,An),new Pn(4,6,32,32,An),new Pn(4,4,16,16,xB),new Pn(8,16,32,32,xB),new Pn(8,16,128,128,xB),new Pn(8,32,128,256,xB),new Pn(32,128,258,1024,xB),new Pn(32,258,258,4096,xB)];var iN1={};iN1=function(){this.input=null;this.A7=this.bX=this.Yu=0;this.output=null;this.zj=this.nZ=this.j8=0;this.msg="";this.state=null;this.XR=2;this.wd=0};var qRn=Object.prototype.toString;
MH.prototype.push=function(u,h){var L=this.Jq,Z=this.options.chunkSize;if(this.ended)return!1;var y=h===~~h?h:h===!0?4:0;typeof u==="string"?L.input=LWb(u):qRn.call(u)==="[object ArrayBuffer]"?L.input=new Uint8Array(u):L.input=u;L.Yu=0;L.bX=L.input.length;do{L.nZ===0&&(L.output=new nc.Kl(Z),L.j8=0,L.nZ=Z);u=MmR(L,y);if(u!==1&&u!==0)return this.y_(u),this.ended=!0,!1;if(L.nZ===0||L.bX===0&&(y===4||y===2))if(this.options.le==="string"){var R=nc.Hz(L.output,L.j8);h=R;R=R.length;if(R<65537&&(h.subarray&&
Kry||!h.subarray))h=String.fromCharCode.apply(null,nc.Hz(h,R));else{for(var p="",J=0;J<R;J++)p+=String.fromCharCode(h[J]);h=p}this.chunks.push(h)}else h=nc.Hz(L.output,L.j8),this.chunks.push(h)}while((L.bX>0||L.nZ===0)&&u!==1);if(y===4)return(L=this.Jq)&&L.state?(Z=L.state.status,Z!==42&&Z!==69&&Z!==73&&Z!==91&&Z!==103&&Z!==113&&Z!==666?u=ZJ(L,-2):(L.state=null,u=Z===113?ZJ(L,-3):0)):u=-2,this.y_(u),this.ended=!0,u===0;y===2&&(this.y_(0),L.nZ=0);return!0};
MH.prototype.y_=function(u){u===0&&(this.result=this.options.le==="string"?this.chunks.join(""):nc.TX(this.chunks));this.chunks=[];this.err=u;this.msg=this.Jq.msg};var Qm="@@redux/INIT"+iU(),GHV="@@redux/REPLACE"+iU();var HNi=typeof Symbol==="function"&&Symbol.observable||"@@observable";var fRD=[0,Asb,-3,yU];g.P(XB,zG);XB.prototype.getType=function(){return Il(this,11)};var t8f=function(){var u=[0,P13,xLq,jo,Asb,jo,-1,yU,Asb,yU,-1,P13,yU,xLq,hU,fRD,jo,-1,yU];return function(h,L){if(uR.length){var Z=uR.pop();Ukn(Z,L);Z.G.init(h,void 0,void 0,L);h=Z}else h=new NG(h,L);try{var y=new XB,R=y.Mp;LB(u)(R,h);var p=y}finally{h.free()}return p}}();var mBY=435300713;var bMn=new g.vn("adInfoDialogEndpoint");var x_R=new g.vn("adPingingEndpoint");var BpV=new g.vn("crossDeviceProgressCommand");var Fc=new g.vn("actionCompanionAdRenderer");var yE=new g.vn("adActionInterstitialRenderer");var D77=new g.vn("adDurationRemainingRenderer");var ve=new g.vn("adHoverTextButtonRenderer");var Wme=new g.vn("adInfoDialogRenderer");var KO=new g.vn("adMessageRenderer");var qU=new g.vn("adPreviewRenderer");var EL=new g.vn("adsEngagementPanelRenderer");var Kv1=new g.vn("dismissablePanelTextPortraitImageRenderer");var R3Y=new g.vn("adsEngagementPanelSectionListViewModel");var cu3=new g.vn("flyoutCtaRenderer");var br=new g.vn("imageCompanionAdRenderer");var LA=new g.vn("instreamAdPlayerOverlayRenderer");var nha=new g.vn("instreamSurveyAdBackgroundImageRenderer");var Xb=new g.vn("instreamSurveyAdPlayerOverlayRenderer");var I4=new g.vn("instreamSurveyAdRenderer"),SD=new g.vn("instreamSurveyAdSingleSelectQuestionRenderer"),la=new g.vn("instreamSurveyAdMultiSelectQuestionRenderer"),Cy=new g.vn("instreamSurveyAdAnswerRenderer"),IRR=new g.vn("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var DB=new g.vn("instreamVideoAdRenderer");var Aur=new g.vn("textOverlayAdContentRenderer"),x7q=new g.vn("enhancedTextOverlayAdContentRenderer"),P3R=new g.vn("imageOverlayAdContentRenderer");var Zq=new g.vn("playerOverlayLayoutRenderer");var Rn=new g.vn("videoInterstitialButtonedCenteredLayoutRenderer");var cCe=new g.vn("aboveFeedAdLayoutRenderer");var ISb=new g.vn("belowPlayerAdLayoutRenderer");var Djb=new g.vn("inPlayerAdLayoutRenderer");var Pe=new g.vn("playerBytesAdLayoutRenderer");var ACa=new g.vn("playerBytesSequenceItemAdLayoutRenderer");var ia=new g.vn("playerUnderlayAdLayoutRenderer");var ce=new g.vn("adIntroRenderer");var ZB=new g.vn("playerBytesSequentialLayoutRenderer");var t4l=new g.vn("slidingTextPlayerOverlayRenderer");var AE=new g.vn("surveyTextInterstitialRenderer");var Qe=new g.vn("videoAdTrackingRenderer");var C3V=new g.vn("simpleAdBadgeRenderer");var ur=new g.vn("skipAdRenderer"),Mbb=new g.vn("skipButtonRenderer");var NU=new g.vn("adSlotRenderer");var C0=new g.vn("squeezebackPlayerSidePanelRenderer");var iqq=new g.vn("timedPieCountdownRenderer");var eP=new g.vn("adAvatarViewModel");var a2=new g.vn("adBadgeViewModel");var $u=new g.vn("adButtonViewModel");var Qcy=new g.vn("adDetailsLineViewModel");var lRc=new g.vn("adDisclosureBannerViewModel");var S87=new g.vn("adPodIndexViewModel");var X17=new g.vn("imageBackgroundViewModel");var vDR=new g.vn("adGridCardCollectionViewModel");var q8c=new g.vn("adGridCardTextViewModel");var TVg=new g.vn("adPreviewViewModel");var Y8D=new g.vn("playerAdAvatarLockupCardButtonedViewModel");var oDy=new g.vn("skipAdButtonViewModel");var NVR=new g.vn("skipAdViewModel");var U7r=new g.vn("timedPieCountdownViewModel");var Gyq=new g.vn("visitAdvertiserLinkViewModel");var kf=new g.vn("bannerImageLayoutViewModel");var gz=new g.vn("topBannerImageTextIconButtonedLayoutViewModel");var ua=new g.vn("adsEngagementPanelLayoutViewModel");var MU=new g.vn("displayUnderlayTextGridCardsLayoutViewModel");g.xH=new g.vn("browseEndpoint");var Hqg=new g.vn("confirmDialogEndpoint");var Cwa=new g.vn("rawColdConfigGroup");var Pw1=new g.vn("rawHotConfigGroup");g.Ir=new g.vn("commandExecutorCommand");g.P(nZf,zG);var EGR={zSI:0,THI:1,V3A:32,Hmy:61,f2A:67,ZmB:103,qFi:86,j9H:42,UU7:60,chB:62,imw:73,s9H:76,Jhw:88,t3H:90,YFd:99,ocd:98,hSI:100,Loy:102,Q97:41,xRy:69,mRw:70,eTB:71,gqX:2,lay:27,ANDROID:3,oWI:54,kNA:14,qei:91,j4X:55,VZB:24,U$d:20,Wpa:18,LpA:21,i07:104,J3B:30,f7a:29,YeB:28,OmI:101,Q4w:34,Z0g:36,s4I:38,IOS:5,uUi:15,OgI:92,MhH:40,zIi:25,BDA:17,gVB:19,llw:64,KRH:66,DtH:26,vVI:22,C9a:33,wmw:68,TDI:35,rVg:53,FRi:37,XmI:39,xUA:7,mUg:57,eSA:43,I2X:59,Gwd:93,hOI:74,AhA:75,RSH:85,ncA:65,dUw:80,uWw:8,Ydg:10,
XpB:58,M3a:63,NHH:72,tZd:23,AGB:11,RTB:13,TXd:12,Qmd:16,kwg:56,SFI:31,XbB:77,ooa:84,WoB:87,jFd:89,kGB:94,Q5w:95};g.P(qH,zG);qH.prototype.Bq=function(){return cp(this,3)};
qH.prototype.C9=function(){return cp(this,5)};
qH.prototype.Zm=function(u){return x8(this,5,u)};g.P(T6,zG);g.P(suR,zG);g.P(YB,zG);g.K=YB.prototype;g.K.getDeviceId=function(){return cp(this,6)};
g.K.vP=function(u){var h=$t(this,9,fa,3,void 0,!0);wY(h,u);return h[u]};
g.K.getPlayerType=function(){return Il(this,36)};
g.K.setHomeGroupInfo=function(u){return p9(this,suR,81,u)};
g.K.clearLocationPlayabilityToken=function(){return Vx(this,89)};g.P(ow,zG);ow.prototype.getValue=function(){return cp(this,hM(this,A2n)===2?2:-1)};
var A2n=[2,3,4,5,6];g.P(NH,zG);NH.prototype.setTrackingParams=function(u){return Vx(this,1,U7e(u,!1))};g.P(UC,zG);g.P(G6,zG);G6.prototype.vP=function(u){var h=$t(this,5,Dj,3,void 0,!0);wY(h,u);return h[u]};g.P(Hn,zG);Hn.prototype.getToken=function(){return f9(this,2)};
Hn.prototype.setToken=function(u){return x8(this,2,u)};g.P(rv,zG);rv.prototype.setSafetyMode=function(u){return C9(this,5,u)};g.P(Bn,zG);Bn.prototype.RO=function(u){return p9(this,YB,1,u)};var Y3=new g.vn("thumbnailLandscapePortraitRenderer");g.ru7=new g.vn("changeEngagementPanelVisibilityAction");var idV=new g.vn("continuationCommand");g.BVb=new g.vn("openPopupAction");g.M9=new g.vn("webCommandMetadata");var qun=new g.vn("metadataBadgeRenderer");var Mea=new g.vn("signalServiceEndpoint");var rD=new g.vn("innertubeCommand");var pbl=new g.vn("loggingDirectives");var T3f={NZB:"EMBEDDED_PLAYER_MODE_UNKNOWN",IkI:"EMBEDDED_PLAYER_MODE_DEFAULT",R0i:"EMBEDDED_PLAYER_MODE_PFP",ASa:"EMBEDDED_PLAYER_MODE_PFL"};var g3a=new g.vn("channelThumbnailEndpoint");var kWw=new g.vn("embeddedPlayerErrorMessageRenderer");var W_R=new g.vn("embeddedPlayerOverlayVideoDetailsRenderer"),uNY=new g.vn("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),j7n=new g.vn("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var Su1=new g.vn("embedsInfoPanelRenderer");var zYu=new g.vn("feedbackEndpoint");var m7c=new g.vn("callToActionButtonViewModel");var d73=new g.vn("interactionLoggingCommandMetadata");var SCa={ppy:"WEB_DISPLAY_MODE_UNKNOWN",a2I:"WEB_DISPLAY_MODE_BROWSER",P8g:"WEB_DISPLAY_MODE_MINIMAL_UI",Ecd:"WEB_DISPLAY_MODE_STANDALONE",bmB:"WEB_DISPLAY_MODE_FULLSCREEN"};g.P(z6,zG);z6.prototype.getPlayerType=function(){return Il(this,7)};
z6.prototype.UX=function(){return cp(this,19)};
z6.prototype.setVideoId=function(u){return x8(this,19,u)};g.P(mJ,zG);g.P(nI,zG);g.P(sC,zG);
var Vbg=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515];var nDK=new g.vn("loggingContext");g.P(wv,zG);g.P(ev,zG);ev.prototype.UX=function(){return f9(this,hM(this,Ke)===1?1:-1)};
ev.prototype.setVideoId=function(u){return uH(this,1,Ke,lK(u))};
ev.prototype.getPlaylistId=function(){return f9(this,hM(this,Ke)===2?2:-1)};
var Ke=[1,2];g.P(wZR,zG);var aB=new g.vn("changeKeyedMarkersVisibilityCommand");var scK=new g.vn("changeMarkersVisibilityCommand");var Yuf=new g.vn("loadMarkersCommand");var w1r=new g.vn("suggestedActionDataViewModel");var qIj=new g.vn("timelyActionViewModel");var vYn=new g.vn("timelyActionsOverlayViewModel");var NUa=new g.vn("productListItemRenderer");var eY7=new g.vn("shoppingOverlayRenderer");var F_a=new g.vn("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var aRr=new g.vn("adFeedbackEndpoint");var $77=new g.vn("menuEndpoint");var aTb=new g.vn("phoneDialerEndpoint");var wJ1=new g.vn("sendSmsEndpoint");var tDl=new g.vn("copyTextEndpoint");var tb1=new g.vn("shareEndpoint"),Wrg=new g.vn("shareEntityEndpoint"),FrY=new g.vn("shareEntityServiceEndpoint"),bqb=new g.vn("webPlayerShareEntityServiceEndpoint");g.HL=new g.vn("urlEndpoint");g.wC=new g.vn("watchEndpoint");var EDK=new g.vn("watchPlaylistEndpoint");g.kyb=new g.vn("offlineOrchestrationActionCommand");var Ihe=new g.vn("compositeVideoOverlayRenderer");var gD3=new g.vn("miniplayerRenderer");var aBe=new g.vn("paidContentOverlayRenderer");var uZy=new g.vn("playerMutedAutoplayOverlayRenderer"),jpu=new g.vn("playerMutedAutoplayEndScreenRenderer");var dyL=new g.vn("unserializedPlayerResponse"),hJq=new g.vn("unserializedPlayerResponse");var Lz7=new g.vn("playlistEditEndpoint");var iR;g.TW=new g.vn("buttonRenderer");iR=new g.vn("toggleButtonRenderer");var yCf=new g.vn("counterfactualRenderer");var Zwy=new g.vn("resolveUrlCommandMetadata");var y88=new g.vn("modifyChannelNotificationPreferenceEndpoint");var AX1=new g.vn("pingingEndpoint");var RJc=new g.vn("unsubscribeEndpoint");g.Pz=new g.vn("subscribeButtonRenderer");var phq=new g.vn("subscribeEndpoint");var Ics=new g.vn("buttonViewModel");var pER=new g.vn("qrCodeRenderer");var gGn={SvX:"LIVING_ROOM_APP_MODE_UNSPECIFIED",LRI:"LIVING_ROOM_APP_MODE_MAIN",s5d:"LIVING_ROOM_APP_MODE_KIDS",igI:"LIVING_ROOM_APP_MODE_MUSIC",HgX:"LIVING_ROOM_APP_MODE_UNPLUGGED",WRa:"LIVING_ROOM_APP_MODE_GAMING"};var i0Y=new g.vn("autoplaySwitchButtonRenderer");var xm,PRY,$ye,Ypj;xm=new g.vn("decoratedPlayerBarRenderer");PRY=new g.vn("chapteredPlayerBarRenderer");$ye=new g.vn("multiMarkersPlayerBarRenderer");Ypj=new g.vn("chapterRenderer");g.QkY=new g.vn("markerRenderer");var Kzc=new g.vn("decoratedPlayheadRenderer");var Xen=new g.vn("desktopOverlayConfigRenderer");var JCf=new g.vn("engagementPanelSectionListRenderer");var lBn=new g.vn("gatedActionsOverlayViewModel");var vvs=new g.vn("heatMarkerRenderer");var X8b=new g.vn("heatmapRenderer");var TEb=new g.vn("watchToWatchTransitionRenderer");var b01=new g.vn("playlistPanelRenderer");var J8K=new g.vn("productUpsellSuggestedActionViewModel");var OwV=new g.vn("suggestedActionTimeRangeTrigger"),fMR=new g.vn("suggestedActionsRenderer"),Dk1=new g.vn("suggestedActionRenderer");var qpR=new g.vn("timedMarkerDecorationRenderer");var Jgj=new g.vn("cipher");var VIn=new g.vn("playerVars");var c8r=new g.vn("playerVars");var QU=g.Vn.window,IMD,A8b,aw=(QU==null?void 0:(IMD=QU.yt)==null?void 0:IMD.config_)||(QU==null?void 0:(A8b=QU.ytcfg)==null?void 0:A8b.data_)||{};g.nV("yt.config_",aw);var FB=[];var gZn=/^[\w.]*$/,FWi={q:!0,search_query:!0},WWn=String(gv);var J5=new function(){var u=window.document;this.G=window;this.N=u};
g.nV("yt.ads_.signals_.getAdSignalsString",function(u){return uA(fP(u))});g.u3();var jgf="XMLHttpRequest"in g.Vn?function(){return new XMLHttpRequest}:null;var xkq="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.l(xkq);var yKR={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"},RGa="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.l(xkq)),I8n=!1,LcV=pdj,f8R=Sp;g.P(qI,Cq);oJ.prototype.then=function(u,h,L){return this.G?this.G.then(u,h,L):this.X===1&&u?(u=u.call(L,this.N))&&typeof u.then==="function"?u:UJ(u):this.X===2&&h?(u=h.call(L,this.N))&&typeof u.then==="function"?u:NI(u):this};
oJ.prototype.getValue=function(){return this.N};
oJ.prototype.$goog_Thenable=!0;var GT=!1;var ai=WS||FI;var vKY=/^([0-9\.]+):([0-9\.]+)$/;g.P(OO,Cq);OO.prototype.name="BiscottiError";g.P(J2,Cq);J2.prototype.name="BiscottiMissingError";var oKL={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},fF=null;var qYe=pii(["data-"]),dgj={};var PV8=0,DD=g.WM?"webkit":ff?"moz":g.cx?"ms":g.P$?"o":"",CV1=g.wn("ytDomDomGetNextId")||function(){return++PV8};
g.nV("ytDomDomGetNextId",CV1);var wdw={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};CF.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
CF.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
CF.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Mr=g.Vn.ytEventsEventsListeners||{};g.nV("ytEventsEventsListeners",Mr);var $gR=g.Vn.ytEventsEventsCounter||{count:0};g.nV("ytEventsEventsCounter",$gR);var b5V=fv(function(){var u=!1;try{var h=Object.defineProperty({},"passive",{get:function(){u=!0}});
window.addEventListener("test",null,h)}catch(L){}return u}),tBn=fv(function(){var u=!1;
try{var h=Object.defineProperty({},"capture",{get:function(){u=!0}});
window.addEventListener("test",null,h)}catch(L){}return u});var lR;lR=window;g.vC=lR.ytcsi&&lR.ytcsi.now?lR.ytcsi.now:lR.performance&&lR.performance.timing&&lR.performance.now&&lR.performance.timing.navigationStart?function(){return lR.performance.timing.navigationStart+lR.performance.now()}:function(){return(new Date).getTime()};g.jb(XA,g.m);XA.prototype.Y=function(u){u.G===void 0&&eG1(u);var h=u.G;u.N===void 0&&eG1(u);this.G=new g.O6(h,u.N)};
XA.prototype.mu=function(){return this.G||new g.O6};
XA.prototype.AB=function(){if(this.G){var u=(0,g.vC)();if(this.B!=0){var h=this.C,L=this.G,Z=h.x-L.x;h=h.y-L.y;Z=Math.sqrt(Z*Z+h*h)/(u-this.B);this.N[this.X]=Math.abs((Z-this.T)/this.T)>.5?1:0;for(L=h=0;L<4;L++)h+=this.N[L]||0;h>=3&&this.V();this.T=Z}this.B=u;this.C=this.G;this.X=(this.X+1)%4}};
XA.prototype.Ni=function(){g.PS(this.S);g.Ql(this.RH)};g.P(vD,g.m);vD.prototype.W=function(u,h,L,Z,y){L=g.EC((0,g.Ej)(L,Z||this.vJ));L={target:u,name:h,callback:L};var R;y&&b5V()&&(R={passive:!0});u.addEventListener(h,L.callback,R);this.V.push(L);return L};
vD.prototype.FJ=function(u){for(var h=0;h<this.V.length;h++)if(this.V[h]==u){this.V.splice(h,1);u.target.removeEventListener(u.name,u.callback);break}};
vD.prototype.Ni=function(){g.Tj(this);g.m.prototype.Ni.call(this)};Y9.prototype.clone=function(){var u=new Y9,h;for(h in this)if(this.hasOwnProperty(h)){var L=this[h];u[h]=aR(L)=="object"?g.No(L):L}return u};var Q7b=["att/get"],uvl=["embedded_player"],LGw=["account/get_setting_values"],Mcc=["share/get_share_panel"],iwr=["share/get_web_player_share_panel"],Qpb=["feedback"],lMb=["notification/modify_channel_preference"],c1R=["player"],SVR=["browse/edit_playlist"],RQa=["account/set_setting"],Xhr=["subscription/subscribe"],ve7=["subscription/unsubscribe"],PXj=["next","unplugged/watch_next"];var Nr;g.oO=fv(function(){try{var u=new Hx;var h=u.isAvailable()?u:null}catch(L){return null}return h?new g.oH(h):null});
Nr=fv(function(){var u=new hjV;return u.isAvailable()?new g.oH(u):null});g.qV1=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.nV("yt.msgs_",g.qV1);zj.prototype.wI=function(u,h){u={};var L=[];"USER_SESSION_ID"in aw&&L.push({key:"u",value:g.tn("USER_SESSION_ID")});if(L=wvf(L))u.Authorization=L,L=h=h==null?void 0:h.sessionIndex,L===void 0&&(L=Number(g.tn("SESSION_INDEX",0)),L=isNaN(L)?0:L),g.MI("voice_search_auth_header_removal")||(u["X-Goog-AuthUser"]=L.toString()),"INNERTUBE_HOST_OVERRIDE"in aw||(u["X-Origin"]=window.location.origin),h===void 0&&"DELEGATED_SESSION_ID"in aw&&(u["X-Goog-PageId"]=g.tn("DELEGATED_SESSION_ID"));return u};var O3={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var nF=g.wn("ytglobal.prefsUserPrefsPrefs_")||{};g.nV("ytglobal.prefsUserPrefsPrefs_",nF);var mY;g.K=huj.prototype;g.K.get=function(u,h){et(u);wN(u);u=nF[u]!==void 0?nF[u].toString():null;return u!=null?u:h?h:""};
g.K.set=function(u,h){et(u);wN(u);if(h==null)throw Error("ExpectedNotNull");nF[u]=h.toString()};
g.K.remove=function(u){et(u);wN(u);delete nF[u]};
g.K.save=function(){var u=!0;g.MI("web_secure_pref_cookie_killswitch")&&(u=!1);g.rg(this.G,this.dump(),63072E3,this.N,u)};
g.K.clear=function(){g.t1a(nF)};
g.K.dump=function(){var u=[],h;for(h in nF)nF.hasOwnProperty(h)&&u.push(h+"="+encodeURIComponent(String(nF[h])));return u.join("&")};
g.K.parse=function(u){u=decodeURIComponent(u).split("&");for(var h=0;h<u.length;h++){var L=u[h].split("="),Z=L[0];(L=L[1])&&(nF[Z]=L.toString())}};var yWl={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"},XnR={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},vBb={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},pxL={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.P(g.aO,Error);WD.prototype.xB=function(u,h){return FA(u,1,h)};
WD.prototype.wK=function(u){(u=this.G.get(u))&&u()};g.wn("yt.scheduler.instance.timerIdMap_");g.P(EO,WD);EO.prototype.OA=function(u){if(u===void 0||!Number.isNaN(Number(u))){var h=g.wn("yt.scheduler.instance.cancelJob");h?h(u):g.x7(u)}};
EO.prototype.start=function(){var u=g.wn("yt.scheduler.instance.start");u&&u()};
EO.prototype.pause=function(){var u=g.wn("yt.scheduler.instance.pause");u&&u()};
g.sM=g.k9();jF.prototype.set=function(u,h,L,Z){L=L||31104E3;this.remove(u);if(this.G)try{this.G.set(u,h,Date.now()+L*1E3);return}catch(R){}var y="";if(Z)try{y=escape(g.qE(h))}catch(R){return}else y=escape(h);g.rg(u,y,L,this.N)};
jF.prototype.get=function(u,h){var L=void 0,Z=!this.G;if(!Z)try{L=this.G.get(u)}catch(y){Z=!0}if(Z&&(L=g.BS(u))&&(L=unescape(L),h))try{L=JSON.parse(L)}catch(y){this.remove(u),L=void 0}return L};
jF.prototype.remove=function(u){this.G&&this.G.remove(u);g.zT(u,"/",this.N)};
jF.prototype.getCreationTime=function(u){return this.G&&(u=(this.G.N(u)||{}).creation,typeof u==="number")?u:null};var hv=function(){var u;return function(){u||(u=new jF("ytidb"));return u}}();var KM=[],Z3,Jv=!1;var So={},fxf=(So.AUTH_INVALID="No user identifier specified.",So.EXPLICIT_ABORT="Transaction was explicitly aborted.",So.IDB_NOT_SUPPORTED="IndexedDB is not supported.",So.MISSING_INDEX="Index not created.",So.MISSING_OBJECT_STORES="Object stores not created.",So.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",So.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",So.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",So.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",So.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",So.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",So.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",So),X8={},D0n=(X8.AUTH_INVALID="ERROR",X8.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",X8.EXPLICIT_ABORT="IGNORED",
X8.IDB_NOT_SUPPORTED="ERROR",X8.MISSING_INDEX="WARNING",X8.MISSING_OBJECT_STORES="ERROR",X8.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",X8.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",X8.QUOTA_EXCEEDED="WARNING",X8.QUOTA_MAYBE_EXCEEDED="WARNING",X8.UNKNOWN_ABORT="WARNING",X8.INCOMPATIBLE_DB_VERSION="WARNING",X8),v8={},cWn=(v8.AUTH_INVALID=!1,v8.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,v8.EXPLICIT_ABORT=!1,v8.IDB_NOT_SUPPORTED=!1,v8.MISSING_INDEX=!1,v8.MISSING_OBJECT_STORES=!1,v8.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,v8.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,v8.QUOTA_EXCEEDED=!1,v8.QUOTA_MAYBE_EXCEEDED=!0,v8.UNKNOWN_ABORT=!0,v8.INCOMPATIBLE_DB_VERSION=!1,v8);g.P(g.Ii,g.aO);g.P(Av,g.Ii);g.P(xw,Error);var Ixb=["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.Q3.all=function(u){return new g.Q3(new ix(function(h,L){var Z=[],y=u.length;y===0&&h(Z);for(var R={HP:0};R.HP<u.length;R={HP:R.HP},++R.HP)g.Q3.resolve(u[R.HP]).then(function(p){return function(J){Z[p.HP]=J;y--;y===0&&h(Z)}}(R)).catch(function(p){L(p)})}))};
g.Q3.resolve=function(u){return new g.Q3(new ix(function(h,L){u instanceof g.Q3?u.then(h,L):h(u)}))};
g.Q3.reject=function(u){return new g.Q3(new ix(function(h,L){L(u)}))};
g.Q3.prototype.then=function(u,h){var L=this,Z=u!=null?u:x0R,y=h!=null?h:AWf;return new g.Q3(new ix(function(R,p){L.state.status==="PENDING"?(L.G.push(function(){P6e(L,L,Z,R,p)}),L.N.push(function(){C6a(L,L,y,R,p)})):L.state.status==="FULFILLED"?P6e(L,L,Z,R,p):L.state.status==="REJECTED"&&C6a(L,L,y,R,p)}))};
g.Q3.prototype.catch=function(u){return this.then(void 0,u)};g.K=XxV.prototype;g.K.add=function(u,h,L){return g.oi(this,[u],{mode:"readwrite",PJ:!0},function(Z){return Z.objectStore(u).add(h,L)})};
g.K.clear=function(u){return g.oi(this,[u],{mode:"readwrite",PJ:!0},function(h){return h.objectStore(u).clear()})};
g.K.close=function(){this.G.close();var u;((u=this.options)==null?0:u.closed)&&this.options.closed()};
g.K.count=function(u,h){return g.oi(this,[u],{mode:"readonly",PJ:!0},function(L){return L.objectStore(u).count(h)})};
g.K.delete=function(u,h){return g.oi(this,[u],{mode:"readwrite",PJ:!0},function(L){return L.objectStore(u).delete(h)})};
g.K.get=function(u,h){return g.oi(this,[u],{mode:"readonly",PJ:!0},function(L){return L.objectStore(u).get(h)})};
g.K.getAll=function(u,h,L){return g.oi(this,[u],{mode:"readonly",PJ:!0},function(Z){return Z.objectStore(u).getAll(h,L)})};
g.K.objectStoreNames=function(){return Array.from(this.G.objectStoreNames)};
g.K.getName=function(){return this.G.name};
g.K=qp.prototype;g.K.add=function(u,h){return SF(this.G.add(u,h))};
g.K.autoIncrement=function(){return this.G.autoIncrement};
g.K.clear=function(){return SF(this.G.clear()).then(function(){})};
g.K.count=function(u){return SF(this.G.count(u))};
g.K.delete=function(u){return u instanceof IDBKeyRange?Ycw(this,u):SF(this.G.delete(u))};
g.K.get=function(u){return SF(this.G.get(u))};
g.K.getAll=function(u,h){return"getAll"in IDBObjectStore.prototype?SF(this.G.getAll(u,h)):oca(this,u,h)};
g.K.index=function(u){try{return new HcV(this.G.index(u))}catch(h){if(h instanceof Error&&h.name==="NotFoundError")throw new xw(u,this.G.name);throw h;}};
g.K.getName=function(){return this.G.name};
g.K.keyPath=function(){return this.G.keyPath};
Gr.prototype.abort=function(){this.G.abort();this.N=!0;throw new g.Ii("EXPLICIT_ABORT");};
Gr.prototype.objectStore=function(u){u=this.G.objectStore(u);var h=this.X.get(u);h||(h=new qp(u),this.X.set(u,h));return h};
g.K=HcV.prototype;g.K.count=function(u){return SF(this.G.count(u))};
g.K.delete=function(u){return g.mm(this,{query:u},function(h){return h.delete().then(function(){return g.BC(h)})})};
g.K.get=function(u){return SF(this.G.get(u))};
g.K.getAll=function(u,h){return"getAll"in IDBIndex.prototype?SF(this.G.getAll(u,h)):rWe(this,u,h)};
g.K.keyPath=function(){return this.G.keyPath};
g.K.unique=function(){return this.G.unique};
dc.prototype.delete=function(){return SF(this.cursor.delete()).then(function(){})};
dc.prototype.getValue=function(){return this.cursor.value};
dc.prototype.update=function(u){return SF(this.cursor.update(u))};nM.prototype.N=function(u,h,L){L=L===void 0?{}:L;return zu1(u,h,L)};
nM.prototype.delete=function(u){u=u===void 0?{}:u;return V3(this.name,u)};
nM.prototype.open=function(){function u(){var R,p,J,O,f,D,c,I,A,x;return g.G(function(Q){switch(Q.G){case 1:return p=(R=Error().stack)!=null?R:"",g.Qn(Q,2),g.N(Q,L.N(L.name,L.options.version,y),4);case 4:for(var S=J=Q.N,v=L.options,T=[],U=g.C(Object.keys(v.wC)),z=U.next();!z.done;z=U.next()){z=z.value;var d=v.wC[z],W=d.u9d===void 0?Number.MAX_VALUE:d.u9d;!(S.G.version>=d.wN)||S.G.version>=W||S.G.objectStoreNames.contains(z)||T.push(z)}O=T;if(O.length===0){Q.KI(5);break}f=Object.keys(L.options.wC);
D=J.objectStoreNames();if(L.T<g.iA("ytidb_reopen_db_retries",0))return L.T++,J.close(),OW(new g.Ii("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:L.name,expectedObjectStores:f,foundObjectStores:D})),Q.return(u());if(!(L.B<g.iA("ytidb_remake_db_retries",1))){Q.KI(6);break}L.B++;return g.N(Q,L.delete(),7);case 7:return OW(new g.Ii("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:L.name,expectedObjectStores:f,foundObjectStores:D})),Q.return(u());case 6:throw new Av(D,f);case 5:return Q.return(J);case 2:c=
g.Xf(Q);if(c instanceof DOMException?c.name!=="VersionError":"DOMError"in self&&c instanceof DOMError?c.name!=="VersionError":!(c instanceof Object&&"message"in c)||c.message!=="An attempt was made to open a database using a lower version than the existing version."){Q.KI(8);break}return g.N(Q,L.N(L.name,void 0,Object.assign({},y,{upgrade:void 0})),9);case 9:I=Q.N;A=I.G.version;if(L.options.version!==void 0&&A>L.options.version+1)throw I.close(),L.X=!1,m0l(L,A);return Q.return(I);case 8:throw h(),
c instanceof Error&&!g.MI("ytidb_async_stack_killswitch")&&(c.stack=c.stack+"\n"+p.substring(p.indexOf("\n")+1)),CM(c,L.name,"",(x=L.options.version)!=null?x:-1);}})}
function h(){L.G===Z&&(L.G=void 0)}
var L=this;if(!this.X)throw m0l(this);if(this.G)return this.G;var Z,y={blocking:function(R){R.close()},
closed:h,Ora:h,upgrade:this.options.upgrade};return this.G=Z=u()};var wc=new nM("YtIdbMeta",{wC:{databases:{wN:1}},upgrade:function(u,h){h(1)&&g.Tr(u,"databases",{keyPath:"actualName"})}});var WC,tv=new function(){}(new function(){});new g.Ab;g.P(EW,nM);EW.prototype.N=function(u,h,L){L=L===void 0?{}:L;return(this.options.shared?tzV:$0Y)(u,h,Object.assign({},L))};
EW.prototype.delete=function(u){u=u===void 0?{}:u;return(this.options.shared?Ecl:WXf)(this.name,u)};var TYu={},gcV=g.kw("ytGcfConfig",{wC:(TYu.coldConfigStore={wN:1},TYu.hotConfigStore={wN:1},TYu),shared:!1,upgrade:function(u,h){h(1)&&(g.HC(g.Tr(u,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.HC(g.Tr(u,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});g.P(uI,g.m);uI.prototype.Ni=function(){for(var u=g.C(this.N),h=u.next();!h.done;h=u.next()){var L=this.G;h=L.indexOf(h.value);h>=0&&L.splice(h,1)}this.N.length=0;g.m.prototype.Ni.call(this)};RD.prototype.Zm=function(u){this.hotHashData=u;g.nV("yt.gcf.config.hotHashData",this.hotHashData||null)};var YVr=typeof TextEncoder!=="undefined"?new TextEncoder:null,swL=YVr?function(u){return YVr.encode(u)}:function(u){u=g.QK(u);
for(var h=new Uint8Array(u.length),L=0;L<h.length;L++)h[L]=u[L];return h};var gM1={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},j61={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};fd.prototype.n0=function(){return{version:this.version,args:this.args}};DP.prototype.toString=function(){return this.topic};var oeq=g.wn("ytPubsub2Pubsub2Instance")||new g.vx;g.vx.prototype.subscribe=g.vx.prototype.subscribe;g.vx.prototype.unsubscribeByKey=g.vx.prototype.uW;g.vx.prototype.publish=g.vx.prototype.publish;g.vx.prototype.clear=g.vx.prototype.clear;g.nV("ytPubsub2Pubsub2Instance",oeq);var Ad=g.wn("ytPubsub2Pubsub2SubscribedKeys")||{};g.nV("ytPubsub2Pubsub2SubscribedKeys",Ad);var iI=g.wn("ytPubsub2Pubsub2TopicToKeys")||{};g.nV("ytPubsub2Pubsub2TopicToKeys",iI);var YCj=g.wn("ytPubsub2Pubsub2IsAsync")||{};
g.nV("ytPubsub2Pubsub2IsAsync",YCj);g.nV("ytPubsub2Pubsub2SkipSubKey",null);var Se=void 0,lI=void 0;var dHn=g.iA("max_body_size_to_compress",5E5),VvV=g.iA("min_body_size_to_compress",500),T_=!0,U3=0,Nv=0,wnb=g.iA("compression_performance_threshold_lr",250),ePL=g.iA("slow_compressions_before_abandon_count",4),vb=!1,qv=new Map,YM=1,nBR=!0;g.K=Hb.prototype;g.K.writeThenSend=function(u,h){var L=this;h=h===void 0?{}:h;if(G_(this)&&this.G){var Z={url:u,options:h,timestamp:this.now(),status:"NEW",sendCount:0};this.I4.set(Z,this.Q$).then(function(y){Z.id=y;L.Up.jD()&&L.IB(Z)}).catch(function(y){L.IB(Z);
rx(L,y)})}else this.sendFn(u,h)};
g.K.sendThenWrite=function(u,h,L){var Z=this;h=h===void 0?{}:h;if(G_(this)&&this.G){var y={url:u,options:h,timestamp:this.now(),status:"NEW",sendCount:0};this.tB&&this.tB("nwl_skip_retry")&&(y.skipRetry=L);if(this.Up.jD()||this.tB&&this.tB("nwl_aggressive_send_then_write")&&!y.skipRetry){if(!y.skipRetry){var R=h.onError?h.onError:function(){};
h.onError=function(p,J){return g.G(function(O){if(O.G==1)return g.N(O,Z.I4.set(y,Z.Q$).catch(function(f){rx(Z,f)}),2);
R(p,J);g.i1(O)})}}this.sendFn(u,h,y.skipRetry)}else this.I4.set(y,this.Q$).catch(function(p){Z.sendFn(u,h,y.skipRetry);
rx(Z,p)})}else L=this.tB&&this.tB("nwl_skip_retry")&&L,this.sendFn(u,h,L)};
g.K.sendAndWrite=function(u,h){var L=this;h=h===void 0?{}:h;if(G_(this)&&this.G){var Z={url:u,options:h,timestamp:this.now(),status:"NEW",sendCount:0},y=!1,R=h.onSuccess?h.onSuccess:function(){};
Z.options.onSuccess=function(p,J){Z.id!==void 0?L.I4.Xj(Z.id,L.Q$):y=!0;L.Up.hR&&L.tB&&L.tB("vss_network_hint")&&L.Up.hR(!0);R(p,J)};
this.sendFn(Z.url,Z.options,void 0,!0);this.I4.set(Z,this.Q$).then(function(p){Z.id=p;y&&L.I4.Xj(Z.id,L.Q$)}).catch(function(p){rx(L,p)})}else this.sendFn(u,h,void 0,!0)};
g.K.Lh=function(){var u=this;if(!G_(this))throw Error("IndexedDB is not supported: throttleSend");this.N||(this.N=this.R9.xB(function(){var h;return g.G(function(L){if(L.G==1)return g.N(L,u.I4.Zd("NEW",u.Q$),2);if(L.G!=3)return h=L.N,h?g.N(L,u.IB(h),3):(u.E7(),L.return());u.N&&(u.N=0,u.Lh());g.i1(L)})},this.ES))};
g.K.E7=function(){this.R9.OA(this.N);this.N=0};
g.K.IB=function(u){var h=this,L;return g.G(function(Z){switch(Z.G){case 1:if(!G_(h))throw Error("IndexedDB is not supported: immediateSend");if(u.id===void 0){Z.KI(2);break}return g.N(Z,h.I4.M7I(u.id,h.Q$),3);case 3:(L=Z.N)||h.UQ(Error("The request cannot be found in the database."));case 2:if(h.Ap(u,h.bI)){Z.KI(4);break}h.UQ(Error("Networkless Logging: Stored logs request expired age limit"));if(u.id===void 0){Z.KI(5);break}return g.N(Z,h.I4.Xj(u.id,h.Q$),5);case 5:return Z.return();case 4:u.skipRetry||
(u=bIa(h,u));if(!u){Z.KI(0);break}if(!u.skipRetry||u.id===void 0){Z.KI(8);break}return g.N(Z,h.I4.Xj(u.id,h.Q$),8);case 8:h.sendFn(u.url,u.options,!!u.skipRetry),g.i1(Z)}})};
g.K.Ap=function(u,h){u=u.timestamp;return this.now()-u>=h?!1:!0};
g.K.Nw=function(){var u=this;if(!G_(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.I4.Zd("QUEUED",this.Q$).then(function(h){h&&!u.Ap(h,u.vT)?u.R9.xB(function(){return g.G(function(L){if(L.G==1)return h.id===void 0?L.KI(2):g.N(L,u.I4.G$(h.id,u.Q$),2);u.Nw();g.i1(L)})}):u.Up.jD()&&u.Lh()})};var Bb;var QO1={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,
fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,
castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515};var NYD={},RNY=g.kw("ServiceWorkerLogsDatabase",{wC:(NYD.SWHealthLog={wN:1},NYD),shared:!0,upgrade:function(u,h){h(1)&&g.HC(g.Tr(u,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var VS={},DIw=0;var nd;wx.prototype.requestComplete=function(u,h){h&&(this.N=!0);u=this.removeParams(u);this.G.get(u)||this.G.set(u,h)};
wx.prototype.isEndpointCFR=function(u){u=this.removeParams(u);return(u=this.G.get(u))?!1:u===!1&&this.N?!0:null};
wx.prototype.removeParams=function(u){return u.split("?")[0]};
wx.prototype.removeParams=wx.prototype.removeParams;wx.prototype.isEndpointCFR=wx.prototype.isEndpointCFR;wx.prototype.requestComplete=wx.prototype.requestComplete;wx.getInstance=ee;g.P(aD,g.Ev);g.K=aD.prototype;g.K.jD=function(){return this.G.jD()};
g.K.hR=function(u){this.G.G=u};
g.K.tE=function(){var u=window.navigator.onLine;return u===void 0?!0:u};
g.K.ax=function(){this.N=!0};
g.K.listen=function(u,h){return this.G.listen(u,h)};
g.K.BY=function(u){u=V0(this.G,u);u.then(function(h){g.MI("use_cfr_monitor")&&ee().requestComplete("generate_204",h)});
return u};
aD.prototype.sendNetworkCheckRequest=aD.prototype.BY;aD.prototype.listen=aD.prototype.listen;aD.prototype.enableErrorFlushing=aD.prototype.ax;aD.prototype.getWindowStatus=aD.prototype.tE;aD.prototype.networkStatusHint=aD.prototype.hR;aD.prototype.isNetworkAvailable=aD.prototype.jD;aD.getInstance=A51;g.P(g.$M,g.Ev);g.$M.prototype.jD=function(){var u=g.wn("yt.networkStatusManager.instance.isNetworkAvailable");return u?u.bind(this.N)():!0};
g.$M.prototype.hR=function(u){var h=g.wn("yt.networkStatusManager.instance.networkStatusHint").bind(this.N);h&&h(u)};
g.$M.prototype.BY=function(u){var h=this,L;return g.G(function(Z){L=g.wn("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(h.N);return g.MI("skip_network_check_if_cfr")&&ee().isEndpointCFR("generate_204")?Z.return(new Promise(function(y){var R;h.hR(((R=window.navigator)==null?void 0:R.onLine)||!0);y(h.jD())})):L?Z.return(L(u)):Z.return(!0)})};var td;g.P(Wb,Hb);Wb.prototype.writeThenSend=function(u,h){h||(h={});h=bI(u,h);g.t2()||(this.G=!1);Hb.prototype.writeThenSend.call(this,u,h)};
Wb.prototype.sendThenWrite=function(u,h,L){h||(h={});h=bI(u,h);g.t2()||(this.G=!1);Hb.prototype.sendThenWrite.call(this,u,h,L)};
Wb.prototype.sendAndWrite=function(u,h){h||(h={});h=bI(u,h);g.t2()||(this.G=!1);Hb.prototype.sendAndWrite.call(this,u,h)};
Wb.prototype.awaitInitialization=function(){return this.X.promise};var iPe=g.Vn.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.nV("ytNetworklessLoggingInitializationOptions",iPe);g.E3.prototype.isReady=function(){!this.config_&&xHl()&&(this.config_=g.Kd());return!!this.config_};var UkV,ug,hQ;UkV=g.Vn.ytPubsubPubsubInstance||new g.vx;ug=g.Vn.ytPubsubPubsubSubscribedKeys||{};hQ=g.Vn.ytPubsubPubsubTopicToKeys||{};g.js=g.Vn.ytPubsubPubsubIsSynchronous||{};g.vx.prototype.subscribe=g.vx.prototype.subscribe;g.vx.prototype.unsubscribeByKey=g.vx.prototype.uW;g.vx.prototype.publish=g.vx.prototype.publish;g.vx.prototype.clear=g.vx.prototype.clear;g.nV("ytPubsubPubsubInstance",UkV);g.nV("ytPubsubPubsubTopicToKeys",hQ);g.nV("ytPubsubPubsubIsSynchronous",g.js);
g.nV("ytPubsubPubsubSubscribedKeys",ug);var qJb={};g.P(xo,g.m);xo.prototype.append=function(u){if(!this.N)throw Error("This does not support the append operation");u=u.lP();this.lP().appendChild(u)};
g.P(P5,xo);P5.prototype.lP=function(){return this.G};g.P(o7f,g.m);var Cr=Date.now().toString();var Ss={};var o6=Symbol("injectionDeps");qX.prototype.toString=function(){return"InjectionToken("+this.name+")"};
HPY.prototype.resolve=function(u){return u instanceof Tt?NX(this,u.key,[],!0):NX(this,u,[])};var U2;var H5=window;var mU=g.MI("web_enable_lifecycle_monitoring")&&r5()!==0,n7e=g.MI("web_enable_lifecycle_monitoring");mIY.prototype.cancel=function(){for(var u=g.C(this.G),h=u.next();!h.done;h=u.next())h=h.value,h.jobId===void 0||h.sJ||this.scheduler.OA(h.jobId),h.sJ=!0;this.N.resolve()};g.K=d5.prototype;g.K.install=function(u){this.plugins.push(u);return this};
g.K.uninstall=function(){var u=this;g.NL.apply(0,arguments).forEach(function(h){h=u.plugins.indexOf(h);h>-1&&u.plugins.splice(h,1)})};
g.K.transition=function(u,h){var L=this;mU&&Bgn(this.state);var Z=this.transitions.find(function(R){return Array.isArray(R.from)?R.from.find(function(p){return p===L.state&&R.le===u}):R.from===L.state&&R.le===u});
if(Z){this.N&&(dI1(this.N),this.N=void 0);sJf(this,u,h);this.state=u;mU&&B5(this.state);Z=Z.action.bind(this);var y=this.plugins.filter(function(R){return R[u]}).map(function(R){return R[u]});
Z(VpR(this,y),h)}else throw Error("no transition specified from "+this.state+" to "+u);};
g.K.rad=function(u){var h=g.NL.apply(1,arguments);g.k9();for(var L=g.C(u),Z=L.next(),y={};!Z.done;y={aB:void 0},Z=L.next())y.aB=Z.value,JWL(function(R){return function(){nr(R.aB.name);w5(function(){return R.aB.callback.apply(R.aB,g.l(h))});
s2(R.aB.name)}}(y))};
g.K.D3I=function(u){var h=g.NL.apply(1,arguments),L,Z,y,R;return g.G(function(p){p.G==1&&(g.k9(),L=g.C(u),Z=L.next(),y={});if(p.G!=3){if(Z.done)return p.KI(0);y.Cz=Z.value;y.tX=void 0;R=function(J){return function(){nr(J.Cz.name);var O=w5(function(){return J.Cz.callback.apply(J.Cz,g.l(h))});
jU(O)?J.tX=g.MI("web_lifecycle_error_handling_killswitch")?O.then(function(){s2(J.Cz.name)}):O.then(function(){s2(J.Cz.name)},function(f){zNY(f);
s2(J.Cz.name)}):s2(J.Cz.name)}}(y);
JWL(R);return y.tX?g.N(p,y.tX,3):p.KI(3)}y={Cz:void 0,tX:void 0};Z=L.next();return p.KI(2)})};
g.K.Al=function(u){var h=g.NL.apply(1,arguments),L=this,Z=u.map(function(y){return{FX:function(){nr(y.name);w5(function(){return y.callback.apply(y,g.l(h))});
s2(y.name)},
priority:V8(L,y)}});
Z.length&&(this.N=new mIY(Z))};
g.Js.Object.defineProperties(d5.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var a6;g.P(es,d5);es.prototype.T=function(u,h){var L=this;this.G=g.bw(0,function(){L.currentState==="application_navigating"&&L.transition("none")},5E3);
u(h==null?void 0:h.event)};
es.prototype.C=function(u,h){this.G&&(g.sM.OA(this.G),this.G=null);u(h==null?void 0:h.event)};var x1=[];g.nV("yt.logging.transport.getScrapedGelPayloads",function(){return x1});$o.prototype.storePayload=function(u,h){u=tQ(u);this.store[u]?this.store[u].push(h):(this.N={},this.store[u]=[h]);this.G++;g.MI("more_accurate_gel_parser")&&(h=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(h));return u};
$o.prototype.smartExtractMatchingEntries=function(u){if(!u.keys.length)return[];for(var h=FR(this,u.keys.splice(0,1)[0]),L=[],Z=0;Z<h.length;Z++)this.store[h[Z]]&&u.sizeLimit&&(this.store[h[Z]].length<=u.sizeLimit?(L.push.apply(L,g.l(this.store[h[Z]])),delete this.store[h[Z]]):L.push.apply(L,g.l(this.store[h[Z]].splice(0,u.sizeLimit))));this.G-=L.length;(u==null?0:u.sizeLimit)&&L.length<(u==null?void 0:u.sizeLimit)&&(u.sizeLimit-=L.length,L.push.apply(L,g.l(this.smartExtractMatchingEntries(u))));
return L};
$o.prototype.extractMatchingEntries=function(u){u=FR(this,u);for(var h=[],L=0;L<u.length;L++)this.store[u[L]]&&(h.push.apply(h,g.l(this.store[u[L]])),delete this.store[u[L]]);this.G-=h.length;return h};
$o.prototype.getSequenceCount=function(u){u=FR(this,u);for(var h=0,L=0;L<u.length;L++){var Z=void 0;h+=((Z=this.store[u[L]])==null?void 0:Z.length)||0}return h};
$o.prototype.getSequenceCount=$o.prototype.getSequenceCount;$o.prototype.extractMatchingEntries=$o.prototype.extractMatchingEntries;$o.prototype.smartExtractMatchingEntries=$o.prototype.smartExtractMatchingEntries;$o.prototype.storePayload=$o.prototype.storePayload;var KY1=g.iA("initial_gel_batch_timeout",2E3),pDn=g.iA("gel_queue_timeout_max_ms",6E4),J2j=g.iA("gel_min_batch_size",5),Zg=void 0,iFa=new bg,Mtw=new bg,Rs1=new bg,y2Y=new bg,RE,Dg=!0,AX=1,ko=new Map,OZ=g.Vn.ytLoggingTransportTokensToCttTargetIds_||{};g.nV("ytLoggingTransportTokensToCttTargetIds_",OZ);var JX=g.Vn.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.nV("ytLoggingTransportTokensToJspbCttTargetIds_",JX);var j9={},eNV=!1;var P3=g.Vn.ytLoggingGelSequenceIdObj_||{};g.nV("ytLoggingGelSequenceIdObj_",P3);var g9s=[];var HFi,q9=g.Vn.ytLoggingDocDocumentNonce_;q9||(q9=g.ig(16),g.nV("ytLoggingDocDocumentNonce_",q9));HFi=q9;var NNj={RE:0,DTI:1,kzB:2,UL:3,qad:4,C87:5,zlw:6,SHARE:7,faB:8,utI:9,gcI:10,oqI: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 SOb=1;g.K=M_.prototype;g.K.getAsJson=function(){var u={};this.G.trackingParams!==void 0?u.trackingParams=this.G.trackingParams:(u.veType=this.G.veType,this.G.veCounter!==void 0&&(u.veCounter=this.G.veCounter),this.G.elementIndex!==void 0&&(u.elementIndex=this.G.elementIndex));this.G.dataElement!==void 0&&(u.dataElement=this.G.dataElement.getAsJson());this.G.youtubeData!==void 0&&(u.youtubeData=this.G.youtubeData);this.G.isCounterfactual&&(u.isCounterfactual=!0);return u};
g.K.getAsJspb=function(){var u=new NH;this.G.trackingParams!==void 0?u.setTrackingParams(this.G.trackingParams):(this.G.veType!==void 0&&Vx(u,2,OY(this.G.veType)),this.G.veCounter!==void 0&&Vx(u,6,OY(this.G.veCounter)),this.G.elementIndex!==void 0&&Vx(u,3,OY(this.G.elementIndex)),this.G.isCounterfactual&&Vx(u,5,pa(!0)));if(this.G.dataElement!==void 0){var h=this.G.dataElement.getAsJspb();p9(u,NH,7,h)}this.G.youtubeData!==void 0&&p9(u,nZf,8,this.G.jspbYoutubeData);return u};
g.K.toString=function(){return JSON.stringify(this.getAsJson())};
g.K.isClientVe=function(){return!this.G.trackingParams&&!!this.G.veType};
g.K.getLoggingDirectives=function(){return this.G.loggingDirectives};g.nV("yt_logging_screen.getRootVeType",TNR);g.nV("yt_logging_screen.getCurrentCsn",g.S9);g.nV("yt_logging_screen.getCttAuthInfo",XY);g.nV("yt_logging_screen.setCurrentScreen",r21);var mrn="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var ttj=[{L1:function(u){return"Cannot read property '"+u.key+"'"},
yv:{Error:[{YB:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{YB:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{YB:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{YB:/\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"]},{YB:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{YB:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{YB:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{L1:function(u){return"Cannot call '"+u.key+"'"},
yv:{TypeError:[{YB:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{YB:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{YB:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{YB:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{YB:/\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"]},
{YB:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{L1:function(u){return u.key+" is not defined"},
yv:{ReferenceError:[{YB:/(.*) is not defined/,groups:["key"]},{YB:/Can't find variable: (.*)/,groups:["key"]}]}}];var sOl={OW:[],Lv:[{callback:drl,weight:500}]};var q_;var H3=new g.vx;var WYf=new Set,aDa=0,E9Y=0,bFn=0,$rl=[],kjl=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var jia=new g.vn("parallelCommand");var ZMn=new g.vn("performOnceCommand");var Lml=new g.vn("serialCommand");var B3=void 0;var GDy=g.C(qzf({},"Z39Sdf"));GDy.next();GDy.next();var Hwy=g.C(qzf(null,"qqrkLd"));Hwy.next();Hwy.next();g.P(dD,fd);var Tv1=new DP("screen-created",dD),EZ=[],RSR=f3j,k1=0,ne=new Map,sZ=new Map,wD=new Map;g.jb(g.yV,g.m);g.K=g.yV.prototype;g.K.subscribe=function(u,h,L){return this.ww()?0:this.SY.subscribe(u,h,L)};
g.K.unsubscribe=function(u,h,L){return this.ww()?!1:this.SY.unsubscribe(u,h,L)};
g.K.uW=function(u){return this.ww()?!1:this.SY.uW(u)};
g.K.publish=function(u,h){return this.ww()?!1:this.SY.publish.apply(this.SY,arguments)};
g.K.Cm=function(u,h){for(var L in u)this.subscribe(L,u[L],h)};
g.K.u6=function(u,h){for(var L in u)this.unsubscribe(L,u[L],h)};var mYj=16/9,Ts=[.25,.5,.75,1,1.25,1.5,1.75,2],r8q=Ts.concat([3,4,5,6,7,8,9,10,15]),BY7=Ts.concat([2.5,3,3.5,4]),zJy=Ts.concat([2.5,3]);var DpY=1;g.P(g.pu,g.m);g.K=g.pu.prototype;
g.K.createElement=function(u,h){h=h||u.K==="svg";var L=u.U,Z=u.CI;if(h){var y=document.createElementNS("http://www.w3.org/2000/svg",u.K);g.eJ&&(u.J||(u.J={}),u.J.focusable="false")}else y=g.kJ(u.K);if(L){if(L=Ku(this,y,"class",L))Jm(this,y,"class",L),this.vJ[L]=y}else if(Z){L=g.C(Z);for(var R=L.next();!R.done;R=L.next())this.vJ[R.value]=y;Jm(this,y,"class",Z.join(" "))}Z=u.dw;L=u.Z;if(Z)h=Ku(this,y,"child",Z),h!==void 0&&y.appendChild(g.gb(h));else if(L)for(Z=0,L=g.C(L),R=L.next();!R.done;R=L.next())if(R=
R.value)if(typeof R==="string")R=Ku(this,y,"child",R),R!=null&&y.appendChild(g.gb(R));else if(R.element)y.appendChild(R.element);else{var p=R;R=this.createElement(p,h);y.appendChild(R);p.XJ&&(p=RG(),R.id=p,R=document.createElementNS("http://www.w3.org/2000/svg","use"),R.setAttribute("class","ytp-svg-shadow"),R.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+p),hf(y,R,Z++))}if(u=u.J)for(h=y,Z=g.C(Object.keys(u)),L=Z.next();!L.done;L=Z.next())L=L.value,R=u[L],Jm(this,h,L,typeof R==="string"?
Ku(this,h,L,R):R);return y};
g.K.BX=function(u){return this.vJ[u]};
g.K.Og=function(u,h){typeof h==="number"?hf(u,this.element,h):u.appendChild(this.element)};
g.K.detach=function(){g.Lx(this.element)};
g.K.update=function(u){for(var h=g.C(Object.keys(u)),L=h.next();!L.done;L=h.next())L=L.value,this.updateValue(L,u[L])};
g.K.updateValue=function(u,h){(u=this.A4["{{"+u+"}}"])&&Jm(this,u[0],u[1],h)};
g.K.Ni=function(){this.vJ={};this.A4={};this.detach();g.m.prototype.Ni.call(this)};g.P(g.a,g.pu);g.K=g.a.prototype;g.K.QF=function(u,h){this.updateValue(h||"content",u)};
g.K.show=function(){this.BJ||(g.Oz(this.element,"display",""),this.BJ=!0)};
g.K.hide=function(){this.BJ&&(g.Oz(this.element,"display","none"),this.BJ=!1)};
g.K.Ay=function(u){u?this.show():this.hide()};
g.K.sU=function(u){this.T=u};
g.K.listen=function(u,h,L){return this.W(this.element,u,h,L)};
g.K.W=function(u,h,L,Z){L=(0,g.Ej)(L,Z||this);Z={target:u,type:h,listener:L};this.listeners.push(Z);u.addEventListener(h,L);return Z};
g.K.FJ=function(u){var h=this;this.listeners.forEach(function(L,Z){L===u&&(L=h.listeners.splice(Z,1)[0],L.target.removeEventListener(L.type,L.listener))})};
g.K.focus=function(){this.element.focus()};
g.K.Ni=function(){for(;this.listeners.length;){var u=this.listeners.pop();u&&u.target.removeEventListener(u.type,u.listener)}g.pu.prototype.Ni.call(this)};g.P(g.OD,g.a);g.OD.prototype.subscribe=function(u,h,L){return this.jd.subscribe(u,h,L)};
g.OD.prototype.unsubscribe=function(u,h,L){return this.jd.unsubscribe(u,h,L)};
g.OD.prototype.uW=function(u){return this.jd.uW(u)};
g.OD.prototype.publish=function(u){return this.jd.publish.apply(this.jd,[u].concat(g.l(g.NL.apply(1,arguments))))};var mkg=new WeakSet;g.P(fu,g.OD);g.K=fu.prototype;g.K.bind=function(u){this.ZI||u.renderer&&this.init(u.id,u.renderer,{},u);return Promise.resolve()};
g.K.init=function(u,h,L){this.ZI=u;this.element.setAttribute("id",this.ZI);this.e7&&g.yN(this.element,this.e7);this.AB=h&&h.adRendererCommands;this.T7=h.interaction;var Z;((Z=this.T7)==null?0:Z.onTap)&&g.yN(this.element,"ytp-ad-component--clickable");this.macros=L;this.S=h.trackingParams||null;var y,R;this.V=(R=(y=g.n(h.rendererContext,nDK))==null?void 0:y.loggingDirectives)!=null?R:h.loggingDirectives;this.S!=null?this.createServerVe(this.element,this.S):this.V&&(u=this.element,h=this.V,this.api.createServerVe(u,
this,!0),this.api.setTrackingParams(u,h.trackingParams||null))};
g.K.clear=function(){};
g.K.hide=function(){g.OD.prototype.hide.call(this);(this.S!=null||this.V)&&this.logVisibility(this.element,!1)};
g.K.show=function(){g.OD.prototype.show.call(this);if(!this.wm){this.wm=!0;var u=this.AB&&this.AB.impressionCommand,h,L=(h=this.T7)==null?void 0:h.onFirstVisible;u?this.hH(u):L&&(u=z3(L))&&this.hH(u)}(this.S!=null||this.V)&&this.logVisibility(this.element,!0)};
g.K.onClick=function(u){if((this.S||this.V)&&!mkg.has(u)){var h=this.element;this.api.hasVe(h)&&this.BJ&&this.api.logClick(h,this.interactionLoggingClientData);mkg.add(u)}var L=this.AB&&this.AB.clickCommand,Z;h=(Z=this.T7)==null?void 0:Z.onTap;if(L)h=this.rh(L),this.hH(h);else{if(Z=h)a:{Z=this.element;u=u.composedPath();u=g.C(u);for(L=u.next();!L.done;L=u.next()){L=L.value;if(L===Z)break;if(L.className.indexOf("ytp-ad-component--clickable")>=0){Z=!1;break a}}Z=!0}Z&&(h=z3(h))&&this.hH(h)}};
g.K.rh=function(u){return u};
g.K.pk=function(u){var h=this.XB;h.V=!0;h.N=u.touches.length;h.G.isActive()&&(h.G.stop(),h.T=!0);u=u.touches;h.C=Ngj(h,u)||u.length!=1;var L=u.item(0);h.C||!L?(h.S=Infinity,h.Y=Infinity):(h.S=L.clientX,h.Y=L.clientY);for(L=h.X.length=0;L<u.length;L++){var Z=u.item(L);h.X.push(Z.identifier)}};
g.K.EC=function(u){var h=this.XB;u=u.changedTouches.item(0);var L;if(L=ac()){L=g.N7();var Z="";if(Fe1())Z=/Windows (?:NT|Phone) ([0-9.]+)/,Z=(L=Z.exec(L))?L[1]:"0.0";else if(ac())Z=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,Z=(L=Z.exec(L))&&L[1].replace(/_/g,".");else if($D())Z=/Mac OS X ([0-9_.]+)/,Z=(L=Z.exec(L))?L[1].replace(/_/g,"."):"10";else if(q7(g.N7(),"KaiOS"))Z=/(?:KaiOS)\/(\S+)/i,Z=(L=Z.exec(L))&&L[1];else if(Wew())Z=/Android\s+([^\);]+)(\)|;)/,Z=(L=Z.exec(L))&&L[1];else if(wV()?H1.platform===
"Chrome OS":B1("CrOS"))Z=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,Z=(L=Z.exec(L))&&L[1];L=!(g.oc(Z||"",8)>=0)}if(L||u&&Math.pow(u.clientX-h.S,2)+Math.pow(u.clientY-h.Y,2)>25)h.B=!0};
g.K.PW=function(u){if(this.XB){var h=this.XB,L=u.changedTouches;L&&h.V&&h.N==1&&!h.B&&!h.T&&!h.C&&Ngj(h,L)&&(h.AB=u,h.G.start());h.N=u.touches.length;h.N===0&&(h.V=!1,h.B=!1,h.X.length=0);h.T=!1}};
g.K.hH=function(u){this.layoutId?this.HX.executeCommand(u,this.layoutId):g.UZ(new g.aO("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
g.K.createServerVe=function(u,h){this.api.createServerVe(u,this);this.api.setTrackingParams(u,h)};
g.K.logVisibility=function(u,h){this.api.hasVe(u)&&this.api.logVisibility(u,h,this.interactionLoggingClientData)};
g.K.Ni=function(){this.clear(null);this.FJ(this.xl);for(var u=g.C(this.gw),h=u.next();!h.done;h=u.next())this.FJ(h.value);g.OD.prototype.Ni.call(this)};g.P(oG,fu);
oG.prototype.init=function(u,h,L){fu.prototype.init.call(this,u,h,L);this.G=h;if(h.text==null&&h.icon==null)g.G3(Error("ButtonRenderer did not have text or an icon set."));else{switch(h.style||null){case "STYLE_UNKNOWN":u="ytp-ad-button-link";break;default:u=null}u!=null&&g.yN(this.element,u);h.text!=null&&(u=g.cL(h.text),g.Xg(u)||(this.element.setAttribute("aria-label",u),this.X=new g.OD({K:"span",U:"ytp-ad-button-text",dw:u}),g.V(this,this.X),this.X.Og(this.element)));h.accessibilityData&&h.accessibilityData.accessibilityData&&
h.accessibilityData.accessibilityData.label&&!g.Xg(h.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",h.accessibilityData.accessibilityData.label);h.icon!=null&&(h=YS(h.icon,this.B),h!=null&&(this.N=new g.OD({K:"span",U:"ytp-ad-button-icon",Z:[h]}),g.V(this,this.N)),this.C?hf(this.element,this.N.element,0):this.N.Og(this.element))}};
oG.prototype.clear=function(){this.hide()};
oG.prototype.onClick=function(u){fu.prototype.onClick.call(this,u);u=g.C(HMV(this));for(var h=u.next();!h.done;h=u.next())h=h.value,this.layoutId?this.HX.executeCommand(h,this.layoutId):g.UZ(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.P(Nh,g.m);Nh.prototype.Ni=function(){this.N&&g.Ql(this.N);this.G.clear();UD=null;g.m.prototype.Ni.call(this)};
Nh.prototype.register=function(u,h){h&&this.G.set(u,h)};
var UD=null;g.P(rs,fu);
rs.prototype.init=function(u,h,L){fu.prototype.init.call(this,u,h,L);u=h.hoverText||null;h=h.button&&g.n(h.button,g.TW)||null;h==null?g.UZ(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new oG(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,void 0,void 0,void 0,void 0,this.X),g.V(this,this.button),this.button.init(Lu("button"),h,this.macros),u&&this.button.element.setAttribute("aria-label",g.cL(u)),this.button.Og(this.element),this.Y&&!g.Zx(this.button.element,
"ytp-ad-clickable")&&g.yN(this.button.element,"ytp-ad-clickable"),this.X&&(g.yN(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.j("clean_player_style_fix_on_web")&&g.yN(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),u&&(this.N=new g.OD({K:"div",U:"ytp-ad-hover-text-container"}),this.C&&(h=new g.OD({K:"div",U:"ytp-ad-hover-text-callout"}),h.Og(this.N.element),g.V(this,h)),g.V(this,this.N),this.N.Og(this.element),h=GC(u),hf(this.N.element,h,0)),
this.show())};
rs.prototype.hide=function(){this.button&&this.button.hide();this.N&&this.N.hide();fu.prototype.hide.call(this)};
rs.prototype.show=function(){this.button&&this.button.show();fu.prototype.show.call(this)};g.P(zC,fu);
zC.prototype.init=function(u,h,L){fu.prototype.init.call(this,u,h,L);L=(u=h.thumbnail)&&BL(u)||"";g.Xg(L)?Math.random()<.01&&g.G3(Error("Found AdImage without valid image URL")):(this.G?g.Oz(this.element,"backgroundImage","url("+L+")"):tN(this.element,{src:L}),tN(this.element,{alt:u&&u.accessibility&&u.accessibility.label||""}),h&&h.adRendererCommands&&h.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())};
zC.prototype.clear=function(){this.hide()};g.P(mP,fu);g.K=mP.prototype;g.K.hide=function(){fu.prototype.hide.call(this);this.X&&this.X.focus()};
g.K.show=function(){this.X=document.activeElement;fu.prototype.show.call(this);this.B.focus()};
g.K.init=function(u,h,L){fu.prototype.init.call(this,u,h,L);this.N=h;h.dialogMessages||h.title!=null?h.confirmLabel==null?g.UZ(Error("ConfirmDialogRenderer.confirmLabel was not set.")):h.cancelLabel==null?g.UZ(Error("ConfirmDialogRenderer.cancelLabel was not set.")):mpn(this,h):g.UZ(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.K.clear=function(){g.Tj(this.G);this.hide()};
g.K.ML=function(){this.hide()};
g.K.jV=function(){var u=this.N.cancelEndpoint;u&&(this.layoutId?this.HX.executeCommand(u,this.layoutId):g.UZ(Error("Missing layoutId for confirm dialog.")));this.hide()};
g.K.X_=function(){var u=this.N.confirmNavigationEndpoint||this.N.confirmEndpoint;u&&(this.layoutId?this.HX.executeCommand(u,this.layoutId):g.UZ(Error("Missing layoutId for confirm dialog.")));this.hide()};g.P(ds,fu);g.K=ds.prototype;
g.K.init=function(u,h,L){fu.prototype.init.call(this,u,h,L);this.X=h;if(h.defaultText==null&&h.defaultIcon==null)g.UZ(Error("ToggleButtonRenderer must have either text or icon set."));else if(h.defaultIcon==null&&h.toggledIcon!=null)g.UZ(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(h.style){switch(h.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":u="ytp-ad-toggle-button-default-style";break;default:u=null}u!=null&&g.yN(this.B,u)}u={};h.defaultText?
(L=g.cL(h.defaultText),g.Xg(L)||(u.buttonText=L,this.api.L().experiments.tB("a11y_h5_associate_survey_question")||this.G.setAttribute("aria-label",L),this.api.L().experiments.tB("fix_h5_toggle_button_a11y")&&this.N.setAttribute("aria-label",L))):g.lL(this.DI,!1);h.defaultTooltip&&(u.tooltipText=h.defaultTooltip,this.G.hasAttribute("aria-label")||this.N.setAttribute("aria-label",h.defaultTooltip));h.defaultIcon?(L=YS(h.defaultIcon),this.updateValue("untoggledIconTemplateSpec",L),h.toggledIcon?(this.RH=
!0,L=YS(h.toggledIcon),this.updateValue("toggledIconTemplateSpec",L)):(g.lL(this.Y,!0),g.lL(this.C,!1)),g.lL(this.G,!1)):g.lL(this.N,!1);g.Tc(u)||this.update(u);h.isToggled&&(g.yN(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(h.isToggled));VV(this);this.W(this.element,"change",this.ir);this.show()}};
g.K.onClick=function(u){this.gw.length>0&&(this.toggleButton(!this.isToggled()),this.ir());fu.prototype.onClick.call(this,u)};
g.K.ir=function(){g.JW(this.B,"ytp-ad-toggle-button-toggled",this.isToggled());for(var u=g.C(dpn(this,this.isToggled())),h=u.next();!h.done;h=u.next())h=h.value,this.layoutId?this.HX.executeCommand(h,this.layoutId):g.UZ(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);VV(this)};
g.K.clear=function(){this.hide()};
g.K.toggleButton=function(u){g.JW(this.B,"ytp-ad-toggle-button-toggled",u);this.G.checked=u;VV(this)};
g.K.isToggled=function(){return this.G.checked};g.P(nu,vD);nu.prototype.C=function(u){if(Array.isArray(u)){u=g.C(u);for(var h=u.next();!h.done;h=u.next())h=h.value,h instanceof VFe&&this.B(h)}};g.P(sD,fu);g.K=sD.prototype;g.K.init=function(u,h,L){fu.prototype.init.call(this,u,h,L);h.reasons?h.confirmLabel==null?g.UZ(Error("AdFeedbackRenderer.confirmLabel was not set.")):(h.cancelLabel==null&&g.G3(Error("AdFeedbackRenderer.cancelLabel was not set.")),h.title==null&&g.G3(Error("AdFeedbackRenderer.title was not set.")),eSn(this,h)):g.UZ(Error("AdFeedbackRenderer.reasons were not set."))};
g.K.clear=function(){lw(this.C);lw(this.Y);this.B.length=0;this.hide()};
g.K.hide=function(){this.G&&this.G.hide();this.N&&this.N.hide();fu.prototype.hide.call(this);this.X&&this.X.focus()};
g.K.show=function(){this.G&&this.G.show();this.N&&this.N.show();this.X=document.activeElement;fu.prototype.show.call(this);this.C.focus()};
g.K.KK=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()};
g.K.uoX=function(){this.hide()};
ws.prototype.lP=function(){return this.G.element};
ws.prototype.getCommand=function(){return this.N};
ws.prototype.isChecked=function(){return this.X.checked};g.P(e0,mP);e0.prototype.ML=function(u){mP.prototype.ML.call(this,u);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
e0.prototype.jV=function(u){mP.prototype.jV.call(this,u);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
e0.prototype.X_=function(u){mP.prototype.X_.call(this,u);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.P(aG,fu);g.K=aG.prototype;
g.K.init=function(u,h,L){fu.prototype.init.call(this,u,h,L);this.C=h;if(h.dialogMessage==null&&h.title==null)g.UZ(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{h.confirmLabel==null&&g.G3(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(u=h.closeOverlayRenderer&&g.n(h.closeOverlayRenderer,g.TW)||null)this.G=new oG(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
g.V(this,this.G),this.G.init(Lu("button"),u,this.macros),this.G.Og(this.element);h.title&&(u=g.cL(h.title),this.updateValue("title",u));if(h.adReasons)for(u=h.adReasons,L=0;L<u.length;L++){var Z=GC(u[L]);if(!g.Xg(Z.textContent)){var y=E6("LI");y.appendChild(Z);this.vX.appendChild(y)}}else g.lL(this.vX,!1);h.dialogMessage&&(u=GC(h.dialogMessage,!0),this.VA.appendChild(u));h.confirmLabel&&(u=g.cL(h.confirmLabel),this.updateValue("confirmLabel",u));h.muteAdRenderer&&(h=g.n(h.muteAdRenderer,g.TW)||null)&&
(u=h.navigationEndpoint&&g.n(h.navigationEndpoint,aRr)||null,L=h.navigationEndpoint&&g.n(h.navigationEndpoint,Hqg)||null,u==null&&L==null?g.G3(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(u?a3j(this,u):L&&$p1(this,L),this.X=new oG(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,["ytp-ad-info-dialog-mute-button"],"button",!0),g.V(this,this.X),this.X.init(Lu("button"),h,this.macros),this.X.listen("click",
this.iHB,this),this.X.Og(this.Sd)));tF1(this)}};
g.K.clear=function(){lw(this.Y);this.hide()};
g.K.hide=function(){this.N?this.N.hide():this.B&&this.B.hide();this.G&&this.G.hide();this.X&&this.X.hide();fu.prototype.hide.call(this);this.RH&&this.RH.focus()};
g.K.show=function(){this.G&&this.G.show();this.X&&this.X.show();if(!this.aH){for(var u=g.C(this.C&&this.C.impressionEndpoints||[]),h=u.next();!h.done;h=u.next())h=h.value,this.layoutId?this.HX.executeCommand(h,this.layoutId):g.UZ(Error("Missing layoutId for ad info dialog."));this.aH=!0}this.RH=document.activeElement;fu.prototype.show.call(this);this.Y.focus()};
g.K.Hn=function(){if(this.C&&this.C.confirmServiceEndpoint){var u=this.C.confirmServiceEndpoint;this.layoutId?this.HX.executeCommand(u,this.layoutId):g.UZ(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()};
g.K.iHB=function(){var u=this.N?this.N:this.B;u&&!u.BJ&&(this.hide(),u.show())};g.P($S,rs);$S.prototype.init=function(u,h,L){rs.prototype.init.call(this,u,h,L);u=h.button&&g.n(h.button,g.TW)||null;u!=null&&(kri(this,u,L),this.api.j("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-ad-info-hover-text-button--clean-player"),this.show())};
$S.prototype.hide=function(){this.button&&this.button.hide();this.G&&this.G.hide();rs.prototype.hide.call(this)};
$S.prototype.show=function(){this.button&&this.button.show();rs.prototype.show.call(this)};
$S.prototype.clear=function(){this.hide()};g.P(tm,fu);
tm.prototype.init=function(u,h,L){fu.prototype.init.call(this,u,h,L);this.G=h;this.isTemplated()||g.yg(this.element,Dd(this.G));if(h.backgroundImage&&(u=(u=h.backgroundImage.thumbnail)?BL(u):"",L=(L=this.api.getVideoData(1))&&L.l9,u&&L&&(this.element.style.backgroundImage="url("+u+")",this.element.style.backgroundSize="100%"),h.style&&h.style.adTextStyle))switch(h.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(u=g.ES(h.targetId))&&this.element.setAttribute("data-tooltip-target-id",u);
h&&h.adRendererCommands&&h.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()};
tm.prototype.isTemplated=function(){return this.G.isTemplated||!1};
tm.prototype.clear=function(){this.hide()};var Rvi={seekableStart:0,seekableEnd:1,current:0};g.P(FX,fu);FX.prototype.clear=function(){this.dispose()};g.P(g.kS,g.m);g.K=g.kS.prototype;g.K.show=function(u){this.state!==1&&this.state!==2&&(this.state===4&&this.aJ(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.G&&this.G()):this.element.BJ||(gs(this,!0),this.state=1,u?this.delay.start(u):this.aJ()))};
g.K.hide=function(){this.state!==4&&(this.state===1||this.state===2?(this.element.hide(),this.state=null,this.delay.stop()):this.element.BJ&&(gs(this,!0),this.state=4,this.delay.start(this.X)))};
g.K.aJ=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:gs(this,!1);this.state=3;this.delay.start(this.N);break;case 3:this.state=null;this.G&&this.G();break;case 4:this.element.hide();gs(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}};
g.K.stop=function(){for(;this.state!==null&&this.state!==5;)this.delay.stop(),this.aJ()};
g.K.Ni=function(){this.element.ww()||this.element.element.removeAttribute("aria-hidden");g.m.prototype.Ni.call(this)};g.P(ui,FX);g.K=ui.prototype;
g.K.init=function(u,h,L){FX.prototype.init.call(this,u,h,L);u=h.durationMilliseconds;typeof u==="number"&&u<0&&g.UZ(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+u));this.fI&&(this.B?g.yN(this.N.element,"modern-countdown-next-to-thumbnail"):g.yN(this.N.element,"countdown-next-to-thumbnail"));u=h.durationMilliseconds;this.vX=u==null||u===0?this.G.xr():u;if(h.templatedCountdown)var Z=h.templatedCountdown.templatedAdText;else h.staticPreview&&(Z=h.staticPreview);
this.X.init(Lu("ad-text"),Z,L);(Z=this.api.getVideoData(1))&&Z.l9&&h.thumbnail?this.C.init(Lu("ad-image"),h.thumbnail,L):(this.RH.hide(),this.B&&this.fI&&g.yN(this.X.element,"ytp-ad-preview-text-modern-postroll"))};
g.K.clear=function(){this.hide()};
g.K.hide=function(){this.N.hide();this.X.hide();this.C.hide();ED(this);FX.prototype.hide.call(this)};
g.K.show=function(){b2(this);this.N.show();this.X.show();this.C.show();FX.prototype.show.call(this)};
g.K.mj=function(){this.hide()};
g.K.mm=function(){if(this.G!=null){var u=this.G.getProgressState();u!=null&&u.current!=null&&(u=1E3*u.current,!this.VA&&u>=this.vX?(this.DI.hide(),this.VA=!0,this.publish("i")):this.X&&this.X.isTemplated()&&(u=Math.max(0,Math.ceil((this.vX-u)/1E3)),u!=this.Sd&&(WL(this.X,{TIME_REMAINING:String(u)}),this.Sd=u)))}};g.P(hk,FX);g.K=hk.prototype;
g.K.init=function(u,h,L){FX.prototype.init.call(this,u,h,L);if(h.image&&h.image.thumbnail)if(h.headline)if(h.description)if((u=h.actionButton&&g.n(h.actionButton,g.TW))&&u.navigationEndpoint){var Z=this.api.getVideoData(2);if(Z!=null)if(h.image&&h.image.thumbnail){var y=h.image.thumbnail.thumbnails;y!=null&&y.length>0&&g.Xg(g.ES(y[0].url))&&(y[0].url=Z.profilePicture)}else g.G3(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.X.init(Lu("ad-image"),h.image,L);this.C.init(Lu("ad-text"),
h.headline,L);this.B.init(Lu("ad-text"),h.description,L);this.N.init(Lu("button"),u,L);L=tK(this.N.element);$K(this.N.element,L+" This link opens in new tab");this.RH=u.navigationEndpoint;this.api.N0()||this.show();this.api.L().j("enable_larger_flyout_cta_on_desktop")&&(this.BX("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.BX("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.BX("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"),
this.BX("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.BX("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.BX("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.N.element.classList.add("ytp-flyout-cta-action-button-large"),this.N.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.BX("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large"));
this.api.addEventListener("playerUnderlayVisibilityChange",this.Sc.bind(this));this.DI=h.startMs||0;b2(this)}else g.UZ(Error("FlyoutCtaRenderer has no valid action button."));else g.UZ(Error("FlyoutCtaRenderer has no description AdText."));else g.UZ(Error("FlyoutCtaRenderer has no headline AdText."));else g.G3(Error("FlyoutCtaRenderer has no image."))};
g.K.onClick=function(u){FX.prototype.onClick.call(this,u);this.api.pauseVideo();!g.ZO(this.N.element,u.target)&&this.RH&&(this.layoutId?this.HX.executeCommand(this.RH,this.layoutId):g.UZ(Error("Missing layoutId for flyout cta.")))};
g.K.mm=function(){if(this.G){var u=this.G.getProgressState();(u&&u.current||this.vX)&&1E3*u.current>=this.DI&&(ED(this),g.pc(this.element,"ytp-flyout-cta-inactive"),this.N.element.removeAttribute("tabIndex"))}};
g.K.mj=function(){this.clear()};
g.K.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Sc.bind(this))};
g.K.show=function(){this.N&&this.N.show();FX.prototype.show.call(this)};
g.K.hide=function(){this.N&&this.N.hide();FX.prototype.hide.call(this)};
g.K.Sc=function(u){u=="hidden"?this.show():this.hide()};g.P(LG,fu);g.K=LG.prototype;
g.K.init=function(u,h,L){fu.prototype.init.call(this,u,h,L);this.G=h;if(this.G.rectangle)for(u=this.G.likeButton&&g.n(this.G.likeButton,iR),h=this.G.dislikeButton&&g.n(this.G.dislikeButton,iR),this.X.init(Lu("toggle-button"),u,L),this.N.init(Lu("toggle-button"),h,L),this.W(this.element,"change",this.qo),this.B.show(100),this.show(),L=g.C(this.G&&this.G.impressionCommands||[]),u=L.next();!u.done;u=L.next())u=u.value,this.layoutId?this.HX.executeCommand(u,this.layoutId):g.UZ(Error("Missing layoutId for instream user sentiment."))};
g.K.clear=function(){this.hide()};
g.K.hide=function(){this.X.hide();this.N.hide();fu.prototype.hide.call(this)};
g.K.show=function(){this.X.show();this.N.show();fu.prototype.show.call(this)};
g.K.qo=function(){Gmn(this.element,"ytp-ad-instream-user-sentiment-selected");this.G.postMessageAction&&this.api.hB("onYtShowToast",this.G.postMessageAction);this.B.hide()};
g.K.onClick=function(u){this.gw.length>0&&this.qo();fu.prototype.onClick.call(this,u)};g.P(ZK,g.m);g.K=ZK.prototype;g.K.Ni=function(){this.reset();g.m.prototype.Ni.call(this)};
g.K.reset=function(){g.Tj(this.B);this.C=!1;this.G&&this.G.stop();this.T.stop();this.X&&(this.X=!1,this.V.play())};
g.K.start=function(){this.reset();this.B.W(this.N,"mouseover",this.JQ,this);this.B.W(this.N,"mouseout",this.Zf,this);this.AB&&(this.B.W(this.N,"focusin",this.JQ,this),this.B.W(this.N,"focusout",this.Zf,this));this.G?this.G.start():(this.C=this.X=!0,g.Oz(this.N,{opacity:this.Y}))};
g.K.JQ=function(){this.X&&(this.X=!1,this.V.play());this.T.stop();this.G&&this.G.stop()};
g.K.Zf=function(){this.C?this.T.start():this.G&&this.G.start()};
g.K.MV=function(){this.X||(this.X=!0,this.S.play(),this.C=!0)};var hvn=[new yF("b.f_",!1,0),new yF("j.s_",!1,2),new yF("r.s_",!1,4),new yF("e.h_",!1,6),new yF("i.s_",!0,8),new yF("s.t_",!1,10),new yF("p.h_",!1,12),new yF("s.i_",!1,14),new yF("f.i_",!1,16),new yF("a.b_",!1,18),new yF("a.o_",!1),new yF("g.o_",!1,22),new yF("p.i_",!1,24),new yF("p.m_",!1),new yF("i.k_",!0,28),new yF("n.k_",!0,20),new yF("i.f_",!1),new yF("a.s_",!0),new yF("m.c_",!1),new yF("n.h_",!1,26),new yF("o.p_",!1)].reduce(function(u,h){u[h.N]=h;return u},{});g.P(c2,FX);g.K=c2.prototype;
g.K.init=function(u,h,L){FX.prototype.init.call(this,u,h,L);this.RH=h;(this.DI=Zdn(this))&&g.G3(Error("hasAdControlInClickCommands_ is true."));if(!h||g.Tc(h))g.UZ(Error("SkipButtonRenderer was not specified or empty."));else if(!h.message||g.Tc(h.message))g.UZ(Error("SkipButtonRenderer.message was not specified or empty."));else{u=this.C?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};h=YS(u);h==null?g.UZ(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+u.iconType+".")):
(this.B=new g.OD({K:"button",CI:[this.C?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],Z:[{K:"span",U:this.C?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",Z:[h]}]}),g.V(this,this.B),this.B.Og(this.X.element),this.N=new tm(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,"ytp-ad-skip-button-text"),this.C&&this.N.element.classList.add("ytp-ad-skip-button-text-centered"),this.N.init(Lu("ad-text"),this.RH.message,L),g.V(this,this.N),hf(this.B.element,this.N.element,
0));var Z=Z===void 0?null:Z;L=this.api.L();!(this.gw.length>0)&&L.N&&(aV?0:"ontouchstart"in document.documentElement&&(vQR()||x4()))&&(this.FJ(this.xl),Z&&this.FJ(Z),this.gw=[this.W(this.element,"touchstart",this.pk,this),this.W(this.element,"touchmove",this.EC,this),this.W(this.element,"touchend",this.PW,this)])}};
g.K.clear=function(){this.vX.reset();this.hide()};
g.K.hide=function(){this.X.hide();this.N&&this.N.hide();ED(this);FX.prototype.hide.call(this)};
g.K.onClick=function(u){if(this.B!=null){if(u){var h=u||window.event;h.returnValue=!1;h.preventDefault&&h.preventDefault()}var L;if(utb(u,{contentCpn:((L=this.api.getVideoData(1))==null?void 0:L.clientPlaybackNonce)||""})===0)this.api.hB("onAbnormalityDetected");else if(FX.prototype.onClick.call(this,u),this.publish("j"),this.api.hB("onAdSkip"),this.VA||!this.DI)this.api.onAdUxClicked(this.componentType,this.layoutId)}};
g.K.rh=function(u){if(!this.VA)return this.DI&&Jk("SkipButton click commands not pruned while ALC exist"),u;var h,L=(h=g.n(u,g.Ir))==null?void 0:h.commands;if(!L)return u;u=[];for(h=0;h<L.length;h++){var Z=L[h];Z.adLifecycleCommand&&Lbj(Z.adLifecycleCommand)||Z.pingingEndpoint||Z.adPingingEndpoint||u.push(Z)}return{commandExecutorCommand:{commands:u}}};
g.K.show=function(){this.vX.start();this.X.show();this.N&&this.N.show();b2(this);FX.prototype.show.call(this);this.Sd&&this.api.L().j("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};
g.K.mj=function(){this.publish("k")};
g.K.mm=function(){};g.P(Ak,FX);g.K=Ak.prototype;
g.K.init=function(u,h,L){FX.prototype.init.call(this,u,h,L);u=h&&h.preskipRenderer&&g.n(h.preskipRenderer,qU)||{};(u=g.Tc(u)?null:u)?(this.C=u.durationMilliseconds!=null&&u.durationMilliseconds!==void 0?u.durationMilliseconds:5E3,this.N=new ui(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.G,w2(this.api.L().experiments,"preskip_button_style_ads_backend")=="countdown_next_to_thumbnail"&&lN(this.api.L())),this.N.init(Lu("preskip-component"),u,L),j2(this.N),g.V(this,this.N),this.N.Og(this.element)):
h.skipOffsetMilliseconds&&(this.C=h.skipOffsetMilliseconds);u=h&&h.skippableRenderer&&g.n(h.skippableRenderer,Mbb)||{};u=g.Tc(u)?null:u;u==null?g.UZ(Error("SkipButtonRenderer was not set in player response.")):(this.X=new c2(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.G,this.RH),this.X.init(Lu("skip-button"),u,L),g.V(this,this.X),this.X.Og(this.element),this.api.L().experiments.tB("enable_skip_to_next_messaging")&&(h=g.ES(h.targetId))&&(L=this.X,L.B!=null&&(L.Sd=!0,L.B.element.setAttribute("data-tooltip-target-id",
h),L.B.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
g.K.show=function(){this.B&&this.X?this.X.show():this.N&&this.N.show();b2(this);FX.prototype.show.call(this)};
g.K.mj=function(){};
g.K.clear=function(){this.N&&this.N.clear();this.X&&this.X.clear();ED(this);FX.prototype.hide.call(this)};
g.K.hide=function(){this.N&&this.N.hide();this.X&&this.X.hide();ED(this);FX.prototype.hide.call(this)};
g.K.mm=function(){1E3*this.G.getProgressState().current>=this.C&&ydY(this,!0)};g.P(xp,oG);xp.prototype.init=function(u,h,L){oG.prototype.init.call(this,u,h,L);u=!1;h.text!=null&&(u=g.cL(h.text),u=!g.Xg(u));u?h.navigationEndpoint==null?g.G3(Error("No visit advertiser clickthrough provided in renderer,")):h.style!=="STYLE_UNKNOWN"?g.G3(Error("Button style was not a link-style type in renderer,")):this.show():g.G3(Error("No visit advertiser text was present in the renderer."))};g.P(P2,fu);
P2.prototype.init=function(u,h,L){fu.prototype.init.call(this,u,h,L);u=h.text;g.Xg(Dd(u))?g.G3(Error("SimpleAdBadgeRenderer has invalid or empty text")):(u&&u.text&&(h=u.text,this.X&&!this.N&&(h=this.api.L(),h=u.text+" "+(h&&h.N?"\u2022":"\u00b7")),h={text:h,isTemplated:u.isTemplated},u.style&&(h.style=u.style),u.targetId&&(h.targetId=u.targetId),u=new tm(this.api,this.layoutId,this.interactionLoggingClientData,this.HX),u.init(Lu("simple-ad-badge"),h,L),u.Og(this.element),g.V(this,u)),this.show())};
P2.prototype.clear=function(){this.hide()};g.P(CG,Zd);g.P(Mw,g.yV);g.K=Mw.prototype;g.K.xr=function(){return this.durationMs};
g.K.stop=function(){this.G&&this.Aq.FJ(this.G)};
g.K.cj=function(u){this.N={seekableStart:0,seekableEnd:this.durationMs/1E3,current:u.current};this.publish("h")};
g.K.getProgressState=function(){return this.N};
g.K.jQ=function(u){g.DK(u,2)&&this.publish("g")};g.P(ii,g.yV);g.K=ii.prototype;g.K.xr=function(){return this.durationMs};
g.K.start=function(){this.G||(this.G=!0,this.tq.start())};
g.K.stop=function(){this.G&&(this.G=!1,this.tq.stop())};
g.K.cj=function(){this.Oa+=100;var u=!1;this.Oa>this.durationMs&&(this.Oa=this.durationMs,this.tq.stop(),u=!0);this.N={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Oa/1E3};this.publish("h");u&&this.publish("g")};
g.K.getProgressState=function(){return this.N};g.P(S2,FX);g.K=S2.prototype;g.K.init=function(u,h,L){FX.prototype.init.call(this,u,h,L);var Z;if(h==null?0:(Z=h.templatedCountdown)==null?0:Z.templatedAdText){u=h.templatedCountdown.templatedAdText;if(!u.isTemplated){g.G3(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.N=new tm(this.api,this.layoutId,this.interactionLoggingClientData,this.HX);this.N.init(Lu("ad-text"),u,{});this.N.Og(this.element);g.V(this,this.N)}this.show()};
g.K.clear=function(){this.hide()};
g.K.hide=function(){ED(this);FX.prototype.hide.call(this)};
g.K.mj=function(){this.hide()};
g.K.mm=function(){if(this.G!=null){var u=this.G.getProgressState();if(u!=null&&u.current!=null&&this.N){var h=this.G instanceof Mw?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:u.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.G instanceof ii?u.seekableEnd:this.api.getDuration(2,!1);u=u.current;h=this.api.L().experiments.tB("enable_player_overlay_non_negative_remaining_duration_on_web")?Math.max(h-u,0):h-u;WL(this.N,{FORMATTED_AD_DURATION_REMAINING:String(g.QF(h)),
TIME_REMAINING:String(Math.ceil(h))})}}};
g.K.show=function(){b2(this);FX.prototype.show.call(this)};g.P(X3,tm);X3.prototype.onClick=function(u){tm.prototype.onClick.call(this,u);this.api.onAdUxClicked(this.componentType)};g.P(qw,fu);qw.prototype.init=function(u,h){fu.prototype.init.call(this,u,h,{});if(u=h.content){g.yg(this.element,u);var L,Z;h=((L=h.interaction)==null?void 0:(Z=L.accessibility)==null?void 0:Z.label)||u;this.element.setAttribute("aria-label",h)}else g.UZ(Error("AdSimpleAttributedString does not have text content"))};
qw.prototype.clear=function(){this.hide()};
qw.prototype.onClick=function(u){fu.prototype.onClick.call(this,u)};g.P(Tz,fu);
Tz.prototype.init=function(u,h){fu.prototype.init.call(this,u,h,{});(u=h.label)&&u.content&&!g.Xg(u.content)?(this.adBadgeText.init(Lu("ad-simple-attributed-string"),new v2(u)),(h=h.adPodIndex)&&h.content&&!g.Xg(h.content)&&(this.G=new qw(this.api,this.layoutId,this.interactionLoggingClientData,this.HX),this.G.Og(this.element),g.V(this,this.G),this.G.element.classList.add("ytp-ad-badge__pod-index"),this.G.init(Lu("ad-simple-attributed-string"),new v2(h))),this.element.classList.add(this.N?"ytp-ad-badge--stark-clean-player":
"ytp-ad-badge--stark"),this.show()):g.UZ(Error("No label is returned in AdBadgeViewModel."))};
Tz.prototype.show=function(){this.adBadgeText.show();var u;(u=this.G)==null||u.show();fu.prototype.show.call(this)};
Tz.prototype.hide=function(){this.adBadgeText.hide();var u;(u=this.G)==null||u.hide();fu.prototype.hide.call(this)};g.P(Yp,fu);
Yp.prototype.init=function(u,h){fu.prototype.init.call(this,u,h,{});(u=h.adPodIndex)&&u.content&&!g.Xg(u.content)&&(this.G=new qw(this.api,this.layoutId,this.interactionLoggingClientData,this.HX),this.G.Og(this.element),g.V(this,this.G),this.G.init(Lu("ad-simple-attributed-string"),new v2(u)),(this.api.L().j("clean_player_style_fix_on_web")?h.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!this.N||h.visibilityCondition!=="AD_POD_INDEX_VISIBILITY_CONDITION_ALWAYS_SHOW_IF_NONSKIPPABLE")&&this.element.classList.add("ytp-ad-pod-index--autohide"));
this.element.classList.add("ytp-ad-pod-index--stark");this.api.j("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-pod-index--stark-with-light-shadow");this.show()};
Yp.prototype.show=function(){var u;(u=this.G)==null||u.show();fu.prototype.show.call(this)};
Yp.prototype.hide=function(){var u;(u=this.G)==null||u.hide();fu.prototype.hide.call(this)};g.P(or,fu);
or.prototype.init=function(u,h){fu.prototype.init.call(this,u,h,{});if(h!=null&&h.text){var L;if(((L=h.text)==null?0:L.content)&&!g.Xg(h.text.content)){this.G=new g.OD({K:"div",U:"ytp-ad-disclosure-banner__text",dw:h.text.content});g.V(this,this.G);this.G.Og(this.element);var Z,y;u=((Z=h.interaction)==null?void 0:(y=Z.accessibility)==null?void 0:y.label)||h.text.content;this.element.setAttribute("aria-label",u);var R;if((R=h.interaction)==null?0:R.onTap)this.N=new g.OD({K:"div",U:"ytp-ad-disclosure-banner__chevron",Z:[g.PL()]}),
g.V(this,this.N),this.N.Og(this.element);this.show()}}else g.UZ(Error("No banner text found in AdDisclosureBanner."))};
or.prototype.clear=function(){this.hide()};Nw.prototype.getLength=function(){return this.G-this.N};g.P(Gz,g.OD);Gz.prototype.cj=function(){var u=this.N.getProgressState(),h=u.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.L().j("show_preskip_progress_bar_for_skippable_ads")&&(h=this.X?this.X/1E3:u.seekableEnd);u=U_(new Nw(u.seekableStart,h),u.current,0);this.progressBar.style.width=u*100+"%"};
Gz.prototype.onStateChange=function(){g.qW(this.api.L())||(this.api.getPresentingPlayerType()===2?this.G===-1&&(this.show(),this.G=this.N.subscribe("h",this.cj,this),this.cj()):this.G!==-1&&(this.hide(),this.N.uW(this.G),this.G=-1))};g.P(H2,fu);
H2.prototype.init=function(u,h,L,Z){fu.prototype.init.call(this,u,h,L);L=!0;if(h.skipOrPreviewRenderer){var y=h.skipOrPreviewRenderer;u=g.n(y,ur);y=g.n(y,qU);u?(y=new Ak(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.N,this.RH),y.Og(this.Y),y.init(Lu("skip-button"),u,this.macros),g.V(this,y)):y&&!this.api.L().experiments.tB("disable_ad_preview_for_instream_ads")&&(u=new ui(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.N,!1),u.Og(this.Y),u.init(Lu("ad-preview"),y,
this.macros),j2(u),g.V(this,u));if(u=g.n(h.skipOrPreviewRenderer,ur)){L=!1;var R=u.skipOffsetMilliseconds}}h.brandInteractionRenderer&&(u=h.brandInteractionRenderer.brandInteractionRenderer,y=new LG(this.api,this.layoutId,this.interactionLoggingClientData,this.HX),y.Og(this.vX),y.init(Lu("instream-user-sentiment"),u,this.macros),g.V(this,y));if(u=g.n(h,cu3))if(u=g.n(u,cu3))y=new hk(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.N,!!h.showWithoutLinkedMediaLayout),g.V(this,y),
y.Og(this.C),y.init(Lu("flyout-cta"),u,this.macros);u=(this.api.L().j("disable_ad_duration_remaining_for_instream_video_ads")||h.adPodIndex!==void 0)&&!1;Z=Z&&Z.videoAdDurationSeconds;if(h.adBadgeRenderer){var p=h.adBadgeRenderer;y=g.n(p,a2);y!=null?(p=new Tz(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,u),g.V(this,p),p.Og(this.G),p.init(Lu("ad-badge"),y,this.macros),this.X=p.element):(y=p.simpleAdBadgeRenderer,y==null&&(y={text:{text:"Ad",isTemplated:!1}}),p=new P2(this.api,this.layoutId,
this.interactionLoggingClientData,this.HX,!0),g.V(this,p),p.Og(this.G),p.init(Lu("simple-ad-badge"),y,this.macros))}h.adPodIndex&&(y=g.n(h.adPodIndex,S87),y!=null&&(L=new Yp(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,L),g.V(this,L),L.Og(this.G),L.init(Lu("ad-pod-index"),y)));h.adDurationRemaining&&!h.showWithoutLinkedMediaLayout&&(L=h.adDurationRemaining.adDurationRemainingRenderer,L==null&&(L={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),
Z=new S2(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.N,Z,u),g.V(this,Z),Z.Og(this.G),Z.init(Lu("ad-duration-remaining"),L,this.macros),u&&Z.element.classList.add("ytp-ad-duration-remaining-autohide"));h.adInfoRenderer&&(Z=g.n(h.adInfoRenderer,ve))&&(L=new $S(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.element,void 0,u),g.V(this,L),this.api.L().j("enable_ad_pod_index_autohide")&&this.X!==null?this.G.insertBefore(L.element,this.X.nextSibling):L.Og(this.G),
L.init(Lu("ad-info-hover-text-button"),Z,this.macros));h.visitAdvertiserRenderer&&(L=g.n(h.visitAdvertiserRenderer,g.TW))&&(y=Kbj(this)&&this.B?this.B:this.G)&&(Z=new xp(this.api,this.layoutId,this.interactionLoggingClientData,this.HX),g.V(this,Z),Z.Og(y),Z.init(Lu("visit-advertiser"),L,this.macros),eB(Z.element),L=tK(Z.element),$K(Z.element,L+" This link opens in new tab"));!(Z=this.api.L())||g.Xp(Z)||Z.controlsType!="3"&&!Z.disableOrganicUi||(R=new Gz(this.api,this.N,R,u),R.Og(this.aH),g.V(this,
R));h.adDisclosureBannerRenderer&&(h=g.n(h.adDisclosureBannerRenderer,lRc))&&(R=new or(this.api,this.layoutId,this.interactionLoggingClientData,this.HX),R.Og(this.DI),R.init(Lu("ad-disclosure-banner"),h),g.V(this,R));this.api.L().j("enable_updated_html5_player_focus_style")&&g.yN(this.element,"ytp-ad-player-overlay-updated-focus-style");u&&this.api.L().N&&this.G.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()};
H2.prototype.clear=function(){this.hide()};mj.prototype.set=function(u,h,L){L=L!==void 0?Date.now()+L:void 0;this.G.set(u,h,L)};
mj.prototype.get=function(u){return this.G.get(u)};
mj.prototype.remove=function(u){this.G.remove(u)};var s_=null,wp=null,e2=null,IPb=null;g.nV("yt.www.ads.eventcache.getLastCompanionData",function(){return s_});
g.nV("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.nV("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return wp});
g.nV("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return e2});
g.nV("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return IPb});var xva=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);ar.prototype.handleResponse=function(u,h){if(!h)throw Error("request needs to be passed into ConsistencyService");var L,Z;h=((L=h.a8.context)==null?void 0:(Z=L.request)==null?void 0:Z.consistencyTokenJars)||[];var y;(u=(y=u.responseContext)==null?void 0:y.consistencyTokenJar)&&this.replace(h,u)};
ar.prototype.replace=function(u,h){u=g.C(u);for(var L=u.next();!L.done;L=u.next())delete this.G[L.value.encryptedTokenJarContents];CIi(this,h)};var dkq=window.location.hostname.split(".").slice(-2).join("."),Yv;tk.getInstance=function(){Yv=g.wn("yt.clientLocationService.instance");Yv||(Yv=new tk,g.nV("yt.clientLocationService.instance",Yv));return Yv};
g.K=tk.prototype;
g.K.setLocationOnInnerTubeContext=function(u){u.client||(u.client={});if(this.G)u.client.locationInfo||(u.client.locationInfo={}),u.client.locationInfo.latitudeE7=Math.floor(this.G.coords.latitude*1E7),u.client.locationInfo.longitudeE7=Math.floor(this.G.coords.longitude*1E7),u.client.locationInfo.horizontalAccuracyMeters=Math.round(this.G.coords.accuracy),u.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.X||this.locationPlayabilityToken)u.client.locationPlayabilityToken=this.X||
this.locationPlayabilityToken};
g.K.handleResponse=function(u){var h;u=(h=u.responseContext)==null?void 0:h.locationPlayabilityToken;u!==void 0&&(this.locationPlayabilityToken=u,this.G=void 0,g.tn("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=$p(this))&&this.localStorage.set("yt-location-playability-token",u,15552E3):g.rg("YT_CL",JSON.stringify({loctok:u}),15552E3,dkq,!0))};
g.K.clearLocationPlayabilityToken=function(u){u==="TVHTML5"?(this.localStorage=$p(this))&&this.localStorage.remove("yt-location-playability-token"):g.zT("YT_CL");this.X=void 0;this.N!==-1&&(clearTimeout(this.N),this.N=-1)};
g.K.getCurrentPositionFromGeolocation=function(){var u=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var h=!1,L=1E4;g.tn("INNERTUBE_CLIENT_NAME")==="MWEB"&&(h=!0,L=15E3);return new Promise(function(Z,y){navigator.geolocation.getCurrentPosition(function(R){u.G=R;Z(R)},function(R){y(R)},{enableHighAccuracy:h,
maximumAge:0,timeout:L})})};
g.K.createUnpluggedLocationInfo=function(u){var h={};u=u.coords;if(u==null?0:u.latitude)h.latitudeE7=Math.floor(u.latitude*1E7);if(u==null?0:u.longitude)h.longitudeE7=Math.floor(u.longitude*1E7);if(u==null?0:u.accuracy)h.locationRadiusMeters=Math.round(u.accuracy);return h};
g.K.createLocationInfo=function(u){var h={};u=u.coords;if(u==null?0:u.latitude)h.latitudeE7=Math.floor(u.latitude*1E7);if(u==null?0:u.longitude)h.longitudeE7=Math.floor(u.longitude*1E7);return h};g.K=S3w.prototype;g.K.contains=function(u){return Object.prototype.hasOwnProperty.call(this.G,u)};
g.K.get=function(u){if(this.contains(u))return this.G[u]};
g.K.set=function(u,h){this.G[u]=h};
g.K.qv=function(){return Object.keys(this.G)};
g.K.remove=function(u){delete this.G[u]};F3.prototype.getModuleId=function(u){return u.serviceId.getModuleId()};
F3.prototype.get=function(u){a:{var h=this.mappings.get(u.toString());switch(h.type){case "mapping":u=h.value;break a;case "factory":h=h.value();this.mappings.set(u.toString(),{type:"mapping",value:h});u=h;break a;default:u=yx(h)}}return u};
F3.prototype.registerService=function(u,h){this.mappings.set(u.toString(),{type:"mapping",value:h});return u};
new F3;var ok={},Xbf=(ok.WEB_UNPLUGGED="^unplugged/",ok.WEB_UNPLUGGED_ONBOARDING="^unplugged/",ok.WEB_UNPLUGGED_OPS="^unplugged/",ok.WEB_UNPLUGGED_PUBLIC="^unplugged/",ok.WEB_CREATOR="^creator/",ok.WEB_KIDS="^kids/",ok.WEB_EXPERIMENTS="^experiments/",ok.WEB_MUSIC="^music/",ok.WEB_REMIX="^music/",ok.WEB_MUSIC_EMBEDDED_PLAYER="^music/",ok.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",ok);kp.prototype.T=function(u,h,L){h=h===void 0?{}:h;L=L===void 0?O3:L;var Z={context:g.W2(u.clickTrackingParams,!1,this.B)};var y=this.N(u);if(y){this.G(Z,y,h);var R;h=g.E_(this.X());(y=(R=g.n(u.commandMetadata,g.M9))==null?void 0:R.apiUrl)&&(h=y);R=i5f(mi(h));u=Object.assign({},{command:u},void 0);Z={input:R,Yh:dg(R),a8:Z,config:u};Z.config.Kq?Z.config.Kq.identity=L:Z.config.Kq={identity:L};return Z}g.UZ(new g.aO("Error: Failed to create Request from Command.",u))};
g.Js.Object.defineProperties(kp.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!1}}});
g.P(gp,kp);g.P(fQ,gp);fQ.prototype.T=function(){return{input:"/getDatasyncIdsEndpoint",Yh:dg("/getDatasyncIdsEndpoint","GET"),a8:{}}};
fQ.prototype.X=function(){return[]};
fQ.prototype.N=function(){};
fQ.prototype.G=function(){};var VcR={},Zre=(VcR.GET_DATASYNC_IDS=bi(fQ),VcR);var N9={},ner=(N9["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",N9["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",N9["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",N9["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",N9["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",N9["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",N9["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",
N9["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",N9["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",N9["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",N9["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",N9["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",N9["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",N9["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",N9["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",
N9["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",N9["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",N9["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",N9["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",N9["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",N9["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",N9["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",
N9["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",N9.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",N9["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",N9["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",N9["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",N9["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",N9["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",N9["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",
N9["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",N9["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",N9["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",N9["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",N9["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",N9["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",N9["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",N9["dialog.copyright_strikes"]=
"LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",N9["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",N9["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",N9.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",N9["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",N9["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",N9["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",N9["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",N9["owner.asset_groups"]=
"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",N9["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",N9["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",N9["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",N9["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",N9["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",N9["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",N9["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",N9["owner.delivery"]=
"LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",N9["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",N9["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",N9["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",N9["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",N9["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",N9["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",N9["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",N9["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",
N9["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",N9["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",N9["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",N9["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",N9["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",N9["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",N9["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",N9["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",N9["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",
N9["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",N9["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",N9["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",N9["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",N9["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",N9["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",N9["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",N9["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",
N9),Up={},Uvb=(Up.auto_search="LATENCY_ACTION_AUTO_SEARCH",Up.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Up.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Up.app_startup="LATENCY_ACTION_APP_STARTUP",Up.browse="LATENCY_ACTION_BROWSE",Up.cast_splash="LATENCY_ACTION_CAST_SPLASH",Up.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Up.channels="LATENCY_ACTION_CHANNELS",Up.chips="LATENCY_ACTION_CHIPS",Up.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Up.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
Up.editor="LATENCY_ACTION_EDITOR",Up.embed="LATENCY_ACTION_EMBED",Up.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Up.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Up.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Up.explore="LATENCY_ACTION_EXPLORE",Up.favorites="LATENCY_ACTION_FAVORITES",Up.home="LATENCY_ACTION_HOME",Up.inboarding="LATENCY_ACTION_INBOARDING",Up.library="LATENCY_ACTION_LIBRARY",Up.live="LATENCY_ACTION_LIVE",Up.live_pagination=
"LATENCY_ACTION_LIVE_PAGINATION",Up.management="LATENCY_ACTION_MANAGEMENT",Up.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Up.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Up.onboarding="LATENCY_ACTION_ONBOARDING",Up.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",Up.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Up.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Up.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Up.prebuffer="LATENCY_ACTION_PREBUFFER",
Up.prefetch="LATENCY_ACTION_PREFETCH",Up.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Up.profile_switcher="LATENCY_ACTION_LOGIN",Up.projects="LATENCY_ACTION_PROJECTS",Up.reel_watch="LATENCY_ACTION_REEL_WATCH",Up.results="LATENCY_ACTION_RESULTS",Up.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Up.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Up.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Up.review="LATENCY_ACTION_REVIEW",Up.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",
Up.search_ui="LATENCY_ACTION_SEARCH_UI",Up.search_suggest="LATENCY_ACTION_SUGGEST",Up.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Up.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Up.seek="LATENCY_ACTION_PLAYER_SEEK",Up.settings="LATENCY_ACTION_SETTINGS",Up.store="LATENCY_ACTION_STORE",Up.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Up.tenx="LATENCY_ACTION_TENX",Up.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Up.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Up.watch="LATENCY_ACTION_WATCH",
Up.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Up["watch,watch7"]="LATENCY_ACTION_WATCH",Up["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Up["watch,watch7ad"]="LATENCY_ACTION_WATCH",Up["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Up.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",Up.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Up.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Up.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Up.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",
Up.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Up.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Up.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Up);Object.assign(Uvb,ner);g.P(iy,fd);var $vw=new DP("aft-recorded",iy);var spb=g.Vn.ytLoggingGelSequenceIdObj_||{};g.nV("ytLoggingGelSequenceIdObj_",spb);var S$=g.Vn.ytLoggingLatencyUsageStats_||{};g.nV("ytLoggingLatencyUsageStats_",S$);Q4.prototype.tick=function(u,h,L,Z){XE(this,"tick_"+u+"_"+h)||g.pM("latencyActionTicked",{tickName:u,clientActionNonce:h},{timestamp:L,cttAuthInfo:Z})};
Q4.prototype.info=function(u,h,L){var Z=Object.keys(u).join("");XE(this,"info_"+Z+"_"+h)||(u=Object.assign({},u),u.clientActionNonce=h,g.pM("latencyActionInfo",u,{cttAuthInfo:L}))};
Q4.prototype.jspbInfo=function(u,h,L){for(var Z="",y=0;y<oF(u).length;y++)oF(u)[y]!==void 0&&(Z=y===0?Z.concat(""+y):Z.concat("_"+y));if(!XE(this,"info_"+Z+"_"+h)){x8(u,2,h);L={cttAuthInfo:L};h=g.MI("jspb_sparse_encoded_pivot")?new sC([{}]):new sC;u!=null?XK(u,z6):u=void 0;uH(h,7,Vbg,u);L=L===void 0?{}:L;u=!1;g.tn("ytLoggingEventsDefaultDisabled",!1)&&(u=!0);u=u?null:g.E3;L=L===void 0?{}:L;Z=Math.round(L.timestamp||(0,g.vC)());AM(h,1,Z<Number.MAX_SAFE_INTEGER?Z:0);Z=new nI;L.lact?AM(Z,1,isFinite(L.lact)?
L.lact:-1):L.timestamp?AM(Z,1,-1):(y=v5(),AM(Z,1,isFinite(y)?y:-1));if(L.sequenceGroup&&!g.MI("web_gel_sequence_info_killswitch")){y=L.sequenceGroup;var R=lD1(y),p=new mJ;AM(p,2,R);x8(p,1,y);p9(Z,mJ,3,p);L.endOfSequence&&delete spb[L.sequenceGroup]}p9(h,nI,33,Z);(L.sendIsolatedPayload?g71:uAV)("latencyActionInfo",{endpoint:"log_event",payload:h,cttAuthInfo:L.cttAuthInfo,dangerousLogToVisitorSession:L.dangerousLogToVisitorSession},u)}};
Q4.prototype.span=function(u,h,L){var Z=Object.keys(u).join("");XE(this,"span_"+Z+"_"+h)||(u.clientActionNonce=h,g.pM("latencyActionSpan",u,{cttAuthInfo:L}))};var Gs=window,vc=Gs.performance||Gs.mozPerformance||Gs.msPerformance||Gs.webkitPerformance||new G_n;var aPs=!1,Bxa=!1,rT={'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"},Wbl=(0,g.Ej)(vc.clearResourceTimings||vc.webkitClearResourceTimings||vc.mozClearResourceTimings||vc.msClearResourceTimings||vc.oClearResourceTimings||g.Or,vc);var whb=window;whb.ytcsi&&(whb.ytcsi.infoGel=g.m1,whb.ytcsi.tick=zQ);var Or1="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" "),DXb=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var AQs=new qX("INNERTUBE_TRANSPORT_TOKEN");g.P($z,gp);$z.prototype.X=function(){return Xhr};
$z.prototype.N=function(u){return g.n(u,phq)||void 0};
$z.prototype.G=function(u,h,L){L=L===void 0?{}:L;h.channelIds&&(u.channelIds=h.channelIds);h.siloName&&(u.siloName=h.siloName);h.params&&(u.params=h.params);L.botguardResponse&&(u.botguardResponse=L.botguardResponse);L.feature&&(u.clientFeature=L.feature)};
g.Js.Object.defineProperties($z.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.P(tS,gp);tS.prototype.X=function(){return ve7};
tS.prototype.N=function(u){return g.n(u,RJc)||void 0};
tS.prototype.G=function(u,h){h.channelIds&&(u.channelIds=h.channelIds);h.siloName&&(u.siloName=h.siloName);h.params&&(u.params=h.params)};
g.Js.Object.defineProperties(tS.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});var eJg=new qX("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");g.P(Wc,gp);Wc.prototype.X=function(){return Mcc};
Wc.prototype.N=function(u){return g.n(u,Wrg)||g.n(u,FrY)||g.n(u,tb1)};
Wc.prototype.G=function(u,h){h.serializedShareEntity&&(u.serializedSharedEntity=h.serializedShareEntity);if(h.clientParamIdentifier){var L;if((L=this.C)==null?0:L.G(h.clientParamIdentifier))u.clientParams=this.C.N(h.clientParamIdentifier)}};
Wc[o6]=[eJg];g.P(FE,gp);FE.prototype.X=function(){return Qpb};
FE.prototype.N=function(u){return g.n(u,zYu)||void 0};
FE.prototype.G=function(u,h,L){u.feedbackTokens=[];h.feedbackToken&&u.feedbackTokens.push(h.feedbackToken);if(h=h.cpn||L.cpn)u.feedbackContext={cpn:h};u.isFeedbackTokenUnencrypted=!!L.is_feedback_token_unencrypted;u.shouldMerge=!1;L.extra_feedback_tokens&&(u.shouldMerge=!0,u.feedbackTokens=u.feedbackTokens.concat(L.extra_feedback_tokens))};
g.Js.Object.defineProperties(FE.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.P(by,gp);by.prototype.X=function(){return lMb};
by.prototype.N=function(u){return g.n(u,y88)||void 0};
by.prototype.G=function(u,h){h.params&&(u.params=h.params);h.secondaryParams&&(u.secondaryParams=h.secondaryParams)};g.P(Eh,gp);Eh.prototype.X=function(){return SVR};
Eh.prototype.N=function(u){return g.n(u,Lz7)||void 0};
Eh.prototype.G=function(u,h){h.actions&&(u.actions=h.actions);h.params&&(u.params=h.params);h.playlistId&&(u.playlistId=h.playlistId)};g.P(kz,gp);kz.prototype.X=function(){return iwr};
kz.prototype.N=function(u){return g.n(u,bqb)};
kz.prototype.G=function(u,h,L){L=L===void 0?{}:L;h.serializedShareEntity&&(u.serializedSharedEntity=h.serializedShareEntity);L.includeListId&&(u.includeListId=!0)};var aMb=new qX("FETCH_FN_TOKEN"),$ky=new qX("PARSE_FN_TOKEN");g.P(g.gT,g.aO);var tcu=new qX("NETWORK_SLI_TOKEN");uB.prototype.fetch=function(u,h,L){var Z=this,y,R,p;return g.G(function(J){y=cQf(Z,u,h);p=(R=Z.N)!=null?R:fetch;return J.return(p(y).then(function(O){return Z.handleResponse(O,L)}).catch(function(O){g.G3(O);
if((L==null?0:L.h9)&&O instanceof g.gT&&O.errorType===1)return Promise.reject(O)}))})};
uB.prototype.handleResponse=function(u,h){var L,Z=(L=this.X)!=null?L:JSON.parse;L=u.text().then(function(y){if((h==null?0:h.ZIX)&&u.ok)return BYL(h.ZIX,y);y=y.replace(")]}'","");if((h==null?0:h.h9)&&y)try{var R=Z(y)}catch(J){throw new g.gT(1,"JSON parsing failed after fetch");}var p;return(p=R)!=null?p:Z(y)});
u.redirected||u.ok?this.G&&this.G.success():(this.G&&this.G.ZEI(),L=L.then(function(y){g.G3(new g.aO("Error: API fetch failed",u.status,u.url,y));return Object.assign({},y,{errorMetadata:{status:u.status}})}));
return L};
uB[o6]=[new Tt(tcu),new Tt(aMb),new Tt($ky)];var I$j=new qX("NETWORK_MANAGER_TOKEN");var j4;ZS.prototype.bindInnertubeChallengeFetcher=function(u){this.G.bicf(u)};
ZS.prototype.registerChallengeFetchedCallback=function(u){this.G.bcr(u)};
ZS.prototype.getLatestChallengeResponse=function(){return this.G.blc()};var CgV=[],yi=!1;Os.prototype.B=function(){var u=this;return g.G(function(h){return h.G==1?g.N(h,Promise.race([u.G,null]),2):h.return(!!h.N)})};
Os.prototype.X=function(u,h,L){var Z=this,y,R,p;return g.G(function(J){Z.G===null&&ira(Z,JC(Z));y=!1;R={};p=function(){var O,f,D;return g.G(function(c){switch(c.G){case 1:return g.N(c,Z.G,2);case 2:O=c.N;R.challenge=O.challenge;if(!O.Il){"c1a"in O.w7&&(R.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");c.KI(3);break}f=Object.assign({},{c:O.challenge,e:u},h);g.Qn(c,4);y=!0;if(g.MI("attbs")&&!g.MI("attmusi")){D=O.Il.Y8({RM:f});c.KI(6);break}return g.N(c,O.Il.snapshot({RM:f}),7);case 7:D=c.N;case 6:D?R.webResponse=
D:R.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.Sa(c,3);break;case 4:g.Xf(c),R.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(u==="ENGAGEMENT_TYPE_PLAYBACK"){var I=O.w7,A={};I.c6a&&(A.reportingStatus=String(Number(I.c)^Rt()));I.c6b&&(A.broadSpectrumDetectionResult=String(Number(I.c)^Number(g.tn("CATSTAT",0))));R.adblockReporting=A}return c.return(R)}})};
return J.return(Promise.race([p(),X5f(L,function(){var O=Object.assign({},R);y&&(O.error="ATTESTATION_ERROR_VM_TIMEOUT");return O})]))})};var T5n=["APP_STATE","PI"];var ZEw=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,171388,244189,236208,7282,124448,196088,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,225031,177843,27259,27262,27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,
205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,
139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,
160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,
133658,132971,97615,181262,190762,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,210016,210017,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,226981,93278,93274,93275,93276,200688,200686,200687,199841,
22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,205913,51879,16623,32594,27240,32633,74858,222932,213915,225216,218674,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,
22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,211026,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,
150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,213774,204572,191389,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,
226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,63349,240553,95101,75240,27039,68823,21537,83464,75707,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,
11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,194E3,141121,164502,31571,195002,206793,141978,233985,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,
223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,189810,239095,78314,147799,237146,174049,148649,
55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,
170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];DS.prototype.getState=function(){return this.store.getState()};
DS.prototype.dispatch=function(u){return this.store.dispatch(u)};
DS.prototype.subscribe=function(u){return this.store.subscribe(u)};
DS.prototype.replaceReducer=function(u){return this.store.replaceReducer(u)};
DS.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};g.K=It.prototype;g.K.getLength=function(){return this.totalLength};
g.K.append=function(u){if(N5R(this,u)){var h=this.B_[this.B_.length-1];this.B_[this.B_.length-1]=new Uint8Array(h.buffer,h.byteOffset,h.length+u.length);PE(this)}else this.B_.push(u);this.totalLength+=u.length};
g.K.split=function(u){for(var h=new It,L=new It,Z=g.C(this.B_),y=Z.next();!y.done;y=Z.next())y=y.value,u>=y.length?(h.append(y),u-=y.length):u?(h.append(new Uint8Array(y.buffer,y.byteOffset,u)),L.append(new Uint8Array(y.buffer,y.byteOffset+u,y.length-u)),u=0):L.append(y);return{jU:h,NJ:L}};
g.K.isFocused=function(u){return u>=this.rZ&&u<this.rZ+this.B_[this.yK].length};
g.K.focus=function(u){if(!this.isFocused(u)){for(u<this.rZ&&PE(this);this.rZ+this.B_[this.yK].length<=u&&this.yK<this.B_.length;)this.rZ+=this.B_[this.yK].length,this.yK+=1;this.K$=void 0}};
g.K.NC=function(u,h){return u+h<=this.totalLength};
g.K.Bh=function(u,h){u=u===void 0?0:u;h=h===void 0?-1:h;if(!this.totalLength||!h)return new DataView(new ArrayBuffer(0));h<0&&(h=this.totalLength-u);this.focus(u);if(!C_(this,u,h)){var L=this.yK,Z=this.rZ;this.focus(u+h-1);Z=new Uint8Array(this.rZ+this.B_[this.yK].length-Z);for(var y=0,R=L;R<=this.yK;R++)Z.set(this.B_[R],y),y+=this.B_[R].length;this.B_.splice(L,this.yK-L+1,Z);PE(this);this.focus(u)}L=this.B_[this.yK];return new DataView(L.buffer,L.byteOffset+u-this.rZ,h)};
g.K.oF=function(u,h){u=this.Bh(u===void 0?0:u,h===void 0?-1:h);return new Uint8Array(u.buffer,u.byteOffset,u.byteLength)};
g.K.getUint8=function(u){this.focus(u);return this.B_[this.yK][u-this.rZ]};var lB,iB,XF;g.f4=function(){function u(Z){for(var y=new Uint8Array(Z.length),R=0;R<Z.length;R++)y[R]=Z[R];return y}
function h(Z){return new Uint8Array(Z)}
var L=new Uint8Array([1]);return L.length===1&&L[0]===1?h:u}();
lB=Array(1024);iB=window.TextDecoder?new TextDecoder:void 0;XF=window.TextEncoder?new TextEncoder:void 0;for(var VsR={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,
fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,
markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,
offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,
votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},dXl={},Wzy=g.C(Object.entries(VsR)),FzV=Wzy.next();!FzV.done;FzV=Wzy.next()){var bwc=g.C(FzV.value),Eeu=bwc.next().value,kD7=bwc.next().value,geg=Eeu,uKu=kD7;uKu&&(dXl[uKu]=geg)};var w5e=!1,Ji,Oo,f7,DA,cA;g.P(I9,g.m);
I9.prototype.encrypt=function(u){var h=u.length;u=new Uint8Array(u.buffer.slice(u.byteOffset,u.byteOffset+h));for(var L=this.N,Z=0;Z<h&&this.G<16;)u[Z++]^=L[this.G++];for(var y=h-(h-Z)%16;Z<y;)ebn(this),u[Z++]^=L[0],u[Z++]^=L[1],u[Z++]^=L[2],u[Z++]^=L[3],u[Z++]^=L[4],u[Z++]^=L[5],u[Z++]^=L[6],u[Z++]^=L[7],u[Z++]^=L[8],u[Z++]^=L[9],u[Z++]^=L[10],u[Z++]^=L[11],u[Z++]^=L[12],u[Z++]^=L[13],u[Z++]^=L[14],u[Z++]^=L[15];if(Z<h)for(ebn(this),this.G=0;Z<h;)u[Z++]^=L[this.G++];return u};var xE=!1;(function(){function u(Z){for(var y=new Uint8Array(Z.length),R=0;R<Z.length;R++)y[R]=Z[R];return y}
function h(Z){return new Uint8Array(Z)}
var L=new Uint8Array([1]);return L.length===1&&L[0]===1?h:u})();
var PA;g.MQ.prototype.encrypt=function(u,h){var L=this,Z,y;return g.G(function(R){if(R.G==1){Z=C7();if(!Z)return R.return(L.G(u,h));g.Qn(R,3);return g.N(R,L.N(u,h,Z),5)}if(R.G!=3)return R.return(R.N);y=g.Xf(R);g.G3(y);xE=!0;return R.return(L.G(u,h))})};
g.MQ.prototype.N=function(u,h,L){var Z=this,y,R;return g.G(function(p){switch(p.G){case 1:if(Z.T){p.KI(2);break}return g.N(p,L.importKey("raw",Z.B,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:Z.T=p.N;case 2:return y={name:"AES-CTR",counter:h,length:128},g.N(p,L.encrypt(y,Z.T,u),4);case 4:return R=p.N,p.return(new Uint8Array(R))}})};
g.MQ.prototype.G=function(u,h){this.X||(this.X=new I9(this.B));Ai(this.X,h);return this.X.encrypt(u)};
g.MQ.prototype.decrypt=function(u,h){return this.encrypt(u,h)};
g.ic.prototype.encrypt=function(u,h){this.G||(this.G=new I9(this.N));Ai(this.G,h);return this.G.encrypt(u)};
g.ic.prototype.decrypt=function(u,h){return this.encrypt(u,h)};Qv.prototype.reset=function(){$Xw(this);this.update(this.X)};
Qv.prototype.update=function(u){var h=0,L=u.length;this.B+=L;this.N&&this.N+L>=64&&(this.C.set(u.subarray(0,64-this.N),this.N),h=64-this.N,this.N=0,a$L(this,this.C,0));for(;h+64<=L;h+=64)a$L(this,u,h);h<L&&(u=u.subarray(h),this.C.set(u,this.N),this.N+=u.length)};
var lc=[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 jFY;jFY={};g.h8Y=g.kw("yt-idb-pref-storage",{wC:(jFY.prefs={wN:1},jFY),shared:!1,upgrade:function(u,h){h(1)&&g.HC(g.Tr(u,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});var H8;H8={};g.LHV=(H8.INVALID_ENCODER_VERSION="Invalid encoder version",H8.KEY_CREATION_FAILED="Failed to create encoder key",H8.UNKNOWN_DECODE_ERROR="Failed to decode PES data",H8.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",H8.WRONG_DATA_TYPE="Encoder cannot process the data type",H8);g.yv("","downloadsPageViewConfigurationEntity");g.yv("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");g.rk=g.yv("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.yv("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");g.yv("SMART_DOWNLOADS_ENABLED","settingEntity");g.yv("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var OeL=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];g.K=X4.prototype;g.K.initialize=function(u,h,L,Z){this.a7=Z;if(u.program){var y;Z=(y=u.interpreterUrl)!=null?y:null;if(u.interpreterSafeScript)y=rYn(u.interpreterSafeScript);else{var R;y=(R=u.interpreterScript)!=null?R:null}u.interpreterSafeUrl&&(Z=lU(u.interpreterSafeUrl).toString());JXe(this,y,Z,u.program,h,L)}else g.G3(Error("Cannot initialize botguard without program"))};
g.K.isInitialized=function(){return this.jy()};
g.K.getState=function(){return this.state};
g.K.isLoading=function(){return this.state===2};
g.K.invoke=function(u){u=u===void 0?{}:u;return this.jy()?this.aY({RM:u}):null};
g.K.dispose=function(){this.Em(null);this.Sq(8)};
g.K.jy=function(){return!!this.Il};
g.K.aY=function(u){return this.Il.Y8(u)};
g.K.Em=function(u){g.Ju(this.Il);this.Il=u};
g.K.Sq=function(u){this.state=u};g.P(qQ,X4);qQ.prototype.Em=function(u){var h;(h=vA())==null||h.bgvma();u?(h={bgvma:u.dispose.bind(u),bgvmb:u.snapshot.bind(u),bgvmc:u.Y8.bind(u)},g.nV("yt.abuse.playerAttLoader",h),g.nV("yt.abuse.playerAttLoaderRun",function(L){return u.snapshot(L)})):(g.nV("yt.abuse.playerAttLoader",null),g.nV("yt.abuse.playerAttLoaderRun",null))};
qQ.prototype.jy=function(){return!!vA()};
qQ.prototype.aY=function(u){return vA().bgvmc(u)};T2.prototype.Y0=function(){return"crossDeviceProgressCommand"};
T2.prototype.Ir=function(u){if(u.crossDevicePings){var h=[];u=g.C(u.crossDevicePings);for(var L=u.next();!L.done;L=u.next())h.push({baseUrl:L.value.baseUrl});g.pM("crossDeviceNotificationTransfer",{crossDevicePings:h})}};YE.prototype.Y0=function(){return"muteAdEndpoint"};
YE.prototype.Ir=function(u,h){switch(u.type){case "SKIP":fgi(this.JV,this.u8,h)}};o9.prototype.Y0=function(){return"openPopupAction"};
o9.prototype.Ir=function(){};NQ.prototype.Y0=function(){return"pingingEndpoint"};
NQ.prototype.Ir=function(){};var CsR={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.P(cXR,g.m);var twl={d$y:"FINAL",zOg:"AD_BREAK_LENGTH",B2A:"AD_CPN",gWI:"AH",l7w:"AD_MT",KpB:"ASR",r3X:"AW",vBI:"NM",CXB:"NX",wxX:"NY",bVi:"CONN",jMB:"CPN",xGA:"DV_VIEWABILITY",XeA:"ERRORCODE",lkI:"ERROR_MSG",DGy:"EI",Vu7:"GOOGLE_VIEWABILITY",QFg:"IAS_VIEWABILITY",k2g:"LACT",Utd:"LIVE_TARGETING_CONTEXT",thd:"I_X",hIa:"I_Y",xJ7:"MT",elA:"MIDROLL_POS",Ggd:"MIDROLL_POS_MS",IaI:"MOAT_INIT",ACd:"MOAT_VIEWABILITY",jQ7:"P_H",VbB:"PV_H",UJi:"PV_W",Wmy:"P_W",Lmd:"TRIGGER_TYPE",BN7:"SDKV",EDA:"SLOT_POS",i3X:"SURVEY_LOCAL_TIME_EPOCH_S",
Ljd:"SURVEY_ELAPSED_MS",xE:"VIS",rhd:"VIEWABILITY",Foa:"VED",vcy:"VOL",wpI:"WT",nUg:"YT_ERROR_CODE"};HA.prototype.Y0=function(){return"urlEndpoint"};
HA.prototype.Ir=function(u,h,L){var Z=this.cX.get(),y=QG(Z.N.get(),h);y?h=vI(Z,Vwl(y),y,void 0,void 0,L):(Jk("Trying to ping from an unknown layout",void 0,void 0,{layoutId:h}),h={});h=Object.assign({},h);af(this.G,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(L=fJ(this.X9,2))&&(h.AD_CPN=L.clientPlaybackNonce);h=g.Ng(u.url,h);g.nG(h,void 0,void 0,void 0,u.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME")};rr.prototype.get=function(){return this.value};
g.P(BA,rr);BA.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.P(z2,rr);z2.prototype.getType=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"};
g.P(mp,rr);mp.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.P(dr,rr);dr.prototype.getType=function(){return"metadata_type_ads_engagement_panel_layout_view_model"};
g.P(Vv,rr);Vv.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.P(n7,rr);n7.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.P(so,rr);so.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.P(wr,rr);wr.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.P(e7,rr);e7.prototype.getType=function(){return"metadata_type_banner_image_layout_view_model"};
g.P(a9,rr);a9.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.P($E,rr);$E.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.P(ti,rr);ti.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.P(WA,rr);WA.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.P(F4,rr);F4.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.P(bc,rr);bc.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.P(Eo,rr);Eo.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.P(kE,rr);kE.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.P(gr,rr);gr.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.P(uS,rr);uS.prototype.getType=function(){return"metadata_type_content_cpn"};
g.P(jN,rr);jN.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.P(he,rr);he.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"};
g.P(L6,rr);L6.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.P(ZX,rr);ZX.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
g.P(yO,rr);yO.prototype.getType=function(){return"metadata_type_media_associated_in_player_slot"};
g.P(RP,rr);RP.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.P(p6,rr);p6.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.P(K6,rr);K6.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.P(Je,rr);Je.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.P(Od,rr);Od.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.P(f6,rr);f6.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.P(DX,rr);DX.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.P(cU,rr);cU.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.P(IP,rr);IP.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
g.P(Ae,rr);Ae.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.P(x$,rr);x$.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.P(PU,rr);PU.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.P(C6,rr);C6.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.P(Mt,rr);Mt.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.P(iS,rr);iS.prototype.getType=function(){return"metadata_type_cue_point"};
g.P(QO,rr);QO.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.P(lS,rr);lS.prototype.getType=function(){return"metadata_type_player_vars"};
g.P(SN,rr);SN.prototype.getType=function(){return"metadata_type_preload_player_vars"};
g.P(Xz,rr);Xz.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.P(vU,rr);vU.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.P(qt,rr);qt.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.P(TP,rr);TP.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.P(Y$,rr);Y$.prototype.getType=function(){return"metadata_type_dai"};
g.P(oP,rr);oP.prototype.getType=function(){return"metadata_type_ad_intro"};
g.P(Nt,rr);Nt.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.P(Ud,rr);Ud.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.P(GP,rr);GP.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.P(HU,rr);HU.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.P(rQ,rr);rQ.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.P(BU,rr);BU.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.P(zP,rr);zP.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.P(mf,rr);mf.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.P(dQ,rr);dQ.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.P(VO,rr);VO.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.P(n6,rr);n6.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.P(sd,rr);sd.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.P(wQ,rr);wQ.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.P(eN,rr);eN.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.P(aP,rr);aP.prototype.getType=function(){return"metadata_type_active_view_identifier"};
g.P($$,rr);$$.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};
g.P(te,rr);te.prototype.getType=function(){return"metadata_type_eligible_for_ssap"};
g.P(WU,rr);WU.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};
g.P(Fz,rr);Fz.prototype.getType=function(){return"metadata_type_player_bytes_slot_metadata"};
g.P(bS,rr);bS.prototype.getType=function(){return"metadata_type_prefetch_metadata"};var U_1=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 n1i=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.P(uN,Cq);g.P(b,Cq);new Promise(function(){});var lgY=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"]]),ieL=new Map([["normal",{Vy:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",mB:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Vy:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",mB:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{Vy:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",mB:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Vy:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",mB:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Vy:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",mB:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Vy:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",mB:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{Vy:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",mB:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.P(fE,g.m);g.K=fE.prototype;g.K.F0=function(u,h){return this.G.F0(u,h)};
g.K.H_=function(u,h){this.j7.oJ("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",u,h);for(var L=g.C(this.N),Z=L.next();!Z.done;Z=L.next())Z.value.H_(u,h)};
g.K.al=function(u){if(xk(this.G,u)){this.j7.gZ("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",u);this.G.al(u);for(var h=g.C(this.N),L=h.next();!L.done;L=h.next())L.value.al(u);qZV(this,u)}};
g.K.b2=function(u){if(xk(this.G,u)){this.j7.gZ("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",u);this.G.b2(u);for(var h=g.C(this.N),L=h.next();!L.done;L=h.next())L.value.b2(u);xk(this.G,u)&&Ps(this.G,u).T&&If(this,u,!1)}};
g.K.BN=function(u){this.j7.gZ("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",u);xk(this.G,u)&&(this.G.BN(u),If(this,u,!1))};
g.K.Yl=function(u,h){if(xk(this.G,u)){this.j7.Xk("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",u,h);for(var L=g.C(this.N),Z=L.next();!Z.done;Z=L.next())Z.value.Yl(u,h)}};
g.K.KH=function(u,h,L){if(xk(this.G,u)){this.j7.Xk(QEj(L),u,h);this.G.KH(u,h);for(var Z=g.C(this.N),y=Z.next();!y.done;y=Z.next())y.value.KH(u,h,L);(L=NZ(this.G,u))&&h.layoutId===L.layoutId&&m_s(this,u,!1)}};
g.K.dO=function(u,h,L,Z){L.b9&&Z?(Jk(L,u,h,void 0,L.BL),this.j7.l_(Z,L.b9,u,h)):Jk("adsClientErrorMessage is missing.",u,h);If(this,u,!0)};
g.K.Ni=function(){var u=V9s(this.G);u=g.C(u);for(var h=u.next();!h.done;h=u.next())If(this,h.value,!1);g.m.prototype.Ni.call(this)};
g.K.Ou=function(u,h){this.j7.Xk("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",u,h);this.j7.Xk("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",u,h);for(var L=g.C(this.N),Z=L.next();!Z.done;Z=L.next())Z=Z.value,h&&Z.Ou(u,h)};d_l.prototype.isActive=function(){switch(this.G){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.P(Hs,g.m);g.K=Hs.prototype;g.K.F0=function(u,h){h=of(this,u+"_"+h);u=[];h=g.C(h.values());for(var L=h.next();!L.done;L=h.next())u.push(L.value.slot);return u};
g.K.ZL=function(u){u=Ps(this,u);u.G!=="not_scheduled"&&Ui(u.slot,u.G,"onSlotScheduled");u.G="scheduled"};
g.K.BU=function(u){u=Ps(this,u);u.B="fill_requested";u.V.BU()};
g.K.al=function(u){u=Ps(this,u);u.G!=="enter_requested"&&Ui(u.slot,u.G,"onSlotEntered");u.G="entered"};
g.K.BN=function(u){Ps(this,u).B="fill_canceled"};
g.K.b2=function(u){u=Ps(this,u);u.G!=="exit_requested"&&Ui(u.slot,u.G,"onSlotExited");u.G="scheduled"};
g.K.KH=function(u,h){u=Ps(this,u);u.layout!=null&&u.layout.layoutId===h.layoutId&&(u.G!=="rendering_stop_requested"&&Ui(u.slot,u.G,"onLayoutExited"),u.G="entered")};g.P(z0,g.m);z0.prototype.get=function(){Math.random()<.001&&this.ww()&&Jk("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.G());return this.instance};g.P(di,g.m);di.prototype.X=function(){return this.N};Vr.prototype.executeCommand=function(u,h){G2(this.G(),u,h)};wi.prototype.addListener=function(u){this.listeners.add(u)};
wi.prototype.removeListener=function(u){this.listeners.delete(u)};var B8={},gi=(B8.AD_MARKER="ytp-ad-progress",B8.CHAPTER_MARKER="ytp-chapter-marker",B8.TIME_MARKER="ytp-time-marker",B8);var w6V=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/)"),ben=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]+)?/)"),
efs=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),LPi=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)|$))"),
jGi=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)|$))"),k3n=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/)"),
a2b=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),g1w=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)"),E1n=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/.*$)"),
tuw=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)"),
$AV=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)"),
ZaV=RegExp("^(https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://one\\.google\\.com|https://artsandculture\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?staging\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https://localhost\\.googleusercontent\\.com(:\\d+)?$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.uW.prototype.getId=function(){return this.id};
g.uW.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+pLn(this.start)+", "+pLn(this.end)+"]"};
g.uW.prototype.contains=function(u,h){return u>=this.start&&(u<this.end||u===this.end&&this.start===this.end)&&(h==null||u<h&&h<=this.end)};
var RIl=1;g.uW.prototype.getId=g.uW.prototype.getId;ZL.prototype.BU=function(){var u=this,h=0;WGs(this.G,function(){var L=hl(u.slot.clientMetadata,"metadata_type_ad_break_request_data");h=Date.now();bQ(u.cX.get(),"abrs","ct."+h+";cmt."+u.FB.get().getCurrentTimeSec(1,!1)+";sid."+u.slot.slotId+";");return u.N.get().fetch({p4:L.getAdBreakUrl,u0:new g.uW(L.UW,L.V_),k6:hl(u.slot.clientMetadata,"metadata_type_cue_point"),cueProcessedMs:L.cueProcessedMs})},function(){Jm1(u)},function(L){var Z=Date.now()-h;
bQ(u.cX.get(),"abrr","ct."+(new Date).getTime()+";cmt."+u.FB.get().getCurrentTimeSec(1,!1)+";l."+Z.toString()+";sid."+u.slot.slotId+";");Z=L.zY;Z.length>=2&&L.ssdaiAdsConfig&&Jk("Unexpected ad placement renderers length",u.slot,null,{length:Z.length});Z.some(function(y){var R,p,J,O;return!!((R=y.renderer)==null?0:(p=R.linearAdSequenceRenderer)==null?0:(J=p.linearAds)==null?0:J.length)||!((O=y.renderer)==null||!O.instreamVideoAdRenderer)})||Jm1(u)})};
ZL.prototype.P9=function(){FG1(this.G)};yd.prototype.BU=function(){var u=this;WGs(this.N,function(){var h=hl(u.slot.clientMetadata,"metadata_type_ad_break_request_data");return h.cueProcessedMs?u.G.get().fetch({p4:h.getAdBreakUrl,u0:new g.uW(h.UW,h.V_),cueProcessedMs:h.cueProcessedMs}):u.G.get().fetch({p4:h.getAdBreakUrl,u0:new g.uW(h.UW,h.V_)})})};
yd.prototype.P9=function(){FG1(this.N)};Rz.prototype.BU=function(){var u=this.slot.clientMetadata,h,L=(h=this.slot.fulfilledLayout)!=null?h:hl(u,"metadata_type_fulfilled_layout");TDw(this.callback,this.slot,L)};
Rz.prototype.P9=function(){Al(this.callback,this.slot,new b("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")};K2.prototype.build=function(u,h){return h.fulfilledLayout||p2(h,{z1:["metadata_type_fulfilled_layout"]})?new Rz(u,h):this.X(u,h)};g.P(Jc,K2);
Jc.prototype.X=function(u,h){if(p2(h,{z1:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new ZL(u,h,this.G,this.N,this.Xo,this.Mi,this.cX,this.FB,this.Bj);if(p2(h,{z1:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new yd(u,h,this.G,this.N,this.Xo,this.Mi);throw new b("Unsupported slot with type: "+h.slotType+" and client metadata: "+LE(h.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.P(Ox,K2);Ox.prototype.X=function(u,h){throw new b("Unsupported slot with type: "+h.slotType+" and client metadata: "+LE(h.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.K=Oun.prototype;g.K.S7=function(){return this.slot};
g.K.Ug=function(){return this.layout};
g.K.init=function(){};
g.K.release=function(){};
g.K.startRendering=function(u){if(u.layoutId!==this.layout.layoutId)this.callback.dO(this.slot,u,new uN("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 h=hl(u.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Yl(this.slot,u),qsa(this.X,
this.slot,h)):Jk("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,u)}};
g.K.Ib=function(u,h){u.layoutId!==this.layout.layoutId?this.callback.dO(this.slot,u,new uN("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.KH(this.slot,u,h),Dh1(this),cmY(this))};g.P(Ac,g.yV);g.K=Ac.prototype;g.K.S7=function(){return this.N.slot};
g.K.Ug=function(){return this.N.layout};
g.K.init=function(){this.X.get().addListener(this)};
g.K.release=function(){this.X.get().removeListener(this);this.dispose()};
g.K.V6=function(){};
g.K.k_=function(){};
g.K.pR=function(){};
g.K.ai=function(){};
g.K.startRendering=function(u){var h=this;Iz(this.N,u,function(){return void h.cY()})};
g.K.cY=function(){this.X.get().cY(this.G)};
g.K.Ib=function(u,h){var L=this;Iz(this.N,u,function(){var Z=L.X.get();hOV(Z,L.G,3);L.G=[];L.callback.KH(L.slot,u,h)})};
g.K.Ni=function(){this.X.ww()||this.X.get().removeListener(this);g.yV.prototype.Ni.call(this)};
g.Js.Object.defineProperties(Ac.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.N.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.N.layout}}});SR.prototype.d2=function(u,h){h=h===void 0?!1:h;var L=(this.X.get(u)||[]).concat();if(h=h&&xhY(u)){var Z=this.X.get(h);Z&&L.push.apply(L,g.l(Z))}qF(this,u,L);this.G.add(u);h&&this.G.add(h)};
SR.prototype.qp=function(u,h){h=h===void 0?!1:h;if(!this.G.has(u)){var L=h&&xhY(u);L&&(h=!this.G.has(L));this.d2(u,h)}};g.P(M0w,Zd);g.P(Ux,Ac);g.K=Ux.prototype;g.K.DL=function(u,h){MF("ads-engagement-panel-layout",u,this.C.get().rX,this.cX.get(),this.B,this.T,this.S7(),this.Ug(),h)};
g.K.startRendering=function(u){PI(this.JB,this.S7(),this.Ug(),g.n(this.Ug().renderingContent,ua),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(h,L,Z,y,R){return new M0w(h,L,Z,y,R)},this.G);
Ac.prototype.startRendering.call(this,u)};
g.K.Yl=function(u,h){this.T===h.layoutId&&(this.B===null?this.B=this.cX.get().mp():Jk("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.K.KH=function(){};
g.K.ZL=function(){};
g.K.SD=function(){};
g.K.Lr=function(){};
g.K.al=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(){};
g.K.Ou=function(){};
g.K.H_=function(){};
g.K.Ni=function(){cs(this.Gd(),this);Ac.prototype.Ni.call(this)};g.P(QGi,Zd);g.P(G1,Ac);g.K=G1.prototype;g.K.DL=function(u,h){MF("banner-image",u,this.C.get().rX,this.cX.get(),this.B,this.T,this.S7(),this.Ug(),h)};
g.K.startRendering=function(u){PI(this.JB,this.S7(),this.Ug(),g.n(this.Ug().renderingContent,kf),this.callback,"metadata_type_banner_image_layout_view_model",function(h,L,Z,y,R){return new QGi(h,L,Z,y,R)},this.G);
Ac.prototype.startRendering.call(this,u)};
g.K.Yl=function(u,h){this.T===h.layoutId&&(this.B===null?this.B=this.cX.get().mp():Jk("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.K.KH=function(){};
g.K.ZL=function(){};
g.K.SD=function(){};
g.K.Lr=function(){};
g.K.al=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(){};
g.K.Ou=function(){};
g.K.H_=function(){};
g.K.Ni=function(){cs(this.Gd(),this);Ac.prototype.Ni.call(this)};g.P(HI,Zd);g.P(r1,Ac);g.K=r1.prototype;g.K.DL=function(u,h){MF("action-companion",u,this.C.get().rX,this.cX.get(),this.B,this.T,this.S7(),this.Ug(),h)};
g.K.startRendering=function(u){PI(this.JB,this.S7(),this.Ug(),g.n(this.Ug().renderingContent,Fc),this.callback,"metadata_type_action_companion_ad_renderer",function(h,L,Z,y,R){return new HI(h,L,Z,y,R)},this.G);
Ac.prototype.startRendering.call(this,u)};
g.K.Yl=function(u,h){h.layoutId===this.layout.layoutId?this.JB.qp("impression"):this.T===h.layoutId&&(this.B===null?this.B=this.cX.get().mp():Jk("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.K.KH=function(){};
g.K.ZL=function(){};
g.K.SD=function(){};
g.K.Lr=function(){};
g.K.al=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(){};
g.K.Ou=function(){};
g.K.H_=function(){};
g.K.Ni=function(){cs(this.Gd(),this);Ac.prototype.Ni.call(this)};g.P(XLe,Zd);g.P(BI,Ac);g.K=BI.prototype;g.K.DL=function(u,h){MF("image-companion",u,this.C.get().rX,this.cX.get(),this.B,this.T,this.S7(),this.Ug(),h)};
g.K.startRendering=function(u){PI(this.JB,this.S7(),this.Ug(),g.n(this.Ug().renderingContent,br),this.callback,"metadata_type_image_companion_ad_renderer",function(h,L,Z,y,R){return new XLe(h,L,Z,y,R)},this.G);
Ac.prototype.startRendering.call(this,u)};
g.K.Yl=function(u,h){h.layoutId===this.layout.layoutId?this.JB.qp("impression"):this.T===h.layoutId&&(this.B===null?this.B=this.cX.get().mp():Jk("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.K.KH=function(){};
g.K.ZL=function(){};
g.K.SD=function(){};
g.K.Lr=function(){};
g.K.al=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(){};
g.K.Ou=function(){};
g.K.H_=function(){};
g.K.Ni=function(){cs(this.Gd(),this);Ac.prototype.Ni.call(this)};g.P(qDe,Zd);g.P(z1,Ac);g.K=z1.prototype;g.K.DL=function(u,h){MF("shopping-companion",u,this.C.get().rX,this.cX.get(),this.B,this.T,this.S7(),this.Ug(),h)};
g.K.startRendering=function(u){PI(this.JB,this.S7(),this.Ug(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(h,L,Z,y,R){return new qDe(h,L,Z,y,R)},this.G);
Ac.prototype.startRendering.call(this,u)};
g.K.Yl=function(u,h){h.layoutId===this.layout.layoutId?this.JB.qp("impression"):this.T===h.layoutId&&(this.B===null?this.B=this.cX.get().mp():Jk("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.K.KH=function(){};
g.K.ZL=function(){};
g.K.SD=function(){};
g.K.Lr=function(){};
g.K.al=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(){};
g.K.Ou=function(){};
g.K.H_=function(){};
g.K.Ni=function(){cs(this.Gd(),this);Ac.prototype.Ni.call(this)};g.P(d1,Ac);g.K=d1.prototype;g.K.startRendering=function(u){PI(this.JB,this.S7(),this.Ug(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(h,L,Z,y,R){return new HI(h,L,Z,y,R)},this.G);
Ac.prototype.startRendering.call(this,u)};
g.K.Yl=function(){};
g.K.KH=function(){};
g.K.ZL=function(){};
g.K.SD=function(){};
g.K.Lr=function(){};
g.K.al=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(){};
g.K.Ou=function(){};
g.K.H_=function(){};
g.K.Ni=function(){cs(this.Gd(),this);Ac.prototype.Ni.call(this)};
g.K.DL=function(){};g.K=GCb.prototype;g.K.S7=function(){return this.slot};
g.K.Ug=function(){return this.layout};
g.K.init=function(){this.FB.get().addListener(this);this.FB.get().LT.push(this);var u=hl(this.layout.clientMetadata,"metadata_type_video_length_seconds"),h=hl(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");iW(this.layout.Np)&&hI(this.z3.get(),this.layout.layoutId,{CA:h,Y5:u,listener:this})};
g.K.release=function(){this.FB.get().removeListener(this);bLe(this.FB.get(),this);iW(this.layout.Np)&&LW(this.z3.get(),this.layout.layoutId)};
g.K.startRendering=function(u){this.callback.Yl(this.slot,u)};
g.K.Ib=function(u,h){iL1(this.Mi.get())&&!this.G&&(this.JB.qp("abandon"),this.G=!0);this.callback.KH(this.slot,u,h)};
g.K.qT=function(u){switch(u.id){case "part2viewed":this.JB.qp("start");this.JB.qp("impression");break;case "videoplaytime25":this.JB.qp("first_quartile");break;case "videoplaytime50":this.JB.qp("midpoint");break;case "videoplaytime75":this.JB.qp("third_quartile");break;case "videoplaytime100":iL1(this.Mi.get())?this.G||(this.JB.qp("complete"),this.G=!0):this.JB.qp("complete");NF(this.JB)&&Yl(this.JB,Infinity,!0);Q1j(this.Mi.get())&&mF(this.N,Infinity,!0);break;case "engagedview":NF(this.JB)||this.JB.qp("progress");
break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Jk("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.K.onVolumeChange=function(){};
g.K.Bx=function(){};
g.K.Wo=function(){};
g.K.J2=function(){};
g.K.onFullscreenToggled=function(){};
g.K.SS=function(){};
g.K.SZ=function(){};
g.K.zL=function(u){Q1j(this.Mi.get())&&mF(this.N,u*1E3,!1);NF(this.JB)&&Yl(this.JB,u*1E3,!1)};
g.K.h2=function(){};
g.K.IZ=function(){this.JB.qp("active_view_measurable")};
g.K.Ai=function(){this.JB.qp("active_view_viewable")};
g.K.Gs=function(){this.JB.qp("active_view_fully_viewable_audible_half_duration")};
g.K.mL=function(){this.JB.qp("audio_measurable")};
g.K.xa=function(){this.JB.qp("audio_audible")};g.P(Vd,Ac);g.K=Vd.prototype;g.K.init=function(){Ac.prototype.init.call(this);var u=hl(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),h={adsClientData:this.layout.oP};this.G.push(new CG(u,this.layout.layoutId,hl(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),h,!0))};
g.K.qR=function(){this.B||this.FB.get().resumeVideo(1)};
g.K.startRendering=function(u){Ac.prototype.startRendering.call(this,u);OA(this.FB.get(),"ad-showing");this.callback.Yl(this.slot,u);this.T.vH=this};
g.K.Ib=function(u,h){Ac.prototype.Ib.call(this,u,h);fW(this.FB.get(),"ad-showing");Wq(this.T,this)};
g.K.DL=function(u){switch(u){case "ad-info-icon-button":(this.B=this.FB.get().Ah(1))||this.FB.get().pauseVideo();break;case "visit-advertiser":this.FB.get().pauseVideo()}};
g.K.Ni=function(){Ac.prototype.Ni.call(this)};g.P(n2,Zd);g.P(sx,Ac);g.K=sx.prototype;g.K.startRendering=function(u){PI(this.JB,this.S7(),this.Ug(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(h,L,Z,y,R){return new n2(h,L,Z,y,R)},this.G);
Ac.prototype.startRendering.call(this,u)};
g.K.Yl=function(){};
g.K.KH=function(){};
g.K.ZL=function(){};
g.K.SD=function(){};
g.K.Lr=function(){};
g.K.al=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(){};
g.K.Ou=function(){};
g.K.H_=function(){};
g.K.Ni=function(){cs(this.Gd(),this);Ac.prototype.Ni.call(this)};
g.K.DL=function(){};g.P(w1,Zd);g.P(eR,Ac);eR.prototype.init=function(){Ac.prototype.init.call(this);this.G.push(new w1(g.n(this.layout.renderingContent,MU),this.layout.layoutId,{adsClientData:this.layout.oP}))};
eR.prototype.DL=function(){im(this.B.get(),this.T)&&C2(this.cX.get(),3)};
eR.prototype.startRendering=function(u){Ac.prototype.startRendering.call(this,u);this.callback.Yl(this.slot,u)};
eR.prototype.Ni=function(){Ac.prototype.Ni.call(this)};g.P(az,Zd);g.P($l,Ac);$l.prototype.init=function(){Ac.prototype.init.call(this);var u=g.n(this.layout.renderingContent,yE)||hl(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),h=xl(this.JB);this.G.push(new az(u,h,this.layout.layoutId,{adsClientData:this.layout.oP},!0,!0))};
$l.prototype.startRendering=function(u){Ac.prototype.startRendering.call(this,u);this.callback.Yl(this.slot,u)};
$l.prototype.DL=function(u,h){if(h===this.layout.layoutId)switch(u){case "skip-button":var L;(u=(L=hl(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:L.current)&&u.NB(this.S7(),this.layout)}};
$l.prototype.Ni=function(){Ac.prototype.Ni.call(this)};WI.prototype.build=function(u,h,L,Z){if(tc(Z,{z1:["metadata_type_ad_break_response_data"],GM:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new Oun(u,L,Z,this.N,this.X,this.G);throw new uN("Unsupported layout with type: "+Z.layoutType+" and client metadata: "+LE(Z.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.P(BsV,Zd);g.P(F2,Ac);g.K=F2.prototype;g.K.DL=function(u,h){MF("ads-engagement-panel",u,this.C.get().rX,this.cX.get(),this.B,this.T,this.S7(),this.Ug(),h)};
g.K.startRendering=function(u){PI(this.JB,this.S7(),this.Ug(),g.n(this.Ug().renderingContent,EL),this.callback,"metadata_type_ads_engagement_panel_renderer",function(h,L,Z,y,R){return new BsV(h,L,Z,y,R)},this.G);
Ac.prototype.startRendering.call(this,u)};
g.K.Yl=function(u,h){h.layoutId===this.layout.layoutId?this.JB.qp("impression"):this.T===h.layoutId&&(this.B===null?this.B=this.cX.get().mp():Jk("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.K.KH=function(){};
g.K.ZL=function(){};
g.K.SD=function(){};
g.K.Lr=function(){};
g.K.al=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(){};
g.K.Ou=function(){};
g.K.H_=function(){};
g.K.Ni=function(){cs(this.Gd(),this);Ac.prototype.Ni.call(this)};g.P(bW,Ac);g.K=bW.prototype;g.K.DL=function(u,h){MF("top-banner-image-text-icon-buttoned",u,this.C.get().rX,this.cX.get(),this.B,this.T,this.S7(),this.Ug(),h)};
g.K.startRendering=function(u){PI(this.JB,this.S7(),this.Ug(),g.n(this.Ug().renderingContent,gz),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(h,L,Z,y,R){return new n2(h,L,Z,y,R)},this.G);
Ac.prototype.startRendering.call(this,u)};
g.K.Yl=function(u,h){this.T===h.layoutId&&(this.B===null?this.B=this.cX.get().mp():Jk("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.K.KH=function(){};
g.K.ZL=function(){};
g.K.SD=function(){};
g.K.Lr=function(){};
g.K.al=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(){};
g.K.Ou=function(){};
g.K.H_=function(){};
g.K.Ni=function(){cs(this.Gd(),this);Ac.prototype.Ni.call(this)};dhi.prototype.build=function(u,h,L,Z){if(tc(Z,zIL())||g.n(Z.renderingContent,EL)!==void 0)return new F2(u,L,Z,this.uF,this.cX,this.Gd,this.z3,this.G);if(tc(Z,SDe())||g.n(Z.renderingContent,Fc)!==void 0)return new r1(u,L,Z,this.uF,this.cX,this.Gd,this.z3,this.G);if(tc(Z,vSV())||g.n(Z.renderingContent,br)!==void 0)return new BI(u,L,Z,this.uF,this.cX,this.Gd,this.z3,this.G);if(tc(Z,TsV()))return new z1(u,L,Z,this.uF,this.cX,this.Gd,this.z3,this.G);if(tc(Z,Uhn()))return new d1(u,L,Z,this.uF,this.cX,this.Gd,
this.z3,this.G);if(tc(Z,ldY())||g.n(Z.renderingContent,kf)!==void 0)return new G1(u,L,Z,this.uF,this.cX,this.Gd,this.z3,this.G);if(tc(Z,mhj())||g.n(Z.renderingContent,gz)!==void 0)return new bW(u,L,Z,this.uF,this.cX,this.Gd,this.z3,this.G);if(tc(Z,HuY()))return new sx(u,L,Z,this.uF,this.cX,this.Gd,this.z3,this.G);if(tc(Z,iuY())||g.n(Z.renderingContent,ua)!==void 0)return new Ux(u,L,Z,this.uF,this.cX,this.Gd,this.z3,this.G);throw new uN("Unsupported layout with type: "+Z.layoutType+" and client metadata: "+
LE(Z.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};V0a.prototype.build=function(u,h,L,Z){if(tc(Z,{z1:["metadata_type_linked_player_bytes_layout_id"],GM:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new eR(u,L,Z,this.uF,this.cX,this.G);throw new uN("Unsupported layout with type: "+Z.layoutType+" and client metadata: "+LE(Z.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.K=nSn.prototype;g.K.S7=function(){return this.slot};
g.K.Ug=function(){return this.layout};
g.K.init=function(){};
g.K.release=function(){};
g.K.startRendering=function(u){u.layoutId!==this.layout.layoutId?this.callback.dO(this.slot,u,new uN("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.Yl(this.slot,u),this.JB.qp("impression"),Vj(this.q$,u,"normal"))};
g.K.Ib=function(u,h){u.layoutId!==this.layout.layoutId?this.callback.dO(this.slot,u,new uN("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.KH(this.slot,u,h)};g.K=wLa.prototype;g.K.S7=function(){return this.slot};
g.K.Ug=function(){return this.layout};
g.K.init=function(){};
g.K.release=function(){};
g.K.startRendering=function(u){u.layoutId!==this.layout.layoutId?this.callback.dO(this.slot,u,new uN("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.Yl(this.slot,u),this.JB.qp("impression"),Vj(this.q$,u,"normal"))};
g.K.Ib=function(u,h){u.layoutId!==this.layout.layoutId?this.callback.dO(this.slot,u,new uN("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.KH(this.slot,u,h)};Ex.prototype.build=function(u,h,L,Z){if(!this.Mi.get().D.L().j("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(tc(Z,sGs()))return new nSn(u,L,Z,this.cX,this.q$)}else if(tc(Z,{z1:[],GM:["LAYOUT_TYPE_FORECASTING"]}))return new wLa(u,L,Z,this.cX,this.q$);throw new uN("Unsupported layout with type: "+Z.layoutType+" and client metadata: "+LE(Z.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.P($hf,Zd);g.P(kl,Ac);g.K=kl.prototype;g.K.init=function(){Ac.prototype.init.call(this);var u=g.n(this.layout.renderingContent,Zq)||hl(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),h={adsClientData:this.layout.oP};this.G.push(new $hf(u,hl(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,h))};
g.K.qR=function(){this.B||this.FB.get().resumeVideo(2)};
g.K.startRendering=function(u){Ac.prototype.startRendering.call(this,u);this.callback.Yl(this.slot,u);this.T.vH=this};
g.K.Ib=function(u,h){Ac.prototype.Ib.call(this,u,h);Wq(this.T,this)};
g.K.DL=function(u){if(im(this.C.get(),this.V))switch(u){case "visit-advertiser-link":C2(this.cX.get(),3)}switch(u){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.B||this.FB.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.B=this.FB.get().Ah(2))||this.FB.get().pauseVideo();break;case "visit-advertiser-link":this.FB.get().pauseVideo();t0e(this).eX();break;case "skip-button":if(u=t0e(this),
this.layout.renderingContent&&!Ed(this.layout.clientMetadata,"metadata_type_dai")||!u.h8){var h;(u=(h=hl(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:h.current)&&u.NB(this.S7(),this.layout)}else Jk("Requesting to skip by LegacyPlayerBytes when components enabled"),u.XH(this.S7(),this.layout)}};
g.K.Ni=function(){Ac.prototype.Ni.call(this)};g.P(g1,Ac);g.K=g1.prototype;g.K.init=function(){Ac.prototype.init.call(this);var u=g.n(this.layout.renderingContent,LA)||hl(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),h={adsClientData:this.layout.oP},L;(L=!!this.layout.renderingContent)||(L=!uZ(this).h8);this.G.push(new CG(u,this.layout.layoutId,hl(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),h,L))};
g.K.qR=function(){this.B||this.FB.get().resumeVideo(2)};
g.K.startRendering=function(u){Ac.prototype.startRendering.call(this,u);this.callback.Yl(this.slot,u);this.T.vH=this};
g.K.Ib=function(u,h){Ac.prototype.Ib.call(this,u,h);Wq(this.T,this)};
g.K.DL=function(u){if(im(this.C.get(),this.V))switch(u){case "visit-advertiser":C2(this.cX.get(),3)}switch(u){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.B||this.FB.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.B=this.FB.get().Ah(2))||this.FB.get().pauseVideo();break;case "visit-advertiser":this.FB.get().pauseVideo();uZ(this).eX();break;case "skip-button":if(u=uZ(this),this.layout.renderingContent&&
!Ed(this.layout.clientMetadata,"metadata_type_dai")||!u.h8){var h;(u=(h=hl(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:h.current)&&u.NB(this.S7(),this.layout)}else Jk("Requesting to skip by LegacyPlayerBytes"),u.XH(this.S7(),this.layout)}};
g.K.Ni=function(){Ac.prototype.Ni.call(this)};g.P(FPi,Zd);g.P(jX,Ac);g.K=jX.prototype;g.K.startRendering=function(u){var h=this;Iz(this.N,u,function(){h.G.push(new FPi(hl(h.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),u.layoutId,u.oP));h.cY();h.callback.Yl(h.slot,u);g.F(jP(h.FB.get(),1),512)&&h.callback.dO(h.S7(),h.Ug(),new uN("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
g.K.SZ=function(){};
g.K.SS=function(u){if(u.state.isError()){var h;this.callback.dO(this.S7(),this.Ug(),new uN("A player error happened during adNotify",{playerErrorCode:(h=u.state.Ad)==null?void 0:h.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}};
g.K.onFullscreenToggled=function(){};
g.K.Wo=function(){};
g.K.J2=function(){};
g.K.Bx=function(){};
g.K.onVolumeChange=function(){};
g.K.qT=function(){};
g.K.h2=function(){};
g.K.DL=function(){};g.P(ESn,Zd);g.P(hg,Ac);hg.prototype.init=function(){Ac.prototype.init.call(this);var u=g.n(this.layout.renderingContent,Rn),h=xl(this.JB);this.G.push(new ESn(u,h,this.layout.layoutId,{adsClientData:this.layout.oP}))};
hg.prototype.startRendering=function(u){Ac.prototype.startRendering.call(this,u);this.callback.Yl(this.slot,u)};
hg.prototype.DL=function(u,h){if(h===this.layout.layoutId)switch(u){case "skip-button":var L;(u=(L=hl(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:L.current)&&u.NB(this.S7(),this.layout)}};
hg.prototype.Ni=function(){Ac.prototype.Ni.call(this)};kC1.prototype.build=function(u,h,L,Z){if(u=pA(u,L,Z,this.uF,this.FB,this.cX,this.N,this.G,this.Mi))return u;throw new uN("Unsupported layout with type: "+Z.layoutType+" and client metadata: "+LE(Z.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.K=ON.prototype;g.K.S7=function(){return this.slot};
g.K.Ug=function(){return this.layout};
g.K.init=function(){this.FB.get().addListener(this);this.FB.get().LT.push(this);var u=this.layout.renderingContent?fJ(this.Eg.get(),1).I$/1E3:hl(this.layout.clientMetadata,"metadata_type_video_length_seconds"),h=hl(this.layout.clientMetadata,"metadata_type_active_view_traffic_type"),L=hl(this.layout.clientMetadata,"metadata_type_active_view_identifier");iW(this.layout.Np)&&hI(this.z3.get(),this.layout.layoutId,{CA:h,Y5:u,listener:this,GQ:L})};
g.K.release=function(){this.FB.get().removeListener(this);bLe(this.FB.get(),this);iW(this.layout.Np)&&LW(this.z3.get(),this.layout.layoutId)};
g.K.startRendering=function(u){this.callback.Yl(this.slot,u)};
g.K.Ib=function(u,h){fA(this,"abandon");this.callback.KH(this.slot,u,h)};
g.K.qT=function(u){switch(u.id){case "part2viewed":this.JB.qp("start");this.JB.qp("impression");break;case "videoplaytime25":this.JB.qp("first_quartile");break;case "videoplaytime50":this.JB.qp("midpoint");break;case "videoplaytime75":this.JB.qp("third_quartile");break;case "videoplaytime100":fA(this,"complete");NF(this.JB)&&Yl(this.JB,Infinity,!0);break;case "engagedview":NF(this.JB)||this.JB.qp("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:Jk("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}};
g.K.onVolumeChange=function(){};
g.K.Bx=function(){};
g.K.Wo=function(){};
g.K.J2=function(){};
g.K.onFullscreenToggled=function(){};
g.K.SS=function(u){this.G||(g.DK(u,4)&&!g.DK(u,2)?T1(this.JB,"pause"):fG(u,4)<0&&!(fG(u,2)<0)&&T1(this.JB,"resume"))};
g.K.SZ=function(){};
g.K.zL=function(u){NF(this.JB)&&Yl(this.JB,u*1E3,!1)};
g.K.h2=function(){fA(this,"swipe")};
g.K.IZ=function(){this.JB.qp("active_view_measurable")};
g.K.Ai=function(){this.JB.qp("active_view_viewable")};
g.K.Gs=function(){this.JB.qp("active_view_fully_viewable_audible_half_duration")};
g.K.mL=function(){this.JB.qp("audio_measurable")};
g.K.xa=function(){this.JB.qp("audio_audible")};gSj.prototype.build=function(u,h,L,Z){if(L.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.n(Z.renderingContent,Qe)!==void 0)return new ON(u,L,Z,this.FB,this.cX,this.Mi,this.z3,this.Eg);h=["metadata_type_ad_placement_config"];for(var y=g.C(X2()),R=y.next();!R.done;R=y.next())h.push(R.value);if(tc(Z,{z1:h,GM:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return L.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new ON(u,L,Z,this.FB,this.cX,this.Mi,this.z3,this.Eg):new GCb(u,L,Z,this.FB,this.cX,
this.yZ,this.Mi,this.z3);throw new uN("Unsupported layout with type: "+Z.layoutType+" and client metadata: "+LE(Z.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var Ag={contentCpn:"",b7:new Map};JkR.prototype.RP=function(u,h){var L={};h=Object.assign({},h,(L.cc=this.X9.kV(),L));this.X9.D.IH(u,h)};var yoq,zs;
yoq={EWX:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",mTH:"AUTHENTICATION_MALFORMED",eJB:"AUTHENTICATION_MISSING",Iz7:"BAD_REQUEST",MYd:"CAST_SESSION_DEVICE_MISMATCHED",XxI:"CAST_SESSION_VIDEO_MISMATCHED",zJ7:"CAST_TOKEN_EXPIRED",BXI:"CAST_TOKEN_FAILED",gBw:"CAST_TOKEN_MALFORMED",lz7:"CGI_PARAMS_MALFORMED",KOX:"CGI_PARAMS_MISSING",Sad:"DEVICE_FALLBACK",z0i:"GENERIC_WITH_LINK_AND_CPN",BZB:"ERROR_HDCP",goB:"LICENSE",KeH:"VIDEO_UNAVAILABLE",Cwd:"FORMAT_UNAVAILABLE",akw:"GEO_FAILURE",
Z7d:"HTML5_AUDIO_RENDERER_ERROR",JSw:"GENERIC_WITHOUT_LINK",tuI:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",h0X:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",fkg:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",YAI:"HTML5_SPS_UMP_STATUS_REJECTED",dtI:"INVALID_DRM_MESSAGE",tbX:"PURCHASE_NOT_FOUND",hlB:"PURCHASE_REFUNDED",GyI:"RENTAL_EXPIRED",dvi:"RETRYABLE_ERROR",Kji:"SERVER_ERROR",ysa:"SIGNATURE_EXPIRED",kyd:"STOPPED_BY_ANOTHER_PLAYBACK",jmB:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Vwd:"STREAMING_NOT_ALLOWED",
UvI:"STREAM_LICENSE_NOT_FOUND",Z3B:"TOO_MANY_REQUESTS",JsA:"TOO_MANY_REQUESTS_WITH_LINK",twd:"TOO_MANY_STREAMS_PER_ENTITLEMENT",hLX:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",Kod:"VIDEO_FORBIDDEN",DUB:"VIDEO_NOT_FOUND",nBH:"BROWSER_OR_EXTENSION_ERROR"};zs={};
g.b5=(zs.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.",zs.DEVICE_FALLBACK="Sorry, this video is not available on this device.",zs.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",zs.LICENSE="Sorry, there was an error licensing this video.",zs.VIDEO_UNAVAILABLE=
"Video unavailable",zs.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",zs.GEO_FAILURE="This video isn't available in your country.",zs.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",zs.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",zs.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",zs.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",
zs.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",zs.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",zs.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",zs.PURCHASE_NOT_FOUND="This video requires payment.",zs.PURCHASE_REFUNDED="This video's purchase has been refunded.",zs.RENTAL_EXPIRED="This video's rental has expired.",zs.CAST_SESSION_DEVICE_MISMATCHED=
"The device in the cast session doesn't match the requested one.",zs.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",zs.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",zs.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",zs.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",zs.SERVER_ERROR="There was an internal server error. Please try again later.",zs.STOPPED_BY_ANOTHER_PLAYBACK=
"Your account is playing this video in another location. Please reload this page to resume watching.",zs.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",zs.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",zs.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",zs.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",zs.TOO_MANY_REQUESTS="Please log in to watch this video.",
zs.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",zs.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",zs.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",zs.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",zs.VIDEO_FORBIDDEN="Access to this video is forbidden.",zs.VIDEO_NOT_FOUND="This video can not be found.",zs.BROWSER_OR_EXTENSION_ERROR=
"Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",zs);var R8c;var pv7=g.N7(),KHr=pv7.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!KHr||KHr.length<2)R8c=void 0;else{var JoR=pv7.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);R8c=JoR&&JoR.length===6?Number(JoR[5].replace("_",".")):0}var jx=R8c,aY=jx>=0;g.P(g.UN,vD);g.UN.prototype.W=function(u,h,L,Z,y){return vD.prototype.W.call(this,u,h,L,Z,y)};var mM={},yo=(mM.FAIRPLAY="fairplay",mM.PLAYREADY="playready",mM.WIDEVINE="widevine",mM.CLEARKEY=null,mM.FLASHACCESS=null,mM.UNKNOWN=null,mM.WIDEVINE_CLASSIC=null,mM);GI.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var dk={},D0=(dk.WIDTH={name:"width",video:!0,valid:640,YD:99999},dk.HEIGHT={name:"height",video:!0,valid:360,YD:99999},dk.FRAMERATE={name:"framerate",video:!0,valid:30,YD:9999},dk.BITRATE={name:"bitrate",video:!0,valid:3E5,YD:2E9},dk.EOTF={name:"eotf",video:!0,valid:"bt709",YD:"catavision"},dk.CHANNELS={name:"channels",video:!1,valid:2,YD:99},dk.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",YD:"invalidformat"},dk.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
YD:"nope"},dk.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",YD:"av99.0.05M.08"},dk.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",YD:"invalid"},dk);var Oaq=["h","H"],fjg=["9","("],DMV=["9h","(h"],co1=["8","*"],Iju=["a","A"],Aoq=["o","O"],xMb=["m","M"],PKD=["mac3","MAC3"],CKb=["meac3","MEAC3"],VU={},LhV=(VU.h=Oaq,VU.H=Oaq,VU["9"]=fjg,VU["("]=fjg,VU["9h"]=DMV,VU["(h"]=DMV,VU["8"]=co1,VU["*"]=co1,VU.a=Iju,VU.A=Iju,VU.o=Aoq,VU.O=Aoq,VU.m=xMb,VU.M=xMb,VU.mac3=PKD,VU.MAC3=PKD,VU.meac3=CKb,VU.MEAC3=CKb,VU),M1y=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),FFL=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var E={},dF=(E["0"]="f",E["160"]="h",E["133"]="h",E["134"]="h",E["135"]="h",E["136"]="h",E["137"]="h",E["264"]="h",E["266"]="h",E["138"]="h",E["298"]="h",E["299"]="h",E["304"]="h",E["305"]="h",E["214"]="h",E["216"]="h",E["374"]="h",E["375"]="h",E["140"]="a",E["141"]="ah",E["327"]="sa",E["258"]="m",E["380"]="mac3",E["328"]="meac3",E["161"]="H",E["142"]="H",E["143"]="H",E["144"]="H",E["222"]="H",E["223"]="H",E["145"]="H",E["224"]="H",E["225"]="H",E["146"]="H",E["226"]="H",E["227"]="H",E["147"]="H",
E["384"]="H",E["376"]="H",E["385"]="H",E["377"]="H",E["149"]="A",E["261"]="M",E["381"]="MAC3",E["329"]="MEAC3",E["598"]="9",E["278"]="9",E["242"]="9",E["243"]="9",E["244"]="9",E["775"]="9",E["776"]="9",E["777"]="9",E["778"]="9",E["779"]="9",E["780"]="9",E["781"]="9",E["782"]="9",E["783"]="9",E["247"]="9",E["248"]="9",E["353"]="9",E["355"]="9",E["356"]="9",E["271"]="9",E["577"]="9",E["313"]="9",E["579"]="9",E["272"]="9",E["302"]="9",E["303"]="9",E["407"]="9",E["408"]="9",E["308"]="9",E["315"]="9",
E["330"]="9h",E["331"]="9h",E["332"]="9h",E["333"]="9h",E["334"]="9h",E["335"]="9h",E["336"]="9h",E["337"]="9h",E["338"]="so",E["600"]="o",E["250"]="o",E["251"]="o",E["774"]="o",E["194"]="*",E["195"]="*",E["220"]="*",E["221"]="*",E["196"]="*",E["197"]="*",E["279"]="(",E["280"]="(",E["317"]="(",E["318"]="(",E["273"]="(",E["274"]="(",E["357"]="(",E["358"]="(",E["275"]="(",E["359"]="(",E["360"]="(",E["276"]="(",E["583"]="(",E["584"]="(",E["314"]="(",E["585"]="(",E["561"]="(",E["277"]="(",E["361"]="(h",
E["362"]="(h",E["363"]="(h",E["364"]="(h",E["365"]="(h",E["366"]="(h",E["591"]="(h",E["592"]="(h",E["367"]="(h",E["586"]="(h",E["587"]="(h",E["368"]="(h",E["588"]="(h",E["562"]="(h",E["409"]="(",E["410"]="(",E["411"]="(",E["412"]="(",E["557"]="(",E["558"]="(",E["394"]="1",E["395"]="1",E["396"]="1",E["397"]="1",E["398"]="1",E["399"]="1",E["720"]="1",E["721"]="1",E["400"]="1",E["401"]="1",E["571"]="1",E["402"]="1",E["694"]="1h",E["695"]="1h",E["696"]="1h",E["697"]="1h",E["698"]="1h",E["699"]="1h",E["700"]=
"1h",E["701"]="1h",E["702"]="1h",E["703"]="1h",E["386"]="3",E["387"]="w",E["406"]="6",E["787"]="1",E["788"]="1",E["645"]="(",E["646"]="(",E["647"]="(",E["648"]="(",E["649"]="(",E["650"]="(",E["651"]="(",E["652"]="(",E["653"]="(",E["654"]="(",E["655"]="(",E["656"]="(",E["657"]="(",E["658"]="(",E["659"]="(",E["660"]="(",E["661"]="(",E["662"]="(",E["663"]="(",E["664"]="(",E["665"]="(",E["666"]="(",E["667"]="(",E["668"]="(",E["669"]="(",E["670"]="(",E["671"]="(",E["672"]="(",E["673"]="(",E["674"]="(h",
E["675"]="(h",E["676"]="(h",E["677"]="(h",E["678"]="(h",E["679"]="(h",E["680"]="(h",E["681"]="(h",E["682"]="(h",E["683"]="(h",E["684"]="(h",E["685"]="(h",E["686"]="(h",E["687"]="(h",E["688"]="A",E["689"]="A",E["690"]="A",E["691"]="MEAC3",E["773"]="i",E["806"]="I",E["805"]="I",E["829"]="9",E["830"]="9",E["831"]="9",E["832"]="9",E["833"]="9",E["834"]="9",E["835"]="9",E["836"]="9",E["837"]="9",E["838"]="9",E["839"]="9",E["840"]="9",E["841"]="(",E["842"]="(",E["843"]="(",E["844"]="(",E["845"]="(",E["846"]=
"(",E["847"]="(",E["848"]="(",E["849"]="(",E["850"]="(",E["851"]="(",E["852"]="(",E["865"]="9",E["866"]="9",E["867"]="9",E["868"]="9",E["869"]="9",E["870"]="9",E["871"]="9",E["872"]="9",E["873"]="9",E["874"]="9",E["875"]="9",E["876"]="9",E["877"]="(",E["878"]="(",E["879"]="(",E["880"]="(",E["881"]="(",E["882"]="(",E["883"]="(",E["884"]="(",E["885"]="(",E["886"]="(",E["887"]="(",E["888"]="(",E);var ny={},mOV=(ny.STEREO_LAYOUT_UNKNOWN=0,ny.STEREO_LAYOUT_LEFT_RIGHT=1,ny.STEREO_LAYOUT_TOP_BOTTOM=2,ny);var sp,kg;sp={};g.rF=(sp.auto=0,sp.tiny=144,sp.light=144,sp.small=240,sp.medium=360,sp.large=480,sp.hd720=720,sp.hd1080=1080,sp.hd1440=1440,sp.hd2160=2160,sp.hd2880=2880,sp.highres=4320,sp);kg={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var zI="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");BX.prototype.isHdr=function(){return this.N==="smpte2084"||this.N==="arib-std-b67"};VE.prototype.d1=function(){return this.containerType===2};
VE.prototype.isEncrypted=function(){return!!this.ji};
VE.prototype.GD=function(){return!!this.audio};
VE.prototype.Wr=function(){return!!this.video};g.P(Kl,g.yV);g.K=Kl.prototype;g.K.appendBuffer=function(u,h,L){if(this.G1.C$()!==this.appendWindowStart+this.start||this.G1.fp()!==this.appendWindowEnd+this.start||this.G1.df()!==this.timestampOffset+this.start)this.G1.supports(1),this.G1.Om(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.G1.Rm(this.timestampOffset+this.start);this.G1.appendBuffer(u,h,L)};
g.K.abort=function(){this.G1.abort()};
g.K.remove=function(u,h){this.G1.remove(u+this.start,h+this.start)};
g.K.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.K.clear=function(){this.G1.clear()};
g.K.Om=function(u,h){this.appendWindowStart=u;this.appendWindowEnd=h};
g.K.y6=function(){return this.timestampOffset+this.start};
g.K.C$=function(){return this.appendWindowStart};
g.K.fp=function(){return this.appendWindowEnd};
g.K.Rm=function(u){this.timestampOffset=u};
g.K.df=function(){return this.timestampOffset};
g.K.QQ=function(u){u=this.G1.QQ(u===void 0?!1:u);return pl(u,this.start,this.end)};
g.K.L7=function(){return this.G1.L7()};
g.K.wR=function(){return this.G1.wR()};
g.K.Sb=function(){return this.G1.Sb()};
g.K.N8=function(){return this.G1.N8()};
g.K.m$=function(){this.G1.m$()};
g.K.aq=function(u){return this.G1.aq(u)};
g.K.Jx=function(){return this.G1.Jx()};
g.K.Ri=function(){return this.G1.Ri()};
g.K.h5=function(){return this.G1.h5()};
g.K.C4=function(u,h,L){this.G1.C4(u,h,L)};
g.K.wF=function(u,h,L){this.G1.wF(u,h,L)};
g.K.qB=function(u,h){return this.G1.qB(u,h)};
g.K.supports=function(u){return this.G1.supports(u)};
g.K.UK=function(){return this.G1.UK()};
g.K.isView=function(){return!0};
g.K.XZ=function(){return this.G1.XZ()?this.isActive:!1};
g.K.isLocked=function(){return this.Gm&&!this.isActive};
g.K.IV=function(u){u=this.G1.IV(u);u.vw=this.start+"-"+this.end;return u};
g.K.nG=function(){return this.G1.nG()};
g.K.Tb=function(){return this.G1.Tb()};
g.K.rr=function(){return this.G1.rr()};
g.K.Ni=function(){this.G1.u6(this.r5);g.yV.prototype.Ni.call(this)};var fR=!1;g.P(OF,g.yV);g.K=OF.prototype;g.K.appendBuffer=function(u,h,L){this.oT=!1;L&&(this.Cj=L);if(u.length){var Z;((Z=this.EU)==null?0:Z.appendBuffer)?this.EU.appendBuffer(u):this.EU?this.EU.append(u):this.qO&&this.qO.webkitSourceAppend(this.id,u)}h&&(h.isEncrypted()&&(this.yP=this.Cj),h.type===3&&(this.nB=h),this.FV.push(h.M1()),this.FV.length>4&&this.FV.shift());this.ll&&(this.ll.length>=2||u.length>1048576?delete this.ll:this.ll.push(u))};
g.K.abort=function(){try{this.EU?this.EU.abort():this.qO&&this.qO.webkitSourceAbort(this.id)}catch(u){P_s&&g.UZ(new g.aO("Error while abort the source buffer: "+u.name+", "+u.message))}this.Cj=this.nB=null};
g.K.remove=function(u,h,L){this.oT=!1;var Z;if((Z=this.EU)==null?0:Z.remove)L&&L({b:ji(this.QQ()),s:u,e:h}),this.EU.remove(u,h)};
g.K.removeAll=function(){this.remove(this.C$(),this.fp())};
g.K.clear=function(){this.Sb()||(this.abort(),this.removeAll(),this.yP=this.Cj=this.nB=null,this.appendWindowStart=this.timestampOffset=0,this.c9=uz([],[]),this.oT=!1,this.ll=Jq?[]:void 0,this.Kp=!0)};
g.K.C$=function(){if(fR&&this.Wr)return this.appendWindowStart;var u;return((u=this.EU)==null?void 0:u.appendWindowStart)||0};
g.K.fp=function(){var u;return((u=this.EU)==null?void 0:u.appendWindowEnd)||0};
g.K.Om=function(u,h){this.EU&&(fR&&this.Wr?(this.appendWindowStart=u,this.EU.appendWindowEnd=h):u>this.C$()?(this.EU.appendWindowEnd=h,this.EU.appendWindowStart=u):(this.EU.appendWindowStart=u,this.EU.appendWindowEnd=h))};
g.K.y6=function(){return this.timestampOffset};
g.K.Rm=function(u){fR?this.timestampOffset=u:this.supports(1)&&(this.EU.timestampOffset=u)};
g.K.df=function(){return fR?this.timestampOffset:this.supports(1)?this.EU.timestampOffset:0};
g.K.QQ=function(u){if(u===void 0?0:u)return this.oT||this.L7()||(this.c9=this.QQ(!1),this.oT=!0),this.c9;try{return this.EU?this.EU.buffered:this.qO?this.qO.webkitSourceBuffered(this.id):uz([0],[Infinity])}catch(h){return uz([],[])}};
g.K.L7=function(){var u;return((u=this.EU)==null?void 0:u.updating)||!1};
g.K.Sb=function(){return this.Kp};
g.K.N8=function(){return!this.Kp&&this.L7()};
g.K.m$=function(){this.Kp=!1};
g.K.aq=function(u){var h=u==null?void 0:u.QA;u=u==null?void 0:u.containerType;return!h&&!u||h===this.QA&&u===this.containerType};
g.K.Jx=function(){return this.Cj};
g.K.Ri=function(){return this.yP};
g.K.qB=function(u,h){return this.containerType!==u||this.QA!==h};
g.K.C4=function(u,h,L){if(this.containerType!==u||L&&this.qB(u,L))this.supports(4),fl()&&this.EU.changeType(h),L&&(this.QA=L);this.containerType=u};
g.K.wF=function(u,h,L){this.containerType&&this.qB(u,h)&&fl()&&this.EU.changeType(L);this.containerType=u;this.QA=h};
g.K.UK=function(){return this.nB};
g.K.isView=function(){return!1};
g.K.supports=function(u){switch(u){case 1:var h;return((h=this.EU)==null?void 0:h.timestampOffset)!==void 0;case 0:var L;return!((L=this.EU)==null||!L.appendBuffer);case 2:var Z;return!((Z=this.EU)==null||!Z.remove);case 3:var y,R;return!!(((y=this.EU)==null?0:y.addEventListener)&&((R=this.EU)==null?0:R.removeEventListener));case 4:return!(!this.EU||!this.EU.changeType);default:return!1}};
g.K.XZ=function(){return!this.L7()};
g.K.isLocked=function(){return!1};
g.K.IV=function(u){u.to=this.df();u.up=this.L7();var h,L=((h=this.EU)==null?void 0:h.appendWindowStart)||0,Z;h=((Z=this.EU)==null?void 0:Z.appendWindowEnd)||Infinity;u.aw=L.toFixed(3)+"-"+h.toFixed(3);return u};
g.K.wR=function(){var u;return((u=this.EU)==null?void 0:u.writeHead)||0};
g.K.nG=function(){for(var u={},h=0;h<this.FV.length;h++)u["s"+h]=this.FV[h];return u};
g.K.Ni=function(){this.supports(3)&&(this.EU.removeEventListener("updateend",this.Aq),this.EU.removeEventListener("error",this.Aq));g.yV.prototype.Ni.call(this)};
g.K.Tb=function(){return this.containerType};
g.K.h5=function(){return this.QA};
g.K.rr=function(){return this.ll};
var Jq=!1,P_s=!1;za.prototype.dispose=function(){if(!this.ww()){if(this.G)try{URL.revokeObjectURL(this.D3)}catch(u){}this.N=!0}};
za.prototype.ww=function(){return this.N};
za.prototype.ys=function(u){return u!==null&&u.D3===this.D3};
za.prototype.toString=function(){return"MediaResource {"+this.D3+"}"};g.P(mx,g.m);g.K=mx.prototype;g.K.getDuration=function(){var u;return((u=this.oH)==null?void 0:u.duration)||this.Y};
g.K.N9=function(u){try{this.oH?this.oH.duration=u:(this.Y=u,this.qO.webkitSourceSetDuration(u))}catch(h){}};
g.K.XE=function(){try{return wM(this)==="closed"}catch(u){return!0}};
g.K.L7=function(){return!!(this.G&&this.G.L7()||this.N&&this.N.L7())};
g.K.isAsync=function(){return this.G?!!this.G.supports(0):ei()};
g.K.fvB=function(){!this.ww()&&dM(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.K.hAi=function(){this.dispose()};
g.K.V1=function(u){if(Vs&&!this.B&&u.Sb()&&u.QQ().length===0){var h;nl(this.mediaElement,{l:"mswoue",sr:(h=this.mediaElement.G7)==null?void 0:h.IF()},!1);u.m$();this.Sb()||(this.mediaElement.sP=!0,this.mediaElement.setCurrentTime(0))}};
g.K.kL=function(){return!!this.G.supports(2)};
g.K.clear=function(){M2e(this,function(){});
var u;(u=this.G)==null||u.clear();var h;(h=this.N)==null||h.clear()};
g.K.Sb=function(){var u,h;return((u=this.N)==null?void 0:u.Sb())||((h=this.G)==null?void 0:h.Sb())};
g.K.aq=function(u,h){return!!this.G&&!!this.N&&this.G.aq(h)&&this.N.aq(u)};
var Vs=!1;aA.prototype.then=function(u,h){return this.promise.then(u,h)};
aA.prototype.resolve=function(u){this.UM(u)};
aA.prototype.reject=function(u){this.ZV(u)};g.P($x,g.m);g.K=$x.prototype;g.K.PG=function(){return this.D3};
g.K.activate=function(u){var h="";u&&(Y_n(this,u),h=u.D3);if(!this.D7()||h)h&&this.D7()!==h&&(this.D_(h),delete this.N,this.X&&(this.X.reject(),delete this.X),!window.MediaSource&&window.ManagedMediaSource&&this.vz(!(u==null||!u.G))),u&&u.G||this.load(),this.V||(this.addEventListener("volumechange",this.kC),this.V=!0)};
g.K.EH=function(u,h){if(this.N)if(xC1&&sF(this.N)&&!this.N.aq(u,h)){var L;nl(this,{l:"megms",sr:(L=this.G7)==null?void 0:L.IF()});q_b(this);this.stopVideo()}else return this.oH=this.N,this.N=void 0,this.oH;u=window.MediaSource?new mx(this,new window.MediaSource,!1):window.ManagedMediaSource?new mx(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new mx(this,new window.WebKitMediaSource,!1):new mx(this,void 0,!1);this.activate(u.X);this.oH=u;this.sP=!1;return u};
g.K.playVideo=function(){var u=this;this.isEnded()&&this.seekTo(0);!this.D7()&&this.D3&&(g.UZ(Error("playVideo without src")),this.D_(this.D3.D3),this.D3.G||this.load());var h=this.play(),L;((L=this.G7)==null?0:L.j("html5_remove_ios_7_hack_force_play"))||!h&&aY&&(jx||0)>=7&&OG1(this,function(){g.IJ(function(){TpY(u,u.getCurrentTime(),0)},500)});
return h};
g.K.seekTo=function(u){this.rD()>0&&(aY&&jx<4&&(u=Math.max(.1,u)),this.setCurrentTime(u))};
g.K.IQ=function(){if(!this.N&&this.oH)if(this.oH.T)try{var u;nl(this,{l:"mer",sr:(u=this.G7)==null?void 0:u.IF(),rs:wM(this.oH)});this.oH.clear();this.N=this.oH;this.oH=void 0}catch(h){u=new g.aO("Error while clearing Media Source in MediaElement: "+h.name+", "+h.message),g.UZ(u),this.stopVideo()}else this.stopVideo()};
g.K.stopVideo=function(){var u=this;if(!this.N){var h;(h=this.oH)==null||X2n(h);if(IuR){if(!this.X){var L=new aA;L.then(void 0,function(){});
this.X=L;Apn&&this.pause();g.IJ(function(){u.X===L&&(Fy(u),L.resolve())},200)}}else Fy(this)}};
g.K.t1=function(){var u=this.R7();return ys(u)>0&&this.getDuration()?ZI(u,this.getCurrentTime()):0};
g.K.fq=function(){var u=this.getDuration();return u===Infinity?1:u?this.t1()/u:0};
g.K.IV=function(){try{var u=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:ji(this.xu(),",",3),vbu:ji(this.R7()),vbs:ji(this.EQ()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.rD(),vns:""+this.MK(),vec:""+this.xW(),vemsg:this.KB(),vvol:""+this.getVolume(),vdom:""+ +this.dg(),vsrc:""+ +!!this.D7(),vw:""+u.width,vh:""+u.height}}catch(h){return{}}};
g.K.hasError=function(){return this.xW()>0};
g.K.addEventListener=function(u,h){this.B.listen(u,h,!1,this);this.Tu(u)};
g.K.removeEventListener=function(u,h){this.B.FJ(u,h,!1,this)};
g.K.dispatchEvent=function(u){if(this.X&&u.type==="pause")return!1;if(xC1){var h,L=((h=u.G)==null?void 0:h.timeStamp)||Infinity;h=L>performance.now()?L-Date.now()+performance.now():L;L=this.N||this.oH;if((L==null?0:L.Sb())||h<=((L==null?void 0:L.C)||0)){var Z;nl(this,{l:"mede",sr:(Z=this.G7)==null?void 0:Z.IF(),et:u.type});return!1}if(this.sP)return nl(this,{l:"medes",et:u.type}),L&&u.type==="seeking"&&(L.C=performance.now(),this.sP=!1),!1}return this.B.dispatchEvent(u)};
g.K.FR=function(){this.C=!1};
g.K.l0=function(){this.C=!0;this.v5(!0)};
g.K.kC=function(){this.C&&!this.dR()&&this.v5(!0)};
g.K.ys=function(u){return!!u&&u.lP()===this.lP()};
g.K.Ni=function(){this.V&&this.removeEventListener("volumechange",this.kC);IuR&&Fy(this);g.m.prototype.Ni.call(this)};
var IuR=!1,Apn=!1,xC1=!1,Npn=!1;g.K=g.EF.prototype;g.K.isPaused=function(){return g.F(this,4)};
g.K.isPlaying=function(){return g.F(this,8)&&!g.F(this,512)&&!g.F(this,64)&&!g.F(this,2)};
g.K.isOrWillBePlaying=function(){return g.F(this,8)&&!g.F(this,2)&&!g.F(this,1024)};
g.K.isCued=function(){return g.F(this,64)&&!g.F(this,8)&&!g.F(this,4)};
g.K.isBuffering=function(){return g.F(this,1)&&!g.F(this,2)};
g.K.isError=function(){return g.F(this,128)};
g.K.isSuspended=function(){return g.F(this,512)};
g.K.wL=function(){return g.F(this,64)&&g.F(this,4)};
g.K.toString=function(){return"PSt."+this.state.toString(16)};
var wk={},eo=(wk.BUFFERING="buffering-mode",wk.CUED="cued-mode",wk.ENDED="ended-mode",wk.PAUSED="paused-mode",wk.PLAYING="playing-mode",wk.SEEKING="seeking-mode",wk.UNSTARTED="unstarted-mode",wk);g.P(pJ,g.m);g.K=pJ.prototype;g.K.H6=function(){return this.X};
g.K.S7=function(){return this.slot};
g.K.Ug=function(){return this.layout};
g.K.init=function(){var u=hl(this.layout.clientMetadata,"metadata_type_video_length_seconds"),h=hl(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");iW(this.layout.Np)&&hI(this.z3.get(),this.layout.layoutId,{CA:h,Y5:u,listener:this,I9:this.w1()});s1n(this.cX.get(),this);u=this.A3;h=this.layout.layoutId;var L={I9:this.w1()};u.G.set(h,L);this.ix()};
g.K.Qp=function(){};
g.K.release=function(){iW(this.layout.Np)&&LW(this.z3.get(),this.layout.layoutId);wwe(this.cX.get(),this);this.A3.G.delete(this.layout.layoutId);this.bQ()};
g.K.p5=function(){};
g.K.HF=function(){};
g.K.startRendering=function(u){CA(KJ(this));if(J0(this,u)){var h=this.G;MK(h.params.nV.Mi.get(),!0)&&KjL(h,"p_sr",{});Ol(this);this.x9(u);this.w1()||this.xs(!1)}};
g.K.Yl=function(u,h){if(h.layoutId===this.layout.layoutId){this.xF="rendering";this.N=this.FB.get().isMuted()||this.FB.get().getVolume()===0;this.qp("impression");this.qp("start");if(this.FB.get().isMuted()){xG(this,"mute");var L;u=((L=RK(this))==null?void 0:L.muteCommands)||[];nE(this.yZ.get(),u,this.layout.layoutId)}if(this.FB.get().isFullscreen()){this.d2("fullscreen");var Z;L=((Z=RK(this))==null?void 0:Z.fullscreenCommands)||[];nE(this.yZ.get(),L,this.layout.layoutId)}this.w1()||(Z=this.rf.get(),
Z.X&&!Z.N&&(Z.T=!1,Z.N=!0,Z.actionType!=="ad_to_video"&&(sh("pbs",void 0,Z.actionType),g.MI("finalize_all_timelines")&&EMl(Z.actionType))));this.ew(1);this.by(h);var y;h=((y=RK(this))==null?void 0:y.impressionCommands)||[];nE(this.yZ.get(),h,this.layout.layoutId)}};
g.K.qf=function(u,h,L){this.V={n8:3,hT:u==="load_timeout"?402:400,errorMessage:h.message};this.qp("error");var Z;u=((Z=RK(this))==null?void 0:Z.errorCommands)||[];nE(this.yZ.get(),u,this.layout.layoutId);this.w1()||this.Tw.dO(this.slot,this.layout,h,L)};
g.K.QG=function(){if(this.xF==="rendering"){xG(this,"pause");var u,h=((u=RK(this))==null?void 0:u.pauseCommands)||[];nE(this.yZ.get(),h,this.layout.layoutId);this.ew(2)}};
g.K.xZ=function(){if(this.xF==="rendering"){xG(this,"resume");var u,h=((u=RK(this))==null?void 0:u.resumeCommands)||[];nE(this.yZ.get(),h,this.layout.layoutId)}};
g.K.R0=function(u,h){h=h===void 0?!1:h;if(this.xF==="rendering"){var L={currentTimeSec:u,flush:h};iZ(this.G,"p_ip",L);Yl(this.JB,u*1E3,h);this.N||Yl(this.JB,u*1E3,h===void 0?!1:h);var Z=this.yp();if(Z){Z/=1E3;if(u>=Z*.25||h)this.qp("first_quartile"),iZ(this.G,"p_fq",L);if(u>=Z*.5||h)this.qp("midpoint"),iZ(this.G,"p_sq",L);if(u>=Z*.75||h)this.qp("third_quartile"),iZ(this.G,"p_tq",L);this.Mi.get().D.L().experiments.tB("enable_progress_command_flush_on_kabuki")?mF(this.B,u*1E3,h):mF(this.B,u*1E3,zBV(this)?
h:!1)}}};
g.K.kV=function(){var u;return((u=fJ(this.Eg.get(),1))==null?void 0:u.clientPlaybackNonce)||""};
g.K.Me=function(u,h){u.layoutId!==this.layout.layoutId?this.Tw.dO(this.slot,u,new uN("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"):h()};
g.K.KH=function(u,h,L){if(h.layoutId===this.layout.layoutId)switch(this.xF="not_rendering",this.layoutExitReason=void 0,this.w1()||(u=L!=="normal"||this.position+1===this.C)&&this.xs(u),this.Yb(L),this.ew(0),L){case "abandoned":if(oz(this.JB,"impression")){var Z,y=((Z=RK(this))==null?void 0:Z.abandonCommands)||[];nE(this.yZ.get(),y,this.layout.layoutId)}break;case "normal":Z=((y=RK(this))==null?void 0:y.completeCommands)||[];nE(this.yZ.get(),Z,this.layout.layoutId);break;case "skipped":var R;Z=((R=
RK(this))==null?void 0:R.skipCommands)||[];nE(this.yZ.get(),Z,this.layout.layoutId)}};
g.K.cP=function(){return this.layout.layoutId};
g.K.Ln=function(){return this.V};
g.K.IZ=function(){if(this.xF==="rendering"){this.JB.qp("active_view_measurable");var u,h=((u=RK(this))==null?void 0:u.activeViewMeasurableCommands)||[];nE(this.yZ.get(),h,this.layout.layoutId)}};
g.K.Gs=function(){if(this.xF==="rendering"){this.JB.qp("active_view_fully_viewable_audible_half_duration");var u,h=((u=RK(this))==null?void 0:u.activeViewFullyViewableAudibleHalfDurationCommands)||[];nE(this.yZ.get(),h,this.layout.layoutId)}};
g.K.Ai=function(){if(this.xF==="rendering"){this.JB.qp("active_view_viewable");var u,h=((u=RK(this))==null?void 0:u.activeViewViewableCommands)||[];nE(this.yZ.get(),h,this.layout.layoutId)}};
g.K.xa=function(){if(this.xF==="rendering"){this.JB.qp("audio_audible");var u,h=((u=RK(this))==null?void 0:u.activeViewAudioAudibleCommands)||[];nE(this.yZ.get(),h,this.layout.layoutId)}};
g.K.mL=function(){if(this.xF==="rendering"){this.JB.qp("audio_measurable");var u,h=((u=RK(this))==null?void 0:u.activeViewAudioMeasurableCommands)||[];nE(this.yZ.get(),h,this.layout.layoutId)}};
g.K.xs=function(u){this.rf.get().xs(hl(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,u,this.position,this.C,!1)};
g.K.onFullscreenToggled=function(u){if(this.xF==="rendering")if(u){this.d2("fullscreen");var h,L=((h=RK(this))==null?void 0:h.fullscreenCommands)||[];nE(this.yZ.get(),L,this.layout.layoutId)}else this.d2("end_fullscreen"),h=((L=RK(this))==null?void 0:L.endFullscreenCommands)||[],nE(this.yZ.get(),h,this.layout.layoutId)};
g.K.onVolumeChange=function(){if(this.xF==="rendering")if(this.FB.get().isMuted()){xG(this,"mute");var u,h=((u=RK(this))==null?void 0:u.muteCommands)||[];nE(this.yZ.get(),h,this.layout.layoutId)}else xG(this,"unmute"),u=((h=RK(this))==null?void 0:h.unmuteCommands)||[],nE(this.yZ.get(),u,this.layout.layoutId)};
g.K.Wo=function(){};
g.K.J2=function(){};
g.K.Bx=function(){};
g.K.qT=function(){};
g.K.h2=function(){};
g.K.d2=function(u){this.JB.d2(u,!this.N)};
g.K.qp=function(u){this.JB.qp(u,!this.N)};
g.K.w1=function(){var u=hl(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return u===void 0?(Jk("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Mi.get().w1(u)};g.P(Qj,pJ);g.K=Qj.prototype;g.K.ix=function(){};
g.K.bQ=function(){var u=this.cX.get();u.k5===this&&(u.k5=null);this.tq.stop()};
g.K.p5=function(){this.tq.stop();pJ.prototype.QG.call(this)};
g.K.HF=function(){Su(this);pJ.prototype.xZ.call(this)};
g.K.yp=function(){return hl(this.Ug().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.K.Ib=function(u,h){var L=this;this.Me(u,function(){L.xF!=="rendering_stop_requested"&&(L.xF="rendering_stop_requested",L.layoutExitReason=h,D1(L,h),L.tq.stop())})};
g.K.cj=function(){var u=Date.now(),h=u-this.bC;this.bC=u;this.Oa+=h;this.Oa>=this.yp()?this.Mx():(this.R0(this.Oa/1E3),lQ(this,this.Oa))};
g.K.Yb=function(){};
g.K.SZ=function(){};
g.P(XO,Qj);g.K=XO.prototype;g.K.SS=function(u){if(this.xF!=="not_rendering"){u=cm(this,u);var h=this.FB.get().getPresentingPlayerType()===2;this.xF==="rendering_start_requested"?h&&KA(u)&&this.FZ():h?g.DK(u,2)?Jk("Receive player ended event during MediaBreak",this.S7(),this.Ug()):IK(this,u):this.oI()}};
g.K.x9=function(){rkn(this);grR(this.FB.get());this.cX.get().k5=this;V4("pbp")||V4("pbs")||sh("pbp");V4("pbp","watch")||V4("pbs","watch")||sh("pbp",void 0,"watch");this.FZ()};
g.K.by=function(u){this.rf.get();var h=hl(u.clientMetadata,"metadata_type_ad_placement_config").kind,L=this.position===0;u=hl(u.clientMetadata,"metadata_type_linked_in_player_layout_type");u={adBreakType:A0(h),adType:Wji(u)};var Z=void 0;L?h!=="AD_PLACEMENT_KIND_START"&&(Z="video_to_ad"):Z="ad_to_ad";zQ("ad_mbs",void 0,Z);g.m1(u,Z);Su(this)};
g.K.oI=function(){this.WD()};
g.K.Mx=function(){dwV(this);this.WD()};
g.P(vm,Qj);g.K=vm.prototype;g.K.SS=function(u){this.xF!=="not_rendering"&&(u=cm(this,u),IK(this,u))};
g.K.x9=function(){Jk("Not used in SSAP")};
g.K.by=function(){Su(this)};
g.K.oI=function(){Jk("Not used in SSAP")};
g.K.Mx=function(){dwV(this);this.Tw.zq(this.S7(),this.Ug(),"normal")};
g.P(qA,vm);qA.prototype.Ib=function(u,h){var L=this;this.Me(u,function(){cX(L.X,h)&&(L.xF="rendering_stop_requested",L.layoutExitReason=h,D1(L,h),L.tq.stop())})};
qA.prototype.startRendering=function(u){CA(KJ(this));J0(this,u)&&(Ol(this),this.cX.get().k5=this)};g.P(oK,pJ);g.K=oK.prototype;g.K.oI=function(){this.WD()};
g.K.SS=function(u){if(this.xF!=="not_rendering"){u=cm(this,u);var h=this.FB.get().getPresentingPlayerType()===2;this.xF==="rendering_start_requested"?h&&KA(u)&&this.FZ():!h||g.DK(u,2)?this.WD():IK(this,u)}};
g.K.ix=function(){hl(this.Ug().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=hl(this.Ug().clientMetadata,"metadata_type_shrunken_player_bytes_config")};
g.K.bQ=function(){hl(this.Ug().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.SO){var u=this.context.nV,h=this.SO,L=this.Ug().layoutId;if(MK(u.Mi.get(),!0)){var Z={};u.RP("mccru",(Z.cid=h,Z.p_ac=L,Z))}this.bF.get().removeCueRange(this.SO)}this.SO=void 0;var y;(y=this.Cu)==null||y.dispose();this.P0&&this.P0.dispose()};
g.K.x9=function(u){var h=TK(this.Mi.get()),L=YG(this.Mi.get());if(h&&L&&!this.w1()){L=hl(u.clientMetadata,"metadata_type_preload_player_vars");var Z=g.Jl(this.Mi.get().D.L().experiments,"html5_preload_wait_time_secs");L&&this.P0&&this.P0.start(Z*1E3)}srb(this,u);rkn(this);h?(L=this.Jy.get(),u=hl(u.clientMetadata,"metadata_type_player_vars"),L.D.loadVideoByPlayerVars(u,!1,2)):KVn(this.Jy.get(),hl(u.clientMetadata,"metadata_type_player_vars"));var y;(y=this.Cu)==null||y.start();h||this.Jy.get().D.playVideo(2)};
g.K.by=function(){var u;(u=this.Cu)==null||u.stop();this.SO="adcompletioncuerange:"+this.Ug().layoutId;this.bF.get().addCueRange(this.SO,0x7ffffffffffff,0x8000000000000,!1,this,2,2);u=this.context.nV;var h=this.SO,L=this.Ug().layoutId;if(MK(u.Mi.get(),!0)){var Z={};u.RP("mccr",(Z.cid=h,Z.p_ac=L,Z))}(this.adCpn=HGV(this))||Jk("Media layout confirmed started, but ad CPN not set.");this.LH.get().jA("onAdStart",this.adCpn);this.xC=Date.now()};
g.K.yp=function(){var u;return(u=fJ(this.Eg.get(),2))==null?void 0:u.I$};
g.K.eX=function(){this.JB.d2("clickthrough")};
g.K.Ib=function(u,h){var L=this;this.Me(u,function(){if(L.xF!=="rendering_stop_requested"){L.xF="rendering_stop_requested";L.layoutExitReason=h;D1(L,h);var Z;(Z=L.Cu)==null||Z.stop();L.P0&&L.P0.stop();w2b(L)}})};
g.K.onCueRangeEnter=function(u){if(u!==this.SO)Jk("Received CueRangeEnter signal for unknown layout.",this.S7(),this.Ug(),{cueRangeId:u});else{var h=this.context.nV,L=this.Ug().layoutId;if(MK(h.Mi.get(),!0)){var Z={};h.RP("mccre",(Z.cid=u,Z.p_ac=L,Z))}this.bF.get().removeCueRange(this.SO);this.SO=void 0;af(this.context.Mi.get(),"html5_ssap_flush_at_stop_rendering")&&this.w1()||(u=hl(this.Ug().clientMetadata,"metadata_type_video_length_seconds"),this.R0(u,!0),this.qp("complete"))}};
g.K.Yb=function(u){u!=="abandoned"&&this.LH.get().jA("onAdComplete");this.LH.get().jA("onAdEnd",this.adCpn)};
g.K.onCueRangeExit=function(){};
g.K.SZ=function(u){this.xF==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&u>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.FB.get().d6(!0),this.R0(u))};
g.K.R0=function(u,h){pJ.prototype.R0.call(this,u,h===void 0?!1:h);h=Date.now()-this.xC;var L=u*1E3,Z={contentCpn:this.kV(),adCpn:HGV(this)};if(u>=5&&!this.C2){var y=h<1E3?0:1;Rr(y,"i.k_",{metadata:Z,Yg:h,Qu:Math.floor(L/1E3)});$B("IKDSTAT",y);y===0&&eBV(this)&&this.LH.get().jA("onAbnormalityDetected");this.C2=!0}this.Mi.get().D.L().experiments.tB("enable_ik_opt")&&u-this.Xi>=5&&(y=h<L*.4?0:1,Rr(y,"n.k_",{metadata:Z,Yg:h,Qu:Math.floor(L/1E3)}),$B("NKDSTAT",y),this.Mi.get().D.L().experiments.tB("enable_ik_opt_enf")&&
y===0&&eBV(this)&&this.LH.get().jA("onAbnormalityDetected"),this.Xi=u)};g.P(NA,oK);NA.prototype.SS=function(u){this.xF!=="not_rendering"&&(u=cm(this,u),IK(this,u))};
NA.prototype.x9=function(){Jk("Not used in SSAP")};
g.P(Ul,NA);Ul.prototype.Ib=function(u,h){var L=this;this.Me(u,function(){if(cX(L.X,h)){L.xF="rendering_stop_requested";L.layoutExitReason=h;D1(L,h);if(af(L.context.Mi.get(),"html5_ssap_flush_at_stop_rendering")&&h==="normal"){var Z=hl(L.Ug().clientMetadata,"metadata_type_video_length_seconds");L.R0(Z,!0)}w2b(L)}})};
Ul.prototype.startRendering=function(u){CA(KJ(this));J0(this,u)&&(Ol(this),srb(this,u))};g.P(Hm,g.m);g.K=Hm.prototype;g.K.init=function(){var u=hl(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");u&&(u.current=this);this.Eg.get().addListener(this);this.q1.init();u31([this.layout],this.Eg.get());this.z5()};
g.K.z5=function(){var u=hl(this.q1.Ug().clientMetadata,"metadata_type_player_vars");u?this.Jy.get().addPlayerResponseForAssociation({playerVars:u}):(u=Fjn(this.q1.Ug()),this.Jy.get().addPlayerResponseForAssociation({TC:u}))};
g.K.uf=function(){};
g.K.S7=function(){return this.slot};
g.K.Ug=function(){return this.layout};
g.K.p5=function(){this.q1.p5()};
g.K.HF=function(){this.q1.HF()};
g.K.XH=function(){Jk("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter.  Skip should be handled by Triggers")};
g.K.Yl=function(u,h){this.q1.Yl(u,h)};
g.K.ZL=function(){};
g.K.SD=function(){};
g.K.Lr=function(){};
g.K.al=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(){};
g.K.Ou=function(){};
g.K.H_=function(){};
g.K.SZ=function(u){this.q1.SZ(u)};
g.K.onFullscreenToggled=function(u){this.q1.onFullscreenToggled(u)};
g.K.Wo=function(u){this.q1.Wo(u)};
g.K.Bx=function(u){this.q1.Bx(u)};
g.K.onVolumeChange=function(){this.q1.onVolumeChange()};
g.K.qT=function(){};
g.K.h2=function(){};
g.K.J2=function(){};
g.K.Z0=function(){return this.FB.get().getPresentingPlayerType()===2};
g.K.Zx=function(u){ykn({cpn:u,X9:this.Eg.get(),zt:!0});this.layout.layoutId===u&&(sPb(this.kS,this.slot.slotId),this.Ru.Yl(this.slot,this.layout))};
g.K.startRendering=function(u){if(u.layoutId!==this.layout.layoutId)return void Jk("wrong layout");this.FB.get().addListener(this);DF(this.Gd(),this);this.q1.startRendering(this.layout)};
g.K.SS=function(u){this.q1.SS(u)};
g.K.KH=function(u,h,L){this.q1.KH(u,h,L)};
g.K.release=function(){this.Eg.get().removeListener(this);this.q1.release();jrb();cs(this.Gd(),this)};
g.K.mM=function(){return af(this.params.context.Mi.get(),"html5_ssap_exit_without_waiting_for_transition")};
g.K.Ib=function(u,h){u.layoutId!==this.layout.layoutId?Jk("wrong layout"):this.mM()&&this.q1.H6().currentState>=2||(this.q1.Ib(this.layout,h),u=af(this.params.context.Mi.get(),"html5_ssap_pass_transition_reason")&&h==="abandoned",this.Z0()&&!u&&(af(this.params.context.Mi.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(h)||Jk("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:h})),this.Bj.get().finishSegmentByCpn(this.layout.layoutId,
fJ(this.Eg.get(),1).clientPlaybackNonce,CJ(h,this.params.context.Mi))),this.FB.get().removeListener(this),this.mM()&&In(this.q1.H6())&&this.Ru.KH(this.slot,this.layout,this.q1.H6().G))};
g.K.JY=function(u,h,L){RBY({cpn:u,X9:this.Eg.get(),zt:!0});this.Ug().layoutId!==u||af(this.params.context.Mi.get(),"html5_ssap_pass_transition_reason")&&L===5||(this.q1.H6().currentState<2&&(u=MA(L,this.params.context.Mi),u==="error"?this.Ru.dO(this.slot,this.layout,new uN("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:L},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):Vj(this.CZ,
this.layout,u)),af(this.params.context.Mi.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Ru.KH(this.slot,this.layout,this.q1.H6().G))};g.P(rX,g.m);g.K=rX.prototype;g.K.S7=function(){return this.slot};
g.K.Ug=function(){return this.layout};
g.K.uf=function(){};
g.K.xN=function(){return this.N$[this.OE]};
g.K.o5=function(){return this.OE};
g.K.p5=function(u,h){var L=this.xN();h.layoutId!==zK(L,u,h)?Jk("pauseLayout for a PlayerBytes layout that is not currently active",u,h):L.p5()};
g.K.HF=function(u,h){var L=this.xN();h.layoutId!==zK(L,u,h)?Jk("resumeLayout for a PlayerBytes layout that is not currently active",u,h):L.HF()};
g.K.XH=function(u,h){var L=this.xN();gpj(this,u,h);uEj(L,u,h)&&this.ZZ(L.S7(),L.Ug(),"skipped")};
g.K.NB=function(u,h){var L=this.xN();jhl(this);hdw(L,u,h)&&(u=L1Y(this,L,u,h),u!==void 0&&(this.w1()?Jk("Should not happen. Should delete"):ySf(this,L.S7(),L.Ug(),u)))};
g.K.LK=function(u,h){var L=Object.assign({},Bm(this),{layoutId:h.layoutId}),Z=L.layoutId,y=L.zt;if(L.I9){var R={};PX(L.X9,"wrse",(R.ec=Z,R.is=y,R.ctp=x6(Z),R))}XM(this.vp,u,h)};
g.K.Yl=function(u,h){var L;(L=this.xN())==null||L.Yl(u,h)};
g.K.KH=function(u,h,L){h.layoutId===this.Ug().layoutId&&(this.Bf=!1,cs(this.Gd(),this));var Z;(Z=this.xN())==null||Z.KH(u,h,L)};
g.K.SZ=function(u){var h;(h=this.xN())==null||h.SZ(u)};
g.K.bx=function(u,h,L){this.o5()===-1&&(this.callback.Yl(this.slot,this.layout),this.OE++);var Z=this.xN();Z?(Z.qf(u,h,L),this.w1()&&this.callback.dO(this.slot,this.layout,h,L)):Jk("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.o5()),layoutId:this.Ug().layoutId})};
g.K.onFullscreenToggled=function(u){var h;(h=this.xN())==null||h.onFullscreenToggled(u)};
g.K.Wo=function(u){var h;(h=this.xN())==null||h.Wo(u)};
g.K.Bx=function(u){var h;(h=this.xN())==null||h.Bx(u)};
g.K.onVolumeChange=function(){var u;(u=this.xN())==null||u.onVolumeChange()};
g.K.tK=function(u,h,L){vs(this.vp,u,h,L)};
g.K.mf=function(u){u.startRendering(u.Ug())};
g.K.init=function(){var u=hl(this.Ug().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");u&&(u.current=this);if(this.N$.length<1)throw new b("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.N$.length)});if(u=hl(this.Ug().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))u.current=this;u=g.C(this.N$);for(var h=u.next();!h.done;h=u.next())h=h.value,h.init(),YZw(this.vp,this.slot,h.Ug()),o1n(this.vp,this.slot,h.Ug());
if(this.w1())for(this.Eg.get().addListener(this),u31(kzs(this),this.Eg.get()),u=kzs(this),u=g.C(u),h=u.next();!h.done;h=u.next())this.z5(h.value)};
g.K.z5=function(u){var h=hl(u.clientMetadata,"metadata_type_player_vars");h?(u.layoutType!=="LAYOUT_TYPE_MEDIA"&&Jk("Non-video ad contains playerVars",this.slot,u),this.Jy.get().addPlayerResponseForAssociation({playerVars:h})):(u=Fjn(u),this.Jy.get().addPlayerResponseForAssociation({TC:u}))};
g.K.release=function(){var u=hl(this.Ug().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");u&&(u.current=null);if(u=hl(this.Ug().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))u.current=null;u=g.C(this.N$);for(var h=u.next();!h.done;h=u.next())h=h.value,NDe(this.vp,this.slot,h.Ug()),h.release();this.w1()&&(this.Eg.get().removeListener(this),jrb())};
g.K.Me=function(u){return u.layoutId!==this.Ug().layoutId?(this.callback.dO(this.S7(),u,new uN("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Ug().layoutId+("and LayoutType: "+this.Ug().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
g.K.S1=function(){this.FB.get().addListener(this);DF(this.Gd(),this)};
g.K.SS=function(u){if(u.state.isError()){var h,L;this.bx((h=u.state.Ad)==null?void 0:h.errorCode,new uN("There was a player error during this media layout.",{playerErrorCode:(L=u.state.Ad)==null?void 0:L.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(h=this.xN())&&h.SS(u)};
g.K.w1=function(){var u=hl(this.S7().clientMetadata,"metadata_type_eligible_for_ssap");return u===void 0?(Jk("Expected SSAP eligibility in PlayerBytes slots",this.S7(),this.Ug()),!1):this.Mi.get().w1(u)};
g.K.J2=function(){};
g.K.ZL=function(){};
g.K.SD=function(){};
g.K.Lr=function(){};
g.K.al=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(){};
g.K.Ou=function(){};
g.K.H_=function(){};
g.K.qT=function(){};
g.K.h2=function(){};
g.P(nJ,rX);g.K=nJ.prototype;g.K.HQ=function(u,h,L){this.ZZ(u,h,L)};
g.K.iD=function(u,h){this.ZZ(u,h,"error")};
g.K.ZZ=function(u,h,L){var Z=this;ZQV(this,u,h,L,function(){mh(Z,Z.o5()+1)})};
g.K.startRendering=function(u){this.Me(u)&&(this.S1(),Ivf(this.rf.get()),Mwf(this.Mi.get())||grR(this.FB.get()),this.o5()===-1&&mh(this,this.o5()+1))};
g.K.Ib=function(u,h){var L=this;this.Bf=!0;this.o5()===this.N$.length?this.callback.KH(this.slot,this.layout,h):(u=this.xN(),u.Ib(u.Ug(),h),this.U_=function(){L.callback.KH(L.slot,L.layout,h)});
this.FB.get().D.PV();KVn(this.Jy.get(),{});u=jP(this.FB.get(),1);u.isPaused()&&!g.F(u,2)&&this.FB.get().playVideo();this.FB.get().removeListener(this);this.Bf&&RdY(this)};
g.K.JY=function(){};
g.K.Zx=function(){};
g.K.zq=function(){};
g.P(sl,rX);g.K=sl.prototype;g.K.HQ=function(u,h,L){u=Object.assign({},Bm(this),{layoutId:h.layoutId,layoutExitReason:L});h=u.layoutId;L=u.layoutExitReason;var Z={};PX(u.X9,"prse",(Z.xc=h,Z.ler=L,Z.ctp=x6(h),Z))};
g.K.iD=function(){Jk("onSubLayoutError in SSAP")};
g.K.ZZ=function(){Jk("exitSubLayoutAndPlayNext in SSAP")};
g.K.xN=function(){return this.TM};
g.K.o5=function(){var u=this;return this.N$.findIndex(function(h){var L;return h.Ug().layoutId===((L=u.TM)==null?void 0:L.Ug().layoutId)})};
g.K.mf=function(u){KG(this.TM===void 0,"replacing another adapter");this.TM=u;u.startRendering(u.Ug())};
g.K.tK=function(u,h,L){vs(this.vp,u,h,L);var Z;KG(h.layoutId===((Z=this.TM)==null?void 0:Z.Ug().layoutId),"currentAdapter does not match exiting layout",{slot:u?"slot:  "+u.slotType:"",subLayout:pG(h)})&&(this.TM=void 0)};
g.K.release=function(){rX.prototype.release.call(this);KG(this.TM===void 0,"currentAdapter is still active during release");this.TM=void 0};
g.K.Z0=function(){return this.FB.get().getPresentingPlayerType()===2};
g.K.Ib=function(u,h){function L(){wX(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(h)||Jk("Composite stopRendering: Unexpected layout exit reason",this.slot,u,{layoutExitReason:h}))}
function Z(){this.TM&&eu(this,this.TM,h);if(this.Z0()&&(!wX(this)||h!=="abandoned")){L.call(this);var R;var p=((R=this.Eg.get().D.getVideoData())==null?void 0:R.clientPlaybackNonce)||"";R=fJ(this.Eg.get(),1).clientPlaybackNonce;this.Bj.get().finishSegmentByCpn(p,R,CJ(h,this.Mi))}pcn(this,h)}
function y(){if(this.TM){var R=this.TM;R.H6().currentState<2&&R.Ib(R.Ug(),h);R=wX(this)&&h==="abandoned";this.Z0()&&!R&&(L.call(this),this.Bj.get().finishSegmentByCpn(this.TM.Ug().layoutId,fJ(this.Eg.get(),1).clientPlaybackNonce,CJ(h,this.Mi)))}}
KG(u.layoutId===this.Ug().layoutId,"StopRendering for wrong layout")&&cX(this.ET.N,h)&&(this.mM()?Z.call(this):y.call(this))};
g.K.KH=function(u,h,L){rX.prototype.KH.call(this,u,h,L);h.layoutId===this.Ug().layoutId&&this.FB.get().removeListener(this)};
g.K.kV=function(){return fJ(this.Eg.get(),1).clientPlaybackNonce};
g.K.JY=function(u,h,L){RBY(Object.assign({},Bm(this),{cpn:u}));if(!wX(this)||L!==5)if(this.mM()){if(this.TM&&this.TM.Ug().layoutId!==h){var Z=this.TM.Ug().layoutId;Z!==u&&Jk("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:Z,exitingCpn:u,enteringCpn:h});u=MA(L,this.Mi);eu(this,this.TM,u)}else this.TM&&Jk("onClipExited: active layout is entering again");h===this.kV()&&JSn(this,L)}else{if(this.TM&&this.TM.Ug().layoutId===u)K1a(this,this.TM,L);else{var y;Jk("Exiting cpn does not match active cpn",
this.slot,(Z=this.TM)==null?void 0:Z.Ug(),{exitingCpn:u,transitionReason:L,activeCpn:(y=this.TM)==null?void 0:y.Ug().layoutId})}h===this.kV()&&(this.TM!==void 0&&(Jk("active adapter is not properly exited",this.slot,this.layout,{activeLayout:pG(this.TM.Ug())}),K1a(this,this.TM,L)),JSn(this,L),pcn(this,this.ET.N.G))}};
g.K.mM=function(){return af(this.Mi.get(),"html5_ssap_exit_without_waiting_for_transition")};
g.K.startRendering=function(u){this.Me(u)&&(u=this.ET,KG(u.G===1,"tickStartRendering: state is not initial"),u.G=2,this.S1())};
g.K.Zx=function(u){ykn(Object.assign({},Bm(this),{cpn:u}));var h=this.N$.find(function(L){return L.Ug().layoutId===u});
h?(this.ET.G!==2&&(sPb(this.kS,this.slot.slotId),KG(this.ET.G===2,"Expect started"),this.callback.Yl(this.slot,this.layout)),this.mf(h),XM(this.vp,this.slot,h.Ug())):OQR(this,u)};
g.K.XH=function(u,h){gpj(this,u,h);var L=this.xN();L?uEj(L,u,h)&&fbj(this,"skipped"):Dsn(this,"onSkipRequested")};
g.K.NB=function(u,h){var L;a:{if(L=this.xN()){if(jhl(this),hdw(L,u,h)&&(u=L1Y(this,L,u,h),u!==void 0)){L={ev:L,DOi:this.N$[u]};break a}}else Dsn(this,"SkipWithAdPodSkip");L=void 0}if(u=L)L=u.ev,h=u.DOi,u=L.Ug().layoutId,this.mM()?eu(this,L,"skipped"):L.Ib(L.Ug(),"skipped"),L=h.Ug().layoutId,this.Bj.get().finishSegmentByCpn(u,L,CJ("skipped",this.Mi))};
g.K.LK=function(){Jk("Not used in html5_ssap_fix_layout_exit")};
g.K.SS=function(u){var h;(h=this.xN())==null||h.SS(u)};
g.K.bx=function(){Jk("Not used in html5_ssap_fix_layout_exit")};
g.K.zq=function(u,h,L){var Z;if(((Z=this.xN())==null?void 0:Z.Ug().layoutId)!==h.layoutId)return void Jk("requestToExitSubLayout: wrong layout");fbj(this,L)};g.P(aK,g.m);g.K=aK.prototype;g.K.S7=function(){return this.q1.S7()};
g.K.Ug=function(){return this.q1.Ug()};
g.K.init=function(){var u=hl(this.Ug().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");u&&(u.current=this);this.ix()};
g.K.ix=function(){this.q1.init()};
g.K.release=function(){var u=hl(this.Ug().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");u&&(u.current=null);this.bQ()};
g.K.bQ=function(){this.q1.release()};
g.K.p5=function(){this.q1.p5()};
g.K.HF=function(){this.q1.HF()};
g.K.XH=function(u,h){Jk("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.S7(),this.Ug(),{requestingSlot:u,requestingLayout:h})};
g.K.startRendering=function(u){u.layoutId!==this.Ug().layoutId?this.callback.dO(this.S7(),u,new uN("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Ug().layoutId+("and LayoutType: "+this.Ug().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.FB.get().addListener(this),DF(this.Gd(),this),Ivf(this.rf.get()),Mwf(this.Mi.get())||grR(this.FB.get()),this.q1.startRendering(u))};
g.K.Ib=function(u,h){this.Bf=!0;this.q1.Ib(u,h);this.FB.get().D.PV();KVn(this.Jy.get(),{});u=jP(this.FB.get(),1);u.isPaused()&&!g.F(u,2)&&this.FB.get().playVideo();this.FB.get().removeListener(this);this.Bf&&this.q1.oI()};
g.K.Yl=function(u,h){this.q1.Yl(u,h)};
g.K.KH=function(u,h,L){h.layoutId===this.Ug().layoutId&&(this.Bf=!1,cs(this.Gd(),this));this.q1.KH(u,h,L);h.layoutId===this.Ug().layoutId&&dX(this.rf.get())};
g.K.SZ=function(u){this.q1.SZ(u)};
g.K.SS=function(u){if(u.state.isError()){var h,L;this.bx((h=u.state.Ad)==null?void 0:h.errorCode,new uN("There was a player error during this media layout.",{playerErrorCode:(L=u.state.Ad)==null?void 0:L.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.q1.SS(u)};
g.K.bx=function(u,h,L){this.q1.qf(u,h,L)};
g.K.onFullscreenToggled=function(u){this.q1.onFullscreenToggled(u)};
g.K.Wo=function(u){this.q1.Wo(u)};
g.K.Bx=function(u){this.q1.Bx(u)};
g.K.onVolumeChange=function(){this.q1.onVolumeChange()};
g.K.J2=function(){};
g.K.ZL=function(){};
g.K.SD=function(){};
g.K.Lr=function(){};
g.K.al=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(){};
g.K.Ou=function(){};
g.K.H_=function(){};
g.K.qT=function(){};
g.K.h2=function(){};g.K=$G.prototype;g.K.S7=function(){return this.slot};
g.K.Ug=function(){return this.layout};
g.K.init=function(){this.fW.get().addListener(this);this.FB.get().addListener(this);var u=hl(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var h=hl(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.B){var L=this.fW.get().H5.slice(-1)[0];L!==void 0&&(u=L.startSecs*1E3,h=(L.startSecs+L.jS)*1E3)}this.Qp(u,h);var Z;L=(Z=this.Eg.get().jN)==null?void 0:Z.clientPlaybackNonce;Z=this.layout.oP.adClientDataEntry;t0(this.cX.get(),{daiStateTrigger:{filledAdsDurationMs:h-u,contentCpn:L,
adClientData:Z}});var y=this.fW.get();y=AS1(y.X,u,h);y!==null&&(t0(this.cX.get(),{daiStateTrigger:{filledAdsDurationMs:y-u,contentCpn:L,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:Z}}),this.Bj.get().Qz(y,h))};
g.K.release=function(){this.bQ();this.fW.get().removeListener(this);this.FB.get().removeListener(this)};
g.K.startRendering=function(){this.x9();this.callback.Yl(this.slot,this.layout)};
g.K.Ib=function(u,h){this.CJ(h);this.driftRecoveryMs!==null&&(Wm(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(xsf(this)-hl(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.FB.get().D.Ze()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.KH(this.slot,this.layout,h)};
g.K.Le=function(){return!1};
g.K.Bg=function(u){var h=hl(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),L=hl(this.layout.clientMetadata,"metadata_type_layout_exit_ms");u*=1E3;if(h<=u&&u<L){var Z;t0(this.cX.get(),{daiStateTrigger:{filledAdsDurationMs:u-h,contentCpn:(Z=this.Eg.get().jN)==null?void 0:Z.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.oP.adClientDataEntry}});this.Bj.get().Qz(u,L)}};
g.K.SZ=function(u){this.uD(u);u=JI(this.FB.get(),2,!0);if(im(this.T.get(),this.layout.layoutId)){var h=hl(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),L=this.driftRecoveryMs;if(!(L===null||u*1E3<h+L)){this.driftRecoveryMs=null;var Z=xsf(this),y=this.FB.get().D.Ze(),R=Math.min(u+y,Z/1E3);R<=u?Wm(this,{driftRecoveryMs:L.toString(),breakDurationMs:Math.round(Z-h).toString(),driftFromHeadMs:Math.round(y*1E3).toString()}):(Wm(this,{driftRecoveryMs:L.toString(),breakDurationMs:Math.round(Z-
h).toString(),driftFromHeadMs:Math.round(y*1E3).toString(),appliedDriftRecoveryMs:Math.round(u*1E3-h).toString(),destinationMs:Math.round(R*1E3-h).toString()}),this.FB.get().D.seekTo(R,void 0,void 0,1))}}};
g.K.Wo=function(){};
g.K.J2=function(){};
g.K.Bx=function(){};
g.K.onVolumeChange=function(){};
g.K.qT=function(){};
g.K.h2=function(){};g.P(FO,$G);g.K=FO.prototype;g.K.Qp=function(u,h){this.Eg.get().addListener(this);if(this.B){var L=u,Z=0,y=[];u=this.X.slice();u.sort(function(R,p){return hl(R.Ug().clientMetadata,"metadata_type_media_sub_layout_index")-hl(p.Ug().clientMetadata,"metadata_type_media_sub_layout_index")});
u.forEach(function(R){var p=L,J=hl(R.Ug().clientMetadata,"metadata_type_video_length_seconds"),O=Math.min(p+J*1E3,h);L=O;Z++;y.push(J);R.Qp(p,O)})}else this.X.forEach(function(R){R.init()});
this.N!=null&&bQ(this.cX.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.N)};
g.K.bQ=function(){this.Eg.get().removeListener(this);this.G=null;this.X.forEach(function(u){u.release()})};
g.K.x9=function(){if(this.G)Jk("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.N)});else{var u,h=(u=this.Eg.get().jN)==null?void 0:u.layoutId;Cyi(this,h)}};
g.K.CJ=function(u){var h,L,Z,y;(Z=this.G)==null||(y=Z.r7)==null||y.Ib((h=this.G)==null?void 0:(L=h.r7)==null?void 0:L.Ug(),u);this.G=null};
g.K.uf=function(u){var h=u.videoId;u=u.layoutId;if(h==="nPpU29QrbiU"){var L,Z;bQ(this.cX.get(),"ads_ssmplra_opdcs","vid."+h+";lid."+this.layout.layoutId+";smlid."+this.N+";slrs."+!!this.G+";slrslid."+((L=this.G)==null?void 0:(Z=L.r7)==null?void 0:Z.Ug().layoutId))}if(this.G){var y;if(((y=this.G.r7)==null?void 0:y.Ug().layoutId)===u)Jk("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:u});else{var R,p;(p=this.G.r7)==null||p.Ib((R=this.G.r7)==null?void 0:R.Ug(),"normal");
Cyi(this,u)}}};
g.K.JY=function(){};
g.K.Zx=function(){};
g.K.uD=function(){};
g.K.SS=function(){};
g.K.onFullscreenToggled=function(){};g.K=ozl.prototype;g.K.S7=function(){return this.slot};
g.K.Ug=function(){return this.layout};
g.K.H6=function(){Jk("Should not get exitStateMachine for DAI");return new Dq};
g.K.Qp=function(u,h){var L=this;hl(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.YF=M$i(this.slot,this.layout,hl(this.layout.clientMetadata,"metadata_type_player_vars"),u,h,hl(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.Bj.get(),this.A1.get(),function(){var Z=Object,y=Z.assign,R=hL(L.layout);var p=hl(L.slot.clientMetadata,"metadata_type_fulfilled_layout")||L.slot.fulfilledLayout;var J=hl(p.clientMetadata,"metadata_type_sub_layouts")||
p.Ba;p=Object.assign({},hL(p),{adPlacementConfig:hl(p.clientMetadata,"metadata_type_ad_placement_config"),subLayouts:(J||[]).map(hL)});return y.call(Z,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},R,{compositeLayout:p,hasSurveyOverlay:Ed(L.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:hl(L.layout.clientMetadata,"metadata_type_survey_overlay")})},this.cX.get());
this.FB.get().addListener(this);u=hl(this.layout.clientMetadata,"metadata_type_video_length_seconds");h=hl(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");iW(this.layout.Np)&&hI(this.z3.get(),this.layout.layoutId,{CA:h,Y5:u,listener:this});YZw(this.callback,this.slot,this.layout);o1n(this.callback,this.slot,this.layout)};
g.K.init=function(){var u=hl(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),h=hl(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.Qp(u,h)};
g.K.release=function(){this.FB.get().removeListener(this);iW(this.layout.Np)&&LW(this.z3.get(),this.layout.layoutId);this.Mi.get();NDe(this.callback,this.slot,this.layout)};
g.K.startRendering=function(){var u=this;Ed(this.layout.clientMetadata,"metadata_type_survey_overlay")&&bQ(this.cX.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.xF)Jk("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:Ed(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:hl(this.layout.clientMetadata,"metadata_type_survey_overlay")});else{this.xF={nm:null,x5:!1};this.G=!1;if(Pel(this.Mi.get())){var h;this.adCpn=
(h=fJ(this.Eg.get(),2))==null?void 0:h.clientPlaybackNonce}this.Mi.get().D.L().experiments.tB("html5_disable_sodar_for_tvhtml5")||iQb(this.slot,this.layout,this.Sx.get());iW(this.layout.Np)&&this.Mi.get().D.L().experiments.tB("enable_active_view_lifa_web_video")&&Ytn(this.z3.get(),this.layout.layoutId);this.JB.qp("start");if(c6(this.Mi.get())){h=jP(this.FB.get());var L=hl(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Z=JI(this.FB.get(),2,!1);Qhj(this.JB,this.xF.nm,h,L,Z,function(){return void Use(u,
"teois")},jI(this))}XM(this.callback,this.slot,this.layout);
Ed(this.layout.clientMetadata,"metadata_type_survey_overlay")&&bQ(this.cX.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.K.Ib=function(u,h){var L=this;if(this.xF){if(c6(this.Mi.get()))if(this.YF===null)Jk("Unexpected media sub layout exited without a timeline playback ID");else{u=hl(this.layout.clientMetadata,"metadata_type_video_length_seconds");var Z=Ers(this.FB.get(),this.YF);Pel(this.Mi.get())&&this.adCpn===void 0&&Jk("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:hl(this.layout.clientMetadata,"metadata_type_content_cpn")});P2V(this.JB,Z,this.adCpn);kG(this.JB,null,this.xF.nm,u,Z,jI(this),
function(y){return void NTV(L,y,"fue")},Pel(this.Mi.get()))}this.xF=null;
vs(this.callback,this.slot,this.layout,this.G&&this.Mi.get().D.L().j("dai_layout_log_skip_exit_reason")?"skipped":h)}else Jk("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.K.qf=function(){};
g.K.oI=function(){};
g.K.SZ=function(u){var h=this;if(this.xF){if(oz(this.JB,"impression")){var L=jP(this.FB.get()),Z=hl(this.layout.clientMetadata,"metadata_type_video_length_seconds");gX(this.JB,L,u,this.xF.nm,Z,function(y){return void NTV(h,y,"tpaqe")})}this.xF.nm=u}};
g.K.SS=function(u){var h=this;if(this.xF){c6(this.Mi.get())||this.xF.x5||(this.xF.x5=!0,u=new g.O_(u.state,new g.EF));var L=hl(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Z=JI(this.FB.get(),2,!1);El(this.JB,this.xF.nm,u,L,Z,jI(this),!c6(this.Mi.get()),function(){return void Use(h,"teosc")})}};
g.K.onFullscreenToggled=function(u){lbe(this.JB,u)};
g.K.Wo=function(){};
g.K.J2=function(){};
g.K.Bx=function(){};
g.K.XH=function(u,h){var L;u=this.cX.get();var Z="ti."+oz(this.JB,"impression")+";ts."+oz(this.JB,"skip")+";hp.",y;var R=!((y=this.JB.X.get("skip"))==null||!y.length);bQ(u,"ads_dsr",Z+R+";cpn."+hl(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((L=fJ(this.Eg.get(),2))==null?void 0:L.clientPlaybackNonce)+";sl."+(hl(h.clientMetadata,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));oz(this.JB,"impression")&&this.JB.qp("skip");h=fJ(this.Eg.get(),1).KZ&&this.Mi.get().D.L().experiments.tB("html5_lifa_skip_to_content");
this.G=!0;this.Bj.get().FW(h)||(this.G=!1,Jk("Unexpected failure to skip a server stitched ad",this.slot,this.layout))};
g.K.onVolumeChange=function(){};
g.K.Yl=function(){};
g.K.KH=function(){};
g.K.p5=function(){};
g.K.HF=function(){};
g.K.eX=function(){Sha(this.JB)};
g.K.IZ=function(){Xcl(this.JB)};
g.K.Gs=function(){vz1(this.JB)};
g.K.Ai=function(){qhe(this.JB)};
g.K.xa=function(){TTn(this.JB)};
g.K.mL=function(){YhL(this.JB)};
g.K.qT=function(){};
g.K.h2=function(){};g.P(Lm,$G);g.K=Lm.prototype;
g.K.Qp=function(){var u=this;hl(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;var h=hl(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),L=hl(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.YF=M$i(this.slot,this.layout,hl(this.layout.clientMetadata,"metadata_type_player_vars"),h,L,hl(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.Bj.get(),this.A1.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:h,
exitMs:L,adPlacementConfig:hl(u.layout.clientMetadata,"metadata_type_ad_placement_config")}},this.cX.get());
var Z=hl(this.layout.clientMetadata,"metadata_type_video_length_seconds"),y=hl(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");iW(this.layout.Np)&&hI(this.z3.get(),this.layout.layoutId,{CA:y,Y5:Z,listener:this})};
g.K.bQ=function(){iW(this.layout.Np)&&LW(this.z3.get(),this.layout.layoutId)};
g.K.x9=function(){var u=this;if(this.xF)Jk("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.xF={nm:null,x5:!1},iQb(this.slot,this.layout,this.Sx.get()),this.JB.qp("start"),c6(this.Mi.get())){var h=jP(this.FB.get()),L=hl(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Z=JI(this.FB.get(),2,!1);Qhj(this.JB,this.xF.nm,h,L,Z,function(){return void GQY(u,"teois")},!1)}};
g.K.CJ=function(){var u=this;if(this.xF){if(c6(this.Mi.get()))if(this.YF===null)Jk("Unexpected single media layout exited without a timeline playback ID");else{var h=hl(this.layout.clientMetadata,"metadata_type_video_length_seconds"),L=Ers(this.FB.get(),this.YF);P2V(this.JB,L);kG(this.JB,null,this.xF.nm,h,L,!1,function(Z){return void HQj(u,Z,"fue")})}this.xF=null}else Jk("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.K.uD=function(u){var h=this;if(this.xF){if(oz(this.JB,"impression")){var L=jP(this.FB.get()),Z=hl(this.layout.clientMetadata,"metadata_type_video_length_seconds");gX(this.JB,L,u,this.xF.nm,Z,function(y){return void HQj(h,y,"tpaqe")})}this.xF.nm=u}};
g.K.SS=function(u){var h=this;if(this.xF){c6(this.Mi.get())||this.xF.x5||(this.xF.x5=!0,u=new g.O_(u.state,new g.EF));var L=hl(this.layout.clientMetadata,"metadata_type_video_length_seconds"),Z=JI(this.FB.get(),2,!1);El(this.JB,this.xF.nm,u,L,Z,!1,!c6(this.Mi.get()),function(){return void GQY(h,"teosc")})}};
g.K.onFullscreenToggled=function(u){lbe(this.JB,u)};
g.K.eX=function(){Sha(this.JB)};
g.K.IZ=function(){Xcl(this.JB)};
g.K.Gs=function(){vz1(this.JB)};
g.K.Ai=function(){qhe(this.JB)};
g.K.xa=function(){TTn(this.JB)};
g.K.mL=function(){YhL(this.JB)};ZQ.prototype.build=function(u,h,L,Z){if(Ed(L.clientMetadata,"metadata_type_dai")){var y=hl(Z.clientMetadata,"metadata_type_ad_placement_config");tc(Z,{z1:"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(" "),GM:["LAYOUT_TYPE_MEDIA"]})&&y!==void 0?(y=new SR(Z.Np,this.cX,y,Z.layoutId,null),y=new Lm(u,L,Z,this.Eg,this.Bj,this.A1,this.fW,this.FB,y,this.cX,this.Sx,
this.G,this.z3,this.Mi)):y=null;if(y)return y;a:{var R,p=(R=Z.Ba)!=null?R:hl(Z.clientMetadata,"metadata_type_sub_layouts");y=hl(Z.clientMetadata,"metadata_type_ad_placement_config");if(tc(Z,{z1:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],GM:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&p!==void 0&&y!==void 0){R=[];p=g.C(p);for(var J=p.next();!J.done;J=p.next()){J=J.value;var O=hl(J.clientMetadata,"metadata_type_media_sub_layout_index");if(!tc(J,{z1:"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(" "),
GM:["LAYOUT_TYPE_MEDIA"]})||O===void 0){u=null;break a}O=new SR(J.Np,this.cX,y,J.layoutId,O);R.push(new ozl(h,L,J,this.Bj,O,this.FB,this.A1,this.z3,this.Sx,this.Mi,this.cX,this.Eg))}h=new SR(Z.Np,this.cX,y,Z.layoutId);u=new FO(u,L,Z,this.Eg,this.Bj,this.fW,this.FB,h,this.cX,this.G,R)}else u=null}if(u)return u}else if(u=IbV(u,h,L,Z,this.Gd,this.kS,this.q$,this.cX,this.z3,this.Sx,this.Jy,this.Eg,this.FB,this.bF,this.rf,this.LH,this.yZ,this.LB,this.Mi,this.Bj,this.context,this.A3))return u;throw new uN("Unsupported layout with type: "+
Z.layoutType+" and client metadata: "+LE(Z.clientMetadata)+" in PlayerBytesLayoutRenderingAdapterFactory.");};yL.prototype.build=function(u,h,L,Z){if(u=IbV(u,h,L,Z,this.Gd,this.kS,this.q$,this.cX,this.z3,this.Sx,this.Jy,this.Eg,this.FB,this.bF,this.rf,this.LH,this.yZ,this.LB,this.Mi,this.Bj,this.context,this.A3))return u;throw new uN("Unsupported layout with type: "+Z.layoutType+" and client metadata: "+LE(Z.clientMetadata)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.P(rSf,Zd);g.P(R0,Ac);R0.prototype.startRendering=function(u){var h=xl(this.JB),L={adsClientData:this.layout.oP};this.G.push(new rSf(hl(this.layout.clientMetadata,"metadata_type_valid_survey_text_interstitial_renderer"),h,this.Ug().layoutId,L));Ac.prototype.startRendering.call(this,u);this.callback.Yl(this.slot,u)};
R0.prototype.DL=function(u,h){h!==this.layout.layoutId||u!=="survey-interstitial"&&u!=="button"||((u=hl(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?u.XH(this.slot,this.layout):Jk("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
R0.prototype.Ni=function(){Ac.prototype.Ni.call(this)};var Km=new g.II(320,63);g.P(fm,Zd);g.P(DQ,Ac);g.K=DQ.prototype;g.K.SZ=function(){};
g.K.SS=function(){};
g.K.onFullscreenToggled=function(){};
g.K.Wo=function(u){u&&Nn(this.B,this.layout)};
g.K.J2=function(){};
g.K.Bx=function(u){var h=OL(this.layout);if(this.V=JL(u,kMl(this.FB.get())))h.onErrorCommand&&this.yZ.get().executeCommand(h.onErrorCommand,this.layout.layoutId),Nn(this.B,this.layout)};
g.K.onVolumeChange=function(){};
g.K.cP=function(){return this.Ug().layoutId};
g.K.Ln=function(){return this.V};
g.K.DL=function(u){this.T.DL(u);u==="in_video_overlay_close_button"&&Nn(this.B,this.layout)};
g.K.ai=function(u){u==="invideo-overlay"&&Nn(this.B,this.layout)};
g.K.qR=function(){this.T.qR()};
g.K.startRendering=function(u){Ac.prototype.startRendering.call(this,u);this.callback.Yl(this.slot,u);this.C.vH=this};
g.K.Ib=function(u,h){Ac.prototype.Ib.call(this,u,h);Wq(this.C,this)};
g.K.init=function(){Ac.prototype.init.call(this);s1n(this.cX.get(),this);this.FB.get().addListener(this);this.G.push(new fm(OL(this.layout),xl(this.JB),this.layout.layoutId,{adsClientData:this.layout.oP}))};
g.K.release=function(){Ac.prototype.release.call(this);this.FB.get().removeListener(this);wwe(this.cX.get(),this)};
g.K.qT=function(){};
g.K.h2=function(){};g.P(cT,Ac);g.K=cT.prototype;g.K.init=function(){Ac.prototype.init.call(this);s1n(this.cX.get(),this);this.FB.get().addListener(this);this.G.push(new fm(OL(this.layout),xl(this.JB),this.layout.layoutId,{adsClientData:this.layout.oP}))};
g.K.qR=function(){this.T.qR()};
g.K.startRendering=function(u){Ac.prototype.startRendering.call(this,u);this.callback.Yl(this.slot,u);this.C.vH=this};
g.K.Ib=function(u,h){Ac.prototype.Ib.call(this,u,h);Wq(this.C,this)};
g.K.DL=function(u){this.T.DL(u);u==="in_video_overlay_close_button"&&Nn(this.B,this.layout)};
g.K.k_=function(u){if(u==="invideo-overlay"){u=n$l(this.S,this.layout);u=g.C(u);for(var h=u.next();!h.done;h=u.next())h.value.stop()}};
g.K.ai=function(u){u==="invideo-overlay"&&Nn(this.B,this.layout)};
g.K.pR=function(u){if(u==="invideo-overlay"){u=n$l(this.S,this.layout);u=g.C(u);for(var h=u.next();!h.done;h=u.next())h.value.start()}};
g.K.SZ=function(){};
g.K.SS=function(){};
g.K.onFullscreenToggled=function(){};
g.K.Wo=function(u){u&&Nn(this.B,this.layout)};
g.K.J2=function(){};
g.K.Bx=function(u){var h=OL(this.layout),L=h.contentSupportedRenderer.imageOverlayAdContentRenderer,Z=kMl(this.FB.get());a:{L=L.image;L=L===void 0?null:L;if(L!=null&&(L=L.thumbnail,L!=null&&L.thumbnails!=null&&L.thumbnails.length!=0&&L.thumbnails[0].width!=null&&L.thumbnails[0].height!=null)){L=new g.II(L.thumbnails[0].width||0,L.thumbnails[0].height||0);break a}L=new g.II(0,0)}if(this.V=JL(u,Z,L))h.onErrorCommand&&this.yZ.get().executeCommand(h.onErrorCommand,this.layout.layoutId),Nn(this.B,this.layout)};
g.K.onVolumeChange=function(){};
g.K.cP=function(){return this.Ug().layoutId};
g.K.Ln=function(){return this.V};
g.K.release=function(){Ac.prototype.release.call(this);this.FB.get().removeListener(this);wwe(this.cX.get(),this)};
g.K.qT=function(){};
g.K.h2=function(){};I0.prototype.DL=function(u){u==="ad-info-hover-text-button"&&((this.G=this.FB.get().Ah(1))||this.FB.get().pauseVideo())};
I0.prototype.qR=function(){this.G||this.FB.get().resumeVideo(1)};g.P(dsn,Zd);g.P(AL,Ac);g.K=AL.prototype;g.K.init=function(){Ac.prototype.init.call(this);this.FB.get().addListener(this)};
g.K.startRendering=function(u){var h=hl(this.layout.clientMetadata,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.G.push(new dsn(h,this.layout.layoutId,{adsClientData:this.layout.oP}));Ac.prototype.startRendering.call(this,u);this.callback.Yl(this.slot,u)};
g.K.Yl=function(){};
g.K.DL=function(u,h){h!==this.layout.layoutId||u!=="ad-info-icon-button"&&u!=="ad-info-dialog-close-button"||((h=hl(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?u==="ad-info-icon-button"?h.p5(this.slot,this.layout):u==="ad-info-dialog-close-button"&&h.HF(this.slot,this.layout):Jk("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:u}))};
g.K.Bx=function(u){u.width<450&&Nn(this.B,this.layout)};
g.K.onVolumeChange=function(){};
g.K.SZ=function(){};
g.K.onFullscreenToggled=function(){};
g.K.Wo=function(){};
g.K.J2=function(){};
g.K.SS=function(){};
g.K.qT=function(){};
g.K.h2=function(){};
g.K.Ni=function(){Ac.prototype.Ni.call(this)};
g.K.release=function(){Ac.prototype.release.call(this);this.FB.get().removeListener(this)};V$n.prototype.build=function(u,h,L,Z){if(h=pA(u,L,Z,this.uF,this.FB,this.cX,this.B,this.G,this.Mi))return h;if(tc(Z,msi()))return new cT(L,Z,this.cX,this.z3,this.uF,u,this.N,this.X,this.FB,this.yZ,this.Mi,this.G,new I0(this.FB));if(tc(Z,zda()))return new DQ(L,Z,this.cX,this.z3,this.uF,u,this.N,this.FB,this.yZ,this.Mi,this.G,new I0(this.FB));if(tc(Z,{z1:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],GM:["LAYOUT_TYPE_SURVEY"]}))return new AL(L,Z,u,this.uF,this.N,this.FB,this.Mi);if(tc(Z,
{z1:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],GM:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new R0(L,Z,u,this.uF,this.cX);if(tc(Z,bun()))return new jX(L,Z,u,this.uF,this.FB,this.Mi);throw new uN("Unsupported layout with type: "+Z.layoutType+" and client metadata: "+LE(Z.clientMetadata)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};nzY.prototype.build=function(u,h,L,Z){if(h=pA(u,L,Z,this.uF,this.FB,this.cX,this.B,this.G,this.Mi))return h;if(tc(Z,msi()))return new cT(L,Z,this.cX,this.z3,this.uF,u,this.N,this.X,this.FB,this.yZ,this.Mi,this.G,new I0(this.FB));if(tc(Z,zda()))return new DQ(L,Z,this.cX,this.z3,this.uF,u,this.N,this.FB,this.yZ,this.Mi,this.G,new I0(this.FB));throw new uN("Unsupported layout with type: "+Z.layoutType+" and client metadata: "+LE(Z.clientMetadata)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");
};g.P(xf,g1);xf.prototype.startRendering=function(u){g1.prototype.startRendering.call(this,u);if(u.renderingContent?adw(u,fJ(this.Eg.get(),2)||void 0):hl(this.layout.clientMetadata,"metadata_ad_video_is_listed"))u=u.renderingContent?eIV(u,fJ(this.Eg.get(),2)||void 0):hl(this.layout.clientMetadata,"metadata_type_ad_info_ad_metadata"),this.Od.get().D.hB("onAdMetadataAvailable",u)};wcR.prototype.build=function(u,h,L,Z){if(tc(Z,shi())||Z.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.n(Z.renderingContent,LA)!==void 0)return new xf(u,L,Z,this.uF,this.FB,this.cX,this.N,this.Od,this.G,this.Eg);throw new uN("Unsupported layout with type: "+Z.layoutType+" and client metadata: "+LE(Z.clientMetadata)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};ede.prototype.build=function(u,h,L,Z){if(tc(Z,shi()))return new xf(u,L,Z,this.uF,this.FB,this.cX,this.N,this.Od,this.G,this.Eg);if(u=pA(u,L,Z,this.uF,this.FB,this.cX,this.N,this.G,this.Mi))return u;throw new uN("Unsupported layout with type: "+Z.layoutType+" and client metadata: "+LE(Z.clientMetadata)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};dz.prototype.clone=function(u){var h=this;return new dz(function(){return h.triggerId},u)};VL.prototype.clone=function(u){var h=this;return new VL(function(){return h.triggerId},u)};nm.prototype.clone=function(u){var h=this;return new nm(function(){return h.triggerId},u)};sL.prototype.clone=function(u){var h=this;return new sL(function(){return h.triggerId},u)};wz.prototype.clone=function(u){var h=this;return new wz(function(){return h.triggerId},u)};eI.prototype.clone=function(u){var h=this;return new eI(function(){return h.triggerId},u)};g.P(o4,g.m);var yiV={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 Eu={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],Pj:[],layoutExitUserInputSubmittedTriggers:[]};var oL={qvH:1,Zgd:2,JVg:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.P(D2,g.m);g.K=D2.prototype;g.K.Oz=function(u){if(this.G)Jk("Unexpected multiple fetch instructions for the current content");else{this.G=u;u=g.C(this.fW.get().H5);for(var h=u.next();!h.done;h=u.next())Sdn(this,this.G,h.value)}};
g.K.Le=function(u){if(!this.G){var h;(h=this.Bj)==null||h.get().s4(u.identifier);return!1}Sdn(this,this.G,u);return!0};
g.K.Bg=function(){};
g.K.Zz=function(u){this.G&&this.G.contentCpn!==u&&(Jk("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:u,fetchInstructionsCpn:this.G.contentCpn}),this.G=null)};
g.K.hC=function(u){this.G&&this.G.contentCpn!==u&&Jk("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:u,fetchInstructionsCpn:this.G.contentCpn},!0);this.G=null};
g.K.Ni=function(){g.m.prototype.Ni.call(this);this.G=null};var QI=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],iaV=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.P(A$,g.m);g.K=A$.prototype;g.K.Yl=function(u,h){var L=this;if(h.layoutType==="LAYOUT_TYPE_MEDIA"&&(k$(h,this.C)||k$(h,iaV))){var Z=fJ(this.Eg.get(),2),y=this.B(h,Z||void 0);y?f2(this.X.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var R=[Ain(L.G.get(),y.contentCpn,y.Kv,function(p){return L.T(p.slotId,"core",y,KE(L.Xo.get(),p))},y.inPlayerSlotId)];
y.instreamAdPlayerUnderlayRenderer&&$3(L.Mi.get())&&R.push(TQl(L,y,y.instreamAdPlayerUnderlayRenderer));return R}):Jk("Expected MediaLayout to carry valid opportunity on entered",u,h)}};
g.K.ZL=function(){};
g.K.SD=function(){};
g.K.al=function(){};
g.K.Lr=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(){};
g.K.Ou=function(){};
g.K.H_=function(){};
g.K.KH=function(){};g.P(xT,g.m);xT.prototype.Zz=function(u,h,L,Z,y,R,p){var J=this,O=fJ(this.Eg.get(),1);!af(this.Mi.get(),"html5_ssap_play_cached_preroll")&&O.QX?KW(this.FB.get()):(cTb(this.rf.get(),Z),f2(this.N.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return TAw(J.G.get(),Z,y,R,u,h,p,O,"")}),APb(this.X))};
xT.prototype.hC=function(){};g.P(P6,g.m);g.P(CO,g.m);CO.prototype.onCueRangeEnter=function(){};
CO.prototype.onCueRangeExit=function(u){var h=this,L=this.G.get(u);L&&(this.G.delete(u),this.bF.get().removeCueRange(u),f2(this.N.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var Z=h.X.get();Z=DL(Z.N.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},L,{slotId:Z,slotEntryTrigger:L.slotEntryTrigger?FfR(L.slotId,Z,L.slotEntryTrigger):void 0,slotFulfillmentTriggers:b6i(L.slotId,Z,L.slotFulfillmentTriggers),slotExpirationTriggers:b6i(L.slotId,Z,L.slotExpirationTriggers)})]},
L.slotId))};
CO.prototype.Zz=function(){for(var u=g.C(this.G.keys()),h=u.next();!h.done;h=u.next())h=h.value,this.bF.get().removeCueRange(h);this.G.clear()};
CO.prototype.hC=function(){};g.P(Mn,g.m);g.K=Mn.prototype;g.K.ZL=function(){};
g.K.SD=function(u){var h=this;g.bw(g.k9(),function(){var L=h.G.get(u);L&&Jk("Expected layouts to be properly unscheduled",u,void 0,{slotType:u.slotType,layoutTypes:[].concat(g.l(L)).map(function(Z){return Z.layoutType})})},0)};
g.K.al=function(){};
g.K.Lr=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(u,h){this.G.has(u)||this.G.set(u,new Set);this.G.get(u).add(h)};
g.K.Ou=function(u,h){this.rX.has(u)&&this.rX.get(u)===h&&Jk("Unscheduled a Layout that is currently entered.",u,h);if(this.G.has(u)){var L=this.G.get(u);L.has(h)?(L.delete(h),L.size===0&&this.G.delete(u)):Jk("Trying to unscheduled a Layout that was not scheduled.",u,h)}else Jk("Trying to unscheduled a Layout that was not scheduled.",u,h)};
g.K.Yl=function(u,h){this.rX.set(u,h)};
g.K.KH=function(u){this.rX.delete(u)};
g.K.H_=function(){};g.K=o$a.prototype;g.K.init=function(){};
g.K.S7=function(){return this.slot};
g.K.iT=function(){this.callback.al(this.slot)};
g.K.Se=function(){this.callback.b2(this.slot)};
g.K.release=function(){};lm.prototype.build=function(u,h){return new o$a(u,h)};g.K=NQs.prototype;g.K.init=function(){};
g.K.S7=function(){return this.slot};
g.K.iT=function(){OA(this.FB.get(),"ad-showing");this.callback.al(this.slot)};
g.K.Se=function(){this.callback.b2(this.slot);fW(this.FB.get(),"ad-showing")};
g.K.release=function(){};g.K=Utl.prototype;g.K.init=function(){};
g.K.S7=function(){return this.slot};
g.K.iT=function(){OA(this.FB.get(),"ad-showing");OA(this.FB.get(),"ad-interrupting");this.N=this.FB.get().isAtLiveHead();this.G=Math.ceil(Date.now()/1E3);this.callback.al(this.slot)};
g.K.Se=function(){fW(this.FB.get(),"ad-showing");fW(this.FB.get(),"ad-interrupting");var u=this.N?Infinity:JI(this.FB.get(),1,!0)+Math.floor(Date.now()/1E3)-this.G;this.FB.get().D.seekTo(u,void 0,void 0,1);this.callback.b2(this.slot)};
g.K.release=function(){};g.K=GPl.prototype;g.K.init=function(){};
g.K.S7=function(){return this.slot};
g.K.iT=function(){OA(this.FB.get(),"ad-showing");OA(this.FB.get(),"ad-interrupting");this.callback.al(this.slot)};
g.K.Se=function(){KW(this.FB.get());fW(this.FB.get(),"ad-showing");fW(this.FB.get(),"ad-interrupting");this.callback.b2(this.slot)};
g.K.release=function(){KW(this.FB.get())};Sk.prototype.build=function(u,h){if(ZF(h,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new NQs(u,h,this.FB);if(h.slotEntryTrigger instanceof Ny&&ZF(h,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new Utl(u,h,this.FB);if(ZF(h,[],"SLOT_TYPE_PLAYER_BYTES"))return new GPl(u,h,this.FB);throw new b("Unsupported slot with type "+h.slotType+" and client metadata: "+(LE(h.clientMetadata)+" in PlayerBytesSlotAdapterFactory."));};g.P(XN,g.m);XN.prototype.G=function(u){for(var h=[],L=g.C(this.cJ.values()),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var y=Z.trigger;y instanceof mZ&&Z.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&&y.triggeringLayoutId===u&&h.push(Z)}h.length?qZ(this.Vr(),h):Jk("Mute requested but no registered triggers can be activated.")};g.P(qn,XN);g.K=qn.prototype;g.K.DL=function(u,h){if(h)if(u==="skip-button"){u=[];for(var L=g.C(this.cJ.values()),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var y=Z.trigger;y instanceof mZ&&Z.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&y.triggeringLayoutId===h&&u.push(Z)}u.length&&qZ(this.Vr(),u)}else af(this.Mi.get(),"supports_multi_step_on_desktop")?u==="ad-action-submit-survey"&&v6(this,h):u==="survey-submit"?v6(this,h):u==="survey-single-select-answer-button"&&v6(this,h)};
g.K.V6=function(u){XN.prototype.G.call(this,u)};
g.K.eh=function(u,h,L,Z){if(this.cJ.has(h.triggerId))throw new b("Tried to register duplicate trigger for slot.");if(!(h instanceof a0||h instanceof mZ))throw new b("Incorrect TriggerType: Tried to register trigger of type "+h.triggerType+" in AdUxUpdateTriggerAdapter.");this.cJ.set(h.triggerId,new tL(u,h,L,Z))};
g.K.Nt=function(u){this.cJ.delete(u.triggerId)};
g.K.k_=function(){};
g.K.pR=function(){};
g.K.ai=function(){};g.P(TL,g.m);g.K=TL.prototype;
g.K.eh=function(u,h,L,Z){if(this.cJ.has(h.triggerId))throw new b("Tried to register duplicate trigger for slot.");if(!(h instanceof dz||h instanceof VL||h instanceof nm||h instanceof sL||h instanceof wz||h instanceof eI||h instanceof HT||h instanceof SI||h instanceof vT||h instanceof Xc||h instanceof G$||h instanceof lr))throw new b("Incorrect TriggerType: Tried to register trigger of type "+h.triggerType+" in AdsControlFlowEventTriggerAdapter");u=new tL(u,h,L,Z);this.cJ.set(h.triggerId,u);h instanceof
wz&&this.T.has(h.triggeringSlotId)&&qZ(this.G(),[u]);h instanceof dz&&this.X.has(h.triggeringSlotId)&&qZ(this.G(),[u]);h instanceof SI&&this.N.has(h.triggeringLayoutId)&&qZ(this.G(),[u])};
g.K.Nt=function(u){this.cJ.delete(u.triggerId)};
g.K.ZL=function(u){this.T.add(u.slotId);for(var h=[],L=g.C(this.cJ.values()),Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.trigger instanceof wz&&u.slotId===Z.trigger.triggeringSlotId&&h.push(Z);h.length>0&&qZ(this.G(),h)};
g.K.SD=function(u){this.T.delete(u.slotId);for(var h=[],L=g.C(this.cJ.values()),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var y=Z.trigger;y instanceof eI&&y.triggeringSlotId===u.slotId&&h.push(Z)}h.length>0&&qZ(this.G(),h)};
g.K.Lr=function(u){for(var h=[],L=g.C(this.cJ.values()),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var y=Z.trigger;y instanceof HT&&y.slotType===u.slotType&&y.G!==u.slotId&&h.push(Z)}h.length>0&&qZ(this.G(),h)};
g.K.al=function(u){this.X.add(u.slotId);for(var h=[],L=g.C(this.cJ.values()),Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.trigger instanceof dz&&u.slotId===Z.trigger.triggeringSlotId&&h.push(Z);h.length>0&&qZ(this.G(),h)};
g.K.b2=function(u){this.X.delete(u.slotId);this.B.add(u.slotId);for(var h=[],L=g.C(this.cJ.values()),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.trigger instanceof VL)u.slotId===Z.trigger.triggeringSlotId&&h.push(Z);else if(Z.trigger instanceof lr){var y=Z.trigger;u.slotId===y.slotId&&this.N.has(y.triggeringLayoutId)&&h.push(Z)}h.length>0&&qZ(this.G(),h)};
g.K.iS=function(u){for(var h=[],L=g.C(this.cJ.values()),Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.trigger instanceof nm&&u.slotId===Z.trigger.triggeringSlotId&&h.push(Z);h.length>0&&qZ(this.G(),h)};
g.K.Ho=function(u){for(var h=[],L=g.C(this.cJ.values()),Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.trigger instanceof sL&&u.slotId===Z.trigger.triggeringSlotId&&h.push(Z);h.length>0&&qZ(this.G(),h)};
g.K.lS=function(u,h){this.C.add(h.layoutId)};
g.K.Ou=function(u,h){this.C.delete(h.layoutId)};
g.K.Yl=function(u,h){this.N.add(h.layoutId);for(var L=[],Z=g.C(this.cJ.values()),y=Z.next();!y.done;y=Z.next())if(y=y.value,y.trigger instanceof SI)h.layoutId===y.trigger.triggeringLayoutId&&L.push(y);else if(y.trigger instanceof G$){var R=y.trigger;u.slotType===R.slotType&&h.layoutType===R.layoutType&&h.layoutId!==R.G&&L.push(y)}else y.trigger instanceof lr&&(R=y.trigger,h.layoutId===R.triggeringLayoutId&&this.B.has(R.slotId)&&L.push(y));L.length>0&&qZ(this.G(),L)};
g.K.KH=function(u,h,L){this.N.delete(h.layoutId);u=[];for(var Z=g.C(this.cJ.values()),y=Z.next();!y.done;y=Z.next())if(y=y.value,y.trigger instanceof vT&&h.layoutId===y.trigger.triggeringLayoutId&&u.push(y),y.trigger instanceof Xc){var R=y.trigger;h.layoutId===R.triggeringLayoutId&&R.G.includes(L)&&u.push(y)}u.length>0&&qZ(this.G(),u)};
g.K.H_=function(){};
g.K.Zz=function(){this.B.clear()};
g.K.hC=function(){};g.P(o7,g.m);o7.prototype.eh=function(u,h,L,Z){if(this.cJ.has(h.triggerId))throw new b("Tried to register duplicate trigger for slot.");if(!(h instanceof ir))throw new b("Incorrect TriggerType: Tried to register trigger of type "+h.triggerType+" in CloseRequestedTriggerAdapter");this.cJ.set(h.triggerId,new tL(u,h,L,Z))};
o7.prototype.Nt=function(u){this.cJ.delete(u.triggerId)};g.P(U7,g.m);U7.prototype.eh=function(u,h,L,Z){if(this.cJ.has(h.triggerId))throw new b("Tried to register duplicate trigger for slot.");if(!(h instanceof My||h instanceof BT))throw new b("Incorrect TriggerType: Tried to register trigger of type "+h.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.cJ.set(h.triggerId,new tL(u,h,L,Z))};
U7.prototype.Nt=function(u){this.cJ.delete(u.triggerId)};
U7.prototype.Zz=function(u){for(var h=[],L=h.push,Z=L.apply,y=[],R=g.C(this.cJ.values()),p=R.next();!p.done;p=R.next())p=p.value,p.trigger instanceof My&&p.trigger.l$===u&&y.push(p);Z.call(L,h,g.l(y));L=h.push;Z=L.apply;y=[];R=g.C(this.cJ.values());for(p=R.next();!p.done;p=R.next())p=p.value,p.trigger instanceof BT&&p.trigger.G!==u&&y.push(p);Z.call(L,h,g.l(y));h.length&&qZ(this.G(),h)};
U7.prototype.hC=function(u){for(var h=[],L=h.push,Z=L.apply,y=[],R=g.C(this.cJ.values()),p=R.next();!p.done;p=R.next()){p=p.value;var J=p.trigger;J instanceof BT&&J.G===u&&y.push(p)}Z.call(L,h,g.l(y));h.length&&qZ(this.G(),h)};g.P(GL,g.m);g.K=GL.prototype;g.K.eh=function(u,h,L,Z){if(this.cJ.has(h.triggerId))throw new b("Tried to register duplicate trigger for slot.");var y="adtriggercuerange:"+h.triggerId;if(h instanceof Ny)H6V(this,u,h,L,Z,y,h.G.start,h.G.end,h.l$,h.visible);else if(h instanceof QL)H6V(this,u,h,L,Z,y,0x7ffffffffffff,0x8000000000000,h.l$,h.visible);else throw new b("Incorrect TriggerType: Tried to register trigger of type "+h.triggerType+" in CueRangeTriggerAdapter");};
g.K.Nt=function(u){var h=this.cJ.get(u.triggerId);h&&this.bF.get().removeCueRange(h.cueRangeId);this.cJ.delete(u.triggerId)};
g.K.onCueRangeEnter=function(u){var h=ree(this,u);if(h&&(h=this.cJ.get(h)))if(g.F(jP(this.FB.get()),32))this.G.add(h.cueRangeId);else{var L=h==null?void 0:h.EE.trigger;if(L instanceof Ny||L instanceof QL){if(MK(this.context.Mi.get())){var Z=h.EE.slot,y=h.EE.layout,R={};this.context.nV.RP("cre",(R.ca=h.EE.category,R.tt=L.triggerType,R.st=Z.slotType,R.lt=y==null?void 0:y.layoutType,R.cid=u,R))}qZ(this.N(),[h.EE])}}};
g.K.onCueRangeExit=function(u){(u=ree(this,u))&&(u=this.cJ.get(u))&&this.G.delete(u.cueRangeId)};
g.K.SS=function(u){if(fG(u,16)<0){u=g.C(this.G);for(var h=u.next();!h.done;h=u.next())this.onCueRangeEnter(h.value,!0);this.G.clear()}};
g.K.ZL=function(){};
g.K.SD=function(){};
g.K.Lr=function(){};
g.K.al=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(){};
g.K.Ou=function(){};
g.K.Yl=function(){};
g.K.KH=function(){};
g.K.H_=function(){};
g.K.SZ=function(){};
g.K.onFullscreenToggled=function(){};
g.K.Wo=function(){};
g.K.J2=function(){};
g.K.Bx=function(){};
g.K.onVolumeChange=function(){};
g.K.qT=function(){};
g.K.h2=function(){};g.P(H6,g.m);g.K=H6.prototype;
g.K.eh=function(u,h,L,Z){if(this.N.has(h.triggerId)||this.X.has(h.triggerId))throw new b("Tried to re-register the trigger.");u=new tL(u,h,L,Z);if(u.trigger instanceof o0)this.N.set(u.trigger.triggerId,u);else if(u.trigger instanceof qy)this.X.set(u.trigger.triggerId,u);else throw new b("Incorrect TriggerType: Tried to register trigger of type "+u.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.N.has(u.trigger.triggerId)&&u.slot.slotId===this.G&&qZ(this.B(),[u])};
g.K.Nt=function(u){this.N.delete(u.triggerId);this.X.delete(u.triggerId)};
g.K.uf=function(u){u=u.slotId;if(this.G!==u){var h=[];this.G!=null&&h.push.apply(h,g.l(BQj(this.X,this.G)));u!=null&&h.push.apply(h,g.l(BQj(this.N,u)));this.G=u;h.length&&qZ(this.B(),h)}};
g.K.JY=function(){};
g.K.Zx=function(){};g.P(r4,g.m);g.K=r4.prototype;g.K.eh=function(u,h,L,Z){if(this.cJ.has(h.triggerId))throw new b("Tried to register duplicate trigger for slot.");if(!(h instanceof rz))throw new b("Incorrect TriggerType: Tried to register trigger of type "+h.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.cJ.set(h.triggerId,new tL(u,h,L,Z))};
g.K.Nt=function(u){this.cJ.delete(u.triggerId)};
g.K.Yl=function(){};
g.K.KH=function(){};
g.K.ZL=function(){};
g.K.SD=function(){};
g.K.Lr=function(){};
g.K.al=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(){};
g.K.Ou=function(){};
g.K.H_=function(){};g.P(B6,g.m);g.K=B6.prototype;g.K.H_=function(u,h){for(var L=[],Z=g.C(this.cJ.values()),y=Z.next();!y.done;y=Z.next()){y=y.value;var R=y.trigger;R.opportunityType===u&&(R.associatedSlotId&&R.associatedSlotId!==h||L.push(y))}L.length&&qZ(this.G(),L)};
g.K.eh=function(u,h,L,Z){if(this.cJ.has(h.triggerId))throw new b("Tried to register duplicate trigger for slot.");if(!(h instanceof t9f))throw new b("Incorrect TriggerType: Tried to register trigger of type "+h.triggerType+" in OpportunityEventTriggerAdapter");this.cJ.set(h.triggerId,new tL(u,h,L,Z))};
g.K.Nt=function(u){this.cJ.delete(u.triggerId)};
g.K.ZL=function(){};
g.K.SD=function(){};
g.K.Lr=function(){};
g.K.al=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(){};
g.K.Ou=function(){};
g.K.Yl=function(){};
g.K.KH=function(){};g.P(zL,g.m);g.K=zL.prototype;g.K.eh=function(u,h,L,Z){u=new tL(u,h,L,Z);if(h instanceof T$||h instanceof UL||h instanceof Yf||h instanceof z$||h instanceof abe){if(this.cJ.has(h.triggerId))throw new b("Tried to register duplicate trigger for slot.");this.cJ.set(h.triggerId,u);L=L.slotId;u=this.X.has(L)?this.X.get(L):new Set;u.add(h);this.X.set(L,u)}else throw new b("Incorrect TriggerType: Tried to register trigger of type "+h.triggerType+" in PrefetchTriggerAdapter");};
g.K.Nt=function(u){this.cJ.delete(u.triggerId)};
g.K.ZL=function(u){var h=u.slotId;if(this.X.has(h)){u=0;var L=new Set;h=g.C(this.X.get(h));for(var Z=h.next();!Z.done;Z=h.next())if(Z=Z.value,L.add(Z.triggerId),Z instanceof UL&&Z.breakDurationMs){u=Z.breakDurationMs;break}ma(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",u,L)}};
g.K.SD=function(){};
g.K.Lr=function(){};
g.K.al=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(){};
g.K.Ou=function(){};
g.K.Yl=function(){};
g.K.KH=function(){};
g.K.H_=function(){};
g.K.Le=function(u){if(this.G){this.N&&this.N.stop();this.B&&g.kK(this.B);u=u.jS*1E3+1E3;for(var h=0,L=g.C(this.cJ.values()),Z=L.next();!Z.done;Z=L.next())Z=Z.value.trigger,Z instanceof T$&&Z.breakDurationMs<=u&&Z.breakDurationMs>h&&(h=Z.breakDurationMs);u=h;if(u>0)return ma(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",u,new Set,!0),ma(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",u,new Set,!1),!0}return!1};
g.K.Bg=function(){};
g.K.Zz=function(u){this.G&&this.G.contentCpn!==u?(Jk("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:u,fetchInstructionsCpn:this.G.contentCpn}),d4(this)):mt1(this)};
g.K.hC=function(u){this.G&&this.G.contentCpn!==u&&Jk("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:u,fetchInstructionsCpn:this.G.contentCpn},!0);d4(this)};
g.K.Oz=function(u){var h=this;if(this.G)Jk("Unexpected multiple fetch instructions for the current content");else{this.G=u;u=VNi(u);this.N=new g.EM(function(){mt1(h)},u?u:6E5);
this.N.start();this.B=new g.EM(function(){h.G&&(h.N&&(h.N.stop(),h.N.start()),z7a(h,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},dtw(this.G));
u=this.FB.get().getCurrentTimeSec(1,!1);for(var L=g.C(this.fW.get().H5),Z=L.next();!Z.done;Z=L.next())Z=Z.value,bQ(this.cX.get(),"nocache","ct."+Date.now()+";cmt."+u+";d."+Z.jS.toFixed(3)+";tw."+(Z.startSecs-u)+";cid."+Z.identifier+";")}};
g.K.Ni=function(){g.m.prototype.Ni.call(this);d4(this)};g.P(VG,g.m);g.K=VG.prototype;g.K.eh=function(u,h,L,Z){if(this.cJ.has(h.triggerId))throw new b("Tried to register duplicate trigger for slot.");if(!(h instanceof $f))throw new b("Incorrect TriggerType: Tried to register trigger of type "+h.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.cJ.set(h.triggerId,new tL(u,h,L,Z));u=this.G.has(h.triggeringLayoutId)?this.G.get(h.triggeringLayoutId):new Set;u.add(h);this.G.set(h.triggeringLayoutId,u)};
g.K.Nt=function(u){this.cJ.delete(u.triggerId);if(!(u instanceof $f))throw new b("Incorrect TriggerType: Tried to unregister trigger of type "+u.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var h=this.N.get(u.triggerId);h&&(h.dispose(),this.N.delete(u.triggerId));if(h=this.G.get(u.triggeringLayoutId))h.delete(u),h.size===0&&this.G.delete(u.triggeringLayoutId)};
g.K.ZL=function(){};
g.K.SD=function(){};
g.K.Lr=function(){};
g.K.al=function(){};
g.K.b2=function(){};
g.K.iS=function(){};
g.K.Ho=function(){};
g.K.lS=function(){};
g.K.Ou=function(){};
g.K.H_=function(){};
g.K.Yl=function(u,h){var L=this;if(this.G.has(h.layoutId)){u=this.G.get(h.layoutId);u=g.C(u);var Z=u.next();for(h={};!Z.done;h={LS:void 0},Z=u.next())h.LS=Z.value,Z=new g.EM(function(y){return function(){var R=L.cJ.get(y.LS.triggerId);qZ(L.X(),[R])}}(h),h.LS.durationMs),Z.start(),this.N.set(h.LS.triggerId,Z)}};
g.K.KH=function(){};g.P(nO,g.m);nO.prototype.eh=function(u,h,L,Z){if(this.cJ.has(h.triggerId))throw new b("Tried to register duplicate trigger for slot.");if(!(h instanceof PT))throw new b("Incorrect TriggerType: Tried to register trigger of type "+h.triggerType+" in VideoTransitionTriggerAdapter.");this.cJ.set(h.triggerId,new tL(u,h,L,Z))};
nO.prototype.Nt=function(u){this.cJ.delete(u.triggerId)};a7.prototype.B8=function(u){return u.kind==="AD_PLACEMENT_KIND_START"};g.P(W6,g.m);g.K=W6.prototype;g.K.logEvent=function(u){this.K5(u)};
g.K.gZ=function(u,h,L){this.K5(u,void 0,void 0,void 0,h,void 0,void 0,void 0,h.adSlotLoggingData,void 0,void 0,L)};
g.K.Xk=function(u,h,L,Z){this.K5(u,void 0,void 0,void 0,h,L?L:void 0,void 0,void 0,h.adSlotLoggingData,L?L.adLayoutLoggingData:void 0,void 0,Z)};
g.K.UR=function(u,h,L,Z){af(this.Mi.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+u,"trigger:",L,"slot:",h,"layout:",Z);pE(this.G.get())&&this.K5(u,void 0,void 0,void 0,h,Z?Z:void 0,void 0,L,h.adSlotLoggingData,Z?Z.adLayoutLoggingData:void 0)};
g.K.oJ=function(u,h,L,Z,y){this.K5(u,h,L,Z,void 0,void 0,void 0,void 0,void 0,void 0,void 0,y)};
g.K.l_=function(u,h,L,Z){this.K5("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,L,Z,void 0,void 0,L.adSlotLoggingData,Z?Z.adLayoutLoggingData:void 0,{errorType:u,errorMessage:h})};
g.K.K5=function(u,h,L,Z,y,R,p,J,O,f,D,c){var I=this;c=c===void 0?0:c;af(this.Mi.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+u,"slot:",y,"layout:",R,"ping:",p,"Opportunity:",{opportunityType:h,associatedSlotId:L,c1H:Z,Ew7:J,adSlotLoggingData:O,adLayoutLoggingData:f});try{var A=function(){if(!I.Mi.get().D.L().j("html5_disable_client_tmp_logs")&&u!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){u||Jk("Empty PACF event type",y,R);var x=pE(I.G.get()),Q={eventType:u,eventOrder:++I.eventCount},S={};
y&&(S.slotData=Rf(x,y));R&&(S.layoutData=SZj(x,R));p&&(S.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:p.G.serializedAdPingMetadata,pingIndex:p.index});J&&(S.triggerData=yr(J.trigger,J.category));h&&(S.opportunityData=X3e(x,h,L,Z));x={organicPlaybackContext:{contentCpn:fJ(I.Eg.get(),1).clientPlaybackNonce}};x.organicPlaybackContext.isLivePlayback=fJ(I.Eg.get(),1).bP;var v;x.organicPlaybackContext.isMdxPlayback=(v=fJ(I.Eg.get(),1))==null?void 0:v.isMdxPlayback;
var T;if((T=fJ(I.Eg.get(),1))==null?0:T.daiEnabled)x.organicPlaybackContext.isDaiContent=!0;var U;if(v=(U=fJ(I.Eg.get(),2))==null?void 0:U.clientPlaybackNonce)x.adVideoPlaybackContext={adVideoCpn:v};x&&(S.externalContext=x);Q.adClientData=S;O&&(Q.serializedSlotAdServingData=O.serializedSlotAdServingDataEntry);f&&(Q.serializedAdServingData=f.serializedAdServingDataEntry);D&&(Q.errorInfo=D);g.pM("adsClientStateChange",{adsClientEvent:Q})}};
c&&c>0?g.bw(g.k9(),function(){return A()},c):A()}catch(x){af(this.Mi.get(),"html5_log_pacf_logging_errors")&&g.bw(g.k9(),function(){Jk(x instanceof Error?x:String(x),y,R,{pacf_message:"exception during pacf logging"})})}};var QF8=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.P(FN,W6);g.K=FN.prototype;
g.K.gZ=function(u,h,L){W6.prototype.gZ.call(this,u,h,L);MK(this.Mi.get())&&(L={},this.context.nV.RP("pacf",(L.et=u,L.st=h.slotType,L.si=h.slotId,L)))};
g.K.Xk=function(u,h,L,Z){var y=QF8.has(u);W6.prototype.Xk.call(this,u,h,L,Z);MK(this.Mi.get(),y)&&(Z={},this.context.nV.RP("pacf",(Z.et=u,Z.st=h.slotType,Z.si=h.slotId,Z.lt=L==null?void 0:L.layoutType,Z.li=L==null?void 0:L.layoutId,Z.p_ac=L==null?void 0:L.layoutId,Z)))};
g.K.oJ=function(u,h,L,Z,y){W6.prototype.oJ.call(this,u,h,L,Z,y);MK(this.Mi.get())&&(L={},this.context.nV.RP("pacf",(L.et=u,L.ot=h,L.ss=Z==null?void 0:Z.length,L)))};
g.K.UR=function(u,h,L,Z){W6.prototype.UR.call(this,u,h,L,Z);if(MK(this.Mi.get())){var y={};this.context.nV.RP("pacf",(y.et=u,y.tt=L.trigger.triggerType,y.tc=L.category,y.st=h.slotType,y.si=h.slotId,y.lt=Z==null?void 0:Z.layoutType,y.li=Z==null?void 0:Z.layoutId,y.p_ac=Z==null?void 0:Z.layoutId,y))}};
g.K.l_=function(u,h,L,Z){W6.prototype.l_.call(this,u,h,L,Z);if(MK(this.Mi.get(),!0)){var y={};this.context.nV.RP("perror",(y.ert=u,y.erm=h,y.st=L.slotType,y.si=L.slotId,y.lt=Z==null?void 0:Z.layoutType,y.li=Z==null?void 0:Z.layoutId,y.p_ac=Z==null?void 0:Z.layoutId,y))}};
g.K.K5=function(u,h,L,Z,y,R,p,J,O,f,D){if(g.SM(this.Mi.get().D.L())){var c=this.Mi.get();c=g.Jl(c.D.L().experiments,"H5_async_logging_delay_ms")}else c=void 0;W6.prototype.K5.call(this,u,h,L,Z,y,R,p,J,O,f,D,c)};bm.prototype.clear=function(){this.G.clear()};g4.prototype.resolve=function(u){E7(this,u)};
g4.prototype.reject=function(u){kT(this,u)};
g4.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}};
g4.prototype.wait=function(){var u=this;return function L(){return csn(L,function(Z){if(Z.G==1)return g.l1(Z,2),g.N(Z,{n9:u},4);if(Z.G!=2)return Z.return(Z.N);g.vi(Z);return g.qL(Z,0)})}()};
var OJb=$e(function(u){return up(u)?u instanceof g4:!1});var J_=window.NnB||"en";cK.prototype.RO=function(u){this.client=u};
cK.prototype.G=function(){this.clear();this.csn=g.S9()};
cK.prototype.clear=function(){this.X.clear();this.N.clear();this.B.clear();this.csn=null};A_.prototype.RO=function(u){g.EC(Id().RO).bind(Id())(u)};
A_.prototype.clear=function(){g.EC(Id().clear).bind(Id())()};g.K=xg.prototype;g.K.RO=function(u){this.client=u};
g.K.Jw=function(u,h){var L=this;h=h===void 0?{}:h;g.EC(function(){var Z,y,R,p=((Z=g.n(u==null?void 0:u.commandMetadata,g.M9))==null?void 0:Z.rootVe)||((y=g.n(u==null?void 0:u.commandMetadata,d73))==null?void 0:(R=y.screenVisualElement)==null?void 0:R.uiType);if(p){Z=g.n(u==null?void 0:u.commandMetadata,Zwy);if(Z==null?0:Z.parentTrackingParams){var J=g.is(Z.parentTrackingParams);if(Z.parentCsn)var O=Z.parentCsn}else h.clickedVisualElement?J=h.clickedVisualElement:u.clickTrackingParams&&(J=g.is(u.clickTrackingParams));
a:{Z=g.n(u,g.wC);y=g.n(u,EDK);if(Z){if(y=LqR(Z,"VIDEO")){Z={token:y,videoId:Z.videoId};break a}}else if(y&&(Z=LqR(y,"PLAYLIST"))){Z={token:Z,playlistId:y.playlistId};break a}Z=void 0}h=Object.assign({},{cttAuthInfo:Z,parentCsn:O},h);if(g.MI("expectation_logging")){var f;h.loggingExpectations=((f=g.n(u==null?void 0:u.commandMetadata,d73))==null?void 0:f.loggingExpectations)||void 0}Cn(L,p,J,h)}else g.G3(new g.aO("Error: Trying to create a new screen without a rootVeType",u))})()};
g.K.clickCommand=function(u,h,L){u=u.clickTrackingParams;L=L===void 0?0:L;u?(L=g.S9(L===void 0?0:L))?(OMn(this.client,L,g.is(u),h),h=!0):h=!1:h=!1;return h};
g.K.stateChanged=function(u,h,L){this.visualElementStateChanged(g.is(u),h,L===void 0?0:L)};
g.K.visualElementStateChanged=function(u,h,L){L=L===void 0?0:L;L===0&&this.N.has(L)?this.S.push([u,h]):Kqn(this,u,h,L)};lp.prototype.fetch=function(u,h,L){var Z=this,y=fFL(u,h,L);return new Promise(function(R,p){function J(){if(L==null?0:L.h9)try{var f=Z.handleResponse(u,y.status,y.response,L);R(f)}catch(D){p(D)}else R(Z.handleResponse(u,y.status,y.response,L))}
y.onerror=J;y.onload=J;var O;y.send((O=h.body)!=null?O:null)})};
lp.prototype.handleResponse=function(u,h,L,Z){L=L.replace(")]}'","");try{var y=JSON.parse(L)}catch(R){g.G3(new g.aO("JSON parsing failed after XHR fetch",u,h,L));if((Z==null?0:Z.h9)&&L)throw new g.gT(1,"JSON parsing failed after XHR fetch");y={}}h!==200&&(g.G3(new g.aO("XHR API fetch failed",u,h,L)),y=Object.assign({},y,{errorMetadata:{status:h}}));return y};SU.getInstance=function(){var u=g.wn("ytglobal.storage_");u||(u=new SU,g.nV("ytglobal.storage_",u));return u};
SU.prototype.estimate=function(){var u,h,L;return g.G(function(Z){u=navigator;return((h=u.storage)==null?0:h.estimate)?Z.return(u.storage.estimate()):((L=u.webkitTemporaryStorage)==null?0:L.queryUsageAndQuota)?Z.return(DZR()):Z.return()})};
g.nV("ytglobal.storageClass_",SU);y3.prototype.zz=function(u){this.handleError(u)};
y3.prototype.logEvent=function(u,h){switch(u){case "IDB_DATA_CORRUPTED":g.MI("idb_data_corrupted_killswitch")||this.G("idbDataCorrupted",h);break;case "IDB_UNEXPECTEDLY_CLOSED":this.G("idbUnexpectedlyClosed",h);break;case "IS_SUPPORTED_COMPLETED":g.MI("idb_is_supported_completed_killswitch")||this.G("idbIsSupportedCompleted",h);break;case "QUOTA_EXCEEDED":IFj(this,h);break;case "TRANSACTION_ENDED":this.X&&Math.random()<=.1&&this.G("idbTransactionEnded",h);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":u=
Object.assign({},h,{hasWindowUnloaded:this.N}),this.G("idbTransactionAborted",u)}};var ak={},bmf=g.kw("yt-player-local-media",{wC:(ak.index={wN:2},ak.media={wN:2},ak.captions={wN:5},ak),shared:!1,upgrade:function(u,h){h(2)&&(g.Tr(u,"index"),g.Tr(u,"media"));h(5)&&g.Tr(u,"captions");h(6)&&(Yw(u,"metadata"),Yw(u,"playerdata"))},
version:5});var ljg={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},$v;a:{var tU=g.N7();tU=tU.toLowerCase();if(g.v1(tU,"android")){var SY8=tU.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(SY8){var XvY=parseFloat(SY8[1]);if(XvY<100){$v=XvY;break a}}var vtc=tU.match("("+Object.keys(ljg).join("|")+")");$v=vtc?ljg[vtc[0]]:0}else $v=void 0}var SJ=$v,l9=SJ>=0;var jUa=window;var Ali=fv(function(){var u,h;return(h=(u=window).matchMedia)==null?void 0:h.call(u,"(prefers-reduced-motion: reduce)").matches});var vK;g.X9=new qQ;vK=0;var qm={uj:function(u,h){var L=u[0];u[0]=u[h%u.length];u[h%u.length]=L},
U7:function(u,h){u.splice(0,h)},
V2:function(u){u.reverse()}};var ItL=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var sf=Sif()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.$w?!0:!1;var Whi={D$w:"adunit",HVa:"detailpage",mGX:"editpage",GGa:"embedded",j5i:"leanback",HYa:"previewpage",qHI:"profilepage",YO:"unplugged",sQd:"playlistoverview",oD7:"sponsorshipsoffer",vDI:"shortspage",UGH:"handlesclaiming",xtd:"immersivelivepage",UTg:"creatormusic",mta:"immersivelivepreviewpage",X7y:"admintoolyurt",FjA:"shortsaudiopivot",EBH:"consumption"};var W8,qYr,Nl;W8={};g.BK=(W8.STOP_EVENT_PROPAGATION="html5-stop-propagation",W8.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",W8.IV_DRAWER_OPEN="ytp-iv-drawer-open",W8.MAIN_VIDEO="html5-main-video",W8.VIDEO_CONTAINER="html5-video-container",W8.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",W8.HOUSE_BRAND="house-brand",W8);qYr={};Nl=(qYr.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",qYr.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",qYr);var Nie={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var rcb={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},B1b={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"},fHY={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var AEL={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.t_.prototype.getLanguageInfo=function(){return this.tM};
g.t_.prototype.getXtags=function(){if(!this.xtags){var u=this.id.split(";");u.length>1&&(this.xtags=u[1])}return this.xtags};
g.t_.prototype.toString=function(){return this.tM.name};
g.t_.prototype.getLanguageInfo=g.t_.prototype.getLanguageInfo;WK.prototype.ys=function(u){return this.N===u.N&&this.G===u.G&&this.X===u.X&&this.reason===u.reason&&(!bp||this.G3===u.G3)};
WK.prototype.isLocked=function(){return this.X&&!!this.N&&this.N===this.G};
WK.prototype.compose=function(u){if(u.X&&Eg(u))return Hu;if(u.X||Eg(this))return u;if(this.X||Eg(u))return this;var h=this.N&&u.N?Math.max(this.N,u.N):this.N||u.N,L=this.G&&u.G?Math.min(this.G,u.G):this.G||u.G;h=Math.min(h,L);var Z=0;bp&&(Z=this.G3!==0&&u.G3!==0?Math.min(this.G3,u.G3):this.G3===0?u.G3:this.G3);return bp&&h===this.N&&L===this.G&&Z===this.G3||!bp&&h===this.N&&L===this.G?this:bp?new WK(h,L,!1,L===this.G&&Z===this.G3?this.reason:u.reason,Z):new WK(h,L,!1,L===this.G?this.reason:u.reason)};
WK.prototype.B=function(u){return!u.video||bp&&this.G3!==0&&this.G3<u.G3?!1:mFn(this,u.video.quality)};
var T$y=g.F9("auto","hd1080",!1,"l"),jvl=g.F9("auto","large",!1,"l"),Hu=g.F9("auto","auto",!1,"p"),bp=!1;j5.prototype.dn=function(u){u=u||Hu;for(var h=g.KN(this.videoInfos,function(p){return u.B(p)}),L=[],Z={},y=0;y<h.length;y++){var R=h[y].video;
Z[R.quality]||(L.push(R),Z[R.quality]=!0)}return L};
j5.prototype.ZR=function(u){u=u||Hu;return g.KN(this.videoInfos,function(h){return u.B(h)})};
j5.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var jnn=new Set(["356"]);g.P(hD,g.m);hD.prototype.Ni=function(){g.m.prototype.Ni.call(this)};g.cQ.prototype.set=function(u,h){this.G[u]!==h&&(this.G[u]=h,this.url="")};
g.cQ.prototype.get=function(u){I3(this);return this.G[u]||null};
g.cQ.prototype.VQ=function(){this.url||(this.url=pXn(this));return this.url};
g.cQ.prototype.clone=function(){var u=new g.cQ(this.N,this.B);u.scheme=this.scheme;u.path=this.path;u.X=this.X;u.G=g.No(this.G);u.url=this.url;return u};
var R61=[dBf];g.K=g.QT.prototype;g.K.j1=function(u){this.segments.push(u)};
g.K.i_=function(u){return!!this.Pb(u)};
g.K.getDuration=function(u){return(u=this.Pb(u))?u.duration:0};
g.K.kQ=function(u){return this.getDuration(u)};
g.K.hL=function(){return 0};
g.K.Sw=function(){return this.segments.length?this.segments[0].yA:-1};
g.K.Nr=function(u){return(u=this.Pb(u))?u.ingestionTime:NaN};
g.K.Uk=function(){return this.segments.length?this.segments[this.segments.length-1].yA:-1};
g.K.lH=function(u){return this.Uk()===u&&!this.N&&u>=0};
g.K.fA=function(){var u=this.segments[this.segments.length-1];return u?u.endTime:NaN};
g.K.yF=function(){return this.segments[0].startTime};
g.K.bK=function(){return this.segments.length};
g.K.oQ=function(){return 0};
g.K.K0=function(u){return(u=this.DB(u))?u.yA:-1};
g.K.KG=function(u){return(u=this.Pb(u))?u.sourceURL:""};
g.K.getStartTime=function(u){return(u=this.Pb(u))?u.startTime:0};
g.K.eU=function(u){return this.getStartTime(u)+this.getDuration(u)};
g.K.rR=LV(1);g.K.isLoaded=function(){return this.segments.length>0};
g.K.Pb=function(u){if(this.G&&this.G.yA===u)return this.G;u=g.Kw(this.segments,new i0(u,0,0,0,""),function(h,L){return h.yA-L.yA});
return this.G=u>=0?this.segments[u]:null};
g.K.DB=function(u){if(this.G&&this.G.startTime<=u&&u<this.G.startTime+this.G.duration)return this.G;u=g.Kw(this.segments,{startTime:u},function(h,L){return h.startTime-L.startTime});
return this.G=u>=0?this.segments[u]:this.segments[Math.max(0,-u-2)]};
g.K.append=function(u){if(u.length)if(u=g.h8(u),this.segments.length){var h=this.segments.length?g.tu(this.segments).endTime:0,L=u[0].yA-this.Uk();L>1&&kYn(this.segments);for(L=L>0?0:-L+1;L<u.length;L++){var Z=u[L];Z.startTime=h;Z.endTime=Z.startTime+Z.duration;h+=u[L].duration;this.segments.push(u[L])}}else this.segments=u};
g.K.Hy=function(){return 0};l0.prototype.skip=function(u){this.G+=u};DKn.prototype.oF=function(){return new Uint8Array(this.data.buffer)};var F8={},YYV=(F8.predictStart="predictStart",F8.start="start",F8["continue"]="continue",F8.stop="stop",F8),cgf={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};Gn.prototype.WP=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"])};
Gn.prototype.toString=function(){for(var u="",h=g.C(Object.keys(this.data)),L=h.next();!L.done;L=h.next())L=L.value,u+=L+":"+this.data[L]+";";return u};$a.prototype.Gw=function(){var u=this.pos;this.pos=0;var h=!1;try{b0(this,440786851)&&(this.pos=0,b0(this,408125543)&&(h=!0))}catch(L){if(L instanceof RangeError)this.pos=0,h=!1,g.G3(L);else throw L;}this.pos=u;return h};RW.prototype.set=function(u,h){this.eY.get(u);this.G[u]=h;this.url=""};
RW.prototype.get=function(u){return this.G[u]||this.eY.get(u)};
RW.prototype.VQ=function(){this.url||(this.url=rga(this));return this.url};fb.prototype.NG=function(u,h){return u.mz?this.S?this.C=!0:this.C=z6j(this,u,h):z6j(this,u,h)};
fb.prototype.z8=function(u){return this.X.get(u)};
fb.prototype.ju=function(u,h){u.eY===this.G&&(this.G=pb(u,h));u.eY===this.B&&(this.B=pb(u,h))};
fb.prototype.TY=function(){return this.G!==this.B&&!this.C};Pa.prototype.c_=function(){return!!this.G&&this.index.isLoaded()};
Pa.prototype.ub=function(){return!1};
Pa.prototype.tQ=function(u){return[u]};
Pa.prototype.B5=function(u){return[u]};Cb.prototype.toString=function(){return this.start+"-"+(this.end==null?"":this.end)};g.K=lO.prototype;g.K.iW=function(){return this.B&&this.G.index.lH(this.yA)};
g.K.isEncrypted=function(){return this.G.info.isEncrypted()};
g.K.ys=function(u){return!(!u||u.G!==this.G||u.type!==this.type||(this.range&&u.range?u.range.start!==this.range.start||u.range.end!==this.range.end:u.range!==this.range)||u.yA!==this.yA||u.N!==this.N||u.X!==this.X)};
g.K.Wr=function(){return!!this.G.info.video};
g.K.M1=function(){var u=T5(this),h="";g.PM(u,function(L,Z){h+=Z+"_"+L+"_"});
return h.slice(0,-1)};oW.prototype.Fj=function(){return this.G?this.G.VQ():""};
oW.prototype.isDecorated=function(){return!!(this.G||this.B&&this.B.Im)};
oW.prototype.bu=function(){return S8(this.YI[0])};
oW.prototype.ju=function(u,h){this.D3.ju(u,h);if(this.G){this.G=pb(u,h);h=g.C(["acpns","cpn","daistate","skipsq"]);for(var L=h.next();!L.done;L=h.next())this.G.set(L.value,null)}this.requestId=u.get("req_id")};g.P(Ha,Pa);g.K=Ha.prototype;g.K.qJ=function(){return!1};
g.K.F3=function(){return!0};
g.K.At=function(){return!1};
g.K.ub=function(){return!this.T};
g.K.Y6=function(){return new oW([new lO(1,this,this.initRange,"getMetadataRequestInfo")],this.T)};
g.K.k9=function(){return null};
g.K.T9=function(u){this.OT(u);return this.F3()&&u.X&&!u.B?new oW([new lO(u.type,u.G,u.range,"liveGetNextRequestInfoBySegment",u.yA,u.startTime,u.duration,u.N+u.X,NaN,!0)],this.index.KG(u.yA)):this.F6(q8(u),!1)};
g.K.eA=function(u,h){h=h===void 0?!1:h;u=this.index.K0(u);h&&(u=Math.min(this.index.Uk(),u+1));return this.F6(u,!0)};
g.K.jl=function(u){Wa(u)};
g.K.OT=function(u){return u.X===0?!0:this.index.Uk()>u.yA&&this.index.Sw()<=u.yA+1};
g.K.update=function(u,h,L){this.index.append(u);OAn(this.index,L);u=this.index;u.N=h;u.X="update"};
g.K.c_=function(){return this.ub()?!0:Pa.prototype.c_.call(this)};
g.K.F6=function(u,h){var L=this.index.KG(u),Z=this.index.getStartTime(u),y=this.index.getDuration(u),R;h?y=R=0:R=this.info.G3>0?this.info.G3*y:1E3;return new oW([new lO(3,this,void 0,"liveCreateRequestInfoForSegment",u,Z,y,0,R,!h)],L)};
g.K.X0=function(){return this.ub()?0:this.initRange.length};
g.K.yW=function(){return!1};z5.prototype.update=function(u){var h=void 0;this.N&&(h=this.N);var L=new z5,Z=Array.from(u.getElementsByTagName("S"));if(Z.length){var y=+rO(u,"timescale")||1,R=(+Z[0].getAttribute("t")||0)/y,p=+rO(u,"startNumber")||0;L.B=R;var J=h?h.startSecs+h.jS:0,O=Date.parse(LxL(rO(u,"yt:segmentIngestTime")))/1E3;L.T=u.parentElement.tagName==="SegmentTemplate";L.T&&(L.V=rO(u,"media"));u=h?p-h.yA:1;L.C=u>0?0:-u+1;u=g.C(Z);for(Z=u.next();!Z.done;Z=u.next()){Z=Z.value;for(var f=+Z.getAttribute("d")/y,D=(+Z.getAttribute("yt:sid")||
0)/y,c=+Z.getAttribute("r")||0,I=0;I<=c;I++)if(h&&p<=h.yA)p++;else{var A=new jAe(p,J,f,O+D,R);L.G.push(A);var x=Z;var Q=y,S=A.startSecs;A=x.getAttribute("yt:cuepointTimeOffset");var v=x.getAttribute("yt:cuepointDuration");if(A&&v){A=Number(A);S=-A/Q+S;Q=Number(v)/Q;v=x.getAttribute("yt:cuepointContext")||null;var T=x.getAttribute("yt:cuepointIdentifier")||"";x=x.getAttribute("yt:cuepointEvent")||"";x=new N6(S,Q,v,T,YYV[x]||"unknown",A)}else x=null;x&&L.X.push(x);p++;J+=f;R+=f;O+=f+D}}L.G.length&&
(L.N=g.tu(L.G))}this.C=L.C;this.N=L.N||this.N;g.Lw(this.G,L.G);g.Lw(this.X,L.X);this.T=L.T;this.V=L.V;this.B===-1&&(this.B=L.getStreamTimeOffset())};
z5.prototype.getStreamTimeOffset=function(){return this.B===-1?0:this.B};g.P(dO,g.QT);g.K=dO.prototype;g.K.hL=function(){return this.pB};
g.K.i_=function(u,h){u=VB(this,u);return u>=0&&(h||!this.segments[u].pending)};
g.K.Sw=function(){return this.Ty?this.segments.length?this.DB(this.yF()).yA:-1:g.QT.prototype.Sw.call(this)};
g.K.yF=function(){if(this.Ph)return 0;if(!this.Ty)return g.QT.prototype.yF.call(this);if(!this.segments.length)return 0;var u=Math.max(g.tu(this.segments).endTime-this.Zr,0);return this.vr>0&&this.DB(u).yA<this.vr?this.Pb(this.vr).startTime:u};
g.K.fA=function(){if(this.JT&&this.Hb&&this.Hb>0)return this.Hb/1E3;if(!this.segments.length)return g.QT.prototype.fA.call(this);var u=this.Uk();if(!this.Ty||u<=this.segments[this.segments.length-1].yA)u=this.segments[this.segments.length-1];else{var h=this.segments[this.segments.length-1];u=new i0(u,Math.max(0,h.startTime-(h.yA-u)*this.pB),this.pB,0,"sq/"+u,void 0,void 0,!0)}return this.Ph?Math.min(this.Zr,u.endTime):u.endTime};
g.K.bK=function(){return this.Ty?this.segments.length?this.Uk()-this.Sw()+1:0:g.QT.prototype.bK.call(this)};
g.K.Uk=function(){var u=Math.min(this.w2,Math.max(g.QT.prototype.Uk.call(this),this.TB)),h=this.Zr*1E3;h=this.Hb>0&&this.Hb<h;this.Ph&&this.Zr>0&&this.TB>0&&!h&&(h=this.DB(this.Zr))&&(u=Math.min(h.yA-1,u));return u};
g.K.tx=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.K.j1=function(u){var h=VB(this,u.yA);if(h>=0)this.segments[h]=u;else if(this.segments.splice(-(h+1),0,u),this.yH&&u.yA%(300/this.pB)===0){var L=this.segments[0].yA,Z=Math.floor(this.yH/this.pB);u=u.yA-Z;h=-(h+1)-Z;h>0&&u>L&&(this.segments=this.segments.slice(h))}};
g.K.A8=function(){return this.TB};
g.K.lH=function(u){return m7?!this.N&&u>=0&&this.Uk()<=u:g.QT.prototype.lH.call(this,u)};
g.K.DB=function(u){if(!this.Ty)return g.QT.prototype.DB.call(this,u);if(!this.segments.length)return null;var h=this.segments[this.segments.length-1];if(u<this.segments[0].startTime)h=Math.max(0,this.segments[0].yA-Math.ceil((this.segments[0].startTime-u)/this.pB));else if(u>=h.endTime)h=h.yA+Math.floor((u-h.endTime)/this.pB+1);else{h=J8(this.segments,function(Z){return u<Z.startTime?-1:u>=Z.endTime?1:0});
if(h>=0)return this.segments[h];var L=-(h+1);h=this.segments[L-1];L=this.segments[L];h=Math.floor((u-h.endTime)/((L.startTime-h.endTime)/(L.yA-h.yA-1))+1)+h.yA}return this.Pb(h)};
g.K.Pb=function(u){if(!this.Ty)return g.QT.prototype.Pb.call(this,u);if(!this.segments.length)return null;var h=VB(this,u);if(h>=0)return this.segments[h];var L=-(h+1);h=this.pB;if(L===0)var Z=Math.max(0,this.segments[0].startTime-(this.segments[0].yA-u)*h);else L===this.segments.length?(Z=this.segments[this.segments.length-1],Z=Z.endTime+(u-Z.yA-1)*h):(Z=this.segments[L-1],h=this.segments[L],h=(h.startTime-Z.endTime)/(h.yA-Z.yA-1),Z=Z.endTime+(u-Z.yA-1)*h);return new i0(u,Z,h,0,"sq/"+u,void 0,void 0,
!0)};
var m7=!1;g.P(nb,Ha);g.K=nb.prototype;g.K.At=function(){return!0};
g.K.c_=function(){return!0};
g.K.OT=function(u){return this.F3()&&u.X&&!u.B||!u.G.index.lH(u.yA)};
g.K.Y6=function(){};
g.K.eA=function(u,h){return typeof u!=="number"||isFinite(u)?Ha.prototype.eA.call(this,u,h===void 0?!1:h):new oW([new lO(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.AS,void 0,this.AS*this.info.G3)],"")};
g.K.F6=function(u,h){var L=L===void 0?!1:L;if(this.index.i_(u))return Ha.prototype.F6.call(this,u,h);var Z=this.index.getStartTime(u),y=Math.round(this.AS*this.info.G3),R=this.AS;h&&(R=y=0);return new oW([new lO(L?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",u,Z,R,void 0,y,!h)],u>=0?"sq/"+u:"")};g.P(s4,Pa);g.K=s4.prototype;g.K.qJ=function(){return!1};
g.K.F3=function(){return!1};
g.K.At=function(){return!1};
g.K.Y6=function(){return new oW([new lO(1,this,void 0,"otfInit")],this.T)};
g.K.k9=function(){return null};
g.K.T9=function(u){this.OT(u);return fIV(this,q8(u),!1)};
g.K.eA=function(u,h){h=h===void 0?!1:h;u=this.index.K0(u);h&&(u=Math.min(this.index.Uk(),u+1));return fIV(this,u,!0)};
g.K.jl=function(u){u.info.type===1&&(this.G||(this.G=Mj(u.G)),u.N&&u.N.uri==="http://youtube.com/streaming/otf/durations/112015"&&DOL(this,u.N))};
g.K.OT=function(u){return u.X===0?!0:this.index.Uk()>u.yA&&this.index.Sw()<=u.yA+1};
g.K.X0=function(){return 0};
g.K.yW=function(){return!1};wO.prototype.Bh=function(){return this.G.Bh()};g.K=g.FG.prototype;g.K.i_=function(u){return u<=this.Uk()};
g.K.oQ=function(u){return this.offsets[u]};
g.K.getStartTime=function(u){return this.startTicks[u]/this.G};
g.K.eU=function(u){return this.getStartTime(u)+this.getDuration(u)};
g.K.rR=LV(0);g.K.Nr=function(){return NaN};
g.K.getDuration=function(u){u=this.kQ(u);return u>=0?u/this.G:-1};
g.K.kQ=function(u){return u+1<this.count||this.N?this.startTicks[u+1]-this.startTicks[u]:-1};
g.K.hL=function(){return 0};
g.K.Sw=function(){return 0};
g.K.Uk=function(){return this.count-1};
g.K.lH=function(u){return this.Uk()===u&&u>=0};
g.K.fA=function(){return this.N?this.startTicks[this.count]/this.G:NaN};
g.K.yF=function(){return 0};
g.K.bK=function(){return this.count};
g.K.KG=function(){return""};
g.K.K0=function(u){u=g.Kw(this.startTicks.subarray(0,this.count),u*this.G);return u>=0?u:Math.max(0,-u-2)};
g.K.isLoaded=function(){return this.Uk()>=0};
g.K.Hy=function(u,h){if(u>=this.Uk())return 0;var L=0;for(h=this.getStartTime(u)+h;u<this.Uk()&&h>this.getStartTime(u);u++)L=Math.max(L,QAa(this,u)/this.getDuration(u));return L};
g.K.resize=function(u){u+=2;var h=this.offsets;this.offsets=new Float64Array(u+1);var L=this.startTicks;this.startTicks=new Float64Array(u+1);for(u=0;u<this.count+1;u++)this.offsets[u]=h[u],this.startTicks[u]=L[u]};
g.K.cap=function(u,h){bO(this);this.N=!0;this.startTicks[this.count]=h;this.offsets[this.count]=u};g.P(E4,Pa);g.K=E4.prototype;g.K.Y6=function(u,h){var L=new lO(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,h),Z=[new lO(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,h),L];this.info.contentLength>0&&u&&(L=L.range.end+1,u=Math.min(u,this.info.contentLength-L),u>0&&Z.push(new lO(4,this,iO(L,u),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,h)));return new oW(Z)};
g.K.jl=function(u){if(u.info.type===1){if(this.G)return;this.G=Mj(u.G)}else if(u.info.type===2){if(this.T||this.index.Uk()>=0)return;if(g.$6(this.info)){var h=this.index,L=u.Bh();u=u.info.range.start;var Z=g.BQ(L,0,1936286840);L=lqV(Z);h.G=L.timescale;var y=L.wP;h.offsets[0]=L.m1+u+Z.size;h.startTicks[0]=y;h.N=!0;u=L.AI.length;for(Z=0;Z<u;Z++){y=h;var R=L.YXd[Z],p=L.AI[Z];y.count++;bO(y);y.offsets[y.count]=y.offsets[y.count-1]+R;y.startTicks[y.count]=y.startTicks[y.count-1]+p}}else this.T=u.Bh()}if(this.info.d1()&&
this.G&&this.T){L=new DataView(this.G.buffer);h=this.index;Z=this.T;u=this.indexRange.end;y=new $a(L);L=y;y=L.pos;R={VG:1E6,US:1E9,duration:0,Zh:0,lO:0};if(b0(L,408125543))if(R.Zh=E5(L,!0),R.lO=L.start+L.pos,b0(L,357149030)){for(p=FD(L);!tD(p);){var J=E5(p,!1);J===2807729?R.VG=gt(p):J===2807730?R.US=gt(p):J===17545?R.duration=j8(p):uO(p)}L.pos=y;L=R}else L.pos=y,L=null;else L.pos=y,L=null;if(L!==null){h.G=L.US/L.VG;y=new $a(Z);Z=y;p=L.lO;y=Z.pos;R=[];if(b0(Z,475249515)){for(J=FD(Z);b0(J,187);){var O=
FD(J);if(b0(O,179)){var f=gt(O);if(b0(O,183)){O=FD(O);for(var D=p;b0(O,241);)D=gt(O)+p;R.push({OZ:D,Rx:f})}}}if(R.length>0&&u===R[0].OZ)for(u=0;u<R.length;u++)R[u].OZ+=1;Z.pos=y;u=R}else Z.pos=y,u=null;if(u!==null){u=g.C(u);for(Z=u.next();!Z.done;Z=u.next())R=Z.value,Z=h,y=R.OZ,R=R.Rx,bO(Z),Z.offsets[Z.count]=y,Z.startTicks[Z.count]=R,Z.count++;h.cap(L.Zh+L.lO,L.duration)}}this.T=null}};
g.K.qc=function(u,h,L,Z){for(var y=[],R=u;R<=this.index.Uk();R++){var p=iO(this.index.oQ(R),QAa(this.index,R)),J=this.index.getStartTime(R),O=this.index.getDuration(R),f=Math.max(0,h-p.start),D=Math.min(p.end+1,h+L)-(p.start+f);y.push(new lO(3,this,p,"getRequestInfoForRange",R,J,O,f,D,void 0,void 0,Z));if(p.start+f+D>=h+L)break}y.length||g.UZ(new g.aO("b189619593",""+u,""+h,""+L));return new oW(y)};
g.K.tQ=function(u){for(var h=this.B5(u.info),L=u.info.range.start+u.info.N,Z=[],y=0;y<h.length;y++){var R=xW(u.G,h[y].range.start+h[y].N-L,h[y].X);Z.push(new wO(h[y],R))}return Z};
g.K.B5=function(u){for(var h=u.range.start+u.N,L=0;L<this.index.Uk()&&h>=this.index.oQ(L+1);)L++;return this.qc(L,h,u.X).YI};
g.K.OT=function(u){u.iW();return this.c_()?!0:u.range.end+1<this.info.contentLength};
g.K.k9=function(u,h){this.OT(u);if(!this.c_())return h=iO(u.range.end+1,h),h.end+1>this.info.contentLength&&(h=new Cb(h.start,this.info.contentLength-1)),new oW([new lO(4,u.G,h,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,u.clipId)]);u.type===4&&(u=this.B5(u),u=u[u.length-1]);var L=0,Z=u.range.start+u.N+u.X;u.type===3&&(u.iW(),L=u.yA,Z===u.range.end+1&&(L+=1));return this.qc(L,Z,h)};
g.K.T9=function(){return null};
g.K.eA=function(u,h,L){h=h===void 0?!1:h;u=this.index.K0(u);h&&(u=Math.min(this.index.Uk(),u+1));return this.qc(u,this.index.oQ(u),0,L)};
g.K.qJ=function(){return!0};
g.K.F3=function(){return!0};
g.K.At=function(){return!1};
g.K.X0=function(){return this.indexRange.length+this.initRange.length};
g.K.yW=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var bR={},dOn=(bR.COLOR_PRIMARIES_BT709="bt709",bR.COLOR_PRIMARIES_BT2020="bt2020",bR.COLOR_PRIMARIES_UNKNOWN=null,bR.COLOR_PRIMARIES_UNSPECIFIED=null,bR),Ep={},SFw=(Ep.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Ep.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Ep.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Ep.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Ep.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Ep.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Ep);g.kV.prototype.getName=function(){return this.name};
g.kV.prototype.getId=function(){return this.id};
g.kV.prototype.getIsDefault=function(){return this.isDefault};
g.kV.prototype.toString=function(){return this.name};
g.kV.prototype.getName=g.kV.prototype.getName;g.kV.prototype.getId=g.kV.prototype.getId;g.kV.prototype.getIsDefault=g.kV.prototype.getIsDefault;var TMR=/action_display_post/;var YFa,jh,h3;g.P(LS,g.yV);g.K=LS.prototype;g.K.isLoading=function(){return this.state===1};
g.K.qt=function(){return this.state===3};
g.K.OZA=function(u){var h=u.getElementsByTagName("Representation");if(u.getElementsByTagName("SegmentList").length>0||u.getElementsByTagName("SegmentTemplate").length>0){this.bP=this.N=!0;this.timeline||(this.timeline=new yqw);Jqi(this.timeline,u);this.publish("refresh");for(u=0;u<h.length;u++){var L=$Oi(this,h[u]);if(!this.G[L.id]){var Z=KS(Ba(h[u],"BaseURL").textContent),y=Ba(h[u],"Initialization"),R=rO(y,"sourceURL");y=M8(rO(y,"range"));this.G[L.id]=new Ha(Z,L,R,y)}L=this.G[L.id];Z=rO(h[u],"id",
"AdaptationSet");Z=Z!==""?Z:rO(h[u],"mimetype","AdaptationSet");R=this.timeline;R=R.X[L.info.id]||R.N[Z]||R.G||null;Z=R.G;!this.V&&R.getStreamTimeOffset()&&(this.V=R.getStreamTimeOffset());if(R.T){y=[];Z=g.C(Z);for(var p=Z.next();!p.done;p=Z.next()){p=p.value;var J=L.info.id,O=L.info.G3*8,f=p.yA;var D=p.startSecs;var c=R.V.split("$$");for(var I=0;I<c.length;I++)c[I]=c[I].replace("$RepresentationID$",J),c[I]=c[I].replace("$Number$",f.toString()),c[I]=c[I].replace("$Bandwidth$",O.toString()),c[I]=c[I].replace("$Time$",
D.toString());y.push(new i0(p.yA,p.startSecs,p.jS,p.G,c.join("$"),null,p.N))}Z=y}else{R=yu(Ba(h[u],"SegmentList").getElementsByTagName("SegmentURL"),R.C);y=[];for(p=0;p<R.length;p++){J=y;O=J.push;f=Z[p];D=void 0;I=R[p];c=I.getAttribute("media");if(I=I.getAttribute("mediaRange")){var A=I.split("-");A[1]&&Number(A[1])>=0?D=M8(I):c=c+"?range="+I}O.call(J,new i0(f.yA,f.startSecs,f.jS,f.G,c,D,f.N))}Z=y}L.update(Z,this.isLive,this.ZI)}Oll(this.timeline);return!0}this.duration=hTe(rO(u,"mediaPresentationDuration"));
a:{for(u=0;u<h.length;u++){R=h[u];L=$Oi(this,R);Z=KS(Ba(R,"BaseURL").textContent);y=Ba(R,"SegmentBase");R=M8(y.attributes.getNamedItem("indexRange").value);y=M8(y.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);L=new E4(Z,L,y,R);if(!L){h=!1;break a}uG(this,L)}h=!0}return h};
g.K.refresh=function(){if(!this.isLoading()&&!this.ww()){var u=g.sr(this.sourceUrl,{start_seq:Exs(this).toString()});Wxf(this,u).R5(function(){})}};
g.K.resume=function(){tie(this)};
g.K.T1=function(){if(this.isManifestless&&this.B&&Of(this))return Of(this);var u=this.G,h=!1,L=NaN,Z=NaN,y;for(y in u){var R=u[y],p=R.index;p.isLoaded()&&!WX(R.info)&&(R.B&&(h=!0),p=p.fA(),R.info.GD()&&(isNaN(L)||p<L)?L=p:R.info.Wr()&&(isNaN(Z)||p<Z)&&(Z=p))}return h||isNaN(Z)?L:Math.min(L,Z)};
g.K.yF=function(){if(this.isManifestless){if(fS(this))return fS(this);if(this.vj){var u=this.Nr(this.T1());if(u&&(u-=this.vj,u>0))return this.T1()-u}}u=this.G;for(var h in u){var L=u[h].index;if(L.isLoaded()&&!WX(u[h].info))return L.yF()}return 0};
g.K.getStreamTimeOffset=function(){return this.V};
g.K.Nr=function(u){for(var h in this.G){var L=this.G[h].index;if(L.isLoaded()){var Z=L.K0(u),y=L.Nr(Z);if(y)return y+u-L.getStartTime(Z)}}return NaN};
var PW=null,otq,CS=!((otq=navigator.mediaCapabilities)==null||!otq.decodingInfo),aIi={commentary:1,alternate:2,dub:3,main:4};var QD=new Set,Mc=new Map;lG.prototype.clone=function(u){return new lG(this.flavor,u,this.N,this.experiments)};
lG.prototype.IV=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
lG.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 N$8={},G9=(N$8.playready=["com.youtube.playready","com.microsoft.playready"],N$8.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],N$8),kv={},nH1=(kv.widevine="DRM_SYSTEM_WIDEVINE",kv.fairplay="DRM_SYSTEM_FAIRPLAY",kv.playready="DRM_SYSTEM_PLAYREADY",kv),gk={},UM8=(gk.widevine=1,gk.fairplay=2,gk.playready=3,gk);r2.prototype.eb=function(u,h){h=h===void 0?1:h;this.c6+=h;this.N+=u;u/=h;for(var L=0;L<HW.length&&!(u<HW[L]);++L)this.G[L]+=h};
r2.prototype.toString=function(){return""};
var HW=[20,100,500,2E3];g.K=pmf.prototype;g.K.isActive=function(){return!0};
g.K.qK=function(u,h){var L=this;if(h){var Z={},y;for(y in h)Z={fK:void 0,Tk:void 0},h.hasOwnProperty(y)&&(Z.fK=u.prototype[y],Z.Tk=h[y],u.prototype[y]=function(R){return function(){var p=g.NL.apply(0,arguments),J=(0,g.vC)();p=R.fK.apply(this,p);return BW(L,p,R.Tk,J)}}(Z))}};
g.K.xG=function(u,h){if(h){var L=this,Z={},y;for(y in h)Z={sB:void 0,Q9:void 0},h.hasOwnProperty(y)&&(Z.Q9=u.prototype[y],Z.sB=h[y],u.prototype[y]=function(R){return function(){var p=g.NL.apply(0,arguments),J=this,O=(0,g.vC)(),f=R.Q9.apply(J,p);return BW(L,f,null,O,function(D){return R.sB.apply(J,[D].concat(p))})}}(Z))}};
g.K.xp=function(u,h){var L=this;return function(){var Z=g.NL.apply(0,arguments),y=(0,g.vC)();Z=h.apply(null,Z);return BW(L,Z,u,y)}};
g.K.kx=function(){return new REs};
g.K.rM=function(u,h,L){L=L===void 0?1:L;h instanceof REs&&(Khb(this,u,(0,g.vC)()-h.startTimeMs,L),h.G=!0)};
g.K.G6=function(u,h){var L=(0,g.vC)();h=h();return BW(this,h,u,L)};
g.K.yV=function(){var u={},h;for(h in this.G)if(this.G.hasOwnProperty(h)){var L=this.G[h];if(L.c6===0)L=null;else{for(var Z=Math.ceil(L.c6).toFixed(0)+"."+L.N.toFixed(0),y=0;y<HW.length;++y)if(L.G[y]>0)Z+="."+HW[y].toFixed(0)+"_"+L.G[y].toFixed(0);else break;L=Z}L&&(u[h]=L)}this.G=new y0f;return u};
g.K.toString=function(){return""};g.K=f1e.prototype;g.K.isActive=function(){return!1};
g.K.qK=function(){};
g.K.xG=function(){};
g.K.xp=function(u,h){return h};
g.K.kx=function(){};
g.K.rM=function(){};
g.K.G6=function(u,h){return h()};
g.K.yV=function(){return{}};
g.K.toString=function(){return""};var ub,GiY,Ha3,roV,B$3,z8D,jQ,Hy,tG,EFY,Vo;ub=new f1e;GiY=!!+Wn("html5_enable_profiler");Ha3=!!+Wn("html5_onesie_enable_profiler");roV=!!+Wn("html5_offline_encryption_enable_profiler");B$3=!!+Wn("html5_performance_impact_profiling_timer_ms");z8D=!!+Wn("html5_drm_enable_profiler");jQ=GiY||Ha3||roV||B$3||z8D?new pmf:ub;g.nY=GiY?jQ:ub;Hy=Ha3?jQ:ub;tG=roV?jQ:ub;EFY=B$3?jQ:ub;Vo=z8D?jQ:ub;var d2;g.P(z9,g.m);
z9.prototype.initialize=function(u,h){for(var L=this,Z=g.C(Object.keys(u)),y=Z.next();!y.done;y=Z.next()){y=g.C(u[y.value]);for(var R=y.next();!R.done;R=y.next())if(R=R.value,R.ji)for(var p=g.C(Object.keys(R.ji)),J=p.next();!J.done;J=p.next()){var O=J.value;J=O;O=G9[O];!O&&this.j("html5_enable_vp9_fairplay")&&J==="fairplay"&&(O=["com.youtube.fairplay.sbdl"]);if(O){O=g.C(O);for(var f=O.next();!f.done;f=O.next())f=f.value,this.X[f]=this.X[f]||new lG(J,f,R.ji[J],this.z7.experiments),this.G[J]=this.G[J]||
{},this.G[J][R.mimeType]=!0}}}ep()&&(this.X["com.youtube.fairplay"]=new lG("fairplay","com.youtube.fairplay","",this.z7.experiments),this.j("html5_enable_vp9_fairplay")||(this.G.fairplay=this.G.fairplay||{},this.G.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.G.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.N=ZJL(h,this.useCobaltWidevine,this.j("html5_enable_safari_fairplay"),this.j("html5_enable_vp9_fairplay")).filter(function(D){return!!L.X[D]})};
z9.prototype.j=function(u){return this.z7.experiments.tB(u)};var mMu={"":"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"};CQR.prototype.j=function(u){return this.experiments.tB(u)};var bJn={RED:"red",GB7:"white"};MuR.prototype.tB=function(u){u=this.flags[u];JSON.stringify(u);return u==="true"};var l1b=Promise.resolve(),qlf=window.queueMicrotask?window.queueMicrotask.bind(window):Sll;eh.prototype.canPlayType=function(u,h){u=u.canPlayType?u.canPlayType(h):!1;ai?u=u||dMq[h]:SJ===2.2?u=u||V1b[h]:sJ()&&(u=u||ntD[h]);return!!u};
eh.prototype.isTypeSupported=function(u){return this.AB?window.cast.receiver.platform.canDisplayType(u):Y6(u)};
var V1b={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},ntD={"application/x-mpegURL":"maybe"},dMq={"application/x-mpegURL":"maybe"};g.P(FS,g.yV);FS.prototype.add=function(u,h){if(!this.items[u]&&(h.B1||h.oN||h.WY)){var L=this.items,Z=h;Object.isFrozen&&!Object.isFrozen(h)&&(Z=Object.create(h),Object.freeze(Z));L[u]=Z;this.publish("vast_info_card_add",u)}};
FS.prototype.remove=function(u){var h=this.get(u);delete this.items[u];return h};
FS.prototype.get=function(u){return this.items[u]||null};
FS.prototype.isEmpty=function(){return g.Tc(this.items)};g.P(bG,g.MQ);bG.prototype.G=function(u,h){return g.MQ.prototype.G.call(this,u,h)};
bG.prototype.N=function(u,h,L){var Z=this;return g.G(function(y){return y.G==1?g.N(y,g.MQ.prototype.N.call(Z,u,h,L),2):y.return(y.N)})};
g.P(Ef,g.ic);Ef.prototype.encrypt=function(u,h){return g.ic.prototype.encrypt.call(this,u,h)};var g2;u9.prototype.add=function(u){if(this.pos+20>this.data.length){var h=new Uint8Array(this.data.length*2);h.set(this.data);this.data=h}for(;u>31;)this.data[this.pos++]=g2[(u&31)+32],u>>=5;this.data[this.pos++]=g2[u|0]};
u9.prototype.n0=function(){return g.S4(this.data.subarray(0,this.pos))};
u9.prototype.reset=function(){this.pos=0};hz.prototype.mO=function(u,h){var L=Math.pow(this.alpha,u);this.G=h*(1-L)+L*this.G;this.N+=u};
hz.prototype.NO=function(){return this.G/(1-Math.pow(this.alpha,this.N))};LC.prototype.mO=function(u,h){for(var L=0;L<10;L++){var Z=this.G[L],y=Z+(L===0?u:0),R=1*Math.pow(2,L);if(y<=R)break;Z=Math.min(1,(y-R*.5)/Z);for(y=0;y<16;y++)R=this.values[L*16+y]*Z,this.values[(L+1)*16+y]+=R,this.G[L+1]+=R,this.values[L*16+y]-=R,this.G[L]-=R}Z=L=0;y=8192;h>8192&&(L=Math.ceil(Math.log(h/8192)/Math.log(2)),Z=8192*Math.pow(2,L-1),y=Z*2);L+2>16?this.values[15]+=u:(h=(h-Z)/(y-Z),this.values[L]+=u*(1-h),this.values[L+1]+=u*h);this.G[0]+=u};
LC.prototype.NO=function(){var u=u===void 0?this.N:u;var h=h===void 0?.02:h;var L=L===void 0?.98:L;for(var Z=this.X,y=0;y<16;y++)Z[y]=this.values[y];y=this.G[0];for(var R=1;R<11;R++){var p=this.G[R];if(p===0)break;for(var J=Math.min(1,(u-y)/p),O=0;O<16;O++)Z[O]+=this.values[R*16+O]*J;y+=p*J;if(J<1)break}for(R=u=p=0;R<16;R++){J=p+Z[R]/y;u+=Math.max(0,Math.min(J,L)-Math.max(p,h))*(R>0?8192*Math.pow(2,R-1):0);if(J>L)break;p=J}return u/(L-h)};Zr.prototype.mO=function(u,h){u=Math.min(this.G,Math.max(1,Math.round(u*this.resolution)));u+this.N>=this.G&&(this.X=!0);for(;u--;)this.values[this.N]=h,this.N=(this.N+1)%this.G;this.q9=!0};
Zr.prototype.percentile=function(u){var h=this;if(!this.X&&this.N===0)return 0;this.q9&&(g.OV(this.T,function(L,Z){return h.values[L]-h.values[Z]}),this.q9=!1);
return this.values[this.T[Math.round(u*((this.X?this.G:this.N)-1))]]||0};
Zr.prototype.NO=function(){return this.C?(this.percentile(this.B-this.C)+this.percentile(this.B)+this.percentile(this.B+this.C))/3:this.percentile(this.B)};g.P(y6,g.m);y6.prototype.VA=function(){var u;(u=this.aH)==null||u.start();if(c$(this)&&this.policy.S){var h;(h=this.pH)==null||h.Qk()}};nGe.prototype.j=function(u){return this.experiments.tB(u)};g.P(wmn,g.m);var FhL="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),j01={H0B:"caoe",SeI:"capsv",A2w:"cbrand",RJH:"cbr",NXB:"cbrver",r2a:"cchip",y27:"ccappver",c2d:"ccrv",voA:"cfrmver",IlA:"c",nVw:"cver",RId:"ctheme",AV7:"cplayer",RlB:"cmodel",DJg:"cnetwork",T77:"cos",yCB:"cosver",kg7:"cplatform",Asd:"crqyear"};g.P(H$,g.m);g.K=H$.prototype;g.K.j=function(u){return this.experiments.tB(u)};
g.K.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig};
g.K.getVideoUrl=function(u,h,L,Z,y,R,p){h={list:h};L&&(y?h.time_continue=L:h.t=L);L=p?"music.youtube.com":g.B$(this);y=L==="www.youtube.com";!R&&Z&&y?R="https://youtu.be/"+u:g.qW(this)?(R="https://"+L+"/fire",h.v=u):(R&&y?(R=this.protocol+"://"+L+"/shorts/"+u,Z&&(h.feature="share")):(R=this.protocol+"://"+L+"/watch",h.v=u),ai&&(u=ejj())&&(h.ebc=u));return g.sr(R,h)};
g.K.getVideoEmbedCode=function(u,h,L,Z){h="https://"+g.B$(this)+"/embed/"+h;Z&&(h=g.sr(h,{list:Z}));Z=L.width;L=L.height;h=bP(h);u=bP(u!=null?u:"YouTube video player");return'<iframe width="'+Z+'" height="'+L+'" src="'+h+'" title="'+(u+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')};
g.K.supportsGaplessAudio=function(){return g.TI&&!ai&&Va()>=74||g.Nc&&g.Cw(68)?!0:!1};
g.K.supportsGaplessShorts=function(){return!this.j("html5_enable_short_gapless")||this.jd||g.PC?!1:!0};
g.K.getPlayerType=function(){return this.G.cplayer};
g.K.UU=function(){return this.jx};
var yLw=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],ucR=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],LZY=[19];var h6={},KZj=(h6["140"]={numChannels:2},h6["141"]={numChannels:2},h6["251"]={audioSampleRate:48E3,numChannels:2},h6["774"]={audioSampleRate:48E3,numChannels:2},h6["380"]={numChannels:6},h6["328"]={numChannels:6},h6["773"]={},h6),LD={},RKj=(LD["1"]='video/mp4; codecs="av01.0.08M.08"',LD["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',LD["9"]='video/webm; codecs="vp9"',LD["("]='video/webm; codecs="vp9"',LD["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',LD.h='video/mp4; codecs="avc1.64001e"',
LD.H='video/mp4; codecs="avc1.64001e"',LD.o='audio/webm; codecs="opus"',LD.a='audio/mp4; codecs="mp4a.40.2"',LD.ah='audio/mp4; codecs="mp4a.40.2"',LD.mac3='audio/mp4; codecs="ac-3"; channels=6',LD.meac3='audio/mp4; codecs="ec-3"; channels=6',LD.i='audio/mp4; codecs="iamf.001.001.Opus"',LD),ZU={},pTf=(ZU["337"]={width:3840,height:2160,bitrate:3E7,fps:30},ZU["336"]={width:2560,height:1440,bitrate:15E6,fps:30},ZU["335"]={width:1920,height:1080,bitrate:75E5,fps:30},ZU["702"]={width:7680,height:4320,bitrate:4E7,
fps:60},ZU["701"]={width:3840,height:2160,bitrate:2E7,fps:60},ZU["700"]={width:2560,height:1440,bitrate:1E7,fps:60},ZU["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},ZU["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},ZU["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},ZU["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},ZU["409"]={width:1280,height:720,bitrate:1996E3,
fps:60,cryptoblockformat:"subsample"},ZU["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},ZU["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},ZU["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},ZU["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},ZU["315"]={width:3840,height:2160,bitrate:2E7,fps:60},ZU["308"]={width:2560,height:1440,bitrate:1E7,fps:60},ZU["303"]=
{width:1920,height:1080,bitrate:5E6,fps:60},ZU["302"]={width:1280,height:720,bitrate:25E5,fps:60},ZU["299"]={width:1920,height:1080,bitrate:75E5,fps:60},ZU["298"]={width:1280,height:720,bitrate:35E5,fps:60},ZU["571"]={width:7680,height:4320,bitrate:3E7,fps:60},ZU["401"]={width:3840,height:2160,bitrate:15E6,fps:60},ZU["400"]={width:2560,height:1440,bitrate:75E5,fps:60},ZU["399"]={width:1920,height:1080,bitrate:2E6,fps:60},ZU["398"]={width:1280,height:720,bitrate:1E6,fps:60},ZU["397"]={width:854,height:480,
bitrate:4E5,fps:30},ZU["396"]={width:640,height:360,bitrate:25E4,fps:30},ZU["787"]={width:1080,height:608,bitrate:2E5,fps:30},ZU["788"]={width:1080,height:608,bitrate:4E5,fps:30},ZU["313"]={width:3840,height:2160,bitrate:8E6,fps:30},ZU["271"]={width:2560,height:1440,bitrate:4E6,fps:30},ZU["248"]={width:1920,height:1080,bitrate:2E6,fps:30},ZU["247"]={width:1280,height:720,bitrate:15E5,fps:30},ZU["244"]={width:854,height:480,bitrate:52E4,fps:30},ZU["243"]={width:640,height:360,bitrate:28E4,fps:30},
ZU["137"]={width:1920,height:1080,bitrate:4E6,fps:30},ZU["136"]={width:1280,height:720,bitrate:3E6,fps:30},ZU["135"]={width:854,height:480,bitrate:1E6,fps:30},ZU["385"]={width:1920,height:1080,bitrate:6503313,fps:60},ZU["376"]={width:1280,height:720,bitrate:5706960,fps:60},ZU["384"]={width:1280,height:720,bitrate:3660979,fps:60},ZU["225"]={width:1280,height:720,bitrate:5805E3,fps:30},ZU["224"]={width:1280,height:720,bitrate:453E4,fps:30},ZU["145"]={width:1280,height:720,bitrate:2682052,fps:30},ZU);g.K=ky.prototype;g.K.getInfo=function(){return this.G};
g.K.bV=function(){return null};
g.K.VV=function(){var u=this.bV();return u?(u=g.LP(u.D3),Number(u.expire)):NaN};
g.K.Ki=function(){};
g.K.getHeight=function(){return this.G.video.height};Dys.prototype.build=function(){ALR(this);var u=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],h={};a:if(this.G)var L=this.G;else{L="";for(var Z=g.C(this.X),y=Z.next();!y.done;y=Z.next())if(y=y.value,y.tM){if(y.tM.getIsDefault()){L=y.tM.getId();break a}L||(L=y.tM.getId())}}Z=g.C(this.X);for(y=Z.next();!y.done;y=Z.next())if(y=y.value,this.C||!y.tM||y.tM.getId()===L)h[y.itag]||(h[y.itag]=[]),h[y.itag].push(y);L=g.C(this.N);for(Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,y=h[Z.G]){y=g.C(y);for(var R=y.next();!R.done;R=
y.next()){var p=u,J=p.push;R=R.value;var O="#EXT-X-MEDIA:TYPE=AUDIO,",f="YES",D="audio";if(R.tM){D=R.tM;var c=D.getId().split(".")[0];c&&(O+='LANGUAGE="'+c+'",');(this.G?this.G===D.getId():D.getIsDefault())||(f="NO");D=D.getName()}c="";Z!==null&&(c=Z.itag.toString());c=ut(this,R.url,c);O=O+('NAME="'+D+'",DEFAULT='+(f+',AUTOSELECT=YES,GROUP-ID="'))+(IQw(R,Z)+'",URI="'+(c+'"'));J.call(p,O)}}L=g.C(this.T);for(Z=L.next();!Z.done;Z=L.next())Z=Z.value,y=sFY,Z=(p=Z.tM)?'#EXT-X-MEDIA:URI="'+ut(this,Z.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+y+'",LANGUAGE="'+p.getId()+'",NAME="'+p.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,Z&&u.push(Z);L=this.T.length>0?sFY:void 0;Z=g.C(this.N);for(y=Z.next();!y.done;y=Z.next())y=y.value,J=h[y.G],p=void 0,((p=J)==null?void 0:p.length)>0&&(p=y,J=J[0],J="#EXT-X-STREAM-INF:BANDWIDTH="+(p.bitrate+J.bitrate)+',CODECS="'+(p.codecs+","+J.codecs+'",RESOLUTION=')+(p.width+"x"+p.height+',AUDIO="')+(IQw(J,p)+'",')+(L?'SUBTITLES="'+L+'",':"")+"CLOSED-CAPTIONS=NONE",p.fps>1&&(J+=
",FRAME-RATE="+p.fps),p.Yx&&(J+=",VIDEO-RANGE="+p.Yx),u.push(J),u.push(ut(this,y.url,"")));return u.join("\n")};
var sFY="text";g.P(jG,ky);jG.prototype.VV=function(){return this.expiration};
jG.prototype.bV=function(){if(!this.D3||this.D3.ww()){var u=this.N.build();u="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(u);this.D3=new za(u)}return this.D3};g.P(hV,ky);hV.prototype.bV=function(){return new za(this.N.VQ())};
hV.prototype.Ki=function(){this.N=Ck(this.N)};g.P(Lg,ky);Lg.prototype.bV=function(){return new za(this.N)};var yR={},vfV=(yR.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",yR.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",yR.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",yR);g.K=g.Zs.prototype;g.K.getId=function(){return this.id};
g.K.getName=function(){return this.name};
g.K.isServable=function(){return this.G};
g.K.VQ=function(){return this.url};
g.K.getXtags=function(){return this.xtags};
g.K.toString=function(){return this.languageCode+": "+g.y1(this)+" - "+this.vssId+" - "+(this.captionId||"")};
g.K.ys=function(u){return u?this.toString()===u.toString():!1};
g.K.ih=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Nzn={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},UyY={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},G$n=/^(\d*)_((\d*)_?(\d*))$/;var rLj={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Bzs={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var R5={},wvg=(R5.ALWAYS=1,R5.BY_REQUEST=3,R5.UNKNOWN=void 0,R5),pD={},e88=(pD.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",pD.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",pD.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",pD.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",pD);var oo1;
oo1=function(u){for(var h=Object.keys(u),L={},Z=0;Z<h.length;Z++){var y=h[Z];typeof u[y]==="function"&&(L[y]=u[y])}var R=Object.keys(L);try{Nyw(L)}catch(J){var p=J}return function(J,O){J=J===void 0?{}:J;if(p)throw p;for(var f=!1,D={},c=0;c<R.length;c++){var I=R[c],A=J[I],x=(0,L[I])(A,O);if(typeof x==="undefined")throw J=O&&O.type,Error("When called with an action of type "+(J?'"'+String(J)+'"':"(unknown type)")+', the slice reducer for key "'+I+'" 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.');D[I]=
x;f=f||x!==A}return(f=f||R.length!==Object.keys(J).length)?D:J}}({entities:function(u,h){u=u===void 0?{}:u;
return s6b(u,h)}});
g.$m=new DS;Ds.prototype.toString=function(){return this.type+this.id};g.IB.prototype.Po=function(u){u=u||"hqdefault.jpg";var h=this.Y[u];if(h)return h;if(u==="sddefault.jpg"||u==="hq720.jpg"||u==="maxresdefault.jpg")return h;if(this.G)return zg(this.z7,this.G,u)};
g.IB.prototype.Wm=function(){return this.z7.getVideoUrl(this.videoId,this.playlistId)};g.AV.prototype.Po=function(u){u||(u="hqdefault.jpg");var h=this.Y[u];return h?h:u==="pop1.jpg"||u==="pop2.jpg"||u==="sddefault.jpg"||u==="hq720.jpg"||u==="maxresdefault.jpg"?h:zg(this.z7,this.videoId,u)};
g.AV.prototype.Wm=function(u){return this.watchUrl||this.z7.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,u)};var Cg=void 0;Y2e("LMS",function(){return g.G(function(u){return u.return(g.M1())})});var SG;SG=0;g.Z0j=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;Y2e("LMDB",function(){var u,h;return g.G(function(L){if(L.G==1)return g.N(L,g.bx(),2);if(L.G!=3){u=L.N;if(!u)throw g.Mp("edd");return g.N(L,g.lt(u),3)}h=L.N;return L.return(g.oi(h,["index","media","captions"],{mode:"readonly",PJ:!0},function(Z){var y={};Z=[g.rc(Z.objectStore("index"),{},function(R){y[R.cursor.key]=R.getValue();return g.BC(R)}),
U0i(Z.objectStore("media")),U0i(Z.objectStore("captions"))];return g.Q3.all(Z).then(function(R){var p=g.C(R);p.next();R=p.next().value;p=p.next().value;return{index:y,media:yEb(R||[]),captions:p}})}))})});g.P(vu,g.yV);vu.prototype.Ni=function(){this.G&&(this.G=this.G.onload=null);g.yV.prototype.Ni.call(this)};g.K=g.oB.prototype;g.K.getHeight=function(){return this.height};
g.K.i5=LV(2);g.K.Ii=function(){return this.frameCount};
g.K.isDefault=function(){return this.X.indexOf("default")!==-1};
g.K.isLoaded=function(u){return this.loaded.has(u)};
g.K.VQ=function(u){var h=this.B;h=h.replace("$N",this.X);h=h.replace("$L",this.level.toString());h=h.replace("$M",u.toString());this.signature&&(h=g.sr(h,{sigh:this.signature}));return kk(h)};
g.K.Vd=function(u){var h=this.Ii()-1;return g.pX(this.G===0?Math.round(u*this.frameCount/this.videoLength):Math.round(u*1E3/this.G),0,h)};
g.K.jj=function(){return this.frameCount-1};
g.K.WE=function(){return this.frameCount?0:-1};
g.K.hQ=function(){};g.P(N1,vu);N1.prototype.N=function(u,h){var L=[];u=u.split("|");for(var Z=u[0],y=1;y<u.length;y++){var R=this.T(y-1,Z,u[y],h);(this.V||R.getHeight()<180)&&L.push(R)}return L};
N1.prototype.T=function(u,h,L,Z){return new g.oB(u,h,L,Z)};g.P(UX,g.oB);g.K=UX.prototype;g.K.Ii=function(){return this.N.bK()};
g.K.Vd=function(u){var h=this.rows*this.columns*this.T,L=this.N,Z=L.Uk();u=L.K0(u);return u>Z-h?-1:u};
g.K.jj=function(){return this.N.Uk()};
g.K.WE=function(){return this.N.Sw()};
g.K.hQ=function(u){this.N=u};g.P(Gw,N1);Gw.prototype.N=function(u,h){return N1.prototype.N.call(this,"$N|"+u,h)};
Gw.prototype.T=function(u,h,L){return new UX(u,h,L,this.isLive)};var MDn=[],V1=new Set;g.P(g.rC,g.yV);g.K=g.rC.prototype;
g.K.setData=function(u){u=u||{};var h=u.errordetail;h!=null&&(this.errorDetail=h);var L=u.errorcode;L!=null?this.errorCode=L:u.status==="fail"&&(this.errorCode="auth");var Z=u.reason;Z!=null&&(this.errorReason=Z);var y=u.subreason;y!=null&&(this.Ud=y);this.j("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=u.cpn||(this.z7.UU()?"r"+g.ig(15):g.ig(16)));this.fI=jt(this.z7.fI,u.livemonitor);DUs(this,u);var R=u.raw_player_response;if(R)this.Nh=R;else{var p=u.player_response;
p&&(R=JSON.parse(p))}if(this.j("html5_enable_ssap_entity_id")){var J=u.cached_load;J&&(this.QX=jt(this.QX,J));if(!this.clientPlaybackNonce){var O=u.cpn;O?(this.wq("ssei","shdc"),this.clientPlaybackNonce=O):this.clientPlaybackNonce=this.z7.UU()?"r"+g.ig(15):g.ig(16)}}R&&(this.playerResponse=R);if(this.playerResponse){var f=this.playerResponse.annotations;if(f)for(var D=g.C(f),c=D.next();!c.done;c=D.next()){var I=c.value.playerAnnotationsUrlsRenderer;if(I){I.adsOnly&&(this.t6=!0);var A=I.loadPolicy;
A&&(this.annotationsLoadPolicy=wvg[A]);var x=I.invideoUrl;x&&(this.ZI=kk(x));break}}var Q=this.playerResponse.attestation;Q&&myl(this,Q);var S=this.playerResponse.cotn;S&&(this.cotn=S);var v=this.playerResponse.heartbeatParams;if(v){OOV(this)&&(this.X2=!0);var T=v.heartbeatToken;T&&(this.drmSessionId=v.drmSessionId||"",this.heartbeatToken=T,this.zm=Number(v.intervalMilliseconds),this.BG=Number(v.maxRetries),this.gA=!!v.softFailOnError,this.JI=!!v.useInnertubeHeartbeatsForDrm,this.zp=!0);this.heartbeatServerData=
v.heartbeatServerData;var U;this.Bm=!((U=v.heartbeatAttestationConfig)==null||!U.requiresAttestation)}var z=this.playerResponse.messages;z&&s0n(this,z);var d=this.playerResponse.overlay;if(d){var W=d.playerControlsOverlayRenderer;if(W)if(eKl(this,W.controlBgHtml),W.mutedAutoplay){var t=g.n(W.mutedAutoplay,uZy);if(t&&t.endScreen){var yn=g.n(t.endScreen,jpu);yn&&yn.text&&(this.bA=g.cL(yn.text))}}else this.mutedAutoplay=!1}var KV=this.playerResponse.playabilityStatus;if(KV){var u1=KV.backgroundability;
u1&&u1.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var w,k;if((w=KV.offlineability)==null?0:(k=w.offlineabilityRenderer)==null?0:k.offlineable)this.offlineable=!0;var M=KV.contextParams;M&&(this.contextParams=M);var e=KV.pictureInPicture;e&&e.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);KV.playableInEmbed&&(this.allowEmbed=!0);var sj=KV.ypcClickwrap;if(sj){var l3=sj.playerLegacyDesktopYpcClickwrapRenderer,c1=sj.ypcRentalActivationRenderer;if(l3)this.aC=l3.durationMessage||
"",this.Th=!0;else if(c1){var Yb=c1.durationMessage;this.aC=Yb?g.cL(Yb):"";this.Th=!0}}var kb=KV.errorScreen;if(kb){if(kb.playerLegacyDesktopYpcTrailerRenderer){var ZR=kb.playerLegacyDesktopYpcTrailerRenderer;this.l7=ZR.trailerVideoId||"";var P1=kb.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var X=P1&&P1.ypcTrailerRenderer}else if(kb.playerLegacyDesktopYpcOfferRenderer)ZR=kb.playerLegacyDesktopYpcOfferRenderer;else if(kb.ypcTrailerRenderer){X=kb.ypcTrailerRenderer;var q=X.fullVideoMessage;this.Cs=
q?g.cL(q):"";var Y,H;this.l7=((Y=g.n(X,hJq))==null?void 0:(H=Y.videoDetails)==null?void 0:H.videoId)||""}ZR&&(this.X6=ZR.itemTitle||"",ZR.itemUrl&&(this.Fv=ZR.itemUrl),ZR.itemBuyUrl&&(this.Dw=ZR.itemBuyUrl),this.Oq=ZR.itemThumbnail||"",this.wy=ZR.offerHeadline||"",this.BH=ZR.offerDescription||"",this.a5=ZR.offerId||"",this.Cl=ZR.offerButtonText||"",this.BD=ZR.offerButtonFormattedText||null,this.gW=ZR.overlayDurationMsec||NaN,this.Cs=ZR.fullVideoMessage||"",this.RF=!0);if(X){var B=g.n(X,hJq);if(B)this.KY=
{raw_player_response:B};else{var hs=g.n(X,c8r);this.KY=hs?jp(hs):null}this.RF=!0}}}var RR=this.playerResponse.playbackTracking;if(RR){var pV=u,r=OX(RR.googleRemarketingUrl);r&&(this.googleRemarketingUrl=r);var Dw=OX(RR.youtubeRemarketingUrl);Dw&&(this.youtubeRemarketingUrl=Dw);var Pi={},Oj=OX(RR.ptrackingUrl);if(Oj){var GY=fg(Oj),Ic=GY.oid;Ic&&(this.Ey=Ic);var nq=GY.pltype;nq&&(this.oW=nq);var ch=GY.ptchn;ch&&(this.P3=ch);var $b=GY.ptk;$b&&(this.qC=encodeURIComponent($b));var dY=GY.m;dY&&(this.Ny=
dY)}var JM=OX(RR.qoeUrl);if(JM){for(var Gi=g.LP(JM),aI=g.C(Object.keys(Gi)),D_=aI.next();!D_.done;D_=aI.next()){var eK=D_.value,Vu=Gi[eK];Gi[eK]=Array.isArray(Vu)?Vu.join(","):Vu}this.dQ=Gi;var ax=Gi.cat;ax&&(this.j("html5_enable_qoe_cat_list")?this.kU=this.kU.concat(ax.split(",")):this.Km=ax);var Mx=Gi.live;Mx&&(this.Af=Mx);var cM=Gi.drm_product;cM&&(this.MG=cM)}var Gq=OX(RR.videostatsPlaybackUrl);if(Gq){var IF=fg(Gq),HY=IF.adformat;if(HY){pV.adformat=HY;var HB=this.L(),rB=Hme(HY,this.ye,HB.B,HB.V);
rB&&(this.adFormat=rB)}var oj=IF.aqi;oj&&(pV.ad_query_id=oj);var gY=IF.autoplay;gY&&(this.J3=gY=="1",this.OF=gY=="1",tF(this,"vss"));var $L=IF.autonav;$L&&(this.isAutonav=$L=="1");var ZM=IF.delay;ZM&&(this.La=ge(ZM));var SB=IF.ei;SB&&(this.eventId=SB);if(IF.adcontext||HY)this.J3=!0,tF(this,"ad");var dv=IF.feature;dv&&(this.jK=dv);var Ip=IF.list;Ip&&(this.playlistId=Ip);var DI=IF.of;DI&&(this.XT=DI);var cP=IF.osid;cP&&(this.osid=cP);var IA=IF.referrer;IA&&(this.referrer=IA);var uy=IF.sdetail;uy&&(this.Ne=
uy);var RS=IF.ssrt;RS&&(this.eO=RS=="1");var j$=IF.subscribed;j$&&(this.subscribed=j$=="1",this.V.subscribed=j$);var hS=IF.uga;hS&&(this.userGenderAge=hS);var Aq=IF.upt;Aq&&(this.gy=Aq);var xx=IF.vm;xx&&(this.videoMetadata=xx);Pi.playback=IF}var PP=OX(RR.videostatsWatchtimeUrl);if(PP){var Cl=fg(PP),MO=Cl.ald;MO&&(this.q_=MO);Pi.watchtime=Cl}var iz=OX(RR.atrUrl);if(iz){var TA=fg(iz);Pi.atr=TA}var XQ=OX(RR.engageUrl);if(XQ){var YH=fg(XQ);Pi.engage=YH}this.qU=Pi;if(RR.promotedPlaybackTracking){var $J=
RR.promotedPlaybackTracking;$J.startUrls&&(this.FH=$J.startUrls);$J.firstQuartileUrls&&(this.Uh=$J.firstQuartileUrls);$J.secondQuartileUrls&&(this.LM=$J.secondQuartileUrls);$J.thirdQuartileUrls&&(this.H4=$J.thirdQuartileUrls);$J.completeUrls&&(this.jr=$J.completeUrls);$J.engagedViewUrls&&($J.engagedViewUrls.length>1&&g.G3(new g.aO("There are more than one engaged_view_urls.")),this.iX=$J.engagedViewUrls[0])}}var LQ=this.playerResponse.playerCueRanges;LQ&&LQ.length>0&&(this.cueRanges=LQ);var Qs=this.playerResponse.playerCueRangeSet;
Qs&&g.ng(this,Qs);a:{var Zb=this.playerResponse.adPlacements;if(Zb)for(var lz=g.C(Zb),y4=lz.next();!y4.done;y4=lz.next()){var Si=void 0,Xy=void 0,vP=(Si=y4.value.adPlacementRenderer)==null?void 0:(Xy=Si.renderer)==null?void 0:Xy.videoAdTrackingRenderer;if(vP){var qO=vP;break a}}qO=null}var Rh=qO;RR&&RR.promotedPlaybackTracking&&Rh&&g.G3(new g.aO("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));Rh&&(this.Md=!0);var Ta=this.playerResponse.playerAds;if(Ta)for(var ob=
u,Yx=g.C(Ta),pQ=Yx.next();!pQ.done;pQ=Yx.next()){var oA=pQ.value;if(oA){var NO=oA.playerLegacyDesktopWatchAdsRenderer;if(NO){var qg=NO.playerAdParams;if(qg){qg.autoplay=="1"&&(this.OF=this.J3=!0);this.J6=qg.encodedAdSafetyReason||null;qg.showContentThumbnail!==void 0&&(this.l9=!!qg.showContentThumbnail);ob.enabled_engage_types=qg.enabledEngageTypes;break}}}}var Qb=this.playerResponse.playerConfig;if(Qb){var Tf=Qb.manifestlessWindowedLiveConfig;if(Tf){var KQ=Number(Tf.minDvrSequence),xM=Number(Tf.maxDvrSequence),
Pb=Number(Tf.minDvrMediaTimeMs),Cd=Number(Tf.maxDvrMediaTimeMs),UF=Number(Tf.startWalltimeMs);KQ&&(this.vr=KQ);Pb&&(this.vX=Pb/1E3,this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&EX(this)&&(this.WS=Pb/1E3));xM&&(this.w2=xM);Cd&&(this.mz=Cd/1E3,this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&EX(this)&&(this.gD=Cd/1E3));UF&&(this.vj=UF/1E3);(KQ||Pb)&&(xM||Cd)&&(this.allowLiveDvr=this.isLivePlayback=this.T7=!0,this.Ph=!1)}var pf=Qb.daiConfig;if(pf){if(pf.enableDai){this.Aa=
!0;var Mv=pf.enableServerStitchedDai;Mv&&(this.enableServerStitchedDai=Mv);var NP=pf.enablePreroll;NP&&(this.enablePreroll=NP)}var Ga;if(pf.daiType==="DAI_TYPE_SS_DISABLED"||((Ga=pf.debugInfo)==null?0:Ga.isDisabledUnpluggedChannel))this.bk=!0;pf.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.DG=!0)}var BB=Qb.audioConfig;if(BB){var HP=BB.loudnessDb;HP!=null&&(this.fV=HP);var JS=BB.trackAbsoluteLoudnessLkfs;JS!=null&&(this.Nd=JS);var Oh=BB.loudnessTargetLkfs;Oh!=null&&(this.loudnessTargetLkfs=Oh);BB.audioMuted&&
(this.Mt=!0);BB.muteOnStart&&(this.y5=!0);var Kf=BB.loudnessNormalizationConfig;if(Kf){Kf.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);Kf.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);var rM=Kf.minimumLoudnessTargetLkfs;rM!=null&&(this.minimumLoudnessTargetLkfs=rM);var GA=Kf.maxStatefulTimeThresholdSec;GA!=null&&(this.maxStatefulTimeThresholdSec=GA)}this.j("web_player_audio_playback_from_audio_config")&&BB.playAudioOnly&&(this.Cr=!0)}var BP=Qb.playbackEndConfig;
if(BP){var Vm=BP.endSeconds,h0i=BP.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(Vm&&(this.endSeconds=Vm),h0i&&(this.limitedPlaybackDurationInSeconds=h0i))}var Ea=Qb.fairPlayConfig;if(Ea){var Lys=Ea.certificate;Lys&&(this.Sd=ki(Lys));var ZUn=Number(Ea.keyRotationPeriodMs);ZUn>0&&(this.Ob=ZUn);var y7s=Number(Ea.keyPrefetchMarginMs);y7s>0&&(this.XC=y7s)}var $W=Qb.playbackStartConfig;if($W){this.I8=Number($W.startSeconds);var R0L=$W.liveUtcStartSeconds,pfR=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>
0;R0L&&!pfR&&(this.liveUtcStartSeconds=Number(R0L));var ZBn=$W.startPosition;if(ZBn){var Kyn=ZBn.utcTimeMillis;Kyn&&!pfR&&(this.liveUtcStartSeconds=Number(Kyn)*.001);var J7L=ZBn.streamTimeMillis;J7L&&(this.A4=Number(J7L)*.001)}this.progressBarStartPosition=$W.progressBarStartPosition;this.progressBarEndPosition=$W.progressBarEndPosition}else{var ywe=Qb.skippableSegmentsConfig;if(ywe){var OUf=ywe.introSkipDurationMs;OUf&&(this.Lm=Number(OUf)/1E3);var f51=ywe.outroSkipDurationMs;f51&&(this.Mh=Number(f51)/
1E3)}}var R1i=Qb.skippableIntroConfig;if(R1i){var DTb=Number(R1i.startMs),c7n=Number(R1i.endMs);isNaN(DTb)||isNaN(c7n)||(this.jY=DTb,this.t4=c7n)}var I5b=Qb.streamSelectionConfig;I5b&&(this.Oo=Number(I5b.maxBitrate));var A71=Qb.vrConfig;A71&&(this.nN=A71.partialSpherical=="1");var ye=Qb.webDrmConfig;if(ye){ye.skipWidevine&&(this.Co=!0);var xTn=ye.widevineServiceCert;xTn&&(this.yf=ki(xTn));ye.useCobaltWidevine&&(this.useCobaltWidevine=!0);ye.startWithNoQualityConstraint&&(this.Xb=!0)}var Wd=Qb.mediaCommonConfig;
if(Wd){var kU=Wd.dynamicReadaheadConfig;if(kU){this.maxReadAheadMediaTimeMs=kU.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=kU.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=kU.readAheadGrowthRateMs||NaN;var PMn,CM1=Wd==null?void 0:(PMn=Wd.mediaUstreamerRequestConfig)==null?void 0:PMn.videoPlaybackUstreamerConfig;CM1&&(this.Ee=ki(CM1));var poL=Wd==null?void 0:Wd.sabrContextUpdates;if(poL&&poL.length>0)for(var Mql=g.C(poL),K6f=Mql.next();!K6f.done;K6f=Mql.next()){var fr=K6f.value;
if(fr.type&&fr.value){var jwK={type:fr.type,scope:fr.scope,value:ki(fr.value)||void 0,sendByDefault:fr.sendByDefault};this.sabrContextUpdates.set(fr.type,jwK)}}}var iUV=Wd.serverPlaybackStartConfig;iUV&&(this.serverPlaybackStartConfig=iUV);Wd.useServerDrivenAbr&&(this.T2=!0);var Qvs=Wd.requestPipeliningConfig;Qvs&&(this.requestPipeliningConfig=Qvs)}var l5a=Qb.inlinePlaybackConfig;l5a&&(this.Ry=!!l5a.showAudioControls);var gL=Qb.embeddedPlayerConfig;if(gL){this.embeddedPlayerConfig=gL;var JwL=gL.embeddedPlayerMode;
if(JwL){var Snn=this.L();Snn.gw=JwL;Snn.X=JwL==="EMBEDDED_PLAYER_MODE_PFL"}var Xfe=gL.permissions;Xfe&&(this.allowImaMonetization=!!Xfe.allowImaMonetization)}var vqV=Qb.ssapConfig;vqV&&(this.ND=vqV.ssapPrerollEnabled||!1);var u$=Qb.webPlayerConfig;u$&&(u$.gatewayExperimentGroup&&(this.gatewayExperimentGroup=u$.gatewayExperimentGroup),u$.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var FQ=this.playerResponse.streamingData;if(FQ){var OBl=FQ.formats;if(OBl){for(var R4=[],qns=g.C(OBl),fkj=qns.next();!fkj.done;fkj=
qns.next()){var DNw=fkj.value;R4.push(DNw.itag+"/"+DNw.width+"x"+DNw.height)}this.rj=R4.join(",");R4=[];for(var T7Y=g.C(OBl),cwi=T7Y.next();!cwi.done;cwi=T7Y.next()){var p0=cwi.value,K0={itag:p0.itag,type:p0.mimeType,quality:p0.quality},Ynl=p0.url;Ynl&&(K0.url=Ynl);var jE=M6(p0),hPK=jE.jg,LJY=jE.vI,ZI1=jE.s;jE.F8&&(K0.url=hPK,K0.sp=LJY,K0.s=ZI1);R4.push(g.nv(K0))}this.Qs=R4.join(",")}var Ikb=FQ.hlsFormats;if(Ikb){var oqw=Qb||null,ha={};if(oqw){var Awa=oqw.audioPairingConfig;if(Awa&&Awa.pairs)for(var N7e=
g.C(Awa.pairs),xNV=N7e.next();!xNV.done;xNV=N7e.next()){var UTj=xNV.value,PPw=UTj.videoItag;ha[PPw]||(ha[PPw]=[]);ha[PPw].push(UTj.audioItag)}}for(var GFR={},HUs=g.C(Ikb),CPj=HUs.next();!CPj.done;CPj=HUs.next()){var r7f=CPj.value;GFR[r7f.itag]=r7f.bitrate}for(var B7Y=[],z0L=g.C(Ikb),MfL=z0L.next();!MfL.done;MfL=z0L.next()){var h4=MfL.value,v7={itag:h4.itag,type:h4.mimeType,url:h4.url,bitrate:h4.bitrate,width:h4.width,height:h4.height,fps:h4.fps},L$=h4.audioTrack;if(L$){var mTR=L$.displayName;mTR&&
(v7.name=mTR,v7.audio_track_id=L$.id,L$.audioIsDefault&&(v7.is_default="1"))}if(h4.drmFamilies){for(var dT1=[],Vql=g.C(h4.drmFamilies),iBe=Vql.next();!iBe.done;iBe=Vql.next())dT1.push(yo[iBe.value]);v7.drm_families=dT1.join(",")}var ZH=ha[h4.itag];if(ZH&&ZH.length){v7.audio_itag=ZH.join(",");var nql=GFR[ZH[0]];nql&&(v7.bitrate+=nql)}var svb=XPs(h4);svb&&(v7.eotf=svb);h4.audioChannels&&(v7.audio_channels=h4.audioChannels);B7Y.push(g.nv(v7))}this.hlsFormats=B7Y.join(",")}var QNR=FQ.licenseInfos;if(QNR&&
QNR.length>0){for(var wfb={},e0R=g.C(QNR),lkb=e0R.next();!lkb.done;lkb=e0R.next()){var a5n=lkb.value,$TY=a5n.drmFamily,tqV=a5n.url;$TY&&tqV&&(wfb[yo[$TY]]=tqV)}this.ji=wfb}var Wyn=FQ.drmParams;Wyn&&(this.drmParams=Wyn);var Fyf=FQ.dashManifestUrl;Fyf&&(this.jq=g.sr(Fyf,{cpn:this.clientPlaybackNonce}));var bUa=FQ.hlsManifestUrl;bUa&&(this.hlsvp=bUa);var Eqf=FQ.probeUrl;Eqf&&(this.probeUrl=kk(g.sr(Eqf,{cpn:this.clientPlaybackNonce})));var kFj=FQ.serverAbrStreamingUrl;kFj&&(this.xo=new g.cQ(kFj,!0))}var gqi=
this.playerResponse.trackingParams;gqi&&(this.DI=gqi);var t8=this.playerResponse.videoDetails;if(t8){var q2=u,SSf=t8.videoId;SSf&&(this.videoId=SSf,q2.video_id||(q2.video_id=SSf));var u_V=t8.channelId;u_V&&(this.V.uid=u_V.substring(2));var XoY=t8.title;XoY&&(this.title=XoY,q2.title||(q2.title=XoY));var vdY=t8.lengthSeconds;vdY&&(this.lengthSeconds=Number(vdY),q2.length_seconds||(q2.length_seconds=vdY));var jCf=t8.keywords;jCf&&(this.keywords=Pa1(jCf));var qSj=t8.channelId;qSj&&(this.Xy=qSj,q2.ucid||
(q2.ucid=qSj));var hin=t8.viewCount;hin&&(this.rawViewCount=Number(hin));var TeY=t8.author;TeY&&(this.author=TeY,q2.author||(q2.author=TeY));var LTY=t8.shortDescription;LTY&&(this.shortDescription=LTY);var Zti=t8.isCrawlable;Zti&&(this.isListed=Zti);var yGR=t8.musicVideoType;yGR&&(this.musicVideoType=yGR);var YSY=t8.isLive;YSY!=null&&(this.isLivePlayback=YSY);if(YSY||t8.isUpcoming)this.isPremiere=!t8.isLiveContent;var Ria=t8.thumbnail;Ria&&(this.Y=JV(Ria));var p4s=t8.isExternallyHostedPodcast;p4s&&
(this.isExternallyHostedPodcast=p4s);var odi=t8.viewerLivestreamJoinPosition;if(odi==null?0:odi.utcTimeMillis)this.ag=ge(odi.utcTimeMillis);var KTL=Qb||null,Neb=u;t8.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);t8.isUpcoming&&(this.isUpcoming=!0);if(t8.isPostLiveDvr){this.Ph=!0;var JG1=t8.latencyClass;JG1&&(this.latencyClass=e88[JG1]||"UNKNOWN");t8.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var UNf=!1;this.fI?(this.allowLiveDvr=$i()?!0:FI&&jx<5?!1:!0,this.isLivePlayback=
!0):t8.isLive?(Neb.livestream="1",this.allowLiveDvr=t8.isLiveDvrEnabled?$i()?!0:FI&&jx<5?!1:!0:!1,this.partnerId=27,UNf=!0):t8.isUpcoming&&(UNf=!0);if(t8.isLive||this.fI&&this.j("html5_parse_live_monitor_flags")){t8.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var OtL=t8.latencyClass;OtL&&(this.latencyClass=e88[OtL]||"UNKNOWN");var fNb=t8.liveChunkReadahead;fNb&&(this.liveChunkReadahead=fNb);var tC=KTL&&KTL.livePlayerConfig;if(tC){tC.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);
tC.hasSubfragmentedWebm&&(this.e9=!0);tC.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var D3w=tC.liveExperimentalContentId;D3w&&(this.liveExperimentalContentId=Number(D3w));var cGl=tC.isLiveHeadPlayable;this.j("html5_live_head_playable")&&cGl!=null&&(this.isLiveHeadPlayable=cGl)}}UNf&&(this.isLivePlayback=!0,Neb.adformat&&Neb.adformat.split("_")[1]!=="8"||this.gw.push("heartbeat"),this.zp=!0)}var INe=t8.isPrivate;INe!==void 0&&(this.isPrivate=jt(this.isPrivate,INe))}if(KV){var AGf=
t8||null,x3Y=!1,WE=KV.errorScreen;x3Y=WE&&(WE.playerLegacyDesktopYpcOfferRenderer||WE.playerLegacyDesktopYpcTrailerRenderer||WE.ypcTrailerRenderer)?!0:AGf&&AGf.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(KV.status);if(!x3Y){this.errorCode=qLj(KV.errorCode)||"auth";var y_=WE&&WE.playerErrorMessageRenderer;if(y_){this.playerErrorMessageRenderer=y_;var Pof=y_.reason;Pof&&(this.errorReason=g.cL(Pof));var GxV=y_.subreason;GxV&&(this.Ud=g.cL(GxV),this.Lq=GxV)}else this.errorReason=
KV.reason||null;var HBj=KV.status;if(HBj==="LOGIN_REQUIRED")this.errorDetail="1";else if(HBj==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(HBj==="AGE_CHECK_REQUIRED"){var Cos=KV.errorScreen,Mlf=Cos&&Cos.playerKavRenderer;this.errorDetail=Mlf&&Mlf.kavUrl?"4":"3"}else this.errorDetail=KV.isBlockedInRestrictedMode?"5":"0"}}var it1=this.playerResponse.interstitialPods;it1&&nf1(this,it1);this.ZI&&this.eventId&&(this.ZI=ya(this.ZI,{ei:this.eventId}));var rwR=this.playerResponse.captions;if(rwR&&
rwR.playerCaptionsTracklistRenderer)a:{var Tm=rwR.playerCaptionsTracklistRenderer;this.captionTracks=[];if(Tm.captionTracks)for(var QCL=g.C(Tm.captionTracks),Bee=QCL.next();!Bee.done;Bee=QCL.next()){var YX=Bee.value,lN1=IBL(YX.baseUrl);if(!lN1)break a;var z1V={is_translateable:!!YX.isTranslatable,languageCode:YX.languageCode,languageName:YX.name&&g.cL(YX.name),url:lN1,vss_id:YX.vssId,kind:YX.kind};z1V.name=YX.trackName;z1V.displayName=YX.name&&g.cL(YX.name);this.captionTracks.push(new g.Zs(z1V))}this.Qo=
Tm.audioTracks||[];this.oX=Tm.defaultAudioTrackIndex||0;this.x6=[];if(Tm.translationLanguages)for(var Sew=g.C(Tm.translationLanguages),mNn=Sew.next();!mNn.done;mNn=Sew.next()){var FF=mNn.value,D$={};D$.languageCode=FF.languageCode;D$.languageName=g.cL(FF.languageName);if(FF.translationSourceTrackIndices){D$.translationSourceTrackIndices=[];for(var X4i=g.C(FF.translationSourceTrackIndices),dNf=X4i.next();!dNf.done;dNf=X4i.next())D$.translationSourceTrackIndices.push(dNf.value)}if(FF.excludeAudioTrackIndices){D$.excludeAudioTrackIndices=
[];for(var v0w=g.C(FF.excludeAudioTrackIndices),Vfs=v0w.next();!Vfs.done;Vfs=v0w.next())D$.excludeAudioTrackIndices.push(Vfs.value)}this.x6.push(D$)}this.mC=[];if(Tm.defaultTranslationSourceTrackIndices)for(var qeL=g.C(Tm.defaultTranslationSourceTrackIndices),ndl=qeL.next();!ndl.done;ndl=qeL.next())this.mC.push(ndl.value);this.Qe=!!Tm.contribute&&!!Tm.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.I8=Number(this.clipConfig.startTimeMs)*
.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&wT1(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var TJY;this.compositeLiveIngestionOffsetToken=(TJY=this.playerResponse.playbackTracking)==null?void 0:TJY.compositeLiveIngestionOffsetToken;var Yes;this.compositeLiveStatusToken=(Yes=this.playerResponse.playbackTracking)==null?void 0:
Yes.compositeLiveStatusToken}zw(this,u);u.queue_info&&(this.queueInfo=u.queue_info);var o0s=u.hlsdvr;o0s!=null&&(this.allowLiveDvr=Number(o0s)===1?$i()?!0:FI&&jx<5?!1:!0:!1);this.adQueryId=u.ad_query_id||null;this.J6||(this.J6=u.encoded_ad_safety_reason||null);this.QC=u.agcid||null;this.iV=u.ad_id||null;this.ZN=u.ad_sys||null;this.vU=u.encoded_ad_playback_context||null;this.Mt=jt(this.Mt,u.infringe||u.muted);this.nU=u.authkey;this.JA=u.authuser;this.mutedAutoplay=jt(this.mutedAutoplay,u&&u.playmuted);
this.j("embeds_enable_full_length_inline_muted_autoplay")&&(this.mutedAutoplayDurationMode=LF(this.mutedAutoplayDurationMode,u&&u.muted_autoplay_duration_mode));this.Yp=jt(this.Yp,u&&u.mutedautoplay);var RU=u.length_seconds;RU&&(this.lengthSeconds=typeof RU==="string"?ge(RU):RU);if(this.isAd()||this.B6||!g.KF(g.Yy(this.z7)))this.endSeconds=LF(this.endSeconds,this.Mh||u.end||u.endSeconds);else{var ynV=g.Yy(this.z7),p$=this.lengthSeconds;switch(ynV){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":p$>
30?this.limitedPlaybackDurationInSeconds=30:p$<30&&p$>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=p$*.2}}this.DI=ZD(this.DI,u.itct);this.iZ=jt(this.iZ,u.noiba);this.RJ=jt(this.RJ,u.is_live_destination);this.isLivePlayback=jt(this.isLivePlayback,u.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.bP();u.isUpcoming&&(this.isUpcoming=jt(this.isUpcoming,u.isUpcoming));this.Ph=
jt(this.Ph,u.post_live_playback);this.T7&&(this.Ph=!1);this.isMdxPlayback=jt(this.isMdxPlayback,u.mdx);var K$=u.mdx_control_mode;K$&&(this.mdxControlMode=typeof K$==="number"?K$:ge(K$));this.isInlinePlaybackNoAd=jt(this.isInlinePlaybackNoAd,u.is_inline_playback_no_ad);this.nH=LF(this.nH,u.reload_count);this.reloadReason=ZD(this.reloadReason,u.reload_reason);this.l9=jt(this.l9,u.show_content_thumbnail);this.G9=jt(this.G9,u.utpsa);this.cycToken=u.cyc||null;this.eg=u.tkn||null;var NJs=Kg(u);Object.keys(NJs).length>
0&&(this.Y=NJs);this.RH=ZD(this.RH,u.vvt);this.mdxEnvironment=ZD(this.mdxEnvironment,u.mdx_environment);u.source_container_playlist_id&&(this.sourceContainerPlaylistId=u.source_container_playlist_id);u.serialized_mdx_metadata&&(this.serializedMdxMetadata=u.serialized_mdx_metadata);this.uv=u.osig;this.eventId||(this.eventId=u.eventid);this.osid||(this.osid=u.osid);this.playlistId=ZD(this.playlistId,u.list);u.index&&(this.playlistIndex=this.playlistIndex===void 0?LF(0,u.index):LF(this.playlistIndex,
u.index));this.Aw=u.pyv_view_beacon_url;this.Nk=u.pyv_quartile25_beacon_url;this.vy=u.pyv_quartile50_beacon_url;this.Nx=u.pyv_quartile75_beacon_url;this.mW=u.pyv_quartile100_beacon_url;var U3V=u.session_data;!this.E_&&U3V&&(this.E_=gv(U3V,"&").feature);this.isFling=LF(this.isFling?1:0,u.is_fling)===1;this.vnd=LF(this.vnd,u.vnd);this.forceAdsUrl=ZD(this.forceAdsUrl,u.force_ads_url);this.KV=ZD(this.KV,u.ctrl);this.QK=ZD(this.QK,u.ytr);this.Eb=u.ytrcc;this.u1=u.ytrexp;this.qh=u.ytrext;this.eq=ZD(this.eq,
u.adformat);this.ye=ZD(this.ye,u.attrib);this.slotPosition=LF(this.slotPosition,u.slot_pos);this.breakType=u.break_type;this.eO=jt(this.eO,u.ssrt);this.videoId=RO(u)||this.videoId;this.C=ZD(this.C,u.vss_credentials_token);this.Mv=ZD(this.Mv,u.vss_credentials_token_type);this.Cr=jt(this.Cr,u.audio_only);this.wm=jt(this.wm,u.aac_high);this.Vo=jt(this.Vo,u.prefer_low_quality_audio);this.uc=jt(this.uc,u.uncap_inline_quality);this.j("html5_enable_qoe_cat_list")?u.qoe_cat&&(this.kU=this.kU.concat(u.qoe_cat.split(","))):
this.Km=ZD(this.Km,u.qoe_cat);this.K3=jt(this.K3,u.download_media);var GSj=u.prefer_gapless;this.S=GSj!=null?jt(this.S,GSj):this.S?this.S:this.z7.preferGapless&&this.z7.supportsGaplessShorts();e7Y(this.playerResponse)&&this.gw.push("ad");var Hta=u.adaptive_fmts;Hta&&(this.adaptiveFormats=Hta,this.IH("adpfmts",{},!0));var rGb=u.allow_embed;rGb&&(this.allowEmbed=Number(rGb)===1);var BJV=u.backgroundable;BJV&&(this.backgroundable=Number(BJV)===1);var ziR=u.autonav;ziR&&(this.isAutonav=Number(ziR)===
1);var m3j=u.autoplay;m3j&&(this.J3=this.OF=Number(m3j)===1,tF(this,"c"));var d3n=u.iv_load_policy;d3n&&(this.annotationsLoadPolicy=h2(this.annotationsLoadPolicy,d3n,oL));var Vla=u.cc_lang_pref;Vla&&(this.captionsLanguagePreference=ZD(Vla,this.captionsLanguagePreference));var n01=u.cc_load_policy;n01&&(this.kp=h2(this.kp,n01,oL));var sCf;this.deviceCaptionsOn=(sCf=u.device_captions_on)!=null?sCf:void 0;var w4n;this.Gv=(w4n=u.device_captions_lang_pref)!=null?w4n:"";var eiV;this.Xm=(eiV=u.viewer_selected_caption_langs)!=
null?eiV:[];if(!this.j("html5_enable_ssap_entity_id")){var aNi=u.cached_load;aNi&&(this.QX=jt(this.QX,aNi))}if(u.dash==="0"||u.dash===0||u.dash===!1)this.MF=!0;var $31=u.dashmpd;$31&&(this.jq=g.sr($31,{cpn:this.clientPlaybackNonce}));var tlw=u.delay;tlw&&(this.La=ge(tlw));var sNi=this.Mh||u.end;if(this.Td?sNi!=null:sNi!=void 0)this.clipEnd=LF(this.clipEnd,sNi);var WTf=u.fmt_list;WTf&&(this.rj=WTf);u.heartbeat_preroll&&this.gw.push("heartbeat");this.zy=-Math.floor(Math.random()*10);this.E2=-Math.floor(Math.random()*
40);var FTV=u.is_listed;FTV&&(this.isListed=jt(this.isListed,FTV));var bte=u.is_private;bte&&(this.isPrivate=jt(this.isPrivate,bte));var E0f=u.is_dni;E0f&&(this.Rc=jt(this.Rc,E0f));var kSn=u.dni_color;kSn&&(this.nE=ZD(this.nE,kSn));var g0f=u.pipable;g0f&&(this.pipable=jt(this.pipable,g0f));this.PB=(this.xj=this.pipable&&this.z7.T6)&&!this.z7.showMiniplayerButton;var udi=u.paid_content_overlay_duration_ms;udi&&(this.paidContentOverlayDurationMs=ge(udi));var j$1=u.paid_content_overlay_text;j$1&&(this.paidContentOverlayText=
j$1);var hAL=u.url_encoded_fmt_stream_map;hAL&&(this.Qs=hAL);var Ltj=u.hls_formats;Ltj&&(this.hlsFormats=Ltj);var Z41=u.hlsvp;Z41&&(this.hlsvp=Z41);var Ja=u.live_start_walltime;Ja&&(this.Rz=typeof Ja==="number"?Ja:ge(Ja));var Ow=u.live_manifest_duration;Ow&&(this.Be=typeof Ow==="number"?Ow:ge(Ow));var yOi=u.player_params;yOi&&(this.playerParams=yOi);var RAe=u.partnerid;RAe&&(this.partnerId=LF(this.partnerId,RAe));var pji=u.probe_url;pji&&(this.probeUrl=kk(g.sr(pji,{cpn:this.clientPlaybackNonce})));
var won=u.pyv_billable_url;won&&uXY(won)&&(this.iX=won);var e1R=u.pyv_conv_url;e1R&&uXY(e1R)&&(this.EB=e1R);Caa(this,u);this.startSeconds>0?this.j("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.I8||this.Lm||u.start||u.startSeconds)&&this.IH("lss",{css:this.startSeconds,pcss:this.I8,iss:this.Lm,ps:u.start||void 0,pss:u.startSeconds||void 0}):this.iP=this.startSeconds=LF(this.startSeconds,this.I8||this.Lm||u.start||u.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>
0)){var Kt1=u.live_utc_start;if(Kt1!=null)this.liveUtcStartSeconds=Number(Kt1);else{var akn=this.startSeconds;akn&&isFinite(akn)&&akn>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var JOj=u.utc_start_millis;JOj&&(this.liveUtcStartSeconds=Number(JOj)*.001)}var O4R=u.stream_time_start_millis;O4R&&(this.A4=Number(O4R)*.001);var $Nn=this.Lm||u.start;(this.Td?$Nn==null||Number(u.resume)===1:$Nn==void 0||u.resume=="1")||this.isLivePlayback||
(this.clipStart=LF(this.clipStart,$Nn));var feY=u.url_encoded_third_party_media;feY&&(this.wD=h5(feY));var tfL=u.ypc_offer_button_formatted_text;if(tfL){var Dbn=JSON.parse(tfL);this.BD=Dbn!=null?Dbn:null;this.Uc=tfL}var cOj=u.ypc_offer_button_text;cOj&&(this.Cl=cOj);var Iej=u.ypc_offer_description;Iej&&(this.BH=Iej);var AOl=u.ypc_offer_headline;AOl&&(this.wy=AOl);var xbn=u.ypc_full_video_message;xbn&&(this.Cs=xbn);var PEV=u.ypc_offer_id;PEV&&(this.a5=PEV);var CEl=u.ypc_buy_url;CEl&&(this.Dw=CEl);
var My1=u.ypc_item_thumbnail;My1&&(this.Oq=My1);var i4a=u.ypc_item_title;i4a&&(this.X6=i4a);var Q$b=u.ypc_item_url;Q$b&&(this.Fv=Q$b);var lee=u.ypc_vid;lee&&(this.l7=lee);u.ypc_overlay_timeout&&(this.gW=Number(u.ypc_overlay_timeout));var SKR=u.ypc_trailer_player_vars;SKR&&(this.KY=jp(SKR));var Xj1=u.ypc_original_itct;Xj1&&(this.EL=Xj1);this.Xy=ZD(this.Xy,u.ucid);u.baseUrl&&(this.V.baseUrl=u.baseUrl);u.uid&&(this.V.uid=u.uid);u.oeid&&(this.V.oeid=u.oeid);u.ieid&&(this.V.ieid=u.ieid);u.ppe&&(this.V.ppe=
u.ppe);u.engaged&&(this.V.engaged=u.engaged);u.subscribed&&(this.V.subscribed=u.subscribed);this.V.focEnabled=jt(this.V.focEnabled,u.focEnabled);this.V.rmktEnabled=jt(this.V.rmktEnabled,u.rmktEnabled);this.Bd=u.storyboard_spec||null;this.bE=u.live_storyboard_spec||null;this.yu=u.iv_endscreen_url||null;this.zp=jt(this.zp,u.ypc_license_checker_module);this.RF=jt(this.RF,u.ypc_module);this.Th=jt(this.Th,u.ypc_clickwrap_module);this.RF&&this.gw.push("ypc");this.Th&&this.gw.push("ypc_clickwrap");this.sy=
{video_id:u.video_id,eventid:u.eventid,cbrand:u.cbrand,cbr:u.cbr,cbrver:u.cbrver,c:u.c,cver:u.cver,ctheme:u.ctheme,cplayer:u.cplayer,cmodel:u.cmodel,cnetwork:u.cnetwork,cos:u.cos,cosver:u.cosver,cplatform:u.cplatform,user_age:u.user_age,user_display_image:u.user_display_image,user_display_name:u.user_display_name,user_gender:u.user_gender,csi_page_type:u.csi_page_type,csi_service_name:u.csi_service_name,enablecsi:u.enablecsi,enabled_engage_types:u.enabled_engage_types};cEn(this,u);var v2R=u.cotn;
v2R&&(this.cotn=v2R);if(UUY(this))un(this)&&(this.isLivePlayback&&this.jq&&(this.oM=!0),this.Sd&&(this.i8=!0));else if(GWY(this))this.oM=!0;else{var qKj,Ta1,YKn=((qKj=this.playerResponse)==null?void 0:(Ta1=qKj.streamingData)==null?void 0:Ta1.adaptiveFormats)||[];if(YKn.length>0)var JE=NEn(this,YKn);else{var o2n=this.adaptiveFormats;if(o2n&&!un(this)){jS(this,"html5_enable_cobalt_experimental_vp9_decoder")&&(CS=!0);var bB=K3(o2n),W6V=this.ji,NaY=this.lengthSeconds,RPu=this.isLivePlayback,Ou=this.Ph,
Es=this.z7,pn3=ViY(bB);if(RPu||Ou){var Ube=Es==null?void 0:Es.experiments,d9=new LS("",Ube,!0);d9.bP=!0;d9.isManifestless=!0;d9.N=!Ou;d9.isLive=!Ou;d9.Ph=Ou;for(var GNf=g.C(bB),F6f=GNf.next();!F6f.done;F6f=GNf.next()){var kW=F6f.value,H4V=pS(kW,W6V),c5=KS(kW.url,kW.sp,kW.s),rOf=c5.get("id");rOf&&rOf.includes("%7E")&&(d9.Y=!0);var BaL=void 0,KJ3=(BaL=Ube)==null?void 0:BaL.tB("html5_max_known_end_time_rebase"),Jnr=Number(kW.target_duration_sec)||5,OIK=Number(kW.max_dvr_duration_sec)||14400,zAb=Number(c5.get("mindsq")||
c5.get("min_sq")||"0"),mbl=Number(c5.get("maxdsq")||c5.get("max_sq")||"0")||Infinity;d9.vr=d9.vr||zAb;d9.w2=d9.w2||mbl;var fJb=!WX(H4V);c5&&uG(d9,new nb(c5,H4V,{AS:Jnr,Ty:fJb,Zr:OIK,vr:zAb,w2:mbl,yH:300,Ph:Ou,JT:KJ3}))}var dbe=d9}else{if(pn3==="FORMAT_STREAM_TYPE_OTF"){var f$=NaY;f$=f$===void 0?0:f$;var gA=new LS("",Es==null?void 0:Es.experiments,!1);gA.duration=f$||0;for(var Vya=g.C(bB),bB1=Vya.next();!bB1.done;bB1=Vya.next()){var uc=bB1.value,Eds=pS(uc,W6V,gA.duration),kxf=KS(uc.url,uc.sp,uc.s);
if(kxf)if(Eds.streamType==="FORMAT_STREAM_TYPE_OTF")uG(gA,new s4(kxf,Eds,"sq/0"));else{var DHq=M8(uc.init),cnD=M8(uc.index);uG(gA,new E4(kxf,Eds,DHq,cnD))}}gA.isOtf=!0;var n2j=gA}else{var DH=NaY;DH=DH===void 0?0:DH;var cO=new LS("",Es==null?void 0:Es.experiments,!1);cO.duration=DH||0;for(var s$b=g.C(bB),gdV=s$b.next();!gdV.done;gdV=s$b.next()){var j7=gdV.value,IJb=pS(j7,W6V,cO.duration),AnK=M8(j7.init),xHY=M8(j7.index),wjl=KS(j7.url,j7.sp,j7.s);wjl&&uG(cO,new E4(wjl,IJb,AnK,xHY))}n2j=cO}dbe=n2j}var eAi=
dbe;if(bB.length>0){var aef=bB[0];if(this.L().playerStyle==="hangouts-meet"&&aef.url){var PUu=g.LP(aef.url);this.Cv=this.Cv||Number(PUu.expire)}}var CUD=this.isLivePlayback&&!this.Ph&&!this.T7&&!this.isPremiere;this.j("html5_live_head_playable")&&(!hF(this)&&CUD&&this.IH("missingLiveHeadPlayable",{}),this.z7.AB==="yt"&&(eAi.VA=!0));JE=eAi}else JE=null;this.IH("pafmts",{isManifestFilled:!!JE})}if(JE){yq(this,JE);var $bi=!0}else $bi=!1;$bi?this.enableServerStitchedDai=this.enableServerStitchedDai&&
L3(this):this.jq&&(this.z7.AB==="yt"&&this.bP()&&this.j("drm_manifestless_unplugged")&&this.j("html5_deprecate_manifestful_fallback")?this.IH("deprecateMflFallback",{}):this.oM=!0)}var ulR=u.adpings;ulR&&(this.Zi=ulR?jp(ulR):null);var tyb=u.feature;tyb&&(this.jK=tyb);var Wtn=u.referrer;Wtn&&(this.referrer=Wtn);this.clientScreenNonce=ZD(this.clientScreenNonce,u.csn);this.tH=LF(this.tH,u.root_ve_type);this.Hp=LF(this.Hp,u.kids_age_up_mode);this.Td||u.kids_app_info==void 0||(this.kidsAppInfo=u.kids_app_info);
this.Td&&u.kids_app_info!=null&&(this.kidsAppInfo=u.kids_app_info);this.l6=jt(this.l6,u.upg_content_filter_mode);this.unpluggedFilterModeType=LF(this.unpluggedFilterModeType,u.unplugged_filter_mode_type);var Ftf=u.unplugged_location_info;Ftf&&(this.AB=Ftf);var b4V=u.unplugged_partner_opt_out;b4V&&(this.W4=ZD("",b4V));this.R3=jt(this.R3,u.disable_watch_next);this.sF=ZD(this.sF,u.internal_ip_override);this.AX=!!u.is_yto_interstitial;(this.interstitials.length||this.AX)&&this.gw.push("yto");var E2a=
u.tC;E2a&&(this.tC=E2a);var kNn;this.jd=(kNn=u.csi_timer)!=null?kNn:"";this.Wp=!!u.force_gvi;u.watchUrl&&(this.watchUrl=u.watchUrl);var I6=u.watch_endpoint;this.j("html5_attach_watch_endpoint_ustreamer_config")&&I6&&YLn(this,I6);if(I6==null?0:I6.ustreamerConfig)this.kc=ki(I6.ustreamerConfig);var g2n,uVn,jXR=I6==null?void 0:(g2n=I6.loggingContext)==null?void 0:(uVn=g2n.qoeLoggingContext)==null?void 0:uVn.serializedContextData;jXR&&(this.r8=jXR);g.MW(this.z7)&&this.z7.gD&&(this.embedsRct=ZD(this.embedsRct,
u.rct),this.embedsRctn=ZD(this.embedsRctn,u.rctn));this.z2=this.z2||!!u.pause_at_start;u.default_active_source_video_id&&(this.defaultActiveSourceVideoId=u.default_active_source_video_id)};
g.K.L=function(){return this.z7};
g.K.j=function(u){return this.z7.j(u)};
g.K.VO=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.K.hasSupportedAudio51Tracks=function(){var u;return!((u=this.Zg)==null||!u.e7)};
g.K.getUserAudio51Preference=function(){var u=1;sb(this.z7)&&this.j("html5_ytv_surround_toggle_default_off")?u=0:g.dS(this.z7)&&this.isLivePlayback&&this.v7()&&(u=0);var h;return(h=g.Gj("yt-player-audio51"))!=null?h:u};
g.K.OG=function(){this.ww()||(this.G.N||this.G.unsubscribe("refresh",this.OG,this),this.pC(-1))};
g.K.pC=function(u){if(!this.isLivePlayback||!this.T||this.T.flavor!=="fairplay"){var h=sAw(this.G,this.Iz);if(h.length>0){for(var L=g.C(h),Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.startSecs=Math.max(Z.startSecs,this.yF());this.publish("cuepointupdated",h,u);this.Iz+=h.length;if(L3(this)&&this.z7.UU())for(h=g.C(h),L=h.next();!L.done;L=h.next())L=L.value,this.IH("cuepoint",{segNum:u,event:L.event,startSecs:L.startSecs,id:L.identifier.slice(-16)}),L.event==="start"&&(L=L.startSecs,this.Sr.start=this.VA,
this.Sr.end=L+3)}}};
g.K.LN=function(){this.ww()||(this.loading=!1,this.publish("dataloaded"))};
g.K.v7=function(){return this.Yt!==void 0?this.Yt:this.Yt=!!this.ji||!!this.G&&R3(this.G)};
g.K.mG=function(u){var h=this;if(this.ww())return NI();this.XN=this.xl=this.X=null;jS(this,"html5_high_res_logging_always")&&(this.z7.jx=!0);return mUj(this,u).then(void 0,function(){return dUn(h,u)}).then(void 0,function(){return VDl(h)}).then(void 0,function(){return s4V(h)})};
g.K.p7=function(){if(this.cotn)return null;var u=g.Qr(this.z7)||this.j("web_l3_storyboard");if(!this.u9)if(this.playerResponse&&this.playerResponse.storyboards){var h=this.playerResponse.storyboards,L=h.playerStoryboardSpecRenderer;L&&L.spec?this.u9=new N1(L.spec,this.lengthSeconds,void 0,!1,u):(h=h.playerLiveStoryboardSpecRenderer)&&h.spec&&this.G&&(L=ajl(this.G.G).index)&&(this.u9=new Gw(h.spec,this.G.isLive,L,u))}else this.Bd?this.u9=new N1(this.Bd,this.lengthSeconds,void 0,!1,u):this.bE&&this.G&&
(h=ajl(this.G.G).index)&&(this.u9=new Gw(this.bE,this.G.isLive,h,u));return this.u9};
g.K.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var u=this.playerResponse.storyboards;return(u=u.playerStoryboardSpecRenderer||u.playerLiveStoryboardSpecRenderer)&&u.spec||null}return this.Bd||this.bE};
g.K.T1=function(){return this.G&&!isNaN(this.G.T1())?this.G.T1():L3(this)?0:this.lengthSeconds};
g.K.yF=function(){return this.G&&!isNaN(this.G.yF())?this.G.yF():0};
g.K.getPlaylistSequenceForTime=function(u){if(this.G&&this.N){var h=this.G.G[this.N.id];if(!h)return null;var L=h.index.K0(u);h=h.index.getStartTime(L);return{sequence:L,elapsed:Math.floor((u-h)*1E3)}}return null};
g.K.ih=function(){return!this.ww()&&!(!this.videoId&&!this.wD)};
g.K.nX=function(){var u,h,L;return!!this.adaptiveFormats||!!((u=this.playerResponse)==null?0:(h=u.streamingData)==null?0:(L=h.adaptiveFormats)==null?0:L.length)};
g.K.isLoaded=function(){return Bu(this)&&!this.oM&&!this.i8};
g.K.Po=function(u){u||(u="hqdefault.jpg");var h=this.Y[u];return h||this.z7.RH||u==="pop1.jpg"||u==="pop2.jpg"||u==="sddefault.jpg"||u==="hq720.jpg"||u==="maxresdefault.jpg"?h:zg(this.z7,this.videoId,u)};
g.K.bP=function(){return this.isLivePlayback||this.Ph||this.T7||!(!this.liveUtcStartSeconds||!this.Be)};
g.K.isOtf=function(){return!!this.G&&(this.G.isOtf||!this.Ph&&!this.isLivePlayback&&this.G.N)};
g.K.getAvailableAudioTracks=function(){return this.X?this.X.getAvailableAudioTracks().length>0?this.X.getAvailableAudioTracks():this.dL||[]:[]};
g.K.getAudioTrack=function(){var u=this;if(this.B&&!tg(this.B))return g.Fg(this.getAvailableAudioTracks(),function(Z){return Z.id===u.B.id})||this.XU;
if(this.dL){if(!this.fE)for(var h=g.C(this.dL),L=h.next();!L.done;L=h.next())if(L=L.value,L.tM.getIsDefault()){this.fE=L;break}return this.fE||this.XU}return this.XU};
g.K.getPlayerResponse=function(){return this.playerResponse};
g.K.getWatchNextResponse=function(){return this.aH};
g.K.getHeartbeatResponse=function(){return this.ym};
g.K.Wm=function(){return this.watchUrl?this.watchUrl:this.z7.getVideoUrl(this.videoId)};
g.K.uC=function(){return!!this.G&&(UOs(this.G)||Gaa(this.G)||HlR(this.G))};
g.K.getEmbeddedPlayerResponse=function(){return this.jZ};
g.K.LV=function(){return(this.eventLabel||this.z7.DI)==="shortspage"};
g.K.isAd=function(){return this.nf||!!this.adFormat};
g.K.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.K.KZ=function(){var u,h,L;return this.isDaiEnabled()&&!!((u=this.playerResponse)==null?0:(h=u.playerConfig)==null?0:(L=h.daiConfig)==null?0:L.ssaEnabledPlayback)};
g.K.Va=function(){return OOV(this)?this.X2:this.zp||this.Gz};
g.K.gx=function(){return this.RF||this.Gz};
g.K.ZP=function(){return jS(this,"html5_samsung_vp9_live")};
g.K.IH=function(u,h,L){this.publish("ctmp",u,h,L)};
g.K.wq=function(u,h,L){this.publish("ctmpstr",u,h,L)};
g.K.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.K.getGetAdBreakContext=function(u,h){u=u===void 0?NaN:u;h=h===void 0?NaN:h;var L={isSabr:EX(this)},Z,y=(Z=this.getHeartbeatResponse())==null?void 0:Z.adBreakHeartbeatParams;y&&(L.adBreakHeartbeatParams=y);if(this.j("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.G&&!isNaN(u)&&!isNaN(h)){h=u-h;for(var R in this.G.G)if(Z=this.G.G[R],Z.info.Wr()||Z.info.GD())if(Z=Z.index,Z.isLoaded()){R=Z.K0(h);Z=Z.Nr(R)+h-Z.getStartTime(R);this.IH("gabc",{t:u.toFixed(3),mt:h.toFixed(3),sg:R,igt:Z.toFixed(3)});
L.livePlaybackPosition={utcTimeMillis:""+(Z*1E3).toFixed(0)};break}}return L};
g.K.isEmbedsShortsMode=function(u,h){if(!g.MW(this.z7))return!1;var L;if(!this.j("embeds_enable_emc3ds_shorts")&&((L=this.z7.getWebPlayerContextConfig())==null?0:L.embedsEnableEmc3ds)||(this.z7.gw||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||h)return!1;var Z,y;return!!(((Z=this.embeddedPlayerConfig)==null?0:(y=Z.embeddedPlayerFlags)==null?0:y.isShortsExperienceEligible)&&u.width<=u.height)};
g.K.Ni=function(){g.yV.prototype.Ni.call(this);this.Zi=null;delete this.AP;delete this.accountLinkingConfig;delete this.G;this.X=this.ym=this.playerResponse=this.aH=null;this.Qs=this.adaptiveFormats="";delete this.botguardData;this.e7=this.suggestions=this.h6=null;this.sabrContextUpdates.clear()};var Pma={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},CmL={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},A$L={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},Dnl={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"},I2i={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},c$V={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"},xnn={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.P(ET,g.m);g.K=ET.prototype;g.K.handleExternalCall=function(u,h,L){var Z=this.state.V[u],y=this.state.S[u],R=Z;if(y)if(L&&Ws(L,ZaV))R=y;else if(!Z)throw Error('API call from an untrusted origin: "'+L+'"');this.logApiCall(u,L);if(R){L=!1;Z=g.C(h);for(y=Z.next();!y.done;y=Z.next())if(String(y.value).includes("javascript:")){L=!0;break}L&&g.G3(Error('Dangerous call to "'+u+'" with ['+h+"]."));return R.apply(this,h)}throw Error('Unknown API method: "'+u+'".');};
g.K.logApiCall=function(u,h,L){var Z=this.app.L();Z.sF&&!this.state.Y.has(u)&&(this.state.Y.add(u),g.pM("webPlayerApiCalled",{callerUrl:Z.loaderUrl,methodName:u,origin:h||void 0,playerStyle:Z.playerStyle||void 0,embeddedPlayerMode:Z.gw,errorCode:L}))};
g.K.publish=function(u){var h=g.NL.apply(1,arguments);this.state.X.publish.apply(this.state.X,[u].concat(g.l(h)));if(u==="videodatachange"||u==="resize"||u==="cardstatechange")this.state.N.publish.apply(this.state.N,[u].concat(g.l(h))),this.state.B.publish.apply(this.state.B,[u].concat(g.l(h)))};
g.K.hB=function(u){var h=g.NL.apply(1,arguments);this.state.X.publish.apply(this.state.X,[u].concat(g.l(h)));this.state.N.publish.apply(this.state.N,[u].concat(g.l(h)))};
g.K.fH=function(u){var h=g.NL.apply(1,arguments);this.state.X.publish.apply(this.state.X,[u].concat(g.l(h)));this.state.N.publish.apply(this.state.N,[u].concat(g.l(h)));this.state.B.publish.apply(this.state.B,[u].concat(g.l(h)))};
g.K.EX=function(u){var h=g.NL.apply(1,arguments);this.state.X.publish.apply(this.state.X,[u].concat(g.l(h)));this.state.N.publish.apply(this.state.N,[u].concat(g.l(h)));this.state.B.publish.apply(this.state.B,[u].concat(g.l(h)));this.state.T.publish.apply(this.state.T,[u].concat(g.l(h)))};
g.K.j=function(u){return this.app.L().j(u)};
g.K.Ni=function(){if(this.state.element){var u=this.state.element,h;for(h in this.state.G)this.state.G.hasOwnProperty(h)&&(u[h]=null);this.state.element=null}g.m.prototype.Ni.call(this)};g.P(h7,g.vx);h7.prototype.publish=function(u){var h=g.NL.apply(1,arguments);if(this.T.has(u))return this.T.get(u).push(h),!0;var L=!1;try{for(h=[h],this.T.set(u,h);h.length;)L=g.vx.prototype.publish.call.apply(g.vx.prototype.publish,[this,u].concat(g.l(h.shift())))}finally{this.T.delete(u)}return L};g.P(LU,g.m);LU.prototype.Ni=function(){this.T.dispose();this.B.dispose();this.N.dispose();this.X.dispose();this.Y=this.G=this.S=this.V=this.C=void 0};var vTi=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.P(yA,ET);g.K=yA.prototype;g.K.getApiInterface=function(){return Array.from(this.state.C)};
g.K.Xg=function(u,h){this.state.T.subscribe(u,h)};
g.K.R8H=function(u,h){this.state.T.unsubscribe(u,h)};
g.K.getPlayerState=function(u){return PJl(this.app,u)};
g.K.E9=function(){return PJl(this.app)};
g.K.bBa=function(u,h,L){KU(this)&&(V7(this.app,!0,1),w6(this.app,u,h,L,1))};
g.K.getCurrentTime=function(u,h,L){var Z=this.getPlayerState(u);if(this.app.getAppState()===2&&Z===5){var y;return((y=this.app.getVideoData())==null?void 0:y.startSeconds)||0}return this.j("web_player_max_seekable_on_ended")&&Z===0?crf(this.app,u):u?this.app.getCurrentTime(u,h,L):this.app.getCurrentTime(u)};
g.K.K9=function(){return this.app.getCurrentTime(1)};
g.K.w0=function(){var u=this.app.Nr(1);return isNaN(u)?this.getCurrentTime(1):u};
g.K.O9=function(){return this.app.getDuration(1)};
g.K.FF=function(u,h){u=g.pX(Math.floor(u),0,100);isFinite(u)&&Gp(this.app,{volume:u,muted:this.isMuted()},h)};
g.K.JaB=function(u){this.FF(u,!1)};
g.K.V5=function(u){Gp(this.app,{muted:!0,volume:this.getVolume()},u)};
g.K.PPI=function(){this.V5(!1)};
g.K.qw=function(u){pU(this.app)&&!this.j("embeds_enable_emc3ds_muted_autoplay")||Gp(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},u)};
g.K.j7A=function(){pU(this.app)&&this.j("embeds_enable_emc3ds_muted_autoplay")||this.qw(!1)};
g.K.getPlayerMode=function(){var u={};this.app.getVideoData().Rc&&(u.pfp={enableIma:g.$H(this.app.getVideoData())&&this.app.iF().allowImaMonetization,autoplay:Bz(this.app.iF()),mutedAutoplay:this.app.iF().mutedAutoplay});return u};
g.K.bz=function(){var u=this.app.getPresentingPlayerType();if(u===2&&!this.app.Aa()){var h=dI(this.app.uP());if(!x5n(h)||PkR(h))return}u===3?MT(this.app.uP()).tY("control_play"):this.app.L().j("html5_ssap_ignore_play_for_ad")&&g.dC(this.app.iF())&&u===2||this.app.playVideo(u)};
g.K.P2I=function(){V7(this.app,!0,1);this.bz()};
g.K.pauseVideo=function(u){var h=this.app.getPresentingPlayerType();if(h!==2||this.app.Aa()||x5n(dI(this.app.uP())))h===3?MT(this.app.uP()).tY("control_pause"):this.app.pauseVideo(h,u)};
g.K.MDA=function(){var u=this.app,h=!1;u.xI.nH&&(u.pI.publish("pageTransition"),h=!0);u.stopVideo(h)};
g.K.clearVideo=function(){};
g.K.getAvailablePlaybackRates=function(){var u=this.app.L();return u.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(u.B?u.ancestorOrigins[0]:window.location.origin)||u.Lm?r8q:u.supportsVarispeedExtendedFeatures?BY7:u.j("web_remix_allow_up_to_3x_playback_rate")&&g.rp(u)?zJy:Ts:[1]};
g.K.getPlaybackQuality=function(u){return(u=this.app.HJ(u))?u.getPlaybackQuality():"unknown"};
g.K.L7B=function(){};
g.K.getAvailableQualityLevels=function(u){return(u=this.app.HJ(u))?(u=g.Xx(u.dn(),function(h){return h.quality}),u.length&&(u[0]==="auto"&&u.shift(),u=u.concat(["auto"])),u):[]};
g.K.Xp=function(){return this.getAvailableQualityLevels(1)};
g.K.Wq=function(){return this.RD()};
g.K.s9=function(){return 1};
g.K.getVideoLoadedFraction=function(u){return this.app.getVideoLoadedFraction(u)};
g.K.RD=function(){return this.getVideoLoadedFraction()};
g.K.Sn=function(){return 0};
g.K.getSize=function(){var u=this.app.m_().getPlayerSize();return{width:u.width,height:u.height}};
g.K.setSize=function(){this.app.m_().resize()};
g.K.loadVideoById=function(u,h,L,Z){if(!u)return!1;u=Z5(u,h,L);return this.app.loadVideoByPlayerVars(u,Z)};
g.K.eFd=function(u,h,L){u=this.loadVideoById(u,h,L,1);V7(this.app,u,1)};
g.K.cueVideoById=function(u,h,L,Z){u=Z5(u,h,L);this.app.cueVideoByPlayerVars(u,Z)};
g.K.nD=function(u,h,L){this.cueVideoById(u,h,L,1)};
g.K.loadVideoByUrl=function(u,h,L,Z){u=X6l(u,h,L);return this.app.loadVideoByPlayerVars(u,Z)};
g.K.AMa=function(u,h,L){u=this.loadVideoByUrl(u,h,L,1);V7(this.app,u,1)};
g.K.cueVideoByUrl=function(u,h,L,Z){u=X6l(u,h,L);this.app.cueVideoByPlayerVars(u,Z)};
g.K.uJ=function(u,h,L){this.cueVideoByUrl(u,h,L,1)};
g.K.ZE=function(){var u=this.app.L();if(u.RH)return"";var h=this.app.iF(),L=void 0;h.isLivePlayback||(L=Math.floor(this.app.getCurrentTime(1)));return u.getVideoUrl(h.videoId,this.getPlaylistId()||void 0,L)};
g.K.r0=function(){return this.app.getDebugText()};
g.K.getVideoEmbedCode=function(){var u=this.app.L();if(u.RH)return"";var h=this.app.iF();return u.getVideoEmbedCode(h.isPrivate?"":h.title,this.app.iF().videoId,this.app.m_().getPlayerSize(),this.getPlaylistId()||void 0)};
g.K.ud=function(u,h,L){return XNs(this.app,u,h,L)};
g.K.removeCueRange=function(u){return q9w(this.app,u)};
g.K.loadPlaylist=function(u,h,L,Z){this.app.loadPlaylist(u,h,L,Z)};
g.K.xpg=function(u,h,L,Z){this.loadPlaylist(u,h,L,Z);V7(this.app,!0,1)};
g.K.cuePlaylist=function(u,h,L,Z){this.app.cuePlaylist(u,h,L,Z)};
g.K.nextVideo=function(u,h){this.app.nextVideo(u,h)};
g.K.ElB=function(){this.nextVideo();V7(this.app,!0,1)};
g.K.previousVideo=function(u){this.app.previousVideo(u)};
g.K.HZB=function(){this.previousVideo();V7(this.app,!0,1)};
g.K.playVideoAt=function(u){this.app.playVideoAt(u)};
g.K.bZg=function(u){this.playVideoAt(u);V7(this.app,!0,1)};
g.K.setShuffle=function(u){var h=this.app.getPlaylist();h&&h.setShuffle(u)};
g.K.setLoop=function(u){var h=this.app.getPlaylist();h&&(h.loop=u)};
g.K.jn=function(){var u=this.app.getPlaylist();if(!u)return null;for(var h=[],L=0;L<u.getLength();L++){var Z=g.XW(u,L);Z&&h.push(Z.videoId)}return h};
g.K.getPlaylistIndex=function(){var u=this.app.getPlaylist();return u?u.index:-1};
g.K.getPlaylistId=function(){var u=this.app.getPlaylist();return u&&u.listId?u.listId.toString():null};
g.K.y9=function(u){u==="captions"&&(u=g.By(this.app.uP()))&&!u.loaded&&u.load()};
g.K.dV=function(u){u==="captions"&&(u=g.By(this.app.uP()))&&u.loaded&&u.s7w()};
g.K.ya=function(u,h,L){if(!h)return null;var Z=this.app.uP();return u==="captions"?(u=g.By(Z))&&u.B7(h,L):null};
g.K.TP=function(u,h,L){return this.app.IP().getVideoData().isPrivate&&this.app.L().B?{}:this.ya(u,h,L)};
g.K.gr=function(u){var h=this.app.uP();if(u==="captions"){var L;return((L=g.By(h))==null?void 0:L.getOptions())||null}return u?null:(u=[],g.By(h)&&u.push("captions"),u)};
g.K.getVolume=function(){return this.app.YW.volume};
g.K.isMuted=function(){return this.app.YW.muted};
g.K.destroy=function(){this.app.dispose()};
g.K.logImaAdEvent=function(u,h){var L=this.app.L();g.$H(this.app.getVideoData())&&this.app.iF().allowImaMonetization&&(u={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:h,embedUrl:g.iXe(this.app.L().loaderUrl),eventType:u,youtubeHost:g.BY(this.app.L().a7)||""},u.embeddedPlayerMode=L.gw,g.pM("embedsAdEvent",u))};
g.K.mutedAutoplay=function(u){var h=this.app.L(),L,Z,y;((L=h.getWebPlayerContextConfig())==null?0:(Z=L.embedsHostFlags)==null?0:(y=Z.allowMutedAutoplayDurationMode)==null?0:y.length)&&!h.X&&this.app.mutedAutoplay(u)};
g.K.preloadVideoById=function(u,h,L,Z){var y,R;((y=this.app.L().getWebPlayerContextConfig())==null?0:(R=y.embedsHostFlags)==null?0:R.allowPreloadVideoById)&&u&&(u=Z5(u,h,L),this.app.preloadVideoByPlayerVars(u,Z))};
g.K.WgI=function(u,h,L){this.preloadVideoById(u,h,L,1)};
g.K.setFauxFullscreen=function(u){g.A2();this.app.AC(u?2:0)};
g.K.VSB=function(u){var h,L;((h=this.app.L().getWebPlayerContextConfig())==null?0:(L=h.embedsHostFlags)==null?0:L.allowSetFauxFullscreen)&&this.setFauxFullscreen(u)};
g.K.wakeUpControls=function(){var u=g.Rv(this);u&&u.Bc()};var Unf="driveweb flix flix_from_driveweb hovercard projector texmex wshbp".split(" ");g.P(J7,yA);g.K=J7.prototype;g.K.zQ=function(u,h){this.state.B.subscribe(u,h)};
g.K.nNI=function(u,h){this.state.B.unsubscribe(u,h)};
g.K.cueVideoByPlayerVars=function(u,h){this.app.cueVideoByPlayerVars(u,h)};
g.K.dP=function(u,h){h=h===void 0?1:h;this.cueVideoByPlayerVars(On(this,u),h)};
g.K.loadVideoByPlayerVars=function(u,h,L,Z,y){this.app.loadVideoByPlayerVars(u,L,h,Z,y)};
g.K.I3w=function(u,h,L,Z){L=L===void 0?1:L;this.loadVideoByPlayerVars(On(this,u),h,L,Z)};
g.K.preloadVideoByPlayerVars=function(u,h,L,Z,y){L=L===void 0?NaN:L;this.app.preloadVideoByPlayerVars(u,h,L,Z===void 0?"":Z,y===void 0?"":y)};
g.K.Lgg=function(u,h,L,Z){h=h===void 0?1:h;this.preloadVideoByPlayerVars(On(this,u),h,L,Z)};
g.K.b1=function(u,h,L){this.loadVideoById(u,h,L,1)};
g.K.PM=function(u,h,L){this.loadVideoByUrl(u,h,L,1)};
g.K.p9=function(u){return this.getPlayerState(u)};
g.K.AZ=function(u){u=u===void 0?1:u;var h=T4b(this,u);if(u=this.app.HJ(u)){u=u.getVideoData();h.backgroundable=u.backgroundable;h.eventId=u.eventId;h.cpn=u.clientPlaybackNonce;h.isLive=u.isLivePlayback;h.isWindowedLive=u.T7;h.isManifestless=L3(u);h.allowLiveDvr=u.allowLiveDvr;h.isListed=u.isListed;u.liveUtcStartSeconds!=null&&(h.liveUtcStartSeconds=u.liveUtcStartSeconds);u.v7()&&(h.isEncrypted=!0);if(u.X)for(var L=g.C(u.X.videoInfos),Z=L.next();!Z.done;Z=L.next()){var y=void 0;if((y=Z.value.video)==
null?0:y.isHdr()){h.isHdr=!0;break}}var R,p;h.isMultiChannelAudio=!!((R=u.B)==null?0:(p=R.audio)==null?0:p.isMultiChannelAudio())}return h};
g.K.seekBy=function(u,h,L,Z,y){KU(this)&&w6(this.app,this.app.getCurrentTime()+u,h,L,y,Z)};
g.K.caI=function(u,h,L){this.seekBy(u,h,L,void 0,1)};
g.K.seekTo=function(u,h,L,Z,y){KU(this)&&w6(this.app,u,h,L,Z,y)};
g.K.Pty=function(u,h,L,Z){this.seekTo(u,h,L,Z===void 0?1:Z)};
g.K.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.K.DE=function(u,h){return this.getCurrentTime(u===void 0?1:u,h)};
g.K.gR=function(){var u=this.app.getPresentingPlayerType(!0);u===2&&this.app.Aa()&&(u=1);return u};
g.K.getDuration=function(u,h){if(this.gR()===3){var L;return((L=MT(this.app.uP()).getProgressState())==null?void 0:L.duration)||0}return u?this.app.getDuration(u,h):this.app.getDuration(u)};
g.K.j0=function(u,h){return this.getDuration(u===void 0?1:u,h)};
g.K.Hq=function(u){return this.getVideoLoadedFraction(u)};
g.K.loadModule=function(u){if(u==="annotations_module"){var h=g.sE(this.app.uP());h&&!h.loaded&&h.load()}this.y9(u)};
g.K.unloadModule=function(u){if(u==="annotations_module"){var h=g.sE(this.app.uP());h&&h.loaded&&h.unload()}this.dV(u)};
g.K.getOption=function(u,h,L,Z){return(Z=this.app.HJ(Z))&&Z.getVideoData().isPrivate&&this.app.L().B?{}:this.setOption(u,h,L)};
g.K.t0=function(u,h,L){return this.getOption(u,h,L,1)};
g.K.getOptions=function(u){var h=this.app.uP();switch(u){case "ad":var L,Z;return((L=dI(h))==null?void 0:(Z=L.getOptions)==null?void 0:Z.call(L))||null;case "remote":var y,R;return((y=MT(h))==null?void 0:(R=y.getOptions)==null?void 0:R.call(y))||null;case "annotations_module":var p,J;return((p=g.sE(h))==null?void 0:(J=p.getOptions)==null?void 0:J.call(p))||null;case "creatorendscreen":var O,f;return((O=wI(h))==null?void 0:(f=O.getOptions)==null?void 0:f.call(O))||null;case "unplugged":var D,c;return((D=
g.Vh(h))==null?void 0:(c=D.getOptions)==null?void 0:c.call(D))||null;case "kids":var I,A;return((I=GJL(h))==null?void 0:(A=I.getOptions)==null?void 0:A.call(I))||null}if(!u){u=this.gr();if(!u)return u;dI(h)&&u.push("ad");MT(h)&&u.push("remote");g.sE(h)&&u.push("annotations_module");wI(h)&&u.push("creatorendscreen");g.Vh(h)&&u.push("unplugged");GJL(h)&&u.push("kids");return u}return this.gr(u)};
g.K.setOption=function(u,h,L){if(!h)return null;var Z=this.app.uP();switch(u){case "ad":return(u=dI(Z))&&u.B7&&u.B7(h,L);case "kids":return(u=GJL(Z))&&u.B7(h,L);case "remote":return(u=MT(Z))&&u.B7(h,L);case "unplugged":return(u=g.Vh(Z))&&u.B7(h,L);case "annotations_module":return(u=g.sE(Z))&&u.B7(h,L);case "creatorendscreen":return(u=wI(Z))&&u.B7(h,L)}return this.ya(u,h,L)};
g.K.addCueRange=function(u,h,L,Z,y){return XNs(this.app,u,h,L,Z,y)};
g.K.getDebugText=function(u){return this.app.getDebugText(u)};
g.K.getCurrentBroadcastId=function(){return null};
g.K.handleGlobalKeyDown=function(u,h,L,Z,y,R,p,J){h=h===void 0?!1:h;L=L===void 0?!1:L;Z=Z===void 0?!1:Z;y=y===void 0?!1:y;var O=g.Rv(this);O&&O.handleGlobalKeyDown(u,h,L,Z,y,R,p,J)};
g.K.handleGlobalKeyUp=function(u,h,L,Z,y,R,p){h=h===void 0?!1:h;L=L===void 0?!1:L;Z=Z===void 0?!1:Z;y=y===void 0?!1:y;var J=g.Rv(this);J&&J.handleGlobalKeyUp(u,h,L,Z,y,R,p)};
g.K.setSizeStyle=function(u,h){this.app.setSizeStyle(u,h)};
g.K.showControls=function(){var u=g.Rv(this);u&&u.showControls(!0)};
g.K.hideControls=function(){var u=g.Rv(this);u&&u.showControls(!1)};
g.K.getVideoContentRect=function(u){u=this.app.m_().getVideoContentRect(u);return{left:u.left,top:u.top,width:u.width,height:u.height}};
g.K.toggleFullscreen=function(){function u(L){g.G3(L)}
var h=this.app.L();if(h.externalFullscreen){if(!g.wS(h))return this.isFullscreen()?PD(window.document.documentElement):IO(window.document.documentElement).catch(u)}else if(g.A2()||h.S)return this.isFullscreen()?PD(x9()):h.controlsType!=="3"&&g.A2()?IO(this.app.m_().element).catch(u):(h=this.app.yQ().lP())?IO(h).catch(u):Promise.reject(Error("Media element missing"));this.EX("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.K.isFullscreen=function(){return this.app.isFullscreen()};
g.K.PS=function(){return this.app.PS()};
g.K.cancelPlayback=function(){var u=dI(this.app.uP());u&&u.created&&u.destroy();(u=this.app.WX())&&u.stopVideo();(u=this.app.uP().u2.get("endscreen"))&&u.Uig()&&g.CU(this.app.pI,!0)};
g.K.getProgressState=function(u){if(this.gR()===3)return MT(this.app.uP()).getProgressState();var h=this.app.getVideoData(),L=this.app.HJ(u)||this.app.WX(),Z=L.getPlayerType();a:{var y=this.app.getVideoData();var R;if((R=y.progressBarStartPosition)==null?0:R.utcTimeMillis)if(y=Number(y.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(y)){y=fU(this,y,u);break a}y=0}var p;a:{R=this.app.getVideoData();if((p=R.progressBarEndPosition)==null?0:p.utcTimeMillis)if(p=Number(R.progressBarEndPosition.utcTimeMillis)/
1E3,!isNaN(p)){p=fU(this,p,u);break a}p=0}R=this.getCurrentTime(u);u=this.getDuration(u);var J=this.app.Nr(Z),O=this.app.isAtLiveHead(Z),f=this.app.t1();var D=this.app;var c=D.HJ(Z);c?(c=Xw(D,c),D=r6(D,c.zZ(),c)):D=0;c=crf(this.app,Z);L=L.df();var I=this.app.getVideoData().ag;Z=!I||isNaN(I)?0:fU(this,I,Z);return{airingStart:y,airingEnd:p,allowSeeking:this.app.VO(),clipEnd:h.clipEnd,clipStart:h.clipStart,current:R,displayedStart:-1,duration:u,ingestionTime:J,isAtLiveHead:O,loaded:f,seekableStart:D,
seekableEnd:c,offset:L,viewerLivestreamJoinMediaTime:Z}};
g.K.isInline=function(){return this.app.isInline()};
g.K.setInline=function(u){this.app.setInline(u)};
g.K.qA=function(){return this.app.IP().IV(!0)};
g.K.toggleSubtitles=function(){var u=g.By(this.app.uP());u&&u.yd7()};
g.K.getPlayerSize=function(){var u=this.app.m_().getPlayerSize();return{width:u.width,height:u.height}};
g.K.setCenterCrop=function(u){this.app.m_().setCenterCrop(u)};
g.K.getLoopVideo=function(){return this.app.getLoopVideo()};
g.K.setLoopVideo=function(u){this.app.setLoopVideo(u)};
var N4f="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(" "),
HOn="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 KD={},r$1=(KD["api.invalidparam"]=2,KD.auth=150,KD["drm.auth"]=150,KD["heartbeat.net"]=150,KD["heartbeat.servererror"]=150,KD["heartbeat.stop"]=150,KD["html5.unsupportedads"]=5,KD["fmt.noneavailable"]=5,KD["fmt.decode"]=5,KD["fmt.unplayable"]=5,KD["html5.missingapi"]=5,KD["html5.unsupportedlive"]=5,KD["drm.unavailable"]=5,KD["mrm.blocked"]=151,KD["embedder.identity.denied"]=152,KD);g.P(g.D5,J7);g.K=g.D5.prototype;g.K.isExternalMethodAvailable=function(u,h){return this.state.V[u]?!0:!!(this.state.S[u]&&h&&Ws(h,ZaV))};
g.K.getBandwidthEstimate=function(){return Dr(this.app.L().schedule)};
g.K.reportPlaybackIssue=function(u){u=u===void 0?"":u;var h=this.app.WX();h&&(u={gpu:(0,g.GV)(),d:u},h.handleError(new lZ("feedback",u)))};
g.K.getInternalApi=function(){return Object.assign({},this.state.G)};
g.K.getInternalApiInterface=function(){return g.ST(this.state.G)};
g.K.queueNextVideo=function(u,h,L,Z,y){L=L===void 0?NaN:L;this.app.queueNextVideo(u,h,L,Z===void 0?"":Z,y===void 0?"":y)};
g.K.Pq=function(u){u=this.app.getPlayerStateObject(u);return{isBuffering:g.F(u,1),isCued:u.isCued(),isDomPaused:g.F(u,1024),isEnded:g.F(u,2),isError:g.F(u,128),isOrWillBePlaying:u.isOrWillBePlaying(),isPaused:u.isPaused(),isPlaying:u.isPlaying(),isSeeking:g.F(u,16),isUiSeeking:g.F(u,32),isUnstarted:g.F(u,64)}};
g.K.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
g.K.startSeekCsiAction=function(){this.app.QO().B.G=(0,g.vC)()};
g.K.g0=function(u,h,L){return this.getCurrentTime(u===void 0?1:u,h,L)};
g.K.seekToStreamTime=function(u,h,L,Z){var y=this.app;h=h===void 0?!0:h;var R=y.HJ(1),p=0;R&&R.getStreamTimeOffset()&&!R.df()&&(p=R.getStreamTimeOffset());w6(y,u-p,h,L,1,Z)};
g.K.getStreamTimeOffset=function(){return this.app.IP().getStreamTimeOffset()};
g.K.seekToLiveHead=function(u,h){var L=this.app.IP().getVideoData();L&&L.isLivePlayback&&w6(this.app,Infinity,u,h,1)};
g.K.requestSeekToWallTimeSeconds=function(u,h){this.app.IP().fz(u,h)};
g.K.aLy=function(u,h,L,Z,y){this.seekTo(u,h,L,Z===void 0?1:Z,y)};
g.K.yaA=function(u,h,L,Z){this.seekBy(u,h,L,Z,1)};
g.K.setVolume=function(u,h){this.FF(u,h===void 0?!0:h)};
g.K.mute=function(u){this.V5(u===void 0?!0:u)};
g.K.unMute=function(u){this.qw(u===void 0?!0:u)};
g.K.syncVolume=function(){var u=wkV(this.app);Gp(this.app,{volume:u.volume,muted:u.muted},!1)};
g.K.getAvailableQualityLabels=function(){return g.Xx(this.app.IP().dn(),function(u){return u.qualityLabel})};
g.K.channelSubscribed=function(){this.hB("SUBSCRIBE",this.app.iF().Xy)};
g.K.channelUnsubscribed=function(){this.hB("UNSUBSCRIBE",this.app.iF().Xy)};
g.K.setScreenLayer=function(u){this.app.setScreenLayer(u)};
g.K.getCurrentPlaylistSequence=function(){return this.app.WX().getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.K.getPlaylistSequenceForTime=function(u){return this.app.WX().getPlaylistSequenceForTime(u)};
g.K.shouldSendVisibilityState=function(){return!0};
g.K.confirmYpcRental=function(){this.app.IP().CB("ypc_clickwrap")};
g.K.setHomeGroupInfo=function(u){this.app.L().homeGroupInfo=u};
g.K.setConnectedRemoteApps=function(u){this.app.L().fV=u};
g.K.setLivingRoomAppMode=function(u){this.app.L().livingRoomAppMode=h2("LIVING_ROOM_APP_MODE_UNSPECIFIED",u,gGn)};
g.K.setEnablePrivacyFilter=function(u){this.app.L().enablePrivacyFilter=u===void 0?!1:u};
g.K.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.K.addUtcCueRange=function(u,h,L,Z,y){return vIY(this.app,u,h,L,Z,y)};
g.K.L9=function(u){u=u===void 0?1:u;var h=this.AZ(u);if(u=this.app.HJ(u)){u=u.getVideoData();h.hasProgressBarBoundaries=u.hasProgressBarBoundaries();h.isPremiere=u.isPremiere;h.itct=u.DI;h.playerResponseCpn=u.playerResponseCpn;var L;var Z=u.hasProgressBarBoundaries()&&((L=u.progressBarStartPosition)==null?0:L.utcTimeMillis)?ge(u.progressBarStartPosition.utcTimeMillis):null;h.progressBarStartPositionUtcTimeMillis=Z;var y;L=u.hasProgressBarBoundaries()&&((y=u.progressBarEndPosition)==null?0:y.utcTimeMillis)?
ge(u.progressBarEndPosition.utcTimeMillis):null;h.progressBarEndPositionUtcTimeMillis=L;h.ypcOriginalItct=u.EL;h.ypcPreview=u.ypcPreview;h.paidContentOverlayText=wea(u);h.paidContentOverlayDurationMs=egw(u);u.G&&Lk(u.G)&&(h.usingLocalMedia="true");h.transitionEndpointAtEndOfStream=u.transitionEndpointAtEndOfStream}return h};
g.K.getAdState=function(){return this.app.getAdState()};
g.K.isNotServable=function(u){if(u!==this.app.config.args.video_id)return!1;var h=(u=this.app.IP().getPlayerState())?u.Ad:null;return!!(u&&h&&g.F(u,128)&&B4a(h.errorCode)===5)};
g.K.supportsGaplessAudio=function(){return this.app.L().supportsGaplessAudio()};
g.K.supportsGaplessShorts=function(){return this.app.L().supportsGaplessShorts()};
g.K.enqueueVideoByPlayerVars=function(u,h,L,Z){L=L===void 0?Infinity:L;this.app.enqueueVideoByPlayerVars(u,h,L,Z===void 0?"":Z)};
g.K.clearQueue=function(){this.app.clearQueue()};
g.K.Vg=function(){return g.Rv(this)};
g.K.sendAbandonmentPing=function(){var u;(u=this.app.WX())==null||u.sendAbandonmentPing()};
g.K.setAutonavState=function(u,h){h=h===void 0?!1:h;if(this.j("web_player_autonav_use_server_provided_state")&&!h&&(h=this.app.iF(),h==null?0:sX(h))){if(this.j("web_player_autonav_server_provided_state_pause_killswitch"))return;if(u===3)h.autonavState!==3&&(h.tf=h.autonavState);else if(h.tf!==void 0)u=h.tf,h.tf=void 0;else return}HZf(this.app,u)};
g.K.setAutonav=function(u,h){this.setAutonavState(u?2:1,h===void 0?!1:h)};
g.K.setLoopRange=function(u){this.app.setLoopRange(u)};
g.K.getLoopRange=function(){return this.app.getLoopRange()};
g.K.hasSupportedAudio51Tracks=function(){return this.app.IP().hasSupportedAudio51Tracks()};
g.K.setUserAudio51Preference=function(u,h){this.app.IP().setUserAudio51Preference(u,h===void 0?!1:h)};
g.K.getUserAudio51Preference=function(){return this.app.IP().getUserAudio51Preference()};
g.K.setProximaLatencyPreference=function(u){this.app.IP().setProximaLatencyPreference(u)};
g.K.getProximaLatencyPreference=function(){return this.app.IP().getProximaLatencyPreference()};
g.K.isProximaLatencyEligible=function(){return this.app.IP().isProximaLatencyEligible()};
g.K.getAppState=function(){return this.app.getAppState()};
g.K.updateLastActiveTime=function(){Q8()};
g.K.setBlackout=function(u){this.app.setBlackout(u)};
g.K.setUserEngagement=function(u){this.app.L().Cg!==u&&(this.app.L().Cg=u,this.app.IP().u7())};
g.K.updateSubtitlesUserSettings=function(u,h){h=h===void 0?!0:h;g.By(this.app.uP()).l4(u,h)};
g.K.getCaptionWindowContainerId=function(){var u=g.By(this.app.uP());return u?u.getCaptionWindowContainerId():""};
g.K.toggleSubtitlesOn=function(){var u=g.By(this.app.uP());u&&u.SW()};
g.K.isSubtitlesOn=function(){var u=g.By(this.app.uP());return u?u.isSubtitlesOn():!1};
g.K.getPlayerResponse=function(u){return(u=this.app.HJ(u))?u.getVideoData().getPlayerResponse():null};
g.K.cq=function(){return this.getPlayerResponse(1)};
g.K.getEmbeddedPlayerResponse=function(){return this.app.IP().getVideoData().getEmbeddedPlayerResponse()};
g.K.getWatchNextResponse=function(u){return(u=this.app.HJ(u))?u.getVideoData().getWatchNextResponse():null};
g.K.JE=function(){return this.getWatchNextResponse(1)};
g.K.getHeartbeatResponse=function(u){return(u=this.app.HJ(u))?u.getVideoData().getHeartbeatResponse():null};
g.K.Fp=function(){return this.getHeartbeatResponse(1)};
g.K.getStoryboardFrame=function(u,h){var L=this.app.p7();if(!L)return null;h=L.levels[h];return h?(u=g.Ym(h,u))?{column:u.column,columns:u.columns,height:u.JR,row:u.row,rows:u.rows,url:u.url,width:u.WK}:null:null};
g.K.getStoryboardFrameIndex=function(u,h){var L=this.app.p7();if(!L)return-1;h=L.levels[h];if(!h)return-1;u-=this.df();return h.Vd(u)};
g.K.getStoryboardLevel=function(u){var h=this.app.p7();return h?(h=h.levels[u])?{index:u,intervalMs:h.G,maxFrameIndex:h.jj(),minFrameIndex:h.WE()}:null:null};
g.K.getNumberOfStoryboardLevels=function(){var u=this.app.p7();return u?u.levels.length:0};
g.K.NA=function(){return this.getAudioTrack(1)};
g.K.getAudioTrack=function(u){return(u=this.app.HJ(u))?u.getAudioTrack():this.app.getVideoData().XU};
g.K.setAudioTrack=function(u,h,L){this.gR()===3&&MT(this.app.uP()).tY("control_set_audio_track",u);return(L=this.app.HJ(L))?L.Fq(u,h):!1};
g.K.kDi=function(u,h){return this.setAudioTrack(u,h,1)};
g.K.MA=function(){return this.getAvailableAudioTracks(1)};
g.K.getAvailableAudioTracks=function(u){return this.app.HJ(u).getAvailableAudioTracks()};
g.K.getMaxPlaybackQuality=function(){var u=this.app.IP();return u.getVideoData().N?gZ(u.wr()):"unknown"};
g.K.getUserPlaybackQualityPreference=function(){return this.app.IP().getUserPlaybackQualityPreference()};
g.K.getSubtitlesUserSettings=function(){var u=g.By(this.app.uP());return u?u.U9():null};
g.K.resetSubtitlesUserSettings=function(){g.By(this.app.uP()).gNw()};
g.K.setMinimized=function(u){this.app.setMinimized(u)};
g.K.setOverlayVisibility=function(u){this.publish("overlayvisibilitychange",u)};
g.K.setInlinePreview=function(u){this.app.setInlinePreview(u)};
g.K.setSqueezeback=function(u){this.app.setSqueezeback(u)};
g.K.setGlobalCrop=function(u){this.app.m_().setGlobalCrop(u)};
g.K.setAppFullscreen=function(u){this.app.AC(u?4:0)};
g.K.Ua=function(){return this.app.Ua()};
g.K.getVisibilityState=function(){return this.Ua().getVisibilityState(this.kJ(),this.PS()||g.Xp(this.app.L()),this.isMinimized(),this.isInline(),this.app.Wx(),this.app.I_(),this.app.M0(),this.app.sA())};
g.K.isMutedByMutedAutoplay=function(){return this.app.kG};
g.K.isMutedByEmbedsMutedAutoplay=function(){return pU(this.app)};
g.K.setInternalSize=function(u,h){this.app.m_().setInternalSize(new g.II(u,h))};
g.K.df=function(){var u=this.app.HJ();return u?u.df():0};
g.K.isMinimized=function(){return this.app.isMinimized()};
g.K.Wx=function(){return this.app.Wx()};
g.K.kJ=function(){var u=this.app.WX();return!!u&&u.kJ()};
g.K.setSafetyMode=function(u){this.app.L().enableSafetyMode=u};
g.K.canPlayType=function(u){return this.app.canPlayType(u)};
g.K.updatePlaylist=function(u){if(u){var h=this.getPlaylistId(),L=!1;h&&h!==u.list&&(L=!0);u.external_list!==void 0&&(this.app.kB=jt(!1,u.external_list));var Z=u.video;(h=this.app.getPlaylist())&&!L?this.isFullscreen()&&((L=Z[h.index])&&L.encrypted_id!==g.XW(h).videoId||(u.index=h.index)):Yn(this.app,{list:u.list,index:u.index,playlist_length:Z.length});kOL(this.app.getPlaylist(),u);this.fH("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.K.updateVideoData=function(u,h){g.mg(this.app.IP().getVideoData(),u,h)};
g.K.updateEnvironmentData=function(u){Ub(this.app.L(),u,!1)};
g.K.oNi=function(u){this.app.sendVideoStatsEngageEvent(u,1)};
g.K.productsInVideoVisibilityUpdated=function(u){this.publish("changeProductsInVideoVisibility",u)};
g.K.isAtLiveHead=function(u,h){return this.app.isAtLiveHead(u,h===void 0?!0:h)};
g.K.getVideoAspectRatio=function(){return this.app.m_().getVideoAspectRatio()};
g.K.getPreferredQuality=function(){var u=this.app.WX();return u?u.getPreferredQuality():"unknown"};
g.K.getPlaybackQualityLabel=function(u){if(u=this.app.HJ(u)){var h,L;return((L=(h=u.getVideoData().N)==null?void 0:h.video)==null?void 0:L.qualityLabel)||""}return""};
g.K.setPlaybackQualityRange=function(u,h,L,Z){(Z=this.app.HJ(Z))&&Z.rQ(g.F9(u,h||u,!0,"m"),!0,L)};
g.K.iBy=function(u,h,L){this.setPlaybackQualityRange(u,h,L,1)};
g.K.onAdUxClicked=function(u,h){this.publish("aduxclicked",u,h)};
g.K.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.K.dispatchReduxAction=function(u){g.$m.dispatch(u)};
g.K.highlightSettingsMenuItem=function(u){this.publish("highlightSettingsMenu",u)};
g.K.openSettingsMenuItem=function(u){this.publish("openSettingsMenuItem",u)};
g.K.M7=function(u,h){this.state.N.subscribe(u,h)};
g.K.AaI=function(u,h){this.state.N.unsubscribe(u,h)};
g.K.Nn=function(u,h){this.cueVideoByPlayerVars(u,h===void 0?1:h)};
g.K.G3H=function(u,h,L,Z){this.loadVideoByPlayerVars(u,h,L===void 0?1:L,Z)};
g.K.slI=function(u,h,L,Z){this.preloadVideoByPlayerVars(u,h===void 0?1:h,L,Z)};
g.K.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.K.GN=function(){return g.Rv(this).GN()};
g.K.Bo=function(){return g.Rv(this).Bo()};
g.K.Za=function(){return g.Rv(this).Za()};
g.K.l2=function(){return this.Vg().l2()};
g.K.CY=function(){var u=g.NL.apply(0,arguments),h;(h=this.l2()).CY.apply(h,g.l(u))};
g.K.g2=function(){this.l2().g2()};
g.K.hD=function(){this.l2().hD()};
g.K.Fk=function(){this.l2().hide()};
g.K.aX=function(u,h,L,Z,y,R,p,J){this.l2().aX(u,h,L,Z,y,R,p,J)};
g.K.KO=function(u,h){this.l2().KO(u,h)};
g.K.Kx=function(u,h,L,Z,y){this.Vg().Kx(u,h,L,Z,y)};
g.K.Xz=function(u){this.l2().setEnabled(u)};
g.K.Hd=function(u,h){this.Vg().Hd(u,h)};
g.K.Re=function(u,h){this.Vg().Re(u,h)};
g.K.lK=function(u,h){this.Vg().lK(u,h)};
g.K.t9=function(){this.Vg().t9()};
g.K.T$=function(u,h){this.Vg().T$(u,h)};
g.K.Ch=LV(4);g.K.wE=LV(6);g.K.Yz=LV(9);g.K.f5=LV(12);g.K.renderChapterSeekingAnimation=function(u,h,L){this.Vg().renderChapterSeekingAnimation(u,h,L)};
g.K.HL=function(){this.Vg().HL()};
g.K.getWebPlayerContextConfig=function(){return this.app.L().getWebPlayerContextConfig()};
g.K.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")};
g.K.KE=function(){var u=this.app.WX();return u?u.KE():""};g.P(g.xq,g.D5);g.K=g.xq.prototype;g.K.VX=function(u,h,L,Z,y,R,p){return this.app.VX(u,h,L,Z,y,R,p)};
g.K.TR=function(){return this.app.TR()};
g.K.Z9=LV(14);g.K.uP=function(){return this.app.uP()};
g.K.Ic=function(){var u=this.uP().u2.get("endscreen");return!!u&&u.Ic()};
g.K.getRootNode=function(){return this.m_().element};
g.K.L=function(){return this.app.L()};
g.K.Qt=LV(17);g.K.L0=function(u){return this.app.L0(u)};
g.K.jb=function(){var u;return((u=g.Rv(this))==null?void 0:u.jb())||null};
g.K.Zc=function(){var u;return(u=this.app.WX())==null?void 0:u.Zc()};
g.K.getPlayerStateObject=function(u){return this.app.getPlayerStateObject(u)};
g.K.m_=function(){return this.app.m_()};
g.K.getPlaylist=function(){return this.app.getPlaylist()};
g.K.getVideoData=function(u,h){h=h===void 0?!1:h;var L=this.app.HJ(u);if(!L)return null;L=L.getVideoData();if(h)var Z=L;else if(L.enableServerStitchedDai&&u===2||g.dC(L)&&u!==1)a:{L=this.app;h=L.getVideoData();if(L.Zv){u=L.Zv;L=L.getCurrentTime();if(u.kD)var y=void 0;else{var R=void 0;u.gm&&(R=u.X.get(u.gm));if(!R){R=Hoe(u,L*1E3);var p=(y=R)==null?void 0:y.cpn;u.gm?p&&u.gm!==p&&u.RP({cpcnm:p+"_"+u.gm,cmt:L.toFixed(3)}):u.RP({cpcna:p,cmt:L.toFixed(3)})}y=(Z=R)==null?void 0:Z.videoData}h=y||h}else if(L.AM&&
L.WX()){Z=L.AM.getVideoData(u);break a}Z=h}else Z=L;return Z};
g.K.Iq=function(){var u;return((u=this.app.WX())==null?void 0:u.Iq())||null};
g.K.p7=function(u){return this.app.p7(u)};
g.K.sA=function(){return this.app.sA()};
g.K.isHdr=function(){var u=this.app.WX();return u?u.isHdr():!1};
g.K.K1=function(){return this.app.K1()};
g.K.isEmbedsShortsMode=function(){var u=g.Rv(this),h=this.getVideoData();u=u?u.Hi:this.getPlayerSize();var L=!!this.getPlaylist();return!(!h||!h.isEmbedsShortsMode(new g.II(u.width,u.height),L))};
g.K.Tq=function(u){this.app.Tq(u)};
g.K.LZ=function(u,h,L,Z,y){this.app.Kr(u,h,L,Z,y)};
g.K.mJ=function(u,h){this.app.mJ(u,h)};
g.K.playVideo=function(u,h){try{if(this.getPresentingPlayerType()===3){MT(this.app.uP()).tY("control_play");return}if(!u&&this.getPresentingPlayerType()===2){var L=dI(this.app.uP());if(L&&PkR(L))return}}catch(Z){g.UZ(Z)}this.app.playVideo(u,h)};
g.K.stopVideo=function(u){this.app.HJ(u).stopVideo()};
g.K.IQ=function(u){this.app.HJ(u).IQ()};
g.K.addEventListener=function(u,h){this.state.X.subscribe(u,h)};
g.K.removeEventListener=function(u,h){this.state.X.unsubscribe(u,h)};
g.K.yN=function(u){this.app.yN(u)};
g.K.setPlaybackQuality=function(u,h){this.setPlaybackQualityRange(u,u,h)};
g.K.dn=function(){var u={},h=this.app.WX().dn();h=g.C(h);for(var L=h.next();!L.done;L=h.next())L=L.value,u[L.quality]=L;return u};
g.K.ZR=function(){return this.app.WX().ZR()};
g.K.Qb=LV(22);g.K.IX=function(u){this.app.IX(u);u&&HZf(this.app,u)};
g.K.getVideoUrl=function(u,h,L,Z){var y=this.getPresentingPlayerType(),R=y===2;if(Z&&R||y===3)R=!1,y=1;Z=this.getVideoData(y);if(!Z)return"";var p;u||Z.isLivePlayback||(p=Math.floor(this.getCurrentTime(y)));u=R?void 0:this.getPlaylistId()||void 0;h&&u==="WL"&&(u=void 0);return this.app.getVideoUrl(Z.videoId,u,p,h,L)};
g.K.L$=LV(24);g.K.tS=LV(29);g.K.Gg=function(u){var h;(h=this.app.WX())==null||h.Gg(u)};
g.K.R4=LV(34);g.K.t3=LV(39);g.K.rT=function(u,h){this.uP().rT(u,h)};
g.K.Dk=function(){var u=g.sE(this.uP());return!!u&&u.Dk()};
g.K.Yc=function(){var u=g.sE(this.uP());return!!u&&u.Yc()};
g.K.FM=function(u,h,L){var Z=g.sE(this.uP());Z&&Z.FM(u,h,L)};
g.K.Of=LV(40);g.K.o9=function(){var u;(u=this.app.WX())!=null&&u.G7.o9()};
g.K.lU=function(u){this.fH("onVideoAreaChange");this.fH(u?"onShowControls":"onHideControls")};
g.K.Wb=function(u,h){var L=g.Rv(this);if(L)return L.Wb(u,h);u=this.app.m_().Oe();return new g.ZE(0,0,u.width,u.height)};
g.K.zr=function(){var u=this.uP().u2.get("heartbeat");return!!u&&u.zr()};
g.K.VO=function(){var u=this.L();if(u.vX||u.disableSeek)return!1;var h=this.app.WX();if(!h)return!1;var L=h.getVideoData();if(!L.ih()||g.C3(L)||this.getPresentingPlayerType()===2&&!this.app.Aa()||L.KZ()&&this.getPresentingPlayerType(!0)===2||h.Hm()&&this.getPresentingPlayerType()!==3)return!1;u=g.Yy(u);return g.KF(u)&&!L.B6||pU(this.app)?!1:!0};
g.K.uH=function(){var u=this.app.WX();return u?u.nR():!1};
g.K.isLifaAdPlaying=function(){var u,h=(u=this.getVideoData())==null?void 0:u.KZ();return this.getPresentingPlayerType(h)===2};
g.K.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.K.ue=function(){var u;(u=this.app.WX())==null||u.ue()};
g.K.sendVideoStatsEngageEvent=function(u,h,L){this.app.sendVideoStatsEngageEvent(u,L,h)};
g.K.Rl=function(u,h,L){this.app.Tp(u,h,L)};
g.K.G2=function(u,h){this.app.oZ(u,h)};
g.K.qm=function(u,h){I6i(this.app,u,h)};
g.K.Rr=LV(43);g.K.dW=function(u){return this.app.dW(u)};
g.K.CB=function(u,h){var L;(L=this.app.HJ(h))==null||L.CB(u)};
g.K.Hm=function(){var u=this.app.HJ();return u?u.Hm():!0};
g.K.nX=function(){var u=this.getVideoData();return!!u&&(u.nX()||!!u.hlsFormats||!!u.jq)};
g.K.getPlaybackRate=function(){return this.app.IP().getPlaybackRate()};
g.K.setPlaybackRate=function(u,h){this.app.setPlaybackRate(u,h)};
g.K.yQ=function(){return this.app.yQ()};
g.K.QO=function(){return this.app.QO()};
g.K.mp=function(u){return this.app.mp(u)};
g.K.createClientVe=function(u,h,L,Z){this.L().VA&&this.app.dC.createClientVe(u,h,L,Z===void 0?!1:Z)};
g.K.createServerVe=function(u,h,L){this.L().VA&&this.app.dC.createServerVe(u,h,L===void 0?!1:L)};
g.K.setTrackingParams=function(u,h){this.L().VA&&this.app.dC.setTrackingParams(u,h)};
g.K.logClick=function(u,h){this.L().VA&&(this.app.dC.click(u,h),this.publish("veClickLogged",u))};
g.K.logVisibility=function(u,h,L){this.L().VA&&this.app.dC.Ay(u,h,L)};
g.K.hasVe=function(u){return this.L().VA?this.app.dC.hasVe(u):!1};
g.K.destroyVe=function(u){this.L().VA&&this.app.dC.destroyVe(u)};
g.K.getPresentingPlayerType=function(u){return this.app.getPresentingPlayerType(u)};
g.K.PV=function(){this.app.PV()};
g.K.qF=LV(45);g.K.RC=function(u){this.app.RC(u)};
g.K.wT=function(){this.app.wT()};
g.K.lq=function(){return this.app.lq()};
g.K.addPlayerResponseForAssociation=function(u){this.app.addPlayerResponseForAssociation(u)};
g.K.finishSegmentByCpn=function(u,h,L){return this.app.finishSegmentByCpn(u,h,L)};
g.K.vD=function(u,h,L,Z,y,R,p){return this.app.vD(u,h,L,Z,y,R,p)};
g.K.RB=function(u,h,L,Z,y,R,p){return this.app.RB(u,h,L,Z,y,R,p)};
g.K.R_=function(){return this.app.R_()};
g.K.s4=function(u){this.app.s4(u)};
g.K.Qz=function(u,h){h=h===void 0?Infinity:h;this.app.Qz(u===void 0?-1:u,h)};
g.K.Z_=function(u){var h;(h=g.By(this.uP()))==null||h.Z_(u)};
g.K.q5=function(u,h,L){this.app.q5(u,h,L)};
g.K.Ze=function(){return this.app.Ze()};
g.K.Lp=function(u,h,L){this.app.Lp(u,h,L===void 0?0:L)};
g.K.XS=function(){return this.app.XS()};
g.K.Aa=function(){return this.app.Aa()};
g.K.wc=function(u,h,L){return this.app.wc(u,h,L)};
g.K.IH=function(u,h,L,Z){L=L===void 0?!1:L;var y;(y=this.app.HJ(Z))==null||y.IH(u,h,L)};
g.K.Rn=function(u,h){this.publish("aduxmouseover",u,h)};
g.K.Ae=function(u,h){this.publish("aduxmouseout",u,h)};
g.K.sz=function(u,h){this.publish("muteadaccepted",u,h)};
g.K.N0=function(){return this.app.m_().N0()};
g.K.d6=function(u){this.app.m_().d6(u)};
g.K.FW=function(u){return u?this.app.tO():(u=this.app.WX())?u.FW():!1};
g.K.cz=function(u){this.app.cz(u)};
g.K.Pp=function(){this.app.IP().Pp()};
g.K.rB=function(){var u;(u=this.app.WX())==null||u.rB()};
g.K.Y9=function(){this.app.Y9()};
g.K.getGetAdBreakContext=function(){var u=this.app.IP();return u.getVideoData().getGetAdBreakContext(u.getCurrentTime(),u.df())};
g.K.Ts=function(u,h){var L;(L=this.app.WX())==null||L.Ts(u,h)};
g.K.BK=function(){var u;return((u=this.app.WX())==null?void 0:u.BK())||!1};var TF;g.P(qT,zj);qT.prototype.wI=function(u,h){u=zj.prototype.wI.call(this,u,h);return Object.assign({},u,this.requestHeaders)};g.P(g.NT,g.OD);g.K=g.NT.prototype;g.K.show=function(){var u=this.We();g.OD.prototype.show.call(this);this.gw&&(this.S.W(window,"blur",this.aP),this.S.W(Un(this),"click",this.UC));u||this.publish("show",!0)};
g.K.hide=function(){var u=this.We();g.OD.prototype.hide.call(this);nTj(this);u&&this.publish("show",!1)};
g.K.VF=function(u,h){this.N=u;this.AB.show();h?(this.Y||(this.Y=this.S.W(this.D,"appresize",this.Ra)),this.Ra()):this.Y&&(this.S.FJ(this.Y),this.Y=void 0)};
g.K.aS=function(){this.N&&this.element&&(this.N.getAttribute("aria-haspopup"),this.N.setAttribute("aria-expanded","true"),this.focus())};
g.K.Ra=function(){var u=g.Rv(this.D);this.N&&u.Kx(this.element,this.N)};
g.K.aP=function(){var u=this.We();nTj(this);this.AB.hide();u&&this.publish("show",!1)};
g.K.UC=function(u){var h=St(u);h&&(g.ZO(this.element,h)||this.N&&g.ZO(this.N,h)||!g.li(u))||this.aP()};
g.K.We=function(){return this.BJ&&this.AB.state!==4};g.P(Hf,g.NT);Hf.prototype.VF=function(){g.NT.prototype.VF.call(this);this.dialog.focus()};g.P(g.Bf,g.OD);g.Bf.prototype.setIcon=function(u){this.updateValue("icon",u)};
g.Bf.prototype.updateValue=function(u,h){g.OD.prototype.updateValue.call(this,u,h);this.publish("size-change")};g.g7={qN:15,mvA:14,b3d:13,UL:12,hk:11,ZT:10,e4:9,Lo:8,AUDIO:7,SUBTITLES:6,SLEEP_TIMER:5,S$:4,Lb:3,Vhd:2,REMOTE:1,pxi: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.P(my,g.Bf);my.prototype.sU=function(u){this.N&&this.D.logVisibility(this.element,this.G&&u)};
my.prototype.B=function(){var u,h,L=(u=this.D.getVideoData())==null?void 0:(h=u.accountLinkingConfig)==null?void 0:h.linked;if(L&&!this.G){var Z;u=(Z=this.D.getVideoData())==null?void 0:Z.accountLinkingConfig;this.setIcon(Mh());var y;g.r7(this,d7(u==null?void 0:(y=u.menuData)==null?void 0:y.connectedMenuLabel));var R,p,J;this.X=new Hf(this.D,d7(u==null?void 0:(R=u.menuData)==null?void 0:R.connectedDialogTitle),d7(u==null?void 0:(p=u.menuData)==null?void 0:p.connectedDialogMessage),d7(u==null?void 0:
(J=u.menuData)==null?void 0:J.confirmButtonText));g.V(this,this.X);var O;Z=(u==null?void 0:(O=u.menuData)==null?void 0:O.trackingParams)||null;(this.N=!!Z)&&this.D.setTrackingParams(this.element,Z);this.Ka.aV(this);this.G=!0}else!L&&this.G&&(this.Ka.Jd(this),this.G=!1)};
my.prototype.onClick=function(){this.N&&this.D.logClick(this.element);this.Ka.aP();this.X&&this.X.VF()};g.P(VA,g.m);VA.prototype.j=function(u){return this.api.j(u)};g.P(nU,VA);nU.prototype.onVideoDataChange=function(u){if(!u.accountLinkingConfig){var h,L=(h=u.getPlayerResponse())==null?void 0:h.accountLinkingConfig;u.accountLinkingConfig=L}var Z;if(h=(Z=u.accountLinkingConfig)==null?void 0:Z.alsParam)u.UV=h};
nU.prototype.setAccountLinkState=function(u){this.api.getVideoData().UV=u;this.api.o9()};
nU.prototype.updateAccountLinkingConfig=function(u){var h=this.api.getVideoData(),L=h.accountLinkingConfig;L&&(L.linked=u);this.api.publish("videodatachange","dataupdated",h,this.api.getPresentingPlayerType())};g.P(w7,VA);
w7.prototype.N=function(u){var h=u.getId(),L=this.api.getVideoData(1),Z=!this.api.isInline();if(!L.inlineMetricEnabled&&!this.api.j("enable_player_logging_lr_home_infeed_ads")||Z){if(h==="part2viewed"){if(L.Aw&&g.dx(L.Aw),L.z9&&eq(this,L.z9),L.FH)for(var y={CPN:this.api.getVideoData().clientPlaybackNonce},R=g.C(L.FH),p=R.next();!p.done;p=R.next())eq(this,g.Ng(p.value,y))}else h==="conversionview"?this.api.Pp():h==="engagedview"&&L.iX&&(y={CPN:this.api.getVideoData().clientPlaybackNonce},g.dx(g.Ng(L.iX,
y)));L.EB&&(y=L.EB,R=u.getId(),y=Zl(y,{label:R}),g.dx(y));switch(h){case "videoplaytime25":L.H3&&eq(this,L.H3);L.Uh&&av(this,L.Uh);L.Nk&&g.dx(L.Nk);break;case "videoplaytime50":L.SE&&eq(this,L.SE);L.LM&&av(this,L.LM);L.vy&&g.dx(L.vy);break;case "videoplaytime75":L.qM&&eq(this,L.qM);L.H4&&av(this,L.H4);L.Nx&&g.dx(L.Nx);break;case "videoplaytime100":L.iA&&eq(this,L.iA),L.jr&&av(this,L.jr),L.mW&&g.dx(L.mW)}(y=this.api.getVideoData().Zi)&&$nY(this,y,u.getId())&&$nY(this,y,u.getId()+"gaia")}if(L.inlineMetricEnabled&&
!Z)switch(h){case "videoplaybackstart":var J,O=(J=L.ej)==null?void 0:J.G;O&&eq(this,O);break;case "videoplayback2s":(J=(O=L.ej)==null?void 0:O.X)&&eq(this,J);break;case "videoplayback10s":var f;(J=(f=L.ej)==null?void 0:f.N)&&eq(this,J)}this.api.G2([u],1)};g.P(Waj,VA);g.P($q,g.a);g.K=$q.prototype;
g.K.P4=function(){var u;if(u=this.D.getPresentingPlayerType()!==3&&g.vf(this.D)&&this.D.m_().getPlayerSize().width>=400)if(u=this.iF(),this.D.L().j("client_respect_autoplay_switch_button_renderer"))u=!!u.autoplaySwitchButtonRenderer;else{var h,L,Z,y;u=!!((h=u.getWatchNextResponse())==null?0:(L=h.contents)==null?0:(Z=L.twoColumnWatchNextResults)==null?0:(y=Z.autoplay)==null?0:y.autoplay)!==!1}if(u)this.G||(this.G=!0,this.Ay(this.G),this.D.L().j("web_player_autonav_toggle_always_listen")||Fal(this),
h=this.iF(),this.fF(h.autonavState),this.D.logVisibility(this.element,this.G));else if(this.G=!1,this.Ay(this.G),!this.D.L().j("web_player_autonav_toggle_always_listen"))for(this.D.L().j("web_player_autonav_toggle_always_listen"),h=g.C(this.N),L=h.next();!L.done;L=h.next())this.FJ(L.value)};
g.K.fF=function(u){ETn(this)?this.isChecked=u!==1:((u=u!==1)||(g.dN(),u=g.MI("web_autonav_allow_off_by_default")&&!g.Vl(0,141)&&g.tn("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Vl(0,140)),this.isChecked=u);bOR(this)};
g.K.onClick=function(){this.isChecked=!this.isChecked;this.D.IX(this.isChecked?2:1);bOR(this);if(ETn(this)){var u=this.iF().autoplaySwitchButtonRenderer;this.isChecked&&(u==null?0:u.onEnabledCommand)?this.D.hB("innertubeCommand",u.onEnabledCommand):!this.isChecked&&(u==null?0:u.onDisabledCommand)&&this.D.hB("innertubeCommand",u.onDisabledCommand)}this.D.logClick(this.element)};
g.K.getValue=function(){return this.isChecked};
g.K.iF=function(){return this.D.getVideoData(1)};g.P(kLR,VA);g.P(t7,g.Bf);t7.prototype.onClick=function(){this.enabled&&(Wf(this,!this.checked),this.publish("select",this.checked))};
t7.prototype.getValue=function(){return this.checked};
t7.prototype.setEnabled=function(u){(this.enabled=u)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var u9a=["en-CA","en","es-MX","fr-CA"];g.P(jl,t7);jl.prototype.kI=function(u){u?this.G||(this.Ka.aV(this),this.G=!0):this.G&&(this.Ka.Jd(this),this.G=!1);this.G&&Wf(this,xZn())};
jl.prototype.B=function(){g.pc(this.element,"ytp-menuitem-highlight-transition-enabled")};
jl.prototype.X=function(u){var h=xZn();u!==h&&(h=g.dN(),sO(190,u),sO(192,!0),h.save(),this.D.hB("cinematicSettingsToggleChange",u))};
jl.prototype.Ni=function(){this.G&&this.Ka.Jd(this);t7.prototype.Ni.call(this)};g.P(hG,VA);hG.prototype.updateCinematicSettings=function(u){this.G=u;var h;(h=this.menuItem)==null||h.kI(u);this.api.publish("onCinematicSettingsVisibilityChange",u)};g.P(Lt,VA);Lt.prototype.NL=function(u,h){h=h.clipConfig;u==="dataloaded"&&h&&h.startTimeMs!=null&&h.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(h.startTimeMs)),endTimeMs:Math.floor(Number(h.endTimeMs)),postId:h.postId,type:"clips"})};g.P(ZN,VA);ZN.prototype.setCreatorEndscreenVisibility=function(u){var h;(h=wI(this.api.uP()))==null||h.Ay(u)};
ZN.prototype.G=function(u){function h(Z){Z==="creatorendscreen"&&(Z=wI(L.api.uP()))&&Z.W7d(L.hideButton)}
var L=this;this.hideButton=u;this.events.W(this.api,"modulecreated",h);h("creatorendscreen")};g.P(RC,t7);RC.prototype.X=function(u){this.B(u?1:0)};
RC.prototype.N=function(){var u=this.hasDrcAudioTrack(),h=this.G()===1&&u;Wf(this,h);this.setEnabled(u)};
RC.prototype.Ni=function(){this.Ka.Jd(this);t7.prototype.Ni.call(this)};g.P(pt,VA);pt.prototype.getDrcUserPreference=function(){return this.G};
pt.prototype.setDrcUserPreference=function(u){g.UO("yt-player-drc-pref",u,31536E3);u!==this.G&&(this.G=u,this.updateEnvironmentData(),this.N()&&this.api.rB())};
pt.prototype.updateEnvironmentData=function(){this.api.L().J4=this.G===1};
pt.prototype.N=function(){var u,h,L=(u=this.api.getVideoData())==null?void 0:(h=u.X)==null?void 0:h.G;if(!L)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.j("mta_drc_mutual_exclusion_removal")){var Z=this.api.getAudioTrack().tM.id;return oS(L,function(y){var R;return y.audio.G&&((R=y.tM)==null?void 0:R.id)===Z})}return oS(L,function(y){var R;
return((R=y.audio)==null?void 0:R.G)===!0})};g.P(Kt,VA);Kt.prototype.onVideoDataChange=function(){var u=this,h=this.api.getVideoData();this.api.qm("embargo",1);var L=h==null?void 0:h.Jf.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(L==null?0:L.length)?ZnL(this,L.filter(function(Z){return Llb(u,Z)})):(h==null?0:h.cueRanges)&&ZnL(this,h.cueRanges.filter(function(Z){return Llb(u,Z)}))};
Kt.prototype.N=function(u){return u.embargo!==void 0};
Kt.prototype.Ni=function(){VA.prototype.Ni.call(this);this.G={}};g.P(JG,VA);
JG.prototype.addEmbedsConversionTrackingParams=function(u){var h=this.api.L(),L=h.widgetReferrer,Z=h.Sd,y=this.G,R="",p=h.getWebPlayerContextConfig();p&&(R=p.embedsIframeOriginParam||"");L.length>0&&(u.embeds_widget_referrer=L);Z.length>0&&(u.embeds_referring_euri=Z);h.B&&R.length>0&&(u.embeds_referring_origin=R);p&&p.embedsFeature&&(u.feature=p.embedsFeature);y.length>0&&(h.j("embeds_web_enable_lite_experiment_control_arm_logging")?y.unshift(28572):g.KF(g.Yy(h))&&y.unshift(159628),h=y.join(","),h=
g.wg()?h:g.iV(h,4),u.source_ve_path=h);this.G.length=0};g.P(y_n,VA);g.P(Ref,VA);g.P(Oe,g.m);Oe.prototype.Ni=function(){g.m.prototype.Ni.call(this);this.G=null;this.N&&this.N.disconnect()};g.P(Kls,VA);g.P(ft,g.a);ft.prototype.show=function(){g.a.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
ft.prototype.onVideoDataChange=function(u){var h,L,Z=(h=this.api.getVideoData())==null?void 0:(L=h.getPlayerResponse())==null?void 0:L.playabilityStatus;Z&&(h=J_b(Z),g.F(this.api.getPlayerStateObject(),128)||u==="dataloaderror"||!h?(this.N=0,DN(this),this.hide()):(u=(h.remainingTimeSecs||0)*1E3,u>0&&(this.show(),this.updateValue("label",fn(h.label)),fcV(this,u))))};
ft.prototype.Ni=function(){DN(this);g.a.prototype.Ni.call(this)};g.P(DmR,VA);g.P(c4,g.a);c4.prototype.onClick=function(){this.pI.logClick(this.element);this.pI.hB("onFullerscreenEduClicked")};
c4.prototype.kI=function(){this.pI.isFullscreen()?this.N?this.G.hide():this.G.show():this.hide();this.pI.logVisibility(this.element,this.pI.isFullscreen()&&!this.N)};g.P(IC,VA);IC.prototype.updateFullerscreenEduButtonSubtleModeState=function(u){var h;(h=this.G)!=null&&(g.JW(h.element,"ytp-fullerscreen-edu-button-subtle",u),u&&!h.X&&(h.element.setAttribute("title","Scroll for details"),Iv(h.pI,h.element,h),h.X=!0))};
IC.prototype.updateFullerscreenEduButtonVisibility=function(u){var h;(h=this.G)!=null&&(h.N=u,h.kI())};g.P(c_i,g.a);g.P(xmb,VA);g.P(AG,VA);AG.prototype.getSphericalProperties=function(){var u=g.lM(this.api.uP());return u?u.getSphericalProperties():{}};
AG.prototype.setSphericalProperties=function(u){if(u){var h=g.lM(this.api.uP());h&&h.setSphericalProperties(u,!0)}};g.P(x0,VA);g.K=x0.prototype;g.K.createClientVe=function(u,h,L,Z){this.api.createClientVe(u,h,L,Z===void 0?!1:Z)};
g.K.createServerVe=function(u,h,L){this.api.createServerVe(u,h,L===void 0?!1:L)};
g.K.setTrackingParams=function(u,h){this.api.setTrackingParams(u,h)};
g.K.logClick=function(u,h){this.api.logClick(u,h)};
g.K.logVisibility=function(u,h,L){this.api.logVisibility(u,h,L)};
g.K.hasVe=function(u){return this.api.hasVe(u)};
g.K.destroyVe=function(u){this.api.destroyVe(u)};var Cpl=!1;Ct.prototype.setPlaybackRate=function(u){this.playbackRate=Math.max(1,u)};
Ct.prototype.getPlaybackRate=function(){return this.playbackRate};Sl.prototype.sK=function(u){var h=g.Fo(u.info.G.info,this.PX.bP),L=u.info.yA+this.B,Z=u.info.startTime*1E3;if(this.policy.ZI)try{Z=this.policy.ZI?g.aW(u)*1E3:u.info.startTime*1E3}catch(p){Math.random()>.99&&this.logger&&(Z=Mj(u.G).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:u.info.M1(),encodedDataView:g.Mk(Z,4)})),Z=u.info.startTime*1E3}var y=u.info.clipId,R=this.policy.ZI?g.xOs(u)*1E3:u.info.duration*1E3;this.policy.ZI&&(Z<0||R<0)&&(this.logger&&(this.logger({missingSegInfo:u.info.M1(),
startTimeMs:Z,durationMs:R}),this.policy.gN||(Z<0&&(Z=u.info.startTime*1E3),R<0&&(R=u.info.duration*1E3))),this.policy.gN&&(Z<0&&(Z=u.info.startTime*1E3),R<0&&(R=u.info.duration*1E3)));return{formatId:h,yA:L,startTimeMs:Z,clipId:y,CD:R}};
Sl.prototype.Rm=function(u){this.timestampOffset=u};q3.prototype.seek=function(u,h){u!==this.G&&(this.seekCount=0);this.G=u;var L=this.videoTrack.N,Z=this.audioTrack.N,y=this.audioTrack.EU,R=ze1(this,this.videoTrack,u,this.videoTrack.EU,h);h=ze1(this,this.audioTrack,this.policy.Uo?u:R,y,h);u=Math.max(u,R,h);this.T=!0;this.PX.isManifestless&&(Um1(this,this.videoTrack,L),Um1(this,this.audioTrack,Z));return u};
q3.prototype.isSeeking=function(){return this.T};
q3.prototype.bO=function(u){this.X=u};
var BZf=2/24;var VUe=0;g.K=mT.prototype;g.K.q2=function(){this.AB=this.now();mAe(this.N1,this.AB);this.XD.q2()};
g.K.PF=function(u,h){var L=this.policy.N?(0,g.vC)():0;dJ(this,u,h);u-this.C<10&&this.N>0||this.Hc(u,h);this.XD.PF(u,h);this.policy.N&&(u=(0,g.vC)()-L,this.Ca+=u,this.xl=Math.max(u,this.xl))};
g.K.Hc=function(u,h){var L=(u-this.C)/1E3,Z=h-this.X;this.jw||(Ob(this.N1,L,Z),this.hF(L,Z));this.C=u;this.X=h};
g.K.zw=function(){this.DI&&ngf(this);this.XD.zw()};
g.K.cF=function(u){this.DI||(this.DI=this.T-this.iP+u,this.eq=this.T,this.nH=this.V)};
g.K.tF=function(u,h){u=u===void 0?this.V:u;h=h===void 0?this.T:h;this.N>0||(this.Y=u,this.N=h,this.RH=this.isActive=!0)};
g.K.NK=function(){return this.pB||2};
g.K.wh=function(){};
g.K.Vt=function(){var u,h={rn:this.requestNumber,rt:(this.V-this.G).toFixed(),lb:this.T,stall:(1E3*this.B).toFixed(),ht:(this.AB-this.G).toFixed(),elt:(this.Y-this.G).toFixed(),elb:this.N,d:(u=this.T7)==null?void 0:u.n0()};this.url&&Ppw(h,this.url);this.policy.N&&(h.mph=this.xl.toFixed(),h.tph=this.Ca.toFixed());h.ulb=this.gw;h.ult=this.S;h.abw=this.aH;return h};
g.K.now=function(){return(0,g.vC)()};
g.K.deactivate=function(){this.isActive&&(this.isActive=!1)};g.P(nt,mT);g.K=nt.prototype;g.K.Vt=function(){var u=mT.prototype.Vt.call(this);u.pb=this.KL;u.pt=(1E3*this.e7).toFixed();u.se=this.mz;return u};
g.K.MR=function(){var u=this.XD;this.Sd||(this.Sd=u.MR?u.MR():1);return this.Sd};
g.K.Do=function(){return this.hV?this.MR()!==1:!1};
g.K.xX=function(u,h,L){if(!this.La){this.La=!0;if(!this.jw){dJ(this,u,h);this.Hc(u,h);var Z=this.MR();this.mz=L;if(!this.policy.T||!this.jw)if(Z===2&&this.policy.T){Z=u-this.Y<this.NK()*1E3+50;L=this.S?this.gw/(this.S/1E3):Math.max(this.policy.S,L||this.aH);var y=this.fg*1.3;Z&&L<y||(this.S?RL(this.N1,this.S/1E3,this.gw,this.vX||this.policy.RH):RL(this.N1,h/L,h,.01));KC(this.N1,h,Z?0:this.B)}else Z===2?this.jw||(this.S?RL(this.N1,this.S/1E3,this.gw,this.vX||this.policy.RH):RL(this.N1,h/Math.max(this.policy.S,
L||this.aH),h,.01),KC(this.N1,h,this.B)):Z===1&&(Z=(u-this.G)/1E3,!(Z<=this.policy.B)&&this.policy.B||this.vJ||this.policy.XB||!(this.N>0)||se(this,Z,h),this.N>0&&KC(this.N1,h,this.B));u=(u-this.G)/1E3||.01;this.policy.AB&&!(this.N>0)||pC(this.N1,u,this.X,wKn(this),this.bu)}this.deactivate()}};
g.K.iL=function(u,h,L){L&&(this.Sd=2);u<0&&this.pB&&(u=this.pB);h?this.ZI+=u:this.vX+=u};
g.K.NK=function(){return this.vX||this.ZI||mT.prototype.NK.call(this)};
g.K.Hc=function(u,h){var L=(u-this.C)/1E3,Z=h-this.X,y=this.MR();this.isActive?y===1&&((Z>0||this.policy.C)&&(L>.2||Z<1024)?(this.B+=L,Z>0&&L>.2&&se(this,this.fg?L:.05,Z),this.vJ=!0):Z>0&&(se(this,L,Z),this.vJ=!0)):h&&h>=this.policy.G&&this.tF(u,h);mT.prototype.Hc.call(this,u,h)};
g.K.Ju=function(u){if(!this.jw){dJ(this,u,this.T);var h=(u-this.G)/1E3;this.MR()!==2&&this.N>0&&(this.B+=(u-this.C)/1E3,KC(this.N1,this.X,this.B));pC(this.N1,h,this.X,wKn(this),this.bu,!0);u=(u-this.C)/1E3;Ob(this.N1,u,0);this.hF(u,0)}};
g.K.tF=function(u,h){u=u===void 0?this.V:u;h=h===void 0?this.T:h;if(!(this.N>0)&&(mT.prototype.tF.call(this,u,h),this.MR()===1)){h=(this.AB-this.G)/1E3;var L=(u-this.AB)/1E3;this.hV&&wJ(this,this.now());this.wm||this.jw||(this.pB&&(L=Math.max(0,L-this.pB)),u=this.N1,u.S.mO(1,h),u.DI.mO(1,L))}};
g.K.QV=function(){this.hV&&wJ(this,this.now());return this.VA};
g.K.CX=function(){var u;if(u=this.X>this.Bs)u=(u=this.X)?u>=this.policy.G:!1;return u};
g.K.lx=function(){return this.fI};
g.K.hW=function(u){u=u===void 0?this.now():u;if(this.hV){wJ(this,u);if(this.Sd?this.Do():this.XB!==this.jd){var h=this.jd;if(u<h){this.fI=this.jd;return}}else h=this.XB;h=Math.max(h,this.VA)}else h=this.VA;var L=this.KL-this.X;L<0&&(L=0);L=(L*this.snapshot.stall+L/this.snapshot.byterate)*1E3;this.fI=L=this.N>0?L+u:L+Math.max(u,h)};
g.K.mF=function(){return this.now()-this.Y};
g.K.KR=function(){return(this.X-this.N)*1E3/this.mF()||0};
g.K.xP=function(){return this.Y};el.prototype.feed=function(u){AC(this.G,u);this.pW()};
el.prototype.pW=function(){if(this.B){if(!this.G.getLength())return;var u=this.G.split(this.X-this.N),h=u.jU;u=u.NJ;if(!this.XD.cF(this.B,h,this.N,this.X))return;this.N+=h.getLength();this.G=u;this.N===this.X&&(this.B=this.X=this.N=void 0)}for(;;){var L=0;u=g.C(tUf(this.G,L));h=u.next().value;L=u.next().value;L=g.C(tUf(this.G,L));u=L.next().value;L=L.next().value;if(h<0||u<0)break;if(!this.G.NC(L,u)){if(!this.XD.cF||!this.G.NC(L,1))break;L=this.G.split(L).NJ;this.XD.cF(h,L,0,u)&&(this.B=h,this.N=
L.getLength(),this.X=u,this.G=new It([]));break}u=this.G.split(L).NJ.split(u);L=u.NJ;this.XD.q0(h,u.jU);this.G=L}};
el.prototype.dispose=function(){this.G=new It};g.K=aC.prototype;g.K.t5=function(){return 0};
g.K.A8=function(){return null};
g.K.s1=function(){return null};
g.K.Kz=function(){return this.state>=1};
g.K.isComplete=function(){return this.state>=3};
g.K.qt=function(){return this.state===5};
g.K.onStateChange=function(){};
g.K.Sq=function(u){var h=this.state;this.state=u;this.onStateChange(h);this.callback&&this.callback(this,h)};
g.K.VH=function(u){u&&this.state<u?this.Sq(u):this.callback&&this.callback(this,this.state)};
g.K.ww=function(){return this.state===-1};
g.K.M1=function(){var u="";this.info.YI.forEach(function(h){u+=h.M1()+"."});
return u.slice(0,-1)};
g.K.dispose=function(){this.ww()||(this.info.YI[0].G.X=!1,this.Sq(-1))};
g.K.vt=function(){return 0};g.K=$0.prototype;g.K.ib=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.XD.q2()};
g.K.onError=function(){this.X=!0;this.onDone()};
g.K.onDone=function(){this.ww||(this.B=!0,this.XD.zw())};
g.K.nz=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.K.getResponseHeader=function(u){try{return this.xhr.getResponseHeader(u)}catch(h){return""}};
g.K.y8=function(){return+this.getResponseHeader("content-length")};
g.K.pY=function(){return this.N};
g.K.vV=function(){return this.status>=200&&this.status<300&&!!this.N};
g.K.Sh=function(){return this.G.getLength()>0};
g.K.Zq=function(){var u=this.G;this.G=new It;return u};
g.K.aA=function(){return this.G};
g.K.abort=function(){this.ww=!0;this.xhr.abort()};
g.K.dB=function(){return!0};
g.K.qq=function(){return this.X};
g.K.KB=function(){return""};g.K=EgY.prototype;g.K.getResponseHeader=function(u){return u==="content-type"?this.G.get("type"):""};
g.K.abort=function(){};
g.K.nz=function(){return!0};
g.K.y8=function(){return this.range.length};
g.K.pY=function(){return this.loaded};
g.K.vV=function(){return!!this.loaded};
g.K.Sh=function(){return!!this.N.getLength()};
g.K.Zq=function(){var u=this.N;this.N=new It;return u};
g.K.aA=function(){return this.N};
g.K.dB=function(){return!0};
g.K.qq=function(){return!!this.error};
g.K.KB=function(){return this.error};g.K=ggw.prototype;g.K.start=function(u){var h={credentials:"include",cache:"no-store"};Object.assign(h,this.V);this.B&&(h.signal=this.B.signal);u=new Request(u,h);fetch(u).then(this.Y,this.onError).then(void 0,Ri)};
g.K.onDone=function(){this.ww()||this.XD.zw()};
g.K.getResponseHeader=function(u){return this.responseHeaders?this.responseHeaders.get(u):null};
g.K.nz=function(){return!!this.responseHeaders};
g.K.pY=function(){return this.N};
g.K.y8=function(){return+this.getResponseHeader("content-length")};
g.K.vV=function(){return this.status>=200&&this.status<300&&!!this.N};
g.K.Sh=function(){return!!this.G.getLength()};
g.K.Zq=function(){this.Sh();var u=this.G;this.G=new It;return u};
g.K.aA=function(){this.Sh();return this.G};
g.K.ww=function(){return this.T};
g.K.abort=function(){this.X&&this.X.cancel().catch(function(){});
this.B&&this.B.abort();this.T=!0};
g.K.dB=function(){return!0};
g.K.qq=function(){return this.C};
g.K.KB=function(){return this.errorMessage};g.K=uD1.prototype;g.K.onDone=function(){if(!this.ww){this.status=this.xhr.status;try{this.response=this.xhr.response,this.N=this.response.byteLength}catch(u){}this.G=!0;this.XD.zw()}};
g.K.ib=function(){this.xhr.readyState===2&&this.XD.q2()};
g.K.q3=function(u){this.ww||(this.status=this.xhr.status,this.G||(this.N=u.loaded),this.XD.PF((0,g.vC)(),u.loaded))};
g.K.nz=function(){return this.xhr.readyState>=2};
g.K.getResponseHeader=function(u){try{return this.xhr.getResponseHeader(u)}catch(h){return g.G3(Error("Could not read XHR header "+u)),""}};
g.K.y8=function(){return+this.getResponseHeader("content-length")};
g.K.pY=function(){return this.N};
g.K.vV=function(){return this.status>=200&&this.status<300&&this.G&&!!this.N};
g.K.Sh=function(){return this.G&&!!this.response&&!!this.response.byteLength};
g.K.Zq=function(){this.Sh();var u=this.response;this.response=void 0;return new It([new Uint8Array(u)])};
g.K.aA=function(){this.Sh();return new It([new Uint8Array(this.response)])};
g.K.abort=function(){this.ww=!0;this.xhr.abort()};
g.K.dB=function(){return!1};
g.K.qq=function(){return!1};
g.K.KB=function(){return""};g.F_.prototype.info=function(){};
g.F_.prototype.debug=function(){};
g.F_.prototype.G=LV(46);var ZkY=new Map,pQn=new Map,yDV=new function(){var u=this;this.G=new Map;this.zd={Ir7:function(){return u.G}}};g.P(Ee,g.m);Ee.prototype.RQ=function(){if(!this.Hr.length)return[];var u=this.Hr;this.Hr=[];this.X=g.tu(u).info;return u};
Ee.prototype.gi=function(){return this.Hr};
Ee.prototype.Ni=function(){g.m.prototype.Ni.call(this);this.G=null;this.Hr.length=0;this.YI.length=0;this.X=null};g.P(gJ,g.m);g.K=gJ.prototype;
g.K.MSd=function(){if(!this.ww()){var u=(0,g.vC)(),h=!1;if(this.policy.l9){u=u-(this.timing.N>0?this.timing.Y:this.timing.G)-this.timing.NK()*1E3;var L=JJ(uE(this),!1);u>=2E3*L?h=!0:u>=this.policy.Cs*L&&(this.G=this.policy.Xb)}else if(this.timing.N>0){if(this.T){this.policy.vj&&(this.G=0);return}var Z=this.timing.lx();this.timing.hW();var y=this.timing.lx();y-Z>=this.policy.J4*.8?(this.G++,this.logger.debug(function(){return"Mispredicted by "+(y-Z).toFixed(0)}),h=this.G>=5):this.G=0}else{var R=u-
this.timing.QV();
this.policy.Xb&&R>0&&(this.G+=1);h=JJ(uE(this),!1)*this.policy.Uh;(h=R>h*1E3)&&this.logger.debug(function(){return"Elbow late by "+R.toFixed(3)})}this.G>0&&this.XD.Wt();
h?this.gB(!1):this.N.start()}};
g.K.gB=function(u){this.B=!0;u&&!this.policy.l6&&(u=uE(this),u.N+=1);this.XD.Ll();this.lastError="net.timeout";hO(this)};
g.K.canRetry=function(u){var h=uE(this);u=u?this.policy.Ne:this.policy.xo;return h.timedOut<this.policy.gy&&h.G<u};
g.K.xW=function(){return this.lastError};
g.K.mI=function(){return this.G};
g.K.dispose=function(){this.N.dispose();g.m.prototype.dispose.call(this)};var J6={},Y5i=(J6["1h"]=8,J6["9h"]=4,J6["1"]=8,J6["9"]=4,J6["("]=4,J6.h=2,J6.H=2,J6),Om={},oaV=(Om.o=3,Om.O=3,Om.so=3,Om.a=1,Om.ah=1,Om.A=1,Om.m=1,Om.M=1,Om.sa=1,Om.mac3=7,Om.MAC3=7,Om.meac3=5,Om.MEAC3=5,Om),fD={},U6R=(fD.o=0,fD.O=0,fD.a=0,fD.ah=0,fD.A=0,fD.m=1,fD.M=1,fD.mac3=1,fD.MAC3=1,fD.meac3=1,fD.MEAC3=1,fD.so=4,fD.sa=4,fD);var rDi={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 p4,R$,K4=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["787","788"]],l0f=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],S5b=["571 401 400 399 398 787 788 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],XQ1=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],vab=["412","359"],q5w=[["140"],["251"],["380"],["328"]],DU={},M5L=(DU["398"]="397 396 395 394 788 787".split(" "),
DU["247"]=["780","779","244","243","242"],DU["136"]=["135","134","133","160"],DU["141"]=["140"],DU["251"]=["250"],DU["774"]=["251","250"],DU),c0={},iki=(c0["135"]=["134","133","160"],c0["243"]=["242"],c0["781"]=["780","779"],c0["777"]=["776","775"],c0["396"]=["395","394"],c0["141"]=["140"],c0["251"]=["250"],c0),I5={},Q3w=(I5["274"]=["317","273","318","280","279"],I5["145"]=["144","222","223","143","142"],I5["141"]=["149"],I5["140"]=["149"],I5["380"]=["381"],I5["328"]=["329"],I5),A6={},P0V=(A6["133"]=
240,A6["134"]=360,A6["135"]=480,A6["136"]=720,A6["137"]=1080,A6["242"]=240,A6["243"]=360,A6["244"]=480,A6["247"]=720,A6["248"]=1080,A6["298"]=720,A6["299"]=1080,A6["302"]=720,A6["303"]=1080,A6["395"]=240,A6["396"]=360,A6["397"]=480,A6["398"]=720,A6["399"]=1080,A6);var Gnj={unknown:0,other:0,bluetooth:117,wifi:116,cellular:120,ethernet:118,wimax:119,none:122};g.P(Y0,aC);g.K=Y0.prototype;g.K.kq=function(){return this.timing.requestNumber};
g.K.VQ=function(){return this.rd.VQ()};
g.K.zB=function(){var u=I0a(this.wf);if(this.u_){var h=this.u_,L=h.G.getLength();u.ulen=L;L>0&&(h=h.G.getUint8(0),u.ubyte=h,L===1&&h===0&&(u.b248180278=!0))}this.W_&&(u.rc=this.policy.KY?this.W_:this.W_.toString());this.policy.Z1&&this.LJ&&(u.tr=this.LJ);u.itag=this.info.YI[0].G.info.itag;u.ml=""+ +this.info.YI[0].G.c_();u.sq=""+this.info.YI[0].yA;this.rd&&(u.ifi=""+ +PQ(this.info.D3.X));this.W_!==410&&this.W_!==500&&this.W_!==503||(u.fmt_unav="true");var Z;(L=this.errorMessage||((Z=this.xhr)==null?
void 0:Z.KB()))&&(u.msg=L);this.cI&&(u.smb="1");this.info.isDecorated()&&(u.sdai="1");return u};
g.K.oS=function(){return eeR(this.timing)};
g.K.KB=function(){return this.xhr.KB()||""};
g.K.CX=function(){return this.isComplete()||this.timing.CX()};
g.K.PF=function(){!this.ww()&&this.xhr&&(this.W_=this.xhr.status,this.policy.E2&&this.F9&&this.sH(!1),this.xD()?this.VH(2):!this.aD&&this.CX()&&(this.VH(),this.aD=!0))};
g.K.q2=function(){if(!this.ww()&&this.xhr){if(!this.II&&this.xhr.nz()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var u=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.II=((0,g.vC)()-u)/1E3}this.xhr.nz()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.AJ&&!Yin()&&g.UO("yt-player-headers-readable",!0,2592E3);u=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var h=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),L;(L=this.E4)==null||L.stop();this.TB=u||this.TB;
this.Hb=h||this.Hb}};
g.K.zw=function(){var u=this.xhr;if(!this.ww()&&u){this.W_=u.status;u=this.Ht(u);if(this.policy.Z1){var h;(h=this.E4)==null||h.stop()}u===5?hO(this.wf):this.Sq(u);this.wf.N.stop()}};
g.K.Ht=function(u){var h=this;V5f(this);if(L4(this.wf,this.xhr.status,this.WH?this.timing.RH||this.SX:this.xhr.vV(),!1,this.yk))return 5;var L="";Ze(this.wf,this.xhr)&&(L=cDj(this.wf,this.xhr));if(L)return Kb(uE(this.wf)),this.info.ju(this.rd,L),3;L=u.pY();if(this.u_){this.sH(!0);V5f(this);if(L4(this.wf,this.xhr.status,this.timing.RH||this.SX,!1,this.yk))return 5;if(!this.AA){if(this.SX)return Kb(uE(this.wf)),3;this.wf.lastError="net.closed";return 5}}else{if(L4(this.wf,this.xhr.status,this.xhr.vV(),
!1,this.yk))return 5;var Z=this.info.X;if(Z&&Z!==L||u.qq())return this.wf.lastError="net.closed",5;this.sH(!0)}Z=WlV(this)?u.getResponseHeader("X-Bandwidth-Est"):0;if(u=WlV(this)?u.getResponseHeader("X-Bandwidth-Est3"):0)this.fP=!0,this.policy.T8&&(Z=u);f0l(this.wf,L,Z?Number(Z):0,this.info.YI[0].type===5);this.logger.debug(function(){var y=h.timing;return"Succeeded, rtpd="+(y.e7*1E3+y.G-Date.now()).toFixed(0)});
return 4};
g.K.canRetry=function(){this.ww();var u=this.info.isDecorated();return this.wf.canRetry(u)};
g.K.onStateChange=function(){this.isComplete()&&(this.policy.Cv?this.Ll():this.timing.deactivate())};
g.K.gB=function(u){this.wf.gB(u)};
g.K.Wt=function(){this.callback&&this.callback(this,this.state)};
g.K.mI=function(){return this.wf.mI()};
g.K.dispose=function(){aC.prototype.dispose.call(this);this.wf.dispose();var u;(u=this.E4)==null||u.dispose();this.policy.Cv||this.Ll()};
g.K.Ll=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()};
g.K.RQ=function(){if(!this.gi().length)return[];this.qZ=!0;return this.F9.RQ()};
g.K.xD=function(){if(this.state<1)return!1;if(this.F9&&this.F9.Hr.length)return!0;var u;return((u=this.xhr)==null?0:u.Sh())?!0:!1};
g.K.gi=function(){this.sH(!1);return this.F9?this.F9.gi():[]};
g.K.sH=function(u){try{if(u||this.xhr.nz()&&this.xhr.Sh()&&!Ze(this.wf,this.xhr)&&!this.xx)this.F9||(this.F9=new Ee(this.policy,this.info.YI)),this.xhr.Sh()&&(this.u_?this.u_.feed(this.xhr.Zq()):k0(this.F9,this.xhr.Zq(),u&&!this.xhr.Sh()))}catch(h){this.u_?zmn(this,h):g.G3(h)}};
g.K.q0=function(u,h){switch(u){case 21:u=h.split(1).NJ;m6j(this,u);break;case 22:this.AA=!0;k0(this.F9,new It([]),!0);break;case 43:if(u=HE(new TR(h),1))this.info.ju(this.rd,u),this.SX=!0;break;case 45:h=$g(new TR(h));u=h.X4;h=h.z$;u&&h&&(this.Ro=u/h);break;case 44:this.DA=T1i(new TR(h));var L,Z,y;!this.timing.RH&&((L=this.DA)==null?void 0:L.action)===4&&((Z=this.DA)==null?0:(y=Z.HT)==null?0:y.WH)&&(this.WH=this.DA.HT.WH);break;case 53:this.policy.Z1&&(u=XIi(new TR(h)).SK)&&(this.E4||(this.SK=u,this.E4=
new g.EM(this.qa,u,this)),this.E4.start());break;case 60:this.KN=ad(new TR(h));break;case 58:if(u=hDw(new TR(h)))this.z6=u,u.z6===3&&(this.yk=!0)}};
g.K.cF=function(u,h,L,Z){L||this.timing.cF(Z);if(u!==21)return!1;if(u=this.policy.E2)if(Z=h.getLength()+L===Z,u*=this.info.YI[0].G.info.G3,!Z&&h.getLength()<u)return!1;if(!L){if(h.getLength()===1)return!0;h=h.split(1).NJ}m6j(this,h);return!0};
g.K.pY=function(){return this.xhr.pY()};
g.K.t5=function(){return this.II};
g.K.MR=function(){return this.Do()?2:1};
g.K.Do=function(){if(!this.policy.S.vx||!isNaN(this.info.Ep)&&this.info.Ep>0)return!1;if(!this.xhr.nz())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.u_)var u=!this.info.X;else this.xhr.y8()?u=!1:(u=this.xhr.getResponseHeader("content-type"),u=u==="audio/mp4"||u==="video/mp4"||u==="video/webm");if(!u)return!1;if(isNaN(this.info.Ep)){u=this.xhr.getResponseHeader("x-head-seqnum");var h=this.timing.policy.Y?1:0;if(!u)this.logger.debug("No x-head-seqnum, cannot tell if head segment.");
else if(Number(u)>this.info.YI[0].yA+h)return!1}return!0};
g.K.vt=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.K.A8=function(){this.xhr&&(this.TB=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.TB};
g.K.s1=function(){this.xhr&&(this.Hb=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Hb};
g.K.xW=function(){return this.wf.xW()};
g.K.qa=function(){if(!this.ww()&&this.xhr){this.LJ="heartbeat";var u=this.wf;u.G+=2;this.Wt()}};g.P(De,mT);g.K=De.prototype;g.K.Hc=function(u,h){var L=(u-this.C)/1E3,Z=h-this.X;this.N>0?Z>0&&(this.XB&&(L>.2||Z<1024?(this.B+=L,L>.2&&nan(this,.05,Z)):nan(this,L,Z)),this.vX&&(this.jd+=Z,this.VA+=L)):h>this.policy.G&&this.tF(u,h);mT.prototype.Hc.call(this,u,h)};
g.K.xX=function(u,h){dJ(this,u,h);this.Hc(u,h);this.XB&&(h=this.X*this.snapshot.stall+this.X/this.snapshot.byterate,this.N>0&&KC(this.N1,this.jd,this.B),u=(u-this.G)/1E3||.01,this.policy.AB&&!(this.N>0)||pC(this.N1,u,this.X,h,!1))};
g.K.Ju=function(u){dJ(this,u,this.T);var h=(u-this.C)/1E3;Ob(this.N1,h,0);this.hF(h,0);!this.XB&&this.N>0||(h=this.X*this.snapshot.stall+this.X/this.snapshot.byterate,this.N>0&&(this.B+=(u-this.C)/1E3,KC(this.N1,this.jd,this.B)),pC(this.N1,((u-this.G)/1E3||.01)*this.policy.gw,this.X,h,!1,!0))};
g.K.MB=function(u){u=u.Cc||2147483647;(u&2)!==2&&(this.vX=!1);(u&1)===1&&(this.XB=!0)};
g.K.Qm=function(u){u=u.Cc||2147483647;(u&2)===2&&(this.vX=!1);(u&1)===1&&(this.XB=!1)};
g.K.xP=function(){return this.Y};
g.K.mF=function(){var u=this.vX?this.now()-this.C:0;return Math.max(this.VA*1E3+u,1)};
g.K.KR=function(){return this.jd*1E3/this.mF()};
g.K.tF=function(u,h){u=u===void 0?this.V:u;h=h===void 0?this.T:h;this.N>0||(mT.prototype.tF.call(this,u,h),h=this.N1,u=(u-this.AB)/1E3,h.S.mO(1,(this.AB-this.G)/1E3),h.DI.mO(1,u))};
g.K.wh=function(u){this.ZI=u};
g.K.Vt=function(){var u=mT.prototype.Vt.call(this);u.rbw=this.KR();u.rbe=+this.vX;u.gbe=+this.XB;u.ackt=(this.ZI-this.G).toFixed();return u};
g.K.hW=function(){};
g.K.lx=function(){return NaN};
g.K.QV=function(){return this.G+this.snapshot.delay*1E3};cj.prototype.q0=function(u,h){h.getLength();switch(u){case 20:u=new TR(h);u={yc:Nj(u,1),videoId:HE(u,2),itag:Nj(u,3),lmt:Nj(u,4),xtags:HE(u,5),rE:Nj(u,6),Gw:Us(u,8),rH:Nj(u,9),bEI:Nj(u,10),startMs:Nj(u,11),durationMs:Nj(u,12),ql:Nj(u,14),timeRange:rA(u,15,VM1),GG:Nj(u,16),fu:Nj(u,17),clipId:HE(u,1E3)};this.VM(u);break;case 21:this.Ez(h,!1);break;case 22:this.JG(h);break;case 31:u=mv(h,xF1);this.U4(u);break;case 52:u=mv(h,vln);this.H0(u);break;default:this.rY(u,h)}};
cj.prototype.VM=function(){};
cj.prototype.rY=function(){};g.P(I$,cj);g.K=I$.prototype;
g.K.rY=function(u,h){h.getLength();switch(u){case 35:this.tG(h);break;case 44:this.Ih(h);break;case 43:this.qL(h);break;case 53:this.Hg(h);break;case 55:u=new TR(h);(u={timeline:rA(u,1,olj),F7i:rA(u,2,G1e)},u.timeline)&&u.timeline.WA&&this.XD.ez(u.timeline.WA,u.timeline.Qc7,u.F7i);break;case 56:this.ek();break;case 57:this.uQ(h);break;case 42:this.Ce(h);break;case 45:this.hG(h);break;case 59:this.GK(h);break;case 51:this.nt(h);break;case 49:this.MB(h);break;case 50:this.Qm(h);break;case 47:this.Rh(h);
break;case 58:this.H8(h);break;case 61:this.XD.Nm.wh((0,g.vC)());break;case 66:this.bY(h);break;case 46:this.xT(h);break;case 67:this.onSnackbarMessage(h)}};
g.K.nt=function(u){u=new TR(u);u={A1I:zR(u,1,wZ),I9I:zR(u,2,wZ)};this.XD.nt(u)};
g.K.GK=function(u){var h=new TR(u);u=BE(h,1);var L=BE(h,2);h=BE(h,3);this.XD.GK(u,L,h)};
g.K.hG=function(u){u=$g(new TR(u));this.XD.hG(u)};
g.K.Rh=function(u){u=mv(u,MRV);this.XD.Rh(u)};
g.K.Ce=function(u){u=new TR(u);u={videoId:HE(u,1),formatId:rA(u,2,wZ),endTimeMs:Nj(u,3),VKw:Nj(u,4),mimeType:HE(u,5),Zu:rA(u,6,O2V),indexRange:rA(u,7,O2V),U5:rA(u,8,fLl)};this.XD.Ce(u)};
g.K.uQ=function(u){u=G1e(new TR(u));this.XD.uQ(u)};
g.K.ek=function(){this.XD.ek()};
g.K.tG=function(u){u=PWw(new TR(u));this.XD.tG(u)};
g.K.Hg=function(u){u=XIi(new TR(u));this.XD.Hg(u)};
g.K.Ih=function(u){u=T1i(new TR(u));this.XD.Ih(u)};
g.K.qL=function(u){u={redirectUrl:HE(new TR(u),1)};this.XD.qL(u)};
g.K.Ez=function(u){var h=u.getUint8(0);if(u.getLength()!==1){u=u.split(1).NJ;var L=this.N[h]||null;L&&QW(this.XD.N3,h,L,u)}};
g.K.JG=function(u){u=u.getUint8(0);var h=this.N[u]||null;h&&this.XD.JG(u,h)};
g.K.H0=function(u){this.XD.H0(u)};
g.K.VM=function(u){var h=u.yc,L=u.Gw,Z=u.rE,y=u.fu,R=u.GG,p=u.rH,J=u.startMs,O=u.durationMs,f=u.timeRange,D=u.ql,c=u.clipId,I=xV(u);u=M1y.has(dF[""+u.itag]);this.N[h]=I;this.XD.iL(I,u,{yc:h,Gw:!!L,rE:Z!=null?Z:-1,rH:p!=null?p:-1,startMs:J!=null?J:-1,durationMs:O!=null?O:-1,ql:D,fu:y,GG:R,clipId:c,timeRange:f})};
g.K.MB=function(u){u={Cc:Nj(new TR(u),1)};this.XD.MB(u)};
g.K.Qm=function(u){u={Cc:Nj(new TR(u),1)};this.XD.Qm(u)};
g.K.U4=function(u){this.XD.U4(u)};
g.K.H8=function(u){u=hDw(new TR(u));this.XD.H8(u)};
g.K.bY=function(u){u={dj:rA(new TR(u),1,lLf)};this.XD.bY(u)};
g.K.onSnackbarMessage=function(u){u=Nj(new TR(u),1);this.XD.onSnackbarMessage(u)};
g.K.xT=function(u){u={reloadPlaybackParams:rA(new TR(u),1,jzi)};this.XD.xT(u)};g.P(AO,g.m);g.K=AO.prototype;g.K.J1=function(){return Array.from(this.kF.keys())};
g.K.Gp=function(u){u=this.kF.get(u);var h=u.Hr;u.h7+=h.getLength();u.Hr=new It;return h};
g.K.XE=function(u){return this.kF.get(u).XE};
g.K.lE=function(u){return this.kF.get(u).lE};
g.K.iL=function(u,h,L,Z){this.kF.get(u)||$6f(this,u,h);h=this.kF.get(u);if(this.PX){u=W$n(this,u,L);if(Z)for(var y=g.C(u),R=y.next();!R.done;R=y.next()){R=R.value;var p=Z;R.Y=p;R.startTime+=p;R.ob+=p;R.pZ+=p}t5L(this,L.yc,h,u)}else L.Gw?h.qx=L.ql:h.U8.push(L),h.gs.push(L)};
g.K.DK=function(u){var h;return((h=this.kF.get(u))==null?void 0:h.YI)||[]};
g.K.VH=function(){for(var u=g.C(this.kF.values()),h=u.next();!h.done;h=u.next())h=h.value,h.Ws&&(h.q3&&h.q3(),h.Ws=!1)};
g.K.JG=function(u,h){this.logger.debug(function(){return"[onMediaEnd] formatId: "+h});
var L=this.kF.get(h);if(x2){if(L&&!L.XE){if(L.Hx.get(u))L.Hx.get(u).O3=!0;else{var Z;((Z=this.Rb)==null?0:Z.jq)&&L.Hx.set(u,{data:new It,AU:0,O3:!0})}L.lE=!0}}else L&&!L.lE&&(L.lE=!0)};
g.K.RQ=function(u){if(x2){var h=this.kF.get(u);if(h)for(var L=g.C(h.Hx),Z=L.next();!Z.done;Z=L.next()){var y=g.C(Z.value);Z=y.next().value;y=y.next().value;var R=h.OI.get(Z);if(S8(R[0])){if(!y.O3)continue;var p=R,J=y.data;J.getLength();R=0;var O=[];p=g.C(p);for(var f=p.next();!f.done;f=p.next()){f=f.value;var D=f.X,c=xW(J,R,D);R+=D;O.push(new wO(f,c))}h.Zp.push.apply(h.Zp,g.l(O))}else if(y.data.getLength()>0||!R[0].range&&y.O3)J=void 0,R=R[0],O=y.AU,p=y.data,R.range||(J=y.O3),f=p.getLength(),J=new wO(bAR(R,
R.N+O,f,J),p),y.AU+=J.info.X,h.Zp.push(J);h.Hx.get(Z).data=new It;y.O3&&h.Hx.delete(Z)}u=this.kF.get(u);if(!u)return[];h=u.Zp;u.Zp=[];L=g.C(h);for(Z=L.next();!Z.done;Z=L.next())u.h7+=Z.value.info.X;return h||[]}L=(h=this.kF.get(u))==null?void 0:h.F9;if(!L)return[];this.sH(u,L);return L.RQ()};
g.K.xD=function(u){if(x2)return iE(this,u);var h,L,Z;return!!((L=(h=this.kF.get(u))==null?void 0:h.F9)==null?0:(Z=L.gi())==null?0:Z.length)||iE(this,u)};
g.K.sH=function(u,h){for(;iE(this,u);){var L=this.Gp(u);var Z=u;Z=this.kF.get(Z).XE&&!Mb(this,Z);k0(h,L,Z&&a0j(this,u))}};
g.K.Ni=function(){g.m.prototype.Ni.call(this);for(var u=g.C(this.kF.keys()),h=u.next();!h.done;h=u.next())Pj(this,h.value);var L;if((L=this.Rb)==null?0:L.Bm)for(u=g.C(this.kF.values()),h=u.next();!h.done;h=u.next())h=h.value,h.Hx.clear(),h.OI.clear(),h.Zp.length=0,h.YI.length=0,h.gs.length=0,h.U8.length=0;this.kF.clear()};
var x2=!1;g.P(lE,g.m);g.K=lE.prototype;g.K.PF=function(){!this.ww()&&this.xhr&&(this.sH(!1),hy(this.XD,this))};
g.K.q2=function(){};
g.K.zw=function(){if(!this.ww()&&this.xhr){var u=this.Ht();u===5?hO(this.wf):this.Sq(u);this.wf.N.stop();var h;(h=this.Lt)==null||h.stop()}};
g.K.Ht=function(){var u="";Ze(this.wf,this.xhr)&&(u=cDj(this.wf,this.xhr));if(u)return this.info.D3.ju(this.rd,u),3;this.sH(!0);if(L4(this.wf,this.xhr.status,this.xhr.vV(),this.info.Ml(),this.yk))return 5;if(this.S2)return 3;f0l(this.wf,this.xhr.pY(),0,this.Ml());this.policy.Td&&SXj(this.XD);return 4};
g.K.sH=function(u){var h=this.xhr;if((u||!Ze(this.wf,this.xhr))&&h.Sh()){u=h.Zq();var L=u.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+L});
this.u_.feed(u)}};
g.K.q0=function(u,h){this.xhr.dB()&&u===21&&knn(this);this.qX.q0(u,h)};
g.K.cF=function(u,h,L,Z){L||(this.Nm.cF(Z),this.policy.Pf&&u===21&&knn(this));if(u!==21)return!1;this.Nm.RH=!0;u=h.getLength();L||(this.MW=h.getUint8(0),h=h.split(1).NJ);var y=this.policy.qh,R=this.qX.N[this.MW],p=this.PX.X.get(R);if(y&&p&&(y*=p.info.G3,u+L!==Z&&u<y))return!1;QW(this.N3,this.MW,R,h);return!0};
g.K.tG=function(u){this.XD.tG(u)};
g.K.Hg=function(u){if(this.policy.enableServerDrivenRequestCancellation){var h;(h=this.Lt)==null||h.dispose();this.f6=u;u.Xu&&(this.Lt=new g.EM(this.Sm,u.Xu,this));this.Sm()}};
g.K.Sm=function(){var u;if((u=this.f6)!=null&&u.items){var h;(h=this.Lt)==null||h.start();if(this.Nm.N>0){this.policy.l9&&this.wf.N.stop();u=this.Nm.mF();h=this.Nm.KR();var L=gab(this,u);if(!(h>L.PZ||L.q8>0&&this.info.x_()>L.q8)){this.Yi=(0,g.vC)();var Z;(Z=this.Lt)==null||Z.stop();this.policy.Td&&(Z=this.XD,u={vL:Math.round(h*u/1E3),GI:u},Z.policy.Td&&(Z.DI=u,Z.IC++));this.gB(!1)}}}};
g.K.gB=function(u){this.wf.gB(u)};
g.K.Ih=function(u){this.XD.Ih(u,this.kq())};
g.K.qL=function(u){this.S2=!0;this.info.D3.ju(this.rd,u.redirectUrl)};
g.K.MB=function(u){this.Nm instanceof De&&this.Nm.MB(u)};
g.K.Qm=function(u){this.Nm instanceof De&&this.Nm.Qm(u)};
g.K.ez=function(u,h,L){this.XD.ez(u,h,L,this.kq())};
g.K.Ce=function(u){var h=u.formatId,L=xV({itag:h.itag,lmt:h.lmt,xtags:h.xtags}),Z,y,R=new Cb(((Z=u.Zu)==null?void 0:Z.first)||0,((y=u.Zu)==null?void 0:y.Ma)||0),p,J;Z=new Cb(((p=u.indexRange)==null?void 0:p.first)||0,((J=u.indexRange)==null?void 0:J.Ma)||0);if(!this.PX.X.get(L)){L=u.U5||{};if(this.policy.WS){var O,f;u=(O=u.mimeType)!=null?O:"";O=(f=h.itag)!=null?f:0;f=dF[""+O];L.mimeType=f!=="9"&&f!=="9h"?u:'video/webm; codecs="'+["vp09",f==="9h"?"02":"00","51",f==="9h"?"10":"08","01.01.01.01.00"].join(".")+
'"'}else L.mimeType=u.mimeType;L.itag=h.itag;L.lastModified=""+(h.lmt||0);L.xtags=h.xtags;h=this.PX;f=KS("");O=RV(L,null);uG(h,new E4(f,O,R,Z))}};
g.K.hG=function(u){this.XD.hG(u)};
g.K.onSnackbarMessage=function(u){if(this.policy.HK)this.XD.onSnackbarMessage(u)};
g.K.U4=function(u){this.uU=u;this.CK=(0,g.vC)();this.XD.U4(u)};
g.K.GK=function(u,h,L){this.XD.GK(u,h,L)};
g.K.uQ=function(u){u.scope===2&&(this.vNI=u);this.XD.uQ(u)};
g.K.ek=function(){this.nC=!0;this.XD.ek()};
g.K.nt=function(u){this.policy.A4&&this.XD.nt(u)};
g.K.Rh=function(u){this.XD.Rh(u,this.kq())};
g.K.H8=function(u){u.z6===3&&(this.yk=!0);this.XD.H8(u)};
g.K.bY=function(u){this.XD.bY(u)};
g.K.xT=function(u){this.XD.xT(u)};
g.K.canRetry=function(){this.ww();return this.wf.canRetry(!1)};
g.K.dispose=function(){if(!this.ww()){g.m.prototype.dispose.call(this);this.wf.dispose();var u;(u=this.Lt)==null||u.dispose();this.Sq(-1);this.Ll()}};
g.K.Sq=function(u){this.state=u;hy(this.XD,this)};
g.K.Ml=function(){return this.info.Ml()};
g.K.bB=function(){return this.nC};
g.K.O$=function(){return this.vNI};
g.K.iL=function(u,h,L){L.clipId&&(this.clipId=L.clipId);this.policy.T&&!h&&(this.Dz=L.rH,this.xt=L.startMs);var Z=0;this.policy.Gz&&this.ZD&&this.clipId&&(Z=X_(this.ZD,this.clipId)/1E3);this.N3.iL(u,h,L,Z);this.policy.gD&&this.uU&&this.Nm instanceof nt&&(Z=this.uU.Gr,this.Nm.iL(L.durationMs/1E3,h,Z>0&&L.rH+1>=Z));this.N3.kF.get(u).rb=!0};
g.K.JG=function(u,h){this.N3.JG(u,h)};
g.K.H0=function(u){this.requestIdentifier=u};
g.K.RQ=function(u){return this.N3.RQ(u)};
g.K.DK=function(u){return this.N3.DK(u)};
g.K.xD=function(u){return this.N3.xD(u)};
g.K.J1=function(){return this.N3.J1()};
g.K.MR=function(){return 1};
g.K.kq=function(){return this.Nm.requestNumber};
g.K.DM=function(){return this.requestIdentifier};
g.K.E1=function(){return this.clipId};
g.K.VQ=function(){return this.rd.VQ()};
g.K.MS=function(){this.Ll()};
g.K.Ll=function(){this.Nm.deactivate();var u;(u=this.xhr)==null||u.abort()};
g.K.isComplete=function(){return this.state>=3};
g.K.Rk=function(){return this.state===3};
g.K.qt=function(){return this.state===5};
g.K.nQ=function(){return this.state===4};
g.K.Sl=function(){return this.isComplete()};
g.K.Kz=function(){return this.state>=1};
g.K.mI=function(){return this.policy.vj?this.wf.mI():0};
g.K.Wt=function(){this.policy.vj&&hy(this.XD,this)};
g.K.mK=function(){return IrY(this.info)};
g.K.xW=function(){return this.wf.xW()};
g.K.zB=function(){var u=I0a(this.wf);Object.assign(u,xWL(this.info));u.req="sabr";u.rn=this.kq();var h;if((h=this.xhr)==null?0:h.status)u.rc=this.policy.KY?this.xhr.status:this.xhr.status.toString();var L;(h=(L=this.xhr)==null?void 0:L.KB())&&(u.msg=h);this.Yi&&(L=gab(this,this.Yi-this.Nm.xP()),u.letm=L.tdA,u.mrbps=L.PZ,u.mram=L.q8);return u};
g.K.GJ=function(){return{Dz:this.Dz,xt:this.xt,isDecorated:this.info.isDecorated()}};uGY.prototype.tick=function(u,h){this.ticks[u]=h?window.performance.timing.navigationStart+h:(0,g.vC)()};g.P(Xd,g.yV);g.K=Xd.prototype;
g.K.Nq=function(u,h,L,Z){var y=!1;this.policy.Sd&&(y=L?this.gw===u.yA:this.XB===u.yA);if(this.C&&Z&&!y){Z=[];y=[];var R=[],p=void 0,J=0;h&&(Z=h.G,y=h.N,R=h.B,p=h.X,J=h.Fm,this.IH("sdai",{sq:u.yA,ssvicpns:Z.join("."),ssvid:y.join(".")}));this.policy.Sd&&(L?this.gw=u.yA:this.XB=u.yA);this.C.M6(u.yA,u.startTime,this.N,Z,y,R,L,J,p)}if(this.policy.Sd){if(L||this.policy.zG){this.N===1&&qb(this,5,"noad");var O;u.yA!==((O=this.G)==null?void 0:O.yA)&&(D8b(this,u,h,L),isNaN(u.startTime)||TN(this,u.yA,Nb(this,
u.startTime,u.yA),!!h,this.C))}}else L&&D8b(this,u,h)};
g.K.Uz=function(u,h,L){var Z=this.videoTrack.G.index.Uk()<=h;this.G={gO:u,yA:h,WP:L};Z&&vj(this,u,h)};
g.K.Rq=function(){this.C&&this.C.Rq()};
g.K.IH=function(u,h,L){(u!=="sdai"||this.policy.Oq||(L===void 0?0:L))&&this.nI.IH(u,h)};
g.K.FW=function(u,h){var L=this.videoTrack.G.index.K0(u);if(L>=0){var Z;var y=((Z=h.oV.pL(L,2))==null?void 0:Z.V3)||"";if(this.policy.T||y)return h.Iu(u,L),Y2(this.nI,u,u,L),this.IH("sdai",{cmskpad:1,t:u.toFixed(3),sq:L}),!0}this.IH("sdai",{cmskpad:0,t:u.toFixed(3),sq:L});return!1};g.P(ra,g.m);ra.prototype.b8=function(u,h,L){L=L===void 0?{}:L;this.policy.aM=Qo(u,L,this.B,h===void 0?!1:h)};VW.prototype.Ar=function(u){var h=this;if(this.policy.vU){var L=new Set(u);L.size===this.DI.size&&[].concat(g.l(L)).every(function(Z){return h.DI.has(Z)})||(this.nI.IH("lwnmow",{itagDenylist:[].concat(g.l(u)).join(",")}),this.nI.jp(!!L.size),this.Y=-1,this.DI=L,n4(this,this.G),this.aH=!0)}};
VW.prototype.b8=function(u,h,L){L=L===void 0?{}:L;var Z=this.policy.aM;this.T.b8(u,h===void 0?!1:h,L);if(Z!==this.policy.aM){n4(this,this.G);sK(this);var y,R;Z>this.policy.aM&&((y=this.X)==null?0:wF(y.info))&&((R=this.nextVideo)==null||!wF(R.info))&&(this.AB=!0)}};$2.prototype.Rm=function(u){this.timestampOffset=u;this.flush()};
$2.prototype.flush=function(){if(this.G.pos>0){var u={a:this.track.GD(),u:this.G.n0(),pd:Math.round(this.B),ad:Math.round(this.X)},h=this.N;if(h){var L=h.G.info;u.itag=L.itag;L.G&&(u.xtags=L.G);u.sq=h.yA;u.st=h.startTime;u.sd=h.duration;this.track.policy.z9&&(u.si=h.M1());h.B&&(u.esl=h.N+h.X);h.iW()&&(u.eos=1)}isNaN(this.timestampOffset)||(u.to=this.timestampOffset);var Z;if(h=(Z=this.track.EU)==null?void 0:Z.IV({})){for(var y in h)this.C[y]!==h[y]&&(u["sb_"+y]=h[y]);this.C=h}this.track.IH("sbu",
u);this.G.reset();this.buffered=[];this.T=this.X=this.B=0;this.timestampOffset=this.N=void 0}};Wj.prototype.dispose=function(){this.RH=!0};
Wj.prototype.ww=function(){return this.RH};
g.P(jg,Error);var Eji=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);Z4.prototype.skip=function(u){this.offset+=u};
Z4.prototype.oQ=function(){return this.offset};g.K=uSV.prototype;g.K.YQ=function(){return this.N};
g.K.gH=function(){return this.N.length?this.N[this.N.length-1]:null};
g.K.A2=function(){this.N=[];Jh(this);pR(this)};
g.K.Gp=function(u){this.jd=this.N.shift().info;u.info.ys(this.jd)};
g.K.DK=function(){return g.Xx(this.N,function(u){return u.info})};
g.K.GD=function(){return!!this.C.info.audio};
g.K.getDuration=function(){return this.C.index.fA()};g.P(TS,aC);g.K=TS.prototype;g.K.onStateChange=function(){this.ww()&&(C4(this.N3,this.formatId),this.G.dispose())};
g.K.zB=function(){var u=eme(this.N3,this.formatId),h;var L=((h=this.N3.kF.get(this.formatId))==null?void 0:h.bytesReceived)||0;var Z;h=((Z=this.N3.kF.get(this.formatId))==null?void 0:Z.h7)||0;return{expected:u,received:L,bytesShifted:h,sliceLength:Mb(this.N3,this.formatId),isAnyMediaEndReceived:this.N3.lE(this.formatId)}};
g.K.oS=function(){return 0};
g.K.CX=function(){return!0};
g.K.RQ=function(){return this.N3.RQ(this.formatId)};
g.K.gi=function(){return[]};
g.K.xD=function(){return this.N3.xD(this.formatId)};
g.K.xW=function(){return this.lastError};
g.K.mI=function(){return 0};g.P(ct,g.m);g.K=ct.prototype;g.K.GD=function(){return!!this.G.info.audio};
g.K.gH=function(){return this.B.gH()};
g.K.Gp=function(u){this.B.Gp(u);var h;(h=this.S)!=null&&(h.T.add(u.info.yA),h.G=vgj(h,h.JM,h.Yq,u,h.G),h.X=u,h.C=(0,g.vC)());this.G3=Math.max(this.G3,u.info.G.info.G3||0)};
g.K.getDuration=function(){if(this.policy.N){var u=this.nI.m7();if(u)return u7(u)}return this.G.index.fA()};
g.K.A2=function(){oC(this);this.B.A2()};
g.K.MZ=function(){return this.B};
g.K.isRequestPending=function(u){return this.X.length?u===this.X[this.X.length-1].info.YI[0].yA:!1};
g.K.Rm=function(u){var h;(h=this.S)==null||h.Rm(u);var L;(L=this.Y)==null||L.Rm(u)};
g.K.IH=function(u,h){this.nI.IH(u,h)};
g.K.xz=function(){return this.nI.xz()};
g.K.dispose=function(){var u;(u=this.Y)==null||u.flush();g.m.prototype.dispose.call(this)};g.P(VH,g.m);VH.prototype.X=function(){this.N++>15||(this.G=!this.G,new e21(this.nI,this.policy,this.N1,this.D3,this.G),this.delay.start())};
g.K=e21.prototype;g.K.q2=function(){};
g.K.PF=function(){};
g.K.zw=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.pY()===this.size)this.nI.IH("rqs",this.getInfo());else{var u="net.connect";this.xhr.status>200?u="net.badstatus":this.xhr.nz()&&(u="net.closed");this.onError(u)}};
g.K.onError=function(u){var h=this;this.nI.handleError(u,this.getInfo());P4("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(L){h.nI.IH("pathprobe",L)},function(L){h.nI.handleError(L.errorCode,L.details)})};
g.K.getInfo=function(){var u=this.timing.Vt();u.shost=AD(this.location.eY);u.pb=this.size;return u};g.P(nR,g.m);
nR.prototype.V=function(u,h){if(u.V){this.PX.isLive?(u=this.PX.vr&&this.PX.B?u.G.F6(this.PX.vr,!1):u.G.eA(Infinity),u.Ep=this.Ep):u=u.G.F6(0,!1);if(this.AB){var L=this.AB;u.Ep===0&&(u.T=L.S)}else u.T=this.Y;return u}L=u.N;if(!L.G.c_())return L.G.qJ()?(u=io(this.T,u.G.info.G3,h.G.info.G3,0),u=L.G.k9(L,u)):u=L.G.T9(L),u;var Z=L.pZ-this.nI.getCurrentTime(),y=!L.range||L.X===0&&L.N===0?0:L.range.length-(L.N+L.X),R=L.G;this.lC(u,Z)&&y===0&&(this.PX.isManifestless?R=u.G:(R=L.startTime+Jy,L.X&&(R+=L.duration),
GS(u,R),L=u.N,R=L.G));R.qJ()?(y=this.X,h=io(this.T,R.info.G3,h.G.info.G3,Z,y.B.length>0&&y.S===0&&this.nI.Xr),Z=Nu(u),u=L.G.k9(L,h),(h=u.X)&&u.YI.length>1&&(Z||u.D3.N||u.YI[0].G!==L.G?u=L.G.k9(L,u.YI[0].X):(Z=u.YI[u.YI.length-1],R=Z.X/h,!Z.B&&R<.4&&(u=L.G.k9(L,h-Z.X))))):(L.yA<0&&(h=T5(L),h.pr=""+u.X.length,this.nI.isSeeking()&&(h.sk="1"),h.snss=L.T,this.nI.IH("nosq",h)),u=R.T9(L));if(this.policy.gw)for(L=g.C(u.YI),h=L.next();!h.done;h=L.next())h.value.type=6;return u};
nR.prototype.lC=function(u,h){if(!Nu(u)||!u.G.c_())return!1;var L=this.X.aH||T2n(u)||h<=this.policy.jr||this.X.AB;this.logger.debug(function(){return"ready to adapt: "+L+", upgrade pending: "+T2n(u)+", health: "+h});
return L};
nR.prototype.Ni=function(){g.m.prototype.Ni.call(this)};
var Jy=2/24;g.P(bf,g.m);bf.prototype.IA=function(u,h,L){var Z;var y=((Z=this.N)==null?void 0:Z.reason)==="m"?"m":this.N&&ZCj(this,this.N)?this.N.reason:"a";this.nI.IA(new Hj(u,y,L));th(this.nI,h,u,!0)};
bf.prototype.J_=function(u,h){for(var L=g.C(this.gw),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.id===u)return this.Rb.Kg||(this.X=[Z]),this.C=this.PX.G[u],mL(this.Rb)&&(this.AB=!0),new Hj(this.C,h?"t":"m");this.X=[];return null};
bf.prototype.b8=function(u,h,L){L=L===void 0?{}:L;this.G.b8(u,h===void 0?!1:h,L)};PO.prototype.setData=function(u,h,L,Z){var y=this;Z=Z===void 0?{}:Z;if(L==null?0:L.mz)this.XF=EaV(this,L,Z),u.TY=this.D3.TY();if(this.Ml())return!0;this.data=u;this.G=DWY(u,h,function(R,p){var J;(J=y.XD)==null||J.RP(R,p)},L==null?void 0:L.X);
if(!this.G)return!1;this.N=g.L7(this.G,RDn);return!0};
PO.prototype.Ml=function(){return this.requestType===1};
PO.prototype.x_=function(){var u;return((u=this.XD)==null?void 0:u.x_())||0};
PO.prototype.isDecorated=function(){var u;return!((u=this.data)==null||!u.Im)};C$.prototype.encrypt=function(u){this.Mm.exports.AES128CTRCipher_encrypt(this.cipher,u.byteOffset,u.byteLength);return u};
C$.prototype.ww=function(){return this.cipher===0};
C$.prototype.dispose=function(){this.Mm.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};i$.prototype.encrypt=function(u,h){return h_(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:h},this.key,u).catch(function(L){return Promise.reject(L.name+": "+L.message)}).then(function(L){return new Uint8Array(L)}))};
i$.prototype.ww=function(){return this.G};
i$.prototype.dispose=function(){this.G=!0};
Hy.xG(i$,{encrypt:M4("oan2")});Q_.prototype.encrypt=function(u,h){Ai(this.N,h);return h_(this.N.encrypt(u))};
Q_.prototype.ww=function(){return this.G};
Q_.prototype.dispose=function(){this.G=!0};
Hy.xG(Q_,{encrypt:M4("oap")});l$.prototype.encrypt=function(u,h){var L=this.Mm.HD(h),Z=this.G;Z.Mm.exports.AES128CTRCipher_setCounter(Z.cipher,(L!=null?L:h).byteOffset);h=this.Mm.HD(u);this.G.encrypt(h!=null?h:u);L&&this.Mm.free(L.byteOffset);return h?h_(this.Mm.f1(h)):h_(u)};
l$.prototype.ww=function(){return this.G.ww()};
l$.prototype.dispose=function(){this.G.dispose()};
Hy.xG(l$,{encrypt:M4("oalw")});SE.prototype.encrypt=function(u,h){var L=this,Z=Ln("");u.length<=this.IJ&&this.G&&!this.B&&(Z=pn(Z,function(){return L.G?L.G.encrypt(u,h):Ln("wasm unavailable")}));
u.length<=this.Dx&&(this.G&&this.B&&(Z=pn(Z,function(){return L.G?L.G.encrypt(u,h):Ln("wasm unavailable")})),Z=pn(Z,function(){return iCn(L,u,h)}));
return pn(pn(Z,function(){return QLs(L,u,h)}),function(){return iCn(L,u,h)})};
SE.prototype.ww=function(){return this.T};
SE.prototype.dispose=function(){this.T=!0;var u;(u=this.X)==null||Rd(u,g.Ju);g.Ju(this.G);g.Ju(this.N)};XT.prototype.encrypt=function(u){(0,g.vC)();return(new Ef(this.G.G)).encrypt(u,this.iv)};
XT.prototype.decrypt=function(u,h){(0,g.vC)();return(new Ef(this.G.G)).decrypt(u,h)};
XT.prototype.ww=function(){return this.X};
XT.prototype.dispose=function(){this.X=!0;g.Ju(this.N)};g.P(vO,g.m);vO.prototype.X=function(u,h){if(h){h=h instanceof g.cQ?h:q4(this,h);var L;((L=this.G.get(u))==null?void 0:AD(L.location))!==AD(h)&&this.G.set(u,new NSl(h,u))}else this.G.delete(u)};
vO.prototype.load=function(){var u=this,h,L,Z,y,R,p,J,O,f,D;return g.G(function(c){switch(c.G){case 1:h=u.G.get(0);g.Qn(c,2);var I;if(I=h&&!u.N)I=AD(h.location),I=u.N===jy(I);if(I){c.KI(4);break}return g.N(c,YA(u,u.N?2:0),5);case 5:if(L=c.N)u.X(0,L),PQ(L)&&u.X(1,Ck(L));case 4:g.Sa(c,3);break;case 2:Z=g.Xf(c);g.G3(Z);if(!u.N){c.KI(3);break}u.N=!1;return g.N(c,u.load(),7);case 7:return c.return();case 3:if(!u.xI.experiments.tB("html5_onesie_probe_ec_hosts")){c.KI(0);break}g.Qn(c,9);y=u;R=y.X;p=3;return g.N(c,
YA(u,1),11);case 11:return R.call(y,p,c.N),J=u,O=J.X,f=4,g.N(c,YA(u,2),12);case 12:O.call(J,f,c.N);g.Sa(c,0);break;case 9:D=g.Xf(c),g.G3(D),g.i1(c)}})};
vO.prototype.V=function(){var u=this,h,L;return g.G(function(Z){g.kK(u.S);h=g.Jl(u.xI.experiments,"html5_onesie_prewarm_max_lact_ms");if(v5()>=h)return Z.return();(L=u.G.get(0))&&Ybb(u,L);g.i1(Z)})};
var qbR={SHi:0,gDa:1,QQB:2,ley:3,LOd:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};oU.prototype.decrypt=function(u){var h=this,L,Z,y,R,p,J;return g.G(function(O){switch(O.G){case 1:if(h.G.length&&!h.G[0].isEncrypted)return O.return();h.N=!0;h.fY.uh("omd_s");L=new Uint8Array(16);C7()?Z=new bG(u):y=new Ef(u);case 2:if(!h.G.length||!h.G[0].isEncrypted){O.KI(4);break}R=h.G.shift();if(!Z){p=y.decrypt(R.buffer.oF(),L);O.KI(5);break}return g.N(O,Z.decrypt(R.buffer.oF(),L),6);case 6:p=O.N;case 5:J=p;for(var f=0;f<L.length;f++)if(L[f]===255)L[f]=0;else{L[f]+=1;break}f=h.fY;var D=R.videoId,
c=R.yc,I=R.formatId,A=new It([J]),x;(x=N4(f.lF,D))==null||QW(x,c,I,A);O.KI(2);break;case 4:h.fY.uh("omd_c"),Uw(h),h.N=!1,h.fY.kX(),g.i1(O)}})};
oU.prototype.enqueue=function(u,h,L,Z,y){this.G.push({videoId:u,yc:h,formatId:L,buffer:Z,isEncrypted:y});this.N||Uw(this)};var rzj=!!Uint8Array.prototype.copyWithin,GX=[],HO=[],UWf=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],BO=[],rh=[],m2=[],zX=[];aU.prototype.ij=function(u){return g.eE(new g.dh(u))};
aU.prototype.HC=function(u){function h(p){if(!p.done)return R.append(p.value),y.read().then(function(J){return h(J)})}
if(!("DecompressionStream"in window))return Ln("native decompression unavailable");var L=new DecompressionStream("gzip"),Z=L.writable.getWriter();Z.write(u).then(function(){return Z.close()});
var y=L.readable.getReader(),R=new It([]);return pn(Rd(Rd(h_(y.read()),h),function(){return R.oF()}),function(p){return Ln(p.message)})};
aU.prototype.S6=function(u,h){var L=void 0,Z=h.HD(u);Z&&(L=Z.byteOffset,u=Z);Z=h.exports.getInflatedSize(u.byteOffset,u.length);if(Z===0)return Ln("bad compressed input");var y=h.malloc(Z);if(h.exports.inflateGzip(u.byteOffset,u.length,y))return h.free(y),Ln("inflateGzip failed");L&&h.free(L);return h_(new Uint8Array(h.exports.memory.buffer,y,Z))};
Hy.xG(aU,{ij:function(u){return{profile:"gzjb",c6:Math.ceil(u.byteLength/16)}},
HC:function(u){return{profile:"gznb",c6:Math.ceil(u.byteLength/16)}},
S6:function(u){return{profile:"gzwb",c6:Math.ceil(u.byteLength/16)}}});g.P($A,cj);g.K=$A.prototype;g.K.kX=function(){this.lF.kX()};
g.K.rY=function(u,h){switch(u){case 10:var L=mv(h,ILL);u=L.C2I;var Z=!1;switch(u){case 0:this.X=!L.nP.sHB;this.iv=L.nP.iv;break;case 2:break;case 23:var y=this.lF;L=L.F_d;y.uh("omp_r");L.videoId&&(y.Z8=L.videoId);y.Z8!==y.videoData.videoId&&(y.videoData.Bv=y.Z8,y.IH("ompp","vid."+y.Z8));y.W$=!0;break;case 24:L=this.lF;L.uh("omp_c");L.W$=!1;L.Zt=!1;var R=(y=L.rO)==null?void 0:y.get(L.Z8);L.notifySubscribers(L.Z8);R!=null&&(R.G=!0);b$(L);break;default:Z=!0}this.lF.LY&&this.lF.IH("ombup","id.10;pt."+
u+";len."+h.getLength()+(Z?";ignored.1":""));this.B=u;break;case 11:sLY(this,h);break;case 12:this.Ez(h,!0);break;case 37:h=mv(h,Aci);(h.DY||h.ke)&&h.videoId&&this.lF.Py.set(h.videoId,h);break;case 60:this.cg(h);break;case 47:this.j("html5_server_playback_start_policy")&&(h=mv(h,MRV),this.lF.playbackStartPolicy=h);break;case 35:this.tG(h);break;case 45:this.hG(h);break;case 66:this.bY(h);break;default:this.lF.LY&&this.lF.IH("ombup","id."+u+";len."+h.getLength()+";ignored.1")}};
g.K.U4=function(u){this.lF.U4(u)};
g.K.cg=function(u){u=mv(u,ad);this.lF.cg(u)};
g.K.hG=function(u){u=mv(u,$g);this.lF.hG(u)};
g.K.VM=function(u){var h=u.yc,L=u.Gw,Z=u.rE,y=u.GG,R=u.rH,p=u.startMs,J=u.durationMs,O=u.timeRange,f=u.ql,D=xV(u),c=M1y.has(dF[""+u.itag]);L&&this.uh(c?"oais_r":"ovis_r");var I=this.G[D]!==void 0;this.lF.LY&&this.lF.IH("ombup","id.20;hid."+h+";fid."+D);var A=u.videoId||"";this.N[h]=D;this.T[h]=A;I||(this.G[D]={videoId:A,vC:!1,GD:c,headers:[]});this.G[D].headers.push(u);this.lF.iL(A,D,c,{yc:h,Gw:!!L,rE:Z!=null?Z:-1,rH:R!=null?R:-1,startMs:p!=null?p:-1,durationMs:J!=null?J:-1,ql:f!=null?f:0,GG:y,timeRange:O})};
g.K.Ez=function(u,h){var L=u.getUint8(0);this.lF.LY&&this.lF.IH("ombup","id."+(h?12:21)+";len."+u.getLength()+";hid."+L);if(u.getLength()!==1){u=u.split(1).NJ;var Z=this.N[L]||null,y=this.T[L]||"";Z&&(this.wO(this.G[Z].GD?"oafs_r":"ovfs_r"),this.queue.enqueue(y,L,Z,u,h))}};
g.K.JG=function(u){var h=u.getUint8(0);this.lF.LY&&this.lF.IH("ombup","id.22;len."+u.getLength()+";hid."+h);u=this.N[h]||null;var L=this.T[h]||"";if(u)if(this.j("html5_use_ump_request_slicer")){var Z=this.queue;Z.G.push({videoId:L,yc:h,formatId:u,isEncrypted:!1,Rs:!0});Z.N||Uw(Z)}else this.lF.JG(L,h,u)};
g.K.H0=function(u){this.lF.H0(u)};
g.K.d4=function(u,h){var L=this,Z,y,R,p,J,O,f,D,c,I;return g.G(function(A){switch(A.G){case 1:L.lF.d4();Z=u.oF();if(!h){R=Z;A.KI(2);break}return g.N(A,gyw(L.lF,Z,L.iv),3);case 3:R=A.N;case 2:y=R;if(!L.lF.enableCompression){A.KI(4);break}J=(p=performance)==null?void 0:p.now();return g.N(A,BSw(y),5);case 5:y=A.N,L.lF.IH("decompression",{ds:"DecompressionStream"in window,rt:((O=performance)==null?NaN:O.now())-J});case 4:try{f=mv(y,u2i)}catch(x){return D=x instanceof Error?{name:x.name,message:x.message}:
{},D.webcrypto=""+ +!!C7(),D.enc=""+ +L.X,c=new lZ("onesie.response.parse",D),A.return(Promise.reject(c))}VJL(f);I=g.S4(f.body);return A.return(I)}})};
g.K.tG=function(u){this.j("html5_consume_onesie_next_request_policy_for_sabr")&&(u=mv(u,PWw),this.lF.tG(u))};
g.K.bY=function(u){u={dj:rA(new TR(u),1,lLf)};this.lF.bY(u)};
g.K.uh=function(u){this.lF.uh(u)};
g.K.wO=function(u){return this.lF.wO(u)};
g.K.j=function(u){return this.lF.j(u)};g.P(FT,g.m);g.K=FT.prototype;g.K.E1=function(){return""};
g.K.J1=function(u){var h,L;return((L=(h=this.rO)==null?void 0:h.get(u))==null?void 0:L.J1())||[]};
g.K.xD=function(u,h){var L;return!((L=N4(this,h))==null||!L.xD(u))};
g.K.RQ=function(u,h){var L;return((L=N4(this,h))==null?void 0:L.RQ(u))||[]};
g.K.DK=function(u,h){var L;return((L=N4(this,h))==null?void 0:L.DK(u))||[]};
g.K.Sq=function(u){this.state=u;this.notifySubscribers()};
g.K.Ml=function(){return!1};
g.K.bB=function(){return!1};
g.K.O$=function(){};
g.K.uh=function(u){this.G7.uh(u)};
g.K.wO=function(u){return this.G7.wO(u)};
g.K.cF=function(u,h,L,Z){L||this.Nm.cF(Z);return!1};
g.K.q0=function(u,h){this.fY.q0(u,h)};
g.K.F_=function(){this.uh("orfb");this.t8=!0;if(uuY(this)&&this.xhr){var u={rc:this.xhr.status,lb:this.xhr.pY(),rt:(1E3*eeR(this.Nm)).toFixed(),shost:g.BY(this.n6),trigger:"o1"};this.IH("pathprobe",QE(u))}};
g.K.d4=function(){this.uh("opr_r");this.cC=!0};
g.K.iL=function(u,h,L,Z){if(this.rO){if(!this.rO.has(u)){var y=new AO(this);this.rO.set(u,y);g.V(this,y)}var R;(R=this.rO.get(u))==null||R.iL(h,L,Z);b$(this);L||(this.Dz=Z.rH,this.xt=Z.startMs)}else b$(this)};
g.K.U4=function(u){this.TT=u;u.Nf!=null&&this.G7.cV(u.Nf)};
g.K.cg=function(u){this.KN=u};
g.K.tG=function(u){u.videoId&&this.RK.set(u.videoId,u)};
g.K.kX=function(){if(this.rO)for(var u=g.C(this.rO.keys()),h=u.next();!h.done;h=u.next()){var L=void 0;(L=this.rO.get(h.value))==null||L.VH()}};
g.K.hG=function(u){this.hv=u};
g.K.bY=function(u){if(u==null?0:u.dj)if(u=u.dj.b5){u=g.C(u);for(var h=u.next();!h.done;h=u.next())h=h.value,h.videoId&&this.VU.set(h.videoId,h)}};
g.K.IH=function(u,h,L){this.G7.IH(u,h,L===void 0?!1:L)};
g.K.JG=function(u,h,L){var Z;(Z=N4(this,u))==null||Z.JG(h,L)};
g.K.H0=function(u){this.Ei.set(u.videoId,u)};
g.K.fetch=function(){var u=this,h,L,Z,y,R,p,J,O,f,D,c,I,A,x,Q,S,v,T,U,z,d;return g.G(function(W){switch(W.G){case 1:u.logger.debug("Onesie fetch started.");u.ZJ?u.jJ.start():u.Xe.start();u.uh("or_i");h=u.xI.experiments.tB("html5_onesie_verbose_timing");L={};Z=(0,g.vC)();y=function(t){h&&(L[t]=(0,g.vC)()-Z)};
y("loc_s");if(R=eqw(u.videoData,u.LL)){W.KI(2);break}y("loc_async");p=g.Jl(u.xI.experiments,"html5_onesie_redirector_timeout_ms");return g.N(W,ar1(u.videoData,u.LL,p),3);case 3:R=W.N;case 2:if(!R)return u.logger.info("Onesie URL creation failed."),J={url:"0"},O=new lZ("onesie.unavailable.hotconfig",J),u.NT(O),W.return(u.g6);u.XF=AD(R);y("loc_e");f=g.Fp(u.xI,g.mn(u.videoData));D=!!f.G;if(!D){c=f.getValue();W.KI(4);break}return g.N(W,f.G,5);case 5:c=W.N;case 4:I=c;u.j("html5_log_onesie_empty_oauth")&&
!I&&u.IH("no_token",{async:D});y("oauth");A=tJe(u.playerRequest,u.xI,u.videoData,I,jy(u.XF));g.Qn(W,6);if(!kgY(u,A)){y("or_s_sync");u.r4=Fsf(A,u.Jt,u.xI,u.G7,u.d$.onesieUstreamerConfig,(x=u.videoData.R1)==null?void 0:x.kc);W.KI(8);break}y("or_s_async");return g.N(W,Eyb(A,u.Jt,u.xI,u.G7,u.d$.onesieUstreamerConfig,(Q=u.videoData.R1)==null?void 0:Q.kc),9);case 9:u.r4=W.N;case 8:g.Sa(W,7);break;case 6:return S=g.Xf(W),u.logger.info("Failed to create OnesieRequestProto."),u.NT(S),W.return(u.g6);case 7:return y("or_e"),
h&&u.IH("oreqvt",L),u.enableCompression=u.r4.IL.Cn,u.uh("osor"),v=Vha(),T=g.L7(u.r4,Bin),U={method:"POST",body:T,headers:{"Content-Type":"text/plain",Referer:location.origin}},z=u.j("html5_onesie_media_capabilities"),$Ww(R,u.videoData,hHe(u),z),u.logger.debug("Starting Onesie network request."),u.LY&&u.IH("ombrs","1"),d=u.G7.L().schedule,u.Nm=new nt(u,{N1:d,UZ:u.LY,hF:function(t,yn){u.G7.oh(t,yn)},
bu:!0}),R.set("rn",""+u.Nm.requestNumber),u.n6=R.VQ(),Vt(u.Nm,u.n6),u.uh("or_p"),u.xhr=W4(new RW(R),v,u.Nm,sf,U),u.Jv.start(),W.return(u.g6)}})};
g.K.MR=function(){return 2};
g.K.q2=function(){this.uh("orh_r")};
g.K.PF=function(){!this.t8&&this.xhr.pY()&&this.F_();if(this.Gx&&!this.ZJ){var u;(u=this.DX)==null||u.start()}this.sH()};
g.K.zw=function(u){u=u===void 0?!1:u;this.logger.debug("onXhrDone");this.sH();if(!(this.ww()||this.state>=4)){var h=WO(this),L=this.xhr;h.rc=L.status;u&&(h.ab=!0);if(L.KB()){var Z="onesie.net";h.msg=L.KB()}else L.status>=400?Z="onesie.net.badstatus":L.vV()?this.cC||(Z="onesie.response.noplayerresponse"):Z=L.status===204?"onesie.net.nocontent":"onesie.net.connect";Z?this.NT(new lZ(Z,h)):(this.uh("or_fs"),this.Nm.xX((0,g.vC)(),L.pY(),0),this.Sq(4),this.LY&&this.IH("rqs",h));this.LY&&this.IH("ombre",
"ok."+ +!Z);this.Zt=!1;b$(this);ta(this.fY);if(!this.ZJ){this.Xe.stop();var y;(y=this.DX)==null||y.stop()}var R;if(u=(R=this.LL)==null?void 0:oyf(R))for(R=0;R<u.length;R++)this.IH("pathprobe",u[R])}};
g.K.MS=function(){if(this.playerResponse&&this.xhr&&this.rO)for(var u=g.C(this.rO.entries()),h=u.next();!h.done;h=u.next())if(h=g.C(h.value),h.next(),h.next().value.N){this.xhr.abort();this.zw(!0);break}};
g.K.L=function(){return this.xI};
g.K.j=function(u){return this.xI.j(u)};
g.K.Dp7=function(){if(uuY(this)&&this.LL&&(!this.t8||this.j("html5_onesie_probe_ec_hosts"))){var u=this.LL;if(u.xI.experiments.tB("html5_onesie_probe_ec_hosts")){var h,L=(h=u.G.get(3))==null?void 0:AD(h.location);L&&TX(u,L,"osc",this);var Z;(L=(Z=u.G.get(4))==null?void 0:AD(Z.location))&&TX(u,L,"ocy",this)}else{var y;(Z=(y=u.G.get(1))==null?void 0:AD(y.location))&&TX(u,Z,"o2",this);(Z=(L=u.G.get(2))==null?void 0:AD(L.location))&&TX(u,Z,"o3",this)}}};
g.K.bd=function(){if(!this.ww()&&!this.isComplete()){if(this.Gx){if((0,g.vC)()-this.Nm.V>1E3){var u;(u=this.Nm)==null||u.Ju((0,g.vC)());u=WO(this);if(this.xI.UU()&&this.xhr instanceof $0){var h=this.xhr;u.xrs=h.xhr.readyState;u.xpb=h.G.getLength();u.xdc=h.B}this.NT(new lZ("net.timeout",u))}}else(0,g.vC)()-this.Nm.G>1E4&&((h=this.Nm)==null||h.Ju((0,g.vC)()),this.LR());this.isComplete()||this.jJ.start()}};
g.K.LR=function(){this.logger.info("Onesie request timed out");this.Zt=!1;if(!b$(this)){var u=WO(this);u.timeout="1";this.NT(new lZ("onesie.request",u))}};
g.K.NT=function(u){var h=this;u=Xo(u);this.Gx?this.G7.Hj(u):(this.g6.reject(u),this.Gx=!0);ta(this.fY);this.ZJ||this.Xe.stop();this.uh("or_fe");var L,Z;(L=this.LL)==null||(Z=oyf(L))==null||Z.forEach(function(y){h.IH("pathprobe",y)});
this.Sq(5);this.dispose()};
g.K.isComplete=function(){return this.state>=3};
g.K.nQ=function(){return this.state===4};
g.K.Sl=function(u){var h,L;return this.isComplete()||!!((h=this.rO)==null?0:(L=h.get(u))==null?0:L.G)};
g.K.Rk=function(){return!1};
g.K.qt=function(){return this.state===5};
g.K.notifySubscribers=function(u){for(var h=0;h<this.bZ.length;h++)u&&this.bZ[h].UX()!==u||hy(this.bZ[h],this)};
g.K.mK=function(){var u,h;return((u=this.r4)==null?void 0:(h=u.Ha)==null?void 0:h.o1)||0};
g.K.Ni=function(){this.playerResponse="";var u;(u=this.xhr)==null||u.abort();ta(this.fY);this.u_.dispose();var h;(h=this.DX)==null||h.dispose();this.Sq(-1);this.bZ=[];g.m.prototype.Ni.call(this)};
g.K.sH=function(){try{var u=this.xhr;u.pY()>102400&&!this.xf&&(this.uh("or100k"),this.xf=!0);if(u.Sh()){var h=u.Zq(),L=h.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+L});
this.LY&&this.IH("ombrss","len."+L);this.u_.feed(h)}if(this.rO)for(var Z=g.C(this.rO.keys()),y=Z.next();!y.done;y=Z.next()){var R=y.value;u=void 0;(u=this.rO.get(R))==null||u.VH();this.notifySubscribers(R)}}catch(p){this.NT(p)}};
g.K.kq=function(){return this.Nm.requestNumber};
g.K.DM=function(u){return this.Ei.get(u)};
g.K.GJ=function(){return{Dz:this.Dz,xt:this.xt,isDecorated:!1}};g.P(Ew,g.m);g.K=Ew.prototype;g.K.iY=function(u,h){this.RH=void 0;SXj(this);igV(this,u,h)};
g.K.B$=function(u){if(this.G.length===0)return!1;var h=this.G[0];return h instanceof FT?u===this.nI.getCurrentTime()*1E3:!(h instanceof lE&&Aze(h.info))&&Math.abs(h.mK()-u)<50};
g.K.tG=function(u){this.N=u;this.RH=(0,g.vC)()+(u.backoffTimeMs||0)};
g.K.Ih=function(u,h){if(u.action===void 0){var L=this.G7.Q3();L!==void 0&&this.nI.yn(L)}else if(u.action!==0||!this.jd)switch(u.action===0&&this.policy.An&&(u.action=2),L={},L.reason=u.hRA,L.action=u.action,L.rn=h,u.action){case 1:this.policy.T&&this.B&&this.B.BP(void 0,void 0,L);break;case 0:this.jd=!0;this.videoData.KZ()&&this.policy.T&&this.B&&this.B.BP(void 0,void 0,L,!1);this.nI.Kn(L);break;case 2:this.nI.handleError("sabr.config",L,1);break;case 5:sZ1(this.G7,!0);break;case 6:sZ1(this.G7,!1);
break;case 3:this.policy.mz&&((u=this.PX.S)!=null&&(u.S=!0),this.nI.handleError("sabr.hostfallback",L))}};
g.K.ez=function(u,h,L,Z){if(this.policy.N){this.nI.IH("ssap",{rn:Z,v:h,tl:vms(u)});var y=this.nI.m7();u={b7:u,context:L,version:h};QBn(this,L);y?lsV(this,y,u):(this.nI.IH("ssap",{cacheclips:1,rn:Z,v:h}),this.S=u)}};
g.K.uQ=function(u){var h=this.policy.Dw;this.nI.IH("ssap",{onsbrctxt:u.type,dflt:u.sendByDefault,enable:h?1:0});h&&(QBn(this,u),this.G7.uQ(u))};
g.K.ek=function(){};
g.K.hG=function(u){if(u.X4!==void 0&&u.z$){var h=u.X4/u.z$;this.audioTrack.V=!1;this.videoTrack.V=!1;if(this.policy.RH||this.policy.f3||this.policy.qU)this.nI.eD.N=!1;this.nI.fm(h,1);if(this.G7.getCurrentTime()!==h){var L={Ek:"sabr_seek",gC:!0,ZQ:!0};u.seekSource&&(L.seekSource=u.seekSource);B4(this.nI,h+.1,L)}}};
g.K.onSnackbarMessage=function(u){this.G7.publish("onSnackbarMessage",u)};
g.K.U4=function(u){u.Gr&&u.oi&&A3(this.PX,u.Gr,u.oi);this.policy.J6&&(u.eT&&u.Gi&&(this.PX.WS=u.eT/u.Gi),u.sN&&u.LQ&&(this.PX.gD=u.sN/u.LQ));u.Nf!=null&&this.G7.cV(u.Nf);this.policy.eO&&u.U6&&(u=((0,g.vC)()-u.U6)/1E3,this.nI.UE.mO(1,u))};
g.K.H8=function(u){this.nI.H8(u)};
g.K.GK=function(u,h,L){this.policy.X&&this.nI.IH("sabrctxtplc",{start:u?u.join("_"):"",stop:h?h.join("_"):"",discard:L?L.join("_"):""});if(u){u=g.C(u);for(var Z=u.next();!Z.done;Z=u.next())this.VI.add(Z.value)}if(h)for(h=g.C(h),u=h.next();!u.done;u=h.next())u=u.value,this.VI.has(u)&&this.VI.delete(u);if(L)for(L=g.C(L),h=L.next();!h.done;h=L.next())h=h.value,this.videoData.sabrContextUpdates.has(h)&&(this.videoData.sabrContextUpdates.delete(h),h===3&&(this.videoData.zI=""))};
g.K.nt=function(){};
g.K.Rf=function(u){this.C=u};
g.K.Q0=function(u){this.vX=u};
g.K.Rh=function(u,h){dL(this.policy,u,4,h)};
g.K.bY=function(u){if(u==null?0:u.dj)if(u=u.dj.b5){u=g.C(u);for(var h=u.next();!h.done;h=u.next())if(h=h.value,h.formatId){var L=this.PX.X.get(xV(h.formatId));L&&L.info&&(L.info.debugInfo=h.debugInfo)}}};
g.K.xT=function(u){(u=u==null?void 0:u.reloadPlaybackParams)&&this.G7.publish("reloadplayer",u)};
g.K.UX=function(){return this.G7.UX()||""};
g.K.x_=function(){var u=XV(this.audioTrack,!0)*1E3,h=XV(this.videoTrack,!0)*1E3;return Math.min(u,h)};
g.K.RP=function(u,h){this.nI.IH(u,h)};
g.K.X8=function(u){$1R(this.nI,TOj(this.ZI,u))};
g.K.Ni=function(){g.m.prototype.Ni.call(this);this.N=void 0;igV(this,!0,"i");this.G=[]};qXe.prototype.pW=function(u,h){if(this.B)return U1L(this,h);if(h=zS(u)){var L=h.N;L&&L.X&&L.G&&(u=u.X.length?u.X[0]:null)&&u.state>=2&&!u.qt()&&u.info.Ep===0&&(this.B=u,this.V=L,this.N=h.info,this.C=this.startTimeSecs=Date.now()/1E3,this.T=this.N.startTime)}return NaN};
qXe.prototype.clear=function(){this.N=this.V=this.B=null;this.G=this.T=this.C=this.startTimeSecs=NaN;this.X=!1};g.P(g.Rq,g.m);g.K=g.Rq.prototype;g.K.initialize=function(u,h,L){this.logger.debug(function(){return"Initialized, t="+u});
u=u||0;this.policy.G||(h=oVb(this.G),FgY(this.G7,new Hj(h.video,h.reason)),this.G7.N6(new Hj(h.audio,h.reason)));this.PX.isManifestless&&giV(this.T);this.V&&YXl(this.V,this.videoTrack.G);h=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var Z=!this.PX.isManifestless;this.policy.x6&&(Z=Z||this.PX.Ph);this.policy.DI||(this.currentTime=Z?u:h);this.policy.RH&&this.seek(this.getCurrentTime(),{}).R5(function(){});
if(this.policy.G){var y;((y=this.AB)==null?0:Lgj(y,this.UX()||""))&&zHs(this)&&BCw(this,this.videoTrack)&&BCw(this,this.audioTrack)&&(Xun(this.X,this.AB),this.policy.C&&rVj(this))}else this.RH&&(m1a(this,this.videoTrack),m1a(this,this.audioTrack),wQn(this.RH),delete this.RH);L?(this.policy.Th?(this.Ca=L,KT(this,L)):KT(this,!1),g.kK(this.CN)):(L=this.getCurrentTime()===0,eg(this.T,this.videoTrack,this.videoTrack.G,L),eg(this.T,this.audioTrack,this.audioTrack.G,L),this.policy.G&&RHs(this.X,!0),this.policy.RH||
this.seek(this.getCurrentTime(),{}).R5(function(){}),this.timing.tick("gv"));
(this.PX.vr||this.PX.w2||this.PX.vX||this.PX.mz||this.PX.vj)&&this.G7.Es(this.PX)};
g.K.resume=function(){if(this.isSuspended||this.Xr){this.logger.debug("Resumed.");this.pp=this.Xr=this.isSuspended=!1;try{this.pW()}catch(u){g.UZ(u)}}};
g.K.e8=function(){return!this.policy.Ca};
g.K.zb=function(u,h){u=u===void 0?!1:u;h=h===void 0?!1:h;this.logger.debug("detaching media source");sB1(this);this.G7.IF()&&(this.C=NaN);u?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.T7&&this.IH("loader",{setsmb:1}),this.policy.gw=!0,this.A2()):(this.policy.Th?KT(this,this.Ca):KT(this,!1),h||this.A2())};
g.K.setAudioTrack=function(u,h,L){L=L===void 0?!1:L;if(!this.ww()){var Z=!isNaN(h);L&&Z&&(this.audioTrack.AB=Date.now(),this.policy.jx&&(this.Sd=!0));if(this.policy.G){var y=this.N.J_(u.id,Z);this.logger.debug(function(){return"Logging new audio format: "+y.G.info.id});
this.G7.N6(y)}else{var R=q4n(this.G,u.id,Z);this.logger.debug(function(){return"Logging new audio format: "+R.audio.info.id});
this.G7.N6(new Hj(R.audio,R.reason))}if(Z&&(L=this.audioTrack.G.index.K0(h),this.IH("setAudio",{id:u.id,cmt:h,sq:L}),L>=0)){this.policy.G&&(this.N.S=!0,this.iY(!0,"mosaic"));vt(this.audioTrack,L,NaN,NaN);!this.policy.ol&&this.PX.isLive&&IV(this.PX,L,!1);return}this.G7.D2()}};
g.K.setPlaybackRate=function(u){u!==this.Y.getPlaybackRate()&&this.Y.setPlaybackRate(u)};
g.K.M5=function(u){var h=this.X.C;this.X.Rf(u);this.IH("scfidc",{curr:xV(h),"new":xV(u)});u&&xV(u)!==xV(h)&&(this.iY(!1,"caption change"),this.pW())};
g.K.uZ=function(u){this.X.Q0(u)};
g.K.IA=function(u){var h=u.G.info.GD();this.logger.debug(function(){return"New "+(h?"audio":"video")+" format from SABR: "+gF(u.G.info)});
h?this.G7.N6(u):FgY(this.G7,u)};
g.K.X8=function(u){XG(u.YI[u.YI.length-1])&&$1R(this,TOj(this.G,u.YI[0].G))};
g.K.KE=function(){return this.G7.KE()};
g.K.Bi=function(){return this.G7.Bi()};
g.K.H8=function(u){this.G7.L().UU()&&this.IH("sps",{status:u.z6||""});if(u.z6===1)this.G7.videoData.hf=0;else if(u.z6===2||u.z6===3){var h=!1;if(u.z6===3){h=this.G7.Gl();var L;this.eq=(L=u.e8g)!=null?L:Infinity;this.G7.videoData.hf=h+1;(h=Wt(this))&&this.bb(!0)}this.G7.YX(!0,h)}};
g.K.PP=function(){return this.G7.PP()};
g.K.Ue=function(){return this.G7.Ue()};
g.K.I1=function(u){this.G7.I1(u)};
g.K.jlI=function(){var u,h=(u=this.G7.yQ())==null?void 0:u.getCurrentTime();h?this.G7.IH("rms",{cta:h}):g.kK(this.mz)};
g.K.pW=function(){asi(this);if(this.oH&&dM(this.oH)&&!this.oH.L7()&&(!this.policy.DI||isFinite(this.getCurrentTime()))){var u=Ah(this.videoTrack);u=this.policy.Nh&&u&&u.iW();this.PX.isManifestless&&this.PX.B&&Of(this.PX)?(this.C=Of(this.PX),this.oH.N9(this.C)):xi(this.PX)&&!u?isNaN(this.C)?(this.C=this.getCurrentTime()+3600,this.oH.N9(this.C)):this.C<=this.getCurrentTime()+1800&&(this.C=Math.max(this.C+1800,this.getCurrentTime()+3600),this.oH.N9(this.C)):this.oH.isView||(u=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.C)||this.C!==u)&&u>0&&(this.oH.N9(u),this.C=u))}if(!this.ww())if(J3(this.PX)&&this.PX.qt()){var h=this.PX;this.handleError("manifest.net.retryexhausted",h.Sd?{rc:h.W_}:{rc:h.W_.toString()},1)}else if(this.policy.G)a:{try{Pte(this.X);this.PX.isManifestless&&this.policy.C&&H4(this.eD);if(nmf(this)&&this.oH&&!sF(this.oH)&&this.videoTrack.vX&&this.audioTrack.vX){this.IH("ssap",{delaysb:1,v:this.videoTrack.G.info.id,vf:this.videoTrack.G.info.QA,a:this.audioTrack.G.info.id,
af:this.audioTrack.G.info.QA});var L=this.oH,Z=this.videoTrack.G,y=this.audioTrack.G;!sF(L)&&y&&Z&&(Qrf(L,Z.info,y.info,this.policy.Mr),wu1(this,L))}var R;((R=this.oH)==null?0:sF(R))&&this.Am();this.policy.G||pT(this);RHs(this.X)}catch(J){g.G3(J);h=J;if(h.message.includes("changeType")){this.IH("ssap",{exp:h.name,msg:h.message,s:h.stack});break a}this.handleError("fmt.unplayable",{exp:h.name,msg:h.message,s:h.stack},1)}cFi(this);g.kK(this.VA)}else if(!this.PX.N||!N2e(this.videoTrack)&&!N2e(this.audioTrack)||
(this.videoTrack.T||this.audioTrack.T)&&this.policy.La?L=!1:(this.A2(),this.G7.seekTo(Infinity,{Ek:"checkLoaderTracksSync",fm:!0}),L=!0),!L){asi(this);this.PX.isManifestless&&(Ucs(this.videoTrack),Ucs(this.audioTrack),H4(this.eD),(L=zS(this.videoTrack))&&L.N&&(L=L.N.X&&!this.policy.yI,this.IH(L===this.policy.S.vx?"strm":"strmbug",{strm:L,sfmp4:this.policy.S.vx,dfs:this.policy.yI},!0)));if(this.oH)this.Am();else if(this.policy.B){var p;L=!1;if(this.policy.ZN)for(Z=g.C([this.videoTrack,this.audioTrack]),
y=Z.next();!y.done;y=Z.next()){R=y.value;for(y=zS(R);y&&R.gH()!==Ah(R);y=zS(R))R.Gp(y);L=L||!!y}else(h=zS(this.videoTrack))&&this.videoTrack.Gp(h),(p=zS(this.audioTrack))&&this.audioTrack.Gp(p);QH(this.videoTrack)&&QH(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(h||p||L)&&jL(this)}pT(this);eg(this.T,this.videoTrack,this.videoTrack.G,!1);eg(this.T,this.audioTrack,this.audioTrack.G,!1);this.policy.NF||Wgb(this,this.videoTrack,this.audioTrack);thl(this.T,this.videoTrack,
this.audioTrack);thl(this.T,this.audioTrack,this.videoTrack);cFi(this);this.V&&(h=this.V,h.B?(p=h.C+h.policy.Bd,h.X||(p=Math.min(p,h.startTimeSecs+h.policy.T2)),h=Math.max(0,p*1E3-Date.now())):h=NaN,isNaN(h)||g.kK(this.nH,h));g.kK(this.VA)}};
g.K.Kn=function(u){this.G7.Kn(u)};
g.K.Am=function(){var u=this;if(this.oH){var h=this.oH.G,L=this.oH.N;CnL(this,this.audioTrack);CnL(this,this.videoTrack);var Z=Em1(this);if(Z){if(this.policy.va){if(!h.Jx()){var y=zS(this.audioTrack);if(y){if(!yD(this,this.audioTrack,h,y.info))return;uPn(this,this.audioTrack,h,y)}}if(!L.Jx()&&(y=zS(this.videoTrack))){if(!yD(this,this.videoTrack,L,y.info))return;uPn(this,this.videoTrack,L,y)}}this.hh||(this.hh=(0,g.vC)(),this.logger.debug(function(){return"Appends pause start "+u.hh+" reason "+Z}),
this.policy.X&&this.IH("apdps",{r:Z}))}else if(this.hh&&(bgL(this,this.hh),this.hh=0),kwj(this),y=!1,this.policy.N&&Ht(this.videoTrack)||!yFi(this,this.videoTrack,L)||(y=!0,L7s(this.timing),pal(this.timing)),this.oH&&!this.oH.XE()&&(this.policy.N&&Ht(this.audioTrack)||!yFi(this,this.audioTrack,h)||(y=!0,Zbf(this.timing),K7L(this.timing)),!this.ww()&&this.oH)){if(!this.policy.Ca&&QH(this.videoTrack)&&QH(this.audioTrack)&&dM(this.oH)&&!this.oH.L7()){L=!1;
L=Ah(this.audioTrack);if(this.policy.N){var R;h=(R=this.AM)==null?void 0:v4(R,L.ob*1E3);L=!(!h||h.clipId!==L.clipId);this.IH("ssap",{eos:L})}else R=L.G,L=R===this.PX.G[R.info.id];L&&(this.logger.debug("Setting EOS"),lKn(this.oH),dAf(this.schedule))}y&&!this.oH.isAsync()&&jL(this)}}};
g.K.WW=function(u){var h,L=u===((h=this.oH)==null?void 0:h.G)?this.audioTrack:this.videoTrack,Z;(Z=L.gw)==null||Z.stop();var y;if((y=zS(L))==null?0:y.isLocked){if(this.G7.L().UU()){var R;this.IH("eosl",{ounlock:(R=zS(L))==null?void 0:R.info.M1()})}var p;fya(this,u===((p=this.oH)==null?void 0:p.G))}var J;if(this.policy.jx&&u===((J=this.oH)==null?void 0:J.G)&&this.fI){h=this.fI-this.getCurrentTime();var O;this.G7.IH("asl",{l:h,xtag:(O=Ah(this.audioTrack))==null?void 0:O.G.info.G});this.Sd=!1;this.fI=
0}u.Sb()&&u.QQ().length===0&&(u.m$(),this.oH&&!this.oH.Sb()&&(this.G7.L().UU()&&this.G7.IH("rms",{ld:"seek"}),this.oH.C=performance.now(),this.G7.jM(),this.G7.L().UU()&&g.kK(this.mz)));var f;(f=L.Y)!=null&&tO(f,0);this.policy.xl&&this.policy.X6&&this.oH&&(L=u.UK())&&L.iW()&&!Ll(u.QQ(),Math.min(L.ob+Jy,L.pZ))&&this.IH("sbunb",{st:L.ob,et:L.pZ});this.policy.nH?$U(this):this.pW()};
g.K.SUH=function(u){if(this.oH){var h=Ah(u===this.oH.G?this.audioTrack:this.videoTrack);if(u=u.rr())for(var L=0;L<u.length;L++)this.IH("appendedbuffer",{i:L,b:g.Mk(u[L].subarray(0,4096),3)});u=void 0;h&&(u=T5(h),this.policy.N&&this.AM&&this.AM.jh()&&(u.ccid=this.AM.jh()));this.handleError("fmt.unplayable",u,1)}};
g.K.W8=function(u){this.G7.W8(u)};
g.K.Nq=function(u,h,L){if(this.PX.isManifestless){u=!!u.info.video;xcY(this,h,L,u,!0);var Z;if(((Z=this.G7.getVideoData())==null?0:Z.enableServerStitchedDai)&&h.G){a:{Z=this.PX;var y=h.yA;for(R in Z.G)if(!WX(Z.G[R].info)&&Z.G[R].info.Wr()===!u){L=void 0;var R=((L=Z.G[R].index.Pb(y))==null?void 0:L.G)||0;break a}R=0}R!==0&&R!==h.G&&this.handleError("ssdai.avsync",{sq:h.yA,a:u?R:h.G,v:u?h.G:R},0)}}};
g.K.Uz=function(u,h,L,Z){u.info.video&&this.B.Uz(h,L,Z)};
g.K.Ar=function(u){this.G.Ar(u)};
g.K.f$=LV(19);g.K.q6=function(u){this.AM=u;var h;(h=this.audioTrack.S)!=null&&(h.oV=u);(h=this.videoTrack.S)!=null&&(h.oV=u);h=this.X;h.S&&(h.nI.IH("ssap",{addcacheclips:1,v:h.S.version,tl:vms(h.S.b7)}),lsV(h,u,h.S),h.S=void 0)};
g.K.m7=function(){return this.AM};
g.K.gj=function(){return this.videoTrack.V||this.audioTrack.V};
g.K.seek=function(u,h){if(this.ww())return PY();if(this.gj())return PY("seeking to head");if(this.policy.RH&&!isFinite(u))return Hnn(this.eD),g.xQ(Infinity);asi(this);this.Vc=(0,g.vC)();this.policy.G||pT(this,u);this.oH&&this.oH.G&&this.oH.N&&!this.G7.getVideoData().nu&&(this.oH.G.isLocked()||this.oH.N.isLocked())&&this.G7.D2({reattachOnLockedBuffer:1,vsb:""+this.oH.N.isLocked(),asb:""+this.oH.G.isLocked()});var L=this.getCurrentTime(),Z=this.eD.seek(u,h);this.policy.DI||(this.currentTime=Z);UK(this.B,
u,L,this.policy.OM&&!h.gC);jL(this);return g.xQ(Z)};
g.K.B$=function(u){return this.policy.G&&this.X.B$(u)};
g.K.iY=function(u,h){this.X.iY(u,h)};
g.K.getCurrentTime=function(){if(this.policy.DI){var u=this.df()||0;return this.G7.getCurrentTime()-u}return this.currentTime};
g.K.QU=function(){return this.audioTrack.G.info};
g.K.fv=function(){return this.videoTrack.G.info};
g.K.cU=function(){return this.audioTrack.G.info.QA};
g.K.PU=function(){return this.videoTrack.G.info.QA};
g.K.Ni=function(){try{this.zb(),oC(this.audioTrack),oC(this.videoTrack),Ua(this.audioTrack),Ua(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.m.prototype.Ni.call(this)}catch(u){g.UZ(u)}};
g.K.handleError=function(u,h,L){L=L===void 0?0:L;var Z=SX(L);u==="fmt.unplayable"&&this.PX.isLive&&(this.policy.va=!1,cW(this.PX));h=new lZ(u,h,L);g.b1(this);QE(h.details);this.G7.handleError(h);u!=="html5.invalidstate"&&h.errorCode!=="fmt.unplayable"&&u!=="fmt.unparseable"&&Z&&this.dispose()};
g.K.IV=function(){var u=Ah(this.audioTrack),h=Ah(this.videoTrack);u={lct:this.getCurrentTime().toFixed(3),lsk:this.eD.isSeeking(),lmf:this.G.G.isLocked(),lbw:fC(this.schedule).toFixed(3),lhd:Jz(this.schedule).toFixed(3),lst:((this.schedule.V.NO()||0)*1E9).toFixed(3),laa:u?u.M1():"",lva:h?h.M1():"",lar:this.audioTrack.N?this.audioTrack.N.M1():"",lvr:this.videoTrack.N?this.videoTrack.N.M1():"",laq:""+lf(this.audioTrack),lvq:""+lf(this.videoTrack)};this.oH&&!this.oH.XE()&&this.oH.G&&this.oH.N&&(u.lab=
ji(this.oH.G.QQ()),u.lvb=ji(this.oH.N.QQ()));this.hh&&(u.lapt=((0,g.vC)()-this.hh).toFixed(0),u.lapr=Em1(this));this.DI&&(u.lapmabht=((0,g.vC)()-this.DI).toFixed(0),u.lapmabh=Ue(this,this.audioTrack).toFixed(0));this.vX&&(u.lapmvbht=((0,g.vC)()-this.vX).toFixed(0),u.lapmvbh=Ue(this,this.videoTrack).toFixed(0));this.T7&&(u.lapsdai=((0,g.vC)()-this.T7).toFixed(0));return u};
g.K.A2=function(){try{this.policy.G&&this.X.iY(!1,"pending"),this.audioTrack.A2(),this.videoTrack.A2()}catch(u){g.UZ(u)}this.policy.B=""};
g.K.Zy=function(){return M3(this.Y)};
g.K.IH=function(u,h,L){this.G7.IH(u,h,L===void 0?!1:L)};
g.K.UX=function(){return this.G7.UX()};
g.K.fm=function(u,h){u/=h;isNaN(this.timestampOffset)&&MSl(this,u-Math.min(u,this.policy.H4));return(u-this.timestampOffset)*h};
g.K.df=function(){return this.timestampOffset};
g.K.isSeeking=function(){return this.eD.isSeeking()};
g.K.Rq=function(){this.B.Rq()};
g.K.b8=function(u,h,L){h=h===void 0?!1:h;L=L===void 0?{}:L;this.policy.G?this.N.b8(u,h,L):this.G.b8(u,h,L)};
g.K.QN=function(u,h){if(!this.S)return!1;var L=this.videoTrack.G.index.K0(u);return this.S.QN(u,h,L)};
g.K.FW=function(u,h){if(this.S&&this.B.FW(u,this.S))return MSl(this,this.timestampOffset-h),jL(this),this.policy.T&&(cW(this.PX),Ua(this.audioTrack),Ua(this.videoTrack),this.A2()),!0;h=this.videoTrack.G.index.K0(u);this.handleError("ad.skipfailed",{dec:!!this.S,t:u.toFixed(3),sq:h});return!1};
g.K.getManifest=function(){return this.PX};
g.K.isOffline=function(){return!!this.G7.getVideoData().cotn};
g.K.oh=function(u,h){this.G7.oh(u,h)};
g.K.fz=function(u){if(this.policy.r6)this.policy.G&&this.X.iY(!0,"utc"),this.pW();else{var h=this.G7.getVideoData().Ee;if(h){var L=this.T;L.td=u;L.Ee=h;FV(this)}}};
g.K.yn=function(u){this.videoTrack.V=!1;this.audioTrack.V=!1;this.eD.N=!1;this.G7.yn(u)};
g.K.bO=function(u){this.eD.bO(u-this.df())};
g.K.Vq=function(){this.G7.Vq()};
g.K.bb=function(u){u!==this.policy.oM&&((this.policy.oM=u)||this.pW())};
g.K.jk=function(u,h){var L=this.audioTrack.EU,Z=this.videoTrack.EU;L&&Z&&(L.remove(u,h),Z.remove(u,h))};
g.K.D2=function(u){this.G7.D2(u)};
g.K.jp=function(u){this.G7.jp(u)};
g.K.Gl=function(){return this.G7.Gl()};g.K=g.Oy.prototype;g.K.Fj=function(u,h,L,Z,y,R){return this.oV.Fj(u,h,L,Z,y,R)};
g.K.CG=function(u,h,L,Z,y,R){return this.oV.CG(u,h,L,Z,y,R)};
g.K.CR=function(u){return this.oV.CR(u)};
g.K.yC=function(u){this.oV.yC(u)};
g.K.BP=function(u,h,L,Z){return this.oV.BP(u,h,L,Z)};
g.K.Rq=function(){this.oV.Rq()};
g.K.QN=function(u,h,L){return this.oV.QN(u,h,L)};
g.K.Iu=function(u,h){this.oV.Iu(u,h)};
g.K.I6=function(){this.oV.I6()};
g.K.EK=LV(48);g.K.ju=function(u,h,L){this.oV.ju(u,h,L)};
g.K.Ks=LV(51);g.K.M6=function(u,h,L,Z,y,R,p,J,O){this.oV.M6(u,h,L,Z,y,R,p,J,O)};
g.K.k8=function(u){this.oV.k8(u)};
g.K.Vn=function(u){return this.oV.Vn(u)};
g.K.O5=function(u){return this.oV.O5(u)};g.P(fT,g.yV);g.P(Dn,fT);Dn.prototype.C=function(u,h){if(u&&h){var L=Number(en(u,"cpi"))*1+1;isNaN(L)||L<=0||L<this.X?(this.B.stop(),this.N.stop(),this.X=-1,this.G={}):(L>this.X&&(this.X=L,g.Tc(this.G)||(this.G={},this.B.stop(),this.N.stop())),this.G[h]=u,g.kK(this.N))}};
Dn.prototype.T=function(){for(var u=g.C(Object.keys(this.G)),h=u.next();!h.done;h=u.next()){var L=h.value;h=this.publish;for(var Z=this.X,y=this.G[L].match(Ur),R=[],p=g.C(y[6].split("&")),J=p.next();!J.done;J=p.next())J=J.value,J.indexOf("cpi=")===0?R.push("cpi="+Z.toString()):J.indexOf("ek=")===0?R.push("ek="+g.Wo(L)):R.push(J);y[6]="?"+R.join("&");L="skd://"+y.slice(2).join("");y=L.length*2;Z=new Uint8Array(y+4);Z[0]=y%256;Z[1]=(y-Z[0])/256;for(y=0;y<L.length;++y)Z[y*2+4]=L.charCodeAt(y);h.call(this,
"rotated_need_key_info_ready",new hh(Z,"fairplay",!0))}this.G={}};
Dn.prototype.Ni=function(){this.G={};fT.prototype.Ni.call(this)};g.P(cr,fT);
cr.prototype.T=function(u){var h;a:{if((h=u.cryptoPeriodIndex)&&this.G.length>0)for(var L=g.C(this.G),Z=L.next();!Z.done;Z=L.next())if(h===Z.value.info.cryptoPeriodIndex){h=!0;break a}h=!1}if(!h){h=(0,g.vC)();a:{L=u.cryptoPeriodIndex;if(!isNaN(L)){Z=g.C(this.X.values());for(var y=Z.next();!y.done;y=Z.next())if(Math.abs(y.value.cryptoPeriodIndex-L)<=1){L=!0;break a}}L=!1}L?(L=u.G,L=Math.max(0,Math.random()*((isNaN(L)?120:L)-30))*1E3):L=0;this.publish("log_qoe",{wvagt:"delay."+L,cpi:u.cryptoPeriodIndex,reqlen:this.G.length,
ignore:this.B});L<=0?STn(this,u):this.B||(this.G.push({time:h+L,info:u}),g.kK(this.N,L))}};
cr.prototype.Ni=function(){this.G=[];fT.prototype.Ni.call(this)};var xO={},YTa=(xO.DRM_TRACK_TYPE_AUDIO="AUDIO",xO.DRM_TRACK_TYPE_SD="SD",xO.DRM_TRACK_TYPE_HD="HD",xO.DRM_TRACK_TYPE_UHD1="UHD1",xO);g.P(qTe,g.m);g.P(NmV,g.yV);g.K=NmV.prototype;g.K.ZK=function(u){var h=this;this.ww()||u.size<=0||(u.forEach(function(L,Z){var y=vW(h.N)?Z:L;Z=new Uint8Array(vW(h.N)?L:Z);vW(h.N)&&Wnj(Z);L=g.Mk(Z,4);Wnj(Z);Z=g.Mk(Z,4);h.G[L]?h.G[L].status=y:h.G[Z]?h.G[Z].status=y:h.G[L]={type:"",status:y}}),wzn(this,","),Iq(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))};
g.K.error=function(u,h,L,Z){this.ww()||(this.publish("licenseerror",u,h,L,Z),u==="drm.provision"&&(u=(Date.now()-this.C)/1E3,this.C=NaN,this.publish("ctmp","provf",{et:u.toFixed(3)})));SX(h)&&this.dispose()};
g.K.shouldRetry=function(u,h){return!u&&this.requestNumber===h.requestNumber};
g.K.Ni=function(){this.G={};g.yV.prototype.Ni.call(this)};
g.K.IV=function(){var u={ctype:this.S.contentType||"",length:this.S.initData.length,requestedKeyIds:this.XB,cryptoPeriodIndex:this.cryptoPeriodIndex};this.X&&(u.keyStatuses=this.G);return u};
g.K.getInfo=function(){var u=this.B.join();if(Ay(this)){var h=new Set,L;for(L in this.G)this.G[L].status!=="usable"&&h.add(this.G[L].type);u+="/UKS."+Array.from(h)}return u+="/"+this.cryptoPeriodIndex};
g.K.VQ=function(){return this.url};g.P(xR,g.m);g.K=xR.prototype;g.K.sC=function(u){if(this.T){var h=u.messageType||"license-request";this.T(new Uint8Array(u.message),h)}};
g.K.ZK=function(){this.V&&this.V(this.G.keyStatuses)};
g.K.onClosed=function(){this.ww()||g.nP("xboxone")&&this.X&&this.X("closed")};
g.K.EG=function(u){this.T&&this.T(u.message,"license-request")};
g.K.PQ=function(u){if(this.X){if(this.N){var h=this.N.error.code;u=this.N.error.systemCode}else h=u.errorCode,u=u.systemCode;this.X("t.prefixedKeyError;c."+h+";sc."+u,h,u)}};
g.K.bD=function(){this.C&&this.C()};
g.K.update=function(u){var h=this;if(this.G)return(Vo.isActive()?Vo.G6("emeupd",function(){return h.G.update(u)}):this.G.update(u)).then(null,Dc(function(L){b3l(h,"t.update",L)}));
this.N?this.N.update(u):this.element.addKey?this.element.addKey(this.S.keySystem,u,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.S.keySystem,u,this.initData,this.sessionId);return UJ()};
g.K.Ni=function(){this.G&&(this.Y?this.G.close().catch(g.G3):this.G.close());this.element=null;g.m.prototype.Ni.call(this)};g.P(Pr,g.m);g.K=Pr.prototype;g.K.lB=function(){var u=this;if(this.G.keySystemAccess)return(Vo.isActive()?Vo.G6("emenew",function(){return u.G.keySystemAccess.createMediaKeys()}):this.G.keySystemAccess.createMediaKeys()).then(function(L){if(!u.ww())if(u.N=L,Vo.isActive())Vo.G6("emeset",function(){return u.element.setMediaKeys(L)});
else{var Z;(Z=u.element)==null||Z.setMediaKeys(L)}});
if(XS(this.G))this.X=new (Sh())(this.G.keySystem);else if(qc(this.G)){this.X=new (Sh())(this.G.keySystem);var h;(h=this.element)==null||h.webkitSetMediaKeys(this.X)}else Vo.isActive()&&this.IH("emev",{v:"01b"}),qr(this.T,this.element,["keymessage","webkitkeymessage"],this.HW),qr(this.T,this.element,["keyerror","webkitkeyerror"],this.iN),qr(this.T,this.element,["keyadded","webkitkeyadded"],this.Lk);return null};
g.K.setServerCertificate=function(){return this.N.setServerCertificate?this.G.flavor==="widevine"&&this.G.yf?this.N.setServerCertificate(this.G.yf):Yi(this.G)&&this.G.Sd?this.N.setServerCertificate(this.G.Sd):null:null};
g.K.createSession=function(u,h){var L=u.initData;if(this.G.keySystemAccess){h&&h("createsession");var Z=this.N.createSession();T9(this.G)?L=EHf(L,this.G.Sd):Yi(this.G)&&(L=lyb(L)||new Uint8Array(0));h&&h("genreq");var y=Vo.isActive()?Vo.G6("emegen",function(){return Z.generateRequest(u.contentType,L)}):Z.generateRequest(u.contentType,L);
var R=new xR(null,null,null,Z,null,this.V);y.then(function(){h&&h("genreqsuccess")},Dc(function(J){b3l(R,"t.generateRequest",J)}));
return R}if(XS(this.G))return gHV(this,L);if(qc(this.G))return kAn(this,L);if((y=this.element)==null?0:y.generateKeyRequest)this.element.generateKeyRequest(this.G.keySystem,L);else{var p;(p=this.element)==null||p.webkitGenerateKeyRequest(this.G.keySystem,L)}return this.B=new xR(this.element,this.G,L,null,null,this.V)};
g.K.HW=function(u){var h=uCe(this,u);h&&h.EG(u)};
g.K.iN=function(u){var h=uCe(this,u);h&&h.PQ(u)};
g.K.Lk=function(u){var h=uCe(this,u);h&&h.bD(u)};
g.K.getMetrics=function(){if(this.N&&this.N.getMetrics)try{var u=this.N.getMetrics()}catch(h){}return u};
g.K.Ni=function(){this.X=this.N=null;var u;(u=this.B)==null||u.dispose();u=g.C(Object.values(this.C));for(var h=u.next();!h.done;h=u.next())h.value.dispose();this.C={};g.m.prototype.Ni.call(this);delete this.element};g.K=CT.prototype;g.K.get=function(u){u=this.findIndex(u);return u!==-1?this.values[u]:null};
g.K.remove=function(u){u=this.findIndex(u);u!==-1&&(this.keys.splice(u,1),this.values.splice(u,1))};
g.K.removeAll=function(){this.keys=[];this.values=[]};
g.K.set=function(u,h){var L=this.findIndex(u);L!==-1?this.values[L]=h:(this.keys.push(u),this.values.push(h))};
g.K.findIndex=function(u){return g.b3(this.keys,function(h){return g.fw(u,h)})};g.P(LLb,g.yV);g.K=LLb.prototype;g.K.KzH=function(u){this.Tz({onecpt:1});u.initData&&Rhl(this,new Uint8Array(u.initData),u.initDataType)};
g.K.HH7=function(u){this.Tz({onndky:1});Rhl(this,u.initData,u.contentType)};
g.K.W8=function(u){this.Tz({onneedkeyinfo:1});this.xI.j("html5_eme_loader_sync")&&(this.V.get(u.initData)||this.V.set(u.initData,u));yhs(this,u)};
g.K.G4=function(u){this.X.push(u);Me(this)};
g.K.createSession=function(u){var h=KLi(this)?F7L(u):g.Mk(u.initData);this.N.get(h);this.gw=!0;u=new NmV(this.videoData,this.xI,u,this.drmSessionId);this.N.set(h,u);u.subscribe("ctmp",this.xm,this);u.subscribe("keystatuseschange",this.ZK,this);u.subscribe("licenseerror",this.RA,this);u.subscribe("newlicense",this.yD,this);u.subscribe("newsession",this.cQ,this);u.subscribe("sessionready",this.WQ,this);u.subscribe("fairplay_next_need_key_info",this.FI,this);this.xI.j("html5_enable_vp9_fairplay")&&u.subscribe("qualitychange",
this.E6,this);this.xI.j("html5_enable_sabr_drm_hd720p")&&u.subscribe("sabrlicenseconstraint",this.k1B,this);rFV(u,this.B)};
g.K.yD=function(u){this.ww()||(this.Tz({onnelcswhb:1}),u&&!this.heartbeatParams&&(this.heartbeatParams=u,this.publish("heartbeatparams",u)))};
g.K.cQ=function(){this.ww()||(this.Tz({newlcssn:1}),this.X.shift(),this.gw=!1,Me(this))};
g.K.WQ=function(){if(XS(this.G)&&(this.Tz({onsnrdy:1}),this.vX--,this.vX===0)){var u=this.AB,h,L;(h=u.element)==null||(L=h.msSetMediaKeys)==null||L.call(h,u.X)}};
g.K.ZK=function(u){if(!this.ww()){!this.T7&&this.videoData.j("html5_log_drm_metrics_on_key_statuses")&&(Jhn(this),this.T7=!0);this.Tz({onksch:1});var h=this.E6;if(!Ay(u)&&g.$w&&u.N.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var L="large";else{L=[];var Z=!0;if(Ay(u))for(var y=g.C(Object.keys(u.G)),R=y.next();!R.done;R=y.next())R=R.value,u.G[R].status==="usable"&&L.push(u.G[R].type),u.G[R].status!=="unknown"&&(Z=!1);if(!Ay(u)||Z)L=u.B;L=sbn(L)}h.call(this,L);this.publish("keystatuseschange",
u)}};
g.K.xm=function(u,h){this.ww()||this.publish("ctmp",u,h)};
g.K.FI=function(u,h){this.ww()||this.publish("fairplay_next_need_key_info",u,h)};
g.K.RA=function(u,h,L,Z){this.ww()||(this.videoData.j("html5_log_drm_metrics_on_error")&&Jhn(this),this.publish("licenseerror",u,h,L,Z))};
g.K.hx=function(){return this.S};
g.K.E6=function(u){var h=g.F9("auto",u,!1,"l");if(this.videoData.Xb){if(this.S.ys(h))return}else if(mFn(this.S,u))return;this.S=h;this.publish("qualitychange");this.Tz({updtlq:u})};
g.K.k1B=function(u){this.videoData.sabrLicenseConstraint=u};
g.K.Ni=function(){this.G.keySystemAccess&&this.element&&(this.XB?this.element.setMediaKeys(null).catch(g.G3):this.element.setMediaKeys(null));this.element=null;this.X=[];for(var u=g.C(this.N.values()),h=u.next();!h.done;h=u.next())h=h.value,h.unsubscribe("ctmp",this.xm,this),h.unsubscribe("keystatuseschange",this.ZK,this),h.unsubscribe("licenseerror",this.RA,this),h.unsubscribe("newlicense",this.yD,this),h.unsubscribe("newsession",this.cQ,this),h.unsubscribe("sessionready",this.WQ,this),h.unsubscribe("fairplay_next_need_key_info",
this.FI,this),this.xI.j("html5_enable_vp9_fairplay")&&h.unsubscribe("qualitychange",this.E6,this),h.dispose();this.N.clear();this.C.removeAll();this.V.removeAll();this.heartbeatParams=null;g.yV.prototype.Ni.call(this)};
g.K.IV=function(){for(var u={systemInfo:this.G.IV(),sessions:[]},h=g.C(this.N.values()),L=h.next();!L.done;L=h.next())u.sessions.push(L.value.IV());return u};
g.K.getInfo=function(){return this.N.size<=0?"no session":""+this.N.values().next().value.getInfo()+(this.T?"/KR":"")};
g.K.Tz=function(u,h){h=h===void 0?!1:h;this.ww()||(QE(u),(this.xI.UU()||h)&&this.publish("ctmp","drmlog",u))};g.P(I4e,g.m);g.K=I4e.prototype;g.K.W1=function(){return!!this.Tr};
g.K.XY=function(){return this.N};
g.K.handleError=function(u){var h=this;iRi(this,u);if((u.errorCode!=="html5.invalidstate"&&u.errorCode!=="fmt.unplayable"&&u.errorCode!=="fmt.unparseable"||!Mgl(this,u.errorCode,u.details))&&!Xta(this,u)){if(this.z7.AB!=="yt"&&l4n(this,u)&&this.videoData.Cv&&(0,g.vC)()/1E3>this.videoData.Cv&&this.z7.AB==="hm"){var L=Object.assign({e:u.errorCode},u.details);L.stalesigexp="1";L.expire=this.videoData.Cv;L.init=this.videoData.W3/1E3;L.now=(0,g.vC)()/1E3;L.systelapsed=((0,g.vC)()-this.videoData.W3)/1E3;
u=new lZ(u.errorCode,L,2);this.G7.LZ(u.errorCode,2,"SIGNATURE_EXPIRED",QE(u.details))}if(SX(u.severity)){var Z;L=(Z=this.G7.nI)==null?void 0:Z.G.G;if(this.z7.j("html5_use_network_error_code_enums"))if(QXe(u)&&L&&L.isLocked())var y="FORMAT_UNAVAILABLE";else if(this.z7.C||u.errorCode!=="auth"||u.details.rc!==429)u.errorCode==="ump.spsrejectfailure"&&(y="HTML5_SPS_UMP_STATUS_REJECTED");else{y="TOO_MANY_REQUESTS";var R="6"}else QXe(u)&&L&&L.isLocked()?y="FORMAT_UNAVAILABLE":this.z7.C||u.errorCode!=="auth"||
u.details.rc!=="429"?u.errorCode==="ump.spsrejectfailure"&&(y="HTML5_SPS_UMP_STATUS_REJECTED"):(y="TOO_MANY_REQUESTS",R="6");this.G7.LZ(u.errorCode,u.severity,y,QE(u.details),R)}else this.G7.publish("nonfatalerror",u),Z=/^pp/.test(this.videoData.clientPlaybackNonce),this.Hj(u.errorCode,u.details),Z&&u.errorCode==="manifest.net.connect"&&(u="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.vC)(),P4(u,"manifest",function(p){h.C=!0;h.IH("pathprobe",p)},function(p){h.Hj(p.errorCode,
p.details)}))}};
g.K.IH=function(u,h){this.G7.WJ().IH(u,h)};
g.K.Hj=function(u,h){h=QE(h);this.G7.WJ().Hj(u,h)};TLj.prototype.Hu=function(u,h){return(h===void 0?0:h)?{e2:u?l7(this,u):Hu,gP:u?zhs(this,u):Hu,mOI:u?rhl(this,u):Hu,GNB:u?wtY(this,u.videoData):Hu,kK:u?ehL(this,u.videoData,u):Hu,Add:u?Gbs(this,u):Hu,dOA:NLV(this)}:{e2:u?l7(this,u):Hu}};
TLj.prototype.j=function(u){return this.xI.j(u)};g.P(SL,g.m);SL.prototype.onError=function(u){if(u!=="player.fatalexception"||this.provider.j("html5_exception_to_health"))u==="sabr.fallback"&&(this.encounteredSabrFallback=!0),u.match(ajY)?this.networkErrorCount++:this.nonNetworkErrorCount++};
SL.prototype.send=function(){if(!(this.X||this.G<0)){tgf(this);var u=g.Xa(this.provider)-this.G,h="PLAYER_PLAYBACK_STATE_UNKNOWN",L=this.playerState.Ad;this.playerState.isError()?h=L&&L.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.F(this.playerState,2)?h="PLAYER_PLAYBACK_STATE_ENDED":g.F(this.playerState,64)?h="PLAYER_PLAYBACK_STATE_UNSTARTED":g.F(this.playerState,16)||g.F(this.playerState,32)?h="PLAYER_PLAYBACK_STATE_SEEKING":g.F(this.playerState,1)&&g.F(this.playerState,
4)?h="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.F(this.playerState,1)?h="PLAYER_PLAYBACK_STATE_BUFFERING":g.F(this.playerState,4)?h="PLAYER_PLAYBACK_STATE_PAUSED":g.F(this.playerState,8)&&(h="PLAYER_PLAYBACK_STATE_PLAYING");L=mMu[cz(this.provider.videoData)];a:switch(this.provider.xI.playerCanaryState){case "canary":var Z="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":Z="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:Z="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var y=WLn(this.provider),
R=this.N<0?u:this.N-this.G;u=this.provider.xI.Zg+36E5<(0,g.vC)();h={started:this.N>=0,stateAtSend:h,joinLatencySecs:R,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:Z,playerCanaryStage:y,isAd:this.provider.videoData.isAd(),liveMode:L,hasDrm:!!g.f3(this.provider.videoData),isGapless:this.provider.videoData.S,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,
encounteredSabrFallback:this.encounteredSabrFallback,isSabr:EX(this.provider.videoData)};u||g.pM("html5PlayerHealthEvent",h);this.X=!0;this.dispose()}};
SL.prototype.Ni=function(){this.X||this.send();window.removeEventListener("error",this.sD);window.removeEventListener("unhandledrejection",this.sD);g.m.prototype.Ni.call(this)};
var ajY=/\bnet\b/;g.P(bRj,g.m);bRj.prototype.Ni=function(){kbV(this);g.m.prototype.Ni.call(this)};var gUn=/[?&]cpn=/;g.P(vr,g.m);vr.prototype.flush=function(){var u={};this.N&&(u.pe=this.N);this.G.length>0&&(u.pt=this.G.join("."));this.G=[];return u};
vr.prototype.stop=function(){var u=this,h,L,Z;return g.G(function(y){if(y.G==1)return g.Qn(y,2),g.N(y,(h=u.B)==null?void 0:h.stop(),4);if(y.G!=2)return(L=y.N)&&u.logTrace(L),g.Sa(y,0);Z=g.Xf(y);u.N=RFl(Z.message);g.i1(y)})};
vr.prototype.logTrace=function(u){this.encoder.reset();this.encoder.add(1);this.encoder.add(u.resources.length);for(var h=g.C(u.resources),L=h.next();!L.done;L=h.next()){L=L.value.replace("https://www.youtube.com/s/","");this.encoder.add(L.length);for(var Z=0;Z<L.length;Z++)this.encoder.add(L.charCodeAt(Z))}this.encoder.add(u.frames.length);h=g.C(u.frames);for(L=h.next();!L.done;L=h.next()){L=L.value;this.encoder.add(L.name.length);for(Z=0;Z<L.name.length;Z++)this.encoder.add(L.name.charCodeAt(Z));
jJ(this.encoder,L.resourceId);jJ(this.encoder,L.line);jJ(this.encoder,L.column)}this.encoder.add(u.samples.length);h=g.C(u.samples);for(L=h.next();!L.done;L=h.next())L=L.value,this.encoder.add(Math.trunc(L.timestamp)),jJ(this.encoder,L.stackId);this.encoder.add(u.stacks.length);u=g.C(u.stacks);for(h=u.next();!h.done;h=u.next())h=h.value,this.encoder.add(h.frameId),jJ(this.encoder,h.parentId);u=this.encoder.n0();this.X+=u.length;this.X<1E7&&this.G.push(u)};
vr.prototype.Ni=function(){this.stop();g.m.prototype.Ni.call(this)};var K2a=[2,5,30];g.GV=fv(function(){var u="";try{var h=g.kJ("CANVAS").getContext("webgl");h&&(h.getExtension("WEBGL_debug_renderer_info"),u=h.getParameter(37446),u=u.replace(/[ :]/g,"_"))}catch(L){}return u});g.P(g.oq,g.m);g.K=g.oq.prototype;g.K.uBB=function(){var u=g.Xa(this.provider);D4s(this,u)};
g.K.V8=function(){return this.vK};
g.K.e5=function(){return{N4:this.N4,dE:this.dE}};
g.K.iQ=function(u,h){this.N4=u;this.dE=h};
g.K.cV=function(u){if(!this.La){this.La=!0;var h="";switch(u){case 1:h="proximaui";break;case 2:h=BEY(this.provider.videoData)?"proximawpcc":this.provider.videoData.j("html5_enable_proxima")||this.provider.videoData.j("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:h="proximaauto"}h!==""&&Uy(this,h)}};
g.K.Es=function(u){this.G.lwc=[[u.vr?u.vr.toFixed():"",u.w2?u.w2.toFixed():"",u.vX?(u.vX*1E3).toFixed():"",u.mz?(u.mz*1E3).toFixed():"",u.vj?(u.vj*1E3).toFixed():""].join(":")]};
g.K.reportStats=function(u){u=u===void 0?NaN:u;if(!this.ww()&&(u=u>=0?u:g.Xa(this.provider),["PL","B","S"].indexOf(this.ex)>-1&&(!g.Tc(this.G)||u>=this.T+30)&&(g.YR(this,u,"vps",[this.ex]),this.T=u),!g.Tc(this.G))){this.sequenceNumber===7E3&&g.G3(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){Ne(this,u);var h=this.provider.G7.qW();h=g.C(h);for(var L=h.next();!L.done;L=h.next())L=L.value,this.IH(L.key,L.value);h=u;L=this.provider.G7.Q8();var Z=L.droppedVideoFrames||0,y=L.totalVideoFrames||
0,R=Z-this.N4,p=y&&!this.dE;Z>L.totalVideoFrames||R>5E3?MEj(this,"html5.badframedropcount","df."+Z+";tf."+L.totalVideoFrames):(R>0||p)&&g.YR(this,h,"df",[R]);this.N4=Z;this.dE=y;this.Y>0&&(g.YR(this,u,"glf",[this.Y]),this.Y=0);jQ.isActive()&&(u=jQ.yV(),Object.keys(u).length>0&&this.IH("profile",u));this.wm&&Uy(this,"lwnmow");this.provider.xI.UU()&&this.provider.j("html5_record_now")&&this.IH("now",{wt:(0,g.vC)()});u={};this.provider.videoData.N&&(u.fmt=this.provider.videoData.N.itag,(h=this.provider.videoData.B)&&
h.itag!==u.fmt&&(u.afmt=h.itag));u.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(u.adcpn=this.adCpn);this.AB&&(u.addocid=this.AB);this.contentCpn&&(u.ccpn=this.contentCpn);this.XB&&(u.cdocid=this.XB);this.provider.videoData.cotn&&(u.cotn=this.provider.videoData.cotn);u.el=UT(this.provider.videoData);u.content_v=rm(this.provider.videoData);u.ns=this.provider.xI.AB;u.fexp=QK1(this.provider.xI.experiments).toString();u.cl=(726265192).toString();(h=this.provider.videoData.adFormat||this.adFormat)&&
(u.adformat=h);(h=cz(this.provider.videoData))&&(u.live=h);this.provider.videoData.v7()&&(u.drm=1,this.provider.videoData.T&&(u.drm_system=UM8[this.provider.videoData.T.flavor]||0),this.provider.videoData.MG&&(u.drm_product=this.provider.videoData.MG));pP()&&this.provider.videoData.C&&(u.ctt=this.provider.videoData.C,u.cttype=this.provider.videoData.Mv,this.provider.videoData.mdxEnvironment&&(u.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(u.dai=
this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.Oy&&(u.dai_fallback="1")):this.provider.videoData.YF?u.dai="cs":this.provider.videoData.bk&&(u.dai="disabled");u.seq=this.sequenceNumber++;if(this.provider.videoData.dQ){if(h=this.provider.videoData.dQ,u&&h)for(h.ns==="3pp"&&(u.ns="3pp"),this.XN.has(h.ns)&&Uy(this,"hbps"),h.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=h.shbpslc),L=g.C(Object.keys(h)),Z=L.next();!Z.done;Z=L.next())Z=Z.value,this.Z1.has(Z)||
(u[Z]=h[Z])}else u.event="streamingstats",u.docid=this.provider.videoData.videoId,u.ei=this.provider.videoData.eventId;this.isEmbargoed&&(u.embargoed="1");Object.assign(u,this.provider.xI.G);if(h=u.seq)h={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+h,serializedWatchEndpointLoggingContext:this.provider.videoData.r8},this.serializedHouseBrandPlayerServiceLoggingContext&&(h.serializedHouseBrandPlayerServiceLoggingContext=Qu(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),
this.provider.videoData.playerResponseCpn&&(h.playerResponseCpn=this.provider.videoData.playerResponseCpn),TV.length&&(h.decoderInfo=TV),this.provider.G7.m7()&&(h.transitionStitchType=4,this.gw&&(h.timestampOffsetMsecs=this.gw)),this.remoteControlMode&&(h.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(h.remoteConnectedDevices=this.remoteConnectedDevices),h=g.L7(h,JcY),h=g.Mk(h,4),this.G.qclc=[h];u=g.sr("//"+this.provider.xI.De+"/api/stats/qoe",u);L=h="";Z=g.C(Object.keys(this.G));
for(y=Z.next();!y.done;y=Z.next())y=y.value,this.G[y]===null?g.G3(new g.aO("Stats report key has invalid value",y)):(y="&"+y+"="+this.G[y].join(","),y.length>100?L+=y:h+=y);Aab(this,u+h,L.replace(/ /g,"%20"))}this.G={}}};
g.K.jp=function(u){this.wm=u};
g.K.Go=function(){if(this.provider.videoData.T){var u=this.provider.videoData.T;Uy(this,"eme-"+(u.keySystemAccess?"final":XS(u)?"ms":T9(u)?"ytfp":qc(u)?"safarifp":"nonfinal"))}};
g.K.Z6=function(u){var h=g.Xa(this.provider);if(!this.provider.xI.experiments.tB("html5_refactor_sabr_video_format_selection_logging")||u.G.id!==this.jd){var L=[u.G.id,u.N,this.jd,u.reason];u.token&&L.push(u.token);g.YR(this,h,"vfs",L);this.jd=u.G.id;L=this.provider.G7.getPlayerSize();if(L.width>0&&L.height>0){L=[Math.round(L.width),Math.round(L.height)];var Z=g.V6();Z>1&&L.push(Z);g.YR(this,h,"view",L)}this.fI||(this.provider.xI.UU()&&Uy(this,"rqs2"),this.provider.videoData.G&&Lk(this.provider.videoData.G)&&
(this.G.preload=["1"]));this.X=this.fI=!0}u.reason==="m"&&++this.Uo===100&&i$e(this,2);g.YR(this,h,"vps",[this.ex]);this.reportStats(h)};
g.K.UD=function(u){var h=g.Xa(this.provider);if(this.provider.xI.experiments.tB("html5_refactor_sabr_audio_format_selection_logging")){h=u.G;var L=[h.audio&&h.video?h.WZ?h.WZ:"":h.id];h.tM&&h.tM.id&&L.push(h.tM.id);h=L.join(";");h!==this.V&&(L=[h,this.V,u.reason],u.token&&L.push(u.token),g.YR(this,g.Xa(this.provider),"afs",L),this.V=h)}else u.G.id!==this.V&&(L=[u.G.id,this.V,u.reason],u.token&&L.push(u.token),g.YR(this,h,"afs",L),this.V=u.G.id)};
g.K.MU=LV(55);g.K.Gg=function(u){this.isEmbargoed=u};
g.K.R4=LV(33);g.K.t3=LV(38);g.K.onPlaybackRateChange=function(u){var h=g.Xa(this.provider);u&&u!==this.vj&&(g.YR(this,h,"rate",[u]),this.vj=u);this.reportStats(h)};
g.K.tS=LV(28);g.K.getPlayerState=function(u){if(g.F(u,128))return"ER";if(g.F(u,2048))return"B";if(g.F(u,512))return"SU";if(g.F(u,16)||g.F(u,32))return"S";if(u.isOrWillBePlaying()&&g.F(u,64))return"B";var h=$My[yj(u)];g.SM(this.provider.xI)&&h==="B"&&this.provider.G7.getVisibilityState()===3&&(h="SU");h==="B"&&g.F(u,4)&&(h="PB");return h};
g.K.Ni=function(){g.m.prototype.Ni.call(this);g.PS(this.C);g.PS(this.iP)};
g.K.f_=function(u){this.isOffline=u;g.YR(this,g.Xa(this.provider),"is_offline",[this.isOffline?"1":"0"])};
g.K.IH=function(u,h,L){var Z=this.G.ctmp||[],y=this.Oo.indexOf(u)!==-1;y||this.Oo.push(u);if(!L||!y){var R=typeof h!=="string"?QE(h):h;R=QUi(R);if(!L&&!/^t[.]/.test(R)){var p=g.Xa(this.provider)*1E3;R="t."+p.toFixed()+";"+R}Z.push(u+":"+R);this.logger.debug(function(){return"ctmp "+u+" "+R});
this.G.ctmp=Z;x4n(this);return p}};
g.K.yy=function(u,h,L){this.B={OBd:Number(this.IH("glrem",{nst:u.toFixed(),rem:h.toFixed(),ca:+L})),NS:u,GD7:h,isAd:L}};
g.K.WF=function(u,h,L){g.YR(this,g.Xa(this.provider),"ad_playback",[u,h,L])};
g.K.Ts=function(u,h){var L=g.Xa(this.provider)*1E3,Z=this.G.daism||[];Z.push("t."+L.toFixed(0)+";smw."+(u*1E3).toFixed(0)+";smo."+(h*1E3).toFixed(0));this.G.daism=Z};
g.K.resume=function(){var u=this;this.provider.xI.UU()&&this.IH("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.C)?P$R(this):this.C=g.A5(function(){u.reportStats()},1E4)};
var P0={},$My=(P0[5]="N",P0[-1]="N",P0[3]="B",P0[0]="EN",P0[2]="PA",P0[1]="PL",P0[-1E3]="ER",P0[1E3]="N",P0),TV=[];XOY.prototype.uq=function(){return this.G};
XOY.prototype.update=function(){if(this.V){var u=this.provider.G7.Q4(this.provider.videoData.clientPlaybackNonce)||0,h=g.Xa(this.provider);u>=this.provider.G7.getDuration()-.1&&(this.previouslyEnded=!0);if(u!==this.G||Ths(this,u,h)){var L;if(!(L=u<this.G||u-this.G>h-this.Uw+2||Ths(this,u,h))){L=this.provider.G7.getVolume();var Z=L!==this.Y,y=this.provider.G7.isMuted()?1:0;y!==this.S?(this.S=y,L=!0):(!Z||this.B>=0||(this.Y=L,this.B=h),L=h-this.B,this.B>=0&&L>2?(this.B=-1,L=!0):L=!1)}L&&(Br(this),this.X=
u);this.Uw=h;this.G=u}}};YwL.prototype.send=function(u){var h=this;if(!this.ZI){var L=Nhw(this),Z=g.sr(this.uri,L);this.xI.j("vss_through_gel_double")&&U41(Z);this.XB&&!this.xI.j("html5_simplify_pings")?zFs(this,Z):oAV(this,u).then(function(y){h.XB&&(y=y||{},y.method="POST",y.postParams={atr:h.attestationResponse});L2l(Z,y,{token:h.AB,Mu:h.e7,mdxEnvironment:h.mdxEnvironment},h.xI,u,h.gw,h.isFinal&&h.Zg||h.DI||h.X&&h.J4)});
this.ZI=!0}};
YwL.prototype.N=function(u){u===void 0&&(u=NaN);return Number(u.toFixed(3)).toString()};
var CD={},raa=(CD.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,CD.LIVING_ROOM_APP_MODE_MAIN=1,CD.LIVING_ROOM_APP_MODE_KIDS=2,CD.LIVING_ROOM_APP_MODE_MUSIC=3,CD.LIVING_ROOM_APP_MODE_UNPLUGGED=4,CD.LIVING_ROOM_APP_MODE_GAMING=5,CD),MJ={},H$f=(MJ.EMBEDDED_PLAYER_MODE_UNKNOWN=0,MJ.EMBEDDED_PLAYER_MODE_DEFAULT=1,MJ.EMBEDDED_PLAYER_MODE_PFP=2,MJ.EMBEDDED_PLAYER_MODE_PFL=3,MJ);g.P(m5,g.m);g.K=m5.prototype;g.K.q3=function(){this.G.update();aHa(this)&&(d4f(this),VEb(this),this.Pp())};
g.K.Ni=function(){g.m.prototype.Ni.call(this);nT(this);vAn(this.G)};
g.K.IV=function(){return Nhw(d8(this,"playback"))};
g.K.Pp=function(){this.provider.videoData.V.eventLabel=UT(this.provider.videoData);this.provider.videoData.V.playerStyle=this.provider.xI.playerStyle;this.provider.videoData.iX&&(this.provider.videoData.V.feature="pyv");this.provider.videoData.V.vid=this.provider.videoData.videoId;var u=this.provider.videoData.V;var h=this.provider.videoData;h=h.isAd()||!!h.iX;u.isAd=h};
g.K.mp=function(u){var h=d8(this,"engage");h.RH=u;return GXa(h,EAR(this.provider))};b$R.prototype.isEmpty=function(){return this.endTime===this.startTime};w8.prototype.j=function(u){return this.xI.j(u)};
w8.prototype.getCurrentTime=function(u){if(this.j("html5_ssap_current_time_for_logging_refactor")){var h=this.G7.m7();if(h&&(u=u||h.jh()))return p1(h,u)}else if(g.dC(this.videoData)){var L=this.G7.m7();if(L)return u=this.G7.getCurrentTime(),L=(((h=v4(L,u*1E3))==null?void 0:h.YV)||0)/1E3,u-L}return this.G7.getCurrentTime()};
w8.prototype.V$=function(u){if(this.j("html5_ssap_current_time_for_logging_refactor")){var h=this.G7.m7();if(h&&(u=u||h.jh()))return p1(h,u)}else if(g.dC(this.videoData)){var L=this.G7.m7();if(L)return u=this.G7.V$(),L=(((h=v4(L,u*1E3))==null?void 0:h.YV)||0)/1E3,u-L}return this.G7.V$()};
var kXi={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.P(g.eL,g.m);g.K=g.eL.prototype;g.K.q3=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Gh){var u;(u=this.X.get(this.Gh))==null||u.q3()}else this.G&&this.G.q3()};
g.K.Gg=function(u){this.qoe&&this.qoe.Gg(u)};
g.K.R4=LV(32);g.K.t3=LV(37);g.K.Ts=function(u,h){this.qoe&&this.qoe.Ts(u,h)};
g.K.Hj=function(u,h){this.qoe&&MEj(this.qoe,u,h);if(this.N)this.N.onError(u)};
g.K.Z6=function(u){this.qoe&&this.qoe.Z6(u)};
g.K.UD=function(u){this.qoe&&this.qoe.UD(u)};
g.K.onPlaybackRateChange=function(u){if(this.qoe)this.qoe.onPlaybackRateChange(u);this.G&&Br(this.G.G)};
g.K.MU=LV(54);g.K.IH=function(u,h,L){this.qoe&&this.qoe.IH(u,h,L)};
g.K.yy=function(u,h,L){this.qoe&&this.qoe.yy(u,h,L)};
g.K.cV=function(u){var h;(h=this.qoe)==null||h.cV(u)};
g.K.Es=function(u){var h;(h=this.qoe)==null||h.Es(u)};
g.K.jp=function(u){this.qoe&&this.qoe.jp(u)};
g.K.WF=function(u,h,L){this.qoe&&this.qoe.WF(u,h,L)};
g.K.tS=LV(27);g.K.V8=function(){if(this.qoe)return this.qoe.V8()};
g.K.IV=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Gh){var u,h;return(h=(u=this.X.get(this.Gh))==null?void 0:u.IV())!=null?h:{}}return this.G?this.G.IV():{}};
g.K.e5=function(){var u;return(u=this.qoe)==null?void 0:u.e5()};
g.K.iQ=function(u,h){var L;(L=this.qoe)==null||L.iQ(u,h)};
g.K.mp=function(u){return this.G?this.G.mp(u):function(){}};
g.K.Pp=function(){this.G&&this.G.Pp()};
g.K.getVideoData=function(){return this.provider.videoData};
g.K.resume=function(){this.qoe&&this.qoe.resume()};g.P($R,g.m);
$R.prototype.Cp=function(u,h,L){if(this.G.has(u)){var Z=this.G.get(u);if(h.videoId&&!gAL(Z))this.N.IH("ssap",{rlc:u}),OTY(this,u);else return}if(!this.G.has(u)){Z=new w8(h,this.xI,this.G7);var y=Math.round(g.Xa(this.N.provider)*1E3);Z=new g.eL(Z,y);gAL(Z)||this.N.IH("nqv",{vv:h.videoId});y=this.N.getVideoData();this.G.set(u,Z);if(Z.qoe){var R=Z.qoe,p=y.videoId||"";R.contentCpn=y.clientPlaybackNonce;R.XB=p}uaa(Z);L===2&&(this.xI.j("html5_log_ad_playback_docid")?(L=this.N,L.qoe&&(L=L.qoe,Z=h.eq||"",
y=h.breakType||0,h=h.videoId||"",R=this.xI.AB||"yt",g.YR(L,g.Xa(L.provider),"ad_playback",[u,Z,y,h,R]))):this.N.WF(u,h.eq||"",h.breakType||0))}};
$R.prototype.Mq=function(u,h,L,Z,y,R,p,J){if(u!==h){var O=this.WJ(u),f=this.WJ(h),D,c=u===((D=O.getVideoData())==null?void 0:D.clientPlaybackNonce),I;D=h===((I=f.getVideoData())==null?void 0:I.clientPlaybackNonce);var A;I=c?((A=O.getVideoData())==null?void 0:A.videoId)||"":"nvd";var x;A=D?((x=f.getVideoData())==null?void 0:x.videoId)||"":"nvd";c&&(O=O.qoe)!=null&&(Hr(O,4,R?4:y?2:0,h,A,L),O.reportStats());D&&(aq(f),(h=f.qoe)!=null&&(Hr(h,4,R?5:y?3:1,u,I,Z),h.reportStats()),L5e(f,new g.O_(p,f.ex)),
jqi(f));J&&OTY(this,u)}};
$R.prototype.WJ=function(u){u=u||this.Gh;return this.G.get(u)||this.N};g.P(g.ty,g.m);g.K=g.ty.prototype;
g.K.Rl=function(u,h){this.sync();h&&this.G.array.length>=2E3&&this.LA("captions",1E4);h=this.G;if(u.length>1&&u.length>h.array.length)h.array=h.array.concat(u),h.array.sort(h.G);else for(var L=g.C(u),Z=L.next();!Z.done;Z=L.next())Z=Z.value,!h.array.length||h.G(Z,h.array[h.array.length-1])>0?h.array.push(Z):g.DM(h.array,Z,h.G);u=g.C(u);for(h=u.next();!h.done;h=u.next())h=h.value,h.namespace==="ad"&&this.B("ssap",{acrsid:h.getId(),acrsst:h.start,acrset:h.end,acrscpt:h.playerType});this.X=NaN;this.sync()};
g.K.G2=function(u){u.length>1E4&&g.G3(new g.aO("Over 10k cueRanges removal occurs with a sample: ",u[0]));if(!this.ww()){for(var h=g.C(u),L=h.next();!L.done;L=h.next())(L=L.value)&&L.namespace==="ad"&&this.B("ssap",{rcrid:L.getId(),rcst:L.start,rcet:L.end,rcpt:L.playerType});var Z=new Set(u);this.N=this.N.filter(function(y){return!Z.has(y)});
P7j(this.G,Z);this.sync()}};
g.K.LA=function(u,h){var L=(isNaN(this.X)?g.F(this.C(),2)?0x8000000000000:this.Y()*1E3:this.X)-h;h=this.Ue().filter(function(Z){return Z.namespace===u&&Z.end<L});
this.G2(h);return h};
g.K.Ue=function(){return this.ww()?[]:this.G.array};
g.K.reset=function(){this.started=!1;this.T.stop();this.G.array=[];this.N=[];this.sync()};
g.K.qm=function(u){var h=this.Ue().filter(function(L){return L.namespace===u});
this.G2(h);return h};
g.K.Rr=LV(42);
g.K.dW=function(u,h){var L=[],Z=InR(this.G,0x7ffffffffffff),y=[];this.B("ssap",{mecrs:Z.length,cpn:h});Z=g.C(Z);for(var R=Z.next();!R.done;R=Z.next())R=R.value,R.active&&(this.B("ssap",{acre:R.id,st:R.start,et:R.end,cpn:h,cpt:R.playerType,pt:u}),h&&h===R.X?(y.push(R),this.B("ssap",{acrec:R.id,st:R.start,et:R.end,pt:u})):R.playerType===u&&(y.push(R),this.B("ssap",{acret:R.id,st:R.start,et:R.end})));L=L.concat(this.H1(y));iT1(this,L);L=[];h=[];Z=g.C(this.N);for(R=Z.next();!R.done;R=Z.next())R=R.value,
R.active&&R.playerType===u&&R.start===0x7ffffffffffff&&h.push(R);L=L.concat(this.qH(h));iT1(this,L);return y.length};
g.K.H1=function(u){var h=[];if(!u.length)return h;for(var L=0;L<u.length;L++){var Z=u[L];Z.active&&this.N.indexOf(Z)===-1&&(this.N.push(Z),h.push([1,Z]))}return h};
g.K.qH=function(u){var h=[];if(!u.length)return h;u.sort(g.jR);u=g.C(u);for(var L=u.next();!L.done;L=u.next())L=L.value,this.N.splice(this.N.indexOf(L),1),h.push([2,L]);return h};
g.K.sync=function(){this.V=!0;if(!this.S){for(var u=3;this.V&&u;)this.V=!1,this.S=!0,this.QJ(),this.S=!1,u--;this.C().isPlaying()&&(u=xen(this.G,this.X),!isNaN(u)&&u<0x7ffffffffffff&&(u=(u-this.X)/this.XB(),this.T.start(u)))}};
g.K.QJ=function(){if(this.started&&!this.ww()){this.T.stop();var u=this.C();g.F(u,32)&&this.RH.start();for(var h=g.F(this.C(),2)?0x8000000000000:this.Y()*1E3,L=g.F(u,2),Z=[],y=[],R=g.C(this.N),p=R.next();!p.done;p=R.next())p=p.value,p.active&&(L?p.end<0x8000000000000:!p.contains(h))&&y.push(p);Z=Z.concat(this.qH(y));R=y=null;L?(u=InR(this.G,0x7ffffffffffff),y=u.filter(function(J){return J.end<0x8000000000000}),R=Ayi(this.G)):u=this.X<=h&&Z1(u)?cyi(this.G,this.X,h):InR(this.G,h);
Z=Z.concat(this.H1(u));y&&(Z=Z.concat(this.qH(y)));R&&(Z=Z.concat(this.H1(R)));this.X=h;iT1(this,Z)}};
g.K.Ni=function(){this.N=[];this.G.array=[];g.m.prototype.Ni.call(this)};
g.nY.qK(g.ty,{Rl:"crmacr",H1:"crmncr",qH:"crmxcr",QJ:"crmis",G2:"crmrcr"});g.K=g.Wr.prototype;g.K.addCueRange=function(u){this.G7.addCueRange(u)};
g.K.Tp=function(u,h){this.G7.Tp(u,h)};
g.K.NH=function(){this.G7.NH()};
g.K.kL=function(){return this.G7.kL()};
g.K.fl=function(){return this.G7.fl()};
g.K.Dy=function(u,h){this.G7.Dy(u,h)};
g.K.LA=function(u,h){return this.G7.LA(u,h)};
g.K.gI=function(u){this.G7.gI(u)};
g.K.SM=function(){return this.G7.SM()};
g.K.getAudioTrack=function(){return this.G7.getAudioTrack()};
g.K.getAvailableAudioTracks=function(){return this.G7.getAvailableAudioTracks()};
g.K.dn=function(){return this.G7.dn()};
g.K.ZR=function(){return this.G7.ZR()};
g.K.Ue=function(){return this.G7.Ue()};
g.K.cU=function(){return this.G7.cU()};
g.K.V$=function(){return this.G7.V$()};
g.K.getCurrentTime=function(){return this.G7.getCurrentTime()};
g.K.PU=function(){return this.G7.PU()};
g.K.fv=function(){return this.G7.fv()};
g.K.IV=function(u){return this.G7.IV(u)};
g.K.getDuration=function(u){return this.G7.getDuration(u)};
g.K.Vf=function(){return this.G7.Vf()};
g.K.Nr=function(){return this.G7.Nr()};
g.K.nR=function(){return this.G7.nR()};
g.K.Ze=function(){return this.G7.Ze()};
g.K.t1=function(){return this.G7.t1()};
g.K.Qt=LV(16);g.K.xz=function(){return this.G7.xz()};
g.K.lm=function(){return this.G7.lm()};
g.K.Yw=function(u){return this.G7.Yw(u)};
g.K.yQ=function(){return this.G7.yQ()};
g.K.EH=function(){return this.G7.EH()};
g.K.yF=function(){return this.G7.yF()};
g.K.zZ=function(){return this.G7.zZ()};
g.K.uS=function(u,h,L){return this.G7.uS(u,h,L)};
g.K.Qb=LV(21);g.K.getPlaybackQuality=function(){return this.G7.getPlaybackQuality()};
g.K.getPlaybackRate=function(){return this.G7.getPlaybackRate()};
g.K.getPlayerState=function(){return this.G7.getPlayerState()};
g.K.getPlayerType=function(){return this.G7.getPlayerType()};
g.K.getPlaylistSequenceForTime=function(u){return this.G7.getPlaylistSequenceForTime(u)};
g.K.mp=function(u){return this.G7.mp(u)};
g.K.KE=function(){return this.G7.KE()};
g.K.getPreferredQuality=function(){return this.G7.getPreferredQuality()};
g.K.e5=function(){return this.G7.e5()};
g.K.getProximaLatencyPreference=function(){return this.G7.getProximaLatencyPreference()};
g.K.wr=function(){return this.G7.wr()};
g.K.getStreamTimeOffset=function(){return this.G7.getStreamTimeOffset()};
g.K.VR=function(){return this.G7.VR()};
g.K.df=function(){return this.G7.df()};
g.K.Zc=function(){return this.G7.Zc()};
g.K.getUserAudio51Preference=function(){return this.G7.getUserAudio51Preference()};
g.K.getUserPlaybackQualityPreference=function(){return this.G7.getUserPlaybackQualityPreference()};
g.K.getVideoData=function(){return this.G7.getVideoData()};
g.K.Iq=function(){return this.G7.Iq()};
g.K.UX=function(){return this.G7.UX()};
g.K.AR=function(u){this.G7.AR(u)};
g.K.handleError=function(u){this.G7.handleError(u)};
g.K.jG=function(u){this.G7.jG(u)};
g.K.U$=function(u){this.G7.U$(u)};
g.K.Rr=LV(41);g.K.Hm=function(){return this.G7.Hm()};
g.K.hasSupportedAudio51Tracks=function(){return this.G7.hasSupportedAudio51Tracks()};
g.K.e3=function(){return this.G7.e3()};
g.K.kJ=function(){return this.G7.kJ()};
g.K.isAtLiveHead=function(u,h){return this.G7.isAtLiveHead(u,h)};
g.K.e8=function(){return this.G7.e8()};
g.K.isGapless=function(){return this.G7.isGapless()};
g.K.isHdr=function(){return this.G7.isHdr()};
g.K.wL=function(){return this.G7.wL()};
g.K.fG=function(){return this.G7.fG()};
g.K.BK=function(){return this.G7.BK()};
g.K.isProximaLatencyEligible=function(){return this.G7.isProximaLatencyEligible()};
g.K.XS=function(){return this.G7.XS()};
g.K.XY=function(){return this.G7.XY()};
g.K.oL=function(){this.G7.oL()};
g.K.bb=function(u){this.G7.bb(u)};
g.K.pu=function(u){this.G7.pu(u)};
g.K.ea=function(){this.G7.ea()};
g.K.Qk=function(){this.G7.Qk()};
g.K.ZF=function(){this.G7.ZF()};
g.K.eB=function(){this.G7.eB()};
g.K.Db=function(u){this.G7.Db(u)};
g.K.MU=LV(53);g.K.tS=LV(26);g.K.xi=function(){this.G7.xi()};
g.K.pauseVideo=function(u){this.G7.pauseVideo(u)};
g.K.M5=function(u){this.G7.M5(u)};
g.K.uZ=function(u){this.G7.uZ(u)};
g.K.playVideo=function(u,h){return this.G7.playVideo(u,h)};
g.K.WF=function(u,h,L,Z,y){this.G7.WF(u,h,L,Z,y)};
g.K.R4=LV(31);g.K.t3=LV(36);g.K.Jr=function(u,h,L,Z,y){this.G7.Jr(u,h,L,Z,y)};
g.K.IH=function(u,h,L){this.G7.IH(u,h,L)};
g.K.Gg=function(u){this.G7.Gg(u)};
g.K.Ts=function(u,h){this.G7.WJ().Ts(u,h)};
g.K.yy=function(u,h,L){this.G7.yy(u,h,L)};
g.K.Hj=function(u){this.G7.Hj(u)};
g.K.Ym=function(u,h,L){this.G7.Ym(u,h,L)};
g.K.iz=function(u){this.G7.iz(u)};
g.K.Hs=function(u,h){this.G7.Hs(u,h)};
g.K.aZ=function(u,h,L,Z,y,R,p,J){this.G7.aZ(u,h,L,Z,y,R,p,J)};
g.K.Sz=function(u){this.G7.Sz(u)};
g.K.IQ=function(u,h){this.G7.IQ(u,h)};
g.K.jk=function(u,h){this.G7.jk(u,h)};
g.K.removeCueRange=function(u){this.G7.removeCueRange(u)};
g.K.oZ=function(u){this.G7.oZ(u)};
g.K.qm=function(u){return this.G7.lW.qm(u)};
g.K.sW=function(u){this.G7.sW(u)};
g.K.h3=function(u,h,L){this.G7.h3(u,h,L)};
g.K.AO=function(){this.G7.AO()};
g.K.fz=function(u,h){this.G7.fz(u,h)};
g.K.eI=function(){this.G7.eI()};
g.K.seekTo=function(u,h){this.G7.seekTo(u,h)};
g.K.sendAbandonmentPing=function(){this.G7.sendAbandonmentPing()};
g.K.sendVideoStatsEngageEvent=function(u,h){this.G7.sendVideoStatsEngageEvent(u,h)};
g.K.Lx=function(u,h){this.G7.Lx(u,h)};
g.K.setLoop=function(u){this.G7.setLoop(u)};
g.K.ws=function(){this.G7.ws()};
g.K.setMediaElement=function(u){this.G7.setMediaElement(u)};
g.K.N5=function(u,h,L,Z){this.G7.N5(u,h,L,Z)};
g.K.setPlaybackRate=function(u){this.G7.setPlaybackRate(u)};
g.K.LZ=function(u,h,L,Z,y,R){this.G7.LZ(u,h,L,Z,y,R)};
g.K.iQ=function(u,h){this.G7.iQ(u,h)};
g.K.CB=function(u){this.G7.CB(u)};
g.K.setProximaLatencyPreference=function(u){this.G7.setProximaLatencyPreference(u)};
g.K.q6=function(u){this.G7.q6(u)};
g.K.z0=function(){this.G7.z0()};
g.K.Pz=function(u){this.G7.Pz(u)};
g.K.setUserAudio51Preference=function(u,h){this.G7.setUserAudio51Preference(u,h)};
g.K.rQ=function(u,h,L){this.G7.rQ(u,h,L)};
g.K.IF=function(){return this.G7.IF()};
g.K.ue=function(){this.G7.ue()};
g.K.FW=function(){return this.G7.FW()};
g.K.Rg=function(u){this.G7.Rg(u)};
g.K.wx=function(){this.G7.wx()};
g.K.T0=function(u){this.G7.T0(u)};
g.K.stopVideo=function(){this.G7.stopVideo()};
g.K.subscribe=function(u,h,L){return this.G7.subscribe(u,h,L)};
g.K.Cm=function(u,h){this.G7.Cm(u,h)};
g.K.togglePictureInPicture=function(){this.G7.togglePictureInPicture()};
g.K.dW=function(u,h){return this.G7.lW.dW(u,h)};
g.K.unsubscribe=function(u,h,L){return this.G7.unsubscribe(u,h,L)};
g.K.u6=function(u,h){this.G7.u6(u,h)};
g.K.Fq=function(u,h){return this.G7.Fq(u,h)};
g.K.Pp=function(){this.G7.Pp()};
g.K.u7=function(){this.G7.u7()};
g.K.PR=function(u){this.G7.PR(u)};
g.K.rB=function(){this.G7.rB()};Ey.prototype.add=function(u){this.G=(this.G+1)%this.data.length;this.data[this.G]=u};
Ey.prototype.forEach=function(u){for(var h=this.G+1;h<this.data.length;h++)u(this.data[h]||0);for(h=0;h<=this.G;h++)u(this.data[h]||0)};
Ey.prototype.clear=function(){for(var u=this.data.length,h=0;h<u;h++)this.data[h]=0;this.N=this.G=this.data.length-1};g.P(g8,g.yV);g8.prototype.o8=function(){return this.S};
g8.prototype.Vf=function(){return this.policy.Y&&this.videoData.G?this.videoData.G.gD:Math.max(this.C()-jA(this)*this.G,this.videoData.yF())};g.P(Zt,g.m);Zt.prototype.pW=function(){var u=this,h=this.G7.yQ(),L=this.G7.getPlayerState();if(h&&!L.isError()){var Z=h.getCurrentTime(),y=L.state===8&&Z>this.G,R=g.F(L,8)&&g.F(L,16),p=this.G7.Ua().isBackground()||L.isSuspended();yy(this,this.xl,R&&!p,y,"qoe.slowseek",function(){},"timeout");
var J=isFinite(this.G);J=R&&J&&opa(h,this.G);var O=!Z||Math.abs(Z-this.G)>10,f=this.xI.j("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),D=Z===0&&this.N&&[11,10].includes(this.N);yy(this,this.e7,J&&O&&!p&&(!f||!D),y,"qoe.slowseek",function(){h.seekTo(u.G)},"set_cmt");
O=J&&Ll(h.R7(),this.G);var c=this.G7.nI;J=!c||c.e8();var I=function(){h.seekTo(u.G+.001)};
yy(this,this.jd,O&&J&&!p,y,"qoe.slowseek",I,"jiggle_cmt");J=function(){return u.G7.uS()};
yy(this,this.ZI,O&&!p,y,"qoe.slowseek",J,"new_elem");O=Z1(L);f=L.isBuffering();var A=h.R7(),x=hq(A,Z),Q=x>=0&&A.end(x)>Z+5,S=O&&f&&Q;D=this.G7.getVideoData();yy(this,this.VA,Z<.002&&this.G<.002&&R&&g.SM(this.xI)&&g.Hz(D)&&!p,y,"qoe.slowseek",J,"slow_seek_shorts");yy(this,this.AB,D.LV()&&R&&!p&&!D.XB,y,"qoe.slowseek",J,"slow_seek_gapless_shorts");yy(this,this.XB,S&&!p,O&&!f,"qoe.longrebuffer",I,"jiggle_cmt");yy(this,this.gw,S&&!p,O&&!f,"qoe.longrebuffer",J,"new_elem_nnr");if(c){var v=c.getCurrentTime();
R=h.xu();R=Piw(R,v);R=!c.isSeeking()&&Z===R;yy(this,this.iP,O&&f&&R&&!p,O&&!f&&!R,"qoe.longrebuffer",function(){h.seekTo(v)},"seek_to_loader")}R={};
I=hq(A,Math.max(Z-3.5,0));S=I>=0&&Z>A.end(I)-1.1;var T=I>=0&&I+1<A.length?A.start(I+1)-A.end(I):9999;R.mindex=x;R.disIndex=I;R.isdisc=I>=0&&S&&T<11;R.close2edge=S;R.gapsize=T;R.buflen=A.length;this.N&&(R.seekSour=this.N);if(I=this.G7.m7()){S=I.jh();T=S!==v4(I,Z*1E3).clipId;var U=g.Jl(this.xI.experiments,"html5_ssap_skip_seeking_offset_ms"),z=(X_(I,S)+U)/1E3;yy(this,this.T7,T&&O&&f&&!p,O&&!f,"qoe.longrebuffer",function(){h.seekTo(z)},"ssap_clip_not_match")}yy(this,this.DI,O&&f&&!p,O&&!f,"qoe.longrebuffer",
function(){},"timeout",R);
R=L.isSuspended();R=this.G7.e3()&&!R;yy(this,this.V,R,!R,"qoe.start15s",function(){u.G7.CB("ad")},"ads_preroll_timeout");
I=Z-this.B<.5;var d;R=!((d=this.G7.m7())==null||!d.UA());T=(S=D.isAd()||R&&this.xI.experiments.tB("html5_ssap_skip_slow_ad"))&&O&&!f&&I;d=function(){var W=u.G7,t=g.dC(W.videoData)&&W.AM,yn=W.pH.getVideoData();(yn&&W.videoData.isAd()&&yn.YF===W.getVideoData().YF||!W.videoData.Aa)&&!t?W.LZ("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+W.videoData.videoId):jS(W.videoData,"html5_ssap_skip_slow_ad")&&t&&W.AM.UA()&&(W.Hj(new lZ("ssap.transitionfailure",{cpn:v4(W.AM,W.V$()).clipId,pcpn:W.AM.jh(),
cmt:W.V$()})),W=W.AM,t=W.playback.V$(),(t=RwL(W,t))&&jmf(W,t.W7()/1E3))};
yy(this,this.vJ,T,!T,"ad.rebuftimeout",d,"skip_slow_ad");I=S&&f&&Ll(h.R7(),Z+5)&&I;yy(this,this.wm,I&&!p,!I,"ad.rebuftimeout",d,"skip_slow_ad_buf");d=L.isOrWillBePlaying()&&g.F(L,64)&&!p;yy(this,this.Ca,d,y,"qoe.start15s",function(){},"timeout");
d=!!c&&!c.oH&&L.isOrWillBePlaying();yy(this,this.vX,d,y,"qoe.start15s",J,"newElemMse");d=RA(A,0);I=g.F(L,16)||g.F(L,32);I=!p&&L.isOrWillBePlaying()&&f&&!I&&(g.F(L,64)||Z===0)&&d>5;yy(this,this.fI,g.Hz(D)&&I,O&&!f,"qoe.longrebuffer",function(){u.G7.D2()},"reset_media_source");
yy(this,this.Sd,g.Hz(D)&&I,O&&!f,"qoe.longrebuffer",J,"reset_media_element");this.B===0&&(this.C=Z);I=f&&this.G===0&&Z>1&&Z===this.C;yy(this,this.aH,g.Hz(D)&&I,O&&!f,"qoe.slowseek",function(){h.seekTo(0)},"reseek_after_time_jump");
p=L.isOrWillBePlaying()&&!p;Q=this.G7.Yw()-Z<6&&!Q&&this.G7.XL();yy(this,this.S,D.LV()&&p&&f&&Q,O&&!f,"qoe.longrebuffer",function(){u.G7.uS(!1,!0)},"handoff_end_long_buffer_reload");
c=(c==null?void 0:i3i(c))||NaN;c=A.length>1||!isNaN(c)&&c-.1<=Z;yy(this,this.Y,Wu(D)&&p&&f&&c,O&&!f,"qoe.longrebuffer",J,"gapless_slice_append_stuck");c=x>=0&&A.end(x)>=2;p=Wu(D)&&this.G7.OS&&c&&!D.XB&&p&&(f||g.F(L,8)&&g.F(L,16));yy(this,this.RH,p,y,"qoe.start15s",J,"gapless_slow_start");L=!!(R&&d>5&&L.isPlaying()&&Z<.1);yy(this,this.La,L,Z>.5&&O,"qoe.longrebuffer",J,"ssap_stuck_in_ad_beginning");this.B=Z;this.T.start()}};
Zt.prototype.Hj=function(u,h,L){h=this.IV(h);h.wn=L;h.wdup=this.X[u]?"1":"0";this.G7.Hj(new lZ(u,h));this.X[u]=!0};
Zt.prototype.IV=function(u){u=Object.assign(this.G7.IV(!0),u.IV());this.G&&(u.stt=this.G.toFixed(3));this.G7.getVideoData().isLivePlayback&&(u.ct=this.G7.getCurrentTime().toFixed(3),u.to=this.G7.df().toFixed(3));delete u.uga;delete u.euri;delete u.referrer;delete u.fexp;delete u.vm;return u};
h1.prototype.reset=function(){this.G=this.N=this.X=this.startTimestamp=0;this.B=!1};
h1.prototype.test=function(u){if(!this.T||this.N)return!1;if(!u)return this.reset(),!1;u=(0,g.vC)();if(!this.startTimestamp)this.startTimestamp=u,this.X=0;else if(this.X>=this.T)return this.N=u,!0;this.X+=1;return!1};
h1.prototype.IV=function(){var u={},h=(0,g.vC)();this.startTimestamp&&(u.wsd=(h-this.startTimestamp).toFixed());this.N&&(u.wtd=(h-this.N).toFixed());this.G&&(u.wssd=(h-this.G).toFixed());return u};g.P(mea,g.m);g.K=mea.prototype;g.K.setMediaElement=function(u){(this.mediaElement=u)?(this.mediaElement&&(this.T||this.B||!this.mediaElement.x8()||this.seekTo(.01,{Ek:"seektimeline_setupMediaElement"})),RZ(this)):KK(this)};
g.K.getCurrentTime=function(){if(pK(this.G7)){if(!isNaN(this.N))return this.N}else if(!isNaN(this.N)&&isFinite(this.N))return this.N;return this.mediaElement&&ERe(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.B||0};
g.K.Q3=function(){return this.Sd};
g.K.V$=function(){return this.getCurrentTime()-this.df()};
g.K.Vf=function(){return this.G?this.G.Vf():Infinity};
g.K.isAtLiveHead=function(u){if(!this.G)return!1;u===void 0&&(u=this.getCurrentTime());return uX(this.G,u)};
g.K.o8=function(){return!!this.G&&this.G.o8()};
g.K.seekTo=function(u,h){var L=h===void 0?{}:h;h=L.HI===void 0?!1:L.HI;var Z=L.rF===void 0?0:L.rF;var y=L.zl===void 0?!1:L.zl;var R=L.Xq===void 0?0:L.Xq;var p=L.Ek===void 0?"":L.Ek;var J=L.seekSource===void 0?void 0:L.seekSource;var O=L.fm===void 0?!1:L.fm;var f=L.gC===void 0?!1:L.gC;L=L.ZQ===void 0?!1:L.ZQ;O&&(u+=this.df());EX(this.videoData)&&this.j("html5_sabr_enable_utc_seek_requests")&&J===29&&(this.Sd=void 0);O=u<this.vX&&!!this.nI;var D=EX(this.videoData)&&f;if(O&&!D&&(this.G7.IH("sdai",{sk2bk:u.toFixed(3),
mt:(u-this.timestampOffset).toFixed(3),lstadj:this.vX.toFixed(3)}),this.vX=NaN,this.timestampOffset-=1E3,(D=this.nI)!=null)){MSl(D,D.timestampOffset-1E3);var c=D.PX,I=new Set;for(Q in c.G){var A=c.G[Q].index,x=A.tx();x&&!I.has(x)&&(x.startTime+=1E3,x.endTime=x.startTime+x.duration,I.add(x));A.segments.length&&(x=A.segments[A.segments.length-1],A.segments=[],A.segments.push(x))}D.S&&D.S.I6();UK(D.B,0,0,!0)}var Q=u;(D=EX(this.videoData))&&f?Q=!0:(c=this.j("html5_always_allow_sqless_sync")&&this.videoData.bP(),
(D||c)&&p==="chunkSelectorSynchronize"?Q=!0:(D=!isFinite(Q)||(this.G?uX(this.G,Q):Q>=this.T1())||!g.C3(this.videoData),D||(Q={st:Q,mst:this.T1()},this.G&&this.j("html5_high_res_seek_logging")&&(Q.ht=this.G.Vf(),Q.adft=N8i(this.G)),this.G7.IH("seeknotallowed",Q)),Q=D));if(!Q)return this.X&&(this.X=null,F5s(this)),g.xQ(this.getCurrentTime());Q=.005;f&&this.j("html5_sabr_seek_no_shift_tolerance")&&(Q=0);if(Math.abs(u-this.N)<=Q&&this.RH)return this.T;p&&(Q=u,(this.xI.UU()||this.j("html5_log_seek_reasons"))&&
this.G7.IH("seekreason",{reason:p,tgt:Q}));J&&(this.gw.N=J);this.RH&&KK(this);this.T||(this.T=new aA);u&&!isFinite(u)&&sqa(this,!1);(p=L||O)||(p=u,p=!(this.videoData.isLivePlayback&&this.videoData.X&&!this.videoData.X.G&&!(this.mediaElement&&this.mediaElement.rD()>0&&tq(this.mediaElement)>0)||L3(this.videoData)&&this.yF()===this.T1(!1)?0:isFinite(p)||!L3(this.videoData)));p||(u=OB(this,u,y));u&&!isFinite(u)&&sqa(this,!1);this.B=u;this.jd=R;this.N=u;this.Y=0;this.G&&(y=this.G,R=u,Uen(y,R,!1),GVL(y,
R));y=this.G7;R=u;p={HI:h,seekSource:J};y.CH.B=R;L=y.PD;L.mediaTime=R;L.G=!0;p.HI&&y.T0(p);p=R>y.videoData.endSeconds&&R>y.videoData.limitedPlaybackDurationInSeconds;y.J9&&p&&isFinite(R)&&ojj(y);R<y.T1()-.01&&(p=ju(y.playerState,2),g.F(p,8)&&(p=ju(p,4)),y.gf(p));y.publish("SEEK_TO",y,R);this.T&&(h?Z&&this.VA.start(Z):(h={gC:f,seekSource:J},this.RH=!0,z$e(this,h)));(h=this.G7.J9)&&u>h.start&&ojj(this.G7);return this.T};
g.K.T1=function(u){if(!this.videoData.isLivePlayback)return LNR(this.G7);var h;return ab(this.videoData)&&((h=this.mediaElement)==null?0:h.isPaused())&&this.videoData.G?(u=this.getCurrentTime(),p6l(this.Nr(u)*1E3)+u):this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&EX(this.videoData)&&this.videoData.G?u?this.videoData.G.RH||0:this.videoData.G.gD||0:L3(this.videoData)&&this.videoData.T7&&this.videoData.G?this.videoData.G.T1()+this.timestampOffset:this.videoData.X&&this.videoData.X.G?!u&&
this.G?this.G.Vf():LNR(this.G7)+this.timestampOffset:this.mediaElement?ep()?p6l(this.mediaElement.EV().getTime()):tq(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.K.yF=function(){if(g.dC(this.videoData)){var u=this.G7;g.dC(u.videoData);var h,L;return(L=(h=u.AM)==null?void 0:h.yF())!=null?L:u.videoData.yF()}if(this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&EX(this.videoData)){var Z;return((Z=this.videoData.G)==null?void 0:Z.WS)||0}h=this.videoData?this.videoData.yF()+this.timestampOffset:this.timestampOffset;return ab(this.videoData)&&this.videoData.G&&(L=Number((u=this.videoData.progressBarStartPosition)==null?void 0:u.utcTimeMillis)/1E3,u=
this.getCurrentTime(),u=this.Nr(u)-u,!isNaN(L)&&!isNaN(u))?Math.max(h,L-u):h};
g.K.jM=function(){this.T||this.seekTo(this.B,{Ek:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
g.K.gj=function(){return this.RH&&!isFinite(this.N)};
g.K.Ni=function(){wre(this,null);this.gw.dispose();g.m.prototype.Ni.call(this)};
g.K.IV=function(){var u={};this.nI&&Object.assign(u,this.nI.IV());this.mediaElement&&Object.assign(u,this.mediaElement.IV());return u};
g.K.Ga=function(u){this.timestampOffset=u};
g.K.getStreamTimeOffset=function(){return L3(this.videoData)?0:this.videoData.G?this.videoData.G.getStreamTimeOffset():0};
g.K.df=function(){return this.timestampOffset};
g.K.Nr=function(u){return this.videoData&&this.videoData.G?this.videoData.G.Nr(u-this.timestampOffset):NaN};
g.K.fq=function(){if(!this.mediaElement)return 0;if(MP(this.videoData)){var u=this.mediaElement,h=u.R7();u=(ys(h)>0&&u.getDuration()?h.end(h.length-1):0)+this.timestampOffset-this.yF();h=this.T1()-this.yF();return Math.max(0,Math.min(1,u/h))}return this.mediaElement.fq()};
g.K.N6=function(u){this.C&&(this.C.G=u)};
g.K.fz=function(u,h){this.G7.IH("requestUtcSeek",{time:u});EX(this.videoData)&&this.j("html5_sabr_enable_utc_seek_requests")&&(this.Sd=u);var L;(L=this.nI)==null||L.fz(u);h&&(this.XB=h)};
g.K.yn=function(u){EX(this.videoData)&&this.j("html5_sabr_enable_utc_seek_requests")&&(this.Sd=void 0);if(this.XB)this.G7.IH("utcSeekingFallback",{source:"streamTime",timeSeconds:this.XB}),this.G7.seekTo(this.XB,{Ek:"utcSeekingFallback_streamTime"}),this.XB=0;else{var h=this.getCurrentTime();isNaN(h)||(u=this.Nr(h)-u,h-=u,this.G7.IH("utcSeekingFallback",{source:"estimate",timeSeconds:h}),this.G7.seekTo(h,{Ek:"utcSeekingFallback_estimate"}))}};
g.K.Vq=function(){this.XB=0};
g.K.j=function(u){return this.xI&&this.xI.j(u)};g.P(fK,g.m);fK.prototype.start=function(){this.N.start()};
fK.prototype.stop=function(){this.N.stop()};
fK.prototype.clear=function(){for(var u=g.C(this.G.values()),h=u.next();!h.done;h=u.next())h.value.clear()};
fK.prototype.sample=function(){for(var u=g.C(this.X),h=u.next();!h.done;h=u.next()){var L=g.C(h.value);h=L.next().value;L=L.next().value;this.G.has(h)||this.G.set(h,new LKa(t1b.has(h)));this.G.get(h).update(L())}this.N.start()};
var t1b=new Set(["networkactivity"]);LKa.prototype.update=function(u){this.G?(this.buffer.add(u-this.zx||0),this.zx=u):this.buffer.add(u)};
LKa.prototype.clear=function(){this.buffer.clear();this.zx=0};IZ.prototype.Kz=function(){return this.started};
IZ.prototype.start=function(){this.started=!0};
IZ.prototype.reset=function(){this.finished=this.started=!1};var KKV=!1;g.P(g.CK,g.yV);g.K=g.CK.prototype;g.K.Ni=function(){this.logger.debug("dispose");g.PS(this.PN);chs(this.ut);this.visibility.unsubscribe("visibilitystatechange",this.ut);QZf(this);Qy(this);g.sM.OA(this.rq);this.h3();this.M3=null;g.Ju(this.videoData);g.Ju(this.Ev);g.Ju(this.DH);g.Ju(this.O7);g.O8(this.k3w);this.J9=null;g.yV.prototype.Ni.call(this)};
g.K.WF=function(u,h,L,Z,y){if(this.xI.j("html5_log_ad_playback_docid")){var R=this.WJ();if(R.qoe){R=R.qoe;var p=this.xI.AB||"yt";g.YR(R,g.Xa(R.provider),"ad_playback",[u,h,L,y,p])}}else this.WJ().WF(u,h,L);this.j("html5_log_media_perf_info")&&this.IH("adloudness",{ld:Z.toFixed(3),cpn:u})};
g.K.cU=function(){var u;return(u=this.nI)==null?void 0:u.cU()};
g.K.PU=function(){var u;return(u=this.nI)==null?void 0:u.PU()};
g.K.fv=function(){var u;return(u=this.nI)==null?void 0:u.fv()};
g.K.QU=function(){var u;return(u=this.nI)==null?void 0:u.QU()};
g.K.v7=function(){return this.videoData.v7()};
g.K.IF=function(){return this.j("html5_not_reset_media_source")&&!this.v7()&&!this.videoData.isLivePlayback&&g.Hz(this.videoData)&&!this.xI.supportsGaplessShorts()};
g.K.z0=function(){if(this.videoData.S){var u;if(!(u=this.videoData.kt)){var h;u=(h=this.pH.WX())==null?void 0:h.cU()}this.videoData.kt=u;if(!(u=this.videoData.Ss)){var L;u=(L=this.pH.WX())==null?void 0:L.PU()}this.videoData.Ss=u}if(E3V(this.videoData)||!eS(this.videoData))L=this.videoData.errorDetail,this.LZ(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),L,L,this.videoData.Ud||void 0);this.j("html5_generate_content_po_token")&&this.ZA();this.j("html5_enable_d6de4")&&this.SF();
if(this.j("html5_ssap_cleanup_player_switch_ad_player")||this.j("html5_ssap_cleanup_ad_player_on_new_data"))if(L=this.pH.iF())this.NV=L.clientPlaybackNonce};
g.K.aI=function(){return this.v0};
g.K.Cp=function(){!this.FY||this.FY.ww();this.FY=new g.eL(new w8(this.videoData,this.xI,this));this.v0=new $R(this.xI,this,this.FY)};
g.K.getVideoData=function(){return this.videoData};
g.K.L=function(){return this.xI};
g.K.Hu=function(u){return this.Yo.Hu(this.M3,u===void 0?!1:u)};
g.K.WJ=function(u){if(u)a:{for(var h=this.v0,L=g.C(h.G.values()),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.getVideoData().videoId===u){u=Z;break a}u=h.N}else u=this.v0.WJ();return u};
g.K.Ua=function(){return this.visibility};
g.K.Iq=function(){return this.mediaElement&&this.mediaElement.i$()?this.mediaElement.lP():null};
g.K.yQ=function(){return this.mediaElement};
g.K.fl=function(){if(this.j("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.L().C&&this.L().houseBrandUserStatus&&this.IH("hbut",{status:this.L().houseBrandUserStatus});if(this.videoData.ih())return!0;this.LZ("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.K.Rg=function(u){(u=u===void 0?!1:u)||g.dC(this.videoData)||aq(this.WJ());this.zO=u;!this.fl()||this.ov.Kz()?g.SM(this.xI)&&this.videoData.isLivePlayback&&this.ov.Kz()&&!this.ov.finished&&!this.zO&&this.VT():(this.ov.start(),u=this.WJ(),g.Xa(u.provider),u.qoe&&P$R(u.qoe),this.VT())};
g.K.VT=function(){if(this.videoData.isLoaded()){var u=this.Ev;g.Jl(u.z7.experiments,"html5_player_min_build_cl")>0&&g.Jl(u.z7.experiments,"html5_player_min_build_cl")>726265192&&Sal(u,"oldplayer");vjj(this)}else this.videoData.oM||this.videoData.i8?this.zO&&g.SM(this.xI)&&this.videoData.isLivePlayback||(this.videoData.oM?rEe(this.videoData):(u=this.WJ(),u.qoe&&(u=u.qoe,Uy(u,"protected"),u.provider.videoData.T?u.Go():u.provider.videoData.subscribe("dataloaded",u.Go,u)),o3Y(this.videoData))):!this.videoData.loading&&
this.Cw&&ltY(this)};
g.K.Pz=function(u){this.oV=u;this.nI&&(AFi(this.nI,new g.Oy(u)),this.j("html5_check_decorator_on_cuepoint")&&this.IH("sdai",{sdsstm:1}))};
g.K.q6=function(u){this.AM=u;this.nI&&this.nI.q6(u)};
g.K.Qt=LV(15);g.K.isFullscreen=function(){return this.visibility.isFullscreen()};
g.K.isBackground=function(){return this.visibility.isBackground()};
g.K.rB=function(){var u=this;this.logger.debug("Updating for format change");M$(this).then(function(){return P_(u)});
this.playerState.isOrWillBePlaying()&&this.playVideo()};
g.K.wx=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.Rg();this.fl()&&!g.F(this.playerState,128)&&(this.kz.Kz()||(this.kz.start(),this.videoData.z2?this.gf(uQ(this.playerState,4)):this.gf(uQ(uQ(this.playerState,8),1))),SBb(this))};
g.K.fG=function(){return this.ov.finished};
g.K.sendAbandonmentPing=function(){g.F(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.zE(!0),QZf(this),g.sM.OA(this.rq))};
g.K.Lx=function(u,h){u=u===void 0?!0:u;(h===void 0||h)&&this.mediaElement&&this.mediaElement.pause();this.gf(u?new g.EF(14):new g.EF)};
g.K.o9=function(){ZTa(this.WJ())};
g.K.LZ=function(u,h,L,Z,y,R){this.logger.debug(function(){return"set player error: ec="+u+", detail="+y});
var p,J;g.vM(yoq,L)?p=L:L?J=L:p="GENERIC_WITHOUT_LINK";Z=(Z||"")+(";a6s."+Rt());if(u==="auth"||u==="drm.auth"||u==="heartbeat.stop")L&&(Z+=";r."+L.replaceAll(" ","_")),R&&(Z+="sr."+R.replaceAll(" ","_"));h={errorCode:u,errorDetail:y,errorMessage:J||g.b5[p]||"",yU:p,Ud:R||"",SB:Z,Mc:h,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=u;iX(this,"dataloaderror");this.gf(gM(this.playerState,128,h));g.sM.OA(this.rq);Qy(this);this.IQ()};
g.K.CB=function(u){this.YU=this.YU.filter(function(h){return u!==h});
this.logger.debug(function(){return"set preroll ready for "+u});
g.dC(this.videoData)&&!this.Hm()&&this.T3.wO("pl_pr");this.kz.Kz()&&SBb(this)};
g.K.Hm=function(){var u;(u=!!this.YU.length)||(u=this.lW.G.array[0],u=!!u&&u.start<=-0x8000000000000);return u};
g.K.o8=function(){return this.CH.o8()};
g.K.isPlaying=function(){return this.playerState.isPlaying()};
g.K.wL=function(){return this.playerState.wL()&&this.videoData.z2};
g.K.getPlayerState=function(){return this.playerState};
g.K.M5=function(u){var h;(h=this.nI)==null||h.M5(u)};
g.K.uZ=function(u){var h;(h=this.nI)==null||h.uZ(u)};
g.K.getPlayerType=function(){return this.playerType};
g.K.getPreferredQuality=function(){if(this.M3){var u=this.M3;u=u.videoData.wB.compose(u.videoData.vY);u=gZ(u)}else u="auto";return u};
g.K.Qb=LV(20);g.K.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.K.setMediaElement=function(u){this.logger.debug("set media element");if(this.mediaElement&&u.lP()===this.mediaElement.lP()&&(u.isView()||this.mediaElement.isView())){if(u.isView()||!this.mediaElement.isView())g.Tj(this.fh),this.mediaElement=u,this.mediaElement.G7=this,w_l(this),this.CH.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.h3();if(!this.playerState.isError()){var h=ju(this.playerState,512);g.F(h,8)&&!g.F(h,2)&&(h=uQ(h,1));u.isView()&&(h=ju(h,64));this.gf(h)}this.mediaElement=
u;this.mediaElement.G7=this;!g.SM(this.xI)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);w_l(this);this.CH.setMediaElement(this.mediaElement);this.j("html5_prewarm_media_source")&&!this.Ev.W1()&&vpn(this.mediaElement)}};
g.K.h3=function(u,h,L){u=u===void 0?!1:u;h=h===void 0?!1:h;L=L===void 0?!1:L;this.logger.debug("remove media element");if(this.mediaElement){var Z=this.getCurrentTime();Z>0&&(this.CH.B=Z);this.CH.setMediaElement(null);!u&&this.IF()?zcl(this):this.sW(L);this.nI&&(jL(this.nI),v_(this,h));this.s3.stop();if(this.mediaElement&&(!this.kz.Kz()&&!this.e3()||this.playerState.isError()||g.F(this.playerState,2)||this.gf(uQ(this.playerState,512)),this.mediaElement)){g.Tj(this.fh);if(u||!this.mediaElement.isView())this.T3.Xa("mesv_s"),
this.mediaElement.stopVideo(),q$(this);this.mediaElement=this.mediaElement.G7=null}}};
g.K.playVideo=function(u,h){u=u===void 0?!1:u;h=h===void 0?!1:h;var L=this,Z,y,R,p,J,O;return g.G(function(f){if(f.G==1){L.logger.debug("start play video");var D=window.google_image_requests;D&&D.length>10&&(window.google_image_requests=D.slice(-10));if(g.F(L.playerState,128))return f.return();if(L.Ev.XY())return L.publish("signatureexpired"),f.return();L.mediaElement&&aq(L.WJ());L.wx();(g.F(L.playerState,64)||u)&&L.gf(uQ(L.playerState,8));return L.kz.finished&&L.mediaElement?L.M3||!L.B2?f.KI(2):
g.N(f,L.B2,3):f.return()}if(f.G!=2&&g.F(L.playerState,128))return f.return();if(!L.videoData.X)return L.videoData.isLivePlayback&&!g.t3(L.xI.T,!0)?(Z="html5.unsupportedlive",y=2):(Z=L.videoData.v7()?"fmt.unplayable":"fmt.noneavailable",y=1),g.G3(Error("selectableFormats")),L.LZ(Z,y,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),f.return();if(L.kJ()&&L.videoData.X.G)return L.logger.debug("rebuild playbackData for airplay"),f.return(M$(L));if(pK(L))D=L.CH,hF(D.videoData)?!D.isAtLiveHead(D.getCurrentTime())&&
D.o8()&&D.G7.seekTo(Infinity,{Ek:"seektimeline_peggedToLive",seekSource:34}):g.dC(D.videoData)&&D.getCurrentTime()<D.yF()&&D.G7.seekTo(D.yF(),{Ek:"seektimeline_outOfWindow"});else if(hF(L.videoData)){if(R=L.getCurrentTime()<L.yF()-15,p=g.C3(L.videoData)&&L.playerState.isPaused(),J=g.F(L.playerState,1024),D=L.CH,D.videoData.bP()&&sT(D.videoData)||J||!R&&!p||(p?(L.logger.debug("seek to head for live because of live-only"),L.seekTo(Infinity,{Ek:"videoplayer_unpauseLiveOnly",seekSource:102})):(L.logger.debug("seek to min seekable for live because of out of window"),
L.seekTo(L.yF(),{Ek:"videoplayer_outOfWindow",seekSource:102}))),!L.isAtLiveHead(void 0,!0)&&L.o8()&&(L.logger.debug("seek to head for live because pegged to live"),O={Ek:"videoplayer_peggedToLive",seekSource:34},L.seekTo(Infinity,O)),g.F(L.playerState,256)&&L.videoData.XB&&L.CH.gj())return L.gf(h0(L.playerState,8,4)),f.return()}else g.dC(L.videoData)&&L.getCurrentTime()<L.yF()-0&&L.seekTo(L.yF(),{Ek:"videoplayer_outOfWindow"});g.F(L.playerState,4)&&g.F(L.playerState,16)&&L.gf(h0(L.playerState,9,
4));if(P_(L,h))return FKR(L),f.return();WKj(L);g.i1(f)})};
g.K.D2=function(u){this.logger.debug("reset media source");u&&this.Hj(new lZ("qoe.restart",u));this.gf(uQ(this.playerState,2048));this.sW();u=this.videoData.G&&R3(this.videoData.G);var h=this.mediaElement&&this.mediaElement.isView();u||h?(this.nI&&VGf(this.nI),this.uS()):(P_(this),this.playerState.isOrWillBePlaying()&&this.playVideo())};
g.K.dn=function(){if(!this.M3)return[];var u=oUn(this.Yo,this.M3,this.hx());return this.M3.G.dn(u)};
g.K.ZR=function(){if(!this.M3)return[];var u=oUn(this.Yo,this.M3,this.hx());return this.M3.G.ZR(u)};
g.K.hx=function(){var u=this.YS?this.YS.hx():tV(this.videoData)&&this.videoData.G&&R3(this.videoData.G)?this.videoData.Xb?Hu:jvl:Hu;this.Nb&&(u=u.compose(T$y));return u};
g.K.wr=function(){return this.M3?oUn(this.Yo,this.M3,this.hx()):Hu};
g.K.G8=function(){var u=this.UX(),h=this.pH.iF().videoId;return this.pH.bL.G8(u)||this.pH.bL.G8(h)};
g.K.rQ=function(u,h,L){if(this.j("html5_enable_qoe_video_format_intent")){var Z;if((Z=this.WJ().qoe)!=null){var y=u.G,R=g.Xa(Z.provider);g.YR(Z,R,"vfi",[y===0?"":""+y,y===0?"A":"M"])}}this.videoData.wB=u;if(this.M3&&h&&(h=this.Yo,Z=this.M3,Z.G.G)){var p=Z.G.videoInfos[0].video.G;y=p!==0&&u.G===p;R=od()>p;p=h.j("html5_dont_save_under_1080")&&p<1080;if(!y||!R&&!p){var J;y=Uuf(h,(J=Z.G)==null?void 0:J.videoInfos);J=h.G7.getPlaybackRate();J>1&&y&&(J=vGa(h.xI.T,Z.G.videoInfos,J),u.G!==0&&J<u.G&&h.G7.setPlaybackRate(1));
var O,f;u=g.rF[gZ(u)];J=((O=Z.videoData.N)==null?void 0:(f=O.video)==null?void 0:f.G)||0;g.UO("yt-player-quality",{quality:u,previousQuality:J},31104E3);h.xI.schedule.policy.B=od()>=480;if(h.j("html5_exponential_memory_for_sticky")){O=h.xI.Mr;f=1;var D=D===void 0?!1:D;eEL(O,"sticky-lifetime");O.values["sticky-lifetime"]&&O.Az["sticky-lifetime"]||(O.values["sticky-lifetime"]=0,O.Az["sticky-lifetime"]=0);D&&IL(O,"sticky-lifetime")>.0625&&(f=O.Az["sticky-lifetime"]*2);O.values["sticky-lifetime"]+=1*
Math.pow(2,O.G/f);O.Az["sticky-lifetime"]=f;O.B.start()}if(h.j("html5_perf_cap_override_sticky")){D=h.X;O=h.j("html5_perserve_av1_perf_cap");O=O===void 0?!1:O;if(O===void 0?0:O){f=Ug();h=g.C(Object.keys(f));for(u=h.next();!u.done;u=h.next())u=u.value,u.indexOf("1")!==0&&delete f[u];g.UO("yt-player-performance-cap",f,2592E3)}else g.HD("yt-player-performance-cap");qi1(O);if(O){O=g.C(Mc.keys());for(f=O.next();!f.done;f=O.next())f=f.value,f.startsWith("1")||Mc.delete(f);O=g.C(QD.values());for(f=O.next();!f.done;f=
O.next())f=f.value,f.startsWith("1")||QD.delete(f);O=g.C(D.keys());for(f=O.next();!f.done;f=O.next())f=f.value,f.startsWith("1")||D.delete(f)}else Mc.clear(),QD.clear(),D.clear()}}}this.nI&&(D=this.nI,L=L||"",D.policy.G?mt(D.N.G,L):mt(D.G.T,L));this.u7()};
g.K.getUserPlaybackQualityPreference=function(){return this.videoData.X&&!this.videoData.X.G?gZ(this.videoData.wB):kg[od()]};
g.K.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.K.setUserAudio51Preference=function(u,h){this.getUserAudio51Preference()!==u&&(this.IH("toggle51",{pref:u}),g.UO("yt-player-audio51",u,h?31536E3:2592E3),this.rB())};
g.K.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()};
g.K.setProximaLatencyPreference=function(u){var h=this.getProximaLatencyPreference();this.IH("proxima",{pref:u});g.UO("yt-player-proxima-pref",u,31536E3);h!==u&&(u=this.CH,u.fI=!0,u.G7.seekTo(Infinity,{Ek:"seektimeline_proximaSeekToHead",seekSource:34}))};
g.K.getProximaLatencyPreference=function(){var u;return(u=Nm())!=null?u:0};
g.K.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
g.K.ZA=function(){this.videoData.videoId?this.pH.ZA(this.videoData):this.IH("povid",{})};
g.K.SF=function(){this.videoData.videoId?this.pH.SF(this.videoData):this.IH("piavid",{})};
g.K.u7=function(){if(!this.ww()&&!g.F(this.playerState,128)&&this.videoData.X){if(this.videoData.X.G)xj(this);else{var u=X5(this),h=this.videoData;a:{var L=this.videoData.XN;if(u.G){for(var Z=g.C(L),y=Z.next();!y.done;y=Z.next()){y=y.value;var R=y.getInfo(),p=g.rF[R.video.quality];if((!u.X||R.video.quality!=="auto")&&p<=u.G){L=y;break a}}L=L[L.length-1]}else L=L[0]}h.xl=L;NWf(this,u.reason,$$b(this,this.videoData.xl))}if(this.j("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.CH.V=
!1,this.playVideo()}};
g.K.Fq=function(u,h){if(this.ww()||g.F(this.playerState,128))return!1;var L,Z=!((L=this.videoData.X)==null||!L.G);L=Z&&h?this.getCurrentTime()-this.df():NaN;if(this.xI.experiments.tB("html5_record_audio_format_intent")){var y=this.WJ();if(y.qoe){y=y.qoe;var R=[u.tM.id,isNaN(L)?"m":"t"];g.YR(y,g.Xa(y.provider),"afi",R)}}if(Z)return h&&(Z=anL(this.CH),this.IH("aswh",{id:u.id,xtags:u.xtags,bh:Z.toFixed(3)})),this.nI.setAudioTrack(u,L,h),!0;if(Geb(this)){a:{h=this.mediaElement.audioTracks();for(Z=0;Z<
h.length;++Z)if(L=h[Z],L.label===u.tM.getName()){if(L.enabled){h=!1;break a}h=L.enabled=!0;break a}h=void 0}h&&this.IH("hlsaudio",{id:u.id})}else{a:if(h=this.videoData,h.B&&!tg(h.B)||u===h.fE||!h.XN||h.XN.length<=0)h=!1;else{Z=g.C(h.XN);for(L=Z.next();!L.done;L=Z.next()){L=L.value;if(!(L instanceof jG)){h=!1;break a}y=u.tM.getId();L.N&&(cLL(L.N,y),L.D3=null)}h.fE=u;h=!0}h&&P_(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.IH("hlsaudio",{id:u.id}))}return!0};
g.K.getAvailableAudioTracks=function(){return g.dC(this.videoData)&&this.AM?Jtn(this.AM).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()};
g.K.getAudioTrack=function(){if(Geb(this)){var u=r1n(this);if(u)return u}return this.videoData.getAudioTrack()};
g.K.Qk=function(){if(this.videoData.j("html5_trigger_loader_when_idle_network")&&!this.videoData.bP()&&EX(this.videoData)){var u;(u=this.nI)!=null&&u.pW()}};
g.K.ea=function(){if(Wu(this.videoData)&&this.videoData.j("html5_gapless_append_early")){var u;(u=this.nI)!=null&&u.pW()}};
g.K.zb=function(u){u=u===void 0?!1:u;if(this.nI){var h=this.nI,L=h.zb;var Z=this.videoData;Z=Z.j("html5_ssdai_use_post_for_media")&&Z.enableServerStitchedDai?!1:L3(Z)&&Z.Aa&&!Z.isAd();L.call(h,Z,u)}};
g.K.sW=function(u){u=u===void 0?!1:u;this.oH&&(this.logger.debug("remove media source"),X2n(this.oH),this.zb(u),this.oH.dispose(),this.oH=null)};
g.K.EH=function(){return this.oH};
g.K.N5=function(u,h,L,Z){function y(p){try{njw(R,p,h,L)}catch(J){g.G3(J),R.handleError(new lZ("fmt.unplayable",{msi:"1",ename:J&&typeof J==="object"&&"name"in J?String(J.name):void 0},1))}}
var R=this;h=h===void 0?!1:h;L=L===void 0?!1:L;d$e(this,Z===void 0?!1:Z);this.oH=u;this.IF()&&wM(this.oH)==="open"?y(this.oH):M2e(this.oH,y)};
g.K.W8=function(u){this.logger.debug("onNeedKeyInfo");this.m9.set(u.initData,u);this.YS&&(this.YS.W8(u),this.j("html5_eme_loader_sync")||this.m9.remove(u.initData))};
g.K.I1=function(u){this.videoData.Tn=g.F9("auto",u,!1,"u");xj(this)};
g.K.N6=function(u){var h=u.reason,L=u.G.info,Z=u.token,y=u.videoId,R=this.WJ(y),p=g.dC(this.videoData)?R.getVideoData():this.videoData;if(L!==p.B){var J=!p.B;p.B=L;h!=="m"&&h!=="t"&&(h=J?"i":"a");var O=h==="m"||h==="t";this.xI.experiments.tB("html5_refactor_sabr_audio_format_selection_logging")?this.wb=new qaa(p,L,h,"",Z,y):R.UD(new qaa(p,L,h,"",Z));this.publish("internalaudioformatchange",p,!J&&O)}this.CH.N6(u.G.index)};
g.K.n_=function(u){this.publish("localmediachange",u)};
g.K.b8=function(u){u=u===void 0?{}:u;var h;(h=this.nI)==null||h.b8(this.xI,bt(this.videoData),u)};
g.K.XY=function(){return this.Ev.XY()};
g.K.Sz=function(u){this.Hj(new lZ("staleconfig",{reason:u}))};
g.K.handleError=function(u){this.Ev.handleError(u)};
g.K.W1=function(){return this.Ev.W1()};
g.K.yn=function(u){this.CH.yn(u)};
g.K.uS=function(u,h,L){u=u===void 0?!1:u;h=h===void 0?!1:h;L=L===void 0?!1:L;var Z=this,y,R,p;return g.G(function(J){if(J.G==1){Z.nI&&Z.nI.Rq();Z.nI&&Z.nI.ww()&&Qy(Z);if(Z.j("html5_enable_vp9_fairplay")&&Z.v7()&&(y=Z.videoData.G)!=null)for(var O in y.G)y.G.hasOwnProperty(O)&&(y.G[O].G=null,y.G[O].X=!1);Z.gf(uQ(Z.playerState,2048));Z.j("html5_ssap_keep_media_on_finish_segment")&&g.dC(Z.videoData)?Z.publish("newelementrequired",L):Z.publish("newelementrequired");return u?g.N(J,M$(Z),2):J.KI(2)}Z.videoData.bP()&&
((R=Z.nI)==null?0:R.XB)&&!pK(Z)&&((p=Z.isAtLiveHead())&&hF(Z.videoData)?Z.seekTo(Infinity,{Ek:"videoPlayer_getNewElement"}):Z.videoData.Ph&&Z.nI&&(O=Z.nI,O.PX.bP&&(O.PX.Ph||O.PX.B||O.PX.isPremiere?(O.seek(0,{Ek:"loader_resetSqless"}),O.videoTrack.V=!0,O.audioTrack.V=!0,O.videoTrack.T=!0,O.audioTrack.T=!0):xi(O.PX)&&FV(O))));h&&Z.seekTo(0,{seekSource:105});g.F(Z.playerState,8)&&(Z.j("html5_ssap_keep_media_on_finish_segment")&&g.dC(Z.videoData)?Z.playVideo(!1,L):Z.playVideo());g.i1(J)})};
g.K.jG=function(u){this.IH("hgte",{ne:+u});this.videoData.S=!1;u&&this.uS();this.nI&&VGf(this.nI)};
g.K.U$=function(u){this.IH("newelem",{r:u});this.uS()};
g.K.pauseVideo=function(u){u=u===void 0?!1:u;if((g.F(this.playerState,64)||g.F(this.playerState,2))&&!u)if(g.F(this.playerState,8))this.gf(h0(this.playerState,4,8));else if(this.wL())P_(this);else return;g.F(this.playerState,128)||(u?this.gf(uQ(this.playerState,256)):this.gf(h0(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.C3(this.videoData)&&this.nI&&v_(this,!1)};
g.K.stopVideo=function(){this.pauseVideo();this.nI&&(v_(this,!1),this.nI.A2())};
g.K.IQ=function(u,h){u=u===void 0?!1:u;h=h===void 0?!1:h;if(this.IF()&&h){var L;(L=this.mediaElement)==null||L.IQ()}else{var Z;(Z=this.mediaElement)==null||Z.stopVideo()}q$(this);Qy(this);g.F(this.playerState,128)||(u?this.gf(ju(ju(uQ(this.playerState,4),8),16)):this.gf(gM(this.playerState)));this.videoData.videoId&&this.xI.T7.remove(this.videoData.videoId)};
g.K.seekTo=function(u,h){h=h===void 0?{}:h;this.logger.debug(function(){return"SeekTo "+u+", "+JSON.stringify(h)});
g.F(this.playerState,2)&&P_(this);h.b5I&&this.gf(uQ(this.playerState,2048));h.seekSource!==58&&h.seekSource!==60||!this.j("html5_update_vss_during_gapless_seeking")||h$e(this.WJ(),h.seekSource);this.CH.seekTo(u,h);this.lW.sync()};
g.K.T0=function(u){this.T3.B.uy();g.F(this.playerState,32)||(this.gf(uQ(this.playerState,32,u==null?void 0:u.seekSource)),g.F(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking",this));this.cj()};
g.K.gI=function(u){u=u==null?void 0:u.seekSource;g.F(this.playerState,32)?(this.gf(h0(this.playerState,16,32,u)),this.publish("endseeking",this)):g.F(this.playerState,2)||this.gf(uQ(this.playerState,16,u));this.T3.B.ly(this.videoData,this.playerState.isPaused())};
g.K.Je=function(u){this.gI(u)};
g.K.Zb=function(){this.publish("SEEK_COMPLETE")};
g.K.In=function(){this.publish("onAbnormalityDetected")};
g.K.uQ=function(u){var h=this.pH,L=this.videoData.clientPlaybackNonce,Z=this.playerType;if(u.scope===4){var y=u.type;if(y){var R=h.IP(),p=R.getVideoData().clientPlaybackNonce;Z===1&&(p=L);(h=zXf(h,p))?(L=h.getVideoData())&&(u.writePolicy===2&&L.sabrContextUpdates.has(y)||L.sabrContextUpdates.set(y,u)):R.IH("scuset",{ncpf:"1",ccpn:p,crcpn:L})}else g.G3(Error("b/380308491: contextUpdateType is undefined"))}};
g.K.fn=function(){if(this.pH.iF().Yy&&this.playerType===2)return this.pH.fn("")};
g.K.getCurrentTime=function(){return this.CH.getCurrentTime()};
g.K.Q3=function(){return this.CH.Q3()};
g.K.V$=function(){return this.CH.V$()};
g.K.Q4=function(u){return this.AM&&(u=u||this.AM.jh())?p1(this.AM,u):this.V$()};
g.K.Vf=function(){return this.CH.Vf()};
g.K.getPlaylistSequenceForTime=function(u){return this.videoData.getPlaylistSequenceForTime(u-this.df())};
g.K.t1=function(){var u=NaN;this.mediaElement&&(u=this.mediaElement.t1());return u>=0?u:this.getCurrentTime()};
g.K.Nr=function(){var u;return((u=this.videoData.G)==null?0:u.Nr)?this.videoData.G.Nr(this.getCurrentTime()-this.df()):this.mediaElement&&(u=this.mediaElement.EV())&&(u=u.getTime(),!isNaN(u))?u/1E3+this.getCurrentTime():NaN};
g.K.getDuration=function(u){return g.dC(this.videoData)&&this.AM?u?K8j(this.AM,u):u7(this.AM):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.df():this.T1()?this.T1():0};
g.K.JL=function(){var u=new JyL;if(this.nI){var h=this.xI.schedule,L=this.xI.UU();L=L===void 0?!1:L;u.NI=h.XB;u.zn=h.jd;u.bandwidthEstimate=Dr(h);if(L){L=(h.S.NO()*1E3).toFixed();var Z=(h.DI.NO()*1E3).toFixed(),y=Jz(h).toFixed(2),R=((h.V.NO()||0)*1E9).toFixed(2),p=h.X.NO().toFixed(0),J=h.T7.NO().toFixed(0),O=h.Y.percentile(.5).toFixed(2),f=h.Y.percentile(.92).toFixed(2),D=h.Y.percentile(.96).toFixed(2),c=h.Y.percentile(.98).toFixed(2);h.G?h.G.reset():h.G=new u9;h.G.add(h.gw);h.G.add(h.interruptions.length);
for(var I=0,A=h.interruptions.length-1;A>=0;A--){var x=h.interruptions[A];h.G.add(x-I);I=x}I=0;for(A=h.B.length-1;A>=0;A--){x=h.B[A];var Q=x.stamp/36E5;h.G.add(Q-I);I=Q;h.G.add(x.net/1E3);h.G.add(x.max)}h=h.G.n0();u.G={ttr:L,ttm:Z,d:y,st:R,bw:p,abw:J,v50:O,v92:f,v96:D,v98:c,"int":h}}Iyj(this.nI,u)}else this.mediaElement&&(u.FC=WP(this.mediaElement));u.NI=this.NI;u.zn=this.zn;u.X=this.isAtLiveHead()&&this.isPlaying()?MAl(this):NaN;return u};
g.K.oh=function(u,h){this.zn+=u;this.NI+=h};
g.K.fq=function(){return this.mediaElement?g.C3(this.videoData)?1:MP(this.videoData)?this.isAtLiveHead()||this.o8()?1:this.CH.fq():this.mediaElement.fq():0};
g.K.Zc=function(){var u=this.getCurrentTime();if(this.YS){var h="IT/"+(this.YS.G.getInfo()+"/"+gZ(this.hx()));h+="/"+this.YS.getInfo()}else h="";var L=this.isGapless(),Z=this.XS(),y=this.V8(),R=g.SA(this),p=this.getPlayerState(),J=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var O=0;var f="";if(this.oV){if(this.oV.kD){f="D,";break a}O=this.oV.YA();f=this.oV.jh().substring(0,4)}else this.AM&&(O=this.AM.YA(),f=this.AM.jh().substring(0,4));O>0?(O="AD"+O+", ",f&&(O+=f+", "),f=O):f=""}return{currentTime:u,
je:h,isGapless:L,XS:Z,vK:y,r4I:R,playerState:p,kMd:J,NoH:this.Gj,sS:f,x$X:this.Q8()}};
g.K.IV=function(u){var h={};if(u===void 0?0:u){Object.assign(h,this.WJ().IV());this.mediaElement&&(Object.assign(h,this.mediaElement.IV()),Object.assign(h,this.Q8()));this.nI&&Object.assign(h,this.nI.IV());this.YS&&(h.drm=JSON.stringify(this.YS.IV()));h.state=this.playerState.state.toString(16);g.F(this.playerState,128)&&(h.debug_error=JSON.stringify(this.playerState.Ad));this.Hm()&&(h.prerolls=this.YU.join(","));this.videoData.Oo&&(h.ismb=this.videoData.Oo);this.videoData.latencyClass!=="UNKNOWN"&&
(h.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(h.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)h.is_mosaic=1;this.videoData.cotn&&(h.is_offline=1,h.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(h.playerResponseCpn=this.videoData.playerResponseCpn);this.pH.isOrchestrationLeader()&&(h.leader=1);this.videoData.isLivePlayback&&(this.videoData.G&&
Dp(this.videoData.G)&&(h.segduration=Dp(this.videoData.G)),u=this.CH,h.lat=u.C?XrR(u.C.B):0,h.liveutcstart=this.videoData.liveUtcStartSeconds);h.relative_loudness=this.videoData.fV.toFixed(3);if(u=g.SA(this))h.optimal_format=u.video.qualityLabel;h.user_qual=od();h.release_version="youtube.player.web_20250212_01_RC00";g.dC(this.videoData)&&this.AM&&(h.ssap=xA(this.AM))}h.debug_videoId=this.videoData.videoId;return h};
g.K.addCueRange=function(u){this.Tp([u])};
g.K.removeCueRange=function(u){this.lW.G2([u])};
g.K.eB=function(){this.lW.sync()};
g.K.LA=function(u,h){return this.lW.LA(u,h)};
g.K.Tp=function(u,h){this.lW.Rl(u,h)};
g.K.oZ=function(u){this.lW.G2(u)};
g.K.pu=function(u){var h=this.lW;u.length<=0||h.ww()||(u=h.G,u.array.sort(u.G))};
g.K.Ue=function(){return this.lW.Ue()||[]};
g.K.nR=function(){return this.uH};
g.K.kJ=function(){return this.visibility.kJ()};
g.K.ue=function(){this.mediaElement&&this.mediaElement.ue()};
g.K.XrH=function(){iX(this)};
g.K.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.K.lf=function(u){var h=u.target.D7();if(this.mediaElement&&this.mediaElement.D7()&&this.mediaElement.D7()===h){uWn(this,u.type);switch(u.type){case "error":var L=bz(this.mediaElement)||"",Z=this.mediaElement.KB();if(L==="capability.changed"){this.j("html5_restart_on_capability_change")?(this.IH("capchg",{msg:Z}),this.uS(!0)):M$(this);return}if(this.mediaElement.hasError()&&(Mgl(this.Ev,L,{msg:Z})||g.dC(this.videoData)&&this.AM&&(Z=this.playerState.Ad,this.AM.handleError(L,Z==null?void 0:Z.Mc))))return;
if(this.isBackground()&&this.mediaElement.xW()===4){this.IQ();lX(this,"unplayable");return}break;case "durationchange":L=this.mediaElement.getDuration();isFinite(L)&&(!this.oH||L>0)&&L!==1&&this.N9(L);break;case "ratechange":this.nI&&this.nI.setPlaybackRate(this.mediaElement.getPlaybackRate());C7l(this.lW);this.WJ().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":hC1(this);this.publish("onLoadedMetadata");atV(this);L=this.Nr();this.videoData.ag&&(this.videoData.ag=L);break;
case "loadstart":atV(this);break;case "progress":case "suspend":this.cj();this.publish("onLoadProgress",this,this.fq());break;case "playing":this.T3.Xa("plev");this.Bz&&!pK(this)&&(this.Bz=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Ek:"videoplayer_onPlaying"})));break;case "timeupdate":L=this.mediaElement&&!this.mediaElement.getCurrentTime();Z=this.mediaElement&&this.mediaElement.rD()===0;if(L&&(!this.SR||Z))return;this.SR=this.SR||!!this.mediaElement.getCurrentTime();
ecn(this);this.cj();if(!this.mediaElement||this.mediaElement.D7()!==h)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.xu().length>0&&this.mediaElement.R7().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.nI)return;this.j("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.rD()>2||!this.mediaElement.isSeeking()&&Ll(this.mediaElement.R7(),this.mediaElement.getCurrentTime()))&&
(L=this.mediaElement.IV(),L.bh=WP(this.mediaElement).toFixed(3),this.IH("uwe",L));g.dC(this.videoData)&&this.AM&&jmf(this.AM,this.mediaElement.getCurrentTime());break;case "resize":hC1(this);this.videoData.N&&this.videoData.N.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.Bw&&g.F(this.playerState,8)&&!g.F(this.playerState,1024)&&this.getCurrentTime()===0&&g.PC){lX(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.D7()===
h){u5V(this.CH,u,this.AM||void 0);this.publish("videoelementevent",u);h=this.playerState;Z=this.PD;var y=this.mediaElement;L=this.videoData.clientPlaybackNonce;var R=g.dC(this.videoData)&&this.AM?u7(this.AM):void 0;if(!g.F(h,128)){var p=h.state;y=y?y:u.target;var J=y.getCurrentTime();if(!g.F(h,64)||u.type!=="ended"&&u.type!=="pause"){R=R||y.getDuration();R=y.isEnded()||J>1&&Math.abs(J-R)<1.1;var O=u.type==="pause"&&y.isEnded();J=u.type==="ended"||u.type==="waiting"||u.type==="timeupdate"&&!g.F(h,
4)&&!b7(Z,J);if(O||R&&J)y.MK()>0&&y.D7()&&(p=14);else switch(u.type){case "error":bz(y)&&(p|=128);break;case "pause":g.F(h,256)?(p^=256)||(p=64):g.F(h,32)||g.F(h,2)||g.F(h,4)||(p=4,g.F(h,1)&&g.F(h,8)&&(p|=1));break;case "playing":J=p;p=(p|8)&-1093;J&4?(p|=1,kx(Z,y,!0)):b7(Z,y.getCurrentTime())&&(p&=-2);g.F(h,1)&&kx(Z,y)&&(p|=1);break;case "seeking":p|=16;g.F(h,8)&&(p|=1);p&=-3;break;case "seeked":p&=-17;kx(Z,y,!0);break;case "waiting":g.F(h,2)||(p|=1);kx(Z,y);break;case "timeupdate":J=g.F(h,16),R=
g.F(h,4),(g.F(h,8)||J)&&!R&&b7(Z,y.getCurrentTime())&&(p=8),kx(Z,y)&&(p|=1)}}Z=p;p=null;Z&128&&(p=u.target,y=bz(p),J=1,y?(y==="capability.changed"&&(J=2),R="GENERIC_WITHOUT_LINK",O=p.IV(),O.mediaElem="1",/AUDIO_RENDERER/.test(p.KB())&&(R="HTML5_AUDIO_RENDERER_ERROR"),p={errorCode:y,errorMessage:g.b5[R]||"",yU:R,SB:QE(O),Mc:J,cpn:h.Ad?h.Ad.cpn:""}):p=null,p&&(p.cpn=L));h=gM(h,Z,p)}!g.F(this.playerState,1)&&g.F(h,1)&&gjw(this,"evt"+u.type);this.gf(h)}}};
g.K.sPI=function(u){u=u.G.availability==="available";u!==this.uH&&(this.uH=u,this.publish("airplayavailabilitychange"))};
g.K.L_i=function(){var u=(0,g.vC)(),h=this.mediaElement.kJ();this.IH("airplay",{ia:h});!h&&!isNaN(this.eR)&&u-this.eR<2E3||(this.eR=u,h!==this.kJ()&&(u=this.visibility,u.G!==h&&(u.G=h,u.ut()),this.IH("airplay",{rbld:h}),this.rB()),this.publish("airplayactivechange"))};
g.K.AR=function(u){if(this.nI){var h=this.nI,L=h.B,Z=h.getCurrentTime(),y=Date.now()-L.Y;L.Y=NaN;L.IH("sdai",{adfetchdone:u,d:y});u&&!isNaN(L.V)&&L.N!==3&&Y2(L.nI,Z,L.V,L.T);L.policy.T?L.X=NaN:L.B=NaN;qb(L,4,L.N===3?"adfps":"adf");jL(h)}};
g.K.ZF=function(){g.PS(this.PN);this.s3.stop();this.videoData.XB=!0;this.xI.Wp=!0;this.xI.iP=0;var u=this.Ev;if(u.videoData.N){var h=u.z7.T,L=u.videoData.N.QA;h.N.has(L)&&(h.N.delete(L),WW(h))}u.G.stop();this.NH();g.F(this.playerState,8)&&this.gf(ju(this.playerState,65));this.zO=!1;jqi(this.WJ());g.kK(this.DH);this.publish("playbackstarted");(u=g.wn("yt.scheduler.instance.clearPriorityThreshold"))?u():ux(0,0)};
g.K.NH=function(){var u=this.pH.iF(),h={},L={};!V4("pbs",this.T3.timerName)&&vc.measure&&vc.getEntriesByName&&(vc.getEntriesByName("mark_nr")[0]?k_s("mark_nr"):k_s());u.videoId&&(h.videoId=u.videoId);u.clientPlaybackNonce&&!this.j("web_player_early_cpn")&&(h.clientPlaybackNonce=u.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(L.isPausedOnLoad=!0);L.itag=u.N?Number(u.N.itag):-1;u.Z1&&(L.preloadType=String(this.bj?2:1));h.liveStreamMode=mMu[cz(u)];h.playerInfo=L;this.T3.infoGel(h);
if(this.nI){u=this.nI.timing;window&&window.performance&&window.performance.getEntriesByName&&(u.X&&(h=window.performance.getEntriesByName(u.X),h.length&&(h=h[0],u.tick("vri",h.fetchStart),u.tick("vdns",h.domainLookupEnd),u.tick("vreq",h.requestStart),u.tick("vrc",h.responseEnd))),u.N&&(h=window.performance.getEntriesByName(u.N),h.length&&(h=h[0],u.tick("ari",h.fetchStart),u.tick("adns",h.domainLookupEnd),u.tick("areq",h.requestStart),u.tick("arc",h.responseEnd))));u=u.ticks;for(var Z in u)u.hasOwnProperty(Z)&&
this.T3.tick(Z,u[Z])}};
g.K.Ym=function(u,h,L){u=(u+(this.y4===3?.3:0))/h;h=Math.floor(u*4);h>this.y4&&(this.IH("vpq",{q:h,cpn:L||this.videoData.clientPlaybackNonce,ratio:u.toFixed(3)}),this.y4=h)};
g.K.eI=function(){this.y4=-1};
g.K.cj=function(u){var h=this;u=u===void 0?!1:u;if(this.mediaElement&&this.videoData){$ea(this.CH,this.isPlaying());var L=this.getCurrentTime();!this.nI||g.F(this.playerState,4)&&g.C3(this.videoData)||g.F(this.playerState,32)&&EX(this.videoData)||xPb(this.nI,L);this.j("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.Ym(L,this.videoData.lengthSeconds);L>5&&(this.CH.B=L);var Z=g.gN();Z?g.sM.OA(this.rq):g.x7(this.rq);var y=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!y||ab(this.videoData))&&
!g.F(this.playerState,128)){var R=function(){if(h.mediaElement&&!g.F(h.playerState,128)){h.xI.UU()&&uWn(h,"pfx");var p=h.getCurrentTime();h.j("html5_buffer_underrun_transition_fix")&&(p-=h.df());var J=WP(h.mediaElement),O=g.F(h.playerState,8),f=b7(h.PD,p),D=UwY(h.PD,p,(0,g.vC)(),J);O&&f?h.gf(ju(h.playerState,1)):O&&D?(O=h.getDuration(),f=hF(h.videoData),O&&Math.abs(O-p)<1.1?(h.IH("setended",{ct:p,bh:J,dur:O,live:f}),h.mediaElement.lm()?(h.logger.debug("seek to 0 because of looping"),h.seekTo(0,{Ek:"videoplayer_loop",
seekSource:37})):h.Lx()):(h.playerState.isBuffering()||gjw(h,"progress_fix"),h.gf(uQ(h.playerState,1)))):(O&&!f&&!D&&p>0&&(O=(Date.now()-h.Tr)/1E3,f=h.getDuration(),p>f-1&&h.IH("misspg",{t:p.toFixed(2),d:f.toFixed(2),r:O.toFixed(2),bh:J.toFixed(2)})),h.playerState.isPaused()&&h.playerState.isBuffering()&&WP(h.mediaElement)>5&&h.gf(ju(h.playerState,1)));h.cj()}};
this.mediaElement.xu().length===0?this.rq=Z?g.sM.xB(R,100):g.IJ(R,100):this.rq=Z?g.sM.xB(R,500):g.IJ(R,500)}this.videoData.VA=L;this.AM&&this.AM.u$();!u&&this.isPlaying()&&tAR(this);sXj(this.Yo,this.M3,this.yQ(),this.isBackground())&&xj(this);this.publish("progresssync",this,u);y&&ab(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}};
g.K.Yn=function(){this.LZ("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.K.V8=function(){return this.WJ().V8()};
g.K.Zy=function(){return this.nI?this.nI.Zy():Dr(this.xI.schedule,!0)};
g.K.gf=function(u){if(!g.LJ(this.playerState,u)){this.logger.debug(function(){return"Setting state "+u.toString()});
var h=new g.O_(u,this.playerState);this.playerState=u;jYw(this);var L=!this.oA.length;this.oA.push(h);var Z=this.mediaElement&&this.mediaElement.isSeeking();Z=h.oldState.state===8&&!Z;g.DK(h,1)&&Z&&g.F(this.playerState,8)&&!g.F(this.playerState,64)&&this.nI&&(d1b(this.nI),this.mediaElement&&WP(this.mediaElement)>=5&&VgL(this.Yo,this.M3)&&xj(this));(Z=g.Jl(this.xI.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.F(u,1)&&(g.F(u,8)||g.F(u,16))?this.eJ.start(Z):this.eJ.stop();(fG(h,8)<0||
g.DK(h,1024))&&this.s3.stop();!g.DK(h,8)||this.videoData.XB||g.F(h.state,1024)||this.s3.start();g.F(h.state,8)&&fG(h,16)<0&&!g.F(h.state,32)&&!g.F(h.state,2)&&this.playVideo();g.F(h.state,2)&&MP(this.videoData)&&(this.N9(this.getCurrentTime()),this.cj(!0));g.DK(h,2)&&(this.zE(!0),this.xI.UU()&&this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&EX(this.videoData)&&this.videoData.G&&(Z={minst:""+this.videoData.G.WS,cminst:""+(this.videoData.G.yF()+this.df()),maxst:""+this.videoData.G.gD,
hts:""+this.videoData.G.RH,cmaxst:""+(this.videoData.G.T1()+this.df())},this.IH("sabrSeekableBoundaries",Z)));g.DK(h,128)&&this.IQ();this.videoData.G&&this.videoData.isLivePlayback&&!this.BB&&(fG(h,8)<0?bli(this.videoData.G):g.DK(h,8)&&this.videoData.G.resume());e$1(this.CH,h);L5e(this.WJ(),h);if(L&&!this.ww())try{for(var y=g.C(this.oA),R=y.next();!R.done;R=y.next()){var p=R.value;MLY(this.lW,p);this.publish("statechange",p)}}finally{this.oA.length=0}}};
g.K.Sa=function(){this.T3.tick("qoes")};
g.K.jM=function(){this.CH.jM()};
g.K.RA=function(u,h,L,Z){a:{var y=this.Ev;Z=Z===void 0?"LICENSE":Z;L=L.substring(0,256);var R=SX(h);u==="drm.keyerror"&&this.YS&&this.YS.N.keys.length>1&&y.B<96&&(u="drm.sessionlimitexhausted",R=!1);if(R)if(y.videoData.N&&y.videoData.N.video.isHdr())vUw(y,u);else{if(y.G7.LZ(u,h,Z,L),xuL(y,{detail:L}))break a}else y.Hj(u,{detail:L});u==="drm.sessionlimitexhausted"&&(y.IH("retrydrm",{sessionLimitExhausted:1}),y.B++,ke1(y.G7))}};
g.K.a1d=function(){var u=this,h=g.Jl(this.xI.experiments,"html5_license_constraint_delay"),L=gg();h&&L?(h=new g.EM(function(){u.u7();iX(u)},h),g.V(this,h),h.start()):(this.u7(),iX(this))};
g.K.hY=function(u){this.publish("heartbeatparams",u)};
g.K.ZK=function(u){this.IH("keystatuses",eUa(u));var h="auto",L=!1;this.videoData.N&&(h=this.videoData.N.video.quality,L=this.videoData.N.video.isHdr());if(this.j("html5_drm_check_all_key_error_states")){var Z=ayi(h,L);Z=Ay(u)?$Pn(u,Z):u.B.includes(Z)}else{a:{h=ayi(h,L);for(Z in u.G)if(u.G[Z].status==="output-restricted"){var y=u.G[Z].type;if(h===""||y==="AUDIO"||h===y){Z=!0;break a}}Z=!1}Z=!Z}if(this.j("html5_enable_vp9_fairplay")){if(L)if(u.V){var R;if((R=this.YS)==null?0:Yi(R.G))if((L=this.YS)==
null)L=0;else{h=R=void 0;y=g.C(L.N.values());for(var p=y.next();!p.done;p=y.next())p=p.value,R||(R=tSb(p,"SD")),h||(h=tSb(p,"AUDIO"));L.Tz({sd:R,audio:h});L=R==="output-restricted"||h==="output-restricted"}else L=!Z;if(L){this.IH("drm",{dshdr:1});vUw(this.Ev);return}}else{this.videoData.zW||(this.videoData.zW=!0,this.IH("drm",{dphdr:1}),this.uS(!0));return}var J;if((J=this.YS)==null?0:Yi(J.G))return}else if(J=u.V&&Z,L&&!J){vUw(this.Ev);return}Z||$Pn(u,"AUDIO")&&$Pn(u,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),
u=eUa(u),this.Nb?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.j("html5_report_fatal_drm_restricted_error_killswitch")||this.LZ("drm.keyerror",2,void 0,"info."+u)):(this.Nb=!0,this.Hj(new lZ("qoe.restart",Object.assign({},{retrydrm:1},u))),xj(this),ke1(this)))};
g.K.PFB=function(){if(!this.videoData.XB&&this.mediaElement&&!this.isBackground()){var u="0";this.mediaElement.rD()>0&&WP(this.mediaElement)>=5&&this.videoData.X&&this.videoData.X.G&&(this.gf(uQ(this.playerState,1)),gjw(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),u="1");jYw(this);var h=this.videoData.X;u={restartmsg:u,mfmt:!tV(this.videoData),mdrm:!(!(h&&h.videoInfos&&h.videoInfos.length&&h.videoInfos[0].ji)||this.YS),mfmtinfo:!this.videoData.N,prerolls:this.Hm()?this.YU.join(","):
"0"};if(this.YS){h=this.YS;if(h.N.size<=0){var L="ns;";h.Y||(L+="nr;");h=L+="ql."+h.X.length}else h=eUa(h.N.values().next().value),h=QE(h);u.drmp=h}var Z;Object.assign(u,((Z=this.nI)==null?void 0:Z.IV())||{});var y;Object.assign(u,((y=this.mediaElement)==null?void 0:y.IV())||{});this.WJ().Hj("qoe.start15s",QE(u));this.publish("loadsofttimeout")}};
g.K.N9=function(u){this.videoData.lengthSeconds!==u&&(this.videoData.lengthSeconds=u,iX(this))};
g.K.zE=function(u,h){var L=this;u=u===void 0?!1:u;if(!this.hX)if(V4("att_s","player_att")||sh("att_s",void 0,"player_att"),this.j("use_rta_for_player"))(function(){var y,R,p,J;return g.G(function(O){switch(O.G){case 1:if(!(y=u)){O.KI(2);break}return g.N(O,g.q2R(),3);case 3:y=!O.N;case 2:if(y)return O.return();g.Qn(O,4);R=pra(L.WJ());if(!R)throw Error();p={};return g.N(O,g.von((p.cpn=L.videoData.clientPlaybackNonce,p.encryptedVideoId=L.videoData.videoId||"",p),3E4),6);case 6:J=O.N;if(L.hX)throw Error();
if(!J.challenge)throw g.G3(Error("Not sending attestation ping; no attestation challenge string")),Error();L.hX=!0;var f=[J.challenge];J.error?f.push("r1c="+J.error):J.webResponse&&f.push("r1a="+J.webResponse);var D;((D=J.adblockReporting)==null?void 0:D.reportingStatus)!==void 0&&f.push("r6a="+J.adblockReporting.reportingStatus);var c;((c=J.adblockReporting)==null?void 0:c.broadSpectrumDetectionResult)!==void 0&&f.push("r6b="+J.adblockReporting.broadSpectrumDetectionResult);R(f.join("&"));sh("att_f",
void 0,"player_att");g.Sa(O,0);break;case 4:g.Xf(O),sh("att_e",void 0,"player_att"),g.i1(O)}})})().then(function(){h==null||h()});
else{var Z=new g.Qfw(this.videoData);if("c1a"in Z.w7&&!g.X9.isInitialized()){sh("att_wb",void 0,"player_att");this.Kc===2&&Math.random()<.01&&g.G3(Error("Botguard not available after 2 attempts"));if(u)return;if(this.Kc<5){g.kK(this.O7);this.Kc++;return}}(Z=g.lFn(Z))?(sh("att_f",void 0,"player_att"),R$R(this.WJ(),Z),this.hX=!0):sh("att_e",void 0,"player_att")}};
g.K.Yw=function(u){u=u===void 0?!1:u;if(hF(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.o8()||g.C3(this.videoData)))u=this.getCurrentTime();else if(g.dC(this.videoData)&&this.AM){u=this.AM;var h=this.getCurrentTime();u=(u=ytf(u,h*1E3))?(u.W7()-u.y$())/1E3:0}else u=this.T1(u);return u};
g.K.zZ=function(){return g.dC(this.videoData)?this.videoData.yF():this.yF()};
g.K.T1=function(u){return this.CH.T1(u===void 0?!1:u)};
g.K.yF=function(){return this.CH.yF()};
g.K.df=function(){return this.CH?this.CH.df():0};
g.K.getStreamTimeOffset=function(){return this.CH?this.CH.getStreamTimeOffset():0};
g.K.VR=function(){var u=0;this.xI.j("web_player_ss_media_time_offset")&&(u=this.getStreamTimeOffset()===0?this.df():this.getStreamTimeOffset());return u};
g.K.setPlaybackRate=function(u){var h;this.playbackRate!==u&&Uuf(this.Yo,(h=this.videoData.X)==null?void 0:h.videoInfos)&&(this.playbackRate=u,xj(this));this.playbackRate=u;this.mediaElement&&this.mediaElement.setPlaybackRate(u)};
g.K.getPlaybackRate=function(){return this.playbackRate};
g.K.getPlaybackQuality=function(){var u="unknown";if(this.videoData.N&&(u=this.videoData.N.video.quality,u==="auto"&&this.mediaElement)){var h=this.Iq();h&&h.videoHeight>0&&(u=HX(h.videoWidth,h.videoHeight))}return u};
g.K.isHdr=function(){return!!(this.videoData.N&&this.videoData.N.video&&this.videoData.N.video.isHdr())};
g.K.Pp=function(){this.WJ().Pp()};
g.K.sendVideoStatsEngageEvent=function(u,h){var L=this.WJ();L.G?(L=d8(L.G,"engage"),L.RH=u,L.send(h)):h&&h()};
g.K.mp=function(u){return this.WJ().mp(u)};
g.K.isAtLiveHead=function(u,h){h=h===void 0?!1:h;return hF(this.videoData)&&(this.O_||h)?this.CH.isAtLiveHead(u):!1};
g.K.Ze=function(){var u=this.T1(),h=this.getCurrentTime(),L;(L=!hF(this.videoData))||(L=this.CH,L=!(L.G&&L.G.X));return L||this.o8()||isNaN(u)||isNaN(h)?0:Math.max(0,u-h)};
g.K.PR=function(u){(this.O_=u)||this.s3.stop();this.videoData.G&&(u?this.videoData.G.resume():bli(this.videoData.G));if(this.nI){var h=this.videoData.j("html5_disable_preload_for_ssdai_with_preroll")&&this.e3()&&this.videoData.isLivePlayback;u&&!h?this.nI.resume():v_(this,!0)}g.F(this.playerState,2)||u?g.F(this.playerState,512)&&u&&this.gf(ju(this.playerState,512)):this.gf(uQ(this.playerState,512));h=this.WJ();h.qoe&&(h=h.qoe,g.YR(h,g.Xa(h.provider),"stream",[u?"A":"I"]))};
g.K.Db=function(u){u={n:u.name,m:u.message};this.WJ().Hj("player.exception",QE(u))};
g.K.tS=LV(25);g.K.MU=LV(52);g.K.Gg=function(u){this.WJ().Gg(u)};
g.K.cV=function(u){this.WJ().cV(u)};
g.K.jp=function(u){this.WJ().jp(u)};
g.K.R4=LV(30);g.K.t3=LV(35);g.K.Es=function(u){this.WJ().Es(u)};
g.K.oL=function(){this.IH("hidden",{},!0)};
g.K.Q8=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
g.K.e8=function(){return this.nI?this.nI.e8():!0};
g.K.setLoop=function(u){this.loop=u;this.mediaElement&&!g.SM(this.xI)&&this.mediaElement.setLoop(u);this.nI&&this.j("html5_loop_skip_set_end_of_stream")&&(u?this.nI.policy.Ca=!0:VGf(this.nI))};
g.K.lm=function(){return this.mediaElement&&!g.SM(this.xI)?this.mediaElement.lm():this.loop};
g.K.Ga=function(u){this.IH("timestamp",{o:u.toString()});this.CH.Ga(u)};
g.K.uh=function(u){this.T3.tick(u)};
g.K.wO=function(u){return this.T3.wO(u)};
g.K.Xa=function(u){this.T3.Xa(u)};
g.K.IH=function(u,h,L){L=L===void 0?!1:L;this.WJ().IH(u,h,L)};
g.K.wq=function(u,h,L){L=L===void 0?!1:L;this.WJ().IH(u,h,L)};
g.K.Hj=function(u){this.WJ().Hj(u.errorCode,QE(u.details));u=u.errorCode;if(this.videoData.isLivePlayback&&(u==="qoe.longrebuffer"||u==="qoe.slowseek")||u==="qoe.restart"){u=this.nI?MhR(this.nI.videoTrack):{};var h,L;this.IH("lasoe",Object.assign(this.nI?MhR(this.nI.audioTrack):{},(h=this.oH)==null?void 0:(L=h.G)==null?void 0:L.nG()));var Z,y;this.IH("lvsoe",Object.assign(u,(Z=this.oH)==null?void 0:(y=Z.N)==null?void 0:y.nG()))}};
g.K.yy=function(u,h,L){this.WJ().yy(u,h,L)};
g.K.aZ=function(u,h,L,Z,y,R,p,J){var O;if((O=this.videoData.G)!=null&&O.isLive){var f=h.playerType===2?h:u,D=u.videoData.videoId,c=h.videoData.videoId;if(D&&c){O=this.WJ();if(O.qoe){var I=O.qoe,A=u.cpn,x=h.cpn,Q=f.videoData.eq,S=I.provider.videoData.clientPlaybackNonce,v=I.provider.videoData.videoId,T=x!==S&&c!==v;S=A!==S&&D!==v;I.reportStats();I.adCpn&&I.adCpn!==A||(I.adCpn=S?A:"",I.AB=S?D:"",I.adFormat=S?Q:void 0,Hr(I,2,R?4:y?2:0,x,c,Z),I.reportStats(),I.adCpn=T?x:"",I.AB=T?c:"",I.adFormat=T?Q:
void 0,Hr(I,2,R?5:y?3:1,A,D,L),I.reportStats())}L=u.cpn;if(O.X.has(L)){if(y=O.X.get(L),sy(y,!0).send(),nT(y),L!==O.provider.videoData.clientPlaybackNonce){tE1(y);var U;(U=O.G)==null||sUe(U);O.X.delete(L)}}else O.Gh=O.provider.videoData.clientPlaybackNonce,O.Gh&&O.G&&(O.X.set(O.Gh,O.G),sy(O.G).send(),nT(O.G));U=h.cpn;f=f.videoData;Z-=this.VR();if(O.X.has(U)){Z=O.X.get(U);var z=Z.X&&isNaN(Z.T)?VD(Z):NaN;Z=$4L(Z,!1);isNaN(z)||(Z.V=z);Z.send()}else Z=K5a(O,O.provider,f,Z),O.X.set(U,Z),W2j(Z,new g.O_(uQ(new g.EF,
8),new g.EF)),nA1(Z),(z=O.G)==null||nT(z);O.Gh=U;this.j("html5_unify_csi_server_stitched_transition_logging")?aY1(u.cpn,h.cpn,this.videoData.clientPlaybackNonce,h.videoData,p,void 0,J):(z=this.videoData.clientPlaybackNonce,O=h.videoData,u=(u.cpn===z?"video":"ad")+"_to_"+(h.cpn===z?"video":"ad"),z={},O.C&&(z.cttAuthInfo={token:O.C,videoId:O.videoId}),p&&(z.startTime=p),dT(u,z),g.m1({targetVideoId:O.videoId,targetCpn:h.cpn,isSsdai:!0},u),zQ("pbs",J!=null?J:(0,g.vC)(),u))}}else h=this.logger,L$b(h.tag,
5,"SSTEvent for nonSS",h.N)};
g.K.qW=function(){var u=this.pH,h=u.DQ;u.DQ=[];return h};
g.K.Kn=function(u){this.videoData.dA=!0;this.Hj(new lZ("sabr.fallback",u));this.uS(!0)};
g.K.Dy=function(u,h){this.videoData.Oy=!0;if(h===void 0||h)this.Hj(new lZ("qoe.restart",u)),this.uS(!0);this.videoData.KZ()&&this.j("html5_reload_caption_on_ssdai_fallback")&&this.pH.EM()};
g.K.iz=function(u){this.IH("sdai",{aftimeout:u});this.Hj(new lZ("ad.fetchtimeout",{timeout:u}))};
g.K.Hs=function(u,h){this.IH("timelineerror",u);u=new lZ("dai.timelineerror",u);h?this.LZ("dai.timelineerror",1,"RETRYABLE_ERROR",QE(u.details)):this.Hj(u)};
g.K.xz=function(){return g.Xa(this.WJ().provider)};
g.K.getPlayerSize=function(){return this.Ef.getPlayerSize()};
g.K.Oe=function(){return this.Ef.Oe()};
g.K.QO=function(){return this.T3};
g.K.Gt=function(){return this.pH.Gt()};
g.K.getVolume=function(){return this.pH.getVolume()};
g.K.PS=function(){return this.pH.PS()};
g.K.isMuted=function(){return this.pH.isMuted()};
g.K.OQ=function(){return this.pH.OQ()};
g.K.ws=function(){this.BB=!0};
g.K.j=function(u){return this.xI.j(u)};
g.K.Jr=function(u,h,L,Z,y){this.IH("xvt",{m:u,g:h?1:0,tt:L?1:0,np:Z?1:0,c:y})};
g.K.AO=function(){var u;(u=this.nI)==null||u.resume()};
g.K.e3=function(){return g.E8(this.YU,"ad")};
g.K.FW=function(){var u=this.getCurrentTime(),h=u-this.df();var L=this.mediaElement?ys(this.mediaElement.R7()):0;L=Math.floor(Math.max(L-h,0))+100;var Z;if(!this.j("html5_ssdai_disable_seek_to_skip")&&((Z=this.nI)==null?0:Z.QN(h,this.T1())))return this.IH("sdai",{skipad:1,ct:h.toFixed(3),adj:0}),!0;var y;return((y=this.nI)==null?0:y.FW(h,L))?(this.IH("sdai",{skipad:1,ct:h.toFixed(3),adj:L.toFixed(3)}),EX(this.videoData)&&this.nI.seek(h+L,{seekSource:89,Ek:"videoplayer_skipServerStitchedAd"}),hcY(this.CH,
u),!0):!1};
g.K.UU=function(){return this.xI.UU()};
g.K.KE=function(){if(this.j("html5_generate_content_po_token"))return this.videoData.HY||"";this.pH.cR();return this.xI.t4||""};
g.K.Bi=function(){if(this.videoData.videoId)return this.videoData.An};
g.K.UX=function(){return this.videoData.videoId};
g.K.PP=function(){return this.pH.BV};
g.K.BK=function(){return this.zO};
g.K.XL=function(){return this.pH.XL()};
g.K.fz=function(u,h){this.CH.fz(u,h)};
g.K.Vq=function(){this.CH.Vq()};
g.K.YX=function(u,h){var L=this.j("html5_generate_content_po_token")?this.videoData:void 0;this.pH.YX(u,h,L)};
g.K.jk=function(u,h){var L;(L=this.nI)==null||L.jk(u,h)};
g.K.kL=function(){var u=this.EH();return!!u&&u.kL()};
g.K.m7=function(){return this.AM};
g.K.iQ=function(u,h){this.WJ().iQ(u,h)};
g.K.e5=function(){return this.WJ().e5()};
g.K.Gl=function(){return this.videoData.hf};
g.K.XS=function(){return this.pH.XS()};
g.K.gg=function(){return this.pH.gg(this)};
g.K.xi=function(){this.OS=!0};
g.K.SM=function(){return this.NV};
g.K.bb=function(u){var h;(h=this.nI)==null||h.bb(u)};g.P(Z8w,VA);g.P(yZf,VA);g.K=yZf.prototype;g.K.seekToChapterWithAnimation=function(u){var h=this;if(g.Rv(this.api)&&!(u<0)){var L=this.api.getVideoData(),Z=L.dD;if(Z&&u<Z.length){Z=g.C(Z);for(var y=Z.next();!y.done;y=Z.next())if(y=y.value,y.index===u){RCa(this,y.startTime,y.title);return}}this.j("web_key_moments_markers")&&(L=L.VC)&&u<L.length&&L.forEach(function(R,p){p===u&&RCa(h,R.timeRangeStartMillis,R.title)})}};
g.K.seekToTimeWithAnimation=function(u,h){g.Rv(this.api)&&RCa(this,u,h)};
g.K.setMacroMarkers=function(u,h){h={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:h}}}}}};u=u.getVideoData();u.getWatchNextResponse();u&&u.getWatchNextResponse()==null&&(zw(u,{raw_watch_next_response:h}),u.publish("dataupdated"))};
g.K.changeMarkerVisibility=function(u,h,L){var Z=this.api.getVideoData();if(Z){var y=!1;if(u)for(u=g.C(h),h=u.next();!h.done;h=u.next()){h=h.value;var R=Z.e7;if(R&&!R.includes(h))switch(L){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":KNV(h,Z)||(y=!0,R=void 0,(R=Z.e7)==null||R.push(h));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":R.length===0&&(y=!0,R=void 0,(R=Z.e7)==null||R.push(h));break;default:y=!0,R=void 0,(R=Z.e7)==null||R.push(h)}}else for(L=
g.C(h),u=L.next();!u.done;u=L.next())u=u.value,Z.visibleOnLoadKeys.includes(u)||g.gV(Z.e7,u)&&(y=!0);y&&this.api.publish("updatemarkervisibility")}};
g.K.isSameMarkerTypeVisible=function(u){var h=this.api.getVideoData();return h?KNV(u,h):!1};g.P(Te,VA);
Te.prototype.updateMetadata=function(){var u=this,h=this.api.getVideoData();if(h!=null&&h.ih()){var L=this.api.L(),Z=[],y="";if(!L.RH){var R=fhi(this);g.rp(L)&&R?(Z=Dzw(R.thumbnailDetails),R.album&&(y=fn(R.album))):Z=[{src:h.Po("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}var p;((p=this.api.getVideoData())==null?0:p.S)&&cZe(this);JZn(this);O8l(this);navigator.mediaSession.metadata=new MediaMetadata({title:h.title,artist:h.author,artwork:Z,album:y});L=h=null;g.iM(this.api)&&(h=function(){u.api.nextVideo()},
L=function(){u.api.previousVideo()});
Yj("nexttrack",h);Yj("previoustrack",L)}};
Te.prototype.Ni=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var u=g.C("nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ")),h=u.next();!h.done;h=u.next())Yj(h.value,null);var L;((L=this.api.getVideoData())==null?0:L.S)&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});VA.prototype.Ni.call(this)};g.P(oZ,VA);oZ.prototype.B=function(u){return u.compositeEmbargo!==void 0};
oZ.prototype.Ni=function(){VA.prototype.Ni.call(this);this.N.clear()};g.P(C5n,VA);g.K=C5n.prototype;g.K.queueOfflineAction=function(u,h,L,Z){var y=this,R,p;return g.G(function(J){return J.G==1?(R=n8(y.api.uP()))?g.N(J,R.Fu([u],h,L,Z),3):J.KI(2):J.G!=2&&(p=J.N,p.length)?J.return(p[0]):J.return(Promise.reject())})};
g.K.updateDownloadState=function(u,h){var L=n8(this.api.uP());return L?L.updateDownloadState(u,h):Promise.reject()};
g.K.pauseVideoDownload=function(u){var h=n8(this.api.uP());h&&h.Fd(u)};
g.K.resumeVideoDownload=function(u){var h=this,L;return g.G(function(Z){return(L=n8(h.api.uP()))?Z.return(L.JH(u)):Z.return(Promise.reject())})};
g.K.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()};
g.K.refreshAllStaleEntities=function(u){u===void 0&&(u=14400);var h=n8(this.api.uP());return h?h.refreshAllStaleEntities(u):Promise.reject()};
g.K.setUpPositionSyncInterval=function(u){var h=n8(this.api.uP());h&&h.setUpPositionSyncInterval(u)};g.P(N$,VA);N$.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}};
N$.prototype.getAvailableQualityData=function(){var u=this.api.getVideoData();if(!u)return[];var h=[],L,Z,y=(L=u.getPlayerResponse())==null?void 0:(Z=L.playabilityStatus)==null?void 0:Z.paygatedQualitiesMetadata;Z=(y==null?void 0:y.qualityDetails)||[];L=new Map;L=g.Wi(Z)&&!Array.isArray(Z)?new Map(Object.entries(Z)):new Map(Z.map(function(p){return[p.key,p.value]}));
if(Z=y==null?void 0:y.restrictedAdaptiveFormats){y=[];Z=g.C(Z);for(var R=Z.next();!R.done;R=Z.next())R=R.value,R=k6(R.mimeType,R.quality,R.itag.toString(),R.width.toString(),R.height.toString(),R.qualityLabel),y.push(R);u=g.km(u);Kk(y);Z=[];y=g.C(y);for(R=y.next();!R.done;R=y.next())R=R.value,yT(u,R,this.api.L().T)===!0&&Z.push(R);h=h.concat(M_j(Z,!1,L))}u=this.api.ZR();h=h.concat(M_j(u,!0,L));L=[];if(this.api.j("web_player_enable_premium_hbr_in_h5_api"))return h=QYl(h),i8a(h),h;u={};h=g.C(h);for(y=
h.next();!y.done;y=h.next())y=y.value,Z=y.quality,u[Z]||(y.formatId=void 0,L.push(y),u[Z]=!0);return L};var ib={},WHr=(ib["internal-error"]=-1,ib["non-recoverable-error"]=-2,ib["api-disabled-by-application"]=-3,ib["invalid-argument"]=-4,ib["token-provider-invalid"]=-5,ib);g.P(UB,VA);UB.prototype.SF=function(u){var h=this;if(SEj())if(!this.N&&this.G){qE1(this,u);try{this.G.then(function(){v_w(h,u)},function(L){Ge(L,"player_update");
h.handleError(L,u)})}catch(L){Ge(L,"player_update_catch"),this.handleError(L,u)}}else this.N?v_w(this,u):this.api.IH("pf",{m:this.N?1:0,
p:this.G?1:0})};
UB.prototype.handleError=function(u,h){g.G3(u);if(this.api.j("html5_enable_d6de4_cold_start_and_error")){var L=0;u.mediaIntegrityErrorName?L||(L=WHr[u.mediaIntegrityErrorName]):u.code&&(L=u.code());h.An={c4d:{code:L}}}};g.P(H_,g.a);H_.prototype.kI=function(u){u=u?"Exit picture-in-picture":"Picture-in-picture";this.update({"data-title-no-tooltip":u,title:u});this.api.g2()};
H_.prototype.onClick=function(){this.api.togglePictureInPicture()};g.P(rW,VA);rW.prototype.createButton=function(){var u=this;this.button=new H_(this.api);g.V(this,this.button);this.api.Hd(this.button);this.events.W(this.api,"videodatachange",function(){TIf(u)});
TIf(this)};
rW.prototype.setDocumentPictureInPicture=function(u){this.api.Ua().Q_(u);u=this.api.Wx();var h=HY1(this.api.uP());h&&(u?h.load():h.unload());this.api.publish("documentpictureinpicturechange")};g.P(YEn,VA);g.P(mK,g.a);g.K=mK.prototype;g.K.S9=function(){};
g.K.jH=function(){};
g.K.Ji=function(){return!0};
g.K.Rsa=function(){if(this.expanded){this.fI.show();var u=this.X.element.scrollWidth}else u=this.X.element.scrollWidth,this.fI.hide();this.eq=this.jd+u;g.JW(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?this.jd:this.eq)+"px";this.Sd.start()};
g.K.pD=function(){this.badge.element.style.width=(this.expanded?this.eq:this.jd)+"px";this.xl.start()};
g.K.Oj=function(){this.B&&this.D.logVisibility(this.badge.element,this.Ji());this.AB&&this.D.logVisibility(this.dismissButton.element,this.Ji()&&this.TE())};
g.K.mZ=function(u){this.XB=u;ze(this);B_(this);this.MJ()};
g.K.HrA=function(){g.JW(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.K.TE=function(){return this.RH||this.XB||!this.S};
g.K.MJ=function(){this.Ji()?this.Y.show():this.Y.hide();this.Oj()};
g.K.YM=function(){this.enabled=!1;this.MJ()};
g.K.S5=function(u){u?this.AB&&this.D.logClick(this.dismissButton.element):this.B&&this.D.logClick(this.badge.element)};
g.K.ird=function(){this.MJ()};
g.K.x1d=function(u){this.Ca=u===1;this.MJ();g.JW(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.K.Fzw=function(){g.JW(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.D.isFullscreen());this.MJ()};g.P(dW,g.OD);dW.prototype.Ds=function(){this.publish("size-change")};
dW.prototype.focus=function(){this.content.focus()};
dW.prototype.zi=function(){this.publish("back")};g.P(g.Vy,dW);g.K=g.Vy.prototype;g.K.aV=function(u,h){if(h===void 0?0:h)this.items.push(u),this.menuItems.element.appendChild(u.element);else{h=g.Kw(this.items,u,NIn);if(h>=0)return;h=~h;g.Rp(this.items,h,0,u);hf(this.menuItems.element,u.element,h)}u.subscribe("size-change",this.Wg,this);this.menuItems.publish("size-change")};
g.K.Jd=function(u){u.unsubscribe("size-change",this.Wg,this);this.ww()||(g.gV(this.items,u),this.menuItems.element.removeChild(u.element),this.menuItems.publish("size-change"))};
g.K.Wg=function(){this.menuItems.publish("size-change")};
g.K.focus=function(){for(var u=0,h=0;h<this.items.length;h++){var L=this.items[h].element;if(L.getAttribute("role")==="menuitemradio"){if(L.getAttribute("aria-checked")==="true"){u=h;break}}else break}this.items[u].focus()};
g.K.BS=function(){return this.items.length};g.P(g.sB,g.NT);g.K=g.sB.prototype;g.K.show=function(){g.NT.prototype.show.call(this);this.Jm()};
g.K.hide=function(){g.NT.prototype.hide.call(this);this.G.length>1&&g.eA(this)};
g.K.Jm=function(){H8n(this);this.BJ&&(Uz1(this),g.iL(this.element,this.size))};
g.K.gX=function(){var u=this.G.pop();GlV(this,u,this.G[this.G.length-1],!0)};
g.K.SQ=function(u){if(!u.defaultPrevented)switch(u.keyCode){case 27:this.aP();u.preventDefault();break;case 37:this.G.length>1&&this.gX();u.preventDefault();break;case 39:u.preventDefault()}};
g.K.focus=function(){this.G.length&&this.G[this.G.length-1].focus()};
g.K.Ni=function(){g.NT.prototype.Ni.call(this);this.C&&this.C.dispose();this.V&&this.V.dispose()};g.P(aZ,g.sB);aZ.prototype.open=function(u,h){this.initialize(u.items)&&this.VF(h,!!h)};
aZ.prototype.initialize=function(u){g.nK(this.zM);if(u===void 0||u.length===0)return!1;var h=u.length;u=g.C(u);for(var L=u.next();!L.done;L=u.next())this.aV(L.value,h--);return!0};
aZ.prototype.aV=function(u,h){u.menuNavigationItemRenderer?zCj(this,u.menuNavigationItemRenderer,h):u.menuServiceItemRenderer&&mzY(this,u.menuServiceItemRenderer,h)};g.P(t1,mK);g.K=t1.prototype;g.K.S9=function(u){u.target!==this.dismissButton.element&&u.target!==this.overflowButton.element&&(this.S5(),this.onClickCommand&&this.D.hB("innertubeCommand",this.onClickCommand))};
g.K.jH=function(){this.enabled=!1;this.Y.hide()};
g.K.Ji=function(){return!!this.G&&this.enabled};
g.K.onVideoDataChange=function(u,h){this.YH(h);if(this.G){this.eW();a:if(!this.isCounterfactual){var L,Z,y;this.banner.update({title:(L=this.G)==null?void 0:L.title,subtitle:(Z=this.G)==null?void 0:Z.subtitle,metadata:(y=this.G)==null?void 0:y.metadataText});var R;this.onClickCommand=g.n((R=this.G)==null?void 0:R.onTap,rD);var p;if(u=g.n((p=this.G)==null?void 0:p.onOverflow,rD))this.V=g.n(u,$77);var J;if((J=this.G)==null?0:J.thumbnailImage){var O,f;p=((O=this.G)==null?void 0:(f=O.thumbnailImage)==
null?void 0:f.sources)||[];if(p.length===0)break a;this.thumbnailImage.update({url:p[0].url})}else{var D;if((D=this.G)==null?0:D.thumbnailIconName){var c;this.thumbnailIcon.update({icon:(c=this.G)==null?void 0:c.thumbnailIconName})}}var I;this.shouldShowOverflowButton=!((I=this.G)==null||!I.shouldShowOverflowButton);var A;this.shouldHideDismissButton=!((A=this.G)==null||!A.shouldHideDismissButton)}var x;this.banner.element.setAttribute("aria-label",((x=this.G)==null?void 0:x.a11yLabel)||"");var Q;
this.VA=(Q=this.G)==null?void 0:Q.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;V_b(this)}};
g.K.D1I=function(){this.isVisible=!0;V_b(this)};
g.K.OHg=function(){this.isVisible=!1;V_b(this)};
g.K.Oj=function(){mK.prototype.Oj.call(this);this.N&&this.D.logVisibility(this.banner.element,this.isVisible)};
g.K.S5=function(){mK.prototype.S5.call(this,!1);this.N&&this.D.logClick(this.banner.element)};
g.K.qs=function(u){this.C||(this.C=new aZ(this.D),g.V(this,this.C));var h,L;if((h=this.V)==null?0:(L=h.menu)==null?0:L.menuRenderer)this.C.open(this.V.menu.menuRenderer,u.target),u.preventDefault()};
g.K.YH=function(){};
g.K.eW=function(){};
g.K.Ni=function(){this.D.qm("suggested_action_view_model");mK.prototype.Ni.call(this)};g.P(W_,t1);
W_.prototype.YH=function(u){var h,L,Z;this.productUpsellSuggestedActionViewModel=g.n((h=u.getWatchNextResponse())==null?void 0:(L=h.playerOverlays)==null?void 0:(Z=L.playerOverlayRenderer)==null?void 0:Z.suggestedActionViewModel,J8K);var y;if((y=this.productUpsellSuggestedActionViewModel)==null?0:y.content){var R;this.G=g.n((R=this.productUpsellSuggestedActionViewModel)==null?void 0:R.content,w1r)}var p,J;if(this.N=!!((p=this.productUpsellSuggestedActionViewModel)==null?0:(J=p.loggingDirectives)==null?
0:J.trackingParams)){var O,f;this.D.setTrackingParams(this.banner.element,((O=this.productUpsellSuggestedActionViewModel)==null?void 0:(f=O.loggingDirectives)==null?void 0:f.trackingParams)||null)}var D;this.isCounterfactual=!((D=this.productUpsellSuggestedActionViewModel)==null||!D.isCounterfactualServing)};
W_.prototype.eW=function(){var u=[],h,L=g.C(((h=this.productUpsellSuggestedActionViewModel)==null?void 0:h.ranges)||[]);for(h=L.next();!h.done;h=L.next()){var Z=h.value;Z&&(h=Number(Z.startTimeMilliseconds),Z=Number(Z.endTimeMilliseconds),isNaN(h)||isNaN(Z)||u.push(new g.uW(h,Z,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.D.Rl(u)};g.P(n_n,VA);g.P(F5,VA);F5.prototype.onVideoDataChange=function(u,h){var L=this;if(!Vq(h)&&(u==="newdata"&&wyf(this),this.N&&u==="dataloaded")){var Z;Rd(b9(this.api.L(),(Z=this.api.getVideoData())==null?void 0:g.mn(Z)),function(y){var R=WNa(y);R&&(R=eCa(L,L.G||R))&&L.api.setAudioTrack(R,!0);L.X&&(L.X=!1,b8Y(L,y))})}};
F5.prototype.L0=function(){var u=this;if(g.SM(this.api.L())){var h,L=g.Fp(this.api.L(),(h=this.api.getVideoData())==null?void 0:g.mn(h));return Rd(h_(L),function(Z){var y=Yq();ov(y,Z);return u.api.L0(y)})}return h_(this.api.L0())};g.P(g.EB,g.Bf);g.K=g.EB.prototype;g.K.open=function(){g.wW(this.Ka,this.N)};
g.K.o4=function(u){E_a(this);var h=this.options[u];h&&(h.element.setAttribute("aria-checked","true"),this.QF(this.Ov(u)),this.X=u)};
g.K.FU=function(u){g.nK(this.N);for(var h={},L=!1,Z=0;Z<u.length;Z++){var y=u[Z],R=this.options[y],p=y===this.X;p&&(L=!0);R&&R.priority===-Z?(g.r7(this.options[y],this.Ov(y,!0)),delete this.options[y]):R=this.t7(y,-Z,p);h[y]=R;this.N.aV(R,!0)}L||(this.X=null);u=g.C(Object.keys(this.options));for(L=u.next();!L.done;L=u.next())this.options[L.value].dispose();this.options=h};
g.K.t7=function(u,h,L,Z){var y=this;L={K:"div",CI:["ytp-menuitem",Z?"ytp-menuitem-with-footer":""],J:{tabindex:"0",role:"menuitemradio","aria-checked":L?"true":"false"},Z:[{K:"div",CI:["ytp-menuitem-label"],dw:"{{label}}"}]};Z&&(Z={K:"div",U:"ytp-menuitem-footer",Z:[Z]},L.Z?L.Z.push(Z):L.Z=[Z]);h=new g.Bf(L,h,this.Ov(u,!0));h.listen("click",function(){y.sR(u)});
return h};
g.K.enable=function(u){this.S?u||(this.S=!1,this.Vz(!1)):u&&(this.S=!0,this.Vz(!0))};
g.K.Vz=function(u){u?this.Ka.aV(this):this.Ka.Jd(this)};
g.K.FE=function(u){this.publish("select",u)};
g.K.sR=function(u){this.FE(u)};
g.K.Ov=function(u){return u.toString()};
g.K.Zn=function(u){u.defaultPrevented||u.keyCode!==39||(this.open(),u.preventDefault())};
g.K.Ni=function(){this.S&&this.Ka.Jd(this);g.Bf.prototype.Ni.call(this);for(var u=g.C(Object.keys(this.options)),h=u.next();!h.done;h=u.next())this.options[h.value].dispose()};g.P(klY,g.EB);g.K=klY.prototype;g.K.kI=function(){var u=this.wM("Off");this.D.getPresentingPlayerType()!==2?(g_f(this),this.o4(this.C),this.G&&(this.C===u?this.G="":this.setSleepTimerTimeLeft(this.G)),this.V&&this.setVideoTimeLeft(this.V),this.enable(!0)):(this.FU([]),this.enable(!1))};
g.K.FE=function(u){uJn(this,u);this.Ka.gX()};
g.K.wM=function(u){switch(u){case "Off":return"Off";case "End of video":return"End of video";case "End of playlist":return"End of playlist";default:return(u.toString()+" Minutes").toLowerCase()}};
g.K.onVideoDataChange=function(u){u==="dataloaded"&&g_f(this)};
g.K.HWI=function(u){this.D.logVisibility(this.element,u)};
g.K.onClick=function(){this.D.logClick(this.element)};
g.K.resetSleepTimerMenuSettings=function(){uJn(this,this.wM("Off"))};
g.K.setSleepTimerTimeLeft=function(u){this.G=u;this.QF(u)};
g.K.setVideoTimeLeft=function(u){this.V=u;this.B.QF(u)};g.P(kj,VA);kj.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()};
kj.prototype.setSleepTimerTimeLeft=function(u){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(u)};
kj.prototype.setVideoTimeLeft=function(u){this.menuItem&&this.menuItem.setVideoTimeLeft(u)};g.P(je1,VA);g.P(g.u5,g.yV);g.K=g.u5.prototype;g.K.W=function(u,h){this.B.W(this.S,u,h,void 0,!this.G)};
g.K.cancel=function(){this.X&&(this.X=!1,this.publish("dragend",0,0,null));this.N&&(this.N=!1,this.publish("hoverend",0,0,null),j_(this),gW(this))};
g.K.tR=function(u){j_(this);this.W(hZ("move"),this.QS);this.W(hZ("out"),this.o_);this.W("touchstart",this.ip);this.G&&this.W(hZ("down"),this.L8);var h=u.target;u=new g.O6(u.pageX,u.pageY);this.N=!0;this.publish("hoverstart",u.x,u.y,h);this.publish("hovermove",u.x,u.y,h)};
g.K.QS=function(u){var h=u.target;u=new g.O6(u.pageX,u.pageY);if(this.T){var L=this.T;this.T=null;if(L.relatedTarget===h&&fX(new g.O6(L.pageX,L.pageY),u))return}this.publish("hovermove",u.x,u.y,h)};
g.K.o_=function(u){var h=new g.O6(u.pageX,u.pageY),L=u.relatedTarget;try{if(L&&g.ZO(this.target,L)){this.T=u;this.publish("hovermove",h.x,h.y,L);return}}catch(Z){}j_(this);gW(this);this.N=!1;this.publish("hoverend",h.x,h.y,L)};
g.K.a3g=function(u){this.tR(u);this.L8(u)};
g.K.L8=function(u){if(typeof u.button!=="number"||u.button===0){j_(this);this.B.W(L8(u.target),hZ("move"),this.cMI);this.B.W(L8(u.target),hZ("up"),this.Jc);var h=u.target;if(g.WM)this.W("dragstart",this.Or);else if(u.preventDefault(),(g.eJ||ff)&&h)a:{for(var L=h;L;){if(O9n(L)||L.getAttribute("tabindex")==="-1"){L.focus();break a}L=L.parentElement}L8(h).activeElement.blur()}this.X=!0;u=new g.O6(u.pageX,u.pageY);this.publish("dragstart",u.x,u.y,h);this.publish("dragmove",u.x,u.y,h)}};
g.K.Or=function(u){u.preventDefault()};
g.K.cMI=function(u){var h=u.target;h===L8(u.target)&&(h=null);u=new g.O6(u.pageX,u.pageY);this.publish("hovermove",u.x,u.y,h);this.publish("dragmove",u.x,u.y,h)};
g.K.Jc=function(u){j_(this);this.X=!1;var h=St(u),L=u.target;u=new g.O6(u.pageX,u.pageY);h&&g.ZO(this.target,h)?(this.W(hZ("move"),this.QS),this.W(hZ("out"),this.o_),this.W(hZ("down"),this.L8),this.W("touchstart",this.ip),this.publish("dragend",u.x,u.y,L)):(gW(this),this.N=!1,this.publish("dragend",u.x,u.y,L),this.publish("hoverend",u.x,u.y,L))};
g.K.ip=function(u){var h=u.changedTouches[0];h&&(j_(this),this.Y||(this.W("touchmove",this.cda),this.W("touchend",this.xg),this.W("touchcancel",this.xg),this.C=h.identifier,u=u.target,this.N||(this.N=!0,this.publish("hoverstart",h.pageX,h.pageY,u)),this.publish("hovermove",h.pageX,h.pageY,u),this.G&&(this.X=!0,this.publish("dragstart",h.pageX,h.pageY,u),this.publish("dragmove",h.pageX,h.pageY,u))))};
g.K.cda=function(u){var h=hna(this,u);h&&(this.G&&u.preventDefault(),u=u.target,this.publish("hovermove",h.pageX,h.pageY,u),this.G&&this.publish("dragmove",h.pageX,h.pageY,u))};
g.K.xg=function(u){var h=hna(this,u);if(h){j_(this);gW(this);this.N=!1;var L=u.target;this.G&&(this.V||u.preventDefault(),this.X=!1,this.publish("dragend",h.pageX,h.pageY,L));this.publish("hoverend",h.pageX,h.pageY,L)}};
g.K.Ni=function(){this.G&&(g.WM&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");j_(this);g.yV.prototype.Ni.call(this)};
var LDi=!1;g.P(Zsn,g.a);Zsn.prototype.Fk=function(){g.Oz(this.element,"display","none");this.D.logVisibility(this.G,!1)};g.P(yh,VA);yh.prototype.RH=function(u,h){this.ww()||(this.S=[u,h],this.G.subscribe("dragmove",this.C,this),this.G.subscribe("dragend",this.T,this),this.X||g.kK(this.delay))};
yh.prototype.DI=function(){if(this.B){this.X=!0;this.gw=this.api.getPlaybackRate();this.T7=this.api.getPlayerStateObject().isPaused();var u=this.speedmasterUserEdu;g.Oz(u.element,"display","");u.D.logVisibility(u.G,!0);this.api.setPlaybackRate(this.vX);this.api.hideControls();this.api.playVideo();this.V&&(this.V.hg=!0);this.AB&&(this.AB.LG=!0)}};
yh.prototype.C=function(u,h){if(!this.X){u=[u,h];var L=this.S;L&&u&&L.length===2&&u.length===2?(h=Math.abs(L[0]-u[0]),L=Math.abs(L[1]-u[1]),h=Math.sqrt(h*h+L*L)):h=-1;h<this.XB?this.S=u:RY(this)}};
yh.prototype.T=function(){RY(this)};g.P(Rns,VA);Rns.prototype.onVideoDataChange=function(u){u==="newdata"&&this.api.uP().createSubtitlesModuleIfNeeded()};g.P(p8,g.Uv);p8.prototype.preventDefault=function(){g.Uv.prototype.preventDefault.call(this);this.G&&this.G.preventDefault()};
p8.prototype.stopPropagation=function(){g.Uv.prototype.stopPropagation.call(this);this.G&&this.G.stopPropagation()};g.P(g.K8,$x);g.K=g.K8.prototype;g.K.i$=function(){return!0};
g.K.isView=function(){return!1};
g.K.x8=function(){return!1};
g.K.lP=function(){return this.G};
g.K.D7=function(){return this.G.src};
g.K.D_=function(u){var h=this.getPlaybackRate();this.G.src=u;this.setPlaybackRate(h)};
g.K.mY=function(){this.G.removeAttribute("src")};
g.K.getPlaybackRate=function(){try{return this.G.playbackRate>=0?this.G.playbackRate:1}catch(u){return 1}};
g.K.setPlaybackRate=function(u){this.getPlaybackRate()!==u&&(this.G.playbackRate=u);return u};
g.K.lm=function(){return this.G.loop};
g.K.setLoop=function(u){this.G.loop=u};
g.K.canPlayType=function(u,h){return this.G.canPlayType(u,h)};
g.K.isPaused=function(){return this.G.paused};
g.K.isSeeking=function(){return this.G.seeking};
g.K.isEnded=function(){return this.G.ended};
g.K.dR=function(){return this.G.muted};
g.K.v5=function(u){NK();this.G.muted=u};
g.K.xu=function(){return this.G.played||uz([],[])};
g.K.R7=function(){try{var u=this.G.buffered}catch(h){}return u||uz([],[])};
g.K.EQ=function(){return this.G.seekable||uz([],[])};
g.K.EV=function(){var u=this.G;return u.getStartDate?u.getStartDate():null};
g.K.getCurrentTime=function(){return this.G.currentTime};
g.K.setCurrentTime=function(u){this.G.currentTime=u};
g.K.getDuration=function(){return this.G.duration};
g.K.load=function(){var u=this.G.playbackRate;try{this.G.load()}catch(h){}this.G.playbackRate=u};
g.K.pause=function(){this.G.pause()};
g.K.play=function(){var u=this.G.play();if(!u||!u.then)return null;u.then(void 0,function(){});
return u};
g.K.rD=function(){return this.G.readyState};
g.K.MK=function(){return this.G.networkState};
g.K.xW=function(){return this.G.error?this.G.error.code:null};
g.K.KB=function(){return this.G.error?this.G.error.message:""};
g.K.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.G instanceof window.HTMLVideoElement&&this.G.getVideoPlaybackQuality)return this.G.getVideoPlaybackQuality();if(this.G){var u=this.G,h=u.webkitDroppedFrameCount;if(u=u.webkitDecodedFrameCount)return{droppedVideoFrames:h||0,totalVideoFrames:u}}return{}};
g.K.kJ=function(){return!!this.G.webkitCurrentPlaybackTargetIsWireless};
g.K.ue=function(){return!!this.G.webkitShowPlaybackTargetPicker()};
g.K.togglePictureInPicture=function(){var u=this.G,h=window.document;window.document.pictureInPictureEnabled?this.G!==h.pictureInPictureElement?u.requestPictureInPicture():h.exitPictureInPicture():on()&&u.webkitSetPresentationMode(u.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")};
g.K.mu=function(){var u=this.G;return new g.O6(u.offsetLeft,u.offsetTop)};
g.K.getSize=function(){return g.Qz(this.G)};
g.K.setSize=function(u){g.iL(this.G,u)};
g.K.getVolume=function(){return this.G.volume};
g.K.setVolume=function(u){NK();this.G.volume=u};
g.K.Tu=function(u){this.T[u]||(this.G.addEventListener(u,this.listener),this.T[u]=this.listener)};
g.K.setAttribute=function(u,h){this.G.setAttribute(u,h)};
g.K.removeAttribute=function(u){this.G.removeAttribute(u)};
g.K.hasAttribute=function(u){return this.G.hasAttribute(u)};
g.K.CT=LV(57);g.K.pO=LV(59);g.K.oO=LV(61);g.K.eG=LV(63);g.K.Xl=function(){return PD(this.G)};
g.K.wW=function(u){g.yN(this.G,u)};
g.K.tL=function(u){return g.DE(this.G,u)};
g.K.dg=function(){return g.ZO(document.body,this.G)};
g.K.audioTracks=function(){var u=this.G;if("audioTracks"in u)return u.audioTracks};
g.K.Ni=function(){for(var u=g.C(Object.keys(this.T)),h=u.next();!h.done;h=u.next())h=h.value,this.G.removeEventListener(h,this.T[h]);$x.prototype.Ni.call(this)};
g.K.vz=function(u){this.G.disableRemotePlayback=u};g.P(JZ,g.a);g.P(f8,g.a);f8.prototype.show=function(){g.a.prototype.show.call(this);this.kI();this.pI.j("html5_enable_moving_s4n_window")&&g.SM(this.pI.L())&&this.S()};
f8.prototype.hide=function(){g.a.prototype.hide.call(this);this.delay.stop();this.B.stop()};
f8.prototype.kI=function(){var u=(0,g.vC)(),h=KDw(this.pI);OE(this.G,h.bandwidth_samples);OE(this.V,h.network_activity_samples);OE(this.X,h.live_latency_samples);OE(this.N,h.buffer_health_samples);var L={};h=g.C(Object.entries(h));for(var Z=h.next();!Z.done;Z=h.next()){var y=g.C(Z.value);Z=y.next().value;y=y.next().value;this.Y[Z]!==y&&(L[Z]=" "+String(y));this.Y[Z]=y}this.update(L);u=(0,g.vC)()-u>25?5E3:500;this.delay.start(u)};
f8.prototype.S=function(){this.C?(this.position+=1,this.position>15&&(this.C=!1)):(--this.position,this.position<=0&&(this.C=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.B.start(2E4)};g.P(fYf,VA);g.P(Dh,g.m);Dh.prototype.G=function(){var u=(0,g.vC)()-this.startTime;u=u<this.duration?u/this.duration:1;this.N(QN(FH8,u));u<1&&this.delay.start()};
var FH8=new i6(0,0,.4,0,.2,1,1,1),PlY=/[0-9.-]+|[^0-9.-]+/g;g.P(cy,g.a);cy.prototype.onClick=function(){var u=this.api.app;var h=u.j("web_log_theater_mode_visibility")?!u.sA():!u.rg;u.pI.hB("SIZE_CLICKED",h);this.api.logClick(this.element)};
cy.prototype.kI=function(){this.Ay(this.api.K1()&&!this.api.isFullscreen()&&this.api.getPresentingPlayerType()!==3);if(this.BJ){var u=this.api.sA();this.sA!==u&&this.c5(u)}this.api.logVisibility(this.element,this.BJ)};
cy.prototype.c5=function(u){var h=u?{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,J:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,J:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};this.sA==null?this.updateValue("icon",h):xSa(this.transition,this.element,
h);this.sA=u;h=g.A7(this.api,"Default view","t");var L=g.A7(this.api,"Theater mode","t");this.updateValue("title",u?h:L);this.update({"data-title-no-tooltip":u?"Default view":"Theater mode"});this.api.g2()};g.P(Clw,VA);g.P(QeL,VA);g.K=QeL.prototype;g.K.onVideoDataChange=function(u){this.G2();this.videoId=u.videoId;this.N=this.G=void 0;this.timelyActions=isi(u);lYf(this);this.clearTimeout();this.Rl()};
g.K.TN=function(u){var h=u.oldState,L=u.state,Z=L.seekSource;!g.F(h,16)&&g.F(L,16)?this.Je(Z!=null?Z:void 0):g.F(h,16)&&!g.F(L,16)&&this.Zb();u=u.state;u=!u.isCued()&&!g.F(u,1024);this.X.Ay(u)};
g.K.Rl=function(){var u=this.Ue();u&&this.api.Rl(u)};
g.K.G2=function(){this.api.qm("timelyAction",1);if(this.G!==void 0)this.onCueRangeExit(this.G)};
g.K.Ue=function(){if(this.timelyActions){for(var u=[],h=g.C(this.timelyActions),L=h.next();!L.done;L=h.next())L=L.value,L=L.startTimeMilliseconds!=null&&L.endTimeMilliseconds!=null&&L.cueRangeId!=null?new g.uW(Number(L.startTimeMilliseconds),Number(L.endTimeMilliseconds),{id:L.cueRangeId,namespace:"timelyAction"}):void 0,L&&u.push(L);return u}};
g.K.onCueRangeEnter=function(u){var h=IY(this,u);h&&this.B[u]!==void 0&&(h.maxShowCount===void 0||(h==null?void 0:h.maxShowCount)>this.B[u])&&(this.G=u,XVw(this))};
g.K.onCueRangeExit=function(u){var h=SIi(this,u);h&&this.G===u&&this.api.hB("innertubeCommand",h);this.clearTimeout();this.G=void 0};
g.K.onTimeout=function(u){this.G!==void 0&&(u==null?void 0:u.cueRangeId)===this.G&&(u=SIi(this,this.G))&&this.api.hB("innertubeCommand",u)};
g.K.Je=function(u){this.N=u};
g.K.Zb=function(){XVw(this);this.N=void 0};
g.K.setTimeout=function(u){var h=this,L=Number(u==null?void 0:u.maxVisibleDurationMilliseconds);L&&(this.clearTimeout(),this.T=setTimeout(function(){h.onTimeout(u)},L))};
g.K.clearTimeout=function(){this.T&&clearTimeout(this.T);this.T=void 0};
g.K.Ni=function(){this.timelyActions=this.N=this.G=this.videoId=void 0;this.B={};this.G2();this.clearTimeout();VA.prototype.Ni.call(this)};g.P(Tqi,VA);var QR={},dSV=(QR[1]="pot_ss",QR[2]="pot_sf",QR[3]="pot_se",QR[4]="pot_xs",QR[5]="pot_xf",QR[6]="pot_xe",QR),VxY=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.P(Py,VA);Py.prototype.Ni=function(){this.C&&(g.PS(this.C),this.C=void 0);VA.prototype.Ni.call(this)};
Py.prototype.cR=function(){(this.G?!this.G.isReady():this.N)&&Mz(this)};
Py.prototype.Z7=function(u,h,L){var Z=this;if(oYl(u)){var y=L||"",R;if((R=this.G)==null?0:R.isReady())h=i5(this,y),NqR(u,h);else{var p=new g.Ab;h.push(p.promise);this.B.promise.then(function(){var J=i5(Z,y);NqR(u,J);p.resolve()})}}};
Py.prototype.ZA=function(u){var h=this;if(this.G||this.N)u.HY=i5(this,u.videoId),this.G&&!this.G.isReady()&&(this.X=new aA,this.B.promise.then(function(){h.T3.wO("pot_if");u.HY=i5(h,u.videoId)}))};g.P(sew,VA);g.P(Qh,g.m);Qh.prototype.G=function(){for(var u=g.C(g.NL.apply(0,arguments)),h=u.next();!h.done;h=u.next())(h=h.value)&&this.features.push(h)};
Qh.prototype.Ni=function(){for(var u=this.features.length-1;u>=0;u--)this.features[u].dispose();this.features.length=0;g.m.prototype.Ni.call(this)};l5.prototype.uy=function(){this.N=(0,g.vC)()};
l5.prototype.reset=function(){this.G=this.N=NaN};
l5.prototype.ly=function(u,h){if(u.clientPlaybackNonce&&!isNaN(this.G)){if(Math.random()<.01){h=h?"pbp":"pbs";var L={startTime:this.G};u.C&&(L.cttAuthInfo={token:u.C,videoId:u.videoId});dT("seek",L);g.m1({clientPlaybackNonce:u.clientPlaybackNonce},"seek");isNaN(this.N)||zQ("pl_ss",this.N,"seek");zQ(h,(0,g.vC)(),"seek")}this.reset()}};g.K=wVi.prototype;g.K.reset=function(){Hc(this.timerName)};
g.K.tick=function(u,h){zQ(u,h,this.timerName)};
g.K.wO=function(u){return nQ(u,this.timerName)};
g.K.Xa=function(u){iQ(u,void 0,this.timerName)};
g.K.infoGel=function(u){g.m1(u,this.timerName)};g.P(txn,g.yV);g.K=txn.prototype;g.K.i9=function(u){return this.loop||!!u||this.index+1<this.length};
g.K.vS=function(u){return this.loop||!!u||this.index-1>=0};
g.K.setShuffle=function(u){this.shuffle=u;u=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var h=0;h<this.items.length;h++)this.order.push(h);this.index=u;this.N++;if(this.shuffle){u=this.order[this.index];for(h=1;h<this.order.length;h++){var L=Math.floor(Math.random()*(h+1)),Z=this.order[h];this.order[h]=this.order[L];this.order[L]=Z}for(h=0;h<this.order.length;h++)this.order[h]===u&&(this.index=h);this.N++}this.publish("shuffle")};
g.K.Po=function(u){u=u||"hqdefault.jpg";var h=this.Y[u];if(h||this.z7.RH||u==="sddefault.jpg"||u==="hq720.jpg"||u==="maxresdefault.jpg")return h;if(this.X.length)return zg(this.z7,this.X[0],u)};
g.K.getLength=function(){return this.length};
g.K.findIndex=function(u){if(u&&(u=u.videoId,!this.items[this.index]||this.items[this.index].video_id!==u))for(var h=0;h<this.items.length;h++)if(this.items[h].video_id===u){this.index=h;break}};
g.K.onReady=function(u){this.G=u;this.loaded&&g.IJ(this.G,0)};
g.K.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.K.Wm=function(){return this.z7.getVideoUrl(g.XW(this).videoId,this.getPlaylistId())};
g.K.Ni=function(){this.G=null;g.O8(this.items);g.yV.prototype.Ni.call(this)};var vy=new Map;g.P(g.Tl,g.yV);g.K=g.Tl.prototype;g.K.create=function(){};
g.K.load=function(){this.loaded=!0};
g.K.unload=function(){this.loaded=!1};
g.K.B7=function(){};
g.K.n3=function(){return!0};
g.K.Ni=function(){this.loaded&&this.unload();g.yV.prototype.Ni.call(this)};
g.K.IV=function(){return{}};
g.K.getOptions=function(){return[]};g.P(g.oY,g.m);g.K=g.oY.prototype;g.K.lY=LV(66);g.K.LX=function(){};
g.K.a9=function(){};
g.K.GO=function(){return""};
g.K.VW=LV(67);g.K.Z7=function(u,h){var L=this;if(this.pI.L().j("html5_dispatch_tracklist_loaded_event")){this.B&&(this.B.reject(),this.B=null);var Z=[];this.pI.publish("trackListLoaded",this.N,Z,h);Z.length?(h=new g.Ab,h.promise.then(u.Z7,function(){}),this.B=h,Promise.all(Z).then(h.resolve,h.reject).finally(function(){L.B=null})):u.Z7()}else u.Z7()};
g.K.EM=function(){};
g.K.Ni=function(){this.B&&(this.B.reject(),this.B=null);this.a9();g.m.prototype.Ni.call(this)};g.P(g.Nz,g.oY);g.Nz.prototype.lY=LV(65);g.Nz.prototype.LX=function(u){if(this.audioTrack)for(var h=g.C(this.audioTrack.captionTracks),L=h.next();!L.done;L=h.next())g.Y_(this.N,L.value);this.Z7(u,this.videoData.videoId)};
g.Nz.prototype.GO=function(u,h){var L=u.VQ(),Z={fmt:h};if(h==="srv3"||h==="3"||h==="json3")g.wg()?Object.assign(Z,{xorb:2,xobt:1,xovt:1}):Object.assign(Z,{xorb:2,xobt:3,xovt:3});u.translationLanguage&&(Z.tlang=g.pg(u));this.X&&(Z.xosf="1");Object.assign(Z,this.pI.L().G);return Zl(L,Z)};
g.Nz.prototype.a9=function(){this.G&&this.G.abort()};g.bar=new Map;g.P(g.Gl,g.oY);g.Gl.prototype.lY=LV(64);
g.Gl.prototype.LX=function(u){var h=this,L=this.X,Z={type:"list",tlangs:1,v:this.videoId,vssids:1};this.s_&&(Z.asrs=1);L=Zl(L,Z);this.a9();this.G=g.XI(L,{format:"RAW",onSuccess:function(y){h.G=null;if((y=y.responseXML)&&y.firstChild){for(var R=y.getElementsByTagName("track"),p=0;p<R.length;p++){var J=R[p],O=J.getAttribute("lang_code"),f=J.getAttribute("lang_translated"),D=J.getAttribute("name"),c=J.getAttribute("kind"),I=J.getAttribute("id"),A=J.getAttribute("lang_default")==="true",x=J.getAttribute("cantran")===
"true";J=J.getAttribute("vss_id");g.Y_(h.N,new g.Zs({languageCode:O,languageName:f,name:D,kind:c,id:I,is_servable:!0,is_translateable:x,vss_id:J,is_default:A}))}y=y.getElementsByTagName("target");R=y.length;for(p=0;p<R;p++)O={languageCode:y[p].getAttribute("lang_code"),languageName:y[p].getAttribute("lang_translated"),languageOriginal:y[p].getAttribute("lang_original"),id:y[p].getAttribute("id"),isDefault:y[p].getAttribute("lang_default")==="true"},h.C[O.languageCode]=O.languageName,h.T.push(O)}h.Z7(u,
h.videoId)},
withCredentials:!0})};
g.Gl.prototype.GO=function(u,h){var L=this.X;h={v:this.videoId,type:"track",lang:u.languageCode,name:u.getName(),kind:u.kind,fmt:h};var Z=this.pI.L();Z.j("captions_url_add_ei")&&(h.ei=this.eventId);u.translationLanguage&&(h.tlang=g.pg(u));Object.assign(h,Z.G);return L=Zl(L,h)};
g.Gl.prototype.a9=function(){this.G&&this.G.abort()};yxf.prototype.X=function(){for(var u=g.NL.apply(0,arguments),h=this,L=Ln("empty"),Z=[],y={Jg:0};y.Jg<this.N.length&&L.currentState!=="done";y={W6:void 0,Jg:y.Jg},y.Jg++)y.W6=this.N[y.Jg],y.W6.condition.apply(y.W6,g.l(u))&&(L=pn(pn(L,function(R){return function(){if(!R.W6.condition.apply(R.W6,g.l(u)))throw"condition failed";var p=R.W6.SN.apply(R.W6,g.l(u));return h.G===void 0||h.G===null?p:Rd(h_(p),function(J){if(!h.G.apply(h,[J].concat(g.l(u))))throw"verification failed";return J})}}(y)),function(R){return function(p){p!==
"empty"&&p!=="condition failed"&&p!=="verification failed"&&p!=="error"&&(R.W6.onFailure&&R.W6.onFailure.apply(R.W6,[p].concat(g.l(u))),h.onFailure&&h.onFailure.apply(h,[p,
R.Jg,R.W6].concat(g.l(u))),Z.push(p));throw"error";}}(y)));
return pn(L,function(){return Ln(Z)})};rI.prototype.preload=function(u){u=u?Roe(this.capabilities,u):this.capabilities;return u.Mm?Rd(JxY(this,u),function(){}):h_()};
rI.prototype.compile=function(u){return pn(this.T.X(u),function(h){throw Error("wasm module compile failure: "+h.map(function(L){return L.message}).join(", "),{cause:h});
})};
rI.prototype.instantiate=function(u,h){return pn(this.C.X(u,h),function(L){throw Error("wasm module instantiation failure: "+L.map(function(Z){return Z.message}).join(", "),{cause:L});
})};cxl.prototype.emscripten_notify_memory_growth=function(){};var OYn;g.K=Axa.prototype;g.K.malloc=function(u){return this.G.malloc(u)};
g.K.free=function(u){this.G.free(u)};
g.K.realloc=function(u,h){return this.G.realloc(u,h)};
g.K.HD=function(u){if(u.buffer!==this.exports.memory.buffer){var h=this.malloc(u.byteLength);h=new Uint8Array(this.exports.memory.buffer,h,u.byteLength);h.set(u);return h}};
g.K.f1=function(u){if(u.buffer===this.exports.memory.buffer){var h=u.slice();this.free(u.byteOffset);return h}};
var azR="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);Hy.xG(Axa,{HD:function(u){return{profile:"copyj2w",c6:u===void 0?0:Math.ceil(u.byteLength/16)}},
f1:function(u){return{profile:"copyw2j",c6:u===void 0?0:Math.ceil(u.byteLength/16)}}});g.P(CDn,g.m);g.K=CDn.prototype;g.K.createSubtitlesModuleIfNeeded=function(){lii(this)&&zl(this,"captions");return!!g.By(this)};
g.K.Um=function(){return g.dC(this.D.getVideoData())&&!this.D.lq().X};
g.K.gx=function(){return this.D.getVideoData().gx()};
g.K.Va=function(){return this.D.getVideoData().Va()};
g.K.qV=function(){var u=this.u2.get("heartbeat");zl(this,"heartbeat",!1,!0,this.qV);!u&&this.u2.has("heartbeat")&&this.D.publish("offlineslatestatechange")};
g.K.v1=function(){zl(this,"annotations_module",!0,void 0,this.v1);var u=this.u2.get("annotations_module");if(u)for(var h in this.X)if(this.X.hasOwnProperty(h)){var L=h;u.subscribe(L,this.X[L])}};
g.K.eM=function(){if(!this.u2.get("ad"))try{M31(this)?zl(this,"ad",!1,!0,this.eM):this.D.CB("ad")}catch(u){this.D.CB("ad"),g.UZ(u)}};
g.K.QO=function(){return this.N};
g.K.Gt=function(){var u={},h=g.By(this);h&&Object.assign(u,h.Gt());return u};
g.K.rT=function(u,h){Object.assign(this.N,u||null);Object.assign(this.wu,h||null)};
g.K.onVideoDataChange=function(){var u=this.D.getVideoData();this.D.j("enable_wn_infocards")&&g.vz(u)&&!g.sE(this)&&this.v1()};
g.K.Ni=function(){g.m.prototype.Ni.call(this);mN(this,1,!0);for(var u=g.C(Object.entries(zoa)),h=u.next();!h.done;h=u.next()){var L=g.C(h.value);h=L.next().value;L=L.next().value;this.B.has(L)&&vy.delete(h)}this.B.clear()};
var lb={},zoa=(lb.ad="ad.js",lb.annotations_module="annotations_module.js",lb.asmjs="asmjs.js",lb.creatorendscreen="annotations_module.js",lb.embed="embed.js",lb.endscreen="endscreen.js",lb.heartbeat="heartbeat.js",lb.kids="kids.js",lb.remote="remote.js",lb.miniplayer="miniplayer.js",lb.offline="offline.js",lb.captions="captions.js",lb.unplugged="unplugged.js",lb.ux="ux.js",lb.webgl="webgl.js",lb.ypc="ypc.js",lb.ypc_clickwrap="ypc_clickwrap.js",lb.yto="yto.js",lb),UlR="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.P(dli,g.yV);g.K=dli.prototype;g.K.hc=function(u){u=new g.O6(u.pageX,u.pageY);if(!fX(u,this.B)){var h=2;this.C&&(h|=8);this.B=u;e_(this,h,!0)}};
g.K.bay=function(){this.C&&e_(this,8,!0);e_(this,2,!1)};
g.K.tR=function(u){var h=new g.O6(u.pageX,u.pageY);fX(h,this.B)||(this.B=h,(u=u.target)&&this.zC(u)&&(e_(this,4,!0),this.G.FJ(this.X),this.X=this.G.W(this.target,"mouseover",this.o_),this.V=this.G.W(this.target,"mouseout",this.o_)))};
g.K.o_=function(u){u=u.relatedTarget;u&&this.zC(u)||(this.B=new g.O6(NaN,NaN),V3n(this))};
g.K.JBI=function(){e_(this,1,!0)};
g.K.GP=function(u){u=u.target;u instanceof Element&&!(u.tabIndex>0)||e_(this,1,!0)};
g.K.mN=function(){this.C=!0;this.G.FJ(this.T);this.T=this.G.W(document,"mouseup",this.fk)};
g.K.fk=function(){this.C=!1;e_(this,8,!1);this.G.FJ(this.T);this.T=this.G.W(this.target,"mousedown",this.mN)};
g.K.eE=function(u){if(u=(u=u.changedTouches)&&u[0])this.XB=u.identifier,this.G.FJ(this.S),this.S=this.G.W(this.target,"touchend",this.Y3,void 0,!0),e_(this,1024,!0)};
g.K.Y3=function(u){if(u=u.changedTouches)for(var h=0;h<u.length;h++){var L=u[h];if(L.identifier===this.XB){var Z=L;break}}Z&&(this.G.FJ(this.S),this.S=this.G.W(this.target,"touchstart",this.eE,void 0,!0),e_(this,1024,!1))};
g.K.Bc=function(){e_(this,2,!0)};
g.K.resize=function(){g.TI&&V3n(this)};
g.K.toString=function(){return g.yV.prototype.toString.call(this)};g.P(g.$_,g.a);g.K=g.$_.prototype;g.K.LXw=function(){this.kI()};
g.K.kI=function(){var u=this.api.getVideoData(),h=this.api.L(),L=!!this.api.isEmbedsShortsMode();g.JW(this.element,"ytp-shorts-mode",L);L?h=[{K:"svg",J:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},Z:[{K:"path",J:{"clip-rule":"evenodd",d:"M83.99 10.81C90.08 21.24 86.62 34.66 76.26 40.79L69.05 45.06L74.17 47.38C81.58 50.74 86.52 57.99 86.96 66.17C87.40 74.34 83.27 82.09 76.26 86.24L32.76 111.97C22.41 118.10 9.08 114.61 3.00 104.18C-3.08 93.75 .37 80.33 10.73 74.20L17.94 69.93L12.82 67.61C5.41 64.25 .47 57.00 .03 48.82C-0.40 40.65 3.72 32.90 10.73 28.75L54.23 3.02C64.58 -3.10 77.91 .38 83.99 10.81Z",
fill:"#f00","fill-rule":"evenodd"}},{K:"path",J:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:g.$H(u)?h=[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},Z:[{K:"path",U:"ytp-dni-large-play-button-bg",J:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{K:"path",J:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:u.Rc&&u.nE?h=[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},Z:[{K:"path",U:"ytp-dni-large-play-button-bg",
J:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{K:"path",J:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:h.C?(g.JW(this.element,"ytp-touch-device",h.N),h=[h.C?{K:"svg",J:{height:"100%",version:"1.1",
viewBox:"0 0 60 60",width:"100%"},Z:[{K:"path",U:"ytp-large-play-button-bg",J:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{K:"path",J:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},Z:[{K:"path",U:"ytp-large-play-button-bg",J:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{K:"path",J:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):h=[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},Z:[{K:"path",U:"ytp-large-play-button-bg",J:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#f03"}},{K:"path",J:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",h);u.Rc&&u.nE&&this.BX("ytp-dni-large-play-button-bg").setAttribute("fill",u.nE?u.nE:"#1f1f1f")};
g.K.show=function(){g.a.prototype.show.call(this);this.api.L().j("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)};
g.K.Qj=function(){this.api.getVideoData().mutedAutoplay||(this.api.wT(),this.api.playVideo())};
g.K.iZa=function(u){this.api.getVideoData().mutedAutoplay||u.preventDefault()};g.P(g.tZ,g.a);g.K=g.tZ.prototype;g.K.show=function(){var u=this;this.BJ||(this.B.W(this.api,"videodatachange",function(){g.kK(u.G)}),this.B.W(this.api,"videoplayerreset",function(){g.kK(u.G)}));
g.a.prototype.show.call(this)};
g.K.hide=function(){this.B&&g.Tj(this.B);g.a.prototype.hide.call(this)};
g.K.QZ=function(){g.kK(this.G)};
g.K.onStateChange=function(){g.kK(this.G)};
g.K.DrX=function(){g.kK(this.G)};
g.K.onReset=function(){this.N.stop();this.hide();g.kK(this.G)};
g.K.kI=function(){var u=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(u.isPlaying()||u.isPaused()))var h=!0;else(h=this.api.uP().u2.get("ypc"))&&h.vN?h=!0:(h=this.api.L(),h=g.F(u,2)&&g.Pf(this.api)&&h.h4?!0:!1);h?(h=!0,this.X.hide()):this.api.j("web_player_show_frame_zero_when_cued")&&nsY(this)?(h=!0,this.X.hide()):(this.X.show(),h=u.isCued()&&this.api.getPresentingPlayerType()!==2||g.F(u,2)&&!g.Pf(this.api)&&!this.api.TR()||g.F(u,1024)?!0:!1);var L=this.api.getVideoData();
h&&!L.T8?(this.N.show(),this.Jd7(this.api.getPlaylist(),L)):(this.N.hide(),g.F(u,1)||this.N.stop())};
g.K.Jd7=function(){var u=g.NL.apply(0,arguments),h=this.api.L(),L,Z=(L=this.api.getVideoData())==null?void 0:L.videoId;if(h.j("web_player_show_frame_zero_when_cued")&&Z&&nsY(this))var y="https://i.ytimg.com/vi/"+Z+"/frame0.jpg";else for(u=g.C(u),L=u.next();!L.done;L=u.next())if(L=L.value,!(!L||L instanceof g.rC&&!L.videoId)){y=this.api.m_().getPlayerSize();var R=g.V6();Z=y.width*R;R*=y.height;if(Z>1280||R>720)if(y=L.Po("maxresdefault.jpg"))break;if(Z>640||R>480)if(y=L.Po("maxresdefault.jpg"))break;
if(Z>320||R>180)if(y=L.Po("sddefault.jpg")||L.Po("hqdefault.jpg")||L.Po("mqdefault.jpg"))break;if(y=L.Po("default.jpg"))break}g.wS(h)&&(h=new Image,h.addEventListener("load",function(){LUn()}),h.src=y?y:"",this.api.QO().tick("ftr"));
this.C.style.backgroundImage=y?"url("+y+")":""};g.P(g.Wy,g.a);g.Wy.prototype.resize=function(){};
g.Wy.prototype.N=function(u){var h=this;this.X=!1;eow(this);var L=u.yU,Z=this.api.L();L!=="GENERIC_WITHOUT_LINK"||Z.C?L==="TOO_MANY_REQUESTS"?(Z=this.api.getVideoData(),this.QF(EE(this,"TOO_MANY_REQUESTS_WITH_LINK",Z.Wm(),void 0,void 0,void 0,!1))):L!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||Z.C?this.api.L().j("html5_enable_bandaid_error_screen")&&L==="HTML5_SPS_UMP_STATUS_REJECTED"&&!Z.C?(Z=Z.hostLanguage,u="//support.google.com/youtube?p=videoError",Z&&(u=g.sr(u,{hl:Z})),this.QF(EE(this,"HTML5_SPS_UMP_STATUS_REJECTED",
u))):this.api.L().j("enable_adb_handling_in_sabr")&&L==="BROWSER_OR_EXTENSION_ERROR"&&!Z.C?(Z=Z.hostLanguage,u="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",Z&&(u=g.sr(u,{hl:Z})),this.QF(EE(this,"BROWSER_OR_EXTENSION_ERROR",u))):this.QF(g.FW(u.errorMessage)):this.QF(EE(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(u=Z.hostLanguage,L="//support.google.com/youtube/?p=player_error1",u&&(L=g.sr(L,
{hl:u})),this.QF(EE(this,"GENERIC_WITH_LINK_AND_CPN",L,!0)),Z.nH&&!Z.B&&wHR(this,function(R){if(g.FC(R,h.api,!ms(h.api.L()))){R={as3:!1,html5:!0,player:!0,cpn:h.api.getVideoData().clientPlaybackNonce};var p=h.api;p.fH("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:R});p.isFullscreen()&&p.toggleFullscreen()}}));
if(this.X){var y=this.BX("ytp-error-link");y&&(this.api.createClientVe(y,this,216104),this.api.logVisibility(y,!0),wHR(this,function(){h.api.logClick(y)}))}};
var syn=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.P(ail,g.a);g.K=ail.prototype;g.K.onClick=function(u){this.innertubeCommand?(this.D.hB("innertubeCommand",this.innertubeCommand),u.preventDefault()):g.FC(u,this.D,!0);this.D.logClick(this.element)};
g.K.onVideoDataChange=function(u,h){t3R(this,h);this.ex&&WEL(this,this.ex)};
g.K.Q1=function(u){var h=this.D.getVideoData();this.videoId!==h.videoId&&t3R(this,h);this.G&&WEL(this,u.state);this.ex=u.state};
g.K.VF=function(){this.B.show();this.D.publish("paidcontentoverlayvisibilitychange",!0);this.D.logVisibility(this.element,!0)};
g.K.aP=function(){this.B.hide();this.D.publish("paidcontentoverlayvisibilitychange",!1);this.D.logVisibility(this.element,!1)};g.P(k_,g.a);k_.prototype.hide=function(){this.G.stop();this.message.style.display="none";g.a.prototype.hide.call(this)};
k_.prototype.onStateChange=function(u){this.Sq(u.state)};
k_.prototype.Sq=function(u){(g.F(u,128)||this.api.BK()?0:g.F(u,16)||g.F(u,1))?this.G.start():this.hide()};
k_.prototype.N=function(){this.message.style.display="block"};g.P(gI,g.NT);gI.prototype.onMutedAutoplayChange=function(u){this.X&&(u?(FEi(this),this.VF()):(this.G&&this.logClick(),this.aP()))};
gI.prototype.TN=function(u){this.api.isMutedByMutedAutoplay()&&g.DK(u,2)&&this.aP()};
gI.prototype.onClick=function(){this.api.unMute();this.logClick()};
gI.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.P(g.ul,g.UN);g.K=g.ul.prototype;g.K.init=function(){var u=this.api,h=u.getPlayerStateObject();this.Hi=u.getPlayerSize();this.gf(h);this.FP();this.QZ();this.api.publish("basechromeinitialized",this);this.TZ()&&this.api.publish("standardControlsInitialized")};
g.K.onVideoDataChange=function(u,h){var L=this.wj!==h.videoId;if(L||u==="newdata"){u=this.api;u.isFullscreen()||(this.Hi=u.getPlayerSize());var Z;((Z=this.api.getVideoData(1))==null?0:g.dC(Z))&&this.Ol()}L&&(this.wj=h.videoId,L=this.xJ,L.gw=3E3,e_(L,512,!0),this.FP());this.api.j("web_render_jump_buttons")&&h.showSeekingControls&&(this.gJ=572)};
g.K.xmI=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.K.P5=function(){var u=this.api.Dk()&&this.api.Yc(),h=this.api.R_();return this.xA||u||this.JD||h};
g.K.Ol=function(){var u=!this.P5();g.JW(this.api.getRootNode(),"ytp-menu-shown",!u);var h;((h=this.api.getVideoData(1))==null?0:g.dC(h))&&g.JW(this.api.getRootNode(),"ytp-hide-controls",!u)};
g.K.zC=function(u){try{if(!g.ZO(this.api.getRootNode(),u))return!1}catch(h){return!1}for(;u&&!O9n(u);)u=u===this.api.getRootNode()?null:u.parentElement||null;return!!u};
g.K.W0=function(u){var h=this.api.getRootNode();g.JW(h,"ytp-autohide",u);g.JW(h,"ytp-autohide-active",!0);this.X7.start(u?250:100);u&&(this.U0=!1,g.pc(h,"ytp-touch-mode"));this.mq=!u;this.api.lU(!u)};
g.K.dY=function(){var u=this.api.getRootNode();g.JW(u,"ytp-autohide-active",!1)};
g.K.ESA=function(){this.BR=!0};
g.K.PhA=function(u){if(this.api.L().j("player_doubletap_to_seek")||this.api.L().S)this.BR=!1,this.gF&&this.FJ(this.gF),this.iH===0&&hR(this,u)?(this.tD(),this.oo.start(),this.gF=this.W(this.api.m_(),"touchmove",this.ESA,void 0,!0)):this.oo.stop();gse(this)&&hR(this,u)&&!this.api.L().S&&Esi(this);var h=this.O6.We();if(!g.MW(this.api.L())&&Az&&uwl(this,u))h&&u.preventDefault();else if(this.U0=!0,g.yN(this.api.getRootNode(),"ytp-touch-mode"),this.xJ.Bc(),this.api.L().j("player_doubletap_to_seek")||this.api.L().S)if(h=
this.api.getPlayerStateObject(),!(!this.api.VO()||g.F(h,2)&&g.Pf(this.api)||g.F(h,64))){h=Date.now()-this.KQ;this.iH+=1;if(h<=350){this.mV=!0;h=this.api.getPlayerSize().width/3;var L=this.api.getRootNode().getBoundingClientRect(),Z=u.targetTouches[0].clientX-L.left;L=u.targetTouches[0].clientY-L.top;var y=(this.iH-1)*10;Z>0&&Z<h?(this.Us(-1,Z,L,y),this.api.seekBy(-10*this.api.getPlaybackRate())):Z>h*2&&Z<h*3&&(this.Us(1,Z,L,y),this.api.seekBy(10*this.api.getPlaybackRate()));u.preventDefault()}else aY&&
this.api.L().S&&hR(this,u)&&u.preventDefault();this.KQ=Date.now();this.o$.start()}};
g.K.bWX=function(){this.ow.hg=!1;this.api.publish("rootnodemousedown",this.ow)};
g.K.TdA=function(u){if(this.api.L().j("web_fix_fine_scrubbing_false_play")){if(uwl(this,u)||this.ow.hg)return}else if(this.ow.hg||uwl(this,u))return;gse(this)||!hR(this,u)||this.oo.isActive()||(Esi(this),u.preventDefault());this.mV&&(this.mV=!1)};
g.K.tD=function(){};
g.K.lZ=function(){};
g.K.Us=function(){};
g.K.renderChapterSeekingAnimation=function(){};
g.K.nA=function(){var u=this.api.getPlayerStateObject();g.F(u,2)&&g.Pf(this.api)||(u.isOrWillBePlaying()?this.api.pauseVideo():(this.Ed&&(u.isCued()||g.F(u,1024))&&!this.api.L().j("embeds_play_button_state_check_ks")&&this.api.publish("largeplaybuttonclicked",this.Ed.X.element),this.api.wT(),this.api.playVideo(),this.Ed&&document.activeElement===this.Ed.X.element&&((u=this.TZ())==null?u=0:u.playButton?(u.playButton.focus(),u=!0):u=!1,u||this.api.getRootNode().focus())))};
g.K.yqI=function(u){var h=this,L=this.api.getPresentingPlayerType();if(!kJL(this,St(u)))if(u=this.api.L(),(this.api.L().j("player_doubletap_to_seek")||this.api.L().S)&&this.mV)this.mV=!1;else if(u.Ca&&L!==3)try{this.api.toggleFullscreen().catch(function(Z){h.x$(Z)}),this.api.j("web_player_fullscreen_double_click_ve")&&this.api.logClick(this.api.m_().element)}catch(Z){this.x$(Z)}};
g.K.x$=function(u){String(u).includes("fullscreen error")?g.G3(u):g.UZ(u)};
g.K.cqa=function(u){j_a(this,.3,u.scale);u.preventDefault()};
g.K.avX=function(u){j_a(this,.1,u.scale)};
g.K.QZ=function(){var u=this.api.m_().getPlayerSize(),h=this.api.getRootNode(),L=u.width>=650;this.xJ.resize();g.JW(h,"ytp-fullscreen",this.api.isFullscreen());g.JW(h,"ytp-large-width-mode",L);g.JW(h,"ytp-small-mode",this.Bo());g.JW(h,"ytp-tiny-mode",this.Yr());g.JW(h,"ytp-big-mode",this.GN());this.Vs&&this.Vs.resize(u)};
g.K.TN=function(u){this.gf(u.state);this.FP()};
g.K.wE=LV(5);g.K.Rj=function(){var u=!!this.wj&&!this.api.Ic()&&!this.lz,h=this.api.getPresentingPlayerType()===2,L=this.api.L();if(h){if(rPf&&L.j("enable_visit_advertiser_support_on_ipad_mweb"))return!1;h=dI(this.api.uP());u&&(h&&h.player?u=(u=h.player.getVideoData(2))?u.isListed&&!g.Qr(h.player.L()):!1:(Jk("showInfoBarDuringAd: this is null"),u=!1));return u}return u&&(L.KY||this.api.isFullscreen()||L.dD)};
g.K.FP=function(){var u=this.Rj();this.Qx!==u&&(this.Qx=u,g.JW(this.api.getRootNode(),"ytp-hide-info-bar",!u))};
g.K.gf=function(u){var h=u.isCued()||this.api.Hm()&&this.api.getPresentingPlayerType()!==3;h!==this.isCued&&(this.isCued=h,this.K4&&this.FJ(this.K4),this.K4=this.W(this.api.m_(),"touchstart",this.PhA,void 0,h));var L=this.xJ,Z=u.isPlaying()&&!g.F(u,32)||this.api.zr();e_(L,128,!Z);L=this.xJ;Z=this.api.getPresentingPlayerType()===3;e_(L,256,Z);L=this.api.getRootNode();g.F(u,2)?Z=[eo.ENDED]:(Z=[],g.F(u,8)?Z.push(eo.PLAYING):g.F(u,4)&&Z.push(eo.PAUSED),g.F(u,1)&&!g.F(u,32)&&Z.push(eo.BUFFERING),g.F(u,
32)&&Z.push(eo.SEEKING),g.F(u,64)&&Z.push(eo.UNSTARTED));g.fw(this.mw,Z)||(g.Kc(L,this.mw),this.mw=Z,g.RH(L,Z));Z=this.api.L();var y=g.F(u,2);a:{var R=this.api.L();var p=R.controlsType;switch(p){case "2":case "0":R=!1;break a}R=p==="3"&&!g.F(u,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:PkR(dI(this.api.uP())))||this.api.R_()||g.MW(R)&&this.api.getPresentingPlayerType()===2?!1:!0}g.JW(L,"ytp-hide-controls",!R);g.JW(L,"ytp-native-controls",Z.controlsType==="3"&&!h&&!y&&!this.JD);g.F(u,
128)&&!g.MW(Z)?(this.Vs||(this.Vs=new g.Wy(this.api),g.V(this,this.Vs),g.XC(this.api,this.Vs.element,4)),this.Vs.N(u.Ad),this.Vs.show()):this.Vs&&(this.Vs.dispose(),this.Vs=null)};
g.K.t9=function(){return this.api.Dk()&&this.api.Yc()?(this.api.FM(!1,!1),!0):this.api.Ic()?(g.CU(this.api,!0),!0):!1};
g.K.onMutedAutoplayChange=function(u){this.JD=u;this.Ol()};
g.K.GN=function(){return!1};
g.K.Bo=function(){return!this.GN()&&(this.api.getPlayerSize().width<this.gJ||this.api.getPlayerSize().height<290)};
g.K.Yr=function(){return this.Bo()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)};
g.K.Za=function(){return this.U0};
g.K.jb=function(){return null};
g.K.py=function(){return null};
g.K.Wb=function(){var u=this.api.m_().getPlayerSize();return new g.ZE(0,0,u.width,u.height)};
g.K.handleGlobalKeyDown=function(){return!1};
g.K.handleGlobalKeyUp=function(){return!1};
g.K.Kx=function(){};
g.K.showControls=function(u){u!==void 0&&this.api.m_().lU(u)};
g.K.Bc=function(){};
g.K.TZ=function(){return null};g.P(Ls,g.yV);g.K=Ls.prototype;g.K.xr=function(){return 1E3*this.api.getDuration(this.pm,!1)};
g.K.stop=function(){this.G&&this.Aq.FJ(this.G)};
g.K.cj=function(){var u=this.api.getProgressState(this.pm);this.N={seekableStart:u.seekableStart,seekableEnd:u.seekableEnd,current:this.api.getCurrentTime(this.pm,!1)};this.publish("h")};
g.K.getProgressState=function(){return this.N};
g.K.xO=function(u){g.DK(u,2)&&this.publish("g")};g.P(g.ZY,g.a);g.ZY.prototype.show=function(){g.a.prototype.show.call(this);g.kK(this.G)};
g.ZY.prototype.hide=function(){this.N.stop();g.a.prototype.hide.call(this)};
g.ZY.prototype.lZ=function(u){u?g.F(this.D.getPlayerStateObject(),64)||y9(this,S0(),"Play"):(u=this.D.getVideoData(),u.isLivePlayback&&!u.allowLiveDvr?y9(this,Grw(),"Stop live playback"):y9(this,YWR(),"Pause"))};g.P(Z1n,g.a);g.K=Z1n.prototype;g.K.Xz=function(u){u?this.G=Iv(this.D,this.element,null):(this.G=this.G,this.G(),this.G=null)};
g.K.VF=function(){this.D.L().j("player_new_info_card_format")&&g.Zx(this.D.getRootNode(),"ytp-cards-teaser-shown")&&!g.MW(this.D.L())||(this.N.show(),g.y8("iv-button-shown"))};
g.K.aP=function(){g.y8("iv-button-hidden");this.N.hide()};
g.K.We=function(){return this.BJ&&this.N.state!==4};
g.K.Ni=function(){this.G&&this.G();g.a.prototype.Ni.call(this)};
g.K.yya=function(){g.y8("iv-button-mouseover")};
g.K.onClicked=function(u){this.D.Dk();var h=g.Zx(this.D.getRootNode(),"ytp-cards-teaser-shown");g.y8("iv-teaser-clicked",h);var L;if((L=this.D.getVideoData())==null?0:g.XP(L)){var Z;u=(Z=this.D.getVideoData())==null?void 0:g.vz(Z);(u==null?0:u.onIconTapCommand)&&this.D.hB("innertubeCommand",u.onIconTapCommand)}else Z=u.screenX===0&&u.screenY===0,this.D.FM(!this.D.Yc(),Z,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.P(y9V,g.a);g.K=y9V.prototype;g.K.Mj=function(){this.D.Dk()&&this.D.Yc()&&this.We()&&this.aP()};
g.K.RU=function(){this.aP();!this.D.Dk()&&this.D.L().j("enable_error_corrections_infocards_icon_web")&&this.bS.aP();g.y8("iv-teaser-clicked",this.G!=null);if(this.onClickCommand)this.D.hB("innertubeCommand",this.onClickCommand);else{var u;((u=this.D.getVideoData())==null?0:g.XP(u))||this.D.FM(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
g.K.e$=function(){g.y8("iv-teaser-mouseover");this.G&&this.G.stop()};
g.K.mrA=function(u){this.D.L().j("player_new_info_card_format")&&!g.MW(this.D.L())?this.bS.aP():this.D.L().j("enable_error_corrections_infocards_icon_web")&&this.bS.VF();this.G||!u||this.D.Yc()||this.N&&this.N.isActive()||(this.VF(u),g.y8("iv-teaser-shown"))};
g.K.VF=function(u){this.onClickCommand=u.onClickCommand;this.updateValue("text",u.teaserText);this.element.setAttribute("dir",g.AW(u.teaserText));this.B.show();this.N=new g.EM(function(){g.yN(this.D.getRootNode(),"ytp-cards-teaser-shown");this.D.j("player_new_info_card_format")&&!g.MW(this.D.L())&&this.bS.aP();this.HE()},0,this);
this.N.start();this.bS.Xz(!1);this.G=new g.EM(this.aP,580+u.durationMs,this);this.G.start();this.C.push(this.listen("mouseover",this.IW,this));this.C.push(this.listen("mouseout",this.Gc,this))};
g.K.HE=function(){if(!this.D.L().j("player_new_info_card_format")&&g.MW(this.D.L())&&this.BJ){var u=this.bS.element.offsetLeft,h=g.eT("ytp-cards-button-icon"),L=this.D.isFullscreen()?54:36;if(h){var Z=u+h.offsetLeft;this.element.style.marginRight=this.bS.element.offsetParent.offsetWidth-u-h.offsetLeft-L+"px";this.element.style.marginLeft=Z+"px"}}};
g.K.pw=function(){g.MW(this.D.L())&&this.D.Bo()&&this.BJ&&this.Y.start()};
g.K.IW=function(){this.V.stop();this.G&&this.G.isActive()&&this.S.start()};
g.K.Gc=function(){this.S.stop();this.G&&!this.G.isActive()&&this.V.start()};
g.K.sVX=function(){this.G&&this.G.stop()};
g.K.Wz7=function(){this.aP()};
g.K.m6=function(){this.aP()};
g.K.aP=function(){!this.G||this.X&&this.X.isActive()||(g.y8("iv-teaser-hidden"),this.B.hide(),g.pc(this.D.getRootNode(),"ytp-cards-teaser-shown"),this.X=new g.EM(function(){for(var u=g.C(this.C),h=u.next();!h.done;h=u.next())this.FJ(h.value);this.C=[];this.G&&(this.G.dispose(),this.G=null);this.bS.Xz(!0);!this.D.Dk()&&this.D.L().j("enable_error_corrections_infocards_icon_web")&&this.bS.aP()},330,this),this.X.start())};
g.K.We=function(){return this.BJ&&this.B.state!==4};
g.K.Ni=function(){var u=this.D.getRootNode();u&&g.pc(u,"ytp-cards-teaser-shown");g.O8(this.N,this.X,this.G);g.a.prototype.Ni.call(this)};var SQ={},ps=(SQ.BUTTON="ytp-button",SQ.TITLE_NOTIFICATIONS="ytp-title-notifications",SQ.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",SQ.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",SQ.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",SQ);g.P(Rtf,g.a);Rtf.prototype.onClick=function(){this.api.logClick(this.element);var u=!this.G;this.updateValue("label",u?"Stop getting notified about every new video":"Get notified about every new video");this.updateValue("pressed",u);pJY(this,u)};g.nV("yt.pubsub.publish",g.y8);g.P(g.Ks,g.a);g.Ks.prototype.B=function(){window.location.reload()};
g.Ks.prototype.G=function(){g.yN(this.element,"ytp-sb-subscribed")};
g.Ks.prototype.N=function(){g.pc(this.element,"ytp-sb-subscribed")};g.P(Dde,g.a);g.K=Dde.prototype;g.K.GdX=function(u){this.api.logClick(this.N);var h=this.api.L();h.N||h.jd?xdf(this)&&(this.isExpanded()?this.SJ():this.Pu()):g.zx(window,fTV(this));u.preventDefault()};
g.K.mD=function(){A9e(this);this.channel.classList.remove("ytp-title-expanded")};
g.K.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.K.Pu=function(){if(xdf(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.X&&this.X.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));var u=this.api.getVideoData();this.G&&u.Cg&&u.subscribed&&(this.G.show(),
this.api.logVisibility(this.G.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.K.SJ=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.X&&this.X.start()};
g.K.kI=function(){var u=this.api.L();this.Ay(!this.api.isEmbedsShortsMode());var h=this.api.getVideoData(),L=this.api.L(),Z=this.api.getVideoData();this.B=!1;var y=!!Z.videoId&&!!Z.Ca&&!!Z.profilePicture;this.api.getPresentingPlayerType()===2?this.B=y&&!!Z.isListed&&!!Z.author:g.MW(L)&&(this.B=y&&!g.$H(Z)&&!L.X&&!(L.S&&this.api.getPlayerSize().width<200));L=h.profilePicture;u=g.MW(u)?h.expandedTitle:h.author;L=L===void 0?"":L;u=u===void 0?"":u;this.B?(this.V!==L&&(this.N.style.backgroundImage="url("+
L+")",this.V=L),this.updateValue("channelLogoLabel",g.cI("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:u})),g.yN(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.pc(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.N,this.B&&this.T);this.subscribeButton&&(this.subscribeButton.channelId=h.Xy);this.updateValue("expandedTitle",h.expandedTitle);this.updateValue("expandedSubtitle",h.expandedSubtitle)};
g.K.sU=function(u){g.a.prototype.sU.call(this,u);this.api.logVisibility(this.N,this.B&&u)};g.P(JR,g.Bf);JR.prototype.G=function(u){u.defaultPrevented||u.keyCode!==39||(this.element.click(),u.preventDefault())};g.P(PYa,g.a);g.K=PYa.prototype;g.K.show=function(){g.a.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
g.K.hide=function(){g.a.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
g.K.GV=function(u){var h=St(u),L=g.ZO(this.closeButton.element,h),Z=g.ZO(this.element,h);u=this.G&&g.ZO(this.G,h)&&g.li(u);h&&(Z||u)&&!L||this.hide()};
g.K.IR=function(){J9Y(g.B$(this.pI.L()),"user_info_panel",function(){window.location.reload()})};
g.K.kI=function(){var u=this.pI.L(),h={USER_NAME:u.userDisplayName,USER_EMAIL:u.Th};this.updateValue("icon",own());this.updateValue("watchingAsUsername",g.cI("Watching as $USER_NAME",h));u.Th?this.updateValue("watchingAsEmail",g.cI("($USER_EMAIL)",h)):this.updateValue("watchingAsEmail","")};g.P(Mdn,g.Vy);g.K=Mdn.prototype;g.K.Wl=function(){this.Ka.aP()};
g.K.NfB=function(){kq(this.dM.element)};
g.K.vFd=function(){fs(this,this.D.getDebugText(!0))&&y9(this.Wh,Am())};
g.K.CFX=function(){fs(this,this.D.getVideoEmbedCode())&&y9(this.Wh,iM1());this.D.logClick(this.L3.element);B2("EMBED",this.D.getVideoData().videoId,this.D.getPlaylistId()||"")};
g.K.wjd=function(){fs(this,this.D.getVideoUrl(!0,!0))&&y9(this.Wh,Mh());this.D.logClick(this.getVideoUrl.element);B2("COPY_PASTE",this.D.getVideoData().videoId,this.D.getPlaylistId()||"")};
g.K.TfH=function(){fs(this,this.D.getVideoUrl(!1,!0))&&y9(this.Wh,Mh());this.D.logClick(this.Js.element);B2("COPY_PASTE",this.D.getVideoData().videoId,this.D.getPlaylistId()||"")};
g.K.onLoopChange=function(u){var h;(h=this.tV)==null||Wf(h,u)};
g.K.pjX=function(){this.D.setLoopVideo(this.tV.getValue());this.Ka.aP();this.D.logClick(this.tV.element)};
g.K.Fva=function(u){this.D.reportPlaybackIssue();if(g.FC(u,this.D,!ms(this.D.L()))){u=this.D;var h=u.app.getFeedbackProductData();u.fH("onFeedbackStartRequest",h);u.isFullscreen()&&u.toggleFullscreen()}this.Ka.aP()};
g.K.qoI=function(){g.jq(this.D,"isVideoInfoVisible",[])?g.jq(this.D,"hideVideoInfo",[]):g.jq(this.D,"showVideoInfo",[]);this.Ka.aP()};
g.K.Soy=function(){this.nY&&(this.tT||(this.tT=new PYa(this.D,this.nY.element),g.V(this,this.tT),g.XC(this.D,this.tT.element,4)),this.tT.show(),this.Ka.aP(),this.D.logClick(this.nY.element))};
g.K.onVideoDataChange=function(u,h){this.O0(h)};
g.K.O0=function(u){var h=this.D.L(),L=this.D.getPresentingPlayerType()===2,Z=!L||u.isListed;Z=!h.RH&&!!u.videoId&&Z;h.playerStyle!=="play"?h="https://support.google.com/youtube/?p=report_playback":(h={contact_type:"playbackissue",html5:1,ei:u.eventId,v:u.videoId,p:"movies_playback"},u.N&&(h.fmt=u.N.itag),u.clientPlaybackNonce&&(h.cpn=u.clientPlaybackNonce),u.partnerId&&(h.partnerid=u.partnerId),h=g.sr("//support.google.com/googleplay/",h));this.L3.Ay(Z&&u.allowEmbed);this.getVideoUrl.Ay(Z);this.Js.Ay(Z&&
!u.isLivePlayback);this.W2.QF(h,"href");var y;(y=this.tV)==null||y.Ay(!u.isLivePlayback&&!L);var R;(R=this.nY)==null||R.Ay(!L)};
g.K.sU=function(u){g.Vy.prototype.sU.call(this,u);this.D.logVisibility(this.L3.element,u);this.D.logVisibility(this.getVideoUrl.element,u);this.D.logVisibility(this.Js.element,u);this.tV&&this.D.logVisibility(this.tV.element,u);this.nY&&this.D.logVisibility(this.nY.element,u)};g.P(lTn,g.sB);g.K=lTn.prototype;g.K.RR=function(u){var h=St(u);if(!(h&&(px(h,"a")||px(h,null,"ytp-no-contextmenu"))||this.BJ)){var L;this.XB=(u=(L=u.touches)==null?void 0:L.item(0))?new g.O6(u.clientX,u.clientY):new g.O6(0,0);this.RH.start()}};
g.K.ST=function(){this.RH.stop()};
g.K.nvI=function(){this.open(this.XB)};
g.K.aS=function(){if(this.X&&i1s(this.X)){var u=i1s(this.X).element;u.tabIndex=-1;u.focus()}else this.element.tabIndex=-1,this.element.focus()};
g.K.show=function(){this.X||(this.X=new Mdn(this.D,this,this.Wh),g.V(this,this.X),g.wW(this,this.X));this.X.onLoopChange(this.D.getLoopVideo());g.sB.prototype.show.call(this);this.D.logVisibility(this.element,!0);this.X.sU(!0)};
g.K.hide=function(){Q_w(this);g.sB.prototype.hide.call(this);this.D.logVisibility(this.element,!1);this.X&&this.X.sU(!1)};
g.K.R7d=function(u){var h=St(u);this.BJ||h&&(px(h,"a")||px(h,null,"ytp-no-contextmenu"))||(u.preventDefault(),this.open(new g.O6(u.pageX,u.pageY)))};
g.K.VF=function(u){if(u){var h=u.getBoundingClientRect();this.open(new g.O6(h.x,h.y))}g.sB.prototype.VF.call(this,u)};
g.K.open=function(u){SQl(this);var h=this.D.getVideoData();g.JW(this.element,"ytp-dni",h.Rc);this.element.style.left="";this.element.style.top="";u.x++;u.y++;g.sB.prototype.VF.call(this);var L=Un(this).body;h=new Eq(0,Infinity,Infinity,0);var Z=db(L);for(var y=Z.G.body,R=Z.G.documentElement,p=R9V(Z.G);L=ii1(L);)if((!g.WM||L.clientHeight!=0||L!=y)&&L!=y&&L!=R&&IS(L,"overflow")!="visible"){var J=g.Cf(L),O=new g.O6(L.clientLeft,L.clientTop);J.x+=O.x;J.y+=O.y;h.top=Math.max(h.top,J.y);h.right=Math.min(h.right,
J.x+L.clientWidth);h.bottom=Math.min(h.bottom,J.y+L.clientHeight);h.left=Math.max(h.left,J.x)}y=p.scrollLeft;p=p.scrollTop;h.left=Math.max(h.left,y);h.top=Math.max(h.top,p);Z=yMe(Z.G.defaultView||window);h.right=Math.min(h.right,y+Z.width);h.bottom=Math.min(h.bottom,p+Z.height);Z=h.top>=0&&h.left>=0&&h.bottom>h.top&&h.right>h.left?h:null;h=this.size;u=u.clone();h=h.clone();Z&&(p=h,y=5,(y&65)==65&&(u.x<Z.left||u.x>=Z.right)&&(y&=-2),(y&132)==132&&(u.y<Z.top||u.y>=Z.bottom)&&(y&=-5),u.x<Z.left&&y&1&&
(u.x=Z.left),y&16&&(R=u.x,u.x<Z.left&&(u.x=Z.left),u.x+p.width>Z.right&&(p.width=Math.min(Z.right-u.x,R+p.width-Z.left),p.width=Math.max(p.width,0))),u.x+p.width>Z.right&&y&1&&(u.x=Math.max(Z.right-p.width,Z.left)),u.y<Z.top&&y&4&&(u.y=Z.top),y&32&&(R=u.y,u.y<Z.top&&(u.y=Z.top),u.y+p.height>Z.bottom&&(p.height=Math.min(Z.bottom-u.y,R+p.height-Z.top),p.height=Math.max(p.height,0))),u.y+p.height>Z.bottom&&y&4&&(u.y=Math.max(Z.bottom-p.height,Z.top)));Z=new g.ZE(0,0,0,0);Z.left=u.x;Z.top=u.y;Z.width=
h.width;Z.height=h.height;g.xX(this.element,new g.O6(Z.left,Z.top));g.Tj(this.B);this.B.W(Un(this),"contextmenu",this.z7d);this.B.W(this.D,"fullscreentoggled",this.onFullscreenToggled);this.B.W(this.D,"pageTransition",this.Ak)};
g.K.z7d=function(u){if(!u.defaultPrevented){var h=St(u);g.ZO(this.element,h)||this.aP();this.D.L().disableNativeContextMenu&&u.preventDefault()}};
g.K.onFullscreenToggled=function(){this.aP();SQl(this)};
g.K.Ak=function(){this.aP()};g.P(DY,g.a);DY.prototype.onClick=function(){var u=this,h,L,Z,y;return g.G(function(R){if(R.G==1)return h=u.api.L(),L=u.api.getVideoData(),Z=u.api.getPlaylistId(),y=h.getVideoUrl(L.videoId,Z,void 0,!0),g.N(R,qQn(u,y),2);R.N&&vnl(u);u.api.logClick(u.element);g.i1(R)})};
DY.prototype.kI=function(){this.updateValue("icon",{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3  c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=XJs(this);g.JW(this.element,"ytp-copylink-button-visible",this.visible);
this.Ay(this.visible);this.tooltip.g2();this.api.logVisibility(this.element,this.visible&&this.T)};
DY.prototype.sU=function(u){g.a.prototype.sU.call(this,u);this.api.logVisibility(this.element,this.visible&&u)};
DY.prototype.Ni=function(){g.a.prototype.Ni.call(this);g.pc(this.element,"ytp-copylink-button-visible")};g.P(cV,g.a);cV.prototype.show=function(){g.a.prototype.show.call(this);g.kK(this.N)};
cV.prototype.hide=function(){this.B.stop();this.X=0;this.BX("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.pc(this.element,"ytp-chapter-seek");g.pc(this.element,"ytp-time-seeking");g.a.prototype.hide.call(this)};
cV.prototype.Us=function(u,h,L,Z){this.X=u===this.V?this.X+Z:Z;this.V=u;var y=u===-1?this.Y:this.S;y&&this.D.logClick(y);this.C?this.N.stop():g.u6(this.N);this.B.start();this.element.setAttribute("data-side",u===-1?"back":"forward");var R=3*this.D.m_().getPlayerSize().height;y=this.D.m_().getPlayerSize();y=y.width/3-3*y.height;this.G.style.width=R+"px";this.G.style.height=R+"px";u===1?(this.G.style.left="",this.G.style.right=y+"px"):u===-1&&(this.G.style.right="",this.G.style.left=y+"px");var p=R*
2.5;R=p/2;var J=this.BX("ytp-doubletap-ripple");J.style.width=p+"px";J.style.height=p+"px";u===1?(u=this.D.m_().getPlayerSize().width-h+Math.abs(y),J.style.left="",J.style.right=u-R+"px"):u===-1&&(u=Math.abs(y)+h,J.style.right="",J.style.left=u-R+"px");J.style.top="calc((33% + "+Math.round(L)+"px) - "+R+"px)";if(L=this.BX("ytp-doubletap-ripple"))L.classList.remove("ytp-doubletap-ripple"),L.classList.add("ytp-doubletap-ripple");T6w(this,this.C?this.X:Z)};g.P(onn,mK);g.K=onn.prototype;g.K.NN=function(u){this.vX||(this.vX=new aZ(this.D),g.V(this,this.vX));var h,L;if((h=this.wm)==null?0:(L=h.menu)==null?0:L.menuRenderer)this.vX.open(this.wm.menu.menuRenderer,u.target),u.preventDefault()};
g.K.Ji=function(){return!!this.G};
g.K.TE=function(){return!!this.G};
g.K.S9=function(u){u.target===this.overflowButton.element?u.preventDefault():(this.nH&&this.D.hB("innertubeCommand",this.nH),this.S5(!1))};
g.K.jH=function(){this.S5(!0);var u,h;((u=this.G)==null?0:(h=u.bannerData)==null?0:h.dismissedStatusKey)&&this.iP.push(this.G.bannerData.dismissedStatusKey);this.VN()};
g.K.YM=function(){this.VN();PV(this)};
g.K.U3I=function(u){var h=this,L;if(u.id!==((L=this.G)==null?void 0:L.identifier)){this.VN();L=g.C(this.gw);for(var Z=L.next();!Z.done;Z=L.next()){var y=Z.value,R=void 0,p=void 0;if((Z=(R=y)==null?void 0:(p=R.bannerData)==null?void 0:p.itemData)&&y.identifier===u.id){p=R=void 0;var J=((R=y)==null?void 0:(p=R.bannerData)==null?void 0:p.dismissedStatusKey)||"";if(this.iP.includes(J))break;this.G=y;this.banner.element.setAttribute("aria-label",Z.accessibilityLabel||"");Z.trackingParams&&(this.B=!0,this.D.setTrackingParams(this.badge.element,
Z.trackingParams));this.Y.show();ze(this);this.DI.Ay(!Z.stayInApp);s_b(this);UdR(this);xY(this);this.nH=g.n(Z.onTapCommand,rD);if(y=g.n(Z.menuOnTap,rD))this.wm=g.n(y,$77);y=void 0;this.banner.update({thumbnail:(y=(Z.thumbnailSources||[])[0])==null?void 0:y.url,title:Z.productTitle,price:Z.priceReplacementText?Z.priceReplacementText:Z.price,salesOriginalPrice:r9e(this),priceDropReferencePrice:B6f(this),promotionText:H1R(this),priceA11yText:zt1(this),affiliateDisclaimer:Z.affiliateDisclaimer,vendor:mdj(this)});
J=p=R=y=void 0;((y=Z)==null?0:(R=y.hiddenProductOptions)==null?0:R.showDropCountdown)&&((p=Z)==null?0:(J=p.hiddenProductOptions)==null?0:J.dropTimestampMs)&&(this.La=new g.EM(function(){nnw(h)},1E3),this.DI.hide(),this.countdownTimer.show(),nnw(this));
this.D.j("web_player_enable_featured_product_banner_exclusives_on_desktop")&&N6j(this)&&(this.mz=new g.EM(function(){GpY(h)},1E3),GpY(this))}}}};
g.K.VN=function(){this.G&&(this.G=void 0,this.MJ())};
g.K.onVideoDataChange=function(u,h){var L=this;u==="dataloaded"&&PV(this);var Z,y,R;u=g.n((Z=h.getWatchNextResponse())==null?void 0:(y=Z.playerOverlays)==null?void 0:(R=y.playerOverlayRenderer)==null?void 0:R.productsInVideoOverlayRenderer,eY7);this.overflowButton.show();this.dismissButton.hide();var p=u==null?void 0:u.featuredProductsEntityKey;this.trendingOfferEntityKey=u==null?void 0:u.trendingOfferEntityKey;this.gw.length||(VdV(this,p),xY(this));var J;(J=this.vj)==null||J.call(this);this.vj=g.$m.subscribe(function(){VdV(L,
p);xY(L)})};
g.K.Ni=function(){PV(this);s_b(this);UdR(this);mK.prototype.Ni.call(this)};g.P(tdn,g.a);tdn.prototype.onClick=function(){this.D.logClick(this.element,this.N)};g.P(W9i,g.NT);g.K=W9i.prototype;g.K.show=function(){g.NT.prototype.show.call(this);this.D.publish("infopaneldetailvisibilitychange",!0);this.D.logVisibility(this.element,!0);F9a(this,!0)};
g.K.hide=function(){g.NT.prototype.hide.call(this);this.D.publish("infopaneldetailvisibilitychange",!1);this.D.logVisibility(this.element,!1);F9a(this,!1)};
g.K.getId=function(){return this.B};
g.K.BS=function(){return this.itemData.length};
g.K.onVideoDataChange=function(u,h){if(h){var L,Z,y,R;this.update({title:((L=h.zG)==null?void 0:(Z=L.title)==null?void 0:Z.content)||"",body:((y=h.zG)==null?void 0:(R=y.bodyText)==null?void 0:R.content)||""});var p;u=((p=h.zG)==null?void 0:p.trackingParams)||null;this.D.setTrackingParams(this.element,u);p=g.C(this.itemData);for(u=p.next();!u.done;u=p.next())u.value.dispose();this.itemData=[];var J;if((J=h.zG)==null?0:J.ctaButtons)for(h=g.C(h.zG.ctaButtons),J=h.next();!J.done;J=h.next())if(J=g.n(J.value,
m7c))J=new tdn(this.D,J,this.G),J.ih&&(this.itemData.push(J),J.Og(this.items))}};
g.K.Ni=function(){this.hide();g.NT.prototype.Ni.call(this)};g.P(kpL,g.a);g.K=kpL.prototype;g.K.onVideoDataChange=function(u,h){Enb(this,h);this.ex&&uj1(this,this.ex)};
g.K.MN=function(u){var h=this.D.getVideoData();this.videoId!==h.videoId&&Enb(this,h);uj1(this,u.state);this.ex=u.state};
g.K.rS=function(u){(this.B=u)?this.hide():this.G&&this.show()};
g.K.uR=function(){this.N||this.VF();this.showControls=!0};
g.K.dG=function(){this.N||this.aP();this.showControls=!1};
g.K.VF=function(){var u;if((u=this.D)==null?0:u.j("embeds_web_enable_info_panel_sizing_fix")){var h;u=(h=this.D)==null?void 0:h.getPlayerSize();h=u.width<380;var L;u=u.height<(((L=this.D)==null?0:L.isEmbedsShortsMode())?400:280);var Z,y;if((((Z=this.D)==null?0:Z.getPlayerStateObject().isCued())||((y=this.D)==null?0:g.F(y.getPlayerStateObject(),1024)))&&h&&u)return}this.G&&!this.B&&(this.X.show(),this.D.publish("infopanelpreviewvisibilitychange",!0),this.D.logVisibility(this.element,!0))};
g.K.aP=function(){this.G&&!this.B&&(this.X.hide(),this.D.publish("infopanelpreviewvisibilitychange",!1),this.D.logVisibility(this.element,!1))};
g.K.Sua=function(){this.N=!1;this.showControls||this.aP()};var EtK={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(EtK).reduce(function(u,h){u[EtK[h]]=h;return u},{});
var ki8={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(ki8).reduce(function(u,h){u[ki8[h]]=h;return u},{});
var gtK={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(gtK).reduce(function(u,h){u[gtK[h]]=h;return u},{});var usr,jlq;usr=[{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"}];jlq=[{option:0,text:Cs(0)},{option:.25,text:Cs(.25)},{option:.5,text:Cs(.5)},{option:.75,text:Cs(.75)},{option:1,text:Cs(1)}];
g.ll=[{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:usr},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:Cs(.5)},{option:-1,text:Cs(.75)},{option:0,text:Cs(1)},{option:1,text:Cs(1.5)},{option:2,
text:Cs(2)},{option:3,text:Cs(3)},{option:4,text:Cs(4)}]},{option:"background",text:"Background color",options:usr},{option:"backgroundOpacity",text:"Background opacity",options:jlq},{option:"windowColor",text:"Window color",options:usr},{option:"windowOpacity",text:"Window opacity",options:jlq},{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:Cs(.25)},{option:.5,text:Cs(.5)},{option:.75,text:Cs(.75)},{option:1,text:Cs(1)}]}];var h9D=[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.P(R_l,g.UN);g.K=R_l.prototype;
g.K.lj=function(u){u.repeat||(this.X.LG=!1);var h=!1,L=u.keyCode,Z=St(u),y=!u.altKey&&!u.ctrlKey&&!u.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||h9D.includes(L)),R=!1,p=!1,J=this.api.L();u.defaultPrevented?(y=!1,p=!0):J.Uo&&!this.api.isMutedByEmbedsMutedAutoplay()&&(y=!1);if(L===9)h=!0;else{if(Z)switch(L){case 32:case 13:if(Z.tagName==="BUTTON"||Z.tagName==="A"||Z.tagName==="INPUT")h=!0,y=!1;else if(y){var O=Z.getAttribute("role");!O||O!=="option"&&O!=="button"&&O.indexOf("menuitem")!==0||
(h=!0,Z.click(),R=!0)}this.api.j("enable_key_press_enter_logging")&&(Z=g.S9(),O=XDL(247608),Z&&O&&g.EC(bs)(void 0,Z,O,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",void 0,void 0));break;case 37:case 39:case 36:case 35:h=Z.getAttribute("role")==="slider";break;case 38:case 40:O=Z.getAttribute("role"),Z=L===38?Z.previousSibling:Z.nextSibling,O==="slider"?h=!0:y&&(O==="option"?(Z&&Z.getAttribute("role")==="option"&&Z.focus(),R=h=!0):O&&O.indexOf("menuitem")===0&&(Z&&Z.hasAttribute("role")&&Z.getAttribute("role").indexOf("menuitem")===
0&&Z.focus(),R=h=!0))}if(y&&!R)switch(L){case 38:R=Math.min(this.api.getVolume()+5,100);Re(this.Wh,R,!1);this.api.setVolume(R);p=R=!0;break;case 40:R=Math.max(this.api.getVolume()-5,0);Re(this.Wh,R,!0);this.api.setVolume(R);p=R=!0;break;case 36:this.api.VO()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),p=R=!0);break;case 35:this.api.VO()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),p=R=!0)}}h&&il(this,!0);(h||p)&&this.xJ.Bc();(R||
y&&this.handleGlobalKeyDown(L,u.shiftKey,u.ctrlKey,u.altKey,u.metaKey,u.key,u.code,u.repeat))&&u.preventDefault();J.V&&(u={keyCode:u.keyCode,altKey:u.altKey,ctrlKey:u.ctrlKey,metaKey:u.metaKey,shiftKey:u.shiftKey,handled:u.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.EX("onKeyPress",u))};
g.K.K2=function(u){var h=u.keyCode;(!this.api.j("web_player_spacebar_control_bugfix")||this.api.j("web_player_spacebar_control_bugfix")&&!this.B)&&this.handleGlobalKeyUp(h,u.shiftKey,u.ctrlKey,u.altKey,u.metaKey,u.key,u.code)&&u.preventDefault()};
g.K.handleGlobalKeyUp=function(u,h,L,Z,y,R,p){this.api.publish("keyboardserviceglobalkeyup",{keyCode:u,shiftKey:h,ctrlKey:L,altKey:Z,metaKey:y,key:R,code:p});h=!1;if(this.X.LG)return h;(L=g.lM(this.api.uP()))&&(L=L.A6)&&L.BJ&&(L.BC(u),h=!0);switch(u){case 9:il(this,!0);h=!0;break;case 32:if(this.api.j("web_speedmaster_spacebar_control")&&(!this.api.j("web_player_spacebar_control_bugfix")&&!this.B||this.api.j("web_player_spacebar_control_bugfix"))&&!this.api.L().Uo){var J,O;u=(J=this.progressBar)==
null?void 0:(O=J.N)==null?void 0:O.isEnabled;h=this.nA(u)}}return h};
g.K.handleGlobalKeyDown=function(u,h,L,Z,y,R,p,J){J||(this.X.LG=!1);var O=!1,f=this.api.L();if(f.Uo&&!this.api.isMutedByEmbedsMutedAutoplay())return O;var D=g.lM(this.api.uP());if(D&&(D=D.A6)&&D.BJ)switch(u){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:O=D.zJ(u)}f.C||O||(O=R||String.fromCharCode(u).toLowerCase(),this.N+=O,"awesome".indexOf(this.N)===0?(O=!0,7===this.N.length&&Gmn(this.api.getRootNode(),"ytp-color-party")):(this.N=O,O="awesome".indexOf(this.N)===0));if(!O&&(!this.api.isMutedByEmbedsMutedAutoplay()||
h9D.includes(u))){var c=this.api.getVideoData(),I,A;D=(I=this.progressBar)==null?void 0:(A=I.N)==null?void 0:A.isEnabled;I=c?c.dD:[];A=a$?Z:L;switch(u){case 80:h&&!f.vX&&(y9(this.Wh,Upi(),"Previous"),this.api.previousVideo(),O=!0);break;case 78:h&&!f.vX&&(y9(this.Wh,i2(),"Next"),this.api.nextVideo(),O=!0);break;case 74:this.api.VO()&&(this.api.startSeekCsiAction(),this.G?this.api.j("enable_key_press_seek_logging")?(O=Q9(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),Ie(this.G,
-1,10,O)):Ie(this.G,-1,10):y9(this.Wh,{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),O=!0);break;case 76:this.api.VO()&&(this.api.startSeekCsiAction(),this.G?this.api.j("enable_key_press_seek_logging")?(O=Q9(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),Ie(this.G,1,10,O)):Ie(this.G,1,10):y9(this.Wh,{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),O=!0);break;case 37:this.api.VO()&&(this.api.startSeekCsiAction(),A?(A=L0s(I,this.api.getCurrentTime()*1E3),A!==-1&&this.G!=null&&(YQn(this.G,-1,I[A].title),this.api.seekTo(I[A].startTime/1E3,void 0,void 0,void 0,53),O=!0)):(this.G?this.api.j("enable_key_press_seek_logging")?(O=Q9(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),Ie(this.G,-1,5,O)):Ie(this.G,-1,5):y9(this.Wh,{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),O=!0));break;case 39:this.api.VO()&&(this.api.startSeekCsiAction(),A?(A=h_1(I,this.api.getCurrentTime()*1E3),A!==-1&&this.G!=null&&(YQn(this.G,1,I[A].title),this.api.seekTo(I[A].startTime/1E3,void 0,void 0,void 0,52),O=!0)):(this.G!=null?this.api.j("enable_key_press_seek_logging")?(O=Q9(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),Ie(this.G,1,5,O)):Ie(this.G,1,5):y9(this.Wh,{K:"svg",J:{height:"100%",version:"1.1",
viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),O=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),Re(this.Wh,this.api.getVolume(),!1)):(this.api.mute(),Re(this.Wh,0,!0));O=!0;break;case 32:O=this.api.j("web_speedmaster_spacebar_control")?!this.api.L().vX:this.nA(D);break;case 75:O=this.nA(D);break;case 190:h?f.enableSpeedOptions&&K0n(this)&&(O=this.api.getPlaybackRate(),this.api.setPlaybackRate(O+.25,!0),hts(this.Wh,!1),O=!0):this.api.VO()&&(this.step(1),O=!0);break;case 188:h?
f.enableSpeedOptions&&K0n(this)&&(O=this.api.getPlaybackRate(),this.api.setPlaybackRate(O-.25,!0),hts(this.Wh,!0),O=!0):this.api.VO()&&(this.step(-1),O=!0);break;case 70:gTR(this.api)&&(this.api.toggleFullscreen().catch(function(){}),O=!0);
break;case 27:D?(this.progressBar.HL(),O=!0):this.C()&&(O=!0)}if(f.controlsType!=="3")switch(u){case 67:g.By(this.api.uP())&&(f=this.api.getOption("captions","track"),this.api.toggleSubtitles(),L91(this.Wh,!f||f&&!f.displayName),O=!0);break;case 79:Sx(this,"textOpacity");break;case 87:Sx(this,"windowOpacity");break;case 187:case 61:Sx(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:Sx(this,"fontSizeIncrement",!0,!0)}var x;h||L||Z||(u>=48&&u<=57?x=u-48:u>=96&&u<=105&&(x=u-96));x!=null&&this.api.VO()&&
(this.api.startSeekCsiAction(),f=this.api.getProgressState(),this.api.seekTo(x/10*(f.seekableEnd-f.seekableStart)+f.seekableStart,void 0,void 0,void 0,81),O=!0);O&&this.xJ.Bc()}this.B||this.api.publish("keyboardserviceglobalkeydown",{keyCode:u,shiftKey:h,ctrlKey:L,altKey:Z,metaKey:y,key:R,code:p,repeat:J},this.X);return O};
g.K.step=function(u){this.api.VO();if(this.api.getPlayerStateObject().isPaused()){var h=this.api.getVideoData().N;h&&(h=h.video)&&this.api.seekBy(u/(h.fps||30),void 0,void 0,u>0?77:78)}};
g.K.nA=function(u){if(!this.api.L().vX){var h;var L,Z=(h=this.api.getVideoData())==null?void 0:(L=h.getPlayerResponse())==null?void 0:L.playabilityStatus;if(Z){var y;h=((y=g.n(Z.miniplayer,gD3))==null?void 0:y.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else h=!1;h&&this.api.hB("onExpandMiniplayer");u?this.progressBar.o2():(u=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.Wh.lZ(u),u?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
g.K.Ni=function(){g.u6(this.T);g.UN.prototype.Ni.call(this)};g.P(g.XJ,g.a);g.XJ.prototype.f5=LV(11);
g.XJ.prototype.kI=function(){var u=this.D.L(),h=u.X||this.D.j("web_player_hide_overflow_button_if_empty_menu")&&this.yg.isEmpty();u=g.MW(u)&&g.iM(this.D)&&g.F(this.D.getPlayerStateObject(),128);var L=this.D.getPlayerSize();this.visible=this.D.Bo()&&!u&&L.width>=240&&!g.$H(this.D.getVideoData())&&!h&&!this.G&&!this.D.isEmbedsShortsMode();g.JW(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.D.g2();this.D.logVisibility(this.element,this.visible&&this.T)};
g.XJ.prototype.sU=function(u){g.a.prototype.sU.call(this,u);this.D.logVisibility(this.element,this.visible&&u)};
g.XJ.prototype.Ni=function(){g.a.prototype.Ni.call(this);g.pc(this.element,"ytp-overflow-button-visible")};g.P(JIY,g.NT);g.K=JIY.prototype;g.K.Xc=function(u){u=St(u);g.ZO(this.element,u)&&(g.ZO(this.G,u)||g.ZO(this.closeButton,u)||GF(this))};
g.K.aP=function(){g.NT.prototype.aP.call(this);this.D.CY(this.element)};
g.K.show=function(){this.BJ&&this.D.publish("OVERFLOW_PANEL_OPENED");g.NT.prototype.show.call(this);this.element.setAttribute("aria-modal","true");fCj(this,!0)};
g.K.hide=function(){g.NT.prototype.hide.call(this);this.element.removeAttribute("aria-modal");fCj(this,!1)};
g.K.onFullscreenToggled=function(u){!u&&this.We()&&GF(this)};
g.K.isEmpty=function(){return this.actionButtons.length===0};
g.K.focus=function(){for(var u=g.C(this.actionButtons),h=u.next();!h.done;h=u.next())if(h=h.value,h.BJ){h.focus();break}};g.P(DVL,g.a);DVL.prototype.onClick=function(u){g.FC(u,this.api)&&this.api.playVideoAt(this.index)};g.P(cIn,g.NT);g.K=cIn.prototype;g.K.show=function(){g.NT.prototype.show.call(this);this.G.W(this.api,"videodatachange",this.SV);this.G.W(this.api,"onPlaylistUpdate",this.SV);this.SV()};
g.K.hide=function(){g.NT.prototype.hide.call(this);g.Tj(this.G);this.updatePlaylist(null)};
g.K.SV=function(){this.updatePlaylist(this.api.getPlaylist());this.api.L().X&&(this.BX("ytp-playlist-menu-title-name").removeAttribute("href"),this.X&&(this.FJ(this.X),this.X=null))};
g.K.RX=function(){var u=this.playlist,h=u.author,L=h?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",Z={CURRENT_POSITION:String(u.index+1),PLAYLIST_LENGTH:String(u.getLength())};h&&(Z.AUTHOR=h);this.update({title:u.title,subtitle:g.cI(L,Z),playlisturl:this.api.getVideoUrl(!0)});h=u.N;if(h===this.B)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[u.index];else{L=g.C(this.playlistData);for(Z=L.next();!Z.done;Z=L.next())Z.value.dispose();
L=u.getLength();this.playlistData=[];for(Z=0;Z<L;Z++){var y=new DVL(this.api,u,Z);this.playlistData.push(y);y.Og(this.items)}this.selected=this.playlistData[u.index];this.B=h}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.K.A4a=function(u){var h=this.api.getVideoUrl(!0);g.bM(h,this.api,u)};
g.K.updatePlaylist=function(u){this.playlist!==u?(this.playlist&&this.playlist.unsubscribe("shuffle",this.RX,this),this.playlist=u,this.B=null,u?(u.subscribe("shuffle",this.RX,this),this.RX()):this.BJ&&this.hide()):this.playlist&&this.RX()};
g.K.focus=function(){this.selected.focus()};
g.K.Ni=function(){this.hide();g.NT.prototype.Ni.call(this)};g.P(vV,g.a);vV.prototype.hide=function(){g.a.prototype.hide.call(this);this.sU(!1);this.api.g2()};
vV.prototype.kI=function(){var u=g.MW(this.api.L());g.JW(this.element,"ytp-playlist-menu-button-tiny",this.api.m_().getPlayerSize().width<400&&!u);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.cI("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.cI("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.BJ||(this.show(),
this.api.g2()),this.visible=!0,this.sU(!0)):this.BJ&&this.hide()};
vV.prototype.sU=function(u){g.a.prototype.sU.call(this,u);this.api.logVisibility(this.element,this.visible&&u)};
vV.prototype.G=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.kI,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.kI,this);this.kI()};g.P(ICf,g.a);g.K=ICf.prototype;g.K.BO=function(){this.B?Chw(this):Phn(this)};
g.K.zV=function(){this.B?(qS(this),this.V=!0):Phn(this)};
g.K.jPH=function(){this.C=!0;this.AT(1);this.D.publish("promotooltipacceptbuttonclicked",this.acceptButton);qS(this);this.N&&this.D.logClick(this.acceptButton)};
g.K.Xja=function(){this.C=!0;this.AT(2);qS(this);this.N&&this.D.logClick(this.dismissButton)};
g.K.gG=function(u){if(this.D.getPresentingPlayerType()===1||this.D.getPresentingPlayerType()===2&&this.S){var h=!0,L=g.eT("ytp-ad-overlay-ad-info-dialog-container"),Z=g.eT("ytp-ad-player-overlay-layout"),y=St(u);if(this.X&&y&&g.ZO(this.X,y))this.X=null;else{this.D.getPresentingPlayerType()===1&&y&&Array.from(y.classList).forEach(function(O){if(O.startsWith("ytp-ad")||O.startsWith("ytp-skip-ad"))h=!1});
var R=MPj(this.tooltipRenderer),p;if(((p=this.tooltipRenderer.dismissStrategy)==null?void 0:p.type)==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE")R&&(h=h&&!g.ZO(this.element,y));else{var J;((J=this.tooltipRenderer.dismissStrategy)==null?void 0:J.type)==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(h=R?!1:h&&g.ZO(this.element,y))}this.G&&this.BJ&&!L&&!Z&&(!y||h&&g.li(u))&&(this.C=!0,qS(this))}}};
g.K.AT=function(u){var h=this.tooltipRenderer.promoConfig;if(h){switch(u){case 0:var L;if((L=h.impressionEndpoints)==null?0:L.length)var Z=h.impressionEndpoints[0];break;case 1:Z=h.acceptCommand;break;case 2:Z=h.dismissCommand}var y;u=(y=g.n(Z,zYu))==null?void 0:y.feedbackToken;Z&&u&&(y={feedbackTokens:[u]},u=this.D.L0(),(u==null?0:QDe(Z,u.w$))&&e$(u,Z,y))}};
g.K.QZ=function(){this.V||(this.G||(this.G=AIl(this)),Chw(this))};
var xVs={"ytp-settings-button":g.vL()};g.P(TO,g.a);TO.prototype.onStateChange=function(u){this.Sq(u.state)};
TO.prototype.Sq=function(u){this.Ay(g.F(u,2))};
TO.prototype.onClick=function(){this.D.getPlayerStateObject().isOrWillBePlaying();this.D.playVideo()};g.P(YY,g.a);YY.prototype.onClick=function(u){this.api.logClick(this.element);var h=g.sr(this.api.L().a7,{focusSearch:"true"}),L={};g.jq(this.api,"addEmbedsConversionTrackingParams",[L]);h=g.sr(h,L);var Z;(L=(Z=this.api.getVideoData().KU)==null?void 0:Z.params)&&(h=g.sr(h,{bp:L}));g.zx(window,h);u.preventDefault()};
YY.prototype.G=function(){if(this.api.j("embeds_web_enable_search_button")){var u=this.api.L();var h=this.api.getVideoData(),L=this.api.m_().getPlayerSize().width;u=g.MW(u)&&L>=this.N&&!u.X&&!h.isAd()&&!this.api.isEmbedsShortsMode()}else u=!1;this.visible=u;this.Ay(this.visible);g.JW(this.element,"ytp-search-button-visible",this.visible);g.JW(this.element,"ytp-show-search-title",!this.api.Bo());this.api.logVisibility(this.element,this.visible&&this.T)};
YY.prototype.sU=function(u){g.a.prototype.sU.call(this,u);this.api.logVisibility(this.element,this.visible&&u)};g.P(g.oe,g.a);g.K=g.oe.prototype;g.K.Yz=LV(8);g.K.onClick=function(){var u=this,h=this.api.L(),L=this.api.getVideoData(this.api.getPresentingPlayerType()),Z=this.api.getPlaylistId();h=this.api.j("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):h.getVideoUrl(L.videoId,Z,void 0,!0);if(navigator.share)try{var y=navigator.share({title:L.title,url:h});y instanceof Promise&&y.catch(function(R){Q2s(u,R)})}catch(R){R instanceof Error&&Q2s(this,R)}else this.G.t9(),GF(this.X,this.element,!1);
this.api.logClick(this.element)};
g.K.kI=function(){var u=this.api.L(),h=this.api.isEmbedsShortsMode();g.JW(this.element,"ytp-show-share-title",g.MW(u)&&!h);this.G.GN()&&h?(u=(this.api.m_().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Oz(this.element,"right",u+"px")):h&&g.Oz(this.element,"right","0px");this.updateValue("icon",{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});
this.visible=iWe(this);g.JW(this.element,"ytp-share-button-visible",this.visible);this.Ay(this.visible);this.tooltip.g2();this.api.logVisibility(this.element,iWe(this)&&this.T)};
g.K.sU=function(u){g.a.prototype.sU.call(this,u);this.api.logVisibility(this.element,this.visible&&u)};
g.K.Ni=function(){g.a.prototype.Ni.call(this);g.pc(this.element,"ytp-share-button-visible")};g.P(SAw,g.NT);g.K=SAw.prototype;g.K.lR=function(u){u=St(u);g.ZO(this.C,u)||g.ZO(this.closeButton,u)||GF(this)};
g.K.aP=function(){g.NT.prototype.aP.call(this);this.tooltip.CY(this.element);this.api.logVisibility(this.G,!1);for(var u=g.C(this.X),h=u.next();!h.done;h=u.next())h=h.value,this.api.hasVe(h.element)&&this.api.logVisibility(h.element,!1)};
g.K.show=function(){var u=this.BJ;g.NT.prototype.show.call(this);this.kI();u||this.api.hB("onSharePanelOpened")};
g.K.uDa=function(){this.BJ&&this.kI()};
g.K.kI=function(){var u=this;g.yN(this.element,"ytp-share-panel-loading");g.pc(this.element,"ytp-share-panel-fail");var h=this.api.getVideoData(),L=this.api.getPlaylistId()&&this.B.checked;h.getSharePanelCommand&&e$(this.api.L0(),h.getSharePanelCommand,{includeListId:L}).then(function(Z){u.ww()||(g.pc(u.element,"ytp-share-panel-loading"),vul(u,Z))});
h=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",h);this.updateValue("linkText",h);this.updateValue("shareLinkWithUrl",g.cI("Share link $URL",{URL:h}));kq(this.G);this.api.logVisibility(this.G,!0)};
g.K.onFullscreenToggled=function(u){!u&&this.We()&&GF(this)};
g.K.focus=function(){this.G.focus()};
g.K.Ni=function(){g.NT.prototype.Ni.call(this);Xqb(this)};g.P(YAw,mK);g.K=YAw.prototype;g.K.Ni=function(){HWV(this);mK.prototype.Ni.call(this)};
g.K.S9=function(u){u.target!==this.dismissButton.element&&(this.S5(!1),this.D.hB("innertubeCommand",this.onClickCommand))};
g.K.jH=function(){this.ZI=!0;this.S5(!0);this.MJ()};
g.K.eAX=function(u){this.V=u;this.MJ()};
g.K.onVideoDataChange=function(u,h){if(u=!!h.videoId&&this.videoId!==h.videoId)this.videoId=h.videoId,this.ZI=!1,this.XB=!0,this.S=this.RH=!1,HWV(this),Gol(this,!1),this.N=this.G=!1,UI(this),oub(this);if(u||!h.videoId)this.AB=this.B=!1;var L,Z;if(h==null?0:(L=h.getPlayerResponse())==null?0:(Z=L.videoDetails)==null?0:Z.isLiveContent)this.ut(!1);else{var y,R,p;h=g.n((y=h.getWatchNextResponse())==null?void 0:(R=y.playerOverlays)==null?void 0:(p=R.playerOverlayRenderer)==null?void 0:p.productsInVideoOverlayRenderer,
eY7);this.V=this.enabled=!1;if(h){if(y=h==null?void 0:h.featuredProductsEntityKey){R=g.$m.getState().entities;var J;if((J=p7(R,"featuredProductsEntity",y))==null?0:J.productsData){this.ut(!1);return}}this.enabled=!0;if(!this.B){var O;J=(O=h.badgeInteractionLogging)==null?void 0:O.trackingParams;(this.B=!!J)&&this.D.setTrackingParams(this.badge.element,J||null)}if(!this.AB){var f;if(this.AB=!((f=h.dismissButton)==null||!f.trackingParams)){var D;this.D.setTrackingParams(this.dismissButton.element,((D=
h.dismissButton)==null?void 0:D.trackingParams)||null)}}h.isContentForward&&(O=h.productsData,Gol(this,!0),oub(this),O=UVR(this,O),f=[],O.length>0&&f.push(O[0]),O.length>1&&(D=new g.a({K:"div",U:"ytp-suggested-action-more-products-icon"}),g.V(this,D),f.push(D),f.push.apply(f,g.l(O.slice(1)))),this.C=new g.a({K:"div",Z:f,U:"ytp-suggested-action-content-forward-container"}),g.V(this,this.C),this.T7.element.append(this.C.element));this.text=g.cL(h.text);var c;if(O=(c=h.dismissButton)==null?void 0:c.a11yLabel)this.VA=
g.cL(O);this.onClickCommand=h.onClickCommand;this.timing=h.timing;this.Rl()}o_f(this);ze(this);this.MJ()}};
g.K.Ji=function(){return!this.V&&this.enabled&&!this.ZI&&!this.D.Bo()&&!this.Ca&&(this.S||this.XB)};
g.K.mZ=function(u){mK.prototype.mZ.call(this,u);if(this.G||this.N)this.timing&&NS(this.timing.preview)&&(this.G=!1,UI(this),this.N=!1,UI(this),this.D.qm("shopping_overlay_preview_collapsed"),this.D.qm("shopping_overlay_preview_expanded"),u=GO(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),NS(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.D.qm("shopping_overlay_expanded"),u.end=this.timing.expanded.endSec*1E3),this.D.Rl([u])),
this.RH=!0,ze(this);UI(this)};
g.K.ut=function(u){(this.S=u)?(B_(this),ze(this,!1)):(HWV(this),this.aH.start());this.MJ()};
g.K.Rl=function(u){var h=this.timing;u=(u===void 0?0:u)+this.D.getCurrentTime();var L=[],Z=h.visible,y=h.preview;h=h.expanded;NS(Z)&&(qAV(Z,u),L.push(GO(Z.startSec,Z.endSec,"shopping_overlay_visible")));NS(y)&&(qAV(y,u),Z=y.startSec+1,L.push(GO(y.startSec,Z,"shopping_overlay_preview_collapsed")),L.push(GO(Z,y.endSec,"shopping_overlay_preview_expanded")));NS(h)&&(qAV(h,u),L.push(GO(h.startSec,h.endSec,"shopping_overlay_expanded")));this.D.Rl(L)};g.P(z_V,g.a);
z_V.prototype.kI=function(){var u=this.api.L();this.Ay(g.MW(u)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.BJ);var h=this.api.getVideoData(),L=!1;this.api.getPresentingPlayerType()===2?L=!!h.videoId&&!!h.isListed&&!!h.author&&!!h.Ca&&!!h.profilePicture:g.MW(u)&&(L=!!h.videoId&&!!h.Ca&&!!h.profilePicture&&!g.$H(h)&&!u.X&&!(u.S&&this.api.getPlayerSize().width<200));var Z=h.profilePicture;u=g.MW(u)?h.expandedTitle:h.author;Z=Z===void 0?
"":Z;u=u===void 0?"":u;L?(this.N!==Z&&(this.G.style.backgroundImage="url("+Z+")",this.N=Z),this.updateValue("channelLogoLabel",g.cI("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:u})),g.yN(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.pc(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.G,L&&this.T);this.api.logVisibility(this.channelName,L&&this.T);this.subscribeButton&&(this.subscribeButton.channelId=h.Xy);this.updateValue("expandedTitle",h.expandedTitle)};g.P(HV,g.NT);HV.prototype.show=function(){g.NT.prototype.show.call(this);this.G.start()};
HV.prototype.hide=function(){g.NT.prototype.hide.call(this);this.G.stop()};
HV.prototype.Lg=function(u,h){u==="dataloaded"&&((this.jY=h.jY,this.t4=h.t4,isNaN(this.jY)||isNaN(this.t4))?this.X&&(this.D.qm("intro"),this.D.removeEventListener(g.hc("intro"),this.V),this.D.removeEventListener(g.L2("intro"),this.C),this.D.removeEventListener("onShowControls",this.B),this.hide(),this.X=!1):(this.D.addEventListener(g.hc("intro"),this.V),this.D.addEventListener(g.L2("intro"),this.C),this.D.addEventListener("onShowControls",this.B),u=new g.uW(this.jY,this.t4,{priority:9,namespace:"intro"}),
this.D.Rl([u]),this.X=!0))};g.P(rq,g.a);rq.prototype.onClick=function(){this.D.ue()};
rq.prototype.kI=function(){var u=!0;g.MW(this.D.L())&&(u=u&&this.D.m_().getPlayerSize().width>=480);this.Ay(u);this.updateValue("icon",this.D.kJ()?{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,J:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.P(dVe,g.a);dVe.prototype.Ni=function(){this.G=null;g.a.prototype.Ni.call(this)};g.P(BV,g.a);BV.prototype.onClick=function(){this.D.hB("innertubeCommand",this.N)};
BV.prototype.Y=function(u){u!==this.C&&(this.update({title:u,ariaLabel:u}),this.C=u);u?this.show():this.hide()};
BV.prototype.S=function(){this.G.disabled=this.N==null;g.JW(this.G,"ytp-chapter-container-disabled",this.G.disabled);this.cj()};g.P(zO,BV);zO.prototype.onClickCommand=function(u){g.n(u,aB)&&this.cj()};
zO.prototype.updateVideoData=function(u,h){var L,Z,y;u=g.n((L=h.getWatchNextResponse())==null?void 0:(Z=L.playerOverlays)==null?void 0:(y=Z.playerOverlayRenderer)==null?void 0:y.decoratedPlayerBarRenderer,xm);L=g.n(u==null?void 0:u.playerBarActionButton,g.TW);this.D.j("web_player_updated_entrypoint")&&(this.V=fn(L==null?void 0:L.text));this.N=L==null?void 0:L.command;BV.prototype.S.call(this)};
zO.prototype.cj=function(){var u=this.D.j("web_player_updated_entrypoint")?this.V:"",h=this.B.G,L,Z=((L=this.D.getLoopRange())==null?void 0:L.type)==="clips";if(h.length>1&&!Z){u=this.D.getProgressState().current*1E3;L=MS(h,u);u=h[L].title||"Chapters";if(L!==this.currentIndex||this.X)this.D.hB("innertubeCommand",h[L].onActiveCommand),this.currentIndex=L;this.X=!1}else this.X=!0;BV.prototype.Y.call(this,u)};g.P(mD,g.a);mD.prototype.C=function(u){g.F(u.state,32)?nuw(this,this.api.p7()):this.BJ&&(g.F(u.state,16)||g.F(u.state,1))||this.G.hide()};
mD.prototype.q3=function(){var u=this.api.getPlayerStateObject();(g.F(u,32)||g.F(u,16))&&s2j(this)};
mD.prototype.V=function(){this.X=NaN;s2j(this)};
mD.prototype.hide=function(){this.N&&nuw(this,null);g.a.prototype.hide.call(this)};g.P(wq1,g.a);g.K=wq1.prototype;g.K.onClick=function(){var u=this;if(this.D.L().Ca||this.D.L().S){this.D.logClick(this.element);try{this.D.toggleFullscreen().catch(function(h){u.x$(h)})}catch(h){this.x$(h)}}else GF(this.message,this.element,!0)};
g.K.x$=function(u){String(u).includes("fullscreen error")?g.G3(u):g.UZ(u);this.wY()};
g.K.wY=function(){this.disable();this.message.VF(this.element,!0)};
g.K.nx=function(){x9()===this.D.getRootNode()?this.X.start():(this.X.stop(),this.message&&this.message.hide())};
g.K.yh=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var u=window.screen.width*.9,h=window.screen.height*.9,L=Math.max(window.outerWidth,window.innerWidth),Z=Math.max(window.outerHeight,window.innerHeight);if(L>Z!==u>h){var y=L;L=Z;Z=y}u>L&&h>Z&&this.wY()}};
g.K.disable=function(){var u=this;if(!this.message){var h=(cD(["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.NT(this.D,{K:"div",CI:["ytp-popup","ytp-generic-popup"],J:{role:"alert",tabindex:"0"},Z:[h[0],{K:"a",J:{href:"https://support.google.com/youtube/answer/6276924",
target:this.D.L().Y},dw:h[2]},h[4]]},100,!0);this.message.hide();g.V(this,this.message);this.message.subscribe("show",function(L){u.N.Re(u.message,L)});
g.XC(this.D,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.G)();this.G=null}};
g.K.kI=function(){var u=gTR(this.D),h=this.D.L().S&&this.D.getPlayerSize().width<250;this.Ay(u&&!h);var L;((L=this.D.L())==null?0:L.j("embeds_use_parent_visibility_in_ve_logging"))?this.D.logVisibility(this.element,this.BJ&&this.T):this.D.logVisibility(this.element,this.BJ)};
g.K.AC=function(u){if(u){var h={K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"g",U:"ytp-fullscreen-button-corner-2",Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{K:"g",U:"ytp-fullscreen-button-corner-3",Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{K:"g",U:"ytp-fullscreen-button-corner-0",Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{K:"g",
U:"ytp-fullscreen-button-corner-1",Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};u=g.A7(this.D,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.D.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(L){g.G3(L)})}else h={K:"svg",
J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"g",U:"ytp-fullscreen-button-corner-0",Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{K:"g",U:"ytp-fullscreen-button-corner-1",Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{K:"g",U:"ytp-fullscreen-button-corner-2",Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{K:"g",U:"ytp-fullscreen-button-corner-3",
Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},u=g.A7(this.D,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});u=this.message?null:u;this.update({title:u,icon:h});this.N.l2().g2()};
g.K.Ni=function(){this.message||((0,this.G)(),this.G=null);g.a.prototype.Ni.call(this)};
g.K.sU=function(u){g.a.prototype.sU.call(this,u);var h;((h=this.D.L())==null?0:h.j("embeds_use_parent_visibility_in_ve_logging"))&&this.D.logVisibility(this.element,this.BJ&&u)};g.P(dq,g.a);dq.prototype.onClick=function(){this.D.logClick(this.element);this.D.seekBy(this.G,!0);var u=this.G>0?1:-1,h=Math.abs(this.G),L=this.D.Vg().Ub;L&&Ie(L,u,h);this.N.isActive()?this.X=!0:(u=["ytp-jump-spin"],this.G<0&&u.push("backwards"),this.element.classList.add.apply(this.element.classList,g.l(u)),g.kK(this.N))};g.P(V9,BV);V9.prototype.onClickCommand=function(u){g.n(u,scK)&&this.cj()};
V9.prototype.updateVideoData=function(){var u,h;this.N=(u=aCn(this))==null?void 0:(h=u.onTap)==null?void 0:h.innertubeCommand;BV.prototype.S.call(this)};
V9.prototype.cj=function(){var u="",h=this.B.C,L,Z=(L=aCn(this))==null?void 0:L.headerTitle;L=Z?g.cL(Z):"";var y;Z=((y=this.D.getLoopRange())==null?void 0:y.type)==="clips";h.length>1&&!Z&&(u=this.D.getProgressState().current*1E3,y=j2i(h,u),u=y!=null?h[y].title:L,y!=null&&y!==this.currentIndex&&(this.D.hB("innertubeCommand",h[y].onActiveCommand),this.currentIndex=y));BV.prototype.Y.call(this,u)};g.P(ns,g.a);ns.prototype.onClick=function(){this.D.hB("onCollapseMiniplayer");this.D.logClick(this.element)};
ns.prototype.kI=function(){this.visible=!this.D.isFullscreen();this.Ay(this.visible);this.D.logVisibility(this.element,this.visible&&this.T)};
ns.prototype.sU=function(u){g.a.prototype.sU.call(this,u);this.D.logVisibility(this.element,this.visible&&u)};g.P(sI,g.a);g.K=sI.prototype;g.K.AN=function(u){this.visible=u.width>=300||this.DI;this.Ay(this.visible);this.D.logVisibility(this.element,this.visible&&this.T)};
g.K.Lzi=function(){this.D.L().aH?this.D.isMuted()?this.D.unMute():this.D.mute():GF(this.message,this.element,!0);this.D.logClick(this.element)};
g.K.onVolumeChange=function(u){this.setVolume(u.volume,u.muted)};
g.K.setVolume=function(u,h){var L=this,Z=h?0:u/100,y=this.D.L();u=Z===0?1:u>50?1:0;if(this.C!==u){var R=this.RH;isNaN(R)?W0w(this,u):IYs(this.gw,function(J){W0w(L,R+(L.C-R)*J)},250);
this.C=u}Z=Z===0?1:0;if(this.B!==Z){var p=this.Y;isNaN(p)?F0l(this,Z):IYs(this.AB,function(J){F0l(L,p+(L.B-p)*J)},250);
this.B=Z}y.aH&&(y=g.A7(this.D,"Mute","m"),Z=g.A7(this.D,"Unmute","m"),this.updateValue("title",h?Z:y),this.update({"data-title-no-tooltip":h?"Unmute":"Mute"}),this.tooltip.g2())};
g.K.sU=function(u){g.a.prototype.sU.call(this,u);this.D.logVisibility(this.element,this.visible&&u)};
var $Vl=["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"],tPa=["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.P(g.wq,g.a);g.K=g.wq.prototype;g.K.onStateChange=function(u){this.Sq(u.state);var h;((h=this.D.L())==null?0:h.j("embeds_use_parent_visibility_in_ve_logging"))&&this.D.logVisibility(this.element,this.BJ&&this.T)};
g.K.Sq=function(u){var h=g.C3(this.D.getVideoData()),L=!1;u.isOrWillBePlaying()?u=h?4:2:g.F(u,2)?(u=3,L=h):u=1;this.element.disabled=L;if(this.G!==u){h=null;switch(u){case 2:h=g.A7(this.D,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:h="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:h=g.A7(this.D,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:h="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}u===
3?this.update({title:h,icon:bWi(u)}):(this.update({title:h}),(h=bWi(u))&&this.G&&this.G!==3?xSa(this.transition,this.element,h):this.updateValue("icon",h));this.tooltip.g2();this.G=u}};
g.K.onVideoDataChange=function(){g.JW(this.element,"ytp-play-button-playlist",g.iM(this.D))};
g.K.nA=function(u){this.D.logClick(this.element);if(this.D.getPlayerStateObject().isOrWillBePlaying())this.D.pauseVideo();else{if(this.D.isMinimized()&&this.D.getPlayerStateObject().isCued()){var h={},L;if((L=this.D.getVideoData())==null?0:L.C)h.cttAuthInfo={token:this.D.getVideoData().C,videoId:this.D.getVideoData().videoId};dT("direct_playback",h);this.D.QO().timerName="direct_playback"}else this.G!==3||this.D.L().j("html5_no_csi_on_replay")||S_(this.D.QO());this.D.playVideo()}this.D.isMinimized()&&
(u==null?void 0:u.type)==="click"&&this.element.blur()};
g.K.sU=function(u){g.a.prototype.sU.call(this,u);var h;((h=this.D.L())==null?0:h.j("embeds_use_parent_visibility_in_ve_logging"))&&this.D.logVisibility(this.element,this.BJ&&u)};g.P(g.ex,g.a);g.K=g.ex.prototype;g.K.onVideoDataChange=function(){kon(this);this.B&&(this.FJ(this.B),this.B=null);this.videoData=this.D.getVideoData(1);if(this.playlist=this.D.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.B=this.W(this.D,"progresssync",this.Kb);this.X=guR(this);EuV(this);this.qD(this.D.m_().getPlayerSize())};
g.K.qD=function(u){u=u===void 0?this.D.m_().getPlayerSize():u;var h,L=((h=this.D.getLoopRange())==null?void 0:h.type)==="clips";u=(g.iM(this.D)||this.G&&g.vf(this.D)&&!this.D.j("web_hide_next_button")||u8Y(this))&&!L&&(this.G||u.width>=400);this.Ay(u);this.D.logVisibility(this.element,u)};
g.K.onClick=function(u){this.D.logClick(this.element);var h=!0;this.V?h=g.FC(u,this.D):u.preventDefault();h&&(this.G&&this.D.getPresentingPlayerType()===5?this.D.publish("ytoprerollinternstitialnext"):this.G?(S_(this.D.QO()),this.D.publish("playlistnextbuttonclicked",this.element),this.D.nextVideo(!0)):this.X?this.D.seekTo(0):(S_(this.D.QO()),this.D.publish("playlistprevbuttonclicked",this.element),this.D.previousVideo(!0)))};
g.K.Kb=function(){var u=guR(this);u!==this.X&&(this.X=u,EuV(this))};
g.K.Ni=function(){this.N&&(this.N(),this.N=null);kon(this);g.a.prototype.Ni.call(this)};g.P(hML,g.a);g.K=hML.prototype;g.K.rG=function(u){this.JJ(u.pageX);this.ZU(u.pageX+u.deltaX);LMj(this)};
g.K.JJ=function(u){this.AB=u-this.vX};
g.K.ZU=function(u){u-=this.vX;!isNaN(this.AB)&&this.thumbnails.length>0&&(this.Y=u-this.AB,this.thumbnails.length>0&&this.Y!==0&&(this.X=this.S+this.Y,u=KMj(this,this.X),this.X<=this.G/2&&this.X>=p8j(this)?(this.api.seekTo(u,!1,void 0,void 0,25),g.Oz(this.XB,"transform","translateX("+(this.X-this.G/2)+"px)"),jkf(this,u)):this.X=this.S))};
g.K.DS=function(){this.RH&&(this.RH.hg=!0);var u=(0,g.vC)()-this.jd<300;if(Math.abs(this.Y)<5&&!u){this.jd=(0,g.vC)();u=this.AB+this.Y;var h=this.G/2-u;this.JJ(u);this.ZU(u+h);LMj(this);this.api.logClick(this.C)}LMj(this)};
g.K.S8=function(){ae(this,this.api.getCurrentTime())};
g.K.play=function(u){this.api.seekTo(KMj(this,this.X),void 0,void 0,void 0,26);this.api.playVideo();u&&this.api.logClick(this.playButton)};
g.K.onExit=function(u){this.api.seekTo(this.aH,void 0,void 0,void 0,63);this.api.playVideo();u&&this.api.logClick(this.dismissButton)};
g.K.QZ=function(u,h){this.vX=u;this.G=h;ae(this,this.api.getCurrentTime())};
g.K.enable=function(){this.isEnabled||(this.isEnabled=!0,this.aH=this.api.getCurrentTime(),jkf(this,this.aH),g.JW(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.T7=this.W(this.element,"wheel",this.rG),this.logVisibility(this.isEnabled))};
g.K.disable=function(){this.isEnabled=!1;this.hide();g.JW(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.T7&&this.FJ(this.T7);this.logVisibility(this.isEnabled)};
g.K.reset=function(){this.disable();this.B=[];this.DI=!1};
g.K.logVisibility=function(u){this.api.logVisibility(this.element,u);this.api.logVisibility(this.C,u);this.api.logVisibility(this.dismissButton,u);this.api.logVisibility(this.playButton,u)};
g.K.Ni=function(){for(;this.N.length;){var u=void 0;(u=this.N.pop())==null||u.dispose()}g.a.prototype.Ni.call(this)};
g.P(Zye,g.a);g.P(yUY,g.a);g.P(JUl,g.a);g.P($Y,g.a);$Y.prototype.lP=function(u){return u==="PLAY_PROGRESS"?this.S:u==="LOAD_PROGRESS"?this.V:u==="LIVE_BUFFER"?this.C:this.X};D9j.prototype.update=function(u,h,L,Z){L=L===void 0?0:L;this.width=h;this.B=L;this.G=h-L-(Z===void 0?0:Z);this.position=g.pX(u,L,L+this.G);this.X=this.position-L;this.N=this.X/this.G};g.P(cUY,g.a);g.P(g.FJ,g.OD);g.K=g.FJ.prototype;
g.K.z_=function(){var u=!1,h=this.api.getVideoData();if(!h)return u;this.api.qm("timedMarkerCueRange");x9n(this);for(var L=g.C(h.e7),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var y=void 0,R=(y=this.aH[Z])==null?void 0:y.markerType;y=void 0;var p=(y=this.aH[Z])==null?void 0:y.markers;if(!p)break;if(R==="MARKER_TYPE_TIMESTAMPS"){u=g.C(p);for(R=u.next();!R.done;R=u.next()){y=R.value;R=new cUY;p=void 0;R.title=((p=y.title)==null?void 0:p.simpleText)||"";R.timeRangeStartMillis=Number(y.startMillis);R.G=
Number(y.durationMillis);var J=p=void 0;R.onActiveCommand=(J=(p=y.onActive)==null?void 0:p.innertubeCommand)!=null?J:void 0;lon(this,R)}Spn(this,this.C);u=this.C;R=this.Mr;y=[];p=null;for(J=0;J<u.length;J++){var O=u[J].timeRangeStartMillis;if(!isNaN(O)&&u[J].onActiveCommand){var f=void 0,D=(f=u[J].G)!=null?f:1E4;p&&p.end>O&&(p.end=O);O=ZWe(O,O+D);y.push(O);p=O;R[O.id]=u[J].onActiveCommand}}this.api.Rl(y);this.Zg=this.aH[Z];u=!0}else if(R==="MARKER_TYPE_HEATMAP"){Z=this.aH[Z];D=f=y=O=J=p=void 0;if(Z&&
Z.markers){R=(y=(D=Z.markersMetadata)==null?void 0:(f=D.heatmapMetadata)==null?void 0:f.minHeightDp)!=null?y:0;y=(p=(O=Z.markersMetadata)==null?void 0:(J=O.heatmapMetadata)==null?void 0:J.maxHeightDp)!=null?p:60;p=this.G.length;J=null;for(O=0;O<p;O++){D=this.G[O].startTime;var c=O===p-1?Infinity:this.G[O+1].startTime;O===this.B.length&&AUb(this);f=[];J&&f.push(J);for(var I=g.C(Z.markers),A=I.next();!A.done;A=I.next()){A=A.value;var x=Number(A.startMillis);x>=D&&x<=c&&f.push(A)}y>0&&(this.RH.style.height=
y+"px");D=this.B[O];c=f;A=R;var Q=y,S=O===0;S=S===void 0?!1:S;Oyi(D,Q);I=c;x=D.N;S=S===void 0?!1:S;var v=1E3/I.length,T=[];T.push({x:0,y:100});for(var U=0;U<I.length;U++){var z=(U+.5)*v,d=100-g.pX((I[U].intensityScoreNormalized||0)*100,A/x*100,Q/x*100);U!==0||S||T.push({x:0,y:d});T.push({x:z,y:d});U===I.length-1&&T.push({x:1E3,y:d})}T.push({x:1E3,y:100});I=T;c=c.length===0?"":jEV(I);D.api.j("delhi_modern_web_player")?D.X.setAttribute("d",c):D.C.setAttribute("d",c);D.ih=c!=="";g.JW(D.api.getRootNode(),
"ytp-heat-map",D.ih);D.api.j("delhi_modern_web_player")&&(D.X.style.display="block",D.B.style.display="none",D.G.style.display="none");f.length>0&&(J=f[f.length-1])}g.bl(this)}y=void 0;R=[];if(Z=(y=Z.markersDecoration)==null?void 0:y.timedMarkerDecorations)for(Z=g.C(Z),y=Z.next();!y.done;y=Z.next())y=y.value,O=J=p=void 0,R.push({visibleTimeRangeStartMillis:(p=y.visibleTimeRangeStartMillis)!=null?p:-1,visibleTimeRangeEndMillis:(J=y.visibleTimeRangeEndMillis)!=null?J:-1,decorationTimeMillis:(O=y.decorationTimeMillis)!=
null?O:NaN,label:y.label?g.cL(y.label):""});Z=R;this.heatMarkersDecorations=Z}}h.VC=this.C;g.JW(this.element,"ytp-timed-markers-enabled",u);return u};
g.K.QZ=function(){g.bl(this);gq(this);Spn(this,this.C);if(this.N){var u=g.Cf(this.element).x||0;this.N.QZ(u,this.V)}};
g.K.onClickCommand=function(u){if(u=g.n(u,aB)){var h=u.key;u.isVisible&&h&&Tkj(this,h)}};
g.K.IgI=function(u){this.api.hB("innertubeCommand",this.Mr[u.id])};
g.K.cj=function(){gq(this);var u=this.api.getCurrentTime();(u<this.clipStart||u>this.clipEnd)&&this.x7()};
g.K.OL=function(u){if(!u.defaultPrevented){var h=!1;switch(u.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);h=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);h=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);h=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);h=!0;break;case 38:this.api.j("enable_key_press_seek_logging")&&yk(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);h=!0;break;case 40:this.api.j("enable_key_press_seek_logging")&&yk(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),h=!0}h&&u.preventDefault()}};
g.K.Lg=function(u,h){this.updateVideoData(h,u==="newdata")};
g.K.nId=function(){this.Lg("newdata",this.api.getVideoData())};
g.K.updateVideoData=function(u,h){h=h===void 0?!1:h;var L=!!u&&u.ih();if(L&&(ab(u)||Gsa(this)?this.ol=!1:this.ol=u.allowLiveDvr,g.JW(this.api.getRootNode(),"ytp-enable-live-buffer",!(u==null||!ab(u))),this.api.j("enable_custom_playhead_parsing"))){var Z,y,R,p=g.n((Z=u.getWatchNextResponse())==null?void 0:(y=Z.playerOverlays)==null?void 0:(R=y.playerOverlayRenderer)==null?void 0:R.decoratedPlayerBarRenderer,xm);if(p==null?0:p.progressColor)for(Z=0;Z<this.G.length;Z++)this.G[Z].lP("PLAY_PROGRESS").style.background=
g.zz(p.progressColor);p=g.n(p==null?void 0:p.playhead,Kzc);var J,O;Z=(p==null?void 0:(J=p.playheadImage)==null?void 0:J.thumbnails)&&(p==null?void 0:(O=p.playheadImage)==null?void 0:O.thumbnails[0].url);g.JW(this.Th,"ytp-decorated-scrubber-container",!!Z);var f;if(p==null?0:(f=p.loggingDirectives)==null?0:f.trackingParams){var D;this.api.setTrackingParams(this.Td,p==null?void 0:(D=p.loggingDirectives)==null?void 0:D.trackingParams);this.api.createServerVe(this.Td,this)}Z&&(this.Td.src=Z)}eMn(this,
this.api.VO());if(h){if(L){h=u.clipEnd;this.clipStart=u.clipStart;this.clipEnd=h;Ry(this);for(hx(this,this.Y,this.fI);this.B.length>0;)this.B.pop().dispose();this.heatMarkersDecorations=[];this.e7={};var c;(c=this.N)==null||c.reset();fY(this);g.JW(this.api.getRootNode(),"ytp-fine-scrubbing-exp",WV(this))}else this.x7();this.Fk()}if(u){var I;c=((I=this.FD)==null?void 0:I.type)==="clips";if(I=!u.isLivePlayback){I=this.api.getVideoData();h=g.Pu(I);L=CRs(I);var A;I=h!=null||L!=null&&L.length>0||((A=I.Pf)==
null?void 0:A.length)>0}if(I&&!c){A=this.api.getVideoData();c=g.Pu(A);I=!1;if(c==null?0:c.markersMap){I=this.api.getVideoData();var x;I.I3=((x=c.visibleOnLoad)==null?void 0:x.key)||I.I3;x=g.C(c.markersMap);for(c=x.next();!c.done;c=x.next())c=c.value,c.key&&c.value&&(this.e7[c.key]=c.value,c.value.onChapterRepeat&&(I.g8=c.value.onChapterRepeat));I.I3!=null&&Tkj(this,I.I3);I=!0}var Q;if(((Q=A.Pf)==null?void 0:Q.length)>0){Q=g.$m.getState().entities;x=g.C(A.Pf);for(c=x.next();!c.done;c=x.next())if(c=
c.value,L=void 0,h=(L=p7(Q,"macroMarkersListEntity",c))==null?void 0:L.markersList,J=L=void 0,((L=h)==null?void 0:L.markerType)==="MARKER_TYPE_TIMESTAMPS"||((J=h)==null?void 0:J.markerType)==="MARKER_TYPE_HEATMAP")this.aH[c]=h;I=this.z_()||I}!I&&(Q=CRs(A))&&(iyL(this,Q),A.dD=this.G,Mol(this));Hya(this,null);u.aW&&this.B.length===0&&(u=u.aW,Q=u.key,u.isVisible&&Q&&Tkj(this,Q))}else IoY(this),x9n(this)}gq(this)};
g.K.NwA=function(u){this.S&&!g.F(u.state,32)&&this.api.getPresentingPlayerType()!==3&&this.S.cancel();var h;((h=this.N)==null?0:h.isEnabled)&&g.F(u.state,8)&&this.api.pauseVideo();u=this.api.getPresentingPlayerType()===2||!this.api.VO()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.JW(this.qr,"ytp-hide-scrubber-button",u)};
g.K.RW=function(u){var h=!!this.FD!==!!u,L=this.FD;this.FD=u;Hya(this,L);(u==null?void 0:u.type)!=="clips"&&u||(u?(this.updateValue("clipstarticon",Tcs()),this.updateValue("clipendicon",Tcs()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",MF1()),this.updateValue("clipendicon",Cxl()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),h&&(this.updateVideoData(this.api.getVideoData(),
!0),g.bl(this)),Ry(this));hx(this,this.Y,this.fI)};
g.K.AqI=function(u,h,L){var Z=g.Cf(this.element),y=kY(this).G,R=L?L.getAttribute("data-tooltip"):void 0,p=L?L.getAttribute("data-position"):void 0,J=L?L.getAttribute("data-offset-y"):void 0;J=J?Number(J):0;p&&(u=U_(this.X,Number(L.getAttribute("data-position")),0)*y+g.Cf(this.progressBar).x);this.Sd.x=u-Z.x;this.Sd.y=h-Z.y;u=kY(this);L=Zi(this,u);h=0;var O;if((O=this.api.getVideoData())==null?0:ab(O))(O=this.api.getProgressState().seekableEnd)&&L>O&&(L=O,u.position=U_(this.X,O)*kY(this).G),h=this.X.N;
Gsa(this)&&(h=this.X.N);O=R||g.QF(this.ol?L-this.X.G:L-h);h=u.position+this.Qs;L-=this.api.df();var f;if((f=this.N)==null||!f.isEnabled)if(this.api.p7()){if(this.G.length>1){f=LY(this,this.Sd.x,!0);if(!this.FD)for(Z=0;Z<this.G.length;)g.JW(this.G[Z].G,"ytp-exp-chapter-hover-effect",Z===f),Z++;if(this.B.length>1)for(Z=0;Z<this.G.length;Z++)g.JW(this.B[Z].element,"ytp-heatmap-hover",Z===f)}if(this.C.length>0)for(f=this.Sd.x,Z=g.C(this.C),y=Z.next();!y.done;y=Z.next())y=y.value,p=EI(this,y.timeRangeStartMillis/
(this.X.G*1E3),kY(this)),g.JW(y.element,"ytp-timed-marker-hover",p<=f&&p+6>=f);Z=this.tooltip.scale;J=(isNaN(J)?0:J)-45*Z;this.api.j("web_key_moments_markers")?this.Zg?(f=j2i(this.C,L*1E3),f=f!=null?this.C[f].title:""):(f=MS(this.G,L*1E3),f=this.G[f].title):(f=MS(this.G,L*1E3),f=this.G[f].title);f||(J+=16*Z);this.tooltip.scale===.6&&(this.api.j("web_cairo_modern_miniplayer")?(J=this.api.m_().getPlayerSize().height-225,J=f?J+110:J+110+16,this.api.j("web_cairo_modern_miniplayer_inset_progress_bar")&&
(J-=12)):J=f?110:126);Z=MS(this.G,L*1E3);this.XB=rU1(this,L,Z)?Z:rU1(this,L,Z+1)?Z+1:-1;g.JW(this.api.getRootNode(),"ytp-progress-bar-snap",this.XB!==-1&&this.G.length>1);Z=!1;y=g.C(this.heatMarkersDecorations);for(p=y.next();!p.done;p=y.next()){p=p.value;var D=L*1E3;D>=p.visibleTimeRangeStartMillis&&D<=p.visibleTimeRangeEndMillis&&(f=p.label,O=g.QF(p.decorationTimeMillis/1E3),Z=!0)}this.Z1!==Z&&(this.Z1=Z,this.api.logVisibility(this.Oo,this.Z1));g.JW(this.api.getRootNode(),"ytp-progress-bar-decoration",
Z);Z=160*this.tooltip.scale*2;y=f.length*(this.AB?8.55:5.7);y=y<=Z?y:Z;p=y<160*this.tooltip.scale;Z=3;!p&&y/2>u.position&&(Z=1);!p&&y/2>this.V-u.position&&(Z=2);this.api.L().S&&(J-=10);this.B.length&&this.B[0].ih&&(J-=14*(this.AB?2:1),this.T7||(this.T7=!0,this.api.logVisibility(this.RH,this.T7)));var c;if(WV(this)&&(((c=this.N)==null?0:c.isEnabled)||this.VA>0)){var I;J-=((I=this.N)==null?0:I.isEnabled)?KY(this):this.VA}c=void 0;WV(this)&&!this.api.j("web_player_hide_fine_scrubbing_edu")&&(c="Pull up for precise seeking",
this.DI||(this.DI=!0,this.api.logVisibility(this.jq,this.DI)));this.tooltip.aX(h,L,O,!!R,J,f,Z,c)}else this.tooltip.aX(h,L,O,!!R,J);g.yN(this.api.getRootNode(),"ytp-progress-bar-hover");U9e(this)};
g.K.IvB=function(){this.Fk();g.pc(this.api.getRootNode(),"ytp-progress-bar-hover");this.T7&&(this.T7=!1,this.api.logVisibility(this.RH,this.T7));this.DI&&(this.DI=!1,this.api.logVisibility(this.jq,this.DI))};
g.K.G1y=function(u,h){WV(this)&&this.N&&(this.N.DI?ae(this.N,this.api.getCurrentTime()):RMY(this.N),this.N.show(),g.JW(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.N.isEnabled));this.Uo&&(this.Uo.dispose(),this.Uo=null);this.Cr=h;this.XN=this.api.getCurrentTime();this.G.length>1&&this.XB!==-1?this.api.seekTo(this.G[this.XB].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(Zi(this,kY(this)),!1,void 0,void 0,7);g.yN(this.element,"ytp-drag");(this.jx=this.api.getPlayerStateObject().isOrWillBePlaying())&&
this.api.pauseVideo()};
g.K.RAy=function(){if(WV(this)&&this.N){var u=KY(this);this.VA>=u*.5?(this.N.enable(),ae(this.N,this.api.getCurrentTime()),w8R(this,u)):fY(this)}if(g.F(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var h;if((h=this.N)==null?0:h.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.G.length>1&&this.XB!==-1)this.api.j("html5_enable_progress_bar_slide_seek_logging")&&yk(this,this.XN,this.G[this.XB].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER",
"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.G[this.XB].startTime/1E3,void 0,void 0,void 0,7);else{u=Zi(this,kY(this));this.api.j("html5_enable_progress_bar_slide_seek_logging")&&yk(this,this.XN,u,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(u,void 0,void 0,void 0,7);h=g.C(this.heatMarkersDecorations);for(var L=h.next();!L.done;L=h.next())L=L.value,u*1E3>=L.visibleTimeRangeStartMillis&&u*1E3<=L.visibleTimeRangeEndMillis&&
this.api.logClick(this.Oo)}g.pc(this.element,"ytp-drag");this.jx&&!g.F(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}};
g.K.nSw=function(u,h){u=kY(this);u=Zi(this,u);this.api.seekTo(u,!1,void 0,void 0,7);var L;WV(this)&&((L=this.N)==null?0:L.DI)&&(ae(this.N,u),this.N.isEnabled||(L=KY(this),this.VA=g.pX(this.Cr-h-10,0,L),w8R(this,this.VA)))};
g.K.Fk=function(){this.tooltip.hD()};
g.K.lD=function(){this.FD||(this.updateValue("clipstarticon",Pxe()),this.updateValue("clipendicon",Pxe()),g.yN(this.element,"ytp-clip-hover"))};
g.K.gS=function(){this.FD||(this.updateValue("clipstarticon",MF1()),this.updateValue("clipendicon",Cxl()),g.pc(this.element,"ytp-clip-hover"))};
g.K.x7=function(){this.clipStart=0;this.clipEnd=Infinity;Ry(this);hx(this,this.Y,this.fI)};
g.K.qpH=function(u){u=g.C(u);for(var h=u.next();!h.done;h=u.next())if(h=h.value,h.visible){var L=h.getId();if(!this.vX[L]){var Z=g.kJ("DIV");h.tooltip&&Z.setAttribute("data-tooltip",h.tooltip);this.vX[L]=h;this.La[L]=Z;g.Lc(Z,h.style);Bkj(this,L);this.api.L().j("disable_ad_markers_on_content_progress_bar")||this.G[0].B.appendChild(Z)}}else skj(this,h)};
g.K.NOI=function(u){u=g.C(u);for(var h=u.next();!h.done;h=u.next())skj(this,h.value)};
g.K.HL=function(u){this.N&&(this.N.onExit(u!=null),fY(this))};
g.K.o2=function(u){this.N&&(this.N.play(u!=null),fY(this))};
g.K.Zry=function(){eMn(this,this.api.VO())};
g.K.Ni=function(){eMn(this,!1);g.OD.prototype.Ni.call(this)};g.P(Di,g.a);Di.prototype.isActive=function(){return!!this.D.getOption("remote","casting")};
Di.prototype.kI=function(){var u=!1;this.D.getOptions().includes("remote")&&(u=this.D.getOption("remote","receivers").length>1);this.Ay(u&&this.D.m_().getPlayerSize().width>=400);this.D.logVisibility(this.element,this.BJ);var h=1;u&&this.isActive()&&(h=2);if(this.G!==h){this.G=h;switch(h){case 1:this.updateValue("icon",{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},Z:[{K:"path",XJ:!0,J:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.xpj())}g.JW(this.element,"ytp-remote-button-active",this.isActive())}};
Di.prototype.N=function(){if(this.D.getOption("remote","quickCast"))this.D.setOption("remote","quickCast",!0);else{var u=this.Ka,h=this.element;if(u.We())u.aP();else{u.initialize();a:{var L=g.C(u.zM.items);for(var Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Z.priority===1){L=Z;break a}L=null}L&&(L.open(),u.VF(h));u.VF(h)}}this.D.logClick(this.element)};g.P(cH,g.a);cH.prototype.G=function(u){var h=this.D.L(),L=400;this.D.j("web_player_small_hbp_settings_menu")&&h.C?L=300:h.S&&(L=200);u=this.N&&u.width>=L;this.Ay(u);this.D.j("embeds_use_parent_visibility_in_ve_logging")?this.D.logVisibility(this.element,u&&this.T):this.D.logVisibility(this.element,u)};
cH.prototype.X=function(){if(this.Ka.BJ)this.Ka.aP();else{var u=g.By(this.D.uP());u&&!u.loaded&&(u.B7("tracklist",{includeAsr:!0}).length||u.load());this.D.logClick(this.element);this.Ka.VF(this.element)}};
cH.prototype.updateBadge=function(){var u=this.D.isHdr(),h=this.D.getPresentingPlayerType(),L=h!==2&&h!==3,Z=g.Sq(this.D),y=L&&!!g.lM(this.D.uP());h=y&&Z.displayMode===1;Z=y&&Z.displayMode===2;L=(y=h||Z)||!L?null:this.D.getPlaybackQuality();g.JW(this.element,"ytp-hdr-quality-badge",u);g.JW(this.element,"ytp-hd-quality-badge",!u&&(L==="hd1080"||L==="hd1440"));g.JW(this.element,"ytp-4k-quality-badge",!u&&L==="hd2160");g.JW(this.element,"ytp-5k-quality-badge",!u&&L==="hd2880");g.JW(this.element,"ytp-8k-quality-badge",
!u&&L==="highres");g.JW(this.element,"ytp-3d-badge-grey",!u&&y&&h);g.JW(this.element,"ytp-3d-badge",!u&&y&&Z)};g.P(Iy,t7);Iy.prototype.isLoaded=function(){var u=g.sE(this.D.uP());return u!==void 0&&u.loaded};
Iy.prototype.kI=function(){g.sE(this.D.uP())!==void 0&&this.D.getPresentingPlayerType()!==3?this.G||(this.Ka.aV(this),this.G=!0):this.G&&(this.Ka.Jd(this),this.G=!1);Wf(this,this.isLoaded())};
Iy.prototype.onSelect=function(u){this.isLoaded();u?this.D.loadModule("annotations_module"):this.D.unloadModule("annotations_module");this.D.publish("annotationvisibility",u)};
Iy.prototype.Ni=function(){this.G&&this.Ka.Jd(this);t7.prototype.Ni.call(this)};g.P(Ax,g.EB);Ax.prototype.kI=function(){var u=this.D.getAvailableAudioTracks();u.length>1?(this.FU(g.Xx(u,this.G)),this.tracks=g.xe(u,this.G,this),this.countLabel.QF(u.length?" ("+u.length+")":""),this.publish("size-change"),this.o4(this.G(this.D.getAudioTrack())),this.enable(!0)):this.enable(!1)};
Ax.prototype.FE=function(u){g.EB.prototype.FE.call(this,u);this.D.setAudioTrack(this.tracks[u]);this.Ka.gX()};
Ax.prototype.G=function(u){return u.toString()};g.P(xs,t7);
xs.prototype.N=function(){var u=this.D.getPresentingPlayerType();if(u!==2&&u!==3&&g.vf(this.D))this.G||(this.Ka.aV(this),this.G=!0,this.X.push(this.W(this.D,"videodatachange",this.N)),this.X.push(this.W(this.D,"videoplayerreset",this.N)),this.X.push(this.W(this.D,"onPlaylistUpdate",this.N)),this.X.push(this.W(this.D,"autonavchange",this.B)),u=this.D.getVideoData(),this.B(u.autonavState),this.D.logVisibility(this.element,this.G));else if(this.G){this.Ka.Jd(this);this.G=!1;u=g.C(this.X);for(var h=u.next();!h.done;h=
u.next())this.FJ(h.value)}};
xs.prototype.B=function(u){Wf(this,u!==1)};
xs.prototype.onSelect=function(u){this.D.IX(u?2:1);this.G&&(this.D.logVisibility(this.element,this.G),this.D.logClick(this.element))};
xs.prototype.Ni=function(){this.G&&this.Ka.Jd(this);t7.prototype.Ni.call(this)};g.P($9n,g.Bf);$9n.prototype.onClick=function(u){u.preventDefault();var h,L;(h=g.Rv(this.D))==null||(L=h.jb())==null||L.aP();var Z,y;(Z=g.Rv(this.D))==null||(y=Z.py())==null||y.VF(u.target)};g.P(toi,g.EB);g.K=toi.prototype;
g.K.Eh=function(){var u=this.D.getPresentingPlayerType();if(u!==2&&u!==3){this.XB=this.D.dn();u=this.D.getAvailableQualityLevels();if(this.G){this.B={};var h=g.jq(this.D,"getAvailableQualityData",[]);h=g.C(h);for(var L=h.next();!L.done;L=h.next())L=L.value,this.B[L.qualityLabel]=L;h=Object.keys(this.B);u[u.length-1]==="auto"&&h.push("auto");this.gw=new Set(u)}else if(this.C){L=g.jq(this.D,"getAvailableQualityData",[]);h=[];L=g.C(L);for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,this.Y[Z.quality]=
Z,Z.quality&&h.push(Z.quality);u[u.length-1]==="auto"&&h.push("auto")}else h=u;g.dne(this.D)&&this.D.nX()&&h.unshift("missing-qualities");Vkj(this.D)&&h.unshift("inline-survey");this.FU(h);u=this.D.getVideoData().cotn?!0:!1;L=this.RH.jD();L=!g.nC(this.D.L())||!(u===void 0?0:u)||!(L===void 0||L);u=this.N;L=L===void 0?!1:L;u.TJ&&g.JW(u.BX("ytp-panel-footer"),"ytp-panel-hide-footer",L===void 0?!1:L);if(h.length){this.dU();this.enable(!0);return}}this.enable(!1)};
g.K.dU=function(){if(this.G){var u=this.D.getPreferredQuality();this.gw.has(u)&&(this.V=this.D.getPlaybackQuality(),this.AB=this.D.getPlaybackQualityLabel(),u==="auto"?(this.o4(u),this.QF(this.Ov(u))):this.o4(this.AB))}else u=this.D.getPreferredQuality(),this.options[u]&&(this.V=this.D.getPlaybackQuality(),this.o4(u),u==="auto"&&this.QF(this.Ov(u)))};
g.K.FE=function(u){if(u!=="missing-qualities"){g.EB.prototype.FE.call(this,u);var h=this.G?this.B[u]:this.Y[u];var L=h==null?void 0:h.quality,Z=h==null?void 0:h.formatId,y=h==null?void 0:h.paygatedQualityDetails;h=y==null?void 0:y.endpoint;if(y){var R;y=(R=this.options[u])==null?void 0:R.element;this.D.logClick(y)}if(this.G){var p,J;if((p=g.n(h,g.BVb))==null?0:(J=p.popup)==null?0:J.notificationActionRenderer)this.D.hB("innertubeCommand",h);else if(h){this.D.hB("innertubeCommand",h);return}Z?this.D.setPlaybackQuality(L,
Z):this.D.setPlaybackQuality(L)}else{if(this.C){var O,f;if((O=g.n(h,g.BVb))==null?0:(f=O.popup)==null?0:f.notificationActionRenderer)this.D.hB("innertubeCommand",h);else if(h){this.D.hB("innertubeCommand",h);return}}this.D.setPlaybackQuality(u)}this.Ka.aP();this.Eh()}};
g.K.open=function(){for(var u=g.C(Object.values(this.options)),h=u.next();!h.done;h=u.next()){h=h.value;var L=void 0;this.D.hasVe((L=h)==null?void 0:L.element)&&(L=void 0,this.D.logVisibility((L=h)==null?void 0:L.element,!0))}g.EB.prototype.open.call(this);this.D.logClick(this.element)};
g.K.t7=function(u,h,L){var Z=this;if(u==="missing-qualities")return new g.Bf({K:"a",CI:["ytp-menuitem"],J:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.D.L().Y,tabindex:"0",role:"menuitemradio"},Z:[{K:"div",CI:["ytp-menuitem-label"],dw:"{{label}}"}]},h,this.Ov(u));if(u!=="inline-survey"){var y,R=(y=this.G?this.B[u]:this.Y[u])==null?void 0:y.paygatedQualityDetails;y=R==null?void 0:R.veType;R=R==null?void 0:R.trackingParams;h=g.EB.prototype.t7.call(this,u,h,L);R?(this.D.createServerVe(h.element,
this,!0),this.D.setTrackingParams(h.element,R)):y&&this.D.createClientVe(h.element,this,y,!0);return h}u=[{K:"span",dw:"Looks good?"}];L=g.C([!0,!1]);R=L.next();for(y={};!R.done;y={Y_:void 0},R=L.next())y.Y_=R.value,R=new g.a({K:"span",U:"ytp-menuitem-inline-survey-response",Z:[y.Y_?qWa():Qib()],J:{tabindex:"0",role:"button"}}),R.listen("click",function(p){return function(){var J=Z.D.app.WX();J&&(J.IH("iqsr",{tu:p.Y_}),J.getVideoData().ZO=!0);Z.Ka.aP();Z.Eh()}}(y)),u.push(R);
return new g.Bf({K:"div",U:"ytp-menuitem",J:{"aria-disabled":"true"},Z:[{K:"div",CI:["ytp-menuitem-label"],Z:u}]},h)};
g.K.Ov=function(u,h){h=h===void 0?!1:h;if(u==="missing-qualities")return{K:"div",dw:"Missing options?"};if(u==="inline-survey")return"";var L=this.C||this.G?[byi(this,u,h,!1)]:[FMj(this,u)];var Z=this.D.getPreferredQuality();h||Z!=="auto"||u!=="auto"||(L.push(" "),this.G?L.push(byi(this,this.AB,h,!0,["ytp-menu-label-secondary"])):this.C?L.push(byi(this,this.V,h,!0,["ytp-menu-label-secondary"])):L.push(FMj(this,this.V,["ytp-menu-label-secondary"])));return{K:"div",Z:L}};g.P(PH,g.a);PH.prototype.init=function(){this.updateValue("minvalue",this.X);this.updateValue("maxvalue",this.B);this.updateValue("stepvalue",this.C);this.updateValue("slidervalue",this.N);EvR(this,this.N)};
PH.prototype.V=function(){ksL(this,Number(this.G.value));this.G.focus()};g.P(CY,PH);CY.prototype.V=function(){PH.prototype.V.call(this);this.S&&gvj(this)};
CY.prototype.XB=function(){this.Y()};
CY.prototype.RH=function(){this.D.setPlaybackRate(this.N,!0)};
CY.prototype.AB=function(u){if(!u.defaultPrevented){switch(u.code){case "ArrowDown":var h=-this.C;break;case "ArrowUp":h=this.C;break;default:return}ksL(this,Math.min(this.B,Math.max(Number((this.N+h).toFixed(2)),this.X)));this.Y();gvj(this);u.preventDefault()}};g.P(Ml,g.a);g.K=Ml.prototype;g.K.init=function(){this.Sp(this.G);this.updateValue("minvalue",this.N);this.updateValue("maxvalue",this.X)};
g.K.Cb=function(u){if(!u.defaultPrevented){switch(u.keyCode){case 37:case 40:var h=-this.S;break;case 39:case 38:h=this.S;break;default:return}this.Sp(this.G+h);u.preventDefault()}};
g.K.Fc=function(u){var h=this.G;h+=(u.deltaX||-u.deltaY)<0?-this.Y:this.Y;this.Sp(h);u.preventDefault()};
g.K.vO=function(u){u=(u-g.Cf(this.B).x)/this.AB*this.range+this.N;this.Sp(u)};
g.K.Sp=function(u,h){h=h===void 0?"":h;u=g.pX(u,this.N,this.X);h===""&&(h=u.toString());this.updateValue("valuenow",u);this.updateValue("valuetext",h);this.RH.style.left=(u-this.N)/this.range*(this.AB-this.DI)+"px";this.G=u};
g.K.focus=function(){this.T7.focus()};g.P(iD,Ml);iD.prototype.XB=function(){this.D.setPlaybackRate(this.G,!0)};
iD.prototype.Sp=function(u){Ml.prototype.Sp.call(this,u,j5L(this,u).toString());this.C&&(uqV(this),this.gw())};
iD.prototype.updateValues=function(){var u=this.D.getPlaybackRate();j5L(this,this.G)!==u&&(this.Sp(u),uqV(this))};g.P(h5n,g.OD);h5n.prototype.focus=function(){this.G.focus()};g.P(LOa,dW);g.P(ZDl,g.EB);g.K=ZDl.prototype;g.K.Ov=function(u){return u==="1"?"Normal":u.toLocaleString()};
g.K.kI=function(){var u,h=(u=this.D.getVideoData())==null?void 0:u.KZ();u=this.D.getPresentingPlayerType(h);this.enable(u!==2&&u!==3);KOi(this)};
g.K.FU=function(u){g.EB.prototype.FU.call(this,u);this.V&&this.V.G.focus()};
g.K.Vz=function(u){g.EB.prototype.Vz.call(this,u);u?(this.AB=this.W(this.D,"onPlaybackRateChange",this.onPlaybackRateChange),KOi(this),R5n(this,this.D.getPlaybackRate())):(this.FJ(this.AB),this.AB=null)};
g.K.onPlaybackRateChange=function(u){var h=this.D.getPlaybackRate();!this.C&&this.Y.includes(h)||p0Y(this,h);R5n(this,u)};
g.K.t7=function(u,h,L){return u===this.G&&J6n(this.D)?g.EB.prototype.t7.call(this,u,h,L,{K:"div",U:"ytp-speed-slider-menu-footer",Z:[this.V]}):g.EB.prototype.t7.call(this,u,h,L)};
g.K.FE=function(u){g.EB.prototype.FE.call(this,u);u===this.G?this.D.setPlaybackRate(this.B,!0):this.D.setPlaybackRate(Number(u),!0);J6n(this.D)&&u===this.G||this.Ka.gX()};
g.K.sR=function(u){var h=u===this.G;this.C=!1;h&&Qk(this.D)&&!J6n(this.D)?(u=new LOa(this.D),g.wW(this.Ka,u)):g.EB.prototype.sR.call(this,u)};g.P(fUY,g.EB);g.K=fUY.prototype;g.K.o4=function(u){g.EB.prototype.o4.call(this,u)};
g.K.uA=function(u){return u.option.toString()};
g.K.getOption=function(u){return this.settings[u]};
g.K.Ov=function(u){return this.getOption(u).text||""};
g.K.FE=function(u){g.EB.prototype.FE.call(this,u);this.publish("settingChange",this.setting,this.settings[u].option)};g.P(lD,g.Vy);lD.prototype.bW=function(u){for(var h=g.C(Object.keys(u)),L=h.next();!L.done;L=h.next()){var Z=L.value;if(L=this.P8[Z]){var y=u[Z].toString();Z=!!u[Z+"Override"];L.options[y]&&(L.o4(y),L.B.element.setAttribute("aria-checked",String(!Z)),L.G.element.setAttribute("aria-checked",String(Z)))}}};
lD.prototype.hS=function(u,h){this.publish("settingChange",u,h)};g.P(S3,g.EB);S3.prototype.G=function(u){return u.languageCode};
S3.prototype.Ov=function(u){return this.languages[u].languageName||""};
S3.prototype.FE=function(u){this.publish("select",u);this.D.logClick(this.element);g.eA(this.Ka)};g.P(IUj,g.EB);g.K=IUj.prototype;g.K.pM=function(u){return g.Tc(u)?"__off__":u.displayName};
g.K.Ov=function(u){return u==="__off__"?"Off":u==="__translate__"?"Auto-translate":u==="__contribute__"?"Add subtitles/CC":u==="__correction__"?"Suggest caption corrections":(u==="__off__"?{}:this.tracks[u]).displayName};
g.K.FE=function(u){if(u==="__translate__")this.G.open();else if(u==="__contribute__"){this.D.pauseVideo();this.D.isFullscreen()&&this.D.toggleFullscreen();var h=g.Td(this.D.L(),this.D.getVideoData());g.nG(h)}else if(u==="__correction__"){this.D.pauseVideo();this.D.isFullscreen()&&this.D.toggleFullscreen();var L=A6n(this);Xv(this,L);g.EB.prototype.FE.call(this,this.pM(L));var Z,y;L=(h=this.D.getVideoData().getPlayerResponse())==null?void 0:(Z=h.captions)==null?void 0:(y=Z.playerCaptionsTracklistRenderer)==
null?void 0:y.openTranscriptCommand;this.D.hB("innertubeCommand",L);this.Ka.gX();this.B&&this.D.logClick(this.B)}else{if(u==="__correction__"){this.D.pauseVideo();this.D.isFullscreen()&&this.D.toggleFullscreen();h=A6n(this);Xv(this,h);g.EB.prototype.FE.call(this,this.pM(h));var R,p;h=(L=this.D.getVideoData().getPlayerResponse())==null?void 0:(R=L.captions)==null?void 0:(p=R.playerCaptionsTracklistRenderer)==null?void 0:p.openTranscriptCommand;this.D.hB("innertubeCommand",h)}else this.D.logClick(this.element),
Xv(this,u==="__off__"?{}:this.tracks[u]),g.EB.prototype.FE.call(this,u);this.Ka.gX()}};
g.K.kI=function(){var u=this.D.getOptions();u=u&&u.indexOf("captions")!==-1;var h=this.D.getVideoData(),L=h&&h.Qe,Z,y=!((Z=this.D.getVideoData())==null||!g.wm(Z));Z={};if(u||L){var R;if(u){var p=this.D.getOption("captions","track");Z=this.D.getOption("captions","tracklist",{includeAsr:!0});var J=y?[]:this.D.getOption("captions","translationLanguages");this.tracks=g.xe(Z,this.pM,this);y=g.Xx(Z,this.pM);var O,f;A6n(this)&&((R=h.getPlayerResponse())==null?0:(O=R.captions)==null?0:(f=O.playerCaptionsTracklistRenderer)==
null?0:f.openTranscriptCommand)&&y.push("__correction__");if(J.length&&!g.Tc(p)){if((R=p.translationLanguage)&&R.languageName){var D=R.languageName;R=J.findIndex(function(c){return c.languageName===D});
yus(J,R)}DJj(this.G,J);y.push("__translate__")}R=this.pM(p)}else this.tracks={},y=[],R="__off__";y.unshift("__off__");this.tracks.__off__={};L&&y.unshift("__contribute__");this.tracks[R]||(this.tracks[R]=p,y.push(R));this.FU(y);this.o4(R);p&&p.translationLanguage?this.G.o4(this.G.G(p.translationLanguage)):E_a(this.G);u&&this.C.bW(this.D.getSubtitlesUserSettings());this.countLabel.QF(Z&&Z.length?" ("+Z.length+")":"");this.publish("size-change");this.D.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.K.wG=function(u){var h=this.D.getOption("captions","track");h=g.No(h);h.translationLanguage=this.G.languages[u];Xv(this,h)};
g.K.hS=function(u,h){if(u==="reset")this.D.resetSubtitlesUserSettings();else{var L={};L[u]=h;this.D.updateSubtitlesUserSettings(L)}c6i(this,!0);this.V.start();this.C.bW(this.D.getSubtitlesUserSettings())};
g.K.iWy=function(u){u||g.u6(this.V)};
g.K.Ni=function(){g.u6(this.V);g.EB.prototype.Ni.call(this)};
g.K.open=function(){g.EB.prototype.open.call(this);this.options.__correction__&&!this.B&&(this.B=this.options.__correction__.element,this.D.createClientVe(this.B,this,167341),this.D.logVisibility(this.B,!0))};g.P(xJY,g.sB);g.K=xJY.prototype;
g.K.initialize=function(){if(!this.isInitialized){var u=this.D.L();this.isInitialized=!0;try{this.L6=new toi(this.D,this)}catch(L){g.G3(Error("QualityMenuItem creation failed"))}g.V(this,this.L6);var h=new IUj(this.D,this);g.V(this,h);u.X||(h=new Iy(this.D,this),g.V(this,h));u.enableSpeedOptions&&(h=new ZDl(this.D,this),g.V(this,h));(g.MW(u)||u.C)&&(u.N||u.jd)&&(h=new $9n(this.D,this),g.V(this,h));u.XN&&!u.j("web_player_move_autonav_toggle")&&(u=new xs(this.D,this),g.V(this,u));u=new Ax(this.D,this);
g.V(this,u);this.D.publish("settingsMenuInitialized");aoa(this.settingsButton,this.zM.BS())}};
g.K.aV=function(u){this.initialize();this.zM.aV(u);aoa(this.settingsButton,this.zM.BS())};
g.K.Jd=function(u){this.BJ&&this.zM.BS()<=1&&this.hide();this.zM.Jd(u);aoa(this.settingsButton,this.zM.BS())};
g.K.VF=function(u){this.initialize();this.zM.BS()>0&&g.sB.prototype.VF.call(this,u)};
g.K.aP=function(){this.C_?this.C_=!1:g.sB.prototype.aP.call(this)};
g.K.show=function(){g.sB.prototype.show.call(this);g.yN(this.D.getRootNode(),"ytp-settings-shown")};
g.K.hide=function(){g.sB.prototype.hide.call(this);g.pc(this.D.getRootNode(),"ytp-settings-shown")};
g.K.ut=function(u){this.D.logVisibility(this.element,u);this.D.publish("settingsMenuVisibilityChanged",u)};g.P(CbV,g.a);g.K=CbV.prototype;g.K.onClick=function(){if(MQj(this)&&(this.D.toggleSubtitles(),this.D.logClick(this.element),!this.isEnabled())){var u=!1,h=g.Vl(g.dN(),65);g.nC(this.D.L())&&h!=null&&(u=!h);u&&this.D.L().j("web_player_nitrate_promo_tooltip")&&this.D.publish("showpromotooltip",this.element)}};
g.K.RRw=function(u){var h,L;(h=g.Rv(this.D))==null||(L=h.jb())==null||L.VF(u)};
g.K.isEnabled=function(){return!!this.D.getOption("captions","track").displayName};
g.K.kI=function(){var u=MQj(this),h=300;this.D.L().S&&(h=480);if(this.D.L().C){this.updateValue("title",g.A7(this.D,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var L=u}else{if(u)(L=this.BX("ytp-subtitles-button-icon"))==null||L.setAttribute("fill-opacity","1"),this.updateValue("title",g.A7(this.D,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var Z;(Z=this.BX("ytp-subtitles-button-icon"))==
null||Z.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}L=!0}this.tooltip.g2();L=L&&this.D.m_().getPlayerSize().width>=h;this.Ay(L);this.D.j("embeds_use_parent_visibility_in_ve_logging")?this.D.logVisibility(this.element,L&&this.T):this.D.logVisibility(this.element,L);u?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};
g.K.sU=function(u){g.a.prototype.sU.call(this,u);this.D.L().j("embeds_use_parent_visibility_in_ve_logging")&&this.D.logVisibility(this.element,this.BJ&&u)};g.P(g.vH,g.a);g.K=g.vH.prototype;
g.K.cj=function(){var u=this.api.m_().getPlayerSize().width,h=this.S;this.api.L().S&&(h=400);h=u>=h&&(!ql(this)||!g.F(this.api.getPlayerStateObject(),64));this.Ay(h);g.JW(this.element,"ytp-time-display-allow-autohide",h&&u<400);u=this.api.getProgressState();if(h){h=this.api.getPresentingPlayerType();var L=this.api.getCurrentTime(h,!1);this.N&&(L-=u.airingStart);TJ(this)&&(L-=this.FD.startTimeMs/1E3);L=g.QF(L);this.X!==L&&(this.updateValue("currenttime",L),this.X=L);h=TJ(this)?g.QF((this.FD.endTimeMs-
this.FD.startTimeMs)/1E3):g.QF(this.api.getDuration(h,!1));this.B!==h&&(this.updateValue("duration",h),this.B=h)}iDe(this,u.isAtLiveHead);Q5n(this,this.api.getLoopRange())};
g.K.onLoopRangeChange=function(u){var h=this.FD!==u;this.FD=u;h&&(this.cj(),lUn(this))};
g.K.B1I=function(){this.api.setLoopRange(null)};
g.K.onVideoDataChange=function(u,h,L){this.updateVideoData((this.api.L().j("enable_topsoil_wta_for_halftime")||this.api.L().j("enable_topsoil_wta_for_halftime_live_infra"))&&L===2?this.api.getVideoData(1):h);this.cj();lUn(this)};
g.K.updateVideoData=function(u){this.XV=u.isLivePlayback&&!u.fI;this.N=ab(u);this.isPremiere=u.isPremiere;g.JW(this.element,"ytp-live",ql(this))};
g.K.onClick=function(u){u.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())};
g.K.Ni=function(){this.G&&this.G();g.a.prototype.Ni.call(this)};g.P(X0V,g.a);g.K=X0V.prototype;g.K.nx=function(){var u=this.api.GN();this.X!==u&&(this.X=u,Sml(this,this.api.getVolume(),this.api.isMuted()))};
g.K.MM=function(u){this.Ay(u.width>=350)};
g.K.cO=function(u){if(!u.defaultPrevented){var h=u.keyCode,L=null;h===37?L=this.volume-5:h===39?L=this.volume+5:h===36?L=0:h===35&&(L=100);L!==null&&(L=g.pX(L,0,100),L===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(L)),u.preventDefault())}};
g.K.TV=function(u){var h=u.deltaX||-u.deltaY;u.deltaMode?this.api.setVolume(this.volume+(h<0?-10:10)):this.api.setVolume(this.volume+g.pX(h/10,-10,10));u.preventDefault()};
g.K.tiy=function(){Ys(this,this.G,!0,this.N,this.api.Za());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()};
g.K.yY=function(u){var h=this.X?78:52,L=this.X?18:12;u-=g.Cf(this.S).x;this.api.setVolume(g.pX((u-L/2)/(h-L),0,1)*100)};
g.K.JqX=function(){Ys(this,this.G,!1,this.N,this.api.Za());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Y))};
g.K.onVolumeChange=function(u){Sml(this,u.volume,u.muted)};
g.K.oa=function(){Ys(this,this.G,this.isDragging,this.N,this.api.Za())};
g.K.Ni=function(){g.a.prototype.Ni.call(this);g.pc(this.V,"ytp-volume-slider-active")};g.P(oy,g.a);
oy.prototype.onVideoDataChange=function(){var u=this.api.L();this.QZ();this.visible=!!this.api.getVideoData().videoId&&!g.$H(this.api.getVideoData(1));this.Ay(this.visible);this.api.logVisibility(this.element,this.visible&&this.T);if(this.visible){var h=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",h)}u.X&&(this.G&&(this.FJ(this.G),this.G=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.yN(this.element,"no-link"));
h=this.api.L();u=this.api.getVideoData();var L="";h.X||(h=g.B$(h),h.indexOf("www.")===0&&(h=h.substring(4)),L=g.Wz(u)?"Watch on YouTube Music":h==="youtube.com"?"Watch on YouTube":g.cI("Watch on $WEBSITE",{WEBSITE:h}));this.updateValue("title",L)};
oy.prototype.onClick=function(u){this.api.j("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var h=this.api.L(),L=this.api.getVideoUrl(!g.li(u),!1,!0,!0);if(g.MW(h)){var Z={};g.MW(h)&&g.jq(this.api,"addEmbedsConversionTrackingParams",[Z]);L=g.sr(L,Z)}g.bM(L,this.api,u);this.api.j("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
oy.prototype.QZ=function(){var u={K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},Z:[{K:"path",XJ:!0,U:"ytp-svg-fill",J:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]},
h=28666,L=this.api.getVideoData();this.api.isEmbedsShortsMode()?u={K:"svg",J:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},Z:[{K:"path",J:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z",
fill:"#fff"}}]}:g.Wz(L)&&(u={K:"svg",J:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},Z:[{K:"path",J:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{K:"path",J:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z",
fill:"white"}},{K:"path",J:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{K:"path",J:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{K:"path",J:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z",
fill:"white"}},{K:"path",J:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{K:"path",J:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z",
fill:"white"}},{K:"path",J:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{K:"path",J:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z",
fill:"white"}},{K:"path",J:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z",
fill:"white"}},{K:"path",J:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{K:"path",J:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z",
fill:"white"}}]},h=216163);g.Wz(L)?g.yN(this.element,"ytp-youtube-music-button"):g.pc(this.element,"ytp-youtube-music-button");u.J=Object.assign({},u.J,{"aria-hidden":"true"});this.updateValue("logoSvg",u);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,h,!0)};
oy.prototype.sU=function(u){g.a.prototype.sU.call(this,u);this.api.logVisibility(this.element,this.visible&&u)};g.P(qmn,g.UN);g.K=qmn.prototype;g.K.q3=function(){if(this.D.j("web_player_max_seekable_on_ended")||!g.F(this.D.getPlayerStateObject(),2))this.progressBar.cj(),this.DI.cj()};
g.K.W0=function(){this.aU();this.xJ.N?this.q3():this.progressBar.Fk()};
g.K.aR=function(){this.q3();this.S.start()};
g.K.aU=function(){var u;if(u=!this.D.L().N){u=this.progressBar;var h=2*g.V6()*u.V;u=u.X.getLength()*1E3/u.api.getPlaybackRate()/h<300}u=u&&this.D.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;h=!u;this.xJ.N||(u=h=!1);h?this.RH||(this.RH=this.W(this.D,"progresssync",this.q3)):this.RH&&(this.FJ(this.RH),this.RH=null);u?this.S.isActive()||this.S.start():this.S.stop()};
g.K.QZ=function(){var u=this.D.GN(),h=this.D.m_().getPlayerSize(),L=YmR(this),Z=Math.max(h.width-L*2,100);if(this.e7!==h.width||this.xl!==u){this.e7=h.width;this.xl=u;var y=oO1(this);this.B.element.style.width=y+"px";this.B.element.style.left=L+"px";g.nvb(this.progressBar,L,y,u);this.D.l2().Xf=y}L=this.X;Z=Math.min(570*(u?1.5:1),Z);u=Math.min(413*(u?1.5:1),Math.round((h.height-Nwn(this))*.82));L.maxWidth=Z;L.maxHeight=u;L.Jm();this.aU();this.D.L().j("html5_player_dynamic_bottom_gradient")&&mVe(this.fI,
h.height)};
g.K.onVideoDataChange=function(){var u=this.D.getVideoData();this.jd.style.background=u.Rc?u.nE:"";this.AB&&e_j(this.AB,u.showSeekingControls);this.Y&&e_j(this.Y,u.showSeekingControls)};
g.K.lP=function(){return this.B.element};g.P(UJL,mK);g.K=UJL.prototype;g.K.S9=function(u){u.target!==this.dismissButton.element&&(this.onClickCommand&&this.D.hB("innertubeCommand",this.onClickCommand),this.jH())};
g.K.jH=function(){this.enabled=!1;this.Y.hide()};
g.K.onVideoDataChange=function(u,h){u==="dataloaded"&&G7a(this);u=[];var L,Z,y,R;if(h=(R=g.n((L=h.getWatchNextResponse())==null?void 0:(Z=L.playerOverlays)==null?void 0:(y=Z.playerOverlayRenderer)==null?void 0:y.suggestedActionsRenderer,fMR))==null?void 0:R.suggestedActions)for(L=g.C(h),Z=L.next();!Z.done;Z=L.next())(Z=g.n(Z.value,Dk1))&&g.n(Z.trigger,OwV)&&u.push(Z);if(u.length!==0){L=[];u=g.C(u);for(Z=u.next();!Z.done;Z=u.next())if(Z=Z.value,y=g.n(Z.trigger,OwV))R=(R=Z.title)?g.cL(R):"View Chapters",
h=y.timeRangeStartMillis,y=y.timeRangeEndMillis,h!=null&&y!=null&&Z.tapCommand&&(L.push(new g.uW(h,y,{priority:9,namespace:"suggested_action_button_visible",id:R})),this.suggestedActions[R]=Z.tapCommand);this.D.Rl(L)}};
g.K.Ji=function(){return this.enabled};
g.K.ut=function(){this.enabled?this.aH.start():B_(this);this.MJ()};
g.K.Ni=function(){G7a(this);mK.prototype.Ni.call(this)};var Xq={},GJ=(Xq.CHANNEL_NAME="ytp-title-channel-name",Xq.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",Xq.LINK="ytp-title-link",Xq.SESSIONLINK="yt-uix-sessionlink",Xq.SUBTEXT="ytp-title-subtext",Xq.TEXT="ytp-title-text",Xq.TITLE="ytp-title",Xq);g.P(HH,g.a);HH.prototype.onClick=function(u){this.api.logClick(this.element);var h=this.api.L(),L=this.api.getVideoUrl(!g.li(u),!1,!0);g.MW(h)&&(h={},g.jq(this.api,"addEmbedsConversionTrackingParams",[h]),L=g.sr(L,h));g.bM(L,this.api,u)};
HH.prototype.kI=function(){var u=this.api.getVideoData(),h=this.api.L();this.updateValue("title",u.title);var L={K:"a",U:GJ.CHANNEL_NAME,J:{href:"{{channelLink}}",target:"_blank"},dw:"{{channelName}}"};this.api.L().X&&(L={K:"span",U:GJ.CHANNEL_NAME,dw:"{{channelName}}",J:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",L);HDf(this);this.api.getPresentingPlayerType()===2&&(L=this.api.getVideoData(),L.videoId&&L.isListed&&L.author&&L.Ca&&L.profilePicture?(this.updateValue("channelLink",
L.Ca),this.updateValue("channelName",L.author),this.updateValue("channelTitleFocusable","0")):HDf(this));L=h.externalFullscreen||!this.api.isFullscreen()&&h.dD;g.JW(this.link,GJ.FULLERSCREEN_LINK,L);h.RH||!u.videoId||L||g.$H(u)||h.X?this.G&&(this.updateValue("url",null),this.FJ(this.G),this.G=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.G||(this.G=this.W(this.link,"click",this.onClick)));h.X&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.MW(h)?u.expandedTitle:
u.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.P(g.rR,g.a);g.K=g.rR.prototype;g.K.setEnabled=function(u){if(this.type!=null)if(u)switch(this.type){case 3:case 2:BwR(this);this.V.show();break;default:this.V.show()}else this.V.hide();this.S=u};
g.K.aX=function(u,h,L,Z,y,R,p,J){if(!this.DI||this.env.S){this.type===3&&this.Fk();this.type!==1&&(g.Lc(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.S&&this.V.show(),this.N&&this.N.dispose(),(this.N=this.api.p7())&&this.N.subscribe("l",this.vQ,this));if(J){var O=g.Qz(this.bg).height||141;this.T7.style.bottom=O+2+"px"}this.update({text:L,title:R!=null?R:"",eduText:J!=null?J:""});g.JW(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!R);this.api.isInline()&&g.yN(this.bottomText,
"ytp-modern-tooltip-text");g.JW(this.element,"ytp-text-detail",!!Z);L=-1;this.N&&(L=q1(this.N,243*this.scale),this.env.j("web_l3_storyboard")&&this.N.levels.length===4&&(L=this.N.levels.length-1),L=O0s(this.N,L,h));mJY(this,L);if(p)switch(h=g.Qz(this.element).width,p){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=h+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=h/2+"px",this.title.style.textAlign="center"}z5b(this,
!!Z,u,y)}};
g.K.hD=function(){this.type===1&&this.Fk()};
g.K.KO=function(u,h){if(this.type)if(this.type===3)this.Fk();else return;r6j(this,u,3,h)};
g.K.g2=function(){this.G&&!this.Y&&this.G.hasAttribute("title")&&(this.X=this.G.getAttribute("title")||"",this.G.removeAttribute("title"),this.S&&BwR(this))};
g.K.vQ=function(u,h){u<=this.B&&this.B<=h&&(u=this.B,this.B=NaN,mJY(this,u))};
g.K.QHB=function(){K_b(this.N,this.B,243*this.scale)};
g.K.Fk=function(){switch(this.type){case 2:var u=this.G;u.removeEventListener("mouseout",this.AB);u.addEventListener("mouseover",this.C);u.removeEventListener("blur",this.AB);u.addEventListener("focus",this.C);dJa(this);break;case 3:dJa(this);break;case 1:this.N&&(this.N.unsubscribe("l",this.vQ,this),this.N=null),this.api.removeEventListener("videoready",this.RH),this.XB.stop()}this.type=null;this.S&&this.V.hide()};
g.K.CY=function(){if(this.G)for(var u=0;u<arguments.length;u++)g.ZO(arguments[u],this.G)&&this.Fk()};
g.K.Ni=function(){this.type!=null&&this.Fk();this.N&&this.N.dispose();g.a.prototype.Ni.call(this)};g.P(nOl,g.a);g.K=nOl.prototype;g.K.oz=function(){this.visible=s5a(this);this.Ay(this.visible);this.icon&&e5R(this,this.icon);this.D.logVisibility(this.element,this.visible&&this.T)};
g.K.UX=function(){return this.D.getVideoData().videoId};
g.K.onClick=function(){this.D.logClick(this.element);var u=this.D.L(),h=this.UX();u.XB?VQi(this):w0Y(this,h)};
g.K.onReset=function(){this.isRequestPending=this.G=!1;this.kI(2);this.oz()};
g.K.kI=function(u,h){var L=this.D.L();e5R(this,u);h?this.update({title:h,image:null}):L.userDisplayName?(u={USER_NAME:L.userDisplayName},this.update({title:this.G?g.cI("Added as $USER_NAME",u):g.cI("Watch later as $USER_NAME",u),image:tz(L)})):this.update({title:"Watch later",image:null});this.D.g2()};
g.K.sU=function(u){g.a.prototype.sU.call(this,u);this.D.logVisibility(this.element,this.visible&&u)};g.P(g.BH,g.ul);g.K=g.BH.prototype;
g.K.init=function(){var u=this;this.Wh=new g.ZY(this.api);this.Ub=new cV(this.api);this.P7=new g.a({K:"div",U:"ytp-chrome-top"});this.tooltip=new g.rR(this.api,this);this.channelAvatar=new Dde(this.api);this.title=new HH(this.api);this.D$=new g.pu({K:"div",U:"ytp-chrome-top-buttons"});this.bS=new Z1n(this.api,this.P7.element);this.Ja=this.api.L().controlsType==="1"?new qmn(this.api,this,this.xJ):null;this.contextMenu=new lTn(this.api,this.Wh);this.Fl=new g.a({K:"div",J:{tabindex:"0"}});this.rI=new g.a({K:"div",
J:{tabindex:"0"}});var h=this.api.m_(),L=this.api.L(),Z=this.api.getVideoData();this.uY&&(g.yN(this.api.getRootNode(),"ytp-embed"),g.yN(this.api.getRootNode(),"ytp-embed-playlist"),this.J8&&(g.yN(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.yN(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.W9=60,this.s7=89);this.api.L().X&&g.yN(this.api.getRootNode(),"ytp-embed-pfl");this.api.L().N&&(g.yN(this.api.getRootNode(),"ytp-mobile"),this.api.L().S&&g.yN(this.api.getRootNode(),"ytp-embed-mobile"));
Z&&Z.videoId&&(this.jZ=Z&&Z.getEmbeddedPlayerResponse());g.V(this,this.Wh);g.XC(this.api,this.Wh.element,4);g.V(this,this.Ub);g.XC(this.api,this.Ub.element,4);Z=new g.a({K:"div",U:"ytp-gradient-top"});g.V(this,Z);g.XC(this.api,Z.element,1);this.Vw=new g.kS(Z,250,!0,100);g.V(this,this.Vw);g.V(this,this.P7);g.XC(this.api,this.P7.element,1);this.jX=new g.kS(this.P7,250,!0,100);g.V(this,this.jX);g.V(this,this.tooltip);g.XC(this.api,this.tooltip.element,4);var y=new cIn(this.api);g.V(this,y);g.XC(this.api,
y.element,5);y.subscribe("show",function(O){u.lK(y,O)});
this.sI.push(y);this.IG=new vV(this.api,y);g.V(this,this.IG);!this.uY&&this.IG.Og(this.P7.element);g.V(this,this.channelAvatar);this.channelAvatar.Og(this.P7.element);g.V(this,this.title);this.title.Og(this.P7.element);this.uY&&(Z=new z_V(this.api),g.V(this,Z),Z.Og(this.P7.element));g.V(this,this.D$);this.D$.Og(this.P7.element);var R=new SAw(this.api,this);g.V(this,R);g.XC(this.api,R.element,5);R.subscribe("show",function(O){u.lK(R,O)});
this.sI.push(R);this.searchButton=new YY(this.api);g.V(this,this.searchButton);this.searchButton.Og(this.D$.element);this.j3=new nOl(this.api);g.V(this,this.j3);this.j3.Og(this.D$.element);this.shareButton=new g.oe(this.api,this,R);g.V(this,this.shareButton);this.shareButton.Og(this.D$.element);this.copyLinkButton=new DY(this.api,this);g.V(this,this.copyLinkButton);this.copyLinkButton.Og(this.D$.element);this.uY&&this.IG.Og(this.D$.element);g.V(this,this.bS);this.bS.Og(this.D$.element);L.S3&&(Z=new HV(this.api),
g.V(this,Z),g.XC(this.api,Z.element,4));L.X||(Z=new y9V(this.api,this.bS),g.V(this,Z),Z.Og(this.D$.element));this.yg=new JIY(this.api);g.V(this,this.yg);g.XC(this.api,this.yg.element,5);this.yg.subscribe("show",function(){u.lK(u.yg,u.yg.We())});
this.sI.push(this.yg);this.overflowButton=new g.XJ(this.api,this.yg);g.V(this,this.overflowButton);this.overflowButton.Og(this.D$.element);this.Ja&&g.V(this,this.Ja);L.controlsType==="3"&&(Z=new TO(this.api),g.V(this,Z),g.XC(this.api,Z.element,9));g.V(this,this.contextMenu);this.contextMenu.subscribe("show",this.DT,this);this.api.j("show_preskip_progress_bar_for_skippable_ads")||(Z=new Gz(this.api,new Ls(this.api)),g.V(this,Z),g.XC(this.api,Z.element,4));this.Fl.listen("focus",this.Is,this);g.V(this,
this.Fl);this.rI.listen("focus",this.AE,this);g.V(this,this.rI);var p;(this.E3=L.Be?null:new R_l(this.api,h,this.contextMenu,this.xJ,this.Wh,this.Ub,function(){return u.t9()},(p=this.Ja)==null?void 0:p.progressBar))&&g.V(this,this.E3);
this.uY||(this.Fh=new onn(this.api),g.V(this,this.Fh),g.XC(this.api,this.Fh.element,4),this.uM=new YAw(this.api),g.V(this,this.uM),g.XC(this.api,this.uM.element,4));this.yG=new UJL(this.api);g.V(this,this.yG);g.XC(this.api,this.yG.element,4);if(this.uY){var J=new W9i(this.api,this.api.L().jd);g.V(this,J);g.XC(this.api,J.element,5);J.subscribe("show",function(O){u.lK(J,O)});
h=new kpL(this.api,J);g.V(this,h);g.XC(this.api,h.element,4)}this.Lj.push(this.Wh.element);this.W(this.api,"fullscreentoggled",this.nx);this.W(this.api,"offlineslatestatechange",function(){u.api.zr()&&e_(u.xJ,128,!1)});
this.W(this.api,"cardstatechange",function(){u.Ol()});
this.W(this.api,"resize",this.nFy);this.W(this.api,"videoplayerreset",this.onReset);this.W(this.api,"showpromotooltip",this.kdd);g.ul.prototype.init.call(this)};
g.K.l2=function(){return this.tooltip};
g.K.TZ=function(){return this.Ja};
g.K.lK=function(u,h){h?this.Z4=u:this.Z4=null;this.Ol()};
g.K.Re=function(u,h){if(h)this.pz.push(u);else for(h=this.pz.length;h>=0;h--)if(this.pz[h]===u){this.pz.splice(h,1);break}e_(this.xJ,64,this.pz.length>0)};
g.K.P5=function(){this.api.Dk()&&this.api.Yc();return!!this.Z4||aUl(this)||g.ul.prototype.P5.call(this)};
g.K.Ch=LV(3);g.K.Yz=LV(7);g.K.f5=LV(10);
g.K.Ol=function(){var u=!this.P5(),h=u&&this.api.Dk()&&!g.F(this.api.getPlayerStateObject(),2)&&!g.$H(this.api.getVideoData())&&!this.api.L().X&&!this.api.isEmbedsShortsMode(),L=this.uY&&g.iM(this.api)&&g.F(this.api.getPlayerStateObject(),128);u||L?(this.jX.show(),this.Vw.show()):(this.jX.hide(),this.Vw.hide(),this.api.CY(this.P7.element));h?this.bS.VF():this.bS.aP();this.Ja&&TwL(this.Ja,this.gt||!u);this.api.j("web_player_hide_overflow_button_if_empty_menu")&&$Js(this);g.ul.prototype.Ol.call(this)};
g.K.Kx=function(u,h,L,Z,y){u.style.left="";u.style.top="";u.style.bottom="";var R=g.Qz(u),p=Z||this.Ja&&g.ZO(this.Ja.lP(),h),J=Z=null;L!=null&&p||(Z=g.Qz(h),J=g.M2(h,this.api.getRootNode()),L==null&&(L=J.x+Z.width/2));L-=R.width/2;p?(h=this.Ja,Z=YmR(h),J=oO1(h),p=this.api.m_().getPlayerSize().height,L=g.pX(L,Z,Z+J-R.width),R=p-Nwn(h)-R.height):g.ZO(this.P7.element,h)?(h=this.api.m_().getPlayerSize().width,L=g.pX(L,12,h-R.width-12),R=this.GN()?this.s7:this.W9,this.api.L().playerStyle==="gvn"&&(R+=
20),this.uY&&(R-=this.GN()?26:18)):(h=this.api.m_().getPlayerSize(),L=g.pX(L,12,h.width-R.width-12),R=J.y>(h.height-Z.height)/2?J.y-R.height-12:J.y+Z.height+12);u.style.top=R+(y||0)+"px";u.style.left=L+"px"};
g.K.W0=function(u){u&&(this.api.CY(this.P7.element),this.Ja&&this.api.CY(this.Ja.lP()));this.J8&&(g.JW(this.contextMenu.element,"ytp-autohide",u),g.JW(this.contextMenu.element,"ytp-autohide-active",!0));g.ul.prototype.W0.call(this,u)};
g.K.dY=function(){g.ul.prototype.dY.call(this);this.J8&&(g.JW(this.contextMenu.element,"ytp-autohide-active",!1),this.J8&&(this.contextMenu.hide(),this.yg&&this.yg.hide()))};
g.K.Wb=function(u,h){var L=this.api.m_().getPlayerSize();L=new g.ZE(0,0,L.width,L.height);if(u||this.xJ.N&&!this.P5()){if(this.api.L().KY||h)u=this.GN()?this.s7:this.W9,L.top+=u,L.height-=u;this.Ja&&(L.height-=Nwn(this.Ja))}return L};
g.K.nx=function(u){var h=this.api.getRootNode();u?h.parentElement?(h.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.L().externalFullscreen||(h.parentElement.insertBefore(this.Fl.element,h),h.parentElement.insertBefore(this.rI.element,h.nextSibling))):g.UZ(Error("Player not in DOM.")):(h.setAttribute("aria-label","YouTube Video Player"),this.Fl.detach(),this.rI.detach());this.QZ();this.FP()};
g.K.GN=function(){var u=this.api.L();return this.api.isFullscreen()&&!u.S||!1};
g.K.showControls=function(u){this.xA=!u;this.Ol()};
g.K.QZ=function(){var u=this.GN();this.tooltip.scale=u?1.5:1;this.contextMenu&&g.JW(this.contextMenu.element,"ytp-big-mode",u);this.Ol();this.api.j("web_player_hide_overflow_button_if_empty_menu")||$Js(this);this.FP();var h=this.api.isEmbedsShortsMode();h&&u?(u=(this.api.m_().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Oz(this.P7.element,"padding-left",u+"px"),g.Oz(this.P7.element,"padding-right",u+"px")):h&&(g.Oz(this.P7.element,"padding-left",""),g.Oz(this.P7.element,"padding-right",
""));g.ul.prototype.QZ.call(this)};
g.K.Rj=function(){if(aUl(this)&&!g.iM(this.api))return!1;var u=this.api.getVideoData();return!g.MW(this.api.L())||this.api.getPresentingPlayerType()===2||!this.jZ||((u=this.jZ||u.jZ)?(u=u.embedPreview)?(u=u.thumbnailPreviewRenderer,u=u.videoDetails&&g.n(u.videoDetails,W_R)||null):u=null:u=null,u&&u.collapsedRenderer&&u.expandedRenderer)?g.ul.prototype.Rj.call(this):!1};
g.K.FP=function(){g.ul.prototype.FP.call(this);this.api.logVisibility(this.title.element,!!this.Qx);this.IG&&this.IG.sU(!!this.Qx);this.channelAvatar.sU(!!this.Qx);this.overflowButton&&this.overflowButton.sU(this.Bo()&&!!this.Qx);this.shareButton&&this.shareButton.sU(!this.Bo()&&!!this.Qx);this.j3&&this.j3.sU(!this.Bo()&&!!this.Qx);this.searchButton&&this.searchButton.sU(!this.Bo()&&!!this.Qx);this.copyLinkButton&&this.copyLinkButton.sU(!this.Bo()&&!!this.Qx);if(!this.Qx){this.api.CY(this.P7.element);
for(var u=0;u<this.sI.length;u++){var h=this.sI[u];h.We()&&h.aP()}}};
g.K.gf=function(u){this.Ja&&TwL(this.Ja,this.P5());this.Ol();g.ul.prototype.gf.call(this,u)};
g.K.handleGlobalKeyDown=function(u,h,L,Z,y,R,p,J){return this.E3?this.E3.handleGlobalKeyDown(u,h,L,Z,y,R,p,J):!1};
g.K.handleGlobalKeyUp=function(u,h,L,Z,y,R,p){return this.E3?this.E3.handleGlobalKeyUp(u,h,L,Z,y,R,p):!1};
g.K.t9=function(){if(this.contextMenu.BJ)return this.contextMenu.aP(),!0;if(this.pz.length)return this.pz[this.pz.length-1].aP(),!0;if(this.Z4)return this.Z4.aP(),!0;this.Ja&&this.api.CY(this.Ja.lP());this.D$&&this.api.CY(this.D$.element);return g.ul.prototype.t9.call(this)};
g.K.T$=function(u,h){this.sY=h;this.Re(u,h);this.DT()};
g.K.DT=function(){var u=this.sY||this.contextMenu.We();this.Fn!==u&&(this.Fn=u,this.api.hB("onAutonavPauseRequest",this.Fn))};
g.K.Is=function(){tQs(this,this.api.getRootNode(),!0).focus()};
g.K.AE=function(){tQs(this,this.api.getRootNode(),!1).focus()};
g.K.jb=function(){return this.Ja&&this.Ja.X};
g.K.Bc=function(){this.xJ.Bc()};
g.K.tD=function(){this.Wh.hide()};
g.K.lZ=function(u){this.Wh.lZ(!u.isOrWillBePlaying())};
g.K.Us=function(u,h,L,Z){this.Ub.Us(u,h,L,Z)};
g.K.renderChapterSeekingAnimation=function(u,h,L){YQn(this.Ub,u,h,L)};
g.K.nFy=function(){WOl(this,!0)};
g.K.onReset=function(){$Js(this)};
g.K.kdd=function(u){WOl(this,!1,u)};
g.K.py=function(){return this.contextMenu};
g.K.Hd=function(u,h){var L;if((L=this.Ja)!=null){var Z=Number(u.element.getAttribute("data-priority"))||0,y=0,R=L.N.element;h&&L.D.j("delhi_modern_web_player")&&(R=L.N.BX(Nl[h]));h=g.C(R.children);for(L=h.next();!(L.done||Z<(Number(L.value.getAttribute("data-priority"))||0));L=h.next())y++;u.Og(R,y)}};
g.K.HL=function(){var u,h=(u=this.Ja)==null?void 0:u.progressBar;if(h){var L;((L=h.N)==null?0:L.isEnabled)&&h.HL()}};g.P(g.zJ,g.Tl);g.zJ.prototype.n3=function(){return!1};
g.zJ.prototype.create=function(){var u=this.player.L();g.rp(u)&&u.N||u.disableOrganicUi?this.chrome=new g.ul(this.player):this.chrome=new g.BH(this.player);g.V(this,this.chrome);this.chrome.init();this.player.CB("ux")};
g.zJ.prototype.Vg=function(){return this.chrome};var mE=[],sm1=!1;g.P(dR,g.m);dR.prototype.V=function(){this.G!=null&&this.app.getVideoData()!==this.G&&Bu(this.G)&&MHi(this.app,this.G,void 0,void 0,this.X)};
dR.prototype.C=function(){if(this.G!=null&&this.app.getVideoData()!==this.G&&this.N!=null&&this.B!=null&&this.T!=null&&Bu(this.G)){var u=EOf(this.N,this.B,this.T);u==null?MHi(this.app,this.G,void 0,void 0,this.X):(this.N.IH("sgap",u),this.N.getVideoData().S&&this.N.jG(!1))}};
dR.prototype.S=function(u){var h=this.app.WX();if(h){var L=this.app.getCurrentTime();Math.abs(L-u.end/1E3)>5&&h.IH("glrs",{cmt:L});h.seekTo(0,{seekSource:58});h.IH("glrre",{cmt:L})}};
dR.prototype.Ni=function(){this.G=null;g.m.prototype.Ni.call(this)};g.P(g.Vk,$x);g.K=g.Vk.prototype;g.K.isView=function(){return!0};
g.K.x8=function(){var u=this.mediaElement.getCurrentTime();if(u<this.start)try{var h=this.mediaElement.R7(),L=ZI(h,u);return!(this.start<L)}catch(Z){}return!1};
g.K.xu=function(){return pl(this.mediaElement.xu(),this.start,this.end)};
g.K.R7=function(){return pl(this.mediaElement.R7(),this.start,this.end)};
g.K.EQ=function(){return pl(this.mediaElement.EQ(),this.start,this.end)};
g.K.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
g.K.setCurrentTime=function(u){this.mediaElement.setCurrentTime(u+this.start)};
g.K.getDuration=function(){return isFinite(this.end)&&!this.G?this.end-this.start:this.mediaElement.getDuration()-this.start};
g.K.play=function(){if(this.x8()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(u){}}return this.mediaElement.play()};
g.K.IV=function(){var u=$x.prototype.IV.call(this);u.view=this.start+"-"+this.end;return u};
g.K.addEventListener=function(u,h){this.mediaElement.addEventListener(u,h)};
g.K.removeEventListener=function(u,h){this.mediaElement.removeEventListener(u,h)};
g.K.PG=function(){return this.mediaElement.PG()};
g.K.activate=function(u){this.mediaElement.activate(u)};
g.K.EH=function(){return this.mediaElement.EH()};
g.K.playVideo=function(){return this.mediaElement.playVideo()};
g.K.FR=function(){this.mediaElement.FR()};
g.K.l0=function(){this.mediaElement.l0()};
g.K.i$=function(){return this.mediaElement.i$()};
g.K.lP=function(){return this.mediaElement.lP()};
g.K.D7=function(){return this.mediaElement.D7()};
g.K.D_=function(u){this.mediaElement.D_(u)};
g.K.mY=function(){this.mediaElement.mY()};
g.K.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.K.setPlaybackRate=function(u){return this.mediaElement.setPlaybackRate(u)};
g.K.lm=function(){return this.mediaElement.lm()};
g.K.setLoop=function(u){this.mediaElement.setLoop(u)};
g.K.canPlayType=function(u,h){return this.mediaElement.canPlayType(u,h)};
g.K.isPaused=function(){return this.mediaElement.isPaused()};
g.K.isSeeking=function(){return this.mediaElement.isSeeking()};
g.K.isEnded=function(){return this.mediaElement.isEnded()};
g.K.dR=function(){return this.mediaElement.dR()};
g.K.v5=function(u){this.mediaElement.v5(u)};
g.K.EV=function(){return this.mediaElement.EV()};
g.K.load=function(){this.mediaElement.load()};
g.K.pause=function(){this.mediaElement.pause()};
g.K.rD=function(){return this.mediaElement.rD()};
g.K.MK=function(){return this.mediaElement.MK()};
g.K.xW=function(){return this.mediaElement.xW()};
g.K.KB=function(){return this.mediaElement.KB()};
g.K.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
g.K.kJ=function(){return this.mediaElement.kJ()};
g.K.ue=function(){return this.mediaElement.ue()};
g.K.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.K.mu=function(){return this.mediaElement.mu()};
g.K.getSize=function(){return this.mediaElement.getSize()};
g.K.setSize=function(u){this.mediaElement.setSize(u)};
g.K.getVolume=function(){return this.mediaElement.getVolume()};
g.K.setVolume=function(u){this.mediaElement.setVolume(u)};
g.K.setAttribute=function(u,h){this.mediaElement.setAttribute(u,h)};
g.K.removeAttribute=function(u){this.mediaElement.removeAttribute(u)};
g.K.hasAttribute=function(u){return this.mediaElement.hasAttribute(u)};
g.K.CT=LV(56);g.K.pO=LV(58);g.K.oO=LV(60);g.K.eG=LV(62);g.K.Xl=function(){return this.mediaElement.Xl()};
g.K.wW=function(u){this.mediaElement.wW(u)};
g.K.tL=function(u){return this.mediaElement.tL(u)};
g.K.dg=function(){return this.mediaElement.dg()};
g.K.stopVideo=function(){this.mediaElement.stopVideo()};
g.K.Tu=function(u){this.mediaElement.Tu(u)};
g.K.audioTracks=function(){return this.mediaElement.audioTracks()};
g.K.vz=function(u){this.mediaElement.vz(u)};g.P(ueR,g.m);g.K=ueR.prototype;g.K.getStatus=function(){return this.status};
g.K.yx=function(){var u=this.G.getVideoData(),h=this.N.getVideoData(),L;if((L=u.X)&&!(L=!u.G)){L=u.G;for(var Z=!1,y=!1,R=g.C(Object.values(L.G)),p=R.next();!p.done;p=R.next())p=p.value,p.info.audio&&p.index.isLoaded()&&(Z=!0),p.info.video&&p.index.isLoaded()&&(y=!0);L.G["0"]&&(y=!0);L=Z&&y}if(L)if(this.G.yQ()){R=bDR(this.policy,this.G,this.N,this.dN);p=jos(this);L=p.Mn;y=p.nK;Z=p.fC;p=p.Av;if(!this.V){var J=this.N.V$()*1E3,O=this.G.V$();O=(Z-L-O)*1E3;R&&R.msg==="in-the-past"&&(O=0);u=u.isAd();this.N.yy(J,
O,u);this.V=!0}R?(h="cannot_apply"+R.msg,delete R.msg,this.Kr(h,R)):this.status.status===2?pRV(this):(u=this.G.EH())&&sF(u)&&(!dM(u)&&g.wg()?this.Kr("mse_closed"):h.G&&R3(h.G)&&u.N&&!u.N.Ri()?this.Kr("encr_upgrade"):(h=this.G.yQ(),h.isEnded()?this.Kr("elem_ended"):y<0?this.Kr("next_player_future"):(this.C=Z,this.currentVideoDuration=Z-L,this.X=S_i(u,L,Z,!0),this.B=S_i(u,y,p,!1),u=this.N.getVideoData().clientPlaybackNonce,this.G.IH("gaplessPrep",{cpn:u}),this.G.N5(this.X,!1,Zof(this),this.pH.L().j("html5_shorts_gapless_keep_pending_requests")&&
Wu(this.G.getVideoData())),this.G.setMediaElement(h4n(h,L,Z,!this.G.getVideoData().isAd())),s$(this,2),pRV(this))))}else this.Kr("no-elem")};
g.K.Uq=function(u){var h=u===R4L(this).jI,L=h?this.X.G:this.X.N;h=h?this.B.G:this.B.N;if(L.isActive&&!h.isActive){var Z=this.C;Ll(u.QQ(),Z-.01)&&(s$(this,4),L.isActive=!1,L.Gm=L.Gm||L.isActive,(this.T===1?this.G:this.N).IH("sbh",{}),h.isActive=!0,h.Gm=h.Gm||h.isActive,this.T!==0&&(this.G.getVideoData().nu=!0));u=this.B.N;if(this.B.G.isActive&&u.isActive&&(s$(this,5),this.T!==0)){u=this.N.fv();L=this.G.fv();this.G.IH("sbs",{citag:L==null?void 0:L.itag,nitag:u==null?void 0:u.itag});this.N.IH("gitags",
{pitag:L==null?void 0:L.itag,citag:u==null?void 0:u.itag});var y;(y=this.N)==null||y.ea()}}};
g.K.wS=function(){this.XL()&&this.Kr("player-reload-after-handoff")};
g.K.Kr=function(u,h){h=h===void 0?{}:h;if(!this.ww()&&this.status.status!==6){var L=this.status.status>=4&&u!=="player-reload-after-handoff";this.status={status:Infinity,error:u};if(this.G&&this.N){var Z=this.N.getVideoData().clientPlaybackNonce;this.G.Hj(new lZ("dai.transitionfailure",Object.assign(h,{cpn:Z,transitionTimeMs:this.dN,msg:u})));this.G.jG(L)}this.g6.reject(u);this.dispose()}};
g.K.XL=function(){return this.status.status>=4&&this.status.status<6};
g.K.Ni=function(){ypY(this);this.G.unsubscribe("newelementrequired",this.wS,this);if(this.X){var u=this.X.N;this.X.G.G1.unsubscribe("updateend",this.Uq,this);u.G1.unsubscribe("updateend",this.Uq,this)}g.m.prototype.Ni.call(this)};
g.K.zc=function(u){g.DK(u,128)&&this.Kr("player-error-event")};g.P(wR,g.m);wR.prototype.clearQueue=function(u,h){u=u===void 0?!1:u;h=h===void 0?!1:h;this.B&&this.B.reject("Queue cleared");this.app.L().j("html5_gapless_fallback_on_qoe_restart_v2")||h&&this.N&&this.N.jG(!1);e3(this,u)};
wR.prototype.XS=function(){return!this.G};
wR.prototype.XL=function(){var u;return((u=this.X)==null?void 0:u.XL())||!1};
wR.prototype.Ni=function(){e3(this);g.m.prototype.Ni.call(this)};g.P(DCf,g.yV);g.K=DCf.prototype;g.K.getVisibilityState=function(u,h,L,Z,y,R,p,J){return u?4:ORa()?3:h?2:L?1:Z?5:y?7:R?8:p?9:J?10:0};
g.K.AC=function(u){this.fullscreen!==u&&(this.fullscreen=u,this.ut())};
g.K.setMinimized=function(u){this.N!==u&&(this.N=u,this.ut())};
g.K.setInline=function(u){this.inline!==u&&(this.inline=u,this.ut())};
g.K.Q_=function(u){this.pictureInPicture!==u&&(this.pictureInPicture=u,this.ut())};
g.K.setSqueezeback=function(u){this.X!==u&&(this.X=u,this.ut())};
g.K.c5=function(u){this.B!==u&&(this.B=u,this.ut())};
g.K.kJ=function(){return this.G};
g.K.PS=function(){return this.fullscreen!==0};
g.K.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4};
g.K.jt=function(){return this.fullscreen};
g.K.isMinimized=function(){return this.N};
g.K.isInline=function(){return this.inline};
g.K.isBackground=function(){return ORa()};
g.K.Wx=function(){return this.pictureInPicture};
g.K.I_=function(){return!1};
g.K.M0=function(){return this.X};
g.K.sA=function(){return this.B};
g.K.ut=function(){this.publish("visibilitychange");var u=this.getVisibilityState(this.kJ(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Wx(),this.I_(),this.M0(),this.sA());u!==this.C&&this.publish("visibilitystatechange");this.C=u};
g.K.Ni=function(){chs(this.T);g.yV.prototype.Ni.call(this)};g.P(cpV,g.m);g.K=cpV.prototype;g.K.IP=function(){return this.B};
g.K.gQ=function(u){this.B=u};
g.K.WX=function(){return this.X};
g.K.xw=function(u){this.X=u};
g.K.HJ=function(u){return this.N[u]||null};
g.K.Ni=function(){for(var u=g.C(Object.values(this.N)),h=u.next();!h.done;h=u.next())Fa(h.value);g.m.prototype.Ni.call(this)};g.P(ay,g.m);g.K=ay.prototype;g.K.enqueue=function(u,h){if(u.B!==this)return!1;if(this.segments.length===0||(h===void 0?0:h))this.G=u;this.segments.push(u);return!0};
g.K.y$=function(){return this.VZ||0};
g.K.W7=function(){return this.B||0};
g.K.removeAll=function(){for(;this.segments.length;){var u=void 0;(u=this.segments.pop())==null||u.dispose()}this.N.clear();this.X=void 0};
g.K.Ni=function(){this.removeAll();g.m.prototype.Ni.call(this)};
g.P(SPl,g.m);g.K=SPl.prototype;g.K.y$=function(){return this.VZ};
g.K.W7=function(){return this.X};
g.K.getType=function(){return this.type};
g.K.getVideoData=function(){return this.videoData};
g.K.O0=function(u){OT(u);this.videoData=u};
g.K.Ni=function(){XRe(this);g.m.prototype.Ni.call(this)};g.Fv.prototype.pL=function(u,h){if(h===1)return this.G.get(u);if(h===2)return this.X.get(u);if(h===3)return this.N.get(u)};
g.Fv.prototype.Ks=LV(50);g.Fv.prototype.M6=function(u,h,L,Z){L={V3:Z,Fm:L};h?this.X.set(u,L):this.G.set(u,L)};
g.Fv.prototype.clearAll=function(){this.G.clear();this.X.clear();this.N.clear()};
g.P(g.bD,g.m);g.K=g.bD.prototype;g.K.Sg=function(u,h,L){return new g.uW(u,h,{id:L,namespace:"serverstitchedcuerange",priority:9})};
g.K.cT=function(u){var h=u.v6?u.v6*1E3:u.VZ,L=this.N.get(u.cpn);L&&this.playback.removeCueRange(L);this.N.delete(u.cpn);this.X.delete(u.cpn);L=this.T.indexOf(u);L>=0&&this.T.splice(L,1);L=[];for(var Z=g.C(this.C),y=Z.next();!y.done;y=Z.next())y=y.value,y.end<=h?this.playback.removeCueRange(y):L.push(y);this.C=L;soY(this,0,h+u.durationMs)};
g.K.onCueRangeEnter=function(u){this.aH.push(u);var h=u.getId();this.RP({oncueEnter:1,cpn:h,start:u.start,end:u.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.V$()||0).toFixed(3)});var L=h==="";this.ZI.add(u.N);var Z=this.X.get(h);if(L){var y;if(this.playback.getVideoData().KZ()&&((y=this.G)==null?0:y.nw)&&this.B){this.pV=0;this.G=void 0;this.fI&&(this.events.FJ(this.fI),this.fI=null);this.B="";this.jd=!0;return}}else if(this.RP({enterAdCueRange:1}),this.playback.getVideoData().KZ()&&
(Z==null?0:Z.dT))return;if(this.jd&&!this.G)this.jd=!1,!L&&Z&&(L=this.playback.getCurrentTime(),h9(this,{lh:u,isAd:!0,pE:!0,hd:L,adCpn:h},{isAd:!1,pE:!1,hd:L}),this.gm=Z.cpn,uY(this,Z),u=gR(this,"midab",Z),this.RP(u),this.pV=1),this.Y=!1;else if(this.G){if(this.G.pE)this.RP({a_pair_of_same_transition_occurs_enter:1,acpn:this.G.adCpn,transitionTime:this.G.hd,cpn:h,currentTime:this.playback.getCurrentTime()}),Z=this.playback.getCurrentTime(),u={lh:u,isAd:!L,pE:!0,hd:Z,adCpn:h},h={lh:this.G.lh,isAd:this.G.isAd,
pE:!1,hd:Z,adCpn:this.G.adCpn},this.G.lh&&this.ZI.delete(this.G.lh.N),h9(this,u,h);else{if(this.G.lh===u){this.RP({same_cue_range_pair_enter:1,acpn:this.G.adCpn,transitionTime:this.G.hd,cpn:h,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:u.start,cueRangeEndTime:u.end});this.G=void 0;return}if(this.G.adCpn===h){h&&this.RP({dchtsc:h});this.G=void 0;return}u={lh:u,isAd:!L,pE:!0,hd:this.playback.getCurrentTime(),adCpn:h};h9(this,u,this.G)}this.G=void 0;this.Y=!1}else this.G={lh:u,isAd:!L,
pE:!0,hd:this.playback.getCurrentTime(),adCpn:h}};
g.K.onCueRangeExit=function(u){var h=u.getId();this.RP({oncueExit:1,cpn:h,start:u.start,end:u.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.V$()||0).toFixed(3)});var L=h==="",Z=this.X.get(h);if(this.playback.getVideoData().KZ()&&!L&&Z){if(Z.dT)return;Z.dT=!0;this.V.clear();if(this.xI.j("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.kL()){var y=Z.VZ;this.playback.jk(y/1E3,(y+Z.durationMs)/1E3)}else this.playback.IH("lifa",{remove:0})}if(this.ZI.has(u.N))if(this.ZI.delete(u.N),
this.aH=this.aH.filter(function(R){return R!==u}),this.jd&&(this.Y=this.jd=!1,this.RP({cref:1})),this.G){if(this.G.pE){if(this.G.lh===u){this.RP({same_cue_range_pair_exit:1,
acpn:this.G.adCpn,transitionTime:this.G.hd,cpn:h,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:u.start,cueRangeEndTime:u.end});this.G=void 0;return}if(this.G.adCpn===h){h&&this.RP({dchtsc:h});this.G=void 0;return}h={lh:u,isAd:!L,pE:!1,hd:this.playback.getCurrentTime(),adCpn:h};h9(this,this.G,h)}else if(this.RP({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.G.adCpn,transitionTime:this.G.hd,upcomingCpn:h,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}),
this.G.adCpn===h)return;this.G=void 0;this.Y=!1}else this.G={lh:u,isAd:!L,pE:!1,hd:this.playback.getCurrentTime(),adCpn:h};else this.RP({ignore_single_exit:1})};
g.K.X$=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,VZ:0,playerType:1,nW:0,videoData:this.playback.getVideoData(),errorCount:0}};
g.K.UA=function(){if(this.kD)return!1;var u=void 0;this.gm&&(u=this.X.get(this.gm));return this.playback.getVideoData().KZ()?!!u&&!u.dT:!!u};
g.K.seekTo=function(u,h,L,Z){u=u===void 0?0:u;h=h===void 0?{}:h;L=L===void 0?!1:L;Z=Z===void 0?null:Z;if(this.playback.getVideoData().KZ()&&u<=this.gw/1E3)this.playback.pauseVideo(),this.gw=0,this.Y=!0,this.playback.uS(),this.playback.seekTo(u),this.playback.playVideo();else if(this.Y=!0,L)qPL(this,u,h);else{L=this.app.WX();var y=L===this.VA?this.wm:null;ZT(this,!1);this.iP=u;this.La=h;Z!=null&&this.Ca.start(Z);L&&(this.wm=y||L.getPlayerState(),L.T0(),this.VA=L)}};
g.K.Ni=function(){ZT(this,!1);rpV(this);BoV(this);g.m.prototype.Ni.call(this)};
g.K.k8=function(u){this.nH=u;this.RP({swebm:u})};
g.K.ju=function(u,h,L){if(L&&h){var Z=this.V.get(u);if(Z){Z.locations||(Z.locations=new Map);var y=Number(h.split(";")[0]);L=new g.cQ(L);this.RP({hdlredir:1,itag:h,seg:u,hostport:AD(L)});Z.locations.set(y,L)}}};
g.K.CG=function(u,h,L,Z,y,R){var p=Z===3,J=mCL(this,u,h,Z,L,R);if(!J){R_(this,h,p);var O=g.z4j(this,h)?"undec":"ncp";this.RP({gvprp:O,mt:u,seg:h,tt:Z,itag:L,ce:R});return null}p||this.V.set(h,J);R=J.rN;var f;Z=((f=this.pL(h-1,Z,y))==null?void 0:f.V3)||"";Z===""&&this.RP({eds:1});f=VOn(this,J.ssdaiAdsConfig);y=this.playback.getVideoData();var D;p=((D=y.N)==null?void 0:D.containerType)||0;D=y.GW[p];J=J.M9&&h>=J.M9?J.M9:void 0;D={i6:R?e4j(this,R):[],Ia:f,V3:Z,hO:J,wV:ge(D.split(";")[0]),T_:D.split(";")[1]||
""};J={Im:D};this.e7&&(u={gvprpro:"v",sq:h,mt:u.toFixed(3),itag:L,acpns:((O=D.i6)==null?void 0:O.join("_"))||"none",abid:R},this.RP(u));return J};
g.K.CR=function(u){a:{if(!this.kD){var h=dCR(this,u);if(!(this.playback.getVideoData().KZ()&&(h==null?0:h.dT)))break a}h=void 0}var L=h;if(!L)return this.RP({gvprp:"ncp",mt:u}),null;h=L.rN;var Z=VOn(this,L.ssdaiAdsConfig);L=L.M9&&L.bU&&u>=L.bU?L.M9:void 0;var y=this.playback.getVideoData(),R,p=((R=y.N)==null?void 0:R.containerType)||0;R=y.GW[p];R={i6:h?e4j(this,h):[],Ia:Z,hO:L,wV:ge(R.split(";")[0]),T_:R.split(";")[1]||""};if(this.xI.j("html5_use_time_without_threshold_first")){var J;u={gvprpro:"v",
mt:u.toFixed(3),acpns:((J=R.i6)==null?void 0:J.join("_"))||"none",abid:h};this.RP(u)}return R};
g.K.Fj=function(u,h,L,Z,y,R){var p=Number(L.split(";")[0]),J=Z===3;u=mCL(this,u,h,Z,L,R);this.RP({gdu:1,seg:h,itag:p,pb:""+!!u});if(!u)return R_(this,h,J),null;u.locations||(u.locations=new Map);if(!u.locations.has(p)){var O,f;R=(O=u.videoData.getPlayerResponse())==null?void 0:(f=O.streamingData)==null?void 0:f.adaptiveFormats;if(!R)return this.RP({gdu:"noadpfmts",seg:h,itag:p}),R_(this,h,J),null;O=R.find(function(I){return I.itag===p});
if(!O||!O.url){var D=u.videoData.videoId;u=[];var c=g.C(R);for(Z=c.next();!Z.done;Z=c.next())u.push(Z.value.itag);this.RP({gdu:"nofmt",seg:h,vid:D,itag:p,fullitag:L,itags:u.join(",")});R_(this,h,J);return null}u.locations.set(p,new g.cQ(O.url,!0))}R=u.locations.get(p);if(!R)return this.RP({gdu:"nourl",seg:h,itag:p}),R_(this,h,J),null;R=new RW(R);this.nH&&(R.get("dvc")?this.RP({dvc:R.get("dvc")||""}):R.set("dvc","webm"));(Z=(c=this.pL(h-1,Z,y))==null?void 0:c.V3)&&R.set("daistate",Z);u.M9&&h>=u.M9&&
R.set("skipsq",""+u.M9);(c=this.playback.getVideoData().clientPlaybackNonce)&&R.set("cpn",c);c=[];u.rN&&(c=e4j(this,u.rN),c.length>0&&R.set("acpns",c.join(",")));J||this.V.set(h,u);J=null;J=R.get("aids");Z=R.VQ();(Z==null?void 0:Z.length)>2048&&this.RP({urltoolong:1,sq:h,itag:p,len:Z.length});this.e7&&(Z&&(R=u.cpn,y=u.rN,tOi(this,R,y),y&&!this.Oo.has(y)&&(R=aua(this,R,y),O=$Cs(this,y),this.RP({iofa:R}),this.RP({noawnzd:O-R}),this.RP({acpns:c.join("."),aids:(D=J)==null?void 0:D.replace(/,/g,".")}),
this.Oo.add(y))),this.RP({gdu:"v",seg:h,itag:L,ast:u.VZ.toFixed(3),alen:u.durationMs.toFixed(3),acpn:u.cpn,avid:u.videoData.videoId}));return Z};
g.K.QN=function(u,h,L){var Z=y7(this,u,L);return(Z=Z?(Z.VZ+Z.durationMs)/1E3:0)&&h>Z?(this.Iu(u,L,!0),this.playback.seekTo(Z),!0):!1};
g.K.Iu=function(u,h,L){L=L===void 0?!1:L;var Z=y7(this,u,h);if(Z){var y=void 0,R=Z.rN;if(R){this.RP({skipadonsq:h,sts:L,abid:R,acpn:Z.cpn,avid:Z.videoData.videoId});L=this.AB.get(R);if(!L)return;L=g.C(L);for(R=L.next();!R.done;R=L.next())R=R.value,R.M9=h,R.bU=u,R.VZ>Z.VZ&&(y=R)}this.B=Z.cpn;nCj(this);u=this.playback.getCurrentTime();jd(this,Z,y,u,u,!1,!0)}};
g.K.I6=function(){for(var u=g.C(this.T),h=u.next();!h.done;h=u.next())h=h.value,h.M9=NaN,h.bU=NaN;nCj(this);this.RP({rsac:"resetSkipAd",sac:this.B});this.B=""};
g.K.pL=function(u,h,L){return this.T7.pL(u,h,L)};
g.K.Ks=LV(49);
g.K.M6=function(u,h,L,Z,y,R,p,J,O){Z.length>0&&this.RP({onssinfo:1,sq:u,start:h.toFixed(3),cpns:Z.join(","),ds:y.join(","),isVideo:p?1:0});O&&this.T7.M6(u,p,J,O);J=EX(this.playback.getVideoData())&&this.xI.j("html5_process_all_cuepoints");if(p||J){if(Z.length&&y.length)for(this.B&&this.B===Z[0]&&this.RP({skipfail:1,sq:u,acpn:this.B}),u=h+this.VR(),p=0;p<Z.length;p++)if(O=Z[p],J=u,u=J+y[p],O=this.X.get(O))J-=R[p],O.v6=O.v6!=null?Math.min(O.v6,J):J;if(Z.length&&y.length)for(h=(h+this.VR())*1E3,L=0;L<
Z.length;L++)if(u=Z[L],p=y[L]*1E3,u===this.playback.getVideoData().clientPlaybackNonce)wRl(this,h,h+p,!1),h+=p;else{this.Sd.has(u)||(this.RP({adCpnFromEmsg:1}),this.Sd.add(u));J=0;L<R.length&&(J=R[L]*1E3);O=this.N.get(u);var f=!1;O?(O.start=h-J,O.end=h+p,this.playback.eB()):(O=this.Sg(h-J,h+p,u),this.N.set(u,O),this.RP({newAdCR:1,cpn:u,startTime:O.start,endTime:O.end}),f=!0);h=O.end;wRl(this,O.start,O.end,!0);if(f)for(this.playback.addCueRange(O),u=this.playback.LA("serverstitchedcuerange",36E5),
u=g.C(u),p=u.next();!p.done;p=u.next())this.N.delete(p.value.getId())}else L!==5&&L!==4||wRl(this,(h+this.VR())*1E3,(h+this.VR())*1E3+5E3,!1)}};
g.K.EK=LV(47);g.K.VR=function(){return this.playback.VR()};
g.K.zz=function(u){this.playback.IH("timelineerror",{e:u})};
g.K.AR=function(u){this.DI&&this.RH&&this.vX.push(this.RH);u&&this.RH&&this.eq.push(this.RH);this.RH=null;this.playback.AR(u)};
g.K.yC=function(u){if(this.kD||u.identifier&&this.XN.has(u.identifier))this.RP({startnoad:u.identifier}),ks(this);else if(oS(this.vX,function(L){return L.identifier===u.identifier}))this.RP({timedoutcp:1}),this.XB.start(0);
else if(oS(this.eq,function(L){return L.identifier===u.identifier}))this.RP({fetchedcp:1}),ks(this);
else if(this.XB.isActive()){var h;this.RP({racingcp:((h=this.RH)==null?void 0:h.identifier)+"_"+u.identifier})}else this.vj=(new Date).getTime()/1E3,this.RP({adf:1}),(h=5E3,u.event==="predictStart")&&(h-=u.G),this.vJ=Math.max(h,15E3),this.DI=!1,this.XB.start(this.vJ),this.RH=u,this.T7.clearAll(),this.xl=[]};
g.K.BP=function(u,h,L,Z){L=L||{reason:"disablessdai"};if(u&&h){if(!y7(this,u,h))return!1;L.sq=h}if(this.kD)return!1;this.kD=!0;this.pV>0&&(this.pV=0,this.gm="",this.api.publish("serverstitchedvideochange"));this.playback.Dy(L,Z);return!0};
g.K.Rq=function(){this.RP({rstdaist:1});this.T7.clearAll()};
g.K.s4=function(u){var h;if(u!==((h=this.RH)==null?void 0:h.identifier))this.RP({ignorenoad:u});else{this.XN.add(u);var L;((L=this.RH)==null?void 0:L.identifier)===u&&ks(this)}};
g.K.YA=function(){return this.pV};
g.K.jh=function(){return this.gm};
g.K.Vn=function(u){if(this.playback.getVideoData().KZ()&&(this.xI.j("html5_lifa_no_gab_on_predict_start")&&u.event==="predictStart"||u.event==="continue"||u.event==="stop"))return this.RP({cuepoint_skipped:u.event}),!1;var h=dI(this.api.uP());if(h=h?h.Vn(u):!1)this.S={Ix:u.identifier,Lf:u.startSecs};else if(this.S&&this.S.Ix===u.identifier&&u.startSecs>this.S.Lf+1){this.RP({cueStChg:u.identifier,oldSt:this.S.Lf.toFixed(3),newSt:u.startSecs.toFixed(3),abid:this.S.sV});if(this.S.sV){var L=u.startSecs-
this.S.Lf,Z=this.AB.get(this.S.sV);if(Z){Z=g.C(Z);for(var y=Z.next();!y.done;y=Z.next())y=y.value,y.VZ>=0&&(y.VZ+=L*1E3,this.xI.j("html5_ssdai_update_timeline_on_start_time_change")&&(y.nW+=L*1E3),this.RP({newApEt:y.VZ,newApPrt:y.nW,acpn:y.cpn}))}}this.S.Lf=u.startSecs}return h};
g.K.O5=function(u){return this.kD?!1:!!dCR(this,u)};
g.K.tO=function(u){var h=this;this.playback.pauseVideo();var L=this.playback.getCurrentTime(),Z=this.X.get(this.gm),y=this.N.get(this.gm);if(Z){this.B=this.gm;this.Y=!1;Z.dT=!0;var R=this.playback.getCurrentTime();this.G={lh:y,isAd:!0,pE:!1,hd:R,adCpn:this.gm,nw:Z,y1B:u};this.playback.getVideoData().KZ()&&this.playback.aZ(Z,this.X$(),R,this.playback.getCurrentTime(),!1,!0,u,(0,g.vC)());if(y==null?0:y.start)this.gw=R*1E3-y.start;this.V.clear();this.playback.uS();this.gm=this.X$().cpn;this.api.publish("serverstitchedvideochange");
this.playback.seekTo(L,{seekSource:89,Ek:"lifa_skip"});this.playback.playVideo();this.fI||(this.fI=this.events.W(this.api,"progresssync",function(){h.cT(Z)}));
return!0}this.RP({skipFail:L},!0);return!1};
g.K.RP=function(u,h){((h===void 0?0:h)||this.e7||this.playback.getVideoData().KZ())&&this.playback.IH("sdai",u)};
var NoR=0;g.P(WR1,g.bD);g.K=WR1.prototype;g.K.cT=function(u){var h=this.N.get(u.cpn);h&&this.playback.removeCueRange(h);this.N.delete(u.cpn);this.X.delete(u.cpn);u=this.T.indexOf(u);u>=0&&this.T.splice(u,1)};
g.K.onCueRangeEnter=function(u){var h=u.getId();this.playback.IH("sdai",{oncueEnter:1,cpn:h,start:u.start,end:u.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.V$()||0).toFixed(3)});h=this.X.get(h);this.playback.IH("sdai",{enterAdCueRange:1});var L=this.gm||this.X$().cpn,Z;L=(Z=this.X.get(L))!=null?Z:this.X$();h&&(u={lh:u,O1:L,zX:h,By:this.playback.getCurrentTime()},this.Mq(u))};
g.K.onCueRangeExit=function(u){for(var h=this.playback.getCurrentTime()*1E3,L=u.getId(),Z=g.C(this.N.values()),y=Z.next();!y.done;y=Z.next())if(y=y.value,y.getId()!==L&&h>=y.start&&h<=y.end)return;if(h=this.X.get(L))u={lh:u,O1:h,zX:this.X$(),By:this.playback.getCurrentTime()},this.Mq(u)};
g.K.Mq=function(u){this.B||this.Y||this.u$(this.gm);var h=u.O1,L=u.zX;if(L.cpn===this.gm)this.playback.IH("sdai",{igtranssame:1,enter:L.cpn,exit:h.cpn});else{var Z=this.Y,y=!!this.B;this.B="";u=u.By;var R=h.playerType===2?h.VZ/1E3+h.videoData.VA:this.X$().videoData.VA;if(h.playerType===2&&L.playerType===2)y?this.playback.IH("sdai",{igtransskip:1,enter:L.cpn,exit:h.cpn,seek:Z,skip:this.B}):jd(this,h,L,R,u,Z,y);else{this.gm=L.cpn;if(h.playerType===1&&L.playerType===2){this.gw=0;uY(this,L);var p=gR(this,
"c2a",L);this.playback.IH("sdai",p);this.pV++}else if(h.playerType===2&&L.playerType===1){p=h.videoData.VA;this.api.publish("serverstitchedvideochange");var J=gR(this,"a2c");this.playback.IH("sdai",J);this.pV=0;this.gw=p}this.playback.aZ(h,L,R,u,Z,y)}this.B="";this.Y=!1}};
g.K.seekTo=function(u,h,L,Z){u=u===void 0?0:u;h=h===void 0?{}:h;L=L===void 0?!1:L;Z=Z===void 0?null:Z;this.u$(this.gm);g.bD.prototype.seekTo.call(this,u,h,L,Z)};
g.K.Iu=function(u,h,L){L=L===void 0?!1:L;var Z=y7(this,u,h);if(Z){var y=void 0,R=Z.rN;if(R){this.playback.IH("sdai",{skipadonsq:h,sts:L,abid:R,acpn:Z.cpn,avid:Z.videoData.videoId});L=this.AB.get(R);if(!L)return;L=g.C(L);for(R=L.next();!R.done;R=L.next())R=R.value,R.M9=h,R.bU=u,R.VZ>Z.VZ&&(y=R)}this.u$(this.gm);this.B=Z.cpn;nCj(this);u=this.playback.getCurrentTime();jd(this,Z,y,u,u,!1,!0)}};
g.K.M6=function(u,h,L,Z,y,R,p,J,O){Z.length>0&&this.playback.IH("sdai",{onssinfo:1,sq:u,start:h.toFixed(3),cpns:Z.join(","),ds:y.join(","),isVideo:p?1:0});O&&this.T7.M6(u,p,J,O);L=EX(this.playback.getVideoData())&&this.xI.j("html5_process_all_cuepoints");if(p||L){if(Z.length&&y.length)for(this.B&&this.B===Z[0]&&this.playback.IH("sdai",{skipfail:1,sq:u,acpn:this.B}),u=h+this.VR(),p=0;p<Z.length;p++)if(J=Z[p],L=u,u=L+y[p],J=this.X.get(J))L-=R[p],J.v6=J.v6!=null?Math.min(J.v6,L):L;if(Z.length&&y.length)for(p=
(h+this.VR())*1E3,h=0;h<Z.length;h++)if(L=Z[h],J=y[h]*1E3,L!==this.playback.getVideoData().clientPlaybackNonce){this.Sd.has(L)||(this.playback.IH("sdai",{adCpnFromEmsg:1}),this.Sd.add(L));O=0;h<R.length&&(O=R[h]*1E3);if(u=this.N.get(L))u.start=p-O,u.end=p+J,this.playback.eB();else for(u=this.Sg(p-O,p+J,L),this.N.set(L,u),this.playback.IH("sdai",{newAdCR:1,cpn:L,startTime:u.start,endTime:u.end}),this.playback.addCueRange(u),p=this.playback.LA("serverstitchedcuerange",36E5),p=g.C(p),L=p.next();!L.done;L=
p.next())this.N.delete(L.value.getId());p=u.end}}};
g.K.u$=function(u){var h=u||this.gm,L=this.X.get(h);if(L){u=L.videoData;var Z,y;h=L.v6||((y=(Z=this.N.get(h))==null?void 0:Z.start)!=null?y:0)/1E3;Z=this.playback.getCurrentTime()-h;u.VA=Z>0?Z:0}else this.X$().videoData.VA=this.playback.getCurrentTime()};g.P(kvl,g.m);g.K=kvl.prototype;
g.K.uB=function(u,h){h=h===void 0?"":h;if(this.timeline.X===h)return!0;var L=this.timeline.G,Z=L==null?void 0:L.getVideoData();if(!L||!Z)return this.api.IH("ssap",{htsm:L?0:1}),!1;if(this.api.j("html5_ssap_clear_timeline_before_update")){var y=this.timeline,R;(R=y.G)==null||XRe(R);y.N.clear()}y=$s(L);var p=!1;R=[];var J=new Map;L=[];var O=[],f=0,D=0,c=0,I=[];u=g.C(u);for(var A=u.next();!A.done;A=u.next())a:{var x=void 0,Q=void 0,S=A.value,v=S.clipId;if(v){if(S.MI){c=S.MI.EN||0;A=S.MI.pQ||1;var T=
Number(((S.MI.dh||0)/(S.MI.uI||1)*1E3).toFixed(0));c=A=T+Number((c/A*1E3).toFixed(0))}else A=T=c,this.DJ.has(v)||this.JS.add(v);var U=(Q=J.get(v))!=null?Q:0,z=this.timeline.X;Q=!1;if(z&&this.api.j("html5_ssap_clear_timeline_before_update")){if(z=this.C7.get(v))z.start=T,z.end=A,Q=!0}else{if(z){var d=v;z=T;var W=A,t=U,yn=LT(this.timeline,d);if(yn!=null&&yn.length){t<yn.length&&(yn[t].VZ=z,yn[t].X=W);if(d=this.C7.get(d))d.start=z,d.end=W;z=!0}else z=!1}if(z){J.set(v,U+1);p=!0;break a}}I.push(v);!Q&&
S.MI&&(I=this.Sg(T,A,I.join(",")),this.C7.set(v,I),L.push(I),I=[]);if(((x=S.MI)==null?void 0:x.Vi)===Z.videoId){Q=x=void 0;S=v;v=Z;S!==v.clientPlaybackNonce&&this.api.IH("ssap",{cnm:1,cid:S,cpn:v.clientPlaybackNonce});if(this.api.j("html5_ssap_clear_timeline_before_update"))v.Uo=T,S=WH(this.timeline,1,T,A-T,v),R.push(S),T=tx(this.timeline,T,A,[S]),p=p||T;else if(z=[],v&&(v.Uo=T,z=(Q=LT(this.timeline,S))!=null?Q:[]),!this.timeline.X&&z.length&&U===0){p=z[0];p.VZ=T;p.X=A;v=(x=this.timeline.G)==null?
void 0:x.G;if((x=v==null?void 0:v.get(0))&&v)for(Q=0;Q<x.length;Q++)if(z=x[Q],z.y$()!==z.W7()){z.VZ=T;z.B=A;x.splice(Q,1);v.has(T)?v.get(T).push(z):v.set(T,[z]);break}R.push(p);J.set(S,U+1);p=!0}else S=WH(this.timeline,1,T,A-T,v),R.push(S),T=tx(this.timeline,T,A,[S]),p=p||T;O.length&&(O=gCs(this,f||0,D,O),p=p||O);D=f=A;O=[]}else U=void 0,x=this.P6.get(v),Q=x!=null?x:new g.rC(this.api.L(),{cpn:v}),Q.nf=!0,this.JS.has(v)&&this.P6.set(v,Q),f=Math.min(T,f),D=Math.max(A,D),this.api.IH("ssap",{e:T,d:A-
T,c:v,p:x?1:0}),Q.Uo=T,A=WH(this.timeline,2,T,A-T,Q,(U=S.QP)==null?void 0:U.Ku),O.push(A)}else this.api.IH("ssap",{cm:1})}O.length&&(Z=gCs(this,f||0,D,O),p=p||Z);y&&R.length&&(luw(this.timeline,y,R),this.api.j("html5_ssap_clear_timeline_before_update")&&(Z=R[R.length-1].W7(),(y=this.timeline.G)!=null&&(y.X=Z)));L.length&&this.playback.Tp(L);if(p){this.timeline.X=h;Z=this.playback.Ue();h=[];Z=g.C(Z);for(L=Z.next();!L.done;L=Z.next()){L=L.value;if(L.X){if(this.api.j("html5_ssap_fix_ad_completion_cue_range")&&
L.start===0x7ffffffffffff)continue;y=X_(this,L.X);if(y===L.YV)continue;L.start=L.start-L.YV+y;L.end=L.end-L.YV+y;L.YV=y;h.push(L)}this.api.j("html5_ssap_fix_cue_range_updates")||this.playback.pu(h)}this.api.j("html5_ssap_fix_cue_range_updates")&&this.playback.pu(h);this.api.IH("ssap",{tu:xA(this)});h=dI(this.api.uP());this.api.IH("ssap",{am:h?1:0})}else this.api.IH("ssap",{tnu:1});return!0};
g.K.addPlayerResponseForAssociation=function(u){var h=new g.rC(this.api.L(),u.playerVars);h.playerResponseCpn?h.clientPlaybackNonce=h.playerResponseCpn:this.api.IH("ssap",{eim:this.playback.getVideoData().clientPlaybackNonce});h.nf=!0;if(u=u.TC)h.TC=u,h.clientPlaybackNonce=u.cpn;u=h.clientPlaybackNonce;this.api.IH("ssap",{aprfa:u+"_"+h.videoId});if(u){this.P6.set(u,h);var L=LT(this.timeline,u),Z=!1;if(L==null?0:L.length){L=g.C(L);for(var y=L.next();!y.done;y=L.next())y=y.value,h.Uo=y.y$(),y.O0(h),
y.N&&(Z=!0)}else Z=!h.videoId;if(!Z){if(!gAL(this.playback.G7.WJ(h.videoId))){var R;this.api.IH("ssap",{nlc:u,nlcc:(R=this.timeline.G)==null?void 0:$s(R)})}this.playback.G7.aI().Cp(u,h,2)}}};
g.K.Y$=function(){this.zS=!0;this.api.j("html5_ssap_timeline_handle_error_and_abandon")&&this.finishSegmentByCpn(this.gm,YU(this),5)};
g.K.TN=function(u){if(g.DK(u,128)){var h;u=(h=u.state.Ad)==null?void 0:h.errorCode;this.finishSegmentByCpn(this.gm,YU(this),7,u)}};
g.K.finishSegmentByCpn=function(u,h,L,Z){if(this.gm===h)return[];this.zS&&(L=5,this.zS=!1);this.api.IH("ssap",{fsbc:u+";"+h,fsbcr:L,fsbct:this.api.getCurrentTime().toFixed(),fsbce:Z!=null?Z:""});if(this.api.j("html5_ssap_timeline_handle_error_and_abandon")&&(L===5||L===7))return Zjf(this,u,h,L),[];this.Qy=h;var y=!1;if(this.JS.has(u)&&(y=FRL(this,L),!y))return[u];var R=LT(this.timeline,h);if(R){R.sort(function(O,f){return O.y$()-f.y$()});
var p=g.C(R);for(R=p.next();!R.done;R=p.next()){R=R.value;var J=this.playback.getCurrentTime()*1E3;if(R.y$()>=J){this.il.set(u,L);hwj(this,u,h);this.s0.set(u,(0,g.vC)());if(L=this.C7.get(h))for(L=L.getId().split(","),L=g.C(L),p=L.next();!p.done;p=L.next())p=p.value,p!==h&&this.JS.has(p)&&(this.JS.delete(p),this.DJ.add(p));this.u$();h=R.y$()/1E3;R=void 0;L=(R=g.Jl(this.api.L().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?R:0;this.api.j("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(h+
L/1E3,{gC:!0}):this.playback.seekTo(h+L/1E3);this.bl?(this.api.IH("ssap",{gpfreload:this.gm}),EC1(this)||(this.bl=!1),this.playback.uS(!1,!1,this.api.j("html5_ssap_keep_media_on_finish_segment"))):Z&&this.playback.uS(!1,!1,this.api.j("html5_ssap_keep_media_on_finish_segment"));y&&this.api.playVideo(1,this.api.j("html5_ssap_keep_media_on_finish_segment"));return[u]}}}return[]};
g.K.uq=function(){var u=this.timeline.G;if(!u)return 0;var h=u.W7();u=g.C(u.G.values());for(var L=u.next();!L.done;L=u.next()){L=g.C(L.value);for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.W7()>h&&(h=Z.W7())}return h/1E3};
g.K.yF=function(){var u=this.playback.getCurrentTime()*1E3;var h=RwL(this,u);if(!h){var L=LT(this.timeline,this.gm);if(L){L=g.C(L);for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.y$()>u&&(h=Z)}}return h&&h.getType()===1?h.y$()/1E3:0};
g.K.getVideoData=function(u){if(u===2&&!this.UA()){if(this.Au&&this.P6.has(this.Au))return this.P6.get(this.Au);this.api.IH("ssap",{lpanf:""+YU(this)});return null}return Jtn(this)};
g.K.UA=function(){var u=LT(this.timeline,this.gm);return(u==null?0:u.length)?u[0].getType()===2:!1};
g.K.R_=function(){var u=LT(this.timeline,this.gm);return(u==null?0:u.length)?u[0].N:!1};
g.K.seekTo=function(u,h){h=h===void 0?{}:h;var L=pkf(this,this.playback.getCurrentTime());this.playback.seekTo(u+L/1E3,h)};
g.K.Sg=function(u,h,L){return new g.uW(u,h,{id:L,namespace:"ssap",priority:9})};
g.K.onCueRangeEnter=function(u){if(!this.EJ.has(u.getId())){this.api.IH("ssap",{oce:1,cpn:u.getId(),st:u.start,et:u.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.V$()||0).toFixed(3)});for(var h=u.getId().split(","),L=0;L<h.length&&this.Qy&&h[L]!==this.Qy;){var Z=h[L];this.JS.has(Z)&&(this.JS.delete(Z),this.DJ.add(Z));L++}if(h.length>L+1)for(Z=L+1;Z<h.length;Z++)this.lk.push(h[Z]);h=h[L];this.JS.has(h)&&Ojs(this,h);this.DJ.has(h)||L8b(this,h);h=g.C(this.C7.values());for(L=
h.next();!L.done;L=h.next())L=L.value,L.start<=u.start&&!this.EJ.has(u.getId())&&this.EJ.add(L.getId())}};
g.K.YA=function(){return this.pV};
g.K.jh=function(){return this.gm};
g.K.handleError=function(u,h){h=h===void 0?0:h;if(u!=="fmt.decode"&&u!=="fmt.unplayable"||!this.UA()||this.zT===this.gm)return!1;this.zT=this.gm;if(this.api.j("html5_enable_ssap_gapful_switch"))this.bl=!0,this.api.IH("ssap",{gpfonerr:u}),this.playback.uS();else{this.playback.IH("ssap",{skiperr:u,acpn:this.gm});var L=this.playback.getVideoData().clientPlaybackNonce;this.finishSegmentByCpn(this.gm,L,h===1||h===2?7:6,u)}return!0};
g.K.u$=function(u){var h=u||this.gm;if(u=this.P6.get(h)||this.playback.getVideoData())h=this.playback.getCurrentTime()-X_(this,h)/1E3,u.VA=h>0?h:0};
g.K.zRI=function(u){var h=this.P6.get(this.gm);h&&this.playback.Ym(u-h.Uo/1E3,h.lengthSeconds,this.gm)};
g.K.Ni=function(){this.api.L().UU()&&this.api.IH("ssap",{di:""+this.gm,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.P6.clear();this.JS.clear();this.EJ.clear();this.il.clear();this.s0.clear();this.DJ.clear();this.lk=[];bof(this);this.Qy="";g.Tj(this.events);g.m.prototype.Ni.call(this)};g.P(cti,g.m);g.K=cti.prototype;g.K.onCueRangeEnter=function(u){if(this.G===this.app.WX()){var h=this.T.get(u);h?Mji(this,h.target,h.dN,u):this.Hj("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:u.toString()})}else if(h=this.N.find(function(y){return y.sT.lh===u})){var L=h.sT,Z=L.target;
L=L.dN;Z?Mji(this,Z,L,u):CFi(this,h.nW,L,u)}};
g.K.onQueuedVideoLoaded=function(){var u=this.V;f1(this);if(u){if(!OQ(this,u)){var h=this.app.WX();this.Hj("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:h==null?void 0:h.getVideoData().clientPlaybackNonce,ccpn:""+u.playerVars.cpn})}this.app.WX().addCueRange(u.sT.lh)}};
g.K.seekTo=function(u,h,L,Z){u=u===void 0?0:u;h=h===void 0?{}:h;Z=Z===void 0?null:Z;if(L===void 0?0:L)DYn(this,u,h);else{L=this.app.WX()||null;var y=L===this.B?this.C:null;DT(this,!1);this.AB=u;this.Y=h;Z!=null&&this.S.start(Z);L&&(this.C=y||L.getPlayerState(),L.T0(),this.B=L)}};
g.K.TN=function(u){g.DK(u,128)&&XkY(this)};
g.K.isManifestless=function(){return L3(this.G.getVideoData())};
g.K.Ni=function(){DT(this,!1);qGa(this);g.m.prototype.Ni.call(this)};
g.K.Hj=function(u,h){this.G.Hj(new lZ(u,h))};
var IzY=0;var T_R="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.P(A9,g.m);g.K=A9.prototype;g.K.get=function(u){cJ(this);var h=this.data.find(function(L){return L.key===u});
return h?h.value:null};
g.K.set=function(u,h,L){this.remove(u,!0);cJ(this);u={key:u,value:h,expire:Infinity};L&&isFinite(L)&&(L*=1E3,u.expire=(0,g.vC)()+L);for(this.data.push(u);this.data.length>this.X;)(L=this.data.shift())&&xn(this,L,!0);I_(this)};
g.K.remove=function(u,h){h=h===void 0?!1:h;var L=this.data.find(function(Z){return Z.key===u});
L&&(xn(this,L,h),g.uV(this.data,function(Z){return Z.key===u}),I_(this))};
g.K.removeAll=function(u){if(u=u===void 0?!1:u)for(var h=g.C(this.data),L=h.next();!L.done;L=h.next())xn(this,L.value,u);this.data=[];I_(this)};
g.K.Ni=function(){var u=this;g.m.prototype.Ni.call(this);this.data.forEach(function(h){xn(u,h,!0)});
this.data=[]};g.P(PJ,g.m);PJ.prototype.G8=function(u){if(u)return this.N.get(u)};
PJ.prototype.Ni=function(){this.G.removeAll();this.N.removeAll();g.m.prototype.Ni.call(this)};g.L41=fv(function(){var u=window.AudioContext||window.webkitAudioContext;try{return new u}catch(h){return h.name}});g.P(Hjs,g.a);g.K=Hjs.prototype;g.K.wW=function(){g.RH(this.element,g.NL.apply(0,arguments))};
g.K.h3=function(){this.RV&&(this.RV.removeEventListener("focus",this.vg),g.Lx(this.RV),this.RV=null)};
g.K.Bu=function(){this.ww();var u=this.app.L();u.gN||this.wW("tag-pool-enabled");u.C&&this.wW(g.BK.HOUSE_BRAND);u.playerStyle==="gvn"&&(this.wW("ytp-gvn"),this.element.style.backgroundColor="transparent");u.nH&&(this.Yd=g.Lr("yt-dom-content-change",this.resize,this));this.W(window,"orientationchange",this.resize,this);this.W(window,"resize",this.resize,this)};
g.K.lU=function(u){g.Xp(this.app.L());this.UP=!u;C1(this)};
g.K.resize=function(){if(this.RV){var u=this.Oe();if(!u.isEmpty()){var h=!g.AN(u,this.nh.getSize()),L=dYl(this);h&&(this.nh.width=u.width,this.nh.height=u.height);u=this.app.L();(L||h||u.nH)&&this.app.pI.publish("resize",this.getPlayerSize())}}};
g.K.Lg=function(u,h){this.updateVideoData(h)};
g.K.updateVideoData=function(u){if(this.RV){var h=this.app.L();ai&&(this.RV.setAttribute("x-webkit-airplay","allow"),u.title?this.RV.setAttribute("title",u.title):this.RV.removeAttribute("title"));this.RV.setAttribute("controlslist","nodownload");h.aC&&u.videoId&&(this.RV.poster=u.Po("default.jpg"))}h=g.Ib(u,"yt:bgcolor");this.Nz.style.backgroundColor=h?h:"";this.iC=yl(g.Ib(u,"yt:stretch"));this.H$=yl(g.Ib(u,"yt:crop"),!0);g.JW(this.element,"ytp-dni",u.Rc);this.resize()};
g.K.setGlobalCrop=function(u){this.Pt=yl(u,!0);this.resize()};
g.K.setCenterCrop=function(u){this.Pw=u;this.resize()};
g.K.AC=function(){};
g.K.getPlayerSize=function(){var u=this.app.L(),h=this.app.pI.isFullscreen(),L=u.externalFullscreen&&g.MW(u);if(h&&sJ()&&!L)return new g.II(window.outerWidth,window.outerHeight);L=!isNaN(this.Dc.width)&&!isNaN(this.Dc.height);var Z=this.app.L().j("kevlar_player_enable_squeezeback_fullscreen_sizing");if(h&&!L&&Z)return new g.II(this.element.clientWidth,this.element.clientHeight);if(h||u.I8){if(window.matchMedia){u="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.oB&&this.oB.media===
u||(this.oB=window.matchMedia(u));var y=this.oB&&this.oB.matches}if(y)return new g.II(window.innerWidth,window.innerHeight)}else if(L)return this.Dc.clone();return new g.II(this.element.clientWidth,this.element.clientHeight)};
g.K.Oe=function(){var u=this.app.L().j("enable_desktop_player_underlay"),h=this.getPlayerSize(),L=g.Jl(this.app.L().experiments,"player_underlay_min_player_width");return u&&this.jz&&h.width>L?(u=g.Jl(this.app.L().experiments,"player_underlay_video_width_fraction"),new g.II(Math.min(h.height*this.getVideoAspectRatio(),h.width*u),Math.min(h.height,h.width*u/this.getVideoAspectRatio()))):h};
g.K.getVideoAspectRatio=function(){return isNaN(this.iC)?B_R(this):this.iC};
g.K.getVideoContentRect=function(u){var h=this.Oe();u=zwl(this,h,this.getVideoAspectRatio(),u);return new g.ZE((h.width-u.width)/2,(h.height-u.height)/2,u.width,u.height)};
g.K.d6=function(u){this.jz=u;this.resize()};
g.K.N0=function(){return this.jB};
g.K.onMutedAutoplayChange=function(){C1(this)};
g.K.setInternalSize=function(u){g.AN(this.Dc,u)||(this.Dc=u,this.resize())};
g.K.Ni=function(){this.Yd&&g.Z$(this.Yd);this.h3();g.a.prototype.Ni.call(this)};g.K=VjV.prototype;g.K.click=function(u,h){this.elements.has(u);this.G.has(u);var L=g.S9();L&&u.visualElement&&g.hm(L,u.visualElement,h)};
g.K.createClientVe=function(u,h,L,Z){var y=this;Z=Z===void 0?!1:Z;this.elements.has(u);this.elements.add(u);L=XDL(L);u.visualElement=L;var R=g.S9(),p=g.ls();R&&p&&(g.MI("combine_ve_grafts")?Mm(PK(),L,p):g.EC(g.aE)(void 0,R,p,L));h.addOnDisposeCallback(function(){y.elements.has(u)&&y.destroyVe(u)});
Z&&this.N.add(u)};
g.K.createServerVe=function(u,h,L){var Z=this;L=L===void 0?!1:L;this.elements.has(u);this.elements.add(u);h.addOnDisposeCallback(function(){Z.destroyVe(u)});
L&&this.N.add(u)};
g.K.destroyVe=function(u){this.elements.has(u);this.elements.delete(u);this.X.delete(u);this.G.delete(u);this.N.delete(u)};
g.K.Jw=function(u,h){this.clientPlaybackNonce!==h&&(this.clientPlaybackNonce=h,Cn(PK(),u),nFe(this))};
g.K.setTrackingParams=function(u,h){this.elements.has(u);h&&(u.visualElement=g.is(h))};
g.K.Ay=function(u,h,L){this.elements.has(u);h?this.G.add(u):this.G.delete(u);var Z=g.S9(),y=u.visualElement;this.N.has(u)?Z&&y&&(h?g.u2(Z,[y]):g.j0(Z,[y])):h&&!this.X.has(u)&&(Z&&y&&g.gD(Z,y,void 0,L),this.X.add(u))};
g.K.hasVe=function(u){return this.elements.has(u)};g.P(g.iY,g.m);g.iY.create=function(u,h,L,Z){try{var y=typeof u==="string"?u:"player"+g.b1(u),R=v0[y];if(R){try{R.dispose()}catch(J){g.UZ(J)}v0[y]=null}var p=new g.iY(u,h,L,Z);p.addOnDisposeCallback(function(){v0[y]=null;p.RY&&p.RY()});
return v0[y]=p}catch(J){throw g.UZ(J),(J&&J instanceof Error?J:Error(String(J))).stack;}};
g.K=g.iY.prototype;g.K.Ua=function(){return this.visibility};
g.K.gQ=function(u){var h=this.IP();if(u!==h){u.getVideoData().autonavState=h.getVideoData().autonavState;h.u6(this.ge,this);var L=h.getPlaybackRate();Fa(h);this.P_.gQ(u);u.setPlaybackRate(L);u.Cm(this.ge,this);W8n(this)}};
g.K.L0=function(){this.A$||(this.A$=g.hC(Yq(),OEn()));return this.A$};
g.K.h3=function(u){if(this.mediaElement){this.Q7&&(this.events.FJ(this.Q7),this.Q7=null);g.Tj(this.c8);var h=this.WX();h&&h.h3(!0,!1,u);this.template.h3();try{this.j("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.mY()}catch(L){g.G3(L)}this.mediaElement=null}};
g.K.xw=function(u,h){if(u!==this.WX()){this.logger.debug(function(){return"start set presenting player, type "+u.getPlayerType()+", vid "+u.getVideoData().videoId});
var L=null,Z=this.WX();Z&&(L=Z.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),mN(this.Eo,3),sQ(this,"cuerangesremoved",Z.Ue()),this.dZ&&!u.isGapless()&&Z.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),Z=u.IF()&&Z.IF(),this.T3.Xa("iv_s"),ZZn(this,Z));u.getPlayerType()===1&&this.gQ(u);Ld1(this,u);this.P_.xw(u);this.mediaElement&&u.setMediaElement(this.mediaElement);u.Cm(this.BT,this);u.XY()?GEb(this,"setPresenting",!1):(this.Lg("newdata",u,u.getVideoData()),
L&&!g.LJ(L,u.getPlayerState())&&this.Zs(new g.O_(u.getPlayerState(),L)),h=h&&this.j("html5_player_preload_ad_fix")&&u.getPlayerType()===1,u.fG()&&!h&&this.Lg("dataloaded",u,u.getVideoData()),(h=(h=u.getVideoData().N)&&h.video)&&this.pI.EX("onPlaybackQualityChange",h.quality),sQ(this,"cuerangesadded",u.Ue()),h=u.getPlayerState(),g.F(h,2)?hXj(this):g.F(h,8)?u.playVideo():u.wL()&&u.pauseVideo(),h=this.IP(),u.getPlayerType()===2&&(u.getVideoData().EZ=h.getVideoData().clientPlaybackNonce),u.getPlayerType()!==
2||this.Aa()||(L=u.getVideoData(),h.WF(L.clientPlaybackNonce,L.eq||"",L.breakType||0,L.fV,L.videoId||"")),this.logger.debug("finish set presenting player"))}};
g.K.PV=function(){if(this.IP()!==this.WX()){var u=this.WX();this.logger.debug(function(){return"release presenting player, type "+(u==null?void 0:u.getPlayerType())+", vid "+(u==null?void 0:u.getVideoData().videoId)});
this.xw(this.IP())}};
g.K.HJ=function(u){if(u)if(u===1)u=this.IP();else if(this.getVideoData().enableServerStitchedDai&&u===2)u=this.getVideoData().enablePreroll?this.P_.HJ(2)||this.WX():this.WX();else if(g.dC(this.getVideoData())&&u===2){if(u=this.j("html5_ssap_return_content_player_during_preroll"))if(u=this.AM)u=this.AM,u=u.gm===""?!0:u.UA();u=u?this.WX():this.P_.HJ(2)||this.WX()}else u=this.P_.HJ(u)||null;else u=this.WX();return u};
g.K.IP=function(){return this.P_.IP()};
g.K.WX=function(){return this.P_.WX()};
g.K.qF=LV(44);g.K.qUa=function(){qd(this)||(this.logger.debug("application playback ready"),this.RC(5))};
g.K.QVB=function(u){if(!qd(this)){this.logger.debug("playback ready");Y9e(this);var h=u.getPlayerState();u.wL()?this.pauseVideo():h.isOrWillBePlaying()&&this.playVideo()}};
g.K.canPlayType=function(u){return qK(u)};
g.K.L=function(){return this.xI};
g.K.getVideoData=function(){return this.WX().getVideoData()};
g.K.f$=LV(18);g.K.iF=function(){return this.IP().getVideoData()};
g.K.getVideoLoadedFraction=function(u){u=this.HJ(u);return u?g.wm(u.getVideoData())?1:(u=u.yQ())?u.fq():0:0};
g.K.m_=function(){return this.template};
g.K.uP=function(){return this.Eo};
g.K.QO=function(){return this.T3};
g.K.Tq=function(u){var h=this.HJ(1);h&&h.Lx(u)};
g.K.Gt=function(){var u=this.Eo.Gt();this.pI.publish("videoStatsPingCreated",u);return u};
g.K.getVolume=function(){return Math.round(this.pI.getVolume())};
g.K.isMuted=function(){return this.pI.isMuted()};
g.K.OQ=function(){if(this.IP()===this.WX()&&this.FD)return this.FD.postId};
g.K.Qlg=function(){var u=this;this.j("use_rta_for_player")||(g.SM(this.xI)?g.Fp(this.xI,g.mn(this.getVideoData())).then(function(h){ov(Yq(),h);S7n(u.getVideoData(),u.xI,u.L0())}):S7n(this.getVideoData(),this.xI,this.L0()))};
g.K.ZA=function(u){this.pI.publish("poTokenVideoBindingChange",u)};
g.K.SF=function(u){this.pI.publish("d6de4videobindingchange",u)};
g.K.cR=function(){this.MX&&this.MX.cR()};
g.K.cz=function(u){this.MX=u};
g.K.yN=function(u){if(u===1){this.T3.tick("vr");var h=this.WX();h.NH();ens(this.T3,h.getVideoData(),TPa(this));NRw(this.Eo)}h=this.xI;($y(h)&&h.V||g.qW(h))&&(this.Aa()||this.pI.EX("onAdStateChange",u))};
g.K.setLoopVideo=function(u){var h=this.WX();h===this.IP()&&h.lm()!==u&&(h.setLoop(u),this.pI.hB("onLoopChange",u))};
g.K.getLoopVideo=function(){return this.WX().lm()};
g.K.setLoopRange=function(u){var h=!1;!!this.FD!==!!u?h=!0:this.FD&&u&&(h=this.FD.startTimeMs!==u.startTimeMs||this.FD.endTimeMs!==u.endTimeMs||this.FD.postId!==u.postId||this.FD.type!==u.type);if(h){(h=this.WX())&&Wu(h.getVideoData())&&h.IH("slr",{et:(u==null?void 0:u.endTimeMs)||-1});h=this.IP();h.qm("applooprange");if(u){var L=new g.uW(u.startTimeMs,u.endTimeMs,{id:"looprange",namespace:"applooprange"});h.addCueRange(L)}else{this.iF().clipConfig=void 0;var Z;((L=this.FD)==null?void 0:L.type)!==
"repeatChapter"||isNaN(Number((Z=this.FD)==null?void 0:Z.loopCount))||(L={loopCount:String(this.FD.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.pM("repeatChapterLoopEvent",L))}this.FD=u;this.pI.hB("onLoopRangeChange",u||void 0);this.IP()===this.WX()&&(this.Mw(),h.G7.o9())}};
g.K.getLoopRange=function(){return this.FD};
g.K.Mw=function(){var u="",h=this.IP();this.FD?h!==this.WX()?u="pnea":Dan(this,h.getCurrentTime())&&(this.FD.loopCount=0,u="ilr"):u="nlr";var L=this.WX();if(L&&Wu(L.getVideoData()))if(this.j("html5_gapless_log_loop_range_info")){var Z,y;L.IH("slrre",{rej:u,ct:h.getCurrentTime(),lst:(Z=this.FD)==null?void 0:Z.startTimeMs,let:(y=this.FD)==null?void 0:y.endTimeMs})}else L.IH("slrre",{});u||xas(this)};
g.K.setPlaybackRate=function(u,h){if(!isNaN(u)){u=k4b(this,u);var L=this.IP();L.getPlaybackRate()!==u&&(L.setPlaybackRate(u),h&&!this.xI.B&&g.UO("yt-player-playback-rate",u),this.pI.EX("onPlaybackRateChange",u))}};
g.K.getCurrentTime=function(u,h,L){h=h===void 0?!0:h;if(this.getPresentingPlayerType()===3)return MT(this.Eo).getCurrentTime();var Z=u===2&&this.getVideoData().enableServerStitchedDai,y=g.dC(this.getVideoData());u=Z||y?this.WX():this.HJ(u);if(!u)return 0;if(y&&this.AM)return h=this.AM,u=u.getCurrentTime(),L?L=p1(h,L):(L=pkf(h,u),L=u-L/1E3),L;if(h){if(Z&&this.Zv&&(L=this.Zv.gw/1E3,L!==0))return L;L=vJ(this,u);return r6(this,L.getCurrentTime(),L)}Z&&this.Zv?(L=this.Zv,u=u.getCurrentTime(),L=(L=Gva(L,
u*1E3))?u-L.start/1E3:u):L=u.getCurrentTime();return L};
g.K.t1=function(){var u=this.HJ();if(!u)return 0;u=vJ(this,u);return r6(this,u.t1(),u)};
g.K.getDuration=function(u,h){h=h===void 0?!0:h;var L=this.getVideoData(),Z=u===2&&L.enableServerStitchedDai,y=g.dC(L);var R=Z||y?this.WX():this.HJ(u);if(!R)return 0;if(L.hasProgressBarBoundaries()&&!Z&&!y){var p,J=Number((p=L.progressBarStartPosition)==null?void 0:p.utcTimeMillis),O;L=Number((O=L.progressBarEndPosition)==null?void 0:O.utcTimeMillis);if(!isNaN(J)&&!isNaN(L))return(L-J)/1E3}if(y&&this.AM)return h=K8j(this.AM,this.AM.jh()),u===1&&h===0?R.getDuration():h;if(h)return R=Xw(this,R),r6(this,
R.getDuration(),R);Z&&this.Zv?(u=this.Zv,R=R.getCurrentTime(),R=(R=Hoe(u,R*1E3))?R.durationMs/1E3:0):R=R.getDuration();return R};
g.K.Nr=function(u){var h=this.HJ(u);return h?this.Aa(h)?(h=Xw(this,h),h.Nr()-h.getCurrentTime()+this.getCurrentTime(u)):h.Nr():0};
g.K.lq=function(){return this.Qc};
g.K.addPlayerResponseForAssociation=function(u){this.AM&&this.AM.addPlayerResponseForAssociation(u)};
g.K.finishSegmentByCpn=function(u,h,L){return this.AM?this.AM.finishSegmentByCpn(u,h,L):[]};
g.K.Bu=function(){this.template.Bu();var u=this.pI;u.state.element=this.template.element;var h=u.state.element,L;for(L in u.state.G)u.state.G.hasOwnProperty(L)&&(h[L]=u.state.G[L]);(u=nKL(this.template.element))&&this.events.W(this.template,u,this.onFullscreenChange);this.events.W(window,"resize",this.ChI)};
g.K.getDebugText=function(u){var h=this.IP().IV(u),L=this.WX(),Z=this.IP();if(L&&L!==Z){L=L.IV(u);Z=g.C(Object.keys(L));for(var y=Z.next();!y.done;y=Z.next())y=y.value,h["ad"+y]=L[y];if(u){L=h;Z={};if(y=V2(document,"movie_player"))Z.bounds=y.getBoundingClientRect(),Z["class"]=y.className;y={};var R=g.eT("video-ads");R?(BPe(R,y),y.html=R.outerHTML):y.missing=1;R={};var p=g.eT("videoAdUiSkipContainer"),J=g.eT("ytp-ad-skip-button-container"),O=g.eT("ytp-skip-ad-button"),f=p||J||O;f?(BPe(f,R),R.ima=p?
1:0,R.bulleit=J?1:0,R.component=O?1:0):R.missing=1;Z=JSON.stringify({player:Z,videoAds:y,skipButton:R});L.ad_skipBtnDbgInfo=Z}}u&&this.mediaElement&&(h["0sz"]=""+(+xJ(this.mediaElement.getSize())===0),h.op=this.mediaElement.tL("opacity"),L=this.mediaElement.mu().y+this.mediaElement.getSize().height,h.yof=""+(+L<=0),h.dis=this.mediaElement.tL("display"));u&&((u=(0,g.GV)())&&(h.gpu=u),(u=this.xI.playerStyle)&&(h.ps=u),this.xI.jd&&(h.webview=1));h.debug_playbackQuality=this.pI.getPlaybackQuality(1);
h.debug_date=(new Date).toString();h.origin=window.origin;h.timestamp=Date.now();delete h.uga;delete h.q;return JSON.stringify(h,null,2)};
g.K.getFeedbackProductData=function(){var u={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.L().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20250212_01_RC00"},h=this.getPlayerStateObject().Ad;h&&(u.player_error_code=h.errorCode,u.player_error_details=JSON.stringify(h.errorDetail));return u};
g.K.getPresentingPlayerType=function(u){if(this.appState===1)return 1;if(qd(this))return 3;var h;if(u&&((h=this.Zv)==null?0:h.UA(this.getCurrentTime())))return 2;var L;return g.dC(this.getVideoData())&&((L=this.AM)==null?0:L.UA())?2:this.WX().getPlayerType()};
g.K.R_=function(){return g.dC(this.getVideoData())&&this.AM?this.AM.R_():!1};
g.K.getPlayerStateObject=function(u){return this.getPresentingPlayerType()===3?MT(this.Eo).ex:this.HJ(u).getPlayerState()};
g.K.getAppState=function(){return this.appState};
g.K.lf=function(u){switch(u.type){case "loadedmetadata":this.nS.start();u=g.C(this.Kh);for(var h=u.next();!h.done;h=u.next())h=h.value,vIY(this,h.id,h.Q7I,h.Ypg,void 0,!1);this.Kh=[];break;case "loadstart":this.T3.Xa("gv");break;case "progress":case "timeupdate":ys(u.target.R7())>=2&&this.T3.Xa("l2s");break;case "playing":g.eJ&&this.nS.start();if(g.SM(this.xI))u=!1;else{var L=this.WX();h=g.lM(this.uP());u=this.mediaElement.tL("display")==="none"||xJ(this.mediaElement.getSize())===0;var Z=Md(this.template),
y=L.getVideoData();L=g.rp(this.xI);y=Fu(y);h=!Z||h||L||y||this.xI.e7;u=u&&!h}u&&(u=this.WX(),u.oL(),this.getVideoData().nH||(this.getVideoData().nH=1,this.Ti(),u.playVideo()))}};
g.K.onLoadProgress=function(u,h){this.pI.fH("onLoadProgress",h)};
g.K.YoH=function(){this.pI.publish("playbackstalledatstart")};
g.K.Lz=function(u,h){this.pI.publish("sabrCaptionsDataLoaded",u,h)};
g.K.oSB=function(u){var h;(h=this.WX())==null||h.M5(u)};
g.K.phI=function(u){var h;(h=this.WX())==null||h.uZ(u)};
g.K.onVideoProgress=function(u,h){u=vJ(this,u.AG);h=r6(this,u.getCurrentTime(),u);this.pI.EX("onVideoProgress",h)};
g.K.onAutoplayBlocked=function(){this.pI.EX("onAutoplayBlocked");var u,h=(u=this.WX())==null?void 0:u.getVideoData();h&&(h.Lu=!0);this.j("embeds_enable_autoplay_and_visibility_signals")&&g.MW(this.xI)&&(u={autoplayBrowserPolicy:zd(),autoplayIntended:ml(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.pM("embedsAutoplayStatusChanged",u))};
g.K.dmB=function(){this.pI.publish("progresssync")};
g.K.Yky=function(){this.pI.fH("onPlaybackPauseAtStart")};
g.K.JMI=function(u){if(this.getPresentingPlayerType()===1){g.DK(u,1)&&!g.F(u.state,64)&&this.iF().isLivePlayback&&this.IP().isAtLiveHead()&&this.pI.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.DK(u,2)){if(this.FD&&this.FD.endTimeMs>=(this.getDuration()-1)*1E3){xas(this);return}hXj(this)}if(g.F(u.state,128)){var h=u.state;this.cancelPlayback(5);h=h.Ad;JSON.stringify({errorData:h,debugInfo:this.getDebugText(!0)});this.pI.EX("onError",B4a(h.errorCode));this.pI.fH("onDetailedError",{errorCode:h.errorCode,
errorDetail:h.errorDetail,message:h.errorMessage,messageKey:h.yU,cpn:h.cpn});(0,g.vC)()-this.xI.Zg>6048E5&&this.pI.fH("onReloadRequired")}h={};if(u.state.isPlaying()&&!u.state.isBuffering()&&!V4("pbresume","ad_to_video")&&V4("_start","ad_to_video")){var L=this.getVideoData();h.clientPlaybackNonce=L.clientPlaybackNonce;L.videoId&&(h.videoId=L.videoId);g.m1(h,"ad_to_video");zQ("pbresume",void 0,"ad_to_video");NRw(this.Eo)}this.pI.publish("applicationplayerstatechange",u)}};
g.K.Zs=function(u){this.getPresentingPlayerType()!==3&&this.pI.publish("presentingplayerstatechange",u)};
g.K.TN=function(u){Sd(this,yj(u.state));g.F(u.state,1024)&&this.pI.isMutedByMutedAutoplay()&&(Gp(this,{muted:!1,volume:this.YW.volume},!1),HJ(this,!1))};
g.K.NL=function(u,h,L){u==="newdata"&&W8n(this);this.pI.publish("applicationvideodatachange",u,L)};
g.K.UD=function(u,h){this.pI.fH("onPlaybackAudioChange",this.pI.getAudioTrack().tM.name);this.pI.publish("internalaudioformatchange",this.pI.getAudioTrack().tM.id,h)};
g.K.Z6=function(u){var h=this.WX().getVideoData();u===h&&this.pI.EX("onPlaybackQualityChange",u.N.video.quality)};
g.K.Y9=function(){var u=this.P_.HJ(2);if(u){var h=u.getVideoData();u=u.SM();var L;(L=this.WX())==null||L.IH("ssdai",{cleanaply:1,acpn:h==null?void 0:h.clientPlaybackNonce,avid:h.videoId,ccpn:u,sccpn:this.iF().clientPlaybackNonce===u?1:0,isDai:this.iF().enableServerStitchedDai?1:0});delete this.P_.N[2]}};
g.K.onVideoDataChange=function(u,h,L){this.Lg(u,h.AG,L)};
g.K.Lg=function(u,h,L){this.logger.debug(function(){return"on video data change "+u+", player type "+h.getPlayerType()+", vid "+L.videoId});
this.xI.UU()&&h.IH("vdc",{type:u,vid:L.videoId||"",cpn:L.clientPlaybackNonce||""});h===this.IP()&&(this.xI.iX=L.oauthToken);if(h===this.IP()){this.getVideoData().enableServerStitchedDai&&!this.Zv?(this.j("html5_check_decorator_on_cuepoint")&&this.IP().IH("sdai",{initSstm:1}),this.Zv=this.j("html5_enable_ssdai_transition_with_only_enter_cuerange")?new WR1(this.pI,this.xI,this.IP(),this):new g.bD(this.pI,this.xI,this.IP(),this)):!this.getVideoData().enableServerStitchedDai&&this.Zv&&(this.Zv.dispose(),
this.Zv=null);var Z,y;!g.dC(this.getVideoData())||u!=="newdata"&&u!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((Z=this.Qc.G)==null?void 0:(y=Z.getVideoData())==null?void 0:y.clientPlaybackNonce)?!g.dC(this.getVideoData())&&this.AM&&(this.AM.dispose(),this.AM=null):(Qol(this.Qc),this.j("html5_ssap_cleanup_ad_player_on_new_data")&&this.Y9(),Z=WH(this.Qc,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.Qc.enqueue(Z,!0),tx(this.Qc,0,this.getDuration(1)*1E3,[Z]),luw(this.Qc,this.getVideoData().clientPlaybackNonce,
[Z]),this.AM&&(this.AM.dispose(),this.AM=null),this.AM=new kvl(this.pI,this.Qc,this.IP()),this.P_.IP().q6(this.AM))}if(u==="newdata")this.logger.debug("new video data, destroy modules"),mN(this.Eo,2),this.pI.publish("videoplayerreset",h);else{if(!this.mediaElement)return;u==="dataloaded"&&(this.IP()===this.WX()?(Ub(L.z7,L.sy),Kdb(this)):RXn(this));h.getPlayerType()===1&&(this.xI.aH&&rri(this),this.getVideoData().isLivePlayback&&!this.xI.Cv&&this.Kr("html5.unsupportedlive",2,"DEVICE_FALLBACK"),L.isLoaded()&&
(($Ul(L)||this.getVideoData().Zi)&&this.pI.publish("legacyadtrackingpingchange",this.getVideoData()),L.hasProgressBarBoundaries()&&CJs(this)));this.pI.publish("videodatachange",u,L,h.getPlayerType())}this.pI.EX("onVideoDataChange",{type:u,playertype:h.getPlayerType()});this.Mw();(Z=L.tH)?this.dC.Jw(Z,L.clientPlaybackNonce):nFe(this.dC)};
g.K.iB=function(){Yn(this,null);this.pI.fH("onPlaylistUpdate")};
g.K.Ndy=function(u){delete this.L_[u.getId()];this.IP().removeCueRange(u);a:{u=this.getVideoData();var h,L,Z,y,R,p,J,O,f,D,c=((h=u.aH)==null?void 0:(L=h.contents)==null?void 0:(Z=L.singleColumnWatchNextResults)==null?void 0:(y=Z.autoplay)==null?void 0:(R=y.autoplay)==null?void 0:R.sets)||((p=u.aH)==null?void 0:(J=p.contents)==null?void 0:(O=J.twoColumnWatchNextResults)==null?void 0:(f=O.autoplay)==null?void 0:(D=f.autoplay)==null?void 0:D.sets);if(c)for(h=g.C(c),L=h.next();!L.done;L=h.next())if(L=
L.value,y=Z=void 0,L=L.autoplayVideo||((Z=L.autoplayVideoRenderer)==null?void 0:(y=Z.autoplayEndpointRenderer)==null?void 0:y.endpoint),Z=g.n(L,g.wC),R=y=void 0,L!=null&&((y=Z)==null?void 0:y.videoId)===u.videoId&&((R=Z)==null?0:R.continuePlayback)){u=L;break a}u=null}(h=g.n(u,g.wC))&&this.pI.hB("onPlayVideo",{sessionData:{autonav:"1",itct:u==null?void 0:u.clickTrackingParams},videoId:h.videoId,watchEndpoint:h})};
g.K.RC=function(u){var h=this;u!==this.appState&&(this.logger.debug(function(){return"app state change "+h.appState+" -> "+u}),u===2&&this.getPresentingPlayerType()===1&&(Sd(this,-1),Sd(this,5)),this.appState=u,this.pI.publish("appstatechange",u))};
g.K.Kr=function(u,h,L,Z,y){this.IP().LZ(u,h,L,Z,y)};
g.K.mJ=function(u,h){this.IP().handleError(new lZ(u,h))};
g.K.isAtLiveHead=function(u,h){h=h===void 0?!1:h;var L=this.HJ(u);if(!L)return!1;u=Xw(this,L);L=vJ(this,L);return u!==L?u.isAtLiveHead(r6(this,L.getCurrentTime(),L),!0):u.isAtLiveHead(void 0,h)};
g.K.Ze=function(){var u=this.HJ();return u?Xw(this,u).Ze():0};
g.K.seekTo=function(u,h,L,Z,y){h=h!==!1;if(Z=this.HJ(Z))this.appState===2&&Nd(this),this.Aa(Z)?BJ(this)?this.Zv.seekTo(u,{seekSource:y},h,L):this.oV.seekTo(u,{seekSource:y},h,L):g.dC(this.getVideoData())&&this.AM?this.AM.seekTo(u,{HI:!h,rF:L,Ek:"application",seekSource:y}):Z.seekTo(u,{HI:!h,rF:L,Ek:"application",seekSource:y})};
g.K.seekBy=function(u,h,L,Z){this.seekTo(this.getCurrentTime()+u,h,L,Z)};
g.K.S8=function(){this.pI.EX("SEEK_COMPLETE")};
g.K.In=function(){this.pI.hB("onAbnormalityDetected")};
g.K.onSnackbarMessage=function(u){this.pI.hB("onSnackbarMessage",u)};
g.K.Wvw=function(u,h){u=u.AG;var L=u.getVideoData();if(this.appState===1||this.appState===2)L.startSeconds=h;this.appState===2?g.F(u.getPlayerState(),512)||Nd(this):this.pI.EX("SEEK_TO",h)};
g.K.onAirPlayActiveChange=function(){this.pI.publish("airplayactivechange");this.xI.j("html5_external_airplay_events")&&this.pI.fH("onAirPlayActiveChange",this.pI.kJ())};
g.K.onAirPlayAvailabilityChange=function(){this.pI.publish("airplayavailabilitychange");this.xI.j("html5_external_airplay_events")&&this.pI.fH("onAirPlayAvailabilityChange",this.pI.uH())};
g.K.showAirplayPicker=function(){var u;(u=this.WX())==null||u.ue()};
g.K.uy=function(){this.pI.publish("beginseeking")};
g.K.ly=function(){this.pI.publish("endseeking")};
g.K.getStoryboardFormat=function(u){return(u=this.HJ(u))?Xw(this,u).getVideoData().getStoryboardFormat():null};
g.K.p7=function(u){return(u=this.HJ(u))?Xw(this,u).getVideoData().p7():null};
g.K.Aa=function(u){u=u||this.WX();var h=!1;if(u){u=u.getVideoData();if(BJ(this))u=u===this.Zv.playback.getVideoData();else a:if(h=this.oV,u===h.G.getVideoData()&&h.N.length)u=!0;else{h=g.C(h.N);for(var L=h.next();!L.done;L=h.next())if(u.YF===L.value.YF){u=!0;break a}u=!1}h=u}return h};
g.K.vD=function(u,h,L,Z,y,R,p){this.logger.debug(function(){return"Adding video to timeline id="+u.video_id+"\n        lengthMs="+Z+" enterTimeMs="+y});
var J="",O=BJ(this),f;(f=this.WX())==null||f.IH("appattl",{sstm:this.Zv?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:O});J=O?UCV(this.Zv,u,h,L,Z,y,R,p):PFf(this.oV,u,L,Z,y,R);this.logger.debug(function(){return"Video added to timeline id="+u.video_id+" timelinePlaybackId="+J});
return J};
g.K.RB=function(u,h,L,Z,y,R,p){if(BJ(this)){var J=UCV(this.Zv,u,h,L,Z,y,R,p);this.logger.debug(function(){return"Remaining video added to timeline id="+u.video_id+" timelinePlaybackId="+J})}return""};
g.K.s4=function(u){var h;(h=this.Zv)==null||h.s4(u)};
g.K.Qz=function(u,h){u=u===void 0?-1:u;h=h===void 0?Infinity:h;BJ(this)||qGa(this.oV,u,h)};
g.K.q5=function(u,h,L){if(BJ(this)){var Z=this.Zv,y=Z.mz.get(u);y?(L===void 0&&(L=y.nW),y.durationMs=h,y.nW=L):Z.zz("Invalid_timelinePlaybackId_"+u+"_specified")}else{Z=this.oV;y=null;for(var R=g.C(Z.N),p=R.next();!p.done;p=R.next())if(p=p.value,p.YF===u){y=p;break}y?(L===void 0&&(L=y.nW),vFl(Z,y,h,L)):K1(Z,"InvalidTimelinePlaybackId timelinePlaybackId="+u)}};
g.K.enqueueVideoByPlayerVars=function(u,h,L,Z){L=L===void 0?Infinity:L;Z=Z===void 0?"":Z;this.Aa();u=new g.rC(this.xI,u);Z&&(u.YF=Z);MHi(this,u,h,L)};
g.K.queueNextVideo=function(u,h,L,Z,y){L=L===void 0?NaN:L;L=this.preloadVideoByPlayerVars(u,h===void 0?1:h,L,Z===void 0?"":Z,y===void 0?"":y);u=this.WX();L&&u&&(h=L.AG,this.j("html5_check_queue_on_data_loaded")?this.L().supportsGaplessShorts()&&u.getVideoData().S&&(L=this.eV,Z=this.dZ.V,L.B!==h&&(L.N=u,L.B=h,L.X=1,L.G=h.getVideoData(),L.T=Z,L.G.isLoaded()?L.C():L.G.subscribe("dataloaded",L.C,L))):(h=EOf(u,h,this.dZ.V),h!=null?(u.IH("sgap",h),u.getVideoData().S&&u.jG(!1)):(u=L.getVideoData(),h=this.eV,
h.G!==u&&(h.G=u,h.X=1,u.isLoaded()?h.V():h.G.subscribe("dataloaded",h.V,h)))))};
g.K.Lp=function(u,h,L,Z){var y=this;L=L===void 0?0:L;Z=Z===void 0?0:Z;var R=this.WX();R&&Xw(this,R).ws();Jpa(this.dZ,u,h,L,Z).then(function(){y.pI.fH("onQueuedVideoLoaded")},function(){})};
g.K.XS=function(){return this.dZ.XS()};
g.K.gg=function(u){return this.dZ.G===u.AG};
g.K.clearQueue=function(u,h){u=u===void 0?!1:u;h=h===void 0?!1:h;this.logger.debug("Clearing queue");this.dZ.clearQueue(u,h)};
g.K.loadVideoByPlayerVars=function(u,h,L,Z,y,R){h=h===void 0?1:h;var p=this.IP();if(h===2&&this.iF().enableServerStitchedDai&&p&&!p.e3())return p.IH("lvonss",{vid:(u==null?void 0:u.videoId)||"",ptype:h}),!1;var J=!1;p=new g.rC(this.xI,u);p.reloadPlaybackParams=R;g.wS(this.xI)&&!p.J3&&S_(this.T3);var O;R=this.T3;var f=(O=p.jd)!=null?O:"";R.timerName=f;this.T3.wO("pl_i");this.j("web_player_early_cpn")&&p.clientPlaybackNonce&&this.T3.infoGel({clientPlaybackNonce:p.clientPlaybackNonce});if(Mkl(p).supportsVp9Encoding===
!1){var D;(D=this.WX())==null||D.IH("noVp9",{})}if(this.L().supportsGaplessShorts()){O=fub(this.dZ,p,h);if(O==null){Sd(this,-1);u=this.dZ;u.app.L().j("html5_gapless_new_slr")?I6i(u.app,"gaplessshortslooprange"):u.app.setLoopRange(null);u.app.getVideoData().gb=!0;var c;(c=u.G)==null||c.AO();var I;(I=u.G)!=null&&aq(I.G7.WJ());L={Ek:"gapless_to_next_video",seekSource:60};var A;(A=u.app.WX())==null||A.seekTo(OoR(u),L);if(!u.app.getPlayerStateObject(h).isPlaying()){var x;(x=u.app.WX())==null||x.playVideo(!0)}u.C();
return!0}A=this.j("html5_shorts_gapless_preload_fallback");x=this.dZ.G;A&&x&&!x.G7.ww()&&(c=x.getVideoData(),c=this.xI.j("html5_autonav_autoplay_in_preload_key")?m9(this,h,c):d6(this,h,c.videoId,c.YF),this.P_.G.set(c,x,3600));this.dZ.clearQueue(A);var Q;(Q=this.WX())==null||Q.IH("sgap",{f:O})}if(y){for(;p.tC.length&&p.tC[0].isExpired();)p.tC.shift();J=p.tC.length-1;J=J>0&&y.N(p.tC[J])&&y.N(p.tC[J-1]);p.tC.push(y)}L||(u&&WDR(u)?(ms(this.xI)&&!this.kB&&(u.fetch=0),Yn(this,u)):this.playlist&&Yn(this,
null),u&&(this.kB=jt(!1,u.external_list)));this.pI.publish("loadvideo");h=this.wc(p,h,Z);J&&this.Kr("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+p.tC.join()).replace(/[;:,]/g,"_"));return h};
g.K.preloadVideoByPlayerVars=function(u,h,L,Z,y){h=h===void 0?1:h;L=L===void 0?NaN:L;Z=Z===void 0?"":Z;y=y===void 0?"":y;var R="";if(this.xI.j("html5_autonav_autoplay_in_preload_key"))R=QMa(this,h,u,y);else{var p=RO(u);R=d6(this,h,p,y)}if(this.P_.G.get(R))return this.logger.debug(function(){return"already preloaded "+R}),null;
u=new g.rC(this.xI,u);y&&(u.YF=y);return iZ1(this,u,h,L,Z)};
g.K.setMinimized=function(u){this.visibility.setMinimized(u);(u=HY1(this.Eo))&&(this.isMinimized()?u.load():u.unload());this.pI.publish("minimized")};
g.K.setInline=function(u){this.visibility.setInline(u)};
g.K.setInlinePreview=function(u){this.visibility.setInline(u)};
g.K.Q_=function(u){l6R(this,u)||this.visibility.Q_(u)};
g.K.setSqueezeback=function(u){this.visibility.setSqueezeback(u)};
g.K.wk=function(){var u,h=(u=this.mediaElement)==null?void 0:u.lP();h&&((this.j("html5_disable_pip_with_standard_api")||this.j("html5_pip_visibility_on_resize"))&&document.exitFullscreen().catch(function(){}),PD(h).catch(function(L){g.G3(L)}))};
g.K.jbI=function(){this.mediaElement.lP();this.mediaElement.lP().webkitPresentationMode==="picture-in-picture"?this.Q_(!0):this.Q_(!1)};
g.K.togglePictureInPicture=function(){var u=this.WX();u&&u.togglePictureInPicture()};
g.K.wc=function(u,h,L){h=h===void 0?1:h;this.logger.debug(function(){return"start load video, id "+u.videoId+", type "+h});
V4("_start",this.T3.timerName)||g.EC(oh)(void 0,this.T3.timerName);var Z=!1,y=f6f(this,h,u,!1);y?(Z=!0,u.dispose()):(y=yrf(this,h,u,L).AG,(this.j("html5_onesie")||this.j("html5_load_before_stop"))&&y.fl()&&y.Rg(),this.nS.stop(),h===1&&h!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,h),this.xw(y));y===this.IP()&&(this.xI.iX=u.oauthToken);if(!y.fl())return!1;if(y===this.IP())return this.RC(1),L=Nd(this),Z&&this.j("html5_player_preload_ad_fix")&&y.getPlayerType()===1&&
y.fG()&&this.Lg("dataloaded",y,y.getVideoData()),L;y.wx();return!0};
g.K.cueVideoByPlayerVars=function(u,h){var L=this;h=h===void 0?1:h;var Z=this.IP();if(this.iF().enableServerStitchedDai&&Z&&!Z.e3()&&u&&Object.keys(u).length>0)Z.IH("qvonss",{vid:(u==null?void 0:u.videoId)||"",ptype:h});else if(u&&WDR(u))if(this.Tl=!0,Yn(this,u),(u=g.XW(this.playlist))&&u.ih())n1(this,u,h);else this.playlist.onReady(function(){o_(L)});
else{h||(h=this.getPresentingPlayerType());h===1&&this.iB();Z=new g.rC(this.xI,u);var y=g.MW(this.xI)&&!this.xI.RH&&h===1&&!Z.isAd()&&!Z.eq;this.pI.publish("cuevideo");y?(this.WX().getVideoData().loading=!0,jyY(Z,u?u:{}).then(function(R){n1(L,R,h)}),Z.dispose()):n1(this,Z,h)}};
g.K.VX=function(u,h,L,Z,y,R,p){if(!u&&!L)throw Error("Playback source is invalid");if(Q6(this.xI)||g.Qr(this.xI))return h=h||{},h.lact=v5(),h.vis=this.pI.getVisibilityState(),this.pI.hB("onPlayVideo",{videoId:u,watchEndpoint:R,sessionData:h,listId:L}),!1;$SR(this.T3);this.T3.reset();u={video_id:u};Z&&(u.autoplay="1");Z&&(u.autonav="1");R&&(u.player_params=R.playerParams);p&&(u.oauth_token=p);L?(u.list=L,this.loadPlaylist(u)):this.loadVideoByPlayerVars(u,1);return!0};
g.K.cuePlaylist=function(u,h,L,Z){this.Tl=!0;S9Y(this,u,h,L,Z)};
g.K.loadPlaylist=function(u,h,L,Z){this.Tl=!1;S9Y(this,u,h,L,Z)};
g.K.TR=function(){return this.pI.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.i9())};
g.K.Z9=LV(13);
g.K.nextVideo=function(u,h){var L=g.eG(this.IP().getVideoData());g.vf(this.pI)&&L?this.VX(L.videoId,h?L.dI:L.sessionData,L.playlistId,h,void 0,L.z4||void 0):this.kB?this.pI.fH("onPlaylistNext"):this.getPresentingPlayerType()===3?MT(this.Eo).nextVideo():!this.playlist||ms(this.xI)&&!this.pI.isFullscreen()||(this.playlist.i9(u)&&EYw(this.playlist,FDY(this.playlist)),this.playlist.loaded?(u=h&&this.xI.j("html5_player_autonav_logging"),h&&this.pI.publish("playlistautonextvideo"),this.wc(g.XW(this.playlist,void 0,
h,u),1)):this.Tl=!1)};
g.K.previousVideo=function(u){this.kB?this.pI.fH("onPlaylistPrevious"):this.getPresentingPlayerType()===3?MT(this.Eo).UJ():!this.playlist||ms(this.xI)&&!this.pI.isFullscreen()||(this.playlist.vS(u)&&EYw(this.playlist,bsV(this.playlist)),this.playlist.loaded?this.wc(g.XW(this.playlist),1):this.Tl=!1)};
g.K.playVideoAt=function(u){this.kB?this.pI.fH("onPlaylistIndex",u):this.playlist&&(this.playlist.loaded?this.wc(g.XW(this.playlist,u),1):this.Tl=!1,EYw(this.playlist,u))};
g.K.getPlaylist=function(){return this.playlist};
g.K.L$=LV(23);g.K.iaw=function(u){this.pI.EX("onCueRangeEnter",u.getId())};
g.K.Haa=function(u){this.pI.EX("onCueRangeExit",u.getId())};
g.K.EM=function(){var u=g.By(this.uP());u&&u.EM()};
g.K.Tp=function(u,h,L){var Z=this.HJ(h);if(Z){var y=this.iF();if(g.dC(y)){if(this.AM)if(this.j("html5_ssap_enable_cpn_triggered_media_end")&&Z.getPlayerType()===2&&this.AM.UA()&&(Z=this.IP()),h===1)for(var R=X_(this.AM,y.clientPlaybackNonce),p=g.C(u),J=p.next();!J.done;J=p.next())J=J.value,J.start+=R,J.end+=R,J.YV=R,J.X=y.clientPlaybackNonce;else if(this.j("html5_ssap_enable_cpn_triggered_media_end")&&h===2)for(this.getPresentingPlayerType(),y=g.C(u),R=y.next();!R.done;R=y.next())R.value.X=this.AM.jh();
y=g.C(u);for(R=y.next();!R.done;R=y.next())p=void 0,R.value.playerType=(p=h)!=null?p:1}Z.Tp(u,L);h&&this.getPresentingPlayerType()!==h||sQ(this,"cuerangesadded",u)}};
g.K.oZ=function(u,h){var L=this.HJ(h);L&&(L.oZ(u),h&&this.getPresentingPlayerType()!==h||sQ(this,"cuerangesremoved",u))};
g.K.dW=function(u){var h=this.WX()||this.IP(),L=this.getPresentingPlayerType();return this.j("html5_ssap_enable_cpn_triggered_media_end")?h.dW(L,u):h.dW(L)};
g.K.Zaw=function(){function u(){var Z=h.screenLayer||(h.isMinimized()?3:0),y=g.S9(Z);if(y&&y!=="UNDEFINED_CSN"){var R=h.xI.j("web_player_attach_player_response_ve"),p=h.xI.j("web_playback_associated_ve");Z={cpn:h.getVideoData().clientPlaybackNonce,csn:y};h.getVideoData().DI&&(R||p)&&(R=g.is(h.getVideoData().DI),g.gD(y,R),p&&(Z.playbackVe=R.getAsJson()));h.getVideoData().queueInfo&&(Z.queueInfo=h.getVideoData().queueInfo);y={};h.j("web_playback_associated_log_ctt")&&h.getVideoData().C&&(y.cttAuthInfo=
{token:h.getVideoData().C,videoId:h.getVideoData().videoId});g.pM("playbackAssociated",Z,y)}else g.G3(new g.aO("CSN Missing or undefined during playback association"))}
var h=this,L=this.WX();this.getPresentingPlayerType();ens(this.T3,L.getVideoData(),TPa(this));Tp(this)&&this.xI.B&&UT(this.iF())==="embedded"&&this.kf&&Math.random()<.01&&g.pM("autoplayTriggered",{intentional:this.intentionalPlayback});this.kf=!1;NRw(this.Eo);this.j("web_player_defer_ad")&&pNV(this);this.pI.fH("onPlaybackStartExternal");(this.xI.j("mweb_client_log_screen_associated"),Gg(this.xI))||u();L={};this.getVideoData().C&&(L.cttAuthInfo={token:this.getVideoData().C,videoId:this.getVideoData().videoId});
L.sampleRate=20;dT("player_att",L);if(this.getVideoData().botguardData||this.j("fetch_att_independently"))g.nC(this.xI)||nS(this.xI)==="MWEB"?g.bw(g.k9(),function(){UQ(h)}):UQ(this);
this.Mw();ArY(this);this.j("embeds_enable_autoplay_and_visibility_signals")&&g.MW(this.xI)&&(L={autoplayBrowserPolicy:zd(),autoplayIntended:ml(this.getVideoData()),autoplayStatus:UZR(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.pM("embedsAutoplayStatusChanged",L))};
g.K.Y$=function(){this.pI.publish("internalAbandon");zp(this)};
g.K.onApiChange=function(){var u=this.WX();this.xI.V&&u?this.pI.EX("onApiChange",u.getPlayerType()):this.pI.EX("onApiChange")};
g.K.U1i=function(){var u=this.mediaElement;u={volume:g.pX(Math.floor(u.getVolume()*100),0,100),muted:u.dR()};u.muted||HJ(this,!1);this.YW=g.No(u);this.pI.EX("onVolumeChange",u)};
g.K.mutedAutoplay=function(u){var h=this.getVideoData().videoId;isNaN(this.Uj)&&(this.Uj=this.getVideoData().startSeconds);if(!this.j("embeds_enable_full_length_inline_muted_autoplay"))h&&(this.loadVideoByPlayerVars({video_id:h,playmuted:!0,start:this.Uj}),this.pI.fH("onMutedAutoplayStarts"));else if((u==null?0:u.videoId)||h)this.loadVideoByPlayerVars({video_id:(u==null?0:u.videoId)?u==null?void 0:u.videoId:h,playmuted:!0,start:this.Uj,muted_autoplay_duration_mode:u==null?void 0:u.durationMode}),
this.pI.fH("onMutedAutoplayStarts")};
g.K.onFullscreenChange=function(){var u=oI1(this);this.AC(u?1:0);Uaf(this,!!u)};
g.K.AC=function(u){var h=!!u,L=!!this.jt()!==h;this.visibility.AC(u);this.template.AC(h);this.j("html5_media_fullscreen")&&!h&&this.mediaElement&&oI1(this)===this.mediaElement.lP()&&this.mediaElement.Xl();this.template.resize();L&&this.T3.tick("fsc");L&&(this.pI.publish("fullscreentoggled",h),u=this.iF(),h={fullscreen:h,videoId:u.lc||u.videoId,time:this.getCurrentTime()},this.pI.getPlaylistId()&&(h.listId=this.pI.getPlaylistId()),this.pI.EX("onFullscreenChange",h))};
g.K.PS=function(){return this.visibility.PS()};
g.K.isFullscreen=function(){return this.visibility.isFullscreen()};
g.K.jt=function(){return this.visibility.jt()};
g.K.ChI=function(){if(this.WX()){var u=window.screen.width*window.screen.height,h=window.outerHeight*window.outerWidth;this.j("html5_disable_pip_with_standard_api")&&(this.kR=Math.max(this.kR,u,h));var L=this.jt();L!==0&&L!==1||this.AC(oI1(this)?1:0);if(this.j("html5_pip_visibility_on_resize"))u=L!==0&&h/this.kR<.33,this.visibility.Q_(u),l6R(this,u);else if(this.j("html5_disable_pip_with_standard_api"))this.Q_(h/u<.33);else{var Z;this.mediaElement&&((Z=this.getVideoData())==null||!Z.backgroundable)&&
this.xI.SY&&h/u<.33&&this.mediaElement.Xl()}}};
g.K.bHB=function(u){this.getPresentingPlayerType()!==3&&this.pI.publish("liveviewshift",u)};
g.K.playVideo=function(u,h){this.logger.debug(function(){return"play video, player type "+u});
var L=this.HJ(u);L&&(this.appState===2?(g.wS(this.xI)&&S_(this.T3),Nd(this)):g.F(L.getPlayerState(),2)?(h=36,this.getVideoData().LV()&&(h=37),this.seekTo(0,void 0,void 0,void 0,h)):L.playVideo(!1,h))};
g.K.pauseVideo=function(u,h){(u=this.HJ(u))&&u.pauseVideo(h)};
g.K.stopVideo=function(u){u=u===void 0?!1:u;this.logger.debug(function(){return"stop video"});
var h=this.IP().getVideoData(),L=new g.rC(this.xI,{video_id:h.lc||h.videoId,oauth_token:h.oauthToken});L.Y=g.No(h.Y);var Z;!u||(Z=this.webPlayerContextConfig)!=null&&Z.disableStaleness||(L.T8=!0);this.cancelPlayback(6);n1(this,L,1)};
g.K.cancelPlayback=function(u,h){var L=this;this.logger.debug(function(){return"start cancel playback, type "+h});
var Z=this.HJ(h);Z?h===2&&Z.getPlayerType()===1&&(Kab(this.iF())||g.dC(this.getVideoData()))?Z.IH("canclpb",{r:"no_adpb_ssdai"}):(this.xI.UU()&&Z.IH("canclpb",{r:u}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+L.appState}):(Z===this.WX()&&(this.logger.debug("cancel playback, destroy modules"),mN(this.Eo,u)),h===1&&(Z.stopVideo(),zp(this)),Z.IQ(void 0,u!==6),sQ(this,"cuerangesremoved",Z.Ue()),Z.G7.lW.reset(),this.dZ&&Z.isGapless()&&
(Z.h3(!0),Z.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")};
g.K.sendVideoStatsEngageEvent=function(u,h,L){(h=this.HJ(h))&&Zmf(this.xI,u)?h.sendVideoStatsEngageEvent(u,L):L&&L()};
g.K.mp=function(u){var h=this.HJ();return h&&Zmf(this.xI,u)?h.mp(u):null};
g.K.updatePlaylist=function(){!ms(this.xI)&&g.MW(this.xI)&&Jrj(this);this.pI.fH("onPlaylistUpdate")};
g.K.setSizeStyle=function(u,h){this.BA=u;this.j("web_log_theater_mode_visibility")?this.c5(h):this.rg=h;this.pI.publish("sizestylechange",u,h);this.template.resize()};
g.K.c5=function(u){this.visibility.c5(u)};
g.K.sA=function(){return this.j("web_log_theater_mode_visibility")?this.visibility.sA():this.rg};
g.K.isMinimized=function(){return this.visibility.isMinimized()};
g.K.isInline=function(){return this.visibility.isInline()};
g.K.Wx=function(){return this.visibility.Wx()};
g.K.I_=function(){return this.visibility.I_()};
g.K.M0=function(){return this.visibility.M0()};
g.K.K1=function(){return this.BA};
g.K.getAdState=function(){if(this.getPresentingPlayerType()===3)return MT(this.Eo).getAdState();if(!this.Aa()){var u=dI(this.uP());if(u)return u.getAdState()}return-1};
g.K.vSI=function(u){var h=this.template.getVideoContentRect();yz(this.ON,h)||(this.ON=h,(h=this.WX())&&h.u7(),(h=this.IP())&&h===this.WX()&&h.u7(),this.jt()===1&&this.zK&&Uaf(this,!0));this.c$&&g.AN(this.c$,u)||(this.pI.publish("appresize",u),this.c$=u)};
g.K.VO=function(){return this.pI.VO()};
g.K.ZWy=function(){this.getPresentingPlayerType()===2&&this.oV.isManifestless()?XkY(this.oV):(this.Zv&&(rpV(this.Zv),zp(this)),GEb(this,"signature"))};
g.K.DmH=function(u){u&&GEb(this,"reloadPlayerEvent",void 0,u)};
g.K.Ti=function(u){this.h3(u);lY(this)};
g.K.SkI=function(u){if(u.errorCode==="manifest.net.badstatus"){var h=this.xI.experiments.tB("html5_use_network_error_code_enums")?401:"401";u.details.rc===h&&this.pI.hB("onPlayerRequestAuthFailed")}};
g.K.hY=function(u){this.pI.publish("heartbeatparams",u)};
g.K.IX=function(u){this.pI.hB("onAutonavChangeRequest",u!==1)};
g.K.yQ=function(){return this.mediaElement};
g.K.setBlackout=function(u){if(this.xI.e7!==u){this.xI.e7=u;var h=this.WX();h&&(h.G7.o9(),this.xI.aH&&rri(this),h.Gg(u))}};
g.K.ZH7=function(){var u=this.WX();if(u){var h=!this.pI.zr();u.PR(h)}};
g.K.onLoadedMetadata=function(){this.pI.fH("onLoadedMetadata")};
g.K.onDrmOutputRestricted=function(){this.pI.fH("onDrmOutputRestricted")};
g.K.wT=function(){this.intentionalPlayback=!0};
g.K.Ni=function(){this.Eo.dispose();this.YK.dispose();this.oV.dispose();this.Zv&&this.Zv.dispose();this.Qc.removeAll();this.Qc.dispose();this.AM&&this.AM.dispose();Fa(this.IP());this.h3();this.P_.dispose();g.O8(this.playlist);g.m.prototype.Ni.call(this)};
g.K.j=function(u){return this.xI.j(u)};
g.K.setScreenLayer=function(u){this.screenLayer=u};
g.K.getInternalApi=function(){return this.pI.getInternalApi()};
g.K.createSubtitlesModuleIfNeeded=function(){return this.Eo.createSubtitlesModuleIfNeeded()};
g.K.isOrchestrationLeader=function(){var u=n8(this.Eo);return u?u.isOrchestrationLeader():!1};
g.K.getVideoUrl=function(u,h,L,Z,y){if(this.FD&&this.FD.postId)return u=this.xI.getVideoUrl(u),u=aT(u,"v"),u.replace("/watch","/clip/"+this.FD.postId);var R=this.pI.isEmbedsShortsMode()||this.xI.DI==="shortspage",p=g.Wz(this.getVideoData());return this.xI.getVideoUrl(u,h,L,Z,y,R,p)};
g.K.XL=function(){return this.dZ.XL()};
g.K.YX=function(u,h,L){this.pI.publish("spsumpreject",u,h,L)};
g.K.Qk=function(){try{for(var u=g.C(Object.values(this.P_.N)),h=u.next();!h.done;h=u.next()){var L=h.value;L.G7.ww()||L.Qk()}if(this.j("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var Z=g.C(oFi(this.P_.G)),y=Z.next();!y.done;y=Z.next()){var R=y.value;R.G7.ww()||R.Qk()}this.IP().Qk()}catch(p){g.G3(p)}};
g.K.tO=function(){if(this.Zv){var u=(0,g.vC)();return this.Zv.tO(u)}return!1};
g.K.fn=function(u){var h=this.IP();u&&(h=zXf(this,u));if(h){var L=h.getVideoData();u=new Map;L=g.C(L.sabrContextUpdates);for(var Z=L.next();!Z.done;Z=L.next()){var y=g.C(Z.value);Z=y.next().value;y=y.next().value;var R,p;if(p=y.scope===4)(R=h)==null?R=0:(p=void 0,R=!((p=R.G7.nI)==null||!p.X.VI.has(Z))),p=R;p&&u.set(Z,y)}return u}this.IP().IH("scuget",{ncpf:"1",ccpn:u})};
var v0={};var Z9r={OW:[{rC:/Unable to load player module/,weight:20},{rC:/Failed to fetch/,weight:500},{rC:/XHR API fetch failed/,weight:10},{rC:/JSON parsing failed after XHR fetch/,weight:10},{rC:/Retrying OnePlatform request/,weight:10},{rC:/CSN Missing or undefined during playback association/,weight:100},{rC:/Non-recoverable error. Do not retry./,weight:0},{rC:/Internal Error. Retry with an exponential backoff./,weight:0},{rC:/API disabled by application./,weight:0}],Lv:[{callback:maa,weight:500}]};var EIj=/[&\?]action_proxy=1/,bZj=/[&\?]token=([\w-]*)/,kEs=/[&\?]video_id=([\w-]*)/,gIb=/[&\?]index=([\d-]*)/,uin=/[&\?]m_pos_ms=([\d-]*)/,hxj=/[&\?]vvt=([\w-]*)/,sMb="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(" "),j1s="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(" "),a6j={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"},$an={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Wds={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};a_.prototype.rT=function(u){this.player.QO().tick(u)};
a_.prototype.fetch=function(u,h){var L=this;if(!u.match(/\[BISCOTTI_ID\]/g))return this.N(u,h);var Z=this.G===1;Z&&this.rT("a_bid_s");var y=VH1();if(y!==null)return Z&&this.rT("a_bid_f"),this.N(u,h,y);y=nIa();Z&&ME(y,function(){L.rT("a_bid_f")});
return y.then(function(R){return L.N(u,h,R)})};
a_.prototype.N=function(u,h,L){var Z=this,y=h===void 0?{}:h;h=y.k6;var R=y.lh;var p=y.cueProcessedMs;L=L===void 0?"":L;var J=this.player.getVideoData(1);y=this.player.L().fV;var O=0;if(p&&R&&!h){var f=R.end-R.start;f>0&&(O=Math.floor(f/1E3))}O=h?h.jS:O;var D={AD_BLOCK:this.G++,AD_BREAK_LENGTH:O,AUTONAV_STATE:ed(this.player.L()),CA_TYPE:"image",CPN:J.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Ze()*1E3,LACT:v5(),LIVE_INDEX:h?this.X++:1,LIVE_TARGETING_CONTEXT:h&&h.context?h.context:"",MIDROLL_POS:R?
Math.round(R.start/1E3):0,MIDROLL_POS_MS:R?Math.round(R.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.m_().Oe().height,P_W:this.player.m_().Oe().width,YT_REMOTE:y?y.join(","):""},c=OJ(J5);Object.keys(c).forEach(function(A){c[A]!=null&&(D[A.toUpperCase()]=c[A].toString())});
L!==""&&(D.BISCOTTI_ID=L);L={};KP(u)&&(L.sts="20132",(h=this.player.L().forcedExperiments)&&(L.forced_experiments=h));var I=ya(g.Ng(u,D),L);return I.split("?").length!==2?PY(Error("Invalid AdBreakInfo URL")):g.Fp(this.player.L(),J==null?void 0:J.oauthToken).then(function(A){if(A&&pP()){var x=Yq();ov(x,A)}A=Z.player.L0(x);x=LAi(Z,I,D,J.isMdxPlayback,p);return g.ah(A,x,"/youtubei/v1/player/ad_break").then(function(Q){return Q})})};
a_.prototype.reset=function(){this.X=this.G=1};g.P(ZLn,a_);
ZLn.prototype.N=function(u,h,L){h=h===void 0?{}:h;var Z=h.k6;var y=h.lh;var R=h.cueProcessedMs;L=L===void 0?"":L;h=this.G;this.G++;var p=this.player.L().j("h5_disable_macro_substitution_in_get_ad_break")?u:yTb(this,u,{k6:Z,lh:y,cueProcessedMs:R},L,h);if(p.split("?").length!==2)return Math.random()<.1&&g.G3(Error("Invalid AdBreakInfo URL")),PY(Error("Invalid AdBreakInfo URL"));var J=this.player.getVideoData(1).isMdxPlayback,O=L;L=bZj.exec(p);L=L!=null&&L.length>=2?L[1]:"";u=EIj.test(p);var f=kEs.exec(p);
f=f!=null&&f.length>=2?f[1]:"";var D=gIb.exec(p);D=D!=null&&D.length>=2&&!Number.isNaN(Number(D[1]))?Number(D[1]):1;var c=uin.exec(p);c=c!=null&&c.length>=2?c[1]:"0";var I=NW(this.player.L().a7),A=g.W2(this.player.getVideoData(1).DI,!0);eXi(this,A,p,O===""?"":O,this.player.L(),this.player.getVideoData(1));O={splay:!1,lactMilliseconds:String(v5()),playerHeightPixels:Math.trunc(this.player.m_().Oe().height),playerWidthPixels:Math.trunc(this.player.m_().Oe().width),vis:Math.trunc(this.player.getVisibilityState()),
signatureTimestamp:20132,autonavState:ed(this.player.L())};if(J){J={};var x=this.player.L().fV;tHf(J,x?x.join(","):"")&&(O.mdxContext=J)}if(J=j1s.includes(I)?void 0:g.BS("PREF")){x=J.split(RegExp("[:&]"));for(var Q=0,S=x.length;Q<S;Q++){var v=x[Q].split("=");if((v[0].toUpperCase()==="SML"||v[0].toUpperCase()==="GSML")&&v.length>1&&v[1].toUpperCase()==="TRUE"){A.user.lockedSafetyMode=!0;break}}O.autoCaptionsDefaultOn=Fdi(J)}p=hxj.exec(p);(p=p!=null&&p.length>=2?p[1]:"")&&f&&(A.user.credentialTransferTokens=
[{token:p,scope:"VIDEO"}]);p={contentPlaybackContext:O};O=this.player.getVideoData(1).getGetAdBreakContext();J=this.player.getVideoData(1).clientPlaybackNonce;x=R!==void 0?Math.round(R).toString():void 0;Q=(Z==null?0:Z.context)?Z.context:void 0;S=0;R&&y&&!Z&&(y=y.end-y.start,y>0&&(S=Math.floor(y/1E3)));Z=(Z=Math.trunc((Z?Z.jS:S)*1E3))?String(Z):void 0;y=this.player.Ze()*1E3;y=Number.isNaN(y)?0:Math.trunc(y);h={adBlock:h,params:L,breakIndex:D,breakPositionMs:c,clientPlaybackNonce:J,topLevelDomain:I,
isProxyAdTagRequest:u,context:A,overridePlaybackContext:p,cueProcessedMs:x,videoId:f?f:void 0,liveTargetingParams:Q,breakLengthMs:Z,driftFromHeadMs:y?String(y):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:O?O:void 0};return Rxn(this,h)};var yMr={Ieg:"replaceUrlMacros",C_I:"onAboutThisAdPopupClosed",rSB:"executeCommand"};pwR.prototype.Y0=function(){return"adPingingEndpoint"};
pwR.prototype.Ir=function(u,h,L){nrR(this.cX.get(),u,h,L)};KAL.prototype.Y0=function(){return"changeEngagementPanelVisibilityAction"};
KAL.prototype.Ir=function(u){this.D.hB("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:u})};JT1.prototype.Y0=function(){return"loggingUrls"};
JT1.prototype.Ir=function(u,h,L){u=g.C(u);for(var Z=u.next();!Z.done;Z=u.next())Z=Z.value,nrR(this.cX.get(),Z.baseUrl,h,L,Z.attributionSrcMode)};g.P(fvs,g.m);g.P(t9,g.m);g.K=t9.prototype;g.K.addListener=function(u){this.listeners.push(u)};
g.K.removeListener=function(u){this.listeners=this.listeners.filter(function(h){return h!==u})};
g.K.Zz=function(u,h,L,Z,y,R,p,J){if(u==="")Jk("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(u!==this.G||L){this.G=u;this.FB.get().Zz(u,h,L,Z,y,R,p,J);this.Eg.get().Zz(u,h,L,Z,y,R,p,J);var O;(O=this.fW)==null||O.get().Zz(u,h,L,Z,y,R,p,J);this.N.Zz(u,h,L,Z,y,R,p,J);O=g.C(this.listeners);for(var f=O.next();!f.done;f=O.next())f.value.Zz(u,h,L,Z,y,R,p,J)}else Jk("Duplicate content video loaded signal")};
g.K.Y$=function(){this.G&&this.hC(this.G)};
g.K.hC=function(u){this.G=void 0;for(var h=g.C(this.listeners),L=h.next();!L.done;L=h.next())L.value.hC(u)};WJ.prototype.xs=function(u,h,L,Z,y){Di1(this);this.T=!h&&L===0;var R=this.D.getVideoData(1),p=this.D.getVideoData(2);R&&(this.contentCpn=R.clientPlaybackNonce,this.videoId=R.videoId,this.G=R.C);p&&(this.adCpn=p.clientPlaybackNonce,this.adVideoId=p.videoId,this.adFormat=p.adFormat);this.B=u;Z<=0?(Di1(this),this.T=!h&&L===0):(this.actionType=this.T?h?"unknown_type":"video_to_ad":h?"ad_to_video":"ad_to_ad",this.videoStreamType=y?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&&
(this.X=!0,V4("_start",this.actionType)&&ATi(this)))};
WJ.prototype.reset=function(){return new WJ(this.D)};g.P(Fw,g.m);Fw.prototype.addCueRange=function(u,h,L,Z,y,R,p){R=R===void 0?3:R;p=p===void 0?1:p;this.G.has(u)?Jk("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:u}):(u=new xil(u,h,L,Z,R),this.G.set(u.id,{lh:u,listener:y,pm:p}),this.D.Rl([u],p))};
Fw.prototype.removeCueRange=function(u){var h=this.G.get(u);h?(this.D.G2([h.lh],h.pm),this.G.delete(h.lh.id)):Jk("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:u})};
Fw.prototype.onCueRangeEnter=function(u){if(this.G.has(u.id))this.G.get(u.id).listener.onCueRangeEnter(u.id)};
Fw.prototype.onCueRangeExit=function(u){if(this.G.has(u.id))this.G.get(u.id).listener.onCueRangeExit(u.id)};
g.P(xil,g.uW);bY.prototype.yN=function(u){this.D.yN(u)};
bY.prototype.jA=function(u){var h=g.NL.apply(1,arguments);u==="onAdStart"||u==="onAdEnd"?this.D.EX.apply(this.D,[u].concat(g.l(h))):this.D.hB.apply(this.D,[u].concat(g.l(h)))};EQ.prototype.w1=function(u){return u&&kn(this)};var vre=null;g.P(Xwa,g.yV);Xwa.prototype.Ij=function(u){return this.G.hasOwnProperty(u)?this.G[u].Ij():{}};
g.nV("ytads.bulleit.getVideoMetadata",function(u){return g6().Ij(u)});
g.nV("ytads.bulleit.triggerExternalActivityEvent",function(u,h,L){var Z=g6();L=Stl(L);L!==null&&Z.publish(L,{queryId:u,viewabilityString:h})});g.K=uh.prototype;g.K.d2=function(u,h){if(!this.G.has(u))return{};if(h==="seek"){h=this.D.L().j("html5_dai_enable_active_view_creating_completed_adblock");h=h===void 0?!1:h;var L=Th(Q0).Fs(u,{});L?QY(L):h&&(u=Th(Q0).kT(null,$4(),!1,u),u.qG=3,t6R([u]));return{}}h=TGf(h);if(h===null)return{};var Z=this.D.Iq();if(!Z)return{};var y=this.D.getPresentingPlayerType(!0);if((L=this.D.getVideoData(y))==null||!L.isAd())return{};L={opt_adElement:Z,opt_fullscreen:this.FB.get().isFullscreen()};return tYs(h,u,L)};
g.K.Di=function(u,h,L,Z,y){this.G.has(u)&&(Z<=0||y<=0||Th(Q0).Di(u,h,L,Z,y))};
g.K.IZ=function(u){var h;(h=this.G.get(u.queryId))==null||h.IZ()};
g.K.Gs=function(u){var h;(h=this.G.get(u.queryId))==null||h.Gs()};
g.K.Ai=function(u){var h;(h=this.G.get(u.queryId))==null||h.Ai()};
g.K.xa=function(u){var h;(h=this.G.get(u.queryId))==null||h.xa()};
g.K.mL=function(u){var h;(h=this.G.get(u.queryId))==null||h.mL()};BGl.prototype.send=function(u,h,L,Z){try{zxe(this,u,h,L,Z===void 0?!1:Z)}catch(y){}};g.P(miw,BGl);dia.prototype.send=function(u,h,L,Z){var y=!1;try{if(Z==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||Z==="ATTRIBUTION_SRC_MODE_XHR_OPTION")y=!0,u=c5i(u);Z=y;var R=u.match(Ur);if(R[1]==="https")var p=u;else R[1]="https",p=oT("https",R[2],R[3],R[4],R[5],R[6],R[7]);var J=Rrs(p);R=[];var O=kHn(p)&&this.Mi.get().D.L().experiments.tB("add_auth_headers_to_remarketing_google_dot_com_ping");if(KP(p)||O)R.push({headerType:"USER_AUTH"}),R.push({headerType:"PLUS_PAGE_ID"}),R.push({headerType:"VISITOR_ID"}),R.push({headerType:"EOM_VISITOR_ID"}),
R.push({headerType:"AUTH_USER"}),R.push({headerType:"DATASYNC_ID"});this.G.send({baseUrl:p,scrubReferrer:J,headers:R},h,L,Z)}catch(f){}};yI.prototype.mp=function(){return this.D.mp(1)};g.P(R2,g.m);g.K=R2.prototype;g.K.kV=function(){return this.D.getVideoData(1).clientPlaybackNonce};
g.K.addListener=function(u){this.listeners.push(u)};
g.K.removeListener=function(u){this.listeners=this.listeners.filter(function(h){return h!==u})};
g.K.Zz=function(){this.NP.clear();this.P$=null;this.A1.get().clear()};
g.K.hC=function(){};
g.K.Mxy=function(u,h,L,Z,y){h.videoId==="nPpU29QrbiU"&&this.D.IH("ads_ssm_vdc_s",{pt:L,dvt:u});c6(this.Mi.get())&&u!=="dataloaded"||WAY(this,h,L);if(kn(this.Mi.get())&&u==="newdata"&&y!==void 0){u=this.kV();var R=h.clientPlaybackNonce,p={};PX(this,"rte",(p.ec=R,p.xc=Z==null?void 0:Z.clientPlaybackNonce,p.tr=y,p.pt=L,p.ia=R!==u,p.ctp=x6(R),p));h=h.clientPlaybackNonce;Z=Z==null?void 0:Z.clientPlaybackNonce;y=FAj(y);if(y!==1)if(Z!==void 0)for(L=g.C(this.listeners),u=L.next();!u.done;u=L.next())u.value.JY(Z,
h,y);else Jk("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:h,transitionReason:String(y)});y=g.C(this.listeners);for(Z=y.next();!Z.done;Z=y.next())Z.value.Zx(h)}};
g.K.sbw=function(u,h){u!==void 0&&(this.P$=u,h===void 0?Jk("Expected ad video start time on SS video changed"):this.NP.set(u,h));var L=this.D.getPresentingPlayerType(!0),Z=this.D.getVideoData(L);this.D.getVideoData(1).IH("ads_ssvc",{pt:L,cpn:Z==null?void 0:Z.clientPlaybackNonce,crtt:this.D.getCurrentTime(1,!1),atlh:this.D.isAtLiveHead(),adstt:h});Z?WAY(this,Z,L):Jk("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.D.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:u})};
g.K.mG=function(u,h){var L=u.author,Z=u.clientPlaybackNonce,y=u.isListed,R=u.YF,p=u.title,J=u.KV,O=u.QK,f=u.isMdxPlayback,D=u.Mv,c=u.mdxEnvironment,I=u.isAutonav,A=u.OF,x=u.J3,Q=u.QX,S=u.videoId||"",v=u.profilePicture||"",T=u.Xy||"",U=u.LV()||!1,z=u.KZ()||!1;u=u.Eb||void 0;R=this.A1.get().G.get(R)||{layoutId:null,slotId:null};var d=this.D.getVideoData(1),W=d.bP();d=d.getPlayerResponse();h=1E3*this.D.getDuration(h);var t=1E3*this.D.getDuration(1),yn,KV,u1=(d==null?void 0:(yn=d.playerConfig)==null?
void 0:(KV=yn.daiConfig)==null?void 0:KV.enableDai)||!1,w,k;yn=(d==null?void 0:(w=d.playerConfig)==null?void 0:(k=w.daiConfig)==null?void 0:k.enablePreroll)||!1;return Object.assign({},R,{videoId:S,author:L,clientPlaybackNonce:Z,I$:h,Ea:t,daiEnabled:u1,YC:yn,isListed:y,bP:W,profilePicture:v,title:p,Xy:T,KV:J,QK:O,Eb:u,isMdxPlayback:f,Mv:D,mdxEnvironment:c,isAutonav:I,OF:A,J3:x,QX:Q,LV:U,KZ:z})};
g.K.Ni=function(){this.listeners.length=0;this.jN=null;g.m.prototype.Ni.call(this)};g.P(pW,g.m);g.K=pW.prototype;g.K.Zz=function(){var u=this;kn(this.Mi.get())||(this.G=DZ(function(){u.D.ww()||u.D.CB("ad",1)}))};
g.K.hC=function(){};
g.K.addListener=function(u){this.listeners.push(u)};
g.K.removeListener=function(u){this.listeners=this.listeners.filter(function(h){return h!==u})};
g.K.zL=function(){};
g.K.playVideo=function(){this.D.playVideo()};
g.K.pauseVideo=function(){this.D.pauseVideo()};
g.K.resumeVideo=function(u){this.Ah(u)&&this.D.playVideo()};
g.K.Ah=function(u){return this.D.getPlayerState(u)===2};
g.K.getCurrentTimeSec=function(u,h,L){var Z=this.Eg.get().P$;if(u===2&&!h&&Z!==null)return Ers(this,Z);af(this.Mi.get(),"html5_ssap_use_cpn_to_get_time")||(L=void 0);return L!==void 0?this.D.getCurrentTime(u,h,L):this.D.getCurrentTime(u,h)};
g.K.getVolume=function(){return this.D.getVolume()};
g.K.isMuted=function(){return this.D.isMuted()};
g.K.getPresentingPlayerType=function(){return this.D.getPresentingPlayerType(!0)};
g.K.getPlayerState=function(u){return this.D.getPlayerState(u)};
g.K.isFullscreen=function(){return this.D.isFullscreen()};
g.K.isAtLiveHead=function(){return this.D.isAtLiveHead()};
g.K.d6=function(u){this.D.d6(u)};
g.K.uN7=function(){var u=this.D.getPresentingPlayerType(!0),h=this.getCurrentTimeSec(u,!1);if(u===2){u=g.C(this.listeners);for(var L=u.next();!L.done;L=u.next())L.value.SZ(h)}else if(u===1)for(u=g.C(this.LT),L=u.next();!L.done;L=u.next())L.value.zL(h)};
g.K.mmd=function(u){for(var h=g.C(this.listeners),L=h.next();!L.done;L=h.next())L.value.SS(u,this.getPresentingPlayerType())};
g.K.onFullscreenToggled=function(u){for(var h=g.C(this.listeners),L=h.next();!L.done;L=h.next())L.value.onFullscreenToggled(u)};
g.K.onVolumeChange=function(){for(var u=g.C(this.listeners),h=u.next();!h.done;h=u.next())h.value.onVolumeChange()};
g.K.Wo=function(){for(var u=this.D.isMinimized(),h=g.C(this.listeners),L=h.next();!L.done;L=h.next())L.value.Wo(u)};
g.K.J2=function(u){for(var h=g.C(this.listeners),L=h.next();!L.done;L=h.next())L.value.J2(u)};
g.K.QZ=function(){for(var u=this.D.m_().Oe(),h=g.C(this.listeners),L=h.next();!L.done;L=h.next())L.value.Bx(u)};
g.K.qT=function(u){for(var h=g.C(this.listeners),L=h.next();!L.done;L=h.next())L.value.qT(u)};
g.K.h2=function(){for(var u=g.C(this.listeners),h=u.next();!h.done;h=u.next())h.value.h2()};g.P(u1n,g.m);g.P(DC,g.m);DC.prototype.Ni=function(){this.NU.ww()||this.NU.get().removeListener(this);g.m.prototype.Ni.call(this)};cq.prototype.fetch=function(u){var h=u.u0;return this.G.fetch(u.p4,{k6:u.k6===void 0?void 0:u.k6,lh:h,cueProcessedMs:u.cueProcessedMs===void 0?0:u.cueProcessedMs}).then(function(L){return j8b(L,h)})};g.P(I2,g.m);g.K=I2.prototype;g.K.addListener=function(u){this.listeners.push(u)};
g.K.removeListener=function(u){this.listeners=this.listeners.filter(function(h){return h!==u})};
g.K.cY=function(u){hOV(this,u,1)};
g.K.onAdUxClicked=function(u,h){AI(this,function(L){L.DL(u,h)})};
g.K.Rn=function(u){AI(this,function(h){h.k_(u)})};
g.K.Ae=function(u){AI(this,function(h){h.pR(u)})};
g.K.W_H=function(u){AI(this,function(h){h.ai(u)})};xu.prototype.reduce=function(u){switch(u.event){case "unknown":return}var h=u.identifier;var L=this.G[h];L?h=L:(L={Jn:null,vM:-Infinity},h=this.G[h]=L);L=u.startSecs+u.G/1E3;if(!(L<h.vM))if(h.vM=L,h.Jn){if(L<h.Jn.end){a:{L=h.Jn;switch(u.event){case "start":case "continue":case "stop":break;default:u=null;break a}u=L.start+u.jS;u=L.end<=u?null:u}if(u!==null)for(h.Jn.end=u,h=this.N,g.DM(h.X.G,u*1E3),h=g.C(h.listeners),L=h.next();!L.done;L=h.next())L.value.Bg(u)}}else if(u=LVf(u,this.X))L=u.jHB,h.Jn=
u.Aj,yHn(this.N,L)};
xu.prototype.updateTime=function(){};g.P(Pq,g.m);g.K=Pq.prototype;
g.K.Zz=function(){this.T=new xu(this,Cea(this.Mi.get()));this.X=new ZzL;var u=this.D.getVideoData(1);if(!u.enableServerStitchedDai){var h=this.D.getVideoData(1),L;((L=this.N)==null?void 0:L.clientPlaybackNonce)!==h.clientPlaybackNonce&&(this.N!=null&&this.N.unsubscribe("cuepointupdated",this.gY,this),h.subscribe("cuepointupdated",this.gY,this),this.N=h)}this.H5.length=0;var Z;h=((Z=u.G)==null?void 0:sAw(Z,0))||[];Z=g.C(h);for(h=Z.next();!h.done;h=Z.next())h=h.value,this.Vn(h)&&Jk("Unexpected a GetAdBreak to go out without player waiting",
void 0,void 0,{cuePointId:h.identifier,cuePointEvent:h.event,contentCpn:u.clientPlaybackNonce})};
g.K.hC=function(){};
g.K.addListener=function(u){this.listeners.push(u)};
g.K.removeListener=function(u){this.listeners=this.listeners.filter(function(h){return h!==u})};
g.K.Vn=function(u){pFs(this,u);this.T.reduce(u);u=this.B;this.B=!1;return u};
g.K.gY=function(u){var h=this.D.getVideoData(1).isDaiEnabled();if(h||!g.Qr(this.D.L())){u=g.C(u);for(var L=u.next();!L.done;L=u.next())if(L=L.value,pFs(this,L),h)this.T.reduce(L);else if(this.D.getCurrentTime(1)!==0&&L.event==="start")if(this.Mi.get().D.L().experiments.tB("ignore_overlapping_cue_points_on_endemic_live_html5")&&(this.G==null?0:L.startSecs+L.jS>=this.G.startSecs&&L.startSecs<=this.G.startSecs+this.G.jS)){var Z=void 0;lvj(this.Mi.get())&&L.identifier!==((Z=this.G)==null?void 0:Z.identifier)&&
bQ(this.cX.get(),"ocud","cpi."+L.identifier+";cpe."+L.event+";cps."+L.startSecs+";");Z=void 0;L.identifier!==((Z=this.G)==null?void 0:Z.identifier)&&Jk("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.G=L,yHn(this,L)}};
g.K.Ni=function(){this.N!=null&&(this.N.unsubscribe("cuepointupdated",this.gY,this),this.N=null);this.listeners.length=0;this.H5.length=0;g.m.prototype.Ni.call(this)};CW.prototype.addPlayerResponseForAssociation=function(u){this.D.addPlayerResponseForAssociation(u)};g.K=ih.prototype;g.K.vD=function(u,h,L,Z,y,R,p){return this.D.vD(u,h,L,Z,y,R,p)};
g.K.Qz=function(u,h){this.D.Qz(u,h)};
g.K.q5=function(u,h,L){this.D.q5(u,h,L)};
g.K.s4=function(u){this.D.s4(u)};
g.K.RB=function(u,h,L,Z,y,R,p){this.D.RB(u,h,L,Z,y,R,p)};
g.K.FW=function(u){return this.D.FW(u)};
g.K.finishSegmentByCpn=function(u,h,L){L=JHn(L);this.D.finishSegmentByCpn(u,h,L)};g.P(f9s,g.m);g.P(DDi,g.m);g.P(cHn,g.m);g.P(I9b,g.m);g.P(AHe,g.m);g.P(P4l,g.m);P4l.prototype.X=function(){return this.N};g.P(C4j,nu);
C4j.prototype.B=function(u){var h=u.content;if(h.componentType==="shopping-companion")switch(u.actionType){case 1:case 2:u=this.G.getVideoData(1);this.G.hB("updateKevlarOrC3Companion",{contentVideoId:u&&u.videoId,shoppingCompanionCarouselRenderer:h.renderer,layoutId:h.layoutId,macros:h.macros,onLayoutVisibleCallback:h.G,interactionLoggingClientData:h.interactionLoggingClientData});break;case 3:this.G.hB("updateKevlarOrC3Companion",{})}else if(h.componentType==="action-companion")switch(u.actionType){case 1:case 2:u=this.G.getVideoData(1);
this.G.hB("updateKevlarOrC3Companion",{contentVideoId:u&&u.videoId,actionCompanionAdRenderer:h.renderer,layoutId:h.layoutId,macros:h.macros,onLayoutVisibleCallback:h.G,interactionLoggingClientData:h.interactionLoggingClientData});break;case 3:h.renderer&&(h=this.G.getVideoData(1),this.G.hB("updateKevlarOrC3Companion",{contentVideoId:h&&h.videoId})),this.G.hB("updateKevlarOrC3Companion",{})}else if(h.componentType==="image-companion")switch(u.actionType){case 1:case 2:u=this.G.getVideoData(1);this.G.hB("updateKevlarOrC3Companion",
{contentVideoId:u&&u.videoId,imageCompanionAdRenderer:h.renderer,layoutId:h.layoutId,macros:h.macros,onLayoutVisibleCallback:h.G,interactionLoggingClientData:h.interactionLoggingClientData});break;case 3:h=this.G.getVideoData(1),this.G.hB("updateKevlarOrC3Companion",{contentVideoId:h&&h.videoId}),this.G.hB("updateKevlarOrC3Companion",{})}else if(h.componentType==="top-banner-image-text-icon-buttoned")switch(u.actionType){case 1:case 2:u=this.G.getVideoData(1);this.G.hB("updateKevlarOrC3Companion",
{contentVideoId:u&&u.videoId,topBannerImageTextIconButtonedLayoutViewModel:h.renderer,layoutId:h.layoutId,macros:h.macros,onLayoutVisibleCallback:h.G,interactionLoggingClientData:h.interactionLoggingClientData});break;case 3:h.renderer&&(h=this.G.getVideoData(1),this.G.hB("updateKevlarOrC3Companion",{contentVideoId:h&&h.videoId})),this.G.hB("updateKevlarOrC3Companion",{})}else if(h.componentType==="banner-image")switch(u.actionType){case 1:case 2:u=this.G.getVideoData(1);this.G.hB("updateKevlarOrC3Companion",
{contentVideoId:u&&u.videoId,bannerImageLayoutViewModel:h.renderer,layoutId:h.layoutId,macros:h.macros,onLayoutVisibleCallback:h.G,interactionLoggingClientData:h.interactionLoggingClientData});break;case 3:h=this.G.getVideoData(1),this.G.hB("updateKevlarOrC3Companion",{contentVideoId:h&&h.videoId}),this.G.hB("updateKevlarOrC3Companion",{})}else if(h.componentType==="ads-engagement-panel")switch(h=h.renderer,u.actionType){case 1:case 2:this.G.hB("updateEngagementPanelAction",h.addAction);this.G.hB("changeEngagementPanelVisibility",
h.expandAction);break;case 3:this.G.hB("changeEngagementPanelVisibility",h.hideAction),this.G.hB("updateEngagementPanelAction",h.removeAction)}else if(h.componentType==="ads-engagement-panel-layout"){var L=h.renderer;switch(u.actionType){case 1:case 2:this.G.hB("updateEngagementPanelAction",{action:z3(L.addAction),layoutId:h.layoutId,onLayoutVisibleCallback:h.G,interactionLoggingClientData:h.interactionLoggingClientData});this.G.hB("changeEngagementPanelVisibility",z3(L.expandAction));break;case 3:this.G.hB("changeEngagementPanelVisibility",
z3(L.hideAction)),this.G.hB("updateEngagementPanelAction",{action:z3(L.removeAction)})}}};g.P(MCY,FX);g.K=MCY.prototype;g.K.init=function(u,h,L){FX.prototype.init.call(this,u,h,L);g.Oz(this.X,"stroke-dasharray","0 "+this.N);this.X.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.C.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.B.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()};
g.K.clear=function(){this.hide()};
g.K.hide=function(){ED(this);FX.prototype.hide.call(this)};
g.K.show=function(){b2(this);FX.prototype.show.call(this)};
g.K.mj=function(){this.hide()};
g.K.mm=function(){if(this.G){var u=this.G.getProgressState();u!=null&&u.current!=null&&g.Oz(this.X,"stroke-dasharray",u.current/u.seekableEnd*this.N+" "+this.N)}};g.P(ize,fu);g.K=ize.prototype;
g.K.init=function(u,h,L){fu.prototype.init.call(this,u,h,L);if(h.image&&h.image.thumbnail)if(h.headline)if(h.description)if(h.backgroundImage&&h.backgroundImage.thumbnail)if(h.actionButton&&g.n(h.actionButton,g.TW))if(u=h.durationMilliseconds||0,typeof u!=="number"||u<=0)g.UZ(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+u));else if(h.navigationEndpoint){var Z=this.api.getVideoData(2);if(Z!=null){var y=h.image.thumbnail.thumbnails;y!=null&&
y.length>0&&g.Xg(g.ES(y[0].url))&&(y[0].url=Z.profilePicture,g.Xg(g.ES(Z.profilePicture))&&j3n("VideoPlayer",239976093,"Expected non-empty profile picture."));y=h.backgroundImage.thumbnail.thumbnails;y!=null&&y.length>0&&g.Xg(g.ES(y[0].url))&&(y[0].url=Z.Po());y=h.headline;y!=null&&g.Xg(g.ES(y.text))&&(y.text=Z.author)}this.Y.init(Lu("ad-image"),h.image,L);this.C.init(Lu("ad-text"),h.headline,L);this.X.init(Lu("ad-text"),h.description,L);this.VA.init(Lu("ad-image"),h.backgroundImage,L);Z=["ytp-ad-action-interstitial-action-button",
"ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.C.element.classList.add("ytp-ad-action-interstitial-headline-light");this.X.element.classList.add("ytp-ad-action-interstitial-description-light");Z.push("ytp-ad-action-interstitial-action-button-dark");this.api.L().N&&(Z.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),Z.push("ytp-ad-action-interstitial-action-button-dark"));this.api.L().j("enable_unified_action_endcap_on_web")&&
!this.api.L().N&&(Z.push("ytp-ad-action-interstitial-action-button-unified"),this.Sd.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.Y.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.fI.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.fZ.classList.add("ytp-ad-action-interstitial-card-unified"),this.RH.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.X.element.classList.add("ytp-ad-action-interstitial-description-unified"),
this.DI.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.vX.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.aH.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new oG(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,Z);g.V(this,this.actionButton);this.actionButton.Og(this.Sd);
this.actionButton.init(Lu("button"),g.n(h.actionButton,g.TW),L);eB(this.actionButton.element);Z=tK(this.actionButton.element);$K(this.actionButton.element,Z+" This link opens in new tab");this.navigationEndpoint=h.navigationEndpoint;this.B.W(this.vX,"click",this.b0,this);this.B.W(this.RH,"click",this.b0,this);!this.api.L().j("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.L().N||this.B.W(this.DI,"click",this.b0,this);this.G=this.iO?new Mw(this.api,u):new ii(u);g.V(this,this.G);if(h.skipButton){(u=
g.n(h.skipButton,Mbb))&&this.G&&(this.skipButton=new c2(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.G,this.wQ),g.V(this,this.skipButton),this.skipButton.Og(this.element),this.skipButton.init(Lu("skip-button"),u,L));L=this.api.j("disable_ad_preview_for_instream_ads");if(u=h.adBadgeRenderer)if(u=g.n(u,C3V))Z=new P2(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,!0,L),Z.Og(this.aH),Z.init(Lu("simple-ad-badge"),u,this.macros),g.V(this,Z);if(u=h.adInfoRenderer)if(u=
g.n(u,ve))L=new $S(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.element,void 0,L),L.Og(this.aH),L.init(Lu("ad-info-hover-text-button"),u,this.macros),g.V(this,L)}else h.nonskippableOverlayRenderer&&(u=g.n(h.nonskippableOverlayRenderer,qU))&&this.G&&(this.N=new ui(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.G,!1),g.V(this,this.N),this.N.Og(this.element),this.N.init(Lu("ad-preview"),u,L));h.countdownRenderer&&(h=h.countdownRenderer,g.n(h,iqq)&&this.G&&
(L=new MCY(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.G),g.V(this,L),L.Og(this.element),L.init(Lu("timed-pie-countdown"),g.n(h,iqq),this.macros)));this.show();this.element.focus()}else g.UZ(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.UZ(Error("AdActionInterstitialRenderer has no button."));else g.UZ(Error("AdActionInterstitialRenderer has no background AdImage."));else g.UZ(Error("AdActionInterstitialRenderer has no description AdText."));else g.UZ(Error("AdActionInterstitialRenderer has no headline AdText."));
else g.UZ(Error("AdActionInterstitialRenderer has no image."))};
g.K.clear=function(){g.Tj(this.B);this.hide()};
g.K.show=function(){Q81(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.N&&this.N.show();fu.prototype.show.call(this)};
g.K.hide=function(){Q81(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.N&&this.N.hide();fu.prototype.hide.call(this)};
g.K.b0=function(){this.navigationEndpoint&&(this.layoutId?this.HX.executeCommand(this.navigationEndpoint,this.layoutId):g.UZ(Error("Missing layoutId for ad action interstitial.")))};var q1a={iconType:"CLOSE"},Xj=new g.II(320,63);g.P(vhY,fu);g.K=vhY.prototype;
g.K.init=function(u,h,L){fu.prototype.init.call(this,u,h,L);this.B=h;this.Y=g.h8(this.B.onClickCommands||[]);this.aH=this.B.onErrorCommand||null;if(u=this.B.contentSupportedRenderer)u=this.B.contentSupportedRenderer,h=this.B.adInfoRenderer||null,g.n(u,Aur)?(this.C=g.eT("ytp-ad-overlay-ad-info-button-container",this.X.element),TfR(this,h),u=ohY(this,g.n(u,Aur))):g.n(u,x7q)?(this.C=g.eT("ytp-ad-overlay-ad-info-button-container",this.N.element),TfR(this,h),u=Nfs(this,g.n(u,x7q))):g.n(u,P3R)?(this.C=
g.eT("ytp-ad-overlay-ad-info-button-container",this.G.element),TfR(this,h),u=UDb(this,g.n(u,P3R))):(g.UZ(Error("InvideoOverlayAdRenderer content could not be initialized.")),u=!1);u&&(this.show(),GUw(this,!0))};
g.K.clear=function(){GUw(this,!1);this.vX.reset();this.RH=0;this.X.hide();this.logVisibility(this.X.element,!1);this.N.hide();this.logVisibility(this.N.element,!1);this.G.hide();this.logVisibility(this.G.element,!1);this.hide();this.dispose()};
g.K.eRX=function(){this.Sd&&(this.layoutId?this.HX.executeCommand(this.Sd,this.layoutId):g.UZ(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
g.K.tJ=function(){a:{if(this.B&&this.B.closeButton&&this.B.closeButton.buttonRenderer){var u=this.B.closeButton.buttonRenderer;if(u.serviceEndpoint){u=[u.serviceEndpoint];break a}}u=[]}u=g.C(u);for(var h=u.next();!h.done;h=u.next())h=h.value,this.layoutId?this.HX.executeCommand(h,this.layoutId):g.UZ(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.K.V7y=function(){this.VA||this.api.getPlayerState(1)!==2||this.api.playVideo()};
g.K.sz=function(){this.VA||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.sz("invideo-overlay")};
g.K.UpX=function(u){u.target===this.C&&g.eT("ytp-ad-button",this.fI.element).click()};g.P(Hzs,FX);g.K=Hzs.prototype;g.K.init=function(u,h,L){FX.prototype.init.call(this,u,h,L);u=h.durationMs;this.X=u==null||u===0?0:u+this.G.getProgressState().current*1E3;if(h.text)var Z=h.text.templatedAdText;else h.staticMessage&&(Z=h.staticMessage);this.messageText.init(Lu("ad-text"),Z,L);this.messageText.Og(this.N.element);this.B.show(100);this.show()};
g.K.clear=function(){this.hide()};
g.K.hide=function(){rHs(this,!1);FX.prototype.hide.call(this);this.N.hide();this.messageText.hide();ED(this)};
g.K.show=function(){rHs(this,!0);FX.prototype.show.call(this);b2(this);this.N.show();this.messageText.show()};
g.K.mj=function(){this.hide()};
g.K.mm=function(){if(this.G!=null){var u=this.G.getProgressState();u!=null&&u.current!=null&&(u=1E3*u.current,!this.RH&&u>=this.X?(this.B.hide(),this.RH=!0):this.messageText&&this.messageText.isTemplated()&&(u=Math.max(0,Math.ceil((this.X-u)/1E3)),u!==this.C&&(WL(this.messageText,{TIME_REMAINING:String(u)}),this.C=u)))}};g.P(Bfb,fu);g.K=Bfb.prototype;
g.K.init=function(u,h,L){fu.prototype.init.call(this,u,h,{});h.image&&h.image.thumbnail?h.headline?h.description?h.actionButton&&g.n(h.actionButton,g.TW)?(this.X.init(Lu("ad-image"),h.image,L),this.N.init(Lu("ad-text"),h.headline,L),this.B.init(Lu("ad-text"),h.description,L),u=["ytp-ad-underlay-action-button"],this.api.L().j("use_blue_buttons_for_desktop_player_underlay")&&u.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new oG(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,
u),h.backgroundColor&&g.Oz(this.element,"background-color",g.zz(h.backgroundColor)),g.V(this,this.actionButton),this.actionButton.Og(this.C),this.actionButton.init(Lu("button"),g.n(h.actionButton,g.TW),L),h=g.Jl(this.api.L().experiments,"player_underlay_video_width_fraction"),this.api.L().j("place_shrunken_video_on_left_of_player")?(L=this.G,g.pc(L,"ytp-ad-underlay-left-container"),g.yN(L,"ytp-ad-underlay-right-container"),g.Oz(this.G,"margin-left",Math.round((h+.02)*100)+"%")):(L=this.G,g.pc(L,"ytp-ad-underlay-right-container"),
g.yN(L,"ytp-ad-underlay-left-container")),g.Oz(this.G,"width",Math.round((1-h-.04)*100)+"%"),this.api.N0()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.gU.bind(this)),this.api.addEventListener("resize",this.B3.bind(this))):g.UZ(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.UZ(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.UZ(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.UZ(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.K.show=function(){zOj(!0);this.actionButton&&this.actionButton.show();fu.prototype.show.call(this)};
g.K.hide=function(){zOj(!1);this.actionButton&&this.actionButton.hide();fu.prototype.hide.call(this)};
g.K.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.gU.bind(this));this.api.removeEventListener("resize",this.B3.bind(this));this.hide()};
g.K.onClick=function(u){fu.prototype.onClick.call(this,u);this.actionButton&&g.ZO(this.actionButton.element,u.target)&&this.api.pauseVideo()};
g.K.gU=function(u){u==="transitioning"?(this.G.classList.remove("ytp-ad-underlay-clickable"),this.show()):u==="visible"?this.G.classList.add("ytp-ad-underlay-clickable"):u==="hidden"&&(this.hide(),this.G.classList.remove("ytp-ad-underlay-clickable"))};
g.K.B3=function(u){u.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):u.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.Oz(this.N.element,"font-size",u.width/40+"px")};g.P(vq,fu);
vq.prototype.init=function(u,h,L){fu.prototype.init.call(this,u,h,L);h.toggledLoggingParams&&(this.toggledLoggingParams=h.toggledLoggingParams);h.answer&&g.n(h.answer,g.TW)?(u=new oG(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),u.Og(this.answer),u.init(Lu("ytp-ad-survey-answer-button"),g.n(h.answer,g.TW),L),u.show()):h.answer&&g.n(h.answer,iR)&&(this.G=new ds(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,
["ytp-ad-survey-answer-toggle-button"]),this.G.Og(this.answer),g.V(this,this.G),this.G.init(Lu("survey-answer-button"),g.n(h.answer,iR),L));this.show()};
vq.prototype.hH=function(u){this.layoutId?si(this.HX,u,this.layoutId,this.macros):g.UZ(new g.aO("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
vq.prototype.onClick=function(u){fu.prototype.onClick.call(this,u);if(this.api.L().j("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)};
vq.prototype.clear=function(){this.hide()};g.P(mDf,fu);mDf.prototype.init=function(u,h,L){fu.prototype.init.call(this,u,h,L);h.answer&&g.n(h.answer,iR)&&(this.button=new ds(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Og(this.G),this.button.init(Lu("survey-none-of-the-above-button"),g.n(h.answer,iR),L));this.show()};g.P(qV,oG);qV.prototype.init=function(u,h,L){oG.prototype.init.call(this,u,h,L);u=!1;h.text&&(h=g.cL(h.text),u=!g.Xg(h));u||g.G3(Error("No submit text was present in the renderer."))};
qV.prototype.onClick=function(u){this.publish("l");oG.prototype.onClick.call(this,u)};g.P(To,fu);
To.prototype.init=function(u,h,L){fu.prototype.init.call(this,u,h,L);if(u=h.skipOrPreviewRenderer)g.n(u,ur)?(u=g.n(u,ur),L=new Ak(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.B,!0),L.Og(this.skipOrPreview),L.init(Lu("skip-button"),u,this.macros),g.V(this,L),this.G=L):g.n(u,qU)&&(u=g.n(u,qU),L=new ui(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.B,!1),L.Og(this.skipOrPreview),L.init(Lu("ad-preview"),u,this.macros),j2(L),g.V(this,L),this.G=L);this.G==
null&&g.UZ(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(h)));h.submitButton&&(u=h.submitButton,g.n(u,g.TW)&&(u=g.n(u,g.TW),L=new qV(this.api,this.layoutId,this.interactionLoggingClientData,this.HX),L.Og(this.submitButton),L.init(Lu("survey-submit"),u,this.macros),g.V(this,L),this.N=L));u=this.api.j("disable_ad_preview_for_instream_ads");if(L=h.adBadgeRenderer){L=g.n(L,C3V);var Z=new P2(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,!0,
u,!0);Z.Og(this.X);Z.init(Lu("simple-ad-badge"),L,this.macros);this.adBadge=Z.element;g.V(this,Z)}if(L=h.adDurationRemaining)L=g.n(L,D77),Z=new S2(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.B,void 0,u),Z.Og(this.X),Z.init(Lu("ad-duration-remaining"),L,this.macros),g.V(this,Z);(h=h.adInfoRenderer)&&g.n(h,ve)&&(L=new $S(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.element,void 0,u),g.V(this,L),u&&this.adBadge!==void 0?this.X.insertBefore(L.element,
this.adBadge.nextSibling):L.Og(this.X),L.init(Lu("ad-info-hover-text-button"),g.n(h,ve),this.macros));this.show()};
To.prototype.clear=function(){this.hide()};g.P(Yu,fu);Yu.prototype.init=function(u,h,L){fu.prototype.init.call(this,u,h,L);wFi(this)};
Yu.prototype.show=function(){this.X=Date.now();fu.prototype.show.call(this)};
Yu.prototype.y0=function(){};g.P(eOn,Yu);g.K=eOn.prototype;g.K.init=function(u,h,L){var Z=this;Yu.prototype.init.call(this,u,h,L);h.questionText&&dDY(this,h.questionText);h.answers&&h.answers.forEach(function(y,R){g.n(y,Cy)&&VCb(Z,g.n(y,Cy),L,R)});
this.C=new Set(this.N.map(function(y){return y.G.G}));
(u=h.noneOfTheAbove)&&(u=g.n(u,IRR))&&a9n(this,u,L);h.surveyAdQuestionCommon&&s8n(this,h.surveyAdQuestionCommon);h.submitEndpoints&&(this.submitEndpoints=h.submitEndpoints);this.W(this.element,"change",this.onChange);this.show()};
g.K.y0=function(){$Dw(this,!1);this.B.N.subscribe("l",this.xrI,this)};
g.K.onChange=function(u){u.target===this.noneOfTheAbove.button.G?tCf(this):this.C.has(u.target)&&(this.noneOfTheAbove.button.toggleButton(!1),$Dw(this,!0))};
g.K.xrI=function(){var u=[],h=this.N.reduce(function(y,R,p){var J=R.toggledLoggingParams;R.G&&R.G.isToggled()&&J&&(y.push(J),u.push(p));return y},[]).join("&"),L=this.submitEndpoints.map(function(y){if(!y.loggingUrls)return y;
y=g.U6(y);y.loggingUrls=y.loggingUrls.map(function(R){R.baseUrl&&(R.baseUrl=wu(R.baseUrl,h));return R});
return y});
if(L){L=g.C(L);for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,this.layoutId?si(this.HX,Z,this.layoutId,this.macros):g.UZ(Error("Missing layoutId for multi_select_question."))}this.api.L().j("supports_multi_step_on_desktop")&&this.RH(u)};
g.K.clear=function(){this.api.L().j("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.P(o2,Yu);o2.prototype.init=function(u,h,L){var Z=this;Yu.prototype.init.call(this,u,h,L);h.questionText&&dDY(this,h.questionText);h.answers&&h.answers.forEach(function(y,R){g.n(y,Cy)&&VCb(Z,g.n(y,Cy),L,R)});
h.surveyAdQuestionCommon?s8n(this,h.surveyAdQuestionCommon):g.UZ(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(h)));this.show()};
o2.prototype.clear=function(){this.api.L().j("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.P(NV,fu);NV.prototype.init=function(u,h,L){var Z=this;fu.prototype.init.call(this,u,h,L);if(this.api.L().j("supports_multi_step_on_desktop")){var y;this.conditioningRules=(y=h.conditioningRules)!=null?y:[];var R;this.N=(R=h.questions)!=null?R:[];var p;((p=h.questions)==null?0:p.length)&&Ehl(this,0)}else(h.questions||[]).forEach(function(J){g.n(J,SD)?FVa(Z,g.n(J,SD),L):g.n(J,la)&&bzV(Z,g.n(J,la),L)});
this.show()};
NV.prototype.clear=function(){this.api.L().j("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
NV.prototype.B=function(u){var h=this;if(this.api.L().j("supports_multi_step_on_desktop")){var L;if((L=this.conditioningRules)==null?0:L.length){var Z;if(u.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(y){return y.questionIndex===h.G})==null)g.UZ(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);
else if(this.conditioningRules.forEach(function(y){if(y.questionIndex===h.G)switch(y.condition){case "CONDITION_ALL_OF":var R;if((R=y.answerIndices)==null?0:R.every(function(J){return u.includes(J)}))Z=y.nextQuestionIndex;
break;case "CONDITION_ANY_OF":var p;if((p=y.answerIndices)==null?0:p.some(function(J){return u.includes(J)}))Z=y.nextQuestionIndex;
break;default:g.UZ(Error("Expected specified condition in survey conditioning rules."))}}),Z!=null)Ehl(this,Z);
else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.UZ(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.P(UA,fu);
UA.prototype.init=function(u,h,L){var Z=this;fu.prototype.init.call(this,u,h,L);u=h.timeoutSeconds||0;if(typeof u!=="number"||u<0)g.UZ(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+u));else if(h.timeoutCommands)if(h.text)if(h.ctaButton&&g.n(h.ctaButton,g.TW))if(h.brandImage)if(h.backgroundImage&&g.n(h.backgroundImage,Y3)&&g.n(h.backgroundImage,Y3).landscape){this.layoutId||g.UZ(Error("Missing layoutId for survey interstitial."));kUs(this.interstitial,g.n(h.backgroundImage,
Y3).landscape);kUs(this.logoImage,h.brandImage);g.yg(this.text,g.cL(h.text));var y=["ytp-ad-survey-interstitial-action-button"];y.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new oG(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,y);g.V(this,this.actionButton);this.actionButton.Og(this.N);this.actionButton.init(Lu("button"),g.n(h.ctaButton,g.TW),L);this.actionButton.show();this.G=new Mw(this.api,u*1E3);this.G.subscribe("g",function(){Z.transition.hide()});
g.V(this,this.G);this.W(this.element,"click",function(R){var p=R.target===Z.interstitial;R=Z.actionButton.element.contains(R.target);if(p||R)if(Z.transition.hide(),p)Z.api.onAdUxClicked(Z.componentType,Z.layoutId)});
this.transition.show(100)}else g.UZ(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.UZ(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.UZ(Error("SurveyTextInterstitialRenderer has no button."));else g.UZ(Error("SurveyTextInterstitialRenderer has no text."));else g.UZ(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
UA.prototype.clear=function(){this.hide()};
UA.prototype.show=function(){ghi(!0);fu.prototype.show.call(this)};
UA.prototype.hide=function(){ghi(!1);fu.prototype.hide.call(this)};g.P(Go,FX);g.K=Go.prototype;
g.K.init=function(u,h){FX.prototype.init.call(this,u,h,{});if(h.durationMilliseconds){if(h.durationMilliseconds<0){g.UZ(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+h.durationMilliseconds));return}this.N=h.durationMilliseconds}else this.N=this.G.xr();var L;if((L=h.previewText)==null||!L.text||g.Xg(h.previewText.text))g.UZ(Error("No text is returned for AdPreview."));else{this.C=h.previewText;h.previewText.isTemplated||g.yg(this.X,h.previewText.text);var Z;
if(((Z=this.api.getVideoData(1))==null?0:Z.l9)&&h.previewImage){var y,R;(u=((R=S7(((y=h.previewImage)==null?void 0:y.sources)||[],52,!1))==null?void 0:R.url)||"")&&u.length?(this.previewImage=new g.OD({K:"img",U:"ytp-preview-ad__image",J:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",u),g.V(this,this.previewImage),this.previewImage.Og(this.element)):g.UZ(Error("Failed to get imageUrl in AdPreview."))}else this.X.classList.add("ytp-preview-ad__text--padding--wide")}};
g.K.clear=function(){this.hide()};
g.K.hide=function(){ED(this);FX.prototype.hide.call(this)};
g.K.show=function(){b2(this);FX.prototype.show.call(this)};
g.K.mj=function(){this.hide()};
g.K.mm=function(){if(this.G){var u=this.G.getProgressState();if(u!=null&&u.current)if(u=1E3*u.current,u>=this.N)this.transition.hide();else{var h;if((h=this.C)==null?0:h.isTemplated)if(h=Math.max(0,Math.ceil((this.N-u)/1E3)),h!==this.B){var L,Z;(u=(L=this.C)==null?void 0:(Z=L.text)==null?void 0:Z.replace("{TIME_REMAINING}",String(h)))&&g.yg(this.X,u);this.B=h}}}};g.P(Hq,fu);
Hq.prototype.init=function(u,h){fu.prototype.init.call(this,u,h,{});var L,Z;if((u=((Z=S7(((L=h.image)==null?void 0:L.sources)||[],umV(h),!0))==null?void 0:Z.url)||"")&&u.length){L=this.BX("ytp-ad-avatar");L.src=u;var y,R;if(Z=(y=h.interaction)==null?void 0:(R=y.accessibility)==null?void 0:R.label)L.alt=Z;switch(h.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(h.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.UZ(Error("Failed to get imageUrl in AdAvatar."))};
Hq.prototype.clear=function(){this.hide()};
Hq.prototype.onClick=function(u){fu.prototype.onClick.call(this,u)};g.P(rU,fu);
rU.prototype.init=function(u,h){fu.prototype.init.call(this,u,h,{});var L;u=(L=h.label)==null?void 0:L.content;if((L=u!=null&&!g.Xg(u))||h.iconImage){L&&(this.buttonText=new g.OD({K:"span",U:"ytp-ad-button-vm__text",dw:u}),g.V(this,this.buttonText),this.buttonText.Og(this.element));var Z,y,R=((Z=h.interaction)==null?0:(y=Z.accessibility)==null?0:y.label)||L?u:"";R&&$K(this.element,R+" This link opens in new tab");eB(this.element);if(h.iconImage){Z=void 0;if(h.iconImage){a:{y=h.iconImage;if(y.sources)for(y=
g.C(y.sources),u=y.next();!u.done;u=y.next())if(u=u.value,R=void 0,(R=u.clientResource)==null?0:R.imageName){y=u;break a}y=void 0}if(y){var p;Z={iconType:(p=y.clientResource)==null?void 0:p.imageName}}}p=YS(Z,!1,this.N);p!=null&&(this.buttonIcon=new g.OD({K:"span",U:"ytp-ad-button-vm__icon",Z:[p]}),g.V(this,this.buttonIcon),h.iconLeading?(hf(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):L?(this.buttonIcon.Og(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")):
(this.buttonIcon.Og(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(h.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.G?"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(h.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.G3(Error("AdButton does not have label or an icon."))};
rU.prototype.clear=function(){this.hide()};
rU.prototype.onClick=function(u){fu.prototype.onClick.call(this,u)};g.P(jaw,FX);g.K=jaw.prototype;
g.K.init=function(u,h){FX.prototype.init.call(this,u,h,{});this.api.L().j("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.BX("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"),hf(this.BX("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(u=g.n(h.avatar,eP)){var L=h.headline;if(L){var Z=h.description;if(Z){var y=g.n(h.button,$u);y?(this.adAvatar.init(Lu("ad-avatar"),u),this.headline.init(Lu("ad-simple-attributed-string"),new v2(L)),this.description.init(Lu("ad-simple-attributed-string"),new v2(Z)),L.content&&L.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),
this.adButton.init(Lu("ad-button"),y),this.startMilliseconds=h.startMs||0,this.api.N0()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.lA.bind(this)),b2(this)):g.UZ(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.UZ(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.UZ(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.UZ(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
g.K.mm=function(){if(this.G){var u=this.G.getProgressState();u&&u.current&&1E3*u.current>=this.startMilliseconds&&(ED(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
g.K.mj=function(){this.clear()};
g.K.onClick=function(u){this.api.pauseVideo();FX.prototype.onClick.call(this,u)};
g.K.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.lA.bind(this))};
g.K.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();FX.prototype.show.call(this)};
g.K.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();FX.prototype.hide.call(this)};
g.K.lA=function(u){u==="hidden"?this.show():this.hide()};g.P(Bq,fu);g.K=Bq.prototype;
g.K.init=function(u,h){fu.prototype.init.call(this,u,h,{});if(!h.label||g.Xg(h.label))g.UZ(Error("No label is returned for SkipAdButton."));else if(g.yg(this.B,h.label),u=YS({iconType:"SKIP_NEXT_NEW"}),u==null)g.UZ(Error("Unable to retrieve icon for SkipAdButton"));else if(this.X=new g.OD({K:"span",U:"ytp-skip-ad-button__icon",Z:[u]}),g.V(this,this.X),this.X.Og(this.element),this.api.L().experiments.tB("enable_skip_to_next_messaging")&&(h=g.ES(h.targetId)))this.N=!0,this.element.setAttribute("data-tooltip-target-id",h),
this.element.setAttribute("data-tooltip-target-fixed","")};
g.K.onClick=function(u){u&&u.preventDefault();var h,L;utb(u,{contentCpn:(L=(h=this.api.getVideoData(1))==null?void 0:h.clientPlaybackNonce)!=null?L:""})===0?this.api.hB("onAbnormalityDetected"):(fu.prototype.onClick.call(this,u),this.api.hB("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))};
g.K.clear=function(){this.G.reset();this.hide()};
g.K.hide=function(){fu.prototype.hide.call(this)};
g.K.show=function(){this.G.start();fu.prototype.show.call(this);this.N&&this.api.L().experiments.tB("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.P(hLi,FX);g.K=hLi.prototype;
g.K.init=function(u,h){FX.prototype.init.call(this,u,h,{});u=g.n(h.preskipState,TVg);if(this.B||!this.api.L().experiments.tB("disable_ad_preview_for_instream_ads")){if(!u){g.UZ(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}var L;(L=this.N)==null||L.init(Lu("preview-ad"),u);(L=this.N)!=null&&(L.transition.show(100),L.show())}(L=g.n(h.skippableState,oDy))?(h.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=h.skipOffsetMilliseconds:(g.G3(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=
5E3),this.X.init(Lu("skip-button"),L),this.show()):g.UZ(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))};
g.K.show=function(){b2(this);FX.prototype.show.call(this)};
g.K.hide=function(){!this.isSkippable&&this.N?this.N.hide():this.X&&this.X.hide();ED(this);FX.prototype.hide.call(this)};
g.K.clear=function(){var u;(u=this.N)==null||u.clear();this.X&&this.X.clear();ED(this);FX.prototype.hide.call(this)};
g.K.mj=function(){this.hide()};
g.K.mm=function(){if(1E3*this.G.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var u;(u=this.N)!=null&&u.transition.hide();(u=this.X)!=null&&(u.transition.show(),u.show())}};g.P(zo,fu);
zo.prototype.init=function(u,h){fu.prototype.init.call(this,u,h,{});if(h.label){var L;((L=h.label)==null?0:L.content)&&!g.Xg(h.label.content)&&(this.linkText=new g.OD({K:"span",U:"ytp-visit-advertiser-link__text",dw:h.label.content}),g.V(this,this.linkText),this.linkText.Og(this.element));var Z,y;if((Z=h.interaction)==null?0:(y=Z.accessibility)==null?0:y.label)$K(this.element,h.interaction.accessibility.label+" This link opens in new tab");else{var R;((R=h.label)==null?0:R.content)&&!g.Xg(h.label.content)&&$K(this.element,
h.label.content+" This link opens in new tab")}eB(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.UZ(Error("No label found in VisitAdvertiserLink."))};
zo.prototype.onClick=function(u){fu.prototype.onClick.call(this,u);this.api.onAdUxClicked(this.componentType,this.layoutId)};
zo.prototype.clear=function(){this.hide()};g.P(m0,fu);
m0.prototype.init=function(u,h,L,Z){fu.prototype.init.call(this,u,h,{});if(h.skipOrPreview){L=h.skipOrPreview;u=g.n(L,NVR);L=g.n(L,TVg);var y,R=this.api.L().j("clean_player_style_fix_on_web")&&((y=this.api.getVideoData())==null?void 0:y.isDaiEnabled());u?(this.Iu=new hLi(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.N),g.V(this,this.Iu),this.Iu.Og(this.Y),this.Iu.init(Lu("skip-ad"),u)):!L||this.api.L().experiments.tB("disable_ad_preview_for_instream_ads")&&!R||(this.B=new Go(this.api,
this.layoutId,this.interactionLoggingClientData,this.HX,this.N,1),g.V(this,this.B),this.B.Og(this.Y),this.B.init(Lu("ad-preview"),L),y=this.B,y.transition.show(100),y.show());if(y=g.n(h.skipOrPreview,NVR))var p=y.skipOffsetMilliseconds}h.playerAdCard&&(y=g.n(h.playerAdCard,Y8D))&&(this.playerAdCard=new jaw(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.N),g.V(this,this.playerAdCard),this.playerAdCard.Og(this.DI),this.playerAdCard.init(Lu("ad-avatar-lockup-card"),y));y=this.api.L().j("disable_ad_duration_remaining_for_instream_video_ads")||
h.adPodIndex!==void 0;h.adBadgeRenderer&&((u=g.n(h.adBadgeRenderer,a2))?(this.X=new Tz(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,y),g.V(this,this.X),this.X.Og(this.G),this.X.init(Lu("ad-badge"),u)):g.UZ(Error("AdBadgeViewModel is not found in player overlay layout.")));h.adPodIndex&&(u=g.n(h.adPodIndex,S87))&&(this.adPodIndex=new Yp(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,g.n(h.skipOrPreview,NVR)===void 0),g.V(this,this.adPodIndex),this.adPodIndex.Og(this.G),
this.adPodIndex.init(Lu("ad-pod-index"),u));h.adInfoRenderer&&(u=g.n(h.adInfoRenderer,ve))&&(this.adInfoButton=new $S(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.element,void 0,y),g.V(this,this.adInfoButton),this.api.L().j("enable_ad_pod_index_autohide")&&this.X!==void 0?this.G.insertBefore(this.adInfoButton.element,this.X.element.nextSibling):this.adInfoButton.Og(this.G),this.adInfoButton.init(Lu("ad-info-hover-text-button"),u,this.macros));var J;u=this.api.L().j("clean_player_style_fix_on_web")&&
((J=this.api.getVideoData())==null?void 0:J.isDaiEnabled());h.adDurationRemaining&&(!y||u)&&(J=g.n(h.adDurationRemaining,D77))&&(this.adDurationRemaining=new S2(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.N,Z.videoAdDurationSeconds,y),g.V(this,this.adDurationRemaining),y&&this.adPodIndex!==void 0?this.G.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adInfoButton!==void 0?y?this.G.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element.nextSibling):
this.G.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element):this.adDurationRemaining.Og(this.G),this.adDurationRemaining.init(Lu("ad-duration-remaining"),J,this.macros),y&&this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));h.visitAdvertiserLink&&(Z=g.n(h.visitAdvertiserLink,Gyq))&&(this.visitAdvertiserLink=new zo(this.api,this.layoutId,this.interactionLoggingClientData,this.HX),g.V(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Og(this.G),
this.visitAdvertiserLink.init(Lu("visit-advertiser-link"),Z));h.adDisclosureBanner&&(h=g.n(h.adDisclosureBanner,lRc))&&(this.adDisclosureBanner=new or(this.api,this.layoutId,this.interactionLoggingClientData,this.HX),g.V(this,this.adDisclosureBanner),this.adDisclosureBanner.Og(this.RH),this.adDisclosureBanner.init(Lu("ad-disclosure-banner"),h));this.api.L().j("show_preskip_progress_bar_for_skippable_ads")&&(this.C=new Gz(this.api,this.N,p,y),g.V(this,this.C),g.XC(this.api,this.C.element,4));this.show()};
m0.prototype.clear=function(){this.hide()};g.P(Luw,fu);g.K=Luw.prototype;
g.K.init=function(u,h){fu.prototype.init.call(this,u,h,{});if(h!=null&&h.title)if(u=h.title)if(this.headline.init(Lu("ad-simple-attributed-string"),new v2(u)),u=g.n(h.moreInfoButton,$u)){if(this.moreInfoButton.init(Lu("ad-button"),u),h.descriptions)h.descriptions.length>0&&(u=h.descriptions[0])&&(this.G=new qw(this.api,this.layoutId,this.interactionLoggingClientData,this.HX),g.V(this,this.G),this.G.Og(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.G.init(Lu("ad-simple-attributed-string"),
new v2(u))),h.descriptions.length>1&&(h=h.descriptions[1])&&(this.N=new qw(this.api,this.layoutId,this.interactionLoggingClientData,this.HX),g.V(this,this.N),this.N.Og(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.N.init(Lu("ad-simple-attributed-string"),new v2(h)))}else g.UZ(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.UZ(Error("No headline found in AdGridCardText."));else g.UZ(Error("No headline found in AdGridCardText."))};
g.K.onClick=function(u){fu.prototype.onClick.call(this,u);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.K.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var u;(u=this.G)==null||u.clear();var h;(h=this.N)==null||h.clear()};
g.K.hide=function(){this.headline.hide();this.moreInfoButton.hide();var u;(u=this.G)==null||u.hide();var h;(h=this.N)==null||h.hide();fu.prototype.hide.call(this)};
g.K.show=function(){fu.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var u;(u=this.G)==null||u.show();var h;(h=this.N)==null||h.show()};g.P(dU,fu);dU.prototype.init=function(u,h){fu.prototype.init.call(this,u,h,{});if(h!=null&&h.gridCards)if(h.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.UZ(Error("Only single column style is currently supported in AdGridCardCollection."));else for(u=g.C(h.gridCards),h=u.next();!h.done;h=u.next()){if(h=g.n(h.value,q8c)){var L=new Luw(this.api,this.layoutId,this.interactionLoggingClientData,this.HX);g.V(this,L);L.Og(this.element);L.init(Lu("ad-grid-card-text"),h);this.G.push(L)}}else g.UZ(Error("No grid cards found in AdGridCardCollection."))};
dU.prototype.show=function(){for(var u=g.C(this.G),h=u.next();!h.done;h=u.next())h.value.show();fu.prototype.show.call(this)};
dU.prototype.clear=function(){this.hide();for(var u=g.C(this.G),h=u.next();!h.done;h=u.next())h.value.clear()};
dU.prototype.hide=function(){for(var u=g.C(this.G),h=u.next();!h.done;h=u.next())h.value.hide();fu.prototype.hide.call(this)};g.P(VI,FX);g.K=VI.prototype;g.K.init=function(u,h,L,Z,y){y=y===void 0?0:y;FX.prototype.init.call(this,u,h,L,Z);this.playerProgressOffsetMs=y;b2(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Du.bind(this));this.api.addEventListener("resize",this.Kd.bind(this));this.api.N0()?(this.N=!0,this.api.d6(!0),this.show()):this.hide()};
g.K.mm=function(){if(this.G){var u=this.G.getProgressState();u&&u.current&&!this.N&&1E3*u.current>=this.playerProgressOffsetMs&&(this.N=!0,this.api.d6(!0),this.show())}};
g.K.mj=function(){this.N&&this.api.d6(!1);this.hide()};
g.K.clear=function(){this.api.d6(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Du.bind(this));this.api.removeEventListener("resize",this.Kd.bind(this));ED(this);this.hide()};
g.K.hide=function(){ZHY(!1);FX.prototype.hide.call(this)};
g.K.show=function(){ZHY(!0);FX.prototype.show.call(this)};g.P(yPn,VI);g.K=yPn.prototype;
g.K.init=function(u,h,L,Z){if(h!=null&&h.adGridCardCollection)if(h!=null&&h.adButton){var y=Number(h.playerProgressOffsetMs||"0");isNaN(y)?VI.prototype.init.call(this,u,h,L,Z):VI.prototype.init.call(this,u,h,L,Z,y);u=h.headline;L=g.n(h.adAvatar,eP);u&&L?(this.headline=new qw(this.api,this.layoutId,this.interactionLoggingClientData,this.HX),g.V(this,this.headline),this.headline.Og(this.BX("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(Lu("ad-simple-attributed-string"),new v2(u)),
this.adAvatar=new Hq(this.api,this.layoutId,this.interactionLoggingClientData,this.HX),g.V(this,this.adAvatar),this.adAvatar.Og(this.BX("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(Lu("ad-avatar"),L)):this.B.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");u=g.n(h.adGridCardCollection,vDR);this.adGridCardCollection.init(Lu("ad-grid-card-collection"),u);h=g.n(h.adButton,$u);this.adButton.init(Lu("ad-button"),h);
this.hide()}else g.UZ(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.UZ(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))};
g.K.onClick=function(u){(this.adButton&&g.ZO(this.adButton.element,u.target)||this.adAvatar&&g.ZO(this.adAvatar.element,u.target))&&this.api.pauseVideo();VI.prototype.onClick.call(this,u);this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.K.Kd=function(){};
g.K.clear=function(){this.hide();var u;(u=this.headline)==null||u.clear();var h;(h=this.adAvatar)==null||h.clear();this.adGridCardCollection.clear();this.adButton.clear();VI.prototype.clear.call(this)};
g.K.show=function(){var u;(u=this.headline)==null||u.show();var h;(h=this.adAvatar)==null||h.show();this.adGridCardCollection.show();this.adButton.show();VI.prototype.show.call(this)};
g.K.hide=function(){var u;(u=this.headline)==null||u.hide();var h;(h=this.adAvatar)==null||h.hide();this.adGridCardCollection.hide();this.adButton.hide();VI.prototype.hide.call(this)};
g.K.Du=function(u){u==="transitioning"?(this.X.classList.remove("ytp-ad-underlay-clickable"),this.show()):u==="visible"?this.X.classList.add("ytp-ad-underlay-clickable"):u==="hidden"&&(this.hide(),this.X.classList.remove("ytp-ad-underlay-clickable"))};g.P(nW,fu);
nW.prototype.init=function(u,h){fu.prototype.init.call(this,u,h,{});if(h.attributes===void 0)g.UZ(Error("No attributes found in AdDetailsLineViewModel."));else if(h.style===void 0)g.UZ(Error("No style found in AdDetailsLineViewModel."));else{u=g.C(h.attributes);for(var L=u.next();!L.done;L=u.next())if(L=L.value,L.text!==void 0){L=L.text;var Z=h.style,y=new qw(this.api,this.layoutId,this.interactionLoggingClientData,this.HX);g.V(this,y);y.Og(this.element);a:switch(Z){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":Z="ytp-ad-details-line__text--style-responsive";
break a;default:Z="ytp-ad-details-line__text--style-standard"}y.element.classList.add(Z);y.init(Lu("ad-simple-attributed-string"),new v2(L));this.G.push(y)}this.show()}};
nW.prototype.show=function(){this.G.forEach(function(u){u.show()});
fu.prototype.show.call(this)};
nW.prototype.clear=function(){this.hide()};
nW.prototype.hide=function(){this.G.forEach(function(u){u.hide()});
fu.prototype.hide.call(this)};g.P(sA,fu);sA.prototype.init=function(u,h){fu.prototype.init.call(this,u,h,{});var L,Z;(u=((Z=S7(((L=h.image)==null?void 0:L.sources)||[]))==null?void 0:Z.url)||"")&&u.length?(L=this.BX("ytp-image-background-image"),g.Oz(L,"backgroundImage","url("+u+")"),h.blurLevel!==void 0&&g.Oz(L,"filter","blur("+h.blurLevel+"px)"),h.gradient!==void 0&&(h=new g.a({K:"div",CI:["ytp-image-background--gradient-vertical"]}),g.V(this,h),h.Og(this.element)),this.show()):g.UZ(Error("Failed to get imageUrl in ImageBackground."))};
sA.prototype.clear=function(){this.hide()};g.P(RLV,FX);g.K=RLV.prototype;g.K.init=function(u,h){FX.prototype.init.call(this,u,h,{});g.Oz(this.X,"stroke-dasharray","0 "+this.N);this.show()};
g.K.clear=function(){this.hide()};
g.K.hide=function(){ED(this);FX.prototype.hide.call(this)};
g.K.show=function(){b2(this);FX.prototype.show.call(this)};
g.K.mj=function(){this.hide()};
g.K.mm=function(){if(this.G){var u=this.G.getProgressState();u!=null&&u.current!=null&&g.Oz(this.X,"stroke-dasharray",u.current/u.seekableEnd*this.N+" "+this.N)}};g.P(wU,fu);
wU.prototype.init=function(u,h){fu.prototype.init.call(this,u,h,{});if(Kun(h)){this.adAvatar=new Hq(this.api,this.layoutId,this.interactionLoggingClientData,this.HX);g.V(this,this.adAvatar);this.adAvatar.Og(this.BX("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(Lu("ad-avatar"),g.n(h.adAvatar,eP));this.headline=new qw(this.api,this.layoutId,this.interactionLoggingClientData,this.HX);g.V(this,this.headline);this.headline.Og(this.BX("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(Lu("ad-simple-attributed-string"),new v2(h.headline));if(u=g.n(h.adDetailsLine,Qcy))this.detailsLine=new nW(this.api,this.layoutId,this.interactionLoggingClientData,this.HX),g.V(this,this.detailsLine),this.detailsLine.Og(this.BX("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(Lu("ad-details-line"),u);this.adButton=new rU(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,!0);g.V(this,this.adButton);
this.adButton.Og(this.BX("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(Lu("ad-button"),g.n(h.adButton,$u));u=this.api.j("disable_ad_preview_for_instream_ads");this.adBadge=new Tz(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,u);g.V(this,this.adBadge);this.adBadge.Og(this.B);this.adBadge.init(Lu("ad-badge"),g.n(h.adBadge,a2));this.adInfoButton=new $S(this.api,this.layoutId,this.interactionLoggingClientData,this.HX,this.element,
void 0,u);g.V(this,this.adInfoButton);this.adInfoButton.Og(this.B);this.adInfoButton.init(Lu("ad-info-hover-text-button"),g.n(h.adInfoRenderer,ve),this.macros);if(u=g.n(h.skipAdButton,oDy))this.skipAdButton=new Bq(this.api,this.layoutId,this.interactionLoggingClientData,this.HX),g.V(this,this.skipAdButton),this.skipAdButton.Og(this.element),this.skipAdButton.init(Lu("skip-button"),u);this.N=new ii(h.durationMilliseconds);g.V(this,this.N);if(u=g.n(h.countdownViewModel,U7r))this.G=new RLV(this.api,
this.layoutId,this.interactionLoggingClientData,this.HX,this.N),g.V(this,this.G),this.G.Og(this.BX("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.G.init(Lu("timed-pie-countdown"),u);if(h=g.n(h.imageBackground,X17))this.imageBackground=new sA(this.api,this.layoutId,this.interactionLoggingClientData,this.HX),g.V(this,this.imageBackground),this.imageBackground.Og(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),
this.imageBackground.init(Lu("image-background"),h);this.show();this.element.focus()}};
wU.prototype.clear=function(){g.Tj(this.X);this.hide()};
wU.prototype.show=function(){pgR(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();fu.prototype.show.call(this)};
wU.prototype.hide=function(){pgR(!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.G&&this.G.hide();this.imageBackground&&this.imageBackground.hide();fu.prototype.hide.call(this)};var R9q="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.P(tI,nu);
tI.prototype.B=function(u){var h=u.id,L=u.content,Z=L.componentType;if(!R9q.includes(Z))switch(u.actionType){case 1:u=this.api;var y=this.HX,R=L.layoutId,p=L.interactionLoggingClientData,J=L instanceof az?L.iO:!1,O=L instanceof az||L instanceof CG?L.wQ:!1;p=p===void 0?{}:p;J=J===void 0?!1:J;O=O===void 0?!1:O;switch(Z){case "invideo-overlay":u=new vhY(u,R,p,y);break;case "player-overlay":u=new H2(u,R,p,y,new Ls(u),O);break;case "player-overlay-layout":u=new m0(u,R,p,y,new Ls(u));break;case "survey":u=
new NV(u,R,p,y);break;case "ad-action-interstitial":u=new ize(u,R,p,y,J,O);break;case "video-interstitial-buttoned-centered":u=new wU(u,R,p,y);break;case "survey-interstitial":u=new UA(u,R,p,y);break;case "ad-message":u=new Hzs(u,R,p,y,new Ls(u,1));break;case "player-underlay":u=new Bfb(u,R,p,y);break;case "display-underlay-text-grid-cards":u=new yPn(u,R,p,y,new Ls(u));break;default:u=null}if(!u){g.G3(Error("No UI component returned from ComponentFactory for type: "+Z));break}g.Xl(this.N,h)?g.G3(Error("Ad UI component already registered: "+
h)):this.N[h]=u;u.bind(L);L instanceof w1?this.X?this.X.append(u.uO):g.G3(Error("Underlay view was not created but UnderlayRenderer was created")):this.T.append(u.uO);break;case 2:h=JPl(this,u);if(h==null)break;h.bind(L);break;case 3:L=JPl(this,u),L!=null&&(g.Ju(L),g.Xl(this.N,h)?(L=this.N,h in L&&delete L[h]):g.G3(Error("Ad UI component does not exist: "+h)))}};
tI.prototype.Ni=function(){g.O8(Object.values(this.N));this.N={};nu.prototype.Ni.call(this)};g.P(OHj,g.Tl);g.K=OHj.prototype;g.K.create=function(){try{f71(this),this.load(),this.created=!0,f71(this)}catch(u){Jk(u instanceof Error?u:String(u))}};
g.K.load=function(){try{I7b(this)}finally{kn(lh(this.G).pg)&&this.player.CB("ad",1)}};
g.K.destroy=function(){var u=this.player.getVideoData(1);this.G.G.RZ.hC(u&&u.clientPlaybackNonce||"");this.unload();this.created=!1};
g.K.unload=function(){g.Tl.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(h){Jk(h instanceof Error?h:String(h))}if(this.N!=null){var u=this.N;this.N=null;u.dispose()}this.X.reset()};
g.K.n3=function(){return!1};
g.K.getAdState=function(){return-1};
g.K.getOptions=function(){return Object.values(yMr)};
g.K.B7=function(u,h){h=h===void 0?{}:h;switch(u){case "replaceUrlMacros":return u=h,u.url?(h=Uij(this.player),Object.assign(h,u.XSB),u=g.Ng(u.url,h)):u=null,u;case "onAboutThisAdPopupClosed":this.qR(h);break;case "executeCommand":u=h;u.command&&u.layoutId&&this.executeCommand(u);break;default:return null}};
g.K.Vn=function(u){var h;return!((h=this.G.G.fW)==null||!h.get().Vn(u))};
g.K.qR=function(u){u.isMuted&&fgi(lh(this.G).JV,lh(this.G).u8,u.layoutId);this.vH&&this.vH.qR()};
g.K.executeCommand=function(u){lh(this.G).HX.executeCommand(u.command,u.layoutId)};g.nV("yt.player.Application.create",g.iY.create);g.nV("yt.player.Application.createAlternate",g.iY.create);n9j(T3(),Z9r);var ppr=g.wn("ytcsi.tick");ppr&&ppr("pe");g.qz("ad",OHj);g.P(g.bh,g.m);g.bh.prototype.start=function(u,h,L){this.config={from:u,le:h,duration:L,startTime:(0,g.vC)()};this.next()};
g.bh.prototype.stop=function(){this.delay.stop();this.config=void 0};
g.bh.prototype.next=function(){if(this.config){var u=this.config,h=u.from,L=u.le,Z=u.duration;u=u.startTime;var y=(0,g.vC)()-u;u=this.G;Z=FSb(u,y/Z);if(Z==0)u=u.V;else if(Z==1)u=u.S;else{y=JN(u.V,u.T,Z);var R=JN(u.T,u.C,Z);u=JN(u.C,u.S,Z);y=JN(y,R,Z);R=JN(R,u,Z);u=JN(y,R,Z)}u=g.pX(u,0,1);this.callback(h+(L-h)*u);u<1&&this.delay.start()}};g.P(g.EA,g.a);g.K=g.EA.prototype;g.K.hasSuggestions=function(){return this.suggestionData.length>0};
g.K.OO=function(){this.N&&this.scrollTo(this.scrollPosition-this.containerWidth)};
g.K.show=function(){g.a.prototype.show.call(this);iHs(this)};
g.K.Fx=function(){this.N&&this.scrollTo(this.scrollPosition+this.containerWidth)};
g.K.nx=function(){this.QZ(this.api.m_().getPlayerSize())};
g.K.QZ=function(u){var h=this.api.isEmbedsShortsMode()?.5625:16/9,L=this.api.GN();u=u.width-(L?112:58);L=Math.ceil(u/(L?320:192));var Z=(u-L*8)/L;h=Math.floor(Z/h);for(var y=g.C(this.G),R=y.next();!R.done;R=y.next())R=R.value.BX("ytp-suggestion-image"),R.style.width=Z+"px",R.style.height=h+"px";this.suggestions.element.style.height=h+"px";this.B=Z;this.S=h;this.containerWidth=u;this.columns=L;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.ku(this)};
g.K.onVideoDataChange=function(){var u=this.api.L(),h=this.api.getVideoData();this.C=h.Rc?!1:u.B;this.suggestionData=h.suggestions?g.KN(h.suggestions,function(L){return L&&!L.playlistId}):[];
l7n(this);h.Rc?this.title.update({title:g.cI("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:h.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})};
g.K.scrollTo=function(u){u=g.pX(u,this.containerWidth-this.suggestionData.length*(this.B+8),0);this.V.start(this.scrollPosition,u,1E3);this.scrollPosition=u;g.ku(this);iHs(this)};})(_yt_player);
";s:5:"error";s:0:"";s:4:"info";O:13:"Curl\CurlInfo":1:{s:7:"*info";a:26:{s:3:"url";s:73:"https://www.youtube.com/s/player/bb6e14ed/player_ias.vflset/en_US/base.js";s:12:"content_type";s:15:"text/javascript";s:9:"http_code";i:200;s:11:"header_size";i:690;s:12:"request_size";i:496;s:8:"filetime";i:-1;s:17:"ssl_verify_result";i:0;s:14:"redirect_count";i:0;s:10:"total_time";d:0.600361;s:15:"namelookup_time";d:0.042259;s:12:"connect_time";d:0.082541;s:16:"pretransfer_time";d:0.139312;s:11:"size_upload";d:0;s:13:"size_download";d:822946;s:14:"speed_download";d:1370751;s:12:"speed_upload";d:0;s:23:"download_content_length";d:822946;s:21:"upload_content_length";d:0;s:18:"starttransfer_time";d:0.182976;s:13:"redirect_time";d:0;s:12:"redirect_url";s:0:"";s:10:"primary_ip";s:15:"142.250.197.174";s:8:"certinfo";a:0:{}s:12:"primary_port";i:443;s:8:"local_ip";s:14:"45.252.249.168";s:10:"local_port";i:39024;}}}

ZeroDay Forums Mini